OZE_Sensor.list 2.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204
  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 00018818 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 000001d4 08018ab8 08018ab8 00019ab8 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 08018c8c 08018c8c 00019c8c 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 08018c94 08018c94 00019c94 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08018c98 08018c98 00019c98 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 000000a4 24000000 08018c9c 0001a000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 00012d74 240000c0 08018d40 0001a0c0 2**5
  19. ALLOC
  20. 8 ._user_heap_stack 00000604 24012e34 08018d40 0001ae34 2**0
  21. ALLOC
  22. 9 .ARM.attributes 0000002e 00000000 00000000 0001a0a4 2**0
  23. CONTENTS, READONLY
  24. 10 .debug_info 00034402 00000000 00000000 0001a0d2 2**0
  25. CONTENTS, READONLY, DEBUGGING, OCTETS
  26. 11 .debug_abbrev 00006441 00000000 00000000 0004e4d4 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_aranges 00002518 00000000 00000000 00054918 2**3
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_macro 0003f867 00000000 00000000 00056e30 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_line 000314d8 00000000 00000000 00096697 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 0018843f 00000000 00000000 000c7b6f 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0024ffae 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c8e 00000000 00000000 0024fff1 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 0000a3b4 00000000 00000000 00251c80 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 0025c034 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: 08018aa0 .word 0x08018aa0
  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: 08018aa0 .word 0x08018aa0
  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 fa6f bl 8010ba8 <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: 240005d8 .word 0x240005d8
  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 fac2 bl 800ac78 <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 fc06 bl 8013f14 <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: 2400082c .word 0x2400082c
  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 fbad bl 8001e7c <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: 4b62 ldr r3, [pc, #392] @ (80008ac <main+0x194>)
  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: 4b5c ldr r3, [pc, #368] @ (80008ac <main+0x194>)
  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: 4b57 ldr r3, [pc, #348] @ (80008ac <main+0x194>)
  571. 8000750: 695b ldr r3, [r3, #20]
  572. 8000752: 4a56 ldr r2, [pc, #344] @ (80008ac <main+0x194>)
  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: 4b50 ldr r3, [pc, #320] @ (80008ac <main+0x194>)
  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: 4b4d ldr r3, [pc, #308] @ (80008ac <main+0x194>)
  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: 4b4a ldr r3, [pc, #296] @ (80008ac <main+0x194>)
  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: 493f ldr r1, [pc, #252] @ (80008ac <main+0x194>)
  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: 4b37 ldr r3, [pc, #220] @ (80008ac <main+0x194>)
  655. 80007d0: 695b ldr r3, [r3, #20]
  656. 80007d2: 4a36 ldr r2, [pc, #216] @ (80008ac <main+0x194>)
  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 fe6e bl 80054c8 <HAL_Init>
  674. /* USER CODE BEGIN Init */
  675. /* USER CODE END Init */
  676. /* Configure the system clock */
  677. SystemClock_Config();
  678. 80007ec: f000 f880 bl 80008f0 <SystemClock_Config>
  679. /* Configure the peripherals common clocks */
  680. PeriphCommonClock_Config();
  681. 80007f0: f000 f8fc bl 80009ec <PeriphCommonClock_Config>
  682. /* USER CODE BEGIN SysInit */
  683. /* USER CODE END SysInit */
  684. /* Initialize all configured peripherals */
  685. MX_GPIO_Init();
  686. 80007f4: f000 ff84 bl 8001700 <MX_GPIO_Init>
  687. MX_DMA_Init();
  688. 80007f8: f000 ff52 bl 80016a0 <MX_DMA_Init>
  689. MX_RNG_Init();
  690. 80007fc: f000 fc04 bl 8001008 <MX_RNG_Init>
  691. MX_USART1_UART_Init();
  692. 8000800: f000 fefe bl 8001600 <MX_USART1_UART_Init>
  693. MX_ADC1_Init();
  694. 8000804: f000 f922 bl 8000a4c <MX_ADC1_Init>
  695. MX_UART8_Init();
  696. 8000808: f000 feae bl 8001568 <MX_UART8_Init>
  697. MX_CRC_Init();
  698. 800080c: f000 fb7a bl 8000f04 <MX_CRC_Init>
  699. MX_ADC2_Init();
  700. 8000810: f000 fa06 bl 8000c20 <MX_ADC2_Init>
  701. MX_ADC3_Init();
  702. 8000814: f000 fa98 bl 8000d48 <MX_ADC3_Init>
  703. MX_TIM2_Init();
  704. 8000818: f000 fca8 bl 800116c <MX_TIM2_Init>
  705. MX_TIM1_Init();
  706. 800081c: f000 fc0a bl 8001034 <MX_TIM1_Init>
  707. MX_TIM3_Init();
  708. 8000820: f000 fd22 bl 8001268 <MX_TIM3_Init>
  709. MX_DAC1_Init();
  710. 8000824: f000 fb98 bl 8000f58 <MX_DAC1_Init>
  711. MX_COMP1_Init();
  712. 8000828: f000 fb3e bl 8000ea8 <MX_COMP1_Init>
  713. MX_TIM4_Init();
  714. 800082c: f000 fdc8 bl 80013c0 <MX_TIM4_Init>
  715. MX_TIM8_Init();
  716. 8000830: f000 fe44 bl 80014bc <MX_TIM8_Init>
  717. MX_IWDG1_Init();
  718. 8000834: f000 fbcc bl 8000fd0 <MX_IWDG1_Init>
  719. /* USER CODE BEGIN 2 */
  720. // HAL_IWDG_Refresh(&hiwdg1);
  721. /* USER CODE END 2 */
  722. /* Init scheduler */
  723. osKernelInitialize();
  724. 8000838: f012 fffc bl 8013834 <osKernelInitialize>
  725. /* add semaphores, ... */
  726. /* USER CODE END RTOS_SEMAPHORES */
  727. /* Create the timer(s) */
  728. /* creation of debugLedTimer */
  729. debugLedTimerHandle = osTimerNew(debugLedTimerCallback, osTimerOnce, NULL, &debugLedTimer_attributes);
  730. 800083c: 4b1c ldr r3, [pc, #112] @ (80008b0 <main+0x198>)
  731. 800083e: 2200 movs r2, #0
  732. 8000840: 2100 movs r1, #0
  733. 8000842: 481c ldr r0, [pc, #112] @ (80008b4 <main+0x19c>)
  734. 8000844: f013 f904 bl 8013a50 <osTimerNew>
  735. 8000848: 4603 mov r3, r0
  736. 800084a: 4a1b ldr r2, [pc, #108] @ (80008b8 <main+0x1a0>)
  737. 800084c: 6013 str r3, [r2, #0]
  738. /* creation of fanTimer */
  739. fanTimerHandle = osTimerNew(fanTimerCallback, osTimerOnce, NULL, &fanTimer_attributes);
  740. 800084e: 4b1b ldr r3, [pc, #108] @ (80008bc <main+0x1a4>)
  741. 8000850: 2200 movs r2, #0
  742. 8000852: 2100 movs r1, #0
  743. 8000854: 481a ldr r0, [pc, #104] @ (80008c0 <main+0x1a8>)
  744. 8000856: f013 f8fb bl 8013a50 <osTimerNew>
  745. 800085a: 4603 mov r3, r0
  746. 800085c: 4a19 ldr r2, [pc, #100] @ (80008c4 <main+0x1ac>)
  747. 800085e: 6013 str r3, [r2, #0]
  748. /* creation of motorXTimer */
  749. motorXTimerHandle = osTimerNew(motorXTimerCallback, osTimerPeriodic, NULL, &motorXTimer_attributes);
  750. 8000860: 4b19 ldr r3, [pc, #100] @ (80008c8 <main+0x1b0>)
  751. 8000862: 2200 movs r2, #0
  752. 8000864: 2101 movs r1, #1
  753. 8000866: 4819 ldr r0, [pc, #100] @ (80008cc <main+0x1b4>)
  754. 8000868: f013 f8f2 bl 8013a50 <osTimerNew>
  755. 800086c: 4603 mov r3, r0
  756. 800086e: 4a18 ldr r2, [pc, #96] @ (80008d0 <main+0x1b8>)
  757. 8000870: 6013 str r3, [r2, #0]
  758. /* creation of motorYTimer */
  759. motorYTimerHandle = osTimerNew(motorYTimerCallback, osTimerPeriodic, NULL, &motorYTimer_attributes);
  760. 8000872: 4b18 ldr r3, [pc, #96] @ (80008d4 <main+0x1bc>)
  761. 8000874: 2200 movs r2, #0
  762. 8000876: 2101 movs r1, #1
  763. 8000878: 4817 ldr r0, [pc, #92] @ (80008d8 <main+0x1c0>)
  764. 800087a: f013 f8e9 bl 8013a50 <osTimerNew>
  765. 800087e: 4603 mov r3, r0
  766. 8000880: 4a16 ldr r2, [pc, #88] @ (80008dc <main+0x1c4>)
  767. 8000882: 6013 str r3, [r2, #0]
  768. /* add queues, ... */
  769. /* USER CODE END RTOS_QUEUES */
  770. /* Create the thread(s) */
  771. /* creation of defaultTask */
  772. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  773. 8000884: 4a16 ldr r2, [pc, #88] @ (80008e0 <main+0x1c8>)
  774. 8000886: 2100 movs r1, #0
  775. 8000888: 4816 ldr r0, [pc, #88] @ (80008e4 <main+0x1cc>)
  776. 800088a: f013 f81d bl 80138c8 <osThreadNew>
  777. 800088e: 4603 mov r3, r0
  778. 8000890: 4a15 ldr r2, [pc, #84] @ (80008e8 <main+0x1d0>)
  779. 8000892: 6013 str r3, [r2, #0]
  780. /* USER CODE BEGIN RTOS_THREADS */
  781. /* add threads, ... */
  782. HAL_IWDG_Refresh(&hiwdg1);
  783. 8000894: 4815 ldr r0, [pc, #84] @ (80008ec <main+0x1d4>)
  784. 8000896: f00a faa3 bl 800ade0 <HAL_IWDG_Refresh>
  785. UartTasksInit();
  786. 800089a: f003 fd6b bl 8004374 <UartTasksInit>
  787. #ifdef USER_MOCKS
  788. MockMeasurmetsTaskInit();
  789. #else
  790. MeasTasksInit();
  791. 800089e: f001 fb79 bl 8001f94 <MeasTasksInit>
  792. /* USER CODE BEGIN RTOS_EVENTS */
  793. /* add events, ... */
  794. /* USER CODE END RTOS_EVENTS */
  795. /* Start scheduler */
  796. osKernelStart();
  797. 80008a2: f012 ffeb bl 801387c <osKernelStart>
  798. /* We should never get here as control is now taken by the scheduler */
  799. /* Infinite loop */
  800. /* USER CODE BEGIN WHILE */
  801. while (1)
  802. 80008a6: bf00 nop
  803. 80008a8: e7fd b.n 80008a6 <main+0x18e>
  804. 80008aa: bf00 nop
  805. 80008ac: e000ed00 .word 0xe000ed00
  806. 80008b0: 08018bd8 .word 0x08018bd8
  807. 80008b4: 08001dd1 .word 0x08001dd1
  808. 80008b8: 24000704 .word 0x24000704
  809. 80008bc: 08018be8 .word 0x08018be8
  810. 80008c0: 08001de9 .word 0x08001de9
  811. 80008c4: 24000734 .word 0x24000734
  812. 80008c8: 08018bf8 .word 0x08018bf8
  813. 80008cc: 08001e05 .word 0x08001e05
  814. 80008d0: 24000764 .word 0x24000764
  815. 80008d4: 08018c08 .word 0x08018c08
  816. 80008d8: 08001e41 .word 0x08001e41
  817. 80008dc: 24000794 .word 0x24000794
  818. 80008e0: 08018bb4 .word 0x08018bb4
  819. 80008e4: 08001c15 .word 0x08001c15
  820. 80008e8: 24000700 .word 0x24000700
  821. 80008ec: 24000438 .word 0x24000438
  822. 080008f0 <SystemClock_Config>:
  823. /**
  824. * @brief System Clock Configuration
  825. * @retval None
  826. */
  827. void SystemClock_Config(void)
  828. {
  829. 80008f0: b580 push {r7, lr}
  830. 80008f2: b09c sub sp, #112 @ 0x70
  831. 80008f4: af00 add r7, sp, #0
  832. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  833. 80008f6: f107 0324 add.w r3, r7, #36 @ 0x24
  834. 80008fa: 224c movs r2, #76 @ 0x4c
  835. 80008fc: 2100 movs r1, #0
  836. 80008fe: 4618 mov r0, r3
  837. 8000900: f017 fa51 bl 8017da6 <memset>
  838. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  839. 8000904: 1d3b adds r3, r7, #4
  840. 8000906: 2220 movs r2, #32
  841. 8000908: 2100 movs r1, #0
  842. 800090a: 4618 mov r0, r3
  843. 800090c: f017 fa4b bl 8017da6 <memset>
  844. /** Supply configuration update enable
  845. */
  846. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  847. 8000910: 2002 movs r0, #2
  848. 8000912: f00a faff bl 800af14 <HAL_PWREx_ConfigSupply>
  849. /** Configure the main internal regulator output voltage
  850. */
  851. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  852. 8000916: 2300 movs r3, #0
  853. 8000918: 603b str r3, [r7, #0]
  854. 800091a: 4b32 ldr r3, [pc, #200] @ (80009e4 <SystemClock_Config+0xf4>)
  855. 800091c: 6adb ldr r3, [r3, #44] @ 0x2c
  856. 800091e: 4a31 ldr r2, [pc, #196] @ (80009e4 <SystemClock_Config+0xf4>)
  857. 8000920: f023 0301 bic.w r3, r3, #1
  858. 8000924: 62d3 str r3, [r2, #44] @ 0x2c
  859. 8000926: 4b2f ldr r3, [pc, #188] @ (80009e4 <SystemClock_Config+0xf4>)
  860. 8000928: 6adb ldr r3, [r3, #44] @ 0x2c
  861. 800092a: f003 0301 and.w r3, r3, #1
  862. 800092e: 603b str r3, [r7, #0]
  863. 8000930: 4b2d ldr r3, [pc, #180] @ (80009e8 <SystemClock_Config+0xf8>)
  864. 8000932: 699b ldr r3, [r3, #24]
  865. 8000934: 4a2c ldr r2, [pc, #176] @ (80009e8 <SystemClock_Config+0xf8>)
  866. 8000936: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  867. 800093a: 6193 str r3, [r2, #24]
  868. 800093c: 4b2a ldr r3, [pc, #168] @ (80009e8 <SystemClock_Config+0xf8>)
  869. 800093e: 699b ldr r3, [r3, #24]
  870. 8000940: f403 4340 and.w r3, r3, #49152 @ 0xc000
  871. 8000944: 603b str r3, [r7, #0]
  872. 8000946: 683b ldr r3, [r7, #0]
  873. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  874. 8000948: bf00 nop
  875. 800094a: 4b27 ldr r3, [pc, #156] @ (80009e8 <SystemClock_Config+0xf8>)
  876. 800094c: 699b ldr r3, [r3, #24]
  877. 800094e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  878. 8000952: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  879. 8000956: d1f8 bne.n 800094a <SystemClock_Config+0x5a>
  880. /** Initializes the RCC Oscillators according to the specified parameters
  881. * in the RCC_OscInitTypeDef structure.
  882. */
  883. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_LSI
  884. 8000958: 2329 movs r3, #41 @ 0x29
  885. 800095a: 627b str r3, [r7, #36] @ 0x24
  886. |RCC_OSCILLATORTYPE_HSE;
  887. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  888. 800095c: f44f 3380 mov.w r3, #65536 @ 0x10000
  889. 8000960: 62bb str r3, [r7, #40] @ 0x28
  890. RCC_OscInitStruct.LSIState = RCC_LSI_ON;
  891. 8000962: 2301 movs r3, #1
  892. 8000964: 63bb str r3, [r7, #56] @ 0x38
  893. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  894. 8000966: 2301 movs r3, #1
  895. 8000968: 63fb str r3, [r7, #60] @ 0x3c
  896. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  897. 800096a: 2302 movs r3, #2
  898. 800096c: 64bb str r3, [r7, #72] @ 0x48
  899. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  900. 800096e: 2302 movs r3, #2
  901. 8000970: 64fb str r3, [r7, #76] @ 0x4c
  902. RCC_OscInitStruct.PLL.PLLM = 5;
  903. 8000972: 2305 movs r3, #5
  904. 8000974: 653b str r3, [r7, #80] @ 0x50
  905. RCC_OscInitStruct.PLL.PLLN = 160;
  906. 8000976: 23a0 movs r3, #160 @ 0xa0
  907. 8000978: 657b str r3, [r7, #84] @ 0x54
  908. RCC_OscInitStruct.PLL.PLLP = 2;
  909. 800097a: 2302 movs r3, #2
  910. 800097c: 65bb str r3, [r7, #88] @ 0x58
  911. RCC_OscInitStruct.PLL.PLLQ = 2;
  912. 800097e: 2302 movs r3, #2
  913. 8000980: 65fb str r3, [r7, #92] @ 0x5c
  914. RCC_OscInitStruct.PLL.PLLR = 2;
  915. 8000982: 2302 movs r3, #2
  916. 8000984: 663b str r3, [r7, #96] @ 0x60
  917. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  918. 8000986: 2308 movs r3, #8
  919. 8000988: 667b str r3, [r7, #100] @ 0x64
  920. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  921. 800098a: 2300 movs r3, #0
  922. 800098c: 66bb str r3, [r7, #104] @ 0x68
  923. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  924. 800098e: 2300 movs r3, #0
  925. 8000990: 66fb str r3, [r7, #108] @ 0x6c
  926. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  927. 8000992: f107 0324 add.w r3, r7, #36 @ 0x24
  928. 8000996: 4618 mov r0, r3
  929. 8000998: f00a fb7c bl 800b094 <HAL_RCC_OscConfig>
  930. 800099c: 4603 mov r3, r0
  931. 800099e: 2b00 cmp r3, #0
  932. 80009a0: d001 beq.n 80009a6 <SystemClock_Config+0xb6>
  933. {
  934. Error_Handler();
  935. 80009a2: f001 faf1 bl 8001f88 <Error_Handler>
  936. }
  937. /** Initializes the CPU, AHB and APB buses clocks
  938. */
  939. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  940. 80009a6: 233f movs r3, #63 @ 0x3f
  941. 80009a8: 607b str r3, [r7, #4]
  942. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  943. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  944. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  945. 80009aa: 2303 movs r3, #3
  946. 80009ac: 60bb str r3, [r7, #8]
  947. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  948. 80009ae: 2300 movs r3, #0
  949. 80009b0: 60fb str r3, [r7, #12]
  950. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  951. 80009b2: 2308 movs r3, #8
  952. 80009b4: 613b str r3, [r7, #16]
  953. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  954. 80009b6: 2340 movs r3, #64 @ 0x40
  955. 80009b8: 617b str r3, [r7, #20]
  956. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  957. 80009ba: 2340 movs r3, #64 @ 0x40
  958. 80009bc: 61bb str r3, [r7, #24]
  959. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  960. 80009be: f44f 6380 mov.w r3, #1024 @ 0x400
  961. 80009c2: 61fb str r3, [r7, #28]
  962. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  963. 80009c4: 2340 movs r3, #64 @ 0x40
  964. 80009c6: 623b str r3, [r7, #32]
  965. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  966. 80009c8: 1d3b adds r3, r7, #4
  967. 80009ca: 2102 movs r1, #2
  968. 80009cc: 4618 mov r0, r3
  969. 80009ce: f00a ffbb bl 800b948 <HAL_RCC_ClockConfig>
  970. 80009d2: 4603 mov r3, r0
  971. 80009d4: 2b00 cmp r3, #0
  972. 80009d6: d001 beq.n 80009dc <SystemClock_Config+0xec>
  973. {
  974. Error_Handler();
  975. 80009d8: f001 fad6 bl 8001f88 <Error_Handler>
  976. }
  977. }
  978. 80009dc: bf00 nop
  979. 80009de: 3770 adds r7, #112 @ 0x70
  980. 80009e0: 46bd mov sp, r7
  981. 80009e2: bd80 pop {r7, pc}
  982. 80009e4: 58000400 .word 0x58000400
  983. 80009e8: 58024800 .word 0x58024800
  984. 080009ec <PeriphCommonClock_Config>:
  985. /**
  986. * @brief Peripherals Common Clock Configuration
  987. * @retval None
  988. */
  989. void PeriphCommonClock_Config(void)
  990. {
  991. 80009ec: b580 push {r7, lr}
  992. 80009ee: b0b0 sub sp, #192 @ 0xc0
  993. 80009f0: af00 add r7, sp, #0
  994. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  995. 80009f2: 463b mov r3, r7
  996. 80009f4: 22c0 movs r2, #192 @ 0xc0
  997. 80009f6: 2100 movs r1, #0
  998. 80009f8: 4618 mov r0, r3
  999. 80009fa: f017 f9d4 bl 8017da6 <memset>
  1000. /** Initializes the peripherals clock
  1001. */
  1002. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  1003. 80009fe: f44f 2200 mov.w r2, #524288 @ 0x80000
  1004. 8000a02: f04f 0300 mov.w r3, #0
  1005. 8000a06: e9c7 2300 strd r2, r3, [r7]
  1006. PeriphClkInitStruct.PLL2.PLL2M = 5;
  1007. 8000a0a: 2305 movs r3, #5
  1008. 8000a0c: 60bb str r3, [r7, #8]
  1009. PeriphClkInitStruct.PLL2.PLL2N = 52;
  1010. 8000a0e: 2334 movs r3, #52 @ 0x34
  1011. 8000a10: 60fb str r3, [r7, #12]
  1012. PeriphClkInitStruct.PLL2.PLL2P = 26;
  1013. 8000a12: 231a movs r3, #26
  1014. 8000a14: 613b str r3, [r7, #16]
  1015. PeriphClkInitStruct.PLL2.PLL2Q = 2;
  1016. 8000a16: 2302 movs r3, #2
  1017. 8000a18: 617b str r3, [r7, #20]
  1018. PeriphClkInitStruct.PLL2.PLL2R = 2;
  1019. 8000a1a: 2302 movs r3, #2
  1020. 8000a1c: 61bb str r3, [r7, #24]
  1021. PeriphClkInitStruct.PLL2.PLL2RGE = RCC_PLL2VCIRANGE_2;
  1022. 8000a1e: 2380 movs r3, #128 @ 0x80
  1023. 8000a20: 61fb str r3, [r7, #28]
  1024. PeriphClkInitStruct.PLL2.PLL2VCOSEL = RCC_PLL2VCOWIDE;
  1025. 8000a22: 2300 movs r3, #0
  1026. 8000a24: 623b str r3, [r7, #32]
  1027. PeriphClkInitStruct.PLL2.PLL2FRACN = 0;
  1028. 8000a26: 2300 movs r3, #0
  1029. 8000a28: 627b str r3, [r7, #36] @ 0x24
  1030. PeriphClkInitStruct.AdcClockSelection = RCC_ADCCLKSOURCE_PLL2;
  1031. 8000a2a: 2300 movs r3, #0
  1032. 8000a2c: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  1033. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  1034. 8000a30: 463b mov r3, r7
  1035. 8000a32: 4618 mov r0, r3
  1036. 8000a34: f00b fb56 bl 800c0e4 <HAL_RCCEx_PeriphCLKConfig>
  1037. 8000a38: 4603 mov r3, r0
  1038. 8000a3a: 2b00 cmp r3, #0
  1039. 8000a3c: d001 beq.n 8000a42 <PeriphCommonClock_Config+0x56>
  1040. {
  1041. Error_Handler();
  1042. 8000a3e: f001 faa3 bl 8001f88 <Error_Handler>
  1043. }
  1044. }
  1045. 8000a42: bf00 nop
  1046. 8000a44: 37c0 adds r7, #192 @ 0xc0
  1047. 8000a46: 46bd mov sp, r7
  1048. 8000a48: bd80 pop {r7, pc}
  1049. ...
  1050. 08000a4c <MX_ADC1_Init>:
  1051. * @brief ADC1 Initialization Function
  1052. * @param None
  1053. * @retval None
  1054. */
  1055. static void MX_ADC1_Init(void)
  1056. {
  1057. 8000a4c: b580 push {r7, lr}
  1058. 8000a4e: b08a sub sp, #40 @ 0x28
  1059. 8000a50: af00 add r7, sp, #0
  1060. /* USER CODE BEGIN ADC1_Init 0 */
  1061. /* USER CODE END ADC1_Init 0 */
  1062. ADC_MultiModeTypeDef multimode = {0};
  1063. 8000a52: f107 031c add.w r3, r7, #28
  1064. 8000a56: 2200 movs r2, #0
  1065. 8000a58: 601a str r2, [r3, #0]
  1066. 8000a5a: 605a str r2, [r3, #4]
  1067. 8000a5c: 609a str r2, [r3, #8]
  1068. ADC_ChannelConfTypeDef sConfig = {0};
  1069. 8000a5e: 463b mov r3, r7
  1070. 8000a60: 2200 movs r2, #0
  1071. 8000a62: 601a str r2, [r3, #0]
  1072. 8000a64: 605a str r2, [r3, #4]
  1073. 8000a66: 609a str r2, [r3, #8]
  1074. 8000a68: 60da str r2, [r3, #12]
  1075. 8000a6a: 611a str r2, [r3, #16]
  1076. 8000a6c: 615a str r2, [r3, #20]
  1077. 8000a6e: 619a str r2, [r3, #24]
  1078. /* USER CODE END ADC1_Init 1 */
  1079. /** Common config
  1080. */
  1081. hadc1.Instance = ADC1;
  1082. 8000a70: 4b62 ldr r3, [pc, #392] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1083. 8000a72: 4a63 ldr r2, [pc, #396] @ (8000c00 <MX_ADC1_Init+0x1b4>)
  1084. 8000a74: 601a str r2, [r3, #0]
  1085. hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1086. 8000a76: 4b61 ldr r3, [pc, #388] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1087. 8000a78: 2200 movs r2, #0
  1088. 8000a7a: 605a str r2, [r3, #4]
  1089. hadc1.Init.Resolution = ADC_RESOLUTION_16B;
  1090. 8000a7c: 4b5f ldr r3, [pc, #380] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1091. 8000a7e: 2200 movs r2, #0
  1092. 8000a80: 609a str r2, [r3, #8]
  1093. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1094. 8000a82: 4b5e ldr r3, [pc, #376] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1095. 8000a84: 2201 movs r2, #1
  1096. 8000a86: 60da str r2, [r3, #12]
  1097. hadc1.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1098. 8000a88: 4b5c ldr r3, [pc, #368] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1099. 8000a8a: 2208 movs r2, #8
  1100. 8000a8c: 611a str r2, [r3, #16]
  1101. hadc1.Init.LowPowerAutoWait = DISABLE;
  1102. 8000a8e: 4b5b ldr r3, [pc, #364] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1103. 8000a90: 2200 movs r2, #0
  1104. 8000a92: 751a strb r2, [r3, #20]
  1105. hadc1.Init.ContinuousConvMode = ENABLE;
  1106. 8000a94: 4b59 ldr r3, [pc, #356] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1107. 8000a96: 2201 movs r2, #1
  1108. 8000a98: 755a strb r2, [r3, #21]
  1109. hadc1.Init.NbrOfConversion = 7;
  1110. 8000a9a: 4b58 ldr r3, [pc, #352] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1111. 8000a9c: 2207 movs r2, #7
  1112. 8000a9e: 619a str r2, [r3, #24]
  1113. hadc1.Init.DiscontinuousConvMode = DISABLE;
  1114. 8000aa0: 4b56 ldr r3, [pc, #344] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1115. 8000aa2: 2200 movs r2, #0
  1116. 8000aa4: 771a strb r2, [r3, #28]
  1117. hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1118. 8000aa6: 4b55 ldr r3, [pc, #340] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1119. 8000aa8: f44f 629c mov.w r2, #1248 @ 0x4e0
  1120. 8000aac: 625a str r2, [r3, #36] @ 0x24
  1121. hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1122. 8000aae: 4b53 ldr r3, [pc, #332] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1123. 8000ab0: f44f 6280 mov.w r2, #1024 @ 0x400
  1124. 8000ab4: 629a str r2, [r3, #40] @ 0x28
  1125. hadc1.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1126. 8000ab6: 4b51 ldr r3, [pc, #324] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1127. 8000ab8: 2201 movs r2, #1
  1128. 8000aba: 62da str r2, [r3, #44] @ 0x2c
  1129. hadc1.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1130. 8000abc: 4b4f ldr r3, [pc, #316] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1131. 8000abe: 2200 movs r2, #0
  1132. 8000ac0: 631a str r2, [r3, #48] @ 0x30
  1133. hadc1.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1134. 8000ac2: 4b4e ldr r3, [pc, #312] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1135. 8000ac4: 2200 movs r2, #0
  1136. 8000ac6: 635a str r2, [r3, #52] @ 0x34
  1137. hadc1.Init.OversamplingMode = DISABLE;
  1138. 8000ac8: 4b4c ldr r3, [pc, #304] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1139. 8000aca: 2200 movs r2, #0
  1140. 8000acc: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1141. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  1142. 8000ad0: 484a ldr r0, [pc, #296] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1143. 8000ad2: f004 ffa9 bl 8005a28 <HAL_ADC_Init>
  1144. 8000ad6: 4603 mov r3, r0
  1145. 8000ad8: 2b00 cmp r3, #0
  1146. 8000ada: d001 beq.n 8000ae0 <MX_ADC1_Init+0x94>
  1147. {
  1148. Error_Handler();
  1149. 8000adc: f001 fa54 bl 8001f88 <Error_Handler>
  1150. }
  1151. /** Configure the ADC multi-mode
  1152. */
  1153. multimode.Mode = ADC_MODE_INDEPENDENT;
  1154. 8000ae0: 2300 movs r3, #0
  1155. 8000ae2: 61fb str r3, [r7, #28]
  1156. if (HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode) != HAL_OK)
  1157. 8000ae4: f107 031c add.w r3, r7, #28
  1158. 8000ae8: 4619 mov r1, r3
  1159. 8000aea: 4844 ldr r0, [pc, #272] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1160. 8000aec: f006 f8ba bl 8006c64 <HAL_ADCEx_MultiModeConfigChannel>
  1161. 8000af0: 4603 mov r3, r0
  1162. 8000af2: 2b00 cmp r3, #0
  1163. 8000af4: d001 beq.n 8000afa <MX_ADC1_Init+0xae>
  1164. {
  1165. Error_Handler();
  1166. 8000af6: f001 fa47 bl 8001f88 <Error_Handler>
  1167. }
  1168. /** Configure Regular Channel
  1169. */
  1170. sConfig.Channel = ADC_CHANNEL_8;
  1171. 8000afa: 4b42 ldr r3, [pc, #264] @ (8000c04 <MX_ADC1_Init+0x1b8>)
  1172. 8000afc: 603b str r3, [r7, #0]
  1173. sConfig.Rank = ADC_REGULAR_RANK_1;
  1174. 8000afe: 2306 movs r3, #6
  1175. 8000b00: 607b str r3, [r7, #4]
  1176. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1177. 8000b02: 2306 movs r3, #6
  1178. 8000b04: 60bb str r3, [r7, #8]
  1179. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1180. 8000b06: f240 73ff movw r3, #2047 @ 0x7ff
  1181. 8000b0a: 60fb str r3, [r7, #12]
  1182. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1183. 8000b0c: 2304 movs r3, #4
  1184. 8000b0e: 613b str r3, [r7, #16]
  1185. sConfig.Offset = 0;
  1186. 8000b10: 2300 movs r3, #0
  1187. 8000b12: 617b str r3, [r7, #20]
  1188. sConfig.OffsetSignedSaturation = DISABLE;
  1189. 8000b14: 2300 movs r3, #0
  1190. 8000b16: 767b strb r3, [r7, #25]
  1191. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1192. 8000b18: 463b mov r3, r7
  1193. 8000b1a: 4619 mov r1, r3
  1194. 8000b1c: 4837 ldr r0, [pc, #220] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1195. 8000b1e: f005 f9fd bl 8005f1c <HAL_ADC_ConfigChannel>
  1196. 8000b22: 4603 mov r3, r0
  1197. 8000b24: 2b00 cmp r3, #0
  1198. 8000b26: d001 beq.n 8000b2c <MX_ADC1_Init+0xe0>
  1199. {
  1200. Error_Handler();
  1201. 8000b28: f001 fa2e bl 8001f88 <Error_Handler>
  1202. }
  1203. /** Configure Regular Channel
  1204. */
  1205. sConfig.Channel = ADC_CHANNEL_7;
  1206. 8000b2c: 4b36 ldr r3, [pc, #216] @ (8000c08 <MX_ADC1_Init+0x1bc>)
  1207. 8000b2e: 603b str r3, [r7, #0]
  1208. sConfig.Rank = ADC_REGULAR_RANK_2;
  1209. 8000b30: 230c movs r3, #12
  1210. 8000b32: 607b str r3, [r7, #4]
  1211. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1212. 8000b34: 463b mov r3, r7
  1213. 8000b36: 4619 mov r1, r3
  1214. 8000b38: 4830 ldr r0, [pc, #192] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1215. 8000b3a: f005 f9ef bl 8005f1c <HAL_ADC_ConfigChannel>
  1216. 8000b3e: 4603 mov r3, r0
  1217. 8000b40: 2b00 cmp r3, #0
  1218. 8000b42: d001 beq.n 8000b48 <MX_ADC1_Init+0xfc>
  1219. {
  1220. Error_Handler();
  1221. 8000b44: f001 fa20 bl 8001f88 <Error_Handler>
  1222. }
  1223. /** Configure Regular Channel
  1224. */
  1225. sConfig.Channel = ADC_CHANNEL_9;
  1226. 8000b48: 4b30 ldr r3, [pc, #192] @ (8000c0c <MX_ADC1_Init+0x1c0>)
  1227. 8000b4a: 603b str r3, [r7, #0]
  1228. sConfig.Rank = ADC_REGULAR_RANK_3;
  1229. 8000b4c: 2312 movs r3, #18
  1230. 8000b4e: 607b str r3, [r7, #4]
  1231. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1232. 8000b50: 463b mov r3, r7
  1233. 8000b52: 4619 mov r1, r3
  1234. 8000b54: 4829 ldr r0, [pc, #164] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1235. 8000b56: f005 f9e1 bl 8005f1c <HAL_ADC_ConfigChannel>
  1236. 8000b5a: 4603 mov r3, r0
  1237. 8000b5c: 2b00 cmp r3, #0
  1238. 8000b5e: d001 beq.n 8000b64 <MX_ADC1_Init+0x118>
  1239. {
  1240. Error_Handler();
  1241. 8000b60: f001 fa12 bl 8001f88 <Error_Handler>
  1242. }
  1243. /** Configure Regular Channel
  1244. */
  1245. sConfig.Channel = ADC_CHANNEL_16;
  1246. 8000b64: 4b2a ldr r3, [pc, #168] @ (8000c10 <MX_ADC1_Init+0x1c4>)
  1247. 8000b66: 603b str r3, [r7, #0]
  1248. sConfig.Rank = ADC_REGULAR_RANK_4;
  1249. 8000b68: 2318 movs r3, #24
  1250. 8000b6a: 607b str r3, [r7, #4]
  1251. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1252. 8000b6c: 463b mov r3, r7
  1253. 8000b6e: 4619 mov r1, r3
  1254. 8000b70: 4822 ldr r0, [pc, #136] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1255. 8000b72: f005 f9d3 bl 8005f1c <HAL_ADC_ConfigChannel>
  1256. 8000b76: 4603 mov r3, r0
  1257. 8000b78: 2b00 cmp r3, #0
  1258. 8000b7a: d001 beq.n 8000b80 <MX_ADC1_Init+0x134>
  1259. {
  1260. Error_Handler();
  1261. 8000b7c: f001 fa04 bl 8001f88 <Error_Handler>
  1262. }
  1263. /** Configure Regular Channel
  1264. */
  1265. sConfig.Channel = ADC_CHANNEL_17;
  1266. 8000b80: 4b24 ldr r3, [pc, #144] @ (8000c14 <MX_ADC1_Init+0x1c8>)
  1267. 8000b82: 603b str r3, [r7, #0]
  1268. sConfig.Rank = ADC_REGULAR_RANK_5;
  1269. 8000b84: f44f 7380 mov.w r3, #256 @ 0x100
  1270. 8000b88: 607b str r3, [r7, #4]
  1271. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1272. 8000b8a: 463b mov r3, r7
  1273. 8000b8c: 4619 mov r1, r3
  1274. 8000b8e: 481b ldr r0, [pc, #108] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1275. 8000b90: f005 f9c4 bl 8005f1c <HAL_ADC_ConfigChannel>
  1276. 8000b94: 4603 mov r3, r0
  1277. 8000b96: 2b00 cmp r3, #0
  1278. 8000b98: d001 beq.n 8000b9e <MX_ADC1_Init+0x152>
  1279. {
  1280. Error_Handler();
  1281. 8000b9a: f001 f9f5 bl 8001f88 <Error_Handler>
  1282. }
  1283. /** Configure Regular Channel
  1284. */
  1285. sConfig.Channel = ADC_CHANNEL_14;
  1286. 8000b9e: 4b1e ldr r3, [pc, #120] @ (8000c18 <MX_ADC1_Init+0x1cc>)
  1287. 8000ba0: 603b str r3, [r7, #0]
  1288. sConfig.Rank = ADC_REGULAR_RANK_6;
  1289. 8000ba2: f44f 7383 mov.w r3, #262 @ 0x106
  1290. 8000ba6: 607b str r3, [r7, #4]
  1291. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1292. 8000ba8: 463b mov r3, r7
  1293. 8000baa: 4619 mov r1, r3
  1294. 8000bac: 4813 ldr r0, [pc, #76] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1295. 8000bae: f005 f9b5 bl 8005f1c <HAL_ADC_ConfigChannel>
  1296. 8000bb2: 4603 mov r3, r0
  1297. 8000bb4: 2b00 cmp r3, #0
  1298. 8000bb6: d001 beq.n 8000bbc <MX_ADC1_Init+0x170>
  1299. {
  1300. Error_Handler();
  1301. 8000bb8: f001 f9e6 bl 8001f88 <Error_Handler>
  1302. }
  1303. /** Configure Regular Channel
  1304. */
  1305. sConfig.Channel = ADC_CHANNEL_15;
  1306. 8000bbc: 4b17 ldr r3, [pc, #92] @ (8000c1c <MX_ADC1_Init+0x1d0>)
  1307. 8000bbe: 603b str r3, [r7, #0]
  1308. sConfig.Rank = ADC_REGULAR_RANK_7;
  1309. 8000bc0: f44f 7386 mov.w r3, #268 @ 0x10c
  1310. 8000bc4: 607b str r3, [r7, #4]
  1311. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1312. 8000bc6: 463b mov r3, r7
  1313. 8000bc8: 4619 mov r1, r3
  1314. 8000bca: 480c ldr r0, [pc, #48] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1315. 8000bcc: f005 f9a6 bl 8005f1c <HAL_ADC_ConfigChannel>
  1316. 8000bd0: 4603 mov r3, r0
  1317. 8000bd2: 2b00 cmp r3, #0
  1318. 8000bd4: d001 beq.n 8000bda <MX_ADC1_Init+0x18e>
  1319. {
  1320. Error_Handler();
  1321. 8000bd6: f001 f9d7 bl 8001f88 <Error_Handler>
  1322. }
  1323. /* USER CODE BEGIN ADC1_Init 2 */
  1324. if (HAL_ADCEx_Calibration_Start(&hadc1, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1325. 8000bda: f240 72ff movw r2, #2047 @ 0x7ff
  1326. 8000bde: f04f 1101 mov.w r1, #65537 @ 0x10001
  1327. 8000be2: 4806 ldr r0, [pc, #24] @ (8000bfc <MX_ADC1_Init+0x1b0>)
  1328. 8000be4: f005 ffda bl 8006b9c <HAL_ADCEx_Calibration_Start>
  1329. 8000be8: 4603 mov r3, r0
  1330. 8000bea: 2b00 cmp r3, #0
  1331. 8000bec: d001 beq.n 8000bf2 <MX_ADC1_Init+0x1a6>
  1332. {
  1333. Error_Handler();
  1334. 8000bee: f001 f9cb bl 8001f88 <Error_Handler>
  1335. }
  1336. /* USER CODE END ADC1_Init 2 */
  1337. }
  1338. 8000bf2: bf00 nop
  1339. 8000bf4: 3728 adds r7, #40 @ 0x28
  1340. 8000bf6: 46bd mov sp, r7
  1341. 8000bf8: bd80 pop {r7, pc}
  1342. 8000bfa: bf00 nop
  1343. 8000bfc: 24000140 .word 0x24000140
  1344. 8000c00: 40022000 .word 0x40022000
  1345. 8000c04: 21800100 .word 0x21800100
  1346. 8000c08: 1d500080 .word 0x1d500080
  1347. 8000c0c: 25b00200 .word 0x25b00200
  1348. 8000c10: 43210000 .word 0x43210000
  1349. 8000c14: 47520000 .word 0x47520000
  1350. 8000c18: 3ac04000 .word 0x3ac04000
  1351. 8000c1c: 3ef08000 .word 0x3ef08000
  1352. 08000c20 <MX_ADC2_Init>:
  1353. * @brief ADC2 Initialization Function
  1354. * @param None
  1355. * @retval None
  1356. */
  1357. static void MX_ADC2_Init(void)
  1358. {
  1359. 8000c20: b580 push {r7, lr}
  1360. 8000c22: b088 sub sp, #32
  1361. 8000c24: af00 add r7, sp, #0
  1362. /* USER CODE BEGIN ADC2_Init 0 */
  1363. /* USER CODE END ADC2_Init 0 */
  1364. ADC_ChannelConfTypeDef sConfig = {0};
  1365. 8000c26: 1d3b adds r3, r7, #4
  1366. 8000c28: 2200 movs r2, #0
  1367. 8000c2a: 601a str r2, [r3, #0]
  1368. 8000c2c: 605a str r2, [r3, #4]
  1369. 8000c2e: 609a str r2, [r3, #8]
  1370. 8000c30: 60da str r2, [r3, #12]
  1371. 8000c32: 611a str r2, [r3, #16]
  1372. 8000c34: 615a str r2, [r3, #20]
  1373. 8000c36: 619a str r2, [r3, #24]
  1374. /* USER CODE END ADC2_Init 1 */
  1375. /** Common config
  1376. */
  1377. hadc2.Instance = ADC2;
  1378. 8000c38: 4b3e ldr r3, [pc, #248] @ (8000d34 <MX_ADC2_Init+0x114>)
  1379. 8000c3a: 4a3f ldr r2, [pc, #252] @ (8000d38 <MX_ADC2_Init+0x118>)
  1380. 8000c3c: 601a str r2, [r3, #0]
  1381. hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1382. 8000c3e: 4b3d ldr r3, [pc, #244] @ (8000d34 <MX_ADC2_Init+0x114>)
  1383. 8000c40: 2200 movs r2, #0
  1384. 8000c42: 605a str r2, [r3, #4]
  1385. hadc2.Init.Resolution = ADC_RESOLUTION_16B;
  1386. 8000c44: 4b3b ldr r3, [pc, #236] @ (8000d34 <MX_ADC2_Init+0x114>)
  1387. 8000c46: 2200 movs r2, #0
  1388. 8000c48: 609a str r2, [r3, #8]
  1389. hadc2.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1390. 8000c4a: 4b3a ldr r3, [pc, #232] @ (8000d34 <MX_ADC2_Init+0x114>)
  1391. 8000c4c: 2201 movs r2, #1
  1392. 8000c4e: 60da str r2, [r3, #12]
  1393. hadc2.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1394. 8000c50: 4b38 ldr r3, [pc, #224] @ (8000d34 <MX_ADC2_Init+0x114>)
  1395. 8000c52: 2208 movs r2, #8
  1396. 8000c54: 611a str r2, [r3, #16]
  1397. hadc2.Init.LowPowerAutoWait = DISABLE;
  1398. 8000c56: 4b37 ldr r3, [pc, #220] @ (8000d34 <MX_ADC2_Init+0x114>)
  1399. 8000c58: 2200 movs r2, #0
  1400. 8000c5a: 751a strb r2, [r3, #20]
  1401. hadc2.Init.ContinuousConvMode = ENABLE;
  1402. 8000c5c: 4b35 ldr r3, [pc, #212] @ (8000d34 <MX_ADC2_Init+0x114>)
  1403. 8000c5e: 2201 movs r2, #1
  1404. 8000c60: 755a strb r2, [r3, #21]
  1405. hadc2.Init.NbrOfConversion = 3;
  1406. 8000c62: 4b34 ldr r3, [pc, #208] @ (8000d34 <MX_ADC2_Init+0x114>)
  1407. 8000c64: 2203 movs r2, #3
  1408. 8000c66: 619a str r2, [r3, #24]
  1409. hadc2.Init.DiscontinuousConvMode = DISABLE;
  1410. 8000c68: 4b32 ldr r3, [pc, #200] @ (8000d34 <MX_ADC2_Init+0x114>)
  1411. 8000c6a: 2200 movs r2, #0
  1412. 8000c6c: 771a strb r2, [r3, #28]
  1413. hadc2.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1414. 8000c6e: 4b31 ldr r3, [pc, #196] @ (8000d34 <MX_ADC2_Init+0x114>)
  1415. 8000c70: f44f 629c mov.w r2, #1248 @ 0x4e0
  1416. 8000c74: 625a str r2, [r3, #36] @ 0x24
  1417. hadc2.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1418. 8000c76: 4b2f ldr r3, [pc, #188] @ (8000d34 <MX_ADC2_Init+0x114>)
  1419. 8000c78: f44f 6280 mov.w r2, #1024 @ 0x400
  1420. 8000c7c: 629a str r2, [r3, #40] @ 0x28
  1421. hadc2.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1422. 8000c7e: 4b2d ldr r3, [pc, #180] @ (8000d34 <MX_ADC2_Init+0x114>)
  1423. 8000c80: 2201 movs r2, #1
  1424. 8000c82: 62da str r2, [r3, #44] @ 0x2c
  1425. hadc2.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1426. 8000c84: 4b2b ldr r3, [pc, #172] @ (8000d34 <MX_ADC2_Init+0x114>)
  1427. 8000c86: 2200 movs r2, #0
  1428. 8000c88: 631a str r2, [r3, #48] @ 0x30
  1429. hadc2.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1430. 8000c8a: 4b2a ldr r3, [pc, #168] @ (8000d34 <MX_ADC2_Init+0x114>)
  1431. 8000c8c: 2200 movs r2, #0
  1432. 8000c8e: 635a str r2, [r3, #52] @ 0x34
  1433. hadc2.Init.OversamplingMode = DISABLE;
  1434. 8000c90: 4b28 ldr r3, [pc, #160] @ (8000d34 <MX_ADC2_Init+0x114>)
  1435. 8000c92: 2200 movs r2, #0
  1436. 8000c94: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1437. if (HAL_ADC_Init(&hadc2) != HAL_OK)
  1438. 8000c98: 4826 ldr r0, [pc, #152] @ (8000d34 <MX_ADC2_Init+0x114>)
  1439. 8000c9a: f004 fec5 bl 8005a28 <HAL_ADC_Init>
  1440. 8000c9e: 4603 mov r3, r0
  1441. 8000ca0: 2b00 cmp r3, #0
  1442. 8000ca2: d001 beq.n 8000ca8 <MX_ADC2_Init+0x88>
  1443. {
  1444. Error_Handler();
  1445. 8000ca4: f001 f970 bl 8001f88 <Error_Handler>
  1446. }
  1447. /** Configure Regular Channel
  1448. */
  1449. sConfig.Channel = ADC_CHANNEL_3;
  1450. 8000ca8: 4b24 ldr r3, [pc, #144] @ (8000d3c <MX_ADC2_Init+0x11c>)
  1451. 8000caa: 607b str r3, [r7, #4]
  1452. sConfig.Rank = ADC_REGULAR_RANK_1;
  1453. 8000cac: 2306 movs r3, #6
  1454. 8000cae: 60bb str r3, [r7, #8]
  1455. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1456. 8000cb0: 2306 movs r3, #6
  1457. 8000cb2: 60fb str r3, [r7, #12]
  1458. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1459. 8000cb4: f240 73ff movw r3, #2047 @ 0x7ff
  1460. 8000cb8: 613b str r3, [r7, #16]
  1461. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1462. 8000cba: 2304 movs r3, #4
  1463. 8000cbc: 617b str r3, [r7, #20]
  1464. sConfig.Offset = 0;
  1465. 8000cbe: 2300 movs r3, #0
  1466. 8000cc0: 61bb str r3, [r7, #24]
  1467. sConfig.OffsetSignedSaturation = DISABLE;
  1468. 8000cc2: 2300 movs r3, #0
  1469. 8000cc4: 777b strb r3, [r7, #29]
  1470. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1471. 8000cc6: 1d3b adds r3, r7, #4
  1472. 8000cc8: 4619 mov r1, r3
  1473. 8000cca: 481a ldr r0, [pc, #104] @ (8000d34 <MX_ADC2_Init+0x114>)
  1474. 8000ccc: f005 f926 bl 8005f1c <HAL_ADC_ConfigChannel>
  1475. 8000cd0: 4603 mov r3, r0
  1476. 8000cd2: 2b00 cmp r3, #0
  1477. 8000cd4: d001 beq.n 8000cda <MX_ADC2_Init+0xba>
  1478. {
  1479. Error_Handler();
  1480. 8000cd6: f001 f957 bl 8001f88 <Error_Handler>
  1481. }
  1482. /** Configure Regular Channel
  1483. */
  1484. sConfig.Channel = ADC_CHANNEL_4;
  1485. 8000cda: 4b19 ldr r3, [pc, #100] @ (8000d40 <MX_ADC2_Init+0x120>)
  1486. 8000cdc: 607b str r3, [r7, #4]
  1487. sConfig.Rank = ADC_REGULAR_RANK_2;
  1488. 8000cde: 230c movs r3, #12
  1489. 8000ce0: 60bb str r3, [r7, #8]
  1490. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1491. 8000ce2: 1d3b adds r3, r7, #4
  1492. 8000ce4: 4619 mov r1, r3
  1493. 8000ce6: 4813 ldr r0, [pc, #76] @ (8000d34 <MX_ADC2_Init+0x114>)
  1494. 8000ce8: f005 f918 bl 8005f1c <HAL_ADC_ConfigChannel>
  1495. 8000cec: 4603 mov r3, r0
  1496. 8000cee: 2b00 cmp r3, #0
  1497. 8000cf0: d001 beq.n 8000cf6 <MX_ADC2_Init+0xd6>
  1498. {
  1499. Error_Handler();
  1500. 8000cf2: f001 f949 bl 8001f88 <Error_Handler>
  1501. }
  1502. /** Configure Regular Channel
  1503. */
  1504. sConfig.Channel = ADC_CHANNEL_5;
  1505. 8000cf6: 4b13 ldr r3, [pc, #76] @ (8000d44 <MX_ADC2_Init+0x124>)
  1506. 8000cf8: 607b str r3, [r7, #4]
  1507. sConfig.Rank = ADC_REGULAR_RANK_3;
  1508. 8000cfa: 2312 movs r3, #18
  1509. 8000cfc: 60bb str r3, [r7, #8]
  1510. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1511. 8000cfe: 1d3b adds r3, r7, #4
  1512. 8000d00: 4619 mov r1, r3
  1513. 8000d02: 480c ldr r0, [pc, #48] @ (8000d34 <MX_ADC2_Init+0x114>)
  1514. 8000d04: f005 f90a bl 8005f1c <HAL_ADC_ConfigChannel>
  1515. 8000d08: 4603 mov r3, r0
  1516. 8000d0a: 2b00 cmp r3, #0
  1517. 8000d0c: d001 beq.n 8000d12 <MX_ADC2_Init+0xf2>
  1518. {
  1519. Error_Handler();
  1520. 8000d0e: f001 f93b bl 8001f88 <Error_Handler>
  1521. }
  1522. /* USER CODE BEGIN ADC2_Init 2 */
  1523. if (HAL_ADCEx_Calibration_Start(&hadc2, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1524. 8000d12: f240 72ff movw r2, #2047 @ 0x7ff
  1525. 8000d16: f04f 1101 mov.w r1, #65537 @ 0x10001
  1526. 8000d1a: 4806 ldr r0, [pc, #24] @ (8000d34 <MX_ADC2_Init+0x114>)
  1527. 8000d1c: f005 ff3e bl 8006b9c <HAL_ADCEx_Calibration_Start>
  1528. 8000d20: 4603 mov r3, r0
  1529. 8000d22: 2b00 cmp r3, #0
  1530. 8000d24: d001 beq.n 8000d2a <MX_ADC2_Init+0x10a>
  1531. {
  1532. Error_Handler();
  1533. 8000d26: f001 f92f bl 8001f88 <Error_Handler>
  1534. }
  1535. /* USER CODE END ADC2_Init 2 */
  1536. }
  1537. 8000d2a: bf00 nop
  1538. 8000d2c: 3720 adds r7, #32
  1539. 8000d2e: 46bd mov sp, r7
  1540. 8000d30: bd80 pop {r7, pc}
  1541. 8000d32: bf00 nop
  1542. 8000d34: 240001a4 .word 0x240001a4
  1543. 8000d38: 40022100 .word 0x40022100
  1544. 8000d3c: 0c900008 .word 0x0c900008
  1545. 8000d40: 10c00010 .word 0x10c00010
  1546. 8000d44: 14f00020 .word 0x14f00020
  1547. 08000d48 <MX_ADC3_Init>:
  1548. * @brief ADC3 Initialization Function
  1549. * @param None
  1550. * @retval None
  1551. */
  1552. static void MX_ADC3_Init(void)
  1553. {
  1554. 8000d48: b580 push {r7, lr}
  1555. 8000d4a: b088 sub sp, #32
  1556. 8000d4c: af00 add r7, sp, #0
  1557. /* USER CODE BEGIN ADC3_Init 0 */
  1558. /* USER CODE END ADC3_Init 0 */
  1559. ADC_ChannelConfTypeDef sConfig = {0};
  1560. 8000d4e: 1d3b adds r3, r7, #4
  1561. 8000d50: 2200 movs r2, #0
  1562. 8000d52: 601a str r2, [r3, #0]
  1563. 8000d54: 605a str r2, [r3, #4]
  1564. 8000d56: 609a str r2, [r3, #8]
  1565. 8000d58: 60da str r2, [r3, #12]
  1566. 8000d5a: 611a str r2, [r3, #16]
  1567. 8000d5c: 615a str r2, [r3, #20]
  1568. 8000d5e: 619a str r2, [r3, #24]
  1569. /* USER CODE END ADC3_Init 1 */
  1570. /** Common config
  1571. */
  1572. hadc3.Instance = ADC3;
  1573. 8000d60: 4b4b ldr r3, [pc, #300] @ (8000e90 <MX_ADC3_Init+0x148>)
  1574. 8000d62: 4a4c ldr r2, [pc, #304] @ (8000e94 <MX_ADC3_Init+0x14c>)
  1575. 8000d64: 601a str r2, [r3, #0]
  1576. hadc3.Init.Resolution = ADC_RESOLUTION_16B;
  1577. 8000d66: 4b4a ldr r3, [pc, #296] @ (8000e90 <MX_ADC3_Init+0x148>)
  1578. 8000d68: 2200 movs r2, #0
  1579. 8000d6a: 609a str r2, [r3, #8]
  1580. hadc3.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1581. 8000d6c: 4b48 ldr r3, [pc, #288] @ (8000e90 <MX_ADC3_Init+0x148>)
  1582. 8000d6e: 2201 movs r2, #1
  1583. 8000d70: 60da str r2, [r3, #12]
  1584. hadc3.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1585. 8000d72: 4b47 ldr r3, [pc, #284] @ (8000e90 <MX_ADC3_Init+0x148>)
  1586. 8000d74: 2208 movs r2, #8
  1587. 8000d76: 611a str r2, [r3, #16]
  1588. hadc3.Init.LowPowerAutoWait = DISABLE;
  1589. 8000d78: 4b45 ldr r3, [pc, #276] @ (8000e90 <MX_ADC3_Init+0x148>)
  1590. 8000d7a: 2200 movs r2, #0
  1591. 8000d7c: 751a strb r2, [r3, #20]
  1592. hadc3.Init.ContinuousConvMode = ENABLE;
  1593. 8000d7e: 4b44 ldr r3, [pc, #272] @ (8000e90 <MX_ADC3_Init+0x148>)
  1594. 8000d80: 2201 movs r2, #1
  1595. 8000d82: 755a strb r2, [r3, #21]
  1596. hadc3.Init.NbrOfConversion = 5;
  1597. 8000d84: 4b42 ldr r3, [pc, #264] @ (8000e90 <MX_ADC3_Init+0x148>)
  1598. 8000d86: 2205 movs r2, #5
  1599. 8000d88: 619a str r2, [r3, #24]
  1600. hadc3.Init.DiscontinuousConvMode = DISABLE;
  1601. 8000d8a: 4b41 ldr r3, [pc, #260] @ (8000e90 <MX_ADC3_Init+0x148>)
  1602. 8000d8c: 2200 movs r2, #0
  1603. 8000d8e: 771a strb r2, [r3, #28]
  1604. hadc3.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1605. 8000d90: 4b3f ldr r3, [pc, #252] @ (8000e90 <MX_ADC3_Init+0x148>)
  1606. 8000d92: f44f 629c mov.w r2, #1248 @ 0x4e0
  1607. 8000d96: 625a str r2, [r3, #36] @ 0x24
  1608. hadc3.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1609. 8000d98: 4b3d ldr r3, [pc, #244] @ (8000e90 <MX_ADC3_Init+0x148>)
  1610. 8000d9a: f44f 6280 mov.w r2, #1024 @ 0x400
  1611. 8000d9e: 629a str r2, [r3, #40] @ 0x28
  1612. hadc3.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1613. 8000da0: 4b3b ldr r3, [pc, #236] @ (8000e90 <MX_ADC3_Init+0x148>)
  1614. 8000da2: 2201 movs r2, #1
  1615. 8000da4: 62da str r2, [r3, #44] @ 0x2c
  1616. hadc3.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1617. 8000da6: 4b3a ldr r3, [pc, #232] @ (8000e90 <MX_ADC3_Init+0x148>)
  1618. 8000da8: 2200 movs r2, #0
  1619. 8000daa: 631a str r2, [r3, #48] @ 0x30
  1620. hadc3.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1621. 8000dac: 4b38 ldr r3, [pc, #224] @ (8000e90 <MX_ADC3_Init+0x148>)
  1622. 8000dae: 2200 movs r2, #0
  1623. 8000db0: 635a str r2, [r3, #52] @ 0x34
  1624. hadc3.Init.OversamplingMode = DISABLE;
  1625. 8000db2: 4b37 ldr r3, [pc, #220] @ (8000e90 <MX_ADC3_Init+0x148>)
  1626. 8000db4: 2200 movs r2, #0
  1627. 8000db6: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1628. if (HAL_ADC_Init(&hadc3) != HAL_OK)
  1629. 8000dba: 4835 ldr r0, [pc, #212] @ (8000e90 <MX_ADC3_Init+0x148>)
  1630. 8000dbc: f004 fe34 bl 8005a28 <HAL_ADC_Init>
  1631. 8000dc0: 4603 mov r3, r0
  1632. 8000dc2: 2b00 cmp r3, #0
  1633. 8000dc4: d001 beq.n 8000dca <MX_ADC3_Init+0x82>
  1634. {
  1635. Error_Handler();
  1636. 8000dc6: f001 f8df bl 8001f88 <Error_Handler>
  1637. }
  1638. /** Configure Regular Channel
  1639. */
  1640. sConfig.Channel = ADC_CHANNEL_0;
  1641. 8000dca: 2301 movs r3, #1
  1642. 8000dcc: 607b str r3, [r7, #4]
  1643. sConfig.Rank = ADC_REGULAR_RANK_1;
  1644. 8000dce: 2306 movs r3, #6
  1645. 8000dd0: 60bb str r3, [r7, #8]
  1646. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1647. 8000dd2: 2306 movs r3, #6
  1648. 8000dd4: 60fb str r3, [r7, #12]
  1649. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1650. 8000dd6: f240 73ff movw r3, #2047 @ 0x7ff
  1651. 8000dda: 613b str r3, [r7, #16]
  1652. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1653. 8000ddc: 2304 movs r3, #4
  1654. 8000dde: 617b str r3, [r7, #20]
  1655. sConfig.Offset = 0;
  1656. 8000de0: 2300 movs r3, #0
  1657. 8000de2: 61bb str r3, [r7, #24]
  1658. sConfig.OffsetSignedSaturation = DISABLE;
  1659. 8000de4: 2300 movs r3, #0
  1660. 8000de6: 777b strb r3, [r7, #29]
  1661. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1662. 8000de8: 1d3b adds r3, r7, #4
  1663. 8000dea: 4619 mov r1, r3
  1664. 8000dec: 4828 ldr r0, [pc, #160] @ (8000e90 <MX_ADC3_Init+0x148>)
  1665. 8000dee: f005 f895 bl 8005f1c <HAL_ADC_ConfigChannel>
  1666. 8000df2: 4603 mov r3, r0
  1667. 8000df4: 2b00 cmp r3, #0
  1668. 8000df6: d001 beq.n 8000dfc <MX_ADC3_Init+0xb4>
  1669. {
  1670. Error_Handler();
  1671. 8000df8: f001 f8c6 bl 8001f88 <Error_Handler>
  1672. }
  1673. /** Configure Regular Channel
  1674. */
  1675. sConfig.Channel = ADC_CHANNEL_1;
  1676. 8000dfc: 4b26 ldr r3, [pc, #152] @ (8000e98 <MX_ADC3_Init+0x150>)
  1677. 8000dfe: 607b str r3, [r7, #4]
  1678. sConfig.Rank = ADC_REGULAR_RANK_2;
  1679. 8000e00: 230c movs r3, #12
  1680. 8000e02: 60bb str r3, [r7, #8]
  1681. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1682. 8000e04: 1d3b adds r3, r7, #4
  1683. 8000e06: 4619 mov r1, r3
  1684. 8000e08: 4821 ldr r0, [pc, #132] @ (8000e90 <MX_ADC3_Init+0x148>)
  1685. 8000e0a: f005 f887 bl 8005f1c <HAL_ADC_ConfigChannel>
  1686. 8000e0e: 4603 mov r3, r0
  1687. 8000e10: 2b00 cmp r3, #0
  1688. 8000e12: d001 beq.n 8000e18 <MX_ADC3_Init+0xd0>
  1689. {
  1690. Error_Handler();
  1691. 8000e14: f001 f8b8 bl 8001f88 <Error_Handler>
  1692. }
  1693. /** Configure Regular Channel
  1694. */
  1695. sConfig.Channel = ADC_CHANNEL_10;
  1696. 8000e18: 4b20 ldr r3, [pc, #128] @ (8000e9c <MX_ADC3_Init+0x154>)
  1697. 8000e1a: 607b str r3, [r7, #4]
  1698. sConfig.Rank = ADC_REGULAR_RANK_3;
  1699. 8000e1c: 2312 movs r3, #18
  1700. 8000e1e: 60bb str r3, [r7, #8]
  1701. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1702. 8000e20: 1d3b adds r3, r7, #4
  1703. 8000e22: 4619 mov r1, r3
  1704. 8000e24: 481a ldr r0, [pc, #104] @ (8000e90 <MX_ADC3_Init+0x148>)
  1705. 8000e26: f005 f879 bl 8005f1c <HAL_ADC_ConfigChannel>
  1706. 8000e2a: 4603 mov r3, r0
  1707. 8000e2c: 2b00 cmp r3, #0
  1708. 8000e2e: d001 beq.n 8000e34 <MX_ADC3_Init+0xec>
  1709. {
  1710. Error_Handler();
  1711. 8000e30: f001 f8aa bl 8001f88 <Error_Handler>
  1712. }
  1713. /** Configure Regular Channel
  1714. */
  1715. sConfig.Channel = ADC_CHANNEL_11;
  1716. 8000e34: 4b1a ldr r3, [pc, #104] @ (8000ea0 <MX_ADC3_Init+0x158>)
  1717. 8000e36: 607b str r3, [r7, #4]
  1718. sConfig.Rank = ADC_REGULAR_RANK_4;
  1719. 8000e38: 2318 movs r3, #24
  1720. 8000e3a: 60bb str r3, [r7, #8]
  1721. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1722. 8000e3c: 1d3b adds r3, r7, #4
  1723. 8000e3e: 4619 mov r1, r3
  1724. 8000e40: 4813 ldr r0, [pc, #76] @ (8000e90 <MX_ADC3_Init+0x148>)
  1725. 8000e42: f005 f86b bl 8005f1c <HAL_ADC_ConfigChannel>
  1726. 8000e46: 4603 mov r3, r0
  1727. 8000e48: 2b00 cmp r3, #0
  1728. 8000e4a: d001 beq.n 8000e50 <MX_ADC3_Init+0x108>
  1729. {
  1730. Error_Handler();
  1731. 8000e4c: f001 f89c bl 8001f88 <Error_Handler>
  1732. }
  1733. /** Configure Regular Channel
  1734. */
  1735. sConfig.Channel = ADC_CHANNEL_VREFINT;
  1736. 8000e50: 4b14 ldr r3, [pc, #80] @ (8000ea4 <MX_ADC3_Init+0x15c>)
  1737. 8000e52: 607b str r3, [r7, #4]
  1738. sConfig.Rank = ADC_REGULAR_RANK_5;
  1739. 8000e54: f44f 7380 mov.w r3, #256 @ 0x100
  1740. 8000e58: 60bb str r3, [r7, #8]
  1741. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1742. 8000e5a: 1d3b adds r3, r7, #4
  1743. 8000e5c: 4619 mov r1, r3
  1744. 8000e5e: 480c ldr r0, [pc, #48] @ (8000e90 <MX_ADC3_Init+0x148>)
  1745. 8000e60: f005 f85c bl 8005f1c <HAL_ADC_ConfigChannel>
  1746. 8000e64: 4603 mov r3, r0
  1747. 8000e66: 2b00 cmp r3, #0
  1748. 8000e68: d001 beq.n 8000e6e <MX_ADC3_Init+0x126>
  1749. {
  1750. Error_Handler();
  1751. 8000e6a: f001 f88d bl 8001f88 <Error_Handler>
  1752. }
  1753. /* USER CODE BEGIN ADC3_Init 2 */
  1754. if (HAL_ADCEx_Calibration_Start(&hadc3, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1755. 8000e6e: f240 72ff movw r2, #2047 @ 0x7ff
  1756. 8000e72: f04f 1101 mov.w r1, #65537 @ 0x10001
  1757. 8000e76: 4806 ldr r0, [pc, #24] @ (8000e90 <MX_ADC3_Init+0x148>)
  1758. 8000e78: f005 fe90 bl 8006b9c <HAL_ADCEx_Calibration_Start>
  1759. 8000e7c: 4603 mov r3, r0
  1760. 8000e7e: 2b00 cmp r3, #0
  1761. 8000e80: d001 beq.n 8000e86 <MX_ADC3_Init+0x13e>
  1762. {
  1763. Error_Handler();
  1764. 8000e82: f001 f881 bl 8001f88 <Error_Handler>
  1765. }
  1766. /* USER CODE END ADC3_Init 2 */
  1767. }
  1768. 8000e86: bf00 nop
  1769. 8000e88: 3720 adds r7, #32
  1770. 8000e8a: 46bd mov sp, r7
  1771. 8000e8c: bd80 pop {r7, pc}
  1772. 8000e8e: bf00 nop
  1773. 8000e90: 24000208 .word 0x24000208
  1774. 8000e94: 58026000 .word 0x58026000
  1775. 8000e98: 04300002 .word 0x04300002
  1776. 8000e9c: 2a000400 .word 0x2a000400
  1777. 8000ea0: 2e300800 .word 0x2e300800
  1778. 8000ea4: cfb80000 .word 0xcfb80000
  1779. 08000ea8 <MX_COMP1_Init>:
  1780. * @brief COMP1 Initialization Function
  1781. * @param None
  1782. * @retval None
  1783. */
  1784. static void MX_COMP1_Init(void)
  1785. {
  1786. 8000ea8: b580 push {r7, lr}
  1787. 8000eaa: af00 add r7, sp, #0
  1788. /* USER CODE END COMP1_Init 0 */
  1789. /* USER CODE BEGIN COMP1_Init 1 */
  1790. /* USER CODE END COMP1_Init 1 */
  1791. hcomp1.Instance = COMP1;
  1792. 8000eac: 4b12 ldr r3, [pc, #72] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1793. 8000eae: 4a13 ldr r2, [pc, #76] @ (8000efc <MX_COMP1_Init+0x54>)
  1794. 8000eb0: 601a str r2, [r3, #0]
  1795. hcomp1.Init.InvertingInput = COMP_INPUT_MINUS_3_4VREFINT;
  1796. 8000eb2: 4b11 ldr r3, [pc, #68] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1797. 8000eb4: 4a12 ldr r2, [pc, #72] @ (8000f00 <MX_COMP1_Init+0x58>)
  1798. 8000eb6: 611a str r2, [r3, #16]
  1799. hcomp1.Init.NonInvertingInput = COMP_INPUT_PLUS_IO2;
  1800. 8000eb8: 4b0f ldr r3, [pc, #60] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1801. 8000eba: f44f 1280 mov.w r2, #1048576 @ 0x100000
  1802. 8000ebe: 60da str r2, [r3, #12]
  1803. hcomp1.Init.OutputPol = COMP_OUTPUTPOL_NONINVERTED;
  1804. 8000ec0: 4b0d ldr r3, [pc, #52] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1805. 8000ec2: 2200 movs r2, #0
  1806. 8000ec4: 619a str r2, [r3, #24]
  1807. hcomp1.Init.Hysteresis = COMP_HYSTERESIS_NONE;
  1808. 8000ec6: 4b0c ldr r3, [pc, #48] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1809. 8000ec8: 2200 movs r2, #0
  1810. 8000eca: 615a str r2, [r3, #20]
  1811. hcomp1.Init.BlankingSrce = COMP_BLANKINGSRC_NONE;
  1812. 8000ecc: 4b0a ldr r3, [pc, #40] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1813. 8000ece: 2200 movs r2, #0
  1814. 8000ed0: 61da str r2, [r3, #28]
  1815. hcomp1.Init.Mode = COMP_POWERMODE_HIGHSPEED;
  1816. 8000ed2: 4b09 ldr r3, [pc, #36] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1817. 8000ed4: 2200 movs r2, #0
  1818. 8000ed6: 609a str r2, [r3, #8]
  1819. hcomp1.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
  1820. 8000ed8: 4b07 ldr r3, [pc, #28] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1821. 8000eda: 2200 movs r2, #0
  1822. 8000edc: 605a str r2, [r3, #4]
  1823. hcomp1.Init.TriggerMode = COMP_TRIGGERMODE_NONE;
  1824. 8000ede: 4b06 ldr r3, [pc, #24] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1825. 8000ee0: 2200 movs r2, #0
  1826. 8000ee2: 621a str r2, [r3, #32]
  1827. if (HAL_COMP_Init(&hcomp1) != HAL_OK)
  1828. 8000ee4: 4804 ldr r0, [pc, #16] @ (8000ef8 <MX_COMP1_Init+0x50>)
  1829. 8000ee6: f005 ff9b bl 8006e20 <HAL_COMP_Init>
  1830. 8000eea: 4603 mov r3, r0
  1831. 8000eec: 2b00 cmp r3, #0
  1832. 8000eee: d001 beq.n 8000ef4 <MX_COMP1_Init+0x4c>
  1833. {
  1834. Error_Handler();
  1835. 8000ef0: f001 f84a bl 8001f88 <Error_Handler>
  1836. }
  1837. /* USER CODE BEGIN COMP1_Init 2 */
  1838. /* USER CODE END COMP1_Init 2 */
  1839. }
  1840. 8000ef4: bf00 nop
  1841. 8000ef6: bd80 pop {r7, pc}
  1842. 8000ef8: 240003d4 .word 0x240003d4
  1843. 8000efc: 5800380c .word 0x5800380c
  1844. 8000f00: 00020006 .word 0x00020006
  1845. 08000f04 <MX_CRC_Init>:
  1846. * @brief CRC Initialization Function
  1847. * @param None
  1848. * @retval None
  1849. */
  1850. static void MX_CRC_Init(void)
  1851. {
  1852. 8000f04: b580 push {r7, lr}
  1853. 8000f06: af00 add r7, sp, #0
  1854. /* USER CODE END CRC_Init 0 */
  1855. /* USER CODE BEGIN CRC_Init 1 */
  1856. /* USER CODE END CRC_Init 1 */
  1857. hcrc.Instance = CRC;
  1858. 8000f08: 4b11 ldr r3, [pc, #68] @ (8000f50 <MX_CRC_Init+0x4c>)
  1859. 8000f0a: 4a12 ldr r2, [pc, #72] @ (8000f54 <MX_CRC_Init+0x50>)
  1860. 8000f0c: 601a str r2, [r3, #0]
  1861. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  1862. 8000f0e: 4b10 ldr r3, [pc, #64] @ (8000f50 <MX_CRC_Init+0x4c>)
  1863. 8000f10: 2201 movs r2, #1
  1864. 8000f12: 711a strb r2, [r3, #4]
  1865. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  1866. 8000f14: 4b0e ldr r3, [pc, #56] @ (8000f50 <MX_CRC_Init+0x4c>)
  1867. 8000f16: 2200 movs r2, #0
  1868. 8000f18: 715a strb r2, [r3, #5]
  1869. hcrc.Init.GeneratingPolynomial = 4129;
  1870. 8000f1a: 4b0d ldr r3, [pc, #52] @ (8000f50 <MX_CRC_Init+0x4c>)
  1871. 8000f1c: f241 0221 movw r2, #4129 @ 0x1021
  1872. 8000f20: 609a str r2, [r3, #8]
  1873. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  1874. 8000f22: 4b0b ldr r3, [pc, #44] @ (8000f50 <MX_CRC_Init+0x4c>)
  1875. 8000f24: 2208 movs r2, #8
  1876. 8000f26: 60da str r2, [r3, #12]
  1877. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  1878. 8000f28: 4b09 ldr r3, [pc, #36] @ (8000f50 <MX_CRC_Init+0x4c>)
  1879. 8000f2a: 2200 movs r2, #0
  1880. 8000f2c: 615a str r2, [r3, #20]
  1881. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  1882. 8000f2e: 4b08 ldr r3, [pc, #32] @ (8000f50 <MX_CRC_Init+0x4c>)
  1883. 8000f30: 2200 movs r2, #0
  1884. 8000f32: 619a str r2, [r3, #24]
  1885. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  1886. 8000f34: 4b06 ldr r3, [pc, #24] @ (8000f50 <MX_CRC_Init+0x4c>)
  1887. 8000f36: 2201 movs r2, #1
  1888. 8000f38: 621a str r2, [r3, #32]
  1889. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  1890. 8000f3a: 4805 ldr r0, [pc, #20] @ (8000f50 <MX_CRC_Init+0x4c>)
  1891. 8000f3c: f006 fa5a bl 80073f4 <HAL_CRC_Init>
  1892. 8000f40: 4603 mov r3, r0
  1893. 8000f42: 2b00 cmp r3, #0
  1894. 8000f44: d001 beq.n 8000f4a <MX_CRC_Init+0x46>
  1895. {
  1896. Error_Handler();
  1897. 8000f46: f001 f81f bl 8001f88 <Error_Handler>
  1898. }
  1899. /* USER CODE BEGIN CRC_Init 2 */
  1900. /* USER CODE END CRC_Init 2 */
  1901. }
  1902. 8000f4a: bf00 nop
  1903. 8000f4c: bd80 pop {r7, pc}
  1904. 8000f4e: bf00 nop
  1905. 8000f50: 24000400 .word 0x24000400
  1906. 8000f54: 58024c00 .word 0x58024c00
  1907. 08000f58 <MX_DAC1_Init>:
  1908. * @brief DAC1 Initialization Function
  1909. * @param None
  1910. * @retval None
  1911. */
  1912. static void MX_DAC1_Init(void)
  1913. {
  1914. 8000f58: b580 push {r7, lr}
  1915. 8000f5a: b08a sub sp, #40 @ 0x28
  1916. 8000f5c: af00 add r7, sp, #0
  1917. /* USER CODE BEGIN DAC1_Init 0 */
  1918. /* USER CODE END DAC1_Init 0 */
  1919. DAC_ChannelConfTypeDef sConfig = {0};
  1920. 8000f5e: 1d3b adds r3, r7, #4
  1921. 8000f60: 2224 movs r2, #36 @ 0x24
  1922. 8000f62: 2100 movs r1, #0
  1923. 8000f64: 4618 mov r0, r3
  1924. 8000f66: f016 ff1e bl 8017da6 <memset>
  1925. /* USER CODE END DAC1_Init 1 */
  1926. /** DAC Initialization
  1927. */
  1928. hdac1.Instance = DAC1;
  1929. 8000f6a: 4b17 ldr r3, [pc, #92] @ (8000fc8 <MX_DAC1_Init+0x70>)
  1930. 8000f6c: 4a17 ldr r2, [pc, #92] @ (8000fcc <MX_DAC1_Init+0x74>)
  1931. 8000f6e: 601a str r2, [r3, #0]
  1932. if (HAL_DAC_Init(&hdac1) != HAL_OK)
  1933. 8000f70: 4815 ldr r0, [pc, #84] @ (8000fc8 <MX_DAC1_Init+0x70>)
  1934. 8000f72: f006 fc45 bl 8007800 <HAL_DAC_Init>
  1935. 8000f76: 4603 mov r3, r0
  1936. 8000f78: 2b00 cmp r3, #0
  1937. 8000f7a: d001 beq.n 8000f80 <MX_DAC1_Init+0x28>
  1938. {
  1939. Error_Handler();
  1940. 8000f7c: f001 f804 bl 8001f88 <Error_Handler>
  1941. }
  1942. /** DAC channel OUT1 config
  1943. */
  1944. sConfig.DAC_SampleAndHold = DAC_SAMPLEANDHOLD_DISABLE;
  1945. 8000f80: 2300 movs r3, #0
  1946. 8000f82: 607b str r3, [r7, #4]
  1947. sConfig.DAC_Trigger = DAC_TRIGGER_NONE;
  1948. 8000f84: 2300 movs r3, #0
  1949. 8000f86: 60bb str r3, [r7, #8]
  1950. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
  1951. 8000f88: 2300 movs r3, #0
  1952. 8000f8a: 60fb str r3, [r7, #12]
  1953. sConfig.DAC_ConnectOnChipPeripheral = DAC_CHIPCONNECT_DISABLE;
  1954. 8000f8c: 2301 movs r3, #1
  1955. 8000f8e: 613b str r3, [r7, #16]
  1956. sConfig.DAC_UserTrimming = DAC_TRIMMING_FACTORY;
  1957. 8000f90: 2300 movs r3, #0
  1958. 8000f92: 617b str r3, [r7, #20]
  1959. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_1) != HAL_OK)
  1960. 8000f94: 1d3b adds r3, r7, #4
  1961. 8000f96: 2200 movs r2, #0
  1962. 8000f98: 4619 mov r1, r3
  1963. 8000f9a: 480b ldr r0, [pc, #44] @ (8000fc8 <MX_DAC1_Init+0x70>)
  1964. 8000f9c: f006 fd34 bl 8007a08 <HAL_DAC_ConfigChannel>
  1965. 8000fa0: 4603 mov r3, r0
  1966. 8000fa2: 2b00 cmp r3, #0
  1967. 8000fa4: d001 beq.n 8000faa <MX_DAC1_Init+0x52>
  1968. {
  1969. Error_Handler();
  1970. 8000fa6: f000 ffef bl 8001f88 <Error_Handler>
  1971. }
  1972. /** DAC channel OUT2 config
  1973. */
  1974. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_2) != HAL_OK)
  1975. 8000faa: 1d3b adds r3, r7, #4
  1976. 8000fac: 2210 movs r2, #16
  1977. 8000fae: 4619 mov r1, r3
  1978. 8000fb0: 4805 ldr r0, [pc, #20] @ (8000fc8 <MX_DAC1_Init+0x70>)
  1979. 8000fb2: f006 fd29 bl 8007a08 <HAL_DAC_ConfigChannel>
  1980. 8000fb6: 4603 mov r3, r0
  1981. 8000fb8: 2b00 cmp r3, #0
  1982. 8000fba: d001 beq.n 8000fc0 <MX_DAC1_Init+0x68>
  1983. {
  1984. Error_Handler();
  1985. 8000fbc: f000 ffe4 bl 8001f88 <Error_Handler>
  1986. }
  1987. /* USER CODE BEGIN DAC1_Init 2 */
  1988. /* USER CODE END DAC1_Init 2 */
  1989. }
  1990. 8000fc0: bf00 nop
  1991. 8000fc2: 3728 adds r7, #40 @ 0x28
  1992. 8000fc4: 46bd mov sp, r7
  1993. 8000fc6: bd80 pop {r7, pc}
  1994. 8000fc8: 24000424 .word 0x24000424
  1995. 8000fcc: 40007400 .word 0x40007400
  1996. 08000fd0 <MX_IWDG1_Init>:
  1997. * @brief IWDG1 Initialization Function
  1998. * @param None
  1999. * @retval None
  2000. */
  2001. static void MX_IWDG1_Init(void)
  2002. {
  2003. 8000fd0: b580 push {r7, lr}
  2004. 8000fd2: af00 add r7, sp, #0
  2005. /* USER CODE END IWDG1_Init 0 */
  2006. /* USER CODE BEGIN IWDG1_Init 1 */
  2007. /* USER CODE END IWDG1_Init 1 */
  2008. hiwdg1.Instance = IWDG1;
  2009. 8000fd4: 4b0a ldr r3, [pc, #40] @ (8001000 <MX_IWDG1_Init+0x30>)
  2010. 8000fd6: 4a0b ldr r2, [pc, #44] @ (8001004 <MX_IWDG1_Init+0x34>)
  2011. 8000fd8: 601a str r2, [r3, #0]
  2012. hiwdg1.Init.Prescaler = IWDG_PRESCALER_64;
  2013. 8000fda: 4b09 ldr r3, [pc, #36] @ (8001000 <MX_IWDG1_Init+0x30>)
  2014. 8000fdc: 2204 movs r2, #4
  2015. 8000fde: 605a str r2, [r3, #4]
  2016. hiwdg1.Init.Window = 249;
  2017. 8000fe0: 4b07 ldr r3, [pc, #28] @ (8001000 <MX_IWDG1_Init+0x30>)
  2018. 8000fe2: 22f9 movs r2, #249 @ 0xf9
  2019. 8000fe4: 60da str r2, [r3, #12]
  2020. hiwdg1.Init.Reload = 249;
  2021. 8000fe6: 4b06 ldr r3, [pc, #24] @ (8001000 <MX_IWDG1_Init+0x30>)
  2022. 8000fe8: 22f9 movs r2, #249 @ 0xf9
  2023. 8000fea: 609a str r2, [r3, #8]
  2024. if (HAL_IWDG_Init(&hiwdg1) != HAL_OK)
  2025. 8000fec: 4804 ldr r0, [pc, #16] @ (8001000 <MX_IWDG1_Init+0x30>)
  2026. 8000fee: f009 fea8 bl 800ad42 <HAL_IWDG_Init>
  2027. 8000ff2: 4603 mov r3, r0
  2028. 8000ff4: 2b00 cmp r3, #0
  2029. 8000ff6: d001 beq.n 8000ffc <MX_IWDG1_Init+0x2c>
  2030. {
  2031. Error_Handler();
  2032. 8000ff8: f000 ffc6 bl 8001f88 <Error_Handler>
  2033. }
  2034. /* USER CODE BEGIN IWDG1_Init 2 */
  2035. /* USER CODE END IWDG1_Init 2 */
  2036. }
  2037. 8000ffc: bf00 nop
  2038. 8000ffe: bd80 pop {r7, pc}
  2039. 8001000: 24000438 .word 0x24000438
  2040. 8001004: 58004800 .word 0x58004800
  2041. 08001008 <MX_RNG_Init>:
  2042. * @brief RNG Initialization Function
  2043. * @param None
  2044. * @retval None
  2045. */
  2046. static void MX_RNG_Init(void)
  2047. {
  2048. 8001008: b580 push {r7, lr}
  2049. 800100a: af00 add r7, sp, #0
  2050. /* USER CODE END RNG_Init 0 */
  2051. /* USER CODE BEGIN RNG_Init 1 */
  2052. /* USER CODE END RNG_Init 1 */
  2053. hrng.Instance = RNG;
  2054. 800100c: 4b07 ldr r3, [pc, #28] @ (800102c <MX_RNG_Init+0x24>)
  2055. 800100e: 4a08 ldr r2, [pc, #32] @ (8001030 <MX_RNG_Init+0x28>)
  2056. 8001010: 601a str r2, [r3, #0]
  2057. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  2058. 8001012: 4b06 ldr r3, [pc, #24] @ (800102c <MX_RNG_Init+0x24>)
  2059. 8001014: 2200 movs r2, #0
  2060. 8001016: 605a str r2, [r3, #4]
  2061. if (HAL_RNG_Init(&hrng) != HAL_OK)
  2062. 8001018: 4804 ldr r0, [pc, #16] @ (800102c <MX_RNG_Init+0x24>)
  2063. 800101a: f00d fd45 bl 800eaa8 <HAL_RNG_Init>
  2064. 800101e: 4603 mov r3, r0
  2065. 8001020: 2b00 cmp r3, #0
  2066. 8001022: d001 beq.n 8001028 <MX_RNG_Init+0x20>
  2067. {
  2068. Error_Handler();
  2069. 8001024: f000 ffb0 bl 8001f88 <Error_Handler>
  2070. }
  2071. /* USER CODE BEGIN RNG_Init 2 */
  2072. /* USER CODE END RNG_Init 2 */
  2073. }
  2074. 8001028: bf00 nop
  2075. 800102a: bd80 pop {r7, pc}
  2076. 800102c: 24000448 .word 0x24000448
  2077. 8001030: 48021800 .word 0x48021800
  2078. 08001034 <MX_TIM1_Init>:
  2079. * @brief TIM1 Initialization Function
  2080. * @param None
  2081. * @retval None
  2082. */
  2083. static void MX_TIM1_Init(void)
  2084. {
  2085. 8001034: b5b0 push {r4, r5, r7, lr}
  2086. 8001036: b096 sub sp, #88 @ 0x58
  2087. 8001038: af00 add r7, sp, #0
  2088. /* USER CODE BEGIN TIM1_Init 0 */
  2089. /* USER CODE END TIM1_Init 0 */
  2090. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2091. 800103a: f107 034c add.w r3, r7, #76 @ 0x4c
  2092. 800103e: 2200 movs r2, #0
  2093. 8001040: 601a str r2, [r3, #0]
  2094. 8001042: 605a str r2, [r3, #4]
  2095. 8001044: 609a str r2, [r3, #8]
  2096. TIM_OC_InitTypeDef sConfigOC = {0};
  2097. 8001046: f107 0330 add.w r3, r7, #48 @ 0x30
  2098. 800104a: 2200 movs r2, #0
  2099. 800104c: 601a str r2, [r3, #0]
  2100. 800104e: 605a str r2, [r3, #4]
  2101. 8001050: 609a str r2, [r3, #8]
  2102. 8001052: 60da str r2, [r3, #12]
  2103. 8001054: 611a str r2, [r3, #16]
  2104. 8001056: 615a str r2, [r3, #20]
  2105. 8001058: 619a str r2, [r3, #24]
  2106. TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig = {0};
  2107. 800105a: 1d3b adds r3, r7, #4
  2108. 800105c: 222c movs r2, #44 @ 0x2c
  2109. 800105e: 2100 movs r1, #0
  2110. 8001060: 4618 mov r0, r3
  2111. 8001062: f016 fea0 bl 8017da6 <memset>
  2112. /* USER CODE BEGIN TIM1_Init 1 */
  2113. /* USER CODE END TIM1_Init 1 */
  2114. htim1.Instance = TIM1;
  2115. 8001066: 4b3e ldr r3, [pc, #248] @ (8001160 <MX_TIM1_Init+0x12c>)
  2116. 8001068: 4a3e ldr r2, [pc, #248] @ (8001164 <MX_TIM1_Init+0x130>)
  2117. 800106a: 601a str r2, [r3, #0]
  2118. htim1.Init.Prescaler = 199;
  2119. 800106c: 4b3c ldr r3, [pc, #240] @ (8001160 <MX_TIM1_Init+0x12c>)
  2120. 800106e: 22c7 movs r2, #199 @ 0xc7
  2121. 8001070: 605a str r2, [r3, #4]
  2122. htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
  2123. 8001072: 4b3b ldr r3, [pc, #236] @ (8001160 <MX_TIM1_Init+0x12c>)
  2124. 8001074: 2200 movs r2, #0
  2125. 8001076: 609a str r2, [r3, #8]
  2126. htim1.Init.Period = 999;
  2127. 8001078: 4b39 ldr r3, [pc, #228] @ (8001160 <MX_TIM1_Init+0x12c>)
  2128. 800107a: f240 32e7 movw r2, #999 @ 0x3e7
  2129. 800107e: 60da str r2, [r3, #12]
  2130. htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2131. 8001080: 4b37 ldr r3, [pc, #220] @ (8001160 <MX_TIM1_Init+0x12c>)
  2132. 8001082: 2200 movs r2, #0
  2133. 8001084: 611a str r2, [r3, #16]
  2134. htim1.Init.RepetitionCounter = 0;
  2135. 8001086: 4b36 ldr r3, [pc, #216] @ (8001160 <MX_TIM1_Init+0x12c>)
  2136. 8001088: 2200 movs r2, #0
  2137. 800108a: 615a str r2, [r3, #20]
  2138. htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2139. 800108c: 4b34 ldr r3, [pc, #208] @ (8001160 <MX_TIM1_Init+0x12c>)
  2140. 800108e: 2280 movs r2, #128 @ 0x80
  2141. 8001090: 619a str r2, [r3, #24]
  2142. if (HAL_TIM_PWM_Init(&htim1) != HAL_OK)
  2143. 8001092: 4833 ldr r0, [pc, #204] @ (8001160 <MX_TIM1_Init+0x12c>)
  2144. 8001094: f00d feaa bl 800edec <HAL_TIM_PWM_Init>
  2145. 8001098: 4603 mov r3, r0
  2146. 800109a: 2b00 cmp r3, #0
  2147. 800109c: d001 beq.n 80010a2 <MX_TIM1_Init+0x6e>
  2148. {
  2149. Error_Handler();
  2150. 800109e: f000 ff73 bl 8001f88 <Error_Handler>
  2151. }
  2152. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2153. 80010a2: 2300 movs r3, #0
  2154. 80010a4: 64fb str r3, [r7, #76] @ 0x4c
  2155. sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET;
  2156. 80010a6: 2300 movs r3, #0
  2157. 80010a8: 653b str r3, [r7, #80] @ 0x50
  2158. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2159. 80010aa: 2300 movs r3, #0
  2160. 80010ac: 657b str r3, [r7, #84] @ 0x54
  2161. if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
  2162. 80010ae: f107 034c add.w r3, r7, #76 @ 0x4c
  2163. 80010b2: 4619 mov r1, r3
  2164. 80010b4: 482a ldr r0, [pc, #168] @ (8001160 <MX_TIM1_Init+0x12c>)
  2165. 80010b6: f00f fbfd bl 80108b4 <HAL_TIMEx_MasterConfigSynchronization>
  2166. 80010ba: 4603 mov r3, r0
  2167. 80010bc: 2b00 cmp r3, #0
  2168. 80010be: d001 beq.n 80010c4 <MX_TIM1_Init+0x90>
  2169. {
  2170. Error_Handler();
  2171. 80010c0: f000 ff62 bl 8001f88 <Error_Handler>
  2172. }
  2173. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2174. 80010c4: 2360 movs r3, #96 @ 0x60
  2175. 80010c6: 633b str r3, [r7, #48] @ 0x30
  2176. sConfigOC.Pulse = 99;
  2177. 80010c8: 2363 movs r3, #99 @ 0x63
  2178. 80010ca: 637b str r3, [r7, #52] @ 0x34
  2179. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2180. 80010cc: 2300 movs r3, #0
  2181. 80010ce: 63bb str r3, [r7, #56] @ 0x38
  2182. sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH;
  2183. 80010d0: 2300 movs r3, #0
  2184. 80010d2: 63fb str r3, [r7, #60] @ 0x3c
  2185. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2186. 80010d4: 2300 movs r3, #0
  2187. 80010d6: 643b str r3, [r7, #64] @ 0x40
  2188. sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET;
  2189. 80010d8: 2300 movs r3, #0
  2190. 80010da: 647b str r3, [r7, #68] @ 0x44
  2191. sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET;
  2192. 80010dc: 2300 movs r3, #0
  2193. 80010de: 64bb str r3, [r7, #72] @ 0x48
  2194. if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2195. 80010e0: f107 0330 add.w r3, r7, #48 @ 0x30
  2196. 80010e4: 2204 movs r2, #4
  2197. 80010e6: 4619 mov r1, r3
  2198. 80010e8: 481d ldr r0, [pc, #116] @ (8001160 <MX_TIM1_Init+0x12c>)
  2199. 80010ea: f00e fbd1 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  2200. 80010ee: 4603 mov r3, r0
  2201. 80010f0: 2b00 cmp r3, #0
  2202. 80010f2: d001 beq.n 80010f8 <MX_TIM1_Init+0xc4>
  2203. {
  2204. Error_Handler();
  2205. 80010f4: f000 ff48 bl 8001f88 <Error_Handler>
  2206. }
  2207. sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE;
  2208. 80010f8: 2300 movs r3, #0
  2209. 80010fa: 607b str r3, [r7, #4]
  2210. sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_DISABLE;
  2211. 80010fc: 2300 movs r3, #0
  2212. 80010fe: 60bb str r3, [r7, #8]
  2213. sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF;
  2214. 8001100: 2300 movs r3, #0
  2215. 8001102: 60fb str r3, [r7, #12]
  2216. sBreakDeadTimeConfig.DeadTime = 0;
  2217. 8001104: 2300 movs r3, #0
  2218. 8001106: 613b str r3, [r7, #16]
  2219. sBreakDeadTimeConfig.BreakState = TIM_BREAK_DISABLE;
  2220. 8001108: 2300 movs r3, #0
  2221. 800110a: 617b str r3, [r7, #20]
  2222. sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH;
  2223. 800110c: f44f 5300 mov.w r3, #8192 @ 0x2000
  2224. 8001110: 61bb str r3, [r7, #24]
  2225. sBreakDeadTimeConfig.BreakFilter = 0;
  2226. 8001112: 2300 movs r3, #0
  2227. 8001114: 61fb str r3, [r7, #28]
  2228. sBreakDeadTimeConfig.Break2State = TIM_BREAK2_DISABLE;
  2229. 8001116: 2300 movs r3, #0
  2230. 8001118: 623b str r3, [r7, #32]
  2231. sBreakDeadTimeConfig.Break2Polarity = TIM_BREAK2POLARITY_HIGH;
  2232. 800111a: f04f 7300 mov.w r3, #33554432 @ 0x2000000
  2233. 800111e: 627b str r3, [r7, #36] @ 0x24
  2234. sBreakDeadTimeConfig.Break2Filter = 0;
  2235. 8001120: 2300 movs r3, #0
  2236. 8001122: 62bb str r3, [r7, #40] @ 0x28
  2237. sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE;
  2238. 8001124: 2300 movs r3, #0
  2239. 8001126: 62fb str r3, [r7, #44] @ 0x2c
  2240. if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK)
  2241. 8001128: 1d3b adds r3, r7, #4
  2242. 800112a: 4619 mov r1, r3
  2243. 800112c: 480c ldr r0, [pc, #48] @ (8001160 <MX_TIM1_Init+0x12c>)
  2244. 800112e: f00f fc4f bl 80109d0 <HAL_TIMEx_ConfigBreakDeadTime>
  2245. 8001132: 4603 mov r3, r0
  2246. 8001134: 2b00 cmp r3, #0
  2247. 8001136: d001 beq.n 800113c <MX_TIM1_Init+0x108>
  2248. {
  2249. Error_Handler();
  2250. 8001138: f000 ff26 bl 8001f88 <Error_Handler>
  2251. }
  2252. /* USER CODE BEGIN TIM1_Init 2 */
  2253. memcpy(&fanTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2254. 800113c: 4b0a ldr r3, [pc, #40] @ (8001168 <MX_TIM1_Init+0x134>)
  2255. 800113e: 461d mov r5, r3
  2256. 8001140: f107 0430 add.w r4, r7, #48 @ 0x30
  2257. 8001144: cc0f ldmia r4!, {r0, r1, r2, r3}
  2258. 8001146: c50f stmia r5!, {r0, r1, r2, r3}
  2259. 8001148: e894 0007 ldmia.w r4, {r0, r1, r2}
  2260. 800114c: e885 0007 stmia.w r5, {r0, r1, r2}
  2261. /* USER CODE END TIM1_Init 2 */
  2262. HAL_TIM_MspPostInit(&htim1);
  2263. 8001150: 4803 ldr r0, [pc, #12] @ (8001160 <MX_TIM1_Init+0x12c>)
  2264. 8001152: f002 fd95 bl 8003c80 <HAL_TIM_MspPostInit>
  2265. }
  2266. 8001156: bf00 nop
  2267. 8001158: 3758 adds r7, #88 @ 0x58
  2268. 800115a: 46bd mov sp, r7
  2269. 800115c: bdb0 pop {r4, r5, r7, pc}
  2270. 800115e: bf00 nop
  2271. 8001160: 2400045c .word 0x2400045c
  2272. 8001164: 40010000 .word 0x40010000
  2273. 8001168: 240007c4 .word 0x240007c4
  2274. 0800116c <MX_TIM2_Init>:
  2275. * @brief TIM2 Initialization Function
  2276. * @param None
  2277. * @retval None
  2278. */
  2279. static void MX_TIM2_Init(void)
  2280. {
  2281. 800116c: b580 push {r7, lr}
  2282. 800116e: b08c sub sp, #48 @ 0x30
  2283. 8001170: af00 add r7, sp, #0
  2284. /* USER CODE BEGIN TIM2_Init 0 */
  2285. /* USER CODE END TIM2_Init 0 */
  2286. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2287. 8001172: f107 0320 add.w r3, r7, #32
  2288. 8001176: 2200 movs r2, #0
  2289. 8001178: 601a str r2, [r3, #0]
  2290. 800117a: 605a str r2, [r3, #4]
  2291. 800117c: 609a str r2, [r3, #8]
  2292. 800117e: 60da str r2, [r3, #12]
  2293. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2294. 8001180: f107 0314 add.w r3, r7, #20
  2295. 8001184: 2200 movs r2, #0
  2296. 8001186: 601a str r2, [r3, #0]
  2297. 8001188: 605a str r2, [r3, #4]
  2298. 800118a: 609a str r2, [r3, #8]
  2299. TIM_IC_InitTypeDef sConfigIC = {0};
  2300. 800118c: 1d3b adds r3, r7, #4
  2301. 800118e: 2200 movs r2, #0
  2302. 8001190: 601a str r2, [r3, #0]
  2303. 8001192: 605a str r2, [r3, #4]
  2304. 8001194: 609a str r2, [r3, #8]
  2305. 8001196: 60da str r2, [r3, #12]
  2306. /* USER CODE BEGIN TIM2_Init 1 */
  2307. /* USER CODE END TIM2_Init 1 */
  2308. htim2.Instance = TIM2;
  2309. 8001198: 4b32 ldr r3, [pc, #200] @ (8001264 <MX_TIM2_Init+0xf8>)
  2310. 800119a: f04f 4280 mov.w r2, #1073741824 @ 0x40000000
  2311. 800119e: 601a str r2, [r3, #0]
  2312. htim2.Init.Prescaler = 9999;
  2313. 80011a0: 4b30 ldr r3, [pc, #192] @ (8001264 <MX_TIM2_Init+0xf8>)
  2314. 80011a2: f242 720f movw r2, #9999 @ 0x270f
  2315. 80011a6: 605a str r2, [r3, #4]
  2316. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  2317. 80011a8: 4b2e ldr r3, [pc, #184] @ (8001264 <MX_TIM2_Init+0xf8>)
  2318. 80011aa: 2200 movs r2, #0
  2319. 80011ac: 609a str r2, [r3, #8]
  2320. htim2.Init.Period = 2999;
  2321. 80011ae: 4b2d ldr r3, [pc, #180] @ (8001264 <MX_TIM2_Init+0xf8>)
  2322. 80011b0: f640 32b7 movw r2, #2999 @ 0xbb7
  2323. 80011b4: 60da str r2, [r3, #12]
  2324. htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2325. 80011b6: 4b2b ldr r3, [pc, #172] @ (8001264 <MX_TIM2_Init+0xf8>)
  2326. 80011b8: f44f 7280 mov.w r2, #256 @ 0x100
  2327. 80011bc: 611a str r2, [r3, #16]
  2328. htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2329. 80011be: 4b29 ldr r3, [pc, #164] @ (8001264 <MX_TIM2_Init+0xf8>)
  2330. 80011c0: 2280 movs r2, #128 @ 0x80
  2331. 80011c2: 619a str r2, [r3, #24]
  2332. if (HAL_TIM_Base_Init(&htim2) != HAL_OK)
  2333. 80011c4: 4827 ldr r0, [pc, #156] @ (8001264 <MX_TIM2_Init+0xf8>)
  2334. 80011c6: f00d fcd1 bl 800eb6c <HAL_TIM_Base_Init>
  2335. 80011ca: 4603 mov r3, r0
  2336. 80011cc: 2b00 cmp r3, #0
  2337. 80011ce: d001 beq.n 80011d4 <MX_TIM2_Init+0x68>
  2338. {
  2339. Error_Handler();
  2340. 80011d0: f000 feda bl 8001f88 <Error_Handler>
  2341. }
  2342. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2343. 80011d4: f44f 5380 mov.w r3, #4096 @ 0x1000
  2344. 80011d8: 623b str r3, [r7, #32]
  2345. if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK)
  2346. 80011da: f107 0320 add.w r3, r7, #32
  2347. 80011de: 4619 mov r1, r3
  2348. 80011e0: 4820 ldr r0, [pc, #128] @ (8001264 <MX_TIM2_Init+0xf8>)
  2349. 80011e2: f00e fc69 bl 800fab8 <HAL_TIM_ConfigClockSource>
  2350. 80011e6: 4603 mov r3, r0
  2351. 80011e8: 2b00 cmp r3, #0
  2352. 80011ea: d001 beq.n 80011f0 <MX_TIM2_Init+0x84>
  2353. {
  2354. Error_Handler();
  2355. 80011ec: f000 fecc bl 8001f88 <Error_Handler>
  2356. }
  2357. if (HAL_TIM_IC_Init(&htim2) != HAL_OK)
  2358. 80011f0: 481c ldr r0, [pc, #112] @ (8001264 <MX_TIM2_Init+0xf8>)
  2359. 80011f2: f00d fff7 bl 800f1e4 <HAL_TIM_IC_Init>
  2360. 80011f6: 4603 mov r3, r0
  2361. 80011f8: 2b00 cmp r3, #0
  2362. 80011fa: d001 beq.n 8001200 <MX_TIM2_Init+0x94>
  2363. {
  2364. Error_Handler();
  2365. 80011fc: f000 fec4 bl 8001f88 <Error_Handler>
  2366. }
  2367. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2368. 8001200: 2320 movs r3, #32
  2369. 8001202: 617b str r3, [r7, #20]
  2370. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_ENABLE;
  2371. 8001204: 2380 movs r3, #128 @ 0x80
  2372. 8001206: 61fb str r3, [r7, #28]
  2373. if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
  2374. 8001208: f107 0314 add.w r3, r7, #20
  2375. 800120c: 4619 mov r1, r3
  2376. 800120e: 4815 ldr r0, [pc, #84] @ (8001264 <MX_TIM2_Init+0xf8>)
  2377. 8001210: f00f fb50 bl 80108b4 <HAL_TIMEx_MasterConfigSynchronization>
  2378. 8001214: 4603 mov r3, r0
  2379. 8001216: 2b00 cmp r3, #0
  2380. 8001218: d001 beq.n 800121e <MX_TIM2_Init+0xb2>
  2381. {
  2382. Error_Handler();
  2383. 800121a: f000 feb5 bl 8001f88 <Error_Handler>
  2384. }
  2385. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING;
  2386. 800121e: 2300 movs r3, #0
  2387. 8001220: 607b str r3, [r7, #4]
  2388. sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI;
  2389. 8001222: 2301 movs r3, #1
  2390. 8001224: 60bb str r3, [r7, #8]
  2391. sConfigIC.ICPrescaler = TIM_ICPSC_DIV1;
  2392. 8001226: 2300 movs r3, #0
  2393. 8001228: 60fb str r3, [r7, #12]
  2394. sConfigIC.ICFilter = 0;
  2395. 800122a: 2300 movs r3, #0
  2396. 800122c: 613b str r3, [r7, #16]
  2397. if (HAL_TIM_IC_ConfigChannel(&htim2, &sConfigIC, TIM_CHANNEL_3) != HAL_OK)
  2398. 800122e: 1d3b adds r3, r7, #4
  2399. 8001230: 2208 movs r2, #8
  2400. 8001232: 4619 mov r1, r3
  2401. 8001234: 480b ldr r0, [pc, #44] @ (8001264 <MX_TIM2_Init+0xf8>)
  2402. 8001236: f00e fa8e bl 800f756 <HAL_TIM_IC_ConfigChannel>
  2403. 800123a: 4603 mov r3, r0
  2404. 800123c: 2b00 cmp r3, #0
  2405. 800123e: d001 beq.n 8001244 <MX_TIM2_Init+0xd8>
  2406. {
  2407. Error_Handler();
  2408. 8001240: f000 fea2 bl 8001f88 <Error_Handler>
  2409. }
  2410. if (HAL_TIM_IC_ConfigChannel(&htim2, &sConfigIC, TIM_CHANNEL_4) != HAL_OK)
  2411. 8001244: 1d3b adds r3, r7, #4
  2412. 8001246: 220c movs r2, #12
  2413. 8001248: 4619 mov r1, r3
  2414. 800124a: 4806 ldr r0, [pc, #24] @ (8001264 <MX_TIM2_Init+0xf8>)
  2415. 800124c: f00e fa83 bl 800f756 <HAL_TIM_IC_ConfigChannel>
  2416. 8001250: 4603 mov r3, r0
  2417. 8001252: 2b00 cmp r3, #0
  2418. 8001254: d001 beq.n 800125a <MX_TIM2_Init+0xee>
  2419. {
  2420. Error_Handler();
  2421. 8001256: f000 fe97 bl 8001f88 <Error_Handler>
  2422. }
  2423. /* USER CODE BEGIN TIM2_Init 2 */
  2424. /* USER CODE END TIM2_Init 2 */
  2425. }
  2426. 800125a: bf00 nop
  2427. 800125c: 3730 adds r7, #48 @ 0x30
  2428. 800125e: 46bd mov sp, r7
  2429. 8001260: bd80 pop {r7, pc}
  2430. 8001262: bf00 nop
  2431. 8001264: 240004a8 .word 0x240004a8
  2432. 08001268 <MX_TIM3_Init>:
  2433. * @brief TIM3 Initialization Function
  2434. * @param None
  2435. * @retval None
  2436. */
  2437. static void MX_TIM3_Init(void)
  2438. {
  2439. 8001268: b5b0 push {r4, r5, r7, lr}
  2440. 800126a: b08a sub sp, #40 @ 0x28
  2441. 800126c: af00 add r7, sp, #0
  2442. /* USER CODE BEGIN TIM3_Init 0 */
  2443. /* USER CODE END TIM3_Init 0 */
  2444. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2445. 800126e: f107 031c add.w r3, r7, #28
  2446. 8001272: 2200 movs r2, #0
  2447. 8001274: 601a str r2, [r3, #0]
  2448. 8001276: 605a str r2, [r3, #4]
  2449. 8001278: 609a str r2, [r3, #8]
  2450. TIM_OC_InitTypeDef sConfigOC = {0};
  2451. 800127a: 463b mov r3, r7
  2452. 800127c: 2200 movs r2, #0
  2453. 800127e: 601a str r2, [r3, #0]
  2454. 8001280: 605a str r2, [r3, #4]
  2455. 8001282: 609a str r2, [r3, #8]
  2456. 8001284: 60da str r2, [r3, #12]
  2457. 8001286: 611a str r2, [r3, #16]
  2458. 8001288: 615a str r2, [r3, #20]
  2459. 800128a: 619a str r2, [r3, #24]
  2460. /* USER CODE BEGIN TIM3_Init 1 */
  2461. /* USER CODE END TIM3_Init 1 */
  2462. htim3.Instance = TIM3;
  2463. 800128c: 4b48 ldr r3, [pc, #288] @ (80013b0 <MX_TIM3_Init+0x148>)
  2464. 800128e: 4a49 ldr r2, [pc, #292] @ (80013b4 <MX_TIM3_Init+0x14c>)
  2465. 8001290: 601a str r2, [r3, #0]
  2466. htim3.Init.Prescaler = 199;
  2467. 8001292: 4b47 ldr r3, [pc, #284] @ (80013b0 <MX_TIM3_Init+0x148>)
  2468. 8001294: 22c7 movs r2, #199 @ 0xc7
  2469. 8001296: 605a str r2, [r3, #4]
  2470. htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  2471. 8001298: 4b45 ldr r3, [pc, #276] @ (80013b0 <MX_TIM3_Init+0x148>)
  2472. 800129a: 2200 movs r2, #0
  2473. 800129c: 609a str r2, [r3, #8]
  2474. htim3.Init.Period = 999;
  2475. 800129e: 4b44 ldr r3, [pc, #272] @ (80013b0 <MX_TIM3_Init+0x148>)
  2476. 80012a0: f240 32e7 movw r2, #999 @ 0x3e7
  2477. 80012a4: 60da str r2, [r3, #12]
  2478. htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2479. 80012a6: 4b42 ldr r3, [pc, #264] @ (80013b0 <MX_TIM3_Init+0x148>)
  2480. 80012a8: 2200 movs r2, #0
  2481. 80012aa: 611a str r2, [r3, #16]
  2482. htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2483. 80012ac: 4b40 ldr r3, [pc, #256] @ (80013b0 <MX_TIM3_Init+0x148>)
  2484. 80012ae: 2280 movs r2, #128 @ 0x80
  2485. 80012b0: 619a str r2, [r3, #24]
  2486. if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
  2487. 80012b2: 483f ldr r0, [pc, #252] @ (80013b0 <MX_TIM3_Init+0x148>)
  2488. 80012b4: f00d fd9a bl 800edec <HAL_TIM_PWM_Init>
  2489. 80012b8: 4603 mov r3, r0
  2490. 80012ba: 2b00 cmp r3, #0
  2491. 80012bc: d001 beq.n 80012c2 <MX_TIM3_Init+0x5a>
  2492. {
  2493. Error_Handler();
  2494. 80012be: f000 fe63 bl 8001f88 <Error_Handler>
  2495. }
  2496. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2497. 80012c2: 2300 movs r3, #0
  2498. 80012c4: 61fb str r3, [r7, #28]
  2499. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2500. 80012c6: 2300 movs r3, #0
  2501. 80012c8: 627b str r3, [r7, #36] @ 0x24
  2502. if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
  2503. 80012ca: f107 031c add.w r3, r7, #28
  2504. 80012ce: 4619 mov r1, r3
  2505. 80012d0: 4837 ldr r0, [pc, #220] @ (80013b0 <MX_TIM3_Init+0x148>)
  2506. 80012d2: f00f faef bl 80108b4 <HAL_TIMEx_MasterConfigSynchronization>
  2507. 80012d6: 4603 mov r3, r0
  2508. 80012d8: 2b00 cmp r3, #0
  2509. 80012da: d001 beq.n 80012e0 <MX_TIM3_Init+0x78>
  2510. {
  2511. Error_Handler();
  2512. 80012dc: f000 fe54 bl 8001f88 <Error_Handler>
  2513. }
  2514. sConfigOC.OCMode = TIM_OCMODE_COMBINED_PWM1;
  2515. 80012e0: 4b35 ldr r3, [pc, #212] @ (80013b8 <MX_TIM3_Init+0x150>)
  2516. 80012e2: 603b str r3, [r7, #0]
  2517. sConfigOC.Pulse = 500;
  2518. 80012e4: f44f 73fa mov.w r3, #500 @ 0x1f4
  2519. 80012e8: 607b str r3, [r7, #4]
  2520. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2521. 80012ea: 2300 movs r3, #0
  2522. 80012ec: 60bb str r3, [r7, #8]
  2523. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2524. 80012ee: 2300 movs r3, #0
  2525. 80012f0: 613b str r3, [r7, #16]
  2526. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK)
  2527. 80012f2: 463b mov r3, r7
  2528. 80012f4: 2200 movs r2, #0
  2529. 80012f6: 4619 mov r1, r3
  2530. 80012f8: 482d ldr r0, [pc, #180] @ (80013b0 <MX_TIM3_Init+0x148>)
  2531. 80012fa: f00e fac9 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  2532. 80012fe: 4603 mov r3, r0
  2533. 8001300: 2b00 cmp r3, #0
  2534. 8001302: d001 beq.n 8001308 <MX_TIM3_Init+0xa0>
  2535. {
  2536. Error_Handler();
  2537. 8001304: f000 fe40 bl 8001f88 <Error_Handler>
  2538. }
  2539. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_1);
  2540. 8001308: 4b29 ldr r3, [pc, #164] @ (80013b0 <MX_TIM3_Init+0x148>)
  2541. 800130a: 681b ldr r3, [r3, #0]
  2542. 800130c: 699a ldr r2, [r3, #24]
  2543. 800130e: 4b28 ldr r3, [pc, #160] @ (80013b0 <MX_TIM3_Init+0x148>)
  2544. 8001310: 681b ldr r3, [r3, #0]
  2545. 8001312: f022 0208 bic.w r2, r2, #8
  2546. 8001316: 619a str r2, [r3, #24]
  2547. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2548. 8001318: 2360 movs r3, #96 @ 0x60
  2549. 800131a: 603b str r3, [r7, #0]
  2550. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2551. 800131c: 463b mov r3, r7
  2552. 800131e: 2204 movs r2, #4
  2553. 8001320: 4619 mov r1, r3
  2554. 8001322: 4823 ldr r0, [pc, #140] @ (80013b0 <MX_TIM3_Init+0x148>)
  2555. 8001324: f00e fab4 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  2556. 8001328: 4603 mov r3, r0
  2557. 800132a: 2b00 cmp r3, #0
  2558. 800132c: d001 beq.n 8001332 <MX_TIM3_Init+0xca>
  2559. {
  2560. Error_Handler();
  2561. 800132e: f000 fe2b bl 8001f88 <Error_Handler>
  2562. }
  2563. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_2);
  2564. 8001332: 4b1f ldr r3, [pc, #124] @ (80013b0 <MX_TIM3_Init+0x148>)
  2565. 8001334: 681b ldr r3, [r3, #0]
  2566. 8001336: 699a ldr r2, [r3, #24]
  2567. 8001338: 4b1d ldr r3, [pc, #116] @ (80013b0 <MX_TIM3_Init+0x148>)
  2568. 800133a: 681b ldr r3, [r3, #0]
  2569. 800133c: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2570. 8001340: 619a str r2, [r3, #24]
  2571. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_3) != HAL_OK)
  2572. 8001342: 463b mov r3, r7
  2573. 8001344: 2208 movs r2, #8
  2574. 8001346: 4619 mov r1, r3
  2575. 8001348: 4819 ldr r0, [pc, #100] @ (80013b0 <MX_TIM3_Init+0x148>)
  2576. 800134a: f00e faa1 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  2577. 800134e: 4603 mov r3, r0
  2578. 8001350: 2b00 cmp r3, #0
  2579. 8001352: d001 beq.n 8001358 <MX_TIM3_Init+0xf0>
  2580. {
  2581. Error_Handler();
  2582. 8001354: f000 fe18 bl 8001f88 <Error_Handler>
  2583. }
  2584. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_3);
  2585. 8001358: 4b15 ldr r3, [pc, #84] @ (80013b0 <MX_TIM3_Init+0x148>)
  2586. 800135a: 681b ldr r3, [r3, #0]
  2587. 800135c: 69da ldr r2, [r3, #28]
  2588. 800135e: 4b14 ldr r3, [pc, #80] @ (80013b0 <MX_TIM3_Init+0x148>)
  2589. 8001360: 681b ldr r3, [r3, #0]
  2590. 8001362: f022 0208 bic.w r2, r2, #8
  2591. 8001366: 61da str r2, [r3, #28]
  2592. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
  2593. 8001368: 463b mov r3, r7
  2594. 800136a: 220c movs r2, #12
  2595. 800136c: 4619 mov r1, r3
  2596. 800136e: 4810 ldr r0, [pc, #64] @ (80013b0 <MX_TIM3_Init+0x148>)
  2597. 8001370: f00e fa8e bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  2598. 8001374: 4603 mov r3, r0
  2599. 8001376: 2b00 cmp r3, #0
  2600. 8001378: d001 beq.n 800137e <MX_TIM3_Init+0x116>
  2601. {
  2602. Error_Handler();
  2603. 800137a: f000 fe05 bl 8001f88 <Error_Handler>
  2604. }
  2605. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_4);
  2606. 800137e: 4b0c ldr r3, [pc, #48] @ (80013b0 <MX_TIM3_Init+0x148>)
  2607. 8001380: 681b ldr r3, [r3, #0]
  2608. 8001382: 69da ldr r2, [r3, #28]
  2609. 8001384: 4b0a ldr r3, [pc, #40] @ (80013b0 <MX_TIM3_Init+0x148>)
  2610. 8001386: 681b ldr r3, [r3, #0]
  2611. 8001388: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2612. 800138c: 61da str r2, [r3, #28]
  2613. /* USER CODE BEGIN TIM3_Init 2 */
  2614. memcpy(&motorXYTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2615. 800138e: 4b0b ldr r3, [pc, #44] @ (80013bc <MX_TIM3_Init+0x154>)
  2616. 8001390: 461d mov r5, r3
  2617. 8001392: 463c mov r4, r7
  2618. 8001394: cc0f ldmia r4!, {r0, r1, r2, r3}
  2619. 8001396: c50f stmia r5!, {r0, r1, r2, r3}
  2620. 8001398: e894 0007 ldmia.w r4, {r0, r1, r2}
  2621. 800139c: e885 0007 stmia.w r5, {r0, r1, r2}
  2622. /* USER CODE END TIM3_Init 2 */
  2623. HAL_TIM_MspPostInit(&htim3);
  2624. 80013a0: 4803 ldr r0, [pc, #12] @ (80013b0 <MX_TIM3_Init+0x148>)
  2625. 80013a2: f002 fc6d bl 8003c80 <HAL_TIM_MspPostInit>
  2626. }
  2627. 80013a6: bf00 nop
  2628. 80013a8: 3728 adds r7, #40 @ 0x28
  2629. 80013aa: 46bd mov sp, r7
  2630. 80013ac: bdb0 pop {r4, r5, r7, pc}
  2631. 80013ae: bf00 nop
  2632. 80013b0: 240004f4 .word 0x240004f4
  2633. 80013b4: 40000400 .word 0x40000400
  2634. 80013b8: 00010040 .word 0x00010040
  2635. 80013bc: 240007e0 .word 0x240007e0
  2636. 080013c0 <MX_TIM4_Init>:
  2637. * @brief TIM4 Initialization Function
  2638. * @param None
  2639. * @retval None
  2640. */
  2641. static void MX_TIM4_Init(void)
  2642. {
  2643. 80013c0: b580 push {r7, lr}
  2644. 80013c2: b08c sub sp, #48 @ 0x30
  2645. 80013c4: af00 add r7, sp, #0
  2646. /* USER CODE BEGIN TIM4_Init 0 */
  2647. /* USER CODE END TIM4_Init 0 */
  2648. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2649. 80013c6: f107 0320 add.w r3, r7, #32
  2650. 80013ca: 2200 movs r2, #0
  2651. 80013cc: 601a str r2, [r3, #0]
  2652. 80013ce: 605a str r2, [r3, #4]
  2653. 80013d0: 609a str r2, [r3, #8]
  2654. 80013d2: 60da str r2, [r3, #12]
  2655. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2656. 80013d4: f107 0314 add.w r3, r7, #20
  2657. 80013d8: 2200 movs r2, #0
  2658. 80013da: 601a str r2, [r3, #0]
  2659. 80013dc: 605a str r2, [r3, #4]
  2660. 80013de: 609a str r2, [r3, #8]
  2661. TIM_IC_InitTypeDef sConfigIC = {0};
  2662. 80013e0: 1d3b adds r3, r7, #4
  2663. 80013e2: 2200 movs r2, #0
  2664. 80013e4: 601a str r2, [r3, #0]
  2665. 80013e6: 605a str r2, [r3, #4]
  2666. 80013e8: 609a str r2, [r3, #8]
  2667. 80013ea: 60da str r2, [r3, #12]
  2668. /* USER CODE BEGIN TIM4_Init 1 */
  2669. /* USER CODE END TIM4_Init 1 */
  2670. htim4.Instance = TIM4;
  2671. 80013ec: 4b31 ldr r3, [pc, #196] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2672. 80013ee: 4a32 ldr r2, [pc, #200] @ (80014b8 <MX_TIM4_Init+0xf8>)
  2673. 80013f0: 601a str r2, [r3, #0]
  2674. htim4.Init.Prescaler = 9999;
  2675. 80013f2: 4b30 ldr r3, [pc, #192] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2676. 80013f4: f242 720f movw r2, #9999 @ 0x270f
  2677. 80013f8: 605a str r2, [r3, #4]
  2678. htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
  2679. 80013fa: 4b2e ldr r3, [pc, #184] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2680. 80013fc: 2200 movs r2, #0
  2681. 80013fe: 609a str r2, [r3, #8]
  2682. htim4.Init.Period = 2999;
  2683. 8001400: 4b2c ldr r3, [pc, #176] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2684. 8001402: f640 32b7 movw r2, #2999 @ 0xbb7
  2685. 8001406: 60da str r2, [r3, #12]
  2686. htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2687. 8001408: 4b2a ldr r3, [pc, #168] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2688. 800140a: f44f 7280 mov.w r2, #256 @ 0x100
  2689. 800140e: 611a str r2, [r3, #16]
  2690. htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2691. 8001410: 4b28 ldr r3, [pc, #160] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2692. 8001412: 2280 movs r2, #128 @ 0x80
  2693. 8001414: 619a str r2, [r3, #24]
  2694. if (HAL_TIM_Base_Init(&htim4) != HAL_OK)
  2695. 8001416: 4827 ldr r0, [pc, #156] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2696. 8001418: f00d fba8 bl 800eb6c <HAL_TIM_Base_Init>
  2697. 800141c: 4603 mov r3, r0
  2698. 800141e: 2b00 cmp r3, #0
  2699. 8001420: d001 beq.n 8001426 <MX_TIM4_Init+0x66>
  2700. {
  2701. Error_Handler();
  2702. 8001422: f000 fdb1 bl 8001f88 <Error_Handler>
  2703. }
  2704. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2705. 8001426: f44f 5380 mov.w r3, #4096 @ 0x1000
  2706. 800142a: 623b str r3, [r7, #32]
  2707. if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
  2708. 800142c: f107 0320 add.w r3, r7, #32
  2709. 8001430: 4619 mov r1, r3
  2710. 8001432: 4820 ldr r0, [pc, #128] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2711. 8001434: f00e fb40 bl 800fab8 <HAL_TIM_ConfigClockSource>
  2712. 8001438: 4603 mov r3, r0
  2713. 800143a: 2b00 cmp r3, #0
  2714. 800143c: d001 beq.n 8001442 <MX_TIM4_Init+0x82>
  2715. {
  2716. Error_Handler();
  2717. 800143e: f000 fda3 bl 8001f88 <Error_Handler>
  2718. }
  2719. if (HAL_TIM_IC_Init(&htim4) != HAL_OK)
  2720. 8001442: 481c ldr r0, [pc, #112] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2721. 8001444: f00d fece bl 800f1e4 <HAL_TIM_IC_Init>
  2722. 8001448: 4603 mov r3, r0
  2723. 800144a: 2b00 cmp r3, #0
  2724. 800144c: d001 beq.n 8001452 <MX_TIM4_Init+0x92>
  2725. {
  2726. Error_Handler();
  2727. 800144e: f000 fd9b bl 8001f88 <Error_Handler>
  2728. }
  2729. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2730. 8001452: 2300 movs r3, #0
  2731. 8001454: 617b str r3, [r7, #20]
  2732. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2733. 8001456: 2300 movs r3, #0
  2734. 8001458: 61fb str r3, [r7, #28]
  2735. if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK)
  2736. 800145a: f107 0314 add.w r3, r7, #20
  2737. 800145e: 4619 mov r1, r3
  2738. 8001460: 4814 ldr r0, [pc, #80] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2739. 8001462: f00f fa27 bl 80108b4 <HAL_TIMEx_MasterConfigSynchronization>
  2740. 8001466: 4603 mov r3, r0
  2741. 8001468: 2b00 cmp r3, #0
  2742. 800146a: d001 beq.n 8001470 <MX_TIM4_Init+0xb0>
  2743. {
  2744. Error_Handler();
  2745. 800146c: f000 fd8c bl 8001f88 <Error_Handler>
  2746. }
  2747. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING;
  2748. 8001470: 2300 movs r3, #0
  2749. 8001472: 607b str r3, [r7, #4]
  2750. sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI;
  2751. 8001474: 2301 movs r3, #1
  2752. 8001476: 60bb str r3, [r7, #8]
  2753. sConfigIC.ICPrescaler = TIM_ICPSC_DIV1;
  2754. 8001478: 2300 movs r3, #0
  2755. 800147a: 60fb str r3, [r7, #12]
  2756. sConfigIC.ICFilter = 0;
  2757. 800147c: 2300 movs r3, #0
  2758. 800147e: 613b str r3, [r7, #16]
  2759. if (HAL_TIM_IC_ConfigChannel(&htim4, &sConfigIC, TIM_CHANNEL_3) != HAL_OK)
  2760. 8001480: 1d3b adds r3, r7, #4
  2761. 8001482: 2208 movs r2, #8
  2762. 8001484: 4619 mov r1, r3
  2763. 8001486: 480b ldr r0, [pc, #44] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2764. 8001488: f00e f965 bl 800f756 <HAL_TIM_IC_ConfigChannel>
  2765. 800148c: 4603 mov r3, r0
  2766. 800148e: 2b00 cmp r3, #0
  2767. 8001490: d001 beq.n 8001496 <MX_TIM4_Init+0xd6>
  2768. {
  2769. Error_Handler();
  2770. 8001492: f000 fd79 bl 8001f88 <Error_Handler>
  2771. }
  2772. if (HAL_TIM_IC_ConfigChannel(&htim4, &sConfigIC, TIM_CHANNEL_4) != HAL_OK)
  2773. 8001496: 1d3b adds r3, r7, #4
  2774. 8001498: 220c movs r2, #12
  2775. 800149a: 4619 mov r1, r3
  2776. 800149c: 4805 ldr r0, [pc, #20] @ (80014b4 <MX_TIM4_Init+0xf4>)
  2777. 800149e: f00e f95a bl 800f756 <HAL_TIM_IC_ConfigChannel>
  2778. 80014a2: 4603 mov r3, r0
  2779. 80014a4: 2b00 cmp r3, #0
  2780. 80014a6: d001 beq.n 80014ac <MX_TIM4_Init+0xec>
  2781. {
  2782. Error_Handler();
  2783. 80014a8: f000 fd6e bl 8001f88 <Error_Handler>
  2784. }
  2785. /* USER CODE BEGIN TIM4_Init 2 */
  2786. /* USER CODE END TIM4_Init 2 */
  2787. }
  2788. 80014ac: bf00 nop
  2789. 80014ae: 3730 adds r7, #48 @ 0x30
  2790. 80014b0: 46bd mov sp, r7
  2791. 80014b2: bd80 pop {r7, pc}
  2792. 80014b4: 24000540 .word 0x24000540
  2793. 80014b8: 40000800 .word 0x40000800
  2794. 080014bc <MX_TIM8_Init>:
  2795. * @brief TIM8 Initialization Function
  2796. * @param None
  2797. * @retval None
  2798. */
  2799. static void MX_TIM8_Init(void)
  2800. {
  2801. 80014bc: b580 push {r7, lr}
  2802. 80014be: b088 sub sp, #32
  2803. 80014c0: af00 add r7, sp, #0
  2804. /* USER CODE BEGIN TIM8_Init 0 */
  2805. /* USER CODE END TIM8_Init 0 */
  2806. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2807. 80014c2: f107 0310 add.w r3, r7, #16
  2808. 80014c6: 2200 movs r2, #0
  2809. 80014c8: 601a str r2, [r3, #0]
  2810. 80014ca: 605a str r2, [r3, #4]
  2811. 80014cc: 609a str r2, [r3, #8]
  2812. 80014ce: 60da str r2, [r3, #12]
  2813. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2814. 80014d0: 1d3b adds r3, r7, #4
  2815. 80014d2: 2200 movs r2, #0
  2816. 80014d4: 601a str r2, [r3, #0]
  2817. 80014d6: 605a str r2, [r3, #4]
  2818. 80014d8: 609a str r2, [r3, #8]
  2819. /* USER CODE BEGIN TIM8_Init 1 */
  2820. /* USER CODE END TIM8_Init 1 */
  2821. htim8.Instance = TIM8;
  2822. 80014da: 4b21 ldr r3, [pc, #132] @ (8001560 <MX_TIM8_Init+0xa4>)
  2823. 80014dc: 4a21 ldr r2, [pc, #132] @ (8001564 <MX_TIM8_Init+0xa8>)
  2824. 80014de: 601a str r2, [r3, #0]
  2825. htim8.Init.Prescaler = 9999;
  2826. 80014e0: 4b1f ldr r3, [pc, #124] @ (8001560 <MX_TIM8_Init+0xa4>)
  2827. 80014e2: f242 720f movw r2, #9999 @ 0x270f
  2828. 80014e6: 605a str r2, [r3, #4]
  2829. htim8.Init.CounterMode = TIM_COUNTERMODE_UP;
  2830. 80014e8: 4b1d ldr r3, [pc, #116] @ (8001560 <MX_TIM8_Init+0xa4>)
  2831. 80014ea: 2200 movs r2, #0
  2832. 80014ec: 609a str r2, [r3, #8]
  2833. htim8.Init.Period = 999;
  2834. 80014ee: 4b1c ldr r3, [pc, #112] @ (8001560 <MX_TIM8_Init+0xa4>)
  2835. 80014f0: f240 32e7 movw r2, #999 @ 0x3e7
  2836. 80014f4: 60da str r2, [r3, #12]
  2837. htim8.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2838. 80014f6: 4b1a ldr r3, [pc, #104] @ (8001560 <MX_TIM8_Init+0xa4>)
  2839. 80014f8: f44f 7280 mov.w r2, #256 @ 0x100
  2840. 80014fc: 611a str r2, [r3, #16]
  2841. htim8.Init.RepetitionCounter = 0;
  2842. 80014fe: 4b18 ldr r3, [pc, #96] @ (8001560 <MX_TIM8_Init+0xa4>)
  2843. 8001500: 2200 movs r2, #0
  2844. 8001502: 615a str r2, [r3, #20]
  2845. htim8.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2846. 8001504: 4b16 ldr r3, [pc, #88] @ (8001560 <MX_TIM8_Init+0xa4>)
  2847. 8001506: 2280 movs r2, #128 @ 0x80
  2848. 8001508: 619a str r2, [r3, #24]
  2849. if (HAL_TIM_Base_Init(&htim8) != HAL_OK)
  2850. 800150a: 4815 ldr r0, [pc, #84] @ (8001560 <MX_TIM8_Init+0xa4>)
  2851. 800150c: f00d fb2e bl 800eb6c <HAL_TIM_Base_Init>
  2852. 8001510: 4603 mov r3, r0
  2853. 8001512: 2b00 cmp r3, #0
  2854. 8001514: d001 beq.n 800151a <MX_TIM8_Init+0x5e>
  2855. {
  2856. Error_Handler();
  2857. 8001516: f000 fd37 bl 8001f88 <Error_Handler>
  2858. }
  2859. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2860. 800151a: f44f 5380 mov.w r3, #4096 @ 0x1000
  2861. 800151e: 613b str r3, [r7, #16]
  2862. if (HAL_TIM_ConfigClockSource(&htim8, &sClockSourceConfig) != HAL_OK)
  2863. 8001520: f107 0310 add.w r3, r7, #16
  2864. 8001524: 4619 mov r1, r3
  2865. 8001526: 480e ldr r0, [pc, #56] @ (8001560 <MX_TIM8_Init+0xa4>)
  2866. 8001528: f00e fac6 bl 800fab8 <HAL_TIM_ConfigClockSource>
  2867. 800152c: 4603 mov r3, r0
  2868. 800152e: 2b00 cmp r3, #0
  2869. 8001530: d001 beq.n 8001536 <MX_TIM8_Init+0x7a>
  2870. {
  2871. Error_Handler();
  2872. 8001532: f000 fd29 bl 8001f88 <Error_Handler>
  2873. }
  2874. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2875. 8001536: 2320 movs r3, #32
  2876. 8001538: 607b str r3, [r7, #4]
  2877. sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET;
  2878. 800153a: 2300 movs r3, #0
  2879. 800153c: 60bb str r3, [r7, #8]
  2880. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_ENABLE;
  2881. 800153e: 2380 movs r3, #128 @ 0x80
  2882. 8001540: 60fb str r3, [r7, #12]
  2883. if (HAL_TIMEx_MasterConfigSynchronization(&htim8, &sMasterConfig) != HAL_OK)
  2884. 8001542: 1d3b adds r3, r7, #4
  2885. 8001544: 4619 mov r1, r3
  2886. 8001546: 4806 ldr r0, [pc, #24] @ (8001560 <MX_TIM8_Init+0xa4>)
  2887. 8001548: f00f f9b4 bl 80108b4 <HAL_TIMEx_MasterConfigSynchronization>
  2888. 800154c: 4603 mov r3, r0
  2889. 800154e: 2b00 cmp r3, #0
  2890. 8001550: d001 beq.n 8001556 <MX_TIM8_Init+0x9a>
  2891. {
  2892. Error_Handler();
  2893. 8001552: f000 fd19 bl 8001f88 <Error_Handler>
  2894. }
  2895. /* USER CODE BEGIN TIM8_Init 2 */
  2896. /* USER CODE END TIM8_Init 2 */
  2897. }
  2898. 8001556: bf00 nop
  2899. 8001558: 3720 adds r7, #32
  2900. 800155a: 46bd mov sp, r7
  2901. 800155c: bd80 pop {r7, pc}
  2902. 800155e: bf00 nop
  2903. 8001560: 2400058c .word 0x2400058c
  2904. 8001564: 40010400 .word 0x40010400
  2905. 08001568 <MX_UART8_Init>:
  2906. * @brief UART8 Initialization Function
  2907. * @param None
  2908. * @retval None
  2909. */
  2910. static void MX_UART8_Init(void)
  2911. {
  2912. 8001568: b580 push {r7, lr}
  2913. 800156a: af00 add r7, sp, #0
  2914. /* USER CODE END UART8_Init 0 */
  2915. /* USER CODE BEGIN UART8_Init 1 */
  2916. /* USER CODE END UART8_Init 1 */
  2917. huart8.Instance = UART8;
  2918. 800156c: 4b22 ldr r3, [pc, #136] @ (80015f8 <MX_UART8_Init+0x90>)
  2919. 800156e: 4a23 ldr r2, [pc, #140] @ (80015fc <MX_UART8_Init+0x94>)
  2920. 8001570: 601a str r2, [r3, #0]
  2921. huart8.Init.BaudRate = 115200;
  2922. 8001572: 4b21 ldr r3, [pc, #132] @ (80015f8 <MX_UART8_Init+0x90>)
  2923. 8001574: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  2924. 8001578: 605a str r2, [r3, #4]
  2925. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  2926. 800157a: 4b1f ldr r3, [pc, #124] @ (80015f8 <MX_UART8_Init+0x90>)
  2927. 800157c: 2200 movs r2, #0
  2928. 800157e: 609a str r2, [r3, #8]
  2929. huart8.Init.StopBits = UART_STOPBITS_1;
  2930. 8001580: 4b1d ldr r3, [pc, #116] @ (80015f8 <MX_UART8_Init+0x90>)
  2931. 8001582: 2200 movs r2, #0
  2932. 8001584: 60da str r2, [r3, #12]
  2933. huart8.Init.Parity = UART_PARITY_NONE;
  2934. 8001586: 4b1c ldr r3, [pc, #112] @ (80015f8 <MX_UART8_Init+0x90>)
  2935. 8001588: 2200 movs r2, #0
  2936. 800158a: 611a str r2, [r3, #16]
  2937. huart8.Init.Mode = UART_MODE_TX_RX;
  2938. 800158c: 4b1a ldr r3, [pc, #104] @ (80015f8 <MX_UART8_Init+0x90>)
  2939. 800158e: 220c movs r2, #12
  2940. 8001590: 615a str r2, [r3, #20]
  2941. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2942. 8001592: 4b19 ldr r3, [pc, #100] @ (80015f8 <MX_UART8_Init+0x90>)
  2943. 8001594: 2200 movs r2, #0
  2944. 8001596: 619a str r2, [r3, #24]
  2945. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  2946. 8001598: 4b17 ldr r3, [pc, #92] @ (80015f8 <MX_UART8_Init+0x90>)
  2947. 800159a: 2200 movs r2, #0
  2948. 800159c: 61da str r2, [r3, #28]
  2949. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  2950. 800159e: 4b16 ldr r3, [pc, #88] @ (80015f8 <MX_UART8_Init+0x90>)
  2951. 80015a0: 2200 movs r2, #0
  2952. 80015a2: 621a str r2, [r3, #32]
  2953. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  2954. 80015a4: 4b14 ldr r3, [pc, #80] @ (80015f8 <MX_UART8_Init+0x90>)
  2955. 80015a6: 2200 movs r2, #0
  2956. 80015a8: 625a str r2, [r3, #36] @ 0x24
  2957. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  2958. 80015aa: 4b13 ldr r3, [pc, #76] @ (80015f8 <MX_UART8_Init+0x90>)
  2959. 80015ac: 2200 movs r2, #0
  2960. 80015ae: 629a str r2, [r3, #40] @ 0x28
  2961. if (HAL_UART_Init(&huart8) != HAL_OK)
  2962. 80015b0: 4811 ldr r0, [pc, #68] @ (80015f8 <MX_UART8_Init+0x90>)
  2963. 80015b2: f00f faa9 bl 8010b08 <HAL_UART_Init>
  2964. 80015b6: 4603 mov r3, r0
  2965. 80015b8: 2b00 cmp r3, #0
  2966. 80015ba: d001 beq.n 80015c0 <MX_UART8_Init+0x58>
  2967. {
  2968. Error_Handler();
  2969. 80015bc: f000 fce4 bl 8001f88 <Error_Handler>
  2970. }
  2971. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  2972. 80015c0: 2100 movs r1, #0
  2973. 80015c2: 480d ldr r0, [pc, #52] @ (80015f8 <MX_UART8_Init+0x90>)
  2974. 80015c4: f011 ffd7 bl 8013576 <HAL_UARTEx_SetTxFifoThreshold>
  2975. 80015c8: 4603 mov r3, r0
  2976. 80015ca: 2b00 cmp r3, #0
  2977. 80015cc: d001 beq.n 80015d2 <MX_UART8_Init+0x6a>
  2978. {
  2979. Error_Handler();
  2980. 80015ce: f000 fcdb bl 8001f88 <Error_Handler>
  2981. }
  2982. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  2983. 80015d2: 2100 movs r1, #0
  2984. 80015d4: 4808 ldr r0, [pc, #32] @ (80015f8 <MX_UART8_Init+0x90>)
  2985. 80015d6: f012 f80c bl 80135f2 <HAL_UARTEx_SetRxFifoThreshold>
  2986. 80015da: 4603 mov r3, r0
  2987. 80015dc: 2b00 cmp r3, #0
  2988. 80015de: d001 beq.n 80015e4 <MX_UART8_Init+0x7c>
  2989. {
  2990. Error_Handler();
  2991. 80015e0: f000 fcd2 bl 8001f88 <Error_Handler>
  2992. }
  2993. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  2994. 80015e4: 4804 ldr r0, [pc, #16] @ (80015f8 <MX_UART8_Init+0x90>)
  2995. 80015e6: f011 ff8d bl 8013504 <HAL_UARTEx_DisableFifoMode>
  2996. 80015ea: 4603 mov r3, r0
  2997. 80015ec: 2b00 cmp r3, #0
  2998. 80015ee: d001 beq.n 80015f4 <MX_UART8_Init+0x8c>
  2999. {
  3000. Error_Handler();
  3001. 80015f0: f000 fcca bl 8001f88 <Error_Handler>
  3002. }
  3003. /* USER CODE BEGIN UART8_Init 2 */
  3004. /* USER CODE END UART8_Init 2 */
  3005. }
  3006. 80015f4: bf00 nop
  3007. 80015f6: bd80 pop {r7, pc}
  3008. 80015f8: 240005d8 .word 0x240005d8
  3009. 80015fc: 40007c00 .word 0x40007c00
  3010. 08001600 <MX_USART1_UART_Init>:
  3011. * @brief USART1 Initialization Function
  3012. * @param None
  3013. * @retval None
  3014. */
  3015. static void MX_USART1_UART_Init(void)
  3016. {
  3017. 8001600: b580 push {r7, lr}
  3018. 8001602: af00 add r7, sp, #0
  3019. /* USER CODE END USART1_Init 0 */
  3020. /* USER CODE BEGIN USART1_Init 1 */
  3021. /* USER CODE END USART1_Init 1 */
  3022. huart1.Instance = USART1;
  3023. 8001604: 4b24 ldr r3, [pc, #144] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3024. 8001606: 4a25 ldr r2, [pc, #148] @ (800169c <MX_USART1_UART_Init+0x9c>)
  3025. 8001608: 601a str r2, [r3, #0]
  3026. huart1.Init.BaudRate = 115200;
  3027. 800160a: 4b23 ldr r3, [pc, #140] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3028. 800160c: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  3029. 8001610: 605a str r2, [r3, #4]
  3030. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  3031. 8001612: 4b21 ldr r3, [pc, #132] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3032. 8001614: 2200 movs r2, #0
  3033. 8001616: 609a str r2, [r3, #8]
  3034. huart1.Init.StopBits = UART_STOPBITS_1;
  3035. 8001618: 4b1f ldr r3, [pc, #124] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3036. 800161a: 2200 movs r2, #0
  3037. 800161c: 60da str r2, [r3, #12]
  3038. huart1.Init.Parity = UART_PARITY_NONE;
  3039. 800161e: 4b1e ldr r3, [pc, #120] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3040. 8001620: 2200 movs r2, #0
  3041. 8001622: 611a str r2, [r3, #16]
  3042. huart1.Init.Mode = UART_MODE_TX_RX;
  3043. 8001624: 4b1c ldr r3, [pc, #112] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3044. 8001626: 220c movs r2, #12
  3045. 8001628: 615a str r2, [r3, #20]
  3046. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  3047. 800162a: 4b1b ldr r3, [pc, #108] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3048. 800162c: 2200 movs r2, #0
  3049. 800162e: 619a str r2, [r3, #24]
  3050. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  3051. 8001630: 4b19 ldr r3, [pc, #100] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3052. 8001632: 2200 movs r2, #0
  3053. 8001634: 61da str r2, [r3, #28]
  3054. huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  3055. 8001636: 4b18 ldr r3, [pc, #96] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3056. 8001638: 2200 movs r2, #0
  3057. 800163a: 621a str r2, [r3, #32]
  3058. huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  3059. 800163c: 4b16 ldr r3, [pc, #88] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3060. 800163e: 2200 movs r2, #0
  3061. 8001640: 625a str r2, [r3, #36] @ 0x24
  3062. huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  3063. 8001642: 4b15 ldr r3, [pc, #84] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3064. 8001644: 2201 movs r2, #1
  3065. 8001646: 629a str r2, [r3, #40] @ 0x28
  3066. huart1.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  3067. 8001648: 4b13 ldr r3, [pc, #76] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3068. 800164a: f44f 3200 mov.w r2, #131072 @ 0x20000
  3069. 800164e: 62da str r2, [r3, #44] @ 0x2c
  3070. if (HAL_UART_Init(&huart1) != HAL_OK)
  3071. 8001650: 4811 ldr r0, [pc, #68] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3072. 8001652: f00f fa59 bl 8010b08 <HAL_UART_Init>
  3073. 8001656: 4603 mov r3, r0
  3074. 8001658: 2b00 cmp r3, #0
  3075. 800165a: d001 beq.n 8001660 <MX_USART1_UART_Init+0x60>
  3076. {
  3077. Error_Handler();
  3078. 800165c: f000 fc94 bl 8001f88 <Error_Handler>
  3079. }
  3080. if (HAL_UARTEx_SetTxFifoThreshold(&huart1, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  3081. 8001660: 2100 movs r1, #0
  3082. 8001662: 480d ldr r0, [pc, #52] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3083. 8001664: f011 ff87 bl 8013576 <HAL_UARTEx_SetTxFifoThreshold>
  3084. 8001668: 4603 mov r3, r0
  3085. 800166a: 2b00 cmp r3, #0
  3086. 800166c: d001 beq.n 8001672 <MX_USART1_UART_Init+0x72>
  3087. {
  3088. Error_Handler();
  3089. 800166e: f000 fc8b bl 8001f88 <Error_Handler>
  3090. }
  3091. if (HAL_UARTEx_SetRxFifoThreshold(&huart1, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  3092. 8001672: 2100 movs r1, #0
  3093. 8001674: 4808 ldr r0, [pc, #32] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3094. 8001676: f011 ffbc bl 80135f2 <HAL_UARTEx_SetRxFifoThreshold>
  3095. 800167a: 4603 mov r3, r0
  3096. 800167c: 2b00 cmp r3, #0
  3097. 800167e: d001 beq.n 8001684 <MX_USART1_UART_Init+0x84>
  3098. {
  3099. Error_Handler();
  3100. 8001680: f000 fc82 bl 8001f88 <Error_Handler>
  3101. }
  3102. if (HAL_UARTEx_DisableFifoMode(&huart1) != HAL_OK)
  3103. 8001684: 4804 ldr r0, [pc, #16] @ (8001698 <MX_USART1_UART_Init+0x98>)
  3104. 8001686: f011 ff3d bl 8013504 <HAL_UARTEx_DisableFifoMode>
  3105. 800168a: 4603 mov r3, r0
  3106. 800168c: 2b00 cmp r3, #0
  3107. 800168e: d001 beq.n 8001694 <MX_USART1_UART_Init+0x94>
  3108. {
  3109. Error_Handler();
  3110. 8001690: f000 fc7a bl 8001f88 <Error_Handler>
  3111. }
  3112. /* USER CODE BEGIN USART1_Init 2 */
  3113. /* USER CODE END USART1_Init 2 */
  3114. }
  3115. 8001694: bf00 nop
  3116. 8001696: bd80 pop {r7, pc}
  3117. 8001698: 2400066c .word 0x2400066c
  3118. 800169c: 40011000 .word 0x40011000
  3119. 080016a0 <MX_DMA_Init>:
  3120. /**
  3121. * Enable DMA controller clock
  3122. */
  3123. static void MX_DMA_Init(void)
  3124. {
  3125. 80016a0: b580 push {r7, lr}
  3126. 80016a2: b082 sub sp, #8
  3127. 80016a4: af00 add r7, sp, #0
  3128. /* DMA controller clock enable */
  3129. __HAL_RCC_DMA1_CLK_ENABLE();
  3130. 80016a6: 4b15 ldr r3, [pc, #84] @ (80016fc <MX_DMA_Init+0x5c>)
  3131. 80016a8: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  3132. 80016ac: 4a13 ldr r2, [pc, #76] @ (80016fc <MX_DMA_Init+0x5c>)
  3133. 80016ae: f043 0301 orr.w r3, r3, #1
  3134. 80016b2: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  3135. 80016b6: 4b11 ldr r3, [pc, #68] @ (80016fc <MX_DMA_Init+0x5c>)
  3136. 80016b8: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  3137. 80016bc: f003 0301 and.w r3, r3, #1
  3138. 80016c0: 607b str r3, [r7, #4]
  3139. 80016c2: 687b ldr r3, [r7, #4]
  3140. /* DMA interrupt init */
  3141. /* DMA1_Stream0_IRQn interrupt configuration */
  3142. HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 5, 0);
  3143. 80016c4: 2200 movs r2, #0
  3144. 80016c6: 2105 movs r1, #5
  3145. 80016c8: 200b movs r0, #11
  3146. 80016ca: f005 fdf3 bl 80072b4 <HAL_NVIC_SetPriority>
  3147. HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
  3148. 80016ce: 200b movs r0, #11
  3149. 80016d0: f005 fe0a bl 80072e8 <HAL_NVIC_EnableIRQ>
  3150. /* DMA1_Stream1_IRQn interrupt configuration */
  3151. HAL_NVIC_SetPriority(DMA1_Stream1_IRQn, 5, 0);
  3152. 80016d4: 2200 movs r2, #0
  3153. 80016d6: 2105 movs r1, #5
  3154. 80016d8: 200c movs r0, #12
  3155. 80016da: f005 fdeb bl 80072b4 <HAL_NVIC_SetPriority>
  3156. HAL_NVIC_EnableIRQ(DMA1_Stream1_IRQn);
  3157. 80016de: 200c movs r0, #12
  3158. 80016e0: f005 fe02 bl 80072e8 <HAL_NVIC_EnableIRQ>
  3159. /* DMA1_Stream2_IRQn interrupt configuration */
  3160. HAL_NVIC_SetPriority(DMA1_Stream2_IRQn, 5, 0);
  3161. 80016e4: 2200 movs r2, #0
  3162. 80016e6: 2105 movs r1, #5
  3163. 80016e8: 200d movs r0, #13
  3164. 80016ea: f005 fde3 bl 80072b4 <HAL_NVIC_SetPriority>
  3165. HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn);
  3166. 80016ee: 200d movs r0, #13
  3167. 80016f0: f005 fdfa bl 80072e8 <HAL_NVIC_EnableIRQ>
  3168. }
  3169. 80016f4: bf00 nop
  3170. 80016f6: 3708 adds r7, #8
  3171. 80016f8: 46bd mov sp, r7
  3172. 80016fa: bd80 pop {r7, pc}
  3173. 80016fc: 58024400 .word 0x58024400
  3174. 08001700 <MX_GPIO_Init>:
  3175. * @brief GPIO Initialization Function
  3176. * @param None
  3177. * @retval None
  3178. */
  3179. static void MX_GPIO_Init(void)
  3180. {
  3181. 8001700: b580 push {r7, lr}
  3182. 8001702: b08c sub sp, #48 @ 0x30
  3183. 8001704: af00 add r7, sp, #0
  3184. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3185. 8001706: f107 031c add.w r3, r7, #28
  3186. 800170a: 2200 movs r2, #0
  3187. 800170c: 601a str r2, [r3, #0]
  3188. 800170e: 605a str r2, [r3, #4]
  3189. 8001710: 609a str r2, [r3, #8]
  3190. 8001712: 60da str r2, [r3, #12]
  3191. 8001714: 611a str r2, [r3, #16]
  3192. /* USER CODE BEGIN MX_GPIO_Init_1 */
  3193. /* USER CODE END MX_GPIO_Init_1 */
  3194. /* GPIO Ports Clock Enable */
  3195. __HAL_RCC_GPIOH_CLK_ENABLE();
  3196. 8001716: 4b58 ldr r3, [pc, #352] @ (8001878 <MX_GPIO_Init+0x178>)
  3197. 8001718: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3198. 800171c: 4a56 ldr r2, [pc, #344] @ (8001878 <MX_GPIO_Init+0x178>)
  3199. 800171e: f043 0380 orr.w r3, r3, #128 @ 0x80
  3200. 8001722: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3201. 8001726: 4b54 ldr r3, [pc, #336] @ (8001878 <MX_GPIO_Init+0x178>)
  3202. 8001728: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3203. 800172c: f003 0380 and.w r3, r3, #128 @ 0x80
  3204. 8001730: 61bb str r3, [r7, #24]
  3205. 8001732: 69bb ldr r3, [r7, #24]
  3206. __HAL_RCC_GPIOC_CLK_ENABLE();
  3207. 8001734: 4b50 ldr r3, [pc, #320] @ (8001878 <MX_GPIO_Init+0x178>)
  3208. 8001736: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3209. 800173a: 4a4f ldr r2, [pc, #316] @ (8001878 <MX_GPIO_Init+0x178>)
  3210. 800173c: f043 0304 orr.w r3, r3, #4
  3211. 8001740: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3212. 8001744: 4b4c ldr r3, [pc, #304] @ (8001878 <MX_GPIO_Init+0x178>)
  3213. 8001746: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3214. 800174a: f003 0304 and.w r3, r3, #4
  3215. 800174e: 617b str r3, [r7, #20]
  3216. 8001750: 697b ldr r3, [r7, #20]
  3217. __HAL_RCC_GPIOA_CLK_ENABLE();
  3218. 8001752: 4b49 ldr r3, [pc, #292] @ (8001878 <MX_GPIO_Init+0x178>)
  3219. 8001754: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3220. 8001758: 4a47 ldr r2, [pc, #284] @ (8001878 <MX_GPIO_Init+0x178>)
  3221. 800175a: f043 0301 orr.w r3, r3, #1
  3222. 800175e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3223. 8001762: 4b45 ldr r3, [pc, #276] @ (8001878 <MX_GPIO_Init+0x178>)
  3224. 8001764: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3225. 8001768: f003 0301 and.w r3, r3, #1
  3226. 800176c: 613b str r3, [r7, #16]
  3227. 800176e: 693b ldr r3, [r7, #16]
  3228. __HAL_RCC_GPIOB_CLK_ENABLE();
  3229. 8001770: 4b41 ldr r3, [pc, #260] @ (8001878 <MX_GPIO_Init+0x178>)
  3230. 8001772: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3231. 8001776: 4a40 ldr r2, [pc, #256] @ (8001878 <MX_GPIO_Init+0x178>)
  3232. 8001778: f043 0302 orr.w r3, r3, #2
  3233. 800177c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3234. 8001780: 4b3d ldr r3, [pc, #244] @ (8001878 <MX_GPIO_Init+0x178>)
  3235. 8001782: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3236. 8001786: f003 0302 and.w r3, r3, #2
  3237. 800178a: 60fb str r3, [r7, #12]
  3238. 800178c: 68fb ldr r3, [r7, #12]
  3239. __HAL_RCC_GPIOE_CLK_ENABLE();
  3240. 800178e: 4b3a ldr r3, [pc, #232] @ (8001878 <MX_GPIO_Init+0x178>)
  3241. 8001790: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3242. 8001794: 4a38 ldr r2, [pc, #224] @ (8001878 <MX_GPIO_Init+0x178>)
  3243. 8001796: f043 0310 orr.w r3, r3, #16
  3244. 800179a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3245. 800179e: 4b36 ldr r3, [pc, #216] @ (8001878 <MX_GPIO_Init+0x178>)
  3246. 80017a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3247. 80017a4: f003 0310 and.w r3, r3, #16
  3248. 80017a8: 60bb str r3, [r7, #8]
  3249. 80017aa: 68bb ldr r3, [r7, #8]
  3250. __HAL_RCC_GPIOD_CLK_ENABLE();
  3251. 80017ac: 4b32 ldr r3, [pc, #200] @ (8001878 <MX_GPIO_Init+0x178>)
  3252. 80017ae: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3253. 80017b2: 4a31 ldr r2, [pc, #196] @ (8001878 <MX_GPIO_Init+0x178>)
  3254. 80017b4: f043 0308 orr.w r3, r3, #8
  3255. 80017b8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3256. 80017bc: 4b2e ldr r3, [pc, #184] @ (8001878 <MX_GPIO_Init+0x178>)
  3257. 80017be: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3258. 80017c2: f003 0308 and.w r3, r3, #8
  3259. 80017c6: 607b str r3, [r7, #4]
  3260. 80017c8: 687b ldr r3, [r7, #4]
  3261. /*Configure GPIO pin Output Level */
  3262. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3263. 80017ca: 2200 movs r2, #0
  3264. 80017cc: f24e 7180 movw r1, #59264 @ 0xe780
  3265. 80017d0: 482a ldr r0, [pc, #168] @ (800187c <MX_GPIO_Init+0x17c>)
  3266. 80017d2: f009 fa69 bl 800aca8 <HAL_GPIO_WritePin>
  3267. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15, GPIO_PIN_RESET);
  3268. /*Configure GPIO pin Output Level */
  3269. HAL_GPIO_WritePin(GPIOD, GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7, GPIO_PIN_RESET);
  3270. 80017d6: 2200 movs r2, #0
  3271. 80017d8: 21f0 movs r1, #240 @ 0xf0
  3272. 80017da: 4829 ldr r0, [pc, #164] @ (8001880 <MX_GPIO_Init+0x180>)
  3273. 80017dc: f009 fa64 bl 800aca8 <HAL_GPIO_WritePin>
  3274. /*Configure GPIO pins : PE7 PE8 PE9 PE10
  3275. PE13 PE14 PE15 */
  3276. GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3277. 80017e0: f24e 7380 movw r3, #59264 @ 0xe780
  3278. 80017e4: 61fb str r3, [r7, #28]
  3279. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  3280. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3281. 80017e6: 2301 movs r3, #1
  3282. 80017e8: 623b str r3, [r7, #32]
  3283. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3284. 80017ea: 2300 movs r3, #0
  3285. 80017ec: 627b str r3, [r7, #36] @ 0x24
  3286. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3287. 80017ee: 2300 movs r3, #0
  3288. 80017f0: 62bb str r3, [r7, #40] @ 0x28
  3289. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  3290. 80017f2: f107 031c add.w r3, r7, #28
  3291. 80017f6: 4619 mov r1, r3
  3292. 80017f8: 4820 ldr r0, [pc, #128] @ (800187c <MX_GPIO_Init+0x17c>)
  3293. 80017fa: f009 f88d bl 800a918 <HAL_GPIO_Init>
  3294. /*Configure GPIO pins : PD8 PD9 PD10 PD11
  3295. PD12 PD13 */
  3296. GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
  3297. 80017fe: f44f 537c mov.w r3, #16128 @ 0x3f00
  3298. 8001802: 61fb str r3, [r7, #28]
  3299. |GPIO_PIN_12|GPIO_PIN_13;
  3300. GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
  3301. 8001804: f44f 1344 mov.w r3, #3211264 @ 0x310000
  3302. 8001808: 623b str r3, [r7, #32]
  3303. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3304. 800180a: 2300 movs r3, #0
  3305. 800180c: 627b str r3, [r7, #36] @ 0x24
  3306. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3307. 800180e: f107 031c add.w r3, r7, #28
  3308. 8001812: 4619 mov r1, r3
  3309. 8001814: 481a ldr r0, [pc, #104] @ (8001880 <MX_GPIO_Init+0x180>)
  3310. 8001816: f009 f87f bl 800a918 <HAL_GPIO_Init>
  3311. /*Configure GPIO pin : PD3 */
  3312. GPIO_InitStruct.Pin = GPIO_PIN_3;
  3313. 800181a: 2308 movs r3, #8
  3314. 800181c: 61fb str r3, [r7, #28]
  3315. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  3316. 800181e: 2300 movs r3, #0
  3317. 8001820: 623b str r3, [r7, #32]
  3318. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3319. 8001822: 2300 movs r3, #0
  3320. 8001824: 627b str r3, [r7, #36] @ 0x24
  3321. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3322. 8001826: f107 031c add.w r3, r7, #28
  3323. 800182a: 4619 mov r1, r3
  3324. 800182c: 4814 ldr r0, [pc, #80] @ (8001880 <MX_GPIO_Init+0x180>)
  3325. 800182e: f009 f873 bl 800a918 <HAL_GPIO_Init>
  3326. /*Configure GPIO pins : PD4 PD5 PD6 PD7 */
  3327. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
  3328. 8001832: 23f0 movs r3, #240 @ 0xf0
  3329. 8001834: 61fb str r3, [r7, #28]
  3330. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3331. 8001836: 2301 movs r3, #1
  3332. 8001838: 623b str r3, [r7, #32]
  3333. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3334. 800183a: 2300 movs r3, #0
  3335. 800183c: 627b str r3, [r7, #36] @ 0x24
  3336. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3337. 800183e: 2300 movs r3, #0
  3338. 8001840: 62bb str r3, [r7, #40] @ 0x28
  3339. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3340. 8001842: f107 031c add.w r3, r7, #28
  3341. 8001846: 4619 mov r1, r3
  3342. 8001848: 480d ldr r0, [pc, #52] @ (8001880 <MX_GPIO_Init+0x180>)
  3343. 800184a: f009 f865 bl 800a918 <HAL_GPIO_Init>
  3344. /* EXTI interrupt init*/
  3345. HAL_NVIC_SetPriority(EXTI9_5_IRQn, 5, 0);
  3346. 800184e: 2200 movs r2, #0
  3347. 8001850: 2105 movs r1, #5
  3348. 8001852: 2017 movs r0, #23
  3349. 8001854: f005 fd2e bl 80072b4 <HAL_NVIC_SetPriority>
  3350. HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);
  3351. 8001858: 2017 movs r0, #23
  3352. 800185a: f005 fd45 bl 80072e8 <HAL_NVIC_EnableIRQ>
  3353. HAL_NVIC_SetPriority(EXTI15_10_IRQn, 5, 0);
  3354. 800185e: 2200 movs r2, #0
  3355. 8001860: 2105 movs r1, #5
  3356. 8001862: 2028 movs r0, #40 @ 0x28
  3357. 8001864: f005 fd26 bl 80072b4 <HAL_NVIC_SetPriority>
  3358. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3359. 8001868: 2028 movs r0, #40 @ 0x28
  3360. 800186a: f005 fd3d bl 80072e8 <HAL_NVIC_EnableIRQ>
  3361. /* USER CODE BEGIN MX_GPIO_Init_2 */
  3362. /* USER CODE END MX_GPIO_Init_2 */
  3363. }
  3364. 800186e: bf00 nop
  3365. 8001870: 3730 adds r7, #48 @ 0x30
  3366. 8001872: 46bd mov sp, r7
  3367. 8001874: bd80 pop {r7, pc}
  3368. 8001876: bf00 nop
  3369. 8001878: 58024400 .word 0x58024400
  3370. 800187c: 58021000 .word 0x58021000
  3371. 8001880: 58020c00 .word 0x58020c00
  3372. 08001884 <HAL_ADC_ConvCpltCallback>:
  3373. /* USER CODE BEGIN 4 */
  3374. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
  3375. {
  3376. 8001884: b580 push {r7, lr}
  3377. 8001886: b08e sub sp, #56 @ 0x38
  3378. 8001888: af00 add r7, sp, #0
  3379. 800188a: 6078 str r0, [r7, #4]
  3380. if(hadc->Instance == ADC1)
  3381. 800188c: 687b ldr r3, [r7, #4]
  3382. 800188e: 681b ldr r3, [r3, #0]
  3383. 8001890: 4a67 ldr r2, [pc, #412] @ (8001a30 <HAL_ADC_ConvCpltCallback+0x1ac>)
  3384. 8001892: 4293 cmp r3, r2
  3385. 8001894: d13f bne.n 8001916 <HAL_ADC_ConvCpltCallback+0x92>
  3386. {
  3387. DbgLEDToggle(DBG_LED4);
  3388. 8001896: 2080 movs r0, #128 @ 0x80
  3389. 8001898: f001 fada bl 8002e50 <DbgLEDToggle>
  3390. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc1Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3391. 800189c: 4b65 ldr r3, [pc, #404] @ (8001a34 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3392. 800189e: f023 031f bic.w r3, r3, #31
  3393. 80018a2: 637b str r3, [r7, #52] @ 0x34
  3394. 80018a4: 2320 movs r3, #32
  3395. 80018a6: 633b str r3, [r7, #48] @ 0x30
  3396. \param[in] dsize size of memory block (in number of bytes)
  3397. */
  3398. __STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize)
  3399. {
  3400. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  3401. if ( dsize > 0 ) {
  3402. 80018a8: 6b3b ldr r3, [r7, #48] @ 0x30
  3403. 80018aa: 2b00 cmp r3, #0
  3404. 80018ac: dd1d ble.n 80018ea <HAL_ADC_ConvCpltCallback+0x66>
  3405. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3406. 80018ae: 6b7b ldr r3, [r7, #52] @ 0x34
  3407. 80018b0: f003 021f and.w r2, r3, #31
  3408. 80018b4: 6b3b ldr r3, [r7, #48] @ 0x30
  3409. 80018b6: 4413 add r3, r2
  3410. 80018b8: 62fb str r3, [r7, #44] @ 0x2c
  3411. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3412. 80018ba: 6b7b ldr r3, [r7, #52] @ 0x34
  3413. 80018bc: 62bb str r3, [r7, #40] @ 0x28
  3414. __ASM volatile ("dsb 0xF":::"memory");
  3415. 80018be: f3bf 8f4f dsb sy
  3416. }
  3417. 80018c2: bf00 nop
  3418. __DSB();
  3419. do {
  3420. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3421. 80018c4: 4a5c ldr r2, [pc, #368] @ (8001a38 <HAL_ADC_ConvCpltCallback+0x1b4>)
  3422. 80018c6: 6abb ldr r3, [r7, #40] @ 0x28
  3423. 80018c8: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3424. op_addr += __SCB_DCACHE_LINE_SIZE;
  3425. 80018cc: 6abb ldr r3, [r7, #40] @ 0x28
  3426. 80018ce: 3320 adds r3, #32
  3427. 80018d0: 62bb str r3, [r7, #40] @ 0x28
  3428. op_size -= __SCB_DCACHE_LINE_SIZE;
  3429. 80018d2: 6afb ldr r3, [r7, #44] @ 0x2c
  3430. 80018d4: 3b20 subs r3, #32
  3431. 80018d6: 62fb str r3, [r7, #44] @ 0x2c
  3432. } while ( op_size > 0 );
  3433. 80018d8: 6afb ldr r3, [r7, #44] @ 0x2c
  3434. 80018da: 2b00 cmp r3, #0
  3435. 80018dc: dcf2 bgt.n 80018c4 <HAL_ADC_ConvCpltCallback+0x40>
  3436. __ASM volatile ("dsb 0xF":::"memory");
  3437. 80018de: f3bf 8f4f dsb sy
  3438. }
  3439. 80018e2: bf00 nop
  3440. __ASM volatile ("isb 0xF":::"memory");
  3441. 80018e4: f3bf 8f6f isb sy
  3442. }
  3443. 80018e8: bf00 nop
  3444. __DSB();
  3445. __ISB();
  3446. }
  3447. #endif
  3448. }
  3449. 80018ea: bf00 nop
  3450. if(adc1MeasDataQueue != NULL)
  3451. 80018ec: 4b53 ldr r3, [pc, #332] @ (8001a3c <HAL_ADC_ConvCpltCallback+0x1b8>)
  3452. 80018ee: 681b ldr r3, [r3, #0]
  3453. 80018f0: 2b00 cmp r3, #0
  3454. 80018f2: d006 beq.n 8001902 <HAL_ADC_ConvCpltCallback+0x7e>
  3455. {
  3456. osMessageQueuePut(adc1MeasDataQueue, &adc1Data, 0, 0);
  3457. 80018f4: 4b51 ldr r3, [pc, #324] @ (8001a3c <HAL_ADC_ConvCpltCallback+0x1b8>)
  3458. 80018f6: 6818 ldr r0, [r3, #0]
  3459. 80018f8: 2300 movs r3, #0
  3460. 80018fa: 2200 movs r2, #0
  3461. 80018fc: 494d ldr r1, [pc, #308] @ (8001a34 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3462. 80018fe: f012 fb09 bl 8013f14 <osMessageQueuePut>
  3463. }
  3464. if(HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData) != HAL_OK)
  3465. 8001902: 2207 movs r2, #7
  3466. 8001904: 494b ldr r1, [pc, #300] @ (8001a34 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3467. 8001906: 484e ldr r0, [pc, #312] @ (8001a40 <HAL_ADC_ConvCpltCallback+0x1bc>)
  3468. 8001908: f004 fa30 bl 8005d6c <HAL_ADC_Start_DMA>
  3469. 800190c: 4603 mov r3, r0
  3470. 800190e: 2b00 cmp r3, #0
  3471. 8001910: d001 beq.n 8001916 <HAL_ADC_ConvCpltCallback+0x92>
  3472. {
  3473. Error_Handler();
  3474. 8001912: f000 fb39 bl 8001f88 <Error_Handler>
  3475. }
  3476. }
  3477. if(hadc->Instance == ADC2)
  3478. 8001916: 687b ldr r3, [r7, #4]
  3479. 8001918: 681b ldr r3, [r3, #0]
  3480. 800191a: 4a4a ldr r2, [pc, #296] @ (8001a44 <HAL_ADC_ConvCpltCallback+0x1c0>)
  3481. 800191c: 4293 cmp r3, r2
  3482. 800191e: d13c bne.n 800199a <HAL_ADC_ConvCpltCallback+0x116>
  3483. {
  3484. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc2Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3485. 8001920: 4b49 ldr r3, [pc, #292] @ (8001a48 <HAL_ADC_ConvCpltCallback+0x1c4>)
  3486. 8001922: f023 031f bic.w r3, r3, #31
  3487. 8001926: 627b str r3, [r7, #36] @ 0x24
  3488. 8001928: 2320 movs r3, #32
  3489. 800192a: 623b str r3, [r7, #32]
  3490. if ( dsize > 0 ) {
  3491. 800192c: 6a3b ldr r3, [r7, #32]
  3492. 800192e: 2b00 cmp r3, #0
  3493. 8001930: dd1d ble.n 800196e <HAL_ADC_ConvCpltCallback+0xea>
  3494. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3495. 8001932: 6a7b ldr r3, [r7, #36] @ 0x24
  3496. 8001934: f003 021f and.w r2, r3, #31
  3497. 8001938: 6a3b ldr r3, [r7, #32]
  3498. 800193a: 4413 add r3, r2
  3499. 800193c: 61fb str r3, [r7, #28]
  3500. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3501. 800193e: 6a7b ldr r3, [r7, #36] @ 0x24
  3502. 8001940: 61bb str r3, [r7, #24]
  3503. __ASM volatile ("dsb 0xF":::"memory");
  3504. 8001942: f3bf 8f4f dsb sy
  3505. }
  3506. 8001946: bf00 nop
  3507. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3508. 8001948: 4a3b ldr r2, [pc, #236] @ (8001a38 <HAL_ADC_ConvCpltCallback+0x1b4>)
  3509. 800194a: 69bb ldr r3, [r7, #24]
  3510. 800194c: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3511. op_addr += __SCB_DCACHE_LINE_SIZE;
  3512. 8001950: 69bb ldr r3, [r7, #24]
  3513. 8001952: 3320 adds r3, #32
  3514. 8001954: 61bb str r3, [r7, #24]
  3515. op_size -= __SCB_DCACHE_LINE_SIZE;
  3516. 8001956: 69fb ldr r3, [r7, #28]
  3517. 8001958: 3b20 subs r3, #32
  3518. 800195a: 61fb str r3, [r7, #28]
  3519. } while ( op_size > 0 );
  3520. 800195c: 69fb ldr r3, [r7, #28]
  3521. 800195e: 2b00 cmp r3, #0
  3522. 8001960: dcf2 bgt.n 8001948 <HAL_ADC_ConvCpltCallback+0xc4>
  3523. __ASM volatile ("dsb 0xF":::"memory");
  3524. 8001962: f3bf 8f4f dsb sy
  3525. }
  3526. 8001966: bf00 nop
  3527. __ASM volatile ("isb 0xF":::"memory");
  3528. 8001968: f3bf 8f6f isb sy
  3529. }
  3530. 800196c: bf00 nop
  3531. }
  3532. 800196e: bf00 nop
  3533. if(adc2MeasDataQueue != NULL)
  3534. 8001970: 4b36 ldr r3, [pc, #216] @ (8001a4c <HAL_ADC_ConvCpltCallback+0x1c8>)
  3535. 8001972: 681b ldr r3, [r3, #0]
  3536. 8001974: 2b00 cmp r3, #0
  3537. 8001976: d006 beq.n 8001986 <HAL_ADC_ConvCpltCallback+0x102>
  3538. {
  3539. osMessageQueuePut(adc2MeasDataQueue, &adc2Data, 0, 0);
  3540. 8001978: 4b34 ldr r3, [pc, #208] @ (8001a4c <HAL_ADC_ConvCpltCallback+0x1c8>)
  3541. 800197a: 6818 ldr r0, [r3, #0]
  3542. 800197c: 2300 movs r3, #0
  3543. 800197e: 2200 movs r2, #0
  3544. 8001980: 4931 ldr r1, [pc, #196] @ (8001a48 <HAL_ADC_ConvCpltCallback+0x1c4>)
  3545. 8001982: f012 fac7 bl 8013f14 <osMessageQueuePut>
  3546. }
  3547. if(HAL_ADC_Start_DMA(&hadc2, (uint32_t *)adc2Data.adcDataBuffer, ADC2LastData) != HAL_OK)
  3548. 8001986: 2203 movs r2, #3
  3549. 8001988: 492f ldr r1, [pc, #188] @ (8001a48 <HAL_ADC_ConvCpltCallback+0x1c4>)
  3550. 800198a: 4831 ldr r0, [pc, #196] @ (8001a50 <HAL_ADC_ConvCpltCallback+0x1cc>)
  3551. 800198c: f004 f9ee bl 8005d6c <HAL_ADC_Start_DMA>
  3552. 8001990: 4603 mov r3, r0
  3553. 8001992: 2b00 cmp r3, #0
  3554. 8001994: d001 beq.n 800199a <HAL_ADC_ConvCpltCallback+0x116>
  3555. {
  3556. Error_Handler();
  3557. 8001996: f000 faf7 bl 8001f88 <Error_Handler>
  3558. }
  3559. }
  3560. if(hadc->Instance == ADC3)
  3561. 800199a: 687b ldr r3, [r7, #4]
  3562. 800199c: 681b ldr r3, [r3, #0]
  3563. 800199e: 4a2d ldr r2, [pc, #180] @ (8001a54 <HAL_ADC_ConvCpltCallback+0x1d0>)
  3564. 80019a0: 4293 cmp r3, r2
  3565. 80019a2: d13c bne.n 8001a1e <HAL_ADC_ConvCpltCallback+0x19a>
  3566. {
  3567. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc3Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3568. 80019a4: 4b2c ldr r3, [pc, #176] @ (8001a58 <HAL_ADC_ConvCpltCallback+0x1d4>)
  3569. 80019a6: f023 031f bic.w r3, r3, #31
  3570. 80019aa: 617b str r3, [r7, #20]
  3571. 80019ac: 2320 movs r3, #32
  3572. 80019ae: 613b str r3, [r7, #16]
  3573. if ( dsize > 0 ) {
  3574. 80019b0: 693b ldr r3, [r7, #16]
  3575. 80019b2: 2b00 cmp r3, #0
  3576. 80019b4: dd1d ble.n 80019f2 <HAL_ADC_ConvCpltCallback+0x16e>
  3577. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3578. 80019b6: 697b ldr r3, [r7, #20]
  3579. 80019b8: f003 021f and.w r2, r3, #31
  3580. 80019bc: 693b ldr r3, [r7, #16]
  3581. 80019be: 4413 add r3, r2
  3582. 80019c0: 60fb str r3, [r7, #12]
  3583. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3584. 80019c2: 697b ldr r3, [r7, #20]
  3585. 80019c4: 60bb str r3, [r7, #8]
  3586. __ASM volatile ("dsb 0xF":::"memory");
  3587. 80019c6: f3bf 8f4f dsb sy
  3588. }
  3589. 80019ca: bf00 nop
  3590. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3591. 80019cc: 4a1a ldr r2, [pc, #104] @ (8001a38 <HAL_ADC_ConvCpltCallback+0x1b4>)
  3592. 80019ce: 68bb ldr r3, [r7, #8]
  3593. 80019d0: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3594. op_addr += __SCB_DCACHE_LINE_SIZE;
  3595. 80019d4: 68bb ldr r3, [r7, #8]
  3596. 80019d6: 3320 adds r3, #32
  3597. 80019d8: 60bb str r3, [r7, #8]
  3598. op_size -= __SCB_DCACHE_LINE_SIZE;
  3599. 80019da: 68fb ldr r3, [r7, #12]
  3600. 80019dc: 3b20 subs r3, #32
  3601. 80019de: 60fb str r3, [r7, #12]
  3602. } while ( op_size > 0 );
  3603. 80019e0: 68fb ldr r3, [r7, #12]
  3604. 80019e2: 2b00 cmp r3, #0
  3605. 80019e4: dcf2 bgt.n 80019cc <HAL_ADC_ConvCpltCallback+0x148>
  3606. __ASM volatile ("dsb 0xF":::"memory");
  3607. 80019e6: f3bf 8f4f dsb sy
  3608. }
  3609. 80019ea: bf00 nop
  3610. __ASM volatile ("isb 0xF":::"memory");
  3611. 80019ec: f3bf 8f6f isb sy
  3612. }
  3613. 80019f0: bf00 nop
  3614. }
  3615. 80019f2: bf00 nop
  3616. if(adc3MeasDataQueue != NULL)
  3617. 80019f4: 4b19 ldr r3, [pc, #100] @ (8001a5c <HAL_ADC_ConvCpltCallback+0x1d8>)
  3618. 80019f6: 681b ldr r3, [r3, #0]
  3619. 80019f8: 2b00 cmp r3, #0
  3620. 80019fa: d006 beq.n 8001a0a <HAL_ADC_ConvCpltCallback+0x186>
  3621. {
  3622. osMessageQueuePut(adc3MeasDataQueue, &adc3Data, 0, 0);
  3623. 80019fc: 4b17 ldr r3, [pc, #92] @ (8001a5c <HAL_ADC_ConvCpltCallback+0x1d8>)
  3624. 80019fe: 6818 ldr r0, [r3, #0]
  3625. 8001a00: 2300 movs r3, #0
  3626. 8001a02: 2200 movs r2, #0
  3627. 8001a04: 4914 ldr r1, [pc, #80] @ (8001a58 <HAL_ADC_ConvCpltCallback+0x1d4>)
  3628. 8001a06: f012 fa85 bl 8013f14 <osMessageQueuePut>
  3629. }
  3630. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData) != HAL_OK)
  3631. 8001a0a: 2205 movs r2, #5
  3632. 8001a0c: 4912 ldr r1, [pc, #72] @ (8001a58 <HAL_ADC_ConvCpltCallback+0x1d4>)
  3633. 8001a0e: 4814 ldr r0, [pc, #80] @ (8001a60 <HAL_ADC_ConvCpltCallback+0x1dc>)
  3634. 8001a10: f004 f9ac bl 8005d6c <HAL_ADC_Start_DMA>
  3635. 8001a14: 4603 mov r3, r0
  3636. 8001a16: 2b00 cmp r3, #0
  3637. 8001a18: d001 beq.n 8001a1e <HAL_ADC_ConvCpltCallback+0x19a>
  3638. {
  3639. Error_Handler();
  3640. 8001a1a: f000 fab5 bl 8001f88 <Error_Handler>
  3641. }
  3642. }osTimerStop (debugLedTimerHandle);
  3643. 8001a1e: 4b11 ldr r3, [pc, #68] @ (8001a64 <HAL_ADC_ConvCpltCallback+0x1e0>)
  3644. 8001a20: 681b ldr r3, [r3, #0]
  3645. 8001a22: 4618 mov r0, r3
  3646. 8001a24: f012 f8be bl 8013ba4 <osTimerStop>
  3647. }
  3648. 8001a28: bf00 nop
  3649. 8001a2a: 3738 adds r7, #56 @ 0x38
  3650. 8001a2c: 46bd mov sp, r7
  3651. 8001a2e: bd80 pop {r7, pc}
  3652. 8001a30: 40022000 .word 0x40022000
  3653. 8001a34: 240000e0 .word 0x240000e0
  3654. 8001a38: e000ed00 .word 0xe000ed00
  3655. 8001a3c: 24000820 .word 0x24000820
  3656. 8001a40: 24000140 .word 0x24000140
  3657. 8001a44: 40022100 .word 0x40022100
  3658. 8001a48: 24000100 .word 0x24000100
  3659. 8001a4c: 24000824 .word 0x24000824
  3660. 8001a50: 240001a4 .word 0x240001a4
  3661. 8001a54: 58026000 .word 0x58026000
  3662. 8001a58: 24000120 .word 0x24000120
  3663. 8001a5c: 24000828 .word 0x24000828
  3664. 8001a60: 24000208 .word 0x24000208
  3665. 8001a64: 24000704 .word 0x24000704
  3666. 08001a68 <HAL_TIM_IC_CaptureCallback>:
  3667. void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  3668. {
  3669. 8001a68: b580 push {r7, lr}
  3670. 8001a6a: b084 sub sp, #16
  3671. 8001a6c: af00 add r7, sp, #0
  3672. 8001a6e: 6078 str r0, [r7, #4]
  3673. if (htim->Instance == TIM4)
  3674. 8001a70: 687b ldr r3, [r7, #4]
  3675. 8001a72: 681b ldr r3, [r3, #0]
  3676. 8001a74: 4a61 ldr r2, [pc, #388] @ (8001bfc <HAL_TIM_IC_CaptureCallback+0x194>)
  3677. 8001a76: 4293 cmp r3, r2
  3678. 8001a78: d15a bne.n 8001b30 <HAL_TIM_IC_CaptureCallback+0xc8>
  3679. {
  3680. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3681. 8001a7a: 687b ldr r3, [r7, #4]
  3682. 8001a7c: 7f1b ldrb r3, [r3, #28]
  3683. 8001a7e: 2b04 cmp r3, #4
  3684. 8001a80: d114 bne.n 8001aac <HAL_TIM_IC_CaptureCallback+0x44>
  3685. {
  3686. if(encoderXChannelB > 0)
  3687. 8001a82: 4b5f ldr r3, [pc, #380] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3688. 8001a84: 681b ldr r3, [r3, #0]
  3689. 8001a86: 2b00 cmp r3, #0
  3690. 8001a88: dd08 ble.n 8001a9c <HAL_TIM_IC_CaptureCallback+0x34>
  3691. {
  3692. encoderXChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3693. 8001a8a: 2108 movs r1, #8
  3694. 8001a8c: 6878 ldr r0, [r7, #4]
  3695. 8001a8e: f00e f90b bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3696. 8001a92: 4603 mov r3, r0
  3697. 8001a94: 461a mov r2, r3
  3698. 8001a96: 4b5b ldr r3, [pc, #364] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3699. 8001a98: 601a str r2, [r3, #0]
  3700. 8001a9a: e01f b.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3701. }
  3702. else
  3703. {
  3704. encoderXChannelA = 1;
  3705. 8001a9c: 4b59 ldr r3, [pc, #356] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3706. 8001a9e: 2201 movs r2, #1
  3707. 8001aa0: 601a str r2, [r3, #0]
  3708. __HAL_TIM_SET_COUNTER(htim,0);
  3709. 8001aa2: 687b ldr r3, [r7, #4]
  3710. 8001aa4: 681b ldr r3, [r3, #0]
  3711. 8001aa6: 2200 movs r2, #0
  3712. 8001aa8: 625a str r2, [r3, #36] @ 0x24
  3713. 8001aaa: e017 b.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3714. }
  3715. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3716. 8001aac: 687b ldr r3, [r7, #4]
  3717. 8001aae: 7f1b ldrb r3, [r3, #28]
  3718. 8001ab0: 2b08 cmp r3, #8
  3719. 8001ab2: d113 bne.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3720. {
  3721. if(encoderXChannelA > 0)
  3722. 8001ab4: 4b53 ldr r3, [pc, #332] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3723. 8001ab6: 681b ldr r3, [r3, #0]
  3724. 8001ab8: 2b00 cmp r3, #0
  3725. 8001aba: dd08 ble.n 8001ace <HAL_TIM_IC_CaptureCallback+0x66>
  3726. {
  3727. encoderXChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3728. 8001abc: 210c movs r1, #12
  3729. 8001abe: 6878 ldr r0, [r7, #4]
  3730. 8001ac0: f00e f8f2 bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3731. 8001ac4: 4603 mov r3, r0
  3732. 8001ac6: 461a mov r2, r3
  3733. 8001ac8: 4b4d ldr r3, [pc, #308] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3734. 8001aca: 601a str r2, [r3, #0]
  3735. 8001acc: e006 b.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3736. }
  3737. else
  3738. {
  3739. encoderXChannelB = 1;
  3740. 8001ace: 4b4c ldr r3, [pc, #304] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3741. 8001ad0: 2201 movs r2, #1
  3742. 8001ad2: 601a str r2, [r3, #0]
  3743. __HAL_TIM_SET_COUNTER(htim,0);
  3744. 8001ad4: 687b ldr r3, [r7, #4]
  3745. 8001ad6: 681b ldr r3, [r3, #0]
  3746. 8001ad8: 2200 movs r2, #0
  3747. 8001ada: 625a str r2, [r3, #36] @ 0x24
  3748. }
  3749. }
  3750. if((encoderXChannelA != 0) && (encoderXChannelB != 0))
  3751. 8001adc: 4b49 ldr r3, [pc, #292] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3752. 8001ade: 681b ldr r3, [r3, #0]
  3753. 8001ae0: 2b00 cmp r3, #0
  3754. 8001ae2: f000 8086 beq.w 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3755. 8001ae6: 4b46 ldr r3, [pc, #280] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3756. 8001ae8: 681b ldr r3, [r3, #0]
  3757. 8001aea: 2b00 cmp r3, #0
  3758. 8001aec: f000 8081 beq.w 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3759. {
  3760. EncoderData encoderData = { 0 };
  3761. 8001af0: 2300 movs r3, #0
  3762. 8001af2: 81bb strh r3, [r7, #12]
  3763. encoderData.axe = encoderAxeX;
  3764. 8001af4: 2300 movs r3, #0
  3765. 8001af6: 733b strb r3, [r7, #12]
  3766. encoderData.direction = encoderXChannelA - encoderXChannelB < 0 ? encoderCW : encoderCCW;
  3767. 8001af8: 4b42 ldr r3, [pc, #264] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3768. 8001afa: 681a ldr r2, [r3, #0]
  3769. 8001afc: 4b40 ldr r3, [pc, #256] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3770. 8001afe: 681b ldr r3, [r3, #0]
  3771. 8001b00: 1ad3 subs r3, r2, r3
  3772. 8001b02: 43db mvns r3, r3
  3773. 8001b04: 0fdb lsrs r3, r3, #31
  3774. 8001b06: b2db uxtb r3, r3
  3775. 8001b08: 737b strb r3, [r7, #13]
  3776. if (encoderData.direction == encoderCCW)
  3777. 8001b0a: 7b7b ldrb r3, [r7, #13]
  3778. 8001b0c: 2b01 cmp r3, #1
  3779. 8001b0e: d100 bne.n 8001b12 <HAL_TIM_IC_CaptureCallback+0xaa>
  3780. {
  3781. asm("nop;");
  3782. 8001b10: bf00 nop
  3783. }
  3784. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3785. 8001b12: 4b3d ldr r3, [pc, #244] @ (8001c08 <HAL_TIM_IC_CaptureCallback+0x1a0>)
  3786. 8001b14: 6818 ldr r0, [r3, #0]
  3787. 8001b16: f107 010c add.w r1, r7, #12
  3788. 8001b1a: 2300 movs r3, #0
  3789. 8001b1c: 2200 movs r2, #0
  3790. 8001b1e: f012 f9f9 bl 8013f14 <osMessageQueuePut>
  3791. encoderXChannelA = 0;
  3792. 8001b22: 4b38 ldr r3, [pc, #224] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3793. 8001b24: 2200 movs r2, #0
  3794. 8001b26: 601a str r2, [r3, #0]
  3795. encoderXChannelB = 0;
  3796. 8001b28: 4b35 ldr r3, [pc, #212] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3797. 8001b2a: 2200 movs r2, #0
  3798. 8001b2c: 601a str r2, [r3, #0]
  3799. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3800. encoderYChannelA = 0;
  3801. encoderYChannelB = 0;
  3802. }
  3803. }
  3804. }
  3805. 8001b2e: e060 b.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3806. } else if (htim->Instance == TIM2)
  3807. 8001b30: 687b ldr r3, [r7, #4]
  3808. 8001b32: 681b ldr r3, [r3, #0]
  3809. 8001b34: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  3810. 8001b38: d15b bne.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3811. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3812. 8001b3a: 687b ldr r3, [r7, #4]
  3813. 8001b3c: 7f1b ldrb r3, [r3, #28]
  3814. 8001b3e: 2b04 cmp r3, #4
  3815. 8001b40: d114 bne.n 8001b6c <HAL_TIM_IC_CaptureCallback+0x104>
  3816. if(encoderYChannelB > 0)
  3817. 8001b42: 4b32 ldr r3, [pc, #200] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3818. 8001b44: 681b ldr r3, [r3, #0]
  3819. 8001b46: 2b00 cmp r3, #0
  3820. 8001b48: dd08 ble.n 8001b5c <HAL_TIM_IC_CaptureCallback+0xf4>
  3821. encoderYChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3822. 8001b4a: 2108 movs r1, #8
  3823. 8001b4c: 6878 ldr r0, [r7, #4]
  3824. 8001b4e: f00e f8ab bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3825. 8001b52: 4603 mov r3, r0
  3826. 8001b54: 461a mov r2, r3
  3827. 8001b56: 4b2e ldr r3, [pc, #184] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3828. 8001b58: 601a str r2, [r3, #0]
  3829. 8001b5a: e01f b.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3830. encoderYChannelA = 1;
  3831. 8001b5c: 4b2c ldr r3, [pc, #176] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3832. 8001b5e: 2201 movs r2, #1
  3833. 8001b60: 601a str r2, [r3, #0]
  3834. __HAL_TIM_SET_COUNTER(htim,0);
  3835. 8001b62: 687b ldr r3, [r7, #4]
  3836. 8001b64: 681b ldr r3, [r3, #0]
  3837. 8001b66: 2200 movs r2, #0
  3838. 8001b68: 625a str r2, [r3, #36] @ 0x24
  3839. 8001b6a: e017 b.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3840. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3841. 8001b6c: 687b ldr r3, [r7, #4]
  3842. 8001b6e: 7f1b ldrb r3, [r3, #28]
  3843. 8001b70: 2b08 cmp r3, #8
  3844. 8001b72: d113 bne.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3845. if(encoderYChannelA > 0)
  3846. 8001b74: 4b26 ldr r3, [pc, #152] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3847. 8001b76: 681b ldr r3, [r3, #0]
  3848. 8001b78: 2b00 cmp r3, #0
  3849. 8001b7a: dd08 ble.n 8001b8e <HAL_TIM_IC_CaptureCallback+0x126>
  3850. encoderYChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3851. 8001b7c: 210c movs r1, #12
  3852. 8001b7e: 6878 ldr r0, [r7, #4]
  3853. 8001b80: f00e f892 bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3854. 8001b84: 4603 mov r3, r0
  3855. 8001b86: 461a mov r2, r3
  3856. 8001b88: 4b20 ldr r3, [pc, #128] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3857. 8001b8a: 601a str r2, [r3, #0]
  3858. 8001b8c: e006 b.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3859. encoderYChannelB = 1;
  3860. 8001b8e: 4b1f ldr r3, [pc, #124] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3861. 8001b90: 2201 movs r2, #1
  3862. 8001b92: 601a str r2, [r3, #0]
  3863. __HAL_TIM_SET_COUNTER(htim,0);
  3864. 8001b94: 687b ldr r3, [r7, #4]
  3865. 8001b96: 681b ldr r3, [r3, #0]
  3866. 8001b98: 2200 movs r2, #0
  3867. 8001b9a: 625a str r2, [r3, #36] @ 0x24
  3868. if((encoderYChannelA != 0) && (encoderYChannelB != 0))
  3869. 8001b9c: 4b1c ldr r3, [pc, #112] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3870. 8001b9e: 681b ldr r3, [r3, #0]
  3871. 8001ba0: 2b00 cmp r3, #0
  3872. 8001ba2: d026 beq.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3873. 8001ba4: 4b19 ldr r3, [pc, #100] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3874. 8001ba6: 681b ldr r3, [r3, #0]
  3875. 8001ba8: 2b00 cmp r3, #0
  3876. 8001baa: d022 beq.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3877. EncoderData encoderData = { 0 };
  3878. 8001bac: 2300 movs r3, #0
  3879. 8001bae: 813b strh r3, [r7, #8]
  3880. encoderData.axe = encoderAxeY;
  3881. 8001bb0: 2301 movs r3, #1
  3882. 8001bb2: 723b strb r3, [r7, #8]
  3883. encoderData.direction = encoderYChannelA - encoderYChannelB < 0 ? encoderCW : encoderCCW;
  3884. 8001bb4: 4b16 ldr r3, [pc, #88] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3885. 8001bb6: 681a ldr r2, [r3, #0]
  3886. 8001bb8: 4b14 ldr r3, [pc, #80] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3887. 8001bba: 681b ldr r3, [r3, #0]
  3888. 8001bbc: 1ad3 subs r3, r2, r3
  3889. 8001bbe: 43db mvns r3, r3
  3890. 8001bc0: 0fdb lsrs r3, r3, #31
  3891. 8001bc2: b2db uxtb r3, r3
  3892. 8001bc4: 727b strb r3, [r7, #9]
  3893. if (encoderData.direction == encoderCCW)
  3894. 8001bc6: 7a7b ldrb r3, [r7, #9]
  3895. 8001bc8: 2b01 cmp r3, #1
  3896. 8001bca: d100 bne.n 8001bce <HAL_TIM_IC_CaptureCallback+0x166>
  3897. asm("nop;");
  3898. 8001bcc: bf00 nop
  3899. if (encoderData.direction == encoderCW)
  3900. 8001bce: 7a7b ldrb r3, [r7, #9]
  3901. 8001bd0: 2b00 cmp r3, #0
  3902. 8001bd2: d100 bne.n 8001bd6 <HAL_TIM_IC_CaptureCallback+0x16e>
  3903. asm("nop;");
  3904. 8001bd4: bf00 nop
  3905. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3906. 8001bd6: 4b0c ldr r3, [pc, #48] @ (8001c08 <HAL_TIM_IC_CaptureCallback+0x1a0>)
  3907. 8001bd8: 6818 ldr r0, [r3, #0]
  3908. 8001bda: f107 0108 add.w r1, r7, #8
  3909. 8001bde: 2300 movs r3, #0
  3910. 8001be0: 2200 movs r2, #0
  3911. 8001be2: f012 f997 bl 8013f14 <osMessageQueuePut>
  3912. encoderYChannelA = 0;
  3913. 8001be6: 4b0a ldr r3, [pc, #40] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3914. 8001be8: 2200 movs r2, #0
  3915. 8001bea: 601a str r2, [r3, #0]
  3916. encoderYChannelB = 0;
  3917. 8001bec: 4b07 ldr r3, [pc, #28] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3918. 8001bee: 2200 movs r2, #0
  3919. 8001bf0: 601a str r2, [r3, #0]
  3920. }
  3921. 8001bf2: bf00 nop
  3922. 8001bf4: 3710 adds r7, #16
  3923. 8001bf6: 46bd mov sp, r7
  3924. 8001bf8: bd80 pop {r7, pc}
  3925. 8001bfa: bf00 nop
  3926. 8001bfc: 40000800 .word 0x40000800
  3927. 8001c00: 24000800 .word 0x24000800
  3928. 8001c04: 240007fc .word 0x240007fc
  3929. 8001c08: 24000830 .word 0x24000830
  3930. 8001c0c: 24000808 .word 0x24000808
  3931. 8001c10: 24000804 .word 0x24000804
  3932. 08001c14 <StartDefaultTask>:
  3933. * @param argument: Not used
  3934. * @retval None
  3935. */
  3936. /* USER CODE END Header_StartDefaultTask */
  3937. void StartDefaultTask(void *argument)
  3938. {
  3939. 8001c14: b580 push {r7, lr}
  3940. 8001c16: b082 sub sp, #8
  3941. 8001c18: af00 add r7, sp, #0
  3942. 8001c1a: 6078 str r0, [r7, #4]
  3943. /* USER CODE BEGIN 5 */
  3944. HAL_IWDG_Refresh(&hiwdg1);
  3945. 8001c1c: 485e ldr r0, [pc, #376] @ (8001d98 <StartDefaultTask+0x184>)
  3946. 8001c1e: f009 f8df bl 800ade0 <HAL_IWDG_Refresh>
  3947. SelectCurrentSensorGain(CurrentSensorL1, csGain3);
  3948. 8001c22: 2102 movs r1, #2
  3949. 8001c24: 2000 movs r0, #0
  3950. 8001c26: f001 f931 bl 8002e8c <SelectCurrentSensorGain>
  3951. SelectCurrentSensorGain(CurrentSensorL2, csGain3);
  3952. 8001c2a: 2102 movs r1, #2
  3953. 8001c2c: 2001 movs r0, #1
  3954. 8001c2e: f001 f92d bl 8002e8c <SelectCurrentSensorGain>
  3955. SelectCurrentSensorGain(CurrentSensorL3, csGain3);
  3956. 8001c32: 2102 movs r1, #2
  3957. 8001c34: 2002 movs r0, #2
  3958. 8001c36: f001 f929 bl 8002e8c <SelectCurrentSensorGain>
  3959. EnableCurrentSensors();
  3960. 8001c3a: f001 f91b bl 8002e74 <EnableCurrentSensors>
  3961. osDelay(pdMS_TO_TICKS(100));
  3962. 8001c3e: 2064 movs r0, #100 @ 0x64
  3963. 8001c40: f011 fed5 bl 80139ee <osDelay>
  3964. HAL_IWDG_Refresh(&hiwdg1);
  3965. 8001c44: 4854 ldr r0, [pc, #336] @ (8001d98 <StartDefaultTask+0x184>)
  3966. 8001c46: f009 f8cb bl 800ade0 <HAL_IWDG_Refresh>
  3967. if(HAL_TIM_Base_Start(&htim8) != HAL_OK)
  3968. 8001c4a: 4854 ldr r0, [pc, #336] @ (8001d9c <StartDefaultTask+0x188>)
  3969. 8001c4c: f00c ffe6 bl 800ec1c <HAL_TIM_Base_Start>
  3970. 8001c50: 4603 mov r3, r0
  3971. 8001c52: 2b00 cmp r3, #0
  3972. 8001c54: d001 beq.n 8001c5a <StartDefaultTask+0x46>
  3973. {
  3974. Error_Handler();
  3975. 8001c56: f000 f997 bl 8001f88 <Error_Handler>
  3976. }
  3977. if(HAL_TIM_Base_Start_IT(&htim2) != HAL_OK)
  3978. 8001c5a: 4851 ldr r0, [pc, #324] @ (8001da0 <StartDefaultTask+0x18c>)
  3979. 8001c5c: f00d f84e bl 800ecfc <HAL_TIM_Base_Start_IT>
  3980. 8001c60: 4603 mov r3, r0
  3981. 8001c62: 2b00 cmp r3, #0
  3982. 8001c64: d001 beq.n 8001c6a <StartDefaultTask+0x56>
  3983. {
  3984. Error_Handler();
  3985. 8001c66: f000 f98f bl 8001f88 <Error_Handler>
  3986. }
  3987. if(HAL_TIM_Base_Start_IT(&htim4) != HAL_OK)
  3988. 8001c6a: 484e ldr r0, [pc, #312] @ (8001da4 <StartDefaultTask+0x190>)
  3989. 8001c6c: f00d f846 bl 800ecfc <HAL_TIM_Base_Start_IT>
  3990. 8001c70: 4603 mov r3, r0
  3991. 8001c72: 2b00 cmp r3, #0
  3992. 8001c74: d001 beq.n 8001c7a <StartDefaultTask+0x66>
  3993. {
  3994. Error_Handler();
  3995. 8001c76: f000 f987 bl 8001f88 <Error_Handler>
  3996. }
  3997. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_3) != HAL_OK)
  3998. 8001c7a: 2108 movs r1, #8
  3999. 8001c7c: 4849 ldr r0, [pc, #292] @ (8001da4 <StartDefaultTask+0x190>)
  4000. 8001c7e: f00d fb13 bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4001. 8001c82: 4603 mov r3, r0
  4002. 8001c84: 2b00 cmp r3, #0
  4003. 8001c86: d001 beq.n 8001c8c <StartDefaultTask+0x78>
  4004. {
  4005. Error_Handler();
  4006. 8001c88: f000 f97e bl 8001f88 <Error_Handler>
  4007. }
  4008. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_4) != HAL_OK)
  4009. 8001c8c: 210c movs r1, #12
  4010. 8001c8e: 4845 ldr r0, [pc, #276] @ (8001da4 <StartDefaultTask+0x190>)
  4011. 8001c90: f00d fb0a bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4012. 8001c94: 4603 mov r3, r0
  4013. 8001c96: 2b00 cmp r3, #0
  4014. 8001c98: d001 beq.n 8001c9e <StartDefaultTask+0x8a>
  4015. {
  4016. Error_Handler();
  4017. 8001c9a: f000 f975 bl 8001f88 <Error_Handler>
  4018. }
  4019. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_3) != HAL_OK)
  4020. 8001c9e: 2108 movs r1, #8
  4021. 8001ca0: 483f ldr r0, [pc, #252] @ (8001da0 <StartDefaultTask+0x18c>)
  4022. 8001ca2: f00d fb01 bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4023. 8001ca6: 4603 mov r3, r0
  4024. 8001ca8: 2b00 cmp r3, #0
  4025. 8001caa: d001 beq.n 8001cb0 <StartDefaultTask+0x9c>
  4026. {
  4027. Error_Handler();
  4028. 8001cac: f000 f96c bl 8001f88 <Error_Handler>
  4029. }
  4030. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_4) != HAL_OK)
  4031. 8001cb0: 210c movs r1, #12
  4032. 8001cb2: 483b ldr r0, [pc, #236] @ (8001da0 <StartDefaultTask+0x18c>)
  4033. 8001cb4: f00d faf8 bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4034. 8001cb8: 4603 mov r3, r0
  4035. 8001cba: 2b00 cmp r3, #0
  4036. 8001cbc: d001 beq.n 8001cc2 <StartDefaultTask+0xae>
  4037. {
  4038. Error_Handler();
  4039. 8001cbe: f000 f963 bl 8001f88 <Error_Handler>
  4040. }
  4041. if(HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData) != HAL_OK)
  4042. 8001cc2: 2207 movs r2, #7
  4043. 8001cc4: 4938 ldr r1, [pc, #224] @ (8001da8 <StartDefaultTask+0x194>)
  4044. 8001cc6: 4839 ldr r0, [pc, #228] @ (8001dac <StartDefaultTask+0x198>)
  4045. 8001cc8: f004 f850 bl 8005d6c <HAL_ADC_Start_DMA>
  4046. 8001ccc: 4603 mov r3, r0
  4047. 8001cce: 2b00 cmp r3, #0
  4048. 8001cd0: d001 beq.n 8001cd6 <StartDefaultTask+0xc2>
  4049. {
  4050. Error_Handler();
  4051. 8001cd2: f000 f959 bl 8001f88 <Error_Handler>
  4052. }
  4053. if(HAL_ADC_Start_DMA(&hadc2, (uint32_t *)adc2Data.adcDataBuffer, ADC2LastData) != HAL_OK)
  4054. 8001cd6: 2203 movs r2, #3
  4055. 8001cd8: 4935 ldr r1, [pc, #212] @ (8001db0 <StartDefaultTask+0x19c>)
  4056. 8001cda: 4836 ldr r0, [pc, #216] @ (8001db4 <StartDefaultTask+0x1a0>)
  4057. 8001cdc: f004 f846 bl 8005d6c <HAL_ADC_Start_DMA>
  4058. 8001ce0: 4603 mov r3, r0
  4059. 8001ce2: 2b00 cmp r3, #0
  4060. 8001ce4: d001 beq.n 8001cea <StartDefaultTask+0xd6>
  4061. {
  4062. Error_Handler();
  4063. 8001ce6: f000 f94f bl 8001f88 <Error_Handler>
  4064. }
  4065. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData) != HAL_OK)
  4066. 8001cea: 2205 movs r2, #5
  4067. 8001cec: 4932 ldr r1, [pc, #200] @ (8001db8 <StartDefaultTask+0x1a4>)
  4068. 8001cee: 4833 ldr r0, [pc, #204] @ (8001dbc <StartDefaultTask+0x1a8>)
  4069. 8001cf0: f004 f83c bl 8005d6c <HAL_ADC_Start_DMA>
  4070. 8001cf4: 4603 mov r3, r0
  4071. 8001cf6: 2b00 cmp r3, #0
  4072. 8001cf8: d001 beq.n 8001cfe <StartDefaultTask+0xea>
  4073. {
  4074. Error_Handler();
  4075. 8001cfa: f000 f945 bl 8001f88 <Error_Handler>
  4076. }
  4077. HAL_COMP_Start(&hcomp1);
  4078. 8001cfe: 4830 ldr r0, [pc, #192] @ (8001dc0 <StartDefaultTask+0x1ac>)
  4079. 8001d00: f005 f9b8 bl 8007074 <HAL_COMP_Start>
  4080. HAL_IWDG_Refresh(&hiwdg1);
  4081. 8001d04: 4824 ldr r0, [pc, #144] @ (8001d98 <StartDefaultTask+0x184>)
  4082. 8001d06: f009 f86b bl 800ade0 <HAL_IWDG_Refresh>
  4083. /* Infinite loop */
  4084. for(;;)
  4085. {
  4086. osDelay(pdMS_TO_TICKS(100));
  4087. 8001d0a: 2064 movs r0, #100 @ 0x64
  4088. 8001d0c: f011 fe6f bl 80139ee <osDelay>
  4089. HAL_IWDG_Refresh(&hiwdg1);
  4090. 8001d10: 4821 ldr r0, [pc, #132] @ (8001d98 <StartDefaultTask+0x184>)
  4091. 8001d12: f009 f865 bl 800ade0 <HAL_IWDG_Refresh>
  4092. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  4093. 8001d16: 2100 movs r1, #0
  4094. 8001d18: 482a ldr r0, [pc, #168] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4095. 8001d1a: f00e f827 bl 800fd6c <HAL_TIM_GetChannelState>
  4096. 8001d1e: 4603 mov r3, r0
  4097. 8001d20: 2b01 cmp r3, #1
  4098. 8001d22: d118 bne.n 8001d56 <StartDefaultTask+0x142>
  4099. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_2) == HAL_TIM_CHANNEL_STATE_READY)
  4100. 8001d24: 2104 movs r1, #4
  4101. 8001d26: 4827 ldr r0, [pc, #156] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4102. 8001d28: f00e f820 bl 800fd6c <HAL_TIM_GetChannelState>
  4103. 8001d2c: 4603 mov r3, r0
  4104. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  4105. 8001d2e: 2b01 cmp r3, #1
  4106. 8001d30: d111 bne.n 8001d56 <StartDefaultTask+0x142>
  4107. {
  4108. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  4109. 8001d32: 4b25 ldr r3, [pc, #148] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4110. 8001d34: 681b ldr r3, [r3, #0]
  4111. 8001d36: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4112. 8001d3a: 4618 mov r0, r3
  4113. 8001d3c: f011 ffef bl 8013d1e <osMutexAcquire>
  4114. 8001d40: 4603 mov r3, r0
  4115. 8001d42: 2b00 cmp r3, #0
  4116. 8001d44: d107 bne.n 8001d56 <StartDefaultTask+0x142>
  4117. {
  4118. sensorsInfo.motorXStatus = 0;
  4119. 8001d46: 4b21 ldr r3, [pc, #132] @ (8001dcc <StartDefaultTask+0x1b8>)
  4120. 8001d48: 2200 movs r2, #0
  4121. 8001d4a: 751a strb r2, [r3, #20]
  4122. osMutexRelease(sensorsInfoMutex);
  4123. 8001d4c: 4b1e ldr r3, [pc, #120] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4124. 8001d4e: 681b ldr r3, [r3, #0]
  4125. 8001d50: 4618 mov r0, r3
  4126. 8001d52: f012 f82f bl 8013db4 <osMutexRelease>
  4127. }
  4128. }
  4129. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  4130. 8001d56: 2108 movs r1, #8
  4131. 8001d58: 481a ldr r0, [pc, #104] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4132. 8001d5a: f00e f807 bl 800fd6c <HAL_TIM_GetChannelState>
  4133. 8001d5e: 4603 mov r3, r0
  4134. 8001d60: 2b01 cmp r3, #1
  4135. 8001d62: d1d2 bne.n 8001d0a <StartDefaultTask+0xf6>
  4136. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_4) == HAL_TIM_CHANNEL_STATE_READY)
  4137. 8001d64: 210c movs r1, #12
  4138. 8001d66: 4817 ldr r0, [pc, #92] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4139. 8001d68: f00e f800 bl 800fd6c <HAL_TIM_GetChannelState>
  4140. 8001d6c: 4603 mov r3, r0
  4141. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  4142. 8001d6e: 2b01 cmp r3, #1
  4143. 8001d70: d1cb bne.n 8001d0a <StartDefaultTask+0xf6>
  4144. {
  4145. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  4146. 8001d72: 4b15 ldr r3, [pc, #84] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4147. 8001d74: 681b ldr r3, [r3, #0]
  4148. 8001d76: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4149. 8001d7a: 4618 mov r0, r3
  4150. 8001d7c: f011 ffcf bl 8013d1e <osMutexAcquire>
  4151. 8001d80: 4603 mov r3, r0
  4152. 8001d82: 2b00 cmp r3, #0
  4153. 8001d84: d1c1 bne.n 8001d0a <StartDefaultTask+0xf6>
  4154. {
  4155. sensorsInfo.motorYStatus = 0;
  4156. 8001d86: 4b11 ldr r3, [pc, #68] @ (8001dcc <StartDefaultTask+0x1b8>)
  4157. 8001d88: 2200 movs r2, #0
  4158. 8001d8a: 755a strb r2, [r3, #21]
  4159. osMutexRelease(sensorsInfoMutex);
  4160. 8001d8c: 4b0e ldr r3, [pc, #56] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4161. 8001d8e: 681b ldr r3, [r3, #0]
  4162. 8001d90: 4618 mov r0, r3
  4163. 8001d92: f012 f80f bl 8013db4 <osMutexRelease>
  4164. osDelay(pdMS_TO_TICKS(100));
  4165. 8001d96: e7b8 b.n 8001d0a <StartDefaultTask+0xf6>
  4166. 8001d98: 24000438 .word 0x24000438
  4167. 8001d9c: 2400058c .word 0x2400058c
  4168. 8001da0: 240004a8 .word 0x240004a8
  4169. 8001da4: 24000540 .word 0x24000540
  4170. 8001da8: 240000e0 .word 0x240000e0
  4171. 8001dac: 24000140 .word 0x24000140
  4172. 8001db0: 24000100 .word 0x24000100
  4173. 8001db4: 240001a4 .word 0x240001a4
  4174. 8001db8: 24000120 .word 0x24000120
  4175. 8001dbc: 24000208 .word 0x24000208
  4176. 8001dc0: 240003d4 .word 0x240003d4
  4177. 8001dc4: 240004f4 .word 0x240004f4
  4178. 8001dc8: 2400083c .word 0x2400083c
  4179. 8001dcc: 24000880 .word 0x24000880
  4180. 08001dd0 <debugLedTimerCallback>:
  4181. /* USER CODE END 5 */
  4182. }
  4183. /* debugLedTimerCallback function */
  4184. void debugLedTimerCallback(void *argument)
  4185. {
  4186. 8001dd0: b580 push {r7, lr}
  4187. 8001dd2: b082 sub sp, #8
  4188. 8001dd4: af00 add r7, sp, #0
  4189. 8001dd6: 6078 str r0, [r7, #4]
  4190. /* USER CODE BEGIN debugLedTimerCallback */
  4191. DbgLEDOff (DBG_LED1);
  4192. 8001dd8: 2010 movs r0, #16
  4193. 8001dda: f001 f827 bl 8002e2c <DbgLEDOff>
  4194. /* USER CODE END debugLedTimerCallback */
  4195. }
  4196. 8001dde: bf00 nop
  4197. 8001de0: 3708 adds r7, #8
  4198. 8001de2: 46bd mov sp, r7
  4199. 8001de4: bd80 pop {r7, pc}
  4200. ...
  4201. 08001de8 <fanTimerCallback>:
  4202. /* fanTimerCallback function */
  4203. void fanTimerCallback(void *argument)
  4204. {
  4205. 8001de8: b580 push {r7, lr}
  4206. 8001dea: b082 sub sp, #8
  4207. 8001dec: af00 add r7, sp, #0
  4208. 8001dee: 6078 str r0, [r7, #4]
  4209. /* USER CODE BEGIN fanTimerCallback */
  4210. HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_2);
  4211. 8001df0: 2104 movs r1, #4
  4212. 8001df2: 4803 ldr r0, [pc, #12] @ (8001e00 <fanTimerCallback+0x18>)
  4213. 8001df4: f00d f960 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4214. /* USER CODE END fanTimerCallback */
  4215. }
  4216. 8001df8: bf00 nop
  4217. 8001dfa: 3708 adds r7, #8
  4218. 8001dfc: 46bd mov sp, r7
  4219. 8001dfe: bd80 pop {r7, pc}
  4220. 8001e00: 2400045c .word 0x2400045c
  4221. 08001e04 <motorXTimerCallback>:
  4222. /* motorXTimerCallback function */
  4223. void motorXTimerCallback(void *argument)
  4224. {
  4225. 8001e04: b580 push {r7, lr}
  4226. 8001e06: b084 sub sp, #16
  4227. 8001e08: af02 add r7, sp, #8
  4228. 8001e0a: 6078 str r0, [r7, #4]
  4229. /* USER CODE BEGIN motorXTimerCallback */
  4230. motorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, HiZ, 0);
  4231. 8001e0c: 2300 movs r3, #0
  4232. 8001e0e: 9301 str r3, [sp, #4]
  4233. 8001e10: 2300 movs r3, #0
  4234. 8001e12: 9300 str r3, [sp, #0]
  4235. 8001e14: 2304 movs r3, #4
  4236. 8001e16: 2200 movs r2, #0
  4237. 8001e18: 4907 ldr r1, [pc, #28] @ (8001e38 <motorXTimerCallback+0x34>)
  4238. 8001e1a: 4808 ldr r0, [pc, #32] @ (8001e3c <motorXTimerCallback+0x38>)
  4239. 8001e1c: f001 f9bb bl 8003196 <motorAction>
  4240. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
  4241. 8001e20: 2100 movs r1, #0
  4242. 8001e22: 4806 ldr r0, [pc, #24] @ (8001e3c <motorXTimerCallback+0x38>)
  4243. 8001e24: f00d f948 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4244. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_2);
  4245. 8001e28: 2104 movs r1, #4
  4246. 8001e2a: 4804 ldr r0, [pc, #16] @ (8001e3c <motorXTimerCallback+0x38>)
  4247. 8001e2c: f00d f944 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4248. /* USER CODE END motorXTimerCallback */
  4249. }
  4250. 8001e30: bf00 nop
  4251. 8001e32: 3708 adds r7, #8
  4252. 8001e34: 46bd mov sp, r7
  4253. 8001e36: bd80 pop {r7, pc}
  4254. 8001e38: 240007e0 .word 0x240007e0
  4255. 8001e3c: 240004f4 .word 0x240004f4
  4256. 08001e40 <motorYTimerCallback>:
  4257. /* motorYTimerCallback function */
  4258. void motorYTimerCallback(void *argument)
  4259. {
  4260. 8001e40: b580 push {r7, lr}
  4261. 8001e42: b084 sub sp, #16
  4262. 8001e44: af02 add r7, sp, #8
  4263. 8001e46: 6078 str r0, [r7, #4]
  4264. /* USER CODE BEGIN motorYTimerCallback */
  4265. motorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, HiZ, 0);
  4266. 8001e48: 2300 movs r3, #0
  4267. 8001e4a: 9301 str r3, [sp, #4]
  4268. 8001e4c: 2300 movs r3, #0
  4269. 8001e4e: 9300 str r3, [sp, #0]
  4270. 8001e50: 230c movs r3, #12
  4271. 8001e52: 2208 movs r2, #8
  4272. 8001e54: 4907 ldr r1, [pc, #28] @ (8001e74 <motorYTimerCallback+0x34>)
  4273. 8001e56: 4808 ldr r0, [pc, #32] @ (8001e78 <motorYTimerCallback+0x38>)
  4274. 8001e58: f001 f99d bl 8003196 <motorAction>
  4275. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_3);
  4276. 8001e5c: 2108 movs r1, #8
  4277. 8001e5e: 4806 ldr r0, [pc, #24] @ (8001e78 <motorYTimerCallback+0x38>)
  4278. 8001e60: f00d f92a bl 800f0b8 <HAL_TIM_PWM_Stop>
  4279. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_4);
  4280. 8001e64: 210c movs r1, #12
  4281. 8001e66: 4804 ldr r0, [pc, #16] @ (8001e78 <motorYTimerCallback+0x38>)
  4282. 8001e68: f00d f926 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4283. /* USER CODE END motorYTimerCallback */
  4284. }
  4285. 8001e6c: bf00 nop
  4286. 8001e6e: 3708 adds r7, #8
  4287. 8001e70: 46bd mov sp, r7
  4288. 8001e72: bd80 pop {r7, pc}
  4289. 8001e74: 240007e0 .word 0x240007e0
  4290. 8001e78: 240004f4 .word 0x240004f4
  4291. 08001e7c <MPU_Config>:
  4292. /* MPU Configuration */
  4293. void MPU_Config(void)
  4294. {
  4295. 8001e7c: b580 push {r7, lr}
  4296. 8001e7e: b084 sub sp, #16
  4297. 8001e80: af00 add r7, sp, #0
  4298. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  4299. 8001e82: 463b mov r3, r7
  4300. 8001e84: 2200 movs r2, #0
  4301. 8001e86: 601a str r2, [r3, #0]
  4302. 8001e88: 605a str r2, [r3, #4]
  4303. 8001e8a: 609a str r2, [r3, #8]
  4304. 8001e8c: 60da str r2, [r3, #12]
  4305. /* Disables the MPU */
  4306. HAL_MPU_Disable();
  4307. 8001e8e: f005 fa39 bl 8007304 <HAL_MPU_Disable>
  4308. /** Initializes and configures the Region and the memory to be protected
  4309. */
  4310. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  4311. 8001e92: 2301 movs r3, #1
  4312. 8001e94: 703b strb r3, [r7, #0]
  4313. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  4314. 8001e96: 2300 movs r3, #0
  4315. 8001e98: 707b strb r3, [r7, #1]
  4316. MPU_InitStruct.BaseAddress = 0x0;
  4317. 8001e9a: 2300 movs r3, #0
  4318. 8001e9c: 607b str r3, [r7, #4]
  4319. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  4320. 8001e9e: 231f movs r3, #31
  4321. 8001ea0: 723b strb r3, [r7, #8]
  4322. MPU_InitStruct.SubRegionDisable = 0x87;
  4323. 8001ea2: 2387 movs r3, #135 @ 0x87
  4324. 8001ea4: 727b strb r3, [r7, #9]
  4325. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4326. 8001ea6: 2300 movs r3, #0
  4327. 8001ea8: 72bb strb r3, [r7, #10]
  4328. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  4329. 8001eaa: 2300 movs r3, #0
  4330. 8001eac: 72fb strb r3, [r7, #11]
  4331. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  4332. 8001eae: 2301 movs r3, #1
  4333. 8001eb0: 733b strb r3, [r7, #12]
  4334. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4335. 8001eb2: 2301 movs r3, #1
  4336. 8001eb4: 737b strb r3, [r7, #13]
  4337. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  4338. 8001eb6: 2300 movs r3, #0
  4339. 8001eb8: 73bb strb r3, [r7, #14]
  4340. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  4341. 8001eba: 2300 movs r3, #0
  4342. 8001ebc: 73fb strb r3, [r7, #15]
  4343. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4344. 8001ebe: 463b mov r3, r7
  4345. 8001ec0: 4618 mov r0, r3
  4346. 8001ec2: f005 fa57 bl 8007374 <HAL_MPU_ConfigRegion>
  4347. /** Initializes and configures the Region and the memory to be protected
  4348. */
  4349. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  4350. 8001ec6: 2301 movs r3, #1
  4351. 8001ec8: 707b strb r3, [r7, #1]
  4352. MPU_InitStruct.BaseAddress = 0x24020000;
  4353. 8001eca: 4b13 ldr r3, [pc, #76] @ (8001f18 <MPU_Config+0x9c>)
  4354. 8001ecc: 607b str r3, [r7, #4]
  4355. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  4356. 8001ece: 2310 movs r3, #16
  4357. 8001ed0: 723b strb r3, [r7, #8]
  4358. MPU_InitStruct.SubRegionDisable = 0x0;
  4359. 8001ed2: 2300 movs r3, #0
  4360. 8001ed4: 727b strb r3, [r7, #9]
  4361. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  4362. 8001ed6: 2301 movs r3, #1
  4363. 8001ed8: 72bb strb r3, [r7, #10]
  4364. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  4365. 8001eda: 2303 movs r3, #3
  4366. 8001edc: 72fb strb r3, [r7, #11]
  4367. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  4368. 8001ede: 2300 movs r3, #0
  4369. 8001ee0: 737b strb r3, [r7, #13]
  4370. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4371. 8001ee2: 463b mov r3, r7
  4372. 8001ee4: 4618 mov r0, r3
  4373. 8001ee6: f005 fa45 bl 8007374 <HAL_MPU_ConfigRegion>
  4374. /** Initializes and configures the Region and the memory to be protected
  4375. */
  4376. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  4377. 8001eea: 2302 movs r3, #2
  4378. 8001eec: 707b strb r3, [r7, #1]
  4379. MPU_InitStruct.BaseAddress = 0x24040000;
  4380. 8001eee: 4b0b ldr r3, [pc, #44] @ (8001f1c <MPU_Config+0xa0>)
  4381. 8001ef0: 607b str r3, [r7, #4]
  4382. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  4383. 8001ef2: 2308 movs r3, #8
  4384. 8001ef4: 723b strb r3, [r7, #8]
  4385. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4386. 8001ef6: 2300 movs r3, #0
  4387. 8001ef8: 72bb strb r3, [r7, #10]
  4388. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4389. 8001efa: 2301 movs r3, #1
  4390. 8001efc: 737b strb r3, [r7, #13]
  4391. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  4392. 8001efe: 2301 movs r3, #1
  4393. 8001f00: 73fb strb r3, [r7, #15]
  4394. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4395. 8001f02: 463b mov r3, r7
  4396. 8001f04: 4618 mov r0, r3
  4397. 8001f06: f005 fa35 bl 8007374 <HAL_MPU_ConfigRegion>
  4398. /* Enables the MPU */
  4399. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4400. 8001f0a: 2004 movs r0, #4
  4401. 8001f0c: f005 fa12 bl 8007334 <HAL_MPU_Enable>
  4402. }
  4403. 8001f10: bf00 nop
  4404. 8001f12: 3710 adds r7, #16
  4405. 8001f14: 46bd mov sp, r7
  4406. 8001f16: bd80 pop {r7, pc}
  4407. 8001f18: 24020000 .word 0x24020000
  4408. 8001f1c: 24040000 .word 0x24040000
  4409. 08001f20 <HAL_TIM_PeriodElapsedCallback>:
  4410. * a global variable "uwTick" used as application time base.
  4411. * @param htim : TIM handle
  4412. * @retval None
  4413. */
  4414. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  4415. {
  4416. 8001f20: b580 push {r7, lr}
  4417. 8001f22: b082 sub sp, #8
  4418. 8001f24: af00 add r7, sp, #0
  4419. 8001f26: 6078 str r0, [r7, #4]
  4420. /* USER CODE BEGIN Callback 0 */
  4421. /* USER CODE END Callback 0 */
  4422. if (htim->Instance == TIM6) {
  4423. 8001f28: 687b ldr r3, [r7, #4]
  4424. 8001f2a: 681b ldr r3, [r3, #0]
  4425. 8001f2c: 4a10 ldr r2, [pc, #64] @ (8001f70 <HAL_TIM_PeriodElapsedCallback+0x50>)
  4426. 8001f2e: 4293 cmp r3, r2
  4427. 8001f30: d102 bne.n 8001f38 <HAL_TIM_PeriodElapsedCallback+0x18>
  4428. HAL_IncTick();
  4429. 8001f32: f003 fb05 bl 8005540 <HAL_IncTick>
  4430. {
  4431. encoderYChannelA = 0;
  4432. encoderYChannelB = 0;
  4433. }
  4434. /* USER CODE END Callback 1 */
  4435. }
  4436. 8001f36: e016 b.n 8001f66 <HAL_TIM_PeriodElapsedCallback+0x46>
  4437. else if (htim->Instance == TIM4)
  4438. 8001f38: 687b ldr r3, [r7, #4]
  4439. 8001f3a: 681b ldr r3, [r3, #0]
  4440. 8001f3c: 4a0d ldr r2, [pc, #52] @ (8001f74 <HAL_TIM_PeriodElapsedCallback+0x54>)
  4441. 8001f3e: 4293 cmp r3, r2
  4442. 8001f40: d106 bne.n 8001f50 <HAL_TIM_PeriodElapsedCallback+0x30>
  4443. encoderXChannelA = 0;
  4444. 8001f42: 4b0d ldr r3, [pc, #52] @ (8001f78 <HAL_TIM_PeriodElapsedCallback+0x58>)
  4445. 8001f44: 2200 movs r2, #0
  4446. 8001f46: 601a str r2, [r3, #0]
  4447. encoderXChannelB = 0;
  4448. 8001f48: 4b0c ldr r3, [pc, #48] @ (8001f7c <HAL_TIM_PeriodElapsedCallback+0x5c>)
  4449. 8001f4a: 2200 movs r2, #0
  4450. 8001f4c: 601a str r2, [r3, #0]
  4451. }
  4452. 8001f4e: e00a b.n 8001f66 <HAL_TIM_PeriodElapsedCallback+0x46>
  4453. else if (htim->Instance == TIM2)
  4454. 8001f50: 687b ldr r3, [r7, #4]
  4455. 8001f52: 681b ldr r3, [r3, #0]
  4456. 8001f54: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  4457. 8001f58: d105 bne.n 8001f66 <HAL_TIM_PeriodElapsedCallback+0x46>
  4458. encoderYChannelA = 0;
  4459. 8001f5a: 4b09 ldr r3, [pc, #36] @ (8001f80 <HAL_TIM_PeriodElapsedCallback+0x60>)
  4460. 8001f5c: 2200 movs r2, #0
  4461. 8001f5e: 601a str r2, [r3, #0]
  4462. encoderYChannelB = 0;
  4463. 8001f60: 4b08 ldr r3, [pc, #32] @ (8001f84 <HAL_TIM_PeriodElapsedCallback+0x64>)
  4464. 8001f62: 2200 movs r2, #0
  4465. 8001f64: 601a str r2, [r3, #0]
  4466. }
  4467. 8001f66: bf00 nop
  4468. 8001f68: 3708 adds r7, #8
  4469. 8001f6a: 46bd mov sp, r7
  4470. 8001f6c: bd80 pop {r7, pc}
  4471. 8001f6e: bf00 nop
  4472. 8001f70: 40001000 .word 0x40001000
  4473. 8001f74: 40000800 .word 0x40000800
  4474. 8001f78: 240007fc .word 0x240007fc
  4475. 8001f7c: 24000800 .word 0x24000800
  4476. 8001f80: 24000804 .word 0x24000804
  4477. 8001f84: 24000808 .word 0x24000808
  4478. 08001f88 <Error_Handler>:
  4479. /**
  4480. * @brief This function is executed in case of error occurrence.
  4481. * @retval None
  4482. */
  4483. void Error_Handler(void)
  4484. {
  4485. 8001f88: b580 push {r7, lr}
  4486. 8001f8a: af00 add r7, sp, #0
  4487. __ASM volatile ("cpsid i" : : : "memory");
  4488. 8001f8c: b672 cpsid i
  4489. }
  4490. 8001f8e: bf00 nop
  4491. /* USER CODE BEGIN Error_Handler_Debug */
  4492. /* User can add his own implementation to report the HAL error return state */
  4493. __disable_irq();
  4494. NVIC_SystemReset();
  4495. 8001f90: f7fe fb7a bl 8000688 <__NVIC_SystemReset>
  4496. 08001f94 <MeasTasksInit>:
  4497. extern TIM_OC_InitTypeDef motorXYTimerConfigOC;
  4498. extern osTimerId_t motorXTimerHandle;
  4499. extern osTimerId_t motorYTimerHandle;
  4500. void MeasTasksInit (void) {
  4501. 8001f94: b580 push {r7, lr}
  4502. 8001f96: b0ae sub sp, #184 @ 0xb8
  4503. 8001f98: af00 add r7, sp, #0
  4504. vRefmVMutex = osMutexNew (NULL);
  4505. 8001f9a: 2000 movs r0, #0
  4506. 8001f9c: f011 fe39 bl 8013c12 <osMutexNew>
  4507. 8001fa0: 4603 mov r3, r0
  4508. 8001fa2: 4a58 ldr r2, [pc, #352] @ (8002104 <MeasTasksInit+0x170>)
  4509. 8001fa4: 6013 str r3, [r2, #0]
  4510. resMeasurementsMutex = osMutexNew (NULL);
  4511. 8001fa6: 2000 movs r0, #0
  4512. 8001fa8: f011 fe33 bl 8013c12 <osMutexNew>
  4513. 8001fac: 4603 mov r3, r0
  4514. 8001fae: 4a56 ldr r2, [pc, #344] @ (8002108 <MeasTasksInit+0x174>)
  4515. 8001fb0: 6013 str r3, [r2, #0]
  4516. sensorsInfoMutex = osMutexNew (NULL);
  4517. 8001fb2: 2000 movs r0, #0
  4518. 8001fb4: f011 fe2d bl 8013c12 <osMutexNew>
  4519. 8001fb8: 4603 mov r3, r0
  4520. 8001fba: 4a54 ldr r2, [pc, #336] @ (800210c <MeasTasksInit+0x178>)
  4521. 8001fbc: 6013 str r3, [r2, #0]
  4522. ILxRefMutex = osMutexNew (NULL);
  4523. 8001fbe: 2000 movs r0, #0
  4524. 8001fc0: f011 fe27 bl 8013c12 <osMutexNew>
  4525. 8001fc4: 4603 mov r3, r0
  4526. 8001fc6: 4a52 ldr r2, [pc, #328] @ (8002110 <MeasTasksInit+0x17c>)
  4527. 8001fc8: 6013 str r3, [r2, #0]
  4528. adc1MeasDataQueue = osMessageQueueNew (8, sizeof (ADC1_Data), NULL);
  4529. 8001fca: 2200 movs r2, #0
  4530. 8001fcc: 2120 movs r1, #32
  4531. 8001fce: 2008 movs r0, #8
  4532. 8001fd0: f011 ff2d bl 8013e2e <osMessageQueueNew>
  4533. 8001fd4: 4603 mov r3, r0
  4534. 8001fd6: 4a4f ldr r2, [pc, #316] @ (8002114 <MeasTasksInit+0x180>)
  4535. 8001fd8: 6013 str r3, [r2, #0]
  4536. adc2MeasDataQueue = osMessageQueueNew (8, sizeof (ADC2_Data), NULL);
  4537. 8001fda: 2200 movs r2, #0
  4538. 8001fdc: 2120 movs r1, #32
  4539. 8001fde: 2008 movs r0, #8
  4540. 8001fe0: f011 ff25 bl 8013e2e <osMessageQueueNew>
  4541. 8001fe4: 4603 mov r3, r0
  4542. 8001fe6: 4a4c ldr r2, [pc, #304] @ (8002118 <MeasTasksInit+0x184>)
  4543. 8001fe8: 6013 str r3, [r2, #0]
  4544. adc3MeasDataQueue = osMessageQueueNew (8, sizeof (ADC3_Data), NULL);
  4545. 8001fea: 2200 movs r2, #0
  4546. 8001fec: 2120 movs r1, #32
  4547. 8001fee: 2008 movs r0, #8
  4548. 8001ff0: f011 ff1d bl 8013e2e <osMessageQueueNew>
  4549. 8001ff4: 4603 mov r3, r0
  4550. 8001ff6: 4a49 ldr r2, [pc, #292] @ (800211c <MeasTasksInit+0x188>)
  4551. 8001ff8: 6013 str r3, [r2, #0]
  4552. osThreadAttr_t osThreadAttradc1MeasTask = { 0 };
  4553. 8001ffa: f107 0394 add.w r3, r7, #148 @ 0x94
  4554. 8001ffe: 2224 movs r2, #36 @ 0x24
  4555. 8002000: 2100 movs r1, #0
  4556. 8002002: 4618 mov r0, r3
  4557. 8002004: f015 fecf bl 8017da6 <memset>
  4558. osThreadAttr_t osThreadAttradc2MeasTask = { 0 };
  4559. 8002008: f107 0370 add.w r3, r7, #112 @ 0x70
  4560. 800200c: 2224 movs r2, #36 @ 0x24
  4561. 800200e: 2100 movs r1, #0
  4562. 8002010: 4618 mov r0, r3
  4563. 8002012: f015 fec8 bl 8017da6 <memset>
  4564. osThreadAttr_t osThreadAttradc3MeasTask = { 0 };
  4565. 8002016: f107 034c add.w r3, r7, #76 @ 0x4c
  4566. 800201a: 2224 movs r2, #36 @ 0x24
  4567. 800201c: 2100 movs r1, #0
  4568. 800201e: 4618 mov r0, r3
  4569. 8002020: f015 fec1 bl 8017da6 <memset>
  4570. osThreadAttradc1MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4571. 8002024: f44f 6380 mov.w r3, #1024 @ 0x400
  4572. 8002028: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  4573. osThreadAttradc1MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4574. 800202c: 2330 movs r3, #48 @ 0x30
  4575. 800202e: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  4576. osThreadAttradc2MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4577. 8002032: f44f 6380 mov.w r3, #1024 @ 0x400
  4578. 8002036: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  4579. osThreadAttradc2MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4580. 800203a: 2330 movs r3, #48 @ 0x30
  4581. 800203c: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  4582. osThreadAttradc3MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4583. 8002040: f44f 6380 mov.w r3, #1024 @ 0x400
  4584. 8002044: 663b str r3, [r7, #96] @ 0x60
  4585. osThreadAttradc3MeasTask.priority = (osPriority_t)osPriorityNormal;
  4586. 8002046: 2318 movs r3, #24
  4587. 8002048: 667b str r3, [r7, #100] @ 0x64
  4588. adc1MeasTaskHandle = osThreadNew (ADC1MeasTask, NULL, &osThreadAttradc1MeasTask);
  4589. 800204a: f107 0394 add.w r3, r7, #148 @ 0x94
  4590. 800204e: 461a mov r2, r3
  4591. 8002050: 2100 movs r1, #0
  4592. 8002052: 4833 ldr r0, [pc, #204] @ (8002120 <MeasTasksInit+0x18c>)
  4593. 8002054: f011 fc38 bl 80138c8 <osThreadNew>
  4594. 8002058: 4603 mov r3, r0
  4595. 800205a: 4a32 ldr r2, [pc, #200] @ (8002124 <MeasTasksInit+0x190>)
  4596. 800205c: 6013 str r3, [r2, #0]
  4597. adc2MeasTaskHandle = osThreadNew (ADC2MeasTask, NULL, &osThreadAttradc2MeasTask);
  4598. 800205e: f107 0370 add.w r3, r7, #112 @ 0x70
  4599. 8002062: 461a mov r2, r3
  4600. 8002064: 2100 movs r1, #0
  4601. 8002066: 4830 ldr r0, [pc, #192] @ (8002128 <MeasTasksInit+0x194>)
  4602. 8002068: f011 fc2e bl 80138c8 <osThreadNew>
  4603. 800206c: 4603 mov r3, r0
  4604. 800206e: 4a2f ldr r2, [pc, #188] @ (800212c <MeasTasksInit+0x198>)
  4605. 8002070: 6013 str r3, [r2, #0]
  4606. adc3MeasTaskHandle = osThreadNew (ADC3MeasTask, NULL, &osThreadAttradc3MeasTask);
  4607. 8002072: f107 034c add.w r3, r7, #76 @ 0x4c
  4608. 8002076: 461a mov r2, r3
  4609. 8002078: 2100 movs r1, #0
  4610. 800207a: 482d ldr r0, [pc, #180] @ (8002130 <MeasTasksInit+0x19c>)
  4611. 800207c: f011 fc24 bl 80138c8 <osThreadNew>
  4612. 8002080: 4603 mov r3, r0
  4613. 8002082: 4a2c ldr r2, [pc, #176] @ (8002134 <MeasTasksInit+0x1a0>)
  4614. 8002084: 6013 str r3, [r2, #0]
  4615. limiterSwitchDataQueue = osMessageQueueNew (8, sizeof (LimiterSwitchData), NULL);
  4616. 8002086: 2200 movs r2, #0
  4617. 8002088: 2104 movs r1, #4
  4618. 800208a: 2008 movs r0, #8
  4619. 800208c: f011 fecf bl 8013e2e <osMessageQueueNew>
  4620. 8002090: 4603 mov r3, r0
  4621. 8002092: 4a29 ldr r2, [pc, #164] @ (8002138 <MeasTasksInit+0x1a4>)
  4622. 8002094: 6013 str r3, [r2, #0]
  4623. osThreadAttr_t osThreadAttradc1LimiterSwitchTask = { 0 };
  4624. 8002096: f107 0328 add.w r3, r7, #40 @ 0x28
  4625. 800209a: 2224 movs r2, #36 @ 0x24
  4626. 800209c: 2100 movs r1, #0
  4627. 800209e: 4618 mov r0, r3
  4628. 80020a0: f015 fe81 bl 8017da6 <memset>
  4629. osThreadAttradc1LimiterSwitchTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4630. 80020a4: f44f 6380 mov.w r3, #1024 @ 0x400
  4631. 80020a8: 63fb str r3, [r7, #60] @ 0x3c
  4632. osThreadAttradc1LimiterSwitchTask.priority = (osPriority_t)osPriorityNormal;
  4633. 80020aa: 2318 movs r3, #24
  4634. 80020ac: 643b str r3, [r7, #64] @ 0x40
  4635. limiterSwitchTaskHandle = osThreadNew (LimiterSwitchTask, NULL, &osThreadAttradc1LimiterSwitchTask);
  4636. 80020ae: f107 0328 add.w r3, r7, #40 @ 0x28
  4637. 80020b2: 461a mov r2, r3
  4638. 80020b4: 2100 movs r1, #0
  4639. 80020b6: 4821 ldr r0, [pc, #132] @ (800213c <MeasTasksInit+0x1a8>)
  4640. 80020b8: f011 fc06 bl 80138c8 <osThreadNew>
  4641. 80020bc: 4603 mov r3, r0
  4642. 80020be: 4a20 ldr r2, [pc, #128] @ (8002140 <MeasTasksInit+0x1ac>)
  4643. 80020c0: 6013 str r3, [r2, #0]
  4644. encoderDataQueue = osMessageQueueNew (16, sizeof (EncoderData), NULL);
  4645. 80020c2: 2200 movs r2, #0
  4646. 80020c4: 2102 movs r1, #2
  4647. 80020c6: 2010 movs r0, #16
  4648. 80020c8: f011 feb1 bl 8013e2e <osMessageQueueNew>
  4649. 80020cc: 4603 mov r3, r0
  4650. 80020ce: 4a1d ldr r2, [pc, #116] @ (8002144 <MeasTasksInit+0x1b0>)
  4651. 80020d0: 6013 str r3, [r2, #0]
  4652. osThreadAttr_t osThreadAttrEncoderTask = { 0 };
  4653. 80020d2: 1d3b adds r3, r7, #4
  4654. 80020d4: 2224 movs r2, #36 @ 0x24
  4655. 80020d6: 2100 movs r1, #0
  4656. 80020d8: 4618 mov r0, r3
  4657. 80020da: f015 fe64 bl 8017da6 <memset>
  4658. osThreadAttrEncoderTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4659. 80020de: f44f 6380 mov.w r3, #1024 @ 0x400
  4660. 80020e2: 61bb str r3, [r7, #24]
  4661. osThreadAttrEncoderTask.priority = (osPriority_t)osPriorityNormal;
  4662. 80020e4: 2318 movs r3, #24
  4663. 80020e6: 61fb str r3, [r7, #28]
  4664. encoderTaskHandle = osThreadNew (EncoderTask, encoderDataQueue, &osThreadAttrEncoderTask);
  4665. 80020e8: 4b16 ldr r3, [pc, #88] @ (8002144 <MeasTasksInit+0x1b0>)
  4666. 80020ea: 681b ldr r3, [r3, #0]
  4667. 80020ec: 1d3a adds r2, r7, #4
  4668. 80020ee: 4619 mov r1, r3
  4669. 80020f0: 4815 ldr r0, [pc, #84] @ (8002148 <MeasTasksInit+0x1b4>)
  4670. 80020f2: f011 fbe9 bl 80138c8 <osThreadNew>
  4671. 80020f6: 4603 mov r3, r0
  4672. 80020f8: 4a14 ldr r2, [pc, #80] @ (800214c <MeasTasksInit+0x1b8>)
  4673. 80020fa: 6013 str r3, [r2, #0]
  4674. }
  4675. 80020fc: bf00 nop
  4676. 80020fe: 37b8 adds r7, #184 @ 0xb8
  4677. 8002100: 46bd mov sp, r7
  4678. 8002102: bd80 pop {r7, pc}
  4679. 8002104: 24000834 .word 0x24000834
  4680. 8002108: 24000838 .word 0x24000838
  4681. 800210c: 2400083c .word 0x2400083c
  4682. 8002110: 24000840 .word 0x24000840
  4683. 8002114: 24000820 .word 0x24000820
  4684. 8002118: 24000824 .word 0x24000824
  4685. 800211c: 24000828 .word 0x24000828
  4686. 8002120: 08002151 .word 0x08002151
  4687. 8002124: 2400080c .word 0x2400080c
  4688. 8002128: 080024d9 .word 0x080024d9
  4689. 800212c: 24000810 .word 0x24000810
  4690. 8002130: 080027e1 .word 0x080027e1
  4691. 8002134: 24000814 .word 0x24000814
  4692. 8002138: 2400082c .word 0x2400082c
  4693. 800213c: 08002b5d .word 0x08002b5d
  4694. 8002140: 24000818 .word 0x24000818
  4695. 8002144: 24000830 .word 0x24000830
  4696. 8002148: 08002d4d .word 0x08002d4d
  4697. 800214c: 2400081c .word 0x2400081c
  4698. 08002150 <ADC1MeasTask>:
  4699. void ADC1MeasTask (void* arg) {
  4700. 8002150: b580 push {r7, lr}
  4701. 8002152: b09a sub sp, #104 @ 0x68
  4702. 8002154: af00 add r7, sp, #0
  4703. 8002156: 6078 str r0, [r7, #4]
  4704. float circBuffer[VOLTAGES_COUNT][CIRC_BUFF_LEN] = { 0 };
  4705. 8002158: f107 032c add.w r3, r7, #44 @ 0x2c
  4706. 800215c: 2228 movs r2, #40 @ 0x28
  4707. 800215e: 2100 movs r1, #0
  4708. 8002160: 4618 mov r0, r3
  4709. 8002162: f015 fe20 bl 8017da6 <memset>
  4710. float rms[VOLTAGES_COUNT] = { 0 };
  4711. 8002166: f04f 0300 mov.w r3, #0
  4712. 800216a: 62bb str r3, [r7, #40] @ 0x28
  4713. ;
  4714. ADC1_Data adcData = { 0 };
  4715. 800216c: f107 0308 add.w r3, r7, #8
  4716. 8002170: 2220 movs r2, #32
  4717. 8002172: 2100 movs r1, #0
  4718. 8002174: 4618 mov r0, r3
  4719. 8002176: f015 fe16 bl 8017da6 <memset>
  4720. uint32_t circBuffPos = 0;
  4721. 800217a: 2300 movs r3, #0
  4722. 800217c: 667b str r3, [r7, #100] @ 0x64
  4723. float gainCorrection = 1.0;
  4724. 800217e: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  4725. 8002182: 663b str r3, [r7, #96] @ 0x60
  4726. while (pdTRUE) {
  4727. osMessageQueueGet (adc1MeasDataQueue, &adcData, 0, osWaitForever);
  4728. 8002184: 4bc8 ldr r3, [pc, #800] @ (80024a8 <ADC1MeasTask+0x358>)
  4729. 8002186: 6818 ldr r0, [r3, #0]
  4730. 8002188: f107 0108 add.w r1, r7, #8
  4731. 800218c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  4732. 8002190: 2200 movs r2, #0
  4733. 8002192: f011 ff1f bl 8013fd4 <osMessageQueueGet>
  4734. #ifdef GAIN_AUTO_CORRECTION
  4735. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  4736. 8002196: 4bc5 ldr r3, [pc, #788] @ (80024ac <ADC1MeasTask+0x35c>)
  4737. 8002198: 681b ldr r3, [r3, #0]
  4738. 800219a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4739. 800219e: 4618 mov r0, r3
  4740. 80021a0: f011 fdbd bl 8013d1e <osMutexAcquire>
  4741. 80021a4: 4603 mov r3, r0
  4742. 80021a6: 2b00 cmp r3, #0
  4743. 80021a8: d10c bne.n 80021c4 <ADC1MeasTask+0x74>
  4744. gainCorrection = (float)vRefmV;
  4745. 80021aa: 4bc1 ldr r3, [pc, #772] @ (80024b0 <ADC1MeasTask+0x360>)
  4746. 80021ac: 681b ldr r3, [r3, #0]
  4747. 80021ae: ee07 3a90 vmov s15, r3
  4748. 80021b2: eef8 7a67 vcvt.f32.u32 s15, s15
  4749. 80021b6: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4750. osMutexRelease (vRefmVMutex);
  4751. 80021ba: 4bbc ldr r3, [pc, #752] @ (80024ac <ADC1MeasTask+0x35c>)
  4752. 80021bc: 681b ldr r3, [r3, #0]
  4753. 80021be: 4618 mov r0, r3
  4754. 80021c0: f011 fdf8 bl 8013db4 <osMutexRelease>
  4755. }
  4756. gainCorrection = gainCorrection / EXT_VREF_mV;
  4757. 80021c4: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  4758. 80021c8: eddf 6aba vldr s13, [pc, #744] @ 80024b4 <ADC1MeasTask+0x364>
  4759. 80021cc: eec7 7a26 vdiv.f32 s15, s14, s13
  4760. 80021d0: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4761. #endif
  4762. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4763. 80021d4: 2300 movs r3, #0
  4764. 80021d6: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4765. 80021da: e0e7 b.n 80023ac <ADC1MeasTask+0x25c>
  4766. float val = adcData.adcDataBuffer[i] * deltaADC * U_CHANNEL_CONST * gainCorrection * U_MeasCorrectionData[i].gain + U_MeasCorrectionData[i].offset;
  4767. 80021dc: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4768. 80021e0: 005b lsls r3, r3, #1
  4769. 80021e2: 3368 adds r3, #104 @ 0x68
  4770. 80021e4: 443b add r3, r7
  4771. 80021e6: f833 3c60 ldrh.w r3, [r3, #-96]
  4772. 80021ea: ee07 3a90 vmov s15, r3
  4773. 80021ee: eeb8 7be7 vcvt.f64.s32 d7, s15
  4774. 80021f2: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4775. 80021f6: ee27 6b06 vmul.f64 d6, d7, d6
  4776. 80021fa: ed9f 5ba5 vldr d5, [pc, #660] @ 8002490 <ADC1MeasTask+0x340>
  4777. 80021fe: ee86 7b05 vdiv.f64 d7, d6, d5
  4778. 8002202: ed9f 6ba5 vldr d6, [pc, #660] @ 8002498 <ADC1MeasTask+0x348>
  4779. 8002206: ee27 6b06 vmul.f64 d6, d7, d6
  4780. 800220a: edd7 7a18 vldr s15, [r7, #96] @ 0x60
  4781. 800220e: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4782. 8002212: ee26 6b07 vmul.f64 d6, d6, d7
  4783. 8002216: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4784. 800221a: 4aa7 ldr r2, [pc, #668] @ (80024b8 <ADC1MeasTask+0x368>)
  4785. 800221c: 00db lsls r3, r3, #3
  4786. 800221e: 4413 add r3, r2
  4787. 8002220: edd3 7a00 vldr s15, [r3]
  4788. 8002224: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4789. 8002228: ee26 6b07 vmul.f64 d6, d6, d7
  4790. 800222c: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4791. 8002230: 4aa1 ldr r2, [pc, #644] @ (80024b8 <ADC1MeasTask+0x368>)
  4792. 8002232: 00db lsls r3, r3, #3
  4793. 8002234: 4413 add r3, r2
  4794. 8002236: 3304 adds r3, #4
  4795. 8002238: edd3 7a00 vldr s15, [r3]
  4796. 800223c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4797. 8002240: ee36 7b07 vadd.f64 d7, d6, d7
  4798. 8002244: eef7 7bc7 vcvt.f32.f64 s15, d7
  4799. 8002248: edc7 7a15 vstr s15, [r7, #84] @ 0x54
  4800. circBuffer[i][circBuffPos] = val;
  4801. 800224c: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4802. 8002250: 4613 mov r3, r2
  4803. 8002252: 009b lsls r3, r3, #2
  4804. 8002254: 4413 add r3, r2
  4805. 8002256: 005b lsls r3, r3, #1
  4806. 8002258: 6e7a ldr r2, [r7, #100] @ 0x64
  4807. 800225a: 4413 add r3, r2
  4808. 800225c: 009b lsls r3, r3, #2
  4809. 800225e: 3368 adds r3, #104 @ 0x68
  4810. 8002260: 443b add r3, r7
  4811. 8002262: 3b3c subs r3, #60 @ 0x3c
  4812. 8002264: 6d7a ldr r2, [r7, #84] @ 0x54
  4813. 8002266: 601a str r2, [r3, #0]
  4814. rms[i] = 0.0;
  4815. 8002268: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4816. 800226c: 009b lsls r3, r3, #2
  4817. 800226e: 3368 adds r3, #104 @ 0x68
  4818. 8002270: 443b add r3, r7
  4819. 8002272: 3b40 subs r3, #64 @ 0x40
  4820. 8002274: f04f 0200 mov.w r2, #0
  4821. 8002278: 601a str r2, [r3, #0]
  4822. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4823. 800227a: 2300 movs r3, #0
  4824. 800227c: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4825. 8002280: e025 b.n 80022ce <ADC1MeasTask+0x17e>
  4826. rms[i] += circBuffer[i][c];
  4827. 8002282: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4828. 8002286: 009b lsls r3, r3, #2
  4829. 8002288: 3368 adds r3, #104 @ 0x68
  4830. 800228a: 443b add r3, r7
  4831. 800228c: 3b40 subs r3, #64 @ 0x40
  4832. 800228e: ed93 7a00 vldr s14, [r3]
  4833. 8002292: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4834. 8002296: f897 105e ldrb.w r1, [r7, #94] @ 0x5e
  4835. 800229a: 4613 mov r3, r2
  4836. 800229c: 009b lsls r3, r3, #2
  4837. 800229e: 4413 add r3, r2
  4838. 80022a0: 005b lsls r3, r3, #1
  4839. 80022a2: 440b add r3, r1
  4840. 80022a4: 009b lsls r3, r3, #2
  4841. 80022a6: 3368 adds r3, #104 @ 0x68
  4842. 80022a8: 443b add r3, r7
  4843. 80022aa: 3b3c subs r3, #60 @ 0x3c
  4844. 80022ac: edd3 7a00 vldr s15, [r3]
  4845. 80022b0: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4846. 80022b4: ee77 7a27 vadd.f32 s15, s14, s15
  4847. 80022b8: 009b lsls r3, r3, #2
  4848. 80022ba: 3368 adds r3, #104 @ 0x68
  4849. 80022bc: 443b add r3, r7
  4850. 80022be: 3b40 subs r3, #64 @ 0x40
  4851. 80022c0: edc3 7a00 vstr s15, [r3]
  4852. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4853. 80022c4: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4854. 80022c8: 3301 adds r3, #1
  4855. 80022ca: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4856. 80022ce: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4857. 80022d2: 2b09 cmp r3, #9
  4858. 80022d4: d9d5 bls.n 8002282 <ADC1MeasTask+0x132>
  4859. }
  4860. rms[i] = rms[i] / CIRC_BUFF_LEN;
  4861. 80022d6: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4862. 80022da: 009b lsls r3, r3, #2
  4863. 80022dc: 3368 adds r3, #104 @ 0x68
  4864. 80022de: 443b add r3, r7
  4865. 80022e0: 3b40 subs r3, #64 @ 0x40
  4866. 80022e2: ed93 7a00 vldr s14, [r3]
  4867. 80022e6: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4868. 80022ea: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4869. 80022ee: eec7 7a26 vdiv.f32 s15, s14, s13
  4870. 80022f2: 009b lsls r3, r3, #2
  4871. 80022f4: 3368 adds r3, #104 @ 0x68
  4872. 80022f6: 443b add r3, r7
  4873. 80022f8: 3b40 subs r3, #64 @ 0x40
  4874. 80022fa: edc3 7a00 vstr s15, [r3]
  4875. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  4876. 80022fe: 4b6f ldr r3, [pc, #444] @ (80024bc <ADC1MeasTask+0x36c>)
  4877. 8002300: 681b ldr r3, [r3, #0]
  4878. 8002302: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4879. 8002306: 4618 mov r0, r3
  4880. 8002308: f011 fd09 bl 8013d1e <osMutexAcquire>
  4881. 800230c: 4603 mov r3, r0
  4882. 800230e: 2b00 cmp r3, #0
  4883. 8002310: d147 bne.n 80023a2 <ADC1MeasTask+0x252>
  4884. if (fabs (resMeasurements.voltagePeak[i]) < fabs (val)) {
  4885. 8002312: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4886. 8002316: 4a6a ldr r2, [pc, #424] @ (80024c0 <ADC1MeasTask+0x370>)
  4887. 8002318: 3302 adds r3, #2
  4888. 800231a: 009b lsls r3, r3, #2
  4889. 800231c: 4413 add r3, r2
  4890. 800231e: 3304 adds r3, #4
  4891. 8002320: edd3 7a00 vldr s15, [r3]
  4892. 8002324: eeb0 7ae7 vabs.f32 s14, s15
  4893. 8002328: edd7 7a15 vldr s15, [r7, #84] @ 0x54
  4894. 800232c: eef0 7ae7 vabs.f32 s15, s15
  4895. 8002330: eeb4 7ae7 vcmpe.f32 s14, s15
  4896. 8002334: eef1 fa10 vmrs APSR_nzcv, fpscr
  4897. 8002338: d508 bpl.n 800234c <ADC1MeasTask+0x1fc>
  4898. resMeasurements.voltagePeak[i] = val;
  4899. 800233a: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4900. 800233e: 4a60 ldr r2, [pc, #384] @ (80024c0 <ADC1MeasTask+0x370>)
  4901. 8002340: 3302 adds r3, #2
  4902. 8002342: 009b lsls r3, r3, #2
  4903. 8002344: 4413 add r3, r2
  4904. 8002346: 3304 adds r3, #4
  4905. 8002348: 6d7a ldr r2, [r7, #84] @ 0x54
  4906. 800234a: 601a str r2, [r3, #0]
  4907. }
  4908. resMeasurements.voltageRMS[i] = rms[i];
  4909. 800234c: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4910. 8002350: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4911. 8002354: 0092 lsls r2, r2, #2
  4912. 8002356: 3268 adds r2, #104 @ 0x68
  4913. 8002358: 443a add r2, r7
  4914. 800235a: 3a40 subs r2, #64 @ 0x40
  4915. 800235c: 6812 ldr r2, [r2, #0]
  4916. 800235e: 4958 ldr r1, [pc, #352] @ (80024c0 <ADC1MeasTask+0x370>)
  4917. 8002360: 009b lsls r3, r3, #2
  4918. 8002362: 440b add r3, r1
  4919. 8002364: 601a str r2, [r3, #0]
  4920. resMeasurements.power[i] = resMeasurements.voltageRMS[i] * resMeasurements.currentRMS[i];
  4921. 8002366: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4922. 800236a: 4a55 ldr r2, [pc, #340] @ (80024c0 <ADC1MeasTask+0x370>)
  4923. 800236c: 009b lsls r3, r3, #2
  4924. 800236e: 4413 add r3, r2
  4925. 8002370: ed93 7a00 vldr s14, [r3]
  4926. 8002374: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4927. 8002378: 4a51 ldr r2, [pc, #324] @ (80024c0 <ADC1MeasTask+0x370>)
  4928. 800237a: 3306 adds r3, #6
  4929. 800237c: 009b lsls r3, r3, #2
  4930. 800237e: 4413 add r3, r2
  4931. 8002380: edd3 7a00 vldr s15, [r3]
  4932. 8002384: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4933. 8002388: ee67 7a27 vmul.f32 s15, s14, s15
  4934. 800238c: 4a4c ldr r2, [pc, #304] @ (80024c0 <ADC1MeasTask+0x370>)
  4935. 800238e: 330c adds r3, #12
  4936. 8002390: 009b lsls r3, r3, #2
  4937. 8002392: 4413 add r3, r2
  4938. 8002394: edc3 7a00 vstr s15, [r3]
  4939. osMutexRelease (resMeasurementsMutex);
  4940. 8002398: 4b48 ldr r3, [pc, #288] @ (80024bc <ADC1MeasTask+0x36c>)
  4941. 800239a: 681b ldr r3, [r3, #0]
  4942. 800239c: 4618 mov r0, r3
  4943. 800239e: f011 fd09 bl 8013db4 <osMutexRelease>
  4944. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4945. 80023a2: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4946. 80023a6: 3301 adds r3, #1
  4947. 80023a8: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4948. 80023ac: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4949. 80023b0: 2b00 cmp r3, #0
  4950. 80023b2: f43f af13 beq.w 80021dc <ADC1MeasTask+0x8c>
  4951. }
  4952. }
  4953. ++circBuffPos;
  4954. 80023b6: 6e7b ldr r3, [r7, #100] @ 0x64
  4955. 80023b8: 3301 adds r3, #1
  4956. 80023ba: 667b str r3, [r7, #100] @ 0x64
  4957. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  4958. 80023bc: 6e7a ldr r2, [r7, #100] @ 0x64
  4959. 80023be: 4b41 ldr r3, [pc, #260] @ (80024c4 <ADC1MeasTask+0x374>)
  4960. 80023c0: fba3 1302 umull r1, r3, r3, r2
  4961. 80023c4: 08d9 lsrs r1, r3, #3
  4962. 80023c6: 460b mov r3, r1
  4963. 80023c8: 009b lsls r3, r3, #2
  4964. 80023ca: 440b add r3, r1
  4965. 80023cc: 005b lsls r3, r3, #1
  4966. 80023ce: 1ad3 subs r3, r2, r3
  4967. 80023d0: 667b str r3, [r7, #100] @ 0x64
  4968. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  4969. 80023d2: 4b3d ldr r3, [pc, #244] @ (80024c8 <ADC1MeasTask+0x378>)
  4970. 80023d4: 681b ldr r3, [r3, #0]
  4971. 80023d6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4972. 80023da: 4618 mov r0, r3
  4973. 80023dc: f011 fc9f bl 8013d1e <osMutexAcquire>
  4974. 80023e0: 4603 mov r3, r0
  4975. 80023e2: 2b00 cmp r3, #0
  4976. 80023e4: d124 bne.n 8002430 <ADC1MeasTask+0x2e0>
  4977. uint8_t refIdx = 0;
  4978. 80023e6: 2300 movs r3, #0
  4979. 80023e8: f887 305d strb.w r3, [r7, #93] @ 0x5d
  4980. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  4981. 80023ec: 2303 movs r3, #3
  4982. 80023ee: f887 305c strb.w r3, [r7, #92] @ 0x5c
  4983. 80023f2: e014 b.n 800241e <ADC1MeasTask+0x2ce>
  4984. ILxRef[refIdx++] = adcData.adcDataBuffer[i];
  4985. 80023f4: f897 205c ldrb.w r2, [r7, #92] @ 0x5c
  4986. 80023f8: f897 305d ldrb.w r3, [r7, #93] @ 0x5d
  4987. 80023fc: 1c59 adds r1, r3, #1
  4988. 80023fe: f887 105d strb.w r1, [r7, #93] @ 0x5d
  4989. 8002402: 4619 mov r1, r3
  4990. 8002404: 0053 lsls r3, r2, #1
  4991. 8002406: 3368 adds r3, #104 @ 0x68
  4992. 8002408: 443b add r3, r7
  4993. 800240a: f833 2c60 ldrh.w r2, [r3, #-96]
  4994. 800240e: 4b2f ldr r3, [pc, #188] @ (80024cc <ADC1MeasTask+0x37c>)
  4995. 8002410: f823 2011 strh.w r2, [r3, r1, lsl #1]
  4996. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  4997. 8002414: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  4998. 8002418: 3301 adds r3, #1
  4999. 800241a: f887 305c strb.w r3, [r7, #92] @ 0x5c
  5000. 800241e: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  5001. 8002422: 2b05 cmp r3, #5
  5002. 8002424: d9e6 bls.n 80023f4 <ADC1MeasTask+0x2a4>
  5003. }
  5004. osMutexRelease (ILxRefMutex);
  5005. 8002426: 4b28 ldr r3, [pc, #160] @ (80024c8 <ADC1MeasTask+0x378>)
  5006. 8002428: 681b ldr r3, [r3, #0]
  5007. 800242a: 4618 mov r0, r3
  5008. 800242c: f011 fcc2 bl 8013db4 <osMutexRelease>
  5009. }
  5010. float fanFBVoltage = adcData.adcDataBuffer[FanFB] * deltaADC * -4.35 + 12;
  5011. 8002430: 8abb ldrh r3, [r7, #20]
  5012. 8002432: ee07 3a90 vmov s15, r3
  5013. 8002436: eeb8 7be7 vcvt.f64.s32 d7, s15
  5014. 800243a: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5015. 800243e: ee27 6b06 vmul.f64 d6, d7, d6
  5016. 8002442: ed9f 5b13 vldr d5, [pc, #76] @ 8002490 <ADC1MeasTask+0x340>
  5017. 8002446: ee86 7b05 vdiv.f64 d7, d6, d5
  5018. 800244a: ed9f 6b15 vldr d6, [pc, #84] @ 80024a0 <ADC1MeasTask+0x350>
  5019. 800244e: ee27 7b06 vmul.f64 d7, d7, d6
  5020. 8002452: eeb2 6b08 vmov.f64 d6, #40 @ 0x41400000 12.0
  5021. 8002456: ee37 7b06 vadd.f64 d7, d7, d6
  5022. 800245a: eef7 7bc7 vcvt.f32.f64 s15, d7
  5023. 800245e: edc7 7a16 vstr s15, [r7, #88] @ 0x58
  5024. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5025. 8002462: 4b1b ldr r3, [pc, #108] @ (80024d0 <ADC1MeasTask+0x380>)
  5026. 8002464: 681b ldr r3, [r3, #0]
  5027. 8002466: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5028. 800246a: 4618 mov r0, r3
  5029. 800246c: f011 fc57 bl 8013d1e <osMutexAcquire>
  5030. 8002470: 4603 mov r3, r0
  5031. 8002472: 2b00 cmp r3, #0
  5032. 8002474: f47f ae86 bne.w 8002184 <ADC1MeasTask+0x34>
  5033. sensorsInfo.fanVoltage = fanFBVoltage;
  5034. 8002478: 4a16 ldr r2, [pc, #88] @ (80024d4 <ADC1MeasTask+0x384>)
  5035. 800247a: 6dbb ldr r3, [r7, #88] @ 0x58
  5036. 800247c: 6093 str r3, [r2, #8]
  5037. osMutexRelease (sensorsInfoMutex);
  5038. 800247e: 4b14 ldr r3, [pc, #80] @ (80024d0 <ADC1MeasTask+0x380>)
  5039. 8002480: 681b ldr r3, [r3, #0]
  5040. 8002482: 4618 mov r0, r3
  5041. 8002484: f011 fc96 bl 8013db4 <osMutexRelease>
  5042. while (pdTRUE) {
  5043. 8002488: e67c b.n 8002184 <ADC1MeasTask+0x34>
  5044. 800248a: bf00 nop
  5045. 800248c: f3af 8000 nop.w
  5046. 8002490: 00000000 .word 0x00000000
  5047. 8002494: 40efffe0 .word 0x40efffe0
  5048. 8002498: f5c28f5c .word 0xf5c28f5c
  5049. 800249c: 401e5c28 .word 0x401e5c28
  5050. 80024a0: 66666666 .word 0x66666666
  5051. 80024a4: c0116666 .word 0xc0116666
  5052. 80024a8: 24000820 .word 0x24000820
  5053. 80024ac: 24000834 .word 0x24000834
  5054. 80024b0: 24000030 .word 0x24000030
  5055. 80024b4: 453b8000 .word 0x453b8000
  5056. 80024b8: 24000000 .word 0x24000000
  5057. 80024bc: 24000838 .word 0x24000838
  5058. 80024c0: 24000844 .word 0x24000844
  5059. 80024c4: cccccccd .word 0xcccccccd
  5060. 80024c8: 24000840 .word 0x24000840
  5061. 80024cc: 240008b0 .word 0x240008b0
  5062. 80024d0: 2400083c .word 0x2400083c
  5063. 80024d4: 24000880 .word 0x24000880
  5064. 080024d8 <ADC2MeasTask>:
  5065. }
  5066. }
  5067. }
  5068. void ADC2MeasTask (void* arg) {
  5069. 80024d8: b580 push {r7, lr}
  5070. 80024da: b09c sub sp, #112 @ 0x70
  5071. 80024dc: af00 add r7, sp, #0
  5072. 80024de: 6078 str r0, [r7, #4]
  5073. float circBuffer[CURRENTS_COUNT][CIRC_BUFF_LEN] = { 0 };
  5074. 80024e0: f107 0334 add.w r3, r7, #52 @ 0x34
  5075. 80024e4: 2228 movs r2, #40 @ 0x28
  5076. 80024e6: 2100 movs r1, #0
  5077. 80024e8: 4618 mov r0, r3
  5078. 80024ea: f015 fc5c bl 8017da6 <memset>
  5079. float rms[CURRENTS_COUNT] = { 0 };
  5080. 80024ee: f04f 0300 mov.w r3, #0
  5081. 80024f2: 633b str r3, [r7, #48] @ 0x30
  5082. ADC2_Data adcData = { 0 };
  5083. 80024f4: f107 0310 add.w r3, r7, #16
  5084. 80024f8: 2220 movs r2, #32
  5085. 80024fa: 2100 movs r1, #0
  5086. 80024fc: 4618 mov r0, r3
  5087. 80024fe: f015 fc52 bl 8017da6 <memset>
  5088. uint32_t circBuffPos = 0;
  5089. 8002502: 2300 movs r3, #0
  5090. 8002504: 66fb str r3, [r7, #108] @ 0x6c
  5091. float gainCorrection = 1.0;
  5092. 8002506: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  5093. 800250a: 66bb str r3, [r7, #104] @ 0x68
  5094. while (pdTRUE) {
  5095. osMessageQueueGet (adc2MeasDataQueue, &adcData, 0, osWaitForever);
  5096. 800250c: 4baa ldr r3, [pc, #680] @ (80027b8 <ADC2MeasTask+0x2e0>)
  5097. 800250e: 6818 ldr r0, [r3, #0]
  5098. 8002510: f107 0110 add.w r1, r7, #16
  5099. 8002514: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5100. 8002518: 2200 movs r2, #0
  5101. 800251a: f011 fd5b bl 8013fd4 <osMessageQueueGet>
  5102. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  5103. 800251e: 4ba7 ldr r3, [pc, #668] @ (80027bc <ADC2MeasTask+0x2e4>)
  5104. 8002520: 681b ldr r3, [r3, #0]
  5105. 8002522: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5106. 8002526: 4618 mov r0, r3
  5107. 8002528: f011 fbf9 bl 8013d1e <osMutexAcquire>
  5108. 800252c: 4603 mov r3, r0
  5109. 800252e: 2b00 cmp r3, #0
  5110. 8002530: d10c bne.n 800254c <ADC2MeasTask+0x74>
  5111. gainCorrection = (float)vRefmV;
  5112. 8002532: 4ba3 ldr r3, [pc, #652] @ (80027c0 <ADC2MeasTask+0x2e8>)
  5113. 8002534: 681b ldr r3, [r3, #0]
  5114. 8002536: ee07 3a90 vmov s15, r3
  5115. 800253a: eef8 7a67 vcvt.f32.u32 s15, s15
  5116. 800253e: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  5117. osMutexRelease (vRefmVMutex);
  5118. 8002542: 4b9e ldr r3, [pc, #632] @ (80027bc <ADC2MeasTask+0x2e4>)
  5119. 8002544: 681b ldr r3, [r3, #0]
  5120. 8002546: 4618 mov r0, r3
  5121. 8002548: f011 fc34 bl 8013db4 <osMutexRelease>
  5122. }
  5123. gainCorrection = gainCorrection / EXT_VREF_mV;
  5124. 800254c: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  5125. 8002550: eddf 6a9c vldr s13, [pc, #624] @ 80027c4 <ADC2MeasTask+0x2ec>
  5126. 8002554: eec7 7a26 vdiv.f32 s15, s14, s13
  5127. 8002558: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  5128. float ref[CURRENTS_COUNT] = { 0 };
  5129. 800255c: f04f 0300 mov.w r3, #0
  5130. 8002560: 60fb str r3, [r7, #12]
  5131. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  5132. 8002562: 4b99 ldr r3, [pc, #612] @ (80027c8 <ADC2MeasTask+0x2f0>)
  5133. 8002564: 681b ldr r3, [r3, #0]
  5134. 8002566: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5135. 800256a: 4618 mov r0, r3
  5136. 800256c: f011 fbd7 bl 8013d1e <osMutexAcquire>
  5137. 8002570: 4603 mov r3, r0
  5138. 8002572: 2b00 cmp r3, #0
  5139. 8002574: d122 bne.n 80025bc <ADC2MeasTask+0xe4>
  5140. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5141. 8002576: 2300 movs r3, #0
  5142. 8002578: f887 3067 strb.w r3, [r7, #103] @ 0x67
  5143. 800257c: e015 b.n 80025aa <ADC2MeasTask+0xd2>
  5144. ref[i] = (float)ILxRef[i];
  5145. 800257e: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5146. 8002582: 4a92 ldr r2, [pc, #584] @ (80027cc <ADC2MeasTask+0x2f4>)
  5147. 8002584: f832 2013 ldrh.w r2, [r2, r3, lsl #1]
  5148. 8002588: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5149. 800258c: ee07 2a90 vmov s15, r2
  5150. 8002590: eef8 7a67 vcvt.f32.u32 s15, s15
  5151. 8002594: 009b lsls r3, r3, #2
  5152. 8002596: 3370 adds r3, #112 @ 0x70
  5153. 8002598: 443b add r3, r7
  5154. 800259a: 3b64 subs r3, #100 @ 0x64
  5155. 800259c: edc3 7a00 vstr s15, [r3]
  5156. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5157. 80025a0: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5158. 80025a4: 3301 adds r3, #1
  5159. 80025a6: f887 3067 strb.w r3, [r7, #103] @ 0x67
  5160. 80025aa: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5161. 80025ae: 2b00 cmp r3, #0
  5162. 80025b0: d0e5 beq.n 800257e <ADC2MeasTask+0xa6>
  5163. }
  5164. osMutexRelease (ILxRefMutex);
  5165. 80025b2: 4b85 ldr r3, [pc, #532] @ (80027c8 <ADC2MeasTask+0x2f0>)
  5166. 80025b4: 681b ldr r3, [r3, #0]
  5167. 80025b6: 4618 mov r0, r3
  5168. 80025b8: f011 fbfc bl 8013db4 <osMutexRelease>
  5169. }
  5170. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5171. 80025bc: 2300 movs r3, #0
  5172. 80025be: f887 3066 strb.w r3, [r7, #102] @ 0x66
  5173. 80025c2: e0db b.n 800277c <ADC2MeasTask+0x2a4>
  5174. float adcVal = (float)adcData.adcDataBuffer[i];
  5175. 80025c4: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5176. 80025c8: 005b lsls r3, r3, #1
  5177. 80025ca: 3370 adds r3, #112 @ 0x70
  5178. 80025cc: 443b add r3, r7
  5179. 80025ce: f833 3c60 ldrh.w r3, [r3, #-96]
  5180. 80025d2: ee07 3a90 vmov s15, r3
  5181. 80025d6: eef8 7a67 vcvt.f32.u32 s15, s15
  5182. 80025da: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  5183. float val = (adcVal - ref[i]) * deltaADC * I_CHANNEL_CONST * gainCorrection * I_MeasCorrectionData[i].gain + I_MeasCorrectionData[i].offset;
  5184. 80025de: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5185. 80025e2: 009b lsls r3, r3, #2
  5186. 80025e4: 3370 adds r3, #112 @ 0x70
  5187. 80025e6: 443b add r3, r7
  5188. 80025e8: 3b64 subs r3, #100 @ 0x64
  5189. 80025ea: edd3 7a00 vldr s15, [r3]
  5190. 80025ee: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  5191. 80025f2: ee77 7a67 vsub.f32 s15, s14, s15
  5192. 80025f6: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5193. 80025fa: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5194. 80025fe: ee27 6b06 vmul.f64 d6, d7, d6
  5195. 8002602: ed9f 5b69 vldr d5, [pc, #420] @ 80027a8 <ADC2MeasTask+0x2d0>
  5196. 8002606: ee86 7b05 vdiv.f64 d7, d6, d5
  5197. 800260a: ed9f 6b69 vldr d6, [pc, #420] @ 80027b0 <ADC2MeasTask+0x2d8>
  5198. 800260e: ee27 6b06 vmul.f64 d6, d7, d6
  5199. 8002612: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  5200. 8002616: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5201. 800261a: ee26 6b07 vmul.f64 d6, d6, d7
  5202. 800261e: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5203. 8002622: 4a6b ldr r2, [pc, #428] @ (80027d0 <ADC2MeasTask+0x2f8>)
  5204. 8002624: 00db lsls r3, r3, #3
  5205. 8002626: 4413 add r3, r2
  5206. 8002628: edd3 7a00 vldr s15, [r3]
  5207. 800262c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5208. 8002630: ee26 6b07 vmul.f64 d6, d6, d7
  5209. 8002634: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5210. 8002638: 4a65 ldr r2, [pc, #404] @ (80027d0 <ADC2MeasTask+0x2f8>)
  5211. 800263a: 00db lsls r3, r3, #3
  5212. 800263c: 4413 add r3, r2
  5213. 800263e: 3304 adds r3, #4
  5214. 8002640: edd3 7a00 vldr s15, [r3]
  5215. 8002644: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5216. 8002648: ee36 7b07 vadd.f64 d7, d6, d7
  5217. 800264c: eef7 7bc7 vcvt.f32.f64 s15, d7
  5218. 8002650: edc7 7a17 vstr s15, [r7, #92] @ 0x5c
  5219. circBuffer[i][circBuffPos] = val;
  5220. 8002654: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5221. 8002658: 4613 mov r3, r2
  5222. 800265a: 009b lsls r3, r3, #2
  5223. 800265c: 4413 add r3, r2
  5224. 800265e: 005b lsls r3, r3, #1
  5225. 8002660: 6efa ldr r2, [r7, #108] @ 0x6c
  5226. 8002662: 4413 add r3, r2
  5227. 8002664: 009b lsls r3, r3, #2
  5228. 8002666: 3370 adds r3, #112 @ 0x70
  5229. 8002668: 443b add r3, r7
  5230. 800266a: 3b3c subs r3, #60 @ 0x3c
  5231. 800266c: 6dfa ldr r2, [r7, #92] @ 0x5c
  5232. 800266e: 601a str r2, [r3, #0]
  5233. rms[i] = 0.0;
  5234. 8002670: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5235. 8002674: 009b lsls r3, r3, #2
  5236. 8002676: 3370 adds r3, #112 @ 0x70
  5237. 8002678: 443b add r3, r7
  5238. 800267a: 3b40 subs r3, #64 @ 0x40
  5239. 800267c: f04f 0200 mov.w r2, #0
  5240. 8002680: 601a str r2, [r3, #0]
  5241. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5242. 8002682: 2300 movs r3, #0
  5243. 8002684: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5244. 8002688: e025 b.n 80026d6 <ADC2MeasTask+0x1fe>
  5245. rms[i] += circBuffer[i][c];
  5246. 800268a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5247. 800268e: 009b lsls r3, r3, #2
  5248. 8002690: 3370 adds r3, #112 @ 0x70
  5249. 8002692: 443b add r3, r7
  5250. 8002694: 3b40 subs r3, #64 @ 0x40
  5251. 8002696: ed93 7a00 vldr s14, [r3]
  5252. 800269a: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5253. 800269e: f897 1065 ldrb.w r1, [r7, #101] @ 0x65
  5254. 80026a2: 4613 mov r3, r2
  5255. 80026a4: 009b lsls r3, r3, #2
  5256. 80026a6: 4413 add r3, r2
  5257. 80026a8: 005b lsls r3, r3, #1
  5258. 80026aa: 440b add r3, r1
  5259. 80026ac: 009b lsls r3, r3, #2
  5260. 80026ae: 3370 adds r3, #112 @ 0x70
  5261. 80026b0: 443b add r3, r7
  5262. 80026b2: 3b3c subs r3, #60 @ 0x3c
  5263. 80026b4: edd3 7a00 vldr s15, [r3]
  5264. 80026b8: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5265. 80026bc: ee77 7a27 vadd.f32 s15, s14, s15
  5266. 80026c0: 009b lsls r3, r3, #2
  5267. 80026c2: 3370 adds r3, #112 @ 0x70
  5268. 80026c4: 443b add r3, r7
  5269. 80026c6: 3b40 subs r3, #64 @ 0x40
  5270. 80026c8: edc3 7a00 vstr s15, [r3]
  5271. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5272. 80026cc: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5273. 80026d0: 3301 adds r3, #1
  5274. 80026d2: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5275. 80026d6: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5276. 80026da: 2b09 cmp r3, #9
  5277. 80026dc: d9d5 bls.n 800268a <ADC2MeasTask+0x1b2>
  5278. }
  5279. rms[i] = rms[i] / CIRC_BUFF_LEN;
  5280. 80026de: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5281. 80026e2: 009b lsls r3, r3, #2
  5282. 80026e4: 3370 adds r3, #112 @ 0x70
  5283. 80026e6: 443b add r3, r7
  5284. 80026e8: 3b40 subs r3, #64 @ 0x40
  5285. 80026ea: ed93 7a00 vldr s14, [r3]
  5286. 80026ee: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5287. 80026f2: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5288. 80026f6: eec7 7a26 vdiv.f32 s15, s14, s13
  5289. 80026fa: 009b lsls r3, r3, #2
  5290. 80026fc: 3370 adds r3, #112 @ 0x70
  5291. 80026fe: 443b add r3, r7
  5292. 8002700: 3b40 subs r3, #64 @ 0x40
  5293. 8002702: edc3 7a00 vstr s15, [r3]
  5294. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  5295. 8002706: 4b33 ldr r3, [pc, #204] @ (80027d4 <ADC2MeasTask+0x2fc>)
  5296. 8002708: 681b ldr r3, [r3, #0]
  5297. 800270a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5298. 800270e: 4618 mov r0, r3
  5299. 8002710: f011 fb05 bl 8013d1e <osMutexAcquire>
  5300. 8002714: 4603 mov r3, r0
  5301. 8002716: 2b00 cmp r3, #0
  5302. 8002718: d12b bne.n 8002772 <ADC2MeasTask+0x29a>
  5303. if (resMeasurements.currentPeak[i] < val) {
  5304. 800271a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5305. 800271e: 4a2e ldr r2, [pc, #184] @ (80027d8 <ADC2MeasTask+0x300>)
  5306. 8002720: 3308 adds r3, #8
  5307. 8002722: 009b lsls r3, r3, #2
  5308. 8002724: 4413 add r3, r2
  5309. 8002726: 3304 adds r3, #4
  5310. 8002728: edd3 7a00 vldr s15, [r3]
  5311. 800272c: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  5312. 8002730: eeb4 7ae7 vcmpe.f32 s14, s15
  5313. 8002734: eef1 fa10 vmrs APSR_nzcv, fpscr
  5314. 8002738: dd08 ble.n 800274c <ADC2MeasTask+0x274>
  5315. resMeasurements.currentPeak[i] = val;
  5316. 800273a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5317. 800273e: 4a26 ldr r2, [pc, #152] @ (80027d8 <ADC2MeasTask+0x300>)
  5318. 8002740: 3308 adds r3, #8
  5319. 8002742: 009b lsls r3, r3, #2
  5320. 8002744: 4413 add r3, r2
  5321. 8002746: 3304 adds r3, #4
  5322. 8002748: 6dfa ldr r2, [r7, #92] @ 0x5c
  5323. 800274a: 601a str r2, [r3, #0]
  5324. }
  5325. resMeasurements.currentRMS[i] = rms[i];
  5326. 800274c: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5327. 8002750: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5328. 8002754: 0092 lsls r2, r2, #2
  5329. 8002756: 3270 adds r2, #112 @ 0x70
  5330. 8002758: 443a add r2, r7
  5331. 800275a: 3a40 subs r2, #64 @ 0x40
  5332. 800275c: 6812 ldr r2, [r2, #0]
  5333. 800275e: 491e ldr r1, [pc, #120] @ (80027d8 <ADC2MeasTask+0x300>)
  5334. 8002760: 3306 adds r3, #6
  5335. 8002762: 009b lsls r3, r3, #2
  5336. 8002764: 440b add r3, r1
  5337. 8002766: 601a str r2, [r3, #0]
  5338. osMutexRelease (resMeasurementsMutex);
  5339. 8002768: 4b1a ldr r3, [pc, #104] @ (80027d4 <ADC2MeasTask+0x2fc>)
  5340. 800276a: 681b ldr r3, [r3, #0]
  5341. 800276c: 4618 mov r0, r3
  5342. 800276e: f011 fb21 bl 8013db4 <osMutexRelease>
  5343. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5344. 8002772: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5345. 8002776: 3301 adds r3, #1
  5346. 8002778: f887 3066 strb.w r3, [r7, #102] @ 0x66
  5347. 800277c: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5348. 8002780: 2b00 cmp r3, #0
  5349. 8002782: f43f af1f beq.w 80025c4 <ADC2MeasTask+0xec>
  5350. }
  5351. }
  5352. ++circBuffPos;
  5353. 8002786: 6efb ldr r3, [r7, #108] @ 0x6c
  5354. 8002788: 3301 adds r3, #1
  5355. 800278a: 66fb str r3, [r7, #108] @ 0x6c
  5356. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5357. 800278c: 6efa ldr r2, [r7, #108] @ 0x6c
  5358. 800278e: 4b13 ldr r3, [pc, #76] @ (80027dc <ADC2MeasTask+0x304>)
  5359. 8002790: fba3 1302 umull r1, r3, r3, r2
  5360. 8002794: 08d9 lsrs r1, r3, #3
  5361. 8002796: 460b mov r3, r1
  5362. 8002798: 009b lsls r3, r3, #2
  5363. 800279a: 440b add r3, r1
  5364. 800279c: 005b lsls r3, r3, #1
  5365. 800279e: 1ad3 subs r3, r2, r3
  5366. 80027a0: 66fb str r3, [r7, #108] @ 0x6c
  5367. while (pdTRUE) {
  5368. 80027a2: e6b3 b.n 800250c <ADC2MeasTask+0x34>
  5369. 80027a4: f3af 8000 nop.w
  5370. 80027a8: 00000000 .word 0x00000000
  5371. 80027ac: 40efffe0 .word 0x40efffe0
  5372. 80027b0: 83e425af .word 0x83e425af
  5373. 80027b4: 401e4d9e .word 0x401e4d9e
  5374. 80027b8: 24000824 .word 0x24000824
  5375. 80027bc: 24000834 .word 0x24000834
  5376. 80027c0: 24000030 .word 0x24000030
  5377. 80027c4: 453b8000 .word 0x453b8000
  5378. 80027c8: 24000840 .word 0x24000840
  5379. 80027cc: 240008b0 .word 0x240008b0
  5380. 80027d0: 24000018 .word 0x24000018
  5381. 80027d4: 24000838 .word 0x24000838
  5382. 80027d8: 24000844 .word 0x24000844
  5383. 80027dc: cccccccd .word 0xcccccccd
  5384. 080027e0 <ADC3MeasTask>:
  5385. }
  5386. }
  5387. void ADC3MeasTask (void* arg) {
  5388. 80027e0: b580 push {r7, lr}
  5389. 80027e2: b0bc sub sp, #240 @ 0xf0
  5390. 80027e4: af00 add r7, sp, #0
  5391. 80027e6: 6078 str r0, [r7, #4]
  5392. float motorXSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5393. 80027e8: f107 03a4 add.w r3, r7, #164 @ 0xa4
  5394. 80027ec: 2228 movs r2, #40 @ 0x28
  5395. 80027ee: 2100 movs r1, #0
  5396. 80027f0: 4618 mov r0, r3
  5397. 80027f2: f015 fad8 bl 8017da6 <memset>
  5398. float motorYSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5399. 80027f6: f107 037c add.w r3, r7, #124 @ 0x7c
  5400. 80027fa: 2228 movs r2, #40 @ 0x28
  5401. 80027fc: 2100 movs r1, #0
  5402. 80027fe: 4618 mov r0, r3
  5403. 8002800: f015 fad1 bl 8017da6 <memset>
  5404. float pvT1CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5405. 8002804: f107 0354 add.w r3, r7, #84 @ 0x54
  5406. 8002808: 2228 movs r2, #40 @ 0x28
  5407. 800280a: 2100 movs r1, #0
  5408. 800280c: 4618 mov r0, r3
  5409. 800280e: f015 faca bl 8017da6 <memset>
  5410. float pvT2CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5411. 8002812: f107 032c add.w r3, r7, #44 @ 0x2c
  5412. 8002816: 2228 movs r2, #40 @ 0x28
  5413. 8002818: 2100 movs r1, #0
  5414. 800281a: 4618 mov r0, r3
  5415. 800281c: f015 fac3 bl 8017da6 <memset>
  5416. uint32_t circBuffPos = 0;
  5417. 8002820: 2300 movs r3, #0
  5418. 8002822: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5419. ADC3_Data adcData = { 0 };
  5420. 8002826: f107 030c add.w r3, r7, #12
  5421. 800282a: 2220 movs r2, #32
  5422. 800282c: 2100 movs r1, #0
  5423. 800282e: 4618 mov r0, r3
  5424. 8002830: f015 fab9 bl 8017da6 <memset>
  5425. while (pdTRUE) {
  5426. osMessageQueueGet (adc3MeasDataQueue, &adcData, 0, osWaitForever);
  5427. 8002834: 4bc2 ldr r3, [pc, #776] @ (8002b40 <ADC3MeasTask+0x360>)
  5428. 8002836: 6818 ldr r0, [r3, #0]
  5429. 8002838: f107 010c add.w r1, r7, #12
  5430. 800283c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5431. 8002840: 2200 movs r2, #0
  5432. 8002842: f011 fbc7 bl 8013fd4 <osMessageQueueGet>
  5433. uint32_t vRef = __LL_ADC_CALC_VREFANALOG_VOLTAGE (adcData.adcDataBuffer[VrefInt], LL_ADC_RESOLUTION_16B);
  5434. 8002846: 4bbf ldr r3, [pc, #764] @ (8002b44 <ADC3MeasTask+0x364>)
  5435. 8002848: 881b ldrh r3, [r3, #0]
  5436. 800284a: 461a mov r2, r3
  5437. 800284c: f640 43e4 movw r3, #3300 @ 0xce4
  5438. 8002850: fb02 f303 mul.w r3, r2, r3
  5439. 8002854: 8aba ldrh r2, [r7, #20]
  5440. 8002856: fbb3 f3f2 udiv r3, r3, r2
  5441. 800285a: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  5442. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  5443. 800285e: 4bba ldr r3, [pc, #744] @ (8002b48 <ADC3MeasTask+0x368>)
  5444. 8002860: 681b ldr r3, [r3, #0]
  5445. 8002862: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5446. 8002866: 4618 mov r0, r3
  5447. 8002868: f011 fa59 bl 8013d1e <osMutexAcquire>
  5448. 800286c: 4603 mov r3, r0
  5449. 800286e: 2b00 cmp r3, #0
  5450. 8002870: d108 bne.n 8002884 <ADC3MeasTask+0xa4>
  5451. vRefmV = vRef;
  5452. 8002872: 4ab6 ldr r2, [pc, #728] @ (8002b4c <ADC3MeasTask+0x36c>)
  5453. 8002874: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  5454. 8002878: 6013 str r3, [r2, #0]
  5455. osMutexRelease (vRefmVMutex);
  5456. 800287a: 4bb3 ldr r3, [pc, #716] @ (8002b48 <ADC3MeasTask+0x368>)
  5457. 800287c: 681b ldr r3, [r3, #0]
  5458. 800287e: 4618 mov r0, r3
  5459. 8002880: f011 fa98 bl 8013db4 <osMutexRelease>
  5460. }
  5461. float motorXCurrentSense = adcData.adcDataBuffer[motorXSense] * deltaADC * 10 / 8.33333;
  5462. 8002884: 8a3b ldrh r3, [r7, #16]
  5463. 8002886: ee07 3a90 vmov s15, r3
  5464. 800288a: eeb8 7be7 vcvt.f64.s32 d7, s15
  5465. 800288e: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5466. 8002892: ee27 6b06 vmul.f64 d6, d7, d6
  5467. 8002896: ed9f 5ba2 vldr d5, [pc, #648] @ 8002b20 <ADC3MeasTask+0x340>
  5468. 800289a: ee86 7b05 vdiv.f64 d7, d6, d5
  5469. 800289e: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5470. 80028a2: ee27 6b06 vmul.f64 d6, d7, d6
  5471. 80028a6: ed9f 5ba0 vldr d5, [pc, #640] @ 8002b28 <ADC3MeasTask+0x348>
  5472. 80028aa: ee86 7b05 vdiv.f64 d7, d6, d5
  5473. 80028ae: eef7 7bc7 vcvt.f32.f64 s15, d7
  5474. 80028b2: edc7 7a34 vstr s15, [r7, #208] @ 0xd0
  5475. float motorYCurrentSense = adcData.adcDataBuffer[motorYSense] * deltaADC * 10 / 8.33333;
  5476. 80028b6: 8a7b ldrh r3, [r7, #18]
  5477. 80028b8: ee07 3a90 vmov s15, r3
  5478. 80028bc: eeb8 7be7 vcvt.f64.s32 d7, s15
  5479. 80028c0: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5480. 80028c4: ee27 6b06 vmul.f64 d6, d7, d6
  5481. 80028c8: ed9f 5b95 vldr d5, [pc, #596] @ 8002b20 <ADC3MeasTask+0x340>
  5482. 80028cc: ee86 7b05 vdiv.f64 d7, d6, d5
  5483. 80028d0: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5484. 80028d4: ee27 6b06 vmul.f64 d6, d7, d6
  5485. 80028d8: ed9f 5b93 vldr d5, [pc, #588] @ 8002b28 <ADC3MeasTask+0x348>
  5486. 80028dc: ee86 7b05 vdiv.f64 d7, d6, d5
  5487. 80028e0: eef7 7bc7 vcvt.f32.f64 s15, d7
  5488. 80028e4: edc7 7a33 vstr s15, [r7, #204] @ 0xcc
  5489. motorXSensCircBuffer[circBuffPos] = motorXCurrentSense;
  5490. 80028e8: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5491. 80028ec: 009b lsls r3, r3, #2
  5492. 80028ee: 33f0 adds r3, #240 @ 0xf0
  5493. 80028f0: 443b add r3, r7
  5494. 80028f2: 3b4c subs r3, #76 @ 0x4c
  5495. 80028f4: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  5496. 80028f8: 601a str r2, [r3, #0]
  5497. motorYSensCircBuffer[circBuffPos] = motorYCurrentSense;
  5498. 80028fa: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5499. 80028fe: 009b lsls r3, r3, #2
  5500. 8002900: 33f0 adds r3, #240 @ 0xf0
  5501. 8002902: 443b add r3, r7
  5502. 8002904: 3b74 subs r3, #116 @ 0x74
  5503. 8002906: f8d7 20cc ldr.w r2, [r7, #204] @ 0xcc
  5504. 800290a: 601a str r2, [r3, #0]
  5505. pvT1CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp1] * deltaADC * 45.33333333 - 63;
  5506. 800290c: 89bb ldrh r3, [r7, #12]
  5507. 800290e: ee07 3a90 vmov s15, r3
  5508. 8002912: eeb8 7be7 vcvt.f64.s32 d7, s15
  5509. 8002916: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5510. 800291a: ee27 6b06 vmul.f64 d6, d7, d6
  5511. 800291e: ed9f 5b80 vldr d5, [pc, #512] @ 8002b20 <ADC3MeasTask+0x340>
  5512. 8002922: ee86 7b05 vdiv.f64 d7, d6, d5
  5513. 8002926: ed9f 6b82 vldr d6, [pc, #520] @ 8002b30 <ADC3MeasTask+0x350>
  5514. 800292a: ee27 7b06 vmul.f64 d7, d7, d6
  5515. 800292e: ed9f 6b82 vldr d6, [pc, #520] @ 8002b38 <ADC3MeasTask+0x358>
  5516. 8002932: ee37 7b46 vsub.f64 d7, d7, d6
  5517. 8002936: eef7 7bc7 vcvt.f32.f64 s15, d7
  5518. 800293a: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5519. 800293e: 009b lsls r3, r3, #2
  5520. 8002940: 33f0 adds r3, #240 @ 0xf0
  5521. 8002942: 443b add r3, r7
  5522. 8002944: 3b9c subs r3, #156 @ 0x9c
  5523. 8002946: edc3 7a00 vstr s15, [r3]
  5524. pvT2CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp2] * deltaADC * 45.33333333 - 63;
  5525. 800294a: 89fb ldrh r3, [r7, #14]
  5526. 800294c: ee07 3a90 vmov s15, r3
  5527. 8002950: eeb8 7be7 vcvt.f64.s32 d7, s15
  5528. 8002954: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5529. 8002958: ee27 6b06 vmul.f64 d6, d7, d6
  5530. 800295c: ed9f 5b70 vldr d5, [pc, #448] @ 8002b20 <ADC3MeasTask+0x340>
  5531. 8002960: ee86 7b05 vdiv.f64 d7, d6, d5
  5532. 8002964: ed9f 6b72 vldr d6, [pc, #456] @ 8002b30 <ADC3MeasTask+0x350>
  5533. 8002968: ee27 7b06 vmul.f64 d7, d7, d6
  5534. 800296c: ed9f 6b72 vldr d6, [pc, #456] @ 8002b38 <ADC3MeasTask+0x358>
  5535. 8002970: ee37 7b46 vsub.f64 d7, d7, d6
  5536. 8002974: eef7 7bc7 vcvt.f32.f64 s15, d7
  5537. 8002978: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5538. 800297c: 009b lsls r3, r3, #2
  5539. 800297e: 33f0 adds r3, #240 @ 0xf0
  5540. 8002980: 443b add r3, r7
  5541. 8002982: 3bc4 subs r3, #196 @ 0xc4
  5542. 8002984: edc3 7a00 vstr s15, [r3]
  5543. float motorXAveCurrent = 0;
  5544. 8002988: f04f 0300 mov.w r3, #0
  5545. 800298c: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  5546. float motorYAveCurrent = 0;
  5547. 8002990: f04f 0300 mov.w r3, #0
  5548. 8002994: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  5549. float pvT1AveTemp = 0;
  5550. 8002998: f04f 0300 mov.w r3, #0
  5551. 800299c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  5552. float pvT2AveTemp = 0;
  5553. 80029a0: f04f 0300 mov.w r3, #0
  5554. 80029a4: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  5555. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5556. 80029a8: 2300 movs r3, #0
  5557. 80029aa: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5558. 80029ae: e03c b.n 8002a2a <ADC3MeasTask+0x24a>
  5559. motorXAveCurrent += motorXSensCircBuffer[i];
  5560. 80029b0: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5561. 80029b4: 009b lsls r3, r3, #2
  5562. 80029b6: 33f0 adds r3, #240 @ 0xf0
  5563. 80029b8: 443b add r3, r7
  5564. 80029ba: 3b4c subs r3, #76 @ 0x4c
  5565. 80029bc: edd3 7a00 vldr s15, [r3]
  5566. 80029c0: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5567. 80029c4: ee77 7a27 vadd.f32 s15, s14, s15
  5568. 80029c8: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5569. motorYAveCurrent += motorYSensCircBuffer[i];
  5570. 80029cc: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5571. 80029d0: 009b lsls r3, r3, #2
  5572. 80029d2: 33f0 adds r3, #240 @ 0xf0
  5573. 80029d4: 443b add r3, r7
  5574. 80029d6: 3b74 subs r3, #116 @ 0x74
  5575. 80029d8: edd3 7a00 vldr s15, [r3]
  5576. 80029dc: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5577. 80029e0: ee77 7a27 vadd.f32 s15, s14, s15
  5578. 80029e4: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5579. #ifdef PV_BOARD
  5580. pvT1AveTemp += pvT1CircBuffer[i];
  5581. 80029e8: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5582. 80029ec: 009b lsls r3, r3, #2
  5583. 80029ee: 33f0 adds r3, #240 @ 0xf0
  5584. 80029f0: 443b add r3, r7
  5585. 80029f2: 3b9c subs r3, #156 @ 0x9c
  5586. 80029f4: edd3 7a00 vldr s15, [r3]
  5587. 80029f8: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5588. 80029fc: ee77 7a27 vadd.f32 s15, s14, s15
  5589. 8002a00: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5590. pvT2AveTemp += pvT2CircBuffer[i];
  5591. 8002a04: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5592. 8002a08: 009b lsls r3, r3, #2
  5593. 8002a0a: 33f0 adds r3, #240 @ 0xf0
  5594. 8002a0c: 443b add r3, r7
  5595. 8002a0e: 3bc4 subs r3, #196 @ 0xc4
  5596. 8002a10: edd3 7a00 vldr s15, [r3]
  5597. 8002a14: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5598. 8002a18: ee77 7a27 vadd.f32 s15, s14, s15
  5599. 8002a1c: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5600. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5601. 8002a20: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5602. 8002a24: 3301 adds r3, #1
  5603. 8002a26: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5604. 8002a2a: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5605. 8002a2e: 2b09 cmp r3, #9
  5606. 8002a30: d9be bls.n 80029b0 <ADC3MeasTask+0x1d0>
  5607. #endif
  5608. }
  5609. motorXAveCurrent /= CIRC_BUFF_LEN;
  5610. 8002a32: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5611. 8002a36: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5612. 8002a3a: eec7 7a26 vdiv.f32 s15, s14, s13
  5613. 8002a3e: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5614. motorYAveCurrent /= CIRC_BUFF_LEN;
  5615. 8002a42: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5616. 8002a46: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5617. 8002a4a: eec7 7a26 vdiv.f32 s15, s14, s13
  5618. 8002a4e: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5619. pvT1AveTemp /= CIRC_BUFF_LEN;
  5620. 8002a52: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5621. 8002a56: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5622. 8002a5a: eec7 7a26 vdiv.f32 s15, s14, s13
  5623. 8002a5e: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5624. pvT2AveTemp /= CIRC_BUFF_LEN;
  5625. 8002a62: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5626. 8002a66: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5627. 8002a6a: eec7 7a26 vdiv.f32 s15, s14, s13
  5628. 8002a6e: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5629. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5630. 8002a72: 4b37 ldr r3, [pc, #220] @ (8002b50 <ADC3MeasTask+0x370>)
  5631. 8002a74: 681b ldr r3, [r3, #0]
  5632. 8002a76: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5633. 8002a7a: 4618 mov r0, r3
  5634. 8002a7c: f011 f94f bl 8013d1e <osMutexAcquire>
  5635. 8002a80: 4603 mov r3, r0
  5636. 8002a82: 2b00 cmp r3, #0
  5637. 8002a84: d138 bne.n 8002af8 <ADC3MeasTask+0x318>
  5638. if (sensorsInfo.motorXStatus == 1) {
  5639. 8002a86: 4b33 ldr r3, [pc, #204] @ (8002b54 <ADC3MeasTask+0x374>)
  5640. 8002a88: 7d1b ldrb r3, [r3, #20]
  5641. 8002a8a: 2b01 cmp r3, #1
  5642. 8002a8c: d111 bne.n 8002ab2 <ADC3MeasTask+0x2d2>
  5643. sensorsInfo.motorXAveCurrent = motorXAveCurrent;
  5644. 8002a8e: 4a31 ldr r2, [pc, #196] @ (8002b54 <ADC3MeasTask+0x374>)
  5645. 8002a90: f8d7 30e8 ldr.w r3, [r7, #232] @ 0xe8
  5646. 8002a94: 6193 str r3, [r2, #24]
  5647. if (sensorsInfo.motorXPeakCurrent < motorXCurrentSense) {
  5648. 8002a96: 4b2f ldr r3, [pc, #188] @ (8002b54 <ADC3MeasTask+0x374>)
  5649. 8002a98: edd3 7a08 vldr s15, [r3, #32]
  5650. 8002a9c: ed97 7a34 vldr s14, [r7, #208] @ 0xd0
  5651. 8002aa0: eeb4 7ae7 vcmpe.f32 s14, s15
  5652. 8002aa4: eef1 fa10 vmrs APSR_nzcv, fpscr
  5653. 8002aa8: dd03 ble.n 8002ab2 <ADC3MeasTask+0x2d2>
  5654. sensorsInfo.motorXPeakCurrent = motorXCurrentSense;
  5655. 8002aaa: 4a2a ldr r2, [pc, #168] @ (8002b54 <ADC3MeasTask+0x374>)
  5656. 8002aac: f8d7 30d0 ldr.w r3, [r7, #208] @ 0xd0
  5657. 8002ab0: 6213 str r3, [r2, #32]
  5658. }
  5659. }
  5660. if (sensorsInfo.motorYStatus == 1) {
  5661. 8002ab2: 4b28 ldr r3, [pc, #160] @ (8002b54 <ADC3MeasTask+0x374>)
  5662. 8002ab4: 7d5b ldrb r3, [r3, #21]
  5663. 8002ab6: 2b01 cmp r3, #1
  5664. 8002ab8: d111 bne.n 8002ade <ADC3MeasTask+0x2fe>
  5665. sensorsInfo.motorYAveCurrent = motorYAveCurrent;
  5666. 8002aba: 4a26 ldr r2, [pc, #152] @ (8002b54 <ADC3MeasTask+0x374>)
  5667. 8002abc: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  5668. 8002ac0: 61d3 str r3, [r2, #28]
  5669. if (sensorsInfo.motorYPeakCurrent < motorYCurrentSense) {
  5670. 8002ac2: 4b24 ldr r3, [pc, #144] @ (8002b54 <ADC3MeasTask+0x374>)
  5671. 8002ac4: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5672. 8002ac8: ed97 7a33 vldr s14, [r7, #204] @ 0xcc
  5673. 8002acc: eeb4 7ae7 vcmpe.f32 s14, s15
  5674. 8002ad0: eef1 fa10 vmrs APSR_nzcv, fpscr
  5675. 8002ad4: dd03 ble.n 8002ade <ADC3MeasTask+0x2fe>
  5676. sensorsInfo.motorYPeakCurrent = motorYCurrentSense;
  5677. 8002ad6: 4a1f ldr r2, [pc, #124] @ (8002b54 <ADC3MeasTask+0x374>)
  5678. 8002ad8: f8d7 30cc ldr.w r3, [r7, #204] @ 0xcc
  5679. 8002adc: 6253 str r3, [r2, #36] @ 0x24
  5680. }
  5681. }
  5682. sensorsInfo.pvTemperature[0] = pvT1AveTemp;
  5683. 8002ade: 4a1d ldr r2, [pc, #116] @ (8002b54 <ADC3MeasTask+0x374>)
  5684. 8002ae0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  5685. 8002ae4: 6013 str r3, [r2, #0]
  5686. sensorsInfo.pvTemperature[1] = pvT2AveTemp;
  5687. 8002ae6: 4a1b ldr r2, [pc, #108] @ (8002b54 <ADC3MeasTask+0x374>)
  5688. 8002ae8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  5689. 8002aec: 6053 str r3, [r2, #4]
  5690. osMutexRelease (sensorsInfoMutex);
  5691. 8002aee: 4b18 ldr r3, [pc, #96] @ (8002b50 <ADC3MeasTask+0x370>)
  5692. 8002af0: 681b ldr r3, [r3, #0]
  5693. 8002af2: 4618 mov r0, r3
  5694. 8002af4: f011 f95e bl 8013db4 <osMutexRelease>
  5695. }
  5696. ++circBuffPos;
  5697. 8002af8: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5698. 8002afc: 3301 adds r3, #1
  5699. 8002afe: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5700. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5701. 8002b02: f8d7 20ec ldr.w r2, [r7, #236] @ 0xec
  5702. 8002b06: 4b14 ldr r3, [pc, #80] @ (8002b58 <ADC3MeasTask+0x378>)
  5703. 8002b08: fba3 1302 umull r1, r3, r3, r2
  5704. 8002b0c: 08d9 lsrs r1, r3, #3
  5705. 8002b0e: 460b mov r3, r1
  5706. 8002b10: 009b lsls r3, r3, #2
  5707. 8002b12: 440b add r3, r1
  5708. 8002b14: 005b lsls r3, r3, #1
  5709. 8002b16: 1ad3 subs r3, r2, r3
  5710. 8002b18: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5711. while (pdTRUE) {
  5712. 8002b1c: e68a b.n 8002834 <ADC3MeasTask+0x54>
  5713. 8002b1e: bf00 nop
  5714. 8002b20: 00000000 .word 0x00000000
  5715. 8002b24: 40efffe0 .word 0x40efffe0
  5716. 8002b28: 3ad18d26 .word 0x3ad18d26
  5717. 8002b2c: 4020aaaa .word 0x4020aaaa
  5718. 8002b30: aaa38226 .word 0xaaa38226
  5719. 8002b34: 4046aaaa .word 0x4046aaaa
  5720. 8002b38: 00000000 .word 0x00000000
  5721. 8002b3c: 404f8000 .word 0x404f8000
  5722. 8002b40: 24000828 .word 0x24000828
  5723. 8002b44: 1ff1e860 .word 0x1ff1e860
  5724. 8002b48: 24000834 .word 0x24000834
  5725. 8002b4c: 24000030 .word 0x24000030
  5726. 8002b50: 2400083c .word 0x2400083c
  5727. 8002b54: 24000880 .word 0x24000880
  5728. 8002b58: cccccccd .word 0xcccccccd
  5729. 08002b5c <LimiterSwitchTask>:
  5730. }
  5731. }
  5732. void LimiterSwitchTask (void* arg) {
  5733. 8002b5c: b580 push {r7, lr}
  5734. 8002b5e: b08a sub sp, #40 @ 0x28
  5735. 8002b60: af06 add r7, sp, #24
  5736. 8002b62: 6078 str r0, [r7, #4]
  5737. LimiterSwitchData limiterSwitchData = { 0 };
  5738. 8002b64: 2300 movs r3, #0
  5739. 8002b66: 60bb str r3, [r7, #8]
  5740. limiterSwitchData.gpioPin = GPIO_PIN_8;
  5741. 8002b68: f44f 7380 mov.w r3, #256 @ 0x100
  5742. 8002b6c: 813b strh r3, [r7, #8]
  5743. for (uint8_t i = 0; i < 6; i++) {
  5744. 8002b6e: 2300 movs r3, #0
  5745. 8002b70: 73fb strb r3, [r7, #15]
  5746. 8002b72: e015 b.n 8002ba0 <LimiterSwitchTask+0x44>
  5747. limiterSwitchData.pinState = HAL_GPIO_ReadPin (GPIOD, limiterSwitchData.gpioPin);
  5748. 8002b74: 893b ldrh r3, [r7, #8]
  5749. 8002b76: 4619 mov r1, r3
  5750. 8002b78: 486c ldr r0, [pc, #432] @ (8002d2c <LimiterSwitchTask+0x1d0>)
  5751. 8002b7a: f008 f87d bl 800ac78 <HAL_GPIO_ReadPin>
  5752. 8002b7e: 4603 mov r3, r0
  5753. 8002b80: 72bb strb r3, [r7, #10]
  5754. osMessageQueuePut (limiterSwitchDataQueue, &limiterSwitchData, 0, 0);
  5755. 8002b82: 4b6b ldr r3, [pc, #428] @ (8002d30 <LimiterSwitchTask+0x1d4>)
  5756. 8002b84: 6818 ldr r0, [r3, #0]
  5757. 8002b86: f107 0108 add.w r1, r7, #8
  5758. 8002b8a: 2300 movs r3, #0
  5759. 8002b8c: 2200 movs r2, #0
  5760. 8002b8e: f011 f9c1 bl 8013f14 <osMessageQueuePut>
  5761. limiterSwitchData.gpioPin = limiterSwitchData.gpioPin << 1;
  5762. 8002b92: 893b ldrh r3, [r7, #8]
  5763. 8002b94: 005b lsls r3, r3, #1
  5764. 8002b96: b29b uxth r3, r3
  5765. 8002b98: 813b strh r3, [r7, #8]
  5766. for (uint8_t i = 0; i < 6; i++) {
  5767. 8002b9a: 7bfb ldrb r3, [r7, #15]
  5768. 8002b9c: 3301 adds r3, #1
  5769. 8002b9e: 73fb strb r3, [r7, #15]
  5770. 8002ba0: 7bfb ldrb r3, [r7, #15]
  5771. 8002ba2: 2b05 cmp r3, #5
  5772. 8002ba4: d9e6 bls.n 8002b74 <LimiterSwitchTask+0x18>
  5773. }
  5774. while (pdTRUE) {
  5775. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  5776. 8002ba6: 4b62 ldr r3, [pc, #392] @ (8002d30 <LimiterSwitchTask+0x1d4>)
  5777. 8002ba8: 6818 ldr r0, [r3, #0]
  5778. 8002baa: f107 0108 add.w r1, r7, #8
  5779. 8002bae: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5780. 8002bb2: 2200 movs r2, #0
  5781. 8002bb4: f011 fa0e bl 8013fd4 <osMessageQueueGet>
  5782. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5783. 8002bb8: 4b5e ldr r3, [pc, #376] @ (8002d34 <LimiterSwitchTask+0x1d8>)
  5784. 8002bba: 681b ldr r3, [r3, #0]
  5785. 8002bbc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5786. 8002bc0: 4618 mov r0, r3
  5787. 8002bc2: f011 f8ac bl 8013d1e <osMutexAcquire>
  5788. 8002bc6: 4603 mov r3, r0
  5789. 8002bc8: 2b00 cmp r3, #0
  5790. 8002bca: d1ec bne.n 8002ba6 <LimiterSwitchTask+0x4a>
  5791. switch (limiterSwitchData.gpioPin) {
  5792. 8002bcc: 893b ldrh r3, [r7, #8]
  5793. 8002bce: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5794. 8002bd2: d052 beq.n 8002c7a <LimiterSwitchTask+0x11e>
  5795. 8002bd4: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5796. 8002bd8: dc5a bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5797. 8002bda: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5798. 8002bde: d041 beq.n 8002c64 <LimiterSwitchTask+0x108>
  5799. 8002be0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5800. 8002be4: dc54 bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5801. 8002be6: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5802. 8002bea: d030 beq.n 8002c4e <LimiterSwitchTask+0xf2>
  5803. 8002bec: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5804. 8002bf0: dc4e bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5805. 8002bf2: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5806. 8002bf6: d01f beq.n 8002c38 <LimiterSwitchTask+0xdc>
  5807. 8002bf8: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5808. 8002bfc: dc48 bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5809. 8002bfe: f5b3 7f80 cmp.w r3, #256 @ 0x100
  5810. 8002c02: d003 beq.n 8002c0c <LimiterSwitchTask+0xb0>
  5811. 8002c04: f5b3 7f00 cmp.w r3, #512 @ 0x200
  5812. 8002c08: d00b beq.n 8002c22 <LimiterSwitchTask+0xc6>
  5813. case GPIO_PIN_9: sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5814. case GPIO_PIN_10: sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5815. case GPIO_PIN_11: sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5816. case GPIO_PIN_12: sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5817. case GPIO_PIN_13: sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5818. default: break;
  5819. 8002c0a: e041 b.n 8002c90 <LimiterSwitchTask+0x134>
  5820. case GPIO_PIN_8: sensorsInfo.limitYSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5821. 8002c0c: 7abb ldrb r3, [r7, #10]
  5822. 8002c0e: 2b01 cmp r3, #1
  5823. 8002c10: bf0c ite eq
  5824. 8002c12: 2301 moveq r3, #1
  5825. 8002c14: 2300 movne r3, #0
  5826. 8002c16: b2db uxtb r3, r3
  5827. 8002c18: 461a mov r2, r3
  5828. 8002c1a: 4b47 ldr r3, [pc, #284] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5829. 8002c1c: f883 202d strb.w r2, [r3, #45] @ 0x2d
  5830. 8002c20: e037 b.n 8002c92 <LimiterSwitchTask+0x136>
  5831. case GPIO_PIN_9: sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5832. 8002c22: 7abb ldrb r3, [r7, #10]
  5833. 8002c24: 2b01 cmp r3, #1
  5834. 8002c26: bf0c ite eq
  5835. 8002c28: 2301 moveq r3, #1
  5836. 8002c2a: 2300 movne r3, #0
  5837. 8002c2c: b2db uxtb r3, r3
  5838. 8002c2e: 461a mov r2, r3
  5839. 8002c30: 4b41 ldr r3, [pc, #260] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5840. 8002c32: f883 202c strb.w r2, [r3, #44] @ 0x2c
  5841. 8002c36: e02c b.n 8002c92 <LimiterSwitchTask+0x136>
  5842. case GPIO_PIN_10: sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5843. 8002c38: 7abb ldrb r3, [r7, #10]
  5844. 8002c3a: 2b01 cmp r3, #1
  5845. 8002c3c: bf0c ite eq
  5846. 8002c3e: 2301 moveq r3, #1
  5847. 8002c40: 2300 movne r3, #0
  5848. 8002c42: b2db uxtb r3, r3
  5849. 8002c44: 461a mov r2, r3
  5850. 8002c46: 4b3c ldr r3, [pc, #240] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5851. 8002c48: f883 202a strb.w r2, [r3, #42] @ 0x2a
  5852. 8002c4c: e021 b.n 8002c92 <LimiterSwitchTask+0x136>
  5853. case GPIO_PIN_11: sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5854. 8002c4e: 7abb ldrb r3, [r7, #10]
  5855. 8002c50: 2b01 cmp r3, #1
  5856. 8002c52: bf0c ite eq
  5857. 8002c54: 2301 moveq r3, #1
  5858. 8002c56: 2300 movne r3, #0
  5859. 8002c58: b2db uxtb r3, r3
  5860. 8002c5a: 461a mov r2, r3
  5861. 8002c5c: 4b36 ldr r3, [pc, #216] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5862. 8002c5e: f883 202b strb.w r2, [r3, #43] @ 0x2b
  5863. 8002c62: e016 b.n 8002c92 <LimiterSwitchTask+0x136>
  5864. case GPIO_PIN_12: sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5865. 8002c64: 7abb ldrb r3, [r7, #10]
  5866. 8002c66: 2b01 cmp r3, #1
  5867. 8002c68: bf0c ite eq
  5868. 8002c6a: 2301 moveq r3, #1
  5869. 8002c6c: 2300 movne r3, #0
  5870. 8002c6e: b2db uxtb r3, r3
  5871. 8002c70: 461a mov r2, r3
  5872. 8002c72: 4b31 ldr r3, [pc, #196] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5873. 8002c74: f883 2028 strb.w r2, [r3, #40] @ 0x28
  5874. 8002c78: e00b b.n 8002c92 <LimiterSwitchTask+0x136>
  5875. case GPIO_PIN_13: sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0; break;
  5876. 8002c7a: 7abb ldrb r3, [r7, #10]
  5877. 8002c7c: 2b01 cmp r3, #1
  5878. 8002c7e: bf0c ite eq
  5879. 8002c80: 2301 moveq r3, #1
  5880. 8002c82: 2300 movne r3, #0
  5881. 8002c84: b2db uxtb r3, r3
  5882. 8002c86: 461a mov r2, r3
  5883. 8002c88: 4b2b ldr r3, [pc, #172] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5884. 8002c8a: f883 2029 strb.w r2, [r3, #41] @ 0x29
  5885. 8002c8e: e000 b.n 8002c92 <LimiterSwitchTask+0x136>
  5886. default: break;
  5887. 8002c90: bf00 nop
  5888. }
  5889. if ((sensorsInfo.limitXSwitchDown == 1) || (sensorsInfo.limitXSwitchUp == 1)) {
  5890. 8002c92: 4b29 ldr r3, [pc, #164] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5891. 8002c94: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5892. 8002c98: 2b01 cmp r3, #1
  5893. 8002c9a: d004 beq.n 8002ca6 <LimiterSwitchTask+0x14a>
  5894. 8002c9c: 4b26 ldr r3, [pc, #152] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5895. 8002c9e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5896. 8002ca2: 2b01 cmp r3, #1
  5897. 8002ca4: d118 bne.n 8002cd8 <LimiterSwitchTask+0x17c>
  5898. sensorsInfo.motorXStatus = motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, 0, 0, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  5899. 8002ca6: 4b25 ldr r3, [pc, #148] @ (8002d3c <LimiterSwitchTask+0x1e0>)
  5900. 8002ca8: 681b ldr r3, [r3, #0]
  5901. 8002caa: 4a23 ldr r2, [pc, #140] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5902. 8002cac: f892 2028 ldrb.w r2, [r2, #40] @ 0x28
  5903. 8002cb0: 4921 ldr r1, [pc, #132] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5904. 8002cb2: f891 1029 ldrb.w r1, [r1, #41] @ 0x29
  5905. 8002cb6: 9104 str r1, [sp, #16]
  5906. 8002cb8: 9203 str r2, [sp, #12]
  5907. 8002cba: 2200 movs r2, #0
  5908. 8002cbc: 9202 str r2, [sp, #8]
  5909. 8002cbe: 2200 movs r2, #0
  5910. 8002cc0: 9201 str r2, [sp, #4]
  5911. 8002cc2: 9300 str r3, [sp, #0]
  5912. 8002cc4: 2304 movs r3, #4
  5913. 8002cc6: 2200 movs r2, #0
  5914. 8002cc8: 491d ldr r1, [pc, #116] @ (8002d40 <LimiterSwitchTask+0x1e4>)
  5915. 8002cca: 481e ldr r0, [pc, #120] @ (8002d44 <LimiterSwitchTask+0x1e8>)
  5916. 8002ccc: f000 f92a bl 8002f24 <motorControl>
  5917. 8002cd0: 4603 mov r3, r0
  5918. 8002cd2: 461a mov r2, r3
  5919. 8002cd4: 4b18 ldr r3, [pc, #96] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5920. 8002cd6: 751a strb r2, [r3, #20]
  5921. }
  5922. if ((sensorsInfo.limitYSwitchDown == 1) || (sensorsInfo.limitYSwitchUp == 1)) {
  5923. 8002cd8: 4b17 ldr r3, [pc, #92] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5924. 8002cda: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5925. 8002cde: 2b01 cmp r3, #1
  5926. 8002ce0: d004 beq.n 8002cec <LimiterSwitchTask+0x190>
  5927. 8002ce2: 4b15 ldr r3, [pc, #84] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5928. 8002ce4: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5929. 8002ce8: 2b01 cmp r3, #1
  5930. 8002cea: d118 bne.n 8002d1e <LimiterSwitchTask+0x1c2>
  5931. sensorsInfo.motorYStatus = motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, 0, 0, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  5932. 8002cec: 4b16 ldr r3, [pc, #88] @ (8002d48 <LimiterSwitchTask+0x1ec>)
  5933. 8002cee: 681b ldr r3, [r3, #0]
  5934. 8002cf0: 4a11 ldr r2, [pc, #68] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5935. 8002cf2: f892 202b ldrb.w r2, [r2, #43] @ 0x2b
  5936. 8002cf6: 4910 ldr r1, [pc, #64] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5937. 8002cf8: f891 102c ldrb.w r1, [r1, #44] @ 0x2c
  5938. 8002cfc: 9104 str r1, [sp, #16]
  5939. 8002cfe: 9203 str r2, [sp, #12]
  5940. 8002d00: 2200 movs r2, #0
  5941. 8002d02: 9202 str r2, [sp, #8]
  5942. 8002d04: 2200 movs r2, #0
  5943. 8002d06: 9201 str r2, [sp, #4]
  5944. 8002d08: 9300 str r3, [sp, #0]
  5945. 8002d0a: 230c movs r3, #12
  5946. 8002d0c: 2208 movs r2, #8
  5947. 8002d0e: 490c ldr r1, [pc, #48] @ (8002d40 <LimiterSwitchTask+0x1e4>)
  5948. 8002d10: 480c ldr r0, [pc, #48] @ (8002d44 <LimiterSwitchTask+0x1e8>)
  5949. 8002d12: f000 f907 bl 8002f24 <motorControl>
  5950. 8002d16: 4603 mov r3, r0
  5951. 8002d18: 461a mov r2, r3
  5952. 8002d1a: 4b07 ldr r3, [pc, #28] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5953. 8002d1c: 755a strb r2, [r3, #21]
  5954. }
  5955. osMutexRelease (sensorsInfoMutex);
  5956. 8002d1e: 4b05 ldr r3, [pc, #20] @ (8002d34 <LimiterSwitchTask+0x1d8>)
  5957. 8002d20: 681b ldr r3, [r3, #0]
  5958. 8002d22: 4618 mov r0, r3
  5959. 8002d24: f011 f846 bl 8013db4 <osMutexRelease>
  5960. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  5961. 8002d28: e73d b.n 8002ba6 <LimiterSwitchTask+0x4a>
  5962. 8002d2a: bf00 nop
  5963. 8002d2c: 58020c00 .word 0x58020c00
  5964. 8002d30: 2400082c .word 0x2400082c
  5965. 8002d34: 2400083c .word 0x2400083c
  5966. 8002d38: 24000880 .word 0x24000880
  5967. 8002d3c: 24000764 .word 0x24000764
  5968. 8002d40: 240007e0 .word 0x240007e0
  5969. 8002d44: 240004f4 .word 0x240004f4
  5970. 8002d48: 24000794 .word 0x24000794
  5971. 08002d4c <EncoderTask>:
  5972. }
  5973. }
  5974. }
  5975. void EncoderTask (void* arg) {
  5976. 8002d4c: b580 push {r7, lr}
  5977. 8002d4e: b084 sub sp, #16
  5978. 8002d50: af00 add r7, sp, #0
  5979. 8002d52: 6078 str r0, [r7, #4]
  5980. EncoderData encoderData = { 0 };
  5981. 8002d54: 2300 movs r3, #0
  5982. 8002d56: 813b strh r3, [r7, #8]
  5983. osMessageQueueId_t encoderQueue = (osMessageQueueId_t)arg;
  5984. 8002d58: 687b ldr r3, [r7, #4]
  5985. 8002d5a: 60fb str r3, [r7, #12]
  5986. while (pdTRUE) {
  5987. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  5988. 8002d5c: f107 0108 add.w r1, r7, #8
  5989. 8002d60: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5990. 8002d64: 2200 movs r2, #0
  5991. 8002d66: 68f8 ldr r0, [r7, #12]
  5992. 8002d68: f011 f934 bl 8013fd4 <osMessageQueueGet>
  5993. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5994. 8002d6c: 4b24 ldr r3, [pc, #144] @ (8002e00 <EncoderTask+0xb4>)
  5995. 8002d6e: 681b ldr r3, [r3, #0]
  5996. 8002d70: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5997. 8002d74: 4618 mov r0, r3
  5998. 8002d76: f010 ffd2 bl 8013d1e <osMutexAcquire>
  5999. 8002d7a: 4603 mov r3, r0
  6000. 8002d7c: 2b00 cmp r3, #0
  6001. 8002d7e: d1ed bne.n 8002d5c <EncoderTask+0x10>
  6002. if (encoderData.axe == encoderAxeX) {
  6003. 8002d80: 7a3b ldrb r3, [r7, #8]
  6004. 8002d82: 2b00 cmp r3, #0
  6005. 8002d84: d11b bne.n 8002dbe <EncoderTask+0x72>
  6006. if (encoderData.direction == encoderCW) {
  6007. 8002d86: 7a7b ldrb r3, [r7, #9]
  6008. 8002d88: 2b00 cmp r3, #0
  6009. 8002d8a: d10a bne.n 8002da2 <EncoderTask+0x56>
  6010. sensorsInfo.pvEncoderX += 360.0 / ENCODER_X_IMP_PER_TURN;
  6011. 8002d8c: 4b1d ldr r3, [pc, #116] @ (8002e04 <EncoderTask+0xb8>)
  6012. 8002d8e: edd3 7a03 vldr s15, [r3, #12]
  6013. 8002d92: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6014. 8002d96: ee77 7a87 vadd.f32 s15, s15, s14
  6015. 8002d9a: 4b1a ldr r3, [pc, #104] @ (8002e04 <EncoderTask+0xb8>)
  6016. 8002d9c: edc3 7a03 vstr s15, [r3, #12]
  6017. 8002da0: e009 b.n 8002db6 <EncoderTask+0x6a>
  6018. } else {
  6019. sensorsInfo.pvEncoderX -= 360.0 / ENCODER_X_IMP_PER_TURN;
  6020. 8002da2: 4b18 ldr r3, [pc, #96] @ (8002e04 <EncoderTask+0xb8>)
  6021. 8002da4: edd3 7a03 vldr s15, [r3, #12]
  6022. 8002da8: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6023. 8002dac: ee77 7ac7 vsub.f32 s15, s15, s14
  6024. 8002db0: 4b14 ldr r3, [pc, #80] @ (8002e04 <EncoderTask+0xb8>)
  6025. 8002db2: edc3 7a03 vstr s15, [r3, #12]
  6026. }
  6027. DbgLEDToggle(DBG_LED2);
  6028. 8002db6: 2020 movs r0, #32
  6029. 8002db8: f000 f84a bl 8002e50 <DbgLEDToggle>
  6030. 8002dbc: e01a b.n 8002df4 <EncoderTask+0xa8>
  6031. } else {
  6032. if (encoderData.direction == encoderCW) {
  6033. 8002dbe: 7a7b ldrb r3, [r7, #9]
  6034. 8002dc0: 2b00 cmp r3, #0
  6035. 8002dc2: d10a bne.n 8002dda <EncoderTask+0x8e>
  6036. sensorsInfo.pvEncoderY += 360.0 / ENCODER_Y_IMP_PER_TURN;
  6037. 8002dc4: 4b0f ldr r3, [pc, #60] @ (8002e04 <EncoderTask+0xb8>)
  6038. 8002dc6: edd3 7a04 vldr s15, [r3, #16]
  6039. 8002dca: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6040. 8002dce: ee77 7a87 vadd.f32 s15, s15, s14
  6041. 8002dd2: 4b0c ldr r3, [pc, #48] @ (8002e04 <EncoderTask+0xb8>)
  6042. 8002dd4: edc3 7a04 vstr s15, [r3, #16]
  6043. 8002dd8: e009 b.n 8002dee <EncoderTask+0xa2>
  6044. } else {
  6045. sensorsInfo.pvEncoderY -= 360.0 / ENCODER_Y_IMP_PER_TURN;
  6046. 8002dda: 4b0a ldr r3, [pc, #40] @ (8002e04 <EncoderTask+0xb8>)
  6047. 8002ddc: edd3 7a04 vldr s15, [r3, #16]
  6048. 8002de0: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6049. 8002de4: ee77 7ac7 vsub.f32 s15, s15, s14
  6050. 8002de8: 4b06 ldr r3, [pc, #24] @ (8002e04 <EncoderTask+0xb8>)
  6051. 8002dea: edc3 7a04 vstr s15, [r3, #16]
  6052. }
  6053. DbgLEDToggle(DBG_LED3);
  6054. 8002dee: 2040 movs r0, #64 @ 0x40
  6055. 8002df0: f000 f82e bl 8002e50 <DbgLEDToggle>
  6056. }
  6057. osMutexRelease (sensorsInfoMutex);
  6058. 8002df4: 4b02 ldr r3, [pc, #8] @ (8002e00 <EncoderTask+0xb4>)
  6059. 8002df6: 681b ldr r3, [r3, #0]
  6060. 8002df8: 4618 mov r0, r3
  6061. 8002dfa: f010 ffdb bl 8013db4 <osMutexRelease>
  6062. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  6063. 8002dfe: e7ad b.n 8002d5c <EncoderTask+0x10>
  6064. 8002e00: 2400083c .word 0x2400083c
  6065. 8002e04: 24000880 .word 0x24000880
  6066. 08002e08 <DbgLEDOn>:
  6067. #include <stdlib.h>
  6068. #include "peripherial.h"
  6069. void DbgLEDOn (uint8_t ledNumber) {
  6070. 8002e08: b580 push {r7, lr}
  6071. 8002e0a: b082 sub sp, #8
  6072. 8002e0c: af00 add r7, sp, #0
  6073. 8002e0e: 4603 mov r3, r0
  6074. 8002e10: 71fb strb r3, [r7, #7]
  6075. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_SET);
  6076. 8002e12: 79fb ldrb r3, [r7, #7]
  6077. 8002e14: b29b uxth r3, r3
  6078. 8002e16: 2201 movs r2, #1
  6079. 8002e18: 4619 mov r1, r3
  6080. 8002e1a: 4803 ldr r0, [pc, #12] @ (8002e28 <DbgLEDOn+0x20>)
  6081. 8002e1c: f007 ff44 bl 800aca8 <HAL_GPIO_WritePin>
  6082. }
  6083. 8002e20: bf00 nop
  6084. 8002e22: 3708 adds r7, #8
  6085. 8002e24: 46bd mov sp, r7
  6086. 8002e26: bd80 pop {r7, pc}
  6087. 8002e28: 58020c00 .word 0x58020c00
  6088. 08002e2c <DbgLEDOff>:
  6089. void DbgLEDOff (uint8_t ledNumber) {
  6090. 8002e2c: b580 push {r7, lr}
  6091. 8002e2e: b082 sub sp, #8
  6092. 8002e30: af00 add r7, sp, #0
  6093. 8002e32: 4603 mov r3, r0
  6094. 8002e34: 71fb strb r3, [r7, #7]
  6095. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_RESET);
  6096. 8002e36: 79fb ldrb r3, [r7, #7]
  6097. 8002e38: b29b uxth r3, r3
  6098. 8002e3a: 2200 movs r2, #0
  6099. 8002e3c: 4619 mov r1, r3
  6100. 8002e3e: 4803 ldr r0, [pc, #12] @ (8002e4c <DbgLEDOff+0x20>)
  6101. 8002e40: f007 ff32 bl 800aca8 <HAL_GPIO_WritePin>
  6102. }
  6103. 8002e44: bf00 nop
  6104. 8002e46: 3708 adds r7, #8
  6105. 8002e48: 46bd mov sp, r7
  6106. 8002e4a: bd80 pop {r7, pc}
  6107. 8002e4c: 58020c00 .word 0x58020c00
  6108. 08002e50 <DbgLEDToggle>:
  6109. void DbgLEDToggle (uint8_t ledNumber) {
  6110. 8002e50: b580 push {r7, lr}
  6111. 8002e52: b082 sub sp, #8
  6112. 8002e54: af00 add r7, sp, #0
  6113. 8002e56: 4603 mov r3, r0
  6114. 8002e58: 71fb strb r3, [r7, #7]
  6115. HAL_GPIO_TogglePin (GPIOD, ledNumber);
  6116. 8002e5a: 79fb ldrb r3, [r7, #7]
  6117. 8002e5c: b29b uxth r3, r3
  6118. 8002e5e: 4619 mov r1, r3
  6119. 8002e60: 4803 ldr r0, [pc, #12] @ (8002e70 <DbgLEDToggle+0x20>)
  6120. 8002e62: f007 ff3a bl 800acda <HAL_GPIO_TogglePin>
  6121. }
  6122. 8002e66: bf00 nop
  6123. 8002e68: 3708 adds r7, #8
  6124. 8002e6a: 46bd mov sp, r7
  6125. 8002e6c: bd80 pop {r7, pc}
  6126. 8002e6e: bf00 nop
  6127. 8002e70: 58020c00 .word 0x58020c00
  6128. 08002e74 <EnableCurrentSensors>:
  6129. void EnableCurrentSensors (void) {
  6130. 8002e74: b580 push {r7, lr}
  6131. 8002e76: af00 add r7, sp, #0
  6132. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_SET);
  6133. 8002e78: 2201 movs r2, #1
  6134. 8002e7a: f44f 4100 mov.w r1, #32768 @ 0x8000
  6135. 8002e7e: 4802 ldr r0, [pc, #8] @ (8002e88 <EnableCurrentSensors+0x14>)
  6136. 8002e80: f007 ff12 bl 800aca8 <HAL_GPIO_WritePin>
  6137. }
  6138. 8002e84: bf00 nop
  6139. 8002e86: bd80 pop {r7, pc}
  6140. 8002e88: 58021000 .word 0x58021000
  6141. 08002e8c <SelectCurrentSensorGain>:
  6142. void DisableCurrentSensors (void) {
  6143. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_RESET);
  6144. }
  6145. void SelectCurrentSensorGain (CurrentSensor sensor, CurrentSensorGain gain) {
  6146. 8002e8c: b580 push {r7, lr}
  6147. 8002e8e: b084 sub sp, #16
  6148. 8002e90: af00 add r7, sp, #0
  6149. 8002e92: 4603 mov r3, r0
  6150. 8002e94: 460a mov r2, r1
  6151. 8002e96: 71fb strb r3, [r7, #7]
  6152. 8002e98: 4613 mov r3, r2
  6153. 8002e9a: 71bb strb r3, [r7, #6]
  6154. uint8_t gpioOffset = 0;
  6155. 8002e9c: 2300 movs r3, #0
  6156. 8002e9e: 73fb strb r3, [r7, #15]
  6157. switch (sensor) {
  6158. 8002ea0: 79fb ldrb r3, [r7, #7]
  6159. 8002ea2: 2b02 cmp r3, #2
  6160. 8002ea4: d00c beq.n 8002ec0 <SelectCurrentSensorGain+0x34>
  6161. 8002ea6: 2b02 cmp r3, #2
  6162. 8002ea8: dc0d bgt.n 8002ec6 <SelectCurrentSensorGain+0x3a>
  6163. 8002eaa: 2b00 cmp r3, #0
  6164. 8002eac: d002 beq.n 8002eb4 <SelectCurrentSensorGain+0x28>
  6165. 8002eae: 2b01 cmp r3, #1
  6166. 8002eb0: d003 beq.n 8002eba <SelectCurrentSensorGain+0x2e>
  6167. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6168. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6169. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6170. default: break;
  6171. 8002eb2: e008 b.n 8002ec6 <SelectCurrentSensorGain+0x3a>
  6172. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6173. 8002eb4: 2307 movs r3, #7
  6174. 8002eb6: 73fb strb r3, [r7, #15]
  6175. 8002eb8: e006 b.n 8002ec8 <SelectCurrentSensorGain+0x3c>
  6176. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6177. 8002eba: 2309 movs r3, #9
  6178. 8002ebc: 73fb strb r3, [r7, #15]
  6179. 8002ebe: e003 b.n 8002ec8 <SelectCurrentSensorGain+0x3c>
  6180. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6181. 8002ec0: 230d movs r3, #13
  6182. 8002ec2: 73fb strb r3, [r7, #15]
  6183. 8002ec4: e000 b.n 8002ec8 <SelectCurrentSensorGain+0x3c>
  6184. default: break;
  6185. 8002ec6: bf00 nop
  6186. }
  6187. if (gpioOffset > 0) {
  6188. 8002ec8: 7bfb ldrb r3, [r7, #15]
  6189. 8002eca: 2b00 cmp r3, #0
  6190. 8002ecc: d023 beq.n 8002f16 <SelectCurrentSensorGain+0x8a>
  6191. uint16_t gain0Gpio = 1 << gpioOffset;
  6192. 8002ece: 7bfb ldrb r3, [r7, #15]
  6193. 8002ed0: 2201 movs r2, #1
  6194. 8002ed2: fa02 f303 lsl.w r3, r2, r3
  6195. 8002ed6: 81bb strh r3, [r7, #12]
  6196. uint16_t gain1Gpio = 1 << (gpioOffset + 1);
  6197. 8002ed8: 7bfb ldrb r3, [r7, #15]
  6198. 8002eda: 3301 adds r3, #1
  6199. 8002edc: 2201 movs r2, #1
  6200. 8002ede: fa02 f303 lsl.w r3, r2, r3
  6201. 8002ee2: 817b strh r3, [r7, #10]
  6202. uint16_t gpioState = ((uint16_t)gain) & 0x0001;
  6203. 8002ee4: 79bb ldrb r3, [r7, #6]
  6204. 8002ee6: b29b uxth r3, r3
  6205. 8002ee8: f003 0301 and.w r3, r3, #1
  6206. 8002eec: 813b strh r3, [r7, #8]
  6207. HAL_GPIO_WritePin (GPIOE, gain0Gpio, gpioState);
  6208. 8002eee: 893b ldrh r3, [r7, #8]
  6209. 8002ef0: b2da uxtb r2, r3
  6210. 8002ef2: 89bb ldrh r3, [r7, #12]
  6211. 8002ef4: 4619 mov r1, r3
  6212. 8002ef6: 480a ldr r0, [pc, #40] @ (8002f20 <SelectCurrentSensorGain+0x94>)
  6213. 8002ef8: f007 fed6 bl 800aca8 <HAL_GPIO_WritePin>
  6214. gpioState = (((uint16_t)gain) >> 1) & 0x0001;
  6215. 8002efc: 79bb ldrb r3, [r7, #6]
  6216. 8002efe: 085b lsrs r3, r3, #1
  6217. 8002f00: b2db uxtb r3, r3
  6218. 8002f02: f003 0301 and.w r3, r3, #1
  6219. 8002f06: 813b strh r3, [r7, #8]
  6220. HAL_GPIO_WritePin (GPIOE, gain1Gpio, gpioState);
  6221. 8002f08: 893b ldrh r3, [r7, #8]
  6222. 8002f0a: b2da uxtb r2, r3
  6223. 8002f0c: 897b ldrh r3, [r7, #10]
  6224. 8002f0e: 4619 mov r1, r3
  6225. 8002f10: 4803 ldr r0, [pc, #12] @ (8002f20 <SelectCurrentSensorGain+0x94>)
  6226. 8002f12: f007 fec9 bl 800aca8 <HAL_GPIO_WritePin>
  6227. }
  6228. }
  6229. 8002f16: bf00 nop
  6230. 8002f18: 3710 adds r7, #16
  6231. 8002f1a: 46bd mov sp, r7
  6232. 8002f1c: bd80 pop {r7, pc}
  6233. 8002f1e: bf00 nop
  6234. 8002f20: 58021000 .word 0x58021000
  6235. 08002f24 <motorControl>:
  6236. uint8_t
  6237. 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) {
  6238. 8002f24: b580 push {r7, lr}
  6239. 8002f26: b088 sub sp, #32
  6240. 8002f28: af02 add r7, sp, #8
  6241. 8002f2a: 60f8 str r0, [r7, #12]
  6242. 8002f2c: 60b9 str r1, [r7, #8]
  6243. 8002f2e: 4611 mov r1, r2
  6244. 8002f30: 461a mov r2, r3
  6245. 8002f32: 460b mov r3, r1
  6246. 8002f34: 71fb strb r3, [r7, #7]
  6247. 8002f36: 4613 mov r3, r2
  6248. 8002f38: 71bb strb r3, [r7, #6]
  6249. uint32_t motorStatus = 0;
  6250. 8002f3a: 2300 movs r3, #0
  6251. 8002f3c: 617b str r3, [r7, #20]
  6252. MotorDriverState setMotorYState = HiZ;
  6253. 8002f3e: 2300 movs r3, #0
  6254. 8002f40: 74fb strb r3, [r7, #19]
  6255. HAL_TIM_PWM_Stop (htim, channel1);
  6256. 8002f42: 79fb ldrb r3, [r7, #7]
  6257. 8002f44: 4619 mov r1, r3
  6258. 8002f46: 68f8 ldr r0, [r7, #12]
  6259. 8002f48: f00c f8b6 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6260. HAL_TIM_PWM_Stop (htim, channel2);
  6261. 8002f4c: 79bb ldrb r3, [r7, #6]
  6262. 8002f4e: 4619 mov r1, r3
  6263. 8002f50: 68f8 ldr r0, [r7, #12]
  6264. 8002f52: f00c f8b1 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6265. if (motorTimerPeriod > 0) {
  6266. 8002f56: 6abb ldr r3, [r7, #40] @ 0x28
  6267. 8002f58: 2b00 cmp r3, #0
  6268. 8002f5a: f340 808c ble.w 8003076 <motorControl+0x152>
  6269. if (motorPWMPulse > 0) {
  6270. 8002f5e: 6a7b ldr r3, [r7, #36] @ 0x24
  6271. 8002f60: 2b00 cmp r3, #0
  6272. 8002f62: dd2c ble.n 8002fbe <motorControl+0x9a>
  6273. // Forward
  6274. if (switchLimiterUpStat == 0) {
  6275. 8002f64: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6276. 8002f68: 2b00 cmp r3, #0
  6277. 8002f6a: d11d bne.n 8002fa8 <motorControl+0x84>
  6278. setMotorYState = Forward;
  6279. 8002f6c: 2301 movs r3, #1
  6280. 8002f6e: 74fb strb r3, [r7, #19]
  6281. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6282. 8002f70: 79f9 ldrb r1, [r7, #7]
  6283. 8002f72: 79b8 ldrb r0, [r7, #6]
  6284. 8002f74: 6a7b ldr r3, [r7, #36] @ 0x24
  6285. 8002f76: ea83 72e3 eor.w r2, r3, r3, asr #31
  6286. 8002f7a: eba2 72e3 sub.w r2, r2, r3, asr #31
  6287. 8002f7e: 4613 mov r3, r2
  6288. 8002f80: 009b lsls r3, r3, #2
  6289. 8002f82: 4413 add r3, r2
  6290. 8002f84: 005b lsls r3, r3, #1
  6291. 8002f86: 9301 str r3, [sp, #4]
  6292. 8002f88: 7cfb ldrb r3, [r7, #19]
  6293. 8002f8a: 9300 str r3, [sp, #0]
  6294. 8002f8c: 4603 mov r3, r0
  6295. 8002f8e: 460a mov r2, r1
  6296. 8002f90: 68b9 ldr r1, [r7, #8]
  6297. 8002f92: 68f8 ldr r0, [r7, #12]
  6298. 8002f94: f000 f8ff bl 8003196 <motorAction>
  6299. HAL_TIM_PWM_Start (htim, channel1);
  6300. 8002f98: 79fb ldrb r3, [r7, #7]
  6301. 8002f9a: 4619 mov r1, r3
  6302. 8002f9c: 68f8 ldr r0, [r7, #12]
  6303. 8002f9e: f00b ff7d bl 800ee9c <HAL_TIM_PWM_Start>
  6304. motorStatus = 1;
  6305. 8002fa2: 2301 movs r3, #1
  6306. 8002fa4: 617b str r3, [r7, #20]
  6307. 8002fa6: e004 b.n 8002fb2 <motorControl+0x8e>
  6308. } else {
  6309. HAL_TIM_PWM_Stop (htim, channel1);
  6310. 8002fa8: 79fb ldrb r3, [r7, #7]
  6311. 8002faa: 4619 mov r1, r3
  6312. 8002fac: 68f8 ldr r0, [r7, #12]
  6313. 8002fae: f00c f883 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6314. }
  6315. HAL_TIM_PWM_Stop (htim, channel2);
  6316. 8002fb2: 79bb ldrb r3, [r7, #6]
  6317. 8002fb4: 4619 mov r1, r3
  6318. 8002fb6: 68f8 ldr r0, [r7, #12]
  6319. 8002fb8: f00c f87e bl 800f0b8 <HAL_TIM_PWM_Stop>
  6320. 8002fbc: e051 b.n 8003062 <motorControl+0x13e>
  6321. } else if (motorPWMPulse < 0) {
  6322. 8002fbe: 6a7b ldr r3, [r7, #36] @ 0x24
  6323. 8002fc0: 2b00 cmp r3, #0
  6324. 8002fc2: da2c bge.n 800301e <motorControl+0xfa>
  6325. // Reverse
  6326. if (switchLimiterDownStat == 0) {
  6327. 8002fc4: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6328. 8002fc8: 2b00 cmp r3, #0
  6329. 8002fca: d11d bne.n 8003008 <motorControl+0xe4>
  6330. setMotorYState = Reverse;
  6331. 8002fcc: 2302 movs r3, #2
  6332. 8002fce: 74fb strb r3, [r7, #19]
  6333. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6334. 8002fd0: 79f9 ldrb r1, [r7, #7]
  6335. 8002fd2: 79b8 ldrb r0, [r7, #6]
  6336. 8002fd4: 6a7b ldr r3, [r7, #36] @ 0x24
  6337. 8002fd6: ea83 72e3 eor.w r2, r3, r3, asr #31
  6338. 8002fda: eba2 72e3 sub.w r2, r2, r3, asr #31
  6339. 8002fde: 4613 mov r3, r2
  6340. 8002fe0: 009b lsls r3, r3, #2
  6341. 8002fe2: 4413 add r3, r2
  6342. 8002fe4: 005b lsls r3, r3, #1
  6343. 8002fe6: 9301 str r3, [sp, #4]
  6344. 8002fe8: 7cfb ldrb r3, [r7, #19]
  6345. 8002fea: 9300 str r3, [sp, #0]
  6346. 8002fec: 4603 mov r3, r0
  6347. 8002fee: 460a mov r2, r1
  6348. 8002ff0: 68b9 ldr r1, [r7, #8]
  6349. 8002ff2: 68f8 ldr r0, [r7, #12]
  6350. 8002ff4: f000 f8cf bl 8003196 <motorAction>
  6351. HAL_TIM_PWM_Start (htim, channel2);
  6352. 8002ff8: 79bb ldrb r3, [r7, #6]
  6353. 8002ffa: 4619 mov r1, r3
  6354. 8002ffc: 68f8 ldr r0, [r7, #12]
  6355. 8002ffe: f00b ff4d bl 800ee9c <HAL_TIM_PWM_Start>
  6356. motorStatus = 1;
  6357. 8003002: 2301 movs r3, #1
  6358. 8003004: 617b str r3, [r7, #20]
  6359. 8003006: e004 b.n 8003012 <motorControl+0xee>
  6360. } else {
  6361. HAL_TIM_PWM_Stop (htim, channel2);
  6362. 8003008: 79bb ldrb r3, [r7, #6]
  6363. 800300a: 4619 mov r1, r3
  6364. 800300c: 68f8 ldr r0, [r7, #12]
  6365. 800300e: f00c f853 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6366. }
  6367. HAL_TIM_PWM_Stop (htim, channel1);
  6368. 8003012: 79fb ldrb r3, [r7, #7]
  6369. 8003014: 4619 mov r1, r3
  6370. 8003016: 68f8 ldr r0, [r7, #12]
  6371. 8003018: f00c f84e bl 800f0b8 <HAL_TIM_PWM_Stop>
  6372. 800301c: e021 b.n 8003062 <motorControl+0x13e>
  6373. } else {
  6374. // Brake
  6375. setMotorYState = Brake;
  6376. 800301e: 2303 movs r3, #3
  6377. 8003020: 74fb strb r3, [r7, #19]
  6378. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6379. 8003022: 79f9 ldrb r1, [r7, #7]
  6380. 8003024: 79b8 ldrb r0, [r7, #6]
  6381. 8003026: 6a7b ldr r3, [r7, #36] @ 0x24
  6382. 8003028: ea83 72e3 eor.w r2, r3, r3, asr #31
  6383. 800302c: eba2 72e3 sub.w r2, r2, r3, asr #31
  6384. 8003030: 4613 mov r3, r2
  6385. 8003032: 009b lsls r3, r3, #2
  6386. 8003034: 4413 add r3, r2
  6387. 8003036: 005b lsls r3, r3, #1
  6388. 8003038: 9301 str r3, [sp, #4]
  6389. 800303a: 7cfb ldrb r3, [r7, #19]
  6390. 800303c: 9300 str r3, [sp, #0]
  6391. 800303e: 4603 mov r3, r0
  6392. 8003040: 460a mov r2, r1
  6393. 8003042: 68b9 ldr r1, [r7, #8]
  6394. 8003044: 68f8 ldr r0, [r7, #12]
  6395. 8003046: f000 f8a6 bl 8003196 <motorAction>
  6396. HAL_TIM_PWM_Start (htim, channel1);
  6397. 800304a: 79fb ldrb r3, [r7, #7]
  6398. 800304c: 4619 mov r1, r3
  6399. 800304e: 68f8 ldr r0, [r7, #12]
  6400. 8003050: f00b ff24 bl 800ee9c <HAL_TIM_PWM_Start>
  6401. HAL_TIM_PWM_Start (htim, channel2);
  6402. 8003054: 79bb ldrb r3, [r7, #6]
  6403. 8003056: 4619 mov r1, r3
  6404. 8003058: 68f8 ldr r0, [r7, #12]
  6405. 800305a: f00b ff1f bl 800ee9c <HAL_TIM_PWM_Start>
  6406. motorStatus = 0;
  6407. 800305e: 2300 movs r3, #0
  6408. 8003060: 617b str r3, [r7, #20]
  6409. }
  6410. osTimerStart (motorTimerHandle, motorTimerPeriod * 1000);
  6411. 8003062: 6abb ldr r3, [r7, #40] @ 0x28
  6412. 8003064: f44f 727a mov.w r2, #1000 @ 0x3e8
  6413. 8003068: fb02 f303 mul.w r3, r2, r3
  6414. 800306c: 4619 mov r1, r3
  6415. 800306e: 6a38 ldr r0, [r7, #32]
  6416. 8003070: f010 fd6a bl 8013b48 <osTimerStart>
  6417. 8003074: e089 b.n 800318a <motorControl+0x266>
  6418. } else if ((motorTimerPeriod == 0) && (motorPWMPulse == 0)) {
  6419. 8003076: 6abb ldr r3, [r7, #40] @ 0x28
  6420. 8003078: 2b00 cmp r3, #0
  6421. 800307a: d126 bne.n 80030ca <motorControl+0x1a6>
  6422. 800307c: 6a7b ldr r3, [r7, #36] @ 0x24
  6423. 800307e: 2b00 cmp r3, #0
  6424. 8003080: d123 bne.n 80030ca <motorControl+0x1a6>
  6425. motorAction (htim, motorTimerConfigOC, channel1, channel2, HiZ, abs (motorPWMPulse) * 10);
  6426. 8003082: 79f9 ldrb r1, [r7, #7]
  6427. 8003084: 79b8 ldrb r0, [r7, #6]
  6428. 8003086: 6a7b ldr r3, [r7, #36] @ 0x24
  6429. 8003088: ea83 72e3 eor.w r2, r3, r3, asr #31
  6430. 800308c: eba2 72e3 sub.w r2, r2, r3, asr #31
  6431. 8003090: 4613 mov r3, r2
  6432. 8003092: 009b lsls r3, r3, #2
  6433. 8003094: 4413 add r3, r2
  6434. 8003096: 005b lsls r3, r3, #1
  6435. 8003098: 9301 str r3, [sp, #4]
  6436. 800309a: 2300 movs r3, #0
  6437. 800309c: 9300 str r3, [sp, #0]
  6438. 800309e: 4603 mov r3, r0
  6439. 80030a0: 460a mov r2, r1
  6440. 80030a2: 68b9 ldr r1, [r7, #8]
  6441. 80030a4: 68f8 ldr r0, [r7, #12]
  6442. 80030a6: f000 f876 bl 8003196 <motorAction>
  6443. HAL_TIM_PWM_Stop (htim, channel1);
  6444. 80030aa: 79fb ldrb r3, [r7, #7]
  6445. 80030ac: 4619 mov r1, r3
  6446. 80030ae: 68f8 ldr r0, [r7, #12]
  6447. 80030b0: f00c f802 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6448. HAL_TIM_PWM_Stop (htim, channel2);
  6449. 80030b4: 79bb ldrb r3, [r7, #6]
  6450. 80030b6: 4619 mov r1, r3
  6451. 80030b8: 68f8 ldr r0, [r7, #12]
  6452. 80030ba: f00b fffd bl 800f0b8 <HAL_TIM_PWM_Stop>
  6453. osTimerStop (motorTimerHandle);
  6454. 80030be: 6a38 ldr r0, [r7, #32]
  6455. 80030c0: f010 fd70 bl 8013ba4 <osTimerStop>
  6456. motorStatus = 0;
  6457. 80030c4: 2300 movs r3, #0
  6458. 80030c6: 617b str r3, [r7, #20]
  6459. 80030c8: e05f b.n 800318a <motorControl+0x266>
  6460. } else if (motorTimerPeriod == -1) {
  6461. 80030ca: 6abb ldr r3, [r7, #40] @ 0x28
  6462. 80030cc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  6463. 80030d0: d15b bne.n 800318a <motorControl+0x266>
  6464. if (motorPWMPulse > 0) {
  6465. 80030d2: 6a7b ldr r3, [r7, #36] @ 0x24
  6466. 80030d4: 2b00 cmp r3, #0
  6467. 80030d6: dd2c ble.n 8003132 <motorControl+0x20e>
  6468. // Forward
  6469. if (switchLimiterUpStat == 0) {
  6470. 80030d8: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6471. 80030dc: 2b00 cmp r3, #0
  6472. 80030de: d11d bne.n 800311c <motorControl+0x1f8>
  6473. setMotorYState = Forward;
  6474. 80030e0: 2301 movs r3, #1
  6475. 80030e2: 74fb strb r3, [r7, #19]
  6476. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6477. 80030e4: 79f9 ldrb r1, [r7, #7]
  6478. 80030e6: 79b8 ldrb r0, [r7, #6]
  6479. 80030e8: 6a7b ldr r3, [r7, #36] @ 0x24
  6480. 80030ea: ea83 72e3 eor.w r2, r3, r3, asr #31
  6481. 80030ee: eba2 72e3 sub.w r2, r2, r3, asr #31
  6482. 80030f2: 4613 mov r3, r2
  6483. 80030f4: 009b lsls r3, r3, #2
  6484. 80030f6: 4413 add r3, r2
  6485. 80030f8: 005b lsls r3, r3, #1
  6486. 80030fa: 9301 str r3, [sp, #4]
  6487. 80030fc: 7cfb ldrb r3, [r7, #19]
  6488. 80030fe: 9300 str r3, [sp, #0]
  6489. 8003100: 4603 mov r3, r0
  6490. 8003102: 460a mov r2, r1
  6491. 8003104: 68b9 ldr r1, [r7, #8]
  6492. 8003106: 68f8 ldr r0, [r7, #12]
  6493. 8003108: f000 f845 bl 8003196 <motorAction>
  6494. HAL_TIM_PWM_Start (htim, channel1);
  6495. 800310c: 79fb ldrb r3, [r7, #7]
  6496. 800310e: 4619 mov r1, r3
  6497. 8003110: 68f8 ldr r0, [r7, #12]
  6498. 8003112: f00b fec3 bl 800ee9c <HAL_TIM_PWM_Start>
  6499. motorStatus = 1;
  6500. 8003116: 2301 movs r3, #1
  6501. 8003118: 617b str r3, [r7, #20]
  6502. 800311a: e004 b.n 8003126 <motorControl+0x202>
  6503. } else {
  6504. HAL_TIM_PWM_Stop (htim, channel1);
  6505. 800311c: 79fb ldrb r3, [r7, #7]
  6506. 800311e: 4619 mov r1, r3
  6507. 8003120: 68f8 ldr r0, [r7, #12]
  6508. 8003122: f00b ffc9 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6509. }
  6510. HAL_TIM_PWM_Stop (htim, channel2);
  6511. 8003126: 79bb ldrb r3, [r7, #6]
  6512. 8003128: 4619 mov r1, r3
  6513. 800312a: 68f8 ldr r0, [r7, #12]
  6514. 800312c: f00b ffc4 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6515. 8003130: e02b b.n 800318a <motorControl+0x266>
  6516. } else {
  6517. // Reverse
  6518. if (switchLimiterDownStat == 0) {
  6519. 8003132: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6520. 8003136: 2b00 cmp r3, #0
  6521. 8003138: d11d bne.n 8003176 <motorControl+0x252>
  6522. setMotorYState = Reverse;
  6523. 800313a: 2302 movs r3, #2
  6524. 800313c: 74fb strb r3, [r7, #19]
  6525. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6526. 800313e: 79f9 ldrb r1, [r7, #7]
  6527. 8003140: 79b8 ldrb r0, [r7, #6]
  6528. 8003142: 6a7b ldr r3, [r7, #36] @ 0x24
  6529. 8003144: ea83 72e3 eor.w r2, r3, r3, asr #31
  6530. 8003148: eba2 72e3 sub.w r2, r2, r3, asr #31
  6531. 800314c: 4613 mov r3, r2
  6532. 800314e: 009b lsls r3, r3, #2
  6533. 8003150: 4413 add r3, r2
  6534. 8003152: 005b lsls r3, r3, #1
  6535. 8003154: 9301 str r3, [sp, #4]
  6536. 8003156: 7cfb ldrb r3, [r7, #19]
  6537. 8003158: 9300 str r3, [sp, #0]
  6538. 800315a: 4603 mov r3, r0
  6539. 800315c: 460a mov r2, r1
  6540. 800315e: 68b9 ldr r1, [r7, #8]
  6541. 8003160: 68f8 ldr r0, [r7, #12]
  6542. 8003162: f000 f818 bl 8003196 <motorAction>
  6543. HAL_TIM_PWM_Start (htim, channel2);
  6544. 8003166: 79bb ldrb r3, [r7, #6]
  6545. 8003168: 4619 mov r1, r3
  6546. 800316a: 68f8 ldr r0, [r7, #12]
  6547. 800316c: f00b fe96 bl 800ee9c <HAL_TIM_PWM_Start>
  6548. motorStatus = 1;
  6549. 8003170: 2301 movs r3, #1
  6550. 8003172: 617b str r3, [r7, #20]
  6551. 8003174: e004 b.n 8003180 <motorControl+0x25c>
  6552. } else {
  6553. HAL_TIM_PWM_Stop (htim, channel2);
  6554. 8003176: 79bb ldrb r3, [r7, #6]
  6555. 8003178: 4619 mov r1, r3
  6556. 800317a: 68f8 ldr r0, [r7, #12]
  6557. 800317c: f00b ff9c bl 800f0b8 <HAL_TIM_PWM_Stop>
  6558. }
  6559. HAL_TIM_PWM_Stop (htim, channel1);
  6560. 8003180: 79fb ldrb r3, [r7, #7]
  6561. 8003182: 4619 mov r1, r3
  6562. 8003184: 68f8 ldr r0, [r7, #12]
  6563. 8003186: f00b ff97 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6564. }
  6565. }
  6566. return motorStatus;
  6567. 800318a: 697b ldr r3, [r7, #20]
  6568. 800318c: b2db uxtb r3, r3
  6569. }
  6570. 800318e: 4618 mov r0, r3
  6571. 8003190: 3718 adds r7, #24
  6572. 8003192: 46bd mov sp, r7
  6573. 8003194: bd80 pop {r7, pc}
  6574. 08003196 <motorAction>:
  6575. void motorAction (TIM_HandleTypeDef* tim, TIM_OC_InitTypeDef* timerConf, uint32_t channel1, uint32_t channel2, MotorDriverState setState, uint32_t pulse) {
  6576. 8003196: b580 push {r7, lr}
  6577. 8003198: b084 sub sp, #16
  6578. 800319a: af00 add r7, sp, #0
  6579. 800319c: 60f8 str r0, [r7, #12]
  6580. 800319e: 60b9 str r1, [r7, #8]
  6581. 80031a0: 607a str r2, [r7, #4]
  6582. 80031a2: 603b str r3, [r7, #0]
  6583. timerConf->Pulse = pulse;
  6584. 80031a4: 68bb ldr r3, [r7, #8]
  6585. 80031a6: 69fa ldr r2, [r7, #28]
  6586. 80031a8: 605a str r2, [r3, #4]
  6587. switch (setState) {
  6588. 80031aa: 7e3b ldrb r3, [r7, #24]
  6589. 80031ac: 2b02 cmp r3, #2
  6590. 80031ae: dc02 bgt.n 80031b6 <motorAction+0x20>
  6591. 80031b0: 2b00 cmp r3, #0
  6592. 80031b2: da03 bge.n 80031bc <motorAction+0x26>
  6593. 80031b4: e038 b.n 8003228 <motorAction+0x92>
  6594. 80031b6: 2b03 cmp r3, #3
  6595. 80031b8: d01b beq.n 80031f2 <motorAction+0x5c>
  6596. 80031ba: e035 b.n 8003228 <motorAction+0x92>
  6597. case Forward:
  6598. case Reverse:
  6599. case HiZ:
  6600. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6601. 80031bc: 68bb ldr r3, [r7, #8]
  6602. 80031be: 2200 movs r2, #0
  6603. 80031c0: 609a str r2, [r3, #8]
  6604. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6605. 80031c2: 687a ldr r2, [r7, #4]
  6606. 80031c4: 68b9 ldr r1, [r7, #8]
  6607. 80031c6: 68f8 ldr r0, [r7, #12]
  6608. 80031c8: f00c fb62 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6609. 80031cc: 4603 mov r3, r0
  6610. 80031ce: 2b00 cmp r3, #0
  6611. 80031d0: d001 beq.n 80031d6 <motorAction+0x40>
  6612. Error_Handler ();
  6613. 80031d2: f7fe fed9 bl 8001f88 <Error_Handler>
  6614. }
  6615. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6616. 80031d6: 68bb ldr r3, [r7, #8]
  6617. 80031d8: 2200 movs r2, #0
  6618. 80031da: 609a str r2, [r3, #8]
  6619. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6620. 80031dc: 683a ldr r2, [r7, #0]
  6621. 80031de: 68b9 ldr r1, [r7, #8]
  6622. 80031e0: 68f8 ldr r0, [r7, #12]
  6623. 80031e2: f00c fb55 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6624. 80031e6: 4603 mov r3, r0
  6625. 80031e8: 2b00 cmp r3, #0
  6626. 80031ea: d038 beq.n 800325e <motorAction+0xc8>
  6627. Error_Handler ();
  6628. 80031ec: f7fe fecc bl 8001f88 <Error_Handler>
  6629. }
  6630. break;
  6631. 80031f0: e035 b.n 800325e <motorAction+0xc8>
  6632. case Brake:
  6633. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6634. 80031f2: 68bb ldr r3, [r7, #8]
  6635. 80031f4: 2202 movs r2, #2
  6636. 80031f6: 609a str r2, [r3, #8]
  6637. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6638. 80031f8: 687a ldr r2, [r7, #4]
  6639. 80031fa: 68b9 ldr r1, [r7, #8]
  6640. 80031fc: 68f8 ldr r0, [r7, #12]
  6641. 80031fe: f00c fb47 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6642. 8003202: 4603 mov r3, r0
  6643. 8003204: 2b00 cmp r3, #0
  6644. 8003206: d001 beq.n 800320c <motorAction+0x76>
  6645. Error_Handler ();
  6646. 8003208: f7fe febe bl 8001f88 <Error_Handler>
  6647. }
  6648. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6649. 800320c: 68bb ldr r3, [r7, #8]
  6650. 800320e: 2202 movs r2, #2
  6651. 8003210: 609a str r2, [r3, #8]
  6652. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6653. 8003212: 683a ldr r2, [r7, #0]
  6654. 8003214: 68b9 ldr r1, [r7, #8]
  6655. 8003216: 68f8 ldr r0, [r7, #12]
  6656. 8003218: f00c fb3a bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6657. 800321c: 4603 mov r3, r0
  6658. 800321e: 2b00 cmp r3, #0
  6659. 8003220: d01f beq.n 8003262 <motorAction+0xcc>
  6660. Error_Handler ();
  6661. 8003222: f7fe feb1 bl 8001f88 <Error_Handler>
  6662. }
  6663. break;
  6664. 8003226: e01c b.n 8003262 <motorAction+0xcc>
  6665. default:
  6666. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6667. 8003228: 68bb ldr r3, [r7, #8]
  6668. 800322a: 2200 movs r2, #0
  6669. 800322c: 609a str r2, [r3, #8]
  6670. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6671. 800322e: 687a ldr r2, [r7, #4]
  6672. 8003230: 68b9 ldr r1, [r7, #8]
  6673. 8003232: 68f8 ldr r0, [r7, #12]
  6674. 8003234: f00c fb2c bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6675. 8003238: 4603 mov r3, r0
  6676. 800323a: 2b00 cmp r3, #0
  6677. 800323c: d001 beq.n 8003242 <motorAction+0xac>
  6678. Error_Handler ();
  6679. 800323e: f7fe fea3 bl 8001f88 <Error_Handler>
  6680. }
  6681. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6682. 8003242: 68bb ldr r3, [r7, #8]
  6683. 8003244: 2200 movs r2, #0
  6684. 8003246: 609a str r2, [r3, #8]
  6685. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6686. 8003248: 683a ldr r2, [r7, #0]
  6687. 800324a: 68b9 ldr r1, [r7, #8]
  6688. 800324c: 68f8 ldr r0, [r7, #12]
  6689. 800324e: f00c fb1f bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6690. 8003252: 4603 mov r3, r0
  6691. 8003254: 2b00 cmp r3, #0
  6692. 8003256: d006 beq.n 8003266 <motorAction+0xd0>
  6693. Error_Handler ();
  6694. 8003258: f7fe fe96 bl 8001f88 <Error_Handler>
  6695. }
  6696. break;
  6697. 800325c: e003 b.n 8003266 <motorAction+0xd0>
  6698. break;
  6699. 800325e: bf00 nop
  6700. 8003260: e002 b.n 8003268 <motorAction+0xd2>
  6701. break;
  6702. 8003262: bf00 nop
  6703. 8003264: e000 b.n 8003268 <motorAction+0xd2>
  6704. break;
  6705. 8003266: bf00 nop
  6706. }
  6707. }
  6708. 8003268: bf00 nop
  6709. 800326a: 3710 adds r7, #16
  6710. 800326c: 46bd mov sp, r7
  6711. 800326e: bd80 pop {r7, pc}
  6712. 08003270 <WriteDataToBuffer>:
  6713. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6714. }
  6715. *buffPos = newBuffPos;
  6716. }
  6717. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  6718. 8003270: b480 push {r7}
  6719. 8003272: b089 sub sp, #36 @ 0x24
  6720. 8003274: af00 add r7, sp, #0
  6721. 8003276: 60f8 str r0, [r7, #12]
  6722. 8003278: 60b9 str r1, [r7, #8]
  6723. 800327a: 607a str r2, [r7, #4]
  6724. 800327c: 70fb strb r3, [r7, #3]
  6725. uint32_t* uDataPtr = data;
  6726. 800327e: 687b ldr r3, [r7, #4]
  6727. 8003280: 61bb str r3, [r7, #24]
  6728. uint32_t uData = *uDataPtr;
  6729. 8003282: 69bb ldr r3, [r7, #24]
  6730. 8003284: 681b ldr r3, [r3, #0]
  6731. 8003286: 617b str r3, [r7, #20]
  6732. uint8_t i = 0;
  6733. 8003288: 2300 movs r3, #0
  6734. 800328a: 77fb strb r3, [r7, #31]
  6735. uint8_t newBuffPos = *buffPos;
  6736. 800328c: 68bb ldr r3, [r7, #8]
  6737. 800328e: 881b ldrh r3, [r3, #0]
  6738. 8003290: 77bb strb r3, [r7, #30]
  6739. for (i = 0; i < dataSize; i++) {
  6740. 8003292: 2300 movs r3, #0
  6741. 8003294: 77fb strb r3, [r7, #31]
  6742. 8003296: e00e b.n 80032b6 <WriteDataToBuffer+0x46>
  6743. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6744. 8003298: 7ffb ldrb r3, [r7, #31]
  6745. 800329a: 00db lsls r3, r3, #3
  6746. 800329c: 697a ldr r2, [r7, #20]
  6747. 800329e: 40da lsrs r2, r3
  6748. 80032a0: 7fbb ldrb r3, [r7, #30]
  6749. 80032a2: 1c59 adds r1, r3, #1
  6750. 80032a4: 77b9 strb r1, [r7, #30]
  6751. 80032a6: 4619 mov r1, r3
  6752. 80032a8: 68fb ldr r3, [r7, #12]
  6753. 80032aa: 440b add r3, r1
  6754. 80032ac: b2d2 uxtb r2, r2
  6755. 80032ae: 701a strb r2, [r3, #0]
  6756. for (i = 0; i < dataSize; i++) {
  6757. 80032b0: 7ffb ldrb r3, [r7, #31]
  6758. 80032b2: 3301 adds r3, #1
  6759. 80032b4: 77fb strb r3, [r7, #31]
  6760. 80032b6: 7ffa ldrb r2, [r7, #31]
  6761. 80032b8: 78fb ldrb r3, [r7, #3]
  6762. 80032ba: 429a cmp r2, r3
  6763. 80032bc: d3ec bcc.n 8003298 <WriteDataToBuffer+0x28>
  6764. }
  6765. *buffPos = newBuffPos;
  6766. 80032be: 7fbb ldrb r3, [r7, #30]
  6767. 80032c0: b29a uxth r2, r3
  6768. 80032c2: 68bb ldr r3, [r7, #8]
  6769. 80032c4: 801a strh r2, [r3, #0]
  6770. }
  6771. 80032c6: bf00 nop
  6772. 80032c8: 3724 adds r7, #36 @ 0x24
  6773. 80032ca: 46bd mov sp, r7
  6774. 80032cc: f85d 7b04 ldr.w r7, [sp], #4
  6775. 80032d0: 4770 bx lr
  6776. 080032d2 <ReadWordFromBufer>:
  6777. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  6778. *buffPos += sizeof(uint16_t);
  6779. }
  6780. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  6781. {
  6782. 80032d2: b480 push {r7}
  6783. 80032d4: b085 sub sp, #20
  6784. 80032d6: af00 add r7, sp, #0
  6785. 80032d8: 60f8 str r0, [r7, #12]
  6786. 80032da: 60b9 str r1, [r7, #8]
  6787. 80032dc: 607a str r2, [r7, #4]
  6788. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  6789. 80032de: 68bb ldr r3, [r7, #8]
  6790. 80032e0: 881b ldrh r3, [r3, #0]
  6791. 80032e2: 3303 adds r3, #3
  6792. 80032e4: 68fa ldr r2, [r7, #12]
  6793. 80032e6: 4413 add r3, r2
  6794. 80032e8: 781b ldrb r3, [r3, #0]
  6795. 80032ea: 061a lsls r2, r3, #24
  6796. 80032ec: 68bb ldr r3, [r7, #8]
  6797. 80032ee: 881b ldrh r3, [r3, #0]
  6798. 80032f0: 3302 adds r3, #2
  6799. 80032f2: 68f9 ldr r1, [r7, #12]
  6800. 80032f4: 440b add r3, r1
  6801. 80032f6: 781b ldrb r3, [r3, #0]
  6802. 80032f8: 041b lsls r3, r3, #16
  6803. 80032fa: 431a orrs r2, r3
  6804. 80032fc: 68bb ldr r3, [r7, #8]
  6805. 80032fe: 881b ldrh r3, [r3, #0]
  6806. 8003300: 3301 adds r3, #1
  6807. 8003302: 68f9 ldr r1, [r7, #12]
  6808. 8003304: 440b add r3, r1
  6809. 8003306: 781b ldrb r3, [r3, #0]
  6810. 8003308: 021b lsls r3, r3, #8
  6811. 800330a: 4313 orrs r3, r2
  6812. 800330c: 68ba ldr r2, [r7, #8]
  6813. 800330e: 8812 ldrh r2, [r2, #0]
  6814. 8003310: 4611 mov r1, r2
  6815. 8003312: 68fa ldr r2, [r7, #12]
  6816. 8003314: 440a add r2, r1
  6817. 8003316: 7812 ldrb r2, [r2, #0]
  6818. 8003318: 4313 orrs r3, r2
  6819. 800331a: 461a mov r2, r3
  6820. 800331c: 687b ldr r3, [r7, #4]
  6821. 800331e: 601a str r2, [r3, #0]
  6822. *buffPos += sizeof(uint32_t);
  6823. 8003320: 68bb ldr r3, [r7, #8]
  6824. 8003322: 881b ldrh r3, [r3, #0]
  6825. 8003324: 3304 adds r3, #4
  6826. 8003326: b29a uxth r2, r3
  6827. 8003328: 68bb ldr r3, [r7, #8]
  6828. 800332a: 801a strh r2, [r3, #0]
  6829. }
  6830. 800332c: bf00 nop
  6831. 800332e: 3714 adds r7, #20
  6832. 8003330: 46bd mov sp, r7
  6833. 8003332: f85d 7b04 ldr.w r7, [sp], #4
  6834. 8003336: 4770 bx lr
  6835. 08003338 <PrepareRespFrame>:
  6836. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6837. return txBufferPos;
  6838. }
  6839. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  6840. 8003338: b580 push {r7, lr}
  6841. 800333a: b084 sub sp, #16
  6842. 800333c: af00 add r7, sp, #0
  6843. 800333e: 6078 str r0, [r7, #4]
  6844. 8003340: 4608 mov r0, r1
  6845. 8003342: 4611 mov r1, r2
  6846. 8003344: 461a mov r2, r3
  6847. 8003346: 4603 mov r3, r0
  6848. 8003348: 807b strh r3, [r7, #2]
  6849. 800334a: 460b mov r3, r1
  6850. 800334c: 707b strb r3, [r7, #1]
  6851. 800334e: 4613 mov r3, r2
  6852. 8003350: 703b strb r3, [r7, #0]
  6853. uint16_t crc = 0;
  6854. 8003352: 2300 movs r3, #0
  6855. 8003354: 81bb strh r3, [r7, #12]
  6856. uint16_t txBufferPos = 0;
  6857. 8003356: 2300 movs r3, #0
  6858. 8003358: 81fb strh r3, [r7, #14]
  6859. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  6860. 800335a: 787b ldrb r3, [r7, #1]
  6861. 800335c: b21a sxth r2, r3
  6862. 800335e: 4b43 ldr r3, [pc, #268] @ (800346c <PrepareRespFrame+0x134>)
  6863. 8003360: 4313 orrs r3, r2
  6864. 8003362: b21b sxth r3, r3
  6865. 8003364: 817b strh r3, [r7, #10]
  6866. memset (txBuffer, 0x00, dataLength);
  6867. 8003366: 8bbb ldrh r3, [r7, #28]
  6868. 8003368: 461a mov r2, r3
  6869. 800336a: 2100 movs r1, #0
  6870. 800336c: 6878 ldr r0, [r7, #4]
  6871. 800336e: f014 fd1a bl 8017da6 <memset>
  6872. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6873. 8003372: 89fb ldrh r3, [r7, #14]
  6874. 8003374: 1c5a adds r2, r3, #1
  6875. 8003376: 81fa strh r2, [r7, #14]
  6876. 8003378: 461a mov r2, r3
  6877. 800337a: 687b ldr r3, [r7, #4]
  6878. 800337c: 4413 add r3, r2
  6879. 800337e: 22aa movs r2, #170 @ 0xaa
  6880. 8003380: 701a strb r2, [r3, #0]
  6881. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6882. 8003382: 89fb ldrh r3, [r7, #14]
  6883. 8003384: 1c5a adds r2, r3, #1
  6884. 8003386: 81fa strh r2, [r7, #14]
  6885. 8003388: 461a mov r2, r3
  6886. 800338a: 687b ldr r3, [r7, #4]
  6887. 800338c: 4413 add r3, r2
  6888. 800338e: 887a ldrh r2, [r7, #2]
  6889. 8003390: b2d2 uxtb r2, r2
  6890. 8003392: 701a strb r2, [r3, #0]
  6891. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6892. 8003394: 887b ldrh r3, [r7, #2]
  6893. 8003396: 0a1b lsrs r3, r3, #8
  6894. 8003398: b29a uxth r2, r3
  6895. 800339a: 89fb ldrh r3, [r7, #14]
  6896. 800339c: 1c59 adds r1, r3, #1
  6897. 800339e: 81f9 strh r1, [r7, #14]
  6898. 80033a0: 4619 mov r1, r3
  6899. 80033a2: 687b ldr r3, [r7, #4]
  6900. 80033a4: 440b add r3, r1
  6901. 80033a6: b2d2 uxtb r2, r2
  6902. 80033a8: 701a strb r2, [r3, #0]
  6903. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6904. 80033aa: 89fb ldrh r3, [r7, #14]
  6905. 80033ac: 1c5a adds r2, r3, #1
  6906. 80033ae: 81fa strh r2, [r7, #14]
  6907. 80033b0: 461a mov r2, r3
  6908. 80033b2: 687b ldr r3, [r7, #4]
  6909. 80033b4: 4413 add r3, r2
  6910. 80033b6: 897a ldrh r2, [r7, #10]
  6911. 80033b8: b2d2 uxtb r2, r2
  6912. 80033ba: 701a strb r2, [r3, #0]
  6913. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6914. 80033bc: 897b ldrh r3, [r7, #10]
  6915. 80033be: 0a1b lsrs r3, r3, #8
  6916. 80033c0: b29a uxth r2, r3
  6917. 80033c2: 89fb ldrh r3, [r7, #14]
  6918. 80033c4: 1c59 adds r1, r3, #1
  6919. 80033c6: 81f9 strh r1, [r7, #14]
  6920. 80033c8: 4619 mov r1, r3
  6921. 80033ca: 687b ldr r3, [r7, #4]
  6922. 80033cc: 440b add r3, r1
  6923. 80033ce: b2d2 uxtb r2, r2
  6924. 80033d0: 701a strb r2, [r3, #0]
  6925. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6926. 80033d2: 89fb ldrh r3, [r7, #14]
  6927. 80033d4: 1c5a adds r2, r3, #1
  6928. 80033d6: 81fa strh r2, [r7, #14]
  6929. 80033d8: 461a mov r2, r3
  6930. 80033da: 687b ldr r3, [r7, #4]
  6931. 80033dc: 4413 add r3, r2
  6932. 80033de: 8bba ldrh r2, [r7, #28]
  6933. 80033e0: b2d2 uxtb r2, r2
  6934. 80033e2: 701a strb r2, [r3, #0]
  6935. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6936. 80033e4: 8bbb ldrh r3, [r7, #28]
  6937. 80033e6: 0a1b lsrs r3, r3, #8
  6938. 80033e8: b29a uxth r2, r3
  6939. 80033ea: 89fb ldrh r3, [r7, #14]
  6940. 80033ec: 1c59 adds r1, r3, #1
  6941. 80033ee: 81f9 strh r1, [r7, #14]
  6942. 80033f0: 4619 mov r1, r3
  6943. 80033f2: 687b ldr r3, [r7, #4]
  6944. 80033f4: 440b add r3, r1
  6945. 80033f6: b2d2 uxtb r2, r2
  6946. 80033f8: 701a strb r2, [r3, #0]
  6947. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  6948. 80033fa: 89fb ldrh r3, [r7, #14]
  6949. 80033fc: 1c5a adds r2, r3, #1
  6950. 80033fe: 81fa strh r2, [r7, #14]
  6951. 8003400: 461a mov r2, r3
  6952. 8003402: 687b ldr r3, [r7, #4]
  6953. 8003404: 4413 add r3, r2
  6954. 8003406: 783a ldrb r2, [r7, #0]
  6955. 8003408: 701a strb r2, [r3, #0]
  6956. if (dataLength > 0) {
  6957. 800340a: 8bbb ldrh r3, [r7, #28]
  6958. 800340c: 2b00 cmp r3, #0
  6959. 800340e: d00b beq.n 8003428 <PrepareRespFrame+0xf0>
  6960. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6961. 8003410: 89fb ldrh r3, [r7, #14]
  6962. 8003412: 687a ldr r2, [r7, #4]
  6963. 8003414: 4413 add r3, r2
  6964. 8003416: 8bba ldrh r2, [r7, #28]
  6965. 8003418: 69b9 ldr r1, [r7, #24]
  6966. 800341a: 4618 mov r0, r3
  6967. 800341c: f014 fd95 bl 8017f4a <memcpy>
  6968. txBufferPos += dataLength;
  6969. 8003420: 89fa ldrh r2, [r7, #14]
  6970. 8003422: 8bbb ldrh r3, [r7, #28]
  6971. 8003424: 4413 add r3, r2
  6972. 8003426: 81fb strh r3, [r7, #14]
  6973. }
  6974. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6975. 8003428: 89fb ldrh r3, [r7, #14]
  6976. 800342a: 461a mov r2, r3
  6977. 800342c: 6879 ldr r1, [r7, #4]
  6978. 800342e: 4810 ldr r0, [pc, #64] @ (8003470 <PrepareRespFrame+0x138>)
  6979. 8003430: f004 f844 bl 80074bc <HAL_CRC_Calculate>
  6980. 8003434: 4603 mov r3, r0
  6981. 8003436: 81bb strh r3, [r7, #12]
  6982. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6983. 8003438: 89fb ldrh r3, [r7, #14]
  6984. 800343a: 1c5a adds r2, r3, #1
  6985. 800343c: 81fa strh r2, [r7, #14]
  6986. 800343e: 461a mov r2, r3
  6987. 8003440: 687b ldr r3, [r7, #4]
  6988. 8003442: 4413 add r3, r2
  6989. 8003444: 89ba ldrh r2, [r7, #12]
  6990. 8003446: b2d2 uxtb r2, r2
  6991. 8003448: 701a strb r2, [r3, #0]
  6992. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6993. 800344a: 89bb ldrh r3, [r7, #12]
  6994. 800344c: 0a1b lsrs r3, r3, #8
  6995. 800344e: b29a uxth r2, r3
  6996. 8003450: 89fb ldrh r3, [r7, #14]
  6997. 8003452: 1c59 adds r1, r3, #1
  6998. 8003454: 81f9 strh r1, [r7, #14]
  6999. 8003456: 4619 mov r1, r3
  7000. 8003458: 687b ldr r3, [r7, #4]
  7001. 800345a: 440b add r3, r1
  7002. 800345c: b2d2 uxtb r2, r2
  7003. 800345e: 701a strb r2, [r3, #0]
  7004. return txBufferPos;
  7005. 8003460: 89fb ldrh r3, [r7, #14]
  7006. }
  7007. 8003462: 4618 mov r0, r3
  7008. 8003464: 3710 adds r7, #16
  7009. 8003466: 46bd mov sp, r7
  7010. 8003468: bd80 pop {r7, pc}
  7011. 800346a: bf00 nop
  7012. 800346c: ffff8000 .word 0xffff8000
  7013. 8003470: 24000400 .word 0x24000400
  7014. 08003474 <HAL_MspInit>:
  7015. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  7016. /**
  7017. * Initializes the Global MSP.
  7018. */
  7019. void HAL_MspInit(void)
  7020. {
  7021. 8003474: b580 push {r7, lr}
  7022. 8003476: b086 sub sp, #24
  7023. 8003478: af00 add r7, sp, #0
  7024. /* USER CODE BEGIN MspInit 0 */
  7025. /* USER CODE END MspInit 0 */
  7026. PWREx_AVDTypeDef sConfigAVD = {0};
  7027. 800347a: f107 0310 add.w r3, r7, #16
  7028. 800347e: 2200 movs r2, #0
  7029. 8003480: 601a str r2, [r3, #0]
  7030. 8003482: 605a str r2, [r3, #4]
  7031. PWR_PVDTypeDef sConfigPVD = {0};
  7032. 8003484: f107 0308 add.w r3, r7, #8
  7033. 8003488: 2200 movs r2, #0
  7034. 800348a: 601a str r2, [r3, #0]
  7035. 800348c: 605a str r2, [r3, #4]
  7036. __HAL_RCC_SYSCFG_CLK_ENABLE();
  7037. 800348e: 4b26 ldr r3, [pc, #152] @ (8003528 <HAL_MspInit+0xb4>)
  7038. 8003490: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7039. 8003494: 4a24 ldr r2, [pc, #144] @ (8003528 <HAL_MspInit+0xb4>)
  7040. 8003496: f043 0302 orr.w r3, r3, #2
  7041. 800349a: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7042. 800349e: 4b22 ldr r3, [pc, #136] @ (8003528 <HAL_MspInit+0xb4>)
  7043. 80034a0: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7044. 80034a4: f003 0302 and.w r3, r3, #2
  7045. 80034a8: 607b str r3, [r7, #4]
  7046. 80034aa: 687b ldr r3, [r7, #4]
  7047. /* System interrupt init*/
  7048. /* PendSV_IRQn interrupt configuration */
  7049. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  7050. 80034ac: 2200 movs r2, #0
  7051. 80034ae: 210f movs r1, #15
  7052. 80034b0: f06f 0001 mvn.w r0, #1
  7053. 80034b4: f003 fefe bl 80072b4 <HAL_NVIC_SetPriority>
  7054. /* Peripheral interrupt init */
  7055. /* RCC_IRQn interrupt configuration */
  7056. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  7057. 80034b8: 2200 movs r2, #0
  7058. 80034ba: 2105 movs r1, #5
  7059. 80034bc: 2005 movs r0, #5
  7060. 80034be: f003 fef9 bl 80072b4 <HAL_NVIC_SetPriority>
  7061. HAL_NVIC_EnableIRQ(RCC_IRQn);
  7062. 80034c2: 2005 movs r0, #5
  7063. 80034c4: f003 ff10 bl 80072e8 <HAL_NVIC_EnableIRQ>
  7064. /** AVD Configuration
  7065. */
  7066. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  7067. 80034c8: f44f 23c0 mov.w r3, #393216 @ 0x60000
  7068. 80034cc: 613b str r3, [r7, #16]
  7069. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  7070. 80034ce: 2300 movs r3, #0
  7071. 80034d0: 617b str r3, [r7, #20]
  7072. HAL_PWREx_ConfigAVD(&sConfigAVD);
  7073. 80034d2: f107 0310 add.w r3, r7, #16
  7074. 80034d6: 4618 mov r0, r3
  7075. 80034d8: f007 fd56 bl 800af88 <HAL_PWREx_ConfigAVD>
  7076. /** Enable the AVD Output
  7077. */
  7078. HAL_PWREx_EnableAVD();
  7079. 80034dc: f007 fdca bl 800b074 <HAL_PWREx_EnableAVD>
  7080. /** PVD Configuration
  7081. */
  7082. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  7083. 80034e0: 23c0 movs r3, #192 @ 0xc0
  7084. 80034e2: 60bb str r3, [r7, #8]
  7085. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  7086. 80034e4: 2300 movs r3, #0
  7087. 80034e6: 60fb str r3, [r7, #12]
  7088. HAL_PWR_ConfigPVD(&sConfigPVD);
  7089. 80034e8: f107 0308 add.w r3, r7, #8
  7090. 80034ec: 4618 mov r0, r3
  7091. 80034ee: f007 fc87 bl 800ae00 <HAL_PWR_ConfigPVD>
  7092. /** Enable the PVD Output
  7093. */
  7094. HAL_PWR_EnablePVD();
  7095. 80034f2: f007 fcff bl 800aef4 <HAL_PWR_EnablePVD>
  7096. /** Enable the VREF clock
  7097. */
  7098. __HAL_RCC_VREF_CLK_ENABLE();
  7099. 80034f6: 4b0c ldr r3, [pc, #48] @ (8003528 <HAL_MspInit+0xb4>)
  7100. 80034f8: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7101. 80034fc: 4a0a ldr r2, [pc, #40] @ (8003528 <HAL_MspInit+0xb4>)
  7102. 80034fe: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  7103. 8003502: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7104. 8003506: 4b08 ldr r3, [pc, #32] @ (8003528 <HAL_MspInit+0xb4>)
  7105. 8003508: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7106. 800350c: f403 4300 and.w r3, r3, #32768 @ 0x8000
  7107. 8003510: 603b str r3, [r7, #0]
  7108. 8003512: 683b ldr r3, [r7, #0]
  7109. /** Disable the Internal Voltage Reference buffer
  7110. */
  7111. HAL_SYSCFG_DisableVREFBUF();
  7112. 8003514: f002 f854 bl 80055c0 <HAL_SYSCFG_DisableVREFBUF>
  7113. /** Configure the internal voltage reference buffer high impedance mode
  7114. */
  7115. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  7116. 8003518: 2002 movs r0, #2
  7117. 800351a: f002 f83d bl 8005598 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  7118. /* USER CODE BEGIN MspInit 1 */
  7119. /* USER CODE END MspInit 1 */
  7120. }
  7121. 800351e: bf00 nop
  7122. 8003520: 3718 adds r7, #24
  7123. 8003522: 46bd mov sp, r7
  7124. 8003524: bd80 pop {r7, pc}
  7125. 8003526: bf00 nop
  7126. 8003528: 58024400 .word 0x58024400
  7127. 0800352c <HAL_ADC_MspInit>:
  7128. * This function configures the hardware resources used in this example
  7129. * @param hadc: ADC handle pointer
  7130. * @retval None
  7131. */
  7132. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  7133. {
  7134. 800352c: b580 push {r7, lr}
  7135. 800352e: b092 sub sp, #72 @ 0x48
  7136. 8003530: af00 add r7, sp, #0
  7137. 8003532: 6078 str r0, [r7, #4]
  7138. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7139. 8003534: f107 0334 add.w r3, r7, #52 @ 0x34
  7140. 8003538: 2200 movs r2, #0
  7141. 800353a: 601a str r2, [r3, #0]
  7142. 800353c: 605a str r2, [r3, #4]
  7143. 800353e: 609a str r2, [r3, #8]
  7144. 8003540: 60da str r2, [r3, #12]
  7145. 8003542: 611a str r2, [r3, #16]
  7146. if(hadc->Instance==ADC1)
  7147. 8003544: 687b ldr r3, [r7, #4]
  7148. 8003546: 681b ldr r3, [r3, #0]
  7149. 8003548: 4a9d ldr r2, [pc, #628] @ (80037c0 <HAL_ADC_MspInit+0x294>)
  7150. 800354a: 4293 cmp r3, r2
  7151. 800354c: f040 8099 bne.w 8003682 <HAL_ADC_MspInit+0x156>
  7152. {
  7153. /* USER CODE BEGIN ADC1_MspInit 0 */
  7154. /* USER CODE END ADC1_MspInit 0 */
  7155. /* Peripheral clock enable */
  7156. HAL_RCC_ADC12_CLK_ENABLED++;
  7157. 8003550: 4b9c ldr r3, [pc, #624] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7158. 8003552: 681b ldr r3, [r3, #0]
  7159. 8003554: 3301 adds r3, #1
  7160. 8003556: 4a9b ldr r2, [pc, #620] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7161. 8003558: 6013 str r3, [r2, #0]
  7162. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  7163. 800355a: 4b9a ldr r3, [pc, #616] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7164. 800355c: 681b ldr r3, [r3, #0]
  7165. 800355e: 2b01 cmp r3, #1
  7166. 8003560: d10e bne.n 8003580 <HAL_ADC_MspInit+0x54>
  7167. __HAL_RCC_ADC12_CLK_ENABLE();
  7168. 8003562: 4b99 ldr r3, [pc, #612] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7169. 8003564: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7170. 8003568: 4a97 ldr r2, [pc, #604] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7171. 800356a: f043 0320 orr.w r3, r3, #32
  7172. 800356e: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  7173. 8003572: 4b95 ldr r3, [pc, #596] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7174. 8003574: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7175. 8003578: f003 0320 and.w r3, r3, #32
  7176. 800357c: 633b str r3, [r7, #48] @ 0x30
  7177. 800357e: 6b3b ldr r3, [r7, #48] @ 0x30
  7178. }
  7179. __HAL_RCC_GPIOA_CLK_ENABLE();
  7180. 8003580: 4b91 ldr r3, [pc, #580] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7181. 8003582: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7182. 8003586: 4a90 ldr r2, [pc, #576] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7183. 8003588: f043 0301 orr.w r3, r3, #1
  7184. 800358c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7185. 8003590: 4b8d ldr r3, [pc, #564] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7186. 8003592: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7187. 8003596: f003 0301 and.w r3, r3, #1
  7188. 800359a: 62fb str r3, [r7, #44] @ 0x2c
  7189. 800359c: 6afb ldr r3, [r7, #44] @ 0x2c
  7190. __HAL_RCC_GPIOC_CLK_ENABLE();
  7191. 800359e: 4b8a ldr r3, [pc, #552] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7192. 80035a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7193. 80035a4: 4a88 ldr r2, [pc, #544] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7194. 80035a6: f043 0304 orr.w r3, r3, #4
  7195. 80035aa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7196. 80035ae: 4b86 ldr r3, [pc, #536] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7197. 80035b0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7198. 80035b4: f003 0304 and.w r3, r3, #4
  7199. 80035b8: 62bb str r3, [r7, #40] @ 0x28
  7200. 80035ba: 6abb ldr r3, [r7, #40] @ 0x28
  7201. __HAL_RCC_GPIOB_CLK_ENABLE();
  7202. 80035bc: 4b82 ldr r3, [pc, #520] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7203. 80035be: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7204. 80035c2: 4a81 ldr r2, [pc, #516] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7205. 80035c4: f043 0302 orr.w r3, r3, #2
  7206. 80035c8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7207. 80035cc: 4b7e ldr r3, [pc, #504] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7208. 80035ce: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7209. 80035d2: f003 0302 and.w r3, r3, #2
  7210. 80035d6: 627b str r3, [r7, #36] @ 0x24
  7211. 80035d8: 6a7b ldr r3, [r7, #36] @ 0x24
  7212. PA3 ------> ADC1_INP15
  7213. PA7 ------> ADC1_INP7
  7214. PC5 ------> ADC1_INP8
  7215. PB0 ------> ADC1_INP9
  7216. */
  7217. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  7218. 80035da: 238f movs r3, #143 @ 0x8f
  7219. 80035dc: 637b str r3, [r7, #52] @ 0x34
  7220. |GPIO_PIN_7;
  7221. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7222. 80035de: 2303 movs r3, #3
  7223. 80035e0: 63bb str r3, [r7, #56] @ 0x38
  7224. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7225. 80035e2: 2300 movs r3, #0
  7226. 80035e4: 63fb str r3, [r7, #60] @ 0x3c
  7227. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7228. 80035e6: f107 0334 add.w r3, r7, #52 @ 0x34
  7229. 80035ea: 4619 mov r1, r3
  7230. 80035ec: 4877 ldr r0, [pc, #476] @ (80037cc <HAL_ADC_MspInit+0x2a0>)
  7231. 80035ee: f007 f993 bl 800a918 <HAL_GPIO_Init>
  7232. GPIO_InitStruct.Pin = GPIO_PIN_5;
  7233. 80035f2: 2320 movs r3, #32
  7234. 80035f4: 637b str r3, [r7, #52] @ 0x34
  7235. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7236. 80035f6: 2303 movs r3, #3
  7237. 80035f8: 63bb str r3, [r7, #56] @ 0x38
  7238. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7239. 80035fa: 2300 movs r3, #0
  7240. 80035fc: 63fb str r3, [r7, #60] @ 0x3c
  7241. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7242. 80035fe: f107 0334 add.w r3, r7, #52 @ 0x34
  7243. 8003602: 4619 mov r1, r3
  7244. 8003604: 4872 ldr r0, [pc, #456] @ (80037d0 <HAL_ADC_MspInit+0x2a4>)
  7245. 8003606: f007 f987 bl 800a918 <HAL_GPIO_Init>
  7246. GPIO_InitStruct.Pin = GPIO_PIN_0;
  7247. 800360a: 2301 movs r3, #1
  7248. 800360c: 637b str r3, [r7, #52] @ 0x34
  7249. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7250. 800360e: 2303 movs r3, #3
  7251. 8003610: 63bb str r3, [r7, #56] @ 0x38
  7252. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7253. 8003612: 2300 movs r3, #0
  7254. 8003614: 63fb str r3, [r7, #60] @ 0x3c
  7255. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7256. 8003616: f107 0334 add.w r3, r7, #52 @ 0x34
  7257. 800361a: 4619 mov r1, r3
  7258. 800361c: 486d ldr r0, [pc, #436] @ (80037d4 <HAL_ADC_MspInit+0x2a8>)
  7259. 800361e: f007 f97b bl 800a918 <HAL_GPIO_Init>
  7260. /* ADC1 DMA Init */
  7261. /* ADC1 Init */
  7262. hdma_adc1.Instance = DMA1_Stream0;
  7263. 8003622: 4b6d ldr r3, [pc, #436] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7264. 8003624: 4a6d ldr r2, [pc, #436] @ (80037dc <HAL_ADC_MspInit+0x2b0>)
  7265. 8003626: 601a str r2, [r3, #0]
  7266. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  7267. 8003628: 4b6b ldr r3, [pc, #428] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7268. 800362a: 2209 movs r2, #9
  7269. 800362c: 605a str r2, [r3, #4]
  7270. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7271. 800362e: 4b6a ldr r3, [pc, #424] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7272. 8003630: 2200 movs r2, #0
  7273. 8003632: 609a str r2, [r3, #8]
  7274. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  7275. 8003634: 4b68 ldr r3, [pc, #416] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7276. 8003636: 2200 movs r2, #0
  7277. 8003638: 60da str r2, [r3, #12]
  7278. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  7279. 800363a: 4b67 ldr r3, [pc, #412] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7280. 800363c: f44f 6280 mov.w r2, #1024 @ 0x400
  7281. 8003640: 611a str r2, [r3, #16]
  7282. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7283. 8003642: 4b65 ldr r3, [pc, #404] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7284. 8003644: f44f 6200 mov.w r2, #2048 @ 0x800
  7285. 8003648: 615a str r2, [r3, #20]
  7286. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7287. 800364a: 4b63 ldr r3, [pc, #396] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7288. 800364c: f44f 5200 mov.w r2, #8192 @ 0x2000
  7289. 8003650: 619a str r2, [r3, #24]
  7290. hdma_adc1.Init.Mode = DMA_NORMAL;
  7291. 8003652: 4b61 ldr r3, [pc, #388] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7292. 8003654: 2200 movs r2, #0
  7293. 8003656: 61da str r2, [r3, #28]
  7294. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  7295. 8003658: 4b5f ldr r3, [pc, #380] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7296. 800365a: 2200 movs r2, #0
  7297. 800365c: 621a str r2, [r3, #32]
  7298. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7299. 800365e: 4b5e ldr r3, [pc, #376] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7300. 8003660: 2200 movs r2, #0
  7301. 8003662: 625a str r2, [r3, #36] @ 0x24
  7302. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  7303. 8003664: 485c ldr r0, [pc, #368] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7304. 8003666: f004 fb1b bl 8007ca0 <HAL_DMA_Init>
  7305. 800366a: 4603 mov r3, r0
  7306. 800366c: 2b00 cmp r3, #0
  7307. 800366e: d001 beq.n 8003674 <HAL_ADC_MspInit+0x148>
  7308. {
  7309. Error_Handler();
  7310. 8003670: f7fe fc8a bl 8001f88 <Error_Handler>
  7311. }
  7312. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  7313. 8003674: 687b ldr r3, [r7, #4]
  7314. 8003676: 4a58 ldr r2, [pc, #352] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7315. 8003678: 64da str r2, [r3, #76] @ 0x4c
  7316. 800367a: 4a57 ldr r2, [pc, #348] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7317. 800367c: 687b ldr r3, [r7, #4]
  7318. 800367e: 6393 str r3, [r2, #56] @ 0x38
  7319. /* USER CODE BEGIN ADC3_MspInit 1 */
  7320. /* USER CODE END ADC3_MspInit 1 */
  7321. }
  7322. }
  7323. 8003680: e11e b.n 80038c0 <HAL_ADC_MspInit+0x394>
  7324. else if(hadc->Instance==ADC2)
  7325. 8003682: 687b ldr r3, [r7, #4]
  7326. 8003684: 681b ldr r3, [r3, #0]
  7327. 8003686: 4a56 ldr r2, [pc, #344] @ (80037e0 <HAL_ADC_MspInit+0x2b4>)
  7328. 8003688: 4293 cmp r3, r2
  7329. 800368a: f040 80af bne.w 80037ec <HAL_ADC_MspInit+0x2c0>
  7330. HAL_RCC_ADC12_CLK_ENABLED++;
  7331. 800368e: 4b4d ldr r3, [pc, #308] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7332. 8003690: 681b ldr r3, [r3, #0]
  7333. 8003692: 3301 adds r3, #1
  7334. 8003694: 4a4b ldr r2, [pc, #300] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7335. 8003696: 6013 str r3, [r2, #0]
  7336. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  7337. 8003698: 4b4a ldr r3, [pc, #296] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7338. 800369a: 681b ldr r3, [r3, #0]
  7339. 800369c: 2b01 cmp r3, #1
  7340. 800369e: d10e bne.n 80036be <HAL_ADC_MspInit+0x192>
  7341. __HAL_RCC_ADC12_CLK_ENABLE();
  7342. 80036a0: 4b49 ldr r3, [pc, #292] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7343. 80036a2: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7344. 80036a6: 4a48 ldr r2, [pc, #288] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7345. 80036a8: f043 0320 orr.w r3, r3, #32
  7346. 80036ac: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  7347. 80036b0: 4b45 ldr r3, [pc, #276] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7348. 80036b2: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7349. 80036b6: f003 0320 and.w r3, r3, #32
  7350. 80036ba: 623b str r3, [r7, #32]
  7351. 80036bc: 6a3b ldr r3, [r7, #32]
  7352. __HAL_RCC_GPIOA_CLK_ENABLE();
  7353. 80036be: 4b42 ldr r3, [pc, #264] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7354. 80036c0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7355. 80036c4: 4a40 ldr r2, [pc, #256] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7356. 80036c6: f043 0301 orr.w r3, r3, #1
  7357. 80036ca: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7358. 80036ce: 4b3e ldr r3, [pc, #248] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7359. 80036d0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7360. 80036d4: f003 0301 and.w r3, r3, #1
  7361. 80036d8: 61fb str r3, [r7, #28]
  7362. 80036da: 69fb ldr r3, [r7, #28]
  7363. __HAL_RCC_GPIOC_CLK_ENABLE();
  7364. 80036dc: 4b3a ldr r3, [pc, #232] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7365. 80036de: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7366. 80036e2: 4a39 ldr r2, [pc, #228] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7367. 80036e4: f043 0304 orr.w r3, r3, #4
  7368. 80036e8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7369. 80036ec: 4b36 ldr r3, [pc, #216] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7370. 80036ee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7371. 80036f2: f003 0304 and.w r3, r3, #4
  7372. 80036f6: 61bb str r3, [r7, #24]
  7373. 80036f8: 69bb ldr r3, [r7, #24]
  7374. __HAL_RCC_GPIOB_CLK_ENABLE();
  7375. 80036fa: 4b33 ldr r3, [pc, #204] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7376. 80036fc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7377. 8003700: 4a31 ldr r2, [pc, #196] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7378. 8003702: f043 0302 orr.w r3, r3, #2
  7379. 8003706: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7380. 800370a: 4b2f ldr r3, [pc, #188] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7381. 800370c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7382. 8003710: f003 0302 and.w r3, r3, #2
  7383. 8003714: 617b str r3, [r7, #20]
  7384. 8003716: 697b ldr r3, [r7, #20]
  7385. GPIO_InitStruct.Pin = GPIO_PIN_6;
  7386. 8003718: 2340 movs r3, #64 @ 0x40
  7387. 800371a: 637b str r3, [r7, #52] @ 0x34
  7388. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7389. 800371c: 2303 movs r3, #3
  7390. 800371e: 63bb str r3, [r7, #56] @ 0x38
  7391. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7392. 8003720: 2300 movs r3, #0
  7393. 8003722: 63fb str r3, [r7, #60] @ 0x3c
  7394. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7395. 8003724: f107 0334 add.w r3, r7, #52 @ 0x34
  7396. 8003728: 4619 mov r1, r3
  7397. 800372a: 4828 ldr r0, [pc, #160] @ (80037cc <HAL_ADC_MspInit+0x2a0>)
  7398. 800372c: f007 f8f4 bl 800a918 <HAL_GPIO_Init>
  7399. GPIO_InitStruct.Pin = GPIO_PIN_4;
  7400. 8003730: 2310 movs r3, #16
  7401. 8003732: 637b str r3, [r7, #52] @ 0x34
  7402. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7403. 8003734: 2303 movs r3, #3
  7404. 8003736: 63bb str r3, [r7, #56] @ 0x38
  7405. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7406. 8003738: 2300 movs r3, #0
  7407. 800373a: 63fb str r3, [r7, #60] @ 0x3c
  7408. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7409. 800373c: f107 0334 add.w r3, r7, #52 @ 0x34
  7410. 8003740: 4619 mov r1, r3
  7411. 8003742: 4823 ldr r0, [pc, #140] @ (80037d0 <HAL_ADC_MspInit+0x2a4>)
  7412. 8003744: f007 f8e8 bl 800a918 <HAL_GPIO_Init>
  7413. GPIO_InitStruct.Pin = GPIO_PIN_1;
  7414. 8003748: 2302 movs r3, #2
  7415. 800374a: 637b str r3, [r7, #52] @ 0x34
  7416. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7417. 800374c: 2303 movs r3, #3
  7418. 800374e: 63bb str r3, [r7, #56] @ 0x38
  7419. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7420. 8003750: 2300 movs r3, #0
  7421. 8003752: 63fb str r3, [r7, #60] @ 0x3c
  7422. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7423. 8003754: f107 0334 add.w r3, r7, #52 @ 0x34
  7424. 8003758: 4619 mov r1, r3
  7425. 800375a: 481e ldr r0, [pc, #120] @ (80037d4 <HAL_ADC_MspInit+0x2a8>)
  7426. 800375c: f007 f8dc bl 800a918 <HAL_GPIO_Init>
  7427. hdma_adc2.Instance = DMA1_Stream1;
  7428. 8003760: 4b20 ldr r3, [pc, #128] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7429. 8003762: 4a21 ldr r2, [pc, #132] @ (80037e8 <HAL_ADC_MspInit+0x2bc>)
  7430. 8003764: 601a str r2, [r3, #0]
  7431. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  7432. 8003766: 4b1f ldr r3, [pc, #124] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7433. 8003768: 220a movs r2, #10
  7434. 800376a: 605a str r2, [r3, #4]
  7435. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7436. 800376c: 4b1d ldr r3, [pc, #116] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7437. 800376e: 2200 movs r2, #0
  7438. 8003770: 609a str r2, [r3, #8]
  7439. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  7440. 8003772: 4b1c ldr r3, [pc, #112] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7441. 8003774: 2200 movs r2, #0
  7442. 8003776: 60da str r2, [r3, #12]
  7443. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  7444. 8003778: 4b1a ldr r3, [pc, #104] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7445. 800377a: f44f 6280 mov.w r2, #1024 @ 0x400
  7446. 800377e: 611a str r2, [r3, #16]
  7447. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7448. 8003780: 4b18 ldr r3, [pc, #96] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7449. 8003782: f44f 6200 mov.w r2, #2048 @ 0x800
  7450. 8003786: 615a str r2, [r3, #20]
  7451. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7452. 8003788: 4b16 ldr r3, [pc, #88] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7453. 800378a: f44f 5200 mov.w r2, #8192 @ 0x2000
  7454. 800378e: 619a str r2, [r3, #24]
  7455. hdma_adc2.Init.Mode = DMA_NORMAL;
  7456. 8003790: 4b14 ldr r3, [pc, #80] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7457. 8003792: 2200 movs r2, #0
  7458. 8003794: 61da str r2, [r3, #28]
  7459. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  7460. 8003796: 4b13 ldr r3, [pc, #76] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7461. 8003798: 2200 movs r2, #0
  7462. 800379a: 621a str r2, [r3, #32]
  7463. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7464. 800379c: 4b11 ldr r3, [pc, #68] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7465. 800379e: 2200 movs r2, #0
  7466. 80037a0: 625a str r2, [r3, #36] @ 0x24
  7467. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  7468. 80037a2: 4810 ldr r0, [pc, #64] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7469. 80037a4: f004 fa7c bl 8007ca0 <HAL_DMA_Init>
  7470. 80037a8: 4603 mov r3, r0
  7471. 80037aa: 2b00 cmp r3, #0
  7472. 80037ac: d001 beq.n 80037b2 <HAL_ADC_MspInit+0x286>
  7473. Error_Handler();
  7474. 80037ae: f7fe fbeb bl 8001f88 <Error_Handler>
  7475. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  7476. 80037b2: 687b ldr r3, [r7, #4]
  7477. 80037b4: 4a0b ldr r2, [pc, #44] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7478. 80037b6: 64da str r2, [r3, #76] @ 0x4c
  7479. 80037b8: 4a0a ldr r2, [pc, #40] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7480. 80037ba: 687b ldr r3, [r7, #4]
  7481. 80037bc: 6393 str r3, [r2, #56] @ 0x38
  7482. }
  7483. 80037be: e07f b.n 80038c0 <HAL_ADC_MspInit+0x394>
  7484. 80037c0: 40022000 .word 0x40022000
  7485. 80037c4: 240008b4 .word 0x240008b4
  7486. 80037c8: 58024400 .word 0x58024400
  7487. 80037cc: 58020000 .word 0x58020000
  7488. 80037d0: 58020800 .word 0x58020800
  7489. 80037d4: 58020400 .word 0x58020400
  7490. 80037d8: 2400026c .word 0x2400026c
  7491. 80037dc: 40020010 .word 0x40020010
  7492. 80037e0: 40022100 .word 0x40022100
  7493. 80037e4: 240002e4 .word 0x240002e4
  7494. 80037e8: 40020028 .word 0x40020028
  7495. else if(hadc->Instance==ADC3)
  7496. 80037ec: 687b ldr r3, [r7, #4]
  7497. 80037ee: 681b ldr r3, [r3, #0]
  7498. 80037f0: 4a35 ldr r2, [pc, #212] @ (80038c8 <HAL_ADC_MspInit+0x39c>)
  7499. 80037f2: 4293 cmp r3, r2
  7500. 80037f4: d164 bne.n 80038c0 <HAL_ADC_MspInit+0x394>
  7501. __HAL_RCC_ADC3_CLK_ENABLE();
  7502. 80037f6: 4b35 ldr r3, [pc, #212] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7503. 80037f8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7504. 80037fc: 4a33 ldr r2, [pc, #204] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7505. 80037fe: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  7506. 8003802: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7507. 8003806: 4b31 ldr r3, [pc, #196] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7508. 8003808: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7509. 800380c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  7510. 8003810: 613b str r3, [r7, #16]
  7511. 8003812: 693b ldr r3, [r7, #16]
  7512. __HAL_RCC_GPIOC_CLK_ENABLE();
  7513. 8003814: 4b2d ldr r3, [pc, #180] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7514. 8003816: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7515. 800381a: 4a2c ldr r2, [pc, #176] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7516. 800381c: f043 0304 orr.w r3, r3, #4
  7517. 8003820: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7518. 8003824: 4b29 ldr r3, [pc, #164] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7519. 8003826: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7520. 800382a: f003 0304 and.w r3, r3, #4
  7521. 800382e: 60fb str r3, [r7, #12]
  7522. 8003830: 68fb ldr r3, [r7, #12]
  7523. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7524. 8003832: 2303 movs r3, #3
  7525. 8003834: 637b str r3, [r7, #52] @ 0x34
  7526. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7527. 8003836: 2303 movs r3, #3
  7528. 8003838: 63bb str r3, [r7, #56] @ 0x38
  7529. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7530. 800383a: 2300 movs r3, #0
  7531. 800383c: 63fb str r3, [r7, #60] @ 0x3c
  7532. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7533. 800383e: f107 0334 add.w r3, r7, #52 @ 0x34
  7534. 8003842: 4619 mov r1, r3
  7535. 8003844: 4822 ldr r0, [pc, #136] @ (80038d0 <HAL_ADC_MspInit+0x3a4>)
  7536. 8003846: f007 f867 bl 800a918 <HAL_GPIO_Init>
  7537. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  7538. 800384a: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  7539. 800384e: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  7540. 8003852: f001 fec5 bl 80055e0 <HAL_SYSCFG_AnalogSwitchConfig>
  7541. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  7542. 8003856: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  7543. 800385a: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  7544. 800385e: f001 febf bl 80055e0 <HAL_SYSCFG_AnalogSwitchConfig>
  7545. hdma_adc3.Instance = DMA1_Stream2;
  7546. 8003862: 4b1c ldr r3, [pc, #112] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7547. 8003864: 4a1c ldr r2, [pc, #112] @ (80038d8 <HAL_ADC_MspInit+0x3ac>)
  7548. 8003866: 601a str r2, [r3, #0]
  7549. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  7550. 8003868: 4b1a ldr r3, [pc, #104] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7551. 800386a: 2273 movs r2, #115 @ 0x73
  7552. 800386c: 605a str r2, [r3, #4]
  7553. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7554. 800386e: 4b19 ldr r3, [pc, #100] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7555. 8003870: 2200 movs r2, #0
  7556. 8003872: 609a str r2, [r3, #8]
  7557. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  7558. 8003874: 4b17 ldr r3, [pc, #92] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7559. 8003876: 2200 movs r2, #0
  7560. 8003878: 60da str r2, [r3, #12]
  7561. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  7562. 800387a: 4b16 ldr r3, [pc, #88] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7563. 800387c: f44f 6280 mov.w r2, #1024 @ 0x400
  7564. 8003880: 611a str r2, [r3, #16]
  7565. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7566. 8003882: 4b14 ldr r3, [pc, #80] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7567. 8003884: f44f 6200 mov.w r2, #2048 @ 0x800
  7568. 8003888: 615a str r2, [r3, #20]
  7569. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7570. 800388a: 4b12 ldr r3, [pc, #72] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7571. 800388c: f44f 5200 mov.w r2, #8192 @ 0x2000
  7572. 8003890: 619a str r2, [r3, #24]
  7573. hdma_adc3.Init.Mode = DMA_NORMAL;
  7574. 8003892: 4b10 ldr r3, [pc, #64] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7575. 8003894: 2200 movs r2, #0
  7576. 8003896: 61da str r2, [r3, #28]
  7577. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  7578. 8003898: 4b0e ldr r3, [pc, #56] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7579. 800389a: 2200 movs r2, #0
  7580. 800389c: 621a str r2, [r3, #32]
  7581. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7582. 800389e: 4b0d ldr r3, [pc, #52] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7583. 80038a0: 2200 movs r2, #0
  7584. 80038a2: 625a str r2, [r3, #36] @ 0x24
  7585. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  7586. 80038a4: 480b ldr r0, [pc, #44] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7587. 80038a6: f004 f9fb bl 8007ca0 <HAL_DMA_Init>
  7588. 80038aa: 4603 mov r3, r0
  7589. 80038ac: 2b00 cmp r3, #0
  7590. 80038ae: d001 beq.n 80038b4 <HAL_ADC_MspInit+0x388>
  7591. Error_Handler();
  7592. 80038b0: f7fe fb6a bl 8001f88 <Error_Handler>
  7593. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  7594. 80038b4: 687b ldr r3, [r7, #4]
  7595. 80038b6: 4a07 ldr r2, [pc, #28] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7596. 80038b8: 64da str r2, [r3, #76] @ 0x4c
  7597. 80038ba: 4a06 ldr r2, [pc, #24] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7598. 80038bc: 687b ldr r3, [r7, #4]
  7599. 80038be: 6393 str r3, [r2, #56] @ 0x38
  7600. }
  7601. 80038c0: bf00 nop
  7602. 80038c2: 3748 adds r7, #72 @ 0x48
  7603. 80038c4: 46bd mov sp, r7
  7604. 80038c6: bd80 pop {r7, pc}
  7605. 80038c8: 58026000 .word 0x58026000
  7606. 80038cc: 58024400 .word 0x58024400
  7607. 80038d0: 58020800 .word 0x58020800
  7608. 80038d4: 2400035c .word 0x2400035c
  7609. 80038d8: 40020040 .word 0x40020040
  7610. 080038dc <HAL_COMP_MspInit>:
  7611. * This function configures the hardware resources used in this example
  7612. * @param hcomp: COMP handle pointer
  7613. * @retval None
  7614. */
  7615. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  7616. {
  7617. 80038dc: b580 push {r7, lr}
  7618. 80038de: b08a sub sp, #40 @ 0x28
  7619. 80038e0: af00 add r7, sp, #0
  7620. 80038e2: 6078 str r0, [r7, #4]
  7621. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7622. 80038e4: f107 0314 add.w r3, r7, #20
  7623. 80038e8: 2200 movs r2, #0
  7624. 80038ea: 601a str r2, [r3, #0]
  7625. 80038ec: 605a str r2, [r3, #4]
  7626. 80038ee: 609a str r2, [r3, #8]
  7627. 80038f0: 60da str r2, [r3, #12]
  7628. 80038f2: 611a str r2, [r3, #16]
  7629. if(hcomp->Instance==COMP1)
  7630. 80038f4: 687b ldr r3, [r7, #4]
  7631. 80038f6: 681b ldr r3, [r3, #0]
  7632. 80038f8: 4a18 ldr r2, [pc, #96] @ (800395c <HAL_COMP_MspInit+0x80>)
  7633. 80038fa: 4293 cmp r3, r2
  7634. 80038fc: d129 bne.n 8003952 <HAL_COMP_MspInit+0x76>
  7635. {
  7636. /* USER CODE BEGIN COMP1_MspInit 0 */
  7637. /* USER CODE END COMP1_MspInit 0 */
  7638. /* Peripheral clock enable */
  7639. __HAL_RCC_COMP12_CLK_ENABLE();
  7640. 80038fe: 4b18 ldr r3, [pc, #96] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7641. 8003900: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7642. 8003904: 4a16 ldr r2, [pc, #88] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7643. 8003906: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  7644. 800390a: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7645. 800390e: 4b14 ldr r3, [pc, #80] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7646. 8003910: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7647. 8003914: f403 4380 and.w r3, r3, #16384 @ 0x4000
  7648. 8003918: 613b str r3, [r7, #16]
  7649. 800391a: 693b ldr r3, [r7, #16]
  7650. __HAL_RCC_GPIOB_CLK_ENABLE();
  7651. 800391c: 4b10 ldr r3, [pc, #64] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7652. 800391e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7653. 8003922: 4a0f ldr r2, [pc, #60] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7654. 8003924: f043 0302 orr.w r3, r3, #2
  7655. 8003928: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7656. 800392c: 4b0c ldr r3, [pc, #48] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7657. 800392e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7658. 8003932: f003 0302 and.w r3, r3, #2
  7659. 8003936: 60fb str r3, [r7, #12]
  7660. 8003938: 68fb ldr r3, [r7, #12]
  7661. /**COMP1 GPIO Configuration
  7662. PB2 ------> COMP1_INP
  7663. */
  7664. GPIO_InitStruct.Pin = GPIO_PIN_2;
  7665. 800393a: 2304 movs r3, #4
  7666. 800393c: 617b str r3, [r7, #20]
  7667. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7668. 800393e: 2303 movs r3, #3
  7669. 8003940: 61bb str r3, [r7, #24]
  7670. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7671. 8003942: 2300 movs r3, #0
  7672. 8003944: 61fb str r3, [r7, #28]
  7673. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7674. 8003946: f107 0314 add.w r3, r7, #20
  7675. 800394a: 4619 mov r1, r3
  7676. 800394c: 4805 ldr r0, [pc, #20] @ (8003964 <HAL_COMP_MspInit+0x88>)
  7677. 800394e: f006 ffe3 bl 800a918 <HAL_GPIO_Init>
  7678. /* USER CODE BEGIN COMP1_MspInit 1 */
  7679. /* USER CODE END COMP1_MspInit 1 */
  7680. }
  7681. }
  7682. 8003952: bf00 nop
  7683. 8003954: 3728 adds r7, #40 @ 0x28
  7684. 8003956: 46bd mov sp, r7
  7685. 8003958: bd80 pop {r7, pc}
  7686. 800395a: bf00 nop
  7687. 800395c: 5800380c .word 0x5800380c
  7688. 8003960: 58024400 .word 0x58024400
  7689. 8003964: 58020400 .word 0x58020400
  7690. 08003968 <HAL_CRC_MspInit>:
  7691. * This function configures the hardware resources used in this example
  7692. * @param hcrc: CRC handle pointer
  7693. * @retval None
  7694. */
  7695. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  7696. {
  7697. 8003968: b480 push {r7}
  7698. 800396a: b085 sub sp, #20
  7699. 800396c: af00 add r7, sp, #0
  7700. 800396e: 6078 str r0, [r7, #4]
  7701. if(hcrc->Instance==CRC)
  7702. 8003970: 687b ldr r3, [r7, #4]
  7703. 8003972: 681b ldr r3, [r3, #0]
  7704. 8003974: 4a0b ldr r2, [pc, #44] @ (80039a4 <HAL_CRC_MspInit+0x3c>)
  7705. 8003976: 4293 cmp r3, r2
  7706. 8003978: d10e bne.n 8003998 <HAL_CRC_MspInit+0x30>
  7707. {
  7708. /* USER CODE BEGIN CRC_MspInit 0 */
  7709. /* USER CODE END CRC_MspInit 0 */
  7710. /* Peripheral clock enable */
  7711. __HAL_RCC_CRC_CLK_ENABLE();
  7712. 800397a: 4b0b ldr r3, [pc, #44] @ (80039a8 <HAL_CRC_MspInit+0x40>)
  7713. 800397c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7714. 8003980: 4a09 ldr r2, [pc, #36] @ (80039a8 <HAL_CRC_MspInit+0x40>)
  7715. 8003982: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  7716. 8003986: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7717. 800398a: 4b07 ldr r3, [pc, #28] @ (80039a8 <HAL_CRC_MspInit+0x40>)
  7718. 800398c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7719. 8003990: f403 2300 and.w r3, r3, #524288 @ 0x80000
  7720. 8003994: 60fb str r3, [r7, #12]
  7721. 8003996: 68fb ldr r3, [r7, #12]
  7722. /* USER CODE BEGIN CRC_MspInit 1 */
  7723. /* USER CODE END CRC_MspInit 1 */
  7724. }
  7725. }
  7726. 8003998: bf00 nop
  7727. 800399a: 3714 adds r7, #20
  7728. 800399c: 46bd mov sp, r7
  7729. 800399e: f85d 7b04 ldr.w r7, [sp], #4
  7730. 80039a2: 4770 bx lr
  7731. 80039a4: 58024c00 .word 0x58024c00
  7732. 80039a8: 58024400 .word 0x58024400
  7733. 080039ac <HAL_DAC_MspInit>:
  7734. * This function configures the hardware resources used in this example
  7735. * @param hdac: DAC handle pointer
  7736. * @retval None
  7737. */
  7738. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  7739. {
  7740. 80039ac: b580 push {r7, lr}
  7741. 80039ae: b08a sub sp, #40 @ 0x28
  7742. 80039b0: af00 add r7, sp, #0
  7743. 80039b2: 6078 str r0, [r7, #4]
  7744. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7745. 80039b4: f107 0314 add.w r3, r7, #20
  7746. 80039b8: 2200 movs r2, #0
  7747. 80039ba: 601a str r2, [r3, #0]
  7748. 80039bc: 605a str r2, [r3, #4]
  7749. 80039be: 609a str r2, [r3, #8]
  7750. 80039c0: 60da str r2, [r3, #12]
  7751. 80039c2: 611a str r2, [r3, #16]
  7752. if(hdac->Instance==DAC1)
  7753. 80039c4: 687b ldr r3, [r7, #4]
  7754. 80039c6: 681b ldr r3, [r3, #0]
  7755. 80039c8: 4a1c ldr r2, [pc, #112] @ (8003a3c <HAL_DAC_MspInit+0x90>)
  7756. 80039ca: 4293 cmp r3, r2
  7757. 80039cc: d131 bne.n 8003a32 <HAL_DAC_MspInit+0x86>
  7758. {
  7759. /* USER CODE BEGIN DAC1_MspInit 0 */
  7760. /* USER CODE END DAC1_MspInit 0 */
  7761. /* Peripheral clock enable */
  7762. __HAL_RCC_DAC12_CLK_ENABLE();
  7763. 80039ce: 4b1c ldr r3, [pc, #112] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7764. 80039d0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7765. 80039d4: 4a1a ldr r2, [pc, #104] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7766. 80039d6: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  7767. 80039da: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7768. 80039de: 4b18 ldr r3, [pc, #96] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7769. 80039e0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7770. 80039e4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  7771. 80039e8: 613b str r3, [r7, #16]
  7772. 80039ea: 693b ldr r3, [r7, #16]
  7773. __HAL_RCC_GPIOA_CLK_ENABLE();
  7774. 80039ec: 4b14 ldr r3, [pc, #80] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7775. 80039ee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7776. 80039f2: 4a13 ldr r2, [pc, #76] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7777. 80039f4: f043 0301 orr.w r3, r3, #1
  7778. 80039f8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7779. 80039fc: 4b10 ldr r3, [pc, #64] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7780. 80039fe: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7781. 8003a02: f003 0301 and.w r3, r3, #1
  7782. 8003a06: 60fb str r3, [r7, #12]
  7783. 8003a08: 68fb ldr r3, [r7, #12]
  7784. /**DAC1 GPIO Configuration
  7785. PA4 ------> DAC1_OUT1
  7786. PA5 ------> DAC1_OUT2
  7787. */
  7788. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  7789. 8003a0a: 2330 movs r3, #48 @ 0x30
  7790. 8003a0c: 617b str r3, [r7, #20]
  7791. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7792. 8003a0e: 2303 movs r3, #3
  7793. 8003a10: 61bb str r3, [r7, #24]
  7794. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7795. 8003a12: 2300 movs r3, #0
  7796. 8003a14: 61fb str r3, [r7, #28]
  7797. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7798. 8003a16: f107 0314 add.w r3, r7, #20
  7799. 8003a1a: 4619 mov r1, r3
  7800. 8003a1c: 4809 ldr r0, [pc, #36] @ (8003a44 <HAL_DAC_MspInit+0x98>)
  7801. 8003a1e: f006 ff7b bl 800a918 <HAL_GPIO_Init>
  7802. /* DAC1 interrupt Init */
  7803. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  7804. 8003a22: 2200 movs r2, #0
  7805. 8003a24: 2105 movs r1, #5
  7806. 8003a26: 2036 movs r0, #54 @ 0x36
  7807. 8003a28: f003 fc44 bl 80072b4 <HAL_NVIC_SetPriority>
  7808. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  7809. 8003a2c: 2036 movs r0, #54 @ 0x36
  7810. 8003a2e: f003 fc5b bl 80072e8 <HAL_NVIC_EnableIRQ>
  7811. /* USER CODE BEGIN DAC1_MspInit 1 */
  7812. /* USER CODE END DAC1_MspInit 1 */
  7813. }
  7814. }
  7815. 8003a32: bf00 nop
  7816. 8003a34: 3728 adds r7, #40 @ 0x28
  7817. 8003a36: 46bd mov sp, r7
  7818. 8003a38: bd80 pop {r7, pc}
  7819. 8003a3a: bf00 nop
  7820. 8003a3c: 40007400 .word 0x40007400
  7821. 8003a40: 58024400 .word 0x58024400
  7822. 8003a44: 58020000 .word 0x58020000
  7823. 08003a48 <HAL_RNG_MspInit>:
  7824. * This function configures the hardware resources used in this example
  7825. * @param hrng: RNG handle pointer
  7826. * @retval None
  7827. */
  7828. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  7829. {
  7830. 8003a48: b580 push {r7, lr}
  7831. 8003a4a: b0b4 sub sp, #208 @ 0xd0
  7832. 8003a4c: af00 add r7, sp, #0
  7833. 8003a4e: 6078 str r0, [r7, #4]
  7834. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7835. 8003a50: f107 0310 add.w r3, r7, #16
  7836. 8003a54: 22c0 movs r2, #192 @ 0xc0
  7837. 8003a56: 2100 movs r1, #0
  7838. 8003a58: 4618 mov r0, r3
  7839. 8003a5a: f014 f9a4 bl 8017da6 <memset>
  7840. if(hrng->Instance==RNG)
  7841. 8003a5e: 687b ldr r3, [r7, #4]
  7842. 8003a60: 681b ldr r3, [r3, #0]
  7843. 8003a62: 4a14 ldr r2, [pc, #80] @ (8003ab4 <HAL_RNG_MspInit+0x6c>)
  7844. 8003a64: 4293 cmp r3, r2
  7845. 8003a66: d121 bne.n 8003aac <HAL_RNG_MspInit+0x64>
  7846. /* USER CODE END RNG_MspInit 0 */
  7847. /** Initializes the peripherals clock
  7848. */
  7849. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  7850. 8003a68: f44f 3200 mov.w r2, #131072 @ 0x20000
  7851. 8003a6c: f04f 0300 mov.w r3, #0
  7852. 8003a70: e9c7 2304 strd r2, r3, [r7, #16]
  7853. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  7854. 8003a74: 2300 movs r3, #0
  7855. 8003a76: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  7856. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7857. 8003a7a: f107 0310 add.w r3, r7, #16
  7858. 8003a7e: 4618 mov r0, r3
  7859. 8003a80: f008 fb30 bl 800c0e4 <HAL_RCCEx_PeriphCLKConfig>
  7860. 8003a84: 4603 mov r3, r0
  7861. 8003a86: 2b00 cmp r3, #0
  7862. 8003a88: d001 beq.n 8003a8e <HAL_RNG_MspInit+0x46>
  7863. {
  7864. Error_Handler();
  7865. 8003a8a: f7fe fa7d bl 8001f88 <Error_Handler>
  7866. }
  7867. /* Peripheral clock enable */
  7868. __HAL_RCC_RNG_CLK_ENABLE();
  7869. 8003a8e: 4b0a ldr r3, [pc, #40] @ (8003ab8 <HAL_RNG_MspInit+0x70>)
  7870. 8003a90: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7871. 8003a94: 4a08 ldr r2, [pc, #32] @ (8003ab8 <HAL_RNG_MspInit+0x70>)
  7872. 8003a96: f043 0340 orr.w r3, r3, #64 @ 0x40
  7873. 8003a9a: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  7874. 8003a9e: 4b06 ldr r3, [pc, #24] @ (8003ab8 <HAL_RNG_MspInit+0x70>)
  7875. 8003aa0: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7876. 8003aa4: f003 0340 and.w r3, r3, #64 @ 0x40
  7877. 8003aa8: 60fb str r3, [r7, #12]
  7878. 8003aaa: 68fb ldr r3, [r7, #12]
  7879. /* USER CODE BEGIN RNG_MspInit 1 */
  7880. /* USER CODE END RNG_MspInit 1 */
  7881. }
  7882. }
  7883. 8003aac: bf00 nop
  7884. 8003aae: 37d0 adds r7, #208 @ 0xd0
  7885. 8003ab0: 46bd mov sp, r7
  7886. 8003ab2: bd80 pop {r7, pc}
  7887. 8003ab4: 48021800 .word 0x48021800
  7888. 8003ab8: 58024400 .word 0x58024400
  7889. 08003abc <HAL_TIM_PWM_MspInit>:
  7890. * This function configures the hardware resources used in this example
  7891. * @param htim_pwm: TIM_PWM handle pointer
  7892. * @retval None
  7893. */
  7894. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  7895. {
  7896. 8003abc: b480 push {r7}
  7897. 8003abe: b085 sub sp, #20
  7898. 8003ac0: af00 add r7, sp, #0
  7899. 8003ac2: 6078 str r0, [r7, #4]
  7900. if(htim_pwm->Instance==TIM1)
  7901. 8003ac4: 687b ldr r3, [r7, #4]
  7902. 8003ac6: 681b ldr r3, [r3, #0]
  7903. 8003ac8: 4a16 ldr r2, [pc, #88] @ (8003b24 <HAL_TIM_PWM_MspInit+0x68>)
  7904. 8003aca: 4293 cmp r3, r2
  7905. 8003acc: d10f bne.n 8003aee <HAL_TIM_PWM_MspInit+0x32>
  7906. {
  7907. /* USER CODE BEGIN TIM1_MspInit 0 */
  7908. /* USER CODE END TIM1_MspInit 0 */
  7909. /* Peripheral clock enable */
  7910. __HAL_RCC_TIM1_CLK_ENABLE();
  7911. 8003ace: 4b16 ldr r3, [pc, #88] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7912. 8003ad0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7913. 8003ad4: 4a14 ldr r2, [pc, #80] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7914. 8003ad6: f043 0301 orr.w r3, r3, #1
  7915. 8003ada: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  7916. 8003ade: 4b12 ldr r3, [pc, #72] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7917. 8003ae0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7918. 8003ae4: f003 0301 and.w r3, r3, #1
  7919. 8003ae8: 60fb str r3, [r7, #12]
  7920. 8003aea: 68fb ldr r3, [r7, #12]
  7921. /* USER CODE BEGIN TIM3_MspInit 1 */
  7922. /* USER CODE END TIM3_MspInit 1 */
  7923. }
  7924. }
  7925. 8003aec: e013 b.n 8003b16 <HAL_TIM_PWM_MspInit+0x5a>
  7926. else if(htim_pwm->Instance==TIM3)
  7927. 8003aee: 687b ldr r3, [r7, #4]
  7928. 8003af0: 681b ldr r3, [r3, #0]
  7929. 8003af2: 4a0e ldr r2, [pc, #56] @ (8003b2c <HAL_TIM_PWM_MspInit+0x70>)
  7930. 8003af4: 4293 cmp r3, r2
  7931. 8003af6: d10e bne.n 8003b16 <HAL_TIM_PWM_MspInit+0x5a>
  7932. __HAL_RCC_TIM3_CLK_ENABLE();
  7933. 8003af8: 4b0b ldr r3, [pc, #44] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7934. 8003afa: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7935. 8003afe: 4a0a ldr r2, [pc, #40] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7936. 8003b00: f043 0302 orr.w r3, r3, #2
  7937. 8003b04: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7938. 8003b08: 4b07 ldr r3, [pc, #28] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7939. 8003b0a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7940. 8003b0e: f003 0302 and.w r3, r3, #2
  7941. 8003b12: 60bb str r3, [r7, #8]
  7942. 8003b14: 68bb ldr r3, [r7, #8]
  7943. }
  7944. 8003b16: bf00 nop
  7945. 8003b18: 3714 adds r7, #20
  7946. 8003b1a: 46bd mov sp, r7
  7947. 8003b1c: f85d 7b04 ldr.w r7, [sp], #4
  7948. 8003b20: 4770 bx lr
  7949. 8003b22: bf00 nop
  7950. 8003b24: 40010000 .word 0x40010000
  7951. 8003b28: 58024400 .word 0x58024400
  7952. 8003b2c: 40000400 .word 0x40000400
  7953. 08003b30 <HAL_TIM_Base_MspInit>:
  7954. * This function configures the hardware resources used in this example
  7955. * @param htim_base: TIM_Base handle pointer
  7956. * @retval None
  7957. */
  7958. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  7959. {
  7960. 8003b30: b580 push {r7, lr}
  7961. 8003b32: b08c sub sp, #48 @ 0x30
  7962. 8003b34: af00 add r7, sp, #0
  7963. 8003b36: 6078 str r0, [r7, #4]
  7964. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7965. 8003b38: f107 031c add.w r3, r7, #28
  7966. 8003b3c: 2200 movs r2, #0
  7967. 8003b3e: 601a str r2, [r3, #0]
  7968. 8003b40: 605a str r2, [r3, #4]
  7969. 8003b42: 609a str r2, [r3, #8]
  7970. 8003b44: 60da str r2, [r3, #12]
  7971. 8003b46: 611a str r2, [r3, #16]
  7972. if(htim_base->Instance==TIM2)
  7973. 8003b48: 687b ldr r3, [r7, #4]
  7974. 8003b4a: 681b ldr r3, [r3, #0]
  7975. 8003b4c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  7976. 8003b50: d137 bne.n 8003bc2 <HAL_TIM_Base_MspInit+0x92>
  7977. {
  7978. /* USER CODE BEGIN TIM2_MspInit 0 */
  7979. /* USER CODE END TIM2_MspInit 0 */
  7980. /* Peripheral clock enable */
  7981. __HAL_RCC_TIM2_CLK_ENABLE();
  7982. 8003b52: 4b46 ldr r3, [pc, #280] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7983. 8003b54: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7984. 8003b58: 4a44 ldr r2, [pc, #272] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7985. 8003b5a: f043 0301 orr.w r3, r3, #1
  7986. 8003b5e: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7987. 8003b62: 4b42 ldr r3, [pc, #264] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7988. 8003b64: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7989. 8003b68: f003 0301 and.w r3, r3, #1
  7990. 8003b6c: 61bb str r3, [r7, #24]
  7991. 8003b6e: 69bb ldr r3, [r7, #24]
  7992. __HAL_RCC_GPIOB_CLK_ENABLE();
  7993. 8003b70: 4b3e ldr r3, [pc, #248] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7994. 8003b72: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7995. 8003b76: 4a3d ldr r2, [pc, #244] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7996. 8003b78: f043 0302 orr.w r3, r3, #2
  7997. 8003b7c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7998. 8003b80: 4b3a ldr r3, [pc, #232] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7999. 8003b82: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8000. 8003b86: f003 0302 and.w r3, r3, #2
  8001. 8003b8a: 617b str r3, [r7, #20]
  8002. 8003b8c: 697b ldr r3, [r7, #20]
  8003. /**TIM2 GPIO Configuration
  8004. PB10 ------> TIM2_CH3
  8005. PB11 ------> TIM2_CH4
  8006. */
  8007. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  8008. 8003b8e: f44f 6340 mov.w r3, #3072 @ 0xc00
  8009. 8003b92: 61fb str r3, [r7, #28]
  8010. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8011. 8003b94: 2302 movs r3, #2
  8012. 8003b96: 623b str r3, [r7, #32]
  8013. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8014. 8003b98: 2300 movs r3, #0
  8015. 8003b9a: 627b str r3, [r7, #36] @ 0x24
  8016. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8017. 8003b9c: 2300 movs r3, #0
  8018. 8003b9e: 62bb str r3, [r7, #40] @ 0x28
  8019. GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
  8020. 8003ba0: 2301 movs r3, #1
  8021. 8003ba2: 62fb str r3, [r7, #44] @ 0x2c
  8022. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8023. 8003ba4: f107 031c add.w r3, r7, #28
  8024. 8003ba8: 4619 mov r1, r3
  8025. 8003baa: 4831 ldr r0, [pc, #196] @ (8003c70 <HAL_TIM_Base_MspInit+0x140>)
  8026. 8003bac: f006 feb4 bl 800a918 <HAL_GPIO_Init>
  8027. /* TIM2 interrupt Init */
  8028. HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
  8029. 8003bb0: 2200 movs r2, #0
  8030. 8003bb2: 2105 movs r1, #5
  8031. 8003bb4: 201c movs r0, #28
  8032. 8003bb6: f003 fb7d bl 80072b4 <HAL_NVIC_SetPriority>
  8033. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  8034. 8003bba: 201c movs r0, #28
  8035. 8003bbc: f003 fb94 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8036. /* USER CODE BEGIN TIM8_MspInit 1 */
  8037. /* USER CODE END TIM8_MspInit 1 */
  8038. }
  8039. }
  8040. 8003bc0: e050 b.n 8003c64 <HAL_TIM_Base_MspInit+0x134>
  8041. else if(htim_base->Instance==TIM4)
  8042. 8003bc2: 687b ldr r3, [r7, #4]
  8043. 8003bc4: 681b ldr r3, [r3, #0]
  8044. 8003bc6: 4a2b ldr r2, [pc, #172] @ (8003c74 <HAL_TIM_Base_MspInit+0x144>)
  8045. 8003bc8: 4293 cmp r3, r2
  8046. 8003bca: d137 bne.n 8003c3c <HAL_TIM_Base_MspInit+0x10c>
  8047. __HAL_RCC_TIM4_CLK_ENABLE();
  8048. 8003bcc: 4b27 ldr r3, [pc, #156] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8049. 8003bce: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8050. 8003bd2: 4a26 ldr r2, [pc, #152] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8051. 8003bd4: f043 0304 orr.w r3, r3, #4
  8052. 8003bd8: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8053. 8003bdc: 4b23 ldr r3, [pc, #140] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8054. 8003bde: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8055. 8003be2: f003 0304 and.w r3, r3, #4
  8056. 8003be6: 613b str r3, [r7, #16]
  8057. 8003be8: 693b ldr r3, [r7, #16]
  8058. __HAL_RCC_GPIOD_CLK_ENABLE();
  8059. 8003bea: 4b20 ldr r3, [pc, #128] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8060. 8003bec: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8061. 8003bf0: 4a1e ldr r2, [pc, #120] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8062. 8003bf2: f043 0308 orr.w r3, r3, #8
  8063. 8003bf6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8064. 8003bfa: 4b1c ldr r3, [pc, #112] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8065. 8003bfc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8066. 8003c00: f003 0308 and.w r3, r3, #8
  8067. 8003c04: 60fb str r3, [r7, #12]
  8068. 8003c06: 68fb ldr r3, [r7, #12]
  8069. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  8070. 8003c08: f44f 4340 mov.w r3, #49152 @ 0xc000
  8071. 8003c0c: 61fb str r3, [r7, #28]
  8072. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8073. 8003c0e: 2302 movs r3, #2
  8074. 8003c10: 623b str r3, [r7, #32]
  8075. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8076. 8003c12: 2300 movs r3, #0
  8077. 8003c14: 627b str r3, [r7, #36] @ 0x24
  8078. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8079. 8003c16: 2300 movs r3, #0
  8080. 8003c18: 62bb str r3, [r7, #40] @ 0x28
  8081. GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
  8082. 8003c1a: 2302 movs r3, #2
  8083. 8003c1c: 62fb str r3, [r7, #44] @ 0x2c
  8084. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  8085. 8003c1e: f107 031c add.w r3, r7, #28
  8086. 8003c22: 4619 mov r1, r3
  8087. 8003c24: 4814 ldr r0, [pc, #80] @ (8003c78 <HAL_TIM_Base_MspInit+0x148>)
  8088. 8003c26: f006 fe77 bl 800a918 <HAL_GPIO_Init>
  8089. HAL_NVIC_SetPriority(TIM4_IRQn, 5, 0);
  8090. 8003c2a: 2200 movs r2, #0
  8091. 8003c2c: 2105 movs r1, #5
  8092. 8003c2e: 201e movs r0, #30
  8093. 8003c30: f003 fb40 bl 80072b4 <HAL_NVIC_SetPriority>
  8094. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  8095. 8003c34: 201e movs r0, #30
  8096. 8003c36: f003 fb57 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8097. }
  8098. 8003c3a: e013 b.n 8003c64 <HAL_TIM_Base_MspInit+0x134>
  8099. else if(htim_base->Instance==TIM8)
  8100. 8003c3c: 687b ldr r3, [r7, #4]
  8101. 8003c3e: 681b ldr r3, [r3, #0]
  8102. 8003c40: 4a0e ldr r2, [pc, #56] @ (8003c7c <HAL_TIM_Base_MspInit+0x14c>)
  8103. 8003c42: 4293 cmp r3, r2
  8104. 8003c44: d10e bne.n 8003c64 <HAL_TIM_Base_MspInit+0x134>
  8105. __HAL_RCC_TIM8_CLK_ENABLE();
  8106. 8003c46: 4b09 ldr r3, [pc, #36] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8107. 8003c48: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8108. 8003c4c: 4a07 ldr r2, [pc, #28] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8109. 8003c4e: f043 0302 orr.w r3, r3, #2
  8110. 8003c52: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8111. 8003c56: 4b05 ldr r3, [pc, #20] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8112. 8003c58: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8113. 8003c5c: f003 0302 and.w r3, r3, #2
  8114. 8003c60: 60bb str r3, [r7, #8]
  8115. 8003c62: 68bb ldr r3, [r7, #8]
  8116. }
  8117. 8003c64: bf00 nop
  8118. 8003c66: 3730 adds r7, #48 @ 0x30
  8119. 8003c68: 46bd mov sp, r7
  8120. 8003c6a: bd80 pop {r7, pc}
  8121. 8003c6c: 58024400 .word 0x58024400
  8122. 8003c70: 58020400 .word 0x58020400
  8123. 8003c74: 40000800 .word 0x40000800
  8124. 8003c78: 58020c00 .word 0x58020c00
  8125. 8003c7c: 40010400 .word 0x40010400
  8126. 08003c80 <HAL_TIM_MspPostInit>:
  8127. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  8128. {
  8129. 8003c80: b580 push {r7, lr}
  8130. 8003c82: b08a sub sp, #40 @ 0x28
  8131. 8003c84: af00 add r7, sp, #0
  8132. 8003c86: 6078 str r0, [r7, #4]
  8133. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8134. 8003c88: f107 0314 add.w r3, r7, #20
  8135. 8003c8c: 2200 movs r2, #0
  8136. 8003c8e: 601a str r2, [r3, #0]
  8137. 8003c90: 605a str r2, [r3, #4]
  8138. 8003c92: 609a str r2, [r3, #8]
  8139. 8003c94: 60da str r2, [r3, #12]
  8140. 8003c96: 611a str r2, [r3, #16]
  8141. if(htim->Instance==TIM1)
  8142. 8003c98: 687b ldr r3, [r7, #4]
  8143. 8003c9a: 681b ldr r3, [r3, #0]
  8144. 8003c9c: 4a26 ldr r2, [pc, #152] @ (8003d38 <HAL_TIM_MspPostInit+0xb8>)
  8145. 8003c9e: 4293 cmp r3, r2
  8146. 8003ca0: d120 bne.n 8003ce4 <HAL_TIM_MspPostInit+0x64>
  8147. {
  8148. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  8149. /* USER CODE END TIM1_MspPostInit 0 */
  8150. __HAL_RCC_GPIOA_CLK_ENABLE();
  8151. 8003ca2: 4b26 ldr r3, [pc, #152] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8152. 8003ca4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8153. 8003ca8: 4a24 ldr r2, [pc, #144] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8154. 8003caa: f043 0301 orr.w r3, r3, #1
  8155. 8003cae: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8156. 8003cb2: 4b22 ldr r3, [pc, #136] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8157. 8003cb4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8158. 8003cb8: f003 0301 and.w r3, r3, #1
  8159. 8003cbc: 613b str r3, [r7, #16]
  8160. 8003cbe: 693b ldr r3, [r7, #16]
  8161. /**TIM1 GPIO Configuration
  8162. PA9 ------> TIM1_CH2
  8163. */
  8164. GPIO_InitStruct.Pin = GPIO_PIN_9;
  8165. 8003cc0: f44f 7300 mov.w r3, #512 @ 0x200
  8166. 8003cc4: 617b str r3, [r7, #20]
  8167. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8168. 8003cc6: 2302 movs r3, #2
  8169. 8003cc8: 61bb str r3, [r7, #24]
  8170. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8171. 8003cca: 2300 movs r3, #0
  8172. 8003ccc: 61fb str r3, [r7, #28]
  8173. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8174. 8003cce: 2300 movs r3, #0
  8175. 8003cd0: 623b str r3, [r7, #32]
  8176. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  8177. 8003cd2: 2301 movs r3, #1
  8178. 8003cd4: 627b str r3, [r7, #36] @ 0x24
  8179. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8180. 8003cd6: f107 0314 add.w r3, r7, #20
  8181. 8003cda: 4619 mov r1, r3
  8182. 8003cdc: 4818 ldr r0, [pc, #96] @ (8003d40 <HAL_TIM_MspPostInit+0xc0>)
  8183. 8003cde: f006 fe1b bl 800a918 <HAL_GPIO_Init>
  8184. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  8185. /* USER CODE END TIM3_MspPostInit 1 */
  8186. }
  8187. }
  8188. 8003ce2: e024 b.n 8003d2e <HAL_TIM_MspPostInit+0xae>
  8189. else if(htim->Instance==TIM3)
  8190. 8003ce4: 687b ldr r3, [r7, #4]
  8191. 8003ce6: 681b ldr r3, [r3, #0]
  8192. 8003ce8: 4a16 ldr r2, [pc, #88] @ (8003d44 <HAL_TIM_MspPostInit+0xc4>)
  8193. 8003cea: 4293 cmp r3, r2
  8194. 8003cec: d11f bne.n 8003d2e <HAL_TIM_MspPostInit+0xae>
  8195. __HAL_RCC_GPIOC_CLK_ENABLE();
  8196. 8003cee: 4b13 ldr r3, [pc, #76] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8197. 8003cf0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8198. 8003cf4: 4a11 ldr r2, [pc, #68] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8199. 8003cf6: f043 0304 orr.w r3, r3, #4
  8200. 8003cfa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8201. 8003cfe: 4b0f ldr r3, [pc, #60] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8202. 8003d00: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8203. 8003d04: f003 0304 and.w r3, r3, #4
  8204. 8003d08: 60fb str r3, [r7, #12]
  8205. 8003d0a: 68fb ldr r3, [r7, #12]
  8206. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  8207. 8003d0c: f44f 7370 mov.w r3, #960 @ 0x3c0
  8208. 8003d10: 617b str r3, [r7, #20]
  8209. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8210. 8003d12: 2302 movs r3, #2
  8211. 8003d14: 61bb str r3, [r7, #24]
  8212. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8213. 8003d16: 2300 movs r3, #0
  8214. 8003d18: 61fb str r3, [r7, #28]
  8215. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  8216. 8003d1a: 2301 movs r3, #1
  8217. 8003d1c: 623b str r3, [r7, #32]
  8218. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  8219. 8003d1e: 2302 movs r3, #2
  8220. 8003d20: 627b str r3, [r7, #36] @ 0x24
  8221. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8222. 8003d22: f107 0314 add.w r3, r7, #20
  8223. 8003d26: 4619 mov r1, r3
  8224. 8003d28: 4807 ldr r0, [pc, #28] @ (8003d48 <HAL_TIM_MspPostInit+0xc8>)
  8225. 8003d2a: f006 fdf5 bl 800a918 <HAL_GPIO_Init>
  8226. }
  8227. 8003d2e: bf00 nop
  8228. 8003d30: 3728 adds r7, #40 @ 0x28
  8229. 8003d32: 46bd mov sp, r7
  8230. 8003d34: bd80 pop {r7, pc}
  8231. 8003d36: bf00 nop
  8232. 8003d38: 40010000 .word 0x40010000
  8233. 8003d3c: 58024400 .word 0x58024400
  8234. 8003d40: 58020000 .word 0x58020000
  8235. 8003d44: 40000400 .word 0x40000400
  8236. 8003d48: 58020800 .word 0x58020800
  8237. 08003d4c <HAL_UART_MspInit>:
  8238. * This function configures the hardware resources used in this example
  8239. * @param huart: UART handle pointer
  8240. * @retval None
  8241. */
  8242. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  8243. {
  8244. 8003d4c: b580 push {r7, lr}
  8245. 8003d4e: b0bc sub sp, #240 @ 0xf0
  8246. 8003d50: af00 add r7, sp, #0
  8247. 8003d52: 6078 str r0, [r7, #4]
  8248. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8249. 8003d54: f107 03dc add.w r3, r7, #220 @ 0xdc
  8250. 8003d58: 2200 movs r2, #0
  8251. 8003d5a: 601a str r2, [r3, #0]
  8252. 8003d5c: 605a str r2, [r3, #4]
  8253. 8003d5e: 609a str r2, [r3, #8]
  8254. 8003d60: 60da str r2, [r3, #12]
  8255. 8003d62: 611a str r2, [r3, #16]
  8256. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8257. 8003d64: f107 0318 add.w r3, r7, #24
  8258. 8003d68: 22c0 movs r2, #192 @ 0xc0
  8259. 8003d6a: 2100 movs r1, #0
  8260. 8003d6c: 4618 mov r0, r3
  8261. 8003d6e: f014 f81a bl 8017da6 <memset>
  8262. if(huart->Instance==UART8)
  8263. 8003d72: 687b ldr r3, [r7, #4]
  8264. 8003d74: 681b ldr r3, [r3, #0]
  8265. 8003d76: 4a55 ldr r2, [pc, #340] @ (8003ecc <HAL_UART_MspInit+0x180>)
  8266. 8003d78: 4293 cmp r3, r2
  8267. 8003d7a: d14e bne.n 8003e1a <HAL_UART_MspInit+0xce>
  8268. /* USER CODE END UART8_MspInit 0 */
  8269. /** Initializes the peripherals clock
  8270. */
  8271. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  8272. 8003d7c: f04f 0202 mov.w r2, #2
  8273. 8003d80: f04f 0300 mov.w r3, #0
  8274. 8003d84: e9c7 2306 strd r2, r3, [r7, #24]
  8275. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  8276. 8003d88: 2300 movs r3, #0
  8277. 8003d8a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8278. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8279. 8003d8e: f107 0318 add.w r3, r7, #24
  8280. 8003d92: 4618 mov r0, r3
  8281. 8003d94: f008 f9a6 bl 800c0e4 <HAL_RCCEx_PeriphCLKConfig>
  8282. 8003d98: 4603 mov r3, r0
  8283. 8003d9a: 2b00 cmp r3, #0
  8284. 8003d9c: d001 beq.n 8003da2 <HAL_UART_MspInit+0x56>
  8285. {
  8286. Error_Handler();
  8287. 8003d9e: f7fe f8f3 bl 8001f88 <Error_Handler>
  8288. }
  8289. /* Peripheral clock enable */
  8290. __HAL_RCC_UART8_CLK_ENABLE();
  8291. 8003da2: 4b4b ldr r3, [pc, #300] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8292. 8003da4: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8293. 8003da8: 4a49 ldr r2, [pc, #292] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8294. 8003daa: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  8295. 8003dae: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8296. 8003db2: 4b47 ldr r3, [pc, #284] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8297. 8003db4: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8298. 8003db8: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  8299. 8003dbc: 617b str r3, [r7, #20]
  8300. 8003dbe: 697b ldr r3, [r7, #20]
  8301. __HAL_RCC_GPIOE_CLK_ENABLE();
  8302. 8003dc0: 4b43 ldr r3, [pc, #268] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8303. 8003dc2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8304. 8003dc6: 4a42 ldr r2, [pc, #264] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8305. 8003dc8: f043 0310 orr.w r3, r3, #16
  8306. 8003dcc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8307. 8003dd0: 4b3f ldr r3, [pc, #252] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8308. 8003dd2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8309. 8003dd6: f003 0310 and.w r3, r3, #16
  8310. 8003dda: 613b str r3, [r7, #16]
  8311. 8003ddc: 693b ldr r3, [r7, #16]
  8312. /**UART8 GPIO Configuration
  8313. PE0 ------> UART8_RX
  8314. PE1 ------> UART8_TX
  8315. */
  8316. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8317. 8003dde: 2303 movs r3, #3
  8318. 8003de0: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8319. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8320. 8003de4: 2302 movs r3, #2
  8321. 8003de6: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8322. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8323. 8003dea: 2300 movs r3, #0
  8324. 8003dec: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8325. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8326. 8003df0: 2300 movs r3, #0
  8327. 8003df2: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8328. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  8329. 8003df6: 2308 movs r3, #8
  8330. 8003df8: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8331. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  8332. 8003dfc: f107 03dc add.w r3, r7, #220 @ 0xdc
  8333. 8003e00: 4619 mov r1, r3
  8334. 8003e02: 4834 ldr r0, [pc, #208] @ (8003ed4 <HAL_UART_MspInit+0x188>)
  8335. 8003e04: f006 fd88 bl 800a918 <HAL_GPIO_Init>
  8336. /* UART8 interrupt Init */
  8337. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  8338. 8003e08: 2200 movs r2, #0
  8339. 8003e0a: 2105 movs r1, #5
  8340. 8003e0c: 2053 movs r0, #83 @ 0x53
  8341. 8003e0e: f003 fa51 bl 80072b4 <HAL_NVIC_SetPriority>
  8342. HAL_NVIC_EnableIRQ(UART8_IRQn);
  8343. 8003e12: 2053 movs r0, #83 @ 0x53
  8344. 8003e14: f003 fa68 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8345. /* USER CODE BEGIN USART1_MspInit 1 */
  8346. /* USER CODE END USART1_MspInit 1 */
  8347. }
  8348. }
  8349. 8003e18: e053 b.n 8003ec2 <HAL_UART_MspInit+0x176>
  8350. else if(huart->Instance==USART1)
  8351. 8003e1a: 687b ldr r3, [r7, #4]
  8352. 8003e1c: 681b ldr r3, [r3, #0]
  8353. 8003e1e: 4a2e ldr r2, [pc, #184] @ (8003ed8 <HAL_UART_MspInit+0x18c>)
  8354. 8003e20: 4293 cmp r3, r2
  8355. 8003e22: d14e bne.n 8003ec2 <HAL_UART_MspInit+0x176>
  8356. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  8357. 8003e24: f04f 0201 mov.w r2, #1
  8358. 8003e28: f04f 0300 mov.w r3, #0
  8359. 8003e2c: e9c7 2306 strd r2, r3, [r7, #24]
  8360. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  8361. 8003e30: 2300 movs r3, #0
  8362. 8003e32: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  8363. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8364. 8003e36: f107 0318 add.w r3, r7, #24
  8365. 8003e3a: 4618 mov r0, r3
  8366. 8003e3c: f008 f952 bl 800c0e4 <HAL_RCCEx_PeriphCLKConfig>
  8367. 8003e40: 4603 mov r3, r0
  8368. 8003e42: 2b00 cmp r3, #0
  8369. 8003e44: d001 beq.n 8003e4a <HAL_UART_MspInit+0xfe>
  8370. Error_Handler();
  8371. 8003e46: f7fe f89f bl 8001f88 <Error_Handler>
  8372. __HAL_RCC_USART1_CLK_ENABLE();
  8373. 8003e4a: 4b21 ldr r3, [pc, #132] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8374. 8003e4c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8375. 8003e50: 4a1f ldr r2, [pc, #124] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8376. 8003e52: f043 0310 orr.w r3, r3, #16
  8377. 8003e56: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8378. 8003e5a: 4b1d ldr r3, [pc, #116] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8379. 8003e5c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8380. 8003e60: f003 0310 and.w r3, r3, #16
  8381. 8003e64: 60fb str r3, [r7, #12]
  8382. 8003e66: 68fb ldr r3, [r7, #12]
  8383. __HAL_RCC_GPIOB_CLK_ENABLE();
  8384. 8003e68: 4b19 ldr r3, [pc, #100] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8385. 8003e6a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8386. 8003e6e: 4a18 ldr r2, [pc, #96] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8387. 8003e70: f043 0302 orr.w r3, r3, #2
  8388. 8003e74: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8389. 8003e78: 4b15 ldr r3, [pc, #84] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8390. 8003e7a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8391. 8003e7e: f003 0302 and.w r3, r3, #2
  8392. 8003e82: 60bb str r3, [r7, #8]
  8393. 8003e84: 68bb ldr r3, [r7, #8]
  8394. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  8395. 8003e86: f44f 4340 mov.w r3, #49152 @ 0xc000
  8396. 8003e8a: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8397. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8398. 8003e8e: 2302 movs r3, #2
  8399. 8003e90: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8400. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8401. 8003e94: 2300 movs r3, #0
  8402. 8003e96: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8403. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8404. 8003e9a: 2300 movs r3, #0
  8405. 8003e9c: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8406. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  8407. 8003ea0: 2304 movs r3, #4
  8408. 8003ea2: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8409. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8410. 8003ea6: f107 03dc add.w r3, r7, #220 @ 0xdc
  8411. 8003eaa: 4619 mov r1, r3
  8412. 8003eac: 480b ldr r0, [pc, #44] @ (8003edc <HAL_UART_MspInit+0x190>)
  8413. 8003eae: f006 fd33 bl 800a918 <HAL_GPIO_Init>
  8414. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  8415. 8003eb2: 2200 movs r2, #0
  8416. 8003eb4: 2105 movs r1, #5
  8417. 8003eb6: 2025 movs r0, #37 @ 0x25
  8418. 8003eb8: f003 f9fc bl 80072b4 <HAL_NVIC_SetPriority>
  8419. HAL_NVIC_EnableIRQ(USART1_IRQn);
  8420. 8003ebc: 2025 movs r0, #37 @ 0x25
  8421. 8003ebe: f003 fa13 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8422. }
  8423. 8003ec2: bf00 nop
  8424. 8003ec4: 37f0 adds r7, #240 @ 0xf0
  8425. 8003ec6: 46bd mov sp, r7
  8426. 8003ec8: bd80 pop {r7, pc}
  8427. 8003eca: bf00 nop
  8428. 8003ecc: 40007c00 .word 0x40007c00
  8429. 8003ed0: 58024400 .word 0x58024400
  8430. 8003ed4: 58021000 .word 0x58021000
  8431. 8003ed8: 40011000 .word 0x40011000
  8432. 8003edc: 58020400 .word 0x58020400
  8433. 08003ee0 <HAL_InitTick>:
  8434. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  8435. * @param TickPriority: Tick interrupt priority.
  8436. * @retval HAL status
  8437. */
  8438. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  8439. {
  8440. 8003ee0: b580 push {r7, lr}
  8441. 8003ee2: b090 sub sp, #64 @ 0x40
  8442. 8003ee4: af00 add r7, sp, #0
  8443. 8003ee6: 6078 str r0, [r7, #4]
  8444. uint32_t uwTimclock, uwAPB1Prescaler;
  8445. uint32_t uwPrescalerValue;
  8446. uint32_t pFLatency;
  8447. /*Configure the TIM6 IRQ priority */
  8448. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  8449. 8003ee8: 687b ldr r3, [r7, #4]
  8450. 8003eea: 2b0f cmp r3, #15
  8451. 8003eec: d827 bhi.n 8003f3e <HAL_InitTick+0x5e>
  8452. {
  8453. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  8454. 8003eee: 2200 movs r2, #0
  8455. 8003ef0: 6879 ldr r1, [r7, #4]
  8456. 8003ef2: 2036 movs r0, #54 @ 0x36
  8457. 8003ef4: f003 f9de bl 80072b4 <HAL_NVIC_SetPriority>
  8458. /* Enable the TIM6 global Interrupt */
  8459. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8460. 8003ef8: 2036 movs r0, #54 @ 0x36
  8461. 8003efa: f003 f9f5 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8462. uwTickPrio = TickPriority;
  8463. 8003efe: 4a29 ldr r2, [pc, #164] @ (8003fa4 <HAL_InitTick+0xc4>)
  8464. 8003f00: 687b ldr r3, [r7, #4]
  8465. 8003f02: 6013 str r3, [r2, #0]
  8466. {
  8467. return HAL_ERROR;
  8468. }
  8469. /* Enable TIM6 clock */
  8470. __HAL_RCC_TIM6_CLK_ENABLE();
  8471. 8003f04: 4b28 ldr r3, [pc, #160] @ (8003fa8 <HAL_InitTick+0xc8>)
  8472. 8003f06: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8473. 8003f0a: 4a27 ldr r2, [pc, #156] @ (8003fa8 <HAL_InitTick+0xc8>)
  8474. 8003f0c: f043 0310 orr.w r3, r3, #16
  8475. 8003f10: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8476. 8003f14: 4b24 ldr r3, [pc, #144] @ (8003fa8 <HAL_InitTick+0xc8>)
  8477. 8003f16: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8478. 8003f1a: f003 0310 and.w r3, r3, #16
  8479. 8003f1e: 60fb str r3, [r7, #12]
  8480. 8003f20: 68fb ldr r3, [r7, #12]
  8481. /* Get clock configuration */
  8482. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  8483. 8003f22: f107 0210 add.w r2, r7, #16
  8484. 8003f26: f107 0314 add.w r3, r7, #20
  8485. 8003f2a: 4611 mov r1, r2
  8486. 8003f2c: 4618 mov r0, r3
  8487. 8003f2e: f008 f897 bl 800c060 <HAL_RCC_GetClockConfig>
  8488. /* Get APB1 prescaler */
  8489. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  8490. 8003f32: 6abb ldr r3, [r7, #40] @ 0x28
  8491. 8003f34: 63bb str r3, [r7, #56] @ 0x38
  8492. /* Compute TIM6 clock */
  8493. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  8494. 8003f36: 6bbb ldr r3, [r7, #56] @ 0x38
  8495. 8003f38: 2b00 cmp r3, #0
  8496. 8003f3a: d106 bne.n 8003f4a <HAL_InitTick+0x6a>
  8497. 8003f3c: e001 b.n 8003f42 <HAL_InitTick+0x62>
  8498. return HAL_ERROR;
  8499. 8003f3e: 2301 movs r3, #1
  8500. 8003f40: e02b b.n 8003f9a <HAL_InitTick+0xba>
  8501. {
  8502. uwTimclock = HAL_RCC_GetPCLK1Freq();
  8503. 8003f42: f008 f861 bl 800c008 <HAL_RCC_GetPCLK1Freq>
  8504. 8003f46: 63f8 str r0, [r7, #60] @ 0x3c
  8505. 8003f48: e004 b.n 8003f54 <HAL_InitTick+0x74>
  8506. }
  8507. else
  8508. {
  8509. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  8510. 8003f4a: f008 f85d bl 800c008 <HAL_RCC_GetPCLK1Freq>
  8511. 8003f4e: 4603 mov r3, r0
  8512. 8003f50: 005b lsls r3, r3, #1
  8513. 8003f52: 63fb str r3, [r7, #60] @ 0x3c
  8514. }
  8515. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  8516. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  8517. 8003f54: 6bfb ldr r3, [r7, #60] @ 0x3c
  8518. 8003f56: 4a15 ldr r2, [pc, #84] @ (8003fac <HAL_InitTick+0xcc>)
  8519. 8003f58: fba2 2303 umull r2, r3, r2, r3
  8520. 8003f5c: 0c9b lsrs r3, r3, #18
  8521. 8003f5e: 3b01 subs r3, #1
  8522. 8003f60: 637b str r3, [r7, #52] @ 0x34
  8523. /* Initialize TIM6 */
  8524. htim6.Instance = TIM6;
  8525. 8003f62: 4b13 ldr r3, [pc, #76] @ (8003fb0 <HAL_InitTick+0xd0>)
  8526. 8003f64: 4a13 ldr r2, [pc, #76] @ (8003fb4 <HAL_InitTick+0xd4>)
  8527. 8003f66: 601a str r2, [r3, #0]
  8528. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  8529. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  8530. + ClockDivision = 0
  8531. + Counter direction = Up
  8532. */
  8533. htim6.Init.Period = (1000000U / 1000U) - 1U;
  8534. 8003f68: 4b11 ldr r3, [pc, #68] @ (8003fb0 <HAL_InitTick+0xd0>)
  8535. 8003f6a: f240 32e7 movw r2, #999 @ 0x3e7
  8536. 8003f6e: 60da str r2, [r3, #12]
  8537. htim6.Init.Prescaler = uwPrescalerValue;
  8538. 8003f70: 4a0f ldr r2, [pc, #60] @ (8003fb0 <HAL_InitTick+0xd0>)
  8539. 8003f72: 6b7b ldr r3, [r7, #52] @ 0x34
  8540. 8003f74: 6053 str r3, [r2, #4]
  8541. htim6.Init.ClockDivision = 0;
  8542. 8003f76: 4b0e ldr r3, [pc, #56] @ (8003fb0 <HAL_InitTick+0xd0>)
  8543. 8003f78: 2200 movs r2, #0
  8544. 8003f7a: 611a str r2, [r3, #16]
  8545. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  8546. 8003f7c: 4b0c ldr r3, [pc, #48] @ (8003fb0 <HAL_InitTick+0xd0>)
  8547. 8003f7e: 2200 movs r2, #0
  8548. 8003f80: 609a str r2, [r3, #8]
  8549. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  8550. 8003f82: 480b ldr r0, [pc, #44] @ (8003fb0 <HAL_InitTick+0xd0>)
  8551. 8003f84: f00a fdf2 bl 800eb6c <HAL_TIM_Base_Init>
  8552. 8003f88: 4603 mov r3, r0
  8553. 8003f8a: 2b00 cmp r3, #0
  8554. 8003f8c: d104 bne.n 8003f98 <HAL_InitTick+0xb8>
  8555. {
  8556. /* Start the TIM time Base generation in interrupt mode */
  8557. return HAL_TIM_Base_Start_IT(&htim6);
  8558. 8003f8e: 4808 ldr r0, [pc, #32] @ (8003fb0 <HAL_InitTick+0xd0>)
  8559. 8003f90: f00a feb4 bl 800ecfc <HAL_TIM_Base_Start_IT>
  8560. 8003f94: 4603 mov r3, r0
  8561. 8003f96: e000 b.n 8003f9a <HAL_InitTick+0xba>
  8562. }
  8563. /* Return function status */
  8564. return HAL_ERROR;
  8565. 8003f98: 2301 movs r3, #1
  8566. }
  8567. 8003f9a: 4618 mov r0, r3
  8568. 8003f9c: 3740 adds r7, #64 @ 0x40
  8569. 8003f9e: 46bd mov sp, r7
  8570. 8003fa0: bd80 pop {r7, pc}
  8571. 8003fa2: bf00 nop
  8572. 8003fa4: 2400003c .word 0x2400003c
  8573. 8003fa8: 58024400 .word 0x58024400
  8574. 8003fac: 431bde83 .word 0x431bde83
  8575. 8003fb0: 240008b8 .word 0x240008b8
  8576. 8003fb4: 40001000 .word 0x40001000
  8577. 08003fb8 <NMI_Handler>:
  8578. /******************************************************************************/
  8579. /**
  8580. * @brief This function handles Non maskable interrupt.
  8581. */
  8582. void NMI_Handler(void)
  8583. {
  8584. 8003fb8: b480 push {r7}
  8585. 8003fba: af00 add r7, sp, #0
  8586. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  8587. /* USER CODE END NonMaskableInt_IRQn 0 */
  8588. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  8589. while (1)
  8590. 8003fbc: bf00 nop
  8591. 8003fbe: e7fd b.n 8003fbc <NMI_Handler+0x4>
  8592. 08003fc0 <HardFault_Handler>:
  8593. /**
  8594. * @brief This function handles Hard fault interrupt.
  8595. */
  8596. void HardFault_Handler(void)
  8597. {
  8598. 8003fc0: b480 push {r7}
  8599. 8003fc2: af00 add r7, sp, #0
  8600. /* USER CODE BEGIN HardFault_IRQn 0 */
  8601. /* USER CODE END HardFault_IRQn 0 */
  8602. while (1)
  8603. 8003fc4: bf00 nop
  8604. 8003fc6: e7fd b.n 8003fc4 <HardFault_Handler+0x4>
  8605. 08003fc8 <MemManage_Handler>:
  8606. /**
  8607. * @brief This function handles Memory management fault.
  8608. */
  8609. void MemManage_Handler(void)
  8610. {
  8611. 8003fc8: b480 push {r7}
  8612. 8003fca: af00 add r7, sp, #0
  8613. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  8614. /* USER CODE END MemoryManagement_IRQn 0 */
  8615. while (1)
  8616. 8003fcc: bf00 nop
  8617. 8003fce: e7fd b.n 8003fcc <MemManage_Handler+0x4>
  8618. 08003fd0 <BusFault_Handler>:
  8619. /**
  8620. * @brief This function handles Pre-fetch fault, memory access fault.
  8621. */
  8622. void BusFault_Handler(void)
  8623. {
  8624. 8003fd0: b480 push {r7}
  8625. 8003fd2: af00 add r7, sp, #0
  8626. /* USER CODE BEGIN BusFault_IRQn 0 */
  8627. /* USER CODE END BusFault_IRQn 0 */
  8628. while (1)
  8629. 8003fd4: bf00 nop
  8630. 8003fd6: e7fd b.n 8003fd4 <BusFault_Handler+0x4>
  8631. 08003fd8 <UsageFault_Handler>:
  8632. /**
  8633. * @brief This function handles Undefined instruction or illegal state.
  8634. */
  8635. void UsageFault_Handler(void)
  8636. {
  8637. 8003fd8: b480 push {r7}
  8638. 8003fda: af00 add r7, sp, #0
  8639. /* USER CODE BEGIN UsageFault_IRQn 0 */
  8640. /* USER CODE END UsageFault_IRQn 0 */
  8641. while (1)
  8642. 8003fdc: bf00 nop
  8643. 8003fde: e7fd b.n 8003fdc <UsageFault_Handler+0x4>
  8644. 08003fe0 <DebugMon_Handler>:
  8645. /**
  8646. * @brief This function handles Debug monitor.
  8647. */
  8648. void DebugMon_Handler(void)
  8649. {
  8650. 8003fe0: b480 push {r7}
  8651. 8003fe2: af00 add r7, sp, #0
  8652. /* USER CODE END DebugMonitor_IRQn 0 */
  8653. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  8654. /* USER CODE END DebugMonitor_IRQn 1 */
  8655. }
  8656. 8003fe4: bf00 nop
  8657. 8003fe6: 46bd mov sp, r7
  8658. 8003fe8: f85d 7b04 ldr.w r7, [sp], #4
  8659. 8003fec: 4770 bx lr
  8660. 08003fee <RCC_IRQHandler>:
  8661. /**
  8662. * @brief This function handles RCC global interrupt.
  8663. */
  8664. void RCC_IRQHandler(void)
  8665. {
  8666. 8003fee: b480 push {r7}
  8667. 8003ff0: af00 add r7, sp, #0
  8668. /* USER CODE END RCC_IRQn 0 */
  8669. /* USER CODE BEGIN RCC_IRQn 1 */
  8670. /* USER CODE END RCC_IRQn 1 */
  8671. }
  8672. 8003ff2: bf00 nop
  8673. 8003ff4: 46bd mov sp, r7
  8674. 8003ff6: f85d 7b04 ldr.w r7, [sp], #4
  8675. 8003ffa: 4770 bx lr
  8676. 08003ffc <DMA1_Stream0_IRQHandler>:
  8677. /**
  8678. * @brief This function handles DMA1 stream0 global interrupt.
  8679. */
  8680. void DMA1_Stream0_IRQHandler(void)
  8681. {
  8682. 8003ffc: b580 push {r7, lr}
  8683. 8003ffe: af00 add r7, sp, #0
  8684. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  8685. /* USER CODE END DMA1_Stream0_IRQn 0 */
  8686. HAL_DMA_IRQHandler(&hdma_adc1);
  8687. 8004000: 4802 ldr r0, [pc, #8] @ (800400c <DMA1_Stream0_IRQHandler+0x10>)
  8688. 8004002: f005 f977 bl 80092f4 <HAL_DMA_IRQHandler>
  8689. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  8690. /* USER CODE END DMA1_Stream0_IRQn 1 */
  8691. }
  8692. 8004006: bf00 nop
  8693. 8004008: bd80 pop {r7, pc}
  8694. 800400a: bf00 nop
  8695. 800400c: 2400026c .word 0x2400026c
  8696. 08004010 <DMA1_Stream1_IRQHandler>:
  8697. /**
  8698. * @brief This function handles DMA1 stream1 global interrupt.
  8699. */
  8700. void DMA1_Stream1_IRQHandler(void)
  8701. {
  8702. 8004010: b580 push {r7, lr}
  8703. 8004012: af00 add r7, sp, #0
  8704. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  8705. /* USER CODE END DMA1_Stream1_IRQn 0 */
  8706. HAL_DMA_IRQHandler(&hdma_adc2);
  8707. 8004014: 4802 ldr r0, [pc, #8] @ (8004020 <DMA1_Stream1_IRQHandler+0x10>)
  8708. 8004016: f005 f96d bl 80092f4 <HAL_DMA_IRQHandler>
  8709. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  8710. /* USER CODE END DMA1_Stream1_IRQn 1 */
  8711. }
  8712. 800401a: bf00 nop
  8713. 800401c: bd80 pop {r7, pc}
  8714. 800401e: bf00 nop
  8715. 8004020: 240002e4 .word 0x240002e4
  8716. 08004024 <DMA1_Stream2_IRQHandler>:
  8717. /**
  8718. * @brief This function handles DMA1 stream2 global interrupt.
  8719. */
  8720. void DMA1_Stream2_IRQHandler(void)
  8721. {
  8722. 8004024: b580 push {r7, lr}
  8723. 8004026: af00 add r7, sp, #0
  8724. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  8725. /* USER CODE END DMA1_Stream2_IRQn 0 */
  8726. HAL_DMA_IRQHandler(&hdma_adc3);
  8727. 8004028: 4802 ldr r0, [pc, #8] @ (8004034 <DMA1_Stream2_IRQHandler+0x10>)
  8728. 800402a: f005 f963 bl 80092f4 <HAL_DMA_IRQHandler>
  8729. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  8730. /* USER CODE END DMA1_Stream2_IRQn 1 */
  8731. }
  8732. 800402e: bf00 nop
  8733. 8004030: bd80 pop {r7, pc}
  8734. 8004032: bf00 nop
  8735. 8004034: 2400035c .word 0x2400035c
  8736. 08004038 <EXTI9_5_IRQHandler>:
  8737. /**
  8738. * @brief This function handles EXTI line[9:5] interrupts.
  8739. */
  8740. void EXTI9_5_IRQHandler(void)
  8741. {
  8742. 8004038: b580 push {r7, lr}
  8743. 800403a: af00 add r7, sp, #0
  8744. /* USER CODE BEGIN EXTI9_5_IRQn 0 */
  8745. /* USER CODE END EXTI9_5_IRQn 0 */
  8746. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
  8747. 800403c: f44f 7080 mov.w r0, #256 @ 0x100
  8748. 8004040: f006 fe65 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8749. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_9);
  8750. 8004044: f44f 7000 mov.w r0, #512 @ 0x200
  8751. 8004048: f006 fe61 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8752. /* USER CODE BEGIN EXTI9_5_IRQn 1 */
  8753. /* USER CODE END EXTI9_5_IRQn 1 */
  8754. }
  8755. 800404c: bf00 nop
  8756. 800404e: bd80 pop {r7, pc}
  8757. 08004050 <TIM2_IRQHandler>:
  8758. /**
  8759. * @brief This function handles TIM2 global interrupt.
  8760. */
  8761. void TIM2_IRQHandler(void)
  8762. {
  8763. 8004050: b580 push {r7, lr}
  8764. 8004052: af00 add r7, sp, #0
  8765. /* USER CODE BEGIN TIM2_IRQn 0 */
  8766. /* USER CODE END TIM2_IRQn 0 */
  8767. HAL_TIM_IRQHandler(&htim2);
  8768. 8004054: 4802 ldr r0, [pc, #8] @ (8004060 <TIM2_IRQHandler+0x10>)
  8769. 8004056: f00b fa77 bl 800f548 <HAL_TIM_IRQHandler>
  8770. /* USER CODE BEGIN TIM2_IRQn 1 */
  8771. /* USER CODE END TIM2_IRQn 1 */
  8772. }
  8773. 800405a: bf00 nop
  8774. 800405c: bd80 pop {r7, pc}
  8775. 800405e: bf00 nop
  8776. 8004060: 240004a8 .word 0x240004a8
  8777. 08004064 <TIM4_IRQHandler>:
  8778. /**
  8779. * @brief This function handles TIM4 global interrupt.
  8780. */
  8781. void TIM4_IRQHandler(void)
  8782. {
  8783. 8004064: b580 push {r7, lr}
  8784. 8004066: af00 add r7, sp, #0
  8785. /* USER CODE BEGIN TIM4_IRQn 0 */
  8786. /* USER CODE END TIM4_IRQn 0 */
  8787. HAL_TIM_IRQHandler(&htim4);
  8788. 8004068: 4802 ldr r0, [pc, #8] @ (8004074 <TIM4_IRQHandler+0x10>)
  8789. 800406a: f00b fa6d bl 800f548 <HAL_TIM_IRQHandler>
  8790. /* USER CODE BEGIN TIM4_IRQn 1 */
  8791. /* USER CODE END TIM4_IRQn 1 */
  8792. }
  8793. 800406e: bf00 nop
  8794. 8004070: bd80 pop {r7, pc}
  8795. 8004072: bf00 nop
  8796. 8004074: 24000540 .word 0x24000540
  8797. 08004078 <USART1_IRQHandler>:
  8798. /**
  8799. * @brief This function handles USART1 global interrupt.
  8800. */
  8801. void USART1_IRQHandler(void)
  8802. {
  8803. 8004078: b580 push {r7, lr}
  8804. 800407a: af00 add r7, sp, #0
  8805. /* USER CODE BEGIN USART1_IRQn 0 */
  8806. /* USER CODE END USART1_IRQn 0 */
  8807. HAL_UART_IRQHandler(&huart1);
  8808. 800407c: 4802 ldr r0, [pc, #8] @ (8004088 <USART1_IRQHandler+0x10>)
  8809. 800407e: f00c feb5 bl 8010dec <HAL_UART_IRQHandler>
  8810. /* USER CODE BEGIN USART1_IRQn 1 */
  8811. /* USER CODE END USART1_IRQn 1 */
  8812. }
  8813. 8004082: bf00 nop
  8814. 8004084: bd80 pop {r7, pc}
  8815. 8004086: bf00 nop
  8816. 8004088: 2400066c .word 0x2400066c
  8817. 0800408c <EXTI15_10_IRQHandler>:
  8818. /**
  8819. * @brief This function handles EXTI line[15:10] interrupts.
  8820. */
  8821. void EXTI15_10_IRQHandler(void)
  8822. {
  8823. 800408c: b580 push {r7, lr}
  8824. 800408e: af00 add r7, sp, #0
  8825. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  8826. /* USER CODE END EXTI15_10_IRQn 0 */
  8827. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  8828. 8004090: f44f 6080 mov.w r0, #1024 @ 0x400
  8829. 8004094: f006 fe3b bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8830. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  8831. 8004098: f44f 6000 mov.w r0, #2048 @ 0x800
  8832. 800409c: f006 fe37 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8833. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12);
  8834. 80040a0: f44f 5080 mov.w r0, #4096 @ 0x1000
  8835. 80040a4: f006 fe33 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8836. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  8837. 80040a8: f44f 5000 mov.w r0, #8192 @ 0x2000
  8838. 80040ac: f006 fe2f bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8839. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  8840. /* USER CODE END EXTI15_10_IRQn 1 */
  8841. }
  8842. 80040b0: bf00 nop
  8843. 80040b2: bd80 pop {r7, pc}
  8844. 080040b4 <TIM6_DAC_IRQHandler>:
  8845. /**
  8846. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  8847. */
  8848. void TIM6_DAC_IRQHandler(void)
  8849. {
  8850. 80040b4: b580 push {r7, lr}
  8851. 80040b6: af00 add r7, sp, #0
  8852. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  8853. /* USER CODE END TIM6_DAC_IRQn 0 */
  8854. if (hdac1.State != HAL_DAC_STATE_RESET) {
  8855. 80040b8: 4b06 ldr r3, [pc, #24] @ (80040d4 <TIM6_DAC_IRQHandler+0x20>)
  8856. 80040ba: 791b ldrb r3, [r3, #4]
  8857. 80040bc: b2db uxtb r3, r3
  8858. 80040be: 2b00 cmp r3, #0
  8859. 80040c0: d002 beq.n 80040c8 <TIM6_DAC_IRQHandler+0x14>
  8860. HAL_DAC_IRQHandler(&hdac1);
  8861. 80040c2: 4804 ldr r0, [pc, #16] @ (80040d4 <TIM6_DAC_IRQHandler+0x20>)
  8862. 80040c4: f003 fc15 bl 80078f2 <HAL_DAC_IRQHandler>
  8863. }
  8864. HAL_TIM_IRQHandler(&htim6);
  8865. 80040c8: 4803 ldr r0, [pc, #12] @ (80040d8 <TIM6_DAC_IRQHandler+0x24>)
  8866. 80040ca: f00b fa3d bl 800f548 <HAL_TIM_IRQHandler>
  8867. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  8868. /* USER CODE END TIM6_DAC_IRQn 1 */
  8869. }
  8870. 80040ce: bf00 nop
  8871. 80040d0: bd80 pop {r7, pc}
  8872. 80040d2: bf00 nop
  8873. 80040d4: 24000424 .word 0x24000424
  8874. 80040d8: 240008b8 .word 0x240008b8
  8875. 080040dc <UART8_IRQHandler>:
  8876. /**
  8877. * @brief This function handles UART8 global interrupt.
  8878. */
  8879. void UART8_IRQHandler(void)
  8880. {
  8881. 80040dc: b580 push {r7, lr}
  8882. 80040de: af00 add r7, sp, #0
  8883. /* USER CODE BEGIN UART8_IRQn 0 */
  8884. /* USER CODE END UART8_IRQn 0 */
  8885. HAL_UART_IRQHandler(&huart8);
  8886. 80040e0: 4802 ldr r0, [pc, #8] @ (80040ec <UART8_IRQHandler+0x10>)
  8887. 80040e2: f00c fe83 bl 8010dec <HAL_UART_IRQHandler>
  8888. /* USER CODE BEGIN UART8_IRQn 1 */
  8889. /* USER CODE END UART8_IRQn 1 */
  8890. }
  8891. 80040e6: bf00 nop
  8892. 80040e8: bd80 pop {r7, pc}
  8893. 80040ea: bf00 nop
  8894. 80040ec: 240005d8 .word 0x240005d8
  8895. 080040f0 <_read>:
  8896. _kill(status, -1);
  8897. while (1) {} /* Make sure we hang here */
  8898. }
  8899. __attribute__((weak)) int _read(int file, char *ptr, int len)
  8900. {
  8901. 80040f0: b580 push {r7, lr}
  8902. 80040f2: b086 sub sp, #24
  8903. 80040f4: af00 add r7, sp, #0
  8904. 80040f6: 60f8 str r0, [r7, #12]
  8905. 80040f8: 60b9 str r1, [r7, #8]
  8906. 80040fa: 607a str r2, [r7, #4]
  8907. (void)file;
  8908. int DataIdx;
  8909. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8910. 80040fc: 2300 movs r3, #0
  8911. 80040fe: 617b str r3, [r7, #20]
  8912. 8004100: e00a b.n 8004118 <_read+0x28>
  8913. {
  8914. *ptr++ = __io_getchar();
  8915. 8004102: f3af 8000 nop.w
  8916. 8004106: 4601 mov r1, r0
  8917. 8004108: 68bb ldr r3, [r7, #8]
  8918. 800410a: 1c5a adds r2, r3, #1
  8919. 800410c: 60ba str r2, [r7, #8]
  8920. 800410e: b2ca uxtb r2, r1
  8921. 8004110: 701a strb r2, [r3, #0]
  8922. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8923. 8004112: 697b ldr r3, [r7, #20]
  8924. 8004114: 3301 adds r3, #1
  8925. 8004116: 617b str r3, [r7, #20]
  8926. 8004118: 697a ldr r2, [r7, #20]
  8927. 800411a: 687b ldr r3, [r7, #4]
  8928. 800411c: 429a cmp r2, r3
  8929. 800411e: dbf0 blt.n 8004102 <_read+0x12>
  8930. }
  8931. return len;
  8932. 8004120: 687b ldr r3, [r7, #4]
  8933. }
  8934. 8004122: 4618 mov r0, r3
  8935. 8004124: 3718 adds r7, #24
  8936. 8004126: 46bd mov sp, r7
  8937. 8004128: bd80 pop {r7, pc}
  8938. 0800412a <_write>:
  8939. __attribute__((weak)) int _write(int file, char *ptr, int len)
  8940. {
  8941. 800412a: b580 push {r7, lr}
  8942. 800412c: b086 sub sp, #24
  8943. 800412e: af00 add r7, sp, #0
  8944. 8004130: 60f8 str r0, [r7, #12]
  8945. 8004132: 60b9 str r1, [r7, #8]
  8946. 8004134: 607a str r2, [r7, #4]
  8947. (void)file;
  8948. int DataIdx;
  8949. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8950. 8004136: 2300 movs r3, #0
  8951. 8004138: 617b str r3, [r7, #20]
  8952. 800413a: e009 b.n 8004150 <_write+0x26>
  8953. {
  8954. __io_putchar(*ptr++);
  8955. 800413c: 68bb ldr r3, [r7, #8]
  8956. 800413e: 1c5a adds r2, r3, #1
  8957. 8004140: 60ba str r2, [r7, #8]
  8958. 8004142: 781b ldrb r3, [r3, #0]
  8959. 8004144: 4618 mov r0, r3
  8960. 8004146: f7fc fab5 bl 80006b4 <__io_putchar>
  8961. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8962. 800414a: 697b ldr r3, [r7, #20]
  8963. 800414c: 3301 adds r3, #1
  8964. 800414e: 617b str r3, [r7, #20]
  8965. 8004150: 697a ldr r2, [r7, #20]
  8966. 8004152: 687b ldr r3, [r7, #4]
  8967. 8004154: 429a cmp r2, r3
  8968. 8004156: dbf1 blt.n 800413c <_write+0x12>
  8969. }
  8970. return len;
  8971. 8004158: 687b ldr r3, [r7, #4]
  8972. }
  8973. 800415a: 4618 mov r0, r3
  8974. 800415c: 3718 adds r7, #24
  8975. 800415e: 46bd mov sp, r7
  8976. 8004160: bd80 pop {r7, pc}
  8977. 08004162 <_close>:
  8978. int _close(int file)
  8979. {
  8980. 8004162: b480 push {r7}
  8981. 8004164: b083 sub sp, #12
  8982. 8004166: af00 add r7, sp, #0
  8983. 8004168: 6078 str r0, [r7, #4]
  8984. (void)file;
  8985. return -1;
  8986. 800416a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8987. }
  8988. 800416e: 4618 mov r0, r3
  8989. 8004170: 370c adds r7, #12
  8990. 8004172: 46bd mov sp, r7
  8991. 8004174: f85d 7b04 ldr.w r7, [sp], #4
  8992. 8004178: 4770 bx lr
  8993. 0800417a <_fstat>:
  8994. int _fstat(int file, struct stat *st)
  8995. {
  8996. 800417a: b480 push {r7}
  8997. 800417c: b083 sub sp, #12
  8998. 800417e: af00 add r7, sp, #0
  8999. 8004180: 6078 str r0, [r7, #4]
  9000. 8004182: 6039 str r1, [r7, #0]
  9001. (void)file;
  9002. st->st_mode = S_IFCHR;
  9003. 8004184: 683b ldr r3, [r7, #0]
  9004. 8004186: f44f 5200 mov.w r2, #8192 @ 0x2000
  9005. 800418a: 605a str r2, [r3, #4]
  9006. return 0;
  9007. 800418c: 2300 movs r3, #0
  9008. }
  9009. 800418e: 4618 mov r0, r3
  9010. 8004190: 370c adds r7, #12
  9011. 8004192: 46bd mov sp, r7
  9012. 8004194: f85d 7b04 ldr.w r7, [sp], #4
  9013. 8004198: 4770 bx lr
  9014. 0800419a <_isatty>:
  9015. int _isatty(int file)
  9016. {
  9017. 800419a: b480 push {r7}
  9018. 800419c: b083 sub sp, #12
  9019. 800419e: af00 add r7, sp, #0
  9020. 80041a0: 6078 str r0, [r7, #4]
  9021. (void)file;
  9022. return 1;
  9023. 80041a2: 2301 movs r3, #1
  9024. }
  9025. 80041a4: 4618 mov r0, r3
  9026. 80041a6: 370c adds r7, #12
  9027. 80041a8: 46bd mov sp, r7
  9028. 80041aa: f85d 7b04 ldr.w r7, [sp], #4
  9029. 80041ae: 4770 bx lr
  9030. 080041b0 <_lseek>:
  9031. int _lseek(int file, int ptr, int dir)
  9032. {
  9033. 80041b0: b480 push {r7}
  9034. 80041b2: b085 sub sp, #20
  9035. 80041b4: af00 add r7, sp, #0
  9036. 80041b6: 60f8 str r0, [r7, #12]
  9037. 80041b8: 60b9 str r1, [r7, #8]
  9038. 80041ba: 607a str r2, [r7, #4]
  9039. (void)file;
  9040. (void)ptr;
  9041. (void)dir;
  9042. return 0;
  9043. 80041bc: 2300 movs r3, #0
  9044. }
  9045. 80041be: 4618 mov r0, r3
  9046. 80041c0: 3714 adds r7, #20
  9047. 80041c2: 46bd mov sp, r7
  9048. 80041c4: f85d 7b04 ldr.w r7, [sp], #4
  9049. 80041c8: 4770 bx lr
  9050. ...
  9051. 080041cc <_sbrk>:
  9052. *
  9053. * @param incr Memory size
  9054. * @return Pointer to allocated memory
  9055. */
  9056. void *_sbrk(ptrdiff_t incr)
  9057. {
  9058. 80041cc: b580 push {r7, lr}
  9059. 80041ce: b086 sub sp, #24
  9060. 80041d0: af00 add r7, sp, #0
  9061. 80041d2: 6078 str r0, [r7, #4]
  9062. extern uint8_t _end; /* Symbol defined in the linker script */
  9063. extern uint8_t _estack; /* Symbol defined in the linker script */
  9064. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  9065. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  9066. 80041d4: 4a14 ldr r2, [pc, #80] @ (8004228 <_sbrk+0x5c>)
  9067. 80041d6: 4b15 ldr r3, [pc, #84] @ (800422c <_sbrk+0x60>)
  9068. 80041d8: 1ad3 subs r3, r2, r3
  9069. 80041da: 617b str r3, [r7, #20]
  9070. const uint8_t *max_heap = (uint8_t *)stack_limit;
  9071. 80041dc: 697b ldr r3, [r7, #20]
  9072. 80041de: 613b str r3, [r7, #16]
  9073. uint8_t *prev_heap_end;
  9074. /* Initialize heap end at first call */
  9075. if (NULL == __sbrk_heap_end)
  9076. 80041e0: 4b13 ldr r3, [pc, #76] @ (8004230 <_sbrk+0x64>)
  9077. 80041e2: 681b ldr r3, [r3, #0]
  9078. 80041e4: 2b00 cmp r3, #0
  9079. 80041e6: d102 bne.n 80041ee <_sbrk+0x22>
  9080. {
  9081. __sbrk_heap_end = &_end;
  9082. 80041e8: 4b11 ldr r3, [pc, #68] @ (8004230 <_sbrk+0x64>)
  9083. 80041ea: 4a12 ldr r2, [pc, #72] @ (8004234 <_sbrk+0x68>)
  9084. 80041ec: 601a str r2, [r3, #0]
  9085. }
  9086. /* Protect heap from growing into the reserved MSP stack */
  9087. if (__sbrk_heap_end + incr > max_heap)
  9088. 80041ee: 4b10 ldr r3, [pc, #64] @ (8004230 <_sbrk+0x64>)
  9089. 80041f0: 681a ldr r2, [r3, #0]
  9090. 80041f2: 687b ldr r3, [r7, #4]
  9091. 80041f4: 4413 add r3, r2
  9092. 80041f6: 693a ldr r2, [r7, #16]
  9093. 80041f8: 429a cmp r2, r3
  9094. 80041fa: d207 bcs.n 800420c <_sbrk+0x40>
  9095. {
  9096. errno = ENOMEM;
  9097. 80041fc: f013 fe78 bl 8017ef0 <__errno>
  9098. 8004200: 4603 mov r3, r0
  9099. 8004202: 220c movs r2, #12
  9100. 8004204: 601a str r2, [r3, #0]
  9101. return (void *)-1;
  9102. 8004206: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9103. 800420a: e009 b.n 8004220 <_sbrk+0x54>
  9104. }
  9105. prev_heap_end = __sbrk_heap_end;
  9106. 800420c: 4b08 ldr r3, [pc, #32] @ (8004230 <_sbrk+0x64>)
  9107. 800420e: 681b ldr r3, [r3, #0]
  9108. 8004210: 60fb str r3, [r7, #12]
  9109. __sbrk_heap_end += incr;
  9110. 8004212: 4b07 ldr r3, [pc, #28] @ (8004230 <_sbrk+0x64>)
  9111. 8004214: 681a ldr r2, [r3, #0]
  9112. 8004216: 687b ldr r3, [r7, #4]
  9113. 8004218: 4413 add r3, r2
  9114. 800421a: 4a05 ldr r2, [pc, #20] @ (8004230 <_sbrk+0x64>)
  9115. 800421c: 6013 str r3, [r2, #0]
  9116. return (void *)prev_heap_end;
  9117. 800421e: 68fb ldr r3, [r7, #12]
  9118. }
  9119. 8004220: 4618 mov r0, r3
  9120. 8004222: 3718 adds r7, #24
  9121. 8004224: 46bd mov sp, r7
  9122. 8004226: bd80 pop {r7, pc}
  9123. 8004228: 24060000 .word 0x24060000
  9124. 800422c: 00000400 .word 0x00000400
  9125. 8004230: 24000904 .word 0x24000904
  9126. 8004234: 24012e38 .word 0x24012e38
  9127. 08004238 <SystemInit>:
  9128. * configuration.
  9129. * @param None
  9130. * @retval None
  9131. */
  9132. void SystemInit (void)
  9133. {
  9134. 8004238: b480 push {r7}
  9135. 800423a: af00 add r7, sp, #0
  9136. __IO uint32_t tmpreg;
  9137. #endif /* DATA_IN_D2_SRAM */
  9138. /* FPU settings ------------------------------------------------------------*/
  9139. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  9140. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  9141. 800423c: 4b37 ldr r3, [pc, #220] @ (800431c <SystemInit+0xe4>)
  9142. 800423e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  9143. 8004242: 4a36 ldr r2, [pc, #216] @ (800431c <SystemInit+0xe4>)
  9144. 8004244: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  9145. 8004248: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  9146. #endif
  9147. /* Reset the RCC clock configuration to the default reset state ------------*/
  9148. /* Increasing the CPU frequency */
  9149. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9150. 800424c: 4b34 ldr r3, [pc, #208] @ (8004320 <SystemInit+0xe8>)
  9151. 800424e: 681b ldr r3, [r3, #0]
  9152. 8004250: f003 030f and.w r3, r3, #15
  9153. 8004254: 2b06 cmp r3, #6
  9154. 8004256: d807 bhi.n 8004268 <SystemInit+0x30>
  9155. {
  9156. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9157. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9158. 8004258: 4b31 ldr r3, [pc, #196] @ (8004320 <SystemInit+0xe8>)
  9159. 800425a: 681b ldr r3, [r3, #0]
  9160. 800425c: f023 030f bic.w r3, r3, #15
  9161. 8004260: 4a2f ldr r2, [pc, #188] @ (8004320 <SystemInit+0xe8>)
  9162. 8004262: f043 0307 orr.w r3, r3, #7
  9163. 8004266: 6013 str r3, [r2, #0]
  9164. }
  9165. /* Set HSION bit */
  9166. RCC->CR |= RCC_CR_HSION;
  9167. 8004268: 4b2e ldr r3, [pc, #184] @ (8004324 <SystemInit+0xec>)
  9168. 800426a: 681b ldr r3, [r3, #0]
  9169. 800426c: 4a2d ldr r2, [pc, #180] @ (8004324 <SystemInit+0xec>)
  9170. 800426e: f043 0301 orr.w r3, r3, #1
  9171. 8004272: 6013 str r3, [r2, #0]
  9172. /* Reset CFGR register */
  9173. RCC->CFGR = 0x00000000;
  9174. 8004274: 4b2b ldr r3, [pc, #172] @ (8004324 <SystemInit+0xec>)
  9175. 8004276: 2200 movs r2, #0
  9176. 8004278: 611a str r2, [r3, #16]
  9177. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  9178. RCC->CR &= 0xEAF6ED7FU;
  9179. 800427a: 4b2a ldr r3, [pc, #168] @ (8004324 <SystemInit+0xec>)
  9180. 800427c: 681a ldr r2, [r3, #0]
  9181. 800427e: 4929 ldr r1, [pc, #164] @ (8004324 <SystemInit+0xec>)
  9182. 8004280: 4b29 ldr r3, [pc, #164] @ (8004328 <SystemInit+0xf0>)
  9183. 8004282: 4013 ands r3, r2
  9184. 8004284: 600b str r3, [r1, #0]
  9185. /* Decreasing the number of wait states because of lower CPU frequency */
  9186. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9187. 8004286: 4b26 ldr r3, [pc, #152] @ (8004320 <SystemInit+0xe8>)
  9188. 8004288: 681b ldr r3, [r3, #0]
  9189. 800428a: f003 0308 and.w r3, r3, #8
  9190. 800428e: 2b00 cmp r3, #0
  9191. 8004290: d007 beq.n 80042a2 <SystemInit+0x6a>
  9192. {
  9193. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9194. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9195. 8004292: 4b23 ldr r3, [pc, #140] @ (8004320 <SystemInit+0xe8>)
  9196. 8004294: 681b ldr r3, [r3, #0]
  9197. 8004296: f023 030f bic.w r3, r3, #15
  9198. 800429a: 4a21 ldr r2, [pc, #132] @ (8004320 <SystemInit+0xe8>)
  9199. 800429c: f043 0307 orr.w r3, r3, #7
  9200. 80042a0: 6013 str r3, [r2, #0]
  9201. }
  9202. #if defined(D3_SRAM_BASE)
  9203. /* Reset D1CFGR register */
  9204. RCC->D1CFGR = 0x00000000;
  9205. 80042a2: 4b20 ldr r3, [pc, #128] @ (8004324 <SystemInit+0xec>)
  9206. 80042a4: 2200 movs r2, #0
  9207. 80042a6: 619a str r2, [r3, #24]
  9208. /* Reset D2CFGR register */
  9209. RCC->D2CFGR = 0x00000000;
  9210. 80042a8: 4b1e ldr r3, [pc, #120] @ (8004324 <SystemInit+0xec>)
  9211. 80042aa: 2200 movs r2, #0
  9212. 80042ac: 61da str r2, [r3, #28]
  9213. /* Reset D3CFGR register */
  9214. RCC->D3CFGR = 0x00000000;
  9215. 80042ae: 4b1d ldr r3, [pc, #116] @ (8004324 <SystemInit+0xec>)
  9216. 80042b0: 2200 movs r2, #0
  9217. 80042b2: 621a str r2, [r3, #32]
  9218. /* Reset SRDCFGR register */
  9219. RCC->SRDCFGR = 0x00000000;
  9220. #endif
  9221. /* Reset PLLCKSELR register */
  9222. RCC->PLLCKSELR = 0x02020200;
  9223. 80042b4: 4b1b ldr r3, [pc, #108] @ (8004324 <SystemInit+0xec>)
  9224. 80042b6: 4a1d ldr r2, [pc, #116] @ (800432c <SystemInit+0xf4>)
  9225. 80042b8: 629a str r2, [r3, #40] @ 0x28
  9226. /* Reset PLLCFGR register */
  9227. RCC->PLLCFGR = 0x01FF0000;
  9228. 80042ba: 4b1a ldr r3, [pc, #104] @ (8004324 <SystemInit+0xec>)
  9229. 80042bc: 4a1c ldr r2, [pc, #112] @ (8004330 <SystemInit+0xf8>)
  9230. 80042be: 62da str r2, [r3, #44] @ 0x2c
  9231. /* Reset PLL1DIVR register */
  9232. RCC->PLL1DIVR = 0x01010280;
  9233. 80042c0: 4b18 ldr r3, [pc, #96] @ (8004324 <SystemInit+0xec>)
  9234. 80042c2: 4a1c ldr r2, [pc, #112] @ (8004334 <SystemInit+0xfc>)
  9235. 80042c4: 631a str r2, [r3, #48] @ 0x30
  9236. /* Reset PLL1FRACR register */
  9237. RCC->PLL1FRACR = 0x00000000;
  9238. 80042c6: 4b17 ldr r3, [pc, #92] @ (8004324 <SystemInit+0xec>)
  9239. 80042c8: 2200 movs r2, #0
  9240. 80042ca: 635a str r2, [r3, #52] @ 0x34
  9241. /* Reset PLL2DIVR register */
  9242. RCC->PLL2DIVR = 0x01010280;
  9243. 80042cc: 4b15 ldr r3, [pc, #84] @ (8004324 <SystemInit+0xec>)
  9244. 80042ce: 4a19 ldr r2, [pc, #100] @ (8004334 <SystemInit+0xfc>)
  9245. 80042d0: 639a str r2, [r3, #56] @ 0x38
  9246. /* Reset PLL2FRACR register */
  9247. RCC->PLL2FRACR = 0x00000000;
  9248. 80042d2: 4b14 ldr r3, [pc, #80] @ (8004324 <SystemInit+0xec>)
  9249. 80042d4: 2200 movs r2, #0
  9250. 80042d6: 63da str r2, [r3, #60] @ 0x3c
  9251. /* Reset PLL3DIVR register */
  9252. RCC->PLL3DIVR = 0x01010280;
  9253. 80042d8: 4b12 ldr r3, [pc, #72] @ (8004324 <SystemInit+0xec>)
  9254. 80042da: 4a16 ldr r2, [pc, #88] @ (8004334 <SystemInit+0xfc>)
  9255. 80042dc: 641a str r2, [r3, #64] @ 0x40
  9256. /* Reset PLL3FRACR register */
  9257. RCC->PLL3FRACR = 0x00000000;
  9258. 80042de: 4b11 ldr r3, [pc, #68] @ (8004324 <SystemInit+0xec>)
  9259. 80042e0: 2200 movs r2, #0
  9260. 80042e2: 645a str r2, [r3, #68] @ 0x44
  9261. /* Reset HSEBYP bit */
  9262. RCC->CR &= 0xFFFBFFFFU;
  9263. 80042e4: 4b0f ldr r3, [pc, #60] @ (8004324 <SystemInit+0xec>)
  9264. 80042e6: 681b ldr r3, [r3, #0]
  9265. 80042e8: 4a0e ldr r2, [pc, #56] @ (8004324 <SystemInit+0xec>)
  9266. 80042ea: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  9267. 80042ee: 6013 str r3, [r2, #0]
  9268. /* Disable all interrupts */
  9269. RCC->CIER = 0x00000000;
  9270. 80042f0: 4b0c ldr r3, [pc, #48] @ (8004324 <SystemInit+0xec>)
  9271. 80042f2: 2200 movs r2, #0
  9272. 80042f4: 661a str r2, [r3, #96] @ 0x60
  9273. #if (STM32H7_DEV_ID == 0x450UL)
  9274. /* dual core CM7 or single core line */
  9275. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  9276. 80042f6: 4b10 ldr r3, [pc, #64] @ (8004338 <SystemInit+0x100>)
  9277. 80042f8: 681a ldr r2, [r3, #0]
  9278. 80042fa: 4b10 ldr r3, [pc, #64] @ (800433c <SystemInit+0x104>)
  9279. 80042fc: 4013 ands r3, r2
  9280. 80042fe: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  9281. 8004302: d202 bcs.n 800430a <SystemInit+0xd2>
  9282. {
  9283. /* if stm32h7 revY*/
  9284. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  9285. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  9286. 8004304: 4b0e ldr r3, [pc, #56] @ (8004340 <SystemInit+0x108>)
  9287. 8004306: 2201 movs r2, #1
  9288. 8004308: 601a str r2, [r3, #0]
  9289. /*
  9290. * Disable the FMC bank1 (enabled after reset).
  9291. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  9292. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  9293. */
  9294. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  9295. 800430a: 4b0e ldr r3, [pc, #56] @ (8004344 <SystemInit+0x10c>)
  9296. 800430c: f243 02d2 movw r2, #12498 @ 0x30d2
  9297. 8004310: 601a str r2, [r3, #0]
  9298. #if defined(USER_VECT_TAB_ADDRESS)
  9299. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  9300. #endif /* USER_VECT_TAB_ADDRESS */
  9301. #endif /*DUAL_CORE && CORE_CM4*/
  9302. }
  9303. 8004312: bf00 nop
  9304. 8004314: 46bd mov sp, r7
  9305. 8004316: f85d 7b04 ldr.w r7, [sp], #4
  9306. 800431a: 4770 bx lr
  9307. 800431c: e000ed00 .word 0xe000ed00
  9308. 8004320: 52002000 .word 0x52002000
  9309. 8004324: 58024400 .word 0x58024400
  9310. 8004328: eaf6ed7f .word 0xeaf6ed7f
  9311. 800432c: 02020200 .word 0x02020200
  9312. 8004330: 01ff0000 .word 0x01ff0000
  9313. 8004334: 01010280 .word 0x01010280
  9314. 8004338: 5c001000 .word 0x5c001000
  9315. 800433c: ffff0000 .word 0xffff0000
  9316. 8004340: 51008108 .word 0x51008108
  9317. 8004344: 52004000 .word 0x52004000
  9318. 08004348 <__NVIC_SystemReset>:
  9319. {
  9320. 8004348: b480 push {r7}
  9321. 800434a: af00 add r7, sp, #0
  9322. __ASM volatile ("dsb 0xF":::"memory");
  9323. 800434c: f3bf 8f4f dsb sy
  9324. }
  9325. 8004350: bf00 nop
  9326. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  9327. 8004352: 4b06 ldr r3, [pc, #24] @ (800436c <__NVIC_SystemReset+0x24>)
  9328. 8004354: 68db ldr r3, [r3, #12]
  9329. 8004356: f403 62e0 and.w r2, r3, #1792 @ 0x700
  9330. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  9331. 800435a: 4904 ldr r1, [pc, #16] @ (800436c <__NVIC_SystemReset+0x24>)
  9332. 800435c: 4b04 ldr r3, [pc, #16] @ (8004370 <__NVIC_SystemReset+0x28>)
  9333. 800435e: 4313 orrs r3, r2
  9334. 8004360: 60cb str r3, [r1, #12]
  9335. __ASM volatile ("dsb 0xF":::"memory");
  9336. 8004362: f3bf 8f4f dsb sy
  9337. }
  9338. 8004366: bf00 nop
  9339. __NOP();
  9340. 8004368: bf00 nop
  9341. 800436a: e7fd b.n 8004368 <__NVIC_SystemReset+0x20>
  9342. 800436c: e000ed00 .word 0xe000ed00
  9343. 8004370: 05fa0004 .word 0x05fa0004
  9344. 08004374 <UartTasksInit>:
  9345. uint32_t slaveLastSeen[SLAVES_COUNT] = { 0 };
  9346. extern RNG_HandleTypeDef hrng;
  9347. void UartTasksInit (void) {
  9348. 8004374: b580 push {r7, lr}
  9349. 8004376: af00 add r7, sp, #0
  9350. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  9351. 8004378: 4b13 ldr r3, [pc, #76] @ (80043c8 <UartTasksInit+0x54>)
  9352. 800437a: 4a14 ldr r2, [pc, #80] @ (80043cc <UartTasksInit+0x58>)
  9353. 800437c: 601a str r2, [r3, #0]
  9354. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  9355. 800437e: 4b12 ldr r3, [pc, #72] @ (80043c8 <UartTasksInit+0x54>)
  9356. 8004380: f44f 7280 mov.w r2, #256 @ 0x100
  9357. 8004384: 809a strh r2, [r3, #4]
  9358. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  9359. 8004386: 4b10 ldr r3, [pc, #64] @ (80043c8 <UartTasksInit+0x54>)
  9360. 8004388: 4a11 ldr r2, [pc, #68] @ (80043d0 <UartTasksInit+0x5c>)
  9361. 800438a: 609a str r2, [r3, #8]
  9362. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  9363. 800438c: 4b0e ldr r3, [pc, #56] @ (80043c8 <UartTasksInit+0x54>)
  9364. 800438e: f44f 7280 mov.w r2, #256 @ 0x100
  9365. 8004392: 809a strh r2, [r3, #4]
  9366. uart1TaskData.frameData = uart1TaskFrameData;
  9367. 8004394: 4b0c ldr r3, [pc, #48] @ (80043c8 <UartTasksInit+0x54>)
  9368. 8004396: 4a0f ldr r2, [pc, #60] @ (80043d4 <UartTasksInit+0x60>)
  9369. 8004398: 611a str r2, [r3, #16]
  9370. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  9371. 800439a: 4b0b ldr r3, [pc, #44] @ (80043c8 <UartTasksInit+0x54>)
  9372. 800439c: f44f 7280 mov.w r2, #256 @ 0x100
  9373. 80043a0: 829a strh r2, [r3, #20]
  9374. uart1TaskData.huart = &huart1;
  9375. 80043a2: 4b09 ldr r3, [pc, #36] @ (80043c8 <UartTasksInit+0x54>)
  9376. 80043a4: 4a0c ldr r2, [pc, #48] @ (80043d8 <UartTasksInit+0x64>)
  9377. 80043a6: 631a str r2, [r3, #48] @ 0x30
  9378. uart1TaskData.uartNumber = 1;
  9379. 80043a8: 4b07 ldr r3, [pc, #28] @ (80043c8 <UartTasksInit+0x54>)
  9380. 80043aa: 2201 movs r2, #1
  9381. 80043ac: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9382. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  9383. 80043b0: 4b05 ldr r3, [pc, #20] @ (80043c8 <UartTasksInit+0x54>)
  9384. 80043b2: 4a0a ldr r2, [pc, #40] @ (80043dc <UartTasksInit+0x68>)
  9385. 80043b4: 629a str r2, [r3, #40] @ 0x28
  9386. uart1TaskData.processRxDataMsgBuffer = NULL;
  9387. 80043b6: 4b04 ldr r3, [pc, #16] @ (80043c8 <UartTasksInit+0x54>)
  9388. 80043b8: 2200 movs r2, #0
  9389. 80043ba: 625a str r2, [r3, #36] @ 0x24
  9390. UartTaskCreate (&uart1TaskData);
  9391. 80043bc: 4802 ldr r0, [pc, #8] @ (80043c8 <UartTasksInit+0x54>)
  9392. 80043be: f000 f80f bl 80043e0 <UartTaskCreate>
  9393. }
  9394. 80043c2: bf00 nop
  9395. 80043c4: bd80 pop {r7, pc}
  9396. 80043c6: bf00 nop
  9397. 80043c8: 24000c08 .word 0x24000c08
  9398. 80043cc: 24000908 .word 0x24000908
  9399. 80043d0: 24000a08 .word 0x24000a08
  9400. 80043d4: 24000b08 .word 0x24000b08
  9401. 80043d8: 2400066c .word 0x2400066c
  9402. 80043dc: 08004ae5 .word 0x08004ae5
  9403. 080043e0 <UartTaskCreate>:
  9404. void UartTaskCreate (UartTaskData* uartTaskData) {
  9405. 80043e0: b580 push {r7, lr}
  9406. 80043e2: b08c sub sp, #48 @ 0x30
  9407. 80043e4: af00 add r7, sp, #0
  9408. 80043e6: 6078 str r0, [r7, #4]
  9409. osThreadAttr_t osThreadAttrRxUart = { 0 };
  9410. 80043e8: f107 030c add.w r3, r7, #12
  9411. 80043ec: 2224 movs r2, #36 @ 0x24
  9412. 80043ee: 2100 movs r1, #0
  9413. 80043f0: 4618 mov r0, r3
  9414. 80043f2: f013 fcd8 bl 8017da6 <memset>
  9415. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  9416. 80043f6: f44f 6380 mov.w r3, #1024 @ 0x400
  9417. 80043fa: 623b str r3, [r7, #32]
  9418. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  9419. 80043fc: 2328 movs r3, #40 @ 0x28
  9420. 80043fe: 627b str r3, [r7, #36] @ 0x24
  9421. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  9422. 8004400: f107 030c add.w r3, r7, #12
  9423. 8004404: 461a mov r2, r3
  9424. 8004406: 6879 ldr r1, [r7, #4]
  9425. 8004408: 4804 ldr r0, [pc, #16] @ (800441c <UartTaskCreate+0x3c>)
  9426. 800440a: f00f fa5d bl 80138c8 <osThreadNew>
  9427. 800440e: 4602 mov r2, r0
  9428. 8004410: 687b ldr r3, [r7, #4]
  9429. 8004412: 619a str r2, [r3, #24]
  9430. }
  9431. 8004414: bf00 nop
  9432. 8004416: 3730 adds r7, #48 @ 0x30
  9433. 8004418: 46bd mov sp, r7
  9434. 800441a: bd80 pop {r7, pc}
  9435. 800441c: 08004535 .word 0x08004535
  9436. 08004420 <HAL_UART_RxCpltCallback>:
  9437. uart8TaskData.huart = &huart8;
  9438. uart8TaskData.uartNumber = 8;
  9439. uart8TaskData.uartRecieveTaskHandle = osThreadNew (UartRxTask, &uart8TaskData, &osThreadAttrRxUart);
  9440. }
  9441. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  9442. 8004420: b480 push {r7}
  9443. 8004422: b083 sub sp, #12
  9444. 8004424: af00 add r7, sp, #0
  9445. 8004426: 6078 str r0, [r7, #4]
  9446. }
  9447. 8004428: bf00 nop
  9448. 800442a: 370c adds r7, #12
  9449. 800442c: 46bd mov sp, r7
  9450. 800442e: f85d 7b04 ldr.w r7, [sp], #4
  9451. 8004432: 4770 bx lr
  9452. 08004434 <HAL_UARTEx_RxEventCallback>:
  9453. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  9454. 8004434: b580 push {r7, lr}
  9455. 8004436: b082 sub sp, #8
  9456. 8004438: af00 add r7, sp, #0
  9457. 800443a: 6078 str r0, [r7, #4]
  9458. 800443c: 460b mov r3, r1
  9459. 800443e: 807b strh r3, [r7, #2]
  9460. if (huart->Instance == USART1) {
  9461. 8004440: 687b ldr r3, [r7, #4]
  9462. 8004442: 681b ldr r3, [r3, #0]
  9463. 8004444: 4a0c ldr r2, [pc, #48] @ (8004478 <HAL_UARTEx_RxEventCallback+0x44>)
  9464. 8004446: 4293 cmp r3, r2
  9465. 8004448: d106 bne.n 8004458 <HAL_UARTEx_RxEventCallback+0x24>
  9466. HandleUartRxCallback (&uart1TaskData, huart, Size);
  9467. 800444a: 887b ldrh r3, [r7, #2]
  9468. 800444c: 461a mov r2, r3
  9469. 800444e: 6879 ldr r1, [r7, #4]
  9470. 8004450: 480a ldr r0, [pc, #40] @ (800447c <HAL_UARTEx_RxEventCallback+0x48>)
  9471. 8004452: f000 f823 bl 800449c <HandleUartRxCallback>
  9472. } else if (huart->Instance == UART8) {
  9473. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9474. }
  9475. }
  9476. 8004456: e00a b.n 800446e <HAL_UARTEx_RxEventCallback+0x3a>
  9477. } else if (huart->Instance == UART8) {
  9478. 8004458: 687b ldr r3, [r7, #4]
  9479. 800445a: 681b ldr r3, [r3, #0]
  9480. 800445c: 4a08 ldr r2, [pc, #32] @ (8004480 <HAL_UARTEx_RxEventCallback+0x4c>)
  9481. 800445e: 4293 cmp r3, r2
  9482. 8004460: d105 bne.n 800446e <HAL_UARTEx_RxEventCallback+0x3a>
  9483. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9484. 8004462: 887b ldrh r3, [r7, #2]
  9485. 8004464: 461a mov r2, r3
  9486. 8004466: 6879 ldr r1, [r7, #4]
  9487. 8004468: 4806 ldr r0, [pc, #24] @ (8004484 <HAL_UARTEx_RxEventCallback+0x50>)
  9488. 800446a: f000 f817 bl 800449c <HandleUartRxCallback>
  9489. }
  9490. 800446e: bf00 nop
  9491. 8004470: 3708 adds r7, #8
  9492. 8004472: 46bd mov sp, r7
  9493. 8004474: bd80 pop {r7, pc}
  9494. 8004476: bf00 nop
  9495. 8004478: 40011000 .word 0x40011000
  9496. 800447c: 24000c08 .word 0x24000c08
  9497. 8004480: 40007c00 .word 0x40007c00
  9498. 8004484: 24000c40 .word 0x24000c40
  9499. 08004488 <HAL_UART_TxCpltCallback>:
  9500. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  9501. 8004488: b480 push {r7}
  9502. 800448a: b083 sub sp, #12
  9503. 800448c: af00 add r7, sp, #0
  9504. 800448e: 6078 str r0, [r7, #4]
  9505. if (huart->Instance == UART8) {
  9506. }
  9507. }
  9508. 8004490: bf00 nop
  9509. 8004492: 370c adds r7, #12
  9510. 8004494: 46bd mov sp, r7
  9511. 8004496: f85d 7b04 ldr.w r7, [sp], #4
  9512. 800449a: 4770 bx lr
  9513. 0800449c <HandleUartRxCallback>:
  9514. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  9515. 800449c: b580 push {r7, lr}
  9516. 800449e: b088 sub sp, #32
  9517. 80044a0: af02 add r7, sp, #8
  9518. 80044a2: 60f8 str r0, [r7, #12]
  9519. 80044a4: 60b9 str r1, [r7, #8]
  9520. 80044a6: 4613 mov r3, r2
  9521. 80044a8: 80fb strh r3, [r7, #6]
  9522. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  9523. 80044aa: 2300 movs r3, #0
  9524. 80044ac: 617b str r3, [r7, #20]
  9525. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9526. 80044ae: 68fb ldr r3, [r7, #12]
  9527. 80044b0: 6a1b ldr r3, [r3, #32]
  9528. 80044b2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9529. 80044b6: 4618 mov r0, r3
  9530. 80044b8: f00f fc31 bl 8013d1e <osMutexAcquire>
  9531. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  9532. 80044bc: 68fb ldr r3, [r7, #12]
  9533. 80044be: 691b ldr r3, [r3, #16]
  9534. 80044c0: 68fa ldr r2, [r7, #12]
  9535. 80044c2: 8ad2 ldrh r2, [r2, #22]
  9536. 80044c4: 1898 adds r0, r3, r2
  9537. 80044c6: 68fb ldr r3, [r7, #12]
  9538. 80044c8: 681b ldr r3, [r3, #0]
  9539. 80044ca: 88fa ldrh r2, [r7, #6]
  9540. 80044cc: 4619 mov r1, r3
  9541. 80044ce: f013 fd3c bl 8017f4a <memcpy>
  9542. uartTaskData->frameBytesCount += Size;
  9543. 80044d2: 68fb ldr r3, [r7, #12]
  9544. 80044d4: 8ada ldrh r2, [r3, #22]
  9545. 80044d6: 88fb ldrh r3, [r7, #6]
  9546. 80044d8: 4413 add r3, r2
  9547. 80044da: b29a uxth r2, r3
  9548. 80044dc: 68fb ldr r3, [r7, #12]
  9549. 80044de: 82da strh r2, [r3, #22]
  9550. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9551. 80044e0: 68fb ldr r3, [r7, #12]
  9552. 80044e2: 6a1b ldr r3, [r3, #32]
  9553. 80044e4: 4618 mov r0, r3
  9554. 80044e6: f00f fc65 bl 8013db4 <osMutexRelease>
  9555. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  9556. 80044ea: 68fb ldr r3, [r7, #12]
  9557. 80044ec: 6998 ldr r0, [r3, #24]
  9558. 80044ee: 88f9 ldrh r1, [r7, #6]
  9559. 80044f0: f107 0314 add.w r3, r7, #20
  9560. 80044f4: 9300 str r3, [sp, #0]
  9561. 80044f6: 2300 movs r3, #0
  9562. 80044f8: 2203 movs r2, #3
  9563. 80044fa: f012 f955 bl 80167a8 <xTaskGenericNotifyFromISR>
  9564. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9565. 80044fe: 68fb ldr r3, [r7, #12]
  9566. 8004500: 6b18 ldr r0, [r3, #48] @ 0x30
  9567. 8004502: 68fb ldr r3, [r7, #12]
  9568. 8004504: 6819 ldr r1, [r3, #0]
  9569. 8004506: 68fb ldr r3, [r7, #12]
  9570. 8004508: 889b ldrh r3, [r3, #4]
  9571. 800450a: 461a mov r2, r3
  9572. 800450c: f00f f8af bl 801366e <HAL_UARTEx_ReceiveToIdle_IT>
  9573. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  9574. 8004510: 697b ldr r3, [r7, #20]
  9575. 8004512: 2b00 cmp r3, #0
  9576. 8004514: d007 beq.n 8004526 <HandleUartRxCallback+0x8a>
  9577. 8004516: 4b06 ldr r3, [pc, #24] @ (8004530 <HandleUartRxCallback+0x94>)
  9578. 8004518: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  9579. 800451c: 601a str r2, [r3, #0]
  9580. 800451e: f3bf 8f4f dsb sy
  9581. 8004522: f3bf 8f6f isb sy
  9582. }
  9583. 8004526: bf00 nop
  9584. 8004528: 3718 adds r7, #24
  9585. 800452a: 46bd mov sp, r7
  9586. 800452c: bd80 pop {r7, pc}
  9587. 800452e: bf00 nop
  9588. 8004530: e000ed04 .word 0xe000ed04
  9589. 08004534 <UartRxTask>:
  9590. void UartRxTask (void* argument) {
  9591. 8004534: b580 push {r7, lr}
  9592. 8004536: b0d2 sub sp, #328 @ 0x148
  9593. 8004538: af02 add r7, sp, #8
  9594. 800453a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9595. 800453e: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9596. 8004542: 6018 str r0, [r3, #0]
  9597. UartTaskData* uartTaskData = (UartTaskData*)argument;
  9598. 8004544: f507 73a0 add.w r3, r7, #320 @ 0x140
  9599. 8004548: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9600. 800454c: 681b ldr r3, [r3, #0]
  9601. 800454e: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  9602. SerialProtocolFrameData spFrameData = { 0 };
  9603. 8004552: f507 73a0 add.w r3, r7, #320 @ 0x140
  9604. 8004556: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9605. 800455a: 4618 mov r0, r3
  9606. 800455c: f44f 7386 mov.w r3, #268 @ 0x10c
  9607. 8004560: 461a mov r2, r3
  9608. 8004562: 2100 movs r1, #0
  9609. 8004564: f013 fc1f bl 8017da6 <memset>
  9610. uint32_t bytesRec = 0;
  9611. 8004568: f507 73a0 add.w r3, r7, #320 @ 0x140
  9612. 800456c: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9613. 8004570: 2200 movs r2, #0
  9614. 8004572: 601a str r2, [r3, #0]
  9615. uint32_t crc = 0;
  9616. 8004574: 2300 movs r3, #0
  9617. 8004576: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9618. uint16_t frameCommandRaw = 0x0000;
  9619. 800457a: 2300 movs r3, #0
  9620. 800457c: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9621. uint16_t frameBytesCount = 0;
  9622. 8004580: 2300 movs r3, #0
  9623. 8004582: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9624. uint16_t frameCrc = 0;
  9625. 8004586: 2300 movs r3, #0
  9626. 8004588: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9627. uint16_t frameTotalLength = 0;
  9628. 800458c: 2300 movs r3, #0
  9629. 800458e: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9630. uint16_t dataToSend = 0;
  9631. 8004592: 2300 movs r3, #0
  9632. 8004594: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9633. portBASE_TYPE crcPass = pdFAIL;
  9634. 8004598: 2300 movs r3, #0
  9635. 800459a: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9636. portBASE_TYPE proceed = pdFALSE;
  9637. 800459e: 2300 movs r3, #0
  9638. 80045a0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9639. portBASE_TYPE frameTimeout = pdFAIL;
  9640. 80045a4: 2300 movs r3, #0
  9641. 80045a6: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9642. enum SerialReceiverStates receverState = srWaitForHeader;
  9643. 80045aa: 2300 movs r3, #0
  9644. 80045ac: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9645. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  9646. 80045b0: 2000 movs r0, #0
  9647. 80045b2: f00f fb2e bl 8013c12 <osMutexNew>
  9648. 80045b6: 4602 mov r2, r0
  9649. 80045b8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9650. 80045bc: 621a str r2, [r3, #32]
  9651. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9652. 80045be: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9653. 80045c2: 6b18 ldr r0, [r3, #48] @ 0x30
  9654. 80045c4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9655. 80045c8: 6819 ldr r1, [r3, #0]
  9656. 80045ca: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9657. 80045ce: 889b ldrh r3, [r3, #4]
  9658. 80045d0: 461a mov r2, r3
  9659. 80045d2: f00f f84c bl 801366e <HAL_UARTEx_ReceiveToIdle_IT>
  9660. while (pdTRUE) {
  9661. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9662. 80045d6: f107 020c add.w r2, r7, #12
  9663. 80045da: f44f 63fa mov.w r3, #2000 @ 0x7d0
  9664. 80045de: 2100 movs r1, #0
  9665. 80045e0: 2000 movs r0, #0
  9666. 80045e2: f011 ffbf bl 8016564 <xTaskNotifyWait>
  9667. 80045e6: 4603 mov r3, r0
  9668. 80045e8: 2b00 cmp r3, #0
  9669. 80045ea: bf0c ite eq
  9670. 80045ec: 2301 moveq r3, #1
  9671. 80045ee: 2300 movne r3, #0
  9672. 80045f0: b2db uxtb r3, r3
  9673. 80045f2: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9674. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9675. 80045f6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9676. 80045fa: 6a1b ldr r3, [r3, #32]
  9677. 80045fc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9678. 8004600: 4618 mov r0, r3
  9679. 8004602: f00f fb8c bl 8013d1e <osMutexAcquire>
  9680. frameBytesCount = uartTaskData->frameBytesCount;
  9681. 8004606: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9682. 800460a: 8adb ldrh r3, [r3, #22]
  9683. 800460c: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9684. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9685. 8004610: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9686. 8004614: 6a1b ldr r3, [r3, #32]
  9687. 8004616: 4618 mov r0, r3
  9688. 8004618: f00f fbcc bl 8013db4 <osMutexRelease>
  9689. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  9690. 800461c: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9691. 8004620: 2b01 cmp r3, #1
  9692. 8004622: d10a bne.n 800463a <UartRxTask+0x106>
  9693. 8004624: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9694. 8004628: 2b00 cmp r3, #0
  9695. 800462a: d006 beq.n 800463a <UartRxTask+0x106>
  9696. receverState = srFail;
  9697. 800462c: 2304 movs r3, #4
  9698. 800462e: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9699. proceed = pdTRUE;
  9700. 8004632: 2301 movs r3, #1
  9701. 8004634: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9702. 8004638: e029 b.n 800468e <UartRxTask+0x15a>
  9703. } else {
  9704. if (frameTimeout == pdFALSE) {
  9705. 800463a: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9706. 800463e: 2b00 cmp r3, #0
  9707. 8004640: d111 bne.n 8004666 <UartRxTask+0x132>
  9708. proceed = pdTRUE;
  9709. 8004642: 2301 movs r3, #1
  9710. 8004644: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9711. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  9712. 8004648: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9713. 800464c: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9714. 8004650: 4619 mov r1, r3
  9715. 8004652: f507 73a0 add.w r3, r7, #320 @ 0x140
  9716. 8004656: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9717. 800465a: 681b ldr r3, [r3, #0]
  9718. 800465c: 461a mov r2, r3
  9719. 800465e: 48c1 ldr r0, [pc, #772] @ (8004964 <UartRxTask+0x430>)
  9720. 8004660: f013 fb4c bl 8017cfc <iprintf>
  9721. 8004664: e22f b.n 8004ac6 <UartRxTask+0x592>
  9722. } else {
  9723. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  9724. 8004666: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9725. 800466a: 6b1b ldr r3, [r3, #48] @ 0x30
  9726. 800466c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  9727. 8004670: 2b20 cmp r3, #32
  9728. 8004672: f040 8228 bne.w 8004ac6 <UartRxTask+0x592>
  9729. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9730. 8004676: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9731. 800467a: 6b18 ldr r0, [r3, #48] @ 0x30
  9732. 800467c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9733. 8004680: 6819 ldr r1, [r3, #0]
  9734. 8004682: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9735. 8004686: 889b ldrh r3, [r3, #4]
  9736. 8004688: 461a mov r2, r3
  9737. 800468a: f00e fff0 bl 801366e <HAL_UARTEx_ReceiveToIdle_IT>
  9738. }
  9739. }
  9740. }
  9741. while (proceed) {
  9742. 800468e: e21a b.n 8004ac6 <UartRxTask+0x592>
  9743. switch (receverState) {
  9744. 8004690: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9745. 8004694: 2b04 cmp r3, #4
  9746. 8004696: f200 81f1 bhi.w 8004a7c <UartRxTask+0x548>
  9747. 800469a: a201 add r2, pc, #4 @ (adr r2, 80046a0 <UartRxTask+0x16c>)
  9748. 800469c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9749. 80046a0: 080046b5 .word 0x080046b5
  9750. 80046a4: 08004817 .word 0x08004817
  9751. 80046a8: 080047fb .word 0x080047fb
  9752. 80046ac: 080048b7 .word 0x080048b7
  9753. 80046b0: 08004971 .word 0x08004971
  9754. case srWaitForHeader:
  9755. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9756. 80046b4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9757. 80046b8: 6a1b ldr r3, [r3, #32]
  9758. 80046ba: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9759. 80046be: 4618 mov r0, r3
  9760. 80046c0: f00f fb2d bl 8013d1e <osMutexAcquire>
  9761. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  9762. 80046c4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9763. 80046c8: 691b ldr r3, [r3, #16]
  9764. 80046ca: 781b ldrb r3, [r3, #0]
  9765. 80046cc: 2baa cmp r3, #170 @ 0xaa
  9766. 80046ce: f040 8082 bne.w 80047d6 <UartRxTask+0x2a2>
  9767. if (frameBytesCount > FRAME_ID_LENGTH) {
  9768. 80046d2: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9769. 80046d6: 2b02 cmp r3, #2
  9770. 80046d8: d914 bls.n 8004704 <UartRxTask+0x1d0>
  9771. spFrameData.frameHeader.frameId =
  9772. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  9773. 80046da: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9774. 80046de: 691b ldr r3, [r3, #16]
  9775. 80046e0: 3302 adds r3, #2
  9776. 80046e2: 781b ldrb r3, [r3, #0]
  9777. 80046e4: 021b lsls r3, r3, #8
  9778. 80046e6: b21a sxth r2, r3
  9779. 80046e8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9780. 80046ec: 691b ldr r3, [r3, #16]
  9781. 80046ee: 3301 adds r3, #1
  9782. 80046f0: 781b ldrb r3, [r3, #0]
  9783. 80046f2: b21b sxth r3, r3
  9784. 80046f4: 4313 orrs r3, r2
  9785. 80046f6: b21b sxth r3, r3
  9786. 80046f8: b29a uxth r2, r3
  9787. spFrameData.frameHeader.frameId =
  9788. 80046fa: f507 73a0 add.w r3, r7, #320 @ 0x140
  9789. 80046fe: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9790. 8004702: 801a strh r2, [r3, #0]
  9791. }
  9792. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  9793. 8004704: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9794. 8004708: 2b04 cmp r3, #4
  9795. 800470a: d923 bls.n 8004754 <UartRxTask+0x220>
  9796. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  9797. 800470c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9798. 8004710: 691b ldr r3, [r3, #16]
  9799. 8004712: 3304 adds r3, #4
  9800. 8004714: 781b ldrb r3, [r3, #0]
  9801. 8004716: 021b lsls r3, r3, #8
  9802. 8004718: b21a sxth r2, r3
  9803. 800471a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9804. 800471e: 691b ldr r3, [r3, #16]
  9805. 8004720: 3303 adds r3, #3
  9806. 8004722: 781b ldrb r3, [r3, #0]
  9807. 8004724: b21b sxth r3, r3
  9808. 8004726: 4313 orrs r3, r2
  9809. 8004728: b21b sxth r3, r3
  9810. 800472a: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9811. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  9812. 800472e: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  9813. 8004732: b2da uxtb r2, r3
  9814. 8004734: f507 73a0 add.w r3, r7, #320 @ 0x140
  9815. 8004738: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9816. 800473c: 709a strb r2, [r3, #2]
  9817. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  9818. 800473e: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  9819. 8004742: 13db asrs r3, r3, #15
  9820. 8004744: b21b sxth r3, r3
  9821. 8004746: f003 0201 and.w r2, r3, #1
  9822. 800474a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9823. 800474e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9824. 8004752: 609a str r2, [r3, #8]
  9825. }
  9826. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  9827. 8004754: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9828. 8004758: 2b05 cmp r3, #5
  9829. 800475a: d913 bls.n 8004784 <UartRxTask+0x250>
  9830. 800475c: f507 73a0 add.w r3, r7, #320 @ 0x140
  9831. 8004760: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9832. 8004764: 789b ldrb r3, [r3, #2]
  9833. 8004766: f403 4300 and.w r3, r3, #32768 @ 0x8000
  9834. 800476a: 2b00 cmp r3, #0
  9835. 800476c: d00a beq.n 8004784 <UartRxTask+0x250>
  9836. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  9837. 800476e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9838. 8004772: 691b ldr r3, [r3, #16]
  9839. 8004774: 3305 adds r3, #5
  9840. 8004776: 781b ldrb r3, [r3, #0]
  9841. 8004778: b25a sxtb r2, r3
  9842. 800477a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9843. 800477e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9844. 8004782: 70da strb r2, [r3, #3]
  9845. }
  9846. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  9847. 8004784: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9848. 8004788: 2b07 cmp r3, #7
  9849. 800478a: d920 bls.n 80047ce <UartRxTask+0x29a>
  9850. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  9851. 800478c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9852. 8004790: 691b ldr r3, [r3, #16]
  9853. 8004792: 3306 adds r3, #6
  9854. 8004794: 781b ldrb r3, [r3, #0]
  9855. 8004796: 021b lsls r3, r3, #8
  9856. 8004798: b21a sxth r2, r3
  9857. 800479a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9858. 800479e: 691b ldr r3, [r3, #16]
  9859. 80047a0: 3305 adds r3, #5
  9860. 80047a2: 781b ldrb r3, [r3, #0]
  9861. 80047a4: b21b sxth r3, r3
  9862. 80047a6: 4313 orrs r3, r2
  9863. 80047a8: b21b sxth r3, r3
  9864. 80047aa: b29a uxth r2, r3
  9865. 80047ac: f507 73a0 add.w r3, r7, #320 @ 0x140
  9866. 80047b0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9867. 80047b4: 809a strh r2, [r3, #4]
  9868. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  9869. 80047b6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9870. 80047ba: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9871. 80047be: 889b ldrh r3, [r3, #4]
  9872. 80047c0: 330a adds r3, #10
  9873. 80047c2: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9874. receverState = srRecieveData;
  9875. 80047c6: 2302 movs r3, #2
  9876. 80047c8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9877. 80047cc: e00e b.n 80047ec <UartRxTask+0x2b8>
  9878. } else {
  9879. proceed = pdFALSE;
  9880. 80047ce: 2300 movs r3, #0
  9881. 80047d0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9882. 80047d4: e00a b.n 80047ec <UartRxTask+0x2b8>
  9883. }
  9884. } else {
  9885. if (frameBytesCount > 0) {
  9886. 80047d6: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9887. 80047da: 2b00 cmp r3, #0
  9888. 80047dc: d003 beq.n 80047e6 <UartRxTask+0x2b2>
  9889. receverState = srFail;
  9890. 80047de: 2304 movs r3, #4
  9891. 80047e0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9892. 80047e4: e002 b.n 80047ec <UartRxTask+0x2b8>
  9893. } else {
  9894. proceed = pdFALSE;
  9895. 80047e6: 2300 movs r3, #0
  9896. 80047e8: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9897. }
  9898. }
  9899. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9900. 80047ec: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9901. 80047f0: 6a1b ldr r3, [r3, #32]
  9902. 80047f2: 4618 mov r0, r3
  9903. 80047f4: f00f fade bl 8013db4 <osMutexRelease>
  9904. break;
  9905. 80047f8: e165 b.n 8004ac6 <UartRxTask+0x592>
  9906. case srRecieveData:
  9907. if (frameBytesCount >= frameTotalLength) {
  9908. 80047fa: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  9909. 80047fe: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9910. 8004802: 429a cmp r2, r3
  9911. 8004804: d303 bcc.n 800480e <UartRxTask+0x2da>
  9912. receverState = srCheckCrc;
  9913. 8004806: 2301 movs r3, #1
  9914. 8004808: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9915. } else {
  9916. proceed = pdFALSE;
  9917. }
  9918. break;
  9919. 800480c: e15b b.n 8004ac6 <UartRxTask+0x592>
  9920. proceed = pdFALSE;
  9921. 800480e: 2300 movs r3, #0
  9922. 8004810: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9923. break;
  9924. 8004814: e157 b.n 8004ac6 <UartRxTask+0x592>
  9925. case srCheckCrc:
  9926. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9927. 8004816: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9928. 800481a: 6a1b ldr r3, [r3, #32]
  9929. 800481c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9930. 8004820: 4618 mov r0, r3
  9931. 8004822: f00f fa7c bl 8013d1e <osMutexAcquire>
  9932. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  9933. 8004826: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9934. 800482a: 691a ldr r2, [r3, #16]
  9935. 800482c: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9936. 8004830: 3b01 subs r3, #1
  9937. 8004832: 4413 add r3, r2
  9938. 8004834: 781b ldrb r3, [r3, #0]
  9939. 8004836: 021b lsls r3, r3, #8
  9940. 8004838: b21a sxth r2, r3
  9941. 800483a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9942. 800483e: 6919 ldr r1, [r3, #16]
  9943. 8004840: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9944. 8004844: 3b02 subs r3, #2
  9945. 8004846: 440b add r3, r1
  9946. 8004848: 781b ldrb r3, [r3, #0]
  9947. 800484a: b21b sxth r3, r3
  9948. 800484c: 4313 orrs r3, r2
  9949. 800484e: b21b sxth r3, r3
  9950. 8004850: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9951. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  9952. 8004854: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9953. 8004858: 6919 ldr r1, [r3, #16]
  9954. 800485a: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9955. 800485e: 3b02 subs r3, #2
  9956. 8004860: 461a mov r2, r3
  9957. 8004862: 4841 ldr r0, [pc, #260] @ (8004968 <UartRxTask+0x434>)
  9958. 8004864: f002 fe2a bl 80074bc <HAL_CRC_Calculate>
  9959. 8004868: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  9960. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9961. 800486c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9962. 8004870: 6a1b ldr r3, [r3, #32]
  9963. 8004872: 4618 mov r0, r3
  9964. 8004874: f00f fa9e bl 8013db4 <osMutexRelease>
  9965. crcPass = frameCrc == crc;
  9966. 8004878: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  9967. 800487c: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  9968. 8004880: 429a cmp r2, r3
  9969. 8004882: bf0c ite eq
  9970. 8004884: 2301 moveq r3, #1
  9971. 8004886: 2300 movne r3, #0
  9972. 8004888: b2db uxtb r3, r3
  9973. 800488a: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9974. if (crcPass) {
  9975. 800488e: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9976. 8004892: 2b00 cmp r3, #0
  9977. 8004894: d00b beq.n 80048ae <UartRxTask+0x37a>
  9978. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  9979. 8004896: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9980. 800489a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9981. 800489e: 4619 mov r1, r3
  9982. 80048a0: 4832 ldr r0, [pc, #200] @ (800496c <UartRxTask+0x438>)
  9983. 80048a2: f013 fa2b bl 8017cfc <iprintf>
  9984. receverState = srExecuteCmd;
  9985. 80048a6: 2303 movs r3, #3
  9986. 80048a8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9987. } else {
  9988. receverState = srFail;
  9989. }
  9990. break;
  9991. 80048ac: e10b b.n 8004ac6 <UartRxTask+0x592>
  9992. receverState = srFail;
  9993. 80048ae: 2304 movs r3, #4
  9994. 80048b0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9995. break;
  9996. 80048b4: e107 b.n 8004ac6 <UartRxTask+0x592>
  9997. case srExecuteCmd:
  9998. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  9999. 80048b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10000. 80048ba: 6a9b ldr r3, [r3, #40] @ 0x28
  10001. 80048bc: 2b00 cmp r3, #0
  10002. 80048be: d104 bne.n 80048ca <UartRxTask+0x396>
  10003. 80048c0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10004. 80048c4: 6a5b ldr r3, [r3, #36] @ 0x24
  10005. 80048c6: 2b00 cmp r3, #0
  10006. 80048c8: d01e beq.n 8004908 <UartRxTask+0x3d4>
  10007. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10008. 80048ca: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10009. 80048ce: 6a1b ldr r3, [r3, #32]
  10010. 80048d0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10011. 80048d4: 4618 mov r0, r3
  10012. 80048d6: f00f fa22 bl 8013d1e <osMutexAcquire>
  10013. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10014. 80048da: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10015. 80048de: 691b ldr r3, [r3, #16]
  10016. 80048e0: f103 0108 add.w r1, r3, #8
  10017. 80048e4: f507 73a0 add.w r3, r7, #320 @ 0x140
  10018. 80048e8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10019. 80048ec: 889b ldrh r3, [r3, #4]
  10020. 80048ee: 461a mov r2, r3
  10021. 80048f0: f107 0310 add.w r3, r7, #16
  10022. 80048f4: 330c adds r3, #12
  10023. 80048f6: 4618 mov r0, r3
  10024. 80048f8: f013 fb27 bl 8017f4a <memcpy>
  10025. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10026. 80048fc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10027. 8004900: 6a1b ldr r3, [r3, #32]
  10028. 8004902: 4618 mov r0, r3
  10029. 8004904: f00f fa56 bl 8013db4 <osMutexRelease>
  10030. }
  10031. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10032. 8004908: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10033. 800490c: 6a5b ldr r3, [r3, #36] @ 0x24
  10034. 800490e: 2b00 cmp r3, #0
  10035. 8004910: d015 beq.n 800493e <UartRxTask+0x40a>
  10036. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  10037. 8004912: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10038. 8004916: 6a58 ldr r0, [r3, #36] @ 0x24
  10039. 8004918: f507 73a0 add.w r3, r7, #320 @ 0x140
  10040. 800491c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10041. 8004920: 889b ldrh r3, [r3, #4]
  10042. 8004922: f103 020c add.w r2, r3, #12
  10043. 8004926: f107 0110 add.w r1, r7, #16
  10044. 800492a: 23c8 movs r3, #200 @ 0xc8
  10045. 800492c: f010 fc64 bl 80151f8 <xStreamBufferSend>
  10046. 8004930: 4603 mov r3, r0
  10047. 8004932: 2b00 cmp r3, #0
  10048. 8004934: d103 bne.n 800493e <UartRxTask+0x40a>
  10049. receverState = srFail;
  10050. 8004936: 2304 movs r3, #4
  10051. 8004938: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10052. break;
  10053. 800493c: e0c3 b.n 8004ac6 <UartRxTask+0x592>
  10054. }
  10055. }
  10056. if (uartTaskData->processDataCb != NULL) {
  10057. 800493e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10058. 8004942: 6a9b ldr r3, [r3, #40] @ 0x28
  10059. 8004944: 2b00 cmp r3, #0
  10060. 8004946: d008 beq.n 800495a <UartRxTask+0x426>
  10061. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10062. 8004948: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10063. 800494c: 6a9b ldr r3, [r3, #40] @ 0x28
  10064. 800494e: f107 0210 add.w r2, r7, #16
  10065. 8004952: 4611 mov r1, r2
  10066. 8004954: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10067. 8004958: 4798 blx r3
  10068. }
  10069. receverState = srFinish;
  10070. 800495a: 2305 movs r3, #5
  10071. 800495c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10072. break;
  10073. 8004960: e0b1 b.n 8004ac6 <UartRxTask+0x592>
  10074. 8004962: bf00 nop
  10075. 8004964: 08018b0c .word 0x08018b0c
  10076. 8004968: 24000400 .word 0x24000400
  10077. 800496c: 08018b2c .word 0x08018b2c
  10078. case srFail:
  10079. dataToSend = 0;
  10080. 8004970: 2300 movs r3, #0
  10081. 8004972: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10082. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10083. 8004976: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10084. 800497a: 2b01 cmp r3, #1
  10085. 800497c: d124 bne.n 80049c8 <UartRxTask+0x494>
  10086. 800497e: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10087. 8004982: 2b02 cmp r3, #2
  10088. 8004984: d920 bls.n 80049c8 <UartRxTask+0x494>
  10089. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10090. 8004986: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10091. 800498a: 6898 ldr r0, [r3, #8]
  10092. 800498c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10093. 8004990: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10094. 8004994: 8819 ldrh r1, [r3, #0]
  10095. 8004996: f507 73a0 add.w r3, r7, #320 @ 0x140
  10096. 800499a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10097. 800499e: 789a ldrb r2, [r3, #2]
  10098. 80049a0: 2300 movs r3, #0
  10099. 80049a2: 9301 str r3, [sp, #4]
  10100. 80049a4: 2300 movs r3, #0
  10101. 80049a6: 9300 str r3, [sp, #0]
  10102. 80049a8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10103. 80049ac: f7fe fcc4 bl 8003338 <PrepareRespFrame>
  10104. 80049b0: 4603 mov r3, r0
  10105. 80049b2: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10106. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  10107. 80049b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10108. 80049ba: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10109. 80049be: 4619 mov r1, r3
  10110. 80049c0: 4844 ldr r0, [pc, #272] @ (8004ad4 <UartRxTask+0x5a0>)
  10111. 80049c2: f013 f99b bl 8017cfc <iprintf>
  10112. 80049c6: e03c b.n 8004a42 <UartRxTask+0x50e>
  10113. } else if (!crcPass) {
  10114. 80049c8: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10115. 80049cc: 2b00 cmp r3, #0
  10116. 80049ce: d120 bne.n 8004a12 <UartRxTask+0x4de>
  10117. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  10118. 80049d0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10119. 80049d4: 6898 ldr r0, [r3, #8]
  10120. 80049d6: f507 73a0 add.w r3, r7, #320 @ 0x140
  10121. 80049da: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10122. 80049de: 8819 ldrh r1, [r3, #0]
  10123. 80049e0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10124. 80049e4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10125. 80049e8: 789a ldrb r2, [r3, #2]
  10126. 80049ea: 2300 movs r3, #0
  10127. 80049ec: 9301 str r3, [sp, #4]
  10128. 80049ee: 2300 movs r3, #0
  10129. 80049f0: 9300 str r3, [sp, #0]
  10130. 80049f2: f06f 0301 mvn.w r3, #1
  10131. 80049f6: f7fe fc9f bl 8003338 <PrepareRespFrame>
  10132. 80049fa: 4603 mov r3, r0
  10133. 80049fc: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10134. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  10135. 8004a00: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10136. 8004a04: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10137. 8004a08: 4619 mov r1, r3
  10138. 8004a0a: 4833 ldr r0, [pc, #204] @ (8004ad8 <UartRxTask+0x5a4>)
  10139. 8004a0c: f013 f976 bl 8017cfc <iprintf>
  10140. 8004a10: e017 b.n 8004a42 <UartRxTask+0x50e>
  10141. } else {
  10142. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  10143. 8004a12: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10144. 8004a16: 6898 ldr r0, [r3, #8]
  10145. 8004a18: f507 73a0 add.w r3, r7, #320 @ 0x140
  10146. 8004a1c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10147. 8004a20: 8819 ldrh r1, [r3, #0]
  10148. 8004a22: f507 73a0 add.w r3, r7, #320 @ 0x140
  10149. 8004a26: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10150. 8004a2a: 789a ldrb r2, [r3, #2]
  10151. 8004a2c: 2300 movs r3, #0
  10152. 8004a2e: 9301 str r3, [sp, #4]
  10153. 8004a30: 2300 movs r3, #0
  10154. 8004a32: 9300 str r3, [sp, #0]
  10155. 8004a34: f06f 0303 mvn.w r3, #3
  10156. 8004a38: f7fe fc7e bl 8003338 <PrepareRespFrame>
  10157. 8004a3c: 4603 mov r3, r0
  10158. 8004a3e: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10159. }
  10160. if (dataToSend > 0) {
  10161. 8004a42: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  10162. 8004a46: 2b00 cmp r3, #0
  10163. 8004a48: d00a beq.n 8004a60 <UartRxTask+0x52c>
  10164. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  10165. 8004a4a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10166. 8004a4e: 6b18 ldr r0, [r3, #48] @ 0x30
  10167. 8004a50: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10168. 8004a54: 689b ldr r3, [r3, #8]
  10169. 8004a56: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  10170. 8004a5a: 4619 mov r1, r3
  10171. 8004a5c: f00c f932 bl 8010cc4 <HAL_UART_Transmit_IT>
  10172. }
  10173. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  10174. 8004a60: f8b7 113c ldrh.w r1, [r7, #316] @ 0x13c
  10175. 8004a64: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10176. 8004a68: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10177. 8004a6c: 461a mov r2, r3
  10178. 8004a6e: 481b ldr r0, [pc, #108] @ (8004adc <UartRxTask+0x5a8>)
  10179. 8004a70: f013 f944 bl 8017cfc <iprintf>
  10180. receverState = srFinish;
  10181. 8004a74: 2305 movs r3, #5
  10182. 8004a76: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10183. break;
  10184. 8004a7a: e024 b.n 8004ac6 <UartRxTask+0x592>
  10185. case srFinish:
  10186. default:
  10187. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10188. 8004a7c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10189. 8004a80: 6a1b ldr r3, [r3, #32]
  10190. 8004a82: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10191. 8004a86: 4618 mov r0, r3
  10192. 8004a88: f00f f949 bl 8013d1e <osMutexAcquire>
  10193. uartTaskData->frameBytesCount = 0;
  10194. 8004a8c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10195. 8004a90: 2200 movs r2, #0
  10196. 8004a92: 82da strh r2, [r3, #22]
  10197. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10198. 8004a94: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10199. 8004a98: 6a1b ldr r3, [r3, #32]
  10200. 8004a9a: 4618 mov r0, r3
  10201. 8004a9c: f00f f98a bl 8013db4 <osMutexRelease>
  10202. spFrameData.frameHeader.frameCommand = spUnknown;
  10203. 8004aa0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10204. 8004aa4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10205. 8004aa8: 2210 movs r2, #16
  10206. 8004aaa: 709a strb r2, [r3, #2]
  10207. frameTotalLength = 0;
  10208. 8004aac: 2300 movs r3, #0
  10209. 8004aae: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10210. outputDataBufferPos = 0;
  10211. 8004ab2: 4b0b ldr r3, [pc, #44] @ (8004ae0 <UartRxTask+0x5ac>)
  10212. 8004ab4: 2200 movs r2, #0
  10213. 8004ab6: 801a strh r2, [r3, #0]
  10214. receverState = srWaitForHeader;
  10215. 8004ab8: 2300 movs r3, #0
  10216. 8004aba: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10217. proceed = pdFALSE;
  10218. 8004abe: 2300 movs r3, #0
  10219. 8004ac0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10220. break;
  10221. 8004ac4: bf00 nop
  10222. while (proceed) {
  10223. 8004ac6: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  10224. 8004aca: 2b00 cmp r3, #0
  10225. 8004acc: f47f ade0 bne.w 8004690 <UartRxTask+0x15c>
  10226. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10227. 8004ad0: e581 b.n 80045d6 <UartRxTask+0xa2>
  10228. 8004ad2: bf00 nop
  10229. 8004ad4: 08018b44 .word 0x08018b44
  10230. 8004ad8: 08018b68 .word 0x08018b68
  10231. 8004adc: 08018b80 .word 0x08018b80
  10232. 8004ae0: 24000cf8 .word 0x24000cf8
  10233. 08004ae4 <Uart1ReceivedDataProcessCallback>:
  10234. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10235. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  10236. }
  10237. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10238. 8004ae4: b590 push {r4, r7, lr}
  10239. 8004ae6: b0a3 sub sp, #140 @ 0x8c
  10240. 8004ae8: af06 add r7, sp, #24
  10241. 8004aea: 6078 str r0, [r7, #4]
  10242. 8004aec: 6039 str r1, [r7, #0]
  10243. UartTaskData* uartTaskData = (UartTaskData*)arg;
  10244. 8004aee: 687b ldr r3, [r7, #4]
  10245. 8004af0: 64fb str r3, [r7, #76] @ 0x4c
  10246. uint16_t dataToSend = 0;
  10247. 8004af2: 2300 movs r3, #0
  10248. 8004af4: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  10249. outputDataBufferPos = 0;
  10250. 8004af8: 4ba4 ldr r3, [pc, #656] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10251. 8004afa: 2200 movs r2, #0
  10252. 8004afc: 801a strh r2, [r3, #0]
  10253. uint16_t inputDataBufferPos = 0;
  10254. 8004afe: 2300 movs r3, #0
  10255. 8004b00: 86bb strh r3, [r7, #52] @ 0x34
  10256. SerialProtocolRespStatus respStatus = spUnknownCommand;
  10257. 8004b02: 23fd movs r3, #253 @ 0xfd
  10258. 8004b04: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10259. switch (spFrameData->frameHeader.frameCommand) {
  10260. 8004b08: 683b ldr r3, [r7, #0]
  10261. 8004b0a: 789b ldrb r3, [r3, #2]
  10262. 8004b0c: 2b0f cmp r3, #15
  10263. 8004b0e: f200 8479 bhi.w 8005404 <Uart1ReceivedDataProcessCallback+0x920>
  10264. 8004b12: a201 add r2, pc, #4 @ (adr r2, 8004b18 <Uart1ReceivedDataProcessCallback+0x34>)
  10265. 8004b14: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10266. 8004b18: 08004b59 .word 0x08004b59
  10267. 8004b1c: 08004c47 .word 0x08004c47
  10268. 8004b20: 08004df1 .word 0x08004df1
  10269. 8004b24: 08004ead .word 0x08004ead
  10270. 8004b28: 08004f4f .word 0x08004f4f
  10271. 8004b2c: 0800506d .word 0x0800506d
  10272. 8004b30: 080050f5 .word 0x080050f5
  10273. 8004b34: 08004ff1 .word 0x08004ff1
  10274. 8004b38: 0800514b .word 0x0800514b
  10275. 8004b3c: 080051bd .word 0x080051bd
  10276. 8004b40: 08005209 .word 0x08005209
  10277. 8004b44: 08005255 .word 0x08005255
  10278. 8004b48: 080052b7 .word 0x080052b7
  10279. 8004b4c: 0800531b .word 0x0800531b
  10280. 8004b50: 0800537d .word 0x0800537d
  10281. 8004b54: 080053e1 .word 0x080053e1
  10282. case spGetElectricalMeasurments:
  10283. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  10284. 8004b58: 4b8d ldr r3, [pc, #564] @ (8004d90 <Uart1ReceivedDataProcessCallback+0x2ac>)
  10285. 8004b5a: 681b ldr r3, [r3, #0]
  10286. 8004b5c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10287. 8004b60: 4618 mov r0, r3
  10288. 8004b62: f00f f8dc bl 8013d1e <osMutexAcquire>
  10289. 8004b66: 4603 mov r3, r0
  10290. 8004b68: 2b00 cmp r3, #0
  10291. 8004b6a: d168 bne.n 8004c3e <Uart1ReceivedDataProcessCallback+0x15a>
  10292. for (int i = 0; i < 3; i++) {
  10293. 8004b6c: 2300 movs r3, #0
  10294. 8004b6e: 66bb str r3, [r7, #104] @ 0x68
  10295. 8004b70: e00b b.n 8004b8a <Uart1ReceivedDataProcessCallback+0xa6>
  10296. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  10297. 8004b72: 6ebb ldr r3, [r7, #104] @ 0x68
  10298. 8004b74: 009b lsls r3, r3, #2
  10299. 8004b76: 4a87 ldr r2, [pc, #540] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10300. 8004b78: 441a add r2, r3
  10301. 8004b7a: 2304 movs r3, #4
  10302. 8004b7c: 4983 ldr r1, [pc, #524] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10303. 8004b7e: 4886 ldr r0, [pc, #536] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10304. 8004b80: f7fe fb76 bl 8003270 <WriteDataToBuffer>
  10305. for (int i = 0; i < 3; i++) {
  10306. 8004b84: 6ebb ldr r3, [r7, #104] @ 0x68
  10307. 8004b86: 3301 adds r3, #1
  10308. 8004b88: 66bb str r3, [r7, #104] @ 0x68
  10309. 8004b8a: 6ebb ldr r3, [r7, #104] @ 0x68
  10310. 8004b8c: 2b02 cmp r3, #2
  10311. 8004b8e: ddf0 ble.n 8004b72 <Uart1ReceivedDataProcessCallback+0x8e>
  10312. }
  10313. for (int i = 0; i < 3; i++) {
  10314. 8004b90: 2300 movs r3, #0
  10315. 8004b92: 667b str r3, [r7, #100] @ 0x64
  10316. 8004b94: e00d b.n 8004bb2 <Uart1ReceivedDataProcessCallback+0xce>
  10317. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  10318. 8004b96: 6e7b ldr r3, [r7, #100] @ 0x64
  10319. 8004b98: 3302 adds r3, #2
  10320. 8004b9a: 009b lsls r3, r3, #2
  10321. 8004b9c: 4a7d ldr r2, [pc, #500] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10322. 8004b9e: 4413 add r3, r2
  10323. 8004ba0: 1d1a adds r2, r3, #4
  10324. 8004ba2: 2304 movs r3, #4
  10325. 8004ba4: 4979 ldr r1, [pc, #484] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10326. 8004ba6: 487c ldr r0, [pc, #496] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10327. 8004ba8: f7fe fb62 bl 8003270 <WriteDataToBuffer>
  10328. for (int i = 0; i < 3; i++) {
  10329. 8004bac: 6e7b ldr r3, [r7, #100] @ 0x64
  10330. 8004bae: 3301 adds r3, #1
  10331. 8004bb0: 667b str r3, [r7, #100] @ 0x64
  10332. 8004bb2: 6e7b ldr r3, [r7, #100] @ 0x64
  10333. 8004bb4: 2b02 cmp r3, #2
  10334. 8004bb6: ddee ble.n 8004b96 <Uart1ReceivedDataProcessCallback+0xb2>
  10335. }
  10336. for (int i = 0; i < 3; i++) {
  10337. 8004bb8: 2300 movs r3, #0
  10338. 8004bba: 663b str r3, [r7, #96] @ 0x60
  10339. 8004bbc: e00c b.n 8004bd8 <Uart1ReceivedDataProcessCallback+0xf4>
  10340. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  10341. 8004bbe: 6e3b ldr r3, [r7, #96] @ 0x60
  10342. 8004bc0: 3306 adds r3, #6
  10343. 8004bc2: 009b lsls r3, r3, #2
  10344. 8004bc4: 4a73 ldr r2, [pc, #460] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10345. 8004bc6: 441a add r2, r3
  10346. 8004bc8: 2304 movs r3, #4
  10347. 8004bca: 4970 ldr r1, [pc, #448] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10348. 8004bcc: 4872 ldr r0, [pc, #456] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10349. 8004bce: f7fe fb4f bl 8003270 <WriteDataToBuffer>
  10350. for (int i = 0; i < 3; i++) {
  10351. 8004bd2: 6e3b ldr r3, [r7, #96] @ 0x60
  10352. 8004bd4: 3301 adds r3, #1
  10353. 8004bd6: 663b str r3, [r7, #96] @ 0x60
  10354. 8004bd8: 6e3b ldr r3, [r7, #96] @ 0x60
  10355. 8004bda: 2b02 cmp r3, #2
  10356. 8004bdc: ddef ble.n 8004bbe <Uart1ReceivedDataProcessCallback+0xda>
  10357. }
  10358. for (int i = 0; i < 3; i++) {
  10359. 8004bde: 2300 movs r3, #0
  10360. 8004be0: 65fb str r3, [r7, #92] @ 0x5c
  10361. 8004be2: e00d b.n 8004c00 <Uart1ReceivedDataProcessCallback+0x11c>
  10362. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  10363. 8004be4: 6dfb ldr r3, [r7, #92] @ 0x5c
  10364. 8004be6: 3308 adds r3, #8
  10365. 8004be8: 009b lsls r3, r3, #2
  10366. 8004bea: 4a6a ldr r2, [pc, #424] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10367. 8004bec: 4413 add r3, r2
  10368. 8004bee: 1d1a adds r2, r3, #4
  10369. 8004bf0: 2304 movs r3, #4
  10370. 8004bf2: 4966 ldr r1, [pc, #408] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10371. 8004bf4: 4868 ldr r0, [pc, #416] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10372. 8004bf6: f7fe fb3b bl 8003270 <WriteDataToBuffer>
  10373. for (int i = 0; i < 3; i++) {
  10374. 8004bfa: 6dfb ldr r3, [r7, #92] @ 0x5c
  10375. 8004bfc: 3301 adds r3, #1
  10376. 8004bfe: 65fb str r3, [r7, #92] @ 0x5c
  10377. 8004c00: 6dfb ldr r3, [r7, #92] @ 0x5c
  10378. 8004c02: 2b02 cmp r3, #2
  10379. 8004c04: ddee ble.n 8004be4 <Uart1ReceivedDataProcessCallback+0x100>
  10380. }
  10381. for (int i = 0; i < 3; i++) {
  10382. 8004c06: 2300 movs r3, #0
  10383. 8004c08: 65bb str r3, [r7, #88] @ 0x58
  10384. 8004c0a: e00c b.n 8004c26 <Uart1ReceivedDataProcessCallback+0x142>
  10385. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  10386. 8004c0c: 6dbb ldr r3, [r7, #88] @ 0x58
  10387. 8004c0e: 330c adds r3, #12
  10388. 8004c10: 009b lsls r3, r3, #2
  10389. 8004c12: 4a60 ldr r2, [pc, #384] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10390. 8004c14: 441a add r2, r3
  10391. 8004c16: 2304 movs r3, #4
  10392. 8004c18: 495c ldr r1, [pc, #368] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10393. 8004c1a: 485f ldr r0, [pc, #380] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10394. 8004c1c: f7fe fb28 bl 8003270 <WriteDataToBuffer>
  10395. for (int i = 0; i < 3; i++) {
  10396. 8004c20: 6dbb ldr r3, [r7, #88] @ 0x58
  10397. 8004c22: 3301 adds r3, #1
  10398. 8004c24: 65bb str r3, [r7, #88] @ 0x58
  10399. 8004c26: 6dbb ldr r3, [r7, #88] @ 0x58
  10400. 8004c28: 2b02 cmp r3, #2
  10401. 8004c2a: ddef ble.n 8004c0c <Uart1ReceivedDataProcessCallback+0x128>
  10402. }
  10403. osMutexRelease (resMeasurementsMutex);
  10404. 8004c2c: 4b58 ldr r3, [pc, #352] @ (8004d90 <Uart1ReceivedDataProcessCallback+0x2ac>)
  10405. 8004c2e: 681b ldr r3, [r3, #0]
  10406. 8004c30: 4618 mov r0, r3
  10407. 8004c32: f00f f8bf bl 8013db4 <osMutexRelease>
  10408. respStatus = spOK;
  10409. 8004c36: 2300 movs r3, #0
  10410. 8004c38: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10411. } else {
  10412. respStatus = spInternalError;
  10413. }
  10414. break;
  10415. 8004c3c: e3e6 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10416. respStatus = spInternalError;
  10417. 8004c3e: 23fc movs r3, #252 @ 0xfc
  10418. 8004c40: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10419. break;
  10420. 8004c44: e3e2 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10421. case spGetSensorMeasurments:
  10422. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10423. 8004c46: 4b55 ldr r3, [pc, #340] @ (8004d9c <Uart1ReceivedDataProcessCallback+0x2b8>)
  10424. 8004c48: 681b ldr r3, [r3, #0]
  10425. 8004c4a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10426. 8004c4e: 4618 mov r0, r3
  10427. 8004c50: f00f f865 bl 8013d1e <osMutexAcquire>
  10428. 8004c54: 4603 mov r3, r0
  10429. 8004c56: 2b00 cmp r3, #0
  10430. 8004c58: f040 8094 bne.w 8004d84 <Uart1ReceivedDataProcessCallback+0x2a0>
  10431. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  10432. 8004c5c: 2304 movs r3, #4
  10433. 8004c5e: 4a50 ldr r2, [pc, #320] @ (8004da0 <Uart1ReceivedDataProcessCallback+0x2bc>)
  10434. 8004c60: 494a ldr r1, [pc, #296] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10435. 8004c62: 484d ldr r0, [pc, #308] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10436. 8004c64: f7fe fb04 bl 8003270 <WriteDataToBuffer>
  10437. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  10438. 8004c68: 2304 movs r3, #4
  10439. 8004c6a: 4a4e ldr r2, [pc, #312] @ (8004da4 <Uart1ReceivedDataProcessCallback+0x2c0>)
  10440. 8004c6c: 4947 ldr r1, [pc, #284] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10441. 8004c6e: 484a ldr r0, [pc, #296] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10442. 8004c70: f7fe fafe bl 8003270 <WriteDataToBuffer>
  10443. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  10444. 8004c74: 2304 movs r3, #4
  10445. 8004c76: 4a4c ldr r2, [pc, #304] @ (8004da8 <Uart1ReceivedDataProcessCallback+0x2c4>)
  10446. 8004c78: 4944 ldr r1, [pc, #272] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10447. 8004c7a: 4847 ldr r0, [pc, #284] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10448. 8004c7c: f7fe faf8 bl 8003270 <WriteDataToBuffer>
  10449. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  10450. 8004c80: 2304 movs r3, #4
  10451. 8004c82: 4a4a ldr r2, [pc, #296] @ (8004dac <Uart1ReceivedDataProcessCallback+0x2c8>)
  10452. 8004c84: 4941 ldr r1, [pc, #260] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10453. 8004c86: 4844 ldr r0, [pc, #272] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10454. 8004c88: f7fe faf2 bl 8003270 <WriteDataToBuffer>
  10455. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  10456. 8004c8c: 2304 movs r3, #4
  10457. 8004c8e: 4a48 ldr r2, [pc, #288] @ (8004db0 <Uart1ReceivedDataProcessCallback+0x2cc>)
  10458. 8004c90: 493e ldr r1, [pc, #248] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10459. 8004c92: 4841 ldr r0, [pc, #260] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10460. 8004c94: f7fe faec bl 8003270 <WriteDataToBuffer>
  10461. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  10462. 8004c98: 2301 movs r3, #1
  10463. 8004c9a: 4a46 ldr r2, [pc, #280] @ (8004db4 <Uart1ReceivedDataProcessCallback+0x2d0>)
  10464. 8004c9c: 493b ldr r1, [pc, #236] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10465. 8004c9e: 483e ldr r0, [pc, #248] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10466. 8004ca0: f7fe fae6 bl 8003270 <WriteDataToBuffer>
  10467. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  10468. 8004ca4: 2301 movs r3, #1
  10469. 8004ca6: 4a44 ldr r2, [pc, #272] @ (8004db8 <Uart1ReceivedDataProcessCallback+0x2d4>)
  10470. 8004ca8: 4938 ldr r1, [pc, #224] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10471. 8004caa: 483b ldr r0, [pc, #236] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10472. 8004cac: f7fe fae0 bl 8003270 <WriteDataToBuffer>
  10473. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  10474. 8004cb0: 2304 movs r3, #4
  10475. 8004cb2: 4a42 ldr r2, [pc, #264] @ (8004dbc <Uart1ReceivedDataProcessCallback+0x2d8>)
  10476. 8004cb4: 4935 ldr r1, [pc, #212] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10477. 8004cb6: 4838 ldr r0, [pc, #224] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10478. 8004cb8: f7fe fada bl 8003270 <WriteDataToBuffer>
  10479. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  10480. 8004cbc: 2304 movs r3, #4
  10481. 8004cbe: 4a40 ldr r2, [pc, #256] @ (8004dc0 <Uart1ReceivedDataProcessCallback+0x2dc>)
  10482. 8004cc0: 4932 ldr r1, [pc, #200] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10483. 8004cc2: 4835 ldr r0, [pc, #212] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10484. 8004cc4: f7fe fad4 bl 8003270 <WriteDataToBuffer>
  10485. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  10486. 8004cc8: 2304 movs r3, #4
  10487. 8004cca: 4a3e ldr r2, [pc, #248] @ (8004dc4 <Uart1ReceivedDataProcessCallback+0x2e0>)
  10488. 8004ccc: 492f ldr r1, [pc, #188] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10489. 8004cce: 4832 ldr r0, [pc, #200] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10490. 8004cd0: f7fe face bl 8003270 <WriteDataToBuffer>
  10491. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  10492. 8004cd4: 2304 movs r3, #4
  10493. 8004cd6: 4a3c ldr r2, [pc, #240] @ (8004dc8 <Uart1ReceivedDataProcessCallback+0x2e4>)
  10494. 8004cd8: 492c ldr r1, [pc, #176] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10495. 8004cda: 482f ldr r0, [pc, #188] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10496. 8004cdc: f7fe fac8 bl 8003270 <WriteDataToBuffer>
  10497. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  10498. 8004ce0: 2301 movs r3, #1
  10499. 8004ce2: 4a3a ldr r2, [pc, #232] @ (8004dcc <Uart1ReceivedDataProcessCallback+0x2e8>)
  10500. 8004ce4: 4929 ldr r1, [pc, #164] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10501. 8004ce6: 482c ldr r0, [pc, #176] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10502. 8004ce8: f7fe fac2 bl 8003270 <WriteDataToBuffer>
  10503. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  10504. 8004cec: 2301 movs r3, #1
  10505. 8004cee: 4a38 ldr r2, [pc, #224] @ (8004dd0 <Uart1ReceivedDataProcessCallback+0x2ec>)
  10506. 8004cf0: 4926 ldr r1, [pc, #152] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10507. 8004cf2: 4829 ldr r0, [pc, #164] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10508. 8004cf4: f7fe fabc bl 8003270 <WriteDataToBuffer>
  10509. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  10510. 8004cf8: 2301 movs r3, #1
  10511. 8004cfa: 4a36 ldr r2, [pc, #216] @ (8004dd4 <Uart1ReceivedDataProcessCallback+0x2f0>)
  10512. 8004cfc: 4923 ldr r1, [pc, #140] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10513. 8004cfe: 4826 ldr r0, [pc, #152] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10514. 8004d00: f7fe fab6 bl 8003270 <WriteDataToBuffer>
  10515. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  10516. 8004d04: 2301 movs r3, #1
  10517. 8004d06: 4a34 ldr r2, [pc, #208] @ (8004dd8 <Uart1ReceivedDataProcessCallback+0x2f4>)
  10518. 8004d08: 4920 ldr r1, [pc, #128] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10519. 8004d0a: 4823 ldr r0, [pc, #140] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10520. 8004d0c: f7fe fab0 bl 8003270 <WriteDataToBuffer>
  10521. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  10522. 8004d10: 2301 movs r3, #1
  10523. 8004d12: 4a32 ldr r2, [pc, #200] @ (8004ddc <Uart1ReceivedDataProcessCallback+0x2f8>)
  10524. 8004d14: 491d ldr r1, [pc, #116] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10525. 8004d16: 4820 ldr r0, [pc, #128] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10526. 8004d18: f7fe faaa bl 8003270 <WriteDataToBuffer>
  10527. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  10528. 8004d1c: 2301 movs r3, #1
  10529. 8004d1e: 4a30 ldr r2, [pc, #192] @ (8004de0 <Uart1ReceivedDataProcessCallback+0x2fc>)
  10530. 8004d20: 491a ldr r1, [pc, #104] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10531. 8004d22: 481d ldr r0, [pc, #116] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10532. 8004d24: f7fe faa4 bl 8003270 <WriteDataToBuffer>
  10533. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  10534. 8004d28: 482e ldr r0, [pc, #184] @ (8004de4 <Uart1ReceivedDataProcessCallback+0x300>)
  10535. 8004d2a: f002 f9ed bl 8007108 <HAL_COMP_GetOutputLevel>
  10536. 8004d2e: 4603 mov r3, r0
  10537. 8004d30: 2b01 cmp r3, #1
  10538. 8004d32: bf0c ite eq
  10539. 8004d34: 2301 moveq r3, #1
  10540. 8004d36: 2300 movne r3, #0
  10541. 8004d38: b2db uxtb r3, r3
  10542. 8004d3a: f887 3037 strb.w r3, [r7, #55] @ 0x37
  10543. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  10544. 8004d3e: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  10545. 8004d42: 005c lsls r4, r3, #1
  10546. 8004d44: 2108 movs r1, #8
  10547. 8004d46: 4828 ldr r0, [pc, #160] @ (8004de8 <Uart1ReceivedDataProcessCallback+0x304>)
  10548. 8004d48: f005 ff96 bl 800ac78 <HAL_GPIO_ReadPin>
  10549. 8004d4c: 4603 mov r3, r0
  10550. 8004d4e: 4323 orrs r3, r4
  10551. 8004d50: f003 0301 and.w r3, r3, #1
  10552. 8004d54: 2b00 cmp r3, #0
  10553. 8004d56: bf0c ite eq
  10554. 8004d58: 2301 moveq r3, #1
  10555. 8004d5a: 2300 movne r3, #0
  10556. 8004d5c: b2db uxtb r3, r3
  10557. 8004d5e: 461a mov r2, r3
  10558. 8004d60: 4b0f ldr r3, [pc, #60] @ (8004da0 <Uart1ReceivedDataProcessCallback+0x2bc>)
  10559. 8004d62: f883 202e strb.w r2, [r3, #46] @ 0x2e
  10560. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  10561. 8004d66: 2301 movs r3, #1
  10562. 8004d68: 4a20 ldr r2, [pc, #128] @ (8004dec <Uart1ReceivedDataProcessCallback+0x308>)
  10563. 8004d6a: 4908 ldr r1, [pc, #32] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10564. 8004d6c: 480a ldr r0, [pc, #40] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10565. 8004d6e: f7fe fa7f bl 8003270 <WriteDataToBuffer>
  10566. osMutexRelease (sensorsInfoMutex);
  10567. 8004d72: 4b0a ldr r3, [pc, #40] @ (8004d9c <Uart1ReceivedDataProcessCallback+0x2b8>)
  10568. 8004d74: 681b ldr r3, [r3, #0]
  10569. 8004d76: 4618 mov r0, r3
  10570. 8004d78: f00f f81c bl 8013db4 <osMutexRelease>
  10571. respStatus = spOK;
  10572. 8004d7c: 2300 movs r3, #0
  10573. 8004d7e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10574. } else {
  10575. respStatus = spInternalError;
  10576. }
  10577. break;
  10578. 8004d82: e343 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10579. respStatus = spInternalError;
  10580. 8004d84: 23fc movs r3, #252 @ 0xfc
  10581. 8004d86: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10582. break;
  10583. 8004d8a: e33f b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10584. 8004d8c: 24000cf8 .word 0x24000cf8
  10585. 8004d90: 24000838 .word 0x24000838
  10586. 8004d94: 24000844 .word 0x24000844
  10587. 8004d98: 24000c78 .word 0x24000c78
  10588. 8004d9c: 2400083c .word 0x2400083c
  10589. 8004da0: 24000880 .word 0x24000880
  10590. 8004da4: 24000884 .word 0x24000884
  10591. 8004da8: 24000888 .word 0x24000888
  10592. 8004dac: 2400088c .word 0x2400088c
  10593. 8004db0: 24000890 .word 0x24000890
  10594. 8004db4: 24000894 .word 0x24000894
  10595. 8004db8: 24000895 .word 0x24000895
  10596. 8004dbc: 24000898 .word 0x24000898
  10597. 8004dc0: 2400089c .word 0x2400089c
  10598. 8004dc4: 240008a0 .word 0x240008a0
  10599. 8004dc8: 240008a4 .word 0x240008a4
  10600. 8004dcc: 240008a8 .word 0x240008a8
  10601. 8004dd0: 240008a9 .word 0x240008a9
  10602. 8004dd4: 240008aa .word 0x240008aa
  10603. 8004dd8: 240008ab .word 0x240008ab
  10604. 8004ddc: 240008ac .word 0x240008ac
  10605. 8004de0: 240008ad .word 0x240008ad
  10606. 8004de4: 240003d4 .word 0x240003d4
  10607. 8004de8: 58020c00 .word 0x58020c00
  10608. 8004dec: 240008ae .word 0x240008ae
  10609. case spSetFanSpeed:
  10610. osTimerStop (fanTimerHandle);
  10611. 8004df0: 4bb4 ldr r3, [pc, #720] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10612. 8004df2: 681b ldr r3, [r3, #0]
  10613. 8004df4: 4618 mov r0, r3
  10614. 8004df6: f00e fed5 bl 8013ba4 <osTimerStop>
  10615. int32_t fanTimerPeriod = 0;
  10616. 8004dfa: 2300 movs r3, #0
  10617. 8004dfc: 633b str r3, [r7, #48] @ 0x30
  10618. uint32_t pulse = 0;
  10619. 8004dfe: 2300 movs r3, #0
  10620. 8004e00: 62fb str r3, [r7, #44] @ 0x2c
  10621. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  10622. 8004e02: 683b ldr r3, [r7, #0]
  10623. 8004e04: 330c adds r3, #12
  10624. 8004e06: f107 022c add.w r2, r7, #44 @ 0x2c
  10625. 8004e0a: f107 0134 add.w r1, r7, #52 @ 0x34
  10626. 8004e0e: 4618 mov r0, r3
  10627. 8004e10: f7fe fa5f bl 80032d2 <ReadWordFromBufer>
  10628. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  10629. 8004e14: 683b ldr r3, [r7, #0]
  10630. 8004e16: 330c adds r3, #12
  10631. 8004e18: f107 0230 add.w r2, r7, #48 @ 0x30
  10632. 8004e1c: f107 0134 add.w r1, r7, #52 @ 0x34
  10633. 8004e20: 4618 mov r0, r3
  10634. 8004e22: f7fe fa56 bl 80032d2 <ReadWordFromBufer>
  10635. fanTimerConfigOC.Pulse = pulse * 10;
  10636. 8004e26: 6afa ldr r2, [r7, #44] @ 0x2c
  10637. 8004e28: 4613 mov r3, r2
  10638. 8004e2a: 009b lsls r3, r3, #2
  10639. 8004e2c: 4413 add r3, r2
  10640. 8004e2e: 005b lsls r3, r3, #1
  10641. 8004e30: 461a mov r2, r3
  10642. 8004e32: 4ba5 ldr r3, [pc, #660] @ (80050c8 <Uart1ReceivedDataProcessCallback+0x5e4>)
  10643. 8004e34: 605a str r2, [r3, #4]
  10644. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  10645. 8004e36: 2204 movs r2, #4
  10646. 8004e38: 49a3 ldr r1, [pc, #652] @ (80050c8 <Uart1ReceivedDataProcessCallback+0x5e4>)
  10647. 8004e3a: 48a4 ldr r0, [pc, #656] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10648. 8004e3c: f00a fd28 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  10649. 8004e40: 4603 mov r3, r0
  10650. 8004e42: 2b00 cmp r3, #0
  10651. 8004e44: d001 beq.n 8004e4a <Uart1ReceivedDataProcessCallback+0x366>
  10652. Error_Handler ();
  10653. 8004e46: f7fd f89f bl 8001f88 <Error_Handler>
  10654. }
  10655. if (fanTimerPeriod > 0) {
  10656. 8004e4a: 6b3b ldr r3, [r7, #48] @ 0x30
  10657. 8004e4c: 2b00 cmp r3, #0
  10658. 8004e4e: dd0f ble.n 8004e70 <Uart1ReceivedDataProcessCallback+0x38c>
  10659. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  10660. 8004e50: 4b9c ldr r3, [pc, #624] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10661. 8004e52: 681a ldr r2, [r3, #0]
  10662. 8004e54: 6b3b ldr r3, [r7, #48] @ 0x30
  10663. 8004e56: f44f 717a mov.w r1, #1000 @ 0x3e8
  10664. 8004e5a: fb01 f303 mul.w r3, r1, r3
  10665. 8004e5e: 4619 mov r1, r3
  10666. 8004e60: 4610 mov r0, r2
  10667. 8004e62: f00e fe71 bl 8013b48 <osTimerStart>
  10668. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10669. 8004e66: 2104 movs r1, #4
  10670. 8004e68: 4898 ldr r0, [pc, #608] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10671. 8004e6a: f00a f817 bl 800ee9c <HAL_TIM_PWM_Start>
  10672. 8004e6e: e019 b.n 8004ea4 <Uart1ReceivedDataProcessCallback+0x3c0>
  10673. } else if (fanTimerPeriod == 0) {
  10674. 8004e70: 6b3b ldr r3, [r7, #48] @ 0x30
  10675. 8004e72: 2b00 cmp r3, #0
  10676. 8004e74: d109 bne.n 8004e8a <Uart1ReceivedDataProcessCallback+0x3a6>
  10677. osTimerStop (fanTimerHandle);
  10678. 8004e76: 4b93 ldr r3, [pc, #588] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10679. 8004e78: 681b ldr r3, [r3, #0]
  10680. 8004e7a: 4618 mov r0, r3
  10681. 8004e7c: f00e fe92 bl 8013ba4 <osTimerStop>
  10682. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  10683. 8004e80: 2104 movs r1, #4
  10684. 8004e82: 4892 ldr r0, [pc, #584] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10685. 8004e84: f00a f918 bl 800f0b8 <HAL_TIM_PWM_Stop>
  10686. 8004e88: e00c b.n 8004ea4 <Uart1ReceivedDataProcessCallback+0x3c0>
  10687. } else if (fanTimerPeriod == -1) {
  10688. 8004e8a: 6b3b ldr r3, [r7, #48] @ 0x30
  10689. 8004e8c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10690. 8004e90: d108 bne.n 8004ea4 <Uart1ReceivedDataProcessCallback+0x3c0>
  10691. osTimerStop (fanTimerHandle);
  10692. 8004e92: 4b8c ldr r3, [pc, #560] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10693. 8004e94: 681b ldr r3, [r3, #0]
  10694. 8004e96: 4618 mov r0, r3
  10695. 8004e98: f00e fe84 bl 8013ba4 <osTimerStop>
  10696. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10697. 8004e9c: 2104 movs r1, #4
  10698. 8004e9e: 488b ldr r0, [pc, #556] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10699. 8004ea0: f009 fffc bl 800ee9c <HAL_TIM_PWM_Start>
  10700. }
  10701. respStatus = spOK;
  10702. 8004ea4: 2300 movs r3, #0
  10703. 8004ea6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10704. break;
  10705. 8004eaa: e2af b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10706. case spSetMotorXOn:
  10707. int32_t motorXPWMPulse = 0;
  10708. 8004eac: 2300 movs r3, #0
  10709. 8004eae: 62bb str r3, [r7, #40] @ 0x28
  10710. int32_t motorXTimerPeriod = 0;
  10711. 8004eb0: 2300 movs r3, #0
  10712. 8004eb2: 627b str r3, [r7, #36] @ 0x24
  10713. uint32_t motorXStatus = 0;
  10714. 8004eb4: 2300 movs r3, #0
  10715. 8004eb6: 63bb str r3, [r7, #56] @ 0x38
  10716. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  10717. 8004eb8: 683b ldr r3, [r7, #0]
  10718. 8004eba: 330c adds r3, #12
  10719. 8004ebc: f107 0228 add.w r2, r7, #40 @ 0x28
  10720. 8004ec0: f107 0134 add.w r1, r7, #52 @ 0x34
  10721. 8004ec4: 4618 mov r0, r3
  10722. 8004ec6: f7fe fa04 bl 80032d2 <ReadWordFromBufer>
  10723. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  10724. 8004eca: 683b ldr r3, [r7, #0]
  10725. 8004ecc: 330c adds r3, #12
  10726. 8004ece: f107 0224 add.w r2, r7, #36 @ 0x24
  10727. 8004ed2: f107 0134 add.w r1, r7, #52 @ 0x34
  10728. 8004ed6: 4618 mov r0, r3
  10729. 8004ed8: f7fe f9fb bl 80032d2 <ReadWordFromBufer>
  10730. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10731. 8004edc: 4b7c ldr r3, [pc, #496] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10732. 8004ede: 681b ldr r3, [r3, #0]
  10733. 8004ee0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10734. 8004ee4: 4618 mov r0, r3
  10735. 8004ee6: f00e ff1a bl 8013d1e <osMutexAcquire>
  10736. 8004eea: 4603 mov r3, r0
  10737. 8004eec: 2b00 cmp r3, #0
  10738. 8004eee: d12a bne.n 8004f46 <Uart1ReceivedDataProcessCallback+0x462>
  10739. motorXStatus =
  10740. motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  10741. 8004ef0: 4b78 ldr r3, [pc, #480] @ (80050d4 <Uart1ReceivedDataProcessCallback+0x5f0>)
  10742. 8004ef2: 681b ldr r3, [r3, #0]
  10743. 8004ef4: 6aba ldr r2, [r7, #40] @ 0x28
  10744. 8004ef6: 6a79 ldr r1, [r7, #36] @ 0x24
  10745. 8004ef8: 4877 ldr r0, [pc, #476] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10746. 8004efa: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  10747. 8004efe: 4c76 ldr r4, [pc, #472] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10748. 8004f00: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  10749. 8004f04: 9404 str r4, [sp, #16]
  10750. 8004f06: 9003 str r0, [sp, #12]
  10751. 8004f08: 9102 str r1, [sp, #8]
  10752. 8004f0a: 9201 str r2, [sp, #4]
  10753. 8004f0c: 9300 str r3, [sp, #0]
  10754. 8004f0e: 2304 movs r3, #4
  10755. 8004f10: 2200 movs r2, #0
  10756. 8004f12: 4972 ldr r1, [pc, #456] @ (80050dc <Uart1ReceivedDataProcessCallback+0x5f8>)
  10757. 8004f14: 4872 ldr r0, [pc, #456] @ (80050e0 <Uart1ReceivedDataProcessCallback+0x5fc>)
  10758. 8004f16: f7fe f805 bl 8002f24 <motorControl>
  10759. 8004f1a: 4603 mov r3, r0
  10760. motorXStatus =
  10761. 8004f1c: 63bb str r3, [r7, #56] @ 0x38
  10762. sensorsInfo.motorXStatus = motorXStatus;
  10763. 8004f1e: 6bbb ldr r3, [r7, #56] @ 0x38
  10764. 8004f20: b2da uxtb r2, r3
  10765. 8004f22: 4b6d ldr r3, [pc, #436] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10766. 8004f24: 751a strb r2, [r3, #20]
  10767. if (motorXStatus == 1) {
  10768. 8004f26: 6bbb ldr r3, [r7, #56] @ 0x38
  10769. 8004f28: 2b01 cmp r3, #1
  10770. 8004f2a: d103 bne.n 8004f34 <Uart1ReceivedDataProcessCallback+0x450>
  10771. sensorsInfo.motorXPeakCurrent = 0.0;
  10772. 8004f2c: 4b6a ldr r3, [pc, #424] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10773. 8004f2e: f04f 0200 mov.w r2, #0
  10774. 8004f32: 621a str r2, [r3, #32]
  10775. }
  10776. osMutexRelease (sensorsInfoMutex);
  10777. 8004f34: 4b66 ldr r3, [pc, #408] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10778. 8004f36: 681b ldr r3, [r3, #0]
  10779. 8004f38: 4618 mov r0, r3
  10780. 8004f3a: f00e ff3b bl 8013db4 <osMutexRelease>
  10781. respStatus = spOK;
  10782. 8004f3e: 2300 movs r3, #0
  10783. 8004f40: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10784. } else {
  10785. respStatus = spInternalError;
  10786. }
  10787. break;
  10788. 8004f44: e262 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10789. respStatus = spInternalError;
  10790. 8004f46: 23fc movs r3, #252 @ 0xfc
  10791. 8004f48: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10792. break;
  10793. 8004f4c: e25e b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10794. case spSetMotorYOn:
  10795. int32_t motorYPWMPulse = 0;
  10796. 8004f4e: 2300 movs r3, #0
  10797. 8004f50: 623b str r3, [r7, #32]
  10798. int32_t motorYTimerPeriod = 0;
  10799. 8004f52: 2300 movs r3, #0
  10800. 8004f54: 61fb str r3, [r7, #28]
  10801. uint32_t motorYStatus = 0;
  10802. 8004f56: 2300 movs r3, #0
  10803. 8004f58: 63fb str r3, [r7, #60] @ 0x3c
  10804. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  10805. 8004f5a: 683b ldr r3, [r7, #0]
  10806. 8004f5c: 330c adds r3, #12
  10807. 8004f5e: f107 0220 add.w r2, r7, #32
  10808. 8004f62: f107 0134 add.w r1, r7, #52 @ 0x34
  10809. 8004f66: 4618 mov r0, r3
  10810. 8004f68: f7fe f9b3 bl 80032d2 <ReadWordFromBufer>
  10811. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  10812. 8004f6c: 683b ldr r3, [r7, #0]
  10813. 8004f6e: 330c adds r3, #12
  10814. 8004f70: f107 021c add.w r2, r7, #28
  10815. 8004f74: f107 0134 add.w r1, r7, #52 @ 0x34
  10816. 8004f78: 4618 mov r0, r3
  10817. 8004f7a: f7fe f9aa bl 80032d2 <ReadWordFromBufer>
  10818. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10819. 8004f7e: 4b54 ldr r3, [pc, #336] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10820. 8004f80: 681b ldr r3, [r3, #0]
  10821. 8004f82: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10822. 8004f86: 4618 mov r0, r3
  10823. 8004f88: f00e fec9 bl 8013d1e <osMutexAcquire>
  10824. 8004f8c: 4603 mov r3, r0
  10825. 8004f8e: 2b00 cmp r3, #0
  10826. 8004f90: d12a bne.n 8004fe8 <Uart1ReceivedDataProcessCallback+0x504>
  10827. motorYStatus =
  10828. motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  10829. 8004f92: 4b54 ldr r3, [pc, #336] @ (80050e4 <Uart1ReceivedDataProcessCallback+0x600>)
  10830. 8004f94: 681b ldr r3, [r3, #0]
  10831. 8004f96: 6a3a ldr r2, [r7, #32]
  10832. 8004f98: 69f9 ldr r1, [r7, #28]
  10833. 8004f9a: 484f ldr r0, [pc, #316] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10834. 8004f9c: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  10835. 8004fa0: 4c4d ldr r4, [pc, #308] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10836. 8004fa2: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  10837. 8004fa6: 9404 str r4, [sp, #16]
  10838. 8004fa8: 9003 str r0, [sp, #12]
  10839. 8004faa: 9102 str r1, [sp, #8]
  10840. 8004fac: 9201 str r2, [sp, #4]
  10841. 8004fae: 9300 str r3, [sp, #0]
  10842. 8004fb0: 230c movs r3, #12
  10843. 8004fb2: 2208 movs r2, #8
  10844. 8004fb4: 4949 ldr r1, [pc, #292] @ (80050dc <Uart1ReceivedDataProcessCallback+0x5f8>)
  10845. 8004fb6: 484a ldr r0, [pc, #296] @ (80050e0 <Uart1ReceivedDataProcessCallback+0x5fc>)
  10846. 8004fb8: f7fd ffb4 bl 8002f24 <motorControl>
  10847. 8004fbc: 4603 mov r3, r0
  10848. motorYStatus =
  10849. 8004fbe: 63fb str r3, [r7, #60] @ 0x3c
  10850. sensorsInfo.motorYStatus = motorYStatus;
  10851. 8004fc0: 6bfb ldr r3, [r7, #60] @ 0x3c
  10852. 8004fc2: b2da uxtb r2, r3
  10853. 8004fc4: 4b44 ldr r3, [pc, #272] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10854. 8004fc6: 755a strb r2, [r3, #21]
  10855. if (motorYStatus == 1) {
  10856. 8004fc8: 6bfb ldr r3, [r7, #60] @ 0x3c
  10857. 8004fca: 2b01 cmp r3, #1
  10858. 8004fcc: d103 bne.n 8004fd6 <Uart1ReceivedDataProcessCallback+0x4f2>
  10859. sensorsInfo.motorYPeakCurrent = 0.0;
  10860. 8004fce: 4b42 ldr r3, [pc, #264] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10861. 8004fd0: f04f 0200 mov.w r2, #0
  10862. 8004fd4: 625a str r2, [r3, #36] @ 0x24
  10863. }
  10864. osMutexRelease (sensorsInfoMutex);
  10865. 8004fd6: 4b3e ldr r3, [pc, #248] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10866. 8004fd8: 681b ldr r3, [r3, #0]
  10867. 8004fda: 4618 mov r0, r3
  10868. 8004fdc: f00e feea bl 8013db4 <osMutexRelease>
  10869. respStatus = spOK;
  10870. 8004fe0: 2300 movs r3, #0
  10871. 8004fe2: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10872. } else {
  10873. respStatus = spInternalError;
  10874. }
  10875. break;
  10876. 8004fe6: e211 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10877. respStatus = spInternalError;
  10878. 8004fe8: 23fc movs r3, #252 @ 0xfc
  10879. 8004fea: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10880. break;
  10881. 8004fee: e20d b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10882. case spSetDiodeOn:
  10883. osTimerStop (debugLedTimerHandle);
  10884. 8004ff0: 4b3d ldr r3, [pc, #244] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10885. 8004ff2: 681b ldr r3, [r3, #0]
  10886. 8004ff4: 4618 mov r0, r3
  10887. 8004ff6: f00e fdd5 bl 8013ba4 <osTimerStop>
  10888. int32_t dbgLedTimerPeriod = 0;
  10889. 8004ffa: 2300 movs r3, #0
  10890. 8004ffc: 61bb str r3, [r7, #24]
  10891. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  10892. 8004ffe: 683b ldr r3, [r7, #0]
  10893. 8005000: 330c adds r3, #12
  10894. 8005002: f107 0218 add.w r2, r7, #24
  10895. 8005006: f107 0134 add.w r1, r7, #52 @ 0x34
  10896. 800500a: 4618 mov r0, r3
  10897. 800500c: f7fe f961 bl 80032d2 <ReadWordFromBufer>
  10898. if (dbgLedTimerPeriod > 0) {
  10899. 8005010: 69bb ldr r3, [r7, #24]
  10900. 8005012: 2b00 cmp r3, #0
  10901. 8005014: dd0e ble.n 8005034 <Uart1ReceivedDataProcessCallback+0x550>
  10902. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  10903. 8005016: 4b34 ldr r3, [pc, #208] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10904. 8005018: 681a ldr r2, [r3, #0]
  10905. 800501a: 69bb ldr r3, [r7, #24]
  10906. 800501c: f44f 717a mov.w r1, #1000 @ 0x3e8
  10907. 8005020: fb01 f303 mul.w r3, r1, r3
  10908. 8005024: 4619 mov r1, r3
  10909. 8005026: 4610 mov r0, r2
  10910. 8005028: f00e fd8e bl 8013b48 <osTimerStart>
  10911. DbgLEDOn (DBG_LED1);
  10912. 800502c: 2010 movs r0, #16
  10913. 800502e: f7fd feeb bl 8002e08 <DbgLEDOn>
  10914. 8005032: e017 b.n 8005064 <Uart1ReceivedDataProcessCallback+0x580>
  10915. } else if (dbgLedTimerPeriod == 0) {
  10916. 8005034: 69bb ldr r3, [r7, #24]
  10917. 8005036: 2b00 cmp r3, #0
  10918. 8005038: d108 bne.n 800504c <Uart1ReceivedDataProcessCallback+0x568>
  10919. osTimerStop (debugLedTimerHandle);
  10920. 800503a: 4b2b ldr r3, [pc, #172] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10921. 800503c: 681b ldr r3, [r3, #0]
  10922. 800503e: 4618 mov r0, r3
  10923. 8005040: f00e fdb0 bl 8013ba4 <osTimerStop>
  10924. DbgLEDOff (DBG_LED1);
  10925. 8005044: 2010 movs r0, #16
  10926. 8005046: f7fd fef1 bl 8002e2c <DbgLEDOff>
  10927. 800504a: e00b b.n 8005064 <Uart1ReceivedDataProcessCallback+0x580>
  10928. } else if (dbgLedTimerPeriod == -1) {
  10929. 800504c: 69bb ldr r3, [r7, #24]
  10930. 800504e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10931. 8005052: d107 bne.n 8005064 <Uart1ReceivedDataProcessCallback+0x580>
  10932. osTimerStop (debugLedTimerHandle);
  10933. 8005054: 4b24 ldr r3, [pc, #144] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10934. 8005056: 681b ldr r3, [r3, #0]
  10935. 8005058: 4618 mov r0, r3
  10936. 800505a: f00e fda3 bl 8013ba4 <osTimerStop>
  10937. DbgLEDOn (DBG_LED1);
  10938. 800505e: 2010 movs r0, #16
  10939. 8005060: f7fd fed2 bl 8002e08 <DbgLEDOn>
  10940. }
  10941. respStatus = spOK;
  10942. 8005064: 2300 movs r3, #0
  10943. 8005066: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10944. break;
  10945. 800506a: e1cf b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10946. case spSetmotorXMaxCurrent:
  10947. float motorXMaxCurrent = 0;
  10948. 800506c: f04f 0300 mov.w r3, #0
  10949. 8005070: 617b str r3, [r7, #20]
  10950. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  10951. 8005072: 683b ldr r3, [r7, #0]
  10952. 8005074: 330c adds r3, #12
  10953. 8005076: f107 0214 add.w r2, r7, #20
  10954. 800507a: f107 0134 add.w r1, r7, #52 @ 0x34
  10955. 800507e: 4618 mov r0, r3
  10956. 8005080: f7fe f927 bl 80032d2 <ReadWordFromBufer>
  10957. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  10958. 8005084: edd7 7a05 vldr s15, [r7, #20]
  10959. 8005088: ed9f 7a19 vldr s14, [pc, #100] @ 80050f0 <Uart1ReceivedDataProcessCallback+0x60c>
  10960. 800508c: ee67 7a87 vmul.f32 s15, s15, s14
  10961. 8005090: eeb7 6ae7 vcvt.f64.f32 d6, s15
  10962. 8005094: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  10963. 8005098: ee86 7b05 vdiv.f64 d7, d6, d5
  10964. 800509c: eefc 7bc7 vcvt.u32.f64 s15, d7
  10965. 80050a0: ee17 3a90 vmov r3, s15
  10966. 80050a4: 643b str r3, [r7, #64] @ 0x40
  10967. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  10968. 80050a6: 6c3b ldr r3, [r7, #64] @ 0x40
  10969. 80050a8: 2200 movs r2, #0
  10970. 80050aa: 2100 movs r1, #0
  10971. 80050ac: 480f ldr r0, [pc, #60] @ (80050ec <Uart1ReceivedDataProcessCallback+0x608>)
  10972. 80050ae: f002 fc76 bl 800799e <HAL_DAC_SetValue>
  10973. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  10974. 80050b2: 2100 movs r1, #0
  10975. 80050b4: 480d ldr r0, [pc, #52] @ (80050ec <Uart1ReceivedDataProcessCallback+0x608>)
  10976. 80050b6: f002 fbc5 bl 8007844 <HAL_DAC_Start>
  10977. respStatus = spOK;
  10978. 80050ba: 2300 movs r3, #0
  10979. 80050bc: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10980. break;
  10981. 80050c0: e1a4 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10982. 80050c2: bf00 nop
  10983. 80050c4: 24000734 .word 0x24000734
  10984. 80050c8: 240007c4 .word 0x240007c4
  10985. 80050cc: 2400045c .word 0x2400045c
  10986. 80050d0: 2400083c .word 0x2400083c
  10987. 80050d4: 24000764 .word 0x24000764
  10988. 80050d8: 24000880 .word 0x24000880
  10989. 80050dc: 240007e0 .word 0x240007e0
  10990. 80050e0: 240004f4 .word 0x240004f4
  10991. 80050e4: 24000794 .word 0x24000794
  10992. 80050e8: 24000704 .word 0x24000704
  10993. 80050ec: 24000424 .word 0x24000424
  10994. 80050f0: 457ff000 .word 0x457ff000
  10995. case spSetmotorYMaxCurrent:
  10996. float motorYMaxCurrent = 0;
  10997. 80050f4: f04f 0300 mov.w r3, #0
  10998. 80050f8: 613b str r3, [r7, #16]
  10999. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  11000. 80050fa: 683b ldr r3, [r7, #0]
  11001. 80050fc: 330c adds r3, #12
  11002. 80050fe: f107 0210 add.w r2, r7, #16
  11003. 8005102: f107 0134 add.w r1, r7, #52 @ 0x34
  11004. 8005106: 4618 mov r0, r3
  11005. 8005108: f7fe f8e3 bl 80032d2 <ReadWordFromBufer>
  11006. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  11007. 800510c: edd7 7a04 vldr s15, [r7, #16]
  11008. 8005110: ed1f 7a09 vldr s14, [pc, #-36] @ 80050f0 <Uart1ReceivedDataProcessCallback+0x60c>
  11009. 8005114: ee67 7a87 vmul.f32 s15, s15, s14
  11010. 8005118: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11011. 800511c: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11012. 8005120: ee86 7b05 vdiv.f64 d7, d6, d5
  11013. 8005124: eefc 7bc7 vcvt.u32.f64 s15, d7
  11014. 8005128: ee17 3a90 vmov r3, s15
  11015. 800512c: 647b str r3, [r7, #68] @ 0x44
  11016. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  11017. 800512e: 6c7b ldr r3, [r7, #68] @ 0x44
  11018. 8005130: 2200 movs r2, #0
  11019. 8005132: 2110 movs r1, #16
  11020. 8005134: 48ac ldr r0, [pc, #688] @ (80053e8 <Uart1ReceivedDataProcessCallback+0x904>)
  11021. 8005136: f002 fc32 bl 800799e <HAL_DAC_SetValue>
  11022. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  11023. 800513a: 2110 movs r1, #16
  11024. 800513c: 48aa ldr r0, [pc, #680] @ (80053e8 <Uart1ReceivedDataProcessCallback+0x904>)
  11025. 800513e: f002 fb81 bl 8007844 <HAL_DAC_Start>
  11026. respStatus = spOK;
  11027. 8005142: 2300 movs r3, #0
  11028. 8005144: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11029. break;
  11030. 8005148: e160 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11031. case spClearPeakMeasurments:
  11032. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11033. 800514a: 4ba8 ldr r3, [pc, #672] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11034. 800514c: 681b ldr r3, [r3, #0]
  11035. 800514e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11036. 8005152: 4618 mov r0, r3
  11037. 8005154: f00e fde3 bl 8013d1e <osMutexAcquire>
  11038. 8005158: 4603 mov r3, r0
  11039. 800515a: 2b00 cmp r3, #0
  11040. 800515c: d12a bne.n 80051b4 <Uart1ReceivedDataProcessCallback+0x6d0>
  11041. for (int i = 0; i < 3; i++) {
  11042. 800515e: 2300 movs r3, #0
  11043. 8005160: 657b str r3, [r7, #84] @ 0x54
  11044. 8005162: e01b b.n 800519c <Uart1ReceivedDataProcessCallback+0x6b8>
  11045. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  11046. 8005164: 4aa2 ldr r2, [pc, #648] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11047. 8005166: 6d7b ldr r3, [r7, #84] @ 0x54
  11048. 8005168: 009b lsls r3, r3, #2
  11049. 800516a: 4413 add r3, r2
  11050. 800516c: 681a ldr r2, [r3, #0]
  11051. 800516e: 49a0 ldr r1, [pc, #640] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11052. 8005170: 6d7b ldr r3, [r7, #84] @ 0x54
  11053. 8005172: 3302 adds r3, #2
  11054. 8005174: 009b lsls r3, r3, #2
  11055. 8005176: 440b add r3, r1
  11056. 8005178: 3304 adds r3, #4
  11057. 800517a: 601a str r2, [r3, #0]
  11058. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  11059. 800517c: 4a9c ldr r2, [pc, #624] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11060. 800517e: 6d7b ldr r3, [r7, #84] @ 0x54
  11061. 8005180: 3306 adds r3, #6
  11062. 8005182: 009b lsls r3, r3, #2
  11063. 8005184: 4413 add r3, r2
  11064. 8005186: 681a ldr r2, [r3, #0]
  11065. 8005188: 4999 ldr r1, [pc, #612] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11066. 800518a: 6d7b ldr r3, [r7, #84] @ 0x54
  11067. 800518c: 3308 adds r3, #8
  11068. 800518e: 009b lsls r3, r3, #2
  11069. 8005190: 440b add r3, r1
  11070. 8005192: 3304 adds r3, #4
  11071. 8005194: 601a str r2, [r3, #0]
  11072. for (int i = 0; i < 3; i++) {
  11073. 8005196: 6d7b ldr r3, [r7, #84] @ 0x54
  11074. 8005198: 3301 adds r3, #1
  11075. 800519a: 657b str r3, [r7, #84] @ 0x54
  11076. 800519c: 6d7b ldr r3, [r7, #84] @ 0x54
  11077. 800519e: 2b02 cmp r3, #2
  11078. 80051a0: dde0 ble.n 8005164 <Uart1ReceivedDataProcessCallback+0x680>
  11079. }
  11080. osMutexRelease (resMeasurementsMutex);
  11081. 80051a2: 4b92 ldr r3, [pc, #584] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11082. 80051a4: 681b ldr r3, [r3, #0]
  11083. 80051a6: 4618 mov r0, r3
  11084. 80051a8: f00e fe04 bl 8013db4 <osMutexRelease>
  11085. respStatus = spOK;
  11086. 80051ac: 2300 movs r3, #0
  11087. 80051ae: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11088. } else {
  11089. respStatus = spInternalError;
  11090. }
  11091. break;
  11092. 80051b2: e12b b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11093. respStatus = spInternalError;
  11094. 80051b4: 23fc movs r3, #252 @ 0xfc
  11095. 80051b6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11096. break;
  11097. 80051ba: e127 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11098. case spSetEncoderXValue:
  11099. float enocoderXValue = 0;
  11100. 80051bc: f04f 0300 mov.w r3, #0
  11101. 80051c0: 60fb str r3, [r7, #12]
  11102. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  11103. 80051c2: 683b ldr r3, [r7, #0]
  11104. 80051c4: 330c adds r3, #12
  11105. 80051c6: f107 020c add.w r2, r7, #12
  11106. 80051ca: f107 0134 add.w r1, r7, #52 @ 0x34
  11107. 80051ce: 4618 mov r0, r3
  11108. 80051d0: f7fe f87f bl 80032d2 <ReadWordFromBufer>
  11109. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11110. 80051d4: 4b87 ldr r3, [pc, #540] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11111. 80051d6: 681b ldr r3, [r3, #0]
  11112. 80051d8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11113. 80051dc: 4618 mov r0, r3
  11114. 80051de: f00e fd9e bl 8013d1e <osMutexAcquire>
  11115. 80051e2: 4603 mov r3, r0
  11116. 80051e4: 2b00 cmp r3, #0
  11117. 80051e6: d10b bne.n 8005200 <Uart1ReceivedDataProcessCallback+0x71c>
  11118. sensorsInfo.pvEncoderX = enocoderXValue;
  11119. 80051e8: 68fb ldr r3, [r7, #12]
  11120. 80051ea: 4a83 ldr r2, [pc, #524] @ (80053f8 <Uart1ReceivedDataProcessCallback+0x914>)
  11121. 80051ec: 60d3 str r3, [r2, #12]
  11122. osMutexRelease (sensorsInfoMutex);
  11123. 80051ee: 4b81 ldr r3, [pc, #516] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11124. 80051f0: 681b ldr r3, [r3, #0]
  11125. 80051f2: 4618 mov r0, r3
  11126. 80051f4: f00e fdde bl 8013db4 <osMutexRelease>
  11127. respStatus = spOK;
  11128. 80051f8: 2300 movs r3, #0
  11129. 80051fa: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11130. } else {
  11131. respStatus = spInternalError;
  11132. }
  11133. break;
  11134. 80051fe: e105 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11135. respStatus = spInternalError;
  11136. 8005200: 23fc movs r3, #252 @ 0xfc
  11137. 8005202: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11138. break;
  11139. 8005206: e101 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11140. case spSetEncoderYValue:
  11141. float enocoderYValue = 0;
  11142. 8005208: f04f 0300 mov.w r3, #0
  11143. 800520c: 60bb str r3, [r7, #8]
  11144. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  11145. 800520e: 683b ldr r3, [r7, #0]
  11146. 8005210: 330c adds r3, #12
  11147. 8005212: f107 0208 add.w r2, r7, #8
  11148. 8005216: f107 0134 add.w r1, r7, #52 @ 0x34
  11149. 800521a: 4618 mov r0, r3
  11150. 800521c: f7fe f859 bl 80032d2 <ReadWordFromBufer>
  11151. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11152. 8005220: 4b74 ldr r3, [pc, #464] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11153. 8005222: 681b ldr r3, [r3, #0]
  11154. 8005224: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11155. 8005228: 4618 mov r0, r3
  11156. 800522a: f00e fd78 bl 8013d1e <osMutexAcquire>
  11157. 800522e: 4603 mov r3, r0
  11158. 8005230: 2b00 cmp r3, #0
  11159. 8005232: d10b bne.n 800524c <Uart1ReceivedDataProcessCallback+0x768>
  11160. sensorsInfo.pvEncoderY = enocoderYValue;
  11161. 8005234: 68bb ldr r3, [r7, #8]
  11162. 8005236: 4a70 ldr r2, [pc, #448] @ (80053f8 <Uart1ReceivedDataProcessCallback+0x914>)
  11163. 8005238: 6113 str r3, [r2, #16]
  11164. osMutexRelease (sensorsInfoMutex);
  11165. 800523a: 4b6e ldr r3, [pc, #440] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11166. 800523c: 681b ldr r3, [r3, #0]
  11167. 800523e: 4618 mov r0, r3
  11168. 8005240: f00e fdb8 bl 8013db4 <osMutexRelease>
  11169. respStatus = spOK;
  11170. 8005244: 2300 movs r3, #0
  11171. 8005246: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11172. } else {
  11173. respStatus = spInternalError;
  11174. }
  11175. break;
  11176. 800524a: e0df b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11177. respStatus = spInternalError;
  11178. 800524c: 23fc movs r3, #252 @ 0xfc
  11179. 800524e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11180. break;
  11181. 8005252: e0db b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11182. case spSetVoltageMeasGains:
  11183. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11184. 8005254: 4b65 ldr r3, [pc, #404] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11185. 8005256: 681b ldr r3, [r3, #0]
  11186. 8005258: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11187. 800525c: 4618 mov r0, r3
  11188. 800525e: f00e fd5e bl 8013d1e <osMutexAcquire>
  11189. 8005262: 4603 mov r3, r0
  11190. 8005264: 2b00 cmp r3, #0
  11191. 8005266: d122 bne.n 80052ae <Uart1ReceivedDataProcessCallback+0x7ca>
  11192. for (uint8_t i = 0; i < 3; i++) {
  11193. 8005268: 2300 movs r3, #0
  11194. 800526a: f887 3053 strb.w r3, [r7, #83] @ 0x53
  11195. 800526e: e011 b.n 8005294 <Uart1ReceivedDataProcessCallback+0x7b0>
  11196. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  11197. 8005270: 683b ldr r3, [r7, #0]
  11198. 8005272: f103 000c add.w r0, r3, #12
  11199. 8005276: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  11200. 800527a: 00db lsls r3, r3, #3
  11201. 800527c: 4a5f ldr r2, [pc, #380] @ (80053fc <Uart1ReceivedDataProcessCallback+0x918>)
  11202. 800527e: 441a add r2, r3
  11203. 8005280: f107 0334 add.w r3, r7, #52 @ 0x34
  11204. 8005284: 4619 mov r1, r3
  11205. 8005286: f7fe f824 bl 80032d2 <ReadWordFromBufer>
  11206. for (uint8_t i = 0; i < 3; i++) {
  11207. 800528a: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  11208. 800528e: 3301 adds r3, #1
  11209. 8005290: f887 3053 strb.w r3, [r7, #83] @ 0x53
  11210. 8005294: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  11211. 8005298: 2b02 cmp r3, #2
  11212. 800529a: d9e9 bls.n 8005270 <Uart1ReceivedDataProcessCallback+0x78c>
  11213. }
  11214. osMutexRelease (resMeasurementsMutex);
  11215. 800529c: 4b53 ldr r3, [pc, #332] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11216. 800529e: 681b ldr r3, [r3, #0]
  11217. 80052a0: 4618 mov r0, r3
  11218. 80052a2: f00e fd87 bl 8013db4 <osMutexRelease>
  11219. respStatus = spOK;
  11220. 80052a6: 2300 movs r3, #0
  11221. 80052a8: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11222. } else {
  11223. respStatus = spInternalError;
  11224. }
  11225. break;
  11226. 80052ac: e0ae b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11227. respStatus = spInternalError;
  11228. 80052ae: 23fc movs r3, #252 @ 0xfc
  11229. 80052b0: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11230. break;
  11231. 80052b4: e0aa b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11232. case spSetVoltageMeasOffsets:
  11233. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11234. 80052b6: 4b4d ldr r3, [pc, #308] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11235. 80052b8: 681b ldr r3, [r3, #0]
  11236. 80052ba: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11237. 80052be: 4618 mov r0, r3
  11238. 80052c0: f00e fd2d bl 8013d1e <osMutexAcquire>
  11239. 80052c4: 4603 mov r3, r0
  11240. 80052c6: 2b00 cmp r3, #0
  11241. 80052c8: d123 bne.n 8005312 <Uart1ReceivedDataProcessCallback+0x82e>
  11242. for (uint8_t i = 0; i < 3; i++) {
  11243. 80052ca: 2300 movs r3, #0
  11244. 80052cc: f887 3052 strb.w r3, [r7, #82] @ 0x52
  11245. 80052d0: e012 b.n 80052f8 <Uart1ReceivedDataProcessCallback+0x814>
  11246. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  11247. 80052d2: 683b ldr r3, [r7, #0]
  11248. 80052d4: f103 000c add.w r0, r3, #12
  11249. 80052d8: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11250. 80052dc: 00db lsls r3, r3, #3
  11251. 80052de: 4a47 ldr r2, [pc, #284] @ (80053fc <Uart1ReceivedDataProcessCallback+0x918>)
  11252. 80052e0: 4413 add r3, r2
  11253. 80052e2: 1d1a adds r2, r3, #4
  11254. 80052e4: f107 0334 add.w r3, r7, #52 @ 0x34
  11255. 80052e8: 4619 mov r1, r3
  11256. 80052ea: f7fd fff2 bl 80032d2 <ReadWordFromBufer>
  11257. for (uint8_t i = 0; i < 3; i++) {
  11258. 80052ee: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11259. 80052f2: 3301 adds r3, #1
  11260. 80052f4: f887 3052 strb.w r3, [r7, #82] @ 0x52
  11261. 80052f8: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11262. 80052fc: 2b02 cmp r3, #2
  11263. 80052fe: d9e8 bls.n 80052d2 <Uart1ReceivedDataProcessCallback+0x7ee>
  11264. }
  11265. osMutexRelease (resMeasurementsMutex);
  11266. 8005300: 4b3a ldr r3, [pc, #232] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11267. 8005302: 681b ldr r3, [r3, #0]
  11268. 8005304: 4618 mov r0, r3
  11269. 8005306: f00e fd55 bl 8013db4 <osMutexRelease>
  11270. respStatus = spOK;
  11271. 800530a: 2300 movs r3, #0
  11272. 800530c: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11273. } else {
  11274. respStatus = spInternalError;
  11275. }
  11276. break;
  11277. 8005310: e07c b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11278. respStatus = spInternalError;
  11279. 8005312: 23fc movs r3, #252 @ 0xfc
  11280. 8005314: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11281. break;
  11282. 8005318: e078 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11283. case spSetCurrentMeasGains:
  11284. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11285. 800531a: 4b34 ldr r3, [pc, #208] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11286. 800531c: 681b ldr r3, [r3, #0]
  11287. 800531e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11288. 8005322: 4618 mov r0, r3
  11289. 8005324: f00e fcfb bl 8013d1e <osMutexAcquire>
  11290. 8005328: 4603 mov r3, r0
  11291. 800532a: 2b00 cmp r3, #0
  11292. 800532c: d122 bne.n 8005374 <Uart1ReceivedDataProcessCallback+0x890>
  11293. for (uint8_t i = 0; i < 3; i++) {
  11294. 800532e: 2300 movs r3, #0
  11295. 8005330: f887 3051 strb.w r3, [r7, #81] @ 0x51
  11296. 8005334: e011 b.n 800535a <Uart1ReceivedDataProcessCallback+0x876>
  11297. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  11298. 8005336: 683b ldr r3, [r7, #0]
  11299. 8005338: f103 000c add.w r0, r3, #12
  11300. 800533c: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11301. 8005340: 00db lsls r3, r3, #3
  11302. 8005342: 4a2f ldr r2, [pc, #188] @ (8005400 <Uart1ReceivedDataProcessCallback+0x91c>)
  11303. 8005344: 441a add r2, r3
  11304. 8005346: f107 0334 add.w r3, r7, #52 @ 0x34
  11305. 800534a: 4619 mov r1, r3
  11306. 800534c: f7fd ffc1 bl 80032d2 <ReadWordFromBufer>
  11307. for (uint8_t i = 0; i < 3; i++) {
  11308. 8005350: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11309. 8005354: 3301 adds r3, #1
  11310. 8005356: f887 3051 strb.w r3, [r7, #81] @ 0x51
  11311. 800535a: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11312. 800535e: 2b02 cmp r3, #2
  11313. 8005360: d9e9 bls.n 8005336 <Uart1ReceivedDataProcessCallback+0x852>
  11314. }
  11315. osMutexRelease (resMeasurementsMutex);
  11316. 8005362: 4b22 ldr r3, [pc, #136] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11317. 8005364: 681b ldr r3, [r3, #0]
  11318. 8005366: 4618 mov r0, r3
  11319. 8005368: f00e fd24 bl 8013db4 <osMutexRelease>
  11320. respStatus = spOK;
  11321. 800536c: 2300 movs r3, #0
  11322. 800536e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11323. } else {
  11324. respStatus = spInternalError;
  11325. }
  11326. break;
  11327. 8005372: e04b b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11328. respStatus = spInternalError;
  11329. 8005374: 23fc movs r3, #252 @ 0xfc
  11330. 8005376: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11331. break;
  11332. 800537a: e047 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11333. case spSetCurrentMeasOffsets:
  11334. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11335. 800537c: 4b1b ldr r3, [pc, #108] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11336. 800537e: 681b ldr r3, [r3, #0]
  11337. 8005380: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11338. 8005384: 4618 mov r0, r3
  11339. 8005386: f00e fcca bl 8013d1e <osMutexAcquire>
  11340. 800538a: 4603 mov r3, r0
  11341. 800538c: 2b00 cmp r3, #0
  11342. 800538e: d123 bne.n 80053d8 <Uart1ReceivedDataProcessCallback+0x8f4>
  11343. for (uint8_t i = 0; i < 3; i++) {
  11344. 8005390: 2300 movs r3, #0
  11345. 8005392: f887 3050 strb.w r3, [r7, #80] @ 0x50
  11346. 8005396: e012 b.n 80053be <Uart1ReceivedDataProcessCallback+0x8da>
  11347. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  11348. 8005398: 683b ldr r3, [r7, #0]
  11349. 800539a: f103 000c add.w r0, r3, #12
  11350. 800539e: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11351. 80053a2: 00db lsls r3, r3, #3
  11352. 80053a4: 4a16 ldr r2, [pc, #88] @ (8005400 <Uart1ReceivedDataProcessCallback+0x91c>)
  11353. 80053a6: 4413 add r3, r2
  11354. 80053a8: 1d1a adds r2, r3, #4
  11355. 80053aa: f107 0334 add.w r3, r7, #52 @ 0x34
  11356. 80053ae: 4619 mov r1, r3
  11357. 80053b0: f7fd ff8f bl 80032d2 <ReadWordFromBufer>
  11358. for (uint8_t i = 0; i < 3; i++) {
  11359. 80053b4: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11360. 80053b8: 3301 adds r3, #1
  11361. 80053ba: f887 3050 strb.w r3, [r7, #80] @ 0x50
  11362. 80053be: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11363. 80053c2: 2b02 cmp r3, #2
  11364. 80053c4: d9e8 bls.n 8005398 <Uart1ReceivedDataProcessCallback+0x8b4>
  11365. }
  11366. osMutexRelease (resMeasurementsMutex);
  11367. 80053c6: 4b09 ldr r3, [pc, #36] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11368. 80053c8: 681b ldr r3, [r3, #0]
  11369. 80053ca: 4618 mov r0, r3
  11370. 80053cc: f00e fcf2 bl 8013db4 <osMutexRelease>
  11371. respStatus = spOK;
  11372. 80053d0: 2300 movs r3, #0
  11373. 80053d2: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11374. } else {
  11375. respStatus = spInternalError;
  11376. }
  11377. break;
  11378. 80053d6: e019 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11379. respStatus = spInternalError;
  11380. 80053d8: 23fc movs r3, #252 @ 0xfc
  11381. 80053da: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11382. break;
  11383. 80053de: e015 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11384. __ASM volatile ("cpsid i" : : : "memory");
  11385. 80053e0: b672 cpsid i
  11386. }
  11387. 80053e2: bf00 nop
  11388. case spResetSystem:
  11389. __disable_irq();
  11390. NVIC_SystemReset();
  11391. 80053e4: f7fe ffb0 bl 8004348 <__NVIC_SystemReset>
  11392. 80053e8: 24000424 .word 0x24000424
  11393. 80053ec: 24000838 .word 0x24000838
  11394. 80053f0: 24000844 .word 0x24000844
  11395. 80053f4: 2400083c .word 0x2400083c
  11396. 80053f8: 24000880 .word 0x24000880
  11397. 80053fc: 24000000 .word 0x24000000
  11398. 8005400: 24000018 .word 0x24000018
  11399. break;
  11400. default: respStatus = spUnknownCommand; break;
  11401. 8005404: 23fd movs r3, #253 @ 0xfd
  11402. 8005406: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11403. 800540a: bf00 nop
  11404. }
  11405. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  11406. 800540c: 6cfb ldr r3, [r7, #76] @ 0x4c
  11407. 800540e: 6898 ldr r0, [r3, #8]
  11408. 8005410: 683b ldr r3, [r7, #0]
  11409. 8005412: 8819 ldrh r1, [r3, #0]
  11410. 8005414: 683b ldr r3, [r7, #0]
  11411. 8005416: 789a ldrb r2, [r3, #2]
  11412. 8005418: 4b13 ldr r3, [pc, #76] @ (8005468 <Uart1ReceivedDataProcessCallback+0x984>)
  11413. 800541a: 881b ldrh r3, [r3, #0]
  11414. 800541c: f997 406f ldrsb.w r4, [r7, #111] @ 0x6f
  11415. 8005420: 9301 str r3, [sp, #4]
  11416. 8005422: 4b12 ldr r3, [pc, #72] @ (800546c <Uart1ReceivedDataProcessCallback+0x988>)
  11417. 8005424: 9300 str r3, [sp, #0]
  11418. 8005426: 4623 mov r3, r4
  11419. 8005428: f7fd ff86 bl 8003338 <PrepareRespFrame>
  11420. 800542c: 4603 mov r3, r0
  11421. 800542e: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  11422. if (dataToSend > 0) {
  11423. 8005432: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  11424. 8005436: 2b00 cmp r3, #0
  11425. 8005438: d008 beq.n 800544c <Uart1ReceivedDataProcessCallback+0x968>
  11426. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11427. 800543a: 6cfb ldr r3, [r7, #76] @ 0x4c
  11428. 800543c: 6b18 ldr r0, [r3, #48] @ 0x30
  11429. 800543e: 6cfb ldr r3, [r7, #76] @ 0x4c
  11430. 8005440: 689b ldr r3, [r3, #8]
  11431. 8005442: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  11432. 8005446: 4619 mov r1, r3
  11433. 8005448: f00b fc3c bl 8010cc4 <HAL_UART_Transmit_IT>
  11434. }
  11435. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  11436. 800544c: 6cfb ldr r3, [r7, #76] @ 0x4c
  11437. 800544e: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  11438. 8005452: 4619 mov r1, r3
  11439. 8005454: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  11440. 8005458: 461a mov r2, r3
  11441. 800545a: 4805 ldr r0, [pc, #20] @ (8005470 <Uart1ReceivedDataProcessCallback+0x98c>)
  11442. 800545c: f012 fc4e bl 8017cfc <iprintf>
  11443. }
  11444. 8005460: bf00 nop
  11445. 8005462: 3774 adds r7, #116 @ 0x74
  11446. 8005464: 46bd mov sp, r7
  11447. 8005466: bd90 pop {r4, r7, pc}
  11448. 8005468: 24000cf8 .word 0x24000cf8
  11449. 800546c: 24000c78 .word 0x24000c78
  11450. 8005470: 08018b80 .word 0x08018b80
  11451. 08005474 <Reset_Handler>:
  11452. .section .text.Reset_Handler
  11453. .weak Reset_Handler
  11454. .type Reset_Handler, %function
  11455. Reset_Handler:
  11456. ldr sp, =_estack /* set stack pointer */
  11457. 8005474: f8df d034 ldr.w sp, [pc, #52] @ 80054ac <LoopFillZerobss+0xe>
  11458. /* Call the clock system initialization function.*/
  11459. bl SystemInit
  11460. 8005478: f7fe fede bl 8004238 <SystemInit>
  11461. /* Copy the data segment initializers from flash to SRAM */
  11462. ldr r0, =_sdata
  11463. 800547c: 480c ldr r0, [pc, #48] @ (80054b0 <LoopFillZerobss+0x12>)
  11464. ldr r1, =_edata
  11465. 800547e: 490d ldr r1, [pc, #52] @ (80054b4 <LoopFillZerobss+0x16>)
  11466. ldr r2, =_sidata
  11467. 8005480: 4a0d ldr r2, [pc, #52] @ (80054b8 <LoopFillZerobss+0x1a>)
  11468. movs r3, #0
  11469. 8005482: 2300 movs r3, #0
  11470. b LoopCopyDataInit
  11471. 8005484: e002 b.n 800548c <LoopCopyDataInit>
  11472. 08005486 <CopyDataInit>:
  11473. CopyDataInit:
  11474. ldr r4, [r2, r3]
  11475. 8005486: 58d4 ldr r4, [r2, r3]
  11476. str r4, [r0, r3]
  11477. 8005488: 50c4 str r4, [r0, r3]
  11478. adds r3, r3, #4
  11479. 800548a: 3304 adds r3, #4
  11480. 0800548c <LoopCopyDataInit>:
  11481. LoopCopyDataInit:
  11482. adds r4, r0, r3
  11483. 800548c: 18c4 adds r4, r0, r3
  11484. cmp r4, r1
  11485. 800548e: 428c cmp r4, r1
  11486. bcc CopyDataInit
  11487. 8005490: d3f9 bcc.n 8005486 <CopyDataInit>
  11488. /* Zero fill the bss segment. */
  11489. ldr r2, =_sbss
  11490. 8005492: 4a0a ldr r2, [pc, #40] @ (80054bc <LoopFillZerobss+0x1e>)
  11491. ldr r4, =_ebss
  11492. 8005494: 4c0a ldr r4, [pc, #40] @ (80054c0 <LoopFillZerobss+0x22>)
  11493. movs r3, #0
  11494. 8005496: 2300 movs r3, #0
  11495. b LoopFillZerobss
  11496. 8005498: e001 b.n 800549e <LoopFillZerobss>
  11497. 0800549a <FillZerobss>:
  11498. FillZerobss:
  11499. str r3, [r2]
  11500. 800549a: 6013 str r3, [r2, #0]
  11501. adds r2, r2, #4
  11502. 800549c: 3204 adds r2, #4
  11503. 0800549e <LoopFillZerobss>:
  11504. LoopFillZerobss:
  11505. cmp r2, r4
  11506. 800549e: 42a2 cmp r2, r4
  11507. bcc FillZerobss
  11508. 80054a0: d3fb bcc.n 800549a <FillZerobss>
  11509. /* Call static constructors */
  11510. bl __libc_init_array
  11511. 80054a2: f012 fd2b bl 8017efc <__libc_init_array>
  11512. /* Call the application's entry point.*/
  11513. bl main
  11514. 80054a6: f7fb f937 bl 8000718 <main>
  11515. bx lr
  11516. 80054aa: 4770 bx lr
  11517. ldr sp, =_estack /* set stack pointer */
  11518. 80054ac: 24060000 .word 0x24060000
  11519. ldr r0, =_sdata
  11520. 80054b0: 24000000 .word 0x24000000
  11521. ldr r1, =_edata
  11522. 80054b4: 240000a4 .word 0x240000a4
  11523. ldr r2, =_sidata
  11524. 80054b8: 08018c9c .word 0x08018c9c
  11525. ldr r2, =_sbss
  11526. 80054bc: 240000c0 .word 0x240000c0
  11527. ldr r4, =_ebss
  11528. 80054c0: 24012e34 .word 0x24012e34
  11529. 080054c4 <ADC3_IRQHandler>:
  11530. * @retval None
  11531. */
  11532. .section .text.Default_Handler,"ax",%progbits
  11533. Default_Handler:
  11534. Infinite_Loop:
  11535. b Infinite_Loop
  11536. 80054c4: e7fe b.n 80054c4 <ADC3_IRQHandler>
  11537. ...
  11538. 080054c8 <HAL_Init>:
  11539. * need to ensure that the SysTick time base is always set to 1 millisecond
  11540. * to have correct HAL operation.
  11541. * @retval HAL status
  11542. */
  11543. HAL_StatusTypeDef HAL_Init(void)
  11544. {
  11545. 80054c8: b580 push {r7, lr}
  11546. 80054ca: b082 sub sp, #8
  11547. 80054cc: af00 add r7, sp, #0
  11548. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  11549. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  11550. #endif /* DUAL_CORE && CORE_CM4 */
  11551. /* Set Interrupt Group Priority */
  11552. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  11553. 80054ce: 2003 movs r0, #3
  11554. 80054d0: f001 fee5 bl 800729e <HAL_NVIC_SetPriorityGrouping>
  11555. /* Update the SystemCoreClock global variable */
  11556. #if defined(RCC_D1CFGR_D1CPRE)
  11557. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  11558. 80054d4: f006 fbee bl 800bcb4 <HAL_RCC_GetSysClockFreq>
  11559. 80054d8: 4602 mov r2, r0
  11560. 80054da: 4b15 ldr r3, [pc, #84] @ (8005530 <HAL_Init+0x68>)
  11561. 80054dc: 699b ldr r3, [r3, #24]
  11562. 80054de: 0a1b lsrs r3, r3, #8
  11563. 80054e0: f003 030f and.w r3, r3, #15
  11564. 80054e4: 4913 ldr r1, [pc, #76] @ (8005534 <HAL_Init+0x6c>)
  11565. 80054e6: 5ccb ldrb r3, [r1, r3]
  11566. 80054e8: f003 031f and.w r3, r3, #31
  11567. 80054ec: fa22 f303 lsr.w r3, r2, r3
  11568. 80054f0: 607b str r3, [r7, #4]
  11569. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  11570. #endif
  11571. /* Update the SystemD2Clock global variable */
  11572. #if defined(RCC_D1CFGR_HPRE)
  11573. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  11574. 80054f2: 4b0f ldr r3, [pc, #60] @ (8005530 <HAL_Init+0x68>)
  11575. 80054f4: 699b ldr r3, [r3, #24]
  11576. 80054f6: f003 030f and.w r3, r3, #15
  11577. 80054fa: 4a0e ldr r2, [pc, #56] @ (8005534 <HAL_Init+0x6c>)
  11578. 80054fc: 5cd3 ldrb r3, [r2, r3]
  11579. 80054fe: f003 031f and.w r3, r3, #31
  11580. 8005502: 687a ldr r2, [r7, #4]
  11581. 8005504: fa22 f303 lsr.w r3, r2, r3
  11582. 8005508: 4a0b ldr r2, [pc, #44] @ (8005538 <HAL_Init+0x70>)
  11583. 800550a: 6013 str r3, [r2, #0]
  11584. #endif
  11585. #if defined(DUAL_CORE) && defined(CORE_CM4)
  11586. SystemCoreClock = SystemD2Clock;
  11587. #else
  11588. SystemCoreClock = common_system_clock;
  11589. 800550c: 4a0b ldr r2, [pc, #44] @ (800553c <HAL_Init+0x74>)
  11590. 800550e: 687b ldr r3, [r7, #4]
  11591. 8005510: 6013 str r3, [r2, #0]
  11592. #endif /* DUAL_CORE && CORE_CM4 */
  11593. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  11594. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  11595. 8005512: 2005 movs r0, #5
  11596. 8005514: f7fe fce4 bl 8003ee0 <HAL_InitTick>
  11597. 8005518: 4603 mov r3, r0
  11598. 800551a: 2b00 cmp r3, #0
  11599. 800551c: d001 beq.n 8005522 <HAL_Init+0x5a>
  11600. {
  11601. return HAL_ERROR;
  11602. 800551e: 2301 movs r3, #1
  11603. 8005520: e002 b.n 8005528 <HAL_Init+0x60>
  11604. }
  11605. /* Init the low level hardware */
  11606. HAL_MspInit();
  11607. 8005522: f7fd ffa7 bl 8003474 <HAL_MspInit>
  11608. /* Return function status */
  11609. return HAL_OK;
  11610. 8005526: 2300 movs r3, #0
  11611. }
  11612. 8005528: 4618 mov r0, r3
  11613. 800552a: 3708 adds r7, #8
  11614. 800552c: 46bd mov sp, r7
  11615. 800552e: bd80 pop {r7, pc}
  11616. 8005530: 58024400 .word 0x58024400
  11617. 8005534: 08018c18 .word 0x08018c18
  11618. 8005538: 24000038 .word 0x24000038
  11619. 800553c: 24000034 .word 0x24000034
  11620. 08005540 <HAL_IncTick>:
  11621. * @note This function is declared as __weak to be overwritten in case of other
  11622. * implementations in user file.
  11623. * @retval None
  11624. */
  11625. __weak void HAL_IncTick(void)
  11626. {
  11627. 8005540: b480 push {r7}
  11628. 8005542: af00 add r7, sp, #0
  11629. uwTick += (uint32_t)uwTickFreq;
  11630. 8005544: 4b06 ldr r3, [pc, #24] @ (8005560 <HAL_IncTick+0x20>)
  11631. 8005546: 781b ldrb r3, [r3, #0]
  11632. 8005548: 461a mov r2, r3
  11633. 800554a: 4b06 ldr r3, [pc, #24] @ (8005564 <HAL_IncTick+0x24>)
  11634. 800554c: 681b ldr r3, [r3, #0]
  11635. 800554e: 4413 add r3, r2
  11636. 8005550: 4a04 ldr r2, [pc, #16] @ (8005564 <HAL_IncTick+0x24>)
  11637. 8005552: 6013 str r3, [r2, #0]
  11638. }
  11639. 8005554: bf00 nop
  11640. 8005556: 46bd mov sp, r7
  11641. 8005558: f85d 7b04 ldr.w r7, [sp], #4
  11642. 800555c: 4770 bx lr
  11643. 800555e: bf00 nop
  11644. 8005560: 24000040 .word 0x24000040
  11645. 8005564: 24000cfc .word 0x24000cfc
  11646. 08005568 <HAL_GetTick>:
  11647. * @note This function is declared as __weak to be overwritten in case of other
  11648. * implementations in user file.
  11649. * @retval tick value
  11650. */
  11651. __weak uint32_t HAL_GetTick(void)
  11652. {
  11653. 8005568: b480 push {r7}
  11654. 800556a: af00 add r7, sp, #0
  11655. return uwTick;
  11656. 800556c: 4b03 ldr r3, [pc, #12] @ (800557c <HAL_GetTick+0x14>)
  11657. 800556e: 681b ldr r3, [r3, #0]
  11658. }
  11659. 8005570: 4618 mov r0, r3
  11660. 8005572: 46bd mov sp, r7
  11661. 8005574: f85d 7b04 ldr.w r7, [sp], #4
  11662. 8005578: 4770 bx lr
  11663. 800557a: bf00 nop
  11664. 800557c: 24000cfc .word 0x24000cfc
  11665. 08005580 <HAL_GetREVID>:
  11666. /**
  11667. * @brief Returns the device revision identifier.
  11668. * @retval Device revision identifier
  11669. */
  11670. uint32_t HAL_GetREVID(void)
  11671. {
  11672. 8005580: b480 push {r7}
  11673. 8005582: af00 add r7, sp, #0
  11674. return((DBGMCU->IDCODE) >> 16);
  11675. 8005584: 4b03 ldr r3, [pc, #12] @ (8005594 <HAL_GetREVID+0x14>)
  11676. 8005586: 681b ldr r3, [r3, #0]
  11677. 8005588: 0c1b lsrs r3, r3, #16
  11678. }
  11679. 800558a: 4618 mov r0, r3
  11680. 800558c: 46bd mov sp, r7
  11681. 800558e: f85d 7b04 ldr.w r7, [sp], #4
  11682. 8005592: 4770 bx lr
  11683. 8005594: 5c001000 .word 0x5c001000
  11684. 08005598 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  11685. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  11686. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  11687. * @retval None
  11688. */
  11689. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  11690. {
  11691. 8005598: b480 push {r7}
  11692. 800559a: b083 sub sp, #12
  11693. 800559c: af00 add r7, sp, #0
  11694. 800559e: 6078 str r0, [r7, #4]
  11695. /* Check the parameters */
  11696. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  11697. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  11698. 80055a0: 4b06 ldr r3, [pc, #24] @ (80055bc <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  11699. 80055a2: 681b ldr r3, [r3, #0]
  11700. 80055a4: f023 0202 bic.w r2, r3, #2
  11701. 80055a8: 4904 ldr r1, [pc, #16] @ (80055bc <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  11702. 80055aa: 687b ldr r3, [r7, #4]
  11703. 80055ac: 4313 orrs r3, r2
  11704. 80055ae: 600b str r3, [r1, #0]
  11705. }
  11706. 80055b0: bf00 nop
  11707. 80055b2: 370c adds r7, #12
  11708. 80055b4: 46bd mov sp, r7
  11709. 80055b6: f85d 7b04 ldr.w r7, [sp], #4
  11710. 80055ba: 4770 bx lr
  11711. 80055bc: 58003c00 .word 0x58003c00
  11712. 080055c0 <HAL_SYSCFG_DisableVREFBUF>:
  11713. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  11714. *
  11715. * @retval None
  11716. */
  11717. void HAL_SYSCFG_DisableVREFBUF(void)
  11718. {
  11719. 80055c0: b480 push {r7}
  11720. 80055c2: af00 add r7, sp, #0
  11721. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  11722. 80055c4: 4b05 ldr r3, [pc, #20] @ (80055dc <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  11723. 80055c6: 681b ldr r3, [r3, #0]
  11724. 80055c8: 4a04 ldr r2, [pc, #16] @ (80055dc <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  11725. 80055ca: f023 0301 bic.w r3, r3, #1
  11726. 80055ce: 6013 str r3, [r2, #0]
  11727. }
  11728. 80055d0: bf00 nop
  11729. 80055d2: 46bd mov sp, r7
  11730. 80055d4: f85d 7b04 ldr.w r7, [sp], #4
  11731. 80055d8: 4770 bx lr
  11732. 80055da: bf00 nop
  11733. 80055dc: 58003c00 .word 0x58003c00
  11734. 080055e0 <HAL_SYSCFG_AnalogSwitchConfig>:
  11735. * @arg SYSCFG_SWITCH_PC3_CLOSE
  11736. * @retval None
  11737. */
  11738. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  11739. {
  11740. 80055e0: b480 push {r7}
  11741. 80055e2: b083 sub sp, #12
  11742. 80055e4: af00 add r7, sp, #0
  11743. 80055e6: 6078 str r0, [r7, #4]
  11744. 80055e8: 6039 str r1, [r7, #0]
  11745. /* Check the parameter */
  11746. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  11747. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  11748. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  11749. 80055ea: 4b07 ldr r3, [pc, #28] @ (8005608 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  11750. 80055ec: 685a ldr r2, [r3, #4]
  11751. 80055ee: 687b ldr r3, [r7, #4]
  11752. 80055f0: 43db mvns r3, r3
  11753. 80055f2: 401a ands r2, r3
  11754. 80055f4: 4904 ldr r1, [pc, #16] @ (8005608 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  11755. 80055f6: 683b ldr r3, [r7, #0]
  11756. 80055f8: 4313 orrs r3, r2
  11757. 80055fa: 604b str r3, [r1, #4]
  11758. }
  11759. 80055fc: bf00 nop
  11760. 80055fe: 370c adds r7, #12
  11761. 8005600: 46bd mov sp, r7
  11762. 8005602: f85d 7b04 ldr.w r7, [sp], #4
  11763. 8005606: 4770 bx lr
  11764. 8005608: 58000400 .word 0x58000400
  11765. 0800560c <LL_ADC_SetCommonClock>:
  11766. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  11767. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  11768. * @retval None
  11769. */
  11770. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  11771. {
  11772. 800560c: b480 push {r7}
  11773. 800560e: b083 sub sp, #12
  11774. 8005610: af00 add r7, sp, #0
  11775. 8005612: 6078 str r0, [r7, #4]
  11776. 8005614: 6039 str r1, [r7, #0]
  11777. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  11778. 8005616: 687b ldr r3, [r7, #4]
  11779. 8005618: 689b ldr r3, [r3, #8]
  11780. 800561a: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  11781. 800561e: 683b ldr r3, [r7, #0]
  11782. 8005620: 431a orrs r2, r3
  11783. 8005622: 687b ldr r3, [r7, #4]
  11784. 8005624: 609a str r2, [r3, #8]
  11785. }
  11786. 8005626: bf00 nop
  11787. 8005628: 370c adds r7, #12
  11788. 800562a: 46bd mov sp, r7
  11789. 800562c: f85d 7b04 ldr.w r7, [sp], #4
  11790. 8005630: 4770 bx lr
  11791. 08005632 <LL_ADC_SetCommonPathInternalCh>:
  11792. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  11793. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  11794. * @retval None
  11795. */
  11796. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  11797. {
  11798. 8005632: b480 push {r7}
  11799. 8005634: b083 sub sp, #12
  11800. 8005636: af00 add r7, sp, #0
  11801. 8005638: 6078 str r0, [r7, #4]
  11802. 800563a: 6039 str r1, [r7, #0]
  11803. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  11804. 800563c: 687b ldr r3, [r7, #4]
  11805. 800563e: 689b ldr r3, [r3, #8]
  11806. 8005640: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  11807. 8005644: 683b ldr r3, [r7, #0]
  11808. 8005646: 431a orrs r2, r3
  11809. 8005648: 687b ldr r3, [r7, #4]
  11810. 800564a: 609a str r2, [r3, #8]
  11811. }
  11812. 800564c: bf00 nop
  11813. 800564e: 370c adds r7, #12
  11814. 8005650: 46bd mov sp, r7
  11815. 8005652: f85d 7b04 ldr.w r7, [sp], #4
  11816. 8005656: 4770 bx lr
  11817. 08005658 <LL_ADC_GetCommonPathInternalCh>:
  11818. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  11819. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  11820. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  11821. */
  11822. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  11823. {
  11824. 8005658: b480 push {r7}
  11825. 800565a: b083 sub sp, #12
  11826. 800565c: af00 add r7, sp, #0
  11827. 800565e: 6078 str r0, [r7, #4]
  11828. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  11829. 8005660: 687b ldr r3, [r7, #4]
  11830. 8005662: 689b ldr r3, [r3, #8]
  11831. 8005664: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  11832. }
  11833. 8005668: 4618 mov r0, r3
  11834. 800566a: 370c adds r7, #12
  11835. 800566c: 46bd mov sp, r7
  11836. 800566e: f85d 7b04 ldr.w r7, [sp], #4
  11837. 8005672: 4770 bx lr
  11838. 08005674 <LL_ADC_SetOffset>:
  11839. * Other channels are slow channels (conversion rate: refer to reference manual).
  11840. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  11841. * @retval None
  11842. */
  11843. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  11844. {
  11845. 8005674: b480 push {r7}
  11846. 8005676: b087 sub sp, #28
  11847. 8005678: af00 add r7, sp, #0
  11848. 800567a: 60f8 str r0, [r7, #12]
  11849. 800567c: 60b9 str r1, [r7, #8]
  11850. 800567e: 607a str r2, [r7, #4]
  11851. 8005680: 603b str r3, [r7, #0]
  11852. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  11853. 8005682: 68fb ldr r3, [r7, #12]
  11854. 8005684: 3360 adds r3, #96 @ 0x60
  11855. 8005686: 461a mov r2, r3
  11856. 8005688: 68bb ldr r3, [r7, #8]
  11857. 800568a: 009b lsls r3, r3, #2
  11858. 800568c: 4413 add r3, r2
  11859. 800568e: 617b str r3, [r7, #20]
  11860. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  11861. }
  11862. else
  11863. #endif /* ADC_VER_V5_V90 */
  11864. {
  11865. MODIFY_REG(*preg,
  11866. 8005690: 697b ldr r3, [r7, #20]
  11867. 8005692: 681b ldr r3, [r3, #0]
  11868. 8005694: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  11869. 8005698: 687b ldr r3, [r7, #4]
  11870. 800569a: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  11871. 800569e: 683b ldr r3, [r7, #0]
  11872. 80056a0: 430b orrs r3, r1
  11873. 80056a2: 431a orrs r2, r3
  11874. 80056a4: 697b ldr r3, [r7, #20]
  11875. 80056a6: 601a str r2, [r3, #0]
  11876. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  11877. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  11878. }
  11879. }
  11880. 80056a8: bf00 nop
  11881. 80056aa: 371c adds r7, #28
  11882. 80056ac: 46bd mov sp, r7
  11883. 80056ae: f85d 7b04 ldr.w r7, [sp], #4
  11884. 80056b2: 4770 bx lr
  11885. 080056b4 <LL_ADC_SetDataRightShift>:
  11886. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  11887. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  11888. * @retval Returned None
  11889. */
  11890. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  11891. {
  11892. 80056b4: b480 push {r7}
  11893. 80056b6: b085 sub sp, #20
  11894. 80056b8: af00 add r7, sp, #0
  11895. 80056ba: 60f8 str r0, [r7, #12]
  11896. 80056bc: 60b9 str r1, [r7, #8]
  11897. 80056be: 607a str r2, [r7, #4]
  11898. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  11899. 80056c0: 68fb ldr r3, [r7, #12]
  11900. 80056c2: 691b ldr r3, [r3, #16]
  11901. 80056c4: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  11902. 80056c8: 68bb ldr r3, [r7, #8]
  11903. 80056ca: f003 031f and.w r3, r3, #31
  11904. 80056ce: 6879 ldr r1, [r7, #4]
  11905. 80056d0: fa01 f303 lsl.w r3, r1, r3
  11906. 80056d4: 431a orrs r2, r3
  11907. 80056d6: 68fb ldr r3, [r7, #12]
  11908. 80056d8: 611a str r2, [r3, #16]
  11909. }
  11910. 80056da: bf00 nop
  11911. 80056dc: 3714 adds r7, #20
  11912. 80056de: 46bd mov sp, r7
  11913. 80056e0: f85d 7b04 ldr.w r7, [sp], #4
  11914. 80056e4: 4770 bx lr
  11915. 080056e6 <LL_ADC_SetOffsetSignedSaturation>:
  11916. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  11917. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  11918. * @retval Returned None
  11919. */
  11920. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  11921. {
  11922. 80056e6: b480 push {r7}
  11923. 80056e8: b087 sub sp, #28
  11924. 80056ea: af00 add r7, sp, #0
  11925. 80056ec: 60f8 str r0, [r7, #12]
  11926. 80056ee: 60b9 str r1, [r7, #8]
  11927. 80056f0: 607a str r2, [r7, #4]
  11928. /* Function not available on this instance */
  11929. }
  11930. else
  11931. #endif /* ADC_VER_V5_V90 */
  11932. {
  11933. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  11934. 80056f2: 68fb ldr r3, [r7, #12]
  11935. 80056f4: 3360 adds r3, #96 @ 0x60
  11936. 80056f6: 461a mov r2, r3
  11937. 80056f8: 68bb ldr r3, [r7, #8]
  11938. 80056fa: 009b lsls r3, r3, #2
  11939. 80056fc: 4413 add r3, r2
  11940. 80056fe: 617b str r3, [r7, #20]
  11941. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  11942. 8005700: 697b ldr r3, [r7, #20]
  11943. 8005702: 681b ldr r3, [r3, #0]
  11944. 8005704: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  11945. 8005708: 687b ldr r3, [r7, #4]
  11946. 800570a: 431a orrs r2, r3
  11947. 800570c: 697b ldr r3, [r7, #20]
  11948. 800570e: 601a str r2, [r3, #0]
  11949. }
  11950. }
  11951. 8005710: bf00 nop
  11952. 8005712: 371c adds r7, #28
  11953. 8005714: 46bd mov sp, r7
  11954. 8005716: f85d 7b04 ldr.w r7, [sp], #4
  11955. 800571a: 4770 bx lr
  11956. 0800571c <LL_ADC_REG_IsTriggerSourceSWStart>:
  11957. * @param ADCx ADC instance
  11958. * @retval Value "0" if trigger source external trigger
  11959. * Value "1" if trigger source SW start.
  11960. */
  11961. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  11962. {
  11963. 800571c: b480 push {r7}
  11964. 800571e: b083 sub sp, #12
  11965. 8005720: af00 add r7, sp, #0
  11966. 8005722: 6078 str r0, [r7, #4]
  11967. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  11968. 8005724: 687b ldr r3, [r7, #4]
  11969. 8005726: 68db ldr r3, [r3, #12]
  11970. 8005728: f403 6340 and.w r3, r3, #3072 @ 0xc00
  11971. 800572c: 2b00 cmp r3, #0
  11972. 800572e: d101 bne.n 8005734 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  11973. 8005730: 2301 movs r3, #1
  11974. 8005732: e000 b.n 8005736 <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  11975. 8005734: 2300 movs r3, #0
  11976. }
  11977. 8005736: 4618 mov r0, r3
  11978. 8005738: 370c adds r7, #12
  11979. 800573a: 46bd mov sp, r7
  11980. 800573c: f85d 7b04 ldr.w r7, [sp], #4
  11981. 8005740: 4770 bx lr
  11982. 08005742 <LL_ADC_REG_SetSequencerRanks>:
  11983. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  11984. * Other channels are slow channels (conversion rate: refer to reference manual).
  11985. * @retval None
  11986. */
  11987. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  11988. {
  11989. 8005742: b480 push {r7}
  11990. 8005744: b087 sub sp, #28
  11991. 8005746: af00 add r7, sp, #0
  11992. 8005748: 60f8 str r0, [r7, #12]
  11993. 800574a: 60b9 str r1, [r7, #8]
  11994. 800574c: 607a str r2, [r7, #4]
  11995. /* Set bits with content of parameter "Channel" with bits position */
  11996. /* in register and register position depending on parameter "Rank". */
  11997. /* Parameters "Rank" and "Channel" are used with masks because containing */
  11998. /* other bits reserved for other purpose. */
  11999. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  12000. 800574e: 68fb ldr r3, [r7, #12]
  12001. 8005750: 3330 adds r3, #48 @ 0x30
  12002. 8005752: 461a mov r2, r3
  12003. 8005754: 68bb ldr r3, [r7, #8]
  12004. 8005756: 0a1b lsrs r3, r3, #8
  12005. 8005758: 009b lsls r3, r3, #2
  12006. 800575a: f003 030c and.w r3, r3, #12
  12007. 800575e: 4413 add r3, r2
  12008. 8005760: 617b str r3, [r7, #20]
  12009. MODIFY_REG(*preg,
  12010. 8005762: 697b ldr r3, [r7, #20]
  12011. 8005764: 681a ldr r2, [r3, #0]
  12012. 8005766: 68bb ldr r3, [r7, #8]
  12013. 8005768: f003 031f and.w r3, r3, #31
  12014. 800576c: 211f movs r1, #31
  12015. 800576e: fa01 f303 lsl.w r3, r1, r3
  12016. 8005772: 43db mvns r3, r3
  12017. 8005774: 401a ands r2, r3
  12018. 8005776: 687b ldr r3, [r7, #4]
  12019. 8005778: 0e9b lsrs r3, r3, #26
  12020. 800577a: f003 011f and.w r1, r3, #31
  12021. 800577e: 68bb ldr r3, [r7, #8]
  12022. 8005780: f003 031f and.w r3, r3, #31
  12023. 8005784: fa01 f303 lsl.w r3, r1, r3
  12024. 8005788: 431a orrs r2, r3
  12025. 800578a: 697b ldr r3, [r7, #20]
  12026. 800578c: 601a str r2, [r3, #0]
  12027. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  12028. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  12029. }
  12030. 800578e: bf00 nop
  12031. 8005790: 371c adds r7, #28
  12032. 8005792: 46bd mov sp, r7
  12033. 8005794: f85d 7b04 ldr.w r7, [sp], #4
  12034. 8005798: 4770 bx lr
  12035. 0800579a <LL_ADC_REG_SetDataTransferMode>:
  12036. * @param ADCx ADC instance
  12037. * @param DataTransferMode Select Data Management configuration
  12038. * @retval None
  12039. */
  12040. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  12041. {
  12042. 800579a: b480 push {r7}
  12043. 800579c: b083 sub sp, #12
  12044. 800579e: af00 add r7, sp, #0
  12045. 80057a0: 6078 str r0, [r7, #4]
  12046. 80057a2: 6039 str r1, [r7, #0]
  12047. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  12048. 80057a4: 687b ldr r3, [r7, #4]
  12049. 80057a6: 68db ldr r3, [r3, #12]
  12050. 80057a8: f023 0203 bic.w r2, r3, #3
  12051. 80057ac: 683b ldr r3, [r7, #0]
  12052. 80057ae: 431a orrs r2, r3
  12053. 80057b0: 687b ldr r3, [r7, #4]
  12054. 80057b2: 60da str r2, [r3, #12]
  12055. }
  12056. 80057b4: bf00 nop
  12057. 80057b6: 370c adds r7, #12
  12058. 80057b8: 46bd mov sp, r7
  12059. 80057ba: f85d 7b04 ldr.w r7, [sp], #4
  12060. 80057be: 4770 bx lr
  12061. 080057c0 <LL_ADC_SetChannelSamplingTime>:
  12062. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  12063. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  12064. * @retval None
  12065. */
  12066. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  12067. {
  12068. 80057c0: b480 push {r7}
  12069. 80057c2: b087 sub sp, #28
  12070. 80057c4: af00 add r7, sp, #0
  12071. 80057c6: 60f8 str r0, [r7, #12]
  12072. 80057c8: 60b9 str r1, [r7, #8]
  12073. 80057ca: 607a str r2, [r7, #4]
  12074. /* Set bits with content of parameter "SamplingTime" with bits position */
  12075. /* in register and register position depending on parameter "Channel". */
  12076. /* Parameter "Channel" is used with masks because containing */
  12077. /* other bits reserved for other purpose. */
  12078. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  12079. 80057cc: 68fb ldr r3, [r7, #12]
  12080. 80057ce: 3314 adds r3, #20
  12081. 80057d0: 461a mov r2, r3
  12082. 80057d2: 68bb ldr r3, [r7, #8]
  12083. 80057d4: 0e5b lsrs r3, r3, #25
  12084. 80057d6: 009b lsls r3, r3, #2
  12085. 80057d8: f003 0304 and.w r3, r3, #4
  12086. 80057dc: 4413 add r3, r2
  12087. 80057de: 617b str r3, [r7, #20]
  12088. MODIFY_REG(*preg,
  12089. 80057e0: 697b ldr r3, [r7, #20]
  12090. 80057e2: 681a ldr r2, [r3, #0]
  12091. 80057e4: 68bb ldr r3, [r7, #8]
  12092. 80057e6: 0d1b lsrs r3, r3, #20
  12093. 80057e8: f003 031f and.w r3, r3, #31
  12094. 80057ec: 2107 movs r1, #7
  12095. 80057ee: fa01 f303 lsl.w r3, r1, r3
  12096. 80057f2: 43db mvns r3, r3
  12097. 80057f4: 401a ands r2, r3
  12098. 80057f6: 68bb ldr r3, [r7, #8]
  12099. 80057f8: 0d1b lsrs r3, r3, #20
  12100. 80057fa: f003 031f and.w r3, r3, #31
  12101. 80057fe: 6879 ldr r1, [r7, #4]
  12102. 8005800: fa01 f303 lsl.w r3, r1, r3
  12103. 8005804: 431a orrs r2, r3
  12104. 8005806: 697b ldr r3, [r7, #20]
  12105. 8005808: 601a str r2, [r3, #0]
  12106. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  12107. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  12108. }
  12109. 800580a: bf00 nop
  12110. 800580c: 371c adds r7, #28
  12111. 800580e: 46bd mov sp, r7
  12112. 8005810: f85d 7b04 ldr.w r7, [sp], #4
  12113. 8005814: 4770 bx lr
  12114. ...
  12115. 08005818 <LL_ADC_SetChannelSingleDiff>:
  12116. * @arg @ref LL_ADC_SINGLE_ENDED
  12117. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  12118. * @retval None
  12119. */
  12120. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  12121. {
  12122. 8005818: b480 push {r7}
  12123. 800581a: b085 sub sp, #20
  12124. 800581c: af00 add r7, sp, #0
  12125. 800581e: 60f8 str r0, [r7, #12]
  12126. 8005820: 60b9 str r1, [r7, #8]
  12127. 8005822: 607a str r2, [r7, #4]
  12128. }
  12129. #else /* ADC_VER_V5_V90 */
  12130. /* Bits of channels in single or differential mode are set only for */
  12131. /* differential mode (for single mode, mask of bits allowed to be set is */
  12132. /* shifted out of range of bits of channels in single or differential mode. */
  12133. MODIFY_REG(ADCx->DIFSEL,
  12134. 8005824: 68fb ldr r3, [r7, #12]
  12135. 8005826: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  12136. 800582a: 68bb ldr r3, [r7, #8]
  12137. 800582c: f3c3 0313 ubfx r3, r3, #0, #20
  12138. 8005830: 43db mvns r3, r3
  12139. 8005832: 401a ands r2, r3
  12140. 8005834: 687b ldr r3, [r7, #4]
  12141. 8005836: f003 0318 and.w r3, r3, #24
  12142. 800583a: 4908 ldr r1, [pc, #32] @ (800585c <LL_ADC_SetChannelSingleDiff+0x44>)
  12143. 800583c: 40d9 lsrs r1, r3
  12144. 800583e: 68bb ldr r3, [r7, #8]
  12145. 8005840: 400b ands r3, r1
  12146. 8005842: f3c3 0313 ubfx r3, r3, #0, #20
  12147. 8005846: 431a orrs r2, r3
  12148. 8005848: 68fb ldr r3, [r7, #12]
  12149. 800584a: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  12150. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  12151. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  12152. #endif /* ADC_VER_V5_V90 */
  12153. }
  12154. 800584e: bf00 nop
  12155. 8005850: 3714 adds r7, #20
  12156. 8005852: 46bd mov sp, r7
  12157. 8005854: f85d 7b04 ldr.w r7, [sp], #4
  12158. 8005858: 4770 bx lr
  12159. 800585a: bf00 nop
  12160. 800585c: 000fffff .word 0x000fffff
  12161. 08005860 <LL_ADC_GetMultimode>:
  12162. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  12163. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  12164. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  12165. */
  12166. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  12167. {
  12168. 8005860: b480 push {r7}
  12169. 8005862: b083 sub sp, #12
  12170. 8005864: af00 add r7, sp, #0
  12171. 8005866: 6078 str r0, [r7, #4]
  12172. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  12173. 8005868: 687b ldr r3, [r7, #4]
  12174. 800586a: 689b ldr r3, [r3, #8]
  12175. 800586c: f003 031f and.w r3, r3, #31
  12176. }
  12177. 8005870: 4618 mov r0, r3
  12178. 8005872: 370c adds r7, #12
  12179. 8005874: 46bd mov sp, r7
  12180. 8005876: f85d 7b04 ldr.w r7, [sp], #4
  12181. 800587a: 4770 bx lr
  12182. 0800587c <LL_ADC_DisableDeepPowerDown>:
  12183. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  12184. * @param ADCx ADC instance
  12185. * @retval None
  12186. */
  12187. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  12188. {
  12189. 800587c: b480 push {r7}
  12190. 800587e: b083 sub sp, #12
  12191. 8005880: af00 add r7, sp, #0
  12192. 8005882: 6078 str r0, [r7, #4]
  12193. /* Note: Write register with some additional bits forced to state reset */
  12194. /* instead of modifying only the selected bit for this function, */
  12195. /* to not interfere with bits with HW property "rs". */
  12196. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  12197. 8005884: 687b ldr r3, [r7, #4]
  12198. 8005886: 689a ldr r2, [r3, #8]
  12199. 8005888: 4b04 ldr r3, [pc, #16] @ (800589c <LL_ADC_DisableDeepPowerDown+0x20>)
  12200. 800588a: 4013 ands r3, r2
  12201. 800588c: 687a ldr r2, [r7, #4]
  12202. 800588e: 6093 str r3, [r2, #8]
  12203. }
  12204. 8005890: bf00 nop
  12205. 8005892: 370c adds r7, #12
  12206. 8005894: 46bd mov sp, r7
  12207. 8005896: f85d 7b04 ldr.w r7, [sp], #4
  12208. 800589a: 4770 bx lr
  12209. 800589c: 5fffffc0 .word 0x5fffffc0
  12210. 080058a0 <LL_ADC_IsDeepPowerDownEnabled>:
  12211. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  12212. * @param ADCx ADC instance
  12213. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  12214. */
  12215. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  12216. {
  12217. 80058a0: b480 push {r7}
  12218. 80058a2: b083 sub sp, #12
  12219. 80058a4: af00 add r7, sp, #0
  12220. 80058a6: 6078 str r0, [r7, #4]
  12221. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  12222. 80058a8: 687b ldr r3, [r7, #4]
  12223. 80058aa: 689b ldr r3, [r3, #8]
  12224. 80058ac: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  12225. 80058b0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  12226. 80058b4: d101 bne.n 80058ba <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  12227. 80058b6: 2301 movs r3, #1
  12228. 80058b8: e000 b.n 80058bc <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  12229. 80058ba: 2300 movs r3, #0
  12230. }
  12231. 80058bc: 4618 mov r0, r3
  12232. 80058be: 370c adds r7, #12
  12233. 80058c0: 46bd mov sp, r7
  12234. 80058c2: f85d 7b04 ldr.w r7, [sp], #4
  12235. 80058c6: 4770 bx lr
  12236. 080058c8 <LL_ADC_EnableInternalRegulator>:
  12237. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  12238. * @param ADCx ADC instance
  12239. * @retval None
  12240. */
  12241. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  12242. {
  12243. 80058c8: b480 push {r7}
  12244. 80058ca: b083 sub sp, #12
  12245. 80058cc: af00 add r7, sp, #0
  12246. 80058ce: 6078 str r0, [r7, #4]
  12247. /* Note: Write register with some additional bits forced to state reset */
  12248. /* instead of modifying only the selected bit for this function, */
  12249. /* to not interfere with bits with HW property "rs". */
  12250. MODIFY_REG(ADCx->CR,
  12251. 80058d0: 687b ldr r3, [r7, #4]
  12252. 80058d2: 689a ldr r2, [r3, #8]
  12253. 80058d4: 4b05 ldr r3, [pc, #20] @ (80058ec <LL_ADC_EnableInternalRegulator+0x24>)
  12254. 80058d6: 4013 ands r3, r2
  12255. 80058d8: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  12256. 80058dc: 687b ldr r3, [r7, #4]
  12257. 80058de: 609a str r2, [r3, #8]
  12258. ADC_CR_BITS_PROPERTY_RS,
  12259. ADC_CR_ADVREGEN);
  12260. }
  12261. 80058e0: bf00 nop
  12262. 80058e2: 370c adds r7, #12
  12263. 80058e4: 46bd mov sp, r7
  12264. 80058e6: f85d 7b04 ldr.w r7, [sp], #4
  12265. 80058ea: 4770 bx lr
  12266. 80058ec: 6fffffc0 .word 0x6fffffc0
  12267. 080058f0 <LL_ADC_IsInternalRegulatorEnabled>:
  12268. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  12269. * @param ADCx ADC instance
  12270. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  12271. */
  12272. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  12273. {
  12274. 80058f0: b480 push {r7}
  12275. 80058f2: b083 sub sp, #12
  12276. 80058f4: af00 add r7, sp, #0
  12277. 80058f6: 6078 str r0, [r7, #4]
  12278. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  12279. 80058f8: 687b ldr r3, [r7, #4]
  12280. 80058fa: 689b ldr r3, [r3, #8]
  12281. 80058fc: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  12282. 8005900: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  12283. 8005904: d101 bne.n 800590a <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  12284. 8005906: 2301 movs r3, #1
  12285. 8005908: e000 b.n 800590c <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  12286. 800590a: 2300 movs r3, #0
  12287. }
  12288. 800590c: 4618 mov r0, r3
  12289. 800590e: 370c adds r7, #12
  12290. 8005910: 46bd mov sp, r7
  12291. 8005912: f85d 7b04 ldr.w r7, [sp], #4
  12292. 8005916: 4770 bx lr
  12293. 08005918 <LL_ADC_Enable>:
  12294. * @rmtoll CR ADEN LL_ADC_Enable
  12295. * @param ADCx ADC instance
  12296. * @retval None
  12297. */
  12298. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  12299. {
  12300. 8005918: b480 push {r7}
  12301. 800591a: b083 sub sp, #12
  12302. 800591c: af00 add r7, sp, #0
  12303. 800591e: 6078 str r0, [r7, #4]
  12304. /* Note: Write register with some additional bits forced to state reset */
  12305. /* instead of modifying only the selected bit for this function, */
  12306. /* to not interfere with bits with HW property "rs". */
  12307. MODIFY_REG(ADCx->CR,
  12308. 8005920: 687b ldr r3, [r7, #4]
  12309. 8005922: 689a ldr r2, [r3, #8]
  12310. 8005924: 4b05 ldr r3, [pc, #20] @ (800593c <LL_ADC_Enable+0x24>)
  12311. 8005926: 4013 ands r3, r2
  12312. 8005928: f043 0201 orr.w r2, r3, #1
  12313. 800592c: 687b ldr r3, [r7, #4]
  12314. 800592e: 609a str r2, [r3, #8]
  12315. ADC_CR_BITS_PROPERTY_RS,
  12316. ADC_CR_ADEN);
  12317. }
  12318. 8005930: bf00 nop
  12319. 8005932: 370c adds r7, #12
  12320. 8005934: 46bd mov sp, r7
  12321. 8005936: f85d 7b04 ldr.w r7, [sp], #4
  12322. 800593a: 4770 bx lr
  12323. 800593c: 7fffffc0 .word 0x7fffffc0
  12324. 08005940 <LL_ADC_Disable>:
  12325. * @rmtoll CR ADDIS LL_ADC_Disable
  12326. * @param ADCx ADC instance
  12327. * @retval None
  12328. */
  12329. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  12330. {
  12331. 8005940: b480 push {r7}
  12332. 8005942: b083 sub sp, #12
  12333. 8005944: af00 add r7, sp, #0
  12334. 8005946: 6078 str r0, [r7, #4]
  12335. /* Note: Write register with some additional bits forced to state reset */
  12336. /* instead of modifying only the selected bit for this function, */
  12337. /* to not interfere with bits with HW property "rs". */
  12338. MODIFY_REG(ADCx->CR,
  12339. 8005948: 687b ldr r3, [r7, #4]
  12340. 800594a: 689a ldr r2, [r3, #8]
  12341. 800594c: 4b05 ldr r3, [pc, #20] @ (8005964 <LL_ADC_Disable+0x24>)
  12342. 800594e: 4013 ands r3, r2
  12343. 8005950: f043 0202 orr.w r2, r3, #2
  12344. 8005954: 687b ldr r3, [r7, #4]
  12345. 8005956: 609a str r2, [r3, #8]
  12346. ADC_CR_BITS_PROPERTY_RS,
  12347. ADC_CR_ADDIS);
  12348. }
  12349. 8005958: bf00 nop
  12350. 800595a: 370c adds r7, #12
  12351. 800595c: 46bd mov sp, r7
  12352. 800595e: f85d 7b04 ldr.w r7, [sp], #4
  12353. 8005962: 4770 bx lr
  12354. 8005964: 7fffffc0 .word 0x7fffffc0
  12355. 08005968 <LL_ADC_IsEnabled>:
  12356. * @rmtoll CR ADEN LL_ADC_IsEnabled
  12357. * @param ADCx ADC instance
  12358. * @retval 0: ADC is disabled, 1: ADC is enabled.
  12359. */
  12360. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  12361. {
  12362. 8005968: b480 push {r7}
  12363. 800596a: b083 sub sp, #12
  12364. 800596c: af00 add r7, sp, #0
  12365. 800596e: 6078 str r0, [r7, #4]
  12366. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  12367. 8005970: 687b ldr r3, [r7, #4]
  12368. 8005972: 689b ldr r3, [r3, #8]
  12369. 8005974: f003 0301 and.w r3, r3, #1
  12370. 8005978: 2b01 cmp r3, #1
  12371. 800597a: d101 bne.n 8005980 <LL_ADC_IsEnabled+0x18>
  12372. 800597c: 2301 movs r3, #1
  12373. 800597e: e000 b.n 8005982 <LL_ADC_IsEnabled+0x1a>
  12374. 8005980: 2300 movs r3, #0
  12375. }
  12376. 8005982: 4618 mov r0, r3
  12377. 8005984: 370c adds r7, #12
  12378. 8005986: 46bd mov sp, r7
  12379. 8005988: f85d 7b04 ldr.w r7, [sp], #4
  12380. 800598c: 4770 bx lr
  12381. 0800598e <LL_ADC_IsDisableOngoing>:
  12382. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  12383. * @param ADCx ADC instance
  12384. * @retval 0: no ADC disable command on going.
  12385. */
  12386. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  12387. {
  12388. 800598e: b480 push {r7}
  12389. 8005990: b083 sub sp, #12
  12390. 8005992: af00 add r7, sp, #0
  12391. 8005994: 6078 str r0, [r7, #4]
  12392. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  12393. 8005996: 687b ldr r3, [r7, #4]
  12394. 8005998: 689b ldr r3, [r3, #8]
  12395. 800599a: f003 0302 and.w r3, r3, #2
  12396. 800599e: 2b02 cmp r3, #2
  12397. 80059a0: d101 bne.n 80059a6 <LL_ADC_IsDisableOngoing+0x18>
  12398. 80059a2: 2301 movs r3, #1
  12399. 80059a4: e000 b.n 80059a8 <LL_ADC_IsDisableOngoing+0x1a>
  12400. 80059a6: 2300 movs r3, #0
  12401. }
  12402. 80059a8: 4618 mov r0, r3
  12403. 80059aa: 370c adds r7, #12
  12404. 80059ac: 46bd mov sp, r7
  12405. 80059ae: f85d 7b04 ldr.w r7, [sp], #4
  12406. 80059b2: 4770 bx lr
  12407. 080059b4 <LL_ADC_REG_StartConversion>:
  12408. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  12409. * @param ADCx ADC instance
  12410. * @retval None
  12411. */
  12412. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  12413. {
  12414. 80059b4: b480 push {r7}
  12415. 80059b6: b083 sub sp, #12
  12416. 80059b8: af00 add r7, sp, #0
  12417. 80059ba: 6078 str r0, [r7, #4]
  12418. /* Note: Write register with some additional bits forced to state reset */
  12419. /* instead of modifying only the selected bit for this function, */
  12420. /* to not interfere with bits with HW property "rs". */
  12421. MODIFY_REG(ADCx->CR,
  12422. 80059bc: 687b ldr r3, [r7, #4]
  12423. 80059be: 689a ldr r2, [r3, #8]
  12424. 80059c0: 4b05 ldr r3, [pc, #20] @ (80059d8 <LL_ADC_REG_StartConversion+0x24>)
  12425. 80059c2: 4013 ands r3, r2
  12426. 80059c4: f043 0204 orr.w r2, r3, #4
  12427. 80059c8: 687b ldr r3, [r7, #4]
  12428. 80059ca: 609a str r2, [r3, #8]
  12429. ADC_CR_BITS_PROPERTY_RS,
  12430. ADC_CR_ADSTART);
  12431. }
  12432. 80059cc: bf00 nop
  12433. 80059ce: 370c adds r7, #12
  12434. 80059d0: 46bd mov sp, r7
  12435. 80059d2: f85d 7b04 ldr.w r7, [sp], #4
  12436. 80059d6: 4770 bx lr
  12437. 80059d8: 7fffffc0 .word 0x7fffffc0
  12438. 080059dc <LL_ADC_REG_IsConversionOngoing>:
  12439. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  12440. * @param ADCx ADC instance
  12441. * @retval 0: no conversion is on going on ADC group regular.
  12442. */
  12443. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  12444. {
  12445. 80059dc: b480 push {r7}
  12446. 80059de: b083 sub sp, #12
  12447. 80059e0: af00 add r7, sp, #0
  12448. 80059e2: 6078 str r0, [r7, #4]
  12449. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  12450. 80059e4: 687b ldr r3, [r7, #4]
  12451. 80059e6: 689b ldr r3, [r3, #8]
  12452. 80059e8: f003 0304 and.w r3, r3, #4
  12453. 80059ec: 2b04 cmp r3, #4
  12454. 80059ee: d101 bne.n 80059f4 <LL_ADC_REG_IsConversionOngoing+0x18>
  12455. 80059f0: 2301 movs r3, #1
  12456. 80059f2: e000 b.n 80059f6 <LL_ADC_REG_IsConversionOngoing+0x1a>
  12457. 80059f4: 2300 movs r3, #0
  12458. }
  12459. 80059f6: 4618 mov r0, r3
  12460. 80059f8: 370c adds r7, #12
  12461. 80059fa: 46bd mov sp, r7
  12462. 80059fc: f85d 7b04 ldr.w r7, [sp], #4
  12463. 8005a00: 4770 bx lr
  12464. 08005a02 <LL_ADC_INJ_IsConversionOngoing>:
  12465. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  12466. * @param ADCx ADC instance
  12467. * @retval 0: no conversion is on going on ADC group injected.
  12468. */
  12469. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  12470. {
  12471. 8005a02: b480 push {r7}
  12472. 8005a04: b083 sub sp, #12
  12473. 8005a06: af00 add r7, sp, #0
  12474. 8005a08: 6078 str r0, [r7, #4]
  12475. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  12476. 8005a0a: 687b ldr r3, [r7, #4]
  12477. 8005a0c: 689b ldr r3, [r3, #8]
  12478. 8005a0e: f003 0308 and.w r3, r3, #8
  12479. 8005a12: 2b08 cmp r3, #8
  12480. 8005a14: d101 bne.n 8005a1a <LL_ADC_INJ_IsConversionOngoing+0x18>
  12481. 8005a16: 2301 movs r3, #1
  12482. 8005a18: e000 b.n 8005a1c <LL_ADC_INJ_IsConversionOngoing+0x1a>
  12483. 8005a1a: 2300 movs r3, #0
  12484. }
  12485. 8005a1c: 4618 mov r0, r3
  12486. 8005a1e: 370c adds r7, #12
  12487. 8005a20: 46bd mov sp, r7
  12488. 8005a22: f85d 7b04 ldr.w r7, [sp], #4
  12489. 8005a26: 4770 bx lr
  12490. 08005a28 <HAL_ADC_Init>:
  12491. * without disabling the other ADCs.
  12492. * @param hadc ADC handle
  12493. * @retval HAL status
  12494. */
  12495. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  12496. {
  12497. 8005a28: b590 push {r4, r7, lr}
  12498. 8005a2a: b089 sub sp, #36 @ 0x24
  12499. 8005a2c: af00 add r7, sp, #0
  12500. 8005a2e: 6078 str r0, [r7, #4]
  12501. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  12502. 8005a30: 2300 movs r3, #0
  12503. 8005a32: 77fb strb r3, [r7, #31]
  12504. uint32_t tmpCFGR;
  12505. uint32_t tmp_adc_reg_is_conversion_on_going;
  12506. __IO uint32_t wait_loop_index = 0UL;
  12507. 8005a34: 2300 movs r3, #0
  12508. 8005a36: 60bb str r3, [r7, #8]
  12509. uint32_t tmp_adc_is_conversion_on_going_regular;
  12510. uint32_t tmp_adc_is_conversion_on_going_injected;
  12511. /* Check ADC handle */
  12512. if (hadc == NULL)
  12513. 8005a38: 687b ldr r3, [r7, #4]
  12514. 8005a3a: 2b00 cmp r3, #0
  12515. 8005a3c: d101 bne.n 8005a42 <HAL_ADC_Init+0x1a>
  12516. {
  12517. return HAL_ERROR;
  12518. 8005a3e: 2301 movs r3, #1
  12519. 8005a40: e18f b.n 8005d62 <HAL_ADC_Init+0x33a>
  12520. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  12521. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  12522. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  12523. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  12524. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  12525. 8005a42: 687b ldr r3, [r7, #4]
  12526. 8005a44: 68db ldr r3, [r3, #12]
  12527. 8005a46: 2b00 cmp r3, #0
  12528. /* DISCEN and CONT bits cannot be set at the same time */
  12529. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  12530. /* Actions performed only if ADC is coming from state reset: */
  12531. /* - Initialization of ADC MSP */
  12532. if (hadc->State == HAL_ADC_STATE_RESET)
  12533. 8005a48: 687b ldr r3, [r7, #4]
  12534. 8005a4a: 6d5b ldr r3, [r3, #84] @ 0x54
  12535. 8005a4c: 2b00 cmp r3, #0
  12536. 8005a4e: d109 bne.n 8005a64 <HAL_ADC_Init+0x3c>
  12537. /* Init the low level hardware */
  12538. hadc->MspInitCallback(hadc);
  12539. #else
  12540. /* Init the low level hardware */
  12541. HAL_ADC_MspInit(hadc);
  12542. 8005a50: 6878 ldr r0, [r7, #4]
  12543. 8005a52: f7fd fd6b bl 800352c <HAL_ADC_MspInit>
  12544. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  12545. /* Set ADC error code to none */
  12546. ADC_CLEAR_ERRORCODE(hadc);
  12547. 8005a56: 687b ldr r3, [r7, #4]
  12548. 8005a58: 2200 movs r2, #0
  12549. 8005a5a: 659a str r2, [r3, #88] @ 0x58
  12550. /* Initialize Lock */
  12551. hadc->Lock = HAL_UNLOCKED;
  12552. 8005a5c: 687b ldr r3, [r7, #4]
  12553. 8005a5e: 2200 movs r2, #0
  12554. 8005a60: f883 2050 strb.w r2, [r3, #80] @ 0x50
  12555. }
  12556. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  12557. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  12558. 8005a64: 687b ldr r3, [r7, #4]
  12559. 8005a66: 681b ldr r3, [r3, #0]
  12560. 8005a68: 4618 mov r0, r3
  12561. 8005a6a: f7ff ff19 bl 80058a0 <LL_ADC_IsDeepPowerDownEnabled>
  12562. 8005a6e: 4603 mov r3, r0
  12563. 8005a70: 2b00 cmp r3, #0
  12564. 8005a72: d004 beq.n 8005a7e <HAL_ADC_Init+0x56>
  12565. {
  12566. /* Disable ADC deep power down mode */
  12567. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  12568. 8005a74: 687b ldr r3, [r7, #4]
  12569. 8005a76: 681b ldr r3, [r3, #0]
  12570. 8005a78: 4618 mov r0, r3
  12571. 8005a7a: f7ff feff bl 800587c <LL_ADC_DisableDeepPowerDown>
  12572. /* System was in deep power down mode, calibration must
  12573. be relaunched or a previously saved calibration factor
  12574. re-applied once the ADC voltage regulator is enabled */
  12575. }
  12576. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12577. 8005a7e: 687b ldr r3, [r7, #4]
  12578. 8005a80: 681b ldr r3, [r3, #0]
  12579. 8005a82: 4618 mov r0, r3
  12580. 8005a84: f7ff ff34 bl 80058f0 <LL_ADC_IsInternalRegulatorEnabled>
  12581. 8005a88: 4603 mov r3, r0
  12582. 8005a8a: 2b00 cmp r3, #0
  12583. 8005a8c: d114 bne.n 8005ab8 <HAL_ADC_Init+0x90>
  12584. {
  12585. /* Enable ADC internal voltage regulator */
  12586. LL_ADC_EnableInternalRegulator(hadc->Instance);
  12587. 8005a8e: 687b ldr r3, [r7, #4]
  12588. 8005a90: 681b ldr r3, [r3, #0]
  12589. 8005a92: 4618 mov r0, r3
  12590. 8005a94: f7ff ff18 bl 80058c8 <LL_ADC_EnableInternalRegulator>
  12591. /* Note: Variable divided by 2 to compensate partially */
  12592. /* CPU processing cycles, scaling in us split to not */
  12593. /* exceed 32 bits register capacity and handle low frequency. */
  12594. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  12595. 8005a98: 4b87 ldr r3, [pc, #540] @ (8005cb8 <HAL_ADC_Init+0x290>)
  12596. 8005a9a: 681b ldr r3, [r3, #0]
  12597. 8005a9c: 099b lsrs r3, r3, #6
  12598. 8005a9e: 4a87 ldr r2, [pc, #540] @ (8005cbc <HAL_ADC_Init+0x294>)
  12599. 8005aa0: fba2 2303 umull r2, r3, r2, r3
  12600. 8005aa4: 099b lsrs r3, r3, #6
  12601. 8005aa6: 3301 adds r3, #1
  12602. 8005aa8: 60bb str r3, [r7, #8]
  12603. while (wait_loop_index != 0UL)
  12604. 8005aaa: e002 b.n 8005ab2 <HAL_ADC_Init+0x8a>
  12605. {
  12606. wait_loop_index--;
  12607. 8005aac: 68bb ldr r3, [r7, #8]
  12608. 8005aae: 3b01 subs r3, #1
  12609. 8005ab0: 60bb str r3, [r7, #8]
  12610. while (wait_loop_index != 0UL)
  12611. 8005ab2: 68bb ldr r3, [r7, #8]
  12612. 8005ab4: 2b00 cmp r3, #0
  12613. 8005ab6: d1f9 bne.n 8005aac <HAL_ADC_Init+0x84>
  12614. }
  12615. /* Verification that ADC voltage regulator is correctly enabled, whether */
  12616. /* or not ADC is coming from state reset (if any potential problem of */
  12617. /* clocking, voltage regulator would not be enabled). */
  12618. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12619. 8005ab8: 687b ldr r3, [r7, #4]
  12620. 8005aba: 681b ldr r3, [r3, #0]
  12621. 8005abc: 4618 mov r0, r3
  12622. 8005abe: f7ff ff17 bl 80058f0 <LL_ADC_IsInternalRegulatorEnabled>
  12623. 8005ac2: 4603 mov r3, r0
  12624. 8005ac4: 2b00 cmp r3, #0
  12625. 8005ac6: d10d bne.n 8005ae4 <HAL_ADC_Init+0xbc>
  12626. {
  12627. /* Update ADC state machine to error */
  12628. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  12629. 8005ac8: 687b ldr r3, [r7, #4]
  12630. 8005aca: 6d5b ldr r3, [r3, #84] @ 0x54
  12631. 8005acc: f043 0210 orr.w r2, r3, #16
  12632. 8005ad0: 687b ldr r3, [r7, #4]
  12633. 8005ad2: 655a str r2, [r3, #84] @ 0x54
  12634. /* Set ADC error code to ADC peripheral internal error */
  12635. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  12636. 8005ad4: 687b ldr r3, [r7, #4]
  12637. 8005ad6: 6d9b ldr r3, [r3, #88] @ 0x58
  12638. 8005ad8: f043 0201 orr.w r2, r3, #1
  12639. 8005adc: 687b ldr r3, [r7, #4]
  12640. 8005ade: 659a str r2, [r3, #88] @ 0x58
  12641. tmp_hal_status = HAL_ERROR;
  12642. 8005ae0: 2301 movs r3, #1
  12643. 8005ae2: 77fb strb r3, [r7, #31]
  12644. /* Configuration of ADC parameters if previous preliminary actions are */
  12645. /* correctly completed and if there is no conversion on going on regular */
  12646. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  12647. /* called to update a parameter on the fly). */
  12648. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  12649. 8005ae4: 687b ldr r3, [r7, #4]
  12650. 8005ae6: 681b ldr r3, [r3, #0]
  12651. 8005ae8: 4618 mov r0, r3
  12652. 8005aea: f7ff ff77 bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  12653. 8005aee: 6178 str r0, [r7, #20]
  12654. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  12655. 8005af0: 687b ldr r3, [r7, #4]
  12656. 8005af2: 6d5b ldr r3, [r3, #84] @ 0x54
  12657. 8005af4: f003 0310 and.w r3, r3, #16
  12658. 8005af8: 2b00 cmp r3, #0
  12659. 8005afa: f040 8129 bne.w 8005d50 <HAL_ADC_Init+0x328>
  12660. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  12661. 8005afe: 697b ldr r3, [r7, #20]
  12662. 8005b00: 2b00 cmp r3, #0
  12663. 8005b02: f040 8125 bne.w 8005d50 <HAL_ADC_Init+0x328>
  12664. )
  12665. {
  12666. /* Set ADC state */
  12667. ADC_STATE_CLR_SET(hadc->State,
  12668. 8005b06: 687b ldr r3, [r7, #4]
  12669. 8005b08: 6d5b ldr r3, [r3, #84] @ 0x54
  12670. 8005b0a: f423 7381 bic.w r3, r3, #258 @ 0x102
  12671. 8005b0e: f043 0202 orr.w r2, r3, #2
  12672. 8005b12: 687b ldr r3, [r7, #4]
  12673. 8005b14: 655a str r2, [r3, #84] @ 0x54
  12674. /* Configuration of common ADC parameters */
  12675. /* Parameters update conditioned to ADC state: */
  12676. /* Parameters that can be updated only when ADC is disabled: */
  12677. /* - clock configuration */
  12678. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  12679. 8005b16: 687b ldr r3, [r7, #4]
  12680. 8005b18: 681b ldr r3, [r3, #0]
  12681. 8005b1a: 4618 mov r0, r3
  12682. 8005b1c: f7ff ff24 bl 8005968 <LL_ADC_IsEnabled>
  12683. 8005b20: 4603 mov r3, r0
  12684. 8005b22: 2b00 cmp r3, #0
  12685. 8005b24: d136 bne.n 8005b94 <HAL_ADC_Init+0x16c>
  12686. {
  12687. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  12688. 8005b26: 687b ldr r3, [r7, #4]
  12689. 8005b28: 681b ldr r3, [r3, #0]
  12690. 8005b2a: 4a65 ldr r2, [pc, #404] @ (8005cc0 <HAL_ADC_Init+0x298>)
  12691. 8005b2c: 4293 cmp r3, r2
  12692. 8005b2e: d004 beq.n 8005b3a <HAL_ADC_Init+0x112>
  12693. 8005b30: 687b ldr r3, [r7, #4]
  12694. 8005b32: 681b ldr r3, [r3, #0]
  12695. 8005b34: 4a63 ldr r2, [pc, #396] @ (8005cc4 <HAL_ADC_Init+0x29c>)
  12696. 8005b36: 4293 cmp r3, r2
  12697. 8005b38: d10e bne.n 8005b58 <HAL_ADC_Init+0x130>
  12698. 8005b3a: 4861 ldr r0, [pc, #388] @ (8005cc0 <HAL_ADC_Init+0x298>)
  12699. 8005b3c: f7ff ff14 bl 8005968 <LL_ADC_IsEnabled>
  12700. 8005b40: 4604 mov r4, r0
  12701. 8005b42: 4860 ldr r0, [pc, #384] @ (8005cc4 <HAL_ADC_Init+0x29c>)
  12702. 8005b44: f7ff ff10 bl 8005968 <LL_ADC_IsEnabled>
  12703. 8005b48: 4603 mov r3, r0
  12704. 8005b4a: 4323 orrs r3, r4
  12705. 8005b4c: 2b00 cmp r3, #0
  12706. 8005b4e: bf0c ite eq
  12707. 8005b50: 2301 moveq r3, #1
  12708. 8005b52: 2300 movne r3, #0
  12709. 8005b54: b2db uxtb r3, r3
  12710. 8005b56: e008 b.n 8005b6a <HAL_ADC_Init+0x142>
  12711. 8005b58: 485b ldr r0, [pc, #364] @ (8005cc8 <HAL_ADC_Init+0x2a0>)
  12712. 8005b5a: f7ff ff05 bl 8005968 <LL_ADC_IsEnabled>
  12713. 8005b5e: 4603 mov r3, r0
  12714. 8005b60: 2b00 cmp r3, #0
  12715. 8005b62: bf0c ite eq
  12716. 8005b64: 2301 moveq r3, #1
  12717. 8005b66: 2300 movne r3, #0
  12718. 8005b68: b2db uxtb r3, r3
  12719. 8005b6a: 2b00 cmp r3, #0
  12720. 8005b6c: d012 beq.n 8005b94 <HAL_ADC_Init+0x16c>
  12721. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  12722. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  12723. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  12724. /* (set into HAL_ADC_ConfigChannel() or */
  12725. /* HAL_ADCEx_InjectedConfigChannel() ) */
  12726. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  12727. 8005b6e: 687b ldr r3, [r7, #4]
  12728. 8005b70: 681b ldr r3, [r3, #0]
  12729. 8005b72: 4a53 ldr r2, [pc, #332] @ (8005cc0 <HAL_ADC_Init+0x298>)
  12730. 8005b74: 4293 cmp r3, r2
  12731. 8005b76: d004 beq.n 8005b82 <HAL_ADC_Init+0x15a>
  12732. 8005b78: 687b ldr r3, [r7, #4]
  12733. 8005b7a: 681b ldr r3, [r3, #0]
  12734. 8005b7c: 4a51 ldr r2, [pc, #324] @ (8005cc4 <HAL_ADC_Init+0x29c>)
  12735. 8005b7e: 4293 cmp r3, r2
  12736. 8005b80: d101 bne.n 8005b86 <HAL_ADC_Init+0x15e>
  12737. 8005b82: 4a52 ldr r2, [pc, #328] @ (8005ccc <HAL_ADC_Init+0x2a4>)
  12738. 8005b84: e000 b.n 8005b88 <HAL_ADC_Init+0x160>
  12739. 8005b86: 4a52 ldr r2, [pc, #328] @ (8005cd0 <HAL_ADC_Init+0x2a8>)
  12740. 8005b88: 687b ldr r3, [r7, #4]
  12741. 8005b8a: 685b ldr r3, [r3, #4]
  12742. 8005b8c: 4619 mov r1, r3
  12743. 8005b8e: 4610 mov r0, r2
  12744. 8005b90: f7ff fd3c bl 800560c <LL_ADC_SetCommonClock>
  12745. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12746. }
  12747. #else
  12748. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  12749. 8005b94: f7ff fcf4 bl 8005580 <HAL_GetREVID>
  12750. 8005b98: 4603 mov r3, r0
  12751. 8005b9a: f241 0203 movw r2, #4099 @ 0x1003
  12752. 8005b9e: 4293 cmp r3, r2
  12753. 8005ba0: d914 bls.n 8005bcc <HAL_ADC_Init+0x1a4>
  12754. 8005ba2: 687b ldr r3, [r7, #4]
  12755. 8005ba4: 689b ldr r3, [r3, #8]
  12756. 8005ba6: 2b10 cmp r3, #16
  12757. 8005ba8: d110 bne.n 8005bcc <HAL_ADC_Init+0x1a4>
  12758. {
  12759. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  12760. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12761. 8005baa: 687b ldr r3, [r7, #4]
  12762. 8005bac: 7d5b ldrb r3, [r3, #21]
  12763. 8005bae: 035a lsls r2, r3, #13
  12764. hadc->Init.Overrun |
  12765. 8005bb0: 687b ldr r3, [r7, #4]
  12766. 8005bb2: 6b1b ldr r3, [r3, #48] @ 0x30
  12767. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12768. 8005bb4: 431a orrs r2, r3
  12769. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  12770. 8005bb6: 687b ldr r3, [r7, #4]
  12771. 8005bb8: 689b ldr r3, [r3, #8]
  12772. hadc->Init.Overrun |
  12773. 8005bba: 431a orrs r2, r3
  12774. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12775. 8005bbc: 687b ldr r3, [r7, #4]
  12776. 8005bbe: 7f1b ldrb r3, [r3, #28]
  12777. 8005bc0: 041b lsls r3, r3, #16
  12778. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  12779. 8005bc2: 4313 orrs r3, r2
  12780. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12781. 8005bc4: f043 030c orr.w r3, r3, #12
  12782. 8005bc8: 61bb str r3, [r7, #24]
  12783. 8005bca: e00d b.n 8005be8 <HAL_ADC_Init+0x1c0>
  12784. }
  12785. else
  12786. {
  12787. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12788. 8005bcc: 687b ldr r3, [r7, #4]
  12789. 8005bce: 7d5b ldrb r3, [r3, #21]
  12790. 8005bd0: 035a lsls r2, r3, #13
  12791. hadc->Init.Overrun |
  12792. 8005bd2: 687b ldr r3, [r7, #4]
  12793. 8005bd4: 6b1b ldr r3, [r3, #48] @ 0x30
  12794. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12795. 8005bd6: 431a orrs r2, r3
  12796. hadc->Init.Resolution |
  12797. 8005bd8: 687b ldr r3, [r7, #4]
  12798. 8005bda: 689b ldr r3, [r3, #8]
  12799. hadc->Init.Overrun |
  12800. 8005bdc: 431a orrs r2, r3
  12801. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12802. 8005bde: 687b ldr r3, [r7, #4]
  12803. 8005be0: 7f1b ldrb r3, [r3, #28]
  12804. 8005be2: 041b lsls r3, r3, #16
  12805. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12806. 8005be4: 4313 orrs r3, r2
  12807. 8005be6: 61bb str r3, [r7, #24]
  12808. }
  12809. #endif /* ADC_VER_V5_3 */
  12810. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  12811. 8005be8: 687b ldr r3, [r7, #4]
  12812. 8005bea: 7f1b ldrb r3, [r3, #28]
  12813. 8005bec: 2b01 cmp r3, #1
  12814. 8005bee: d106 bne.n 8005bfe <HAL_ADC_Init+0x1d6>
  12815. {
  12816. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  12817. 8005bf0: 687b ldr r3, [r7, #4]
  12818. 8005bf2: 6a1b ldr r3, [r3, #32]
  12819. 8005bf4: 3b01 subs r3, #1
  12820. 8005bf6: 045b lsls r3, r3, #17
  12821. 8005bf8: 69ba ldr r2, [r7, #24]
  12822. 8005bfa: 4313 orrs r3, r2
  12823. 8005bfc: 61bb str r3, [r7, #24]
  12824. /* Enable external trigger if trigger selection is different of software */
  12825. /* start. */
  12826. /* Note: This configuration keeps the hardware feature of parameter */
  12827. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  12828. /* software start. */
  12829. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  12830. 8005bfe: 687b ldr r3, [r7, #4]
  12831. 8005c00: 6a5b ldr r3, [r3, #36] @ 0x24
  12832. 8005c02: 2b00 cmp r3, #0
  12833. 8005c04: d009 beq.n 8005c1a <HAL_ADC_Init+0x1f2>
  12834. {
  12835. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  12836. 8005c06: 687b ldr r3, [r7, #4]
  12837. 8005c08: 6a5b ldr r3, [r3, #36] @ 0x24
  12838. 8005c0a: f403 7278 and.w r2, r3, #992 @ 0x3e0
  12839. | hadc->Init.ExternalTrigConvEdge
  12840. 8005c0e: 687b ldr r3, [r7, #4]
  12841. 8005c10: 6a9b ldr r3, [r3, #40] @ 0x28
  12842. 8005c12: 4313 orrs r3, r2
  12843. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  12844. 8005c14: 69ba ldr r2, [r7, #24]
  12845. 8005c16: 4313 orrs r3, r2
  12846. 8005c18: 61bb str r3, [r7, #24]
  12847. /* Update Configuration Register CFGR */
  12848. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  12849. }
  12850. #else
  12851. /* Update Configuration Register CFGR */
  12852. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  12853. 8005c1a: 687b ldr r3, [r7, #4]
  12854. 8005c1c: 681b ldr r3, [r3, #0]
  12855. 8005c1e: 68da ldr r2, [r3, #12]
  12856. 8005c20: 4b2c ldr r3, [pc, #176] @ (8005cd4 <HAL_ADC_Init+0x2ac>)
  12857. 8005c22: 4013 ands r3, r2
  12858. 8005c24: 687a ldr r2, [r7, #4]
  12859. 8005c26: 6812 ldr r2, [r2, #0]
  12860. 8005c28: 69b9 ldr r1, [r7, #24]
  12861. 8005c2a: 430b orrs r3, r1
  12862. 8005c2c: 60d3 str r3, [r2, #12]
  12863. /* Parameters that can be updated when ADC is disabled or enabled without */
  12864. /* conversion on going on regular and injected groups: */
  12865. /* - Conversion data management Init.ConversionDataManagement */
  12866. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  12867. /* - Oversampling parameters Init.Oversampling */
  12868. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  12869. 8005c2e: 687b ldr r3, [r7, #4]
  12870. 8005c30: 681b ldr r3, [r3, #0]
  12871. 8005c32: 4618 mov r0, r3
  12872. 8005c34: f7ff fed2 bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  12873. 8005c38: 6138 str r0, [r7, #16]
  12874. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  12875. 8005c3a: 687b ldr r3, [r7, #4]
  12876. 8005c3c: 681b ldr r3, [r3, #0]
  12877. 8005c3e: 4618 mov r0, r3
  12878. 8005c40: f7ff fedf bl 8005a02 <LL_ADC_INJ_IsConversionOngoing>
  12879. 8005c44: 60f8 str r0, [r7, #12]
  12880. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  12881. 8005c46: 693b ldr r3, [r7, #16]
  12882. 8005c48: 2b00 cmp r3, #0
  12883. 8005c4a: d15f bne.n 8005d0c <HAL_ADC_Init+0x2e4>
  12884. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  12885. 8005c4c: 68fb ldr r3, [r7, #12]
  12886. 8005c4e: 2b00 cmp r3, #0
  12887. 8005c50: d15c bne.n 8005d0c <HAL_ADC_Init+0x2e4>
  12888. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  12889. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  12890. }
  12891. #else
  12892. tmpCFGR = (
  12893. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  12894. 8005c52: 687b ldr r3, [r7, #4]
  12895. 8005c54: 7d1b ldrb r3, [r3, #20]
  12896. 8005c56: 039a lsls r2, r3, #14
  12897. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  12898. 8005c58: 687b ldr r3, [r7, #4]
  12899. 8005c5a: 6adb ldr r3, [r3, #44] @ 0x2c
  12900. tmpCFGR = (
  12901. 8005c5c: 4313 orrs r3, r2
  12902. 8005c5e: 61bb str r3, [r7, #24]
  12903. #endif
  12904. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  12905. 8005c60: 687b ldr r3, [r7, #4]
  12906. 8005c62: 681b ldr r3, [r3, #0]
  12907. 8005c64: 68da ldr r2, [r3, #12]
  12908. 8005c66: 4b1c ldr r3, [pc, #112] @ (8005cd8 <HAL_ADC_Init+0x2b0>)
  12909. 8005c68: 4013 ands r3, r2
  12910. 8005c6a: 687a ldr r2, [r7, #4]
  12911. 8005c6c: 6812 ldr r2, [r2, #0]
  12912. 8005c6e: 69b9 ldr r1, [r7, #24]
  12913. 8005c70: 430b orrs r3, r1
  12914. 8005c72: 60d3 str r3, [r2, #12]
  12915. if (hadc->Init.OversamplingMode == ENABLE)
  12916. 8005c74: 687b ldr r3, [r7, #4]
  12917. 8005c76: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  12918. 8005c7a: 2b01 cmp r3, #1
  12919. 8005c7c: d130 bne.n 8005ce0 <HAL_ADC_Init+0x2b8>
  12920. #endif
  12921. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  12922. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  12923. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  12924. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  12925. 8005c7e: 687b ldr r3, [r7, #4]
  12926. 8005c80: 6a5b ldr r3, [r3, #36] @ 0x24
  12927. 8005c82: 2b00 cmp r3, #0
  12928. /* - Oversampling Ratio */
  12929. /* - Right bit shift */
  12930. /* - Left bit shift */
  12931. /* - Triggered mode */
  12932. /* - Oversampling mode (continued/resumed) */
  12933. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  12934. 8005c84: 687b ldr r3, [r7, #4]
  12935. 8005c86: 681b ldr r3, [r3, #0]
  12936. 8005c88: 691a ldr r2, [r3, #16]
  12937. 8005c8a: 4b14 ldr r3, [pc, #80] @ (8005cdc <HAL_ADC_Init+0x2b4>)
  12938. 8005c8c: 4013 ands r3, r2
  12939. 8005c8e: 687a ldr r2, [r7, #4]
  12940. 8005c90: 6bd2 ldr r2, [r2, #60] @ 0x3c
  12941. 8005c92: 3a01 subs r2, #1
  12942. 8005c94: 0411 lsls r1, r2, #16
  12943. 8005c96: 687a ldr r2, [r7, #4]
  12944. 8005c98: 6c12 ldr r2, [r2, #64] @ 0x40
  12945. 8005c9a: 4311 orrs r1, r2
  12946. 8005c9c: 687a ldr r2, [r7, #4]
  12947. 8005c9e: 6c52 ldr r2, [r2, #68] @ 0x44
  12948. 8005ca0: 4311 orrs r1, r2
  12949. 8005ca2: 687a ldr r2, [r7, #4]
  12950. 8005ca4: 6c92 ldr r2, [r2, #72] @ 0x48
  12951. 8005ca6: 430a orrs r2, r1
  12952. 8005ca8: 431a orrs r2, r3
  12953. 8005caa: 687b ldr r3, [r7, #4]
  12954. 8005cac: 681b ldr r3, [r3, #0]
  12955. 8005cae: f042 0201 orr.w r2, r2, #1
  12956. 8005cb2: 611a str r2, [r3, #16]
  12957. 8005cb4: e01c b.n 8005cf0 <HAL_ADC_Init+0x2c8>
  12958. 8005cb6: bf00 nop
  12959. 8005cb8: 24000034 .word 0x24000034
  12960. 8005cbc: 053e2d63 .word 0x053e2d63
  12961. 8005cc0: 40022000 .word 0x40022000
  12962. 8005cc4: 40022100 .word 0x40022100
  12963. 8005cc8: 58026000 .word 0x58026000
  12964. 8005ccc: 40022300 .word 0x40022300
  12965. 8005cd0: 58026300 .word 0x58026300
  12966. 8005cd4: fff0c003 .word 0xfff0c003
  12967. 8005cd8: ffffbffc .word 0xffffbffc
  12968. 8005cdc: fc00f81e .word 0xfc00f81e
  12969. }
  12970. else
  12971. {
  12972. /* Disable ADC oversampling scope on ADC group regular */
  12973. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  12974. 8005ce0: 687b ldr r3, [r7, #4]
  12975. 8005ce2: 681b ldr r3, [r3, #0]
  12976. 8005ce4: 691a ldr r2, [r3, #16]
  12977. 8005ce6: 687b ldr r3, [r7, #4]
  12978. 8005ce8: 681b ldr r3, [r3, #0]
  12979. 8005cea: f022 0201 bic.w r2, r2, #1
  12980. 8005cee: 611a str r2, [r3, #16]
  12981. }
  12982. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  12983. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  12984. 8005cf0: 687b ldr r3, [r7, #4]
  12985. 8005cf2: 681b ldr r3, [r3, #0]
  12986. 8005cf4: 691b ldr r3, [r3, #16]
  12987. 8005cf6: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  12988. 8005cfa: 687b ldr r3, [r7, #4]
  12989. 8005cfc: 6b5a ldr r2, [r3, #52] @ 0x34
  12990. 8005cfe: 687b ldr r3, [r7, #4]
  12991. 8005d00: 681b ldr r3, [r3, #0]
  12992. 8005d02: 430a orrs r2, r1
  12993. 8005d04: 611a str r2, [r3, #16]
  12994. /* Configure the BOOST Mode */
  12995. ADC_ConfigureBoostMode(hadc);
  12996. }
  12997. #else
  12998. /* Configure the BOOST Mode */
  12999. ADC_ConfigureBoostMode(hadc);
  13000. 8005d06: 6878 ldr r0, [r7, #4]
  13001. 8005d08: f000 fde2 bl 80068d0 <ADC_ConfigureBoostMode>
  13002. /* Note: Scan mode is not present by hardware on this device, but */
  13003. /* emulated by software for alignment over all STM32 devices. */
  13004. /* - if scan mode is enabled, regular channels sequence length is set to */
  13005. /* parameter "NbrOfConversion". */
  13006. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  13007. 8005d0c: 687b ldr r3, [r7, #4]
  13008. 8005d0e: 68db ldr r3, [r3, #12]
  13009. 8005d10: 2b01 cmp r3, #1
  13010. 8005d12: d10c bne.n 8005d2e <HAL_ADC_Init+0x306>
  13011. {
  13012. /* Set number of ranks in regular group sequencer */
  13013. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  13014. 8005d14: 687b ldr r3, [r7, #4]
  13015. 8005d16: 681b ldr r3, [r3, #0]
  13016. 8005d18: 6b1b ldr r3, [r3, #48] @ 0x30
  13017. 8005d1a: f023 010f bic.w r1, r3, #15
  13018. 8005d1e: 687b ldr r3, [r7, #4]
  13019. 8005d20: 699b ldr r3, [r3, #24]
  13020. 8005d22: 1e5a subs r2, r3, #1
  13021. 8005d24: 687b ldr r3, [r7, #4]
  13022. 8005d26: 681b ldr r3, [r3, #0]
  13023. 8005d28: 430a orrs r2, r1
  13024. 8005d2a: 631a str r2, [r3, #48] @ 0x30
  13025. 8005d2c: e007 b.n 8005d3e <HAL_ADC_Init+0x316>
  13026. }
  13027. else
  13028. {
  13029. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  13030. 8005d2e: 687b ldr r3, [r7, #4]
  13031. 8005d30: 681b ldr r3, [r3, #0]
  13032. 8005d32: 6b1a ldr r2, [r3, #48] @ 0x30
  13033. 8005d34: 687b ldr r3, [r7, #4]
  13034. 8005d36: 681b ldr r3, [r3, #0]
  13035. 8005d38: f022 020f bic.w r2, r2, #15
  13036. 8005d3c: 631a str r2, [r3, #48] @ 0x30
  13037. }
  13038. /* Initialize the ADC state */
  13039. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  13040. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  13041. 8005d3e: 687b ldr r3, [r7, #4]
  13042. 8005d40: 6d5b ldr r3, [r3, #84] @ 0x54
  13043. 8005d42: f023 0303 bic.w r3, r3, #3
  13044. 8005d46: f043 0201 orr.w r2, r3, #1
  13045. 8005d4a: 687b ldr r3, [r7, #4]
  13046. 8005d4c: 655a str r2, [r3, #84] @ 0x54
  13047. 8005d4e: e007 b.n 8005d60 <HAL_ADC_Init+0x338>
  13048. }
  13049. else
  13050. {
  13051. /* Update ADC state machine to error */
  13052. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  13053. 8005d50: 687b ldr r3, [r7, #4]
  13054. 8005d52: 6d5b ldr r3, [r3, #84] @ 0x54
  13055. 8005d54: f043 0210 orr.w r2, r3, #16
  13056. 8005d58: 687b ldr r3, [r7, #4]
  13057. 8005d5a: 655a str r2, [r3, #84] @ 0x54
  13058. tmp_hal_status = HAL_ERROR;
  13059. 8005d5c: 2301 movs r3, #1
  13060. 8005d5e: 77fb strb r3, [r7, #31]
  13061. }
  13062. /* Return function status */
  13063. return tmp_hal_status;
  13064. 8005d60: 7ffb ldrb r3, [r7, #31]
  13065. }
  13066. 8005d62: 4618 mov r0, r3
  13067. 8005d64: 3724 adds r7, #36 @ 0x24
  13068. 8005d66: 46bd mov sp, r7
  13069. 8005d68: bd90 pop {r4, r7, pc}
  13070. 8005d6a: bf00 nop
  13071. 08005d6c <HAL_ADC_Start_DMA>:
  13072. * @param pData Destination Buffer address.
  13073. * @param Length Number of data to be transferred from ADC peripheral to memory
  13074. * @retval HAL status.
  13075. */
  13076. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  13077. {
  13078. 8005d6c: b580 push {r7, lr}
  13079. 8005d6e: b086 sub sp, #24
  13080. 8005d70: af00 add r7, sp, #0
  13081. 8005d72: 60f8 str r0, [r7, #12]
  13082. 8005d74: 60b9 str r1, [r7, #8]
  13083. 8005d76: 607a str r2, [r7, #4]
  13084. HAL_StatusTypeDef tmp_hal_status;
  13085. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  13086. 8005d78: 68fb ldr r3, [r7, #12]
  13087. 8005d7a: 681b ldr r3, [r3, #0]
  13088. 8005d7c: 4a55 ldr r2, [pc, #340] @ (8005ed4 <HAL_ADC_Start_DMA+0x168>)
  13089. 8005d7e: 4293 cmp r3, r2
  13090. 8005d80: d004 beq.n 8005d8c <HAL_ADC_Start_DMA+0x20>
  13091. 8005d82: 68fb ldr r3, [r7, #12]
  13092. 8005d84: 681b ldr r3, [r3, #0]
  13093. 8005d86: 4a54 ldr r2, [pc, #336] @ (8005ed8 <HAL_ADC_Start_DMA+0x16c>)
  13094. 8005d88: 4293 cmp r3, r2
  13095. 8005d8a: d101 bne.n 8005d90 <HAL_ADC_Start_DMA+0x24>
  13096. 8005d8c: 4b53 ldr r3, [pc, #332] @ (8005edc <HAL_ADC_Start_DMA+0x170>)
  13097. 8005d8e: e000 b.n 8005d92 <HAL_ADC_Start_DMA+0x26>
  13098. 8005d90: 4b53 ldr r3, [pc, #332] @ (8005ee0 <HAL_ADC_Start_DMA+0x174>)
  13099. 8005d92: 4618 mov r0, r3
  13100. 8005d94: f7ff fd64 bl 8005860 <LL_ADC_GetMultimode>
  13101. 8005d98: 6138 str r0, [r7, #16]
  13102. /* Check the parameters */
  13103. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  13104. /* Perform ADC enable and conversion start if no conversion is on going */
  13105. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  13106. 8005d9a: 68fb ldr r3, [r7, #12]
  13107. 8005d9c: 681b ldr r3, [r3, #0]
  13108. 8005d9e: 4618 mov r0, r3
  13109. 8005da0: f7ff fe1c bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  13110. 8005da4: 4603 mov r3, r0
  13111. 8005da6: 2b00 cmp r3, #0
  13112. 8005da8: f040 808c bne.w 8005ec4 <HAL_ADC_Start_DMA+0x158>
  13113. {
  13114. /* Process locked */
  13115. __HAL_LOCK(hadc);
  13116. 8005dac: 68fb ldr r3, [r7, #12]
  13117. 8005dae: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  13118. 8005db2: 2b01 cmp r3, #1
  13119. 8005db4: d101 bne.n 8005dba <HAL_ADC_Start_DMA+0x4e>
  13120. 8005db6: 2302 movs r3, #2
  13121. 8005db8: e087 b.n 8005eca <HAL_ADC_Start_DMA+0x15e>
  13122. 8005dba: 68fb ldr r3, [r7, #12]
  13123. 8005dbc: 2201 movs r2, #1
  13124. 8005dbe: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13125. /* Ensure that multimode regular conversions are not enabled. */
  13126. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  13127. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  13128. 8005dc2: 693b ldr r3, [r7, #16]
  13129. 8005dc4: 2b00 cmp r3, #0
  13130. 8005dc6: d005 beq.n 8005dd4 <HAL_ADC_Start_DMA+0x68>
  13131. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  13132. 8005dc8: 693b ldr r3, [r7, #16]
  13133. 8005dca: 2b05 cmp r3, #5
  13134. 8005dcc: d002 beq.n 8005dd4 <HAL_ADC_Start_DMA+0x68>
  13135. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  13136. 8005dce: 693b ldr r3, [r7, #16]
  13137. 8005dd0: 2b09 cmp r3, #9
  13138. 8005dd2: d170 bne.n 8005eb6 <HAL_ADC_Start_DMA+0x14a>
  13139. )
  13140. {
  13141. /* Enable the ADC peripheral */
  13142. tmp_hal_status = ADC_Enable(hadc);
  13143. 8005dd4: 68f8 ldr r0, [r7, #12]
  13144. 8005dd6: f000 fbfd bl 80065d4 <ADC_Enable>
  13145. 8005dda: 4603 mov r3, r0
  13146. 8005ddc: 75fb strb r3, [r7, #23]
  13147. /* Start conversion if ADC is effectively enabled */
  13148. if (tmp_hal_status == HAL_OK)
  13149. 8005dde: 7dfb ldrb r3, [r7, #23]
  13150. 8005de0: 2b00 cmp r3, #0
  13151. 8005de2: d163 bne.n 8005eac <HAL_ADC_Start_DMA+0x140>
  13152. {
  13153. /* Set ADC state */
  13154. /* - Clear state bitfield related to regular group conversion results */
  13155. /* - Set state bitfield related to regular operation */
  13156. ADC_STATE_CLR_SET(hadc->State,
  13157. 8005de4: 68fb ldr r3, [r7, #12]
  13158. 8005de6: 6d5a ldr r2, [r3, #84] @ 0x54
  13159. 8005de8: 4b3e ldr r3, [pc, #248] @ (8005ee4 <HAL_ADC_Start_DMA+0x178>)
  13160. 8005dea: 4013 ands r3, r2
  13161. 8005dec: f443 7280 orr.w r2, r3, #256 @ 0x100
  13162. 8005df0: 68fb ldr r3, [r7, #12]
  13163. 8005df2: 655a str r2, [r3, #84] @ 0x54
  13164. HAL_ADC_STATE_REG_BUSY);
  13165. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  13166. - if ADC instance is master or if multimode feature is not available
  13167. - if multimode setting is disabled (ADC instance slave in independent mode) */
  13168. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  13169. 8005df4: 68fb ldr r3, [r7, #12]
  13170. 8005df6: 681b ldr r3, [r3, #0]
  13171. 8005df8: 4a37 ldr r2, [pc, #220] @ (8005ed8 <HAL_ADC_Start_DMA+0x16c>)
  13172. 8005dfa: 4293 cmp r3, r2
  13173. 8005dfc: d002 beq.n 8005e04 <HAL_ADC_Start_DMA+0x98>
  13174. 8005dfe: 68fb ldr r3, [r7, #12]
  13175. 8005e00: 681b ldr r3, [r3, #0]
  13176. 8005e02: e000 b.n 8005e06 <HAL_ADC_Start_DMA+0x9a>
  13177. 8005e04: 4b33 ldr r3, [pc, #204] @ (8005ed4 <HAL_ADC_Start_DMA+0x168>)
  13178. 8005e06: 68fa ldr r2, [r7, #12]
  13179. 8005e08: 6812 ldr r2, [r2, #0]
  13180. 8005e0a: 4293 cmp r3, r2
  13181. 8005e0c: d002 beq.n 8005e14 <HAL_ADC_Start_DMA+0xa8>
  13182. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  13183. 8005e0e: 693b ldr r3, [r7, #16]
  13184. 8005e10: 2b00 cmp r3, #0
  13185. 8005e12: d105 bne.n 8005e20 <HAL_ADC_Start_DMA+0xb4>
  13186. )
  13187. {
  13188. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  13189. 8005e14: 68fb ldr r3, [r7, #12]
  13190. 8005e16: 6d5b ldr r3, [r3, #84] @ 0x54
  13191. 8005e18: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  13192. 8005e1c: 68fb ldr r3, [r7, #12]
  13193. 8005e1e: 655a str r2, [r3, #84] @ 0x54
  13194. }
  13195. /* Check if a conversion is on going on ADC group injected */
  13196. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  13197. 8005e20: 68fb ldr r3, [r7, #12]
  13198. 8005e22: 6d5b ldr r3, [r3, #84] @ 0x54
  13199. 8005e24: f403 5380 and.w r3, r3, #4096 @ 0x1000
  13200. 8005e28: 2b00 cmp r3, #0
  13201. 8005e2a: d006 beq.n 8005e3a <HAL_ADC_Start_DMA+0xce>
  13202. {
  13203. /* Reset ADC error code fields related to regular conversions only */
  13204. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  13205. 8005e2c: 68fb ldr r3, [r7, #12]
  13206. 8005e2e: 6d9b ldr r3, [r3, #88] @ 0x58
  13207. 8005e30: f023 0206 bic.w r2, r3, #6
  13208. 8005e34: 68fb ldr r3, [r7, #12]
  13209. 8005e36: 659a str r2, [r3, #88] @ 0x58
  13210. 8005e38: e002 b.n 8005e40 <HAL_ADC_Start_DMA+0xd4>
  13211. }
  13212. else
  13213. {
  13214. /* Reset all ADC error code fields */
  13215. ADC_CLEAR_ERRORCODE(hadc);
  13216. 8005e3a: 68fb ldr r3, [r7, #12]
  13217. 8005e3c: 2200 movs r2, #0
  13218. 8005e3e: 659a str r2, [r3, #88] @ 0x58
  13219. }
  13220. /* Set the DMA transfer complete callback */
  13221. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  13222. 8005e40: 68fb ldr r3, [r7, #12]
  13223. 8005e42: 6cdb ldr r3, [r3, #76] @ 0x4c
  13224. 8005e44: 4a28 ldr r2, [pc, #160] @ (8005ee8 <HAL_ADC_Start_DMA+0x17c>)
  13225. 8005e46: 63da str r2, [r3, #60] @ 0x3c
  13226. /* Set the DMA half transfer complete callback */
  13227. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  13228. 8005e48: 68fb ldr r3, [r7, #12]
  13229. 8005e4a: 6cdb ldr r3, [r3, #76] @ 0x4c
  13230. 8005e4c: 4a27 ldr r2, [pc, #156] @ (8005eec <HAL_ADC_Start_DMA+0x180>)
  13231. 8005e4e: 641a str r2, [r3, #64] @ 0x40
  13232. /* Set the DMA error callback */
  13233. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  13234. 8005e50: 68fb ldr r3, [r7, #12]
  13235. 8005e52: 6cdb ldr r3, [r3, #76] @ 0x4c
  13236. 8005e54: 4a26 ldr r2, [pc, #152] @ (8005ef0 <HAL_ADC_Start_DMA+0x184>)
  13237. 8005e56: 64da str r2, [r3, #76] @ 0x4c
  13238. /* ADC start (in case of SW start): */
  13239. /* Clear regular group conversion flag and overrun flag */
  13240. /* (To ensure of no unknown state from potential previous ADC */
  13241. /* operations) */
  13242. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  13243. 8005e58: 68fb ldr r3, [r7, #12]
  13244. 8005e5a: 681b ldr r3, [r3, #0]
  13245. 8005e5c: 221c movs r2, #28
  13246. 8005e5e: 601a str r2, [r3, #0]
  13247. /* Process unlocked */
  13248. /* Unlock before starting ADC conversions: in case of potential */
  13249. /* interruption, to let the process to ADC IRQ Handler. */
  13250. __HAL_UNLOCK(hadc);
  13251. 8005e60: 68fb ldr r3, [r7, #12]
  13252. 8005e62: 2200 movs r2, #0
  13253. 8005e64: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13254. /* With DMA, overrun event is always considered as an error even if
  13255. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  13256. ADC_IT_OVR is enabled. */
  13257. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  13258. 8005e68: 68fb ldr r3, [r7, #12]
  13259. 8005e6a: 681b ldr r3, [r3, #0]
  13260. 8005e6c: 685a ldr r2, [r3, #4]
  13261. 8005e6e: 68fb ldr r3, [r7, #12]
  13262. 8005e70: 681b ldr r3, [r3, #0]
  13263. 8005e72: f042 0210 orr.w r2, r2, #16
  13264. 8005e76: 605a str r2, [r3, #4]
  13265. {
  13266. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13267. }
  13268. #else
  13269. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  13270. 8005e78: 68fb ldr r3, [r7, #12]
  13271. 8005e7a: 681a ldr r2, [r3, #0]
  13272. 8005e7c: 68fb ldr r3, [r7, #12]
  13273. 8005e7e: 6adb ldr r3, [r3, #44] @ 0x2c
  13274. 8005e80: 4619 mov r1, r3
  13275. 8005e82: 4610 mov r0, r2
  13276. 8005e84: f7ff fc89 bl 800579a <LL_ADC_REG_SetDataTransferMode>
  13277. #endif
  13278. /* Start the DMA channel */
  13279. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  13280. 8005e88: 68fb ldr r3, [r7, #12]
  13281. 8005e8a: 6cd8 ldr r0, [r3, #76] @ 0x4c
  13282. 8005e8c: 68fb ldr r3, [r7, #12]
  13283. 8005e8e: 681b ldr r3, [r3, #0]
  13284. 8005e90: 3340 adds r3, #64 @ 0x40
  13285. 8005e92: 4619 mov r1, r3
  13286. 8005e94: 68ba ldr r2, [r7, #8]
  13287. 8005e96: 687b ldr r3, [r7, #4]
  13288. 8005e98: f002 fa5e bl 8008358 <HAL_DMA_Start_IT>
  13289. 8005e9c: 4603 mov r3, r0
  13290. 8005e9e: 75fb strb r3, [r7, #23]
  13291. /* Enable conversion of regular group. */
  13292. /* If software start has been selected, conversion starts immediately. */
  13293. /* If external trigger has been selected, conversion will start at next */
  13294. /* trigger event. */
  13295. /* Start ADC group regular conversion */
  13296. LL_ADC_REG_StartConversion(hadc->Instance);
  13297. 8005ea0: 68fb ldr r3, [r7, #12]
  13298. 8005ea2: 681b ldr r3, [r3, #0]
  13299. 8005ea4: 4618 mov r0, r3
  13300. 8005ea6: f7ff fd85 bl 80059b4 <LL_ADC_REG_StartConversion>
  13301. if (tmp_hal_status == HAL_OK)
  13302. 8005eaa: e00d b.n 8005ec8 <HAL_ADC_Start_DMA+0x15c>
  13303. }
  13304. else
  13305. {
  13306. /* Process unlocked */
  13307. __HAL_UNLOCK(hadc);
  13308. 8005eac: 68fb ldr r3, [r7, #12]
  13309. 8005eae: 2200 movs r2, #0
  13310. 8005eb0: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13311. if (tmp_hal_status == HAL_OK)
  13312. 8005eb4: e008 b.n 8005ec8 <HAL_ADC_Start_DMA+0x15c>
  13313. }
  13314. }
  13315. else
  13316. {
  13317. tmp_hal_status = HAL_ERROR;
  13318. 8005eb6: 2301 movs r3, #1
  13319. 8005eb8: 75fb strb r3, [r7, #23]
  13320. /* Process unlocked */
  13321. __HAL_UNLOCK(hadc);
  13322. 8005eba: 68fb ldr r3, [r7, #12]
  13323. 8005ebc: 2200 movs r2, #0
  13324. 8005ebe: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13325. 8005ec2: e001 b.n 8005ec8 <HAL_ADC_Start_DMA+0x15c>
  13326. }
  13327. }
  13328. else
  13329. {
  13330. tmp_hal_status = HAL_BUSY;
  13331. 8005ec4: 2302 movs r3, #2
  13332. 8005ec6: 75fb strb r3, [r7, #23]
  13333. }
  13334. /* Return function status */
  13335. return tmp_hal_status;
  13336. 8005ec8: 7dfb ldrb r3, [r7, #23]
  13337. }
  13338. 8005eca: 4618 mov r0, r3
  13339. 8005ecc: 3718 adds r7, #24
  13340. 8005ece: 46bd mov sp, r7
  13341. 8005ed0: bd80 pop {r7, pc}
  13342. 8005ed2: bf00 nop
  13343. 8005ed4: 40022000 .word 0x40022000
  13344. 8005ed8: 40022100 .word 0x40022100
  13345. 8005edc: 40022300 .word 0x40022300
  13346. 8005ee0: 58026300 .word 0x58026300
  13347. 8005ee4: fffff0fe .word 0xfffff0fe
  13348. 8005ee8: 080067a7 .word 0x080067a7
  13349. 8005eec: 0800687f .word 0x0800687f
  13350. 8005ef0: 0800689b .word 0x0800689b
  13351. 08005ef4 <HAL_ADC_ConvHalfCpltCallback>:
  13352. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  13353. * @param hadc ADC handle
  13354. * @retval None
  13355. */
  13356. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  13357. {
  13358. 8005ef4: b480 push {r7}
  13359. 8005ef6: b083 sub sp, #12
  13360. 8005ef8: af00 add r7, sp, #0
  13361. 8005efa: 6078 str r0, [r7, #4]
  13362. UNUSED(hadc);
  13363. /* NOTE : This function should not be modified. When the callback is needed,
  13364. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  13365. */
  13366. }
  13367. 8005efc: bf00 nop
  13368. 8005efe: 370c adds r7, #12
  13369. 8005f00: 46bd mov sp, r7
  13370. 8005f02: f85d 7b04 ldr.w r7, [sp], #4
  13371. 8005f06: 4770 bx lr
  13372. 08005f08 <HAL_ADC_ErrorCallback>:
  13373. * (this function is also clearing overrun flag)
  13374. * @param hadc ADC handle
  13375. * @retval None
  13376. */
  13377. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  13378. {
  13379. 8005f08: b480 push {r7}
  13380. 8005f0a: b083 sub sp, #12
  13381. 8005f0c: af00 add r7, sp, #0
  13382. 8005f0e: 6078 str r0, [r7, #4]
  13383. UNUSED(hadc);
  13384. /* NOTE : This function should not be modified. When the callback is needed,
  13385. function HAL_ADC_ErrorCallback must be implemented in the user file.
  13386. */
  13387. }
  13388. 8005f10: bf00 nop
  13389. 8005f12: 370c adds r7, #12
  13390. 8005f14: 46bd mov sp, r7
  13391. 8005f16: f85d 7b04 ldr.w r7, [sp], #4
  13392. 8005f1a: 4770 bx lr
  13393. 08005f1c <HAL_ADC_ConfigChannel>:
  13394. * @param hadc ADC handle
  13395. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  13396. * @retval HAL status
  13397. */
  13398. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  13399. {
  13400. 8005f1c: b590 push {r4, r7, lr}
  13401. 8005f1e: b0a1 sub sp, #132 @ 0x84
  13402. 8005f20: af00 add r7, sp, #0
  13403. 8005f22: 6078 str r0, [r7, #4]
  13404. 8005f24: 6039 str r1, [r7, #0]
  13405. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13406. 8005f26: 2300 movs r3, #0
  13407. 8005f28: f887 307f strb.w r3, [r7, #127] @ 0x7f
  13408. uint32_t tmpOffsetShifted;
  13409. uint32_t tmp_config_internal_channel;
  13410. __IO uint32_t wait_loop_index = 0;
  13411. 8005f2c: 2300 movs r3, #0
  13412. 8005f2e: 60bb str r3, [r7, #8]
  13413. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  13414. ignored (considered as reset) */
  13415. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  13416. /* Verification of channel number */
  13417. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  13418. 8005f30: 683b ldr r3, [r7, #0]
  13419. 8005f32: 68db ldr r3, [r3, #12]
  13420. 8005f34: 4a65 ldr r2, [pc, #404] @ (80060cc <HAL_ADC_ConfigChannel+0x1b0>)
  13421. 8005f36: 4293 cmp r3, r2
  13422. }
  13423. #endif
  13424. }
  13425. /* Process locked */
  13426. __HAL_LOCK(hadc);
  13427. 8005f38: 687b ldr r3, [r7, #4]
  13428. 8005f3a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  13429. 8005f3e: 2b01 cmp r3, #1
  13430. 8005f40: d101 bne.n 8005f46 <HAL_ADC_ConfigChannel+0x2a>
  13431. 8005f42: 2302 movs r3, #2
  13432. 8005f44: e32e b.n 80065a4 <HAL_ADC_ConfigChannel+0x688>
  13433. 8005f46: 687b ldr r3, [r7, #4]
  13434. 8005f48: 2201 movs r2, #1
  13435. 8005f4a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13436. /* Parameters update conditioned to ADC state: */
  13437. /* Parameters that can be updated when ADC is disabled or enabled without */
  13438. /* conversion on going on regular group: */
  13439. /* - Channel number */
  13440. /* - Channel rank */
  13441. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  13442. 8005f4e: 687b ldr r3, [r7, #4]
  13443. 8005f50: 681b ldr r3, [r3, #0]
  13444. 8005f52: 4618 mov r0, r3
  13445. 8005f54: f7ff fd42 bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  13446. 8005f58: 4603 mov r3, r0
  13447. 8005f5a: 2b00 cmp r3, #0
  13448. 8005f5c: f040 8313 bne.w 8006586 <HAL_ADC_ConfigChannel+0x66a>
  13449. {
  13450. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  13451. 8005f60: 683b ldr r3, [r7, #0]
  13452. 8005f62: 681b ldr r3, [r3, #0]
  13453. 8005f64: 2b00 cmp r3, #0
  13454. 8005f66: db2c blt.n 8005fc2 <HAL_ADC_ConfigChannel+0xa6>
  13455. /* ADC channels preselection */
  13456. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13457. }
  13458. #else
  13459. /* ADC channels preselection */
  13460. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13461. 8005f68: 683b ldr r3, [r7, #0]
  13462. 8005f6a: 681b ldr r3, [r3, #0]
  13463. 8005f6c: f3c3 0313 ubfx r3, r3, #0, #20
  13464. 8005f70: 2b00 cmp r3, #0
  13465. 8005f72: d108 bne.n 8005f86 <HAL_ADC_ConfigChannel+0x6a>
  13466. 8005f74: 683b ldr r3, [r7, #0]
  13467. 8005f76: 681b ldr r3, [r3, #0]
  13468. 8005f78: 0e9b lsrs r3, r3, #26
  13469. 8005f7a: f003 031f and.w r3, r3, #31
  13470. 8005f7e: 2201 movs r2, #1
  13471. 8005f80: fa02 f303 lsl.w r3, r2, r3
  13472. 8005f84: e016 b.n 8005fb4 <HAL_ADC_ConfigChannel+0x98>
  13473. 8005f86: 683b ldr r3, [r7, #0]
  13474. 8005f88: 681b ldr r3, [r3, #0]
  13475. 8005f8a: 667b str r3, [r7, #100] @ 0x64
  13476. uint32_t result;
  13477. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  13478. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  13479. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  13480. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13481. 8005f8c: 6e7b ldr r3, [r7, #100] @ 0x64
  13482. 8005f8e: fa93 f3a3 rbit r3, r3
  13483. 8005f92: 663b str r3, [r7, #96] @ 0x60
  13484. result |= value & 1U;
  13485. s--;
  13486. }
  13487. result <<= s; /* shift when v's highest bits are zero */
  13488. #endif
  13489. return result;
  13490. 8005f94: 6e3b ldr r3, [r7, #96] @ 0x60
  13491. 8005f96: 66bb str r3, [r7, #104] @ 0x68
  13492. optimisations using the logic "value was passed to __builtin_clz, so it
  13493. is non-zero".
  13494. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  13495. single CLZ instruction.
  13496. */
  13497. if (value == 0U)
  13498. 8005f98: 6ebb ldr r3, [r7, #104] @ 0x68
  13499. 8005f9a: 2b00 cmp r3, #0
  13500. 8005f9c: d101 bne.n 8005fa2 <HAL_ADC_ConfigChannel+0x86>
  13501. {
  13502. return 32U;
  13503. 8005f9e: 2320 movs r3, #32
  13504. 8005fa0: e003 b.n 8005faa <HAL_ADC_ConfigChannel+0x8e>
  13505. }
  13506. return __builtin_clz(value);
  13507. 8005fa2: 6ebb ldr r3, [r7, #104] @ 0x68
  13508. 8005fa4: fab3 f383 clz r3, r3
  13509. 8005fa8: b2db uxtb r3, r3
  13510. 8005faa: f003 031f and.w r3, r3, #31
  13511. 8005fae: 2201 movs r2, #1
  13512. 8005fb0: fa02 f303 lsl.w r3, r2, r3
  13513. 8005fb4: 687a ldr r2, [r7, #4]
  13514. 8005fb6: 6812 ldr r2, [r2, #0]
  13515. 8005fb8: 69d1 ldr r1, [r2, #28]
  13516. 8005fba: 687a ldr r2, [r7, #4]
  13517. 8005fbc: 6812 ldr r2, [r2, #0]
  13518. 8005fbe: 430b orrs r3, r1
  13519. 8005fc0: 61d3 str r3, [r2, #28]
  13520. #endif /* ADC_VER_V5_V90 */
  13521. }
  13522. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  13523. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  13524. 8005fc2: 687b ldr r3, [r7, #4]
  13525. 8005fc4: 6818 ldr r0, [r3, #0]
  13526. 8005fc6: 683b ldr r3, [r7, #0]
  13527. 8005fc8: 6859 ldr r1, [r3, #4]
  13528. 8005fca: 683b ldr r3, [r7, #0]
  13529. 8005fcc: 681b ldr r3, [r3, #0]
  13530. 8005fce: 461a mov r2, r3
  13531. 8005fd0: f7ff fbb7 bl 8005742 <LL_ADC_REG_SetSequencerRanks>
  13532. /* Parameters update conditioned to ADC state: */
  13533. /* Parameters that can be updated when ADC is disabled or enabled without */
  13534. /* conversion on going on regular group: */
  13535. /* - Channel sampling time */
  13536. /* - Channel offset */
  13537. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13538. 8005fd4: 687b ldr r3, [r7, #4]
  13539. 8005fd6: 681b ldr r3, [r3, #0]
  13540. 8005fd8: 4618 mov r0, r3
  13541. 8005fda: f7ff fcff bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  13542. 8005fde: 67b8 str r0, [r7, #120] @ 0x78
  13543. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13544. 8005fe0: 687b ldr r3, [r7, #4]
  13545. 8005fe2: 681b ldr r3, [r3, #0]
  13546. 8005fe4: 4618 mov r0, r3
  13547. 8005fe6: f7ff fd0c bl 8005a02 <LL_ADC_INJ_IsConversionOngoing>
  13548. 8005fea: 6778 str r0, [r7, #116] @ 0x74
  13549. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13550. 8005fec: 6fbb ldr r3, [r7, #120] @ 0x78
  13551. 8005fee: 2b00 cmp r3, #0
  13552. 8005ff0: f040 80b8 bne.w 8006164 <HAL_ADC_ConfigChannel+0x248>
  13553. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13554. 8005ff4: 6f7b ldr r3, [r7, #116] @ 0x74
  13555. 8005ff6: 2b00 cmp r3, #0
  13556. 8005ff8: f040 80b4 bne.w 8006164 <HAL_ADC_ConfigChannel+0x248>
  13557. )
  13558. {
  13559. /* Set sampling time of the selected ADC channel */
  13560. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  13561. 8005ffc: 687b ldr r3, [r7, #4]
  13562. 8005ffe: 6818 ldr r0, [r3, #0]
  13563. 8006000: 683b ldr r3, [r7, #0]
  13564. 8006002: 6819 ldr r1, [r3, #0]
  13565. 8006004: 683b ldr r3, [r7, #0]
  13566. 8006006: 689b ldr r3, [r3, #8]
  13567. 8006008: 461a mov r2, r3
  13568. 800600a: f7ff fbd9 bl 80057c0 <LL_ADC_SetChannelSamplingTime>
  13569. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13570. }
  13571. else
  13572. #endif /* ADC_VER_V5_V90 */
  13573. {
  13574. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13575. 800600e: 4b30 ldr r3, [pc, #192] @ (80060d0 <HAL_ADC_ConfigChannel+0x1b4>)
  13576. 8006010: 681b ldr r3, [r3, #0]
  13577. 8006012: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  13578. 8006016: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13579. 800601a: d10b bne.n 8006034 <HAL_ADC_ConfigChannel+0x118>
  13580. 800601c: 683b ldr r3, [r7, #0]
  13581. 800601e: 695a ldr r2, [r3, #20]
  13582. 8006020: 687b ldr r3, [r7, #4]
  13583. 8006022: 681b ldr r3, [r3, #0]
  13584. 8006024: 68db ldr r3, [r3, #12]
  13585. 8006026: 089b lsrs r3, r3, #2
  13586. 8006028: f003 0307 and.w r3, r3, #7
  13587. 800602c: 005b lsls r3, r3, #1
  13588. 800602e: fa02 f303 lsl.w r3, r2, r3
  13589. 8006032: e01d b.n 8006070 <HAL_ADC_ConfigChannel+0x154>
  13590. 8006034: 687b ldr r3, [r7, #4]
  13591. 8006036: 681b ldr r3, [r3, #0]
  13592. 8006038: 68db ldr r3, [r3, #12]
  13593. 800603a: f003 0310 and.w r3, r3, #16
  13594. 800603e: 2b00 cmp r3, #0
  13595. 8006040: d10b bne.n 800605a <HAL_ADC_ConfigChannel+0x13e>
  13596. 8006042: 683b ldr r3, [r7, #0]
  13597. 8006044: 695a ldr r2, [r3, #20]
  13598. 8006046: 687b ldr r3, [r7, #4]
  13599. 8006048: 681b ldr r3, [r3, #0]
  13600. 800604a: 68db ldr r3, [r3, #12]
  13601. 800604c: 089b lsrs r3, r3, #2
  13602. 800604e: f003 0307 and.w r3, r3, #7
  13603. 8006052: 005b lsls r3, r3, #1
  13604. 8006054: fa02 f303 lsl.w r3, r2, r3
  13605. 8006058: e00a b.n 8006070 <HAL_ADC_ConfigChannel+0x154>
  13606. 800605a: 683b ldr r3, [r7, #0]
  13607. 800605c: 695a ldr r2, [r3, #20]
  13608. 800605e: 687b ldr r3, [r7, #4]
  13609. 8006060: 681b ldr r3, [r3, #0]
  13610. 8006062: 68db ldr r3, [r3, #12]
  13611. 8006064: 089b lsrs r3, r3, #2
  13612. 8006066: f003 0304 and.w r3, r3, #4
  13613. 800606a: 005b lsls r3, r3, #1
  13614. 800606c: fa02 f303 lsl.w r3, r2, r3
  13615. 8006070: 673b str r3, [r7, #112] @ 0x70
  13616. }
  13617. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  13618. 8006072: 683b ldr r3, [r7, #0]
  13619. 8006074: 691b ldr r3, [r3, #16]
  13620. 8006076: 2b04 cmp r3, #4
  13621. 8006078: d02c beq.n 80060d4 <HAL_ADC_ConfigChannel+0x1b8>
  13622. {
  13623. /* Set ADC selected offset number */
  13624. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  13625. 800607a: 687b ldr r3, [r7, #4]
  13626. 800607c: 6818 ldr r0, [r3, #0]
  13627. 800607e: 683b ldr r3, [r7, #0]
  13628. 8006080: 6919 ldr r1, [r3, #16]
  13629. 8006082: 683b ldr r3, [r7, #0]
  13630. 8006084: 681a ldr r2, [r3, #0]
  13631. 8006086: 6f3b ldr r3, [r7, #112] @ 0x70
  13632. 8006088: f7ff faf4 bl 8005674 <LL_ADC_SetOffset>
  13633. else
  13634. #endif /* ADC_VER_V5_V90 */
  13635. {
  13636. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  13637. /* Set ADC selected offset signed saturation */
  13638. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  13639. 800608c: 687b ldr r3, [r7, #4]
  13640. 800608e: 6818 ldr r0, [r3, #0]
  13641. 8006090: 683b ldr r3, [r7, #0]
  13642. 8006092: 6919 ldr r1, [r3, #16]
  13643. 8006094: 683b ldr r3, [r7, #0]
  13644. 8006096: 7e5b ldrb r3, [r3, #25]
  13645. 8006098: 2b01 cmp r3, #1
  13646. 800609a: d102 bne.n 80060a2 <HAL_ADC_ConfigChannel+0x186>
  13647. 800609c: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  13648. 80060a0: e000 b.n 80060a4 <HAL_ADC_ConfigChannel+0x188>
  13649. 80060a2: 2300 movs r3, #0
  13650. 80060a4: 461a mov r2, r3
  13651. 80060a6: f7ff fb1e bl 80056e6 <LL_ADC_SetOffsetSignedSaturation>
  13652. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  13653. /* Set ADC selected offset right shift */
  13654. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  13655. 80060aa: 687b ldr r3, [r7, #4]
  13656. 80060ac: 6818 ldr r0, [r3, #0]
  13657. 80060ae: 683b ldr r3, [r7, #0]
  13658. 80060b0: 6919 ldr r1, [r3, #16]
  13659. 80060b2: 683b ldr r3, [r7, #0]
  13660. 80060b4: 7e1b ldrb r3, [r3, #24]
  13661. 80060b6: 2b01 cmp r3, #1
  13662. 80060b8: d102 bne.n 80060c0 <HAL_ADC_ConfigChannel+0x1a4>
  13663. 80060ba: f44f 6300 mov.w r3, #2048 @ 0x800
  13664. 80060be: e000 b.n 80060c2 <HAL_ADC_ConfigChannel+0x1a6>
  13665. 80060c0: 2300 movs r3, #0
  13666. 80060c2: 461a mov r2, r3
  13667. 80060c4: f7ff faf6 bl 80056b4 <LL_ADC_SetDataRightShift>
  13668. 80060c8: e04c b.n 8006164 <HAL_ADC_ConfigChannel+0x248>
  13669. 80060ca: bf00 nop
  13670. 80060cc: 47ff0000 .word 0x47ff0000
  13671. 80060d0: 5c001000 .word 0x5c001000
  13672. }
  13673. }
  13674. else
  13675. #endif /* ADC_VER_V5_V90 */
  13676. {
  13677. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13678. 80060d4: 687b ldr r3, [r7, #4]
  13679. 80060d6: 681b ldr r3, [r3, #0]
  13680. 80060d8: 6e1b ldr r3, [r3, #96] @ 0x60
  13681. 80060da: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13682. 80060de: 683b ldr r3, [r7, #0]
  13683. 80060e0: 681b ldr r3, [r3, #0]
  13684. 80060e2: 069b lsls r3, r3, #26
  13685. 80060e4: 429a cmp r2, r3
  13686. 80060e6: d107 bne.n 80060f8 <HAL_ADC_ConfigChannel+0x1dc>
  13687. {
  13688. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  13689. 80060e8: 687b ldr r3, [r7, #4]
  13690. 80060ea: 681b ldr r3, [r3, #0]
  13691. 80060ec: 6e1a ldr r2, [r3, #96] @ 0x60
  13692. 80060ee: 687b ldr r3, [r7, #4]
  13693. 80060f0: 681b ldr r3, [r3, #0]
  13694. 80060f2: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13695. 80060f6: 661a str r2, [r3, #96] @ 0x60
  13696. }
  13697. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13698. 80060f8: 687b ldr r3, [r7, #4]
  13699. 80060fa: 681b ldr r3, [r3, #0]
  13700. 80060fc: 6e5b ldr r3, [r3, #100] @ 0x64
  13701. 80060fe: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13702. 8006102: 683b ldr r3, [r7, #0]
  13703. 8006104: 681b ldr r3, [r3, #0]
  13704. 8006106: 069b lsls r3, r3, #26
  13705. 8006108: 429a cmp r2, r3
  13706. 800610a: d107 bne.n 800611c <HAL_ADC_ConfigChannel+0x200>
  13707. {
  13708. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  13709. 800610c: 687b ldr r3, [r7, #4]
  13710. 800610e: 681b ldr r3, [r3, #0]
  13711. 8006110: 6e5a ldr r2, [r3, #100] @ 0x64
  13712. 8006112: 687b ldr r3, [r7, #4]
  13713. 8006114: 681b ldr r3, [r3, #0]
  13714. 8006116: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13715. 800611a: 665a str r2, [r3, #100] @ 0x64
  13716. }
  13717. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13718. 800611c: 687b ldr r3, [r7, #4]
  13719. 800611e: 681b ldr r3, [r3, #0]
  13720. 8006120: 6e9b ldr r3, [r3, #104] @ 0x68
  13721. 8006122: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13722. 8006126: 683b ldr r3, [r7, #0]
  13723. 8006128: 681b ldr r3, [r3, #0]
  13724. 800612a: 069b lsls r3, r3, #26
  13725. 800612c: 429a cmp r2, r3
  13726. 800612e: d107 bne.n 8006140 <HAL_ADC_ConfigChannel+0x224>
  13727. {
  13728. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  13729. 8006130: 687b ldr r3, [r7, #4]
  13730. 8006132: 681b ldr r3, [r3, #0]
  13731. 8006134: 6e9a ldr r2, [r3, #104] @ 0x68
  13732. 8006136: 687b ldr r3, [r7, #4]
  13733. 8006138: 681b ldr r3, [r3, #0]
  13734. 800613a: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13735. 800613e: 669a str r2, [r3, #104] @ 0x68
  13736. }
  13737. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13738. 8006140: 687b ldr r3, [r7, #4]
  13739. 8006142: 681b ldr r3, [r3, #0]
  13740. 8006144: 6edb ldr r3, [r3, #108] @ 0x6c
  13741. 8006146: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13742. 800614a: 683b ldr r3, [r7, #0]
  13743. 800614c: 681b ldr r3, [r3, #0]
  13744. 800614e: 069b lsls r3, r3, #26
  13745. 8006150: 429a cmp r2, r3
  13746. 8006152: d107 bne.n 8006164 <HAL_ADC_ConfigChannel+0x248>
  13747. {
  13748. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  13749. 8006154: 687b ldr r3, [r7, #4]
  13750. 8006156: 681b ldr r3, [r3, #0]
  13751. 8006158: 6eda ldr r2, [r3, #108] @ 0x6c
  13752. 800615a: 687b ldr r3, [r7, #4]
  13753. 800615c: 681b ldr r3, [r3, #0]
  13754. 800615e: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13755. 8006162: 66da str r2, [r3, #108] @ 0x6c
  13756. /* Parameters update conditioned to ADC state: */
  13757. /* Parameters that can be updated only when ADC is disabled: */
  13758. /* - Single or differential mode */
  13759. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  13760. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13761. 8006164: 687b ldr r3, [r7, #4]
  13762. 8006166: 681b ldr r3, [r3, #0]
  13763. 8006168: 4618 mov r0, r3
  13764. 800616a: f7ff fbfd bl 8005968 <LL_ADC_IsEnabled>
  13765. 800616e: 4603 mov r3, r0
  13766. 8006170: 2b00 cmp r3, #0
  13767. 8006172: f040 8211 bne.w 8006598 <HAL_ADC_ConfigChannel+0x67c>
  13768. {
  13769. /* Set mode single-ended or differential input of the selected ADC channel */
  13770. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  13771. 8006176: 687b ldr r3, [r7, #4]
  13772. 8006178: 6818 ldr r0, [r3, #0]
  13773. 800617a: 683b ldr r3, [r7, #0]
  13774. 800617c: 6819 ldr r1, [r3, #0]
  13775. 800617e: 683b ldr r3, [r7, #0]
  13776. 8006180: 68db ldr r3, [r3, #12]
  13777. 8006182: 461a mov r2, r3
  13778. 8006184: f7ff fb48 bl 8005818 <LL_ADC_SetChannelSingleDiff>
  13779. /* Configuration of differential mode */
  13780. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  13781. 8006188: 683b ldr r3, [r7, #0]
  13782. 800618a: 68db ldr r3, [r3, #12]
  13783. 800618c: 4aa1 ldr r2, [pc, #644] @ (8006414 <HAL_ADC_ConfigChannel+0x4f8>)
  13784. 800618e: 4293 cmp r3, r2
  13785. 8006190: f040 812e bne.w 80063f0 <HAL_ADC_ConfigChannel+0x4d4>
  13786. {
  13787. /* Set sampling time of the selected ADC channel */
  13788. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  13789. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13790. 8006194: 687b ldr r3, [r7, #4]
  13791. 8006196: 6818 ldr r0, [r3, #0]
  13792. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13793. 8006198: 683b ldr r3, [r7, #0]
  13794. 800619a: 681b ldr r3, [r3, #0]
  13795. 800619c: f3c3 0313 ubfx r3, r3, #0, #20
  13796. 80061a0: 2b00 cmp r3, #0
  13797. 80061a2: d10b bne.n 80061bc <HAL_ADC_ConfigChannel+0x2a0>
  13798. 80061a4: 683b ldr r3, [r7, #0]
  13799. 80061a6: 681b ldr r3, [r3, #0]
  13800. 80061a8: 0e9b lsrs r3, r3, #26
  13801. 80061aa: 3301 adds r3, #1
  13802. 80061ac: f003 031f and.w r3, r3, #31
  13803. 80061b0: 2b09 cmp r3, #9
  13804. 80061b2: bf94 ite ls
  13805. 80061b4: 2301 movls r3, #1
  13806. 80061b6: 2300 movhi r3, #0
  13807. 80061b8: b2db uxtb r3, r3
  13808. 80061ba: e019 b.n 80061f0 <HAL_ADC_ConfigChannel+0x2d4>
  13809. 80061bc: 683b ldr r3, [r7, #0]
  13810. 80061be: 681b ldr r3, [r3, #0]
  13811. 80061c0: 65bb str r3, [r7, #88] @ 0x58
  13812. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13813. 80061c2: 6dbb ldr r3, [r7, #88] @ 0x58
  13814. 80061c4: fa93 f3a3 rbit r3, r3
  13815. 80061c8: 657b str r3, [r7, #84] @ 0x54
  13816. return result;
  13817. 80061ca: 6d7b ldr r3, [r7, #84] @ 0x54
  13818. 80061cc: 65fb str r3, [r7, #92] @ 0x5c
  13819. if (value == 0U)
  13820. 80061ce: 6dfb ldr r3, [r7, #92] @ 0x5c
  13821. 80061d0: 2b00 cmp r3, #0
  13822. 80061d2: d101 bne.n 80061d8 <HAL_ADC_ConfigChannel+0x2bc>
  13823. return 32U;
  13824. 80061d4: 2320 movs r3, #32
  13825. 80061d6: e003 b.n 80061e0 <HAL_ADC_ConfigChannel+0x2c4>
  13826. return __builtin_clz(value);
  13827. 80061d8: 6dfb ldr r3, [r7, #92] @ 0x5c
  13828. 80061da: fab3 f383 clz r3, r3
  13829. 80061de: b2db uxtb r3, r3
  13830. 80061e0: 3301 adds r3, #1
  13831. 80061e2: f003 031f and.w r3, r3, #31
  13832. 80061e6: 2b09 cmp r3, #9
  13833. 80061e8: bf94 ite ls
  13834. 80061ea: 2301 movls r3, #1
  13835. 80061ec: 2300 movhi r3, #0
  13836. 80061ee: b2db uxtb r3, r3
  13837. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13838. 80061f0: 2b00 cmp r3, #0
  13839. 80061f2: d079 beq.n 80062e8 <HAL_ADC_ConfigChannel+0x3cc>
  13840. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13841. 80061f4: 683b ldr r3, [r7, #0]
  13842. 80061f6: 681b ldr r3, [r3, #0]
  13843. 80061f8: f3c3 0313 ubfx r3, r3, #0, #20
  13844. 80061fc: 2b00 cmp r3, #0
  13845. 80061fe: d107 bne.n 8006210 <HAL_ADC_ConfigChannel+0x2f4>
  13846. 8006200: 683b ldr r3, [r7, #0]
  13847. 8006202: 681b ldr r3, [r3, #0]
  13848. 8006204: 0e9b lsrs r3, r3, #26
  13849. 8006206: 3301 adds r3, #1
  13850. 8006208: 069b lsls r3, r3, #26
  13851. 800620a: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13852. 800620e: e015 b.n 800623c <HAL_ADC_ConfigChannel+0x320>
  13853. 8006210: 683b ldr r3, [r7, #0]
  13854. 8006212: 681b ldr r3, [r3, #0]
  13855. 8006214: 64fb str r3, [r7, #76] @ 0x4c
  13856. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13857. 8006216: 6cfb ldr r3, [r7, #76] @ 0x4c
  13858. 8006218: fa93 f3a3 rbit r3, r3
  13859. 800621c: 64bb str r3, [r7, #72] @ 0x48
  13860. return result;
  13861. 800621e: 6cbb ldr r3, [r7, #72] @ 0x48
  13862. 8006220: 653b str r3, [r7, #80] @ 0x50
  13863. if (value == 0U)
  13864. 8006222: 6d3b ldr r3, [r7, #80] @ 0x50
  13865. 8006224: 2b00 cmp r3, #0
  13866. 8006226: d101 bne.n 800622c <HAL_ADC_ConfigChannel+0x310>
  13867. return 32U;
  13868. 8006228: 2320 movs r3, #32
  13869. 800622a: e003 b.n 8006234 <HAL_ADC_ConfigChannel+0x318>
  13870. return __builtin_clz(value);
  13871. 800622c: 6d3b ldr r3, [r7, #80] @ 0x50
  13872. 800622e: fab3 f383 clz r3, r3
  13873. 8006232: b2db uxtb r3, r3
  13874. 8006234: 3301 adds r3, #1
  13875. 8006236: 069b lsls r3, r3, #26
  13876. 8006238: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13877. 800623c: 683b ldr r3, [r7, #0]
  13878. 800623e: 681b ldr r3, [r3, #0]
  13879. 8006240: f3c3 0313 ubfx r3, r3, #0, #20
  13880. 8006244: 2b00 cmp r3, #0
  13881. 8006246: d109 bne.n 800625c <HAL_ADC_ConfigChannel+0x340>
  13882. 8006248: 683b ldr r3, [r7, #0]
  13883. 800624a: 681b ldr r3, [r3, #0]
  13884. 800624c: 0e9b lsrs r3, r3, #26
  13885. 800624e: 3301 adds r3, #1
  13886. 8006250: f003 031f and.w r3, r3, #31
  13887. 8006254: 2101 movs r1, #1
  13888. 8006256: fa01 f303 lsl.w r3, r1, r3
  13889. 800625a: e017 b.n 800628c <HAL_ADC_ConfigChannel+0x370>
  13890. 800625c: 683b ldr r3, [r7, #0]
  13891. 800625e: 681b ldr r3, [r3, #0]
  13892. 8006260: 643b str r3, [r7, #64] @ 0x40
  13893. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13894. 8006262: 6c3b ldr r3, [r7, #64] @ 0x40
  13895. 8006264: fa93 f3a3 rbit r3, r3
  13896. 8006268: 63fb str r3, [r7, #60] @ 0x3c
  13897. return result;
  13898. 800626a: 6bfb ldr r3, [r7, #60] @ 0x3c
  13899. 800626c: 647b str r3, [r7, #68] @ 0x44
  13900. if (value == 0U)
  13901. 800626e: 6c7b ldr r3, [r7, #68] @ 0x44
  13902. 8006270: 2b00 cmp r3, #0
  13903. 8006272: d101 bne.n 8006278 <HAL_ADC_ConfigChannel+0x35c>
  13904. return 32U;
  13905. 8006274: 2320 movs r3, #32
  13906. 8006276: e003 b.n 8006280 <HAL_ADC_ConfigChannel+0x364>
  13907. return __builtin_clz(value);
  13908. 8006278: 6c7b ldr r3, [r7, #68] @ 0x44
  13909. 800627a: fab3 f383 clz r3, r3
  13910. 800627e: b2db uxtb r3, r3
  13911. 8006280: 3301 adds r3, #1
  13912. 8006282: f003 031f and.w r3, r3, #31
  13913. 8006286: 2101 movs r1, #1
  13914. 8006288: fa01 f303 lsl.w r3, r1, r3
  13915. 800628c: ea42 0103 orr.w r1, r2, r3
  13916. 8006290: 683b ldr r3, [r7, #0]
  13917. 8006292: 681b ldr r3, [r3, #0]
  13918. 8006294: f3c3 0313 ubfx r3, r3, #0, #20
  13919. 8006298: 2b00 cmp r3, #0
  13920. 800629a: d10a bne.n 80062b2 <HAL_ADC_ConfigChannel+0x396>
  13921. 800629c: 683b ldr r3, [r7, #0]
  13922. 800629e: 681b ldr r3, [r3, #0]
  13923. 80062a0: 0e9b lsrs r3, r3, #26
  13924. 80062a2: 3301 adds r3, #1
  13925. 80062a4: f003 021f and.w r2, r3, #31
  13926. 80062a8: 4613 mov r3, r2
  13927. 80062aa: 005b lsls r3, r3, #1
  13928. 80062ac: 4413 add r3, r2
  13929. 80062ae: 051b lsls r3, r3, #20
  13930. 80062b0: e018 b.n 80062e4 <HAL_ADC_ConfigChannel+0x3c8>
  13931. 80062b2: 683b ldr r3, [r7, #0]
  13932. 80062b4: 681b ldr r3, [r3, #0]
  13933. 80062b6: 637b str r3, [r7, #52] @ 0x34
  13934. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13935. 80062b8: 6b7b ldr r3, [r7, #52] @ 0x34
  13936. 80062ba: fa93 f3a3 rbit r3, r3
  13937. 80062be: 633b str r3, [r7, #48] @ 0x30
  13938. return result;
  13939. 80062c0: 6b3b ldr r3, [r7, #48] @ 0x30
  13940. 80062c2: 63bb str r3, [r7, #56] @ 0x38
  13941. if (value == 0U)
  13942. 80062c4: 6bbb ldr r3, [r7, #56] @ 0x38
  13943. 80062c6: 2b00 cmp r3, #0
  13944. 80062c8: d101 bne.n 80062ce <HAL_ADC_ConfigChannel+0x3b2>
  13945. return 32U;
  13946. 80062ca: 2320 movs r3, #32
  13947. 80062cc: e003 b.n 80062d6 <HAL_ADC_ConfigChannel+0x3ba>
  13948. return __builtin_clz(value);
  13949. 80062ce: 6bbb ldr r3, [r7, #56] @ 0x38
  13950. 80062d0: fab3 f383 clz r3, r3
  13951. 80062d4: b2db uxtb r3, r3
  13952. 80062d6: 3301 adds r3, #1
  13953. 80062d8: f003 021f and.w r2, r3, #31
  13954. 80062dc: 4613 mov r3, r2
  13955. 80062de: 005b lsls r3, r3, #1
  13956. 80062e0: 4413 add r3, r2
  13957. 80062e2: 051b lsls r3, r3, #20
  13958. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13959. 80062e4: 430b orrs r3, r1
  13960. 80062e6: e07e b.n 80063e6 <HAL_ADC_ConfigChannel+0x4ca>
  13961. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13962. 80062e8: 683b ldr r3, [r7, #0]
  13963. 80062ea: 681b ldr r3, [r3, #0]
  13964. 80062ec: f3c3 0313 ubfx r3, r3, #0, #20
  13965. 80062f0: 2b00 cmp r3, #0
  13966. 80062f2: d107 bne.n 8006304 <HAL_ADC_ConfigChannel+0x3e8>
  13967. 80062f4: 683b ldr r3, [r7, #0]
  13968. 80062f6: 681b ldr r3, [r3, #0]
  13969. 80062f8: 0e9b lsrs r3, r3, #26
  13970. 80062fa: 3301 adds r3, #1
  13971. 80062fc: 069b lsls r3, r3, #26
  13972. 80062fe: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13973. 8006302: e015 b.n 8006330 <HAL_ADC_ConfigChannel+0x414>
  13974. 8006304: 683b ldr r3, [r7, #0]
  13975. 8006306: 681b ldr r3, [r3, #0]
  13976. 8006308: 62bb str r3, [r7, #40] @ 0x28
  13977. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13978. 800630a: 6abb ldr r3, [r7, #40] @ 0x28
  13979. 800630c: fa93 f3a3 rbit r3, r3
  13980. 8006310: 627b str r3, [r7, #36] @ 0x24
  13981. return result;
  13982. 8006312: 6a7b ldr r3, [r7, #36] @ 0x24
  13983. 8006314: 62fb str r3, [r7, #44] @ 0x2c
  13984. if (value == 0U)
  13985. 8006316: 6afb ldr r3, [r7, #44] @ 0x2c
  13986. 8006318: 2b00 cmp r3, #0
  13987. 800631a: d101 bne.n 8006320 <HAL_ADC_ConfigChannel+0x404>
  13988. return 32U;
  13989. 800631c: 2320 movs r3, #32
  13990. 800631e: e003 b.n 8006328 <HAL_ADC_ConfigChannel+0x40c>
  13991. return __builtin_clz(value);
  13992. 8006320: 6afb ldr r3, [r7, #44] @ 0x2c
  13993. 8006322: fab3 f383 clz r3, r3
  13994. 8006326: b2db uxtb r3, r3
  13995. 8006328: 3301 adds r3, #1
  13996. 800632a: 069b lsls r3, r3, #26
  13997. 800632c: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13998. 8006330: 683b ldr r3, [r7, #0]
  13999. 8006332: 681b ldr r3, [r3, #0]
  14000. 8006334: f3c3 0313 ubfx r3, r3, #0, #20
  14001. 8006338: 2b00 cmp r3, #0
  14002. 800633a: d109 bne.n 8006350 <HAL_ADC_ConfigChannel+0x434>
  14003. 800633c: 683b ldr r3, [r7, #0]
  14004. 800633e: 681b ldr r3, [r3, #0]
  14005. 8006340: 0e9b lsrs r3, r3, #26
  14006. 8006342: 3301 adds r3, #1
  14007. 8006344: f003 031f and.w r3, r3, #31
  14008. 8006348: 2101 movs r1, #1
  14009. 800634a: fa01 f303 lsl.w r3, r1, r3
  14010. 800634e: e017 b.n 8006380 <HAL_ADC_ConfigChannel+0x464>
  14011. 8006350: 683b ldr r3, [r7, #0]
  14012. 8006352: 681b ldr r3, [r3, #0]
  14013. 8006354: 61fb str r3, [r7, #28]
  14014. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14015. 8006356: 69fb ldr r3, [r7, #28]
  14016. 8006358: fa93 f3a3 rbit r3, r3
  14017. 800635c: 61bb str r3, [r7, #24]
  14018. return result;
  14019. 800635e: 69bb ldr r3, [r7, #24]
  14020. 8006360: 623b str r3, [r7, #32]
  14021. if (value == 0U)
  14022. 8006362: 6a3b ldr r3, [r7, #32]
  14023. 8006364: 2b00 cmp r3, #0
  14024. 8006366: d101 bne.n 800636c <HAL_ADC_ConfigChannel+0x450>
  14025. return 32U;
  14026. 8006368: 2320 movs r3, #32
  14027. 800636a: e003 b.n 8006374 <HAL_ADC_ConfigChannel+0x458>
  14028. return __builtin_clz(value);
  14029. 800636c: 6a3b ldr r3, [r7, #32]
  14030. 800636e: fab3 f383 clz r3, r3
  14031. 8006372: b2db uxtb r3, r3
  14032. 8006374: 3301 adds r3, #1
  14033. 8006376: f003 031f and.w r3, r3, #31
  14034. 800637a: 2101 movs r1, #1
  14035. 800637c: fa01 f303 lsl.w r3, r1, r3
  14036. 8006380: ea42 0103 orr.w r1, r2, r3
  14037. 8006384: 683b ldr r3, [r7, #0]
  14038. 8006386: 681b ldr r3, [r3, #0]
  14039. 8006388: f3c3 0313 ubfx r3, r3, #0, #20
  14040. 800638c: 2b00 cmp r3, #0
  14041. 800638e: d10d bne.n 80063ac <HAL_ADC_ConfigChannel+0x490>
  14042. 8006390: 683b ldr r3, [r7, #0]
  14043. 8006392: 681b ldr r3, [r3, #0]
  14044. 8006394: 0e9b lsrs r3, r3, #26
  14045. 8006396: 3301 adds r3, #1
  14046. 8006398: f003 021f and.w r2, r3, #31
  14047. 800639c: 4613 mov r3, r2
  14048. 800639e: 005b lsls r3, r3, #1
  14049. 80063a0: 4413 add r3, r2
  14050. 80063a2: 3b1e subs r3, #30
  14051. 80063a4: 051b lsls r3, r3, #20
  14052. 80063a6: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  14053. 80063aa: e01b b.n 80063e4 <HAL_ADC_ConfigChannel+0x4c8>
  14054. 80063ac: 683b ldr r3, [r7, #0]
  14055. 80063ae: 681b ldr r3, [r3, #0]
  14056. 80063b0: 613b str r3, [r7, #16]
  14057. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14058. 80063b2: 693b ldr r3, [r7, #16]
  14059. 80063b4: fa93 f3a3 rbit r3, r3
  14060. 80063b8: 60fb str r3, [r7, #12]
  14061. return result;
  14062. 80063ba: 68fb ldr r3, [r7, #12]
  14063. 80063bc: 617b str r3, [r7, #20]
  14064. if (value == 0U)
  14065. 80063be: 697b ldr r3, [r7, #20]
  14066. 80063c0: 2b00 cmp r3, #0
  14067. 80063c2: d101 bne.n 80063c8 <HAL_ADC_ConfigChannel+0x4ac>
  14068. return 32U;
  14069. 80063c4: 2320 movs r3, #32
  14070. 80063c6: e003 b.n 80063d0 <HAL_ADC_ConfigChannel+0x4b4>
  14071. return __builtin_clz(value);
  14072. 80063c8: 697b ldr r3, [r7, #20]
  14073. 80063ca: fab3 f383 clz r3, r3
  14074. 80063ce: b2db uxtb r3, r3
  14075. 80063d0: 3301 adds r3, #1
  14076. 80063d2: f003 021f and.w r2, r3, #31
  14077. 80063d6: 4613 mov r3, r2
  14078. 80063d8: 005b lsls r3, r3, #1
  14079. 80063da: 4413 add r3, r2
  14080. 80063dc: 3b1e subs r3, #30
  14081. 80063de: 051b lsls r3, r3, #20
  14082. 80063e0: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  14083. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14084. 80063e4: 430b orrs r3, r1
  14085. 80063e6: 683a ldr r2, [r7, #0]
  14086. 80063e8: 6892 ldr r2, [r2, #8]
  14087. 80063ea: 4619 mov r1, r3
  14088. 80063ec: f7ff f9e8 bl 80057c0 <LL_ADC_SetChannelSamplingTime>
  14089. /* If internal channel selected, enable dedicated internal buffers and */
  14090. /* paths. */
  14091. /* Note: these internal measurement paths can be disabled using */
  14092. /* HAL_ADC_DeInit(). */
  14093. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  14094. 80063f0: 683b ldr r3, [r7, #0]
  14095. 80063f2: 681b ldr r3, [r3, #0]
  14096. 80063f4: 2b00 cmp r3, #0
  14097. 80063f6: f280 80cf bge.w 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14098. {
  14099. /* Configuration of common ADC parameters */
  14100. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14101. 80063fa: 687b ldr r3, [r7, #4]
  14102. 80063fc: 681b ldr r3, [r3, #0]
  14103. 80063fe: 4a06 ldr r2, [pc, #24] @ (8006418 <HAL_ADC_ConfigChannel+0x4fc>)
  14104. 8006400: 4293 cmp r3, r2
  14105. 8006402: d004 beq.n 800640e <HAL_ADC_ConfigChannel+0x4f2>
  14106. 8006404: 687b ldr r3, [r7, #4]
  14107. 8006406: 681b ldr r3, [r3, #0]
  14108. 8006408: 4a04 ldr r2, [pc, #16] @ (800641c <HAL_ADC_ConfigChannel+0x500>)
  14109. 800640a: 4293 cmp r3, r2
  14110. 800640c: d10a bne.n 8006424 <HAL_ADC_ConfigChannel+0x508>
  14111. 800640e: 4b04 ldr r3, [pc, #16] @ (8006420 <HAL_ADC_ConfigChannel+0x504>)
  14112. 8006410: e009 b.n 8006426 <HAL_ADC_ConfigChannel+0x50a>
  14113. 8006412: bf00 nop
  14114. 8006414: 47ff0000 .word 0x47ff0000
  14115. 8006418: 40022000 .word 0x40022000
  14116. 800641c: 40022100 .word 0x40022100
  14117. 8006420: 40022300 .word 0x40022300
  14118. 8006424: 4b61 ldr r3, [pc, #388] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14119. 8006426: 4618 mov r0, r3
  14120. 8006428: f7ff f916 bl 8005658 <LL_ADC_GetCommonPathInternalCh>
  14121. 800642c: 66f8 str r0, [r7, #108] @ 0x6c
  14122. /* Software is allowed to change common parameters only when all ADCs */
  14123. /* of the common group are disabled. */
  14124. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  14125. 800642e: 687b ldr r3, [r7, #4]
  14126. 8006430: 681b ldr r3, [r3, #0]
  14127. 8006432: 4a5f ldr r2, [pc, #380] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14128. 8006434: 4293 cmp r3, r2
  14129. 8006436: d004 beq.n 8006442 <HAL_ADC_ConfigChannel+0x526>
  14130. 8006438: 687b ldr r3, [r7, #4]
  14131. 800643a: 681b ldr r3, [r3, #0]
  14132. 800643c: 4a5d ldr r2, [pc, #372] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14133. 800643e: 4293 cmp r3, r2
  14134. 8006440: d10e bne.n 8006460 <HAL_ADC_ConfigChannel+0x544>
  14135. 8006442: 485b ldr r0, [pc, #364] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14136. 8006444: f7ff fa90 bl 8005968 <LL_ADC_IsEnabled>
  14137. 8006448: 4604 mov r4, r0
  14138. 800644a: 485a ldr r0, [pc, #360] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14139. 800644c: f7ff fa8c bl 8005968 <LL_ADC_IsEnabled>
  14140. 8006450: 4603 mov r3, r0
  14141. 8006452: 4323 orrs r3, r4
  14142. 8006454: 2b00 cmp r3, #0
  14143. 8006456: bf0c ite eq
  14144. 8006458: 2301 moveq r3, #1
  14145. 800645a: 2300 movne r3, #0
  14146. 800645c: b2db uxtb r3, r3
  14147. 800645e: e008 b.n 8006472 <HAL_ADC_ConfigChannel+0x556>
  14148. 8006460: 4855 ldr r0, [pc, #340] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14149. 8006462: f7ff fa81 bl 8005968 <LL_ADC_IsEnabled>
  14150. 8006466: 4603 mov r3, r0
  14151. 8006468: 2b00 cmp r3, #0
  14152. 800646a: bf0c ite eq
  14153. 800646c: 2301 moveq r3, #1
  14154. 800646e: 2300 movne r3, #0
  14155. 8006470: b2db uxtb r3, r3
  14156. 8006472: 2b00 cmp r3, #0
  14157. 8006474: d07d beq.n 8006572 <HAL_ADC_ConfigChannel+0x656>
  14158. {
  14159. /* If the requested internal measurement path has already been enabled, */
  14160. /* bypass the configuration processing. */
  14161. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  14162. 8006476: 683b ldr r3, [r7, #0]
  14163. 8006478: 681b ldr r3, [r3, #0]
  14164. 800647a: 4a50 ldr r2, [pc, #320] @ (80065bc <HAL_ADC_ConfigChannel+0x6a0>)
  14165. 800647c: 4293 cmp r3, r2
  14166. 800647e: d130 bne.n 80064e2 <HAL_ADC_ConfigChannel+0x5c6>
  14167. 8006480: 6efb ldr r3, [r7, #108] @ 0x6c
  14168. 8006482: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  14169. 8006486: 2b00 cmp r3, #0
  14170. 8006488: d12b bne.n 80064e2 <HAL_ADC_ConfigChannel+0x5c6>
  14171. {
  14172. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  14173. 800648a: 687b ldr r3, [r7, #4]
  14174. 800648c: 681b ldr r3, [r3, #0]
  14175. 800648e: 4a4a ldr r2, [pc, #296] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14176. 8006490: 4293 cmp r3, r2
  14177. 8006492: f040 8081 bne.w 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14178. {
  14179. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  14180. 8006496: 687b ldr r3, [r7, #4]
  14181. 8006498: 681b ldr r3, [r3, #0]
  14182. 800649a: 4a45 ldr r2, [pc, #276] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14183. 800649c: 4293 cmp r3, r2
  14184. 800649e: d004 beq.n 80064aa <HAL_ADC_ConfigChannel+0x58e>
  14185. 80064a0: 687b ldr r3, [r7, #4]
  14186. 80064a2: 681b ldr r3, [r3, #0]
  14187. 80064a4: 4a43 ldr r2, [pc, #268] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14188. 80064a6: 4293 cmp r3, r2
  14189. 80064a8: d101 bne.n 80064ae <HAL_ADC_ConfigChannel+0x592>
  14190. 80064aa: 4a45 ldr r2, [pc, #276] @ (80065c0 <HAL_ADC_ConfigChannel+0x6a4>)
  14191. 80064ac: e000 b.n 80064b0 <HAL_ADC_ConfigChannel+0x594>
  14192. 80064ae: 4a3f ldr r2, [pc, #252] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14193. 80064b0: 6efb ldr r3, [r7, #108] @ 0x6c
  14194. 80064b2: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  14195. 80064b6: 4619 mov r1, r3
  14196. 80064b8: 4610 mov r0, r2
  14197. 80064ba: f7ff f8ba bl 8005632 <LL_ADC_SetCommonPathInternalCh>
  14198. /* Delay for temperature sensor stabilization time */
  14199. /* Wait loop initialization and execution */
  14200. /* Note: Variable divided by 2 to compensate partially */
  14201. /* CPU processing cycles, scaling in us split to not */
  14202. /* exceed 32 bits register capacity and handle low frequency. */
  14203. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  14204. 80064be: 4b41 ldr r3, [pc, #260] @ (80065c4 <HAL_ADC_ConfigChannel+0x6a8>)
  14205. 80064c0: 681b ldr r3, [r3, #0]
  14206. 80064c2: 099b lsrs r3, r3, #6
  14207. 80064c4: 4a40 ldr r2, [pc, #256] @ (80065c8 <HAL_ADC_ConfigChannel+0x6ac>)
  14208. 80064c6: fba2 2303 umull r2, r3, r2, r3
  14209. 80064ca: 099b lsrs r3, r3, #6
  14210. 80064cc: 3301 adds r3, #1
  14211. 80064ce: 005b lsls r3, r3, #1
  14212. 80064d0: 60bb str r3, [r7, #8]
  14213. while (wait_loop_index != 0UL)
  14214. 80064d2: e002 b.n 80064da <HAL_ADC_ConfigChannel+0x5be>
  14215. {
  14216. wait_loop_index--;
  14217. 80064d4: 68bb ldr r3, [r7, #8]
  14218. 80064d6: 3b01 subs r3, #1
  14219. 80064d8: 60bb str r3, [r7, #8]
  14220. while (wait_loop_index != 0UL)
  14221. 80064da: 68bb ldr r3, [r7, #8]
  14222. 80064dc: 2b00 cmp r3, #0
  14223. 80064de: d1f9 bne.n 80064d4 <HAL_ADC_ConfigChannel+0x5b8>
  14224. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  14225. 80064e0: e05a b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14226. }
  14227. }
  14228. }
  14229. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  14230. 80064e2: 683b ldr r3, [r7, #0]
  14231. 80064e4: 681b ldr r3, [r3, #0]
  14232. 80064e6: 4a39 ldr r2, [pc, #228] @ (80065cc <HAL_ADC_ConfigChannel+0x6b0>)
  14233. 80064e8: 4293 cmp r3, r2
  14234. 80064ea: d11e bne.n 800652a <HAL_ADC_ConfigChannel+0x60e>
  14235. 80064ec: 6efb ldr r3, [r7, #108] @ 0x6c
  14236. 80064ee: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  14237. 80064f2: 2b00 cmp r3, #0
  14238. 80064f4: d119 bne.n 800652a <HAL_ADC_ConfigChannel+0x60e>
  14239. {
  14240. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14241. 80064f6: 687b ldr r3, [r7, #4]
  14242. 80064f8: 681b ldr r3, [r3, #0]
  14243. 80064fa: 4a2f ldr r2, [pc, #188] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14244. 80064fc: 4293 cmp r3, r2
  14245. 80064fe: d14b bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14246. {
  14247. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  14248. 8006500: 687b ldr r3, [r7, #4]
  14249. 8006502: 681b ldr r3, [r3, #0]
  14250. 8006504: 4a2a ldr r2, [pc, #168] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14251. 8006506: 4293 cmp r3, r2
  14252. 8006508: d004 beq.n 8006514 <HAL_ADC_ConfigChannel+0x5f8>
  14253. 800650a: 687b ldr r3, [r7, #4]
  14254. 800650c: 681b ldr r3, [r3, #0]
  14255. 800650e: 4a29 ldr r2, [pc, #164] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14256. 8006510: 4293 cmp r3, r2
  14257. 8006512: d101 bne.n 8006518 <HAL_ADC_ConfigChannel+0x5fc>
  14258. 8006514: 4a2a ldr r2, [pc, #168] @ (80065c0 <HAL_ADC_ConfigChannel+0x6a4>)
  14259. 8006516: e000 b.n 800651a <HAL_ADC_ConfigChannel+0x5fe>
  14260. 8006518: 4a24 ldr r2, [pc, #144] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14261. 800651a: 6efb ldr r3, [r7, #108] @ 0x6c
  14262. 800651c: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  14263. 8006520: 4619 mov r1, r3
  14264. 8006522: 4610 mov r0, r2
  14265. 8006524: f7ff f885 bl 8005632 <LL_ADC_SetCommonPathInternalCh>
  14266. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14267. 8006528: e036 b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14268. }
  14269. }
  14270. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  14271. 800652a: 683b ldr r3, [r7, #0]
  14272. 800652c: 681b ldr r3, [r3, #0]
  14273. 800652e: 4a28 ldr r2, [pc, #160] @ (80065d0 <HAL_ADC_ConfigChannel+0x6b4>)
  14274. 8006530: 4293 cmp r3, r2
  14275. 8006532: d131 bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14276. 8006534: 6efb ldr r3, [r7, #108] @ 0x6c
  14277. 8006536: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  14278. 800653a: 2b00 cmp r3, #0
  14279. 800653c: d12c bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14280. {
  14281. if (ADC_VREFINT_INSTANCE(hadc))
  14282. 800653e: 687b ldr r3, [r7, #4]
  14283. 8006540: 681b ldr r3, [r3, #0]
  14284. 8006542: 4a1d ldr r2, [pc, #116] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14285. 8006544: 4293 cmp r3, r2
  14286. 8006546: d127 bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14287. {
  14288. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  14289. 8006548: 687b ldr r3, [r7, #4]
  14290. 800654a: 681b ldr r3, [r3, #0]
  14291. 800654c: 4a18 ldr r2, [pc, #96] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14292. 800654e: 4293 cmp r3, r2
  14293. 8006550: d004 beq.n 800655c <HAL_ADC_ConfigChannel+0x640>
  14294. 8006552: 687b ldr r3, [r7, #4]
  14295. 8006554: 681b ldr r3, [r3, #0]
  14296. 8006556: 4a17 ldr r2, [pc, #92] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14297. 8006558: 4293 cmp r3, r2
  14298. 800655a: d101 bne.n 8006560 <HAL_ADC_ConfigChannel+0x644>
  14299. 800655c: 4a18 ldr r2, [pc, #96] @ (80065c0 <HAL_ADC_ConfigChannel+0x6a4>)
  14300. 800655e: e000 b.n 8006562 <HAL_ADC_ConfigChannel+0x646>
  14301. 8006560: 4a12 ldr r2, [pc, #72] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14302. 8006562: 6efb ldr r3, [r7, #108] @ 0x6c
  14303. 8006564: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  14304. 8006568: 4619 mov r1, r3
  14305. 800656a: 4610 mov r0, r2
  14306. 800656c: f7ff f861 bl 8005632 <LL_ADC_SetCommonPathInternalCh>
  14307. 8006570: e012 b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14308. /* enabled and other ADC of the common group are enabled, internal */
  14309. /* measurement paths cannot be enabled. */
  14310. else
  14311. {
  14312. /* Update ADC state machine to error */
  14313. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14314. 8006572: 687b ldr r3, [r7, #4]
  14315. 8006574: 6d5b ldr r3, [r3, #84] @ 0x54
  14316. 8006576: f043 0220 orr.w r2, r3, #32
  14317. 800657a: 687b ldr r3, [r7, #4]
  14318. 800657c: 655a str r2, [r3, #84] @ 0x54
  14319. tmp_hal_status = HAL_ERROR;
  14320. 800657e: 2301 movs r3, #1
  14321. 8006580: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14322. 8006584: e008 b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14323. /* channel could be done on neither of the channel configuration structure */
  14324. /* parameters. */
  14325. else
  14326. {
  14327. /* Update ADC state machine to error */
  14328. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14329. 8006586: 687b ldr r3, [r7, #4]
  14330. 8006588: 6d5b ldr r3, [r3, #84] @ 0x54
  14331. 800658a: f043 0220 orr.w r2, r3, #32
  14332. 800658e: 687b ldr r3, [r7, #4]
  14333. 8006590: 655a str r2, [r3, #84] @ 0x54
  14334. tmp_hal_status = HAL_ERROR;
  14335. 8006592: 2301 movs r3, #1
  14336. 8006594: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14337. }
  14338. /* Process unlocked */
  14339. __HAL_UNLOCK(hadc);
  14340. 8006598: 687b ldr r3, [r7, #4]
  14341. 800659a: 2200 movs r2, #0
  14342. 800659c: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14343. /* Return function status */
  14344. return tmp_hal_status;
  14345. 80065a0: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  14346. }
  14347. 80065a4: 4618 mov r0, r3
  14348. 80065a6: 3784 adds r7, #132 @ 0x84
  14349. 80065a8: 46bd mov sp, r7
  14350. 80065aa: bd90 pop {r4, r7, pc}
  14351. 80065ac: 58026300 .word 0x58026300
  14352. 80065b0: 40022000 .word 0x40022000
  14353. 80065b4: 40022100 .word 0x40022100
  14354. 80065b8: 58026000 .word 0x58026000
  14355. 80065bc: cb840000 .word 0xcb840000
  14356. 80065c0: 40022300 .word 0x40022300
  14357. 80065c4: 24000034 .word 0x24000034
  14358. 80065c8: 053e2d63 .word 0x053e2d63
  14359. 80065cc: c7520000 .word 0xc7520000
  14360. 80065d0: cfb80000 .word 0xcfb80000
  14361. 080065d4 <ADC_Enable>:
  14362. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  14363. * @param hadc ADC handle
  14364. * @retval HAL status.
  14365. */
  14366. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  14367. {
  14368. 80065d4: b580 push {r7, lr}
  14369. 80065d6: b084 sub sp, #16
  14370. 80065d8: af00 add r7, sp, #0
  14371. 80065da: 6078 str r0, [r7, #4]
  14372. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  14373. /* enabling phase not yet completed: flag ADC ready not yet set). */
  14374. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  14375. /* causes: ADC clock not running, ...). */
  14376. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14377. 80065dc: 687b ldr r3, [r7, #4]
  14378. 80065de: 681b ldr r3, [r3, #0]
  14379. 80065e0: 4618 mov r0, r3
  14380. 80065e2: f7ff f9c1 bl 8005968 <LL_ADC_IsEnabled>
  14381. 80065e6: 4603 mov r3, r0
  14382. 80065e8: 2b00 cmp r3, #0
  14383. 80065ea: d16e bne.n 80066ca <ADC_Enable+0xf6>
  14384. {
  14385. /* Check if conditions to enable the ADC are fulfilled */
  14386. 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)
  14387. 80065ec: 687b ldr r3, [r7, #4]
  14388. 80065ee: 681b ldr r3, [r3, #0]
  14389. 80065f0: 689a ldr r2, [r3, #8]
  14390. 80065f2: 4b38 ldr r3, [pc, #224] @ (80066d4 <ADC_Enable+0x100>)
  14391. 80065f4: 4013 ands r3, r2
  14392. 80065f6: 2b00 cmp r3, #0
  14393. 80065f8: d00d beq.n 8006616 <ADC_Enable+0x42>
  14394. {
  14395. /* Update ADC state machine to error */
  14396. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14397. 80065fa: 687b ldr r3, [r7, #4]
  14398. 80065fc: 6d5b ldr r3, [r3, #84] @ 0x54
  14399. 80065fe: f043 0210 orr.w r2, r3, #16
  14400. 8006602: 687b ldr r3, [r7, #4]
  14401. 8006604: 655a str r2, [r3, #84] @ 0x54
  14402. /* Set ADC error code to ADC peripheral internal error */
  14403. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14404. 8006606: 687b ldr r3, [r7, #4]
  14405. 8006608: 6d9b ldr r3, [r3, #88] @ 0x58
  14406. 800660a: f043 0201 orr.w r2, r3, #1
  14407. 800660e: 687b ldr r3, [r7, #4]
  14408. 8006610: 659a str r2, [r3, #88] @ 0x58
  14409. return HAL_ERROR;
  14410. 8006612: 2301 movs r3, #1
  14411. 8006614: e05a b.n 80066cc <ADC_Enable+0xf8>
  14412. }
  14413. /* Enable the ADC peripheral */
  14414. LL_ADC_Enable(hadc->Instance);
  14415. 8006616: 687b ldr r3, [r7, #4]
  14416. 8006618: 681b ldr r3, [r3, #0]
  14417. 800661a: 4618 mov r0, r3
  14418. 800661c: f7ff f97c bl 8005918 <LL_ADC_Enable>
  14419. /* Wait for ADC effectively enabled */
  14420. tickstart = HAL_GetTick();
  14421. 8006620: f7fe ffa2 bl 8005568 <HAL_GetTick>
  14422. 8006624: 60f8 str r0, [r7, #12]
  14423. /* Poll for ADC ready flag raised except case of multimode enabled
  14424. and ADC slave selected. */
  14425. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14426. 8006626: 687b ldr r3, [r7, #4]
  14427. 8006628: 681b ldr r3, [r3, #0]
  14428. 800662a: 4a2b ldr r2, [pc, #172] @ (80066d8 <ADC_Enable+0x104>)
  14429. 800662c: 4293 cmp r3, r2
  14430. 800662e: d004 beq.n 800663a <ADC_Enable+0x66>
  14431. 8006630: 687b ldr r3, [r7, #4]
  14432. 8006632: 681b ldr r3, [r3, #0]
  14433. 8006634: 4a29 ldr r2, [pc, #164] @ (80066dc <ADC_Enable+0x108>)
  14434. 8006636: 4293 cmp r3, r2
  14435. 8006638: d101 bne.n 800663e <ADC_Enable+0x6a>
  14436. 800663a: 4b29 ldr r3, [pc, #164] @ (80066e0 <ADC_Enable+0x10c>)
  14437. 800663c: e000 b.n 8006640 <ADC_Enable+0x6c>
  14438. 800663e: 4b29 ldr r3, [pc, #164] @ (80066e4 <ADC_Enable+0x110>)
  14439. 8006640: 4618 mov r0, r3
  14440. 8006642: f7ff f90d bl 8005860 <LL_ADC_GetMultimode>
  14441. 8006646: 60b8 str r0, [r7, #8]
  14442. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14443. 8006648: 687b ldr r3, [r7, #4]
  14444. 800664a: 681b ldr r3, [r3, #0]
  14445. 800664c: 4a23 ldr r2, [pc, #140] @ (80066dc <ADC_Enable+0x108>)
  14446. 800664e: 4293 cmp r3, r2
  14447. 8006650: d002 beq.n 8006658 <ADC_Enable+0x84>
  14448. 8006652: 687b ldr r3, [r7, #4]
  14449. 8006654: 681b ldr r3, [r3, #0]
  14450. 8006656: e000 b.n 800665a <ADC_Enable+0x86>
  14451. 8006658: 4b1f ldr r3, [pc, #124] @ (80066d8 <ADC_Enable+0x104>)
  14452. 800665a: 687a ldr r2, [r7, #4]
  14453. 800665c: 6812 ldr r2, [r2, #0]
  14454. 800665e: 4293 cmp r3, r2
  14455. 8006660: d02c beq.n 80066bc <ADC_Enable+0xe8>
  14456. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14457. 8006662: 68bb ldr r3, [r7, #8]
  14458. 8006664: 2b00 cmp r3, #0
  14459. 8006666: d130 bne.n 80066ca <ADC_Enable+0xf6>
  14460. )
  14461. {
  14462. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14463. 8006668: e028 b.n 80066bc <ADC_Enable+0xe8>
  14464. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  14465. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  14466. 4 ADC clock cycle duration */
  14467. /* Note: Test of ADC enabled required due to hardware constraint to */
  14468. /* not enable ADC if already enabled. */
  14469. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14470. 800666a: 687b ldr r3, [r7, #4]
  14471. 800666c: 681b ldr r3, [r3, #0]
  14472. 800666e: 4618 mov r0, r3
  14473. 8006670: f7ff f97a bl 8005968 <LL_ADC_IsEnabled>
  14474. 8006674: 4603 mov r3, r0
  14475. 8006676: 2b00 cmp r3, #0
  14476. 8006678: d104 bne.n 8006684 <ADC_Enable+0xb0>
  14477. {
  14478. LL_ADC_Enable(hadc->Instance);
  14479. 800667a: 687b ldr r3, [r7, #4]
  14480. 800667c: 681b ldr r3, [r3, #0]
  14481. 800667e: 4618 mov r0, r3
  14482. 8006680: f7ff f94a bl 8005918 <LL_ADC_Enable>
  14483. }
  14484. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  14485. 8006684: f7fe ff70 bl 8005568 <HAL_GetTick>
  14486. 8006688: 4602 mov r2, r0
  14487. 800668a: 68fb ldr r3, [r7, #12]
  14488. 800668c: 1ad3 subs r3, r2, r3
  14489. 800668e: 2b02 cmp r3, #2
  14490. 8006690: d914 bls.n 80066bc <ADC_Enable+0xe8>
  14491. {
  14492. /* New check to avoid false timeout detection in case of preemption */
  14493. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14494. 8006692: 687b ldr r3, [r7, #4]
  14495. 8006694: 681b ldr r3, [r3, #0]
  14496. 8006696: 681b ldr r3, [r3, #0]
  14497. 8006698: f003 0301 and.w r3, r3, #1
  14498. 800669c: 2b01 cmp r3, #1
  14499. 800669e: d00d beq.n 80066bc <ADC_Enable+0xe8>
  14500. {
  14501. /* Update ADC state machine to error */
  14502. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14503. 80066a0: 687b ldr r3, [r7, #4]
  14504. 80066a2: 6d5b ldr r3, [r3, #84] @ 0x54
  14505. 80066a4: f043 0210 orr.w r2, r3, #16
  14506. 80066a8: 687b ldr r3, [r7, #4]
  14507. 80066aa: 655a str r2, [r3, #84] @ 0x54
  14508. /* Set ADC error code to ADC peripheral internal error */
  14509. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14510. 80066ac: 687b ldr r3, [r7, #4]
  14511. 80066ae: 6d9b ldr r3, [r3, #88] @ 0x58
  14512. 80066b0: f043 0201 orr.w r2, r3, #1
  14513. 80066b4: 687b ldr r3, [r7, #4]
  14514. 80066b6: 659a str r2, [r3, #88] @ 0x58
  14515. return HAL_ERROR;
  14516. 80066b8: 2301 movs r3, #1
  14517. 80066ba: e007 b.n 80066cc <ADC_Enable+0xf8>
  14518. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14519. 80066bc: 687b ldr r3, [r7, #4]
  14520. 80066be: 681b ldr r3, [r3, #0]
  14521. 80066c0: 681b ldr r3, [r3, #0]
  14522. 80066c2: f003 0301 and.w r3, r3, #1
  14523. 80066c6: 2b01 cmp r3, #1
  14524. 80066c8: d1cf bne.n 800666a <ADC_Enable+0x96>
  14525. }
  14526. }
  14527. }
  14528. /* Return HAL status */
  14529. return HAL_OK;
  14530. 80066ca: 2300 movs r3, #0
  14531. }
  14532. 80066cc: 4618 mov r0, r3
  14533. 80066ce: 3710 adds r7, #16
  14534. 80066d0: 46bd mov sp, r7
  14535. 80066d2: bd80 pop {r7, pc}
  14536. 80066d4: 8000003f .word 0x8000003f
  14537. 80066d8: 40022000 .word 0x40022000
  14538. 80066dc: 40022100 .word 0x40022100
  14539. 80066e0: 40022300 .word 0x40022300
  14540. 80066e4: 58026300 .word 0x58026300
  14541. 080066e8 <ADC_Disable>:
  14542. * stopped.
  14543. * @param hadc ADC handle
  14544. * @retval HAL status.
  14545. */
  14546. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  14547. {
  14548. 80066e8: b580 push {r7, lr}
  14549. 80066ea: b084 sub sp, #16
  14550. 80066ec: af00 add r7, sp, #0
  14551. 80066ee: 6078 str r0, [r7, #4]
  14552. uint32_t tickstart;
  14553. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  14554. 80066f0: 687b ldr r3, [r7, #4]
  14555. 80066f2: 681b ldr r3, [r3, #0]
  14556. 80066f4: 4618 mov r0, r3
  14557. 80066f6: f7ff f94a bl 800598e <LL_ADC_IsDisableOngoing>
  14558. 80066fa: 60f8 str r0, [r7, #12]
  14559. /* Verification if ADC is not already disabled: */
  14560. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  14561. /* disabled. */
  14562. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  14563. 80066fc: 687b ldr r3, [r7, #4]
  14564. 80066fe: 681b ldr r3, [r3, #0]
  14565. 8006700: 4618 mov r0, r3
  14566. 8006702: f7ff f931 bl 8005968 <LL_ADC_IsEnabled>
  14567. 8006706: 4603 mov r3, r0
  14568. 8006708: 2b00 cmp r3, #0
  14569. 800670a: d047 beq.n 800679c <ADC_Disable+0xb4>
  14570. && (tmp_adc_is_disable_on_going == 0UL)
  14571. 800670c: 68fb ldr r3, [r7, #12]
  14572. 800670e: 2b00 cmp r3, #0
  14573. 8006710: d144 bne.n 800679c <ADC_Disable+0xb4>
  14574. )
  14575. {
  14576. /* Check if conditions to disable the ADC are fulfilled */
  14577. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  14578. 8006712: 687b ldr r3, [r7, #4]
  14579. 8006714: 681b ldr r3, [r3, #0]
  14580. 8006716: 689b ldr r3, [r3, #8]
  14581. 8006718: f003 030d and.w r3, r3, #13
  14582. 800671c: 2b01 cmp r3, #1
  14583. 800671e: d10c bne.n 800673a <ADC_Disable+0x52>
  14584. {
  14585. /* Disable the ADC peripheral */
  14586. LL_ADC_Disable(hadc->Instance);
  14587. 8006720: 687b ldr r3, [r7, #4]
  14588. 8006722: 681b ldr r3, [r3, #0]
  14589. 8006724: 4618 mov r0, r3
  14590. 8006726: f7ff f90b bl 8005940 <LL_ADC_Disable>
  14591. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  14592. 800672a: 687b ldr r3, [r7, #4]
  14593. 800672c: 681b ldr r3, [r3, #0]
  14594. 800672e: 2203 movs r2, #3
  14595. 8006730: 601a str r2, [r3, #0]
  14596. return HAL_ERROR;
  14597. }
  14598. /* Wait for ADC effectively disabled */
  14599. /* Get tick count */
  14600. tickstart = HAL_GetTick();
  14601. 8006732: f7fe ff19 bl 8005568 <HAL_GetTick>
  14602. 8006736: 60b8 str r0, [r7, #8]
  14603. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14604. 8006738: e029 b.n 800678e <ADC_Disable+0xa6>
  14605. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14606. 800673a: 687b ldr r3, [r7, #4]
  14607. 800673c: 6d5b ldr r3, [r3, #84] @ 0x54
  14608. 800673e: f043 0210 orr.w r2, r3, #16
  14609. 8006742: 687b ldr r3, [r7, #4]
  14610. 8006744: 655a str r2, [r3, #84] @ 0x54
  14611. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14612. 8006746: 687b ldr r3, [r7, #4]
  14613. 8006748: 6d9b ldr r3, [r3, #88] @ 0x58
  14614. 800674a: f043 0201 orr.w r2, r3, #1
  14615. 800674e: 687b ldr r3, [r7, #4]
  14616. 8006750: 659a str r2, [r3, #88] @ 0x58
  14617. return HAL_ERROR;
  14618. 8006752: 2301 movs r3, #1
  14619. 8006754: e023 b.n 800679e <ADC_Disable+0xb6>
  14620. {
  14621. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  14622. 8006756: f7fe ff07 bl 8005568 <HAL_GetTick>
  14623. 800675a: 4602 mov r2, r0
  14624. 800675c: 68bb ldr r3, [r7, #8]
  14625. 800675e: 1ad3 subs r3, r2, r3
  14626. 8006760: 2b02 cmp r3, #2
  14627. 8006762: d914 bls.n 800678e <ADC_Disable+0xa6>
  14628. {
  14629. /* New check to avoid false timeout detection in case of preemption */
  14630. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14631. 8006764: 687b ldr r3, [r7, #4]
  14632. 8006766: 681b ldr r3, [r3, #0]
  14633. 8006768: 689b ldr r3, [r3, #8]
  14634. 800676a: f003 0301 and.w r3, r3, #1
  14635. 800676e: 2b00 cmp r3, #0
  14636. 8006770: d00d beq.n 800678e <ADC_Disable+0xa6>
  14637. {
  14638. /* Update ADC state machine to error */
  14639. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14640. 8006772: 687b ldr r3, [r7, #4]
  14641. 8006774: 6d5b ldr r3, [r3, #84] @ 0x54
  14642. 8006776: f043 0210 orr.w r2, r3, #16
  14643. 800677a: 687b ldr r3, [r7, #4]
  14644. 800677c: 655a str r2, [r3, #84] @ 0x54
  14645. /* Set ADC error code to ADC peripheral internal error */
  14646. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14647. 800677e: 687b ldr r3, [r7, #4]
  14648. 8006780: 6d9b ldr r3, [r3, #88] @ 0x58
  14649. 8006782: f043 0201 orr.w r2, r3, #1
  14650. 8006786: 687b ldr r3, [r7, #4]
  14651. 8006788: 659a str r2, [r3, #88] @ 0x58
  14652. return HAL_ERROR;
  14653. 800678a: 2301 movs r3, #1
  14654. 800678c: e007 b.n 800679e <ADC_Disable+0xb6>
  14655. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14656. 800678e: 687b ldr r3, [r7, #4]
  14657. 8006790: 681b ldr r3, [r3, #0]
  14658. 8006792: 689b ldr r3, [r3, #8]
  14659. 8006794: f003 0301 and.w r3, r3, #1
  14660. 8006798: 2b00 cmp r3, #0
  14661. 800679a: d1dc bne.n 8006756 <ADC_Disable+0x6e>
  14662. }
  14663. }
  14664. }
  14665. /* Return HAL status */
  14666. return HAL_OK;
  14667. 800679c: 2300 movs r3, #0
  14668. }
  14669. 800679e: 4618 mov r0, r3
  14670. 80067a0: 3710 adds r7, #16
  14671. 80067a2: 46bd mov sp, r7
  14672. 80067a4: bd80 pop {r7, pc}
  14673. 080067a6 <ADC_DMAConvCplt>:
  14674. * @brief DMA transfer complete callback.
  14675. * @param hdma pointer to DMA handle.
  14676. * @retval None
  14677. */
  14678. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  14679. {
  14680. 80067a6: b580 push {r7, lr}
  14681. 80067a8: b084 sub sp, #16
  14682. 80067aa: af00 add r7, sp, #0
  14683. 80067ac: 6078 str r0, [r7, #4]
  14684. /* Retrieve ADC handle corresponding to current DMA handle */
  14685. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14686. 80067ae: 687b ldr r3, [r7, #4]
  14687. 80067b0: 6b9b ldr r3, [r3, #56] @ 0x38
  14688. 80067b2: 60fb str r3, [r7, #12]
  14689. /* Update state machine on conversion status if not in error state */
  14690. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  14691. 80067b4: 68fb ldr r3, [r7, #12]
  14692. 80067b6: 6d5b ldr r3, [r3, #84] @ 0x54
  14693. 80067b8: f003 0350 and.w r3, r3, #80 @ 0x50
  14694. 80067bc: 2b00 cmp r3, #0
  14695. 80067be: d14b bne.n 8006858 <ADC_DMAConvCplt+0xb2>
  14696. {
  14697. /* Set ADC state */
  14698. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  14699. 80067c0: 68fb ldr r3, [r7, #12]
  14700. 80067c2: 6d5b ldr r3, [r3, #84] @ 0x54
  14701. 80067c4: f443 7200 orr.w r2, r3, #512 @ 0x200
  14702. 80067c8: 68fb ldr r3, [r7, #12]
  14703. 80067ca: 655a str r2, [r3, #84] @ 0x54
  14704. /* Determine whether any further conversion upcoming on group regular */
  14705. /* by external trigger, continuous mode or scan sequence on going */
  14706. /* to disable interruption. */
  14707. /* Is it the end of the regular sequence ? */
  14708. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  14709. 80067cc: 68fb ldr r3, [r7, #12]
  14710. 80067ce: 681b ldr r3, [r3, #0]
  14711. 80067d0: 681b ldr r3, [r3, #0]
  14712. 80067d2: f003 0308 and.w r3, r3, #8
  14713. 80067d6: 2b00 cmp r3, #0
  14714. 80067d8: d021 beq.n 800681e <ADC_DMAConvCplt+0x78>
  14715. {
  14716. /* Are conversions software-triggered ? */
  14717. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  14718. 80067da: 68fb ldr r3, [r7, #12]
  14719. 80067dc: 681b ldr r3, [r3, #0]
  14720. 80067de: 4618 mov r0, r3
  14721. 80067e0: f7fe ff9c bl 800571c <LL_ADC_REG_IsTriggerSourceSWStart>
  14722. 80067e4: 4603 mov r3, r0
  14723. 80067e6: 2b00 cmp r3, #0
  14724. 80067e8: d032 beq.n 8006850 <ADC_DMAConvCplt+0xaa>
  14725. {
  14726. /* Is CONT bit set ? */
  14727. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  14728. 80067ea: 68fb ldr r3, [r7, #12]
  14729. 80067ec: 681b ldr r3, [r3, #0]
  14730. 80067ee: 68db ldr r3, [r3, #12]
  14731. 80067f0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  14732. 80067f4: 2b00 cmp r3, #0
  14733. 80067f6: d12b bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14734. {
  14735. /* CONT bit is not set, no more conversions expected */
  14736. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  14737. 80067f8: 68fb ldr r3, [r7, #12]
  14738. 80067fa: 6d5b ldr r3, [r3, #84] @ 0x54
  14739. 80067fc: f423 7280 bic.w r2, r3, #256 @ 0x100
  14740. 8006800: 68fb ldr r3, [r7, #12]
  14741. 8006802: 655a str r2, [r3, #84] @ 0x54
  14742. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  14743. 8006804: 68fb ldr r3, [r7, #12]
  14744. 8006806: 6d5b ldr r3, [r3, #84] @ 0x54
  14745. 8006808: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14746. 800680c: 2b00 cmp r3, #0
  14747. 800680e: d11f bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14748. {
  14749. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  14750. 8006810: 68fb ldr r3, [r7, #12]
  14751. 8006812: 6d5b ldr r3, [r3, #84] @ 0x54
  14752. 8006814: f043 0201 orr.w r2, r3, #1
  14753. 8006818: 68fb ldr r3, [r7, #12]
  14754. 800681a: 655a str r2, [r3, #84] @ 0x54
  14755. 800681c: e018 b.n 8006850 <ADC_DMAConvCplt+0xaa>
  14756. }
  14757. else
  14758. {
  14759. /* DMA End of Transfer interrupt was triggered but conversions sequence
  14760. is not over. If DMACFG is set to 0, conversions are stopped. */
  14761. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  14762. 800681e: 68fb ldr r3, [r7, #12]
  14763. 8006820: 681b ldr r3, [r3, #0]
  14764. 8006822: 68db ldr r3, [r3, #12]
  14765. 8006824: f003 0303 and.w r3, r3, #3
  14766. 8006828: 2b00 cmp r3, #0
  14767. 800682a: d111 bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14768. {
  14769. /* DMACFG bit is not set, conversions are stopped. */
  14770. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  14771. 800682c: 68fb ldr r3, [r7, #12]
  14772. 800682e: 6d5b ldr r3, [r3, #84] @ 0x54
  14773. 8006830: f423 7280 bic.w r2, r3, #256 @ 0x100
  14774. 8006834: 68fb ldr r3, [r7, #12]
  14775. 8006836: 655a str r2, [r3, #84] @ 0x54
  14776. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  14777. 8006838: 68fb ldr r3, [r7, #12]
  14778. 800683a: 6d5b ldr r3, [r3, #84] @ 0x54
  14779. 800683c: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14780. 8006840: 2b00 cmp r3, #0
  14781. 8006842: d105 bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14782. {
  14783. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  14784. 8006844: 68fb ldr r3, [r7, #12]
  14785. 8006846: 6d5b ldr r3, [r3, #84] @ 0x54
  14786. 8006848: f043 0201 orr.w r2, r3, #1
  14787. 800684c: 68fb ldr r3, [r7, #12]
  14788. 800684e: 655a str r2, [r3, #84] @ 0x54
  14789. /* Conversion complete callback */
  14790. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14791. hadc->ConvCpltCallback(hadc);
  14792. #else
  14793. HAL_ADC_ConvCpltCallback(hadc);
  14794. 8006850: 68f8 ldr r0, [r7, #12]
  14795. 8006852: f7fb f817 bl 8001884 <HAL_ADC_ConvCpltCallback>
  14796. {
  14797. /* Call ADC DMA error callback */
  14798. hadc->DMA_Handle->XferErrorCallback(hdma);
  14799. }
  14800. }
  14801. }
  14802. 8006856: e00e b.n 8006876 <ADC_DMAConvCplt+0xd0>
  14803. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  14804. 8006858: 68fb ldr r3, [r7, #12]
  14805. 800685a: 6d5b ldr r3, [r3, #84] @ 0x54
  14806. 800685c: f003 0310 and.w r3, r3, #16
  14807. 8006860: 2b00 cmp r3, #0
  14808. 8006862: d003 beq.n 800686c <ADC_DMAConvCplt+0xc6>
  14809. HAL_ADC_ErrorCallback(hadc);
  14810. 8006864: 68f8 ldr r0, [r7, #12]
  14811. 8006866: f7ff fb4f bl 8005f08 <HAL_ADC_ErrorCallback>
  14812. }
  14813. 800686a: e004 b.n 8006876 <ADC_DMAConvCplt+0xd0>
  14814. hadc->DMA_Handle->XferErrorCallback(hdma);
  14815. 800686c: 68fb ldr r3, [r7, #12]
  14816. 800686e: 6cdb ldr r3, [r3, #76] @ 0x4c
  14817. 8006870: 6cdb ldr r3, [r3, #76] @ 0x4c
  14818. 8006872: 6878 ldr r0, [r7, #4]
  14819. 8006874: 4798 blx r3
  14820. }
  14821. 8006876: bf00 nop
  14822. 8006878: 3710 adds r7, #16
  14823. 800687a: 46bd mov sp, r7
  14824. 800687c: bd80 pop {r7, pc}
  14825. 0800687e <ADC_DMAHalfConvCplt>:
  14826. * @brief DMA half transfer complete callback.
  14827. * @param hdma pointer to DMA handle.
  14828. * @retval None
  14829. */
  14830. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  14831. {
  14832. 800687e: b580 push {r7, lr}
  14833. 8006880: b084 sub sp, #16
  14834. 8006882: af00 add r7, sp, #0
  14835. 8006884: 6078 str r0, [r7, #4]
  14836. /* Retrieve ADC handle corresponding to current DMA handle */
  14837. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14838. 8006886: 687b ldr r3, [r7, #4]
  14839. 8006888: 6b9b ldr r3, [r3, #56] @ 0x38
  14840. 800688a: 60fb str r3, [r7, #12]
  14841. /* Half conversion callback */
  14842. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14843. hadc->ConvHalfCpltCallback(hadc);
  14844. #else
  14845. HAL_ADC_ConvHalfCpltCallback(hadc);
  14846. 800688c: 68f8 ldr r0, [r7, #12]
  14847. 800688e: f7ff fb31 bl 8005ef4 <HAL_ADC_ConvHalfCpltCallback>
  14848. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  14849. }
  14850. 8006892: bf00 nop
  14851. 8006894: 3710 adds r7, #16
  14852. 8006896: 46bd mov sp, r7
  14853. 8006898: bd80 pop {r7, pc}
  14854. 0800689a <ADC_DMAError>:
  14855. * @brief DMA error callback.
  14856. * @param hdma pointer to DMA handle.
  14857. * @retval None
  14858. */
  14859. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  14860. {
  14861. 800689a: b580 push {r7, lr}
  14862. 800689c: b084 sub sp, #16
  14863. 800689e: af00 add r7, sp, #0
  14864. 80068a0: 6078 str r0, [r7, #4]
  14865. /* Retrieve ADC handle corresponding to current DMA handle */
  14866. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14867. 80068a2: 687b ldr r3, [r7, #4]
  14868. 80068a4: 6b9b ldr r3, [r3, #56] @ 0x38
  14869. 80068a6: 60fb str r3, [r7, #12]
  14870. /* Set ADC state */
  14871. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  14872. 80068a8: 68fb ldr r3, [r7, #12]
  14873. 80068aa: 6d5b ldr r3, [r3, #84] @ 0x54
  14874. 80068ac: f043 0240 orr.w r2, r3, #64 @ 0x40
  14875. 80068b0: 68fb ldr r3, [r7, #12]
  14876. 80068b2: 655a str r2, [r3, #84] @ 0x54
  14877. /* Set ADC error code to DMA error */
  14878. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  14879. 80068b4: 68fb ldr r3, [r7, #12]
  14880. 80068b6: 6d9b ldr r3, [r3, #88] @ 0x58
  14881. 80068b8: f043 0204 orr.w r2, r3, #4
  14882. 80068bc: 68fb ldr r3, [r7, #12]
  14883. 80068be: 659a str r2, [r3, #88] @ 0x58
  14884. /* Error callback */
  14885. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14886. hadc->ErrorCallback(hadc);
  14887. #else
  14888. HAL_ADC_ErrorCallback(hadc);
  14889. 80068c0: 68f8 ldr r0, [r7, #12]
  14890. 80068c2: f7ff fb21 bl 8005f08 <HAL_ADC_ErrorCallback>
  14891. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  14892. }
  14893. 80068c6: bf00 nop
  14894. 80068c8: 3710 adds r7, #16
  14895. 80068ca: 46bd mov sp, r7
  14896. 80068cc: bd80 pop {r7, pc}
  14897. ...
  14898. 080068d0 <ADC_ConfigureBoostMode>:
  14899. * stopped.
  14900. * @param hadc ADC handle
  14901. * @retval None.
  14902. */
  14903. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  14904. {
  14905. 80068d0: b580 push {r7, lr}
  14906. 80068d2: b084 sub sp, #16
  14907. 80068d4: af00 add r7, sp, #0
  14908. 80068d6: 6078 str r0, [r7, #4]
  14909. uint32_t freq;
  14910. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  14911. 80068d8: 687b ldr r3, [r7, #4]
  14912. 80068da: 681b ldr r3, [r3, #0]
  14913. 80068dc: 4a7a ldr r2, [pc, #488] @ (8006ac8 <ADC_ConfigureBoostMode+0x1f8>)
  14914. 80068de: 4293 cmp r3, r2
  14915. 80068e0: d004 beq.n 80068ec <ADC_ConfigureBoostMode+0x1c>
  14916. 80068e2: 687b ldr r3, [r7, #4]
  14917. 80068e4: 681b ldr r3, [r3, #0]
  14918. 80068e6: 4a79 ldr r2, [pc, #484] @ (8006acc <ADC_ConfigureBoostMode+0x1fc>)
  14919. 80068e8: 4293 cmp r3, r2
  14920. 80068ea: d109 bne.n 8006900 <ADC_ConfigureBoostMode+0x30>
  14921. 80068ec: 4b78 ldr r3, [pc, #480] @ (8006ad0 <ADC_ConfigureBoostMode+0x200>)
  14922. 80068ee: 689b ldr r3, [r3, #8]
  14923. 80068f0: f403 3340 and.w r3, r3, #196608 @ 0x30000
  14924. 80068f4: 2b00 cmp r3, #0
  14925. 80068f6: bf14 ite ne
  14926. 80068f8: 2301 movne r3, #1
  14927. 80068fa: 2300 moveq r3, #0
  14928. 80068fc: b2db uxtb r3, r3
  14929. 80068fe: e008 b.n 8006912 <ADC_ConfigureBoostMode+0x42>
  14930. 8006900: 4b74 ldr r3, [pc, #464] @ (8006ad4 <ADC_ConfigureBoostMode+0x204>)
  14931. 8006902: 689b ldr r3, [r3, #8]
  14932. 8006904: f403 3340 and.w r3, r3, #196608 @ 0x30000
  14933. 8006908: 2b00 cmp r3, #0
  14934. 800690a: bf14 ite ne
  14935. 800690c: 2301 movne r3, #1
  14936. 800690e: 2300 moveq r3, #0
  14937. 8006910: b2db uxtb r3, r3
  14938. 8006912: 2b00 cmp r3, #0
  14939. 8006914: d01c beq.n 8006950 <ADC_ConfigureBoostMode+0x80>
  14940. {
  14941. freq = HAL_RCC_GetHCLKFreq();
  14942. 8006916: f005 fb47 bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  14943. 800691a: 60f8 str r0, [r7, #12]
  14944. switch (hadc->Init.ClockPrescaler)
  14945. 800691c: 687b ldr r3, [r7, #4]
  14946. 800691e: 685b ldr r3, [r3, #4]
  14947. 8006920: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  14948. 8006924: d010 beq.n 8006948 <ADC_ConfigureBoostMode+0x78>
  14949. 8006926: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  14950. 800692a: d873 bhi.n 8006a14 <ADC_ConfigureBoostMode+0x144>
  14951. 800692c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  14952. 8006930: d002 beq.n 8006938 <ADC_ConfigureBoostMode+0x68>
  14953. 8006932: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  14954. 8006936: d16d bne.n 8006a14 <ADC_ConfigureBoostMode+0x144>
  14955. {
  14956. case ADC_CLOCK_SYNC_PCLK_DIV1:
  14957. case ADC_CLOCK_SYNC_PCLK_DIV2:
  14958. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  14959. 8006938: 687b ldr r3, [r7, #4]
  14960. 800693a: 685b ldr r3, [r3, #4]
  14961. 800693c: 0c1b lsrs r3, r3, #16
  14962. 800693e: 68fa ldr r2, [r7, #12]
  14963. 8006940: fbb2 f3f3 udiv r3, r2, r3
  14964. 8006944: 60fb str r3, [r7, #12]
  14965. break;
  14966. 8006946: e068 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  14967. case ADC_CLOCK_SYNC_PCLK_DIV4:
  14968. freq /= 4UL;
  14969. 8006948: 68fb ldr r3, [r7, #12]
  14970. 800694a: 089b lsrs r3, r3, #2
  14971. 800694c: 60fb str r3, [r7, #12]
  14972. break;
  14973. 800694e: e064 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  14974. break;
  14975. }
  14976. }
  14977. else
  14978. {
  14979. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  14980. 8006950: f44f 2000 mov.w r0, #524288 @ 0x80000
  14981. 8006954: f04f 0100 mov.w r1, #0
  14982. 8006958: f006 fdb2 bl 800d4c0 <HAL_RCCEx_GetPeriphCLKFreq>
  14983. 800695c: 60f8 str r0, [r7, #12]
  14984. switch (hadc->Init.ClockPrescaler)
  14985. 800695e: 687b ldr r3, [r7, #4]
  14986. 8006960: 685b ldr r3, [r3, #4]
  14987. 8006962: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  14988. 8006966: d051 beq.n 8006a0c <ADC_ConfigureBoostMode+0x13c>
  14989. 8006968: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  14990. 800696c: d854 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  14991. 800696e: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  14992. 8006972: d047 beq.n 8006a04 <ADC_ConfigureBoostMode+0x134>
  14993. 8006974: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  14994. 8006978: d84e bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  14995. 800697a: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  14996. 800697e: d03d beq.n 80069fc <ADC_ConfigureBoostMode+0x12c>
  14997. 8006980: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  14998. 8006984: d848 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  14999. 8006986: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  15000. 800698a: d033 beq.n 80069f4 <ADC_ConfigureBoostMode+0x124>
  15001. 800698c: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  15002. 8006990: d842 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15003. 8006992: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  15004. 8006996: d029 beq.n 80069ec <ADC_ConfigureBoostMode+0x11c>
  15005. 8006998: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  15006. 800699c: d83c bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15007. 800699e: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  15008. 80069a2: d01a beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15009. 80069a4: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  15010. 80069a8: d836 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15011. 80069aa: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  15012. 80069ae: d014 beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15013. 80069b0: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  15014. 80069b4: d830 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15015. 80069b6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  15016. 80069ba: d00e beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15017. 80069bc: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  15018. 80069c0: d82a bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15019. 80069c2: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  15020. 80069c6: d008 beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15021. 80069c8: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  15022. 80069cc: d824 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15023. 80069ce: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  15024. 80069d2: d002 beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15025. 80069d4: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  15026. 80069d8: d11e bne.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15027. case ADC_CLOCK_ASYNC_DIV4:
  15028. case ADC_CLOCK_ASYNC_DIV6:
  15029. case ADC_CLOCK_ASYNC_DIV8:
  15030. case ADC_CLOCK_ASYNC_DIV10:
  15031. case ADC_CLOCK_ASYNC_DIV12:
  15032. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  15033. 80069da: 687b ldr r3, [r7, #4]
  15034. 80069dc: 685b ldr r3, [r3, #4]
  15035. 80069de: 0c9b lsrs r3, r3, #18
  15036. 80069e0: 005b lsls r3, r3, #1
  15037. 80069e2: 68fa ldr r2, [r7, #12]
  15038. 80069e4: fbb2 f3f3 udiv r3, r2, r3
  15039. 80069e8: 60fb str r3, [r7, #12]
  15040. break;
  15041. 80069ea: e016 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15042. case ADC_CLOCK_ASYNC_DIV16:
  15043. freq /= 16UL;
  15044. 80069ec: 68fb ldr r3, [r7, #12]
  15045. 80069ee: 091b lsrs r3, r3, #4
  15046. 80069f0: 60fb str r3, [r7, #12]
  15047. break;
  15048. 80069f2: e012 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15049. case ADC_CLOCK_ASYNC_DIV32:
  15050. freq /= 32UL;
  15051. 80069f4: 68fb ldr r3, [r7, #12]
  15052. 80069f6: 095b lsrs r3, r3, #5
  15053. 80069f8: 60fb str r3, [r7, #12]
  15054. break;
  15055. 80069fa: e00e b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15056. case ADC_CLOCK_ASYNC_DIV64:
  15057. freq /= 64UL;
  15058. 80069fc: 68fb ldr r3, [r7, #12]
  15059. 80069fe: 099b lsrs r3, r3, #6
  15060. 8006a00: 60fb str r3, [r7, #12]
  15061. break;
  15062. 8006a02: e00a b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15063. case ADC_CLOCK_ASYNC_DIV128:
  15064. freq /= 128UL;
  15065. 8006a04: 68fb ldr r3, [r7, #12]
  15066. 8006a06: 09db lsrs r3, r3, #7
  15067. 8006a08: 60fb str r3, [r7, #12]
  15068. break;
  15069. 8006a0a: e006 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15070. case ADC_CLOCK_ASYNC_DIV256:
  15071. freq /= 256UL;
  15072. 8006a0c: 68fb ldr r3, [r7, #12]
  15073. 8006a0e: 0a1b lsrs r3, r3, #8
  15074. 8006a10: 60fb str r3, [r7, #12]
  15075. break;
  15076. 8006a12: e002 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15077. break;
  15078. 8006a14: bf00 nop
  15079. 8006a16: e000 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15080. default:
  15081. break;
  15082. 8006a18: bf00 nop
  15083. else /* if(freq > 25000000UL) */
  15084. {
  15085. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15086. }
  15087. #else
  15088. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  15089. 8006a1a: f7fe fdb1 bl 8005580 <HAL_GetREVID>
  15090. 8006a1e: 4603 mov r3, r0
  15091. 8006a20: f241 0203 movw r2, #4099 @ 0x1003
  15092. 8006a24: 4293 cmp r3, r2
  15093. 8006a26: d815 bhi.n 8006a54 <ADC_ConfigureBoostMode+0x184>
  15094. {
  15095. if (freq > 20000000UL)
  15096. 8006a28: 68fb ldr r3, [r7, #12]
  15097. 8006a2a: 4a2b ldr r2, [pc, #172] @ (8006ad8 <ADC_ConfigureBoostMode+0x208>)
  15098. 8006a2c: 4293 cmp r3, r2
  15099. 8006a2e: d908 bls.n 8006a42 <ADC_ConfigureBoostMode+0x172>
  15100. {
  15101. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  15102. 8006a30: 687b ldr r3, [r7, #4]
  15103. 8006a32: 681b ldr r3, [r3, #0]
  15104. 8006a34: 689a ldr r2, [r3, #8]
  15105. 8006a36: 687b ldr r3, [r7, #4]
  15106. 8006a38: 681b ldr r3, [r3, #0]
  15107. 8006a3a: f442 7280 orr.w r2, r2, #256 @ 0x100
  15108. 8006a3e: 609a str r2, [r3, #8]
  15109. {
  15110. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15111. }
  15112. }
  15113. #endif /* ADC_VER_V5_3 */
  15114. }
  15115. 8006a40: e03e b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15116. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  15117. 8006a42: 687b ldr r3, [r7, #4]
  15118. 8006a44: 681b ldr r3, [r3, #0]
  15119. 8006a46: 689a ldr r2, [r3, #8]
  15120. 8006a48: 687b ldr r3, [r7, #4]
  15121. 8006a4a: 681b ldr r3, [r3, #0]
  15122. 8006a4c: f422 7280 bic.w r2, r2, #256 @ 0x100
  15123. 8006a50: 609a str r2, [r3, #8]
  15124. }
  15125. 8006a52: e035 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15126. freq /= 2U; /* divider by 2 for Rev.V */
  15127. 8006a54: 68fb ldr r3, [r7, #12]
  15128. 8006a56: 085b lsrs r3, r3, #1
  15129. 8006a58: 60fb str r3, [r7, #12]
  15130. if (freq <= 6250000UL)
  15131. 8006a5a: 68fb ldr r3, [r7, #12]
  15132. 8006a5c: 4a1f ldr r2, [pc, #124] @ (8006adc <ADC_ConfigureBoostMode+0x20c>)
  15133. 8006a5e: 4293 cmp r3, r2
  15134. 8006a60: d808 bhi.n 8006a74 <ADC_ConfigureBoostMode+0x1a4>
  15135. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  15136. 8006a62: 687b ldr r3, [r7, #4]
  15137. 8006a64: 681b ldr r3, [r3, #0]
  15138. 8006a66: 689a ldr r2, [r3, #8]
  15139. 8006a68: 687b ldr r3, [r7, #4]
  15140. 8006a6a: 681b ldr r3, [r3, #0]
  15141. 8006a6c: f422 7240 bic.w r2, r2, #768 @ 0x300
  15142. 8006a70: 609a str r2, [r3, #8]
  15143. }
  15144. 8006a72: e025 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15145. else if (freq <= 12500000UL)
  15146. 8006a74: 68fb ldr r3, [r7, #12]
  15147. 8006a76: 4a1a ldr r2, [pc, #104] @ (8006ae0 <ADC_ConfigureBoostMode+0x210>)
  15148. 8006a78: 4293 cmp r3, r2
  15149. 8006a7a: d80a bhi.n 8006a92 <ADC_ConfigureBoostMode+0x1c2>
  15150. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  15151. 8006a7c: 687b ldr r3, [r7, #4]
  15152. 8006a7e: 681b ldr r3, [r3, #0]
  15153. 8006a80: 689b ldr r3, [r3, #8]
  15154. 8006a82: f423 7240 bic.w r2, r3, #768 @ 0x300
  15155. 8006a86: 687b ldr r3, [r7, #4]
  15156. 8006a88: 681b ldr r3, [r3, #0]
  15157. 8006a8a: f442 7280 orr.w r2, r2, #256 @ 0x100
  15158. 8006a8e: 609a str r2, [r3, #8]
  15159. }
  15160. 8006a90: e016 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15161. else if (freq <= 25000000UL)
  15162. 8006a92: 68fb ldr r3, [r7, #12]
  15163. 8006a94: 4a13 ldr r2, [pc, #76] @ (8006ae4 <ADC_ConfigureBoostMode+0x214>)
  15164. 8006a96: 4293 cmp r3, r2
  15165. 8006a98: d80a bhi.n 8006ab0 <ADC_ConfigureBoostMode+0x1e0>
  15166. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  15167. 8006a9a: 687b ldr r3, [r7, #4]
  15168. 8006a9c: 681b ldr r3, [r3, #0]
  15169. 8006a9e: 689b ldr r3, [r3, #8]
  15170. 8006aa0: f423 7240 bic.w r2, r3, #768 @ 0x300
  15171. 8006aa4: 687b ldr r3, [r7, #4]
  15172. 8006aa6: 681b ldr r3, [r3, #0]
  15173. 8006aa8: f442 7200 orr.w r2, r2, #512 @ 0x200
  15174. 8006aac: 609a str r2, [r3, #8]
  15175. }
  15176. 8006aae: e007 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15177. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15178. 8006ab0: 687b ldr r3, [r7, #4]
  15179. 8006ab2: 681b ldr r3, [r3, #0]
  15180. 8006ab4: 689a ldr r2, [r3, #8]
  15181. 8006ab6: 687b ldr r3, [r7, #4]
  15182. 8006ab8: 681b ldr r3, [r3, #0]
  15183. 8006aba: f442 7240 orr.w r2, r2, #768 @ 0x300
  15184. 8006abe: 609a str r2, [r3, #8]
  15185. }
  15186. 8006ac0: bf00 nop
  15187. 8006ac2: 3710 adds r7, #16
  15188. 8006ac4: 46bd mov sp, r7
  15189. 8006ac6: bd80 pop {r7, pc}
  15190. 8006ac8: 40022000 .word 0x40022000
  15191. 8006acc: 40022100 .word 0x40022100
  15192. 8006ad0: 40022300 .word 0x40022300
  15193. 8006ad4: 58026300 .word 0x58026300
  15194. 8006ad8: 01312d00 .word 0x01312d00
  15195. 8006adc: 005f5e10 .word 0x005f5e10
  15196. 8006ae0: 00bebc20 .word 0x00bebc20
  15197. 8006ae4: 017d7840 .word 0x017d7840
  15198. 08006ae8 <LL_ADC_IsEnabled>:
  15199. {
  15200. 8006ae8: b480 push {r7}
  15201. 8006aea: b083 sub sp, #12
  15202. 8006aec: af00 add r7, sp, #0
  15203. 8006aee: 6078 str r0, [r7, #4]
  15204. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  15205. 8006af0: 687b ldr r3, [r7, #4]
  15206. 8006af2: 689b ldr r3, [r3, #8]
  15207. 8006af4: f003 0301 and.w r3, r3, #1
  15208. 8006af8: 2b01 cmp r3, #1
  15209. 8006afa: d101 bne.n 8006b00 <LL_ADC_IsEnabled+0x18>
  15210. 8006afc: 2301 movs r3, #1
  15211. 8006afe: e000 b.n 8006b02 <LL_ADC_IsEnabled+0x1a>
  15212. 8006b00: 2300 movs r3, #0
  15213. }
  15214. 8006b02: 4618 mov r0, r3
  15215. 8006b04: 370c adds r7, #12
  15216. 8006b06: 46bd mov sp, r7
  15217. 8006b08: f85d 7b04 ldr.w r7, [sp], #4
  15218. 8006b0c: 4770 bx lr
  15219. ...
  15220. 08006b10 <LL_ADC_StartCalibration>:
  15221. {
  15222. 8006b10: b480 push {r7}
  15223. 8006b12: b085 sub sp, #20
  15224. 8006b14: af00 add r7, sp, #0
  15225. 8006b16: 60f8 str r0, [r7, #12]
  15226. 8006b18: 60b9 str r1, [r7, #8]
  15227. 8006b1a: 607a str r2, [r7, #4]
  15228. MODIFY_REG(ADCx->CR,
  15229. 8006b1c: 68fb ldr r3, [r7, #12]
  15230. 8006b1e: 689a ldr r2, [r3, #8]
  15231. 8006b20: 4b09 ldr r3, [pc, #36] @ (8006b48 <LL_ADC_StartCalibration+0x38>)
  15232. 8006b22: 4013 ands r3, r2
  15233. 8006b24: 68ba ldr r2, [r7, #8]
  15234. 8006b26: f402 3180 and.w r1, r2, #65536 @ 0x10000
  15235. 8006b2a: 687a ldr r2, [r7, #4]
  15236. 8006b2c: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  15237. 8006b30: 430a orrs r2, r1
  15238. 8006b32: 4313 orrs r3, r2
  15239. 8006b34: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  15240. 8006b38: 68fb ldr r3, [r7, #12]
  15241. 8006b3a: 609a str r2, [r3, #8]
  15242. }
  15243. 8006b3c: bf00 nop
  15244. 8006b3e: 3714 adds r7, #20
  15245. 8006b40: 46bd mov sp, r7
  15246. 8006b42: f85d 7b04 ldr.w r7, [sp], #4
  15247. 8006b46: 4770 bx lr
  15248. 8006b48: 3ffeffc0 .word 0x3ffeffc0
  15249. 08006b4c <LL_ADC_IsCalibrationOnGoing>:
  15250. {
  15251. 8006b4c: b480 push {r7}
  15252. 8006b4e: b083 sub sp, #12
  15253. 8006b50: af00 add r7, sp, #0
  15254. 8006b52: 6078 str r0, [r7, #4]
  15255. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  15256. 8006b54: 687b ldr r3, [r7, #4]
  15257. 8006b56: 689b ldr r3, [r3, #8]
  15258. 8006b58: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15259. 8006b5c: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15260. 8006b60: d101 bne.n 8006b66 <LL_ADC_IsCalibrationOnGoing+0x1a>
  15261. 8006b62: 2301 movs r3, #1
  15262. 8006b64: e000 b.n 8006b68 <LL_ADC_IsCalibrationOnGoing+0x1c>
  15263. 8006b66: 2300 movs r3, #0
  15264. }
  15265. 8006b68: 4618 mov r0, r3
  15266. 8006b6a: 370c adds r7, #12
  15267. 8006b6c: 46bd mov sp, r7
  15268. 8006b6e: f85d 7b04 ldr.w r7, [sp], #4
  15269. 8006b72: 4770 bx lr
  15270. 08006b74 <LL_ADC_REG_IsConversionOngoing>:
  15271. {
  15272. 8006b74: b480 push {r7}
  15273. 8006b76: b083 sub sp, #12
  15274. 8006b78: af00 add r7, sp, #0
  15275. 8006b7a: 6078 str r0, [r7, #4]
  15276. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  15277. 8006b7c: 687b ldr r3, [r7, #4]
  15278. 8006b7e: 689b ldr r3, [r3, #8]
  15279. 8006b80: f003 0304 and.w r3, r3, #4
  15280. 8006b84: 2b04 cmp r3, #4
  15281. 8006b86: d101 bne.n 8006b8c <LL_ADC_REG_IsConversionOngoing+0x18>
  15282. 8006b88: 2301 movs r3, #1
  15283. 8006b8a: e000 b.n 8006b8e <LL_ADC_REG_IsConversionOngoing+0x1a>
  15284. 8006b8c: 2300 movs r3, #0
  15285. }
  15286. 8006b8e: 4618 mov r0, r3
  15287. 8006b90: 370c adds r7, #12
  15288. 8006b92: 46bd mov sp, r7
  15289. 8006b94: f85d 7b04 ldr.w r7, [sp], #4
  15290. 8006b98: 4770 bx lr
  15291. ...
  15292. 08006b9c <HAL_ADCEx_Calibration_Start>:
  15293. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  15294. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  15295. * @retval HAL status
  15296. */
  15297. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  15298. {
  15299. 8006b9c: b580 push {r7, lr}
  15300. 8006b9e: b086 sub sp, #24
  15301. 8006ba0: af00 add r7, sp, #0
  15302. 8006ba2: 60f8 str r0, [r7, #12]
  15303. 8006ba4: 60b9 str r1, [r7, #8]
  15304. 8006ba6: 607a str r2, [r7, #4]
  15305. HAL_StatusTypeDef tmp_hal_status;
  15306. __IO uint32_t wait_loop_index = 0UL;
  15307. 8006ba8: 2300 movs r3, #0
  15308. 8006baa: 613b str r3, [r7, #16]
  15309. /* Check the parameters */
  15310. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  15311. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  15312. /* Process locked */
  15313. __HAL_LOCK(hadc);
  15314. 8006bac: 68fb ldr r3, [r7, #12]
  15315. 8006bae: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15316. 8006bb2: 2b01 cmp r3, #1
  15317. 8006bb4: d101 bne.n 8006bba <HAL_ADCEx_Calibration_Start+0x1e>
  15318. 8006bb6: 2302 movs r3, #2
  15319. 8006bb8: e04c b.n 8006c54 <HAL_ADCEx_Calibration_Start+0xb8>
  15320. 8006bba: 68fb ldr r3, [r7, #12]
  15321. 8006bbc: 2201 movs r2, #1
  15322. 8006bbe: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15323. /* Calibration prerequisite: ADC must be disabled. */
  15324. /* Disable the ADC (if not already disabled) */
  15325. tmp_hal_status = ADC_Disable(hadc);
  15326. 8006bc2: 68f8 ldr r0, [r7, #12]
  15327. 8006bc4: f7ff fd90 bl 80066e8 <ADC_Disable>
  15328. 8006bc8: 4603 mov r3, r0
  15329. 8006bca: 75fb strb r3, [r7, #23]
  15330. /* Check if ADC is effectively disabled */
  15331. if (tmp_hal_status == HAL_OK)
  15332. 8006bcc: 7dfb ldrb r3, [r7, #23]
  15333. 8006bce: 2b00 cmp r3, #0
  15334. 8006bd0: d135 bne.n 8006c3e <HAL_ADCEx_Calibration_Start+0xa2>
  15335. {
  15336. /* Set ADC state */
  15337. ADC_STATE_CLR_SET(hadc->State,
  15338. 8006bd2: 68fb ldr r3, [r7, #12]
  15339. 8006bd4: 6d5a ldr r2, [r3, #84] @ 0x54
  15340. 8006bd6: 4b21 ldr r3, [pc, #132] @ (8006c5c <HAL_ADCEx_Calibration_Start+0xc0>)
  15341. 8006bd8: 4013 ands r3, r2
  15342. 8006bda: f043 0202 orr.w r2, r3, #2
  15343. 8006bde: 68fb ldr r3, [r7, #12]
  15344. 8006be0: 655a str r2, [r3, #84] @ 0x54
  15345. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  15346. HAL_ADC_STATE_BUSY_INTERNAL);
  15347. /* Start ADC calibration in mode single-ended or differential */
  15348. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  15349. 8006be2: 68fb ldr r3, [r7, #12]
  15350. 8006be4: 681b ldr r3, [r3, #0]
  15351. 8006be6: 687a ldr r2, [r7, #4]
  15352. 8006be8: 68b9 ldr r1, [r7, #8]
  15353. 8006bea: 4618 mov r0, r3
  15354. 8006bec: f7ff ff90 bl 8006b10 <LL_ADC_StartCalibration>
  15355. /* Wait for calibration completion */
  15356. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15357. 8006bf0: e014 b.n 8006c1c <HAL_ADCEx_Calibration_Start+0x80>
  15358. {
  15359. wait_loop_index++;
  15360. 8006bf2: 693b ldr r3, [r7, #16]
  15361. 8006bf4: 3301 adds r3, #1
  15362. 8006bf6: 613b str r3, [r7, #16]
  15363. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  15364. 8006bf8: 693b ldr r3, [r7, #16]
  15365. 8006bfa: 4a19 ldr r2, [pc, #100] @ (8006c60 <HAL_ADCEx_Calibration_Start+0xc4>)
  15366. 8006bfc: 4293 cmp r3, r2
  15367. 8006bfe: d30d bcc.n 8006c1c <HAL_ADCEx_Calibration_Start+0x80>
  15368. {
  15369. /* Update ADC state machine to error */
  15370. ADC_STATE_CLR_SET(hadc->State,
  15371. 8006c00: 68fb ldr r3, [r7, #12]
  15372. 8006c02: 6d5b ldr r3, [r3, #84] @ 0x54
  15373. 8006c04: f023 0312 bic.w r3, r3, #18
  15374. 8006c08: f043 0210 orr.w r2, r3, #16
  15375. 8006c0c: 68fb ldr r3, [r7, #12]
  15376. 8006c0e: 655a str r2, [r3, #84] @ 0x54
  15377. HAL_ADC_STATE_BUSY_INTERNAL,
  15378. HAL_ADC_STATE_ERROR_INTERNAL);
  15379. /* Process unlocked */
  15380. __HAL_UNLOCK(hadc);
  15381. 8006c10: 68fb ldr r3, [r7, #12]
  15382. 8006c12: 2200 movs r2, #0
  15383. 8006c14: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15384. return HAL_ERROR;
  15385. 8006c18: 2301 movs r3, #1
  15386. 8006c1a: e01b b.n 8006c54 <HAL_ADCEx_Calibration_Start+0xb8>
  15387. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15388. 8006c1c: 68fb ldr r3, [r7, #12]
  15389. 8006c1e: 681b ldr r3, [r3, #0]
  15390. 8006c20: 4618 mov r0, r3
  15391. 8006c22: f7ff ff93 bl 8006b4c <LL_ADC_IsCalibrationOnGoing>
  15392. 8006c26: 4603 mov r3, r0
  15393. 8006c28: 2b00 cmp r3, #0
  15394. 8006c2a: d1e2 bne.n 8006bf2 <HAL_ADCEx_Calibration_Start+0x56>
  15395. }
  15396. }
  15397. /* Set ADC state */
  15398. ADC_STATE_CLR_SET(hadc->State,
  15399. 8006c2c: 68fb ldr r3, [r7, #12]
  15400. 8006c2e: 6d5b ldr r3, [r3, #84] @ 0x54
  15401. 8006c30: f023 0303 bic.w r3, r3, #3
  15402. 8006c34: f043 0201 orr.w r2, r3, #1
  15403. 8006c38: 68fb ldr r3, [r7, #12]
  15404. 8006c3a: 655a str r2, [r3, #84] @ 0x54
  15405. 8006c3c: e005 b.n 8006c4a <HAL_ADCEx_Calibration_Start+0xae>
  15406. HAL_ADC_STATE_BUSY_INTERNAL,
  15407. HAL_ADC_STATE_READY);
  15408. }
  15409. else
  15410. {
  15411. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15412. 8006c3e: 68fb ldr r3, [r7, #12]
  15413. 8006c40: 6d5b ldr r3, [r3, #84] @ 0x54
  15414. 8006c42: f043 0210 orr.w r2, r3, #16
  15415. 8006c46: 68fb ldr r3, [r7, #12]
  15416. 8006c48: 655a str r2, [r3, #84] @ 0x54
  15417. /* Note: No need to update variable "tmp_hal_status" here: already set */
  15418. /* to state "HAL_ERROR" by function disabling the ADC. */
  15419. }
  15420. /* Process unlocked */
  15421. __HAL_UNLOCK(hadc);
  15422. 8006c4a: 68fb ldr r3, [r7, #12]
  15423. 8006c4c: 2200 movs r2, #0
  15424. 8006c4e: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15425. /* Return function status */
  15426. return tmp_hal_status;
  15427. 8006c52: 7dfb ldrb r3, [r7, #23]
  15428. }
  15429. 8006c54: 4618 mov r0, r3
  15430. 8006c56: 3718 adds r7, #24
  15431. 8006c58: 46bd mov sp, r7
  15432. 8006c5a: bd80 pop {r7, pc}
  15433. 8006c5c: ffffeefd .word 0xffffeefd
  15434. 8006c60: 25c3f800 .word 0x25c3f800
  15435. 08006c64 <HAL_ADCEx_MultiModeConfigChannel>:
  15436. * @param hadc Master ADC handle
  15437. * @param multimode Structure of ADC multimode configuration
  15438. * @retval HAL status
  15439. */
  15440. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  15441. {
  15442. 8006c64: b590 push {r4, r7, lr}
  15443. 8006c66: b09f sub sp, #124 @ 0x7c
  15444. 8006c68: af00 add r7, sp, #0
  15445. 8006c6a: 6078 str r0, [r7, #4]
  15446. 8006c6c: 6039 str r1, [r7, #0]
  15447. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  15448. 8006c6e: 2300 movs r3, #0
  15449. 8006c70: f887 3077 strb.w r3, [r7, #119] @ 0x77
  15450. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  15451. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  15452. }
  15453. /* Process locked */
  15454. __HAL_LOCK(hadc);
  15455. 8006c74: 687b ldr r3, [r7, #4]
  15456. 8006c76: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15457. 8006c7a: 2b01 cmp r3, #1
  15458. 8006c7c: d101 bne.n 8006c82 <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  15459. 8006c7e: 2302 movs r3, #2
  15460. 8006c80: e0be b.n 8006e00 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  15461. 8006c82: 687b ldr r3, [r7, #4]
  15462. 8006c84: 2201 movs r2, #1
  15463. 8006c86: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15464. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  15465. 8006c8a: 2300 movs r3, #0
  15466. 8006c8c: 65fb str r3, [r7, #92] @ 0x5c
  15467. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  15468. 8006c8e: 2300 movs r3, #0
  15469. 8006c90: 663b str r3, [r7, #96] @ 0x60
  15470. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  15471. 8006c92: 687b ldr r3, [r7, #4]
  15472. 8006c94: 681b ldr r3, [r3, #0]
  15473. 8006c96: 4a5c ldr r2, [pc, #368] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15474. 8006c98: 4293 cmp r3, r2
  15475. 8006c9a: d102 bne.n 8006ca2 <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  15476. 8006c9c: 4b5b ldr r3, [pc, #364] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15477. 8006c9e: 60bb str r3, [r7, #8]
  15478. 8006ca0: e001 b.n 8006ca6 <HAL_ADCEx_MultiModeConfigChannel+0x42>
  15479. 8006ca2: 2300 movs r3, #0
  15480. 8006ca4: 60bb str r3, [r7, #8]
  15481. if (tmphadcSlave.Instance == NULL)
  15482. 8006ca6: 68bb ldr r3, [r7, #8]
  15483. 8006ca8: 2b00 cmp r3, #0
  15484. 8006caa: d10b bne.n 8006cc4 <HAL_ADCEx_MultiModeConfigChannel+0x60>
  15485. {
  15486. /* Update ADC state machine to error */
  15487. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15488. 8006cac: 687b ldr r3, [r7, #4]
  15489. 8006cae: 6d5b ldr r3, [r3, #84] @ 0x54
  15490. 8006cb0: f043 0220 orr.w r2, r3, #32
  15491. 8006cb4: 687b ldr r3, [r7, #4]
  15492. 8006cb6: 655a str r2, [r3, #84] @ 0x54
  15493. /* Process unlocked */
  15494. __HAL_UNLOCK(hadc);
  15495. 8006cb8: 687b ldr r3, [r7, #4]
  15496. 8006cba: 2200 movs r2, #0
  15497. 8006cbc: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15498. return HAL_ERROR;
  15499. 8006cc0: 2301 movs r3, #1
  15500. 8006cc2: e09d b.n 8006e00 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  15501. /* Parameters update conditioned to ADC state: */
  15502. /* Parameters that can be updated when ADC is disabled or enabled without */
  15503. /* conversion on going on regular group: */
  15504. /* - Multimode DATA Format configuration */
  15505. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  15506. 8006cc4: 68bb ldr r3, [r7, #8]
  15507. 8006cc6: 4618 mov r0, r3
  15508. 8006cc8: f7ff ff54 bl 8006b74 <LL_ADC_REG_IsConversionOngoing>
  15509. 8006ccc: 6738 str r0, [r7, #112] @ 0x70
  15510. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  15511. 8006cce: 687b ldr r3, [r7, #4]
  15512. 8006cd0: 681b ldr r3, [r3, #0]
  15513. 8006cd2: 4618 mov r0, r3
  15514. 8006cd4: f7ff ff4e bl 8006b74 <LL_ADC_REG_IsConversionOngoing>
  15515. 8006cd8: 4603 mov r3, r0
  15516. 8006cda: 2b00 cmp r3, #0
  15517. 8006cdc: d17f bne.n 8006dde <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  15518. && (tmphadcSlave_conversion_on_going == 0UL))
  15519. 8006cde: 6f3b ldr r3, [r7, #112] @ 0x70
  15520. 8006ce0: 2b00 cmp r3, #0
  15521. 8006ce2: d17c bne.n 8006dde <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  15522. {
  15523. /* Pointer to the common control register */
  15524. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  15525. 8006ce4: 687b ldr r3, [r7, #4]
  15526. 8006ce6: 681b ldr r3, [r3, #0]
  15527. 8006ce8: 4a47 ldr r2, [pc, #284] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15528. 8006cea: 4293 cmp r3, r2
  15529. 8006cec: d004 beq.n 8006cf8 <HAL_ADCEx_MultiModeConfigChannel+0x94>
  15530. 8006cee: 687b ldr r3, [r7, #4]
  15531. 8006cf0: 681b ldr r3, [r3, #0]
  15532. 8006cf2: 4a46 ldr r2, [pc, #280] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15533. 8006cf4: 4293 cmp r3, r2
  15534. 8006cf6: d101 bne.n 8006cfc <HAL_ADCEx_MultiModeConfigChannel+0x98>
  15535. 8006cf8: 4b45 ldr r3, [pc, #276] @ (8006e10 <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  15536. 8006cfa: e000 b.n 8006cfe <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  15537. 8006cfc: 4b45 ldr r3, [pc, #276] @ (8006e14 <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  15538. 8006cfe: 66fb str r3, [r7, #108] @ 0x6c
  15539. /* If multimode is selected, configure all multimode parameters. */
  15540. /* Otherwise, reset multimode parameters (can be used in case of */
  15541. /* transition from multimode to independent mode). */
  15542. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15543. 8006d00: 683b ldr r3, [r7, #0]
  15544. 8006d02: 681b ldr r3, [r3, #0]
  15545. 8006d04: 2b00 cmp r3, #0
  15546. 8006d06: d039 beq.n 8006d7c <HAL_ADCEx_MultiModeConfigChannel+0x118>
  15547. {
  15548. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  15549. 8006d08: 6efb ldr r3, [r7, #108] @ 0x6c
  15550. 8006d0a: 689b ldr r3, [r3, #8]
  15551. 8006d0c: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  15552. 8006d10: 683b ldr r3, [r7, #0]
  15553. 8006d12: 685b ldr r3, [r3, #4]
  15554. 8006d14: 431a orrs r2, r3
  15555. 8006d16: 6efb ldr r3, [r7, #108] @ 0x6c
  15556. 8006d18: 609a str r2, [r3, #8]
  15557. /* from 1 to 8 clock cycles for 12 bits */
  15558. /* from 1 to 6 clock cycles for 10 and 8 bits */
  15559. /* If a higher delay is selected, it will be clipped to maximum delay */
  15560. /* range */
  15561. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15562. 8006d1a: 687b ldr r3, [r7, #4]
  15563. 8006d1c: 681b ldr r3, [r3, #0]
  15564. 8006d1e: 4a3a ldr r2, [pc, #232] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15565. 8006d20: 4293 cmp r3, r2
  15566. 8006d22: d004 beq.n 8006d2e <HAL_ADCEx_MultiModeConfigChannel+0xca>
  15567. 8006d24: 687b ldr r3, [r7, #4]
  15568. 8006d26: 681b ldr r3, [r3, #0]
  15569. 8006d28: 4a38 ldr r2, [pc, #224] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15570. 8006d2a: 4293 cmp r3, r2
  15571. 8006d2c: d10e bne.n 8006d4c <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  15572. 8006d2e: 4836 ldr r0, [pc, #216] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15573. 8006d30: f7ff feda bl 8006ae8 <LL_ADC_IsEnabled>
  15574. 8006d34: 4604 mov r4, r0
  15575. 8006d36: 4835 ldr r0, [pc, #212] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15576. 8006d38: f7ff fed6 bl 8006ae8 <LL_ADC_IsEnabled>
  15577. 8006d3c: 4603 mov r3, r0
  15578. 8006d3e: 4323 orrs r3, r4
  15579. 8006d40: 2b00 cmp r3, #0
  15580. 8006d42: bf0c ite eq
  15581. 8006d44: 2301 moveq r3, #1
  15582. 8006d46: 2300 movne r3, #0
  15583. 8006d48: b2db uxtb r3, r3
  15584. 8006d4a: e008 b.n 8006d5e <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  15585. 8006d4c: 4832 ldr r0, [pc, #200] @ (8006e18 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  15586. 8006d4e: f7ff fecb bl 8006ae8 <LL_ADC_IsEnabled>
  15587. 8006d52: 4603 mov r3, r0
  15588. 8006d54: 2b00 cmp r3, #0
  15589. 8006d56: bf0c ite eq
  15590. 8006d58: 2301 moveq r3, #1
  15591. 8006d5a: 2300 movne r3, #0
  15592. 8006d5c: b2db uxtb r3, r3
  15593. 8006d5e: 2b00 cmp r3, #0
  15594. 8006d60: d047 beq.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15595. {
  15596. MODIFY_REG(tmpADC_Common->CCR,
  15597. 8006d62: 6efb ldr r3, [r7, #108] @ 0x6c
  15598. 8006d64: 689a ldr r2, [r3, #8]
  15599. 8006d66: 4b2d ldr r3, [pc, #180] @ (8006e1c <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  15600. 8006d68: 4013 ands r3, r2
  15601. 8006d6a: 683a ldr r2, [r7, #0]
  15602. 8006d6c: 6811 ldr r1, [r2, #0]
  15603. 8006d6e: 683a ldr r2, [r7, #0]
  15604. 8006d70: 6892 ldr r2, [r2, #8]
  15605. 8006d72: 430a orrs r2, r1
  15606. 8006d74: 431a orrs r2, r3
  15607. 8006d76: 6efb ldr r3, [r7, #108] @ 0x6c
  15608. 8006d78: 609a str r2, [r3, #8]
  15609. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15610. 8006d7a: e03a b.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15611. );
  15612. }
  15613. }
  15614. else /* ADC_MODE_INDEPENDENT */
  15615. {
  15616. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  15617. 8006d7c: 6efb ldr r3, [r7, #108] @ 0x6c
  15618. 8006d7e: 689b ldr r3, [r3, #8]
  15619. 8006d80: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  15620. 8006d84: 6efb ldr r3, [r7, #108] @ 0x6c
  15621. 8006d86: 609a str r2, [r3, #8]
  15622. /* Parameters that can be updated only when ADC is disabled: */
  15623. /* - Multimode mode selection */
  15624. /* - Multimode delay */
  15625. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15626. 8006d88: 687b ldr r3, [r7, #4]
  15627. 8006d8a: 681b ldr r3, [r3, #0]
  15628. 8006d8c: 4a1e ldr r2, [pc, #120] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15629. 8006d8e: 4293 cmp r3, r2
  15630. 8006d90: d004 beq.n 8006d9c <HAL_ADCEx_MultiModeConfigChannel+0x138>
  15631. 8006d92: 687b ldr r3, [r7, #4]
  15632. 8006d94: 681b ldr r3, [r3, #0]
  15633. 8006d96: 4a1d ldr r2, [pc, #116] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15634. 8006d98: 4293 cmp r3, r2
  15635. 8006d9a: d10e bne.n 8006dba <HAL_ADCEx_MultiModeConfigChannel+0x156>
  15636. 8006d9c: 481a ldr r0, [pc, #104] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15637. 8006d9e: f7ff fea3 bl 8006ae8 <LL_ADC_IsEnabled>
  15638. 8006da2: 4604 mov r4, r0
  15639. 8006da4: 4819 ldr r0, [pc, #100] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15640. 8006da6: f7ff fe9f bl 8006ae8 <LL_ADC_IsEnabled>
  15641. 8006daa: 4603 mov r3, r0
  15642. 8006dac: 4323 orrs r3, r4
  15643. 8006dae: 2b00 cmp r3, #0
  15644. 8006db0: bf0c ite eq
  15645. 8006db2: 2301 moveq r3, #1
  15646. 8006db4: 2300 movne r3, #0
  15647. 8006db6: b2db uxtb r3, r3
  15648. 8006db8: e008 b.n 8006dcc <HAL_ADCEx_MultiModeConfigChannel+0x168>
  15649. 8006dba: 4817 ldr r0, [pc, #92] @ (8006e18 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  15650. 8006dbc: f7ff fe94 bl 8006ae8 <LL_ADC_IsEnabled>
  15651. 8006dc0: 4603 mov r3, r0
  15652. 8006dc2: 2b00 cmp r3, #0
  15653. 8006dc4: bf0c ite eq
  15654. 8006dc6: 2301 moveq r3, #1
  15655. 8006dc8: 2300 movne r3, #0
  15656. 8006dca: b2db uxtb r3, r3
  15657. 8006dcc: 2b00 cmp r3, #0
  15658. 8006dce: d010 beq.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15659. {
  15660. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  15661. 8006dd0: 6efb ldr r3, [r7, #108] @ 0x6c
  15662. 8006dd2: 689a ldr r2, [r3, #8]
  15663. 8006dd4: 4b11 ldr r3, [pc, #68] @ (8006e1c <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  15664. 8006dd6: 4013 ands r3, r2
  15665. 8006dd8: 6efa ldr r2, [r7, #108] @ 0x6c
  15666. 8006dda: 6093 str r3, [r2, #8]
  15667. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15668. 8006ddc: e009 b.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15669. /* If one of the ADC sharing the same common group is enabled, no update */
  15670. /* could be done on neither of the multimode structure parameters. */
  15671. else
  15672. {
  15673. /* Update ADC state machine to error */
  15674. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15675. 8006dde: 687b ldr r3, [r7, #4]
  15676. 8006de0: 6d5b ldr r3, [r3, #84] @ 0x54
  15677. 8006de2: f043 0220 orr.w r2, r3, #32
  15678. 8006de6: 687b ldr r3, [r7, #4]
  15679. 8006de8: 655a str r2, [r3, #84] @ 0x54
  15680. tmp_hal_status = HAL_ERROR;
  15681. 8006dea: 2301 movs r3, #1
  15682. 8006dec: f887 3077 strb.w r3, [r7, #119] @ 0x77
  15683. 8006df0: e000 b.n 8006df4 <HAL_ADCEx_MultiModeConfigChannel+0x190>
  15684. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15685. 8006df2: bf00 nop
  15686. }
  15687. /* Process unlocked */
  15688. __HAL_UNLOCK(hadc);
  15689. 8006df4: 687b ldr r3, [r7, #4]
  15690. 8006df6: 2200 movs r2, #0
  15691. 8006df8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15692. /* Return function status */
  15693. return tmp_hal_status;
  15694. 8006dfc: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  15695. }
  15696. 8006e00: 4618 mov r0, r3
  15697. 8006e02: 377c adds r7, #124 @ 0x7c
  15698. 8006e04: 46bd mov sp, r7
  15699. 8006e06: bd90 pop {r4, r7, pc}
  15700. 8006e08: 40022000 .word 0x40022000
  15701. 8006e0c: 40022100 .word 0x40022100
  15702. 8006e10: 40022300 .word 0x40022300
  15703. 8006e14: 58026300 .word 0x58026300
  15704. 8006e18: 58026000 .word 0x58026000
  15705. 8006e1c: fffff0e0 .word 0xfffff0e0
  15706. 08006e20 <HAL_COMP_Init>:
  15707. * To unlock the configuration, perform a system reset.
  15708. * @param hcomp COMP handle
  15709. * @retval HAL status
  15710. */
  15711. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  15712. {
  15713. 8006e20: b580 push {r7, lr}
  15714. 8006e22: b088 sub sp, #32
  15715. 8006e24: af00 add r7, sp, #0
  15716. 8006e26: 6078 str r0, [r7, #4]
  15717. uint32_t tmp_csr ;
  15718. uint32_t exti_line ;
  15719. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  15720. __IO uint32_t wait_loop_index = 0UL;
  15721. 8006e28: 2300 movs r3, #0
  15722. 8006e2a: 60fb str r3, [r7, #12]
  15723. HAL_StatusTypeDef status = HAL_OK;
  15724. 8006e2c: 2300 movs r3, #0
  15725. 8006e2e: 77fb strb r3, [r7, #31]
  15726. /* Check the COMP handle allocation and lock status */
  15727. if(hcomp == NULL)
  15728. 8006e30: 687b ldr r3, [r7, #4]
  15729. 8006e32: 2b00 cmp r3, #0
  15730. 8006e34: d102 bne.n 8006e3c <HAL_COMP_Init+0x1c>
  15731. {
  15732. status = HAL_ERROR;
  15733. 8006e36: 2301 movs r3, #1
  15734. 8006e38: 77fb strb r3, [r7, #31]
  15735. 8006e3a: e10e b.n 800705a <HAL_COMP_Init+0x23a>
  15736. }
  15737. else if(__HAL_COMP_IS_LOCKED(hcomp))
  15738. 8006e3c: 687b ldr r3, [r7, #4]
  15739. 8006e3e: 681b ldr r3, [r3, #0]
  15740. 8006e40: 681b ldr r3, [r3, #0]
  15741. 8006e42: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15742. 8006e46: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15743. 8006e4a: d102 bne.n 8006e52 <HAL_COMP_Init+0x32>
  15744. {
  15745. status = HAL_ERROR;
  15746. 8006e4c: 2301 movs r3, #1
  15747. 8006e4e: 77fb strb r3, [r7, #31]
  15748. 8006e50: e103 b.n 800705a <HAL_COMP_Init+0x23a>
  15749. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  15750. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  15751. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  15752. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  15753. if(hcomp->State == HAL_COMP_STATE_RESET)
  15754. 8006e52: 687b ldr r3, [r7, #4]
  15755. 8006e54: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  15756. 8006e58: b2db uxtb r3, r3
  15757. 8006e5a: 2b00 cmp r3, #0
  15758. 8006e5c: d109 bne.n 8006e72 <HAL_COMP_Init+0x52>
  15759. {
  15760. /* Allocate lock resource and initialize it */
  15761. hcomp->Lock = HAL_UNLOCKED;
  15762. 8006e5e: 687b ldr r3, [r7, #4]
  15763. 8006e60: 2200 movs r2, #0
  15764. 8006e62: f883 2024 strb.w r2, [r3, #36] @ 0x24
  15765. /* Set COMP error code to none */
  15766. COMP_CLEAR_ERRORCODE(hcomp);
  15767. 8006e66: 687b ldr r3, [r7, #4]
  15768. 8006e68: 2200 movs r2, #0
  15769. 8006e6a: 629a str r2, [r3, #40] @ 0x28
  15770. /* Init the low level hardware */
  15771. hcomp->MspInitCallback(hcomp);
  15772. #else
  15773. /* Init the low level hardware */
  15774. HAL_COMP_MspInit(hcomp);
  15775. 8006e6c: 6878 ldr r0, [r7, #4]
  15776. 8006e6e: f7fc fd35 bl 80038dc <HAL_COMP_MspInit>
  15777. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  15778. }
  15779. /* Memorize voltage scaler state before initialization */
  15780. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  15781. 8006e72: 687b ldr r3, [r7, #4]
  15782. 8006e74: 681b ldr r3, [r3, #0]
  15783. 8006e76: 681b ldr r3, [r3, #0]
  15784. 8006e78: f003 0304 and.w r3, r3, #4
  15785. 8006e7c: 61bb str r3, [r7, #24]
  15786. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  15787. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  15788. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  15789. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  15790. tmp_csr = (hcomp->Init.InvertingInput | \
  15791. 8006e7e: 687b ldr r3, [r7, #4]
  15792. 8006e80: 691a ldr r2, [r3, #16]
  15793. hcomp->Init.NonInvertingInput | \
  15794. 8006e82: 687b ldr r3, [r7, #4]
  15795. 8006e84: 68db ldr r3, [r3, #12]
  15796. tmp_csr = (hcomp->Init.InvertingInput | \
  15797. 8006e86: 431a orrs r2, r3
  15798. hcomp->Init.BlankingSrce | \
  15799. 8006e88: 687b ldr r3, [r7, #4]
  15800. 8006e8a: 69db ldr r3, [r3, #28]
  15801. hcomp->Init.NonInvertingInput | \
  15802. 8006e8c: 431a orrs r2, r3
  15803. hcomp->Init.Hysteresis | \
  15804. 8006e8e: 687b ldr r3, [r7, #4]
  15805. 8006e90: 695b ldr r3, [r3, #20]
  15806. hcomp->Init.BlankingSrce | \
  15807. 8006e92: 431a orrs r2, r3
  15808. hcomp->Init.OutputPol | \
  15809. 8006e94: 687b ldr r3, [r7, #4]
  15810. 8006e96: 699b ldr r3, [r3, #24]
  15811. hcomp->Init.Hysteresis | \
  15812. 8006e98: 431a orrs r2, r3
  15813. hcomp->Init.Mode );
  15814. 8006e9a: 687b ldr r3, [r7, #4]
  15815. 8006e9c: 689b ldr r3, [r3, #8]
  15816. tmp_csr = (hcomp->Init.InvertingInput | \
  15817. 8006e9e: 4313 orrs r3, r2
  15818. 8006ea0: 617b str r3, [r7, #20]
  15819. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  15820. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  15821. tmp_csr
  15822. );
  15823. #else
  15824. MODIFY_REG(hcomp->Instance->CFGR,
  15825. 8006ea2: 687b ldr r3, [r7, #4]
  15826. 8006ea4: 681b ldr r3, [r3, #0]
  15827. 8006ea6: 681a ldr r2, [r3, #0]
  15828. 8006ea8: 4b6e ldr r3, [pc, #440] @ (8007064 <HAL_COMP_Init+0x244>)
  15829. 8006eaa: 4013 ands r3, r2
  15830. 8006eac: 687a ldr r2, [r7, #4]
  15831. 8006eae: 6812 ldr r2, [r2, #0]
  15832. 8006eb0: 6979 ldr r1, [r7, #20]
  15833. 8006eb2: 430b orrs r3, r1
  15834. 8006eb4: 6013 str r3, [r2, #0]
  15835. #endif
  15836. /* Set window mode */
  15837. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  15838. /* instances. Therefore, this function can update another COMP */
  15839. /* instance that the one currently selected. */
  15840. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  15841. 8006eb6: 687b ldr r3, [r7, #4]
  15842. 8006eb8: 685b ldr r3, [r3, #4]
  15843. 8006eba: 2b10 cmp r3, #16
  15844. 8006ebc: d108 bne.n 8006ed0 <HAL_COMP_Init+0xb0>
  15845. {
  15846. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  15847. 8006ebe: 687b ldr r3, [r7, #4]
  15848. 8006ec0: 681b ldr r3, [r3, #0]
  15849. 8006ec2: 681a ldr r2, [r3, #0]
  15850. 8006ec4: 687b ldr r3, [r7, #4]
  15851. 8006ec6: 681b ldr r3, [r3, #0]
  15852. 8006ec8: f042 0210 orr.w r2, r2, #16
  15853. 8006ecc: 601a str r2, [r3, #0]
  15854. 8006ece: e007 b.n 8006ee0 <HAL_COMP_Init+0xc0>
  15855. }
  15856. else
  15857. {
  15858. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  15859. 8006ed0: 687b ldr r3, [r7, #4]
  15860. 8006ed2: 681b ldr r3, [r3, #0]
  15861. 8006ed4: 681a ldr r2, [r3, #0]
  15862. 8006ed6: 687b ldr r3, [r7, #4]
  15863. 8006ed8: 681b ldr r3, [r3, #0]
  15864. 8006eda: f022 0210 bic.w r2, r2, #16
  15865. 8006ede: 601a str r2, [r3, #0]
  15866. }
  15867. /* Delay for COMP scaler bridge voltage stabilization */
  15868. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  15869. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  15870. 8006ee0: 687b ldr r3, [r7, #4]
  15871. 8006ee2: 681b ldr r3, [r3, #0]
  15872. 8006ee4: 681b ldr r3, [r3, #0]
  15873. 8006ee6: f003 0304 and.w r3, r3, #4
  15874. 8006eea: 2b00 cmp r3, #0
  15875. 8006eec: d016 beq.n 8006f1c <HAL_COMP_Init+0xfc>
  15876. 8006eee: 69bb ldr r3, [r7, #24]
  15877. 8006ef0: 2b00 cmp r3, #0
  15878. 8006ef2: d013 beq.n 8006f1c <HAL_COMP_Init+0xfc>
  15879. {
  15880. /* Wait loop initialization and execution */
  15881. /* Note: Variable divided by 2 to compensate partially */
  15882. /* CPU processing cycles.*/
  15883. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15884. 8006ef4: 4b5c ldr r3, [pc, #368] @ (8007068 <HAL_COMP_Init+0x248>)
  15885. 8006ef6: 681b ldr r3, [r3, #0]
  15886. 8006ef8: 099b lsrs r3, r3, #6
  15887. 8006efa: 4a5c ldr r2, [pc, #368] @ (800706c <HAL_COMP_Init+0x24c>)
  15888. 8006efc: fba2 2303 umull r2, r3, r2, r3
  15889. 8006f00: 099b lsrs r3, r3, #6
  15890. 8006f02: 1c5a adds r2, r3, #1
  15891. 8006f04: 4613 mov r3, r2
  15892. 8006f06: 009b lsls r3, r3, #2
  15893. 8006f08: 4413 add r3, r2
  15894. 8006f0a: 009b lsls r3, r3, #2
  15895. 8006f0c: 60fb str r3, [r7, #12]
  15896. while(wait_loop_index != 0UL)
  15897. 8006f0e: e002 b.n 8006f16 <HAL_COMP_Init+0xf6>
  15898. {
  15899. wait_loop_index --;
  15900. 8006f10: 68fb ldr r3, [r7, #12]
  15901. 8006f12: 3b01 subs r3, #1
  15902. 8006f14: 60fb str r3, [r7, #12]
  15903. while(wait_loop_index != 0UL)
  15904. 8006f16: 68fb ldr r3, [r7, #12]
  15905. 8006f18: 2b00 cmp r3, #0
  15906. 8006f1a: d1f9 bne.n 8006f10 <HAL_COMP_Init+0xf0>
  15907. }
  15908. }
  15909. /* Get the EXTI line corresponding to the selected COMP instance */
  15910. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  15911. 8006f1c: 687b ldr r3, [r7, #4]
  15912. 8006f1e: 681b ldr r3, [r3, #0]
  15913. 8006f20: 4a53 ldr r2, [pc, #332] @ (8007070 <HAL_COMP_Init+0x250>)
  15914. 8006f22: 4293 cmp r3, r2
  15915. 8006f24: d102 bne.n 8006f2c <HAL_COMP_Init+0x10c>
  15916. 8006f26: f44f 1380 mov.w r3, #1048576 @ 0x100000
  15917. 8006f2a: e001 b.n 8006f30 <HAL_COMP_Init+0x110>
  15918. 8006f2c: f44f 1300 mov.w r3, #2097152 @ 0x200000
  15919. 8006f30: 613b str r3, [r7, #16]
  15920. /* Manage EXTI settings */
  15921. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  15922. 8006f32: 687b ldr r3, [r7, #4]
  15923. 8006f34: 6a1b ldr r3, [r3, #32]
  15924. 8006f36: f003 0303 and.w r3, r3, #3
  15925. 8006f3a: 2b00 cmp r3, #0
  15926. 8006f3c: d06d beq.n 800701a <HAL_COMP_Init+0x1fa>
  15927. {
  15928. /* Configure EXTI rising edge */
  15929. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  15930. 8006f3e: 687b ldr r3, [r7, #4]
  15931. 8006f40: 6a1b ldr r3, [r3, #32]
  15932. 8006f42: f003 0310 and.w r3, r3, #16
  15933. 8006f46: 2b00 cmp r3, #0
  15934. 8006f48: d008 beq.n 8006f5c <HAL_COMP_Init+0x13c>
  15935. {
  15936. SET_BIT(EXTI->RTSR1, exti_line);
  15937. 8006f4a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15938. 8006f4e: 681a ldr r2, [r3, #0]
  15939. 8006f50: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15940. 8006f54: 693b ldr r3, [r7, #16]
  15941. 8006f56: 4313 orrs r3, r2
  15942. 8006f58: 600b str r3, [r1, #0]
  15943. 8006f5a: e008 b.n 8006f6e <HAL_COMP_Init+0x14e>
  15944. }
  15945. else
  15946. {
  15947. CLEAR_BIT(EXTI->RTSR1, exti_line);
  15948. 8006f5c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15949. 8006f60: 681a ldr r2, [r3, #0]
  15950. 8006f62: 693b ldr r3, [r7, #16]
  15951. 8006f64: 43db mvns r3, r3
  15952. 8006f66: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15953. 8006f6a: 4013 ands r3, r2
  15954. 8006f6c: 600b str r3, [r1, #0]
  15955. }
  15956. /* Configure EXTI falling edge */
  15957. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  15958. 8006f6e: 687b ldr r3, [r7, #4]
  15959. 8006f70: 6a1b ldr r3, [r3, #32]
  15960. 8006f72: f003 0320 and.w r3, r3, #32
  15961. 8006f76: 2b00 cmp r3, #0
  15962. 8006f78: d008 beq.n 8006f8c <HAL_COMP_Init+0x16c>
  15963. {
  15964. SET_BIT(EXTI->FTSR1, exti_line);
  15965. 8006f7a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15966. 8006f7e: 685a ldr r2, [r3, #4]
  15967. 8006f80: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15968. 8006f84: 693b ldr r3, [r7, #16]
  15969. 8006f86: 4313 orrs r3, r2
  15970. 8006f88: 604b str r3, [r1, #4]
  15971. 8006f8a: e008 b.n 8006f9e <HAL_COMP_Init+0x17e>
  15972. }
  15973. else
  15974. {
  15975. CLEAR_BIT(EXTI->FTSR1, exti_line);
  15976. 8006f8c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15977. 8006f90: 685a ldr r2, [r3, #4]
  15978. 8006f92: 693b ldr r3, [r7, #16]
  15979. 8006f94: 43db mvns r3, r3
  15980. 8006f96: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15981. 8006f9a: 4013 ands r3, r2
  15982. 8006f9c: 604b str r3, [r1, #4]
  15983. }
  15984. #if !defined (CORE_CM4)
  15985. /* Clear COMP EXTI pending bit (if any) */
  15986. WRITE_REG(EXTI->PR1, exti_line);
  15987. 8006f9e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  15988. 8006fa2: 693b ldr r3, [r7, #16]
  15989. 8006fa4: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  15990. /* Configure EXTI event mode */
  15991. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  15992. 8006fa8: 687b ldr r3, [r7, #4]
  15993. 8006faa: 6a1b ldr r3, [r3, #32]
  15994. 8006fac: f003 0302 and.w r3, r3, #2
  15995. 8006fb0: 2b00 cmp r3, #0
  15996. 8006fb2: d00a beq.n 8006fca <HAL_COMP_Init+0x1aa>
  15997. {
  15998. SET_BIT(EXTI->EMR1, exti_line);
  15999. 8006fb4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16000. 8006fb8: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16001. 8006fbc: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16002. 8006fc0: 693b ldr r3, [r7, #16]
  16003. 8006fc2: 4313 orrs r3, r2
  16004. 8006fc4: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16005. 8006fc8: e00a b.n 8006fe0 <HAL_COMP_Init+0x1c0>
  16006. }
  16007. else
  16008. {
  16009. CLEAR_BIT(EXTI->EMR1, exti_line);
  16010. 8006fca: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16011. 8006fce: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16012. 8006fd2: 693b ldr r3, [r7, #16]
  16013. 8006fd4: 43db mvns r3, r3
  16014. 8006fd6: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16015. 8006fda: 4013 ands r3, r2
  16016. 8006fdc: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16017. }
  16018. /* Configure EXTI interrupt mode */
  16019. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  16020. 8006fe0: 687b ldr r3, [r7, #4]
  16021. 8006fe2: 6a1b ldr r3, [r3, #32]
  16022. 8006fe4: f003 0301 and.w r3, r3, #1
  16023. 8006fe8: 2b00 cmp r3, #0
  16024. 8006fea: d00a beq.n 8007002 <HAL_COMP_Init+0x1e2>
  16025. {
  16026. SET_BIT(EXTI->IMR1, exti_line);
  16027. 8006fec: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16028. 8006ff0: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16029. 8006ff4: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16030. 8006ff8: 693b ldr r3, [r7, #16]
  16031. 8006ffa: 4313 orrs r3, r2
  16032. 8006ffc: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16033. 8007000: e021 b.n 8007046 <HAL_COMP_Init+0x226>
  16034. }
  16035. else
  16036. {
  16037. CLEAR_BIT(EXTI->IMR1, exti_line);
  16038. 8007002: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16039. 8007006: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16040. 800700a: 693b ldr r3, [r7, #16]
  16041. 800700c: 43db mvns r3, r3
  16042. 800700e: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16043. 8007012: 4013 ands r3, r2
  16044. 8007014: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16045. 8007018: e015 b.n 8007046 <HAL_COMP_Init+0x226>
  16046. }
  16047. }
  16048. else
  16049. {
  16050. /* Disable EXTI event mode */
  16051. CLEAR_BIT(EXTI->EMR1, exti_line);
  16052. 800701a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16053. 800701e: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16054. 8007022: 693b ldr r3, [r7, #16]
  16055. 8007024: 43db mvns r3, r3
  16056. 8007026: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16057. 800702a: 4013 ands r3, r2
  16058. 800702c: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16059. /* Disable EXTI interrupt mode */
  16060. CLEAR_BIT(EXTI->IMR1, exti_line);
  16061. 8007030: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16062. 8007034: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16063. 8007038: 693b ldr r3, [r7, #16]
  16064. 800703a: 43db mvns r3, r3
  16065. 800703c: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16066. 8007040: 4013 ands r3, r2
  16067. 8007042: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16068. }
  16069. #endif
  16070. /* Set HAL COMP handle state */
  16071. /* Note: Transition from state reset to state ready, */
  16072. /* otherwise (coming from state ready or busy) no state update. */
  16073. if (hcomp->State == HAL_COMP_STATE_RESET)
  16074. 8007046: 687b ldr r3, [r7, #4]
  16075. 8007048: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16076. 800704c: b2db uxtb r3, r3
  16077. 800704e: 2b00 cmp r3, #0
  16078. 8007050: d103 bne.n 800705a <HAL_COMP_Init+0x23a>
  16079. {
  16080. hcomp->State = HAL_COMP_STATE_READY;
  16081. 8007052: 687b ldr r3, [r7, #4]
  16082. 8007054: 2201 movs r2, #1
  16083. 8007056: f883 2025 strb.w r2, [r3, #37] @ 0x25
  16084. }
  16085. }
  16086. return status;
  16087. 800705a: 7ffb ldrb r3, [r7, #31]
  16088. }
  16089. 800705c: 4618 mov r0, r3
  16090. 800705e: 3720 adds r7, #32
  16091. 8007060: 46bd mov sp, r7
  16092. 8007062: bd80 pop {r7, pc}
  16093. 8007064: f0e8cce1 .word 0xf0e8cce1
  16094. 8007068: 24000034 .word 0x24000034
  16095. 800706c: 053e2d63 .word 0x053e2d63
  16096. 8007070: 5800380c .word 0x5800380c
  16097. 08007074 <HAL_COMP_Start>:
  16098. * @brief Start the comparator.
  16099. * @param hcomp COMP handle
  16100. * @retval HAL status
  16101. */
  16102. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  16103. {
  16104. 8007074: b480 push {r7}
  16105. 8007076: b085 sub sp, #20
  16106. 8007078: af00 add r7, sp, #0
  16107. 800707a: 6078 str r0, [r7, #4]
  16108. __IO uint32_t wait_loop_index = 0UL;
  16109. 800707c: 2300 movs r3, #0
  16110. 800707e: 60bb str r3, [r7, #8]
  16111. HAL_StatusTypeDef status = HAL_OK;
  16112. 8007080: 2300 movs r3, #0
  16113. 8007082: 73fb strb r3, [r7, #15]
  16114. /* Check the COMP handle allocation and lock status */
  16115. if(hcomp == NULL)
  16116. 8007084: 687b ldr r3, [r7, #4]
  16117. 8007086: 2b00 cmp r3, #0
  16118. 8007088: d102 bne.n 8007090 <HAL_COMP_Start+0x1c>
  16119. {
  16120. status = HAL_ERROR;
  16121. 800708a: 2301 movs r3, #1
  16122. 800708c: 73fb strb r3, [r7, #15]
  16123. 800708e: e030 b.n 80070f2 <HAL_COMP_Start+0x7e>
  16124. }
  16125. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16126. 8007090: 687b ldr r3, [r7, #4]
  16127. 8007092: 681b ldr r3, [r3, #0]
  16128. 8007094: 681b ldr r3, [r3, #0]
  16129. 8007096: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16130. 800709a: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16131. 800709e: d102 bne.n 80070a6 <HAL_COMP_Start+0x32>
  16132. {
  16133. status = HAL_ERROR;
  16134. 80070a0: 2301 movs r3, #1
  16135. 80070a2: 73fb strb r3, [r7, #15]
  16136. 80070a4: e025 b.n 80070f2 <HAL_COMP_Start+0x7e>
  16137. else
  16138. {
  16139. /* Check the parameter */
  16140. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  16141. if(hcomp->State == HAL_COMP_STATE_READY)
  16142. 80070a6: 687b ldr r3, [r7, #4]
  16143. 80070a8: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16144. 80070ac: b2db uxtb r3, r3
  16145. 80070ae: 2b01 cmp r3, #1
  16146. 80070b0: d11d bne.n 80070ee <HAL_COMP_Start+0x7a>
  16147. {
  16148. /* Enable the selected comparator */
  16149. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  16150. 80070b2: 687b ldr r3, [r7, #4]
  16151. 80070b4: 681b ldr r3, [r3, #0]
  16152. 80070b6: 681a ldr r2, [r3, #0]
  16153. 80070b8: 687b ldr r3, [r7, #4]
  16154. 80070ba: 681b ldr r3, [r3, #0]
  16155. 80070bc: f042 0201 orr.w r2, r2, #1
  16156. 80070c0: 601a str r2, [r3, #0]
  16157. /* Set HAL COMP handle state */
  16158. hcomp->State = HAL_COMP_STATE_BUSY;
  16159. 80070c2: 687b ldr r3, [r7, #4]
  16160. 80070c4: 2202 movs r2, #2
  16161. 80070c6: f883 2025 strb.w r2, [r3, #37] @ 0x25
  16162. /* Delay for COMP startup time */
  16163. /* Wait loop initialization and execution */
  16164. /* Note: Variable divided by 2 to compensate partially */
  16165. /* CPU processing cycles. */
  16166. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  16167. 80070ca: 4b0d ldr r3, [pc, #52] @ (8007100 <HAL_COMP_Start+0x8c>)
  16168. 80070cc: 681b ldr r3, [r3, #0]
  16169. 80070ce: 099b lsrs r3, r3, #6
  16170. 80070d0: 4a0c ldr r2, [pc, #48] @ (8007104 <HAL_COMP_Start+0x90>)
  16171. 80070d2: fba2 2303 umull r2, r3, r2, r3
  16172. 80070d6: 099b lsrs r3, r3, #6
  16173. 80070d8: 3301 adds r3, #1
  16174. 80070da: 00db lsls r3, r3, #3
  16175. 80070dc: 60bb str r3, [r7, #8]
  16176. while(wait_loop_index != 0UL)
  16177. 80070de: e002 b.n 80070e6 <HAL_COMP_Start+0x72>
  16178. {
  16179. wait_loop_index--;
  16180. 80070e0: 68bb ldr r3, [r7, #8]
  16181. 80070e2: 3b01 subs r3, #1
  16182. 80070e4: 60bb str r3, [r7, #8]
  16183. while(wait_loop_index != 0UL)
  16184. 80070e6: 68bb ldr r3, [r7, #8]
  16185. 80070e8: 2b00 cmp r3, #0
  16186. 80070ea: d1f9 bne.n 80070e0 <HAL_COMP_Start+0x6c>
  16187. 80070ec: e001 b.n 80070f2 <HAL_COMP_Start+0x7e>
  16188. }
  16189. }
  16190. else
  16191. {
  16192. status = HAL_ERROR;
  16193. 80070ee: 2301 movs r3, #1
  16194. 80070f0: 73fb strb r3, [r7, #15]
  16195. }
  16196. }
  16197. return status;
  16198. 80070f2: 7bfb ldrb r3, [r7, #15]
  16199. }
  16200. 80070f4: 4618 mov r0, r3
  16201. 80070f6: 3714 adds r7, #20
  16202. 80070f8: 46bd mov sp, r7
  16203. 80070fa: f85d 7b04 ldr.w r7, [sp], #4
  16204. 80070fe: 4770 bx lr
  16205. 8007100: 24000034 .word 0x24000034
  16206. 8007104: 053e2d63 .word 0x053e2d63
  16207. 08007108 <HAL_COMP_GetOutputLevel>:
  16208. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  16209. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  16210. *
  16211. */
  16212. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  16213. {
  16214. 8007108: b480 push {r7}
  16215. 800710a: b083 sub sp, #12
  16216. 800710c: af00 add r7, sp, #0
  16217. 800710e: 6078 str r0, [r7, #4]
  16218. /* Check the parameter */
  16219. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  16220. if (hcomp->Instance == COMP1)
  16221. 8007110: 687b ldr r3, [r7, #4]
  16222. 8007112: 681b ldr r3, [r3, #0]
  16223. 8007114: 4a09 ldr r2, [pc, #36] @ (800713c <HAL_COMP_GetOutputLevel+0x34>)
  16224. 8007116: 4293 cmp r3, r2
  16225. 8007118: d104 bne.n 8007124 <HAL_COMP_GetOutputLevel+0x1c>
  16226. {
  16227. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  16228. 800711a: 4b09 ldr r3, [pc, #36] @ (8007140 <HAL_COMP_GetOutputLevel+0x38>)
  16229. 800711c: 681b ldr r3, [r3, #0]
  16230. 800711e: f003 0301 and.w r3, r3, #1
  16231. 8007122: e004 b.n 800712e <HAL_COMP_GetOutputLevel+0x26>
  16232. }
  16233. else
  16234. {
  16235. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  16236. 8007124: 4b06 ldr r3, [pc, #24] @ (8007140 <HAL_COMP_GetOutputLevel+0x38>)
  16237. 8007126: 681b ldr r3, [r3, #0]
  16238. 8007128: 085b lsrs r3, r3, #1
  16239. 800712a: f003 0301 and.w r3, r3, #1
  16240. }
  16241. }
  16242. 800712e: 4618 mov r0, r3
  16243. 8007130: 370c adds r7, #12
  16244. 8007132: 46bd mov sp, r7
  16245. 8007134: f85d 7b04 ldr.w r7, [sp], #4
  16246. 8007138: 4770 bx lr
  16247. 800713a: bf00 nop
  16248. 800713c: 5800380c .word 0x5800380c
  16249. 8007140: 58003800 .word 0x58003800
  16250. 08007144 <__NVIC_SetPriorityGrouping>:
  16251. {
  16252. 8007144: b480 push {r7}
  16253. 8007146: b085 sub sp, #20
  16254. 8007148: af00 add r7, sp, #0
  16255. 800714a: 6078 str r0, [r7, #4]
  16256. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  16257. 800714c: 687b ldr r3, [r7, #4]
  16258. 800714e: f003 0307 and.w r3, r3, #7
  16259. 8007152: 60fb str r3, [r7, #12]
  16260. reg_value = SCB->AIRCR; /* read old register configuration */
  16261. 8007154: 4b0b ldr r3, [pc, #44] @ (8007184 <__NVIC_SetPriorityGrouping+0x40>)
  16262. 8007156: 68db ldr r3, [r3, #12]
  16263. 8007158: 60bb str r3, [r7, #8]
  16264. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  16265. 800715a: 68ba ldr r2, [r7, #8]
  16266. 800715c: f64f 03ff movw r3, #63743 @ 0xf8ff
  16267. 8007160: 4013 ands r3, r2
  16268. 8007162: 60bb str r3, [r7, #8]
  16269. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  16270. 8007164: 68fb ldr r3, [r7, #12]
  16271. 8007166: 021a lsls r2, r3, #8
  16272. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  16273. 8007168: 68bb ldr r3, [r7, #8]
  16274. 800716a: 431a orrs r2, r3
  16275. reg_value = (reg_value |
  16276. 800716c: 4b06 ldr r3, [pc, #24] @ (8007188 <__NVIC_SetPriorityGrouping+0x44>)
  16277. 800716e: 4313 orrs r3, r2
  16278. 8007170: 60bb str r3, [r7, #8]
  16279. SCB->AIRCR = reg_value;
  16280. 8007172: 4a04 ldr r2, [pc, #16] @ (8007184 <__NVIC_SetPriorityGrouping+0x40>)
  16281. 8007174: 68bb ldr r3, [r7, #8]
  16282. 8007176: 60d3 str r3, [r2, #12]
  16283. }
  16284. 8007178: bf00 nop
  16285. 800717a: 3714 adds r7, #20
  16286. 800717c: 46bd mov sp, r7
  16287. 800717e: f85d 7b04 ldr.w r7, [sp], #4
  16288. 8007182: 4770 bx lr
  16289. 8007184: e000ed00 .word 0xe000ed00
  16290. 8007188: 05fa0000 .word 0x05fa0000
  16291. 0800718c <__NVIC_GetPriorityGrouping>:
  16292. {
  16293. 800718c: b480 push {r7}
  16294. 800718e: af00 add r7, sp, #0
  16295. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  16296. 8007190: 4b04 ldr r3, [pc, #16] @ (80071a4 <__NVIC_GetPriorityGrouping+0x18>)
  16297. 8007192: 68db ldr r3, [r3, #12]
  16298. 8007194: 0a1b lsrs r3, r3, #8
  16299. 8007196: f003 0307 and.w r3, r3, #7
  16300. }
  16301. 800719a: 4618 mov r0, r3
  16302. 800719c: 46bd mov sp, r7
  16303. 800719e: f85d 7b04 ldr.w r7, [sp], #4
  16304. 80071a2: 4770 bx lr
  16305. 80071a4: e000ed00 .word 0xe000ed00
  16306. 080071a8 <__NVIC_EnableIRQ>:
  16307. {
  16308. 80071a8: b480 push {r7}
  16309. 80071aa: b083 sub sp, #12
  16310. 80071ac: af00 add r7, sp, #0
  16311. 80071ae: 4603 mov r3, r0
  16312. 80071b0: 80fb strh r3, [r7, #6]
  16313. if ((int32_t)(IRQn) >= 0)
  16314. 80071b2: f9b7 3006 ldrsh.w r3, [r7, #6]
  16315. 80071b6: 2b00 cmp r3, #0
  16316. 80071b8: db0b blt.n 80071d2 <__NVIC_EnableIRQ+0x2a>
  16317. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  16318. 80071ba: 88fb ldrh r3, [r7, #6]
  16319. 80071bc: f003 021f and.w r2, r3, #31
  16320. 80071c0: 4907 ldr r1, [pc, #28] @ (80071e0 <__NVIC_EnableIRQ+0x38>)
  16321. 80071c2: f9b7 3006 ldrsh.w r3, [r7, #6]
  16322. 80071c6: 095b lsrs r3, r3, #5
  16323. 80071c8: 2001 movs r0, #1
  16324. 80071ca: fa00 f202 lsl.w r2, r0, r2
  16325. 80071ce: f841 2023 str.w r2, [r1, r3, lsl #2]
  16326. }
  16327. 80071d2: bf00 nop
  16328. 80071d4: 370c adds r7, #12
  16329. 80071d6: 46bd mov sp, r7
  16330. 80071d8: f85d 7b04 ldr.w r7, [sp], #4
  16331. 80071dc: 4770 bx lr
  16332. 80071de: bf00 nop
  16333. 80071e0: e000e100 .word 0xe000e100
  16334. 080071e4 <__NVIC_SetPriority>:
  16335. {
  16336. 80071e4: b480 push {r7}
  16337. 80071e6: b083 sub sp, #12
  16338. 80071e8: af00 add r7, sp, #0
  16339. 80071ea: 4603 mov r3, r0
  16340. 80071ec: 6039 str r1, [r7, #0]
  16341. 80071ee: 80fb strh r3, [r7, #6]
  16342. if ((int32_t)(IRQn) >= 0)
  16343. 80071f0: f9b7 3006 ldrsh.w r3, [r7, #6]
  16344. 80071f4: 2b00 cmp r3, #0
  16345. 80071f6: db0a blt.n 800720e <__NVIC_SetPriority+0x2a>
  16346. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  16347. 80071f8: 683b ldr r3, [r7, #0]
  16348. 80071fa: b2da uxtb r2, r3
  16349. 80071fc: 490c ldr r1, [pc, #48] @ (8007230 <__NVIC_SetPriority+0x4c>)
  16350. 80071fe: f9b7 3006 ldrsh.w r3, [r7, #6]
  16351. 8007202: 0112 lsls r2, r2, #4
  16352. 8007204: b2d2 uxtb r2, r2
  16353. 8007206: 440b add r3, r1
  16354. 8007208: f883 2300 strb.w r2, [r3, #768] @ 0x300
  16355. }
  16356. 800720c: e00a b.n 8007224 <__NVIC_SetPriority+0x40>
  16357. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  16358. 800720e: 683b ldr r3, [r7, #0]
  16359. 8007210: b2da uxtb r2, r3
  16360. 8007212: 4908 ldr r1, [pc, #32] @ (8007234 <__NVIC_SetPriority+0x50>)
  16361. 8007214: 88fb ldrh r3, [r7, #6]
  16362. 8007216: f003 030f and.w r3, r3, #15
  16363. 800721a: 3b04 subs r3, #4
  16364. 800721c: 0112 lsls r2, r2, #4
  16365. 800721e: b2d2 uxtb r2, r2
  16366. 8007220: 440b add r3, r1
  16367. 8007222: 761a strb r2, [r3, #24]
  16368. }
  16369. 8007224: bf00 nop
  16370. 8007226: 370c adds r7, #12
  16371. 8007228: 46bd mov sp, r7
  16372. 800722a: f85d 7b04 ldr.w r7, [sp], #4
  16373. 800722e: 4770 bx lr
  16374. 8007230: e000e100 .word 0xe000e100
  16375. 8007234: e000ed00 .word 0xe000ed00
  16376. 08007238 <NVIC_EncodePriority>:
  16377. {
  16378. 8007238: b480 push {r7}
  16379. 800723a: b089 sub sp, #36 @ 0x24
  16380. 800723c: af00 add r7, sp, #0
  16381. 800723e: 60f8 str r0, [r7, #12]
  16382. 8007240: 60b9 str r1, [r7, #8]
  16383. 8007242: 607a str r2, [r7, #4]
  16384. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  16385. 8007244: 68fb ldr r3, [r7, #12]
  16386. 8007246: f003 0307 and.w r3, r3, #7
  16387. 800724a: 61fb str r3, [r7, #28]
  16388. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  16389. 800724c: 69fb ldr r3, [r7, #28]
  16390. 800724e: f1c3 0307 rsb r3, r3, #7
  16391. 8007252: 2b04 cmp r3, #4
  16392. 8007254: bf28 it cs
  16393. 8007256: 2304 movcs r3, #4
  16394. 8007258: 61bb str r3, [r7, #24]
  16395. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  16396. 800725a: 69fb ldr r3, [r7, #28]
  16397. 800725c: 3304 adds r3, #4
  16398. 800725e: 2b06 cmp r3, #6
  16399. 8007260: d902 bls.n 8007268 <NVIC_EncodePriority+0x30>
  16400. 8007262: 69fb ldr r3, [r7, #28]
  16401. 8007264: 3b03 subs r3, #3
  16402. 8007266: e000 b.n 800726a <NVIC_EncodePriority+0x32>
  16403. 8007268: 2300 movs r3, #0
  16404. 800726a: 617b str r3, [r7, #20]
  16405. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  16406. 800726c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  16407. 8007270: 69bb ldr r3, [r7, #24]
  16408. 8007272: fa02 f303 lsl.w r3, r2, r3
  16409. 8007276: 43da mvns r2, r3
  16410. 8007278: 68bb ldr r3, [r7, #8]
  16411. 800727a: 401a ands r2, r3
  16412. 800727c: 697b ldr r3, [r7, #20]
  16413. 800727e: 409a lsls r2, r3
  16414. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  16415. 8007280: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  16416. 8007284: 697b ldr r3, [r7, #20]
  16417. 8007286: fa01 f303 lsl.w r3, r1, r3
  16418. 800728a: 43d9 mvns r1, r3
  16419. 800728c: 687b ldr r3, [r7, #4]
  16420. 800728e: 400b ands r3, r1
  16421. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  16422. 8007290: 4313 orrs r3, r2
  16423. }
  16424. 8007292: 4618 mov r0, r3
  16425. 8007294: 3724 adds r7, #36 @ 0x24
  16426. 8007296: 46bd mov sp, r7
  16427. 8007298: f85d 7b04 ldr.w r7, [sp], #4
  16428. 800729c: 4770 bx lr
  16429. 0800729e <HAL_NVIC_SetPriorityGrouping>:
  16430. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  16431. * The pending IRQ priority will be managed only by the subpriority.
  16432. * @retval None
  16433. */
  16434. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  16435. {
  16436. 800729e: b580 push {r7, lr}
  16437. 80072a0: b082 sub sp, #8
  16438. 80072a2: af00 add r7, sp, #0
  16439. 80072a4: 6078 str r0, [r7, #4]
  16440. /* Check the parameters */
  16441. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  16442. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  16443. NVIC_SetPriorityGrouping(PriorityGroup);
  16444. 80072a6: 6878 ldr r0, [r7, #4]
  16445. 80072a8: f7ff ff4c bl 8007144 <__NVIC_SetPriorityGrouping>
  16446. }
  16447. 80072ac: bf00 nop
  16448. 80072ae: 3708 adds r7, #8
  16449. 80072b0: 46bd mov sp, r7
  16450. 80072b2: bd80 pop {r7, pc}
  16451. 080072b4 <HAL_NVIC_SetPriority>:
  16452. * This parameter can be a value between 0 and 15
  16453. * A lower priority value indicates a higher priority.
  16454. * @retval None
  16455. */
  16456. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  16457. {
  16458. 80072b4: b580 push {r7, lr}
  16459. 80072b6: b086 sub sp, #24
  16460. 80072b8: af00 add r7, sp, #0
  16461. 80072ba: 4603 mov r3, r0
  16462. 80072bc: 60b9 str r1, [r7, #8]
  16463. 80072be: 607a str r2, [r7, #4]
  16464. 80072c0: 81fb strh r3, [r7, #14]
  16465. /* Check the parameters */
  16466. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  16467. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  16468. prioritygroup = NVIC_GetPriorityGrouping();
  16469. 80072c2: f7ff ff63 bl 800718c <__NVIC_GetPriorityGrouping>
  16470. 80072c6: 6178 str r0, [r7, #20]
  16471. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  16472. 80072c8: 687a ldr r2, [r7, #4]
  16473. 80072ca: 68b9 ldr r1, [r7, #8]
  16474. 80072cc: 6978 ldr r0, [r7, #20]
  16475. 80072ce: f7ff ffb3 bl 8007238 <NVIC_EncodePriority>
  16476. 80072d2: 4602 mov r2, r0
  16477. 80072d4: f9b7 300e ldrsh.w r3, [r7, #14]
  16478. 80072d8: 4611 mov r1, r2
  16479. 80072da: 4618 mov r0, r3
  16480. 80072dc: f7ff ff82 bl 80071e4 <__NVIC_SetPriority>
  16481. }
  16482. 80072e0: bf00 nop
  16483. 80072e2: 3718 adds r7, #24
  16484. 80072e4: 46bd mov sp, r7
  16485. 80072e6: bd80 pop {r7, pc}
  16486. 080072e8 <HAL_NVIC_EnableIRQ>:
  16487. * This parameter can be an enumerator of IRQn_Type enumeration
  16488. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  16489. * @retval None
  16490. */
  16491. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  16492. {
  16493. 80072e8: b580 push {r7, lr}
  16494. 80072ea: b082 sub sp, #8
  16495. 80072ec: af00 add r7, sp, #0
  16496. 80072ee: 4603 mov r3, r0
  16497. 80072f0: 80fb strh r3, [r7, #6]
  16498. /* Check the parameters */
  16499. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  16500. /* Enable interrupt */
  16501. NVIC_EnableIRQ(IRQn);
  16502. 80072f2: f9b7 3006 ldrsh.w r3, [r7, #6]
  16503. 80072f6: 4618 mov r0, r3
  16504. 80072f8: f7ff ff56 bl 80071a8 <__NVIC_EnableIRQ>
  16505. }
  16506. 80072fc: bf00 nop
  16507. 80072fe: 3708 adds r7, #8
  16508. 8007300: 46bd mov sp, r7
  16509. 8007302: bd80 pop {r7, pc}
  16510. 08007304 <HAL_MPU_Disable>:
  16511. /**
  16512. * @brief Disables the MPU
  16513. * @retval None
  16514. */
  16515. void HAL_MPU_Disable(void)
  16516. {
  16517. 8007304: b480 push {r7}
  16518. 8007306: af00 add r7, sp, #0
  16519. __ASM volatile ("dmb 0xF":::"memory");
  16520. 8007308: f3bf 8f5f dmb sy
  16521. }
  16522. 800730c: bf00 nop
  16523. /* Make sure outstanding transfers are done */
  16524. __DMB();
  16525. /* Disable fault exceptions */
  16526. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  16527. 800730e: 4b07 ldr r3, [pc, #28] @ (800732c <HAL_MPU_Disable+0x28>)
  16528. 8007310: 6a5b ldr r3, [r3, #36] @ 0x24
  16529. 8007312: 4a06 ldr r2, [pc, #24] @ (800732c <HAL_MPU_Disable+0x28>)
  16530. 8007314: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  16531. 8007318: 6253 str r3, [r2, #36] @ 0x24
  16532. /* Disable the MPU and clear the control register*/
  16533. MPU->CTRL = 0;
  16534. 800731a: 4b05 ldr r3, [pc, #20] @ (8007330 <HAL_MPU_Disable+0x2c>)
  16535. 800731c: 2200 movs r2, #0
  16536. 800731e: 605a str r2, [r3, #4]
  16537. }
  16538. 8007320: bf00 nop
  16539. 8007322: 46bd mov sp, r7
  16540. 8007324: f85d 7b04 ldr.w r7, [sp], #4
  16541. 8007328: 4770 bx lr
  16542. 800732a: bf00 nop
  16543. 800732c: e000ed00 .word 0xe000ed00
  16544. 8007330: e000ed90 .word 0xe000ed90
  16545. 08007334 <HAL_MPU_Enable>:
  16546. * @arg MPU_PRIVILEGED_DEFAULT
  16547. * @arg MPU_HFNMI_PRIVDEF
  16548. * @retval None
  16549. */
  16550. void HAL_MPU_Enable(uint32_t MPU_Control)
  16551. {
  16552. 8007334: b480 push {r7}
  16553. 8007336: b083 sub sp, #12
  16554. 8007338: af00 add r7, sp, #0
  16555. 800733a: 6078 str r0, [r7, #4]
  16556. /* Enable the MPU */
  16557. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  16558. 800733c: 4a0b ldr r2, [pc, #44] @ (800736c <HAL_MPU_Enable+0x38>)
  16559. 800733e: 687b ldr r3, [r7, #4]
  16560. 8007340: f043 0301 orr.w r3, r3, #1
  16561. 8007344: 6053 str r3, [r2, #4]
  16562. /* Enable fault exceptions */
  16563. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  16564. 8007346: 4b0a ldr r3, [pc, #40] @ (8007370 <HAL_MPU_Enable+0x3c>)
  16565. 8007348: 6a5b ldr r3, [r3, #36] @ 0x24
  16566. 800734a: 4a09 ldr r2, [pc, #36] @ (8007370 <HAL_MPU_Enable+0x3c>)
  16567. 800734c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  16568. 8007350: 6253 str r3, [r2, #36] @ 0x24
  16569. __ASM volatile ("dsb 0xF":::"memory");
  16570. 8007352: f3bf 8f4f dsb sy
  16571. }
  16572. 8007356: bf00 nop
  16573. __ASM volatile ("isb 0xF":::"memory");
  16574. 8007358: f3bf 8f6f isb sy
  16575. }
  16576. 800735c: bf00 nop
  16577. /* Ensure MPU setting take effects */
  16578. __DSB();
  16579. __ISB();
  16580. }
  16581. 800735e: bf00 nop
  16582. 8007360: 370c adds r7, #12
  16583. 8007362: 46bd mov sp, r7
  16584. 8007364: f85d 7b04 ldr.w r7, [sp], #4
  16585. 8007368: 4770 bx lr
  16586. 800736a: bf00 nop
  16587. 800736c: e000ed90 .word 0xe000ed90
  16588. 8007370: e000ed00 .word 0xe000ed00
  16589. 08007374 <HAL_MPU_ConfigRegion>:
  16590. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  16591. * the initialization and configuration information.
  16592. * @retval None
  16593. */
  16594. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  16595. {
  16596. 8007374: b480 push {r7}
  16597. 8007376: b083 sub sp, #12
  16598. 8007378: af00 add r7, sp, #0
  16599. 800737a: 6078 str r0, [r7, #4]
  16600. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  16601. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  16602. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  16603. /* Set the Region number */
  16604. MPU->RNR = MPU_Init->Number;
  16605. 800737c: 687b ldr r3, [r7, #4]
  16606. 800737e: 785a ldrb r2, [r3, #1]
  16607. 8007380: 4b1b ldr r3, [pc, #108] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16608. 8007382: 609a str r2, [r3, #8]
  16609. /* Disable the Region */
  16610. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  16611. 8007384: 4b1a ldr r3, [pc, #104] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16612. 8007386: 691b ldr r3, [r3, #16]
  16613. 8007388: 4a19 ldr r2, [pc, #100] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16614. 800738a: f023 0301 bic.w r3, r3, #1
  16615. 800738e: 6113 str r3, [r2, #16]
  16616. /* Apply configuration */
  16617. MPU->RBAR = MPU_Init->BaseAddress;
  16618. 8007390: 4a17 ldr r2, [pc, #92] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16619. 8007392: 687b ldr r3, [r7, #4]
  16620. 8007394: 685b ldr r3, [r3, #4]
  16621. 8007396: 60d3 str r3, [r2, #12]
  16622. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16623. 8007398: 687b ldr r3, [r7, #4]
  16624. 800739a: 7b1b ldrb r3, [r3, #12]
  16625. 800739c: 071a lsls r2, r3, #28
  16626. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  16627. 800739e: 687b ldr r3, [r7, #4]
  16628. 80073a0: 7adb ldrb r3, [r3, #11]
  16629. 80073a2: 061b lsls r3, r3, #24
  16630. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16631. 80073a4: 431a orrs r2, r3
  16632. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  16633. 80073a6: 687b ldr r3, [r7, #4]
  16634. 80073a8: 7a9b ldrb r3, [r3, #10]
  16635. 80073aa: 04db lsls r3, r3, #19
  16636. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  16637. 80073ac: 431a orrs r2, r3
  16638. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  16639. 80073ae: 687b ldr r3, [r7, #4]
  16640. 80073b0: 7b5b ldrb r3, [r3, #13]
  16641. 80073b2: 049b lsls r3, r3, #18
  16642. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  16643. 80073b4: 431a orrs r2, r3
  16644. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  16645. 80073b6: 687b ldr r3, [r7, #4]
  16646. 80073b8: 7b9b ldrb r3, [r3, #14]
  16647. 80073ba: 045b lsls r3, r3, #17
  16648. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  16649. 80073bc: 431a orrs r2, r3
  16650. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  16651. 80073be: 687b ldr r3, [r7, #4]
  16652. 80073c0: 7bdb ldrb r3, [r3, #15]
  16653. 80073c2: 041b lsls r3, r3, #16
  16654. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  16655. 80073c4: 431a orrs r2, r3
  16656. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  16657. 80073c6: 687b ldr r3, [r7, #4]
  16658. 80073c8: 7a5b ldrb r3, [r3, #9]
  16659. 80073ca: 021b lsls r3, r3, #8
  16660. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  16661. 80073cc: 431a orrs r2, r3
  16662. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  16663. 80073ce: 687b ldr r3, [r7, #4]
  16664. 80073d0: 7a1b ldrb r3, [r3, #8]
  16665. 80073d2: 005b lsls r3, r3, #1
  16666. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  16667. 80073d4: 4313 orrs r3, r2
  16668. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  16669. 80073d6: 687a ldr r2, [r7, #4]
  16670. 80073d8: 7812 ldrb r2, [r2, #0]
  16671. 80073da: 4611 mov r1, r2
  16672. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16673. 80073dc: 4a04 ldr r2, [pc, #16] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16674. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  16675. 80073de: 430b orrs r3, r1
  16676. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16677. 80073e0: 6113 str r3, [r2, #16]
  16678. }
  16679. 80073e2: bf00 nop
  16680. 80073e4: 370c adds r7, #12
  16681. 80073e6: 46bd mov sp, r7
  16682. 80073e8: f85d 7b04 ldr.w r7, [sp], #4
  16683. 80073ec: 4770 bx lr
  16684. 80073ee: bf00 nop
  16685. 80073f0: e000ed90 .word 0xe000ed90
  16686. 080073f4 <HAL_CRC_Init>:
  16687. * parameters in the CRC_InitTypeDef and create the associated handle.
  16688. * @param hcrc CRC handle
  16689. * @retval HAL status
  16690. */
  16691. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  16692. {
  16693. 80073f4: b580 push {r7, lr}
  16694. 80073f6: b082 sub sp, #8
  16695. 80073f8: af00 add r7, sp, #0
  16696. 80073fa: 6078 str r0, [r7, #4]
  16697. /* Check the CRC handle allocation */
  16698. if (hcrc == NULL)
  16699. 80073fc: 687b ldr r3, [r7, #4]
  16700. 80073fe: 2b00 cmp r3, #0
  16701. 8007400: d101 bne.n 8007406 <HAL_CRC_Init+0x12>
  16702. {
  16703. return HAL_ERROR;
  16704. 8007402: 2301 movs r3, #1
  16705. 8007404: e054 b.n 80074b0 <HAL_CRC_Init+0xbc>
  16706. }
  16707. /* Check the parameters */
  16708. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  16709. if (hcrc->State == HAL_CRC_STATE_RESET)
  16710. 8007406: 687b ldr r3, [r7, #4]
  16711. 8007408: 7f5b ldrb r3, [r3, #29]
  16712. 800740a: b2db uxtb r3, r3
  16713. 800740c: 2b00 cmp r3, #0
  16714. 800740e: d105 bne.n 800741c <HAL_CRC_Init+0x28>
  16715. {
  16716. /* Allocate lock resource and initialize it */
  16717. hcrc->Lock = HAL_UNLOCKED;
  16718. 8007410: 687b ldr r3, [r7, #4]
  16719. 8007412: 2200 movs r2, #0
  16720. 8007414: 771a strb r2, [r3, #28]
  16721. /* Init the low level hardware */
  16722. HAL_CRC_MspInit(hcrc);
  16723. 8007416: 6878 ldr r0, [r7, #4]
  16724. 8007418: f7fc faa6 bl 8003968 <HAL_CRC_MspInit>
  16725. }
  16726. hcrc->State = HAL_CRC_STATE_BUSY;
  16727. 800741c: 687b ldr r3, [r7, #4]
  16728. 800741e: 2202 movs r2, #2
  16729. 8007420: 775a strb r2, [r3, #29]
  16730. /* check whether or not non-default generating polynomial has been
  16731. * picked up by user */
  16732. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  16733. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  16734. 8007422: 687b ldr r3, [r7, #4]
  16735. 8007424: 791b ldrb r3, [r3, #4]
  16736. 8007426: 2b00 cmp r3, #0
  16737. 8007428: d10c bne.n 8007444 <HAL_CRC_Init+0x50>
  16738. {
  16739. /* initialize peripheral with default generating polynomial */
  16740. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  16741. 800742a: 687b ldr r3, [r7, #4]
  16742. 800742c: 681b ldr r3, [r3, #0]
  16743. 800742e: 4a22 ldr r2, [pc, #136] @ (80074b8 <HAL_CRC_Init+0xc4>)
  16744. 8007430: 615a str r2, [r3, #20]
  16745. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  16746. 8007432: 687b ldr r3, [r7, #4]
  16747. 8007434: 681b ldr r3, [r3, #0]
  16748. 8007436: 689a ldr r2, [r3, #8]
  16749. 8007438: 687b ldr r3, [r7, #4]
  16750. 800743a: 681b ldr r3, [r3, #0]
  16751. 800743c: f022 0218 bic.w r2, r2, #24
  16752. 8007440: 609a str r2, [r3, #8]
  16753. 8007442: e00c b.n 800745e <HAL_CRC_Init+0x6a>
  16754. }
  16755. else
  16756. {
  16757. /* initialize CRC peripheral with generating polynomial defined by user */
  16758. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  16759. 8007444: 687b ldr r3, [r7, #4]
  16760. 8007446: 6899 ldr r1, [r3, #8]
  16761. 8007448: 687b ldr r3, [r7, #4]
  16762. 800744a: 68db ldr r3, [r3, #12]
  16763. 800744c: 461a mov r2, r3
  16764. 800744e: 6878 ldr r0, [r7, #4]
  16765. 8007450: f000 f948 bl 80076e4 <HAL_CRCEx_Polynomial_Set>
  16766. 8007454: 4603 mov r3, r0
  16767. 8007456: 2b00 cmp r3, #0
  16768. 8007458: d001 beq.n 800745e <HAL_CRC_Init+0x6a>
  16769. {
  16770. return HAL_ERROR;
  16771. 800745a: 2301 movs r3, #1
  16772. 800745c: e028 b.n 80074b0 <HAL_CRC_Init+0xbc>
  16773. }
  16774. /* check whether or not non-default CRC initial value has been
  16775. * picked up by user */
  16776. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  16777. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  16778. 800745e: 687b ldr r3, [r7, #4]
  16779. 8007460: 795b ldrb r3, [r3, #5]
  16780. 8007462: 2b00 cmp r3, #0
  16781. 8007464: d105 bne.n 8007472 <HAL_CRC_Init+0x7e>
  16782. {
  16783. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  16784. 8007466: 687b ldr r3, [r7, #4]
  16785. 8007468: 681b ldr r3, [r3, #0]
  16786. 800746a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  16787. 800746e: 611a str r2, [r3, #16]
  16788. 8007470: e004 b.n 800747c <HAL_CRC_Init+0x88>
  16789. }
  16790. else
  16791. {
  16792. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  16793. 8007472: 687b ldr r3, [r7, #4]
  16794. 8007474: 681b ldr r3, [r3, #0]
  16795. 8007476: 687a ldr r2, [r7, #4]
  16796. 8007478: 6912 ldr r2, [r2, #16]
  16797. 800747a: 611a str r2, [r3, #16]
  16798. }
  16799. /* set input data inversion mode */
  16800. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  16801. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  16802. 800747c: 687b ldr r3, [r7, #4]
  16803. 800747e: 681b ldr r3, [r3, #0]
  16804. 8007480: 689b ldr r3, [r3, #8]
  16805. 8007482: f023 0160 bic.w r1, r3, #96 @ 0x60
  16806. 8007486: 687b ldr r3, [r7, #4]
  16807. 8007488: 695a ldr r2, [r3, #20]
  16808. 800748a: 687b ldr r3, [r7, #4]
  16809. 800748c: 681b ldr r3, [r3, #0]
  16810. 800748e: 430a orrs r2, r1
  16811. 8007490: 609a str r2, [r3, #8]
  16812. /* set output data inversion mode */
  16813. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  16814. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  16815. 8007492: 687b ldr r3, [r7, #4]
  16816. 8007494: 681b ldr r3, [r3, #0]
  16817. 8007496: 689b ldr r3, [r3, #8]
  16818. 8007498: f023 0180 bic.w r1, r3, #128 @ 0x80
  16819. 800749c: 687b ldr r3, [r7, #4]
  16820. 800749e: 699a ldr r2, [r3, #24]
  16821. 80074a0: 687b ldr r3, [r7, #4]
  16822. 80074a2: 681b ldr r3, [r3, #0]
  16823. 80074a4: 430a orrs r2, r1
  16824. 80074a6: 609a str r2, [r3, #8]
  16825. /* makes sure the input data format (bytes, halfwords or words stream)
  16826. * is properly specified by user */
  16827. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  16828. /* Change CRC peripheral state */
  16829. hcrc->State = HAL_CRC_STATE_READY;
  16830. 80074a8: 687b ldr r3, [r7, #4]
  16831. 80074aa: 2201 movs r2, #1
  16832. 80074ac: 775a strb r2, [r3, #29]
  16833. /* Return function status */
  16834. return HAL_OK;
  16835. 80074ae: 2300 movs r3, #0
  16836. }
  16837. 80074b0: 4618 mov r0, r3
  16838. 80074b2: 3708 adds r7, #8
  16839. 80074b4: 46bd mov sp, r7
  16840. 80074b6: bd80 pop {r7, pc}
  16841. 80074b8: 04c11db7 .word 0x04c11db7
  16842. 080074bc <HAL_CRC_Calculate>:
  16843. * and the API will internally adjust its input data processing based on the
  16844. * handle field hcrc->InputDataFormat.
  16845. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  16846. */
  16847. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  16848. {
  16849. 80074bc: b580 push {r7, lr}
  16850. 80074be: b086 sub sp, #24
  16851. 80074c0: af00 add r7, sp, #0
  16852. 80074c2: 60f8 str r0, [r7, #12]
  16853. 80074c4: 60b9 str r1, [r7, #8]
  16854. 80074c6: 607a str r2, [r7, #4]
  16855. uint32_t index; /* CRC input data buffer index */
  16856. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  16857. 80074c8: 2300 movs r3, #0
  16858. 80074ca: 613b str r3, [r7, #16]
  16859. /* Change CRC peripheral state */
  16860. hcrc->State = HAL_CRC_STATE_BUSY;
  16861. 80074cc: 68fb ldr r3, [r7, #12]
  16862. 80074ce: 2202 movs r2, #2
  16863. 80074d0: 775a strb r2, [r3, #29]
  16864. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  16865. * written in hcrc->Instance->DR) */
  16866. __HAL_CRC_DR_RESET(hcrc);
  16867. 80074d2: 68fb ldr r3, [r7, #12]
  16868. 80074d4: 681b ldr r3, [r3, #0]
  16869. 80074d6: 689a ldr r2, [r3, #8]
  16870. 80074d8: 68fb ldr r3, [r7, #12]
  16871. 80074da: 681b ldr r3, [r3, #0]
  16872. 80074dc: f042 0201 orr.w r2, r2, #1
  16873. 80074e0: 609a str r2, [r3, #8]
  16874. switch (hcrc->InputDataFormat)
  16875. 80074e2: 68fb ldr r3, [r7, #12]
  16876. 80074e4: 6a1b ldr r3, [r3, #32]
  16877. 80074e6: 2b03 cmp r3, #3
  16878. 80074e8: d006 beq.n 80074f8 <HAL_CRC_Calculate+0x3c>
  16879. 80074ea: 2b03 cmp r3, #3
  16880. 80074ec: d829 bhi.n 8007542 <HAL_CRC_Calculate+0x86>
  16881. 80074ee: 2b01 cmp r3, #1
  16882. 80074f0: d019 beq.n 8007526 <HAL_CRC_Calculate+0x6a>
  16883. 80074f2: 2b02 cmp r3, #2
  16884. 80074f4: d01e beq.n 8007534 <HAL_CRC_Calculate+0x78>
  16885. /* Specific 16-bit input data handling */
  16886. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  16887. break;
  16888. default:
  16889. break;
  16890. 80074f6: e024 b.n 8007542 <HAL_CRC_Calculate+0x86>
  16891. for (index = 0U; index < BufferLength; index++)
  16892. 80074f8: 2300 movs r3, #0
  16893. 80074fa: 617b str r3, [r7, #20]
  16894. 80074fc: e00a b.n 8007514 <HAL_CRC_Calculate+0x58>
  16895. hcrc->Instance->DR = pBuffer[index];
  16896. 80074fe: 697b ldr r3, [r7, #20]
  16897. 8007500: 009b lsls r3, r3, #2
  16898. 8007502: 68ba ldr r2, [r7, #8]
  16899. 8007504: 441a add r2, r3
  16900. 8007506: 68fb ldr r3, [r7, #12]
  16901. 8007508: 681b ldr r3, [r3, #0]
  16902. 800750a: 6812 ldr r2, [r2, #0]
  16903. 800750c: 601a str r2, [r3, #0]
  16904. for (index = 0U; index < BufferLength; index++)
  16905. 800750e: 697b ldr r3, [r7, #20]
  16906. 8007510: 3301 adds r3, #1
  16907. 8007512: 617b str r3, [r7, #20]
  16908. 8007514: 697a ldr r2, [r7, #20]
  16909. 8007516: 687b ldr r3, [r7, #4]
  16910. 8007518: 429a cmp r2, r3
  16911. 800751a: d3f0 bcc.n 80074fe <HAL_CRC_Calculate+0x42>
  16912. temp = hcrc->Instance->DR;
  16913. 800751c: 68fb ldr r3, [r7, #12]
  16914. 800751e: 681b ldr r3, [r3, #0]
  16915. 8007520: 681b ldr r3, [r3, #0]
  16916. 8007522: 613b str r3, [r7, #16]
  16917. break;
  16918. 8007524: e00e b.n 8007544 <HAL_CRC_Calculate+0x88>
  16919. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  16920. 8007526: 687a ldr r2, [r7, #4]
  16921. 8007528: 68b9 ldr r1, [r7, #8]
  16922. 800752a: 68f8 ldr r0, [r7, #12]
  16923. 800752c: f000 f812 bl 8007554 <CRC_Handle_8>
  16924. 8007530: 6138 str r0, [r7, #16]
  16925. break;
  16926. 8007532: e007 b.n 8007544 <HAL_CRC_Calculate+0x88>
  16927. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  16928. 8007534: 687a ldr r2, [r7, #4]
  16929. 8007536: 68b9 ldr r1, [r7, #8]
  16930. 8007538: 68f8 ldr r0, [r7, #12]
  16931. 800753a: f000 f899 bl 8007670 <CRC_Handle_16>
  16932. 800753e: 6138 str r0, [r7, #16]
  16933. break;
  16934. 8007540: e000 b.n 8007544 <HAL_CRC_Calculate+0x88>
  16935. break;
  16936. 8007542: bf00 nop
  16937. }
  16938. /* Change CRC peripheral state */
  16939. hcrc->State = HAL_CRC_STATE_READY;
  16940. 8007544: 68fb ldr r3, [r7, #12]
  16941. 8007546: 2201 movs r2, #1
  16942. 8007548: 775a strb r2, [r3, #29]
  16943. /* Return the CRC computed value */
  16944. return temp;
  16945. 800754a: 693b ldr r3, [r7, #16]
  16946. }
  16947. 800754c: 4618 mov r0, r3
  16948. 800754e: 3718 adds r7, #24
  16949. 8007550: 46bd mov sp, r7
  16950. 8007552: bd80 pop {r7, pc}
  16951. 08007554 <CRC_Handle_8>:
  16952. * @param pBuffer pointer to the input data buffer
  16953. * @param BufferLength input data buffer length
  16954. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  16955. */
  16956. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  16957. {
  16958. 8007554: b480 push {r7}
  16959. 8007556: b089 sub sp, #36 @ 0x24
  16960. 8007558: af00 add r7, sp, #0
  16961. 800755a: 60f8 str r0, [r7, #12]
  16962. 800755c: 60b9 str r1, [r7, #8]
  16963. 800755e: 607a str r2, [r7, #4]
  16964. __IO uint16_t *pReg;
  16965. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  16966. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  16967. * handling by the peripheral */
  16968. for (i = 0U; i < (BufferLength / 4U); i++)
  16969. 8007560: 2300 movs r3, #0
  16970. 8007562: 61fb str r3, [r7, #28]
  16971. 8007564: e023 b.n 80075ae <CRC_Handle_8+0x5a>
  16972. {
  16973. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16974. 8007566: 69fb ldr r3, [r7, #28]
  16975. 8007568: 009b lsls r3, r3, #2
  16976. 800756a: 68ba ldr r2, [r7, #8]
  16977. 800756c: 4413 add r3, r2
  16978. 800756e: 781b ldrb r3, [r3, #0]
  16979. 8007570: 061a lsls r2, r3, #24
  16980. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  16981. 8007572: 69fb ldr r3, [r7, #28]
  16982. 8007574: 009b lsls r3, r3, #2
  16983. 8007576: 3301 adds r3, #1
  16984. 8007578: 68b9 ldr r1, [r7, #8]
  16985. 800757a: 440b add r3, r1
  16986. 800757c: 781b ldrb r3, [r3, #0]
  16987. 800757e: 041b lsls r3, r3, #16
  16988. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16989. 8007580: 431a orrs r2, r3
  16990. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  16991. 8007582: 69fb ldr r3, [r7, #28]
  16992. 8007584: 009b lsls r3, r3, #2
  16993. 8007586: 3302 adds r3, #2
  16994. 8007588: 68b9 ldr r1, [r7, #8]
  16995. 800758a: 440b add r3, r1
  16996. 800758c: 781b ldrb r3, [r3, #0]
  16997. 800758e: 021b lsls r3, r3, #8
  16998. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  16999. 8007590: 431a orrs r2, r3
  17000. (uint32_t)pBuffer[(4U * i) + 3U];
  17001. 8007592: 69fb ldr r3, [r7, #28]
  17002. 8007594: 009b lsls r3, r3, #2
  17003. 8007596: 3303 adds r3, #3
  17004. 8007598: 68b9 ldr r1, [r7, #8]
  17005. 800759a: 440b add r3, r1
  17006. 800759c: 781b ldrb r3, [r3, #0]
  17007. 800759e: 4619 mov r1, r3
  17008. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17009. 80075a0: 68fb ldr r3, [r7, #12]
  17010. 80075a2: 681b ldr r3, [r3, #0]
  17011. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  17012. 80075a4: 430a orrs r2, r1
  17013. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17014. 80075a6: 601a str r2, [r3, #0]
  17015. for (i = 0U; i < (BufferLength / 4U); i++)
  17016. 80075a8: 69fb ldr r3, [r7, #28]
  17017. 80075aa: 3301 adds r3, #1
  17018. 80075ac: 61fb str r3, [r7, #28]
  17019. 80075ae: 687b ldr r3, [r7, #4]
  17020. 80075b0: 089b lsrs r3, r3, #2
  17021. 80075b2: 69fa ldr r2, [r7, #28]
  17022. 80075b4: 429a cmp r2, r3
  17023. 80075b6: d3d6 bcc.n 8007566 <CRC_Handle_8+0x12>
  17024. }
  17025. /* last bytes specific handling */
  17026. if ((BufferLength % 4U) != 0U)
  17027. 80075b8: 687b ldr r3, [r7, #4]
  17028. 80075ba: f003 0303 and.w r3, r3, #3
  17029. 80075be: 2b00 cmp r3, #0
  17030. 80075c0: d04d beq.n 800765e <CRC_Handle_8+0x10a>
  17031. {
  17032. if ((BufferLength % 4U) == 1U)
  17033. 80075c2: 687b ldr r3, [r7, #4]
  17034. 80075c4: f003 0303 and.w r3, r3, #3
  17035. 80075c8: 2b01 cmp r3, #1
  17036. 80075ca: d107 bne.n 80075dc <CRC_Handle_8+0x88>
  17037. {
  17038. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  17039. 80075cc: 69fb ldr r3, [r7, #28]
  17040. 80075ce: 009b lsls r3, r3, #2
  17041. 80075d0: 68ba ldr r2, [r7, #8]
  17042. 80075d2: 4413 add r3, r2
  17043. 80075d4: 68fa ldr r2, [r7, #12]
  17044. 80075d6: 6812 ldr r2, [r2, #0]
  17045. 80075d8: 781b ldrb r3, [r3, #0]
  17046. 80075da: 7013 strb r3, [r2, #0]
  17047. }
  17048. if ((BufferLength % 4U) == 2U)
  17049. 80075dc: 687b ldr r3, [r7, #4]
  17050. 80075de: f003 0303 and.w r3, r3, #3
  17051. 80075e2: 2b02 cmp r3, #2
  17052. 80075e4: d116 bne.n 8007614 <CRC_Handle_8+0xc0>
  17053. {
  17054. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  17055. 80075e6: 69fb ldr r3, [r7, #28]
  17056. 80075e8: 009b lsls r3, r3, #2
  17057. 80075ea: 68ba ldr r2, [r7, #8]
  17058. 80075ec: 4413 add r3, r2
  17059. 80075ee: 781b ldrb r3, [r3, #0]
  17060. 80075f0: 021b lsls r3, r3, #8
  17061. 80075f2: b21a sxth r2, r3
  17062. 80075f4: 69fb ldr r3, [r7, #28]
  17063. 80075f6: 009b lsls r3, r3, #2
  17064. 80075f8: 3301 adds r3, #1
  17065. 80075fa: 68b9 ldr r1, [r7, #8]
  17066. 80075fc: 440b add r3, r1
  17067. 80075fe: 781b ldrb r3, [r3, #0]
  17068. 8007600: b21b sxth r3, r3
  17069. 8007602: 4313 orrs r3, r2
  17070. 8007604: b21b sxth r3, r3
  17071. 8007606: 837b strh r3, [r7, #26]
  17072. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17073. 8007608: 68fb ldr r3, [r7, #12]
  17074. 800760a: 681b ldr r3, [r3, #0]
  17075. 800760c: 617b str r3, [r7, #20]
  17076. *pReg = data;
  17077. 800760e: 697b ldr r3, [r7, #20]
  17078. 8007610: 8b7a ldrh r2, [r7, #26]
  17079. 8007612: 801a strh r2, [r3, #0]
  17080. }
  17081. if ((BufferLength % 4U) == 3U)
  17082. 8007614: 687b ldr r3, [r7, #4]
  17083. 8007616: f003 0303 and.w r3, r3, #3
  17084. 800761a: 2b03 cmp r3, #3
  17085. 800761c: d11f bne.n 800765e <CRC_Handle_8+0x10a>
  17086. {
  17087. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  17088. 800761e: 69fb ldr r3, [r7, #28]
  17089. 8007620: 009b lsls r3, r3, #2
  17090. 8007622: 68ba ldr r2, [r7, #8]
  17091. 8007624: 4413 add r3, r2
  17092. 8007626: 781b ldrb r3, [r3, #0]
  17093. 8007628: 021b lsls r3, r3, #8
  17094. 800762a: b21a sxth r2, r3
  17095. 800762c: 69fb ldr r3, [r7, #28]
  17096. 800762e: 009b lsls r3, r3, #2
  17097. 8007630: 3301 adds r3, #1
  17098. 8007632: 68b9 ldr r1, [r7, #8]
  17099. 8007634: 440b add r3, r1
  17100. 8007636: 781b ldrb r3, [r3, #0]
  17101. 8007638: b21b sxth r3, r3
  17102. 800763a: 4313 orrs r3, r2
  17103. 800763c: b21b sxth r3, r3
  17104. 800763e: 837b strh r3, [r7, #26]
  17105. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17106. 8007640: 68fb ldr r3, [r7, #12]
  17107. 8007642: 681b ldr r3, [r3, #0]
  17108. 8007644: 617b str r3, [r7, #20]
  17109. *pReg = data;
  17110. 8007646: 697b ldr r3, [r7, #20]
  17111. 8007648: 8b7a ldrh r2, [r7, #26]
  17112. 800764a: 801a strh r2, [r3, #0]
  17113. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  17114. 800764c: 69fb ldr r3, [r7, #28]
  17115. 800764e: 009b lsls r3, r3, #2
  17116. 8007650: 3302 adds r3, #2
  17117. 8007652: 68ba ldr r2, [r7, #8]
  17118. 8007654: 4413 add r3, r2
  17119. 8007656: 68fa ldr r2, [r7, #12]
  17120. 8007658: 6812 ldr r2, [r2, #0]
  17121. 800765a: 781b ldrb r3, [r3, #0]
  17122. 800765c: 7013 strb r3, [r2, #0]
  17123. }
  17124. }
  17125. /* Return the CRC computed value */
  17126. return hcrc->Instance->DR;
  17127. 800765e: 68fb ldr r3, [r7, #12]
  17128. 8007660: 681b ldr r3, [r3, #0]
  17129. 8007662: 681b ldr r3, [r3, #0]
  17130. }
  17131. 8007664: 4618 mov r0, r3
  17132. 8007666: 3724 adds r7, #36 @ 0x24
  17133. 8007668: 46bd mov sp, r7
  17134. 800766a: f85d 7b04 ldr.w r7, [sp], #4
  17135. 800766e: 4770 bx lr
  17136. 08007670 <CRC_Handle_16>:
  17137. * @param pBuffer pointer to the input data buffer
  17138. * @param BufferLength input data buffer length
  17139. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17140. */
  17141. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  17142. {
  17143. 8007670: b480 push {r7}
  17144. 8007672: b087 sub sp, #28
  17145. 8007674: af00 add r7, sp, #0
  17146. 8007676: 60f8 str r0, [r7, #12]
  17147. 8007678: 60b9 str r1, [r7, #8]
  17148. 800767a: 607a str r2, [r7, #4]
  17149. __IO uint16_t *pReg;
  17150. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  17151. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  17152. * a correct type handling by the peripheral */
  17153. for (i = 0U; i < (BufferLength / 2U); i++)
  17154. 800767c: 2300 movs r3, #0
  17155. 800767e: 617b str r3, [r7, #20]
  17156. 8007680: e013 b.n 80076aa <CRC_Handle_16+0x3a>
  17157. {
  17158. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  17159. 8007682: 697b ldr r3, [r7, #20]
  17160. 8007684: 009b lsls r3, r3, #2
  17161. 8007686: 68ba ldr r2, [r7, #8]
  17162. 8007688: 4413 add r3, r2
  17163. 800768a: 881b ldrh r3, [r3, #0]
  17164. 800768c: 041a lsls r2, r3, #16
  17165. 800768e: 697b ldr r3, [r7, #20]
  17166. 8007690: 009b lsls r3, r3, #2
  17167. 8007692: 3302 adds r3, #2
  17168. 8007694: 68b9 ldr r1, [r7, #8]
  17169. 8007696: 440b add r3, r1
  17170. 8007698: 881b ldrh r3, [r3, #0]
  17171. 800769a: 4619 mov r1, r3
  17172. 800769c: 68fb ldr r3, [r7, #12]
  17173. 800769e: 681b ldr r3, [r3, #0]
  17174. 80076a0: 430a orrs r2, r1
  17175. 80076a2: 601a str r2, [r3, #0]
  17176. for (i = 0U; i < (BufferLength / 2U); i++)
  17177. 80076a4: 697b ldr r3, [r7, #20]
  17178. 80076a6: 3301 adds r3, #1
  17179. 80076a8: 617b str r3, [r7, #20]
  17180. 80076aa: 687b ldr r3, [r7, #4]
  17181. 80076ac: 085b lsrs r3, r3, #1
  17182. 80076ae: 697a ldr r2, [r7, #20]
  17183. 80076b0: 429a cmp r2, r3
  17184. 80076b2: d3e6 bcc.n 8007682 <CRC_Handle_16+0x12>
  17185. }
  17186. if ((BufferLength % 2U) != 0U)
  17187. 80076b4: 687b ldr r3, [r7, #4]
  17188. 80076b6: f003 0301 and.w r3, r3, #1
  17189. 80076ba: 2b00 cmp r3, #0
  17190. 80076bc: d009 beq.n 80076d2 <CRC_Handle_16+0x62>
  17191. {
  17192. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17193. 80076be: 68fb ldr r3, [r7, #12]
  17194. 80076c0: 681b ldr r3, [r3, #0]
  17195. 80076c2: 613b str r3, [r7, #16]
  17196. *pReg = pBuffer[2U * i];
  17197. 80076c4: 697b ldr r3, [r7, #20]
  17198. 80076c6: 009b lsls r3, r3, #2
  17199. 80076c8: 68ba ldr r2, [r7, #8]
  17200. 80076ca: 4413 add r3, r2
  17201. 80076cc: 881a ldrh r2, [r3, #0]
  17202. 80076ce: 693b ldr r3, [r7, #16]
  17203. 80076d0: 801a strh r2, [r3, #0]
  17204. }
  17205. /* Return the CRC computed value */
  17206. return hcrc->Instance->DR;
  17207. 80076d2: 68fb ldr r3, [r7, #12]
  17208. 80076d4: 681b ldr r3, [r3, #0]
  17209. 80076d6: 681b ldr r3, [r3, #0]
  17210. }
  17211. 80076d8: 4618 mov r0, r3
  17212. 80076da: 371c adds r7, #28
  17213. 80076dc: 46bd mov sp, r7
  17214. 80076de: f85d 7b04 ldr.w r7, [sp], #4
  17215. 80076e2: 4770 bx lr
  17216. 080076e4 <HAL_CRCEx_Polynomial_Set>:
  17217. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  17218. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  17219. * @retval HAL status
  17220. */
  17221. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  17222. {
  17223. 80076e4: b480 push {r7}
  17224. 80076e6: b087 sub sp, #28
  17225. 80076e8: af00 add r7, sp, #0
  17226. 80076ea: 60f8 str r0, [r7, #12]
  17227. 80076ec: 60b9 str r1, [r7, #8]
  17228. 80076ee: 607a str r2, [r7, #4]
  17229. HAL_StatusTypeDef status = HAL_OK;
  17230. 80076f0: 2300 movs r3, #0
  17231. 80076f2: 75fb strb r3, [r7, #23]
  17232. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  17233. 80076f4: 231f movs r3, #31
  17234. 80076f6: 613b str r3, [r7, #16]
  17235. /* Check the parameters */
  17236. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  17237. /* Ensure that the generating polynomial is odd */
  17238. if ((Pol & (uint32_t)(0x1U)) == 0U)
  17239. 80076f8: 68bb ldr r3, [r7, #8]
  17240. 80076fa: f003 0301 and.w r3, r3, #1
  17241. 80076fe: 2b00 cmp r3, #0
  17242. 8007700: d102 bne.n 8007708 <HAL_CRCEx_Polynomial_Set+0x24>
  17243. {
  17244. status = HAL_ERROR;
  17245. 8007702: 2301 movs r3, #1
  17246. 8007704: 75fb strb r3, [r7, #23]
  17247. 8007706: e063 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17248. * definition. HAL_ERROR is reported if Pol degree is
  17249. * larger than that indicated by PolyLength.
  17250. * Look for MSB position: msb will contain the degree of
  17251. * the second to the largest polynomial member. E.g., for
  17252. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  17253. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  17254. 8007708: bf00 nop
  17255. 800770a: 693b ldr r3, [r7, #16]
  17256. 800770c: 1e5a subs r2, r3, #1
  17257. 800770e: 613a str r2, [r7, #16]
  17258. 8007710: 2b00 cmp r3, #0
  17259. 8007712: d009 beq.n 8007728 <HAL_CRCEx_Polynomial_Set+0x44>
  17260. 8007714: 693b ldr r3, [r7, #16]
  17261. 8007716: f003 031f and.w r3, r3, #31
  17262. 800771a: 68ba ldr r2, [r7, #8]
  17263. 800771c: fa22 f303 lsr.w r3, r2, r3
  17264. 8007720: f003 0301 and.w r3, r3, #1
  17265. 8007724: 2b00 cmp r3, #0
  17266. 8007726: d0f0 beq.n 800770a <HAL_CRCEx_Polynomial_Set+0x26>
  17267. {
  17268. }
  17269. switch (PolyLength)
  17270. 8007728: 687b ldr r3, [r7, #4]
  17271. 800772a: 2b18 cmp r3, #24
  17272. 800772c: d846 bhi.n 80077bc <HAL_CRCEx_Polynomial_Set+0xd8>
  17273. 800772e: a201 add r2, pc, #4 @ (adr r2, 8007734 <HAL_CRCEx_Polynomial_Set+0x50>)
  17274. 8007730: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17275. 8007734: 080077c3 .word 0x080077c3
  17276. 8007738: 080077bd .word 0x080077bd
  17277. 800773c: 080077bd .word 0x080077bd
  17278. 8007740: 080077bd .word 0x080077bd
  17279. 8007744: 080077bd .word 0x080077bd
  17280. 8007748: 080077bd .word 0x080077bd
  17281. 800774c: 080077bd .word 0x080077bd
  17282. 8007750: 080077bd .word 0x080077bd
  17283. 8007754: 080077b1 .word 0x080077b1
  17284. 8007758: 080077bd .word 0x080077bd
  17285. 800775c: 080077bd .word 0x080077bd
  17286. 8007760: 080077bd .word 0x080077bd
  17287. 8007764: 080077bd .word 0x080077bd
  17288. 8007768: 080077bd .word 0x080077bd
  17289. 800776c: 080077bd .word 0x080077bd
  17290. 8007770: 080077bd .word 0x080077bd
  17291. 8007774: 080077a5 .word 0x080077a5
  17292. 8007778: 080077bd .word 0x080077bd
  17293. 800777c: 080077bd .word 0x080077bd
  17294. 8007780: 080077bd .word 0x080077bd
  17295. 8007784: 080077bd .word 0x080077bd
  17296. 8007788: 080077bd .word 0x080077bd
  17297. 800778c: 080077bd .word 0x080077bd
  17298. 8007790: 080077bd .word 0x080077bd
  17299. 8007794: 08007799 .word 0x08007799
  17300. {
  17301. case CRC_POLYLENGTH_7B:
  17302. if (msb >= HAL_CRC_LENGTH_7B)
  17303. 8007798: 693b ldr r3, [r7, #16]
  17304. 800779a: 2b06 cmp r3, #6
  17305. 800779c: d913 bls.n 80077c6 <HAL_CRCEx_Polynomial_Set+0xe2>
  17306. {
  17307. status = HAL_ERROR;
  17308. 800779e: 2301 movs r3, #1
  17309. 80077a0: 75fb strb r3, [r7, #23]
  17310. }
  17311. break;
  17312. 80077a2: e010 b.n 80077c6 <HAL_CRCEx_Polynomial_Set+0xe2>
  17313. case CRC_POLYLENGTH_8B:
  17314. if (msb >= HAL_CRC_LENGTH_8B)
  17315. 80077a4: 693b ldr r3, [r7, #16]
  17316. 80077a6: 2b07 cmp r3, #7
  17317. 80077a8: d90f bls.n 80077ca <HAL_CRCEx_Polynomial_Set+0xe6>
  17318. {
  17319. status = HAL_ERROR;
  17320. 80077aa: 2301 movs r3, #1
  17321. 80077ac: 75fb strb r3, [r7, #23]
  17322. }
  17323. break;
  17324. 80077ae: e00c b.n 80077ca <HAL_CRCEx_Polynomial_Set+0xe6>
  17325. case CRC_POLYLENGTH_16B:
  17326. if (msb >= HAL_CRC_LENGTH_16B)
  17327. 80077b0: 693b ldr r3, [r7, #16]
  17328. 80077b2: 2b0f cmp r3, #15
  17329. 80077b4: d90b bls.n 80077ce <HAL_CRCEx_Polynomial_Set+0xea>
  17330. {
  17331. status = HAL_ERROR;
  17332. 80077b6: 2301 movs r3, #1
  17333. 80077b8: 75fb strb r3, [r7, #23]
  17334. }
  17335. break;
  17336. 80077ba: e008 b.n 80077ce <HAL_CRCEx_Polynomial_Set+0xea>
  17337. case CRC_POLYLENGTH_32B:
  17338. /* no polynomial definition vs. polynomial length issue possible */
  17339. break;
  17340. default:
  17341. status = HAL_ERROR;
  17342. 80077bc: 2301 movs r3, #1
  17343. 80077be: 75fb strb r3, [r7, #23]
  17344. break;
  17345. 80077c0: e006 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17346. break;
  17347. 80077c2: bf00 nop
  17348. 80077c4: e004 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17349. break;
  17350. 80077c6: bf00 nop
  17351. 80077c8: e002 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17352. break;
  17353. 80077ca: bf00 nop
  17354. 80077cc: e000 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17355. break;
  17356. 80077ce: bf00 nop
  17357. }
  17358. }
  17359. if (status == HAL_OK)
  17360. 80077d0: 7dfb ldrb r3, [r7, #23]
  17361. 80077d2: 2b00 cmp r3, #0
  17362. 80077d4: d10d bne.n 80077f2 <HAL_CRCEx_Polynomial_Set+0x10e>
  17363. {
  17364. /* set generating polynomial */
  17365. WRITE_REG(hcrc->Instance->POL, Pol);
  17366. 80077d6: 68fb ldr r3, [r7, #12]
  17367. 80077d8: 681b ldr r3, [r3, #0]
  17368. 80077da: 68ba ldr r2, [r7, #8]
  17369. 80077dc: 615a str r2, [r3, #20]
  17370. /* set generating polynomial size */
  17371. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  17372. 80077de: 68fb ldr r3, [r7, #12]
  17373. 80077e0: 681b ldr r3, [r3, #0]
  17374. 80077e2: 689b ldr r3, [r3, #8]
  17375. 80077e4: f023 0118 bic.w r1, r3, #24
  17376. 80077e8: 68fb ldr r3, [r7, #12]
  17377. 80077ea: 681b ldr r3, [r3, #0]
  17378. 80077ec: 687a ldr r2, [r7, #4]
  17379. 80077ee: 430a orrs r2, r1
  17380. 80077f0: 609a str r2, [r3, #8]
  17381. }
  17382. /* Return function status */
  17383. return status;
  17384. 80077f2: 7dfb ldrb r3, [r7, #23]
  17385. }
  17386. 80077f4: 4618 mov r0, r3
  17387. 80077f6: 371c adds r7, #28
  17388. 80077f8: 46bd mov sp, r7
  17389. 80077fa: f85d 7b04 ldr.w r7, [sp], #4
  17390. 80077fe: 4770 bx lr
  17391. 08007800 <HAL_DAC_Init>:
  17392. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17393. * the configuration information for the specified DAC.
  17394. * @retval HAL status
  17395. */
  17396. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  17397. {
  17398. 8007800: b580 push {r7, lr}
  17399. 8007802: b082 sub sp, #8
  17400. 8007804: af00 add r7, sp, #0
  17401. 8007806: 6078 str r0, [r7, #4]
  17402. /* Check the DAC peripheral handle */
  17403. if (hdac == NULL)
  17404. 8007808: 687b ldr r3, [r7, #4]
  17405. 800780a: 2b00 cmp r3, #0
  17406. 800780c: d101 bne.n 8007812 <HAL_DAC_Init+0x12>
  17407. {
  17408. return HAL_ERROR;
  17409. 800780e: 2301 movs r3, #1
  17410. 8007810: e014 b.n 800783c <HAL_DAC_Init+0x3c>
  17411. }
  17412. /* Check the parameters */
  17413. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  17414. if (hdac->State == HAL_DAC_STATE_RESET)
  17415. 8007812: 687b ldr r3, [r7, #4]
  17416. 8007814: 791b ldrb r3, [r3, #4]
  17417. 8007816: b2db uxtb r3, r3
  17418. 8007818: 2b00 cmp r3, #0
  17419. 800781a: d105 bne.n 8007828 <HAL_DAC_Init+0x28>
  17420. hdac->MspInitCallback = HAL_DAC_MspInit;
  17421. }
  17422. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17423. /* Allocate lock resource and initialize it */
  17424. hdac->Lock = HAL_UNLOCKED;
  17425. 800781c: 687b ldr r3, [r7, #4]
  17426. 800781e: 2200 movs r2, #0
  17427. 8007820: 715a strb r2, [r3, #5]
  17428. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17429. /* Init the low level hardware */
  17430. hdac->MspInitCallback(hdac);
  17431. #else
  17432. /* Init the low level hardware */
  17433. HAL_DAC_MspInit(hdac);
  17434. 8007822: 6878 ldr r0, [r7, #4]
  17435. 8007824: f7fc f8c2 bl 80039ac <HAL_DAC_MspInit>
  17436. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17437. }
  17438. /* Initialize the DAC state*/
  17439. hdac->State = HAL_DAC_STATE_BUSY;
  17440. 8007828: 687b ldr r3, [r7, #4]
  17441. 800782a: 2202 movs r2, #2
  17442. 800782c: 711a strb r2, [r3, #4]
  17443. /* Set DAC error code to none */
  17444. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  17445. 800782e: 687b ldr r3, [r7, #4]
  17446. 8007830: 2200 movs r2, #0
  17447. 8007832: 611a str r2, [r3, #16]
  17448. /* Initialize the DAC state*/
  17449. hdac->State = HAL_DAC_STATE_READY;
  17450. 8007834: 687b ldr r3, [r7, #4]
  17451. 8007836: 2201 movs r2, #1
  17452. 8007838: 711a strb r2, [r3, #4]
  17453. /* Return function status */
  17454. return HAL_OK;
  17455. 800783a: 2300 movs r3, #0
  17456. }
  17457. 800783c: 4618 mov r0, r3
  17458. 800783e: 3708 adds r7, #8
  17459. 8007840: 46bd mov sp, r7
  17460. 8007842: bd80 pop {r7, pc}
  17461. 08007844 <HAL_DAC_Start>:
  17462. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  17463. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  17464. * @retval HAL status
  17465. */
  17466. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  17467. {
  17468. 8007844: b480 push {r7}
  17469. 8007846: b083 sub sp, #12
  17470. 8007848: af00 add r7, sp, #0
  17471. 800784a: 6078 str r0, [r7, #4]
  17472. 800784c: 6039 str r1, [r7, #0]
  17473. /* Check the DAC peripheral handle */
  17474. if (hdac == NULL)
  17475. 800784e: 687b ldr r3, [r7, #4]
  17476. 8007850: 2b00 cmp r3, #0
  17477. 8007852: d101 bne.n 8007858 <HAL_DAC_Start+0x14>
  17478. {
  17479. return HAL_ERROR;
  17480. 8007854: 2301 movs r3, #1
  17481. 8007856: e046 b.n 80078e6 <HAL_DAC_Start+0xa2>
  17482. /* Check the parameters */
  17483. assert_param(IS_DAC_CHANNEL(Channel));
  17484. /* Process locked */
  17485. __HAL_LOCK(hdac);
  17486. 8007858: 687b ldr r3, [r7, #4]
  17487. 800785a: 795b ldrb r3, [r3, #5]
  17488. 800785c: 2b01 cmp r3, #1
  17489. 800785e: d101 bne.n 8007864 <HAL_DAC_Start+0x20>
  17490. 8007860: 2302 movs r3, #2
  17491. 8007862: e040 b.n 80078e6 <HAL_DAC_Start+0xa2>
  17492. 8007864: 687b ldr r3, [r7, #4]
  17493. 8007866: 2201 movs r2, #1
  17494. 8007868: 715a strb r2, [r3, #5]
  17495. /* Change DAC state */
  17496. hdac->State = HAL_DAC_STATE_BUSY;
  17497. 800786a: 687b ldr r3, [r7, #4]
  17498. 800786c: 2202 movs r2, #2
  17499. 800786e: 711a strb r2, [r3, #4]
  17500. /* Enable the Peripheral */
  17501. __HAL_DAC_ENABLE(hdac, Channel);
  17502. 8007870: 687b ldr r3, [r7, #4]
  17503. 8007872: 681b ldr r3, [r3, #0]
  17504. 8007874: 6819 ldr r1, [r3, #0]
  17505. 8007876: 683b ldr r3, [r7, #0]
  17506. 8007878: f003 0310 and.w r3, r3, #16
  17507. 800787c: 2201 movs r2, #1
  17508. 800787e: 409a lsls r2, r3
  17509. 8007880: 687b ldr r3, [r7, #4]
  17510. 8007882: 681b ldr r3, [r3, #0]
  17511. 8007884: 430a orrs r2, r1
  17512. 8007886: 601a str r2, [r3, #0]
  17513. if (Channel == DAC_CHANNEL_1)
  17514. 8007888: 683b ldr r3, [r7, #0]
  17515. 800788a: 2b00 cmp r3, #0
  17516. 800788c: d10f bne.n 80078ae <HAL_DAC_Start+0x6a>
  17517. {
  17518. /* Check if software trigger enabled */
  17519. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  17520. 800788e: 687b ldr r3, [r7, #4]
  17521. 8007890: 681b ldr r3, [r3, #0]
  17522. 8007892: 681b ldr r3, [r3, #0]
  17523. 8007894: f003 033e and.w r3, r3, #62 @ 0x3e
  17524. 8007898: 2b02 cmp r3, #2
  17525. 800789a: d11d bne.n 80078d8 <HAL_DAC_Start+0x94>
  17526. {
  17527. /* Enable the selected DAC software conversion */
  17528. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  17529. 800789c: 687b ldr r3, [r7, #4]
  17530. 800789e: 681b ldr r3, [r3, #0]
  17531. 80078a0: 685a ldr r2, [r3, #4]
  17532. 80078a2: 687b ldr r3, [r7, #4]
  17533. 80078a4: 681b ldr r3, [r3, #0]
  17534. 80078a6: f042 0201 orr.w r2, r2, #1
  17535. 80078aa: 605a str r2, [r3, #4]
  17536. 80078ac: e014 b.n 80078d8 <HAL_DAC_Start+0x94>
  17537. }
  17538. else
  17539. {
  17540. /* Check if software trigger enabled */
  17541. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  17542. 80078ae: 687b ldr r3, [r7, #4]
  17543. 80078b0: 681b ldr r3, [r3, #0]
  17544. 80078b2: 681b ldr r3, [r3, #0]
  17545. 80078b4: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  17546. 80078b8: 683b ldr r3, [r7, #0]
  17547. 80078ba: f003 0310 and.w r3, r3, #16
  17548. 80078be: 2102 movs r1, #2
  17549. 80078c0: fa01 f303 lsl.w r3, r1, r3
  17550. 80078c4: 429a cmp r2, r3
  17551. 80078c6: d107 bne.n 80078d8 <HAL_DAC_Start+0x94>
  17552. {
  17553. /* Enable the selected DAC software conversion*/
  17554. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  17555. 80078c8: 687b ldr r3, [r7, #4]
  17556. 80078ca: 681b ldr r3, [r3, #0]
  17557. 80078cc: 685a ldr r2, [r3, #4]
  17558. 80078ce: 687b ldr r3, [r7, #4]
  17559. 80078d0: 681b ldr r3, [r3, #0]
  17560. 80078d2: f042 0202 orr.w r2, r2, #2
  17561. 80078d6: 605a str r2, [r3, #4]
  17562. }
  17563. }
  17564. /* Change DAC state */
  17565. hdac->State = HAL_DAC_STATE_READY;
  17566. 80078d8: 687b ldr r3, [r7, #4]
  17567. 80078da: 2201 movs r2, #1
  17568. 80078dc: 711a strb r2, [r3, #4]
  17569. /* Process unlocked */
  17570. __HAL_UNLOCK(hdac);
  17571. 80078de: 687b ldr r3, [r7, #4]
  17572. 80078e0: 2200 movs r2, #0
  17573. 80078e2: 715a strb r2, [r3, #5]
  17574. /* Return function status */
  17575. return HAL_OK;
  17576. 80078e4: 2300 movs r3, #0
  17577. }
  17578. 80078e6: 4618 mov r0, r3
  17579. 80078e8: 370c adds r7, #12
  17580. 80078ea: 46bd mov sp, r7
  17581. 80078ec: f85d 7b04 ldr.w r7, [sp], #4
  17582. 80078f0: 4770 bx lr
  17583. 080078f2 <HAL_DAC_IRQHandler>:
  17584. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17585. * the configuration information for the specified DAC.
  17586. * @retval None
  17587. */
  17588. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  17589. {
  17590. 80078f2: b580 push {r7, lr}
  17591. 80078f4: b084 sub sp, #16
  17592. 80078f6: af00 add r7, sp, #0
  17593. 80078f8: 6078 str r0, [r7, #4]
  17594. uint32_t itsource = hdac->Instance->CR;
  17595. 80078fa: 687b ldr r3, [r7, #4]
  17596. 80078fc: 681b ldr r3, [r3, #0]
  17597. 80078fe: 681b ldr r3, [r3, #0]
  17598. 8007900: 60fb str r3, [r7, #12]
  17599. uint32_t itflag = hdac->Instance->SR;
  17600. 8007902: 687b ldr r3, [r7, #4]
  17601. 8007904: 681b ldr r3, [r3, #0]
  17602. 8007906: 6b5b ldr r3, [r3, #52] @ 0x34
  17603. 8007908: 60bb str r3, [r7, #8]
  17604. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  17605. 800790a: 68fb ldr r3, [r7, #12]
  17606. 800790c: f403 5300 and.w r3, r3, #8192 @ 0x2000
  17607. 8007910: 2b00 cmp r3, #0
  17608. 8007912: d01d beq.n 8007950 <HAL_DAC_IRQHandler+0x5e>
  17609. {
  17610. /* Check underrun flag of DAC channel 1 */
  17611. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  17612. 8007914: 68bb ldr r3, [r7, #8]
  17613. 8007916: f403 5300 and.w r3, r3, #8192 @ 0x2000
  17614. 800791a: 2b00 cmp r3, #0
  17615. 800791c: d018 beq.n 8007950 <HAL_DAC_IRQHandler+0x5e>
  17616. {
  17617. /* Change DAC state to error state */
  17618. hdac->State = HAL_DAC_STATE_ERROR;
  17619. 800791e: 687b ldr r3, [r7, #4]
  17620. 8007920: 2204 movs r2, #4
  17621. 8007922: 711a strb r2, [r3, #4]
  17622. /* Set DAC error code to channel1 DMA underrun error */
  17623. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  17624. 8007924: 687b ldr r3, [r7, #4]
  17625. 8007926: 691b ldr r3, [r3, #16]
  17626. 8007928: f043 0201 orr.w r2, r3, #1
  17627. 800792c: 687b ldr r3, [r7, #4]
  17628. 800792e: 611a str r2, [r3, #16]
  17629. /* Clear the underrun flag */
  17630. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  17631. 8007930: 687b ldr r3, [r7, #4]
  17632. 8007932: 681b ldr r3, [r3, #0]
  17633. 8007934: f44f 5200 mov.w r2, #8192 @ 0x2000
  17634. 8007938: 635a str r2, [r3, #52] @ 0x34
  17635. /* Disable the selected DAC channel1 DMA request */
  17636. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  17637. 800793a: 687b ldr r3, [r7, #4]
  17638. 800793c: 681b ldr r3, [r3, #0]
  17639. 800793e: 681a ldr r2, [r3, #0]
  17640. 8007940: 687b ldr r3, [r7, #4]
  17641. 8007942: 681b ldr r3, [r3, #0]
  17642. 8007944: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  17643. 8007948: 601a str r2, [r3, #0]
  17644. /* Error callback */
  17645. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17646. hdac->DMAUnderrunCallbackCh1(hdac);
  17647. #else
  17648. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  17649. 800794a: 6878 ldr r0, [r7, #4]
  17650. 800794c: f000 f851 bl 80079f2 <HAL_DAC_DMAUnderrunCallbackCh1>
  17651. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17652. }
  17653. }
  17654. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  17655. 8007950: 68fb ldr r3, [r7, #12]
  17656. 8007952: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17657. 8007956: 2b00 cmp r3, #0
  17658. 8007958: d01d beq.n 8007996 <HAL_DAC_IRQHandler+0xa4>
  17659. {
  17660. /* Check underrun flag of DAC channel 2 */
  17661. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  17662. 800795a: 68bb ldr r3, [r7, #8]
  17663. 800795c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17664. 8007960: 2b00 cmp r3, #0
  17665. 8007962: d018 beq.n 8007996 <HAL_DAC_IRQHandler+0xa4>
  17666. {
  17667. /* Change DAC state to error state */
  17668. hdac->State = HAL_DAC_STATE_ERROR;
  17669. 8007964: 687b ldr r3, [r7, #4]
  17670. 8007966: 2204 movs r2, #4
  17671. 8007968: 711a strb r2, [r3, #4]
  17672. /* Set DAC error code to channel2 DMA underrun error */
  17673. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  17674. 800796a: 687b ldr r3, [r7, #4]
  17675. 800796c: 691b ldr r3, [r3, #16]
  17676. 800796e: f043 0202 orr.w r2, r3, #2
  17677. 8007972: 687b ldr r3, [r7, #4]
  17678. 8007974: 611a str r2, [r3, #16]
  17679. /* Clear the underrun flag */
  17680. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  17681. 8007976: 687b ldr r3, [r7, #4]
  17682. 8007978: 681b ldr r3, [r3, #0]
  17683. 800797a: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  17684. 800797e: 635a str r2, [r3, #52] @ 0x34
  17685. /* Disable the selected DAC channel2 DMA request */
  17686. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  17687. 8007980: 687b ldr r3, [r7, #4]
  17688. 8007982: 681b ldr r3, [r3, #0]
  17689. 8007984: 681a ldr r2, [r3, #0]
  17690. 8007986: 687b ldr r3, [r7, #4]
  17691. 8007988: 681b ldr r3, [r3, #0]
  17692. 800798a: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  17693. 800798e: 601a str r2, [r3, #0]
  17694. /* Error callback */
  17695. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17696. hdac->DMAUnderrunCallbackCh2(hdac);
  17697. #else
  17698. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  17699. 8007990: 6878 ldr r0, [r7, #4]
  17700. 8007992: f000 f97b bl 8007c8c <HAL_DACEx_DMAUnderrunCallbackCh2>
  17701. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17702. }
  17703. }
  17704. }
  17705. 8007996: bf00 nop
  17706. 8007998: 3710 adds r7, #16
  17707. 800799a: 46bd mov sp, r7
  17708. 800799c: bd80 pop {r7, pc}
  17709. 0800799e <HAL_DAC_SetValue>:
  17710. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  17711. * @param Data Data to be loaded in the selected data holding register.
  17712. * @retval HAL status
  17713. */
  17714. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  17715. {
  17716. 800799e: b480 push {r7}
  17717. 80079a0: b087 sub sp, #28
  17718. 80079a2: af00 add r7, sp, #0
  17719. 80079a4: 60f8 str r0, [r7, #12]
  17720. 80079a6: 60b9 str r1, [r7, #8]
  17721. 80079a8: 607a str r2, [r7, #4]
  17722. 80079aa: 603b str r3, [r7, #0]
  17723. __IO uint32_t tmp = 0UL;
  17724. 80079ac: 2300 movs r3, #0
  17725. 80079ae: 617b str r3, [r7, #20]
  17726. /* Check the DAC peripheral handle */
  17727. if (hdac == NULL)
  17728. 80079b0: 68fb ldr r3, [r7, #12]
  17729. 80079b2: 2b00 cmp r3, #0
  17730. 80079b4: d101 bne.n 80079ba <HAL_DAC_SetValue+0x1c>
  17731. {
  17732. return HAL_ERROR;
  17733. 80079b6: 2301 movs r3, #1
  17734. 80079b8: e015 b.n 80079e6 <HAL_DAC_SetValue+0x48>
  17735. /* Check the parameters */
  17736. assert_param(IS_DAC_CHANNEL(Channel));
  17737. assert_param(IS_DAC_ALIGN(Alignment));
  17738. assert_param(IS_DAC_DATA(Data));
  17739. tmp = (uint32_t)hdac->Instance;
  17740. 80079ba: 68fb ldr r3, [r7, #12]
  17741. 80079bc: 681b ldr r3, [r3, #0]
  17742. 80079be: 617b str r3, [r7, #20]
  17743. if (Channel == DAC_CHANNEL_1)
  17744. 80079c0: 68bb ldr r3, [r7, #8]
  17745. 80079c2: 2b00 cmp r3, #0
  17746. 80079c4: d105 bne.n 80079d2 <HAL_DAC_SetValue+0x34>
  17747. {
  17748. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  17749. 80079c6: 697a ldr r2, [r7, #20]
  17750. 80079c8: 687b ldr r3, [r7, #4]
  17751. 80079ca: 4413 add r3, r2
  17752. 80079cc: 3308 adds r3, #8
  17753. 80079ce: 617b str r3, [r7, #20]
  17754. 80079d0: e004 b.n 80079dc <HAL_DAC_SetValue+0x3e>
  17755. }
  17756. else
  17757. {
  17758. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  17759. 80079d2: 697a ldr r2, [r7, #20]
  17760. 80079d4: 687b ldr r3, [r7, #4]
  17761. 80079d6: 4413 add r3, r2
  17762. 80079d8: 3314 adds r3, #20
  17763. 80079da: 617b str r3, [r7, #20]
  17764. }
  17765. /* Set the DAC channel selected data holding register */
  17766. *(__IO uint32_t *) tmp = Data;
  17767. 80079dc: 697b ldr r3, [r7, #20]
  17768. 80079de: 461a mov r2, r3
  17769. 80079e0: 683b ldr r3, [r7, #0]
  17770. 80079e2: 6013 str r3, [r2, #0]
  17771. /* Return function status */
  17772. return HAL_OK;
  17773. 80079e4: 2300 movs r3, #0
  17774. }
  17775. 80079e6: 4618 mov r0, r3
  17776. 80079e8: 371c adds r7, #28
  17777. 80079ea: 46bd mov sp, r7
  17778. 80079ec: f85d 7b04 ldr.w r7, [sp], #4
  17779. 80079f0: 4770 bx lr
  17780. 080079f2 <HAL_DAC_DMAUnderrunCallbackCh1>:
  17781. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17782. * the configuration information for the specified DAC.
  17783. * @retval None
  17784. */
  17785. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  17786. {
  17787. 80079f2: b480 push {r7}
  17788. 80079f4: b083 sub sp, #12
  17789. 80079f6: af00 add r7, sp, #0
  17790. 80079f8: 6078 str r0, [r7, #4]
  17791. UNUSED(hdac);
  17792. /* NOTE : This function should not be modified, when the callback is needed,
  17793. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  17794. */
  17795. }
  17796. 80079fa: bf00 nop
  17797. 80079fc: 370c adds r7, #12
  17798. 80079fe: 46bd mov sp, r7
  17799. 8007a00: f85d 7b04 ldr.w r7, [sp], #4
  17800. 8007a04: 4770 bx lr
  17801. ...
  17802. 08007a08 <HAL_DAC_ConfigChannel>:
  17803. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  17804. * @retval HAL status
  17805. */
  17806. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  17807. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  17808. {
  17809. 8007a08: b580 push {r7, lr}
  17810. 8007a0a: b08a sub sp, #40 @ 0x28
  17811. 8007a0c: af00 add r7, sp, #0
  17812. 8007a0e: 60f8 str r0, [r7, #12]
  17813. 8007a10: 60b9 str r1, [r7, #8]
  17814. 8007a12: 607a str r2, [r7, #4]
  17815. HAL_StatusTypeDef status = HAL_OK;
  17816. 8007a14: 2300 movs r3, #0
  17817. 8007a16: f887 3023 strb.w r3, [r7, #35] @ 0x23
  17818. uint32_t tmpreg2;
  17819. uint32_t tickstart;
  17820. uint32_t connectOnChip;
  17821. /* Check the DAC peripheral handle and channel configuration struct */
  17822. if ((hdac == NULL) || (sConfig == NULL))
  17823. 8007a1a: 68fb ldr r3, [r7, #12]
  17824. 8007a1c: 2b00 cmp r3, #0
  17825. 8007a1e: d002 beq.n 8007a26 <HAL_DAC_ConfigChannel+0x1e>
  17826. 8007a20: 68bb ldr r3, [r7, #8]
  17827. 8007a22: 2b00 cmp r3, #0
  17828. 8007a24: d101 bne.n 8007a2a <HAL_DAC_ConfigChannel+0x22>
  17829. {
  17830. return HAL_ERROR;
  17831. 8007a26: 2301 movs r3, #1
  17832. 8007a28: e12a b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17833. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  17834. }
  17835. assert_param(IS_DAC_CHANNEL(Channel));
  17836. /* Process locked */
  17837. __HAL_LOCK(hdac);
  17838. 8007a2a: 68fb ldr r3, [r7, #12]
  17839. 8007a2c: 795b ldrb r3, [r3, #5]
  17840. 8007a2e: 2b01 cmp r3, #1
  17841. 8007a30: d101 bne.n 8007a36 <HAL_DAC_ConfigChannel+0x2e>
  17842. 8007a32: 2302 movs r3, #2
  17843. 8007a34: e124 b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17844. 8007a36: 68fb ldr r3, [r7, #12]
  17845. 8007a38: 2201 movs r2, #1
  17846. 8007a3a: 715a strb r2, [r3, #5]
  17847. /* Change DAC state */
  17848. hdac->State = HAL_DAC_STATE_BUSY;
  17849. 8007a3c: 68fb ldr r3, [r7, #12]
  17850. 8007a3e: 2202 movs r2, #2
  17851. 8007a40: 711a strb r2, [r3, #4]
  17852. /* Sample and hold configuration */
  17853. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  17854. 8007a42: 68bb ldr r3, [r7, #8]
  17855. 8007a44: 681b ldr r3, [r3, #0]
  17856. 8007a46: 2b04 cmp r3, #4
  17857. 8007a48: d17a bne.n 8007b40 <HAL_DAC_ConfigChannel+0x138>
  17858. {
  17859. /* Get timeout */
  17860. tickstart = HAL_GetTick();
  17861. 8007a4a: f7fd fd8d bl 8005568 <HAL_GetTick>
  17862. 8007a4e: 61f8 str r0, [r7, #28]
  17863. if (Channel == DAC_CHANNEL_1)
  17864. 8007a50: 687b ldr r3, [r7, #4]
  17865. 8007a52: 2b00 cmp r3, #0
  17866. 8007a54: d13d bne.n 8007ad2 <HAL_DAC_ConfigChannel+0xca>
  17867. {
  17868. /* SHSR1 can be written when BWST1 is cleared */
  17869. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17870. 8007a56: e018 b.n 8007a8a <HAL_DAC_ConfigChannel+0x82>
  17871. {
  17872. /* Check for the Timeout */
  17873. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  17874. 8007a58: f7fd fd86 bl 8005568 <HAL_GetTick>
  17875. 8007a5c: 4602 mov r2, r0
  17876. 8007a5e: 69fb ldr r3, [r7, #28]
  17877. 8007a60: 1ad3 subs r3, r2, r3
  17878. 8007a62: 2b01 cmp r3, #1
  17879. 8007a64: d911 bls.n 8007a8a <HAL_DAC_ConfigChannel+0x82>
  17880. {
  17881. /* New check to avoid false timeout detection in case of preemption */
  17882. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17883. 8007a66: 68fb ldr r3, [r7, #12]
  17884. 8007a68: 681b ldr r3, [r3, #0]
  17885. 8007a6a: 6b5a ldr r2, [r3, #52] @ 0x34
  17886. 8007a6c: 4b86 ldr r3, [pc, #536] @ (8007c88 <HAL_DAC_ConfigChannel+0x280>)
  17887. 8007a6e: 4013 ands r3, r2
  17888. 8007a70: 2b00 cmp r3, #0
  17889. 8007a72: d00a beq.n 8007a8a <HAL_DAC_ConfigChannel+0x82>
  17890. {
  17891. /* Update error code */
  17892. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  17893. 8007a74: 68fb ldr r3, [r7, #12]
  17894. 8007a76: 691b ldr r3, [r3, #16]
  17895. 8007a78: f043 0208 orr.w r2, r3, #8
  17896. 8007a7c: 68fb ldr r3, [r7, #12]
  17897. 8007a7e: 611a str r2, [r3, #16]
  17898. /* Change the DMA state */
  17899. hdac->State = HAL_DAC_STATE_TIMEOUT;
  17900. 8007a80: 68fb ldr r3, [r7, #12]
  17901. 8007a82: 2203 movs r2, #3
  17902. 8007a84: 711a strb r2, [r3, #4]
  17903. return HAL_TIMEOUT;
  17904. 8007a86: 2303 movs r3, #3
  17905. 8007a88: e0fa b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17906. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17907. 8007a8a: 68fb ldr r3, [r7, #12]
  17908. 8007a8c: 681b ldr r3, [r3, #0]
  17909. 8007a8e: 6b5a ldr r2, [r3, #52] @ 0x34
  17910. 8007a90: 4b7d ldr r3, [pc, #500] @ (8007c88 <HAL_DAC_ConfigChannel+0x280>)
  17911. 8007a92: 4013 ands r3, r2
  17912. 8007a94: 2b00 cmp r3, #0
  17913. 8007a96: d1df bne.n 8007a58 <HAL_DAC_ConfigChannel+0x50>
  17914. }
  17915. }
  17916. }
  17917. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  17918. 8007a98: 68fb ldr r3, [r7, #12]
  17919. 8007a9a: 681b ldr r3, [r3, #0]
  17920. 8007a9c: 68ba ldr r2, [r7, #8]
  17921. 8007a9e: 6992 ldr r2, [r2, #24]
  17922. 8007aa0: 641a str r2, [r3, #64] @ 0x40
  17923. 8007aa2: e020 b.n 8007ae6 <HAL_DAC_ConfigChannel+0xde>
  17924. {
  17925. /* SHSR2 can be written when BWST2 is cleared */
  17926. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17927. {
  17928. /* Check for the Timeout */
  17929. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  17930. 8007aa4: f7fd fd60 bl 8005568 <HAL_GetTick>
  17931. 8007aa8: 4602 mov r2, r0
  17932. 8007aaa: 69fb ldr r3, [r7, #28]
  17933. 8007aac: 1ad3 subs r3, r2, r3
  17934. 8007aae: 2b01 cmp r3, #1
  17935. 8007ab0: d90f bls.n 8007ad2 <HAL_DAC_ConfigChannel+0xca>
  17936. {
  17937. /* New check to avoid false timeout detection in case of preemption */
  17938. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17939. 8007ab2: 68fb ldr r3, [r7, #12]
  17940. 8007ab4: 681b ldr r3, [r3, #0]
  17941. 8007ab6: 6b5b ldr r3, [r3, #52] @ 0x34
  17942. 8007ab8: 2b00 cmp r3, #0
  17943. 8007aba: da0a bge.n 8007ad2 <HAL_DAC_ConfigChannel+0xca>
  17944. {
  17945. /* Update error code */
  17946. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  17947. 8007abc: 68fb ldr r3, [r7, #12]
  17948. 8007abe: 691b ldr r3, [r3, #16]
  17949. 8007ac0: f043 0208 orr.w r2, r3, #8
  17950. 8007ac4: 68fb ldr r3, [r7, #12]
  17951. 8007ac6: 611a str r2, [r3, #16]
  17952. /* Change the DMA state */
  17953. hdac->State = HAL_DAC_STATE_TIMEOUT;
  17954. 8007ac8: 68fb ldr r3, [r7, #12]
  17955. 8007aca: 2203 movs r2, #3
  17956. 8007acc: 711a strb r2, [r3, #4]
  17957. return HAL_TIMEOUT;
  17958. 8007ace: 2303 movs r3, #3
  17959. 8007ad0: e0d6 b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17960. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17961. 8007ad2: 68fb ldr r3, [r7, #12]
  17962. 8007ad4: 681b ldr r3, [r3, #0]
  17963. 8007ad6: 6b5b ldr r3, [r3, #52] @ 0x34
  17964. 8007ad8: 2b00 cmp r3, #0
  17965. 8007ada: dbe3 blt.n 8007aa4 <HAL_DAC_ConfigChannel+0x9c>
  17966. }
  17967. }
  17968. }
  17969. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  17970. 8007adc: 68fb ldr r3, [r7, #12]
  17971. 8007ade: 681b ldr r3, [r3, #0]
  17972. 8007ae0: 68ba ldr r2, [r7, #8]
  17973. 8007ae2: 6992 ldr r2, [r2, #24]
  17974. 8007ae4: 645a str r2, [r3, #68] @ 0x44
  17975. }
  17976. /* HoldTime */
  17977. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  17978. 8007ae6: 68fb ldr r3, [r7, #12]
  17979. 8007ae8: 681b ldr r3, [r3, #0]
  17980. 8007aea: 6c9a ldr r2, [r3, #72] @ 0x48
  17981. 8007aec: 687b ldr r3, [r7, #4]
  17982. 8007aee: f003 0310 and.w r3, r3, #16
  17983. 8007af2: f240 31ff movw r1, #1023 @ 0x3ff
  17984. 8007af6: fa01 f303 lsl.w r3, r1, r3
  17985. 8007afa: 43db mvns r3, r3
  17986. 8007afc: ea02 0103 and.w r1, r2, r3
  17987. 8007b00: 68bb ldr r3, [r7, #8]
  17988. 8007b02: 69da ldr r2, [r3, #28]
  17989. 8007b04: 687b ldr r3, [r7, #4]
  17990. 8007b06: f003 0310 and.w r3, r3, #16
  17991. 8007b0a: 409a lsls r2, r3
  17992. 8007b0c: 68fb ldr r3, [r7, #12]
  17993. 8007b0e: 681b ldr r3, [r3, #0]
  17994. 8007b10: 430a orrs r2, r1
  17995. 8007b12: 649a str r2, [r3, #72] @ 0x48
  17996. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  17997. /* RefreshTime */
  17998. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  17999. 8007b14: 68fb ldr r3, [r7, #12]
  18000. 8007b16: 681b ldr r3, [r3, #0]
  18001. 8007b18: 6cda ldr r2, [r3, #76] @ 0x4c
  18002. 8007b1a: 687b ldr r3, [r7, #4]
  18003. 8007b1c: f003 0310 and.w r3, r3, #16
  18004. 8007b20: 21ff movs r1, #255 @ 0xff
  18005. 8007b22: fa01 f303 lsl.w r3, r1, r3
  18006. 8007b26: 43db mvns r3, r3
  18007. 8007b28: ea02 0103 and.w r1, r2, r3
  18008. 8007b2c: 68bb ldr r3, [r7, #8]
  18009. 8007b2e: 6a1a ldr r2, [r3, #32]
  18010. 8007b30: 687b ldr r3, [r7, #4]
  18011. 8007b32: f003 0310 and.w r3, r3, #16
  18012. 8007b36: 409a lsls r2, r3
  18013. 8007b38: 68fb ldr r3, [r7, #12]
  18014. 8007b3a: 681b ldr r3, [r3, #0]
  18015. 8007b3c: 430a orrs r2, r1
  18016. 8007b3e: 64da str r2, [r3, #76] @ 0x4c
  18017. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  18018. }
  18019. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  18020. 8007b40: 68bb ldr r3, [r7, #8]
  18021. 8007b42: 691b ldr r3, [r3, #16]
  18022. 8007b44: 2b01 cmp r3, #1
  18023. 8007b46: d11d bne.n 8007b84 <HAL_DAC_ConfigChannel+0x17c>
  18024. /* USER TRIMMING */
  18025. {
  18026. /* Get the DAC CCR value */
  18027. tmpreg1 = hdac->Instance->CCR;
  18028. 8007b48: 68fb ldr r3, [r7, #12]
  18029. 8007b4a: 681b ldr r3, [r3, #0]
  18030. 8007b4c: 6b9b ldr r3, [r3, #56] @ 0x38
  18031. 8007b4e: 61bb str r3, [r7, #24]
  18032. /* Clear trimming value */
  18033. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  18034. 8007b50: 687b ldr r3, [r7, #4]
  18035. 8007b52: f003 0310 and.w r3, r3, #16
  18036. 8007b56: 221f movs r2, #31
  18037. 8007b58: fa02 f303 lsl.w r3, r2, r3
  18038. 8007b5c: 43db mvns r3, r3
  18039. 8007b5e: 69ba ldr r2, [r7, #24]
  18040. 8007b60: 4013 ands r3, r2
  18041. 8007b62: 61bb str r3, [r7, #24]
  18042. /* Configure for the selected trimming offset */
  18043. tmpreg2 = sConfig->DAC_TrimmingValue;
  18044. 8007b64: 68bb ldr r3, [r7, #8]
  18045. 8007b66: 695b ldr r3, [r3, #20]
  18046. 8007b68: 617b str r3, [r7, #20]
  18047. /* Calculate CCR register value depending on DAC_Channel */
  18048. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18049. 8007b6a: 687b ldr r3, [r7, #4]
  18050. 8007b6c: f003 0310 and.w r3, r3, #16
  18051. 8007b70: 697a ldr r2, [r7, #20]
  18052. 8007b72: fa02 f303 lsl.w r3, r2, r3
  18053. 8007b76: 69ba ldr r2, [r7, #24]
  18054. 8007b78: 4313 orrs r3, r2
  18055. 8007b7a: 61bb str r3, [r7, #24]
  18056. /* Write to DAC CCR */
  18057. hdac->Instance->CCR = tmpreg1;
  18058. 8007b7c: 68fb ldr r3, [r7, #12]
  18059. 8007b7e: 681b ldr r3, [r3, #0]
  18060. 8007b80: 69ba ldr r2, [r7, #24]
  18061. 8007b82: 639a str r2, [r3, #56] @ 0x38
  18062. }
  18063. /* else factory trimming is used (factory setting are available at reset)*/
  18064. /* SW Nothing has nothing to do */
  18065. /* Get the DAC MCR value */
  18066. tmpreg1 = hdac->Instance->MCR;
  18067. 8007b84: 68fb ldr r3, [r7, #12]
  18068. 8007b86: 681b ldr r3, [r3, #0]
  18069. 8007b88: 6bdb ldr r3, [r3, #60] @ 0x3c
  18070. 8007b8a: 61bb str r3, [r7, #24]
  18071. /* Clear DAC_MCR_MODEx bits */
  18072. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  18073. 8007b8c: 687b ldr r3, [r7, #4]
  18074. 8007b8e: f003 0310 and.w r3, r3, #16
  18075. 8007b92: 2207 movs r2, #7
  18076. 8007b94: fa02 f303 lsl.w r3, r2, r3
  18077. 8007b98: 43db mvns r3, r3
  18078. 8007b9a: 69ba ldr r2, [r7, #24]
  18079. 8007b9c: 4013 ands r3, r2
  18080. 8007b9e: 61bb str r3, [r7, #24]
  18081. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  18082. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  18083. 8007ba0: 68bb ldr r3, [r7, #8]
  18084. 8007ba2: 68db ldr r3, [r3, #12]
  18085. 8007ba4: 2b01 cmp r3, #1
  18086. 8007ba6: d102 bne.n 8007bae <HAL_DAC_ConfigChannel+0x1a6>
  18087. {
  18088. connectOnChip = 0x00000000UL;
  18089. 8007ba8: 2300 movs r3, #0
  18090. 8007baa: 627b str r3, [r7, #36] @ 0x24
  18091. 8007bac: e00f b.n 8007bce <HAL_DAC_ConfigChannel+0x1c6>
  18092. }
  18093. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  18094. 8007bae: 68bb ldr r3, [r7, #8]
  18095. 8007bb0: 68db ldr r3, [r3, #12]
  18096. 8007bb2: 2b02 cmp r3, #2
  18097. 8007bb4: d102 bne.n 8007bbc <HAL_DAC_ConfigChannel+0x1b4>
  18098. {
  18099. connectOnChip = DAC_MCR_MODE1_0;
  18100. 8007bb6: 2301 movs r3, #1
  18101. 8007bb8: 627b str r3, [r7, #36] @ 0x24
  18102. 8007bba: e008 b.n 8007bce <HAL_DAC_ConfigChannel+0x1c6>
  18103. }
  18104. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  18105. {
  18106. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  18107. 8007bbc: 68bb ldr r3, [r7, #8]
  18108. 8007bbe: 689b ldr r3, [r3, #8]
  18109. 8007bc0: 2b00 cmp r3, #0
  18110. 8007bc2: d102 bne.n 8007bca <HAL_DAC_ConfigChannel+0x1c2>
  18111. {
  18112. connectOnChip = DAC_MCR_MODE1_0;
  18113. 8007bc4: 2301 movs r3, #1
  18114. 8007bc6: 627b str r3, [r7, #36] @ 0x24
  18115. 8007bc8: e001 b.n 8007bce <HAL_DAC_ConfigChannel+0x1c6>
  18116. }
  18117. else
  18118. {
  18119. connectOnChip = 0x00000000UL;
  18120. 8007bca: 2300 movs r3, #0
  18121. 8007bcc: 627b str r3, [r7, #36] @ 0x24
  18122. }
  18123. }
  18124. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  18125. 8007bce: 68bb ldr r3, [r7, #8]
  18126. 8007bd0: 681a ldr r2, [r3, #0]
  18127. 8007bd2: 68bb ldr r3, [r7, #8]
  18128. 8007bd4: 689b ldr r3, [r3, #8]
  18129. 8007bd6: 4313 orrs r3, r2
  18130. 8007bd8: 6a7a ldr r2, [r7, #36] @ 0x24
  18131. 8007bda: 4313 orrs r3, r2
  18132. 8007bdc: 617b str r3, [r7, #20]
  18133. /* Calculate MCR register value depending on DAC_Channel */
  18134. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18135. 8007bde: 687b ldr r3, [r7, #4]
  18136. 8007be0: f003 0310 and.w r3, r3, #16
  18137. 8007be4: 697a ldr r2, [r7, #20]
  18138. 8007be6: fa02 f303 lsl.w r3, r2, r3
  18139. 8007bea: 69ba ldr r2, [r7, #24]
  18140. 8007bec: 4313 orrs r3, r2
  18141. 8007bee: 61bb str r3, [r7, #24]
  18142. /* Write to DAC MCR */
  18143. hdac->Instance->MCR = tmpreg1;
  18144. 8007bf0: 68fb ldr r3, [r7, #12]
  18145. 8007bf2: 681b ldr r3, [r3, #0]
  18146. 8007bf4: 69ba ldr r2, [r7, #24]
  18147. 8007bf6: 63da str r2, [r3, #60] @ 0x3c
  18148. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  18149. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  18150. 8007bf8: 68fb ldr r3, [r7, #12]
  18151. 8007bfa: 681b ldr r3, [r3, #0]
  18152. 8007bfc: 6819 ldr r1, [r3, #0]
  18153. 8007bfe: 687b ldr r3, [r7, #4]
  18154. 8007c00: f003 0310 and.w r3, r3, #16
  18155. 8007c04: f44f 4280 mov.w r2, #16384 @ 0x4000
  18156. 8007c08: fa02 f303 lsl.w r3, r2, r3
  18157. 8007c0c: 43da mvns r2, r3
  18158. 8007c0e: 68fb ldr r3, [r7, #12]
  18159. 8007c10: 681b ldr r3, [r3, #0]
  18160. 8007c12: 400a ands r2, r1
  18161. 8007c14: 601a str r2, [r3, #0]
  18162. /* Get the DAC CR value */
  18163. tmpreg1 = hdac->Instance->CR;
  18164. 8007c16: 68fb ldr r3, [r7, #12]
  18165. 8007c18: 681b ldr r3, [r3, #0]
  18166. 8007c1a: 681b ldr r3, [r3, #0]
  18167. 8007c1c: 61bb str r3, [r7, #24]
  18168. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  18169. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  18170. 8007c1e: 687b ldr r3, [r7, #4]
  18171. 8007c20: f003 0310 and.w r3, r3, #16
  18172. 8007c24: f640 72fe movw r2, #4094 @ 0xffe
  18173. 8007c28: fa02 f303 lsl.w r3, r2, r3
  18174. 8007c2c: 43db mvns r3, r3
  18175. 8007c2e: 69ba ldr r2, [r7, #24]
  18176. 8007c30: 4013 ands r3, r2
  18177. 8007c32: 61bb str r3, [r7, #24]
  18178. /* Configure for the selected DAC channel: trigger */
  18179. /* Set TSELx and TENx bits according to DAC_Trigger value */
  18180. tmpreg2 = sConfig->DAC_Trigger;
  18181. 8007c34: 68bb ldr r3, [r7, #8]
  18182. 8007c36: 685b ldr r3, [r3, #4]
  18183. 8007c38: 617b str r3, [r7, #20]
  18184. /* Calculate CR register value depending on DAC_Channel */
  18185. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18186. 8007c3a: 687b ldr r3, [r7, #4]
  18187. 8007c3c: f003 0310 and.w r3, r3, #16
  18188. 8007c40: 697a ldr r2, [r7, #20]
  18189. 8007c42: fa02 f303 lsl.w r3, r2, r3
  18190. 8007c46: 69ba ldr r2, [r7, #24]
  18191. 8007c48: 4313 orrs r3, r2
  18192. 8007c4a: 61bb str r3, [r7, #24]
  18193. /* Write to DAC CR */
  18194. hdac->Instance->CR = tmpreg1;
  18195. 8007c4c: 68fb ldr r3, [r7, #12]
  18196. 8007c4e: 681b ldr r3, [r3, #0]
  18197. 8007c50: 69ba ldr r2, [r7, #24]
  18198. 8007c52: 601a str r2, [r3, #0]
  18199. /* Disable wave generation */
  18200. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  18201. 8007c54: 68fb ldr r3, [r7, #12]
  18202. 8007c56: 681b ldr r3, [r3, #0]
  18203. 8007c58: 6819 ldr r1, [r3, #0]
  18204. 8007c5a: 687b ldr r3, [r7, #4]
  18205. 8007c5c: f003 0310 and.w r3, r3, #16
  18206. 8007c60: 22c0 movs r2, #192 @ 0xc0
  18207. 8007c62: fa02 f303 lsl.w r3, r2, r3
  18208. 8007c66: 43da mvns r2, r3
  18209. 8007c68: 68fb ldr r3, [r7, #12]
  18210. 8007c6a: 681b ldr r3, [r3, #0]
  18211. 8007c6c: 400a ands r2, r1
  18212. 8007c6e: 601a str r2, [r3, #0]
  18213. /* Change DAC state */
  18214. hdac->State = HAL_DAC_STATE_READY;
  18215. 8007c70: 68fb ldr r3, [r7, #12]
  18216. 8007c72: 2201 movs r2, #1
  18217. 8007c74: 711a strb r2, [r3, #4]
  18218. /* Process unlocked */
  18219. __HAL_UNLOCK(hdac);
  18220. 8007c76: 68fb ldr r3, [r7, #12]
  18221. 8007c78: 2200 movs r2, #0
  18222. 8007c7a: 715a strb r2, [r3, #5]
  18223. /* Return function status */
  18224. return status;
  18225. 8007c7c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  18226. }
  18227. 8007c80: 4618 mov r0, r3
  18228. 8007c82: 3728 adds r7, #40 @ 0x28
  18229. 8007c84: 46bd mov sp, r7
  18230. 8007c86: bd80 pop {r7, pc}
  18231. 8007c88: 20008000 .word 0x20008000
  18232. 08007c8c <HAL_DACEx_DMAUnderrunCallbackCh2>:
  18233. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18234. * the configuration information for the specified DAC.
  18235. * @retval None
  18236. */
  18237. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  18238. {
  18239. 8007c8c: b480 push {r7}
  18240. 8007c8e: b083 sub sp, #12
  18241. 8007c90: af00 add r7, sp, #0
  18242. 8007c92: 6078 str r0, [r7, #4]
  18243. UNUSED(hdac);
  18244. /* NOTE : This function should not be modified, when the callback is needed,
  18245. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  18246. */
  18247. }
  18248. 8007c94: bf00 nop
  18249. 8007c96: 370c adds r7, #12
  18250. 8007c98: 46bd mov sp, r7
  18251. 8007c9a: f85d 7b04 ldr.w r7, [sp], #4
  18252. 8007c9e: 4770 bx lr
  18253. 08007ca0 <HAL_DMA_Init>:
  18254. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  18255. * the configuration information for the specified DMA Stream.
  18256. * @retval HAL status
  18257. */
  18258. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  18259. {
  18260. 8007ca0: b580 push {r7, lr}
  18261. 8007ca2: b086 sub sp, #24
  18262. 8007ca4: af00 add r7, sp, #0
  18263. 8007ca6: 6078 str r0, [r7, #4]
  18264. uint32_t registerValue;
  18265. uint32_t tickstart = HAL_GetTick();
  18266. 8007ca8: f7fd fc5e bl 8005568 <HAL_GetTick>
  18267. 8007cac: 6138 str r0, [r7, #16]
  18268. DMA_Base_Registers *regs_dma;
  18269. BDMA_Base_Registers *regs_bdma;
  18270. /* Check the DMA peripheral handle */
  18271. if(hdma == NULL)
  18272. 8007cae: 687b ldr r3, [r7, #4]
  18273. 8007cb0: 2b00 cmp r3, #0
  18274. 8007cb2: d101 bne.n 8007cb8 <HAL_DMA_Init+0x18>
  18275. {
  18276. return HAL_ERROR;
  18277. 8007cb4: 2301 movs r3, #1
  18278. 8007cb6: e316 b.n 80082e6 <HAL_DMA_Init+0x646>
  18279. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  18280. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  18281. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  18282. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  18283. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  18284. 8007cb8: 687b ldr r3, [r7, #4]
  18285. 8007cba: 681b ldr r3, [r3, #0]
  18286. 8007cbc: 4a66 ldr r2, [pc, #408] @ (8007e58 <HAL_DMA_Init+0x1b8>)
  18287. 8007cbe: 4293 cmp r3, r2
  18288. 8007cc0: d04a beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18289. 8007cc2: 687b ldr r3, [r7, #4]
  18290. 8007cc4: 681b ldr r3, [r3, #0]
  18291. 8007cc6: 4a65 ldr r2, [pc, #404] @ (8007e5c <HAL_DMA_Init+0x1bc>)
  18292. 8007cc8: 4293 cmp r3, r2
  18293. 8007cca: d045 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18294. 8007ccc: 687b ldr r3, [r7, #4]
  18295. 8007cce: 681b ldr r3, [r3, #0]
  18296. 8007cd0: 4a63 ldr r2, [pc, #396] @ (8007e60 <HAL_DMA_Init+0x1c0>)
  18297. 8007cd2: 4293 cmp r3, r2
  18298. 8007cd4: d040 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18299. 8007cd6: 687b ldr r3, [r7, #4]
  18300. 8007cd8: 681b ldr r3, [r3, #0]
  18301. 8007cda: 4a62 ldr r2, [pc, #392] @ (8007e64 <HAL_DMA_Init+0x1c4>)
  18302. 8007cdc: 4293 cmp r3, r2
  18303. 8007cde: d03b beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18304. 8007ce0: 687b ldr r3, [r7, #4]
  18305. 8007ce2: 681b ldr r3, [r3, #0]
  18306. 8007ce4: 4a60 ldr r2, [pc, #384] @ (8007e68 <HAL_DMA_Init+0x1c8>)
  18307. 8007ce6: 4293 cmp r3, r2
  18308. 8007ce8: d036 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18309. 8007cea: 687b ldr r3, [r7, #4]
  18310. 8007cec: 681b ldr r3, [r3, #0]
  18311. 8007cee: 4a5f ldr r2, [pc, #380] @ (8007e6c <HAL_DMA_Init+0x1cc>)
  18312. 8007cf0: 4293 cmp r3, r2
  18313. 8007cf2: d031 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18314. 8007cf4: 687b ldr r3, [r7, #4]
  18315. 8007cf6: 681b ldr r3, [r3, #0]
  18316. 8007cf8: 4a5d ldr r2, [pc, #372] @ (8007e70 <HAL_DMA_Init+0x1d0>)
  18317. 8007cfa: 4293 cmp r3, r2
  18318. 8007cfc: d02c beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18319. 8007cfe: 687b ldr r3, [r7, #4]
  18320. 8007d00: 681b ldr r3, [r3, #0]
  18321. 8007d02: 4a5c ldr r2, [pc, #368] @ (8007e74 <HAL_DMA_Init+0x1d4>)
  18322. 8007d04: 4293 cmp r3, r2
  18323. 8007d06: d027 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18324. 8007d08: 687b ldr r3, [r7, #4]
  18325. 8007d0a: 681b ldr r3, [r3, #0]
  18326. 8007d0c: 4a5a ldr r2, [pc, #360] @ (8007e78 <HAL_DMA_Init+0x1d8>)
  18327. 8007d0e: 4293 cmp r3, r2
  18328. 8007d10: d022 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18329. 8007d12: 687b ldr r3, [r7, #4]
  18330. 8007d14: 681b ldr r3, [r3, #0]
  18331. 8007d16: 4a59 ldr r2, [pc, #356] @ (8007e7c <HAL_DMA_Init+0x1dc>)
  18332. 8007d18: 4293 cmp r3, r2
  18333. 8007d1a: d01d beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18334. 8007d1c: 687b ldr r3, [r7, #4]
  18335. 8007d1e: 681b ldr r3, [r3, #0]
  18336. 8007d20: 4a57 ldr r2, [pc, #348] @ (8007e80 <HAL_DMA_Init+0x1e0>)
  18337. 8007d22: 4293 cmp r3, r2
  18338. 8007d24: d018 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18339. 8007d26: 687b ldr r3, [r7, #4]
  18340. 8007d28: 681b ldr r3, [r3, #0]
  18341. 8007d2a: 4a56 ldr r2, [pc, #344] @ (8007e84 <HAL_DMA_Init+0x1e4>)
  18342. 8007d2c: 4293 cmp r3, r2
  18343. 8007d2e: d013 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18344. 8007d30: 687b ldr r3, [r7, #4]
  18345. 8007d32: 681b ldr r3, [r3, #0]
  18346. 8007d34: 4a54 ldr r2, [pc, #336] @ (8007e88 <HAL_DMA_Init+0x1e8>)
  18347. 8007d36: 4293 cmp r3, r2
  18348. 8007d38: d00e beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18349. 8007d3a: 687b ldr r3, [r7, #4]
  18350. 8007d3c: 681b ldr r3, [r3, #0]
  18351. 8007d3e: 4a53 ldr r2, [pc, #332] @ (8007e8c <HAL_DMA_Init+0x1ec>)
  18352. 8007d40: 4293 cmp r3, r2
  18353. 8007d42: d009 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18354. 8007d44: 687b ldr r3, [r7, #4]
  18355. 8007d46: 681b ldr r3, [r3, #0]
  18356. 8007d48: 4a51 ldr r2, [pc, #324] @ (8007e90 <HAL_DMA_Init+0x1f0>)
  18357. 8007d4a: 4293 cmp r3, r2
  18358. 8007d4c: d004 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18359. 8007d4e: 687b ldr r3, [r7, #4]
  18360. 8007d50: 681b ldr r3, [r3, #0]
  18361. 8007d52: 4a50 ldr r2, [pc, #320] @ (8007e94 <HAL_DMA_Init+0x1f4>)
  18362. 8007d54: 4293 cmp r3, r2
  18363. 8007d56: d101 bne.n 8007d5c <HAL_DMA_Init+0xbc>
  18364. 8007d58: 2301 movs r3, #1
  18365. 8007d5a: e000 b.n 8007d5e <HAL_DMA_Init+0xbe>
  18366. 8007d5c: 2300 movs r3, #0
  18367. 8007d5e: 2b00 cmp r3, #0
  18368. 8007d60: f000 813b beq.w 8007fda <HAL_DMA_Init+0x33a>
  18369. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  18370. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  18371. }
  18372. /* Change DMA peripheral state */
  18373. hdma->State = HAL_DMA_STATE_BUSY;
  18374. 8007d64: 687b ldr r3, [r7, #4]
  18375. 8007d66: 2202 movs r2, #2
  18376. 8007d68: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18377. /* Allocate lock resource */
  18378. __HAL_UNLOCK(hdma);
  18379. 8007d6c: 687b ldr r3, [r7, #4]
  18380. 8007d6e: 2200 movs r2, #0
  18381. 8007d70: f883 2034 strb.w r2, [r3, #52] @ 0x34
  18382. /* Disable the peripheral */
  18383. __HAL_DMA_DISABLE(hdma);
  18384. 8007d74: 687b ldr r3, [r7, #4]
  18385. 8007d76: 681b ldr r3, [r3, #0]
  18386. 8007d78: 4a37 ldr r2, [pc, #220] @ (8007e58 <HAL_DMA_Init+0x1b8>)
  18387. 8007d7a: 4293 cmp r3, r2
  18388. 8007d7c: d04a beq.n 8007e14 <HAL_DMA_Init+0x174>
  18389. 8007d7e: 687b ldr r3, [r7, #4]
  18390. 8007d80: 681b ldr r3, [r3, #0]
  18391. 8007d82: 4a36 ldr r2, [pc, #216] @ (8007e5c <HAL_DMA_Init+0x1bc>)
  18392. 8007d84: 4293 cmp r3, r2
  18393. 8007d86: d045 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18394. 8007d88: 687b ldr r3, [r7, #4]
  18395. 8007d8a: 681b ldr r3, [r3, #0]
  18396. 8007d8c: 4a34 ldr r2, [pc, #208] @ (8007e60 <HAL_DMA_Init+0x1c0>)
  18397. 8007d8e: 4293 cmp r3, r2
  18398. 8007d90: d040 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18399. 8007d92: 687b ldr r3, [r7, #4]
  18400. 8007d94: 681b ldr r3, [r3, #0]
  18401. 8007d96: 4a33 ldr r2, [pc, #204] @ (8007e64 <HAL_DMA_Init+0x1c4>)
  18402. 8007d98: 4293 cmp r3, r2
  18403. 8007d9a: d03b beq.n 8007e14 <HAL_DMA_Init+0x174>
  18404. 8007d9c: 687b ldr r3, [r7, #4]
  18405. 8007d9e: 681b ldr r3, [r3, #0]
  18406. 8007da0: 4a31 ldr r2, [pc, #196] @ (8007e68 <HAL_DMA_Init+0x1c8>)
  18407. 8007da2: 4293 cmp r3, r2
  18408. 8007da4: d036 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18409. 8007da6: 687b ldr r3, [r7, #4]
  18410. 8007da8: 681b ldr r3, [r3, #0]
  18411. 8007daa: 4a30 ldr r2, [pc, #192] @ (8007e6c <HAL_DMA_Init+0x1cc>)
  18412. 8007dac: 4293 cmp r3, r2
  18413. 8007dae: d031 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18414. 8007db0: 687b ldr r3, [r7, #4]
  18415. 8007db2: 681b ldr r3, [r3, #0]
  18416. 8007db4: 4a2e ldr r2, [pc, #184] @ (8007e70 <HAL_DMA_Init+0x1d0>)
  18417. 8007db6: 4293 cmp r3, r2
  18418. 8007db8: d02c beq.n 8007e14 <HAL_DMA_Init+0x174>
  18419. 8007dba: 687b ldr r3, [r7, #4]
  18420. 8007dbc: 681b ldr r3, [r3, #0]
  18421. 8007dbe: 4a2d ldr r2, [pc, #180] @ (8007e74 <HAL_DMA_Init+0x1d4>)
  18422. 8007dc0: 4293 cmp r3, r2
  18423. 8007dc2: d027 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18424. 8007dc4: 687b ldr r3, [r7, #4]
  18425. 8007dc6: 681b ldr r3, [r3, #0]
  18426. 8007dc8: 4a2b ldr r2, [pc, #172] @ (8007e78 <HAL_DMA_Init+0x1d8>)
  18427. 8007dca: 4293 cmp r3, r2
  18428. 8007dcc: d022 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18429. 8007dce: 687b ldr r3, [r7, #4]
  18430. 8007dd0: 681b ldr r3, [r3, #0]
  18431. 8007dd2: 4a2a ldr r2, [pc, #168] @ (8007e7c <HAL_DMA_Init+0x1dc>)
  18432. 8007dd4: 4293 cmp r3, r2
  18433. 8007dd6: d01d beq.n 8007e14 <HAL_DMA_Init+0x174>
  18434. 8007dd8: 687b ldr r3, [r7, #4]
  18435. 8007dda: 681b ldr r3, [r3, #0]
  18436. 8007ddc: 4a28 ldr r2, [pc, #160] @ (8007e80 <HAL_DMA_Init+0x1e0>)
  18437. 8007dde: 4293 cmp r3, r2
  18438. 8007de0: d018 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18439. 8007de2: 687b ldr r3, [r7, #4]
  18440. 8007de4: 681b ldr r3, [r3, #0]
  18441. 8007de6: 4a27 ldr r2, [pc, #156] @ (8007e84 <HAL_DMA_Init+0x1e4>)
  18442. 8007de8: 4293 cmp r3, r2
  18443. 8007dea: d013 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18444. 8007dec: 687b ldr r3, [r7, #4]
  18445. 8007dee: 681b ldr r3, [r3, #0]
  18446. 8007df0: 4a25 ldr r2, [pc, #148] @ (8007e88 <HAL_DMA_Init+0x1e8>)
  18447. 8007df2: 4293 cmp r3, r2
  18448. 8007df4: d00e beq.n 8007e14 <HAL_DMA_Init+0x174>
  18449. 8007df6: 687b ldr r3, [r7, #4]
  18450. 8007df8: 681b ldr r3, [r3, #0]
  18451. 8007dfa: 4a24 ldr r2, [pc, #144] @ (8007e8c <HAL_DMA_Init+0x1ec>)
  18452. 8007dfc: 4293 cmp r3, r2
  18453. 8007dfe: d009 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18454. 8007e00: 687b ldr r3, [r7, #4]
  18455. 8007e02: 681b ldr r3, [r3, #0]
  18456. 8007e04: 4a22 ldr r2, [pc, #136] @ (8007e90 <HAL_DMA_Init+0x1f0>)
  18457. 8007e06: 4293 cmp r3, r2
  18458. 8007e08: d004 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18459. 8007e0a: 687b ldr r3, [r7, #4]
  18460. 8007e0c: 681b ldr r3, [r3, #0]
  18461. 8007e0e: 4a21 ldr r2, [pc, #132] @ (8007e94 <HAL_DMA_Init+0x1f4>)
  18462. 8007e10: 4293 cmp r3, r2
  18463. 8007e12: d108 bne.n 8007e26 <HAL_DMA_Init+0x186>
  18464. 8007e14: 687b ldr r3, [r7, #4]
  18465. 8007e16: 681b ldr r3, [r3, #0]
  18466. 8007e18: 681a ldr r2, [r3, #0]
  18467. 8007e1a: 687b ldr r3, [r7, #4]
  18468. 8007e1c: 681b ldr r3, [r3, #0]
  18469. 8007e1e: f022 0201 bic.w r2, r2, #1
  18470. 8007e22: 601a str r2, [r3, #0]
  18471. 8007e24: e007 b.n 8007e36 <HAL_DMA_Init+0x196>
  18472. 8007e26: 687b ldr r3, [r7, #4]
  18473. 8007e28: 681b ldr r3, [r3, #0]
  18474. 8007e2a: 681a ldr r2, [r3, #0]
  18475. 8007e2c: 687b ldr r3, [r7, #4]
  18476. 8007e2e: 681b ldr r3, [r3, #0]
  18477. 8007e30: f022 0201 bic.w r2, r2, #1
  18478. 8007e34: 601a str r2, [r3, #0]
  18479. /* Check if the DMA Stream is effectively disabled */
  18480. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  18481. 8007e36: e02f b.n 8007e98 <HAL_DMA_Init+0x1f8>
  18482. {
  18483. /* Check for the Timeout */
  18484. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  18485. 8007e38: f7fd fb96 bl 8005568 <HAL_GetTick>
  18486. 8007e3c: 4602 mov r2, r0
  18487. 8007e3e: 693b ldr r3, [r7, #16]
  18488. 8007e40: 1ad3 subs r3, r2, r3
  18489. 8007e42: 2b05 cmp r3, #5
  18490. 8007e44: d928 bls.n 8007e98 <HAL_DMA_Init+0x1f8>
  18491. {
  18492. /* Update error code */
  18493. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  18494. 8007e46: 687b ldr r3, [r7, #4]
  18495. 8007e48: 2220 movs r2, #32
  18496. 8007e4a: 655a str r2, [r3, #84] @ 0x54
  18497. /* Change the DMA state */
  18498. hdma->State = HAL_DMA_STATE_ERROR;
  18499. 8007e4c: 687b ldr r3, [r7, #4]
  18500. 8007e4e: 2203 movs r2, #3
  18501. 8007e50: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18502. return HAL_ERROR;
  18503. 8007e54: 2301 movs r3, #1
  18504. 8007e56: e246 b.n 80082e6 <HAL_DMA_Init+0x646>
  18505. 8007e58: 40020010 .word 0x40020010
  18506. 8007e5c: 40020028 .word 0x40020028
  18507. 8007e60: 40020040 .word 0x40020040
  18508. 8007e64: 40020058 .word 0x40020058
  18509. 8007e68: 40020070 .word 0x40020070
  18510. 8007e6c: 40020088 .word 0x40020088
  18511. 8007e70: 400200a0 .word 0x400200a0
  18512. 8007e74: 400200b8 .word 0x400200b8
  18513. 8007e78: 40020410 .word 0x40020410
  18514. 8007e7c: 40020428 .word 0x40020428
  18515. 8007e80: 40020440 .word 0x40020440
  18516. 8007e84: 40020458 .word 0x40020458
  18517. 8007e88: 40020470 .word 0x40020470
  18518. 8007e8c: 40020488 .word 0x40020488
  18519. 8007e90: 400204a0 .word 0x400204a0
  18520. 8007e94: 400204b8 .word 0x400204b8
  18521. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  18522. 8007e98: 687b ldr r3, [r7, #4]
  18523. 8007e9a: 681b ldr r3, [r3, #0]
  18524. 8007e9c: 681b ldr r3, [r3, #0]
  18525. 8007e9e: f003 0301 and.w r3, r3, #1
  18526. 8007ea2: 2b00 cmp r3, #0
  18527. 8007ea4: d1c8 bne.n 8007e38 <HAL_DMA_Init+0x198>
  18528. }
  18529. }
  18530. /* Get the CR register value */
  18531. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  18532. 8007ea6: 687b ldr r3, [r7, #4]
  18533. 8007ea8: 681b ldr r3, [r3, #0]
  18534. 8007eaa: 681b ldr r3, [r3, #0]
  18535. 8007eac: 617b str r3, [r7, #20]
  18536. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  18537. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  18538. 8007eae: 697a ldr r2, [r7, #20]
  18539. 8007eb0: 4b83 ldr r3, [pc, #524] @ (80080c0 <HAL_DMA_Init+0x420>)
  18540. 8007eb2: 4013 ands r3, r2
  18541. 8007eb4: 617b str r3, [r7, #20]
  18542. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  18543. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  18544. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  18545. /* Prepare the DMA Stream configuration */
  18546. registerValue |= hdma->Init.Direction |
  18547. 8007eb6: 687b ldr r3, [r7, #4]
  18548. 8007eb8: 689a ldr r2, [r3, #8]
  18549. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18550. 8007eba: 687b ldr r3, [r7, #4]
  18551. 8007ebc: 68db ldr r3, [r3, #12]
  18552. registerValue |= hdma->Init.Direction |
  18553. 8007ebe: 431a orrs r2, r3
  18554. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18555. 8007ec0: 687b ldr r3, [r7, #4]
  18556. 8007ec2: 691b ldr r3, [r3, #16]
  18557. 8007ec4: 431a orrs r2, r3
  18558. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18559. 8007ec6: 687b ldr r3, [r7, #4]
  18560. 8007ec8: 695b ldr r3, [r3, #20]
  18561. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18562. 8007eca: 431a orrs r2, r3
  18563. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18564. 8007ecc: 687b ldr r3, [r7, #4]
  18565. 8007ece: 699b ldr r3, [r3, #24]
  18566. 8007ed0: 431a orrs r2, r3
  18567. hdma->Init.Mode | hdma->Init.Priority;
  18568. 8007ed2: 687b ldr r3, [r7, #4]
  18569. 8007ed4: 69db ldr r3, [r3, #28]
  18570. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18571. 8007ed6: 431a orrs r2, r3
  18572. hdma->Init.Mode | hdma->Init.Priority;
  18573. 8007ed8: 687b ldr r3, [r7, #4]
  18574. 8007eda: 6a1b ldr r3, [r3, #32]
  18575. 8007edc: 4313 orrs r3, r2
  18576. registerValue |= hdma->Init.Direction |
  18577. 8007ede: 697a ldr r2, [r7, #20]
  18578. 8007ee0: 4313 orrs r3, r2
  18579. 8007ee2: 617b str r3, [r7, #20]
  18580. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  18581. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  18582. 8007ee4: 687b ldr r3, [r7, #4]
  18583. 8007ee6: 6a5b ldr r3, [r3, #36] @ 0x24
  18584. 8007ee8: 2b04 cmp r3, #4
  18585. 8007eea: d107 bne.n 8007efc <HAL_DMA_Init+0x25c>
  18586. {
  18587. /* Get memory burst and peripheral burst */
  18588. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  18589. 8007eec: 687b ldr r3, [r7, #4]
  18590. 8007eee: 6ada ldr r2, [r3, #44] @ 0x2c
  18591. 8007ef0: 687b ldr r3, [r7, #4]
  18592. 8007ef2: 6b1b ldr r3, [r3, #48] @ 0x30
  18593. 8007ef4: 4313 orrs r3, r2
  18594. 8007ef6: 697a ldr r2, [r7, #20]
  18595. 8007ef8: 4313 orrs r3, r2
  18596. 8007efa: 617b str r3, [r7, #20]
  18597. }
  18598. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  18599. lock when transferring data to/from USART/UART */
  18600. #if (STM32H7_DEV_ID == 0x450UL)
  18601. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  18602. 8007efc: 4b71 ldr r3, [pc, #452] @ (80080c4 <HAL_DMA_Init+0x424>)
  18603. 8007efe: 681a ldr r2, [r3, #0]
  18604. 8007f00: 4b71 ldr r3, [pc, #452] @ (80080c8 <HAL_DMA_Init+0x428>)
  18605. 8007f02: 4013 ands r3, r2
  18606. 8007f04: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  18607. 8007f08: d328 bcc.n 8007f5c <HAL_DMA_Init+0x2bc>
  18608. {
  18609. #endif /* STM32H7_DEV_ID == 0x450UL */
  18610. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  18611. 8007f0a: 687b ldr r3, [r7, #4]
  18612. 8007f0c: 685b ldr r3, [r3, #4]
  18613. 8007f0e: 2b28 cmp r3, #40 @ 0x28
  18614. 8007f10: d903 bls.n 8007f1a <HAL_DMA_Init+0x27a>
  18615. 8007f12: 687b ldr r3, [r7, #4]
  18616. 8007f14: 685b ldr r3, [r3, #4]
  18617. 8007f16: 2b2e cmp r3, #46 @ 0x2e
  18618. 8007f18: d917 bls.n 8007f4a <HAL_DMA_Init+0x2aa>
  18619. 8007f1a: 687b ldr r3, [r7, #4]
  18620. 8007f1c: 685b ldr r3, [r3, #4]
  18621. 8007f1e: 2b3e cmp r3, #62 @ 0x3e
  18622. 8007f20: d903 bls.n 8007f2a <HAL_DMA_Init+0x28a>
  18623. 8007f22: 687b ldr r3, [r7, #4]
  18624. 8007f24: 685b ldr r3, [r3, #4]
  18625. 8007f26: 2b42 cmp r3, #66 @ 0x42
  18626. 8007f28: d90f bls.n 8007f4a <HAL_DMA_Init+0x2aa>
  18627. 8007f2a: 687b ldr r3, [r7, #4]
  18628. 8007f2c: 685b ldr r3, [r3, #4]
  18629. 8007f2e: 2b46 cmp r3, #70 @ 0x46
  18630. 8007f30: d903 bls.n 8007f3a <HAL_DMA_Init+0x29a>
  18631. 8007f32: 687b ldr r3, [r7, #4]
  18632. 8007f34: 685b ldr r3, [r3, #4]
  18633. 8007f36: 2b48 cmp r3, #72 @ 0x48
  18634. 8007f38: d907 bls.n 8007f4a <HAL_DMA_Init+0x2aa>
  18635. 8007f3a: 687b ldr r3, [r7, #4]
  18636. 8007f3c: 685b ldr r3, [r3, #4]
  18637. 8007f3e: 2b4e cmp r3, #78 @ 0x4e
  18638. 8007f40: d905 bls.n 8007f4e <HAL_DMA_Init+0x2ae>
  18639. 8007f42: 687b ldr r3, [r7, #4]
  18640. 8007f44: 685b ldr r3, [r3, #4]
  18641. 8007f46: 2b52 cmp r3, #82 @ 0x52
  18642. 8007f48: d801 bhi.n 8007f4e <HAL_DMA_Init+0x2ae>
  18643. 8007f4a: 2301 movs r3, #1
  18644. 8007f4c: e000 b.n 8007f50 <HAL_DMA_Init+0x2b0>
  18645. 8007f4e: 2300 movs r3, #0
  18646. 8007f50: 2b00 cmp r3, #0
  18647. 8007f52: d003 beq.n 8007f5c <HAL_DMA_Init+0x2bc>
  18648. {
  18649. registerValue |= DMA_SxCR_TRBUFF;
  18650. 8007f54: 697b ldr r3, [r7, #20]
  18651. 8007f56: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  18652. 8007f5a: 617b str r3, [r7, #20]
  18653. #if (STM32H7_DEV_ID == 0x450UL)
  18654. }
  18655. #endif /* STM32H7_DEV_ID == 0x450UL */
  18656. /* Write to DMA Stream CR register */
  18657. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  18658. 8007f5c: 687b ldr r3, [r7, #4]
  18659. 8007f5e: 681b ldr r3, [r3, #0]
  18660. 8007f60: 697a ldr r2, [r7, #20]
  18661. 8007f62: 601a str r2, [r3, #0]
  18662. /* Get the FCR register value */
  18663. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  18664. 8007f64: 687b ldr r3, [r7, #4]
  18665. 8007f66: 681b ldr r3, [r3, #0]
  18666. 8007f68: 695b ldr r3, [r3, #20]
  18667. 8007f6a: 617b str r3, [r7, #20]
  18668. /* Clear Direct mode and FIFO threshold bits */
  18669. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  18670. 8007f6c: 697b ldr r3, [r7, #20]
  18671. 8007f6e: f023 0307 bic.w r3, r3, #7
  18672. 8007f72: 617b str r3, [r7, #20]
  18673. /* Prepare the DMA Stream FIFO configuration */
  18674. registerValue |= hdma->Init.FIFOMode;
  18675. 8007f74: 687b ldr r3, [r7, #4]
  18676. 8007f76: 6a5b ldr r3, [r3, #36] @ 0x24
  18677. 8007f78: 697a ldr r2, [r7, #20]
  18678. 8007f7a: 4313 orrs r3, r2
  18679. 8007f7c: 617b str r3, [r7, #20]
  18680. /* the FIFO threshold is not used when the FIFO mode is disabled */
  18681. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  18682. 8007f7e: 687b ldr r3, [r7, #4]
  18683. 8007f80: 6a5b ldr r3, [r3, #36] @ 0x24
  18684. 8007f82: 2b04 cmp r3, #4
  18685. 8007f84: d117 bne.n 8007fb6 <HAL_DMA_Init+0x316>
  18686. {
  18687. /* Get the FIFO threshold */
  18688. registerValue |= hdma->Init.FIFOThreshold;
  18689. 8007f86: 687b ldr r3, [r7, #4]
  18690. 8007f88: 6a9b ldr r3, [r3, #40] @ 0x28
  18691. 8007f8a: 697a ldr r2, [r7, #20]
  18692. 8007f8c: 4313 orrs r3, r2
  18693. 8007f8e: 617b str r3, [r7, #20]
  18694. /* Check compatibility between FIFO threshold level and size of the memory burst */
  18695. /* for INCR4, INCR8, INCR16 */
  18696. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  18697. 8007f90: 687b ldr r3, [r7, #4]
  18698. 8007f92: 6adb ldr r3, [r3, #44] @ 0x2c
  18699. 8007f94: 2b00 cmp r3, #0
  18700. 8007f96: d00e beq.n 8007fb6 <HAL_DMA_Init+0x316>
  18701. {
  18702. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  18703. 8007f98: 6878 ldr r0, [r7, #4]
  18704. 8007f9a: f002 fb33 bl 800a604 <DMA_CheckFifoParam>
  18705. 8007f9e: 4603 mov r3, r0
  18706. 8007fa0: 2b00 cmp r3, #0
  18707. 8007fa2: d008 beq.n 8007fb6 <HAL_DMA_Init+0x316>
  18708. {
  18709. /* Update error code */
  18710. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  18711. 8007fa4: 687b ldr r3, [r7, #4]
  18712. 8007fa6: 2240 movs r2, #64 @ 0x40
  18713. 8007fa8: 655a str r2, [r3, #84] @ 0x54
  18714. /* Change the DMA state */
  18715. hdma->State = HAL_DMA_STATE_READY;
  18716. 8007faa: 687b ldr r3, [r7, #4]
  18717. 8007fac: 2201 movs r2, #1
  18718. 8007fae: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18719. return HAL_ERROR;
  18720. 8007fb2: 2301 movs r3, #1
  18721. 8007fb4: e197 b.n 80082e6 <HAL_DMA_Init+0x646>
  18722. }
  18723. }
  18724. }
  18725. /* Write to DMA Stream FCR */
  18726. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  18727. 8007fb6: 687b ldr r3, [r7, #4]
  18728. 8007fb8: 681b ldr r3, [r3, #0]
  18729. 8007fba: 697a ldr r2, [r7, #20]
  18730. 8007fbc: 615a str r2, [r3, #20]
  18731. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  18732. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  18733. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  18734. 8007fbe: 6878 ldr r0, [r7, #4]
  18735. 8007fc0: f002 fa6e bl 800a4a0 <DMA_CalcBaseAndBitshift>
  18736. 8007fc4: 4603 mov r3, r0
  18737. 8007fc6: 60bb str r3, [r7, #8]
  18738. /* Clear all interrupt flags */
  18739. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  18740. 8007fc8: 687b ldr r3, [r7, #4]
  18741. 8007fca: 6ddb ldr r3, [r3, #92] @ 0x5c
  18742. 8007fcc: f003 031f and.w r3, r3, #31
  18743. 8007fd0: 223f movs r2, #63 @ 0x3f
  18744. 8007fd2: 409a lsls r2, r3
  18745. 8007fd4: 68bb ldr r3, [r7, #8]
  18746. 8007fd6: 609a str r2, [r3, #8]
  18747. 8007fd8: e0cd b.n 8008176 <HAL_DMA_Init+0x4d6>
  18748. }
  18749. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  18750. 8007fda: 687b ldr r3, [r7, #4]
  18751. 8007fdc: 681b ldr r3, [r3, #0]
  18752. 8007fde: 4a3b ldr r2, [pc, #236] @ (80080cc <HAL_DMA_Init+0x42c>)
  18753. 8007fe0: 4293 cmp r3, r2
  18754. 8007fe2: d022 beq.n 800802a <HAL_DMA_Init+0x38a>
  18755. 8007fe4: 687b ldr r3, [r7, #4]
  18756. 8007fe6: 681b ldr r3, [r3, #0]
  18757. 8007fe8: 4a39 ldr r2, [pc, #228] @ (80080d0 <HAL_DMA_Init+0x430>)
  18758. 8007fea: 4293 cmp r3, r2
  18759. 8007fec: d01d beq.n 800802a <HAL_DMA_Init+0x38a>
  18760. 8007fee: 687b ldr r3, [r7, #4]
  18761. 8007ff0: 681b ldr r3, [r3, #0]
  18762. 8007ff2: 4a38 ldr r2, [pc, #224] @ (80080d4 <HAL_DMA_Init+0x434>)
  18763. 8007ff4: 4293 cmp r3, r2
  18764. 8007ff6: d018 beq.n 800802a <HAL_DMA_Init+0x38a>
  18765. 8007ff8: 687b ldr r3, [r7, #4]
  18766. 8007ffa: 681b ldr r3, [r3, #0]
  18767. 8007ffc: 4a36 ldr r2, [pc, #216] @ (80080d8 <HAL_DMA_Init+0x438>)
  18768. 8007ffe: 4293 cmp r3, r2
  18769. 8008000: d013 beq.n 800802a <HAL_DMA_Init+0x38a>
  18770. 8008002: 687b ldr r3, [r7, #4]
  18771. 8008004: 681b ldr r3, [r3, #0]
  18772. 8008006: 4a35 ldr r2, [pc, #212] @ (80080dc <HAL_DMA_Init+0x43c>)
  18773. 8008008: 4293 cmp r3, r2
  18774. 800800a: d00e beq.n 800802a <HAL_DMA_Init+0x38a>
  18775. 800800c: 687b ldr r3, [r7, #4]
  18776. 800800e: 681b ldr r3, [r3, #0]
  18777. 8008010: 4a33 ldr r2, [pc, #204] @ (80080e0 <HAL_DMA_Init+0x440>)
  18778. 8008012: 4293 cmp r3, r2
  18779. 8008014: d009 beq.n 800802a <HAL_DMA_Init+0x38a>
  18780. 8008016: 687b ldr r3, [r7, #4]
  18781. 8008018: 681b ldr r3, [r3, #0]
  18782. 800801a: 4a32 ldr r2, [pc, #200] @ (80080e4 <HAL_DMA_Init+0x444>)
  18783. 800801c: 4293 cmp r3, r2
  18784. 800801e: d004 beq.n 800802a <HAL_DMA_Init+0x38a>
  18785. 8008020: 687b ldr r3, [r7, #4]
  18786. 8008022: 681b ldr r3, [r3, #0]
  18787. 8008024: 4a30 ldr r2, [pc, #192] @ (80080e8 <HAL_DMA_Init+0x448>)
  18788. 8008026: 4293 cmp r3, r2
  18789. 8008028: d101 bne.n 800802e <HAL_DMA_Init+0x38e>
  18790. 800802a: 2301 movs r3, #1
  18791. 800802c: e000 b.n 8008030 <HAL_DMA_Init+0x390>
  18792. 800802e: 2300 movs r3, #0
  18793. 8008030: 2b00 cmp r3, #0
  18794. 8008032: f000 8097 beq.w 8008164 <HAL_DMA_Init+0x4c4>
  18795. {
  18796. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  18797. 8008036: 687b ldr r3, [r7, #4]
  18798. 8008038: 681b ldr r3, [r3, #0]
  18799. 800803a: 4a24 ldr r2, [pc, #144] @ (80080cc <HAL_DMA_Init+0x42c>)
  18800. 800803c: 4293 cmp r3, r2
  18801. 800803e: d021 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18802. 8008040: 687b ldr r3, [r7, #4]
  18803. 8008042: 681b ldr r3, [r3, #0]
  18804. 8008044: 4a22 ldr r2, [pc, #136] @ (80080d0 <HAL_DMA_Init+0x430>)
  18805. 8008046: 4293 cmp r3, r2
  18806. 8008048: d01c beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18807. 800804a: 687b ldr r3, [r7, #4]
  18808. 800804c: 681b ldr r3, [r3, #0]
  18809. 800804e: 4a21 ldr r2, [pc, #132] @ (80080d4 <HAL_DMA_Init+0x434>)
  18810. 8008050: 4293 cmp r3, r2
  18811. 8008052: d017 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18812. 8008054: 687b ldr r3, [r7, #4]
  18813. 8008056: 681b ldr r3, [r3, #0]
  18814. 8008058: 4a1f ldr r2, [pc, #124] @ (80080d8 <HAL_DMA_Init+0x438>)
  18815. 800805a: 4293 cmp r3, r2
  18816. 800805c: d012 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18817. 800805e: 687b ldr r3, [r7, #4]
  18818. 8008060: 681b ldr r3, [r3, #0]
  18819. 8008062: 4a1e ldr r2, [pc, #120] @ (80080dc <HAL_DMA_Init+0x43c>)
  18820. 8008064: 4293 cmp r3, r2
  18821. 8008066: d00d beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18822. 8008068: 687b ldr r3, [r7, #4]
  18823. 800806a: 681b ldr r3, [r3, #0]
  18824. 800806c: 4a1c ldr r2, [pc, #112] @ (80080e0 <HAL_DMA_Init+0x440>)
  18825. 800806e: 4293 cmp r3, r2
  18826. 8008070: d008 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18827. 8008072: 687b ldr r3, [r7, #4]
  18828. 8008074: 681b ldr r3, [r3, #0]
  18829. 8008076: 4a1b ldr r2, [pc, #108] @ (80080e4 <HAL_DMA_Init+0x444>)
  18830. 8008078: 4293 cmp r3, r2
  18831. 800807a: d003 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18832. 800807c: 687b ldr r3, [r7, #4]
  18833. 800807e: 681b ldr r3, [r3, #0]
  18834. 8008080: 4a19 ldr r2, [pc, #100] @ (80080e8 <HAL_DMA_Init+0x448>)
  18835. 8008082: 4293 cmp r3, r2
  18836. /* Check the request parameter */
  18837. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  18838. }
  18839. /* Change DMA peripheral state */
  18840. hdma->State = HAL_DMA_STATE_BUSY;
  18841. 8008084: 687b ldr r3, [r7, #4]
  18842. 8008086: 2202 movs r2, #2
  18843. 8008088: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18844. /* Allocate lock resource */
  18845. __HAL_UNLOCK(hdma);
  18846. 800808c: 687b ldr r3, [r7, #4]
  18847. 800808e: 2200 movs r2, #0
  18848. 8008090: f883 2034 strb.w r2, [r3, #52] @ 0x34
  18849. /* Get the CR register value */
  18850. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  18851. 8008094: 687b ldr r3, [r7, #4]
  18852. 8008096: 681b ldr r3, [r3, #0]
  18853. 8008098: 681b ldr r3, [r3, #0]
  18854. 800809a: 617b str r3, [r7, #20]
  18855. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  18856. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  18857. 800809c: 697a ldr r2, [r7, #20]
  18858. 800809e: 4b13 ldr r3, [pc, #76] @ (80080ec <HAL_DMA_Init+0x44c>)
  18859. 80080a0: 4013 ands r3, r2
  18860. 80080a2: 617b str r3, [r7, #20]
  18861. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  18862. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  18863. BDMA_CCR_CT));
  18864. /* Prepare the DMA Channel configuration */
  18865. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18866. 80080a4: 687b ldr r3, [r7, #4]
  18867. 80080a6: 689b ldr r3, [r3, #8]
  18868. 80080a8: 2b40 cmp r3, #64 @ 0x40
  18869. 80080aa: d021 beq.n 80080f0 <HAL_DMA_Init+0x450>
  18870. 80080ac: 687b ldr r3, [r7, #4]
  18871. 80080ae: 689b ldr r3, [r3, #8]
  18872. 80080b0: 2b80 cmp r3, #128 @ 0x80
  18873. 80080b2: d102 bne.n 80080ba <HAL_DMA_Init+0x41a>
  18874. 80080b4: f44f 4380 mov.w r3, #16384 @ 0x4000
  18875. 80080b8: e01b b.n 80080f2 <HAL_DMA_Init+0x452>
  18876. 80080ba: 2300 movs r3, #0
  18877. 80080bc: e019 b.n 80080f2 <HAL_DMA_Init+0x452>
  18878. 80080be: bf00 nop
  18879. 80080c0: fe10803f .word 0xfe10803f
  18880. 80080c4: 5c001000 .word 0x5c001000
  18881. 80080c8: ffff0000 .word 0xffff0000
  18882. 80080cc: 58025408 .word 0x58025408
  18883. 80080d0: 5802541c .word 0x5802541c
  18884. 80080d4: 58025430 .word 0x58025430
  18885. 80080d8: 58025444 .word 0x58025444
  18886. 80080dc: 58025458 .word 0x58025458
  18887. 80080e0: 5802546c .word 0x5802546c
  18888. 80080e4: 58025480 .word 0x58025480
  18889. 80080e8: 58025494 .word 0x58025494
  18890. 80080ec: fffe000f .word 0xfffe000f
  18891. 80080f0: 2310 movs r3, #16
  18892. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  18893. 80080f2: 687a ldr r2, [r7, #4]
  18894. 80080f4: 68d2 ldr r2, [r2, #12]
  18895. 80080f6: 08d2 lsrs r2, r2, #3
  18896. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18897. 80080f8: 431a orrs r2, r3
  18898. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  18899. 80080fa: 687b ldr r3, [r7, #4]
  18900. 80080fc: 691b ldr r3, [r3, #16]
  18901. 80080fe: 08db lsrs r3, r3, #3
  18902. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  18903. 8008100: 431a orrs r2, r3
  18904. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  18905. 8008102: 687b ldr r3, [r7, #4]
  18906. 8008104: 695b ldr r3, [r3, #20]
  18907. 8008106: 08db lsrs r3, r3, #3
  18908. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  18909. 8008108: 431a orrs r2, r3
  18910. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  18911. 800810a: 687b ldr r3, [r7, #4]
  18912. 800810c: 699b ldr r3, [r3, #24]
  18913. 800810e: 08db lsrs r3, r3, #3
  18914. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  18915. 8008110: 431a orrs r2, r3
  18916. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  18917. 8008112: 687b ldr r3, [r7, #4]
  18918. 8008114: 69db ldr r3, [r3, #28]
  18919. 8008116: 08db lsrs r3, r3, #3
  18920. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  18921. 8008118: 431a orrs r2, r3
  18922. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  18923. 800811a: 687b ldr r3, [r7, #4]
  18924. 800811c: 6a1b ldr r3, [r3, #32]
  18925. 800811e: 091b lsrs r3, r3, #4
  18926. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  18927. 8008120: 4313 orrs r3, r2
  18928. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18929. 8008122: 697a ldr r2, [r7, #20]
  18930. 8008124: 4313 orrs r3, r2
  18931. 8008126: 617b str r3, [r7, #20]
  18932. /* Write to DMA Channel CR register */
  18933. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  18934. 8008128: 687b ldr r3, [r7, #4]
  18935. 800812a: 681b ldr r3, [r3, #0]
  18936. 800812c: 697a ldr r2, [r7, #20]
  18937. 800812e: 601a str r2, [r3, #0]
  18938. /* calculation of the channel index */
  18939. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  18940. 8008130: 687b ldr r3, [r7, #4]
  18941. 8008132: 681b ldr r3, [r3, #0]
  18942. 8008134: 461a mov r2, r3
  18943. 8008136: 4b6e ldr r3, [pc, #440] @ (80082f0 <HAL_DMA_Init+0x650>)
  18944. 8008138: 4413 add r3, r2
  18945. 800813a: 4a6e ldr r2, [pc, #440] @ (80082f4 <HAL_DMA_Init+0x654>)
  18946. 800813c: fba2 2303 umull r2, r3, r2, r3
  18947. 8008140: 091b lsrs r3, r3, #4
  18948. 8008142: 009a lsls r2, r3, #2
  18949. 8008144: 687b ldr r3, [r7, #4]
  18950. 8008146: 65da str r2, [r3, #92] @ 0x5c
  18951. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  18952. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  18953. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  18954. 8008148: 6878 ldr r0, [r7, #4]
  18955. 800814a: f002 f9a9 bl 800a4a0 <DMA_CalcBaseAndBitshift>
  18956. 800814e: 4603 mov r3, r0
  18957. 8008150: 60fb str r3, [r7, #12]
  18958. /* Clear all interrupt flags */
  18959. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  18960. 8008152: 687b ldr r3, [r7, #4]
  18961. 8008154: 6ddb ldr r3, [r3, #92] @ 0x5c
  18962. 8008156: f003 031f and.w r3, r3, #31
  18963. 800815a: 2201 movs r2, #1
  18964. 800815c: 409a lsls r2, r3
  18965. 800815e: 68fb ldr r3, [r7, #12]
  18966. 8008160: 605a str r2, [r3, #4]
  18967. 8008162: e008 b.n 8008176 <HAL_DMA_Init+0x4d6>
  18968. }
  18969. else
  18970. {
  18971. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  18972. 8008164: 687b ldr r3, [r7, #4]
  18973. 8008166: 2240 movs r2, #64 @ 0x40
  18974. 8008168: 655a str r2, [r3, #84] @ 0x54
  18975. hdma->State = HAL_DMA_STATE_ERROR;
  18976. 800816a: 687b ldr r3, [r7, #4]
  18977. 800816c: 2203 movs r2, #3
  18978. 800816e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18979. return HAL_ERROR;
  18980. 8008172: 2301 movs r3, #1
  18981. 8008174: e0b7 b.n 80082e6 <HAL_DMA_Init+0x646>
  18982. }
  18983. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  18984. 8008176: 687b ldr r3, [r7, #4]
  18985. 8008178: 681b ldr r3, [r3, #0]
  18986. 800817a: 4a5f ldr r2, [pc, #380] @ (80082f8 <HAL_DMA_Init+0x658>)
  18987. 800817c: 4293 cmp r3, r2
  18988. 800817e: d072 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  18989. 8008180: 687b ldr r3, [r7, #4]
  18990. 8008182: 681b ldr r3, [r3, #0]
  18991. 8008184: 4a5d ldr r2, [pc, #372] @ (80082fc <HAL_DMA_Init+0x65c>)
  18992. 8008186: 4293 cmp r3, r2
  18993. 8008188: d06d beq.n 8008266 <HAL_DMA_Init+0x5c6>
  18994. 800818a: 687b ldr r3, [r7, #4]
  18995. 800818c: 681b ldr r3, [r3, #0]
  18996. 800818e: 4a5c ldr r2, [pc, #368] @ (8008300 <HAL_DMA_Init+0x660>)
  18997. 8008190: 4293 cmp r3, r2
  18998. 8008192: d068 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  18999. 8008194: 687b ldr r3, [r7, #4]
  19000. 8008196: 681b ldr r3, [r3, #0]
  19001. 8008198: 4a5a ldr r2, [pc, #360] @ (8008304 <HAL_DMA_Init+0x664>)
  19002. 800819a: 4293 cmp r3, r2
  19003. 800819c: d063 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19004. 800819e: 687b ldr r3, [r7, #4]
  19005. 80081a0: 681b ldr r3, [r3, #0]
  19006. 80081a2: 4a59 ldr r2, [pc, #356] @ (8008308 <HAL_DMA_Init+0x668>)
  19007. 80081a4: 4293 cmp r3, r2
  19008. 80081a6: d05e beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19009. 80081a8: 687b ldr r3, [r7, #4]
  19010. 80081aa: 681b ldr r3, [r3, #0]
  19011. 80081ac: 4a57 ldr r2, [pc, #348] @ (800830c <HAL_DMA_Init+0x66c>)
  19012. 80081ae: 4293 cmp r3, r2
  19013. 80081b0: d059 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19014. 80081b2: 687b ldr r3, [r7, #4]
  19015. 80081b4: 681b ldr r3, [r3, #0]
  19016. 80081b6: 4a56 ldr r2, [pc, #344] @ (8008310 <HAL_DMA_Init+0x670>)
  19017. 80081b8: 4293 cmp r3, r2
  19018. 80081ba: d054 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19019. 80081bc: 687b ldr r3, [r7, #4]
  19020. 80081be: 681b ldr r3, [r3, #0]
  19021. 80081c0: 4a54 ldr r2, [pc, #336] @ (8008314 <HAL_DMA_Init+0x674>)
  19022. 80081c2: 4293 cmp r3, r2
  19023. 80081c4: d04f beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19024. 80081c6: 687b ldr r3, [r7, #4]
  19025. 80081c8: 681b ldr r3, [r3, #0]
  19026. 80081ca: 4a53 ldr r2, [pc, #332] @ (8008318 <HAL_DMA_Init+0x678>)
  19027. 80081cc: 4293 cmp r3, r2
  19028. 80081ce: d04a beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19029. 80081d0: 687b ldr r3, [r7, #4]
  19030. 80081d2: 681b ldr r3, [r3, #0]
  19031. 80081d4: 4a51 ldr r2, [pc, #324] @ (800831c <HAL_DMA_Init+0x67c>)
  19032. 80081d6: 4293 cmp r3, r2
  19033. 80081d8: d045 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19034. 80081da: 687b ldr r3, [r7, #4]
  19035. 80081dc: 681b ldr r3, [r3, #0]
  19036. 80081de: 4a50 ldr r2, [pc, #320] @ (8008320 <HAL_DMA_Init+0x680>)
  19037. 80081e0: 4293 cmp r3, r2
  19038. 80081e2: d040 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19039. 80081e4: 687b ldr r3, [r7, #4]
  19040. 80081e6: 681b ldr r3, [r3, #0]
  19041. 80081e8: 4a4e ldr r2, [pc, #312] @ (8008324 <HAL_DMA_Init+0x684>)
  19042. 80081ea: 4293 cmp r3, r2
  19043. 80081ec: d03b beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19044. 80081ee: 687b ldr r3, [r7, #4]
  19045. 80081f0: 681b ldr r3, [r3, #0]
  19046. 80081f2: 4a4d ldr r2, [pc, #308] @ (8008328 <HAL_DMA_Init+0x688>)
  19047. 80081f4: 4293 cmp r3, r2
  19048. 80081f6: d036 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19049. 80081f8: 687b ldr r3, [r7, #4]
  19050. 80081fa: 681b ldr r3, [r3, #0]
  19051. 80081fc: 4a4b ldr r2, [pc, #300] @ (800832c <HAL_DMA_Init+0x68c>)
  19052. 80081fe: 4293 cmp r3, r2
  19053. 8008200: d031 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19054. 8008202: 687b ldr r3, [r7, #4]
  19055. 8008204: 681b ldr r3, [r3, #0]
  19056. 8008206: 4a4a ldr r2, [pc, #296] @ (8008330 <HAL_DMA_Init+0x690>)
  19057. 8008208: 4293 cmp r3, r2
  19058. 800820a: d02c beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19059. 800820c: 687b ldr r3, [r7, #4]
  19060. 800820e: 681b ldr r3, [r3, #0]
  19061. 8008210: 4a48 ldr r2, [pc, #288] @ (8008334 <HAL_DMA_Init+0x694>)
  19062. 8008212: 4293 cmp r3, r2
  19063. 8008214: d027 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19064. 8008216: 687b ldr r3, [r7, #4]
  19065. 8008218: 681b ldr r3, [r3, #0]
  19066. 800821a: 4a47 ldr r2, [pc, #284] @ (8008338 <HAL_DMA_Init+0x698>)
  19067. 800821c: 4293 cmp r3, r2
  19068. 800821e: d022 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19069. 8008220: 687b ldr r3, [r7, #4]
  19070. 8008222: 681b ldr r3, [r3, #0]
  19071. 8008224: 4a45 ldr r2, [pc, #276] @ (800833c <HAL_DMA_Init+0x69c>)
  19072. 8008226: 4293 cmp r3, r2
  19073. 8008228: d01d beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19074. 800822a: 687b ldr r3, [r7, #4]
  19075. 800822c: 681b ldr r3, [r3, #0]
  19076. 800822e: 4a44 ldr r2, [pc, #272] @ (8008340 <HAL_DMA_Init+0x6a0>)
  19077. 8008230: 4293 cmp r3, r2
  19078. 8008232: d018 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19079. 8008234: 687b ldr r3, [r7, #4]
  19080. 8008236: 681b ldr r3, [r3, #0]
  19081. 8008238: 4a42 ldr r2, [pc, #264] @ (8008344 <HAL_DMA_Init+0x6a4>)
  19082. 800823a: 4293 cmp r3, r2
  19083. 800823c: d013 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19084. 800823e: 687b ldr r3, [r7, #4]
  19085. 8008240: 681b ldr r3, [r3, #0]
  19086. 8008242: 4a41 ldr r2, [pc, #260] @ (8008348 <HAL_DMA_Init+0x6a8>)
  19087. 8008244: 4293 cmp r3, r2
  19088. 8008246: d00e beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19089. 8008248: 687b ldr r3, [r7, #4]
  19090. 800824a: 681b ldr r3, [r3, #0]
  19091. 800824c: 4a3f ldr r2, [pc, #252] @ (800834c <HAL_DMA_Init+0x6ac>)
  19092. 800824e: 4293 cmp r3, r2
  19093. 8008250: d009 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19094. 8008252: 687b ldr r3, [r7, #4]
  19095. 8008254: 681b ldr r3, [r3, #0]
  19096. 8008256: 4a3e ldr r2, [pc, #248] @ (8008350 <HAL_DMA_Init+0x6b0>)
  19097. 8008258: 4293 cmp r3, r2
  19098. 800825a: d004 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19099. 800825c: 687b ldr r3, [r7, #4]
  19100. 800825e: 681b ldr r3, [r3, #0]
  19101. 8008260: 4a3c ldr r2, [pc, #240] @ (8008354 <HAL_DMA_Init+0x6b4>)
  19102. 8008262: 4293 cmp r3, r2
  19103. 8008264: d101 bne.n 800826a <HAL_DMA_Init+0x5ca>
  19104. 8008266: 2301 movs r3, #1
  19105. 8008268: e000 b.n 800826c <HAL_DMA_Init+0x5cc>
  19106. 800826a: 2300 movs r3, #0
  19107. 800826c: 2b00 cmp r3, #0
  19108. 800826e: d032 beq.n 80082d6 <HAL_DMA_Init+0x636>
  19109. {
  19110. /* Initialize parameters for DMAMUX channel :
  19111. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  19112. */
  19113. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  19114. 8008270: 6878 ldr r0, [r7, #4]
  19115. 8008272: f002 fa43 bl 800a6fc <DMA_CalcDMAMUXChannelBaseAndMask>
  19116. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  19117. 8008276: 687b ldr r3, [r7, #4]
  19118. 8008278: 689b ldr r3, [r3, #8]
  19119. 800827a: 2b80 cmp r3, #128 @ 0x80
  19120. 800827c: d102 bne.n 8008284 <HAL_DMA_Init+0x5e4>
  19121. {
  19122. /* if memory to memory force the request to 0*/
  19123. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  19124. 800827e: 687b ldr r3, [r7, #4]
  19125. 8008280: 2200 movs r2, #0
  19126. 8008282: 605a str r2, [r3, #4]
  19127. }
  19128. /* Set peripheral request to DMAMUX channel */
  19129. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  19130. 8008284: 687b ldr r3, [r7, #4]
  19131. 8008286: 685a ldr r2, [r3, #4]
  19132. 8008288: 687b ldr r3, [r7, #4]
  19133. 800828a: 6e1b ldr r3, [r3, #96] @ 0x60
  19134. 800828c: b2d2 uxtb r2, r2
  19135. 800828e: 601a str r2, [r3, #0]
  19136. /* Clear the DMAMUX synchro overrun flag */
  19137. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  19138. 8008290: 687b ldr r3, [r7, #4]
  19139. 8008292: 6e5b ldr r3, [r3, #100] @ 0x64
  19140. 8008294: 687a ldr r2, [r7, #4]
  19141. 8008296: 6e92 ldr r2, [r2, #104] @ 0x68
  19142. 8008298: 605a str r2, [r3, #4]
  19143. /* Initialize parameters for DMAMUX request generator :
  19144. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  19145. */
  19146. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  19147. 800829a: 687b ldr r3, [r7, #4]
  19148. 800829c: 685b ldr r3, [r3, #4]
  19149. 800829e: 2b00 cmp r3, #0
  19150. 80082a0: d010 beq.n 80082c4 <HAL_DMA_Init+0x624>
  19151. 80082a2: 687b ldr r3, [r7, #4]
  19152. 80082a4: 685b ldr r3, [r3, #4]
  19153. 80082a6: 2b08 cmp r3, #8
  19154. 80082a8: d80c bhi.n 80082c4 <HAL_DMA_Init+0x624>
  19155. {
  19156. /* Initialize parameters for DMAMUX request generator :
  19157. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  19158. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  19159. 80082aa: 6878 ldr r0, [r7, #4]
  19160. 80082ac: f002 fac0 bl 800a830 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  19161. /* Reset the DMAMUX request generator register */
  19162. hdma->DMAmuxRequestGen->RGCR = 0U;
  19163. 80082b0: 687b ldr r3, [r7, #4]
  19164. 80082b2: 6edb ldr r3, [r3, #108] @ 0x6c
  19165. 80082b4: 2200 movs r2, #0
  19166. 80082b6: 601a str r2, [r3, #0]
  19167. /* Clear the DMAMUX request generator overrun flag */
  19168. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  19169. 80082b8: 687b ldr r3, [r7, #4]
  19170. 80082ba: 6f1b ldr r3, [r3, #112] @ 0x70
  19171. 80082bc: 687a ldr r2, [r7, #4]
  19172. 80082be: 6f52 ldr r2, [r2, #116] @ 0x74
  19173. 80082c0: 605a str r2, [r3, #4]
  19174. 80082c2: e008 b.n 80082d6 <HAL_DMA_Init+0x636>
  19175. }
  19176. else
  19177. {
  19178. hdma->DMAmuxRequestGen = 0U;
  19179. 80082c4: 687b ldr r3, [r7, #4]
  19180. 80082c6: 2200 movs r2, #0
  19181. 80082c8: 66da str r2, [r3, #108] @ 0x6c
  19182. hdma->DMAmuxRequestGenStatus = 0U;
  19183. 80082ca: 687b ldr r3, [r7, #4]
  19184. 80082cc: 2200 movs r2, #0
  19185. 80082ce: 671a str r2, [r3, #112] @ 0x70
  19186. hdma->DMAmuxRequestGenStatusMask = 0U;
  19187. 80082d0: 687b ldr r3, [r7, #4]
  19188. 80082d2: 2200 movs r2, #0
  19189. 80082d4: 675a str r2, [r3, #116] @ 0x74
  19190. }
  19191. }
  19192. /* Initialize the error code */
  19193. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  19194. 80082d6: 687b ldr r3, [r7, #4]
  19195. 80082d8: 2200 movs r2, #0
  19196. 80082da: 655a str r2, [r3, #84] @ 0x54
  19197. /* Initialize the DMA state */
  19198. hdma->State = HAL_DMA_STATE_READY;
  19199. 80082dc: 687b ldr r3, [r7, #4]
  19200. 80082de: 2201 movs r2, #1
  19201. 80082e0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19202. return HAL_OK;
  19203. 80082e4: 2300 movs r3, #0
  19204. }
  19205. 80082e6: 4618 mov r0, r3
  19206. 80082e8: 3718 adds r7, #24
  19207. 80082ea: 46bd mov sp, r7
  19208. 80082ec: bd80 pop {r7, pc}
  19209. 80082ee: bf00 nop
  19210. 80082f0: a7fdabf8 .word 0xa7fdabf8
  19211. 80082f4: cccccccd .word 0xcccccccd
  19212. 80082f8: 40020010 .word 0x40020010
  19213. 80082fc: 40020028 .word 0x40020028
  19214. 8008300: 40020040 .word 0x40020040
  19215. 8008304: 40020058 .word 0x40020058
  19216. 8008308: 40020070 .word 0x40020070
  19217. 800830c: 40020088 .word 0x40020088
  19218. 8008310: 400200a0 .word 0x400200a0
  19219. 8008314: 400200b8 .word 0x400200b8
  19220. 8008318: 40020410 .word 0x40020410
  19221. 800831c: 40020428 .word 0x40020428
  19222. 8008320: 40020440 .word 0x40020440
  19223. 8008324: 40020458 .word 0x40020458
  19224. 8008328: 40020470 .word 0x40020470
  19225. 800832c: 40020488 .word 0x40020488
  19226. 8008330: 400204a0 .word 0x400204a0
  19227. 8008334: 400204b8 .word 0x400204b8
  19228. 8008338: 58025408 .word 0x58025408
  19229. 800833c: 5802541c .word 0x5802541c
  19230. 8008340: 58025430 .word 0x58025430
  19231. 8008344: 58025444 .word 0x58025444
  19232. 8008348: 58025458 .word 0x58025458
  19233. 800834c: 5802546c .word 0x5802546c
  19234. 8008350: 58025480 .word 0x58025480
  19235. 8008354: 58025494 .word 0x58025494
  19236. 08008358 <HAL_DMA_Start_IT>:
  19237. * @param DstAddress: The destination memory Buffer address
  19238. * @param DataLength: The length of data to be transferred from source to destination
  19239. * @retval HAL status
  19240. */
  19241. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  19242. {
  19243. 8008358: b580 push {r7, lr}
  19244. 800835a: b086 sub sp, #24
  19245. 800835c: af00 add r7, sp, #0
  19246. 800835e: 60f8 str r0, [r7, #12]
  19247. 8008360: 60b9 str r1, [r7, #8]
  19248. 8008362: 607a str r2, [r7, #4]
  19249. 8008364: 603b str r3, [r7, #0]
  19250. HAL_StatusTypeDef status = HAL_OK;
  19251. 8008366: 2300 movs r3, #0
  19252. 8008368: 75fb strb r3, [r7, #23]
  19253. /* Check the parameters */
  19254. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  19255. /* Check the DMA peripheral handle */
  19256. if(hdma == NULL)
  19257. 800836a: 68fb ldr r3, [r7, #12]
  19258. 800836c: 2b00 cmp r3, #0
  19259. 800836e: d101 bne.n 8008374 <HAL_DMA_Start_IT+0x1c>
  19260. {
  19261. return HAL_ERROR;
  19262. 8008370: 2301 movs r3, #1
  19263. 8008372: e226 b.n 80087c2 <HAL_DMA_Start_IT+0x46a>
  19264. }
  19265. /* Process locked */
  19266. __HAL_LOCK(hdma);
  19267. 8008374: 68fb ldr r3, [r7, #12]
  19268. 8008376: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  19269. 800837a: 2b01 cmp r3, #1
  19270. 800837c: d101 bne.n 8008382 <HAL_DMA_Start_IT+0x2a>
  19271. 800837e: 2302 movs r3, #2
  19272. 8008380: e21f b.n 80087c2 <HAL_DMA_Start_IT+0x46a>
  19273. 8008382: 68fb ldr r3, [r7, #12]
  19274. 8008384: 2201 movs r2, #1
  19275. 8008386: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19276. if(HAL_DMA_STATE_READY == hdma->State)
  19277. 800838a: 68fb ldr r3, [r7, #12]
  19278. 800838c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  19279. 8008390: b2db uxtb r3, r3
  19280. 8008392: 2b01 cmp r3, #1
  19281. 8008394: f040 820a bne.w 80087ac <HAL_DMA_Start_IT+0x454>
  19282. {
  19283. /* Change DMA peripheral state */
  19284. hdma->State = HAL_DMA_STATE_BUSY;
  19285. 8008398: 68fb ldr r3, [r7, #12]
  19286. 800839a: 2202 movs r2, #2
  19287. 800839c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19288. /* Initialize the error code */
  19289. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  19290. 80083a0: 68fb ldr r3, [r7, #12]
  19291. 80083a2: 2200 movs r2, #0
  19292. 80083a4: 655a str r2, [r3, #84] @ 0x54
  19293. /* Disable the peripheral */
  19294. __HAL_DMA_DISABLE(hdma);
  19295. 80083a6: 68fb ldr r3, [r7, #12]
  19296. 80083a8: 681b ldr r3, [r3, #0]
  19297. 80083aa: 4a68 ldr r2, [pc, #416] @ (800854c <HAL_DMA_Start_IT+0x1f4>)
  19298. 80083ac: 4293 cmp r3, r2
  19299. 80083ae: d04a beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19300. 80083b0: 68fb ldr r3, [r7, #12]
  19301. 80083b2: 681b ldr r3, [r3, #0]
  19302. 80083b4: 4a66 ldr r2, [pc, #408] @ (8008550 <HAL_DMA_Start_IT+0x1f8>)
  19303. 80083b6: 4293 cmp r3, r2
  19304. 80083b8: d045 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19305. 80083ba: 68fb ldr r3, [r7, #12]
  19306. 80083bc: 681b ldr r3, [r3, #0]
  19307. 80083be: 4a65 ldr r2, [pc, #404] @ (8008554 <HAL_DMA_Start_IT+0x1fc>)
  19308. 80083c0: 4293 cmp r3, r2
  19309. 80083c2: d040 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19310. 80083c4: 68fb ldr r3, [r7, #12]
  19311. 80083c6: 681b ldr r3, [r3, #0]
  19312. 80083c8: 4a63 ldr r2, [pc, #396] @ (8008558 <HAL_DMA_Start_IT+0x200>)
  19313. 80083ca: 4293 cmp r3, r2
  19314. 80083cc: d03b beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19315. 80083ce: 68fb ldr r3, [r7, #12]
  19316. 80083d0: 681b ldr r3, [r3, #0]
  19317. 80083d2: 4a62 ldr r2, [pc, #392] @ (800855c <HAL_DMA_Start_IT+0x204>)
  19318. 80083d4: 4293 cmp r3, r2
  19319. 80083d6: d036 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19320. 80083d8: 68fb ldr r3, [r7, #12]
  19321. 80083da: 681b ldr r3, [r3, #0]
  19322. 80083dc: 4a60 ldr r2, [pc, #384] @ (8008560 <HAL_DMA_Start_IT+0x208>)
  19323. 80083de: 4293 cmp r3, r2
  19324. 80083e0: d031 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19325. 80083e2: 68fb ldr r3, [r7, #12]
  19326. 80083e4: 681b ldr r3, [r3, #0]
  19327. 80083e6: 4a5f ldr r2, [pc, #380] @ (8008564 <HAL_DMA_Start_IT+0x20c>)
  19328. 80083e8: 4293 cmp r3, r2
  19329. 80083ea: d02c beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19330. 80083ec: 68fb ldr r3, [r7, #12]
  19331. 80083ee: 681b ldr r3, [r3, #0]
  19332. 80083f0: 4a5d ldr r2, [pc, #372] @ (8008568 <HAL_DMA_Start_IT+0x210>)
  19333. 80083f2: 4293 cmp r3, r2
  19334. 80083f4: d027 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19335. 80083f6: 68fb ldr r3, [r7, #12]
  19336. 80083f8: 681b ldr r3, [r3, #0]
  19337. 80083fa: 4a5c ldr r2, [pc, #368] @ (800856c <HAL_DMA_Start_IT+0x214>)
  19338. 80083fc: 4293 cmp r3, r2
  19339. 80083fe: d022 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19340. 8008400: 68fb ldr r3, [r7, #12]
  19341. 8008402: 681b ldr r3, [r3, #0]
  19342. 8008404: 4a5a ldr r2, [pc, #360] @ (8008570 <HAL_DMA_Start_IT+0x218>)
  19343. 8008406: 4293 cmp r3, r2
  19344. 8008408: d01d beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19345. 800840a: 68fb ldr r3, [r7, #12]
  19346. 800840c: 681b ldr r3, [r3, #0]
  19347. 800840e: 4a59 ldr r2, [pc, #356] @ (8008574 <HAL_DMA_Start_IT+0x21c>)
  19348. 8008410: 4293 cmp r3, r2
  19349. 8008412: d018 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19350. 8008414: 68fb ldr r3, [r7, #12]
  19351. 8008416: 681b ldr r3, [r3, #0]
  19352. 8008418: 4a57 ldr r2, [pc, #348] @ (8008578 <HAL_DMA_Start_IT+0x220>)
  19353. 800841a: 4293 cmp r3, r2
  19354. 800841c: d013 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19355. 800841e: 68fb ldr r3, [r7, #12]
  19356. 8008420: 681b ldr r3, [r3, #0]
  19357. 8008422: 4a56 ldr r2, [pc, #344] @ (800857c <HAL_DMA_Start_IT+0x224>)
  19358. 8008424: 4293 cmp r3, r2
  19359. 8008426: d00e beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19360. 8008428: 68fb ldr r3, [r7, #12]
  19361. 800842a: 681b ldr r3, [r3, #0]
  19362. 800842c: 4a54 ldr r2, [pc, #336] @ (8008580 <HAL_DMA_Start_IT+0x228>)
  19363. 800842e: 4293 cmp r3, r2
  19364. 8008430: d009 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19365. 8008432: 68fb ldr r3, [r7, #12]
  19366. 8008434: 681b ldr r3, [r3, #0]
  19367. 8008436: 4a53 ldr r2, [pc, #332] @ (8008584 <HAL_DMA_Start_IT+0x22c>)
  19368. 8008438: 4293 cmp r3, r2
  19369. 800843a: d004 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19370. 800843c: 68fb ldr r3, [r7, #12]
  19371. 800843e: 681b ldr r3, [r3, #0]
  19372. 8008440: 4a51 ldr r2, [pc, #324] @ (8008588 <HAL_DMA_Start_IT+0x230>)
  19373. 8008442: 4293 cmp r3, r2
  19374. 8008444: d108 bne.n 8008458 <HAL_DMA_Start_IT+0x100>
  19375. 8008446: 68fb ldr r3, [r7, #12]
  19376. 8008448: 681b ldr r3, [r3, #0]
  19377. 800844a: 681a ldr r2, [r3, #0]
  19378. 800844c: 68fb ldr r3, [r7, #12]
  19379. 800844e: 681b ldr r3, [r3, #0]
  19380. 8008450: f022 0201 bic.w r2, r2, #1
  19381. 8008454: 601a str r2, [r3, #0]
  19382. 8008456: e007 b.n 8008468 <HAL_DMA_Start_IT+0x110>
  19383. 8008458: 68fb ldr r3, [r7, #12]
  19384. 800845a: 681b ldr r3, [r3, #0]
  19385. 800845c: 681a ldr r2, [r3, #0]
  19386. 800845e: 68fb ldr r3, [r7, #12]
  19387. 8008460: 681b ldr r3, [r3, #0]
  19388. 8008462: f022 0201 bic.w r2, r2, #1
  19389. 8008466: 601a str r2, [r3, #0]
  19390. /* Configure the source, destination address and the data length */
  19391. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  19392. 8008468: 683b ldr r3, [r7, #0]
  19393. 800846a: 687a ldr r2, [r7, #4]
  19394. 800846c: 68b9 ldr r1, [r7, #8]
  19395. 800846e: 68f8 ldr r0, [r7, #12]
  19396. 8008470: f001 fe6a bl 800a148 <DMA_SetConfig>
  19397. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19398. 8008474: 68fb ldr r3, [r7, #12]
  19399. 8008476: 681b ldr r3, [r3, #0]
  19400. 8008478: 4a34 ldr r2, [pc, #208] @ (800854c <HAL_DMA_Start_IT+0x1f4>)
  19401. 800847a: 4293 cmp r3, r2
  19402. 800847c: d04a beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19403. 800847e: 68fb ldr r3, [r7, #12]
  19404. 8008480: 681b ldr r3, [r3, #0]
  19405. 8008482: 4a33 ldr r2, [pc, #204] @ (8008550 <HAL_DMA_Start_IT+0x1f8>)
  19406. 8008484: 4293 cmp r3, r2
  19407. 8008486: d045 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19408. 8008488: 68fb ldr r3, [r7, #12]
  19409. 800848a: 681b ldr r3, [r3, #0]
  19410. 800848c: 4a31 ldr r2, [pc, #196] @ (8008554 <HAL_DMA_Start_IT+0x1fc>)
  19411. 800848e: 4293 cmp r3, r2
  19412. 8008490: d040 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19413. 8008492: 68fb ldr r3, [r7, #12]
  19414. 8008494: 681b ldr r3, [r3, #0]
  19415. 8008496: 4a30 ldr r2, [pc, #192] @ (8008558 <HAL_DMA_Start_IT+0x200>)
  19416. 8008498: 4293 cmp r3, r2
  19417. 800849a: d03b beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19418. 800849c: 68fb ldr r3, [r7, #12]
  19419. 800849e: 681b ldr r3, [r3, #0]
  19420. 80084a0: 4a2e ldr r2, [pc, #184] @ (800855c <HAL_DMA_Start_IT+0x204>)
  19421. 80084a2: 4293 cmp r3, r2
  19422. 80084a4: d036 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19423. 80084a6: 68fb ldr r3, [r7, #12]
  19424. 80084a8: 681b ldr r3, [r3, #0]
  19425. 80084aa: 4a2d ldr r2, [pc, #180] @ (8008560 <HAL_DMA_Start_IT+0x208>)
  19426. 80084ac: 4293 cmp r3, r2
  19427. 80084ae: d031 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19428. 80084b0: 68fb ldr r3, [r7, #12]
  19429. 80084b2: 681b ldr r3, [r3, #0]
  19430. 80084b4: 4a2b ldr r2, [pc, #172] @ (8008564 <HAL_DMA_Start_IT+0x20c>)
  19431. 80084b6: 4293 cmp r3, r2
  19432. 80084b8: d02c beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19433. 80084ba: 68fb ldr r3, [r7, #12]
  19434. 80084bc: 681b ldr r3, [r3, #0]
  19435. 80084be: 4a2a ldr r2, [pc, #168] @ (8008568 <HAL_DMA_Start_IT+0x210>)
  19436. 80084c0: 4293 cmp r3, r2
  19437. 80084c2: d027 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19438. 80084c4: 68fb ldr r3, [r7, #12]
  19439. 80084c6: 681b ldr r3, [r3, #0]
  19440. 80084c8: 4a28 ldr r2, [pc, #160] @ (800856c <HAL_DMA_Start_IT+0x214>)
  19441. 80084ca: 4293 cmp r3, r2
  19442. 80084cc: d022 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19443. 80084ce: 68fb ldr r3, [r7, #12]
  19444. 80084d0: 681b ldr r3, [r3, #0]
  19445. 80084d2: 4a27 ldr r2, [pc, #156] @ (8008570 <HAL_DMA_Start_IT+0x218>)
  19446. 80084d4: 4293 cmp r3, r2
  19447. 80084d6: d01d beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19448. 80084d8: 68fb ldr r3, [r7, #12]
  19449. 80084da: 681b ldr r3, [r3, #0]
  19450. 80084dc: 4a25 ldr r2, [pc, #148] @ (8008574 <HAL_DMA_Start_IT+0x21c>)
  19451. 80084de: 4293 cmp r3, r2
  19452. 80084e0: d018 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19453. 80084e2: 68fb ldr r3, [r7, #12]
  19454. 80084e4: 681b ldr r3, [r3, #0]
  19455. 80084e6: 4a24 ldr r2, [pc, #144] @ (8008578 <HAL_DMA_Start_IT+0x220>)
  19456. 80084e8: 4293 cmp r3, r2
  19457. 80084ea: d013 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19458. 80084ec: 68fb ldr r3, [r7, #12]
  19459. 80084ee: 681b ldr r3, [r3, #0]
  19460. 80084f0: 4a22 ldr r2, [pc, #136] @ (800857c <HAL_DMA_Start_IT+0x224>)
  19461. 80084f2: 4293 cmp r3, r2
  19462. 80084f4: d00e beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19463. 80084f6: 68fb ldr r3, [r7, #12]
  19464. 80084f8: 681b ldr r3, [r3, #0]
  19465. 80084fa: 4a21 ldr r2, [pc, #132] @ (8008580 <HAL_DMA_Start_IT+0x228>)
  19466. 80084fc: 4293 cmp r3, r2
  19467. 80084fe: d009 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19468. 8008500: 68fb ldr r3, [r7, #12]
  19469. 8008502: 681b ldr r3, [r3, #0]
  19470. 8008504: 4a1f ldr r2, [pc, #124] @ (8008584 <HAL_DMA_Start_IT+0x22c>)
  19471. 8008506: 4293 cmp r3, r2
  19472. 8008508: d004 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19473. 800850a: 68fb ldr r3, [r7, #12]
  19474. 800850c: 681b ldr r3, [r3, #0]
  19475. 800850e: 4a1e ldr r2, [pc, #120] @ (8008588 <HAL_DMA_Start_IT+0x230>)
  19476. 8008510: 4293 cmp r3, r2
  19477. 8008512: d101 bne.n 8008518 <HAL_DMA_Start_IT+0x1c0>
  19478. 8008514: 2301 movs r3, #1
  19479. 8008516: e000 b.n 800851a <HAL_DMA_Start_IT+0x1c2>
  19480. 8008518: 2300 movs r3, #0
  19481. 800851a: 2b00 cmp r3, #0
  19482. 800851c: d036 beq.n 800858c <HAL_DMA_Start_IT+0x234>
  19483. {
  19484. /* Enable Common interrupts*/
  19485. 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));
  19486. 800851e: 68fb ldr r3, [r7, #12]
  19487. 8008520: 681b ldr r3, [r3, #0]
  19488. 8008522: 681b ldr r3, [r3, #0]
  19489. 8008524: f023 021e bic.w r2, r3, #30
  19490. 8008528: 68fb ldr r3, [r7, #12]
  19491. 800852a: 681b ldr r3, [r3, #0]
  19492. 800852c: f042 0216 orr.w r2, r2, #22
  19493. 8008530: 601a str r2, [r3, #0]
  19494. if(hdma->XferHalfCpltCallback != NULL)
  19495. 8008532: 68fb ldr r3, [r7, #12]
  19496. 8008534: 6c1b ldr r3, [r3, #64] @ 0x40
  19497. 8008536: 2b00 cmp r3, #0
  19498. 8008538: d03e beq.n 80085b8 <HAL_DMA_Start_IT+0x260>
  19499. {
  19500. /* Enable Half Transfer IT if corresponding Callback is set */
  19501. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  19502. 800853a: 68fb ldr r3, [r7, #12]
  19503. 800853c: 681b ldr r3, [r3, #0]
  19504. 800853e: 681a ldr r2, [r3, #0]
  19505. 8008540: 68fb ldr r3, [r7, #12]
  19506. 8008542: 681b ldr r3, [r3, #0]
  19507. 8008544: f042 0208 orr.w r2, r2, #8
  19508. 8008548: 601a str r2, [r3, #0]
  19509. 800854a: e035 b.n 80085b8 <HAL_DMA_Start_IT+0x260>
  19510. 800854c: 40020010 .word 0x40020010
  19511. 8008550: 40020028 .word 0x40020028
  19512. 8008554: 40020040 .word 0x40020040
  19513. 8008558: 40020058 .word 0x40020058
  19514. 800855c: 40020070 .word 0x40020070
  19515. 8008560: 40020088 .word 0x40020088
  19516. 8008564: 400200a0 .word 0x400200a0
  19517. 8008568: 400200b8 .word 0x400200b8
  19518. 800856c: 40020410 .word 0x40020410
  19519. 8008570: 40020428 .word 0x40020428
  19520. 8008574: 40020440 .word 0x40020440
  19521. 8008578: 40020458 .word 0x40020458
  19522. 800857c: 40020470 .word 0x40020470
  19523. 8008580: 40020488 .word 0x40020488
  19524. 8008584: 400204a0 .word 0x400204a0
  19525. 8008588: 400204b8 .word 0x400204b8
  19526. }
  19527. }
  19528. else /* BDMA channel */
  19529. {
  19530. /* Enable Common interrupts */
  19531. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  19532. 800858c: 68fb ldr r3, [r7, #12]
  19533. 800858e: 681b ldr r3, [r3, #0]
  19534. 8008590: 681b ldr r3, [r3, #0]
  19535. 8008592: f023 020e bic.w r2, r3, #14
  19536. 8008596: 68fb ldr r3, [r7, #12]
  19537. 8008598: 681b ldr r3, [r3, #0]
  19538. 800859a: f042 020a orr.w r2, r2, #10
  19539. 800859e: 601a str r2, [r3, #0]
  19540. if(hdma->XferHalfCpltCallback != NULL)
  19541. 80085a0: 68fb ldr r3, [r7, #12]
  19542. 80085a2: 6c1b ldr r3, [r3, #64] @ 0x40
  19543. 80085a4: 2b00 cmp r3, #0
  19544. 80085a6: d007 beq.n 80085b8 <HAL_DMA_Start_IT+0x260>
  19545. {
  19546. /*Enable Half Transfer IT if corresponding Callback is set */
  19547. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  19548. 80085a8: 68fb ldr r3, [r7, #12]
  19549. 80085aa: 681b ldr r3, [r3, #0]
  19550. 80085ac: 681a ldr r2, [r3, #0]
  19551. 80085ae: 68fb ldr r3, [r7, #12]
  19552. 80085b0: 681b ldr r3, [r3, #0]
  19553. 80085b2: f042 0204 orr.w r2, r2, #4
  19554. 80085b6: 601a str r2, [r3, #0]
  19555. }
  19556. }
  19557. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  19558. 80085b8: 68fb ldr r3, [r7, #12]
  19559. 80085ba: 681b ldr r3, [r3, #0]
  19560. 80085bc: 4a83 ldr r2, [pc, #524] @ (80087cc <HAL_DMA_Start_IT+0x474>)
  19561. 80085be: 4293 cmp r3, r2
  19562. 80085c0: d072 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19563. 80085c2: 68fb ldr r3, [r7, #12]
  19564. 80085c4: 681b ldr r3, [r3, #0]
  19565. 80085c6: 4a82 ldr r2, [pc, #520] @ (80087d0 <HAL_DMA_Start_IT+0x478>)
  19566. 80085c8: 4293 cmp r3, r2
  19567. 80085ca: d06d beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19568. 80085cc: 68fb ldr r3, [r7, #12]
  19569. 80085ce: 681b ldr r3, [r3, #0]
  19570. 80085d0: 4a80 ldr r2, [pc, #512] @ (80087d4 <HAL_DMA_Start_IT+0x47c>)
  19571. 80085d2: 4293 cmp r3, r2
  19572. 80085d4: d068 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19573. 80085d6: 68fb ldr r3, [r7, #12]
  19574. 80085d8: 681b ldr r3, [r3, #0]
  19575. 80085da: 4a7f ldr r2, [pc, #508] @ (80087d8 <HAL_DMA_Start_IT+0x480>)
  19576. 80085dc: 4293 cmp r3, r2
  19577. 80085de: d063 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19578. 80085e0: 68fb ldr r3, [r7, #12]
  19579. 80085e2: 681b ldr r3, [r3, #0]
  19580. 80085e4: 4a7d ldr r2, [pc, #500] @ (80087dc <HAL_DMA_Start_IT+0x484>)
  19581. 80085e6: 4293 cmp r3, r2
  19582. 80085e8: d05e beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19583. 80085ea: 68fb ldr r3, [r7, #12]
  19584. 80085ec: 681b ldr r3, [r3, #0]
  19585. 80085ee: 4a7c ldr r2, [pc, #496] @ (80087e0 <HAL_DMA_Start_IT+0x488>)
  19586. 80085f0: 4293 cmp r3, r2
  19587. 80085f2: d059 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19588. 80085f4: 68fb ldr r3, [r7, #12]
  19589. 80085f6: 681b ldr r3, [r3, #0]
  19590. 80085f8: 4a7a ldr r2, [pc, #488] @ (80087e4 <HAL_DMA_Start_IT+0x48c>)
  19591. 80085fa: 4293 cmp r3, r2
  19592. 80085fc: d054 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19593. 80085fe: 68fb ldr r3, [r7, #12]
  19594. 8008600: 681b ldr r3, [r3, #0]
  19595. 8008602: 4a79 ldr r2, [pc, #484] @ (80087e8 <HAL_DMA_Start_IT+0x490>)
  19596. 8008604: 4293 cmp r3, r2
  19597. 8008606: d04f beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19598. 8008608: 68fb ldr r3, [r7, #12]
  19599. 800860a: 681b ldr r3, [r3, #0]
  19600. 800860c: 4a77 ldr r2, [pc, #476] @ (80087ec <HAL_DMA_Start_IT+0x494>)
  19601. 800860e: 4293 cmp r3, r2
  19602. 8008610: d04a beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19603. 8008612: 68fb ldr r3, [r7, #12]
  19604. 8008614: 681b ldr r3, [r3, #0]
  19605. 8008616: 4a76 ldr r2, [pc, #472] @ (80087f0 <HAL_DMA_Start_IT+0x498>)
  19606. 8008618: 4293 cmp r3, r2
  19607. 800861a: d045 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19608. 800861c: 68fb ldr r3, [r7, #12]
  19609. 800861e: 681b ldr r3, [r3, #0]
  19610. 8008620: 4a74 ldr r2, [pc, #464] @ (80087f4 <HAL_DMA_Start_IT+0x49c>)
  19611. 8008622: 4293 cmp r3, r2
  19612. 8008624: d040 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19613. 8008626: 68fb ldr r3, [r7, #12]
  19614. 8008628: 681b ldr r3, [r3, #0]
  19615. 800862a: 4a73 ldr r2, [pc, #460] @ (80087f8 <HAL_DMA_Start_IT+0x4a0>)
  19616. 800862c: 4293 cmp r3, r2
  19617. 800862e: d03b beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19618. 8008630: 68fb ldr r3, [r7, #12]
  19619. 8008632: 681b ldr r3, [r3, #0]
  19620. 8008634: 4a71 ldr r2, [pc, #452] @ (80087fc <HAL_DMA_Start_IT+0x4a4>)
  19621. 8008636: 4293 cmp r3, r2
  19622. 8008638: d036 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19623. 800863a: 68fb ldr r3, [r7, #12]
  19624. 800863c: 681b ldr r3, [r3, #0]
  19625. 800863e: 4a70 ldr r2, [pc, #448] @ (8008800 <HAL_DMA_Start_IT+0x4a8>)
  19626. 8008640: 4293 cmp r3, r2
  19627. 8008642: d031 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19628. 8008644: 68fb ldr r3, [r7, #12]
  19629. 8008646: 681b ldr r3, [r3, #0]
  19630. 8008648: 4a6e ldr r2, [pc, #440] @ (8008804 <HAL_DMA_Start_IT+0x4ac>)
  19631. 800864a: 4293 cmp r3, r2
  19632. 800864c: d02c beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19633. 800864e: 68fb ldr r3, [r7, #12]
  19634. 8008650: 681b ldr r3, [r3, #0]
  19635. 8008652: 4a6d ldr r2, [pc, #436] @ (8008808 <HAL_DMA_Start_IT+0x4b0>)
  19636. 8008654: 4293 cmp r3, r2
  19637. 8008656: d027 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19638. 8008658: 68fb ldr r3, [r7, #12]
  19639. 800865a: 681b ldr r3, [r3, #0]
  19640. 800865c: 4a6b ldr r2, [pc, #428] @ (800880c <HAL_DMA_Start_IT+0x4b4>)
  19641. 800865e: 4293 cmp r3, r2
  19642. 8008660: d022 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19643. 8008662: 68fb ldr r3, [r7, #12]
  19644. 8008664: 681b ldr r3, [r3, #0]
  19645. 8008666: 4a6a ldr r2, [pc, #424] @ (8008810 <HAL_DMA_Start_IT+0x4b8>)
  19646. 8008668: 4293 cmp r3, r2
  19647. 800866a: d01d beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19648. 800866c: 68fb ldr r3, [r7, #12]
  19649. 800866e: 681b ldr r3, [r3, #0]
  19650. 8008670: 4a68 ldr r2, [pc, #416] @ (8008814 <HAL_DMA_Start_IT+0x4bc>)
  19651. 8008672: 4293 cmp r3, r2
  19652. 8008674: d018 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19653. 8008676: 68fb ldr r3, [r7, #12]
  19654. 8008678: 681b ldr r3, [r3, #0]
  19655. 800867a: 4a67 ldr r2, [pc, #412] @ (8008818 <HAL_DMA_Start_IT+0x4c0>)
  19656. 800867c: 4293 cmp r3, r2
  19657. 800867e: d013 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19658. 8008680: 68fb ldr r3, [r7, #12]
  19659. 8008682: 681b ldr r3, [r3, #0]
  19660. 8008684: 4a65 ldr r2, [pc, #404] @ (800881c <HAL_DMA_Start_IT+0x4c4>)
  19661. 8008686: 4293 cmp r3, r2
  19662. 8008688: d00e beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19663. 800868a: 68fb ldr r3, [r7, #12]
  19664. 800868c: 681b ldr r3, [r3, #0]
  19665. 800868e: 4a64 ldr r2, [pc, #400] @ (8008820 <HAL_DMA_Start_IT+0x4c8>)
  19666. 8008690: 4293 cmp r3, r2
  19667. 8008692: d009 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19668. 8008694: 68fb ldr r3, [r7, #12]
  19669. 8008696: 681b ldr r3, [r3, #0]
  19670. 8008698: 4a62 ldr r2, [pc, #392] @ (8008824 <HAL_DMA_Start_IT+0x4cc>)
  19671. 800869a: 4293 cmp r3, r2
  19672. 800869c: d004 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19673. 800869e: 68fb ldr r3, [r7, #12]
  19674. 80086a0: 681b ldr r3, [r3, #0]
  19675. 80086a2: 4a61 ldr r2, [pc, #388] @ (8008828 <HAL_DMA_Start_IT+0x4d0>)
  19676. 80086a4: 4293 cmp r3, r2
  19677. 80086a6: d101 bne.n 80086ac <HAL_DMA_Start_IT+0x354>
  19678. 80086a8: 2301 movs r3, #1
  19679. 80086aa: e000 b.n 80086ae <HAL_DMA_Start_IT+0x356>
  19680. 80086ac: 2300 movs r3, #0
  19681. 80086ae: 2b00 cmp r3, #0
  19682. 80086b0: d01a beq.n 80086e8 <HAL_DMA_Start_IT+0x390>
  19683. {
  19684. /* Check if DMAMUX Synchronization is enabled */
  19685. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  19686. 80086b2: 68fb ldr r3, [r7, #12]
  19687. 80086b4: 6e1b ldr r3, [r3, #96] @ 0x60
  19688. 80086b6: 681b ldr r3, [r3, #0]
  19689. 80086b8: f403 3380 and.w r3, r3, #65536 @ 0x10000
  19690. 80086bc: 2b00 cmp r3, #0
  19691. 80086be: d007 beq.n 80086d0 <HAL_DMA_Start_IT+0x378>
  19692. {
  19693. /* Enable DMAMUX sync overrun IT*/
  19694. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  19695. 80086c0: 68fb ldr r3, [r7, #12]
  19696. 80086c2: 6e1b ldr r3, [r3, #96] @ 0x60
  19697. 80086c4: 681a ldr r2, [r3, #0]
  19698. 80086c6: 68fb ldr r3, [r7, #12]
  19699. 80086c8: 6e1b ldr r3, [r3, #96] @ 0x60
  19700. 80086ca: f442 7280 orr.w r2, r2, #256 @ 0x100
  19701. 80086ce: 601a str r2, [r3, #0]
  19702. }
  19703. if(hdma->DMAmuxRequestGen != 0U)
  19704. 80086d0: 68fb ldr r3, [r7, #12]
  19705. 80086d2: 6edb ldr r3, [r3, #108] @ 0x6c
  19706. 80086d4: 2b00 cmp r3, #0
  19707. 80086d6: d007 beq.n 80086e8 <HAL_DMA_Start_IT+0x390>
  19708. {
  19709. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  19710. /* enable the request gen overrun IT */
  19711. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  19712. 80086d8: 68fb ldr r3, [r7, #12]
  19713. 80086da: 6edb ldr r3, [r3, #108] @ 0x6c
  19714. 80086dc: 681a ldr r2, [r3, #0]
  19715. 80086de: 68fb ldr r3, [r7, #12]
  19716. 80086e0: 6edb ldr r3, [r3, #108] @ 0x6c
  19717. 80086e2: f442 7280 orr.w r2, r2, #256 @ 0x100
  19718. 80086e6: 601a str r2, [r3, #0]
  19719. }
  19720. }
  19721. /* Enable the Peripheral */
  19722. __HAL_DMA_ENABLE(hdma);
  19723. 80086e8: 68fb ldr r3, [r7, #12]
  19724. 80086ea: 681b ldr r3, [r3, #0]
  19725. 80086ec: 4a37 ldr r2, [pc, #220] @ (80087cc <HAL_DMA_Start_IT+0x474>)
  19726. 80086ee: 4293 cmp r3, r2
  19727. 80086f0: d04a beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19728. 80086f2: 68fb ldr r3, [r7, #12]
  19729. 80086f4: 681b ldr r3, [r3, #0]
  19730. 80086f6: 4a36 ldr r2, [pc, #216] @ (80087d0 <HAL_DMA_Start_IT+0x478>)
  19731. 80086f8: 4293 cmp r3, r2
  19732. 80086fa: d045 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19733. 80086fc: 68fb ldr r3, [r7, #12]
  19734. 80086fe: 681b ldr r3, [r3, #0]
  19735. 8008700: 4a34 ldr r2, [pc, #208] @ (80087d4 <HAL_DMA_Start_IT+0x47c>)
  19736. 8008702: 4293 cmp r3, r2
  19737. 8008704: d040 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19738. 8008706: 68fb ldr r3, [r7, #12]
  19739. 8008708: 681b ldr r3, [r3, #0]
  19740. 800870a: 4a33 ldr r2, [pc, #204] @ (80087d8 <HAL_DMA_Start_IT+0x480>)
  19741. 800870c: 4293 cmp r3, r2
  19742. 800870e: d03b beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19743. 8008710: 68fb ldr r3, [r7, #12]
  19744. 8008712: 681b ldr r3, [r3, #0]
  19745. 8008714: 4a31 ldr r2, [pc, #196] @ (80087dc <HAL_DMA_Start_IT+0x484>)
  19746. 8008716: 4293 cmp r3, r2
  19747. 8008718: d036 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19748. 800871a: 68fb ldr r3, [r7, #12]
  19749. 800871c: 681b ldr r3, [r3, #0]
  19750. 800871e: 4a30 ldr r2, [pc, #192] @ (80087e0 <HAL_DMA_Start_IT+0x488>)
  19751. 8008720: 4293 cmp r3, r2
  19752. 8008722: d031 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19753. 8008724: 68fb ldr r3, [r7, #12]
  19754. 8008726: 681b ldr r3, [r3, #0]
  19755. 8008728: 4a2e ldr r2, [pc, #184] @ (80087e4 <HAL_DMA_Start_IT+0x48c>)
  19756. 800872a: 4293 cmp r3, r2
  19757. 800872c: d02c beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19758. 800872e: 68fb ldr r3, [r7, #12]
  19759. 8008730: 681b ldr r3, [r3, #0]
  19760. 8008732: 4a2d ldr r2, [pc, #180] @ (80087e8 <HAL_DMA_Start_IT+0x490>)
  19761. 8008734: 4293 cmp r3, r2
  19762. 8008736: d027 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19763. 8008738: 68fb ldr r3, [r7, #12]
  19764. 800873a: 681b ldr r3, [r3, #0]
  19765. 800873c: 4a2b ldr r2, [pc, #172] @ (80087ec <HAL_DMA_Start_IT+0x494>)
  19766. 800873e: 4293 cmp r3, r2
  19767. 8008740: d022 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19768. 8008742: 68fb ldr r3, [r7, #12]
  19769. 8008744: 681b ldr r3, [r3, #0]
  19770. 8008746: 4a2a ldr r2, [pc, #168] @ (80087f0 <HAL_DMA_Start_IT+0x498>)
  19771. 8008748: 4293 cmp r3, r2
  19772. 800874a: d01d beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19773. 800874c: 68fb ldr r3, [r7, #12]
  19774. 800874e: 681b ldr r3, [r3, #0]
  19775. 8008750: 4a28 ldr r2, [pc, #160] @ (80087f4 <HAL_DMA_Start_IT+0x49c>)
  19776. 8008752: 4293 cmp r3, r2
  19777. 8008754: d018 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19778. 8008756: 68fb ldr r3, [r7, #12]
  19779. 8008758: 681b ldr r3, [r3, #0]
  19780. 800875a: 4a27 ldr r2, [pc, #156] @ (80087f8 <HAL_DMA_Start_IT+0x4a0>)
  19781. 800875c: 4293 cmp r3, r2
  19782. 800875e: d013 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19783. 8008760: 68fb ldr r3, [r7, #12]
  19784. 8008762: 681b ldr r3, [r3, #0]
  19785. 8008764: 4a25 ldr r2, [pc, #148] @ (80087fc <HAL_DMA_Start_IT+0x4a4>)
  19786. 8008766: 4293 cmp r3, r2
  19787. 8008768: d00e beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19788. 800876a: 68fb ldr r3, [r7, #12]
  19789. 800876c: 681b ldr r3, [r3, #0]
  19790. 800876e: 4a24 ldr r2, [pc, #144] @ (8008800 <HAL_DMA_Start_IT+0x4a8>)
  19791. 8008770: 4293 cmp r3, r2
  19792. 8008772: d009 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19793. 8008774: 68fb ldr r3, [r7, #12]
  19794. 8008776: 681b ldr r3, [r3, #0]
  19795. 8008778: 4a22 ldr r2, [pc, #136] @ (8008804 <HAL_DMA_Start_IT+0x4ac>)
  19796. 800877a: 4293 cmp r3, r2
  19797. 800877c: d004 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19798. 800877e: 68fb ldr r3, [r7, #12]
  19799. 8008780: 681b ldr r3, [r3, #0]
  19800. 8008782: 4a21 ldr r2, [pc, #132] @ (8008808 <HAL_DMA_Start_IT+0x4b0>)
  19801. 8008784: 4293 cmp r3, r2
  19802. 8008786: d108 bne.n 800879a <HAL_DMA_Start_IT+0x442>
  19803. 8008788: 68fb ldr r3, [r7, #12]
  19804. 800878a: 681b ldr r3, [r3, #0]
  19805. 800878c: 681a ldr r2, [r3, #0]
  19806. 800878e: 68fb ldr r3, [r7, #12]
  19807. 8008790: 681b ldr r3, [r3, #0]
  19808. 8008792: f042 0201 orr.w r2, r2, #1
  19809. 8008796: 601a str r2, [r3, #0]
  19810. 8008798: e012 b.n 80087c0 <HAL_DMA_Start_IT+0x468>
  19811. 800879a: 68fb ldr r3, [r7, #12]
  19812. 800879c: 681b ldr r3, [r3, #0]
  19813. 800879e: 681a ldr r2, [r3, #0]
  19814. 80087a0: 68fb ldr r3, [r7, #12]
  19815. 80087a2: 681b ldr r3, [r3, #0]
  19816. 80087a4: f042 0201 orr.w r2, r2, #1
  19817. 80087a8: 601a str r2, [r3, #0]
  19818. 80087aa: e009 b.n 80087c0 <HAL_DMA_Start_IT+0x468>
  19819. }
  19820. else
  19821. {
  19822. /* Set the error code to busy */
  19823. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  19824. 80087ac: 68fb ldr r3, [r7, #12]
  19825. 80087ae: f44f 6200 mov.w r2, #2048 @ 0x800
  19826. 80087b2: 655a str r2, [r3, #84] @ 0x54
  19827. /* Process unlocked */
  19828. __HAL_UNLOCK(hdma);
  19829. 80087b4: 68fb ldr r3, [r7, #12]
  19830. 80087b6: 2200 movs r2, #0
  19831. 80087b8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19832. /* Return error status */
  19833. status = HAL_ERROR;
  19834. 80087bc: 2301 movs r3, #1
  19835. 80087be: 75fb strb r3, [r7, #23]
  19836. }
  19837. return status;
  19838. 80087c0: 7dfb ldrb r3, [r7, #23]
  19839. }
  19840. 80087c2: 4618 mov r0, r3
  19841. 80087c4: 3718 adds r7, #24
  19842. 80087c6: 46bd mov sp, r7
  19843. 80087c8: bd80 pop {r7, pc}
  19844. 80087ca: bf00 nop
  19845. 80087cc: 40020010 .word 0x40020010
  19846. 80087d0: 40020028 .word 0x40020028
  19847. 80087d4: 40020040 .word 0x40020040
  19848. 80087d8: 40020058 .word 0x40020058
  19849. 80087dc: 40020070 .word 0x40020070
  19850. 80087e0: 40020088 .word 0x40020088
  19851. 80087e4: 400200a0 .word 0x400200a0
  19852. 80087e8: 400200b8 .word 0x400200b8
  19853. 80087ec: 40020410 .word 0x40020410
  19854. 80087f0: 40020428 .word 0x40020428
  19855. 80087f4: 40020440 .word 0x40020440
  19856. 80087f8: 40020458 .word 0x40020458
  19857. 80087fc: 40020470 .word 0x40020470
  19858. 8008800: 40020488 .word 0x40020488
  19859. 8008804: 400204a0 .word 0x400204a0
  19860. 8008808: 400204b8 .word 0x400204b8
  19861. 800880c: 58025408 .word 0x58025408
  19862. 8008810: 5802541c .word 0x5802541c
  19863. 8008814: 58025430 .word 0x58025430
  19864. 8008818: 58025444 .word 0x58025444
  19865. 800881c: 58025458 .word 0x58025458
  19866. 8008820: 5802546c .word 0x5802546c
  19867. 8008824: 58025480 .word 0x58025480
  19868. 8008828: 58025494 .word 0x58025494
  19869. 0800882c <HAL_DMA_Abort>:
  19870. * and the Stream will be effectively disabled only after the transfer of
  19871. * this single data is finished.
  19872. * @retval HAL status
  19873. */
  19874. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  19875. {
  19876. 800882c: b580 push {r7, lr}
  19877. 800882e: b086 sub sp, #24
  19878. 8008830: af00 add r7, sp, #0
  19879. 8008832: 6078 str r0, [r7, #4]
  19880. /* calculate DMA base and stream number */
  19881. DMA_Base_Registers *regs_dma;
  19882. BDMA_Base_Registers *regs_bdma;
  19883. const __IO uint32_t *enableRegister;
  19884. uint32_t tickstart = HAL_GetTick();
  19885. 8008834: f7fc fe98 bl 8005568 <HAL_GetTick>
  19886. 8008838: 6138 str r0, [r7, #16]
  19887. /* Check the DMA peripheral handle */
  19888. if(hdma == NULL)
  19889. 800883a: 687b ldr r3, [r7, #4]
  19890. 800883c: 2b00 cmp r3, #0
  19891. 800883e: d101 bne.n 8008844 <HAL_DMA_Abort+0x18>
  19892. {
  19893. return HAL_ERROR;
  19894. 8008840: 2301 movs r3, #1
  19895. 8008842: e2dc b.n 8008dfe <HAL_DMA_Abort+0x5d2>
  19896. }
  19897. /* Check the DMA peripheral state */
  19898. if(hdma->State != HAL_DMA_STATE_BUSY)
  19899. 8008844: 687b ldr r3, [r7, #4]
  19900. 8008846: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  19901. 800884a: b2db uxtb r3, r3
  19902. 800884c: 2b02 cmp r3, #2
  19903. 800884e: d008 beq.n 8008862 <HAL_DMA_Abort+0x36>
  19904. {
  19905. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  19906. 8008850: 687b ldr r3, [r7, #4]
  19907. 8008852: 2280 movs r2, #128 @ 0x80
  19908. 8008854: 655a str r2, [r3, #84] @ 0x54
  19909. /* Process Unlocked */
  19910. __HAL_UNLOCK(hdma);
  19911. 8008856: 687b ldr r3, [r7, #4]
  19912. 8008858: 2200 movs r2, #0
  19913. 800885a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19914. return HAL_ERROR;
  19915. 800885e: 2301 movs r3, #1
  19916. 8008860: e2cd b.n 8008dfe <HAL_DMA_Abort+0x5d2>
  19917. }
  19918. else
  19919. {
  19920. /* Disable all the transfer interrupts */
  19921. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19922. 8008862: 687b ldr r3, [r7, #4]
  19923. 8008864: 681b ldr r3, [r3, #0]
  19924. 8008866: 4a76 ldr r2, [pc, #472] @ (8008a40 <HAL_DMA_Abort+0x214>)
  19925. 8008868: 4293 cmp r3, r2
  19926. 800886a: d04a beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19927. 800886c: 687b ldr r3, [r7, #4]
  19928. 800886e: 681b ldr r3, [r3, #0]
  19929. 8008870: 4a74 ldr r2, [pc, #464] @ (8008a44 <HAL_DMA_Abort+0x218>)
  19930. 8008872: 4293 cmp r3, r2
  19931. 8008874: d045 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19932. 8008876: 687b ldr r3, [r7, #4]
  19933. 8008878: 681b ldr r3, [r3, #0]
  19934. 800887a: 4a73 ldr r2, [pc, #460] @ (8008a48 <HAL_DMA_Abort+0x21c>)
  19935. 800887c: 4293 cmp r3, r2
  19936. 800887e: d040 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19937. 8008880: 687b ldr r3, [r7, #4]
  19938. 8008882: 681b ldr r3, [r3, #0]
  19939. 8008884: 4a71 ldr r2, [pc, #452] @ (8008a4c <HAL_DMA_Abort+0x220>)
  19940. 8008886: 4293 cmp r3, r2
  19941. 8008888: d03b beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19942. 800888a: 687b ldr r3, [r7, #4]
  19943. 800888c: 681b ldr r3, [r3, #0]
  19944. 800888e: 4a70 ldr r2, [pc, #448] @ (8008a50 <HAL_DMA_Abort+0x224>)
  19945. 8008890: 4293 cmp r3, r2
  19946. 8008892: d036 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19947. 8008894: 687b ldr r3, [r7, #4]
  19948. 8008896: 681b ldr r3, [r3, #0]
  19949. 8008898: 4a6e ldr r2, [pc, #440] @ (8008a54 <HAL_DMA_Abort+0x228>)
  19950. 800889a: 4293 cmp r3, r2
  19951. 800889c: d031 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19952. 800889e: 687b ldr r3, [r7, #4]
  19953. 80088a0: 681b ldr r3, [r3, #0]
  19954. 80088a2: 4a6d ldr r2, [pc, #436] @ (8008a58 <HAL_DMA_Abort+0x22c>)
  19955. 80088a4: 4293 cmp r3, r2
  19956. 80088a6: d02c beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19957. 80088a8: 687b ldr r3, [r7, #4]
  19958. 80088aa: 681b ldr r3, [r3, #0]
  19959. 80088ac: 4a6b ldr r2, [pc, #428] @ (8008a5c <HAL_DMA_Abort+0x230>)
  19960. 80088ae: 4293 cmp r3, r2
  19961. 80088b0: d027 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19962. 80088b2: 687b ldr r3, [r7, #4]
  19963. 80088b4: 681b ldr r3, [r3, #0]
  19964. 80088b6: 4a6a ldr r2, [pc, #424] @ (8008a60 <HAL_DMA_Abort+0x234>)
  19965. 80088b8: 4293 cmp r3, r2
  19966. 80088ba: d022 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19967. 80088bc: 687b ldr r3, [r7, #4]
  19968. 80088be: 681b ldr r3, [r3, #0]
  19969. 80088c0: 4a68 ldr r2, [pc, #416] @ (8008a64 <HAL_DMA_Abort+0x238>)
  19970. 80088c2: 4293 cmp r3, r2
  19971. 80088c4: d01d beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19972. 80088c6: 687b ldr r3, [r7, #4]
  19973. 80088c8: 681b ldr r3, [r3, #0]
  19974. 80088ca: 4a67 ldr r2, [pc, #412] @ (8008a68 <HAL_DMA_Abort+0x23c>)
  19975. 80088cc: 4293 cmp r3, r2
  19976. 80088ce: d018 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19977. 80088d0: 687b ldr r3, [r7, #4]
  19978. 80088d2: 681b ldr r3, [r3, #0]
  19979. 80088d4: 4a65 ldr r2, [pc, #404] @ (8008a6c <HAL_DMA_Abort+0x240>)
  19980. 80088d6: 4293 cmp r3, r2
  19981. 80088d8: d013 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19982. 80088da: 687b ldr r3, [r7, #4]
  19983. 80088dc: 681b ldr r3, [r3, #0]
  19984. 80088de: 4a64 ldr r2, [pc, #400] @ (8008a70 <HAL_DMA_Abort+0x244>)
  19985. 80088e0: 4293 cmp r3, r2
  19986. 80088e2: d00e beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19987. 80088e4: 687b ldr r3, [r7, #4]
  19988. 80088e6: 681b ldr r3, [r3, #0]
  19989. 80088e8: 4a62 ldr r2, [pc, #392] @ (8008a74 <HAL_DMA_Abort+0x248>)
  19990. 80088ea: 4293 cmp r3, r2
  19991. 80088ec: d009 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19992. 80088ee: 687b ldr r3, [r7, #4]
  19993. 80088f0: 681b ldr r3, [r3, #0]
  19994. 80088f2: 4a61 ldr r2, [pc, #388] @ (8008a78 <HAL_DMA_Abort+0x24c>)
  19995. 80088f4: 4293 cmp r3, r2
  19996. 80088f6: d004 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19997. 80088f8: 687b ldr r3, [r7, #4]
  19998. 80088fa: 681b ldr r3, [r3, #0]
  19999. 80088fc: 4a5f ldr r2, [pc, #380] @ (8008a7c <HAL_DMA_Abort+0x250>)
  20000. 80088fe: 4293 cmp r3, r2
  20001. 8008900: d101 bne.n 8008906 <HAL_DMA_Abort+0xda>
  20002. 8008902: 2301 movs r3, #1
  20003. 8008904: e000 b.n 8008908 <HAL_DMA_Abort+0xdc>
  20004. 8008906: 2300 movs r3, #0
  20005. 8008908: 2b00 cmp r3, #0
  20006. 800890a: d013 beq.n 8008934 <HAL_DMA_Abort+0x108>
  20007. {
  20008. /* Disable DMA All Interrupts */
  20009. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  20010. 800890c: 687b ldr r3, [r7, #4]
  20011. 800890e: 681b ldr r3, [r3, #0]
  20012. 8008910: 681a ldr r2, [r3, #0]
  20013. 8008912: 687b ldr r3, [r7, #4]
  20014. 8008914: 681b ldr r3, [r3, #0]
  20015. 8008916: f022 021e bic.w r2, r2, #30
  20016. 800891a: 601a str r2, [r3, #0]
  20017. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  20018. 800891c: 687b ldr r3, [r7, #4]
  20019. 800891e: 681b ldr r3, [r3, #0]
  20020. 8008920: 695a ldr r2, [r3, #20]
  20021. 8008922: 687b ldr r3, [r7, #4]
  20022. 8008924: 681b ldr r3, [r3, #0]
  20023. 8008926: f022 0280 bic.w r2, r2, #128 @ 0x80
  20024. 800892a: 615a str r2, [r3, #20]
  20025. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  20026. 800892c: 687b ldr r3, [r7, #4]
  20027. 800892e: 681b ldr r3, [r3, #0]
  20028. 8008930: 617b str r3, [r7, #20]
  20029. 8008932: e00a b.n 800894a <HAL_DMA_Abort+0x11e>
  20030. }
  20031. else /* BDMA channel */
  20032. {
  20033. /* Disable DMA All Interrupts */
  20034. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  20035. 8008934: 687b ldr r3, [r7, #4]
  20036. 8008936: 681b ldr r3, [r3, #0]
  20037. 8008938: 681a ldr r2, [r3, #0]
  20038. 800893a: 687b ldr r3, [r7, #4]
  20039. 800893c: 681b ldr r3, [r3, #0]
  20040. 800893e: f022 020e bic.w r2, r2, #14
  20041. 8008942: 601a str r2, [r3, #0]
  20042. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  20043. 8008944: 687b ldr r3, [r7, #4]
  20044. 8008946: 681b ldr r3, [r3, #0]
  20045. 8008948: 617b str r3, [r7, #20]
  20046. }
  20047. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20048. 800894a: 687b ldr r3, [r7, #4]
  20049. 800894c: 681b ldr r3, [r3, #0]
  20050. 800894e: 4a3c ldr r2, [pc, #240] @ (8008a40 <HAL_DMA_Abort+0x214>)
  20051. 8008950: 4293 cmp r3, r2
  20052. 8008952: d072 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20053. 8008954: 687b ldr r3, [r7, #4]
  20054. 8008956: 681b ldr r3, [r3, #0]
  20055. 8008958: 4a3a ldr r2, [pc, #232] @ (8008a44 <HAL_DMA_Abort+0x218>)
  20056. 800895a: 4293 cmp r3, r2
  20057. 800895c: d06d beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20058. 800895e: 687b ldr r3, [r7, #4]
  20059. 8008960: 681b ldr r3, [r3, #0]
  20060. 8008962: 4a39 ldr r2, [pc, #228] @ (8008a48 <HAL_DMA_Abort+0x21c>)
  20061. 8008964: 4293 cmp r3, r2
  20062. 8008966: d068 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20063. 8008968: 687b ldr r3, [r7, #4]
  20064. 800896a: 681b ldr r3, [r3, #0]
  20065. 800896c: 4a37 ldr r2, [pc, #220] @ (8008a4c <HAL_DMA_Abort+0x220>)
  20066. 800896e: 4293 cmp r3, r2
  20067. 8008970: d063 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20068. 8008972: 687b ldr r3, [r7, #4]
  20069. 8008974: 681b ldr r3, [r3, #0]
  20070. 8008976: 4a36 ldr r2, [pc, #216] @ (8008a50 <HAL_DMA_Abort+0x224>)
  20071. 8008978: 4293 cmp r3, r2
  20072. 800897a: d05e beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20073. 800897c: 687b ldr r3, [r7, #4]
  20074. 800897e: 681b ldr r3, [r3, #0]
  20075. 8008980: 4a34 ldr r2, [pc, #208] @ (8008a54 <HAL_DMA_Abort+0x228>)
  20076. 8008982: 4293 cmp r3, r2
  20077. 8008984: d059 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20078. 8008986: 687b ldr r3, [r7, #4]
  20079. 8008988: 681b ldr r3, [r3, #0]
  20080. 800898a: 4a33 ldr r2, [pc, #204] @ (8008a58 <HAL_DMA_Abort+0x22c>)
  20081. 800898c: 4293 cmp r3, r2
  20082. 800898e: d054 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20083. 8008990: 687b ldr r3, [r7, #4]
  20084. 8008992: 681b ldr r3, [r3, #0]
  20085. 8008994: 4a31 ldr r2, [pc, #196] @ (8008a5c <HAL_DMA_Abort+0x230>)
  20086. 8008996: 4293 cmp r3, r2
  20087. 8008998: d04f beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20088. 800899a: 687b ldr r3, [r7, #4]
  20089. 800899c: 681b ldr r3, [r3, #0]
  20090. 800899e: 4a30 ldr r2, [pc, #192] @ (8008a60 <HAL_DMA_Abort+0x234>)
  20091. 80089a0: 4293 cmp r3, r2
  20092. 80089a2: d04a beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20093. 80089a4: 687b ldr r3, [r7, #4]
  20094. 80089a6: 681b ldr r3, [r3, #0]
  20095. 80089a8: 4a2e ldr r2, [pc, #184] @ (8008a64 <HAL_DMA_Abort+0x238>)
  20096. 80089aa: 4293 cmp r3, r2
  20097. 80089ac: d045 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20098. 80089ae: 687b ldr r3, [r7, #4]
  20099. 80089b0: 681b ldr r3, [r3, #0]
  20100. 80089b2: 4a2d ldr r2, [pc, #180] @ (8008a68 <HAL_DMA_Abort+0x23c>)
  20101. 80089b4: 4293 cmp r3, r2
  20102. 80089b6: d040 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20103. 80089b8: 687b ldr r3, [r7, #4]
  20104. 80089ba: 681b ldr r3, [r3, #0]
  20105. 80089bc: 4a2b ldr r2, [pc, #172] @ (8008a6c <HAL_DMA_Abort+0x240>)
  20106. 80089be: 4293 cmp r3, r2
  20107. 80089c0: d03b beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20108. 80089c2: 687b ldr r3, [r7, #4]
  20109. 80089c4: 681b ldr r3, [r3, #0]
  20110. 80089c6: 4a2a ldr r2, [pc, #168] @ (8008a70 <HAL_DMA_Abort+0x244>)
  20111. 80089c8: 4293 cmp r3, r2
  20112. 80089ca: d036 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20113. 80089cc: 687b ldr r3, [r7, #4]
  20114. 80089ce: 681b ldr r3, [r3, #0]
  20115. 80089d0: 4a28 ldr r2, [pc, #160] @ (8008a74 <HAL_DMA_Abort+0x248>)
  20116. 80089d2: 4293 cmp r3, r2
  20117. 80089d4: d031 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20118. 80089d6: 687b ldr r3, [r7, #4]
  20119. 80089d8: 681b ldr r3, [r3, #0]
  20120. 80089da: 4a27 ldr r2, [pc, #156] @ (8008a78 <HAL_DMA_Abort+0x24c>)
  20121. 80089dc: 4293 cmp r3, r2
  20122. 80089de: d02c beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20123. 80089e0: 687b ldr r3, [r7, #4]
  20124. 80089e2: 681b ldr r3, [r3, #0]
  20125. 80089e4: 4a25 ldr r2, [pc, #148] @ (8008a7c <HAL_DMA_Abort+0x250>)
  20126. 80089e6: 4293 cmp r3, r2
  20127. 80089e8: d027 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20128. 80089ea: 687b ldr r3, [r7, #4]
  20129. 80089ec: 681b ldr r3, [r3, #0]
  20130. 80089ee: 4a24 ldr r2, [pc, #144] @ (8008a80 <HAL_DMA_Abort+0x254>)
  20131. 80089f0: 4293 cmp r3, r2
  20132. 80089f2: d022 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20133. 80089f4: 687b ldr r3, [r7, #4]
  20134. 80089f6: 681b ldr r3, [r3, #0]
  20135. 80089f8: 4a22 ldr r2, [pc, #136] @ (8008a84 <HAL_DMA_Abort+0x258>)
  20136. 80089fa: 4293 cmp r3, r2
  20137. 80089fc: d01d beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20138. 80089fe: 687b ldr r3, [r7, #4]
  20139. 8008a00: 681b ldr r3, [r3, #0]
  20140. 8008a02: 4a21 ldr r2, [pc, #132] @ (8008a88 <HAL_DMA_Abort+0x25c>)
  20141. 8008a04: 4293 cmp r3, r2
  20142. 8008a06: d018 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20143. 8008a08: 687b ldr r3, [r7, #4]
  20144. 8008a0a: 681b ldr r3, [r3, #0]
  20145. 8008a0c: 4a1f ldr r2, [pc, #124] @ (8008a8c <HAL_DMA_Abort+0x260>)
  20146. 8008a0e: 4293 cmp r3, r2
  20147. 8008a10: d013 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20148. 8008a12: 687b ldr r3, [r7, #4]
  20149. 8008a14: 681b ldr r3, [r3, #0]
  20150. 8008a16: 4a1e ldr r2, [pc, #120] @ (8008a90 <HAL_DMA_Abort+0x264>)
  20151. 8008a18: 4293 cmp r3, r2
  20152. 8008a1a: d00e beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20153. 8008a1c: 687b ldr r3, [r7, #4]
  20154. 8008a1e: 681b ldr r3, [r3, #0]
  20155. 8008a20: 4a1c ldr r2, [pc, #112] @ (8008a94 <HAL_DMA_Abort+0x268>)
  20156. 8008a22: 4293 cmp r3, r2
  20157. 8008a24: d009 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20158. 8008a26: 687b ldr r3, [r7, #4]
  20159. 8008a28: 681b ldr r3, [r3, #0]
  20160. 8008a2a: 4a1b ldr r2, [pc, #108] @ (8008a98 <HAL_DMA_Abort+0x26c>)
  20161. 8008a2c: 4293 cmp r3, r2
  20162. 8008a2e: d004 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20163. 8008a30: 687b ldr r3, [r7, #4]
  20164. 8008a32: 681b ldr r3, [r3, #0]
  20165. 8008a34: 4a19 ldr r2, [pc, #100] @ (8008a9c <HAL_DMA_Abort+0x270>)
  20166. 8008a36: 4293 cmp r3, r2
  20167. 8008a38: d132 bne.n 8008aa0 <HAL_DMA_Abort+0x274>
  20168. 8008a3a: 2301 movs r3, #1
  20169. 8008a3c: e031 b.n 8008aa2 <HAL_DMA_Abort+0x276>
  20170. 8008a3e: bf00 nop
  20171. 8008a40: 40020010 .word 0x40020010
  20172. 8008a44: 40020028 .word 0x40020028
  20173. 8008a48: 40020040 .word 0x40020040
  20174. 8008a4c: 40020058 .word 0x40020058
  20175. 8008a50: 40020070 .word 0x40020070
  20176. 8008a54: 40020088 .word 0x40020088
  20177. 8008a58: 400200a0 .word 0x400200a0
  20178. 8008a5c: 400200b8 .word 0x400200b8
  20179. 8008a60: 40020410 .word 0x40020410
  20180. 8008a64: 40020428 .word 0x40020428
  20181. 8008a68: 40020440 .word 0x40020440
  20182. 8008a6c: 40020458 .word 0x40020458
  20183. 8008a70: 40020470 .word 0x40020470
  20184. 8008a74: 40020488 .word 0x40020488
  20185. 8008a78: 400204a0 .word 0x400204a0
  20186. 8008a7c: 400204b8 .word 0x400204b8
  20187. 8008a80: 58025408 .word 0x58025408
  20188. 8008a84: 5802541c .word 0x5802541c
  20189. 8008a88: 58025430 .word 0x58025430
  20190. 8008a8c: 58025444 .word 0x58025444
  20191. 8008a90: 58025458 .word 0x58025458
  20192. 8008a94: 5802546c .word 0x5802546c
  20193. 8008a98: 58025480 .word 0x58025480
  20194. 8008a9c: 58025494 .word 0x58025494
  20195. 8008aa0: 2300 movs r3, #0
  20196. 8008aa2: 2b00 cmp r3, #0
  20197. 8008aa4: d007 beq.n 8008ab6 <HAL_DMA_Abort+0x28a>
  20198. {
  20199. /* disable the DMAMUX sync overrun IT */
  20200. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  20201. 8008aa6: 687b ldr r3, [r7, #4]
  20202. 8008aa8: 6e1b ldr r3, [r3, #96] @ 0x60
  20203. 8008aaa: 681a ldr r2, [r3, #0]
  20204. 8008aac: 687b ldr r3, [r7, #4]
  20205. 8008aae: 6e1b ldr r3, [r3, #96] @ 0x60
  20206. 8008ab0: f422 7280 bic.w r2, r2, #256 @ 0x100
  20207. 8008ab4: 601a str r2, [r3, #0]
  20208. }
  20209. /* Disable the stream */
  20210. __HAL_DMA_DISABLE(hdma);
  20211. 8008ab6: 687b ldr r3, [r7, #4]
  20212. 8008ab8: 681b ldr r3, [r3, #0]
  20213. 8008aba: 4a6d ldr r2, [pc, #436] @ (8008c70 <HAL_DMA_Abort+0x444>)
  20214. 8008abc: 4293 cmp r3, r2
  20215. 8008abe: d04a beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20216. 8008ac0: 687b ldr r3, [r7, #4]
  20217. 8008ac2: 681b ldr r3, [r3, #0]
  20218. 8008ac4: 4a6b ldr r2, [pc, #428] @ (8008c74 <HAL_DMA_Abort+0x448>)
  20219. 8008ac6: 4293 cmp r3, r2
  20220. 8008ac8: d045 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20221. 8008aca: 687b ldr r3, [r7, #4]
  20222. 8008acc: 681b ldr r3, [r3, #0]
  20223. 8008ace: 4a6a ldr r2, [pc, #424] @ (8008c78 <HAL_DMA_Abort+0x44c>)
  20224. 8008ad0: 4293 cmp r3, r2
  20225. 8008ad2: d040 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20226. 8008ad4: 687b ldr r3, [r7, #4]
  20227. 8008ad6: 681b ldr r3, [r3, #0]
  20228. 8008ad8: 4a68 ldr r2, [pc, #416] @ (8008c7c <HAL_DMA_Abort+0x450>)
  20229. 8008ada: 4293 cmp r3, r2
  20230. 8008adc: d03b beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20231. 8008ade: 687b ldr r3, [r7, #4]
  20232. 8008ae0: 681b ldr r3, [r3, #0]
  20233. 8008ae2: 4a67 ldr r2, [pc, #412] @ (8008c80 <HAL_DMA_Abort+0x454>)
  20234. 8008ae4: 4293 cmp r3, r2
  20235. 8008ae6: d036 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20236. 8008ae8: 687b ldr r3, [r7, #4]
  20237. 8008aea: 681b ldr r3, [r3, #0]
  20238. 8008aec: 4a65 ldr r2, [pc, #404] @ (8008c84 <HAL_DMA_Abort+0x458>)
  20239. 8008aee: 4293 cmp r3, r2
  20240. 8008af0: d031 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20241. 8008af2: 687b ldr r3, [r7, #4]
  20242. 8008af4: 681b ldr r3, [r3, #0]
  20243. 8008af6: 4a64 ldr r2, [pc, #400] @ (8008c88 <HAL_DMA_Abort+0x45c>)
  20244. 8008af8: 4293 cmp r3, r2
  20245. 8008afa: d02c beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20246. 8008afc: 687b ldr r3, [r7, #4]
  20247. 8008afe: 681b ldr r3, [r3, #0]
  20248. 8008b00: 4a62 ldr r2, [pc, #392] @ (8008c8c <HAL_DMA_Abort+0x460>)
  20249. 8008b02: 4293 cmp r3, r2
  20250. 8008b04: d027 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20251. 8008b06: 687b ldr r3, [r7, #4]
  20252. 8008b08: 681b ldr r3, [r3, #0]
  20253. 8008b0a: 4a61 ldr r2, [pc, #388] @ (8008c90 <HAL_DMA_Abort+0x464>)
  20254. 8008b0c: 4293 cmp r3, r2
  20255. 8008b0e: d022 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20256. 8008b10: 687b ldr r3, [r7, #4]
  20257. 8008b12: 681b ldr r3, [r3, #0]
  20258. 8008b14: 4a5f ldr r2, [pc, #380] @ (8008c94 <HAL_DMA_Abort+0x468>)
  20259. 8008b16: 4293 cmp r3, r2
  20260. 8008b18: d01d beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20261. 8008b1a: 687b ldr r3, [r7, #4]
  20262. 8008b1c: 681b ldr r3, [r3, #0]
  20263. 8008b1e: 4a5e ldr r2, [pc, #376] @ (8008c98 <HAL_DMA_Abort+0x46c>)
  20264. 8008b20: 4293 cmp r3, r2
  20265. 8008b22: d018 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20266. 8008b24: 687b ldr r3, [r7, #4]
  20267. 8008b26: 681b ldr r3, [r3, #0]
  20268. 8008b28: 4a5c ldr r2, [pc, #368] @ (8008c9c <HAL_DMA_Abort+0x470>)
  20269. 8008b2a: 4293 cmp r3, r2
  20270. 8008b2c: d013 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20271. 8008b2e: 687b ldr r3, [r7, #4]
  20272. 8008b30: 681b ldr r3, [r3, #0]
  20273. 8008b32: 4a5b ldr r2, [pc, #364] @ (8008ca0 <HAL_DMA_Abort+0x474>)
  20274. 8008b34: 4293 cmp r3, r2
  20275. 8008b36: d00e beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20276. 8008b38: 687b ldr r3, [r7, #4]
  20277. 8008b3a: 681b ldr r3, [r3, #0]
  20278. 8008b3c: 4a59 ldr r2, [pc, #356] @ (8008ca4 <HAL_DMA_Abort+0x478>)
  20279. 8008b3e: 4293 cmp r3, r2
  20280. 8008b40: d009 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20281. 8008b42: 687b ldr r3, [r7, #4]
  20282. 8008b44: 681b ldr r3, [r3, #0]
  20283. 8008b46: 4a58 ldr r2, [pc, #352] @ (8008ca8 <HAL_DMA_Abort+0x47c>)
  20284. 8008b48: 4293 cmp r3, r2
  20285. 8008b4a: d004 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20286. 8008b4c: 687b ldr r3, [r7, #4]
  20287. 8008b4e: 681b ldr r3, [r3, #0]
  20288. 8008b50: 4a56 ldr r2, [pc, #344] @ (8008cac <HAL_DMA_Abort+0x480>)
  20289. 8008b52: 4293 cmp r3, r2
  20290. 8008b54: d108 bne.n 8008b68 <HAL_DMA_Abort+0x33c>
  20291. 8008b56: 687b ldr r3, [r7, #4]
  20292. 8008b58: 681b ldr r3, [r3, #0]
  20293. 8008b5a: 681a ldr r2, [r3, #0]
  20294. 8008b5c: 687b ldr r3, [r7, #4]
  20295. 8008b5e: 681b ldr r3, [r3, #0]
  20296. 8008b60: f022 0201 bic.w r2, r2, #1
  20297. 8008b64: 601a str r2, [r3, #0]
  20298. 8008b66: e007 b.n 8008b78 <HAL_DMA_Abort+0x34c>
  20299. 8008b68: 687b ldr r3, [r7, #4]
  20300. 8008b6a: 681b ldr r3, [r3, #0]
  20301. 8008b6c: 681a ldr r2, [r3, #0]
  20302. 8008b6e: 687b ldr r3, [r7, #4]
  20303. 8008b70: 681b ldr r3, [r3, #0]
  20304. 8008b72: f022 0201 bic.w r2, r2, #1
  20305. 8008b76: 601a str r2, [r3, #0]
  20306. /* Check if the DMA Stream is effectively disabled */
  20307. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  20308. 8008b78: e013 b.n 8008ba2 <HAL_DMA_Abort+0x376>
  20309. {
  20310. /* Check for the Timeout */
  20311. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  20312. 8008b7a: f7fc fcf5 bl 8005568 <HAL_GetTick>
  20313. 8008b7e: 4602 mov r2, r0
  20314. 8008b80: 693b ldr r3, [r7, #16]
  20315. 8008b82: 1ad3 subs r3, r2, r3
  20316. 8008b84: 2b05 cmp r3, #5
  20317. 8008b86: d90c bls.n 8008ba2 <HAL_DMA_Abort+0x376>
  20318. {
  20319. /* Update error code */
  20320. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  20321. 8008b88: 687b ldr r3, [r7, #4]
  20322. 8008b8a: 2220 movs r2, #32
  20323. 8008b8c: 655a str r2, [r3, #84] @ 0x54
  20324. /* Change the DMA state */
  20325. hdma->State = HAL_DMA_STATE_ERROR;
  20326. 8008b8e: 687b ldr r3, [r7, #4]
  20327. 8008b90: 2203 movs r2, #3
  20328. 8008b92: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20329. /* Process Unlocked */
  20330. __HAL_UNLOCK(hdma);
  20331. 8008b96: 687b ldr r3, [r7, #4]
  20332. 8008b98: 2200 movs r2, #0
  20333. 8008b9a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20334. return HAL_ERROR;
  20335. 8008b9e: 2301 movs r3, #1
  20336. 8008ba0: e12d b.n 8008dfe <HAL_DMA_Abort+0x5d2>
  20337. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  20338. 8008ba2: 697b ldr r3, [r7, #20]
  20339. 8008ba4: 681b ldr r3, [r3, #0]
  20340. 8008ba6: f003 0301 and.w r3, r3, #1
  20341. 8008baa: 2b00 cmp r3, #0
  20342. 8008bac: d1e5 bne.n 8008b7a <HAL_DMA_Abort+0x34e>
  20343. }
  20344. }
  20345. /* Clear all interrupt flags at correct offset within the register */
  20346. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20347. 8008bae: 687b ldr r3, [r7, #4]
  20348. 8008bb0: 681b ldr r3, [r3, #0]
  20349. 8008bb2: 4a2f ldr r2, [pc, #188] @ (8008c70 <HAL_DMA_Abort+0x444>)
  20350. 8008bb4: 4293 cmp r3, r2
  20351. 8008bb6: d04a beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20352. 8008bb8: 687b ldr r3, [r7, #4]
  20353. 8008bba: 681b ldr r3, [r3, #0]
  20354. 8008bbc: 4a2d ldr r2, [pc, #180] @ (8008c74 <HAL_DMA_Abort+0x448>)
  20355. 8008bbe: 4293 cmp r3, r2
  20356. 8008bc0: d045 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20357. 8008bc2: 687b ldr r3, [r7, #4]
  20358. 8008bc4: 681b ldr r3, [r3, #0]
  20359. 8008bc6: 4a2c ldr r2, [pc, #176] @ (8008c78 <HAL_DMA_Abort+0x44c>)
  20360. 8008bc8: 4293 cmp r3, r2
  20361. 8008bca: d040 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20362. 8008bcc: 687b ldr r3, [r7, #4]
  20363. 8008bce: 681b ldr r3, [r3, #0]
  20364. 8008bd0: 4a2a ldr r2, [pc, #168] @ (8008c7c <HAL_DMA_Abort+0x450>)
  20365. 8008bd2: 4293 cmp r3, r2
  20366. 8008bd4: d03b beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20367. 8008bd6: 687b ldr r3, [r7, #4]
  20368. 8008bd8: 681b ldr r3, [r3, #0]
  20369. 8008bda: 4a29 ldr r2, [pc, #164] @ (8008c80 <HAL_DMA_Abort+0x454>)
  20370. 8008bdc: 4293 cmp r3, r2
  20371. 8008bde: d036 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20372. 8008be0: 687b ldr r3, [r7, #4]
  20373. 8008be2: 681b ldr r3, [r3, #0]
  20374. 8008be4: 4a27 ldr r2, [pc, #156] @ (8008c84 <HAL_DMA_Abort+0x458>)
  20375. 8008be6: 4293 cmp r3, r2
  20376. 8008be8: d031 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20377. 8008bea: 687b ldr r3, [r7, #4]
  20378. 8008bec: 681b ldr r3, [r3, #0]
  20379. 8008bee: 4a26 ldr r2, [pc, #152] @ (8008c88 <HAL_DMA_Abort+0x45c>)
  20380. 8008bf0: 4293 cmp r3, r2
  20381. 8008bf2: d02c beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20382. 8008bf4: 687b ldr r3, [r7, #4]
  20383. 8008bf6: 681b ldr r3, [r3, #0]
  20384. 8008bf8: 4a24 ldr r2, [pc, #144] @ (8008c8c <HAL_DMA_Abort+0x460>)
  20385. 8008bfa: 4293 cmp r3, r2
  20386. 8008bfc: d027 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20387. 8008bfe: 687b ldr r3, [r7, #4]
  20388. 8008c00: 681b ldr r3, [r3, #0]
  20389. 8008c02: 4a23 ldr r2, [pc, #140] @ (8008c90 <HAL_DMA_Abort+0x464>)
  20390. 8008c04: 4293 cmp r3, r2
  20391. 8008c06: d022 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20392. 8008c08: 687b ldr r3, [r7, #4]
  20393. 8008c0a: 681b ldr r3, [r3, #0]
  20394. 8008c0c: 4a21 ldr r2, [pc, #132] @ (8008c94 <HAL_DMA_Abort+0x468>)
  20395. 8008c0e: 4293 cmp r3, r2
  20396. 8008c10: d01d beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20397. 8008c12: 687b ldr r3, [r7, #4]
  20398. 8008c14: 681b ldr r3, [r3, #0]
  20399. 8008c16: 4a20 ldr r2, [pc, #128] @ (8008c98 <HAL_DMA_Abort+0x46c>)
  20400. 8008c18: 4293 cmp r3, r2
  20401. 8008c1a: d018 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20402. 8008c1c: 687b ldr r3, [r7, #4]
  20403. 8008c1e: 681b ldr r3, [r3, #0]
  20404. 8008c20: 4a1e ldr r2, [pc, #120] @ (8008c9c <HAL_DMA_Abort+0x470>)
  20405. 8008c22: 4293 cmp r3, r2
  20406. 8008c24: d013 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20407. 8008c26: 687b ldr r3, [r7, #4]
  20408. 8008c28: 681b ldr r3, [r3, #0]
  20409. 8008c2a: 4a1d ldr r2, [pc, #116] @ (8008ca0 <HAL_DMA_Abort+0x474>)
  20410. 8008c2c: 4293 cmp r3, r2
  20411. 8008c2e: d00e beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20412. 8008c30: 687b ldr r3, [r7, #4]
  20413. 8008c32: 681b ldr r3, [r3, #0]
  20414. 8008c34: 4a1b ldr r2, [pc, #108] @ (8008ca4 <HAL_DMA_Abort+0x478>)
  20415. 8008c36: 4293 cmp r3, r2
  20416. 8008c38: d009 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20417. 8008c3a: 687b ldr r3, [r7, #4]
  20418. 8008c3c: 681b ldr r3, [r3, #0]
  20419. 8008c3e: 4a1a ldr r2, [pc, #104] @ (8008ca8 <HAL_DMA_Abort+0x47c>)
  20420. 8008c40: 4293 cmp r3, r2
  20421. 8008c42: d004 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20422. 8008c44: 687b ldr r3, [r7, #4]
  20423. 8008c46: 681b ldr r3, [r3, #0]
  20424. 8008c48: 4a18 ldr r2, [pc, #96] @ (8008cac <HAL_DMA_Abort+0x480>)
  20425. 8008c4a: 4293 cmp r3, r2
  20426. 8008c4c: d101 bne.n 8008c52 <HAL_DMA_Abort+0x426>
  20427. 8008c4e: 2301 movs r3, #1
  20428. 8008c50: e000 b.n 8008c54 <HAL_DMA_Abort+0x428>
  20429. 8008c52: 2300 movs r3, #0
  20430. 8008c54: 2b00 cmp r3, #0
  20431. 8008c56: d02b beq.n 8008cb0 <HAL_DMA_Abort+0x484>
  20432. {
  20433. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  20434. 8008c58: 687b ldr r3, [r7, #4]
  20435. 8008c5a: 6d9b ldr r3, [r3, #88] @ 0x58
  20436. 8008c5c: 60bb str r3, [r7, #8]
  20437. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  20438. 8008c5e: 687b ldr r3, [r7, #4]
  20439. 8008c60: 6ddb ldr r3, [r3, #92] @ 0x5c
  20440. 8008c62: f003 031f and.w r3, r3, #31
  20441. 8008c66: 223f movs r2, #63 @ 0x3f
  20442. 8008c68: 409a lsls r2, r3
  20443. 8008c6a: 68bb ldr r3, [r7, #8]
  20444. 8008c6c: 609a str r2, [r3, #8]
  20445. 8008c6e: e02a b.n 8008cc6 <HAL_DMA_Abort+0x49a>
  20446. 8008c70: 40020010 .word 0x40020010
  20447. 8008c74: 40020028 .word 0x40020028
  20448. 8008c78: 40020040 .word 0x40020040
  20449. 8008c7c: 40020058 .word 0x40020058
  20450. 8008c80: 40020070 .word 0x40020070
  20451. 8008c84: 40020088 .word 0x40020088
  20452. 8008c88: 400200a0 .word 0x400200a0
  20453. 8008c8c: 400200b8 .word 0x400200b8
  20454. 8008c90: 40020410 .word 0x40020410
  20455. 8008c94: 40020428 .word 0x40020428
  20456. 8008c98: 40020440 .word 0x40020440
  20457. 8008c9c: 40020458 .word 0x40020458
  20458. 8008ca0: 40020470 .word 0x40020470
  20459. 8008ca4: 40020488 .word 0x40020488
  20460. 8008ca8: 400204a0 .word 0x400204a0
  20461. 8008cac: 400204b8 .word 0x400204b8
  20462. }
  20463. else /* BDMA channel */
  20464. {
  20465. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  20466. 8008cb0: 687b ldr r3, [r7, #4]
  20467. 8008cb2: 6d9b ldr r3, [r3, #88] @ 0x58
  20468. 8008cb4: 60fb str r3, [r7, #12]
  20469. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20470. 8008cb6: 687b ldr r3, [r7, #4]
  20471. 8008cb8: 6ddb ldr r3, [r3, #92] @ 0x5c
  20472. 8008cba: f003 031f and.w r3, r3, #31
  20473. 8008cbe: 2201 movs r2, #1
  20474. 8008cc0: 409a lsls r2, r3
  20475. 8008cc2: 68fb ldr r3, [r7, #12]
  20476. 8008cc4: 605a str r2, [r3, #4]
  20477. }
  20478. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20479. 8008cc6: 687b ldr r3, [r7, #4]
  20480. 8008cc8: 681b ldr r3, [r3, #0]
  20481. 8008cca: 4a4f ldr r2, [pc, #316] @ (8008e08 <HAL_DMA_Abort+0x5dc>)
  20482. 8008ccc: 4293 cmp r3, r2
  20483. 8008cce: d072 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20484. 8008cd0: 687b ldr r3, [r7, #4]
  20485. 8008cd2: 681b ldr r3, [r3, #0]
  20486. 8008cd4: 4a4d ldr r2, [pc, #308] @ (8008e0c <HAL_DMA_Abort+0x5e0>)
  20487. 8008cd6: 4293 cmp r3, r2
  20488. 8008cd8: d06d beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20489. 8008cda: 687b ldr r3, [r7, #4]
  20490. 8008cdc: 681b ldr r3, [r3, #0]
  20491. 8008cde: 4a4c ldr r2, [pc, #304] @ (8008e10 <HAL_DMA_Abort+0x5e4>)
  20492. 8008ce0: 4293 cmp r3, r2
  20493. 8008ce2: d068 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20494. 8008ce4: 687b ldr r3, [r7, #4]
  20495. 8008ce6: 681b ldr r3, [r3, #0]
  20496. 8008ce8: 4a4a ldr r2, [pc, #296] @ (8008e14 <HAL_DMA_Abort+0x5e8>)
  20497. 8008cea: 4293 cmp r3, r2
  20498. 8008cec: d063 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20499. 8008cee: 687b ldr r3, [r7, #4]
  20500. 8008cf0: 681b ldr r3, [r3, #0]
  20501. 8008cf2: 4a49 ldr r2, [pc, #292] @ (8008e18 <HAL_DMA_Abort+0x5ec>)
  20502. 8008cf4: 4293 cmp r3, r2
  20503. 8008cf6: d05e beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20504. 8008cf8: 687b ldr r3, [r7, #4]
  20505. 8008cfa: 681b ldr r3, [r3, #0]
  20506. 8008cfc: 4a47 ldr r2, [pc, #284] @ (8008e1c <HAL_DMA_Abort+0x5f0>)
  20507. 8008cfe: 4293 cmp r3, r2
  20508. 8008d00: d059 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20509. 8008d02: 687b ldr r3, [r7, #4]
  20510. 8008d04: 681b ldr r3, [r3, #0]
  20511. 8008d06: 4a46 ldr r2, [pc, #280] @ (8008e20 <HAL_DMA_Abort+0x5f4>)
  20512. 8008d08: 4293 cmp r3, r2
  20513. 8008d0a: d054 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20514. 8008d0c: 687b ldr r3, [r7, #4]
  20515. 8008d0e: 681b ldr r3, [r3, #0]
  20516. 8008d10: 4a44 ldr r2, [pc, #272] @ (8008e24 <HAL_DMA_Abort+0x5f8>)
  20517. 8008d12: 4293 cmp r3, r2
  20518. 8008d14: d04f beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20519. 8008d16: 687b ldr r3, [r7, #4]
  20520. 8008d18: 681b ldr r3, [r3, #0]
  20521. 8008d1a: 4a43 ldr r2, [pc, #268] @ (8008e28 <HAL_DMA_Abort+0x5fc>)
  20522. 8008d1c: 4293 cmp r3, r2
  20523. 8008d1e: d04a beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20524. 8008d20: 687b ldr r3, [r7, #4]
  20525. 8008d22: 681b ldr r3, [r3, #0]
  20526. 8008d24: 4a41 ldr r2, [pc, #260] @ (8008e2c <HAL_DMA_Abort+0x600>)
  20527. 8008d26: 4293 cmp r3, r2
  20528. 8008d28: d045 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20529. 8008d2a: 687b ldr r3, [r7, #4]
  20530. 8008d2c: 681b ldr r3, [r3, #0]
  20531. 8008d2e: 4a40 ldr r2, [pc, #256] @ (8008e30 <HAL_DMA_Abort+0x604>)
  20532. 8008d30: 4293 cmp r3, r2
  20533. 8008d32: d040 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20534. 8008d34: 687b ldr r3, [r7, #4]
  20535. 8008d36: 681b ldr r3, [r3, #0]
  20536. 8008d38: 4a3e ldr r2, [pc, #248] @ (8008e34 <HAL_DMA_Abort+0x608>)
  20537. 8008d3a: 4293 cmp r3, r2
  20538. 8008d3c: d03b beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20539. 8008d3e: 687b ldr r3, [r7, #4]
  20540. 8008d40: 681b ldr r3, [r3, #0]
  20541. 8008d42: 4a3d ldr r2, [pc, #244] @ (8008e38 <HAL_DMA_Abort+0x60c>)
  20542. 8008d44: 4293 cmp r3, r2
  20543. 8008d46: d036 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20544. 8008d48: 687b ldr r3, [r7, #4]
  20545. 8008d4a: 681b ldr r3, [r3, #0]
  20546. 8008d4c: 4a3b ldr r2, [pc, #236] @ (8008e3c <HAL_DMA_Abort+0x610>)
  20547. 8008d4e: 4293 cmp r3, r2
  20548. 8008d50: d031 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20549. 8008d52: 687b ldr r3, [r7, #4]
  20550. 8008d54: 681b ldr r3, [r3, #0]
  20551. 8008d56: 4a3a ldr r2, [pc, #232] @ (8008e40 <HAL_DMA_Abort+0x614>)
  20552. 8008d58: 4293 cmp r3, r2
  20553. 8008d5a: d02c beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20554. 8008d5c: 687b ldr r3, [r7, #4]
  20555. 8008d5e: 681b ldr r3, [r3, #0]
  20556. 8008d60: 4a38 ldr r2, [pc, #224] @ (8008e44 <HAL_DMA_Abort+0x618>)
  20557. 8008d62: 4293 cmp r3, r2
  20558. 8008d64: d027 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20559. 8008d66: 687b ldr r3, [r7, #4]
  20560. 8008d68: 681b ldr r3, [r3, #0]
  20561. 8008d6a: 4a37 ldr r2, [pc, #220] @ (8008e48 <HAL_DMA_Abort+0x61c>)
  20562. 8008d6c: 4293 cmp r3, r2
  20563. 8008d6e: d022 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20564. 8008d70: 687b ldr r3, [r7, #4]
  20565. 8008d72: 681b ldr r3, [r3, #0]
  20566. 8008d74: 4a35 ldr r2, [pc, #212] @ (8008e4c <HAL_DMA_Abort+0x620>)
  20567. 8008d76: 4293 cmp r3, r2
  20568. 8008d78: d01d beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20569. 8008d7a: 687b ldr r3, [r7, #4]
  20570. 8008d7c: 681b ldr r3, [r3, #0]
  20571. 8008d7e: 4a34 ldr r2, [pc, #208] @ (8008e50 <HAL_DMA_Abort+0x624>)
  20572. 8008d80: 4293 cmp r3, r2
  20573. 8008d82: d018 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20574. 8008d84: 687b ldr r3, [r7, #4]
  20575. 8008d86: 681b ldr r3, [r3, #0]
  20576. 8008d88: 4a32 ldr r2, [pc, #200] @ (8008e54 <HAL_DMA_Abort+0x628>)
  20577. 8008d8a: 4293 cmp r3, r2
  20578. 8008d8c: d013 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20579. 8008d8e: 687b ldr r3, [r7, #4]
  20580. 8008d90: 681b ldr r3, [r3, #0]
  20581. 8008d92: 4a31 ldr r2, [pc, #196] @ (8008e58 <HAL_DMA_Abort+0x62c>)
  20582. 8008d94: 4293 cmp r3, r2
  20583. 8008d96: d00e beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20584. 8008d98: 687b ldr r3, [r7, #4]
  20585. 8008d9a: 681b ldr r3, [r3, #0]
  20586. 8008d9c: 4a2f ldr r2, [pc, #188] @ (8008e5c <HAL_DMA_Abort+0x630>)
  20587. 8008d9e: 4293 cmp r3, r2
  20588. 8008da0: d009 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20589. 8008da2: 687b ldr r3, [r7, #4]
  20590. 8008da4: 681b ldr r3, [r3, #0]
  20591. 8008da6: 4a2e ldr r2, [pc, #184] @ (8008e60 <HAL_DMA_Abort+0x634>)
  20592. 8008da8: 4293 cmp r3, r2
  20593. 8008daa: d004 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20594. 8008dac: 687b ldr r3, [r7, #4]
  20595. 8008dae: 681b ldr r3, [r3, #0]
  20596. 8008db0: 4a2c ldr r2, [pc, #176] @ (8008e64 <HAL_DMA_Abort+0x638>)
  20597. 8008db2: 4293 cmp r3, r2
  20598. 8008db4: d101 bne.n 8008dba <HAL_DMA_Abort+0x58e>
  20599. 8008db6: 2301 movs r3, #1
  20600. 8008db8: e000 b.n 8008dbc <HAL_DMA_Abort+0x590>
  20601. 8008dba: 2300 movs r3, #0
  20602. 8008dbc: 2b00 cmp r3, #0
  20603. 8008dbe: d015 beq.n 8008dec <HAL_DMA_Abort+0x5c0>
  20604. {
  20605. /* Clear the DMAMUX synchro overrun flag */
  20606. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20607. 8008dc0: 687b ldr r3, [r7, #4]
  20608. 8008dc2: 6e5b ldr r3, [r3, #100] @ 0x64
  20609. 8008dc4: 687a ldr r2, [r7, #4]
  20610. 8008dc6: 6e92 ldr r2, [r2, #104] @ 0x68
  20611. 8008dc8: 605a str r2, [r3, #4]
  20612. if(hdma->DMAmuxRequestGen != 0U)
  20613. 8008dca: 687b ldr r3, [r7, #4]
  20614. 8008dcc: 6edb ldr r3, [r3, #108] @ 0x6c
  20615. 8008dce: 2b00 cmp r3, #0
  20616. 8008dd0: d00c beq.n 8008dec <HAL_DMA_Abort+0x5c0>
  20617. {
  20618. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  20619. /* disable the request gen overrun IT */
  20620. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  20621. 8008dd2: 687b ldr r3, [r7, #4]
  20622. 8008dd4: 6edb ldr r3, [r3, #108] @ 0x6c
  20623. 8008dd6: 681a ldr r2, [r3, #0]
  20624. 8008dd8: 687b ldr r3, [r7, #4]
  20625. 8008dda: 6edb ldr r3, [r3, #108] @ 0x6c
  20626. 8008ddc: f422 7280 bic.w r2, r2, #256 @ 0x100
  20627. 8008de0: 601a str r2, [r3, #0]
  20628. /* Clear the DMAMUX request generator overrun flag */
  20629. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  20630. 8008de2: 687b ldr r3, [r7, #4]
  20631. 8008de4: 6f1b ldr r3, [r3, #112] @ 0x70
  20632. 8008de6: 687a ldr r2, [r7, #4]
  20633. 8008de8: 6f52 ldr r2, [r2, #116] @ 0x74
  20634. 8008dea: 605a str r2, [r3, #4]
  20635. }
  20636. }
  20637. /* Change the DMA state */
  20638. hdma->State = HAL_DMA_STATE_READY;
  20639. 8008dec: 687b ldr r3, [r7, #4]
  20640. 8008dee: 2201 movs r2, #1
  20641. 8008df0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20642. /* Process Unlocked */
  20643. __HAL_UNLOCK(hdma);
  20644. 8008df4: 687b ldr r3, [r7, #4]
  20645. 8008df6: 2200 movs r2, #0
  20646. 8008df8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20647. }
  20648. return HAL_OK;
  20649. 8008dfc: 2300 movs r3, #0
  20650. }
  20651. 8008dfe: 4618 mov r0, r3
  20652. 8008e00: 3718 adds r7, #24
  20653. 8008e02: 46bd mov sp, r7
  20654. 8008e04: bd80 pop {r7, pc}
  20655. 8008e06: bf00 nop
  20656. 8008e08: 40020010 .word 0x40020010
  20657. 8008e0c: 40020028 .word 0x40020028
  20658. 8008e10: 40020040 .word 0x40020040
  20659. 8008e14: 40020058 .word 0x40020058
  20660. 8008e18: 40020070 .word 0x40020070
  20661. 8008e1c: 40020088 .word 0x40020088
  20662. 8008e20: 400200a0 .word 0x400200a0
  20663. 8008e24: 400200b8 .word 0x400200b8
  20664. 8008e28: 40020410 .word 0x40020410
  20665. 8008e2c: 40020428 .word 0x40020428
  20666. 8008e30: 40020440 .word 0x40020440
  20667. 8008e34: 40020458 .word 0x40020458
  20668. 8008e38: 40020470 .word 0x40020470
  20669. 8008e3c: 40020488 .word 0x40020488
  20670. 8008e40: 400204a0 .word 0x400204a0
  20671. 8008e44: 400204b8 .word 0x400204b8
  20672. 8008e48: 58025408 .word 0x58025408
  20673. 8008e4c: 5802541c .word 0x5802541c
  20674. 8008e50: 58025430 .word 0x58025430
  20675. 8008e54: 58025444 .word 0x58025444
  20676. 8008e58: 58025458 .word 0x58025458
  20677. 8008e5c: 5802546c .word 0x5802546c
  20678. 8008e60: 58025480 .word 0x58025480
  20679. 8008e64: 58025494 .word 0x58025494
  20680. 08008e68 <HAL_DMA_Abort_IT>:
  20681. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  20682. * the configuration information for the specified DMA Stream.
  20683. * @retval HAL status
  20684. */
  20685. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  20686. {
  20687. 8008e68: b580 push {r7, lr}
  20688. 8008e6a: b084 sub sp, #16
  20689. 8008e6c: af00 add r7, sp, #0
  20690. 8008e6e: 6078 str r0, [r7, #4]
  20691. BDMA_Base_Registers *regs_bdma;
  20692. /* Check the DMA peripheral handle */
  20693. if(hdma == NULL)
  20694. 8008e70: 687b ldr r3, [r7, #4]
  20695. 8008e72: 2b00 cmp r3, #0
  20696. 8008e74: d101 bne.n 8008e7a <HAL_DMA_Abort_IT+0x12>
  20697. {
  20698. return HAL_ERROR;
  20699. 8008e76: 2301 movs r3, #1
  20700. 8008e78: e237 b.n 80092ea <HAL_DMA_Abort_IT+0x482>
  20701. }
  20702. if(hdma->State != HAL_DMA_STATE_BUSY)
  20703. 8008e7a: 687b ldr r3, [r7, #4]
  20704. 8008e7c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20705. 8008e80: b2db uxtb r3, r3
  20706. 8008e82: 2b02 cmp r3, #2
  20707. 8008e84: d004 beq.n 8008e90 <HAL_DMA_Abort_IT+0x28>
  20708. {
  20709. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  20710. 8008e86: 687b ldr r3, [r7, #4]
  20711. 8008e88: 2280 movs r2, #128 @ 0x80
  20712. 8008e8a: 655a str r2, [r3, #84] @ 0x54
  20713. return HAL_ERROR;
  20714. 8008e8c: 2301 movs r3, #1
  20715. 8008e8e: e22c b.n 80092ea <HAL_DMA_Abort_IT+0x482>
  20716. }
  20717. else
  20718. {
  20719. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20720. 8008e90: 687b ldr r3, [r7, #4]
  20721. 8008e92: 681b ldr r3, [r3, #0]
  20722. 8008e94: 4a5c ldr r2, [pc, #368] @ (8009008 <HAL_DMA_Abort_IT+0x1a0>)
  20723. 8008e96: 4293 cmp r3, r2
  20724. 8008e98: d04a beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20725. 8008e9a: 687b ldr r3, [r7, #4]
  20726. 8008e9c: 681b ldr r3, [r3, #0]
  20727. 8008e9e: 4a5b ldr r2, [pc, #364] @ (800900c <HAL_DMA_Abort_IT+0x1a4>)
  20728. 8008ea0: 4293 cmp r3, r2
  20729. 8008ea2: d045 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20730. 8008ea4: 687b ldr r3, [r7, #4]
  20731. 8008ea6: 681b ldr r3, [r3, #0]
  20732. 8008ea8: 4a59 ldr r2, [pc, #356] @ (8009010 <HAL_DMA_Abort_IT+0x1a8>)
  20733. 8008eaa: 4293 cmp r3, r2
  20734. 8008eac: d040 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20735. 8008eae: 687b ldr r3, [r7, #4]
  20736. 8008eb0: 681b ldr r3, [r3, #0]
  20737. 8008eb2: 4a58 ldr r2, [pc, #352] @ (8009014 <HAL_DMA_Abort_IT+0x1ac>)
  20738. 8008eb4: 4293 cmp r3, r2
  20739. 8008eb6: d03b beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20740. 8008eb8: 687b ldr r3, [r7, #4]
  20741. 8008eba: 681b ldr r3, [r3, #0]
  20742. 8008ebc: 4a56 ldr r2, [pc, #344] @ (8009018 <HAL_DMA_Abort_IT+0x1b0>)
  20743. 8008ebe: 4293 cmp r3, r2
  20744. 8008ec0: d036 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20745. 8008ec2: 687b ldr r3, [r7, #4]
  20746. 8008ec4: 681b ldr r3, [r3, #0]
  20747. 8008ec6: 4a55 ldr r2, [pc, #340] @ (800901c <HAL_DMA_Abort_IT+0x1b4>)
  20748. 8008ec8: 4293 cmp r3, r2
  20749. 8008eca: d031 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20750. 8008ecc: 687b ldr r3, [r7, #4]
  20751. 8008ece: 681b ldr r3, [r3, #0]
  20752. 8008ed0: 4a53 ldr r2, [pc, #332] @ (8009020 <HAL_DMA_Abort_IT+0x1b8>)
  20753. 8008ed2: 4293 cmp r3, r2
  20754. 8008ed4: d02c beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20755. 8008ed6: 687b ldr r3, [r7, #4]
  20756. 8008ed8: 681b ldr r3, [r3, #0]
  20757. 8008eda: 4a52 ldr r2, [pc, #328] @ (8009024 <HAL_DMA_Abort_IT+0x1bc>)
  20758. 8008edc: 4293 cmp r3, r2
  20759. 8008ede: d027 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20760. 8008ee0: 687b ldr r3, [r7, #4]
  20761. 8008ee2: 681b ldr r3, [r3, #0]
  20762. 8008ee4: 4a50 ldr r2, [pc, #320] @ (8009028 <HAL_DMA_Abort_IT+0x1c0>)
  20763. 8008ee6: 4293 cmp r3, r2
  20764. 8008ee8: d022 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20765. 8008eea: 687b ldr r3, [r7, #4]
  20766. 8008eec: 681b ldr r3, [r3, #0]
  20767. 8008eee: 4a4f ldr r2, [pc, #316] @ (800902c <HAL_DMA_Abort_IT+0x1c4>)
  20768. 8008ef0: 4293 cmp r3, r2
  20769. 8008ef2: d01d beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20770. 8008ef4: 687b ldr r3, [r7, #4]
  20771. 8008ef6: 681b ldr r3, [r3, #0]
  20772. 8008ef8: 4a4d ldr r2, [pc, #308] @ (8009030 <HAL_DMA_Abort_IT+0x1c8>)
  20773. 8008efa: 4293 cmp r3, r2
  20774. 8008efc: d018 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20775. 8008efe: 687b ldr r3, [r7, #4]
  20776. 8008f00: 681b ldr r3, [r3, #0]
  20777. 8008f02: 4a4c ldr r2, [pc, #304] @ (8009034 <HAL_DMA_Abort_IT+0x1cc>)
  20778. 8008f04: 4293 cmp r3, r2
  20779. 8008f06: d013 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20780. 8008f08: 687b ldr r3, [r7, #4]
  20781. 8008f0a: 681b ldr r3, [r3, #0]
  20782. 8008f0c: 4a4a ldr r2, [pc, #296] @ (8009038 <HAL_DMA_Abort_IT+0x1d0>)
  20783. 8008f0e: 4293 cmp r3, r2
  20784. 8008f10: d00e beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20785. 8008f12: 687b ldr r3, [r7, #4]
  20786. 8008f14: 681b ldr r3, [r3, #0]
  20787. 8008f16: 4a49 ldr r2, [pc, #292] @ (800903c <HAL_DMA_Abort_IT+0x1d4>)
  20788. 8008f18: 4293 cmp r3, r2
  20789. 8008f1a: d009 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20790. 8008f1c: 687b ldr r3, [r7, #4]
  20791. 8008f1e: 681b ldr r3, [r3, #0]
  20792. 8008f20: 4a47 ldr r2, [pc, #284] @ (8009040 <HAL_DMA_Abort_IT+0x1d8>)
  20793. 8008f22: 4293 cmp r3, r2
  20794. 8008f24: d004 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20795. 8008f26: 687b ldr r3, [r7, #4]
  20796. 8008f28: 681b ldr r3, [r3, #0]
  20797. 8008f2a: 4a46 ldr r2, [pc, #280] @ (8009044 <HAL_DMA_Abort_IT+0x1dc>)
  20798. 8008f2c: 4293 cmp r3, r2
  20799. 8008f2e: d101 bne.n 8008f34 <HAL_DMA_Abort_IT+0xcc>
  20800. 8008f30: 2301 movs r3, #1
  20801. 8008f32: e000 b.n 8008f36 <HAL_DMA_Abort_IT+0xce>
  20802. 8008f34: 2300 movs r3, #0
  20803. 8008f36: 2b00 cmp r3, #0
  20804. 8008f38: f000 8086 beq.w 8009048 <HAL_DMA_Abort_IT+0x1e0>
  20805. {
  20806. /* Set Abort State */
  20807. hdma->State = HAL_DMA_STATE_ABORT;
  20808. 8008f3c: 687b ldr r3, [r7, #4]
  20809. 8008f3e: 2204 movs r2, #4
  20810. 8008f40: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20811. /* Disable the stream */
  20812. __HAL_DMA_DISABLE(hdma);
  20813. 8008f44: 687b ldr r3, [r7, #4]
  20814. 8008f46: 681b ldr r3, [r3, #0]
  20815. 8008f48: 4a2f ldr r2, [pc, #188] @ (8009008 <HAL_DMA_Abort_IT+0x1a0>)
  20816. 8008f4a: 4293 cmp r3, r2
  20817. 8008f4c: d04a beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20818. 8008f4e: 687b ldr r3, [r7, #4]
  20819. 8008f50: 681b ldr r3, [r3, #0]
  20820. 8008f52: 4a2e ldr r2, [pc, #184] @ (800900c <HAL_DMA_Abort_IT+0x1a4>)
  20821. 8008f54: 4293 cmp r3, r2
  20822. 8008f56: d045 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20823. 8008f58: 687b ldr r3, [r7, #4]
  20824. 8008f5a: 681b ldr r3, [r3, #0]
  20825. 8008f5c: 4a2c ldr r2, [pc, #176] @ (8009010 <HAL_DMA_Abort_IT+0x1a8>)
  20826. 8008f5e: 4293 cmp r3, r2
  20827. 8008f60: d040 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20828. 8008f62: 687b ldr r3, [r7, #4]
  20829. 8008f64: 681b ldr r3, [r3, #0]
  20830. 8008f66: 4a2b ldr r2, [pc, #172] @ (8009014 <HAL_DMA_Abort_IT+0x1ac>)
  20831. 8008f68: 4293 cmp r3, r2
  20832. 8008f6a: d03b beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20833. 8008f6c: 687b ldr r3, [r7, #4]
  20834. 8008f6e: 681b ldr r3, [r3, #0]
  20835. 8008f70: 4a29 ldr r2, [pc, #164] @ (8009018 <HAL_DMA_Abort_IT+0x1b0>)
  20836. 8008f72: 4293 cmp r3, r2
  20837. 8008f74: d036 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20838. 8008f76: 687b ldr r3, [r7, #4]
  20839. 8008f78: 681b ldr r3, [r3, #0]
  20840. 8008f7a: 4a28 ldr r2, [pc, #160] @ (800901c <HAL_DMA_Abort_IT+0x1b4>)
  20841. 8008f7c: 4293 cmp r3, r2
  20842. 8008f7e: d031 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20843. 8008f80: 687b ldr r3, [r7, #4]
  20844. 8008f82: 681b ldr r3, [r3, #0]
  20845. 8008f84: 4a26 ldr r2, [pc, #152] @ (8009020 <HAL_DMA_Abort_IT+0x1b8>)
  20846. 8008f86: 4293 cmp r3, r2
  20847. 8008f88: d02c beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20848. 8008f8a: 687b ldr r3, [r7, #4]
  20849. 8008f8c: 681b ldr r3, [r3, #0]
  20850. 8008f8e: 4a25 ldr r2, [pc, #148] @ (8009024 <HAL_DMA_Abort_IT+0x1bc>)
  20851. 8008f90: 4293 cmp r3, r2
  20852. 8008f92: d027 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20853. 8008f94: 687b ldr r3, [r7, #4]
  20854. 8008f96: 681b ldr r3, [r3, #0]
  20855. 8008f98: 4a23 ldr r2, [pc, #140] @ (8009028 <HAL_DMA_Abort_IT+0x1c0>)
  20856. 8008f9a: 4293 cmp r3, r2
  20857. 8008f9c: d022 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20858. 8008f9e: 687b ldr r3, [r7, #4]
  20859. 8008fa0: 681b ldr r3, [r3, #0]
  20860. 8008fa2: 4a22 ldr r2, [pc, #136] @ (800902c <HAL_DMA_Abort_IT+0x1c4>)
  20861. 8008fa4: 4293 cmp r3, r2
  20862. 8008fa6: d01d beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20863. 8008fa8: 687b ldr r3, [r7, #4]
  20864. 8008faa: 681b ldr r3, [r3, #0]
  20865. 8008fac: 4a20 ldr r2, [pc, #128] @ (8009030 <HAL_DMA_Abort_IT+0x1c8>)
  20866. 8008fae: 4293 cmp r3, r2
  20867. 8008fb0: d018 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20868. 8008fb2: 687b ldr r3, [r7, #4]
  20869. 8008fb4: 681b ldr r3, [r3, #0]
  20870. 8008fb6: 4a1f ldr r2, [pc, #124] @ (8009034 <HAL_DMA_Abort_IT+0x1cc>)
  20871. 8008fb8: 4293 cmp r3, r2
  20872. 8008fba: d013 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20873. 8008fbc: 687b ldr r3, [r7, #4]
  20874. 8008fbe: 681b ldr r3, [r3, #0]
  20875. 8008fc0: 4a1d ldr r2, [pc, #116] @ (8009038 <HAL_DMA_Abort_IT+0x1d0>)
  20876. 8008fc2: 4293 cmp r3, r2
  20877. 8008fc4: d00e beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20878. 8008fc6: 687b ldr r3, [r7, #4]
  20879. 8008fc8: 681b ldr r3, [r3, #0]
  20880. 8008fca: 4a1c ldr r2, [pc, #112] @ (800903c <HAL_DMA_Abort_IT+0x1d4>)
  20881. 8008fcc: 4293 cmp r3, r2
  20882. 8008fce: d009 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20883. 8008fd0: 687b ldr r3, [r7, #4]
  20884. 8008fd2: 681b ldr r3, [r3, #0]
  20885. 8008fd4: 4a1a ldr r2, [pc, #104] @ (8009040 <HAL_DMA_Abort_IT+0x1d8>)
  20886. 8008fd6: 4293 cmp r3, r2
  20887. 8008fd8: d004 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20888. 8008fda: 687b ldr r3, [r7, #4]
  20889. 8008fdc: 681b ldr r3, [r3, #0]
  20890. 8008fde: 4a19 ldr r2, [pc, #100] @ (8009044 <HAL_DMA_Abort_IT+0x1dc>)
  20891. 8008fe0: 4293 cmp r3, r2
  20892. 8008fe2: d108 bne.n 8008ff6 <HAL_DMA_Abort_IT+0x18e>
  20893. 8008fe4: 687b ldr r3, [r7, #4]
  20894. 8008fe6: 681b ldr r3, [r3, #0]
  20895. 8008fe8: 681a ldr r2, [r3, #0]
  20896. 8008fea: 687b ldr r3, [r7, #4]
  20897. 8008fec: 681b ldr r3, [r3, #0]
  20898. 8008fee: f022 0201 bic.w r2, r2, #1
  20899. 8008ff2: 601a str r2, [r3, #0]
  20900. 8008ff4: e178 b.n 80092e8 <HAL_DMA_Abort_IT+0x480>
  20901. 8008ff6: 687b ldr r3, [r7, #4]
  20902. 8008ff8: 681b ldr r3, [r3, #0]
  20903. 8008ffa: 681a ldr r2, [r3, #0]
  20904. 8008ffc: 687b ldr r3, [r7, #4]
  20905. 8008ffe: 681b ldr r3, [r3, #0]
  20906. 8009000: f022 0201 bic.w r2, r2, #1
  20907. 8009004: 601a str r2, [r3, #0]
  20908. 8009006: e16f b.n 80092e8 <HAL_DMA_Abort_IT+0x480>
  20909. 8009008: 40020010 .word 0x40020010
  20910. 800900c: 40020028 .word 0x40020028
  20911. 8009010: 40020040 .word 0x40020040
  20912. 8009014: 40020058 .word 0x40020058
  20913. 8009018: 40020070 .word 0x40020070
  20914. 800901c: 40020088 .word 0x40020088
  20915. 8009020: 400200a0 .word 0x400200a0
  20916. 8009024: 400200b8 .word 0x400200b8
  20917. 8009028: 40020410 .word 0x40020410
  20918. 800902c: 40020428 .word 0x40020428
  20919. 8009030: 40020440 .word 0x40020440
  20920. 8009034: 40020458 .word 0x40020458
  20921. 8009038: 40020470 .word 0x40020470
  20922. 800903c: 40020488 .word 0x40020488
  20923. 8009040: 400204a0 .word 0x400204a0
  20924. 8009044: 400204b8 .word 0x400204b8
  20925. }
  20926. else /* BDMA channel */
  20927. {
  20928. /* Disable DMA All Interrupts */
  20929. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  20930. 8009048: 687b ldr r3, [r7, #4]
  20931. 800904a: 681b ldr r3, [r3, #0]
  20932. 800904c: 681a ldr r2, [r3, #0]
  20933. 800904e: 687b ldr r3, [r7, #4]
  20934. 8009050: 681b ldr r3, [r3, #0]
  20935. 8009052: f022 020e bic.w r2, r2, #14
  20936. 8009056: 601a str r2, [r3, #0]
  20937. /* Disable the channel */
  20938. __HAL_DMA_DISABLE(hdma);
  20939. 8009058: 687b ldr r3, [r7, #4]
  20940. 800905a: 681b ldr r3, [r3, #0]
  20941. 800905c: 4a6c ldr r2, [pc, #432] @ (8009210 <HAL_DMA_Abort_IT+0x3a8>)
  20942. 800905e: 4293 cmp r3, r2
  20943. 8009060: d04a beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20944. 8009062: 687b ldr r3, [r7, #4]
  20945. 8009064: 681b ldr r3, [r3, #0]
  20946. 8009066: 4a6b ldr r2, [pc, #428] @ (8009214 <HAL_DMA_Abort_IT+0x3ac>)
  20947. 8009068: 4293 cmp r3, r2
  20948. 800906a: d045 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20949. 800906c: 687b ldr r3, [r7, #4]
  20950. 800906e: 681b ldr r3, [r3, #0]
  20951. 8009070: 4a69 ldr r2, [pc, #420] @ (8009218 <HAL_DMA_Abort_IT+0x3b0>)
  20952. 8009072: 4293 cmp r3, r2
  20953. 8009074: d040 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20954. 8009076: 687b ldr r3, [r7, #4]
  20955. 8009078: 681b ldr r3, [r3, #0]
  20956. 800907a: 4a68 ldr r2, [pc, #416] @ (800921c <HAL_DMA_Abort_IT+0x3b4>)
  20957. 800907c: 4293 cmp r3, r2
  20958. 800907e: d03b beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20959. 8009080: 687b ldr r3, [r7, #4]
  20960. 8009082: 681b ldr r3, [r3, #0]
  20961. 8009084: 4a66 ldr r2, [pc, #408] @ (8009220 <HAL_DMA_Abort_IT+0x3b8>)
  20962. 8009086: 4293 cmp r3, r2
  20963. 8009088: d036 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20964. 800908a: 687b ldr r3, [r7, #4]
  20965. 800908c: 681b ldr r3, [r3, #0]
  20966. 800908e: 4a65 ldr r2, [pc, #404] @ (8009224 <HAL_DMA_Abort_IT+0x3bc>)
  20967. 8009090: 4293 cmp r3, r2
  20968. 8009092: d031 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20969. 8009094: 687b ldr r3, [r7, #4]
  20970. 8009096: 681b ldr r3, [r3, #0]
  20971. 8009098: 4a63 ldr r2, [pc, #396] @ (8009228 <HAL_DMA_Abort_IT+0x3c0>)
  20972. 800909a: 4293 cmp r3, r2
  20973. 800909c: d02c beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20974. 800909e: 687b ldr r3, [r7, #4]
  20975. 80090a0: 681b ldr r3, [r3, #0]
  20976. 80090a2: 4a62 ldr r2, [pc, #392] @ (800922c <HAL_DMA_Abort_IT+0x3c4>)
  20977. 80090a4: 4293 cmp r3, r2
  20978. 80090a6: d027 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20979. 80090a8: 687b ldr r3, [r7, #4]
  20980. 80090aa: 681b ldr r3, [r3, #0]
  20981. 80090ac: 4a60 ldr r2, [pc, #384] @ (8009230 <HAL_DMA_Abort_IT+0x3c8>)
  20982. 80090ae: 4293 cmp r3, r2
  20983. 80090b0: d022 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20984. 80090b2: 687b ldr r3, [r7, #4]
  20985. 80090b4: 681b ldr r3, [r3, #0]
  20986. 80090b6: 4a5f ldr r2, [pc, #380] @ (8009234 <HAL_DMA_Abort_IT+0x3cc>)
  20987. 80090b8: 4293 cmp r3, r2
  20988. 80090ba: d01d beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20989. 80090bc: 687b ldr r3, [r7, #4]
  20990. 80090be: 681b ldr r3, [r3, #0]
  20991. 80090c0: 4a5d ldr r2, [pc, #372] @ (8009238 <HAL_DMA_Abort_IT+0x3d0>)
  20992. 80090c2: 4293 cmp r3, r2
  20993. 80090c4: d018 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20994. 80090c6: 687b ldr r3, [r7, #4]
  20995. 80090c8: 681b ldr r3, [r3, #0]
  20996. 80090ca: 4a5c ldr r2, [pc, #368] @ (800923c <HAL_DMA_Abort_IT+0x3d4>)
  20997. 80090cc: 4293 cmp r3, r2
  20998. 80090ce: d013 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20999. 80090d0: 687b ldr r3, [r7, #4]
  21000. 80090d2: 681b ldr r3, [r3, #0]
  21001. 80090d4: 4a5a ldr r2, [pc, #360] @ (8009240 <HAL_DMA_Abort_IT+0x3d8>)
  21002. 80090d6: 4293 cmp r3, r2
  21003. 80090d8: d00e beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  21004. 80090da: 687b ldr r3, [r7, #4]
  21005. 80090dc: 681b ldr r3, [r3, #0]
  21006. 80090de: 4a59 ldr r2, [pc, #356] @ (8009244 <HAL_DMA_Abort_IT+0x3dc>)
  21007. 80090e0: 4293 cmp r3, r2
  21008. 80090e2: d009 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  21009. 80090e4: 687b ldr r3, [r7, #4]
  21010. 80090e6: 681b ldr r3, [r3, #0]
  21011. 80090e8: 4a57 ldr r2, [pc, #348] @ (8009248 <HAL_DMA_Abort_IT+0x3e0>)
  21012. 80090ea: 4293 cmp r3, r2
  21013. 80090ec: d004 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  21014. 80090ee: 687b ldr r3, [r7, #4]
  21015. 80090f0: 681b ldr r3, [r3, #0]
  21016. 80090f2: 4a56 ldr r2, [pc, #344] @ (800924c <HAL_DMA_Abort_IT+0x3e4>)
  21017. 80090f4: 4293 cmp r3, r2
  21018. 80090f6: d108 bne.n 800910a <HAL_DMA_Abort_IT+0x2a2>
  21019. 80090f8: 687b ldr r3, [r7, #4]
  21020. 80090fa: 681b ldr r3, [r3, #0]
  21021. 80090fc: 681a ldr r2, [r3, #0]
  21022. 80090fe: 687b ldr r3, [r7, #4]
  21023. 8009100: 681b ldr r3, [r3, #0]
  21024. 8009102: f022 0201 bic.w r2, r2, #1
  21025. 8009106: 601a str r2, [r3, #0]
  21026. 8009108: e007 b.n 800911a <HAL_DMA_Abort_IT+0x2b2>
  21027. 800910a: 687b ldr r3, [r7, #4]
  21028. 800910c: 681b ldr r3, [r3, #0]
  21029. 800910e: 681a ldr r2, [r3, #0]
  21030. 8009110: 687b ldr r3, [r7, #4]
  21031. 8009112: 681b ldr r3, [r3, #0]
  21032. 8009114: f022 0201 bic.w r2, r2, #1
  21033. 8009118: 601a str r2, [r3, #0]
  21034. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21035. 800911a: 687b ldr r3, [r7, #4]
  21036. 800911c: 681b ldr r3, [r3, #0]
  21037. 800911e: 4a3c ldr r2, [pc, #240] @ (8009210 <HAL_DMA_Abort_IT+0x3a8>)
  21038. 8009120: 4293 cmp r3, r2
  21039. 8009122: d072 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21040. 8009124: 687b ldr r3, [r7, #4]
  21041. 8009126: 681b ldr r3, [r3, #0]
  21042. 8009128: 4a3a ldr r2, [pc, #232] @ (8009214 <HAL_DMA_Abort_IT+0x3ac>)
  21043. 800912a: 4293 cmp r3, r2
  21044. 800912c: d06d beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21045. 800912e: 687b ldr r3, [r7, #4]
  21046. 8009130: 681b ldr r3, [r3, #0]
  21047. 8009132: 4a39 ldr r2, [pc, #228] @ (8009218 <HAL_DMA_Abort_IT+0x3b0>)
  21048. 8009134: 4293 cmp r3, r2
  21049. 8009136: d068 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21050. 8009138: 687b ldr r3, [r7, #4]
  21051. 800913a: 681b ldr r3, [r3, #0]
  21052. 800913c: 4a37 ldr r2, [pc, #220] @ (800921c <HAL_DMA_Abort_IT+0x3b4>)
  21053. 800913e: 4293 cmp r3, r2
  21054. 8009140: d063 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21055. 8009142: 687b ldr r3, [r7, #4]
  21056. 8009144: 681b ldr r3, [r3, #0]
  21057. 8009146: 4a36 ldr r2, [pc, #216] @ (8009220 <HAL_DMA_Abort_IT+0x3b8>)
  21058. 8009148: 4293 cmp r3, r2
  21059. 800914a: d05e beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21060. 800914c: 687b ldr r3, [r7, #4]
  21061. 800914e: 681b ldr r3, [r3, #0]
  21062. 8009150: 4a34 ldr r2, [pc, #208] @ (8009224 <HAL_DMA_Abort_IT+0x3bc>)
  21063. 8009152: 4293 cmp r3, r2
  21064. 8009154: d059 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21065. 8009156: 687b ldr r3, [r7, #4]
  21066. 8009158: 681b ldr r3, [r3, #0]
  21067. 800915a: 4a33 ldr r2, [pc, #204] @ (8009228 <HAL_DMA_Abort_IT+0x3c0>)
  21068. 800915c: 4293 cmp r3, r2
  21069. 800915e: d054 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21070. 8009160: 687b ldr r3, [r7, #4]
  21071. 8009162: 681b ldr r3, [r3, #0]
  21072. 8009164: 4a31 ldr r2, [pc, #196] @ (800922c <HAL_DMA_Abort_IT+0x3c4>)
  21073. 8009166: 4293 cmp r3, r2
  21074. 8009168: d04f beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21075. 800916a: 687b ldr r3, [r7, #4]
  21076. 800916c: 681b ldr r3, [r3, #0]
  21077. 800916e: 4a30 ldr r2, [pc, #192] @ (8009230 <HAL_DMA_Abort_IT+0x3c8>)
  21078. 8009170: 4293 cmp r3, r2
  21079. 8009172: d04a beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21080. 8009174: 687b ldr r3, [r7, #4]
  21081. 8009176: 681b ldr r3, [r3, #0]
  21082. 8009178: 4a2e ldr r2, [pc, #184] @ (8009234 <HAL_DMA_Abort_IT+0x3cc>)
  21083. 800917a: 4293 cmp r3, r2
  21084. 800917c: d045 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21085. 800917e: 687b ldr r3, [r7, #4]
  21086. 8009180: 681b ldr r3, [r3, #0]
  21087. 8009182: 4a2d ldr r2, [pc, #180] @ (8009238 <HAL_DMA_Abort_IT+0x3d0>)
  21088. 8009184: 4293 cmp r3, r2
  21089. 8009186: d040 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21090. 8009188: 687b ldr r3, [r7, #4]
  21091. 800918a: 681b ldr r3, [r3, #0]
  21092. 800918c: 4a2b ldr r2, [pc, #172] @ (800923c <HAL_DMA_Abort_IT+0x3d4>)
  21093. 800918e: 4293 cmp r3, r2
  21094. 8009190: d03b beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21095. 8009192: 687b ldr r3, [r7, #4]
  21096. 8009194: 681b ldr r3, [r3, #0]
  21097. 8009196: 4a2a ldr r2, [pc, #168] @ (8009240 <HAL_DMA_Abort_IT+0x3d8>)
  21098. 8009198: 4293 cmp r3, r2
  21099. 800919a: d036 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21100. 800919c: 687b ldr r3, [r7, #4]
  21101. 800919e: 681b ldr r3, [r3, #0]
  21102. 80091a0: 4a28 ldr r2, [pc, #160] @ (8009244 <HAL_DMA_Abort_IT+0x3dc>)
  21103. 80091a2: 4293 cmp r3, r2
  21104. 80091a4: d031 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21105. 80091a6: 687b ldr r3, [r7, #4]
  21106. 80091a8: 681b ldr r3, [r3, #0]
  21107. 80091aa: 4a27 ldr r2, [pc, #156] @ (8009248 <HAL_DMA_Abort_IT+0x3e0>)
  21108. 80091ac: 4293 cmp r3, r2
  21109. 80091ae: d02c beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21110. 80091b0: 687b ldr r3, [r7, #4]
  21111. 80091b2: 681b ldr r3, [r3, #0]
  21112. 80091b4: 4a25 ldr r2, [pc, #148] @ (800924c <HAL_DMA_Abort_IT+0x3e4>)
  21113. 80091b6: 4293 cmp r3, r2
  21114. 80091b8: d027 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21115. 80091ba: 687b ldr r3, [r7, #4]
  21116. 80091bc: 681b ldr r3, [r3, #0]
  21117. 80091be: 4a24 ldr r2, [pc, #144] @ (8009250 <HAL_DMA_Abort_IT+0x3e8>)
  21118. 80091c0: 4293 cmp r3, r2
  21119. 80091c2: d022 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21120. 80091c4: 687b ldr r3, [r7, #4]
  21121. 80091c6: 681b ldr r3, [r3, #0]
  21122. 80091c8: 4a22 ldr r2, [pc, #136] @ (8009254 <HAL_DMA_Abort_IT+0x3ec>)
  21123. 80091ca: 4293 cmp r3, r2
  21124. 80091cc: d01d beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21125. 80091ce: 687b ldr r3, [r7, #4]
  21126. 80091d0: 681b ldr r3, [r3, #0]
  21127. 80091d2: 4a21 ldr r2, [pc, #132] @ (8009258 <HAL_DMA_Abort_IT+0x3f0>)
  21128. 80091d4: 4293 cmp r3, r2
  21129. 80091d6: d018 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21130. 80091d8: 687b ldr r3, [r7, #4]
  21131. 80091da: 681b ldr r3, [r3, #0]
  21132. 80091dc: 4a1f ldr r2, [pc, #124] @ (800925c <HAL_DMA_Abort_IT+0x3f4>)
  21133. 80091de: 4293 cmp r3, r2
  21134. 80091e0: d013 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21135. 80091e2: 687b ldr r3, [r7, #4]
  21136. 80091e4: 681b ldr r3, [r3, #0]
  21137. 80091e6: 4a1e ldr r2, [pc, #120] @ (8009260 <HAL_DMA_Abort_IT+0x3f8>)
  21138. 80091e8: 4293 cmp r3, r2
  21139. 80091ea: d00e beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21140. 80091ec: 687b ldr r3, [r7, #4]
  21141. 80091ee: 681b ldr r3, [r3, #0]
  21142. 80091f0: 4a1c ldr r2, [pc, #112] @ (8009264 <HAL_DMA_Abort_IT+0x3fc>)
  21143. 80091f2: 4293 cmp r3, r2
  21144. 80091f4: d009 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21145. 80091f6: 687b ldr r3, [r7, #4]
  21146. 80091f8: 681b ldr r3, [r3, #0]
  21147. 80091fa: 4a1b ldr r2, [pc, #108] @ (8009268 <HAL_DMA_Abort_IT+0x400>)
  21148. 80091fc: 4293 cmp r3, r2
  21149. 80091fe: d004 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21150. 8009200: 687b ldr r3, [r7, #4]
  21151. 8009202: 681b ldr r3, [r3, #0]
  21152. 8009204: 4a19 ldr r2, [pc, #100] @ (800926c <HAL_DMA_Abort_IT+0x404>)
  21153. 8009206: 4293 cmp r3, r2
  21154. 8009208: d132 bne.n 8009270 <HAL_DMA_Abort_IT+0x408>
  21155. 800920a: 2301 movs r3, #1
  21156. 800920c: e031 b.n 8009272 <HAL_DMA_Abort_IT+0x40a>
  21157. 800920e: bf00 nop
  21158. 8009210: 40020010 .word 0x40020010
  21159. 8009214: 40020028 .word 0x40020028
  21160. 8009218: 40020040 .word 0x40020040
  21161. 800921c: 40020058 .word 0x40020058
  21162. 8009220: 40020070 .word 0x40020070
  21163. 8009224: 40020088 .word 0x40020088
  21164. 8009228: 400200a0 .word 0x400200a0
  21165. 800922c: 400200b8 .word 0x400200b8
  21166. 8009230: 40020410 .word 0x40020410
  21167. 8009234: 40020428 .word 0x40020428
  21168. 8009238: 40020440 .word 0x40020440
  21169. 800923c: 40020458 .word 0x40020458
  21170. 8009240: 40020470 .word 0x40020470
  21171. 8009244: 40020488 .word 0x40020488
  21172. 8009248: 400204a0 .word 0x400204a0
  21173. 800924c: 400204b8 .word 0x400204b8
  21174. 8009250: 58025408 .word 0x58025408
  21175. 8009254: 5802541c .word 0x5802541c
  21176. 8009258: 58025430 .word 0x58025430
  21177. 800925c: 58025444 .word 0x58025444
  21178. 8009260: 58025458 .word 0x58025458
  21179. 8009264: 5802546c .word 0x5802546c
  21180. 8009268: 58025480 .word 0x58025480
  21181. 800926c: 58025494 .word 0x58025494
  21182. 8009270: 2300 movs r3, #0
  21183. 8009272: 2b00 cmp r3, #0
  21184. 8009274: d028 beq.n 80092c8 <HAL_DMA_Abort_IT+0x460>
  21185. {
  21186. /* disable the DMAMUX sync overrun IT */
  21187. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  21188. 8009276: 687b ldr r3, [r7, #4]
  21189. 8009278: 6e1b ldr r3, [r3, #96] @ 0x60
  21190. 800927a: 681a ldr r2, [r3, #0]
  21191. 800927c: 687b ldr r3, [r7, #4]
  21192. 800927e: 6e1b ldr r3, [r3, #96] @ 0x60
  21193. 8009280: f422 7280 bic.w r2, r2, #256 @ 0x100
  21194. 8009284: 601a str r2, [r3, #0]
  21195. /* Clear all flags */
  21196. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21197. 8009286: 687b ldr r3, [r7, #4]
  21198. 8009288: 6d9b ldr r3, [r3, #88] @ 0x58
  21199. 800928a: 60fb str r3, [r7, #12]
  21200. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21201. 800928c: 687b ldr r3, [r7, #4]
  21202. 800928e: 6ddb ldr r3, [r3, #92] @ 0x5c
  21203. 8009290: f003 031f and.w r3, r3, #31
  21204. 8009294: 2201 movs r2, #1
  21205. 8009296: 409a lsls r2, r3
  21206. 8009298: 68fb ldr r3, [r7, #12]
  21207. 800929a: 605a str r2, [r3, #4]
  21208. /* Clear the DMAMUX synchro overrun flag */
  21209. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21210. 800929c: 687b ldr r3, [r7, #4]
  21211. 800929e: 6e5b ldr r3, [r3, #100] @ 0x64
  21212. 80092a0: 687a ldr r2, [r7, #4]
  21213. 80092a2: 6e92 ldr r2, [r2, #104] @ 0x68
  21214. 80092a4: 605a str r2, [r3, #4]
  21215. if(hdma->DMAmuxRequestGen != 0U)
  21216. 80092a6: 687b ldr r3, [r7, #4]
  21217. 80092a8: 6edb ldr r3, [r3, #108] @ 0x6c
  21218. 80092aa: 2b00 cmp r3, #0
  21219. 80092ac: d00c beq.n 80092c8 <HAL_DMA_Abort_IT+0x460>
  21220. {
  21221. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  21222. /* disable the request gen overrun IT */
  21223. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21224. 80092ae: 687b ldr r3, [r7, #4]
  21225. 80092b0: 6edb ldr r3, [r3, #108] @ 0x6c
  21226. 80092b2: 681a ldr r2, [r3, #0]
  21227. 80092b4: 687b ldr r3, [r7, #4]
  21228. 80092b6: 6edb ldr r3, [r3, #108] @ 0x6c
  21229. 80092b8: f422 7280 bic.w r2, r2, #256 @ 0x100
  21230. 80092bc: 601a str r2, [r3, #0]
  21231. /* Clear the DMAMUX request generator overrun flag */
  21232. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21233. 80092be: 687b ldr r3, [r7, #4]
  21234. 80092c0: 6f1b ldr r3, [r3, #112] @ 0x70
  21235. 80092c2: 687a ldr r2, [r7, #4]
  21236. 80092c4: 6f52 ldr r2, [r2, #116] @ 0x74
  21237. 80092c6: 605a str r2, [r3, #4]
  21238. }
  21239. }
  21240. /* Change the DMA state */
  21241. hdma->State = HAL_DMA_STATE_READY;
  21242. 80092c8: 687b ldr r3, [r7, #4]
  21243. 80092ca: 2201 movs r2, #1
  21244. 80092cc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21245. /* Process Unlocked */
  21246. __HAL_UNLOCK(hdma);
  21247. 80092d0: 687b ldr r3, [r7, #4]
  21248. 80092d2: 2200 movs r2, #0
  21249. 80092d4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21250. /* Call User Abort callback */
  21251. if(hdma->XferAbortCallback != NULL)
  21252. 80092d8: 687b ldr r3, [r7, #4]
  21253. 80092da: 6d1b ldr r3, [r3, #80] @ 0x50
  21254. 80092dc: 2b00 cmp r3, #0
  21255. 80092de: d003 beq.n 80092e8 <HAL_DMA_Abort_IT+0x480>
  21256. {
  21257. hdma->XferAbortCallback(hdma);
  21258. 80092e0: 687b ldr r3, [r7, #4]
  21259. 80092e2: 6d1b ldr r3, [r3, #80] @ 0x50
  21260. 80092e4: 6878 ldr r0, [r7, #4]
  21261. 80092e6: 4798 blx r3
  21262. }
  21263. }
  21264. }
  21265. return HAL_OK;
  21266. 80092e8: 2300 movs r3, #0
  21267. }
  21268. 80092ea: 4618 mov r0, r3
  21269. 80092ec: 3710 adds r7, #16
  21270. 80092ee: 46bd mov sp, r7
  21271. 80092f0: bd80 pop {r7, pc}
  21272. 80092f2: bf00 nop
  21273. 080092f4 <HAL_DMA_IRQHandler>:
  21274. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  21275. * the configuration information for the specified DMA Stream.
  21276. * @retval None
  21277. */
  21278. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  21279. {
  21280. 80092f4: b580 push {r7, lr}
  21281. 80092f6: b08a sub sp, #40 @ 0x28
  21282. 80092f8: af00 add r7, sp, #0
  21283. 80092fa: 6078 str r0, [r7, #4]
  21284. uint32_t tmpisr_dma, tmpisr_bdma;
  21285. uint32_t ccr_reg;
  21286. __IO uint32_t count = 0U;
  21287. 80092fc: 2300 movs r3, #0
  21288. 80092fe: 60fb str r3, [r7, #12]
  21289. uint32_t timeout = SystemCoreClock / 9600U;
  21290. 8009300: 4b67 ldr r3, [pc, #412] @ (80094a0 <HAL_DMA_IRQHandler+0x1ac>)
  21291. 8009302: 681b ldr r3, [r3, #0]
  21292. 8009304: 4a67 ldr r2, [pc, #412] @ (80094a4 <HAL_DMA_IRQHandler+0x1b0>)
  21293. 8009306: fba2 2303 umull r2, r3, r2, r3
  21294. 800930a: 0a9b lsrs r3, r3, #10
  21295. 800930c: 627b str r3, [r7, #36] @ 0x24
  21296. /* calculate DMA base and stream number */
  21297. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21298. 800930e: 687b ldr r3, [r7, #4]
  21299. 8009310: 6d9b ldr r3, [r3, #88] @ 0x58
  21300. 8009312: 623b str r3, [r7, #32]
  21301. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21302. 8009314: 687b ldr r3, [r7, #4]
  21303. 8009316: 6d9b ldr r3, [r3, #88] @ 0x58
  21304. 8009318: 61fb str r3, [r7, #28]
  21305. tmpisr_dma = regs_dma->ISR;
  21306. 800931a: 6a3b ldr r3, [r7, #32]
  21307. 800931c: 681b ldr r3, [r3, #0]
  21308. 800931e: 61bb str r3, [r7, #24]
  21309. tmpisr_bdma = regs_bdma->ISR;
  21310. 8009320: 69fb ldr r3, [r7, #28]
  21311. 8009322: 681b ldr r3, [r3, #0]
  21312. 8009324: 617b str r3, [r7, #20]
  21313. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21314. 8009326: 687b ldr r3, [r7, #4]
  21315. 8009328: 681b ldr r3, [r3, #0]
  21316. 800932a: 4a5f ldr r2, [pc, #380] @ (80094a8 <HAL_DMA_IRQHandler+0x1b4>)
  21317. 800932c: 4293 cmp r3, r2
  21318. 800932e: d04a beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21319. 8009330: 687b ldr r3, [r7, #4]
  21320. 8009332: 681b ldr r3, [r3, #0]
  21321. 8009334: 4a5d ldr r2, [pc, #372] @ (80094ac <HAL_DMA_IRQHandler+0x1b8>)
  21322. 8009336: 4293 cmp r3, r2
  21323. 8009338: d045 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21324. 800933a: 687b ldr r3, [r7, #4]
  21325. 800933c: 681b ldr r3, [r3, #0]
  21326. 800933e: 4a5c ldr r2, [pc, #368] @ (80094b0 <HAL_DMA_IRQHandler+0x1bc>)
  21327. 8009340: 4293 cmp r3, r2
  21328. 8009342: d040 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21329. 8009344: 687b ldr r3, [r7, #4]
  21330. 8009346: 681b ldr r3, [r3, #0]
  21331. 8009348: 4a5a ldr r2, [pc, #360] @ (80094b4 <HAL_DMA_IRQHandler+0x1c0>)
  21332. 800934a: 4293 cmp r3, r2
  21333. 800934c: d03b beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21334. 800934e: 687b ldr r3, [r7, #4]
  21335. 8009350: 681b ldr r3, [r3, #0]
  21336. 8009352: 4a59 ldr r2, [pc, #356] @ (80094b8 <HAL_DMA_IRQHandler+0x1c4>)
  21337. 8009354: 4293 cmp r3, r2
  21338. 8009356: d036 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21339. 8009358: 687b ldr r3, [r7, #4]
  21340. 800935a: 681b ldr r3, [r3, #0]
  21341. 800935c: 4a57 ldr r2, [pc, #348] @ (80094bc <HAL_DMA_IRQHandler+0x1c8>)
  21342. 800935e: 4293 cmp r3, r2
  21343. 8009360: d031 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21344. 8009362: 687b ldr r3, [r7, #4]
  21345. 8009364: 681b ldr r3, [r3, #0]
  21346. 8009366: 4a56 ldr r2, [pc, #344] @ (80094c0 <HAL_DMA_IRQHandler+0x1cc>)
  21347. 8009368: 4293 cmp r3, r2
  21348. 800936a: d02c beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21349. 800936c: 687b ldr r3, [r7, #4]
  21350. 800936e: 681b ldr r3, [r3, #0]
  21351. 8009370: 4a54 ldr r2, [pc, #336] @ (80094c4 <HAL_DMA_IRQHandler+0x1d0>)
  21352. 8009372: 4293 cmp r3, r2
  21353. 8009374: d027 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21354. 8009376: 687b ldr r3, [r7, #4]
  21355. 8009378: 681b ldr r3, [r3, #0]
  21356. 800937a: 4a53 ldr r2, [pc, #332] @ (80094c8 <HAL_DMA_IRQHandler+0x1d4>)
  21357. 800937c: 4293 cmp r3, r2
  21358. 800937e: d022 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21359. 8009380: 687b ldr r3, [r7, #4]
  21360. 8009382: 681b ldr r3, [r3, #0]
  21361. 8009384: 4a51 ldr r2, [pc, #324] @ (80094cc <HAL_DMA_IRQHandler+0x1d8>)
  21362. 8009386: 4293 cmp r3, r2
  21363. 8009388: d01d beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21364. 800938a: 687b ldr r3, [r7, #4]
  21365. 800938c: 681b ldr r3, [r3, #0]
  21366. 800938e: 4a50 ldr r2, [pc, #320] @ (80094d0 <HAL_DMA_IRQHandler+0x1dc>)
  21367. 8009390: 4293 cmp r3, r2
  21368. 8009392: d018 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21369. 8009394: 687b ldr r3, [r7, #4]
  21370. 8009396: 681b ldr r3, [r3, #0]
  21371. 8009398: 4a4e ldr r2, [pc, #312] @ (80094d4 <HAL_DMA_IRQHandler+0x1e0>)
  21372. 800939a: 4293 cmp r3, r2
  21373. 800939c: d013 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21374. 800939e: 687b ldr r3, [r7, #4]
  21375. 80093a0: 681b ldr r3, [r3, #0]
  21376. 80093a2: 4a4d ldr r2, [pc, #308] @ (80094d8 <HAL_DMA_IRQHandler+0x1e4>)
  21377. 80093a4: 4293 cmp r3, r2
  21378. 80093a6: d00e beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21379. 80093a8: 687b ldr r3, [r7, #4]
  21380. 80093aa: 681b ldr r3, [r3, #0]
  21381. 80093ac: 4a4b ldr r2, [pc, #300] @ (80094dc <HAL_DMA_IRQHandler+0x1e8>)
  21382. 80093ae: 4293 cmp r3, r2
  21383. 80093b0: d009 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21384. 80093b2: 687b ldr r3, [r7, #4]
  21385. 80093b4: 681b ldr r3, [r3, #0]
  21386. 80093b6: 4a4a ldr r2, [pc, #296] @ (80094e0 <HAL_DMA_IRQHandler+0x1ec>)
  21387. 80093b8: 4293 cmp r3, r2
  21388. 80093ba: d004 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21389. 80093bc: 687b ldr r3, [r7, #4]
  21390. 80093be: 681b ldr r3, [r3, #0]
  21391. 80093c0: 4a48 ldr r2, [pc, #288] @ (80094e4 <HAL_DMA_IRQHandler+0x1f0>)
  21392. 80093c2: 4293 cmp r3, r2
  21393. 80093c4: d101 bne.n 80093ca <HAL_DMA_IRQHandler+0xd6>
  21394. 80093c6: 2301 movs r3, #1
  21395. 80093c8: e000 b.n 80093cc <HAL_DMA_IRQHandler+0xd8>
  21396. 80093ca: 2300 movs r3, #0
  21397. 80093cc: 2b00 cmp r3, #0
  21398. 80093ce: f000 842b beq.w 8009c28 <HAL_DMA_IRQHandler+0x934>
  21399. {
  21400. /* Transfer Error Interrupt management ***************************************/
  21401. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21402. 80093d2: 687b ldr r3, [r7, #4]
  21403. 80093d4: 6ddb ldr r3, [r3, #92] @ 0x5c
  21404. 80093d6: f003 031f and.w r3, r3, #31
  21405. 80093da: 2208 movs r2, #8
  21406. 80093dc: 409a lsls r2, r3
  21407. 80093de: 69bb ldr r3, [r7, #24]
  21408. 80093e0: 4013 ands r3, r2
  21409. 80093e2: 2b00 cmp r3, #0
  21410. 80093e4: f000 80a2 beq.w 800952c <HAL_DMA_IRQHandler+0x238>
  21411. {
  21412. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  21413. 80093e8: 687b ldr r3, [r7, #4]
  21414. 80093ea: 681b ldr r3, [r3, #0]
  21415. 80093ec: 4a2e ldr r2, [pc, #184] @ (80094a8 <HAL_DMA_IRQHandler+0x1b4>)
  21416. 80093ee: 4293 cmp r3, r2
  21417. 80093f0: d04a beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21418. 80093f2: 687b ldr r3, [r7, #4]
  21419. 80093f4: 681b ldr r3, [r3, #0]
  21420. 80093f6: 4a2d ldr r2, [pc, #180] @ (80094ac <HAL_DMA_IRQHandler+0x1b8>)
  21421. 80093f8: 4293 cmp r3, r2
  21422. 80093fa: d045 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21423. 80093fc: 687b ldr r3, [r7, #4]
  21424. 80093fe: 681b ldr r3, [r3, #0]
  21425. 8009400: 4a2b ldr r2, [pc, #172] @ (80094b0 <HAL_DMA_IRQHandler+0x1bc>)
  21426. 8009402: 4293 cmp r3, r2
  21427. 8009404: d040 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21428. 8009406: 687b ldr r3, [r7, #4]
  21429. 8009408: 681b ldr r3, [r3, #0]
  21430. 800940a: 4a2a ldr r2, [pc, #168] @ (80094b4 <HAL_DMA_IRQHandler+0x1c0>)
  21431. 800940c: 4293 cmp r3, r2
  21432. 800940e: d03b beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21433. 8009410: 687b ldr r3, [r7, #4]
  21434. 8009412: 681b ldr r3, [r3, #0]
  21435. 8009414: 4a28 ldr r2, [pc, #160] @ (80094b8 <HAL_DMA_IRQHandler+0x1c4>)
  21436. 8009416: 4293 cmp r3, r2
  21437. 8009418: d036 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21438. 800941a: 687b ldr r3, [r7, #4]
  21439. 800941c: 681b ldr r3, [r3, #0]
  21440. 800941e: 4a27 ldr r2, [pc, #156] @ (80094bc <HAL_DMA_IRQHandler+0x1c8>)
  21441. 8009420: 4293 cmp r3, r2
  21442. 8009422: d031 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21443. 8009424: 687b ldr r3, [r7, #4]
  21444. 8009426: 681b ldr r3, [r3, #0]
  21445. 8009428: 4a25 ldr r2, [pc, #148] @ (80094c0 <HAL_DMA_IRQHandler+0x1cc>)
  21446. 800942a: 4293 cmp r3, r2
  21447. 800942c: d02c beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21448. 800942e: 687b ldr r3, [r7, #4]
  21449. 8009430: 681b ldr r3, [r3, #0]
  21450. 8009432: 4a24 ldr r2, [pc, #144] @ (80094c4 <HAL_DMA_IRQHandler+0x1d0>)
  21451. 8009434: 4293 cmp r3, r2
  21452. 8009436: d027 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21453. 8009438: 687b ldr r3, [r7, #4]
  21454. 800943a: 681b ldr r3, [r3, #0]
  21455. 800943c: 4a22 ldr r2, [pc, #136] @ (80094c8 <HAL_DMA_IRQHandler+0x1d4>)
  21456. 800943e: 4293 cmp r3, r2
  21457. 8009440: d022 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21458. 8009442: 687b ldr r3, [r7, #4]
  21459. 8009444: 681b ldr r3, [r3, #0]
  21460. 8009446: 4a21 ldr r2, [pc, #132] @ (80094cc <HAL_DMA_IRQHandler+0x1d8>)
  21461. 8009448: 4293 cmp r3, r2
  21462. 800944a: d01d beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21463. 800944c: 687b ldr r3, [r7, #4]
  21464. 800944e: 681b ldr r3, [r3, #0]
  21465. 8009450: 4a1f ldr r2, [pc, #124] @ (80094d0 <HAL_DMA_IRQHandler+0x1dc>)
  21466. 8009452: 4293 cmp r3, r2
  21467. 8009454: d018 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21468. 8009456: 687b ldr r3, [r7, #4]
  21469. 8009458: 681b ldr r3, [r3, #0]
  21470. 800945a: 4a1e ldr r2, [pc, #120] @ (80094d4 <HAL_DMA_IRQHandler+0x1e0>)
  21471. 800945c: 4293 cmp r3, r2
  21472. 800945e: d013 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21473. 8009460: 687b ldr r3, [r7, #4]
  21474. 8009462: 681b ldr r3, [r3, #0]
  21475. 8009464: 4a1c ldr r2, [pc, #112] @ (80094d8 <HAL_DMA_IRQHandler+0x1e4>)
  21476. 8009466: 4293 cmp r3, r2
  21477. 8009468: d00e beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21478. 800946a: 687b ldr r3, [r7, #4]
  21479. 800946c: 681b ldr r3, [r3, #0]
  21480. 800946e: 4a1b ldr r2, [pc, #108] @ (80094dc <HAL_DMA_IRQHandler+0x1e8>)
  21481. 8009470: 4293 cmp r3, r2
  21482. 8009472: d009 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21483. 8009474: 687b ldr r3, [r7, #4]
  21484. 8009476: 681b ldr r3, [r3, #0]
  21485. 8009478: 4a19 ldr r2, [pc, #100] @ (80094e0 <HAL_DMA_IRQHandler+0x1ec>)
  21486. 800947a: 4293 cmp r3, r2
  21487. 800947c: d004 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21488. 800947e: 687b ldr r3, [r7, #4]
  21489. 8009480: 681b ldr r3, [r3, #0]
  21490. 8009482: 4a18 ldr r2, [pc, #96] @ (80094e4 <HAL_DMA_IRQHandler+0x1f0>)
  21491. 8009484: 4293 cmp r3, r2
  21492. 8009486: d12f bne.n 80094e8 <HAL_DMA_IRQHandler+0x1f4>
  21493. 8009488: 687b ldr r3, [r7, #4]
  21494. 800948a: 681b ldr r3, [r3, #0]
  21495. 800948c: 681b ldr r3, [r3, #0]
  21496. 800948e: f003 0304 and.w r3, r3, #4
  21497. 8009492: 2b00 cmp r3, #0
  21498. 8009494: bf14 ite ne
  21499. 8009496: 2301 movne r3, #1
  21500. 8009498: 2300 moveq r3, #0
  21501. 800949a: b2db uxtb r3, r3
  21502. 800949c: e02e b.n 80094fc <HAL_DMA_IRQHandler+0x208>
  21503. 800949e: bf00 nop
  21504. 80094a0: 24000034 .word 0x24000034
  21505. 80094a4: 1b4e81b5 .word 0x1b4e81b5
  21506. 80094a8: 40020010 .word 0x40020010
  21507. 80094ac: 40020028 .word 0x40020028
  21508. 80094b0: 40020040 .word 0x40020040
  21509. 80094b4: 40020058 .word 0x40020058
  21510. 80094b8: 40020070 .word 0x40020070
  21511. 80094bc: 40020088 .word 0x40020088
  21512. 80094c0: 400200a0 .word 0x400200a0
  21513. 80094c4: 400200b8 .word 0x400200b8
  21514. 80094c8: 40020410 .word 0x40020410
  21515. 80094cc: 40020428 .word 0x40020428
  21516. 80094d0: 40020440 .word 0x40020440
  21517. 80094d4: 40020458 .word 0x40020458
  21518. 80094d8: 40020470 .word 0x40020470
  21519. 80094dc: 40020488 .word 0x40020488
  21520. 80094e0: 400204a0 .word 0x400204a0
  21521. 80094e4: 400204b8 .word 0x400204b8
  21522. 80094e8: 687b ldr r3, [r7, #4]
  21523. 80094ea: 681b ldr r3, [r3, #0]
  21524. 80094ec: 681b ldr r3, [r3, #0]
  21525. 80094ee: f003 0308 and.w r3, r3, #8
  21526. 80094f2: 2b00 cmp r3, #0
  21527. 80094f4: bf14 ite ne
  21528. 80094f6: 2301 movne r3, #1
  21529. 80094f8: 2300 moveq r3, #0
  21530. 80094fa: b2db uxtb r3, r3
  21531. 80094fc: 2b00 cmp r3, #0
  21532. 80094fe: d015 beq.n 800952c <HAL_DMA_IRQHandler+0x238>
  21533. {
  21534. /* Disable the transfer error interrupt */
  21535. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  21536. 8009500: 687b ldr r3, [r7, #4]
  21537. 8009502: 681b ldr r3, [r3, #0]
  21538. 8009504: 681a ldr r2, [r3, #0]
  21539. 8009506: 687b ldr r3, [r7, #4]
  21540. 8009508: 681b ldr r3, [r3, #0]
  21541. 800950a: f022 0204 bic.w r2, r2, #4
  21542. 800950e: 601a str r2, [r3, #0]
  21543. /* Clear the transfer error flag */
  21544. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21545. 8009510: 687b ldr r3, [r7, #4]
  21546. 8009512: 6ddb ldr r3, [r3, #92] @ 0x5c
  21547. 8009514: f003 031f and.w r3, r3, #31
  21548. 8009518: 2208 movs r2, #8
  21549. 800951a: 409a lsls r2, r3
  21550. 800951c: 6a3b ldr r3, [r7, #32]
  21551. 800951e: 609a str r2, [r3, #8]
  21552. /* Update error code */
  21553. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  21554. 8009520: 687b ldr r3, [r7, #4]
  21555. 8009522: 6d5b ldr r3, [r3, #84] @ 0x54
  21556. 8009524: f043 0201 orr.w r2, r3, #1
  21557. 8009528: 687b ldr r3, [r7, #4]
  21558. 800952a: 655a str r2, [r3, #84] @ 0x54
  21559. }
  21560. }
  21561. /* FIFO Error Interrupt management ******************************************/
  21562. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21563. 800952c: 687b ldr r3, [r7, #4]
  21564. 800952e: 6ddb ldr r3, [r3, #92] @ 0x5c
  21565. 8009530: f003 031f and.w r3, r3, #31
  21566. 8009534: 69ba ldr r2, [r7, #24]
  21567. 8009536: fa22 f303 lsr.w r3, r2, r3
  21568. 800953a: f003 0301 and.w r3, r3, #1
  21569. 800953e: 2b00 cmp r3, #0
  21570. 8009540: d06e beq.n 8009620 <HAL_DMA_IRQHandler+0x32c>
  21571. {
  21572. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  21573. 8009542: 687b ldr r3, [r7, #4]
  21574. 8009544: 681b ldr r3, [r3, #0]
  21575. 8009546: 4a69 ldr r2, [pc, #420] @ (80096ec <HAL_DMA_IRQHandler+0x3f8>)
  21576. 8009548: 4293 cmp r3, r2
  21577. 800954a: d04a beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21578. 800954c: 687b ldr r3, [r7, #4]
  21579. 800954e: 681b ldr r3, [r3, #0]
  21580. 8009550: 4a67 ldr r2, [pc, #412] @ (80096f0 <HAL_DMA_IRQHandler+0x3fc>)
  21581. 8009552: 4293 cmp r3, r2
  21582. 8009554: d045 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21583. 8009556: 687b ldr r3, [r7, #4]
  21584. 8009558: 681b ldr r3, [r3, #0]
  21585. 800955a: 4a66 ldr r2, [pc, #408] @ (80096f4 <HAL_DMA_IRQHandler+0x400>)
  21586. 800955c: 4293 cmp r3, r2
  21587. 800955e: d040 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21588. 8009560: 687b ldr r3, [r7, #4]
  21589. 8009562: 681b ldr r3, [r3, #0]
  21590. 8009564: 4a64 ldr r2, [pc, #400] @ (80096f8 <HAL_DMA_IRQHandler+0x404>)
  21591. 8009566: 4293 cmp r3, r2
  21592. 8009568: d03b beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21593. 800956a: 687b ldr r3, [r7, #4]
  21594. 800956c: 681b ldr r3, [r3, #0]
  21595. 800956e: 4a63 ldr r2, [pc, #396] @ (80096fc <HAL_DMA_IRQHandler+0x408>)
  21596. 8009570: 4293 cmp r3, r2
  21597. 8009572: d036 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21598. 8009574: 687b ldr r3, [r7, #4]
  21599. 8009576: 681b ldr r3, [r3, #0]
  21600. 8009578: 4a61 ldr r2, [pc, #388] @ (8009700 <HAL_DMA_IRQHandler+0x40c>)
  21601. 800957a: 4293 cmp r3, r2
  21602. 800957c: d031 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21603. 800957e: 687b ldr r3, [r7, #4]
  21604. 8009580: 681b ldr r3, [r3, #0]
  21605. 8009582: 4a60 ldr r2, [pc, #384] @ (8009704 <HAL_DMA_IRQHandler+0x410>)
  21606. 8009584: 4293 cmp r3, r2
  21607. 8009586: d02c beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21608. 8009588: 687b ldr r3, [r7, #4]
  21609. 800958a: 681b ldr r3, [r3, #0]
  21610. 800958c: 4a5e ldr r2, [pc, #376] @ (8009708 <HAL_DMA_IRQHandler+0x414>)
  21611. 800958e: 4293 cmp r3, r2
  21612. 8009590: d027 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21613. 8009592: 687b ldr r3, [r7, #4]
  21614. 8009594: 681b ldr r3, [r3, #0]
  21615. 8009596: 4a5d ldr r2, [pc, #372] @ (800970c <HAL_DMA_IRQHandler+0x418>)
  21616. 8009598: 4293 cmp r3, r2
  21617. 800959a: d022 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21618. 800959c: 687b ldr r3, [r7, #4]
  21619. 800959e: 681b ldr r3, [r3, #0]
  21620. 80095a0: 4a5b ldr r2, [pc, #364] @ (8009710 <HAL_DMA_IRQHandler+0x41c>)
  21621. 80095a2: 4293 cmp r3, r2
  21622. 80095a4: d01d beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21623. 80095a6: 687b ldr r3, [r7, #4]
  21624. 80095a8: 681b ldr r3, [r3, #0]
  21625. 80095aa: 4a5a ldr r2, [pc, #360] @ (8009714 <HAL_DMA_IRQHandler+0x420>)
  21626. 80095ac: 4293 cmp r3, r2
  21627. 80095ae: d018 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21628. 80095b0: 687b ldr r3, [r7, #4]
  21629. 80095b2: 681b ldr r3, [r3, #0]
  21630. 80095b4: 4a58 ldr r2, [pc, #352] @ (8009718 <HAL_DMA_IRQHandler+0x424>)
  21631. 80095b6: 4293 cmp r3, r2
  21632. 80095b8: d013 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21633. 80095ba: 687b ldr r3, [r7, #4]
  21634. 80095bc: 681b ldr r3, [r3, #0]
  21635. 80095be: 4a57 ldr r2, [pc, #348] @ (800971c <HAL_DMA_IRQHandler+0x428>)
  21636. 80095c0: 4293 cmp r3, r2
  21637. 80095c2: d00e beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21638. 80095c4: 687b ldr r3, [r7, #4]
  21639. 80095c6: 681b ldr r3, [r3, #0]
  21640. 80095c8: 4a55 ldr r2, [pc, #340] @ (8009720 <HAL_DMA_IRQHandler+0x42c>)
  21641. 80095ca: 4293 cmp r3, r2
  21642. 80095cc: d009 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21643. 80095ce: 687b ldr r3, [r7, #4]
  21644. 80095d0: 681b ldr r3, [r3, #0]
  21645. 80095d2: 4a54 ldr r2, [pc, #336] @ (8009724 <HAL_DMA_IRQHandler+0x430>)
  21646. 80095d4: 4293 cmp r3, r2
  21647. 80095d6: d004 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21648. 80095d8: 687b ldr r3, [r7, #4]
  21649. 80095da: 681b ldr r3, [r3, #0]
  21650. 80095dc: 4a52 ldr r2, [pc, #328] @ (8009728 <HAL_DMA_IRQHandler+0x434>)
  21651. 80095de: 4293 cmp r3, r2
  21652. 80095e0: d10a bne.n 80095f8 <HAL_DMA_IRQHandler+0x304>
  21653. 80095e2: 687b ldr r3, [r7, #4]
  21654. 80095e4: 681b ldr r3, [r3, #0]
  21655. 80095e6: 695b ldr r3, [r3, #20]
  21656. 80095e8: f003 0380 and.w r3, r3, #128 @ 0x80
  21657. 80095ec: 2b00 cmp r3, #0
  21658. 80095ee: bf14 ite ne
  21659. 80095f0: 2301 movne r3, #1
  21660. 80095f2: 2300 moveq r3, #0
  21661. 80095f4: b2db uxtb r3, r3
  21662. 80095f6: e003 b.n 8009600 <HAL_DMA_IRQHandler+0x30c>
  21663. 80095f8: 687b ldr r3, [r7, #4]
  21664. 80095fa: 681b ldr r3, [r3, #0]
  21665. 80095fc: 681b ldr r3, [r3, #0]
  21666. 80095fe: 2300 movs r3, #0
  21667. 8009600: 2b00 cmp r3, #0
  21668. 8009602: d00d beq.n 8009620 <HAL_DMA_IRQHandler+0x32c>
  21669. {
  21670. /* Clear the FIFO error flag */
  21671. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21672. 8009604: 687b ldr r3, [r7, #4]
  21673. 8009606: 6ddb ldr r3, [r3, #92] @ 0x5c
  21674. 8009608: f003 031f and.w r3, r3, #31
  21675. 800960c: 2201 movs r2, #1
  21676. 800960e: 409a lsls r2, r3
  21677. 8009610: 6a3b ldr r3, [r7, #32]
  21678. 8009612: 609a str r2, [r3, #8]
  21679. /* Update error code */
  21680. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  21681. 8009614: 687b ldr r3, [r7, #4]
  21682. 8009616: 6d5b ldr r3, [r3, #84] @ 0x54
  21683. 8009618: f043 0202 orr.w r2, r3, #2
  21684. 800961c: 687b ldr r3, [r7, #4]
  21685. 800961e: 655a str r2, [r3, #84] @ 0x54
  21686. }
  21687. }
  21688. /* Direct Mode Error Interrupt management ***********************************/
  21689. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21690. 8009620: 687b ldr r3, [r7, #4]
  21691. 8009622: 6ddb ldr r3, [r3, #92] @ 0x5c
  21692. 8009624: f003 031f and.w r3, r3, #31
  21693. 8009628: 2204 movs r2, #4
  21694. 800962a: 409a lsls r2, r3
  21695. 800962c: 69bb ldr r3, [r7, #24]
  21696. 800962e: 4013 ands r3, r2
  21697. 8009630: 2b00 cmp r3, #0
  21698. 8009632: f000 808f beq.w 8009754 <HAL_DMA_IRQHandler+0x460>
  21699. {
  21700. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  21701. 8009636: 687b ldr r3, [r7, #4]
  21702. 8009638: 681b ldr r3, [r3, #0]
  21703. 800963a: 4a2c ldr r2, [pc, #176] @ (80096ec <HAL_DMA_IRQHandler+0x3f8>)
  21704. 800963c: 4293 cmp r3, r2
  21705. 800963e: d04a beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21706. 8009640: 687b ldr r3, [r7, #4]
  21707. 8009642: 681b ldr r3, [r3, #0]
  21708. 8009644: 4a2a ldr r2, [pc, #168] @ (80096f0 <HAL_DMA_IRQHandler+0x3fc>)
  21709. 8009646: 4293 cmp r3, r2
  21710. 8009648: d045 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21711. 800964a: 687b ldr r3, [r7, #4]
  21712. 800964c: 681b ldr r3, [r3, #0]
  21713. 800964e: 4a29 ldr r2, [pc, #164] @ (80096f4 <HAL_DMA_IRQHandler+0x400>)
  21714. 8009650: 4293 cmp r3, r2
  21715. 8009652: d040 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21716. 8009654: 687b ldr r3, [r7, #4]
  21717. 8009656: 681b ldr r3, [r3, #0]
  21718. 8009658: 4a27 ldr r2, [pc, #156] @ (80096f8 <HAL_DMA_IRQHandler+0x404>)
  21719. 800965a: 4293 cmp r3, r2
  21720. 800965c: d03b beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21721. 800965e: 687b ldr r3, [r7, #4]
  21722. 8009660: 681b ldr r3, [r3, #0]
  21723. 8009662: 4a26 ldr r2, [pc, #152] @ (80096fc <HAL_DMA_IRQHandler+0x408>)
  21724. 8009664: 4293 cmp r3, r2
  21725. 8009666: d036 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21726. 8009668: 687b ldr r3, [r7, #4]
  21727. 800966a: 681b ldr r3, [r3, #0]
  21728. 800966c: 4a24 ldr r2, [pc, #144] @ (8009700 <HAL_DMA_IRQHandler+0x40c>)
  21729. 800966e: 4293 cmp r3, r2
  21730. 8009670: d031 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21731. 8009672: 687b ldr r3, [r7, #4]
  21732. 8009674: 681b ldr r3, [r3, #0]
  21733. 8009676: 4a23 ldr r2, [pc, #140] @ (8009704 <HAL_DMA_IRQHandler+0x410>)
  21734. 8009678: 4293 cmp r3, r2
  21735. 800967a: d02c beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21736. 800967c: 687b ldr r3, [r7, #4]
  21737. 800967e: 681b ldr r3, [r3, #0]
  21738. 8009680: 4a21 ldr r2, [pc, #132] @ (8009708 <HAL_DMA_IRQHandler+0x414>)
  21739. 8009682: 4293 cmp r3, r2
  21740. 8009684: d027 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21741. 8009686: 687b ldr r3, [r7, #4]
  21742. 8009688: 681b ldr r3, [r3, #0]
  21743. 800968a: 4a20 ldr r2, [pc, #128] @ (800970c <HAL_DMA_IRQHandler+0x418>)
  21744. 800968c: 4293 cmp r3, r2
  21745. 800968e: d022 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21746. 8009690: 687b ldr r3, [r7, #4]
  21747. 8009692: 681b ldr r3, [r3, #0]
  21748. 8009694: 4a1e ldr r2, [pc, #120] @ (8009710 <HAL_DMA_IRQHandler+0x41c>)
  21749. 8009696: 4293 cmp r3, r2
  21750. 8009698: d01d beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21751. 800969a: 687b ldr r3, [r7, #4]
  21752. 800969c: 681b ldr r3, [r3, #0]
  21753. 800969e: 4a1d ldr r2, [pc, #116] @ (8009714 <HAL_DMA_IRQHandler+0x420>)
  21754. 80096a0: 4293 cmp r3, r2
  21755. 80096a2: d018 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21756. 80096a4: 687b ldr r3, [r7, #4]
  21757. 80096a6: 681b ldr r3, [r3, #0]
  21758. 80096a8: 4a1b ldr r2, [pc, #108] @ (8009718 <HAL_DMA_IRQHandler+0x424>)
  21759. 80096aa: 4293 cmp r3, r2
  21760. 80096ac: d013 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21761. 80096ae: 687b ldr r3, [r7, #4]
  21762. 80096b0: 681b ldr r3, [r3, #0]
  21763. 80096b2: 4a1a ldr r2, [pc, #104] @ (800971c <HAL_DMA_IRQHandler+0x428>)
  21764. 80096b4: 4293 cmp r3, r2
  21765. 80096b6: d00e beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21766. 80096b8: 687b ldr r3, [r7, #4]
  21767. 80096ba: 681b ldr r3, [r3, #0]
  21768. 80096bc: 4a18 ldr r2, [pc, #96] @ (8009720 <HAL_DMA_IRQHandler+0x42c>)
  21769. 80096be: 4293 cmp r3, r2
  21770. 80096c0: d009 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21771. 80096c2: 687b ldr r3, [r7, #4]
  21772. 80096c4: 681b ldr r3, [r3, #0]
  21773. 80096c6: 4a17 ldr r2, [pc, #92] @ (8009724 <HAL_DMA_IRQHandler+0x430>)
  21774. 80096c8: 4293 cmp r3, r2
  21775. 80096ca: d004 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21776. 80096cc: 687b ldr r3, [r7, #4]
  21777. 80096ce: 681b ldr r3, [r3, #0]
  21778. 80096d0: 4a15 ldr r2, [pc, #84] @ (8009728 <HAL_DMA_IRQHandler+0x434>)
  21779. 80096d2: 4293 cmp r3, r2
  21780. 80096d4: d12a bne.n 800972c <HAL_DMA_IRQHandler+0x438>
  21781. 80096d6: 687b ldr r3, [r7, #4]
  21782. 80096d8: 681b ldr r3, [r3, #0]
  21783. 80096da: 681b ldr r3, [r3, #0]
  21784. 80096dc: f003 0302 and.w r3, r3, #2
  21785. 80096e0: 2b00 cmp r3, #0
  21786. 80096e2: bf14 ite ne
  21787. 80096e4: 2301 movne r3, #1
  21788. 80096e6: 2300 moveq r3, #0
  21789. 80096e8: b2db uxtb r3, r3
  21790. 80096ea: e023 b.n 8009734 <HAL_DMA_IRQHandler+0x440>
  21791. 80096ec: 40020010 .word 0x40020010
  21792. 80096f0: 40020028 .word 0x40020028
  21793. 80096f4: 40020040 .word 0x40020040
  21794. 80096f8: 40020058 .word 0x40020058
  21795. 80096fc: 40020070 .word 0x40020070
  21796. 8009700: 40020088 .word 0x40020088
  21797. 8009704: 400200a0 .word 0x400200a0
  21798. 8009708: 400200b8 .word 0x400200b8
  21799. 800970c: 40020410 .word 0x40020410
  21800. 8009710: 40020428 .word 0x40020428
  21801. 8009714: 40020440 .word 0x40020440
  21802. 8009718: 40020458 .word 0x40020458
  21803. 800971c: 40020470 .word 0x40020470
  21804. 8009720: 40020488 .word 0x40020488
  21805. 8009724: 400204a0 .word 0x400204a0
  21806. 8009728: 400204b8 .word 0x400204b8
  21807. 800972c: 687b ldr r3, [r7, #4]
  21808. 800972e: 681b ldr r3, [r3, #0]
  21809. 8009730: 681b ldr r3, [r3, #0]
  21810. 8009732: 2300 movs r3, #0
  21811. 8009734: 2b00 cmp r3, #0
  21812. 8009736: d00d beq.n 8009754 <HAL_DMA_IRQHandler+0x460>
  21813. {
  21814. /* Clear the direct mode error flag */
  21815. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21816. 8009738: 687b ldr r3, [r7, #4]
  21817. 800973a: 6ddb ldr r3, [r3, #92] @ 0x5c
  21818. 800973c: f003 031f and.w r3, r3, #31
  21819. 8009740: 2204 movs r2, #4
  21820. 8009742: 409a lsls r2, r3
  21821. 8009744: 6a3b ldr r3, [r7, #32]
  21822. 8009746: 609a str r2, [r3, #8]
  21823. /* Update error code */
  21824. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  21825. 8009748: 687b ldr r3, [r7, #4]
  21826. 800974a: 6d5b ldr r3, [r3, #84] @ 0x54
  21827. 800974c: f043 0204 orr.w r2, r3, #4
  21828. 8009750: 687b ldr r3, [r7, #4]
  21829. 8009752: 655a str r2, [r3, #84] @ 0x54
  21830. }
  21831. }
  21832. /* Half Transfer Complete Interrupt management ******************************/
  21833. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21834. 8009754: 687b ldr r3, [r7, #4]
  21835. 8009756: 6ddb ldr r3, [r3, #92] @ 0x5c
  21836. 8009758: f003 031f and.w r3, r3, #31
  21837. 800975c: 2210 movs r2, #16
  21838. 800975e: 409a lsls r2, r3
  21839. 8009760: 69bb ldr r3, [r7, #24]
  21840. 8009762: 4013 ands r3, r2
  21841. 8009764: 2b00 cmp r3, #0
  21842. 8009766: f000 80a6 beq.w 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21843. {
  21844. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  21845. 800976a: 687b ldr r3, [r7, #4]
  21846. 800976c: 681b ldr r3, [r3, #0]
  21847. 800976e: 4a85 ldr r2, [pc, #532] @ (8009984 <HAL_DMA_IRQHandler+0x690>)
  21848. 8009770: 4293 cmp r3, r2
  21849. 8009772: d04a beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21850. 8009774: 687b ldr r3, [r7, #4]
  21851. 8009776: 681b ldr r3, [r3, #0]
  21852. 8009778: 4a83 ldr r2, [pc, #524] @ (8009988 <HAL_DMA_IRQHandler+0x694>)
  21853. 800977a: 4293 cmp r3, r2
  21854. 800977c: d045 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21855. 800977e: 687b ldr r3, [r7, #4]
  21856. 8009780: 681b ldr r3, [r3, #0]
  21857. 8009782: 4a82 ldr r2, [pc, #520] @ (800998c <HAL_DMA_IRQHandler+0x698>)
  21858. 8009784: 4293 cmp r3, r2
  21859. 8009786: d040 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21860. 8009788: 687b ldr r3, [r7, #4]
  21861. 800978a: 681b ldr r3, [r3, #0]
  21862. 800978c: 4a80 ldr r2, [pc, #512] @ (8009990 <HAL_DMA_IRQHandler+0x69c>)
  21863. 800978e: 4293 cmp r3, r2
  21864. 8009790: d03b beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21865. 8009792: 687b ldr r3, [r7, #4]
  21866. 8009794: 681b ldr r3, [r3, #0]
  21867. 8009796: 4a7f ldr r2, [pc, #508] @ (8009994 <HAL_DMA_IRQHandler+0x6a0>)
  21868. 8009798: 4293 cmp r3, r2
  21869. 800979a: d036 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21870. 800979c: 687b ldr r3, [r7, #4]
  21871. 800979e: 681b ldr r3, [r3, #0]
  21872. 80097a0: 4a7d ldr r2, [pc, #500] @ (8009998 <HAL_DMA_IRQHandler+0x6a4>)
  21873. 80097a2: 4293 cmp r3, r2
  21874. 80097a4: d031 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21875. 80097a6: 687b ldr r3, [r7, #4]
  21876. 80097a8: 681b ldr r3, [r3, #0]
  21877. 80097aa: 4a7c ldr r2, [pc, #496] @ (800999c <HAL_DMA_IRQHandler+0x6a8>)
  21878. 80097ac: 4293 cmp r3, r2
  21879. 80097ae: d02c beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21880. 80097b0: 687b ldr r3, [r7, #4]
  21881. 80097b2: 681b ldr r3, [r3, #0]
  21882. 80097b4: 4a7a ldr r2, [pc, #488] @ (80099a0 <HAL_DMA_IRQHandler+0x6ac>)
  21883. 80097b6: 4293 cmp r3, r2
  21884. 80097b8: d027 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21885. 80097ba: 687b ldr r3, [r7, #4]
  21886. 80097bc: 681b ldr r3, [r3, #0]
  21887. 80097be: 4a79 ldr r2, [pc, #484] @ (80099a4 <HAL_DMA_IRQHandler+0x6b0>)
  21888. 80097c0: 4293 cmp r3, r2
  21889. 80097c2: d022 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21890. 80097c4: 687b ldr r3, [r7, #4]
  21891. 80097c6: 681b ldr r3, [r3, #0]
  21892. 80097c8: 4a77 ldr r2, [pc, #476] @ (80099a8 <HAL_DMA_IRQHandler+0x6b4>)
  21893. 80097ca: 4293 cmp r3, r2
  21894. 80097cc: d01d beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21895. 80097ce: 687b ldr r3, [r7, #4]
  21896. 80097d0: 681b ldr r3, [r3, #0]
  21897. 80097d2: 4a76 ldr r2, [pc, #472] @ (80099ac <HAL_DMA_IRQHandler+0x6b8>)
  21898. 80097d4: 4293 cmp r3, r2
  21899. 80097d6: d018 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21900. 80097d8: 687b ldr r3, [r7, #4]
  21901. 80097da: 681b ldr r3, [r3, #0]
  21902. 80097dc: 4a74 ldr r2, [pc, #464] @ (80099b0 <HAL_DMA_IRQHandler+0x6bc>)
  21903. 80097de: 4293 cmp r3, r2
  21904. 80097e0: d013 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21905. 80097e2: 687b ldr r3, [r7, #4]
  21906. 80097e4: 681b ldr r3, [r3, #0]
  21907. 80097e6: 4a73 ldr r2, [pc, #460] @ (80099b4 <HAL_DMA_IRQHandler+0x6c0>)
  21908. 80097e8: 4293 cmp r3, r2
  21909. 80097ea: d00e beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21910. 80097ec: 687b ldr r3, [r7, #4]
  21911. 80097ee: 681b ldr r3, [r3, #0]
  21912. 80097f0: 4a71 ldr r2, [pc, #452] @ (80099b8 <HAL_DMA_IRQHandler+0x6c4>)
  21913. 80097f2: 4293 cmp r3, r2
  21914. 80097f4: d009 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21915. 80097f6: 687b ldr r3, [r7, #4]
  21916. 80097f8: 681b ldr r3, [r3, #0]
  21917. 80097fa: 4a70 ldr r2, [pc, #448] @ (80099bc <HAL_DMA_IRQHandler+0x6c8>)
  21918. 80097fc: 4293 cmp r3, r2
  21919. 80097fe: d004 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21920. 8009800: 687b ldr r3, [r7, #4]
  21921. 8009802: 681b ldr r3, [r3, #0]
  21922. 8009804: 4a6e ldr r2, [pc, #440] @ (80099c0 <HAL_DMA_IRQHandler+0x6cc>)
  21923. 8009806: 4293 cmp r3, r2
  21924. 8009808: d10a bne.n 8009820 <HAL_DMA_IRQHandler+0x52c>
  21925. 800980a: 687b ldr r3, [r7, #4]
  21926. 800980c: 681b ldr r3, [r3, #0]
  21927. 800980e: 681b ldr r3, [r3, #0]
  21928. 8009810: f003 0308 and.w r3, r3, #8
  21929. 8009814: 2b00 cmp r3, #0
  21930. 8009816: bf14 ite ne
  21931. 8009818: 2301 movne r3, #1
  21932. 800981a: 2300 moveq r3, #0
  21933. 800981c: b2db uxtb r3, r3
  21934. 800981e: e009 b.n 8009834 <HAL_DMA_IRQHandler+0x540>
  21935. 8009820: 687b ldr r3, [r7, #4]
  21936. 8009822: 681b ldr r3, [r3, #0]
  21937. 8009824: 681b ldr r3, [r3, #0]
  21938. 8009826: f003 0304 and.w r3, r3, #4
  21939. 800982a: 2b00 cmp r3, #0
  21940. 800982c: bf14 ite ne
  21941. 800982e: 2301 movne r3, #1
  21942. 8009830: 2300 moveq r3, #0
  21943. 8009832: b2db uxtb r3, r3
  21944. 8009834: 2b00 cmp r3, #0
  21945. 8009836: d03e beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21946. {
  21947. /* Clear the half transfer complete flag */
  21948. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  21949. 8009838: 687b ldr r3, [r7, #4]
  21950. 800983a: 6ddb ldr r3, [r3, #92] @ 0x5c
  21951. 800983c: f003 031f and.w r3, r3, #31
  21952. 8009840: 2210 movs r2, #16
  21953. 8009842: 409a lsls r2, r3
  21954. 8009844: 6a3b ldr r3, [r7, #32]
  21955. 8009846: 609a str r2, [r3, #8]
  21956. /* Multi_Buffering mode enabled */
  21957. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  21958. 8009848: 687b ldr r3, [r7, #4]
  21959. 800984a: 681b ldr r3, [r3, #0]
  21960. 800984c: 681b ldr r3, [r3, #0]
  21961. 800984e: f403 2380 and.w r3, r3, #262144 @ 0x40000
  21962. 8009852: 2b00 cmp r3, #0
  21963. 8009854: d018 beq.n 8009888 <HAL_DMA_IRQHandler+0x594>
  21964. {
  21965. /* Current memory buffer used is Memory 0 */
  21966. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  21967. 8009856: 687b ldr r3, [r7, #4]
  21968. 8009858: 681b ldr r3, [r3, #0]
  21969. 800985a: 681b ldr r3, [r3, #0]
  21970. 800985c: f403 2300 and.w r3, r3, #524288 @ 0x80000
  21971. 8009860: 2b00 cmp r3, #0
  21972. 8009862: d108 bne.n 8009876 <HAL_DMA_IRQHandler+0x582>
  21973. {
  21974. if(hdma->XferHalfCpltCallback != NULL)
  21975. 8009864: 687b ldr r3, [r7, #4]
  21976. 8009866: 6c1b ldr r3, [r3, #64] @ 0x40
  21977. 8009868: 2b00 cmp r3, #0
  21978. 800986a: d024 beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21979. {
  21980. /* Half transfer callback */
  21981. hdma->XferHalfCpltCallback(hdma);
  21982. 800986c: 687b ldr r3, [r7, #4]
  21983. 800986e: 6c1b ldr r3, [r3, #64] @ 0x40
  21984. 8009870: 6878 ldr r0, [r7, #4]
  21985. 8009872: 4798 blx r3
  21986. 8009874: e01f b.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21987. }
  21988. }
  21989. /* Current memory buffer used is Memory 1 */
  21990. else
  21991. {
  21992. if(hdma->XferM1HalfCpltCallback != NULL)
  21993. 8009876: 687b ldr r3, [r7, #4]
  21994. 8009878: 6c9b ldr r3, [r3, #72] @ 0x48
  21995. 800987a: 2b00 cmp r3, #0
  21996. 800987c: d01b beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21997. {
  21998. /* Half transfer callback */
  21999. hdma->XferM1HalfCpltCallback(hdma);
  22000. 800987e: 687b ldr r3, [r7, #4]
  22001. 8009880: 6c9b ldr r3, [r3, #72] @ 0x48
  22002. 8009882: 6878 ldr r0, [r7, #4]
  22003. 8009884: 4798 blx r3
  22004. 8009886: e016 b.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  22005. }
  22006. }
  22007. else
  22008. {
  22009. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  22010. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  22011. 8009888: 687b ldr r3, [r7, #4]
  22012. 800988a: 681b ldr r3, [r3, #0]
  22013. 800988c: 681b ldr r3, [r3, #0]
  22014. 800988e: f403 7380 and.w r3, r3, #256 @ 0x100
  22015. 8009892: 2b00 cmp r3, #0
  22016. 8009894: d107 bne.n 80098a6 <HAL_DMA_IRQHandler+0x5b2>
  22017. {
  22018. /* Disable the half transfer interrupt */
  22019. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  22020. 8009896: 687b ldr r3, [r7, #4]
  22021. 8009898: 681b ldr r3, [r3, #0]
  22022. 800989a: 681a ldr r2, [r3, #0]
  22023. 800989c: 687b ldr r3, [r7, #4]
  22024. 800989e: 681b ldr r3, [r3, #0]
  22025. 80098a0: f022 0208 bic.w r2, r2, #8
  22026. 80098a4: 601a str r2, [r3, #0]
  22027. }
  22028. if(hdma->XferHalfCpltCallback != NULL)
  22029. 80098a6: 687b ldr r3, [r7, #4]
  22030. 80098a8: 6c1b ldr r3, [r3, #64] @ 0x40
  22031. 80098aa: 2b00 cmp r3, #0
  22032. 80098ac: d003 beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  22033. {
  22034. /* Half transfer callback */
  22035. hdma->XferHalfCpltCallback(hdma);
  22036. 80098ae: 687b ldr r3, [r7, #4]
  22037. 80098b0: 6c1b ldr r3, [r3, #64] @ 0x40
  22038. 80098b2: 6878 ldr r0, [r7, #4]
  22039. 80098b4: 4798 blx r3
  22040. }
  22041. }
  22042. }
  22043. }
  22044. /* Transfer Complete Interrupt management ***********************************/
  22045. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22046. 80098b6: 687b ldr r3, [r7, #4]
  22047. 80098b8: 6ddb ldr r3, [r3, #92] @ 0x5c
  22048. 80098ba: f003 031f and.w r3, r3, #31
  22049. 80098be: 2220 movs r2, #32
  22050. 80098c0: 409a lsls r2, r3
  22051. 80098c2: 69bb ldr r3, [r7, #24]
  22052. 80098c4: 4013 ands r3, r2
  22053. 80098c6: 2b00 cmp r3, #0
  22054. 80098c8: f000 8110 beq.w 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22055. {
  22056. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  22057. 80098cc: 687b ldr r3, [r7, #4]
  22058. 80098ce: 681b ldr r3, [r3, #0]
  22059. 80098d0: 4a2c ldr r2, [pc, #176] @ (8009984 <HAL_DMA_IRQHandler+0x690>)
  22060. 80098d2: 4293 cmp r3, r2
  22061. 80098d4: d04a beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22062. 80098d6: 687b ldr r3, [r7, #4]
  22063. 80098d8: 681b ldr r3, [r3, #0]
  22064. 80098da: 4a2b ldr r2, [pc, #172] @ (8009988 <HAL_DMA_IRQHandler+0x694>)
  22065. 80098dc: 4293 cmp r3, r2
  22066. 80098de: d045 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22067. 80098e0: 687b ldr r3, [r7, #4]
  22068. 80098e2: 681b ldr r3, [r3, #0]
  22069. 80098e4: 4a29 ldr r2, [pc, #164] @ (800998c <HAL_DMA_IRQHandler+0x698>)
  22070. 80098e6: 4293 cmp r3, r2
  22071. 80098e8: d040 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22072. 80098ea: 687b ldr r3, [r7, #4]
  22073. 80098ec: 681b ldr r3, [r3, #0]
  22074. 80098ee: 4a28 ldr r2, [pc, #160] @ (8009990 <HAL_DMA_IRQHandler+0x69c>)
  22075. 80098f0: 4293 cmp r3, r2
  22076. 80098f2: d03b beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22077. 80098f4: 687b ldr r3, [r7, #4]
  22078. 80098f6: 681b ldr r3, [r3, #0]
  22079. 80098f8: 4a26 ldr r2, [pc, #152] @ (8009994 <HAL_DMA_IRQHandler+0x6a0>)
  22080. 80098fa: 4293 cmp r3, r2
  22081. 80098fc: d036 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22082. 80098fe: 687b ldr r3, [r7, #4]
  22083. 8009900: 681b ldr r3, [r3, #0]
  22084. 8009902: 4a25 ldr r2, [pc, #148] @ (8009998 <HAL_DMA_IRQHandler+0x6a4>)
  22085. 8009904: 4293 cmp r3, r2
  22086. 8009906: d031 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22087. 8009908: 687b ldr r3, [r7, #4]
  22088. 800990a: 681b ldr r3, [r3, #0]
  22089. 800990c: 4a23 ldr r2, [pc, #140] @ (800999c <HAL_DMA_IRQHandler+0x6a8>)
  22090. 800990e: 4293 cmp r3, r2
  22091. 8009910: d02c beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22092. 8009912: 687b ldr r3, [r7, #4]
  22093. 8009914: 681b ldr r3, [r3, #0]
  22094. 8009916: 4a22 ldr r2, [pc, #136] @ (80099a0 <HAL_DMA_IRQHandler+0x6ac>)
  22095. 8009918: 4293 cmp r3, r2
  22096. 800991a: d027 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22097. 800991c: 687b ldr r3, [r7, #4]
  22098. 800991e: 681b ldr r3, [r3, #0]
  22099. 8009920: 4a20 ldr r2, [pc, #128] @ (80099a4 <HAL_DMA_IRQHandler+0x6b0>)
  22100. 8009922: 4293 cmp r3, r2
  22101. 8009924: d022 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22102. 8009926: 687b ldr r3, [r7, #4]
  22103. 8009928: 681b ldr r3, [r3, #0]
  22104. 800992a: 4a1f ldr r2, [pc, #124] @ (80099a8 <HAL_DMA_IRQHandler+0x6b4>)
  22105. 800992c: 4293 cmp r3, r2
  22106. 800992e: d01d beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22107. 8009930: 687b ldr r3, [r7, #4]
  22108. 8009932: 681b ldr r3, [r3, #0]
  22109. 8009934: 4a1d ldr r2, [pc, #116] @ (80099ac <HAL_DMA_IRQHandler+0x6b8>)
  22110. 8009936: 4293 cmp r3, r2
  22111. 8009938: d018 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22112. 800993a: 687b ldr r3, [r7, #4]
  22113. 800993c: 681b ldr r3, [r3, #0]
  22114. 800993e: 4a1c ldr r2, [pc, #112] @ (80099b0 <HAL_DMA_IRQHandler+0x6bc>)
  22115. 8009940: 4293 cmp r3, r2
  22116. 8009942: d013 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22117. 8009944: 687b ldr r3, [r7, #4]
  22118. 8009946: 681b ldr r3, [r3, #0]
  22119. 8009948: 4a1a ldr r2, [pc, #104] @ (80099b4 <HAL_DMA_IRQHandler+0x6c0>)
  22120. 800994a: 4293 cmp r3, r2
  22121. 800994c: d00e beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22122. 800994e: 687b ldr r3, [r7, #4]
  22123. 8009950: 681b ldr r3, [r3, #0]
  22124. 8009952: 4a19 ldr r2, [pc, #100] @ (80099b8 <HAL_DMA_IRQHandler+0x6c4>)
  22125. 8009954: 4293 cmp r3, r2
  22126. 8009956: d009 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22127. 8009958: 687b ldr r3, [r7, #4]
  22128. 800995a: 681b ldr r3, [r3, #0]
  22129. 800995c: 4a17 ldr r2, [pc, #92] @ (80099bc <HAL_DMA_IRQHandler+0x6c8>)
  22130. 800995e: 4293 cmp r3, r2
  22131. 8009960: d004 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22132. 8009962: 687b ldr r3, [r7, #4]
  22133. 8009964: 681b ldr r3, [r3, #0]
  22134. 8009966: 4a16 ldr r2, [pc, #88] @ (80099c0 <HAL_DMA_IRQHandler+0x6cc>)
  22135. 8009968: 4293 cmp r3, r2
  22136. 800996a: d12b bne.n 80099c4 <HAL_DMA_IRQHandler+0x6d0>
  22137. 800996c: 687b ldr r3, [r7, #4]
  22138. 800996e: 681b ldr r3, [r3, #0]
  22139. 8009970: 681b ldr r3, [r3, #0]
  22140. 8009972: f003 0310 and.w r3, r3, #16
  22141. 8009976: 2b00 cmp r3, #0
  22142. 8009978: bf14 ite ne
  22143. 800997a: 2301 movne r3, #1
  22144. 800997c: 2300 moveq r3, #0
  22145. 800997e: b2db uxtb r3, r3
  22146. 8009980: e02a b.n 80099d8 <HAL_DMA_IRQHandler+0x6e4>
  22147. 8009982: bf00 nop
  22148. 8009984: 40020010 .word 0x40020010
  22149. 8009988: 40020028 .word 0x40020028
  22150. 800998c: 40020040 .word 0x40020040
  22151. 8009990: 40020058 .word 0x40020058
  22152. 8009994: 40020070 .word 0x40020070
  22153. 8009998: 40020088 .word 0x40020088
  22154. 800999c: 400200a0 .word 0x400200a0
  22155. 80099a0: 400200b8 .word 0x400200b8
  22156. 80099a4: 40020410 .word 0x40020410
  22157. 80099a8: 40020428 .word 0x40020428
  22158. 80099ac: 40020440 .word 0x40020440
  22159. 80099b0: 40020458 .word 0x40020458
  22160. 80099b4: 40020470 .word 0x40020470
  22161. 80099b8: 40020488 .word 0x40020488
  22162. 80099bc: 400204a0 .word 0x400204a0
  22163. 80099c0: 400204b8 .word 0x400204b8
  22164. 80099c4: 687b ldr r3, [r7, #4]
  22165. 80099c6: 681b ldr r3, [r3, #0]
  22166. 80099c8: 681b ldr r3, [r3, #0]
  22167. 80099ca: f003 0302 and.w r3, r3, #2
  22168. 80099ce: 2b00 cmp r3, #0
  22169. 80099d0: bf14 ite ne
  22170. 80099d2: 2301 movne r3, #1
  22171. 80099d4: 2300 moveq r3, #0
  22172. 80099d6: b2db uxtb r3, r3
  22173. 80099d8: 2b00 cmp r3, #0
  22174. 80099da: f000 8087 beq.w 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22175. {
  22176. /* Clear the transfer complete flag */
  22177. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  22178. 80099de: 687b ldr r3, [r7, #4]
  22179. 80099e0: 6ddb ldr r3, [r3, #92] @ 0x5c
  22180. 80099e2: f003 031f and.w r3, r3, #31
  22181. 80099e6: 2220 movs r2, #32
  22182. 80099e8: 409a lsls r2, r3
  22183. 80099ea: 6a3b ldr r3, [r7, #32]
  22184. 80099ec: 609a str r2, [r3, #8]
  22185. if(HAL_DMA_STATE_ABORT == hdma->State)
  22186. 80099ee: 687b ldr r3, [r7, #4]
  22187. 80099f0: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  22188. 80099f4: b2db uxtb r3, r3
  22189. 80099f6: 2b04 cmp r3, #4
  22190. 80099f8: d139 bne.n 8009a6e <HAL_DMA_IRQHandler+0x77a>
  22191. {
  22192. /* Disable all the transfer interrupts */
  22193. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  22194. 80099fa: 687b ldr r3, [r7, #4]
  22195. 80099fc: 681b ldr r3, [r3, #0]
  22196. 80099fe: 681a ldr r2, [r3, #0]
  22197. 8009a00: 687b ldr r3, [r7, #4]
  22198. 8009a02: 681b ldr r3, [r3, #0]
  22199. 8009a04: f022 0216 bic.w r2, r2, #22
  22200. 8009a08: 601a str r2, [r3, #0]
  22201. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  22202. 8009a0a: 687b ldr r3, [r7, #4]
  22203. 8009a0c: 681b ldr r3, [r3, #0]
  22204. 8009a0e: 695a ldr r2, [r3, #20]
  22205. 8009a10: 687b ldr r3, [r7, #4]
  22206. 8009a12: 681b ldr r3, [r3, #0]
  22207. 8009a14: f022 0280 bic.w r2, r2, #128 @ 0x80
  22208. 8009a18: 615a str r2, [r3, #20]
  22209. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  22210. 8009a1a: 687b ldr r3, [r7, #4]
  22211. 8009a1c: 6c1b ldr r3, [r3, #64] @ 0x40
  22212. 8009a1e: 2b00 cmp r3, #0
  22213. 8009a20: d103 bne.n 8009a2a <HAL_DMA_IRQHandler+0x736>
  22214. 8009a22: 687b ldr r3, [r7, #4]
  22215. 8009a24: 6c9b ldr r3, [r3, #72] @ 0x48
  22216. 8009a26: 2b00 cmp r3, #0
  22217. 8009a28: d007 beq.n 8009a3a <HAL_DMA_IRQHandler+0x746>
  22218. {
  22219. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  22220. 8009a2a: 687b ldr r3, [r7, #4]
  22221. 8009a2c: 681b ldr r3, [r3, #0]
  22222. 8009a2e: 681a ldr r2, [r3, #0]
  22223. 8009a30: 687b ldr r3, [r7, #4]
  22224. 8009a32: 681b ldr r3, [r3, #0]
  22225. 8009a34: f022 0208 bic.w r2, r2, #8
  22226. 8009a38: 601a str r2, [r3, #0]
  22227. }
  22228. /* Clear all interrupt flags at correct offset within the register */
  22229. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  22230. 8009a3a: 687b ldr r3, [r7, #4]
  22231. 8009a3c: 6ddb ldr r3, [r3, #92] @ 0x5c
  22232. 8009a3e: f003 031f and.w r3, r3, #31
  22233. 8009a42: 223f movs r2, #63 @ 0x3f
  22234. 8009a44: 409a lsls r2, r3
  22235. 8009a46: 6a3b ldr r3, [r7, #32]
  22236. 8009a48: 609a str r2, [r3, #8]
  22237. /* Change the DMA state */
  22238. hdma->State = HAL_DMA_STATE_READY;
  22239. 8009a4a: 687b ldr r3, [r7, #4]
  22240. 8009a4c: 2201 movs r2, #1
  22241. 8009a4e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22242. /* Process Unlocked */
  22243. __HAL_UNLOCK(hdma);
  22244. 8009a52: 687b ldr r3, [r7, #4]
  22245. 8009a54: 2200 movs r2, #0
  22246. 8009a56: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22247. if(hdma->XferAbortCallback != NULL)
  22248. 8009a5a: 687b ldr r3, [r7, #4]
  22249. 8009a5c: 6d1b ldr r3, [r3, #80] @ 0x50
  22250. 8009a5e: 2b00 cmp r3, #0
  22251. 8009a60: f000 834a beq.w 800a0f8 <HAL_DMA_IRQHandler+0xe04>
  22252. {
  22253. hdma->XferAbortCallback(hdma);
  22254. 8009a64: 687b ldr r3, [r7, #4]
  22255. 8009a66: 6d1b ldr r3, [r3, #80] @ 0x50
  22256. 8009a68: 6878 ldr r0, [r7, #4]
  22257. 8009a6a: 4798 blx r3
  22258. }
  22259. return;
  22260. 8009a6c: e344 b.n 800a0f8 <HAL_DMA_IRQHandler+0xe04>
  22261. }
  22262. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  22263. 8009a6e: 687b ldr r3, [r7, #4]
  22264. 8009a70: 681b ldr r3, [r3, #0]
  22265. 8009a72: 681b ldr r3, [r3, #0]
  22266. 8009a74: f403 2380 and.w r3, r3, #262144 @ 0x40000
  22267. 8009a78: 2b00 cmp r3, #0
  22268. 8009a7a: d018 beq.n 8009aae <HAL_DMA_IRQHandler+0x7ba>
  22269. {
  22270. /* Current memory buffer used is Memory 0 */
  22271. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  22272. 8009a7c: 687b ldr r3, [r7, #4]
  22273. 8009a7e: 681b ldr r3, [r3, #0]
  22274. 8009a80: 681b ldr r3, [r3, #0]
  22275. 8009a82: f403 2300 and.w r3, r3, #524288 @ 0x80000
  22276. 8009a86: 2b00 cmp r3, #0
  22277. 8009a88: d108 bne.n 8009a9c <HAL_DMA_IRQHandler+0x7a8>
  22278. {
  22279. if(hdma->XferM1CpltCallback != NULL)
  22280. 8009a8a: 687b ldr r3, [r7, #4]
  22281. 8009a8c: 6c5b ldr r3, [r3, #68] @ 0x44
  22282. 8009a8e: 2b00 cmp r3, #0
  22283. 8009a90: d02c beq.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22284. {
  22285. /* Transfer complete Callback for memory1 */
  22286. hdma->XferM1CpltCallback(hdma);
  22287. 8009a92: 687b ldr r3, [r7, #4]
  22288. 8009a94: 6c5b ldr r3, [r3, #68] @ 0x44
  22289. 8009a96: 6878 ldr r0, [r7, #4]
  22290. 8009a98: 4798 blx r3
  22291. 8009a9a: e027 b.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22292. }
  22293. }
  22294. /* Current memory buffer used is Memory 1 */
  22295. else
  22296. {
  22297. if(hdma->XferCpltCallback != NULL)
  22298. 8009a9c: 687b ldr r3, [r7, #4]
  22299. 8009a9e: 6bdb ldr r3, [r3, #60] @ 0x3c
  22300. 8009aa0: 2b00 cmp r3, #0
  22301. 8009aa2: d023 beq.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22302. {
  22303. /* Transfer complete Callback for memory0 */
  22304. hdma->XferCpltCallback(hdma);
  22305. 8009aa4: 687b ldr r3, [r7, #4]
  22306. 8009aa6: 6bdb ldr r3, [r3, #60] @ 0x3c
  22307. 8009aa8: 6878 ldr r0, [r7, #4]
  22308. 8009aaa: 4798 blx r3
  22309. 8009aac: e01e b.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22310. }
  22311. }
  22312. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  22313. else
  22314. {
  22315. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  22316. 8009aae: 687b ldr r3, [r7, #4]
  22317. 8009ab0: 681b ldr r3, [r3, #0]
  22318. 8009ab2: 681b ldr r3, [r3, #0]
  22319. 8009ab4: f403 7380 and.w r3, r3, #256 @ 0x100
  22320. 8009ab8: 2b00 cmp r3, #0
  22321. 8009aba: d10f bne.n 8009adc <HAL_DMA_IRQHandler+0x7e8>
  22322. {
  22323. /* Disable the transfer complete interrupt */
  22324. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  22325. 8009abc: 687b ldr r3, [r7, #4]
  22326. 8009abe: 681b ldr r3, [r3, #0]
  22327. 8009ac0: 681a ldr r2, [r3, #0]
  22328. 8009ac2: 687b ldr r3, [r7, #4]
  22329. 8009ac4: 681b ldr r3, [r3, #0]
  22330. 8009ac6: f022 0210 bic.w r2, r2, #16
  22331. 8009aca: 601a str r2, [r3, #0]
  22332. /* Change the DMA state */
  22333. hdma->State = HAL_DMA_STATE_READY;
  22334. 8009acc: 687b ldr r3, [r7, #4]
  22335. 8009ace: 2201 movs r2, #1
  22336. 8009ad0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22337. /* Process Unlocked */
  22338. __HAL_UNLOCK(hdma);
  22339. 8009ad4: 687b ldr r3, [r7, #4]
  22340. 8009ad6: 2200 movs r2, #0
  22341. 8009ad8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22342. }
  22343. if(hdma->XferCpltCallback != NULL)
  22344. 8009adc: 687b ldr r3, [r7, #4]
  22345. 8009ade: 6bdb ldr r3, [r3, #60] @ 0x3c
  22346. 8009ae0: 2b00 cmp r3, #0
  22347. 8009ae2: d003 beq.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22348. {
  22349. /* Transfer complete callback */
  22350. hdma->XferCpltCallback(hdma);
  22351. 8009ae4: 687b ldr r3, [r7, #4]
  22352. 8009ae6: 6bdb ldr r3, [r3, #60] @ 0x3c
  22353. 8009ae8: 6878 ldr r0, [r7, #4]
  22354. 8009aea: 4798 blx r3
  22355. }
  22356. }
  22357. }
  22358. /* manage error case */
  22359. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  22360. 8009aec: 687b ldr r3, [r7, #4]
  22361. 8009aee: 6d5b ldr r3, [r3, #84] @ 0x54
  22362. 8009af0: 2b00 cmp r3, #0
  22363. 8009af2: f000 8306 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22364. {
  22365. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  22366. 8009af6: 687b ldr r3, [r7, #4]
  22367. 8009af8: 6d5b ldr r3, [r3, #84] @ 0x54
  22368. 8009afa: f003 0301 and.w r3, r3, #1
  22369. 8009afe: 2b00 cmp r3, #0
  22370. 8009b00: f000 8088 beq.w 8009c14 <HAL_DMA_IRQHandler+0x920>
  22371. {
  22372. hdma->State = HAL_DMA_STATE_ABORT;
  22373. 8009b04: 687b ldr r3, [r7, #4]
  22374. 8009b06: 2204 movs r2, #4
  22375. 8009b08: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22376. /* Disable the stream */
  22377. __HAL_DMA_DISABLE(hdma);
  22378. 8009b0c: 687b ldr r3, [r7, #4]
  22379. 8009b0e: 681b ldr r3, [r3, #0]
  22380. 8009b10: 4a7a ldr r2, [pc, #488] @ (8009cfc <HAL_DMA_IRQHandler+0xa08>)
  22381. 8009b12: 4293 cmp r3, r2
  22382. 8009b14: d04a beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22383. 8009b16: 687b ldr r3, [r7, #4]
  22384. 8009b18: 681b ldr r3, [r3, #0]
  22385. 8009b1a: 4a79 ldr r2, [pc, #484] @ (8009d00 <HAL_DMA_IRQHandler+0xa0c>)
  22386. 8009b1c: 4293 cmp r3, r2
  22387. 8009b1e: d045 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22388. 8009b20: 687b ldr r3, [r7, #4]
  22389. 8009b22: 681b ldr r3, [r3, #0]
  22390. 8009b24: 4a77 ldr r2, [pc, #476] @ (8009d04 <HAL_DMA_IRQHandler+0xa10>)
  22391. 8009b26: 4293 cmp r3, r2
  22392. 8009b28: d040 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22393. 8009b2a: 687b ldr r3, [r7, #4]
  22394. 8009b2c: 681b ldr r3, [r3, #0]
  22395. 8009b2e: 4a76 ldr r2, [pc, #472] @ (8009d08 <HAL_DMA_IRQHandler+0xa14>)
  22396. 8009b30: 4293 cmp r3, r2
  22397. 8009b32: d03b beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22398. 8009b34: 687b ldr r3, [r7, #4]
  22399. 8009b36: 681b ldr r3, [r3, #0]
  22400. 8009b38: 4a74 ldr r2, [pc, #464] @ (8009d0c <HAL_DMA_IRQHandler+0xa18>)
  22401. 8009b3a: 4293 cmp r3, r2
  22402. 8009b3c: d036 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22403. 8009b3e: 687b ldr r3, [r7, #4]
  22404. 8009b40: 681b ldr r3, [r3, #0]
  22405. 8009b42: 4a73 ldr r2, [pc, #460] @ (8009d10 <HAL_DMA_IRQHandler+0xa1c>)
  22406. 8009b44: 4293 cmp r3, r2
  22407. 8009b46: d031 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22408. 8009b48: 687b ldr r3, [r7, #4]
  22409. 8009b4a: 681b ldr r3, [r3, #0]
  22410. 8009b4c: 4a71 ldr r2, [pc, #452] @ (8009d14 <HAL_DMA_IRQHandler+0xa20>)
  22411. 8009b4e: 4293 cmp r3, r2
  22412. 8009b50: d02c beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22413. 8009b52: 687b ldr r3, [r7, #4]
  22414. 8009b54: 681b ldr r3, [r3, #0]
  22415. 8009b56: 4a70 ldr r2, [pc, #448] @ (8009d18 <HAL_DMA_IRQHandler+0xa24>)
  22416. 8009b58: 4293 cmp r3, r2
  22417. 8009b5a: d027 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22418. 8009b5c: 687b ldr r3, [r7, #4]
  22419. 8009b5e: 681b ldr r3, [r3, #0]
  22420. 8009b60: 4a6e ldr r2, [pc, #440] @ (8009d1c <HAL_DMA_IRQHandler+0xa28>)
  22421. 8009b62: 4293 cmp r3, r2
  22422. 8009b64: d022 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22423. 8009b66: 687b ldr r3, [r7, #4]
  22424. 8009b68: 681b ldr r3, [r3, #0]
  22425. 8009b6a: 4a6d ldr r2, [pc, #436] @ (8009d20 <HAL_DMA_IRQHandler+0xa2c>)
  22426. 8009b6c: 4293 cmp r3, r2
  22427. 8009b6e: d01d beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22428. 8009b70: 687b ldr r3, [r7, #4]
  22429. 8009b72: 681b ldr r3, [r3, #0]
  22430. 8009b74: 4a6b ldr r2, [pc, #428] @ (8009d24 <HAL_DMA_IRQHandler+0xa30>)
  22431. 8009b76: 4293 cmp r3, r2
  22432. 8009b78: d018 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22433. 8009b7a: 687b ldr r3, [r7, #4]
  22434. 8009b7c: 681b ldr r3, [r3, #0]
  22435. 8009b7e: 4a6a ldr r2, [pc, #424] @ (8009d28 <HAL_DMA_IRQHandler+0xa34>)
  22436. 8009b80: 4293 cmp r3, r2
  22437. 8009b82: d013 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22438. 8009b84: 687b ldr r3, [r7, #4]
  22439. 8009b86: 681b ldr r3, [r3, #0]
  22440. 8009b88: 4a68 ldr r2, [pc, #416] @ (8009d2c <HAL_DMA_IRQHandler+0xa38>)
  22441. 8009b8a: 4293 cmp r3, r2
  22442. 8009b8c: d00e beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22443. 8009b8e: 687b ldr r3, [r7, #4]
  22444. 8009b90: 681b ldr r3, [r3, #0]
  22445. 8009b92: 4a67 ldr r2, [pc, #412] @ (8009d30 <HAL_DMA_IRQHandler+0xa3c>)
  22446. 8009b94: 4293 cmp r3, r2
  22447. 8009b96: d009 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22448. 8009b98: 687b ldr r3, [r7, #4]
  22449. 8009b9a: 681b ldr r3, [r3, #0]
  22450. 8009b9c: 4a65 ldr r2, [pc, #404] @ (8009d34 <HAL_DMA_IRQHandler+0xa40>)
  22451. 8009b9e: 4293 cmp r3, r2
  22452. 8009ba0: d004 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22453. 8009ba2: 687b ldr r3, [r7, #4]
  22454. 8009ba4: 681b ldr r3, [r3, #0]
  22455. 8009ba6: 4a64 ldr r2, [pc, #400] @ (8009d38 <HAL_DMA_IRQHandler+0xa44>)
  22456. 8009ba8: 4293 cmp r3, r2
  22457. 8009baa: d108 bne.n 8009bbe <HAL_DMA_IRQHandler+0x8ca>
  22458. 8009bac: 687b ldr r3, [r7, #4]
  22459. 8009bae: 681b ldr r3, [r3, #0]
  22460. 8009bb0: 681a ldr r2, [r3, #0]
  22461. 8009bb2: 687b ldr r3, [r7, #4]
  22462. 8009bb4: 681b ldr r3, [r3, #0]
  22463. 8009bb6: f022 0201 bic.w r2, r2, #1
  22464. 8009bba: 601a str r2, [r3, #0]
  22465. 8009bbc: e007 b.n 8009bce <HAL_DMA_IRQHandler+0x8da>
  22466. 8009bbe: 687b ldr r3, [r7, #4]
  22467. 8009bc0: 681b ldr r3, [r3, #0]
  22468. 8009bc2: 681a ldr r2, [r3, #0]
  22469. 8009bc4: 687b ldr r3, [r7, #4]
  22470. 8009bc6: 681b ldr r3, [r3, #0]
  22471. 8009bc8: f022 0201 bic.w r2, r2, #1
  22472. 8009bcc: 601a str r2, [r3, #0]
  22473. do
  22474. {
  22475. if (++count > timeout)
  22476. 8009bce: 68fb ldr r3, [r7, #12]
  22477. 8009bd0: 3301 adds r3, #1
  22478. 8009bd2: 60fb str r3, [r7, #12]
  22479. 8009bd4: 6a7a ldr r2, [r7, #36] @ 0x24
  22480. 8009bd6: 429a cmp r2, r3
  22481. 8009bd8: d307 bcc.n 8009bea <HAL_DMA_IRQHandler+0x8f6>
  22482. {
  22483. break;
  22484. }
  22485. }
  22486. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  22487. 8009bda: 687b ldr r3, [r7, #4]
  22488. 8009bdc: 681b ldr r3, [r3, #0]
  22489. 8009bde: 681b ldr r3, [r3, #0]
  22490. 8009be0: f003 0301 and.w r3, r3, #1
  22491. 8009be4: 2b00 cmp r3, #0
  22492. 8009be6: d1f2 bne.n 8009bce <HAL_DMA_IRQHandler+0x8da>
  22493. 8009be8: e000 b.n 8009bec <HAL_DMA_IRQHandler+0x8f8>
  22494. break;
  22495. 8009bea: bf00 nop
  22496. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  22497. 8009bec: 687b ldr r3, [r7, #4]
  22498. 8009bee: 681b ldr r3, [r3, #0]
  22499. 8009bf0: 681b ldr r3, [r3, #0]
  22500. 8009bf2: f003 0301 and.w r3, r3, #1
  22501. 8009bf6: 2b00 cmp r3, #0
  22502. 8009bf8: d004 beq.n 8009c04 <HAL_DMA_IRQHandler+0x910>
  22503. {
  22504. /* Change the DMA state to error if DMA disable fails */
  22505. hdma->State = HAL_DMA_STATE_ERROR;
  22506. 8009bfa: 687b ldr r3, [r7, #4]
  22507. 8009bfc: 2203 movs r2, #3
  22508. 8009bfe: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22509. 8009c02: e003 b.n 8009c0c <HAL_DMA_IRQHandler+0x918>
  22510. }
  22511. else
  22512. {
  22513. /* Change the DMA state to Ready if DMA disable success */
  22514. hdma->State = HAL_DMA_STATE_READY;
  22515. 8009c04: 687b ldr r3, [r7, #4]
  22516. 8009c06: 2201 movs r2, #1
  22517. 8009c08: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22518. }
  22519. /* Process Unlocked */
  22520. __HAL_UNLOCK(hdma);
  22521. 8009c0c: 687b ldr r3, [r7, #4]
  22522. 8009c0e: 2200 movs r2, #0
  22523. 8009c10: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22524. }
  22525. if(hdma->XferErrorCallback != NULL)
  22526. 8009c14: 687b ldr r3, [r7, #4]
  22527. 8009c16: 6cdb ldr r3, [r3, #76] @ 0x4c
  22528. 8009c18: 2b00 cmp r3, #0
  22529. 8009c1a: f000 8272 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22530. {
  22531. /* Transfer error callback */
  22532. hdma->XferErrorCallback(hdma);
  22533. 8009c1e: 687b ldr r3, [r7, #4]
  22534. 8009c20: 6cdb ldr r3, [r3, #76] @ 0x4c
  22535. 8009c22: 6878 ldr r0, [r7, #4]
  22536. 8009c24: 4798 blx r3
  22537. 8009c26: e26c b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22538. }
  22539. }
  22540. }
  22541. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  22542. 8009c28: 687b ldr r3, [r7, #4]
  22543. 8009c2a: 681b ldr r3, [r3, #0]
  22544. 8009c2c: 4a43 ldr r2, [pc, #268] @ (8009d3c <HAL_DMA_IRQHandler+0xa48>)
  22545. 8009c2e: 4293 cmp r3, r2
  22546. 8009c30: d022 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22547. 8009c32: 687b ldr r3, [r7, #4]
  22548. 8009c34: 681b ldr r3, [r3, #0]
  22549. 8009c36: 4a42 ldr r2, [pc, #264] @ (8009d40 <HAL_DMA_IRQHandler+0xa4c>)
  22550. 8009c38: 4293 cmp r3, r2
  22551. 8009c3a: d01d beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22552. 8009c3c: 687b ldr r3, [r7, #4]
  22553. 8009c3e: 681b ldr r3, [r3, #0]
  22554. 8009c40: 4a40 ldr r2, [pc, #256] @ (8009d44 <HAL_DMA_IRQHandler+0xa50>)
  22555. 8009c42: 4293 cmp r3, r2
  22556. 8009c44: d018 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22557. 8009c46: 687b ldr r3, [r7, #4]
  22558. 8009c48: 681b ldr r3, [r3, #0]
  22559. 8009c4a: 4a3f ldr r2, [pc, #252] @ (8009d48 <HAL_DMA_IRQHandler+0xa54>)
  22560. 8009c4c: 4293 cmp r3, r2
  22561. 8009c4e: d013 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22562. 8009c50: 687b ldr r3, [r7, #4]
  22563. 8009c52: 681b ldr r3, [r3, #0]
  22564. 8009c54: 4a3d ldr r2, [pc, #244] @ (8009d4c <HAL_DMA_IRQHandler+0xa58>)
  22565. 8009c56: 4293 cmp r3, r2
  22566. 8009c58: d00e beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22567. 8009c5a: 687b ldr r3, [r7, #4]
  22568. 8009c5c: 681b ldr r3, [r3, #0]
  22569. 8009c5e: 4a3c ldr r2, [pc, #240] @ (8009d50 <HAL_DMA_IRQHandler+0xa5c>)
  22570. 8009c60: 4293 cmp r3, r2
  22571. 8009c62: d009 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22572. 8009c64: 687b ldr r3, [r7, #4]
  22573. 8009c66: 681b ldr r3, [r3, #0]
  22574. 8009c68: 4a3a ldr r2, [pc, #232] @ (8009d54 <HAL_DMA_IRQHandler+0xa60>)
  22575. 8009c6a: 4293 cmp r3, r2
  22576. 8009c6c: d004 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22577. 8009c6e: 687b ldr r3, [r7, #4]
  22578. 8009c70: 681b ldr r3, [r3, #0]
  22579. 8009c72: 4a39 ldr r2, [pc, #228] @ (8009d58 <HAL_DMA_IRQHandler+0xa64>)
  22580. 8009c74: 4293 cmp r3, r2
  22581. 8009c76: d101 bne.n 8009c7c <HAL_DMA_IRQHandler+0x988>
  22582. 8009c78: 2301 movs r3, #1
  22583. 8009c7a: e000 b.n 8009c7e <HAL_DMA_IRQHandler+0x98a>
  22584. 8009c7c: 2300 movs r3, #0
  22585. 8009c7e: 2b00 cmp r3, #0
  22586. 8009c80: f000 823f beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22587. {
  22588. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  22589. 8009c84: 687b ldr r3, [r7, #4]
  22590. 8009c86: 681b ldr r3, [r3, #0]
  22591. 8009c88: 681b ldr r3, [r3, #0]
  22592. 8009c8a: 613b str r3, [r7, #16]
  22593. /* Half Transfer Complete Interrupt management ******************************/
  22594. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  22595. 8009c8c: 687b ldr r3, [r7, #4]
  22596. 8009c8e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22597. 8009c90: f003 031f and.w r3, r3, #31
  22598. 8009c94: 2204 movs r2, #4
  22599. 8009c96: 409a lsls r2, r3
  22600. 8009c98: 697b ldr r3, [r7, #20]
  22601. 8009c9a: 4013 ands r3, r2
  22602. 8009c9c: 2b00 cmp r3, #0
  22603. 8009c9e: f000 80cd beq.w 8009e3c <HAL_DMA_IRQHandler+0xb48>
  22604. 8009ca2: 693b ldr r3, [r7, #16]
  22605. 8009ca4: f003 0304 and.w r3, r3, #4
  22606. 8009ca8: 2b00 cmp r3, #0
  22607. 8009caa: f000 80c7 beq.w 8009e3c <HAL_DMA_IRQHandler+0xb48>
  22608. {
  22609. /* Clear the half transfer complete flag */
  22610. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  22611. 8009cae: 687b ldr r3, [r7, #4]
  22612. 8009cb0: 6ddb ldr r3, [r3, #92] @ 0x5c
  22613. 8009cb2: f003 031f and.w r3, r3, #31
  22614. 8009cb6: 2204 movs r2, #4
  22615. 8009cb8: 409a lsls r2, r3
  22616. 8009cba: 69fb ldr r3, [r7, #28]
  22617. 8009cbc: 605a str r2, [r3, #4]
  22618. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  22619. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22620. 8009cbe: 693b ldr r3, [r7, #16]
  22621. 8009cc0: f403 4300 and.w r3, r3, #32768 @ 0x8000
  22622. 8009cc4: 2b00 cmp r3, #0
  22623. 8009cc6: d049 beq.n 8009d5c <HAL_DMA_IRQHandler+0xa68>
  22624. {
  22625. /* Current memory buffer used is Memory 0 */
  22626. if((ccr_reg & BDMA_CCR_CT) == 0U)
  22627. 8009cc8: 693b ldr r3, [r7, #16]
  22628. 8009cca: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22629. 8009cce: 2b00 cmp r3, #0
  22630. 8009cd0: d109 bne.n 8009ce6 <HAL_DMA_IRQHandler+0x9f2>
  22631. {
  22632. if(hdma->XferM1HalfCpltCallback != NULL)
  22633. 8009cd2: 687b ldr r3, [r7, #4]
  22634. 8009cd4: 6c9b ldr r3, [r3, #72] @ 0x48
  22635. 8009cd6: 2b00 cmp r3, #0
  22636. 8009cd8: f000 8210 beq.w 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22637. {
  22638. /* Half transfer Callback for Memory 1 */
  22639. hdma->XferM1HalfCpltCallback(hdma);
  22640. 8009cdc: 687b ldr r3, [r7, #4]
  22641. 8009cde: 6c9b ldr r3, [r3, #72] @ 0x48
  22642. 8009ce0: 6878 ldr r0, [r7, #4]
  22643. 8009ce2: 4798 blx r3
  22644. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22645. 8009ce4: e20a b.n 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22646. }
  22647. }
  22648. /* Current memory buffer used is Memory 1 */
  22649. else
  22650. {
  22651. if(hdma->XferHalfCpltCallback != NULL)
  22652. 8009ce6: 687b ldr r3, [r7, #4]
  22653. 8009ce8: 6c1b ldr r3, [r3, #64] @ 0x40
  22654. 8009cea: 2b00 cmp r3, #0
  22655. 8009cec: f000 8206 beq.w 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22656. {
  22657. /* Half transfer Callback for Memory 0 */
  22658. hdma->XferHalfCpltCallback(hdma);
  22659. 8009cf0: 687b ldr r3, [r7, #4]
  22660. 8009cf2: 6c1b ldr r3, [r3, #64] @ 0x40
  22661. 8009cf4: 6878 ldr r0, [r7, #4]
  22662. 8009cf6: 4798 blx r3
  22663. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22664. 8009cf8: e200 b.n 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22665. 8009cfa: bf00 nop
  22666. 8009cfc: 40020010 .word 0x40020010
  22667. 8009d00: 40020028 .word 0x40020028
  22668. 8009d04: 40020040 .word 0x40020040
  22669. 8009d08: 40020058 .word 0x40020058
  22670. 8009d0c: 40020070 .word 0x40020070
  22671. 8009d10: 40020088 .word 0x40020088
  22672. 8009d14: 400200a0 .word 0x400200a0
  22673. 8009d18: 400200b8 .word 0x400200b8
  22674. 8009d1c: 40020410 .word 0x40020410
  22675. 8009d20: 40020428 .word 0x40020428
  22676. 8009d24: 40020440 .word 0x40020440
  22677. 8009d28: 40020458 .word 0x40020458
  22678. 8009d2c: 40020470 .word 0x40020470
  22679. 8009d30: 40020488 .word 0x40020488
  22680. 8009d34: 400204a0 .word 0x400204a0
  22681. 8009d38: 400204b8 .word 0x400204b8
  22682. 8009d3c: 58025408 .word 0x58025408
  22683. 8009d40: 5802541c .word 0x5802541c
  22684. 8009d44: 58025430 .word 0x58025430
  22685. 8009d48: 58025444 .word 0x58025444
  22686. 8009d4c: 58025458 .word 0x58025458
  22687. 8009d50: 5802546c .word 0x5802546c
  22688. 8009d54: 58025480 .word 0x58025480
  22689. 8009d58: 58025494 .word 0x58025494
  22690. }
  22691. }
  22692. }
  22693. else
  22694. {
  22695. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  22696. 8009d5c: 693b ldr r3, [r7, #16]
  22697. 8009d5e: f003 0320 and.w r3, r3, #32
  22698. 8009d62: 2b00 cmp r3, #0
  22699. 8009d64: d160 bne.n 8009e28 <HAL_DMA_IRQHandler+0xb34>
  22700. {
  22701. /* Disable the half transfer interrupt */
  22702. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  22703. 8009d66: 687b ldr r3, [r7, #4]
  22704. 8009d68: 681b ldr r3, [r3, #0]
  22705. 8009d6a: 4a7f ldr r2, [pc, #508] @ (8009f68 <HAL_DMA_IRQHandler+0xc74>)
  22706. 8009d6c: 4293 cmp r3, r2
  22707. 8009d6e: d04a beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22708. 8009d70: 687b ldr r3, [r7, #4]
  22709. 8009d72: 681b ldr r3, [r3, #0]
  22710. 8009d74: 4a7d ldr r2, [pc, #500] @ (8009f6c <HAL_DMA_IRQHandler+0xc78>)
  22711. 8009d76: 4293 cmp r3, r2
  22712. 8009d78: d045 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22713. 8009d7a: 687b ldr r3, [r7, #4]
  22714. 8009d7c: 681b ldr r3, [r3, #0]
  22715. 8009d7e: 4a7c ldr r2, [pc, #496] @ (8009f70 <HAL_DMA_IRQHandler+0xc7c>)
  22716. 8009d80: 4293 cmp r3, r2
  22717. 8009d82: d040 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22718. 8009d84: 687b ldr r3, [r7, #4]
  22719. 8009d86: 681b ldr r3, [r3, #0]
  22720. 8009d88: 4a7a ldr r2, [pc, #488] @ (8009f74 <HAL_DMA_IRQHandler+0xc80>)
  22721. 8009d8a: 4293 cmp r3, r2
  22722. 8009d8c: d03b beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22723. 8009d8e: 687b ldr r3, [r7, #4]
  22724. 8009d90: 681b ldr r3, [r3, #0]
  22725. 8009d92: 4a79 ldr r2, [pc, #484] @ (8009f78 <HAL_DMA_IRQHandler+0xc84>)
  22726. 8009d94: 4293 cmp r3, r2
  22727. 8009d96: d036 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22728. 8009d98: 687b ldr r3, [r7, #4]
  22729. 8009d9a: 681b ldr r3, [r3, #0]
  22730. 8009d9c: 4a77 ldr r2, [pc, #476] @ (8009f7c <HAL_DMA_IRQHandler+0xc88>)
  22731. 8009d9e: 4293 cmp r3, r2
  22732. 8009da0: d031 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22733. 8009da2: 687b ldr r3, [r7, #4]
  22734. 8009da4: 681b ldr r3, [r3, #0]
  22735. 8009da6: 4a76 ldr r2, [pc, #472] @ (8009f80 <HAL_DMA_IRQHandler+0xc8c>)
  22736. 8009da8: 4293 cmp r3, r2
  22737. 8009daa: d02c beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22738. 8009dac: 687b ldr r3, [r7, #4]
  22739. 8009dae: 681b ldr r3, [r3, #0]
  22740. 8009db0: 4a74 ldr r2, [pc, #464] @ (8009f84 <HAL_DMA_IRQHandler+0xc90>)
  22741. 8009db2: 4293 cmp r3, r2
  22742. 8009db4: d027 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22743. 8009db6: 687b ldr r3, [r7, #4]
  22744. 8009db8: 681b ldr r3, [r3, #0]
  22745. 8009dba: 4a73 ldr r2, [pc, #460] @ (8009f88 <HAL_DMA_IRQHandler+0xc94>)
  22746. 8009dbc: 4293 cmp r3, r2
  22747. 8009dbe: d022 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22748. 8009dc0: 687b ldr r3, [r7, #4]
  22749. 8009dc2: 681b ldr r3, [r3, #0]
  22750. 8009dc4: 4a71 ldr r2, [pc, #452] @ (8009f8c <HAL_DMA_IRQHandler+0xc98>)
  22751. 8009dc6: 4293 cmp r3, r2
  22752. 8009dc8: d01d beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22753. 8009dca: 687b ldr r3, [r7, #4]
  22754. 8009dcc: 681b ldr r3, [r3, #0]
  22755. 8009dce: 4a70 ldr r2, [pc, #448] @ (8009f90 <HAL_DMA_IRQHandler+0xc9c>)
  22756. 8009dd0: 4293 cmp r3, r2
  22757. 8009dd2: d018 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22758. 8009dd4: 687b ldr r3, [r7, #4]
  22759. 8009dd6: 681b ldr r3, [r3, #0]
  22760. 8009dd8: 4a6e ldr r2, [pc, #440] @ (8009f94 <HAL_DMA_IRQHandler+0xca0>)
  22761. 8009dda: 4293 cmp r3, r2
  22762. 8009ddc: d013 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22763. 8009dde: 687b ldr r3, [r7, #4]
  22764. 8009de0: 681b ldr r3, [r3, #0]
  22765. 8009de2: 4a6d ldr r2, [pc, #436] @ (8009f98 <HAL_DMA_IRQHandler+0xca4>)
  22766. 8009de4: 4293 cmp r3, r2
  22767. 8009de6: d00e beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22768. 8009de8: 687b ldr r3, [r7, #4]
  22769. 8009dea: 681b ldr r3, [r3, #0]
  22770. 8009dec: 4a6b ldr r2, [pc, #428] @ (8009f9c <HAL_DMA_IRQHandler+0xca8>)
  22771. 8009dee: 4293 cmp r3, r2
  22772. 8009df0: d009 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22773. 8009df2: 687b ldr r3, [r7, #4]
  22774. 8009df4: 681b ldr r3, [r3, #0]
  22775. 8009df6: 4a6a ldr r2, [pc, #424] @ (8009fa0 <HAL_DMA_IRQHandler+0xcac>)
  22776. 8009df8: 4293 cmp r3, r2
  22777. 8009dfa: d004 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22778. 8009dfc: 687b ldr r3, [r7, #4]
  22779. 8009dfe: 681b ldr r3, [r3, #0]
  22780. 8009e00: 4a68 ldr r2, [pc, #416] @ (8009fa4 <HAL_DMA_IRQHandler+0xcb0>)
  22781. 8009e02: 4293 cmp r3, r2
  22782. 8009e04: d108 bne.n 8009e18 <HAL_DMA_IRQHandler+0xb24>
  22783. 8009e06: 687b ldr r3, [r7, #4]
  22784. 8009e08: 681b ldr r3, [r3, #0]
  22785. 8009e0a: 681a ldr r2, [r3, #0]
  22786. 8009e0c: 687b ldr r3, [r7, #4]
  22787. 8009e0e: 681b ldr r3, [r3, #0]
  22788. 8009e10: f022 0208 bic.w r2, r2, #8
  22789. 8009e14: 601a str r2, [r3, #0]
  22790. 8009e16: e007 b.n 8009e28 <HAL_DMA_IRQHandler+0xb34>
  22791. 8009e18: 687b ldr r3, [r7, #4]
  22792. 8009e1a: 681b ldr r3, [r3, #0]
  22793. 8009e1c: 681a ldr r2, [r3, #0]
  22794. 8009e1e: 687b ldr r3, [r7, #4]
  22795. 8009e20: 681b ldr r3, [r3, #0]
  22796. 8009e22: f022 0204 bic.w r2, r2, #4
  22797. 8009e26: 601a str r2, [r3, #0]
  22798. }
  22799. /* DMA peripheral state is not updated in Half Transfer */
  22800. /* but in Transfer Complete case */
  22801. if(hdma->XferHalfCpltCallback != NULL)
  22802. 8009e28: 687b ldr r3, [r7, #4]
  22803. 8009e2a: 6c1b ldr r3, [r3, #64] @ 0x40
  22804. 8009e2c: 2b00 cmp r3, #0
  22805. 8009e2e: f000 8165 beq.w 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22806. {
  22807. /* Half transfer callback */
  22808. hdma->XferHalfCpltCallback(hdma);
  22809. 8009e32: 687b ldr r3, [r7, #4]
  22810. 8009e34: 6c1b ldr r3, [r3, #64] @ 0x40
  22811. 8009e36: 6878 ldr r0, [r7, #4]
  22812. 8009e38: 4798 blx r3
  22813. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22814. 8009e3a: e15f b.n 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22815. }
  22816. }
  22817. }
  22818. /* Transfer Complete Interrupt management ***********************************/
  22819. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  22820. 8009e3c: 687b ldr r3, [r7, #4]
  22821. 8009e3e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22822. 8009e40: f003 031f and.w r3, r3, #31
  22823. 8009e44: 2202 movs r2, #2
  22824. 8009e46: 409a lsls r2, r3
  22825. 8009e48: 697b ldr r3, [r7, #20]
  22826. 8009e4a: 4013 ands r3, r2
  22827. 8009e4c: 2b00 cmp r3, #0
  22828. 8009e4e: f000 80c5 beq.w 8009fdc <HAL_DMA_IRQHandler+0xce8>
  22829. 8009e52: 693b ldr r3, [r7, #16]
  22830. 8009e54: f003 0302 and.w r3, r3, #2
  22831. 8009e58: 2b00 cmp r3, #0
  22832. 8009e5a: f000 80bf beq.w 8009fdc <HAL_DMA_IRQHandler+0xce8>
  22833. {
  22834. /* Clear the transfer complete flag */
  22835. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  22836. 8009e5e: 687b ldr r3, [r7, #4]
  22837. 8009e60: 6ddb ldr r3, [r3, #92] @ 0x5c
  22838. 8009e62: f003 031f and.w r3, r3, #31
  22839. 8009e66: 2202 movs r2, #2
  22840. 8009e68: 409a lsls r2, r3
  22841. 8009e6a: 69fb ldr r3, [r7, #28]
  22842. 8009e6c: 605a str r2, [r3, #4]
  22843. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  22844. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22845. 8009e6e: 693b ldr r3, [r7, #16]
  22846. 8009e70: f403 4300 and.w r3, r3, #32768 @ 0x8000
  22847. 8009e74: 2b00 cmp r3, #0
  22848. 8009e76: d018 beq.n 8009eaa <HAL_DMA_IRQHandler+0xbb6>
  22849. {
  22850. /* Current memory buffer used is Memory 0 */
  22851. if((ccr_reg & BDMA_CCR_CT) == 0U)
  22852. 8009e78: 693b ldr r3, [r7, #16]
  22853. 8009e7a: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22854. 8009e7e: 2b00 cmp r3, #0
  22855. 8009e80: d109 bne.n 8009e96 <HAL_DMA_IRQHandler+0xba2>
  22856. {
  22857. if(hdma->XferM1CpltCallback != NULL)
  22858. 8009e82: 687b ldr r3, [r7, #4]
  22859. 8009e84: 6c5b ldr r3, [r3, #68] @ 0x44
  22860. 8009e86: 2b00 cmp r3, #0
  22861. 8009e88: f000 813a beq.w 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22862. {
  22863. /* Transfer complete Callback for Memory 1 */
  22864. hdma->XferM1CpltCallback(hdma);
  22865. 8009e8c: 687b ldr r3, [r7, #4]
  22866. 8009e8e: 6c5b ldr r3, [r3, #68] @ 0x44
  22867. 8009e90: 6878 ldr r0, [r7, #4]
  22868. 8009e92: 4798 blx r3
  22869. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22870. 8009e94: e134 b.n 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22871. }
  22872. }
  22873. /* Current memory buffer used is Memory 1 */
  22874. else
  22875. {
  22876. if(hdma->XferCpltCallback != NULL)
  22877. 8009e96: 687b ldr r3, [r7, #4]
  22878. 8009e98: 6bdb ldr r3, [r3, #60] @ 0x3c
  22879. 8009e9a: 2b00 cmp r3, #0
  22880. 8009e9c: f000 8130 beq.w 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22881. {
  22882. /* Transfer complete Callback for Memory 0 */
  22883. hdma->XferCpltCallback(hdma);
  22884. 8009ea0: 687b ldr r3, [r7, #4]
  22885. 8009ea2: 6bdb ldr r3, [r3, #60] @ 0x3c
  22886. 8009ea4: 6878 ldr r0, [r7, #4]
  22887. 8009ea6: 4798 blx r3
  22888. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22889. 8009ea8: e12a b.n 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22890. }
  22891. }
  22892. }
  22893. else
  22894. {
  22895. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  22896. 8009eaa: 693b ldr r3, [r7, #16]
  22897. 8009eac: f003 0320 and.w r3, r3, #32
  22898. 8009eb0: 2b00 cmp r3, #0
  22899. 8009eb2: f040 8089 bne.w 8009fc8 <HAL_DMA_IRQHandler+0xcd4>
  22900. {
  22901. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  22902. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  22903. 8009eb6: 687b ldr r3, [r7, #4]
  22904. 8009eb8: 681b ldr r3, [r3, #0]
  22905. 8009eba: 4a2b ldr r2, [pc, #172] @ (8009f68 <HAL_DMA_IRQHandler+0xc74>)
  22906. 8009ebc: 4293 cmp r3, r2
  22907. 8009ebe: d04a beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22908. 8009ec0: 687b ldr r3, [r7, #4]
  22909. 8009ec2: 681b ldr r3, [r3, #0]
  22910. 8009ec4: 4a29 ldr r2, [pc, #164] @ (8009f6c <HAL_DMA_IRQHandler+0xc78>)
  22911. 8009ec6: 4293 cmp r3, r2
  22912. 8009ec8: d045 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22913. 8009eca: 687b ldr r3, [r7, #4]
  22914. 8009ecc: 681b ldr r3, [r3, #0]
  22915. 8009ece: 4a28 ldr r2, [pc, #160] @ (8009f70 <HAL_DMA_IRQHandler+0xc7c>)
  22916. 8009ed0: 4293 cmp r3, r2
  22917. 8009ed2: d040 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22918. 8009ed4: 687b ldr r3, [r7, #4]
  22919. 8009ed6: 681b ldr r3, [r3, #0]
  22920. 8009ed8: 4a26 ldr r2, [pc, #152] @ (8009f74 <HAL_DMA_IRQHandler+0xc80>)
  22921. 8009eda: 4293 cmp r3, r2
  22922. 8009edc: d03b beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22923. 8009ede: 687b ldr r3, [r7, #4]
  22924. 8009ee0: 681b ldr r3, [r3, #0]
  22925. 8009ee2: 4a25 ldr r2, [pc, #148] @ (8009f78 <HAL_DMA_IRQHandler+0xc84>)
  22926. 8009ee4: 4293 cmp r3, r2
  22927. 8009ee6: d036 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22928. 8009ee8: 687b ldr r3, [r7, #4]
  22929. 8009eea: 681b ldr r3, [r3, #0]
  22930. 8009eec: 4a23 ldr r2, [pc, #140] @ (8009f7c <HAL_DMA_IRQHandler+0xc88>)
  22931. 8009eee: 4293 cmp r3, r2
  22932. 8009ef0: d031 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22933. 8009ef2: 687b ldr r3, [r7, #4]
  22934. 8009ef4: 681b ldr r3, [r3, #0]
  22935. 8009ef6: 4a22 ldr r2, [pc, #136] @ (8009f80 <HAL_DMA_IRQHandler+0xc8c>)
  22936. 8009ef8: 4293 cmp r3, r2
  22937. 8009efa: d02c beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22938. 8009efc: 687b ldr r3, [r7, #4]
  22939. 8009efe: 681b ldr r3, [r3, #0]
  22940. 8009f00: 4a20 ldr r2, [pc, #128] @ (8009f84 <HAL_DMA_IRQHandler+0xc90>)
  22941. 8009f02: 4293 cmp r3, r2
  22942. 8009f04: d027 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22943. 8009f06: 687b ldr r3, [r7, #4]
  22944. 8009f08: 681b ldr r3, [r3, #0]
  22945. 8009f0a: 4a1f ldr r2, [pc, #124] @ (8009f88 <HAL_DMA_IRQHandler+0xc94>)
  22946. 8009f0c: 4293 cmp r3, r2
  22947. 8009f0e: d022 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22948. 8009f10: 687b ldr r3, [r7, #4]
  22949. 8009f12: 681b ldr r3, [r3, #0]
  22950. 8009f14: 4a1d ldr r2, [pc, #116] @ (8009f8c <HAL_DMA_IRQHandler+0xc98>)
  22951. 8009f16: 4293 cmp r3, r2
  22952. 8009f18: d01d beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22953. 8009f1a: 687b ldr r3, [r7, #4]
  22954. 8009f1c: 681b ldr r3, [r3, #0]
  22955. 8009f1e: 4a1c ldr r2, [pc, #112] @ (8009f90 <HAL_DMA_IRQHandler+0xc9c>)
  22956. 8009f20: 4293 cmp r3, r2
  22957. 8009f22: d018 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22958. 8009f24: 687b ldr r3, [r7, #4]
  22959. 8009f26: 681b ldr r3, [r3, #0]
  22960. 8009f28: 4a1a ldr r2, [pc, #104] @ (8009f94 <HAL_DMA_IRQHandler+0xca0>)
  22961. 8009f2a: 4293 cmp r3, r2
  22962. 8009f2c: d013 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22963. 8009f2e: 687b ldr r3, [r7, #4]
  22964. 8009f30: 681b ldr r3, [r3, #0]
  22965. 8009f32: 4a19 ldr r2, [pc, #100] @ (8009f98 <HAL_DMA_IRQHandler+0xca4>)
  22966. 8009f34: 4293 cmp r3, r2
  22967. 8009f36: d00e beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22968. 8009f38: 687b ldr r3, [r7, #4]
  22969. 8009f3a: 681b ldr r3, [r3, #0]
  22970. 8009f3c: 4a17 ldr r2, [pc, #92] @ (8009f9c <HAL_DMA_IRQHandler+0xca8>)
  22971. 8009f3e: 4293 cmp r3, r2
  22972. 8009f40: d009 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22973. 8009f42: 687b ldr r3, [r7, #4]
  22974. 8009f44: 681b ldr r3, [r3, #0]
  22975. 8009f46: 4a16 ldr r2, [pc, #88] @ (8009fa0 <HAL_DMA_IRQHandler+0xcac>)
  22976. 8009f48: 4293 cmp r3, r2
  22977. 8009f4a: d004 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22978. 8009f4c: 687b ldr r3, [r7, #4]
  22979. 8009f4e: 681b ldr r3, [r3, #0]
  22980. 8009f50: 4a14 ldr r2, [pc, #80] @ (8009fa4 <HAL_DMA_IRQHandler+0xcb0>)
  22981. 8009f52: 4293 cmp r3, r2
  22982. 8009f54: d128 bne.n 8009fa8 <HAL_DMA_IRQHandler+0xcb4>
  22983. 8009f56: 687b ldr r3, [r7, #4]
  22984. 8009f58: 681b ldr r3, [r3, #0]
  22985. 8009f5a: 681a ldr r2, [r3, #0]
  22986. 8009f5c: 687b ldr r3, [r7, #4]
  22987. 8009f5e: 681b ldr r3, [r3, #0]
  22988. 8009f60: f022 0214 bic.w r2, r2, #20
  22989. 8009f64: 601a str r2, [r3, #0]
  22990. 8009f66: e027 b.n 8009fb8 <HAL_DMA_IRQHandler+0xcc4>
  22991. 8009f68: 40020010 .word 0x40020010
  22992. 8009f6c: 40020028 .word 0x40020028
  22993. 8009f70: 40020040 .word 0x40020040
  22994. 8009f74: 40020058 .word 0x40020058
  22995. 8009f78: 40020070 .word 0x40020070
  22996. 8009f7c: 40020088 .word 0x40020088
  22997. 8009f80: 400200a0 .word 0x400200a0
  22998. 8009f84: 400200b8 .word 0x400200b8
  22999. 8009f88: 40020410 .word 0x40020410
  23000. 8009f8c: 40020428 .word 0x40020428
  23001. 8009f90: 40020440 .word 0x40020440
  23002. 8009f94: 40020458 .word 0x40020458
  23003. 8009f98: 40020470 .word 0x40020470
  23004. 8009f9c: 40020488 .word 0x40020488
  23005. 8009fa0: 400204a0 .word 0x400204a0
  23006. 8009fa4: 400204b8 .word 0x400204b8
  23007. 8009fa8: 687b ldr r3, [r7, #4]
  23008. 8009faa: 681b ldr r3, [r3, #0]
  23009. 8009fac: 681a ldr r2, [r3, #0]
  23010. 8009fae: 687b ldr r3, [r7, #4]
  23011. 8009fb0: 681b ldr r3, [r3, #0]
  23012. 8009fb2: f022 020a bic.w r2, r2, #10
  23013. 8009fb6: 601a str r2, [r3, #0]
  23014. /* Change the DMA state */
  23015. hdma->State = HAL_DMA_STATE_READY;
  23016. 8009fb8: 687b ldr r3, [r7, #4]
  23017. 8009fba: 2201 movs r2, #1
  23018. 8009fbc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23019. /* Process Unlocked */
  23020. __HAL_UNLOCK(hdma);
  23021. 8009fc0: 687b ldr r3, [r7, #4]
  23022. 8009fc2: 2200 movs r2, #0
  23023. 8009fc4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23024. }
  23025. if(hdma->XferCpltCallback != NULL)
  23026. 8009fc8: 687b ldr r3, [r7, #4]
  23027. 8009fca: 6bdb ldr r3, [r3, #60] @ 0x3c
  23028. 8009fcc: 2b00 cmp r3, #0
  23029. 8009fce: f000 8097 beq.w 800a100 <HAL_DMA_IRQHandler+0xe0c>
  23030. {
  23031. /* Transfer complete callback */
  23032. hdma->XferCpltCallback(hdma);
  23033. 8009fd2: 687b ldr r3, [r7, #4]
  23034. 8009fd4: 6bdb ldr r3, [r3, #60] @ 0x3c
  23035. 8009fd6: 6878 ldr r0, [r7, #4]
  23036. 8009fd8: 4798 blx r3
  23037. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23038. 8009fda: e091 b.n 800a100 <HAL_DMA_IRQHandler+0xe0c>
  23039. }
  23040. }
  23041. }
  23042. /* Transfer Error Interrupt management **************************************/
  23043. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  23044. 8009fdc: 687b ldr r3, [r7, #4]
  23045. 8009fde: 6ddb ldr r3, [r3, #92] @ 0x5c
  23046. 8009fe0: f003 031f and.w r3, r3, #31
  23047. 8009fe4: 2208 movs r2, #8
  23048. 8009fe6: 409a lsls r2, r3
  23049. 8009fe8: 697b ldr r3, [r7, #20]
  23050. 8009fea: 4013 ands r3, r2
  23051. 8009fec: 2b00 cmp r3, #0
  23052. 8009fee: f000 8088 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23053. 8009ff2: 693b ldr r3, [r7, #16]
  23054. 8009ff4: f003 0308 and.w r3, r3, #8
  23055. 8009ff8: 2b00 cmp r3, #0
  23056. 8009ffa: f000 8082 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23057. {
  23058. /* When a DMA transfer error occurs */
  23059. /* A hardware clear of its EN bits is performed */
  23060. /* Disable ALL DMA IT */
  23061. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  23062. 8009ffe: 687b ldr r3, [r7, #4]
  23063. 800a000: 681b ldr r3, [r3, #0]
  23064. 800a002: 4a41 ldr r2, [pc, #260] @ (800a108 <HAL_DMA_IRQHandler+0xe14>)
  23065. 800a004: 4293 cmp r3, r2
  23066. 800a006: d04a beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23067. 800a008: 687b ldr r3, [r7, #4]
  23068. 800a00a: 681b ldr r3, [r3, #0]
  23069. 800a00c: 4a3f ldr r2, [pc, #252] @ (800a10c <HAL_DMA_IRQHandler+0xe18>)
  23070. 800a00e: 4293 cmp r3, r2
  23071. 800a010: d045 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23072. 800a012: 687b ldr r3, [r7, #4]
  23073. 800a014: 681b ldr r3, [r3, #0]
  23074. 800a016: 4a3e ldr r2, [pc, #248] @ (800a110 <HAL_DMA_IRQHandler+0xe1c>)
  23075. 800a018: 4293 cmp r3, r2
  23076. 800a01a: d040 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23077. 800a01c: 687b ldr r3, [r7, #4]
  23078. 800a01e: 681b ldr r3, [r3, #0]
  23079. 800a020: 4a3c ldr r2, [pc, #240] @ (800a114 <HAL_DMA_IRQHandler+0xe20>)
  23080. 800a022: 4293 cmp r3, r2
  23081. 800a024: d03b beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23082. 800a026: 687b ldr r3, [r7, #4]
  23083. 800a028: 681b ldr r3, [r3, #0]
  23084. 800a02a: 4a3b ldr r2, [pc, #236] @ (800a118 <HAL_DMA_IRQHandler+0xe24>)
  23085. 800a02c: 4293 cmp r3, r2
  23086. 800a02e: d036 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23087. 800a030: 687b ldr r3, [r7, #4]
  23088. 800a032: 681b ldr r3, [r3, #0]
  23089. 800a034: 4a39 ldr r2, [pc, #228] @ (800a11c <HAL_DMA_IRQHandler+0xe28>)
  23090. 800a036: 4293 cmp r3, r2
  23091. 800a038: d031 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23092. 800a03a: 687b ldr r3, [r7, #4]
  23093. 800a03c: 681b ldr r3, [r3, #0]
  23094. 800a03e: 4a38 ldr r2, [pc, #224] @ (800a120 <HAL_DMA_IRQHandler+0xe2c>)
  23095. 800a040: 4293 cmp r3, r2
  23096. 800a042: d02c beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23097. 800a044: 687b ldr r3, [r7, #4]
  23098. 800a046: 681b ldr r3, [r3, #0]
  23099. 800a048: 4a36 ldr r2, [pc, #216] @ (800a124 <HAL_DMA_IRQHandler+0xe30>)
  23100. 800a04a: 4293 cmp r3, r2
  23101. 800a04c: d027 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23102. 800a04e: 687b ldr r3, [r7, #4]
  23103. 800a050: 681b ldr r3, [r3, #0]
  23104. 800a052: 4a35 ldr r2, [pc, #212] @ (800a128 <HAL_DMA_IRQHandler+0xe34>)
  23105. 800a054: 4293 cmp r3, r2
  23106. 800a056: d022 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23107. 800a058: 687b ldr r3, [r7, #4]
  23108. 800a05a: 681b ldr r3, [r3, #0]
  23109. 800a05c: 4a33 ldr r2, [pc, #204] @ (800a12c <HAL_DMA_IRQHandler+0xe38>)
  23110. 800a05e: 4293 cmp r3, r2
  23111. 800a060: d01d beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23112. 800a062: 687b ldr r3, [r7, #4]
  23113. 800a064: 681b ldr r3, [r3, #0]
  23114. 800a066: 4a32 ldr r2, [pc, #200] @ (800a130 <HAL_DMA_IRQHandler+0xe3c>)
  23115. 800a068: 4293 cmp r3, r2
  23116. 800a06a: d018 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23117. 800a06c: 687b ldr r3, [r7, #4]
  23118. 800a06e: 681b ldr r3, [r3, #0]
  23119. 800a070: 4a30 ldr r2, [pc, #192] @ (800a134 <HAL_DMA_IRQHandler+0xe40>)
  23120. 800a072: 4293 cmp r3, r2
  23121. 800a074: d013 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23122. 800a076: 687b ldr r3, [r7, #4]
  23123. 800a078: 681b ldr r3, [r3, #0]
  23124. 800a07a: 4a2f ldr r2, [pc, #188] @ (800a138 <HAL_DMA_IRQHandler+0xe44>)
  23125. 800a07c: 4293 cmp r3, r2
  23126. 800a07e: d00e beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23127. 800a080: 687b ldr r3, [r7, #4]
  23128. 800a082: 681b ldr r3, [r3, #0]
  23129. 800a084: 4a2d ldr r2, [pc, #180] @ (800a13c <HAL_DMA_IRQHandler+0xe48>)
  23130. 800a086: 4293 cmp r3, r2
  23131. 800a088: d009 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23132. 800a08a: 687b ldr r3, [r7, #4]
  23133. 800a08c: 681b ldr r3, [r3, #0]
  23134. 800a08e: 4a2c ldr r2, [pc, #176] @ (800a140 <HAL_DMA_IRQHandler+0xe4c>)
  23135. 800a090: 4293 cmp r3, r2
  23136. 800a092: d004 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23137. 800a094: 687b ldr r3, [r7, #4]
  23138. 800a096: 681b ldr r3, [r3, #0]
  23139. 800a098: 4a2a ldr r2, [pc, #168] @ (800a144 <HAL_DMA_IRQHandler+0xe50>)
  23140. 800a09a: 4293 cmp r3, r2
  23141. 800a09c: d108 bne.n 800a0b0 <HAL_DMA_IRQHandler+0xdbc>
  23142. 800a09e: 687b ldr r3, [r7, #4]
  23143. 800a0a0: 681b ldr r3, [r3, #0]
  23144. 800a0a2: 681a ldr r2, [r3, #0]
  23145. 800a0a4: 687b ldr r3, [r7, #4]
  23146. 800a0a6: 681b ldr r3, [r3, #0]
  23147. 800a0a8: f022 021c bic.w r2, r2, #28
  23148. 800a0ac: 601a str r2, [r3, #0]
  23149. 800a0ae: e007 b.n 800a0c0 <HAL_DMA_IRQHandler+0xdcc>
  23150. 800a0b0: 687b ldr r3, [r7, #4]
  23151. 800a0b2: 681b ldr r3, [r3, #0]
  23152. 800a0b4: 681a ldr r2, [r3, #0]
  23153. 800a0b6: 687b ldr r3, [r7, #4]
  23154. 800a0b8: 681b ldr r3, [r3, #0]
  23155. 800a0ba: f022 020e bic.w r2, r2, #14
  23156. 800a0be: 601a str r2, [r3, #0]
  23157. /* Clear all flags */
  23158. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  23159. 800a0c0: 687b ldr r3, [r7, #4]
  23160. 800a0c2: 6ddb ldr r3, [r3, #92] @ 0x5c
  23161. 800a0c4: f003 031f and.w r3, r3, #31
  23162. 800a0c8: 2201 movs r2, #1
  23163. 800a0ca: 409a lsls r2, r3
  23164. 800a0cc: 69fb ldr r3, [r7, #28]
  23165. 800a0ce: 605a str r2, [r3, #4]
  23166. /* Update error code */
  23167. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  23168. 800a0d0: 687b ldr r3, [r7, #4]
  23169. 800a0d2: 2201 movs r2, #1
  23170. 800a0d4: 655a str r2, [r3, #84] @ 0x54
  23171. /* Change the DMA state */
  23172. hdma->State = HAL_DMA_STATE_READY;
  23173. 800a0d6: 687b ldr r3, [r7, #4]
  23174. 800a0d8: 2201 movs r2, #1
  23175. 800a0da: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23176. /* Process Unlocked */
  23177. __HAL_UNLOCK(hdma);
  23178. 800a0de: 687b ldr r3, [r7, #4]
  23179. 800a0e0: 2200 movs r2, #0
  23180. 800a0e2: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23181. if (hdma->XferErrorCallback != NULL)
  23182. 800a0e6: 687b ldr r3, [r7, #4]
  23183. 800a0e8: 6cdb ldr r3, [r3, #76] @ 0x4c
  23184. 800a0ea: 2b00 cmp r3, #0
  23185. 800a0ec: d009 beq.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23186. {
  23187. /* Transfer error callback */
  23188. hdma->XferErrorCallback(hdma);
  23189. 800a0ee: 687b ldr r3, [r7, #4]
  23190. 800a0f0: 6cdb ldr r3, [r3, #76] @ 0x4c
  23191. 800a0f2: 6878 ldr r0, [r7, #4]
  23192. 800a0f4: 4798 blx r3
  23193. 800a0f6: e004 b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23194. return;
  23195. 800a0f8: bf00 nop
  23196. 800a0fa: e002 b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23197. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23198. 800a0fc: bf00 nop
  23199. 800a0fe: e000 b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23200. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23201. 800a100: bf00 nop
  23202. }
  23203. else
  23204. {
  23205. /* Nothing To Do */
  23206. }
  23207. }
  23208. 800a102: 3728 adds r7, #40 @ 0x28
  23209. 800a104: 46bd mov sp, r7
  23210. 800a106: bd80 pop {r7, pc}
  23211. 800a108: 40020010 .word 0x40020010
  23212. 800a10c: 40020028 .word 0x40020028
  23213. 800a110: 40020040 .word 0x40020040
  23214. 800a114: 40020058 .word 0x40020058
  23215. 800a118: 40020070 .word 0x40020070
  23216. 800a11c: 40020088 .word 0x40020088
  23217. 800a120: 400200a0 .word 0x400200a0
  23218. 800a124: 400200b8 .word 0x400200b8
  23219. 800a128: 40020410 .word 0x40020410
  23220. 800a12c: 40020428 .word 0x40020428
  23221. 800a130: 40020440 .word 0x40020440
  23222. 800a134: 40020458 .word 0x40020458
  23223. 800a138: 40020470 .word 0x40020470
  23224. 800a13c: 40020488 .word 0x40020488
  23225. 800a140: 400204a0 .word 0x400204a0
  23226. 800a144: 400204b8 .word 0x400204b8
  23227. 0800a148 <DMA_SetConfig>:
  23228. * @param DstAddress: The destination memory Buffer address
  23229. * @param DataLength: The length of data to be transferred from source to destination
  23230. * @retval None
  23231. */
  23232. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  23233. {
  23234. 800a148: b480 push {r7}
  23235. 800a14a: b087 sub sp, #28
  23236. 800a14c: af00 add r7, sp, #0
  23237. 800a14e: 60f8 str r0, [r7, #12]
  23238. 800a150: 60b9 str r1, [r7, #8]
  23239. 800a152: 607a str r2, [r7, #4]
  23240. 800a154: 603b str r3, [r7, #0]
  23241. /* calculate DMA base and stream number */
  23242. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  23243. 800a156: 68fb ldr r3, [r7, #12]
  23244. 800a158: 6d9b ldr r3, [r3, #88] @ 0x58
  23245. 800a15a: 617b str r3, [r7, #20]
  23246. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  23247. 800a15c: 68fb ldr r3, [r7, #12]
  23248. 800a15e: 6d9b ldr r3, [r3, #88] @ 0x58
  23249. 800a160: 613b str r3, [r7, #16]
  23250. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  23251. 800a162: 68fb ldr r3, [r7, #12]
  23252. 800a164: 681b ldr r3, [r3, #0]
  23253. 800a166: 4a7f ldr r2, [pc, #508] @ (800a364 <DMA_SetConfig+0x21c>)
  23254. 800a168: 4293 cmp r3, r2
  23255. 800a16a: d072 beq.n 800a252 <DMA_SetConfig+0x10a>
  23256. 800a16c: 68fb ldr r3, [r7, #12]
  23257. 800a16e: 681b ldr r3, [r3, #0]
  23258. 800a170: 4a7d ldr r2, [pc, #500] @ (800a368 <DMA_SetConfig+0x220>)
  23259. 800a172: 4293 cmp r3, r2
  23260. 800a174: d06d beq.n 800a252 <DMA_SetConfig+0x10a>
  23261. 800a176: 68fb ldr r3, [r7, #12]
  23262. 800a178: 681b ldr r3, [r3, #0]
  23263. 800a17a: 4a7c ldr r2, [pc, #496] @ (800a36c <DMA_SetConfig+0x224>)
  23264. 800a17c: 4293 cmp r3, r2
  23265. 800a17e: d068 beq.n 800a252 <DMA_SetConfig+0x10a>
  23266. 800a180: 68fb ldr r3, [r7, #12]
  23267. 800a182: 681b ldr r3, [r3, #0]
  23268. 800a184: 4a7a ldr r2, [pc, #488] @ (800a370 <DMA_SetConfig+0x228>)
  23269. 800a186: 4293 cmp r3, r2
  23270. 800a188: d063 beq.n 800a252 <DMA_SetConfig+0x10a>
  23271. 800a18a: 68fb ldr r3, [r7, #12]
  23272. 800a18c: 681b ldr r3, [r3, #0]
  23273. 800a18e: 4a79 ldr r2, [pc, #484] @ (800a374 <DMA_SetConfig+0x22c>)
  23274. 800a190: 4293 cmp r3, r2
  23275. 800a192: d05e beq.n 800a252 <DMA_SetConfig+0x10a>
  23276. 800a194: 68fb ldr r3, [r7, #12]
  23277. 800a196: 681b ldr r3, [r3, #0]
  23278. 800a198: 4a77 ldr r2, [pc, #476] @ (800a378 <DMA_SetConfig+0x230>)
  23279. 800a19a: 4293 cmp r3, r2
  23280. 800a19c: d059 beq.n 800a252 <DMA_SetConfig+0x10a>
  23281. 800a19e: 68fb ldr r3, [r7, #12]
  23282. 800a1a0: 681b ldr r3, [r3, #0]
  23283. 800a1a2: 4a76 ldr r2, [pc, #472] @ (800a37c <DMA_SetConfig+0x234>)
  23284. 800a1a4: 4293 cmp r3, r2
  23285. 800a1a6: d054 beq.n 800a252 <DMA_SetConfig+0x10a>
  23286. 800a1a8: 68fb ldr r3, [r7, #12]
  23287. 800a1aa: 681b ldr r3, [r3, #0]
  23288. 800a1ac: 4a74 ldr r2, [pc, #464] @ (800a380 <DMA_SetConfig+0x238>)
  23289. 800a1ae: 4293 cmp r3, r2
  23290. 800a1b0: d04f beq.n 800a252 <DMA_SetConfig+0x10a>
  23291. 800a1b2: 68fb ldr r3, [r7, #12]
  23292. 800a1b4: 681b ldr r3, [r3, #0]
  23293. 800a1b6: 4a73 ldr r2, [pc, #460] @ (800a384 <DMA_SetConfig+0x23c>)
  23294. 800a1b8: 4293 cmp r3, r2
  23295. 800a1ba: d04a beq.n 800a252 <DMA_SetConfig+0x10a>
  23296. 800a1bc: 68fb ldr r3, [r7, #12]
  23297. 800a1be: 681b ldr r3, [r3, #0]
  23298. 800a1c0: 4a71 ldr r2, [pc, #452] @ (800a388 <DMA_SetConfig+0x240>)
  23299. 800a1c2: 4293 cmp r3, r2
  23300. 800a1c4: d045 beq.n 800a252 <DMA_SetConfig+0x10a>
  23301. 800a1c6: 68fb ldr r3, [r7, #12]
  23302. 800a1c8: 681b ldr r3, [r3, #0]
  23303. 800a1ca: 4a70 ldr r2, [pc, #448] @ (800a38c <DMA_SetConfig+0x244>)
  23304. 800a1cc: 4293 cmp r3, r2
  23305. 800a1ce: d040 beq.n 800a252 <DMA_SetConfig+0x10a>
  23306. 800a1d0: 68fb ldr r3, [r7, #12]
  23307. 800a1d2: 681b ldr r3, [r3, #0]
  23308. 800a1d4: 4a6e ldr r2, [pc, #440] @ (800a390 <DMA_SetConfig+0x248>)
  23309. 800a1d6: 4293 cmp r3, r2
  23310. 800a1d8: d03b beq.n 800a252 <DMA_SetConfig+0x10a>
  23311. 800a1da: 68fb ldr r3, [r7, #12]
  23312. 800a1dc: 681b ldr r3, [r3, #0]
  23313. 800a1de: 4a6d ldr r2, [pc, #436] @ (800a394 <DMA_SetConfig+0x24c>)
  23314. 800a1e0: 4293 cmp r3, r2
  23315. 800a1e2: d036 beq.n 800a252 <DMA_SetConfig+0x10a>
  23316. 800a1e4: 68fb ldr r3, [r7, #12]
  23317. 800a1e6: 681b ldr r3, [r3, #0]
  23318. 800a1e8: 4a6b ldr r2, [pc, #428] @ (800a398 <DMA_SetConfig+0x250>)
  23319. 800a1ea: 4293 cmp r3, r2
  23320. 800a1ec: d031 beq.n 800a252 <DMA_SetConfig+0x10a>
  23321. 800a1ee: 68fb ldr r3, [r7, #12]
  23322. 800a1f0: 681b ldr r3, [r3, #0]
  23323. 800a1f2: 4a6a ldr r2, [pc, #424] @ (800a39c <DMA_SetConfig+0x254>)
  23324. 800a1f4: 4293 cmp r3, r2
  23325. 800a1f6: d02c beq.n 800a252 <DMA_SetConfig+0x10a>
  23326. 800a1f8: 68fb ldr r3, [r7, #12]
  23327. 800a1fa: 681b ldr r3, [r3, #0]
  23328. 800a1fc: 4a68 ldr r2, [pc, #416] @ (800a3a0 <DMA_SetConfig+0x258>)
  23329. 800a1fe: 4293 cmp r3, r2
  23330. 800a200: d027 beq.n 800a252 <DMA_SetConfig+0x10a>
  23331. 800a202: 68fb ldr r3, [r7, #12]
  23332. 800a204: 681b ldr r3, [r3, #0]
  23333. 800a206: 4a67 ldr r2, [pc, #412] @ (800a3a4 <DMA_SetConfig+0x25c>)
  23334. 800a208: 4293 cmp r3, r2
  23335. 800a20a: d022 beq.n 800a252 <DMA_SetConfig+0x10a>
  23336. 800a20c: 68fb ldr r3, [r7, #12]
  23337. 800a20e: 681b ldr r3, [r3, #0]
  23338. 800a210: 4a65 ldr r2, [pc, #404] @ (800a3a8 <DMA_SetConfig+0x260>)
  23339. 800a212: 4293 cmp r3, r2
  23340. 800a214: d01d beq.n 800a252 <DMA_SetConfig+0x10a>
  23341. 800a216: 68fb ldr r3, [r7, #12]
  23342. 800a218: 681b ldr r3, [r3, #0]
  23343. 800a21a: 4a64 ldr r2, [pc, #400] @ (800a3ac <DMA_SetConfig+0x264>)
  23344. 800a21c: 4293 cmp r3, r2
  23345. 800a21e: d018 beq.n 800a252 <DMA_SetConfig+0x10a>
  23346. 800a220: 68fb ldr r3, [r7, #12]
  23347. 800a222: 681b ldr r3, [r3, #0]
  23348. 800a224: 4a62 ldr r2, [pc, #392] @ (800a3b0 <DMA_SetConfig+0x268>)
  23349. 800a226: 4293 cmp r3, r2
  23350. 800a228: d013 beq.n 800a252 <DMA_SetConfig+0x10a>
  23351. 800a22a: 68fb ldr r3, [r7, #12]
  23352. 800a22c: 681b ldr r3, [r3, #0]
  23353. 800a22e: 4a61 ldr r2, [pc, #388] @ (800a3b4 <DMA_SetConfig+0x26c>)
  23354. 800a230: 4293 cmp r3, r2
  23355. 800a232: d00e beq.n 800a252 <DMA_SetConfig+0x10a>
  23356. 800a234: 68fb ldr r3, [r7, #12]
  23357. 800a236: 681b ldr r3, [r3, #0]
  23358. 800a238: 4a5f ldr r2, [pc, #380] @ (800a3b8 <DMA_SetConfig+0x270>)
  23359. 800a23a: 4293 cmp r3, r2
  23360. 800a23c: d009 beq.n 800a252 <DMA_SetConfig+0x10a>
  23361. 800a23e: 68fb ldr r3, [r7, #12]
  23362. 800a240: 681b ldr r3, [r3, #0]
  23363. 800a242: 4a5e ldr r2, [pc, #376] @ (800a3bc <DMA_SetConfig+0x274>)
  23364. 800a244: 4293 cmp r3, r2
  23365. 800a246: d004 beq.n 800a252 <DMA_SetConfig+0x10a>
  23366. 800a248: 68fb ldr r3, [r7, #12]
  23367. 800a24a: 681b ldr r3, [r3, #0]
  23368. 800a24c: 4a5c ldr r2, [pc, #368] @ (800a3c0 <DMA_SetConfig+0x278>)
  23369. 800a24e: 4293 cmp r3, r2
  23370. 800a250: d101 bne.n 800a256 <DMA_SetConfig+0x10e>
  23371. 800a252: 2301 movs r3, #1
  23372. 800a254: e000 b.n 800a258 <DMA_SetConfig+0x110>
  23373. 800a256: 2300 movs r3, #0
  23374. 800a258: 2b00 cmp r3, #0
  23375. 800a25a: d00d beq.n 800a278 <DMA_SetConfig+0x130>
  23376. {
  23377. /* Clear the DMAMUX synchro overrun flag */
  23378. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  23379. 800a25c: 68fb ldr r3, [r7, #12]
  23380. 800a25e: 6e5b ldr r3, [r3, #100] @ 0x64
  23381. 800a260: 68fa ldr r2, [r7, #12]
  23382. 800a262: 6e92 ldr r2, [r2, #104] @ 0x68
  23383. 800a264: 605a str r2, [r3, #4]
  23384. if(hdma->DMAmuxRequestGen != 0U)
  23385. 800a266: 68fb ldr r3, [r7, #12]
  23386. 800a268: 6edb ldr r3, [r3, #108] @ 0x6c
  23387. 800a26a: 2b00 cmp r3, #0
  23388. 800a26c: d004 beq.n 800a278 <DMA_SetConfig+0x130>
  23389. {
  23390. /* Clear the DMAMUX request generator overrun flag */
  23391. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  23392. 800a26e: 68fb ldr r3, [r7, #12]
  23393. 800a270: 6f1b ldr r3, [r3, #112] @ 0x70
  23394. 800a272: 68fa ldr r2, [r7, #12]
  23395. 800a274: 6f52 ldr r2, [r2, #116] @ 0x74
  23396. 800a276: 605a str r2, [r3, #4]
  23397. }
  23398. }
  23399. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  23400. 800a278: 68fb ldr r3, [r7, #12]
  23401. 800a27a: 681b ldr r3, [r3, #0]
  23402. 800a27c: 4a39 ldr r2, [pc, #228] @ (800a364 <DMA_SetConfig+0x21c>)
  23403. 800a27e: 4293 cmp r3, r2
  23404. 800a280: d04a beq.n 800a318 <DMA_SetConfig+0x1d0>
  23405. 800a282: 68fb ldr r3, [r7, #12]
  23406. 800a284: 681b ldr r3, [r3, #0]
  23407. 800a286: 4a38 ldr r2, [pc, #224] @ (800a368 <DMA_SetConfig+0x220>)
  23408. 800a288: 4293 cmp r3, r2
  23409. 800a28a: d045 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23410. 800a28c: 68fb ldr r3, [r7, #12]
  23411. 800a28e: 681b ldr r3, [r3, #0]
  23412. 800a290: 4a36 ldr r2, [pc, #216] @ (800a36c <DMA_SetConfig+0x224>)
  23413. 800a292: 4293 cmp r3, r2
  23414. 800a294: d040 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23415. 800a296: 68fb ldr r3, [r7, #12]
  23416. 800a298: 681b ldr r3, [r3, #0]
  23417. 800a29a: 4a35 ldr r2, [pc, #212] @ (800a370 <DMA_SetConfig+0x228>)
  23418. 800a29c: 4293 cmp r3, r2
  23419. 800a29e: d03b beq.n 800a318 <DMA_SetConfig+0x1d0>
  23420. 800a2a0: 68fb ldr r3, [r7, #12]
  23421. 800a2a2: 681b ldr r3, [r3, #0]
  23422. 800a2a4: 4a33 ldr r2, [pc, #204] @ (800a374 <DMA_SetConfig+0x22c>)
  23423. 800a2a6: 4293 cmp r3, r2
  23424. 800a2a8: d036 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23425. 800a2aa: 68fb ldr r3, [r7, #12]
  23426. 800a2ac: 681b ldr r3, [r3, #0]
  23427. 800a2ae: 4a32 ldr r2, [pc, #200] @ (800a378 <DMA_SetConfig+0x230>)
  23428. 800a2b0: 4293 cmp r3, r2
  23429. 800a2b2: d031 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23430. 800a2b4: 68fb ldr r3, [r7, #12]
  23431. 800a2b6: 681b ldr r3, [r3, #0]
  23432. 800a2b8: 4a30 ldr r2, [pc, #192] @ (800a37c <DMA_SetConfig+0x234>)
  23433. 800a2ba: 4293 cmp r3, r2
  23434. 800a2bc: d02c beq.n 800a318 <DMA_SetConfig+0x1d0>
  23435. 800a2be: 68fb ldr r3, [r7, #12]
  23436. 800a2c0: 681b ldr r3, [r3, #0]
  23437. 800a2c2: 4a2f ldr r2, [pc, #188] @ (800a380 <DMA_SetConfig+0x238>)
  23438. 800a2c4: 4293 cmp r3, r2
  23439. 800a2c6: d027 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23440. 800a2c8: 68fb ldr r3, [r7, #12]
  23441. 800a2ca: 681b ldr r3, [r3, #0]
  23442. 800a2cc: 4a2d ldr r2, [pc, #180] @ (800a384 <DMA_SetConfig+0x23c>)
  23443. 800a2ce: 4293 cmp r3, r2
  23444. 800a2d0: d022 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23445. 800a2d2: 68fb ldr r3, [r7, #12]
  23446. 800a2d4: 681b ldr r3, [r3, #0]
  23447. 800a2d6: 4a2c ldr r2, [pc, #176] @ (800a388 <DMA_SetConfig+0x240>)
  23448. 800a2d8: 4293 cmp r3, r2
  23449. 800a2da: d01d beq.n 800a318 <DMA_SetConfig+0x1d0>
  23450. 800a2dc: 68fb ldr r3, [r7, #12]
  23451. 800a2de: 681b ldr r3, [r3, #0]
  23452. 800a2e0: 4a2a ldr r2, [pc, #168] @ (800a38c <DMA_SetConfig+0x244>)
  23453. 800a2e2: 4293 cmp r3, r2
  23454. 800a2e4: d018 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23455. 800a2e6: 68fb ldr r3, [r7, #12]
  23456. 800a2e8: 681b ldr r3, [r3, #0]
  23457. 800a2ea: 4a29 ldr r2, [pc, #164] @ (800a390 <DMA_SetConfig+0x248>)
  23458. 800a2ec: 4293 cmp r3, r2
  23459. 800a2ee: d013 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23460. 800a2f0: 68fb ldr r3, [r7, #12]
  23461. 800a2f2: 681b ldr r3, [r3, #0]
  23462. 800a2f4: 4a27 ldr r2, [pc, #156] @ (800a394 <DMA_SetConfig+0x24c>)
  23463. 800a2f6: 4293 cmp r3, r2
  23464. 800a2f8: d00e beq.n 800a318 <DMA_SetConfig+0x1d0>
  23465. 800a2fa: 68fb ldr r3, [r7, #12]
  23466. 800a2fc: 681b ldr r3, [r3, #0]
  23467. 800a2fe: 4a26 ldr r2, [pc, #152] @ (800a398 <DMA_SetConfig+0x250>)
  23468. 800a300: 4293 cmp r3, r2
  23469. 800a302: d009 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23470. 800a304: 68fb ldr r3, [r7, #12]
  23471. 800a306: 681b ldr r3, [r3, #0]
  23472. 800a308: 4a24 ldr r2, [pc, #144] @ (800a39c <DMA_SetConfig+0x254>)
  23473. 800a30a: 4293 cmp r3, r2
  23474. 800a30c: d004 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23475. 800a30e: 68fb ldr r3, [r7, #12]
  23476. 800a310: 681b ldr r3, [r3, #0]
  23477. 800a312: 4a23 ldr r2, [pc, #140] @ (800a3a0 <DMA_SetConfig+0x258>)
  23478. 800a314: 4293 cmp r3, r2
  23479. 800a316: d101 bne.n 800a31c <DMA_SetConfig+0x1d4>
  23480. 800a318: 2301 movs r3, #1
  23481. 800a31a: e000 b.n 800a31e <DMA_SetConfig+0x1d6>
  23482. 800a31c: 2300 movs r3, #0
  23483. 800a31e: 2b00 cmp r3, #0
  23484. 800a320: d059 beq.n 800a3d6 <DMA_SetConfig+0x28e>
  23485. {
  23486. /* Clear all interrupt flags at correct offset within the register */
  23487. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  23488. 800a322: 68fb ldr r3, [r7, #12]
  23489. 800a324: 6ddb ldr r3, [r3, #92] @ 0x5c
  23490. 800a326: f003 031f and.w r3, r3, #31
  23491. 800a32a: 223f movs r2, #63 @ 0x3f
  23492. 800a32c: 409a lsls r2, r3
  23493. 800a32e: 697b ldr r3, [r7, #20]
  23494. 800a330: 609a str r2, [r3, #8]
  23495. /* Clear DBM bit */
  23496. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  23497. 800a332: 68fb ldr r3, [r7, #12]
  23498. 800a334: 681b ldr r3, [r3, #0]
  23499. 800a336: 681a ldr r2, [r3, #0]
  23500. 800a338: 68fb ldr r3, [r7, #12]
  23501. 800a33a: 681b ldr r3, [r3, #0]
  23502. 800a33c: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  23503. 800a340: 601a str r2, [r3, #0]
  23504. /* Configure DMA Stream data length */
  23505. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  23506. 800a342: 68fb ldr r3, [r7, #12]
  23507. 800a344: 681b ldr r3, [r3, #0]
  23508. 800a346: 683a ldr r2, [r7, #0]
  23509. 800a348: 605a str r2, [r3, #4]
  23510. /* Peripheral to Memory */
  23511. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  23512. 800a34a: 68fb ldr r3, [r7, #12]
  23513. 800a34c: 689b ldr r3, [r3, #8]
  23514. 800a34e: 2b40 cmp r3, #64 @ 0x40
  23515. 800a350: d138 bne.n 800a3c4 <DMA_SetConfig+0x27c>
  23516. {
  23517. /* Configure DMA Stream destination address */
  23518. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  23519. 800a352: 68fb ldr r3, [r7, #12]
  23520. 800a354: 681b ldr r3, [r3, #0]
  23521. 800a356: 687a ldr r2, [r7, #4]
  23522. 800a358: 609a str r2, [r3, #8]
  23523. /* Configure DMA Stream source address */
  23524. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  23525. 800a35a: 68fb ldr r3, [r7, #12]
  23526. 800a35c: 681b ldr r3, [r3, #0]
  23527. 800a35e: 68ba ldr r2, [r7, #8]
  23528. 800a360: 60da str r2, [r3, #12]
  23529. }
  23530. else
  23531. {
  23532. /* Nothing To Do */
  23533. }
  23534. }
  23535. 800a362: e086 b.n 800a472 <DMA_SetConfig+0x32a>
  23536. 800a364: 40020010 .word 0x40020010
  23537. 800a368: 40020028 .word 0x40020028
  23538. 800a36c: 40020040 .word 0x40020040
  23539. 800a370: 40020058 .word 0x40020058
  23540. 800a374: 40020070 .word 0x40020070
  23541. 800a378: 40020088 .word 0x40020088
  23542. 800a37c: 400200a0 .word 0x400200a0
  23543. 800a380: 400200b8 .word 0x400200b8
  23544. 800a384: 40020410 .word 0x40020410
  23545. 800a388: 40020428 .word 0x40020428
  23546. 800a38c: 40020440 .word 0x40020440
  23547. 800a390: 40020458 .word 0x40020458
  23548. 800a394: 40020470 .word 0x40020470
  23549. 800a398: 40020488 .word 0x40020488
  23550. 800a39c: 400204a0 .word 0x400204a0
  23551. 800a3a0: 400204b8 .word 0x400204b8
  23552. 800a3a4: 58025408 .word 0x58025408
  23553. 800a3a8: 5802541c .word 0x5802541c
  23554. 800a3ac: 58025430 .word 0x58025430
  23555. 800a3b0: 58025444 .word 0x58025444
  23556. 800a3b4: 58025458 .word 0x58025458
  23557. 800a3b8: 5802546c .word 0x5802546c
  23558. 800a3bc: 58025480 .word 0x58025480
  23559. 800a3c0: 58025494 .word 0x58025494
  23560. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  23561. 800a3c4: 68fb ldr r3, [r7, #12]
  23562. 800a3c6: 681b ldr r3, [r3, #0]
  23563. 800a3c8: 68ba ldr r2, [r7, #8]
  23564. 800a3ca: 609a str r2, [r3, #8]
  23565. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  23566. 800a3cc: 68fb ldr r3, [r7, #12]
  23567. 800a3ce: 681b ldr r3, [r3, #0]
  23568. 800a3d0: 687a ldr r2, [r7, #4]
  23569. 800a3d2: 60da str r2, [r3, #12]
  23570. }
  23571. 800a3d4: e04d b.n 800a472 <DMA_SetConfig+0x32a>
  23572. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23573. 800a3d6: 68fb ldr r3, [r7, #12]
  23574. 800a3d8: 681b ldr r3, [r3, #0]
  23575. 800a3da: 4a29 ldr r2, [pc, #164] @ (800a480 <DMA_SetConfig+0x338>)
  23576. 800a3dc: 4293 cmp r3, r2
  23577. 800a3de: d022 beq.n 800a426 <DMA_SetConfig+0x2de>
  23578. 800a3e0: 68fb ldr r3, [r7, #12]
  23579. 800a3e2: 681b ldr r3, [r3, #0]
  23580. 800a3e4: 4a27 ldr r2, [pc, #156] @ (800a484 <DMA_SetConfig+0x33c>)
  23581. 800a3e6: 4293 cmp r3, r2
  23582. 800a3e8: d01d beq.n 800a426 <DMA_SetConfig+0x2de>
  23583. 800a3ea: 68fb ldr r3, [r7, #12]
  23584. 800a3ec: 681b ldr r3, [r3, #0]
  23585. 800a3ee: 4a26 ldr r2, [pc, #152] @ (800a488 <DMA_SetConfig+0x340>)
  23586. 800a3f0: 4293 cmp r3, r2
  23587. 800a3f2: d018 beq.n 800a426 <DMA_SetConfig+0x2de>
  23588. 800a3f4: 68fb ldr r3, [r7, #12]
  23589. 800a3f6: 681b ldr r3, [r3, #0]
  23590. 800a3f8: 4a24 ldr r2, [pc, #144] @ (800a48c <DMA_SetConfig+0x344>)
  23591. 800a3fa: 4293 cmp r3, r2
  23592. 800a3fc: d013 beq.n 800a426 <DMA_SetConfig+0x2de>
  23593. 800a3fe: 68fb ldr r3, [r7, #12]
  23594. 800a400: 681b ldr r3, [r3, #0]
  23595. 800a402: 4a23 ldr r2, [pc, #140] @ (800a490 <DMA_SetConfig+0x348>)
  23596. 800a404: 4293 cmp r3, r2
  23597. 800a406: d00e beq.n 800a426 <DMA_SetConfig+0x2de>
  23598. 800a408: 68fb ldr r3, [r7, #12]
  23599. 800a40a: 681b ldr r3, [r3, #0]
  23600. 800a40c: 4a21 ldr r2, [pc, #132] @ (800a494 <DMA_SetConfig+0x34c>)
  23601. 800a40e: 4293 cmp r3, r2
  23602. 800a410: d009 beq.n 800a426 <DMA_SetConfig+0x2de>
  23603. 800a412: 68fb ldr r3, [r7, #12]
  23604. 800a414: 681b ldr r3, [r3, #0]
  23605. 800a416: 4a20 ldr r2, [pc, #128] @ (800a498 <DMA_SetConfig+0x350>)
  23606. 800a418: 4293 cmp r3, r2
  23607. 800a41a: d004 beq.n 800a426 <DMA_SetConfig+0x2de>
  23608. 800a41c: 68fb ldr r3, [r7, #12]
  23609. 800a41e: 681b ldr r3, [r3, #0]
  23610. 800a420: 4a1e ldr r2, [pc, #120] @ (800a49c <DMA_SetConfig+0x354>)
  23611. 800a422: 4293 cmp r3, r2
  23612. 800a424: d101 bne.n 800a42a <DMA_SetConfig+0x2e2>
  23613. 800a426: 2301 movs r3, #1
  23614. 800a428: e000 b.n 800a42c <DMA_SetConfig+0x2e4>
  23615. 800a42a: 2300 movs r3, #0
  23616. 800a42c: 2b00 cmp r3, #0
  23617. 800a42e: d020 beq.n 800a472 <DMA_SetConfig+0x32a>
  23618. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  23619. 800a430: 68fb ldr r3, [r7, #12]
  23620. 800a432: 6ddb ldr r3, [r3, #92] @ 0x5c
  23621. 800a434: f003 031f and.w r3, r3, #31
  23622. 800a438: 2201 movs r2, #1
  23623. 800a43a: 409a lsls r2, r3
  23624. 800a43c: 693b ldr r3, [r7, #16]
  23625. 800a43e: 605a str r2, [r3, #4]
  23626. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  23627. 800a440: 68fb ldr r3, [r7, #12]
  23628. 800a442: 681b ldr r3, [r3, #0]
  23629. 800a444: 683a ldr r2, [r7, #0]
  23630. 800a446: 605a str r2, [r3, #4]
  23631. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  23632. 800a448: 68fb ldr r3, [r7, #12]
  23633. 800a44a: 689b ldr r3, [r3, #8]
  23634. 800a44c: 2b40 cmp r3, #64 @ 0x40
  23635. 800a44e: d108 bne.n 800a462 <DMA_SetConfig+0x31a>
  23636. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  23637. 800a450: 68fb ldr r3, [r7, #12]
  23638. 800a452: 681b ldr r3, [r3, #0]
  23639. 800a454: 687a ldr r2, [r7, #4]
  23640. 800a456: 609a str r2, [r3, #8]
  23641. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  23642. 800a458: 68fb ldr r3, [r7, #12]
  23643. 800a45a: 681b ldr r3, [r3, #0]
  23644. 800a45c: 68ba ldr r2, [r7, #8]
  23645. 800a45e: 60da str r2, [r3, #12]
  23646. }
  23647. 800a460: e007 b.n 800a472 <DMA_SetConfig+0x32a>
  23648. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  23649. 800a462: 68fb ldr r3, [r7, #12]
  23650. 800a464: 681b ldr r3, [r3, #0]
  23651. 800a466: 68ba ldr r2, [r7, #8]
  23652. 800a468: 609a str r2, [r3, #8]
  23653. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  23654. 800a46a: 68fb ldr r3, [r7, #12]
  23655. 800a46c: 681b ldr r3, [r3, #0]
  23656. 800a46e: 687a ldr r2, [r7, #4]
  23657. 800a470: 60da str r2, [r3, #12]
  23658. }
  23659. 800a472: bf00 nop
  23660. 800a474: 371c adds r7, #28
  23661. 800a476: 46bd mov sp, r7
  23662. 800a478: f85d 7b04 ldr.w r7, [sp], #4
  23663. 800a47c: 4770 bx lr
  23664. 800a47e: bf00 nop
  23665. 800a480: 58025408 .word 0x58025408
  23666. 800a484: 5802541c .word 0x5802541c
  23667. 800a488: 58025430 .word 0x58025430
  23668. 800a48c: 58025444 .word 0x58025444
  23669. 800a490: 58025458 .word 0x58025458
  23670. 800a494: 5802546c .word 0x5802546c
  23671. 800a498: 58025480 .word 0x58025480
  23672. 800a49c: 58025494 .word 0x58025494
  23673. 0800a4a0 <DMA_CalcBaseAndBitshift>:
  23674. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23675. * the configuration information for the specified DMA Stream.
  23676. * @retval Stream base address
  23677. */
  23678. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  23679. {
  23680. 800a4a0: b480 push {r7}
  23681. 800a4a2: b085 sub sp, #20
  23682. 800a4a4: af00 add r7, sp, #0
  23683. 800a4a6: 6078 str r0, [r7, #4]
  23684. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  23685. 800a4a8: 687b ldr r3, [r7, #4]
  23686. 800a4aa: 681b ldr r3, [r3, #0]
  23687. 800a4ac: 4a42 ldr r2, [pc, #264] @ (800a5b8 <DMA_CalcBaseAndBitshift+0x118>)
  23688. 800a4ae: 4293 cmp r3, r2
  23689. 800a4b0: d04a beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23690. 800a4b2: 687b ldr r3, [r7, #4]
  23691. 800a4b4: 681b ldr r3, [r3, #0]
  23692. 800a4b6: 4a41 ldr r2, [pc, #260] @ (800a5bc <DMA_CalcBaseAndBitshift+0x11c>)
  23693. 800a4b8: 4293 cmp r3, r2
  23694. 800a4ba: d045 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23695. 800a4bc: 687b ldr r3, [r7, #4]
  23696. 800a4be: 681b ldr r3, [r3, #0]
  23697. 800a4c0: 4a3f ldr r2, [pc, #252] @ (800a5c0 <DMA_CalcBaseAndBitshift+0x120>)
  23698. 800a4c2: 4293 cmp r3, r2
  23699. 800a4c4: d040 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23700. 800a4c6: 687b ldr r3, [r7, #4]
  23701. 800a4c8: 681b ldr r3, [r3, #0]
  23702. 800a4ca: 4a3e ldr r2, [pc, #248] @ (800a5c4 <DMA_CalcBaseAndBitshift+0x124>)
  23703. 800a4cc: 4293 cmp r3, r2
  23704. 800a4ce: d03b beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23705. 800a4d0: 687b ldr r3, [r7, #4]
  23706. 800a4d2: 681b ldr r3, [r3, #0]
  23707. 800a4d4: 4a3c ldr r2, [pc, #240] @ (800a5c8 <DMA_CalcBaseAndBitshift+0x128>)
  23708. 800a4d6: 4293 cmp r3, r2
  23709. 800a4d8: d036 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23710. 800a4da: 687b ldr r3, [r7, #4]
  23711. 800a4dc: 681b ldr r3, [r3, #0]
  23712. 800a4de: 4a3b ldr r2, [pc, #236] @ (800a5cc <DMA_CalcBaseAndBitshift+0x12c>)
  23713. 800a4e0: 4293 cmp r3, r2
  23714. 800a4e2: d031 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23715. 800a4e4: 687b ldr r3, [r7, #4]
  23716. 800a4e6: 681b ldr r3, [r3, #0]
  23717. 800a4e8: 4a39 ldr r2, [pc, #228] @ (800a5d0 <DMA_CalcBaseAndBitshift+0x130>)
  23718. 800a4ea: 4293 cmp r3, r2
  23719. 800a4ec: d02c beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23720. 800a4ee: 687b ldr r3, [r7, #4]
  23721. 800a4f0: 681b ldr r3, [r3, #0]
  23722. 800a4f2: 4a38 ldr r2, [pc, #224] @ (800a5d4 <DMA_CalcBaseAndBitshift+0x134>)
  23723. 800a4f4: 4293 cmp r3, r2
  23724. 800a4f6: d027 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23725. 800a4f8: 687b ldr r3, [r7, #4]
  23726. 800a4fa: 681b ldr r3, [r3, #0]
  23727. 800a4fc: 4a36 ldr r2, [pc, #216] @ (800a5d8 <DMA_CalcBaseAndBitshift+0x138>)
  23728. 800a4fe: 4293 cmp r3, r2
  23729. 800a500: d022 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23730. 800a502: 687b ldr r3, [r7, #4]
  23731. 800a504: 681b ldr r3, [r3, #0]
  23732. 800a506: 4a35 ldr r2, [pc, #212] @ (800a5dc <DMA_CalcBaseAndBitshift+0x13c>)
  23733. 800a508: 4293 cmp r3, r2
  23734. 800a50a: d01d beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23735. 800a50c: 687b ldr r3, [r7, #4]
  23736. 800a50e: 681b ldr r3, [r3, #0]
  23737. 800a510: 4a33 ldr r2, [pc, #204] @ (800a5e0 <DMA_CalcBaseAndBitshift+0x140>)
  23738. 800a512: 4293 cmp r3, r2
  23739. 800a514: d018 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23740. 800a516: 687b ldr r3, [r7, #4]
  23741. 800a518: 681b ldr r3, [r3, #0]
  23742. 800a51a: 4a32 ldr r2, [pc, #200] @ (800a5e4 <DMA_CalcBaseAndBitshift+0x144>)
  23743. 800a51c: 4293 cmp r3, r2
  23744. 800a51e: d013 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23745. 800a520: 687b ldr r3, [r7, #4]
  23746. 800a522: 681b ldr r3, [r3, #0]
  23747. 800a524: 4a30 ldr r2, [pc, #192] @ (800a5e8 <DMA_CalcBaseAndBitshift+0x148>)
  23748. 800a526: 4293 cmp r3, r2
  23749. 800a528: d00e beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23750. 800a52a: 687b ldr r3, [r7, #4]
  23751. 800a52c: 681b ldr r3, [r3, #0]
  23752. 800a52e: 4a2f ldr r2, [pc, #188] @ (800a5ec <DMA_CalcBaseAndBitshift+0x14c>)
  23753. 800a530: 4293 cmp r3, r2
  23754. 800a532: d009 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23755. 800a534: 687b ldr r3, [r7, #4]
  23756. 800a536: 681b ldr r3, [r3, #0]
  23757. 800a538: 4a2d ldr r2, [pc, #180] @ (800a5f0 <DMA_CalcBaseAndBitshift+0x150>)
  23758. 800a53a: 4293 cmp r3, r2
  23759. 800a53c: d004 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23760. 800a53e: 687b ldr r3, [r7, #4]
  23761. 800a540: 681b ldr r3, [r3, #0]
  23762. 800a542: 4a2c ldr r2, [pc, #176] @ (800a5f4 <DMA_CalcBaseAndBitshift+0x154>)
  23763. 800a544: 4293 cmp r3, r2
  23764. 800a546: d101 bne.n 800a54c <DMA_CalcBaseAndBitshift+0xac>
  23765. 800a548: 2301 movs r3, #1
  23766. 800a54a: e000 b.n 800a54e <DMA_CalcBaseAndBitshift+0xae>
  23767. 800a54c: 2300 movs r3, #0
  23768. 800a54e: 2b00 cmp r3, #0
  23769. 800a550: d024 beq.n 800a59c <DMA_CalcBaseAndBitshift+0xfc>
  23770. {
  23771. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  23772. 800a552: 687b ldr r3, [r7, #4]
  23773. 800a554: 681b ldr r3, [r3, #0]
  23774. 800a556: b2db uxtb r3, r3
  23775. 800a558: 3b10 subs r3, #16
  23776. 800a55a: 4a27 ldr r2, [pc, #156] @ (800a5f8 <DMA_CalcBaseAndBitshift+0x158>)
  23777. 800a55c: fba2 2303 umull r2, r3, r2, r3
  23778. 800a560: 091b lsrs r3, r3, #4
  23779. 800a562: 60fb str r3, [r7, #12]
  23780. /* lookup table for necessary bitshift of flags within status registers */
  23781. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  23782. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  23783. 800a564: 68fb ldr r3, [r7, #12]
  23784. 800a566: f003 0307 and.w r3, r3, #7
  23785. 800a56a: 4a24 ldr r2, [pc, #144] @ (800a5fc <DMA_CalcBaseAndBitshift+0x15c>)
  23786. 800a56c: 5cd3 ldrb r3, [r2, r3]
  23787. 800a56e: 461a mov r2, r3
  23788. 800a570: 687b ldr r3, [r7, #4]
  23789. 800a572: 65da str r2, [r3, #92] @ 0x5c
  23790. if (stream_number > 3U)
  23791. 800a574: 68fb ldr r3, [r7, #12]
  23792. 800a576: 2b03 cmp r3, #3
  23793. 800a578: d908 bls.n 800a58c <DMA_CalcBaseAndBitshift+0xec>
  23794. {
  23795. /* return pointer to HISR and HIFCR */
  23796. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  23797. 800a57a: 687b ldr r3, [r7, #4]
  23798. 800a57c: 681b ldr r3, [r3, #0]
  23799. 800a57e: 461a mov r2, r3
  23800. 800a580: 4b1f ldr r3, [pc, #124] @ (800a600 <DMA_CalcBaseAndBitshift+0x160>)
  23801. 800a582: 4013 ands r3, r2
  23802. 800a584: 1d1a adds r2, r3, #4
  23803. 800a586: 687b ldr r3, [r7, #4]
  23804. 800a588: 659a str r2, [r3, #88] @ 0x58
  23805. 800a58a: e00d b.n 800a5a8 <DMA_CalcBaseAndBitshift+0x108>
  23806. }
  23807. else
  23808. {
  23809. /* return pointer to LISR and LIFCR */
  23810. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  23811. 800a58c: 687b ldr r3, [r7, #4]
  23812. 800a58e: 681b ldr r3, [r3, #0]
  23813. 800a590: 461a mov r2, r3
  23814. 800a592: 4b1b ldr r3, [pc, #108] @ (800a600 <DMA_CalcBaseAndBitshift+0x160>)
  23815. 800a594: 4013 ands r3, r2
  23816. 800a596: 687a ldr r2, [r7, #4]
  23817. 800a598: 6593 str r3, [r2, #88] @ 0x58
  23818. 800a59a: e005 b.n 800a5a8 <DMA_CalcBaseAndBitshift+0x108>
  23819. }
  23820. }
  23821. else /* BDMA instance(s) */
  23822. {
  23823. /* return pointer to ISR and IFCR */
  23824. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  23825. 800a59c: 687b ldr r3, [r7, #4]
  23826. 800a59e: 681b ldr r3, [r3, #0]
  23827. 800a5a0: f023 02ff bic.w r2, r3, #255 @ 0xff
  23828. 800a5a4: 687b ldr r3, [r7, #4]
  23829. 800a5a6: 659a str r2, [r3, #88] @ 0x58
  23830. }
  23831. return hdma->StreamBaseAddress;
  23832. 800a5a8: 687b ldr r3, [r7, #4]
  23833. 800a5aa: 6d9b ldr r3, [r3, #88] @ 0x58
  23834. }
  23835. 800a5ac: 4618 mov r0, r3
  23836. 800a5ae: 3714 adds r7, #20
  23837. 800a5b0: 46bd mov sp, r7
  23838. 800a5b2: f85d 7b04 ldr.w r7, [sp], #4
  23839. 800a5b6: 4770 bx lr
  23840. 800a5b8: 40020010 .word 0x40020010
  23841. 800a5bc: 40020028 .word 0x40020028
  23842. 800a5c0: 40020040 .word 0x40020040
  23843. 800a5c4: 40020058 .word 0x40020058
  23844. 800a5c8: 40020070 .word 0x40020070
  23845. 800a5cc: 40020088 .word 0x40020088
  23846. 800a5d0: 400200a0 .word 0x400200a0
  23847. 800a5d4: 400200b8 .word 0x400200b8
  23848. 800a5d8: 40020410 .word 0x40020410
  23849. 800a5dc: 40020428 .word 0x40020428
  23850. 800a5e0: 40020440 .word 0x40020440
  23851. 800a5e4: 40020458 .word 0x40020458
  23852. 800a5e8: 40020470 .word 0x40020470
  23853. 800a5ec: 40020488 .word 0x40020488
  23854. 800a5f0: 400204a0 .word 0x400204a0
  23855. 800a5f4: 400204b8 .word 0x400204b8
  23856. 800a5f8: aaaaaaab .word 0xaaaaaaab
  23857. 800a5fc: 08018c28 .word 0x08018c28
  23858. 800a600: fffffc00 .word 0xfffffc00
  23859. 0800a604 <DMA_CheckFifoParam>:
  23860. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23861. * the configuration information for the specified DMA Stream.
  23862. * @retval HAL status
  23863. */
  23864. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  23865. {
  23866. 800a604: b480 push {r7}
  23867. 800a606: b085 sub sp, #20
  23868. 800a608: af00 add r7, sp, #0
  23869. 800a60a: 6078 str r0, [r7, #4]
  23870. HAL_StatusTypeDef status = HAL_OK;
  23871. 800a60c: 2300 movs r3, #0
  23872. 800a60e: 73fb strb r3, [r7, #15]
  23873. /* Memory Data size equal to Byte */
  23874. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  23875. 800a610: 687b ldr r3, [r7, #4]
  23876. 800a612: 699b ldr r3, [r3, #24]
  23877. 800a614: 2b00 cmp r3, #0
  23878. 800a616: d120 bne.n 800a65a <DMA_CheckFifoParam+0x56>
  23879. {
  23880. switch (hdma->Init.FIFOThreshold)
  23881. 800a618: 687b ldr r3, [r7, #4]
  23882. 800a61a: 6a9b ldr r3, [r3, #40] @ 0x28
  23883. 800a61c: 2b03 cmp r3, #3
  23884. 800a61e: d858 bhi.n 800a6d2 <DMA_CheckFifoParam+0xce>
  23885. 800a620: a201 add r2, pc, #4 @ (adr r2, 800a628 <DMA_CheckFifoParam+0x24>)
  23886. 800a622: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23887. 800a626: bf00 nop
  23888. 800a628: 0800a639 .word 0x0800a639
  23889. 800a62c: 0800a64b .word 0x0800a64b
  23890. 800a630: 0800a639 .word 0x0800a639
  23891. 800a634: 0800a6d3 .word 0x0800a6d3
  23892. {
  23893. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  23894. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  23895. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  23896. 800a638: 687b ldr r3, [r7, #4]
  23897. 800a63a: 6adb ldr r3, [r3, #44] @ 0x2c
  23898. 800a63c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  23899. 800a640: 2b00 cmp r3, #0
  23900. 800a642: d048 beq.n 800a6d6 <DMA_CheckFifoParam+0xd2>
  23901. {
  23902. status = HAL_ERROR;
  23903. 800a644: 2301 movs r3, #1
  23904. 800a646: 73fb strb r3, [r7, #15]
  23905. }
  23906. break;
  23907. 800a648: e045 b.n 800a6d6 <DMA_CheckFifoParam+0xd2>
  23908. case DMA_FIFO_THRESHOLD_HALFFULL:
  23909. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  23910. 800a64a: 687b ldr r3, [r7, #4]
  23911. 800a64c: 6adb ldr r3, [r3, #44] @ 0x2c
  23912. 800a64e: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  23913. 800a652: d142 bne.n 800a6da <DMA_CheckFifoParam+0xd6>
  23914. {
  23915. status = HAL_ERROR;
  23916. 800a654: 2301 movs r3, #1
  23917. 800a656: 73fb strb r3, [r7, #15]
  23918. }
  23919. break;
  23920. 800a658: e03f b.n 800a6da <DMA_CheckFifoParam+0xd6>
  23921. break;
  23922. }
  23923. }
  23924. /* Memory Data size equal to Half-Word */
  23925. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  23926. 800a65a: 687b ldr r3, [r7, #4]
  23927. 800a65c: 699b ldr r3, [r3, #24]
  23928. 800a65e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  23929. 800a662: d123 bne.n 800a6ac <DMA_CheckFifoParam+0xa8>
  23930. {
  23931. switch (hdma->Init.FIFOThreshold)
  23932. 800a664: 687b ldr r3, [r7, #4]
  23933. 800a666: 6a9b ldr r3, [r3, #40] @ 0x28
  23934. 800a668: 2b03 cmp r3, #3
  23935. 800a66a: d838 bhi.n 800a6de <DMA_CheckFifoParam+0xda>
  23936. 800a66c: a201 add r2, pc, #4 @ (adr r2, 800a674 <DMA_CheckFifoParam+0x70>)
  23937. 800a66e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23938. 800a672: bf00 nop
  23939. 800a674: 0800a685 .word 0x0800a685
  23940. 800a678: 0800a68b .word 0x0800a68b
  23941. 800a67c: 0800a685 .word 0x0800a685
  23942. 800a680: 0800a69d .word 0x0800a69d
  23943. {
  23944. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  23945. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  23946. status = HAL_ERROR;
  23947. 800a684: 2301 movs r3, #1
  23948. 800a686: 73fb strb r3, [r7, #15]
  23949. break;
  23950. 800a688: e030 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  23951. case DMA_FIFO_THRESHOLD_HALFFULL:
  23952. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  23953. 800a68a: 687b ldr r3, [r7, #4]
  23954. 800a68c: 6adb ldr r3, [r3, #44] @ 0x2c
  23955. 800a68e: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  23956. 800a692: 2b00 cmp r3, #0
  23957. 800a694: d025 beq.n 800a6e2 <DMA_CheckFifoParam+0xde>
  23958. {
  23959. status = HAL_ERROR;
  23960. 800a696: 2301 movs r3, #1
  23961. 800a698: 73fb strb r3, [r7, #15]
  23962. }
  23963. break;
  23964. 800a69a: e022 b.n 800a6e2 <DMA_CheckFifoParam+0xde>
  23965. case DMA_FIFO_THRESHOLD_FULL:
  23966. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  23967. 800a69c: 687b ldr r3, [r7, #4]
  23968. 800a69e: 6adb ldr r3, [r3, #44] @ 0x2c
  23969. 800a6a0: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  23970. 800a6a4: d11f bne.n 800a6e6 <DMA_CheckFifoParam+0xe2>
  23971. {
  23972. status = HAL_ERROR;
  23973. 800a6a6: 2301 movs r3, #1
  23974. 800a6a8: 73fb strb r3, [r7, #15]
  23975. }
  23976. break;
  23977. 800a6aa: e01c b.n 800a6e6 <DMA_CheckFifoParam+0xe2>
  23978. }
  23979. /* Memory Data size equal to Word */
  23980. else
  23981. {
  23982. switch (hdma->Init.FIFOThreshold)
  23983. 800a6ac: 687b ldr r3, [r7, #4]
  23984. 800a6ae: 6a9b ldr r3, [r3, #40] @ 0x28
  23985. 800a6b0: 2b02 cmp r3, #2
  23986. 800a6b2: d902 bls.n 800a6ba <DMA_CheckFifoParam+0xb6>
  23987. 800a6b4: 2b03 cmp r3, #3
  23988. 800a6b6: d003 beq.n 800a6c0 <DMA_CheckFifoParam+0xbc>
  23989. status = HAL_ERROR;
  23990. }
  23991. break;
  23992. default:
  23993. break;
  23994. 800a6b8: e018 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  23995. status = HAL_ERROR;
  23996. 800a6ba: 2301 movs r3, #1
  23997. 800a6bc: 73fb strb r3, [r7, #15]
  23998. break;
  23999. 800a6be: e015 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24000. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24001. 800a6c0: 687b ldr r3, [r7, #4]
  24002. 800a6c2: 6adb ldr r3, [r3, #44] @ 0x2c
  24003. 800a6c4: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24004. 800a6c8: 2b00 cmp r3, #0
  24005. 800a6ca: d00e beq.n 800a6ea <DMA_CheckFifoParam+0xe6>
  24006. status = HAL_ERROR;
  24007. 800a6cc: 2301 movs r3, #1
  24008. 800a6ce: 73fb strb r3, [r7, #15]
  24009. break;
  24010. 800a6d0: e00b b.n 800a6ea <DMA_CheckFifoParam+0xe6>
  24011. break;
  24012. 800a6d2: bf00 nop
  24013. 800a6d4: e00a b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24014. break;
  24015. 800a6d6: bf00 nop
  24016. 800a6d8: e008 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24017. break;
  24018. 800a6da: bf00 nop
  24019. 800a6dc: e006 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24020. break;
  24021. 800a6de: bf00 nop
  24022. 800a6e0: e004 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24023. break;
  24024. 800a6e2: bf00 nop
  24025. 800a6e4: e002 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24026. break;
  24027. 800a6e6: bf00 nop
  24028. 800a6e8: e000 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24029. break;
  24030. 800a6ea: bf00 nop
  24031. }
  24032. }
  24033. return status;
  24034. 800a6ec: 7bfb ldrb r3, [r7, #15]
  24035. }
  24036. 800a6ee: 4618 mov r0, r3
  24037. 800a6f0: 3714 adds r7, #20
  24038. 800a6f2: 46bd mov sp, r7
  24039. 800a6f4: f85d 7b04 ldr.w r7, [sp], #4
  24040. 800a6f8: 4770 bx lr
  24041. 800a6fa: bf00 nop
  24042. 0800a6fc <DMA_CalcDMAMUXChannelBaseAndMask>:
  24043. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24044. * the configuration information for the specified DMA Stream.
  24045. * @retval HAL status
  24046. */
  24047. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  24048. {
  24049. 800a6fc: b480 push {r7}
  24050. 800a6fe: b085 sub sp, #20
  24051. 800a700: af00 add r7, sp, #0
  24052. 800a702: 6078 str r0, [r7, #4]
  24053. uint32_t stream_number;
  24054. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  24055. 800a704: 687b ldr r3, [r7, #4]
  24056. 800a706: 681b ldr r3, [r3, #0]
  24057. 800a708: 60bb str r3, [r7, #8]
  24058. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  24059. 800a70a: 687b ldr r3, [r7, #4]
  24060. 800a70c: 681b ldr r3, [r3, #0]
  24061. 800a70e: 4a38 ldr r2, [pc, #224] @ (800a7f0 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  24062. 800a710: 4293 cmp r3, r2
  24063. 800a712: d022 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24064. 800a714: 687b ldr r3, [r7, #4]
  24065. 800a716: 681b ldr r3, [r3, #0]
  24066. 800a718: 4a36 ldr r2, [pc, #216] @ (800a7f4 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  24067. 800a71a: 4293 cmp r3, r2
  24068. 800a71c: d01d beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24069. 800a71e: 687b ldr r3, [r7, #4]
  24070. 800a720: 681b ldr r3, [r3, #0]
  24071. 800a722: 4a35 ldr r2, [pc, #212] @ (800a7f8 <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  24072. 800a724: 4293 cmp r3, r2
  24073. 800a726: d018 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24074. 800a728: 687b ldr r3, [r7, #4]
  24075. 800a72a: 681b ldr r3, [r3, #0]
  24076. 800a72c: 4a33 ldr r2, [pc, #204] @ (800a7fc <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  24077. 800a72e: 4293 cmp r3, r2
  24078. 800a730: d013 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24079. 800a732: 687b ldr r3, [r7, #4]
  24080. 800a734: 681b ldr r3, [r3, #0]
  24081. 800a736: 4a32 ldr r2, [pc, #200] @ (800a800 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  24082. 800a738: 4293 cmp r3, r2
  24083. 800a73a: d00e beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24084. 800a73c: 687b ldr r3, [r7, #4]
  24085. 800a73e: 681b ldr r3, [r3, #0]
  24086. 800a740: 4a30 ldr r2, [pc, #192] @ (800a804 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  24087. 800a742: 4293 cmp r3, r2
  24088. 800a744: d009 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24089. 800a746: 687b ldr r3, [r7, #4]
  24090. 800a748: 681b ldr r3, [r3, #0]
  24091. 800a74a: 4a2f ldr r2, [pc, #188] @ (800a808 <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  24092. 800a74c: 4293 cmp r3, r2
  24093. 800a74e: d004 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24094. 800a750: 687b ldr r3, [r7, #4]
  24095. 800a752: 681b ldr r3, [r3, #0]
  24096. 800a754: 4a2d ldr r2, [pc, #180] @ (800a80c <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  24097. 800a756: 4293 cmp r3, r2
  24098. 800a758: d101 bne.n 800a75e <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  24099. 800a75a: 2301 movs r3, #1
  24100. 800a75c: e000 b.n 800a760 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  24101. 800a75e: 2300 movs r3, #0
  24102. 800a760: 2b00 cmp r3, #0
  24103. 800a762: d01a beq.n 800a79a <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  24104. {
  24105. /* BDMA Channels are connected to DMAMUX2 channels */
  24106. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  24107. 800a764: 687b ldr r3, [r7, #4]
  24108. 800a766: 681b ldr r3, [r3, #0]
  24109. 800a768: b2db uxtb r3, r3
  24110. 800a76a: 3b08 subs r3, #8
  24111. 800a76c: 4a28 ldr r2, [pc, #160] @ (800a810 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  24112. 800a76e: fba2 2303 umull r2, r3, r2, r3
  24113. 800a772: 091b lsrs r3, r3, #4
  24114. 800a774: 60fb str r3, [r7, #12]
  24115. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  24116. 800a776: 68fa ldr r2, [r7, #12]
  24117. 800a778: 4b26 ldr r3, [pc, #152] @ (800a814 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  24118. 800a77a: 4413 add r3, r2
  24119. 800a77c: 009b lsls r3, r3, #2
  24120. 800a77e: 461a mov r2, r3
  24121. 800a780: 687b ldr r3, [r7, #4]
  24122. 800a782: 661a str r2, [r3, #96] @ 0x60
  24123. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  24124. 800a784: 687b ldr r3, [r7, #4]
  24125. 800a786: 4a24 ldr r2, [pc, #144] @ (800a818 <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  24126. 800a788: 665a str r2, [r3, #100] @ 0x64
  24127. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24128. 800a78a: 68fb ldr r3, [r7, #12]
  24129. 800a78c: f003 031f and.w r3, r3, #31
  24130. 800a790: 2201 movs r2, #1
  24131. 800a792: 409a lsls r2, r3
  24132. 800a794: 687b ldr r3, [r7, #4]
  24133. 800a796: 669a str r2, [r3, #104] @ 0x68
  24134. }
  24135. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  24136. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  24137. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24138. }
  24139. }
  24140. 800a798: e024 b.n 800a7e4 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  24141. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24142. 800a79a: 687b ldr r3, [r7, #4]
  24143. 800a79c: 681b ldr r3, [r3, #0]
  24144. 800a79e: b2db uxtb r3, r3
  24145. 800a7a0: 3b10 subs r3, #16
  24146. 800a7a2: 4a1e ldr r2, [pc, #120] @ (800a81c <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  24147. 800a7a4: fba2 2303 umull r2, r3, r2, r3
  24148. 800a7a8: 091b lsrs r3, r3, #4
  24149. 800a7aa: 60fb str r3, [r7, #12]
  24150. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  24151. 800a7ac: 68bb ldr r3, [r7, #8]
  24152. 800a7ae: 4a1c ldr r2, [pc, #112] @ (800a820 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  24153. 800a7b0: 4293 cmp r3, r2
  24154. 800a7b2: d806 bhi.n 800a7c2 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  24155. 800a7b4: 68bb ldr r3, [r7, #8]
  24156. 800a7b6: 4a1b ldr r2, [pc, #108] @ (800a824 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  24157. 800a7b8: 4293 cmp r3, r2
  24158. 800a7ba: d902 bls.n 800a7c2 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  24159. stream_number += 8U;
  24160. 800a7bc: 68fb ldr r3, [r7, #12]
  24161. 800a7be: 3308 adds r3, #8
  24162. 800a7c0: 60fb str r3, [r7, #12]
  24163. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  24164. 800a7c2: 68fa ldr r2, [r7, #12]
  24165. 800a7c4: 4b18 ldr r3, [pc, #96] @ (800a828 <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  24166. 800a7c6: 4413 add r3, r2
  24167. 800a7c8: 009b lsls r3, r3, #2
  24168. 800a7ca: 461a mov r2, r3
  24169. 800a7cc: 687b ldr r3, [r7, #4]
  24170. 800a7ce: 661a str r2, [r3, #96] @ 0x60
  24171. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  24172. 800a7d0: 687b ldr r3, [r7, #4]
  24173. 800a7d2: 4a16 ldr r2, [pc, #88] @ (800a82c <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  24174. 800a7d4: 665a str r2, [r3, #100] @ 0x64
  24175. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24176. 800a7d6: 68fb ldr r3, [r7, #12]
  24177. 800a7d8: f003 031f and.w r3, r3, #31
  24178. 800a7dc: 2201 movs r2, #1
  24179. 800a7de: 409a lsls r2, r3
  24180. 800a7e0: 687b ldr r3, [r7, #4]
  24181. 800a7e2: 669a str r2, [r3, #104] @ 0x68
  24182. }
  24183. 800a7e4: bf00 nop
  24184. 800a7e6: 3714 adds r7, #20
  24185. 800a7e8: 46bd mov sp, r7
  24186. 800a7ea: f85d 7b04 ldr.w r7, [sp], #4
  24187. 800a7ee: 4770 bx lr
  24188. 800a7f0: 58025408 .word 0x58025408
  24189. 800a7f4: 5802541c .word 0x5802541c
  24190. 800a7f8: 58025430 .word 0x58025430
  24191. 800a7fc: 58025444 .word 0x58025444
  24192. 800a800: 58025458 .word 0x58025458
  24193. 800a804: 5802546c .word 0x5802546c
  24194. 800a808: 58025480 .word 0x58025480
  24195. 800a80c: 58025494 .word 0x58025494
  24196. 800a810: cccccccd .word 0xcccccccd
  24197. 800a814: 16009600 .word 0x16009600
  24198. 800a818: 58025880 .word 0x58025880
  24199. 800a81c: aaaaaaab .word 0xaaaaaaab
  24200. 800a820: 400204b8 .word 0x400204b8
  24201. 800a824: 4002040f .word 0x4002040f
  24202. 800a828: 10008200 .word 0x10008200
  24203. 800a82c: 40020880 .word 0x40020880
  24204. 0800a830 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  24205. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24206. * the configuration information for the specified DMA Stream.
  24207. * @retval HAL status
  24208. */
  24209. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  24210. {
  24211. 800a830: b480 push {r7}
  24212. 800a832: b085 sub sp, #20
  24213. 800a834: af00 add r7, sp, #0
  24214. 800a836: 6078 str r0, [r7, #4]
  24215. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  24216. 800a838: 687b ldr r3, [r7, #4]
  24217. 800a83a: 685b ldr r3, [r3, #4]
  24218. 800a83c: b2db uxtb r3, r3
  24219. 800a83e: 60fb str r3, [r7, #12]
  24220. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  24221. 800a840: 68fb ldr r3, [r7, #12]
  24222. 800a842: 2b00 cmp r3, #0
  24223. 800a844: d04a beq.n 800a8dc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24224. 800a846: 68fb ldr r3, [r7, #12]
  24225. 800a848: 2b08 cmp r3, #8
  24226. 800a84a: d847 bhi.n 800a8dc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24227. {
  24228. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  24229. 800a84c: 687b ldr r3, [r7, #4]
  24230. 800a84e: 681b ldr r3, [r3, #0]
  24231. 800a850: 4a25 ldr r2, [pc, #148] @ (800a8e8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  24232. 800a852: 4293 cmp r3, r2
  24233. 800a854: d022 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24234. 800a856: 687b ldr r3, [r7, #4]
  24235. 800a858: 681b ldr r3, [r3, #0]
  24236. 800a85a: 4a24 ldr r2, [pc, #144] @ (800a8ec <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  24237. 800a85c: 4293 cmp r3, r2
  24238. 800a85e: d01d beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24239. 800a860: 687b ldr r3, [r7, #4]
  24240. 800a862: 681b ldr r3, [r3, #0]
  24241. 800a864: 4a22 ldr r2, [pc, #136] @ (800a8f0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  24242. 800a866: 4293 cmp r3, r2
  24243. 800a868: d018 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24244. 800a86a: 687b ldr r3, [r7, #4]
  24245. 800a86c: 681b ldr r3, [r3, #0]
  24246. 800a86e: 4a21 ldr r2, [pc, #132] @ (800a8f4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  24247. 800a870: 4293 cmp r3, r2
  24248. 800a872: d013 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24249. 800a874: 687b ldr r3, [r7, #4]
  24250. 800a876: 681b ldr r3, [r3, #0]
  24251. 800a878: 4a1f ldr r2, [pc, #124] @ (800a8f8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  24252. 800a87a: 4293 cmp r3, r2
  24253. 800a87c: d00e beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24254. 800a87e: 687b ldr r3, [r7, #4]
  24255. 800a880: 681b ldr r3, [r3, #0]
  24256. 800a882: 4a1e ldr r2, [pc, #120] @ (800a8fc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  24257. 800a884: 4293 cmp r3, r2
  24258. 800a886: d009 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24259. 800a888: 687b ldr r3, [r7, #4]
  24260. 800a88a: 681b ldr r3, [r3, #0]
  24261. 800a88c: 4a1c ldr r2, [pc, #112] @ (800a900 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  24262. 800a88e: 4293 cmp r3, r2
  24263. 800a890: d004 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24264. 800a892: 687b ldr r3, [r7, #4]
  24265. 800a894: 681b ldr r3, [r3, #0]
  24266. 800a896: 4a1b ldr r2, [pc, #108] @ (800a904 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  24267. 800a898: 4293 cmp r3, r2
  24268. 800a89a: d101 bne.n 800a8a0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  24269. 800a89c: 2301 movs r3, #1
  24270. 800a89e: e000 b.n 800a8a2 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  24271. 800a8a0: 2300 movs r3, #0
  24272. 800a8a2: 2b00 cmp r3, #0
  24273. 800a8a4: d00a beq.n 800a8bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  24274. {
  24275. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  24276. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  24277. 800a8a6: 68fa ldr r2, [r7, #12]
  24278. 800a8a8: 4b17 ldr r3, [pc, #92] @ (800a908 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  24279. 800a8aa: 4413 add r3, r2
  24280. 800a8ac: 009b lsls r3, r3, #2
  24281. 800a8ae: 461a mov r2, r3
  24282. 800a8b0: 687b ldr r3, [r7, #4]
  24283. 800a8b2: 66da str r2, [r3, #108] @ 0x6c
  24284. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  24285. 800a8b4: 687b ldr r3, [r7, #4]
  24286. 800a8b6: 4a15 ldr r2, [pc, #84] @ (800a90c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  24287. 800a8b8: 671a str r2, [r3, #112] @ 0x70
  24288. 800a8ba: e009 b.n 800a8d0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  24289. }
  24290. else
  24291. {
  24292. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  24293. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  24294. 800a8bc: 68fa ldr r2, [r7, #12]
  24295. 800a8be: 4b14 ldr r3, [pc, #80] @ (800a910 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  24296. 800a8c0: 4413 add r3, r2
  24297. 800a8c2: 009b lsls r3, r3, #2
  24298. 800a8c4: 461a mov r2, r3
  24299. 800a8c6: 687b ldr r3, [r7, #4]
  24300. 800a8c8: 66da str r2, [r3, #108] @ 0x6c
  24301. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  24302. 800a8ca: 687b ldr r3, [r7, #4]
  24303. 800a8cc: 4a11 ldr r2, [pc, #68] @ (800a914 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  24304. 800a8ce: 671a str r2, [r3, #112] @ 0x70
  24305. }
  24306. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  24307. 800a8d0: 68fb ldr r3, [r7, #12]
  24308. 800a8d2: 3b01 subs r3, #1
  24309. 800a8d4: 2201 movs r2, #1
  24310. 800a8d6: 409a lsls r2, r3
  24311. 800a8d8: 687b ldr r3, [r7, #4]
  24312. 800a8da: 675a str r2, [r3, #116] @ 0x74
  24313. }
  24314. }
  24315. 800a8dc: bf00 nop
  24316. 800a8de: 3714 adds r7, #20
  24317. 800a8e0: 46bd mov sp, r7
  24318. 800a8e2: f85d 7b04 ldr.w r7, [sp], #4
  24319. 800a8e6: 4770 bx lr
  24320. 800a8e8: 58025408 .word 0x58025408
  24321. 800a8ec: 5802541c .word 0x5802541c
  24322. 800a8f0: 58025430 .word 0x58025430
  24323. 800a8f4: 58025444 .word 0x58025444
  24324. 800a8f8: 58025458 .word 0x58025458
  24325. 800a8fc: 5802546c .word 0x5802546c
  24326. 800a900: 58025480 .word 0x58025480
  24327. 800a904: 58025494 .word 0x58025494
  24328. 800a908: 1600963f .word 0x1600963f
  24329. 800a90c: 58025940 .word 0x58025940
  24330. 800a910: 1000823f .word 0x1000823f
  24331. 800a914: 40020940 .word 0x40020940
  24332. 0800a918 <HAL_GPIO_Init>:
  24333. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  24334. * the configuration information for the specified GPIO peripheral.
  24335. * @retval None
  24336. */
  24337. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  24338. {
  24339. 800a918: b480 push {r7}
  24340. 800a91a: b089 sub sp, #36 @ 0x24
  24341. 800a91c: af00 add r7, sp, #0
  24342. 800a91e: 6078 str r0, [r7, #4]
  24343. 800a920: 6039 str r1, [r7, #0]
  24344. uint32_t position = 0x00U;
  24345. 800a922: 2300 movs r3, #0
  24346. 800a924: 61fb str r3, [r7, #28]
  24347. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  24348. #if defined(DUAL_CORE) && defined(CORE_CM4)
  24349. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  24350. #else
  24351. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  24352. 800a926: 4b89 ldr r3, [pc, #548] @ (800ab4c <HAL_GPIO_Init+0x234>)
  24353. 800a928: 617b str r3, [r7, #20]
  24354. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  24355. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  24356. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  24357. /* Configure the port pins */
  24358. while (((GPIO_Init->Pin) >> position) != 0x00U)
  24359. 800a92a: e194 b.n 800ac56 <HAL_GPIO_Init+0x33e>
  24360. {
  24361. /* Get current io position */
  24362. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  24363. 800a92c: 683b ldr r3, [r7, #0]
  24364. 800a92e: 681a ldr r2, [r3, #0]
  24365. 800a930: 2101 movs r1, #1
  24366. 800a932: 69fb ldr r3, [r7, #28]
  24367. 800a934: fa01 f303 lsl.w r3, r1, r3
  24368. 800a938: 4013 ands r3, r2
  24369. 800a93a: 613b str r3, [r7, #16]
  24370. if (iocurrent != 0x00U)
  24371. 800a93c: 693b ldr r3, [r7, #16]
  24372. 800a93e: 2b00 cmp r3, #0
  24373. 800a940: f000 8186 beq.w 800ac50 <HAL_GPIO_Init+0x338>
  24374. {
  24375. /*--------------------- GPIO Mode Configuration ------------------------*/
  24376. /* In case of Output or Alternate function mode selection */
  24377. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  24378. 800a944: 683b ldr r3, [r7, #0]
  24379. 800a946: 685b ldr r3, [r3, #4]
  24380. 800a948: f003 0303 and.w r3, r3, #3
  24381. 800a94c: 2b01 cmp r3, #1
  24382. 800a94e: d005 beq.n 800a95c <HAL_GPIO_Init+0x44>
  24383. 800a950: 683b ldr r3, [r7, #0]
  24384. 800a952: 685b ldr r3, [r3, #4]
  24385. 800a954: f003 0303 and.w r3, r3, #3
  24386. 800a958: 2b02 cmp r3, #2
  24387. 800a95a: d130 bne.n 800a9be <HAL_GPIO_Init+0xa6>
  24388. {
  24389. /* Check the Speed parameter */
  24390. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  24391. /* Configure the IO Speed */
  24392. temp = GPIOx->OSPEEDR;
  24393. 800a95c: 687b ldr r3, [r7, #4]
  24394. 800a95e: 689b ldr r3, [r3, #8]
  24395. 800a960: 61bb str r3, [r7, #24]
  24396. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  24397. 800a962: 69fb ldr r3, [r7, #28]
  24398. 800a964: 005b lsls r3, r3, #1
  24399. 800a966: 2203 movs r2, #3
  24400. 800a968: fa02 f303 lsl.w r3, r2, r3
  24401. 800a96c: 43db mvns r3, r3
  24402. 800a96e: 69ba ldr r2, [r7, #24]
  24403. 800a970: 4013 ands r3, r2
  24404. 800a972: 61bb str r3, [r7, #24]
  24405. temp |= (GPIO_Init->Speed << (position * 2U));
  24406. 800a974: 683b ldr r3, [r7, #0]
  24407. 800a976: 68da ldr r2, [r3, #12]
  24408. 800a978: 69fb ldr r3, [r7, #28]
  24409. 800a97a: 005b lsls r3, r3, #1
  24410. 800a97c: fa02 f303 lsl.w r3, r2, r3
  24411. 800a980: 69ba ldr r2, [r7, #24]
  24412. 800a982: 4313 orrs r3, r2
  24413. 800a984: 61bb str r3, [r7, #24]
  24414. GPIOx->OSPEEDR = temp;
  24415. 800a986: 687b ldr r3, [r7, #4]
  24416. 800a988: 69ba ldr r2, [r7, #24]
  24417. 800a98a: 609a str r2, [r3, #8]
  24418. /* Configure the IO Output Type */
  24419. temp = GPIOx->OTYPER;
  24420. 800a98c: 687b ldr r3, [r7, #4]
  24421. 800a98e: 685b ldr r3, [r3, #4]
  24422. 800a990: 61bb str r3, [r7, #24]
  24423. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  24424. 800a992: 2201 movs r2, #1
  24425. 800a994: 69fb ldr r3, [r7, #28]
  24426. 800a996: fa02 f303 lsl.w r3, r2, r3
  24427. 800a99a: 43db mvns r3, r3
  24428. 800a99c: 69ba ldr r2, [r7, #24]
  24429. 800a99e: 4013 ands r3, r2
  24430. 800a9a0: 61bb str r3, [r7, #24]
  24431. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  24432. 800a9a2: 683b ldr r3, [r7, #0]
  24433. 800a9a4: 685b ldr r3, [r3, #4]
  24434. 800a9a6: 091b lsrs r3, r3, #4
  24435. 800a9a8: f003 0201 and.w r2, r3, #1
  24436. 800a9ac: 69fb ldr r3, [r7, #28]
  24437. 800a9ae: fa02 f303 lsl.w r3, r2, r3
  24438. 800a9b2: 69ba ldr r2, [r7, #24]
  24439. 800a9b4: 4313 orrs r3, r2
  24440. 800a9b6: 61bb str r3, [r7, #24]
  24441. GPIOx->OTYPER = temp;
  24442. 800a9b8: 687b ldr r3, [r7, #4]
  24443. 800a9ba: 69ba ldr r2, [r7, #24]
  24444. 800a9bc: 605a str r2, [r3, #4]
  24445. }
  24446. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  24447. 800a9be: 683b ldr r3, [r7, #0]
  24448. 800a9c0: 685b ldr r3, [r3, #4]
  24449. 800a9c2: f003 0303 and.w r3, r3, #3
  24450. 800a9c6: 2b03 cmp r3, #3
  24451. 800a9c8: d017 beq.n 800a9fa <HAL_GPIO_Init+0xe2>
  24452. {
  24453. /* Check the Pull parameter */
  24454. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  24455. /* Activate the Pull-up or Pull down resistor for the current IO */
  24456. temp = GPIOx->PUPDR;
  24457. 800a9ca: 687b ldr r3, [r7, #4]
  24458. 800a9cc: 68db ldr r3, [r3, #12]
  24459. 800a9ce: 61bb str r3, [r7, #24]
  24460. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  24461. 800a9d0: 69fb ldr r3, [r7, #28]
  24462. 800a9d2: 005b lsls r3, r3, #1
  24463. 800a9d4: 2203 movs r2, #3
  24464. 800a9d6: fa02 f303 lsl.w r3, r2, r3
  24465. 800a9da: 43db mvns r3, r3
  24466. 800a9dc: 69ba ldr r2, [r7, #24]
  24467. 800a9de: 4013 ands r3, r2
  24468. 800a9e0: 61bb str r3, [r7, #24]
  24469. temp |= ((GPIO_Init->Pull) << (position * 2U));
  24470. 800a9e2: 683b ldr r3, [r7, #0]
  24471. 800a9e4: 689a ldr r2, [r3, #8]
  24472. 800a9e6: 69fb ldr r3, [r7, #28]
  24473. 800a9e8: 005b lsls r3, r3, #1
  24474. 800a9ea: fa02 f303 lsl.w r3, r2, r3
  24475. 800a9ee: 69ba ldr r2, [r7, #24]
  24476. 800a9f0: 4313 orrs r3, r2
  24477. 800a9f2: 61bb str r3, [r7, #24]
  24478. GPIOx->PUPDR = temp;
  24479. 800a9f4: 687b ldr r3, [r7, #4]
  24480. 800a9f6: 69ba ldr r2, [r7, #24]
  24481. 800a9f8: 60da str r2, [r3, #12]
  24482. }
  24483. /* In case of Alternate function mode selection */
  24484. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  24485. 800a9fa: 683b ldr r3, [r7, #0]
  24486. 800a9fc: 685b ldr r3, [r3, #4]
  24487. 800a9fe: f003 0303 and.w r3, r3, #3
  24488. 800aa02: 2b02 cmp r3, #2
  24489. 800aa04: d123 bne.n 800aa4e <HAL_GPIO_Init+0x136>
  24490. /* Check the Alternate function parameters */
  24491. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  24492. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  24493. /* Configure Alternate function mapped with the current IO */
  24494. temp = GPIOx->AFR[position >> 3U];
  24495. 800aa06: 69fb ldr r3, [r7, #28]
  24496. 800aa08: 08da lsrs r2, r3, #3
  24497. 800aa0a: 687b ldr r3, [r7, #4]
  24498. 800aa0c: 3208 adds r2, #8
  24499. 800aa0e: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  24500. 800aa12: 61bb str r3, [r7, #24]
  24501. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  24502. 800aa14: 69fb ldr r3, [r7, #28]
  24503. 800aa16: f003 0307 and.w r3, r3, #7
  24504. 800aa1a: 009b lsls r3, r3, #2
  24505. 800aa1c: 220f movs r2, #15
  24506. 800aa1e: fa02 f303 lsl.w r3, r2, r3
  24507. 800aa22: 43db mvns r3, r3
  24508. 800aa24: 69ba ldr r2, [r7, #24]
  24509. 800aa26: 4013 ands r3, r2
  24510. 800aa28: 61bb str r3, [r7, #24]
  24511. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  24512. 800aa2a: 683b ldr r3, [r7, #0]
  24513. 800aa2c: 691a ldr r2, [r3, #16]
  24514. 800aa2e: 69fb ldr r3, [r7, #28]
  24515. 800aa30: f003 0307 and.w r3, r3, #7
  24516. 800aa34: 009b lsls r3, r3, #2
  24517. 800aa36: fa02 f303 lsl.w r3, r2, r3
  24518. 800aa3a: 69ba ldr r2, [r7, #24]
  24519. 800aa3c: 4313 orrs r3, r2
  24520. 800aa3e: 61bb str r3, [r7, #24]
  24521. GPIOx->AFR[position >> 3U] = temp;
  24522. 800aa40: 69fb ldr r3, [r7, #28]
  24523. 800aa42: 08da lsrs r2, r3, #3
  24524. 800aa44: 687b ldr r3, [r7, #4]
  24525. 800aa46: 3208 adds r2, #8
  24526. 800aa48: 69b9 ldr r1, [r7, #24]
  24527. 800aa4a: f843 1022 str.w r1, [r3, r2, lsl #2]
  24528. }
  24529. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  24530. temp = GPIOx->MODER;
  24531. 800aa4e: 687b ldr r3, [r7, #4]
  24532. 800aa50: 681b ldr r3, [r3, #0]
  24533. 800aa52: 61bb str r3, [r7, #24]
  24534. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  24535. 800aa54: 69fb ldr r3, [r7, #28]
  24536. 800aa56: 005b lsls r3, r3, #1
  24537. 800aa58: 2203 movs r2, #3
  24538. 800aa5a: fa02 f303 lsl.w r3, r2, r3
  24539. 800aa5e: 43db mvns r3, r3
  24540. 800aa60: 69ba ldr r2, [r7, #24]
  24541. 800aa62: 4013 ands r3, r2
  24542. 800aa64: 61bb str r3, [r7, #24]
  24543. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  24544. 800aa66: 683b ldr r3, [r7, #0]
  24545. 800aa68: 685b ldr r3, [r3, #4]
  24546. 800aa6a: f003 0203 and.w r2, r3, #3
  24547. 800aa6e: 69fb ldr r3, [r7, #28]
  24548. 800aa70: 005b lsls r3, r3, #1
  24549. 800aa72: fa02 f303 lsl.w r3, r2, r3
  24550. 800aa76: 69ba ldr r2, [r7, #24]
  24551. 800aa78: 4313 orrs r3, r2
  24552. 800aa7a: 61bb str r3, [r7, #24]
  24553. GPIOx->MODER = temp;
  24554. 800aa7c: 687b ldr r3, [r7, #4]
  24555. 800aa7e: 69ba ldr r2, [r7, #24]
  24556. 800aa80: 601a str r2, [r3, #0]
  24557. /*--------------------- EXTI Mode Configuration ------------------------*/
  24558. /* Configure the External Interrupt or event for the current IO */
  24559. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  24560. 800aa82: 683b ldr r3, [r7, #0]
  24561. 800aa84: 685b ldr r3, [r3, #4]
  24562. 800aa86: f403 3340 and.w r3, r3, #196608 @ 0x30000
  24563. 800aa8a: 2b00 cmp r3, #0
  24564. 800aa8c: f000 80e0 beq.w 800ac50 <HAL_GPIO_Init+0x338>
  24565. {
  24566. /* Enable SYSCFG Clock */
  24567. __HAL_RCC_SYSCFG_CLK_ENABLE();
  24568. 800aa90: 4b2f ldr r3, [pc, #188] @ (800ab50 <HAL_GPIO_Init+0x238>)
  24569. 800aa92: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  24570. 800aa96: 4a2e ldr r2, [pc, #184] @ (800ab50 <HAL_GPIO_Init+0x238>)
  24571. 800aa98: f043 0302 orr.w r3, r3, #2
  24572. 800aa9c: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  24573. 800aaa0: 4b2b ldr r3, [pc, #172] @ (800ab50 <HAL_GPIO_Init+0x238>)
  24574. 800aaa2: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  24575. 800aaa6: f003 0302 and.w r3, r3, #2
  24576. 800aaaa: 60fb str r3, [r7, #12]
  24577. 800aaac: 68fb ldr r3, [r7, #12]
  24578. temp = SYSCFG->EXTICR[position >> 2U];
  24579. 800aaae: 4a29 ldr r2, [pc, #164] @ (800ab54 <HAL_GPIO_Init+0x23c>)
  24580. 800aab0: 69fb ldr r3, [r7, #28]
  24581. 800aab2: 089b lsrs r3, r3, #2
  24582. 800aab4: 3302 adds r3, #2
  24583. 800aab6: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  24584. 800aaba: 61bb str r3, [r7, #24]
  24585. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  24586. 800aabc: 69fb ldr r3, [r7, #28]
  24587. 800aabe: f003 0303 and.w r3, r3, #3
  24588. 800aac2: 009b lsls r3, r3, #2
  24589. 800aac4: 220f movs r2, #15
  24590. 800aac6: fa02 f303 lsl.w r3, r2, r3
  24591. 800aaca: 43db mvns r3, r3
  24592. 800aacc: 69ba ldr r2, [r7, #24]
  24593. 800aace: 4013 ands r3, r2
  24594. 800aad0: 61bb str r3, [r7, #24]
  24595. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  24596. 800aad2: 687b ldr r3, [r7, #4]
  24597. 800aad4: 4a20 ldr r2, [pc, #128] @ (800ab58 <HAL_GPIO_Init+0x240>)
  24598. 800aad6: 4293 cmp r3, r2
  24599. 800aad8: d052 beq.n 800ab80 <HAL_GPIO_Init+0x268>
  24600. 800aada: 687b ldr r3, [r7, #4]
  24601. 800aadc: 4a1f ldr r2, [pc, #124] @ (800ab5c <HAL_GPIO_Init+0x244>)
  24602. 800aade: 4293 cmp r3, r2
  24603. 800aae0: d031 beq.n 800ab46 <HAL_GPIO_Init+0x22e>
  24604. 800aae2: 687b ldr r3, [r7, #4]
  24605. 800aae4: 4a1e ldr r2, [pc, #120] @ (800ab60 <HAL_GPIO_Init+0x248>)
  24606. 800aae6: 4293 cmp r3, r2
  24607. 800aae8: d02b beq.n 800ab42 <HAL_GPIO_Init+0x22a>
  24608. 800aaea: 687b ldr r3, [r7, #4]
  24609. 800aaec: 4a1d ldr r2, [pc, #116] @ (800ab64 <HAL_GPIO_Init+0x24c>)
  24610. 800aaee: 4293 cmp r3, r2
  24611. 800aaf0: d025 beq.n 800ab3e <HAL_GPIO_Init+0x226>
  24612. 800aaf2: 687b ldr r3, [r7, #4]
  24613. 800aaf4: 4a1c ldr r2, [pc, #112] @ (800ab68 <HAL_GPIO_Init+0x250>)
  24614. 800aaf6: 4293 cmp r3, r2
  24615. 800aaf8: d01f beq.n 800ab3a <HAL_GPIO_Init+0x222>
  24616. 800aafa: 687b ldr r3, [r7, #4]
  24617. 800aafc: 4a1b ldr r2, [pc, #108] @ (800ab6c <HAL_GPIO_Init+0x254>)
  24618. 800aafe: 4293 cmp r3, r2
  24619. 800ab00: d019 beq.n 800ab36 <HAL_GPIO_Init+0x21e>
  24620. 800ab02: 687b ldr r3, [r7, #4]
  24621. 800ab04: 4a1a ldr r2, [pc, #104] @ (800ab70 <HAL_GPIO_Init+0x258>)
  24622. 800ab06: 4293 cmp r3, r2
  24623. 800ab08: d013 beq.n 800ab32 <HAL_GPIO_Init+0x21a>
  24624. 800ab0a: 687b ldr r3, [r7, #4]
  24625. 800ab0c: 4a19 ldr r2, [pc, #100] @ (800ab74 <HAL_GPIO_Init+0x25c>)
  24626. 800ab0e: 4293 cmp r3, r2
  24627. 800ab10: d00d beq.n 800ab2e <HAL_GPIO_Init+0x216>
  24628. 800ab12: 687b ldr r3, [r7, #4]
  24629. 800ab14: 4a18 ldr r2, [pc, #96] @ (800ab78 <HAL_GPIO_Init+0x260>)
  24630. 800ab16: 4293 cmp r3, r2
  24631. 800ab18: d007 beq.n 800ab2a <HAL_GPIO_Init+0x212>
  24632. 800ab1a: 687b ldr r3, [r7, #4]
  24633. 800ab1c: 4a17 ldr r2, [pc, #92] @ (800ab7c <HAL_GPIO_Init+0x264>)
  24634. 800ab1e: 4293 cmp r3, r2
  24635. 800ab20: d101 bne.n 800ab26 <HAL_GPIO_Init+0x20e>
  24636. 800ab22: 2309 movs r3, #9
  24637. 800ab24: e02d b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24638. 800ab26: 230a movs r3, #10
  24639. 800ab28: e02b b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24640. 800ab2a: 2308 movs r3, #8
  24641. 800ab2c: e029 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24642. 800ab2e: 2307 movs r3, #7
  24643. 800ab30: e027 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24644. 800ab32: 2306 movs r3, #6
  24645. 800ab34: e025 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24646. 800ab36: 2305 movs r3, #5
  24647. 800ab38: e023 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24648. 800ab3a: 2304 movs r3, #4
  24649. 800ab3c: e021 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24650. 800ab3e: 2303 movs r3, #3
  24651. 800ab40: e01f b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24652. 800ab42: 2302 movs r3, #2
  24653. 800ab44: e01d b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24654. 800ab46: 2301 movs r3, #1
  24655. 800ab48: e01b b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24656. 800ab4a: bf00 nop
  24657. 800ab4c: 58000080 .word 0x58000080
  24658. 800ab50: 58024400 .word 0x58024400
  24659. 800ab54: 58000400 .word 0x58000400
  24660. 800ab58: 58020000 .word 0x58020000
  24661. 800ab5c: 58020400 .word 0x58020400
  24662. 800ab60: 58020800 .word 0x58020800
  24663. 800ab64: 58020c00 .word 0x58020c00
  24664. 800ab68: 58021000 .word 0x58021000
  24665. 800ab6c: 58021400 .word 0x58021400
  24666. 800ab70: 58021800 .word 0x58021800
  24667. 800ab74: 58021c00 .word 0x58021c00
  24668. 800ab78: 58022000 .word 0x58022000
  24669. 800ab7c: 58022400 .word 0x58022400
  24670. 800ab80: 2300 movs r3, #0
  24671. 800ab82: 69fa ldr r2, [r7, #28]
  24672. 800ab84: f002 0203 and.w r2, r2, #3
  24673. 800ab88: 0092 lsls r2, r2, #2
  24674. 800ab8a: 4093 lsls r3, r2
  24675. 800ab8c: 69ba ldr r2, [r7, #24]
  24676. 800ab8e: 4313 orrs r3, r2
  24677. 800ab90: 61bb str r3, [r7, #24]
  24678. SYSCFG->EXTICR[position >> 2U] = temp;
  24679. 800ab92: 4938 ldr r1, [pc, #224] @ (800ac74 <HAL_GPIO_Init+0x35c>)
  24680. 800ab94: 69fb ldr r3, [r7, #28]
  24681. 800ab96: 089b lsrs r3, r3, #2
  24682. 800ab98: 3302 adds r3, #2
  24683. 800ab9a: 69ba ldr r2, [r7, #24]
  24684. 800ab9c: f841 2023 str.w r2, [r1, r3, lsl #2]
  24685. /* Clear Rising Falling edge configuration */
  24686. temp = EXTI->RTSR1;
  24687. 800aba0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24688. 800aba4: 681b ldr r3, [r3, #0]
  24689. 800aba6: 61bb str r3, [r7, #24]
  24690. temp &= ~(iocurrent);
  24691. 800aba8: 693b ldr r3, [r7, #16]
  24692. 800abaa: 43db mvns r3, r3
  24693. 800abac: 69ba ldr r2, [r7, #24]
  24694. 800abae: 4013 ands r3, r2
  24695. 800abb0: 61bb str r3, [r7, #24]
  24696. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  24697. 800abb2: 683b ldr r3, [r7, #0]
  24698. 800abb4: 685b ldr r3, [r3, #4]
  24699. 800abb6: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  24700. 800abba: 2b00 cmp r3, #0
  24701. 800abbc: d003 beq.n 800abc6 <HAL_GPIO_Init+0x2ae>
  24702. {
  24703. temp |= iocurrent;
  24704. 800abbe: 69ba ldr r2, [r7, #24]
  24705. 800abc0: 693b ldr r3, [r7, #16]
  24706. 800abc2: 4313 orrs r3, r2
  24707. 800abc4: 61bb str r3, [r7, #24]
  24708. }
  24709. EXTI->RTSR1 = temp;
  24710. 800abc6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24711. 800abca: 69bb ldr r3, [r7, #24]
  24712. 800abcc: 6013 str r3, [r2, #0]
  24713. temp = EXTI->FTSR1;
  24714. 800abce: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24715. 800abd2: 685b ldr r3, [r3, #4]
  24716. 800abd4: 61bb str r3, [r7, #24]
  24717. temp &= ~(iocurrent);
  24718. 800abd6: 693b ldr r3, [r7, #16]
  24719. 800abd8: 43db mvns r3, r3
  24720. 800abda: 69ba ldr r2, [r7, #24]
  24721. 800abdc: 4013 ands r3, r2
  24722. 800abde: 61bb str r3, [r7, #24]
  24723. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  24724. 800abe0: 683b ldr r3, [r7, #0]
  24725. 800abe2: 685b ldr r3, [r3, #4]
  24726. 800abe4: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  24727. 800abe8: 2b00 cmp r3, #0
  24728. 800abea: d003 beq.n 800abf4 <HAL_GPIO_Init+0x2dc>
  24729. {
  24730. temp |= iocurrent;
  24731. 800abec: 69ba ldr r2, [r7, #24]
  24732. 800abee: 693b ldr r3, [r7, #16]
  24733. 800abf0: 4313 orrs r3, r2
  24734. 800abf2: 61bb str r3, [r7, #24]
  24735. }
  24736. EXTI->FTSR1 = temp;
  24737. 800abf4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24738. 800abf8: 69bb ldr r3, [r7, #24]
  24739. 800abfa: 6053 str r3, [r2, #4]
  24740. temp = EXTI_CurrentCPU->EMR1;
  24741. 800abfc: 697b ldr r3, [r7, #20]
  24742. 800abfe: 685b ldr r3, [r3, #4]
  24743. 800ac00: 61bb str r3, [r7, #24]
  24744. temp &= ~(iocurrent);
  24745. 800ac02: 693b ldr r3, [r7, #16]
  24746. 800ac04: 43db mvns r3, r3
  24747. 800ac06: 69ba ldr r2, [r7, #24]
  24748. 800ac08: 4013 ands r3, r2
  24749. 800ac0a: 61bb str r3, [r7, #24]
  24750. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  24751. 800ac0c: 683b ldr r3, [r7, #0]
  24752. 800ac0e: 685b ldr r3, [r3, #4]
  24753. 800ac10: f403 3300 and.w r3, r3, #131072 @ 0x20000
  24754. 800ac14: 2b00 cmp r3, #0
  24755. 800ac16: d003 beq.n 800ac20 <HAL_GPIO_Init+0x308>
  24756. {
  24757. temp |= iocurrent;
  24758. 800ac18: 69ba ldr r2, [r7, #24]
  24759. 800ac1a: 693b ldr r3, [r7, #16]
  24760. 800ac1c: 4313 orrs r3, r2
  24761. 800ac1e: 61bb str r3, [r7, #24]
  24762. }
  24763. EXTI_CurrentCPU->EMR1 = temp;
  24764. 800ac20: 697b ldr r3, [r7, #20]
  24765. 800ac22: 69ba ldr r2, [r7, #24]
  24766. 800ac24: 605a str r2, [r3, #4]
  24767. /* Clear EXTI line configuration */
  24768. temp = EXTI_CurrentCPU->IMR1;
  24769. 800ac26: 697b ldr r3, [r7, #20]
  24770. 800ac28: 681b ldr r3, [r3, #0]
  24771. 800ac2a: 61bb str r3, [r7, #24]
  24772. temp &= ~(iocurrent);
  24773. 800ac2c: 693b ldr r3, [r7, #16]
  24774. 800ac2e: 43db mvns r3, r3
  24775. 800ac30: 69ba ldr r2, [r7, #24]
  24776. 800ac32: 4013 ands r3, r2
  24777. 800ac34: 61bb str r3, [r7, #24]
  24778. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  24779. 800ac36: 683b ldr r3, [r7, #0]
  24780. 800ac38: 685b ldr r3, [r3, #4]
  24781. 800ac3a: f403 3380 and.w r3, r3, #65536 @ 0x10000
  24782. 800ac3e: 2b00 cmp r3, #0
  24783. 800ac40: d003 beq.n 800ac4a <HAL_GPIO_Init+0x332>
  24784. {
  24785. temp |= iocurrent;
  24786. 800ac42: 69ba ldr r2, [r7, #24]
  24787. 800ac44: 693b ldr r3, [r7, #16]
  24788. 800ac46: 4313 orrs r3, r2
  24789. 800ac48: 61bb str r3, [r7, #24]
  24790. }
  24791. EXTI_CurrentCPU->IMR1 = temp;
  24792. 800ac4a: 697b ldr r3, [r7, #20]
  24793. 800ac4c: 69ba ldr r2, [r7, #24]
  24794. 800ac4e: 601a str r2, [r3, #0]
  24795. }
  24796. }
  24797. position++;
  24798. 800ac50: 69fb ldr r3, [r7, #28]
  24799. 800ac52: 3301 adds r3, #1
  24800. 800ac54: 61fb str r3, [r7, #28]
  24801. while (((GPIO_Init->Pin) >> position) != 0x00U)
  24802. 800ac56: 683b ldr r3, [r7, #0]
  24803. 800ac58: 681a ldr r2, [r3, #0]
  24804. 800ac5a: 69fb ldr r3, [r7, #28]
  24805. 800ac5c: fa22 f303 lsr.w r3, r2, r3
  24806. 800ac60: 2b00 cmp r3, #0
  24807. 800ac62: f47f ae63 bne.w 800a92c <HAL_GPIO_Init+0x14>
  24808. }
  24809. }
  24810. 800ac66: bf00 nop
  24811. 800ac68: bf00 nop
  24812. 800ac6a: 3724 adds r7, #36 @ 0x24
  24813. 800ac6c: 46bd mov sp, r7
  24814. 800ac6e: f85d 7b04 ldr.w r7, [sp], #4
  24815. 800ac72: 4770 bx lr
  24816. 800ac74: 58000400 .word 0x58000400
  24817. 0800ac78 <HAL_GPIO_ReadPin>:
  24818. * @param GPIO_Pin: specifies the port bit to read.
  24819. * This parameter can be GPIO_PIN_x where x can be (0..15).
  24820. * @retval The input port pin value.
  24821. */
  24822. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  24823. {
  24824. 800ac78: b480 push {r7}
  24825. 800ac7a: b085 sub sp, #20
  24826. 800ac7c: af00 add r7, sp, #0
  24827. 800ac7e: 6078 str r0, [r7, #4]
  24828. 800ac80: 460b mov r3, r1
  24829. 800ac82: 807b strh r3, [r7, #2]
  24830. GPIO_PinState bitstatus;
  24831. /* Check the parameters */
  24832. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24833. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  24834. 800ac84: 687b ldr r3, [r7, #4]
  24835. 800ac86: 691a ldr r2, [r3, #16]
  24836. 800ac88: 887b ldrh r3, [r7, #2]
  24837. 800ac8a: 4013 ands r3, r2
  24838. 800ac8c: 2b00 cmp r3, #0
  24839. 800ac8e: d002 beq.n 800ac96 <HAL_GPIO_ReadPin+0x1e>
  24840. {
  24841. bitstatus = GPIO_PIN_SET;
  24842. 800ac90: 2301 movs r3, #1
  24843. 800ac92: 73fb strb r3, [r7, #15]
  24844. 800ac94: e001 b.n 800ac9a <HAL_GPIO_ReadPin+0x22>
  24845. }
  24846. else
  24847. {
  24848. bitstatus = GPIO_PIN_RESET;
  24849. 800ac96: 2300 movs r3, #0
  24850. 800ac98: 73fb strb r3, [r7, #15]
  24851. }
  24852. return bitstatus;
  24853. 800ac9a: 7bfb ldrb r3, [r7, #15]
  24854. }
  24855. 800ac9c: 4618 mov r0, r3
  24856. 800ac9e: 3714 adds r7, #20
  24857. 800aca0: 46bd mov sp, r7
  24858. 800aca2: f85d 7b04 ldr.w r7, [sp], #4
  24859. 800aca6: 4770 bx lr
  24860. 0800aca8 <HAL_GPIO_WritePin>:
  24861. * @arg GPIO_PIN_RESET: to clear the port pin
  24862. * @arg GPIO_PIN_SET: to set the port pin
  24863. * @retval None
  24864. */
  24865. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  24866. {
  24867. 800aca8: b480 push {r7}
  24868. 800acaa: b083 sub sp, #12
  24869. 800acac: af00 add r7, sp, #0
  24870. 800acae: 6078 str r0, [r7, #4]
  24871. 800acb0: 460b mov r3, r1
  24872. 800acb2: 807b strh r3, [r7, #2]
  24873. 800acb4: 4613 mov r3, r2
  24874. 800acb6: 707b strb r3, [r7, #1]
  24875. /* Check the parameters */
  24876. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24877. assert_param(IS_GPIO_PIN_ACTION(PinState));
  24878. if (PinState != GPIO_PIN_RESET)
  24879. 800acb8: 787b ldrb r3, [r7, #1]
  24880. 800acba: 2b00 cmp r3, #0
  24881. 800acbc: d003 beq.n 800acc6 <HAL_GPIO_WritePin+0x1e>
  24882. {
  24883. GPIOx->BSRR = GPIO_Pin;
  24884. 800acbe: 887a ldrh r2, [r7, #2]
  24885. 800acc0: 687b ldr r3, [r7, #4]
  24886. 800acc2: 619a str r2, [r3, #24]
  24887. }
  24888. else
  24889. {
  24890. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  24891. }
  24892. }
  24893. 800acc4: e003 b.n 800acce <HAL_GPIO_WritePin+0x26>
  24894. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  24895. 800acc6: 887b ldrh r3, [r7, #2]
  24896. 800acc8: 041a lsls r2, r3, #16
  24897. 800acca: 687b ldr r3, [r7, #4]
  24898. 800accc: 619a str r2, [r3, #24]
  24899. }
  24900. 800acce: bf00 nop
  24901. 800acd0: 370c adds r7, #12
  24902. 800acd2: 46bd mov sp, r7
  24903. 800acd4: f85d 7b04 ldr.w r7, [sp], #4
  24904. 800acd8: 4770 bx lr
  24905. 0800acda <HAL_GPIO_TogglePin>:
  24906. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  24907. * @param GPIO_Pin: Specifies the pins to be toggled.
  24908. * @retval None
  24909. */
  24910. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  24911. {
  24912. 800acda: b480 push {r7}
  24913. 800acdc: b085 sub sp, #20
  24914. 800acde: af00 add r7, sp, #0
  24915. 800ace0: 6078 str r0, [r7, #4]
  24916. 800ace2: 460b mov r3, r1
  24917. 800ace4: 807b strh r3, [r7, #2]
  24918. /* Check the parameters */
  24919. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24920. /* get current Output Data Register value */
  24921. odr = GPIOx->ODR;
  24922. 800ace6: 687b ldr r3, [r7, #4]
  24923. 800ace8: 695b ldr r3, [r3, #20]
  24924. 800acea: 60fb str r3, [r7, #12]
  24925. /* Set selected pins that were at low level, and reset ones that were high */
  24926. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  24927. 800acec: 887a ldrh r2, [r7, #2]
  24928. 800acee: 68fb ldr r3, [r7, #12]
  24929. 800acf0: 4013 ands r3, r2
  24930. 800acf2: 041a lsls r2, r3, #16
  24931. 800acf4: 68fb ldr r3, [r7, #12]
  24932. 800acf6: 43d9 mvns r1, r3
  24933. 800acf8: 887b ldrh r3, [r7, #2]
  24934. 800acfa: 400b ands r3, r1
  24935. 800acfc: 431a orrs r2, r3
  24936. 800acfe: 687b ldr r3, [r7, #4]
  24937. 800ad00: 619a str r2, [r3, #24]
  24938. }
  24939. 800ad02: bf00 nop
  24940. 800ad04: 3714 adds r7, #20
  24941. 800ad06: 46bd mov sp, r7
  24942. 800ad08: f85d 7b04 ldr.w r7, [sp], #4
  24943. 800ad0c: 4770 bx lr
  24944. 0800ad0e <HAL_GPIO_EXTI_IRQHandler>:
  24945. * @brief Handle EXTI interrupt request.
  24946. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  24947. * @retval None
  24948. */
  24949. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  24950. {
  24951. 800ad0e: b580 push {r7, lr}
  24952. 800ad10: b082 sub sp, #8
  24953. 800ad12: af00 add r7, sp, #0
  24954. 800ad14: 4603 mov r3, r0
  24955. 800ad16: 80fb strh r3, [r7, #6]
  24956. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  24957. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  24958. }
  24959. #else
  24960. /* EXTI line interrupt detected */
  24961. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  24962. 800ad18: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24963. 800ad1c: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  24964. 800ad20: 88fb ldrh r3, [r7, #6]
  24965. 800ad22: 4013 ands r3, r2
  24966. 800ad24: 2b00 cmp r3, #0
  24967. 800ad26: d008 beq.n 800ad3a <HAL_GPIO_EXTI_IRQHandler+0x2c>
  24968. {
  24969. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  24970. 800ad28: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24971. 800ad2c: 88fb ldrh r3, [r7, #6]
  24972. 800ad2e: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  24973. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  24974. 800ad32: 88fb ldrh r3, [r7, #6]
  24975. 800ad34: 4618 mov r0, r3
  24976. 800ad36: f7f5 fccf bl 80006d8 <HAL_GPIO_EXTI_Callback>
  24977. }
  24978. #endif
  24979. }
  24980. 800ad3a: bf00 nop
  24981. 800ad3c: 3708 adds r7, #8
  24982. 800ad3e: 46bd mov sp, r7
  24983. 800ad40: bd80 pop {r7, pc}
  24984. 0800ad42 <HAL_IWDG_Init>:
  24985. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  24986. * the configuration information for the specified IWDG module.
  24987. * @retval HAL status
  24988. */
  24989. HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
  24990. {
  24991. 800ad42: b580 push {r7, lr}
  24992. 800ad44: b084 sub sp, #16
  24993. 800ad46: af00 add r7, sp, #0
  24994. 800ad48: 6078 str r0, [r7, #4]
  24995. uint32_t tickstart;
  24996. /* Check the IWDG handle allocation */
  24997. if (hiwdg == NULL)
  24998. 800ad4a: 687b ldr r3, [r7, #4]
  24999. 800ad4c: 2b00 cmp r3, #0
  25000. 800ad4e: d101 bne.n 800ad54 <HAL_IWDG_Init+0x12>
  25001. {
  25002. return HAL_ERROR;
  25003. 800ad50: 2301 movs r3, #1
  25004. 800ad52: e041 b.n 800add8 <HAL_IWDG_Init+0x96>
  25005. assert_param(IS_IWDG_PRESCALER(hiwdg->Init.Prescaler));
  25006. assert_param(IS_IWDG_RELOAD(hiwdg->Init.Reload));
  25007. assert_param(IS_IWDG_WINDOW(hiwdg->Init.Window));
  25008. /* Enable IWDG. LSI is turned on automatically */
  25009. __HAL_IWDG_START(hiwdg);
  25010. 800ad54: 687b ldr r3, [r7, #4]
  25011. 800ad56: 681b ldr r3, [r3, #0]
  25012. 800ad58: f64c 42cc movw r2, #52428 @ 0xcccc
  25013. 800ad5c: 601a str r2, [r3, #0]
  25014. /* Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers by writing
  25015. 0x5555 in KR */
  25016. IWDG_ENABLE_WRITE_ACCESS(hiwdg);
  25017. 800ad5e: 687b ldr r3, [r7, #4]
  25018. 800ad60: 681b ldr r3, [r3, #0]
  25019. 800ad62: f245 5255 movw r2, #21845 @ 0x5555
  25020. 800ad66: 601a str r2, [r3, #0]
  25021. /* Write to IWDG registers the Prescaler & Reload values to work with */
  25022. hiwdg->Instance->PR = hiwdg->Init.Prescaler;
  25023. 800ad68: 687b ldr r3, [r7, #4]
  25024. 800ad6a: 681b ldr r3, [r3, #0]
  25025. 800ad6c: 687a ldr r2, [r7, #4]
  25026. 800ad6e: 6852 ldr r2, [r2, #4]
  25027. 800ad70: 605a str r2, [r3, #4]
  25028. hiwdg->Instance->RLR = hiwdg->Init.Reload;
  25029. 800ad72: 687b ldr r3, [r7, #4]
  25030. 800ad74: 681b ldr r3, [r3, #0]
  25031. 800ad76: 687a ldr r2, [r7, #4]
  25032. 800ad78: 6892 ldr r2, [r2, #8]
  25033. 800ad7a: 609a str r2, [r3, #8]
  25034. /* Check pending flag, if previous update not done, return timeout */
  25035. tickstart = HAL_GetTick();
  25036. 800ad7c: f7fa fbf4 bl 8005568 <HAL_GetTick>
  25037. 800ad80: 60f8 str r0, [r7, #12]
  25038. /* Wait for register to be updated */
  25039. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25040. 800ad82: e00f b.n 800ada4 <HAL_IWDG_Init+0x62>
  25041. {
  25042. if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT)
  25043. 800ad84: f7fa fbf0 bl 8005568 <HAL_GetTick>
  25044. 800ad88: 4602 mov r2, r0
  25045. 800ad8a: 68fb ldr r3, [r7, #12]
  25046. 800ad8c: 1ad3 subs r3, r2, r3
  25047. 800ad8e: 2b31 cmp r3, #49 @ 0x31
  25048. 800ad90: d908 bls.n 800ada4 <HAL_IWDG_Init+0x62>
  25049. {
  25050. if ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25051. 800ad92: 687b ldr r3, [r7, #4]
  25052. 800ad94: 681b ldr r3, [r3, #0]
  25053. 800ad96: 68db ldr r3, [r3, #12]
  25054. 800ad98: f003 0307 and.w r3, r3, #7
  25055. 800ad9c: 2b00 cmp r3, #0
  25056. 800ad9e: d001 beq.n 800ada4 <HAL_IWDG_Init+0x62>
  25057. {
  25058. return HAL_TIMEOUT;
  25059. 800ada0: 2303 movs r3, #3
  25060. 800ada2: e019 b.n 800add8 <HAL_IWDG_Init+0x96>
  25061. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25062. 800ada4: 687b ldr r3, [r7, #4]
  25063. 800ada6: 681b ldr r3, [r3, #0]
  25064. 800ada8: 68db ldr r3, [r3, #12]
  25065. 800adaa: f003 0307 and.w r3, r3, #7
  25066. 800adae: 2b00 cmp r3, #0
  25067. 800adb0: d1e8 bne.n 800ad84 <HAL_IWDG_Init+0x42>
  25068. }
  25069. }
  25070. /* If window parameter is different than current value, modify window
  25071. register */
  25072. if (hiwdg->Instance->WINR != hiwdg->Init.Window)
  25073. 800adb2: 687b ldr r3, [r7, #4]
  25074. 800adb4: 681b ldr r3, [r3, #0]
  25075. 800adb6: 691a ldr r2, [r3, #16]
  25076. 800adb8: 687b ldr r3, [r7, #4]
  25077. 800adba: 68db ldr r3, [r3, #12]
  25078. 800adbc: 429a cmp r2, r3
  25079. 800adbe: d005 beq.n 800adcc <HAL_IWDG_Init+0x8a>
  25080. {
  25081. /* Write to IWDG WINR the IWDG_Window value to compare with. In any case,
  25082. even if window feature is disabled, Watchdog will be reloaded by writing
  25083. windows register */
  25084. hiwdg->Instance->WINR = hiwdg->Init.Window;
  25085. 800adc0: 687b ldr r3, [r7, #4]
  25086. 800adc2: 681b ldr r3, [r3, #0]
  25087. 800adc4: 687a ldr r2, [r7, #4]
  25088. 800adc6: 68d2 ldr r2, [r2, #12]
  25089. 800adc8: 611a str r2, [r3, #16]
  25090. 800adca: e004 b.n 800add6 <HAL_IWDG_Init+0x94>
  25091. }
  25092. else
  25093. {
  25094. /* Reload IWDG counter with value defined in the reload register */
  25095. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  25096. 800adcc: 687b ldr r3, [r7, #4]
  25097. 800adce: 681b ldr r3, [r3, #0]
  25098. 800add0: f64a 22aa movw r2, #43690 @ 0xaaaa
  25099. 800add4: 601a str r2, [r3, #0]
  25100. }
  25101. /* Return function status */
  25102. return HAL_OK;
  25103. 800add6: 2300 movs r3, #0
  25104. }
  25105. 800add8: 4618 mov r0, r3
  25106. 800adda: 3710 adds r7, #16
  25107. 800addc: 46bd mov sp, r7
  25108. 800adde: bd80 pop {r7, pc}
  25109. 0800ade0 <HAL_IWDG_Refresh>:
  25110. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  25111. * the configuration information for the specified IWDG module.
  25112. * @retval HAL status
  25113. */
  25114. HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
  25115. {
  25116. 800ade0: b480 push {r7}
  25117. 800ade2: b083 sub sp, #12
  25118. 800ade4: af00 add r7, sp, #0
  25119. 800ade6: 6078 str r0, [r7, #4]
  25120. /* Reload IWDG counter with value defined in the reload register */
  25121. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  25122. 800ade8: 687b ldr r3, [r7, #4]
  25123. 800adea: 681b ldr r3, [r3, #0]
  25124. 800adec: f64a 22aa movw r2, #43690 @ 0xaaaa
  25125. 800adf0: 601a str r2, [r3, #0]
  25126. /* Return function status */
  25127. return HAL_OK;
  25128. 800adf2: 2300 movs r3, #0
  25129. }
  25130. 800adf4: 4618 mov r0, r3
  25131. 800adf6: 370c adds r7, #12
  25132. 800adf8: 46bd mov sp, r7
  25133. 800adfa: f85d 7b04 ldr.w r7, [sp], #4
  25134. 800adfe: 4770 bx lr
  25135. 0800ae00 <HAL_PWR_ConfigPVD>:
  25136. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  25137. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  25138. * @retval None.
  25139. */
  25140. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  25141. {
  25142. 800ae00: b480 push {r7}
  25143. 800ae02: b083 sub sp, #12
  25144. 800ae04: af00 add r7, sp, #0
  25145. 800ae06: 6078 str r0, [r7, #4]
  25146. /* Check the PVD configuration parameter */
  25147. if (sConfigPVD == NULL)
  25148. 800ae08: 687b ldr r3, [r7, #4]
  25149. 800ae0a: 2b00 cmp r3, #0
  25150. 800ae0c: d069 beq.n 800aee2 <HAL_PWR_ConfigPVD+0xe2>
  25151. /* Check the parameters */
  25152. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  25153. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  25154. /* Set PLS[7:5] bits according to PVDLevel value */
  25155. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  25156. 800ae0e: 4b38 ldr r3, [pc, #224] @ (800aef0 <HAL_PWR_ConfigPVD+0xf0>)
  25157. 800ae10: 681b ldr r3, [r3, #0]
  25158. 800ae12: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  25159. 800ae16: 687b ldr r3, [r7, #4]
  25160. 800ae18: 681b ldr r3, [r3, #0]
  25161. 800ae1a: 4935 ldr r1, [pc, #212] @ (800aef0 <HAL_PWR_ConfigPVD+0xf0>)
  25162. 800ae1c: 4313 orrs r3, r2
  25163. 800ae1e: 600b str r3, [r1, #0]
  25164. /* Clear previous config */
  25165. #if !defined (DUAL_CORE)
  25166. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  25167. 800ae20: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25168. 800ae24: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25169. 800ae28: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25170. 800ae2c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25171. 800ae30: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25172. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  25173. 800ae34: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25174. 800ae38: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25175. 800ae3c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25176. 800ae40: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25177. 800ae44: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25178. #endif /* !defined (DUAL_CORE) */
  25179. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  25180. 800ae48: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25181. 800ae4c: 681b ldr r3, [r3, #0]
  25182. 800ae4e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25183. 800ae52: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25184. 800ae56: 6013 str r3, [r2, #0]
  25185. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  25186. 800ae58: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25187. 800ae5c: 685b ldr r3, [r3, #4]
  25188. 800ae5e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25189. 800ae62: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25190. 800ae66: 6053 str r3, [r2, #4]
  25191. #if !defined (DUAL_CORE)
  25192. /* Interrupt mode configuration */
  25193. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  25194. 800ae68: 687b ldr r3, [r7, #4]
  25195. 800ae6a: 685b ldr r3, [r3, #4]
  25196. 800ae6c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25197. 800ae70: 2b00 cmp r3, #0
  25198. 800ae72: d009 beq.n 800ae88 <HAL_PWR_ConfigPVD+0x88>
  25199. {
  25200. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  25201. 800ae74: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25202. 800ae78: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25203. 800ae7c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25204. 800ae80: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25205. 800ae84: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25206. }
  25207. /* Event mode configuration */
  25208. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  25209. 800ae88: 687b ldr r3, [r7, #4]
  25210. 800ae8a: 685b ldr r3, [r3, #4]
  25211. 800ae8c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25212. 800ae90: 2b00 cmp r3, #0
  25213. 800ae92: d009 beq.n 800aea8 <HAL_PWR_ConfigPVD+0xa8>
  25214. {
  25215. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  25216. 800ae94: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25217. 800ae98: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25218. 800ae9c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25219. 800aea0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25220. 800aea4: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25221. }
  25222. #endif /* !defined (DUAL_CORE) */
  25223. /* Rising edge configuration */
  25224. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  25225. 800aea8: 687b ldr r3, [r7, #4]
  25226. 800aeaa: 685b ldr r3, [r3, #4]
  25227. 800aeac: f003 0301 and.w r3, r3, #1
  25228. 800aeb0: 2b00 cmp r3, #0
  25229. 800aeb2: d007 beq.n 800aec4 <HAL_PWR_ConfigPVD+0xc4>
  25230. {
  25231. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  25232. 800aeb4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25233. 800aeb8: 681b ldr r3, [r3, #0]
  25234. 800aeba: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25235. 800aebe: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25236. 800aec2: 6013 str r3, [r2, #0]
  25237. }
  25238. /* Falling edge configuration */
  25239. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  25240. 800aec4: 687b ldr r3, [r7, #4]
  25241. 800aec6: 685b ldr r3, [r3, #4]
  25242. 800aec8: f003 0302 and.w r3, r3, #2
  25243. 800aecc: 2b00 cmp r3, #0
  25244. 800aece: d009 beq.n 800aee4 <HAL_PWR_ConfigPVD+0xe4>
  25245. {
  25246. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  25247. 800aed0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25248. 800aed4: 685b ldr r3, [r3, #4]
  25249. 800aed6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25250. 800aeda: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25251. 800aede: 6053 str r3, [r2, #4]
  25252. 800aee0: e000 b.n 800aee4 <HAL_PWR_ConfigPVD+0xe4>
  25253. return;
  25254. 800aee2: bf00 nop
  25255. }
  25256. }
  25257. 800aee4: 370c adds r7, #12
  25258. 800aee6: 46bd mov sp, r7
  25259. 800aee8: f85d 7b04 ldr.w r7, [sp], #4
  25260. 800aeec: 4770 bx lr
  25261. 800aeee: bf00 nop
  25262. 800aef0: 58024800 .word 0x58024800
  25263. 0800aef4 <HAL_PWR_EnablePVD>:
  25264. /**
  25265. * @brief Enable the Programmable Voltage Detector (PVD).
  25266. * @retval None.
  25267. */
  25268. void HAL_PWR_EnablePVD (void)
  25269. {
  25270. 800aef4: b480 push {r7}
  25271. 800aef6: af00 add r7, sp, #0
  25272. /* Enable the power voltage detector */
  25273. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  25274. 800aef8: 4b05 ldr r3, [pc, #20] @ (800af10 <HAL_PWR_EnablePVD+0x1c>)
  25275. 800aefa: 681b ldr r3, [r3, #0]
  25276. 800aefc: 4a04 ldr r2, [pc, #16] @ (800af10 <HAL_PWR_EnablePVD+0x1c>)
  25277. 800aefe: f043 0310 orr.w r3, r3, #16
  25278. 800af02: 6013 str r3, [r2, #0]
  25279. }
  25280. 800af04: bf00 nop
  25281. 800af06: 46bd mov sp, r7
  25282. 800af08: f85d 7b04 ldr.w r7, [sp], #4
  25283. 800af0c: 4770 bx lr
  25284. 800af0e: bf00 nop
  25285. 800af10: 58024800 .word 0x58024800
  25286. 0800af14 <HAL_PWREx_ConfigSupply>:
  25287. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  25288. * regulator.
  25289. * @retval HAL status.
  25290. */
  25291. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  25292. {
  25293. 800af14: b580 push {r7, lr}
  25294. 800af16: b084 sub sp, #16
  25295. 800af18: af00 add r7, sp, #0
  25296. 800af1a: 6078 str r0, [r7, #4]
  25297. /* Check the parameters */
  25298. assert_param (IS_PWR_SUPPLY (SupplySource));
  25299. /* Check if supply source was configured */
  25300. #if defined (PWR_FLAG_SCUEN)
  25301. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  25302. 800af1c: 4b19 ldr r3, [pc, #100] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25303. 800af1e: 68db ldr r3, [r3, #12]
  25304. 800af20: f003 0304 and.w r3, r3, #4
  25305. 800af24: 2b04 cmp r3, #4
  25306. 800af26: d00a beq.n 800af3e <HAL_PWREx_ConfigSupply+0x2a>
  25307. #else
  25308. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  25309. #endif /* defined (PWR_FLAG_SCUEN) */
  25310. {
  25311. /* Check supply configuration */
  25312. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  25313. 800af28: 4b16 ldr r3, [pc, #88] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25314. 800af2a: 68db ldr r3, [r3, #12]
  25315. 800af2c: f003 0307 and.w r3, r3, #7
  25316. 800af30: 687a ldr r2, [r7, #4]
  25317. 800af32: 429a cmp r2, r3
  25318. 800af34: d001 beq.n 800af3a <HAL_PWREx_ConfigSupply+0x26>
  25319. {
  25320. /* Supply configuration update locked, can't apply a new supply config */
  25321. return HAL_ERROR;
  25322. 800af36: 2301 movs r3, #1
  25323. 800af38: e01f b.n 800af7a <HAL_PWREx_ConfigSupply+0x66>
  25324. else
  25325. {
  25326. /* Supply configuration update locked, but new supply configuration
  25327. matches with old supply configuration : nothing to do
  25328. */
  25329. return HAL_OK;
  25330. 800af3a: 2300 movs r3, #0
  25331. 800af3c: e01d b.n 800af7a <HAL_PWREx_ConfigSupply+0x66>
  25332. }
  25333. }
  25334. /* Set the power supply configuration */
  25335. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  25336. 800af3e: 4b11 ldr r3, [pc, #68] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25337. 800af40: 68db ldr r3, [r3, #12]
  25338. 800af42: f023 0207 bic.w r2, r3, #7
  25339. 800af46: 490f ldr r1, [pc, #60] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25340. 800af48: 687b ldr r3, [r7, #4]
  25341. 800af4a: 4313 orrs r3, r2
  25342. 800af4c: 60cb str r3, [r1, #12]
  25343. /* Get tick */
  25344. tickstart = HAL_GetTick ();
  25345. 800af4e: f7fa fb0b bl 8005568 <HAL_GetTick>
  25346. 800af52: 60f8 str r0, [r7, #12]
  25347. /* Wait till voltage level flag is set */
  25348. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  25349. 800af54: e009 b.n 800af6a <HAL_PWREx_ConfigSupply+0x56>
  25350. {
  25351. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  25352. 800af56: f7fa fb07 bl 8005568 <HAL_GetTick>
  25353. 800af5a: 4602 mov r2, r0
  25354. 800af5c: 68fb ldr r3, [r7, #12]
  25355. 800af5e: 1ad3 subs r3, r2, r3
  25356. 800af60: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  25357. 800af64: d901 bls.n 800af6a <HAL_PWREx_ConfigSupply+0x56>
  25358. {
  25359. return HAL_ERROR;
  25360. 800af66: 2301 movs r3, #1
  25361. 800af68: e007 b.n 800af7a <HAL_PWREx_ConfigSupply+0x66>
  25362. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  25363. 800af6a: 4b06 ldr r3, [pc, #24] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25364. 800af6c: 685b ldr r3, [r3, #4]
  25365. 800af6e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  25366. 800af72: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25367. 800af76: d1ee bne.n 800af56 <HAL_PWREx_ConfigSupply+0x42>
  25368. }
  25369. }
  25370. }
  25371. #endif /* defined (SMPS) */
  25372. return HAL_OK;
  25373. 800af78: 2300 movs r3, #0
  25374. }
  25375. 800af7a: 4618 mov r0, r3
  25376. 800af7c: 3710 adds r7, #16
  25377. 800af7e: 46bd mov sp, r7
  25378. 800af80: bd80 pop {r7, pc}
  25379. 800af82: bf00 nop
  25380. 800af84: 58024800 .word 0x58024800
  25381. 0800af88 <HAL_PWREx_ConfigAVD>:
  25382. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  25383. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  25384. * @retval None.
  25385. */
  25386. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  25387. {
  25388. 800af88: b480 push {r7}
  25389. 800af8a: b083 sub sp, #12
  25390. 800af8c: af00 add r7, sp, #0
  25391. 800af8e: 6078 str r0, [r7, #4]
  25392. /* Check the parameters */
  25393. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  25394. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  25395. /* Set the ALS[18:17] bits according to AVDLevel value */
  25396. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  25397. 800af90: 4b37 ldr r3, [pc, #220] @ (800b070 <HAL_PWREx_ConfigAVD+0xe8>)
  25398. 800af92: 681b ldr r3, [r3, #0]
  25399. 800af94: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  25400. 800af98: 687b ldr r3, [r7, #4]
  25401. 800af9a: 681b ldr r3, [r3, #0]
  25402. 800af9c: 4934 ldr r1, [pc, #208] @ (800b070 <HAL_PWREx_ConfigAVD+0xe8>)
  25403. 800af9e: 4313 orrs r3, r2
  25404. 800afa0: 600b str r3, [r1, #0]
  25405. /* Clear any previous config */
  25406. #if !defined (DUAL_CORE)
  25407. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  25408. 800afa2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25409. 800afa6: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25410. 800afaa: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25411. 800afae: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25412. 800afb2: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25413. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  25414. 800afb6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25415. 800afba: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25416. 800afbe: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25417. 800afc2: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25418. 800afc6: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25419. #endif /* !defined (DUAL_CORE) */
  25420. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  25421. 800afca: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25422. 800afce: 681b ldr r3, [r3, #0]
  25423. 800afd0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25424. 800afd4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25425. 800afd8: 6013 str r3, [r2, #0]
  25426. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  25427. 800afda: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25428. 800afde: 685b ldr r3, [r3, #4]
  25429. 800afe0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25430. 800afe4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25431. 800afe8: 6053 str r3, [r2, #4]
  25432. #if !defined (DUAL_CORE)
  25433. /* Configure the interrupt mode */
  25434. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  25435. 800afea: 687b ldr r3, [r7, #4]
  25436. 800afec: 685b ldr r3, [r3, #4]
  25437. 800afee: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25438. 800aff2: 2b00 cmp r3, #0
  25439. 800aff4: d009 beq.n 800b00a <HAL_PWREx_ConfigAVD+0x82>
  25440. {
  25441. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  25442. 800aff6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25443. 800affa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25444. 800affe: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25445. 800b002: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25446. 800b006: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25447. }
  25448. /* Configure the event mode */
  25449. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  25450. 800b00a: 687b ldr r3, [r7, #4]
  25451. 800b00c: 685b ldr r3, [r3, #4]
  25452. 800b00e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25453. 800b012: 2b00 cmp r3, #0
  25454. 800b014: d009 beq.n 800b02a <HAL_PWREx_ConfigAVD+0xa2>
  25455. {
  25456. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  25457. 800b016: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25458. 800b01a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25459. 800b01e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25460. 800b022: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25461. 800b026: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25462. }
  25463. #endif /* !defined (DUAL_CORE) */
  25464. /* Rising edge configuration */
  25465. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  25466. 800b02a: 687b ldr r3, [r7, #4]
  25467. 800b02c: 685b ldr r3, [r3, #4]
  25468. 800b02e: f003 0301 and.w r3, r3, #1
  25469. 800b032: 2b00 cmp r3, #0
  25470. 800b034: d007 beq.n 800b046 <HAL_PWREx_ConfigAVD+0xbe>
  25471. {
  25472. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  25473. 800b036: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25474. 800b03a: 681b ldr r3, [r3, #0]
  25475. 800b03c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25476. 800b040: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25477. 800b044: 6013 str r3, [r2, #0]
  25478. }
  25479. /* Falling edge configuration */
  25480. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  25481. 800b046: 687b ldr r3, [r7, #4]
  25482. 800b048: 685b ldr r3, [r3, #4]
  25483. 800b04a: f003 0302 and.w r3, r3, #2
  25484. 800b04e: 2b00 cmp r3, #0
  25485. 800b050: d007 beq.n 800b062 <HAL_PWREx_ConfigAVD+0xda>
  25486. {
  25487. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  25488. 800b052: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25489. 800b056: 685b ldr r3, [r3, #4]
  25490. 800b058: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25491. 800b05c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25492. 800b060: 6053 str r3, [r2, #4]
  25493. }
  25494. }
  25495. 800b062: bf00 nop
  25496. 800b064: 370c adds r7, #12
  25497. 800b066: 46bd mov sp, r7
  25498. 800b068: f85d 7b04 ldr.w r7, [sp], #4
  25499. 800b06c: 4770 bx lr
  25500. 800b06e: bf00 nop
  25501. 800b070: 58024800 .word 0x58024800
  25502. 0800b074 <HAL_PWREx_EnableAVD>:
  25503. /**
  25504. * @brief Enable the Analog Voltage Detector (AVD).
  25505. * @retval None.
  25506. */
  25507. void HAL_PWREx_EnableAVD (void)
  25508. {
  25509. 800b074: b480 push {r7}
  25510. 800b076: af00 add r7, sp, #0
  25511. /* Enable the Analog Voltage Detector */
  25512. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  25513. 800b078: 4b05 ldr r3, [pc, #20] @ (800b090 <HAL_PWREx_EnableAVD+0x1c>)
  25514. 800b07a: 681b ldr r3, [r3, #0]
  25515. 800b07c: 4a04 ldr r2, [pc, #16] @ (800b090 <HAL_PWREx_EnableAVD+0x1c>)
  25516. 800b07e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25517. 800b082: 6013 str r3, [r2, #0]
  25518. }
  25519. 800b084: bf00 nop
  25520. 800b086: 46bd mov sp, r7
  25521. 800b088: f85d 7b04 ldr.w r7, [sp], #4
  25522. 800b08c: 4770 bx lr
  25523. 800b08e: bf00 nop
  25524. 800b090: 58024800 .word 0x58024800
  25525. 0800b094 <HAL_RCC_OscConfig>:
  25526. * supported by this function. User should request a transition to HSE Off
  25527. * first and then HSE On or HSE Bypass.
  25528. * @retval HAL status
  25529. */
  25530. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  25531. {
  25532. 800b094: b580 push {r7, lr}
  25533. 800b096: b08c sub sp, #48 @ 0x30
  25534. 800b098: af00 add r7, sp, #0
  25535. 800b09a: 6078 str r0, [r7, #4]
  25536. uint32_t tickstart;
  25537. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  25538. /* Check Null pointer */
  25539. if (RCC_OscInitStruct == NULL)
  25540. 800b09c: 687b ldr r3, [r7, #4]
  25541. 800b09e: 2b00 cmp r3, #0
  25542. 800b0a0: d102 bne.n 800b0a8 <HAL_RCC_OscConfig+0x14>
  25543. {
  25544. return HAL_ERROR;
  25545. 800b0a2: 2301 movs r3, #1
  25546. 800b0a4: f000 bc48 b.w 800b938 <HAL_RCC_OscConfig+0x8a4>
  25547. }
  25548. /* Check the parameters */
  25549. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  25550. /*------------------------------- HSE Configuration ------------------------*/
  25551. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  25552. 800b0a8: 687b ldr r3, [r7, #4]
  25553. 800b0aa: 681b ldr r3, [r3, #0]
  25554. 800b0ac: f003 0301 and.w r3, r3, #1
  25555. 800b0b0: 2b00 cmp r3, #0
  25556. 800b0b2: f000 8088 beq.w 800b1c6 <HAL_RCC_OscConfig+0x132>
  25557. {
  25558. /* Check the parameters */
  25559. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  25560. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25561. 800b0b6: 4b99 ldr r3, [pc, #612] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25562. 800b0b8: 691b ldr r3, [r3, #16]
  25563. 800b0ba: f003 0338 and.w r3, r3, #56 @ 0x38
  25564. 800b0be: 62fb str r3, [r7, #44] @ 0x2c
  25565. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25566. 800b0c0: 4b96 ldr r3, [pc, #600] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25567. 800b0c2: 6a9b ldr r3, [r3, #40] @ 0x28
  25568. 800b0c4: 62bb str r3, [r7, #40] @ 0x28
  25569. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  25570. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  25571. 800b0c6: 6afb ldr r3, [r7, #44] @ 0x2c
  25572. 800b0c8: 2b10 cmp r3, #16
  25573. 800b0ca: d007 beq.n 800b0dc <HAL_RCC_OscConfig+0x48>
  25574. 800b0cc: 6afb ldr r3, [r7, #44] @ 0x2c
  25575. 800b0ce: 2b18 cmp r3, #24
  25576. 800b0d0: d111 bne.n 800b0f6 <HAL_RCC_OscConfig+0x62>
  25577. 800b0d2: 6abb ldr r3, [r7, #40] @ 0x28
  25578. 800b0d4: f003 0303 and.w r3, r3, #3
  25579. 800b0d8: 2b02 cmp r3, #2
  25580. 800b0da: d10c bne.n 800b0f6 <HAL_RCC_OscConfig+0x62>
  25581. {
  25582. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  25583. 800b0dc: 4b8f ldr r3, [pc, #572] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25584. 800b0de: 681b ldr r3, [r3, #0]
  25585. 800b0e0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25586. 800b0e4: 2b00 cmp r3, #0
  25587. 800b0e6: d06d beq.n 800b1c4 <HAL_RCC_OscConfig+0x130>
  25588. 800b0e8: 687b ldr r3, [r7, #4]
  25589. 800b0ea: 685b ldr r3, [r3, #4]
  25590. 800b0ec: 2b00 cmp r3, #0
  25591. 800b0ee: d169 bne.n 800b1c4 <HAL_RCC_OscConfig+0x130>
  25592. {
  25593. return HAL_ERROR;
  25594. 800b0f0: 2301 movs r3, #1
  25595. 800b0f2: f000 bc21 b.w 800b938 <HAL_RCC_OscConfig+0x8a4>
  25596. }
  25597. }
  25598. else
  25599. {
  25600. /* Set the new HSE configuration ---------------------------------------*/
  25601. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  25602. 800b0f6: 687b ldr r3, [r7, #4]
  25603. 800b0f8: 685b ldr r3, [r3, #4]
  25604. 800b0fa: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  25605. 800b0fe: d106 bne.n 800b10e <HAL_RCC_OscConfig+0x7a>
  25606. 800b100: 4b86 ldr r3, [pc, #536] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25607. 800b102: 681b ldr r3, [r3, #0]
  25608. 800b104: 4a85 ldr r2, [pc, #532] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25609. 800b106: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25610. 800b10a: 6013 str r3, [r2, #0]
  25611. 800b10c: e02e b.n 800b16c <HAL_RCC_OscConfig+0xd8>
  25612. 800b10e: 687b ldr r3, [r7, #4]
  25613. 800b110: 685b ldr r3, [r3, #4]
  25614. 800b112: 2b00 cmp r3, #0
  25615. 800b114: d10c bne.n 800b130 <HAL_RCC_OscConfig+0x9c>
  25616. 800b116: 4b81 ldr r3, [pc, #516] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25617. 800b118: 681b ldr r3, [r3, #0]
  25618. 800b11a: 4a80 ldr r2, [pc, #512] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25619. 800b11c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25620. 800b120: 6013 str r3, [r2, #0]
  25621. 800b122: 4b7e ldr r3, [pc, #504] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25622. 800b124: 681b ldr r3, [r3, #0]
  25623. 800b126: 4a7d ldr r2, [pc, #500] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25624. 800b128: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  25625. 800b12c: 6013 str r3, [r2, #0]
  25626. 800b12e: e01d b.n 800b16c <HAL_RCC_OscConfig+0xd8>
  25627. 800b130: 687b ldr r3, [r7, #4]
  25628. 800b132: 685b ldr r3, [r3, #4]
  25629. 800b134: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  25630. 800b138: d10c bne.n 800b154 <HAL_RCC_OscConfig+0xc0>
  25631. 800b13a: 4b78 ldr r3, [pc, #480] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25632. 800b13c: 681b ldr r3, [r3, #0]
  25633. 800b13e: 4a77 ldr r2, [pc, #476] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25634. 800b140: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  25635. 800b144: 6013 str r3, [r2, #0]
  25636. 800b146: 4b75 ldr r3, [pc, #468] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25637. 800b148: 681b ldr r3, [r3, #0]
  25638. 800b14a: 4a74 ldr r2, [pc, #464] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25639. 800b14c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25640. 800b150: 6013 str r3, [r2, #0]
  25641. 800b152: e00b b.n 800b16c <HAL_RCC_OscConfig+0xd8>
  25642. 800b154: 4b71 ldr r3, [pc, #452] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25643. 800b156: 681b ldr r3, [r3, #0]
  25644. 800b158: 4a70 ldr r2, [pc, #448] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25645. 800b15a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25646. 800b15e: 6013 str r3, [r2, #0]
  25647. 800b160: 4b6e ldr r3, [pc, #440] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25648. 800b162: 681b ldr r3, [r3, #0]
  25649. 800b164: 4a6d ldr r2, [pc, #436] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25650. 800b166: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  25651. 800b16a: 6013 str r3, [r2, #0]
  25652. /* Check the HSE State */
  25653. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  25654. 800b16c: 687b ldr r3, [r7, #4]
  25655. 800b16e: 685b ldr r3, [r3, #4]
  25656. 800b170: 2b00 cmp r3, #0
  25657. 800b172: d013 beq.n 800b19c <HAL_RCC_OscConfig+0x108>
  25658. {
  25659. /* Get Start Tick*/
  25660. tickstart = HAL_GetTick();
  25661. 800b174: f7fa f9f8 bl 8005568 <HAL_GetTick>
  25662. 800b178: 6278 str r0, [r7, #36] @ 0x24
  25663. /* Wait till HSE is ready */
  25664. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  25665. 800b17a: e008 b.n 800b18e <HAL_RCC_OscConfig+0xfa>
  25666. {
  25667. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  25668. 800b17c: f7fa f9f4 bl 8005568 <HAL_GetTick>
  25669. 800b180: 4602 mov r2, r0
  25670. 800b182: 6a7b ldr r3, [r7, #36] @ 0x24
  25671. 800b184: 1ad3 subs r3, r2, r3
  25672. 800b186: 2b64 cmp r3, #100 @ 0x64
  25673. 800b188: d901 bls.n 800b18e <HAL_RCC_OscConfig+0xfa>
  25674. {
  25675. return HAL_TIMEOUT;
  25676. 800b18a: 2303 movs r3, #3
  25677. 800b18c: e3d4 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25678. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  25679. 800b18e: 4b63 ldr r3, [pc, #396] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25680. 800b190: 681b ldr r3, [r3, #0]
  25681. 800b192: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25682. 800b196: 2b00 cmp r3, #0
  25683. 800b198: d0f0 beq.n 800b17c <HAL_RCC_OscConfig+0xe8>
  25684. 800b19a: e014 b.n 800b1c6 <HAL_RCC_OscConfig+0x132>
  25685. }
  25686. }
  25687. else
  25688. {
  25689. /* Get Start Tick*/
  25690. tickstart = HAL_GetTick();
  25691. 800b19c: f7fa f9e4 bl 8005568 <HAL_GetTick>
  25692. 800b1a0: 6278 str r0, [r7, #36] @ 0x24
  25693. /* Wait till HSE is disabled */
  25694. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  25695. 800b1a2: e008 b.n 800b1b6 <HAL_RCC_OscConfig+0x122>
  25696. {
  25697. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  25698. 800b1a4: f7fa f9e0 bl 8005568 <HAL_GetTick>
  25699. 800b1a8: 4602 mov r2, r0
  25700. 800b1aa: 6a7b ldr r3, [r7, #36] @ 0x24
  25701. 800b1ac: 1ad3 subs r3, r2, r3
  25702. 800b1ae: 2b64 cmp r3, #100 @ 0x64
  25703. 800b1b0: d901 bls.n 800b1b6 <HAL_RCC_OscConfig+0x122>
  25704. {
  25705. return HAL_TIMEOUT;
  25706. 800b1b2: 2303 movs r3, #3
  25707. 800b1b4: e3c0 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25708. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  25709. 800b1b6: 4b59 ldr r3, [pc, #356] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25710. 800b1b8: 681b ldr r3, [r3, #0]
  25711. 800b1ba: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25712. 800b1be: 2b00 cmp r3, #0
  25713. 800b1c0: d1f0 bne.n 800b1a4 <HAL_RCC_OscConfig+0x110>
  25714. 800b1c2: e000 b.n 800b1c6 <HAL_RCC_OscConfig+0x132>
  25715. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  25716. 800b1c4: bf00 nop
  25717. }
  25718. }
  25719. }
  25720. }
  25721. /*----------------------------- HSI Configuration --------------------------*/
  25722. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  25723. 800b1c6: 687b ldr r3, [r7, #4]
  25724. 800b1c8: 681b ldr r3, [r3, #0]
  25725. 800b1ca: f003 0302 and.w r3, r3, #2
  25726. 800b1ce: 2b00 cmp r3, #0
  25727. 800b1d0: f000 80ca beq.w 800b368 <HAL_RCC_OscConfig+0x2d4>
  25728. /* Check the parameters */
  25729. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  25730. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  25731. /* When the HSI is used as system clock it will not be disabled */
  25732. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25733. 800b1d4: 4b51 ldr r3, [pc, #324] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25734. 800b1d6: 691b ldr r3, [r3, #16]
  25735. 800b1d8: f003 0338 and.w r3, r3, #56 @ 0x38
  25736. 800b1dc: 623b str r3, [r7, #32]
  25737. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25738. 800b1de: 4b4f ldr r3, [pc, #316] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25739. 800b1e0: 6a9b ldr r3, [r3, #40] @ 0x28
  25740. 800b1e2: 61fb str r3, [r7, #28]
  25741. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  25742. 800b1e4: 6a3b ldr r3, [r7, #32]
  25743. 800b1e6: 2b00 cmp r3, #0
  25744. 800b1e8: d007 beq.n 800b1fa <HAL_RCC_OscConfig+0x166>
  25745. 800b1ea: 6a3b ldr r3, [r7, #32]
  25746. 800b1ec: 2b18 cmp r3, #24
  25747. 800b1ee: d156 bne.n 800b29e <HAL_RCC_OscConfig+0x20a>
  25748. 800b1f0: 69fb ldr r3, [r7, #28]
  25749. 800b1f2: f003 0303 and.w r3, r3, #3
  25750. 800b1f6: 2b00 cmp r3, #0
  25751. 800b1f8: d151 bne.n 800b29e <HAL_RCC_OscConfig+0x20a>
  25752. {
  25753. /* When HSI is used as system clock it will not be disabled */
  25754. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25755. 800b1fa: 4b48 ldr r3, [pc, #288] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25756. 800b1fc: 681b ldr r3, [r3, #0]
  25757. 800b1fe: f003 0304 and.w r3, r3, #4
  25758. 800b202: 2b00 cmp r3, #0
  25759. 800b204: d005 beq.n 800b212 <HAL_RCC_OscConfig+0x17e>
  25760. 800b206: 687b ldr r3, [r7, #4]
  25761. 800b208: 68db ldr r3, [r3, #12]
  25762. 800b20a: 2b00 cmp r3, #0
  25763. 800b20c: d101 bne.n 800b212 <HAL_RCC_OscConfig+0x17e>
  25764. {
  25765. return HAL_ERROR;
  25766. 800b20e: 2301 movs r3, #1
  25767. 800b210: e392 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25768. }
  25769. /* Otherwise, only HSI division and calibration are allowed */
  25770. else
  25771. {
  25772. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  25773. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  25774. 800b212: 4b42 ldr r3, [pc, #264] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25775. 800b214: 681b ldr r3, [r3, #0]
  25776. 800b216: f023 0219 bic.w r2, r3, #25
  25777. 800b21a: 687b ldr r3, [r7, #4]
  25778. 800b21c: 68db ldr r3, [r3, #12]
  25779. 800b21e: 493f ldr r1, [pc, #252] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25780. 800b220: 4313 orrs r3, r2
  25781. 800b222: 600b str r3, [r1, #0]
  25782. /* Get Start Tick*/
  25783. tickstart = HAL_GetTick();
  25784. 800b224: f7fa f9a0 bl 8005568 <HAL_GetTick>
  25785. 800b228: 6278 str r0, [r7, #36] @ 0x24
  25786. /* Wait till HSI is ready */
  25787. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25788. 800b22a: e008 b.n 800b23e <HAL_RCC_OscConfig+0x1aa>
  25789. {
  25790. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25791. 800b22c: f7fa f99c bl 8005568 <HAL_GetTick>
  25792. 800b230: 4602 mov r2, r0
  25793. 800b232: 6a7b ldr r3, [r7, #36] @ 0x24
  25794. 800b234: 1ad3 subs r3, r2, r3
  25795. 800b236: 2b02 cmp r3, #2
  25796. 800b238: d901 bls.n 800b23e <HAL_RCC_OscConfig+0x1aa>
  25797. {
  25798. return HAL_TIMEOUT;
  25799. 800b23a: 2303 movs r3, #3
  25800. 800b23c: e37c b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25801. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25802. 800b23e: 4b37 ldr r3, [pc, #220] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25803. 800b240: 681b ldr r3, [r3, #0]
  25804. 800b242: f003 0304 and.w r3, r3, #4
  25805. 800b246: 2b00 cmp r3, #0
  25806. 800b248: d0f0 beq.n 800b22c <HAL_RCC_OscConfig+0x198>
  25807. }
  25808. }
  25809. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  25810. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25811. 800b24a: f7fa f999 bl 8005580 <HAL_GetREVID>
  25812. 800b24e: 4603 mov r3, r0
  25813. 800b250: f241 0203 movw r2, #4099 @ 0x1003
  25814. 800b254: 4293 cmp r3, r2
  25815. 800b256: d817 bhi.n 800b288 <HAL_RCC_OscConfig+0x1f4>
  25816. 800b258: 687b ldr r3, [r7, #4]
  25817. 800b25a: 691b ldr r3, [r3, #16]
  25818. 800b25c: 2b40 cmp r3, #64 @ 0x40
  25819. 800b25e: d108 bne.n 800b272 <HAL_RCC_OscConfig+0x1de>
  25820. 800b260: 4b2e ldr r3, [pc, #184] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25821. 800b262: 685b ldr r3, [r3, #4]
  25822. 800b264: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  25823. 800b268: 4a2c ldr r2, [pc, #176] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25824. 800b26a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25825. 800b26e: 6053 str r3, [r2, #4]
  25826. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25827. 800b270: e07a b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25828. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25829. 800b272: 4b2a ldr r3, [pc, #168] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25830. 800b274: 685b ldr r3, [r3, #4]
  25831. 800b276: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  25832. 800b27a: 687b ldr r3, [r7, #4]
  25833. 800b27c: 691b ldr r3, [r3, #16]
  25834. 800b27e: 031b lsls r3, r3, #12
  25835. 800b280: 4926 ldr r1, [pc, #152] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25836. 800b282: 4313 orrs r3, r2
  25837. 800b284: 604b str r3, [r1, #4]
  25838. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25839. 800b286: e06f b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25840. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25841. 800b288: 4b24 ldr r3, [pc, #144] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25842. 800b28a: 685b ldr r3, [r3, #4]
  25843. 800b28c: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  25844. 800b290: 687b ldr r3, [r7, #4]
  25845. 800b292: 691b ldr r3, [r3, #16]
  25846. 800b294: 061b lsls r3, r3, #24
  25847. 800b296: 4921 ldr r1, [pc, #132] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25848. 800b298: 4313 orrs r3, r2
  25849. 800b29a: 604b str r3, [r1, #4]
  25850. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25851. 800b29c: e064 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25852. }
  25853. else
  25854. {
  25855. /* Check the HSI State */
  25856. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  25857. 800b29e: 687b ldr r3, [r7, #4]
  25858. 800b2a0: 68db ldr r3, [r3, #12]
  25859. 800b2a2: 2b00 cmp r3, #0
  25860. 800b2a4: d047 beq.n 800b336 <HAL_RCC_OscConfig+0x2a2>
  25861. {
  25862. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  25863. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  25864. 800b2a6: 4b1d ldr r3, [pc, #116] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25865. 800b2a8: 681b ldr r3, [r3, #0]
  25866. 800b2aa: f023 0219 bic.w r2, r3, #25
  25867. 800b2ae: 687b ldr r3, [r7, #4]
  25868. 800b2b0: 68db ldr r3, [r3, #12]
  25869. 800b2b2: 491a ldr r1, [pc, #104] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25870. 800b2b4: 4313 orrs r3, r2
  25871. 800b2b6: 600b str r3, [r1, #0]
  25872. /* Get Start Tick*/
  25873. tickstart = HAL_GetTick();
  25874. 800b2b8: f7fa f956 bl 8005568 <HAL_GetTick>
  25875. 800b2bc: 6278 str r0, [r7, #36] @ 0x24
  25876. /* Wait till HSI is ready */
  25877. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25878. 800b2be: e008 b.n 800b2d2 <HAL_RCC_OscConfig+0x23e>
  25879. {
  25880. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25881. 800b2c0: f7fa f952 bl 8005568 <HAL_GetTick>
  25882. 800b2c4: 4602 mov r2, r0
  25883. 800b2c6: 6a7b ldr r3, [r7, #36] @ 0x24
  25884. 800b2c8: 1ad3 subs r3, r2, r3
  25885. 800b2ca: 2b02 cmp r3, #2
  25886. 800b2cc: d901 bls.n 800b2d2 <HAL_RCC_OscConfig+0x23e>
  25887. {
  25888. return HAL_TIMEOUT;
  25889. 800b2ce: 2303 movs r3, #3
  25890. 800b2d0: e332 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25891. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25892. 800b2d2: 4b12 ldr r3, [pc, #72] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25893. 800b2d4: 681b ldr r3, [r3, #0]
  25894. 800b2d6: f003 0304 and.w r3, r3, #4
  25895. 800b2da: 2b00 cmp r3, #0
  25896. 800b2dc: d0f0 beq.n 800b2c0 <HAL_RCC_OscConfig+0x22c>
  25897. }
  25898. }
  25899. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  25900. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25901. 800b2de: f7fa f94f bl 8005580 <HAL_GetREVID>
  25902. 800b2e2: 4603 mov r3, r0
  25903. 800b2e4: f241 0203 movw r2, #4099 @ 0x1003
  25904. 800b2e8: 4293 cmp r3, r2
  25905. 800b2ea: d819 bhi.n 800b320 <HAL_RCC_OscConfig+0x28c>
  25906. 800b2ec: 687b ldr r3, [r7, #4]
  25907. 800b2ee: 691b ldr r3, [r3, #16]
  25908. 800b2f0: 2b40 cmp r3, #64 @ 0x40
  25909. 800b2f2: d108 bne.n 800b306 <HAL_RCC_OscConfig+0x272>
  25910. 800b2f4: 4b09 ldr r3, [pc, #36] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25911. 800b2f6: 685b ldr r3, [r3, #4]
  25912. 800b2f8: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  25913. 800b2fc: 4a07 ldr r2, [pc, #28] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25914. 800b2fe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25915. 800b302: 6053 str r3, [r2, #4]
  25916. 800b304: e030 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25917. 800b306: 4b05 ldr r3, [pc, #20] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25918. 800b308: 685b ldr r3, [r3, #4]
  25919. 800b30a: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  25920. 800b30e: 687b ldr r3, [r7, #4]
  25921. 800b310: 691b ldr r3, [r3, #16]
  25922. 800b312: 031b lsls r3, r3, #12
  25923. 800b314: 4901 ldr r1, [pc, #4] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25924. 800b316: 4313 orrs r3, r2
  25925. 800b318: 604b str r3, [r1, #4]
  25926. 800b31a: e025 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25927. 800b31c: 58024400 .word 0x58024400
  25928. 800b320: 4b9a ldr r3, [pc, #616] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25929. 800b322: 685b ldr r3, [r3, #4]
  25930. 800b324: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  25931. 800b328: 687b ldr r3, [r7, #4]
  25932. 800b32a: 691b ldr r3, [r3, #16]
  25933. 800b32c: 061b lsls r3, r3, #24
  25934. 800b32e: 4997 ldr r1, [pc, #604] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25935. 800b330: 4313 orrs r3, r2
  25936. 800b332: 604b str r3, [r1, #4]
  25937. 800b334: e018 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25938. }
  25939. else
  25940. {
  25941. /* Disable the Internal High Speed oscillator (HSI). */
  25942. __HAL_RCC_HSI_DISABLE();
  25943. 800b336: 4b95 ldr r3, [pc, #596] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25944. 800b338: 681b ldr r3, [r3, #0]
  25945. 800b33a: 4a94 ldr r2, [pc, #592] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25946. 800b33c: f023 0301 bic.w r3, r3, #1
  25947. 800b340: 6013 str r3, [r2, #0]
  25948. /* Get Start Tick*/
  25949. tickstart = HAL_GetTick();
  25950. 800b342: f7fa f911 bl 8005568 <HAL_GetTick>
  25951. 800b346: 6278 str r0, [r7, #36] @ 0x24
  25952. /* Wait till HSI is disabled */
  25953. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  25954. 800b348: e008 b.n 800b35c <HAL_RCC_OscConfig+0x2c8>
  25955. {
  25956. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25957. 800b34a: f7fa f90d bl 8005568 <HAL_GetTick>
  25958. 800b34e: 4602 mov r2, r0
  25959. 800b350: 6a7b ldr r3, [r7, #36] @ 0x24
  25960. 800b352: 1ad3 subs r3, r2, r3
  25961. 800b354: 2b02 cmp r3, #2
  25962. 800b356: d901 bls.n 800b35c <HAL_RCC_OscConfig+0x2c8>
  25963. {
  25964. return HAL_TIMEOUT;
  25965. 800b358: 2303 movs r3, #3
  25966. 800b35a: e2ed b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25967. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  25968. 800b35c: 4b8b ldr r3, [pc, #556] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25969. 800b35e: 681b ldr r3, [r3, #0]
  25970. 800b360: f003 0304 and.w r3, r3, #4
  25971. 800b364: 2b00 cmp r3, #0
  25972. 800b366: d1f0 bne.n 800b34a <HAL_RCC_OscConfig+0x2b6>
  25973. }
  25974. }
  25975. }
  25976. }
  25977. /*----------------------------- CSI Configuration --------------------------*/
  25978. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  25979. 800b368: 687b ldr r3, [r7, #4]
  25980. 800b36a: 681b ldr r3, [r3, #0]
  25981. 800b36c: f003 0310 and.w r3, r3, #16
  25982. 800b370: 2b00 cmp r3, #0
  25983. 800b372: f000 80a9 beq.w 800b4c8 <HAL_RCC_OscConfig+0x434>
  25984. /* Check the parameters */
  25985. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  25986. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  25987. /* When the CSI is used as system clock it will not disabled */
  25988. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25989. 800b376: 4b85 ldr r3, [pc, #532] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25990. 800b378: 691b ldr r3, [r3, #16]
  25991. 800b37a: f003 0338 and.w r3, r3, #56 @ 0x38
  25992. 800b37e: 61bb str r3, [r7, #24]
  25993. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25994. 800b380: 4b82 ldr r3, [pc, #520] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25995. 800b382: 6a9b ldr r3, [r3, #40] @ 0x28
  25996. 800b384: 617b str r3, [r7, #20]
  25997. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  25998. 800b386: 69bb ldr r3, [r7, #24]
  25999. 800b388: 2b08 cmp r3, #8
  26000. 800b38a: d007 beq.n 800b39c <HAL_RCC_OscConfig+0x308>
  26001. 800b38c: 69bb ldr r3, [r7, #24]
  26002. 800b38e: 2b18 cmp r3, #24
  26003. 800b390: d13a bne.n 800b408 <HAL_RCC_OscConfig+0x374>
  26004. 800b392: 697b ldr r3, [r7, #20]
  26005. 800b394: f003 0303 and.w r3, r3, #3
  26006. 800b398: 2b01 cmp r3, #1
  26007. 800b39a: d135 bne.n 800b408 <HAL_RCC_OscConfig+0x374>
  26008. {
  26009. /* When CSI is used as system clock it will not disabled */
  26010. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26011. 800b39c: 4b7b ldr r3, [pc, #492] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26012. 800b39e: 681b ldr r3, [r3, #0]
  26013. 800b3a0: f403 7380 and.w r3, r3, #256 @ 0x100
  26014. 800b3a4: 2b00 cmp r3, #0
  26015. 800b3a6: d005 beq.n 800b3b4 <HAL_RCC_OscConfig+0x320>
  26016. 800b3a8: 687b ldr r3, [r7, #4]
  26017. 800b3aa: 69db ldr r3, [r3, #28]
  26018. 800b3ac: 2b80 cmp r3, #128 @ 0x80
  26019. 800b3ae: d001 beq.n 800b3b4 <HAL_RCC_OscConfig+0x320>
  26020. {
  26021. return HAL_ERROR;
  26022. 800b3b0: 2301 movs r3, #1
  26023. 800b3b2: e2c1 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26024. }
  26025. /* Otherwise, just the calibration is allowed */
  26026. else
  26027. {
  26028. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  26029. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26030. 800b3b4: f7fa f8e4 bl 8005580 <HAL_GetREVID>
  26031. 800b3b8: 4603 mov r3, r0
  26032. 800b3ba: f241 0203 movw r2, #4099 @ 0x1003
  26033. 800b3be: 4293 cmp r3, r2
  26034. 800b3c0: d817 bhi.n 800b3f2 <HAL_RCC_OscConfig+0x35e>
  26035. 800b3c2: 687b ldr r3, [r7, #4]
  26036. 800b3c4: 6a1b ldr r3, [r3, #32]
  26037. 800b3c6: 2b20 cmp r3, #32
  26038. 800b3c8: d108 bne.n 800b3dc <HAL_RCC_OscConfig+0x348>
  26039. 800b3ca: 4b70 ldr r3, [pc, #448] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26040. 800b3cc: 685b ldr r3, [r3, #4]
  26041. 800b3ce: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  26042. 800b3d2: 4a6e ldr r2, [pc, #440] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26043. 800b3d4: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  26044. 800b3d8: 6053 str r3, [r2, #4]
  26045. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26046. 800b3da: e075 b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26047. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26048. 800b3dc: 4b6b ldr r3, [pc, #428] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26049. 800b3de: 685b ldr r3, [r3, #4]
  26050. 800b3e0: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  26051. 800b3e4: 687b ldr r3, [r7, #4]
  26052. 800b3e6: 6a1b ldr r3, [r3, #32]
  26053. 800b3e8: 069b lsls r3, r3, #26
  26054. 800b3ea: 4968 ldr r1, [pc, #416] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26055. 800b3ec: 4313 orrs r3, r2
  26056. 800b3ee: 604b str r3, [r1, #4]
  26057. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26058. 800b3f0: e06a b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26059. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26060. 800b3f2: 4b66 ldr r3, [pc, #408] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26061. 800b3f4: 68db ldr r3, [r3, #12]
  26062. 800b3f6: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  26063. 800b3fa: 687b ldr r3, [r7, #4]
  26064. 800b3fc: 6a1b ldr r3, [r3, #32]
  26065. 800b3fe: 061b lsls r3, r3, #24
  26066. 800b400: 4962 ldr r1, [pc, #392] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26067. 800b402: 4313 orrs r3, r2
  26068. 800b404: 60cb str r3, [r1, #12]
  26069. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26070. 800b406: e05f b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26071. }
  26072. }
  26073. else
  26074. {
  26075. /* Check the CSI State */
  26076. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  26077. 800b408: 687b ldr r3, [r7, #4]
  26078. 800b40a: 69db ldr r3, [r3, #28]
  26079. 800b40c: 2b00 cmp r3, #0
  26080. 800b40e: d042 beq.n 800b496 <HAL_RCC_OscConfig+0x402>
  26081. {
  26082. /* Enable the Internal High Speed oscillator (CSI). */
  26083. __HAL_RCC_CSI_ENABLE();
  26084. 800b410: 4b5e ldr r3, [pc, #376] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26085. 800b412: 681b ldr r3, [r3, #0]
  26086. 800b414: 4a5d ldr r2, [pc, #372] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26087. 800b416: f043 0380 orr.w r3, r3, #128 @ 0x80
  26088. 800b41a: 6013 str r3, [r2, #0]
  26089. /* Get Start Tick*/
  26090. tickstart = HAL_GetTick();
  26091. 800b41c: f7fa f8a4 bl 8005568 <HAL_GetTick>
  26092. 800b420: 6278 str r0, [r7, #36] @ 0x24
  26093. /* Wait till CSI is ready */
  26094. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  26095. 800b422: e008 b.n 800b436 <HAL_RCC_OscConfig+0x3a2>
  26096. {
  26097. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  26098. 800b424: f7fa f8a0 bl 8005568 <HAL_GetTick>
  26099. 800b428: 4602 mov r2, r0
  26100. 800b42a: 6a7b ldr r3, [r7, #36] @ 0x24
  26101. 800b42c: 1ad3 subs r3, r2, r3
  26102. 800b42e: 2b02 cmp r3, #2
  26103. 800b430: d901 bls.n 800b436 <HAL_RCC_OscConfig+0x3a2>
  26104. {
  26105. return HAL_TIMEOUT;
  26106. 800b432: 2303 movs r3, #3
  26107. 800b434: e280 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26108. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  26109. 800b436: 4b55 ldr r3, [pc, #340] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26110. 800b438: 681b ldr r3, [r3, #0]
  26111. 800b43a: f403 7380 and.w r3, r3, #256 @ 0x100
  26112. 800b43e: 2b00 cmp r3, #0
  26113. 800b440: d0f0 beq.n 800b424 <HAL_RCC_OscConfig+0x390>
  26114. }
  26115. }
  26116. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  26117. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26118. 800b442: f7fa f89d bl 8005580 <HAL_GetREVID>
  26119. 800b446: 4603 mov r3, r0
  26120. 800b448: f241 0203 movw r2, #4099 @ 0x1003
  26121. 800b44c: 4293 cmp r3, r2
  26122. 800b44e: d817 bhi.n 800b480 <HAL_RCC_OscConfig+0x3ec>
  26123. 800b450: 687b ldr r3, [r7, #4]
  26124. 800b452: 6a1b ldr r3, [r3, #32]
  26125. 800b454: 2b20 cmp r3, #32
  26126. 800b456: d108 bne.n 800b46a <HAL_RCC_OscConfig+0x3d6>
  26127. 800b458: 4b4c ldr r3, [pc, #304] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26128. 800b45a: 685b ldr r3, [r3, #4]
  26129. 800b45c: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  26130. 800b460: 4a4a ldr r2, [pc, #296] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26131. 800b462: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  26132. 800b466: 6053 str r3, [r2, #4]
  26133. 800b468: e02e b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26134. 800b46a: 4b48 ldr r3, [pc, #288] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26135. 800b46c: 685b ldr r3, [r3, #4]
  26136. 800b46e: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  26137. 800b472: 687b ldr r3, [r7, #4]
  26138. 800b474: 6a1b ldr r3, [r3, #32]
  26139. 800b476: 069b lsls r3, r3, #26
  26140. 800b478: 4944 ldr r1, [pc, #272] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26141. 800b47a: 4313 orrs r3, r2
  26142. 800b47c: 604b str r3, [r1, #4]
  26143. 800b47e: e023 b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26144. 800b480: 4b42 ldr r3, [pc, #264] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26145. 800b482: 68db ldr r3, [r3, #12]
  26146. 800b484: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  26147. 800b488: 687b ldr r3, [r7, #4]
  26148. 800b48a: 6a1b ldr r3, [r3, #32]
  26149. 800b48c: 061b lsls r3, r3, #24
  26150. 800b48e: 493f ldr r1, [pc, #252] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26151. 800b490: 4313 orrs r3, r2
  26152. 800b492: 60cb str r3, [r1, #12]
  26153. 800b494: e018 b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26154. }
  26155. else
  26156. {
  26157. /* Disable the Internal High Speed oscillator (CSI). */
  26158. __HAL_RCC_CSI_DISABLE();
  26159. 800b496: 4b3d ldr r3, [pc, #244] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26160. 800b498: 681b ldr r3, [r3, #0]
  26161. 800b49a: 4a3c ldr r2, [pc, #240] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26162. 800b49c: f023 0380 bic.w r3, r3, #128 @ 0x80
  26163. 800b4a0: 6013 str r3, [r2, #0]
  26164. /* Get Start Tick*/
  26165. tickstart = HAL_GetTick();
  26166. 800b4a2: f7fa f861 bl 8005568 <HAL_GetTick>
  26167. 800b4a6: 6278 str r0, [r7, #36] @ 0x24
  26168. /* Wait till CSI is disabled */
  26169. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  26170. 800b4a8: e008 b.n 800b4bc <HAL_RCC_OscConfig+0x428>
  26171. {
  26172. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  26173. 800b4aa: f7fa f85d bl 8005568 <HAL_GetTick>
  26174. 800b4ae: 4602 mov r2, r0
  26175. 800b4b0: 6a7b ldr r3, [r7, #36] @ 0x24
  26176. 800b4b2: 1ad3 subs r3, r2, r3
  26177. 800b4b4: 2b02 cmp r3, #2
  26178. 800b4b6: d901 bls.n 800b4bc <HAL_RCC_OscConfig+0x428>
  26179. {
  26180. return HAL_TIMEOUT;
  26181. 800b4b8: 2303 movs r3, #3
  26182. 800b4ba: e23d b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26183. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  26184. 800b4bc: 4b33 ldr r3, [pc, #204] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26185. 800b4be: 681b ldr r3, [r3, #0]
  26186. 800b4c0: f403 7380 and.w r3, r3, #256 @ 0x100
  26187. 800b4c4: 2b00 cmp r3, #0
  26188. 800b4c6: d1f0 bne.n 800b4aa <HAL_RCC_OscConfig+0x416>
  26189. }
  26190. }
  26191. }
  26192. }
  26193. /*------------------------------ LSI Configuration -------------------------*/
  26194. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  26195. 800b4c8: 687b ldr r3, [r7, #4]
  26196. 800b4ca: 681b ldr r3, [r3, #0]
  26197. 800b4cc: f003 0308 and.w r3, r3, #8
  26198. 800b4d0: 2b00 cmp r3, #0
  26199. 800b4d2: d036 beq.n 800b542 <HAL_RCC_OscConfig+0x4ae>
  26200. {
  26201. /* Check the parameters */
  26202. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  26203. /* Check the LSI State */
  26204. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  26205. 800b4d4: 687b ldr r3, [r7, #4]
  26206. 800b4d6: 695b ldr r3, [r3, #20]
  26207. 800b4d8: 2b00 cmp r3, #0
  26208. 800b4da: d019 beq.n 800b510 <HAL_RCC_OscConfig+0x47c>
  26209. {
  26210. /* Enable the Internal Low Speed oscillator (LSI). */
  26211. __HAL_RCC_LSI_ENABLE();
  26212. 800b4dc: 4b2b ldr r3, [pc, #172] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26213. 800b4de: 6f5b ldr r3, [r3, #116] @ 0x74
  26214. 800b4e0: 4a2a ldr r2, [pc, #168] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26215. 800b4e2: f043 0301 orr.w r3, r3, #1
  26216. 800b4e6: 6753 str r3, [r2, #116] @ 0x74
  26217. /* Get Start Tick*/
  26218. tickstart = HAL_GetTick();
  26219. 800b4e8: f7fa f83e bl 8005568 <HAL_GetTick>
  26220. 800b4ec: 6278 str r0, [r7, #36] @ 0x24
  26221. /* Wait till LSI is ready */
  26222. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  26223. 800b4ee: e008 b.n 800b502 <HAL_RCC_OscConfig+0x46e>
  26224. {
  26225. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  26226. 800b4f0: f7fa f83a bl 8005568 <HAL_GetTick>
  26227. 800b4f4: 4602 mov r2, r0
  26228. 800b4f6: 6a7b ldr r3, [r7, #36] @ 0x24
  26229. 800b4f8: 1ad3 subs r3, r2, r3
  26230. 800b4fa: 2b02 cmp r3, #2
  26231. 800b4fc: d901 bls.n 800b502 <HAL_RCC_OscConfig+0x46e>
  26232. {
  26233. return HAL_TIMEOUT;
  26234. 800b4fe: 2303 movs r3, #3
  26235. 800b500: e21a b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26236. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  26237. 800b502: 4b22 ldr r3, [pc, #136] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26238. 800b504: 6f5b ldr r3, [r3, #116] @ 0x74
  26239. 800b506: f003 0302 and.w r3, r3, #2
  26240. 800b50a: 2b00 cmp r3, #0
  26241. 800b50c: d0f0 beq.n 800b4f0 <HAL_RCC_OscConfig+0x45c>
  26242. 800b50e: e018 b.n 800b542 <HAL_RCC_OscConfig+0x4ae>
  26243. }
  26244. }
  26245. else
  26246. {
  26247. /* Disable the Internal Low Speed oscillator (LSI). */
  26248. __HAL_RCC_LSI_DISABLE();
  26249. 800b510: 4b1e ldr r3, [pc, #120] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26250. 800b512: 6f5b ldr r3, [r3, #116] @ 0x74
  26251. 800b514: 4a1d ldr r2, [pc, #116] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26252. 800b516: f023 0301 bic.w r3, r3, #1
  26253. 800b51a: 6753 str r3, [r2, #116] @ 0x74
  26254. /* Get Start Tick*/
  26255. tickstart = HAL_GetTick();
  26256. 800b51c: f7fa f824 bl 8005568 <HAL_GetTick>
  26257. 800b520: 6278 str r0, [r7, #36] @ 0x24
  26258. /* Wait till LSI is ready */
  26259. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  26260. 800b522: e008 b.n 800b536 <HAL_RCC_OscConfig+0x4a2>
  26261. {
  26262. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  26263. 800b524: f7fa f820 bl 8005568 <HAL_GetTick>
  26264. 800b528: 4602 mov r2, r0
  26265. 800b52a: 6a7b ldr r3, [r7, #36] @ 0x24
  26266. 800b52c: 1ad3 subs r3, r2, r3
  26267. 800b52e: 2b02 cmp r3, #2
  26268. 800b530: d901 bls.n 800b536 <HAL_RCC_OscConfig+0x4a2>
  26269. {
  26270. return HAL_TIMEOUT;
  26271. 800b532: 2303 movs r3, #3
  26272. 800b534: e200 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26273. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  26274. 800b536: 4b15 ldr r3, [pc, #84] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26275. 800b538: 6f5b ldr r3, [r3, #116] @ 0x74
  26276. 800b53a: f003 0302 and.w r3, r3, #2
  26277. 800b53e: 2b00 cmp r3, #0
  26278. 800b540: d1f0 bne.n 800b524 <HAL_RCC_OscConfig+0x490>
  26279. }
  26280. }
  26281. }
  26282. /*------------------------------ HSI48 Configuration -------------------------*/
  26283. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  26284. 800b542: 687b ldr r3, [r7, #4]
  26285. 800b544: 681b ldr r3, [r3, #0]
  26286. 800b546: f003 0320 and.w r3, r3, #32
  26287. 800b54a: 2b00 cmp r3, #0
  26288. 800b54c: d039 beq.n 800b5c2 <HAL_RCC_OscConfig+0x52e>
  26289. {
  26290. /* Check the parameters */
  26291. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  26292. /* Check the HSI48 State */
  26293. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  26294. 800b54e: 687b ldr r3, [r7, #4]
  26295. 800b550: 699b ldr r3, [r3, #24]
  26296. 800b552: 2b00 cmp r3, #0
  26297. 800b554: d01c beq.n 800b590 <HAL_RCC_OscConfig+0x4fc>
  26298. {
  26299. /* Enable the Internal Low Speed oscillator (HSI48). */
  26300. __HAL_RCC_HSI48_ENABLE();
  26301. 800b556: 4b0d ldr r3, [pc, #52] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26302. 800b558: 681b ldr r3, [r3, #0]
  26303. 800b55a: 4a0c ldr r2, [pc, #48] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26304. 800b55c: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  26305. 800b560: 6013 str r3, [r2, #0]
  26306. /* Get time-out */
  26307. tickstart = HAL_GetTick();
  26308. 800b562: f7fa f801 bl 8005568 <HAL_GetTick>
  26309. 800b566: 6278 str r0, [r7, #36] @ 0x24
  26310. /* Wait till HSI48 is ready */
  26311. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  26312. 800b568: e008 b.n 800b57c <HAL_RCC_OscConfig+0x4e8>
  26313. {
  26314. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  26315. 800b56a: f7f9 fffd bl 8005568 <HAL_GetTick>
  26316. 800b56e: 4602 mov r2, r0
  26317. 800b570: 6a7b ldr r3, [r7, #36] @ 0x24
  26318. 800b572: 1ad3 subs r3, r2, r3
  26319. 800b574: 2b02 cmp r3, #2
  26320. 800b576: d901 bls.n 800b57c <HAL_RCC_OscConfig+0x4e8>
  26321. {
  26322. return HAL_TIMEOUT;
  26323. 800b578: 2303 movs r3, #3
  26324. 800b57a: e1dd b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26325. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  26326. 800b57c: 4b03 ldr r3, [pc, #12] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26327. 800b57e: 681b ldr r3, [r3, #0]
  26328. 800b580: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26329. 800b584: 2b00 cmp r3, #0
  26330. 800b586: d0f0 beq.n 800b56a <HAL_RCC_OscConfig+0x4d6>
  26331. 800b588: e01b b.n 800b5c2 <HAL_RCC_OscConfig+0x52e>
  26332. 800b58a: bf00 nop
  26333. 800b58c: 58024400 .word 0x58024400
  26334. }
  26335. }
  26336. else
  26337. {
  26338. /* Disable the Internal Low Speed oscillator (HSI48). */
  26339. __HAL_RCC_HSI48_DISABLE();
  26340. 800b590: 4b9b ldr r3, [pc, #620] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26341. 800b592: 681b ldr r3, [r3, #0]
  26342. 800b594: 4a9a ldr r2, [pc, #616] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26343. 800b596: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  26344. 800b59a: 6013 str r3, [r2, #0]
  26345. /* Get time-out */
  26346. tickstart = HAL_GetTick();
  26347. 800b59c: f7f9 ffe4 bl 8005568 <HAL_GetTick>
  26348. 800b5a0: 6278 str r0, [r7, #36] @ 0x24
  26349. /* Wait till HSI48 is ready */
  26350. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  26351. 800b5a2: e008 b.n 800b5b6 <HAL_RCC_OscConfig+0x522>
  26352. {
  26353. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  26354. 800b5a4: f7f9 ffe0 bl 8005568 <HAL_GetTick>
  26355. 800b5a8: 4602 mov r2, r0
  26356. 800b5aa: 6a7b ldr r3, [r7, #36] @ 0x24
  26357. 800b5ac: 1ad3 subs r3, r2, r3
  26358. 800b5ae: 2b02 cmp r3, #2
  26359. 800b5b0: d901 bls.n 800b5b6 <HAL_RCC_OscConfig+0x522>
  26360. {
  26361. return HAL_TIMEOUT;
  26362. 800b5b2: 2303 movs r3, #3
  26363. 800b5b4: e1c0 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26364. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  26365. 800b5b6: 4b92 ldr r3, [pc, #584] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26366. 800b5b8: 681b ldr r3, [r3, #0]
  26367. 800b5ba: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26368. 800b5be: 2b00 cmp r3, #0
  26369. 800b5c0: d1f0 bne.n 800b5a4 <HAL_RCC_OscConfig+0x510>
  26370. }
  26371. }
  26372. }
  26373. }
  26374. /*------------------------------ LSE Configuration -------------------------*/
  26375. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  26376. 800b5c2: 687b ldr r3, [r7, #4]
  26377. 800b5c4: 681b ldr r3, [r3, #0]
  26378. 800b5c6: f003 0304 and.w r3, r3, #4
  26379. 800b5ca: 2b00 cmp r3, #0
  26380. 800b5cc: f000 8081 beq.w 800b6d2 <HAL_RCC_OscConfig+0x63e>
  26381. {
  26382. /* Check the parameters */
  26383. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  26384. /* Enable write access to Backup domain */
  26385. PWR->CR1 |= PWR_CR1_DBP;
  26386. 800b5d0: 4b8c ldr r3, [pc, #560] @ (800b804 <HAL_RCC_OscConfig+0x770>)
  26387. 800b5d2: 681b ldr r3, [r3, #0]
  26388. 800b5d4: 4a8b ldr r2, [pc, #556] @ (800b804 <HAL_RCC_OscConfig+0x770>)
  26389. 800b5d6: f443 7380 orr.w r3, r3, #256 @ 0x100
  26390. 800b5da: 6013 str r3, [r2, #0]
  26391. /* Wait for Backup domain Write protection disable */
  26392. tickstart = HAL_GetTick();
  26393. 800b5dc: f7f9 ffc4 bl 8005568 <HAL_GetTick>
  26394. 800b5e0: 6278 str r0, [r7, #36] @ 0x24
  26395. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26396. 800b5e2: e008 b.n 800b5f6 <HAL_RCC_OscConfig+0x562>
  26397. {
  26398. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  26399. 800b5e4: f7f9 ffc0 bl 8005568 <HAL_GetTick>
  26400. 800b5e8: 4602 mov r2, r0
  26401. 800b5ea: 6a7b ldr r3, [r7, #36] @ 0x24
  26402. 800b5ec: 1ad3 subs r3, r2, r3
  26403. 800b5ee: 2b64 cmp r3, #100 @ 0x64
  26404. 800b5f0: d901 bls.n 800b5f6 <HAL_RCC_OscConfig+0x562>
  26405. {
  26406. return HAL_TIMEOUT;
  26407. 800b5f2: 2303 movs r3, #3
  26408. 800b5f4: e1a0 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26409. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26410. 800b5f6: 4b83 ldr r3, [pc, #524] @ (800b804 <HAL_RCC_OscConfig+0x770>)
  26411. 800b5f8: 681b ldr r3, [r3, #0]
  26412. 800b5fa: f403 7380 and.w r3, r3, #256 @ 0x100
  26413. 800b5fe: 2b00 cmp r3, #0
  26414. 800b600: d0f0 beq.n 800b5e4 <HAL_RCC_OscConfig+0x550>
  26415. }
  26416. }
  26417. /* Set the new LSE configuration -----------------------------------------*/
  26418. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  26419. 800b602: 687b ldr r3, [r7, #4]
  26420. 800b604: 689b ldr r3, [r3, #8]
  26421. 800b606: 2b01 cmp r3, #1
  26422. 800b608: d106 bne.n 800b618 <HAL_RCC_OscConfig+0x584>
  26423. 800b60a: 4b7d ldr r3, [pc, #500] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26424. 800b60c: 6f1b ldr r3, [r3, #112] @ 0x70
  26425. 800b60e: 4a7c ldr r2, [pc, #496] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26426. 800b610: f043 0301 orr.w r3, r3, #1
  26427. 800b614: 6713 str r3, [r2, #112] @ 0x70
  26428. 800b616: e02d b.n 800b674 <HAL_RCC_OscConfig+0x5e0>
  26429. 800b618: 687b ldr r3, [r7, #4]
  26430. 800b61a: 689b ldr r3, [r3, #8]
  26431. 800b61c: 2b00 cmp r3, #0
  26432. 800b61e: d10c bne.n 800b63a <HAL_RCC_OscConfig+0x5a6>
  26433. 800b620: 4b77 ldr r3, [pc, #476] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26434. 800b622: 6f1b ldr r3, [r3, #112] @ 0x70
  26435. 800b624: 4a76 ldr r2, [pc, #472] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26436. 800b626: f023 0301 bic.w r3, r3, #1
  26437. 800b62a: 6713 str r3, [r2, #112] @ 0x70
  26438. 800b62c: 4b74 ldr r3, [pc, #464] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26439. 800b62e: 6f1b ldr r3, [r3, #112] @ 0x70
  26440. 800b630: 4a73 ldr r2, [pc, #460] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26441. 800b632: f023 0304 bic.w r3, r3, #4
  26442. 800b636: 6713 str r3, [r2, #112] @ 0x70
  26443. 800b638: e01c b.n 800b674 <HAL_RCC_OscConfig+0x5e0>
  26444. 800b63a: 687b ldr r3, [r7, #4]
  26445. 800b63c: 689b ldr r3, [r3, #8]
  26446. 800b63e: 2b05 cmp r3, #5
  26447. 800b640: d10c bne.n 800b65c <HAL_RCC_OscConfig+0x5c8>
  26448. 800b642: 4b6f ldr r3, [pc, #444] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26449. 800b644: 6f1b ldr r3, [r3, #112] @ 0x70
  26450. 800b646: 4a6e ldr r2, [pc, #440] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26451. 800b648: f043 0304 orr.w r3, r3, #4
  26452. 800b64c: 6713 str r3, [r2, #112] @ 0x70
  26453. 800b64e: 4b6c ldr r3, [pc, #432] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26454. 800b650: 6f1b ldr r3, [r3, #112] @ 0x70
  26455. 800b652: 4a6b ldr r2, [pc, #428] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26456. 800b654: f043 0301 orr.w r3, r3, #1
  26457. 800b658: 6713 str r3, [r2, #112] @ 0x70
  26458. 800b65a: e00b b.n 800b674 <HAL_RCC_OscConfig+0x5e0>
  26459. 800b65c: 4b68 ldr r3, [pc, #416] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26460. 800b65e: 6f1b ldr r3, [r3, #112] @ 0x70
  26461. 800b660: 4a67 ldr r2, [pc, #412] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26462. 800b662: f023 0301 bic.w r3, r3, #1
  26463. 800b666: 6713 str r3, [r2, #112] @ 0x70
  26464. 800b668: 4b65 ldr r3, [pc, #404] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26465. 800b66a: 6f1b ldr r3, [r3, #112] @ 0x70
  26466. 800b66c: 4a64 ldr r2, [pc, #400] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26467. 800b66e: f023 0304 bic.w r3, r3, #4
  26468. 800b672: 6713 str r3, [r2, #112] @ 0x70
  26469. /* Check the LSE State */
  26470. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  26471. 800b674: 687b ldr r3, [r7, #4]
  26472. 800b676: 689b ldr r3, [r3, #8]
  26473. 800b678: 2b00 cmp r3, #0
  26474. 800b67a: d015 beq.n 800b6a8 <HAL_RCC_OscConfig+0x614>
  26475. {
  26476. /* Get Start Tick*/
  26477. tickstart = HAL_GetTick();
  26478. 800b67c: f7f9 ff74 bl 8005568 <HAL_GetTick>
  26479. 800b680: 6278 str r0, [r7, #36] @ 0x24
  26480. /* Wait till LSE is ready */
  26481. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26482. 800b682: e00a b.n 800b69a <HAL_RCC_OscConfig+0x606>
  26483. {
  26484. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  26485. 800b684: f7f9 ff70 bl 8005568 <HAL_GetTick>
  26486. 800b688: 4602 mov r2, r0
  26487. 800b68a: 6a7b ldr r3, [r7, #36] @ 0x24
  26488. 800b68c: 1ad3 subs r3, r2, r3
  26489. 800b68e: f241 3288 movw r2, #5000 @ 0x1388
  26490. 800b692: 4293 cmp r3, r2
  26491. 800b694: d901 bls.n 800b69a <HAL_RCC_OscConfig+0x606>
  26492. {
  26493. return HAL_TIMEOUT;
  26494. 800b696: 2303 movs r3, #3
  26495. 800b698: e14e b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26496. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26497. 800b69a: 4b59 ldr r3, [pc, #356] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26498. 800b69c: 6f1b ldr r3, [r3, #112] @ 0x70
  26499. 800b69e: f003 0302 and.w r3, r3, #2
  26500. 800b6a2: 2b00 cmp r3, #0
  26501. 800b6a4: d0ee beq.n 800b684 <HAL_RCC_OscConfig+0x5f0>
  26502. 800b6a6: e014 b.n 800b6d2 <HAL_RCC_OscConfig+0x63e>
  26503. }
  26504. }
  26505. else
  26506. {
  26507. /* Get Start Tick*/
  26508. tickstart = HAL_GetTick();
  26509. 800b6a8: f7f9 ff5e bl 8005568 <HAL_GetTick>
  26510. 800b6ac: 6278 str r0, [r7, #36] @ 0x24
  26511. /* Wait till LSE is disabled */
  26512. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  26513. 800b6ae: e00a b.n 800b6c6 <HAL_RCC_OscConfig+0x632>
  26514. {
  26515. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  26516. 800b6b0: f7f9 ff5a bl 8005568 <HAL_GetTick>
  26517. 800b6b4: 4602 mov r2, r0
  26518. 800b6b6: 6a7b ldr r3, [r7, #36] @ 0x24
  26519. 800b6b8: 1ad3 subs r3, r2, r3
  26520. 800b6ba: f241 3288 movw r2, #5000 @ 0x1388
  26521. 800b6be: 4293 cmp r3, r2
  26522. 800b6c0: d901 bls.n 800b6c6 <HAL_RCC_OscConfig+0x632>
  26523. {
  26524. return HAL_TIMEOUT;
  26525. 800b6c2: 2303 movs r3, #3
  26526. 800b6c4: e138 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26527. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  26528. 800b6c6: 4b4e ldr r3, [pc, #312] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26529. 800b6c8: 6f1b ldr r3, [r3, #112] @ 0x70
  26530. 800b6ca: f003 0302 and.w r3, r3, #2
  26531. 800b6ce: 2b00 cmp r3, #0
  26532. 800b6d0: d1ee bne.n 800b6b0 <HAL_RCC_OscConfig+0x61c>
  26533. }
  26534. }
  26535. /*-------------------------------- PLL Configuration -----------------------*/
  26536. /* Check the parameters */
  26537. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  26538. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  26539. 800b6d2: 687b ldr r3, [r7, #4]
  26540. 800b6d4: 6a5b ldr r3, [r3, #36] @ 0x24
  26541. 800b6d6: 2b00 cmp r3, #0
  26542. 800b6d8: f000 812d beq.w 800b936 <HAL_RCC_OscConfig+0x8a2>
  26543. {
  26544. /* Check if the PLL is used as system clock or not */
  26545. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  26546. 800b6dc: 4b48 ldr r3, [pc, #288] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26547. 800b6de: 691b ldr r3, [r3, #16]
  26548. 800b6e0: f003 0338 and.w r3, r3, #56 @ 0x38
  26549. 800b6e4: 2b18 cmp r3, #24
  26550. 800b6e6: f000 80bd beq.w 800b864 <HAL_RCC_OscConfig+0x7d0>
  26551. {
  26552. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  26553. 800b6ea: 687b ldr r3, [r7, #4]
  26554. 800b6ec: 6a5b ldr r3, [r3, #36] @ 0x24
  26555. 800b6ee: 2b02 cmp r3, #2
  26556. 800b6f0: f040 809e bne.w 800b830 <HAL_RCC_OscConfig+0x79c>
  26557. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  26558. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  26559. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  26560. /* Disable the main PLL. */
  26561. __HAL_RCC_PLL_DISABLE();
  26562. 800b6f4: 4b42 ldr r3, [pc, #264] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26563. 800b6f6: 681b ldr r3, [r3, #0]
  26564. 800b6f8: 4a41 ldr r2, [pc, #260] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26565. 800b6fa: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  26566. 800b6fe: 6013 str r3, [r2, #0]
  26567. /* Get Start Tick*/
  26568. tickstart = HAL_GetTick();
  26569. 800b700: f7f9 ff32 bl 8005568 <HAL_GetTick>
  26570. 800b704: 6278 str r0, [r7, #36] @ 0x24
  26571. /* Wait till PLL is disabled */
  26572. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26573. 800b706: e008 b.n 800b71a <HAL_RCC_OscConfig+0x686>
  26574. {
  26575. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26576. 800b708: f7f9 ff2e bl 8005568 <HAL_GetTick>
  26577. 800b70c: 4602 mov r2, r0
  26578. 800b70e: 6a7b ldr r3, [r7, #36] @ 0x24
  26579. 800b710: 1ad3 subs r3, r2, r3
  26580. 800b712: 2b02 cmp r3, #2
  26581. 800b714: d901 bls.n 800b71a <HAL_RCC_OscConfig+0x686>
  26582. {
  26583. return HAL_TIMEOUT;
  26584. 800b716: 2303 movs r3, #3
  26585. 800b718: e10e b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26586. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26587. 800b71a: 4b39 ldr r3, [pc, #228] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26588. 800b71c: 681b ldr r3, [r3, #0]
  26589. 800b71e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26590. 800b722: 2b00 cmp r3, #0
  26591. 800b724: d1f0 bne.n 800b708 <HAL_RCC_OscConfig+0x674>
  26592. }
  26593. }
  26594. /* Configure the main PLL clock source, multiplication and division factors. */
  26595. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  26596. 800b726: 4b36 ldr r3, [pc, #216] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26597. 800b728: 6a9a ldr r2, [r3, #40] @ 0x28
  26598. 800b72a: 4b37 ldr r3, [pc, #220] @ (800b808 <HAL_RCC_OscConfig+0x774>)
  26599. 800b72c: 4013 ands r3, r2
  26600. 800b72e: 687a ldr r2, [r7, #4]
  26601. 800b730: 6a91 ldr r1, [r2, #40] @ 0x28
  26602. 800b732: 687a ldr r2, [r7, #4]
  26603. 800b734: 6ad2 ldr r2, [r2, #44] @ 0x2c
  26604. 800b736: 0112 lsls r2, r2, #4
  26605. 800b738: 430a orrs r2, r1
  26606. 800b73a: 4931 ldr r1, [pc, #196] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26607. 800b73c: 4313 orrs r3, r2
  26608. 800b73e: 628b str r3, [r1, #40] @ 0x28
  26609. 800b740: 687b ldr r3, [r7, #4]
  26610. 800b742: 6b1b ldr r3, [r3, #48] @ 0x30
  26611. 800b744: 3b01 subs r3, #1
  26612. 800b746: f3c3 0208 ubfx r2, r3, #0, #9
  26613. 800b74a: 687b ldr r3, [r7, #4]
  26614. 800b74c: 6b5b ldr r3, [r3, #52] @ 0x34
  26615. 800b74e: 3b01 subs r3, #1
  26616. 800b750: 025b lsls r3, r3, #9
  26617. 800b752: b29b uxth r3, r3
  26618. 800b754: 431a orrs r2, r3
  26619. 800b756: 687b ldr r3, [r7, #4]
  26620. 800b758: 6b9b ldr r3, [r3, #56] @ 0x38
  26621. 800b75a: 3b01 subs r3, #1
  26622. 800b75c: 041b lsls r3, r3, #16
  26623. 800b75e: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  26624. 800b762: 431a orrs r2, r3
  26625. 800b764: 687b ldr r3, [r7, #4]
  26626. 800b766: 6bdb ldr r3, [r3, #60] @ 0x3c
  26627. 800b768: 3b01 subs r3, #1
  26628. 800b76a: 061b lsls r3, r3, #24
  26629. 800b76c: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  26630. 800b770: 4923 ldr r1, [pc, #140] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26631. 800b772: 4313 orrs r3, r2
  26632. 800b774: 630b str r3, [r1, #48] @ 0x30
  26633. RCC_OscInitStruct->PLL.PLLP,
  26634. RCC_OscInitStruct->PLL.PLLQ,
  26635. RCC_OscInitStruct->PLL.PLLR);
  26636. /* Disable PLLFRACN . */
  26637. __HAL_RCC_PLLFRACN_DISABLE();
  26638. 800b776: 4b22 ldr r3, [pc, #136] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26639. 800b778: 6adb ldr r3, [r3, #44] @ 0x2c
  26640. 800b77a: 4a21 ldr r2, [pc, #132] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26641. 800b77c: f023 0301 bic.w r3, r3, #1
  26642. 800b780: 62d3 str r3, [r2, #44] @ 0x2c
  26643. /* Configure PLL PLL1FRACN */
  26644. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  26645. 800b782: 4b1f ldr r3, [pc, #124] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26646. 800b784: 6b5a ldr r2, [r3, #52] @ 0x34
  26647. 800b786: 4b21 ldr r3, [pc, #132] @ (800b80c <HAL_RCC_OscConfig+0x778>)
  26648. 800b788: 4013 ands r3, r2
  26649. 800b78a: 687a ldr r2, [r7, #4]
  26650. 800b78c: 6c92 ldr r2, [r2, #72] @ 0x48
  26651. 800b78e: 00d2 lsls r2, r2, #3
  26652. 800b790: 491b ldr r1, [pc, #108] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26653. 800b792: 4313 orrs r3, r2
  26654. 800b794: 634b str r3, [r1, #52] @ 0x34
  26655. /* Select PLL1 input reference frequency range: VCI */
  26656. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  26657. 800b796: 4b1a ldr r3, [pc, #104] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26658. 800b798: 6adb ldr r3, [r3, #44] @ 0x2c
  26659. 800b79a: f023 020c bic.w r2, r3, #12
  26660. 800b79e: 687b ldr r3, [r7, #4]
  26661. 800b7a0: 6c1b ldr r3, [r3, #64] @ 0x40
  26662. 800b7a2: 4917 ldr r1, [pc, #92] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26663. 800b7a4: 4313 orrs r3, r2
  26664. 800b7a6: 62cb str r3, [r1, #44] @ 0x2c
  26665. /* Select PLL1 output frequency range : VCO */
  26666. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  26667. 800b7a8: 4b15 ldr r3, [pc, #84] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26668. 800b7aa: 6adb ldr r3, [r3, #44] @ 0x2c
  26669. 800b7ac: f023 0202 bic.w r2, r3, #2
  26670. 800b7b0: 687b ldr r3, [r7, #4]
  26671. 800b7b2: 6c5b ldr r3, [r3, #68] @ 0x44
  26672. 800b7b4: 4912 ldr r1, [pc, #72] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26673. 800b7b6: 4313 orrs r3, r2
  26674. 800b7b8: 62cb str r3, [r1, #44] @ 0x2c
  26675. /* Enable PLL System Clock output. */
  26676. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  26677. 800b7ba: 4b11 ldr r3, [pc, #68] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26678. 800b7bc: 6adb ldr r3, [r3, #44] @ 0x2c
  26679. 800b7be: 4a10 ldr r2, [pc, #64] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26680. 800b7c0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26681. 800b7c4: 62d3 str r3, [r2, #44] @ 0x2c
  26682. /* Enable PLL1Q Clock output. */
  26683. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26684. 800b7c6: 4b0e ldr r3, [pc, #56] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26685. 800b7c8: 6adb ldr r3, [r3, #44] @ 0x2c
  26686. 800b7ca: 4a0d ldr r2, [pc, #52] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26687. 800b7cc: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26688. 800b7d0: 62d3 str r3, [r2, #44] @ 0x2c
  26689. /* Enable PLL1R Clock output. */
  26690. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  26691. 800b7d2: 4b0b ldr r3, [pc, #44] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26692. 800b7d4: 6adb ldr r3, [r3, #44] @ 0x2c
  26693. 800b7d6: 4a0a ldr r2, [pc, #40] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26694. 800b7d8: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26695. 800b7dc: 62d3 str r3, [r2, #44] @ 0x2c
  26696. /* Enable PLL1FRACN . */
  26697. __HAL_RCC_PLLFRACN_ENABLE();
  26698. 800b7de: 4b08 ldr r3, [pc, #32] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26699. 800b7e0: 6adb ldr r3, [r3, #44] @ 0x2c
  26700. 800b7e2: 4a07 ldr r2, [pc, #28] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26701. 800b7e4: f043 0301 orr.w r3, r3, #1
  26702. 800b7e8: 62d3 str r3, [r2, #44] @ 0x2c
  26703. /* Enable the main PLL. */
  26704. __HAL_RCC_PLL_ENABLE();
  26705. 800b7ea: 4b05 ldr r3, [pc, #20] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26706. 800b7ec: 681b ldr r3, [r3, #0]
  26707. 800b7ee: 4a04 ldr r2, [pc, #16] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26708. 800b7f0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  26709. 800b7f4: 6013 str r3, [r2, #0]
  26710. /* Get Start Tick*/
  26711. tickstart = HAL_GetTick();
  26712. 800b7f6: f7f9 feb7 bl 8005568 <HAL_GetTick>
  26713. 800b7fa: 6278 str r0, [r7, #36] @ 0x24
  26714. /* Wait till PLL is ready */
  26715. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  26716. 800b7fc: e011 b.n 800b822 <HAL_RCC_OscConfig+0x78e>
  26717. 800b7fe: bf00 nop
  26718. 800b800: 58024400 .word 0x58024400
  26719. 800b804: 58024800 .word 0x58024800
  26720. 800b808: fffffc0c .word 0xfffffc0c
  26721. 800b80c: ffff0007 .word 0xffff0007
  26722. {
  26723. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26724. 800b810: f7f9 feaa bl 8005568 <HAL_GetTick>
  26725. 800b814: 4602 mov r2, r0
  26726. 800b816: 6a7b ldr r3, [r7, #36] @ 0x24
  26727. 800b818: 1ad3 subs r3, r2, r3
  26728. 800b81a: 2b02 cmp r3, #2
  26729. 800b81c: d901 bls.n 800b822 <HAL_RCC_OscConfig+0x78e>
  26730. {
  26731. return HAL_TIMEOUT;
  26732. 800b81e: 2303 movs r3, #3
  26733. 800b820: e08a b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26734. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  26735. 800b822: 4b47 ldr r3, [pc, #284] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26736. 800b824: 681b ldr r3, [r3, #0]
  26737. 800b826: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26738. 800b82a: 2b00 cmp r3, #0
  26739. 800b82c: d0f0 beq.n 800b810 <HAL_RCC_OscConfig+0x77c>
  26740. 800b82e: e082 b.n 800b936 <HAL_RCC_OscConfig+0x8a2>
  26741. }
  26742. }
  26743. else
  26744. {
  26745. /* Disable the main PLL. */
  26746. __HAL_RCC_PLL_DISABLE();
  26747. 800b830: 4b43 ldr r3, [pc, #268] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26748. 800b832: 681b ldr r3, [r3, #0]
  26749. 800b834: 4a42 ldr r2, [pc, #264] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26750. 800b836: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  26751. 800b83a: 6013 str r3, [r2, #0]
  26752. /* Get Start Tick*/
  26753. tickstart = HAL_GetTick();
  26754. 800b83c: f7f9 fe94 bl 8005568 <HAL_GetTick>
  26755. 800b840: 6278 str r0, [r7, #36] @ 0x24
  26756. /* Wait till PLL is disabled */
  26757. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26758. 800b842: e008 b.n 800b856 <HAL_RCC_OscConfig+0x7c2>
  26759. {
  26760. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26761. 800b844: f7f9 fe90 bl 8005568 <HAL_GetTick>
  26762. 800b848: 4602 mov r2, r0
  26763. 800b84a: 6a7b ldr r3, [r7, #36] @ 0x24
  26764. 800b84c: 1ad3 subs r3, r2, r3
  26765. 800b84e: 2b02 cmp r3, #2
  26766. 800b850: d901 bls.n 800b856 <HAL_RCC_OscConfig+0x7c2>
  26767. {
  26768. return HAL_TIMEOUT;
  26769. 800b852: 2303 movs r3, #3
  26770. 800b854: e070 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26771. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26772. 800b856: 4b3a ldr r3, [pc, #232] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26773. 800b858: 681b ldr r3, [r3, #0]
  26774. 800b85a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26775. 800b85e: 2b00 cmp r3, #0
  26776. 800b860: d1f0 bne.n 800b844 <HAL_RCC_OscConfig+0x7b0>
  26777. 800b862: e068 b.n 800b936 <HAL_RCC_OscConfig+0x8a2>
  26778. }
  26779. }
  26780. else
  26781. {
  26782. /* Do not return HAL_ERROR if request repeats the current configuration */
  26783. temp1_pllckcfg = RCC->PLLCKSELR;
  26784. 800b864: 4b36 ldr r3, [pc, #216] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26785. 800b866: 6a9b ldr r3, [r3, #40] @ 0x28
  26786. 800b868: 613b str r3, [r7, #16]
  26787. temp2_pllckcfg = RCC->PLL1DIVR;
  26788. 800b86a: 4b35 ldr r3, [pc, #212] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26789. 800b86c: 6b1b ldr r3, [r3, #48] @ 0x30
  26790. 800b86e: 60fb str r3, [r7, #12]
  26791. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  26792. 800b870: 687b ldr r3, [r7, #4]
  26793. 800b872: 6a5b ldr r3, [r3, #36] @ 0x24
  26794. 800b874: 2b01 cmp r3, #1
  26795. 800b876: d031 beq.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26796. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  26797. 800b878: 693b ldr r3, [r7, #16]
  26798. 800b87a: f003 0203 and.w r2, r3, #3
  26799. 800b87e: 687b ldr r3, [r7, #4]
  26800. 800b880: 6a9b ldr r3, [r3, #40] @ 0x28
  26801. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  26802. 800b882: 429a cmp r2, r3
  26803. 800b884: d12a bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26804. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  26805. 800b886: 693b ldr r3, [r7, #16]
  26806. 800b888: 091b lsrs r3, r3, #4
  26807. 800b88a: f003 023f and.w r2, r3, #63 @ 0x3f
  26808. 800b88e: 687b ldr r3, [r7, #4]
  26809. 800b890: 6adb ldr r3, [r3, #44] @ 0x2c
  26810. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  26811. 800b892: 429a cmp r2, r3
  26812. 800b894: d122 bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26813. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  26814. 800b896: 68fb ldr r3, [r7, #12]
  26815. 800b898: f3c3 0208 ubfx r2, r3, #0, #9
  26816. 800b89c: 687b ldr r3, [r7, #4]
  26817. 800b89e: 6b1b ldr r3, [r3, #48] @ 0x30
  26818. 800b8a0: 3b01 subs r3, #1
  26819. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  26820. 800b8a2: 429a cmp r2, r3
  26821. 800b8a4: d11a bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26822. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  26823. 800b8a6: 68fb ldr r3, [r7, #12]
  26824. 800b8a8: 0a5b lsrs r3, r3, #9
  26825. 800b8aa: f003 027f and.w r2, r3, #127 @ 0x7f
  26826. 800b8ae: 687b ldr r3, [r7, #4]
  26827. 800b8b0: 6b5b ldr r3, [r3, #52] @ 0x34
  26828. 800b8b2: 3b01 subs r3, #1
  26829. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  26830. 800b8b4: 429a cmp r2, r3
  26831. 800b8b6: d111 bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26832. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  26833. 800b8b8: 68fb ldr r3, [r7, #12]
  26834. 800b8ba: 0c1b lsrs r3, r3, #16
  26835. 800b8bc: f003 027f and.w r2, r3, #127 @ 0x7f
  26836. 800b8c0: 687b ldr r3, [r7, #4]
  26837. 800b8c2: 6b9b ldr r3, [r3, #56] @ 0x38
  26838. 800b8c4: 3b01 subs r3, #1
  26839. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  26840. 800b8c6: 429a cmp r2, r3
  26841. 800b8c8: d108 bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26842. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  26843. 800b8ca: 68fb ldr r3, [r7, #12]
  26844. 800b8cc: 0e1b lsrs r3, r3, #24
  26845. 800b8ce: f003 027f and.w r2, r3, #127 @ 0x7f
  26846. 800b8d2: 687b ldr r3, [r7, #4]
  26847. 800b8d4: 6bdb ldr r3, [r3, #60] @ 0x3c
  26848. 800b8d6: 3b01 subs r3, #1
  26849. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  26850. 800b8d8: 429a cmp r2, r3
  26851. 800b8da: d001 beq.n 800b8e0 <HAL_RCC_OscConfig+0x84c>
  26852. {
  26853. return HAL_ERROR;
  26854. 800b8dc: 2301 movs r3, #1
  26855. 800b8de: e02b b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26856. }
  26857. else
  26858. {
  26859. /* Check if only fractional part needs to be updated */
  26860. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  26861. 800b8e0: 4b17 ldr r3, [pc, #92] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26862. 800b8e2: 6b5b ldr r3, [r3, #52] @ 0x34
  26863. 800b8e4: 08db lsrs r3, r3, #3
  26864. 800b8e6: f3c3 030c ubfx r3, r3, #0, #13
  26865. 800b8ea: 613b str r3, [r7, #16]
  26866. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  26867. 800b8ec: 687b ldr r3, [r7, #4]
  26868. 800b8ee: 6c9b ldr r3, [r3, #72] @ 0x48
  26869. 800b8f0: 693a ldr r2, [r7, #16]
  26870. 800b8f2: 429a cmp r2, r3
  26871. 800b8f4: d01f beq.n 800b936 <HAL_RCC_OscConfig+0x8a2>
  26872. {
  26873. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  26874. /* Disable PLL1FRACEN */
  26875. __HAL_RCC_PLLFRACN_DISABLE();
  26876. 800b8f6: 4b12 ldr r3, [pc, #72] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26877. 800b8f8: 6adb ldr r3, [r3, #44] @ 0x2c
  26878. 800b8fa: 4a11 ldr r2, [pc, #68] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26879. 800b8fc: f023 0301 bic.w r3, r3, #1
  26880. 800b900: 62d3 str r3, [r2, #44] @ 0x2c
  26881. /* Get Start Tick*/
  26882. tickstart = HAL_GetTick();
  26883. 800b902: f7f9 fe31 bl 8005568 <HAL_GetTick>
  26884. 800b906: 6278 str r0, [r7, #36] @ 0x24
  26885. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  26886. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  26887. 800b908: bf00 nop
  26888. 800b90a: f7f9 fe2d bl 8005568 <HAL_GetTick>
  26889. 800b90e: 4602 mov r2, r0
  26890. 800b910: 6a7b ldr r3, [r7, #36] @ 0x24
  26891. 800b912: 4293 cmp r3, r2
  26892. 800b914: d0f9 beq.n 800b90a <HAL_RCC_OscConfig+0x876>
  26893. {
  26894. }
  26895. /* Configure PLL1 PLL1FRACN */
  26896. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  26897. 800b916: 4b0a ldr r3, [pc, #40] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26898. 800b918: 6b5a ldr r2, [r3, #52] @ 0x34
  26899. 800b91a: 4b0a ldr r3, [pc, #40] @ (800b944 <HAL_RCC_OscConfig+0x8b0>)
  26900. 800b91c: 4013 ands r3, r2
  26901. 800b91e: 687a ldr r2, [r7, #4]
  26902. 800b920: 6c92 ldr r2, [r2, #72] @ 0x48
  26903. 800b922: 00d2 lsls r2, r2, #3
  26904. 800b924: 4906 ldr r1, [pc, #24] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26905. 800b926: 4313 orrs r3, r2
  26906. 800b928: 634b str r3, [r1, #52] @ 0x34
  26907. /* Enable PLL1FRACEN to latch new value. */
  26908. __HAL_RCC_PLLFRACN_ENABLE();
  26909. 800b92a: 4b05 ldr r3, [pc, #20] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26910. 800b92c: 6adb ldr r3, [r3, #44] @ 0x2c
  26911. 800b92e: 4a04 ldr r2, [pc, #16] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26912. 800b930: f043 0301 orr.w r3, r3, #1
  26913. 800b934: 62d3 str r3, [r2, #44] @ 0x2c
  26914. }
  26915. }
  26916. }
  26917. }
  26918. return HAL_OK;
  26919. 800b936: 2300 movs r3, #0
  26920. }
  26921. 800b938: 4618 mov r0, r3
  26922. 800b93a: 3730 adds r7, #48 @ 0x30
  26923. 800b93c: 46bd mov sp, r7
  26924. 800b93e: bd80 pop {r7, pc}
  26925. 800b940: 58024400 .word 0x58024400
  26926. 800b944: ffff0007 .word 0xffff0007
  26927. 0800b948 <HAL_RCC_ClockConfig>:
  26928. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  26929. * (for more details refer to section above "Initialization/de-initialization functions")
  26930. * @retval None
  26931. */
  26932. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  26933. {
  26934. 800b948: b580 push {r7, lr}
  26935. 800b94a: b086 sub sp, #24
  26936. 800b94c: af00 add r7, sp, #0
  26937. 800b94e: 6078 str r0, [r7, #4]
  26938. 800b950: 6039 str r1, [r7, #0]
  26939. HAL_StatusTypeDef halstatus;
  26940. uint32_t tickstart;
  26941. uint32_t common_system_clock;
  26942. /* Check Null pointer */
  26943. if (RCC_ClkInitStruct == NULL)
  26944. 800b952: 687b ldr r3, [r7, #4]
  26945. 800b954: 2b00 cmp r3, #0
  26946. 800b956: d101 bne.n 800b95c <HAL_RCC_ClockConfig+0x14>
  26947. {
  26948. return HAL_ERROR;
  26949. 800b958: 2301 movs r3, #1
  26950. 800b95a: e19c b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  26951. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  26952. must be correctly programmed according to the frequency of the CPU clock
  26953. (HCLK) and the supply voltage of the device. */
  26954. /* Increasing the CPU frequency */
  26955. if (FLatency > __HAL_FLASH_GET_LATENCY())
  26956. 800b95c: 4b8a ldr r3, [pc, #552] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26957. 800b95e: 681b ldr r3, [r3, #0]
  26958. 800b960: f003 030f and.w r3, r3, #15
  26959. 800b964: 683a ldr r2, [r7, #0]
  26960. 800b966: 429a cmp r2, r3
  26961. 800b968: d910 bls.n 800b98c <HAL_RCC_ClockConfig+0x44>
  26962. {
  26963. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  26964. __HAL_FLASH_SET_LATENCY(FLatency);
  26965. 800b96a: 4b87 ldr r3, [pc, #540] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26966. 800b96c: 681b ldr r3, [r3, #0]
  26967. 800b96e: f023 020f bic.w r2, r3, #15
  26968. 800b972: 4985 ldr r1, [pc, #532] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26969. 800b974: 683b ldr r3, [r7, #0]
  26970. 800b976: 4313 orrs r3, r2
  26971. 800b978: 600b str r3, [r1, #0]
  26972. /* Check that the new number of wait states is taken into account to access the Flash
  26973. memory by reading the FLASH_ACR register */
  26974. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  26975. 800b97a: 4b83 ldr r3, [pc, #524] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26976. 800b97c: 681b ldr r3, [r3, #0]
  26977. 800b97e: f003 030f and.w r3, r3, #15
  26978. 800b982: 683a ldr r2, [r7, #0]
  26979. 800b984: 429a cmp r2, r3
  26980. 800b986: d001 beq.n 800b98c <HAL_RCC_ClockConfig+0x44>
  26981. {
  26982. return HAL_ERROR;
  26983. 800b988: 2301 movs r3, #1
  26984. 800b98a: e184 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  26985. }
  26986. /* Increasing the BUS frequency divider */
  26987. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  26988. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  26989. 800b98c: 687b ldr r3, [r7, #4]
  26990. 800b98e: 681b ldr r3, [r3, #0]
  26991. 800b990: f003 0304 and.w r3, r3, #4
  26992. 800b994: 2b00 cmp r3, #0
  26993. 800b996: d010 beq.n 800b9ba <HAL_RCC_ClockConfig+0x72>
  26994. {
  26995. #if defined (RCC_D1CFGR_D1PPRE)
  26996. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  26997. 800b998: 687b ldr r3, [r7, #4]
  26998. 800b99a: 691a ldr r2, [r3, #16]
  26999. 800b99c: 4b7b ldr r3, [pc, #492] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27000. 800b99e: 699b ldr r3, [r3, #24]
  27001. 800b9a0: f003 0370 and.w r3, r3, #112 @ 0x70
  27002. 800b9a4: 429a cmp r2, r3
  27003. 800b9a6: d908 bls.n 800b9ba <HAL_RCC_ClockConfig+0x72>
  27004. {
  27005. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  27006. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  27007. 800b9a8: 4b78 ldr r3, [pc, #480] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27008. 800b9aa: 699b ldr r3, [r3, #24]
  27009. 800b9ac: f023 0270 bic.w r2, r3, #112 @ 0x70
  27010. 800b9b0: 687b ldr r3, [r7, #4]
  27011. 800b9b2: 691b ldr r3, [r3, #16]
  27012. 800b9b4: 4975 ldr r1, [pc, #468] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27013. 800b9b6: 4313 orrs r3, r2
  27014. 800b9b8: 618b str r3, [r1, #24]
  27015. }
  27016. #endif
  27017. }
  27018. /*-------------------------- PCLK1 Configuration ---------------------------*/
  27019. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  27020. 800b9ba: 687b ldr r3, [r7, #4]
  27021. 800b9bc: 681b ldr r3, [r3, #0]
  27022. 800b9be: f003 0308 and.w r3, r3, #8
  27023. 800b9c2: 2b00 cmp r3, #0
  27024. 800b9c4: d010 beq.n 800b9e8 <HAL_RCC_ClockConfig+0xa0>
  27025. {
  27026. #if defined (RCC_D2CFGR_D2PPRE1)
  27027. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  27028. 800b9c6: 687b ldr r3, [r7, #4]
  27029. 800b9c8: 695a ldr r2, [r3, #20]
  27030. 800b9ca: 4b70 ldr r3, [pc, #448] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27031. 800b9cc: 69db ldr r3, [r3, #28]
  27032. 800b9ce: f003 0370 and.w r3, r3, #112 @ 0x70
  27033. 800b9d2: 429a cmp r2, r3
  27034. 800b9d4: d908 bls.n 800b9e8 <HAL_RCC_ClockConfig+0xa0>
  27035. {
  27036. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  27037. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27038. 800b9d6: 4b6d ldr r3, [pc, #436] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27039. 800b9d8: 69db ldr r3, [r3, #28]
  27040. 800b9da: f023 0270 bic.w r2, r3, #112 @ 0x70
  27041. 800b9de: 687b ldr r3, [r7, #4]
  27042. 800b9e0: 695b ldr r3, [r3, #20]
  27043. 800b9e2: 496a ldr r1, [pc, #424] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27044. 800b9e4: 4313 orrs r3, r2
  27045. 800b9e6: 61cb str r3, [r1, #28]
  27046. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27047. }
  27048. #endif
  27049. }
  27050. /*-------------------------- PCLK2 Configuration ---------------------------*/
  27051. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  27052. 800b9e8: 687b ldr r3, [r7, #4]
  27053. 800b9ea: 681b ldr r3, [r3, #0]
  27054. 800b9ec: f003 0310 and.w r3, r3, #16
  27055. 800b9f0: 2b00 cmp r3, #0
  27056. 800b9f2: d010 beq.n 800ba16 <HAL_RCC_ClockConfig+0xce>
  27057. {
  27058. #if defined(RCC_D2CFGR_D2PPRE2)
  27059. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  27060. 800b9f4: 687b ldr r3, [r7, #4]
  27061. 800b9f6: 699a ldr r2, [r3, #24]
  27062. 800b9f8: 4b64 ldr r3, [pc, #400] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27063. 800b9fa: 69db ldr r3, [r3, #28]
  27064. 800b9fc: f403 63e0 and.w r3, r3, #1792 @ 0x700
  27065. 800ba00: 429a cmp r2, r3
  27066. 800ba02: d908 bls.n 800ba16 <HAL_RCC_ClockConfig+0xce>
  27067. {
  27068. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  27069. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  27070. 800ba04: 4b61 ldr r3, [pc, #388] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27071. 800ba06: 69db ldr r3, [r3, #28]
  27072. 800ba08: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  27073. 800ba0c: 687b ldr r3, [r7, #4]
  27074. 800ba0e: 699b ldr r3, [r3, #24]
  27075. 800ba10: 495e ldr r1, [pc, #376] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27076. 800ba12: 4313 orrs r3, r2
  27077. 800ba14: 61cb str r3, [r1, #28]
  27078. }
  27079. #endif
  27080. }
  27081. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  27082. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  27083. 800ba16: 687b ldr r3, [r7, #4]
  27084. 800ba18: 681b ldr r3, [r3, #0]
  27085. 800ba1a: f003 0320 and.w r3, r3, #32
  27086. 800ba1e: 2b00 cmp r3, #0
  27087. 800ba20: d010 beq.n 800ba44 <HAL_RCC_ClockConfig+0xfc>
  27088. {
  27089. #if defined(RCC_D3CFGR_D3PPRE)
  27090. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  27091. 800ba22: 687b ldr r3, [r7, #4]
  27092. 800ba24: 69da ldr r2, [r3, #28]
  27093. 800ba26: 4b59 ldr r3, [pc, #356] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27094. 800ba28: 6a1b ldr r3, [r3, #32]
  27095. 800ba2a: f003 0370 and.w r3, r3, #112 @ 0x70
  27096. 800ba2e: 429a cmp r2, r3
  27097. 800ba30: d908 bls.n 800ba44 <HAL_RCC_ClockConfig+0xfc>
  27098. {
  27099. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  27100. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  27101. 800ba32: 4b56 ldr r3, [pc, #344] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27102. 800ba34: 6a1b ldr r3, [r3, #32]
  27103. 800ba36: f023 0270 bic.w r2, r3, #112 @ 0x70
  27104. 800ba3a: 687b ldr r3, [r7, #4]
  27105. 800ba3c: 69db ldr r3, [r3, #28]
  27106. 800ba3e: 4953 ldr r1, [pc, #332] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27107. 800ba40: 4313 orrs r3, r2
  27108. 800ba42: 620b str r3, [r1, #32]
  27109. }
  27110. #endif
  27111. }
  27112. /*-------------------------- HCLK Configuration --------------------------*/
  27113. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  27114. 800ba44: 687b ldr r3, [r7, #4]
  27115. 800ba46: 681b ldr r3, [r3, #0]
  27116. 800ba48: f003 0302 and.w r3, r3, #2
  27117. 800ba4c: 2b00 cmp r3, #0
  27118. 800ba4e: d010 beq.n 800ba72 <HAL_RCC_ClockConfig+0x12a>
  27119. {
  27120. #if defined (RCC_D1CFGR_HPRE)
  27121. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  27122. 800ba50: 687b ldr r3, [r7, #4]
  27123. 800ba52: 68da ldr r2, [r3, #12]
  27124. 800ba54: 4b4d ldr r3, [pc, #308] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27125. 800ba56: 699b ldr r3, [r3, #24]
  27126. 800ba58: f003 030f and.w r3, r3, #15
  27127. 800ba5c: 429a cmp r2, r3
  27128. 800ba5e: d908 bls.n 800ba72 <HAL_RCC_ClockConfig+0x12a>
  27129. {
  27130. /* Set the new HCLK clock divider */
  27131. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  27132. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  27133. 800ba60: 4b4a ldr r3, [pc, #296] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27134. 800ba62: 699b ldr r3, [r3, #24]
  27135. 800ba64: f023 020f bic.w r2, r3, #15
  27136. 800ba68: 687b ldr r3, [r7, #4]
  27137. 800ba6a: 68db ldr r3, [r3, #12]
  27138. 800ba6c: 4947 ldr r1, [pc, #284] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27139. 800ba6e: 4313 orrs r3, r2
  27140. 800ba70: 618b str r3, [r1, #24]
  27141. }
  27142. #endif
  27143. }
  27144. /*------------------------- SYSCLK Configuration -------------------------*/
  27145. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  27146. 800ba72: 687b ldr r3, [r7, #4]
  27147. 800ba74: 681b ldr r3, [r3, #0]
  27148. 800ba76: f003 0301 and.w r3, r3, #1
  27149. 800ba7a: 2b00 cmp r3, #0
  27150. 800ba7c: d055 beq.n 800bb2a <HAL_RCC_ClockConfig+0x1e2>
  27151. {
  27152. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  27153. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  27154. #if defined(RCC_D1CFGR_D1CPRE)
  27155. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  27156. 800ba7e: 4b43 ldr r3, [pc, #268] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27157. 800ba80: 699b ldr r3, [r3, #24]
  27158. 800ba82: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  27159. 800ba86: 687b ldr r3, [r7, #4]
  27160. 800ba88: 689b ldr r3, [r3, #8]
  27161. 800ba8a: 4940 ldr r1, [pc, #256] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27162. 800ba8c: 4313 orrs r3, r2
  27163. 800ba8e: 618b str r3, [r1, #24]
  27164. #else
  27165. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  27166. #endif
  27167. /* HSE is selected as System Clock Source */
  27168. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  27169. 800ba90: 687b ldr r3, [r7, #4]
  27170. 800ba92: 685b ldr r3, [r3, #4]
  27171. 800ba94: 2b02 cmp r3, #2
  27172. 800ba96: d107 bne.n 800baa8 <HAL_RCC_ClockConfig+0x160>
  27173. {
  27174. /* Check the HSE ready flag */
  27175. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  27176. 800ba98: 4b3c ldr r3, [pc, #240] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27177. 800ba9a: 681b ldr r3, [r3, #0]
  27178. 800ba9c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  27179. 800baa0: 2b00 cmp r3, #0
  27180. 800baa2: d121 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27181. {
  27182. return HAL_ERROR;
  27183. 800baa4: 2301 movs r3, #1
  27184. 800baa6: e0f6 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27185. }
  27186. }
  27187. /* PLL is selected as System Clock Source */
  27188. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  27189. 800baa8: 687b ldr r3, [r7, #4]
  27190. 800baaa: 685b ldr r3, [r3, #4]
  27191. 800baac: 2b03 cmp r3, #3
  27192. 800baae: d107 bne.n 800bac0 <HAL_RCC_ClockConfig+0x178>
  27193. {
  27194. /* Check the PLL ready flag */
  27195. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27196. 800bab0: 4b36 ldr r3, [pc, #216] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27197. 800bab2: 681b ldr r3, [r3, #0]
  27198. 800bab4: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27199. 800bab8: 2b00 cmp r3, #0
  27200. 800baba: d115 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27201. {
  27202. return HAL_ERROR;
  27203. 800babc: 2301 movs r3, #1
  27204. 800babe: e0ea b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27205. }
  27206. }
  27207. /* CSI is selected as System Clock Source */
  27208. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  27209. 800bac0: 687b ldr r3, [r7, #4]
  27210. 800bac2: 685b ldr r3, [r3, #4]
  27211. 800bac4: 2b01 cmp r3, #1
  27212. 800bac6: d107 bne.n 800bad8 <HAL_RCC_ClockConfig+0x190>
  27213. {
  27214. /* Check the PLL ready flag */
  27215. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27216. 800bac8: 4b30 ldr r3, [pc, #192] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27217. 800baca: 681b ldr r3, [r3, #0]
  27218. 800bacc: f403 7380 and.w r3, r3, #256 @ 0x100
  27219. 800bad0: 2b00 cmp r3, #0
  27220. 800bad2: d109 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27221. {
  27222. return HAL_ERROR;
  27223. 800bad4: 2301 movs r3, #1
  27224. 800bad6: e0de b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27225. }
  27226. /* HSI is selected as System Clock Source */
  27227. else
  27228. {
  27229. /* Check the HSI ready flag */
  27230. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  27231. 800bad8: 4b2c ldr r3, [pc, #176] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27232. 800bada: 681b ldr r3, [r3, #0]
  27233. 800badc: f003 0304 and.w r3, r3, #4
  27234. 800bae0: 2b00 cmp r3, #0
  27235. 800bae2: d101 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27236. {
  27237. return HAL_ERROR;
  27238. 800bae4: 2301 movs r3, #1
  27239. 800bae6: e0d6 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27240. }
  27241. }
  27242. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  27243. 800bae8: 4b28 ldr r3, [pc, #160] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27244. 800baea: 691b ldr r3, [r3, #16]
  27245. 800baec: f023 0207 bic.w r2, r3, #7
  27246. 800baf0: 687b ldr r3, [r7, #4]
  27247. 800baf2: 685b ldr r3, [r3, #4]
  27248. 800baf4: 4925 ldr r1, [pc, #148] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27249. 800baf6: 4313 orrs r3, r2
  27250. 800baf8: 610b str r3, [r1, #16]
  27251. /* Get Start Tick*/
  27252. tickstart = HAL_GetTick();
  27253. 800bafa: f7f9 fd35 bl 8005568 <HAL_GetTick>
  27254. 800bafe: 6178 str r0, [r7, #20]
  27255. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  27256. 800bb00: e00a b.n 800bb18 <HAL_RCC_ClockConfig+0x1d0>
  27257. {
  27258. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  27259. 800bb02: f7f9 fd31 bl 8005568 <HAL_GetTick>
  27260. 800bb06: 4602 mov r2, r0
  27261. 800bb08: 697b ldr r3, [r7, #20]
  27262. 800bb0a: 1ad3 subs r3, r2, r3
  27263. 800bb0c: f241 3288 movw r2, #5000 @ 0x1388
  27264. 800bb10: 4293 cmp r3, r2
  27265. 800bb12: d901 bls.n 800bb18 <HAL_RCC_ClockConfig+0x1d0>
  27266. {
  27267. return HAL_TIMEOUT;
  27268. 800bb14: 2303 movs r3, #3
  27269. 800bb16: e0be b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27270. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  27271. 800bb18: 4b1c ldr r3, [pc, #112] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27272. 800bb1a: 691b ldr r3, [r3, #16]
  27273. 800bb1c: f003 0238 and.w r2, r3, #56 @ 0x38
  27274. 800bb20: 687b ldr r3, [r7, #4]
  27275. 800bb22: 685b ldr r3, [r3, #4]
  27276. 800bb24: 00db lsls r3, r3, #3
  27277. 800bb26: 429a cmp r2, r3
  27278. 800bb28: d1eb bne.n 800bb02 <HAL_RCC_ClockConfig+0x1ba>
  27279. }
  27280. /* Decreasing the BUS frequency divider */
  27281. /*-------------------------- HCLK Configuration --------------------------*/
  27282. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  27283. 800bb2a: 687b ldr r3, [r7, #4]
  27284. 800bb2c: 681b ldr r3, [r3, #0]
  27285. 800bb2e: f003 0302 and.w r3, r3, #2
  27286. 800bb32: 2b00 cmp r3, #0
  27287. 800bb34: d010 beq.n 800bb58 <HAL_RCC_ClockConfig+0x210>
  27288. {
  27289. #if defined(RCC_D1CFGR_HPRE)
  27290. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  27291. 800bb36: 687b ldr r3, [r7, #4]
  27292. 800bb38: 68da ldr r2, [r3, #12]
  27293. 800bb3a: 4b14 ldr r3, [pc, #80] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27294. 800bb3c: 699b ldr r3, [r3, #24]
  27295. 800bb3e: f003 030f and.w r3, r3, #15
  27296. 800bb42: 429a cmp r2, r3
  27297. 800bb44: d208 bcs.n 800bb58 <HAL_RCC_ClockConfig+0x210>
  27298. {
  27299. /* Set the new HCLK clock divider */
  27300. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  27301. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  27302. 800bb46: 4b11 ldr r3, [pc, #68] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27303. 800bb48: 699b ldr r3, [r3, #24]
  27304. 800bb4a: f023 020f bic.w r2, r3, #15
  27305. 800bb4e: 687b ldr r3, [r7, #4]
  27306. 800bb50: 68db ldr r3, [r3, #12]
  27307. 800bb52: 490e ldr r1, [pc, #56] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27308. 800bb54: 4313 orrs r3, r2
  27309. 800bb56: 618b str r3, [r1, #24]
  27310. }
  27311. #endif
  27312. }
  27313. /* Decreasing the number of wait states because of lower CPU frequency */
  27314. if (FLatency < __HAL_FLASH_GET_LATENCY())
  27315. 800bb58: 4b0b ldr r3, [pc, #44] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27316. 800bb5a: 681b ldr r3, [r3, #0]
  27317. 800bb5c: f003 030f and.w r3, r3, #15
  27318. 800bb60: 683a ldr r2, [r7, #0]
  27319. 800bb62: 429a cmp r2, r3
  27320. 800bb64: d214 bcs.n 800bb90 <HAL_RCC_ClockConfig+0x248>
  27321. {
  27322. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  27323. __HAL_FLASH_SET_LATENCY(FLatency);
  27324. 800bb66: 4b08 ldr r3, [pc, #32] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27325. 800bb68: 681b ldr r3, [r3, #0]
  27326. 800bb6a: f023 020f bic.w r2, r3, #15
  27327. 800bb6e: 4906 ldr r1, [pc, #24] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27328. 800bb70: 683b ldr r3, [r7, #0]
  27329. 800bb72: 4313 orrs r3, r2
  27330. 800bb74: 600b str r3, [r1, #0]
  27331. /* Check that the new number of wait states is taken into account to access the Flash
  27332. memory by reading the FLASH_ACR register */
  27333. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  27334. 800bb76: 4b04 ldr r3, [pc, #16] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27335. 800bb78: 681b ldr r3, [r3, #0]
  27336. 800bb7a: f003 030f and.w r3, r3, #15
  27337. 800bb7e: 683a ldr r2, [r7, #0]
  27338. 800bb80: 429a cmp r2, r3
  27339. 800bb82: d005 beq.n 800bb90 <HAL_RCC_ClockConfig+0x248>
  27340. {
  27341. return HAL_ERROR;
  27342. 800bb84: 2301 movs r3, #1
  27343. 800bb86: e086 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27344. 800bb88: 52002000 .word 0x52002000
  27345. 800bb8c: 58024400 .word 0x58024400
  27346. }
  27347. }
  27348. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  27349. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  27350. 800bb90: 687b ldr r3, [r7, #4]
  27351. 800bb92: 681b ldr r3, [r3, #0]
  27352. 800bb94: f003 0304 and.w r3, r3, #4
  27353. 800bb98: 2b00 cmp r3, #0
  27354. 800bb9a: d010 beq.n 800bbbe <HAL_RCC_ClockConfig+0x276>
  27355. {
  27356. #if defined(RCC_D1CFGR_D1PPRE)
  27357. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  27358. 800bb9c: 687b ldr r3, [r7, #4]
  27359. 800bb9e: 691a ldr r2, [r3, #16]
  27360. 800bba0: 4b3f ldr r3, [pc, #252] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27361. 800bba2: 699b ldr r3, [r3, #24]
  27362. 800bba4: f003 0370 and.w r3, r3, #112 @ 0x70
  27363. 800bba8: 429a cmp r2, r3
  27364. 800bbaa: d208 bcs.n 800bbbe <HAL_RCC_ClockConfig+0x276>
  27365. {
  27366. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  27367. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  27368. 800bbac: 4b3c ldr r3, [pc, #240] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27369. 800bbae: 699b ldr r3, [r3, #24]
  27370. 800bbb0: f023 0270 bic.w r2, r3, #112 @ 0x70
  27371. 800bbb4: 687b ldr r3, [r7, #4]
  27372. 800bbb6: 691b ldr r3, [r3, #16]
  27373. 800bbb8: 4939 ldr r1, [pc, #228] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27374. 800bbba: 4313 orrs r3, r2
  27375. 800bbbc: 618b str r3, [r1, #24]
  27376. }
  27377. #endif
  27378. }
  27379. /*-------------------------- PCLK1 Configuration ---------------------------*/
  27380. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  27381. 800bbbe: 687b ldr r3, [r7, #4]
  27382. 800bbc0: 681b ldr r3, [r3, #0]
  27383. 800bbc2: f003 0308 and.w r3, r3, #8
  27384. 800bbc6: 2b00 cmp r3, #0
  27385. 800bbc8: d010 beq.n 800bbec <HAL_RCC_ClockConfig+0x2a4>
  27386. {
  27387. #if defined(RCC_D2CFGR_D2PPRE1)
  27388. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  27389. 800bbca: 687b ldr r3, [r7, #4]
  27390. 800bbcc: 695a ldr r2, [r3, #20]
  27391. 800bbce: 4b34 ldr r3, [pc, #208] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27392. 800bbd0: 69db ldr r3, [r3, #28]
  27393. 800bbd2: f003 0370 and.w r3, r3, #112 @ 0x70
  27394. 800bbd6: 429a cmp r2, r3
  27395. 800bbd8: d208 bcs.n 800bbec <HAL_RCC_ClockConfig+0x2a4>
  27396. {
  27397. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  27398. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27399. 800bbda: 4b31 ldr r3, [pc, #196] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27400. 800bbdc: 69db ldr r3, [r3, #28]
  27401. 800bbde: f023 0270 bic.w r2, r3, #112 @ 0x70
  27402. 800bbe2: 687b ldr r3, [r7, #4]
  27403. 800bbe4: 695b ldr r3, [r3, #20]
  27404. 800bbe6: 492e ldr r1, [pc, #184] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27405. 800bbe8: 4313 orrs r3, r2
  27406. 800bbea: 61cb str r3, [r1, #28]
  27407. }
  27408. #endif
  27409. }
  27410. /*-------------------------- PCLK2 Configuration ---------------------------*/
  27411. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  27412. 800bbec: 687b ldr r3, [r7, #4]
  27413. 800bbee: 681b ldr r3, [r3, #0]
  27414. 800bbf0: f003 0310 and.w r3, r3, #16
  27415. 800bbf4: 2b00 cmp r3, #0
  27416. 800bbf6: d010 beq.n 800bc1a <HAL_RCC_ClockConfig+0x2d2>
  27417. {
  27418. #if defined (RCC_D2CFGR_D2PPRE2)
  27419. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  27420. 800bbf8: 687b ldr r3, [r7, #4]
  27421. 800bbfa: 699a ldr r2, [r3, #24]
  27422. 800bbfc: 4b28 ldr r3, [pc, #160] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27423. 800bbfe: 69db ldr r3, [r3, #28]
  27424. 800bc00: f403 63e0 and.w r3, r3, #1792 @ 0x700
  27425. 800bc04: 429a cmp r2, r3
  27426. 800bc06: d208 bcs.n 800bc1a <HAL_RCC_ClockConfig+0x2d2>
  27427. {
  27428. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  27429. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  27430. 800bc08: 4b25 ldr r3, [pc, #148] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27431. 800bc0a: 69db ldr r3, [r3, #28]
  27432. 800bc0c: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  27433. 800bc10: 687b ldr r3, [r7, #4]
  27434. 800bc12: 699b ldr r3, [r3, #24]
  27435. 800bc14: 4922 ldr r1, [pc, #136] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27436. 800bc16: 4313 orrs r3, r2
  27437. 800bc18: 61cb str r3, [r1, #28]
  27438. }
  27439. #endif
  27440. }
  27441. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  27442. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  27443. 800bc1a: 687b ldr r3, [r7, #4]
  27444. 800bc1c: 681b ldr r3, [r3, #0]
  27445. 800bc1e: f003 0320 and.w r3, r3, #32
  27446. 800bc22: 2b00 cmp r3, #0
  27447. 800bc24: d010 beq.n 800bc48 <HAL_RCC_ClockConfig+0x300>
  27448. {
  27449. #if defined(RCC_D3CFGR_D3PPRE)
  27450. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  27451. 800bc26: 687b ldr r3, [r7, #4]
  27452. 800bc28: 69da ldr r2, [r3, #28]
  27453. 800bc2a: 4b1d ldr r3, [pc, #116] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27454. 800bc2c: 6a1b ldr r3, [r3, #32]
  27455. 800bc2e: f003 0370 and.w r3, r3, #112 @ 0x70
  27456. 800bc32: 429a cmp r2, r3
  27457. 800bc34: d208 bcs.n 800bc48 <HAL_RCC_ClockConfig+0x300>
  27458. {
  27459. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  27460. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  27461. 800bc36: 4b1a ldr r3, [pc, #104] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27462. 800bc38: 6a1b ldr r3, [r3, #32]
  27463. 800bc3a: f023 0270 bic.w r2, r3, #112 @ 0x70
  27464. 800bc3e: 687b ldr r3, [r7, #4]
  27465. 800bc40: 69db ldr r3, [r3, #28]
  27466. 800bc42: 4917 ldr r1, [pc, #92] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27467. 800bc44: 4313 orrs r3, r2
  27468. 800bc46: 620b str r3, [r1, #32]
  27469. #endif
  27470. }
  27471. /* Update the SystemCoreClock global variable */
  27472. #if defined(RCC_D1CFGR_D1CPRE)
  27473. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  27474. 800bc48: f000 f834 bl 800bcb4 <HAL_RCC_GetSysClockFreq>
  27475. 800bc4c: 4602 mov r2, r0
  27476. 800bc4e: 4b14 ldr r3, [pc, #80] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27477. 800bc50: 699b ldr r3, [r3, #24]
  27478. 800bc52: 0a1b lsrs r3, r3, #8
  27479. 800bc54: f003 030f and.w r3, r3, #15
  27480. 800bc58: 4912 ldr r1, [pc, #72] @ (800bca4 <HAL_RCC_ClockConfig+0x35c>)
  27481. 800bc5a: 5ccb ldrb r3, [r1, r3]
  27482. 800bc5c: f003 031f and.w r3, r3, #31
  27483. 800bc60: fa22 f303 lsr.w r3, r2, r3
  27484. 800bc64: 613b str r3, [r7, #16]
  27485. #else
  27486. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  27487. #endif
  27488. #if defined(RCC_D1CFGR_HPRE)
  27489. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  27490. 800bc66: 4b0e ldr r3, [pc, #56] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27491. 800bc68: 699b ldr r3, [r3, #24]
  27492. 800bc6a: f003 030f and.w r3, r3, #15
  27493. 800bc6e: 4a0d ldr r2, [pc, #52] @ (800bca4 <HAL_RCC_ClockConfig+0x35c>)
  27494. 800bc70: 5cd3 ldrb r3, [r2, r3]
  27495. 800bc72: f003 031f and.w r3, r3, #31
  27496. 800bc76: 693a ldr r2, [r7, #16]
  27497. 800bc78: fa22 f303 lsr.w r3, r2, r3
  27498. 800bc7c: 4a0a ldr r2, [pc, #40] @ (800bca8 <HAL_RCC_ClockConfig+0x360>)
  27499. 800bc7e: 6013 str r3, [r2, #0]
  27500. #endif
  27501. #if defined(DUAL_CORE) && defined(CORE_CM4)
  27502. SystemCoreClock = SystemD2Clock;
  27503. #else
  27504. SystemCoreClock = common_system_clock;
  27505. 800bc80: 4a0a ldr r2, [pc, #40] @ (800bcac <HAL_RCC_ClockConfig+0x364>)
  27506. 800bc82: 693b ldr r3, [r7, #16]
  27507. 800bc84: 6013 str r3, [r2, #0]
  27508. #endif /* DUAL_CORE && CORE_CM4 */
  27509. /* Configure the source of time base considering new system clocks settings*/
  27510. halstatus = HAL_InitTick(uwTickPrio);
  27511. 800bc86: 4b0a ldr r3, [pc, #40] @ (800bcb0 <HAL_RCC_ClockConfig+0x368>)
  27512. 800bc88: 681b ldr r3, [r3, #0]
  27513. 800bc8a: 4618 mov r0, r3
  27514. 800bc8c: f7f8 f928 bl 8003ee0 <HAL_InitTick>
  27515. 800bc90: 4603 mov r3, r0
  27516. 800bc92: 73fb strb r3, [r7, #15]
  27517. return halstatus;
  27518. 800bc94: 7bfb ldrb r3, [r7, #15]
  27519. }
  27520. 800bc96: 4618 mov r0, r3
  27521. 800bc98: 3718 adds r7, #24
  27522. 800bc9a: 46bd mov sp, r7
  27523. 800bc9c: bd80 pop {r7, pc}
  27524. 800bc9e: bf00 nop
  27525. 800bca0: 58024400 .word 0x58024400
  27526. 800bca4: 08018c18 .word 0x08018c18
  27527. 800bca8: 24000038 .word 0x24000038
  27528. 800bcac: 24000034 .word 0x24000034
  27529. 800bcb0: 2400003c .word 0x2400003c
  27530. 0800bcb4 <HAL_RCC_GetSysClockFreq>:
  27531. *
  27532. *
  27533. * @retval SYSCLK frequency
  27534. */
  27535. uint32_t HAL_RCC_GetSysClockFreq(void)
  27536. {
  27537. 800bcb4: b480 push {r7}
  27538. 800bcb6: b089 sub sp, #36 @ 0x24
  27539. 800bcb8: af00 add r7, sp, #0
  27540. float_t fracn1, pllvco;
  27541. uint32_t sysclockfreq;
  27542. /* Get SYSCLK source -------------------------------------------------------*/
  27543. switch (RCC->CFGR & RCC_CFGR_SWS)
  27544. 800bcba: 4bb3 ldr r3, [pc, #716] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27545. 800bcbc: 691b ldr r3, [r3, #16]
  27546. 800bcbe: f003 0338 and.w r3, r3, #56 @ 0x38
  27547. 800bcc2: 2b18 cmp r3, #24
  27548. 800bcc4: f200 8155 bhi.w 800bf72 <HAL_RCC_GetSysClockFreq+0x2be>
  27549. 800bcc8: a201 add r2, pc, #4 @ (adr r2, 800bcd0 <HAL_RCC_GetSysClockFreq+0x1c>)
  27550. 800bcca: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  27551. 800bcce: bf00 nop
  27552. 800bcd0: 0800bd35 .word 0x0800bd35
  27553. 800bcd4: 0800bf73 .word 0x0800bf73
  27554. 800bcd8: 0800bf73 .word 0x0800bf73
  27555. 800bcdc: 0800bf73 .word 0x0800bf73
  27556. 800bce0: 0800bf73 .word 0x0800bf73
  27557. 800bce4: 0800bf73 .word 0x0800bf73
  27558. 800bce8: 0800bf73 .word 0x0800bf73
  27559. 800bcec: 0800bf73 .word 0x0800bf73
  27560. 800bcf0: 0800bd5b .word 0x0800bd5b
  27561. 800bcf4: 0800bf73 .word 0x0800bf73
  27562. 800bcf8: 0800bf73 .word 0x0800bf73
  27563. 800bcfc: 0800bf73 .word 0x0800bf73
  27564. 800bd00: 0800bf73 .word 0x0800bf73
  27565. 800bd04: 0800bf73 .word 0x0800bf73
  27566. 800bd08: 0800bf73 .word 0x0800bf73
  27567. 800bd0c: 0800bf73 .word 0x0800bf73
  27568. 800bd10: 0800bd61 .word 0x0800bd61
  27569. 800bd14: 0800bf73 .word 0x0800bf73
  27570. 800bd18: 0800bf73 .word 0x0800bf73
  27571. 800bd1c: 0800bf73 .word 0x0800bf73
  27572. 800bd20: 0800bf73 .word 0x0800bf73
  27573. 800bd24: 0800bf73 .word 0x0800bf73
  27574. 800bd28: 0800bf73 .word 0x0800bf73
  27575. 800bd2c: 0800bf73 .word 0x0800bf73
  27576. 800bd30: 0800bd67 .word 0x0800bd67
  27577. {
  27578. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  27579. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27580. 800bd34: 4b94 ldr r3, [pc, #592] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27581. 800bd36: 681b ldr r3, [r3, #0]
  27582. 800bd38: f003 0320 and.w r3, r3, #32
  27583. 800bd3c: 2b00 cmp r3, #0
  27584. 800bd3e: d009 beq.n 800bd54 <HAL_RCC_GetSysClockFreq+0xa0>
  27585. {
  27586. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27587. 800bd40: 4b91 ldr r3, [pc, #580] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27588. 800bd42: 681b ldr r3, [r3, #0]
  27589. 800bd44: 08db lsrs r3, r3, #3
  27590. 800bd46: f003 0303 and.w r3, r3, #3
  27591. 800bd4a: 4a90 ldr r2, [pc, #576] @ (800bf8c <HAL_RCC_GetSysClockFreq+0x2d8>)
  27592. 800bd4c: fa22 f303 lsr.w r3, r2, r3
  27593. 800bd50: 61bb str r3, [r7, #24]
  27594. else
  27595. {
  27596. sysclockfreq = (uint32_t) HSI_VALUE;
  27597. }
  27598. break;
  27599. 800bd52: e111 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27600. sysclockfreq = (uint32_t) HSI_VALUE;
  27601. 800bd54: 4b8d ldr r3, [pc, #564] @ (800bf8c <HAL_RCC_GetSysClockFreq+0x2d8>)
  27602. 800bd56: 61bb str r3, [r7, #24]
  27603. break;
  27604. 800bd58: e10e b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27605. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  27606. sysclockfreq = CSI_VALUE;
  27607. 800bd5a: 4b8d ldr r3, [pc, #564] @ (800bf90 <HAL_RCC_GetSysClockFreq+0x2dc>)
  27608. 800bd5c: 61bb str r3, [r7, #24]
  27609. break;
  27610. 800bd5e: e10b b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27611. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  27612. sysclockfreq = HSE_VALUE;
  27613. 800bd60: 4b8c ldr r3, [pc, #560] @ (800bf94 <HAL_RCC_GetSysClockFreq+0x2e0>)
  27614. 800bd62: 61bb str r3, [r7, #24]
  27615. break;
  27616. 800bd64: e108 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27617. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  27618. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  27619. SYSCLK = PLL_VCO / PLLR
  27620. */
  27621. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  27622. 800bd66: 4b88 ldr r3, [pc, #544] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27623. 800bd68: 6a9b ldr r3, [r3, #40] @ 0x28
  27624. 800bd6a: f003 0303 and.w r3, r3, #3
  27625. 800bd6e: 617b str r3, [r7, #20]
  27626. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  27627. 800bd70: 4b85 ldr r3, [pc, #532] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27628. 800bd72: 6a9b ldr r3, [r3, #40] @ 0x28
  27629. 800bd74: 091b lsrs r3, r3, #4
  27630. 800bd76: f003 033f and.w r3, r3, #63 @ 0x3f
  27631. 800bd7a: 613b str r3, [r7, #16]
  27632. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  27633. 800bd7c: 4b82 ldr r3, [pc, #520] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27634. 800bd7e: 6adb ldr r3, [r3, #44] @ 0x2c
  27635. 800bd80: f003 0301 and.w r3, r3, #1
  27636. 800bd84: 60fb str r3, [r7, #12]
  27637. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  27638. 800bd86: 4b80 ldr r3, [pc, #512] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27639. 800bd88: 6b5b ldr r3, [r3, #52] @ 0x34
  27640. 800bd8a: 08db lsrs r3, r3, #3
  27641. 800bd8c: f3c3 030c ubfx r3, r3, #0, #13
  27642. 800bd90: 68fa ldr r2, [r7, #12]
  27643. 800bd92: fb02 f303 mul.w r3, r2, r3
  27644. 800bd96: ee07 3a90 vmov s15, r3
  27645. 800bd9a: eef8 7a67 vcvt.f32.u32 s15, s15
  27646. 800bd9e: edc7 7a02 vstr s15, [r7, #8]
  27647. if (pllm != 0U)
  27648. 800bda2: 693b ldr r3, [r7, #16]
  27649. 800bda4: 2b00 cmp r3, #0
  27650. 800bda6: f000 80e1 beq.w 800bf6c <HAL_RCC_GetSysClockFreq+0x2b8>
  27651. 800bdaa: 697b ldr r3, [r7, #20]
  27652. 800bdac: 2b02 cmp r3, #2
  27653. 800bdae: f000 8083 beq.w 800beb8 <HAL_RCC_GetSysClockFreq+0x204>
  27654. 800bdb2: 697b ldr r3, [r7, #20]
  27655. 800bdb4: 2b02 cmp r3, #2
  27656. 800bdb6: f200 80a1 bhi.w 800befc <HAL_RCC_GetSysClockFreq+0x248>
  27657. 800bdba: 697b ldr r3, [r7, #20]
  27658. 800bdbc: 2b00 cmp r3, #0
  27659. 800bdbe: d003 beq.n 800bdc8 <HAL_RCC_GetSysClockFreq+0x114>
  27660. 800bdc0: 697b ldr r3, [r7, #20]
  27661. 800bdc2: 2b01 cmp r3, #1
  27662. 800bdc4: d056 beq.n 800be74 <HAL_RCC_GetSysClockFreq+0x1c0>
  27663. 800bdc6: e099 b.n 800befc <HAL_RCC_GetSysClockFreq+0x248>
  27664. {
  27665. switch (pllsource)
  27666. {
  27667. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  27668. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27669. 800bdc8: 4b6f ldr r3, [pc, #444] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27670. 800bdca: 681b ldr r3, [r3, #0]
  27671. 800bdcc: f003 0320 and.w r3, r3, #32
  27672. 800bdd0: 2b00 cmp r3, #0
  27673. 800bdd2: d02d beq.n 800be30 <HAL_RCC_GetSysClockFreq+0x17c>
  27674. {
  27675. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27676. 800bdd4: 4b6c ldr r3, [pc, #432] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27677. 800bdd6: 681b ldr r3, [r3, #0]
  27678. 800bdd8: 08db lsrs r3, r3, #3
  27679. 800bdda: f003 0303 and.w r3, r3, #3
  27680. 800bdde: 4a6b ldr r2, [pc, #428] @ (800bf8c <HAL_RCC_GetSysClockFreq+0x2d8>)
  27681. 800bde0: fa22 f303 lsr.w r3, r2, r3
  27682. 800bde4: 607b str r3, [r7, #4]
  27683. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27684. 800bde6: 687b ldr r3, [r7, #4]
  27685. 800bde8: ee07 3a90 vmov s15, r3
  27686. 800bdec: eef8 6a67 vcvt.f32.u32 s13, s15
  27687. 800bdf0: 693b ldr r3, [r7, #16]
  27688. 800bdf2: ee07 3a90 vmov s15, r3
  27689. 800bdf6: eef8 7a67 vcvt.f32.u32 s15, s15
  27690. 800bdfa: ee86 7aa7 vdiv.f32 s14, s13, s15
  27691. 800bdfe: 4b62 ldr r3, [pc, #392] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27692. 800be00: 6b1b ldr r3, [r3, #48] @ 0x30
  27693. 800be02: f3c3 0308 ubfx r3, r3, #0, #9
  27694. 800be06: ee07 3a90 vmov s15, r3
  27695. 800be0a: eef8 6a67 vcvt.f32.u32 s13, s15
  27696. 800be0e: ed97 6a02 vldr s12, [r7, #8]
  27697. 800be12: eddf 5a61 vldr s11, [pc, #388] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27698. 800be16: eec6 7a25 vdiv.f32 s15, s12, s11
  27699. 800be1a: ee76 7aa7 vadd.f32 s15, s13, s15
  27700. 800be1e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27701. 800be22: ee77 7aa6 vadd.f32 s15, s15, s13
  27702. 800be26: ee67 7a27 vmul.f32 s15, s14, s15
  27703. 800be2a: edc7 7a07 vstr s15, [r7, #28]
  27704. }
  27705. else
  27706. {
  27707. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27708. }
  27709. break;
  27710. 800be2e: e087 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27711. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27712. 800be30: 693b ldr r3, [r7, #16]
  27713. 800be32: ee07 3a90 vmov s15, r3
  27714. 800be36: eef8 7a67 vcvt.f32.u32 s15, s15
  27715. 800be3a: eddf 6a58 vldr s13, [pc, #352] @ 800bf9c <HAL_RCC_GetSysClockFreq+0x2e8>
  27716. 800be3e: ee86 7aa7 vdiv.f32 s14, s13, s15
  27717. 800be42: 4b51 ldr r3, [pc, #324] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27718. 800be44: 6b1b ldr r3, [r3, #48] @ 0x30
  27719. 800be46: f3c3 0308 ubfx r3, r3, #0, #9
  27720. 800be4a: ee07 3a90 vmov s15, r3
  27721. 800be4e: eef8 6a67 vcvt.f32.u32 s13, s15
  27722. 800be52: ed97 6a02 vldr s12, [r7, #8]
  27723. 800be56: eddf 5a50 vldr s11, [pc, #320] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27724. 800be5a: eec6 7a25 vdiv.f32 s15, s12, s11
  27725. 800be5e: ee76 7aa7 vadd.f32 s15, s13, s15
  27726. 800be62: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27727. 800be66: ee77 7aa6 vadd.f32 s15, s15, s13
  27728. 800be6a: ee67 7a27 vmul.f32 s15, s14, s15
  27729. 800be6e: edc7 7a07 vstr s15, [r7, #28]
  27730. break;
  27731. 800be72: e065 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27732. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  27733. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27734. 800be74: 693b ldr r3, [r7, #16]
  27735. 800be76: ee07 3a90 vmov s15, r3
  27736. 800be7a: eef8 7a67 vcvt.f32.u32 s15, s15
  27737. 800be7e: eddf 6a48 vldr s13, [pc, #288] @ 800bfa0 <HAL_RCC_GetSysClockFreq+0x2ec>
  27738. 800be82: ee86 7aa7 vdiv.f32 s14, s13, s15
  27739. 800be86: 4b40 ldr r3, [pc, #256] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27740. 800be88: 6b1b ldr r3, [r3, #48] @ 0x30
  27741. 800be8a: f3c3 0308 ubfx r3, r3, #0, #9
  27742. 800be8e: ee07 3a90 vmov s15, r3
  27743. 800be92: eef8 6a67 vcvt.f32.u32 s13, s15
  27744. 800be96: ed97 6a02 vldr s12, [r7, #8]
  27745. 800be9a: eddf 5a3f vldr s11, [pc, #252] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27746. 800be9e: eec6 7a25 vdiv.f32 s15, s12, s11
  27747. 800bea2: ee76 7aa7 vadd.f32 s15, s13, s15
  27748. 800bea6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27749. 800beaa: ee77 7aa6 vadd.f32 s15, s15, s13
  27750. 800beae: ee67 7a27 vmul.f32 s15, s14, s15
  27751. 800beb2: edc7 7a07 vstr s15, [r7, #28]
  27752. break;
  27753. 800beb6: e043 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27754. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  27755. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27756. 800beb8: 693b ldr r3, [r7, #16]
  27757. 800beba: ee07 3a90 vmov s15, r3
  27758. 800bebe: eef8 7a67 vcvt.f32.u32 s15, s15
  27759. 800bec2: eddf 6a38 vldr s13, [pc, #224] @ 800bfa4 <HAL_RCC_GetSysClockFreq+0x2f0>
  27760. 800bec6: ee86 7aa7 vdiv.f32 s14, s13, s15
  27761. 800beca: 4b2f ldr r3, [pc, #188] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27762. 800becc: 6b1b ldr r3, [r3, #48] @ 0x30
  27763. 800bece: f3c3 0308 ubfx r3, r3, #0, #9
  27764. 800bed2: ee07 3a90 vmov s15, r3
  27765. 800bed6: eef8 6a67 vcvt.f32.u32 s13, s15
  27766. 800beda: ed97 6a02 vldr s12, [r7, #8]
  27767. 800bede: eddf 5a2e vldr s11, [pc, #184] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27768. 800bee2: eec6 7a25 vdiv.f32 s15, s12, s11
  27769. 800bee6: ee76 7aa7 vadd.f32 s15, s13, s15
  27770. 800beea: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27771. 800beee: ee77 7aa6 vadd.f32 s15, s15, s13
  27772. 800bef2: ee67 7a27 vmul.f32 s15, s14, s15
  27773. 800bef6: edc7 7a07 vstr s15, [r7, #28]
  27774. break;
  27775. 800befa: e021 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27776. default:
  27777. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27778. 800befc: 693b ldr r3, [r7, #16]
  27779. 800befe: ee07 3a90 vmov s15, r3
  27780. 800bf02: eef8 7a67 vcvt.f32.u32 s15, s15
  27781. 800bf06: eddf 6a26 vldr s13, [pc, #152] @ 800bfa0 <HAL_RCC_GetSysClockFreq+0x2ec>
  27782. 800bf0a: ee86 7aa7 vdiv.f32 s14, s13, s15
  27783. 800bf0e: 4b1e ldr r3, [pc, #120] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27784. 800bf10: 6b1b ldr r3, [r3, #48] @ 0x30
  27785. 800bf12: f3c3 0308 ubfx r3, r3, #0, #9
  27786. 800bf16: ee07 3a90 vmov s15, r3
  27787. 800bf1a: eef8 6a67 vcvt.f32.u32 s13, s15
  27788. 800bf1e: ed97 6a02 vldr s12, [r7, #8]
  27789. 800bf22: eddf 5a1d vldr s11, [pc, #116] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27790. 800bf26: eec6 7a25 vdiv.f32 s15, s12, s11
  27791. 800bf2a: ee76 7aa7 vadd.f32 s15, s13, s15
  27792. 800bf2e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27793. 800bf32: ee77 7aa6 vadd.f32 s15, s15, s13
  27794. 800bf36: ee67 7a27 vmul.f32 s15, s14, s15
  27795. 800bf3a: edc7 7a07 vstr s15, [r7, #28]
  27796. break;
  27797. 800bf3e: bf00 nop
  27798. }
  27799. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  27800. 800bf40: 4b11 ldr r3, [pc, #68] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27801. 800bf42: 6b1b ldr r3, [r3, #48] @ 0x30
  27802. 800bf44: 0a5b lsrs r3, r3, #9
  27803. 800bf46: f003 037f and.w r3, r3, #127 @ 0x7f
  27804. 800bf4a: 3301 adds r3, #1
  27805. 800bf4c: 603b str r3, [r7, #0]
  27806. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  27807. 800bf4e: 683b ldr r3, [r7, #0]
  27808. 800bf50: ee07 3a90 vmov s15, r3
  27809. 800bf54: eeb8 7a67 vcvt.f32.u32 s14, s15
  27810. 800bf58: edd7 6a07 vldr s13, [r7, #28]
  27811. 800bf5c: eec6 7a87 vdiv.f32 s15, s13, s14
  27812. 800bf60: eefc 7ae7 vcvt.u32.f32 s15, s15
  27813. 800bf64: ee17 3a90 vmov r3, s15
  27814. 800bf68: 61bb str r3, [r7, #24]
  27815. }
  27816. else
  27817. {
  27818. sysclockfreq = 0U;
  27819. }
  27820. break;
  27821. 800bf6a: e005 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27822. sysclockfreq = 0U;
  27823. 800bf6c: 2300 movs r3, #0
  27824. 800bf6e: 61bb str r3, [r7, #24]
  27825. break;
  27826. 800bf70: e002 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27827. default:
  27828. sysclockfreq = CSI_VALUE;
  27829. 800bf72: 4b07 ldr r3, [pc, #28] @ (800bf90 <HAL_RCC_GetSysClockFreq+0x2dc>)
  27830. 800bf74: 61bb str r3, [r7, #24]
  27831. break;
  27832. 800bf76: bf00 nop
  27833. }
  27834. return sysclockfreq;
  27835. 800bf78: 69bb ldr r3, [r7, #24]
  27836. }
  27837. 800bf7a: 4618 mov r0, r3
  27838. 800bf7c: 3724 adds r7, #36 @ 0x24
  27839. 800bf7e: 46bd mov sp, r7
  27840. 800bf80: f85d 7b04 ldr.w r7, [sp], #4
  27841. 800bf84: 4770 bx lr
  27842. 800bf86: bf00 nop
  27843. 800bf88: 58024400 .word 0x58024400
  27844. 800bf8c: 03d09000 .word 0x03d09000
  27845. 800bf90: 003d0900 .word 0x003d0900
  27846. 800bf94: 017d7840 .word 0x017d7840
  27847. 800bf98: 46000000 .word 0x46000000
  27848. 800bf9c: 4c742400 .word 0x4c742400
  27849. 800bfa0: 4a742400 .word 0x4a742400
  27850. 800bfa4: 4bbebc20 .word 0x4bbebc20
  27851. 0800bfa8 <HAL_RCC_GetHCLKFreq>:
  27852. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  27853. * and updated within this function
  27854. * @retval HCLK frequency
  27855. */
  27856. uint32_t HAL_RCC_GetHCLKFreq(void)
  27857. {
  27858. 800bfa8: b580 push {r7, lr}
  27859. 800bfaa: b082 sub sp, #8
  27860. 800bfac: af00 add r7, sp, #0
  27861. uint32_t common_system_clock;
  27862. #if defined(RCC_D1CFGR_D1CPRE)
  27863. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  27864. 800bfae: f7ff fe81 bl 800bcb4 <HAL_RCC_GetSysClockFreq>
  27865. 800bfb2: 4602 mov r2, r0
  27866. 800bfb4: 4b10 ldr r3, [pc, #64] @ (800bff8 <HAL_RCC_GetHCLKFreq+0x50>)
  27867. 800bfb6: 699b ldr r3, [r3, #24]
  27868. 800bfb8: 0a1b lsrs r3, r3, #8
  27869. 800bfba: f003 030f and.w r3, r3, #15
  27870. 800bfbe: 490f ldr r1, [pc, #60] @ (800bffc <HAL_RCC_GetHCLKFreq+0x54>)
  27871. 800bfc0: 5ccb ldrb r3, [r1, r3]
  27872. 800bfc2: f003 031f and.w r3, r3, #31
  27873. 800bfc6: fa22 f303 lsr.w r3, r2, r3
  27874. 800bfca: 607b str r3, [r7, #4]
  27875. #else
  27876. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  27877. #endif
  27878. #if defined(RCC_D1CFGR_HPRE)
  27879. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  27880. 800bfcc: 4b0a ldr r3, [pc, #40] @ (800bff8 <HAL_RCC_GetHCLKFreq+0x50>)
  27881. 800bfce: 699b ldr r3, [r3, #24]
  27882. 800bfd0: f003 030f and.w r3, r3, #15
  27883. 800bfd4: 4a09 ldr r2, [pc, #36] @ (800bffc <HAL_RCC_GetHCLKFreq+0x54>)
  27884. 800bfd6: 5cd3 ldrb r3, [r2, r3]
  27885. 800bfd8: f003 031f and.w r3, r3, #31
  27886. 800bfdc: 687a ldr r2, [r7, #4]
  27887. 800bfde: fa22 f303 lsr.w r3, r2, r3
  27888. 800bfe2: 4a07 ldr r2, [pc, #28] @ (800c000 <HAL_RCC_GetHCLKFreq+0x58>)
  27889. 800bfe4: 6013 str r3, [r2, #0]
  27890. #endif
  27891. #if defined(DUAL_CORE) && defined(CORE_CM4)
  27892. SystemCoreClock = SystemD2Clock;
  27893. #else
  27894. SystemCoreClock = common_system_clock;
  27895. 800bfe6: 4a07 ldr r2, [pc, #28] @ (800c004 <HAL_RCC_GetHCLKFreq+0x5c>)
  27896. 800bfe8: 687b ldr r3, [r7, #4]
  27897. 800bfea: 6013 str r3, [r2, #0]
  27898. #endif /* DUAL_CORE && CORE_CM4 */
  27899. return SystemD2Clock;
  27900. 800bfec: 4b04 ldr r3, [pc, #16] @ (800c000 <HAL_RCC_GetHCLKFreq+0x58>)
  27901. 800bfee: 681b ldr r3, [r3, #0]
  27902. }
  27903. 800bff0: 4618 mov r0, r3
  27904. 800bff2: 3708 adds r7, #8
  27905. 800bff4: 46bd mov sp, r7
  27906. 800bff6: bd80 pop {r7, pc}
  27907. 800bff8: 58024400 .word 0x58024400
  27908. 800bffc: 08018c18 .word 0x08018c18
  27909. 800c000: 24000038 .word 0x24000038
  27910. 800c004: 24000034 .word 0x24000034
  27911. 0800c008 <HAL_RCC_GetPCLK1Freq>:
  27912. * @note Each time PCLK1 changes, this function must be called to update the
  27913. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  27914. * @retval PCLK1 frequency
  27915. */
  27916. uint32_t HAL_RCC_GetPCLK1Freq(void)
  27917. {
  27918. 800c008: b580 push {r7, lr}
  27919. 800c00a: af00 add r7, sp, #0
  27920. #if defined (RCC_D2CFGR_D2PPRE1)
  27921. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27922. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  27923. 800c00c: f7ff ffcc bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  27924. 800c010: 4602 mov r2, r0
  27925. 800c012: 4b06 ldr r3, [pc, #24] @ (800c02c <HAL_RCC_GetPCLK1Freq+0x24>)
  27926. 800c014: 69db ldr r3, [r3, #28]
  27927. 800c016: 091b lsrs r3, r3, #4
  27928. 800c018: f003 0307 and.w r3, r3, #7
  27929. 800c01c: 4904 ldr r1, [pc, #16] @ (800c030 <HAL_RCC_GetPCLK1Freq+0x28>)
  27930. 800c01e: 5ccb ldrb r3, [r1, r3]
  27931. 800c020: f003 031f and.w r3, r3, #31
  27932. 800c024: fa22 f303 lsr.w r3, r2, r3
  27933. #else
  27934. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27935. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  27936. #endif
  27937. }
  27938. 800c028: 4618 mov r0, r3
  27939. 800c02a: bd80 pop {r7, pc}
  27940. 800c02c: 58024400 .word 0x58024400
  27941. 800c030: 08018c18 .word 0x08018c18
  27942. 0800c034 <HAL_RCC_GetPCLK2Freq>:
  27943. * @note Each time PCLK2 changes, this function must be called to update the
  27944. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  27945. * @retval PCLK1 frequency
  27946. */
  27947. uint32_t HAL_RCC_GetPCLK2Freq(void)
  27948. {
  27949. 800c034: b580 push {r7, lr}
  27950. 800c036: af00 add r7, sp, #0
  27951. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27952. #if defined(RCC_D2CFGR_D2PPRE2)
  27953. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  27954. 800c038: f7ff ffb6 bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  27955. 800c03c: 4602 mov r2, r0
  27956. 800c03e: 4b06 ldr r3, [pc, #24] @ (800c058 <HAL_RCC_GetPCLK2Freq+0x24>)
  27957. 800c040: 69db ldr r3, [r3, #28]
  27958. 800c042: 0a1b lsrs r3, r3, #8
  27959. 800c044: f003 0307 and.w r3, r3, #7
  27960. 800c048: 4904 ldr r1, [pc, #16] @ (800c05c <HAL_RCC_GetPCLK2Freq+0x28>)
  27961. 800c04a: 5ccb ldrb r3, [r1, r3]
  27962. 800c04c: f003 031f and.w r3, r3, #31
  27963. 800c050: fa22 f303 lsr.w r3, r2, r3
  27964. #else
  27965. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  27966. #endif
  27967. }
  27968. 800c054: 4618 mov r0, r3
  27969. 800c056: bd80 pop {r7, pc}
  27970. 800c058: 58024400 .word 0x58024400
  27971. 800c05c: 08018c18 .word 0x08018c18
  27972. 0800c060 <HAL_RCC_GetClockConfig>:
  27973. * will be configured.
  27974. * @param pFLatency: Pointer on the Flash Latency.
  27975. * @retval None
  27976. */
  27977. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  27978. {
  27979. 800c060: b480 push {r7}
  27980. 800c062: b083 sub sp, #12
  27981. 800c064: af00 add r7, sp, #0
  27982. 800c066: 6078 str r0, [r7, #4]
  27983. 800c068: 6039 str r1, [r7, #0]
  27984. /* Set all possible values for the Clock type parameter --------------------*/
  27985. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  27986. 800c06a: 687b ldr r3, [r7, #4]
  27987. 800c06c: 223f movs r2, #63 @ 0x3f
  27988. 800c06e: 601a str r2, [r3, #0]
  27989. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  27990. /* Get the SYSCLK configuration --------------------------------------------*/
  27991. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  27992. 800c070: 4b1a ldr r3, [pc, #104] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  27993. 800c072: 691b ldr r3, [r3, #16]
  27994. 800c074: f003 0207 and.w r2, r3, #7
  27995. 800c078: 687b ldr r3, [r7, #4]
  27996. 800c07a: 605a str r2, [r3, #4]
  27997. #if defined(RCC_D1CFGR_D1CPRE)
  27998. /* Get the SYSCLK configuration ----------------------------------------------*/
  27999. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  28000. 800c07c: 4b17 ldr r3, [pc, #92] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28001. 800c07e: 699b ldr r3, [r3, #24]
  28002. 800c080: f403 6270 and.w r2, r3, #3840 @ 0xf00
  28003. 800c084: 687b ldr r3, [r7, #4]
  28004. 800c086: 609a str r2, [r3, #8]
  28005. /* Get the D1HCLK configuration ----------------------------------------------*/
  28006. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  28007. 800c088: 4b14 ldr r3, [pc, #80] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28008. 800c08a: 699b ldr r3, [r3, #24]
  28009. 800c08c: f003 020f and.w r2, r3, #15
  28010. 800c090: 687b ldr r3, [r7, #4]
  28011. 800c092: 60da str r2, [r3, #12]
  28012. /* Get the APB3 configuration ----------------------------------------------*/
  28013. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  28014. 800c094: 4b11 ldr r3, [pc, #68] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28015. 800c096: 699b ldr r3, [r3, #24]
  28016. 800c098: f003 0270 and.w r2, r3, #112 @ 0x70
  28017. 800c09c: 687b ldr r3, [r7, #4]
  28018. 800c09e: 611a str r2, [r3, #16]
  28019. /* Get the APB1 configuration ----------------------------------------------*/
  28020. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  28021. 800c0a0: 4b0e ldr r3, [pc, #56] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28022. 800c0a2: 69db ldr r3, [r3, #28]
  28023. 800c0a4: f003 0270 and.w r2, r3, #112 @ 0x70
  28024. 800c0a8: 687b ldr r3, [r7, #4]
  28025. 800c0aa: 615a str r2, [r3, #20]
  28026. /* Get the APB2 configuration ----------------------------------------------*/
  28027. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  28028. 800c0ac: 4b0b ldr r3, [pc, #44] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28029. 800c0ae: 69db ldr r3, [r3, #28]
  28030. 800c0b0: f403 62e0 and.w r2, r3, #1792 @ 0x700
  28031. 800c0b4: 687b ldr r3, [r7, #4]
  28032. 800c0b6: 619a str r2, [r3, #24]
  28033. /* Get the APB4 configuration ----------------------------------------------*/
  28034. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  28035. 800c0b8: 4b08 ldr r3, [pc, #32] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28036. 800c0ba: 6a1b ldr r3, [r3, #32]
  28037. 800c0bc: f003 0270 and.w r2, r3, #112 @ 0x70
  28038. 800c0c0: 687b ldr r3, [r7, #4]
  28039. 800c0c2: 61da str r2, [r3, #28]
  28040. /* Get the APB4 configuration ----------------------------------------------*/
  28041. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  28042. #endif
  28043. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  28044. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  28045. 800c0c4: 4b06 ldr r3, [pc, #24] @ (800c0e0 <HAL_RCC_GetClockConfig+0x80>)
  28046. 800c0c6: 681b ldr r3, [r3, #0]
  28047. 800c0c8: f003 020f and.w r2, r3, #15
  28048. 800c0cc: 683b ldr r3, [r7, #0]
  28049. 800c0ce: 601a str r2, [r3, #0]
  28050. }
  28051. 800c0d0: bf00 nop
  28052. 800c0d2: 370c adds r7, #12
  28053. 800c0d4: 46bd mov sp, r7
  28054. 800c0d6: f85d 7b04 ldr.w r7, [sp], #4
  28055. 800c0da: 4770 bx lr
  28056. 800c0dc: 58024400 .word 0x58024400
  28057. 800c0e0: 52002000 .word 0x52002000
  28058. 0800c0e4 <HAL_RCCEx_PeriphCLKConfig>:
  28059. * (*) : Available on some STM32H7 lines only.
  28060. *
  28061. * @retval HAL status
  28062. */
  28063. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  28064. {
  28065. 800c0e4: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  28066. 800c0e8: b0c8 sub sp, #288 @ 0x120
  28067. 800c0ea: af00 add r7, sp, #0
  28068. 800c0ec: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  28069. uint32_t tmpreg;
  28070. uint32_t tickstart;
  28071. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  28072. 800c0f0: 2300 movs r3, #0
  28073. 800c0f2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28074. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  28075. 800c0f6: 2300 movs r3, #0
  28076. 800c0f8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28077. /*---------------------------- SPDIFRX configuration -------------------------------*/
  28078. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  28079. 800c0fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28080. 800c100: e9d3 2300 ldrd r2, r3, [r3]
  28081. 800c104: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  28082. 800c108: 2500 movs r5, #0
  28083. 800c10a: ea54 0305 orrs.w r3, r4, r5
  28084. 800c10e: d049 beq.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  28085. {
  28086. switch (PeriphClkInit->SpdifrxClockSelection)
  28087. 800c110: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28088. 800c114: 6e9b ldr r3, [r3, #104] @ 0x68
  28089. 800c116: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  28090. 800c11a: d02f beq.n 800c17c <HAL_RCCEx_PeriphCLKConfig+0x98>
  28091. 800c11c: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  28092. 800c120: d828 bhi.n 800c174 <HAL_RCCEx_PeriphCLKConfig+0x90>
  28093. 800c122: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28094. 800c126: d01a beq.n 800c15e <HAL_RCCEx_PeriphCLKConfig+0x7a>
  28095. 800c128: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28096. 800c12c: d822 bhi.n 800c174 <HAL_RCCEx_PeriphCLKConfig+0x90>
  28097. 800c12e: 2b00 cmp r3, #0
  28098. 800c130: d003 beq.n 800c13a <HAL_RCCEx_PeriphCLKConfig+0x56>
  28099. 800c132: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  28100. 800c136: d007 beq.n 800c148 <HAL_RCCEx_PeriphCLKConfig+0x64>
  28101. 800c138: e01c b.n 800c174 <HAL_RCCEx_PeriphCLKConfig+0x90>
  28102. {
  28103. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  28104. /* Enable PLL1Q Clock output generated form System PLL . */
  28105. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28106. 800c13a: 4bb8 ldr r3, [pc, #736] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28107. 800c13c: 6adb ldr r3, [r3, #44] @ 0x2c
  28108. 800c13e: 4ab7 ldr r2, [pc, #732] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28109. 800c140: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28110. 800c144: 62d3 str r3, [r2, #44] @ 0x2c
  28111. /* SPDIFRX clock source configuration done later after clock selection check */
  28112. break;
  28113. 800c146: e01a b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28114. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  28115. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28116. 800c148: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28117. 800c14c: 3308 adds r3, #8
  28118. 800c14e: 2102 movs r1, #2
  28119. 800c150: 4618 mov r0, r3
  28120. 800c152: f002 fb45 bl 800e7e0 <RCCEx_PLL2_Config>
  28121. 800c156: 4603 mov r3, r0
  28122. 800c158: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28123. /* SPDIFRX clock source configuration done later after clock selection check */
  28124. break;
  28125. 800c15c: e00f b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28126. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  28127. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  28128. 800c15e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28129. 800c162: 3328 adds r3, #40 @ 0x28
  28130. 800c164: 2102 movs r1, #2
  28131. 800c166: 4618 mov r0, r3
  28132. 800c168: f002 fbec bl 800e944 <RCCEx_PLL3_Config>
  28133. 800c16c: 4603 mov r3, r0
  28134. 800c16e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28135. /* SPDIFRX clock source configuration done later after clock selection check */
  28136. break;
  28137. 800c172: e004 b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28138. /* Internal OSC clock is used as source of SPDIFRX clock*/
  28139. /* SPDIFRX clock source configuration done later after clock selection check */
  28140. break;
  28141. default:
  28142. ret = HAL_ERROR;
  28143. 800c174: 2301 movs r3, #1
  28144. 800c176: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28145. break;
  28146. 800c17a: e000 b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28147. break;
  28148. 800c17c: bf00 nop
  28149. }
  28150. if (ret == HAL_OK)
  28151. 800c17e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28152. 800c182: 2b00 cmp r3, #0
  28153. 800c184: d10a bne.n 800c19c <HAL_RCCEx_PeriphCLKConfig+0xb8>
  28154. {
  28155. /* Set the source of SPDIFRX clock*/
  28156. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  28157. 800c186: 4ba5 ldr r3, [pc, #660] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28158. 800c188: 6d1b ldr r3, [r3, #80] @ 0x50
  28159. 800c18a: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  28160. 800c18e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28161. 800c192: 6e9b ldr r3, [r3, #104] @ 0x68
  28162. 800c194: 4aa1 ldr r2, [pc, #644] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28163. 800c196: 430b orrs r3, r1
  28164. 800c198: 6513 str r3, [r2, #80] @ 0x50
  28165. 800c19a: e003 b.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  28166. }
  28167. else
  28168. {
  28169. /* set overall return value */
  28170. status = ret;
  28171. 800c19c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28172. 800c1a0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28173. }
  28174. }
  28175. /*---------------------------- SAI1 configuration -------------------------------*/
  28176. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  28177. 800c1a4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28178. 800c1a8: e9d3 2300 ldrd r2, r3, [r3]
  28179. 800c1ac: f402 7880 and.w r8, r2, #256 @ 0x100
  28180. 800c1b0: f04f 0900 mov.w r9, #0
  28181. 800c1b4: ea58 0309 orrs.w r3, r8, r9
  28182. 800c1b8: d047 beq.n 800c24a <HAL_RCCEx_PeriphCLKConfig+0x166>
  28183. {
  28184. switch (PeriphClkInit->Sai1ClockSelection)
  28185. 800c1ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28186. 800c1be: 6d9b ldr r3, [r3, #88] @ 0x58
  28187. 800c1c0: 2b04 cmp r3, #4
  28188. 800c1c2: d82a bhi.n 800c21a <HAL_RCCEx_PeriphCLKConfig+0x136>
  28189. 800c1c4: a201 add r2, pc, #4 @ (adr r2, 800c1cc <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  28190. 800c1c6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28191. 800c1ca: bf00 nop
  28192. 800c1cc: 0800c1e1 .word 0x0800c1e1
  28193. 800c1d0: 0800c1ef .word 0x0800c1ef
  28194. 800c1d4: 0800c205 .word 0x0800c205
  28195. 800c1d8: 0800c223 .word 0x0800c223
  28196. 800c1dc: 0800c223 .word 0x0800c223
  28197. {
  28198. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  28199. /* Enable SAI Clock output generated form System PLL . */
  28200. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28201. 800c1e0: 4b8e ldr r3, [pc, #568] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28202. 800c1e2: 6adb ldr r3, [r3, #44] @ 0x2c
  28203. 800c1e4: 4a8d ldr r2, [pc, #564] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28204. 800c1e6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28205. 800c1ea: 62d3 str r3, [r2, #44] @ 0x2c
  28206. /* SAI1 clock source configuration done later after clock selection check */
  28207. break;
  28208. 800c1ec: e01a b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28209. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  28210. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28211. 800c1ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28212. 800c1f2: 3308 adds r3, #8
  28213. 800c1f4: 2100 movs r1, #0
  28214. 800c1f6: 4618 mov r0, r3
  28215. 800c1f8: f002 faf2 bl 800e7e0 <RCCEx_PLL2_Config>
  28216. 800c1fc: 4603 mov r3, r0
  28217. 800c1fe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28218. /* SAI1 clock source configuration done later after clock selection check */
  28219. break;
  28220. 800c202: e00f b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28221. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  28222. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28223. 800c204: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28224. 800c208: 3328 adds r3, #40 @ 0x28
  28225. 800c20a: 2100 movs r1, #0
  28226. 800c20c: 4618 mov r0, r3
  28227. 800c20e: f002 fb99 bl 800e944 <RCCEx_PLL3_Config>
  28228. 800c212: 4603 mov r3, r0
  28229. 800c214: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28230. /* SAI1 clock source configuration done later after clock selection check */
  28231. break;
  28232. 800c218: e004 b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28233. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  28234. /* SAI1 clock source configuration done later after clock selection check */
  28235. break;
  28236. default:
  28237. ret = HAL_ERROR;
  28238. 800c21a: 2301 movs r3, #1
  28239. 800c21c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28240. break;
  28241. 800c220: e000 b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28242. break;
  28243. 800c222: bf00 nop
  28244. }
  28245. if (ret == HAL_OK)
  28246. 800c224: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28247. 800c228: 2b00 cmp r3, #0
  28248. 800c22a: d10a bne.n 800c242 <HAL_RCCEx_PeriphCLKConfig+0x15e>
  28249. {
  28250. /* Set the source of SAI1 clock*/
  28251. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  28252. 800c22c: 4b7b ldr r3, [pc, #492] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28253. 800c22e: 6d1b ldr r3, [r3, #80] @ 0x50
  28254. 800c230: f023 0107 bic.w r1, r3, #7
  28255. 800c234: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28256. 800c238: 6d9b ldr r3, [r3, #88] @ 0x58
  28257. 800c23a: 4a78 ldr r2, [pc, #480] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28258. 800c23c: 430b orrs r3, r1
  28259. 800c23e: 6513 str r3, [r2, #80] @ 0x50
  28260. 800c240: e003 b.n 800c24a <HAL_RCCEx_PeriphCLKConfig+0x166>
  28261. }
  28262. else
  28263. {
  28264. /* set overall return value */
  28265. status = ret;
  28266. 800c242: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28267. 800c246: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28268. }
  28269. }
  28270. #if defined(SAI3)
  28271. /*---------------------------- SAI2/3 configuration -------------------------------*/
  28272. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  28273. 800c24a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28274. 800c24e: e9d3 2300 ldrd r2, r3, [r3]
  28275. 800c252: f402 7a00 and.w sl, r2, #512 @ 0x200
  28276. 800c256: f04f 0b00 mov.w fp, #0
  28277. 800c25a: ea5a 030b orrs.w r3, sl, fp
  28278. 800c25e: d04c beq.n 800c2fa <HAL_RCCEx_PeriphCLKConfig+0x216>
  28279. {
  28280. switch (PeriphClkInit->Sai23ClockSelection)
  28281. 800c260: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28282. 800c264: 6ddb ldr r3, [r3, #92] @ 0x5c
  28283. 800c266: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28284. 800c26a: d030 beq.n 800c2ce <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  28285. 800c26c: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28286. 800c270: d829 bhi.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28287. 800c272: 2bc0 cmp r3, #192 @ 0xc0
  28288. 800c274: d02d beq.n 800c2d2 <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  28289. 800c276: 2bc0 cmp r3, #192 @ 0xc0
  28290. 800c278: d825 bhi.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28291. 800c27a: 2b80 cmp r3, #128 @ 0x80
  28292. 800c27c: d018 beq.n 800c2b0 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  28293. 800c27e: 2b80 cmp r3, #128 @ 0x80
  28294. 800c280: d821 bhi.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28295. 800c282: 2b00 cmp r3, #0
  28296. 800c284: d002 beq.n 800c28c <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  28297. 800c286: 2b40 cmp r3, #64 @ 0x40
  28298. 800c288: d007 beq.n 800c29a <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  28299. 800c28a: e01c b.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28300. {
  28301. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  28302. /* Enable SAI Clock output generated form System PLL . */
  28303. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28304. 800c28c: 4b63 ldr r3, [pc, #396] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28305. 800c28e: 6adb ldr r3, [r3, #44] @ 0x2c
  28306. 800c290: 4a62 ldr r2, [pc, #392] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28307. 800c292: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28308. 800c296: 62d3 str r3, [r2, #44] @ 0x2c
  28309. /* SAI2/3 clock source configuration done later after clock selection check */
  28310. break;
  28311. 800c298: e01c b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28312. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  28313. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28314. 800c29a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28315. 800c29e: 3308 adds r3, #8
  28316. 800c2a0: 2100 movs r1, #0
  28317. 800c2a2: 4618 mov r0, r3
  28318. 800c2a4: f002 fa9c bl 800e7e0 <RCCEx_PLL2_Config>
  28319. 800c2a8: 4603 mov r3, r0
  28320. 800c2aa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28321. /* SAI2/3 clock source configuration done later after clock selection check */
  28322. break;
  28323. 800c2ae: e011 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28324. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  28325. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28326. 800c2b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28327. 800c2b4: 3328 adds r3, #40 @ 0x28
  28328. 800c2b6: 2100 movs r1, #0
  28329. 800c2b8: 4618 mov r0, r3
  28330. 800c2ba: f002 fb43 bl 800e944 <RCCEx_PLL3_Config>
  28331. 800c2be: 4603 mov r3, r0
  28332. 800c2c0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28333. /* SAI2/3 clock source configuration done later after clock selection check */
  28334. break;
  28335. 800c2c4: e006 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28336. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  28337. /* SAI2/3 clock source configuration done later after clock selection check */
  28338. break;
  28339. default:
  28340. ret = HAL_ERROR;
  28341. 800c2c6: 2301 movs r3, #1
  28342. 800c2c8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28343. break;
  28344. 800c2cc: e002 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28345. break;
  28346. 800c2ce: bf00 nop
  28347. 800c2d0: e000 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28348. break;
  28349. 800c2d2: bf00 nop
  28350. }
  28351. if (ret == HAL_OK)
  28352. 800c2d4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28353. 800c2d8: 2b00 cmp r3, #0
  28354. 800c2da: d10a bne.n 800c2f2 <HAL_RCCEx_PeriphCLKConfig+0x20e>
  28355. {
  28356. /* Set the source of SAI2/3 clock*/
  28357. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  28358. 800c2dc: 4b4f ldr r3, [pc, #316] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28359. 800c2de: 6d1b ldr r3, [r3, #80] @ 0x50
  28360. 800c2e0: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  28361. 800c2e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28362. 800c2e8: 6ddb ldr r3, [r3, #92] @ 0x5c
  28363. 800c2ea: 4a4c ldr r2, [pc, #304] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28364. 800c2ec: 430b orrs r3, r1
  28365. 800c2ee: 6513 str r3, [r2, #80] @ 0x50
  28366. 800c2f0: e003 b.n 800c2fa <HAL_RCCEx_PeriphCLKConfig+0x216>
  28367. }
  28368. else
  28369. {
  28370. /* set overall return value */
  28371. status = ret;
  28372. 800c2f2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28373. 800c2f6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28374. }
  28375. #endif /*SAI2B*/
  28376. #if defined(SAI4)
  28377. /*---------------------------- SAI4A configuration -------------------------------*/
  28378. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  28379. 800c2fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28380. 800c2fe: e9d3 2300 ldrd r2, r3, [r3]
  28381. 800c302: f402 6380 and.w r3, r2, #1024 @ 0x400
  28382. 800c306: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  28383. 800c30a: 2300 movs r3, #0
  28384. 800c30c: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  28385. 800c310: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  28386. 800c314: 460b mov r3, r1
  28387. 800c316: 4313 orrs r3, r2
  28388. 800c318: d053 beq.n 800c3c2 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  28389. {
  28390. switch (PeriphClkInit->Sai4AClockSelection)
  28391. 800c31a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28392. 800c31e: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  28393. 800c322: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  28394. 800c326: d035 beq.n 800c394 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  28395. 800c328: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  28396. 800c32c: d82e bhi.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28397. 800c32e: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  28398. 800c332: d031 beq.n 800c398 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  28399. 800c334: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  28400. 800c338: d828 bhi.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28401. 800c33a: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  28402. 800c33e: d01a beq.n 800c376 <HAL_RCCEx_PeriphCLKConfig+0x292>
  28403. 800c340: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  28404. 800c344: d822 bhi.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28405. 800c346: 2b00 cmp r3, #0
  28406. 800c348: d003 beq.n 800c352 <HAL_RCCEx_PeriphCLKConfig+0x26e>
  28407. 800c34a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28408. 800c34e: d007 beq.n 800c360 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  28409. 800c350: e01c b.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28410. {
  28411. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  28412. /* Enable SAI Clock output generated form System PLL . */
  28413. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28414. 800c352: 4b32 ldr r3, [pc, #200] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28415. 800c354: 6adb ldr r3, [r3, #44] @ 0x2c
  28416. 800c356: 4a31 ldr r2, [pc, #196] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28417. 800c358: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28418. 800c35c: 62d3 str r3, [r2, #44] @ 0x2c
  28419. /* SAI1 clock source configuration done later after clock selection check */
  28420. break;
  28421. 800c35e: e01c b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28422. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  28423. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28424. 800c360: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28425. 800c364: 3308 adds r3, #8
  28426. 800c366: 2100 movs r1, #0
  28427. 800c368: 4618 mov r0, r3
  28428. 800c36a: f002 fa39 bl 800e7e0 <RCCEx_PLL2_Config>
  28429. 800c36e: 4603 mov r3, r0
  28430. 800c370: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28431. /* SAI2 clock source configuration done later after clock selection check */
  28432. break;
  28433. 800c374: e011 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28434. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  28435. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28436. 800c376: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28437. 800c37a: 3328 adds r3, #40 @ 0x28
  28438. 800c37c: 2100 movs r1, #0
  28439. 800c37e: 4618 mov r0, r3
  28440. 800c380: f002 fae0 bl 800e944 <RCCEx_PLL3_Config>
  28441. 800c384: 4603 mov r3, r0
  28442. 800c386: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28443. /* SAI1 clock source configuration done later after clock selection check */
  28444. break;
  28445. 800c38a: e006 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28446. /* SAI4A clock source configuration done later after clock selection check */
  28447. break;
  28448. #endif /* RCC_VER_3_0 */
  28449. default:
  28450. ret = HAL_ERROR;
  28451. 800c38c: 2301 movs r3, #1
  28452. 800c38e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28453. break;
  28454. 800c392: e002 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28455. break;
  28456. 800c394: bf00 nop
  28457. 800c396: e000 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28458. break;
  28459. 800c398: bf00 nop
  28460. }
  28461. if (ret == HAL_OK)
  28462. 800c39a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28463. 800c39e: 2b00 cmp r3, #0
  28464. 800c3a0: d10b bne.n 800c3ba <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  28465. {
  28466. /* Set the source of SAI4A clock*/
  28467. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  28468. 800c3a2: 4b1e ldr r3, [pc, #120] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28469. 800c3a4: 6d9b ldr r3, [r3, #88] @ 0x58
  28470. 800c3a6: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  28471. 800c3aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28472. 800c3ae: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  28473. 800c3b2: 4a1a ldr r2, [pc, #104] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28474. 800c3b4: 430b orrs r3, r1
  28475. 800c3b6: 6593 str r3, [r2, #88] @ 0x58
  28476. 800c3b8: e003 b.n 800c3c2 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  28477. }
  28478. else
  28479. {
  28480. /* set overall return value */
  28481. status = ret;
  28482. 800c3ba: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28483. 800c3be: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28484. }
  28485. }
  28486. /*---------------------------- SAI4B configuration -------------------------------*/
  28487. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  28488. 800c3c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28489. 800c3c6: e9d3 2300 ldrd r2, r3, [r3]
  28490. 800c3ca: f402 6300 and.w r3, r2, #2048 @ 0x800
  28491. 800c3ce: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  28492. 800c3d2: 2300 movs r3, #0
  28493. 800c3d4: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  28494. 800c3d8: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  28495. 800c3dc: 460b mov r3, r1
  28496. 800c3de: 4313 orrs r3, r2
  28497. 800c3e0: d056 beq.n 800c490 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  28498. {
  28499. switch (PeriphClkInit->Sai4BClockSelection)
  28500. 800c3e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28501. 800c3e6: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  28502. 800c3ea: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  28503. 800c3ee: d038 beq.n 800c462 <HAL_RCCEx_PeriphCLKConfig+0x37e>
  28504. 800c3f0: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  28505. 800c3f4: d831 bhi.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28506. 800c3f6: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  28507. 800c3fa: d034 beq.n 800c466 <HAL_RCCEx_PeriphCLKConfig+0x382>
  28508. 800c3fc: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  28509. 800c400: d82b bhi.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28510. 800c402: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  28511. 800c406: d01d beq.n 800c444 <HAL_RCCEx_PeriphCLKConfig+0x360>
  28512. 800c408: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  28513. 800c40c: d825 bhi.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28514. 800c40e: 2b00 cmp r3, #0
  28515. 800c410: d006 beq.n 800c420 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  28516. 800c412: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  28517. 800c416: d00a beq.n 800c42e <HAL_RCCEx_PeriphCLKConfig+0x34a>
  28518. 800c418: e01f b.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28519. 800c41a: bf00 nop
  28520. 800c41c: 58024400 .word 0x58024400
  28521. {
  28522. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  28523. /* Enable SAI Clock output generated form System PLL . */
  28524. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28525. 800c420: 4ba2 ldr r3, [pc, #648] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28526. 800c422: 6adb ldr r3, [r3, #44] @ 0x2c
  28527. 800c424: 4aa1 ldr r2, [pc, #644] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28528. 800c426: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28529. 800c42a: 62d3 str r3, [r2, #44] @ 0x2c
  28530. /* SAI1 clock source configuration done later after clock selection check */
  28531. break;
  28532. 800c42c: e01c b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28533. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  28534. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28535. 800c42e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28536. 800c432: 3308 adds r3, #8
  28537. 800c434: 2100 movs r1, #0
  28538. 800c436: 4618 mov r0, r3
  28539. 800c438: f002 f9d2 bl 800e7e0 <RCCEx_PLL2_Config>
  28540. 800c43c: 4603 mov r3, r0
  28541. 800c43e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28542. /* SAI2 clock source configuration done later after clock selection check */
  28543. break;
  28544. 800c442: e011 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28545. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  28546. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28547. 800c444: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28548. 800c448: 3328 adds r3, #40 @ 0x28
  28549. 800c44a: 2100 movs r1, #0
  28550. 800c44c: 4618 mov r0, r3
  28551. 800c44e: f002 fa79 bl 800e944 <RCCEx_PLL3_Config>
  28552. 800c452: 4603 mov r3, r0
  28553. 800c454: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28554. /* SAI1 clock source configuration done later after clock selection check */
  28555. break;
  28556. 800c458: e006 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28557. /* SAI4B clock source configuration done later after clock selection check */
  28558. break;
  28559. #endif /* RCC_VER_3_0 */
  28560. default:
  28561. ret = HAL_ERROR;
  28562. 800c45a: 2301 movs r3, #1
  28563. 800c45c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28564. break;
  28565. 800c460: e002 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28566. break;
  28567. 800c462: bf00 nop
  28568. 800c464: e000 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28569. break;
  28570. 800c466: bf00 nop
  28571. }
  28572. if (ret == HAL_OK)
  28573. 800c468: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28574. 800c46c: 2b00 cmp r3, #0
  28575. 800c46e: d10b bne.n 800c488 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  28576. {
  28577. /* Set the source of SAI4B clock*/
  28578. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  28579. 800c470: 4b8e ldr r3, [pc, #568] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28580. 800c472: 6d9b ldr r3, [r3, #88] @ 0x58
  28581. 800c474: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  28582. 800c478: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28583. 800c47c: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  28584. 800c480: 4a8a ldr r2, [pc, #552] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28585. 800c482: 430b orrs r3, r1
  28586. 800c484: 6593 str r3, [r2, #88] @ 0x58
  28587. 800c486: e003 b.n 800c490 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  28588. }
  28589. else
  28590. {
  28591. /* set overall return value */
  28592. status = ret;
  28593. 800c488: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28594. 800c48c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28595. }
  28596. #endif /*SAI4*/
  28597. #if defined(QUADSPI)
  28598. /*---------------------------- QSPI configuration -------------------------------*/
  28599. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  28600. 800c490: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28601. 800c494: e9d3 2300 ldrd r2, r3, [r3]
  28602. 800c498: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  28603. 800c49c: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  28604. 800c4a0: 2300 movs r3, #0
  28605. 800c4a2: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  28606. 800c4a6: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  28607. 800c4aa: 460b mov r3, r1
  28608. 800c4ac: 4313 orrs r3, r2
  28609. 800c4ae: d03a beq.n 800c526 <HAL_RCCEx_PeriphCLKConfig+0x442>
  28610. {
  28611. switch (PeriphClkInit->QspiClockSelection)
  28612. 800c4b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28613. 800c4b4: 6cdb ldr r3, [r3, #76] @ 0x4c
  28614. 800c4b6: 2b30 cmp r3, #48 @ 0x30
  28615. 800c4b8: d01f beq.n 800c4fa <HAL_RCCEx_PeriphCLKConfig+0x416>
  28616. 800c4ba: 2b30 cmp r3, #48 @ 0x30
  28617. 800c4bc: d819 bhi.n 800c4f2 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28618. 800c4be: 2b20 cmp r3, #32
  28619. 800c4c0: d00c beq.n 800c4dc <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  28620. 800c4c2: 2b20 cmp r3, #32
  28621. 800c4c4: d815 bhi.n 800c4f2 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28622. 800c4c6: 2b00 cmp r3, #0
  28623. 800c4c8: d019 beq.n 800c4fe <HAL_RCCEx_PeriphCLKConfig+0x41a>
  28624. 800c4ca: 2b10 cmp r3, #16
  28625. 800c4cc: d111 bne.n 800c4f2 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28626. {
  28627. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  28628. /* Enable QSPI Clock output generated form System PLL . */
  28629. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28630. 800c4ce: 4b77 ldr r3, [pc, #476] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28631. 800c4d0: 6adb ldr r3, [r3, #44] @ 0x2c
  28632. 800c4d2: 4a76 ldr r2, [pc, #472] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28633. 800c4d4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28634. 800c4d8: 62d3 str r3, [r2, #44] @ 0x2c
  28635. /* QSPI clock source configuration done later after clock selection check */
  28636. break;
  28637. 800c4da: e011 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28638. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  28639. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28640. 800c4dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28641. 800c4e0: 3308 adds r3, #8
  28642. 800c4e2: 2102 movs r1, #2
  28643. 800c4e4: 4618 mov r0, r3
  28644. 800c4e6: f002 f97b bl 800e7e0 <RCCEx_PLL2_Config>
  28645. 800c4ea: 4603 mov r3, r0
  28646. 800c4ec: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28647. /* QSPI clock source configuration done later after clock selection check */
  28648. break;
  28649. 800c4f0: e006 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28650. case RCC_QSPICLKSOURCE_D1HCLK:
  28651. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  28652. break;
  28653. default:
  28654. ret = HAL_ERROR;
  28655. 800c4f2: 2301 movs r3, #1
  28656. 800c4f4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28657. break;
  28658. 800c4f8: e002 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28659. break;
  28660. 800c4fa: bf00 nop
  28661. 800c4fc: e000 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28662. break;
  28663. 800c4fe: bf00 nop
  28664. }
  28665. if (ret == HAL_OK)
  28666. 800c500: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28667. 800c504: 2b00 cmp r3, #0
  28668. 800c506: d10a bne.n 800c51e <HAL_RCCEx_PeriphCLKConfig+0x43a>
  28669. {
  28670. /* Set the source of QSPI clock*/
  28671. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  28672. 800c508: 4b68 ldr r3, [pc, #416] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28673. 800c50a: 6cdb ldr r3, [r3, #76] @ 0x4c
  28674. 800c50c: f023 0130 bic.w r1, r3, #48 @ 0x30
  28675. 800c510: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28676. 800c514: 6cdb ldr r3, [r3, #76] @ 0x4c
  28677. 800c516: 4a65 ldr r2, [pc, #404] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28678. 800c518: 430b orrs r3, r1
  28679. 800c51a: 64d3 str r3, [r2, #76] @ 0x4c
  28680. 800c51c: e003 b.n 800c526 <HAL_RCCEx_PeriphCLKConfig+0x442>
  28681. }
  28682. else
  28683. {
  28684. /* set overall return value */
  28685. status = ret;
  28686. 800c51e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28687. 800c522: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28688. }
  28689. }
  28690. #endif /*OCTOSPI*/
  28691. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  28692. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  28693. 800c526: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28694. 800c52a: e9d3 2300 ldrd r2, r3, [r3]
  28695. 800c52e: f402 5380 and.w r3, r2, #4096 @ 0x1000
  28696. 800c532: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  28697. 800c536: 2300 movs r3, #0
  28698. 800c538: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  28699. 800c53c: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  28700. 800c540: 460b mov r3, r1
  28701. 800c542: 4313 orrs r3, r2
  28702. 800c544: d051 beq.n 800c5ea <HAL_RCCEx_PeriphCLKConfig+0x506>
  28703. {
  28704. switch (PeriphClkInit->Spi123ClockSelection)
  28705. 800c546: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28706. 800c54a: 6e1b ldr r3, [r3, #96] @ 0x60
  28707. 800c54c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  28708. 800c550: d035 beq.n 800c5be <HAL_RCCEx_PeriphCLKConfig+0x4da>
  28709. 800c552: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  28710. 800c556: d82e bhi.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28711. 800c558: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  28712. 800c55c: d031 beq.n 800c5c2 <HAL_RCCEx_PeriphCLKConfig+0x4de>
  28713. 800c55e: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  28714. 800c562: d828 bhi.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28715. 800c564: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  28716. 800c568: d01a beq.n 800c5a0 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  28717. 800c56a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  28718. 800c56e: d822 bhi.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28719. 800c570: 2b00 cmp r3, #0
  28720. 800c572: d003 beq.n 800c57c <HAL_RCCEx_PeriphCLKConfig+0x498>
  28721. 800c574: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  28722. 800c578: d007 beq.n 800c58a <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  28723. 800c57a: e01c b.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28724. {
  28725. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  28726. /* Enable SPI Clock output generated form System PLL . */
  28727. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28728. 800c57c: 4b4b ldr r3, [pc, #300] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28729. 800c57e: 6adb ldr r3, [r3, #44] @ 0x2c
  28730. 800c580: 4a4a ldr r2, [pc, #296] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28731. 800c582: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28732. 800c586: 62d3 str r3, [r2, #44] @ 0x2c
  28733. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28734. break;
  28735. 800c588: e01c b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28736. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  28737. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28738. 800c58a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28739. 800c58e: 3308 adds r3, #8
  28740. 800c590: 2100 movs r1, #0
  28741. 800c592: 4618 mov r0, r3
  28742. 800c594: f002 f924 bl 800e7e0 <RCCEx_PLL2_Config>
  28743. 800c598: 4603 mov r3, r0
  28744. 800c59a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28745. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28746. break;
  28747. 800c59e: e011 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28748. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  28749. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28750. 800c5a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28751. 800c5a4: 3328 adds r3, #40 @ 0x28
  28752. 800c5a6: 2100 movs r1, #0
  28753. 800c5a8: 4618 mov r0, r3
  28754. 800c5aa: f002 f9cb bl 800e944 <RCCEx_PLL3_Config>
  28755. 800c5ae: 4603 mov r3, r0
  28756. 800c5b0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28757. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28758. break;
  28759. 800c5b4: e006 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28760. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  28761. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28762. break;
  28763. default:
  28764. ret = HAL_ERROR;
  28765. 800c5b6: 2301 movs r3, #1
  28766. 800c5b8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28767. break;
  28768. 800c5bc: e002 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28769. break;
  28770. 800c5be: bf00 nop
  28771. 800c5c0: e000 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28772. break;
  28773. 800c5c2: bf00 nop
  28774. }
  28775. if (ret == HAL_OK)
  28776. 800c5c4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28777. 800c5c8: 2b00 cmp r3, #0
  28778. 800c5ca: d10a bne.n 800c5e2 <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  28779. {
  28780. /* Set the source of SPI1/2/3 clock*/
  28781. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  28782. 800c5cc: 4b37 ldr r3, [pc, #220] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28783. 800c5ce: 6d1b ldr r3, [r3, #80] @ 0x50
  28784. 800c5d0: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  28785. 800c5d4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28786. 800c5d8: 6e1b ldr r3, [r3, #96] @ 0x60
  28787. 800c5da: 4a34 ldr r2, [pc, #208] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28788. 800c5dc: 430b orrs r3, r1
  28789. 800c5de: 6513 str r3, [r2, #80] @ 0x50
  28790. 800c5e0: e003 b.n 800c5ea <HAL_RCCEx_PeriphCLKConfig+0x506>
  28791. }
  28792. else
  28793. {
  28794. /* set overall return value */
  28795. status = ret;
  28796. 800c5e2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28797. 800c5e6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28798. }
  28799. }
  28800. /*---------------------------- SPI4/5 configuration -------------------------------*/
  28801. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  28802. 800c5ea: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28803. 800c5ee: e9d3 2300 ldrd r2, r3, [r3]
  28804. 800c5f2: f402 5300 and.w r3, r2, #8192 @ 0x2000
  28805. 800c5f6: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  28806. 800c5fa: 2300 movs r3, #0
  28807. 800c5fc: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  28808. 800c600: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  28809. 800c604: 460b mov r3, r1
  28810. 800c606: 4313 orrs r3, r2
  28811. 800c608: d056 beq.n 800c6b8 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  28812. {
  28813. switch (PeriphClkInit->Spi45ClockSelection)
  28814. 800c60a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28815. 800c60e: 6e5b ldr r3, [r3, #100] @ 0x64
  28816. 800c610: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  28817. 800c614: d033 beq.n 800c67e <HAL_RCCEx_PeriphCLKConfig+0x59a>
  28818. 800c616: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  28819. 800c61a: d82c bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28820. 800c61c: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  28821. 800c620: d02f beq.n 800c682 <HAL_RCCEx_PeriphCLKConfig+0x59e>
  28822. 800c622: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  28823. 800c626: d826 bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28824. 800c628: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  28825. 800c62c: d02b beq.n 800c686 <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  28826. 800c62e: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  28827. 800c632: d820 bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28828. 800c634: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  28829. 800c638: d012 beq.n 800c660 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  28830. 800c63a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  28831. 800c63e: d81a bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28832. 800c640: 2b00 cmp r3, #0
  28833. 800c642: d022 beq.n 800c68a <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  28834. 800c644: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  28835. 800c648: d115 bne.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28836. /* SPI4/5 clock source configuration done later after clock selection check */
  28837. break;
  28838. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  28839. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28840. 800c64a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28841. 800c64e: 3308 adds r3, #8
  28842. 800c650: 2101 movs r1, #1
  28843. 800c652: 4618 mov r0, r3
  28844. 800c654: f002 f8c4 bl 800e7e0 <RCCEx_PLL2_Config>
  28845. 800c658: 4603 mov r3, r0
  28846. 800c65a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28847. /* SPI4/5 clock source configuration done later after clock selection check */
  28848. break;
  28849. 800c65e: e015 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28850. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  28851. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  28852. 800c660: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28853. 800c664: 3328 adds r3, #40 @ 0x28
  28854. 800c666: 2101 movs r1, #1
  28855. 800c668: 4618 mov r0, r3
  28856. 800c66a: f002 f96b bl 800e944 <RCCEx_PLL3_Config>
  28857. 800c66e: 4603 mov r3, r0
  28858. 800c670: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28859. /* SPI4/5 clock source configuration done later after clock selection check */
  28860. break;
  28861. 800c674: e00a b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28862. /* HSE, oscillator is used as source of SPI4/5 clock */
  28863. /* SPI4/5 clock source configuration done later after clock selection check */
  28864. break;
  28865. default:
  28866. ret = HAL_ERROR;
  28867. 800c676: 2301 movs r3, #1
  28868. 800c678: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28869. break;
  28870. 800c67c: e006 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28871. break;
  28872. 800c67e: bf00 nop
  28873. 800c680: e004 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28874. break;
  28875. 800c682: bf00 nop
  28876. 800c684: e002 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28877. break;
  28878. 800c686: bf00 nop
  28879. 800c688: e000 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28880. break;
  28881. 800c68a: bf00 nop
  28882. }
  28883. if (ret == HAL_OK)
  28884. 800c68c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28885. 800c690: 2b00 cmp r3, #0
  28886. 800c692: d10d bne.n 800c6b0 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  28887. {
  28888. /* Set the source of SPI4/5 clock*/
  28889. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  28890. 800c694: 4b05 ldr r3, [pc, #20] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28891. 800c696: 6d1b ldr r3, [r3, #80] @ 0x50
  28892. 800c698: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  28893. 800c69c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28894. 800c6a0: 6e5b ldr r3, [r3, #100] @ 0x64
  28895. 800c6a2: 4a02 ldr r2, [pc, #8] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28896. 800c6a4: 430b orrs r3, r1
  28897. 800c6a6: 6513 str r3, [r2, #80] @ 0x50
  28898. 800c6a8: e006 b.n 800c6b8 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  28899. 800c6aa: bf00 nop
  28900. 800c6ac: 58024400 .word 0x58024400
  28901. }
  28902. else
  28903. {
  28904. /* set overall return value */
  28905. status = ret;
  28906. 800c6b0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28907. 800c6b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28908. }
  28909. }
  28910. /*---------------------------- SPI6 configuration -------------------------------*/
  28911. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  28912. 800c6b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28913. 800c6bc: e9d3 2300 ldrd r2, r3, [r3]
  28914. 800c6c0: f402 4380 and.w r3, r2, #16384 @ 0x4000
  28915. 800c6c4: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  28916. 800c6c8: 2300 movs r3, #0
  28917. 800c6ca: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  28918. 800c6ce: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  28919. 800c6d2: 460b mov r3, r1
  28920. 800c6d4: 4313 orrs r3, r2
  28921. 800c6d6: d055 beq.n 800c784 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  28922. {
  28923. switch (PeriphClkInit->Spi6ClockSelection)
  28924. 800c6d8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28925. 800c6dc: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  28926. 800c6e0: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  28927. 800c6e4: d033 beq.n 800c74e <HAL_RCCEx_PeriphCLKConfig+0x66a>
  28928. 800c6e6: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  28929. 800c6ea: d82c bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28930. 800c6ec: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28931. 800c6f0: d02f beq.n 800c752 <HAL_RCCEx_PeriphCLKConfig+0x66e>
  28932. 800c6f2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28933. 800c6f6: d826 bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28934. 800c6f8: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  28935. 800c6fc: d02b beq.n 800c756 <HAL_RCCEx_PeriphCLKConfig+0x672>
  28936. 800c6fe: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  28937. 800c702: d820 bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28938. 800c704: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28939. 800c708: d012 beq.n 800c730 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  28940. 800c70a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28941. 800c70e: d81a bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28942. 800c710: 2b00 cmp r3, #0
  28943. 800c712: d022 beq.n 800c75a <HAL_RCCEx_PeriphCLKConfig+0x676>
  28944. 800c714: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  28945. 800c718: d115 bne.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28946. /* SPI6 clock source configuration done later after clock selection check */
  28947. break;
  28948. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  28949. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28950. 800c71a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28951. 800c71e: 3308 adds r3, #8
  28952. 800c720: 2101 movs r1, #1
  28953. 800c722: 4618 mov r0, r3
  28954. 800c724: f002 f85c bl 800e7e0 <RCCEx_PLL2_Config>
  28955. 800c728: 4603 mov r3, r0
  28956. 800c72a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28957. /* SPI6 clock source configuration done later after clock selection check */
  28958. break;
  28959. 800c72e: e015 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28960. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  28961. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  28962. 800c730: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28963. 800c734: 3328 adds r3, #40 @ 0x28
  28964. 800c736: 2101 movs r1, #1
  28965. 800c738: 4618 mov r0, r3
  28966. 800c73a: f002 f903 bl 800e944 <RCCEx_PLL3_Config>
  28967. 800c73e: 4603 mov r3, r0
  28968. 800c740: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28969. /* SPI6 clock source configuration done later after clock selection check */
  28970. break;
  28971. 800c744: e00a b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28972. /* SPI6 clock source configuration done later after clock selection check */
  28973. break;
  28974. #endif
  28975. default:
  28976. ret = HAL_ERROR;
  28977. 800c746: 2301 movs r3, #1
  28978. 800c748: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28979. break;
  28980. 800c74c: e006 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28981. break;
  28982. 800c74e: bf00 nop
  28983. 800c750: e004 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28984. break;
  28985. 800c752: bf00 nop
  28986. 800c754: e002 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28987. break;
  28988. 800c756: bf00 nop
  28989. 800c758: e000 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28990. break;
  28991. 800c75a: bf00 nop
  28992. }
  28993. if (ret == HAL_OK)
  28994. 800c75c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28995. 800c760: 2b00 cmp r3, #0
  28996. 800c762: d10b bne.n 800c77c <HAL_RCCEx_PeriphCLKConfig+0x698>
  28997. {
  28998. /* Set the source of SPI6 clock*/
  28999. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  29000. 800c764: 4ba3 ldr r3, [pc, #652] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29001. 800c766: 6d9b ldr r3, [r3, #88] @ 0x58
  29002. 800c768: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  29003. 800c76c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29004. 800c770: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  29005. 800c774: 4a9f ldr r2, [pc, #636] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29006. 800c776: 430b orrs r3, r1
  29007. 800c778: 6593 str r3, [r2, #88] @ 0x58
  29008. 800c77a: e003 b.n 800c784 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  29009. }
  29010. else
  29011. {
  29012. /* set overall return value */
  29013. status = ret;
  29014. 800c77c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29015. 800c780: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29016. }
  29017. #endif /*DSI*/
  29018. #if defined(FDCAN1) || defined(FDCAN2)
  29019. /*---------------------------- FDCAN configuration -------------------------------*/
  29020. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  29021. 800c784: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29022. 800c788: e9d3 2300 ldrd r2, r3, [r3]
  29023. 800c78c: f402 4300 and.w r3, r2, #32768 @ 0x8000
  29024. 800c790: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  29025. 800c794: 2300 movs r3, #0
  29026. 800c796: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  29027. 800c79a: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  29028. 800c79e: 460b mov r3, r1
  29029. 800c7a0: 4313 orrs r3, r2
  29030. 800c7a2: d037 beq.n 800c814 <HAL_RCCEx_PeriphCLKConfig+0x730>
  29031. {
  29032. switch (PeriphClkInit->FdcanClockSelection)
  29033. 800c7a4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29034. 800c7a8: 6f1b ldr r3, [r3, #112] @ 0x70
  29035. 800c7aa: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29036. 800c7ae: d00e beq.n 800c7ce <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  29037. 800c7b0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29038. 800c7b4: d816 bhi.n 800c7e4 <HAL_RCCEx_PeriphCLKConfig+0x700>
  29039. 800c7b6: 2b00 cmp r3, #0
  29040. 800c7b8: d018 beq.n 800c7ec <HAL_RCCEx_PeriphCLKConfig+0x708>
  29041. 800c7ba: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  29042. 800c7be: d111 bne.n 800c7e4 <HAL_RCCEx_PeriphCLKConfig+0x700>
  29043. {
  29044. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  29045. /* Enable FDCAN Clock output generated form System PLL . */
  29046. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29047. 800c7c0: 4b8c ldr r3, [pc, #560] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29048. 800c7c2: 6adb ldr r3, [r3, #44] @ 0x2c
  29049. 800c7c4: 4a8b ldr r2, [pc, #556] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29050. 800c7c6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29051. 800c7ca: 62d3 str r3, [r2, #44] @ 0x2c
  29052. /* FDCAN clock source configuration done later after clock selection check */
  29053. break;
  29054. 800c7cc: e00f b.n 800c7ee <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29055. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  29056. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29057. 800c7ce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29058. 800c7d2: 3308 adds r3, #8
  29059. 800c7d4: 2101 movs r1, #1
  29060. 800c7d6: 4618 mov r0, r3
  29061. 800c7d8: f002 f802 bl 800e7e0 <RCCEx_PLL2_Config>
  29062. 800c7dc: 4603 mov r3, r0
  29063. 800c7de: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29064. /* FDCAN clock source configuration done later after clock selection check */
  29065. break;
  29066. 800c7e2: e004 b.n 800c7ee <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29067. /* HSE is used as clock source for FDCAN*/
  29068. /* FDCAN clock source configuration done later after clock selection check */
  29069. break;
  29070. default:
  29071. ret = HAL_ERROR;
  29072. 800c7e4: 2301 movs r3, #1
  29073. 800c7e6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29074. break;
  29075. 800c7ea: e000 b.n 800c7ee <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29076. break;
  29077. 800c7ec: bf00 nop
  29078. }
  29079. if (ret == HAL_OK)
  29080. 800c7ee: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29081. 800c7f2: 2b00 cmp r3, #0
  29082. 800c7f4: d10a bne.n 800c80c <HAL_RCCEx_PeriphCLKConfig+0x728>
  29083. {
  29084. /* Set the source of FDCAN clock*/
  29085. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  29086. 800c7f6: 4b7f ldr r3, [pc, #508] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29087. 800c7f8: 6d1b ldr r3, [r3, #80] @ 0x50
  29088. 800c7fa: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  29089. 800c7fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29090. 800c802: 6f1b ldr r3, [r3, #112] @ 0x70
  29091. 800c804: 4a7b ldr r2, [pc, #492] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29092. 800c806: 430b orrs r3, r1
  29093. 800c808: 6513 str r3, [r2, #80] @ 0x50
  29094. 800c80a: e003 b.n 800c814 <HAL_RCCEx_PeriphCLKConfig+0x730>
  29095. }
  29096. else
  29097. {
  29098. /* set overall return value */
  29099. status = ret;
  29100. 800c80c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29101. 800c810: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29102. }
  29103. }
  29104. #endif /*FDCAN1 || FDCAN2*/
  29105. /*---------------------------- FMC configuration -------------------------------*/
  29106. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  29107. 800c814: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29108. 800c818: e9d3 2300 ldrd r2, r3, [r3]
  29109. 800c81c: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  29110. 800c820: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  29111. 800c824: 2300 movs r3, #0
  29112. 800c826: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  29113. 800c82a: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  29114. 800c82e: 460b mov r3, r1
  29115. 800c830: 4313 orrs r3, r2
  29116. 800c832: d039 beq.n 800c8a8 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  29117. {
  29118. switch (PeriphClkInit->FmcClockSelection)
  29119. 800c834: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29120. 800c838: 6c9b ldr r3, [r3, #72] @ 0x48
  29121. 800c83a: 2b03 cmp r3, #3
  29122. 800c83c: d81c bhi.n 800c878 <HAL_RCCEx_PeriphCLKConfig+0x794>
  29123. 800c83e: a201 add r2, pc, #4 @ (adr r2, 800c844 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  29124. 800c840: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29125. 800c844: 0800c881 .word 0x0800c881
  29126. 800c848: 0800c855 .word 0x0800c855
  29127. 800c84c: 0800c863 .word 0x0800c863
  29128. 800c850: 0800c881 .word 0x0800c881
  29129. {
  29130. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  29131. /* Enable FMC Clock output generated form System PLL . */
  29132. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29133. 800c854: 4b67 ldr r3, [pc, #412] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29134. 800c856: 6adb ldr r3, [r3, #44] @ 0x2c
  29135. 800c858: 4a66 ldr r2, [pc, #408] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29136. 800c85a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29137. 800c85e: 62d3 str r3, [r2, #44] @ 0x2c
  29138. /* FMC clock source configuration done later after clock selection check */
  29139. break;
  29140. 800c860: e00f b.n 800c882 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29141. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  29142. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29143. 800c862: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29144. 800c866: 3308 adds r3, #8
  29145. 800c868: 2102 movs r1, #2
  29146. 800c86a: 4618 mov r0, r3
  29147. 800c86c: f001 ffb8 bl 800e7e0 <RCCEx_PLL2_Config>
  29148. 800c870: 4603 mov r3, r0
  29149. 800c872: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29150. /* FMC clock source configuration done later after clock selection check */
  29151. break;
  29152. 800c876: e004 b.n 800c882 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29153. case RCC_FMCCLKSOURCE_HCLK:
  29154. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  29155. break;
  29156. default:
  29157. ret = HAL_ERROR;
  29158. 800c878: 2301 movs r3, #1
  29159. 800c87a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29160. break;
  29161. 800c87e: e000 b.n 800c882 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29162. break;
  29163. 800c880: bf00 nop
  29164. }
  29165. if (ret == HAL_OK)
  29166. 800c882: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29167. 800c886: 2b00 cmp r3, #0
  29168. 800c888: d10a bne.n 800c8a0 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  29169. {
  29170. /* Set the source of FMC clock*/
  29171. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  29172. 800c88a: 4b5a ldr r3, [pc, #360] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29173. 800c88c: 6cdb ldr r3, [r3, #76] @ 0x4c
  29174. 800c88e: f023 0103 bic.w r1, r3, #3
  29175. 800c892: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29176. 800c896: 6c9b ldr r3, [r3, #72] @ 0x48
  29177. 800c898: 4a56 ldr r2, [pc, #344] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29178. 800c89a: 430b orrs r3, r1
  29179. 800c89c: 64d3 str r3, [r2, #76] @ 0x4c
  29180. 800c89e: e003 b.n 800c8a8 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  29181. }
  29182. else
  29183. {
  29184. /* set overall return value */
  29185. status = ret;
  29186. 800c8a0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29187. 800c8a4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29188. }
  29189. }
  29190. /*---------------------------- RTC configuration -------------------------------*/
  29191. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  29192. 800c8a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29193. 800c8ac: e9d3 2300 ldrd r2, r3, [r3]
  29194. 800c8b0: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  29195. 800c8b4: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  29196. 800c8b8: 2300 movs r3, #0
  29197. 800c8ba: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  29198. 800c8be: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  29199. 800c8c2: 460b mov r3, r1
  29200. 800c8c4: 4313 orrs r3, r2
  29201. 800c8c6: f000 809f beq.w 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x924>
  29202. {
  29203. /* check for RTC Parameters used to output RTCCLK */
  29204. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  29205. /* Enable write access to Backup domain */
  29206. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  29207. 800c8ca: 4b4b ldr r3, [pc, #300] @ (800c9f8 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29208. 800c8cc: 681b ldr r3, [r3, #0]
  29209. 800c8ce: 4a4a ldr r2, [pc, #296] @ (800c9f8 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29210. 800c8d0: f443 7380 orr.w r3, r3, #256 @ 0x100
  29211. 800c8d4: 6013 str r3, [r2, #0]
  29212. /* Wait for Backup domain Write protection disable */
  29213. tickstart = HAL_GetTick();
  29214. 800c8d6: f7f8 fe47 bl 8005568 <HAL_GetTick>
  29215. 800c8da: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  29216. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  29217. 800c8de: e00b b.n 800c8f8 <HAL_RCCEx_PeriphCLKConfig+0x814>
  29218. {
  29219. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  29220. 800c8e0: f7f8 fe42 bl 8005568 <HAL_GetTick>
  29221. 800c8e4: 4602 mov r2, r0
  29222. 800c8e6: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  29223. 800c8ea: 1ad3 subs r3, r2, r3
  29224. 800c8ec: 2b64 cmp r3, #100 @ 0x64
  29225. 800c8ee: d903 bls.n 800c8f8 <HAL_RCCEx_PeriphCLKConfig+0x814>
  29226. {
  29227. ret = HAL_TIMEOUT;
  29228. 800c8f0: 2303 movs r3, #3
  29229. 800c8f2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29230. break;
  29231. 800c8f6: e005 b.n 800c904 <HAL_RCCEx_PeriphCLKConfig+0x820>
  29232. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  29233. 800c8f8: 4b3f ldr r3, [pc, #252] @ (800c9f8 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29234. 800c8fa: 681b ldr r3, [r3, #0]
  29235. 800c8fc: f403 7380 and.w r3, r3, #256 @ 0x100
  29236. 800c900: 2b00 cmp r3, #0
  29237. 800c902: d0ed beq.n 800c8e0 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  29238. }
  29239. }
  29240. if (ret == HAL_OK)
  29241. 800c904: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29242. 800c908: 2b00 cmp r3, #0
  29243. 800c90a: d179 bne.n 800ca00 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  29244. {
  29245. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  29246. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  29247. 800c90c: 4b39 ldr r3, [pc, #228] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29248. 800c90e: 6f1a ldr r2, [r3, #112] @ 0x70
  29249. 800c910: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29250. 800c914: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29251. 800c918: 4053 eors r3, r2
  29252. 800c91a: f403 7340 and.w r3, r3, #768 @ 0x300
  29253. 800c91e: 2b00 cmp r3, #0
  29254. 800c920: d015 beq.n 800c94e <HAL_RCCEx_PeriphCLKConfig+0x86a>
  29255. {
  29256. /* Store the content of BDCR register before the reset of Backup Domain */
  29257. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  29258. 800c922: 4b34 ldr r3, [pc, #208] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29259. 800c924: 6f1b ldr r3, [r3, #112] @ 0x70
  29260. 800c926: f423 7340 bic.w r3, r3, #768 @ 0x300
  29261. 800c92a: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  29262. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  29263. __HAL_RCC_BACKUPRESET_FORCE();
  29264. 800c92e: 4b31 ldr r3, [pc, #196] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29265. 800c930: 6f1b ldr r3, [r3, #112] @ 0x70
  29266. 800c932: 4a30 ldr r2, [pc, #192] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29267. 800c934: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  29268. 800c938: 6713 str r3, [r2, #112] @ 0x70
  29269. __HAL_RCC_BACKUPRESET_RELEASE();
  29270. 800c93a: 4b2e ldr r3, [pc, #184] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29271. 800c93c: 6f1b ldr r3, [r3, #112] @ 0x70
  29272. 800c93e: 4a2d ldr r2, [pc, #180] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29273. 800c940: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  29274. 800c944: 6713 str r3, [r2, #112] @ 0x70
  29275. /* Restore the Content of BDCR register */
  29276. RCC->BDCR = tmpreg;
  29277. 800c946: 4a2b ldr r2, [pc, #172] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29278. 800c948: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  29279. 800c94c: 6713 str r3, [r2, #112] @ 0x70
  29280. }
  29281. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  29282. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  29283. 800c94e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29284. 800c952: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29285. 800c956: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29286. 800c95a: d118 bne.n 800c98e <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  29287. {
  29288. /* Get Start Tick*/
  29289. tickstart = HAL_GetTick();
  29290. 800c95c: f7f8 fe04 bl 8005568 <HAL_GetTick>
  29291. 800c960: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  29292. /* Wait till LSE is ready */
  29293. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  29294. 800c964: e00d b.n 800c982 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  29295. {
  29296. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  29297. 800c966: f7f8 fdff bl 8005568 <HAL_GetTick>
  29298. 800c96a: 4602 mov r2, r0
  29299. 800c96c: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  29300. 800c970: 1ad2 subs r2, r2, r3
  29301. 800c972: f241 3388 movw r3, #5000 @ 0x1388
  29302. 800c976: 429a cmp r2, r3
  29303. 800c978: d903 bls.n 800c982 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  29304. {
  29305. ret = HAL_TIMEOUT;
  29306. 800c97a: 2303 movs r3, #3
  29307. 800c97c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29308. break;
  29309. 800c980: e005 b.n 800c98e <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  29310. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  29311. 800c982: 4b1c ldr r3, [pc, #112] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29312. 800c984: 6f1b ldr r3, [r3, #112] @ 0x70
  29313. 800c986: f003 0302 and.w r3, r3, #2
  29314. 800c98a: 2b00 cmp r3, #0
  29315. 800c98c: d0eb beq.n 800c966 <HAL_RCCEx_PeriphCLKConfig+0x882>
  29316. }
  29317. }
  29318. }
  29319. if (ret == HAL_OK)
  29320. 800c98e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29321. 800c992: 2b00 cmp r3, #0
  29322. 800c994: d129 bne.n 800c9ea <HAL_RCCEx_PeriphCLKConfig+0x906>
  29323. {
  29324. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  29325. 800c996: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29326. 800c99a: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29327. 800c99e: f403 7340 and.w r3, r3, #768 @ 0x300
  29328. 800c9a2: f5b3 7f40 cmp.w r3, #768 @ 0x300
  29329. 800c9a6: d10e bne.n 800c9c6 <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  29330. 800c9a8: 4b12 ldr r3, [pc, #72] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29331. 800c9aa: 691b ldr r3, [r3, #16]
  29332. 800c9ac: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  29333. 800c9b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29334. 800c9b4: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29335. 800c9b8: 091a lsrs r2, r3, #4
  29336. 800c9ba: 4b10 ldr r3, [pc, #64] @ (800c9fc <HAL_RCCEx_PeriphCLKConfig+0x918>)
  29337. 800c9bc: 4013 ands r3, r2
  29338. 800c9be: 4a0d ldr r2, [pc, #52] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29339. 800c9c0: 430b orrs r3, r1
  29340. 800c9c2: 6113 str r3, [r2, #16]
  29341. 800c9c4: e005 b.n 800c9d2 <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  29342. 800c9c6: 4b0b ldr r3, [pc, #44] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29343. 800c9c8: 691b ldr r3, [r3, #16]
  29344. 800c9ca: 4a0a ldr r2, [pc, #40] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29345. 800c9cc: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  29346. 800c9d0: 6113 str r3, [r2, #16]
  29347. 800c9d2: 4b08 ldr r3, [pc, #32] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29348. 800c9d4: 6f19 ldr r1, [r3, #112] @ 0x70
  29349. 800c9d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29350. 800c9da: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29351. 800c9de: f3c3 030b ubfx r3, r3, #0, #12
  29352. 800c9e2: 4a04 ldr r2, [pc, #16] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29353. 800c9e4: 430b orrs r3, r1
  29354. 800c9e6: 6713 str r3, [r2, #112] @ 0x70
  29355. 800c9e8: e00e b.n 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x924>
  29356. }
  29357. else
  29358. {
  29359. /* set overall return value */
  29360. status = ret;
  29361. 800c9ea: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29362. 800c9ee: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29363. 800c9f2: e009 b.n 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x924>
  29364. 800c9f4: 58024400 .word 0x58024400
  29365. 800c9f8: 58024800 .word 0x58024800
  29366. 800c9fc: 00ffffcf .word 0x00ffffcf
  29367. }
  29368. }
  29369. else
  29370. {
  29371. /* set overall return value */
  29372. status = ret;
  29373. 800ca00: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29374. 800ca04: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29375. }
  29376. }
  29377. /*-------------------------- USART1/6 configuration --------------------------*/
  29378. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  29379. 800ca08: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29380. 800ca0c: e9d3 2300 ldrd r2, r3, [r3]
  29381. 800ca10: f002 0301 and.w r3, r2, #1
  29382. 800ca14: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  29383. 800ca18: 2300 movs r3, #0
  29384. 800ca1a: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  29385. 800ca1e: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  29386. 800ca22: 460b mov r3, r1
  29387. 800ca24: 4313 orrs r3, r2
  29388. 800ca26: f000 8089 beq.w 800cb3c <HAL_RCCEx_PeriphCLKConfig+0xa58>
  29389. {
  29390. switch (PeriphClkInit->Usart16ClockSelection)
  29391. 800ca2a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29392. 800ca2e: 6fdb ldr r3, [r3, #124] @ 0x7c
  29393. 800ca30: 2b28 cmp r3, #40 @ 0x28
  29394. 800ca32: d86b bhi.n 800cb0c <HAL_RCCEx_PeriphCLKConfig+0xa28>
  29395. 800ca34: a201 add r2, pc, #4 @ (adr r2, 800ca3c <HAL_RCCEx_PeriphCLKConfig+0x958>)
  29396. 800ca36: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29397. 800ca3a: bf00 nop
  29398. 800ca3c: 0800cb15 .word 0x0800cb15
  29399. 800ca40: 0800cb0d .word 0x0800cb0d
  29400. 800ca44: 0800cb0d .word 0x0800cb0d
  29401. 800ca48: 0800cb0d .word 0x0800cb0d
  29402. 800ca4c: 0800cb0d .word 0x0800cb0d
  29403. 800ca50: 0800cb0d .word 0x0800cb0d
  29404. 800ca54: 0800cb0d .word 0x0800cb0d
  29405. 800ca58: 0800cb0d .word 0x0800cb0d
  29406. 800ca5c: 0800cae1 .word 0x0800cae1
  29407. 800ca60: 0800cb0d .word 0x0800cb0d
  29408. 800ca64: 0800cb0d .word 0x0800cb0d
  29409. 800ca68: 0800cb0d .word 0x0800cb0d
  29410. 800ca6c: 0800cb0d .word 0x0800cb0d
  29411. 800ca70: 0800cb0d .word 0x0800cb0d
  29412. 800ca74: 0800cb0d .word 0x0800cb0d
  29413. 800ca78: 0800cb0d .word 0x0800cb0d
  29414. 800ca7c: 0800caf7 .word 0x0800caf7
  29415. 800ca80: 0800cb0d .word 0x0800cb0d
  29416. 800ca84: 0800cb0d .word 0x0800cb0d
  29417. 800ca88: 0800cb0d .word 0x0800cb0d
  29418. 800ca8c: 0800cb0d .word 0x0800cb0d
  29419. 800ca90: 0800cb0d .word 0x0800cb0d
  29420. 800ca94: 0800cb0d .word 0x0800cb0d
  29421. 800ca98: 0800cb0d .word 0x0800cb0d
  29422. 800ca9c: 0800cb15 .word 0x0800cb15
  29423. 800caa0: 0800cb0d .word 0x0800cb0d
  29424. 800caa4: 0800cb0d .word 0x0800cb0d
  29425. 800caa8: 0800cb0d .word 0x0800cb0d
  29426. 800caac: 0800cb0d .word 0x0800cb0d
  29427. 800cab0: 0800cb0d .word 0x0800cb0d
  29428. 800cab4: 0800cb0d .word 0x0800cb0d
  29429. 800cab8: 0800cb0d .word 0x0800cb0d
  29430. 800cabc: 0800cb15 .word 0x0800cb15
  29431. 800cac0: 0800cb0d .word 0x0800cb0d
  29432. 800cac4: 0800cb0d .word 0x0800cb0d
  29433. 800cac8: 0800cb0d .word 0x0800cb0d
  29434. 800cacc: 0800cb0d .word 0x0800cb0d
  29435. 800cad0: 0800cb0d .word 0x0800cb0d
  29436. 800cad4: 0800cb0d .word 0x0800cb0d
  29437. 800cad8: 0800cb0d .word 0x0800cb0d
  29438. 800cadc: 0800cb15 .word 0x0800cb15
  29439. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  29440. /* USART1/6 clock source configuration done later after clock selection check */
  29441. break;
  29442. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  29443. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29444. 800cae0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29445. 800cae4: 3308 adds r3, #8
  29446. 800cae6: 2101 movs r1, #1
  29447. 800cae8: 4618 mov r0, r3
  29448. 800caea: f001 fe79 bl 800e7e0 <RCCEx_PLL2_Config>
  29449. 800caee: 4603 mov r3, r0
  29450. 800caf0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29451. /* USART1/6 clock source configuration done later after clock selection check */
  29452. break;
  29453. 800caf4: e00f b.n 800cb16 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29454. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  29455. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29456. 800caf6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29457. 800cafa: 3328 adds r3, #40 @ 0x28
  29458. 800cafc: 2101 movs r1, #1
  29459. 800cafe: 4618 mov r0, r3
  29460. 800cb00: f001 ff20 bl 800e944 <RCCEx_PLL3_Config>
  29461. 800cb04: 4603 mov r3, r0
  29462. 800cb06: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29463. /* USART1/6 clock source configuration done later after clock selection check */
  29464. break;
  29465. 800cb0a: e004 b.n 800cb16 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29466. /* LSE, oscillator is used as source of USART1/6 clock */
  29467. /* USART1/6 clock source configuration done later after clock selection check */
  29468. break;
  29469. default:
  29470. ret = HAL_ERROR;
  29471. 800cb0c: 2301 movs r3, #1
  29472. 800cb0e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29473. break;
  29474. 800cb12: e000 b.n 800cb16 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29475. break;
  29476. 800cb14: bf00 nop
  29477. }
  29478. if (ret == HAL_OK)
  29479. 800cb16: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29480. 800cb1a: 2b00 cmp r3, #0
  29481. 800cb1c: d10a bne.n 800cb34 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  29482. {
  29483. /* Set the source of USART1/6 clock */
  29484. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  29485. 800cb1e: 4bbf ldr r3, [pc, #764] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29486. 800cb20: 6d5b ldr r3, [r3, #84] @ 0x54
  29487. 800cb22: f023 0138 bic.w r1, r3, #56 @ 0x38
  29488. 800cb26: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29489. 800cb2a: 6fdb ldr r3, [r3, #124] @ 0x7c
  29490. 800cb2c: 4abb ldr r2, [pc, #748] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29491. 800cb2e: 430b orrs r3, r1
  29492. 800cb30: 6553 str r3, [r2, #84] @ 0x54
  29493. 800cb32: e003 b.n 800cb3c <HAL_RCCEx_PeriphCLKConfig+0xa58>
  29494. }
  29495. else
  29496. {
  29497. /* set overall return value */
  29498. status = ret;
  29499. 800cb34: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29500. 800cb38: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29501. }
  29502. }
  29503. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  29504. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  29505. 800cb3c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29506. 800cb40: e9d3 2300 ldrd r2, r3, [r3]
  29507. 800cb44: f002 0302 and.w r3, r2, #2
  29508. 800cb48: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  29509. 800cb4c: 2300 movs r3, #0
  29510. 800cb4e: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  29511. 800cb52: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  29512. 800cb56: 460b mov r3, r1
  29513. 800cb58: 4313 orrs r3, r2
  29514. 800cb5a: d041 beq.n 800cbe0 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  29515. {
  29516. switch (PeriphClkInit->Usart234578ClockSelection)
  29517. 800cb5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29518. 800cb60: 6f9b ldr r3, [r3, #120] @ 0x78
  29519. 800cb62: 2b05 cmp r3, #5
  29520. 800cb64: d824 bhi.n 800cbb0 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  29521. 800cb66: a201 add r2, pc, #4 @ (adr r2, 800cb6c <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  29522. 800cb68: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29523. 800cb6c: 0800cbb9 .word 0x0800cbb9
  29524. 800cb70: 0800cb85 .word 0x0800cb85
  29525. 800cb74: 0800cb9b .word 0x0800cb9b
  29526. 800cb78: 0800cbb9 .word 0x0800cbb9
  29527. 800cb7c: 0800cbb9 .word 0x0800cbb9
  29528. 800cb80: 0800cbb9 .word 0x0800cbb9
  29529. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  29530. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29531. break;
  29532. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  29533. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29534. 800cb84: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29535. 800cb88: 3308 adds r3, #8
  29536. 800cb8a: 2101 movs r1, #1
  29537. 800cb8c: 4618 mov r0, r3
  29538. 800cb8e: f001 fe27 bl 800e7e0 <RCCEx_PLL2_Config>
  29539. 800cb92: 4603 mov r3, r0
  29540. 800cb94: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29541. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29542. break;
  29543. 800cb98: e00f b.n 800cbba <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29544. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  29545. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29546. 800cb9a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29547. 800cb9e: 3328 adds r3, #40 @ 0x28
  29548. 800cba0: 2101 movs r1, #1
  29549. 800cba2: 4618 mov r0, r3
  29550. 800cba4: f001 fece bl 800e944 <RCCEx_PLL3_Config>
  29551. 800cba8: 4603 mov r3, r0
  29552. 800cbaa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29553. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29554. break;
  29555. 800cbae: e004 b.n 800cbba <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29556. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  29557. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29558. break;
  29559. default:
  29560. ret = HAL_ERROR;
  29561. 800cbb0: 2301 movs r3, #1
  29562. 800cbb2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29563. break;
  29564. 800cbb6: e000 b.n 800cbba <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29565. break;
  29566. 800cbb8: bf00 nop
  29567. }
  29568. if (ret == HAL_OK)
  29569. 800cbba: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29570. 800cbbe: 2b00 cmp r3, #0
  29571. 800cbc0: d10a bne.n 800cbd8 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  29572. {
  29573. /* Set the source of USART2/3/4/5/7/8 clock */
  29574. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  29575. 800cbc2: 4b96 ldr r3, [pc, #600] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29576. 800cbc4: 6d5b ldr r3, [r3, #84] @ 0x54
  29577. 800cbc6: f023 0107 bic.w r1, r3, #7
  29578. 800cbca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29579. 800cbce: 6f9b ldr r3, [r3, #120] @ 0x78
  29580. 800cbd0: 4a92 ldr r2, [pc, #584] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29581. 800cbd2: 430b orrs r3, r1
  29582. 800cbd4: 6553 str r3, [r2, #84] @ 0x54
  29583. 800cbd6: e003 b.n 800cbe0 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  29584. }
  29585. else
  29586. {
  29587. /* set overall return value */
  29588. status = ret;
  29589. 800cbd8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29590. 800cbdc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29591. }
  29592. }
  29593. /*-------------------------- LPUART1 Configuration -------------------------*/
  29594. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  29595. 800cbe0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29596. 800cbe4: e9d3 2300 ldrd r2, r3, [r3]
  29597. 800cbe8: f002 0304 and.w r3, r2, #4
  29598. 800cbec: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  29599. 800cbf0: 2300 movs r3, #0
  29600. 800cbf2: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  29601. 800cbf6: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  29602. 800cbfa: 460b mov r3, r1
  29603. 800cbfc: 4313 orrs r3, r2
  29604. 800cbfe: d044 beq.n 800cc8a <HAL_RCCEx_PeriphCLKConfig+0xba6>
  29605. {
  29606. switch (PeriphClkInit->Lpuart1ClockSelection)
  29607. 800cc00: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29608. 800cc04: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  29609. 800cc08: 2b05 cmp r3, #5
  29610. 800cc0a: d825 bhi.n 800cc58 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  29611. 800cc0c: a201 add r2, pc, #4 @ (adr r2, 800cc14 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  29612. 800cc0e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29613. 800cc12: bf00 nop
  29614. 800cc14: 0800cc61 .word 0x0800cc61
  29615. 800cc18: 0800cc2d .word 0x0800cc2d
  29616. 800cc1c: 0800cc43 .word 0x0800cc43
  29617. 800cc20: 0800cc61 .word 0x0800cc61
  29618. 800cc24: 0800cc61 .word 0x0800cc61
  29619. 800cc28: 0800cc61 .word 0x0800cc61
  29620. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  29621. /* LPUART1 clock source configuration done later after clock selection check */
  29622. break;
  29623. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  29624. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29625. 800cc2c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29626. 800cc30: 3308 adds r3, #8
  29627. 800cc32: 2101 movs r1, #1
  29628. 800cc34: 4618 mov r0, r3
  29629. 800cc36: f001 fdd3 bl 800e7e0 <RCCEx_PLL2_Config>
  29630. 800cc3a: 4603 mov r3, r0
  29631. 800cc3c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29632. /* LPUART1 clock source configuration done later after clock selection check */
  29633. break;
  29634. 800cc40: e00f b.n 800cc62 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29635. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  29636. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29637. 800cc42: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29638. 800cc46: 3328 adds r3, #40 @ 0x28
  29639. 800cc48: 2101 movs r1, #1
  29640. 800cc4a: 4618 mov r0, r3
  29641. 800cc4c: f001 fe7a bl 800e944 <RCCEx_PLL3_Config>
  29642. 800cc50: 4603 mov r3, r0
  29643. 800cc52: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29644. /* LPUART1 clock source configuration done later after clock selection check */
  29645. break;
  29646. 800cc56: e004 b.n 800cc62 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29647. /* LSE, oscillator is used as source of LPUART1 clock */
  29648. /* LPUART1 clock source configuration done later after clock selection check */
  29649. break;
  29650. default:
  29651. ret = HAL_ERROR;
  29652. 800cc58: 2301 movs r3, #1
  29653. 800cc5a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29654. break;
  29655. 800cc5e: e000 b.n 800cc62 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29656. break;
  29657. 800cc60: bf00 nop
  29658. }
  29659. if (ret == HAL_OK)
  29660. 800cc62: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29661. 800cc66: 2b00 cmp r3, #0
  29662. 800cc68: d10b bne.n 800cc82 <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  29663. {
  29664. /* Set the source of LPUART1 clock */
  29665. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  29666. 800cc6a: 4b6c ldr r3, [pc, #432] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29667. 800cc6c: 6d9b ldr r3, [r3, #88] @ 0x58
  29668. 800cc6e: f023 0107 bic.w r1, r3, #7
  29669. 800cc72: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29670. 800cc76: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  29671. 800cc7a: 4a68 ldr r2, [pc, #416] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29672. 800cc7c: 430b orrs r3, r1
  29673. 800cc7e: 6593 str r3, [r2, #88] @ 0x58
  29674. 800cc80: e003 b.n 800cc8a <HAL_RCCEx_PeriphCLKConfig+0xba6>
  29675. }
  29676. else
  29677. {
  29678. /* set overall return value */
  29679. status = ret;
  29680. 800cc82: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29681. 800cc86: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29682. }
  29683. }
  29684. /*---------------------------- LPTIM1 configuration -------------------------------*/
  29685. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  29686. 800cc8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29687. 800cc8e: e9d3 2300 ldrd r2, r3, [r3]
  29688. 800cc92: f002 0320 and.w r3, r2, #32
  29689. 800cc96: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  29690. 800cc9a: 2300 movs r3, #0
  29691. 800cc9c: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  29692. 800cca0: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  29693. 800cca4: 460b mov r3, r1
  29694. 800cca6: 4313 orrs r3, r2
  29695. 800cca8: d055 beq.n 800cd56 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  29696. {
  29697. switch (PeriphClkInit->Lptim1ClockSelection)
  29698. 800ccaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29699. 800ccae: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29700. 800ccb2: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29701. 800ccb6: d033 beq.n 800cd20 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  29702. 800ccb8: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29703. 800ccbc: d82c bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29704. 800ccbe: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29705. 800ccc2: d02f beq.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  29706. 800ccc4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29707. 800ccc8: d826 bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29708. 800ccca: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29709. 800ccce: d02b beq.n 800cd28 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  29710. 800ccd0: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29711. 800ccd4: d820 bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29712. 800ccd6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29713. 800ccda: d012 beq.n 800cd02 <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  29714. 800ccdc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29715. 800cce0: d81a bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29716. 800cce2: 2b00 cmp r3, #0
  29717. 800cce4: d022 beq.n 800cd2c <HAL_RCCEx_PeriphCLKConfig+0xc48>
  29718. 800cce6: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  29719. 800ccea: d115 bne.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29720. /* LPTIM1 clock source configuration done later after clock selection check */
  29721. break;
  29722. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  29723. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29724. 800ccec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29725. 800ccf0: 3308 adds r3, #8
  29726. 800ccf2: 2100 movs r1, #0
  29727. 800ccf4: 4618 mov r0, r3
  29728. 800ccf6: f001 fd73 bl 800e7e0 <RCCEx_PLL2_Config>
  29729. 800ccfa: 4603 mov r3, r0
  29730. 800ccfc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29731. /* LPTIM1 clock source configuration done later after clock selection check */
  29732. break;
  29733. 800cd00: e015 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29734. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  29735. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29736. 800cd02: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29737. 800cd06: 3328 adds r3, #40 @ 0x28
  29738. 800cd08: 2102 movs r1, #2
  29739. 800cd0a: 4618 mov r0, r3
  29740. 800cd0c: f001 fe1a bl 800e944 <RCCEx_PLL3_Config>
  29741. 800cd10: 4603 mov r3, r0
  29742. 800cd12: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29743. /* LPTIM1 clock source configuration done later after clock selection check */
  29744. break;
  29745. 800cd16: e00a b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29746. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  29747. /* LPTIM1 clock source configuration done later after clock selection check */
  29748. break;
  29749. default:
  29750. ret = HAL_ERROR;
  29751. 800cd18: 2301 movs r3, #1
  29752. 800cd1a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29753. break;
  29754. 800cd1e: e006 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29755. break;
  29756. 800cd20: bf00 nop
  29757. 800cd22: e004 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29758. break;
  29759. 800cd24: bf00 nop
  29760. 800cd26: e002 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29761. break;
  29762. 800cd28: bf00 nop
  29763. 800cd2a: e000 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29764. break;
  29765. 800cd2c: bf00 nop
  29766. }
  29767. if (ret == HAL_OK)
  29768. 800cd2e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29769. 800cd32: 2b00 cmp r3, #0
  29770. 800cd34: d10b bne.n 800cd4e <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  29771. {
  29772. /* Set the source of LPTIM1 clock*/
  29773. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  29774. 800cd36: 4b39 ldr r3, [pc, #228] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29775. 800cd38: 6d5b ldr r3, [r3, #84] @ 0x54
  29776. 800cd3a: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  29777. 800cd3e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29778. 800cd42: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29779. 800cd46: 4a35 ldr r2, [pc, #212] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29780. 800cd48: 430b orrs r3, r1
  29781. 800cd4a: 6553 str r3, [r2, #84] @ 0x54
  29782. 800cd4c: e003 b.n 800cd56 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  29783. }
  29784. else
  29785. {
  29786. /* set overall return value */
  29787. status = ret;
  29788. 800cd4e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29789. 800cd52: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29790. }
  29791. }
  29792. /*---------------------------- LPTIM2 configuration -------------------------------*/
  29793. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  29794. 800cd56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29795. 800cd5a: e9d3 2300 ldrd r2, r3, [r3]
  29796. 800cd5e: f002 0340 and.w r3, r2, #64 @ 0x40
  29797. 800cd62: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  29798. 800cd66: 2300 movs r3, #0
  29799. 800cd68: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  29800. 800cd6c: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  29801. 800cd70: 460b mov r3, r1
  29802. 800cd72: 4313 orrs r3, r2
  29803. 800cd74: d058 beq.n 800ce28 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  29804. {
  29805. switch (PeriphClkInit->Lptim2ClockSelection)
  29806. 800cd76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29807. 800cd7a: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  29808. 800cd7e: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  29809. 800cd82: d033 beq.n 800cdec <HAL_RCCEx_PeriphCLKConfig+0xd08>
  29810. 800cd84: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  29811. 800cd88: d82c bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29812. 800cd8a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29813. 800cd8e: d02f beq.n 800cdf0 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  29814. 800cd90: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29815. 800cd94: d826 bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29816. 800cd96: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  29817. 800cd9a: d02b beq.n 800cdf4 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  29818. 800cd9c: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  29819. 800cda0: d820 bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29820. 800cda2: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  29821. 800cda6: d012 beq.n 800cdce <HAL_RCCEx_PeriphCLKConfig+0xcea>
  29822. 800cda8: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  29823. 800cdac: d81a bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29824. 800cdae: 2b00 cmp r3, #0
  29825. 800cdb0: d022 beq.n 800cdf8 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  29826. 800cdb2: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  29827. 800cdb6: d115 bne.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29828. /* LPTIM2 clock source configuration done later after clock selection check */
  29829. break;
  29830. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  29831. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29832. 800cdb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29833. 800cdbc: 3308 adds r3, #8
  29834. 800cdbe: 2100 movs r1, #0
  29835. 800cdc0: 4618 mov r0, r3
  29836. 800cdc2: f001 fd0d bl 800e7e0 <RCCEx_PLL2_Config>
  29837. 800cdc6: 4603 mov r3, r0
  29838. 800cdc8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29839. /* LPTIM2 clock source configuration done later after clock selection check */
  29840. break;
  29841. 800cdcc: e015 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29842. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  29843. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29844. 800cdce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29845. 800cdd2: 3328 adds r3, #40 @ 0x28
  29846. 800cdd4: 2102 movs r1, #2
  29847. 800cdd6: 4618 mov r0, r3
  29848. 800cdd8: f001 fdb4 bl 800e944 <RCCEx_PLL3_Config>
  29849. 800cddc: 4603 mov r3, r0
  29850. 800cdde: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29851. /* LPTIM2 clock source configuration done later after clock selection check */
  29852. break;
  29853. 800cde2: e00a b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29854. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  29855. /* LPTIM2 clock source configuration done later after clock selection check */
  29856. break;
  29857. default:
  29858. ret = HAL_ERROR;
  29859. 800cde4: 2301 movs r3, #1
  29860. 800cde6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29861. break;
  29862. 800cdea: e006 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29863. break;
  29864. 800cdec: bf00 nop
  29865. 800cdee: e004 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29866. break;
  29867. 800cdf0: bf00 nop
  29868. 800cdf2: e002 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29869. break;
  29870. 800cdf4: bf00 nop
  29871. 800cdf6: e000 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29872. break;
  29873. 800cdf8: bf00 nop
  29874. }
  29875. if (ret == HAL_OK)
  29876. 800cdfa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29877. 800cdfe: 2b00 cmp r3, #0
  29878. 800ce00: d10e bne.n 800ce20 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  29879. {
  29880. /* Set the source of LPTIM2 clock*/
  29881. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  29882. 800ce02: 4b06 ldr r3, [pc, #24] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29883. 800ce04: 6d9b ldr r3, [r3, #88] @ 0x58
  29884. 800ce06: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  29885. 800ce0a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29886. 800ce0e: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  29887. 800ce12: 4a02 ldr r2, [pc, #8] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29888. 800ce14: 430b orrs r3, r1
  29889. 800ce16: 6593 str r3, [r2, #88] @ 0x58
  29890. 800ce18: e006 b.n 800ce28 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  29891. 800ce1a: bf00 nop
  29892. 800ce1c: 58024400 .word 0x58024400
  29893. }
  29894. else
  29895. {
  29896. /* set overall return value */
  29897. status = ret;
  29898. 800ce20: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29899. 800ce24: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29900. }
  29901. }
  29902. /*---------------------------- LPTIM345 configuration -------------------------------*/
  29903. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  29904. 800ce28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29905. 800ce2c: e9d3 2300 ldrd r2, r3, [r3]
  29906. 800ce30: f002 0380 and.w r3, r2, #128 @ 0x80
  29907. 800ce34: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  29908. 800ce38: 2300 movs r3, #0
  29909. 800ce3a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  29910. 800ce3e: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  29911. 800ce42: 460b mov r3, r1
  29912. 800ce44: 4313 orrs r3, r2
  29913. 800ce46: d055 beq.n 800cef4 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  29914. {
  29915. switch (PeriphClkInit->Lptim345ClockSelection)
  29916. 800ce48: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29917. 800ce4c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  29918. 800ce50: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  29919. 800ce54: d033 beq.n 800cebe <HAL_RCCEx_PeriphCLKConfig+0xdda>
  29920. 800ce56: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  29921. 800ce5a: d82c bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29922. 800ce5c: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  29923. 800ce60: d02f beq.n 800cec2 <HAL_RCCEx_PeriphCLKConfig+0xdde>
  29924. 800ce62: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  29925. 800ce66: d826 bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29926. 800ce68: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  29927. 800ce6c: d02b beq.n 800cec6 <HAL_RCCEx_PeriphCLKConfig+0xde2>
  29928. 800ce6e: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  29929. 800ce72: d820 bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29930. 800ce74: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29931. 800ce78: d012 beq.n 800cea0 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  29932. 800ce7a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29933. 800ce7e: d81a bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29934. 800ce80: 2b00 cmp r3, #0
  29935. 800ce82: d022 beq.n 800ceca <HAL_RCCEx_PeriphCLKConfig+0xde6>
  29936. 800ce84: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29937. 800ce88: d115 bne.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29938. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  29939. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29940. break;
  29941. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  29942. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29943. 800ce8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29944. 800ce8e: 3308 adds r3, #8
  29945. 800ce90: 2100 movs r1, #0
  29946. 800ce92: 4618 mov r0, r3
  29947. 800ce94: f001 fca4 bl 800e7e0 <RCCEx_PLL2_Config>
  29948. 800ce98: 4603 mov r3, r0
  29949. 800ce9a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29950. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29951. break;
  29952. 800ce9e: e015 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29953. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  29954. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29955. 800cea0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29956. 800cea4: 3328 adds r3, #40 @ 0x28
  29957. 800cea6: 2102 movs r1, #2
  29958. 800cea8: 4618 mov r0, r3
  29959. 800ceaa: f001 fd4b bl 800e944 <RCCEx_PLL3_Config>
  29960. 800ceae: 4603 mov r3, r0
  29961. 800ceb0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29962. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29963. break;
  29964. 800ceb4: e00a b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29965. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  29966. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29967. break;
  29968. default:
  29969. ret = HAL_ERROR;
  29970. 800ceb6: 2301 movs r3, #1
  29971. 800ceb8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29972. break;
  29973. 800cebc: e006 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29974. break;
  29975. 800cebe: bf00 nop
  29976. 800cec0: e004 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29977. break;
  29978. 800cec2: bf00 nop
  29979. 800cec4: e002 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29980. break;
  29981. 800cec6: bf00 nop
  29982. 800cec8: e000 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29983. break;
  29984. 800ceca: bf00 nop
  29985. }
  29986. if (ret == HAL_OK)
  29987. 800cecc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29988. 800ced0: 2b00 cmp r3, #0
  29989. 800ced2: d10b bne.n 800ceec <HAL_RCCEx_PeriphCLKConfig+0xe08>
  29990. {
  29991. /* Set the source of LPTIM3/4/5 clock */
  29992. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  29993. 800ced4: 4bbb ldr r3, [pc, #748] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29994. 800ced6: 6d9b ldr r3, [r3, #88] @ 0x58
  29995. 800ced8: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  29996. 800cedc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29997. 800cee0: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  29998. 800cee4: 4ab7 ldr r2, [pc, #732] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29999. 800cee6: 430b orrs r3, r1
  30000. 800cee8: 6593 str r3, [r2, #88] @ 0x58
  30001. 800ceea: e003 b.n 800cef4 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  30002. }
  30003. else
  30004. {
  30005. /* set overall return value */
  30006. status = ret;
  30007. 800ceec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30008. 800cef0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30009. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  30010. }
  30011. #else
  30012. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  30013. 800cef4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30014. 800cef8: e9d3 2300 ldrd r2, r3, [r3]
  30015. 800cefc: f002 0308 and.w r3, r2, #8
  30016. 800cf00: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  30017. 800cf04: 2300 movs r3, #0
  30018. 800cf06: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  30019. 800cf0a: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  30020. 800cf0e: 460b mov r3, r1
  30021. 800cf10: 4313 orrs r3, r2
  30022. 800cf12: d01e beq.n 800cf52 <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  30023. {
  30024. /* Check the parameters */
  30025. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  30026. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  30027. 800cf14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30028. 800cf18: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  30029. 800cf1c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30030. 800cf20: d10c bne.n 800cf3c <HAL_RCCEx_PeriphCLKConfig+0xe58>
  30031. {
  30032. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  30033. 800cf22: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30034. 800cf26: 3328 adds r3, #40 @ 0x28
  30035. 800cf28: 2102 movs r1, #2
  30036. 800cf2a: 4618 mov r0, r3
  30037. 800cf2c: f001 fd0a bl 800e944 <RCCEx_PLL3_Config>
  30038. 800cf30: 4603 mov r3, r0
  30039. 800cf32: 2b00 cmp r3, #0
  30040. 800cf34: d002 beq.n 800cf3c <HAL_RCCEx_PeriphCLKConfig+0xe58>
  30041. {
  30042. status = HAL_ERROR;
  30043. 800cf36: 2301 movs r3, #1
  30044. 800cf38: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30045. }
  30046. }
  30047. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  30048. 800cf3c: 4ba1 ldr r3, [pc, #644] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30049. 800cf3e: 6d5b ldr r3, [r3, #84] @ 0x54
  30050. 800cf40: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  30051. 800cf44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30052. 800cf48: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  30053. 800cf4c: 4a9d ldr r2, [pc, #628] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30054. 800cf4e: 430b orrs r3, r1
  30055. 800cf50: 6553 str r3, [r2, #84] @ 0x54
  30056. }
  30057. #endif /* I2C5 */
  30058. /*------------------------------ I2C4 Configuration ------------------------*/
  30059. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  30060. 800cf52: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30061. 800cf56: e9d3 2300 ldrd r2, r3, [r3]
  30062. 800cf5a: f002 0310 and.w r3, r2, #16
  30063. 800cf5e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  30064. 800cf62: 2300 movs r3, #0
  30065. 800cf64: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  30066. 800cf68: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  30067. 800cf6c: 460b mov r3, r1
  30068. 800cf6e: 4313 orrs r3, r2
  30069. 800cf70: d01e beq.n 800cfb0 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  30070. {
  30071. /* Check the parameters */
  30072. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  30073. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  30074. 800cf72: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30075. 800cf76: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  30076. 800cf7a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30077. 800cf7e: d10c bne.n 800cf9a <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  30078. {
  30079. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  30080. 800cf80: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30081. 800cf84: 3328 adds r3, #40 @ 0x28
  30082. 800cf86: 2102 movs r1, #2
  30083. 800cf88: 4618 mov r0, r3
  30084. 800cf8a: f001 fcdb bl 800e944 <RCCEx_PLL3_Config>
  30085. 800cf8e: 4603 mov r3, r0
  30086. 800cf90: 2b00 cmp r3, #0
  30087. 800cf92: d002 beq.n 800cf9a <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  30088. {
  30089. status = HAL_ERROR;
  30090. 800cf94: 2301 movs r3, #1
  30091. 800cf96: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30092. }
  30093. }
  30094. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  30095. 800cf9a: 4b8a ldr r3, [pc, #552] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30096. 800cf9c: 6d9b ldr r3, [r3, #88] @ 0x58
  30097. 800cf9e: f423 7140 bic.w r1, r3, #768 @ 0x300
  30098. 800cfa2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30099. 800cfa6: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  30100. 800cfaa: 4a86 ldr r2, [pc, #536] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30101. 800cfac: 430b orrs r3, r1
  30102. 800cfae: 6593 str r3, [r2, #88] @ 0x58
  30103. }
  30104. /*---------------------------- ADC configuration -------------------------------*/
  30105. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  30106. 800cfb0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30107. 800cfb4: e9d3 2300 ldrd r2, r3, [r3]
  30108. 800cfb8: f402 2300 and.w r3, r2, #524288 @ 0x80000
  30109. 800cfbc: 67bb str r3, [r7, #120] @ 0x78
  30110. 800cfbe: 2300 movs r3, #0
  30111. 800cfc0: 67fb str r3, [r7, #124] @ 0x7c
  30112. 800cfc2: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  30113. 800cfc6: 460b mov r3, r1
  30114. 800cfc8: 4313 orrs r3, r2
  30115. 800cfca: d03e beq.n 800d04a <HAL_RCCEx_PeriphCLKConfig+0xf66>
  30116. {
  30117. switch (PeriphClkInit->AdcClockSelection)
  30118. 800cfcc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30119. 800cfd0: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  30120. 800cfd4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30121. 800cfd8: d022 beq.n 800d020 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  30122. 800cfda: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30123. 800cfde: d81b bhi.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  30124. 800cfe0: 2b00 cmp r3, #0
  30125. 800cfe2: d003 beq.n 800cfec <HAL_RCCEx_PeriphCLKConfig+0xf08>
  30126. 800cfe4: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  30127. 800cfe8: d00b beq.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  30128. 800cfea: e015 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  30129. {
  30130. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  30131. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30132. 800cfec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30133. 800cff0: 3308 adds r3, #8
  30134. 800cff2: 2100 movs r1, #0
  30135. 800cff4: 4618 mov r0, r3
  30136. 800cff6: f001 fbf3 bl 800e7e0 <RCCEx_PLL2_Config>
  30137. 800cffa: 4603 mov r3, r0
  30138. 800cffc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30139. /* ADC clock source configuration done later after clock selection check */
  30140. break;
  30141. 800d000: e00f b.n 800d022 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30142. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  30143. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30144. 800d002: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30145. 800d006: 3328 adds r3, #40 @ 0x28
  30146. 800d008: 2102 movs r1, #2
  30147. 800d00a: 4618 mov r0, r3
  30148. 800d00c: f001 fc9a bl 800e944 <RCCEx_PLL3_Config>
  30149. 800d010: 4603 mov r3, r0
  30150. 800d012: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30151. /* ADC clock source configuration done later after clock selection check */
  30152. break;
  30153. 800d016: e004 b.n 800d022 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30154. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  30155. /* ADC clock source configuration done later after clock selection check */
  30156. break;
  30157. default:
  30158. ret = HAL_ERROR;
  30159. 800d018: 2301 movs r3, #1
  30160. 800d01a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30161. break;
  30162. 800d01e: e000 b.n 800d022 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30163. break;
  30164. 800d020: bf00 nop
  30165. }
  30166. if (ret == HAL_OK)
  30167. 800d022: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30168. 800d026: 2b00 cmp r3, #0
  30169. 800d028: d10b bne.n 800d042 <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  30170. {
  30171. /* Set the source of ADC clock*/
  30172. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  30173. 800d02a: 4b66 ldr r3, [pc, #408] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30174. 800d02c: 6d9b ldr r3, [r3, #88] @ 0x58
  30175. 800d02e: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  30176. 800d032: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30177. 800d036: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  30178. 800d03a: 4a62 ldr r2, [pc, #392] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30179. 800d03c: 430b orrs r3, r1
  30180. 800d03e: 6593 str r3, [r2, #88] @ 0x58
  30181. 800d040: e003 b.n 800d04a <HAL_RCCEx_PeriphCLKConfig+0xf66>
  30182. }
  30183. else
  30184. {
  30185. /* set overall return value */
  30186. status = ret;
  30187. 800d042: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30188. 800d046: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30189. }
  30190. }
  30191. /*------------------------------ USB Configuration -------------------------*/
  30192. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  30193. 800d04a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30194. 800d04e: e9d3 2300 ldrd r2, r3, [r3]
  30195. 800d052: f402 2380 and.w r3, r2, #262144 @ 0x40000
  30196. 800d056: 673b str r3, [r7, #112] @ 0x70
  30197. 800d058: 2300 movs r3, #0
  30198. 800d05a: 677b str r3, [r7, #116] @ 0x74
  30199. 800d05c: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  30200. 800d060: 460b mov r3, r1
  30201. 800d062: 4313 orrs r3, r2
  30202. 800d064: d03b beq.n 800d0de <HAL_RCCEx_PeriphCLKConfig+0xffa>
  30203. {
  30204. switch (PeriphClkInit->UsbClockSelection)
  30205. 800d066: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30206. 800d06a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30207. 800d06e: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  30208. 800d072: d01f beq.n 800d0b4 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  30209. 800d074: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  30210. 800d078: d818 bhi.n 800d0ac <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  30211. 800d07a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  30212. 800d07e: d003 beq.n 800d088 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  30213. 800d080: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  30214. 800d084: d007 beq.n 800d096 <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  30215. 800d086: e011 b.n 800d0ac <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  30216. {
  30217. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  30218. /* Enable USB Clock output generated form System USB . */
  30219. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30220. 800d088: 4b4e ldr r3, [pc, #312] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30221. 800d08a: 6adb ldr r3, [r3, #44] @ 0x2c
  30222. 800d08c: 4a4d ldr r2, [pc, #308] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30223. 800d08e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30224. 800d092: 62d3 str r3, [r2, #44] @ 0x2c
  30225. /* USB clock source configuration done later after clock selection check */
  30226. break;
  30227. 800d094: e00f b.n 800d0b6 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30228. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  30229. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30230. 800d096: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30231. 800d09a: 3328 adds r3, #40 @ 0x28
  30232. 800d09c: 2101 movs r1, #1
  30233. 800d09e: 4618 mov r0, r3
  30234. 800d0a0: f001 fc50 bl 800e944 <RCCEx_PLL3_Config>
  30235. 800d0a4: 4603 mov r3, r0
  30236. 800d0a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30237. /* USB clock source configuration done later after clock selection check */
  30238. break;
  30239. 800d0aa: e004 b.n 800d0b6 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30240. /* HSI48 oscillator is used as source of USB clock */
  30241. /* USB clock source configuration done later after clock selection check */
  30242. break;
  30243. default:
  30244. ret = HAL_ERROR;
  30245. 800d0ac: 2301 movs r3, #1
  30246. 800d0ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30247. break;
  30248. 800d0b2: e000 b.n 800d0b6 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30249. break;
  30250. 800d0b4: bf00 nop
  30251. }
  30252. if (ret == HAL_OK)
  30253. 800d0b6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30254. 800d0ba: 2b00 cmp r3, #0
  30255. 800d0bc: d10b bne.n 800d0d6 <HAL_RCCEx_PeriphCLKConfig+0xff2>
  30256. {
  30257. /* Set the source of USB clock*/
  30258. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  30259. 800d0be: 4b41 ldr r3, [pc, #260] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30260. 800d0c0: 6d5b ldr r3, [r3, #84] @ 0x54
  30261. 800d0c2: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  30262. 800d0c6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30263. 800d0ca: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30264. 800d0ce: 4a3d ldr r2, [pc, #244] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30265. 800d0d0: 430b orrs r3, r1
  30266. 800d0d2: 6553 str r3, [r2, #84] @ 0x54
  30267. 800d0d4: e003 b.n 800d0de <HAL_RCCEx_PeriphCLKConfig+0xffa>
  30268. }
  30269. else
  30270. {
  30271. /* set overall return value */
  30272. status = ret;
  30273. 800d0d6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30274. 800d0da: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30275. }
  30276. }
  30277. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  30278. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  30279. 800d0de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30280. 800d0e2: e9d3 2300 ldrd r2, r3, [r3]
  30281. 800d0e6: f402 3380 and.w r3, r2, #65536 @ 0x10000
  30282. 800d0ea: 66bb str r3, [r7, #104] @ 0x68
  30283. 800d0ec: 2300 movs r3, #0
  30284. 800d0ee: 66fb str r3, [r7, #108] @ 0x6c
  30285. 800d0f0: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  30286. 800d0f4: 460b mov r3, r1
  30287. 800d0f6: 4313 orrs r3, r2
  30288. 800d0f8: d031 beq.n 800d15e <HAL_RCCEx_PeriphCLKConfig+0x107a>
  30289. {
  30290. /* Check the parameters */
  30291. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  30292. switch (PeriphClkInit->SdmmcClockSelection)
  30293. 800d0fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30294. 800d0fe: 6d1b ldr r3, [r3, #80] @ 0x50
  30295. 800d100: 2b00 cmp r3, #0
  30296. 800d102: d003 beq.n 800d10c <HAL_RCCEx_PeriphCLKConfig+0x1028>
  30297. 800d104: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  30298. 800d108: d007 beq.n 800d11a <HAL_RCCEx_PeriphCLKConfig+0x1036>
  30299. 800d10a: e011 b.n 800d130 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  30300. {
  30301. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  30302. /* Enable SDMMC Clock output generated form System PLL . */
  30303. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30304. 800d10c: 4b2d ldr r3, [pc, #180] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30305. 800d10e: 6adb ldr r3, [r3, #44] @ 0x2c
  30306. 800d110: 4a2c ldr r2, [pc, #176] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30307. 800d112: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30308. 800d116: 62d3 str r3, [r2, #44] @ 0x2c
  30309. /* SDMMC clock source configuration done later after clock selection check */
  30310. break;
  30311. 800d118: e00e b.n 800d138 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  30312. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  30313. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30314. 800d11a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30315. 800d11e: 3308 adds r3, #8
  30316. 800d120: 2102 movs r1, #2
  30317. 800d122: 4618 mov r0, r3
  30318. 800d124: f001 fb5c bl 800e7e0 <RCCEx_PLL2_Config>
  30319. 800d128: 4603 mov r3, r0
  30320. 800d12a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30321. /* SDMMC clock source configuration done later after clock selection check */
  30322. break;
  30323. 800d12e: e003 b.n 800d138 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  30324. default:
  30325. ret = HAL_ERROR;
  30326. 800d130: 2301 movs r3, #1
  30327. 800d132: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30328. break;
  30329. 800d136: bf00 nop
  30330. }
  30331. if (ret == HAL_OK)
  30332. 800d138: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30333. 800d13c: 2b00 cmp r3, #0
  30334. 800d13e: d10a bne.n 800d156 <HAL_RCCEx_PeriphCLKConfig+0x1072>
  30335. {
  30336. /* Set the source of SDMMC clock*/
  30337. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  30338. 800d140: 4b20 ldr r3, [pc, #128] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30339. 800d142: 6cdb ldr r3, [r3, #76] @ 0x4c
  30340. 800d144: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  30341. 800d148: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30342. 800d14c: 6d1b ldr r3, [r3, #80] @ 0x50
  30343. 800d14e: 4a1d ldr r2, [pc, #116] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30344. 800d150: 430b orrs r3, r1
  30345. 800d152: 64d3 str r3, [r2, #76] @ 0x4c
  30346. 800d154: e003 b.n 800d15e <HAL_RCCEx_PeriphCLKConfig+0x107a>
  30347. }
  30348. else
  30349. {
  30350. /* set overall return value */
  30351. status = ret;
  30352. 800d156: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30353. 800d15a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30354. }
  30355. }
  30356. #endif /* LTDC */
  30357. /*------------------------------ RNG Configuration -------------------------*/
  30358. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  30359. 800d15e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30360. 800d162: e9d3 2300 ldrd r2, r3, [r3]
  30361. 800d166: f402 3300 and.w r3, r2, #131072 @ 0x20000
  30362. 800d16a: 663b str r3, [r7, #96] @ 0x60
  30363. 800d16c: 2300 movs r3, #0
  30364. 800d16e: 667b str r3, [r7, #100] @ 0x64
  30365. 800d170: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  30366. 800d174: 460b mov r3, r1
  30367. 800d176: 4313 orrs r3, r2
  30368. 800d178: d03b beq.n 800d1f2 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  30369. {
  30370. switch (PeriphClkInit->RngClockSelection)
  30371. 800d17a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30372. 800d17e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30373. 800d182: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30374. 800d186: d018 beq.n 800d1ba <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  30375. 800d188: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30376. 800d18c: d811 bhi.n 800d1b2 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30377. 800d18e: f5b3 7f00 cmp.w r3, #512 @ 0x200
  30378. 800d192: d014 beq.n 800d1be <HAL_RCCEx_PeriphCLKConfig+0x10da>
  30379. 800d194: f5b3 7f00 cmp.w r3, #512 @ 0x200
  30380. 800d198: d80b bhi.n 800d1b2 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30381. 800d19a: 2b00 cmp r3, #0
  30382. 800d19c: d014 beq.n 800d1c8 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  30383. 800d19e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30384. 800d1a2: d106 bne.n 800d1b2 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30385. {
  30386. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  30387. /* Enable RNG Clock output generated form System RNG . */
  30388. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30389. 800d1a4: 4b07 ldr r3, [pc, #28] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30390. 800d1a6: 6adb ldr r3, [r3, #44] @ 0x2c
  30391. 800d1a8: 4a06 ldr r2, [pc, #24] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30392. 800d1aa: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30393. 800d1ae: 62d3 str r3, [r2, #44] @ 0x2c
  30394. /* RNG clock source configuration done later after clock selection check */
  30395. break;
  30396. 800d1b0: e00b b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30397. /* HSI48 oscillator is used as source of RNG clock */
  30398. /* RNG clock source configuration done later after clock selection check */
  30399. break;
  30400. default:
  30401. ret = HAL_ERROR;
  30402. 800d1b2: 2301 movs r3, #1
  30403. 800d1b4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30404. break;
  30405. 800d1b8: e007 b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30406. break;
  30407. 800d1ba: bf00 nop
  30408. 800d1bc: e005 b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30409. break;
  30410. 800d1be: bf00 nop
  30411. 800d1c0: e003 b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30412. 800d1c2: bf00 nop
  30413. 800d1c4: 58024400 .word 0x58024400
  30414. break;
  30415. 800d1c8: bf00 nop
  30416. }
  30417. if (ret == HAL_OK)
  30418. 800d1ca: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30419. 800d1ce: 2b00 cmp r3, #0
  30420. 800d1d0: d10b bne.n 800d1ea <HAL_RCCEx_PeriphCLKConfig+0x1106>
  30421. {
  30422. /* Set the source of RNG clock*/
  30423. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  30424. 800d1d2: 4bba ldr r3, [pc, #744] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30425. 800d1d4: 6d5b ldr r3, [r3, #84] @ 0x54
  30426. 800d1d6: f423 7140 bic.w r1, r3, #768 @ 0x300
  30427. 800d1da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30428. 800d1de: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30429. 800d1e2: 4ab6 ldr r2, [pc, #728] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30430. 800d1e4: 430b orrs r3, r1
  30431. 800d1e6: 6553 str r3, [r2, #84] @ 0x54
  30432. 800d1e8: e003 b.n 800d1f2 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  30433. }
  30434. else
  30435. {
  30436. /* set overall return value */
  30437. status = ret;
  30438. 800d1ea: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30439. 800d1ee: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30440. }
  30441. }
  30442. /*------------------------------ SWPMI1 Configuration ------------------------*/
  30443. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  30444. 800d1f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30445. 800d1f6: e9d3 2300 ldrd r2, r3, [r3]
  30446. 800d1fa: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  30447. 800d1fe: 65bb str r3, [r7, #88] @ 0x58
  30448. 800d200: 2300 movs r3, #0
  30449. 800d202: 65fb str r3, [r7, #92] @ 0x5c
  30450. 800d204: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  30451. 800d208: 460b mov r3, r1
  30452. 800d20a: 4313 orrs r3, r2
  30453. 800d20c: d009 beq.n 800d222 <HAL_RCCEx_PeriphCLKConfig+0x113e>
  30454. {
  30455. /* Check the parameters */
  30456. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  30457. /* Configure the SWPMI1 interface clock source */
  30458. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  30459. 800d20e: 4bab ldr r3, [pc, #684] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30460. 800d210: 6d1b ldr r3, [r3, #80] @ 0x50
  30461. 800d212: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  30462. 800d216: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30463. 800d21a: 6f5b ldr r3, [r3, #116] @ 0x74
  30464. 800d21c: 4aa7 ldr r2, [pc, #668] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30465. 800d21e: 430b orrs r3, r1
  30466. 800d220: 6513 str r3, [r2, #80] @ 0x50
  30467. }
  30468. #if defined(HRTIM1)
  30469. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  30470. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  30471. 800d222: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30472. 800d226: e9d3 2300 ldrd r2, r3, [r3]
  30473. 800d22a: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  30474. 800d22e: 653b str r3, [r7, #80] @ 0x50
  30475. 800d230: 2300 movs r3, #0
  30476. 800d232: 657b str r3, [r7, #84] @ 0x54
  30477. 800d234: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  30478. 800d238: 460b mov r3, r1
  30479. 800d23a: 4313 orrs r3, r2
  30480. 800d23c: d00a beq.n 800d254 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  30481. {
  30482. /* Check the parameters */
  30483. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  30484. /* Configure the HRTIM1 clock source */
  30485. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  30486. 800d23e: 4b9f ldr r3, [pc, #636] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30487. 800d240: 691b ldr r3, [r3, #16]
  30488. 800d242: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  30489. 800d246: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30490. 800d24a: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  30491. 800d24e: 4a9b ldr r2, [pc, #620] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30492. 800d250: 430b orrs r3, r1
  30493. 800d252: 6113 str r3, [r2, #16]
  30494. }
  30495. #endif /*HRTIM1*/
  30496. /*------------------------------ DFSDM1 Configuration ------------------------*/
  30497. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  30498. 800d254: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30499. 800d258: e9d3 2300 ldrd r2, r3, [r3]
  30500. 800d25c: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  30501. 800d260: 64bb str r3, [r7, #72] @ 0x48
  30502. 800d262: 2300 movs r3, #0
  30503. 800d264: 64fb str r3, [r7, #76] @ 0x4c
  30504. 800d266: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  30505. 800d26a: 460b mov r3, r1
  30506. 800d26c: 4313 orrs r3, r2
  30507. 800d26e: d009 beq.n 800d284 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  30508. {
  30509. /* Check the parameters */
  30510. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  30511. /* Configure the DFSDM1 interface clock source */
  30512. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  30513. 800d270: 4b92 ldr r3, [pc, #584] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30514. 800d272: 6d1b ldr r3, [r3, #80] @ 0x50
  30515. 800d274: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  30516. 800d278: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30517. 800d27c: 6edb ldr r3, [r3, #108] @ 0x6c
  30518. 800d27e: 4a8f ldr r2, [pc, #572] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30519. 800d280: 430b orrs r3, r1
  30520. 800d282: 6513 str r3, [r2, #80] @ 0x50
  30521. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  30522. }
  30523. #endif /* DFSDM2 */
  30524. /*------------------------------------ TIM configuration --------------------------------------*/
  30525. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  30526. 800d284: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30527. 800d288: e9d3 2300 ldrd r2, r3, [r3]
  30528. 800d28c: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  30529. 800d290: 643b str r3, [r7, #64] @ 0x40
  30530. 800d292: 2300 movs r3, #0
  30531. 800d294: 647b str r3, [r7, #68] @ 0x44
  30532. 800d296: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  30533. 800d29a: 460b mov r3, r1
  30534. 800d29c: 4313 orrs r3, r2
  30535. 800d29e: d00e beq.n 800d2be <HAL_RCCEx_PeriphCLKConfig+0x11da>
  30536. {
  30537. /* Check the parameters */
  30538. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  30539. /* Configure Timer Prescaler */
  30540. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  30541. 800d2a0: 4b86 ldr r3, [pc, #536] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30542. 800d2a2: 691b ldr r3, [r3, #16]
  30543. 800d2a4: 4a85 ldr r2, [pc, #532] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30544. 800d2a6: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  30545. 800d2aa: 6113 str r3, [r2, #16]
  30546. 800d2ac: 4b83 ldr r3, [pc, #524] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30547. 800d2ae: 6919 ldr r1, [r3, #16]
  30548. 800d2b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30549. 800d2b4: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  30550. 800d2b8: 4a80 ldr r2, [pc, #512] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30551. 800d2ba: 430b orrs r3, r1
  30552. 800d2bc: 6113 str r3, [r2, #16]
  30553. }
  30554. /*------------------------------------ CKPER configuration --------------------------------------*/
  30555. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  30556. 800d2be: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30557. 800d2c2: e9d3 2300 ldrd r2, r3, [r3]
  30558. 800d2c6: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  30559. 800d2ca: 63bb str r3, [r7, #56] @ 0x38
  30560. 800d2cc: 2300 movs r3, #0
  30561. 800d2ce: 63fb str r3, [r7, #60] @ 0x3c
  30562. 800d2d0: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  30563. 800d2d4: 460b mov r3, r1
  30564. 800d2d6: 4313 orrs r3, r2
  30565. 800d2d8: d009 beq.n 800d2ee <HAL_RCCEx_PeriphCLKConfig+0x120a>
  30566. {
  30567. /* Check the parameters */
  30568. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  30569. /* Configure the CKPER clock source */
  30570. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  30571. 800d2da: 4b78 ldr r3, [pc, #480] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30572. 800d2dc: 6cdb ldr r3, [r3, #76] @ 0x4c
  30573. 800d2de: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  30574. 800d2e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30575. 800d2e6: 6d5b ldr r3, [r3, #84] @ 0x54
  30576. 800d2e8: 4a74 ldr r2, [pc, #464] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30577. 800d2ea: 430b orrs r3, r1
  30578. 800d2ec: 64d3 str r3, [r2, #76] @ 0x4c
  30579. }
  30580. /*------------------------------ CEC Configuration ------------------------*/
  30581. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  30582. 800d2ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30583. 800d2f2: e9d3 2300 ldrd r2, r3, [r3]
  30584. 800d2f6: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  30585. 800d2fa: 633b str r3, [r7, #48] @ 0x30
  30586. 800d2fc: 2300 movs r3, #0
  30587. 800d2fe: 637b str r3, [r7, #52] @ 0x34
  30588. 800d300: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  30589. 800d304: 460b mov r3, r1
  30590. 800d306: 4313 orrs r3, r2
  30591. 800d308: d00a beq.n 800d320 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  30592. {
  30593. /* Check the parameters */
  30594. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  30595. /* Configure the CEC interface clock source */
  30596. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  30597. 800d30a: 4b6c ldr r3, [pc, #432] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30598. 800d30c: 6d5b ldr r3, [r3, #84] @ 0x54
  30599. 800d30e: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  30600. 800d312: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30601. 800d316: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  30602. 800d31a: 4a68 ldr r2, [pc, #416] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30603. 800d31c: 430b orrs r3, r1
  30604. 800d31e: 6553 str r3, [r2, #84] @ 0x54
  30605. }
  30606. /*---------------------------- PLL2 configuration -------------------------------*/
  30607. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  30608. 800d320: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30609. 800d324: e9d3 2300 ldrd r2, r3, [r3]
  30610. 800d328: 2100 movs r1, #0
  30611. 800d32a: 62b9 str r1, [r7, #40] @ 0x28
  30612. 800d32c: f003 0301 and.w r3, r3, #1
  30613. 800d330: 62fb str r3, [r7, #44] @ 0x2c
  30614. 800d332: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  30615. 800d336: 460b mov r3, r1
  30616. 800d338: 4313 orrs r3, r2
  30617. 800d33a: d011 beq.n 800d360 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  30618. {
  30619. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30620. 800d33c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30621. 800d340: 3308 adds r3, #8
  30622. 800d342: 2100 movs r1, #0
  30623. 800d344: 4618 mov r0, r3
  30624. 800d346: f001 fa4b bl 800e7e0 <RCCEx_PLL2_Config>
  30625. 800d34a: 4603 mov r3, r0
  30626. 800d34c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30627. if (ret == HAL_OK)
  30628. 800d350: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30629. 800d354: 2b00 cmp r3, #0
  30630. 800d356: d003 beq.n 800d360 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  30631. /*Nothing to do*/
  30632. }
  30633. else
  30634. {
  30635. /* set overall return value */
  30636. status = ret;
  30637. 800d358: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30638. 800d35c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30639. }
  30640. }
  30641. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  30642. 800d360: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30643. 800d364: e9d3 2300 ldrd r2, r3, [r3]
  30644. 800d368: 2100 movs r1, #0
  30645. 800d36a: 6239 str r1, [r7, #32]
  30646. 800d36c: f003 0302 and.w r3, r3, #2
  30647. 800d370: 627b str r3, [r7, #36] @ 0x24
  30648. 800d372: e9d7 1208 ldrd r1, r2, [r7, #32]
  30649. 800d376: 460b mov r3, r1
  30650. 800d378: 4313 orrs r3, r2
  30651. 800d37a: d011 beq.n 800d3a0 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  30652. {
  30653. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30654. 800d37c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30655. 800d380: 3308 adds r3, #8
  30656. 800d382: 2101 movs r1, #1
  30657. 800d384: 4618 mov r0, r3
  30658. 800d386: f001 fa2b bl 800e7e0 <RCCEx_PLL2_Config>
  30659. 800d38a: 4603 mov r3, r0
  30660. 800d38c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30661. if (ret == HAL_OK)
  30662. 800d390: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30663. 800d394: 2b00 cmp r3, #0
  30664. 800d396: d003 beq.n 800d3a0 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  30665. /*Nothing to do*/
  30666. }
  30667. else
  30668. {
  30669. /* set overall return value */
  30670. status = ret;
  30671. 800d398: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30672. 800d39c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30673. }
  30674. }
  30675. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  30676. 800d3a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30677. 800d3a4: e9d3 2300 ldrd r2, r3, [r3]
  30678. 800d3a8: 2100 movs r1, #0
  30679. 800d3aa: 61b9 str r1, [r7, #24]
  30680. 800d3ac: f003 0304 and.w r3, r3, #4
  30681. 800d3b0: 61fb str r3, [r7, #28]
  30682. 800d3b2: e9d7 1206 ldrd r1, r2, [r7, #24]
  30683. 800d3b6: 460b mov r3, r1
  30684. 800d3b8: 4313 orrs r3, r2
  30685. 800d3ba: d011 beq.n 800d3e0 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  30686. {
  30687. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30688. 800d3bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30689. 800d3c0: 3308 adds r3, #8
  30690. 800d3c2: 2102 movs r1, #2
  30691. 800d3c4: 4618 mov r0, r3
  30692. 800d3c6: f001 fa0b bl 800e7e0 <RCCEx_PLL2_Config>
  30693. 800d3ca: 4603 mov r3, r0
  30694. 800d3cc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30695. if (ret == HAL_OK)
  30696. 800d3d0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30697. 800d3d4: 2b00 cmp r3, #0
  30698. 800d3d6: d003 beq.n 800d3e0 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  30699. /*Nothing to do*/
  30700. }
  30701. else
  30702. {
  30703. /* set overall return value */
  30704. status = ret;
  30705. 800d3d8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30706. 800d3dc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30707. }
  30708. }
  30709. /*---------------------------- PLL3 configuration -------------------------------*/
  30710. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  30711. 800d3e0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30712. 800d3e4: e9d3 2300 ldrd r2, r3, [r3]
  30713. 800d3e8: 2100 movs r1, #0
  30714. 800d3ea: 6139 str r1, [r7, #16]
  30715. 800d3ec: f003 0308 and.w r3, r3, #8
  30716. 800d3f0: 617b str r3, [r7, #20]
  30717. 800d3f2: e9d7 1204 ldrd r1, r2, [r7, #16]
  30718. 800d3f6: 460b mov r3, r1
  30719. 800d3f8: 4313 orrs r3, r2
  30720. 800d3fa: d011 beq.n 800d420 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  30721. {
  30722. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  30723. 800d3fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30724. 800d400: 3328 adds r3, #40 @ 0x28
  30725. 800d402: 2100 movs r1, #0
  30726. 800d404: 4618 mov r0, r3
  30727. 800d406: f001 fa9d bl 800e944 <RCCEx_PLL3_Config>
  30728. 800d40a: 4603 mov r3, r0
  30729. 800d40c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30730. if (ret == HAL_OK)
  30731. 800d410: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30732. 800d414: 2b00 cmp r3, #0
  30733. 800d416: d003 beq.n 800d420 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  30734. /*Nothing to do*/
  30735. }
  30736. else
  30737. {
  30738. /* set overall return value */
  30739. status = ret;
  30740. 800d418: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30741. 800d41c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30742. }
  30743. }
  30744. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  30745. 800d420: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30746. 800d424: e9d3 2300 ldrd r2, r3, [r3]
  30747. 800d428: 2100 movs r1, #0
  30748. 800d42a: 60b9 str r1, [r7, #8]
  30749. 800d42c: f003 0310 and.w r3, r3, #16
  30750. 800d430: 60fb str r3, [r7, #12]
  30751. 800d432: e9d7 1202 ldrd r1, r2, [r7, #8]
  30752. 800d436: 460b mov r3, r1
  30753. 800d438: 4313 orrs r3, r2
  30754. 800d43a: d011 beq.n 800d460 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  30755. {
  30756. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30757. 800d43c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30758. 800d440: 3328 adds r3, #40 @ 0x28
  30759. 800d442: 2101 movs r1, #1
  30760. 800d444: 4618 mov r0, r3
  30761. 800d446: f001 fa7d bl 800e944 <RCCEx_PLL3_Config>
  30762. 800d44a: 4603 mov r3, r0
  30763. 800d44c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30764. if (ret == HAL_OK)
  30765. 800d450: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30766. 800d454: 2b00 cmp r3, #0
  30767. 800d456: d003 beq.n 800d460 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  30768. /*Nothing to do*/
  30769. }
  30770. else
  30771. {
  30772. /* set overall return value */
  30773. status = ret;
  30774. 800d458: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30775. 800d45c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30776. }
  30777. }
  30778. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  30779. 800d460: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30780. 800d464: e9d3 2300 ldrd r2, r3, [r3]
  30781. 800d468: 2100 movs r1, #0
  30782. 800d46a: 6039 str r1, [r7, #0]
  30783. 800d46c: f003 0320 and.w r3, r3, #32
  30784. 800d470: 607b str r3, [r7, #4]
  30785. 800d472: e9d7 1200 ldrd r1, r2, [r7]
  30786. 800d476: 460b mov r3, r1
  30787. 800d478: 4313 orrs r3, r2
  30788. 800d47a: d011 beq.n 800d4a0 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  30789. {
  30790. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30791. 800d47c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30792. 800d480: 3328 adds r3, #40 @ 0x28
  30793. 800d482: 2102 movs r1, #2
  30794. 800d484: 4618 mov r0, r3
  30795. 800d486: f001 fa5d bl 800e944 <RCCEx_PLL3_Config>
  30796. 800d48a: 4603 mov r3, r0
  30797. 800d48c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30798. if (ret == HAL_OK)
  30799. 800d490: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30800. 800d494: 2b00 cmp r3, #0
  30801. 800d496: d003 beq.n 800d4a0 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  30802. /*Nothing to do*/
  30803. }
  30804. else
  30805. {
  30806. /* set overall return value */
  30807. status = ret;
  30808. 800d498: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30809. 800d49c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30810. }
  30811. }
  30812. if (status == HAL_OK)
  30813. 800d4a0: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  30814. 800d4a4: 2b00 cmp r3, #0
  30815. 800d4a6: d101 bne.n 800d4ac <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  30816. {
  30817. return HAL_OK;
  30818. 800d4a8: 2300 movs r3, #0
  30819. 800d4aa: e000 b.n 800d4ae <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  30820. }
  30821. return HAL_ERROR;
  30822. 800d4ac: 2301 movs r3, #1
  30823. }
  30824. 800d4ae: 4618 mov r0, r3
  30825. 800d4b0: f507 7790 add.w r7, r7, #288 @ 0x120
  30826. 800d4b4: 46bd mov sp, r7
  30827. 800d4b6: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  30828. 800d4ba: bf00 nop
  30829. 800d4bc: 58024400 .word 0x58024400
  30830. 0800d4c0 <HAL_RCCEx_GetPeriphCLKFreq>:
  30831. * @retval Frequency in KHz
  30832. *
  30833. * (*) : Available on some STM32H7 lines only.
  30834. */
  30835. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  30836. {
  30837. 800d4c0: b580 push {r7, lr}
  30838. 800d4c2: b090 sub sp, #64 @ 0x40
  30839. 800d4c4: af00 add r7, sp, #0
  30840. 800d4c6: e9c7 0100 strd r0, r1, [r7]
  30841. /* This variable is used to store the SAI and CKP clock source */
  30842. uint32_t saiclocksource;
  30843. uint32_t ckpclocksource;
  30844. uint32_t srcclk;
  30845. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  30846. 800d4ca: e9d7 2300 ldrd r2, r3, [r7]
  30847. 800d4ce: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  30848. 800d4d2: 430b orrs r3, r1
  30849. 800d4d4: f040 8094 bne.w 800d600 <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  30850. {
  30851. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  30852. 800d4d8: 4b9e ldr r3, [pc, #632] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30853. 800d4da: 6d1b ldr r3, [r3, #80] @ 0x50
  30854. 800d4dc: f003 0307 and.w r3, r3, #7
  30855. 800d4e0: 633b str r3, [r7, #48] @ 0x30
  30856. switch (saiclocksource)
  30857. 800d4e2: 6b3b ldr r3, [r7, #48] @ 0x30
  30858. 800d4e4: 2b04 cmp r3, #4
  30859. 800d4e6: f200 8087 bhi.w 800d5f8 <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  30860. 800d4ea: a201 add r2, pc, #4 @ (adr r2, 800d4f0 <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  30861. 800d4ec: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30862. 800d4f0: 0800d505 .word 0x0800d505
  30863. 800d4f4: 0800d52d .word 0x0800d52d
  30864. 800d4f8: 0800d555 .word 0x0800d555
  30865. 800d4fc: 0800d5f1 .word 0x0800d5f1
  30866. 800d500: 0800d57d .word 0x0800d57d
  30867. {
  30868. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  30869. {
  30870. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  30871. 800d504: 4b93 ldr r3, [pc, #588] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30872. 800d506: 681b ldr r3, [r3, #0]
  30873. 800d508: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  30874. 800d50c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  30875. 800d510: d108 bne.n 800d524 <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  30876. {
  30877. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  30878. 800d512: f107 0324 add.w r3, r7, #36 @ 0x24
  30879. 800d516: 4618 mov r0, r3
  30880. 800d518: f001 f810 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  30881. frequency = pll1_clocks.PLL1_Q_Frequency;
  30882. 800d51c: 6abb ldr r3, [r7, #40] @ 0x28
  30883. 800d51e: 63fb str r3, [r7, #60] @ 0x3c
  30884. }
  30885. else
  30886. {
  30887. frequency = 0;
  30888. }
  30889. break;
  30890. 800d520: f000 bd45 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30891. frequency = 0;
  30892. 800d524: 2300 movs r3, #0
  30893. 800d526: 63fb str r3, [r7, #60] @ 0x3c
  30894. break;
  30895. 800d528: f000 bd41 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30896. }
  30897. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  30898. {
  30899. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  30900. 800d52c: 4b89 ldr r3, [pc, #548] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30901. 800d52e: 681b ldr r3, [r3, #0]
  30902. 800d530: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  30903. 800d534: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  30904. 800d538: d108 bne.n 800d54c <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  30905. {
  30906. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  30907. 800d53a: f107 0318 add.w r3, r7, #24
  30908. 800d53e: 4618 mov r0, r3
  30909. 800d540: f000 fd54 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  30910. frequency = pll2_clocks.PLL2_P_Frequency;
  30911. 800d544: 69bb ldr r3, [r7, #24]
  30912. 800d546: 63fb str r3, [r7, #60] @ 0x3c
  30913. }
  30914. else
  30915. {
  30916. frequency = 0;
  30917. }
  30918. break;
  30919. 800d548: f000 bd31 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30920. frequency = 0;
  30921. 800d54c: 2300 movs r3, #0
  30922. 800d54e: 63fb str r3, [r7, #60] @ 0x3c
  30923. break;
  30924. 800d550: f000 bd2d b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30925. }
  30926. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  30927. {
  30928. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  30929. 800d554: 4b7f ldr r3, [pc, #508] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30930. 800d556: 681b ldr r3, [r3, #0]
  30931. 800d558: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  30932. 800d55c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30933. 800d560: d108 bne.n 800d574 <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  30934. {
  30935. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  30936. 800d562: f107 030c add.w r3, r7, #12
  30937. 800d566: 4618 mov r0, r3
  30938. 800d568: f000 fe94 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  30939. frequency = pll3_clocks.PLL3_P_Frequency;
  30940. 800d56c: 68fb ldr r3, [r7, #12]
  30941. 800d56e: 63fb str r3, [r7, #60] @ 0x3c
  30942. }
  30943. else
  30944. {
  30945. frequency = 0;
  30946. }
  30947. break;
  30948. 800d570: f000 bd1d b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30949. frequency = 0;
  30950. 800d574: 2300 movs r3, #0
  30951. 800d576: 63fb str r3, [r7, #60] @ 0x3c
  30952. break;
  30953. 800d578: f000 bd19 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30954. }
  30955. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  30956. {
  30957. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  30958. 800d57c: 4b75 ldr r3, [pc, #468] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30959. 800d57e: 6cdb ldr r3, [r3, #76] @ 0x4c
  30960. 800d580: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  30961. 800d584: 637b str r3, [r7, #52] @ 0x34
  30962. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  30963. 800d586: 4b73 ldr r3, [pc, #460] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30964. 800d588: 681b ldr r3, [r3, #0]
  30965. 800d58a: f003 0304 and.w r3, r3, #4
  30966. 800d58e: 2b04 cmp r3, #4
  30967. 800d590: d10c bne.n 800d5ac <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  30968. 800d592: 6b7b ldr r3, [r7, #52] @ 0x34
  30969. 800d594: 2b00 cmp r3, #0
  30970. 800d596: d109 bne.n 800d5ac <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  30971. {
  30972. /* In Case the CKPER Source is HSI */
  30973. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  30974. 800d598: 4b6e ldr r3, [pc, #440] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30975. 800d59a: 681b ldr r3, [r3, #0]
  30976. 800d59c: 08db lsrs r3, r3, #3
  30977. 800d59e: f003 0303 and.w r3, r3, #3
  30978. 800d5a2: 4a6d ldr r2, [pc, #436] @ (800d758 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  30979. 800d5a4: fa22 f303 lsr.w r3, r2, r3
  30980. 800d5a8: 63fb str r3, [r7, #60] @ 0x3c
  30981. 800d5aa: e01f b.n 800d5ec <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  30982. }
  30983. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  30984. 800d5ac: 4b69 ldr r3, [pc, #420] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30985. 800d5ae: 681b ldr r3, [r3, #0]
  30986. 800d5b0: f403 7380 and.w r3, r3, #256 @ 0x100
  30987. 800d5b4: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30988. 800d5b8: d106 bne.n 800d5c8 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  30989. 800d5ba: 6b7b ldr r3, [r7, #52] @ 0x34
  30990. 800d5bc: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30991. 800d5c0: d102 bne.n 800d5c8 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  30992. {
  30993. /* In Case the CKPER Source is CSI */
  30994. frequency = CSI_VALUE;
  30995. 800d5c2: 4b66 ldr r3, [pc, #408] @ (800d75c <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  30996. 800d5c4: 63fb str r3, [r7, #60] @ 0x3c
  30997. 800d5c6: e011 b.n 800d5ec <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  30998. }
  30999. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31000. 800d5c8: 4b62 ldr r3, [pc, #392] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31001. 800d5ca: 681b ldr r3, [r3, #0]
  31002. 800d5cc: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31003. 800d5d0: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31004. 800d5d4: d106 bne.n 800d5e4 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  31005. 800d5d6: 6b7b ldr r3, [r7, #52] @ 0x34
  31006. 800d5d8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31007. 800d5dc: d102 bne.n 800d5e4 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  31008. {
  31009. /* In Case the CKPER Source is HSE */
  31010. frequency = HSE_VALUE;
  31011. 800d5de: 4b60 ldr r3, [pc, #384] @ (800d760 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  31012. 800d5e0: 63fb str r3, [r7, #60] @ 0x3c
  31013. 800d5e2: e003 b.n 800d5ec <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  31014. }
  31015. else
  31016. {
  31017. /* In Case the CKPER is disabled*/
  31018. frequency = 0;
  31019. 800d5e4: 2300 movs r3, #0
  31020. 800d5e6: 63fb str r3, [r7, #60] @ 0x3c
  31021. }
  31022. break;
  31023. 800d5e8: f000 bce1 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31024. 800d5ec: f000 bcdf b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31025. }
  31026. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  31027. {
  31028. frequency = EXTERNAL_CLOCK_VALUE;
  31029. 800d5f0: 4b5c ldr r3, [pc, #368] @ (800d764 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  31030. 800d5f2: 63fb str r3, [r7, #60] @ 0x3c
  31031. break;
  31032. 800d5f4: f000 bcdb b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31033. }
  31034. default :
  31035. {
  31036. frequency = 0;
  31037. 800d5f8: 2300 movs r3, #0
  31038. 800d5fa: 63fb str r3, [r7, #60] @ 0x3c
  31039. break;
  31040. 800d5fc: f000 bcd7 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31041. }
  31042. }
  31043. }
  31044. #if defined(SAI3)
  31045. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  31046. 800d600: e9d7 2300 ldrd r2, r3, [r7]
  31047. 800d604: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  31048. 800d608: 430b orrs r3, r1
  31049. 800d60a: f040 80ad bne.w 800d768 <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  31050. {
  31051. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  31052. 800d60e: 4b51 ldr r3, [pc, #324] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31053. 800d610: 6d1b ldr r3, [r3, #80] @ 0x50
  31054. 800d612: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  31055. 800d616: 633b str r3, [r7, #48] @ 0x30
  31056. switch (saiclocksource)
  31057. 800d618: 6b3b ldr r3, [r7, #48] @ 0x30
  31058. 800d61a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31059. 800d61e: d056 beq.n 800d6ce <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  31060. 800d620: 6b3b ldr r3, [r7, #48] @ 0x30
  31061. 800d622: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31062. 800d626: f200 8090 bhi.w 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31063. 800d62a: 6b3b ldr r3, [r7, #48] @ 0x30
  31064. 800d62c: 2bc0 cmp r3, #192 @ 0xc0
  31065. 800d62e: f000 8088 beq.w 800d742 <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  31066. 800d632: 6b3b ldr r3, [r7, #48] @ 0x30
  31067. 800d634: 2bc0 cmp r3, #192 @ 0xc0
  31068. 800d636: f200 8088 bhi.w 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31069. 800d63a: 6b3b ldr r3, [r7, #48] @ 0x30
  31070. 800d63c: 2b80 cmp r3, #128 @ 0x80
  31071. 800d63e: d032 beq.n 800d6a6 <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  31072. 800d640: 6b3b ldr r3, [r7, #48] @ 0x30
  31073. 800d642: 2b80 cmp r3, #128 @ 0x80
  31074. 800d644: f200 8081 bhi.w 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31075. 800d648: 6b3b ldr r3, [r7, #48] @ 0x30
  31076. 800d64a: 2b00 cmp r3, #0
  31077. 800d64c: d003 beq.n 800d656 <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  31078. 800d64e: 6b3b ldr r3, [r7, #48] @ 0x30
  31079. 800d650: 2b40 cmp r3, #64 @ 0x40
  31080. 800d652: d014 beq.n 800d67e <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  31081. 800d654: e079 b.n 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31082. {
  31083. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  31084. {
  31085. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31086. 800d656: 4b3f ldr r3, [pc, #252] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31087. 800d658: 681b ldr r3, [r3, #0]
  31088. 800d65a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31089. 800d65e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31090. 800d662: d108 bne.n 800d676 <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  31091. {
  31092. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31093. 800d664: f107 0324 add.w r3, r7, #36 @ 0x24
  31094. 800d668: 4618 mov r0, r3
  31095. 800d66a: f000 ff67 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31096. frequency = pll1_clocks.PLL1_Q_Frequency;
  31097. 800d66e: 6abb ldr r3, [r7, #40] @ 0x28
  31098. 800d670: 63fb str r3, [r7, #60] @ 0x3c
  31099. }
  31100. else
  31101. {
  31102. frequency = 0;
  31103. }
  31104. break;
  31105. 800d672: f000 bc9c b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31106. frequency = 0;
  31107. 800d676: 2300 movs r3, #0
  31108. 800d678: 63fb str r3, [r7, #60] @ 0x3c
  31109. break;
  31110. 800d67a: f000 bc98 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31111. }
  31112. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  31113. {
  31114. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31115. 800d67e: 4b35 ldr r3, [pc, #212] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31116. 800d680: 681b ldr r3, [r3, #0]
  31117. 800d682: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31118. 800d686: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31119. 800d68a: d108 bne.n 800d69e <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  31120. {
  31121. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31122. 800d68c: f107 0318 add.w r3, r7, #24
  31123. 800d690: 4618 mov r0, r3
  31124. 800d692: f000 fcab bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31125. frequency = pll2_clocks.PLL2_P_Frequency;
  31126. 800d696: 69bb ldr r3, [r7, #24]
  31127. 800d698: 63fb str r3, [r7, #60] @ 0x3c
  31128. }
  31129. else
  31130. {
  31131. frequency = 0;
  31132. }
  31133. break;
  31134. 800d69a: f000 bc88 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31135. frequency = 0;
  31136. 800d69e: 2300 movs r3, #0
  31137. 800d6a0: 63fb str r3, [r7, #60] @ 0x3c
  31138. break;
  31139. 800d6a2: f000 bc84 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31140. }
  31141. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  31142. {
  31143. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31144. 800d6a6: 4b2b ldr r3, [pc, #172] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31145. 800d6a8: 681b ldr r3, [r3, #0]
  31146. 800d6aa: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31147. 800d6ae: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31148. 800d6b2: d108 bne.n 800d6c6 <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  31149. {
  31150. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31151. 800d6b4: f107 030c add.w r3, r7, #12
  31152. 800d6b8: 4618 mov r0, r3
  31153. 800d6ba: f000 fdeb bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31154. frequency = pll3_clocks.PLL3_P_Frequency;
  31155. 800d6be: 68fb ldr r3, [r7, #12]
  31156. 800d6c0: 63fb str r3, [r7, #60] @ 0x3c
  31157. }
  31158. else
  31159. {
  31160. frequency = 0;
  31161. }
  31162. break;
  31163. 800d6c2: f000 bc74 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31164. frequency = 0;
  31165. 800d6c6: 2300 movs r3, #0
  31166. 800d6c8: 63fb str r3, [r7, #60] @ 0x3c
  31167. break;
  31168. 800d6ca: f000 bc70 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31169. }
  31170. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  31171. {
  31172. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31173. 800d6ce: 4b21 ldr r3, [pc, #132] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31174. 800d6d0: 6cdb ldr r3, [r3, #76] @ 0x4c
  31175. 800d6d2: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31176. 800d6d6: 637b str r3, [r7, #52] @ 0x34
  31177. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31178. 800d6d8: 4b1e ldr r3, [pc, #120] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31179. 800d6da: 681b ldr r3, [r3, #0]
  31180. 800d6dc: f003 0304 and.w r3, r3, #4
  31181. 800d6e0: 2b04 cmp r3, #4
  31182. 800d6e2: d10c bne.n 800d6fe <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  31183. 800d6e4: 6b7b ldr r3, [r7, #52] @ 0x34
  31184. 800d6e6: 2b00 cmp r3, #0
  31185. 800d6e8: d109 bne.n 800d6fe <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  31186. {
  31187. /* In Case the CKPER Source is HSI */
  31188. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31189. 800d6ea: 4b1a ldr r3, [pc, #104] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31190. 800d6ec: 681b ldr r3, [r3, #0]
  31191. 800d6ee: 08db lsrs r3, r3, #3
  31192. 800d6f0: f003 0303 and.w r3, r3, #3
  31193. 800d6f4: 4a18 ldr r2, [pc, #96] @ (800d758 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  31194. 800d6f6: fa22 f303 lsr.w r3, r2, r3
  31195. 800d6fa: 63fb str r3, [r7, #60] @ 0x3c
  31196. 800d6fc: e01f b.n 800d73e <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31197. }
  31198. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31199. 800d6fe: 4b15 ldr r3, [pc, #84] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31200. 800d700: 681b ldr r3, [r3, #0]
  31201. 800d702: f403 7380 and.w r3, r3, #256 @ 0x100
  31202. 800d706: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31203. 800d70a: d106 bne.n 800d71a <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  31204. 800d70c: 6b7b ldr r3, [r7, #52] @ 0x34
  31205. 800d70e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31206. 800d712: d102 bne.n 800d71a <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  31207. {
  31208. /* In Case the CKPER Source is CSI */
  31209. frequency = CSI_VALUE;
  31210. 800d714: 4b11 ldr r3, [pc, #68] @ (800d75c <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  31211. 800d716: 63fb str r3, [r7, #60] @ 0x3c
  31212. 800d718: e011 b.n 800d73e <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31213. }
  31214. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31215. 800d71a: 4b0e ldr r3, [pc, #56] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31216. 800d71c: 681b ldr r3, [r3, #0]
  31217. 800d71e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31218. 800d722: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31219. 800d726: d106 bne.n 800d736 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  31220. 800d728: 6b7b ldr r3, [r7, #52] @ 0x34
  31221. 800d72a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31222. 800d72e: d102 bne.n 800d736 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  31223. {
  31224. /* In Case the CKPER Source is HSE */
  31225. frequency = HSE_VALUE;
  31226. 800d730: 4b0b ldr r3, [pc, #44] @ (800d760 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  31227. 800d732: 63fb str r3, [r7, #60] @ 0x3c
  31228. 800d734: e003 b.n 800d73e <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31229. }
  31230. else
  31231. {
  31232. /* In Case the CKPER is disabled*/
  31233. frequency = 0;
  31234. 800d736: 2300 movs r3, #0
  31235. 800d738: 63fb str r3, [r7, #60] @ 0x3c
  31236. }
  31237. break;
  31238. 800d73a: f000 bc38 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31239. 800d73e: f000 bc36 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31240. }
  31241. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  31242. {
  31243. frequency = EXTERNAL_CLOCK_VALUE;
  31244. 800d742: 4b08 ldr r3, [pc, #32] @ (800d764 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  31245. 800d744: 63fb str r3, [r7, #60] @ 0x3c
  31246. break;
  31247. 800d746: f000 bc32 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31248. }
  31249. default :
  31250. {
  31251. frequency = 0;
  31252. 800d74a: 2300 movs r3, #0
  31253. 800d74c: 63fb str r3, [r7, #60] @ 0x3c
  31254. break;
  31255. 800d74e: f000 bc2e b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31256. 800d752: bf00 nop
  31257. 800d754: 58024400 .word 0x58024400
  31258. 800d758: 03d09000 .word 0x03d09000
  31259. 800d75c: 003d0900 .word 0x003d0900
  31260. 800d760: 017d7840 .word 0x017d7840
  31261. 800d764: 00bb8000 .word 0x00bb8000
  31262. }
  31263. }
  31264. #endif
  31265. #if defined(SAI4)
  31266. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  31267. 800d768: e9d7 2300 ldrd r2, r3, [r7]
  31268. 800d76c: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  31269. 800d770: 430b orrs r3, r1
  31270. 800d772: f040 809c bne.w 800d8ae <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  31271. {
  31272. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  31273. 800d776: 4b9e ldr r3, [pc, #632] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31274. 800d778: 6d9b ldr r3, [r3, #88] @ 0x58
  31275. 800d77a: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  31276. 800d77e: 633b str r3, [r7, #48] @ 0x30
  31277. switch (saiclocksource)
  31278. 800d780: 6b3b ldr r3, [r7, #48] @ 0x30
  31279. 800d782: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  31280. 800d786: d054 beq.n 800d832 <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  31281. 800d788: 6b3b ldr r3, [r7, #48] @ 0x30
  31282. 800d78a: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  31283. 800d78e: f200 808b bhi.w 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31284. 800d792: 6b3b ldr r3, [r7, #48] @ 0x30
  31285. 800d794: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  31286. 800d798: f000 8083 beq.w 800d8a2 <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  31287. 800d79c: 6b3b ldr r3, [r7, #48] @ 0x30
  31288. 800d79e: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  31289. 800d7a2: f200 8081 bhi.w 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31290. 800d7a6: 6b3b ldr r3, [r7, #48] @ 0x30
  31291. 800d7a8: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  31292. 800d7ac: d02f beq.n 800d80e <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  31293. 800d7ae: 6b3b ldr r3, [r7, #48] @ 0x30
  31294. 800d7b0: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  31295. 800d7b4: d878 bhi.n 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31296. 800d7b6: 6b3b ldr r3, [r7, #48] @ 0x30
  31297. 800d7b8: 2b00 cmp r3, #0
  31298. 800d7ba: d004 beq.n 800d7c6 <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  31299. 800d7bc: 6b3b ldr r3, [r7, #48] @ 0x30
  31300. 800d7be: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  31301. 800d7c2: d012 beq.n 800d7ea <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  31302. 800d7c4: e070 b.n 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31303. {
  31304. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  31305. {
  31306. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31307. 800d7c6: 4b8a ldr r3, [pc, #552] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31308. 800d7c8: 681b ldr r3, [r3, #0]
  31309. 800d7ca: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31310. 800d7ce: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31311. 800d7d2: d107 bne.n 800d7e4 <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  31312. {
  31313. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31314. 800d7d4: f107 0324 add.w r3, r7, #36 @ 0x24
  31315. 800d7d8: 4618 mov r0, r3
  31316. 800d7da: f000 feaf bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31317. frequency = pll1_clocks.PLL1_Q_Frequency;
  31318. 800d7de: 6abb ldr r3, [r7, #40] @ 0x28
  31319. 800d7e0: 63fb str r3, [r7, #60] @ 0x3c
  31320. }
  31321. else
  31322. {
  31323. frequency = 0;
  31324. }
  31325. break;
  31326. 800d7e2: e3e4 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31327. frequency = 0;
  31328. 800d7e4: 2300 movs r3, #0
  31329. 800d7e6: 63fb str r3, [r7, #60] @ 0x3c
  31330. break;
  31331. 800d7e8: e3e1 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31332. }
  31333. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  31334. {
  31335. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31336. 800d7ea: 4b81 ldr r3, [pc, #516] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31337. 800d7ec: 681b ldr r3, [r3, #0]
  31338. 800d7ee: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31339. 800d7f2: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31340. 800d7f6: d107 bne.n 800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  31341. {
  31342. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31343. 800d7f8: f107 0318 add.w r3, r7, #24
  31344. 800d7fc: 4618 mov r0, r3
  31345. 800d7fe: f000 fbf5 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31346. frequency = pll2_clocks.PLL2_P_Frequency;
  31347. 800d802: 69bb ldr r3, [r7, #24]
  31348. 800d804: 63fb str r3, [r7, #60] @ 0x3c
  31349. }
  31350. else
  31351. {
  31352. frequency = 0;
  31353. }
  31354. break;
  31355. 800d806: e3d2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31356. frequency = 0;
  31357. 800d808: 2300 movs r3, #0
  31358. 800d80a: 63fb str r3, [r7, #60] @ 0x3c
  31359. break;
  31360. 800d80c: e3cf b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31361. }
  31362. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  31363. {
  31364. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31365. 800d80e: 4b78 ldr r3, [pc, #480] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31366. 800d810: 681b ldr r3, [r3, #0]
  31367. 800d812: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31368. 800d816: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31369. 800d81a: d107 bne.n 800d82c <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  31370. {
  31371. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31372. 800d81c: f107 030c add.w r3, r7, #12
  31373. 800d820: 4618 mov r0, r3
  31374. 800d822: f000 fd37 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31375. frequency = pll3_clocks.PLL3_P_Frequency;
  31376. 800d826: 68fb ldr r3, [r7, #12]
  31377. 800d828: 63fb str r3, [r7, #60] @ 0x3c
  31378. }
  31379. else
  31380. {
  31381. frequency = 0;
  31382. }
  31383. break;
  31384. 800d82a: e3c0 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31385. frequency = 0;
  31386. 800d82c: 2300 movs r3, #0
  31387. 800d82e: 63fb str r3, [r7, #60] @ 0x3c
  31388. break;
  31389. 800d830: e3bd b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31390. }
  31391. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  31392. {
  31393. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31394. 800d832: 4b6f ldr r3, [pc, #444] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31395. 800d834: 6cdb ldr r3, [r3, #76] @ 0x4c
  31396. 800d836: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31397. 800d83a: 637b str r3, [r7, #52] @ 0x34
  31398. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31399. 800d83c: 4b6c ldr r3, [pc, #432] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31400. 800d83e: 681b ldr r3, [r3, #0]
  31401. 800d840: f003 0304 and.w r3, r3, #4
  31402. 800d844: 2b04 cmp r3, #4
  31403. 800d846: d10c bne.n 800d862 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  31404. 800d848: 6b7b ldr r3, [r7, #52] @ 0x34
  31405. 800d84a: 2b00 cmp r3, #0
  31406. 800d84c: d109 bne.n 800d862 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  31407. {
  31408. /* In Case the CKPER Source is HSI */
  31409. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31410. 800d84e: 4b68 ldr r3, [pc, #416] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31411. 800d850: 681b ldr r3, [r3, #0]
  31412. 800d852: 08db lsrs r3, r3, #3
  31413. 800d854: f003 0303 and.w r3, r3, #3
  31414. 800d858: 4a66 ldr r2, [pc, #408] @ (800d9f4 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  31415. 800d85a: fa22 f303 lsr.w r3, r2, r3
  31416. 800d85e: 63fb str r3, [r7, #60] @ 0x3c
  31417. 800d860: e01e b.n 800d8a0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31418. }
  31419. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31420. 800d862: 4b63 ldr r3, [pc, #396] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31421. 800d864: 681b ldr r3, [r3, #0]
  31422. 800d866: f403 7380 and.w r3, r3, #256 @ 0x100
  31423. 800d86a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31424. 800d86e: d106 bne.n 800d87e <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  31425. 800d870: 6b7b ldr r3, [r7, #52] @ 0x34
  31426. 800d872: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31427. 800d876: d102 bne.n 800d87e <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  31428. {
  31429. /* In Case the CKPER Source is CSI */
  31430. frequency = CSI_VALUE;
  31431. 800d878: 4b5f ldr r3, [pc, #380] @ (800d9f8 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  31432. 800d87a: 63fb str r3, [r7, #60] @ 0x3c
  31433. 800d87c: e010 b.n 800d8a0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31434. }
  31435. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31436. 800d87e: 4b5c ldr r3, [pc, #368] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31437. 800d880: 681b ldr r3, [r3, #0]
  31438. 800d882: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31439. 800d886: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31440. 800d88a: d106 bne.n 800d89a <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  31441. 800d88c: 6b7b ldr r3, [r7, #52] @ 0x34
  31442. 800d88e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31443. 800d892: d102 bne.n 800d89a <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  31444. {
  31445. /* In Case the CKPER Source is HSE */
  31446. frequency = HSE_VALUE;
  31447. 800d894: 4b59 ldr r3, [pc, #356] @ (800d9fc <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  31448. 800d896: 63fb str r3, [r7, #60] @ 0x3c
  31449. 800d898: e002 b.n 800d8a0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31450. }
  31451. else
  31452. {
  31453. /* In Case the CKPER is disabled*/
  31454. frequency = 0;
  31455. 800d89a: 2300 movs r3, #0
  31456. 800d89c: 63fb str r3, [r7, #60] @ 0x3c
  31457. }
  31458. break;
  31459. 800d89e: e386 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31460. 800d8a0: e385 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31461. }
  31462. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  31463. {
  31464. frequency = EXTERNAL_CLOCK_VALUE;
  31465. 800d8a2: 4b57 ldr r3, [pc, #348] @ (800da00 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  31466. 800d8a4: 63fb str r3, [r7, #60] @ 0x3c
  31467. break;
  31468. 800d8a6: e382 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31469. }
  31470. default :
  31471. {
  31472. frequency = 0;
  31473. 800d8a8: 2300 movs r3, #0
  31474. 800d8aa: 63fb str r3, [r7, #60] @ 0x3c
  31475. break;
  31476. 800d8ac: e37f b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31477. }
  31478. }
  31479. }
  31480. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  31481. 800d8ae: e9d7 2300 ldrd r2, r3, [r7]
  31482. 800d8b2: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  31483. 800d8b6: 430b orrs r3, r1
  31484. 800d8b8: f040 80a7 bne.w 800da0a <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  31485. {
  31486. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  31487. 800d8bc: 4b4c ldr r3, [pc, #304] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31488. 800d8be: 6d9b ldr r3, [r3, #88] @ 0x58
  31489. 800d8c0: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  31490. 800d8c4: 633b str r3, [r7, #48] @ 0x30
  31491. switch (saiclocksource)
  31492. 800d8c6: 6b3b ldr r3, [r7, #48] @ 0x30
  31493. 800d8c8: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  31494. 800d8cc: d055 beq.n 800d97a <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  31495. 800d8ce: 6b3b ldr r3, [r7, #48] @ 0x30
  31496. 800d8d0: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  31497. 800d8d4: f200 8096 bhi.w 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31498. 800d8d8: 6b3b ldr r3, [r7, #48] @ 0x30
  31499. 800d8da: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  31500. 800d8de: f000 8084 beq.w 800d9ea <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  31501. 800d8e2: 6b3b ldr r3, [r7, #48] @ 0x30
  31502. 800d8e4: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  31503. 800d8e8: f200 808c bhi.w 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31504. 800d8ec: 6b3b ldr r3, [r7, #48] @ 0x30
  31505. 800d8ee: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31506. 800d8f2: d030 beq.n 800d956 <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  31507. 800d8f4: 6b3b ldr r3, [r7, #48] @ 0x30
  31508. 800d8f6: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31509. 800d8fa: f200 8083 bhi.w 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31510. 800d8fe: 6b3b ldr r3, [r7, #48] @ 0x30
  31511. 800d900: 2b00 cmp r3, #0
  31512. 800d902: d004 beq.n 800d90e <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  31513. 800d904: 6b3b ldr r3, [r7, #48] @ 0x30
  31514. 800d906: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  31515. 800d90a: d012 beq.n 800d932 <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  31516. 800d90c: e07a b.n 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31517. {
  31518. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  31519. {
  31520. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31521. 800d90e: 4b38 ldr r3, [pc, #224] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31522. 800d910: 681b ldr r3, [r3, #0]
  31523. 800d912: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31524. 800d916: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31525. 800d91a: d107 bne.n 800d92c <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  31526. {
  31527. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31528. 800d91c: f107 0324 add.w r3, r7, #36 @ 0x24
  31529. 800d920: 4618 mov r0, r3
  31530. 800d922: f000 fe0b bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31531. frequency = pll1_clocks.PLL1_Q_Frequency;
  31532. 800d926: 6abb ldr r3, [r7, #40] @ 0x28
  31533. 800d928: 63fb str r3, [r7, #60] @ 0x3c
  31534. }
  31535. else
  31536. {
  31537. frequency = 0;
  31538. }
  31539. break;
  31540. 800d92a: e340 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31541. frequency = 0;
  31542. 800d92c: 2300 movs r3, #0
  31543. 800d92e: 63fb str r3, [r7, #60] @ 0x3c
  31544. break;
  31545. 800d930: e33d b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31546. }
  31547. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  31548. {
  31549. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31550. 800d932: 4b2f ldr r3, [pc, #188] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31551. 800d934: 681b ldr r3, [r3, #0]
  31552. 800d936: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31553. 800d93a: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31554. 800d93e: d107 bne.n 800d950 <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  31555. {
  31556. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31557. 800d940: f107 0318 add.w r3, r7, #24
  31558. 800d944: 4618 mov r0, r3
  31559. 800d946: f000 fb51 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31560. frequency = pll2_clocks.PLL2_P_Frequency;
  31561. 800d94a: 69bb ldr r3, [r7, #24]
  31562. 800d94c: 63fb str r3, [r7, #60] @ 0x3c
  31563. }
  31564. else
  31565. {
  31566. frequency = 0;
  31567. }
  31568. break;
  31569. 800d94e: e32e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31570. frequency = 0;
  31571. 800d950: 2300 movs r3, #0
  31572. 800d952: 63fb str r3, [r7, #60] @ 0x3c
  31573. break;
  31574. 800d954: e32b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31575. }
  31576. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  31577. {
  31578. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31579. 800d956: 4b26 ldr r3, [pc, #152] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31580. 800d958: 681b ldr r3, [r3, #0]
  31581. 800d95a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31582. 800d95e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31583. 800d962: d107 bne.n 800d974 <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  31584. {
  31585. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31586. 800d964: f107 030c add.w r3, r7, #12
  31587. 800d968: 4618 mov r0, r3
  31588. 800d96a: f000 fc93 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31589. frequency = pll3_clocks.PLL3_P_Frequency;
  31590. 800d96e: 68fb ldr r3, [r7, #12]
  31591. 800d970: 63fb str r3, [r7, #60] @ 0x3c
  31592. }
  31593. else
  31594. {
  31595. frequency = 0;
  31596. }
  31597. break;
  31598. 800d972: e31c b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31599. frequency = 0;
  31600. 800d974: 2300 movs r3, #0
  31601. 800d976: 63fb str r3, [r7, #60] @ 0x3c
  31602. break;
  31603. 800d978: e319 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31604. }
  31605. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  31606. {
  31607. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31608. 800d97a: 4b1d ldr r3, [pc, #116] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31609. 800d97c: 6cdb ldr r3, [r3, #76] @ 0x4c
  31610. 800d97e: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31611. 800d982: 637b str r3, [r7, #52] @ 0x34
  31612. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31613. 800d984: 4b1a ldr r3, [pc, #104] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31614. 800d986: 681b ldr r3, [r3, #0]
  31615. 800d988: f003 0304 and.w r3, r3, #4
  31616. 800d98c: 2b04 cmp r3, #4
  31617. 800d98e: d10c bne.n 800d9aa <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  31618. 800d990: 6b7b ldr r3, [r7, #52] @ 0x34
  31619. 800d992: 2b00 cmp r3, #0
  31620. 800d994: d109 bne.n 800d9aa <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  31621. {
  31622. /* In Case the CKPER Source is HSI */
  31623. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31624. 800d996: 4b16 ldr r3, [pc, #88] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31625. 800d998: 681b ldr r3, [r3, #0]
  31626. 800d99a: 08db lsrs r3, r3, #3
  31627. 800d99c: f003 0303 and.w r3, r3, #3
  31628. 800d9a0: 4a14 ldr r2, [pc, #80] @ (800d9f4 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  31629. 800d9a2: fa22 f303 lsr.w r3, r2, r3
  31630. 800d9a6: 63fb str r3, [r7, #60] @ 0x3c
  31631. 800d9a8: e01e b.n 800d9e8 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31632. }
  31633. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31634. 800d9aa: 4b11 ldr r3, [pc, #68] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31635. 800d9ac: 681b ldr r3, [r3, #0]
  31636. 800d9ae: f403 7380 and.w r3, r3, #256 @ 0x100
  31637. 800d9b2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31638. 800d9b6: d106 bne.n 800d9c6 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  31639. 800d9b8: 6b7b ldr r3, [r7, #52] @ 0x34
  31640. 800d9ba: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31641. 800d9be: d102 bne.n 800d9c6 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  31642. {
  31643. /* In Case the CKPER Source is CSI */
  31644. frequency = CSI_VALUE;
  31645. 800d9c0: 4b0d ldr r3, [pc, #52] @ (800d9f8 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  31646. 800d9c2: 63fb str r3, [r7, #60] @ 0x3c
  31647. 800d9c4: e010 b.n 800d9e8 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31648. }
  31649. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31650. 800d9c6: 4b0a ldr r3, [pc, #40] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31651. 800d9c8: 681b ldr r3, [r3, #0]
  31652. 800d9ca: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31653. 800d9ce: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31654. 800d9d2: d106 bne.n 800d9e2 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  31655. 800d9d4: 6b7b ldr r3, [r7, #52] @ 0x34
  31656. 800d9d6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31657. 800d9da: d102 bne.n 800d9e2 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  31658. {
  31659. /* In Case the CKPER Source is HSE */
  31660. frequency = HSE_VALUE;
  31661. 800d9dc: 4b07 ldr r3, [pc, #28] @ (800d9fc <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  31662. 800d9de: 63fb str r3, [r7, #60] @ 0x3c
  31663. 800d9e0: e002 b.n 800d9e8 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31664. }
  31665. else
  31666. {
  31667. /* In Case the CKPER is disabled*/
  31668. frequency = 0;
  31669. 800d9e2: 2300 movs r3, #0
  31670. 800d9e4: 63fb str r3, [r7, #60] @ 0x3c
  31671. }
  31672. break;
  31673. 800d9e6: e2e2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31674. 800d9e8: e2e1 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31675. }
  31676. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  31677. {
  31678. frequency = EXTERNAL_CLOCK_VALUE;
  31679. 800d9ea: 4b05 ldr r3, [pc, #20] @ (800da00 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  31680. 800d9ec: 63fb str r3, [r7, #60] @ 0x3c
  31681. break;
  31682. 800d9ee: e2de b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31683. 800d9f0: 58024400 .word 0x58024400
  31684. 800d9f4: 03d09000 .word 0x03d09000
  31685. 800d9f8: 003d0900 .word 0x003d0900
  31686. 800d9fc: 017d7840 .word 0x017d7840
  31687. 800da00: 00bb8000 .word 0x00bb8000
  31688. }
  31689. default :
  31690. {
  31691. frequency = 0;
  31692. 800da04: 2300 movs r3, #0
  31693. 800da06: 63fb str r3, [r7, #60] @ 0x3c
  31694. break;
  31695. 800da08: e2d1 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31696. }
  31697. }
  31698. }
  31699. #endif /*SAI4*/
  31700. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  31701. 800da0a: e9d7 2300 ldrd r2, r3, [r7]
  31702. 800da0e: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  31703. 800da12: 430b orrs r3, r1
  31704. 800da14: f040 809c bne.w 800db50 <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  31705. {
  31706. /* Get SPI1/2/3 clock source */
  31707. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  31708. 800da18: 4b93 ldr r3, [pc, #588] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31709. 800da1a: 6d1b ldr r3, [r3, #80] @ 0x50
  31710. 800da1c: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  31711. 800da20: 63bb str r3, [r7, #56] @ 0x38
  31712. switch (srcclk)
  31713. 800da22: 6bbb ldr r3, [r7, #56] @ 0x38
  31714. 800da24: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31715. 800da28: d054 beq.n 800dad4 <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  31716. 800da2a: 6bbb ldr r3, [r7, #56] @ 0x38
  31717. 800da2c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31718. 800da30: f200 808b bhi.w 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31719. 800da34: 6bbb ldr r3, [r7, #56] @ 0x38
  31720. 800da36: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  31721. 800da3a: f000 8083 beq.w 800db44 <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  31722. 800da3e: 6bbb ldr r3, [r7, #56] @ 0x38
  31723. 800da40: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  31724. 800da44: f200 8081 bhi.w 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31725. 800da48: 6bbb ldr r3, [r7, #56] @ 0x38
  31726. 800da4a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31727. 800da4e: d02f beq.n 800dab0 <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  31728. 800da50: 6bbb ldr r3, [r7, #56] @ 0x38
  31729. 800da52: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31730. 800da56: d878 bhi.n 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31731. 800da58: 6bbb ldr r3, [r7, #56] @ 0x38
  31732. 800da5a: 2b00 cmp r3, #0
  31733. 800da5c: d004 beq.n 800da68 <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  31734. 800da5e: 6bbb ldr r3, [r7, #56] @ 0x38
  31735. 800da60: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31736. 800da64: d012 beq.n 800da8c <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  31737. 800da66: e070 b.n 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31738. {
  31739. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  31740. {
  31741. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31742. 800da68: 4b7f ldr r3, [pc, #508] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31743. 800da6a: 681b ldr r3, [r3, #0]
  31744. 800da6c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31745. 800da70: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31746. 800da74: d107 bne.n 800da86 <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  31747. {
  31748. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31749. 800da76: f107 0324 add.w r3, r7, #36 @ 0x24
  31750. 800da7a: 4618 mov r0, r3
  31751. 800da7c: f000 fd5e bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31752. frequency = pll1_clocks.PLL1_Q_Frequency;
  31753. 800da80: 6abb ldr r3, [r7, #40] @ 0x28
  31754. 800da82: 63fb str r3, [r7, #60] @ 0x3c
  31755. }
  31756. else
  31757. {
  31758. frequency = 0;
  31759. }
  31760. break;
  31761. 800da84: e293 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31762. frequency = 0;
  31763. 800da86: 2300 movs r3, #0
  31764. 800da88: 63fb str r3, [r7, #60] @ 0x3c
  31765. break;
  31766. 800da8a: e290 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31767. }
  31768. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  31769. {
  31770. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31771. 800da8c: 4b76 ldr r3, [pc, #472] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31772. 800da8e: 681b ldr r3, [r3, #0]
  31773. 800da90: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31774. 800da94: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31775. 800da98: d107 bne.n 800daaa <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  31776. {
  31777. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31778. 800da9a: f107 0318 add.w r3, r7, #24
  31779. 800da9e: 4618 mov r0, r3
  31780. 800daa0: f000 faa4 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31781. frequency = pll2_clocks.PLL2_P_Frequency;
  31782. 800daa4: 69bb ldr r3, [r7, #24]
  31783. 800daa6: 63fb str r3, [r7, #60] @ 0x3c
  31784. }
  31785. else
  31786. {
  31787. frequency = 0;
  31788. }
  31789. break;
  31790. 800daa8: e281 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31791. frequency = 0;
  31792. 800daaa: 2300 movs r3, #0
  31793. 800daac: 63fb str r3, [r7, #60] @ 0x3c
  31794. break;
  31795. 800daae: e27e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31796. }
  31797. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  31798. {
  31799. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31800. 800dab0: 4b6d ldr r3, [pc, #436] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31801. 800dab2: 681b ldr r3, [r3, #0]
  31802. 800dab4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31803. 800dab8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31804. 800dabc: d107 bne.n 800dace <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  31805. {
  31806. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31807. 800dabe: f107 030c add.w r3, r7, #12
  31808. 800dac2: 4618 mov r0, r3
  31809. 800dac4: f000 fbe6 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31810. frequency = pll3_clocks.PLL3_P_Frequency;
  31811. 800dac8: 68fb ldr r3, [r7, #12]
  31812. 800daca: 63fb str r3, [r7, #60] @ 0x3c
  31813. }
  31814. else
  31815. {
  31816. frequency = 0;
  31817. }
  31818. break;
  31819. 800dacc: e26f b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31820. frequency = 0;
  31821. 800dace: 2300 movs r3, #0
  31822. 800dad0: 63fb str r3, [r7, #60] @ 0x3c
  31823. break;
  31824. 800dad2: e26c b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31825. }
  31826. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  31827. {
  31828. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31829. 800dad4: 4b64 ldr r3, [pc, #400] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31830. 800dad6: 6cdb ldr r3, [r3, #76] @ 0x4c
  31831. 800dad8: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31832. 800dadc: 637b str r3, [r7, #52] @ 0x34
  31833. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31834. 800dade: 4b62 ldr r3, [pc, #392] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31835. 800dae0: 681b ldr r3, [r3, #0]
  31836. 800dae2: f003 0304 and.w r3, r3, #4
  31837. 800dae6: 2b04 cmp r3, #4
  31838. 800dae8: d10c bne.n 800db04 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  31839. 800daea: 6b7b ldr r3, [r7, #52] @ 0x34
  31840. 800daec: 2b00 cmp r3, #0
  31841. 800daee: d109 bne.n 800db04 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  31842. {
  31843. /* In Case the CKPER Source is HSI */
  31844. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31845. 800daf0: 4b5d ldr r3, [pc, #372] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31846. 800daf2: 681b ldr r3, [r3, #0]
  31847. 800daf4: 08db lsrs r3, r3, #3
  31848. 800daf6: f003 0303 and.w r3, r3, #3
  31849. 800dafa: 4a5c ldr r2, [pc, #368] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  31850. 800dafc: fa22 f303 lsr.w r3, r2, r3
  31851. 800db00: 63fb str r3, [r7, #60] @ 0x3c
  31852. 800db02: e01e b.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31853. }
  31854. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31855. 800db04: 4b58 ldr r3, [pc, #352] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31856. 800db06: 681b ldr r3, [r3, #0]
  31857. 800db08: f403 7380 and.w r3, r3, #256 @ 0x100
  31858. 800db0c: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31859. 800db10: d106 bne.n 800db20 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  31860. 800db12: 6b7b ldr r3, [r7, #52] @ 0x34
  31861. 800db14: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31862. 800db18: d102 bne.n 800db20 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  31863. {
  31864. /* In Case the CKPER Source is CSI */
  31865. frequency = CSI_VALUE;
  31866. 800db1a: 4b55 ldr r3, [pc, #340] @ (800dc70 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  31867. 800db1c: 63fb str r3, [r7, #60] @ 0x3c
  31868. 800db1e: e010 b.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31869. }
  31870. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31871. 800db20: 4b51 ldr r3, [pc, #324] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31872. 800db22: 681b ldr r3, [r3, #0]
  31873. 800db24: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31874. 800db28: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31875. 800db2c: d106 bne.n 800db3c <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  31876. 800db2e: 6b7b ldr r3, [r7, #52] @ 0x34
  31877. 800db30: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31878. 800db34: d102 bne.n 800db3c <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  31879. {
  31880. /* In Case the CKPER Source is HSE */
  31881. frequency = HSE_VALUE;
  31882. 800db36: 4b4f ldr r3, [pc, #316] @ (800dc74 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  31883. 800db38: 63fb str r3, [r7, #60] @ 0x3c
  31884. 800db3a: e002 b.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31885. }
  31886. else
  31887. {
  31888. /* In Case the CKPER is disabled*/
  31889. frequency = 0;
  31890. 800db3c: 2300 movs r3, #0
  31891. 800db3e: 63fb str r3, [r7, #60] @ 0x3c
  31892. }
  31893. break;
  31894. 800db40: e235 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31895. 800db42: e234 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31896. }
  31897. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  31898. {
  31899. frequency = EXTERNAL_CLOCK_VALUE;
  31900. 800db44: 4b4c ldr r3, [pc, #304] @ (800dc78 <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  31901. 800db46: 63fb str r3, [r7, #60] @ 0x3c
  31902. break;
  31903. 800db48: e231 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31904. }
  31905. default :
  31906. {
  31907. frequency = 0;
  31908. 800db4a: 2300 movs r3, #0
  31909. 800db4c: 63fb str r3, [r7, #60] @ 0x3c
  31910. break;
  31911. 800db4e: e22e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31912. }
  31913. }
  31914. }
  31915. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  31916. 800db50: e9d7 2300 ldrd r2, r3, [r7]
  31917. 800db54: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  31918. 800db58: 430b orrs r3, r1
  31919. 800db5a: f040 808f bne.w 800dc7c <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  31920. {
  31921. /* Get SPI45 clock source */
  31922. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  31923. 800db5e: 4b42 ldr r3, [pc, #264] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31924. 800db60: 6d1b ldr r3, [r3, #80] @ 0x50
  31925. 800db62: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  31926. 800db66: 63bb str r3, [r7, #56] @ 0x38
  31927. switch (srcclk)
  31928. 800db68: 6bbb ldr r3, [r7, #56] @ 0x38
  31929. 800db6a: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  31930. 800db6e: d06b beq.n 800dc48 <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  31931. 800db70: 6bbb ldr r3, [r7, #56] @ 0x38
  31932. 800db72: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  31933. 800db76: d874 bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31934. 800db78: 6bbb ldr r3, [r7, #56] @ 0x38
  31935. 800db7a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  31936. 800db7e: d056 beq.n 800dc2e <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  31937. 800db80: 6bbb ldr r3, [r7, #56] @ 0x38
  31938. 800db82: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  31939. 800db86: d86c bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31940. 800db88: 6bbb ldr r3, [r7, #56] @ 0x38
  31941. 800db8a: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  31942. 800db8e: d03b beq.n 800dc08 <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  31943. 800db90: 6bbb ldr r3, [r7, #56] @ 0x38
  31944. 800db92: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  31945. 800db96: d864 bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31946. 800db98: 6bbb ldr r3, [r7, #56] @ 0x38
  31947. 800db9a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31948. 800db9e: d021 beq.n 800dbe4 <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  31949. 800dba0: 6bbb ldr r3, [r7, #56] @ 0x38
  31950. 800dba2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31951. 800dba6: d85c bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31952. 800dba8: 6bbb ldr r3, [r7, #56] @ 0x38
  31953. 800dbaa: 2b00 cmp r3, #0
  31954. 800dbac: d004 beq.n 800dbb8 <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  31955. 800dbae: 6bbb ldr r3, [r7, #56] @ 0x38
  31956. 800dbb0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31957. 800dbb4: d004 beq.n 800dbc0 <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  31958. 800dbb6: e054 b.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31959. {
  31960. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  31961. {
  31962. frequency = HAL_RCC_GetPCLK1Freq();
  31963. 800dbb8: f7fe fa26 bl 800c008 <HAL_RCC_GetPCLK1Freq>
  31964. 800dbbc: 63f8 str r0, [r7, #60] @ 0x3c
  31965. break;
  31966. 800dbbe: e1f6 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31967. }
  31968. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  31969. {
  31970. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31971. 800dbc0: 4b29 ldr r3, [pc, #164] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31972. 800dbc2: 681b ldr r3, [r3, #0]
  31973. 800dbc4: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31974. 800dbc8: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31975. 800dbcc: d107 bne.n 800dbde <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  31976. {
  31977. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31978. 800dbce: f107 0318 add.w r3, r7, #24
  31979. 800dbd2: 4618 mov r0, r3
  31980. 800dbd4: f000 fa0a bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31981. frequency = pll2_clocks.PLL2_Q_Frequency;
  31982. 800dbd8: 69fb ldr r3, [r7, #28]
  31983. 800dbda: 63fb str r3, [r7, #60] @ 0x3c
  31984. }
  31985. else
  31986. {
  31987. frequency = 0;
  31988. }
  31989. break;
  31990. 800dbdc: e1e7 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31991. frequency = 0;
  31992. 800dbde: 2300 movs r3, #0
  31993. 800dbe0: 63fb str r3, [r7, #60] @ 0x3c
  31994. break;
  31995. 800dbe2: e1e4 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31996. }
  31997. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  31998. {
  31999. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32000. 800dbe4: 4b20 ldr r3, [pc, #128] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32001. 800dbe6: 681b ldr r3, [r3, #0]
  32002. 800dbe8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32003. 800dbec: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32004. 800dbf0: d107 bne.n 800dc02 <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  32005. {
  32006. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32007. 800dbf2: f107 030c add.w r3, r7, #12
  32008. 800dbf6: 4618 mov r0, r3
  32009. 800dbf8: f000 fb4c bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  32010. frequency = pll3_clocks.PLL3_Q_Frequency;
  32011. 800dbfc: 693b ldr r3, [r7, #16]
  32012. 800dbfe: 63fb str r3, [r7, #60] @ 0x3c
  32013. }
  32014. else
  32015. {
  32016. frequency = 0;
  32017. }
  32018. break;
  32019. 800dc00: e1d5 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32020. frequency = 0;
  32021. 800dc02: 2300 movs r3, #0
  32022. 800dc04: 63fb str r3, [r7, #60] @ 0x3c
  32023. break;
  32024. 800dc06: e1d2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32025. }
  32026. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  32027. {
  32028. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  32029. 800dc08: 4b17 ldr r3, [pc, #92] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32030. 800dc0a: 681b ldr r3, [r3, #0]
  32031. 800dc0c: f003 0304 and.w r3, r3, #4
  32032. 800dc10: 2b04 cmp r3, #4
  32033. 800dc12: d109 bne.n 800dc28 <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  32034. {
  32035. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32036. 800dc14: 4b14 ldr r3, [pc, #80] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32037. 800dc16: 681b ldr r3, [r3, #0]
  32038. 800dc18: 08db lsrs r3, r3, #3
  32039. 800dc1a: f003 0303 and.w r3, r3, #3
  32040. 800dc1e: 4a13 ldr r2, [pc, #76] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32041. 800dc20: fa22 f303 lsr.w r3, r2, r3
  32042. 800dc24: 63fb str r3, [r7, #60] @ 0x3c
  32043. }
  32044. else
  32045. {
  32046. frequency = 0;
  32047. }
  32048. break;
  32049. 800dc26: e1c2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32050. frequency = 0;
  32051. 800dc28: 2300 movs r3, #0
  32052. 800dc2a: 63fb str r3, [r7, #60] @ 0x3c
  32053. break;
  32054. 800dc2c: e1bf b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32055. }
  32056. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  32057. {
  32058. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  32059. 800dc2e: 4b0e ldr r3, [pc, #56] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32060. 800dc30: 681b ldr r3, [r3, #0]
  32061. 800dc32: f403 7380 and.w r3, r3, #256 @ 0x100
  32062. 800dc36: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32063. 800dc3a: d102 bne.n 800dc42 <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  32064. {
  32065. frequency = CSI_VALUE;
  32066. 800dc3c: 4b0c ldr r3, [pc, #48] @ (800dc70 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32067. 800dc3e: 63fb str r3, [r7, #60] @ 0x3c
  32068. }
  32069. else
  32070. {
  32071. frequency = 0;
  32072. }
  32073. break;
  32074. 800dc40: e1b5 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32075. frequency = 0;
  32076. 800dc42: 2300 movs r3, #0
  32077. 800dc44: 63fb str r3, [r7, #60] @ 0x3c
  32078. break;
  32079. 800dc46: e1b2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32080. }
  32081. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  32082. {
  32083. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32084. 800dc48: 4b07 ldr r3, [pc, #28] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32085. 800dc4a: 681b ldr r3, [r3, #0]
  32086. 800dc4c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32087. 800dc50: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32088. 800dc54: d102 bne.n 800dc5c <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  32089. {
  32090. frequency = HSE_VALUE;
  32091. 800dc56: 4b07 ldr r3, [pc, #28] @ (800dc74 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  32092. 800dc58: 63fb str r3, [r7, #60] @ 0x3c
  32093. }
  32094. else
  32095. {
  32096. frequency = 0;
  32097. }
  32098. break;
  32099. 800dc5a: e1a8 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32100. frequency = 0;
  32101. 800dc5c: 2300 movs r3, #0
  32102. 800dc5e: 63fb str r3, [r7, #60] @ 0x3c
  32103. break;
  32104. 800dc60: e1a5 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32105. }
  32106. default :
  32107. {
  32108. frequency = 0;
  32109. 800dc62: 2300 movs r3, #0
  32110. 800dc64: 63fb str r3, [r7, #60] @ 0x3c
  32111. break;
  32112. 800dc66: e1a2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32113. 800dc68: 58024400 .word 0x58024400
  32114. 800dc6c: 03d09000 .word 0x03d09000
  32115. 800dc70: 003d0900 .word 0x003d0900
  32116. 800dc74: 017d7840 .word 0x017d7840
  32117. 800dc78: 00bb8000 .word 0x00bb8000
  32118. }
  32119. }
  32120. }
  32121. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  32122. 800dc7c: e9d7 2300 ldrd r2, r3, [r7]
  32123. 800dc80: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  32124. 800dc84: 430b orrs r3, r1
  32125. 800dc86: d173 bne.n 800dd70 <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  32126. {
  32127. /* Get ADC clock source */
  32128. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  32129. 800dc88: 4b9c ldr r3, [pc, #624] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32130. 800dc8a: 6d9b ldr r3, [r3, #88] @ 0x58
  32131. 800dc8c: f403 3340 and.w r3, r3, #196608 @ 0x30000
  32132. 800dc90: 63bb str r3, [r7, #56] @ 0x38
  32133. switch (srcclk)
  32134. 800dc92: 6bbb ldr r3, [r7, #56] @ 0x38
  32135. 800dc94: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32136. 800dc98: d02f beq.n 800dcfa <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  32137. 800dc9a: 6bbb ldr r3, [r7, #56] @ 0x38
  32138. 800dc9c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32139. 800dca0: d863 bhi.n 800dd6a <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  32140. 800dca2: 6bbb ldr r3, [r7, #56] @ 0x38
  32141. 800dca4: 2b00 cmp r3, #0
  32142. 800dca6: d004 beq.n 800dcb2 <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  32143. 800dca8: 6bbb ldr r3, [r7, #56] @ 0x38
  32144. 800dcaa: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32145. 800dcae: d012 beq.n 800dcd6 <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  32146. 800dcb0: e05b b.n 800dd6a <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  32147. {
  32148. case RCC_ADCCLKSOURCE_PLL2:
  32149. {
  32150. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32151. 800dcb2: 4b92 ldr r3, [pc, #584] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32152. 800dcb4: 681b ldr r3, [r3, #0]
  32153. 800dcb6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32154. 800dcba: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32155. 800dcbe: d107 bne.n 800dcd0 <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  32156. {
  32157. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32158. 800dcc0: f107 0318 add.w r3, r7, #24
  32159. 800dcc4: 4618 mov r0, r3
  32160. 800dcc6: f000 f991 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32161. frequency = pll2_clocks.PLL2_P_Frequency;
  32162. 800dcca: 69bb ldr r3, [r7, #24]
  32163. 800dccc: 63fb str r3, [r7, #60] @ 0x3c
  32164. }
  32165. else
  32166. {
  32167. frequency = 0;
  32168. }
  32169. break;
  32170. 800dcce: e16e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32171. frequency = 0;
  32172. 800dcd0: 2300 movs r3, #0
  32173. 800dcd2: 63fb str r3, [r7, #60] @ 0x3c
  32174. break;
  32175. 800dcd4: e16b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32176. }
  32177. case RCC_ADCCLKSOURCE_PLL3:
  32178. {
  32179. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32180. 800dcd6: 4b89 ldr r3, [pc, #548] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32181. 800dcd8: 681b ldr r3, [r3, #0]
  32182. 800dcda: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32183. 800dcde: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32184. 800dce2: d107 bne.n 800dcf4 <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  32185. {
  32186. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32187. 800dce4: f107 030c add.w r3, r7, #12
  32188. 800dce8: 4618 mov r0, r3
  32189. 800dcea: f000 fad3 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  32190. frequency = pll3_clocks.PLL3_R_Frequency;
  32191. 800dcee: 697b ldr r3, [r7, #20]
  32192. 800dcf0: 63fb str r3, [r7, #60] @ 0x3c
  32193. }
  32194. else
  32195. {
  32196. frequency = 0;
  32197. }
  32198. break;
  32199. 800dcf2: e15c b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32200. frequency = 0;
  32201. 800dcf4: 2300 movs r3, #0
  32202. 800dcf6: 63fb str r3, [r7, #60] @ 0x3c
  32203. break;
  32204. 800dcf8: e159 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32205. }
  32206. case RCC_ADCCLKSOURCE_CLKP:
  32207. {
  32208. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32209. 800dcfa: 4b80 ldr r3, [pc, #512] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32210. 800dcfc: 6cdb ldr r3, [r3, #76] @ 0x4c
  32211. 800dcfe: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32212. 800dd02: 637b str r3, [r7, #52] @ 0x34
  32213. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32214. 800dd04: 4b7d ldr r3, [pc, #500] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32215. 800dd06: 681b ldr r3, [r3, #0]
  32216. 800dd08: f003 0304 and.w r3, r3, #4
  32217. 800dd0c: 2b04 cmp r3, #4
  32218. 800dd0e: d10c bne.n 800dd2a <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  32219. 800dd10: 6b7b ldr r3, [r7, #52] @ 0x34
  32220. 800dd12: 2b00 cmp r3, #0
  32221. 800dd14: d109 bne.n 800dd2a <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  32222. {
  32223. /* In Case the CKPER Source is HSI */
  32224. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32225. 800dd16: 4b79 ldr r3, [pc, #484] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32226. 800dd18: 681b ldr r3, [r3, #0]
  32227. 800dd1a: 08db lsrs r3, r3, #3
  32228. 800dd1c: f003 0303 and.w r3, r3, #3
  32229. 800dd20: 4a77 ldr r2, [pc, #476] @ (800df00 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  32230. 800dd22: fa22 f303 lsr.w r3, r2, r3
  32231. 800dd26: 63fb str r3, [r7, #60] @ 0x3c
  32232. 800dd28: e01e b.n 800dd68 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32233. }
  32234. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32235. 800dd2a: 4b74 ldr r3, [pc, #464] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32236. 800dd2c: 681b ldr r3, [r3, #0]
  32237. 800dd2e: f403 7380 and.w r3, r3, #256 @ 0x100
  32238. 800dd32: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32239. 800dd36: d106 bne.n 800dd46 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  32240. 800dd38: 6b7b ldr r3, [r7, #52] @ 0x34
  32241. 800dd3a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32242. 800dd3e: d102 bne.n 800dd46 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  32243. {
  32244. /* In Case the CKPER Source is CSI */
  32245. frequency = CSI_VALUE;
  32246. 800dd40: 4b70 ldr r3, [pc, #448] @ (800df04 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  32247. 800dd42: 63fb str r3, [r7, #60] @ 0x3c
  32248. 800dd44: e010 b.n 800dd68 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32249. }
  32250. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32251. 800dd46: 4b6d ldr r3, [pc, #436] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32252. 800dd48: 681b ldr r3, [r3, #0]
  32253. 800dd4a: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32254. 800dd4e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32255. 800dd52: d106 bne.n 800dd62 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  32256. 800dd54: 6b7b ldr r3, [r7, #52] @ 0x34
  32257. 800dd56: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32258. 800dd5a: d102 bne.n 800dd62 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  32259. {
  32260. /* In Case the CKPER Source is HSE */
  32261. frequency = HSE_VALUE;
  32262. 800dd5c: 4b6a ldr r3, [pc, #424] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  32263. 800dd5e: 63fb str r3, [r7, #60] @ 0x3c
  32264. 800dd60: e002 b.n 800dd68 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32265. }
  32266. else
  32267. {
  32268. /* In Case the CKPER is disabled*/
  32269. frequency = 0;
  32270. 800dd62: 2300 movs r3, #0
  32271. 800dd64: 63fb str r3, [r7, #60] @ 0x3c
  32272. }
  32273. break;
  32274. 800dd66: e122 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32275. 800dd68: e121 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32276. }
  32277. default :
  32278. {
  32279. frequency = 0;
  32280. 800dd6a: 2300 movs r3, #0
  32281. 800dd6c: 63fb str r3, [r7, #60] @ 0x3c
  32282. break;
  32283. 800dd6e: e11e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32284. }
  32285. }
  32286. }
  32287. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  32288. 800dd70: e9d7 2300 ldrd r2, r3, [r7]
  32289. 800dd74: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  32290. 800dd78: 430b orrs r3, r1
  32291. 800dd7a: d133 bne.n 800dde4 <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  32292. {
  32293. /* Get SDMMC clock source */
  32294. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  32295. 800dd7c: 4b5f ldr r3, [pc, #380] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32296. 800dd7e: 6cdb ldr r3, [r3, #76] @ 0x4c
  32297. 800dd80: f403 3380 and.w r3, r3, #65536 @ 0x10000
  32298. 800dd84: 63bb str r3, [r7, #56] @ 0x38
  32299. switch (srcclk)
  32300. 800dd86: 6bbb ldr r3, [r7, #56] @ 0x38
  32301. 800dd88: 2b00 cmp r3, #0
  32302. 800dd8a: d004 beq.n 800dd96 <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  32303. 800dd8c: 6bbb ldr r3, [r7, #56] @ 0x38
  32304. 800dd8e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32305. 800dd92: d012 beq.n 800ddba <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  32306. 800dd94: e023 b.n 800ddde <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  32307. {
  32308. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  32309. {
  32310. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32311. 800dd96: 4b59 ldr r3, [pc, #356] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32312. 800dd98: 681b ldr r3, [r3, #0]
  32313. 800dd9a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32314. 800dd9e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32315. 800dda2: d107 bne.n 800ddb4 <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  32316. {
  32317. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32318. 800dda4: f107 0324 add.w r3, r7, #36 @ 0x24
  32319. 800dda8: 4618 mov r0, r3
  32320. 800ddaa: f000 fbc7 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  32321. frequency = pll1_clocks.PLL1_Q_Frequency;
  32322. 800ddae: 6abb ldr r3, [r7, #40] @ 0x28
  32323. 800ddb0: 63fb str r3, [r7, #60] @ 0x3c
  32324. }
  32325. else
  32326. {
  32327. frequency = 0;
  32328. }
  32329. break;
  32330. 800ddb2: e0fc b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32331. frequency = 0;
  32332. 800ddb4: 2300 movs r3, #0
  32333. 800ddb6: 63fb str r3, [r7, #60] @ 0x3c
  32334. break;
  32335. 800ddb8: e0f9 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32336. }
  32337. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  32338. {
  32339. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32340. 800ddba: 4b50 ldr r3, [pc, #320] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32341. 800ddbc: 681b ldr r3, [r3, #0]
  32342. 800ddbe: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32343. 800ddc2: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32344. 800ddc6: d107 bne.n 800ddd8 <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  32345. {
  32346. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32347. 800ddc8: f107 0318 add.w r3, r7, #24
  32348. 800ddcc: 4618 mov r0, r3
  32349. 800ddce: f000 f90d bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32350. frequency = pll2_clocks.PLL2_R_Frequency;
  32351. 800ddd2: 6a3b ldr r3, [r7, #32]
  32352. 800ddd4: 63fb str r3, [r7, #60] @ 0x3c
  32353. }
  32354. else
  32355. {
  32356. frequency = 0;
  32357. }
  32358. break;
  32359. 800ddd6: e0ea b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32360. frequency = 0;
  32361. 800ddd8: 2300 movs r3, #0
  32362. 800ddda: 63fb str r3, [r7, #60] @ 0x3c
  32363. break;
  32364. 800dddc: e0e7 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32365. }
  32366. default :
  32367. {
  32368. frequency = 0;
  32369. 800ddde: 2300 movs r3, #0
  32370. 800dde0: 63fb str r3, [r7, #60] @ 0x3c
  32371. break;
  32372. 800dde2: e0e4 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32373. }
  32374. }
  32375. }
  32376. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  32377. 800dde4: e9d7 2300 ldrd r2, r3, [r7]
  32378. 800dde8: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  32379. 800ddec: 430b orrs r3, r1
  32380. 800ddee: f040 808d bne.w 800df0c <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  32381. {
  32382. /* Get SPI6 clock source */
  32383. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  32384. 800ddf2: 4b42 ldr r3, [pc, #264] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32385. 800ddf4: 6d9b ldr r3, [r3, #88] @ 0x58
  32386. 800ddf6: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  32387. 800ddfa: 63bb str r3, [r7, #56] @ 0x38
  32388. switch (srcclk)
  32389. 800ddfc: 6bbb ldr r3, [r7, #56] @ 0x38
  32390. 800ddfe: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  32391. 800de02: d06b beq.n 800dedc <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  32392. 800de04: 6bbb ldr r3, [r7, #56] @ 0x38
  32393. 800de06: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  32394. 800de0a: d874 bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32395. 800de0c: 6bbb ldr r3, [r7, #56] @ 0x38
  32396. 800de0e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  32397. 800de12: d056 beq.n 800dec2 <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  32398. 800de14: 6bbb ldr r3, [r7, #56] @ 0x38
  32399. 800de16: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  32400. 800de1a: d86c bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32401. 800de1c: 6bbb ldr r3, [r7, #56] @ 0x38
  32402. 800de1e: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  32403. 800de22: d03b beq.n 800de9c <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  32404. 800de24: 6bbb ldr r3, [r7, #56] @ 0x38
  32405. 800de26: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  32406. 800de2a: d864 bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32407. 800de2c: 6bbb ldr r3, [r7, #56] @ 0x38
  32408. 800de2e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32409. 800de32: d021 beq.n 800de78 <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  32410. 800de34: 6bbb ldr r3, [r7, #56] @ 0x38
  32411. 800de36: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32412. 800de3a: d85c bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32413. 800de3c: 6bbb ldr r3, [r7, #56] @ 0x38
  32414. 800de3e: 2b00 cmp r3, #0
  32415. 800de40: d004 beq.n 800de4c <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  32416. 800de42: 6bbb ldr r3, [r7, #56] @ 0x38
  32417. 800de44: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32418. 800de48: d004 beq.n 800de54 <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  32419. 800de4a: e054 b.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32420. {
  32421. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  32422. {
  32423. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  32424. 800de4c: f000 f8b8 bl 800dfc0 <HAL_RCCEx_GetD3PCLK1Freq>
  32425. 800de50: 63f8 str r0, [r7, #60] @ 0x3c
  32426. break;
  32427. 800de52: e0ac b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32428. }
  32429. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  32430. {
  32431. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32432. 800de54: 4b29 ldr r3, [pc, #164] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32433. 800de56: 681b ldr r3, [r3, #0]
  32434. 800de58: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32435. 800de5c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32436. 800de60: d107 bne.n 800de72 <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  32437. {
  32438. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32439. 800de62: f107 0318 add.w r3, r7, #24
  32440. 800de66: 4618 mov r0, r3
  32441. 800de68: f000 f8c0 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32442. frequency = pll2_clocks.PLL2_Q_Frequency;
  32443. 800de6c: 69fb ldr r3, [r7, #28]
  32444. 800de6e: 63fb str r3, [r7, #60] @ 0x3c
  32445. }
  32446. else
  32447. {
  32448. frequency = 0;
  32449. }
  32450. break;
  32451. 800de70: e09d b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32452. frequency = 0;
  32453. 800de72: 2300 movs r3, #0
  32454. 800de74: 63fb str r3, [r7, #60] @ 0x3c
  32455. break;
  32456. 800de76: e09a b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32457. }
  32458. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  32459. {
  32460. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32461. 800de78: 4b20 ldr r3, [pc, #128] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32462. 800de7a: 681b ldr r3, [r3, #0]
  32463. 800de7c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32464. 800de80: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32465. 800de84: d107 bne.n 800de96 <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  32466. {
  32467. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32468. 800de86: f107 030c add.w r3, r7, #12
  32469. 800de8a: 4618 mov r0, r3
  32470. 800de8c: f000 fa02 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  32471. frequency = pll3_clocks.PLL3_Q_Frequency;
  32472. 800de90: 693b ldr r3, [r7, #16]
  32473. 800de92: 63fb str r3, [r7, #60] @ 0x3c
  32474. }
  32475. else
  32476. {
  32477. frequency = 0;
  32478. }
  32479. break;
  32480. 800de94: e08b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32481. frequency = 0;
  32482. 800de96: 2300 movs r3, #0
  32483. 800de98: 63fb str r3, [r7, #60] @ 0x3c
  32484. break;
  32485. 800de9a: e088 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32486. }
  32487. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  32488. {
  32489. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  32490. 800de9c: 4b17 ldr r3, [pc, #92] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32491. 800de9e: 681b ldr r3, [r3, #0]
  32492. 800dea0: f003 0304 and.w r3, r3, #4
  32493. 800dea4: 2b04 cmp r3, #4
  32494. 800dea6: d109 bne.n 800debc <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  32495. {
  32496. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32497. 800dea8: 4b14 ldr r3, [pc, #80] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32498. 800deaa: 681b ldr r3, [r3, #0]
  32499. 800deac: 08db lsrs r3, r3, #3
  32500. 800deae: f003 0303 and.w r3, r3, #3
  32501. 800deb2: 4a13 ldr r2, [pc, #76] @ (800df00 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  32502. 800deb4: fa22 f303 lsr.w r3, r2, r3
  32503. 800deb8: 63fb str r3, [r7, #60] @ 0x3c
  32504. }
  32505. else
  32506. {
  32507. frequency = 0;
  32508. }
  32509. break;
  32510. 800deba: e078 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32511. frequency = 0;
  32512. 800debc: 2300 movs r3, #0
  32513. 800debe: 63fb str r3, [r7, #60] @ 0x3c
  32514. break;
  32515. 800dec0: e075 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32516. }
  32517. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  32518. {
  32519. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  32520. 800dec2: 4b0e ldr r3, [pc, #56] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32521. 800dec4: 681b ldr r3, [r3, #0]
  32522. 800dec6: f403 7380 and.w r3, r3, #256 @ 0x100
  32523. 800deca: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32524. 800dece: d102 bne.n 800ded6 <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  32525. {
  32526. frequency = CSI_VALUE;
  32527. 800ded0: 4b0c ldr r3, [pc, #48] @ (800df04 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  32528. 800ded2: 63fb str r3, [r7, #60] @ 0x3c
  32529. }
  32530. else
  32531. {
  32532. frequency = 0;
  32533. }
  32534. break;
  32535. 800ded4: e06b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32536. frequency = 0;
  32537. 800ded6: 2300 movs r3, #0
  32538. 800ded8: 63fb str r3, [r7, #60] @ 0x3c
  32539. break;
  32540. 800deda: e068 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32541. }
  32542. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  32543. {
  32544. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32545. 800dedc: 4b07 ldr r3, [pc, #28] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32546. 800dede: 681b ldr r3, [r3, #0]
  32547. 800dee0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32548. 800dee4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32549. 800dee8: d102 bne.n 800def0 <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  32550. {
  32551. frequency = HSE_VALUE;
  32552. 800deea: 4b07 ldr r3, [pc, #28] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  32553. 800deec: 63fb str r3, [r7, #60] @ 0x3c
  32554. }
  32555. else
  32556. {
  32557. frequency = 0;
  32558. }
  32559. break;
  32560. 800deee: e05e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32561. frequency = 0;
  32562. 800def0: 2300 movs r3, #0
  32563. 800def2: 63fb str r3, [r7, #60] @ 0x3c
  32564. break;
  32565. 800def4: e05b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32566. break;
  32567. }
  32568. #endif /* RCC_SPI6CLKSOURCE_PIN */
  32569. default :
  32570. {
  32571. frequency = 0;
  32572. 800def6: 2300 movs r3, #0
  32573. 800def8: 63fb str r3, [r7, #60] @ 0x3c
  32574. break;
  32575. 800defa: e058 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32576. 800defc: 58024400 .word 0x58024400
  32577. 800df00: 03d09000 .word 0x03d09000
  32578. 800df04: 003d0900 .word 0x003d0900
  32579. 800df08: 017d7840 .word 0x017d7840
  32580. }
  32581. }
  32582. }
  32583. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  32584. 800df0c: e9d7 2300 ldrd r2, r3, [r7]
  32585. 800df10: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  32586. 800df14: 430b orrs r3, r1
  32587. 800df16: d148 bne.n 800dfaa <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  32588. {
  32589. /* Get FDCAN clock source */
  32590. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  32591. 800df18: 4b27 ldr r3, [pc, #156] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32592. 800df1a: 6d1b ldr r3, [r3, #80] @ 0x50
  32593. 800df1c: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32594. 800df20: 63bb str r3, [r7, #56] @ 0x38
  32595. switch (srcclk)
  32596. 800df22: 6bbb ldr r3, [r7, #56] @ 0x38
  32597. 800df24: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32598. 800df28: d02a beq.n 800df80 <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  32599. 800df2a: 6bbb ldr r3, [r7, #56] @ 0x38
  32600. 800df2c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32601. 800df30: d838 bhi.n 800dfa4 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  32602. 800df32: 6bbb ldr r3, [r7, #56] @ 0x38
  32603. 800df34: 2b00 cmp r3, #0
  32604. 800df36: d004 beq.n 800df42 <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  32605. 800df38: 6bbb ldr r3, [r7, #56] @ 0x38
  32606. 800df3a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32607. 800df3e: d00d beq.n 800df5c <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  32608. 800df40: e030 b.n 800dfa4 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  32609. {
  32610. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  32611. {
  32612. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32613. 800df42: 4b1d ldr r3, [pc, #116] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32614. 800df44: 681b ldr r3, [r3, #0]
  32615. 800df46: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32616. 800df4a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32617. 800df4e: d102 bne.n 800df56 <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  32618. {
  32619. frequency = HSE_VALUE;
  32620. 800df50: 4b1a ldr r3, [pc, #104] @ (800dfbc <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  32621. 800df52: 63fb str r3, [r7, #60] @ 0x3c
  32622. }
  32623. else
  32624. {
  32625. frequency = 0;
  32626. }
  32627. break;
  32628. 800df54: e02b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32629. frequency = 0;
  32630. 800df56: 2300 movs r3, #0
  32631. 800df58: 63fb str r3, [r7, #60] @ 0x3c
  32632. break;
  32633. 800df5a: e028 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32634. }
  32635. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  32636. {
  32637. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32638. 800df5c: 4b16 ldr r3, [pc, #88] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32639. 800df5e: 681b ldr r3, [r3, #0]
  32640. 800df60: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32641. 800df64: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32642. 800df68: d107 bne.n 800df7a <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  32643. {
  32644. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32645. 800df6a: f107 0324 add.w r3, r7, #36 @ 0x24
  32646. 800df6e: 4618 mov r0, r3
  32647. 800df70: f000 fae4 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  32648. frequency = pll1_clocks.PLL1_Q_Frequency;
  32649. 800df74: 6abb ldr r3, [r7, #40] @ 0x28
  32650. 800df76: 63fb str r3, [r7, #60] @ 0x3c
  32651. }
  32652. else
  32653. {
  32654. frequency = 0;
  32655. }
  32656. break;
  32657. 800df78: e019 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32658. frequency = 0;
  32659. 800df7a: 2300 movs r3, #0
  32660. 800df7c: 63fb str r3, [r7, #60] @ 0x3c
  32661. break;
  32662. 800df7e: e016 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32663. }
  32664. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  32665. {
  32666. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32667. 800df80: 4b0d ldr r3, [pc, #52] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32668. 800df82: 681b ldr r3, [r3, #0]
  32669. 800df84: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32670. 800df88: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32671. 800df8c: d107 bne.n 800df9e <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  32672. {
  32673. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32674. 800df8e: f107 0318 add.w r3, r7, #24
  32675. 800df92: 4618 mov r0, r3
  32676. 800df94: f000 f82a bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32677. frequency = pll2_clocks.PLL2_Q_Frequency;
  32678. 800df98: 69fb ldr r3, [r7, #28]
  32679. 800df9a: 63fb str r3, [r7, #60] @ 0x3c
  32680. }
  32681. else
  32682. {
  32683. frequency = 0;
  32684. }
  32685. break;
  32686. 800df9c: e007 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32687. frequency = 0;
  32688. 800df9e: 2300 movs r3, #0
  32689. 800dfa0: 63fb str r3, [r7, #60] @ 0x3c
  32690. break;
  32691. 800dfa2: e004 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32692. }
  32693. default :
  32694. {
  32695. frequency = 0;
  32696. 800dfa4: 2300 movs r3, #0
  32697. 800dfa6: 63fb str r3, [r7, #60] @ 0x3c
  32698. break;
  32699. 800dfa8: e001 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32700. }
  32701. }
  32702. }
  32703. else
  32704. {
  32705. frequency = 0;
  32706. 800dfaa: 2300 movs r3, #0
  32707. 800dfac: 63fb str r3, [r7, #60] @ 0x3c
  32708. }
  32709. return frequency;
  32710. 800dfae: 6bfb ldr r3, [r7, #60] @ 0x3c
  32711. }
  32712. 800dfb0: 4618 mov r0, r3
  32713. 800dfb2: 3740 adds r7, #64 @ 0x40
  32714. 800dfb4: 46bd mov sp, r7
  32715. 800dfb6: bd80 pop {r7, pc}
  32716. 800dfb8: 58024400 .word 0x58024400
  32717. 800dfbc: 017d7840 .word 0x017d7840
  32718. 0800dfc0 <HAL_RCCEx_GetD3PCLK1Freq>:
  32719. * @note Each time D3PCLK1 changes, this function must be called to update the
  32720. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  32721. * @retval D3PCLK1 frequency
  32722. */
  32723. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  32724. {
  32725. 800dfc0: b580 push {r7, lr}
  32726. 800dfc2: af00 add r7, sp, #0
  32727. #if defined(RCC_D3CFGR_D3PPRE)
  32728. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  32729. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  32730. 800dfc4: f7fd fff0 bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  32731. 800dfc8: 4602 mov r2, r0
  32732. 800dfca: 4b06 ldr r3, [pc, #24] @ (800dfe4 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  32733. 800dfcc: 6a1b ldr r3, [r3, #32]
  32734. 800dfce: 091b lsrs r3, r3, #4
  32735. 800dfd0: f003 0307 and.w r3, r3, #7
  32736. 800dfd4: 4904 ldr r1, [pc, #16] @ (800dfe8 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  32737. 800dfd6: 5ccb ldrb r3, [r1, r3]
  32738. 800dfd8: f003 031f and.w r3, r3, #31
  32739. 800dfdc: fa22 f303 lsr.w r3, r2, r3
  32740. #else
  32741. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  32742. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  32743. #endif
  32744. }
  32745. 800dfe0: 4618 mov r0, r3
  32746. 800dfe2: bd80 pop {r7, pc}
  32747. 800dfe4: 58024400 .word 0x58024400
  32748. 800dfe8: 08018c18 .word 0x08018c18
  32749. 0800dfec <HAL_RCCEx_GetPLL2ClockFreq>:
  32750. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  32751. * @param PLL2_Clocks structure.
  32752. * @retval None
  32753. */
  32754. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  32755. {
  32756. 800dfec: b480 push {r7}
  32757. 800dfee: b089 sub sp, #36 @ 0x24
  32758. 800dff0: af00 add r7, sp, #0
  32759. 800dff2: 6078 str r0, [r7, #4]
  32760. float_t fracn2, pll2vco;
  32761. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  32762. PLL2xCLK = PLL2_VCO / PLL2x
  32763. */
  32764. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  32765. 800dff4: 4ba1 ldr r3, [pc, #644] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32766. 800dff6: 6a9b ldr r3, [r3, #40] @ 0x28
  32767. 800dff8: f003 0303 and.w r3, r3, #3
  32768. 800dffc: 61bb str r3, [r7, #24]
  32769. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  32770. 800dffe: 4b9f ldr r3, [pc, #636] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32771. 800e000: 6a9b ldr r3, [r3, #40] @ 0x28
  32772. 800e002: 0b1b lsrs r3, r3, #12
  32773. 800e004: f003 033f and.w r3, r3, #63 @ 0x3f
  32774. 800e008: 617b str r3, [r7, #20]
  32775. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  32776. 800e00a: 4b9c ldr r3, [pc, #624] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32777. 800e00c: 6adb ldr r3, [r3, #44] @ 0x2c
  32778. 800e00e: 091b lsrs r3, r3, #4
  32779. 800e010: f003 0301 and.w r3, r3, #1
  32780. 800e014: 613b str r3, [r7, #16]
  32781. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  32782. 800e016: 4b99 ldr r3, [pc, #612] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32783. 800e018: 6bdb ldr r3, [r3, #60] @ 0x3c
  32784. 800e01a: 08db lsrs r3, r3, #3
  32785. 800e01c: f3c3 030c ubfx r3, r3, #0, #13
  32786. 800e020: 693a ldr r2, [r7, #16]
  32787. 800e022: fb02 f303 mul.w r3, r2, r3
  32788. 800e026: ee07 3a90 vmov s15, r3
  32789. 800e02a: eef8 7a67 vcvt.f32.u32 s15, s15
  32790. 800e02e: edc7 7a03 vstr s15, [r7, #12]
  32791. if (pll2m != 0U)
  32792. 800e032: 697b ldr r3, [r7, #20]
  32793. 800e034: 2b00 cmp r3, #0
  32794. 800e036: f000 8111 beq.w 800e25c <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  32795. {
  32796. switch (pllsource)
  32797. 800e03a: 69bb ldr r3, [r7, #24]
  32798. 800e03c: 2b02 cmp r3, #2
  32799. 800e03e: f000 8083 beq.w 800e148 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  32800. 800e042: 69bb ldr r3, [r7, #24]
  32801. 800e044: 2b02 cmp r3, #2
  32802. 800e046: f200 80a1 bhi.w 800e18c <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  32803. 800e04a: 69bb ldr r3, [r7, #24]
  32804. 800e04c: 2b00 cmp r3, #0
  32805. 800e04e: d003 beq.n 800e058 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  32806. 800e050: 69bb ldr r3, [r7, #24]
  32807. 800e052: 2b01 cmp r3, #1
  32808. 800e054: d056 beq.n 800e104 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  32809. 800e056: e099 b.n 800e18c <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  32810. {
  32811. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  32812. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32813. 800e058: 4b88 ldr r3, [pc, #544] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32814. 800e05a: 681b ldr r3, [r3, #0]
  32815. 800e05c: f003 0320 and.w r3, r3, #32
  32816. 800e060: 2b00 cmp r3, #0
  32817. 800e062: d02d beq.n 800e0c0 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  32818. {
  32819. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32820. 800e064: 4b85 ldr r3, [pc, #532] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32821. 800e066: 681b ldr r3, [r3, #0]
  32822. 800e068: 08db lsrs r3, r3, #3
  32823. 800e06a: f003 0303 and.w r3, r3, #3
  32824. 800e06e: 4a84 ldr r2, [pc, #528] @ (800e280 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  32825. 800e070: fa22 f303 lsr.w r3, r2, r3
  32826. 800e074: 60bb str r3, [r7, #8]
  32827. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32828. 800e076: 68bb ldr r3, [r7, #8]
  32829. 800e078: ee07 3a90 vmov s15, r3
  32830. 800e07c: eef8 6a67 vcvt.f32.u32 s13, s15
  32831. 800e080: 697b ldr r3, [r7, #20]
  32832. 800e082: ee07 3a90 vmov s15, r3
  32833. 800e086: eef8 7a67 vcvt.f32.u32 s15, s15
  32834. 800e08a: ee86 7aa7 vdiv.f32 s14, s13, s15
  32835. 800e08e: 4b7b ldr r3, [pc, #492] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32836. 800e090: 6b9b ldr r3, [r3, #56] @ 0x38
  32837. 800e092: f3c3 0308 ubfx r3, r3, #0, #9
  32838. 800e096: ee07 3a90 vmov s15, r3
  32839. 800e09a: eef8 6a67 vcvt.f32.u32 s13, s15
  32840. 800e09e: ed97 6a03 vldr s12, [r7, #12]
  32841. 800e0a2: eddf 5a78 vldr s11, [pc, #480] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32842. 800e0a6: eec6 7a25 vdiv.f32 s15, s12, s11
  32843. 800e0aa: ee76 7aa7 vadd.f32 s15, s13, s15
  32844. 800e0ae: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32845. 800e0b2: ee77 7aa6 vadd.f32 s15, s15, s13
  32846. 800e0b6: ee67 7a27 vmul.f32 s15, s14, s15
  32847. 800e0ba: edc7 7a07 vstr s15, [r7, #28]
  32848. }
  32849. else
  32850. {
  32851. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32852. }
  32853. break;
  32854. 800e0be: e087 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32855. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32856. 800e0c0: 697b ldr r3, [r7, #20]
  32857. 800e0c2: ee07 3a90 vmov s15, r3
  32858. 800e0c6: eef8 7a67 vcvt.f32.u32 s15, s15
  32859. 800e0ca: eddf 6a6f vldr s13, [pc, #444] @ 800e288 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  32860. 800e0ce: ee86 7aa7 vdiv.f32 s14, s13, s15
  32861. 800e0d2: 4b6a ldr r3, [pc, #424] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32862. 800e0d4: 6b9b ldr r3, [r3, #56] @ 0x38
  32863. 800e0d6: f3c3 0308 ubfx r3, r3, #0, #9
  32864. 800e0da: ee07 3a90 vmov s15, r3
  32865. 800e0de: eef8 6a67 vcvt.f32.u32 s13, s15
  32866. 800e0e2: ed97 6a03 vldr s12, [r7, #12]
  32867. 800e0e6: eddf 5a67 vldr s11, [pc, #412] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32868. 800e0ea: eec6 7a25 vdiv.f32 s15, s12, s11
  32869. 800e0ee: ee76 7aa7 vadd.f32 s15, s13, s15
  32870. 800e0f2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32871. 800e0f6: ee77 7aa6 vadd.f32 s15, s15, s13
  32872. 800e0fa: ee67 7a27 vmul.f32 s15, s14, s15
  32873. 800e0fe: edc7 7a07 vstr s15, [r7, #28]
  32874. break;
  32875. 800e102: e065 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32876. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  32877. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32878. 800e104: 697b ldr r3, [r7, #20]
  32879. 800e106: ee07 3a90 vmov s15, r3
  32880. 800e10a: eef8 7a67 vcvt.f32.u32 s15, s15
  32881. 800e10e: eddf 6a5f vldr s13, [pc, #380] @ 800e28c <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  32882. 800e112: ee86 7aa7 vdiv.f32 s14, s13, s15
  32883. 800e116: 4b59 ldr r3, [pc, #356] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32884. 800e118: 6b9b ldr r3, [r3, #56] @ 0x38
  32885. 800e11a: f3c3 0308 ubfx r3, r3, #0, #9
  32886. 800e11e: ee07 3a90 vmov s15, r3
  32887. 800e122: eef8 6a67 vcvt.f32.u32 s13, s15
  32888. 800e126: ed97 6a03 vldr s12, [r7, #12]
  32889. 800e12a: eddf 5a56 vldr s11, [pc, #344] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32890. 800e12e: eec6 7a25 vdiv.f32 s15, s12, s11
  32891. 800e132: ee76 7aa7 vadd.f32 s15, s13, s15
  32892. 800e136: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32893. 800e13a: ee77 7aa6 vadd.f32 s15, s15, s13
  32894. 800e13e: ee67 7a27 vmul.f32 s15, s14, s15
  32895. 800e142: edc7 7a07 vstr s15, [r7, #28]
  32896. break;
  32897. 800e146: e043 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32898. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  32899. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32900. 800e148: 697b ldr r3, [r7, #20]
  32901. 800e14a: ee07 3a90 vmov s15, r3
  32902. 800e14e: eef8 7a67 vcvt.f32.u32 s15, s15
  32903. 800e152: eddf 6a4f vldr s13, [pc, #316] @ 800e290 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  32904. 800e156: ee86 7aa7 vdiv.f32 s14, s13, s15
  32905. 800e15a: 4b48 ldr r3, [pc, #288] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32906. 800e15c: 6b9b ldr r3, [r3, #56] @ 0x38
  32907. 800e15e: f3c3 0308 ubfx r3, r3, #0, #9
  32908. 800e162: ee07 3a90 vmov s15, r3
  32909. 800e166: eef8 6a67 vcvt.f32.u32 s13, s15
  32910. 800e16a: ed97 6a03 vldr s12, [r7, #12]
  32911. 800e16e: eddf 5a45 vldr s11, [pc, #276] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32912. 800e172: eec6 7a25 vdiv.f32 s15, s12, s11
  32913. 800e176: ee76 7aa7 vadd.f32 s15, s13, s15
  32914. 800e17a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32915. 800e17e: ee77 7aa6 vadd.f32 s15, s15, s13
  32916. 800e182: ee67 7a27 vmul.f32 s15, s14, s15
  32917. 800e186: edc7 7a07 vstr s15, [r7, #28]
  32918. break;
  32919. 800e18a: e021 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32920. default:
  32921. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32922. 800e18c: 697b ldr r3, [r7, #20]
  32923. 800e18e: ee07 3a90 vmov s15, r3
  32924. 800e192: eef8 7a67 vcvt.f32.u32 s15, s15
  32925. 800e196: eddf 6a3d vldr s13, [pc, #244] @ 800e28c <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  32926. 800e19a: ee86 7aa7 vdiv.f32 s14, s13, s15
  32927. 800e19e: 4b37 ldr r3, [pc, #220] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32928. 800e1a0: 6b9b ldr r3, [r3, #56] @ 0x38
  32929. 800e1a2: f3c3 0308 ubfx r3, r3, #0, #9
  32930. 800e1a6: ee07 3a90 vmov s15, r3
  32931. 800e1aa: eef8 6a67 vcvt.f32.u32 s13, s15
  32932. 800e1ae: ed97 6a03 vldr s12, [r7, #12]
  32933. 800e1b2: eddf 5a34 vldr s11, [pc, #208] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32934. 800e1b6: eec6 7a25 vdiv.f32 s15, s12, s11
  32935. 800e1ba: ee76 7aa7 vadd.f32 s15, s13, s15
  32936. 800e1be: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32937. 800e1c2: ee77 7aa6 vadd.f32 s15, s15, s13
  32938. 800e1c6: ee67 7a27 vmul.f32 s15, s14, s15
  32939. 800e1ca: edc7 7a07 vstr s15, [r7, #28]
  32940. break;
  32941. 800e1ce: bf00 nop
  32942. }
  32943. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  32944. 800e1d0: 4b2a ldr r3, [pc, #168] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32945. 800e1d2: 6b9b ldr r3, [r3, #56] @ 0x38
  32946. 800e1d4: 0a5b lsrs r3, r3, #9
  32947. 800e1d6: f003 037f and.w r3, r3, #127 @ 0x7f
  32948. 800e1da: ee07 3a90 vmov s15, r3
  32949. 800e1de: eef8 7a67 vcvt.f32.u32 s15, s15
  32950. 800e1e2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32951. 800e1e6: ee37 7a87 vadd.f32 s14, s15, s14
  32952. 800e1ea: edd7 6a07 vldr s13, [r7, #28]
  32953. 800e1ee: eec6 7a87 vdiv.f32 s15, s13, s14
  32954. 800e1f2: eefc 7ae7 vcvt.u32.f32 s15, s15
  32955. 800e1f6: ee17 2a90 vmov r2, s15
  32956. 800e1fa: 687b ldr r3, [r7, #4]
  32957. 800e1fc: 601a str r2, [r3, #0]
  32958. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  32959. 800e1fe: 4b1f ldr r3, [pc, #124] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32960. 800e200: 6b9b ldr r3, [r3, #56] @ 0x38
  32961. 800e202: 0c1b lsrs r3, r3, #16
  32962. 800e204: f003 037f and.w r3, r3, #127 @ 0x7f
  32963. 800e208: ee07 3a90 vmov s15, r3
  32964. 800e20c: eef8 7a67 vcvt.f32.u32 s15, s15
  32965. 800e210: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32966. 800e214: ee37 7a87 vadd.f32 s14, s15, s14
  32967. 800e218: edd7 6a07 vldr s13, [r7, #28]
  32968. 800e21c: eec6 7a87 vdiv.f32 s15, s13, s14
  32969. 800e220: eefc 7ae7 vcvt.u32.f32 s15, s15
  32970. 800e224: ee17 2a90 vmov r2, s15
  32971. 800e228: 687b ldr r3, [r7, #4]
  32972. 800e22a: 605a str r2, [r3, #4]
  32973. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  32974. 800e22c: 4b13 ldr r3, [pc, #76] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32975. 800e22e: 6b9b ldr r3, [r3, #56] @ 0x38
  32976. 800e230: 0e1b lsrs r3, r3, #24
  32977. 800e232: f003 037f and.w r3, r3, #127 @ 0x7f
  32978. 800e236: ee07 3a90 vmov s15, r3
  32979. 800e23a: eef8 7a67 vcvt.f32.u32 s15, s15
  32980. 800e23e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32981. 800e242: ee37 7a87 vadd.f32 s14, s15, s14
  32982. 800e246: edd7 6a07 vldr s13, [r7, #28]
  32983. 800e24a: eec6 7a87 vdiv.f32 s15, s13, s14
  32984. 800e24e: eefc 7ae7 vcvt.u32.f32 s15, s15
  32985. 800e252: ee17 2a90 vmov r2, s15
  32986. 800e256: 687b ldr r3, [r7, #4]
  32987. 800e258: 609a str r2, [r3, #8]
  32988. {
  32989. PLL2_Clocks->PLL2_P_Frequency = 0U;
  32990. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  32991. PLL2_Clocks->PLL2_R_Frequency = 0U;
  32992. }
  32993. }
  32994. 800e25a: e008 b.n 800e26e <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  32995. PLL2_Clocks->PLL2_P_Frequency = 0U;
  32996. 800e25c: 687b ldr r3, [r7, #4]
  32997. 800e25e: 2200 movs r2, #0
  32998. 800e260: 601a str r2, [r3, #0]
  32999. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  33000. 800e262: 687b ldr r3, [r7, #4]
  33001. 800e264: 2200 movs r2, #0
  33002. 800e266: 605a str r2, [r3, #4]
  33003. PLL2_Clocks->PLL2_R_Frequency = 0U;
  33004. 800e268: 687b ldr r3, [r7, #4]
  33005. 800e26a: 2200 movs r2, #0
  33006. 800e26c: 609a str r2, [r3, #8]
  33007. }
  33008. 800e26e: bf00 nop
  33009. 800e270: 3724 adds r7, #36 @ 0x24
  33010. 800e272: 46bd mov sp, r7
  33011. 800e274: f85d 7b04 ldr.w r7, [sp], #4
  33012. 800e278: 4770 bx lr
  33013. 800e27a: bf00 nop
  33014. 800e27c: 58024400 .word 0x58024400
  33015. 800e280: 03d09000 .word 0x03d09000
  33016. 800e284: 46000000 .word 0x46000000
  33017. 800e288: 4c742400 .word 0x4c742400
  33018. 800e28c: 4a742400 .word 0x4a742400
  33019. 800e290: 4bbebc20 .word 0x4bbebc20
  33020. 0800e294 <HAL_RCCEx_GetPLL3ClockFreq>:
  33021. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  33022. * @param PLL3_Clocks structure.
  33023. * @retval None
  33024. */
  33025. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  33026. {
  33027. 800e294: b480 push {r7}
  33028. 800e296: b089 sub sp, #36 @ 0x24
  33029. 800e298: af00 add r7, sp, #0
  33030. 800e29a: 6078 str r0, [r7, #4]
  33031. float_t fracn3, pll3vco;
  33032. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  33033. PLL3xCLK = PLL3_VCO / PLLxR
  33034. */
  33035. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33036. 800e29c: 4ba1 ldr r3, [pc, #644] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33037. 800e29e: 6a9b ldr r3, [r3, #40] @ 0x28
  33038. 800e2a0: f003 0303 and.w r3, r3, #3
  33039. 800e2a4: 61bb str r3, [r7, #24]
  33040. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  33041. 800e2a6: 4b9f ldr r3, [pc, #636] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33042. 800e2a8: 6a9b ldr r3, [r3, #40] @ 0x28
  33043. 800e2aa: 0d1b lsrs r3, r3, #20
  33044. 800e2ac: f003 033f and.w r3, r3, #63 @ 0x3f
  33045. 800e2b0: 617b str r3, [r7, #20]
  33046. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  33047. 800e2b2: 4b9c ldr r3, [pc, #624] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33048. 800e2b4: 6adb ldr r3, [r3, #44] @ 0x2c
  33049. 800e2b6: 0a1b lsrs r3, r3, #8
  33050. 800e2b8: f003 0301 and.w r3, r3, #1
  33051. 800e2bc: 613b str r3, [r7, #16]
  33052. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  33053. 800e2be: 4b99 ldr r3, [pc, #612] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33054. 800e2c0: 6c5b ldr r3, [r3, #68] @ 0x44
  33055. 800e2c2: 08db lsrs r3, r3, #3
  33056. 800e2c4: f3c3 030c ubfx r3, r3, #0, #13
  33057. 800e2c8: 693a ldr r2, [r7, #16]
  33058. 800e2ca: fb02 f303 mul.w r3, r2, r3
  33059. 800e2ce: ee07 3a90 vmov s15, r3
  33060. 800e2d2: eef8 7a67 vcvt.f32.u32 s15, s15
  33061. 800e2d6: edc7 7a03 vstr s15, [r7, #12]
  33062. if (pll3m != 0U)
  33063. 800e2da: 697b ldr r3, [r7, #20]
  33064. 800e2dc: 2b00 cmp r3, #0
  33065. 800e2de: f000 8111 beq.w 800e504 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  33066. {
  33067. switch (pllsource)
  33068. 800e2e2: 69bb ldr r3, [r7, #24]
  33069. 800e2e4: 2b02 cmp r3, #2
  33070. 800e2e6: f000 8083 beq.w 800e3f0 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  33071. 800e2ea: 69bb ldr r3, [r7, #24]
  33072. 800e2ec: 2b02 cmp r3, #2
  33073. 800e2ee: f200 80a1 bhi.w 800e434 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  33074. 800e2f2: 69bb ldr r3, [r7, #24]
  33075. 800e2f4: 2b00 cmp r3, #0
  33076. 800e2f6: d003 beq.n 800e300 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  33077. 800e2f8: 69bb ldr r3, [r7, #24]
  33078. 800e2fa: 2b01 cmp r3, #1
  33079. 800e2fc: d056 beq.n 800e3ac <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  33080. 800e2fe: e099 b.n 800e434 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  33081. {
  33082. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33083. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33084. 800e300: 4b88 ldr r3, [pc, #544] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33085. 800e302: 681b ldr r3, [r3, #0]
  33086. 800e304: f003 0320 and.w r3, r3, #32
  33087. 800e308: 2b00 cmp r3, #0
  33088. 800e30a: d02d beq.n 800e368 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  33089. {
  33090. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33091. 800e30c: 4b85 ldr r3, [pc, #532] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33092. 800e30e: 681b ldr r3, [r3, #0]
  33093. 800e310: 08db lsrs r3, r3, #3
  33094. 800e312: f003 0303 and.w r3, r3, #3
  33095. 800e316: 4a84 ldr r2, [pc, #528] @ (800e528 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  33096. 800e318: fa22 f303 lsr.w r3, r2, r3
  33097. 800e31c: 60bb str r3, [r7, #8]
  33098. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33099. 800e31e: 68bb ldr r3, [r7, #8]
  33100. 800e320: ee07 3a90 vmov s15, r3
  33101. 800e324: eef8 6a67 vcvt.f32.u32 s13, s15
  33102. 800e328: 697b ldr r3, [r7, #20]
  33103. 800e32a: ee07 3a90 vmov s15, r3
  33104. 800e32e: eef8 7a67 vcvt.f32.u32 s15, s15
  33105. 800e332: ee86 7aa7 vdiv.f32 s14, s13, s15
  33106. 800e336: 4b7b ldr r3, [pc, #492] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33107. 800e338: 6c1b ldr r3, [r3, #64] @ 0x40
  33108. 800e33a: f3c3 0308 ubfx r3, r3, #0, #9
  33109. 800e33e: ee07 3a90 vmov s15, r3
  33110. 800e342: eef8 6a67 vcvt.f32.u32 s13, s15
  33111. 800e346: ed97 6a03 vldr s12, [r7, #12]
  33112. 800e34a: eddf 5a78 vldr s11, [pc, #480] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33113. 800e34e: eec6 7a25 vdiv.f32 s15, s12, s11
  33114. 800e352: ee76 7aa7 vadd.f32 s15, s13, s15
  33115. 800e356: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33116. 800e35a: ee77 7aa6 vadd.f32 s15, s15, s13
  33117. 800e35e: ee67 7a27 vmul.f32 s15, s14, s15
  33118. 800e362: edc7 7a07 vstr s15, [r7, #28]
  33119. }
  33120. else
  33121. {
  33122. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33123. }
  33124. break;
  33125. 800e366: e087 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33126. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33127. 800e368: 697b ldr r3, [r7, #20]
  33128. 800e36a: ee07 3a90 vmov s15, r3
  33129. 800e36e: eef8 7a67 vcvt.f32.u32 s15, s15
  33130. 800e372: eddf 6a6f vldr s13, [pc, #444] @ 800e530 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  33131. 800e376: ee86 7aa7 vdiv.f32 s14, s13, s15
  33132. 800e37a: 4b6a ldr r3, [pc, #424] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33133. 800e37c: 6c1b ldr r3, [r3, #64] @ 0x40
  33134. 800e37e: f3c3 0308 ubfx r3, r3, #0, #9
  33135. 800e382: ee07 3a90 vmov s15, r3
  33136. 800e386: eef8 6a67 vcvt.f32.u32 s13, s15
  33137. 800e38a: ed97 6a03 vldr s12, [r7, #12]
  33138. 800e38e: eddf 5a67 vldr s11, [pc, #412] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33139. 800e392: eec6 7a25 vdiv.f32 s15, s12, s11
  33140. 800e396: ee76 7aa7 vadd.f32 s15, s13, s15
  33141. 800e39a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33142. 800e39e: ee77 7aa6 vadd.f32 s15, s15, s13
  33143. 800e3a2: ee67 7a27 vmul.f32 s15, s14, s15
  33144. 800e3a6: edc7 7a07 vstr s15, [r7, #28]
  33145. break;
  33146. 800e3aa: e065 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33147. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33148. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33149. 800e3ac: 697b ldr r3, [r7, #20]
  33150. 800e3ae: ee07 3a90 vmov s15, r3
  33151. 800e3b2: eef8 7a67 vcvt.f32.u32 s15, s15
  33152. 800e3b6: eddf 6a5f vldr s13, [pc, #380] @ 800e534 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  33153. 800e3ba: ee86 7aa7 vdiv.f32 s14, s13, s15
  33154. 800e3be: 4b59 ldr r3, [pc, #356] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33155. 800e3c0: 6c1b ldr r3, [r3, #64] @ 0x40
  33156. 800e3c2: f3c3 0308 ubfx r3, r3, #0, #9
  33157. 800e3c6: ee07 3a90 vmov s15, r3
  33158. 800e3ca: eef8 6a67 vcvt.f32.u32 s13, s15
  33159. 800e3ce: ed97 6a03 vldr s12, [r7, #12]
  33160. 800e3d2: eddf 5a56 vldr s11, [pc, #344] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33161. 800e3d6: eec6 7a25 vdiv.f32 s15, s12, s11
  33162. 800e3da: ee76 7aa7 vadd.f32 s15, s13, s15
  33163. 800e3de: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33164. 800e3e2: ee77 7aa6 vadd.f32 s15, s15, s13
  33165. 800e3e6: ee67 7a27 vmul.f32 s15, s14, s15
  33166. 800e3ea: edc7 7a07 vstr s15, [r7, #28]
  33167. break;
  33168. 800e3ee: e043 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33169. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33170. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33171. 800e3f0: 697b ldr r3, [r7, #20]
  33172. 800e3f2: ee07 3a90 vmov s15, r3
  33173. 800e3f6: eef8 7a67 vcvt.f32.u32 s15, s15
  33174. 800e3fa: eddf 6a4f vldr s13, [pc, #316] @ 800e538 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  33175. 800e3fe: ee86 7aa7 vdiv.f32 s14, s13, s15
  33176. 800e402: 4b48 ldr r3, [pc, #288] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33177. 800e404: 6c1b ldr r3, [r3, #64] @ 0x40
  33178. 800e406: f3c3 0308 ubfx r3, r3, #0, #9
  33179. 800e40a: ee07 3a90 vmov s15, r3
  33180. 800e40e: eef8 6a67 vcvt.f32.u32 s13, s15
  33181. 800e412: ed97 6a03 vldr s12, [r7, #12]
  33182. 800e416: eddf 5a45 vldr s11, [pc, #276] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33183. 800e41a: eec6 7a25 vdiv.f32 s15, s12, s11
  33184. 800e41e: ee76 7aa7 vadd.f32 s15, s13, s15
  33185. 800e422: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33186. 800e426: ee77 7aa6 vadd.f32 s15, s15, s13
  33187. 800e42a: ee67 7a27 vmul.f32 s15, s14, s15
  33188. 800e42e: edc7 7a07 vstr s15, [r7, #28]
  33189. break;
  33190. 800e432: e021 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33191. default:
  33192. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33193. 800e434: 697b ldr r3, [r7, #20]
  33194. 800e436: ee07 3a90 vmov s15, r3
  33195. 800e43a: eef8 7a67 vcvt.f32.u32 s15, s15
  33196. 800e43e: eddf 6a3d vldr s13, [pc, #244] @ 800e534 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  33197. 800e442: ee86 7aa7 vdiv.f32 s14, s13, s15
  33198. 800e446: 4b37 ldr r3, [pc, #220] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33199. 800e448: 6c1b ldr r3, [r3, #64] @ 0x40
  33200. 800e44a: f3c3 0308 ubfx r3, r3, #0, #9
  33201. 800e44e: ee07 3a90 vmov s15, r3
  33202. 800e452: eef8 6a67 vcvt.f32.u32 s13, s15
  33203. 800e456: ed97 6a03 vldr s12, [r7, #12]
  33204. 800e45a: eddf 5a34 vldr s11, [pc, #208] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33205. 800e45e: eec6 7a25 vdiv.f32 s15, s12, s11
  33206. 800e462: ee76 7aa7 vadd.f32 s15, s13, s15
  33207. 800e466: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33208. 800e46a: ee77 7aa6 vadd.f32 s15, s15, s13
  33209. 800e46e: ee67 7a27 vmul.f32 s15, s14, s15
  33210. 800e472: edc7 7a07 vstr s15, [r7, #28]
  33211. break;
  33212. 800e476: bf00 nop
  33213. }
  33214. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  33215. 800e478: 4b2a ldr r3, [pc, #168] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33216. 800e47a: 6c1b ldr r3, [r3, #64] @ 0x40
  33217. 800e47c: 0a5b lsrs r3, r3, #9
  33218. 800e47e: f003 037f and.w r3, r3, #127 @ 0x7f
  33219. 800e482: ee07 3a90 vmov s15, r3
  33220. 800e486: eef8 7a67 vcvt.f32.u32 s15, s15
  33221. 800e48a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33222. 800e48e: ee37 7a87 vadd.f32 s14, s15, s14
  33223. 800e492: edd7 6a07 vldr s13, [r7, #28]
  33224. 800e496: eec6 7a87 vdiv.f32 s15, s13, s14
  33225. 800e49a: eefc 7ae7 vcvt.u32.f32 s15, s15
  33226. 800e49e: ee17 2a90 vmov r2, s15
  33227. 800e4a2: 687b ldr r3, [r7, #4]
  33228. 800e4a4: 601a str r2, [r3, #0]
  33229. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  33230. 800e4a6: 4b1f ldr r3, [pc, #124] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33231. 800e4a8: 6c1b ldr r3, [r3, #64] @ 0x40
  33232. 800e4aa: 0c1b lsrs r3, r3, #16
  33233. 800e4ac: f003 037f and.w r3, r3, #127 @ 0x7f
  33234. 800e4b0: ee07 3a90 vmov s15, r3
  33235. 800e4b4: eef8 7a67 vcvt.f32.u32 s15, s15
  33236. 800e4b8: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33237. 800e4bc: ee37 7a87 vadd.f32 s14, s15, s14
  33238. 800e4c0: edd7 6a07 vldr s13, [r7, #28]
  33239. 800e4c4: eec6 7a87 vdiv.f32 s15, s13, s14
  33240. 800e4c8: eefc 7ae7 vcvt.u32.f32 s15, s15
  33241. 800e4cc: ee17 2a90 vmov r2, s15
  33242. 800e4d0: 687b ldr r3, [r7, #4]
  33243. 800e4d2: 605a str r2, [r3, #4]
  33244. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  33245. 800e4d4: 4b13 ldr r3, [pc, #76] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33246. 800e4d6: 6c1b ldr r3, [r3, #64] @ 0x40
  33247. 800e4d8: 0e1b lsrs r3, r3, #24
  33248. 800e4da: f003 037f and.w r3, r3, #127 @ 0x7f
  33249. 800e4de: ee07 3a90 vmov s15, r3
  33250. 800e4e2: eef8 7a67 vcvt.f32.u32 s15, s15
  33251. 800e4e6: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33252. 800e4ea: ee37 7a87 vadd.f32 s14, s15, s14
  33253. 800e4ee: edd7 6a07 vldr s13, [r7, #28]
  33254. 800e4f2: eec6 7a87 vdiv.f32 s15, s13, s14
  33255. 800e4f6: eefc 7ae7 vcvt.u32.f32 s15, s15
  33256. 800e4fa: ee17 2a90 vmov r2, s15
  33257. 800e4fe: 687b ldr r3, [r7, #4]
  33258. 800e500: 609a str r2, [r3, #8]
  33259. PLL3_Clocks->PLL3_P_Frequency = 0U;
  33260. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  33261. PLL3_Clocks->PLL3_R_Frequency = 0U;
  33262. }
  33263. }
  33264. 800e502: e008 b.n 800e516 <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  33265. PLL3_Clocks->PLL3_P_Frequency = 0U;
  33266. 800e504: 687b ldr r3, [r7, #4]
  33267. 800e506: 2200 movs r2, #0
  33268. 800e508: 601a str r2, [r3, #0]
  33269. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  33270. 800e50a: 687b ldr r3, [r7, #4]
  33271. 800e50c: 2200 movs r2, #0
  33272. 800e50e: 605a str r2, [r3, #4]
  33273. PLL3_Clocks->PLL3_R_Frequency = 0U;
  33274. 800e510: 687b ldr r3, [r7, #4]
  33275. 800e512: 2200 movs r2, #0
  33276. 800e514: 609a str r2, [r3, #8]
  33277. }
  33278. 800e516: bf00 nop
  33279. 800e518: 3724 adds r7, #36 @ 0x24
  33280. 800e51a: 46bd mov sp, r7
  33281. 800e51c: f85d 7b04 ldr.w r7, [sp], #4
  33282. 800e520: 4770 bx lr
  33283. 800e522: bf00 nop
  33284. 800e524: 58024400 .word 0x58024400
  33285. 800e528: 03d09000 .word 0x03d09000
  33286. 800e52c: 46000000 .word 0x46000000
  33287. 800e530: 4c742400 .word 0x4c742400
  33288. 800e534: 4a742400 .word 0x4a742400
  33289. 800e538: 4bbebc20 .word 0x4bbebc20
  33290. 0800e53c <HAL_RCCEx_GetPLL1ClockFreq>:
  33291. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  33292. * @param PLL1_Clocks structure.
  33293. * @retval None
  33294. */
  33295. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  33296. {
  33297. 800e53c: b480 push {r7}
  33298. 800e53e: b089 sub sp, #36 @ 0x24
  33299. 800e540: af00 add r7, sp, #0
  33300. 800e542: 6078 str r0, [r7, #4]
  33301. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  33302. float_t fracn1, pll1vco;
  33303. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33304. 800e544: 4ba0 ldr r3, [pc, #640] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33305. 800e546: 6a9b ldr r3, [r3, #40] @ 0x28
  33306. 800e548: f003 0303 and.w r3, r3, #3
  33307. 800e54c: 61bb str r3, [r7, #24]
  33308. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  33309. 800e54e: 4b9e ldr r3, [pc, #632] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33310. 800e550: 6a9b ldr r3, [r3, #40] @ 0x28
  33311. 800e552: 091b lsrs r3, r3, #4
  33312. 800e554: f003 033f and.w r3, r3, #63 @ 0x3f
  33313. 800e558: 617b str r3, [r7, #20]
  33314. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  33315. 800e55a: 4b9b ldr r3, [pc, #620] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33316. 800e55c: 6adb ldr r3, [r3, #44] @ 0x2c
  33317. 800e55e: f003 0301 and.w r3, r3, #1
  33318. 800e562: 613b str r3, [r7, #16]
  33319. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  33320. 800e564: 4b98 ldr r3, [pc, #608] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33321. 800e566: 6b5b ldr r3, [r3, #52] @ 0x34
  33322. 800e568: 08db lsrs r3, r3, #3
  33323. 800e56a: f3c3 030c ubfx r3, r3, #0, #13
  33324. 800e56e: 693a ldr r2, [r7, #16]
  33325. 800e570: fb02 f303 mul.w r3, r2, r3
  33326. 800e574: ee07 3a90 vmov s15, r3
  33327. 800e578: eef8 7a67 vcvt.f32.u32 s15, s15
  33328. 800e57c: edc7 7a03 vstr s15, [r7, #12]
  33329. if (pll1m != 0U)
  33330. 800e580: 697b ldr r3, [r7, #20]
  33331. 800e582: 2b00 cmp r3, #0
  33332. 800e584: f000 8111 beq.w 800e7aa <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  33333. {
  33334. switch (pllsource)
  33335. 800e588: 69bb ldr r3, [r7, #24]
  33336. 800e58a: 2b02 cmp r3, #2
  33337. 800e58c: f000 8083 beq.w 800e696 <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  33338. 800e590: 69bb ldr r3, [r7, #24]
  33339. 800e592: 2b02 cmp r3, #2
  33340. 800e594: f200 80a1 bhi.w 800e6da <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  33341. 800e598: 69bb ldr r3, [r7, #24]
  33342. 800e59a: 2b00 cmp r3, #0
  33343. 800e59c: d003 beq.n 800e5a6 <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  33344. 800e59e: 69bb ldr r3, [r7, #24]
  33345. 800e5a0: 2b01 cmp r3, #1
  33346. 800e5a2: d056 beq.n 800e652 <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  33347. 800e5a4: e099 b.n 800e6da <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  33348. {
  33349. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33350. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33351. 800e5a6: 4b88 ldr r3, [pc, #544] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33352. 800e5a8: 681b ldr r3, [r3, #0]
  33353. 800e5aa: f003 0320 and.w r3, r3, #32
  33354. 800e5ae: 2b00 cmp r3, #0
  33355. 800e5b0: d02d beq.n 800e60e <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  33356. {
  33357. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33358. 800e5b2: 4b85 ldr r3, [pc, #532] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33359. 800e5b4: 681b ldr r3, [r3, #0]
  33360. 800e5b6: 08db lsrs r3, r3, #3
  33361. 800e5b8: f003 0303 and.w r3, r3, #3
  33362. 800e5bc: 4a83 ldr r2, [pc, #524] @ (800e7cc <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  33363. 800e5be: fa22 f303 lsr.w r3, r2, r3
  33364. 800e5c2: 60bb str r3, [r7, #8]
  33365. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33366. 800e5c4: 68bb ldr r3, [r7, #8]
  33367. 800e5c6: ee07 3a90 vmov s15, r3
  33368. 800e5ca: eef8 6a67 vcvt.f32.u32 s13, s15
  33369. 800e5ce: 697b ldr r3, [r7, #20]
  33370. 800e5d0: ee07 3a90 vmov s15, r3
  33371. 800e5d4: eef8 7a67 vcvt.f32.u32 s15, s15
  33372. 800e5d8: ee86 7aa7 vdiv.f32 s14, s13, s15
  33373. 800e5dc: 4b7a ldr r3, [pc, #488] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33374. 800e5de: 6b1b ldr r3, [r3, #48] @ 0x30
  33375. 800e5e0: f3c3 0308 ubfx r3, r3, #0, #9
  33376. 800e5e4: ee07 3a90 vmov s15, r3
  33377. 800e5e8: eef8 6a67 vcvt.f32.u32 s13, s15
  33378. 800e5ec: ed97 6a03 vldr s12, [r7, #12]
  33379. 800e5f0: eddf 5a77 vldr s11, [pc, #476] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33380. 800e5f4: eec6 7a25 vdiv.f32 s15, s12, s11
  33381. 800e5f8: ee76 7aa7 vadd.f32 s15, s13, s15
  33382. 800e5fc: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33383. 800e600: ee77 7aa6 vadd.f32 s15, s15, s13
  33384. 800e604: ee67 7a27 vmul.f32 s15, s14, s15
  33385. 800e608: edc7 7a07 vstr s15, [r7, #28]
  33386. }
  33387. else
  33388. {
  33389. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33390. }
  33391. break;
  33392. 800e60c: e087 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33393. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33394. 800e60e: 697b ldr r3, [r7, #20]
  33395. 800e610: ee07 3a90 vmov s15, r3
  33396. 800e614: eef8 7a67 vcvt.f32.u32 s15, s15
  33397. 800e618: eddf 6a6e vldr s13, [pc, #440] @ 800e7d4 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  33398. 800e61c: ee86 7aa7 vdiv.f32 s14, s13, s15
  33399. 800e620: 4b69 ldr r3, [pc, #420] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33400. 800e622: 6b1b ldr r3, [r3, #48] @ 0x30
  33401. 800e624: f3c3 0308 ubfx r3, r3, #0, #9
  33402. 800e628: ee07 3a90 vmov s15, r3
  33403. 800e62c: eef8 6a67 vcvt.f32.u32 s13, s15
  33404. 800e630: ed97 6a03 vldr s12, [r7, #12]
  33405. 800e634: eddf 5a66 vldr s11, [pc, #408] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33406. 800e638: eec6 7a25 vdiv.f32 s15, s12, s11
  33407. 800e63c: ee76 7aa7 vadd.f32 s15, s13, s15
  33408. 800e640: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33409. 800e644: ee77 7aa6 vadd.f32 s15, s15, s13
  33410. 800e648: ee67 7a27 vmul.f32 s15, s14, s15
  33411. 800e64c: edc7 7a07 vstr s15, [r7, #28]
  33412. break;
  33413. 800e650: e065 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33414. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33415. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33416. 800e652: 697b ldr r3, [r7, #20]
  33417. 800e654: ee07 3a90 vmov s15, r3
  33418. 800e658: eef8 7a67 vcvt.f32.u32 s15, s15
  33419. 800e65c: eddf 6a5e vldr s13, [pc, #376] @ 800e7d8 <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  33420. 800e660: ee86 7aa7 vdiv.f32 s14, s13, s15
  33421. 800e664: 4b58 ldr r3, [pc, #352] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33422. 800e666: 6b1b ldr r3, [r3, #48] @ 0x30
  33423. 800e668: f3c3 0308 ubfx r3, r3, #0, #9
  33424. 800e66c: ee07 3a90 vmov s15, r3
  33425. 800e670: eef8 6a67 vcvt.f32.u32 s13, s15
  33426. 800e674: ed97 6a03 vldr s12, [r7, #12]
  33427. 800e678: eddf 5a55 vldr s11, [pc, #340] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33428. 800e67c: eec6 7a25 vdiv.f32 s15, s12, s11
  33429. 800e680: ee76 7aa7 vadd.f32 s15, s13, s15
  33430. 800e684: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33431. 800e688: ee77 7aa6 vadd.f32 s15, s15, s13
  33432. 800e68c: ee67 7a27 vmul.f32 s15, s14, s15
  33433. 800e690: edc7 7a07 vstr s15, [r7, #28]
  33434. break;
  33435. 800e694: e043 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33436. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33437. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33438. 800e696: 697b ldr r3, [r7, #20]
  33439. 800e698: ee07 3a90 vmov s15, r3
  33440. 800e69c: eef8 7a67 vcvt.f32.u32 s15, s15
  33441. 800e6a0: eddf 6a4e vldr s13, [pc, #312] @ 800e7dc <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  33442. 800e6a4: ee86 7aa7 vdiv.f32 s14, s13, s15
  33443. 800e6a8: 4b47 ldr r3, [pc, #284] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33444. 800e6aa: 6b1b ldr r3, [r3, #48] @ 0x30
  33445. 800e6ac: f3c3 0308 ubfx r3, r3, #0, #9
  33446. 800e6b0: ee07 3a90 vmov s15, r3
  33447. 800e6b4: eef8 6a67 vcvt.f32.u32 s13, s15
  33448. 800e6b8: ed97 6a03 vldr s12, [r7, #12]
  33449. 800e6bc: eddf 5a44 vldr s11, [pc, #272] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33450. 800e6c0: eec6 7a25 vdiv.f32 s15, s12, s11
  33451. 800e6c4: ee76 7aa7 vadd.f32 s15, s13, s15
  33452. 800e6c8: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33453. 800e6cc: ee77 7aa6 vadd.f32 s15, s15, s13
  33454. 800e6d0: ee67 7a27 vmul.f32 s15, s14, s15
  33455. 800e6d4: edc7 7a07 vstr s15, [r7, #28]
  33456. break;
  33457. 800e6d8: e021 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33458. default:
  33459. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33460. 800e6da: 697b ldr r3, [r7, #20]
  33461. 800e6dc: ee07 3a90 vmov s15, r3
  33462. 800e6e0: eef8 7a67 vcvt.f32.u32 s15, s15
  33463. 800e6e4: eddf 6a3b vldr s13, [pc, #236] @ 800e7d4 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  33464. 800e6e8: ee86 7aa7 vdiv.f32 s14, s13, s15
  33465. 800e6ec: 4b36 ldr r3, [pc, #216] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33466. 800e6ee: 6b1b ldr r3, [r3, #48] @ 0x30
  33467. 800e6f0: f3c3 0308 ubfx r3, r3, #0, #9
  33468. 800e6f4: ee07 3a90 vmov s15, r3
  33469. 800e6f8: eef8 6a67 vcvt.f32.u32 s13, s15
  33470. 800e6fc: ed97 6a03 vldr s12, [r7, #12]
  33471. 800e700: eddf 5a33 vldr s11, [pc, #204] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33472. 800e704: eec6 7a25 vdiv.f32 s15, s12, s11
  33473. 800e708: ee76 7aa7 vadd.f32 s15, s13, s15
  33474. 800e70c: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33475. 800e710: ee77 7aa6 vadd.f32 s15, s15, s13
  33476. 800e714: ee67 7a27 vmul.f32 s15, s14, s15
  33477. 800e718: edc7 7a07 vstr s15, [r7, #28]
  33478. break;
  33479. 800e71c: bf00 nop
  33480. }
  33481. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  33482. 800e71e: 4b2a ldr r3, [pc, #168] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33483. 800e720: 6b1b ldr r3, [r3, #48] @ 0x30
  33484. 800e722: 0a5b lsrs r3, r3, #9
  33485. 800e724: f003 037f and.w r3, r3, #127 @ 0x7f
  33486. 800e728: ee07 3a90 vmov s15, r3
  33487. 800e72c: eef8 7a67 vcvt.f32.u32 s15, s15
  33488. 800e730: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33489. 800e734: ee37 7a87 vadd.f32 s14, s15, s14
  33490. 800e738: edd7 6a07 vldr s13, [r7, #28]
  33491. 800e73c: eec6 7a87 vdiv.f32 s15, s13, s14
  33492. 800e740: eefc 7ae7 vcvt.u32.f32 s15, s15
  33493. 800e744: ee17 2a90 vmov r2, s15
  33494. 800e748: 687b ldr r3, [r7, #4]
  33495. 800e74a: 601a str r2, [r3, #0]
  33496. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  33497. 800e74c: 4b1e ldr r3, [pc, #120] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33498. 800e74e: 6b1b ldr r3, [r3, #48] @ 0x30
  33499. 800e750: 0c1b lsrs r3, r3, #16
  33500. 800e752: f003 037f and.w r3, r3, #127 @ 0x7f
  33501. 800e756: ee07 3a90 vmov s15, r3
  33502. 800e75a: eef8 7a67 vcvt.f32.u32 s15, s15
  33503. 800e75e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33504. 800e762: ee37 7a87 vadd.f32 s14, s15, s14
  33505. 800e766: edd7 6a07 vldr s13, [r7, #28]
  33506. 800e76a: eec6 7a87 vdiv.f32 s15, s13, s14
  33507. 800e76e: eefc 7ae7 vcvt.u32.f32 s15, s15
  33508. 800e772: ee17 2a90 vmov r2, s15
  33509. 800e776: 687b ldr r3, [r7, #4]
  33510. 800e778: 605a str r2, [r3, #4]
  33511. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  33512. 800e77a: 4b13 ldr r3, [pc, #76] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33513. 800e77c: 6b1b ldr r3, [r3, #48] @ 0x30
  33514. 800e77e: 0e1b lsrs r3, r3, #24
  33515. 800e780: f003 037f and.w r3, r3, #127 @ 0x7f
  33516. 800e784: ee07 3a90 vmov s15, r3
  33517. 800e788: eef8 7a67 vcvt.f32.u32 s15, s15
  33518. 800e78c: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33519. 800e790: ee37 7a87 vadd.f32 s14, s15, s14
  33520. 800e794: edd7 6a07 vldr s13, [r7, #28]
  33521. 800e798: eec6 7a87 vdiv.f32 s15, s13, s14
  33522. 800e79c: eefc 7ae7 vcvt.u32.f32 s15, s15
  33523. 800e7a0: ee17 2a90 vmov r2, s15
  33524. 800e7a4: 687b ldr r3, [r7, #4]
  33525. 800e7a6: 609a str r2, [r3, #8]
  33526. PLL1_Clocks->PLL1_P_Frequency = 0U;
  33527. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  33528. PLL1_Clocks->PLL1_R_Frequency = 0U;
  33529. }
  33530. }
  33531. 800e7a8: e008 b.n 800e7bc <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  33532. PLL1_Clocks->PLL1_P_Frequency = 0U;
  33533. 800e7aa: 687b ldr r3, [r7, #4]
  33534. 800e7ac: 2200 movs r2, #0
  33535. 800e7ae: 601a str r2, [r3, #0]
  33536. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  33537. 800e7b0: 687b ldr r3, [r7, #4]
  33538. 800e7b2: 2200 movs r2, #0
  33539. 800e7b4: 605a str r2, [r3, #4]
  33540. PLL1_Clocks->PLL1_R_Frequency = 0U;
  33541. 800e7b6: 687b ldr r3, [r7, #4]
  33542. 800e7b8: 2200 movs r2, #0
  33543. 800e7ba: 609a str r2, [r3, #8]
  33544. }
  33545. 800e7bc: bf00 nop
  33546. 800e7be: 3724 adds r7, #36 @ 0x24
  33547. 800e7c0: 46bd mov sp, r7
  33548. 800e7c2: f85d 7b04 ldr.w r7, [sp], #4
  33549. 800e7c6: 4770 bx lr
  33550. 800e7c8: 58024400 .word 0x58024400
  33551. 800e7cc: 03d09000 .word 0x03d09000
  33552. 800e7d0: 46000000 .word 0x46000000
  33553. 800e7d4: 4c742400 .word 0x4c742400
  33554. 800e7d8: 4a742400 .word 0x4a742400
  33555. 800e7dc: 4bbebc20 .word 0x4bbebc20
  33556. 0800e7e0 <RCCEx_PLL2_Config>:
  33557. * @note PLL2 is temporary disabled to apply new parameters
  33558. *
  33559. * @retval HAL status
  33560. */
  33561. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  33562. {
  33563. 800e7e0: b580 push {r7, lr}
  33564. 800e7e2: b084 sub sp, #16
  33565. 800e7e4: af00 add r7, sp, #0
  33566. 800e7e6: 6078 str r0, [r7, #4]
  33567. 800e7e8: 6039 str r1, [r7, #0]
  33568. uint32_t tickstart;
  33569. HAL_StatusTypeDef status = HAL_OK;
  33570. 800e7ea: 2300 movs r3, #0
  33571. 800e7ec: 73fb strb r3, [r7, #15]
  33572. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  33573. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  33574. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  33575. /* Check that PLL2 OSC clock source is already set */
  33576. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  33577. 800e7ee: 4b53 ldr r3, [pc, #332] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33578. 800e7f0: 6a9b ldr r3, [r3, #40] @ 0x28
  33579. 800e7f2: f003 0303 and.w r3, r3, #3
  33580. 800e7f6: 2b03 cmp r3, #3
  33581. 800e7f8: d101 bne.n 800e7fe <RCCEx_PLL2_Config+0x1e>
  33582. {
  33583. return HAL_ERROR;
  33584. 800e7fa: 2301 movs r3, #1
  33585. 800e7fc: e099 b.n 800e932 <RCCEx_PLL2_Config+0x152>
  33586. else
  33587. {
  33588. /* Disable PLL2. */
  33589. __HAL_RCC_PLL2_DISABLE();
  33590. 800e7fe: 4b4f ldr r3, [pc, #316] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33591. 800e800: 681b ldr r3, [r3, #0]
  33592. 800e802: 4a4e ldr r2, [pc, #312] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33593. 800e804: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  33594. 800e808: 6013 str r3, [r2, #0]
  33595. /* Get Start Tick*/
  33596. tickstart = HAL_GetTick();
  33597. 800e80a: f7f6 fead bl 8005568 <HAL_GetTick>
  33598. 800e80e: 60b8 str r0, [r7, #8]
  33599. /* Wait till PLL is disabled */
  33600. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  33601. 800e810: e008 b.n 800e824 <RCCEx_PLL2_Config+0x44>
  33602. {
  33603. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  33604. 800e812: f7f6 fea9 bl 8005568 <HAL_GetTick>
  33605. 800e816: 4602 mov r2, r0
  33606. 800e818: 68bb ldr r3, [r7, #8]
  33607. 800e81a: 1ad3 subs r3, r2, r3
  33608. 800e81c: 2b02 cmp r3, #2
  33609. 800e81e: d901 bls.n 800e824 <RCCEx_PLL2_Config+0x44>
  33610. {
  33611. return HAL_TIMEOUT;
  33612. 800e820: 2303 movs r3, #3
  33613. 800e822: e086 b.n 800e932 <RCCEx_PLL2_Config+0x152>
  33614. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  33615. 800e824: 4b45 ldr r3, [pc, #276] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33616. 800e826: 681b ldr r3, [r3, #0]
  33617. 800e828: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33618. 800e82c: 2b00 cmp r3, #0
  33619. 800e82e: d1f0 bne.n 800e812 <RCCEx_PLL2_Config+0x32>
  33620. }
  33621. }
  33622. /* Configure PLL2 multiplication and division factors. */
  33623. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  33624. 800e830: 4b42 ldr r3, [pc, #264] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33625. 800e832: 6a9b ldr r3, [r3, #40] @ 0x28
  33626. 800e834: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  33627. 800e838: 687b ldr r3, [r7, #4]
  33628. 800e83a: 681b ldr r3, [r3, #0]
  33629. 800e83c: 031b lsls r3, r3, #12
  33630. 800e83e: 493f ldr r1, [pc, #252] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33631. 800e840: 4313 orrs r3, r2
  33632. 800e842: 628b str r3, [r1, #40] @ 0x28
  33633. 800e844: 687b ldr r3, [r7, #4]
  33634. 800e846: 685b ldr r3, [r3, #4]
  33635. 800e848: 3b01 subs r3, #1
  33636. 800e84a: f3c3 0208 ubfx r2, r3, #0, #9
  33637. 800e84e: 687b ldr r3, [r7, #4]
  33638. 800e850: 689b ldr r3, [r3, #8]
  33639. 800e852: 3b01 subs r3, #1
  33640. 800e854: 025b lsls r3, r3, #9
  33641. 800e856: b29b uxth r3, r3
  33642. 800e858: 431a orrs r2, r3
  33643. 800e85a: 687b ldr r3, [r7, #4]
  33644. 800e85c: 68db ldr r3, [r3, #12]
  33645. 800e85e: 3b01 subs r3, #1
  33646. 800e860: 041b lsls r3, r3, #16
  33647. 800e862: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  33648. 800e866: 431a orrs r2, r3
  33649. 800e868: 687b ldr r3, [r7, #4]
  33650. 800e86a: 691b ldr r3, [r3, #16]
  33651. 800e86c: 3b01 subs r3, #1
  33652. 800e86e: 061b lsls r3, r3, #24
  33653. 800e870: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  33654. 800e874: 4931 ldr r1, [pc, #196] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33655. 800e876: 4313 orrs r3, r2
  33656. 800e878: 638b str r3, [r1, #56] @ 0x38
  33657. pll2->PLL2P,
  33658. pll2->PLL2Q,
  33659. pll2->PLL2R);
  33660. /* Select PLL2 input reference frequency range: VCI */
  33661. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  33662. 800e87a: 4b30 ldr r3, [pc, #192] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33663. 800e87c: 6adb ldr r3, [r3, #44] @ 0x2c
  33664. 800e87e: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  33665. 800e882: 687b ldr r3, [r7, #4]
  33666. 800e884: 695b ldr r3, [r3, #20]
  33667. 800e886: 492d ldr r1, [pc, #180] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33668. 800e888: 4313 orrs r3, r2
  33669. 800e88a: 62cb str r3, [r1, #44] @ 0x2c
  33670. /* Select PLL2 output frequency range : VCO */
  33671. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  33672. 800e88c: 4b2b ldr r3, [pc, #172] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33673. 800e88e: 6adb ldr r3, [r3, #44] @ 0x2c
  33674. 800e890: f023 0220 bic.w r2, r3, #32
  33675. 800e894: 687b ldr r3, [r7, #4]
  33676. 800e896: 699b ldr r3, [r3, #24]
  33677. 800e898: 4928 ldr r1, [pc, #160] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33678. 800e89a: 4313 orrs r3, r2
  33679. 800e89c: 62cb str r3, [r1, #44] @ 0x2c
  33680. /* Disable PLL2FRACN . */
  33681. __HAL_RCC_PLL2FRACN_DISABLE();
  33682. 800e89e: 4b27 ldr r3, [pc, #156] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33683. 800e8a0: 6adb ldr r3, [r3, #44] @ 0x2c
  33684. 800e8a2: 4a26 ldr r2, [pc, #152] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33685. 800e8a4: f023 0310 bic.w r3, r3, #16
  33686. 800e8a8: 62d3 str r3, [r2, #44] @ 0x2c
  33687. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  33688. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  33689. 800e8aa: 4b24 ldr r3, [pc, #144] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33690. 800e8ac: 6bda ldr r2, [r3, #60] @ 0x3c
  33691. 800e8ae: 4b24 ldr r3, [pc, #144] @ (800e940 <RCCEx_PLL2_Config+0x160>)
  33692. 800e8b0: 4013 ands r3, r2
  33693. 800e8b2: 687a ldr r2, [r7, #4]
  33694. 800e8b4: 69d2 ldr r2, [r2, #28]
  33695. 800e8b6: 00d2 lsls r2, r2, #3
  33696. 800e8b8: 4920 ldr r1, [pc, #128] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33697. 800e8ba: 4313 orrs r3, r2
  33698. 800e8bc: 63cb str r3, [r1, #60] @ 0x3c
  33699. /* Enable PLL2FRACN . */
  33700. __HAL_RCC_PLL2FRACN_ENABLE();
  33701. 800e8be: 4b1f ldr r3, [pc, #124] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33702. 800e8c0: 6adb ldr r3, [r3, #44] @ 0x2c
  33703. 800e8c2: 4a1e ldr r2, [pc, #120] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33704. 800e8c4: f043 0310 orr.w r3, r3, #16
  33705. 800e8c8: 62d3 str r3, [r2, #44] @ 0x2c
  33706. /* Enable the PLL2 clock output */
  33707. if (Divider == DIVIDER_P_UPDATE)
  33708. 800e8ca: 683b ldr r3, [r7, #0]
  33709. 800e8cc: 2b00 cmp r3, #0
  33710. 800e8ce: d106 bne.n 800e8de <RCCEx_PLL2_Config+0xfe>
  33711. {
  33712. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  33713. 800e8d0: 4b1a ldr r3, [pc, #104] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33714. 800e8d2: 6adb ldr r3, [r3, #44] @ 0x2c
  33715. 800e8d4: 4a19 ldr r2, [pc, #100] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33716. 800e8d6: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  33717. 800e8da: 62d3 str r3, [r2, #44] @ 0x2c
  33718. 800e8dc: e00f b.n 800e8fe <RCCEx_PLL2_Config+0x11e>
  33719. }
  33720. else if (Divider == DIVIDER_Q_UPDATE)
  33721. 800e8de: 683b ldr r3, [r7, #0]
  33722. 800e8e0: 2b01 cmp r3, #1
  33723. 800e8e2: d106 bne.n 800e8f2 <RCCEx_PLL2_Config+0x112>
  33724. {
  33725. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  33726. 800e8e4: 4b15 ldr r3, [pc, #84] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33727. 800e8e6: 6adb ldr r3, [r3, #44] @ 0x2c
  33728. 800e8e8: 4a14 ldr r2, [pc, #80] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33729. 800e8ea: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  33730. 800e8ee: 62d3 str r3, [r2, #44] @ 0x2c
  33731. 800e8f0: e005 b.n 800e8fe <RCCEx_PLL2_Config+0x11e>
  33732. }
  33733. else
  33734. {
  33735. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  33736. 800e8f2: 4b12 ldr r3, [pc, #72] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33737. 800e8f4: 6adb ldr r3, [r3, #44] @ 0x2c
  33738. 800e8f6: 4a11 ldr r2, [pc, #68] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33739. 800e8f8: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  33740. 800e8fc: 62d3 str r3, [r2, #44] @ 0x2c
  33741. }
  33742. /* Enable PLL2. */
  33743. __HAL_RCC_PLL2_ENABLE();
  33744. 800e8fe: 4b0f ldr r3, [pc, #60] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33745. 800e900: 681b ldr r3, [r3, #0]
  33746. 800e902: 4a0e ldr r2, [pc, #56] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33747. 800e904: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  33748. 800e908: 6013 str r3, [r2, #0]
  33749. /* Get Start Tick*/
  33750. tickstart = HAL_GetTick();
  33751. 800e90a: f7f6 fe2d bl 8005568 <HAL_GetTick>
  33752. 800e90e: 60b8 str r0, [r7, #8]
  33753. /* Wait till PLL2 is ready */
  33754. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  33755. 800e910: e008 b.n 800e924 <RCCEx_PLL2_Config+0x144>
  33756. {
  33757. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  33758. 800e912: f7f6 fe29 bl 8005568 <HAL_GetTick>
  33759. 800e916: 4602 mov r2, r0
  33760. 800e918: 68bb ldr r3, [r7, #8]
  33761. 800e91a: 1ad3 subs r3, r2, r3
  33762. 800e91c: 2b02 cmp r3, #2
  33763. 800e91e: d901 bls.n 800e924 <RCCEx_PLL2_Config+0x144>
  33764. {
  33765. return HAL_TIMEOUT;
  33766. 800e920: 2303 movs r3, #3
  33767. 800e922: e006 b.n 800e932 <RCCEx_PLL2_Config+0x152>
  33768. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  33769. 800e924: 4b05 ldr r3, [pc, #20] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33770. 800e926: 681b ldr r3, [r3, #0]
  33771. 800e928: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33772. 800e92c: 2b00 cmp r3, #0
  33773. 800e92e: d0f0 beq.n 800e912 <RCCEx_PLL2_Config+0x132>
  33774. }
  33775. }
  33776. return status;
  33777. 800e930: 7bfb ldrb r3, [r7, #15]
  33778. }
  33779. 800e932: 4618 mov r0, r3
  33780. 800e934: 3710 adds r7, #16
  33781. 800e936: 46bd mov sp, r7
  33782. 800e938: bd80 pop {r7, pc}
  33783. 800e93a: bf00 nop
  33784. 800e93c: 58024400 .word 0x58024400
  33785. 800e940: ffff0007 .word 0xffff0007
  33786. 0800e944 <RCCEx_PLL3_Config>:
  33787. * @note PLL3 is temporary disabled to apply new parameters
  33788. *
  33789. * @retval HAL status
  33790. */
  33791. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  33792. {
  33793. 800e944: b580 push {r7, lr}
  33794. 800e946: b084 sub sp, #16
  33795. 800e948: af00 add r7, sp, #0
  33796. 800e94a: 6078 str r0, [r7, #4]
  33797. 800e94c: 6039 str r1, [r7, #0]
  33798. uint32_t tickstart;
  33799. HAL_StatusTypeDef status = HAL_OK;
  33800. 800e94e: 2300 movs r3, #0
  33801. 800e950: 73fb strb r3, [r7, #15]
  33802. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  33803. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  33804. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  33805. /* Check that PLL3 OSC clock source is already set */
  33806. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  33807. 800e952: 4b53 ldr r3, [pc, #332] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33808. 800e954: 6a9b ldr r3, [r3, #40] @ 0x28
  33809. 800e956: f003 0303 and.w r3, r3, #3
  33810. 800e95a: 2b03 cmp r3, #3
  33811. 800e95c: d101 bne.n 800e962 <RCCEx_PLL3_Config+0x1e>
  33812. {
  33813. return HAL_ERROR;
  33814. 800e95e: 2301 movs r3, #1
  33815. 800e960: e099 b.n 800ea96 <RCCEx_PLL3_Config+0x152>
  33816. else
  33817. {
  33818. /* Disable PLL3. */
  33819. __HAL_RCC_PLL3_DISABLE();
  33820. 800e962: 4b4f ldr r3, [pc, #316] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33821. 800e964: 681b ldr r3, [r3, #0]
  33822. 800e966: 4a4e ldr r2, [pc, #312] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33823. 800e968: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  33824. 800e96c: 6013 str r3, [r2, #0]
  33825. /* Get Start Tick*/
  33826. tickstart = HAL_GetTick();
  33827. 800e96e: f7f6 fdfb bl 8005568 <HAL_GetTick>
  33828. 800e972: 60b8 str r0, [r7, #8]
  33829. /* Wait till PLL3 is ready */
  33830. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  33831. 800e974: e008 b.n 800e988 <RCCEx_PLL3_Config+0x44>
  33832. {
  33833. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  33834. 800e976: f7f6 fdf7 bl 8005568 <HAL_GetTick>
  33835. 800e97a: 4602 mov r2, r0
  33836. 800e97c: 68bb ldr r3, [r7, #8]
  33837. 800e97e: 1ad3 subs r3, r2, r3
  33838. 800e980: 2b02 cmp r3, #2
  33839. 800e982: d901 bls.n 800e988 <RCCEx_PLL3_Config+0x44>
  33840. {
  33841. return HAL_TIMEOUT;
  33842. 800e984: 2303 movs r3, #3
  33843. 800e986: e086 b.n 800ea96 <RCCEx_PLL3_Config+0x152>
  33844. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  33845. 800e988: 4b45 ldr r3, [pc, #276] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33846. 800e98a: 681b ldr r3, [r3, #0]
  33847. 800e98c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33848. 800e990: 2b00 cmp r3, #0
  33849. 800e992: d1f0 bne.n 800e976 <RCCEx_PLL3_Config+0x32>
  33850. }
  33851. }
  33852. /* Configure the PLL3 multiplication and division factors. */
  33853. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  33854. 800e994: 4b42 ldr r3, [pc, #264] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33855. 800e996: 6a9b ldr r3, [r3, #40] @ 0x28
  33856. 800e998: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  33857. 800e99c: 687b ldr r3, [r7, #4]
  33858. 800e99e: 681b ldr r3, [r3, #0]
  33859. 800e9a0: 051b lsls r3, r3, #20
  33860. 800e9a2: 493f ldr r1, [pc, #252] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33861. 800e9a4: 4313 orrs r3, r2
  33862. 800e9a6: 628b str r3, [r1, #40] @ 0x28
  33863. 800e9a8: 687b ldr r3, [r7, #4]
  33864. 800e9aa: 685b ldr r3, [r3, #4]
  33865. 800e9ac: 3b01 subs r3, #1
  33866. 800e9ae: f3c3 0208 ubfx r2, r3, #0, #9
  33867. 800e9b2: 687b ldr r3, [r7, #4]
  33868. 800e9b4: 689b ldr r3, [r3, #8]
  33869. 800e9b6: 3b01 subs r3, #1
  33870. 800e9b8: 025b lsls r3, r3, #9
  33871. 800e9ba: b29b uxth r3, r3
  33872. 800e9bc: 431a orrs r2, r3
  33873. 800e9be: 687b ldr r3, [r7, #4]
  33874. 800e9c0: 68db ldr r3, [r3, #12]
  33875. 800e9c2: 3b01 subs r3, #1
  33876. 800e9c4: 041b lsls r3, r3, #16
  33877. 800e9c6: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  33878. 800e9ca: 431a orrs r2, r3
  33879. 800e9cc: 687b ldr r3, [r7, #4]
  33880. 800e9ce: 691b ldr r3, [r3, #16]
  33881. 800e9d0: 3b01 subs r3, #1
  33882. 800e9d2: 061b lsls r3, r3, #24
  33883. 800e9d4: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  33884. 800e9d8: 4931 ldr r1, [pc, #196] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33885. 800e9da: 4313 orrs r3, r2
  33886. 800e9dc: 640b str r3, [r1, #64] @ 0x40
  33887. pll3->PLL3P,
  33888. pll3->PLL3Q,
  33889. pll3->PLL3R);
  33890. /* Select PLL3 input reference frequency range: VCI */
  33891. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  33892. 800e9de: 4b30 ldr r3, [pc, #192] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33893. 800e9e0: 6adb ldr r3, [r3, #44] @ 0x2c
  33894. 800e9e2: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  33895. 800e9e6: 687b ldr r3, [r7, #4]
  33896. 800e9e8: 695b ldr r3, [r3, #20]
  33897. 800e9ea: 492d ldr r1, [pc, #180] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33898. 800e9ec: 4313 orrs r3, r2
  33899. 800e9ee: 62cb str r3, [r1, #44] @ 0x2c
  33900. /* Select PLL3 output frequency range : VCO */
  33901. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  33902. 800e9f0: 4b2b ldr r3, [pc, #172] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33903. 800e9f2: 6adb ldr r3, [r3, #44] @ 0x2c
  33904. 800e9f4: f423 7200 bic.w r2, r3, #512 @ 0x200
  33905. 800e9f8: 687b ldr r3, [r7, #4]
  33906. 800e9fa: 699b ldr r3, [r3, #24]
  33907. 800e9fc: 4928 ldr r1, [pc, #160] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33908. 800e9fe: 4313 orrs r3, r2
  33909. 800ea00: 62cb str r3, [r1, #44] @ 0x2c
  33910. /* Disable PLL3FRACN . */
  33911. __HAL_RCC_PLL3FRACN_DISABLE();
  33912. 800ea02: 4b27 ldr r3, [pc, #156] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33913. 800ea04: 6adb ldr r3, [r3, #44] @ 0x2c
  33914. 800ea06: 4a26 ldr r2, [pc, #152] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33915. 800ea08: f423 7380 bic.w r3, r3, #256 @ 0x100
  33916. 800ea0c: 62d3 str r3, [r2, #44] @ 0x2c
  33917. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  33918. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  33919. 800ea0e: 4b24 ldr r3, [pc, #144] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33920. 800ea10: 6c5a ldr r2, [r3, #68] @ 0x44
  33921. 800ea12: 4b24 ldr r3, [pc, #144] @ (800eaa4 <RCCEx_PLL3_Config+0x160>)
  33922. 800ea14: 4013 ands r3, r2
  33923. 800ea16: 687a ldr r2, [r7, #4]
  33924. 800ea18: 69d2 ldr r2, [r2, #28]
  33925. 800ea1a: 00d2 lsls r2, r2, #3
  33926. 800ea1c: 4920 ldr r1, [pc, #128] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33927. 800ea1e: 4313 orrs r3, r2
  33928. 800ea20: 644b str r3, [r1, #68] @ 0x44
  33929. /* Enable PLL3FRACN . */
  33930. __HAL_RCC_PLL3FRACN_ENABLE();
  33931. 800ea22: 4b1f ldr r3, [pc, #124] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33932. 800ea24: 6adb ldr r3, [r3, #44] @ 0x2c
  33933. 800ea26: 4a1e ldr r2, [pc, #120] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33934. 800ea28: f443 7380 orr.w r3, r3, #256 @ 0x100
  33935. 800ea2c: 62d3 str r3, [r2, #44] @ 0x2c
  33936. /* Enable the PLL3 clock output */
  33937. if (Divider == DIVIDER_P_UPDATE)
  33938. 800ea2e: 683b ldr r3, [r7, #0]
  33939. 800ea30: 2b00 cmp r3, #0
  33940. 800ea32: d106 bne.n 800ea42 <RCCEx_PLL3_Config+0xfe>
  33941. {
  33942. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  33943. 800ea34: 4b1a ldr r3, [pc, #104] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33944. 800ea36: 6adb ldr r3, [r3, #44] @ 0x2c
  33945. 800ea38: 4a19 ldr r2, [pc, #100] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33946. 800ea3a: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  33947. 800ea3e: 62d3 str r3, [r2, #44] @ 0x2c
  33948. 800ea40: e00f b.n 800ea62 <RCCEx_PLL3_Config+0x11e>
  33949. }
  33950. else if (Divider == DIVIDER_Q_UPDATE)
  33951. 800ea42: 683b ldr r3, [r7, #0]
  33952. 800ea44: 2b01 cmp r3, #1
  33953. 800ea46: d106 bne.n 800ea56 <RCCEx_PLL3_Config+0x112>
  33954. {
  33955. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  33956. 800ea48: 4b15 ldr r3, [pc, #84] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33957. 800ea4a: 6adb ldr r3, [r3, #44] @ 0x2c
  33958. 800ea4c: 4a14 ldr r2, [pc, #80] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33959. 800ea4e: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  33960. 800ea52: 62d3 str r3, [r2, #44] @ 0x2c
  33961. 800ea54: e005 b.n 800ea62 <RCCEx_PLL3_Config+0x11e>
  33962. }
  33963. else
  33964. {
  33965. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  33966. 800ea56: 4b12 ldr r3, [pc, #72] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33967. 800ea58: 6adb ldr r3, [r3, #44] @ 0x2c
  33968. 800ea5a: 4a11 ldr r2, [pc, #68] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33969. 800ea5c: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  33970. 800ea60: 62d3 str r3, [r2, #44] @ 0x2c
  33971. }
  33972. /* Enable PLL3. */
  33973. __HAL_RCC_PLL3_ENABLE();
  33974. 800ea62: 4b0f ldr r3, [pc, #60] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33975. 800ea64: 681b ldr r3, [r3, #0]
  33976. 800ea66: 4a0e ldr r2, [pc, #56] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33977. 800ea68: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  33978. 800ea6c: 6013 str r3, [r2, #0]
  33979. /* Get Start Tick*/
  33980. tickstart = HAL_GetTick();
  33981. 800ea6e: f7f6 fd7b bl 8005568 <HAL_GetTick>
  33982. 800ea72: 60b8 str r0, [r7, #8]
  33983. /* Wait till PLL3 is ready */
  33984. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  33985. 800ea74: e008 b.n 800ea88 <RCCEx_PLL3_Config+0x144>
  33986. {
  33987. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  33988. 800ea76: f7f6 fd77 bl 8005568 <HAL_GetTick>
  33989. 800ea7a: 4602 mov r2, r0
  33990. 800ea7c: 68bb ldr r3, [r7, #8]
  33991. 800ea7e: 1ad3 subs r3, r2, r3
  33992. 800ea80: 2b02 cmp r3, #2
  33993. 800ea82: d901 bls.n 800ea88 <RCCEx_PLL3_Config+0x144>
  33994. {
  33995. return HAL_TIMEOUT;
  33996. 800ea84: 2303 movs r3, #3
  33997. 800ea86: e006 b.n 800ea96 <RCCEx_PLL3_Config+0x152>
  33998. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  33999. 800ea88: 4b05 ldr r3, [pc, #20] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  34000. 800ea8a: 681b ldr r3, [r3, #0]
  34001. 800ea8c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34002. 800ea90: 2b00 cmp r3, #0
  34003. 800ea92: d0f0 beq.n 800ea76 <RCCEx_PLL3_Config+0x132>
  34004. }
  34005. }
  34006. return status;
  34007. 800ea94: 7bfb ldrb r3, [r7, #15]
  34008. }
  34009. 800ea96: 4618 mov r0, r3
  34010. 800ea98: 3710 adds r7, #16
  34011. 800ea9a: 46bd mov sp, r7
  34012. 800ea9c: bd80 pop {r7, pc}
  34013. 800ea9e: bf00 nop
  34014. 800eaa0: 58024400 .word 0x58024400
  34015. 800eaa4: ffff0007 .word 0xffff0007
  34016. 0800eaa8 <HAL_RNG_Init>:
  34017. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  34018. * the configuration information for RNG.
  34019. * @retval HAL status
  34020. */
  34021. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  34022. {
  34023. 800eaa8: b580 push {r7, lr}
  34024. 800eaaa: b084 sub sp, #16
  34025. 800eaac: af00 add r7, sp, #0
  34026. 800eaae: 6078 str r0, [r7, #4]
  34027. uint32_t tickstart;
  34028. /* Check the RNG handle allocation */
  34029. if (hrng == NULL)
  34030. 800eab0: 687b ldr r3, [r7, #4]
  34031. 800eab2: 2b00 cmp r3, #0
  34032. 800eab4: d101 bne.n 800eaba <HAL_RNG_Init+0x12>
  34033. {
  34034. return HAL_ERROR;
  34035. 800eab6: 2301 movs r3, #1
  34036. 800eab8: e054 b.n 800eb64 <HAL_RNG_Init+0xbc>
  34037. /* Init the low level hardware */
  34038. hrng->MspInitCallback(hrng);
  34039. }
  34040. #else
  34041. if (hrng->State == HAL_RNG_STATE_RESET)
  34042. 800eaba: 687b ldr r3, [r7, #4]
  34043. 800eabc: 7a5b ldrb r3, [r3, #9]
  34044. 800eabe: b2db uxtb r3, r3
  34045. 800eac0: 2b00 cmp r3, #0
  34046. 800eac2: d105 bne.n 800ead0 <HAL_RNG_Init+0x28>
  34047. {
  34048. /* Allocate lock resource and initialize it */
  34049. hrng->Lock = HAL_UNLOCKED;
  34050. 800eac4: 687b ldr r3, [r7, #4]
  34051. 800eac6: 2200 movs r2, #0
  34052. 800eac8: 721a strb r2, [r3, #8]
  34053. /* Init the low level hardware */
  34054. HAL_RNG_MspInit(hrng);
  34055. 800eaca: 6878 ldr r0, [r7, #4]
  34056. 800eacc: f7f4 ffbc bl 8003a48 <HAL_RNG_MspInit>
  34057. }
  34058. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  34059. /* Change RNG peripheral state */
  34060. hrng->State = HAL_RNG_STATE_BUSY;
  34061. 800ead0: 687b ldr r3, [r7, #4]
  34062. 800ead2: 2202 movs r2, #2
  34063. 800ead4: 725a strb r2, [r3, #9]
  34064. }
  34065. }
  34066. }
  34067. #else
  34068. /* Clock Error Detection Configuration */
  34069. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  34070. 800ead6: 687b ldr r3, [r7, #4]
  34071. 800ead8: 681b ldr r3, [r3, #0]
  34072. 800eada: 681b ldr r3, [r3, #0]
  34073. 800eadc: f023 0120 bic.w r1, r3, #32
  34074. 800eae0: 687b ldr r3, [r7, #4]
  34075. 800eae2: 685a ldr r2, [r3, #4]
  34076. 800eae4: 687b ldr r3, [r7, #4]
  34077. 800eae6: 681b ldr r3, [r3, #0]
  34078. 800eae8: 430a orrs r2, r1
  34079. 800eaea: 601a str r2, [r3, #0]
  34080. #endif /* RNG_CR_CONDRST */
  34081. /* Enable the RNG Peripheral */
  34082. __HAL_RNG_ENABLE(hrng);
  34083. 800eaec: 687b ldr r3, [r7, #4]
  34084. 800eaee: 681b ldr r3, [r3, #0]
  34085. 800eaf0: 681a ldr r2, [r3, #0]
  34086. 800eaf2: 687b ldr r3, [r7, #4]
  34087. 800eaf4: 681b ldr r3, [r3, #0]
  34088. 800eaf6: f042 0204 orr.w r2, r2, #4
  34089. 800eafa: 601a str r2, [r3, #0]
  34090. /* verify that no seed error */
  34091. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  34092. 800eafc: 687b ldr r3, [r7, #4]
  34093. 800eafe: 681b ldr r3, [r3, #0]
  34094. 800eb00: 685b ldr r3, [r3, #4]
  34095. 800eb02: f003 0340 and.w r3, r3, #64 @ 0x40
  34096. 800eb06: 2b40 cmp r3, #64 @ 0x40
  34097. 800eb08: d104 bne.n 800eb14 <HAL_RNG_Init+0x6c>
  34098. {
  34099. hrng->State = HAL_RNG_STATE_ERROR;
  34100. 800eb0a: 687b ldr r3, [r7, #4]
  34101. 800eb0c: 2204 movs r2, #4
  34102. 800eb0e: 725a strb r2, [r3, #9]
  34103. return HAL_ERROR;
  34104. 800eb10: 2301 movs r3, #1
  34105. 800eb12: e027 b.n 800eb64 <HAL_RNG_Init+0xbc>
  34106. }
  34107. /* Get tick */
  34108. tickstart = HAL_GetTick();
  34109. 800eb14: f7f6 fd28 bl 8005568 <HAL_GetTick>
  34110. 800eb18: 60f8 str r0, [r7, #12]
  34111. /* Check if data register contains valid random data */
  34112. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34113. 800eb1a: e015 b.n 800eb48 <HAL_RNG_Init+0xa0>
  34114. {
  34115. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  34116. 800eb1c: f7f6 fd24 bl 8005568 <HAL_GetTick>
  34117. 800eb20: 4602 mov r2, r0
  34118. 800eb22: 68fb ldr r3, [r7, #12]
  34119. 800eb24: 1ad3 subs r3, r2, r3
  34120. 800eb26: 2b02 cmp r3, #2
  34121. 800eb28: d90e bls.n 800eb48 <HAL_RNG_Init+0xa0>
  34122. {
  34123. /* New check to avoid false timeout detection in case of preemption */
  34124. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34125. 800eb2a: 687b ldr r3, [r7, #4]
  34126. 800eb2c: 681b ldr r3, [r3, #0]
  34127. 800eb2e: 685b ldr r3, [r3, #4]
  34128. 800eb30: f003 0304 and.w r3, r3, #4
  34129. 800eb34: 2b04 cmp r3, #4
  34130. 800eb36: d107 bne.n 800eb48 <HAL_RNG_Init+0xa0>
  34131. {
  34132. hrng->State = HAL_RNG_STATE_ERROR;
  34133. 800eb38: 687b ldr r3, [r7, #4]
  34134. 800eb3a: 2204 movs r2, #4
  34135. 800eb3c: 725a strb r2, [r3, #9]
  34136. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  34137. 800eb3e: 687b ldr r3, [r7, #4]
  34138. 800eb40: 2202 movs r2, #2
  34139. 800eb42: 60da str r2, [r3, #12]
  34140. return HAL_ERROR;
  34141. 800eb44: 2301 movs r3, #1
  34142. 800eb46: e00d b.n 800eb64 <HAL_RNG_Init+0xbc>
  34143. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34144. 800eb48: 687b ldr r3, [r7, #4]
  34145. 800eb4a: 681b ldr r3, [r3, #0]
  34146. 800eb4c: 685b ldr r3, [r3, #4]
  34147. 800eb4e: f003 0304 and.w r3, r3, #4
  34148. 800eb52: 2b04 cmp r3, #4
  34149. 800eb54: d0e2 beq.n 800eb1c <HAL_RNG_Init+0x74>
  34150. }
  34151. }
  34152. }
  34153. /* Initialize the RNG state */
  34154. hrng->State = HAL_RNG_STATE_READY;
  34155. 800eb56: 687b ldr r3, [r7, #4]
  34156. 800eb58: 2201 movs r2, #1
  34157. 800eb5a: 725a strb r2, [r3, #9]
  34158. /* Initialise the error code */
  34159. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  34160. 800eb5c: 687b ldr r3, [r7, #4]
  34161. 800eb5e: 2200 movs r2, #0
  34162. 800eb60: 60da str r2, [r3, #12]
  34163. /* Return function status */
  34164. return HAL_OK;
  34165. 800eb62: 2300 movs r3, #0
  34166. }
  34167. 800eb64: 4618 mov r0, r3
  34168. 800eb66: 3710 adds r7, #16
  34169. 800eb68: 46bd mov sp, r7
  34170. 800eb6a: bd80 pop {r7, pc}
  34171. 0800eb6c <HAL_TIM_Base_Init>:
  34172. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  34173. * @param htim TIM Base handle
  34174. * @retval HAL status
  34175. */
  34176. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  34177. {
  34178. 800eb6c: b580 push {r7, lr}
  34179. 800eb6e: b082 sub sp, #8
  34180. 800eb70: af00 add r7, sp, #0
  34181. 800eb72: 6078 str r0, [r7, #4]
  34182. /* Check the TIM handle allocation */
  34183. if (htim == NULL)
  34184. 800eb74: 687b ldr r3, [r7, #4]
  34185. 800eb76: 2b00 cmp r3, #0
  34186. 800eb78: d101 bne.n 800eb7e <HAL_TIM_Base_Init+0x12>
  34187. {
  34188. return HAL_ERROR;
  34189. 800eb7a: 2301 movs r3, #1
  34190. 800eb7c: e049 b.n 800ec12 <HAL_TIM_Base_Init+0xa6>
  34191. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  34192. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  34193. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  34194. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  34195. if (htim->State == HAL_TIM_STATE_RESET)
  34196. 800eb7e: 687b ldr r3, [r7, #4]
  34197. 800eb80: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34198. 800eb84: b2db uxtb r3, r3
  34199. 800eb86: 2b00 cmp r3, #0
  34200. 800eb88: d106 bne.n 800eb98 <HAL_TIM_Base_Init+0x2c>
  34201. {
  34202. /* Allocate lock resource and initialize it */
  34203. htim->Lock = HAL_UNLOCKED;
  34204. 800eb8a: 687b ldr r3, [r7, #4]
  34205. 800eb8c: 2200 movs r2, #0
  34206. 800eb8e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  34207. }
  34208. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34209. htim->Base_MspInitCallback(htim);
  34210. #else
  34211. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34212. HAL_TIM_Base_MspInit(htim);
  34213. 800eb92: 6878 ldr r0, [r7, #4]
  34214. 800eb94: f7f4 ffcc bl 8003b30 <HAL_TIM_Base_MspInit>
  34215. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  34216. }
  34217. /* Set the TIM state */
  34218. htim->State = HAL_TIM_STATE_BUSY;
  34219. 800eb98: 687b ldr r3, [r7, #4]
  34220. 800eb9a: 2202 movs r2, #2
  34221. 800eb9c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34222. /* Set the Time Base configuration */
  34223. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  34224. 800eba0: 687b ldr r3, [r7, #4]
  34225. 800eba2: 681a ldr r2, [r3, #0]
  34226. 800eba4: 687b ldr r3, [r7, #4]
  34227. 800eba6: 3304 adds r3, #4
  34228. 800eba8: 4619 mov r1, r3
  34229. 800ebaa: 4610 mov r0, r2
  34230. 800ebac: f001 f918 bl 800fde0 <TIM_Base_SetConfig>
  34231. /* Initialize the DMA burst operation state */
  34232. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  34233. 800ebb0: 687b ldr r3, [r7, #4]
  34234. 800ebb2: 2201 movs r2, #1
  34235. 800ebb4: f883 2048 strb.w r2, [r3, #72] @ 0x48
  34236. /* Initialize the TIM channels state */
  34237. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34238. 800ebb8: 687b ldr r3, [r7, #4]
  34239. 800ebba: 2201 movs r2, #1
  34240. 800ebbc: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34241. 800ebc0: 687b ldr r3, [r7, #4]
  34242. 800ebc2: 2201 movs r2, #1
  34243. 800ebc4: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34244. 800ebc8: 687b ldr r3, [r7, #4]
  34245. 800ebca: 2201 movs r2, #1
  34246. 800ebcc: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34247. 800ebd0: 687b ldr r3, [r7, #4]
  34248. 800ebd2: 2201 movs r2, #1
  34249. 800ebd4: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34250. 800ebd8: 687b ldr r3, [r7, #4]
  34251. 800ebda: 2201 movs r2, #1
  34252. 800ebdc: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34253. 800ebe0: 687b ldr r3, [r7, #4]
  34254. 800ebe2: 2201 movs r2, #1
  34255. 800ebe4: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34256. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34257. 800ebe8: 687b ldr r3, [r7, #4]
  34258. 800ebea: 2201 movs r2, #1
  34259. 800ebec: f883 2044 strb.w r2, [r3, #68] @ 0x44
  34260. 800ebf0: 687b ldr r3, [r7, #4]
  34261. 800ebf2: 2201 movs r2, #1
  34262. 800ebf4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  34263. 800ebf8: 687b ldr r3, [r7, #4]
  34264. 800ebfa: 2201 movs r2, #1
  34265. 800ebfc: f883 2046 strb.w r2, [r3, #70] @ 0x46
  34266. 800ec00: 687b ldr r3, [r7, #4]
  34267. 800ec02: 2201 movs r2, #1
  34268. 800ec04: f883 2047 strb.w r2, [r3, #71] @ 0x47
  34269. /* Initialize the TIM state*/
  34270. htim->State = HAL_TIM_STATE_READY;
  34271. 800ec08: 687b ldr r3, [r7, #4]
  34272. 800ec0a: 2201 movs r2, #1
  34273. 800ec0c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34274. return HAL_OK;
  34275. 800ec10: 2300 movs r3, #0
  34276. }
  34277. 800ec12: 4618 mov r0, r3
  34278. 800ec14: 3708 adds r7, #8
  34279. 800ec16: 46bd mov sp, r7
  34280. 800ec18: bd80 pop {r7, pc}
  34281. ...
  34282. 0800ec1c <HAL_TIM_Base_Start>:
  34283. * @brief Starts the TIM Base generation.
  34284. * @param htim TIM Base handle
  34285. * @retval HAL status
  34286. */
  34287. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  34288. {
  34289. 800ec1c: b480 push {r7}
  34290. 800ec1e: b085 sub sp, #20
  34291. 800ec20: af00 add r7, sp, #0
  34292. 800ec22: 6078 str r0, [r7, #4]
  34293. /* Check the parameters */
  34294. assert_param(IS_TIM_INSTANCE(htim->Instance));
  34295. /* Check the TIM state */
  34296. if (htim->State != HAL_TIM_STATE_READY)
  34297. 800ec24: 687b ldr r3, [r7, #4]
  34298. 800ec26: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34299. 800ec2a: b2db uxtb r3, r3
  34300. 800ec2c: 2b01 cmp r3, #1
  34301. 800ec2e: d001 beq.n 800ec34 <HAL_TIM_Base_Start+0x18>
  34302. {
  34303. return HAL_ERROR;
  34304. 800ec30: 2301 movs r3, #1
  34305. 800ec32: e04c b.n 800ecce <HAL_TIM_Base_Start+0xb2>
  34306. }
  34307. /* Set the TIM state */
  34308. htim->State = HAL_TIM_STATE_BUSY;
  34309. 800ec34: 687b ldr r3, [r7, #4]
  34310. 800ec36: 2202 movs r2, #2
  34311. 800ec38: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34312. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34313. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34314. 800ec3c: 687b ldr r3, [r7, #4]
  34315. 800ec3e: 681b ldr r3, [r3, #0]
  34316. 800ec40: 4a26 ldr r2, [pc, #152] @ (800ecdc <HAL_TIM_Base_Start+0xc0>)
  34317. 800ec42: 4293 cmp r3, r2
  34318. 800ec44: d022 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34319. 800ec46: 687b ldr r3, [r7, #4]
  34320. 800ec48: 681b ldr r3, [r3, #0]
  34321. 800ec4a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34322. 800ec4e: d01d beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34323. 800ec50: 687b ldr r3, [r7, #4]
  34324. 800ec52: 681b ldr r3, [r3, #0]
  34325. 800ec54: 4a22 ldr r2, [pc, #136] @ (800ece0 <HAL_TIM_Base_Start+0xc4>)
  34326. 800ec56: 4293 cmp r3, r2
  34327. 800ec58: d018 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34328. 800ec5a: 687b ldr r3, [r7, #4]
  34329. 800ec5c: 681b ldr r3, [r3, #0]
  34330. 800ec5e: 4a21 ldr r2, [pc, #132] @ (800ece4 <HAL_TIM_Base_Start+0xc8>)
  34331. 800ec60: 4293 cmp r3, r2
  34332. 800ec62: d013 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34333. 800ec64: 687b ldr r3, [r7, #4]
  34334. 800ec66: 681b ldr r3, [r3, #0]
  34335. 800ec68: 4a1f ldr r2, [pc, #124] @ (800ece8 <HAL_TIM_Base_Start+0xcc>)
  34336. 800ec6a: 4293 cmp r3, r2
  34337. 800ec6c: d00e beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34338. 800ec6e: 687b ldr r3, [r7, #4]
  34339. 800ec70: 681b ldr r3, [r3, #0]
  34340. 800ec72: 4a1e ldr r2, [pc, #120] @ (800ecec <HAL_TIM_Base_Start+0xd0>)
  34341. 800ec74: 4293 cmp r3, r2
  34342. 800ec76: d009 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34343. 800ec78: 687b ldr r3, [r7, #4]
  34344. 800ec7a: 681b ldr r3, [r3, #0]
  34345. 800ec7c: 4a1c ldr r2, [pc, #112] @ (800ecf0 <HAL_TIM_Base_Start+0xd4>)
  34346. 800ec7e: 4293 cmp r3, r2
  34347. 800ec80: d004 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34348. 800ec82: 687b ldr r3, [r7, #4]
  34349. 800ec84: 681b ldr r3, [r3, #0]
  34350. 800ec86: 4a1b ldr r2, [pc, #108] @ (800ecf4 <HAL_TIM_Base_Start+0xd8>)
  34351. 800ec88: 4293 cmp r3, r2
  34352. 800ec8a: d115 bne.n 800ecb8 <HAL_TIM_Base_Start+0x9c>
  34353. {
  34354. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34355. 800ec8c: 687b ldr r3, [r7, #4]
  34356. 800ec8e: 681b ldr r3, [r3, #0]
  34357. 800ec90: 689a ldr r2, [r3, #8]
  34358. 800ec92: 4b19 ldr r3, [pc, #100] @ (800ecf8 <HAL_TIM_Base_Start+0xdc>)
  34359. 800ec94: 4013 ands r3, r2
  34360. 800ec96: 60fb str r3, [r7, #12]
  34361. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34362. 800ec98: 68fb ldr r3, [r7, #12]
  34363. 800ec9a: 2b06 cmp r3, #6
  34364. 800ec9c: d015 beq.n 800ecca <HAL_TIM_Base_Start+0xae>
  34365. 800ec9e: 68fb ldr r3, [r7, #12]
  34366. 800eca0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34367. 800eca4: d011 beq.n 800ecca <HAL_TIM_Base_Start+0xae>
  34368. {
  34369. __HAL_TIM_ENABLE(htim);
  34370. 800eca6: 687b ldr r3, [r7, #4]
  34371. 800eca8: 681b ldr r3, [r3, #0]
  34372. 800ecaa: 681a ldr r2, [r3, #0]
  34373. 800ecac: 687b ldr r3, [r7, #4]
  34374. 800ecae: 681b ldr r3, [r3, #0]
  34375. 800ecb0: f042 0201 orr.w r2, r2, #1
  34376. 800ecb4: 601a str r2, [r3, #0]
  34377. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34378. 800ecb6: e008 b.n 800ecca <HAL_TIM_Base_Start+0xae>
  34379. }
  34380. }
  34381. else
  34382. {
  34383. __HAL_TIM_ENABLE(htim);
  34384. 800ecb8: 687b ldr r3, [r7, #4]
  34385. 800ecba: 681b ldr r3, [r3, #0]
  34386. 800ecbc: 681a ldr r2, [r3, #0]
  34387. 800ecbe: 687b ldr r3, [r7, #4]
  34388. 800ecc0: 681b ldr r3, [r3, #0]
  34389. 800ecc2: f042 0201 orr.w r2, r2, #1
  34390. 800ecc6: 601a str r2, [r3, #0]
  34391. 800ecc8: e000 b.n 800eccc <HAL_TIM_Base_Start+0xb0>
  34392. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34393. 800ecca: bf00 nop
  34394. }
  34395. /* Return function status */
  34396. return HAL_OK;
  34397. 800eccc: 2300 movs r3, #0
  34398. }
  34399. 800ecce: 4618 mov r0, r3
  34400. 800ecd0: 3714 adds r7, #20
  34401. 800ecd2: 46bd mov sp, r7
  34402. 800ecd4: f85d 7b04 ldr.w r7, [sp], #4
  34403. 800ecd8: 4770 bx lr
  34404. 800ecda: bf00 nop
  34405. 800ecdc: 40010000 .word 0x40010000
  34406. 800ece0: 40000400 .word 0x40000400
  34407. 800ece4: 40000800 .word 0x40000800
  34408. 800ece8: 40000c00 .word 0x40000c00
  34409. 800ecec: 40010400 .word 0x40010400
  34410. 800ecf0: 40001800 .word 0x40001800
  34411. 800ecf4: 40014000 .word 0x40014000
  34412. 800ecf8: 00010007 .word 0x00010007
  34413. 0800ecfc <HAL_TIM_Base_Start_IT>:
  34414. * @brief Starts the TIM Base generation in interrupt mode.
  34415. * @param htim TIM Base handle
  34416. * @retval HAL status
  34417. */
  34418. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  34419. {
  34420. 800ecfc: b480 push {r7}
  34421. 800ecfe: b085 sub sp, #20
  34422. 800ed00: af00 add r7, sp, #0
  34423. 800ed02: 6078 str r0, [r7, #4]
  34424. /* Check the parameters */
  34425. assert_param(IS_TIM_INSTANCE(htim->Instance));
  34426. /* Check the TIM state */
  34427. if (htim->State != HAL_TIM_STATE_READY)
  34428. 800ed04: 687b ldr r3, [r7, #4]
  34429. 800ed06: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34430. 800ed0a: b2db uxtb r3, r3
  34431. 800ed0c: 2b01 cmp r3, #1
  34432. 800ed0e: d001 beq.n 800ed14 <HAL_TIM_Base_Start_IT+0x18>
  34433. {
  34434. return HAL_ERROR;
  34435. 800ed10: 2301 movs r3, #1
  34436. 800ed12: e054 b.n 800edbe <HAL_TIM_Base_Start_IT+0xc2>
  34437. }
  34438. /* Set the TIM state */
  34439. htim->State = HAL_TIM_STATE_BUSY;
  34440. 800ed14: 687b ldr r3, [r7, #4]
  34441. 800ed16: 2202 movs r2, #2
  34442. 800ed18: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34443. /* Enable the TIM Update interrupt */
  34444. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  34445. 800ed1c: 687b ldr r3, [r7, #4]
  34446. 800ed1e: 681b ldr r3, [r3, #0]
  34447. 800ed20: 68da ldr r2, [r3, #12]
  34448. 800ed22: 687b ldr r3, [r7, #4]
  34449. 800ed24: 681b ldr r3, [r3, #0]
  34450. 800ed26: f042 0201 orr.w r2, r2, #1
  34451. 800ed2a: 60da str r2, [r3, #12]
  34452. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34453. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34454. 800ed2c: 687b ldr r3, [r7, #4]
  34455. 800ed2e: 681b ldr r3, [r3, #0]
  34456. 800ed30: 4a26 ldr r2, [pc, #152] @ (800edcc <HAL_TIM_Base_Start_IT+0xd0>)
  34457. 800ed32: 4293 cmp r3, r2
  34458. 800ed34: d022 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34459. 800ed36: 687b ldr r3, [r7, #4]
  34460. 800ed38: 681b ldr r3, [r3, #0]
  34461. 800ed3a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34462. 800ed3e: d01d beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34463. 800ed40: 687b ldr r3, [r7, #4]
  34464. 800ed42: 681b ldr r3, [r3, #0]
  34465. 800ed44: 4a22 ldr r2, [pc, #136] @ (800edd0 <HAL_TIM_Base_Start_IT+0xd4>)
  34466. 800ed46: 4293 cmp r3, r2
  34467. 800ed48: d018 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34468. 800ed4a: 687b ldr r3, [r7, #4]
  34469. 800ed4c: 681b ldr r3, [r3, #0]
  34470. 800ed4e: 4a21 ldr r2, [pc, #132] @ (800edd4 <HAL_TIM_Base_Start_IT+0xd8>)
  34471. 800ed50: 4293 cmp r3, r2
  34472. 800ed52: d013 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34473. 800ed54: 687b ldr r3, [r7, #4]
  34474. 800ed56: 681b ldr r3, [r3, #0]
  34475. 800ed58: 4a1f ldr r2, [pc, #124] @ (800edd8 <HAL_TIM_Base_Start_IT+0xdc>)
  34476. 800ed5a: 4293 cmp r3, r2
  34477. 800ed5c: d00e beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34478. 800ed5e: 687b ldr r3, [r7, #4]
  34479. 800ed60: 681b ldr r3, [r3, #0]
  34480. 800ed62: 4a1e ldr r2, [pc, #120] @ (800eddc <HAL_TIM_Base_Start_IT+0xe0>)
  34481. 800ed64: 4293 cmp r3, r2
  34482. 800ed66: d009 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34483. 800ed68: 687b ldr r3, [r7, #4]
  34484. 800ed6a: 681b ldr r3, [r3, #0]
  34485. 800ed6c: 4a1c ldr r2, [pc, #112] @ (800ede0 <HAL_TIM_Base_Start_IT+0xe4>)
  34486. 800ed6e: 4293 cmp r3, r2
  34487. 800ed70: d004 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34488. 800ed72: 687b ldr r3, [r7, #4]
  34489. 800ed74: 681b ldr r3, [r3, #0]
  34490. 800ed76: 4a1b ldr r2, [pc, #108] @ (800ede4 <HAL_TIM_Base_Start_IT+0xe8>)
  34491. 800ed78: 4293 cmp r3, r2
  34492. 800ed7a: d115 bne.n 800eda8 <HAL_TIM_Base_Start_IT+0xac>
  34493. {
  34494. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34495. 800ed7c: 687b ldr r3, [r7, #4]
  34496. 800ed7e: 681b ldr r3, [r3, #0]
  34497. 800ed80: 689a ldr r2, [r3, #8]
  34498. 800ed82: 4b19 ldr r3, [pc, #100] @ (800ede8 <HAL_TIM_Base_Start_IT+0xec>)
  34499. 800ed84: 4013 ands r3, r2
  34500. 800ed86: 60fb str r3, [r7, #12]
  34501. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34502. 800ed88: 68fb ldr r3, [r7, #12]
  34503. 800ed8a: 2b06 cmp r3, #6
  34504. 800ed8c: d015 beq.n 800edba <HAL_TIM_Base_Start_IT+0xbe>
  34505. 800ed8e: 68fb ldr r3, [r7, #12]
  34506. 800ed90: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34507. 800ed94: d011 beq.n 800edba <HAL_TIM_Base_Start_IT+0xbe>
  34508. {
  34509. __HAL_TIM_ENABLE(htim);
  34510. 800ed96: 687b ldr r3, [r7, #4]
  34511. 800ed98: 681b ldr r3, [r3, #0]
  34512. 800ed9a: 681a ldr r2, [r3, #0]
  34513. 800ed9c: 687b ldr r3, [r7, #4]
  34514. 800ed9e: 681b ldr r3, [r3, #0]
  34515. 800eda0: f042 0201 orr.w r2, r2, #1
  34516. 800eda4: 601a str r2, [r3, #0]
  34517. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34518. 800eda6: e008 b.n 800edba <HAL_TIM_Base_Start_IT+0xbe>
  34519. }
  34520. }
  34521. else
  34522. {
  34523. __HAL_TIM_ENABLE(htim);
  34524. 800eda8: 687b ldr r3, [r7, #4]
  34525. 800edaa: 681b ldr r3, [r3, #0]
  34526. 800edac: 681a ldr r2, [r3, #0]
  34527. 800edae: 687b ldr r3, [r7, #4]
  34528. 800edb0: 681b ldr r3, [r3, #0]
  34529. 800edb2: f042 0201 orr.w r2, r2, #1
  34530. 800edb6: 601a str r2, [r3, #0]
  34531. 800edb8: e000 b.n 800edbc <HAL_TIM_Base_Start_IT+0xc0>
  34532. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34533. 800edba: bf00 nop
  34534. }
  34535. /* Return function status */
  34536. return HAL_OK;
  34537. 800edbc: 2300 movs r3, #0
  34538. }
  34539. 800edbe: 4618 mov r0, r3
  34540. 800edc0: 3714 adds r7, #20
  34541. 800edc2: 46bd mov sp, r7
  34542. 800edc4: f85d 7b04 ldr.w r7, [sp], #4
  34543. 800edc8: 4770 bx lr
  34544. 800edca: bf00 nop
  34545. 800edcc: 40010000 .word 0x40010000
  34546. 800edd0: 40000400 .word 0x40000400
  34547. 800edd4: 40000800 .word 0x40000800
  34548. 800edd8: 40000c00 .word 0x40000c00
  34549. 800eddc: 40010400 .word 0x40010400
  34550. 800ede0: 40001800 .word 0x40001800
  34551. 800ede4: 40014000 .word 0x40014000
  34552. 800ede8: 00010007 .word 0x00010007
  34553. 0800edec <HAL_TIM_PWM_Init>:
  34554. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  34555. * @param htim TIM PWM handle
  34556. * @retval HAL status
  34557. */
  34558. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  34559. {
  34560. 800edec: b580 push {r7, lr}
  34561. 800edee: b082 sub sp, #8
  34562. 800edf0: af00 add r7, sp, #0
  34563. 800edf2: 6078 str r0, [r7, #4]
  34564. /* Check the TIM handle allocation */
  34565. if (htim == NULL)
  34566. 800edf4: 687b ldr r3, [r7, #4]
  34567. 800edf6: 2b00 cmp r3, #0
  34568. 800edf8: d101 bne.n 800edfe <HAL_TIM_PWM_Init+0x12>
  34569. {
  34570. return HAL_ERROR;
  34571. 800edfa: 2301 movs r3, #1
  34572. 800edfc: e049 b.n 800ee92 <HAL_TIM_PWM_Init+0xa6>
  34573. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  34574. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  34575. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  34576. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  34577. if (htim->State == HAL_TIM_STATE_RESET)
  34578. 800edfe: 687b ldr r3, [r7, #4]
  34579. 800ee00: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34580. 800ee04: b2db uxtb r3, r3
  34581. 800ee06: 2b00 cmp r3, #0
  34582. 800ee08: d106 bne.n 800ee18 <HAL_TIM_PWM_Init+0x2c>
  34583. {
  34584. /* Allocate lock resource and initialize it */
  34585. htim->Lock = HAL_UNLOCKED;
  34586. 800ee0a: 687b ldr r3, [r7, #4]
  34587. 800ee0c: 2200 movs r2, #0
  34588. 800ee0e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  34589. }
  34590. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34591. htim->PWM_MspInitCallback(htim);
  34592. #else
  34593. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  34594. HAL_TIM_PWM_MspInit(htim);
  34595. 800ee12: 6878 ldr r0, [r7, #4]
  34596. 800ee14: f7f4 fe52 bl 8003abc <HAL_TIM_PWM_MspInit>
  34597. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  34598. }
  34599. /* Set the TIM state */
  34600. htim->State = HAL_TIM_STATE_BUSY;
  34601. 800ee18: 687b ldr r3, [r7, #4]
  34602. 800ee1a: 2202 movs r2, #2
  34603. 800ee1c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34604. /* Init the base time for the PWM */
  34605. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  34606. 800ee20: 687b ldr r3, [r7, #4]
  34607. 800ee22: 681a ldr r2, [r3, #0]
  34608. 800ee24: 687b ldr r3, [r7, #4]
  34609. 800ee26: 3304 adds r3, #4
  34610. 800ee28: 4619 mov r1, r3
  34611. 800ee2a: 4610 mov r0, r2
  34612. 800ee2c: f000 ffd8 bl 800fde0 <TIM_Base_SetConfig>
  34613. /* Initialize the DMA burst operation state */
  34614. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  34615. 800ee30: 687b ldr r3, [r7, #4]
  34616. 800ee32: 2201 movs r2, #1
  34617. 800ee34: f883 2048 strb.w r2, [r3, #72] @ 0x48
  34618. /* Initialize the TIM channels state */
  34619. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34620. 800ee38: 687b ldr r3, [r7, #4]
  34621. 800ee3a: 2201 movs r2, #1
  34622. 800ee3c: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34623. 800ee40: 687b ldr r3, [r7, #4]
  34624. 800ee42: 2201 movs r2, #1
  34625. 800ee44: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34626. 800ee48: 687b ldr r3, [r7, #4]
  34627. 800ee4a: 2201 movs r2, #1
  34628. 800ee4c: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34629. 800ee50: 687b ldr r3, [r7, #4]
  34630. 800ee52: 2201 movs r2, #1
  34631. 800ee54: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34632. 800ee58: 687b ldr r3, [r7, #4]
  34633. 800ee5a: 2201 movs r2, #1
  34634. 800ee5c: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34635. 800ee60: 687b ldr r3, [r7, #4]
  34636. 800ee62: 2201 movs r2, #1
  34637. 800ee64: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34638. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34639. 800ee68: 687b ldr r3, [r7, #4]
  34640. 800ee6a: 2201 movs r2, #1
  34641. 800ee6c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  34642. 800ee70: 687b ldr r3, [r7, #4]
  34643. 800ee72: 2201 movs r2, #1
  34644. 800ee74: f883 2045 strb.w r2, [r3, #69] @ 0x45
  34645. 800ee78: 687b ldr r3, [r7, #4]
  34646. 800ee7a: 2201 movs r2, #1
  34647. 800ee7c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  34648. 800ee80: 687b ldr r3, [r7, #4]
  34649. 800ee82: 2201 movs r2, #1
  34650. 800ee84: f883 2047 strb.w r2, [r3, #71] @ 0x47
  34651. /* Initialize the TIM state*/
  34652. htim->State = HAL_TIM_STATE_READY;
  34653. 800ee88: 687b ldr r3, [r7, #4]
  34654. 800ee8a: 2201 movs r2, #1
  34655. 800ee8c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34656. return HAL_OK;
  34657. 800ee90: 2300 movs r3, #0
  34658. }
  34659. 800ee92: 4618 mov r0, r3
  34660. 800ee94: 3708 adds r7, #8
  34661. 800ee96: 46bd mov sp, r7
  34662. 800ee98: bd80 pop {r7, pc}
  34663. ...
  34664. 0800ee9c <HAL_TIM_PWM_Start>:
  34665. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  34666. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  34667. * @retval HAL status
  34668. */
  34669. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  34670. {
  34671. 800ee9c: b580 push {r7, lr}
  34672. 800ee9e: b084 sub sp, #16
  34673. 800eea0: af00 add r7, sp, #0
  34674. 800eea2: 6078 str r0, [r7, #4]
  34675. 800eea4: 6039 str r1, [r7, #0]
  34676. /* Check the parameters */
  34677. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  34678. /* Check the TIM channel state */
  34679. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  34680. 800eea6: 683b ldr r3, [r7, #0]
  34681. 800eea8: 2b00 cmp r3, #0
  34682. 800eeaa: d109 bne.n 800eec0 <HAL_TIM_PWM_Start+0x24>
  34683. 800eeac: 687b ldr r3, [r7, #4]
  34684. 800eeae: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  34685. 800eeb2: b2db uxtb r3, r3
  34686. 800eeb4: 2b01 cmp r3, #1
  34687. 800eeb6: bf14 ite ne
  34688. 800eeb8: 2301 movne r3, #1
  34689. 800eeba: 2300 moveq r3, #0
  34690. 800eebc: b2db uxtb r3, r3
  34691. 800eebe: e03c b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34692. 800eec0: 683b ldr r3, [r7, #0]
  34693. 800eec2: 2b04 cmp r3, #4
  34694. 800eec4: d109 bne.n 800eeda <HAL_TIM_PWM_Start+0x3e>
  34695. 800eec6: 687b ldr r3, [r7, #4]
  34696. 800eec8: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  34697. 800eecc: b2db uxtb r3, r3
  34698. 800eece: 2b01 cmp r3, #1
  34699. 800eed0: bf14 ite ne
  34700. 800eed2: 2301 movne r3, #1
  34701. 800eed4: 2300 moveq r3, #0
  34702. 800eed6: b2db uxtb r3, r3
  34703. 800eed8: e02f b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34704. 800eeda: 683b ldr r3, [r7, #0]
  34705. 800eedc: 2b08 cmp r3, #8
  34706. 800eede: d109 bne.n 800eef4 <HAL_TIM_PWM_Start+0x58>
  34707. 800eee0: 687b ldr r3, [r7, #4]
  34708. 800eee2: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  34709. 800eee6: b2db uxtb r3, r3
  34710. 800eee8: 2b01 cmp r3, #1
  34711. 800eeea: bf14 ite ne
  34712. 800eeec: 2301 movne r3, #1
  34713. 800eeee: 2300 moveq r3, #0
  34714. 800eef0: b2db uxtb r3, r3
  34715. 800eef2: e022 b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34716. 800eef4: 683b ldr r3, [r7, #0]
  34717. 800eef6: 2b0c cmp r3, #12
  34718. 800eef8: d109 bne.n 800ef0e <HAL_TIM_PWM_Start+0x72>
  34719. 800eefa: 687b ldr r3, [r7, #4]
  34720. 800eefc: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  34721. 800ef00: b2db uxtb r3, r3
  34722. 800ef02: 2b01 cmp r3, #1
  34723. 800ef04: bf14 ite ne
  34724. 800ef06: 2301 movne r3, #1
  34725. 800ef08: 2300 moveq r3, #0
  34726. 800ef0a: b2db uxtb r3, r3
  34727. 800ef0c: e015 b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34728. 800ef0e: 683b ldr r3, [r7, #0]
  34729. 800ef10: 2b10 cmp r3, #16
  34730. 800ef12: d109 bne.n 800ef28 <HAL_TIM_PWM_Start+0x8c>
  34731. 800ef14: 687b ldr r3, [r7, #4]
  34732. 800ef16: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  34733. 800ef1a: b2db uxtb r3, r3
  34734. 800ef1c: 2b01 cmp r3, #1
  34735. 800ef1e: bf14 ite ne
  34736. 800ef20: 2301 movne r3, #1
  34737. 800ef22: 2300 moveq r3, #0
  34738. 800ef24: b2db uxtb r3, r3
  34739. 800ef26: e008 b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34740. 800ef28: 687b ldr r3, [r7, #4]
  34741. 800ef2a: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  34742. 800ef2e: b2db uxtb r3, r3
  34743. 800ef30: 2b01 cmp r3, #1
  34744. 800ef32: bf14 ite ne
  34745. 800ef34: 2301 movne r3, #1
  34746. 800ef36: 2300 moveq r3, #0
  34747. 800ef38: b2db uxtb r3, r3
  34748. 800ef3a: 2b00 cmp r3, #0
  34749. 800ef3c: d001 beq.n 800ef42 <HAL_TIM_PWM_Start+0xa6>
  34750. {
  34751. return HAL_ERROR;
  34752. 800ef3e: 2301 movs r3, #1
  34753. 800ef40: e0a1 b.n 800f086 <HAL_TIM_PWM_Start+0x1ea>
  34754. }
  34755. /* Set the TIM channel state */
  34756. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  34757. 800ef42: 683b ldr r3, [r7, #0]
  34758. 800ef44: 2b00 cmp r3, #0
  34759. 800ef46: d104 bne.n 800ef52 <HAL_TIM_PWM_Start+0xb6>
  34760. 800ef48: 687b ldr r3, [r7, #4]
  34761. 800ef4a: 2202 movs r2, #2
  34762. 800ef4c: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34763. 800ef50: e023 b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34764. 800ef52: 683b ldr r3, [r7, #0]
  34765. 800ef54: 2b04 cmp r3, #4
  34766. 800ef56: d104 bne.n 800ef62 <HAL_TIM_PWM_Start+0xc6>
  34767. 800ef58: 687b ldr r3, [r7, #4]
  34768. 800ef5a: 2202 movs r2, #2
  34769. 800ef5c: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34770. 800ef60: e01b b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34771. 800ef62: 683b ldr r3, [r7, #0]
  34772. 800ef64: 2b08 cmp r3, #8
  34773. 800ef66: d104 bne.n 800ef72 <HAL_TIM_PWM_Start+0xd6>
  34774. 800ef68: 687b ldr r3, [r7, #4]
  34775. 800ef6a: 2202 movs r2, #2
  34776. 800ef6c: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34777. 800ef70: e013 b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34778. 800ef72: 683b ldr r3, [r7, #0]
  34779. 800ef74: 2b0c cmp r3, #12
  34780. 800ef76: d104 bne.n 800ef82 <HAL_TIM_PWM_Start+0xe6>
  34781. 800ef78: 687b ldr r3, [r7, #4]
  34782. 800ef7a: 2202 movs r2, #2
  34783. 800ef7c: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34784. 800ef80: e00b b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34785. 800ef82: 683b ldr r3, [r7, #0]
  34786. 800ef84: 2b10 cmp r3, #16
  34787. 800ef86: d104 bne.n 800ef92 <HAL_TIM_PWM_Start+0xf6>
  34788. 800ef88: 687b ldr r3, [r7, #4]
  34789. 800ef8a: 2202 movs r2, #2
  34790. 800ef8c: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34791. 800ef90: e003 b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34792. 800ef92: 687b ldr r3, [r7, #4]
  34793. 800ef94: 2202 movs r2, #2
  34794. 800ef96: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34795. /* Enable the Capture compare channel */
  34796. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  34797. 800ef9a: 687b ldr r3, [r7, #4]
  34798. 800ef9c: 681b ldr r3, [r3, #0]
  34799. 800ef9e: 2201 movs r2, #1
  34800. 800efa0: 6839 ldr r1, [r7, #0]
  34801. 800efa2: 4618 mov r0, r3
  34802. 800efa4: f001 fc60 bl 8010868 <TIM_CCxChannelCmd>
  34803. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  34804. 800efa8: 687b ldr r3, [r7, #4]
  34805. 800efaa: 681b ldr r3, [r3, #0]
  34806. 800efac: 4a38 ldr r2, [pc, #224] @ (800f090 <HAL_TIM_PWM_Start+0x1f4>)
  34807. 800efae: 4293 cmp r3, r2
  34808. 800efb0: d013 beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34809. 800efb2: 687b ldr r3, [r7, #4]
  34810. 800efb4: 681b ldr r3, [r3, #0]
  34811. 800efb6: 4a37 ldr r2, [pc, #220] @ (800f094 <HAL_TIM_PWM_Start+0x1f8>)
  34812. 800efb8: 4293 cmp r3, r2
  34813. 800efba: d00e beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34814. 800efbc: 687b ldr r3, [r7, #4]
  34815. 800efbe: 681b ldr r3, [r3, #0]
  34816. 800efc0: 4a35 ldr r2, [pc, #212] @ (800f098 <HAL_TIM_PWM_Start+0x1fc>)
  34817. 800efc2: 4293 cmp r3, r2
  34818. 800efc4: d009 beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34819. 800efc6: 687b ldr r3, [r7, #4]
  34820. 800efc8: 681b ldr r3, [r3, #0]
  34821. 800efca: 4a34 ldr r2, [pc, #208] @ (800f09c <HAL_TIM_PWM_Start+0x200>)
  34822. 800efcc: 4293 cmp r3, r2
  34823. 800efce: d004 beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34824. 800efd0: 687b ldr r3, [r7, #4]
  34825. 800efd2: 681b ldr r3, [r3, #0]
  34826. 800efd4: 4a32 ldr r2, [pc, #200] @ (800f0a0 <HAL_TIM_PWM_Start+0x204>)
  34827. 800efd6: 4293 cmp r3, r2
  34828. 800efd8: d101 bne.n 800efde <HAL_TIM_PWM_Start+0x142>
  34829. 800efda: 2301 movs r3, #1
  34830. 800efdc: e000 b.n 800efe0 <HAL_TIM_PWM_Start+0x144>
  34831. 800efde: 2300 movs r3, #0
  34832. 800efe0: 2b00 cmp r3, #0
  34833. 800efe2: d007 beq.n 800eff4 <HAL_TIM_PWM_Start+0x158>
  34834. {
  34835. /* Enable the main output */
  34836. __HAL_TIM_MOE_ENABLE(htim);
  34837. 800efe4: 687b ldr r3, [r7, #4]
  34838. 800efe6: 681b ldr r3, [r3, #0]
  34839. 800efe8: 6c5a ldr r2, [r3, #68] @ 0x44
  34840. 800efea: 687b ldr r3, [r7, #4]
  34841. 800efec: 681b ldr r3, [r3, #0]
  34842. 800efee: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  34843. 800eff2: 645a str r2, [r3, #68] @ 0x44
  34844. }
  34845. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34846. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34847. 800eff4: 687b ldr r3, [r7, #4]
  34848. 800eff6: 681b ldr r3, [r3, #0]
  34849. 800eff8: 4a25 ldr r2, [pc, #148] @ (800f090 <HAL_TIM_PWM_Start+0x1f4>)
  34850. 800effa: 4293 cmp r3, r2
  34851. 800effc: d022 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34852. 800effe: 687b ldr r3, [r7, #4]
  34853. 800f000: 681b ldr r3, [r3, #0]
  34854. 800f002: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34855. 800f006: d01d beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34856. 800f008: 687b ldr r3, [r7, #4]
  34857. 800f00a: 681b ldr r3, [r3, #0]
  34858. 800f00c: 4a25 ldr r2, [pc, #148] @ (800f0a4 <HAL_TIM_PWM_Start+0x208>)
  34859. 800f00e: 4293 cmp r3, r2
  34860. 800f010: d018 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34861. 800f012: 687b ldr r3, [r7, #4]
  34862. 800f014: 681b ldr r3, [r3, #0]
  34863. 800f016: 4a24 ldr r2, [pc, #144] @ (800f0a8 <HAL_TIM_PWM_Start+0x20c>)
  34864. 800f018: 4293 cmp r3, r2
  34865. 800f01a: d013 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34866. 800f01c: 687b ldr r3, [r7, #4]
  34867. 800f01e: 681b ldr r3, [r3, #0]
  34868. 800f020: 4a22 ldr r2, [pc, #136] @ (800f0ac <HAL_TIM_PWM_Start+0x210>)
  34869. 800f022: 4293 cmp r3, r2
  34870. 800f024: d00e beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34871. 800f026: 687b ldr r3, [r7, #4]
  34872. 800f028: 681b ldr r3, [r3, #0]
  34873. 800f02a: 4a1a ldr r2, [pc, #104] @ (800f094 <HAL_TIM_PWM_Start+0x1f8>)
  34874. 800f02c: 4293 cmp r3, r2
  34875. 800f02e: d009 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34876. 800f030: 687b ldr r3, [r7, #4]
  34877. 800f032: 681b ldr r3, [r3, #0]
  34878. 800f034: 4a1e ldr r2, [pc, #120] @ (800f0b0 <HAL_TIM_PWM_Start+0x214>)
  34879. 800f036: 4293 cmp r3, r2
  34880. 800f038: d004 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34881. 800f03a: 687b ldr r3, [r7, #4]
  34882. 800f03c: 681b ldr r3, [r3, #0]
  34883. 800f03e: 4a16 ldr r2, [pc, #88] @ (800f098 <HAL_TIM_PWM_Start+0x1fc>)
  34884. 800f040: 4293 cmp r3, r2
  34885. 800f042: d115 bne.n 800f070 <HAL_TIM_PWM_Start+0x1d4>
  34886. {
  34887. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34888. 800f044: 687b ldr r3, [r7, #4]
  34889. 800f046: 681b ldr r3, [r3, #0]
  34890. 800f048: 689a ldr r2, [r3, #8]
  34891. 800f04a: 4b1a ldr r3, [pc, #104] @ (800f0b4 <HAL_TIM_PWM_Start+0x218>)
  34892. 800f04c: 4013 ands r3, r2
  34893. 800f04e: 60fb str r3, [r7, #12]
  34894. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34895. 800f050: 68fb ldr r3, [r7, #12]
  34896. 800f052: 2b06 cmp r3, #6
  34897. 800f054: d015 beq.n 800f082 <HAL_TIM_PWM_Start+0x1e6>
  34898. 800f056: 68fb ldr r3, [r7, #12]
  34899. 800f058: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34900. 800f05c: d011 beq.n 800f082 <HAL_TIM_PWM_Start+0x1e6>
  34901. {
  34902. __HAL_TIM_ENABLE(htim);
  34903. 800f05e: 687b ldr r3, [r7, #4]
  34904. 800f060: 681b ldr r3, [r3, #0]
  34905. 800f062: 681a ldr r2, [r3, #0]
  34906. 800f064: 687b ldr r3, [r7, #4]
  34907. 800f066: 681b ldr r3, [r3, #0]
  34908. 800f068: f042 0201 orr.w r2, r2, #1
  34909. 800f06c: 601a str r2, [r3, #0]
  34910. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34911. 800f06e: e008 b.n 800f082 <HAL_TIM_PWM_Start+0x1e6>
  34912. }
  34913. }
  34914. else
  34915. {
  34916. __HAL_TIM_ENABLE(htim);
  34917. 800f070: 687b ldr r3, [r7, #4]
  34918. 800f072: 681b ldr r3, [r3, #0]
  34919. 800f074: 681a ldr r2, [r3, #0]
  34920. 800f076: 687b ldr r3, [r7, #4]
  34921. 800f078: 681b ldr r3, [r3, #0]
  34922. 800f07a: f042 0201 orr.w r2, r2, #1
  34923. 800f07e: 601a str r2, [r3, #0]
  34924. 800f080: e000 b.n 800f084 <HAL_TIM_PWM_Start+0x1e8>
  34925. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34926. 800f082: bf00 nop
  34927. }
  34928. /* Return function status */
  34929. return HAL_OK;
  34930. 800f084: 2300 movs r3, #0
  34931. }
  34932. 800f086: 4618 mov r0, r3
  34933. 800f088: 3710 adds r7, #16
  34934. 800f08a: 46bd mov sp, r7
  34935. 800f08c: bd80 pop {r7, pc}
  34936. 800f08e: bf00 nop
  34937. 800f090: 40010000 .word 0x40010000
  34938. 800f094: 40010400 .word 0x40010400
  34939. 800f098: 40014000 .word 0x40014000
  34940. 800f09c: 40014400 .word 0x40014400
  34941. 800f0a0: 40014800 .word 0x40014800
  34942. 800f0a4: 40000400 .word 0x40000400
  34943. 800f0a8: 40000800 .word 0x40000800
  34944. 800f0ac: 40000c00 .word 0x40000c00
  34945. 800f0b0: 40001800 .word 0x40001800
  34946. 800f0b4: 00010007 .word 0x00010007
  34947. 0800f0b8 <HAL_TIM_PWM_Stop>:
  34948. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  34949. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  34950. * @retval HAL status
  34951. */
  34952. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  34953. {
  34954. 800f0b8: b580 push {r7, lr}
  34955. 800f0ba: b082 sub sp, #8
  34956. 800f0bc: af00 add r7, sp, #0
  34957. 800f0be: 6078 str r0, [r7, #4]
  34958. 800f0c0: 6039 str r1, [r7, #0]
  34959. /* Check the parameters */
  34960. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  34961. /* Disable the Capture compare channel */
  34962. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  34963. 800f0c2: 687b ldr r3, [r7, #4]
  34964. 800f0c4: 681b ldr r3, [r3, #0]
  34965. 800f0c6: 2200 movs r2, #0
  34966. 800f0c8: 6839 ldr r1, [r7, #0]
  34967. 800f0ca: 4618 mov r0, r3
  34968. 800f0cc: f001 fbcc bl 8010868 <TIM_CCxChannelCmd>
  34969. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  34970. 800f0d0: 687b ldr r3, [r7, #4]
  34971. 800f0d2: 681b ldr r3, [r3, #0]
  34972. 800f0d4: 4a3e ldr r2, [pc, #248] @ (800f1d0 <HAL_TIM_PWM_Stop+0x118>)
  34973. 800f0d6: 4293 cmp r3, r2
  34974. 800f0d8: d013 beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34975. 800f0da: 687b ldr r3, [r7, #4]
  34976. 800f0dc: 681b ldr r3, [r3, #0]
  34977. 800f0de: 4a3d ldr r2, [pc, #244] @ (800f1d4 <HAL_TIM_PWM_Stop+0x11c>)
  34978. 800f0e0: 4293 cmp r3, r2
  34979. 800f0e2: d00e beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34980. 800f0e4: 687b ldr r3, [r7, #4]
  34981. 800f0e6: 681b ldr r3, [r3, #0]
  34982. 800f0e8: 4a3b ldr r2, [pc, #236] @ (800f1d8 <HAL_TIM_PWM_Stop+0x120>)
  34983. 800f0ea: 4293 cmp r3, r2
  34984. 800f0ec: d009 beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34985. 800f0ee: 687b ldr r3, [r7, #4]
  34986. 800f0f0: 681b ldr r3, [r3, #0]
  34987. 800f0f2: 4a3a ldr r2, [pc, #232] @ (800f1dc <HAL_TIM_PWM_Stop+0x124>)
  34988. 800f0f4: 4293 cmp r3, r2
  34989. 800f0f6: d004 beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34990. 800f0f8: 687b ldr r3, [r7, #4]
  34991. 800f0fa: 681b ldr r3, [r3, #0]
  34992. 800f0fc: 4a38 ldr r2, [pc, #224] @ (800f1e0 <HAL_TIM_PWM_Stop+0x128>)
  34993. 800f0fe: 4293 cmp r3, r2
  34994. 800f100: d101 bne.n 800f106 <HAL_TIM_PWM_Stop+0x4e>
  34995. 800f102: 2301 movs r3, #1
  34996. 800f104: e000 b.n 800f108 <HAL_TIM_PWM_Stop+0x50>
  34997. 800f106: 2300 movs r3, #0
  34998. 800f108: 2b00 cmp r3, #0
  34999. 800f10a: d017 beq.n 800f13c <HAL_TIM_PWM_Stop+0x84>
  35000. {
  35001. /* Disable the Main Output */
  35002. __HAL_TIM_MOE_DISABLE(htim);
  35003. 800f10c: 687b ldr r3, [r7, #4]
  35004. 800f10e: 681b ldr r3, [r3, #0]
  35005. 800f110: 6a1a ldr r2, [r3, #32]
  35006. 800f112: f241 1311 movw r3, #4369 @ 0x1111
  35007. 800f116: 4013 ands r3, r2
  35008. 800f118: 2b00 cmp r3, #0
  35009. 800f11a: d10f bne.n 800f13c <HAL_TIM_PWM_Stop+0x84>
  35010. 800f11c: 687b ldr r3, [r7, #4]
  35011. 800f11e: 681b ldr r3, [r3, #0]
  35012. 800f120: 6a1a ldr r2, [r3, #32]
  35013. 800f122: f240 4344 movw r3, #1092 @ 0x444
  35014. 800f126: 4013 ands r3, r2
  35015. 800f128: 2b00 cmp r3, #0
  35016. 800f12a: d107 bne.n 800f13c <HAL_TIM_PWM_Stop+0x84>
  35017. 800f12c: 687b ldr r3, [r7, #4]
  35018. 800f12e: 681b ldr r3, [r3, #0]
  35019. 800f130: 6c5a ldr r2, [r3, #68] @ 0x44
  35020. 800f132: 687b ldr r3, [r7, #4]
  35021. 800f134: 681b ldr r3, [r3, #0]
  35022. 800f136: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  35023. 800f13a: 645a str r2, [r3, #68] @ 0x44
  35024. }
  35025. /* Disable the Peripheral */
  35026. __HAL_TIM_DISABLE(htim);
  35027. 800f13c: 687b ldr r3, [r7, #4]
  35028. 800f13e: 681b ldr r3, [r3, #0]
  35029. 800f140: 6a1a ldr r2, [r3, #32]
  35030. 800f142: f241 1311 movw r3, #4369 @ 0x1111
  35031. 800f146: 4013 ands r3, r2
  35032. 800f148: 2b00 cmp r3, #0
  35033. 800f14a: d10f bne.n 800f16c <HAL_TIM_PWM_Stop+0xb4>
  35034. 800f14c: 687b ldr r3, [r7, #4]
  35035. 800f14e: 681b ldr r3, [r3, #0]
  35036. 800f150: 6a1a ldr r2, [r3, #32]
  35037. 800f152: f240 4344 movw r3, #1092 @ 0x444
  35038. 800f156: 4013 ands r3, r2
  35039. 800f158: 2b00 cmp r3, #0
  35040. 800f15a: d107 bne.n 800f16c <HAL_TIM_PWM_Stop+0xb4>
  35041. 800f15c: 687b ldr r3, [r7, #4]
  35042. 800f15e: 681b ldr r3, [r3, #0]
  35043. 800f160: 681a ldr r2, [r3, #0]
  35044. 800f162: 687b ldr r3, [r7, #4]
  35045. 800f164: 681b ldr r3, [r3, #0]
  35046. 800f166: f022 0201 bic.w r2, r2, #1
  35047. 800f16a: 601a str r2, [r3, #0]
  35048. /* Set the TIM channel state */
  35049. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  35050. 800f16c: 683b ldr r3, [r7, #0]
  35051. 800f16e: 2b00 cmp r3, #0
  35052. 800f170: d104 bne.n 800f17c <HAL_TIM_PWM_Stop+0xc4>
  35053. 800f172: 687b ldr r3, [r7, #4]
  35054. 800f174: 2201 movs r2, #1
  35055. 800f176: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35056. 800f17a: e023 b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35057. 800f17c: 683b ldr r3, [r7, #0]
  35058. 800f17e: 2b04 cmp r3, #4
  35059. 800f180: d104 bne.n 800f18c <HAL_TIM_PWM_Stop+0xd4>
  35060. 800f182: 687b ldr r3, [r7, #4]
  35061. 800f184: 2201 movs r2, #1
  35062. 800f186: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35063. 800f18a: e01b b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35064. 800f18c: 683b ldr r3, [r7, #0]
  35065. 800f18e: 2b08 cmp r3, #8
  35066. 800f190: d104 bne.n 800f19c <HAL_TIM_PWM_Stop+0xe4>
  35067. 800f192: 687b ldr r3, [r7, #4]
  35068. 800f194: 2201 movs r2, #1
  35069. 800f196: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35070. 800f19a: e013 b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35071. 800f19c: 683b ldr r3, [r7, #0]
  35072. 800f19e: 2b0c cmp r3, #12
  35073. 800f1a0: d104 bne.n 800f1ac <HAL_TIM_PWM_Stop+0xf4>
  35074. 800f1a2: 687b ldr r3, [r7, #4]
  35075. 800f1a4: 2201 movs r2, #1
  35076. 800f1a6: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35077. 800f1aa: e00b b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35078. 800f1ac: 683b ldr r3, [r7, #0]
  35079. 800f1ae: 2b10 cmp r3, #16
  35080. 800f1b0: d104 bne.n 800f1bc <HAL_TIM_PWM_Stop+0x104>
  35081. 800f1b2: 687b ldr r3, [r7, #4]
  35082. 800f1b4: 2201 movs r2, #1
  35083. 800f1b6: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35084. 800f1ba: e003 b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35085. 800f1bc: 687b ldr r3, [r7, #4]
  35086. 800f1be: 2201 movs r2, #1
  35087. 800f1c0: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35088. /* Return function status */
  35089. return HAL_OK;
  35090. 800f1c4: 2300 movs r3, #0
  35091. }
  35092. 800f1c6: 4618 mov r0, r3
  35093. 800f1c8: 3708 adds r7, #8
  35094. 800f1ca: 46bd mov sp, r7
  35095. 800f1cc: bd80 pop {r7, pc}
  35096. 800f1ce: bf00 nop
  35097. 800f1d0: 40010000 .word 0x40010000
  35098. 800f1d4: 40010400 .word 0x40010400
  35099. 800f1d8: 40014000 .word 0x40014000
  35100. 800f1dc: 40014400 .word 0x40014400
  35101. 800f1e0: 40014800 .word 0x40014800
  35102. 0800f1e4 <HAL_TIM_IC_Init>:
  35103. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  35104. * @param htim TIM Input Capture handle
  35105. * @retval HAL status
  35106. */
  35107. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  35108. {
  35109. 800f1e4: b580 push {r7, lr}
  35110. 800f1e6: b082 sub sp, #8
  35111. 800f1e8: af00 add r7, sp, #0
  35112. 800f1ea: 6078 str r0, [r7, #4]
  35113. /* Check the TIM handle allocation */
  35114. if (htim == NULL)
  35115. 800f1ec: 687b ldr r3, [r7, #4]
  35116. 800f1ee: 2b00 cmp r3, #0
  35117. 800f1f0: d101 bne.n 800f1f6 <HAL_TIM_IC_Init+0x12>
  35118. {
  35119. return HAL_ERROR;
  35120. 800f1f2: 2301 movs r3, #1
  35121. 800f1f4: e049 b.n 800f28a <HAL_TIM_IC_Init+0xa6>
  35122. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35123. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35124. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35125. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35126. if (htim->State == HAL_TIM_STATE_RESET)
  35127. 800f1f6: 687b ldr r3, [r7, #4]
  35128. 800f1f8: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35129. 800f1fc: b2db uxtb r3, r3
  35130. 800f1fe: 2b00 cmp r3, #0
  35131. 800f200: d106 bne.n 800f210 <HAL_TIM_IC_Init+0x2c>
  35132. {
  35133. /* Allocate lock resource and initialize it */
  35134. htim->Lock = HAL_UNLOCKED;
  35135. 800f202: 687b ldr r3, [r7, #4]
  35136. 800f204: 2200 movs r2, #0
  35137. 800f206: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35138. }
  35139. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35140. htim->IC_MspInitCallback(htim);
  35141. #else
  35142. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  35143. HAL_TIM_IC_MspInit(htim);
  35144. 800f20a: 6878 ldr r0, [r7, #4]
  35145. 800f20c: f000 f841 bl 800f292 <HAL_TIM_IC_MspInit>
  35146. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35147. }
  35148. /* Set the TIM state */
  35149. htim->State = HAL_TIM_STATE_BUSY;
  35150. 800f210: 687b ldr r3, [r7, #4]
  35151. 800f212: 2202 movs r2, #2
  35152. 800f214: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35153. /* Init the base time for the input capture */
  35154. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35155. 800f218: 687b ldr r3, [r7, #4]
  35156. 800f21a: 681a ldr r2, [r3, #0]
  35157. 800f21c: 687b ldr r3, [r7, #4]
  35158. 800f21e: 3304 adds r3, #4
  35159. 800f220: 4619 mov r1, r3
  35160. 800f222: 4610 mov r0, r2
  35161. 800f224: f000 fddc bl 800fde0 <TIM_Base_SetConfig>
  35162. /* Initialize the DMA burst operation state */
  35163. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35164. 800f228: 687b ldr r3, [r7, #4]
  35165. 800f22a: 2201 movs r2, #1
  35166. 800f22c: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35167. /* Initialize the TIM channels state */
  35168. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35169. 800f230: 687b ldr r3, [r7, #4]
  35170. 800f232: 2201 movs r2, #1
  35171. 800f234: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35172. 800f238: 687b ldr r3, [r7, #4]
  35173. 800f23a: 2201 movs r2, #1
  35174. 800f23c: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35175. 800f240: 687b ldr r3, [r7, #4]
  35176. 800f242: 2201 movs r2, #1
  35177. 800f244: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35178. 800f248: 687b ldr r3, [r7, #4]
  35179. 800f24a: 2201 movs r2, #1
  35180. 800f24c: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35181. 800f250: 687b ldr r3, [r7, #4]
  35182. 800f252: 2201 movs r2, #1
  35183. 800f254: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35184. 800f258: 687b ldr r3, [r7, #4]
  35185. 800f25a: 2201 movs r2, #1
  35186. 800f25c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35187. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35188. 800f260: 687b ldr r3, [r7, #4]
  35189. 800f262: 2201 movs r2, #1
  35190. 800f264: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35191. 800f268: 687b ldr r3, [r7, #4]
  35192. 800f26a: 2201 movs r2, #1
  35193. 800f26c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35194. 800f270: 687b ldr r3, [r7, #4]
  35195. 800f272: 2201 movs r2, #1
  35196. 800f274: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35197. 800f278: 687b ldr r3, [r7, #4]
  35198. 800f27a: 2201 movs r2, #1
  35199. 800f27c: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35200. /* Initialize the TIM state*/
  35201. htim->State = HAL_TIM_STATE_READY;
  35202. 800f280: 687b ldr r3, [r7, #4]
  35203. 800f282: 2201 movs r2, #1
  35204. 800f284: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35205. return HAL_OK;
  35206. 800f288: 2300 movs r3, #0
  35207. }
  35208. 800f28a: 4618 mov r0, r3
  35209. 800f28c: 3708 adds r7, #8
  35210. 800f28e: 46bd mov sp, r7
  35211. 800f290: bd80 pop {r7, pc}
  35212. 0800f292 <HAL_TIM_IC_MspInit>:
  35213. * @brief Initializes the TIM Input Capture MSP.
  35214. * @param htim TIM Input Capture handle
  35215. * @retval None
  35216. */
  35217. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  35218. {
  35219. 800f292: b480 push {r7}
  35220. 800f294: b083 sub sp, #12
  35221. 800f296: af00 add r7, sp, #0
  35222. 800f298: 6078 str r0, [r7, #4]
  35223. UNUSED(htim);
  35224. /* NOTE : This function should not be modified, when the callback is needed,
  35225. the HAL_TIM_IC_MspInit could be implemented in the user file
  35226. */
  35227. }
  35228. 800f29a: bf00 nop
  35229. 800f29c: 370c adds r7, #12
  35230. 800f29e: 46bd mov sp, r7
  35231. 800f2a0: f85d 7b04 ldr.w r7, [sp], #4
  35232. 800f2a4: 4770 bx lr
  35233. ...
  35234. 0800f2a8 <HAL_TIM_IC_Start_IT>:
  35235. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  35236. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  35237. * @retval HAL status
  35238. */
  35239. HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
  35240. {
  35241. 800f2a8: b580 push {r7, lr}
  35242. 800f2aa: b084 sub sp, #16
  35243. 800f2ac: af00 add r7, sp, #0
  35244. 800f2ae: 6078 str r0, [r7, #4]
  35245. 800f2b0: 6039 str r1, [r7, #0]
  35246. HAL_StatusTypeDef status = HAL_OK;
  35247. 800f2b2: 2300 movs r3, #0
  35248. 800f2b4: 73fb strb r3, [r7, #15]
  35249. uint32_t tmpsmcr;
  35250. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  35251. 800f2b6: 683b ldr r3, [r7, #0]
  35252. 800f2b8: 2b00 cmp r3, #0
  35253. 800f2ba: d104 bne.n 800f2c6 <HAL_TIM_IC_Start_IT+0x1e>
  35254. 800f2bc: 687b ldr r3, [r7, #4]
  35255. 800f2be: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  35256. 800f2c2: b2db uxtb r3, r3
  35257. 800f2c4: e023 b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35258. 800f2c6: 683b ldr r3, [r7, #0]
  35259. 800f2c8: 2b04 cmp r3, #4
  35260. 800f2ca: d104 bne.n 800f2d6 <HAL_TIM_IC_Start_IT+0x2e>
  35261. 800f2cc: 687b ldr r3, [r7, #4]
  35262. 800f2ce: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  35263. 800f2d2: b2db uxtb r3, r3
  35264. 800f2d4: e01b b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35265. 800f2d6: 683b ldr r3, [r7, #0]
  35266. 800f2d8: 2b08 cmp r3, #8
  35267. 800f2da: d104 bne.n 800f2e6 <HAL_TIM_IC_Start_IT+0x3e>
  35268. 800f2dc: 687b ldr r3, [r7, #4]
  35269. 800f2de: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  35270. 800f2e2: b2db uxtb r3, r3
  35271. 800f2e4: e013 b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35272. 800f2e6: 683b ldr r3, [r7, #0]
  35273. 800f2e8: 2b0c cmp r3, #12
  35274. 800f2ea: d104 bne.n 800f2f6 <HAL_TIM_IC_Start_IT+0x4e>
  35275. 800f2ec: 687b ldr r3, [r7, #4]
  35276. 800f2ee: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  35277. 800f2f2: b2db uxtb r3, r3
  35278. 800f2f4: e00b b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35279. 800f2f6: 683b ldr r3, [r7, #0]
  35280. 800f2f8: 2b10 cmp r3, #16
  35281. 800f2fa: d104 bne.n 800f306 <HAL_TIM_IC_Start_IT+0x5e>
  35282. 800f2fc: 687b ldr r3, [r7, #4]
  35283. 800f2fe: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  35284. 800f302: b2db uxtb r3, r3
  35285. 800f304: e003 b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35286. 800f306: 687b ldr r3, [r7, #4]
  35287. 800f308: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  35288. 800f30c: b2db uxtb r3, r3
  35289. 800f30e: 73bb strb r3, [r7, #14]
  35290. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  35291. 800f310: 683b ldr r3, [r7, #0]
  35292. 800f312: 2b00 cmp r3, #0
  35293. 800f314: d104 bne.n 800f320 <HAL_TIM_IC_Start_IT+0x78>
  35294. 800f316: 687b ldr r3, [r7, #4]
  35295. 800f318: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  35296. 800f31c: b2db uxtb r3, r3
  35297. 800f31e: e013 b.n 800f348 <HAL_TIM_IC_Start_IT+0xa0>
  35298. 800f320: 683b ldr r3, [r7, #0]
  35299. 800f322: 2b04 cmp r3, #4
  35300. 800f324: d104 bne.n 800f330 <HAL_TIM_IC_Start_IT+0x88>
  35301. 800f326: 687b ldr r3, [r7, #4]
  35302. 800f328: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  35303. 800f32c: b2db uxtb r3, r3
  35304. 800f32e: e00b b.n 800f348 <HAL_TIM_IC_Start_IT+0xa0>
  35305. 800f330: 683b ldr r3, [r7, #0]
  35306. 800f332: 2b08 cmp r3, #8
  35307. 800f334: d104 bne.n 800f340 <HAL_TIM_IC_Start_IT+0x98>
  35308. 800f336: 687b ldr r3, [r7, #4]
  35309. 800f338: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  35310. 800f33c: b2db uxtb r3, r3
  35311. 800f33e: e003 b.n 800f348 <HAL_TIM_IC_Start_IT+0xa0>
  35312. 800f340: 687b ldr r3, [r7, #4]
  35313. 800f342: f893 3047 ldrb.w r3, [r3, #71] @ 0x47
  35314. 800f346: b2db uxtb r3, r3
  35315. 800f348: 737b strb r3, [r7, #13]
  35316. /* Check the parameters */
  35317. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  35318. /* Check the TIM channel state */
  35319. if ((channel_state != HAL_TIM_CHANNEL_STATE_READY)
  35320. 800f34a: 7bbb ldrb r3, [r7, #14]
  35321. 800f34c: 2b01 cmp r3, #1
  35322. 800f34e: d102 bne.n 800f356 <HAL_TIM_IC_Start_IT+0xae>
  35323. || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY))
  35324. 800f350: 7b7b ldrb r3, [r7, #13]
  35325. 800f352: 2b01 cmp r3, #1
  35326. 800f354: d001 beq.n 800f35a <HAL_TIM_IC_Start_IT+0xb2>
  35327. {
  35328. return HAL_ERROR;
  35329. 800f356: 2301 movs r3, #1
  35330. 800f358: e0e2 b.n 800f520 <HAL_TIM_IC_Start_IT+0x278>
  35331. }
  35332. /* Set the TIM channel state */
  35333. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35334. 800f35a: 683b ldr r3, [r7, #0]
  35335. 800f35c: 2b00 cmp r3, #0
  35336. 800f35e: d104 bne.n 800f36a <HAL_TIM_IC_Start_IT+0xc2>
  35337. 800f360: 687b ldr r3, [r7, #4]
  35338. 800f362: 2202 movs r2, #2
  35339. 800f364: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35340. 800f368: e023 b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35341. 800f36a: 683b ldr r3, [r7, #0]
  35342. 800f36c: 2b04 cmp r3, #4
  35343. 800f36e: d104 bne.n 800f37a <HAL_TIM_IC_Start_IT+0xd2>
  35344. 800f370: 687b ldr r3, [r7, #4]
  35345. 800f372: 2202 movs r2, #2
  35346. 800f374: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35347. 800f378: e01b b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35348. 800f37a: 683b ldr r3, [r7, #0]
  35349. 800f37c: 2b08 cmp r3, #8
  35350. 800f37e: d104 bne.n 800f38a <HAL_TIM_IC_Start_IT+0xe2>
  35351. 800f380: 687b ldr r3, [r7, #4]
  35352. 800f382: 2202 movs r2, #2
  35353. 800f384: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35354. 800f388: e013 b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35355. 800f38a: 683b ldr r3, [r7, #0]
  35356. 800f38c: 2b0c cmp r3, #12
  35357. 800f38e: d104 bne.n 800f39a <HAL_TIM_IC_Start_IT+0xf2>
  35358. 800f390: 687b ldr r3, [r7, #4]
  35359. 800f392: 2202 movs r2, #2
  35360. 800f394: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35361. 800f398: e00b b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35362. 800f39a: 683b ldr r3, [r7, #0]
  35363. 800f39c: 2b10 cmp r3, #16
  35364. 800f39e: d104 bne.n 800f3aa <HAL_TIM_IC_Start_IT+0x102>
  35365. 800f3a0: 687b ldr r3, [r7, #4]
  35366. 800f3a2: 2202 movs r2, #2
  35367. 800f3a4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35368. 800f3a8: e003 b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35369. 800f3aa: 687b ldr r3, [r7, #4]
  35370. 800f3ac: 2202 movs r2, #2
  35371. 800f3ae: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35372. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35373. 800f3b2: 683b ldr r3, [r7, #0]
  35374. 800f3b4: 2b00 cmp r3, #0
  35375. 800f3b6: d104 bne.n 800f3c2 <HAL_TIM_IC_Start_IT+0x11a>
  35376. 800f3b8: 687b ldr r3, [r7, #4]
  35377. 800f3ba: 2202 movs r2, #2
  35378. 800f3bc: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35379. 800f3c0: e013 b.n 800f3ea <HAL_TIM_IC_Start_IT+0x142>
  35380. 800f3c2: 683b ldr r3, [r7, #0]
  35381. 800f3c4: 2b04 cmp r3, #4
  35382. 800f3c6: d104 bne.n 800f3d2 <HAL_TIM_IC_Start_IT+0x12a>
  35383. 800f3c8: 687b ldr r3, [r7, #4]
  35384. 800f3ca: 2202 movs r2, #2
  35385. 800f3cc: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35386. 800f3d0: e00b b.n 800f3ea <HAL_TIM_IC_Start_IT+0x142>
  35387. 800f3d2: 683b ldr r3, [r7, #0]
  35388. 800f3d4: 2b08 cmp r3, #8
  35389. 800f3d6: d104 bne.n 800f3e2 <HAL_TIM_IC_Start_IT+0x13a>
  35390. 800f3d8: 687b ldr r3, [r7, #4]
  35391. 800f3da: 2202 movs r2, #2
  35392. 800f3dc: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35393. 800f3e0: e003 b.n 800f3ea <HAL_TIM_IC_Start_IT+0x142>
  35394. 800f3e2: 687b ldr r3, [r7, #4]
  35395. 800f3e4: 2202 movs r2, #2
  35396. 800f3e6: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35397. switch (Channel)
  35398. 800f3ea: 683b ldr r3, [r7, #0]
  35399. 800f3ec: 2b0c cmp r3, #12
  35400. 800f3ee: d841 bhi.n 800f474 <HAL_TIM_IC_Start_IT+0x1cc>
  35401. 800f3f0: a201 add r2, pc, #4 @ (adr r2, 800f3f8 <HAL_TIM_IC_Start_IT+0x150>)
  35402. 800f3f2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  35403. 800f3f6: bf00 nop
  35404. 800f3f8: 0800f42d .word 0x0800f42d
  35405. 800f3fc: 0800f475 .word 0x0800f475
  35406. 800f400: 0800f475 .word 0x0800f475
  35407. 800f404: 0800f475 .word 0x0800f475
  35408. 800f408: 0800f43f .word 0x0800f43f
  35409. 800f40c: 0800f475 .word 0x0800f475
  35410. 800f410: 0800f475 .word 0x0800f475
  35411. 800f414: 0800f475 .word 0x0800f475
  35412. 800f418: 0800f451 .word 0x0800f451
  35413. 800f41c: 0800f475 .word 0x0800f475
  35414. 800f420: 0800f475 .word 0x0800f475
  35415. 800f424: 0800f475 .word 0x0800f475
  35416. 800f428: 0800f463 .word 0x0800f463
  35417. {
  35418. case TIM_CHANNEL_1:
  35419. {
  35420. /* Enable the TIM Capture/Compare 1 interrupt */
  35421. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
  35422. 800f42c: 687b ldr r3, [r7, #4]
  35423. 800f42e: 681b ldr r3, [r3, #0]
  35424. 800f430: 68da ldr r2, [r3, #12]
  35425. 800f432: 687b ldr r3, [r7, #4]
  35426. 800f434: 681b ldr r3, [r3, #0]
  35427. 800f436: f042 0202 orr.w r2, r2, #2
  35428. 800f43a: 60da str r2, [r3, #12]
  35429. break;
  35430. 800f43c: e01d b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35431. }
  35432. case TIM_CHANNEL_2:
  35433. {
  35434. /* Enable the TIM Capture/Compare 2 interrupt */
  35435. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
  35436. 800f43e: 687b ldr r3, [r7, #4]
  35437. 800f440: 681b ldr r3, [r3, #0]
  35438. 800f442: 68da ldr r2, [r3, #12]
  35439. 800f444: 687b ldr r3, [r7, #4]
  35440. 800f446: 681b ldr r3, [r3, #0]
  35441. 800f448: f042 0204 orr.w r2, r2, #4
  35442. 800f44c: 60da str r2, [r3, #12]
  35443. break;
  35444. 800f44e: e014 b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35445. }
  35446. case TIM_CHANNEL_3:
  35447. {
  35448. /* Enable the TIM Capture/Compare 3 interrupt */
  35449. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3);
  35450. 800f450: 687b ldr r3, [r7, #4]
  35451. 800f452: 681b ldr r3, [r3, #0]
  35452. 800f454: 68da ldr r2, [r3, #12]
  35453. 800f456: 687b ldr r3, [r7, #4]
  35454. 800f458: 681b ldr r3, [r3, #0]
  35455. 800f45a: f042 0208 orr.w r2, r2, #8
  35456. 800f45e: 60da str r2, [r3, #12]
  35457. break;
  35458. 800f460: e00b b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35459. }
  35460. case TIM_CHANNEL_4:
  35461. {
  35462. /* Enable the TIM Capture/Compare 4 interrupt */
  35463. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4);
  35464. 800f462: 687b ldr r3, [r7, #4]
  35465. 800f464: 681b ldr r3, [r3, #0]
  35466. 800f466: 68da ldr r2, [r3, #12]
  35467. 800f468: 687b ldr r3, [r7, #4]
  35468. 800f46a: 681b ldr r3, [r3, #0]
  35469. 800f46c: f042 0210 orr.w r2, r2, #16
  35470. 800f470: 60da str r2, [r3, #12]
  35471. break;
  35472. 800f472: e002 b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35473. }
  35474. default:
  35475. status = HAL_ERROR;
  35476. 800f474: 2301 movs r3, #1
  35477. 800f476: 73fb strb r3, [r7, #15]
  35478. break;
  35479. 800f478: bf00 nop
  35480. }
  35481. if (status == HAL_OK)
  35482. 800f47a: 7bfb ldrb r3, [r7, #15]
  35483. 800f47c: 2b00 cmp r3, #0
  35484. 800f47e: d14e bne.n 800f51e <HAL_TIM_IC_Start_IT+0x276>
  35485. {
  35486. /* Enable the Input Capture channel */
  35487. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35488. 800f480: 687b ldr r3, [r7, #4]
  35489. 800f482: 681b ldr r3, [r3, #0]
  35490. 800f484: 2201 movs r2, #1
  35491. 800f486: 6839 ldr r1, [r7, #0]
  35492. 800f488: 4618 mov r0, r3
  35493. 800f48a: f001 f9ed bl 8010868 <TIM_CCxChannelCmd>
  35494. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35495. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35496. 800f48e: 687b ldr r3, [r7, #4]
  35497. 800f490: 681b ldr r3, [r3, #0]
  35498. 800f492: 4a25 ldr r2, [pc, #148] @ (800f528 <HAL_TIM_IC_Start_IT+0x280>)
  35499. 800f494: 4293 cmp r3, r2
  35500. 800f496: d022 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35501. 800f498: 687b ldr r3, [r7, #4]
  35502. 800f49a: 681b ldr r3, [r3, #0]
  35503. 800f49c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35504. 800f4a0: d01d beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35505. 800f4a2: 687b ldr r3, [r7, #4]
  35506. 800f4a4: 681b ldr r3, [r3, #0]
  35507. 800f4a6: 4a21 ldr r2, [pc, #132] @ (800f52c <HAL_TIM_IC_Start_IT+0x284>)
  35508. 800f4a8: 4293 cmp r3, r2
  35509. 800f4aa: d018 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35510. 800f4ac: 687b ldr r3, [r7, #4]
  35511. 800f4ae: 681b ldr r3, [r3, #0]
  35512. 800f4b0: 4a1f ldr r2, [pc, #124] @ (800f530 <HAL_TIM_IC_Start_IT+0x288>)
  35513. 800f4b2: 4293 cmp r3, r2
  35514. 800f4b4: d013 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35515. 800f4b6: 687b ldr r3, [r7, #4]
  35516. 800f4b8: 681b ldr r3, [r3, #0]
  35517. 800f4ba: 4a1e ldr r2, [pc, #120] @ (800f534 <HAL_TIM_IC_Start_IT+0x28c>)
  35518. 800f4bc: 4293 cmp r3, r2
  35519. 800f4be: d00e beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35520. 800f4c0: 687b ldr r3, [r7, #4]
  35521. 800f4c2: 681b ldr r3, [r3, #0]
  35522. 800f4c4: 4a1c ldr r2, [pc, #112] @ (800f538 <HAL_TIM_IC_Start_IT+0x290>)
  35523. 800f4c6: 4293 cmp r3, r2
  35524. 800f4c8: d009 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35525. 800f4ca: 687b ldr r3, [r7, #4]
  35526. 800f4cc: 681b ldr r3, [r3, #0]
  35527. 800f4ce: 4a1b ldr r2, [pc, #108] @ (800f53c <HAL_TIM_IC_Start_IT+0x294>)
  35528. 800f4d0: 4293 cmp r3, r2
  35529. 800f4d2: d004 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35530. 800f4d4: 687b ldr r3, [r7, #4]
  35531. 800f4d6: 681b ldr r3, [r3, #0]
  35532. 800f4d8: 4a19 ldr r2, [pc, #100] @ (800f540 <HAL_TIM_IC_Start_IT+0x298>)
  35533. 800f4da: 4293 cmp r3, r2
  35534. 800f4dc: d115 bne.n 800f50a <HAL_TIM_IC_Start_IT+0x262>
  35535. {
  35536. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35537. 800f4de: 687b ldr r3, [r7, #4]
  35538. 800f4e0: 681b ldr r3, [r3, #0]
  35539. 800f4e2: 689a ldr r2, [r3, #8]
  35540. 800f4e4: 4b17 ldr r3, [pc, #92] @ (800f544 <HAL_TIM_IC_Start_IT+0x29c>)
  35541. 800f4e6: 4013 ands r3, r2
  35542. 800f4e8: 60bb str r3, [r7, #8]
  35543. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35544. 800f4ea: 68bb ldr r3, [r7, #8]
  35545. 800f4ec: 2b06 cmp r3, #6
  35546. 800f4ee: d015 beq.n 800f51c <HAL_TIM_IC_Start_IT+0x274>
  35547. 800f4f0: 68bb ldr r3, [r7, #8]
  35548. 800f4f2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35549. 800f4f6: d011 beq.n 800f51c <HAL_TIM_IC_Start_IT+0x274>
  35550. {
  35551. __HAL_TIM_ENABLE(htim);
  35552. 800f4f8: 687b ldr r3, [r7, #4]
  35553. 800f4fa: 681b ldr r3, [r3, #0]
  35554. 800f4fc: 681a ldr r2, [r3, #0]
  35555. 800f4fe: 687b ldr r3, [r7, #4]
  35556. 800f500: 681b ldr r3, [r3, #0]
  35557. 800f502: f042 0201 orr.w r2, r2, #1
  35558. 800f506: 601a str r2, [r3, #0]
  35559. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35560. 800f508: e008 b.n 800f51c <HAL_TIM_IC_Start_IT+0x274>
  35561. }
  35562. }
  35563. else
  35564. {
  35565. __HAL_TIM_ENABLE(htim);
  35566. 800f50a: 687b ldr r3, [r7, #4]
  35567. 800f50c: 681b ldr r3, [r3, #0]
  35568. 800f50e: 681a ldr r2, [r3, #0]
  35569. 800f510: 687b ldr r3, [r7, #4]
  35570. 800f512: 681b ldr r3, [r3, #0]
  35571. 800f514: f042 0201 orr.w r2, r2, #1
  35572. 800f518: 601a str r2, [r3, #0]
  35573. 800f51a: e000 b.n 800f51e <HAL_TIM_IC_Start_IT+0x276>
  35574. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35575. 800f51c: bf00 nop
  35576. }
  35577. }
  35578. /* Return function status */
  35579. return status;
  35580. 800f51e: 7bfb ldrb r3, [r7, #15]
  35581. }
  35582. 800f520: 4618 mov r0, r3
  35583. 800f522: 3710 adds r7, #16
  35584. 800f524: 46bd mov sp, r7
  35585. 800f526: bd80 pop {r7, pc}
  35586. 800f528: 40010000 .word 0x40010000
  35587. 800f52c: 40000400 .word 0x40000400
  35588. 800f530: 40000800 .word 0x40000800
  35589. 800f534: 40000c00 .word 0x40000c00
  35590. 800f538: 40010400 .word 0x40010400
  35591. 800f53c: 40001800 .word 0x40001800
  35592. 800f540: 40014000 .word 0x40014000
  35593. 800f544: 00010007 .word 0x00010007
  35594. 0800f548 <HAL_TIM_IRQHandler>:
  35595. * @brief This function handles TIM interrupts requests.
  35596. * @param htim TIM handle
  35597. * @retval None
  35598. */
  35599. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  35600. {
  35601. 800f548: b580 push {r7, lr}
  35602. 800f54a: b084 sub sp, #16
  35603. 800f54c: af00 add r7, sp, #0
  35604. 800f54e: 6078 str r0, [r7, #4]
  35605. uint32_t itsource = htim->Instance->DIER;
  35606. 800f550: 687b ldr r3, [r7, #4]
  35607. 800f552: 681b ldr r3, [r3, #0]
  35608. 800f554: 68db ldr r3, [r3, #12]
  35609. 800f556: 60fb str r3, [r7, #12]
  35610. uint32_t itflag = htim->Instance->SR;
  35611. 800f558: 687b ldr r3, [r7, #4]
  35612. 800f55a: 681b ldr r3, [r3, #0]
  35613. 800f55c: 691b ldr r3, [r3, #16]
  35614. 800f55e: 60bb str r3, [r7, #8]
  35615. /* Capture compare 1 event */
  35616. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  35617. 800f560: 68bb ldr r3, [r7, #8]
  35618. 800f562: f003 0302 and.w r3, r3, #2
  35619. 800f566: 2b00 cmp r3, #0
  35620. 800f568: d020 beq.n 800f5ac <HAL_TIM_IRQHandler+0x64>
  35621. {
  35622. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  35623. 800f56a: 68fb ldr r3, [r7, #12]
  35624. 800f56c: f003 0302 and.w r3, r3, #2
  35625. 800f570: 2b00 cmp r3, #0
  35626. 800f572: d01b beq.n 800f5ac <HAL_TIM_IRQHandler+0x64>
  35627. {
  35628. {
  35629. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  35630. 800f574: 687b ldr r3, [r7, #4]
  35631. 800f576: 681b ldr r3, [r3, #0]
  35632. 800f578: f06f 0202 mvn.w r2, #2
  35633. 800f57c: 611a str r2, [r3, #16]
  35634. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  35635. 800f57e: 687b ldr r3, [r7, #4]
  35636. 800f580: 2201 movs r2, #1
  35637. 800f582: 771a strb r2, [r3, #28]
  35638. /* Input capture event */
  35639. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  35640. 800f584: 687b ldr r3, [r7, #4]
  35641. 800f586: 681b ldr r3, [r3, #0]
  35642. 800f588: 699b ldr r3, [r3, #24]
  35643. 800f58a: f003 0303 and.w r3, r3, #3
  35644. 800f58e: 2b00 cmp r3, #0
  35645. 800f590: d003 beq.n 800f59a <HAL_TIM_IRQHandler+0x52>
  35646. {
  35647. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35648. htim->IC_CaptureCallback(htim);
  35649. #else
  35650. HAL_TIM_IC_CaptureCallback(htim);
  35651. 800f592: 6878 ldr r0, [r7, #4]
  35652. 800f594: f7f2 fa68 bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35653. 800f598: e005 b.n 800f5a6 <HAL_TIM_IRQHandler+0x5e>
  35654. {
  35655. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35656. htim->OC_DelayElapsedCallback(htim);
  35657. htim->PWM_PulseFinishedCallback(htim);
  35658. #else
  35659. HAL_TIM_OC_DelayElapsedCallback(htim);
  35660. 800f59a: 6878 ldr r0, [r7, #4]
  35661. 800f59c: f000 fbc8 bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35662. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35663. 800f5a0: 6878 ldr r0, [r7, #4]
  35664. 800f5a2: f000 fbcf bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35665. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35666. }
  35667. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35668. 800f5a6: 687b ldr r3, [r7, #4]
  35669. 800f5a8: 2200 movs r2, #0
  35670. 800f5aa: 771a strb r2, [r3, #28]
  35671. }
  35672. }
  35673. }
  35674. /* Capture compare 2 event */
  35675. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  35676. 800f5ac: 68bb ldr r3, [r7, #8]
  35677. 800f5ae: f003 0304 and.w r3, r3, #4
  35678. 800f5b2: 2b00 cmp r3, #0
  35679. 800f5b4: d020 beq.n 800f5f8 <HAL_TIM_IRQHandler+0xb0>
  35680. {
  35681. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  35682. 800f5b6: 68fb ldr r3, [r7, #12]
  35683. 800f5b8: f003 0304 and.w r3, r3, #4
  35684. 800f5bc: 2b00 cmp r3, #0
  35685. 800f5be: d01b beq.n 800f5f8 <HAL_TIM_IRQHandler+0xb0>
  35686. {
  35687. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  35688. 800f5c0: 687b ldr r3, [r7, #4]
  35689. 800f5c2: 681b ldr r3, [r3, #0]
  35690. 800f5c4: f06f 0204 mvn.w r2, #4
  35691. 800f5c8: 611a str r2, [r3, #16]
  35692. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  35693. 800f5ca: 687b ldr r3, [r7, #4]
  35694. 800f5cc: 2202 movs r2, #2
  35695. 800f5ce: 771a strb r2, [r3, #28]
  35696. /* Input capture event */
  35697. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  35698. 800f5d0: 687b ldr r3, [r7, #4]
  35699. 800f5d2: 681b ldr r3, [r3, #0]
  35700. 800f5d4: 699b ldr r3, [r3, #24]
  35701. 800f5d6: f403 7340 and.w r3, r3, #768 @ 0x300
  35702. 800f5da: 2b00 cmp r3, #0
  35703. 800f5dc: d003 beq.n 800f5e6 <HAL_TIM_IRQHandler+0x9e>
  35704. {
  35705. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35706. htim->IC_CaptureCallback(htim);
  35707. #else
  35708. HAL_TIM_IC_CaptureCallback(htim);
  35709. 800f5de: 6878 ldr r0, [r7, #4]
  35710. 800f5e0: f7f2 fa42 bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35711. 800f5e4: e005 b.n 800f5f2 <HAL_TIM_IRQHandler+0xaa>
  35712. {
  35713. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35714. htim->OC_DelayElapsedCallback(htim);
  35715. htim->PWM_PulseFinishedCallback(htim);
  35716. #else
  35717. HAL_TIM_OC_DelayElapsedCallback(htim);
  35718. 800f5e6: 6878 ldr r0, [r7, #4]
  35719. 800f5e8: f000 fba2 bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35720. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35721. 800f5ec: 6878 ldr r0, [r7, #4]
  35722. 800f5ee: f000 fba9 bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35723. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35724. }
  35725. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35726. 800f5f2: 687b ldr r3, [r7, #4]
  35727. 800f5f4: 2200 movs r2, #0
  35728. 800f5f6: 771a strb r2, [r3, #28]
  35729. }
  35730. }
  35731. /* Capture compare 3 event */
  35732. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  35733. 800f5f8: 68bb ldr r3, [r7, #8]
  35734. 800f5fa: f003 0308 and.w r3, r3, #8
  35735. 800f5fe: 2b00 cmp r3, #0
  35736. 800f600: d020 beq.n 800f644 <HAL_TIM_IRQHandler+0xfc>
  35737. {
  35738. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  35739. 800f602: 68fb ldr r3, [r7, #12]
  35740. 800f604: f003 0308 and.w r3, r3, #8
  35741. 800f608: 2b00 cmp r3, #0
  35742. 800f60a: d01b beq.n 800f644 <HAL_TIM_IRQHandler+0xfc>
  35743. {
  35744. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  35745. 800f60c: 687b ldr r3, [r7, #4]
  35746. 800f60e: 681b ldr r3, [r3, #0]
  35747. 800f610: f06f 0208 mvn.w r2, #8
  35748. 800f614: 611a str r2, [r3, #16]
  35749. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  35750. 800f616: 687b ldr r3, [r7, #4]
  35751. 800f618: 2204 movs r2, #4
  35752. 800f61a: 771a strb r2, [r3, #28]
  35753. /* Input capture event */
  35754. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  35755. 800f61c: 687b ldr r3, [r7, #4]
  35756. 800f61e: 681b ldr r3, [r3, #0]
  35757. 800f620: 69db ldr r3, [r3, #28]
  35758. 800f622: f003 0303 and.w r3, r3, #3
  35759. 800f626: 2b00 cmp r3, #0
  35760. 800f628: d003 beq.n 800f632 <HAL_TIM_IRQHandler+0xea>
  35761. {
  35762. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35763. htim->IC_CaptureCallback(htim);
  35764. #else
  35765. HAL_TIM_IC_CaptureCallback(htim);
  35766. 800f62a: 6878 ldr r0, [r7, #4]
  35767. 800f62c: f7f2 fa1c bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35768. 800f630: e005 b.n 800f63e <HAL_TIM_IRQHandler+0xf6>
  35769. {
  35770. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35771. htim->OC_DelayElapsedCallback(htim);
  35772. htim->PWM_PulseFinishedCallback(htim);
  35773. #else
  35774. HAL_TIM_OC_DelayElapsedCallback(htim);
  35775. 800f632: 6878 ldr r0, [r7, #4]
  35776. 800f634: f000 fb7c bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35777. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35778. 800f638: 6878 ldr r0, [r7, #4]
  35779. 800f63a: f000 fb83 bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35780. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35781. }
  35782. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35783. 800f63e: 687b ldr r3, [r7, #4]
  35784. 800f640: 2200 movs r2, #0
  35785. 800f642: 771a strb r2, [r3, #28]
  35786. }
  35787. }
  35788. /* Capture compare 4 event */
  35789. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  35790. 800f644: 68bb ldr r3, [r7, #8]
  35791. 800f646: f003 0310 and.w r3, r3, #16
  35792. 800f64a: 2b00 cmp r3, #0
  35793. 800f64c: d020 beq.n 800f690 <HAL_TIM_IRQHandler+0x148>
  35794. {
  35795. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  35796. 800f64e: 68fb ldr r3, [r7, #12]
  35797. 800f650: f003 0310 and.w r3, r3, #16
  35798. 800f654: 2b00 cmp r3, #0
  35799. 800f656: d01b beq.n 800f690 <HAL_TIM_IRQHandler+0x148>
  35800. {
  35801. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  35802. 800f658: 687b ldr r3, [r7, #4]
  35803. 800f65a: 681b ldr r3, [r3, #0]
  35804. 800f65c: f06f 0210 mvn.w r2, #16
  35805. 800f660: 611a str r2, [r3, #16]
  35806. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  35807. 800f662: 687b ldr r3, [r7, #4]
  35808. 800f664: 2208 movs r2, #8
  35809. 800f666: 771a strb r2, [r3, #28]
  35810. /* Input capture event */
  35811. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  35812. 800f668: 687b ldr r3, [r7, #4]
  35813. 800f66a: 681b ldr r3, [r3, #0]
  35814. 800f66c: 69db ldr r3, [r3, #28]
  35815. 800f66e: f403 7340 and.w r3, r3, #768 @ 0x300
  35816. 800f672: 2b00 cmp r3, #0
  35817. 800f674: d003 beq.n 800f67e <HAL_TIM_IRQHandler+0x136>
  35818. {
  35819. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35820. htim->IC_CaptureCallback(htim);
  35821. #else
  35822. HAL_TIM_IC_CaptureCallback(htim);
  35823. 800f676: 6878 ldr r0, [r7, #4]
  35824. 800f678: f7f2 f9f6 bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35825. 800f67c: e005 b.n 800f68a <HAL_TIM_IRQHandler+0x142>
  35826. {
  35827. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35828. htim->OC_DelayElapsedCallback(htim);
  35829. htim->PWM_PulseFinishedCallback(htim);
  35830. #else
  35831. HAL_TIM_OC_DelayElapsedCallback(htim);
  35832. 800f67e: 6878 ldr r0, [r7, #4]
  35833. 800f680: f000 fb56 bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35834. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35835. 800f684: 6878 ldr r0, [r7, #4]
  35836. 800f686: f000 fb5d bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35837. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35838. }
  35839. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35840. 800f68a: 687b ldr r3, [r7, #4]
  35841. 800f68c: 2200 movs r2, #0
  35842. 800f68e: 771a strb r2, [r3, #28]
  35843. }
  35844. }
  35845. /* TIM Update event */
  35846. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  35847. 800f690: 68bb ldr r3, [r7, #8]
  35848. 800f692: f003 0301 and.w r3, r3, #1
  35849. 800f696: 2b00 cmp r3, #0
  35850. 800f698: d00c beq.n 800f6b4 <HAL_TIM_IRQHandler+0x16c>
  35851. {
  35852. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  35853. 800f69a: 68fb ldr r3, [r7, #12]
  35854. 800f69c: f003 0301 and.w r3, r3, #1
  35855. 800f6a0: 2b00 cmp r3, #0
  35856. 800f6a2: d007 beq.n 800f6b4 <HAL_TIM_IRQHandler+0x16c>
  35857. {
  35858. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  35859. 800f6a4: 687b ldr r3, [r7, #4]
  35860. 800f6a6: 681b ldr r3, [r3, #0]
  35861. 800f6a8: f06f 0201 mvn.w r2, #1
  35862. 800f6ac: 611a str r2, [r3, #16]
  35863. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35864. htim->PeriodElapsedCallback(htim);
  35865. #else
  35866. HAL_TIM_PeriodElapsedCallback(htim);
  35867. 800f6ae: 6878 ldr r0, [r7, #4]
  35868. 800f6b0: f7f2 fc36 bl 8001f20 <HAL_TIM_PeriodElapsedCallback>
  35869. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35870. }
  35871. }
  35872. /* TIM Break input event */
  35873. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  35874. 800f6b4: 68bb ldr r3, [r7, #8]
  35875. 800f6b6: f003 0380 and.w r3, r3, #128 @ 0x80
  35876. 800f6ba: 2b00 cmp r3, #0
  35877. 800f6bc: d104 bne.n 800f6c8 <HAL_TIM_IRQHandler+0x180>
  35878. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  35879. 800f6be: 68bb ldr r3, [r7, #8]
  35880. 800f6c0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  35881. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  35882. 800f6c4: 2b00 cmp r3, #0
  35883. 800f6c6: d00c beq.n 800f6e2 <HAL_TIM_IRQHandler+0x19a>
  35884. {
  35885. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  35886. 800f6c8: 68fb ldr r3, [r7, #12]
  35887. 800f6ca: f003 0380 and.w r3, r3, #128 @ 0x80
  35888. 800f6ce: 2b00 cmp r3, #0
  35889. 800f6d0: d007 beq.n 800f6e2 <HAL_TIM_IRQHandler+0x19a>
  35890. {
  35891. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  35892. 800f6d2: 687b ldr r3, [r7, #4]
  35893. 800f6d4: 681b ldr r3, [r3, #0]
  35894. 800f6d6: f46f 5202 mvn.w r2, #8320 @ 0x2080
  35895. 800f6da: 611a str r2, [r3, #16]
  35896. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35897. htim->BreakCallback(htim);
  35898. #else
  35899. HAL_TIMEx_BreakCallback(htim);
  35900. 800f6dc: 6878 ldr r0, [r7, #4]
  35901. 800f6de: f001 f9ff bl 8010ae0 <HAL_TIMEx_BreakCallback>
  35902. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35903. }
  35904. }
  35905. /* TIM Break2 input event */
  35906. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  35907. 800f6e2: 68bb ldr r3, [r7, #8]
  35908. 800f6e4: f403 7380 and.w r3, r3, #256 @ 0x100
  35909. 800f6e8: 2b00 cmp r3, #0
  35910. 800f6ea: d00c beq.n 800f706 <HAL_TIM_IRQHandler+0x1be>
  35911. {
  35912. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  35913. 800f6ec: 68fb ldr r3, [r7, #12]
  35914. 800f6ee: f003 0380 and.w r3, r3, #128 @ 0x80
  35915. 800f6f2: 2b00 cmp r3, #0
  35916. 800f6f4: d007 beq.n 800f706 <HAL_TIM_IRQHandler+0x1be>
  35917. {
  35918. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  35919. 800f6f6: 687b ldr r3, [r7, #4]
  35920. 800f6f8: 681b ldr r3, [r3, #0]
  35921. 800f6fa: f46f 7280 mvn.w r2, #256 @ 0x100
  35922. 800f6fe: 611a str r2, [r3, #16]
  35923. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35924. htim->Break2Callback(htim);
  35925. #else
  35926. HAL_TIMEx_Break2Callback(htim);
  35927. 800f700: 6878 ldr r0, [r7, #4]
  35928. 800f702: f001 f9f7 bl 8010af4 <HAL_TIMEx_Break2Callback>
  35929. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35930. }
  35931. }
  35932. /* TIM Trigger detection event */
  35933. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  35934. 800f706: 68bb ldr r3, [r7, #8]
  35935. 800f708: f003 0340 and.w r3, r3, #64 @ 0x40
  35936. 800f70c: 2b00 cmp r3, #0
  35937. 800f70e: d00c beq.n 800f72a <HAL_TIM_IRQHandler+0x1e2>
  35938. {
  35939. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  35940. 800f710: 68fb ldr r3, [r7, #12]
  35941. 800f712: f003 0340 and.w r3, r3, #64 @ 0x40
  35942. 800f716: 2b00 cmp r3, #0
  35943. 800f718: d007 beq.n 800f72a <HAL_TIM_IRQHandler+0x1e2>
  35944. {
  35945. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  35946. 800f71a: 687b ldr r3, [r7, #4]
  35947. 800f71c: 681b ldr r3, [r3, #0]
  35948. 800f71e: f06f 0240 mvn.w r2, #64 @ 0x40
  35949. 800f722: 611a str r2, [r3, #16]
  35950. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35951. htim->TriggerCallback(htim);
  35952. #else
  35953. HAL_TIM_TriggerCallback(htim);
  35954. 800f724: 6878 ldr r0, [r7, #4]
  35955. 800f726: f000 fb17 bl 800fd58 <HAL_TIM_TriggerCallback>
  35956. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35957. }
  35958. }
  35959. /* TIM commutation event */
  35960. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  35961. 800f72a: 68bb ldr r3, [r7, #8]
  35962. 800f72c: f003 0320 and.w r3, r3, #32
  35963. 800f730: 2b00 cmp r3, #0
  35964. 800f732: d00c beq.n 800f74e <HAL_TIM_IRQHandler+0x206>
  35965. {
  35966. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  35967. 800f734: 68fb ldr r3, [r7, #12]
  35968. 800f736: f003 0320 and.w r3, r3, #32
  35969. 800f73a: 2b00 cmp r3, #0
  35970. 800f73c: d007 beq.n 800f74e <HAL_TIM_IRQHandler+0x206>
  35971. {
  35972. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  35973. 800f73e: 687b ldr r3, [r7, #4]
  35974. 800f740: 681b ldr r3, [r3, #0]
  35975. 800f742: f06f 0220 mvn.w r2, #32
  35976. 800f746: 611a str r2, [r3, #16]
  35977. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35978. htim->CommutationCallback(htim);
  35979. #else
  35980. HAL_TIMEx_CommutCallback(htim);
  35981. 800f748: 6878 ldr r0, [r7, #4]
  35982. 800f74a: f001 f9bf bl 8010acc <HAL_TIMEx_CommutCallback>
  35983. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35984. }
  35985. }
  35986. }
  35987. 800f74e: bf00 nop
  35988. 800f750: 3710 adds r7, #16
  35989. 800f752: 46bd mov sp, r7
  35990. 800f754: bd80 pop {r7, pc}
  35991. 0800f756 <HAL_TIM_IC_ConfigChannel>:
  35992. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  35993. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  35994. * @retval HAL status
  35995. */
  35996. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  35997. {
  35998. 800f756: b580 push {r7, lr}
  35999. 800f758: b086 sub sp, #24
  36000. 800f75a: af00 add r7, sp, #0
  36001. 800f75c: 60f8 str r0, [r7, #12]
  36002. 800f75e: 60b9 str r1, [r7, #8]
  36003. 800f760: 607a str r2, [r7, #4]
  36004. HAL_StatusTypeDef status = HAL_OK;
  36005. 800f762: 2300 movs r3, #0
  36006. 800f764: 75fb strb r3, [r7, #23]
  36007. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  36008. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  36009. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  36010. /* Process Locked */
  36011. __HAL_LOCK(htim);
  36012. 800f766: 68fb ldr r3, [r7, #12]
  36013. 800f768: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36014. 800f76c: 2b01 cmp r3, #1
  36015. 800f76e: d101 bne.n 800f774 <HAL_TIM_IC_ConfigChannel+0x1e>
  36016. 800f770: 2302 movs r3, #2
  36017. 800f772: e088 b.n 800f886 <HAL_TIM_IC_ConfigChannel+0x130>
  36018. 800f774: 68fb ldr r3, [r7, #12]
  36019. 800f776: 2201 movs r2, #1
  36020. 800f778: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36021. if (Channel == TIM_CHANNEL_1)
  36022. 800f77c: 687b ldr r3, [r7, #4]
  36023. 800f77e: 2b00 cmp r3, #0
  36024. 800f780: d11b bne.n 800f7ba <HAL_TIM_IC_ConfigChannel+0x64>
  36025. {
  36026. /* TI1 Configuration */
  36027. TIM_TI1_SetConfig(htim->Instance,
  36028. 800f782: 68fb ldr r3, [r7, #12]
  36029. 800f784: 6818 ldr r0, [r3, #0]
  36030. sConfig->ICPolarity,
  36031. 800f786: 68bb ldr r3, [r7, #8]
  36032. 800f788: 6819 ldr r1, [r3, #0]
  36033. sConfig->ICSelection,
  36034. 800f78a: 68bb ldr r3, [r7, #8]
  36035. 800f78c: 685a ldr r2, [r3, #4]
  36036. sConfig->ICFilter);
  36037. 800f78e: 68bb ldr r3, [r7, #8]
  36038. 800f790: 68db ldr r3, [r3, #12]
  36039. TIM_TI1_SetConfig(htim->Instance,
  36040. 800f792: f000 fea1 bl 80104d8 <TIM_TI1_SetConfig>
  36041. /* Reset the IC1PSC Bits */
  36042. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  36043. 800f796: 68fb ldr r3, [r7, #12]
  36044. 800f798: 681b ldr r3, [r3, #0]
  36045. 800f79a: 699a ldr r2, [r3, #24]
  36046. 800f79c: 68fb ldr r3, [r7, #12]
  36047. 800f79e: 681b ldr r3, [r3, #0]
  36048. 800f7a0: f022 020c bic.w r2, r2, #12
  36049. 800f7a4: 619a str r2, [r3, #24]
  36050. /* Set the IC1PSC value */
  36051. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  36052. 800f7a6: 68fb ldr r3, [r7, #12]
  36053. 800f7a8: 681b ldr r3, [r3, #0]
  36054. 800f7aa: 6999 ldr r1, [r3, #24]
  36055. 800f7ac: 68bb ldr r3, [r7, #8]
  36056. 800f7ae: 689a ldr r2, [r3, #8]
  36057. 800f7b0: 68fb ldr r3, [r7, #12]
  36058. 800f7b2: 681b ldr r3, [r3, #0]
  36059. 800f7b4: 430a orrs r2, r1
  36060. 800f7b6: 619a str r2, [r3, #24]
  36061. 800f7b8: e060 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36062. }
  36063. else if (Channel == TIM_CHANNEL_2)
  36064. 800f7ba: 687b ldr r3, [r7, #4]
  36065. 800f7bc: 2b04 cmp r3, #4
  36066. 800f7be: d11c bne.n 800f7fa <HAL_TIM_IC_ConfigChannel+0xa4>
  36067. {
  36068. /* TI2 Configuration */
  36069. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36070. TIM_TI2_SetConfig(htim->Instance,
  36071. 800f7c0: 68fb ldr r3, [r7, #12]
  36072. 800f7c2: 6818 ldr r0, [r3, #0]
  36073. sConfig->ICPolarity,
  36074. 800f7c4: 68bb ldr r3, [r7, #8]
  36075. 800f7c6: 6819 ldr r1, [r3, #0]
  36076. sConfig->ICSelection,
  36077. 800f7c8: 68bb ldr r3, [r7, #8]
  36078. 800f7ca: 685a ldr r2, [r3, #4]
  36079. sConfig->ICFilter);
  36080. 800f7cc: 68bb ldr r3, [r7, #8]
  36081. 800f7ce: 68db ldr r3, [r3, #12]
  36082. TIM_TI2_SetConfig(htim->Instance,
  36083. 800f7d0: f000 ff25 bl 801061e <TIM_TI2_SetConfig>
  36084. /* Reset the IC2PSC Bits */
  36085. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  36086. 800f7d4: 68fb ldr r3, [r7, #12]
  36087. 800f7d6: 681b ldr r3, [r3, #0]
  36088. 800f7d8: 699a ldr r2, [r3, #24]
  36089. 800f7da: 68fb ldr r3, [r7, #12]
  36090. 800f7dc: 681b ldr r3, [r3, #0]
  36091. 800f7de: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  36092. 800f7e2: 619a str r2, [r3, #24]
  36093. /* Set the IC2PSC value */
  36094. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  36095. 800f7e4: 68fb ldr r3, [r7, #12]
  36096. 800f7e6: 681b ldr r3, [r3, #0]
  36097. 800f7e8: 6999 ldr r1, [r3, #24]
  36098. 800f7ea: 68bb ldr r3, [r7, #8]
  36099. 800f7ec: 689b ldr r3, [r3, #8]
  36100. 800f7ee: 021a lsls r2, r3, #8
  36101. 800f7f0: 68fb ldr r3, [r7, #12]
  36102. 800f7f2: 681b ldr r3, [r3, #0]
  36103. 800f7f4: 430a orrs r2, r1
  36104. 800f7f6: 619a str r2, [r3, #24]
  36105. 800f7f8: e040 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36106. }
  36107. else if (Channel == TIM_CHANNEL_3)
  36108. 800f7fa: 687b ldr r3, [r7, #4]
  36109. 800f7fc: 2b08 cmp r3, #8
  36110. 800f7fe: d11b bne.n 800f838 <HAL_TIM_IC_ConfigChannel+0xe2>
  36111. {
  36112. /* TI3 Configuration */
  36113. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36114. TIM_TI3_SetConfig(htim->Instance,
  36115. 800f800: 68fb ldr r3, [r7, #12]
  36116. 800f802: 6818 ldr r0, [r3, #0]
  36117. sConfig->ICPolarity,
  36118. 800f804: 68bb ldr r3, [r7, #8]
  36119. 800f806: 6819 ldr r1, [r3, #0]
  36120. sConfig->ICSelection,
  36121. 800f808: 68bb ldr r3, [r7, #8]
  36122. 800f80a: 685a ldr r2, [r3, #4]
  36123. sConfig->ICFilter);
  36124. 800f80c: 68bb ldr r3, [r7, #8]
  36125. 800f80e: 68db ldr r3, [r3, #12]
  36126. TIM_TI3_SetConfig(htim->Instance,
  36127. 800f810: f000 ff72 bl 80106f8 <TIM_TI3_SetConfig>
  36128. /* Reset the IC3PSC Bits */
  36129. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  36130. 800f814: 68fb ldr r3, [r7, #12]
  36131. 800f816: 681b ldr r3, [r3, #0]
  36132. 800f818: 69da ldr r2, [r3, #28]
  36133. 800f81a: 68fb ldr r3, [r7, #12]
  36134. 800f81c: 681b ldr r3, [r3, #0]
  36135. 800f81e: f022 020c bic.w r2, r2, #12
  36136. 800f822: 61da str r2, [r3, #28]
  36137. /* Set the IC3PSC value */
  36138. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  36139. 800f824: 68fb ldr r3, [r7, #12]
  36140. 800f826: 681b ldr r3, [r3, #0]
  36141. 800f828: 69d9 ldr r1, [r3, #28]
  36142. 800f82a: 68bb ldr r3, [r7, #8]
  36143. 800f82c: 689a ldr r2, [r3, #8]
  36144. 800f82e: 68fb ldr r3, [r7, #12]
  36145. 800f830: 681b ldr r3, [r3, #0]
  36146. 800f832: 430a orrs r2, r1
  36147. 800f834: 61da str r2, [r3, #28]
  36148. 800f836: e021 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36149. }
  36150. else if (Channel == TIM_CHANNEL_4)
  36151. 800f838: 687b ldr r3, [r7, #4]
  36152. 800f83a: 2b0c cmp r3, #12
  36153. 800f83c: d11c bne.n 800f878 <HAL_TIM_IC_ConfigChannel+0x122>
  36154. {
  36155. /* TI4 Configuration */
  36156. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36157. TIM_TI4_SetConfig(htim->Instance,
  36158. 800f83e: 68fb ldr r3, [r7, #12]
  36159. 800f840: 6818 ldr r0, [r3, #0]
  36160. sConfig->ICPolarity,
  36161. 800f842: 68bb ldr r3, [r7, #8]
  36162. 800f844: 6819 ldr r1, [r3, #0]
  36163. sConfig->ICSelection,
  36164. 800f846: 68bb ldr r3, [r7, #8]
  36165. 800f848: 685a ldr r2, [r3, #4]
  36166. sConfig->ICFilter);
  36167. 800f84a: 68bb ldr r3, [r7, #8]
  36168. 800f84c: 68db ldr r3, [r3, #12]
  36169. TIM_TI4_SetConfig(htim->Instance,
  36170. 800f84e: f000 ff8f bl 8010770 <TIM_TI4_SetConfig>
  36171. /* Reset the IC4PSC Bits */
  36172. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  36173. 800f852: 68fb ldr r3, [r7, #12]
  36174. 800f854: 681b ldr r3, [r3, #0]
  36175. 800f856: 69da ldr r2, [r3, #28]
  36176. 800f858: 68fb ldr r3, [r7, #12]
  36177. 800f85a: 681b ldr r3, [r3, #0]
  36178. 800f85c: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  36179. 800f860: 61da str r2, [r3, #28]
  36180. /* Set the IC4PSC value */
  36181. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  36182. 800f862: 68fb ldr r3, [r7, #12]
  36183. 800f864: 681b ldr r3, [r3, #0]
  36184. 800f866: 69d9 ldr r1, [r3, #28]
  36185. 800f868: 68bb ldr r3, [r7, #8]
  36186. 800f86a: 689b ldr r3, [r3, #8]
  36187. 800f86c: 021a lsls r2, r3, #8
  36188. 800f86e: 68fb ldr r3, [r7, #12]
  36189. 800f870: 681b ldr r3, [r3, #0]
  36190. 800f872: 430a orrs r2, r1
  36191. 800f874: 61da str r2, [r3, #28]
  36192. 800f876: e001 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36193. }
  36194. else
  36195. {
  36196. status = HAL_ERROR;
  36197. 800f878: 2301 movs r3, #1
  36198. 800f87a: 75fb strb r3, [r7, #23]
  36199. }
  36200. __HAL_UNLOCK(htim);
  36201. 800f87c: 68fb ldr r3, [r7, #12]
  36202. 800f87e: 2200 movs r2, #0
  36203. 800f880: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36204. return status;
  36205. 800f884: 7dfb ldrb r3, [r7, #23]
  36206. }
  36207. 800f886: 4618 mov r0, r3
  36208. 800f888: 3718 adds r7, #24
  36209. 800f88a: 46bd mov sp, r7
  36210. 800f88c: bd80 pop {r7, pc}
  36211. ...
  36212. 0800f890 <HAL_TIM_PWM_ConfigChannel>:
  36213. * @retval HAL status
  36214. */
  36215. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  36216. const TIM_OC_InitTypeDef *sConfig,
  36217. uint32_t Channel)
  36218. {
  36219. 800f890: b580 push {r7, lr}
  36220. 800f892: b086 sub sp, #24
  36221. 800f894: af00 add r7, sp, #0
  36222. 800f896: 60f8 str r0, [r7, #12]
  36223. 800f898: 60b9 str r1, [r7, #8]
  36224. 800f89a: 607a str r2, [r7, #4]
  36225. HAL_StatusTypeDef status = HAL_OK;
  36226. 800f89c: 2300 movs r3, #0
  36227. 800f89e: 75fb strb r3, [r7, #23]
  36228. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  36229. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  36230. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  36231. /* Process Locked */
  36232. __HAL_LOCK(htim);
  36233. 800f8a0: 68fb ldr r3, [r7, #12]
  36234. 800f8a2: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36235. 800f8a6: 2b01 cmp r3, #1
  36236. 800f8a8: d101 bne.n 800f8ae <HAL_TIM_PWM_ConfigChannel+0x1e>
  36237. 800f8aa: 2302 movs r3, #2
  36238. 800f8ac: e0ff b.n 800faae <HAL_TIM_PWM_ConfigChannel+0x21e>
  36239. 800f8ae: 68fb ldr r3, [r7, #12]
  36240. 800f8b0: 2201 movs r2, #1
  36241. 800f8b2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36242. switch (Channel)
  36243. 800f8b6: 687b ldr r3, [r7, #4]
  36244. 800f8b8: 2b14 cmp r3, #20
  36245. 800f8ba: f200 80f0 bhi.w 800fa9e <HAL_TIM_PWM_ConfigChannel+0x20e>
  36246. 800f8be: a201 add r2, pc, #4 @ (adr r2, 800f8c4 <HAL_TIM_PWM_ConfigChannel+0x34>)
  36247. 800f8c0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36248. 800f8c4: 0800f919 .word 0x0800f919
  36249. 800f8c8: 0800fa9f .word 0x0800fa9f
  36250. 800f8cc: 0800fa9f .word 0x0800fa9f
  36251. 800f8d0: 0800fa9f .word 0x0800fa9f
  36252. 800f8d4: 0800f959 .word 0x0800f959
  36253. 800f8d8: 0800fa9f .word 0x0800fa9f
  36254. 800f8dc: 0800fa9f .word 0x0800fa9f
  36255. 800f8e0: 0800fa9f .word 0x0800fa9f
  36256. 800f8e4: 0800f99b .word 0x0800f99b
  36257. 800f8e8: 0800fa9f .word 0x0800fa9f
  36258. 800f8ec: 0800fa9f .word 0x0800fa9f
  36259. 800f8f0: 0800fa9f .word 0x0800fa9f
  36260. 800f8f4: 0800f9db .word 0x0800f9db
  36261. 800f8f8: 0800fa9f .word 0x0800fa9f
  36262. 800f8fc: 0800fa9f .word 0x0800fa9f
  36263. 800f900: 0800fa9f .word 0x0800fa9f
  36264. 800f904: 0800fa1d .word 0x0800fa1d
  36265. 800f908: 0800fa9f .word 0x0800fa9f
  36266. 800f90c: 0800fa9f .word 0x0800fa9f
  36267. 800f910: 0800fa9f .word 0x0800fa9f
  36268. 800f914: 0800fa5d .word 0x0800fa5d
  36269. {
  36270. /* Check the parameters */
  36271. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  36272. /* Configure the Channel 1 in PWM mode */
  36273. TIM_OC1_SetConfig(htim->Instance, sConfig);
  36274. 800f918: 68fb ldr r3, [r7, #12]
  36275. 800f91a: 681b ldr r3, [r3, #0]
  36276. 800f91c: 68b9 ldr r1, [r7, #8]
  36277. 800f91e: 4618 mov r0, r3
  36278. 800f920: f000 fb04 bl 800ff2c <TIM_OC1_SetConfig>
  36279. /* Set the Preload enable bit for channel1 */
  36280. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  36281. 800f924: 68fb ldr r3, [r7, #12]
  36282. 800f926: 681b ldr r3, [r3, #0]
  36283. 800f928: 699a ldr r2, [r3, #24]
  36284. 800f92a: 68fb ldr r3, [r7, #12]
  36285. 800f92c: 681b ldr r3, [r3, #0]
  36286. 800f92e: f042 0208 orr.w r2, r2, #8
  36287. 800f932: 619a str r2, [r3, #24]
  36288. /* Configure the Output Fast mode */
  36289. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  36290. 800f934: 68fb ldr r3, [r7, #12]
  36291. 800f936: 681b ldr r3, [r3, #0]
  36292. 800f938: 699a ldr r2, [r3, #24]
  36293. 800f93a: 68fb ldr r3, [r7, #12]
  36294. 800f93c: 681b ldr r3, [r3, #0]
  36295. 800f93e: f022 0204 bic.w r2, r2, #4
  36296. 800f942: 619a str r2, [r3, #24]
  36297. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  36298. 800f944: 68fb ldr r3, [r7, #12]
  36299. 800f946: 681b ldr r3, [r3, #0]
  36300. 800f948: 6999 ldr r1, [r3, #24]
  36301. 800f94a: 68bb ldr r3, [r7, #8]
  36302. 800f94c: 691a ldr r2, [r3, #16]
  36303. 800f94e: 68fb ldr r3, [r7, #12]
  36304. 800f950: 681b ldr r3, [r3, #0]
  36305. 800f952: 430a orrs r2, r1
  36306. 800f954: 619a str r2, [r3, #24]
  36307. break;
  36308. 800f956: e0a5 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36309. {
  36310. /* Check the parameters */
  36311. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36312. /* Configure the Channel 2 in PWM mode */
  36313. TIM_OC2_SetConfig(htim->Instance, sConfig);
  36314. 800f958: 68fb ldr r3, [r7, #12]
  36315. 800f95a: 681b ldr r3, [r3, #0]
  36316. 800f95c: 68b9 ldr r1, [r7, #8]
  36317. 800f95e: 4618 mov r0, r3
  36318. 800f960: f000 fb74 bl 801004c <TIM_OC2_SetConfig>
  36319. /* Set the Preload enable bit for channel2 */
  36320. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  36321. 800f964: 68fb ldr r3, [r7, #12]
  36322. 800f966: 681b ldr r3, [r3, #0]
  36323. 800f968: 699a ldr r2, [r3, #24]
  36324. 800f96a: 68fb ldr r3, [r7, #12]
  36325. 800f96c: 681b ldr r3, [r3, #0]
  36326. 800f96e: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36327. 800f972: 619a str r2, [r3, #24]
  36328. /* Configure the Output Fast mode */
  36329. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  36330. 800f974: 68fb ldr r3, [r7, #12]
  36331. 800f976: 681b ldr r3, [r3, #0]
  36332. 800f978: 699a ldr r2, [r3, #24]
  36333. 800f97a: 68fb ldr r3, [r7, #12]
  36334. 800f97c: 681b ldr r3, [r3, #0]
  36335. 800f97e: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36336. 800f982: 619a str r2, [r3, #24]
  36337. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  36338. 800f984: 68fb ldr r3, [r7, #12]
  36339. 800f986: 681b ldr r3, [r3, #0]
  36340. 800f988: 6999 ldr r1, [r3, #24]
  36341. 800f98a: 68bb ldr r3, [r7, #8]
  36342. 800f98c: 691b ldr r3, [r3, #16]
  36343. 800f98e: 021a lsls r2, r3, #8
  36344. 800f990: 68fb ldr r3, [r7, #12]
  36345. 800f992: 681b ldr r3, [r3, #0]
  36346. 800f994: 430a orrs r2, r1
  36347. 800f996: 619a str r2, [r3, #24]
  36348. break;
  36349. 800f998: e084 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36350. {
  36351. /* Check the parameters */
  36352. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36353. /* Configure the Channel 3 in PWM mode */
  36354. TIM_OC3_SetConfig(htim->Instance, sConfig);
  36355. 800f99a: 68fb ldr r3, [r7, #12]
  36356. 800f99c: 681b ldr r3, [r3, #0]
  36357. 800f99e: 68b9 ldr r1, [r7, #8]
  36358. 800f9a0: 4618 mov r0, r3
  36359. 800f9a2: f000 fbdd bl 8010160 <TIM_OC3_SetConfig>
  36360. /* Set the Preload enable bit for channel3 */
  36361. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  36362. 800f9a6: 68fb ldr r3, [r7, #12]
  36363. 800f9a8: 681b ldr r3, [r3, #0]
  36364. 800f9aa: 69da ldr r2, [r3, #28]
  36365. 800f9ac: 68fb ldr r3, [r7, #12]
  36366. 800f9ae: 681b ldr r3, [r3, #0]
  36367. 800f9b0: f042 0208 orr.w r2, r2, #8
  36368. 800f9b4: 61da str r2, [r3, #28]
  36369. /* Configure the Output Fast mode */
  36370. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  36371. 800f9b6: 68fb ldr r3, [r7, #12]
  36372. 800f9b8: 681b ldr r3, [r3, #0]
  36373. 800f9ba: 69da ldr r2, [r3, #28]
  36374. 800f9bc: 68fb ldr r3, [r7, #12]
  36375. 800f9be: 681b ldr r3, [r3, #0]
  36376. 800f9c0: f022 0204 bic.w r2, r2, #4
  36377. 800f9c4: 61da str r2, [r3, #28]
  36378. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  36379. 800f9c6: 68fb ldr r3, [r7, #12]
  36380. 800f9c8: 681b ldr r3, [r3, #0]
  36381. 800f9ca: 69d9 ldr r1, [r3, #28]
  36382. 800f9cc: 68bb ldr r3, [r7, #8]
  36383. 800f9ce: 691a ldr r2, [r3, #16]
  36384. 800f9d0: 68fb ldr r3, [r7, #12]
  36385. 800f9d2: 681b ldr r3, [r3, #0]
  36386. 800f9d4: 430a orrs r2, r1
  36387. 800f9d6: 61da str r2, [r3, #28]
  36388. break;
  36389. 800f9d8: e064 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36390. {
  36391. /* Check the parameters */
  36392. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36393. /* Configure the Channel 4 in PWM mode */
  36394. TIM_OC4_SetConfig(htim->Instance, sConfig);
  36395. 800f9da: 68fb ldr r3, [r7, #12]
  36396. 800f9dc: 681b ldr r3, [r3, #0]
  36397. 800f9de: 68b9 ldr r1, [r7, #8]
  36398. 800f9e0: 4618 mov r0, r3
  36399. 800f9e2: f000 fc45 bl 8010270 <TIM_OC4_SetConfig>
  36400. /* Set the Preload enable bit for channel4 */
  36401. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  36402. 800f9e6: 68fb ldr r3, [r7, #12]
  36403. 800f9e8: 681b ldr r3, [r3, #0]
  36404. 800f9ea: 69da ldr r2, [r3, #28]
  36405. 800f9ec: 68fb ldr r3, [r7, #12]
  36406. 800f9ee: 681b ldr r3, [r3, #0]
  36407. 800f9f0: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36408. 800f9f4: 61da str r2, [r3, #28]
  36409. /* Configure the Output Fast mode */
  36410. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  36411. 800f9f6: 68fb ldr r3, [r7, #12]
  36412. 800f9f8: 681b ldr r3, [r3, #0]
  36413. 800f9fa: 69da ldr r2, [r3, #28]
  36414. 800f9fc: 68fb ldr r3, [r7, #12]
  36415. 800f9fe: 681b ldr r3, [r3, #0]
  36416. 800fa00: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36417. 800fa04: 61da str r2, [r3, #28]
  36418. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  36419. 800fa06: 68fb ldr r3, [r7, #12]
  36420. 800fa08: 681b ldr r3, [r3, #0]
  36421. 800fa0a: 69d9 ldr r1, [r3, #28]
  36422. 800fa0c: 68bb ldr r3, [r7, #8]
  36423. 800fa0e: 691b ldr r3, [r3, #16]
  36424. 800fa10: 021a lsls r2, r3, #8
  36425. 800fa12: 68fb ldr r3, [r7, #12]
  36426. 800fa14: 681b ldr r3, [r3, #0]
  36427. 800fa16: 430a orrs r2, r1
  36428. 800fa18: 61da str r2, [r3, #28]
  36429. break;
  36430. 800fa1a: e043 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36431. {
  36432. /* Check the parameters */
  36433. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  36434. /* Configure the Channel 5 in PWM mode */
  36435. TIM_OC5_SetConfig(htim->Instance, sConfig);
  36436. 800fa1c: 68fb ldr r3, [r7, #12]
  36437. 800fa1e: 681b ldr r3, [r3, #0]
  36438. 800fa20: 68b9 ldr r1, [r7, #8]
  36439. 800fa22: 4618 mov r0, r3
  36440. 800fa24: f000 fc8e bl 8010344 <TIM_OC5_SetConfig>
  36441. /* Set the Preload enable bit for channel5*/
  36442. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  36443. 800fa28: 68fb ldr r3, [r7, #12]
  36444. 800fa2a: 681b ldr r3, [r3, #0]
  36445. 800fa2c: 6d5a ldr r2, [r3, #84] @ 0x54
  36446. 800fa2e: 68fb ldr r3, [r7, #12]
  36447. 800fa30: 681b ldr r3, [r3, #0]
  36448. 800fa32: f042 0208 orr.w r2, r2, #8
  36449. 800fa36: 655a str r2, [r3, #84] @ 0x54
  36450. /* Configure the Output Fast mode */
  36451. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  36452. 800fa38: 68fb ldr r3, [r7, #12]
  36453. 800fa3a: 681b ldr r3, [r3, #0]
  36454. 800fa3c: 6d5a ldr r2, [r3, #84] @ 0x54
  36455. 800fa3e: 68fb ldr r3, [r7, #12]
  36456. 800fa40: 681b ldr r3, [r3, #0]
  36457. 800fa42: f022 0204 bic.w r2, r2, #4
  36458. 800fa46: 655a str r2, [r3, #84] @ 0x54
  36459. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  36460. 800fa48: 68fb ldr r3, [r7, #12]
  36461. 800fa4a: 681b ldr r3, [r3, #0]
  36462. 800fa4c: 6d59 ldr r1, [r3, #84] @ 0x54
  36463. 800fa4e: 68bb ldr r3, [r7, #8]
  36464. 800fa50: 691a ldr r2, [r3, #16]
  36465. 800fa52: 68fb ldr r3, [r7, #12]
  36466. 800fa54: 681b ldr r3, [r3, #0]
  36467. 800fa56: 430a orrs r2, r1
  36468. 800fa58: 655a str r2, [r3, #84] @ 0x54
  36469. break;
  36470. 800fa5a: e023 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36471. {
  36472. /* Check the parameters */
  36473. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  36474. /* Configure the Channel 6 in PWM mode */
  36475. TIM_OC6_SetConfig(htim->Instance, sConfig);
  36476. 800fa5c: 68fb ldr r3, [r7, #12]
  36477. 800fa5e: 681b ldr r3, [r3, #0]
  36478. 800fa60: 68b9 ldr r1, [r7, #8]
  36479. 800fa62: 4618 mov r0, r3
  36480. 800fa64: f000 fcd2 bl 801040c <TIM_OC6_SetConfig>
  36481. /* Set the Preload enable bit for channel6 */
  36482. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  36483. 800fa68: 68fb ldr r3, [r7, #12]
  36484. 800fa6a: 681b ldr r3, [r3, #0]
  36485. 800fa6c: 6d5a ldr r2, [r3, #84] @ 0x54
  36486. 800fa6e: 68fb ldr r3, [r7, #12]
  36487. 800fa70: 681b ldr r3, [r3, #0]
  36488. 800fa72: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36489. 800fa76: 655a str r2, [r3, #84] @ 0x54
  36490. /* Configure the Output Fast mode */
  36491. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  36492. 800fa78: 68fb ldr r3, [r7, #12]
  36493. 800fa7a: 681b ldr r3, [r3, #0]
  36494. 800fa7c: 6d5a ldr r2, [r3, #84] @ 0x54
  36495. 800fa7e: 68fb ldr r3, [r7, #12]
  36496. 800fa80: 681b ldr r3, [r3, #0]
  36497. 800fa82: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36498. 800fa86: 655a str r2, [r3, #84] @ 0x54
  36499. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  36500. 800fa88: 68fb ldr r3, [r7, #12]
  36501. 800fa8a: 681b ldr r3, [r3, #0]
  36502. 800fa8c: 6d59 ldr r1, [r3, #84] @ 0x54
  36503. 800fa8e: 68bb ldr r3, [r7, #8]
  36504. 800fa90: 691b ldr r3, [r3, #16]
  36505. 800fa92: 021a lsls r2, r3, #8
  36506. 800fa94: 68fb ldr r3, [r7, #12]
  36507. 800fa96: 681b ldr r3, [r3, #0]
  36508. 800fa98: 430a orrs r2, r1
  36509. 800fa9a: 655a str r2, [r3, #84] @ 0x54
  36510. break;
  36511. 800fa9c: e002 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36512. }
  36513. default:
  36514. status = HAL_ERROR;
  36515. 800fa9e: 2301 movs r3, #1
  36516. 800faa0: 75fb strb r3, [r7, #23]
  36517. break;
  36518. 800faa2: bf00 nop
  36519. }
  36520. __HAL_UNLOCK(htim);
  36521. 800faa4: 68fb ldr r3, [r7, #12]
  36522. 800faa6: 2200 movs r2, #0
  36523. 800faa8: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36524. return status;
  36525. 800faac: 7dfb ldrb r3, [r7, #23]
  36526. }
  36527. 800faae: 4618 mov r0, r3
  36528. 800fab0: 3718 adds r7, #24
  36529. 800fab2: 46bd mov sp, r7
  36530. 800fab4: bd80 pop {r7, pc}
  36531. 800fab6: bf00 nop
  36532. 0800fab8 <HAL_TIM_ConfigClockSource>:
  36533. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  36534. * contains the clock source information for the TIM peripheral.
  36535. * @retval HAL status
  36536. */
  36537. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  36538. {
  36539. 800fab8: b580 push {r7, lr}
  36540. 800faba: b084 sub sp, #16
  36541. 800fabc: af00 add r7, sp, #0
  36542. 800fabe: 6078 str r0, [r7, #4]
  36543. 800fac0: 6039 str r1, [r7, #0]
  36544. HAL_StatusTypeDef status = HAL_OK;
  36545. 800fac2: 2300 movs r3, #0
  36546. 800fac4: 73fb strb r3, [r7, #15]
  36547. uint32_t tmpsmcr;
  36548. /* Process Locked */
  36549. __HAL_LOCK(htim);
  36550. 800fac6: 687b ldr r3, [r7, #4]
  36551. 800fac8: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36552. 800facc: 2b01 cmp r3, #1
  36553. 800face: d101 bne.n 800fad4 <HAL_TIM_ConfigClockSource+0x1c>
  36554. 800fad0: 2302 movs r3, #2
  36555. 800fad2: e0dc b.n 800fc8e <HAL_TIM_ConfigClockSource+0x1d6>
  36556. 800fad4: 687b ldr r3, [r7, #4]
  36557. 800fad6: 2201 movs r2, #1
  36558. 800fad8: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36559. htim->State = HAL_TIM_STATE_BUSY;
  36560. 800fadc: 687b ldr r3, [r7, #4]
  36561. 800fade: 2202 movs r2, #2
  36562. 800fae0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36563. /* Check the parameters */
  36564. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  36565. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  36566. tmpsmcr = htim->Instance->SMCR;
  36567. 800fae4: 687b ldr r3, [r7, #4]
  36568. 800fae6: 681b ldr r3, [r3, #0]
  36569. 800fae8: 689b ldr r3, [r3, #8]
  36570. 800faea: 60bb str r3, [r7, #8]
  36571. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  36572. 800faec: 68ba ldr r2, [r7, #8]
  36573. 800faee: 4b6a ldr r3, [pc, #424] @ (800fc98 <HAL_TIM_ConfigClockSource+0x1e0>)
  36574. 800faf0: 4013 ands r3, r2
  36575. 800faf2: 60bb str r3, [r7, #8]
  36576. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  36577. 800faf4: 68bb ldr r3, [r7, #8]
  36578. 800faf6: f423 437f bic.w r3, r3, #65280 @ 0xff00
  36579. 800fafa: 60bb str r3, [r7, #8]
  36580. htim->Instance->SMCR = tmpsmcr;
  36581. 800fafc: 687b ldr r3, [r7, #4]
  36582. 800fafe: 681b ldr r3, [r3, #0]
  36583. 800fb00: 68ba ldr r2, [r7, #8]
  36584. 800fb02: 609a str r2, [r3, #8]
  36585. switch (sClockSourceConfig->ClockSource)
  36586. 800fb04: 683b ldr r3, [r7, #0]
  36587. 800fb06: 681b ldr r3, [r3, #0]
  36588. 800fb08: 4a64 ldr r2, [pc, #400] @ (800fc9c <HAL_TIM_ConfigClockSource+0x1e4>)
  36589. 800fb0a: 4293 cmp r3, r2
  36590. 800fb0c: f000 80a9 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36591. 800fb10: 4a62 ldr r2, [pc, #392] @ (800fc9c <HAL_TIM_ConfigClockSource+0x1e4>)
  36592. 800fb12: 4293 cmp r3, r2
  36593. 800fb14: f200 80ae bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36594. 800fb18: 4a61 ldr r2, [pc, #388] @ (800fca0 <HAL_TIM_ConfigClockSource+0x1e8>)
  36595. 800fb1a: 4293 cmp r3, r2
  36596. 800fb1c: f000 80a1 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36597. 800fb20: 4a5f ldr r2, [pc, #380] @ (800fca0 <HAL_TIM_ConfigClockSource+0x1e8>)
  36598. 800fb22: 4293 cmp r3, r2
  36599. 800fb24: f200 80a6 bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36600. 800fb28: 4a5e ldr r2, [pc, #376] @ (800fca4 <HAL_TIM_ConfigClockSource+0x1ec>)
  36601. 800fb2a: 4293 cmp r3, r2
  36602. 800fb2c: f000 8099 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36603. 800fb30: 4a5c ldr r2, [pc, #368] @ (800fca4 <HAL_TIM_ConfigClockSource+0x1ec>)
  36604. 800fb32: 4293 cmp r3, r2
  36605. 800fb34: f200 809e bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36606. 800fb38: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36607. 800fb3c: f000 8091 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36608. 800fb40: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36609. 800fb44: f200 8096 bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36610. 800fb48: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36611. 800fb4c: f000 8089 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36612. 800fb50: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36613. 800fb54: f200 808e bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36614. 800fb58: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36615. 800fb5c: d03e beq.n 800fbdc <HAL_TIM_ConfigClockSource+0x124>
  36616. 800fb5e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36617. 800fb62: f200 8087 bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36618. 800fb66: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36619. 800fb6a: f000 8086 beq.w 800fc7a <HAL_TIM_ConfigClockSource+0x1c2>
  36620. 800fb6e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36621. 800fb72: d87f bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36622. 800fb74: 2b70 cmp r3, #112 @ 0x70
  36623. 800fb76: d01a beq.n 800fbae <HAL_TIM_ConfigClockSource+0xf6>
  36624. 800fb78: 2b70 cmp r3, #112 @ 0x70
  36625. 800fb7a: d87b bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36626. 800fb7c: 2b60 cmp r3, #96 @ 0x60
  36627. 800fb7e: d050 beq.n 800fc22 <HAL_TIM_ConfigClockSource+0x16a>
  36628. 800fb80: 2b60 cmp r3, #96 @ 0x60
  36629. 800fb82: d877 bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36630. 800fb84: 2b50 cmp r3, #80 @ 0x50
  36631. 800fb86: d03c beq.n 800fc02 <HAL_TIM_ConfigClockSource+0x14a>
  36632. 800fb88: 2b50 cmp r3, #80 @ 0x50
  36633. 800fb8a: d873 bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36634. 800fb8c: 2b40 cmp r3, #64 @ 0x40
  36635. 800fb8e: d058 beq.n 800fc42 <HAL_TIM_ConfigClockSource+0x18a>
  36636. 800fb90: 2b40 cmp r3, #64 @ 0x40
  36637. 800fb92: d86f bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36638. 800fb94: 2b30 cmp r3, #48 @ 0x30
  36639. 800fb96: d064 beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36640. 800fb98: 2b30 cmp r3, #48 @ 0x30
  36641. 800fb9a: d86b bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36642. 800fb9c: 2b20 cmp r3, #32
  36643. 800fb9e: d060 beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36644. 800fba0: 2b20 cmp r3, #32
  36645. 800fba2: d867 bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36646. 800fba4: 2b00 cmp r3, #0
  36647. 800fba6: d05c beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36648. 800fba8: 2b10 cmp r3, #16
  36649. 800fbaa: d05a beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36650. 800fbac: e062 b.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36651. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36652. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36653. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36654. /* Configure the ETR Clock source */
  36655. TIM_ETR_SetConfig(htim->Instance,
  36656. 800fbae: 687b ldr r3, [r7, #4]
  36657. 800fbb0: 6818 ldr r0, [r3, #0]
  36658. sClockSourceConfig->ClockPrescaler,
  36659. 800fbb2: 683b ldr r3, [r7, #0]
  36660. 800fbb4: 6899 ldr r1, [r3, #8]
  36661. sClockSourceConfig->ClockPolarity,
  36662. 800fbb6: 683b ldr r3, [r7, #0]
  36663. 800fbb8: 685a ldr r2, [r3, #4]
  36664. sClockSourceConfig->ClockFilter);
  36665. 800fbba: 683b ldr r3, [r7, #0]
  36666. 800fbbc: 68db ldr r3, [r3, #12]
  36667. TIM_ETR_SetConfig(htim->Instance,
  36668. 800fbbe: f000 fe33 bl 8010828 <TIM_ETR_SetConfig>
  36669. /* Select the External clock mode1 and the ETRF trigger */
  36670. tmpsmcr = htim->Instance->SMCR;
  36671. 800fbc2: 687b ldr r3, [r7, #4]
  36672. 800fbc4: 681b ldr r3, [r3, #0]
  36673. 800fbc6: 689b ldr r3, [r3, #8]
  36674. 800fbc8: 60bb str r3, [r7, #8]
  36675. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  36676. 800fbca: 68bb ldr r3, [r7, #8]
  36677. 800fbcc: f043 0377 orr.w r3, r3, #119 @ 0x77
  36678. 800fbd0: 60bb str r3, [r7, #8]
  36679. /* Write to TIMx SMCR */
  36680. htim->Instance->SMCR = tmpsmcr;
  36681. 800fbd2: 687b ldr r3, [r7, #4]
  36682. 800fbd4: 681b ldr r3, [r3, #0]
  36683. 800fbd6: 68ba ldr r2, [r7, #8]
  36684. 800fbd8: 609a str r2, [r3, #8]
  36685. break;
  36686. 800fbda: e04f b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36687. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36688. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36689. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36690. /* Configure the ETR Clock source */
  36691. TIM_ETR_SetConfig(htim->Instance,
  36692. 800fbdc: 687b ldr r3, [r7, #4]
  36693. 800fbde: 6818 ldr r0, [r3, #0]
  36694. sClockSourceConfig->ClockPrescaler,
  36695. 800fbe0: 683b ldr r3, [r7, #0]
  36696. 800fbe2: 6899 ldr r1, [r3, #8]
  36697. sClockSourceConfig->ClockPolarity,
  36698. 800fbe4: 683b ldr r3, [r7, #0]
  36699. 800fbe6: 685a ldr r2, [r3, #4]
  36700. sClockSourceConfig->ClockFilter);
  36701. 800fbe8: 683b ldr r3, [r7, #0]
  36702. 800fbea: 68db ldr r3, [r3, #12]
  36703. TIM_ETR_SetConfig(htim->Instance,
  36704. 800fbec: f000 fe1c bl 8010828 <TIM_ETR_SetConfig>
  36705. /* Enable the External clock mode2 */
  36706. htim->Instance->SMCR |= TIM_SMCR_ECE;
  36707. 800fbf0: 687b ldr r3, [r7, #4]
  36708. 800fbf2: 681b ldr r3, [r3, #0]
  36709. 800fbf4: 689a ldr r2, [r3, #8]
  36710. 800fbf6: 687b ldr r3, [r7, #4]
  36711. 800fbf8: 681b ldr r3, [r3, #0]
  36712. 800fbfa: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  36713. 800fbfe: 609a str r2, [r3, #8]
  36714. break;
  36715. 800fc00: e03c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36716. /* Check TI1 input conditioning related parameters */
  36717. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36718. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36719. TIM_TI1_ConfigInputStage(htim->Instance,
  36720. 800fc02: 687b ldr r3, [r7, #4]
  36721. 800fc04: 6818 ldr r0, [r3, #0]
  36722. sClockSourceConfig->ClockPolarity,
  36723. 800fc06: 683b ldr r3, [r7, #0]
  36724. 800fc08: 6859 ldr r1, [r3, #4]
  36725. sClockSourceConfig->ClockFilter);
  36726. 800fc0a: 683b ldr r3, [r7, #0]
  36727. 800fc0c: 68db ldr r3, [r3, #12]
  36728. TIM_TI1_ConfigInputStage(htim->Instance,
  36729. 800fc0e: 461a mov r2, r3
  36730. 800fc10: f000 fcd6 bl 80105c0 <TIM_TI1_ConfigInputStage>
  36731. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  36732. 800fc14: 687b ldr r3, [r7, #4]
  36733. 800fc16: 681b ldr r3, [r3, #0]
  36734. 800fc18: 2150 movs r1, #80 @ 0x50
  36735. 800fc1a: 4618 mov r0, r3
  36736. 800fc1c: f000 fde6 bl 80107ec <TIM_ITRx_SetConfig>
  36737. break;
  36738. 800fc20: e02c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36739. /* Check TI2 input conditioning related parameters */
  36740. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36741. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36742. TIM_TI2_ConfigInputStage(htim->Instance,
  36743. 800fc22: 687b ldr r3, [r7, #4]
  36744. 800fc24: 6818 ldr r0, [r3, #0]
  36745. sClockSourceConfig->ClockPolarity,
  36746. 800fc26: 683b ldr r3, [r7, #0]
  36747. 800fc28: 6859 ldr r1, [r3, #4]
  36748. sClockSourceConfig->ClockFilter);
  36749. 800fc2a: 683b ldr r3, [r7, #0]
  36750. 800fc2c: 68db ldr r3, [r3, #12]
  36751. TIM_TI2_ConfigInputStage(htim->Instance,
  36752. 800fc2e: 461a mov r2, r3
  36753. 800fc30: f000 fd32 bl 8010698 <TIM_TI2_ConfigInputStage>
  36754. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  36755. 800fc34: 687b ldr r3, [r7, #4]
  36756. 800fc36: 681b ldr r3, [r3, #0]
  36757. 800fc38: 2160 movs r1, #96 @ 0x60
  36758. 800fc3a: 4618 mov r0, r3
  36759. 800fc3c: f000 fdd6 bl 80107ec <TIM_ITRx_SetConfig>
  36760. break;
  36761. 800fc40: e01c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36762. /* Check TI1 input conditioning related parameters */
  36763. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36764. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36765. TIM_TI1_ConfigInputStage(htim->Instance,
  36766. 800fc42: 687b ldr r3, [r7, #4]
  36767. 800fc44: 6818 ldr r0, [r3, #0]
  36768. sClockSourceConfig->ClockPolarity,
  36769. 800fc46: 683b ldr r3, [r7, #0]
  36770. 800fc48: 6859 ldr r1, [r3, #4]
  36771. sClockSourceConfig->ClockFilter);
  36772. 800fc4a: 683b ldr r3, [r7, #0]
  36773. 800fc4c: 68db ldr r3, [r3, #12]
  36774. TIM_TI1_ConfigInputStage(htim->Instance,
  36775. 800fc4e: 461a mov r2, r3
  36776. 800fc50: f000 fcb6 bl 80105c0 <TIM_TI1_ConfigInputStage>
  36777. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  36778. 800fc54: 687b ldr r3, [r7, #4]
  36779. 800fc56: 681b ldr r3, [r3, #0]
  36780. 800fc58: 2140 movs r1, #64 @ 0x40
  36781. 800fc5a: 4618 mov r0, r3
  36782. 800fc5c: f000 fdc6 bl 80107ec <TIM_ITRx_SetConfig>
  36783. break;
  36784. 800fc60: e00c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36785. case TIM_CLOCKSOURCE_ITR8:
  36786. {
  36787. /* Check whether or not the timer instance supports internal trigger input */
  36788. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  36789. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  36790. 800fc62: 687b ldr r3, [r7, #4]
  36791. 800fc64: 681a ldr r2, [r3, #0]
  36792. 800fc66: 683b ldr r3, [r7, #0]
  36793. 800fc68: 681b ldr r3, [r3, #0]
  36794. 800fc6a: 4619 mov r1, r3
  36795. 800fc6c: 4610 mov r0, r2
  36796. 800fc6e: f000 fdbd bl 80107ec <TIM_ITRx_SetConfig>
  36797. break;
  36798. 800fc72: e003 b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36799. }
  36800. default:
  36801. status = HAL_ERROR;
  36802. 800fc74: 2301 movs r3, #1
  36803. 800fc76: 73fb strb r3, [r7, #15]
  36804. break;
  36805. 800fc78: e000 b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36806. break;
  36807. 800fc7a: bf00 nop
  36808. }
  36809. htim->State = HAL_TIM_STATE_READY;
  36810. 800fc7c: 687b ldr r3, [r7, #4]
  36811. 800fc7e: 2201 movs r2, #1
  36812. 800fc80: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36813. __HAL_UNLOCK(htim);
  36814. 800fc84: 687b ldr r3, [r7, #4]
  36815. 800fc86: 2200 movs r2, #0
  36816. 800fc88: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36817. return status;
  36818. 800fc8c: 7bfb ldrb r3, [r7, #15]
  36819. }
  36820. 800fc8e: 4618 mov r0, r3
  36821. 800fc90: 3710 adds r7, #16
  36822. 800fc92: 46bd mov sp, r7
  36823. 800fc94: bd80 pop {r7, pc}
  36824. 800fc96: bf00 nop
  36825. 800fc98: ffceff88 .word 0xffceff88
  36826. 800fc9c: 00100040 .word 0x00100040
  36827. 800fca0: 00100030 .word 0x00100030
  36828. 800fca4: 00100020 .word 0x00100020
  36829. 0800fca8 <HAL_TIM_ReadCapturedValue>:
  36830. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  36831. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  36832. * @retval Captured value
  36833. */
  36834. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  36835. {
  36836. 800fca8: b480 push {r7}
  36837. 800fcaa: b085 sub sp, #20
  36838. 800fcac: af00 add r7, sp, #0
  36839. 800fcae: 6078 str r0, [r7, #4]
  36840. 800fcb0: 6039 str r1, [r7, #0]
  36841. uint32_t tmpreg = 0U;
  36842. 800fcb2: 2300 movs r3, #0
  36843. 800fcb4: 60fb str r3, [r7, #12]
  36844. switch (Channel)
  36845. 800fcb6: 683b ldr r3, [r7, #0]
  36846. 800fcb8: 2b0c cmp r3, #12
  36847. 800fcba: d831 bhi.n 800fd20 <HAL_TIM_ReadCapturedValue+0x78>
  36848. 800fcbc: a201 add r2, pc, #4 @ (adr r2, 800fcc4 <HAL_TIM_ReadCapturedValue+0x1c>)
  36849. 800fcbe: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36850. 800fcc2: bf00 nop
  36851. 800fcc4: 0800fcf9 .word 0x0800fcf9
  36852. 800fcc8: 0800fd21 .word 0x0800fd21
  36853. 800fccc: 0800fd21 .word 0x0800fd21
  36854. 800fcd0: 0800fd21 .word 0x0800fd21
  36855. 800fcd4: 0800fd03 .word 0x0800fd03
  36856. 800fcd8: 0800fd21 .word 0x0800fd21
  36857. 800fcdc: 0800fd21 .word 0x0800fd21
  36858. 800fce0: 0800fd21 .word 0x0800fd21
  36859. 800fce4: 0800fd0d .word 0x0800fd0d
  36860. 800fce8: 0800fd21 .word 0x0800fd21
  36861. 800fcec: 0800fd21 .word 0x0800fd21
  36862. 800fcf0: 0800fd21 .word 0x0800fd21
  36863. 800fcf4: 0800fd17 .word 0x0800fd17
  36864. {
  36865. /* Check the parameters */
  36866. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  36867. /* Return the capture 1 value */
  36868. tmpreg = htim->Instance->CCR1;
  36869. 800fcf8: 687b ldr r3, [r7, #4]
  36870. 800fcfa: 681b ldr r3, [r3, #0]
  36871. 800fcfc: 6b5b ldr r3, [r3, #52] @ 0x34
  36872. 800fcfe: 60fb str r3, [r7, #12]
  36873. break;
  36874. 800fd00: e00f b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36875. {
  36876. /* Check the parameters */
  36877. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36878. /* Return the capture 2 value */
  36879. tmpreg = htim->Instance->CCR2;
  36880. 800fd02: 687b ldr r3, [r7, #4]
  36881. 800fd04: 681b ldr r3, [r3, #0]
  36882. 800fd06: 6b9b ldr r3, [r3, #56] @ 0x38
  36883. 800fd08: 60fb str r3, [r7, #12]
  36884. break;
  36885. 800fd0a: e00a b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36886. {
  36887. /* Check the parameters */
  36888. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36889. /* Return the capture 3 value */
  36890. tmpreg = htim->Instance->CCR3;
  36891. 800fd0c: 687b ldr r3, [r7, #4]
  36892. 800fd0e: 681b ldr r3, [r3, #0]
  36893. 800fd10: 6bdb ldr r3, [r3, #60] @ 0x3c
  36894. 800fd12: 60fb str r3, [r7, #12]
  36895. break;
  36896. 800fd14: e005 b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36897. {
  36898. /* Check the parameters */
  36899. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36900. /* Return the capture 4 value */
  36901. tmpreg = htim->Instance->CCR4;
  36902. 800fd16: 687b ldr r3, [r7, #4]
  36903. 800fd18: 681b ldr r3, [r3, #0]
  36904. 800fd1a: 6c1b ldr r3, [r3, #64] @ 0x40
  36905. 800fd1c: 60fb str r3, [r7, #12]
  36906. break;
  36907. 800fd1e: e000 b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36908. }
  36909. default:
  36910. break;
  36911. 800fd20: bf00 nop
  36912. }
  36913. return tmpreg;
  36914. 800fd22: 68fb ldr r3, [r7, #12]
  36915. }
  36916. 800fd24: 4618 mov r0, r3
  36917. 800fd26: 3714 adds r7, #20
  36918. 800fd28: 46bd mov sp, r7
  36919. 800fd2a: f85d 7b04 ldr.w r7, [sp], #4
  36920. 800fd2e: 4770 bx lr
  36921. 0800fd30 <HAL_TIM_OC_DelayElapsedCallback>:
  36922. * @brief Output Compare callback in non-blocking mode
  36923. * @param htim TIM OC handle
  36924. * @retval None
  36925. */
  36926. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  36927. {
  36928. 800fd30: b480 push {r7}
  36929. 800fd32: b083 sub sp, #12
  36930. 800fd34: af00 add r7, sp, #0
  36931. 800fd36: 6078 str r0, [r7, #4]
  36932. UNUSED(htim);
  36933. /* NOTE : This function should not be modified, when the callback is needed,
  36934. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  36935. */
  36936. }
  36937. 800fd38: bf00 nop
  36938. 800fd3a: 370c adds r7, #12
  36939. 800fd3c: 46bd mov sp, r7
  36940. 800fd3e: f85d 7b04 ldr.w r7, [sp], #4
  36941. 800fd42: 4770 bx lr
  36942. 0800fd44 <HAL_TIM_PWM_PulseFinishedCallback>:
  36943. * @brief PWM Pulse finished callback in non-blocking mode
  36944. * @param htim TIM handle
  36945. * @retval None
  36946. */
  36947. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  36948. {
  36949. 800fd44: b480 push {r7}
  36950. 800fd46: b083 sub sp, #12
  36951. 800fd48: af00 add r7, sp, #0
  36952. 800fd4a: 6078 str r0, [r7, #4]
  36953. UNUSED(htim);
  36954. /* NOTE : This function should not be modified, when the callback is needed,
  36955. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  36956. */
  36957. }
  36958. 800fd4c: bf00 nop
  36959. 800fd4e: 370c adds r7, #12
  36960. 800fd50: 46bd mov sp, r7
  36961. 800fd52: f85d 7b04 ldr.w r7, [sp], #4
  36962. 800fd56: 4770 bx lr
  36963. 0800fd58 <HAL_TIM_TriggerCallback>:
  36964. * @brief Hall Trigger detection callback in non-blocking mode
  36965. * @param htim TIM handle
  36966. * @retval None
  36967. */
  36968. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  36969. {
  36970. 800fd58: b480 push {r7}
  36971. 800fd5a: b083 sub sp, #12
  36972. 800fd5c: af00 add r7, sp, #0
  36973. 800fd5e: 6078 str r0, [r7, #4]
  36974. UNUSED(htim);
  36975. /* NOTE : This function should not be modified, when the callback is needed,
  36976. the HAL_TIM_TriggerCallback could be implemented in the user file
  36977. */
  36978. }
  36979. 800fd60: bf00 nop
  36980. 800fd62: 370c adds r7, #12
  36981. 800fd64: 46bd mov sp, r7
  36982. 800fd66: f85d 7b04 ldr.w r7, [sp], #4
  36983. 800fd6a: 4770 bx lr
  36984. 0800fd6c <HAL_TIM_GetChannelState>:
  36985. * @arg TIM_CHANNEL_5: TIM Channel 5
  36986. * @arg TIM_CHANNEL_6: TIM Channel 6
  36987. * @retval TIM Channel state
  36988. */
  36989. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  36990. {
  36991. 800fd6c: b480 push {r7}
  36992. 800fd6e: b085 sub sp, #20
  36993. 800fd70: af00 add r7, sp, #0
  36994. 800fd72: 6078 str r0, [r7, #4]
  36995. 800fd74: 6039 str r1, [r7, #0]
  36996. HAL_TIM_ChannelStateTypeDef channel_state;
  36997. /* Check the parameters */
  36998. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  36999. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  37000. 800fd76: 683b ldr r3, [r7, #0]
  37001. 800fd78: 2b00 cmp r3, #0
  37002. 800fd7a: d104 bne.n 800fd86 <HAL_TIM_GetChannelState+0x1a>
  37003. 800fd7c: 687b ldr r3, [r7, #4]
  37004. 800fd7e: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  37005. 800fd82: b2db uxtb r3, r3
  37006. 800fd84: e023 b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37007. 800fd86: 683b ldr r3, [r7, #0]
  37008. 800fd88: 2b04 cmp r3, #4
  37009. 800fd8a: d104 bne.n 800fd96 <HAL_TIM_GetChannelState+0x2a>
  37010. 800fd8c: 687b ldr r3, [r7, #4]
  37011. 800fd8e: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  37012. 800fd92: b2db uxtb r3, r3
  37013. 800fd94: e01b b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37014. 800fd96: 683b ldr r3, [r7, #0]
  37015. 800fd98: 2b08 cmp r3, #8
  37016. 800fd9a: d104 bne.n 800fda6 <HAL_TIM_GetChannelState+0x3a>
  37017. 800fd9c: 687b ldr r3, [r7, #4]
  37018. 800fd9e: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  37019. 800fda2: b2db uxtb r3, r3
  37020. 800fda4: e013 b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37021. 800fda6: 683b ldr r3, [r7, #0]
  37022. 800fda8: 2b0c cmp r3, #12
  37023. 800fdaa: d104 bne.n 800fdb6 <HAL_TIM_GetChannelState+0x4a>
  37024. 800fdac: 687b ldr r3, [r7, #4]
  37025. 800fdae: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  37026. 800fdb2: b2db uxtb r3, r3
  37027. 800fdb4: e00b b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37028. 800fdb6: 683b ldr r3, [r7, #0]
  37029. 800fdb8: 2b10 cmp r3, #16
  37030. 800fdba: d104 bne.n 800fdc6 <HAL_TIM_GetChannelState+0x5a>
  37031. 800fdbc: 687b ldr r3, [r7, #4]
  37032. 800fdbe: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  37033. 800fdc2: b2db uxtb r3, r3
  37034. 800fdc4: e003 b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37035. 800fdc6: 687b ldr r3, [r7, #4]
  37036. 800fdc8: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  37037. 800fdcc: b2db uxtb r3, r3
  37038. 800fdce: 73fb strb r3, [r7, #15]
  37039. return channel_state;
  37040. 800fdd0: 7bfb ldrb r3, [r7, #15]
  37041. }
  37042. 800fdd2: 4618 mov r0, r3
  37043. 800fdd4: 3714 adds r7, #20
  37044. 800fdd6: 46bd mov sp, r7
  37045. 800fdd8: f85d 7b04 ldr.w r7, [sp], #4
  37046. 800fddc: 4770 bx lr
  37047. ...
  37048. 0800fde0 <TIM_Base_SetConfig>:
  37049. * @param TIMx TIM peripheral
  37050. * @param Structure TIM Base configuration structure
  37051. * @retval None
  37052. */
  37053. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  37054. {
  37055. 800fde0: b480 push {r7}
  37056. 800fde2: b085 sub sp, #20
  37057. 800fde4: af00 add r7, sp, #0
  37058. 800fde6: 6078 str r0, [r7, #4]
  37059. 800fde8: 6039 str r1, [r7, #0]
  37060. uint32_t tmpcr1;
  37061. tmpcr1 = TIMx->CR1;
  37062. 800fdea: 687b ldr r3, [r7, #4]
  37063. 800fdec: 681b ldr r3, [r3, #0]
  37064. 800fdee: 60fb str r3, [r7, #12]
  37065. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  37066. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  37067. 800fdf0: 687b ldr r3, [r7, #4]
  37068. 800fdf2: 4a46 ldr r2, [pc, #280] @ (800ff0c <TIM_Base_SetConfig+0x12c>)
  37069. 800fdf4: 4293 cmp r3, r2
  37070. 800fdf6: d013 beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37071. 800fdf8: 687b ldr r3, [r7, #4]
  37072. 800fdfa: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  37073. 800fdfe: d00f beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37074. 800fe00: 687b ldr r3, [r7, #4]
  37075. 800fe02: 4a43 ldr r2, [pc, #268] @ (800ff10 <TIM_Base_SetConfig+0x130>)
  37076. 800fe04: 4293 cmp r3, r2
  37077. 800fe06: d00b beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37078. 800fe08: 687b ldr r3, [r7, #4]
  37079. 800fe0a: 4a42 ldr r2, [pc, #264] @ (800ff14 <TIM_Base_SetConfig+0x134>)
  37080. 800fe0c: 4293 cmp r3, r2
  37081. 800fe0e: d007 beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37082. 800fe10: 687b ldr r3, [r7, #4]
  37083. 800fe12: 4a41 ldr r2, [pc, #260] @ (800ff18 <TIM_Base_SetConfig+0x138>)
  37084. 800fe14: 4293 cmp r3, r2
  37085. 800fe16: d003 beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37086. 800fe18: 687b ldr r3, [r7, #4]
  37087. 800fe1a: 4a40 ldr r2, [pc, #256] @ (800ff1c <TIM_Base_SetConfig+0x13c>)
  37088. 800fe1c: 4293 cmp r3, r2
  37089. 800fe1e: d108 bne.n 800fe32 <TIM_Base_SetConfig+0x52>
  37090. {
  37091. /* Select the Counter Mode */
  37092. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  37093. 800fe20: 68fb ldr r3, [r7, #12]
  37094. 800fe22: f023 0370 bic.w r3, r3, #112 @ 0x70
  37095. 800fe26: 60fb str r3, [r7, #12]
  37096. tmpcr1 |= Structure->CounterMode;
  37097. 800fe28: 683b ldr r3, [r7, #0]
  37098. 800fe2a: 685b ldr r3, [r3, #4]
  37099. 800fe2c: 68fa ldr r2, [r7, #12]
  37100. 800fe2e: 4313 orrs r3, r2
  37101. 800fe30: 60fb str r3, [r7, #12]
  37102. }
  37103. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  37104. 800fe32: 687b ldr r3, [r7, #4]
  37105. 800fe34: 4a35 ldr r2, [pc, #212] @ (800ff0c <TIM_Base_SetConfig+0x12c>)
  37106. 800fe36: 4293 cmp r3, r2
  37107. 800fe38: d01f beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37108. 800fe3a: 687b ldr r3, [r7, #4]
  37109. 800fe3c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  37110. 800fe40: d01b beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37111. 800fe42: 687b ldr r3, [r7, #4]
  37112. 800fe44: 4a32 ldr r2, [pc, #200] @ (800ff10 <TIM_Base_SetConfig+0x130>)
  37113. 800fe46: 4293 cmp r3, r2
  37114. 800fe48: d017 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37115. 800fe4a: 687b ldr r3, [r7, #4]
  37116. 800fe4c: 4a31 ldr r2, [pc, #196] @ (800ff14 <TIM_Base_SetConfig+0x134>)
  37117. 800fe4e: 4293 cmp r3, r2
  37118. 800fe50: d013 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37119. 800fe52: 687b ldr r3, [r7, #4]
  37120. 800fe54: 4a30 ldr r2, [pc, #192] @ (800ff18 <TIM_Base_SetConfig+0x138>)
  37121. 800fe56: 4293 cmp r3, r2
  37122. 800fe58: d00f beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37123. 800fe5a: 687b ldr r3, [r7, #4]
  37124. 800fe5c: 4a2f ldr r2, [pc, #188] @ (800ff1c <TIM_Base_SetConfig+0x13c>)
  37125. 800fe5e: 4293 cmp r3, r2
  37126. 800fe60: d00b beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37127. 800fe62: 687b ldr r3, [r7, #4]
  37128. 800fe64: 4a2e ldr r2, [pc, #184] @ (800ff20 <TIM_Base_SetConfig+0x140>)
  37129. 800fe66: 4293 cmp r3, r2
  37130. 800fe68: d007 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37131. 800fe6a: 687b ldr r3, [r7, #4]
  37132. 800fe6c: 4a2d ldr r2, [pc, #180] @ (800ff24 <TIM_Base_SetConfig+0x144>)
  37133. 800fe6e: 4293 cmp r3, r2
  37134. 800fe70: d003 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37135. 800fe72: 687b ldr r3, [r7, #4]
  37136. 800fe74: 4a2c ldr r2, [pc, #176] @ (800ff28 <TIM_Base_SetConfig+0x148>)
  37137. 800fe76: 4293 cmp r3, r2
  37138. 800fe78: d108 bne.n 800fe8c <TIM_Base_SetConfig+0xac>
  37139. {
  37140. /* Set the clock division */
  37141. tmpcr1 &= ~TIM_CR1_CKD;
  37142. 800fe7a: 68fb ldr r3, [r7, #12]
  37143. 800fe7c: f423 7340 bic.w r3, r3, #768 @ 0x300
  37144. 800fe80: 60fb str r3, [r7, #12]
  37145. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  37146. 800fe82: 683b ldr r3, [r7, #0]
  37147. 800fe84: 68db ldr r3, [r3, #12]
  37148. 800fe86: 68fa ldr r2, [r7, #12]
  37149. 800fe88: 4313 orrs r3, r2
  37150. 800fe8a: 60fb str r3, [r7, #12]
  37151. }
  37152. /* Set the auto-reload preload */
  37153. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  37154. 800fe8c: 68fb ldr r3, [r7, #12]
  37155. 800fe8e: f023 0280 bic.w r2, r3, #128 @ 0x80
  37156. 800fe92: 683b ldr r3, [r7, #0]
  37157. 800fe94: 695b ldr r3, [r3, #20]
  37158. 800fe96: 4313 orrs r3, r2
  37159. 800fe98: 60fb str r3, [r7, #12]
  37160. TIMx->CR1 = tmpcr1;
  37161. 800fe9a: 687b ldr r3, [r7, #4]
  37162. 800fe9c: 68fa ldr r2, [r7, #12]
  37163. 800fe9e: 601a str r2, [r3, #0]
  37164. /* Set the Autoreload value */
  37165. TIMx->ARR = (uint32_t)Structure->Period ;
  37166. 800fea0: 683b ldr r3, [r7, #0]
  37167. 800fea2: 689a ldr r2, [r3, #8]
  37168. 800fea4: 687b ldr r3, [r7, #4]
  37169. 800fea6: 62da str r2, [r3, #44] @ 0x2c
  37170. /* Set the Prescaler value */
  37171. TIMx->PSC = Structure->Prescaler;
  37172. 800fea8: 683b ldr r3, [r7, #0]
  37173. 800feaa: 681a ldr r2, [r3, #0]
  37174. 800feac: 687b ldr r3, [r7, #4]
  37175. 800feae: 629a str r2, [r3, #40] @ 0x28
  37176. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  37177. 800feb0: 687b ldr r3, [r7, #4]
  37178. 800feb2: 4a16 ldr r2, [pc, #88] @ (800ff0c <TIM_Base_SetConfig+0x12c>)
  37179. 800feb4: 4293 cmp r3, r2
  37180. 800feb6: d00f beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37181. 800feb8: 687b ldr r3, [r7, #4]
  37182. 800feba: 4a18 ldr r2, [pc, #96] @ (800ff1c <TIM_Base_SetConfig+0x13c>)
  37183. 800febc: 4293 cmp r3, r2
  37184. 800febe: d00b beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37185. 800fec0: 687b ldr r3, [r7, #4]
  37186. 800fec2: 4a17 ldr r2, [pc, #92] @ (800ff20 <TIM_Base_SetConfig+0x140>)
  37187. 800fec4: 4293 cmp r3, r2
  37188. 800fec6: d007 beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37189. 800fec8: 687b ldr r3, [r7, #4]
  37190. 800feca: 4a16 ldr r2, [pc, #88] @ (800ff24 <TIM_Base_SetConfig+0x144>)
  37191. 800fecc: 4293 cmp r3, r2
  37192. 800fece: d003 beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37193. 800fed0: 687b ldr r3, [r7, #4]
  37194. 800fed2: 4a15 ldr r2, [pc, #84] @ (800ff28 <TIM_Base_SetConfig+0x148>)
  37195. 800fed4: 4293 cmp r3, r2
  37196. 800fed6: d103 bne.n 800fee0 <TIM_Base_SetConfig+0x100>
  37197. {
  37198. /* Set the Repetition Counter value */
  37199. TIMx->RCR = Structure->RepetitionCounter;
  37200. 800fed8: 683b ldr r3, [r7, #0]
  37201. 800feda: 691a ldr r2, [r3, #16]
  37202. 800fedc: 687b ldr r3, [r7, #4]
  37203. 800fede: 631a str r2, [r3, #48] @ 0x30
  37204. }
  37205. /* Generate an update event to reload the Prescaler
  37206. and the repetition counter (only for advanced timer) value immediately */
  37207. TIMx->EGR = TIM_EGR_UG;
  37208. 800fee0: 687b ldr r3, [r7, #4]
  37209. 800fee2: 2201 movs r2, #1
  37210. 800fee4: 615a str r2, [r3, #20]
  37211. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  37212. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  37213. 800fee6: 687b ldr r3, [r7, #4]
  37214. 800fee8: 691b ldr r3, [r3, #16]
  37215. 800feea: f003 0301 and.w r3, r3, #1
  37216. 800feee: 2b01 cmp r3, #1
  37217. 800fef0: d105 bne.n 800fefe <TIM_Base_SetConfig+0x11e>
  37218. {
  37219. /* Clear the update flag */
  37220. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  37221. 800fef2: 687b ldr r3, [r7, #4]
  37222. 800fef4: 691b ldr r3, [r3, #16]
  37223. 800fef6: f023 0201 bic.w r2, r3, #1
  37224. 800fefa: 687b ldr r3, [r7, #4]
  37225. 800fefc: 611a str r2, [r3, #16]
  37226. }
  37227. }
  37228. 800fefe: bf00 nop
  37229. 800ff00: 3714 adds r7, #20
  37230. 800ff02: 46bd mov sp, r7
  37231. 800ff04: f85d 7b04 ldr.w r7, [sp], #4
  37232. 800ff08: 4770 bx lr
  37233. 800ff0a: bf00 nop
  37234. 800ff0c: 40010000 .word 0x40010000
  37235. 800ff10: 40000400 .word 0x40000400
  37236. 800ff14: 40000800 .word 0x40000800
  37237. 800ff18: 40000c00 .word 0x40000c00
  37238. 800ff1c: 40010400 .word 0x40010400
  37239. 800ff20: 40014000 .word 0x40014000
  37240. 800ff24: 40014400 .word 0x40014400
  37241. 800ff28: 40014800 .word 0x40014800
  37242. 0800ff2c <TIM_OC1_SetConfig>:
  37243. * @param TIMx to select the TIM peripheral
  37244. * @param OC_Config The output configuration structure
  37245. * @retval None
  37246. */
  37247. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37248. {
  37249. 800ff2c: b480 push {r7}
  37250. 800ff2e: b087 sub sp, #28
  37251. 800ff30: af00 add r7, sp, #0
  37252. 800ff32: 6078 str r0, [r7, #4]
  37253. 800ff34: 6039 str r1, [r7, #0]
  37254. uint32_t tmpccmrx;
  37255. uint32_t tmpccer;
  37256. uint32_t tmpcr2;
  37257. /* Get the TIMx CCER register value */
  37258. tmpccer = TIMx->CCER;
  37259. 800ff36: 687b ldr r3, [r7, #4]
  37260. 800ff38: 6a1b ldr r3, [r3, #32]
  37261. 800ff3a: 617b str r3, [r7, #20]
  37262. /* Disable the Channel 1: Reset the CC1E Bit */
  37263. TIMx->CCER &= ~TIM_CCER_CC1E;
  37264. 800ff3c: 687b ldr r3, [r7, #4]
  37265. 800ff3e: 6a1b ldr r3, [r3, #32]
  37266. 800ff40: f023 0201 bic.w r2, r3, #1
  37267. 800ff44: 687b ldr r3, [r7, #4]
  37268. 800ff46: 621a str r2, [r3, #32]
  37269. /* Get the TIMx CR2 register value */
  37270. tmpcr2 = TIMx->CR2;
  37271. 800ff48: 687b ldr r3, [r7, #4]
  37272. 800ff4a: 685b ldr r3, [r3, #4]
  37273. 800ff4c: 613b str r3, [r7, #16]
  37274. /* Get the TIMx CCMR1 register value */
  37275. tmpccmrx = TIMx->CCMR1;
  37276. 800ff4e: 687b ldr r3, [r7, #4]
  37277. 800ff50: 699b ldr r3, [r3, #24]
  37278. 800ff52: 60fb str r3, [r7, #12]
  37279. /* Reset the Output Compare Mode Bits */
  37280. tmpccmrx &= ~TIM_CCMR1_OC1M;
  37281. 800ff54: 68fa ldr r2, [r7, #12]
  37282. 800ff56: 4b37 ldr r3, [pc, #220] @ (8010034 <TIM_OC1_SetConfig+0x108>)
  37283. 800ff58: 4013 ands r3, r2
  37284. 800ff5a: 60fb str r3, [r7, #12]
  37285. tmpccmrx &= ~TIM_CCMR1_CC1S;
  37286. 800ff5c: 68fb ldr r3, [r7, #12]
  37287. 800ff5e: f023 0303 bic.w r3, r3, #3
  37288. 800ff62: 60fb str r3, [r7, #12]
  37289. /* Select the Output Compare Mode */
  37290. tmpccmrx |= OC_Config->OCMode;
  37291. 800ff64: 683b ldr r3, [r7, #0]
  37292. 800ff66: 681b ldr r3, [r3, #0]
  37293. 800ff68: 68fa ldr r2, [r7, #12]
  37294. 800ff6a: 4313 orrs r3, r2
  37295. 800ff6c: 60fb str r3, [r7, #12]
  37296. /* Reset the Output Polarity level */
  37297. tmpccer &= ~TIM_CCER_CC1P;
  37298. 800ff6e: 697b ldr r3, [r7, #20]
  37299. 800ff70: f023 0302 bic.w r3, r3, #2
  37300. 800ff74: 617b str r3, [r7, #20]
  37301. /* Set the Output Compare Polarity */
  37302. tmpccer |= OC_Config->OCPolarity;
  37303. 800ff76: 683b ldr r3, [r7, #0]
  37304. 800ff78: 689b ldr r3, [r3, #8]
  37305. 800ff7a: 697a ldr r2, [r7, #20]
  37306. 800ff7c: 4313 orrs r3, r2
  37307. 800ff7e: 617b str r3, [r7, #20]
  37308. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  37309. 800ff80: 687b ldr r3, [r7, #4]
  37310. 800ff82: 4a2d ldr r2, [pc, #180] @ (8010038 <TIM_OC1_SetConfig+0x10c>)
  37311. 800ff84: 4293 cmp r3, r2
  37312. 800ff86: d00f beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37313. 800ff88: 687b ldr r3, [r7, #4]
  37314. 800ff8a: 4a2c ldr r2, [pc, #176] @ (801003c <TIM_OC1_SetConfig+0x110>)
  37315. 800ff8c: 4293 cmp r3, r2
  37316. 800ff8e: d00b beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37317. 800ff90: 687b ldr r3, [r7, #4]
  37318. 800ff92: 4a2b ldr r2, [pc, #172] @ (8010040 <TIM_OC1_SetConfig+0x114>)
  37319. 800ff94: 4293 cmp r3, r2
  37320. 800ff96: d007 beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37321. 800ff98: 687b ldr r3, [r7, #4]
  37322. 800ff9a: 4a2a ldr r2, [pc, #168] @ (8010044 <TIM_OC1_SetConfig+0x118>)
  37323. 800ff9c: 4293 cmp r3, r2
  37324. 800ff9e: d003 beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37325. 800ffa0: 687b ldr r3, [r7, #4]
  37326. 800ffa2: 4a29 ldr r2, [pc, #164] @ (8010048 <TIM_OC1_SetConfig+0x11c>)
  37327. 800ffa4: 4293 cmp r3, r2
  37328. 800ffa6: d10c bne.n 800ffc2 <TIM_OC1_SetConfig+0x96>
  37329. {
  37330. /* Check parameters */
  37331. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37332. /* Reset the Output N Polarity level */
  37333. tmpccer &= ~TIM_CCER_CC1NP;
  37334. 800ffa8: 697b ldr r3, [r7, #20]
  37335. 800ffaa: f023 0308 bic.w r3, r3, #8
  37336. 800ffae: 617b str r3, [r7, #20]
  37337. /* Set the Output N Polarity */
  37338. tmpccer |= OC_Config->OCNPolarity;
  37339. 800ffb0: 683b ldr r3, [r7, #0]
  37340. 800ffb2: 68db ldr r3, [r3, #12]
  37341. 800ffb4: 697a ldr r2, [r7, #20]
  37342. 800ffb6: 4313 orrs r3, r2
  37343. 800ffb8: 617b str r3, [r7, #20]
  37344. /* Reset the Output N State */
  37345. tmpccer &= ~TIM_CCER_CC1NE;
  37346. 800ffba: 697b ldr r3, [r7, #20]
  37347. 800ffbc: f023 0304 bic.w r3, r3, #4
  37348. 800ffc0: 617b str r3, [r7, #20]
  37349. }
  37350. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37351. 800ffc2: 687b ldr r3, [r7, #4]
  37352. 800ffc4: 4a1c ldr r2, [pc, #112] @ (8010038 <TIM_OC1_SetConfig+0x10c>)
  37353. 800ffc6: 4293 cmp r3, r2
  37354. 800ffc8: d00f beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37355. 800ffca: 687b ldr r3, [r7, #4]
  37356. 800ffcc: 4a1b ldr r2, [pc, #108] @ (801003c <TIM_OC1_SetConfig+0x110>)
  37357. 800ffce: 4293 cmp r3, r2
  37358. 800ffd0: d00b beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37359. 800ffd2: 687b ldr r3, [r7, #4]
  37360. 800ffd4: 4a1a ldr r2, [pc, #104] @ (8010040 <TIM_OC1_SetConfig+0x114>)
  37361. 800ffd6: 4293 cmp r3, r2
  37362. 800ffd8: d007 beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37363. 800ffda: 687b ldr r3, [r7, #4]
  37364. 800ffdc: 4a19 ldr r2, [pc, #100] @ (8010044 <TIM_OC1_SetConfig+0x118>)
  37365. 800ffde: 4293 cmp r3, r2
  37366. 800ffe0: d003 beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37367. 800ffe2: 687b ldr r3, [r7, #4]
  37368. 800ffe4: 4a18 ldr r2, [pc, #96] @ (8010048 <TIM_OC1_SetConfig+0x11c>)
  37369. 800ffe6: 4293 cmp r3, r2
  37370. 800ffe8: d111 bne.n 801000e <TIM_OC1_SetConfig+0xe2>
  37371. /* Check parameters */
  37372. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37373. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37374. /* Reset the Output Compare and Output Compare N IDLE State */
  37375. tmpcr2 &= ~TIM_CR2_OIS1;
  37376. 800ffea: 693b ldr r3, [r7, #16]
  37377. 800ffec: f423 7380 bic.w r3, r3, #256 @ 0x100
  37378. 800fff0: 613b str r3, [r7, #16]
  37379. tmpcr2 &= ~TIM_CR2_OIS1N;
  37380. 800fff2: 693b ldr r3, [r7, #16]
  37381. 800fff4: f423 7300 bic.w r3, r3, #512 @ 0x200
  37382. 800fff8: 613b str r3, [r7, #16]
  37383. /* Set the Output Idle state */
  37384. tmpcr2 |= OC_Config->OCIdleState;
  37385. 800fffa: 683b ldr r3, [r7, #0]
  37386. 800fffc: 695b ldr r3, [r3, #20]
  37387. 800fffe: 693a ldr r2, [r7, #16]
  37388. 8010000: 4313 orrs r3, r2
  37389. 8010002: 613b str r3, [r7, #16]
  37390. /* Set the Output N Idle state */
  37391. tmpcr2 |= OC_Config->OCNIdleState;
  37392. 8010004: 683b ldr r3, [r7, #0]
  37393. 8010006: 699b ldr r3, [r3, #24]
  37394. 8010008: 693a ldr r2, [r7, #16]
  37395. 801000a: 4313 orrs r3, r2
  37396. 801000c: 613b str r3, [r7, #16]
  37397. }
  37398. /* Write to TIMx CR2 */
  37399. TIMx->CR2 = tmpcr2;
  37400. 801000e: 687b ldr r3, [r7, #4]
  37401. 8010010: 693a ldr r2, [r7, #16]
  37402. 8010012: 605a str r2, [r3, #4]
  37403. /* Write to TIMx CCMR1 */
  37404. TIMx->CCMR1 = tmpccmrx;
  37405. 8010014: 687b ldr r3, [r7, #4]
  37406. 8010016: 68fa ldr r2, [r7, #12]
  37407. 8010018: 619a str r2, [r3, #24]
  37408. /* Set the Capture Compare Register value */
  37409. TIMx->CCR1 = OC_Config->Pulse;
  37410. 801001a: 683b ldr r3, [r7, #0]
  37411. 801001c: 685a ldr r2, [r3, #4]
  37412. 801001e: 687b ldr r3, [r7, #4]
  37413. 8010020: 635a str r2, [r3, #52] @ 0x34
  37414. /* Write to TIMx CCER */
  37415. TIMx->CCER = tmpccer;
  37416. 8010022: 687b ldr r3, [r7, #4]
  37417. 8010024: 697a ldr r2, [r7, #20]
  37418. 8010026: 621a str r2, [r3, #32]
  37419. }
  37420. 8010028: bf00 nop
  37421. 801002a: 371c adds r7, #28
  37422. 801002c: 46bd mov sp, r7
  37423. 801002e: f85d 7b04 ldr.w r7, [sp], #4
  37424. 8010032: 4770 bx lr
  37425. 8010034: fffeff8f .word 0xfffeff8f
  37426. 8010038: 40010000 .word 0x40010000
  37427. 801003c: 40010400 .word 0x40010400
  37428. 8010040: 40014000 .word 0x40014000
  37429. 8010044: 40014400 .word 0x40014400
  37430. 8010048: 40014800 .word 0x40014800
  37431. 0801004c <TIM_OC2_SetConfig>:
  37432. * @param TIMx to select the TIM peripheral
  37433. * @param OC_Config The output configuration structure
  37434. * @retval None
  37435. */
  37436. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37437. {
  37438. 801004c: b480 push {r7}
  37439. 801004e: b087 sub sp, #28
  37440. 8010050: af00 add r7, sp, #0
  37441. 8010052: 6078 str r0, [r7, #4]
  37442. 8010054: 6039 str r1, [r7, #0]
  37443. uint32_t tmpccmrx;
  37444. uint32_t tmpccer;
  37445. uint32_t tmpcr2;
  37446. /* Get the TIMx CCER register value */
  37447. tmpccer = TIMx->CCER;
  37448. 8010056: 687b ldr r3, [r7, #4]
  37449. 8010058: 6a1b ldr r3, [r3, #32]
  37450. 801005a: 617b str r3, [r7, #20]
  37451. /* Disable the Channel 2: Reset the CC2E Bit */
  37452. TIMx->CCER &= ~TIM_CCER_CC2E;
  37453. 801005c: 687b ldr r3, [r7, #4]
  37454. 801005e: 6a1b ldr r3, [r3, #32]
  37455. 8010060: f023 0210 bic.w r2, r3, #16
  37456. 8010064: 687b ldr r3, [r7, #4]
  37457. 8010066: 621a str r2, [r3, #32]
  37458. /* Get the TIMx CR2 register value */
  37459. tmpcr2 = TIMx->CR2;
  37460. 8010068: 687b ldr r3, [r7, #4]
  37461. 801006a: 685b ldr r3, [r3, #4]
  37462. 801006c: 613b str r3, [r7, #16]
  37463. /* Get the TIMx CCMR1 register value */
  37464. tmpccmrx = TIMx->CCMR1;
  37465. 801006e: 687b ldr r3, [r7, #4]
  37466. 8010070: 699b ldr r3, [r3, #24]
  37467. 8010072: 60fb str r3, [r7, #12]
  37468. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37469. tmpccmrx &= ~TIM_CCMR1_OC2M;
  37470. 8010074: 68fa ldr r2, [r7, #12]
  37471. 8010076: 4b34 ldr r3, [pc, #208] @ (8010148 <TIM_OC2_SetConfig+0xfc>)
  37472. 8010078: 4013 ands r3, r2
  37473. 801007a: 60fb str r3, [r7, #12]
  37474. tmpccmrx &= ~TIM_CCMR1_CC2S;
  37475. 801007c: 68fb ldr r3, [r7, #12]
  37476. 801007e: f423 7340 bic.w r3, r3, #768 @ 0x300
  37477. 8010082: 60fb str r3, [r7, #12]
  37478. /* Select the Output Compare Mode */
  37479. tmpccmrx |= (OC_Config->OCMode << 8U);
  37480. 8010084: 683b ldr r3, [r7, #0]
  37481. 8010086: 681b ldr r3, [r3, #0]
  37482. 8010088: 021b lsls r3, r3, #8
  37483. 801008a: 68fa ldr r2, [r7, #12]
  37484. 801008c: 4313 orrs r3, r2
  37485. 801008e: 60fb str r3, [r7, #12]
  37486. /* Reset the Output Polarity level */
  37487. tmpccer &= ~TIM_CCER_CC2P;
  37488. 8010090: 697b ldr r3, [r7, #20]
  37489. 8010092: f023 0320 bic.w r3, r3, #32
  37490. 8010096: 617b str r3, [r7, #20]
  37491. /* Set the Output Compare Polarity */
  37492. tmpccer |= (OC_Config->OCPolarity << 4U);
  37493. 8010098: 683b ldr r3, [r7, #0]
  37494. 801009a: 689b ldr r3, [r3, #8]
  37495. 801009c: 011b lsls r3, r3, #4
  37496. 801009e: 697a ldr r2, [r7, #20]
  37497. 80100a0: 4313 orrs r3, r2
  37498. 80100a2: 617b str r3, [r7, #20]
  37499. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  37500. 80100a4: 687b ldr r3, [r7, #4]
  37501. 80100a6: 4a29 ldr r2, [pc, #164] @ (801014c <TIM_OC2_SetConfig+0x100>)
  37502. 80100a8: 4293 cmp r3, r2
  37503. 80100aa: d003 beq.n 80100b4 <TIM_OC2_SetConfig+0x68>
  37504. 80100ac: 687b ldr r3, [r7, #4]
  37505. 80100ae: 4a28 ldr r2, [pc, #160] @ (8010150 <TIM_OC2_SetConfig+0x104>)
  37506. 80100b0: 4293 cmp r3, r2
  37507. 80100b2: d10d bne.n 80100d0 <TIM_OC2_SetConfig+0x84>
  37508. {
  37509. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37510. /* Reset the Output N Polarity level */
  37511. tmpccer &= ~TIM_CCER_CC2NP;
  37512. 80100b4: 697b ldr r3, [r7, #20]
  37513. 80100b6: f023 0380 bic.w r3, r3, #128 @ 0x80
  37514. 80100ba: 617b str r3, [r7, #20]
  37515. /* Set the Output N Polarity */
  37516. tmpccer |= (OC_Config->OCNPolarity << 4U);
  37517. 80100bc: 683b ldr r3, [r7, #0]
  37518. 80100be: 68db ldr r3, [r3, #12]
  37519. 80100c0: 011b lsls r3, r3, #4
  37520. 80100c2: 697a ldr r2, [r7, #20]
  37521. 80100c4: 4313 orrs r3, r2
  37522. 80100c6: 617b str r3, [r7, #20]
  37523. /* Reset the Output N State */
  37524. tmpccer &= ~TIM_CCER_CC2NE;
  37525. 80100c8: 697b ldr r3, [r7, #20]
  37526. 80100ca: f023 0340 bic.w r3, r3, #64 @ 0x40
  37527. 80100ce: 617b str r3, [r7, #20]
  37528. }
  37529. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37530. 80100d0: 687b ldr r3, [r7, #4]
  37531. 80100d2: 4a1e ldr r2, [pc, #120] @ (801014c <TIM_OC2_SetConfig+0x100>)
  37532. 80100d4: 4293 cmp r3, r2
  37533. 80100d6: d00f beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37534. 80100d8: 687b ldr r3, [r7, #4]
  37535. 80100da: 4a1d ldr r2, [pc, #116] @ (8010150 <TIM_OC2_SetConfig+0x104>)
  37536. 80100dc: 4293 cmp r3, r2
  37537. 80100de: d00b beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37538. 80100e0: 687b ldr r3, [r7, #4]
  37539. 80100e2: 4a1c ldr r2, [pc, #112] @ (8010154 <TIM_OC2_SetConfig+0x108>)
  37540. 80100e4: 4293 cmp r3, r2
  37541. 80100e6: d007 beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37542. 80100e8: 687b ldr r3, [r7, #4]
  37543. 80100ea: 4a1b ldr r2, [pc, #108] @ (8010158 <TIM_OC2_SetConfig+0x10c>)
  37544. 80100ec: 4293 cmp r3, r2
  37545. 80100ee: d003 beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37546. 80100f0: 687b ldr r3, [r7, #4]
  37547. 80100f2: 4a1a ldr r2, [pc, #104] @ (801015c <TIM_OC2_SetConfig+0x110>)
  37548. 80100f4: 4293 cmp r3, r2
  37549. 80100f6: d113 bne.n 8010120 <TIM_OC2_SetConfig+0xd4>
  37550. /* Check parameters */
  37551. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37552. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37553. /* Reset the Output Compare and Output Compare N IDLE State */
  37554. tmpcr2 &= ~TIM_CR2_OIS2;
  37555. 80100f8: 693b ldr r3, [r7, #16]
  37556. 80100fa: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37557. 80100fe: 613b str r3, [r7, #16]
  37558. tmpcr2 &= ~TIM_CR2_OIS2N;
  37559. 8010100: 693b ldr r3, [r7, #16]
  37560. 8010102: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37561. 8010106: 613b str r3, [r7, #16]
  37562. /* Set the Output Idle state */
  37563. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  37564. 8010108: 683b ldr r3, [r7, #0]
  37565. 801010a: 695b ldr r3, [r3, #20]
  37566. 801010c: 009b lsls r3, r3, #2
  37567. 801010e: 693a ldr r2, [r7, #16]
  37568. 8010110: 4313 orrs r3, r2
  37569. 8010112: 613b str r3, [r7, #16]
  37570. /* Set the Output N Idle state */
  37571. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  37572. 8010114: 683b ldr r3, [r7, #0]
  37573. 8010116: 699b ldr r3, [r3, #24]
  37574. 8010118: 009b lsls r3, r3, #2
  37575. 801011a: 693a ldr r2, [r7, #16]
  37576. 801011c: 4313 orrs r3, r2
  37577. 801011e: 613b str r3, [r7, #16]
  37578. }
  37579. /* Write to TIMx CR2 */
  37580. TIMx->CR2 = tmpcr2;
  37581. 8010120: 687b ldr r3, [r7, #4]
  37582. 8010122: 693a ldr r2, [r7, #16]
  37583. 8010124: 605a str r2, [r3, #4]
  37584. /* Write to TIMx CCMR1 */
  37585. TIMx->CCMR1 = tmpccmrx;
  37586. 8010126: 687b ldr r3, [r7, #4]
  37587. 8010128: 68fa ldr r2, [r7, #12]
  37588. 801012a: 619a str r2, [r3, #24]
  37589. /* Set the Capture Compare Register value */
  37590. TIMx->CCR2 = OC_Config->Pulse;
  37591. 801012c: 683b ldr r3, [r7, #0]
  37592. 801012e: 685a ldr r2, [r3, #4]
  37593. 8010130: 687b ldr r3, [r7, #4]
  37594. 8010132: 639a str r2, [r3, #56] @ 0x38
  37595. /* Write to TIMx CCER */
  37596. TIMx->CCER = tmpccer;
  37597. 8010134: 687b ldr r3, [r7, #4]
  37598. 8010136: 697a ldr r2, [r7, #20]
  37599. 8010138: 621a str r2, [r3, #32]
  37600. }
  37601. 801013a: bf00 nop
  37602. 801013c: 371c adds r7, #28
  37603. 801013e: 46bd mov sp, r7
  37604. 8010140: f85d 7b04 ldr.w r7, [sp], #4
  37605. 8010144: 4770 bx lr
  37606. 8010146: bf00 nop
  37607. 8010148: feff8fff .word 0xfeff8fff
  37608. 801014c: 40010000 .word 0x40010000
  37609. 8010150: 40010400 .word 0x40010400
  37610. 8010154: 40014000 .word 0x40014000
  37611. 8010158: 40014400 .word 0x40014400
  37612. 801015c: 40014800 .word 0x40014800
  37613. 08010160 <TIM_OC3_SetConfig>:
  37614. * @param TIMx to select the TIM peripheral
  37615. * @param OC_Config The output configuration structure
  37616. * @retval None
  37617. */
  37618. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37619. {
  37620. 8010160: b480 push {r7}
  37621. 8010162: b087 sub sp, #28
  37622. 8010164: af00 add r7, sp, #0
  37623. 8010166: 6078 str r0, [r7, #4]
  37624. 8010168: 6039 str r1, [r7, #0]
  37625. uint32_t tmpccmrx;
  37626. uint32_t tmpccer;
  37627. uint32_t tmpcr2;
  37628. /* Get the TIMx CCER register value */
  37629. tmpccer = TIMx->CCER;
  37630. 801016a: 687b ldr r3, [r7, #4]
  37631. 801016c: 6a1b ldr r3, [r3, #32]
  37632. 801016e: 617b str r3, [r7, #20]
  37633. /* Disable the Channel 3: Reset the CC2E Bit */
  37634. TIMx->CCER &= ~TIM_CCER_CC3E;
  37635. 8010170: 687b ldr r3, [r7, #4]
  37636. 8010172: 6a1b ldr r3, [r3, #32]
  37637. 8010174: f423 7280 bic.w r2, r3, #256 @ 0x100
  37638. 8010178: 687b ldr r3, [r7, #4]
  37639. 801017a: 621a str r2, [r3, #32]
  37640. /* Get the TIMx CR2 register value */
  37641. tmpcr2 = TIMx->CR2;
  37642. 801017c: 687b ldr r3, [r7, #4]
  37643. 801017e: 685b ldr r3, [r3, #4]
  37644. 8010180: 613b str r3, [r7, #16]
  37645. /* Get the TIMx CCMR2 register value */
  37646. tmpccmrx = TIMx->CCMR2;
  37647. 8010182: 687b ldr r3, [r7, #4]
  37648. 8010184: 69db ldr r3, [r3, #28]
  37649. 8010186: 60fb str r3, [r7, #12]
  37650. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37651. tmpccmrx &= ~TIM_CCMR2_OC3M;
  37652. 8010188: 68fa ldr r2, [r7, #12]
  37653. 801018a: 4b33 ldr r3, [pc, #204] @ (8010258 <TIM_OC3_SetConfig+0xf8>)
  37654. 801018c: 4013 ands r3, r2
  37655. 801018e: 60fb str r3, [r7, #12]
  37656. tmpccmrx &= ~TIM_CCMR2_CC3S;
  37657. 8010190: 68fb ldr r3, [r7, #12]
  37658. 8010192: f023 0303 bic.w r3, r3, #3
  37659. 8010196: 60fb str r3, [r7, #12]
  37660. /* Select the Output Compare Mode */
  37661. tmpccmrx |= OC_Config->OCMode;
  37662. 8010198: 683b ldr r3, [r7, #0]
  37663. 801019a: 681b ldr r3, [r3, #0]
  37664. 801019c: 68fa ldr r2, [r7, #12]
  37665. 801019e: 4313 orrs r3, r2
  37666. 80101a0: 60fb str r3, [r7, #12]
  37667. /* Reset the Output Polarity level */
  37668. tmpccer &= ~TIM_CCER_CC3P;
  37669. 80101a2: 697b ldr r3, [r7, #20]
  37670. 80101a4: f423 7300 bic.w r3, r3, #512 @ 0x200
  37671. 80101a8: 617b str r3, [r7, #20]
  37672. /* Set the Output Compare Polarity */
  37673. tmpccer |= (OC_Config->OCPolarity << 8U);
  37674. 80101aa: 683b ldr r3, [r7, #0]
  37675. 80101ac: 689b ldr r3, [r3, #8]
  37676. 80101ae: 021b lsls r3, r3, #8
  37677. 80101b0: 697a ldr r2, [r7, #20]
  37678. 80101b2: 4313 orrs r3, r2
  37679. 80101b4: 617b str r3, [r7, #20]
  37680. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  37681. 80101b6: 687b ldr r3, [r7, #4]
  37682. 80101b8: 4a28 ldr r2, [pc, #160] @ (801025c <TIM_OC3_SetConfig+0xfc>)
  37683. 80101ba: 4293 cmp r3, r2
  37684. 80101bc: d003 beq.n 80101c6 <TIM_OC3_SetConfig+0x66>
  37685. 80101be: 687b ldr r3, [r7, #4]
  37686. 80101c0: 4a27 ldr r2, [pc, #156] @ (8010260 <TIM_OC3_SetConfig+0x100>)
  37687. 80101c2: 4293 cmp r3, r2
  37688. 80101c4: d10d bne.n 80101e2 <TIM_OC3_SetConfig+0x82>
  37689. {
  37690. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37691. /* Reset the Output N Polarity level */
  37692. tmpccer &= ~TIM_CCER_CC3NP;
  37693. 80101c6: 697b ldr r3, [r7, #20]
  37694. 80101c8: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37695. 80101cc: 617b str r3, [r7, #20]
  37696. /* Set the Output N Polarity */
  37697. tmpccer |= (OC_Config->OCNPolarity << 8U);
  37698. 80101ce: 683b ldr r3, [r7, #0]
  37699. 80101d0: 68db ldr r3, [r3, #12]
  37700. 80101d2: 021b lsls r3, r3, #8
  37701. 80101d4: 697a ldr r2, [r7, #20]
  37702. 80101d6: 4313 orrs r3, r2
  37703. 80101d8: 617b str r3, [r7, #20]
  37704. /* Reset the Output N State */
  37705. tmpccer &= ~TIM_CCER_CC3NE;
  37706. 80101da: 697b ldr r3, [r7, #20]
  37707. 80101dc: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37708. 80101e0: 617b str r3, [r7, #20]
  37709. }
  37710. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37711. 80101e2: 687b ldr r3, [r7, #4]
  37712. 80101e4: 4a1d ldr r2, [pc, #116] @ (801025c <TIM_OC3_SetConfig+0xfc>)
  37713. 80101e6: 4293 cmp r3, r2
  37714. 80101e8: d00f beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37715. 80101ea: 687b ldr r3, [r7, #4]
  37716. 80101ec: 4a1c ldr r2, [pc, #112] @ (8010260 <TIM_OC3_SetConfig+0x100>)
  37717. 80101ee: 4293 cmp r3, r2
  37718. 80101f0: d00b beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37719. 80101f2: 687b ldr r3, [r7, #4]
  37720. 80101f4: 4a1b ldr r2, [pc, #108] @ (8010264 <TIM_OC3_SetConfig+0x104>)
  37721. 80101f6: 4293 cmp r3, r2
  37722. 80101f8: d007 beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37723. 80101fa: 687b ldr r3, [r7, #4]
  37724. 80101fc: 4a1a ldr r2, [pc, #104] @ (8010268 <TIM_OC3_SetConfig+0x108>)
  37725. 80101fe: 4293 cmp r3, r2
  37726. 8010200: d003 beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37727. 8010202: 687b ldr r3, [r7, #4]
  37728. 8010204: 4a19 ldr r2, [pc, #100] @ (801026c <TIM_OC3_SetConfig+0x10c>)
  37729. 8010206: 4293 cmp r3, r2
  37730. 8010208: d113 bne.n 8010232 <TIM_OC3_SetConfig+0xd2>
  37731. /* Check parameters */
  37732. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37733. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37734. /* Reset the Output Compare and Output Compare N IDLE State */
  37735. tmpcr2 &= ~TIM_CR2_OIS3;
  37736. 801020a: 693b ldr r3, [r7, #16]
  37737. 801020c: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  37738. 8010210: 613b str r3, [r7, #16]
  37739. tmpcr2 &= ~TIM_CR2_OIS3N;
  37740. 8010212: 693b ldr r3, [r7, #16]
  37741. 8010214: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37742. 8010218: 613b str r3, [r7, #16]
  37743. /* Set the Output Idle state */
  37744. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  37745. 801021a: 683b ldr r3, [r7, #0]
  37746. 801021c: 695b ldr r3, [r3, #20]
  37747. 801021e: 011b lsls r3, r3, #4
  37748. 8010220: 693a ldr r2, [r7, #16]
  37749. 8010222: 4313 orrs r3, r2
  37750. 8010224: 613b str r3, [r7, #16]
  37751. /* Set the Output N Idle state */
  37752. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  37753. 8010226: 683b ldr r3, [r7, #0]
  37754. 8010228: 699b ldr r3, [r3, #24]
  37755. 801022a: 011b lsls r3, r3, #4
  37756. 801022c: 693a ldr r2, [r7, #16]
  37757. 801022e: 4313 orrs r3, r2
  37758. 8010230: 613b str r3, [r7, #16]
  37759. }
  37760. /* Write to TIMx CR2 */
  37761. TIMx->CR2 = tmpcr2;
  37762. 8010232: 687b ldr r3, [r7, #4]
  37763. 8010234: 693a ldr r2, [r7, #16]
  37764. 8010236: 605a str r2, [r3, #4]
  37765. /* Write to TIMx CCMR2 */
  37766. TIMx->CCMR2 = tmpccmrx;
  37767. 8010238: 687b ldr r3, [r7, #4]
  37768. 801023a: 68fa ldr r2, [r7, #12]
  37769. 801023c: 61da str r2, [r3, #28]
  37770. /* Set the Capture Compare Register value */
  37771. TIMx->CCR3 = OC_Config->Pulse;
  37772. 801023e: 683b ldr r3, [r7, #0]
  37773. 8010240: 685a ldr r2, [r3, #4]
  37774. 8010242: 687b ldr r3, [r7, #4]
  37775. 8010244: 63da str r2, [r3, #60] @ 0x3c
  37776. /* Write to TIMx CCER */
  37777. TIMx->CCER = tmpccer;
  37778. 8010246: 687b ldr r3, [r7, #4]
  37779. 8010248: 697a ldr r2, [r7, #20]
  37780. 801024a: 621a str r2, [r3, #32]
  37781. }
  37782. 801024c: bf00 nop
  37783. 801024e: 371c adds r7, #28
  37784. 8010250: 46bd mov sp, r7
  37785. 8010252: f85d 7b04 ldr.w r7, [sp], #4
  37786. 8010256: 4770 bx lr
  37787. 8010258: fffeff8f .word 0xfffeff8f
  37788. 801025c: 40010000 .word 0x40010000
  37789. 8010260: 40010400 .word 0x40010400
  37790. 8010264: 40014000 .word 0x40014000
  37791. 8010268: 40014400 .word 0x40014400
  37792. 801026c: 40014800 .word 0x40014800
  37793. 08010270 <TIM_OC4_SetConfig>:
  37794. * @param TIMx to select the TIM peripheral
  37795. * @param OC_Config The output configuration structure
  37796. * @retval None
  37797. */
  37798. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37799. {
  37800. 8010270: b480 push {r7}
  37801. 8010272: b087 sub sp, #28
  37802. 8010274: af00 add r7, sp, #0
  37803. 8010276: 6078 str r0, [r7, #4]
  37804. 8010278: 6039 str r1, [r7, #0]
  37805. uint32_t tmpccmrx;
  37806. uint32_t tmpccer;
  37807. uint32_t tmpcr2;
  37808. /* Get the TIMx CCER register value */
  37809. tmpccer = TIMx->CCER;
  37810. 801027a: 687b ldr r3, [r7, #4]
  37811. 801027c: 6a1b ldr r3, [r3, #32]
  37812. 801027e: 613b str r3, [r7, #16]
  37813. /* Disable the Channel 4: Reset the CC4E Bit */
  37814. TIMx->CCER &= ~TIM_CCER_CC4E;
  37815. 8010280: 687b ldr r3, [r7, #4]
  37816. 8010282: 6a1b ldr r3, [r3, #32]
  37817. 8010284: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  37818. 8010288: 687b ldr r3, [r7, #4]
  37819. 801028a: 621a str r2, [r3, #32]
  37820. /* Get the TIMx CR2 register value */
  37821. tmpcr2 = TIMx->CR2;
  37822. 801028c: 687b ldr r3, [r7, #4]
  37823. 801028e: 685b ldr r3, [r3, #4]
  37824. 8010290: 617b str r3, [r7, #20]
  37825. /* Get the TIMx CCMR2 register value */
  37826. tmpccmrx = TIMx->CCMR2;
  37827. 8010292: 687b ldr r3, [r7, #4]
  37828. 8010294: 69db ldr r3, [r3, #28]
  37829. 8010296: 60fb str r3, [r7, #12]
  37830. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37831. tmpccmrx &= ~TIM_CCMR2_OC4M;
  37832. 8010298: 68fa ldr r2, [r7, #12]
  37833. 801029a: 4b24 ldr r3, [pc, #144] @ (801032c <TIM_OC4_SetConfig+0xbc>)
  37834. 801029c: 4013 ands r3, r2
  37835. 801029e: 60fb str r3, [r7, #12]
  37836. tmpccmrx &= ~TIM_CCMR2_CC4S;
  37837. 80102a0: 68fb ldr r3, [r7, #12]
  37838. 80102a2: f423 7340 bic.w r3, r3, #768 @ 0x300
  37839. 80102a6: 60fb str r3, [r7, #12]
  37840. /* Select the Output Compare Mode */
  37841. tmpccmrx |= (OC_Config->OCMode << 8U);
  37842. 80102a8: 683b ldr r3, [r7, #0]
  37843. 80102aa: 681b ldr r3, [r3, #0]
  37844. 80102ac: 021b lsls r3, r3, #8
  37845. 80102ae: 68fa ldr r2, [r7, #12]
  37846. 80102b0: 4313 orrs r3, r2
  37847. 80102b2: 60fb str r3, [r7, #12]
  37848. /* Reset the Output Polarity level */
  37849. tmpccer &= ~TIM_CCER_CC4P;
  37850. 80102b4: 693b ldr r3, [r7, #16]
  37851. 80102b6: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37852. 80102ba: 613b str r3, [r7, #16]
  37853. /* Set the Output Compare Polarity */
  37854. tmpccer |= (OC_Config->OCPolarity << 12U);
  37855. 80102bc: 683b ldr r3, [r7, #0]
  37856. 80102be: 689b ldr r3, [r3, #8]
  37857. 80102c0: 031b lsls r3, r3, #12
  37858. 80102c2: 693a ldr r2, [r7, #16]
  37859. 80102c4: 4313 orrs r3, r2
  37860. 80102c6: 613b str r3, [r7, #16]
  37861. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37862. 80102c8: 687b ldr r3, [r7, #4]
  37863. 80102ca: 4a19 ldr r2, [pc, #100] @ (8010330 <TIM_OC4_SetConfig+0xc0>)
  37864. 80102cc: 4293 cmp r3, r2
  37865. 80102ce: d00f beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37866. 80102d0: 687b ldr r3, [r7, #4]
  37867. 80102d2: 4a18 ldr r2, [pc, #96] @ (8010334 <TIM_OC4_SetConfig+0xc4>)
  37868. 80102d4: 4293 cmp r3, r2
  37869. 80102d6: d00b beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37870. 80102d8: 687b ldr r3, [r7, #4]
  37871. 80102da: 4a17 ldr r2, [pc, #92] @ (8010338 <TIM_OC4_SetConfig+0xc8>)
  37872. 80102dc: 4293 cmp r3, r2
  37873. 80102de: d007 beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37874. 80102e0: 687b ldr r3, [r7, #4]
  37875. 80102e2: 4a16 ldr r2, [pc, #88] @ (801033c <TIM_OC4_SetConfig+0xcc>)
  37876. 80102e4: 4293 cmp r3, r2
  37877. 80102e6: d003 beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37878. 80102e8: 687b ldr r3, [r7, #4]
  37879. 80102ea: 4a15 ldr r2, [pc, #84] @ (8010340 <TIM_OC4_SetConfig+0xd0>)
  37880. 80102ec: 4293 cmp r3, r2
  37881. 80102ee: d109 bne.n 8010304 <TIM_OC4_SetConfig+0x94>
  37882. {
  37883. /* Check parameters */
  37884. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37885. /* Reset the Output Compare IDLE State */
  37886. tmpcr2 &= ~TIM_CR2_OIS4;
  37887. 80102f0: 697b ldr r3, [r7, #20]
  37888. 80102f2: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  37889. 80102f6: 617b str r3, [r7, #20]
  37890. /* Set the Output Idle state */
  37891. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  37892. 80102f8: 683b ldr r3, [r7, #0]
  37893. 80102fa: 695b ldr r3, [r3, #20]
  37894. 80102fc: 019b lsls r3, r3, #6
  37895. 80102fe: 697a ldr r2, [r7, #20]
  37896. 8010300: 4313 orrs r3, r2
  37897. 8010302: 617b str r3, [r7, #20]
  37898. }
  37899. /* Write to TIMx CR2 */
  37900. TIMx->CR2 = tmpcr2;
  37901. 8010304: 687b ldr r3, [r7, #4]
  37902. 8010306: 697a ldr r2, [r7, #20]
  37903. 8010308: 605a str r2, [r3, #4]
  37904. /* Write to TIMx CCMR2 */
  37905. TIMx->CCMR2 = tmpccmrx;
  37906. 801030a: 687b ldr r3, [r7, #4]
  37907. 801030c: 68fa ldr r2, [r7, #12]
  37908. 801030e: 61da str r2, [r3, #28]
  37909. /* Set the Capture Compare Register value */
  37910. TIMx->CCR4 = OC_Config->Pulse;
  37911. 8010310: 683b ldr r3, [r7, #0]
  37912. 8010312: 685a ldr r2, [r3, #4]
  37913. 8010314: 687b ldr r3, [r7, #4]
  37914. 8010316: 641a str r2, [r3, #64] @ 0x40
  37915. /* Write to TIMx CCER */
  37916. TIMx->CCER = tmpccer;
  37917. 8010318: 687b ldr r3, [r7, #4]
  37918. 801031a: 693a ldr r2, [r7, #16]
  37919. 801031c: 621a str r2, [r3, #32]
  37920. }
  37921. 801031e: bf00 nop
  37922. 8010320: 371c adds r7, #28
  37923. 8010322: 46bd mov sp, r7
  37924. 8010324: f85d 7b04 ldr.w r7, [sp], #4
  37925. 8010328: 4770 bx lr
  37926. 801032a: bf00 nop
  37927. 801032c: feff8fff .word 0xfeff8fff
  37928. 8010330: 40010000 .word 0x40010000
  37929. 8010334: 40010400 .word 0x40010400
  37930. 8010338: 40014000 .word 0x40014000
  37931. 801033c: 40014400 .word 0x40014400
  37932. 8010340: 40014800 .word 0x40014800
  37933. 08010344 <TIM_OC5_SetConfig>:
  37934. * @param OC_Config The output configuration structure
  37935. * @retval None
  37936. */
  37937. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  37938. const TIM_OC_InitTypeDef *OC_Config)
  37939. {
  37940. 8010344: b480 push {r7}
  37941. 8010346: b087 sub sp, #28
  37942. 8010348: af00 add r7, sp, #0
  37943. 801034a: 6078 str r0, [r7, #4]
  37944. 801034c: 6039 str r1, [r7, #0]
  37945. uint32_t tmpccmrx;
  37946. uint32_t tmpccer;
  37947. uint32_t tmpcr2;
  37948. /* Get the TIMx CCER register value */
  37949. tmpccer = TIMx->CCER;
  37950. 801034e: 687b ldr r3, [r7, #4]
  37951. 8010350: 6a1b ldr r3, [r3, #32]
  37952. 8010352: 613b str r3, [r7, #16]
  37953. /* Disable the output: Reset the CCxE Bit */
  37954. TIMx->CCER &= ~TIM_CCER_CC5E;
  37955. 8010354: 687b ldr r3, [r7, #4]
  37956. 8010356: 6a1b ldr r3, [r3, #32]
  37957. 8010358: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  37958. 801035c: 687b ldr r3, [r7, #4]
  37959. 801035e: 621a str r2, [r3, #32]
  37960. /* Get the TIMx CR2 register value */
  37961. tmpcr2 = TIMx->CR2;
  37962. 8010360: 687b ldr r3, [r7, #4]
  37963. 8010362: 685b ldr r3, [r3, #4]
  37964. 8010364: 617b str r3, [r7, #20]
  37965. /* Get the TIMx CCMR1 register value */
  37966. tmpccmrx = TIMx->CCMR3;
  37967. 8010366: 687b ldr r3, [r7, #4]
  37968. 8010368: 6d5b ldr r3, [r3, #84] @ 0x54
  37969. 801036a: 60fb str r3, [r7, #12]
  37970. /* Reset the Output Compare Mode Bits */
  37971. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  37972. 801036c: 68fa ldr r2, [r7, #12]
  37973. 801036e: 4b21 ldr r3, [pc, #132] @ (80103f4 <TIM_OC5_SetConfig+0xb0>)
  37974. 8010370: 4013 ands r3, r2
  37975. 8010372: 60fb str r3, [r7, #12]
  37976. /* Select the Output Compare Mode */
  37977. tmpccmrx |= OC_Config->OCMode;
  37978. 8010374: 683b ldr r3, [r7, #0]
  37979. 8010376: 681b ldr r3, [r3, #0]
  37980. 8010378: 68fa ldr r2, [r7, #12]
  37981. 801037a: 4313 orrs r3, r2
  37982. 801037c: 60fb str r3, [r7, #12]
  37983. /* Reset the Output Polarity level */
  37984. tmpccer &= ~TIM_CCER_CC5P;
  37985. 801037e: 693b ldr r3, [r7, #16]
  37986. 8010380: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  37987. 8010384: 613b str r3, [r7, #16]
  37988. /* Set the Output Compare Polarity */
  37989. tmpccer |= (OC_Config->OCPolarity << 16U);
  37990. 8010386: 683b ldr r3, [r7, #0]
  37991. 8010388: 689b ldr r3, [r3, #8]
  37992. 801038a: 041b lsls r3, r3, #16
  37993. 801038c: 693a ldr r2, [r7, #16]
  37994. 801038e: 4313 orrs r3, r2
  37995. 8010390: 613b str r3, [r7, #16]
  37996. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37997. 8010392: 687b ldr r3, [r7, #4]
  37998. 8010394: 4a18 ldr r2, [pc, #96] @ (80103f8 <TIM_OC5_SetConfig+0xb4>)
  37999. 8010396: 4293 cmp r3, r2
  38000. 8010398: d00f beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38001. 801039a: 687b ldr r3, [r7, #4]
  38002. 801039c: 4a17 ldr r2, [pc, #92] @ (80103fc <TIM_OC5_SetConfig+0xb8>)
  38003. 801039e: 4293 cmp r3, r2
  38004. 80103a0: d00b beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38005. 80103a2: 687b ldr r3, [r7, #4]
  38006. 80103a4: 4a16 ldr r2, [pc, #88] @ (8010400 <TIM_OC5_SetConfig+0xbc>)
  38007. 80103a6: 4293 cmp r3, r2
  38008. 80103a8: d007 beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38009. 80103aa: 687b ldr r3, [r7, #4]
  38010. 80103ac: 4a15 ldr r2, [pc, #84] @ (8010404 <TIM_OC5_SetConfig+0xc0>)
  38011. 80103ae: 4293 cmp r3, r2
  38012. 80103b0: d003 beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38013. 80103b2: 687b ldr r3, [r7, #4]
  38014. 80103b4: 4a14 ldr r2, [pc, #80] @ (8010408 <TIM_OC5_SetConfig+0xc4>)
  38015. 80103b6: 4293 cmp r3, r2
  38016. 80103b8: d109 bne.n 80103ce <TIM_OC5_SetConfig+0x8a>
  38017. {
  38018. /* Reset the Output Compare IDLE State */
  38019. tmpcr2 &= ~TIM_CR2_OIS5;
  38020. 80103ba: 697b ldr r3, [r7, #20]
  38021. 80103bc: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  38022. 80103c0: 617b str r3, [r7, #20]
  38023. /* Set the Output Idle state */
  38024. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  38025. 80103c2: 683b ldr r3, [r7, #0]
  38026. 80103c4: 695b ldr r3, [r3, #20]
  38027. 80103c6: 021b lsls r3, r3, #8
  38028. 80103c8: 697a ldr r2, [r7, #20]
  38029. 80103ca: 4313 orrs r3, r2
  38030. 80103cc: 617b str r3, [r7, #20]
  38031. }
  38032. /* Write to TIMx CR2 */
  38033. TIMx->CR2 = tmpcr2;
  38034. 80103ce: 687b ldr r3, [r7, #4]
  38035. 80103d0: 697a ldr r2, [r7, #20]
  38036. 80103d2: 605a str r2, [r3, #4]
  38037. /* Write to TIMx CCMR3 */
  38038. TIMx->CCMR3 = tmpccmrx;
  38039. 80103d4: 687b ldr r3, [r7, #4]
  38040. 80103d6: 68fa ldr r2, [r7, #12]
  38041. 80103d8: 655a str r2, [r3, #84] @ 0x54
  38042. /* Set the Capture Compare Register value */
  38043. TIMx->CCR5 = OC_Config->Pulse;
  38044. 80103da: 683b ldr r3, [r7, #0]
  38045. 80103dc: 685a ldr r2, [r3, #4]
  38046. 80103de: 687b ldr r3, [r7, #4]
  38047. 80103e0: 659a str r2, [r3, #88] @ 0x58
  38048. /* Write to TIMx CCER */
  38049. TIMx->CCER = tmpccer;
  38050. 80103e2: 687b ldr r3, [r7, #4]
  38051. 80103e4: 693a ldr r2, [r7, #16]
  38052. 80103e6: 621a str r2, [r3, #32]
  38053. }
  38054. 80103e8: bf00 nop
  38055. 80103ea: 371c adds r7, #28
  38056. 80103ec: 46bd mov sp, r7
  38057. 80103ee: f85d 7b04 ldr.w r7, [sp], #4
  38058. 80103f2: 4770 bx lr
  38059. 80103f4: fffeff8f .word 0xfffeff8f
  38060. 80103f8: 40010000 .word 0x40010000
  38061. 80103fc: 40010400 .word 0x40010400
  38062. 8010400: 40014000 .word 0x40014000
  38063. 8010404: 40014400 .word 0x40014400
  38064. 8010408: 40014800 .word 0x40014800
  38065. 0801040c <TIM_OC6_SetConfig>:
  38066. * @param OC_Config The output configuration structure
  38067. * @retval None
  38068. */
  38069. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  38070. const TIM_OC_InitTypeDef *OC_Config)
  38071. {
  38072. 801040c: b480 push {r7}
  38073. 801040e: b087 sub sp, #28
  38074. 8010410: af00 add r7, sp, #0
  38075. 8010412: 6078 str r0, [r7, #4]
  38076. 8010414: 6039 str r1, [r7, #0]
  38077. uint32_t tmpccmrx;
  38078. uint32_t tmpccer;
  38079. uint32_t tmpcr2;
  38080. /* Get the TIMx CCER register value */
  38081. tmpccer = TIMx->CCER;
  38082. 8010416: 687b ldr r3, [r7, #4]
  38083. 8010418: 6a1b ldr r3, [r3, #32]
  38084. 801041a: 613b str r3, [r7, #16]
  38085. /* Disable the output: Reset the CCxE Bit */
  38086. TIMx->CCER &= ~TIM_CCER_CC6E;
  38087. 801041c: 687b ldr r3, [r7, #4]
  38088. 801041e: 6a1b ldr r3, [r3, #32]
  38089. 8010420: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  38090. 8010424: 687b ldr r3, [r7, #4]
  38091. 8010426: 621a str r2, [r3, #32]
  38092. /* Get the TIMx CR2 register value */
  38093. tmpcr2 = TIMx->CR2;
  38094. 8010428: 687b ldr r3, [r7, #4]
  38095. 801042a: 685b ldr r3, [r3, #4]
  38096. 801042c: 617b str r3, [r7, #20]
  38097. /* Get the TIMx CCMR1 register value */
  38098. tmpccmrx = TIMx->CCMR3;
  38099. 801042e: 687b ldr r3, [r7, #4]
  38100. 8010430: 6d5b ldr r3, [r3, #84] @ 0x54
  38101. 8010432: 60fb str r3, [r7, #12]
  38102. /* Reset the Output Compare Mode Bits */
  38103. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  38104. 8010434: 68fa ldr r2, [r7, #12]
  38105. 8010436: 4b22 ldr r3, [pc, #136] @ (80104c0 <TIM_OC6_SetConfig+0xb4>)
  38106. 8010438: 4013 ands r3, r2
  38107. 801043a: 60fb str r3, [r7, #12]
  38108. /* Select the Output Compare Mode */
  38109. tmpccmrx |= (OC_Config->OCMode << 8U);
  38110. 801043c: 683b ldr r3, [r7, #0]
  38111. 801043e: 681b ldr r3, [r3, #0]
  38112. 8010440: 021b lsls r3, r3, #8
  38113. 8010442: 68fa ldr r2, [r7, #12]
  38114. 8010444: 4313 orrs r3, r2
  38115. 8010446: 60fb str r3, [r7, #12]
  38116. /* Reset the Output Polarity level */
  38117. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  38118. 8010448: 693b ldr r3, [r7, #16]
  38119. 801044a: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  38120. 801044e: 613b str r3, [r7, #16]
  38121. /* Set the Output Compare Polarity */
  38122. tmpccer |= (OC_Config->OCPolarity << 20U);
  38123. 8010450: 683b ldr r3, [r7, #0]
  38124. 8010452: 689b ldr r3, [r3, #8]
  38125. 8010454: 051b lsls r3, r3, #20
  38126. 8010456: 693a ldr r2, [r7, #16]
  38127. 8010458: 4313 orrs r3, r2
  38128. 801045a: 613b str r3, [r7, #16]
  38129. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38130. 801045c: 687b ldr r3, [r7, #4]
  38131. 801045e: 4a19 ldr r2, [pc, #100] @ (80104c4 <TIM_OC6_SetConfig+0xb8>)
  38132. 8010460: 4293 cmp r3, r2
  38133. 8010462: d00f beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38134. 8010464: 687b ldr r3, [r7, #4]
  38135. 8010466: 4a18 ldr r2, [pc, #96] @ (80104c8 <TIM_OC6_SetConfig+0xbc>)
  38136. 8010468: 4293 cmp r3, r2
  38137. 801046a: d00b beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38138. 801046c: 687b ldr r3, [r7, #4]
  38139. 801046e: 4a17 ldr r2, [pc, #92] @ (80104cc <TIM_OC6_SetConfig+0xc0>)
  38140. 8010470: 4293 cmp r3, r2
  38141. 8010472: d007 beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38142. 8010474: 687b ldr r3, [r7, #4]
  38143. 8010476: 4a16 ldr r2, [pc, #88] @ (80104d0 <TIM_OC6_SetConfig+0xc4>)
  38144. 8010478: 4293 cmp r3, r2
  38145. 801047a: d003 beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38146. 801047c: 687b ldr r3, [r7, #4]
  38147. 801047e: 4a15 ldr r2, [pc, #84] @ (80104d4 <TIM_OC6_SetConfig+0xc8>)
  38148. 8010480: 4293 cmp r3, r2
  38149. 8010482: d109 bne.n 8010498 <TIM_OC6_SetConfig+0x8c>
  38150. {
  38151. /* Reset the Output Compare IDLE State */
  38152. tmpcr2 &= ~TIM_CR2_OIS6;
  38153. 8010484: 697b ldr r3, [r7, #20]
  38154. 8010486: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  38155. 801048a: 617b str r3, [r7, #20]
  38156. /* Set the Output Idle state */
  38157. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  38158. 801048c: 683b ldr r3, [r7, #0]
  38159. 801048e: 695b ldr r3, [r3, #20]
  38160. 8010490: 029b lsls r3, r3, #10
  38161. 8010492: 697a ldr r2, [r7, #20]
  38162. 8010494: 4313 orrs r3, r2
  38163. 8010496: 617b str r3, [r7, #20]
  38164. }
  38165. /* Write to TIMx CR2 */
  38166. TIMx->CR2 = tmpcr2;
  38167. 8010498: 687b ldr r3, [r7, #4]
  38168. 801049a: 697a ldr r2, [r7, #20]
  38169. 801049c: 605a str r2, [r3, #4]
  38170. /* Write to TIMx CCMR3 */
  38171. TIMx->CCMR3 = tmpccmrx;
  38172. 801049e: 687b ldr r3, [r7, #4]
  38173. 80104a0: 68fa ldr r2, [r7, #12]
  38174. 80104a2: 655a str r2, [r3, #84] @ 0x54
  38175. /* Set the Capture Compare Register value */
  38176. TIMx->CCR6 = OC_Config->Pulse;
  38177. 80104a4: 683b ldr r3, [r7, #0]
  38178. 80104a6: 685a ldr r2, [r3, #4]
  38179. 80104a8: 687b ldr r3, [r7, #4]
  38180. 80104aa: 65da str r2, [r3, #92] @ 0x5c
  38181. /* Write to TIMx CCER */
  38182. TIMx->CCER = tmpccer;
  38183. 80104ac: 687b ldr r3, [r7, #4]
  38184. 80104ae: 693a ldr r2, [r7, #16]
  38185. 80104b0: 621a str r2, [r3, #32]
  38186. }
  38187. 80104b2: bf00 nop
  38188. 80104b4: 371c adds r7, #28
  38189. 80104b6: 46bd mov sp, r7
  38190. 80104b8: f85d 7b04 ldr.w r7, [sp], #4
  38191. 80104bc: 4770 bx lr
  38192. 80104be: bf00 nop
  38193. 80104c0: feff8fff .word 0xfeff8fff
  38194. 80104c4: 40010000 .word 0x40010000
  38195. 80104c8: 40010400 .word 0x40010400
  38196. 80104cc: 40014000 .word 0x40014000
  38197. 80104d0: 40014400 .word 0x40014400
  38198. 80104d4: 40014800 .word 0x40014800
  38199. 080104d8 <TIM_TI1_SetConfig>:
  38200. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  38201. * protected against un-initialized filter and polarity values.
  38202. */
  38203. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38204. uint32_t TIM_ICFilter)
  38205. {
  38206. 80104d8: b480 push {r7}
  38207. 80104da: b087 sub sp, #28
  38208. 80104dc: af00 add r7, sp, #0
  38209. 80104de: 60f8 str r0, [r7, #12]
  38210. 80104e0: 60b9 str r1, [r7, #8]
  38211. 80104e2: 607a str r2, [r7, #4]
  38212. 80104e4: 603b str r3, [r7, #0]
  38213. uint32_t tmpccmr1;
  38214. uint32_t tmpccer;
  38215. /* Disable the Channel 1: Reset the CC1E Bit */
  38216. tmpccer = TIMx->CCER;
  38217. 80104e6: 68fb ldr r3, [r7, #12]
  38218. 80104e8: 6a1b ldr r3, [r3, #32]
  38219. 80104ea: 613b str r3, [r7, #16]
  38220. TIMx->CCER &= ~TIM_CCER_CC1E;
  38221. 80104ec: 68fb ldr r3, [r7, #12]
  38222. 80104ee: 6a1b ldr r3, [r3, #32]
  38223. 80104f0: f023 0201 bic.w r2, r3, #1
  38224. 80104f4: 68fb ldr r3, [r7, #12]
  38225. 80104f6: 621a str r2, [r3, #32]
  38226. tmpccmr1 = TIMx->CCMR1;
  38227. 80104f8: 68fb ldr r3, [r7, #12]
  38228. 80104fa: 699b ldr r3, [r3, #24]
  38229. 80104fc: 617b str r3, [r7, #20]
  38230. /* Select the Input */
  38231. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  38232. 80104fe: 68fb ldr r3, [r7, #12]
  38233. 8010500: 4a28 ldr r2, [pc, #160] @ (80105a4 <TIM_TI1_SetConfig+0xcc>)
  38234. 8010502: 4293 cmp r3, r2
  38235. 8010504: d01b beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38236. 8010506: 68fb ldr r3, [r7, #12]
  38237. 8010508: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38238. 801050c: d017 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38239. 801050e: 68fb ldr r3, [r7, #12]
  38240. 8010510: 4a25 ldr r2, [pc, #148] @ (80105a8 <TIM_TI1_SetConfig+0xd0>)
  38241. 8010512: 4293 cmp r3, r2
  38242. 8010514: d013 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38243. 8010516: 68fb ldr r3, [r7, #12]
  38244. 8010518: 4a24 ldr r2, [pc, #144] @ (80105ac <TIM_TI1_SetConfig+0xd4>)
  38245. 801051a: 4293 cmp r3, r2
  38246. 801051c: d00f beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38247. 801051e: 68fb ldr r3, [r7, #12]
  38248. 8010520: 4a23 ldr r2, [pc, #140] @ (80105b0 <TIM_TI1_SetConfig+0xd8>)
  38249. 8010522: 4293 cmp r3, r2
  38250. 8010524: d00b beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38251. 8010526: 68fb ldr r3, [r7, #12]
  38252. 8010528: 4a22 ldr r2, [pc, #136] @ (80105b4 <TIM_TI1_SetConfig+0xdc>)
  38253. 801052a: 4293 cmp r3, r2
  38254. 801052c: d007 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38255. 801052e: 68fb ldr r3, [r7, #12]
  38256. 8010530: 4a21 ldr r2, [pc, #132] @ (80105b8 <TIM_TI1_SetConfig+0xe0>)
  38257. 8010532: 4293 cmp r3, r2
  38258. 8010534: d003 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38259. 8010536: 68fb ldr r3, [r7, #12]
  38260. 8010538: 4a20 ldr r2, [pc, #128] @ (80105bc <TIM_TI1_SetConfig+0xe4>)
  38261. 801053a: 4293 cmp r3, r2
  38262. 801053c: d101 bne.n 8010542 <TIM_TI1_SetConfig+0x6a>
  38263. 801053e: 2301 movs r3, #1
  38264. 8010540: e000 b.n 8010544 <TIM_TI1_SetConfig+0x6c>
  38265. 8010542: 2300 movs r3, #0
  38266. 8010544: 2b00 cmp r3, #0
  38267. 8010546: d008 beq.n 801055a <TIM_TI1_SetConfig+0x82>
  38268. {
  38269. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  38270. 8010548: 697b ldr r3, [r7, #20]
  38271. 801054a: f023 0303 bic.w r3, r3, #3
  38272. 801054e: 617b str r3, [r7, #20]
  38273. tmpccmr1 |= TIM_ICSelection;
  38274. 8010550: 697a ldr r2, [r7, #20]
  38275. 8010552: 687b ldr r3, [r7, #4]
  38276. 8010554: 4313 orrs r3, r2
  38277. 8010556: 617b str r3, [r7, #20]
  38278. 8010558: e003 b.n 8010562 <TIM_TI1_SetConfig+0x8a>
  38279. }
  38280. else
  38281. {
  38282. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  38283. 801055a: 697b ldr r3, [r7, #20]
  38284. 801055c: f043 0301 orr.w r3, r3, #1
  38285. 8010560: 617b str r3, [r7, #20]
  38286. }
  38287. /* Set the filter */
  38288. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  38289. 8010562: 697b ldr r3, [r7, #20]
  38290. 8010564: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38291. 8010568: 617b str r3, [r7, #20]
  38292. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  38293. 801056a: 683b ldr r3, [r7, #0]
  38294. 801056c: 011b lsls r3, r3, #4
  38295. 801056e: b2db uxtb r3, r3
  38296. 8010570: 697a ldr r2, [r7, #20]
  38297. 8010572: 4313 orrs r3, r2
  38298. 8010574: 617b str r3, [r7, #20]
  38299. /* Select the Polarity and set the CC1E Bit */
  38300. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  38301. 8010576: 693b ldr r3, [r7, #16]
  38302. 8010578: f023 030a bic.w r3, r3, #10
  38303. 801057c: 613b str r3, [r7, #16]
  38304. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  38305. 801057e: 68bb ldr r3, [r7, #8]
  38306. 8010580: f003 030a and.w r3, r3, #10
  38307. 8010584: 693a ldr r2, [r7, #16]
  38308. 8010586: 4313 orrs r3, r2
  38309. 8010588: 613b str r3, [r7, #16]
  38310. /* Write to TIMx CCMR1 and CCER registers */
  38311. TIMx->CCMR1 = tmpccmr1;
  38312. 801058a: 68fb ldr r3, [r7, #12]
  38313. 801058c: 697a ldr r2, [r7, #20]
  38314. 801058e: 619a str r2, [r3, #24]
  38315. TIMx->CCER = tmpccer;
  38316. 8010590: 68fb ldr r3, [r7, #12]
  38317. 8010592: 693a ldr r2, [r7, #16]
  38318. 8010594: 621a str r2, [r3, #32]
  38319. }
  38320. 8010596: bf00 nop
  38321. 8010598: 371c adds r7, #28
  38322. 801059a: 46bd mov sp, r7
  38323. 801059c: f85d 7b04 ldr.w r7, [sp], #4
  38324. 80105a0: 4770 bx lr
  38325. 80105a2: bf00 nop
  38326. 80105a4: 40010000 .word 0x40010000
  38327. 80105a8: 40000400 .word 0x40000400
  38328. 80105ac: 40000800 .word 0x40000800
  38329. 80105b0: 40000c00 .word 0x40000c00
  38330. 80105b4: 40010400 .word 0x40010400
  38331. 80105b8: 40001800 .word 0x40001800
  38332. 80105bc: 40014000 .word 0x40014000
  38333. 080105c0 <TIM_TI1_ConfigInputStage>:
  38334. * @param TIM_ICFilter Specifies the Input Capture Filter.
  38335. * This parameter must be a value between 0x00 and 0x0F.
  38336. * @retval None
  38337. */
  38338. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  38339. {
  38340. 80105c0: b480 push {r7}
  38341. 80105c2: b087 sub sp, #28
  38342. 80105c4: af00 add r7, sp, #0
  38343. 80105c6: 60f8 str r0, [r7, #12]
  38344. 80105c8: 60b9 str r1, [r7, #8]
  38345. 80105ca: 607a str r2, [r7, #4]
  38346. uint32_t tmpccmr1;
  38347. uint32_t tmpccer;
  38348. /* Disable the Channel 1: Reset the CC1E Bit */
  38349. tmpccer = TIMx->CCER;
  38350. 80105cc: 68fb ldr r3, [r7, #12]
  38351. 80105ce: 6a1b ldr r3, [r3, #32]
  38352. 80105d0: 617b str r3, [r7, #20]
  38353. TIMx->CCER &= ~TIM_CCER_CC1E;
  38354. 80105d2: 68fb ldr r3, [r7, #12]
  38355. 80105d4: 6a1b ldr r3, [r3, #32]
  38356. 80105d6: f023 0201 bic.w r2, r3, #1
  38357. 80105da: 68fb ldr r3, [r7, #12]
  38358. 80105dc: 621a str r2, [r3, #32]
  38359. tmpccmr1 = TIMx->CCMR1;
  38360. 80105de: 68fb ldr r3, [r7, #12]
  38361. 80105e0: 699b ldr r3, [r3, #24]
  38362. 80105e2: 613b str r3, [r7, #16]
  38363. /* Set the filter */
  38364. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  38365. 80105e4: 693b ldr r3, [r7, #16]
  38366. 80105e6: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38367. 80105ea: 613b str r3, [r7, #16]
  38368. tmpccmr1 |= (TIM_ICFilter << 4U);
  38369. 80105ec: 687b ldr r3, [r7, #4]
  38370. 80105ee: 011b lsls r3, r3, #4
  38371. 80105f0: 693a ldr r2, [r7, #16]
  38372. 80105f2: 4313 orrs r3, r2
  38373. 80105f4: 613b str r3, [r7, #16]
  38374. /* Select the Polarity and set the CC1E Bit */
  38375. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  38376. 80105f6: 697b ldr r3, [r7, #20]
  38377. 80105f8: f023 030a bic.w r3, r3, #10
  38378. 80105fc: 617b str r3, [r7, #20]
  38379. tmpccer |= TIM_ICPolarity;
  38380. 80105fe: 697a ldr r2, [r7, #20]
  38381. 8010600: 68bb ldr r3, [r7, #8]
  38382. 8010602: 4313 orrs r3, r2
  38383. 8010604: 617b str r3, [r7, #20]
  38384. /* Write to TIMx CCMR1 and CCER registers */
  38385. TIMx->CCMR1 = tmpccmr1;
  38386. 8010606: 68fb ldr r3, [r7, #12]
  38387. 8010608: 693a ldr r2, [r7, #16]
  38388. 801060a: 619a str r2, [r3, #24]
  38389. TIMx->CCER = tmpccer;
  38390. 801060c: 68fb ldr r3, [r7, #12]
  38391. 801060e: 697a ldr r2, [r7, #20]
  38392. 8010610: 621a str r2, [r3, #32]
  38393. }
  38394. 8010612: bf00 nop
  38395. 8010614: 371c adds r7, #28
  38396. 8010616: 46bd mov sp, r7
  38397. 8010618: f85d 7b04 ldr.w r7, [sp], #4
  38398. 801061c: 4770 bx lr
  38399. 0801061e <TIM_TI2_SetConfig>:
  38400. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  38401. * protected against un-initialized filter and polarity values.
  38402. */
  38403. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38404. uint32_t TIM_ICFilter)
  38405. {
  38406. 801061e: b480 push {r7}
  38407. 8010620: b087 sub sp, #28
  38408. 8010622: af00 add r7, sp, #0
  38409. 8010624: 60f8 str r0, [r7, #12]
  38410. 8010626: 60b9 str r1, [r7, #8]
  38411. 8010628: 607a str r2, [r7, #4]
  38412. 801062a: 603b str r3, [r7, #0]
  38413. uint32_t tmpccmr1;
  38414. uint32_t tmpccer;
  38415. /* Disable the Channel 2: Reset the CC2E Bit */
  38416. tmpccer = TIMx->CCER;
  38417. 801062c: 68fb ldr r3, [r7, #12]
  38418. 801062e: 6a1b ldr r3, [r3, #32]
  38419. 8010630: 617b str r3, [r7, #20]
  38420. TIMx->CCER &= ~TIM_CCER_CC2E;
  38421. 8010632: 68fb ldr r3, [r7, #12]
  38422. 8010634: 6a1b ldr r3, [r3, #32]
  38423. 8010636: f023 0210 bic.w r2, r3, #16
  38424. 801063a: 68fb ldr r3, [r7, #12]
  38425. 801063c: 621a str r2, [r3, #32]
  38426. tmpccmr1 = TIMx->CCMR1;
  38427. 801063e: 68fb ldr r3, [r7, #12]
  38428. 8010640: 699b ldr r3, [r3, #24]
  38429. 8010642: 613b str r3, [r7, #16]
  38430. /* Select the Input */
  38431. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  38432. 8010644: 693b ldr r3, [r7, #16]
  38433. 8010646: f423 7340 bic.w r3, r3, #768 @ 0x300
  38434. 801064a: 613b str r3, [r7, #16]
  38435. tmpccmr1 |= (TIM_ICSelection << 8U);
  38436. 801064c: 687b ldr r3, [r7, #4]
  38437. 801064e: 021b lsls r3, r3, #8
  38438. 8010650: 693a ldr r2, [r7, #16]
  38439. 8010652: 4313 orrs r3, r2
  38440. 8010654: 613b str r3, [r7, #16]
  38441. /* Set the filter */
  38442. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  38443. 8010656: 693b ldr r3, [r7, #16]
  38444. 8010658: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38445. 801065c: 613b str r3, [r7, #16]
  38446. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  38447. 801065e: 683b ldr r3, [r7, #0]
  38448. 8010660: 031b lsls r3, r3, #12
  38449. 8010662: b29b uxth r3, r3
  38450. 8010664: 693a ldr r2, [r7, #16]
  38451. 8010666: 4313 orrs r3, r2
  38452. 8010668: 613b str r3, [r7, #16]
  38453. /* Select the Polarity and set the CC2E Bit */
  38454. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  38455. 801066a: 697b ldr r3, [r7, #20]
  38456. 801066c: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  38457. 8010670: 617b str r3, [r7, #20]
  38458. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  38459. 8010672: 68bb ldr r3, [r7, #8]
  38460. 8010674: 011b lsls r3, r3, #4
  38461. 8010676: f003 03a0 and.w r3, r3, #160 @ 0xa0
  38462. 801067a: 697a ldr r2, [r7, #20]
  38463. 801067c: 4313 orrs r3, r2
  38464. 801067e: 617b str r3, [r7, #20]
  38465. /* Write to TIMx CCMR1 and CCER registers */
  38466. TIMx->CCMR1 = tmpccmr1 ;
  38467. 8010680: 68fb ldr r3, [r7, #12]
  38468. 8010682: 693a ldr r2, [r7, #16]
  38469. 8010684: 619a str r2, [r3, #24]
  38470. TIMx->CCER = tmpccer;
  38471. 8010686: 68fb ldr r3, [r7, #12]
  38472. 8010688: 697a ldr r2, [r7, #20]
  38473. 801068a: 621a str r2, [r3, #32]
  38474. }
  38475. 801068c: bf00 nop
  38476. 801068e: 371c adds r7, #28
  38477. 8010690: 46bd mov sp, r7
  38478. 8010692: f85d 7b04 ldr.w r7, [sp], #4
  38479. 8010696: 4770 bx lr
  38480. 08010698 <TIM_TI2_ConfigInputStage>:
  38481. * @param TIM_ICFilter Specifies the Input Capture Filter.
  38482. * This parameter must be a value between 0x00 and 0x0F.
  38483. * @retval None
  38484. */
  38485. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  38486. {
  38487. 8010698: b480 push {r7}
  38488. 801069a: b087 sub sp, #28
  38489. 801069c: af00 add r7, sp, #0
  38490. 801069e: 60f8 str r0, [r7, #12]
  38491. 80106a0: 60b9 str r1, [r7, #8]
  38492. 80106a2: 607a str r2, [r7, #4]
  38493. uint32_t tmpccmr1;
  38494. uint32_t tmpccer;
  38495. /* Disable the Channel 2: Reset the CC2E Bit */
  38496. tmpccer = TIMx->CCER;
  38497. 80106a4: 68fb ldr r3, [r7, #12]
  38498. 80106a6: 6a1b ldr r3, [r3, #32]
  38499. 80106a8: 617b str r3, [r7, #20]
  38500. TIMx->CCER &= ~TIM_CCER_CC2E;
  38501. 80106aa: 68fb ldr r3, [r7, #12]
  38502. 80106ac: 6a1b ldr r3, [r3, #32]
  38503. 80106ae: f023 0210 bic.w r2, r3, #16
  38504. 80106b2: 68fb ldr r3, [r7, #12]
  38505. 80106b4: 621a str r2, [r3, #32]
  38506. tmpccmr1 = TIMx->CCMR1;
  38507. 80106b6: 68fb ldr r3, [r7, #12]
  38508. 80106b8: 699b ldr r3, [r3, #24]
  38509. 80106ba: 613b str r3, [r7, #16]
  38510. /* Set the filter */
  38511. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  38512. 80106bc: 693b ldr r3, [r7, #16]
  38513. 80106be: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38514. 80106c2: 613b str r3, [r7, #16]
  38515. tmpccmr1 |= (TIM_ICFilter << 12U);
  38516. 80106c4: 687b ldr r3, [r7, #4]
  38517. 80106c6: 031b lsls r3, r3, #12
  38518. 80106c8: 693a ldr r2, [r7, #16]
  38519. 80106ca: 4313 orrs r3, r2
  38520. 80106cc: 613b str r3, [r7, #16]
  38521. /* Select the Polarity and set the CC2E Bit */
  38522. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  38523. 80106ce: 697b ldr r3, [r7, #20]
  38524. 80106d0: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  38525. 80106d4: 617b str r3, [r7, #20]
  38526. tmpccer |= (TIM_ICPolarity << 4U);
  38527. 80106d6: 68bb ldr r3, [r7, #8]
  38528. 80106d8: 011b lsls r3, r3, #4
  38529. 80106da: 697a ldr r2, [r7, #20]
  38530. 80106dc: 4313 orrs r3, r2
  38531. 80106de: 617b str r3, [r7, #20]
  38532. /* Write to TIMx CCMR1 and CCER registers */
  38533. TIMx->CCMR1 = tmpccmr1 ;
  38534. 80106e0: 68fb ldr r3, [r7, #12]
  38535. 80106e2: 693a ldr r2, [r7, #16]
  38536. 80106e4: 619a str r2, [r3, #24]
  38537. TIMx->CCER = tmpccer;
  38538. 80106e6: 68fb ldr r3, [r7, #12]
  38539. 80106e8: 697a ldr r2, [r7, #20]
  38540. 80106ea: 621a str r2, [r3, #32]
  38541. }
  38542. 80106ec: bf00 nop
  38543. 80106ee: 371c adds r7, #28
  38544. 80106f0: 46bd mov sp, r7
  38545. 80106f2: f85d 7b04 ldr.w r7, [sp], #4
  38546. 80106f6: 4770 bx lr
  38547. 080106f8 <TIM_TI3_SetConfig>:
  38548. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  38549. * protected against un-initialized filter and polarity values.
  38550. */
  38551. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38552. uint32_t TIM_ICFilter)
  38553. {
  38554. 80106f8: b480 push {r7}
  38555. 80106fa: b087 sub sp, #28
  38556. 80106fc: af00 add r7, sp, #0
  38557. 80106fe: 60f8 str r0, [r7, #12]
  38558. 8010700: 60b9 str r1, [r7, #8]
  38559. 8010702: 607a str r2, [r7, #4]
  38560. 8010704: 603b str r3, [r7, #0]
  38561. uint32_t tmpccmr2;
  38562. uint32_t tmpccer;
  38563. /* Disable the Channel 3: Reset the CC3E Bit */
  38564. tmpccer = TIMx->CCER;
  38565. 8010706: 68fb ldr r3, [r7, #12]
  38566. 8010708: 6a1b ldr r3, [r3, #32]
  38567. 801070a: 617b str r3, [r7, #20]
  38568. TIMx->CCER &= ~TIM_CCER_CC3E;
  38569. 801070c: 68fb ldr r3, [r7, #12]
  38570. 801070e: 6a1b ldr r3, [r3, #32]
  38571. 8010710: f423 7280 bic.w r2, r3, #256 @ 0x100
  38572. 8010714: 68fb ldr r3, [r7, #12]
  38573. 8010716: 621a str r2, [r3, #32]
  38574. tmpccmr2 = TIMx->CCMR2;
  38575. 8010718: 68fb ldr r3, [r7, #12]
  38576. 801071a: 69db ldr r3, [r3, #28]
  38577. 801071c: 613b str r3, [r7, #16]
  38578. /* Select the Input */
  38579. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  38580. 801071e: 693b ldr r3, [r7, #16]
  38581. 8010720: f023 0303 bic.w r3, r3, #3
  38582. 8010724: 613b str r3, [r7, #16]
  38583. tmpccmr2 |= TIM_ICSelection;
  38584. 8010726: 693a ldr r2, [r7, #16]
  38585. 8010728: 687b ldr r3, [r7, #4]
  38586. 801072a: 4313 orrs r3, r2
  38587. 801072c: 613b str r3, [r7, #16]
  38588. /* Set the filter */
  38589. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  38590. 801072e: 693b ldr r3, [r7, #16]
  38591. 8010730: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38592. 8010734: 613b str r3, [r7, #16]
  38593. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  38594. 8010736: 683b ldr r3, [r7, #0]
  38595. 8010738: 011b lsls r3, r3, #4
  38596. 801073a: b2db uxtb r3, r3
  38597. 801073c: 693a ldr r2, [r7, #16]
  38598. 801073e: 4313 orrs r3, r2
  38599. 8010740: 613b str r3, [r7, #16]
  38600. /* Select the Polarity and set the CC3E Bit */
  38601. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  38602. 8010742: 697b ldr r3, [r7, #20]
  38603. 8010744: f423 6320 bic.w r3, r3, #2560 @ 0xa00
  38604. 8010748: 617b str r3, [r7, #20]
  38605. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  38606. 801074a: 68bb ldr r3, [r7, #8]
  38607. 801074c: 021b lsls r3, r3, #8
  38608. 801074e: f403 6320 and.w r3, r3, #2560 @ 0xa00
  38609. 8010752: 697a ldr r2, [r7, #20]
  38610. 8010754: 4313 orrs r3, r2
  38611. 8010756: 617b str r3, [r7, #20]
  38612. /* Write to TIMx CCMR2 and CCER registers */
  38613. TIMx->CCMR2 = tmpccmr2;
  38614. 8010758: 68fb ldr r3, [r7, #12]
  38615. 801075a: 693a ldr r2, [r7, #16]
  38616. 801075c: 61da str r2, [r3, #28]
  38617. TIMx->CCER = tmpccer;
  38618. 801075e: 68fb ldr r3, [r7, #12]
  38619. 8010760: 697a ldr r2, [r7, #20]
  38620. 8010762: 621a str r2, [r3, #32]
  38621. }
  38622. 8010764: bf00 nop
  38623. 8010766: 371c adds r7, #28
  38624. 8010768: 46bd mov sp, r7
  38625. 801076a: f85d 7b04 ldr.w r7, [sp], #4
  38626. 801076e: 4770 bx lr
  38627. 08010770 <TIM_TI4_SetConfig>:
  38628. * protected against un-initialized filter and polarity values.
  38629. * @retval None
  38630. */
  38631. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38632. uint32_t TIM_ICFilter)
  38633. {
  38634. 8010770: b480 push {r7}
  38635. 8010772: b087 sub sp, #28
  38636. 8010774: af00 add r7, sp, #0
  38637. 8010776: 60f8 str r0, [r7, #12]
  38638. 8010778: 60b9 str r1, [r7, #8]
  38639. 801077a: 607a str r2, [r7, #4]
  38640. 801077c: 603b str r3, [r7, #0]
  38641. uint32_t tmpccmr2;
  38642. uint32_t tmpccer;
  38643. /* Disable the Channel 4: Reset the CC4E Bit */
  38644. tmpccer = TIMx->CCER;
  38645. 801077e: 68fb ldr r3, [r7, #12]
  38646. 8010780: 6a1b ldr r3, [r3, #32]
  38647. 8010782: 617b str r3, [r7, #20]
  38648. TIMx->CCER &= ~TIM_CCER_CC4E;
  38649. 8010784: 68fb ldr r3, [r7, #12]
  38650. 8010786: 6a1b ldr r3, [r3, #32]
  38651. 8010788: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38652. 801078c: 68fb ldr r3, [r7, #12]
  38653. 801078e: 621a str r2, [r3, #32]
  38654. tmpccmr2 = TIMx->CCMR2;
  38655. 8010790: 68fb ldr r3, [r7, #12]
  38656. 8010792: 69db ldr r3, [r3, #28]
  38657. 8010794: 613b str r3, [r7, #16]
  38658. /* Select the Input */
  38659. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  38660. 8010796: 693b ldr r3, [r7, #16]
  38661. 8010798: f423 7340 bic.w r3, r3, #768 @ 0x300
  38662. 801079c: 613b str r3, [r7, #16]
  38663. tmpccmr2 |= (TIM_ICSelection << 8U);
  38664. 801079e: 687b ldr r3, [r7, #4]
  38665. 80107a0: 021b lsls r3, r3, #8
  38666. 80107a2: 693a ldr r2, [r7, #16]
  38667. 80107a4: 4313 orrs r3, r2
  38668. 80107a6: 613b str r3, [r7, #16]
  38669. /* Set the filter */
  38670. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  38671. 80107a8: 693b ldr r3, [r7, #16]
  38672. 80107aa: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38673. 80107ae: 613b str r3, [r7, #16]
  38674. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  38675. 80107b0: 683b ldr r3, [r7, #0]
  38676. 80107b2: 031b lsls r3, r3, #12
  38677. 80107b4: b29b uxth r3, r3
  38678. 80107b6: 693a ldr r2, [r7, #16]
  38679. 80107b8: 4313 orrs r3, r2
  38680. 80107ba: 613b str r3, [r7, #16]
  38681. /* Select the Polarity and set the CC4E Bit */
  38682. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  38683. 80107bc: 697b ldr r3, [r7, #20]
  38684. 80107be: f423 4320 bic.w r3, r3, #40960 @ 0xa000
  38685. 80107c2: 617b str r3, [r7, #20]
  38686. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  38687. 80107c4: 68bb ldr r3, [r7, #8]
  38688. 80107c6: 031b lsls r3, r3, #12
  38689. 80107c8: f403 4320 and.w r3, r3, #40960 @ 0xa000
  38690. 80107cc: 697a ldr r2, [r7, #20]
  38691. 80107ce: 4313 orrs r3, r2
  38692. 80107d0: 617b str r3, [r7, #20]
  38693. /* Write to TIMx CCMR2 and CCER registers */
  38694. TIMx->CCMR2 = tmpccmr2;
  38695. 80107d2: 68fb ldr r3, [r7, #12]
  38696. 80107d4: 693a ldr r2, [r7, #16]
  38697. 80107d6: 61da str r2, [r3, #28]
  38698. TIMx->CCER = tmpccer ;
  38699. 80107d8: 68fb ldr r3, [r7, #12]
  38700. 80107da: 697a ldr r2, [r7, #20]
  38701. 80107dc: 621a str r2, [r3, #32]
  38702. }
  38703. 80107de: bf00 nop
  38704. 80107e0: 371c adds r7, #28
  38705. 80107e2: 46bd mov sp, r7
  38706. 80107e4: f85d 7b04 ldr.w r7, [sp], #4
  38707. 80107e8: 4770 bx lr
  38708. ...
  38709. 080107ec <TIM_ITRx_SetConfig>:
  38710. * (*) Value not defined in all devices.
  38711. *
  38712. * @retval None
  38713. */
  38714. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  38715. {
  38716. 80107ec: b480 push {r7}
  38717. 80107ee: b085 sub sp, #20
  38718. 80107f0: af00 add r7, sp, #0
  38719. 80107f2: 6078 str r0, [r7, #4]
  38720. 80107f4: 6039 str r1, [r7, #0]
  38721. uint32_t tmpsmcr;
  38722. /* Get the TIMx SMCR register value */
  38723. tmpsmcr = TIMx->SMCR;
  38724. 80107f6: 687b ldr r3, [r7, #4]
  38725. 80107f8: 689b ldr r3, [r3, #8]
  38726. 80107fa: 60fb str r3, [r7, #12]
  38727. /* Reset the TS Bits */
  38728. tmpsmcr &= ~TIM_SMCR_TS;
  38729. 80107fc: 68fa ldr r2, [r7, #12]
  38730. 80107fe: 4b09 ldr r3, [pc, #36] @ (8010824 <TIM_ITRx_SetConfig+0x38>)
  38731. 8010800: 4013 ands r3, r2
  38732. 8010802: 60fb str r3, [r7, #12]
  38733. /* Set the Input Trigger source and the slave mode*/
  38734. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  38735. 8010804: 683a ldr r2, [r7, #0]
  38736. 8010806: 68fb ldr r3, [r7, #12]
  38737. 8010808: 4313 orrs r3, r2
  38738. 801080a: f043 0307 orr.w r3, r3, #7
  38739. 801080e: 60fb str r3, [r7, #12]
  38740. /* Write to TIMx SMCR */
  38741. TIMx->SMCR = tmpsmcr;
  38742. 8010810: 687b ldr r3, [r7, #4]
  38743. 8010812: 68fa ldr r2, [r7, #12]
  38744. 8010814: 609a str r2, [r3, #8]
  38745. }
  38746. 8010816: bf00 nop
  38747. 8010818: 3714 adds r7, #20
  38748. 801081a: 46bd mov sp, r7
  38749. 801081c: f85d 7b04 ldr.w r7, [sp], #4
  38750. 8010820: 4770 bx lr
  38751. 8010822: bf00 nop
  38752. 8010824: ffcfff8f .word 0xffcfff8f
  38753. 08010828 <TIM_ETR_SetConfig>:
  38754. * This parameter must be a value between 0x00 and 0x0F
  38755. * @retval None
  38756. */
  38757. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  38758. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  38759. {
  38760. 8010828: b480 push {r7}
  38761. 801082a: b087 sub sp, #28
  38762. 801082c: af00 add r7, sp, #0
  38763. 801082e: 60f8 str r0, [r7, #12]
  38764. 8010830: 60b9 str r1, [r7, #8]
  38765. 8010832: 607a str r2, [r7, #4]
  38766. 8010834: 603b str r3, [r7, #0]
  38767. uint32_t tmpsmcr;
  38768. tmpsmcr = TIMx->SMCR;
  38769. 8010836: 68fb ldr r3, [r7, #12]
  38770. 8010838: 689b ldr r3, [r3, #8]
  38771. 801083a: 617b str r3, [r7, #20]
  38772. /* Reset the ETR Bits */
  38773. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  38774. 801083c: 697b ldr r3, [r7, #20]
  38775. 801083e: f423 437f bic.w r3, r3, #65280 @ 0xff00
  38776. 8010842: 617b str r3, [r7, #20]
  38777. /* Set the Prescaler, the Filter value and the Polarity */
  38778. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  38779. 8010844: 683b ldr r3, [r7, #0]
  38780. 8010846: 021a lsls r2, r3, #8
  38781. 8010848: 687b ldr r3, [r7, #4]
  38782. 801084a: 431a orrs r2, r3
  38783. 801084c: 68bb ldr r3, [r7, #8]
  38784. 801084e: 4313 orrs r3, r2
  38785. 8010850: 697a ldr r2, [r7, #20]
  38786. 8010852: 4313 orrs r3, r2
  38787. 8010854: 617b str r3, [r7, #20]
  38788. /* Write to TIMx SMCR */
  38789. TIMx->SMCR = tmpsmcr;
  38790. 8010856: 68fb ldr r3, [r7, #12]
  38791. 8010858: 697a ldr r2, [r7, #20]
  38792. 801085a: 609a str r2, [r3, #8]
  38793. }
  38794. 801085c: bf00 nop
  38795. 801085e: 371c adds r7, #28
  38796. 8010860: 46bd mov sp, r7
  38797. 8010862: f85d 7b04 ldr.w r7, [sp], #4
  38798. 8010866: 4770 bx lr
  38799. 08010868 <TIM_CCxChannelCmd>:
  38800. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  38801. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  38802. * @retval None
  38803. */
  38804. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  38805. {
  38806. 8010868: b480 push {r7}
  38807. 801086a: b087 sub sp, #28
  38808. 801086c: af00 add r7, sp, #0
  38809. 801086e: 60f8 str r0, [r7, #12]
  38810. 8010870: 60b9 str r1, [r7, #8]
  38811. 8010872: 607a str r2, [r7, #4]
  38812. /* Check the parameters */
  38813. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  38814. assert_param(IS_TIM_CHANNELS(Channel));
  38815. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  38816. 8010874: 68bb ldr r3, [r7, #8]
  38817. 8010876: f003 031f and.w r3, r3, #31
  38818. 801087a: 2201 movs r2, #1
  38819. 801087c: fa02 f303 lsl.w r3, r2, r3
  38820. 8010880: 617b str r3, [r7, #20]
  38821. /* Reset the CCxE Bit */
  38822. TIMx->CCER &= ~tmp;
  38823. 8010882: 68fb ldr r3, [r7, #12]
  38824. 8010884: 6a1a ldr r2, [r3, #32]
  38825. 8010886: 697b ldr r3, [r7, #20]
  38826. 8010888: 43db mvns r3, r3
  38827. 801088a: 401a ands r2, r3
  38828. 801088c: 68fb ldr r3, [r7, #12]
  38829. 801088e: 621a str r2, [r3, #32]
  38830. /* Set or reset the CCxE Bit */
  38831. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  38832. 8010890: 68fb ldr r3, [r7, #12]
  38833. 8010892: 6a1a ldr r2, [r3, #32]
  38834. 8010894: 68bb ldr r3, [r7, #8]
  38835. 8010896: f003 031f and.w r3, r3, #31
  38836. 801089a: 6879 ldr r1, [r7, #4]
  38837. 801089c: fa01 f303 lsl.w r3, r1, r3
  38838. 80108a0: 431a orrs r2, r3
  38839. 80108a2: 68fb ldr r3, [r7, #12]
  38840. 80108a4: 621a str r2, [r3, #32]
  38841. }
  38842. 80108a6: bf00 nop
  38843. 80108a8: 371c adds r7, #28
  38844. 80108aa: 46bd mov sp, r7
  38845. 80108ac: f85d 7b04 ldr.w r7, [sp], #4
  38846. 80108b0: 4770 bx lr
  38847. ...
  38848. 080108b4 <HAL_TIMEx_MasterConfigSynchronization>:
  38849. * mode.
  38850. * @retval HAL status
  38851. */
  38852. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  38853. const TIM_MasterConfigTypeDef *sMasterConfig)
  38854. {
  38855. 80108b4: b480 push {r7}
  38856. 80108b6: b085 sub sp, #20
  38857. 80108b8: af00 add r7, sp, #0
  38858. 80108ba: 6078 str r0, [r7, #4]
  38859. 80108bc: 6039 str r1, [r7, #0]
  38860. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  38861. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  38862. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  38863. /* Check input state */
  38864. __HAL_LOCK(htim);
  38865. 80108be: 687b ldr r3, [r7, #4]
  38866. 80108c0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  38867. 80108c4: 2b01 cmp r3, #1
  38868. 80108c6: d101 bne.n 80108cc <HAL_TIMEx_MasterConfigSynchronization+0x18>
  38869. 80108c8: 2302 movs r3, #2
  38870. 80108ca: e06d b.n 80109a8 <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  38871. 80108cc: 687b ldr r3, [r7, #4]
  38872. 80108ce: 2201 movs r2, #1
  38873. 80108d0: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38874. /* Change the handler state */
  38875. htim->State = HAL_TIM_STATE_BUSY;
  38876. 80108d4: 687b ldr r3, [r7, #4]
  38877. 80108d6: 2202 movs r2, #2
  38878. 80108d8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  38879. /* Get the TIMx CR2 register value */
  38880. tmpcr2 = htim->Instance->CR2;
  38881. 80108dc: 687b ldr r3, [r7, #4]
  38882. 80108de: 681b ldr r3, [r3, #0]
  38883. 80108e0: 685b ldr r3, [r3, #4]
  38884. 80108e2: 60fb str r3, [r7, #12]
  38885. /* Get the TIMx SMCR register value */
  38886. tmpsmcr = htim->Instance->SMCR;
  38887. 80108e4: 687b ldr r3, [r7, #4]
  38888. 80108e6: 681b ldr r3, [r3, #0]
  38889. 80108e8: 689b ldr r3, [r3, #8]
  38890. 80108ea: 60bb str r3, [r7, #8]
  38891. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  38892. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  38893. 80108ec: 687b ldr r3, [r7, #4]
  38894. 80108ee: 681b ldr r3, [r3, #0]
  38895. 80108f0: 4a30 ldr r2, [pc, #192] @ (80109b4 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38896. 80108f2: 4293 cmp r3, r2
  38897. 80108f4: d004 beq.n 8010900 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  38898. 80108f6: 687b ldr r3, [r7, #4]
  38899. 80108f8: 681b ldr r3, [r3, #0]
  38900. 80108fa: 4a2f ldr r2, [pc, #188] @ (80109b8 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38901. 80108fc: 4293 cmp r3, r2
  38902. 80108fe: d108 bne.n 8010912 <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  38903. {
  38904. /* Check the parameters */
  38905. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  38906. /* Clear the MMS2 bits */
  38907. tmpcr2 &= ~TIM_CR2_MMS2;
  38908. 8010900: 68fb ldr r3, [r7, #12]
  38909. 8010902: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  38910. 8010906: 60fb str r3, [r7, #12]
  38911. /* Select the TRGO2 source*/
  38912. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  38913. 8010908: 683b ldr r3, [r7, #0]
  38914. 801090a: 685b ldr r3, [r3, #4]
  38915. 801090c: 68fa ldr r2, [r7, #12]
  38916. 801090e: 4313 orrs r3, r2
  38917. 8010910: 60fb str r3, [r7, #12]
  38918. }
  38919. /* Reset the MMS Bits */
  38920. tmpcr2 &= ~TIM_CR2_MMS;
  38921. 8010912: 68fb ldr r3, [r7, #12]
  38922. 8010914: f023 0370 bic.w r3, r3, #112 @ 0x70
  38923. 8010918: 60fb str r3, [r7, #12]
  38924. /* Select the TRGO source */
  38925. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  38926. 801091a: 683b ldr r3, [r7, #0]
  38927. 801091c: 681b ldr r3, [r3, #0]
  38928. 801091e: 68fa ldr r2, [r7, #12]
  38929. 8010920: 4313 orrs r3, r2
  38930. 8010922: 60fb str r3, [r7, #12]
  38931. /* Update TIMx CR2 */
  38932. htim->Instance->CR2 = tmpcr2;
  38933. 8010924: 687b ldr r3, [r7, #4]
  38934. 8010926: 681b ldr r3, [r3, #0]
  38935. 8010928: 68fa ldr r2, [r7, #12]
  38936. 801092a: 605a str r2, [r3, #4]
  38937. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  38938. 801092c: 687b ldr r3, [r7, #4]
  38939. 801092e: 681b ldr r3, [r3, #0]
  38940. 8010930: 4a20 ldr r2, [pc, #128] @ (80109b4 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38941. 8010932: 4293 cmp r3, r2
  38942. 8010934: d022 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38943. 8010936: 687b ldr r3, [r7, #4]
  38944. 8010938: 681b ldr r3, [r3, #0]
  38945. 801093a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38946. 801093e: d01d beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38947. 8010940: 687b ldr r3, [r7, #4]
  38948. 8010942: 681b ldr r3, [r3, #0]
  38949. 8010944: 4a1d ldr r2, [pc, #116] @ (80109bc <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  38950. 8010946: 4293 cmp r3, r2
  38951. 8010948: d018 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38952. 801094a: 687b ldr r3, [r7, #4]
  38953. 801094c: 681b ldr r3, [r3, #0]
  38954. 801094e: 4a1c ldr r2, [pc, #112] @ (80109c0 <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  38955. 8010950: 4293 cmp r3, r2
  38956. 8010952: d013 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38957. 8010954: 687b ldr r3, [r7, #4]
  38958. 8010956: 681b ldr r3, [r3, #0]
  38959. 8010958: 4a1a ldr r2, [pc, #104] @ (80109c4 <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  38960. 801095a: 4293 cmp r3, r2
  38961. 801095c: d00e beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38962. 801095e: 687b ldr r3, [r7, #4]
  38963. 8010960: 681b ldr r3, [r3, #0]
  38964. 8010962: 4a15 ldr r2, [pc, #84] @ (80109b8 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38965. 8010964: 4293 cmp r3, r2
  38966. 8010966: d009 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38967. 8010968: 687b ldr r3, [r7, #4]
  38968. 801096a: 681b ldr r3, [r3, #0]
  38969. 801096c: 4a16 ldr r2, [pc, #88] @ (80109c8 <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  38970. 801096e: 4293 cmp r3, r2
  38971. 8010970: d004 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38972. 8010972: 687b ldr r3, [r7, #4]
  38973. 8010974: 681b ldr r3, [r3, #0]
  38974. 8010976: 4a15 ldr r2, [pc, #84] @ (80109cc <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  38975. 8010978: 4293 cmp r3, r2
  38976. 801097a: d10c bne.n 8010996 <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  38977. {
  38978. /* Reset the MSM Bit */
  38979. tmpsmcr &= ~TIM_SMCR_MSM;
  38980. 801097c: 68bb ldr r3, [r7, #8]
  38981. 801097e: f023 0380 bic.w r3, r3, #128 @ 0x80
  38982. 8010982: 60bb str r3, [r7, #8]
  38983. /* Set master mode */
  38984. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  38985. 8010984: 683b ldr r3, [r7, #0]
  38986. 8010986: 689b ldr r3, [r3, #8]
  38987. 8010988: 68ba ldr r2, [r7, #8]
  38988. 801098a: 4313 orrs r3, r2
  38989. 801098c: 60bb str r3, [r7, #8]
  38990. /* Update TIMx SMCR */
  38991. htim->Instance->SMCR = tmpsmcr;
  38992. 801098e: 687b ldr r3, [r7, #4]
  38993. 8010990: 681b ldr r3, [r3, #0]
  38994. 8010992: 68ba ldr r2, [r7, #8]
  38995. 8010994: 609a str r2, [r3, #8]
  38996. }
  38997. /* Change the htim state */
  38998. htim->State = HAL_TIM_STATE_READY;
  38999. 8010996: 687b ldr r3, [r7, #4]
  39000. 8010998: 2201 movs r2, #1
  39001. 801099a: f883 203d strb.w r2, [r3, #61] @ 0x3d
  39002. __HAL_UNLOCK(htim);
  39003. 801099e: 687b ldr r3, [r7, #4]
  39004. 80109a0: 2200 movs r2, #0
  39005. 80109a2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39006. return HAL_OK;
  39007. 80109a6: 2300 movs r3, #0
  39008. }
  39009. 80109a8: 4618 mov r0, r3
  39010. 80109aa: 3714 adds r7, #20
  39011. 80109ac: 46bd mov sp, r7
  39012. 80109ae: f85d 7b04 ldr.w r7, [sp], #4
  39013. 80109b2: 4770 bx lr
  39014. 80109b4: 40010000 .word 0x40010000
  39015. 80109b8: 40010400 .word 0x40010400
  39016. 80109bc: 40000400 .word 0x40000400
  39017. 80109c0: 40000800 .word 0x40000800
  39018. 80109c4: 40000c00 .word 0x40000c00
  39019. 80109c8: 40001800 .word 0x40001800
  39020. 80109cc: 40014000 .word 0x40014000
  39021. 080109d0 <HAL_TIMEx_ConfigBreakDeadTime>:
  39022. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  39023. * @retval HAL status
  39024. */
  39025. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  39026. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  39027. {
  39028. 80109d0: b480 push {r7}
  39029. 80109d2: b085 sub sp, #20
  39030. 80109d4: af00 add r7, sp, #0
  39031. 80109d6: 6078 str r0, [r7, #4]
  39032. 80109d8: 6039 str r1, [r7, #0]
  39033. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  39034. uint32_t tmpbdtr = 0U;
  39035. 80109da: 2300 movs r3, #0
  39036. 80109dc: 60fb str r3, [r7, #12]
  39037. #if defined(TIM_BDTR_BKBID)
  39038. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  39039. #endif /* TIM_BDTR_BKBID */
  39040. /* Check input state */
  39041. __HAL_LOCK(htim);
  39042. 80109de: 687b ldr r3, [r7, #4]
  39043. 80109e0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  39044. 80109e4: 2b01 cmp r3, #1
  39045. 80109e6: d101 bne.n 80109ec <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  39046. 80109e8: 2302 movs r3, #2
  39047. 80109ea: e065 b.n 8010ab8 <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  39048. 80109ec: 687b ldr r3, [r7, #4]
  39049. 80109ee: 2201 movs r2, #1
  39050. 80109f0: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39051. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  39052. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  39053. /* Set the BDTR bits */
  39054. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  39055. 80109f4: 68fb ldr r3, [r7, #12]
  39056. 80109f6: f023 02ff bic.w r2, r3, #255 @ 0xff
  39057. 80109fa: 683b ldr r3, [r7, #0]
  39058. 80109fc: 68db ldr r3, [r3, #12]
  39059. 80109fe: 4313 orrs r3, r2
  39060. 8010a00: 60fb str r3, [r7, #12]
  39061. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  39062. 8010a02: 68fb ldr r3, [r7, #12]
  39063. 8010a04: f423 7240 bic.w r2, r3, #768 @ 0x300
  39064. 8010a08: 683b ldr r3, [r7, #0]
  39065. 8010a0a: 689b ldr r3, [r3, #8]
  39066. 8010a0c: 4313 orrs r3, r2
  39067. 8010a0e: 60fb str r3, [r7, #12]
  39068. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  39069. 8010a10: 68fb ldr r3, [r7, #12]
  39070. 8010a12: f423 6280 bic.w r2, r3, #1024 @ 0x400
  39071. 8010a16: 683b ldr r3, [r7, #0]
  39072. 8010a18: 685b ldr r3, [r3, #4]
  39073. 8010a1a: 4313 orrs r3, r2
  39074. 8010a1c: 60fb str r3, [r7, #12]
  39075. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  39076. 8010a1e: 68fb ldr r3, [r7, #12]
  39077. 8010a20: f423 6200 bic.w r2, r3, #2048 @ 0x800
  39078. 8010a24: 683b ldr r3, [r7, #0]
  39079. 8010a26: 681b ldr r3, [r3, #0]
  39080. 8010a28: 4313 orrs r3, r2
  39081. 8010a2a: 60fb str r3, [r7, #12]
  39082. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  39083. 8010a2c: 68fb ldr r3, [r7, #12]
  39084. 8010a2e: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  39085. 8010a32: 683b ldr r3, [r7, #0]
  39086. 8010a34: 691b ldr r3, [r3, #16]
  39087. 8010a36: 4313 orrs r3, r2
  39088. 8010a38: 60fb str r3, [r7, #12]
  39089. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  39090. 8010a3a: 68fb ldr r3, [r7, #12]
  39091. 8010a3c: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  39092. 8010a40: 683b ldr r3, [r7, #0]
  39093. 8010a42: 695b ldr r3, [r3, #20]
  39094. 8010a44: 4313 orrs r3, r2
  39095. 8010a46: 60fb str r3, [r7, #12]
  39096. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  39097. 8010a48: 68fb ldr r3, [r7, #12]
  39098. 8010a4a: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  39099. 8010a4e: 683b ldr r3, [r7, #0]
  39100. 8010a50: 6a9b ldr r3, [r3, #40] @ 0x28
  39101. 8010a52: 4313 orrs r3, r2
  39102. 8010a54: 60fb str r3, [r7, #12]
  39103. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  39104. 8010a56: 68fb ldr r3, [r7, #12]
  39105. 8010a58: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  39106. 8010a5c: 683b ldr r3, [r7, #0]
  39107. 8010a5e: 699b ldr r3, [r3, #24]
  39108. 8010a60: 041b lsls r3, r3, #16
  39109. 8010a62: 4313 orrs r3, r2
  39110. 8010a64: 60fb str r3, [r7, #12]
  39111. #if defined(TIM_BDTR_BKBID)
  39112. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  39113. #endif /* TIM_BDTR_BKBID */
  39114. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  39115. 8010a66: 687b ldr r3, [r7, #4]
  39116. 8010a68: 681b ldr r3, [r3, #0]
  39117. 8010a6a: 4a16 ldr r2, [pc, #88] @ (8010ac4 <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  39118. 8010a6c: 4293 cmp r3, r2
  39119. 8010a6e: d004 beq.n 8010a7a <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  39120. 8010a70: 687b ldr r3, [r7, #4]
  39121. 8010a72: 681b ldr r3, [r3, #0]
  39122. 8010a74: 4a14 ldr r2, [pc, #80] @ (8010ac8 <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  39123. 8010a76: 4293 cmp r3, r2
  39124. 8010a78: d115 bne.n 8010aa6 <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  39125. #if defined(TIM_BDTR_BKBID)
  39126. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  39127. #endif /* TIM_BDTR_BKBID */
  39128. /* Set the BREAK2 input related BDTR bits */
  39129. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  39130. 8010a7a: 68fb ldr r3, [r7, #12]
  39131. 8010a7c: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  39132. 8010a80: 683b ldr r3, [r7, #0]
  39133. 8010a82: 6a5b ldr r3, [r3, #36] @ 0x24
  39134. 8010a84: 051b lsls r3, r3, #20
  39135. 8010a86: 4313 orrs r3, r2
  39136. 8010a88: 60fb str r3, [r7, #12]
  39137. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  39138. 8010a8a: 68fb ldr r3, [r7, #12]
  39139. 8010a8c: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  39140. 8010a90: 683b ldr r3, [r7, #0]
  39141. 8010a92: 69db ldr r3, [r3, #28]
  39142. 8010a94: 4313 orrs r3, r2
  39143. 8010a96: 60fb str r3, [r7, #12]
  39144. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  39145. 8010a98: 68fb ldr r3, [r7, #12]
  39146. 8010a9a: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  39147. 8010a9e: 683b ldr r3, [r7, #0]
  39148. 8010aa0: 6a1b ldr r3, [r3, #32]
  39149. 8010aa2: 4313 orrs r3, r2
  39150. 8010aa4: 60fb str r3, [r7, #12]
  39151. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  39152. #endif /* TIM_BDTR_BKBID */
  39153. }
  39154. /* Set TIMx_BDTR */
  39155. htim->Instance->BDTR = tmpbdtr;
  39156. 8010aa6: 687b ldr r3, [r7, #4]
  39157. 8010aa8: 681b ldr r3, [r3, #0]
  39158. 8010aaa: 68fa ldr r2, [r7, #12]
  39159. 8010aac: 645a str r2, [r3, #68] @ 0x44
  39160. __HAL_UNLOCK(htim);
  39161. 8010aae: 687b ldr r3, [r7, #4]
  39162. 8010ab0: 2200 movs r2, #0
  39163. 8010ab2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39164. return HAL_OK;
  39165. 8010ab6: 2300 movs r3, #0
  39166. }
  39167. 8010ab8: 4618 mov r0, r3
  39168. 8010aba: 3714 adds r7, #20
  39169. 8010abc: 46bd mov sp, r7
  39170. 8010abe: f85d 7b04 ldr.w r7, [sp], #4
  39171. 8010ac2: 4770 bx lr
  39172. 8010ac4: 40010000 .word 0x40010000
  39173. 8010ac8: 40010400 .word 0x40010400
  39174. 08010acc <HAL_TIMEx_CommutCallback>:
  39175. * @brief Commutation callback in non-blocking mode
  39176. * @param htim TIM handle
  39177. * @retval None
  39178. */
  39179. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  39180. {
  39181. 8010acc: b480 push {r7}
  39182. 8010ace: b083 sub sp, #12
  39183. 8010ad0: af00 add r7, sp, #0
  39184. 8010ad2: 6078 str r0, [r7, #4]
  39185. UNUSED(htim);
  39186. /* NOTE : This function should not be modified, when the callback is needed,
  39187. the HAL_TIMEx_CommutCallback could be implemented in the user file
  39188. */
  39189. }
  39190. 8010ad4: bf00 nop
  39191. 8010ad6: 370c adds r7, #12
  39192. 8010ad8: 46bd mov sp, r7
  39193. 8010ada: f85d 7b04 ldr.w r7, [sp], #4
  39194. 8010ade: 4770 bx lr
  39195. 08010ae0 <HAL_TIMEx_BreakCallback>:
  39196. * @brief Break detection callback in non-blocking mode
  39197. * @param htim TIM handle
  39198. * @retval None
  39199. */
  39200. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  39201. {
  39202. 8010ae0: b480 push {r7}
  39203. 8010ae2: b083 sub sp, #12
  39204. 8010ae4: af00 add r7, sp, #0
  39205. 8010ae6: 6078 str r0, [r7, #4]
  39206. UNUSED(htim);
  39207. /* NOTE : This function should not be modified, when the callback is needed,
  39208. the HAL_TIMEx_BreakCallback could be implemented in the user file
  39209. */
  39210. }
  39211. 8010ae8: bf00 nop
  39212. 8010aea: 370c adds r7, #12
  39213. 8010aec: 46bd mov sp, r7
  39214. 8010aee: f85d 7b04 ldr.w r7, [sp], #4
  39215. 8010af2: 4770 bx lr
  39216. 08010af4 <HAL_TIMEx_Break2Callback>:
  39217. * @brief Break2 detection callback in non blocking mode
  39218. * @param htim: TIM handle
  39219. * @retval None
  39220. */
  39221. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  39222. {
  39223. 8010af4: b480 push {r7}
  39224. 8010af6: b083 sub sp, #12
  39225. 8010af8: af00 add r7, sp, #0
  39226. 8010afa: 6078 str r0, [r7, #4]
  39227. UNUSED(htim);
  39228. /* NOTE : This function Should not be modified, when the callback is needed,
  39229. the HAL_TIMEx_Break2Callback could be implemented in the user file
  39230. */
  39231. }
  39232. 8010afc: bf00 nop
  39233. 8010afe: 370c adds r7, #12
  39234. 8010b00: 46bd mov sp, r7
  39235. 8010b02: f85d 7b04 ldr.w r7, [sp], #4
  39236. 8010b06: 4770 bx lr
  39237. 08010b08 <HAL_UART_Init>:
  39238. * parameters in the UART_InitTypeDef and initialize the associated handle.
  39239. * @param huart UART handle.
  39240. * @retval HAL status
  39241. */
  39242. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  39243. {
  39244. 8010b08: b580 push {r7, lr}
  39245. 8010b0a: b082 sub sp, #8
  39246. 8010b0c: af00 add r7, sp, #0
  39247. 8010b0e: 6078 str r0, [r7, #4]
  39248. /* Check the UART handle allocation */
  39249. if (huart == NULL)
  39250. 8010b10: 687b ldr r3, [r7, #4]
  39251. 8010b12: 2b00 cmp r3, #0
  39252. 8010b14: d101 bne.n 8010b1a <HAL_UART_Init+0x12>
  39253. {
  39254. return HAL_ERROR;
  39255. 8010b16: 2301 movs r3, #1
  39256. 8010b18: e042 b.n 8010ba0 <HAL_UART_Init+0x98>
  39257. {
  39258. /* Check the parameters */
  39259. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  39260. }
  39261. if (huart->gState == HAL_UART_STATE_RESET)
  39262. 8010b1a: 687b ldr r3, [r7, #4]
  39263. 8010b1c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39264. 8010b20: 2b00 cmp r3, #0
  39265. 8010b22: d106 bne.n 8010b32 <HAL_UART_Init+0x2a>
  39266. {
  39267. /* Allocate lock resource and initialize it */
  39268. huart->Lock = HAL_UNLOCKED;
  39269. 8010b24: 687b ldr r3, [r7, #4]
  39270. 8010b26: 2200 movs r2, #0
  39271. 8010b28: f883 2084 strb.w r2, [r3, #132] @ 0x84
  39272. /* Init the low level hardware */
  39273. huart->MspInitCallback(huart);
  39274. #else
  39275. /* Init the low level hardware : GPIO, CLOCK */
  39276. HAL_UART_MspInit(huart);
  39277. 8010b2c: 6878 ldr r0, [r7, #4]
  39278. 8010b2e: f7f3 f90d bl 8003d4c <HAL_UART_MspInit>
  39279. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  39280. }
  39281. huart->gState = HAL_UART_STATE_BUSY;
  39282. 8010b32: 687b ldr r3, [r7, #4]
  39283. 8010b34: 2224 movs r2, #36 @ 0x24
  39284. 8010b36: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39285. __HAL_UART_DISABLE(huart);
  39286. 8010b3a: 687b ldr r3, [r7, #4]
  39287. 8010b3c: 681b ldr r3, [r3, #0]
  39288. 8010b3e: 681a ldr r2, [r3, #0]
  39289. 8010b40: 687b ldr r3, [r7, #4]
  39290. 8010b42: 681b ldr r3, [r3, #0]
  39291. 8010b44: f022 0201 bic.w r2, r2, #1
  39292. 8010b48: 601a str r2, [r3, #0]
  39293. /* Perform advanced settings configuration */
  39294. /* For some items, configuration requires to be done prior TE and RE bits are set */
  39295. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  39296. 8010b4a: 687b ldr r3, [r7, #4]
  39297. 8010b4c: 6a9b ldr r3, [r3, #40] @ 0x28
  39298. 8010b4e: 2b00 cmp r3, #0
  39299. 8010b50: d002 beq.n 8010b58 <HAL_UART_Init+0x50>
  39300. {
  39301. UART_AdvFeatureConfig(huart);
  39302. 8010b52: 6878 ldr r0, [r7, #4]
  39303. 8010b54: f001 fa76 bl 8012044 <UART_AdvFeatureConfig>
  39304. }
  39305. /* Set the UART Communication parameters */
  39306. if (UART_SetConfig(huart) == HAL_ERROR)
  39307. 8010b58: 6878 ldr r0, [r7, #4]
  39308. 8010b5a: f000 fd0b bl 8011574 <UART_SetConfig>
  39309. 8010b5e: 4603 mov r3, r0
  39310. 8010b60: 2b01 cmp r3, #1
  39311. 8010b62: d101 bne.n 8010b68 <HAL_UART_Init+0x60>
  39312. {
  39313. return HAL_ERROR;
  39314. 8010b64: 2301 movs r3, #1
  39315. 8010b66: e01b b.n 8010ba0 <HAL_UART_Init+0x98>
  39316. }
  39317. /* In asynchronous mode, the following bits must be kept cleared:
  39318. - LINEN and CLKEN bits in the USART_CR2 register,
  39319. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  39320. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  39321. 8010b68: 687b ldr r3, [r7, #4]
  39322. 8010b6a: 681b ldr r3, [r3, #0]
  39323. 8010b6c: 685a ldr r2, [r3, #4]
  39324. 8010b6e: 687b ldr r3, [r7, #4]
  39325. 8010b70: 681b ldr r3, [r3, #0]
  39326. 8010b72: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  39327. 8010b76: 605a str r2, [r3, #4]
  39328. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  39329. 8010b78: 687b ldr r3, [r7, #4]
  39330. 8010b7a: 681b ldr r3, [r3, #0]
  39331. 8010b7c: 689a ldr r2, [r3, #8]
  39332. 8010b7e: 687b ldr r3, [r7, #4]
  39333. 8010b80: 681b ldr r3, [r3, #0]
  39334. 8010b82: f022 022a bic.w r2, r2, #42 @ 0x2a
  39335. 8010b86: 609a str r2, [r3, #8]
  39336. __HAL_UART_ENABLE(huart);
  39337. 8010b88: 687b ldr r3, [r7, #4]
  39338. 8010b8a: 681b ldr r3, [r3, #0]
  39339. 8010b8c: 681a ldr r2, [r3, #0]
  39340. 8010b8e: 687b ldr r3, [r7, #4]
  39341. 8010b90: 681b ldr r3, [r3, #0]
  39342. 8010b92: f042 0201 orr.w r2, r2, #1
  39343. 8010b96: 601a str r2, [r3, #0]
  39344. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  39345. return (UART_CheckIdleState(huart));
  39346. 8010b98: 6878 ldr r0, [r7, #4]
  39347. 8010b9a: f001 faf5 bl 8012188 <UART_CheckIdleState>
  39348. 8010b9e: 4603 mov r3, r0
  39349. }
  39350. 8010ba0: 4618 mov r0, r3
  39351. 8010ba2: 3708 adds r7, #8
  39352. 8010ba4: 46bd mov sp, r7
  39353. 8010ba6: bd80 pop {r7, pc}
  39354. 08010ba8 <HAL_UART_Transmit>:
  39355. * @param Size Amount of data elements (u8 or u16) to be sent.
  39356. * @param Timeout Timeout duration.
  39357. * @retval HAL status
  39358. */
  39359. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
  39360. {
  39361. 8010ba8: b580 push {r7, lr}
  39362. 8010baa: b08a sub sp, #40 @ 0x28
  39363. 8010bac: af02 add r7, sp, #8
  39364. 8010bae: 60f8 str r0, [r7, #12]
  39365. 8010bb0: 60b9 str r1, [r7, #8]
  39366. 8010bb2: 603b str r3, [r7, #0]
  39367. 8010bb4: 4613 mov r3, r2
  39368. 8010bb6: 80fb strh r3, [r7, #6]
  39369. const uint8_t *pdata8bits;
  39370. const uint16_t *pdata16bits;
  39371. uint32_t tickstart;
  39372. /* Check that a Tx process is not already ongoing */
  39373. if (huart->gState == HAL_UART_STATE_READY)
  39374. 8010bb8: 68fb ldr r3, [r7, #12]
  39375. 8010bba: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39376. 8010bbe: 2b20 cmp r3, #32
  39377. 8010bc0: d17b bne.n 8010cba <HAL_UART_Transmit+0x112>
  39378. {
  39379. if ((pData == NULL) || (Size == 0U))
  39380. 8010bc2: 68bb ldr r3, [r7, #8]
  39381. 8010bc4: 2b00 cmp r3, #0
  39382. 8010bc6: d002 beq.n 8010bce <HAL_UART_Transmit+0x26>
  39383. 8010bc8: 88fb ldrh r3, [r7, #6]
  39384. 8010bca: 2b00 cmp r3, #0
  39385. 8010bcc: d101 bne.n 8010bd2 <HAL_UART_Transmit+0x2a>
  39386. {
  39387. return HAL_ERROR;
  39388. 8010bce: 2301 movs r3, #1
  39389. 8010bd0: e074 b.n 8010cbc <HAL_UART_Transmit+0x114>
  39390. }
  39391. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39392. 8010bd2: 68fb ldr r3, [r7, #12]
  39393. 8010bd4: 2200 movs r2, #0
  39394. 8010bd6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39395. huart->gState = HAL_UART_STATE_BUSY_TX;
  39396. 8010bda: 68fb ldr r3, [r7, #12]
  39397. 8010bdc: 2221 movs r2, #33 @ 0x21
  39398. 8010bde: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39399. /* Init tickstart for timeout management */
  39400. tickstart = HAL_GetTick();
  39401. 8010be2: f7f4 fcc1 bl 8005568 <HAL_GetTick>
  39402. 8010be6: 6178 str r0, [r7, #20]
  39403. huart->TxXferSize = Size;
  39404. 8010be8: 68fb ldr r3, [r7, #12]
  39405. 8010bea: 88fa ldrh r2, [r7, #6]
  39406. 8010bec: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  39407. huart->TxXferCount = Size;
  39408. 8010bf0: 68fb ldr r3, [r7, #12]
  39409. 8010bf2: 88fa ldrh r2, [r7, #6]
  39410. 8010bf4: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39411. /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */
  39412. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39413. 8010bf8: 68fb ldr r3, [r7, #12]
  39414. 8010bfa: 689b ldr r3, [r3, #8]
  39415. 8010bfc: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39416. 8010c00: d108 bne.n 8010c14 <HAL_UART_Transmit+0x6c>
  39417. 8010c02: 68fb ldr r3, [r7, #12]
  39418. 8010c04: 691b ldr r3, [r3, #16]
  39419. 8010c06: 2b00 cmp r3, #0
  39420. 8010c08: d104 bne.n 8010c14 <HAL_UART_Transmit+0x6c>
  39421. {
  39422. pdata8bits = NULL;
  39423. 8010c0a: 2300 movs r3, #0
  39424. 8010c0c: 61fb str r3, [r7, #28]
  39425. pdata16bits = (const uint16_t *) pData;
  39426. 8010c0e: 68bb ldr r3, [r7, #8]
  39427. 8010c10: 61bb str r3, [r7, #24]
  39428. 8010c12: e003 b.n 8010c1c <HAL_UART_Transmit+0x74>
  39429. }
  39430. else
  39431. {
  39432. pdata8bits = pData;
  39433. 8010c14: 68bb ldr r3, [r7, #8]
  39434. 8010c16: 61fb str r3, [r7, #28]
  39435. pdata16bits = NULL;
  39436. 8010c18: 2300 movs r3, #0
  39437. 8010c1a: 61bb str r3, [r7, #24]
  39438. }
  39439. while (huart->TxXferCount > 0U)
  39440. 8010c1c: e030 b.n 8010c80 <HAL_UART_Transmit+0xd8>
  39441. {
  39442. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  39443. 8010c1e: 683b ldr r3, [r7, #0]
  39444. 8010c20: 9300 str r3, [sp, #0]
  39445. 8010c22: 697b ldr r3, [r7, #20]
  39446. 8010c24: 2200 movs r2, #0
  39447. 8010c26: 2180 movs r1, #128 @ 0x80
  39448. 8010c28: 68f8 ldr r0, [r7, #12]
  39449. 8010c2a: f001 fb57 bl 80122dc <UART_WaitOnFlagUntilTimeout>
  39450. 8010c2e: 4603 mov r3, r0
  39451. 8010c30: 2b00 cmp r3, #0
  39452. 8010c32: d005 beq.n 8010c40 <HAL_UART_Transmit+0x98>
  39453. {
  39454. huart->gState = HAL_UART_STATE_READY;
  39455. 8010c34: 68fb ldr r3, [r7, #12]
  39456. 8010c36: 2220 movs r2, #32
  39457. 8010c38: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39458. return HAL_TIMEOUT;
  39459. 8010c3c: 2303 movs r3, #3
  39460. 8010c3e: e03d b.n 8010cbc <HAL_UART_Transmit+0x114>
  39461. }
  39462. if (pdata8bits == NULL)
  39463. 8010c40: 69fb ldr r3, [r7, #28]
  39464. 8010c42: 2b00 cmp r3, #0
  39465. 8010c44: d10b bne.n 8010c5e <HAL_UART_Transmit+0xb6>
  39466. {
  39467. huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU);
  39468. 8010c46: 69bb ldr r3, [r7, #24]
  39469. 8010c48: 881b ldrh r3, [r3, #0]
  39470. 8010c4a: 461a mov r2, r3
  39471. 8010c4c: 68fb ldr r3, [r7, #12]
  39472. 8010c4e: 681b ldr r3, [r3, #0]
  39473. 8010c50: f3c2 0208 ubfx r2, r2, #0, #9
  39474. 8010c54: 629a str r2, [r3, #40] @ 0x28
  39475. pdata16bits++;
  39476. 8010c56: 69bb ldr r3, [r7, #24]
  39477. 8010c58: 3302 adds r3, #2
  39478. 8010c5a: 61bb str r3, [r7, #24]
  39479. 8010c5c: e007 b.n 8010c6e <HAL_UART_Transmit+0xc6>
  39480. }
  39481. else
  39482. {
  39483. huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU);
  39484. 8010c5e: 69fb ldr r3, [r7, #28]
  39485. 8010c60: 781a ldrb r2, [r3, #0]
  39486. 8010c62: 68fb ldr r3, [r7, #12]
  39487. 8010c64: 681b ldr r3, [r3, #0]
  39488. 8010c66: 629a str r2, [r3, #40] @ 0x28
  39489. pdata8bits++;
  39490. 8010c68: 69fb ldr r3, [r7, #28]
  39491. 8010c6a: 3301 adds r3, #1
  39492. 8010c6c: 61fb str r3, [r7, #28]
  39493. }
  39494. huart->TxXferCount--;
  39495. 8010c6e: 68fb ldr r3, [r7, #12]
  39496. 8010c70: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  39497. 8010c74: b29b uxth r3, r3
  39498. 8010c76: 3b01 subs r3, #1
  39499. 8010c78: b29a uxth r2, r3
  39500. 8010c7a: 68fb ldr r3, [r7, #12]
  39501. 8010c7c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39502. while (huart->TxXferCount > 0U)
  39503. 8010c80: 68fb ldr r3, [r7, #12]
  39504. 8010c82: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  39505. 8010c86: b29b uxth r3, r3
  39506. 8010c88: 2b00 cmp r3, #0
  39507. 8010c8a: d1c8 bne.n 8010c1e <HAL_UART_Transmit+0x76>
  39508. }
  39509. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  39510. 8010c8c: 683b ldr r3, [r7, #0]
  39511. 8010c8e: 9300 str r3, [sp, #0]
  39512. 8010c90: 697b ldr r3, [r7, #20]
  39513. 8010c92: 2200 movs r2, #0
  39514. 8010c94: 2140 movs r1, #64 @ 0x40
  39515. 8010c96: 68f8 ldr r0, [r7, #12]
  39516. 8010c98: f001 fb20 bl 80122dc <UART_WaitOnFlagUntilTimeout>
  39517. 8010c9c: 4603 mov r3, r0
  39518. 8010c9e: 2b00 cmp r3, #0
  39519. 8010ca0: d005 beq.n 8010cae <HAL_UART_Transmit+0x106>
  39520. {
  39521. huart->gState = HAL_UART_STATE_READY;
  39522. 8010ca2: 68fb ldr r3, [r7, #12]
  39523. 8010ca4: 2220 movs r2, #32
  39524. 8010ca6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39525. return HAL_TIMEOUT;
  39526. 8010caa: 2303 movs r3, #3
  39527. 8010cac: e006 b.n 8010cbc <HAL_UART_Transmit+0x114>
  39528. }
  39529. /* At end of Tx process, restore huart->gState to Ready */
  39530. huart->gState = HAL_UART_STATE_READY;
  39531. 8010cae: 68fb ldr r3, [r7, #12]
  39532. 8010cb0: 2220 movs r2, #32
  39533. 8010cb2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39534. return HAL_OK;
  39535. 8010cb6: 2300 movs r3, #0
  39536. 8010cb8: e000 b.n 8010cbc <HAL_UART_Transmit+0x114>
  39537. }
  39538. else
  39539. {
  39540. return HAL_BUSY;
  39541. 8010cba: 2302 movs r3, #2
  39542. }
  39543. }
  39544. 8010cbc: 4618 mov r0, r3
  39545. 8010cbe: 3720 adds r7, #32
  39546. 8010cc0: 46bd mov sp, r7
  39547. 8010cc2: bd80 pop {r7, pc}
  39548. 08010cc4 <HAL_UART_Transmit_IT>:
  39549. * @param pData Pointer to data buffer (u8 or u16 data elements).
  39550. * @param Size Amount of data elements (u8 or u16) to be sent.
  39551. * @retval HAL status
  39552. */
  39553. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  39554. {
  39555. 8010cc4: b480 push {r7}
  39556. 8010cc6: b091 sub sp, #68 @ 0x44
  39557. 8010cc8: af00 add r7, sp, #0
  39558. 8010cca: 60f8 str r0, [r7, #12]
  39559. 8010ccc: 60b9 str r1, [r7, #8]
  39560. 8010cce: 4613 mov r3, r2
  39561. 8010cd0: 80fb strh r3, [r7, #6]
  39562. /* Check that a Tx process is not already ongoing */
  39563. if (huart->gState == HAL_UART_STATE_READY)
  39564. 8010cd2: 68fb ldr r3, [r7, #12]
  39565. 8010cd4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39566. 8010cd8: 2b20 cmp r3, #32
  39567. 8010cda: d178 bne.n 8010dce <HAL_UART_Transmit_IT+0x10a>
  39568. {
  39569. if ((pData == NULL) || (Size == 0U))
  39570. 8010cdc: 68bb ldr r3, [r7, #8]
  39571. 8010cde: 2b00 cmp r3, #0
  39572. 8010ce0: d002 beq.n 8010ce8 <HAL_UART_Transmit_IT+0x24>
  39573. 8010ce2: 88fb ldrh r3, [r7, #6]
  39574. 8010ce4: 2b00 cmp r3, #0
  39575. 8010ce6: d101 bne.n 8010cec <HAL_UART_Transmit_IT+0x28>
  39576. {
  39577. return HAL_ERROR;
  39578. 8010ce8: 2301 movs r3, #1
  39579. 8010cea: e071 b.n 8010dd0 <HAL_UART_Transmit_IT+0x10c>
  39580. }
  39581. huart->pTxBuffPtr = pData;
  39582. 8010cec: 68fb ldr r3, [r7, #12]
  39583. 8010cee: 68ba ldr r2, [r7, #8]
  39584. 8010cf0: 651a str r2, [r3, #80] @ 0x50
  39585. huart->TxXferSize = Size;
  39586. 8010cf2: 68fb ldr r3, [r7, #12]
  39587. 8010cf4: 88fa ldrh r2, [r7, #6]
  39588. 8010cf6: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  39589. huart->TxXferCount = Size;
  39590. 8010cfa: 68fb ldr r3, [r7, #12]
  39591. 8010cfc: 88fa ldrh r2, [r7, #6]
  39592. 8010cfe: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39593. huart->TxISR = NULL;
  39594. 8010d02: 68fb ldr r3, [r7, #12]
  39595. 8010d04: 2200 movs r2, #0
  39596. 8010d06: 679a str r2, [r3, #120] @ 0x78
  39597. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39598. 8010d08: 68fb ldr r3, [r7, #12]
  39599. 8010d0a: 2200 movs r2, #0
  39600. 8010d0c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39601. huart->gState = HAL_UART_STATE_BUSY_TX;
  39602. 8010d10: 68fb ldr r3, [r7, #12]
  39603. 8010d12: 2221 movs r2, #33 @ 0x21
  39604. 8010d14: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39605. /* Configure Tx interrupt processing */
  39606. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  39607. 8010d18: 68fb ldr r3, [r7, #12]
  39608. 8010d1a: 6e5b ldr r3, [r3, #100] @ 0x64
  39609. 8010d1c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  39610. 8010d20: d12a bne.n 8010d78 <HAL_UART_Transmit_IT+0xb4>
  39611. {
  39612. /* Set the Tx ISR function pointer according to the data word length */
  39613. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39614. 8010d22: 68fb ldr r3, [r7, #12]
  39615. 8010d24: 689b ldr r3, [r3, #8]
  39616. 8010d26: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39617. 8010d2a: d107 bne.n 8010d3c <HAL_UART_Transmit_IT+0x78>
  39618. 8010d2c: 68fb ldr r3, [r7, #12]
  39619. 8010d2e: 691b ldr r3, [r3, #16]
  39620. 8010d30: 2b00 cmp r3, #0
  39621. 8010d32: d103 bne.n 8010d3c <HAL_UART_Transmit_IT+0x78>
  39622. {
  39623. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  39624. 8010d34: 68fb ldr r3, [r7, #12]
  39625. 8010d36: 4a29 ldr r2, [pc, #164] @ (8010ddc <HAL_UART_Transmit_IT+0x118>)
  39626. 8010d38: 679a str r2, [r3, #120] @ 0x78
  39627. 8010d3a: e002 b.n 8010d42 <HAL_UART_Transmit_IT+0x7e>
  39628. }
  39629. else
  39630. {
  39631. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  39632. 8010d3c: 68fb ldr r3, [r7, #12]
  39633. 8010d3e: 4a28 ldr r2, [pc, #160] @ (8010de0 <HAL_UART_Transmit_IT+0x11c>)
  39634. 8010d40: 679a str r2, [r3, #120] @ 0x78
  39635. }
  39636. /* Enable the TX FIFO threshold interrupt */
  39637. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  39638. 8010d42: 68fb ldr r3, [r7, #12]
  39639. 8010d44: 681b ldr r3, [r3, #0]
  39640. 8010d46: 3308 adds r3, #8
  39641. 8010d48: 62bb str r3, [r7, #40] @ 0x28
  39642. */
  39643. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  39644. {
  39645. uint32_t result;
  39646. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39647. 8010d4a: 6abb ldr r3, [r7, #40] @ 0x28
  39648. 8010d4c: e853 3f00 ldrex r3, [r3]
  39649. 8010d50: 627b str r3, [r7, #36] @ 0x24
  39650. return(result);
  39651. 8010d52: 6a7b ldr r3, [r7, #36] @ 0x24
  39652. 8010d54: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  39653. 8010d58: 63bb str r3, [r7, #56] @ 0x38
  39654. 8010d5a: 68fb ldr r3, [r7, #12]
  39655. 8010d5c: 681b ldr r3, [r3, #0]
  39656. 8010d5e: 3308 adds r3, #8
  39657. 8010d60: 6bba ldr r2, [r7, #56] @ 0x38
  39658. 8010d62: 637a str r2, [r7, #52] @ 0x34
  39659. 8010d64: 633b str r3, [r7, #48] @ 0x30
  39660. */
  39661. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  39662. {
  39663. uint32_t result;
  39664. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39665. 8010d66: 6b39 ldr r1, [r7, #48] @ 0x30
  39666. 8010d68: 6b7a ldr r2, [r7, #52] @ 0x34
  39667. 8010d6a: e841 2300 strex r3, r2, [r1]
  39668. 8010d6e: 62fb str r3, [r7, #44] @ 0x2c
  39669. return(result);
  39670. 8010d70: 6afb ldr r3, [r7, #44] @ 0x2c
  39671. 8010d72: 2b00 cmp r3, #0
  39672. 8010d74: d1e5 bne.n 8010d42 <HAL_UART_Transmit_IT+0x7e>
  39673. 8010d76: e028 b.n 8010dca <HAL_UART_Transmit_IT+0x106>
  39674. }
  39675. else
  39676. {
  39677. /* Set the Tx ISR function pointer according to the data word length */
  39678. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39679. 8010d78: 68fb ldr r3, [r7, #12]
  39680. 8010d7a: 689b ldr r3, [r3, #8]
  39681. 8010d7c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39682. 8010d80: d107 bne.n 8010d92 <HAL_UART_Transmit_IT+0xce>
  39683. 8010d82: 68fb ldr r3, [r7, #12]
  39684. 8010d84: 691b ldr r3, [r3, #16]
  39685. 8010d86: 2b00 cmp r3, #0
  39686. 8010d88: d103 bne.n 8010d92 <HAL_UART_Transmit_IT+0xce>
  39687. {
  39688. huart->TxISR = UART_TxISR_16BIT;
  39689. 8010d8a: 68fb ldr r3, [r7, #12]
  39690. 8010d8c: 4a15 ldr r2, [pc, #84] @ (8010de4 <HAL_UART_Transmit_IT+0x120>)
  39691. 8010d8e: 679a str r2, [r3, #120] @ 0x78
  39692. 8010d90: e002 b.n 8010d98 <HAL_UART_Transmit_IT+0xd4>
  39693. }
  39694. else
  39695. {
  39696. huart->TxISR = UART_TxISR_8BIT;
  39697. 8010d92: 68fb ldr r3, [r7, #12]
  39698. 8010d94: 4a14 ldr r2, [pc, #80] @ (8010de8 <HAL_UART_Transmit_IT+0x124>)
  39699. 8010d96: 679a str r2, [r3, #120] @ 0x78
  39700. }
  39701. /* Enable the Transmit Data Register Empty interrupt */
  39702. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  39703. 8010d98: 68fb ldr r3, [r7, #12]
  39704. 8010d9a: 681b ldr r3, [r3, #0]
  39705. 8010d9c: 617b str r3, [r7, #20]
  39706. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39707. 8010d9e: 697b ldr r3, [r7, #20]
  39708. 8010da0: e853 3f00 ldrex r3, [r3]
  39709. 8010da4: 613b str r3, [r7, #16]
  39710. return(result);
  39711. 8010da6: 693b ldr r3, [r7, #16]
  39712. 8010da8: f043 0380 orr.w r3, r3, #128 @ 0x80
  39713. 8010dac: 63fb str r3, [r7, #60] @ 0x3c
  39714. 8010dae: 68fb ldr r3, [r7, #12]
  39715. 8010db0: 681b ldr r3, [r3, #0]
  39716. 8010db2: 461a mov r2, r3
  39717. 8010db4: 6bfb ldr r3, [r7, #60] @ 0x3c
  39718. 8010db6: 623b str r3, [r7, #32]
  39719. 8010db8: 61fa str r2, [r7, #28]
  39720. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39721. 8010dba: 69f9 ldr r1, [r7, #28]
  39722. 8010dbc: 6a3a ldr r2, [r7, #32]
  39723. 8010dbe: e841 2300 strex r3, r2, [r1]
  39724. 8010dc2: 61bb str r3, [r7, #24]
  39725. return(result);
  39726. 8010dc4: 69bb ldr r3, [r7, #24]
  39727. 8010dc6: 2b00 cmp r3, #0
  39728. 8010dc8: d1e6 bne.n 8010d98 <HAL_UART_Transmit_IT+0xd4>
  39729. }
  39730. return HAL_OK;
  39731. 8010dca: 2300 movs r3, #0
  39732. 8010dcc: e000 b.n 8010dd0 <HAL_UART_Transmit_IT+0x10c>
  39733. }
  39734. else
  39735. {
  39736. return HAL_BUSY;
  39737. 8010dce: 2302 movs r3, #2
  39738. }
  39739. }
  39740. 8010dd0: 4618 mov r0, r3
  39741. 8010dd2: 3744 adds r7, #68 @ 0x44
  39742. 8010dd4: 46bd mov sp, r7
  39743. 8010dd6: f85d 7b04 ldr.w r7, [sp], #4
  39744. 8010dda: 4770 bx lr
  39745. 8010ddc: 0801294f .word 0x0801294f
  39746. 8010de0: 0801286f .word 0x0801286f
  39747. 8010de4: 080127ad .word 0x080127ad
  39748. 8010de8: 080126f5 .word 0x080126f5
  39749. 08010dec <HAL_UART_IRQHandler>:
  39750. * @brief Handle UART interrupt request.
  39751. * @param huart UART handle.
  39752. * @retval None
  39753. */
  39754. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  39755. {
  39756. 8010dec: b580 push {r7, lr}
  39757. 8010dee: b0ba sub sp, #232 @ 0xe8
  39758. 8010df0: af00 add r7, sp, #0
  39759. 8010df2: 6078 str r0, [r7, #4]
  39760. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  39761. 8010df4: 687b ldr r3, [r7, #4]
  39762. 8010df6: 681b ldr r3, [r3, #0]
  39763. 8010df8: 69db ldr r3, [r3, #28]
  39764. 8010dfa: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  39765. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  39766. 8010dfe: 687b ldr r3, [r7, #4]
  39767. 8010e00: 681b ldr r3, [r3, #0]
  39768. 8010e02: 681b ldr r3, [r3, #0]
  39769. 8010e04: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  39770. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  39771. 8010e08: 687b ldr r3, [r7, #4]
  39772. 8010e0a: 681b ldr r3, [r3, #0]
  39773. 8010e0c: 689b ldr r3, [r3, #8]
  39774. 8010e0e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  39775. uint32_t errorflags;
  39776. uint32_t errorcode;
  39777. /* If no error occurs */
  39778. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  39779. 8010e12: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  39780. 8010e16: f640 030f movw r3, #2063 @ 0x80f
  39781. 8010e1a: 4013 ands r3, r2
  39782. 8010e1c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  39783. if (errorflags == 0U)
  39784. 8010e20: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39785. 8010e24: 2b00 cmp r3, #0
  39786. 8010e26: d11b bne.n 8010e60 <HAL_UART_IRQHandler+0x74>
  39787. {
  39788. /* UART in mode Receiver ---------------------------------------------------*/
  39789. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39790. 8010e28: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39791. 8010e2c: f003 0320 and.w r3, r3, #32
  39792. 8010e30: 2b00 cmp r3, #0
  39793. 8010e32: d015 beq.n 8010e60 <HAL_UART_IRQHandler+0x74>
  39794. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39795. 8010e34: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39796. 8010e38: f003 0320 and.w r3, r3, #32
  39797. 8010e3c: 2b00 cmp r3, #0
  39798. 8010e3e: d105 bne.n 8010e4c <HAL_UART_IRQHandler+0x60>
  39799. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39800. 8010e40: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39801. 8010e44: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39802. 8010e48: 2b00 cmp r3, #0
  39803. 8010e4a: d009 beq.n 8010e60 <HAL_UART_IRQHandler+0x74>
  39804. {
  39805. if (huart->RxISR != NULL)
  39806. 8010e4c: 687b ldr r3, [r7, #4]
  39807. 8010e4e: 6f5b ldr r3, [r3, #116] @ 0x74
  39808. 8010e50: 2b00 cmp r3, #0
  39809. 8010e52: f000 8377 beq.w 8011544 <HAL_UART_IRQHandler+0x758>
  39810. {
  39811. huart->RxISR(huart);
  39812. 8010e56: 687b ldr r3, [r7, #4]
  39813. 8010e58: 6f5b ldr r3, [r3, #116] @ 0x74
  39814. 8010e5a: 6878 ldr r0, [r7, #4]
  39815. 8010e5c: 4798 blx r3
  39816. }
  39817. return;
  39818. 8010e5e: e371 b.n 8011544 <HAL_UART_IRQHandler+0x758>
  39819. }
  39820. }
  39821. /* If some errors occur */
  39822. if ((errorflags != 0U)
  39823. 8010e60: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39824. 8010e64: 2b00 cmp r3, #0
  39825. 8010e66: f000 8123 beq.w 80110b0 <HAL_UART_IRQHandler+0x2c4>
  39826. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  39827. 8010e6a: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39828. 8010e6e: 4b8d ldr r3, [pc, #564] @ (80110a4 <HAL_UART_IRQHandler+0x2b8>)
  39829. 8010e70: 4013 ands r3, r2
  39830. 8010e72: 2b00 cmp r3, #0
  39831. 8010e74: d106 bne.n 8010e84 <HAL_UART_IRQHandler+0x98>
  39832. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  39833. 8010e76: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  39834. 8010e7a: 4b8b ldr r3, [pc, #556] @ (80110a8 <HAL_UART_IRQHandler+0x2bc>)
  39835. 8010e7c: 4013 ands r3, r2
  39836. 8010e7e: 2b00 cmp r3, #0
  39837. 8010e80: f000 8116 beq.w 80110b0 <HAL_UART_IRQHandler+0x2c4>
  39838. {
  39839. /* UART parity error interrupt occurred -------------------------------------*/
  39840. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  39841. 8010e84: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39842. 8010e88: f003 0301 and.w r3, r3, #1
  39843. 8010e8c: 2b00 cmp r3, #0
  39844. 8010e8e: d011 beq.n 8010eb4 <HAL_UART_IRQHandler+0xc8>
  39845. 8010e90: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39846. 8010e94: f403 7380 and.w r3, r3, #256 @ 0x100
  39847. 8010e98: 2b00 cmp r3, #0
  39848. 8010e9a: d00b beq.n 8010eb4 <HAL_UART_IRQHandler+0xc8>
  39849. {
  39850. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  39851. 8010e9c: 687b ldr r3, [r7, #4]
  39852. 8010e9e: 681b ldr r3, [r3, #0]
  39853. 8010ea0: 2201 movs r2, #1
  39854. 8010ea2: 621a str r2, [r3, #32]
  39855. huart->ErrorCode |= HAL_UART_ERROR_PE;
  39856. 8010ea4: 687b ldr r3, [r7, #4]
  39857. 8010ea6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39858. 8010eaa: f043 0201 orr.w r2, r3, #1
  39859. 8010eae: 687b ldr r3, [r7, #4]
  39860. 8010eb0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39861. }
  39862. /* UART frame error interrupt occurred --------------------------------------*/
  39863. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39864. 8010eb4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39865. 8010eb8: f003 0302 and.w r3, r3, #2
  39866. 8010ebc: 2b00 cmp r3, #0
  39867. 8010ebe: d011 beq.n 8010ee4 <HAL_UART_IRQHandler+0xf8>
  39868. 8010ec0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39869. 8010ec4: f003 0301 and.w r3, r3, #1
  39870. 8010ec8: 2b00 cmp r3, #0
  39871. 8010eca: d00b beq.n 8010ee4 <HAL_UART_IRQHandler+0xf8>
  39872. {
  39873. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  39874. 8010ecc: 687b ldr r3, [r7, #4]
  39875. 8010ece: 681b ldr r3, [r3, #0]
  39876. 8010ed0: 2202 movs r2, #2
  39877. 8010ed2: 621a str r2, [r3, #32]
  39878. huart->ErrorCode |= HAL_UART_ERROR_FE;
  39879. 8010ed4: 687b ldr r3, [r7, #4]
  39880. 8010ed6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39881. 8010eda: f043 0204 orr.w r2, r3, #4
  39882. 8010ede: 687b ldr r3, [r7, #4]
  39883. 8010ee0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39884. }
  39885. /* UART noise error interrupt occurred --------------------------------------*/
  39886. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39887. 8010ee4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39888. 8010ee8: f003 0304 and.w r3, r3, #4
  39889. 8010eec: 2b00 cmp r3, #0
  39890. 8010eee: d011 beq.n 8010f14 <HAL_UART_IRQHandler+0x128>
  39891. 8010ef0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39892. 8010ef4: f003 0301 and.w r3, r3, #1
  39893. 8010ef8: 2b00 cmp r3, #0
  39894. 8010efa: d00b beq.n 8010f14 <HAL_UART_IRQHandler+0x128>
  39895. {
  39896. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  39897. 8010efc: 687b ldr r3, [r7, #4]
  39898. 8010efe: 681b ldr r3, [r3, #0]
  39899. 8010f00: 2204 movs r2, #4
  39900. 8010f02: 621a str r2, [r3, #32]
  39901. huart->ErrorCode |= HAL_UART_ERROR_NE;
  39902. 8010f04: 687b ldr r3, [r7, #4]
  39903. 8010f06: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39904. 8010f0a: f043 0202 orr.w r2, r3, #2
  39905. 8010f0e: 687b ldr r3, [r7, #4]
  39906. 8010f10: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39907. }
  39908. /* UART Over-Run interrupt occurred -----------------------------------------*/
  39909. if (((isrflags & USART_ISR_ORE) != 0U)
  39910. 8010f14: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39911. 8010f18: f003 0308 and.w r3, r3, #8
  39912. 8010f1c: 2b00 cmp r3, #0
  39913. 8010f1e: d017 beq.n 8010f50 <HAL_UART_IRQHandler+0x164>
  39914. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39915. 8010f20: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39916. 8010f24: f003 0320 and.w r3, r3, #32
  39917. 8010f28: 2b00 cmp r3, #0
  39918. 8010f2a: d105 bne.n 8010f38 <HAL_UART_IRQHandler+0x14c>
  39919. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  39920. 8010f2c: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39921. 8010f30: 4b5c ldr r3, [pc, #368] @ (80110a4 <HAL_UART_IRQHandler+0x2b8>)
  39922. 8010f32: 4013 ands r3, r2
  39923. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39924. 8010f34: 2b00 cmp r3, #0
  39925. 8010f36: d00b beq.n 8010f50 <HAL_UART_IRQHandler+0x164>
  39926. {
  39927. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  39928. 8010f38: 687b ldr r3, [r7, #4]
  39929. 8010f3a: 681b ldr r3, [r3, #0]
  39930. 8010f3c: 2208 movs r2, #8
  39931. 8010f3e: 621a str r2, [r3, #32]
  39932. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  39933. 8010f40: 687b ldr r3, [r7, #4]
  39934. 8010f42: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39935. 8010f46: f043 0208 orr.w r2, r3, #8
  39936. 8010f4a: 687b ldr r3, [r7, #4]
  39937. 8010f4c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39938. }
  39939. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  39940. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  39941. 8010f50: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39942. 8010f54: f403 6300 and.w r3, r3, #2048 @ 0x800
  39943. 8010f58: 2b00 cmp r3, #0
  39944. 8010f5a: d012 beq.n 8010f82 <HAL_UART_IRQHandler+0x196>
  39945. 8010f5c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39946. 8010f60: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  39947. 8010f64: 2b00 cmp r3, #0
  39948. 8010f66: d00c beq.n 8010f82 <HAL_UART_IRQHandler+0x196>
  39949. {
  39950. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  39951. 8010f68: 687b ldr r3, [r7, #4]
  39952. 8010f6a: 681b ldr r3, [r3, #0]
  39953. 8010f6c: f44f 6200 mov.w r2, #2048 @ 0x800
  39954. 8010f70: 621a str r2, [r3, #32]
  39955. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  39956. 8010f72: 687b ldr r3, [r7, #4]
  39957. 8010f74: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39958. 8010f78: f043 0220 orr.w r2, r3, #32
  39959. 8010f7c: 687b ldr r3, [r7, #4]
  39960. 8010f7e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39961. }
  39962. /* Call UART Error Call back function if need be ----------------------------*/
  39963. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  39964. 8010f82: 687b ldr r3, [r7, #4]
  39965. 8010f84: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39966. 8010f88: 2b00 cmp r3, #0
  39967. 8010f8a: f000 82dd beq.w 8011548 <HAL_UART_IRQHandler+0x75c>
  39968. {
  39969. /* UART in mode Receiver --------------------------------------------------*/
  39970. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39971. 8010f8e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39972. 8010f92: f003 0320 and.w r3, r3, #32
  39973. 8010f96: 2b00 cmp r3, #0
  39974. 8010f98: d013 beq.n 8010fc2 <HAL_UART_IRQHandler+0x1d6>
  39975. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39976. 8010f9a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39977. 8010f9e: f003 0320 and.w r3, r3, #32
  39978. 8010fa2: 2b00 cmp r3, #0
  39979. 8010fa4: d105 bne.n 8010fb2 <HAL_UART_IRQHandler+0x1c6>
  39980. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39981. 8010fa6: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39982. 8010faa: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39983. 8010fae: 2b00 cmp r3, #0
  39984. 8010fb0: d007 beq.n 8010fc2 <HAL_UART_IRQHandler+0x1d6>
  39985. {
  39986. if (huart->RxISR != NULL)
  39987. 8010fb2: 687b ldr r3, [r7, #4]
  39988. 8010fb4: 6f5b ldr r3, [r3, #116] @ 0x74
  39989. 8010fb6: 2b00 cmp r3, #0
  39990. 8010fb8: d003 beq.n 8010fc2 <HAL_UART_IRQHandler+0x1d6>
  39991. {
  39992. huart->RxISR(huart);
  39993. 8010fba: 687b ldr r3, [r7, #4]
  39994. 8010fbc: 6f5b ldr r3, [r3, #116] @ 0x74
  39995. 8010fbe: 6878 ldr r0, [r7, #4]
  39996. 8010fc0: 4798 blx r3
  39997. /* If Error is to be considered as blocking :
  39998. - Receiver Timeout error in Reception
  39999. - Overrun error in Reception
  40000. - any error occurs in DMA mode reception
  40001. */
  40002. errorcode = huart->ErrorCode;
  40003. 8010fc2: 687b ldr r3, [r7, #4]
  40004. 8010fc4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40005. 8010fc8: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  40006. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40007. 8010fcc: 687b ldr r3, [r7, #4]
  40008. 8010fce: 681b ldr r3, [r3, #0]
  40009. 8010fd0: 689b ldr r3, [r3, #8]
  40010. 8010fd2: f003 0340 and.w r3, r3, #64 @ 0x40
  40011. 8010fd6: 2b40 cmp r3, #64 @ 0x40
  40012. 8010fd8: d005 beq.n 8010fe6 <HAL_UART_IRQHandler+0x1fa>
  40013. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  40014. 8010fda: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  40015. 8010fde: f003 0328 and.w r3, r3, #40 @ 0x28
  40016. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40017. 8010fe2: 2b00 cmp r3, #0
  40018. 8010fe4: d054 beq.n 8011090 <HAL_UART_IRQHandler+0x2a4>
  40019. {
  40020. /* Blocking error : transfer is aborted
  40021. Set the UART state ready to be able to start again the process,
  40022. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  40023. UART_EndRxTransfer(huart);
  40024. 8010fe6: 6878 ldr r0, [r7, #4]
  40025. 8010fe8: f001 fb08 bl 80125fc <UART_EndRxTransfer>
  40026. /* Abort the UART DMA Rx channel if enabled */
  40027. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40028. 8010fec: 687b ldr r3, [r7, #4]
  40029. 8010fee: 681b ldr r3, [r3, #0]
  40030. 8010ff0: 689b ldr r3, [r3, #8]
  40031. 8010ff2: f003 0340 and.w r3, r3, #64 @ 0x40
  40032. 8010ff6: 2b40 cmp r3, #64 @ 0x40
  40033. 8010ff8: d146 bne.n 8011088 <HAL_UART_IRQHandler+0x29c>
  40034. {
  40035. /* Disable the UART DMA Rx request if enabled */
  40036. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40037. 8010ffa: 687b ldr r3, [r7, #4]
  40038. 8010ffc: 681b ldr r3, [r3, #0]
  40039. 8010ffe: 3308 adds r3, #8
  40040. 8011000: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  40041. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40042. 8011004: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  40043. 8011008: e853 3f00 ldrex r3, [r3]
  40044. 801100c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  40045. return(result);
  40046. 8011010: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  40047. 8011014: f023 0340 bic.w r3, r3, #64 @ 0x40
  40048. 8011018: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  40049. 801101c: 687b ldr r3, [r7, #4]
  40050. 801101e: 681b ldr r3, [r3, #0]
  40051. 8011020: 3308 adds r3, #8
  40052. 8011022: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  40053. 8011026: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  40054. 801102a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  40055. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40056. 801102e: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  40057. 8011032: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  40058. 8011036: e841 2300 strex r3, r2, [r1]
  40059. 801103a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  40060. return(result);
  40061. 801103e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  40062. 8011042: 2b00 cmp r3, #0
  40063. 8011044: d1d9 bne.n 8010ffa <HAL_UART_IRQHandler+0x20e>
  40064. /* Abort the UART DMA Rx channel */
  40065. if (huart->hdmarx != NULL)
  40066. 8011046: 687b ldr r3, [r7, #4]
  40067. 8011048: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40068. 801104c: 2b00 cmp r3, #0
  40069. 801104e: d017 beq.n 8011080 <HAL_UART_IRQHandler+0x294>
  40070. {
  40071. /* Set the UART DMA Abort callback :
  40072. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  40073. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  40074. 8011050: 687b ldr r3, [r7, #4]
  40075. 8011052: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40076. 8011056: 4a15 ldr r2, [pc, #84] @ (80110ac <HAL_UART_IRQHandler+0x2c0>)
  40077. 8011058: 651a str r2, [r3, #80] @ 0x50
  40078. /* Abort DMA RX */
  40079. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  40080. 801105a: 687b ldr r3, [r7, #4]
  40081. 801105c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40082. 8011060: 4618 mov r0, r3
  40083. 8011062: f7f7 ff01 bl 8008e68 <HAL_DMA_Abort_IT>
  40084. 8011066: 4603 mov r3, r0
  40085. 8011068: 2b00 cmp r3, #0
  40086. 801106a: d019 beq.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40087. {
  40088. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  40089. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  40090. 801106c: 687b ldr r3, [r7, #4]
  40091. 801106e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40092. 8011072: 6d1b ldr r3, [r3, #80] @ 0x50
  40093. 8011074: 687a ldr r2, [r7, #4]
  40094. 8011076: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  40095. 801107a: 4610 mov r0, r2
  40096. 801107c: 4798 blx r3
  40097. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40098. 801107e: e00f b.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40099. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40100. /*Call registered error callback*/
  40101. huart->ErrorCallback(huart);
  40102. #else
  40103. /*Call legacy weak error callback*/
  40104. HAL_UART_ErrorCallback(huart);
  40105. 8011080: 6878 ldr r0, [r7, #4]
  40106. 8011082: f000 fa6d bl 8011560 <HAL_UART_ErrorCallback>
  40107. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40108. 8011086: e00b b.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40109. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40110. /*Call registered error callback*/
  40111. huart->ErrorCallback(huart);
  40112. #else
  40113. /*Call legacy weak error callback*/
  40114. HAL_UART_ErrorCallback(huart);
  40115. 8011088: 6878 ldr r0, [r7, #4]
  40116. 801108a: f000 fa69 bl 8011560 <HAL_UART_ErrorCallback>
  40117. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40118. 801108e: e007 b.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40119. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40120. /*Call registered error callback*/
  40121. huart->ErrorCallback(huart);
  40122. #else
  40123. /*Call legacy weak error callback*/
  40124. HAL_UART_ErrorCallback(huart);
  40125. 8011090: 6878 ldr r0, [r7, #4]
  40126. 8011092: f000 fa65 bl 8011560 <HAL_UART_ErrorCallback>
  40127. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40128. huart->ErrorCode = HAL_UART_ERROR_NONE;
  40129. 8011096: 687b ldr r3, [r7, #4]
  40130. 8011098: 2200 movs r2, #0
  40131. 801109a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40132. }
  40133. }
  40134. return;
  40135. 801109e: e253 b.n 8011548 <HAL_UART_IRQHandler+0x75c>
  40136. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40137. 80110a0: bf00 nop
  40138. return;
  40139. 80110a2: e251 b.n 8011548 <HAL_UART_IRQHandler+0x75c>
  40140. 80110a4: 10000001 .word 0x10000001
  40141. 80110a8: 04000120 .word 0x04000120
  40142. 80110ac: 080126c9 .word 0x080126c9
  40143. } /* End if some error occurs */
  40144. /* Check current reception Mode :
  40145. If Reception till IDLE event has been selected : */
  40146. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  40147. 80110b0: 687b ldr r3, [r7, #4]
  40148. 80110b2: 6edb ldr r3, [r3, #108] @ 0x6c
  40149. 80110b4: 2b01 cmp r3, #1
  40150. 80110b6: f040 81e7 bne.w 8011488 <HAL_UART_IRQHandler+0x69c>
  40151. && ((isrflags & USART_ISR_IDLE) != 0U)
  40152. 80110ba: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40153. 80110be: f003 0310 and.w r3, r3, #16
  40154. 80110c2: 2b00 cmp r3, #0
  40155. 80110c4: f000 81e0 beq.w 8011488 <HAL_UART_IRQHandler+0x69c>
  40156. && ((cr1its & USART_ISR_IDLE) != 0U))
  40157. 80110c8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40158. 80110cc: f003 0310 and.w r3, r3, #16
  40159. 80110d0: 2b00 cmp r3, #0
  40160. 80110d2: f000 81d9 beq.w 8011488 <HAL_UART_IRQHandler+0x69c>
  40161. {
  40162. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  40163. 80110d6: 687b ldr r3, [r7, #4]
  40164. 80110d8: 681b ldr r3, [r3, #0]
  40165. 80110da: 2210 movs r2, #16
  40166. 80110dc: 621a str r2, [r3, #32]
  40167. /* Check if DMA mode is enabled in UART */
  40168. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40169. 80110de: 687b ldr r3, [r7, #4]
  40170. 80110e0: 681b ldr r3, [r3, #0]
  40171. 80110e2: 689b ldr r3, [r3, #8]
  40172. 80110e4: f003 0340 and.w r3, r3, #64 @ 0x40
  40173. 80110e8: 2b40 cmp r3, #64 @ 0x40
  40174. 80110ea: f040 8151 bne.w 8011390 <HAL_UART_IRQHandler+0x5a4>
  40175. {
  40176. /* DMA mode enabled */
  40177. /* Check received length : If all expected data are received, do nothing,
  40178. (DMA cplt callback will be called).
  40179. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  40180. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  40181. 80110ee: 687b ldr r3, [r7, #4]
  40182. 80110f0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40183. 80110f4: 681b ldr r3, [r3, #0]
  40184. 80110f6: 4a96 ldr r2, [pc, #600] @ (8011350 <HAL_UART_IRQHandler+0x564>)
  40185. 80110f8: 4293 cmp r3, r2
  40186. 80110fa: d068 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40187. 80110fc: 687b ldr r3, [r7, #4]
  40188. 80110fe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40189. 8011102: 681b ldr r3, [r3, #0]
  40190. 8011104: 4a93 ldr r2, [pc, #588] @ (8011354 <HAL_UART_IRQHandler+0x568>)
  40191. 8011106: 4293 cmp r3, r2
  40192. 8011108: d061 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40193. 801110a: 687b ldr r3, [r7, #4]
  40194. 801110c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40195. 8011110: 681b ldr r3, [r3, #0]
  40196. 8011112: 4a91 ldr r2, [pc, #580] @ (8011358 <HAL_UART_IRQHandler+0x56c>)
  40197. 8011114: 4293 cmp r3, r2
  40198. 8011116: d05a beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40199. 8011118: 687b ldr r3, [r7, #4]
  40200. 801111a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40201. 801111e: 681b ldr r3, [r3, #0]
  40202. 8011120: 4a8e ldr r2, [pc, #568] @ (801135c <HAL_UART_IRQHandler+0x570>)
  40203. 8011122: 4293 cmp r3, r2
  40204. 8011124: d053 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40205. 8011126: 687b ldr r3, [r7, #4]
  40206. 8011128: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40207. 801112c: 681b ldr r3, [r3, #0]
  40208. 801112e: 4a8c ldr r2, [pc, #560] @ (8011360 <HAL_UART_IRQHandler+0x574>)
  40209. 8011130: 4293 cmp r3, r2
  40210. 8011132: d04c beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40211. 8011134: 687b ldr r3, [r7, #4]
  40212. 8011136: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40213. 801113a: 681b ldr r3, [r3, #0]
  40214. 801113c: 4a89 ldr r2, [pc, #548] @ (8011364 <HAL_UART_IRQHandler+0x578>)
  40215. 801113e: 4293 cmp r3, r2
  40216. 8011140: d045 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40217. 8011142: 687b ldr r3, [r7, #4]
  40218. 8011144: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40219. 8011148: 681b ldr r3, [r3, #0]
  40220. 801114a: 4a87 ldr r2, [pc, #540] @ (8011368 <HAL_UART_IRQHandler+0x57c>)
  40221. 801114c: 4293 cmp r3, r2
  40222. 801114e: d03e beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40223. 8011150: 687b ldr r3, [r7, #4]
  40224. 8011152: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40225. 8011156: 681b ldr r3, [r3, #0]
  40226. 8011158: 4a84 ldr r2, [pc, #528] @ (801136c <HAL_UART_IRQHandler+0x580>)
  40227. 801115a: 4293 cmp r3, r2
  40228. 801115c: d037 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40229. 801115e: 687b ldr r3, [r7, #4]
  40230. 8011160: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40231. 8011164: 681b ldr r3, [r3, #0]
  40232. 8011166: 4a82 ldr r2, [pc, #520] @ (8011370 <HAL_UART_IRQHandler+0x584>)
  40233. 8011168: 4293 cmp r3, r2
  40234. 801116a: d030 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40235. 801116c: 687b ldr r3, [r7, #4]
  40236. 801116e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40237. 8011172: 681b ldr r3, [r3, #0]
  40238. 8011174: 4a7f ldr r2, [pc, #508] @ (8011374 <HAL_UART_IRQHandler+0x588>)
  40239. 8011176: 4293 cmp r3, r2
  40240. 8011178: d029 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40241. 801117a: 687b ldr r3, [r7, #4]
  40242. 801117c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40243. 8011180: 681b ldr r3, [r3, #0]
  40244. 8011182: 4a7d ldr r2, [pc, #500] @ (8011378 <HAL_UART_IRQHandler+0x58c>)
  40245. 8011184: 4293 cmp r3, r2
  40246. 8011186: d022 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40247. 8011188: 687b ldr r3, [r7, #4]
  40248. 801118a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40249. 801118e: 681b ldr r3, [r3, #0]
  40250. 8011190: 4a7a ldr r2, [pc, #488] @ (801137c <HAL_UART_IRQHandler+0x590>)
  40251. 8011192: 4293 cmp r3, r2
  40252. 8011194: d01b beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40253. 8011196: 687b ldr r3, [r7, #4]
  40254. 8011198: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40255. 801119c: 681b ldr r3, [r3, #0]
  40256. 801119e: 4a78 ldr r2, [pc, #480] @ (8011380 <HAL_UART_IRQHandler+0x594>)
  40257. 80111a0: 4293 cmp r3, r2
  40258. 80111a2: d014 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40259. 80111a4: 687b ldr r3, [r7, #4]
  40260. 80111a6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40261. 80111aa: 681b ldr r3, [r3, #0]
  40262. 80111ac: 4a75 ldr r2, [pc, #468] @ (8011384 <HAL_UART_IRQHandler+0x598>)
  40263. 80111ae: 4293 cmp r3, r2
  40264. 80111b0: d00d beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40265. 80111b2: 687b ldr r3, [r7, #4]
  40266. 80111b4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40267. 80111b8: 681b ldr r3, [r3, #0]
  40268. 80111ba: 4a73 ldr r2, [pc, #460] @ (8011388 <HAL_UART_IRQHandler+0x59c>)
  40269. 80111bc: 4293 cmp r3, r2
  40270. 80111be: d006 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40271. 80111c0: 687b ldr r3, [r7, #4]
  40272. 80111c2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40273. 80111c6: 681b ldr r3, [r3, #0]
  40274. 80111c8: 4a70 ldr r2, [pc, #448] @ (801138c <HAL_UART_IRQHandler+0x5a0>)
  40275. 80111ca: 4293 cmp r3, r2
  40276. 80111cc: d106 bne.n 80111dc <HAL_UART_IRQHandler+0x3f0>
  40277. 80111ce: 687b ldr r3, [r7, #4]
  40278. 80111d0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40279. 80111d4: 681b ldr r3, [r3, #0]
  40280. 80111d6: 685b ldr r3, [r3, #4]
  40281. 80111d8: b29b uxth r3, r3
  40282. 80111da: e005 b.n 80111e8 <HAL_UART_IRQHandler+0x3fc>
  40283. 80111dc: 687b ldr r3, [r7, #4]
  40284. 80111de: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40285. 80111e2: 681b ldr r3, [r3, #0]
  40286. 80111e4: 685b ldr r3, [r3, #4]
  40287. 80111e6: b29b uxth r3, r3
  40288. 80111e8: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  40289. if ((nb_remaining_rx_data > 0U)
  40290. 80111ec: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  40291. 80111f0: 2b00 cmp r3, #0
  40292. 80111f2: f000 81ab beq.w 801154c <HAL_UART_IRQHandler+0x760>
  40293. && (nb_remaining_rx_data < huart->RxXferSize))
  40294. 80111f6: 687b ldr r3, [r7, #4]
  40295. 80111f8: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  40296. 80111fc: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  40297. 8011200: 429a cmp r2, r3
  40298. 8011202: f080 81a3 bcs.w 801154c <HAL_UART_IRQHandler+0x760>
  40299. {
  40300. /* Reception is not complete */
  40301. huart->RxXferCount = nb_remaining_rx_data;
  40302. 8011206: 687b ldr r3, [r7, #4]
  40303. 8011208: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  40304. 801120c: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  40305. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  40306. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  40307. 8011210: 687b ldr r3, [r7, #4]
  40308. 8011212: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40309. 8011216: 69db ldr r3, [r3, #28]
  40310. 8011218: f5b3 7f80 cmp.w r3, #256 @ 0x100
  40311. 801121c: f000 8087 beq.w 801132e <HAL_UART_IRQHandler+0x542>
  40312. {
  40313. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  40314. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  40315. 8011220: 687b ldr r3, [r7, #4]
  40316. 8011222: 681b ldr r3, [r3, #0]
  40317. 8011224: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  40318. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40319. 8011228: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  40320. 801122c: e853 3f00 ldrex r3, [r3]
  40321. 8011230: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  40322. return(result);
  40323. 8011234: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  40324. 8011238: f423 7380 bic.w r3, r3, #256 @ 0x100
  40325. 801123c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  40326. 8011240: 687b ldr r3, [r7, #4]
  40327. 8011242: 681b ldr r3, [r3, #0]
  40328. 8011244: 461a mov r2, r3
  40329. 8011246: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  40330. 801124a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  40331. 801124e: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  40332. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40333. 8011252: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  40334. 8011256: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  40335. 801125a: e841 2300 strex r3, r2, [r1]
  40336. 801125e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  40337. return(result);
  40338. 8011262: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  40339. 8011266: 2b00 cmp r3, #0
  40340. 8011268: d1da bne.n 8011220 <HAL_UART_IRQHandler+0x434>
  40341. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  40342. 801126a: 687b ldr r3, [r7, #4]
  40343. 801126c: 681b ldr r3, [r3, #0]
  40344. 801126e: 3308 adds r3, #8
  40345. 8011270: 677b str r3, [r7, #116] @ 0x74
  40346. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40347. 8011272: 6f7b ldr r3, [r7, #116] @ 0x74
  40348. 8011274: e853 3f00 ldrex r3, [r3]
  40349. 8011278: 673b str r3, [r7, #112] @ 0x70
  40350. return(result);
  40351. 801127a: 6f3b ldr r3, [r7, #112] @ 0x70
  40352. 801127c: f023 0301 bic.w r3, r3, #1
  40353. 8011280: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  40354. 8011284: 687b ldr r3, [r7, #4]
  40355. 8011286: 681b ldr r3, [r3, #0]
  40356. 8011288: 3308 adds r3, #8
  40357. 801128a: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  40358. 801128e: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  40359. 8011292: 67fb str r3, [r7, #124] @ 0x7c
  40360. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40361. 8011294: 6ff9 ldr r1, [r7, #124] @ 0x7c
  40362. 8011296: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  40363. 801129a: e841 2300 strex r3, r2, [r1]
  40364. 801129e: 67bb str r3, [r7, #120] @ 0x78
  40365. return(result);
  40366. 80112a0: 6fbb ldr r3, [r7, #120] @ 0x78
  40367. 80112a2: 2b00 cmp r3, #0
  40368. 80112a4: d1e1 bne.n 801126a <HAL_UART_IRQHandler+0x47e>
  40369. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  40370. in the UART CR3 register */
  40371. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40372. 80112a6: 687b ldr r3, [r7, #4]
  40373. 80112a8: 681b ldr r3, [r3, #0]
  40374. 80112aa: 3308 adds r3, #8
  40375. 80112ac: 663b str r3, [r7, #96] @ 0x60
  40376. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40377. 80112ae: 6e3b ldr r3, [r7, #96] @ 0x60
  40378. 80112b0: e853 3f00 ldrex r3, [r3]
  40379. 80112b4: 65fb str r3, [r7, #92] @ 0x5c
  40380. return(result);
  40381. 80112b6: 6dfb ldr r3, [r7, #92] @ 0x5c
  40382. 80112b8: f023 0340 bic.w r3, r3, #64 @ 0x40
  40383. 80112bc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  40384. 80112c0: 687b ldr r3, [r7, #4]
  40385. 80112c2: 681b ldr r3, [r3, #0]
  40386. 80112c4: 3308 adds r3, #8
  40387. 80112c6: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  40388. 80112ca: 66fa str r2, [r7, #108] @ 0x6c
  40389. 80112cc: 66bb str r3, [r7, #104] @ 0x68
  40390. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40391. 80112ce: 6eb9 ldr r1, [r7, #104] @ 0x68
  40392. 80112d0: 6efa ldr r2, [r7, #108] @ 0x6c
  40393. 80112d2: e841 2300 strex r3, r2, [r1]
  40394. 80112d6: 667b str r3, [r7, #100] @ 0x64
  40395. return(result);
  40396. 80112d8: 6e7b ldr r3, [r7, #100] @ 0x64
  40397. 80112da: 2b00 cmp r3, #0
  40398. 80112dc: d1e3 bne.n 80112a6 <HAL_UART_IRQHandler+0x4ba>
  40399. /* At end of Rx process, restore huart->RxState to Ready */
  40400. huart->RxState = HAL_UART_STATE_READY;
  40401. 80112de: 687b ldr r3, [r7, #4]
  40402. 80112e0: 2220 movs r2, #32
  40403. 80112e2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  40404. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  40405. 80112e6: 687b ldr r3, [r7, #4]
  40406. 80112e8: 2200 movs r2, #0
  40407. 80112ea: 66da str r2, [r3, #108] @ 0x6c
  40408. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  40409. 80112ec: 687b ldr r3, [r7, #4]
  40410. 80112ee: 681b ldr r3, [r3, #0]
  40411. 80112f0: 64fb str r3, [r7, #76] @ 0x4c
  40412. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40413. 80112f2: 6cfb ldr r3, [r7, #76] @ 0x4c
  40414. 80112f4: e853 3f00 ldrex r3, [r3]
  40415. 80112f8: 64bb str r3, [r7, #72] @ 0x48
  40416. return(result);
  40417. 80112fa: 6cbb ldr r3, [r7, #72] @ 0x48
  40418. 80112fc: f023 0310 bic.w r3, r3, #16
  40419. 8011300: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  40420. 8011304: 687b ldr r3, [r7, #4]
  40421. 8011306: 681b ldr r3, [r3, #0]
  40422. 8011308: 461a mov r2, r3
  40423. 801130a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  40424. 801130e: 65bb str r3, [r7, #88] @ 0x58
  40425. 8011310: 657a str r2, [r7, #84] @ 0x54
  40426. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40427. 8011312: 6d79 ldr r1, [r7, #84] @ 0x54
  40428. 8011314: 6dba ldr r2, [r7, #88] @ 0x58
  40429. 8011316: e841 2300 strex r3, r2, [r1]
  40430. 801131a: 653b str r3, [r7, #80] @ 0x50
  40431. return(result);
  40432. 801131c: 6d3b ldr r3, [r7, #80] @ 0x50
  40433. 801131e: 2b00 cmp r3, #0
  40434. 8011320: d1e4 bne.n 80112ec <HAL_UART_IRQHandler+0x500>
  40435. /* Last bytes received, so no need as the abort is immediate */
  40436. (void)HAL_DMA_Abort(huart->hdmarx);
  40437. 8011322: 687b ldr r3, [r7, #4]
  40438. 8011324: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40439. 8011328: 4618 mov r0, r3
  40440. 801132a: f7f7 fa7f bl 800882c <HAL_DMA_Abort>
  40441. }
  40442. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  40443. In this case, Rx Event type is Idle Event */
  40444. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  40445. 801132e: 687b ldr r3, [r7, #4]
  40446. 8011330: 2202 movs r2, #2
  40447. 8011332: 671a str r2, [r3, #112] @ 0x70
  40448. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40449. /*Call registered Rx Event callback*/
  40450. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  40451. #else
  40452. /*Call legacy weak Rx Event callback*/
  40453. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  40454. 8011334: 687b ldr r3, [r7, #4]
  40455. 8011336: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  40456. 801133a: 687b ldr r3, [r7, #4]
  40457. 801133c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40458. 8011340: b29b uxth r3, r3
  40459. 8011342: 1ad3 subs r3, r2, r3
  40460. 8011344: b29b uxth r3, r3
  40461. 8011346: 4619 mov r1, r3
  40462. 8011348: 6878 ldr r0, [r7, #4]
  40463. 801134a: f7f3 f873 bl 8004434 <HAL_UARTEx_RxEventCallback>
  40464. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40465. }
  40466. return;
  40467. 801134e: e0fd b.n 801154c <HAL_UART_IRQHandler+0x760>
  40468. 8011350: 40020010 .word 0x40020010
  40469. 8011354: 40020028 .word 0x40020028
  40470. 8011358: 40020040 .word 0x40020040
  40471. 801135c: 40020058 .word 0x40020058
  40472. 8011360: 40020070 .word 0x40020070
  40473. 8011364: 40020088 .word 0x40020088
  40474. 8011368: 400200a0 .word 0x400200a0
  40475. 801136c: 400200b8 .word 0x400200b8
  40476. 8011370: 40020410 .word 0x40020410
  40477. 8011374: 40020428 .word 0x40020428
  40478. 8011378: 40020440 .word 0x40020440
  40479. 801137c: 40020458 .word 0x40020458
  40480. 8011380: 40020470 .word 0x40020470
  40481. 8011384: 40020488 .word 0x40020488
  40482. 8011388: 400204a0 .word 0x400204a0
  40483. 801138c: 400204b8 .word 0x400204b8
  40484. else
  40485. {
  40486. /* DMA mode not enabled */
  40487. /* Check received length : If all expected data are received, do nothing.
  40488. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  40489. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  40490. 8011390: 687b ldr r3, [r7, #4]
  40491. 8011392: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  40492. 8011396: 687b ldr r3, [r7, #4]
  40493. 8011398: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40494. 801139c: b29b uxth r3, r3
  40495. 801139e: 1ad3 subs r3, r2, r3
  40496. 80113a0: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  40497. if ((huart->RxXferCount > 0U)
  40498. 80113a4: 687b ldr r3, [r7, #4]
  40499. 80113a6: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40500. 80113aa: b29b uxth r3, r3
  40501. 80113ac: 2b00 cmp r3, #0
  40502. 80113ae: f000 80cf beq.w 8011550 <HAL_UART_IRQHandler+0x764>
  40503. && (nb_rx_data > 0U))
  40504. 80113b2: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  40505. 80113b6: 2b00 cmp r3, #0
  40506. 80113b8: f000 80ca beq.w 8011550 <HAL_UART_IRQHandler+0x764>
  40507. {
  40508. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  40509. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  40510. 80113bc: 687b ldr r3, [r7, #4]
  40511. 80113be: 681b ldr r3, [r3, #0]
  40512. 80113c0: 63bb str r3, [r7, #56] @ 0x38
  40513. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40514. 80113c2: 6bbb ldr r3, [r7, #56] @ 0x38
  40515. 80113c4: e853 3f00 ldrex r3, [r3]
  40516. 80113c8: 637b str r3, [r7, #52] @ 0x34
  40517. return(result);
  40518. 80113ca: 6b7b ldr r3, [r7, #52] @ 0x34
  40519. 80113cc: f423 7390 bic.w r3, r3, #288 @ 0x120
  40520. 80113d0: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  40521. 80113d4: 687b ldr r3, [r7, #4]
  40522. 80113d6: 681b ldr r3, [r3, #0]
  40523. 80113d8: 461a mov r2, r3
  40524. 80113da: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  40525. 80113de: 647b str r3, [r7, #68] @ 0x44
  40526. 80113e0: 643a str r2, [r7, #64] @ 0x40
  40527. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40528. 80113e2: 6c39 ldr r1, [r7, #64] @ 0x40
  40529. 80113e4: 6c7a ldr r2, [r7, #68] @ 0x44
  40530. 80113e6: e841 2300 strex r3, r2, [r1]
  40531. 80113ea: 63fb str r3, [r7, #60] @ 0x3c
  40532. return(result);
  40533. 80113ec: 6bfb ldr r3, [r7, #60] @ 0x3c
  40534. 80113ee: 2b00 cmp r3, #0
  40535. 80113f0: d1e4 bne.n 80113bc <HAL_UART_IRQHandler+0x5d0>
  40536. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  40537. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  40538. 80113f2: 687b ldr r3, [r7, #4]
  40539. 80113f4: 681b ldr r3, [r3, #0]
  40540. 80113f6: 3308 adds r3, #8
  40541. 80113f8: 627b str r3, [r7, #36] @ 0x24
  40542. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40543. 80113fa: 6a7b ldr r3, [r7, #36] @ 0x24
  40544. 80113fc: e853 3f00 ldrex r3, [r3]
  40545. 8011400: 623b str r3, [r7, #32]
  40546. return(result);
  40547. 8011402: 6a3a ldr r2, [r7, #32]
  40548. 8011404: 4b55 ldr r3, [pc, #340] @ (801155c <HAL_UART_IRQHandler+0x770>)
  40549. 8011406: 4013 ands r3, r2
  40550. 8011408: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  40551. 801140c: 687b ldr r3, [r7, #4]
  40552. 801140e: 681b ldr r3, [r3, #0]
  40553. 8011410: 3308 adds r3, #8
  40554. 8011412: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  40555. 8011416: 633a str r2, [r7, #48] @ 0x30
  40556. 8011418: 62fb str r3, [r7, #44] @ 0x2c
  40557. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40558. 801141a: 6af9 ldr r1, [r7, #44] @ 0x2c
  40559. 801141c: 6b3a ldr r2, [r7, #48] @ 0x30
  40560. 801141e: e841 2300 strex r3, r2, [r1]
  40561. 8011422: 62bb str r3, [r7, #40] @ 0x28
  40562. return(result);
  40563. 8011424: 6abb ldr r3, [r7, #40] @ 0x28
  40564. 8011426: 2b00 cmp r3, #0
  40565. 8011428: d1e3 bne.n 80113f2 <HAL_UART_IRQHandler+0x606>
  40566. /* Rx process is completed, restore huart->RxState to Ready */
  40567. huart->RxState = HAL_UART_STATE_READY;
  40568. 801142a: 687b ldr r3, [r7, #4]
  40569. 801142c: 2220 movs r2, #32
  40570. 801142e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  40571. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  40572. 8011432: 687b ldr r3, [r7, #4]
  40573. 8011434: 2200 movs r2, #0
  40574. 8011436: 66da str r2, [r3, #108] @ 0x6c
  40575. /* Clear RxISR function pointer */
  40576. huart->RxISR = NULL;
  40577. 8011438: 687b ldr r3, [r7, #4]
  40578. 801143a: 2200 movs r2, #0
  40579. 801143c: 675a str r2, [r3, #116] @ 0x74
  40580. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  40581. 801143e: 687b ldr r3, [r7, #4]
  40582. 8011440: 681b ldr r3, [r3, #0]
  40583. 8011442: 613b str r3, [r7, #16]
  40584. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40585. 8011444: 693b ldr r3, [r7, #16]
  40586. 8011446: e853 3f00 ldrex r3, [r3]
  40587. 801144a: 60fb str r3, [r7, #12]
  40588. return(result);
  40589. 801144c: 68fb ldr r3, [r7, #12]
  40590. 801144e: f023 0310 bic.w r3, r3, #16
  40591. 8011452: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  40592. 8011456: 687b ldr r3, [r7, #4]
  40593. 8011458: 681b ldr r3, [r3, #0]
  40594. 801145a: 461a mov r2, r3
  40595. 801145c: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  40596. 8011460: 61fb str r3, [r7, #28]
  40597. 8011462: 61ba str r2, [r7, #24]
  40598. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40599. 8011464: 69b9 ldr r1, [r7, #24]
  40600. 8011466: 69fa ldr r2, [r7, #28]
  40601. 8011468: e841 2300 strex r3, r2, [r1]
  40602. 801146c: 617b str r3, [r7, #20]
  40603. return(result);
  40604. 801146e: 697b ldr r3, [r7, #20]
  40605. 8011470: 2b00 cmp r3, #0
  40606. 8011472: d1e4 bne.n 801143e <HAL_UART_IRQHandler+0x652>
  40607. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  40608. In this case, Rx Event type is Idle Event */
  40609. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  40610. 8011474: 687b ldr r3, [r7, #4]
  40611. 8011476: 2202 movs r2, #2
  40612. 8011478: 671a str r2, [r3, #112] @ 0x70
  40613. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40614. /*Call registered Rx complete callback*/
  40615. huart->RxEventCallback(huart, nb_rx_data);
  40616. #else
  40617. /*Call legacy weak Rx Event callback*/
  40618. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  40619. 801147a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  40620. 801147e: 4619 mov r1, r3
  40621. 8011480: 6878 ldr r0, [r7, #4]
  40622. 8011482: f7f2 ffd7 bl 8004434 <HAL_UARTEx_RxEventCallback>
  40623. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40624. }
  40625. return;
  40626. 8011486: e063 b.n 8011550 <HAL_UART_IRQHandler+0x764>
  40627. }
  40628. }
  40629. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  40630. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  40631. 8011488: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40632. 801148c: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  40633. 8011490: 2b00 cmp r3, #0
  40634. 8011492: d00e beq.n 80114b2 <HAL_UART_IRQHandler+0x6c6>
  40635. 8011494: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40636. 8011498: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  40637. 801149c: 2b00 cmp r3, #0
  40638. 801149e: d008 beq.n 80114b2 <HAL_UART_IRQHandler+0x6c6>
  40639. {
  40640. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  40641. 80114a0: 687b ldr r3, [r7, #4]
  40642. 80114a2: 681b ldr r3, [r3, #0]
  40643. 80114a4: f44f 1280 mov.w r2, #1048576 @ 0x100000
  40644. 80114a8: 621a str r2, [r3, #32]
  40645. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40646. /* Call registered Wakeup Callback */
  40647. huart->WakeupCallback(huart);
  40648. #else
  40649. /* Call legacy weak Wakeup Callback */
  40650. HAL_UARTEx_WakeupCallback(huart);
  40651. 80114aa: 6878 ldr r0, [r7, #4]
  40652. 80114ac: f002 f80c bl 80134c8 <HAL_UARTEx_WakeupCallback>
  40653. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40654. return;
  40655. 80114b0: e051 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40656. }
  40657. /* UART in mode Transmitter ------------------------------------------------*/
  40658. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  40659. 80114b2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40660. 80114b6: f003 0380 and.w r3, r3, #128 @ 0x80
  40661. 80114ba: 2b00 cmp r3, #0
  40662. 80114bc: d014 beq.n 80114e8 <HAL_UART_IRQHandler+0x6fc>
  40663. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  40664. 80114be: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40665. 80114c2: f003 0380 and.w r3, r3, #128 @ 0x80
  40666. 80114c6: 2b00 cmp r3, #0
  40667. 80114c8: d105 bne.n 80114d6 <HAL_UART_IRQHandler+0x6ea>
  40668. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  40669. 80114ca: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40670. 80114ce: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  40671. 80114d2: 2b00 cmp r3, #0
  40672. 80114d4: d008 beq.n 80114e8 <HAL_UART_IRQHandler+0x6fc>
  40673. {
  40674. if (huart->TxISR != NULL)
  40675. 80114d6: 687b ldr r3, [r7, #4]
  40676. 80114d8: 6f9b ldr r3, [r3, #120] @ 0x78
  40677. 80114da: 2b00 cmp r3, #0
  40678. 80114dc: d03a beq.n 8011554 <HAL_UART_IRQHandler+0x768>
  40679. {
  40680. huart->TxISR(huart);
  40681. 80114de: 687b ldr r3, [r7, #4]
  40682. 80114e0: 6f9b ldr r3, [r3, #120] @ 0x78
  40683. 80114e2: 6878 ldr r0, [r7, #4]
  40684. 80114e4: 4798 blx r3
  40685. }
  40686. return;
  40687. 80114e6: e035 b.n 8011554 <HAL_UART_IRQHandler+0x768>
  40688. }
  40689. /* UART in mode Transmitter (transmission end) -----------------------------*/
  40690. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  40691. 80114e8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40692. 80114ec: f003 0340 and.w r3, r3, #64 @ 0x40
  40693. 80114f0: 2b00 cmp r3, #0
  40694. 80114f2: d009 beq.n 8011508 <HAL_UART_IRQHandler+0x71c>
  40695. 80114f4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40696. 80114f8: f003 0340 and.w r3, r3, #64 @ 0x40
  40697. 80114fc: 2b00 cmp r3, #0
  40698. 80114fe: d003 beq.n 8011508 <HAL_UART_IRQHandler+0x71c>
  40699. {
  40700. UART_EndTransmit_IT(huart);
  40701. 8011500: 6878 ldr r0, [r7, #4]
  40702. 8011502: f001 fa99 bl 8012a38 <UART_EndTransmit_IT>
  40703. return;
  40704. 8011506: e026 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40705. }
  40706. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  40707. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  40708. 8011508: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40709. 801150c: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  40710. 8011510: 2b00 cmp r3, #0
  40711. 8011512: d009 beq.n 8011528 <HAL_UART_IRQHandler+0x73c>
  40712. 8011514: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40713. 8011518: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  40714. 801151c: 2b00 cmp r3, #0
  40715. 801151e: d003 beq.n 8011528 <HAL_UART_IRQHandler+0x73c>
  40716. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40717. /* Call registered Tx Fifo Empty Callback */
  40718. huart->TxFifoEmptyCallback(huart);
  40719. #else
  40720. /* Call legacy weak Tx Fifo Empty Callback */
  40721. HAL_UARTEx_TxFifoEmptyCallback(huart);
  40722. 8011520: 6878 ldr r0, [r7, #4]
  40723. 8011522: f001 ffe5 bl 80134f0 <HAL_UARTEx_TxFifoEmptyCallback>
  40724. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40725. return;
  40726. 8011526: e016 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40727. }
  40728. /* UART RX Fifo Full occurred ----------------------------------------------*/
  40729. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  40730. 8011528: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40731. 801152c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  40732. 8011530: 2b00 cmp r3, #0
  40733. 8011532: d010 beq.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40734. 8011534: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40735. 8011538: 2b00 cmp r3, #0
  40736. 801153a: da0c bge.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40737. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40738. /* Call registered Rx Fifo Full Callback */
  40739. huart->RxFifoFullCallback(huart);
  40740. #else
  40741. /* Call legacy weak Rx Fifo Full Callback */
  40742. HAL_UARTEx_RxFifoFullCallback(huart);
  40743. 801153c: 6878 ldr r0, [r7, #4]
  40744. 801153e: f001 ffcd bl 80134dc <HAL_UARTEx_RxFifoFullCallback>
  40745. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40746. return;
  40747. 8011542: e008 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40748. return;
  40749. 8011544: bf00 nop
  40750. 8011546: e006 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40751. return;
  40752. 8011548: bf00 nop
  40753. 801154a: e004 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40754. return;
  40755. 801154c: bf00 nop
  40756. 801154e: e002 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40757. return;
  40758. 8011550: bf00 nop
  40759. 8011552: e000 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40760. return;
  40761. 8011554: bf00 nop
  40762. }
  40763. }
  40764. 8011556: 37e8 adds r7, #232 @ 0xe8
  40765. 8011558: 46bd mov sp, r7
  40766. 801155a: bd80 pop {r7, pc}
  40767. 801155c: effffffe .word 0xeffffffe
  40768. 08011560 <HAL_UART_ErrorCallback>:
  40769. * @brief UART error callback.
  40770. * @param huart UART handle.
  40771. * @retval None
  40772. */
  40773. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  40774. {
  40775. 8011560: b480 push {r7}
  40776. 8011562: b083 sub sp, #12
  40777. 8011564: af00 add r7, sp, #0
  40778. 8011566: 6078 str r0, [r7, #4]
  40779. UNUSED(huart);
  40780. /* NOTE : This function should not be modified, when the callback is needed,
  40781. the HAL_UART_ErrorCallback can be implemented in the user file.
  40782. */
  40783. }
  40784. 8011568: bf00 nop
  40785. 801156a: 370c adds r7, #12
  40786. 801156c: 46bd mov sp, r7
  40787. 801156e: f85d 7b04 ldr.w r7, [sp], #4
  40788. 8011572: 4770 bx lr
  40789. 08011574 <UART_SetConfig>:
  40790. * @brief Configure the UART peripheral.
  40791. * @param huart UART handle.
  40792. * @retval HAL status
  40793. */
  40794. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  40795. {
  40796. 8011574: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  40797. 8011578: b092 sub sp, #72 @ 0x48
  40798. 801157a: af00 add r7, sp, #0
  40799. 801157c: 6178 str r0, [r7, #20]
  40800. uint32_t tmpreg;
  40801. uint16_t brrtemp;
  40802. UART_ClockSourceTypeDef clocksource;
  40803. uint32_t usartdiv;
  40804. HAL_StatusTypeDef ret = HAL_OK;
  40805. 801157e: 2300 movs r3, #0
  40806. 8011580: f887 3042 strb.w r3, [r7, #66] @ 0x42
  40807. * the UART Word Length, Parity, Mode and oversampling:
  40808. * set the M bits according to huart->Init.WordLength value
  40809. * set PCE and PS bits according to huart->Init.Parity value
  40810. * set TE and RE bits according to huart->Init.Mode value
  40811. * set OVER8 bit according to huart->Init.OverSampling value */
  40812. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  40813. 8011584: 697b ldr r3, [r7, #20]
  40814. 8011586: 689a ldr r2, [r3, #8]
  40815. 8011588: 697b ldr r3, [r7, #20]
  40816. 801158a: 691b ldr r3, [r3, #16]
  40817. 801158c: 431a orrs r2, r3
  40818. 801158e: 697b ldr r3, [r7, #20]
  40819. 8011590: 695b ldr r3, [r3, #20]
  40820. 8011592: 431a orrs r2, r3
  40821. 8011594: 697b ldr r3, [r7, #20]
  40822. 8011596: 69db ldr r3, [r3, #28]
  40823. 8011598: 4313 orrs r3, r2
  40824. 801159a: 647b str r3, [r7, #68] @ 0x44
  40825. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  40826. 801159c: 697b ldr r3, [r7, #20]
  40827. 801159e: 681b ldr r3, [r3, #0]
  40828. 80115a0: 681a ldr r2, [r3, #0]
  40829. 80115a2: 4bbe ldr r3, [pc, #760] @ (801189c <UART_SetConfig+0x328>)
  40830. 80115a4: 4013 ands r3, r2
  40831. 80115a6: 697a ldr r2, [r7, #20]
  40832. 80115a8: 6812 ldr r2, [r2, #0]
  40833. 80115aa: 6c79 ldr r1, [r7, #68] @ 0x44
  40834. 80115ac: 430b orrs r3, r1
  40835. 80115ae: 6013 str r3, [r2, #0]
  40836. /*-------------------------- USART CR2 Configuration -----------------------*/
  40837. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  40838. * to huart->Init.StopBits value */
  40839. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  40840. 80115b0: 697b ldr r3, [r7, #20]
  40841. 80115b2: 681b ldr r3, [r3, #0]
  40842. 80115b4: 685b ldr r3, [r3, #4]
  40843. 80115b6: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  40844. 80115ba: 697b ldr r3, [r7, #20]
  40845. 80115bc: 68da ldr r2, [r3, #12]
  40846. 80115be: 697b ldr r3, [r7, #20]
  40847. 80115c0: 681b ldr r3, [r3, #0]
  40848. 80115c2: 430a orrs r2, r1
  40849. 80115c4: 605a str r2, [r3, #4]
  40850. /* Configure
  40851. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  40852. * to huart->Init.HwFlowCtl value
  40853. * - one-bit sampling method versus three samples' majority rule according
  40854. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  40855. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  40856. 80115c6: 697b ldr r3, [r7, #20]
  40857. 80115c8: 699b ldr r3, [r3, #24]
  40858. 80115ca: 647b str r3, [r7, #68] @ 0x44
  40859. if (!(UART_INSTANCE_LOWPOWER(huart)))
  40860. 80115cc: 697b ldr r3, [r7, #20]
  40861. 80115ce: 681b ldr r3, [r3, #0]
  40862. 80115d0: 4ab3 ldr r2, [pc, #716] @ (80118a0 <UART_SetConfig+0x32c>)
  40863. 80115d2: 4293 cmp r3, r2
  40864. 80115d4: d004 beq.n 80115e0 <UART_SetConfig+0x6c>
  40865. {
  40866. tmpreg |= huart->Init.OneBitSampling;
  40867. 80115d6: 697b ldr r3, [r7, #20]
  40868. 80115d8: 6a1b ldr r3, [r3, #32]
  40869. 80115da: 6c7a ldr r2, [r7, #68] @ 0x44
  40870. 80115dc: 4313 orrs r3, r2
  40871. 80115de: 647b str r3, [r7, #68] @ 0x44
  40872. }
  40873. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  40874. 80115e0: 697b ldr r3, [r7, #20]
  40875. 80115e2: 681b ldr r3, [r3, #0]
  40876. 80115e4: 689a ldr r2, [r3, #8]
  40877. 80115e6: 4baf ldr r3, [pc, #700] @ (80118a4 <UART_SetConfig+0x330>)
  40878. 80115e8: 4013 ands r3, r2
  40879. 80115ea: 697a ldr r2, [r7, #20]
  40880. 80115ec: 6812 ldr r2, [r2, #0]
  40881. 80115ee: 6c79 ldr r1, [r7, #68] @ 0x44
  40882. 80115f0: 430b orrs r3, r1
  40883. 80115f2: 6093 str r3, [r2, #8]
  40884. /*-------------------------- USART PRESC Configuration -----------------------*/
  40885. /* Configure
  40886. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  40887. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  40888. 80115f4: 697b ldr r3, [r7, #20]
  40889. 80115f6: 681b ldr r3, [r3, #0]
  40890. 80115f8: 6adb ldr r3, [r3, #44] @ 0x2c
  40891. 80115fa: f023 010f bic.w r1, r3, #15
  40892. 80115fe: 697b ldr r3, [r7, #20]
  40893. 8011600: 6a5a ldr r2, [r3, #36] @ 0x24
  40894. 8011602: 697b ldr r3, [r7, #20]
  40895. 8011604: 681b ldr r3, [r3, #0]
  40896. 8011606: 430a orrs r2, r1
  40897. 8011608: 62da str r2, [r3, #44] @ 0x2c
  40898. /*-------------------------- USART BRR Configuration -----------------------*/
  40899. UART_GETCLOCKSOURCE(huart, clocksource);
  40900. 801160a: 697b ldr r3, [r7, #20]
  40901. 801160c: 681b ldr r3, [r3, #0]
  40902. 801160e: 4aa6 ldr r2, [pc, #664] @ (80118a8 <UART_SetConfig+0x334>)
  40903. 8011610: 4293 cmp r3, r2
  40904. 8011612: d177 bne.n 8011704 <UART_SetConfig+0x190>
  40905. 8011614: 4ba5 ldr r3, [pc, #660] @ (80118ac <UART_SetConfig+0x338>)
  40906. 8011616: 6d5b ldr r3, [r3, #84] @ 0x54
  40907. 8011618: f003 0338 and.w r3, r3, #56 @ 0x38
  40908. 801161c: 2b28 cmp r3, #40 @ 0x28
  40909. 801161e: d86d bhi.n 80116fc <UART_SetConfig+0x188>
  40910. 8011620: a201 add r2, pc, #4 @ (adr r2, 8011628 <UART_SetConfig+0xb4>)
  40911. 8011622: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40912. 8011626: bf00 nop
  40913. 8011628: 080116cd .word 0x080116cd
  40914. 801162c: 080116fd .word 0x080116fd
  40915. 8011630: 080116fd .word 0x080116fd
  40916. 8011634: 080116fd .word 0x080116fd
  40917. 8011638: 080116fd .word 0x080116fd
  40918. 801163c: 080116fd .word 0x080116fd
  40919. 8011640: 080116fd .word 0x080116fd
  40920. 8011644: 080116fd .word 0x080116fd
  40921. 8011648: 080116d5 .word 0x080116d5
  40922. 801164c: 080116fd .word 0x080116fd
  40923. 8011650: 080116fd .word 0x080116fd
  40924. 8011654: 080116fd .word 0x080116fd
  40925. 8011658: 080116fd .word 0x080116fd
  40926. 801165c: 080116fd .word 0x080116fd
  40927. 8011660: 080116fd .word 0x080116fd
  40928. 8011664: 080116fd .word 0x080116fd
  40929. 8011668: 080116dd .word 0x080116dd
  40930. 801166c: 080116fd .word 0x080116fd
  40931. 8011670: 080116fd .word 0x080116fd
  40932. 8011674: 080116fd .word 0x080116fd
  40933. 8011678: 080116fd .word 0x080116fd
  40934. 801167c: 080116fd .word 0x080116fd
  40935. 8011680: 080116fd .word 0x080116fd
  40936. 8011684: 080116fd .word 0x080116fd
  40937. 8011688: 080116e5 .word 0x080116e5
  40938. 801168c: 080116fd .word 0x080116fd
  40939. 8011690: 080116fd .word 0x080116fd
  40940. 8011694: 080116fd .word 0x080116fd
  40941. 8011698: 080116fd .word 0x080116fd
  40942. 801169c: 080116fd .word 0x080116fd
  40943. 80116a0: 080116fd .word 0x080116fd
  40944. 80116a4: 080116fd .word 0x080116fd
  40945. 80116a8: 080116ed .word 0x080116ed
  40946. 80116ac: 080116fd .word 0x080116fd
  40947. 80116b0: 080116fd .word 0x080116fd
  40948. 80116b4: 080116fd .word 0x080116fd
  40949. 80116b8: 080116fd .word 0x080116fd
  40950. 80116bc: 080116fd .word 0x080116fd
  40951. 80116c0: 080116fd .word 0x080116fd
  40952. 80116c4: 080116fd .word 0x080116fd
  40953. 80116c8: 080116f5 .word 0x080116f5
  40954. 80116cc: 2301 movs r3, #1
  40955. 80116ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40956. 80116d2: e222 b.n 8011b1a <UART_SetConfig+0x5a6>
  40957. 80116d4: 2304 movs r3, #4
  40958. 80116d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40959. 80116da: e21e b.n 8011b1a <UART_SetConfig+0x5a6>
  40960. 80116dc: 2308 movs r3, #8
  40961. 80116de: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40962. 80116e2: e21a b.n 8011b1a <UART_SetConfig+0x5a6>
  40963. 80116e4: 2310 movs r3, #16
  40964. 80116e6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40965. 80116ea: e216 b.n 8011b1a <UART_SetConfig+0x5a6>
  40966. 80116ec: 2320 movs r3, #32
  40967. 80116ee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40968. 80116f2: e212 b.n 8011b1a <UART_SetConfig+0x5a6>
  40969. 80116f4: 2340 movs r3, #64 @ 0x40
  40970. 80116f6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40971. 80116fa: e20e b.n 8011b1a <UART_SetConfig+0x5a6>
  40972. 80116fc: 2380 movs r3, #128 @ 0x80
  40973. 80116fe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40974. 8011702: e20a b.n 8011b1a <UART_SetConfig+0x5a6>
  40975. 8011704: 697b ldr r3, [r7, #20]
  40976. 8011706: 681b ldr r3, [r3, #0]
  40977. 8011708: 4a69 ldr r2, [pc, #420] @ (80118b0 <UART_SetConfig+0x33c>)
  40978. 801170a: 4293 cmp r3, r2
  40979. 801170c: d130 bne.n 8011770 <UART_SetConfig+0x1fc>
  40980. 801170e: 4b67 ldr r3, [pc, #412] @ (80118ac <UART_SetConfig+0x338>)
  40981. 8011710: 6d5b ldr r3, [r3, #84] @ 0x54
  40982. 8011712: f003 0307 and.w r3, r3, #7
  40983. 8011716: 2b05 cmp r3, #5
  40984. 8011718: d826 bhi.n 8011768 <UART_SetConfig+0x1f4>
  40985. 801171a: a201 add r2, pc, #4 @ (adr r2, 8011720 <UART_SetConfig+0x1ac>)
  40986. 801171c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40987. 8011720: 08011739 .word 0x08011739
  40988. 8011724: 08011741 .word 0x08011741
  40989. 8011728: 08011749 .word 0x08011749
  40990. 801172c: 08011751 .word 0x08011751
  40991. 8011730: 08011759 .word 0x08011759
  40992. 8011734: 08011761 .word 0x08011761
  40993. 8011738: 2300 movs r3, #0
  40994. 801173a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40995. 801173e: e1ec b.n 8011b1a <UART_SetConfig+0x5a6>
  40996. 8011740: 2304 movs r3, #4
  40997. 8011742: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40998. 8011746: e1e8 b.n 8011b1a <UART_SetConfig+0x5a6>
  40999. 8011748: 2308 movs r3, #8
  41000. 801174a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41001. 801174e: e1e4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41002. 8011750: 2310 movs r3, #16
  41003. 8011752: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41004. 8011756: e1e0 b.n 8011b1a <UART_SetConfig+0x5a6>
  41005. 8011758: 2320 movs r3, #32
  41006. 801175a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41007. 801175e: e1dc b.n 8011b1a <UART_SetConfig+0x5a6>
  41008. 8011760: 2340 movs r3, #64 @ 0x40
  41009. 8011762: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41010. 8011766: e1d8 b.n 8011b1a <UART_SetConfig+0x5a6>
  41011. 8011768: 2380 movs r3, #128 @ 0x80
  41012. 801176a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41013. 801176e: e1d4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41014. 8011770: 697b ldr r3, [r7, #20]
  41015. 8011772: 681b ldr r3, [r3, #0]
  41016. 8011774: 4a4f ldr r2, [pc, #316] @ (80118b4 <UART_SetConfig+0x340>)
  41017. 8011776: 4293 cmp r3, r2
  41018. 8011778: d130 bne.n 80117dc <UART_SetConfig+0x268>
  41019. 801177a: 4b4c ldr r3, [pc, #304] @ (80118ac <UART_SetConfig+0x338>)
  41020. 801177c: 6d5b ldr r3, [r3, #84] @ 0x54
  41021. 801177e: f003 0307 and.w r3, r3, #7
  41022. 8011782: 2b05 cmp r3, #5
  41023. 8011784: d826 bhi.n 80117d4 <UART_SetConfig+0x260>
  41024. 8011786: a201 add r2, pc, #4 @ (adr r2, 801178c <UART_SetConfig+0x218>)
  41025. 8011788: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41026. 801178c: 080117a5 .word 0x080117a5
  41027. 8011790: 080117ad .word 0x080117ad
  41028. 8011794: 080117b5 .word 0x080117b5
  41029. 8011798: 080117bd .word 0x080117bd
  41030. 801179c: 080117c5 .word 0x080117c5
  41031. 80117a0: 080117cd .word 0x080117cd
  41032. 80117a4: 2300 movs r3, #0
  41033. 80117a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41034. 80117aa: e1b6 b.n 8011b1a <UART_SetConfig+0x5a6>
  41035. 80117ac: 2304 movs r3, #4
  41036. 80117ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41037. 80117b2: e1b2 b.n 8011b1a <UART_SetConfig+0x5a6>
  41038. 80117b4: 2308 movs r3, #8
  41039. 80117b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41040. 80117ba: e1ae b.n 8011b1a <UART_SetConfig+0x5a6>
  41041. 80117bc: 2310 movs r3, #16
  41042. 80117be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41043. 80117c2: e1aa b.n 8011b1a <UART_SetConfig+0x5a6>
  41044. 80117c4: 2320 movs r3, #32
  41045. 80117c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41046. 80117ca: e1a6 b.n 8011b1a <UART_SetConfig+0x5a6>
  41047. 80117cc: 2340 movs r3, #64 @ 0x40
  41048. 80117ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41049. 80117d2: e1a2 b.n 8011b1a <UART_SetConfig+0x5a6>
  41050. 80117d4: 2380 movs r3, #128 @ 0x80
  41051. 80117d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41052. 80117da: e19e b.n 8011b1a <UART_SetConfig+0x5a6>
  41053. 80117dc: 697b ldr r3, [r7, #20]
  41054. 80117de: 681b ldr r3, [r3, #0]
  41055. 80117e0: 4a35 ldr r2, [pc, #212] @ (80118b8 <UART_SetConfig+0x344>)
  41056. 80117e2: 4293 cmp r3, r2
  41057. 80117e4: d130 bne.n 8011848 <UART_SetConfig+0x2d4>
  41058. 80117e6: 4b31 ldr r3, [pc, #196] @ (80118ac <UART_SetConfig+0x338>)
  41059. 80117e8: 6d5b ldr r3, [r3, #84] @ 0x54
  41060. 80117ea: f003 0307 and.w r3, r3, #7
  41061. 80117ee: 2b05 cmp r3, #5
  41062. 80117f0: d826 bhi.n 8011840 <UART_SetConfig+0x2cc>
  41063. 80117f2: a201 add r2, pc, #4 @ (adr r2, 80117f8 <UART_SetConfig+0x284>)
  41064. 80117f4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41065. 80117f8: 08011811 .word 0x08011811
  41066. 80117fc: 08011819 .word 0x08011819
  41067. 8011800: 08011821 .word 0x08011821
  41068. 8011804: 08011829 .word 0x08011829
  41069. 8011808: 08011831 .word 0x08011831
  41070. 801180c: 08011839 .word 0x08011839
  41071. 8011810: 2300 movs r3, #0
  41072. 8011812: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41073. 8011816: e180 b.n 8011b1a <UART_SetConfig+0x5a6>
  41074. 8011818: 2304 movs r3, #4
  41075. 801181a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41076. 801181e: e17c b.n 8011b1a <UART_SetConfig+0x5a6>
  41077. 8011820: 2308 movs r3, #8
  41078. 8011822: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41079. 8011826: e178 b.n 8011b1a <UART_SetConfig+0x5a6>
  41080. 8011828: 2310 movs r3, #16
  41081. 801182a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41082. 801182e: e174 b.n 8011b1a <UART_SetConfig+0x5a6>
  41083. 8011830: 2320 movs r3, #32
  41084. 8011832: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41085. 8011836: e170 b.n 8011b1a <UART_SetConfig+0x5a6>
  41086. 8011838: 2340 movs r3, #64 @ 0x40
  41087. 801183a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41088. 801183e: e16c b.n 8011b1a <UART_SetConfig+0x5a6>
  41089. 8011840: 2380 movs r3, #128 @ 0x80
  41090. 8011842: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41091. 8011846: e168 b.n 8011b1a <UART_SetConfig+0x5a6>
  41092. 8011848: 697b ldr r3, [r7, #20]
  41093. 801184a: 681b ldr r3, [r3, #0]
  41094. 801184c: 4a1b ldr r2, [pc, #108] @ (80118bc <UART_SetConfig+0x348>)
  41095. 801184e: 4293 cmp r3, r2
  41096. 8011850: d142 bne.n 80118d8 <UART_SetConfig+0x364>
  41097. 8011852: 4b16 ldr r3, [pc, #88] @ (80118ac <UART_SetConfig+0x338>)
  41098. 8011854: 6d5b ldr r3, [r3, #84] @ 0x54
  41099. 8011856: f003 0307 and.w r3, r3, #7
  41100. 801185a: 2b05 cmp r3, #5
  41101. 801185c: d838 bhi.n 80118d0 <UART_SetConfig+0x35c>
  41102. 801185e: a201 add r2, pc, #4 @ (adr r2, 8011864 <UART_SetConfig+0x2f0>)
  41103. 8011860: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41104. 8011864: 0801187d .word 0x0801187d
  41105. 8011868: 08011885 .word 0x08011885
  41106. 801186c: 0801188d .word 0x0801188d
  41107. 8011870: 08011895 .word 0x08011895
  41108. 8011874: 080118c1 .word 0x080118c1
  41109. 8011878: 080118c9 .word 0x080118c9
  41110. 801187c: 2300 movs r3, #0
  41111. 801187e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41112. 8011882: e14a b.n 8011b1a <UART_SetConfig+0x5a6>
  41113. 8011884: 2304 movs r3, #4
  41114. 8011886: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41115. 801188a: e146 b.n 8011b1a <UART_SetConfig+0x5a6>
  41116. 801188c: 2308 movs r3, #8
  41117. 801188e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41118. 8011892: e142 b.n 8011b1a <UART_SetConfig+0x5a6>
  41119. 8011894: 2310 movs r3, #16
  41120. 8011896: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41121. 801189a: e13e b.n 8011b1a <UART_SetConfig+0x5a6>
  41122. 801189c: cfff69f3 .word 0xcfff69f3
  41123. 80118a0: 58000c00 .word 0x58000c00
  41124. 80118a4: 11fff4ff .word 0x11fff4ff
  41125. 80118a8: 40011000 .word 0x40011000
  41126. 80118ac: 58024400 .word 0x58024400
  41127. 80118b0: 40004400 .word 0x40004400
  41128. 80118b4: 40004800 .word 0x40004800
  41129. 80118b8: 40004c00 .word 0x40004c00
  41130. 80118bc: 40005000 .word 0x40005000
  41131. 80118c0: 2320 movs r3, #32
  41132. 80118c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41133. 80118c6: e128 b.n 8011b1a <UART_SetConfig+0x5a6>
  41134. 80118c8: 2340 movs r3, #64 @ 0x40
  41135. 80118ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41136. 80118ce: e124 b.n 8011b1a <UART_SetConfig+0x5a6>
  41137. 80118d0: 2380 movs r3, #128 @ 0x80
  41138. 80118d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41139. 80118d6: e120 b.n 8011b1a <UART_SetConfig+0x5a6>
  41140. 80118d8: 697b ldr r3, [r7, #20]
  41141. 80118da: 681b ldr r3, [r3, #0]
  41142. 80118dc: 4acb ldr r2, [pc, #812] @ (8011c0c <UART_SetConfig+0x698>)
  41143. 80118de: 4293 cmp r3, r2
  41144. 80118e0: d176 bne.n 80119d0 <UART_SetConfig+0x45c>
  41145. 80118e2: 4bcb ldr r3, [pc, #812] @ (8011c10 <UART_SetConfig+0x69c>)
  41146. 80118e4: 6d5b ldr r3, [r3, #84] @ 0x54
  41147. 80118e6: f003 0338 and.w r3, r3, #56 @ 0x38
  41148. 80118ea: 2b28 cmp r3, #40 @ 0x28
  41149. 80118ec: d86c bhi.n 80119c8 <UART_SetConfig+0x454>
  41150. 80118ee: a201 add r2, pc, #4 @ (adr r2, 80118f4 <UART_SetConfig+0x380>)
  41151. 80118f0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41152. 80118f4: 08011999 .word 0x08011999
  41153. 80118f8: 080119c9 .word 0x080119c9
  41154. 80118fc: 080119c9 .word 0x080119c9
  41155. 8011900: 080119c9 .word 0x080119c9
  41156. 8011904: 080119c9 .word 0x080119c9
  41157. 8011908: 080119c9 .word 0x080119c9
  41158. 801190c: 080119c9 .word 0x080119c9
  41159. 8011910: 080119c9 .word 0x080119c9
  41160. 8011914: 080119a1 .word 0x080119a1
  41161. 8011918: 080119c9 .word 0x080119c9
  41162. 801191c: 080119c9 .word 0x080119c9
  41163. 8011920: 080119c9 .word 0x080119c9
  41164. 8011924: 080119c9 .word 0x080119c9
  41165. 8011928: 080119c9 .word 0x080119c9
  41166. 801192c: 080119c9 .word 0x080119c9
  41167. 8011930: 080119c9 .word 0x080119c9
  41168. 8011934: 080119a9 .word 0x080119a9
  41169. 8011938: 080119c9 .word 0x080119c9
  41170. 801193c: 080119c9 .word 0x080119c9
  41171. 8011940: 080119c9 .word 0x080119c9
  41172. 8011944: 080119c9 .word 0x080119c9
  41173. 8011948: 080119c9 .word 0x080119c9
  41174. 801194c: 080119c9 .word 0x080119c9
  41175. 8011950: 080119c9 .word 0x080119c9
  41176. 8011954: 080119b1 .word 0x080119b1
  41177. 8011958: 080119c9 .word 0x080119c9
  41178. 801195c: 080119c9 .word 0x080119c9
  41179. 8011960: 080119c9 .word 0x080119c9
  41180. 8011964: 080119c9 .word 0x080119c9
  41181. 8011968: 080119c9 .word 0x080119c9
  41182. 801196c: 080119c9 .word 0x080119c9
  41183. 8011970: 080119c9 .word 0x080119c9
  41184. 8011974: 080119b9 .word 0x080119b9
  41185. 8011978: 080119c9 .word 0x080119c9
  41186. 801197c: 080119c9 .word 0x080119c9
  41187. 8011980: 080119c9 .word 0x080119c9
  41188. 8011984: 080119c9 .word 0x080119c9
  41189. 8011988: 080119c9 .word 0x080119c9
  41190. 801198c: 080119c9 .word 0x080119c9
  41191. 8011990: 080119c9 .word 0x080119c9
  41192. 8011994: 080119c1 .word 0x080119c1
  41193. 8011998: 2301 movs r3, #1
  41194. 801199a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41195. 801199e: e0bc b.n 8011b1a <UART_SetConfig+0x5a6>
  41196. 80119a0: 2304 movs r3, #4
  41197. 80119a2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41198. 80119a6: e0b8 b.n 8011b1a <UART_SetConfig+0x5a6>
  41199. 80119a8: 2308 movs r3, #8
  41200. 80119aa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41201. 80119ae: e0b4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41202. 80119b0: 2310 movs r3, #16
  41203. 80119b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41204. 80119b6: e0b0 b.n 8011b1a <UART_SetConfig+0x5a6>
  41205. 80119b8: 2320 movs r3, #32
  41206. 80119ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41207. 80119be: e0ac b.n 8011b1a <UART_SetConfig+0x5a6>
  41208. 80119c0: 2340 movs r3, #64 @ 0x40
  41209. 80119c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41210. 80119c6: e0a8 b.n 8011b1a <UART_SetConfig+0x5a6>
  41211. 80119c8: 2380 movs r3, #128 @ 0x80
  41212. 80119ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41213. 80119ce: e0a4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41214. 80119d0: 697b ldr r3, [r7, #20]
  41215. 80119d2: 681b ldr r3, [r3, #0]
  41216. 80119d4: 4a8f ldr r2, [pc, #572] @ (8011c14 <UART_SetConfig+0x6a0>)
  41217. 80119d6: 4293 cmp r3, r2
  41218. 80119d8: d130 bne.n 8011a3c <UART_SetConfig+0x4c8>
  41219. 80119da: 4b8d ldr r3, [pc, #564] @ (8011c10 <UART_SetConfig+0x69c>)
  41220. 80119dc: 6d5b ldr r3, [r3, #84] @ 0x54
  41221. 80119de: f003 0307 and.w r3, r3, #7
  41222. 80119e2: 2b05 cmp r3, #5
  41223. 80119e4: d826 bhi.n 8011a34 <UART_SetConfig+0x4c0>
  41224. 80119e6: a201 add r2, pc, #4 @ (adr r2, 80119ec <UART_SetConfig+0x478>)
  41225. 80119e8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41226. 80119ec: 08011a05 .word 0x08011a05
  41227. 80119f0: 08011a0d .word 0x08011a0d
  41228. 80119f4: 08011a15 .word 0x08011a15
  41229. 80119f8: 08011a1d .word 0x08011a1d
  41230. 80119fc: 08011a25 .word 0x08011a25
  41231. 8011a00: 08011a2d .word 0x08011a2d
  41232. 8011a04: 2300 movs r3, #0
  41233. 8011a06: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41234. 8011a0a: e086 b.n 8011b1a <UART_SetConfig+0x5a6>
  41235. 8011a0c: 2304 movs r3, #4
  41236. 8011a0e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41237. 8011a12: e082 b.n 8011b1a <UART_SetConfig+0x5a6>
  41238. 8011a14: 2308 movs r3, #8
  41239. 8011a16: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41240. 8011a1a: e07e b.n 8011b1a <UART_SetConfig+0x5a6>
  41241. 8011a1c: 2310 movs r3, #16
  41242. 8011a1e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41243. 8011a22: e07a b.n 8011b1a <UART_SetConfig+0x5a6>
  41244. 8011a24: 2320 movs r3, #32
  41245. 8011a26: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41246. 8011a2a: e076 b.n 8011b1a <UART_SetConfig+0x5a6>
  41247. 8011a2c: 2340 movs r3, #64 @ 0x40
  41248. 8011a2e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41249. 8011a32: e072 b.n 8011b1a <UART_SetConfig+0x5a6>
  41250. 8011a34: 2380 movs r3, #128 @ 0x80
  41251. 8011a36: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41252. 8011a3a: e06e b.n 8011b1a <UART_SetConfig+0x5a6>
  41253. 8011a3c: 697b ldr r3, [r7, #20]
  41254. 8011a3e: 681b ldr r3, [r3, #0]
  41255. 8011a40: 4a75 ldr r2, [pc, #468] @ (8011c18 <UART_SetConfig+0x6a4>)
  41256. 8011a42: 4293 cmp r3, r2
  41257. 8011a44: d130 bne.n 8011aa8 <UART_SetConfig+0x534>
  41258. 8011a46: 4b72 ldr r3, [pc, #456] @ (8011c10 <UART_SetConfig+0x69c>)
  41259. 8011a48: 6d5b ldr r3, [r3, #84] @ 0x54
  41260. 8011a4a: f003 0307 and.w r3, r3, #7
  41261. 8011a4e: 2b05 cmp r3, #5
  41262. 8011a50: d826 bhi.n 8011aa0 <UART_SetConfig+0x52c>
  41263. 8011a52: a201 add r2, pc, #4 @ (adr r2, 8011a58 <UART_SetConfig+0x4e4>)
  41264. 8011a54: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41265. 8011a58: 08011a71 .word 0x08011a71
  41266. 8011a5c: 08011a79 .word 0x08011a79
  41267. 8011a60: 08011a81 .word 0x08011a81
  41268. 8011a64: 08011a89 .word 0x08011a89
  41269. 8011a68: 08011a91 .word 0x08011a91
  41270. 8011a6c: 08011a99 .word 0x08011a99
  41271. 8011a70: 2300 movs r3, #0
  41272. 8011a72: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41273. 8011a76: e050 b.n 8011b1a <UART_SetConfig+0x5a6>
  41274. 8011a78: 2304 movs r3, #4
  41275. 8011a7a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41276. 8011a7e: e04c b.n 8011b1a <UART_SetConfig+0x5a6>
  41277. 8011a80: 2308 movs r3, #8
  41278. 8011a82: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41279. 8011a86: e048 b.n 8011b1a <UART_SetConfig+0x5a6>
  41280. 8011a88: 2310 movs r3, #16
  41281. 8011a8a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41282. 8011a8e: e044 b.n 8011b1a <UART_SetConfig+0x5a6>
  41283. 8011a90: 2320 movs r3, #32
  41284. 8011a92: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41285. 8011a96: e040 b.n 8011b1a <UART_SetConfig+0x5a6>
  41286. 8011a98: 2340 movs r3, #64 @ 0x40
  41287. 8011a9a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41288. 8011a9e: e03c b.n 8011b1a <UART_SetConfig+0x5a6>
  41289. 8011aa0: 2380 movs r3, #128 @ 0x80
  41290. 8011aa2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41291. 8011aa6: e038 b.n 8011b1a <UART_SetConfig+0x5a6>
  41292. 8011aa8: 697b ldr r3, [r7, #20]
  41293. 8011aaa: 681b ldr r3, [r3, #0]
  41294. 8011aac: 4a5b ldr r2, [pc, #364] @ (8011c1c <UART_SetConfig+0x6a8>)
  41295. 8011aae: 4293 cmp r3, r2
  41296. 8011ab0: d130 bne.n 8011b14 <UART_SetConfig+0x5a0>
  41297. 8011ab2: 4b57 ldr r3, [pc, #348] @ (8011c10 <UART_SetConfig+0x69c>)
  41298. 8011ab4: 6d9b ldr r3, [r3, #88] @ 0x58
  41299. 8011ab6: f003 0307 and.w r3, r3, #7
  41300. 8011aba: 2b05 cmp r3, #5
  41301. 8011abc: d826 bhi.n 8011b0c <UART_SetConfig+0x598>
  41302. 8011abe: a201 add r2, pc, #4 @ (adr r2, 8011ac4 <UART_SetConfig+0x550>)
  41303. 8011ac0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41304. 8011ac4: 08011add .word 0x08011add
  41305. 8011ac8: 08011ae5 .word 0x08011ae5
  41306. 8011acc: 08011aed .word 0x08011aed
  41307. 8011ad0: 08011af5 .word 0x08011af5
  41308. 8011ad4: 08011afd .word 0x08011afd
  41309. 8011ad8: 08011b05 .word 0x08011b05
  41310. 8011adc: 2302 movs r3, #2
  41311. 8011ade: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41312. 8011ae2: e01a b.n 8011b1a <UART_SetConfig+0x5a6>
  41313. 8011ae4: 2304 movs r3, #4
  41314. 8011ae6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41315. 8011aea: e016 b.n 8011b1a <UART_SetConfig+0x5a6>
  41316. 8011aec: 2308 movs r3, #8
  41317. 8011aee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41318. 8011af2: e012 b.n 8011b1a <UART_SetConfig+0x5a6>
  41319. 8011af4: 2310 movs r3, #16
  41320. 8011af6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41321. 8011afa: e00e b.n 8011b1a <UART_SetConfig+0x5a6>
  41322. 8011afc: 2320 movs r3, #32
  41323. 8011afe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41324. 8011b02: e00a b.n 8011b1a <UART_SetConfig+0x5a6>
  41325. 8011b04: 2340 movs r3, #64 @ 0x40
  41326. 8011b06: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41327. 8011b0a: e006 b.n 8011b1a <UART_SetConfig+0x5a6>
  41328. 8011b0c: 2380 movs r3, #128 @ 0x80
  41329. 8011b0e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41330. 8011b12: e002 b.n 8011b1a <UART_SetConfig+0x5a6>
  41331. 8011b14: 2380 movs r3, #128 @ 0x80
  41332. 8011b16: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41333. /* Check LPUART instance */
  41334. if (UART_INSTANCE_LOWPOWER(huart))
  41335. 8011b1a: 697b ldr r3, [r7, #20]
  41336. 8011b1c: 681b ldr r3, [r3, #0]
  41337. 8011b1e: 4a3f ldr r2, [pc, #252] @ (8011c1c <UART_SetConfig+0x6a8>)
  41338. 8011b20: 4293 cmp r3, r2
  41339. 8011b22: f040 80f8 bne.w 8011d16 <UART_SetConfig+0x7a2>
  41340. {
  41341. /* Retrieve frequency clock */
  41342. switch (clocksource)
  41343. 8011b26: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41344. 8011b2a: 2b20 cmp r3, #32
  41345. 8011b2c: dc46 bgt.n 8011bbc <UART_SetConfig+0x648>
  41346. 8011b2e: 2b02 cmp r3, #2
  41347. 8011b30: f2c0 8082 blt.w 8011c38 <UART_SetConfig+0x6c4>
  41348. 8011b34: 3b02 subs r3, #2
  41349. 8011b36: 2b1e cmp r3, #30
  41350. 8011b38: d87e bhi.n 8011c38 <UART_SetConfig+0x6c4>
  41351. 8011b3a: a201 add r2, pc, #4 @ (adr r2, 8011b40 <UART_SetConfig+0x5cc>)
  41352. 8011b3c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41353. 8011b40: 08011bc3 .word 0x08011bc3
  41354. 8011b44: 08011c39 .word 0x08011c39
  41355. 8011b48: 08011bcb .word 0x08011bcb
  41356. 8011b4c: 08011c39 .word 0x08011c39
  41357. 8011b50: 08011c39 .word 0x08011c39
  41358. 8011b54: 08011c39 .word 0x08011c39
  41359. 8011b58: 08011bdb .word 0x08011bdb
  41360. 8011b5c: 08011c39 .word 0x08011c39
  41361. 8011b60: 08011c39 .word 0x08011c39
  41362. 8011b64: 08011c39 .word 0x08011c39
  41363. 8011b68: 08011c39 .word 0x08011c39
  41364. 8011b6c: 08011c39 .word 0x08011c39
  41365. 8011b70: 08011c39 .word 0x08011c39
  41366. 8011b74: 08011c39 .word 0x08011c39
  41367. 8011b78: 08011beb .word 0x08011beb
  41368. 8011b7c: 08011c39 .word 0x08011c39
  41369. 8011b80: 08011c39 .word 0x08011c39
  41370. 8011b84: 08011c39 .word 0x08011c39
  41371. 8011b88: 08011c39 .word 0x08011c39
  41372. 8011b8c: 08011c39 .word 0x08011c39
  41373. 8011b90: 08011c39 .word 0x08011c39
  41374. 8011b94: 08011c39 .word 0x08011c39
  41375. 8011b98: 08011c39 .word 0x08011c39
  41376. 8011b9c: 08011c39 .word 0x08011c39
  41377. 8011ba0: 08011c39 .word 0x08011c39
  41378. 8011ba4: 08011c39 .word 0x08011c39
  41379. 8011ba8: 08011c39 .word 0x08011c39
  41380. 8011bac: 08011c39 .word 0x08011c39
  41381. 8011bb0: 08011c39 .word 0x08011c39
  41382. 8011bb4: 08011c39 .word 0x08011c39
  41383. 8011bb8: 08011c2b .word 0x08011c2b
  41384. 8011bbc: 2b40 cmp r3, #64 @ 0x40
  41385. 8011bbe: d037 beq.n 8011c30 <UART_SetConfig+0x6bc>
  41386. 8011bc0: e03a b.n 8011c38 <UART_SetConfig+0x6c4>
  41387. {
  41388. case UART_CLOCKSOURCE_D3PCLK1:
  41389. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  41390. 8011bc2: f7fc f9fd bl 800dfc0 <HAL_RCCEx_GetD3PCLK1Freq>
  41391. 8011bc6: 63f8 str r0, [r7, #60] @ 0x3c
  41392. break;
  41393. 8011bc8: e03c b.n 8011c44 <UART_SetConfig+0x6d0>
  41394. case UART_CLOCKSOURCE_PLL2:
  41395. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41396. 8011bca: f107 0324 add.w r3, r7, #36 @ 0x24
  41397. 8011bce: 4618 mov r0, r3
  41398. 8011bd0: f7fc fa0c bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  41399. pclk = pll2_clocks.PLL2_Q_Frequency;
  41400. 8011bd4: 6abb ldr r3, [r7, #40] @ 0x28
  41401. 8011bd6: 63fb str r3, [r7, #60] @ 0x3c
  41402. break;
  41403. 8011bd8: e034 b.n 8011c44 <UART_SetConfig+0x6d0>
  41404. case UART_CLOCKSOURCE_PLL3:
  41405. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41406. 8011bda: f107 0318 add.w r3, r7, #24
  41407. 8011bde: 4618 mov r0, r3
  41408. 8011be0: f7fc fb58 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  41409. pclk = pll3_clocks.PLL3_Q_Frequency;
  41410. 8011be4: 69fb ldr r3, [r7, #28]
  41411. 8011be6: 63fb str r3, [r7, #60] @ 0x3c
  41412. break;
  41413. 8011be8: e02c b.n 8011c44 <UART_SetConfig+0x6d0>
  41414. case UART_CLOCKSOURCE_HSI:
  41415. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41416. 8011bea: 4b09 ldr r3, [pc, #36] @ (8011c10 <UART_SetConfig+0x69c>)
  41417. 8011bec: 681b ldr r3, [r3, #0]
  41418. 8011bee: f003 0320 and.w r3, r3, #32
  41419. 8011bf2: 2b00 cmp r3, #0
  41420. 8011bf4: d016 beq.n 8011c24 <UART_SetConfig+0x6b0>
  41421. {
  41422. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41423. 8011bf6: 4b06 ldr r3, [pc, #24] @ (8011c10 <UART_SetConfig+0x69c>)
  41424. 8011bf8: 681b ldr r3, [r3, #0]
  41425. 8011bfa: 08db lsrs r3, r3, #3
  41426. 8011bfc: f003 0303 and.w r3, r3, #3
  41427. 8011c00: 4a07 ldr r2, [pc, #28] @ (8011c20 <UART_SetConfig+0x6ac>)
  41428. 8011c02: fa22 f303 lsr.w r3, r2, r3
  41429. 8011c06: 63fb str r3, [r7, #60] @ 0x3c
  41430. }
  41431. else
  41432. {
  41433. pclk = (uint32_t) HSI_VALUE;
  41434. }
  41435. break;
  41436. 8011c08: e01c b.n 8011c44 <UART_SetConfig+0x6d0>
  41437. 8011c0a: bf00 nop
  41438. 8011c0c: 40011400 .word 0x40011400
  41439. 8011c10: 58024400 .word 0x58024400
  41440. 8011c14: 40007800 .word 0x40007800
  41441. 8011c18: 40007c00 .word 0x40007c00
  41442. 8011c1c: 58000c00 .word 0x58000c00
  41443. 8011c20: 03d09000 .word 0x03d09000
  41444. pclk = (uint32_t) HSI_VALUE;
  41445. 8011c24: 4b9d ldr r3, [pc, #628] @ (8011e9c <UART_SetConfig+0x928>)
  41446. 8011c26: 63fb str r3, [r7, #60] @ 0x3c
  41447. break;
  41448. 8011c28: e00c b.n 8011c44 <UART_SetConfig+0x6d0>
  41449. case UART_CLOCKSOURCE_CSI:
  41450. pclk = (uint32_t) CSI_VALUE;
  41451. 8011c2a: 4b9d ldr r3, [pc, #628] @ (8011ea0 <UART_SetConfig+0x92c>)
  41452. 8011c2c: 63fb str r3, [r7, #60] @ 0x3c
  41453. break;
  41454. 8011c2e: e009 b.n 8011c44 <UART_SetConfig+0x6d0>
  41455. case UART_CLOCKSOURCE_LSE:
  41456. pclk = (uint32_t) LSE_VALUE;
  41457. 8011c30: f44f 4300 mov.w r3, #32768 @ 0x8000
  41458. 8011c34: 63fb str r3, [r7, #60] @ 0x3c
  41459. break;
  41460. 8011c36: e005 b.n 8011c44 <UART_SetConfig+0x6d0>
  41461. default:
  41462. pclk = 0U;
  41463. 8011c38: 2300 movs r3, #0
  41464. 8011c3a: 63fb str r3, [r7, #60] @ 0x3c
  41465. ret = HAL_ERROR;
  41466. 8011c3c: 2301 movs r3, #1
  41467. 8011c3e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41468. break;
  41469. 8011c42: bf00 nop
  41470. }
  41471. /* If proper clock source reported */
  41472. if (pclk != 0U)
  41473. 8011c44: 6bfb ldr r3, [r7, #60] @ 0x3c
  41474. 8011c46: 2b00 cmp r3, #0
  41475. 8011c48: f000 81de beq.w 8012008 <UART_SetConfig+0xa94>
  41476. {
  41477. /* Compute clock after Prescaler */
  41478. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  41479. 8011c4c: 697b ldr r3, [r7, #20]
  41480. 8011c4e: 6a5b ldr r3, [r3, #36] @ 0x24
  41481. 8011c50: 4a94 ldr r2, [pc, #592] @ (8011ea4 <UART_SetConfig+0x930>)
  41482. 8011c52: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41483. 8011c56: 461a mov r2, r3
  41484. 8011c58: 6bfb ldr r3, [r7, #60] @ 0x3c
  41485. 8011c5a: fbb3 f3f2 udiv r3, r3, r2
  41486. 8011c5e: 633b str r3, [r7, #48] @ 0x30
  41487. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  41488. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  41489. 8011c60: 697b ldr r3, [r7, #20]
  41490. 8011c62: 685a ldr r2, [r3, #4]
  41491. 8011c64: 4613 mov r3, r2
  41492. 8011c66: 005b lsls r3, r3, #1
  41493. 8011c68: 4413 add r3, r2
  41494. 8011c6a: 6b3a ldr r2, [r7, #48] @ 0x30
  41495. 8011c6c: 429a cmp r2, r3
  41496. 8011c6e: d305 bcc.n 8011c7c <UART_SetConfig+0x708>
  41497. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  41498. 8011c70: 697b ldr r3, [r7, #20]
  41499. 8011c72: 685b ldr r3, [r3, #4]
  41500. 8011c74: 031b lsls r3, r3, #12
  41501. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  41502. 8011c76: 6b3a ldr r2, [r7, #48] @ 0x30
  41503. 8011c78: 429a cmp r2, r3
  41504. 8011c7a: d903 bls.n 8011c84 <UART_SetConfig+0x710>
  41505. {
  41506. ret = HAL_ERROR;
  41507. 8011c7c: 2301 movs r3, #1
  41508. 8011c7e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41509. 8011c82: e1c1 b.n 8012008 <UART_SetConfig+0xa94>
  41510. }
  41511. else
  41512. {
  41513. /* Check computed UsartDiv value is in allocated range
  41514. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  41515. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41516. 8011c84: 6bfb ldr r3, [r7, #60] @ 0x3c
  41517. 8011c86: 2200 movs r2, #0
  41518. 8011c88: 60bb str r3, [r7, #8]
  41519. 8011c8a: 60fa str r2, [r7, #12]
  41520. 8011c8c: 697b ldr r3, [r7, #20]
  41521. 8011c8e: 6a5b ldr r3, [r3, #36] @ 0x24
  41522. 8011c90: 4a84 ldr r2, [pc, #528] @ (8011ea4 <UART_SetConfig+0x930>)
  41523. 8011c92: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41524. 8011c96: b29b uxth r3, r3
  41525. 8011c98: 2200 movs r2, #0
  41526. 8011c9a: 603b str r3, [r7, #0]
  41527. 8011c9c: 607a str r2, [r7, #4]
  41528. 8011c9e: e9d7 2300 ldrd r2, r3, [r7]
  41529. 8011ca2: e9d7 0102 ldrd r0, r1, [r7, #8]
  41530. 8011ca6: f7ee fb6b bl 8000380 <__aeabi_uldivmod>
  41531. 8011caa: 4602 mov r2, r0
  41532. 8011cac: 460b mov r3, r1
  41533. 8011cae: 4610 mov r0, r2
  41534. 8011cb0: 4619 mov r1, r3
  41535. 8011cb2: f04f 0200 mov.w r2, #0
  41536. 8011cb6: f04f 0300 mov.w r3, #0
  41537. 8011cba: 020b lsls r3, r1, #8
  41538. 8011cbc: ea43 6310 orr.w r3, r3, r0, lsr #24
  41539. 8011cc0: 0202 lsls r2, r0, #8
  41540. 8011cc2: 6979 ldr r1, [r7, #20]
  41541. 8011cc4: 6849 ldr r1, [r1, #4]
  41542. 8011cc6: 0849 lsrs r1, r1, #1
  41543. 8011cc8: 2000 movs r0, #0
  41544. 8011cca: 460c mov r4, r1
  41545. 8011ccc: 4605 mov r5, r0
  41546. 8011cce: eb12 0804 adds.w r8, r2, r4
  41547. 8011cd2: eb43 0905 adc.w r9, r3, r5
  41548. 8011cd6: 697b ldr r3, [r7, #20]
  41549. 8011cd8: 685b ldr r3, [r3, #4]
  41550. 8011cda: 2200 movs r2, #0
  41551. 8011cdc: 469a mov sl, r3
  41552. 8011cde: 4693 mov fp, r2
  41553. 8011ce0: 4652 mov r2, sl
  41554. 8011ce2: 465b mov r3, fp
  41555. 8011ce4: 4640 mov r0, r8
  41556. 8011ce6: 4649 mov r1, r9
  41557. 8011ce8: f7ee fb4a bl 8000380 <__aeabi_uldivmod>
  41558. 8011cec: 4602 mov r2, r0
  41559. 8011cee: 460b mov r3, r1
  41560. 8011cf0: 4613 mov r3, r2
  41561. 8011cf2: 63bb str r3, [r7, #56] @ 0x38
  41562. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  41563. 8011cf4: 6bbb ldr r3, [r7, #56] @ 0x38
  41564. 8011cf6: f5b3 7f40 cmp.w r3, #768 @ 0x300
  41565. 8011cfa: d308 bcc.n 8011d0e <UART_SetConfig+0x79a>
  41566. 8011cfc: 6bbb ldr r3, [r7, #56] @ 0x38
  41567. 8011cfe: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  41568. 8011d02: d204 bcs.n 8011d0e <UART_SetConfig+0x79a>
  41569. {
  41570. huart->Instance->BRR = usartdiv;
  41571. 8011d04: 697b ldr r3, [r7, #20]
  41572. 8011d06: 681b ldr r3, [r3, #0]
  41573. 8011d08: 6bba ldr r2, [r7, #56] @ 0x38
  41574. 8011d0a: 60da str r2, [r3, #12]
  41575. 8011d0c: e17c b.n 8012008 <UART_SetConfig+0xa94>
  41576. }
  41577. else
  41578. {
  41579. ret = HAL_ERROR;
  41580. 8011d0e: 2301 movs r3, #1
  41581. 8011d10: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41582. 8011d14: e178 b.n 8012008 <UART_SetConfig+0xa94>
  41583. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  41584. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  41585. } /* if (pclk != 0) */
  41586. }
  41587. /* Check UART Over Sampling to set Baud Rate Register */
  41588. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  41589. 8011d16: 697b ldr r3, [r7, #20]
  41590. 8011d18: 69db ldr r3, [r3, #28]
  41591. 8011d1a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  41592. 8011d1e: f040 80c5 bne.w 8011eac <UART_SetConfig+0x938>
  41593. {
  41594. switch (clocksource)
  41595. 8011d22: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41596. 8011d26: 2b20 cmp r3, #32
  41597. 8011d28: dc48 bgt.n 8011dbc <UART_SetConfig+0x848>
  41598. 8011d2a: 2b00 cmp r3, #0
  41599. 8011d2c: db7b blt.n 8011e26 <UART_SetConfig+0x8b2>
  41600. 8011d2e: 2b20 cmp r3, #32
  41601. 8011d30: d879 bhi.n 8011e26 <UART_SetConfig+0x8b2>
  41602. 8011d32: a201 add r2, pc, #4 @ (adr r2, 8011d38 <UART_SetConfig+0x7c4>)
  41603. 8011d34: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41604. 8011d38: 08011dc3 .word 0x08011dc3
  41605. 8011d3c: 08011dcb .word 0x08011dcb
  41606. 8011d40: 08011e27 .word 0x08011e27
  41607. 8011d44: 08011e27 .word 0x08011e27
  41608. 8011d48: 08011dd3 .word 0x08011dd3
  41609. 8011d4c: 08011e27 .word 0x08011e27
  41610. 8011d50: 08011e27 .word 0x08011e27
  41611. 8011d54: 08011e27 .word 0x08011e27
  41612. 8011d58: 08011de3 .word 0x08011de3
  41613. 8011d5c: 08011e27 .word 0x08011e27
  41614. 8011d60: 08011e27 .word 0x08011e27
  41615. 8011d64: 08011e27 .word 0x08011e27
  41616. 8011d68: 08011e27 .word 0x08011e27
  41617. 8011d6c: 08011e27 .word 0x08011e27
  41618. 8011d70: 08011e27 .word 0x08011e27
  41619. 8011d74: 08011e27 .word 0x08011e27
  41620. 8011d78: 08011df3 .word 0x08011df3
  41621. 8011d7c: 08011e27 .word 0x08011e27
  41622. 8011d80: 08011e27 .word 0x08011e27
  41623. 8011d84: 08011e27 .word 0x08011e27
  41624. 8011d88: 08011e27 .word 0x08011e27
  41625. 8011d8c: 08011e27 .word 0x08011e27
  41626. 8011d90: 08011e27 .word 0x08011e27
  41627. 8011d94: 08011e27 .word 0x08011e27
  41628. 8011d98: 08011e27 .word 0x08011e27
  41629. 8011d9c: 08011e27 .word 0x08011e27
  41630. 8011da0: 08011e27 .word 0x08011e27
  41631. 8011da4: 08011e27 .word 0x08011e27
  41632. 8011da8: 08011e27 .word 0x08011e27
  41633. 8011dac: 08011e27 .word 0x08011e27
  41634. 8011db0: 08011e27 .word 0x08011e27
  41635. 8011db4: 08011e27 .word 0x08011e27
  41636. 8011db8: 08011e19 .word 0x08011e19
  41637. 8011dbc: 2b40 cmp r3, #64 @ 0x40
  41638. 8011dbe: d02e beq.n 8011e1e <UART_SetConfig+0x8aa>
  41639. 8011dc0: e031 b.n 8011e26 <UART_SetConfig+0x8b2>
  41640. {
  41641. case UART_CLOCKSOURCE_D2PCLK1:
  41642. pclk = HAL_RCC_GetPCLK1Freq();
  41643. 8011dc2: f7fa f921 bl 800c008 <HAL_RCC_GetPCLK1Freq>
  41644. 8011dc6: 63f8 str r0, [r7, #60] @ 0x3c
  41645. break;
  41646. 8011dc8: e033 b.n 8011e32 <UART_SetConfig+0x8be>
  41647. case UART_CLOCKSOURCE_D2PCLK2:
  41648. pclk = HAL_RCC_GetPCLK2Freq();
  41649. 8011dca: f7fa f933 bl 800c034 <HAL_RCC_GetPCLK2Freq>
  41650. 8011dce: 63f8 str r0, [r7, #60] @ 0x3c
  41651. break;
  41652. 8011dd0: e02f b.n 8011e32 <UART_SetConfig+0x8be>
  41653. case UART_CLOCKSOURCE_PLL2:
  41654. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41655. 8011dd2: f107 0324 add.w r3, r7, #36 @ 0x24
  41656. 8011dd6: 4618 mov r0, r3
  41657. 8011dd8: f7fc f908 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  41658. pclk = pll2_clocks.PLL2_Q_Frequency;
  41659. 8011ddc: 6abb ldr r3, [r7, #40] @ 0x28
  41660. 8011dde: 63fb str r3, [r7, #60] @ 0x3c
  41661. break;
  41662. 8011de0: e027 b.n 8011e32 <UART_SetConfig+0x8be>
  41663. case UART_CLOCKSOURCE_PLL3:
  41664. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41665. 8011de2: f107 0318 add.w r3, r7, #24
  41666. 8011de6: 4618 mov r0, r3
  41667. 8011de8: f7fc fa54 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  41668. pclk = pll3_clocks.PLL3_Q_Frequency;
  41669. 8011dec: 69fb ldr r3, [r7, #28]
  41670. 8011dee: 63fb str r3, [r7, #60] @ 0x3c
  41671. break;
  41672. 8011df0: e01f b.n 8011e32 <UART_SetConfig+0x8be>
  41673. case UART_CLOCKSOURCE_HSI:
  41674. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41675. 8011df2: 4b2d ldr r3, [pc, #180] @ (8011ea8 <UART_SetConfig+0x934>)
  41676. 8011df4: 681b ldr r3, [r3, #0]
  41677. 8011df6: f003 0320 and.w r3, r3, #32
  41678. 8011dfa: 2b00 cmp r3, #0
  41679. 8011dfc: d009 beq.n 8011e12 <UART_SetConfig+0x89e>
  41680. {
  41681. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41682. 8011dfe: 4b2a ldr r3, [pc, #168] @ (8011ea8 <UART_SetConfig+0x934>)
  41683. 8011e00: 681b ldr r3, [r3, #0]
  41684. 8011e02: 08db lsrs r3, r3, #3
  41685. 8011e04: f003 0303 and.w r3, r3, #3
  41686. 8011e08: 4a24 ldr r2, [pc, #144] @ (8011e9c <UART_SetConfig+0x928>)
  41687. 8011e0a: fa22 f303 lsr.w r3, r2, r3
  41688. 8011e0e: 63fb str r3, [r7, #60] @ 0x3c
  41689. }
  41690. else
  41691. {
  41692. pclk = (uint32_t) HSI_VALUE;
  41693. }
  41694. break;
  41695. 8011e10: e00f b.n 8011e32 <UART_SetConfig+0x8be>
  41696. pclk = (uint32_t) HSI_VALUE;
  41697. 8011e12: 4b22 ldr r3, [pc, #136] @ (8011e9c <UART_SetConfig+0x928>)
  41698. 8011e14: 63fb str r3, [r7, #60] @ 0x3c
  41699. break;
  41700. 8011e16: e00c b.n 8011e32 <UART_SetConfig+0x8be>
  41701. case UART_CLOCKSOURCE_CSI:
  41702. pclk = (uint32_t) CSI_VALUE;
  41703. 8011e18: 4b21 ldr r3, [pc, #132] @ (8011ea0 <UART_SetConfig+0x92c>)
  41704. 8011e1a: 63fb str r3, [r7, #60] @ 0x3c
  41705. break;
  41706. 8011e1c: e009 b.n 8011e32 <UART_SetConfig+0x8be>
  41707. case UART_CLOCKSOURCE_LSE:
  41708. pclk = (uint32_t) LSE_VALUE;
  41709. 8011e1e: f44f 4300 mov.w r3, #32768 @ 0x8000
  41710. 8011e22: 63fb str r3, [r7, #60] @ 0x3c
  41711. break;
  41712. 8011e24: e005 b.n 8011e32 <UART_SetConfig+0x8be>
  41713. default:
  41714. pclk = 0U;
  41715. 8011e26: 2300 movs r3, #0
  41716. 8011e28: 63fb str r3, [r7, #60] @ 0x3c
  41717. ret = HAL_ERROR;
  41718. 8011e2a: 2301 movs r3, #1
  41719. 8011e2c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41720. break;
  41721. 8011e30: bf00 nop
  41722. }
  41723. /* USARTDIV must be greater than or equal to 0d16 */
  41724. if (pclk != 0U)
  41725. 8011e32: 6bfb ldr r3, [r7, #60] @ 0x3c
  41726. 8011e34: 2b00 cmp r3, #0
  41727. 8011e36: f000 80e7 beq.w 8012008 <UART_SetConfig+0xa94>
  41728. {
  41729. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41730. 8011e3a: 697b ldr r3, [r7, #20]
  41731. 8011e3c: 6a5b ldr r3, [r3, #36] @ 0x24
  41732. 8011e3e: 4a19 ldr r2, [pc, #100] @ (8011ea4 <UART_SetConfig+0x930>)
  41733. 8011e40: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41734. 8011e44: 461a mov r2, r3
  41735. 8011e46: 6bfb ldr r3, [r7, #60] @ 0x3c
  41736. 8011e48: fbb3 f3f2 udiv r3, r3, r2
  41737. 8011e4c: 005a lsls r2, r3, #1
  41738. 8011e4e: 697b ldr r3, [r7, #20]
  41739. 8011e50: 685b ldr r3, [r3, #4]
  41740. 8011e52: 085b lsrs r3, r3, #1
  41741. 8011e54: 441a add r2, r3
  41742. 8011e56: 697b ldr r3, [r7, #20]
  41743. 8011e58: 685b ldr r3, [r3, #4]
  41744. 8011e5a: fbb2 f3f3 udiv r3, r2, r3
  41745. 8011e5e: 63bb str r3, [r7, #56] @ 0x38
  41746. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41747. 8011e60: 6bbb ldr r3, [r7, #56] @ 0x38
  41748. 8011e62: 2b0f cmp r3, #15
  41749. 8011e64: d916 bls.n 8011e94 <UART_SetConfig+0x920>
  41750. 8011e66: 6bbb ldr r3, [r7, #56] @ 0x38
  41751. 8011e68: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41752. 8011e6c: d212 bcs.n 8011e94 <UART_SetConfig+0x920>
  41753. {
  41754. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  41755. 8011e6e: 6bbb ldr r3, [r7, #56] @ 0x38
  41756. 8011e70: b29b uxth r3, r3
  41757. 8011e72: f023 030f bic.w r3, r3, #15
  41758. 8011e76: 86fb strh r3, [r7, #54] @ 0x36
  41759. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  41760. 8011e78: 6bbb ldr r3, [r7, #56] @ 0x38
  41761. 8011e7a: 085b lsrs r3, r3, #1
  41762. 8011e7c: b29b uxth r3, r3
  41763. 8011e7e: f003 0307 and.w r3, r3, #7
  41764. 8011e82: b29a uxth r2, r3
  41765. 8011e84: 8efb ldrh r3, [r7, #54] @ 0x36
  41766. 8011e86: 4313 orrs r3, r2
  41767. 8011e88: 86fb strh r3, [r7, #54] @ 0x36
  41768. huart->Instance->BRR = brrtemp;
  41769. 8011e8a: 697b ldr r3, [r7, #20]
  41770. 8011e8c: 681b ldr r3, [r3, #0]
  41771. 8011e8e: 8efa ldrh r2, [r7, #54] @ 0x36
  41772. 8011e90: 60da str r2, [r3, #12]
  41773. 8011e92: e0b9 b.n 8012008 <UART_SetConfig+0xa94>
  41774. }
  41775. else
  41776. {
  41777. ret = HAL_ERROR;
  41778. 8011e94: 2301 movs r3, #1
  41779. 8011e96: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41780. 8011e9a: e0b5 b.n 8012008 <UART_SetConfig+0xa94>
  41781. 8011e9c: 03d09000 .word 0x03d09000
  41782. 8011ea0: 003d0900 .word 0x003d0900
  41783. 8011ea4: 08018c30 .word 0x08018c30
  41784. 8011ea8: 58024400 .word 0x58024400
  41785. }
  41786. }
  41787. }
  41788. else
  41789. {
  41790. switch (clocksource)
  41791. 8011eac: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41792. 8011eb0: 2b20 cmp r3, #32
  41793. 8011eb2: dc49 bgt.n 8011f48 <UART_SetConfig+0x9d4>
  41794. 8011eb4: 2b00 cmp r3, #0
  41795. 8011eb6: db7c blt.n 8011fb2 <UART_SetConfig+0xa3e>
  41796. 8011eb8: 2b20 cmp r3, #32
  41797. 8011eba: d87a bhi.n 8011fb2 <UART_SetConfig+0xa3e>
  41798. 8011ebc: a201 add r2, pc, #4 @ (adr r2, 8011ec4 <UART_SetConfig+0x950>)
  41799. 8011ebe: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41800. 8011ec2: bf00 nop
  41801. 8011ec4: 08011f4f .word 0x08011f4f
  41802. 8011ec8: 08011f57 .word 0x08011f57
  41803. 8011ecc: 08011fb3 .word 0x08011fb3
  41804. 8011ed0: 08011fb3 .word 0x08011fb3
  41805. 8011ed4: 08011f5f .word 0x08011f5f
  41806. 8011ed8: 08011fb3 .word 0x08011fb3
  41807. 8011edc: 08011fb3 .word 0x08011fb3
  41808. 8011ee0: 08011fb3 .word 0x08011fb3
  41809. 8011ee4: 08011f6f .word 0x08011f6f
  41810. 8011ee8: 08011fb3 .word 0x08011fb3
  41811. 8011eec: 08011fb3 .word 0x08011fb3
  41812. 8011ef0: 08011fb3 .word 0x08011fb3
  41813. 8011ef4: 08011fb3 .word 0x08011fb3
  41814. 8011ef8: 08011fb3 .word 0x08011fb3
  41815. 8011efc: 08011fb3 .word 0x08011fb3
  41816. 8011f00: 08011fb3 .word 0x08011fb3
  41817. 8011f04: 08011f7f .word 0x08011f7f
  41818. 8011f08: 08011fb3 .word 0x08011fb3
  41819. 8011f0c: 08011fb3 .word 0x08011fb3
  41820. 8011f10: 08011fb3 .word 0x08011fb3
  41821. 8011f14: 08011fb3 .word 0x08011fb3
  41822. 8011f18: 08011fb3 .word 0x08011fb3
  41823. 8011f1c: 08011fb3 .word 0x08011fb3
  41824. 8011f20: 08011fb3 .word 0x08011fb3
  41825. 8011f24: 08011fb3 .word 0x08011fb3
  41826. 8011f28: 08011fb3 .word 0x08011fb3
  41827. 8011f2c: 08011fb3 .word 0x08011fb3
  41828. 8011f30: 08011fb3 .word 0x08011fb3
  41829. 8011f34: 08011fb3 .word 0x08011fb3
  41830. 8011f38: 08011fb3 .word 0x08011fb3
  41831. 8011f3c: 08011fb3 .word 0x08011fb3
  41832. 8011f40: 08011fb3 .word 0x08011fb3
  41833. 8011f44: 08011fa5 .word 0x08011fa5
  41834. 8011f48: 2b40 cmp r3, #64 @ 0x40
  41835. 8011f4a: d02e beq.n 8011faa <UART_SetConfig+0xa36>
  41836. 8011f4c: e031 b.n 8011fb2 <UART_SetConfig+0xa3e>
  41837. {
  41838. case UART_CLOCKSOURCE_D2PCLK1:
  41839. pclk = HAL_RCC_GetPCLK1Freq();
  41840. 8011f4e: f7fa f85b bl 800c008 <HAL_RCC_GetPCLK1Freq>
  41841. 8011f52: 63f8 str r0, [r7, #60] @ 0x3c
  41842. break;
  41843. 8011f54: e033 b.n 8011fbe <UART_SetConfig+0xa4a>
  41844. case UART_CLOCKSOURCE_D2PCLK2:
  41845. pclk = HAL_RCC_GetPCLK2Freq();
  41846. 8011f56: f7fa f86d bl 800c034 <HAL_RCC_GetPCLK2Freq>
  41847. 8011f5a: 63f8 str r0, [r7, #60] @ 0x3c
  41848. break;
  41849. 8011f5c: e02f b.n 8011fbe <UART_SetConfig+0xa4a>
  41850. case UART_CLOCKSOURCE_PLL2:
  41851. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41852. 8011f5e: f107 0324 add.w r3, r7, #36 @ 0x24
  41853. 8011f62: 4618 mov r0, r3
  41854. 8011f64: f7fc f842 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  41855. pclk = pll2_clocks.PLL2_Q_Frequency;
  41856. 8011f68: 6abb ldr r3, [r7, #40] @ 0x28
  41857. 8011f6a: 63fb str r3, [r7, #60] @ 0x3c
  41858. break;
  41859. 8011f6c: e027 b.n 8011fbe <UART_SetConfig+0xa4a>
  41860. case UART_CLOCKSOURCE_PLL3:
  41861. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41862. 8011f6e: f107 0318 add.w r3, r7, #24
  41863. 8011f72: 4618 mov r0, r3
  41864. 8011f74: f7fc f98e bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  41865. pclk = pll3_clocks.PLL3_Q_Frequency;
  41866. 8011f78: 69fb ldr r3, [r7, #28]
  41867. 8011f7a: 63fb str r3, [r7, #60] @ 0x3c
  41868. break;
  41869. 8011f7c: e01f b.n 8011fbe <UART_SetConfig+0xa4a>
  41870. case UART_CLOCKSOURCE_HSI:
  41871. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41872. 8011f7e: 4b2d ldr r3, [pc, #180] @ (8012034 <UART_SetConfig+0xac0>)
  41873. 8011f80: 681b ldr r3, [r3, #0]
  41874. 8011f82: f003 0320 and.w r3, r3, #32
  41875. 8011f86: 2b00 cmp r3, #0
  41876. 8011f88: d009 beq.n 8011f9e <UART_SetConfig+0xa2a>
  41877. {
  41878. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41879. 8011f8a: 4b2a ldr r3, [pc, #168] @ (8012034 <UART_SetConfig+0xac0>)
  41880. 8011f8c: 681b ldr r3, [r3, #0]
  41881. 8011f8e: 08db lsrs r3, r3, #3
  41882. 8011f90: f003 0303 and.w r3, r3, #3
  41883. 8011f94: 4a28 ldr r2, [pc, #160] @ (8012038 <UART_SetConfig+0xac4>)
  41884. 8011f96: fa22 f303 lsr.w r3, r2, r3
  41885. 8011f9a: 63fb str r3, [r7, #60] @ 0x3c
  41886. }
  41887. else
  41888. {
  41889. pclk = (uint32_t) HSI_VALUE;
  41890. }
  41891. break;
  41892. 8011f9c: e00f b.n 8011fbe <UART_SetConfig+0xa4a>
  41893. pclk = (uint32_t) HSI_VALUE;
  41894. 8011f9e: 4b26 ldr r3, [pc, #152] @ (8012038 <UART_SetConfig+0xac4>)
  41895. 8011fa0: 63fb str r3, [r7, #60] @ 0x3c
  41896. break;
  41897. 8011fa2: e00c b.n 8011fbe <UART_SetConfig+0xa4a>
  41898. case UART_CLOCKSOURCE_CSI:
  41899. pclk = (uint32_t) CSI_VALUE;
  41900. 8011fa4: 4b25 ldr r3, [pc, #148] @ (801203c <UART_SetConfig+0xac8>)
  41901. 8011fa6: 63fb str r3, [r7, #60] @ 0x3c
  41902. break;
  41903. 8011fa8: e009 b.n 8011fbe <UART_SetConfig+0xa4a>
  41904. case UART_CLOCKSOURCE_LSE:
  41905. pclk = (uint32_t) LSE_VALUE;
  41906. 8011faa: f44f 4300 mov.w r3, #32768 @ 0x8000
  41907. 8011fae: 63fb str r3, [r7, #60] @ 0x3c
  41908. break;
  41909. 8011fb0: e005 b.n 8011fbe <UART_SetConfig+0xa4a>
  41910. default:
  41911. pclk = 0U;
  41912. 8011fb2: 2300 movs r3, #0
  41913. 8011fb4: 63fb str r3, [r7, #60] @ 0x3c
  41914. ret = HAL_ERROR;
  41915. 8011fb6: 2301 movs r3, #1
  41916. 8011fb8: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41917. break;
  41918. 8011fbc: bf00 nop
  41919. }
  41920. if (pclk != 0U)
  41921. 8011fbe: 6bfb ldr r3, [r7, #60] @ 0x3c
  41922. 8011fc0: 2b00 cmp r3, #0
  41923. 8011fc2: d021 beq.n 8012008 <UART_SetConfig+0xa94>
  41924. {
  41925. /* USARTDIV must be greater than or equal to 0d16 */
  41926. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41927. 8011fc4: 697b ldr r3, [r7, #20]
  41928. 8011fc6: 6a5b ldr r3, [r3, #36] @ 0x24
  41929. 8011fc8: 4a1d ldr r2, [pc, #116] @ (8012040 <UART_SetConfig+0xacc>)
  41930. 8011fca: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41931. 8011fce: 461a mov r2, r3
  41932. 8011fd0: 6bfb ldr r3, [r7, #60] @ 0x3c
  41933. 8011fd2: fbb3 f2f2 udiv r2, r3, r2
  41934. 8011fd6: 697b ldr r3, [r7, #20]
  41935. 8011fd8: 685b ldr r3, [r3, #4]
  41936. 8011fda: 085b lsrs r3, r3, #1
  41937. 8011fdc: 441a add r2, r3
  41938. 8011fde: 697b ldr r3, [r7, #20]
  41939. 8011fe0: 685b ldr r3, [r3, #4]
  41940. 8011fe2: fbb2 f3f3 udiv r3, r2, r3
  41941. 8011fe6: 63bb str r3, [r7, #56] @ 0x38
  41942. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41943. 8011fe8: 6bbb ldr r3, [r7, #56] @ 0x38
  41944. 8011fea: 2b0f cmp r3, #15
  41945. 8011fec: d909 bls.n 8012002 <UART_SetConfig+0xa8e>
  41946. 8011fee: 6bbb ldr r3, [r7, #56] @ 0x38
  41947. 8011ff0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41948. 8011ff4: d205 bcs.n 8012002 <UART_SetConfig+0xa8e>
  41949. {
  41950. huart->Instance->BRR = (uint16_t)usartdiv;
  41951. 8011ff6: 6bbb ldr r3, [r7, #56] @ 0x38
  41952. 8011ff8: b29a uxth r2, r3
  41953. 8011ffa: 697b ldr r3, [r7, #20]
  41954. 8011ffc: 681b ldr r3, [r3, #0]
  41955. 8011ffe: 60da str r2, [r3, #12]
  41956. 8012000: e002 b.n 8012008 <UART_SetConfig+0xa94>
  41957. }
  41958. else
  41959. {
  41960. ret = HAL_ERROR;
  41961. 8012002: 2301 movs r3, #1
  41962. 8012004: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41963. }
  41964. }
  41965. }
  41966. /* Initialize the number of data to process during RX/TX ISR execution */
  41967. huart->NbTxDataToProcess = 1;
  41968. 8012008: 697b ldr r3, [r7, #20]
  41969. 801200a: 2201 movs r2, #1
  41970. 801200c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  41971. huart->NbRxDataToProcess = 1;
  41972. 8012010: 697b ldr r3, [r7, #20]
  41973. 8012012: 2201 movs r2, #1
  41974. 8012014: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  41975. /* Clear ISR function pointers */
  41976. huart->RxISR = NULL;
  41977. 8012018: 697b ldr r3, [r7, #20]
  41978. 801201a: 2200 movs r2, #0
  41979. 801201c: 675a str r2, [r3, #116] @ 0x74
  41980. huart->TxISR = NULL;
  41981. 801201e: 697b ldr r3, [r7, #20]
  41982. 8012020: 2200 movs r2, #0
  41983. 8012022: 679a str r2, [r3, #120] @ 0x78
  41984. return ret;
  41985. 8012024: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  41986. }
  41987. 8012028: 4618 mov r0, r3
  41988. 801202a: 3748 adds r7, #72 @ 0x48
  41989. 801202c: 46bd mov sp, r7
  41990. 801202e: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  41991. 8012032: bf00 nop
  41992. 8012034: 58024400 .word 0x58024400
  41993. 8012038: 03d09000 .word 0x03d09000
  41994. 801203c: 003d0900 .word 0x003d0900
  41995. 8012040: 08018c30 .word 0x08018c30
  41996. 08012044 <UART_AdvFeatureConfig>:
  41997. * @brief Configure the UART peripheral advanced features.
  41998. * @param huart UART handle.
  41999. * @retval None
  42000. */
  42001. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  42002. {
  42003. 8012044: b480 push {r7}
  42004. 8012046: b083 sub sp, #12
  42005. 8012048: af00 add r7, sp, #0
  42006. 801204a: 6078 str r0, [r7, #4]
  42007. /* Check whether the set of advanced features to configure is properly set */
  42008. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  42009. /* if required, configure RX/TX pins swap */
  42010. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  42011. 801204c: 687b ldr r3, [r7, #4]
  42012. 801204e: 6a9b ldr r3, [r3, #40] @ 0x28
  42013. 8012050: f003 0308 and.w r3, r3, #8
  42014. 8012054: 2b00 cmp r3, #0
  42015. 8012056: d00a beq.n 801206e <UART_AdvFeatureConfig+0x2a>
  42016. {
  42017. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  42018. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  42019. 8012058: 687b ldr r3, [r7, #4]
  42020. 801205a: 681b ldr r3, [r3, #0]
  42021. 801205c: 685b ldr r3, [r3, #4]
  42022. 801205e: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  42023. 8012062: 687b ldr r3, [r7, #4]
  42024. 8012064: 6b9a ldr r2, [r3, #56] @ 0x38
  42025. 8012066: 687b ldr r3, [r7, #4]
  42026. 8012068: 681b ldr r3, [r3, #0]
  42027. 801206a: 430a orrs r2, r1
  42028. 801206c: 605a str r2, [r3, #4]
  42029. }
  42030. /* if required, configure TX pin active level inversion */
  42031. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  42032. 801206e: 687b ldr r3, [r7, #4]
  42033. 8012070: 6a9b ldr r3, [r3, #40] @ 0x28
  42034. 8012072: f003 0301 and.w r3, r3, #1
  42035. 8012076: 2b00 cmp r3, #0
  42036. 8012078: d00a beq.n 8012090 <UART_AdvFeatureConfig+0x4c>
  42037. {
  42038. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  42039. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  42040. 801207a: 687b ldr r3, [r7, #4]
  42041. 801207c: 681b ldr r3, [r3, #0]
  42042. 801207e: 685b ldr r3, [r3, #4]
  42043. 8012080: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  42044. 8012084: 687b ldr r3, [r7, #4]
  42045. 8012086: 6ada ldr r2, [r3, #44] @ 0x2c
  42046. 8012088: 687b ldr r3, [r7, #4]
  42047. 801208a: 681b ldr r3, [r3, #0]
  42048. 801208c: 430a orrs r2, r1
  42049. 801208e: 605a str r2, [r3, #4]
  42050. }
  42051. /* if required, configure RX pin active level inversion */
  42052. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  42053. 8012090: 687b ldr r3, [r7, #4]
  42054. 8012092: 6a9b ldr r3, [r3, #40] @ 0x28
  42055. 8012094: f003 0302 and.w r3, r3, #2
  42056. 8012098: 2b00 cmp r3, #0
  42057. 801209a: d00a beq.n 80120b2 <UART_AdvFeatureConfig+0x6e>
  42058. {
  42059. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  42060. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  42061. 801209c: 687b ldr r3, [r7, #4]
  42062. 801209e: 681b ldr r3, [r3, #0]
  42063. 80120a0: 685b ldr r3, [r3, #4]
  42064. 80120a2: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  42065. 80120a6: 687b ldr r3, [r7, #4]
  42066. 80120a8: 6b1a ldr r2, [r3, #48] @ 0x30
  42067. 80120aa: 687b ldr r3, [r7, #4]
  42068. 80120ac: 681b ldr r3, [r3, #0]
  42069. 80120ae: 430a orrs r2, r1
  42070. 80120b0: 605a str r2, [r3, #4]
  42071. }
  42072. /* if required, configure data inversion */
  42073. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  42074. 80120b2: 687b ldr r3, [r7, #4]
  42075. 80120b4: 6a9b ldr r3, [r3, #40] @ 0x28
  42076. 80120b6: f003 0304 and.w r3, r3, #4
  42077. 80120ba: 2b00 cmp r3, #0
  42078. 80120bc: d00a beq.n 80120d4 <UART_AdvFeatureConfig+0x90>
  42079. {
  42080. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  42081. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  42082. 80120be: 687b ldr r3, [r7, #4]
  42083. 80120c0: 681b ldr r3, [r3, #0]
  42084. 80120c2: 685b ldr r3, [r3, #4]
  42085. 80120c4: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  42086. 80120c8: 687b ldr r3, [r7, #4]
  42087. 80120ca: 6b5a ldr r2, [r3, #52] @ 0x34
  42088. 80120cc: 687b ldr r3, [r7, #4]
  42089. 80120ce: 681b ldr r3, [r3, #0]
  42090. 80120d0: 430a orrs r2, r1
  42091. 80120d2: 605a str r2, [r3, #4]
  42092. }
  42093. /* if required, configure RX overrun detection disabling */
  42094. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  42095. 80120d4: 687b ldr r3, [r7, #4]
  42096. 80120d6: 6a9b ldr r3, [r3, #40] @ 0x28
  42097. 80120d8: f003 0310 and.w r3, r3, #16
  42098. 80120dc: 2b00 cmp r3, #0
  42099. 80120de: d00a beq.n 80120f6 <UART_AdvFeatureConfig+0xb2>
  42100. {
  42101. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  42102. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  42103. 80120e0: 687b ldr r3, [r7, #4]
  42104. 80120e2: 681b ldr r3, [r3, #0]
  42105. 80120e4: 689b ldr r3, [r3, #8]
  42106. 80120e6: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  42107. 80120ea: 687b ldr r3, [r7, #4]
  42108. 80120ec: 6bda ldr r2, [r3, #60] @ 0x3c
  42109. 80120ee: 687b ldr r3, [r7, #4]
  42110. 80120f0: 681b ldr r3, [r3, #0]
  42111. 80120f2: 430a orrs r2, r1
  42112. 80120f4: 609a str r2, [r3, #8]
  42113. }
  42114. /* if required, configure DMA disabling on reception error */
  42115. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  42116. 80120f6: 687b ldr r3, [r7, #4]
  42117. 80120f8: 6a9b ldr r3, [r3, #40] @ 0x28
  42118. 80120fa: f003 0320 and.w r3, r3, #32
  42119. 80120fe: 2b00 cmp r3, #0
  42120. 8012100: d00a beq.n 8012118 <UART_AdvFeatureConfig+0xd4>
  42121. {
  42122. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  42123. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  42124. 8012102: 687b ldr r3, [r7, #4]
  42125. 8012104: 681b ldr r3, [r3, #0]
  42126. 8012106: 689b ldr r3, [r3, #8]
  42127. 8012108: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  42128. 801210c: 687b ldr r3, [r7, #4]
  42129. 801210e: 6c1a ldr r2, [r3, #64] @ 0x40
  42130. 8012110: 687b ldr r3, [r7, #4]
  42131. 8012112: 681b ldr r3, [r3, #0]
  42132. 8012114: 430a orrs r2, r1
  42133. 8012116: 609a str r2, [r3, #8]
  42134. }
  42135. /* if required, configure auto Baud rate detection scheme */
  42136. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  42137. 8012118: 687b ldr r3, [r7, #4]
  42138. 801211a: 6a9b ldr r3, [r3, #40] @ 0x28
  42139. 801211c: f003 0340 and.w r3, r3, #64 @ 0x40
  42140. 8012120: 2b00 cmp r3, #0
  42141. 8012122: d01a beq.n 801215a <UART_AdvFeatureConfig+0x116>
  42142. {
  42143. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  42144. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  42145. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  42146. 8012124: 687b ldr r3, [r7, #4]
  42147. 8012126: 681b ldr r3, [r3, #0]
  42148. 8012128: 685b ldr r3, [r3, #4]
  42149. 801212a: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  42150. 801212e: 687b ldr r3, [r7, #4]
  42151. 8012130: 6c5a ldr r2, [r3, #68] @ 0x44
  42152. 8012132: 687b ldr r3, [r7, #4]
  42153. 8012134: 681b ldr r3, [r3, #0]
  42154. 8012136: 430a orrs r2, r1
  42155. 8012138: 605a str r2, [r3, #4]
  42156. /* set auto Baudrate detection parameters if detection is enabled */
  42157. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  42158. 801213a: 687b ldr r3, [r7, #4]
  42159. 801213c: 6c5b ldr r3, [r3, #68] @ 0x44
  42160. 801213e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  42161. 8012142: d10a bne.n 801215a <UART_AdvFeatureConfig+0x116>
  42162. {
  42163. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  42164. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  42165. 8012144: 687b ldr r3, [r7, #4]
  42166. 8012146: 681b ldr r3, [r3, #0]
  42167. 8012148: 685b ldr r3, [r3, #4]
  42168. 801214a: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  42169. 801214e: 687b ldr r3, [r7, #4]
  42170. 8012150: 6c9a ldr r2, [r3, #72] @ 0x48
  42171. 8012152: 687b ldr r3, [r7, #4]
  42172. 8012154: 681b ldr r3, [r3, #0]
  42173. 8012156: 430a orrs r2, r1
  42174. 8012158: 605a str r2, [r3, #4]
  42175. }
  42176. }
  42177. /* if required, configure MSB first on communication line */
  42178. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  42179. 801215a: 687b ldr r3, [r7, #4]
  42180. 801215c: 6a9b ldr r3, [r3, #40] @ 0x28
  42181. 801215e: f003 0380 and.w r3, r3, #128 @ 0x80
  42182. 8012162: 2b00 cmp r3, #0
  42183. 8012164: d00a beq.n 801217c <UART_AdvFeatureConfig+0x138>
  42184. {
  42185. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  42186. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  42187. 8012166: 687b ldr r3, [r7, #4]
  42188. 8012168: 681b ldr r3, [r3, #0]
  42189. 801216a: 685b ldr r3, [r3, #4]
  42190. 801216c: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  42191. 8012170: 687b ldr r3, [r7, #4]
  42192. 8012172: 6cda ldr r2, [r3, #76] @ 0x4c
  42193. 8012174: 687b ldr r3, [r7, #4]
  42194. 8012176: 681b ldr r3, [r3, #0]
  42195. 8012178: 430a orrs r2, r1
  42196. 801217a: 605a str r2, [r3, #4]
  42197. }
  42198. }
  42199. 801217c: bf00 nop
  42200. 801217e: 370c adds r7, #12
  42201. 8012180: 46bd mov sp, r7
  42202. 8012182: f85d 7b04 ldr.w r7, [sp], #4
  42203. 8012186: 4770 bx lr
  42204. 08012188 <UART_CheckIdleState>:
  42205. * @brief Check the UART Idle State.
  42206. * @param huart UART handle.
  42207. * @retval HAL status
  42208. */
  42209. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  42210. {
  42211. 8012188: b580 push {r7, lr}
  42212. 801218a: b098 sub sp, #96 @ 0x60
  42213. 801218c: af02 add r7, sp, #8
  42214. 801218e: 6078 str r0, [r7, #4]
  42215. uint32_t tickstart;
  42216. /* Initialize the UART ErrorCode */
  42217. huart->ErrorCode = HAL_UART_ERROR_NONE;
  42218. 8012190: 687b ldr r3, [r7, #4]
  42219. 8012192: 2200 movs r2, #0
  42220. 8012194: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42221. /* Init tickstart for timeout management */
  42222. tickstart = HAL_GetTick();
  42223. 8012198: f7f3 f9e6 bl 8005568 <HAL_GetTick>
  42224. 801219c: 6578 str r0, [r7, #84] @ 0x54
  42225. /* Check if the Transmitter is enabled */
  42226. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  42227. 801219e: 687b ldr r3, [r7, #4]
  42228. 80121a0: 681b ldr r3, [r3, #0]
  42229. 80121a2: 681b ldr r3, [r3, #0]
  42230. 80121a4: f003 0308 and.w r3, r3, #8
  42231. 80121a8: 2b08 cmp r3, #8
  42232. 80121aa: d12f bne.n 801220c <UART_CheckIdleState+0x84>
  42233. {
  42234. /* Wait until TEACK flag is set */
  42235. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  42236. 80121ac: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  42237. 80121b0: 9300 str r3, [sp, #0]
  42238. 80121b2: 6d7b ldr r3, [r7, #84] @ 0x54
  42239. 80121b4: 2200 movs r2, #0
  42240. 80121b6: f44f 1100 mov.w r1, #2097152 @ 0x200000
  42241. 80121ba: 6878 ldr r0, [r7, #4]
  42242. 80121bc: f000 f88e bl 80122dc <UART_WaitOnFlagUntilTimeout>
  42243. 80121c0: 4603 mov r3, r0
  42244. 80121c2: 2b00 cmp r3, #0
  42245. 80121c4: d022 beq.n 801220c <UART_CheckIdleState+0x84>
  42246. {
  42247. /* Disable TXE interrupt for the interrupt process */
  42248. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  42249. 80121c6: 687b ldr r3, [r7, #4]
  42250. 80121c8: 681b ldr r3, [r3, #0]
  42251. 80121ca: 63bb str r3, [r7, #56] @ 0x38
  42252. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42253. 80121cc: 6bbb ldr r3, [r7, #56] @ 0x38
  42254. 80121ce: e853 3f00 ldrex r3, [r3]
  42255. 80121d2: 637b str r3, [r7, #52] @ 0x34
  42256. return(result);
  42257. 80121d4: 6b7b ldr r3, [r7, #52] @ 0x34
  42258. 80121d6: f023 0380 bic.w r3, r3, #128 @ 0x80
  42259. 80121da: 653b str r3, [r7, #80] @ 0x50
  42260. 80121dc: 687b ldr r3, [r7, #4]
  42261. 80121de: 681b ldr r3, [r3, #0]
  42262. 80121e0: 461a mov r2, r3
  42263. 80121e2: 6d3b ldr r3, [r7, #80] @ 0x50
  42264. 80121e4: 647b str r3, [r7, #68] @ 0x44
  42265. 80121e6: 643a str r2, [r7, #64] @ 0x40
  42266. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42267. 80121e8: 6c39 ldr r1, [r7, #64] @ 0x40
  42268. 80121ea: 6c7a ldr r2, [r7, #68] @ 0x44
  42269. 80121ec: e841 2300 strex r3, r2, [r1]
  42270. 80121f0: 63fb str r3, [r7, #60] @ 0x3c
  42271. return(result);
  42272. 80121f2: 6bfb ldr r3, [r7, #60] @ 0x3c
  42273. 80121f4: 2b00 cmp r3, #0
  42274. 80121f6: d1e6 bne.n 80121c6 <UART_CheckIdleState+0x3e>
  42275. huart->gState = HAL_UART_STATE_READY;
  42276. 80121f8: 687b ldr r3, [r7, #4]
  42277. 80121fa: 2220 movs r2, #32
  42278. 80121fc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  42279. __HAL_UNLOCK(huart);
  42280. 8012200: 687b ldr r3, [r7, #4]
  42281. 8012202: 2200 movs r2, #0
  42282. 8012204: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42283. /* Timeout occurred */
  42284. return HAL_TIMEOUT;
  42285. 8012208: 2303 movs r3, #3
  42286. 801220a: e063 b.n 80122d4 <UART_CheckIdleState+0x14c>
  42287. }
  42288. }
  42289. /* Check if the Receiver is enabled */
  42290. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  42291. 801220c: 687b ldr r3, [r7, #4]
  42292. 801220e: 681b ldr r3, [r3, #0]
  42293. 8012210: 681b ldr r3, [r3, #0]
  42294. 8012212: f003 0304 and.w r3, r3, #4
  42295. 8012216: 2b04 cmp r3, #4
  42296. 8012218: d149 bne.n 80122ae <UART_CheckIdleState+0x126>
  42297. {
  42298. /* Wait until REACK flag is set */
  42299. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  42300. 801221a: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  42301. 801221e: 9300 str r3, [sp, #0]
  42302. 8012220: 6d7b ldr r3, [r7, #84] @ 0x54
  42303. 8012222: 2200 movs r2, #0
  42304. 8012224: f44f 0180 mov.w r1, #4194304 @ 0x400000
  42305. 8012228: 6878 ldr r0, [r7, #4]
  42306. 801222a: f000 f857 bl 80122dc <UART_WaitOnFlagUntilTimeout>
  42307. 801222e: 4603 mov r3, r0
  42308. 8012230: 2b00 cmp r3, #0
  42309. 8012232: d03c beq.n 80122ae <UART_CheckIdleState+0x126>
  42310. {
  42311. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  42312. interrupts for the interrupt process */
  42313. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  42314. 8012234: 687b ldr r3, [r7, #4]
  42315. 8012236: 681b ldr r3, [r3, #0]
  42316. 8012238: 627b str r3, [r7, #36] @ 0x24
  42317. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42318. 801223a: 6a7b ldr r3, [r7, #36] @ 0x24
  42319. 801223c: e853 3f00 ldrex r3, [r3]
  42320. 8012240: 623b str r3, [r7, #32]
  42321. return(result);
  42322. 8012242: 6a3b ldr r3, [r7, #32]
  42323. 8012244: f423 7390 bic.w r3, r3, #288 @ 0x120
  42324. 8012248: 64fb str r3, [r7, #76] @ 0x4c
  42325. 801224a: 687b ldr r3, [r7, #4]
  42326. 801224c: 681b ldr r3, [r3, #0]
  42327. 801224e: 461a mov r2, r3
  42328. 8012250: 6cfb ldr r3, [r7, #76] @ 0x4c
  42329. 8012252: 633b str r3, [r7, #48] @ 0x30
  42330. 8012254: 62fa str r2, [r7, #44] @ 0x2c
  42331. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42332. 8012256: 6af9 ldr r1, [r7, #44] @ 0x2c
  42333. 8012258: 6b3a ldr r2, [r7, #48] @ 0x30
  42334. 801225a: e841 2300 strex r3, r2, [r1]
  42335. 801225e: 62bb str r3, [r7, #40] @ 0x28
  42336. return(result);
  42337. 8012260: 6abb ldr r3, [r7, #40] @ 0x28
  42338. 8012262: 2b00 cmp r3, #0
  42339. 8012264: d1e6 bne.n 8012234 <UART_CheckIdleState+0xac>
  42340. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  42341. 8012266: 687b ldr r3, [r7, #4]
  42342. 8012268: 681b ldr r3, [r3, #0]
  42343. 801226a: 3308 adds r3, #8
  42344. 801226c: 613b str r3, [r7, #16]
  42345. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42346. 801226e: 693b ldr r3, [r7, #16]
  42347. 8012270: e853 3f00 ldrex r3, [r3]
  42348. 8012274: 60fb str r3, [r7, #12]
  42349. return(result);
  42350. 8012276: 68fb ldr r3, [r7, #12]
  42351. 8012278: f023 0301 bic.w r3, r3, #1
  42352. 801227c: 64bb str r3, [r7, #72] @ 0x48
  42353. 801227e: 687b ldr r3, [r7, #4]
  42354. 8012280: 681b ldr r3, [r3, #0]
  42355. 8012282: 3308 adds r3, #8
  42356. 8012284: 6cba ldr r2, [r7, #72] @ 0x48
  42357. 8012286: 61fa str r2, [r7, #28]
  42358. 8012288: 61bb str r3, [r7, #24]
  42359. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42360. 801228a: 69b9 ldr r1, [r7, #24]
  42361. 801228c: 69fa ldr r2, [r7, #28]
  42362. 801228e: e841 2300 strex r3, r2, [r1]
  42363. 8012292: 617b str r3, [r7, #20]
  42364. return(result);
  42365. 8012294: 697b ldr r3, [r7, #20]
  42366. 8012296: 2b00 cmp r3, #0
  42367. 8012298: d1e5 bne.n 8012266 <UART_CheckIdleState+0xde>
  42368. huart->RxState = HAL_UART_STATE_READY;
  42369. 801229a: 687b ldr r3, [r7, #4]
  42370. 801229c: 2220 movs r2, #32
  42371. 801229e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42372. __HAL_UNLOCK(huart);
  42373. 80122a2: 687b ldr r3, [r7, #4]
  42374. 80122a4: 2200 movs r2, #0
  42375. 80122a6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42376. /* Timeout occurred */
  42377. return HAL_TIMEOUT;
  42378. 80122aa: 2303 movs r3, #3
  42379. 80122ac: e012 b.n 80122d4 <UART_CheckIdleState+0x14c>
  42380. }
  42381. }
  42382. /* Initialize the UART State */
  42383. huart->gState = HAL_UART_STATE_READY;
  42384. 80122ae: 687b ldr r3, [r7, #4]
  42385. 80122b0: 2220 movs r2, #32
  42386. 80122b2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  42387. huart->RxState = HAL_UART_STATE_READY;
  42388. 80122b6: 687b ldr r3, [r7, #4]
  42389. 80122b8: 2220 movs r2, #32
  42390. 80122ba: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42391. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  42392. 80122be: 687b ldr r3, [r7, #4]
  42393. 80122c0: 2200 movs r2, #0
  42394. 80122c2: 66da str r2, [r3, #108] @ 0x6c
  42395. huart->RxEventType = HAL_UART_RXEVENT_TC;
  42396. 80122c4: 687b ldr r3, [r7, #4]
  42397. 80122c6: 2200 movs r2, #0
  42398. 80122c8: 671a str r2, [r3, #112] @ 0x70
  42399. __HAL_UNLOCK(huart);
  42400. 80122ca: 687b ldr r3, [r7, #4]
  42401. 80122cc: 2200 movs r2, #0
  42402. 80122ce: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42403. return HAL_OK;
  42404. 80122d2: 2300 movs r3, #0
  42405. }
  42406. 80122d4: 4618 mov r0, r3
  42407. 80122d6: 3758 adds r7, #88 @ 0x58
  42408. 80122d8: 46bd mov sp, r7
  42409. 80122da: bd80 pop {r7, pc}
  42410. 080122dc <UART_WaitOnFlagUntilTimeout>:
  42411. * @param Timeout Timeout duration
  42412. * @retval HAL status
  42413. */
  42414. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  42415. uint32_t Tickstart, uint32_t Timeout)
  42416. {
  42417. 80122dc: b580 push {r7, lr}
  42418. 80122de: b084 sub sp, #16
  42419. 80122e0: af00 add r7, sp, #0
  42420. 80122e2: 60f8 str r0, [r7, #12]
  42421. 80122e4: 60b9 str r1, [r7, #8]
  42422. 80122e6: 603b str r3, [r7, #0]
  42423. 80122e8: 4613 mov r3, r2
  42424. 80122ea: 71fb strb r3, [r7, #7]
  42425. /* Wait until flag is set */
  42426. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  42427. 80122ec: e04f b.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42428. {
  42429. /* Check for the Timeout */
  42430. if (Timeout != HAL_MAX_DELAY)
  42431. 80122ee: 69bb ldr r3, [r7, #24]
  42432. 80122f0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42433. 80122f4: d04b beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42434. {
  42435. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  42436. 80122f6: f7f3 f937 bl 8005568 <HAL_GetTick>
  42437. 80122fa: 4602 mov r2, r0
  42438. 80122fc: 683b ldr r3, [r7, #0]
  42439. 80122fe: 1ad3 subs r3, r2, r3
  42440. 8012300: 69ba ldr r2, [r7, #24]
  42441. 8012302: 429a cmp r2, r3
  42442. 8012304: d302 bcc.n 801230c <UART_WaitOnFlagUntilTimeout+0x30>
  42443. 8012306: 69bb ldr r3, [r7, #24]
  42444. 8012308: 2b00 cmp r3, #0
  42445. 801230a: d101 bne.n 8012310 <UART_WaitOnFlagUntilTimeout+0x34>
  42446. {
  42447. return HAL_TIMEOUT;
  42448. 801230c: 2303 movs r3, #3
  42449. 801230e: e04e b.n 80123ae <UART_WaitOnFlagUntilTimeout+0xd2>
  42450. }
  42451. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  42452. 8012310: 68fb ldr r3, [r7, #12]
  42453. 8012312: 681b ldr r3, [r3, #0]
  42454. 8012314: 681b ldr r3, [r3, #0]
  42455. 8012316: f003 0304 and.w r3, r3, #4
  42456. 801231a: 2b00 cmp r3, #0
  42457. 801231c: d037 beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42458. 801231e: 68bb ldr r3, [r7, #8]
  42459. 8012320: 2b80 cmp r3, #128 @ 0x80
  42460. 8012322: d034 beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42461. 8012324: 68bb ldr r3, [r7, #8]
  42462. 8012326: 2b40 cmp r3, #64 @ 0x40
  42463. 8012328: d031 beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42464. {
  42465. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  42466. 801232a: 68fb ldr r3, [r7, #12]
  42467. 801232c: 681b ldr r3, [r3, #0]
  42468. 801232e: 69db ldr r3, [r3, #28]
  42469. 8012330: f003 0308 and.w r3, r3, #8
  42470. 8012334: 2b08 cmp r3, #8
  42471. 8012336: d110 bne.n 801235a <UART_WaitOnFlagUntilTimeout+0x7e>
  42472. {
  42473. /* Clear Overrun Error flag*/
  42474. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  42475. 8012338: 68fb ldr r3, [r7, #12]
  42476. 801233a: 681b ldr r3, [r3, #0]
  42477. 801233c: 2208 movs r2, #8
  42478. 801233e: 621a str r2, [r3, #32]
  42479. /* Blocking error : transfer is aborted
  42480. Set the UART state ready to be able to start again the process,
  42481. Disable Rx Interrupts if ongoing */
  42482. UART_EndRxTransfer(huart);
  42483. 8012340: 68f8 ldr r0, [r7, #12]
  42484. 8012342: f000 f95b bl 80125fc <UART_EndRxTransfer>
  42485. huart->ErrorCode = HAL_UART_ERROR_ORE;
  42486. 8012346: 68fb ldr r3, [r7, #12]
  42487. 8012348: 2208 movs r2, #8
  42488. 801234a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42489. /* Process Unlocked */
  42490. __HAL_UNLOCK(huart);
  42491. 801234e: 68fb ldr r3, [r7, #12]
  42492. 8012350: 2200 movs r2, #0
  42493. 8012352: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42494. return HAL_ERROR;
  42495. 8012356: 2301 movs r3, #1
  42496. 8012358: e029 b.n 80123ae <UART_WaitOnFlagUntilTimeout+0xd2>
  42497. }
  42498. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  42499. 801235a: 68fb ldr r3, [r7, #12]
  42500. 801235c: 681b ldr r3, [r3, #0]
  42501. 801235e: 69db ldr r3, [r3, #28]
  42502. 8012360: f403 6300 and.w r3, r3, #2048 @ 0x800
  42503. 8012364: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  42504. 8012368: d111 bne.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42505. {
  42506. /* Clear Receiver Timeout flag*/
  42507. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  42508. 801236a: 68fb ldr r3, [r7, #12]
  42509. 801236c: 681b ldr r3, [r3, #0]
  42510. 801236e: f44f 6200 mov.w r2, #2048 @ 0x800
  42511. 8012372: 621a str r2, [r3, #32]
  42512. /* Blocking error : transfer is aborted
  42513. Set the UART state ready to be able to start again the process,
  42514. Disable Rx Interrupts if ongoing */
  42515. UART_EndRxTransfer(huart);
  42516. 8012374: 68f8 ldr r0, [r7, #12]
  42517. 8012376: f000 f941 bl 80125fc <UART_EndRxTransfer>
  42518. huart->ErrorCode = HAL_UART_ERROR_RTO;
  42519. 801237a: 68fb ldr r3, [r7, #12]
  42520. 801237c: 2220 movs r2, #32
  42521. 801237e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42522. /* Process Unlocked */
  42523. __HAL_UNLOCK(huart);
  42524. 8012382: 68fb ldr r3, [r7, #12]
  42525. 8012384: 2200 movs r2, #0
  42526. 8012386: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42527. return HAL_TIMEOUT;
  42528. 801238a: 2303 movs r3, #3
  42529. 801238c: e00f b.n 80123ae <UART_WaitOnFlagUntilTimeout+0xd2>
  42530. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  42531. 801238e: 68fb ldr r3, [r7, #12]
  42532. 8012390: 681b ldr r3, [r3, #0]
  42533. 8012392: 69da ldr r2, [r3, #28]
  42534. 8012394: 68bb ldr r3, [r7, #8]
  42535. 8012396: 4013 ands r3, r2
  42536. 8012398: 68ba ldr r2, [r7, #8]
  42537. 801239a: 429a cmp r2, r3
  42538. 801239c: bf0c ite eq
  42539. 801239e: 2301 moveq r3, #1
  42540. 80123a0: 2300 movne r3, #0
  42541. 80123a2: b2db uxtb r3, r3
  42542. 80123a4: 461a mov r2, r3
  42543. 80123a6: 79fb ldrb r3, [r7, #7]
  42544. 80123a8: 429a cmp r2, r3
  42545. 80123aa: d0a0 beq.n 80122ee <UART_WaitOnFlagUntilTimeout+0x12>
  42546. }
  42547. }
  42548. }
  42549. }
  42550. return HAL_OK;
  42551. 80123ac: 2300 movs r3, #0
  42552. }
  42553. 80123ae: 4618 mov r0, r3
  42554. 80123b0: 3710 adds r7, #16
  42555. 80123b2: 46bd mov sp, r7
  42556. 80123b4: bd80 pop {r7, pc}
  42557. ...
  42558. 080123b8 <UART_Start_Receive_IT>:
  42559. * @param pData Pointer to data buffer (u8 or u16 data elements).
  42560. * @param Size Amount of data elements (u8 or u16) to be received.
  42561. * @retval HAL status
  42562. */
  42563. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  42564. {
  42565. 80123b8: b480 push {r7}
  42566. 80123ba: b0a3 sub sp, #140 @ 0x8c
  42567. 80123bc: af00 add r7, sp, #0
  42568. 80123be: 60f8 str r0, [r7, #12]
  42569. 80123c0: 60b9 str r1, [r7, #8]
  42570. 80123c2: 4613 mov r3, r2
  42571. 80123c4: 80fb strh r3, [r7, #6]
  42572. huart->pRxBuffPtr = pData;
  42573. 80123c6: 68fb ldr r3, [r7, #12]
  42574. 80123c8: 68ba ldr r2, [r7, #8]
  42575. 80123ca: 659a str r2, [r3, #88] @ 0x58
  42576. huart->RxXferSize = Size;
  42577. 80123cc: 68fb ldr r3, [r7, #12]
  42578. 80123ce: 88fa ldrh r2, [r7, #6]
  42579. 80123d0: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  42580. huart->RxXferCount = Size;
  42581. 80123d4: 68fb ldr r3, [r7, #12]
  42582. 80123d6: 88fa ldrh r2, [r7, #6]
  42583. 80123d8: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  42584. huart->RxISR = NULL;
  42585. 80123dc: 68fb ldr r3, [r7, #12]
  42586. 80123de: 2200 movs r2, #0
  42587. 80123e0: 675a str r2, [r3, #116] @ 0x74
  42588. /* Computation of UART mask to apply to RDR register */
  42589. UART_MASK_COMPUTATION(huart);
  42590. 80123e2: 68fb ldr r3, [r7, #12]
  42591. 80123e4: 689b ldr r3, [r3, #8]
  42592. 80123e6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42593. 80123ea: d10e bne.n 801240a <UART_Start_Receive_IT+0x52>
  42594. 80123ec: 68fb ldr r3, [r7, #12]
  42595. 80123ee: 691b ldr r3, [r3, #16]
  42596. 80123f0: 2b00 cmp r3, #0
  42597. 80123f2: d105 bne.n 8012400 <UART_Start_Receive_IT+0x48>
  42598. 80123f4: 68fb ldr r3, [r7, #12]
  42599. 80123f6: f240 12ff movw r2, #511 @ 0x1ff
  42600. 80123fa: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42601. 80123fe: e02d b.n 801245c <UART_Start_Receive_IT+0xa4>
  42602. 8012400: 68fb ldr r3, [r7, #12]
  42603. 8012402: 22ff movs r2, #255 @ 0xff
  42604. 8012404: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42605. 8012408: e028 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42606. 801240a: 68fb ldr r3, [r7, #12]
  42607. 801240c: 689b ldr r3, [r3, #8]
  42608. 801240e: 2b00 cmp r3, #0
  42609. 8012410: d10d bne.n 801242e <UART_Start_Receive_IT+0x76>
  42610. 8012412: 68fb ldr r3, [r7, #12]
  42611. 8012414: 691b ldr r3, [r3, #16]
  42612. 8012416: 2b00 cmp r3, #0
  42613. 8012418: d104 bne.n 8012424 <UART_Start_Receive_IT+0x6c>
  42614. 801241a: 68fb ldr r3, [r7, #12]
  42615. 801241c: 22ff movs r2, #255 @ 0xff
  42616. 801241e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42617. 8012422: e01b b.n 801245c <UART_Start_Receive_IT+0xa4>
  42618. 8012424: 68fb ldr r3, [r7, #12]
  42619. 8012426: 227f movs r2, #127 @ 0x7f
  42620. 8012428: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42621. 801242c: e016 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42622. 801242e: 68fb ldr r3, [r7, #12]
  42623. 8012430: 689b ldr r3, [r3, #8]
  42624. 8012432: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  42625. 8012436: d10d bne.n 8012454 <UART_Start_Receive_IT+0x9c>
  42626. 8012438: 68fb ldr r3, [r7, #12]
  42627. 801243a: 691b ldr r3, [r3, #16]
  42628. 801243c: 2b00 cmp r3, #0
  42629. 801243e: d104 bne.n 801244a <UART_Start_Receive_IT+0x92>
  42630. 8012440: 68fb ldr r3, [r7, #12]
  42631. 8012442: 227f movs r2, #127 @ 0x7f
  42632. 8012444: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42633. 8012448: e008 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42634. 801244a: 68fb ldr r3, [r7, #12]
  42635. 801244c: 223f movs r2, #63 @ 0x3f
  42636. 801244e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42637. 8012452: e003 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42638. 8012454: 68fb ldr r3, [r7, #12]
  42639. 8012456: 2200 movs r2, #0
  42640. 8012458: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42641. huart->ErrorCode = HAL_UART_ERROR_NONE;
  42642. 801245c: 68fb ldr r3, [r7, #12]
  42643. 801245e: 2200 movs r2, #0
  42644. 8012460: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42645. huart->RxState = HAL_UART_STATE_BUSY_RX;
  42646. 8012464: 68fb ldr r3, [r7, #12]
  42647. 8012466: 2222 movs r2, #34 @ 0x22
  42648. 8012468: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42649. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  42650. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  42651. 801246c: 68fb ldr r3, [r7, #12]
  42652. 801246e: 681b ldr r3, [r3, #0]
  42653. 8012470: 3308 adds r3, #8
  42654. 8012472: 667b str r3, [r7, #100] @ 0x64
  42655. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42656. 8012474: 6e7b ldr r3, [r7, #100] @ 0x64
  42657. 8012476: e853 3f00 ldrex r3, [r3]
  42658. 801247a: 663b str r3, [r7, #96] @ 0x60
  42659. return(result);
  42660. 801247c: 6e3b ldr r3, [r7, #96] @ 0x60
  42661. 801247e: f043 0301 orr.w r3, r3, #1
  42662. 8012482: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  42663. 8012486: 68fb ldr r3, [r7, #12]
  42664. 8012488: 681b ldr r3, [r3, #0]
  42665. 801248a: 3308 adds r3, #8
  42666. 801248c: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  42667. 8012490: 673a str r2, [r7, #112] @ 0x70
  42668. 8012492: 66fb str r3, [r7, #108] @ 0x6c
  42669. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42670. 8012494: 6ef9 ldr r1, [r7, #108] @ 0x6c
  42671. 8012496: 6f3a ldr r2, [r7, #112] @ 0x70
  42672. 8012498: e841 2300 strex r3, r2, [r1]
  42673. 801249c: 66bb str r3, [r7, #104] @ 0x68
  42674. return(result);
  42675. 801249e: 6ebb ldr r3, [r7, #104] @ 0x68
  42676. 80124a0: 2b00 cmp r3, #0
  42677. 80124a2: d1e3 bne.n 801246c <UART_Start_Receive_IT+0xb4>
  42678. /* Configure Rx interrupt processing */
  42679. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  42680. 80124a4: 68fb ldr r3, [r7, #12]
  42681. 80124a6: 6e5b ldr r3, [r3, #100] @ 0x64
  42682. 80124a8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  42683. 80124ac: d14f bne.n 801254e <UART_Start_Receive_IT+0x196>
  42684. 80124ae: 68fb ldr r3, [r7, #12]
  42685. 80124b0: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  42686. 80124b4: 88fa ldrh r2, [r7, #6]
  42687. 80124b6: 429a cmp r2, r3
  42688. 80124b8: d349 bcc.n 801254e <UART_Start_Receive_IT+0x196>
  42689. {
  42690. /* Set the Rx ISR function pointer according to the data word length */
  42691. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42692. 80124ba: 68fb ldr r3, [r7, #12]
  42693. 80124bc: 689b ldr r3, [r3, #8]
  42694. 80124be: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42695. 80124c2: d107 bne.n 80124d4 <UART_Start_Receive_IT+0x11c>
  42696. 80124c4: 68fb ldr r3, [r7, #12]
  42697. 80124c6: 691b ldr r3, [r3, #16]
  42698. 80124c8: 2b00 cmp r3, #0
  42699. 80124ca: d103 bne.n 80124d4 <UART_Start_Receive_IT+0x11c>
  42700. {
  42701. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  42702. 80124cc: 68fb ldr r3, [r7, #12]
  42703. 80124ce: 4a47 ldr r2, [pc, #284] @ (80125ec <UART_Start_Receive_IT+0x234>)
  42704. 80124d0: 675a str r2, [r3, #116] @ 0x74
  42705. 80124d2: e002 b.n 80124da <UART_Start_Receive_IT+0x122>
  42706. }
  42707. else
  42708. {
  42709. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  42710. 80124d4: 68fb ldr r3, [r7, #12]
  42711. 80124d6: 4a46 ldr r2, [pc, #280] @ (80125f0 <UART_Start_Receive_IT+0x238>)
  42712. 80124d8: 675a str r2, [r3, #116] @ 0x74
  42713. }
  42714. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  42715. if (huart->Init.Parity != UART_PARITY_NONE)
  42716. 80124da: 68fb ldr r3, [r7, #12]
  42717. 80124dc: 691b ldr r3, [r3, #16]
  42718. 80124de: 2b00 cmp r3, #0
  42719. 80124e0: d01a beq.n 8012518 <UART_Start_Receive_IT+0x160>
  42720. {
  42721. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  42722. 80124e2: 68fb ldr r3, [r7, #12]
  42723. 80124e4: 681b ldr r3, [r3, #0]
  42724. 80124e6: 653b str r3, [r7, #80] @ 0x50
  42725. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42726. 80124e8: 6d3b ldr r3, [r7, #80] @ 0x50
  42727. 80124ea: e853 3f00 ldrex r3, [r3]
  42728. 80124ee: 64fb str r3, [r7, #76] @ 0x4c
  42729. return(result);
  42730. 80124f0: 6cfb ldr r3, [r7, #76] @ 0x4c
  42731. 80124f2: f443 7380 orr.w r3, r3, #256 @ 0x100
  42732. 80124f6: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  42733. 80124fa: 68fb ldr r3, [r7, #12]
  42734. 80124fc: 681b ldr r3, [r3, #0]
  42735. 80124fe: 461a mov r2, r3
  42736. 8012500: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  42737. 8012504: 65fb str r3, [r7, #92] @ 0x5c
  42738. 8012506: 65ba str r2, [r7, #88] @ 0x58
  42739. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42740. 8012508: 6db9 ldr r1, [r7, #88] @ 0x58
  42741. 801250a: 6dfa ldr r2, [r7, #92] @ 0x5c
  42742. 801250c: e841 2300 strex r3, r2, [r1]
  42743. 8012510: 657b str r3, [r7, #84] @ 0x54
  42744. return(result);
  42745. 8012512: 6d7b ldr r3, [r7, #84] @ 0x54
  42746. 8012514: 2b00 cmp r3, #0
  42747. 8012516: d1e4 bne.n 80124e2 <UART_Start_Receive_IT+0x12a>
  42748. }
  42749. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  42750. 8012518: 68fb ldr r3, [r7, #12]
  42751. 801251a: 681b ldr r3, [r3, #0]
  42752. 801251c: 3308 adds r3, #8
  42753. 801251e: 63fb str r3, [r7, #60] @ 0x3c
  42754. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42755. 8012520: 6bfb ldr r3, [r7, #60] @ 0x3c
  42756. 8012522: e853 3f00 ldrex r3, [r3]
  42757. 8012526: 63bb str r3, [r7, #56] @ 0x38
  42758. return(result);
  42759. 8012528: 6bbb ldr r3, [r7, #56] @ 0x38
  42760. 801252a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  42761. 801252e: 67fb str r3, [r7, #124] @ 0x7c
  42762. 8012530: 68fb ldr r3, [r7, #12]
  42763. 8012532: 681b ldr r3, [r3, #0]
  42764. 8012534: 3308 adds r3, #8
  42765. 8012536: 6ffa ldr r2, [r7, #124] @ 0x7c
  42766. 8012538: 64ba str r2, [r7, #72] @ 0x48
  42767. 801253a: 647b str r3, [r7, #68] @ 0x44
  42768. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42769. 801253c: 6c79 ldr r1, [r7, #68] @ 0x44
  42770. 801253e: 6cba ldr r2, [r7, #72] @ 0x48
  42771. 8012540: e841 2300 strex r3, r2, [r1]
  42772. 8012544: 643b str r3, [r7, #64] @ 0x40
  42773. return(result);
  42774. 8012546: 6c3b ldr r3, [r7, #64] @ 0x40
  42775. 8012548: 2b00 cmp r3, #0
  42776. 801254a: d1e5 bne.n 8012518 <UART_Start_Receive_IT+0x160>
  42777. 801254c: e046 b.n 80125dc <UART_Start_Receive_IT+0x224>
  42778. }
  42779. else
  42780. {
  42781. /* Set the Rx ISR function pointer according to the data word length */
  42782. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42783. 801254e: 68fb ldr r3, [r7, #12]
  42784. 8012550: 689b ldr r3, [r3, #8]
  42785. 8012552: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42786. 8012556: d107 bne.n 8012568 <UART_Start_Receive_IT+0x1b0>
  42787. 8012558: 68fb ldr r3, [r7, #12]
  42788. 801255a: 691b ldr r3, [r3, #16]
  42789. 801255c: 2b00 cmp r3, #0
  42790. 801255e: d103 bne.n 8012568 <UART_Start_Receive_IT+0x1b0>
  42791. {
  42792. huart->RxISR = UART_RxISR_16BIT;
  42793. 8012560: 68fb ldr r3, [r7, #12]
  42794. 8012562: 4a24 ldr r2, [pc, #144] @ (80125f4 <UART_Start_Receive_IT+0x23c>)
  42795. 8012564: 675a str r2, [r3, #116] @ 0x74
  42796. 8012566: e002 b.n 801256e <UART_Start_Receive_IT+0x1b6>
  42797. }
  42798. else
  42799. {
  42800. huart->RxISR = UART_RxISR_8BIT;
  42801. 8012568: 68fb ldr r3, [r7, #12]
  42802. 801256a: 4a23 ldr r2, [pc, #140] @ (80125f8 <UART_Start_Receive_IT+0x240>)
  42803. 801256c: 675a str r2, [r3, #116] @ 0x74
  42804. }
  42805. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  42806. if (huart->Init.Parity != UART_PARITY_NONE)
  42807. 801256e: 68fb ldr r3, [r7, #12]
  42808. 8012570: 691b ldr r3, [r3, #16]
  42809. 8012572: 2b00 cmp r3, #0
  42810. 8012574: d019 beq.n 80125aa <UART_Start_Receive_IT+0x1f2>
  42811. {
  42812. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  42813. 8012576: 68fb ldr r3, [r7, #12]
  42814. 8012578: 681b ldr r3, [r3, #0]
  42815. 801257a: 62bb str r3, [r7, #40] @ 0x28
  42816. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42817. 801257c: 6abb ldr r3, [r7, #40] @ 0x28
  42818. 801257e: e853 3f00 ldrex r3, [r3]
  42819. 8012582: 627b str r3, [r7, #36] @ 0x24
  42820. return(result);
  42821. 8012584: 6a7b ldr r3, [r7, #36] @ 0x24
  42822. 8012586: f443 7390 orr.w r3, r3, #288 @ 0x120
  42823. 801258a: 677b str r3, [r7, #116] @ 0x74
  42824. 801258c: 68fb ldr r3, [r7, #12]
  42825. 801258e: 681b ldr r3, [r3, #0]
  42826. 8012590: 461a mov r2, r3
  42827. 8012592: 6f7b ldr r3, [r7, #116] @ 0x74
  42828. 8012594: 637b str r3, [r7, #52] @ 0x34
  42829. 8012596: 633a str r2, [r7, #48] @ 0x30
  42830. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42831. 8012598: 6b39 ldr r1, [r7, #48] @ 0x30
  42832. 801259a: 6b7a ldr r2, [r7, #52] @ 0x34
  42833. 801259c: e841 2300 strex r3, r2, [r1]
  42834. 80125a0: 62fb str r3, [r7, #44] @ 0x2c
  42835. return(result);
  42836. 80125a2: 6afb ldr r3, [r7, #44] @ 0x2c
  42837. 80125a4: 2b00 cmp r3, #0
  42838. 80125a6: d1e6 bne.n 8012576 <UART_Start_Receive_IT+0x1be>
  42839. 80125a8: e018 b.n 80125dc <UART_Start_Receive_IT+0x224>
  42840. }
  42841. else
  42842. {
  42843. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  42844. 80125aa: 68fb ldr r3, [r7, #12]
  42845. 80125ac: 681b ldr r3, [r3, #0]
  42846. 80125ae: 617b str r3, [r7, #20]
  42847. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42848. 80125b0: 697b ldr r3, [r7, #20]
  42849. 80125b2: e853 3f00 ldrex r3, [r3]
  42850. 80125b6: 613b str r3, [r7, #16]
  42851. return(result);
  42852. 80125b8: 693b ldr r3, [r7, #16]
  42853. 80125ba: f043 0320 orr.w r3, r3, #32
  42854. 80125be: 67bb str r3, [r7, #120] @ 0x78
  42855. 80125c0: 68fb ldr r3, [r7, #12]
  42856. 80125c2: 681b ldr r3, [r3, #0]
  42857. 80125c4: 461a mov r2, r3
  42858. 80125c6: 6fbb ldr r3, [r7, #120] @ 0x78
  42859. 80125c8: 623b str r3, [r7, #32]
  42860. 80125ca: 61fa str r2, [r7, #28]
  42861. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42862. 80125cc: 69f9 ldr r1, [r7, #28]
  42863. 80125ce: 6a3a ldr r2, [r7, #32]
  42864. 80125d0: e841 2300 strex r3, r2, [r1]
  42865. 80125d4: 61bb str r3, [r7, #24]
  42866. return(result);
  42867. 80125d6: 69bb ldr r3, [r7, #24]
  42868. 80125d8: 2b00 cmp r3, #0
  42869. 80125da: d1e6 bne.n 80125aa <UART_Start_Receive_IT+0x1f2>
  42870. }
  42871. }
  42872. return HAL_OK;
  42873. 80125dc: 2300 movs r3, #0
  42874. }
  42875. 80125de: 4618 mov r0, r3
  42876. 80125e0: 378c adds r7, #140 @ 0x8c
  42877. 80125e2: 46bd mov sp, r7
  42878. 80125e4: f85d 7b04 ldr.w r7, [sp], #4
  42879. 80125e8: 4770 bx lr
  42880. 80125ea: bf00 nop
  42881. 80125ec: 08013161 .word 0x08013161
  42882. 80125f0: 08012e01 .word 0x08012e01
  42883. 80125f4: 08012c49 .word 0x08012c49
  42884. 80125f8: 08012a91 .word 0x08012a91
  42885. 080125fc <UART_EndRxTransfer>:
  42886. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  42887. * @param huart UART handle.
  42888. * @retval None
  42889. */
  42890. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  42891. {
  42892. 80125fc: b480 push {r7}
  42893. 80125fe: b095 sub sp, #84 @ 0x54
  42894. 8012600: af00 add r7, sp, #0
  42895. 8012602: 6078 str r0, [r7, #4]
  42896. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  42897. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  42898. 8012604: 687b ldr r3, [r7, #4]
  42899. 8012606: 681b ldr r3, [r3, #0]
  42900. 8012608: 637b str r3, [r7, #52] @ 0x34
  42901. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42902. 801260a: 6b7b ldr r3, [r7, #52] @ 0x34
  42903. 801260c: e853 3f00 ldrex r3, [r3]
  42904. 8012610: 633b str r3, [r7, #48] @ 0x30
  42905. return(result);
  42906. 8012612: 6b3b ldr r3, [r7, #48] @ 0x30
  42907. 8012614: f423 7390 bic.w r3, r3, #288 @ 0x120
  42908. 8012618: 64fb str r3, [r7, #76] @ 0x4c
  42909. 801261a: 687b ldr r3, [r7, #4]
  42910. 801261c: 681b ldr r3, [r3, #0]
  42911. 801261e: 461a mov r2, r3
  42912. 8012620: 6cfb ldr r3, [r7, #76] @ 0x4c
  42913. 8012622: 643b str r3, [r7, #64] @ 0x40
  42914. 8012624: 63fa str r2, [r7, #60] @ 0x3c
  42915. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42916. 8012626: 6bf9 ldr r1, [r7, #60] @ 0x3c
  42917. 8012628: 6c3a ldr r2, [r7, #64] @ 0x40
  42918. 801262a: e841 2300 strex r3, r2, [r1]
  42919. 801262e: 63bb str r3, [r7, #56] @ 0x38
  42920. return(result);
  42921. 8012630: 6bbb ldr r3, [r7, #56] @ 0x38
  42922. 8012632: 2b00 cmp r3, #0
  42923. 8012634: d1e6 bne.n 8012604 <UART_EndRxTransfer+0x8>
  42924. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  42925. 8012636: 687b ldr r3, [r7, #4]
  42926. 8012638: 681b ldr r3, [r3, #0]
  42927. 801263a: 3308 adds r3, #8
  42928. 801263c: 623b str r3, [r7, #32]
  42929. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42930. 801263e: 6a3b ldr r3, [r7, #32]
  42931. 8012640: e853 3f00 ldrex r3, [r3]
  42932. 8012644: 61fb str r3, [r7, #28]
  42933. return(result);
  42934. 8012646: 69fa ldr r2, [r7, #28]
  42935. 8012648: 4b1e ldr r3, [pc, #120] @ (80126c4 <UART_EndRxTransfer+0xc8>)
  42936. 801264a: 4013 ands r3, r2
  42937. 801264c: 64bb str r3, [r7, #72] @ 0x48
  42938. 801264e: 687b ldr r3, [r7, #4]
  42939. 8012650: 681b ldr r3, [r3, #0]
  42940. 8012652: 3308 adds r3, #8
  42941. 8012654: 6cba ldr r2, [r7, #72] @ 0x48
  42942. 8012656: 62fa str r2, [r7, #44] @ 0x2c
  42943. 8012658: 62bb str r3, [r7, #40] @ 0x28
  42944. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42945. 801265a: 6ab9 ldr r1, [r7, #40] @ 0x28
  42946. 801265c: 6afa ldr r2, [r7, #44] @ 0x2c
  42947. 801265e: e841 2300 strex r3, r2, [r1]
  42948. 8012662: 627b str r3, [r7, #36] @ 0x24
  42949. return(result);
  42950. 8012664: 6a7b ldr r3, [r7, #36] @ 0x24
  42951. 8012666: 2b00 cmp r3, #0
  42952. 8012668: d1e5 bne.n 8012636 <UART_EndRxTransfer+0x3a>
  42953. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  42954. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  42955. 801266a: 687b ldr r3, [r7, #4]
  42956. 801266c: 6edb ldr r3, [r3, #108] @ 0x6c
  42957. 801266e: 2b01 cmp r3, #1
  42958. 8012670: d118 bne.n 80126a4 <UART_EndRxTransfer+0xa8>
  42959. {
  42960. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  42961. 8012672: 687b ldr r3, [r7, #4]
  42962. 8012674: 681b ldr r3, [r3, #0]
  42963. 8012676: 60fb str r3, [r7, #12]
  42964. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42965. 8012678: 68fb ldr r3, [r7, #12]
  42966. 801267a: e853 3f00 ldrex r3, [r3]
  42967. 801267e: 60bb str r3, [r7, #8]
  42968. return(result);
  42969. 8012680: 68bb ldr r3, [r7, #8]
  42970. 8012682: f023 0310 bic.w r3, r3, #16
  42971. 8012686: 647b str r3, [r7, #68] @ 0x44
  42972. 8012688: 687b ldr r3, [r7, #4]
  42973. 801268a: 681b ldr r3, [r3, #0]
  42974. 801268c: 461a mov r2, r3
  42975. 801268e: 6c7b ldr r3, [r7, #68] @ 0x44
  42976. 8012690: 61bb str r3, [r7, #24]
  42977. 8012692: 617a str r2, [r7, #20]
  42978. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42979. 8012694: 6979 ldr r1, [r7, #20]
  42980. 8012696: 69ba ldr r2, [r7, #24]
  42981. 8012698: e841 2300 strex r3, r2, [r1]
  42982. 801269c: 613b str r3, [r7, #16]
  42983. return(result);
  42984. 801269e: 693b ldr r3, [r7, #16]
  42985. 80126a0: 2b00 cmp r3, #0
  42986. 80126a2: d1e6 bne.n 8012672 <UART_EndRxTransfer+0x76>
  42987. }
  42988. /* At end of Rx process, restore huart->RxState to Ready */
  42989. huart->RxState = HAL_UART_STATE_READY;
  42990. 80126a4: 687b ldr r3, [r7, #4]
  42991. 80126a6: 2220 movs r2, #32
  42992. 80126a8: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42993. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  42994. 80126ac: 687b ldr r3, [r7, #4]
  42995. 80126ae: 2200 movs r2, #0
  42996. 80126b0: 66da str r2, [r3, #108] @ 0x6c
  42997. /* Reset RxIsr function pointer */
  42998. huart->RxISR = NULL;
  42999. 80126b2: 687b ldr r3, [r7, #4]
  43000. 80126b4: 2200 movs r2, #0
  43001. 80126b6: 675a str r2, [r3, #116] @ 0x74
  43002. }
  43003. 80126b8: bf00 nop
  43004. 80126ba: 3754 adds r7, #84 @ 0x54
  43005. 80126bc: 46bd mov sp, r7
  43006. 80126be: f85d 7b04 ldr.w r7, [sp], #4
  43007. 80126c2: 4770 bx lr
  43008. 80126c4: effffffe .word 0xeffffffe
  43009. 080126c8 <UART_DMAAbortOnError>:
  43010. * (To be called at end of DMA Abort procedure following error occurrence).
  43011. * @param hdma DMA handle.
  43012. * @retval None
  43013. */
  43014. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  43015. {
  43016. 80126c8: b580 push {r7, lr}
  43017. 80126ca: b084 sub sp, #16
  43018. 80126cc: af00 add r7, sp, #0
  43019. 80126ce: 6078 str r0, [r7, #4]
  43020. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  43021. 80126d0: 687b ldr r3, [r7, #4]
  43022. 80126d2: 6b9b ldr r3, [r3, #56] @ 0x38
  43023. 80126d4: 60fb str r3, [r7, #12]
  43024. huart->RxXferCount = 0U;
  43025. 80126d6: 68fb ldr r3, [r7, #12]
  43026. 80126d8: 2200 movs r2, #0
  43027. 80126da: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43028. huart->TxXferCount = 0U;
  43029. 80126de: 68fb ldr r3, [r7, #12]
  43030. 80126e0: 2200 movs r2, #0
  43031. 80126e2: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43032. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43033. /*Call registered error callback*/
  43034. huart->ErrorCallback(huart);
  43035. #else
  43036. /*Call legacy weak error callback*/
  43037. HAL_UART_ErrorCallback(huart);
  43038. 80126e6: 68f8 ldr r0, [r7, #12]
  43039. 80126e8: f7fe ff3a bl 8011560 <HAL_UART_ErrorCallback>
  43040. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43041. }
  43042. 80126ec: bf00 nop
  43043. 80126ee: 3710 adds r7, #16
  43044. 80126f0: 46bd mov sp, r7
  43045. 80126f2: bd80 pop {r7, pc}
  43046. 080126f4 <UART_TxISR_8BIT>:
  43047. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43048. * @param huart UART handle.
  43049. * @retval None
  43050. */
  43051. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  43052. {
  43053. 80126f4: b480 push {r7}
  43054. 80126f6: b08f sub sp, #60 @ 0x3c
  43055. 80126f8: af00 add r7, sp, #0
  43056. 80126fa: 6078 str r0, [r7, #4]
  43057. /* Check that a Tx process is ongoing */
  43058. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43059. 80126fc: 687b ldr r3, [r7, #4]
  43060. 80126fe: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43061. 8012702: 2b21 cmp r3, #33 @ 0x21
  43062. 8012704: d14c bne.n 80127a0 <UART_TxISR_8BIT+0xac>
  43063. {
  43064. if (huart->TxXferCount == 0U)
  43065. 8012706: 687b ldr r3, [r7, #4]
  43066. 8012708: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43067. 801270c: b29b uxth r3, r3
  43068. 801270e: 2b00 cmp r3, #0
  43069. 8012710: d132 bne.n 8012778 <UART_TxISR_8BIT+0x84>
  43070. {
  43071. /* Disable the UART Transmit Data Register Empty Interrupt */
  43072. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  43073. 8012712: 687b ldr r3, [r7, #4]
  43074. 8012714: 681b ldr r3, [r3, #0]
  43075. 8012716: 623b str r3, [r7, #32]
  43076. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43077. 8012718: 6a3b ldr r3, [r7, #32]
  43078. 801271a: e853 3f00 ldrex r3, [r3]
  43079. 801271e: 61fb str r3, [r7, #28]
  43080. return(result);
  43081. 8012720: 69fb ldr r3, [r7, #28]
  43082. 8012722: f023 0380 bic.w r3, r3, #128 @ 0x80
  43083. 8012726: 637b str r3, [r7, #52] @ 0x34
  43084. 8012728: 687b ldr r3, [r7, #4]
  43085. 801272a: 681b ldr r3, [r3, #0]
  43086. 801272c: 461a mov r2, r3
  43087. 801272e: 6b7b ldr r3, [r7, #52] @ 0x34
  43088. 8012730: 62fb str r3, [r7, #44] @ 0x2c
  43089. 8012732: 62ba str r2, [r7, #40] @ 0x28
  43090. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43091. 8012734: 6ab9 ldr r1, [r7, #40] @ 0x28
  43092. 8012736: 6afa ldr r2, [r7, #44] @ 0x2c
  43093. 8012738: e841 2300 strex r3, r2, [r1]
  43094. 801273c: 627b str r3, [r7, #36] @ 0x24
  43095. return(result);
  43096. 801273e: 6a7b ldr r3, [r7, #36] @ 0x24
  43097. 8012740: 2b00 cmp r3, #0
  43098. 8012742: d1e6 bne.n 8012712 <UART_TxISR_8BIT+0x1e>
  43099. /* Enable the UART Transmit Complete Interrupt */
  43100. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43101. 8012744: 687b ldr r3, [r7, #4]
  43102. 8012746: 681b ldr r3, [r3, #0]
  43103. 8012748: 60fb str r3, [r7, #12]
  43104. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43105. 801274a: 68fb ldr r3, [r7, #12]
  43106. 801274c: e853 3f00 ldrex r3, [r3]
  43107. 8012750: 60bb str r3, [r7, #8]
  43108. return(result);
  43109. 8012752: 68bb ldr r3, [r7, #8]
  43110. 8012754: f043 0340 orr.w r3, r3, #64 @ 0x40
  43111. 8012758: 633b str r3, [r7, #48] @ 0x30
  43112. 801275a: 687b ldr r3, [r7, #4]
  43113. 801275c: 681b ldr r3, [r3, #0]
  43114. 801275e: 461a mov r2, r3
  43115. 8012760: 6b3b ldr r3, [r7, #48] @ 0x30
  43116. 8012762: 61bb str r3, [r7, #24]
  43117. 8012764: 617a str r2, [r7, #20]
  43118. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43119. 8012766: 6979 ldr r1, [r7, #20]
  43120. 8012768: 69ba ldr r2, [r7, #24]
  43121. 801276a: e841 2300 strex r3, r2, [r1]
  43122. 801276e: 613b str r3, [r7, #16]
  43123. return(result);
  43124. 8012770: 693b ldr r3, [r7, #16]
  43125. 8012772: 2b00 cmp r3, #0
  43126. 8012774: d1e6 bne.n 8012744 <UART_TxISR_8BIT+0x50>
  43127. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43128. huart->pTxBuffPtr++;
  43129. huart->TxXferCount--;
  43130. }
  43131. }
  43132. }
  43133. 8012776: e013 b.n 80127a0 <UART_TxISR_8BIT+0xac>
  43134. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43135. 8012778: 687b ldr r3, [r7, #4]
  43136. 801277a: 6d1b ldr r3, [r3, #80] @ 0x50
  43137. 801277c: 781a ldrb r2, [r3, #0]
  43138. 801277e: 687b ldr r3, [r7, #4]
  43139. 8012780: 681b ldr r3, [r3, #0]
  43140. 8012782: 629a str r2, [r3, #40] @ 0x28
  43141. huart->pTxBuffPtr++;
  43142. 8012784: 687b ldr r3, [r7, #4]
  43143. 8012786: 6d1b ldr r3, [r3, #80] @ 0x50
  43144. 8012788: 1c5a adds r2, r3, #1
  43145. 801278a: 687b ldr r3, [r7, #4]
  43146. 801278c: 651a str r2, [r3, #80] @ 0x50
  43147. huart->TxXferCount--;
  43148. 801278e: 687b ldr r3, [r7, #4]
  43149. 8012790: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43150. 8012794: b29b uxth r3, r3
  43151. 8012796: 3b01 subs r3, #1
  43152. 8012798: b29a uxth r2, r3
  43153. 801279a: 687b ldr r3, [r7, #4]
  43154. 801279c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43155. }
  43156. 80127a0: bf00 nop
  43157. 80127a2: 373c adds r7, #60 @ 0x3c
  43158. 80127a4: 46bd mov sp, r7
  43159. 80127a6: f85d 7b04 ldr.w r7, [sp], #4
  43160. 80127aa: 4770 bx lr
  43161. 080127ac <UART_TxISR_16BIT>:
  43162. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43163. * @param huart UART handle.
  43164. * @retval None
  43165. */
  43166. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  43167. {
  43168. 80127ac: b480 push {r7}
  43169. 80127ae: b091 sub sp, #68 @ 0x44
  43170. 80127b0: af00 add r7, sp, #0
  43171. 80127b2: 6078 str r0, [r7, #4]
  43172. const uint16_t *tmp;
  43173. /* Check that a Tx process is ongoing */
  43174. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43175. 80127b4: 687b ldr r3, [r7, #4]
  43176. 80127b6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43177. 80127ba: 2b21 cmp r3, #33 @ 0x21
  43178. 80127bc: d151 bne.n 8012862 <UART_TxISR_16BIT+0xb6>
  43179. {
  43180. if (huart->TxXferCount == 0U)
  43181. 80127be: 687b ldr r3, [r7, #4]
  43182. 80127c0: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43183. 80127c4: b29b uxth r3, r3
  43184. 80127c6: 2b00 cmp r3, #0
  43185. 80127c8: d132 bne.n 8012830 <UART_TxISR_16BIT+0x84>
  43186. {
  43187. /* Disable the UART Transmit Data Register Empty Interrupt */
  43188. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  43189. 80127ca: 687b ldr r3, [r7, #4]
  43190. 80127cc: 681b ldr r3, [r3, #0]
  43191. 80127ce: 627b str r3, [r7, #36] @ 0x24
  43192. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43193. 80127d0: 6a7b ldr r3, [r7, #36] @ 0x24
  43194. 80127d2: e853 3f00 ldrex r3, [r3]
  43195. 80127d6: 623b str r3, [r7, #32]
  43196. return(result);
  43197. 80127d8: 6a3b ldr r3, [r7, #32]
  43198. 80127da: f023 0380 bic.w r3, r3, #128 @ 0x80
  43199. 80127de: 63bb str r3, [r7, #56] @ 0x38
  43200. 80127e0: 687b ldr r3, [r7, #4]
  43201. 80127e2: 681b ldr r3, [r3, #0]
  43202. 80127e4: 461a mov r2, r3
  43203. 80127e6: 6bbb ldr r3, [r7, #56] @ 0x38
  43204. 80127e8: 633b str r3, [r7, #48] @ 0x30
  43205. 80127ea: 62fa str r2, [r7, #44] @ 0x2c
  43206. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43207. 80127ec: 6af9 ldr r1, [r7, #44] @ 0x2c
  43208. 80127ee: 6b3a ldr r2, [r7, #48] @ 0x30
  43209. 80127f0: e841 2300 strex r3, r2, [r1]
  43210. 80127f4: 62bb str r3, [r7, #40] @ 0x28
  43211. return(result);
  43212. 80127f6: 6abb ldr r3, [r7, #40] @ 0x28
  43213. 80127f8: 2b00 cmp r3, #0
  43214. 80127fa: d1e6 bne.n 80127ca <UART_TxISR_16BIT+0x1e>
  43215. /* Enable the UART Transmit Complete Interrupt */
  43216. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43217. 80127fc: 687b ldr r3, [r7, #4]
  43218. 80127fe: 681b ldr r3, [r3, #0]
  43219. 8012800: 613b str r3, [r7, #16]
  43220. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43221. 8012802: 693b ldr r3, [r7, #16]
  43222. 8012804: e853 3f00 ldrex r3, [r3]
  43223. 8012808: 60fb str r3, [r7, #12]
  43224. return(result);
  43225. 801280a: 68fb ldr r3, [r7, #12]
  43226. 801280c: f043 0340 orr.w r3, r3, #64 @ 0x40
  43227. 8012810: 637b str r3, [r7, #52] @ 0x34
  43228. 8012812: 687b ldr r3, [r7, #4]
  43229. 8012814: 681b ldr r3, [r3, #0]
  43230. 8012816: 461a mov r2, r3
  43231. 8012818: 6b7b ldr r3, [r7, #52] @ 0x34
  43232. 801281a: 61fb str r3, [r7, #28]
  43233. 801281c: 61ba str r2, [r7, #24]
  43234. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43235. 801281e: 69b9 ldr r1, [r7, #24]
  43236. 8012820: 69fa ldr r2, [r7, #28]
  43237. 8012822: e841 2300 strex r3, r2, [r1]
  43238. 8012826: 617b str r3, [r7, #20]
  43239. return(result);
  43240. 8012828: 697b ldr r3, [r7, #20]
  43241. 801282a: 2b00 cmp r3, #0
  43242. 801282c: d1e6 bne.n 80127fc <UART_TxISR_16BIT+0x50>
  43243. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  43244. huart->pTxBuffPtr += 2U;
  43245. huart->TxXferCount--;
  43246. }
  43247. }
  43248. }
  43249. 801282e: e018 b.n 8012862 <UART_TxISR_16BIT+0xb6>
  43250. tmp = (const uint16_t *) huart->pTxBuffPtr;
  43251. 8012830: 687b ldr r3, [r7, #4]
  43252. 8012832: 6d1b ldr r3, [r3, #80] @ 0x50
  43253. 8012834: 63fb str r3, [r7, #60] @ 0x3c
  43254. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  43255. 8012836: 6bfb ldr r3, [r7, #60] @ 0x3c
  43256. 8012838: 881b ldrh r3, [r3, #0]
  43257. 801283a: 461a mov r2, r3
  43258. 801283c: 687b ldr r3, [r7, #4]
  43259. 801283e: 681b ldr r3, [r3, #0]
  43260. 8012840: f3c2 0208 ubfx r2, r2, #0, #9
  43261. 8012844: 629a str r2, [r3, #40] @ 0x28
  43262. huart->pTxBuffPtr += 2U;
  43263. 8012846: 687b ldr r3, [r7, #4]
  43264. 8012848: 6d1b ldr r3, [r3, #80] @ 0x50
  43265. 801284a: 1c9a adds r2, r3, #2
  43266. 801284c: 687b ldr r3, [r7, #4]
  43267. 801284e: 651a str r2, [r3, #80] @ 0x50
  43268. huart->TxXferCount--;
  43269. 8012850: 687b ldr r3, [r7, #4]
  43270. 8012852: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43271. 8012856: b29b uxth r3, r3
  43272. 8012858: 3b01 subs r3, #1
  43273. 801285a: b29a uxth r2, r3
  43274. 801285c: 687b ldr r3, [r7, #4]
  43275. 801285e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43276. }
  43277. 8012862: bf00 nop
  43278. 8012864: 3744 adds r7, #68 @ 0x44
  43279. 8012866: 46bd mov sp, r7
  43280. 8012868: f85d 7b04 ldr.w r7, [sp], #4
  43281. 801286c: 4770 bx lr
  43282. 0801286e <UART_TxISR_8BIT_FIFOEN>:
  43283. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43284. * @param huart UART handle.
  43285. * @retval None
  43286. */
  43287. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  43288. {
  43289. 801286e: b480 push {r7}
  43290. 8012870: b091 sub sp, #68 @ 0x44
  43291. 8012872: af00 add r7, sp, #0
  43292. 8012874: 6078 str r0, [r7, #4]
  43293. uint16_t nb_tx_data;
  43294. /* Check that a Tx process is ongoing */
  43295. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43296. 8012876: 687b ldr r3, [r7, #4]
  43297. 8012878: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43298. 801287c: 2b21 cmp r3, #33 @ 0x21
  43299. 801287e: d160 bne.n 8012942 <UART_TxISR_8BIT_FIFOEN+0xd4>
  43300. {
  43301. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43302. 8012880: 687b ldr r3, [r7, #4]
  43303. 8012882: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  43304. 8012886: 87fb strh r3, [r7, #62] @ 0x3e
  43305. 8012888: e057 b.n 801293a <UART_TxISR_8BIT_FIFOEN+0xcc>
  43306. {
  43307. if (huart->TxXferCount == 0U)
  43308. 801288a: 687b ldr r3, [r7, #4]
  43309. 801288c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43310. 8012890: b29b uxth r3, r3
  43311. 8012892: 2b00 cmp r3, #0
  43312. 8012894: d133 bne.n 80128fe <UART_TxISR_8BIT_FIFOEN+0x90>
  43313. {
  43314. /* Disable the TX FIFO threshold interrupt */
  43315. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  43316. 8012896: 687b ldr r3, [r7, #4]
  43317. 8012898: 681b ldr r3, [r3, #0]
  43318. 801289a: 3308 adds r3, #8
  43319. 801289c: 627b str r3, [r7, #36] @ 0x24
  43320. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43321. 801289e: 6a7b ldr r3, [r7, #36] @ 0x24
  43322. 80128a0: e853 3f00 ldrex r3, [r3]
  43323. 80128a4: 623b str r3, [r7, #32]
  43324. return(result);
  43325. 80128a6: 6a3b ldr r3, [r7, #32]
  43326. 80128a8: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  43327. 80128ac: 63bb str r3, [r7, #56] @ 0x38
  43328. 80128ae: 687b ldr r3, [r7, #4]
  43329. 80128b0: 681b ldr r3, [r3, #0]
  43330. 80128b2: 3308 adds r3, #8
  43331. 80128b4: 6bba ldr r2, [r7, #56] @ 0x38
  43332. 80128b6: 633a str r2, [r7, #48] @ 0x30
  43333. 80128b8: 62fb str r3, [r7, #44] @ 0x2c
  43334. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43335. 80128ba: 6af9 ldr r1, [r7, #44] @ 0x2c
  43336. 80128bc: 6b3a ldr r2, [r7, #48] @ 0x30
  43337. 80128be: e841 2300 strex r3, r2, [r1]
  43338. 80128c2: 62bb str r3, [r7, #40] @ 0x28
  43339. return(result);
  43340. 80128c4: 6abb ldr r3, [r7, #40] @ 0x28
  43341. 80128c6: 2b00 cmp r3, #0
  43342. 80128c8: d1e5 bne.n 8012896 <UART_TxISR_8BIT_FIFOEN+0x28>
  43343. /* Enable the UART Transmit Complete Interrupt */
  43344. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43345. 80128ca: 687b ldr r3, [r7, #4]
  43346. 80128cc: 681b ldr r3, [r3, #0]
  43347. 80128ce: 613b str r3, [r7, #16]
  43348. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43349. 80128d0: 693b ldr r3, [r7, #16]
  43350. 80128d2: e853 3f00 ldrex r3, [r3]
  43351. 80128d6: 60fb str r3, [r7, #12]
  43352. return(result);
  43353. 80128d8: 68fb ldr r3, [r7, #12]
  43354. 80128da: f043 0340 orr.w r3, r3, #64 @ 0x40
  43355. 80128de: 637b str r3, [r7, #52] @ 0x34
  43356. 80128e0: 687b ldr r3, [r7, #4]
  43357. 80128e2: 681b ldr r3, [r3, #0]
  43358. 80128e4: 461a mov r2, r3
  43359. 80128e6: 6b7b ldr r3, [r7, #52] @ 0x34
  43360. 80128e8: 61fb str r3, [r7, #28]
  43361. 80128ea: 61ba str r2, [r7, #24]
  43362. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43363. 80128ec: 69b9 ldr r1, [r7, #24]
  43364. 80128ee: 69fa ldr r2, [r7, #28]
  43365. 80128f0: e841 2300 strex r3, r2, [r1]
  43366. 80128f4: 617b str r3, [r7, #20]
  43367. return(result);
  43368. 80128f6: 697b ldr r3, [r7, #20]
  43369. 80128f8: 2b00 cmp r3, #0
  43370. 80128fa: d1e6 bne.n 80128ca <UART_TxISR_8BIT_FIFOEN+0x5c>
  43371. break; /* force exit loop */
  43372. 80128fc: e021 b.n 8012942 <UART_TxISR_8BIT_FIFOEN+0xd4>
  43373. }
  43374. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  43375. 80128fe: 687b ldr r3, [r7, #4]
  43376. 8012900: 681b ldr r3, [r3, #0]
  43377. 8012902: 69db ldr r3, [r3, #28]
  43378. 8012904: f003 0380 and.w r3, r3, #128 @ 0x80
  43379. 8012908: 2b00 cmp r3, #0
  43380. 801290a: d013 beq.n 8012934 <UART_TxISR_8BIT_FIFOEN+0xc6>
  43381. {
  43382. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43383. 801290c: 687b ldr r3, [r7, #4]
  43384. 801290e: 6d1b ldr r3, [r3, #80] @ 0x50
  43385. 8012910: 781a ldrb r2, [r3, #0]
  43386. 8012912: 687b ldr r3, [r7, #4]
  43387. 8012914: 681b ldr r3, [r3, #0]
  43388. 8012916: 629a str r2, [r3, #40] @ 0x28
  43389. huart->pTxBuffPtr++;
  43390. 8012918: 687b ldr r3, [r7, #4]
  43391. 801291a: 6d1b ldr r3, [r3, #80] @ 0x50
  43392. 801291c: 1c5a adds r2, r3, #1
  43393. 801291e: 687b ldr r3, [r7, #4]
  43394. 8012920: 651a str r2, [r3, #80] @ 0x50
  43395. huart->TxXferCount--;
  43396. 8012922: 687b ldr r3, [r7, #4]
  43397. 8012924: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43398. 8012928: b29b uxth r3, r3
  43399. 801292a: 3b01 subs r3, #1
  43400. 801292c: b29a uxth r2, r3
  43401. 801292e: 687b ldr r3, [r7, #4]
  43402. 8012930: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43403. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43404. 8012934: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43405. 8012936: 3b01 subs r3, #1
  43406. 8012938: 87fb strh r3, [r7, #62] @ 0x3e
  43407. 801293a: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43408. 801293c: 2b00 cmp r3, #0
  43409. 801293e: d1a4 bne.n 801288a <UART_TxISR_8BIT_FIFOEN+0x1c>
  43410. {
  43411. /* Nothing to do */
  43412. }
  43413. }
  43414. }
  43415. }
  43416. 8012940: e7ff b.n 8012942 <UART_TxISR_8BIT_FIFOEN+0xd4>
  43417. 8012942: bf00 nop
  43418. 8012944: 3744 adds r7, #68 @ 0x44
  43419. 8012946: 46bd mov sp, r7
  43420. 8012948: f85d 7b04 ldr.w r7, [sp], #4
  43421. 801294c: 4770 bx lr
  43422. 0801294e <UART_TxISR_16BIT_FIFOEN>:
  43423. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43424. * @param huart UART handle.
  43425. * @retval None
  43426. */
  43427. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  43428. {
  43429. 801294e: b480 push {r7}
  43430. 8012950: b091 sub sp, #68 @ 0x44
  43431. 8012952: af00 add r7, sp, #0
  43432. 8012954: 6078 str r0, [r7, #4]
  43433. const uint16_t *tmp;
  43434. uint16_t nb_tx_data;
  43435. /* Check that a Tx process is ongoing */
  43436. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43437. 8012956: 687b ldr r3, [r7, #4]
  43438. 8012958: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43439. 801295c: 2b21 cmp r3, #33 @ 0x21
  43440. 801295e: d165 bne.n 8012a2c <UART_TxISR_16BIT_FIFOEN+0xde>
  43441. {
  43442. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43443. 8012960: 687b ldr r3, [r7, #4]
  43444. 8012962: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  43445. 8012966: 87fb strh r3, [r7, #62] @ 0x3e
  43446. 8012968: e05c b.n 8012a24 <UART_TxISR_16BIT_FIFOEN+0xd6>
  43447. {
  43448. if (huart->TxXferCount == 0U)
  43449. 801296a: 687b ldr r3, [r7, #4]
  43450. 801296c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43451. 8012970: b29b uxth r3, r3
  43452. 8012972: 2b00 cmp r3, #0
  43453. 8012974: d133 bne.n 80129de <UART_TxISR_16BIT_FIFOEN+0x90>
  43454. {
  43455. /* Disable the TX FIFO threshold interrupt */
  43456. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  43457. 8012976: 687b ldr r3, [r7, #4]
  43458. 8012978: 681b ldr r3, [r3, #0]
  43459. 801297a: 3308 adds r3, #8
  43460. 801297c: 623b str r3, [r7, #32]
  43461. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43462. 801297e: 6a3b ldr r3, [r7, #32]
  43463. 8012980: e853 3f00 ldrex r3, [r3]
  43464. 8012984: 61fb str r3, [r7, #28]
  43465. return(result);
  43466. 8012986: 69fb ldr r3, [r7, #28]
  43467. 8012988: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  43468. 801298c: 637b str r3, [r7, #52] @ 0x34
  43469. 801298e: 687b ldr r3, [r7, #4]
  43470. 8012990: 681b ldr r3, [r3, #0]
  43471. 8012992: 3308 adds r3, #8
  43472. 8012994: 6b7a ldr r2, [r7, #52] @ 0x34
  43473. 8012996: 62fa str r2, [r7, #44] @ 0x2c
  43474. 8012998: 62bb str r3, [r7, #40] @ 0x28
  43475. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43476. 801299a: 6ab9 ldr r1, [r7, #40] @ 0x28
  43477. 801299c: 6afa ldr r2, [r7, #44] @ 0x2c
  43478. 801299e: e841 2300 strex r3, r2, [r1]
  43479. 80129a2: 627b str r3, [r7, #36] @ 0x24
  43480. return(result);
  43481. 80129a4: 6a7b ldr r3, [r7, #36] @ 0x24
  43482. 80129a6: 2b00 cmp r3, #0
  43483. 80129a8: d1e5 bne.n 8012976 <UART_TxISR_16BIT_FIFOEN+0x28>
  43484. /* Enable the UART Transmit Complete Interrupt */
  43485. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43486. 80129aa: 687b ldr r3, [r7, #4]
  43487. 80129ac: 681b ldr r3, [r3, #0]
  43488. 80129ae: 60fb str r3, [r7, #12]
  43489. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43490. 80129b0: 68fb ldr r3, [r7, #12]
  43491. 80129b2: e853 3f00 ldrex r3, [r3]
  43492. 80129b6: 60bb str r3, [r7, #8]
  43493. return(result);
  43494. 80129b8: 68bb ldr r3, [r7, #8]
  43495. 80129ba: f043 0340 orr.w r3, r3, #64 @ 0x40
  43496. 80129be: 633b str r3, [r7, #48] @ 0x30
  43497. 80129c0: 687b ldr r3, [r7, #4]
  43498. 80129c2: 681b ldr r3, [r3, #0]
  43499. 80129c4: 461a mov r2, r3
  43500. 80129c6: 6b3b ldr r3, [r7, #48] @ 0x30
  43501. 80129c8: 61bb str r3, [r7, #24]
  43502. 80129ca: 617a str r2, [r7, #20]
  43503. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43504. 80129cc: 6979 ldr r1, [r7, #20]
  43505. 80129ce: 69ba ldr r2, [r7, #24]
  43506. 80129d0: e841 2300 strex r3, r2, [r1]
  43507. 80129d4: 613b str r3, [r7, #16]
  43508. return(result);
  43509. 80129d6: 693b ldr r3, [r7, #16]
  43510. 80129d8: 2b00 cmp r3, #0
  43511. 80129da: d1e6 bne.n 80129aa <UART_TxISR_16BIT_FIFOEN+0x5c>
  43512. break; /* force exit loop */
  43513. 80129dc: e026 b.n 8012a2c <UART_TxISR_16BIT_FIFOEN+0xde>
  43514. }
  43515. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  43516. 80129de: 687b ldr r3, [r7, #4]
  43517. 80129e0: 681b ldr r3, [r3, #0]
  43518. 80129e2: 69db ldr r3, [r3, #28]
  43519. 80129e4: f003 0380 and.w r3, r3, #128 @ 0x80
  43520. 80129e8: 2b00 cmp r3, #0
  43521. 80129ea: d018 beq.n 8012a1e <UART_TxISR_16BIT_FIFOEN+0xd0>
  43522. {
  43523. tmp = (const uint16_t *) huart->pTxBuffPtr;
  43524. 80129ec: 687b ldr r3, [r7, #4]
  43525. 80129ee: 6d1b ldr r3, [r3, #80] @ 0x50
  43526. 80129f0: 63bb str r3, [r7, #56] @ 0x38
  43527. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  43528. 80129f2: 6bbb ldr r3, [r7, #56] @ 0x38
  43529. 80129f4: 881b ldrh r3, [r3, #0]
  43530. 80129f6: 461a mov r2, r3
  43531. 80129f8: 687b ldr r3, [r7, #4]
  43532. 80129fa: 681b ldr r3, [r3, #0]
  43533. 80129fc: f3c2 0208 ubfx r2, r2, #0, #9
  43534. 8012a00: 629a str r2, [r3, #40] @ 0x28
  43535. huart->pTxBuffPtr += 2U;
  43536. 8012a02: 687b ldr r3, [r7, #4]
  43537. 8012a04: 6d1b ldr r3, [r3, #80] @ 0x50
  43538. 8012a06: 1c9a adds r2, r3, #2
  43539. 8012a08: 687b ldr r3, [r7, #4]
  43540. 8012a0a: 651a str r2, [r3, #80] @ 0x50
  43541. huart->TxXferCount--;
  43542. 8012a0c: 687b ldr r3, [r7, #4]
  43543. 8012a0e: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43544. 8012a12: b29b uxth r3, r3
  43545. 8012a14: 3b01 subs r3, #1
  43546. 8012a16: b29a uxth r2, r3
  43547. 8012a18: 687b ldr r3, [r7, #4]
  43548. 8012a1a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43549. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43550. 8012a1e: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43551. 8012a20: 3b01 subs r3, #1
  43552. 8012a22: 87fb strh r3, [r7, #62] @ 0x3e
  43553. 8012a24: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43554. 8012a26: 2b00 cmp r3, #0
  43555. 8012a28: d19f bne.n 801296a <UART_TxISR_16BIT_FIFOEN+0x1c>
  43556. {
  43557. /* Nothing to do */
  43558. }
  43559. }
  43560. }
  43561. }
  43562. 8012a2a: e7ff b.n 8012a2c <UART_TxISR_16BIT_FIFOEN+0xde>
  43563. 8012a2c: bf00 nop
  43564. 8012a2e: 3744 adds r7, #68 @ 0x44
  43565. 8012a30: 46bd mov sp, r7
  43566. 8012a32: f85d 7b04 ldr.w r7, [sp], #4
  43567. 8012a36: 4770 bx lr
  43568. 08012a38 <UART_EndTransmit_IT>:
  43569. * @param huart pointer to a UART_HandleTypeDef structure that contains
  43570. * the configuration information for the specified UART module.
  43571. * @retval None
  43572. */
  43573. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  43574. {
  43575. 8012a38: b580 push {r7, lr}
  43576. 8012a3a: b088 sub sp, #32
  43577. 8012a3c: af00 add r7, sp, #0
  43578. 8012a3e: 6078 str r0, [r7, #4]
  43579. /* Disable the UART Transmit Complete Interrupt */
  43580. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43581. 8012a40: 687b ldr r3, [r7, #4]
  43582. 8012a42: 681b ldr r3, [r3, #0]
  43583. 8012a44: 60fb str r3, [r7, #12]
  43584. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43585. 8012a46: 68fb ldr r3, [r7, #12]
  43586. 8012a48: e853 3f00 ldrex r3, [r3]
  43587. 8012a4c: 60bb str r3, [r7, #8]
  43588. return(result);
  43589. 8012a4e: 68bb ldr r3, [r7, #8]
  43590. 8012a50: f023 0340 bic.w r3, r3, #64 @ 0x40
  43591. 8012a54: 61fb str r3, [r7, #28]
  43592. 8012a56: 687b ldr r3, [r7, #4]
  43593. 8012a58: 681b ldr r3, [r3, #0]
  43594. 8012a5a: 461a mov r2, r3
  43595. 8012a5c: 69fb ldr r3, [r7, #28]
  43596. 8012a5e: 61bb str r3, [r7, #24]
  43597. 8012a60: 617a str r2, [r7, #20]
  43598. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43599. 8012a62: 6979 ldr r1, [r7, #20]
  43600. 8012a64: 69ba ldr r2, [r7, #24]
  43601. 8012a66: e841 2300 strex r3, r2, [r1]
  43602. 8012a6a: 613b str r3, [r7, #16]
  43603. return(result);
  43604. 8012a6c: 693b ldr r3, [r7, #16]
  43605. 8012a6e: 2b00 cmp r3, #0
  43606. 8012a70: d1e6 bne.n 8012a40 <UART_EndTransmit_IT+0x8>
  43607. /* Tx process is ended, restore huart->gState to Ready */
  43608. huart->gState = HAL_UART_STATE_READY;
  43609. 8012a72: 687b ldr r3, [r7, #4]
  43610. 8012a74: 2220 movs r2, #32
  43611. 8012a76: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43612. /* Cleat TxISR function pointer */
  43613. huart->TxISR = NULL;
  43614. 8012a7a: 687b ldr r3, [r7, #4]
  43615. 8012a7c: 2200 movs r2, #0
  43616. 8012a7e: 679a str r2, [r3, #120] @ 0x78
  43617. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43618. /*Call registered Tx complete callback*/
  43619. huart->TxCpltCallback(huart);
  43620. #else
  43621. /*Call legacy weak Tx complete callback*/
  43622. HAL_UART_TxCpltCallback(huart);
  43623. 8012a80: 6878 ldr r0, [r7, #4]
  43624. 8012a82: f7f1 fd01 bl 8004488 <HAL_UART_TxCpltCallback>
  43625. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43626. }
  43627. 8012a86: bf00 nop
  43628. 8012a88: 3720 adds r7, #32
  43629. 8012a8a: 46bd mov sp, r7
  43630. 8012a8c: bd80 pop {r7, pc}
  43631. ...
  43632. 08012a90 <UART_RxISR_8BIT>:
  43633. * @brief RX interrupt handler for 7 or 8 bits data word length .
  43634. * @param huart UART handle.
  43635. * @retval None
  43636. */
  43637. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  43638. {
  43639. 8012a90: b580 push {r7, lr}
  43640. 8012a92: b09c sub sp, #112 @ 0x70
  43641. 8012a94: af00 add r7, sp, #0
  43642. 8012a96: 6078 str r0, [r7, #4]
  43643. uint16_t uhMask = huart->Mask;
  43644. 8012a98: 687b ldr r3, [r7, #4]
  43645. 8012a9a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43646. 8012a9e: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  43647. uint16_t uhdata;
  43648. /* Check that a Rx process is ongoing */
  43649. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43650. 8012aa2: 687b ldr r3, [r7, #4]
  43651. 8012aa4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43652. 8012aa8: 2b22 cmp r3, #34 @ 0x22
  43653. 8012aaa: f040 80be bne.w 8012c2a <UART_RxISR_8BIT+0x19a>
  43654. {
  43655. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43656. 8012aae: 687b ldr r3, [r7, #4]
  43657. 8012ab0: 681b ldr r3, [r3, #0]
  43658. 8012ab2: 6a5b ldr r3, [r3, #36] @ 0x24
  43659. 8012ab4: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  43660. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  43661. 8012ab8: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  43662. 8012abc: b2d9 uxtb r1, r3
  43663. 8012abe: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  43664. 8012ac2: b2da uxtb r2, r3
  43665. 8012ac4: 687b ldr r3, [r7, #4]
  43666. 8012ac6: 6d9b ldr r3, [r3, #88] @ 0x58
  43667. 8012ac8: 400a ands r2, r1
  43668. 8012aca: b2d2 uxtb r2, r2
  43669. 8012acc: 701a strb r2, [r3, #0]
  43670. huart->pRxBuffPtr++;
  43671. 8012ace: 687b ldr r3, [r7, #4]
  43672. 8012ad0: 6d9b ldr r3, [r3, #88] @ 0x58
  43673. 8012ad2: 1c5a adds r2, r3, #1
  43674. 8012ad4: 687b ldr r3, [r7, #4]
  43675. 8012ad6: 659a str r2, [r3, #88] @ 0x58
  43676. huart->RxXferCount--;
  43677. 8012ad8: 687b ldr r3, [r7, #4]
  43678. 8012ada: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43679. 8012ade: b29b uxth r3, r3
  43680. 8012ae0: 3b01 subs r3, #1
  43681. 8012ae2: b29a uxth r2, r3
  43682. 8012ae4: 687b ldr r3, [r7, #4]
  43683. 8012ae6: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43684. if (huart->RxXferCount == 0U)
  43685. 8012aea: 687b ldr r3, [r7, #4]
  43686. 8012aec: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43687. 8012af0: b29b uxth r3, r3
  43688. 8012af2: 2b00 cmp r3, #0
  43689. 8012af4: f040 80a1 bne.w 8012c3a <UART_RxISR_8BIT+0x1aa>
  43690. {
  43691. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  43692. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43693. 8012af8: 687b ldr r3, [r7, #4]
  43694. 8012afa: 681b ldr r3, [r3, #0]
  43695. 8012afc: 64fb str r3, [r7, #76] @ 0x4c
  43696. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43697. 8012afe: 6cfb ldr r3, [r7, #76] @ 0x4c
  43698. 8012b00: e853 3f00 ldrex r3, [r3]
  43699. 8012b04: 64bb str r3, [r7, #72] @ 0x48
  43700. return(result);
  43701. 8012b06: 6cbb ldr r3, [r7, #72] @ 0x48
  43702. 8012b08: f423 7390 bic.w r3, r3, #288 @ 0x120
  43703. 8012b0c: 66bb str r3, [r7, #104] @ 0x68
  43704. 8012b0e: 687b ldr r3, [r7, #4]
  43705. 8012b10: 681b ldr r3, [r3, #0]
  43706. 8012b12: 461a mov r2, r3
  43707. 8012b14: 6ebb ldr r3, [r7, #104] @ 0x68
  43708. 8012b16: 65bb str r3, [r7, #88] @ 0x58
  43709. 8012b18: 657a str r2, [r7, #84] @ 0x54
  43710. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43711. 8012b1a: 6d79 ldr r1, [r7, #84] @ 0x54
  43712. 8012b1c: 6dba ldr r2, [r7, #88] @ 0x58
  43713. 8012b1e: e841 2300 strex r3, r2, [r1]
  43714. 8012b22: 653b str r3, [r7, #80] @ 0x50
  43715. return(result);
  43716. 8012b24: 6d3b ldr r3, [r7, #80] @ 0x50
  43717. 8012b26: 2b00 cmp r3, #0
  43718. 8012b28: d1e6 bne.n 8012af8 <UART_RxISR_8BIT+0x68>
  43719. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43720. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43721. 8012b2a: 687b ldr r3, [r7, #4]
  43722. 8012b2c: 681b ldr r3, [r3, #0]
  43723. 8012b2e: 3308 adds r3, #8
  43724. 8012b30: 63bb str r3, [r7, #56] @ 0x38
  43725. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43726. 8012b32: 6bbb ldr r3, [r7, #56] @ 0x38
  43727. 8012b34: e853 3f00 ldrex r3, [r3]
  43728. 8012b38: 637b str r3, [r7, #52] @ 0x34
  43729. return(result);
  43730. 8012b3a: 6b7b ldr r3, [r7, #52] @ 0x34
  43731. 8012b3c: f023 0301 bic.w r3, r3, #1
  43732. 8012b40: 667b str r3, [r7, #100] @ 0x64
  43733. 8012b42: 687b ldr r3, [r7, #4]
  43734. 8012b44: 681b ldr r3, [r3, #0]
  43735. 8012b46: 3308 adds r3, #8
  43736. 8012b48: 6e7a ldr r2, [r7, #100] @ 0x64
  43737. 8012b4a: 647a str r2, [r7, #68] @ 0x44
  43738. 8012b4c: 643b str r3, [r7, #64] @ 0x40
  43739. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43740. 8012b4e: 6c39 ldr r1, [r7, #64] @ 0x40
  43741. 8012b50: 6c7a ldr r2, [r7, #68] @ 0x44
  43742. 8012b52: e841 2300 strex r3, r2, [r1]
  43743. 8012b56: 63fb str r3, [r7, #60] @ 0x3c
  43744. return(result);
  43745. 8012b58: 6bfb ldr r3, [r7, #60] @ 0x3c
  43746. 8012b5a: 2b00 cmp r3, #0
  43747. 8012b5c: d1e5 bne.n 8012b2a <UART_RxISR_8BIT+0x9a>
  43748. /* Rx process is completed, restore huart->RxState to Ready */
  43749. huart->RxState = HAL_UART_STATE_READY;
  43750. 8012b5e: 687b ldr r3, [r7, #4]
  43751. 8012b60: 2220 movs r2, #32
  43752. 8012b62: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43753. /* Clear RxISR function pointer */
  43754. huart->RxISR = NULL;
  43755. 8012b66: 687b ldr r3, [r7, #4]
  43756. 8012b68: 2200 movs r2, #0
  43757. 8012b6a: 675a str r2, [r3, #116] @ 0x74
  43758. /* Initialize type of RxEvent to Transfer Complete */
  43759. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43760. 8012b6c: 687b ldr r3, [r7, #4]
  43761. 8012b6e: 2200 movs r2, #0
  43762. 8012b70: 671a str r2, [r3, #112] @ 0x70
  43763. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  43764. 8012b72: 687b ldr r3, [r7, #4]
  43765. 8012b74: 681b ldr r3, [r3, #0]
  43766. 8012b76: 4a33 ldr r2, [pc, #204] @ (8012c44 <UART_RxISR_8BIT+0x1b4>)
  43767. 8012b78: 4293 cmp r3, r2
  43768. 8012b7a: d01f beq.n 8012bbc <UART_RxISR_8BIT+0x12c>
  43769. {
  43770. /* Check that USART RTOEN bit is set */
  43771. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  43772. 8012b7c: 687b ldr r3, [r7, #4]
  43773. 8012b7e: 681b ldr r3, [r3, #0]
  43774. 8012b80: 685b ldr r3, [r3, #4]
  43775. 8012b82: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  43776. 8012b86: 2b00 cmp r3, #0
  43777. 8012b88: d018 beq.n 8012bbc <UART_RxISR_8BIT+0x12c>
  43778. {
  43779. /* Enable the UART Receiver Timeout Interrupt */
  43780. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  43781. 8012b8a: 687b ldr r3, [r7, #4]
  43782. 8012b8c: 681b ldr r3, [r3, #0]
  43783. 8012b8e: 627b str r3, [r7, #36] @ 0x24
  43784. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43785. 8012b90: 6a7b ldr r3, [r7, #36] @ 0x24
  43786. 8012b92: e853 3f00 ldrex r3, [r3]
  43787. 8012b96: 623b str r3, [r7, #32]
  43788. return(result);
  43789. 8012b98: 6a3b ldr r3, [r7, #32]
  43790. 8012b9a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  43791. 8012b9e: 663b str r3, [r7, #96] @ 0x60
  43792. 8012ba0: 687b ldr r3, [r7, #4]
  43793. 8012ba2: 681b ldr r3, [r3, #0]
  43794. 8012ba4: 461a mov r2, r3
  43795. 8012ba6: 6e3b ldr r3, [r7, #96] @ 0x60
  43796. 8012ba8: 633b str r3, [r7, #48] @ 0x30
  43797. 8012baa: 62fa str r2, [r7, #44] @ 0x2c
  43798. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43799. 8012bac: 6af9 ldr r1, [r7, #44] @ 0x2c
  43800. 8012bae: 6b3a ldr r2, [r7, #48] @ 0x30
  43801. 8012bb0: e841 2300 strex r3, r2, [r1]
  43802. 8012bb4: 62bb str r3, [r7, #40] @ 0x28
  43803. return(result);
  43804. 8012bb6: 6abb ldr r3, [r7, #40] @ 0x28
  43805. 8012bb8: 2b00 cmp r3, #0
  43806. 8012bba: d1e6 bne.n 8012b8a <UART_RxISR_8BIT+0xfa>
  43807. }
  43808. }
  43809. /* Check current reception Mode :
  43810. If Reception till IDLE event has been selected : */
  43811. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43812. 8012bbc: 687b ldr r3, [r7, #4]
  43813. 8012bbe: 6edb ldr r3, [r3, #108] @ 0x6c
  43814. 8012bc0: 2b01 cmp r3, #1
  43815. 8012bc2: d12e bne.n 8012c22 <UART_RxISR_8BIT+0x192>
  43816. {
  43817. /* Set reception type to Standard */
  43818. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43819. 8012bc4: 687b ldr r3, [r7, #4]
  43820. 8012bc6: 2200 movs r2, #0
  43821. 8012bc8: 66da str r2, [r3, #108] @ 0x6c
  43822. /* Disable IDLE interrupt */
  43823. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43824. 8012bca: 687b ldr r3, [r7, #4]
  43825. 8012bcc: 681b ldr r3, [r3, #0]
  43826. 8012bce: 613b str r3, [r7, #16]
  43827. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43828. 8012bd0: 693b ldr r3, [r7, #16]
  43829. 8012bd2: e853 3f00 ldrex r3, [r3]
  43830. 8012bd6: 60fb str r3, [r7, #12]
  43831. return(result);
  43832. 8012bd8: 68fb ldr r3, [r7, #12]
  43833. 8012bda: f023 0310 bic.w r3, r3, #16
  43834. 8012bde: 65fb str r3, [r7, #92] @ 0x5c
  43835. 8012be0: 687b ldr r3, [r7, #4]
  43836. 8012be2: 681b ldr r3, [r3, #0]
  43837. 8012be4: 461a mov r2, r3
  43838. 8012be6: 6dfb ldr r3, [r7, #92] @ 0x5c
  43839. 8012be8: 61fb str r3, [r7, #28]
  43840. 8012bea: 61ba str r2, [r7, #24]
  43841. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43842. 8012bec: 69b9 ldr r1, [r7, #24]
  43843. 8012bee: 69fa ldr r2, [r7, #28]
  43844. 8012bf0: e841 2300 strex r3, r2, [r1]
  43845. 8012bf4: 617b str r3, [r7, #20]
  43846. return(result);
  43847. 8012bf6: 697b ldr r3, [r7, #20]
  43848. 8012bf8: 2b00 cmp r3, #0
  43849. 8012bfa: d1e6 bne.n 8012bca <UART_RxISR_8BIT+0x13a>
  43850. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  43851. 8012bfc: 687b ldr r3, [r7, #4]
  43852. 8012bfe: 681b ldr r3, [r3, #0]
  43853. 8012c00: 69db ldr r3, [r3, #28]
  43854. 8012c02: f003 0310 and.w r3, r3, #16
  43855. 8012c06: 2b10 cmp r3, #16
  43856. 8012c08: d103 bne.n 8012c12 <UART_RxISR_8BIT+0x182>
  43857. {
  43858. /* Clear IDLE Flag */
  43859. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  43860. 8012c0a: 687b ldr r3, [r7, #4]
  43861. 8012c0c: 681b ldr r3, [r3, #0]
  43862. 8012c0e: 2210 movs r2, #16
  43863. 8012c10: 621a str r2, [r3, #32]
  43864. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43865. /*Call registered Rx Event callback*/
  43866. huart->RxEventCallback(huart, huart->RxXferSize);
  43867. #else
  43868. /*Call legacy weak Rx Event callback*/
  43869. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  43870. 8012c12: 687b ldr r3, [r7, #4]
  43871. 8012c14: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  43872. 8012c18: 4619 mov r1, r3
  43873. 8012c1a: 6878 ldr r0, [r7, #4]
  43874. 8012c1c: f7f1 fc0a bl 8004434 <HAL_UARTEx_RxEventCallback>
  43875. else
  43876. {
  43877. /* Clear RXNE interrupt flag */
  43878. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43879. }
  43880. }
  43881. 8012c20: e00b b.n 8012c3a <UART_RxISR_8BIT+0x1aa>
  43882. HAL_UART_RxCpltCallback(huart);
  43883. 8012c22: 6878 ldr r0, [r7, #4]
  43884. 8012c24: f7f1 fbfc bl 8004420 <HAL_UART_RxCpltCallback>
  43885. }
  43886. 8012c28: e007 b.n 8012c3a <UART_RxISR_8BIT+0x1aa>
  43887. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43888. 8012c2a: 687b ldr r3, [r7, #4]
  43889. 8012c2c: 681b ldr r3, [r3, #0]
  43890. 8012c2e: 699a ldr r2, [r3, #24]
  43891. 8012c30: 687b ldr r3, [r7, #4]
  43892. 8012c32: 681b ldr r3, [r3, #0]
  43893. 8012c34: f042 0208 orr.w r2, r2, #8
  43894. 8012c38: 619a str r2, [r3, #24]
  43895. }
  43896. 8012c3a: bf00 nop
  43897. 8012c3c: 3770 adds r7, #112 @ 0x70
  43898. 8012c3e: 46bd mov sp, r7
  43899. 8012c40: bd80 pop {r7, pc}
  43900. 8012c42: bf00 nop
  43901. 8012c44: 58000c00 .word 0x58000c00
  43902. 08012c48 <UART_RxISR_16BIT>:
  43903. * interruptions have been enabled by HAL_UART_Receive_IT()
  43904. * @param huart UART handle.
  43905. * @retval None
  43906. */
  43907. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  43908. {
  43909. 8012c48: b580 push {r7, lr}
  43910. 8012c4a: b09c sub sp, #112 @ 0x70
  43911. 8012c4c: af00 add r7, sp, #0
  43912. 8012c4e: 6078 str r0, [r7, #4]
  43913. uint16_t *tmp;
  43914. uint16_t uhMask = huart->Mask;
  43915. 8012c50: 687b ldr r3, [r7, #4]
  43916. 8012c52: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43917. 8012c56: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  43918. uint16_t uhdata;
  43919. /* Check that a Rx process is ongoing */
  43920. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43921. 8012c5a: 687b ldr r3, [r7, #4]
  43922. 8012c5c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43923. 8012c60: 2b22 cmp r3, #34 @ 0x22
  43924. 8012c62: f040 80be bne.w 8012de2 <UART_RxISR_16BIT+0x19a>
  43925. {
  43926. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43927. 8012c66: 687b ldr r3, [r7, #4]
  43928. 8012c68: 681b ldr r3, [r3, #0]
  43929. 8012c6a: 6a5b ldr r3, [r3, #36] @ 0x24
  43930. 8012c6c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  43931. tmp = (uint16_t *) huart->pRxBuffPtr ;
  43932. 8012c70: 687b ldr r3, [r7, #4]
  43933. 8012c72: 6d9b ldr r3, [r3, #88] @ 0x58
  43934. 8012c74: 66bb str r3, [r7, #104] @ 0x68
  43935. *tmp = (uint16_t)(uhdata & uhMask);
  43936. 8012c76: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  43937. 8012c7a: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  43938. 8012c7e: 4013 ands r3, r2
  43939. 8012c80: b29a uxth r2, r3
  43940. 8012c82: 6ebb ldr r3, [r7, #104] @ 0x68
  43941. 8012c84: 801a strh r2, [r3, #0]
  43942. huart->pRxBuffPtr += 2U;
  43943. 8012c86: 687b ldr r3, [r7, #4]
  43944. 8012c88: 6d9b ldr r3, [r3, #88] @ 0x58
  43945. 8012c8a: 1c9a adds r2, r3, #2
  43946. 8012c8c: 687b ldr r3, [r7, #4]
  43947. 8012c8e: 659a str r2, [r3, #88] @ 0x58
  43948. huart->RxXferCount--;
  43949. 8012c90: 687b ldr r3, [r7, #4]
  43950. 8012c92: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43951. 8012c96: b29b uxth r3, r3
  43952. 8012c98: 3b01 subs r3, #1
  43953. 8012c9a: b29a uxth r2, r3
  43954. 8012c9c: 687b ldr r3, [r7, #4]
  43955. 8012c9e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43956. if (huart->RxXferCount == 0U)
  43957. 8012ca2: 687b ldr r3, [r7, #4]
  43958. 8012ca4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43959. 8012ca8: b29b uxth r3, r3
  43960. 8012caa: 2b00 cmp r3, #0
  43961. 8012cac: f040 80a1 bne.w 8012df2 <UART_RxISR_16BIT+0x1aa>
  43962. {
  43963. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  43964. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43965. 8012cb0: 687b ldr r3, [r7, #4]
  43966. 8012cb2: 681b ldr r3, [r3, #0]
  43967. 8012cb4: 64bb str r3, [r7, #72] @ 0x48
  43968. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43969. 8012cb6: 6cbb ldr r3, [r7, #72] @ 0x48
  43970. 8012cb8: e853 3f00 ldrex r3, [r3]
  43971. 8012cbc: 647b str r3, [r7, #68] @ 0x44
  43972. return(result);
  43973. 8012cbe: 6c7b ldr r3, [r7, #68] @ 0x44
  43974. 8012cc0: f423 7390 bic.w r3, r3, #288 @ 0x120
  43975. 8012cc4: 667b str r3, [r7, #100] @ 0x64
  43976. 8012cc6: 687b ldr r3, [r7, #4]
  43977. 8012cc8: 681b ldr r3, [r3, #0]
  43978. 8012cca: 461a mov r2, r3
  43979. 8012ccc: 6e7b ldr r3, [r7, #100] @ 0x64
  43980. 8012cce: 657b str r3, [r7, #84] @ 0x54
  43981. 8012cd0: 653a str r2, [r7, #80] @ 0x50
  43982. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43983. 8012cd2: 6d39 ldr r1, [r7, #80] @ 0x50
  43984. 8012cd4: 6d7a ldr r2, [r7, #84] @ 0x54
  43985. 8012cd6: e841 2300 strex r3, r2, [r1]
  43986. 8012cda: 64fb str r3, [r7, #76] @ 0x4c
  43987. return(result);
  43988. 8012cdc: 6cfb ldr r3, [r7, #76] @ 0x4c
  43989. 8012cde: 2b00 cmp r3, #0
  43990. 8012ce0: d1e6 bne.n 8012cb0 <UART_RxISR_16BIT+0x68>
  43991. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43992. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43993. 8012ce2: 687b ldr r3, [r7, #4]
  43994. 8012ce4: 681b ldr r3, [r3, #0]
  43995. 8012ce6: 3308 adds r3, #8
  43996. 8012ce8: 637b str r3, [r7, #52] @ 0x34
  43997. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43998. 8012cea: 6b7b ldr r3, [r7, #52] @ 0x34
  43999. 8012cec: e853 3f00 ldrex r3, [r3]
  44000. 8012cf0: 633b str r3, [r7, #48] @ 0x30
  44001. return(result);
  44002. 8012cf2: 6b3b ldr r3, [r7, #48] @ 0x30
  44003. 8012cf4: f023 0301 bic.w r3, r3, #1
  44004. 8012cf8: 663b str r3, [r7, #96] @ 0x60
  44005. 8012cfa: 687b ldr r3, [r7, #4]
  44006. 8012cfc: 681b ldr r3, [r3, #0]
  44007. 8012cfe: 3308 adds r3, #8
  44008. 8012d00: 6e3a ldr r2, [r7, #96] @ 0x60
  44009. 8012d02: 643a str r2, [r7, #64] @ 0x40
  44010. 8012d04: 63fb str r3, [r7, #60] @ 0x3c
  44011. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44012. 8012d06: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44013. 8012d08: 6c3a ldr r2, [r7, #64] @ 0x40
  44014. 8012d0a: e841 2300 strex r3, r2, [r1]
  44015. 8012d0e: 63bb str r3, [r7, #56] @ 0x38
  44016. return(result);
  44017. 8012d10: 6bbb ldr r3, [r7, #56] @ 0x38
  44018. 8012d12: 2b00 cmp r3, #0
  44019. 8012d14: d1e5 bne.n 8012ce2 <UART_RxISR_16BIT+0x9a>
  44020. /* Rx process is completed, restore huart->RxState to Ready */
  44021. huart->RxState = HAL_UART_STATE_READY;
  44022. 8012d16: 687b ldr r3, [r7, #4]
  44023. 8012d18: 2220 movs r2, #32
  44024. 8012d1a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44025. /* Clear RxISR function pointer */
  44026. huart->RxISR = NULL;
  44027. 8012d1e: 687b ldr r3, [r7, #4]
  44028. 8012d20: 2200 movs r2, #0
  44029. 8012d22: 675a str r2, [r3, #116] @ 0x74
  44030. /* Initialize type of RxEvent to Transfer Complete */
  44031. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44032. 8012d24: 687b ldr r3, [r7, #4]
  44033. 8012d26: 2200 movs r2, #0
  44034. 8012d28: 671a str r2, [r3, #112] @ 0x70
  44035. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44036. 8012d2a: 687b ldr r3, [r7, #4]
  44037. 8012d2c: 681b ldr r3, [r3, #0]
  44038. 8012d2e: 4a33 ldr r2, [pc, #204] @ (8012dfc <UART_RxISR_16BIT+0x1b4>)
  44039. 8012d30: 4293 cmp r3, r2
  44040. 8012d32: d01f beq.n 8012d74 <UART_RxISR_16BIT+0x12c>
  44041. {
  44042. /* Check that USART RTOEN bit is set */
  44043. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44044. 8012d34: 687b ldr r3, [r7, #4]
  44045. 8012d36: 681b ldr r3, [r3, #0]
  44046. 8012d38: 685b ldr r3, [r3, #4]
  44047. 8012d3a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44048. 8012d3e: 2b00 cmp r3, #0
  44049. 8012d40: d018 beq.n 8012d74 <UART_RxISR_16BIT+0x12c>
  44050. {
  44051. /* Enable the UART Receiver Timeout Interrupt */
  44052. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44053. 8012d42: 687b ldr r3, [r7, #4]
  44054. 8012d44: 681b ldr r3, [r3, #0]
  44055. 8012d46: 623b str r3, [r7, #32]
  44056. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44057. 8012d48: 6a3b ldr r3, [r7, #32]
  44058. 8012d4a: e853 3f00 ldrex r3, [r3]
  44059. 8012d4e: 61fb str r3, [r7, #28]
  44060. return(result);
  44061. 8012d50: 69fb ldr r3, [r7, #28]
  44062. 8012d52: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44063. 8012d56: 65fb str r3, [r7, #92] @ 0x5c
  44064. 8012d58: 687b ldr r3, [r7, #4]
  44065. 8012d5a: 681b ldr r3, [r3, #0]
  44066. 8012d5c: 461a mov r2, r3
  44067. 8012d5e: 6dfb ldr r3, [r7, #92] @ 0x5c
  44068. 8012d60: 62fb str r3, [r7, #44] @ 0x2c
  44069. 8012d62: 62ba str r2, [r7, #40] @ 0x28
  44070. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44071. 8012d64: 6ab9 ldr r1, [r7, #40] @ 0x28
  44072. 8012d66: 6afa ldr r2, [r7, #44] @ 0x2c
  44073. 8012d68: e841 2300 strex r3, r2, [r1]
  44074. 8012d6c: 627b str r3, [r7, #36] @ 0x24
  44075. return(result);
  44076. 8012d6e: 6a7b ldr r3, [r7, #36] @ 0x24
  44077. 8012d70: 2b00 cmp r3, #0
  44078. 8012d72: d1e6 bne.n 8012d42 <UART_RxISR_16BIT+0xfa>
  44079. }
  44080. }
  44081. /* Check current reception Mode :
  44082. If Reception till IDLE event has been selected : */
  44083. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44084. 8012d74: 687b ldr r3, [r7, #4]
  44085. 8012d76: 6edb ldr r3, [r3, #108] @ 0x6c
  44086. 8012d78: 2b01 cmp r3, #1
  44087. 8012d7a: d12e bne.n 8012dda <UART_RxISR_16BIT+0x192>
  44088. {
  44089. /* Set reception type to Standard */
  44090. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44091. 8012d7c: 687b ldr r3, [r7, #4]
  44092. 8012d7e: 2200 movs r2, #0
  44093. 8012d80: 66da str r2, [r3, #108] @ 0x6c
  44094. /* Disable IDLE interrupt */
  44095. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44096. 8012d82: 687b ldr r3, [r7, #4]
  44097. 8012d84: 681b ldr r3, [r3, #0]
  44098. 8012d86: 60fb str r3, [r7, #12]
  44099. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44100. 8012d88: 68fb ldr r3, [r7, #12]
  44101. 8012d8a: e853 3f00 ldrex r3, [r3]
  44102. 8012d8e: 60bb str r3, [r7, #8]
  44103. return(result);
  44104. 8012d90: 68bb ldr r3, [r7, #8]
  44105. 8012d92: f023 0310 bic.w r3, r3, #16
  44106. 8012d96: 65bb str r3, [r7, #88] @ 0x58
  44107. 8012d98: 687b ldr r3, [r7, #4]
  44108. 8012d9a: 681b ldr r3, [r3, #0]
  44109. 8012d9c: 461a mov r2, r3
  44110. 8012d9e: 6dbb ldr r3, [r7, #88] @ 0x58
  44111. 8012da0: 61bb str r3, [r7, #24]
  44112. 8012da2: 617a str r2, [r7, #20]
  44113. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44114. 8012da4: 6979 ldr r1, [r7, #20]
  44115. 8012da6: 69ba ldr r2, [r7, #24]
  44116. 8012da8: e841 2300 strex r3, r2, [r1]
  44117. 8012dac: 613b str r3, [r7, #16]
  44118. return(result);
  44119. 8012dae: 693b ldr r3, [r7, #16]
  44120. 8012db0: 2b00 cmp r3, #0
  44121. 8012db2: d1e6 bne.n 8012d82 <UART_RxISR_16BIT+0x13a>
  44122. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44123. 8012db4: 687b ldr r3, [r7, #4]
  44124. 8012db6: 681b ldr r3, [r3, #0]
  44125. 8012db8: 69db ldr r3, [r3, #28]
  44126. 8012dba: f003 0310 and.w r3, r3, #16
  44127. 8012dbe: 2b10 cmp r3, #16
  44128. 8012dc0: d103 bne.n 8012dca <UART_RxISR_16BIT+0x182>
  44129. {
  44130. /* Clear IDLE Flag */
  44131. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44132. 8012dc2: 687b ldr r3, [r7, #4]
  44133. 8012dc4: 681b ldr r3, [r3, #0]
  44134. 8012dc6: 2210 movs r2, #16
  44135. 8012dc8: 621a str r2, [r3, #32]
  44136. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44137. /*Call registered Rx Event callback*/
  44138. huart->RxEventCallback(huart, huart->RxXferSize);
  44139. #else
  44140. /*Call legacy weak Rx Event callback*/
  44141. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44142. 8012dca: 687b ldr r3, [r7, #4]
  44143. 8012dcc: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44144. 8012dd0: 4619 mov r1, r3
  44145. 8012dd2: 6878 ldr r0, [r7, #4]
  44146. 8012dd4: f7f1 fb2e bl 8004434 <HAL_UARTEx_RxEventCallback>
  44147. else
  44148. {
  44149. /* Clear RXNE interrupt flag */
  44150. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44151. }
  44152. }
  44153. 8012dd8: e00b b.n 8012df2 <UART_RxISR_16BIT+0x1aa>
  44154. HAL_UART_RxCpltCallback(huart);
  44155. 8012dda: 6878 ldr r0, [r7, #4]
  44156. 8012ddc: f7f1 fb20 bl 8004420 <HAL_UART_RxCpltCallback>
  44157. }
  44158. 8012de0: e007 b.n 8012df2 <UART_RxISR_16BIT+0x1aa>
  44159. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44160. 8012de2: 687b ldr r3, [r7, #4]
  44161. 8012de4: 681b ldr r3, [r3, #0]
  44162. 8012de6: 699a ldr r2, [r3, #24]
  44163. 8012de8: 687b ldr r3, [r7, #4]
  44164. 8012dea: 681b ldr r3, [r3, #0]
  44165. 8012dec: f042 0208 orr.w r2, r2, #8
  44166. 8012df0: 619a str r2, [r3, #24]
  44167. }
  44168. 8012df2: bf00 nop
  44169. 8012df4: 3770 adds r7, #112 @ 0x70
  44170. 8012df6: 46bd mov sp, r7
  44171. 8012df8: bd80 pop {r7, pc}
  44172. 8012dfa: bf00 nop
  44173. 8012dfc: 58000c00 .word 0x58000c00
  44174. 08012e00 <UART_RxISR_8BIT_FIFOEN>:
  44175. * interruptions have been enabled by HAL_UART_Receive_IT()
  44176. * @param huart UART handle.
  44177. * @retval None
  44178. */
  44179. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  44180. {
  44181. 8012e00: b580 push {r7, lr}
  44182. 8012e02: b0ac sub sp, #176 @ 0xb0
  44183. 8012e04: af00 add r7, sp, #0
  44184. 8012e06: 6078 str r0, [r7, #4]
  44185. uint16_t uhMask = huart->Mask;
  44186. 8012e08: 687b ldr r3, [r7, #4]
  44187. 8012e0a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44188. 8012e0e: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  44189. uint16_t uhdata;
  44190. uint16_t nb_rx_data;
  44191. uint16_t rxdatacount;
  44192. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  44193. 8012e12: 687b ldr r3, [r7, #4]
  44194. 8012e14: 681b ldr r3, [r3, #0]
  44195. 8012e16: 69db ldr r3, [r3, #28]
  44196. 8012e18: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44197. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  44198. 8012e1c: 687b ldr r3, [r7, #4]
  44199. 8012e1e: 681b ldr r3, [r3, #0]
  44200. 8012e20: 681b ldr r3, [r3, #0]
  44201. 8012e22: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  44202. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  44203. 8012e26: 687b ldr r3, [r7, #4]
  44204. 8012e28: 681b ldr r3, [r3, #0]
  44205. 8012e2a: 689b ldr r3, [r3, #8]
  44206. 8012e2c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  44207. /* Check that a Rx process is ongoing */
  44208. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44209. 8012e30: 687b ldr r3, [r7, #4]
  44210. 8012e32: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44211. 8012e36: 2b22 cmp r3, #34 @ 0x22
  44212. 8012e38: f040 8180 bne.w 801313c <UART_RxISR_8BIT_FIFOEN+0x33c>
  44213. {
  44214. nb_rx_data = huart->NbRxDataToProcess;
  44215. 8012e3c: 687b ldr r3, [r7, #4]
  44216. 8012e3e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44217. 8012e42: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  44218. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44219. 8012e46: e123 b.n 8013090 <UART_RxISR_8BIT_FIFOEN+0x290>
  44220. {
  44221. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44222. 8012e48: 687b ldr r3, [r7, #4]
  44223. 8012e4a: 681b ldr r3, [r3, #0]
  44224. 8012e4c: 6a5b ldr r3, [r3, #36] @ 0x24
  44225. 8012e4e: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  44226. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  44227. 8012e52: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  44228. 8012e56: b2d9 uxtb r1, r3
  44229. 8012e58: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  44230. 8012e5c: b2da uxtb r2, r3
  44231. 8012e5e: 687b ldr r3, [r7, #4]
  44232. 8012e60: 6d9b ldr r3, [r3, #88] @ 0x58
  44233. 8012e62: 400a ands r2, r1
  44234. 8012e64: b2d2 uxtb r2, r2
  44235. 8012e66: 701a strb r2, [r3, #0]
  44236. huart->pRxBuffPtr++;
  44237. 8012e68: 687b ldr r3, [r7, #4]
  44238. 8012e6a: 6d9b ldr r3, [r3, #88] @ 0x58
  44239. 8012e6c: 1c5a adds r2, r3, #1
  44240. 8012e6e: 687b ldr r3, [r7, #4]
  44241. 8012e70: 659a str r2, [r3, #88] @ 0x58
  44242. huart->RxXferCount--;
  44243. 8012e72: 687b ldr r3, [r7, #4]
  44244. 8012e74: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44245. 8012e78: b29b uxth r3, r3
  44246. 8012e7a: 3b01 subs r3, #1
  44247. 8012e7c: b29a uxth r2, r3
  44248. 8012e7e: 687b ldr r3, [r7, #4]
  44249. 8012e80: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44250. isrflags = READ_REG(huart->Instance->ISR);
  44251. 8012e84: 687b ldr r3, [r7, #4]
  44252. 8012e86: 681b ldr r3, [r3, #0]
  44253. 8012e88: 69db ldr r3, [r3, #28]
  44254. 8012e8a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44255. /* If some non blocking errors occurred */
  44256. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  44257. 8012e8e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44258. 8012e92: f003 0307 and.w r3, r3, #7
  44259. 8012e96: 2b00 cmp r3, #0
  44260. 8012e98: d053 beq.n 8012f42 <UART_RxISR_8BIT_FIFOEN+0x142>
  44261. {
  44262. /* UART parity error interrupt occurred -------------------------------------*/
  44263. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  44264. 8012e9a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44265. 8012e9e: f003 0301 and.w r3, r3, #1
  44266. 8012ea2: 2b00 cmp r3, #0
  44267. 8012ea4: d011 beq.n 8012eca <UART_RxISR_8BIT_FIFOEN+0xca>
  44268. 8012ea6: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  44269. 8012eaa: f403 7380 and.w r3, r3, #256 @ 0x100
  44270. 8012eae: 2b00 cmp r3, #0
  44271. 8012eb0: d00b beq.n 8012eca <UART_RxISR_8BIT_FIFOEN+0xca>
  44272. {
  44273. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  44274. 8012eb2: 687b ldr r3, [r7, #4]
  44275. 8012eb4: 681b ldr r3, [r3, #0]
  44276. 8012eb6: 2201 movs r2, #1
  44277. 8012eb8: 621a str r2, [r3, #32]
  44278. huart->ErrorCode |= HAL_UART_ERROR_PE;
  44279. 8012eba: 687b ldr r3, [r7, #4]
  44280. 8012ebc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44281. 8012ec0: f043 0201 orr.w r2, r3, #1
  44282. 8012ec4: 687b ldr r3, [r7, #4]
  44283. 8012ec6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44284. }
  44285. /* UART frame error interrupt occurred --------------------------------------*/
  44286. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44287. 8012eca: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44288. 8012ece: f003 0302 and.w r3, r3, #2
  44289. 8012ed2: 2b00 cmp r3, #0
  44290. 8012ed4: d011 beq.n 8012efa <UART_RxISR_8BIT_FIFOEN+0xfa>
  44291. 8012ed6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44292. 8012eda: f003 0301 and.w r3, r3, #1
  44293. 8012ede: 2b00 cmp r3, #0
  44294. 8012ee0: d00b beq.n 8012efa <UART_RxISR_8BIT_FIFOEN+0xfa>
  44295. {
  44296. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  44297. 8012ee2: 687b ldr r3, [r7, #4]
  44298. 8012ee4: 681b ldr r3, [r3, #0]
  44299. 8012ee6: 2202 movs r2, #2
  44300. 8012ee8: 621a str r2, [r3, #32]
  44301. huart->ErrorCode |= HAL_UART_ERROR_FE;
  44302. 8012eea: 687b ldr r3, [r7, #4]
  44303. 8012eec: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44304. 8012ef0: f043 0204 orr.w r2, r3, #4
  44305. 8012ef4: 687b ldr r3, [r7, #4]
  44306. 8012ef6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44307. }
  44308. /* UART noise error interrupt occurred --------------------------------------*/
  44309. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44310. 8012efa: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44311. 8012efe: f003 0304 and.w r3, r3, #4
  44312. 8012f02: 2b00 cmp r3, #0
  44313. 8012f04: d011 beq.n 8012f2a <UART_RxISR_8BIT_FIFOEN+0x12a>
  44314. 8012f06: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44315. 8012f0a: f003 0301 and.w r3, r3, #1
  44316. 8012f0e: 2b00 cmp r3, #0
  44317. 8012f10: d00b beq.n 8012f2a <UART_RxISR_8BIT_FIFOEN+0x12a>
  44318. {
  44319. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  44320. 8012f12: 687b ldr r3, [r7, #4]
  44321. 8012f14: 681b ldr r3, [r3, #0]
  44322. 8012f16: 2204 movs r2, #4
  44323. 8012f18: 621a str r2, [r3, #32]
  44324. huart->ErrorCode |= HAL_UART_ERROR_NE;
  44325. 8012f1a: 687b ldr r3, [r7, #4]
  44326. 8012f1c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44327. 8012f20: f043 0202 orr.w r2, r3, #2
  44328. 8012f24: 687b ldr r3, [r7, #4]
  44329. 8012f26: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44330. }
  44331. /* Call UART Error Call back function if need be ----------------------------*/
  44332. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  44333. 8012f2a: 687b ldr r3, [r7, #4]
  44334. 8012f2c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44335. 8012f30: 2b00 cmp r3, #0
  44336. 8012f32: d006 beq.n 8012f42 <UART_RxISR_8BIT_FIFOEN+0x142>
  44337. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44338. /*Call registered error callback*/
  44339. huart->ErrorCallback(huart);
  44340. #else
  44341. /*Call legacy weak error callback*/
  44342. HAL_UART_ErrorCallback(huart);
  44343. 8012f34: 6878 ldr r0, [r7, #4]
  44344. 8012f36: f7fe fb13 bl 8011560 <HAL_UART_ErrorCallback>
  44345. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44346. huart->ErrorCode = HAL_UART_ERROR_NONE;
  44347. 8012f3a: 687b ldr r3, [r7, #4]
  44348. 8012f3c: 2200 movs r2, #0
  44349. 8012f3e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44350. }
  44351. }
  44352. if (huart->RxXferCount == 0U)
  44353. 8012f42: 687b ldr r3, [r7, #4]
  44354. 8012f44: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44355. 8012f48: b29b uxth r3, r3
  44356. 8012f4a: 2b00 cmp r3, #0
  44357. 8012f4c: f040 80a0 bne.w 8013090 <UART_RxISR_8BIT_FIFOEN+0x290>
  44358. {
  44359. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  44360. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  44361. 8012f50: 687b ldr r3, [r7, #4]
  44362. 8012f52: 681b ldr r3, [r3, #0]
  44363. 8012f54: 673b str r3, [r7, #112] @ 0x70
  44364. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44365. 8012f56: 6f3b ldr r3, [r7, #112] @ 0x70
  44366. 8012f58: e853 3f00 ldrex r3, [r3]
  44367. 8012f5c: 66fb str r3, [r7, #108] @ 0x6c
  44368. return(result);
  44369. 8012f5e: 6efb ldr r3, [r7, #108] @ 0x6c
  44370. 8012f60: f423 7380 bic.w r3, r3, #256 @ 0x100
  44371. 8012f64: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  44372. 8012f68: 687b ldr r3, [r7, #4]
  44373. 8012f6a: 681b ldr r3, [r3, #0]
  44374. 8012f6c: 461a mov r2, r3
  44375. 8012f6e: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  44376. 8012f72: 67fb str r3, [r7, #124] @ 0x7c
  44377. 8012f74: 67ba str r2, [r7, #120] @ 0x78
  44378. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44379. 8012f76: 6fb9 ldr r1, [r7, #120] @ 0x78
  44380. 8012f78: 6ffa ldr r2, [r7, #124] @ 0x7c
  44381. 8012f7a: e841 2300 strex r3, r2, [r1]
  44382. 8012f7e: 677b str r3, [r7, #116] @ 0x74
  44383. return(result);
  44384. 8012f80: 6f7b ldr r3, [r7, #116] @ 0x74
  44385. 8012f82: 2b00 cmp r3, #0
  44386. 8012f84: d1e4 bne.n 8012f50 <UART_RxISR_8BIT_FIFOEN+0x150>
  44387. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  44388. and RX FIFO Threshold interrupt */
  44389. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  44390. 8012f86: 687b ldr r3, [r7, #4]
  44391. 8012f88: 681b ldr r3, [r3, #0]
  44392. 8012f8a: 3308 adds r3, #8
  44393. 8012f8c: 65fb str r3, [r7, #92] @ 0x5c
  44394. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44395. 8012f8e: 6dfb ldr r3, [r7, #92] @ 0x5c
  44396. 8012f90: e853 3f00 ldrex r3, [r3]
  44397. 8012f94: 65bb str r3, [r7, #88] @ 0x58
  44398. return(result);
  44399. 8012f96: 6dba ldr r2, [r7, #88] @ 0x58
  44400. 8012f98: 4b6e ldr r3, [pc, #440] @ (8013154 <UART_RxISR_8BIT_FIFOEN+0x354>)
  44401. 8012f9a: 4013 ands r3, r2
  44402. 8012f9c: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  44403. 8012fa0: 687b ldr r3, [r7, #4]
  44404. 8012fa2: 681b ldr r3, [r3, #0]
  44405. 8012fa4: 3308 adds r3, #8
  44406. 8012fa6: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  44407. 8012faa: 66ba str r2, [r7, #104] @ 0x68
  44408. 8012fac: 667b str r3, [r7, #100] @ 0x64
  44409. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44410. 8012fae: 6e79 ldr r1, [r7, #100] @ 0x64
  44411. 8012fb0: 6eba ldr r2, [r7, #104] @ 0x68
  44412. 8012fb2: e841 2300 strex r3, r2, [r1]
  44413. 8012fb6: 663b str r3, [r7, #96] @ 0x60
  44414. return(result);
  44415. 8012fb8: 6e3b ldr r3, [r7, #96] @ 0x60
  44416. 8012fba: 2b00 cmp r3, #0
  44417. 8012fbc: d1e3 bne.n 8012f86 <UART_RxISR_8BIT_FIFOEN+0x186>
  44418. /* Rx process is completed, restore huart->RxState to Ready */
  44419. huart->RxState = HAL_UART_STATE_READY;
  44420. 8012fbe: 687b ldr r3, [r7, #4]
  44421. 8012fc0: 2220 movs r2, #32
  44422. 8012fc2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44423. /* Clear RxISR function pointer */
  44424. huart->RxISR = NULL;
  44425. 8012fc6: 687b ldr r3, [r7, #4]
  44426. 8012fc8: 2200 movs r2, #0
  44427. 8012fca: 675a str r2, [r3, #116] @ 0x74
  44428. /* Initialize type of RxEvent to Transfer Complete */
  44429. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44430. 8012fcc: 687b ldr r3, [r7, #4]
  44431. 8012fce: 2200 movs r2, #0
  44432. 8012fd0: 671a str r2, [r3, #112] @ 0x70
  44433. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44434. 8012fd2: 687b ldr r3, [r7, #4]
  44435. 8012fd4: 681b ldr r3, [r3, #0]
  44436. 8012fd6: 4a60 ldr r2, [pc, #384] @ (8013158 <UART_RxISR_8BIT_FIFOEN+0x358>)
  44437. 8012fd8: 4293 cmp r3, r2
  44438. 8012fda: d021 beq.n 8013020 <UART_RxISR_8BIT_FIFOEN+0x220>
  44439. {
  44440. /* Check that USART RTOEN bit is set */
  44441. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44442. 8012fdc: 687b ldr r3, [r7, #4]
  44443. 8012fde: 681b ldr r3, [r3, #0]
  44444. 8012fe0: 685b ldr r3, [r3, #4]
  44445. 8012fe2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44446. 8012fe6: 2b00 cmp r3, #0
  44447. 8012fe8: d01a beq.n 8013020 <UART_RxISR_8BIT_FIFOEN+0x220>
  44448. {
  44449. /* Enable the UART Receiver Timeout Interrupt */
  44450. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44451. 8012fea: 687b ldr r3, [r7, #4]
  44452. 8012fec: 681b ldr r3, [r3, #0]
  44453. 8012fee: 64bb str r3, [r7, #72] @ 0x48
  44454. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44455. 8012ff0: 6cbb ldr r3, [r7, #72] @ 0x48
  44456. 8012ff2: e853 3f00 ldrex r3, [r3]
  44457. 8012ff6: 647b str r3, [r7, #68] @ 0x44
  44458. return(result);
  44459. 8012ff8: 6c7b ldr r3, [r7, #68] @ 0x44
  44460. 8012ffa: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44461. 8012ffe: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  44462. 8013002: 687b ldr r3, [r7, #4]
  44463. 8013004: 681b ldr r3, [r3, #0]
  44464. 8013006: 461a mov r2, r3
  44465. 8013008: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  44466. 801300c: 657b str r3, [r7, #84] @ 0x54
  44467. 801300e: 653a str r2, [r7, #80] @ 0x50
  44468. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44469. 8013010: 6d39 ldr r1, [r7, #80] @ 0x50
  44470. 8013012: 6d7a ldr r2, [r7, #84] @ 0x54
  44471. 8013014: e841 2300 strex r3, r2, [r1]
  44472. 8013018: 64fb str r3, [r7, #76] @ 0x4c
  44473. return(result);
  44474. 801301a: 6cfb ldr r3, [r7, #76] @ 0x4c
  44475. 801301c: 2b00 cmp r3, #0
  44476. 801301e: d1e4 bne.n 8012fea <UART_RxISR_8BIT_FIFOEN+0x1ea>
  44477. }
  44478. }
  44479. /* Check current reception Mode :
  44480. If Reception till IDLE event has been selected : */
  44481. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44482. 8013020: 687b ldr r3, [r7, #4]
  44483. 8013022: 6edb ldr r3, [r3, #108] @ 0x6c
  44484. 8013024: 2b01 cmp r3, #1
  44485. 8013026: d130 bne.n 801308a <UART_RxISR_8BIT_FIFOEN+0x28a>
  44486. {
  44487. /* Set reception type to Standard */
  44488. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44489. 8013028: 687b ldr r3, [r7, #4]
  44490. 801302a: 2200 movs r2, #0
  44491. 801302c: 66da str r2, [r3, #108] @ 0x6c
  44492. /* Disable IDLE interrupt */
  44493. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44494. 801302e: 687b ldr r3, [r7, #4]
  44495. 8013030: 681b ldr r3, [r3, #0]
  44496. 8013032: 637b str r3, [r7, #52] @ 0x34
  44497. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44498. 8013034: 6b7b ldr r3, [r7, #52] @ 0x34
  44499. 8013036: e853 3f00 ldrex r3, [r3]
  44500. 801303a: 633b str r3, [r7, #48] @ 0x30
  44501. return(result);
  44502. 801303c: 6b3b ldr r3, [r7, #48] @ 0x30
  44503. 801303e: f023 0310 bic.w r3, r3, #16
  44504. 8013042: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  44505. 8013046: 687b ldr r3, [r7, #4]
  44506. 8013048: 681b ldr r3, [r3, #0]
  44507. 801304a: 461a mov r2, r3
  44508. 801304c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  44509. 8013050: 643b str r3, [r7, #64] @ 0x40
  44510. 8013052: 63fa str r2, [r7, #60] @ 0x3c
  44511. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44512. 8013054: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44513. 8013056: 6c3a ldr r2, [r7, #64] @ 0x40
  44514. 8013058: e841 2300 strex r3, r2, [r1]
  44515. 801305c: 63bb str r3, [r7, #56] @ 0x38
  44516. return(result);
  44517. 801305e: 6bbb ldr r3, [r7, #56] @ 0x38
  44518. 8013060: 2b00 cmp r3, #0
  44519. 8013062: d1e4 bne.n 801302e <UART_RxISR_8BIT_FIFOEN+0x22e>
  44520. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44521. 8013064: 687b ldr r3, [r7, #4]
  44522. 8013066: 681b ldr r3, [r3, #0]
  44523. 8013068: 69db ldr r3, [r3, #28]
  44524. 801306a: f003 0310 and.w r3, r3, #16
  44525. 801306e: 2b10 cmp r3, #16
  44526. 8013070: d103 bne.n 801307a <UART_RxISR_8BIT_FIFOEN+0x27a>
  44527. {
  44528. /* Clear IDLE Flag */
  44529. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44530. 8013072: 687b ldr r3, [r7, #4]
  44531. 8013074: 681b ldr r3, [r3, #0]
  44532. 8013076: 2210 movs r2, #16
  44533. 8013078: 621a str r2, [r3, #32]
  44534. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44535. /*Call registered Rx Event callback*/
  44536. huart->RxEventCallback(huart, huart->RxXferSize);
  44537. #else
  44538. /*Call legacy weak Rx Event callback*/
  44539. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44540. 801307a: 687b ldr r3, [r7, #4]
  44541. 801307c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44542. 8013080: 4619 mov r1, r3
  44543. 8013082: 6878 ldr r0, [r7, #4]
  44544. 8013084: f7f1 f9d6 bl 8004434 <HAL_UARTEx_RxEventCallback>
  44545. 8013088: e002 b.n 8013090 <UART_RxISR_8BIT_FIFOEN+0x290>
  44546. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44547. /*Call registered Rx complete callback*/
  44548. huart->RxCpltCallback(huart);
  44549. #else
  44550. /*Call legacy weak Rx complete callback*/
  44551. HAL_UART_RxCpltCallback(huart);
  44552. 801308a: 6878 ldr r0, [r7, #4]
  44553. 801308c: f7f1 f9c8 bl 8004420 <HAL_UART_RxCpltCallback>
  44554. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44555. 8013090: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  44556. 8013094: 2b00 cmp r3, #0
  44557. 8013096: d006 beq.n 80130a6 <UART_RxISR_8BIT_FIFOEN+0x2a6>
  44558. 8013098: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44559. 801309c: f003 0320 and.w r3, r3, #32
  44560. 80130a0: 2b00 cmp r3, #0
  44561. 80130a2: f47f aed1 bne.w 8012e48 <UART_RxISR_8BIT_FIFOEN+0x48>
  44562. /* When remaining number of bytes to receive is less than the RX FIFO
  44563. threshold, next incoming frames are processed as if FIFO mode was
  44564. disabled (i.e. one interrupt per received frame).
  44565. */
  44566. rxdatacount = huart->RxXferCount;
  44567. 80130a6: 687b ldr r3, [r7, #4]
  44568. 80130a8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44569. 80130ac: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  44570. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  44571. 80130b0: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  44572. 80130b4: 2b00 cmp r3, #0
  44573. 80130b6: d049 beq.n 801314c <UART_RxISR_8BIT_FIFOEN+0x34c>
  44574. 80130b8: 687b ldr r3, [r7, #4]
  44575. 80130ba: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44576. 80130be: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  44577. 80130c2: 429a cmp r2, r3
  44578. 80130c4: d242 bcs.n 801314c <UART_RxISR_8BIT_FIFOEN+0x34c>
  44579. {
  44580. /* Disable the UART RXFT interrupt*/
  44581. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  44582. 80130c6: 687b ldr r3, [r7, #4]
  44583. 80130c8: 681b ldr r3, [r3, #0]
  44584. 80130ca: 3308 adds r3, #8
  44585. 80130cc: 623b str r3, [r7, #32]
  44586. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44587. 80130ce: 6a3b ldr r3, [r7, #32]
  44588. 80130d0: e853 3f00 ldrex r3, [r3]
  44589. 80130d4: 61fb str r3, [r7, #28]
  44590. return(result);
  44591. 80130d6: 69fb ldr r3, [r7, #28]
  44592. 80130d8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  44593. 80130dc: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  44594. 80130e0: 687b ldr r3, [r7, #4]
  44595. 80130e2: 681b ldr r3, [r3, #0]
  44596. 80130e4: 3308 adds r3, #8
  44597. 80130e6: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  44598. 80130ea: 62fa str r2, [r7, #44] @ 0x2c
  44599. 80130ec: 62bb str r3, [r7, #40] @ 0x28
  44600. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44601. 80130ee: 6ab9 ldr r1, [r7, #40] @ 0x28
  44602. 80130f0: 6afa ldr r2, [r7, #44] @ 0x2c
  44603. 80130f2: e841 2300 strex r3, r2, [r1]
  44604. 80130f6: 627b str r3, [r7, #36] @ 0x24
  44605. return(result);
  44606. 80130f8: 6a7b ldr r3, [r7, #36] @ 0x24
  44607. 80130fa: 2b00 cmp r3, #0
  44608. 80130fc: d1e3 bne.n 80130c6 <UART_RxISR_8BIT_FIFOEN+0x2c6>
  44609. /* Update the RxISR function pointer */
  44610. huart->RxISR = UART_RxISR_8BIT;
  44611. 80130fe: 687b ldr r3, [r7, #4]
  44612. 8013100: 4a16 ldr r2, [pc, #88] @ (801315c <UART_RxISR_8BIT_FIFOEN+0x35c>)
  44613. 8013102: 675a str r2, [r3, #116] @ 0x74
  44614. /* Enable the UART Data Register Not Empty interrupt */
  44615. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  44616. 8013104: 687b ldr r3, [r7, #4]
  44617. 8013106: 681b ldr r3, [r3, #0]
  44618. 8013108: 60fb str r3, [r7, #12]
  44619. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44620. 801310a: 68fb ldr r3, [r7, #12]
  44621. 801310c: e853 3f00 ldrex r3, [r3]
  44622. 8013110: 60bb str r3, [r7, #8]
  44623. return(result);
  44624. 8013112: 68bb ldr r3, [r7, #8]
  44625. 8013114: f043 0320 orr.w r3, r3, #32
  44626. 8013118: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  44627. 801311c: 687b ldr r3, [r7, #4]
  44628. 801311e: 681b ldr r3, [r3, #0]
  44629. 8013120: 461a mov r2, r3
  44630. 8013122: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  44631. 8013126: 61bb str r3, [r7, #24]
  44632. 8013128: 617a str r2, [r7, #20]
  44633. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44634. 801312a: 6979 ldr r1, [r7, #20]
  44635. 801312c: 69ba ldr r2, [r7, #24]
  44636. 801312e: e841 2300 strex r3, r2, [r1]
  44637. 8013132: 613b str r3, [r7, #16]
  44638. return(result);
  44639. 8013134: 693b ldr r3, [r7, #16]
  44640. 8013136: 2b00 cmp r3, #0
  44641. 8013138: d1e4 bne.n 8013104 <UART_RxISR_8BIT_FIFOEN+0x304>
  44642. else
  44643. {
  44644. /* Clear RXNE interrupt flag */
  44645. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44646. }
  44647. }
  44648. 801313a: e007 b.n 801314c <UART_RxISR_8BIT_FIFOEN+0x34c>
  44649. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44650. 801313c: 687b ldr r3, [r7, #4]
  44651. 801313e: 681b ldr r3, [r3, #0]
  44652. 8013140: 699a ldr r2, [r3, #24]
  44653. 8013142: 687b ldr r3, [r7, #4]
  44654. 8013144: 681b ldr r3, [r3, #0]
  44655. 8013146: f042 0208 orr.w r2, r2, #8
  44656. 801314a: 619a str r2, [r3, #24]
  44657. }
  44658. 801314c: bf00 nop
  44659. 801314e: 37b0 adds r7, #176 @ 0xb0
  44660. 8013150: 46bd mov sp, r7
  44661. 8013152: bd80 pop {r7, pc}
  44662. 8013154: effffffe .word 0xeffffffe
  44663. 8013158: 58000c00 .word 0x58000c00
  44664. 801315c: 08012a91 .word 0x08012a91
  44665. 08013160 <UART_RxISR_16BIT_FIFOEN>:
  44666. * interruptions have been enabled by HAL_UART_Receive_IT()
  44667. * @param huart UART handle.
  44668. * @retval None
  44669. */
  44670. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  44671. {
  44672. 8013160: b580 push {r7, lr}
  44673. 8013162: b0ae sub sp, #184 @ 0xb8
  44674. 8013164: af00 add r7, sp, #0
  44675. 8013166: 6078 str r0, [r7, #4]
  44676. uint16_t *tmp;
  44677. uint16_t uhMask = huart->Mask;
  44678. 8013168: 687b ldr r3, [r7, #4]
  44679. 801316a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44680. 801316e: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  44681. uint16_t uhdata;
  44682. uint16_t nb_rx_data;
  44683. uint16_t rxdatacount;
  44684. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  44685. 8013172: 687b ldr r3, [r7, #4]
  44686. 8013174: 681b ldr r3, [r3, #0]
  44687. 8013176: 69db ldr r3, [r3, #28]
  44688. 8013178: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44689. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  44690. 801317c: 687b ldr r3, [r7, #4]
  44691. 801317e: 681b ldr r3, [r3, #0]
  44692. 8013180: 681b ldr r3, [r3, #0]
  44693. 8013182: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44694. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  44695. 8013186: 687b ldr r3, [r7, #4]
  44696. 8013188: 681b ldr r3, [r3, #0]
  44697. 801318a: 689b ldr r3, [r3, #8]
  44698. 801318c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  44699. /* Check that a Rx process is ongoing */
  44700. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44701. 8013190: 687b ldr r3, [r7, #4]
  44702. 8013192: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44703. 8013196: 2b22 cmp r3, #34 @ 0x22
  44704. 8013198: f040 8184 bne.w 80134a4 <UART_RxISR_16BIT_FIFOEN+0x344>
  44705. {
  44706. nb_rx_data = huart->NbRxDataToProcess;
  44707. 801319c: 687b ldr r3, [r7, #4]
  44708. 801319e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44709. 80131a2: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  44710. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44711. 80131a6: e127 b.n 80133f8 <UART_RxISR_16BIT_FIFOEN+0x298>
  44712. {
  44713. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44714. 80131a8: 687b ldr r3, [r7, #4]
  44715. 80131aa: 681b ldr r3, [r3, #0]
  44716. 80131ac: 6a5b ldr r3, [r3, #36] @ 0x24
  44717. 80131ae: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  44718. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44719. 80131b2: 687b ldr r3, [r7, #4]
  44720. 80131b4: 6d9b ldr r3, [r3, #88] @ 0x58
  44721. 80131b6: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  44722. *tmp = (uint16_t)(uhdata & uhMask);
  44723. 80131ba: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  44724. 80131be: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  44725. 80131c2: 4013 ands r3, r2
  44726. 80131c4: b29a uxth r2, r3
  44727. 80131c6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44728. 80131ca: 801a strh r2, [r3, #0]
  44729. huart->pRxBuffPtr += 2U;
  44730. 80131cc: 687b ldr r3, [r7, #4]
  44731. 80131ce: 6d9b ldr r3, [r3, #88] @ 0x58
  44732. 80131d0: 1c9a adds r2, r3, #2
  44733. 80131d2: 687b ldr r3, [r7, #4]
  44734. 80131d4: 659a str r2, [r3, #88] @ 0x58
  44735. huart->RxXferCount--;
  44736. 80131d6: 687b ldr r3, [r7, #4]
  44737. 80131d8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44738. 80131dc: b29b uxth r3, r3
  44739. 80131de: 3b01 subs r3, #1
  44740. 80131e0: b29a uxth r2, r3
  44741. 80131e2: 687b ldr r3, [r7, #4]
  44742. 80131e4: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44743. isrflags = READ_REG(huart->Instance->ISR);
  44744. 80131e8: 687b ldr r3, [r7, #4]
  44745. 80131ea: 681b ldr r3, [r3, #0]
  44746. 80131ec: 69db ldr r3, [r3, #28]
  44747. 80131ee: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44748. /* If some non blocking errors occurred */
  44749. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  44750. 80131f2: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44751. 80131f6: f003 0307 and.w r3, r3, #7
  44752. 80131fa: 2b00 cmp r3, #0
  44753. 80131fc: d053 beq.n 80132a6 <UART_RxISR_16BIT_FIFOEN+0x146>
  44754. {
  44755. /* UART parity error interrupt occurred -------------------------------------*/
  44756. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  44757. 80131fe: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44758. 8013202: f003 0301 and.w r3, r3, #1
  44759. 8013206: 2b00 cmp r3, #0
  44760. 8013208: d011 beq.n 801322e <UART_RxISR_16BIT_FIFOEN+0xce>
  44761. 801320a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44762. 801320e: f403 7380 and.w r3, r3, #256 @ 0x100
  44763. 8013212: 2b00 cmp r3, #0
  44764. 8013214: d00b beq.n 801322e <UART_RxISR_16BIT_FIFOEN+0xce>
  44765. {
  44766. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  44767. 8013216: 687b ldr r3, [r7, #4]
  44768. 8013218: 681b ldr r3, [r3, #0]
  44769. 801321a: 2201 movs r2, #1
  44770. 801321c: 621a str r2, [r3, #32]
  44771. huart->ErrorCode |= HAL_UART_ERROR_PE;
  44772. 801321e: 687b ldr r3, [r7, #4]
  44773. 8013220: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44774. 8013224: f043 0201 orr.w r2, r3, #1
  44775. 8013228: 687b ldr r3, [r7, #4]
  44776. 801322a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44777. }
  44778. /* UART frame error interrupt occurred --------------------------------------*/
  44779. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44780. 801322e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44781. 8013232: f003 0302 and.w r3, r3, #2
  44782. 8013236: 2b00 cmp r3, #0
  44783. 8013238: d011 beq.n 801325e <UART_RxISR_16BIT_FIFOEN+0xfe>
  44784. 801323a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44785. 801323e: f003 0301 and.w r3, r3, #1
  44786. 8013242: 2b00 cmp r3, #0
  44787. 8013244: d00b beq.n 801325e <UART_RxISR_16BIT_FIFOEN+0xfe>
  44788. {
  44789. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  44790. 8013246: 687b ldr r3, [r7, #4]
  44791. 8013248: 681b ldr r3, [r3, #0]
  44792. 801324a: 2202 movs r2, #2
  44793. 801324c: 621a str r2, [r3, #32]
  44794. huart->ErrorCode |= HAL_UART_ERROR_FE;
  44795. 801324e: 687b ldr r3, [r7, #4]
  44796. 8013250: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44797. 8013254: f043 0204 orr.w r2, r3, #4
  44798. 8013258: 687b ldr r3, [r7, #4]
  44799. 801325a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44800. }
  44801. /* UART noise error interrupt occurred --------------------------------------*/
  44802. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44803. 801325e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44804. 8013262: f003 0304 and.w r3, r3, #4
  44805. 8013266: 2b00 cmp r3, #0
  44806. 8013268: d011 beq.n 801328e <UART_RxISR_16BIT_FIFOEN+0x12e>
  44807. 801326a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44808. 801326e: f003 0301 and.w r3, r3, #1
  44809. 8013272: 2b00 cmp r3, #0
  44810. 8013274: d00b beq.n 801328e <UART_RxISR_16BIT_FIFOEN+0x12e>
  44811. {
  44812. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  44813. 8013276: 687b ldr r3, [r7, #4]
  44814. 8013278: 681b ldr r3, [r3, #0]
  44815. 801327a: 2204 movs r2, #4
  44816. 801327c: 621a str r2, [r3, #32]
  44817. huart->ErrorCode |= HAL_UART_ERROR_NE;
  44818. 801327e: 687b ldr r3, [r7, #4]
  44819. 8013280: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44820. 8013284: f043 0202 orr.w r2, r3, #2
  44821. 8013288: 687b ldr r3, [r7, #4]
  44822. 801328a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44823. }
  44824. /* Call UART Error Call back function if need be ----------------------------*/
  44825. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  44826. 801328e: 687b ldr r3, [r7, #4]
  44827. 8013290: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44828. 8013294: 2b00 cmp r3, #0
  44829. 8013296: d006 beq.n 80132a6 <UART_RxISR_16BIT_FIFOEN+0x146>
  44830. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44831. /*Call registered error callback*/
  44832. huart->ErrorCallback(huart);
  44833. #else
  44834. /*Call legacy weak error callback*/
  44835. HAL_UART_ErrorCallback(huart);
  44836. 8013298: 6878 ldr r0, [r7, #4]
  44837. 801329a: f7fe f961 bl 8011560 <HAL_UART_ErrorCallback>
  44838. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44839. huart->ErrorCode = HAL_UART_ERROR_NONE;
  44840. 801329e: 687b ldr r3, [r7, #4]
  44841. 80132a0: 2200 movs r2, #0
  44842. 80132a2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44843. }
  44844. }
  44845. if (huart->RxXferCount == 0U)
  44846. 80132a6: 687b ldr r3, [r7, #4]
  44847. 80132a8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44848. 80132ac: b29b uxth r3, r3
  44849. 80132ae: 2b00 cmp r3, #0
  44850. 80132b0: f040 80a2 bne.w 80133f8 <UART_RxISR_16BIT_FIFOEN+0x298>
  44851. {
  44852. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  44853. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  44854. 80132b4: 687b ldr r3, [r7, #4]
  44855. 80132b6: 681b ldr r3, [r3, #0]
  44856. 80132b8: 677b str r3, [r7, #116] @ 0x74
  44857. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44858. 80132ba: 6f7b ldr r3, [r7, #116] @ 0x74
  44859. 80132bc: e853 3f00 ldrex r3, [r3]
  44860. 80132c0: 673b str r3, [r7, #112] @ 0x70
  44861. return(result);
  44862. 80132c2: 6f3b ldr r3, [r7, #112] @ 0x70
  44863. 80132c4: f423 7380 bic.w r3, r3, #256 @ 0x100
  44864. 80132c8: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  44865. 80132cc: 687b ldr r3, [r7, #4]
  44866. 80132ce: 681b ldr r3, [r3, #0]
  44867. 80132d0: 461a mov r2, r3
  44868. 80132d2: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  44869. 80132d6: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  44870. 80132da: 67fa str r2, [r7, #124] @ 0x7c
  44871. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44872. 80132dc: 6ff9 ldr r1, [r7, #124] @ 0x7c
  44873. 80132de: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  44874. 80132e2: e841 2300 strex r3, r2, [r1]
  44875. 80132e6: 67bb str r3, [r7, #120] @ 0x78
  44876. return(result);
  44877. 80132e8: 6fbb ldr r3, [r7, #120] @ 0x78
  44878. 80132ea: 2b00 cmp r3, #0
  44879. 80132ec: d1e2 bne.n 80132b4 <UART_RxISR_16BIT_FIFOEN+0x154>
  44880. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  44881. and RX FIFO Threshold interrupt */
  44882. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  44883. 80132ee: 687b ldr r3, [r7, #4]
  44884. 80132f0: 681b ldr r3, [r3, #0]
  44885. 80132f2: 3308 adds r3, #8
  44886. 80132f4: 663b str r3, [r7, #96] @ 0x60
  44887. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44888. 80132f6: 6e3b ldr r3, [r7, #96] @ 0x60
  44889. 80132f8: e853 3f00 ldrex r3, [r3]
  44890. 80132fc: 65fb str r3, [r7, #92] @ 0x5c
  44891. return(result);
  44892. 80132fe: 6dfa ldr r2, [r7, #92] @ 0x5c
  44893. 8013300: 4b6e ldr r3, [pc, #440] @ (80134bc <UART_RxISR_16BIT_FIFOEN+0x35c>)
  44894. 8013302: 4013 ands r3, r2
  44895. 8013304: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  44896. 8013308: 687b ldr r3, [r7, #4]
  44897. 801330a: 681b ldr r3, [r3, #0]
  44898. 801330c: 3308 adds r3, #8
  44899. 801330e: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  44900. 8013312: 66fa str r2, [r7, #108] @ 0x6c
  44901. 8013314: 66bb str r3, [r7, #104] @ 0x68
  44902. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44903. 8013316: 6eb9 ldr r1, [r7, #104] @ 0x68
  44904. 8013318: 6efa ldr r2, [r7, #108] @ 0x6c
  44905. 801331a: e841 2300 strex r3, r2, [r1]
  44906. 801331e: 667b str r3, [r7, #100] @ 0x64
  44907. return(result);
  44908. 8013320: 6e7b ldr r3, [r7, #100] @ 0x64
  44909. 8013322: 2b00 cmp r3, #0
  44910. 8013324: d1e3 bne.n 80132ee <UART_RxISR_16BIT_FIFOEN+0x18e>
  44911. /* Rx process is completed, restore huart->RxState to Ready */
  44912. huart->RxState = HAL_UART_STATE_READY;
  44913. 8013326: 687b ldr r3, [r7, #4]
  44914. 8013328: 2220 movs r2, #32
  44915. 801332a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44916. /* Clear RxISR function pointer */
  44917. huart->RxISR = NULL;
  44918. 801332e: 687b ldr r3, [r7, #4]
  44919. 8013330: 2200 movs r2, #0
  44920. 8013332: 675a str r2, [r3, #116] @ 0x74
  44921. /* Initialize type of RxEvent to Transfer Complete */
  44922. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44923. 8013334: 687b ldr r3, [r7, #4]
  44924. 8013336: 2200 movs r2, #0
  44925. 8013338: 671a str r2, [r3, #112] @ 0x70
  44926. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44927. 801333a: 687b ldr r3, [r7, #4]
  44928. 801333c: 681b ldr r3, [r3, #0]
  44929. 801333e: 4a60 ldr r2, [pc, #384] @ (80134c0 <UART_RxISR_16BIT_FIFOEN+0x360>)
  44930. 8013340: 4293 cmp r3, r2
  44931. 8013342: d021 beq.n 8013388 <UART_RxISR_16BIT_FIFOEN+0x228>
  44932. {
  44933. /* Check that USART RTOEN bit is set */
  44934. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44935. 8013344: 687b ldr r3, [r7, #4]
  44936. 8013346: 681b ldr r3, [r3, #0]
  44937. 8013348: 685b ldr r3, [r3, #4]
  44938. 801334a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44939. 801334e: 2b00 cmp r3, #0
  44940. 8013350: d01a beq.n 8013388 <UART_RxISR_16BIT_FIFOEN+0x228>
  44941. {
  44942. /* Enable the UART Receiver Timeout Interrupt */
  44943. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44944. 8013352: 687b ldr r3, [r7, #4]
  44945. 8013354: 681b ldr r3, [r3, #0]
  44946. 8013356: 64fb str r3, [r7, #76] @ 0x4c
  44947. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44948. 8013358: 6cfb ldr r3, [r7, #76] @ 0x4c
  44949. 801335a: e853 3f00 ldrex r3, [r3]
  44950. 801335e: 64bb str r3, [r7, #72] @ 0x48
  44951. return(result);
  44952. 8013360: 6cbb ldr r3, [r7, #72] @ 0x48
  44953. 8013362: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44954. 8013366: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  44955. 801336a: 687b ldr r3, [r7, #4]
  44956. 801336c: 681b ldr r3, [r3, #0]
  44957. 801336e: 461a mov r2, r3
  44958. 8013370: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  44959. 8013374: 65bb str r3, [r7, #88] @ 0x58
  44960. 8013376: 657a str r2, [r7, #84] @ 0x54
  44961. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44962. 8013378: 6d79 ldr r1, [r7, #84] @ 0x54
  44963. 801337a: 6dba ldr r2, [r7, #88] @ 0x58
  44964. 801337c: e841 2300 strex r3, r2, [r1]
  44965. 8013380: 653b str r3, [r7, #80] @ 0x50
  44966. return(result);
  44967. 8013382: 6d3b ldr r3, [r7, #80] @ 0x50
  44968. 8013384: 2b00 cmp r3, #0
  44969. 8013386: d1e4 bne.n 8013352 <UART_RxISR_16BIT_FIFOEN+0x1f2>
  44970. }
  44971. }
  44972. /* Check current reception Mode :
  44973. If Reception till IDLE event has been selected : */
  44974. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44975. 8013388: 687b ldr r3, [r7, #4]
  44976. 801338a: 6edb ldr r3, [r3, #108] @ 0x6c
  44977. 801338c: 2b01 cmp r3, #1
  44978. 801338e: d130 bne.n 80133f2 <UART_RxISR_16BIT_FIFOEN+0x292>
  44979. {
  44980. /* Set reception type to Standard */
  44981. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44982. 8013390: 687b ldr r3, [r7, #4]
  44983. 8013392: 2200 movs r2, #0
  44984. 8013394: 66da str r2, [r3, #108] @ 0x6c
  44985. /* Disable IDLE interrupt */
  44986. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44987. 8013396: 687b ldr r3, [r7, #4]
  44988. 8013398: 681b ldr r3, [r3, #0]
  44989. 801339a: 63bb str r3, [r7, #56] @ 0x38
  44990. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44991. 801339c: 6bbb ldr r3, [r7, #56] @ 0x38
  44992. 801339e: e853 3f00 ldrex r3, [r3]
  44993. 80133a2: 637b str r3, [r7, #52] @ 0x34
  44994. return(result);
  44995. 80133a4: 6b7b ldr r3, [r7, #52] @ 0x34
  44996. 80133a6: f023 0310 bic.w r3, r3, #16
  44997. 80133aa: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  44998. 80133ae: 687b ldr r3, [r7, #4]
  44999. 80133b0: 681b ldr r3, [r3, #0]
  45000. 80133b2: 461a mov r2, r3
  45001. 80133b4: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45002. 80133b8: 647b str r3, [r7, #68] @ 0x44
  45003. 80133ba: 643a str r2, [r7, #64] @ 0x40
  45004. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45005. 80133bc: 6c39 ldr r1, [r7, #64] @ 0x40
  45006. 80133be: 6c7a ldr r2, [r7, #68] @ 0x44
  45007. 80133c0: e841 2300 strex r3, r2, [r1]
  45008. 80133c4: 63fb str r3, [r7, #60] @ 0x3c
  45009. return(result);
  45010. 80133c6: 6bfb ldr r3, [r7, #60] @ 0x3c
  45011. 80133c8: 2b00 cmp r3, #0
  45012. 80133ca: d1e4 bne.n 8013396 <UART_RxISR_16BIT_FIFOEN+0x236>
  45013. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45014. 80133cc: 687b ldr r3, [r7, #4]
  45015. 80133ce: 681b ldr r3, [r3, #0]
  45016. 80133d0: 69db ldr r3, [r3, #28]
  45017. 80133d2: f003 0310 and.w r3, r3, #16
  45018. 80133d6: 2b10 cmp r3, #16
  45019. 80133d8: d103 bne.n 80133e2 <UART_RxISR_16BIT_FIFOEN+0x282>
  45020. {
  45021. /* Clear IDLE Flag */
  45022. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45023. 80133da: 687b ldr r3, [r7, #4]
  45024. 80133dc: 681b ldr r3, [r3, #0]
  45025. 80133de: 2210 movs r2, #16
  45026. 80133e0: 621a str r2, [r3, #32]
  45027. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45028. /*Call registered Rx Event callback*/
  45029. huart->RxEventCallback(huart, huart->RxXferSize);
  45030. #else
  45031. /*Call legacy weak Rx Event callback*/
  45032. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45033. 80133e2: 687b ldr r3, [r7, #4]
  45034. 80133e4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45035. 80133e8: 4619 mov r1, r3
  45036. 80133ea: 6878 ldr r0, [r7, #4]
  45037. 80133ec: f7f1 f822 bl 8004434 <HAL_UARTEx_RxEventCallback>
  45038. 80133f0: e002 b.n 80133f8 <UART_RxISR_16BIT_FIFOEN+0x298>
  45039. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45040. /*Call registered Rx complete callback*/
  45041. huart->RxCpltCallback(huart);
  45042. #else
  45043. /*Call legacy weak Rx complete callback*/
  45044. HAL_UART_RxCpltCallback(huart);
  45045. 80133f2: 6878 ldr r0, [r7, #4]
  45046. 80133f4: f7f1 f814 bl 8004420 <HAL_UART_RxCpltCallback>
  45047. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45048. 80133f8: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  45049. 80133fc: 2b00 cmp r3, #0
  45050. 80133fe: d006 beq.n 801340e <UART_RxISR_16BIT_FIFOEN+0x2ae>
  45051. 8013400: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45052. 8013404: f003 0320 and.w r3, r3, #32
  45053. 8013408: 2b00 cmp r3, #0
  45054. 801340a: f47f aecd bne.w 80131a8 <UART_RxISR_16BIT_FIFOEN+0x48>
  45055. /* When remaining number of bytes to receive is less than the RX FIFO
  45056. threshold, next incoming frames are processed as if FIFO mode was
  45057. disabled (i.e. one interrupt per received frame).
  45058. */
  45059. rxdatacount = huart->RxXferCount;
  45060. 801340e: 687b ldr r3, [r7, #4]
  45061. 8013410: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45062. 8013414: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  45063. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45064. 8013418: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  45065. 801341c: 2b00 cmp r3, #0
  45066. 801341e: d049 beq.n 80134b4 <UART_RxISR_16BIT_FIFOEN+0x354>
  45067. 8013420: 687b ldr r3, [r7, #4]
  45068. 8013422: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45069. 8013426: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  45070. 801342a: 429a cmp r2, r3
  45071. 801342c: d242 bcs.n 80134b4 <UART_RxISR_16BIT_FIFOEN+0x354>
  45072. {
  45073. /* Disable the UART RXFT interrupt*/
  45074. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45075. 801342e: 687b ldr r3, [r7, #4]
  45076. 8013430: 681b ldr r3, [r3, #0]
  45077. 8013432: 3308 adds r3, #8
  45078. 8013434: 627b str r3, [r7, #36] @ 0x24
  45079. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45080. 8013436: 6a7b ldr r3, [r7, #36] @ 0x24
  45081. 8013438: e853 3f00 ldrex r3, [r3]
  45082. 801343c: 623b str r3, [r7, #32]
  45083. return(result);
  45084. 801343e: 6a3b ldr r3, [r7, #32]
  45085. 8013440: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45086. 8013444: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  45087. 8013448: 687b ldr r3, [r7, #4]
  45088. 801344a: 681b ldr r3, [r3, #0]
  45089. 801344c: 3308 adds r3, #8
  45090. 801344e: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  45091. 8013452: 633a str r2, [r7, #48] @ 0x30
  45092. 8013454: 62fb str r3, [r7, #44] @ 0x2c
  45093. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45094. 8013456: 6af9 ldr r1, [r7, #44] @ 0x2c
  45095. 8013458: 6b3a ldr r2, [r7, #48] @ 0x30
  45096. 801345a: e841 2300 strex r3, r2, [r1]
  45097. 801345e: 62bb str r3, [r7, #40] @ 0x28
  45098. return(result);
  45099. 8013460: 6abb ldr r3, [r7, #40] @ 0x28
  45100. 8013462: 2b00 cmp r3, #0
  45101. 8013464: d1e3 bne.n 801342e <UART_RxISR_16BIT_FIFOEN+0x2ce>
  45102. /* Update the RxISR function pointer */
  45103. huart->RxISR = UART_RxISR_16BIT;
  45104. 8013466: 687b ldr r3, [r7, #4]
  45105. 8013468: 4a16 ldr r2, [pc, #88] @ (80134c4 <UART_RxISR_16BIT_FIFOEN+0x364>)
  45106. 801346a: 675a str r2, [r3, #116] @ 0x74
  45107. /* Enable the UART Data Register Not Empty interrupt */
  45108. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45109. 801346c: 687b ldr r3, [r7, #4]
  45110. 801346e: 681b ldr r3, [r3, #0]
  45111. 8013470: 613b str r3, [r7, #16]
  45112. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45113. 8013472: 693b ldr r3, [r7, #16]
  45114. 8013474: e853 3f00 ldrex r3, [r3]
  45115. 8013478: 60fb str r3, [r7, #12]
  45116. return(result);
  45117. 801347a: 68fb ldr r3, [r7, #12]
  45118. 801347c: f043 0320 orr.w r3, r3, #32
  45119. 8013480: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45120. 8013484: 687b ldr r3, [r7, #4]
  45121. 8013486: 681b ldr r3, [r3, #0]
  45122. 8013488: 461a mov r2, r3
  45123. 801348a: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  45124. 801348e: 61fb str r3, [r7, #28]
  45125. 8013490: 61ba str r2, [r7, #24]
  45126. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45127. 8013492: 69b9 ldr r1, [r7, #24]
  45128. 8013494: 69fa ldr r2, [r7, #28]
  45129. 8013496: e841 2300 strex r3, r2, [r1]
  45130. 801349a: 617b str r3, [r7, #20]
  45131. return(result);
  45132. 801349c: 697b ldr r3, [r7, #20]
  45133. 801349e: 2b00 cmp r3, #0
  45134. 80134a0: d1e4 bne.n 801346c <UART_RxISR_16BIT_FIFOEN+0x30c>
  45135. else
  45136. {
  45137. /* Clear RXNE interrupt flag */
  45138. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45139. }
  45140. }
  45141. 80134a2: e007 b.n 80134b4 <UART_RxISR_16BIT_FIFOEN+0x354>
  45142. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45143. 80134a4: 687b ldr r3, [r7, #4]
  45144. 80134a6: 681b ldr r3, [r3, #0]
  45145. 80134a8: 699a ldr r2, [r3, #24]
  45146. 80134aa: 687b ldr r3, [r7, #4]
  45147. 80134ac: 681b ldr r3, [r3, #0]
  45148. 80134ae: f042 0208 orr.w r2, r2, #8
  45149. 80134b2: 619a str r2, [r3, #24]
  45150. }
  45151. 80134b4: bf00 nop
  45152. 80134b6: 37b8 adds r7, #184 @ 0xb8
  45153. 80134b8: 46bd mov sp, r7
  45154. 80134ba: bd80 pop {r7, pc}
  45155. 80134bc: effffffe .word 0xeffffffe
  45156. 80134c0: 58000c00 .word 0x58000c00
  45157. 80134c4: 08012c49 .word 0x08012c49
  45158. 080134c8 <HAL_UARTEx_WakeupCallback>:
  45159. * @brief UART wakeup from Stop mode callback.
  45160. * @param huart UART handle.
  45161. * @retval None
  45162. */
  45163. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  45164. {
  45165. 80134c8: b480 push {r7}
  45166. 80134ca: b083 sub sp, #12
  45167. 80134cc: af00 add r7, sp, #0
  45168. 80134ce: 6078 str r0, [r7, #4]
  45169. UNUSED(huart);
  45170. /* NOTE : This function should not be modified, when the callback is needed,
  45171. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  45172. */
  45173. }
  45174. 80134d0: bf00 nop
  45175. 80134d2: 370c adds r7, #12
  45176. 80134d4: 46bd mov sp, r7
  45177. 80134d6: f85d 7b04 ldr.w r7, [sp], #4
  45178. 80134da: 4770 bx lr
  45179. 080134dc <HAL_UARTEx_RxFifoFullCallback>:
  45180. * @brief UART RX Fifo full callback.
  45181. * @param huart UART handle.
  45182. * @retval None
  45183. */
  45184. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  45185. {
  45186. 80134dc: b480 push {r7}
  45187. 80134de: b083 sub sp, #12
  45188. 80134e0: af00 add r7, sp, #0
  45189. 80134e2: 6078 str r0, [r7, #4]
  45190. UNUSED(huart);
  45191. /* NOTE : This function should not be modified, when the callback is needed,
  45192. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  45193. */
  45194. }
  45195. 80134e4: bf00 nop
  45196. 80134e6: 370c adds r7, #12
  45197. 80134e8: 46bd mov sp, r7
  45198. 80134ea: f85d 7b04 ldr.w r7, [sp], #4
  45199. 80134ee: 4770 bx lr
  45200. 080134f0 <HAL_UARTEx_TxFifoEmptyCallback>:
  45201. * @brief UART TX Fifo empty callback.
  45202. * @param huart UART handle.
  45203. * @retval None
  45204. */
  45205. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  45206. {
  45207. 80134f0: b480 push {r7}
  45208. 80134f2: b083 sub sp, #12
  45209. 80134f4: af00 add r7, sp, #0
  45210. 80134f6: 6078 str r0, [r7, #4]
  45211. UNUSED(huart);
  45212. /* NOTE : This function should not be modified, when the callback is needed,
  45213. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  45214. */
  45215. }
  45216. 80134f8: bf00 nop
  45217. 80134fa: 370c adds r7, #12
  45218. 80134fc: 46bd mov sp, r7
  45219. 80134fe: f85d 7b04 ldr.w r7, [sp], #4
  45220. 8013502: 4770 bx lr
  45221. 08013504 <HAL_UARTEx_DisableFifoMode>:
  45222. * @brief Disable the FIFO mode.
  45223. * @param huart UART handle.
  45224. * @retval HAL status
  45225. */
  45226. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  45227. {
  45228. 8013504: b480 push {r7}
  45229. 8013506: b085 sub sp, #20
  45230. 8013508: af00 add r7, sp, #0
  45231. 801350a: 6078 str r0, [r7, #4]
  45232. /* Check parameters */
  45233. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  45234. /* Process Locked */
  45235. __HAL_LOCK(huart);
  45236. 801350c: 687b ldr r3, [r7, #4]
  45237. 801350e: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  45238. 8013512: 2b01 cmp r3, #1
  45239. 8013514: d101 bne.n 801351a <HAL_UARTEx_DisableFifoMode+0x16>
  45240. 8013516: 2302 movs r3, #2
  45241. 8013518: e027 b.n 801356a <HAL_UARTEx_DisableFifoMode+0x66>
  45242. 801351a: 687b ldr r3, [r7, #4]
  45243. 801351c: 2201 movs r2, #1
  45244. 801351e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45245. huart->gState = HAL_UART_STATE_BUSY;
  45246. 8013522: 687b ldr r3, [r7, #4]
  45247. 8013524: 2224 movs r2, #36 @ 0x24
  45248. 8013526: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45249. /* Save actual UART configuration */
  45250. tmpcr1 = READ_REG(huart->Instance->CR1);
  45251. 801352a: 687b ldr r3, [r7, #4]
  45252. 801352c: 681b ldr r3, [r3, #0]
  45253. 801352e: 681b ldr r3, [r3, #0]
  45254. 8013530: 60fb str r3, [r7, #12]
  45255. /* Disable UART */
  45256. __HAL_UART_DISABLE(huart);
  45257. 8013532: 687b ldr r3, [r7, #4]
  45258. 8013534: 681b ldr r3, [r3, #0]
  45259. 8013536: 681a ldr r2, [r3, #0]
  45260. 8013538: 687b ldr r3, [r7, #4]
  45261. 801353a: 681b ldr r3, [r3, #0]
  45262. 801353c: f022 0201 bic.w r2, r2, #1
  45263. 8013540: 601a str r2, [r3, #0]
  45264. /* Enable FIFO mode */
  45265. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  45266. 8013542: 68fb ldr r3, [r7, #12]
  45267. 8013544: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  45268. 8013548: 60fb str r3, [r7, #12]
  45269. huart->FifoMode = UART_FIFOMODE_DISABLE;
  45270. 801354a: 687b ldr r3, [r7, #4]
  45271. 801354c: 2200 movs r2, #0
  45272. 801354e: 665a str r2, [r3, #100] @ 0x64
  45273. /* Restore UART configuration */
  45274. WRITE_REG(huart->Instance->CR1, tmpcr1);
  45275. 8013550: 687b ldr r3, [r7, #4]
  45276. 8013552: 681b ldr r3, [r3, #0]
  45277. 8013554: 68fa ldr r2, [r7, #12]
  45278. 8013556: 601a str r2, [r3, #0]
  45279. huart->gState = HAL_UART_STATE_READY;
  45280. 8013558: 687b ldr r3, [r7, #4]
  45281. 801355a: 2220 movs r2, #32
  45282. 801355c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45283. /* Process Unlocked */
  45284. __HAL_UNLOCK(huart);
  45285. 8013560: 687b ldr r3, [r7, #4]
  45286. 8013562: 2200 movs r2, #0
  45287. 8013564: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45288. return HAL_OK;
  45289. 8013568: 2300 movs r3, #0
  45290. }
  45291. 801356a: 4618 mov r0, r3
  45292. 801356c: 3714 adds r7, #20
  45293. 801356e: 46bd mov sp, r7
  45294. 8013570: f85d 7b04 ldr.w r7, [sp], #4
  45295. 8013574: 4770 bx lr
  45296. 08013576 <HAL_UARTEx_SetTxFifoThreshold>:
  45297. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  45298. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  45299. * @retval HAL status
  45300. */
  45301. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  45302. {
  45303. 8013576: b580 push {r7, lr}
  45304. 8013578: b084 sub sp, #16
  45305. 801357a: af00 add r7, sp, #0
  45306. 801357c: 6078 str r0, [r7, #4]
  45307. 801357e: 6039 str r1, [r7, #0]
  45308. /* Check parameters */
  45309. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  45310. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  45311. /* Process Locked */
  45312. __HAL_LOCK(huart);
  45313. 8013580: 687b ldr r3, [r7, #4]
  45314. 8013582: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  45315. 8013586: 2b01 cmp r3, #1
  45316. 8013588: d101 bne.n 801358e <HAL_UARTEx_SetTxFifoThreshold+0x18>
  45317. 801358a: 2302 movs r3, #2
  45318. 801358c: e02d b.n 80135ea <HAL_UARTEx_SetTxFifoThreshold+0x74>
  45319. 801358e: 687b ldr r3, [r7, #4]
  45320. 8013590: 2201 movs r2, #1
  45321. 8013592: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45322. huart->gState = HAL_UART_STATE_BUSY;
  45323. 8013596: 687b ldr r3, [r7, #4]
  45324. 8013598: 2224 movs r2, #36 @ 0x24
  45325. 801359a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45326. /* Save actual UART configuration */
  45327. tmpcr1 = READ_REG(huart->Instance->CR1);
  45328. 801359e: 687b ldr r3, [r7, #4]
  45329. 80135a0: 681b ldr r3, [r3, #0]
  45330. 80135a2: 681b ldr r3, [r3, #0]
  45331. 80135a4: 60fb str r3, [r7, #12]
  45332. /* Disable UART */
  45333. __HAL_UART_DISABLE(huart);
  45334. 80135a6: 687b ldr r3, [r7, #4]
  45335. 80135a8: 681b ldr r3, [r3, #0]
  45336. 80135aa: 681a ldr r2, [r3, #0]
  45337. 80135ac: 687b ldr r3, [r7, #4]
  45338. 80135ae: 681b ldr r3, [r3, #0]
  45339. 80135b0: f022 0201 bic.w r2, r2, #1
  45340. 80135b4: 601a str r2, [r3, #0]
  45341. /* Update TX threshold configuration */
  45342. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  45343. 80135b6: 687b ldr r3, [r7, #4]
  45344. 80135b8: 681b ldr r3, [r3, #0]
  45345. 80135ba: 689b ldr r3, [r3, #8]
  45346. 80135bc: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  45347. 80135c0: 687b ldr r3, [r7, #4]
  45348. 80135c2: 681b ldr r3, [r3, #0]
  45349. 80135c4: 683a ldr r2, [r7, #0]
  45350. 80135c6: 430a orrs r2, r1
  45351. 80135c8: 609a str r2, [r3, #8]
  45352. /* Determine the number of data to process during RX/TX ISR execution */
  45353. UARTEx_SetNbDataToProcess(huart);
  45354. 80135ca: 6878 ldr r0, [r7, #4]
  45355. 80135cc: f000 f8a0 bl 8013710 <UARTEx_SetNbDataToProcess>
  45356. /* Restore UART configuration */
  45357. WRITE_REG(huart->Instance->CR1, tmpcr1);
  45358. 80135d0: 687b ldr r3, [r7, #4]
  45359. 80135d2: 681b ldr r3, [r3, #0]
  45360. 80135d4: 68fa ldr r2, [r7, #12]
  45361. 80135d6: 601a str r2, [r3, #0]
  45362. huart->gState = HAL_UART_STATE_READY;
  45363. 80135d8: 687b ldr r3, [r7, #4]
  45364. 80135da: 2220 movs r2, #32
  45365. 80135dc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45366. /* Process Unlocked */
  45367. __HAL_UNLOCK(huart);
  45368. 80135e0: 687b ldr r3, [r7, #4]
  45369. 80135e2: 2200 movs r2, #0
  45370. 80135e4: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45371. return HAL_OK;
  45372. 80135e8: 2300 movs r3, #0
  45373. }
  45374. 80135ea: 4618 mov r0, r3
  45375. 80135ec: 3710 adds r7, #16
  45376. 80135ee: 46bd mov sp, r7
  45377. 80135f0: bd80 pop {r7, pc}
  45378. 080135f2 <HAL_UARTEx_SetRxFifoThreshold>:
  45379. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  45380. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  45381. * @retval HAL status
  45382. */
  45383. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  45384. {
  45385. 80135f2: b580 push {r7, lr}
  45386. 80135f4: b084 sub sp, #16
  45387. 80135f6: af00 add r7, sp, #0
  45388. 80135f8: 6078 str r0, [r7, #4]
  45389. 80135fa: 6039 str r1, [r7, #0]
  45390. /* Check the parameters */
  45391. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  45392. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  45393. /* Process Locked */
  45394. __HAL_LOCK(huart);
  45395. 80135fc: 687b ldr r3, [r7, #4]
  45396. 80135fe: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  45397. 8013602: 2b01 cmp r3, #1
  45398. 8013604: d101 bne.n 801360a <HAL_UARTEx_SetRxFifoThreshold+0x18>
  45399. 8013606: 2302 movs r3, #2
  45400. 8013608: e02d b.n 8013666 <HAL_UARTEx_SetRxFifoThreshold+0x74>
  45401. 801360a: 687b ldr r3, [r7, #4]
  45402. 801360c: 2201 movs r2, #1
  45403. 801360e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45404. huart->gState = HAL_UART_STATE_BUSY;
  45405. 8013612: 687b ldr r3, [r7, #4]
  45406. 8013614: 2224 movs r2, #36 @ 0x24
  45407. 8013616: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45408. /* Save actual UART configuration */
  45409. tmpcr1 = READ_REG(huart->Instance->CR1);
  45410. 801361a: 687b ldr r3, [r7, #4]
  45411. 801361c: 681b ldr r3, [r3, #0]
  45412. 801361e: 681b ldr r3, [r3, #0]
  45413. 8013620: 60fb str r3, [r7, #12]
  45414. /* Disable UART */
  45415. __HAL_UART_DISABLE(huart);
  45416. 8013622: 687b ldr r3, [r7, #4]
  45417. 8013624: 681b ldr r3, [r3, #0]
  45418. 8013626: 681a ldr r2, [r3, #0]
  45419. 8013628: 687b ldr r3, [r7, #4]
  45420. 801362a: 681b ldr r3, [r3, #0]
  45421. 801362c: f022 0201 bic.w r2, r2, #1
  45422. 8013630: 601a str r2, [r3, #0]
  45423. /* Update RX threshold configuration */
  45424. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  45425. 8013632: 687b ldr r3, [r7, #4]
  45426. 8013634: 681b ldr r3, [r3, #0]
  45427. 8013636: 689b ldr r3, [r3, #8]
  45428. 8013638: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  45429. 801363c: 687b ldr r3, [r7, #4]
  45430. 801363e: 681b ldr r3, [r3, #0]
  45431. 8013640: 683a ldr r2, [r7, #0]
  45432. 8013642: 430a orrs r2, r1
  45433. 8013644: 609a str r2, [r3, #8]
  45434. /* Determine the number of data to process during RX/TX ISR execution */
  45435. UARTEx_SetNbDataToProcess(huart);
  45436. 8013646: 6878 ldr r0, [r7, #4]
  45437. 8013648: f000 f862 bl 8013710 <UARTEx_SetNbDataToProcess>
  45438. /* Restore UART configuration */
  45439. WRITE_REG(huart->Instance->CR1, tmpcr1);
  45440. 801364c: 687b ldr r3, [r7, #4]
  45441. 801364e: 681b ldr r3, [r3, #0]
  45442. 8013650: 68fa ldr r2, [r7, #12]
  45443. 8013652: 601a str r2, [r3, #0]
  45444. huart->gState = HAL_UART_STATE_READY;
  45445. 8013654: 687b ldr r3, [r7, #4]
  45446. 8013656: 2220 movs r2, #32
  45447. 8013658: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45448. /* Process Unlocked */
  45449. __HAL_UNLOCK(huart);
  45450. 801365c: 687b ldr r3, [r7, #4]
  45451. 801365e: 2200 movs r2, #0
  45452. 8013660: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45453. return HAL_OK;
  45454. 8013664: 2300 movs r3, #0
  45455. }
  45456. 8013666: 4618 mov r0, r3
  45457. 8013668: 3710 adds r7, #16
  45458. 801366a: 46bd mov sp, r7
  45459. 801366c: bd80 pop {r7, pc}
  45460. 0801366e <HAL_UARTEx_ReceiveToIdle_IT>:
  45461. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  45462. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  45463. * @retval HAL status
  45464. */
  45465. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  45466. {
  45467. 801366e: b580 push {r7, lr}
  45468. 8013670: b08c sub sp, #48 @ 0x30
  45469. 8013672: af00 add r7, sp, #0
  45470. 8013674: 60f8 str r0, [r7, #12]
  45471. 8013676: 60b9 str r1, [r7, #8]
  45472. 8013678: 4613 mov r3, r2
  45473. 801367a: 80fb strh r3, [r7, #6]
  45474. HAL_StatusTypeDef status = HAL_OK;
  45475. 801367c: 2300 movs r3, #0
  45476. 801367e: f887 302f strb.w r3, [r7, #47] @ 0x2f
  45477. /* Check that a Rx process is not already ongoing */
  45478. if (huart->RxState == HAL_UART_STATE_READY)
  45479. 8013682: 68fb ldr r3, [r7, #12]
  45480. 8013684: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45481. 8013688: 2b20 cmp r3, #32
  45482. 801368a: d13b bne.n 8013704 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  45483. {
  45484. if ((pData == NULL) || (Size == 0U))
  45485. 801368c: 68bb ldr r3, [r7, #8]
  45486. 801368e: 2b00 cmp r3, #0
  45487. 8013690: d002 beq.n 8013698 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  45488. 8013692: 88fb ldrh r3, [r7, #6]
  45489. 8013694: 2b00 cmp r3, #0
  45490. 8013696: d101 bne.n 801369c <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  45491. {
  45492. return HAL_ERROR;
  45493. 8013698: 2301 movs r3, #1
  45494. 801369a: e034 b.n 8013706 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  45495. }
  45496. /* Set Reception type to reception till IDLE Event*/
  45497. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  45498. 801369c: 68fb ldr r3, [r7, #12]
  45499. 801369e: 2201 movs r2, #1
  45500. 80136a0: 66da str r2, [r3, #108] @ 0x6c
  45501. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45502. 80136a2: 68fb ldr r3, [r7, #12]
  45503. 80136a4: 2200 movs r2, #0
  45504. 80136a6: 671a str r2, [r3, #112] @ 0x70
  45505. (void)UART_Start_Receive_IT(huart, pData, Size);
  45506. 80136a8: 88fb ldrh r3, [r7, #6]
  45507. 80136aa: 461a mov r2, r3
  45508. 80136ac: 68b9 ldr r1, [r7, #8]
  45509. 80136ae: 68f8 ldr r0, [r7, #12]
  45510. 80136b0: f7fe fe82 bl 80123b8 <UART_Start_Receive_IT>
  45511. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45512. 80136b4: 68fb ldr r3, [r7, #12]
  45513. 80136b6: 6edb ldr r3, [r3, #108] @ 0x6c
  45514. 80136b8: 2b01 cmp r3, #1
  45515. 80136ba: d11d bne.n 80136f8 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  45516. {
  45517. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45518. 80136bc: 68fb ldr r3, [r7, #12]
  45519. 80136be: 681b ldr r3, [r3, #0]
  45520. 80136c0: 2210 movs r2, #16
  45521. 80136c2: 621a str r2, [r3, #32]
  45522. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45523. 80136c4: 68fb ldr r3, [r7, #12]
  45524. 80136c6: 681b ldr r3, [r3, #0]
  45525. 80136c8: 61bb str r3, [r7, #24]
  45526. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45527. 80136ca: 69bb ldr r3, [r7, #24]
  45528. 80136cc: e853 3f00 ldrex r3, [r3]
  45529. 80136d0: 617b str r3, [r7, #20]
  45530. return(result);
  45531. 80136d2: 697b ldr r3, [r7, #20]
  45532. 80136d4: f043 0310 orr.w r3, r3, #16
  45533. 80136d8: 62bb str r3, [r7, #40] @ 0x28
  45534. 80136da: 68fb ldr r3, [r7, #12]
  45535. 80136dc: 681b ldr r3, [r3, #0]
  45536. 80136de: 461a mov r2, r3
  45537. 80136e0: 6abb ldr r3, [r7, #40] @ 0x28
  45538. 80136e2: 627b str r3, [r7, #36] @ 0x24
  45539. 80136e4: 623a str r2, [r7, #32]
  45540. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45541. 80136e6: 6a39 ldr r1, [r7, #32]
  45542. 80136e8: 6a7a ldr r2, [r7, #36] @ 0x24
  45543. 80136ea: e841 2300 strex r3, r2, [r1]
  45544. 80136ee: 61fb str r3, [r7, #28]
  45545. return(result);
  45546. 80136f0: 69fb ldr r3, [r7, #28]
  45547. 80136f2: 2b00 cmp r3, #0
  45548. 80136f4: d1e6 bne.n 80136c4 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  45549. 80136f6: e002 b.n 80136fe <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  45550. {
  45551. /* In case of errors already pending when reception is started,
  45552. Interrupts may have already been raised and lead to reception abortion.
  45553. (Overrun error for instance).
  45554. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  45555. status = HAL_ERROR;
  45556. 80136f8: 2301 movs r3, #1
  45557. 80136fa: f887 302f strb.w r3, [r7, #47] @ 0x2f
  45558. }
  45559. return status;
  45560. 80136fe: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  45561. 8013702: e000 b.n 8013706 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  45562. }
  45563. else
  45564. {
  45565. return HAL_BUSY;
  45566. 8013704: 2302 movs r3, #2
  45567. }
  45568. }
  45569. 8013706: 4618 mov r0, r3
  45570. 8013708: 3730 adds r7, #48 @ 0x30
  45571. 801370a: 46bd mov sp, r7
  45572. 801370c: bd80 pop {r7, pc}
  45573. ...
  45574. 08013710 <UARTEx_SetNbDataToProcess>:
  45575. * the UART configuration registers.
  45576. * @param huart UART handle.
  45577. * @retval None
  45578. */
  45579. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  45580. {
  45581. 8013710: b480 push {r7}
  45582. 8013712: b085 sub sp, #20
  45583. 8013714: af00 add r7, sp, #0
  45584. 8013716: 6078 str r0, [r7, #4]
  45585. uint8_t rx_fifo_threshold;
  45586. uint8_t tx_fifo_threshold;
  45587. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  45588. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  45589. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  45590. 8013718: 687b ldr r3, [r7, #4]
  45591. 801371a: 6e5b ldr r3, [r3, #100] @ 0x64
  45592. 801371c: 2b00 cmp r3, #0
  45593. 801371e: d108 bne.n 8013732 <UARTEx_SetNbDataToProcess+0x22>
  45594. {
  45595. huart->NbTxDataToProcess = 1U;
  45596. 8013720: 687b ldr r3, [r7, #4]
  45597. 8013722: 2201 movs r2, #1
  45598. 8013724: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  45599. huart->NbRxDataToProcess = 1U;
  45600. 8013728: 687b ldr r3, [r7, #4]
  45601. 801372a: 2201 movs r2, #1
  45602. 801372c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  45603. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45604. (uint16_t)denominator[tx_fifo_threshold];
  45605. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45606. (uint16_t)denominator[rx_fifo_threshold];
  45607. }
  45608. }
  45609. 8013730: e031 b.n 8013796 <UARTEx_SetNbDataToProcess+0x86>
  45610. rx_fifo_depth = RX_FIFO_DEPTH;
  45611. 8013732: 2310 movs r3, #16
  45612. 8013734: 73fb strb r3, [r7, #15]
  45613. tx_fifo_depth = TX_FIFO_DEPTH;
  45614. 8013736: 2310 movs r3, #16
  45615. 8013738: 73bb strb r3, [r7, #14]
  45616. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  45617. 801373a: 687b ldr r3, [r7, #4]
  45618. 801373c: 681b ldr r3, [r3, #0]
  45619. 801373e: 689b ldr r3, [r3, #8]
  45620. 8013740: 0e5b lsrs r3, r3, #25
  45621. 8013742: b2db uxtb r3, r3
  45622. 8013744: f003 0307 and.w r3, r3, #7
  45623. 8013748: 737b strb r3, [r7, #13]
  45624. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  45625. 801374a: 687b ldr r3, [r7, #4]
  45626. 801374c: 681b ldr r3, [r3, #0]
  45627. 801374e: 689b ldr r3, [r3, #8]
  45628. 8013750: 0f5b lsrs r3, r3, #29
  45629. 8013752: b2db uxtb r3, r3
  45630. 8013754: f003 0307 and.w r3, r3, #7
  45631. 8013758: 733b strb r3, [r7, #12]
  45632. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45633. 801375a: 7bbb ldrb r3, [r7, #14]
  45634. 801375c: 7b3a ldrb r2, [r7, #12]
  45635. 801375e: 4911 ldr r1, [pc, #68] @ (80137a4 <UARTEx_SetNbDataToProcess+0x94>)
  45636. 8013760: 5c8a ldrb r2, [r1, r2]
  45637. 8013762: fb02 f303 mul.w r3, r2, r3
  45638. (uint16_t)denominator[tx_fifo_threshold];
  45639. 8013766: 7b3a ldrb r2, [r7, #12]
  45640. 8013768: 490f ldr r1, [pc, #60] @ (80137a8 <UARTEx_SetNbDataToProcess+0x98>)
  45641. 801376a: 5c8a ldrb r2, [r1, r2]
  45642. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45643. 801376c: fb93 f3f2 sdiv r3, r3, r2
  45644. 8013770: b29a uxth r2, r3
  45645. 8013772: 687b ldr r3, [r7, #4]
  45646. 8013774: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  45647. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45648. 8013778: 7bfb ldrb r3, [r7, #15]
  45649. 801377a: 7b7a ldrb r2, [r7, #13]
  45650. 801377c: 4909 ldr r1, [pc, #36] @ (80137a4 <UARTEx_SetNbDataToProcess+0x94>)
  45651. 801377e: 5c8a ldrb r2, [r1, r2]
  45652. 8013780: fb02 f303 mul.w r3, r2, r3
  45653. (uint16_t)denominator[rx_fifo_threshold];
  45654. 8013784: 7b7a ldrb r2, [r7, #13]
  45655. 8013786: 4908 ldr r1, [pc, #32] @ (80137a8 <UARTEx_SetNbDataToProcess+0x98>)
  45656. 8013788: 5c8a ldrb r2, [r1, r2]
  45657. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45658. 801378a: fb93 f3f2 sdiv r3, r3, r2
  45659. 801378e: b29a uxth r2, r3
  45660. 8013790: 687b ldr r3, [r7, #4]
  45661. 8013792: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  45662. }
  45663. 8013796: bf00 nop
  45664. 8013798: 3714 adds r7, #20
  45665. 801379a: 46bd mov sp, r7
  45666. 801379c: f85d 7b04 ldr.w r7, [sp], #4
  45667. 80137a0: 4770 bx lr
  45668. 80137a2: bf00 nop
  45669. 80137a4: 08018c48 .word 0x08018c48
  45670. 80137a8: 08018c50 .word 0x08018c50
  45671. 080137ac <__NVIC_SetPriority>:
  45672. {
  45673. 80137ac: b480 push {r7}
  45674. 80137ae: b083 sub sp, #12
  45675. 80137b0: af00 add r7, sp, #0
  45676. 80137b2: 4603 mov r3, r0
  45677. 80137b4: 6039 str r1, [r7, #0]
  45678. 80137b6: 80fb strh r3, [r7, #6]
  45679. if ((int32_t)(IRQn) >= 0)
  45680. 80137b8: f9b7 3006 ldrsh.w r3, [r7, #6]
  45681. 80137bc: 2b00 cmp r3, #0
  45682. 80137be: db0a blt.n 80137d6 <__NVIC_SetPriority+0x2a>
  45683. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45684. 80137c0: 683b ldr r3, [r7, #0]
  45685. 80137c2: b2da uxtb r2, r3
  45686. 80137c4: 490c ldr r1, [pc, #48] @ (80137f8 <__NVIC_SetPriority+0x4c>)
  45687. 80137c6: f9b7 3006 ldrsh.w r3, [r7, #6]
  45688. 80137ca: 0112 lsls r2, r2, #4
  45689. 80137cc: b2d2 uxtb r2, r2
  45690. 80137ce: 440b add r3, r1
  45691. 80137d0: f883 2300 strb.w r2, [r3, #768] @ 0x300
  45692. }
  45693. 80137d4: e00a b.n 80137ec <__NVIC_SetPriority+0x40>
  45694. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45695. 80137d6: 683b ldr r3, [r7, #0]
  45696. 80137d8: b2da uxtb r2, r3
  45697. 80137da: 4908 ldr r1, [pc, #32] @ (80137fc <__NVIC_SetPriority+0x50>)
  45698. 80137dc: 88fb ldrh r3, [r7, #6]
  45699. 80137de: f003 030f and.w r3, r3, #15
  45700. 80137e2: 3b04 subs r3, #4
  45701. 80137e4: 0112 lsls r2, r2, #4
  45702. 80137e6: b2d2 uxtb r2, r2
  45703. 80137e8: 440b add r3, r1
  45704. 80137ea: 761a strb r2, [r3, #24]
  45705. }
  45706. 80137ec: bf00 nop
  45707. 80137ee: 370c adds r7, #12
  45708. 80137f0: 46bd mov sp, r7
  45709. 80137f2: f85d 7b04 ldr.w r7, [sp], #4
  45710. 80137f6: 4770 bx lr
  45711. 80137f8: e000e100 .word 0xe000e100
  45712. 80137fc: e000ed00 .word 0xe000ed00
  45713. 08013800 <SysTick_Handler>:
  45714. /*
  45715. SysTick handler implementation that also clears overflow flag.
  45716. */
  45717. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  45718. void SysTick_Handler (void) {
  45719. 8013800: b580 push {r7, lr}
  45720. 8013802: af00 add r7, sp, #0
  45721. /* Clear overflow flag */
  45722. SysTick->CTRL;
  45723. 8013804: 4b05 ldr r3, [pc, #20] @ (801381c <SysTick_Handler+0x1c>)
  45724. 8013806: 681b ldr r3, [r3, #0]
  45725. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  45726. 8013808: f002 fd1e bl 8016248 <xTaskGetSchedulerState>
  45727. 801380c: 4603 mov r3, r0
  45728. 801380e: 2b01 cmp r3, #1
  45729. 8013810: d001 beq.n 8013816 <SysTick_Handler+0x16>
  45730. /* Call tick handler */
  45731. xPortSysTickHandler();
  45732. 8013812: f003 ff31 bl 8017678 <xPortSysTickHandler>
  45733. }
  45734. }
  45735. 8013816: bf00 nop
  45736. 8013818: bd80 pop {r7, pc}
  45737. 801381a: bf00 nop
  45738. 801381c: e000e010 .word 0xe000e010
  45739. 08013820 <SVC_Setup>:
  45740. #endif /* SysTick */
  45741. /*
  45742. Setup SVC to reset value.
  45743. */
  45744. __STATIC_INLINE void SVC_Setup (void) {
  45745. 8013820: b580 push {r7, lr}
  45746. 8013822: af00 add r7, sp, #0
  45747. #if (__ARM_ARCH_7A__ == 0U)
  45748. /* Service Call interrupt might be configured before kernel start */
  45749. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  45750. /* causes a Hard Fault. */
  45751. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  45752. 8013824: 2100 movs r1, #0
  45753. 8013826: f06f 0004 mvn.w r0, #4
  45754. 801382a: f7ff ffbf bl 80137ac <__NVIC_SetPriority>
  45755. #endif
  45756. }
  45757. 801382e: bf00 nop
  45758. 8013830: bd80 pop {r7, pc}
  45759. ...
  45760. 08013834 <osKernelInitialize>:
  45761. static uint32_t OS_Tick_GetOverflow (void);
  45762. /* Get OS Tick interval */
  45763. static uint32_t OS_Tick_GetInterval (void);
  45764. /*---------------------------------------------------------------------------*/
  45765. osStatus_t osKernelInitialize (void) {
  45766. 8013834: b480 push {r7}
  45767. 8013836: b083 sub sp, #12
  45768. 8013838: af00 add r7, sp, #0
  45769. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45770. 801383a: f3ef 8305 mrs r3, IPSR
  45771. 801383e: 603b str r3, [r7, #0]
  45772. return(result);
  45773. 8013840: 683b ldr r3, [r7, #0]
  45774. osStatus_t stat;
  45775. if (IS_IRQ()) {
  45776. 8013842: 2b00 cmp r3, #0
  45777. 8013844: d003 beq.n 801384e <osKernelInitialize+0x1a>
  45778. stat = osErrorISR;
  45779. 8013846: f06f 0305 mvn.w r3, #5
  45780. 801384a: 607b str r3, [r7, #4]
  45781. 801384c: e00c b.n 8013868 <osKernelInitialize+0x34>
  45782. }
  45783. else {
  45784. if (KernelState == osKernelInactive) {
  45785. 801384e: 4b0a ldr r3, [pc, #40] @ (8013878 <osKernelInitialize+0x44>)
  45786. 8013850: 681b ldr r3, [r3, #0]
  45787. 8013852: 2b00 cmp r3, #0
  45788. 8013854: d105 bne.n 8013862 <osKernelInitialize+0x2e>
  45789. EvrFreeRTOSSetup(0U);
  45790. #endif
  45791. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  45792. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  45793. #endif
  45794. KernelState = osKernelReady;
  45795. 8013856: 4b08 ldr r3, [pc, #32] @ (8013878 <osKernelInitialize+0x44>)
  45796. 8013858: 2201 movs r2, #1
  45797. 801385a: 601a str r2, [r3, #0]
  45798. stat = osOK;
  45799. 801385c: 2300 movs r3, #0
  45800. 801385e: 607b str r3, [r7, #4]
  45801. 8013860: e002 b.n 8013868 <osKernelInitialize+0x34>
  45802. } else {
  45803. stat = osError;
  45804. 8013862: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45805. 8013866: 607b str r3, [r7, #4]
  45806. }
  45807. }
  45808. return (stat);
  45809. 8013868: 687b ldr r3, [r7, #4]
  45810. }
  45811. 801386a: 4618 mov r0, r3
  45812. 801386c: 370c adds r7, #12
  45813. 801386e: 46bd mov sp, r7
  45814. 8013870: f85d 7b04 ldr.w r7, [sp], #4
  45815. 8013874: 4770 bx lr
  45816. 8013876: bf00 nop
  45817. 8013878: 24000d00 .word 0x24000d00
  45818. 0801387c <osKernelStart>:
  45819. }
  45820. return (state);
  45821. }
  45822. osStatus_t osKernelStart (void) {
  45823. 801387c: b580 push {r7, lr}
  45824. 801387e: b082 sub sp, #8
  45825. 8013880: af00 add r7, sp, #0
  45826. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45827. 8013882: f3ef 8305 mrs r3, IPSR
  45828. 8013886: 603b str r3, [r7, #0]
  45829. return(result);
  45830. 8013888: 683b ldr r3, [r7, #0]
  45831. osStatus_t stat;
  45832. if (IS_IRQ()) {
  45833. 801388a: 2b00 cmp r3, #0
  45834. 801388c: d003 beq.n 8013896 <osKernelStart+0x1a>
  45835. stat = osErrorISR;
  45836. 801388e: f06f 0305 mvn.w r3, #5
  45837. 8013892: 607b str r3, [r7, #4]
  45838. 8013894: e010 b.n 80138b8 <osKernelStart+0x3c>
  45839. }
  45840. else {
  45841. if (KernelState == osKernelReady) {
  45842. 8013896: 4b0b ldr r3, [pc, #44] @ (80138c4 <osKernelStart+0x48>)
  45843. 8013898: 681b ldr r3, [r3, #0]
  45844. 801389a: 2b01 cmp r3, #1
  45845. 801389c: d109 bne.n 80138b2 <osKernelStart+0x36>
  45846. /* Ensure SVC priority is at the reset value */
  45847. SVC_Setup();
  45848. 801389e: f7ff ffbf bl 8013820 <SVC_Setup>
  45849. /* Change state to enable IRQ masking check */
  45850. KernelState = osKernelRunning;
  45851. 80138a2: 4b08 ldr r3, [pc, #32] @ (80138c4 <osKernelStart+0x48>)
  45852. 80138a4: 2202 movs r2, #2
  45853. 80138a6: 601a str r2, [r3, #0]
  45854. /* Start the kernel scheduler */
  45855. vTaskStartScheduler();
  45856. 80138a8: f002 f824 bl 80158f4 <vTaskStartScheduler>
  45857. stat = osOK;
  45858. 80138ac: 2300 movs r3, #0
  45859. 80138ae: 607b str r3, [r7, #4]
  45860. 80138b0: e002 b.n 80138b8 <osKernelStart+0x3c>
  45861. } else {
  45862. stat = osError;
  45863. 80138b2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45864. 80138b6: 607b str r3, [r7, #4]
  45865. }
  45866. }
  45867. return (stat);
  45868. 80138b8: 687b ldr r3, [r7, #4]
  45869. }
  45870. 80138ba: 4618 mov r0, r3
  45871. 80138bc: 3708 adds r7, #8
  45872. 80138be: 46bd mov sp, r7
  45873. 80138c0: bd80 pop {r7, pc}
  45874. 80138c2: bf00 nop
  45875. 80138c4: 24000d00 .word 0x24000d00
  45876. 080138c8 <osThreadNew>:
  45877. return (configCPU_CLOCK_HZ);
  45878. }
  45879. /*---------------------------------------------------------------------------*/
  45880. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  45881. 80138c8: b580 push {r7, lr}
  45882. 80138ca: b08e sub sp, #56 @ 0x38
  45883. 80138cc: af04 add r7, sp, #16
  45884. 80138ce: 60f8 str r0, [r7, #12]
  45885. 80138d0: 60b9 str r1, [r7, #8]
  45886. 80138d2: 607a str r2, [r7, #4]
  45887. uint32_t stack;
  45888. TaskHandle_t hTask;
  45889. UBaseType_t prio;
  45890. int32_t mem;
  45891. hTask = NULL;
  45892. 80138d4: 2300 movs r3, #0
  45893. 80138d6: 613b str r3, [r7, #16]
  45894. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45895. 80138d8: f3ef 8305 mrs r3, IPSR
  45896. 80138dc: 617b str r3, [r7, #20]
  45897. return(result);
  45898. 80138de: 697b ldr r3, [r7, #20]
  45899. if (!IS_IRQ() && (func != NULL)) {
  45900. 80138e0: 2b00 cmp r3, #0
  45901. 80138e2: d17f bne.n 80139e4 <osThreadNew+0x11c>
  45902. 80138e4: 68fb ldr r3, [r7, #12]
  45903. 80138e6: 2b00 cmp r3, #0
  45904. 80138e8: d07c beq.n 80139e4 <osThreadNew+0x11c>
  45905. stack = configMINIMAL_STACK_SIZE;
  45906. 80138ea: f44f 7300 mov.w r3, #512 @ 0x200
  45907. 80138ee: 623b str r3, [r7, #32]
  45908. prio = (UBaseType_t)osPriorityNormal;
  45909. 80138f0: 2318 movs r3, #24
  45910. 80138f2: 61fb str r3, [r7, #28]
  45911. name = NULL;
  45912. 80138f4: 2300 movs r3, #0
  45913. 80138f6: 627b str r3, [r7, #36] @ 0x24
  45914. mem = -1;
  45915. 80138f8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45916. 80138fc: 61bb str r3, [r7, #24]
  45917. if (attr != NULL) {
  45918. 80138fe: 687b ldr r3, [r7, #4]
  45919. 8013900: 2b00 cmp r3, #0
  45920. 8013902: d045 beq.n 8013990 <osThreadNew+0xc8>
  45921. if (attr->name != NULL) {
  45922. 8013904: 687b ldr r3, [r7, #4]
  45923. 8013906: 681b ldr r3, [r3, #0]
  45924. 8013908: 2b00 cmp r3, #0
  45925. 801390a: d002 beq.n 8013912 <osThreadNew+0x4a>
  45926. name = attr->name;
  45927. 801390c: 687b ldr r3, [r7, #4]
  45928. 801390e: 681b ldr r3, [r3, #0]
  45929. 8013910: 627b str r3, [r7, #36] @ 0x24
  45930. }
  45931. if (attr->priority != osPriorityNone) {
  45932. 8013912: 687b ldr r3, [r7, #4]
  45933. 8013914: 699b ldr r3, [r3, #24]
  45934. 8013916: 2b00 cmp r3, #0
  45935. 8013918: d002 beq.n 8013920 <osThreadNew+0x58>
  45936. prio = (UBaseType_t)attr->priority;
  45937. 801391a: 687b ldr r3, [r7, #4]
  45938. 801391c: 699b ldr r3, [r3, #24]
  45939. 801391e: 61fb str r3, [r7, #28]
  45940. }
  45941. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  45942. 8013920: 69fb ldr r3, [r7, #28]
  45943. 8013922: 2b00 cmp r3, #0
  45944. 8013924: d008 beq.n 8013938 <osThreadNew+0x70>
  45945. 8013926: 69fb ldr r3, [r7, #28]
  45946. 8013928: 2b38 cmp r3, #56 @ 0x38
  45947. 801392a: d805 bhi.n 8013938 <osThreadNew+0x70>
  45948. 801392c: 687b ldr r3, [r7, #4]
  45949. 801392e: 685b ldr r3, [r3, #4]
  45950. 8013930: f003 0301 and.w r3, r3, #1
  45951. 8013934: 2b00 cmp r3, #0
  45952. 8013936: d001 beq.n 801393c <osThreadNew+0x74>
  45953. return (NULL);
  45954. 8013938: 2300 movs r3, #0
  45955. 801393a: e054 b.n 80139e6 <osThreadNew+0x11e>
  45956. }
  45957. if (attr->stack_size > 0U) {
  45958. 801393c: 687b ldr r3, [r7, #4]
  45959. 801393e: 695b ldr r3, [r3, #20]
  45960. 8013940: 2b00 cmp r3, #0
  45961. 8013942: d003 beq.n 801394c <osThreadNew+0x84>
  45962. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  45963. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  45964. stack = attr->stack_size / sizeof(StackType_t);
  45965. 8013944: 687b ldr r3, [r7, #4]
  45966. 8013946: 695b ldr r3, [r3, #20]
  45967. 8013948: 089b lsrs r3, r3, #2
  45968. 801394a: 623b str r3, [r7, #32]
  45969. }
  45970. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45971. 801394c: 687b ldr r3, [r7, #4]
  45972. 801394e: 689b ldr r3, [r3, #8]
  45973. 8013950: 2b00 cmp r3, #0
  45974. 8013952: d00e beq.n 8013972 <osThreadNew+0xaa>
  45975. 8013954: 687b ldr r3, [r7, #4]
  45976. 8013956: 68db ldr r3, [r3, #12]
  45977. 8013958: 2ba7 cmp r3, #167 @ 0xa7
  45978. 801395a: d90a bls.n 8013972 <osThreadNew+0xaa>
  45979. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45980. 801395c: 687b ldr r3, [r7, #4]
  45981. 801395e: 691b ldr r3, [r3, #16]
  45982. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45983. 8013960: 2b00 cmp r3, #0
  45984. 8013962: d006 beq.n 8013972 <osThreadNew+0xaa>
  45985. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45986. 8013964: 687b ldr r3, [r7, #4]
  45987. 8013966: 695b ldr r3, [r3, #20]
  45988. 8013968: 2b00 cmp r3, #0
  45989. 801396a: d002 beq.n 8013972 <osThreadNew+0xaa>
  45990. mem = 1;
  45991. 801396c: 2301 movs r3, #1
  45992. 801396e: 61bb str r3, [r7, #24]
  45993. 8013970: e010 b.n 8013994 <osThreadNew+0xcc>
  45994. }
  45995. else {
  45996. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  45997. 8013972: 687b ldr r3, [r7, #4]
  45998. 8013974: 689b ldr r3, [r3, #8]
  45999. 8013976: 2b00 cmp r3, #0
  46000. 8013978: d10c bne.n 8013994 <osThreadNew+0xcc>
  46001. 801397a: 687b ldr r3, [r7, #4]
  46002. 801397c: 68db ldr r3, [r3, #12]
  46003. 801397e: 2b00 cmp r3, #0
  46004. 8013980: d108 bne.n 8013994 <osThreadNew+0xcc>
  46005. 8013982: 687b ldr r3, [r7, #4]
  46006. 8013984: 691b ldr r3, [r3, #16]
  46007. 8013986: 2b00 cmp r3, #0
  46008. 8013988: d104 bne.n 8013994 <osThreadNew+0xcc>
  46009. mem = 0;
  46010. 801398a: 2300 movs r3, #0
  46011. 801398c: 61bb str r3, [r7, #24]
  46012. 801398e: e001 b.n 8013994 <osThreadNew+0xcc>
  46013. }
  46014. }
  46015. }
  46016. else {
  46017. mem = 0;
  46018. 8013990: 2300 movs r3, #0
  46019. 8013992: 61bb str r3, [r7, #24]
  46020. }
  46021. if (mem == 1) {
  46022. 8013994: 69bb ldr r3, [r7, #24]
  46023. 8013996: 2b01 cmp r3, #1
  46024. 8013998: d110 bne.n 80139bc <osThreadNew+0xf4>
  46025. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46026. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46027. 801399a: 687b ldr r3, [r7, #4]
  46028. 801399c: 691b ldr r3, [r3, #16]
  46029. (StaticTask_t *)attr->cb_mem);
  46030. 801399e: 687a ldr r2, [r7, #4]
  46031. 80139a0: 6892 ldr r2, [r2, #8]
  46032. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46033. 80139a2: 9202 str r2, [sp, #8]
  46034. 80139a4: 9301 str r3, [sp, #4]
  46035. 80139a6: 69fb ldr r3, [r7, #28]
  46036. 80139a8: 9300 str r3, [sp, #0]
  46037. 80139aa: 68bb ldr r3, [r7, #8]
  46038. 80139ac: 6a3a ldr r2, [r7, #32]
  46039. 80139ae: 6a79 ldr r1, [r7, #36] @ 0x24
  46040. 80139b0: 68f8 ldr r0, [r7, #12]
  46041. 80139b2: f001 fdac bl 801550e <xTaskCreateStatic>
  46042. 80139b6: 4603 mov r3, r0
  46043. 80139b8: 613b str r3, [r7, #16]
  46044. 80139ba: e013 b.n 80139e4 <osThreadNew+0x11c>
  46045. #endif
  46046. }
  46047. else {
  46048. if (mem == 0) {
  46049. 80139bc: 69bb ldr r3, [r7, #24]
  46050. 80139be: 2b00 cmp r3, #0
  46051. 80139c0: d110 bne.n 80139e4 <osThreadNew+0x11c>
  46052. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46053. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  46054. 80139c2: 6a3b ldr r3, [r7, #32]
  46055. 80139c4: b29a uxth r2, r3
  46056. 80139c6: f107 0310 add.w r3, r7, #16
  46057. 80139ca: 9301 str r3, [sp, #4]
  46058. 80139cc: 69fb ldr r3, [r7, #28]
  46059. 80139ce: 9300 str r3, [sp, #0]
  46060. 80139d0: 68bb ldr r3, [r7, #8]
  46061. 80139d2: 6a79 ldr r1, [r7, #36] @ 0x24
  46062. 80139d4: 68f8 ldr r0, [r7, #12]
  46063. 80139d6: f001 fdfa bl 80155ce <xTaskCreate>
  46064. 80139da: 4603 mov r3, r0
  46065. 80139dc: 2b01 cmp r3, #1
  46066. 80139de: d001 beq.n 80139e4 <osThreadNew+0x11c>
  46067. hTask = NULL;
  46068. 80139e0: 2300 movs r3, #0
  46069. 80139e2: 613b str r3, [r7, #16]
  46070. #endif
  46071. }
  46072. }
  46073. }
  46074. return ((osThreadId_t)hTask);
  46075. 80139e4: 693b ldr r3, [r7, #16]
  46076. }
  46077. 80139e6: 4618 mov r0, r3
  46078. 80139e8: 3728 adds r7, #40 @ 0x28
  46079. 80139ea: 46bd mov sp, r7
  46080. 80139ec: bd80 pop {r7, pc}
  46081. 080139ee <osDelay>:
  46082. /* Return flags before clearing */
  46083. return (rflags);
  46084. }
  46085. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  46086. osStatus_t osDelay (uint32_t ticks) {
  46087. 80139ee: b580 push {r7, lr}
  46088. 80139f0: b084 sub sp, #16
  46089. 80139f2: af00 add r7, sp, #0
  46090. 80139f4: 6078 str r0, [r7, #4]
  46091. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46092. 80139f6: f3ef 8305 mrs r3, IPSR
  46093. 80139fa: 60bb str r3, [r7, #8]
  46094. return(result);
  46095. 80139fc: 68bb ldr r3, [r7, #8]
  46096. osStatus_t stat;
  46097. if (IS_IRQ()) {
  46098. 80139fe: 2b00 cmp r3, #0
  46099. 8013a00: d003 beq.n 8013a0a <osDelay+0x1c>
  46100. stat = osErrorISR;
  46101. 8013a02: f06f 0305 mvn.w r3, #5
  46102. 8013a06: 60fb str r3, [r7, #12]
  46103. 8013a08: e007 b.n 8013a1a <osDelay+0x2c>
  46104. }
  46105. else {
  46106. stat = osOK;
  46107. 8013a0a: 2300 movs r3, #0
  46108. 8013a0c: 60fb str r3, [r7, #12]
  46109. if (ticks != 0U) {
  46110. 8013a0e: 687b ldr r3, [r7, #4]
  46111. 8013a10: 2b00 cmp r3, #0
  46112. 8013a12: d002 beq.n 8013a1a <osDelay+0x2c>
  46113. vTaskDelay(ticks);
  46114. 8013a14: 6878 ldr r0, [r7, #4]
  46115. 8013a16: f001 ff37 bl 8015888 <vTaskDelay>
  46116. }
  46117. }
  46118. return (stat);
  46119. 8013a1a: 68fb ldr r3, [r7, #12]
  46120. }
  46121. 8013a1c: 4618 mov r0, r3
  46122. 8013a1e: 3710 adds r7, #16
  46123. 8013a20: 46bd mov sp, r7
  46124. 8013a22: bd80 pop {r7, pc}
  46125. 08013a24 <TimerCallback>:
  46126. }
  46127. /*---------------------------------------------------------------------------*/
  46128. #if (configUSE_OS2_TIMER == 1)
  46129. static void TimerCallback (TimerHandle_t hTimer) {
  46130. 8013a24: b580 push {r7, lr}
  46131. 8013a26: b084 sub sp, #16
  46132. 8013a28: af00 add r7, sp, #0
  46133. 8013a2a: 6078 str r0, [r7, #4]
  46134. TimerCallback_t *callb;
  46135. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  46136. 8013a2c: 6878 ldr r0, [r7, #4]
  46137. 8013a2e: f003 fc3d bl 80172ac <pvTimerGetTimerID>
  46138. 8013a32: 60f8 str r0, [r7, #12]
  46139. if (callb != NULL) {
  46140. 8013a34: 68fb ldr r3, [r7, #12]
  46141. 8013a36: 2b00 cmp r3, #0
  46142. 8013a38: d005 beq.n 8013a46 <TimerCallback+0x22>
  46143. callb->func (callb->arg);
  46144. 8013a3a: 68fb ldr r3, [r7, #12]
  46145. 8013a3c: 681b ldr r3, [r3, #0]
  46146. 8013a3e: 68fa ldr r2, [r7, #12]
  46147. 8013a40: 6852 ldr r2, [r2, #4]
  46148. 8013a42: 4610 mov r0, r2
  46149. 8013a44: 4798 blx r3
  46150. }
  46151. }
  46152. 8013a46: bf00 nop
  46153. 8013a48: 3710 adds r7, #16
  46154. 8013a4a: 46bd mov sp, r7
  46155. 8013a4c: bd80 pop {r7, pc}
  46156. ...
  46157. 08013a50 <osTimerNew>:
  46158. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  46159. 8013a50: b580 push {r7, lr}
  46160. 8013a52: b08c sub sp, #48 @ 0x30
  46161. 8013a54: af02 add r7, sp, #8
  46162. 8013a56: 60f8 str r0, [r7, #12]
  46163. 8013a58: 607a str r2, [r7, #4]
  46164. 8013a5a: 603b str r3, [r7, #0]
  46165. 8013a5c: 460b mov r3, r1
  46166. 8013a5e: 72fb strb r3, [r7, #11]
  46167. TimerHandle_t hTimer;
  46168. TimerCallback_t *callb;
  46169. UBaseType_t reload;
  46170. int32_t mem;
  46171. hTimer = NULL;
  46172. 8013a60: 2300 movs r3, #0
  46173. 8013a62: 623b str r3, [r7, #32]
  46174. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46175. 8013a64: f3ef 8305 mrs r3, IPSR
  46176. 8013a68: 613b str r3, [r7, #16]
  46177. return(result);
  46178. 8013a6a: 693b ldr r3, [r7, #16]
  46179. if (!IS_IRQ() && (func != NULL)) {
  46180. 8013a6c: 2b00 cmp r3, #0
  46181. 8013a6e: d163 bne.n 8013b38 <osTimerNew+0xe8>
  46182. 8013a70: 68fb ldr r3, [r7, #12]
  46183. 8013a72: 2b00 cmp r3, #0
  46184. 8013a74: d060 beq.n 8013b38 <osTimerNew+0xe8>
  46185. /* Allocate memory to store callback function and argument */
  46186. callb = pvPortMalloc (sizeof(TimerCallback_t));
  46187. 8013a76: 2008 movs r0, #8
  46188. 8013a78: f003 fe90 bl 801779c <pvPortMalloc>
  46189. 8013a7c: 6178 str r0, [r7, #20]
  46190. if (callb != NULL) {
  46191. 8013a7e: 697b ldr r3, [r7, #20]
  46192. 8013a80: 2b00 cmp r3, #0
  46193. 8013a82: d059 beq.n 8013b38 <osTimerNew+0xe8>
  46194. callb->func = func;
  46195. 8013a84: 697b ldr r3, [r7, #20]
  46196. 8013a86: 68fa ldr r2, [r7, #12]
  46197. 8013a88: 601a str r2, [r3, #0]
  46198. callb->arg = argument;
  46199. 8013a8a: 697b ldr r3, [r7, #20]
  46200. 8013a8c: 687a ldr r2, [r7, #4]
  46201. 8013a8e: 605a str r2, [r3, #4]
  46202. if (type == osTimerOnce) {
  46203. 8013a90: 7afb ldrb r3, [r7, #11]
  46204. 8013a92: 2b00 cmp r3, #0
  46205. 8013a94: d102 bne.n 8013a9c <osTimerNew+0x4c>
  46206. reload = pdFALSE;
  46207. 8013a96: 2300 movs r3, #0
  46208. 8013a98: 61fb str r3, [r7, #28]
  46209. 8013a9a: e001 b.n 8013aa0 <osTimerNew+0x50>
  46210. } else {
  46211. reload = pdTRUE;
  46212. 8013a9c: 2301 movs r3, #1
  46213. 8013a9e: 61fb str r3, [r7, #28]
  46214. }
  46215. mem = -1;
  46216. 8013aa0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46217. 8013aa4: 61bb str r3, [r7, #24]
  46218. name = NULL;
  46219. 8013aa6: 2300 movs r3, #0
  46220. 8013aa8: 627b str r3, [r7, #36] @ 0x24
  46221. if (attr != NULL) {
  46222. 8013aaa: 683b ldr r3, [r7, #0]
  46223. 8013aac: 2b00 cmp r3, #0
  46224. 8013aae: d01c beq.n 8013aea <osTimerNew+0x9a>
  46225. if (attr->name != NULL) {
  46226. 8013ab0: 683b ldr r3, [r7, #0]
  46227. 8013ab2: 681b ldr r3, [r3, #0]
  46228. 8013ab4: 2b00 cmp r3, #0
  46229. 8013ab6: d002 beq.n 8013abe <osTimerNew+0x6e>
  46230. name = attr->name;
  46231. 8013ab8: 683b ldr r3, [r7, #0]
  46232. 8013aba: 681b ldr r3, [r3, #0]
  46233. 8013abc: 627b str r3, [r7, #36] @ 0x24
  46234. }
  46235. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  46236. 8013abe: 683b ldr r3, [r7, #0]
  46237. 8013ac0: 689b ldr r3, [r3, #8]
  46238. 8013ac2: 2b00 cmp r3, #0
  46239. 8013ac4: d006 beq.n 8013ad4 <osTimerNew+0x84>
  46240. 8013ac6: 683b ldr r3, [r7, #0]
  46241. 8013ac8: 68db ldr r3, [r3, #12]
  46242. 8013aca: 2b2b cmp r3, #43 @ 0x2b
  46243. 8013acc: d902 bls.n 8013ad4 <osTimerNew+0x84>
  46244. mem = 1;
  46245. 8013ace: 2301 movs r3, #1
  46246. 8013ad0: 61bb str r3, [r7, #24]
  46247. 8013ad2: e00c b.n 8013aee <osTimerNew+0x9e>
  46248. }
  46249. else {
  46250. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  46251. 8013ad4: 683b ldr r3, [r7, #0]
  46252. 8013ad6: 689b ldr r3, [r3, #8]
  46253. 8013ad8: 2b00 cmp r3, #0
  46254. 8013ada: d108 bne.n 8013aee <osTimerNew+0x9e>
  46255. 8013adc: 683b ldr r3, [r7, #0]
  46256. 8013ade: 68db ldr r3, [r3, #12]
  46257. 8013ae0: 2b00 cmp r3, #0
  46258. 8013ae2: d104 bne.n 8013aee <osTimerNew+0x9e>
  46259. mem = 0;
  46260. 8013ae4: 2300 movs r3, #0
  46261. 8013ae6: 61bb str r3, [r7, #24]
  46262. 8013ae8: e001 b.n 8013aee <osTimerNew+0x9e>
  46263. }
  46264. }
  46265. }
  46266. else {
  46267. mem = 0;
  46268. 8013aea: 2300 movs r3, #0
  46269. 8013aec: 61bb str r3, [r7, #24]
  46270. }
  46271. if (mem == 1) {
  46272. 8013aee: 69bb ldr r3, [r7, #24]
  46273. 8013af0: 2b01 cmp r3, #1
  46274. 8013af2: d10c bne.n 8013b0e <osTimerNew+0xbe>
  46275. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46276. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  46277. 8013af4: 683b ldr r3, [r7, #0]
  46278. 8013af6: 689b ldr r3, [r3, #8]
  46279. 8013af8: 9301 str r3, [sp, #4]
  46280. 8013afa: 4b12 ldr r3, [pc, #72] @ (8013b44 <osTimerNew+0xf4>)
  46281. 8013afc: 9300 str r3, [sp, #0]
  46282. 8013afe: 697b ldr r3, [r7, #20]
  46283. 8013b00: 69fa ldr r2, [r7, #28]
  46284. 8013b02: 2101 movs r1, #1
  46285. 8013b04: 6a78 ldr r0, [r7, #36] @ 0x24
  46286. 8013b06: f003 f81a bl 8016b3e <xTimerCreateStatic>
  46287. 8013b0a: 6238 str r0, [r7, #32]
  46288. 8013b0c: e00b b.n 8013b26 <osTimerNew+0xd6>
  46289. #endif
  46290. }
  46291. else {
  46292. if (mem == 0) {
  46293. 8013b0e: 69bb ldr r3, [r7, #24]
  46294. 8013b10: 2b00 cmp r3, #0
  46295. 8013b12: d108 bne.n 8013b26 <osTimerNew+0xd6>
  46296. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46297. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  46298. 8013b14: 4b0b ldr r3, [pc, #44] @ (8013b44 <osTimerNew+0xf4>)
  46299. 8013b16: 9300 str r3, [sp, #0]
  46300. 8013b18: 697b ldr r3, [r7, #20]
  46301. 8013b1a: 69fa ldr r2, [r7, #28]
  46302. 8013b1c: 2101 movs r1, #1
  46303. 8013b1e: 6a78 ldr r0, [r7, #36] @ 0x24
  46304. 8013b20: f002 ffec bl 8016afc <xTimerCreate>
  46305. 8013b24: 6238 str r0, [r7, #32]
  46306. #endif
  46307. }
  46308. }
  46309. if ((hTimer == NULL) && (callb != NULL)) {
  46310. 8013b26: 6a3b ldr r3, [r7, #32]
  46311. 8013b28: 2b00 cmp r3, #0
  46312. 8013b2a: d105 bne.n 8013b38 <osTimerNew+0xe8>
  46313. 8013b2c: 697b ldr r3, [r7, #20]
  46314. 8013b2e: 2b00 cmp r3, #0
  46315. 8013b30: d002 beq.n 8013b38 <osTimerNew+0xe8>
  46316. vPortFree (callb);
  46317. 8013b32: 6978 ldr r0, [r7, #20]
  46318. 8013b34: f003 ff00 bl 8017938 <vPortFree>
  46319. }
  46320. }
  46321. }
  46322. return ((osTimerId_t)hTimer);
  46323. 8013b38: 6a3b ldr r3, [r7, #32]
  46324. }
  46325. 8013b3a: 4618 mov r0, r3
  46326. 8013b3c: 3728 adds r7, #40 @ 0x28
  46327. 8013b3e: 46bd mov sp, r7
  46328. 8013b40: bd80 pop {r7, pc}
  46329. 8013b42: bf00 nop
  46330. 8013b44: 08013a25 .word 0x08013a25
  46331. 08013b48 <osTimerStart>:
  46332. }
  46333. return (p);
  46334. }
  46335. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  46336. 8013b48: b580 push {r7, lr}
  46337. 8013b4a: b088 sub sp, #32
  46338. 8013b4c: af02 add r7, sp, #8
  46339. 8013b4e: 6078 str r0, [r7, #4]
  46340. 8013b50: 6039 str r1, [r7, #0]
  46341. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  46342. 8013b52: 687b ldr r3, [r7, #4]
  46343. 8013b54: 613b str r3, [r7, #16]
  46344. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46345. 8013b56: f3ef 8305 mrs r3, IPSR
  46346. 8013b5a: 60fb str r3, [r7, #12]
  46347. return(result);
  46348. 8013b5c: 68fb ldr r3, [r7, #12]
  46349. osStatus_t stat;
  46350. if (IS_IRQ()) {
  46351. 8013b5e: 2b00 cmp r3, #0
  46352. 8013b60: d003 beq.n 8013b6a <osTimerStart+0x22>
  46353. stat = osErrorISR;
  46354. 8013b62: f06f 0305 mvn.w r3, #5
  46355. 8013b66: 617b str r3, [r7, #20]
  46356. 8013b68: e017 b.n 8013b9a <osTimerStart+0x52>
  46357. }
  46358. else if (hTimer == NULL) {
  46359. 8013b6a: 693b ldr r3, [r7, #16]
  46360. 8013b6c: 2b00 cmp r3, #0
  46361. 8013b6e: d103 bne.n 8013b78 <osTimerStart+0x30>
  46362. stat = osErrorParameter;
  46363. 8013b70: f06f 0303 mvn.w r3, #3
  46364. 8013b74: 617b str r3, [r7, #20]
  46365. 8013b76: e010 b.n 8013b9a <osTimerStart+0x52>
  46366. }
  46367. else {
  46368. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  46369. 8013b78: 2300 movs r3, #0
  46370. 8013b7a: 9300 str r3, [sp, #0]
  46371. 8013b7c: 2300 movs r3, #0
  46372. 8013b7e: 683a ldr r2, [r7, #0]
  46373. 8013b80: 2104 movs r1, #4
  46374. 8013b82: 6938 ldr r0, [r7, #16]
  46375. 8013b84: f003 f858 bl 8016c38 <xTimerGenericCommand>
  46376. 8013b88: 4603 mov r3, r0
  46377. 8013b8a: 2b01 cmp r3, #1
  46378. 8013b8c: d102 bne.n 8013b94 <osTimerStart+0x4c>
  46379. stat = osOK;
  46380. 8013b8e: 2300 movs r3, #0
  46381. 8013b90: 617b str r3, [r7, #20]
  46382. 8013b92: e002 b.n 8013b9a <osTimerStart+0x52>
  46383. } else {
  46384. stat = osErrorResource;
  46385. 8013b94: f06f 0302 mvn.w r3, #2
  46386. 8013b98: 617b str r3, [r7, #20]
  46387. }
  46388. }
  46389. return (stat);
  46390. 8013b9a: 697b ldr r3, [r7, #20]
  46391. }
  46392. 8013b9c: 4618 mov r0, r3
  46393. 8013b9e: 3718 adds r7, #24
  46394. 8013ba0: 46bd mov sp, r7
  46395. 8013ba2: bd80 pop {r7, pc}
  46396. 08013ba4 <osTimerStop>:
  46397. osStatus_t osTimerStop (osTimerId_t timer_id) {
  46398. 8013ba4: b580 push {r7, lr}
  46399. 8013ba6: b088 sub sp, #32
  46400. 8013ba8: af02 add r7, sp, #8
  46401. 8013baa: 6078 str r0, [r7, #4]
  46402. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  46403. 8013bac: 687b ldr r3, [r7, #4]
  46404. 8013bae: 613b str r3, [r7, #16]
  46405. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46406. 8013bb0: f3ef 8305 mrs r3, IPSR
  46407. 8013bb4: 60fb str r3, [r7, #12]
  46408. return(result);
  46409. 8013bb6: 68fb ldr r3, [r7, #12]
  46410. osStatus_t stat;
  46411. if (IS_IRQ()) {
  46412. 8013bb8: 2b00 cmp r3, #0
  46413. 8013bba: d003 beq.n 8013bc4 <osTimerStop+0x20>
  46414. stat = osErrorISR;
  46415. 8013bbc: f06f 0305 mvn.w r3, #5
  46416. 8013bc0: 617b str r3, [r7, #20]
  46417. 8013bc2: e021 b.n 8013c08 <osTimerStop+0x64>
  46418. }
  46419. else if (hTimer == NULL) {
  46420. 8013bc4: 693b ldr r3, [r7, #16]
  46421. 8013bc6: 2b00 cmp r3, #0
  46422. 8013bc8: d103 bne.n 8013bd2 <osTimerStop+0x2e>
  46423. stat = osErrorParameter;
  46424. 8013bca: f06f 0303 mvn.w r3, #3
  46425. 8013bce: 617b str r3, [r7, #20]
  46426. 8013bd0: e01a b.n 8013c08 <osTimerStop+0x64>
  46427. }
  46428. else {
  46429. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  46430. 8013bd2: 6938 ldr r0, [r7, #16]
  46431. 8013bd4: f003 fb40 bl 8017258 <xTimerIsTimerActive>
  46432. 8013bd8: 4603 mov r3, r0
  46433. 8013bda: 2b00 cmp r3, #0
  46434. 8013bdc: d103 bne.n 8013be6 <osTimerStop+0x42>
  46435. stat = osErrorResource;
  46436. 8013bde: f06f 0302 mvn.w r3, #2
  46437. 8013be2: 617b str r3, [r7, #20]
  46438. 8013be4: e010 b.n 8013c08 <osTimerStop+0x64>
  46439. }
  46440. else {
  46441. if (xTimerStop (hTimer, 0) == pdPASS) {
  46442. 8013be6: 2300 movs r3, #0
  46443. 8013be8: 9300 str r3, [sp, #0]
  46444. 8013bea: 2300 movs r3, #0
  46445. 8013bec: 2200 movs r2, #0
  46446. 8013bee: 2103 movs r1, #3
  46447. 8013bf0: 6938 ldr r0, [r7, #16]
  46448. 8013bf2: f003 f821 bl 8016c38 <xTimerGenericCommand>
  46449. 8013bf6: 4603 mov r3, r0
  46450. 8013bf8: 2b01 cmp r3, #1
  46451. 8013bfa: d102 bne.n 8013c02 <osTimerStop+0x5e>
  46452. stat = osOK;
  46453. 8013bfc: 2300 movs r3, #0
  46454. 8013bfe: 617b str r3, [r7, #20]
  46455. 8013c00: e002 b.n 8013c08 <osTimerStop+0x64>
  46456. } else {
  46457. stat = osError;
  46458. 8013c02: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46459. 8013c06: 617b str r3, [r7, #20]
  46460. }
  46461. }
  46462. }
  46463. return (stat);
  46464. 8013c08: 697b ldr r3, [r7, #20]
  46465. }
  46466. 8013c0a: 4618 mov r0, r3
  46467. 8013c0c: 3718 adds r7, #24
  46468. 8013c0e: 46bd mov sp, r7
  46469. 8013c10: bd80 pop {r7, pc}
  46470. 08013c12 <osMutexNew>:
  46471. }
  46472. /*---------------------------------------------------------------------------*/
  46473. #if (configUSE_OS2_MUTEX == 1)
  46474. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  46475. 8013c12: b580 push {r7, lr}
  46476. 8013c14: b088 sub sp, #32
  46477. 8013c16: af00 add r7, sp, #0
  46478. 8013c18: 6078 str r0, [r7, #4]
  46479. int32_t mem;
  46480. #if (configQUEUE_REGISTRY_SIZE > 0)
  46481. const char *name;
  46482. #endif
  46483. hMutex = NULL;
  46484. 8013c1a: 2300 movs r3, #0
  46485. 8013c1c: 61fb str r3, [r7, #28]
  46486. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46487. 8013c1e: f3ef 8305 mrs r3, IPSR
  46488. 8013c22: 60bb str r3, [r7, #8]
  46489. return(result);
  46490. 8013c24: 68bb ldr r3, [r7, #8]
  46491. if (!IS_IRQ()) {
  46492. 8013c26: 2b00 cmp r3, #0
  46493. 8013c28: d174 bne.n 8013d14 <osMutexNew+0x102>
  46494. if (attr != NULL) {
  46495. 8013c2a: 687b ldr r3, [r7, #4]
  46496. 8013c2c: 2b00 cmp r3, #0
  46497. 8013c2e: d003 beq.n 8013c38 <osMutexNew+0x26>
  46498. type = attr->attr_bits;
  46499. 8013c30: 687b ldr r3, [r7, #4]
  46500. 8013c32: 685b ldr r3, [r3, #4]
  46501. 8013c34: 61bb str r3, [r7, #24]
  46502. 8013c36: e001 b.n 8013c3c <osMutexNew+0x2a>
  46503. } else {
  46504. type = 0U;
  46505. 8013c38: 2300 movs r3, #0
  46506. 8013c3a: 61bb str r3, [r7, #24]
  46507. }
  46508. if ((type & osMutexRecursive) == osMutexRecursive) {
  46509. 8013c3c: 69bb ldr r3, [r7, #24]
  46510. 8013c3e: f003 0301 and.w r3, r3, #1
  46511. 8013c42: 2b00 cmp r3, #0
  46512. 8013c44: d002 beq.n 8013c4c <osMutexNew+0x3a>
  46513. rmtx = 1U;
  46514. 8013c46: 2301 movs r3, #1
  46515. 8013c48: 617b str r3, [r7, #20]
  46516. 8013c4a: e001 b.n 8013c50 <osMutexNew+0x3e>
  46517. } else {
  46518. rmtx = 0U;
  46519. 8013c4c: 2300 movs r3, #0
  46520. 8013c4e: 617b str r3, [r7, #20]
  46521. }
  46522. if ((type & osMutexRobust) != osMutexRobust) {
  46523. 8013c50: 69bb ldr r3, [r7, #24]
  46524. 8013c52: f003 0308 and.w r3, r3, #8
  46525. 8013c56: 2b00 cmp r3, #0
  46526. 8013c58: d15c bne.n 8013d14 <osMutexNew+0x102>
  46527. mem = -1;
  46528. 8013c5a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46529. 8013c5e: 613b str r3, [r7, #16]
  46530. if (attr != NULL) {
  46531. 8013c60: 687b ldr r3, [r7, #4]
  46532. 8013c62: 2b00 cmp r3, #0
  46533. 8013c64: d015 beq.n 8013c92 <osMutexNew+0x80>
  46534. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  46535. 8013c66: 687b ldr r3, [r7, #4]
  46536. 8013c68: 689b ldr r3, [r3, #8]
  46537. 8013c6a: 2b00 cmp r3, #0
  46538. 8013c6c: d006 beq.n 8013c7c <osMutexNew+0x6a>
  46539. 8013c6e: 687b ldr r3, [r7, #4]
  46540. 8013c70: 68db ldr r3, [r3, #12]
  46541. 8013c72: 2b4f cmp r3, #79 @ 0x4f
  46542. 8013c74: d902 bls.n 8013c7c <osMutexNew+0x6a>
  46543. mem = 1;
  46544. 8013c76: 2301 movs r3, #1
  46545. 8013c78: 613b str r3, [r7, #16]
  46546. 8013c7a: e00c b.n 8013c96 <osMutexNew+0x84>
  46547. }
  46548. else {
  46549. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  46550. 8013c7c: 687b ldr r3, [r7, #4]
  46551. 8013c7e: 689b ldr r3, [r3, #8]
  46552. 8013c80: 2b00 cmp r3, #0
  46553. 8013c82: d108 bne.n 8013c96 <osMutexNew+0x84>
  46554. 8013c84: 687b ldr r3, [r7, #4]
  46555. 8013c86: 68db ldr r3, [r3, #12]
  46556. 8013c88: 2b00 cmp r3, #0
  46557. 8013c8a: d104 bne.n 8013c96 <osMutexNew+0x84>
  46558. mem = 0;
  46559. 8013c8c: 2300 movs r3, #0
  46560. 8013c8e: 613b str r3, [r7, #16]
  46561. 8013c90: e001 b.n 8013c96 <osMutexNew+0x84>
  46562. }
  46563. }
  46564. }
  46565. else {
  46566. mem = 0;
  46567. 8013c92: 2300 movs r3, #0
  46568. 8013c94: 613b str r3, [r7, #16]
  46569. }
  46570. if (mem == 1) {
  46571. 8013c96: 693b ldr r3, [r7, #16]
  46572. 8013c98: 2b01 cmp r3, #1
  46573. 8013c9a: d112 bne.n 8013cc2 <osMutexNew+0xb0>
  46574. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46575. if (rmtx != 0U) {
  46576. 8013c9c: 697b ldr r3, [r7, #20]
  46577. 8013c9e: 2b00 cmp r3, #0
  46578. 8013ca0: d007 beq.n 8013cb2 <osMutexNew+0xa0>
  46579. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46580. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  46581. 8013ca2: 687b ldr r3, [r7, #4]
  46582. 8013ca4: 689b ldr r3, [r3, #8]
  46583. 8013ca6: 4619 mov r1, r3
  46584. 8013ca8: 2004 movs r0, #4
  46585. 8013caa: f000 fc50 bl 801454e <xQueueCreateMutexStatic>
  46586. 8013cae: 61f8 str r0, [r7, #28]
  46587. 8013cb0: e016 b.n 8013ce0 <osMutexNew+0xce>
  46588. #endif
  46589. }
  46590. else {
  46591. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  46592. 8013cb2: 687b ldr r3, [r7, #4]
  46593. 8013cb4: 689b ldr r3, [r3, #8]
  46594. 8013cb6: 4619 mov r1, r3
  46595. 8013cb8: 2001 movs r0, #1
  46596. 8013cba: f000 fc48 bl 801454e <xQueueCreateMutexStatic>
  46597. 8013cbe: 61f8 str r0, [r7, #28]
  46598. 8013cc0: e00e b.n 8013ce0 <osMutexNew+0xce>
  46599. }
  46600. #endif
  46601. }
  46602. else {
  46603. if (mem == 0) {
  46604. 8013cc2: 693b ldr r3, [r7, #16]
  46605. 8013cc4: 2b00 cmp r3, #0
  46606. 8013cc6: d10b bne.n 8013ce0 <osMutexNew+0xce>
  46607. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46608. if (rmtx != 0U) {
  46609. 8013cc8: 697b ldr r3, [r7, #20]
  46610. 8013cca: 2b00 cmp r3, #0
  46611. 8013ccc: d004 beq.n 8013cd8 <osMutexNew+0xc6>
  46612. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46613. hMutex = xSemaphoreCreateRecursiveMutex ();
  46614. 8013cce: 2004 movs r0, #4
  46615. 8013cd0: f000 fc25 bl 801451e <xQueueCreateMutex>
  46616. 8013cd4: 61f8 str r0, [r7, #28]
  46617. 8013cd6: e003 b.n 8013ce0 <osMutexNew+0xce>
  46618. #endif
  46619. } else {
  46620. hMutex = xSemaphoreCreateMutex ();
  46621. 8013cd8: 2001 movs r0, #1
  46622. 8013cda: f000 fc20 bl 801451e <xQueueCreateMutex>
  46623. 8013cde: 61f8 str r0, [r7, #28]
  46624. #endif
  46625. }
  46626. }
  46627. #if (configQUEUE_REGISTRY_SIZE > 0)
  46628. if (hMutex != NULL) {
  46629. 8013ce0: 69fb ldr r3, [r7, #28]
  46630. 8013ce2: 2b00 cmp r3, #0
  46631. 8013ce4: d00c beq.n 8013d00 <osMutexNew+0xee>
  46632. if (attr != NULL) {
  46633. 8013ce6: 687b ldr r3, [r7, #4]
  46634. 8013ce8: 2b00 cmp r3, #0
  46635. 8013cea: d003 beq.n 8013cf4 <osMutexNew+0xe2>
  46636. name = attr->name;
  46637. 8013cec: 687b ldr r3, [r7, #4]
  46638. 8013cee: 681b ldr r3, [r3, #0]
  46639. 8013cf0: 60fb str r3, [r7, #12]
  46640. 8013cf2: e001 b.n 8013cf8 <osMutexNew+0xe6>
  46641. } else {
  46642. name = NULL;
  46643. 8013cf4: 2300 movs r3, #0
  46644. 8013cf6: 60fb str r3, [r7, #12]
  46645. }
  46646. vQueueAddToRegistry (hMutex, name);
  46647. 8013cf8: 68f9 ldr r1, [r7, #12]
  46648. 8013cfa: 69f8 ldr r0, [r7, #28]
  46649. 8013cfc: f001 f9ea bl 80150d4 <vQueueAddToRegistry>
  46650. }
  46651. #endif
  46652. if ((hMutex != NULL) && (rmtx != 0U)) {
  46653. 8013d00: 69fb ldr r3, [r7, #28]
  46654. 8013d02: 2b00 cmp r3, #0
  46655. 8013d04: d006 beq.n 8013d14 <osMutexNew+0x102>
  46656. 8013d06: 697b ldr r3, [r7, #20]
  46657. 8013d08: 2b00 cmp r3, #0
  46658. 8013d0a: d003 beq.n 8013d14 <osMutexNew+0x102>
  46659. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  46660. 8013d0c: 69fb ldr r3, [r7, #28]
  46661. 8013d0e: f043 0301 orr.w r3, r3, #1
  46662. 8013d12: 61fb str r3, [r7, #28]
  46663. }
  46664. }
  46665. }
  46666. return ((osMutexId_t)hMutex);
  46667. 8013d14: 69fb ldr r3, [r7, #28]
  46668. }
  46669. 8013d16: 4618 mov r0, r3
  46670. 8013d18: 3720 adds r7, #32
  46671. 8013d1a: 46bd mov sp, r7
  46672. 8013d1c: bd80 pop {r7, pc}
  46673. 08013d1e <osMutexAcquire>:
  46674. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  46675. 8013d1e: b580 push {r7, lr}
  46676. 8013d20: b086 sub sp, #24
  46677. 8013d22: af00 add r7, sp, #0
  46678. 8013d24: 6078 str r0, [r7, #4]
  46679. 8013d26: 6039 str r1, [r7, #0]
  46680. SemaphoreHandle_t hMutex;
  46681. osStatus_t stat;
  46682. uint32_t rmtx;
  46683. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46684. 8013d28: 687b ldr r3, [r7, #4]
  46685. 8013d2a: f023 0301 bic.w r3, r3, #1
  46686. 8013d2e: 613b str r3, [r7, #16]
  46687. rmtx = (uint32_t)mutex_id & 1U;
  46688. 8013d30: 687b ldr r3, [r7, #4]
  46689. 8013d32: f003 0301 and.w r3, r3, #1
  46690. 8013d36: 60fb str r3, [r7, #12]
  46691. stat = osOK;
  46692. 8013d38: 2300 movs r3, #0
  46693. 8013d3a: 617b str r3, [r7, #20]
  46694. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46695. 8013d3c: f3ef 8305 mrs r3, IPSR
  46696. 8013d40: 60bb str r3, [r7, #8]
  46697. return(result);
  46698. 8013d42: 68bb ldr r3, [r7, #8]
  46699. if (IS_IRQ()) {
  46700. 8013d44: 2b00 cmp r3, #0
  46701. 8013d46: d003 beq.n 8013d50 <osMutexAcquire+0x32>
  46702. stat = osErrorISR;
  46703. 8013d48: f06f 0305 mvn.w r3, #5
  46704. 8013d4c: 617b str r3, [r7, #20]
  46705. 8013d4e: e02c b.n 8013daa <osMutexAcquire+0x8c>
  46706. }
  46707. else if (hMutex == NULL) {
  46708. 8013d50: 693b ldr r3, [r7, #16]
  46709. 8013d52: 2b00 cmp r3, #0
  46710. 8013d54: d103 bne.n 8013d5e <osMutexAcquire+0x40>
  46711. stat = osErrorParameter;
  46712. 8013d56: f06f 0303 mvn.w r3, #3
  46713. 8013d5a: 617b str r3, [r7, #20]
  46714. 8013d5c: e025 b.n 8013daa <osMutexAcquire+0x8c>
  46715. }
  46716. else {
  46717. if (rmtx != 0U) {
  46718. 8013d5e: 68fb ldr r3, [r7, #12]
  46719. 8013d60: 2b00 cmp r3, #0
  46720. 8013d62: d011 beq.n 8013d88 <osMutexAcquire+0x6a>
  46721. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46722. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  46723. 8013d64: 6839 ldr r1, [r7, #0]
  46724. 8013d66: 6938 ldr r0, [r7, #16]
  46725. 8013d68: f000 fc41 bl 80145ee <xQueueTakeMutexRecursive>
  46726. 8013d6c: 4603 mov r3, r0
  46727. 8013d6e: 2b01 cmp r3, #1
  46728. 8013d70: d01b beq.n 8013daa <osMutexAcquire+0x8c>
  46729. if (timeout != 0U) {
  46730. 8013d72: 683b ldr r3, [r7, #0]
  46731. 8013d74: 2b00 cmp r3, #0
  46732. 8013d76: d003 beq.n 8013d80 <osMutexAcquire+0x62>
  46733. stat = osErrorTimeout;
  46734. 8013d78: f06f 0301 mvn.w r3, #1
  46735. 8013d7c: 617b str r3, [r7, #20]
  46736. 8013d7e: e014 b.n 8013daa <osMutexAcquire+0x8c>
  46737. } else {
  46738. stat = osErrorResource;
  46739. 8013d80: f06f 0302 mvn.w r3, #2
  46740. 8013d84: 617b str r3, [r7, #20]
  46741. 8013d86: e010 b.n 8013daa <osMutexAcquire+0x8c>
  46742. }
  46743. }
  46744. #endif
  46745. }
  46746. else {
  46747. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  46748. 8013d88: 6839 ldr r1, [r7, #0]
  46749. 8013d8a: 6938 ldr r0, [r7, #16]
  46750. 8013d8c: f000 fee8 bl 8014b60 <xQueueSemaphoreTake>
  46751. 8013d90: 4603 mov r3, r0
  46752. 8013d92: 2b01 cmp r3, #1
  46753. 8013d94: d009 beq.n 8013daa <osMutexAcquire+0x8c>
  46754. if (timeout != 0U) {
  46755. 8013d96: 683b ldr r3, [r7, #0]
  46756. 8013d98: 2b00 cmp r3, #0
  46757. 8013d9a: d003 beq.n 8013da4 <osMutexAcquire+0x86>
  46758. stat = osErrorTimeout;
  46759. 8013d9c: f06f 0301 mvn.w r3, #1
  46760. 8013da0: 617b str r3, [r7, #20]
  46761. 8013da2: e002 b.n 8013daa <osMutexAcquire+0x8c>
  46762. } else {
  46763. stat = osErrorResource;
  46764. 8013da4: f06f 0302 mvn.w r3, #2
  46765. 8013da8: 617b str r3, [r7, #20]
  46766. }
  46767. }
  46768. }
  46769. }
  46770. return (stat);
  46771. 8013daa: 697b ldr r3, [r7, #20]
  46772. }
  46773. 8013dac: 4618 mov r0, r3
  46774. 8013dae: 3718 adds r7, #24
  46775. 8013db0: 46bd mov sp, r7
  46776. 8013db2: bd80 pop {r7, pc}
  46777. 08013db4 <osMutexRelease>:
  46778. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  46779. 8013db4: b580 push {r7, lr}
  46780. 8013db6: b086 sub sp, #24
  46781. 8013db8: af00 add r7, sp, #0
  46782. 8013dba: 6078 str r0, [r7, #4]
  46783. SemaphoreHandle_t hMutex;
  46784. osStatus_t stat;
  46785. uint32_t rmtx;
  46786. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46787. 8013dbc: 687b ldr r3, [r7, #4]
  46788. 8013dbe: f023 0301 bic.w r3, r3, #1
  46789. 8013dc2: 613b str r3, [r7, #16]
  46790. rmtx = (uint32_t)mutex_id & 1U;
  46791. 8013dc4: 687b ldr r3, [r7, #4]
  46792. 8013dc6: f003 0301 and.w r3, r3, #1
  46793. 8013dca: 60fb str r3, [r7, #12]
  46794. stat = osOK;
  46795. 8013dcc: 2300 movs r3, #0
  46796. 8013dce: 617b str r3, [r7, #20]
  46797. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46798. 8013dd0: f3ef 8305 mrs r3, IPSR
  46799. 8013dd4: 60bb str r3, [r7, #8]
  46800. return(result);
  46801. 8013dd6: 68bb ldr r3, [r7, #8]
  46802. if (IS_IRQ()) {
  46803. 8013dd8: 2b00 cmp r3, #0
  46804. 8013dda: d003 beq.n 8013de4 <osMutexRelease+0x30>
  46805. stat = osErrorISR;
  46806. 8013ddc: f06f 0305 mvn.w r3, #5
  46807. 8013de0: 617b str r3, [r7, #20]
  46808. 8013de2: e01f b.n 8013e24 <osMutexRelease+0x70>
  46809. }
  46810. else if (hMutex == NULL) {
  46811. 8013de4: 693b ldr r3, [r7, #16]
  46812. 8013de6: 2b00 cmp r3, #0
  46813. 8013de8: d103 bne.n 8013df2 <osMutexRelease+0x3e>
  46814. stat = osErrorParameter;
  46815. 8013dea: f06f 0303 mvn.w r3, #3
  46816. 8013dee: 617b str r3, [r7, #20]
  46817. 8013df0: e018 b.n 8013e24 <osMutexRelease+0x70>
  46818. }
  46819. else {
  46820. if (rmtx != 0U) {
  46821. 8013df2: 68fb ldr r3, [r7, #12]
  46822. 8013df4: 2b00 cmp r3, #0
  46823. 8013df6: d009 beq.n 8013e0c <osMutexRelease+0x58>
  46824. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46825. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  46826. 8013df8: 6938 ldr r0, [r7, #16]
  46827. 8013dfa: f000 fbc3 bl 8014584 <xQueueGiveMutexRecursive>
  46828. 8013dfe: 4603 mov r3, r0
  46829. 8013e00: 2b01 cmp r3, #1
  46830. 8013e02: d00f beq.n 8013e24 <osMutexRelease+0x70>
  46831. stat = osErrorResource;
  46832. 8013e04: f06f 0302 mvn.w r3, #2
  46833. 8013e08: 617b str r3, [r7, #20]
  46834. 8013e0a: e00b b.n 8013e24 <osMutexRelease+0x70>
  46835. }
  46836. #endif
  46837. }
  46838. else {
  46839. if (xSemaphoreGive (hMutex) != pdPASS) {
  46840. 8013e0c: 2300 movs r3, #0
  46841. 8013e0e: 2200 movs r2, #0
  46842. 8013e10: 2100 movs r1, #0
  46843. 8013e12: 6938 ldr r0, [r7, #16]
  46844. 8013e14: f000 fc22 bl 801465c <xQueueGenericSend>
  46845. 8013e18: 4603 mov r3, r0
  46846. 8013e1a: 2b01 cmp r3, #1
  46847. 8013e1c: d002 beq.n 8013e24 <osMutexRelease+0x70>
  46848. stat = osErrorResource;
  46849. 8013e1e: f06f 0302 mvn.w r3, #2
  46850. 8013e22: 617b str r3, [r7, #20]
  46851. }
  46852. }
  46853. }
  46854. return (stat);
  46855. 8013e24: 697b ldr r3, [r7, #20]
  46856. }
  46857. 8013e26: 4618 mov r0, r3
  46858. 8013e28: 3718 adds r7, #24
  46859. 8013e2a: 46bd mov sp, r7
  46860. 8013e2c: bd80 pop {r7, pc}
  46861. 08013e2e <osMessageQueueNew>:
  46862. return (stat);
  46863. }
  46864. /*---------------------------------------------------------------------------*/
  46865. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  46866. 8013e2e: b580 push {r7, lr}
  46867. 8013e30: b08a sub sp, #40 @ 0x28
  46868. 8013e32: af02 add r7, sp, #8
  46869. 8013e34: 60f8 str r0, [r7, #12]
  46870. 8013e36: 60b9 str r1, [r7, #8]
  46871. 8013e38: 607a str r2, [r7, #4]
  46872. int32_t mem;
  46873. #if (configQUEUE_REGISTRY_SIZE > 0)
  46874. const char *name;
  46875. #endif
  46876. hQueue = NULL;
  46877. 8013e3a: 2300 movs r3, #0
  46878. 8013e3c: 61fb str r3, [r7, #28]
  46879. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46880. 8013e3e: f3ef 8305 mrs r3, IPSR
  46881. 8013e42: 613b str r3, [r7, #16]
  46882. return(result);
  46883. 8013e44: 693b ldr r3, [r7, #16]
  46884. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  46885. 8013e46: 2b00 cmp r3, #0
  46886. 8013e48: d15f bne.n 8013f0a <osMessageQueueNew+0xdc>
  46887. 8013e4a: 68fb ldr r3, [r7, #12]
  46888. 8013e4c: 2b00 cmp r3, #0
  46889. 8013e4e: d05c beq.n 8013f0a <osMessageQueueNew+0xdc>
  46890. 8013e50: 68bb ldr r3, [r7, #8]
  46891. 8013e52: 2b00 cmp r3, #0
  46892. 8013e54: d059 beq.n 8013f0a <osMessageQueueNew+0xdc>
  46893. mem = -1;
  46894. 8013e56: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46895. 8013e5a: 61bb str r3, [r7, #24]
  46896. if (attr != NULL) {
  46897. 8013e5c: 687b ldr r3, [r7, #4]
  46898. 8013e5e: 2b00 cmp r3, #0
  46899. 8013e60: d029 beq.n 8013eb6 <osMessageQueueNew+0x88>
  46900. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46901. 8013e62: 687b ldr r3, [r7, #4]
  46902. 8013e64: 689b ldr r3, [r3, #8]
  46903. 8013e66: 2b00 cmp r3, #0
  46904. 8013e68: d012 beq.n 8013e90 <osMessageQueueNew+0x62>
  46905. 8013e6a: 687b ldr r3, [r7, #4]
  46906. 8013e6c: 68db ldr r3, [r3, #12]
  46907. 8013e6e: 2b4f cmp r3, #79 @ 0x4f
  46908. 8013e70: d90e bls.n 8013e90 <osMessageQueueNew+0x62>
  46909. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46910. 8013e72: 687b ldr r3, [r7, #4]
  46911. 8013e74: 691b ldr r3, [r3, #16]
  46912. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46913. 8013e76: 2b00 cmp r3, #0
  46914. 8013e78: d00a beq.n 8013e90 <osMessageQueueNew+0x62>
  46915. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46916. 8013e7a: 687b ldr r3, [r7, #4]
  46917. 8013e7c: 695a ldr r2, [r3, #20]
  46918. 8013e7e: 68fb ldr r3, [r7, #12]
  46919. 8013e80: 68b9 ldr r1, [r7, #8]
  46920. 8013e82: fb01 f303 mul.w r3, r1, r3
  46921. 8013e86: 429a cmp r2, r3
  46922. 8013e88: d302 bcc.n 8013e90 <osMessageQueueNew+0x62>
  46923. mem = 1;
  46924. 8013e8a: 2301 movs r3, #1
  46925. 8013e8c: 61bb str r3, [r7, #24]
  46926. 8013e8e: e014 b.n 8013eba <osMessageQueueNew+0x8c>
  46927. }
  46928. else {
  46929. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46930. 8013e90: 687b ldr r3, [r7, #4]
  46931. 8013e92: 689b ldr r3, [r3, #8]
  46932. 8013e94: 2b00 cmp r3, #0
  46933. 8013e96: d110 bne.n 8013eba <osMessageQueueNew+0x8c>
  46934. 8013e98: 687b ldr r3, [r7, #4]
  46935. 8013e9a: 68db ldr r3, [r3, #12]
  46936. 8013e9c: 2b00 cmp r3, #0
  46937. 8013e9e: d10c bne.n 8013eba <osMessageQueueNew+0x8c>
  46938. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46939. 8013ea0: 687b ldr r3, [r7, #4]
  46940. 8013ea2: 691b ldr r3, [r3, #16]
  46941. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46942. 8013ea4: 2b00 cmp r3, #0
  46943. 8013ea6: d108 bne.n 8013eba <osMessageQueueNew+0x8c>
  46944. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46945. 8013ea8: 687b ldr r3, [r7, #4]
  46946. 8013eaa: 695b ldr r3, [r3, #20]
  46947. 8013eac: 2b00 cmp r3, #0
  46948. 8013eae: d104 bne.n 8013eba <osMessageQueueNew+0x8c>
  46949. mem = 0;
  46950. 8013eb0: 2300 movs r3, #0
  46951. 8013eb2: 61bb str r3, [r7, #24]
  46952. 8013eb4: e001 b.n 8013eba <osMessageQueueNew+0x8c>
  46953. }
  46954. }
  46955. }
  46956. else {
  46957. mem = 0;
  46958. 8013eb6: 2300 movs r3, #0
  46959. 8013eb8: 61bb str r3, [r7, #24]
  46960. }
  46961. if (mem == 1) {
  46962. 8013eba: 69bb ldr r3, [r7, #24]
  46963. 8013ebc: 2b01 cmp r3, #1
  46964. 8013ebe: d10b bne.n 8013ed8 <osMessageQueueNew+0xaa>
  46965. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46966. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  46967. 8013ec0: 687b ldr r3, [r7, #4]
  46968. 8013ec2: 691a ldr r2, [r3, #16]
  46969. 8013ec4: 687b ldr r3, [r7, #4]
  46970. 8013ec6: 689b ldr r3, [r3, #8]
  46971. 8013ec8: 2100 movs r1, #0
  46972. 8013eca: 9100 str r1, [sp, #0]
  46973. 8013ecc: 68b9 ldr r1, [r7, #8]
  46974. 8013ece: 68f8 ldr r0, [r7, #12]
  46975. 8013ed0: f000 fa30 bl 8014334 <xQueueGenericCreateStatic>
  46976. 8013ed4: 61f8 str r0, [r7, #28]
  46977. 8013ed6: e008 b.n 8013eea <osMessageQueueNew+0xbc>
  46978. #endif
  46979. }
  46980. else {
  46981. if (mem == 0) {
  46982. 8013ed8: 69bb ldr r3, [r7, #24]
  46983. 8013eda: 2b00 cmp r3, #0
  46984. 8013edc: d105 bne.n 8013eea <osMessageQueueNew+0xbc>
  46985. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46986. hQueue = xQueueCreate (msg_count, msg_size);
  46987. 8013ede: 2200 movs r2, #0
  46988. 8013ee0: 68b9 ldr r1, [r7, #8]
  46989. 8013ee2: 68f8 ldr r0, [r7, #12]
  46990. 8013ee4: f000 faa3 bl 801442e <xQueueGenericCreate>
  46991. 8013ee8: 61f8 str r0, [r7, #28]
  46992. #endif
  46993. }
  46994. }
  46995. #if (configQUEUE_REGISTRY_SIZE > 0)
  46996. if (hQueue != NULL) {
  46997. 8013eea: 69fb ldr r3, [r7, #28]
  46998. 8013eec: 2b00 cmp r3, #0
  46999. 8013eee: d00c beq.n 8013f0a <osMessageQueueNew+0xdc>
  47000. if (attr != NULL) {
  47001. 8013ef0: 687b ldr r3, [r7, #4]
  47002. 8013ef2: 2b00 cmp r3, #0
  47003. 8013ef4: d003 beq.n 8013efe <osMessageQueueNew+0xd0>
  47004. name = attr->name;
  47005. 8013ef6: 687b ldr r3, [r7, #4]
  47006. 8013ef8: 681b ldr r3, [r3, #0]
  47007. 8013efa: 617b str r3, [r7, #20]
  47008. 8013efc: e001 b.n 8013f02 <osMessageQueueNew+0xd4>
  47009. } else {
  47010. name = NULL;
  47011. 8013efe: 2300 movs r3, #0
  47012. 8013f00: 617b str r3, [r7, #20]
  47013. }
  47014. vQueueAddToRegistry (hQueue, name);
  47015. 8013f02: 6979 ldr r1, [r7, #20]
  47016. 8013f04: 69f8 ldr r0, [r7, #28]
  47017. 8013f06: f001 f8e5 bl 80150d4 <vQueueAddToRegistry>
  47018. }
  47019. #endif
  47020. }
  47021. return ((osMessageQueueId_t)hQueue);
  47022. 8013f0a: 69fb ldr r3, [r7, #28]
  47023. }
  47024. 8013f0c: 4618 mov r0, r3
  47025. 8013f0e: 3720 adds r7, #32
  47026. 8013f10: 46bd mov sp, r7
  47027. 8013f12: bd80 pop {r7, pc}
  47028. 08013f14 <osMessageQueuePut>:
  47029. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  47030. 8013f14: b580 push {r7, lr}
  47031. 8013f16: b088 sub sp, #32
  47032. 8013f18: af00 add r7, sp, #0
  47033. 8013f1a: 60f8 str r0, [r7, #12]
  47034. 8013f1c: 60b9 str r1, [r7, #8]
  47035. 8013f1e: 603b str r3, [r7, #0]
  47036. 8013f20: 4613 mov r3, r2
  47037. 8013f22: 71fb strb r3, [r7, #7]
  47038. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47039. 8013f24: 68fb ldr r3, [r7, #12]
  47040. 8013f26: 61bb str r3, [r7, #24]
  47041. osStatus_t stat;
  47042. BaseType_t yield;
  47043. (void)msg_prio; /* Message priority is ignored */
  47044. stat = osOK;
  47045. 8013f28: 2300 movs r3, #0
  47046. 8013f2a: 61fb str r3, [r7, #28]
  47047. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47048. 8013f2c: f3ef 8305 mrs r3, IPSR
  47049. 8013f30: 617b str r3, [r7, #20]
  47050. return(result);
  47051. 8013f32: 697b ldr r3, [r7, #20]
  47052. if (IS_IRQ()) {
  47053. 8013f34: 2b00 cmp r3, #0
  47054. 8013f36: d028 beq.n 8013f8a <osMessageQueuePut+0x76>
  47055. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47056. 8013f38: 69bb ldr r3, [r7, #24]
  47057. 8013f3a: 2b00 cmp r3, #0
  47058. 8013f3c: d005 beq.n 8013f4a <osMessageQueuePut+0x36>
  47059. 8013f3e: 68bb ldr r3, [r7, #8]
  47060. 8013f40: 2b00 cmp r3, #0
  47061. 8013f42: d002 beq.n 8013f4a <osMessageQueuePut+0x36>
  47062. 8013f44: 683b ldr r3, [r7, #0]
  47063. 8013f46: 2b00 cmp r3, #0
  47064. 8013f48: d003 beq.n 8013f52 <osMessageQueuePut+0x3e>
  47065. stat = osErrorParameter;
  47066. 8013f4a: f06f 0303 mvn.w r3, #3
  47067. 8013f4e: 61fb str r3, [r7, #28]
  47068. 8013f50: e038 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47069. }
  47070. else {
  47071. yield = pdFALSE;
  47072. 8013f52: 2300 movs r3, #0
  47073. 8013f54: 613b str r3, [r7, #16]
  47074. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  47075. 8013f56: f107 0210 add.w r2, r7, #16
  47076. 8013f5a: 2300 movs r3, #0
  47077. 8013f5c: 68b9 ldr r1, [r7, #8]
  47078. 8013f5e: 69b8 ldr r0, [r7, #24]
  47079. 8013f60: f000 fc7e bl 8014860 <xQueueGenericSendFromISR>
  47080. 8013f64: 4603 mov r3, r0
  47081. 8013f66: 2b01 cmp r3, #1
  47082. 8013f68: d003 beq.n 8013f72 <osMessageQueuePut+0x5e>
  47083. stat = osErrorResource;
  47084. 8013f6a: f06f 0302 mvn.w r3, #2
  47085. 8013f6e: 61fb str r3, [r7, #28]
  47086. 8013f70: e028 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47087. } else {
  47088. portYIELD_FROM_ISR (yield);
  47089. 8013f72: 693b ldr r3, [r7, #16]
  47090. 8013f74: 2b00 cmp r3, #0
  47091. 8013f76: d025 beq.n 8013fc4 <osMessageQueuePut+0xb0>
  47092. 8013f78: 4b15 ldr r3, [pc, #84] @ (8013fd0 <osMessageQueuePut+0xbc>)
  47093. 8013f7a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47094. 8013f7e: 601a str r2, [r3, #0]
  47095. 8013f80: f3bf 8f4f dsb sy
  47096. 8013f84: f3bf 8f6f isb sy
  47097. 8013f88: e01c b.n 8013fc4 <osMessageQueuePut+0xb0>
  47098. }
  47099. }
  47100. }
  47101. else {
  47102. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  47103. 8013f8a: 69bb ldr r3, [r7, #24]
  47104. 8013f8c: 2b00 cmp r3, #0
  47105. 8013f8e: d002 beq.n 8013f96 <osMessageQueuePut+0x82>
  47106. 8013f90: 68bb ldr r3, [r7, #8]
  47107. 8013f92: 2b00 cmp r3, #0
  47108. 8013f94: d103 bne.n 8013f9e <osMessageQueuePut+0x8a>
  47109. stat = osErrorParameter;
  47110. 8013f96: f06f 0303 mvn.w r3, #3
  47111. 8013f9a: 61fb str r3, [r7, #28]
  47112. 8013f9c: e012 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47113. }
  47114. else {
  47115. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  47116. 8013f9e: 2300 movs r3, #0
  47117. 8013fa0: 683a ldr r2, [r7, #0]
  47118. 8013fa2: 68b9 ldr r1, [r7, #8]
  47119. 8013fa4: 69b8 ldr r0, [r7, #24]
  47120. 8013fa6: f000 fb59 bl 801465c <xQueueGenericSend>
  47121. 8013faa: 4603 mov r3, r0
  47122. 8013fac: 2b01 cmp r3, #1
  47123. 8013fae: d009 beq.n 8013fc4 <osMessageQueuePut+0xb0>
  47124. if (timeout != 0U) {
  47125. 8013fb0: 683b ldr r3, [r7, #0]
  47126. 8013fb2: 2b00 cmp r3, #0
  47127. 8013fb4: d003 beq.n 8013fbe <osMessageQueuePut+0xaa>
  47128. stat = osErrorTimeout;
  47129. 8013fb6: f06f 0301 mvn.w r3, #1
  47130. 8013fba: 61fb str r3, [r7, #28]
  47131. 8013fbc: e002 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47132. } else {
  47133. stat = osErrorResource;
  47134. 8013fbe: f06f 0302 mvn.w r3, #2
  47135. 8013fc2: 61fb str r3, [r7, #28]
  47136. }
  47137. }
  47138. }
  47139. }
  47140. return (stat);
  47141. 8013fc4: 69fb ldr r3, [r7, #28]
  47142. }
  47143. 8013fc6: 4618 mov r0, r3
  47144. 8013fc8: 3720 adds r7, #32
  47145. 8013fca: 46bd mov sp, r7
  47146. 8013fcc: bd80 pop {r7, pc}
  47147. 8013fce: bf00 nop
  47148. 8013fd0: e000ed04 .word 0xe000ed04
  47149. 08013fd4 <osMessageQueueGet>:
  47150. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  47151. 8013fd4: b580 push {r7, lr}
  47152. 8013fd6: b088 sub sp, #32
  47153. 8013fd8: af00 add r7, sp, #0
  47154. 8013fda: 60f8 str r0, [r7, #12]
  47155. 8013fdc: 60b9 str r1, [r7, #8]
  47156. 8013fde: 607a str r2, [r7, #4]
  47157. 8013fe0: 603b str r3, [r7, #0]
  47158. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47159. 8013fe2: 68fb ldr r3, [r7, #12]
  47160. 8013fe4: 61bb str r3, [r7, #24]
  47161. osStatus_t stat;
  47162. BaseType_t yield;
  47163. (void)msg_prio; /* Message priority is ignored */
  47164. stat = osOK;
  47165. 8013fe6: 2300 movs r3, #0
  47166. 8013fe8: 61fb str r3, [r7, #28]
  47167. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47168. 8013fea: f3ef 8305 mrs r3, IPSR
  47169. 8013fee: 617b str r3, [r7, #20]
  47170. return(result);
  47171. 8013ff0: 697b ldr r3, [r7, #20]
  47172. if (IS_IRQ()) {
  47173. 8013ff2: 2b00 cmp r3, #0
  47174. 8013ff4: d028 beq.n 8014048 <osMessageQueueGet+0x74>
  47175. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47176. 8013ff6: 69bb ldr r3, [r7, #24]
  47177. 8013ff8: 2b00 cmp r3, #0
  47178. 8013ffa: d005 beq.n 8014008 <osMessageQueueGet+0x34>
  47179. 8013ffc: 68bb ldr r3, [r7, #8]
  47180. 8013ffe: 2b00 cmp r3, #0
  47181. 8014000: d002 beq.n 8014008 <osMessageQueueGet+0x34>
  47182. 8014002: 683b ldr r3, [r7, #0]
  47183. 8014004: 2b00 cmp r3, #0
  47184. 8014006: d003 beq.n 8014010 <osMessageQueueGet+0x3c>
  47185. stat = osErrorParameter;
  47186. 8014008: f06f 0303 mvn.w r3, #3
  47187. 801400c: 61fb str r3, [r7, #28]
  47188. 801400e: e037 b.n 8014080 <osMessageQueueGet+0xac>
  47189. }
  47190. else {
  47191. yield = pdFALSE;
  47192. 8014010: 2300 movs r3, #0
  47193. 8014012: 613b str r3, [r7, #16]
  47194. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  47195. 8014014: f107 0310 add.w r3, r7, #16
  47196. 8014018: 461a mov r2, r3
  47197. 801401a: 68b9 ldr r1, [r7, #8]
  47198. 801401c: 69b8 ldr r0, [r7, #24]
  47199. 801401e: f000 feaf bl 8014d80 <xQueueReceiveFromISR>
  47200. 8014022: 4603 mov r3, r0
  47201. 8014024: 2b01 cmp r3, #1
  47202. 8014026: d003 beq.n 8014030 <osMessageQueueGet+0x5c>
  47203. stat = osErrorResource;
  47204. 8014028: f06f 0302 mvn.w r3, #2
  47205. 801402c: 61fb str r3, [r7, #28]
  47206. 801402e: e027 b.n 8014080 <osMessageQueueGet+0xac>
  47207. } else {
  47208. portYIELD_FROM_ISR (yield);
  47209. 8014030: 693b ldr r3, [r7, #16]
  47210. 8014032: 2b00 cmp r3, #0
  47211. 8014034: d024 beq.n 8014080 <osMessageQueueGet+0xac>
  47212. 8014036: 4b15 ldr r3, [pc, #84] @ (801408c <osMessageQueueGet+0xb8>)
  47213. 8014038: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47214. 801403c: 601a str r2, [r3, #0]
  47215. 801403e: f3bf 8f4f dsb sy
  47216. 8014042: f3bf 8f6f isb sy
  47217. 8014046: e01b b.n 8014080 <osMessageQueueGet+0xac>
  47218. }
  47219. }
  47220. }
  47221. else {
  47222. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  47223. 8014048: 69bb ldr r3, [r7, #24]
  47224. 801404a: 2b00 cmp r3, #0
  47225. 801404c: d002 beq.n 8014054 <osMessageQueueGet+0x80>
  47226. 801404e: 68bb ldr r3, [r7, #8]
  47227. 8014050: 2b00 cmp r3, #0
  47228. 8014052: d103 bne.n 801405c <osMessageQueueGet+0x88>
  47229. stat = osErrorParameter;
  47230. 8014054: f06f 0303 mvn.w r3, #3
  47231. 8014058: 61fb str r3, [r7, #28]
  47232. 801405a: e011 b.n 8014080 <osMessageQueueGet+0xac>
  47233. }
  47234. else {
  47235. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  47236. 801405c: 683a ldr r2, [r7, #0]
  47237. 801405e: 68b9 ldr r1, [r7, #8]
  47238. 8014060: 69b8 ldr r0, [r7, #24]
  47239. 8014062: f000 fc9b bl 801499c <xQueueReceive>
  47240. 8014066: 4603 mov r3, r0
  47241. 8014068: 2b01 cmp r3, #1
  47242. 801406a: d009 beq.n 8014080 <osMessageQueueGet+0xac>
  47243. if (timeout != 0U) {
  47244. 801406c: 683b ldr r3, [r7, #0]
  47245. 801406e: 2b00 cmp r3, #0
  47246. 8014070: d003 beq.n 801407a <osMessageQueueGet+0xa6>
  47247. stat = osErrorTimeout;
  47248. 8014072: f06f 0301 mvn.w r3, #1
  47249. 8014076: 61fb str r3, [r7, #28]
  47250. 8014078: e002 b.n 8014080 <osMessageQueueGet+0xac>
  47251. } else {
  47252. stat = osErrorResource;
  47253. 801407a: f06f 0302 mvn.w r3, #2
  47254. 801407e: 61fb str r3, [r7, #28]
  47255. }
  47256. }
  47257. }
  47258. }
  47259. return (stat);
  47260. 8014080: 69fb ldr r3, [r7, #28]
  47261. }
  47262. 8014082: 4618 mov r0, r3
  47263. 8014084: 3720 adds r7, #32
  47264. 8014086: 46bd mov sp, r7
  47265. 8014088: bd80 pop {r7, pc}
  47266. 801408a: bf00 nop
  47267. 801408c: e000ed04 .word 0xe000ed04
  47268. 08014090 <vApplicationGetIdleTaskMemory>:
  47269. /*
  47270. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  47271. equals to 1 and is required for static memory allocation support.
  47272. */
  47273. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  47274. 8014090: b480 push {r7}
  47275. 8014092: b085 sub sp, #20
  47276. 8014094: af00 add r7, sp, #0
  47277. 8014096: 60f8 str r0, [r7, #12]
  47278. 8014098: 60b9 str r1, [r7, #8]
  47279. 801409a: 607a str r2, [r7, #4]
  47280. /* Idle task control block and stack */
  47281. static StaticTask_t Idle_TCB;
  47282. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  47283. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  47284. 801409c: 68fb ldr r3, [r7, #12]
  47285. 801409e: 4a07 ldr r2, [pc, #28] @ (80140bc <vApplicationGetIdleTaskMemory+0x2c>)
  47286. 80140a0: 601a str r2, [r3, #0]
  47287. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  47288. 80140a2: 68bb ldr r3, [r7, #8]
  47289. 80140a4: 4a06 ldr r2, [pc, #24] @ (80140c0 <vApplicationGetIdleTaskMemory+0x30>)
  47290. 80140a6: 601a str r2, [r3, #0]
  47291. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  47292. 80140a8: 687b ldr r3, [r7, #4]
  47293. 80140aa: f44f 7200 mov.w r2, #512 @ 0x200
  47294. 80140ae: 601a str r2, [r3, #0]
  47295. }
  47296. 80140b0: bf00 nop
  47297. 80140b2: 3714 adds r7, #20
  47298. 80140b4: 46bd mov sp, r7
  47299. 80140b6: f85d 7b04 ldr.w r7, [sp], #4
  47300. 80140ba: 4770 bx lr
  47301. 80140bc: 24000d04 .word 0x24000d04
  47302. 80140c0: 24000dac .word 0x24000dac
  47303. 080140c4 <vApplicationGetTimerTaskMemory>:
  47304. /*
  47305. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  47306. equals to 1 and is required for static memory allocation support.
  47307. */
  47308. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  47309. 80140c4: b480 push {r7}
  47310. 80140c6: b085 sub sp, #20
  47311. 80140c8: af00 add r7, sp, #0
  47312. 80140ca: 60f8 str r0, [r7, #12]
  47313. 80140cc: 60b9 str r1, [r7, #8]
  47314. 80140ce: 607a str r2, [r7, #4]
  47315. /* Timer task control block and stack */
  47316. static StaticTask_t Timer_TCB;
  47317. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  47318. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  47319. 80140d0: 68fb ldr r3, [r7, #12]
  47320. 80140d2: 4a07 ldr r2, [pc, #28] @ (80140f0 <vApplicationGetTimerTaskMemory+0x2c>)
  47321. 80140d4: 601a str r2, [r3, #0]
  47322. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  47323. 80140d6: 68bb ldr r3, [r7, #8]
  47324. 80140d8: 4a06 ldr r2, [pc, #24] @ (80140f4 <vApplicationGetTimerTaskMemory+0x30>)
  47325. 80140da: 601a str r2, [r3, #0]
  47326. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  47327. 80140dc: 687b ldr r3, [r7, #4]
  47328. 80140de: f44f 6280 mov.w r2, #1024 @ 0x400
  47329. 80140e2: 601a str r2, [r3, #0]
  47330. }
  47331. 80140e4: bf00 nop
  47332. 80140e6: 3714 adds r7, #20
  47333. 80140e8: 46bd mov sp, r7
  47334. 80140ea: f85d 7b04 ldr.w r7, [sp], #4
  47335. 80140ee: 4770 bx lr
  47336. 80140f0: 240015ac .word 0x240015ac
  47337. 80140f4: 24001654 .word 0x24001654
  47338. 080140f8 <vListInitialise>:
  47339. /*-----------------------------------------------------------
  47340. * PUBLIC LIST API documented in list.h
  47341. *----------------------------------------------------------*/
  47342. void vListInitialise( List_t * const pxList )
  47343. {
  47344. 80140f8: b480 push {r7}
  47345. 80140fa: b083 sub sp, #12
  47346. 80140fc: af00 add r7, sp, #0
  47347. 80140fe: 6078 str r0, [r7, #4]
  47348. /* The list structure contains a list item which is used to mark the
  47349. end of the list. To initialise the list the list end is inserted
  47350. as the only list entry. */
  47351. 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. */
  47352. 8014100: 687b ldr r3, [r7, #4]
  47353. 8014102: f103 0208 add.w r2, r3, #8
  47354. 8014106: 687b ldr r3, [r7, #4]
  47355. 8014108: 605a str r2, [r3, #4]
  47356. /* The list end value is the highest possible value in the list to
  47357. ensure it remains at the end of the list. */
  47358. pxList->xListEnd.xItemValue = portMAX_DELAY;
  47359. 801410a: 687b ldr r3, [r7, #4]
  47360. 801410c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  47361. 8014110: 609a str r2, [r3, #8]
  47362. /* The list end next and previous pointers point to itself so we know
  47363. when the list is empty. */
  47364. 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. */
  47365. 8014112: 687b ldr r3, [r7, #4]
  47366. 8014114: f103 0208 add.w r2, r3, #8
  47367. 8014118: 687b ldr r3, [r7, #4]
  47368. 801411a: 60da str r2, [r3, #12]
  47369. 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. */
  47370. 801411c: 687b ldr r3, [r7, #4]
  47371. 801411e: f103 0208 add.w r2, r3, #8
  47372. 8014122: 687b ldr r3, [r7, #4]
  47373. 8014124: 611a str r2, [r3, #16]
  47374. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  47375. 8014126: 687b ldr r3, [r7, #4]
  47376. 8014128: 2200 movs r2, #0
  47377. 801412a: 601a str r2, [r3, #0]
  47378. /* Write known values into the list if
  47379. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  47380. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  47381. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  47382. }
  47383. 801412c: bf00 nop
  47384. 801412e: 370c adds r7, #12
  47385. 8014130: 46bd mov sp, r7
  47386. 8014132: f85d 7b04 ldr.w r7, [sp], #4
  47387. 8014136: 4770 bx lr
  47388. 08014138 <vListInitialiseItem>:
  47389. /*-----------------------------------------------------------*/
  47390. void vListInitialiseItem( ListItem_t * const pxItem )
  47391. {
  47392. 8014138: b480 push {r7}
  47393. 801413a: b083 sub sp, #12
  47394. 801413c: af00 add r7, sp, #0
  47395. 801413e: 6078 str r0, [r7, #4]
  47396. /* Make sure the list item is not recorded as being on a list. */
  47397. pxItem->pxContainer = NULL;
  47398. 8014140: 687b ldr r3, [r7, #4]
  47399. 8014142: 2200 movs r2, #0
  47400. 8014144: 611a str r2, [r3, #16]
  47401. /* Write known values into the list item if
  47402. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  47403. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  47404. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  47405. }
  47406. 8014146: bf00 nop
  47407. 8014148: 370c adds r7, #12
  47408. 801414a: 46bd mov sp, r7
  47409. 801414c: f85d 7b04 ldr.w r7, [sp], #4
  47410. 8014150: 4770 bx lr
  47411. 08014152 <vListInsertEnd>:
  47412. /*-----------------------------------------------------------*/
  47413. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  47414. {
  47415. 8014152: b480 push {r7}
  47416. 8014154: b085 sub sp, #20
  47417. 8014156: af00 add r7, sp, #0
  47418. 8014158: 6078 str r0, [r7, #4]
  47419. 801415a: 6039 str r1, [r7, #0]
  47420. ListItem_t * const pxIndex = pxList->pxIndex;
  47421. 801415c: 687b ldr r3, [r7, #4]
  47422. 801415e: 685b ldr r3, [r3, #4]
  47423. 8014160: 60fb str r3, [r7, #12]
  47424. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  47425. /* Insert a new list item into pxList, but rather than sort the list,
  47426. makes the new list item the last item to be removed by a call to
  47427. listGET_OWNER_OF_NEXT_ENTRY(). */
  47428. pxNewListItem->pxNext = pxIndex;
  47429. 8014162: 683b ldr r3, [r7, #0]
  47430. 8014164: 68fa ldr r2, [r7, #12]
  47431. 8014166: 605a str r2, [r3, #4]
  47432. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  47433. 8014168: 68fb ldr r3, [r7, #12]
  47434. 801416a: 689a ldr r2, [r3, #8]
  47435. 801416c: 683b ldr r3, [r7, #0]
  47436. 801416e: 609a str r2, [r3, #8]
  47437. /* Only used during decision coverage testing. */
  47438. mtCOVERAGE_TEST_DELAY();
  47439. pxIndex->pxPrevious->pxNext = pxNewListItem;
  47440. 8014170: 68fb ldr r3, [r7, #12]
  47441. 8014172: 689b ldr r3, [r3, #8]
  47442. 8014174: 683a ldr r2, [r7, #0]
  47443. 8014176: 605a str r2, [r3, #4]
  47444. pxIndex->pxPrevious = pxNewListItem;
  47445. 8014178: 68fb ldr r3, [r7, #12]
  47446. 801417a: 683a ldr r2, [r7, #0]
  47447. 801417c: 609a str r2, [r3, #8]
  47448. /* Remember which list the item is in. */
  47449. pxNewListItem->pxContainer = pxList;
  47450. 801417e: 683b ldr r3, [r7, #0]
  47451. 8014180: 687a ldr r2, [r7, #4]
  47452. 8014182: 611a str r2, [r3, #16]
  47453. ( pxList->uxNumberOfItems )++;
  47454. 8014184: 687b ldr r3, [r7, #4]
  47455. 8014186: 681b ldr r3, [r3, #0]
  47456. 8014188: 1c5a adds r2, r3, #1
  47457. 801418a: 687b ldr r3, [r7, #4]
  47458. 801418c: 601a str r2, [r3, #0]
  47459. }
  47460. 801418e: bf00 nop
  47461. 8014190: 3714 adds r7, #20
  47462. 8014192: 46bd mov sp, r7
  47463. 8014194: f85d 7b04 ldr.w r7, [sp], #4
  47464. 8014198: 4770 bx lr
  47465. 0801419a <vListInsert>:
  47466. /*-----------------------------------------------------------*/
  47467. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  47468. {
  47469. 801419a: b480 push {r7}
  47470. 801419c: b085 sub sp, #20
  47471. 801419e: af00 add r7, sp, #0
  47472. 80141a0: 6078 str r0, [r7, #4]
  47473. 80141a2: 6039 str r1, [r7, #0]
  47474. ListItem_t *pxIterator;
  47475. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  47476. 80141a4: 683b ldr r3, [r7, #0]
  47477. 80141a6: 681b ldr r3, [r3, #0]
  47478. 80141a8: 60bb str r3, [r7, #8]
  47479. new list item should be placed after it. This ensures that TCBs which are
  47480. stored in ready lists (all of which have the same xItemValue value) get a
  47481. share of the CPU. However, if the xItemValue is the same as the back marker
  47482. the iteration loop below will not end. Therefore the value is checked
  47483. first, and the algorithm slightly modified if necessary. */
  47484. if( xValueOfInsertion == portMAX_DELAY )
  47485. 80141aa: 68bb ldr r3, [r7, #8]
  47486. 80141ac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47487. 80141b0: d103 bne.n 80141ba <vListInsert+0x20>
  47488. {
  47489. pxIterator = pxList->xListEnd.pxPrevious;
  47490. 80141b2: 687b ldr r3, [r7, #4]
  47491. 80141b4: 691b ldr r3, [r3, #16]
  47492. 80141b6: 60fb str r3, [r7, #12]
  47493. 80141b8: e00c b.n 80141d4 <vListInsert+0x3a>
  47494. 4) Using a queue or semaphore before it has been initialised or
  47495. before the scheduler has been started (are interrupts firing
  47496. before vTaskStartScheduler() has been called?).
  47497. **********************************************************************/
  47498. 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. */
  47499. 80141ba: 687b ldr r3, [r7, #4]
  47500. 80141bc: 3308 adds r3, #8
  47501. 80141be: 60fb str r3, [r7, #12]
  47502. 80141c0: e002 b.n 80141c8 <vListInsert+0x2e>
  47503. 80141c2: 68fb ldr r3, [r7, #12]
  47504. 80141c4: 685b ldr r3, [r3, #4]
  47505. 80141c6: 60fb str r3, [r7, #12]
  47506. 80141c8: 68fb ldr r3, [r7, #12]
  47507. 80141ca: 685b ldr r3, [r3, #4]
  47508. 80141cc: 681b ldr r3, [r3, #0]
  47509. 80141ce: 68ba ldr r2, [r7, #8]
  47510. 80141d0: 429a cmp r2, r3
  47511. 80141d2: d2f6 bcs.n 80141c2 <vListInsert+0x28>
  47512. /* There is nothing to do here, just iterating to the wanted
  47513. insertion position. */
  47514. }
  47515. }
  47516. pxNewListItem->pxNext = pxIterator->pxNext;
  47517. 80141d4: 68fb ldr r3, [r7, #12]
  47518. 80141d6: 685a ldr r2, [r3, #4]
  47519. 80141d8: 683b ldr r3, [r7, #0]
  47520. 80141da: 605a str r2, [r3, #4]
  47521. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  47522. 80141dc: 683b ldr r3, [r7, #0]
  47523. 80141de: 685b ldr r3, [r3, #4]
  47524. 80141e0: 683a ldr r2, [r7, #0]
  47525. 80141e2: 609a str r2, [r3, #8]
  47526. pxNewListItem->pxPrevious = pxIterator;
  47527. 80141e4: 683b ldr r3, [r7, #0]
  47528. 80141e6: 68fa ldr r2, [r7, #12]
  47529. 80141e8: 609a str r2, [r3, #8]
  47530. pxIterator->pxNext = pxNewListItem;
  47531. 80141ea: 68fb ldr r3, [r7, #12]
  47532. 80141ec: 683a ldr r2, [r7, #0]
  47533. 80141ee: 605a str r2, [r3, #4]
  47534. /* Remember which list the item is in. This allows fast removal of the
  47535. item later. */
  47536. pxNewListItem->pxContainer = pxList;
  47537. 80141f0: 683b ldr r3, [r7, #0]
  47538. 80141f2: 687a ldr r2, [r7, #4]
  47539. 80141f4: 611a str r2, [r3, #16]
  47540. ( pxList->uxNumberOfItems )++;
  47541. 80141f6: 687b ldr r3, [r7, #4]
  47542. 80141f8: 681b ldr r3, [r3, #0]
  47543. 80141fa: 1c5a adds r2, r3, #1
  47544. 80141fc: 687b ldr r3, [r7, #4]
  47545. 80141fe: 601a str r2, [r3, #0]
  47546. }
  47547. 8014200: bf00 nop
  47548. 8014202: 3714 adds r7, #20
  47549. 8014204: 46bd mov sp, r7
  47550. 8014206: f85d 7b04 ldr.w r7, [sp], #4
  47551. 801420a: 4770 bx lr
  47552. 0801420c <uxListRemove>:
  47553. /*-----------------------------------------------------------*/
  47554. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  47555. {
  47556. 801420c: b480 push {r7}
  47557. 801420e: b085 sub sp, #20
  47558. 8014210: af00 add r7, sp, #0
  47559. 8014212: 6078 str r0, [r7, #4]
  47560. /* The list item knows which list it is in. Obtain the list from the list
  47561. item. */
  47562. List_t * const pxList = pxItemToRemove->pxContainer;
  47563. 8014214: 687b ldr r3, [r7, #4]
  47564. 8014216: 691b ldr r3, [r3, #16]
  47565. 8014218: 60fb str r3, [r7, #12]
  47566. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  47567. 801421a: 687b ldr r3, [r7, #4]
  47568. 801421c: 685b ldr r3, [r3, #4]
  47569. 801421e: 687a ldr r2, [r7, #4]
  47570. 8014220: 6892 ldr r2, [r2, #8]
  47571. 8014222: 609a str r2, [r3, #8]
  47572. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  47573. 8014224: 687b ldr r3, [r7, #4]
  47574. 8014226: 689b ldr r3, [r3, #8]
  47575. 8014228: 687a ldr r2, [r7, #4]
  47576. 801422a: 6852 ldr r2, [r2, #4]
  47577. 801422c: 605a str r2, [r3, #4]
  47578. /* Only used during decision coverage testing. */
  47579. mtCOVERAGE_TEST_DELAY();
  47580. /* Make sure the index is left pointing to a valid item. */
  47581. if( pxList->pxIndex == pxItemToRemove )
  47582. 801422e: 68fb ldr r3, [r7, #12]
  47583. 8014230: 685b ldr r3, [r3, #4]
  47584. 8014232: 687a ldr r2, [r7, #4]
  47585. 8014234: 429a cmp r2, r3
  47586. 8014236: d103 bne.n 8014240 <uxListRemove+0x34>
  47587. {
  47588. pxList->pxIndex = pxItemToRemove->pxPrevious;
  47589. 8014238: 687b ldr r3, [r7, #4]
  47590. 801423a: 689a ldr r2, [r3, #8]
  47591. 801423c: 68fb ldr r3, [r7, #12]
  47592. 801423e: 605a str r2, [r3, #4]
  47593. else
  47594. {
  47595. mtCOVERAGE_TEST_MARKER();
  47596. }
  47597. pxItemToRemove->pxContainer = NULL;
  47598. 8014240: 687b ldr r3, [r7, #4]
  47599. 8014242: 2200 movs r2, #0
  47600. 8014244: 611a str r2, [r3, #16]
  47601. ( pxList->uxNumberOfItems )--;
  47602. 8014246: 68fb ldr r3, [r7, #12]
  47603. 8014248: 681b ldr r3, [r3, #0]
  47604. 801424a: 1e5a subs r2, r3, #1
  47605. 801424c: 68fb ldr r3, [r7, #12]
  47606. 801424e: 601a str r2, [r3, #0]
  47607. return pxList->uxNumberOfItems;
  47608. 8014250: 68fb ldr r3, [r7, #12]
  47609. 8014252: 681b ldr r3, [r3, #0]
  47610. }
  47611. 8014254: 4618 mov r0, r3
  47612. 8014256: 3714 adds r7, #20
  47613. 8014258: 46bd mov sp, r7
  47614. 801425a: f85d 7b04 ldr.w r7, [sp], #4
  47615. 801425e: 4770 bx lr
  47616. 08014260 <xQueueGenericReset>:
  47617. } \
  47618. taskEXIT_CRITICAL()
  47619. /*-----------------------------------------------------------*/
  47620. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  47621. {
  47622. 8014260: b580 push {r7, lr}
  47623. 8014262: b084 sub sp, #16
  47624. 8014264: af00 add r7, sp, #0
  47625. 8014266: 6078 str r0, [r7, #4]
  47626. 8014268: 6039 str r1, [r7, #0]
  47627. Queue_t * const pxQueue = xQueue;
  47628. 801426a: 687b ldr r3, [r7, #4]
  47629. 801426c: 60fb str r3, [r7, #12]
  47630. configASSERT( pxQueue );
  47631. 801426e: 68fb ldr r3, [r7, #12]
  47632. 8014270: 2b00 cmp r3, #0
  47633. 8014272: d10b bne.n 801428c <xQueueGenericReset+0x2c>
  47634. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  47635. {
  47636. uint32_t ulNewBASEPRI;
  47637. __asm volatile
  47638. 8014274: f04f 0350 mov.w r3, #80 @ 0x50
  47639. 8014278: f383 8811 msr BASEPRI, r3
  47640. 801427c: f3bf 8f6f isb sy
  47641. 8014280: f3bf 8f4f dsb sy
  47642. 8014284: 60bb str r3, [r7, #8]
  47643. " msr basepri, %0 \n" \
  47644. " isb \n" \
  47645. " dsb \n" \
  47646. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  47647. );
  47648. }
  47649. 8014286: bf00 nop
  47650. 8014288: bf00 nop
  47651. 801428a: e7fd b.n 8014288 <xQueueGenericReset+0x28>
  47652. taskENTER_CRITICAL();
  47653. 801428c: f003 f964 bl 8017558 <vPortEnterCritical>
  47654. {
  47655. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47656. 8014290: 68fb ldr r3, [r7, #12]
  47657. 8014292: 681a ldr r2, [r3, #0]
  47658. 8014294: 68fb ldr r3, [r7, #12]
  47659. 8014296: 6bdb ldr r3, [r3, #60] @ 0x3c
  47660. 8014298: 68f9 ldr r1, [r7, #12]
  47661. 801429a: 6c09 ldr r1, [r1, #64] @ 0x40
  47662. 801429c: fb01 f303 mul.w r3, r1, r3
  47663. 80142a0: 441a add r2, r3
  47664. 80142a2: 68fb ldr r3, [r7, #12]
  47665. 80142a4: 609a str r2, [r3, #8]
  47666. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  47667. 80142a6: 68fb ldr r3, [r7, #12]
  47668. 80142a8: 2200 movs r2, #0
  47669. 80142aa: 639a str r2, [r3, #56] @ 0x38
  47670. pxQueue->pcWriteTo = pxQueue->pcHead;
  47671. 80142ac: 68fb ldr r3, [r7, #12]
  47672. 80142ae: 681a ldr r2, [r3, #0]
  47673. 80142b0: 68fb ldr r3, [r7, #12]
  47674. 80142b2: 605a str r2, [r3, #4]
  47675. 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. */
  47676. 80142b4: 68fb ldr r3, [r7, #12]
  47677. 80142b6: 681a ldr r2, [r3, #0]
  47678. 80142b8: 68fb ldr r3, [r7, #12]
  47679. 80142ba: 6bdb ldr r3, [r3, #60] @ 0x3c
  47680. 80142bc: 3b01 subs r3, #1
  47681. 80142be: 68f9 ldr r1, [r7, #12]
  47682. 80142c0: 6c09 ldr r1, [r1, #64] @ 0x40
  47683. 80142c2: fb01 f303 mul.w r3, r1, r3
  47684. 80142c6: 441a add r2, r3
  47685. 80142c8: 68fb ldr r3, [r7, #12]
  47686. 80142ca: 60da str r2, [r3, #12]
  47687. pxQueue->cRxLock = queueUNLOCKED;
  47688. 80142cc: 68fb ldr r3, [r7, #12]
  47689. 80142ce: 22ff movs r2, #255 @ 0xff
  47690. 80142d0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  47691. pxQueue->cTxLock = queueUNLOCKED;
  47692. 80142d4: 68fb ldr r3, [r7, #12]
  47693. 80142d6: 22ff movs r2, #255 @ 0xff
  47694. 80142d8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  47695. if( xNewQueue == pdFALSE )
  47696. 80142dc: 683b ldr r3, [r7, #0]
  47697. 80142de: 2b00 cmp r3, #0
  47698. 80142e0: d114 bne.n 801430c <xQueueGenericReset+0xac>
  47699. /* If there are tasks blocked waiting to read from the queue, then
  47700. the tasks will remain blocked as after this function exits the queue
  47701. will still be empty. If there are tasks blocked waiting to write to
  47702. the queue, then one should be unblocked as after this function exits
  47703. it will be possible to write to it. */
  47704. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  47705. 80142e2: 68fb ldr r3, [r7, #12]
  47706. 80142e4: 691b ldr r3, [r3, #16]
  47707. 80142e6: 2b00 cmp r3, #0
  47708. 80142e8: d01a beq.n 8014320 <xQueueGenericReset+0xc0>
  47709. {
  47710. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  47711. 80142ea: 68fb ldr r3, [r7, #12]
  47712. 80142ec: 3310 adds r3, #16
  47713. 80142ee: 4618 mov r0, r3
  47714. 80142f0: f001 fdac bl 8015e4c <xTaskRemoveFromEventList>
  47715. 80142f4: 4603 mov r3, r0
  47716. 80142f6: 2b00 cmp r3, #0
  47717. 80142f8: d012 beq.n 8014320 <xQueueGenericReset+0xc0>
  47718. {
  47719. queueYIELD_IF_USING_PREEMPTION();
  47720. 80142fa: 4b0d ldr r3, [pc, #52] @ (8014330 <xQueueGenericReset+0xd0>)
  47721. 80142fc: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47722. 8014300: 601a str r2, [r3, #0]
  47723. 8014302: f3bf 8f4f dsb sy
  47724. 8014306: f3bf 8f6f isb sy
  47725. 801430a: e009 b.n 8014320 <xQueueGenericReset+0xc0>
  47726. }
  47727. }
  47728. else
  47729. {
  47730. /* Ensure the event queues start in the correct state. */
  47731. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  47732. 801430c: 68fb ldr r3, [r7, #12]
  47733. 801430e: 3310 adds r3, #16
  47734. 8014310: 4618 mov r0, r3
  47735. 8014312: f7ff fef1 bl 80140f8 <vListInitialise>
  47736. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  47737. 8014316: 68fb ldr r3, [r7, #12]
  47738. 8014318: 3324 adds r3, #36 @ 0x24
  47739. 801431a: 4618 mov r0, r3
  47740. 801431c: f7ff feec bl 80140f8 <vListInitialise>
  47741. }
  47742. }
  47743. taskEXIT_CRITICAL();
  47744. 8014320: f003 f94c bl 80175bc <vPortExitCritical>
  47745. /* A value is returned for calling semantic consistency with previous
  47746. versions. */
  47747. return pdPASS;
  47748. 8014324: 2301 movs r3, #1
  47749. }
  47750. 8014326: 4618 mov r0, r3
  47751. 8014328: 3710 adds r7, #16
  47752. 801432a: 46bd mov sp, r7
  47753. 801432c: bd80 pop {r7, pc}
  47754. 801432e: bf00 nop
  47755. 8014330: e000ed04 .word 0xe000ed04
  47756. 08014334 <xQueueGenericCreateStatic>:
  47757. /*-----------------------------------------------------------*/
  47758. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47759. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  47760. {
  47761. 8014334: b580 push {r7, lr}
  47762. 8014336: b08e sub sp, #56 @ 0x38
  47763. 8014338: af02 add r7, sp, #8
  47764. 801433a: 60f8 str r0, [r7, #12]
  47765. 801433c: 60b9 str r1, [r7, #8]
  47766. 801433e: 607a str r2, [r7, #4]
  47767. 8014340: 603b str r3, [r7, #0]
  47768. Queue_t *pxNewQueue;
  47769. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47770. 8014342: 68fb ldr r3, [r7, #12]
  47771. 8014344: 2b00 cmp r3, #0
  47772. 8014346: d10b bne.n 8014360 <xQueueGenericCreateStatic+0x2c>
  47773. __asm volatile
  47774. 8014348: f04f 0350 mov.w r3, #80 @ 0x50
  47775. 801434c: f383 8811 msr BASEPRI, r3
  47776. 8014350: f3bf 8f6f isb sy
  47777. 8014354: f3bf 8f4f dsb sy
  47778. 8014358: 62bb str r3, [r7, #40] @ 0x28
  47779. }
  47780. 801435a: bf00 nop
  47781. 801435c: bf00 nop
  47782. 801435e: e7fd b.n 801435c <xQueueGenericCreateStatic+0x28>
  47783. /* The StaticQueue_t structure and the queue storage area must be
  47784. supplied. */
  47785. configASSERT( pxStaticQueue != NULL );
  47786. 8014360: 683b ldr r3, [r7, #0]
  47787. 8014362: 2b00 cmp r3, #0
  47788. 8014364: d10b bne.n 801437e <xQueueGenericCreateStatic+0x4a>
  47789. __asm volatile
  47790. 8014366: f04f 0350 mov.w r3, #80 @ 0x50
  47791. 801436a: f383 8811 msr BASEPRI, r3
  47792. 801436e: f3bf 8f6f isb sy
  47793. 8014372: f3bf 8f4f dsb sy
  47794. 8014376: 627b str r3, [r7, #36] @ 0x24
  47795. }
  47796. 8014378: bf00 nop
  47797. 801437a: bf00 nop
  47798. 801437c: e7fd b.n 801437a <xQueueGenericCreateStatic+0x46>
  47799. /* A queue storage area should be provided if the item size is not 0, and
  47800. should not be provided if the item size is 0. */
  47801. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  47802. 801437e: 687b ldr r3, [r7, #4]
  47803. 8014380: 2b00 cmp r3, #0
  47804. 8014382: d002 beq.n 801438a <xQueueGenericCreateStatic+0x56>
  47805. 8014384: 68bb ldr r3, [r7, #8]
  47806. 8014386: 2b00 cmp r3, #0
  47807. 8014388: d001 beq.n 801438e <xQueueGenericCreateStatic+0x5a>
  47808. 801438a: 2301 movs r3, #1
  47809. 801438c: e000 b.n 8014390 <xQueueGenericCreateStatic+0x5c>
  47810. 801438e: 2300 movs r3, #0
  47811. 8014390: 2b00 cmp r3, #0
  47812. 8014392: d10b bne.n 80143ac <xQueueGenericCreateStatic+0x78>
  47813. __asm volatile
  47814. 8014394: f04f 0350 mov.w r3, #80 @ 0x50
  47815. 8014398: f383 8811 msr BASEPRI, r3
  47816. 801439c: f3bf 8f6f isb sy
  47817. 80143a0: f3bf 8f4f dsb sy
  47818. 80143a4: 623b str r3, [r7, #32]
  47819. }
  47820. 80143a6: bf00 nop
  47821. 80143a8: bf00 nop
  47822. 80143aa: e7fd b.n 80143a8 <xQueueGenericCreateStatic+0x74>
  47823. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  47824. 80143ac: 687b ldr r3, [r7, #4]
  47825. 80143ae: 2b00 cmp r3, #0
  47826. 80143b0: d102 bne.n 80143b8 <xQueueGenericCreateStatic+0x84>
  47827. 80143b2: 68bb ldr r3, [r7, #8]
  47828. 80143b4: 2b00 cmp r3, #0
  47829. 80143b6: d101 bne.n 80143bc <xQueueGenericCreateStatic+0x88>
  47830. 80143b8: 2301 movs r3, #1
  47831. 80143ba: e000 b.n 80143be <xQueueGenericCreateStatic+0x8a>
  47832. 80143bc: 2300 movs r3, #0
  47833. 80143be: 2b00 cmp r3, #0
  47834. 80143c0: d10b bne.n 80143da <xQueueGenericCreateStatic+0xa6>
  47835. __asm volatile
  47836. 80143c2: f04f 0350 mov.w r3, #80 @ 0x50
  47837. 80143c6: f383 8811 msr BASEPRI, r3
  47838. 80143ca: f3bf 8f6f isb sy
  47839. 80143ce: f3bf 8f4f dsb sy
  47840. 80143d2: 61fb str r3, [r7, #28]
  47841. }
  47842. 80143d4: bf00 nop
  47843. 80143d6: bf00 nop
  47844. 80143d8: e7fd b.n 80143d6 <xQueueGenericCreateStatic+0xa2>
  47845. #if( configASSERT_DEFINED == 1 )
  47846. {
  47847. /* Sanity check that the size of the structure used to declare a
  47848. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  47849. the real queue and semaphore structures. */
  47850. volatile size_t xSize = sizeof( StaticQueue_t );
  47851. 80143da: 2350 movs r3, #80 @ 0x50
  47852. 80143dc: 617b str r3, [r7, #20]
  47853. configASSERT( xSize == sizeof( Queue_t ) );
  47854. 80143de: 697b ldr r3, [r7, #20]
  47855. 80143e0: 2b50 cmp r3, #80 @ 0x50
  47856. 80143e2: d00b beq.n 80143fc <xQueueGenericCreateStatic+0xc8>
  47857. __asm volatile
  47858. 80143e4: f04f 0350 mov.w r3, #80 @ 0x50
  47859. 80143e8: f383 8811 msr BASEPRI, r3
  47860. 80143ec: f3bf 8f6f isb sy
  47861. 80143f0: f3bf 8f4f dsb sy
  47862. 80143f4: 61bb str r3, [r7, #24]
  47863. }
  47864. 80143f6: bf00 nop
  47865. 80143f8: bf00 nop
  47866. 80143fa: e7fd b.n 80143f8 <xQueueGenericCreateStatic+0xc4>
  47867. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  47868. 80143fc: 697b ldr r3, [r7, #20]
  47869. #endif /* configASSERT_DEFINED */
  47870. /* The address of a statically allocated queue was passed in, use it.
  47871. The address of a statically allocated storage area was also passed in
  47872. but is already set. */
  47873. 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. */
  47874. 80143fe: 683b ldr r3, [r7, #0]
  47875. 8014400: 62fb str r3, [r7, #44] @ 0x2c
  47876. if( pxNewQueue != NULL )
  47877. 8014402: 6afb ldr r3, [r7, #44] @ 0x2c
  47878. 8014404: 2b00 cmp r3, #0
  47879. 8014406: d00d beq.n 8014424 <xQueueGenericCreateStatic+0xf0>
  47880. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47881. {
  47882. /* Queues can be allocated wither statically or dynamically, so
  47883. note this queue was allocated statically in case the queue is
  47884. later deleted. */
  47885. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  47886. 8014408: 6afb ldr r3, [r7, #44] @ 0x2c
  47887. 801440a: 2201 movs r2, #1
  47888. 801440c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47889. }
  47890. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  47891. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47892. 8014410: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  47893. 8014414: 6afb ldr r3, [r7, #44] @ 0x2c
  47894. 8014416: 9300 str r3, [sp, #0]
  47895. 8014418: 4613 mov r3, r2
  47896. 801441a: 687a ldr r2, [r7, #4]
  47897. 801441c: 68b9 ldr r1, [r7, #8]
  47898. 801441e: 68f8 ldr r0, [r7, #12]
  47899. 8014420: f000 f840 bl 80144a4 <prvInitialiseNewQueue>
  47900. {
  47901. traceQUEUE_CREATE_FAILED( ucQueueType );
  47902. mtCOVERAGE_TEST_MARKER();
  47903. }
  47904. return pxNewQueue;
  47905. 8014424: 6afb ldr r3, [r7, #44] @ 0x2c
  47906. }
  47907. 8014426: 4618 mov r0, r3
  47908. 8014428: 3730 adds r7, #48 @ 0x30
  47909. 801442a: 46bd mov sp, r7
  47910. 801442c: bd80 pop {r7, pc}
  47911. 0801442e <xQueueGenericCreate>:
  47912. /*-----------------------------------------------------------*/
  47913. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47914. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  47915. {
  47916. 801442e: b580 push {r7, lr}
  47917. 8014430: b08a sub sp, #40 @ 0x28
  47918. 8014432: af02 add r7, sp, #8
  47919. 8014434: 60f8 str r0, [r7, #12]
  47920. 8014436: 60b9 str r1, [r7, #8]
  47921. 8014438: 4613 mov r3, r2
  47922. 801443a: 71fb strb r3, [r7, #7]
  47923. Queue_t *pxNewQueue;
  47924. size_t xQueueSizeInBytes;
  47925. uint8_t *pucQueueStorage;
  47926. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47927. 801443c: 68fb ldr r3, [r7, #12]
  47928. 801443e: 2b00 cmp r3, #0
  47929. 8014440: d10b bne.n 801445a <xQueueGenericCreate+0x2c>
  47930. __asm volatile
  47931. 8014442: f04f 0350 mov.w r3, #80 @ 0x50
  47932. 8014446: f383 8811 msr BASEPRI, r3
  47933. 801444a: f3bf 8f6f isb sy
  47934. 801444e: f3bf 8f4f dsb sy
  47935. 8014452: 613b str r3, [r7, #16]
  47936. }
  47937. 8014454: bf00 nop
  47938. 8014456: bf00 nop
  47939. 8014458: e7fd b.n 8014456 <xQueueGenericCreate+0x28>
  47940. /* Allocate enough space to hold the maximum number of items that
  47941. can be in the queue at any time. It is valid for uxItemSize to be
  47942. zero in the case the queue is used as a semaphore. */
  47943. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  47944. 801445a: 68fb ldr r3, [r7, #12]
  47945. 801445c: 68ba ldr r2, [r7, #8]
  47946. 801445e: fb02 f303 mul.w r3, r2, r3
  47947. 8014462: 61fb str r3, [r7, #28]
  47948. alignment requirements of the Queue_t structure - which in this case
  47949. is an int8_t *. Therefore, whenever the stack alignment requirements
  47950. are greater than or equal to the pointer to char requirements the cast
  47951. is safe. In other cases alignment requirements are not strict (one or
  47952. two bytes). */
  47953. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  47954. 8014464: 69fb ldr r3, [r7, #28]
  47955. 8014466: 3350 adds r3, #80 @ 0x50
  47956. 8014468: 4618 mov r0, r3
  47957. 801446a: f003 f997 bl 801779c <pvPortMalloc>
  47958. 801446e: 61b8 str r0, [r7, #24]
  47959. if( pxNewQueue != NULL )
  47960. 8014470: 69bb ldr r3, [r7, #24]
  47961. 8014472: 2b00 cmp r3, #0
  47962. 8014474: d011 beq.n 801449a <xQueueGenericCreate+0x6c>
  47963. {
  47964. /* Jump past the queue structure to find the location of the queue
  47965. storage area. */
  47966. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  47967. 8014476: 69bb ldr r3, [r7, #24]
  47968. 8014478: 617b str r3, [r7, #20]
  47969. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47970. 801447a: 697b ldr r3, [r7, #20]
  47971. 801447c: 3350 adds r3, #80 @ 0x50
  47972. 801447e: 617b str r3, [r7, #20]
  47973. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47974. {
  47975. /* Queues can be created either statically or dynamically, so
  47976. note this task was created dynamically in case it is later
  47977. deleted. */
  47978. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  47979. 8014480: 69bb ldr r3, [r7, #24]
  47980. 8014482: 2200 movs r2, #0
  47981. 8014484: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47982. }
  47983. #endif /* configSUPPORT_STATIC_ALLOCATION */
  47984. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47985. 8014488: 79fa ldrb r2, [r7, #7]
  47986. 801448a: 69bb ldr r3, [r7, #24]
  47987. 801448c: 9300 str r3, [sp, #0]
  47988. 801448e: 4613 mov r3, r2
  47989. 8014490: 697a ldr r2, [r7, #20]
  47990. 8014492: 68b9 ldr r1, [r7, #8]
  47991. 8014494: 68f8 ldr r0, [r7, #12]
  47992. 8014496: f000 f805 bl 80144a4 <prvInitialiseNewQueue>
  47993. {
  47994. traceQUEUE_CREATE_FAILED( ucQueueType );
  47995. mtCOVERAGE_TEST_MARKER();
  47996. }
  47997. return pxNewQueue;
  47998. 801449a: 69bb ldr r3, [r7, #24]
  47999. }
  48000. 801449c: 4618 mov r0, r3
  48001. 801449e: 3720 adds r7, #32
  48002. 80144a0: 46bd mov sp, r7
  48003. 80144a2: bd80 pop {r7, pc}
  48004. 080144a4 <prvInitialiseNewQueue>:
  48005. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48006. /*-----------------------------------------------------------*/
  48007. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  48008. {
  48009. 80144a4: b580 push {r7, lr}
  48010. 80144a6: b084 sub sp, #16
  48011. 80144a8: af00 add r7, sp, #0
  48012. 80144aa: 60f8 str r0, [r7, #12]
  48013. 80144ac: 60b9 str r1, [r7, #8]
  48014. 80144ae: 607a str r2, [r7, #4]
  48015. 80144b0: 70fb strb r3, [r7, #3]
  48016. /* Remove compiler warnings about unused parameters should
  48017. configUSE_TRACE_FACILITY not be set to 1. */
  48018. ( void ) ucQueueType;
  48019. if( uxItemSize == ( UBaseType_t ) 0 )
  48020. 80144b2: 68bb ldr r3, [r7, #8]
  48021. 80144b4: 2b00 cmp r3, #0
  48022. 80144b6: d103 bne.n 80144c0 <prvInitialiseNewQueue+0x1c>
  48023. {
  48024. /* No RAM was allocated for the queue storage area, but PC head cannot
  48025. be set to NULL because NULL is used as a key to say the queue is used as
  48026. a mutex. Therefore just set pcHead to point to the queue as a benign
  48027. value that is known to be within the memory map. */
  48028. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  48029. 80144b8: 69bb ldr r3, [r7, #24]
  48030. 80144ba: 69ba ldr r2, [r7, #24]
  48031. 80144bc: 601a str r2, [r3, #0]
  48032. 80144be: e002 b.n 80144c6 <prvInitialiseNewQueue+0x22>
  48033. }
  48034. else
  48035. {
  48036. /* Set the head to the start of the queue storage area. */
  48037. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  48038. 80144c0: 69bb ldr r3, [r7, #24]
  48039. 80144c2: 687a ldr r2, [r7, #4]
  48040. 80144c4: 601a str r2, [r3, #0]
  48041. }
  48042. /* Initialise the queue members as described where the queue type is
  48043. defined. */
  48044. pxNewQueue->uxLength = uxQueueLength;
  48045. 80144c6: 69bb ldr r3, [r7, #24]
  48046. 80144c8: 68fa ldr r2, [r7, #12]
  48047. 80144ca: 63da str r2, [r3, #60] @ 0x3c
  48048. pxNewQueue->uxItemSize = uxItemSize;
  48049. 80144cc: 69bb ldr r3, [r7, #24]
  48050. 80144ce: 68ba ldr r2, [r7, #8]
  48051. 80144d0: 641a str r2, [r3, #64] @ 0x40
  48052. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  48053. 80144d2: 2101 movs r1, #1
  48054. 80144d4: 69b8 ldr r0, [r7, #24]
  48055. 80144d6: f7ff fec3 bl 8014260 <xQueueGenericReset>
  48056. #if ( configUSE_TRACE_FACILITY == 1 )
  48057. {
  48058. pxNewQueue->ucQueueType = ucQueueType;
  48059. 80144da: 69bb ldr r3, [r7, #24]
  48060. 80144dc: 78fa ldrb r2, [r7, #3]
  48061. 80144de: f883 204c strb.w r2, [r3, #76] @ 0x4c
  48062. pxNewQueue->pxQueueSetContainer = NULL;
  48063. }
  48064. #endif /* configUSE_QUEUE_SETS */
  48065. traceQUEUE_CREATE( pxNewQueue );
  48066. }
  48067. 80144e2: bf00 nop
  48068. 80144e4: 3710 adds r7, #16
  48069. 80144e6: 46bd mov sp, r7
  48070. 80144e8: bd80 pop {r7, pc}
  48071. 080144ea <prvInitialiseMutex>:
  48072. /*-----------------------------------------------------------*/
  48073. #if( configUSE_MUTEXES == 1 )
  48074. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  48075. {
  48076. 80144ea: b580 push {r7, lr}
  48077. 80144ec: b082 sub sp, #8
  48078. 80144ee: af00 add r7, sp, #0
  48079. 80144f0: 6078 str r0, [r7, #4]
  48080. if( pxNewQueue != NULL )
  48081. 80144f2: 687b ldr r3, [r7, #4]
  48082. 80144f4: 2b00 cmp r3, #0
  48083. 80144f6: d00e beq.n 8014516 <prvInitialiseMutex+0x2c>
  48084. {
  48085. /* The queue create function will set all the queue structure members
  48086. correctly for a generic queue, but this function is creating a
  48087. mutex. Overwrite those members that need to be set differently -
  48088. in particular the information required for priority inheritance. */
  48089. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  48090. 80144f8: 687b ldr r3, [r7, #4]
  48091. 80144fa: 2200 movs r2, #0
  48092. 80144fc: 609a str r2, [r3, #8]
  48093. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  48094. 80144fe: 687b ldr r3, [r7, #4]
  48095. 8014500: 2200 movs r2, #0
  48096. 8014502: 601a str r2, [r3, #0]
  48097. /* In case this is a recursive mutex. */
  48098. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  48099. 8014504: 687b ldr r3, [r7, #4]
  48100. 8014506: 2200 movs r2, #0
  48101. 8014508: 60da str r2, [r3, #12]
  48102. traceCREATE_MUTEX( pxNewQueue );
  48103. /* Start with the semaphore in the expected state. */
  48104. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  48105. 801450a: 2300 movs r3, #0
  48106. 801450c: 2200 movs r2, #0
  48107. 801450e: 2100 movs r1, #0
  48108. 8014510: 6878 ldr r0, [r7, #4]
  48109. 8014512: f000 f8a3 bl 801465c <xQueueGenericSend>
  48110. }
  48111. else
  48112. {
  48113. traceCREATE_MUTEX_FAILED();
  48114. }
  48115. }
  48116. 8014516: bf00 nop
  48117. 8014518: 3708 adds r7, #8
  48118. 801451a: 46bd mov sp, r7
  48119. 801451c: bd80 pop {r7, pc}
  48120. 0801451e <xQueueCreateMutex>:
  48121. /*-----------------------------------------------------------*/
  48122. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  48123. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  48124. {
  48125. 801451e: b580 push {r7, lr}
  48126. 8014520: b086 sub sp, #24
  48127. 8014522: af00 add r7, sp, #0
  48128. 8014524: 4603 mov r3, r0
  48129. 8014526: 71fb strb r3, [r7, #7]
  48130. QueueHandle_t xNewQueue;
  48131. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  48132. 8014528: 2301 movs r3, #1
  48133. 801452a: 617b str r3, [r7, #20]
  48134. 801452c: 2300 movs r3, #0
  48135. 801452e: 613b str r3, [r7, #16]
  48136. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  48137. 8014530: 79fb ldrb r3, [r7, #7]
  48138. 8014532: 461a mov r2, r3
  48139. 8014534: 6939 ldr r1, [r7, #16]
  48140. 8014536: 6978 ldr r0, [r7, #20]
  48141. 8014538: f7ff ff79 bl 801442e <xQueueGenericCreate>
  48142. 801453c: 60f8 str r0, [r7, #12]
  48143. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  48144. 801453e: 68f8 ldr r0, [r7, #12]
  48145. 8014540: f7ff ffd3 bl 80144ea <prvInitialiseMutex>
  48146. return xNewQueue;
  48147. 8014544: 68fb ldr r3, [r7, #12]
  48148. }
  48149. 8014546: 4618 mov r0, r3
  48150. 8014548: 3718 adds r7, #24
  48151. 801454a: 46bd mov sp, r7
  48152. 801454c: bd80 pop {r7, pc}
  48153. 0801454e <xQueueCreateMutexStatic>:
  48154. /*-----------------------------------------------------------*/
  48155. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  48156. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  48157. {
  48158. 801454e: b580 push {r7, lr}
  48159. 8014550: b088 sub sp, #32
  48160. 8014552: af02 add r7, sp, #8
  48161. 8014554: 4603 mov r3, r0
  48162. 8014556: 6039 str r1, [r7, #0]
  48163. 8014558: 71fb strb r3, [r7, #7]
  48164. QueueHandle_t xNewQueue;
  48165. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  48166. 801455a: 2301 movs r3, #1
  48167. 801455c: 617b str r3, [r7, #20]
  48168. 801455e: 2300 movs r3, #0
  48169. 8014560: 613b str r3, [r7, #16]
  48170. /* Prevent compiler warnings about unused parameters if
  48171. configUSE_TRACE_FACILITY does not equal 1. */
  48172. ( void ) ucQueueType;
  48173. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  48174. 8014562: 79fb ldrb r3, [r7, #7]
  48175. 8014564: 9300 str r3, [sp, #0]
  48176. 8014566: 683b ldr r3, [r7, #0]
  48177. 8014568: 2200 movs r2, #0
  48178. 801456a: 6939 ldr r1, [r7, #16]
  48179. 801456c: 6978 ldr r0, [r7, #20]
  48180. 801456e: f7ff fee1 bl 8014334 <xQueueGenericCreateStatic>
  48181. 8014572: 60f8 str r0, [r7, #12]
  48182. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  48183. 8014574: 68f8 ldr r0, [r7, #12]
  48184. 8014576: f7ff ffb8 bl 80144ea <prvInitialiseMutex>
  48185. return xNewQueue;
  48186. 801457a: 68fb ldr r3, [r7, #12]
  48187. }
  48188. 801457c: 4618 mov r0, r3
  48189. 801457e: 3718 adds r7, #24
  48190. 8014580: 46bd mov sp, r7
  48191. 8014582: bd80 pop {r7, pc}
  48192. 08014584 <xQueueGiveMutexRecursive>:
  48193. /*-----------------------------------------------------------*/
  48194. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  48195. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  48196. {
  48197. 8014584: b590 push {r4, r7, lr}
  48198. 8014586: b087 sub sp, #28
  48199. 8014588: af00 add r7, sp, #0
  48200. 801458a: 6078 str r0, [r7, #4]
  48201. BaseType_t xReturn;
  48202. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  48203. 801458c: 687b ldr r3, [r7, #4]
  48204. 801458e: 613b str r3, [r7, #16]
  48205. configASSERT( pxMutex );
  48206. 8014590: 693b ldr r3, [r7, #16]
  48207. 8014592: 2b00 cmp r3, #0
  48208. 8014594: d10b bne.n 80145ae <xQueueGiveMutexRecursive+0x2a>
  48209. __asm volatile
  48210. 8014596: f04f 0350 mov.w r3, #80 @ 0x50
  48211. 801459a: f383 8811 msr BASEPRI, r3
  48212. 801459e: f3bf 8f6f isb sy
  48213. 80145a2: f3bf 8f4f dsb sy
  48214. 80145a6: 60fb str r3, [r7, #12]
  48215. }
  48216. 80145a8: bf00 nop
  48217. 80145aa: bf00 nop
  48218. 80145ac: e7fd b.n 80145aa <xQueueGiveMutexRecursive+0x26>
  48219. change outside of this task. If this task does not hold the mutex then
  48220. pxMutexHolder can never coincidentally equal the tasks handle, and as
  48221. this is the only condition we are interested in it does not matter if
  48222. pxMutexHolder is accessed simultaneously by another task. Therefore no
  48223. mutual exclusion is required to test the pxMutexHolder variable. */
  48224. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  48225. 80145ae: 693b ldr r3, [r7, #16]
  48226. 80145b0: 689c ldr r4, [r3, #8]
  48227. 80145b2: f001 fe39 bl 8016228 <xTaskGetCurrentTaskHandle>
  48228. 80145b6: 4603 mov r3, r0
  48229. 80145b8: 429c cmp r4, r3
  48230. 80145ba: d111 bne.n 80145e0 <xQueueGiveMutexRecursive+0x5c>
  48231. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  48232. the task handle, therefore no underflow check is required. Also,
  48233. uxRecursiveCallCount is only modified by the mutex holder, and as
  48234. there can only be one, no mutual exclusion is required to modify the
  48235. uxRecursiveCallCount member. */
  48236. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  48237. 80145bc: 693b ldr r3, [r7, #16]
  48238. 80145be: 68db ldr r3, [r3, #12]
  48239. 80145c0: 1e5a subs r2, r3, #1
  48240. 80145c2: 693b ldr r3, [r7, #16]
  48241. 80145c4: 60da str r2, [r3, #12]
  48242. /* Has the recursive call count unwound to 0? */
  48243. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  48244. 80145c6: 693b ldr r3, [r7, #16]
  48245. 80145c8: 68db ldr r3, [r3, #12]
  48246. 80145ca: 2b00 cmp r3, #0
  48247. 80145cc: d105 bne.n 80145da <xQueueGiveMutexRecursive+0x56>
  48248. {
  48249. /* Return the mutex. This will automatically unblock any other
  48250. task that might be waiting to access the mutex. */
  48251. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  48252. 80145ce: 2300 movs r3, #0
  48253. 80145d0: 2200 movs r2, #0
  48254. 80145d2: 2100 movs r1, #0
  48255. 80145d4: 6938 ldr r0, [r7, #16]
  48256. 80145d6: f000 f841 bl 801465c <xQueueGenericSend>
  48257. else
  48258. {
  48259. mtCOVERAGE_TEST_MARKER();
  48260. }
  48261. xReturn = pdPASS;
  48262. 80145da: 2301 movs r3, #1
  48263. 80145dc: 617b str r3, [r7, #20]
  48264. 80145de: e001 b.n 80145e4 <xQueueGiveMutexRecursive+0x60>
  48265. }
  48266. else
  48267. {
  48268. /* The mutex cannot be given because the calling task is not the
  48269. holder. */
  48270. xReturn = pdFAIL;
  48271. 80145e0: 2300 movs r3, #0
  48272. 80145e2: 617b str r3, [r7, #20]
  48273. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  48274. }
  48275. return xReturn;
  48276. 80145e4: 697b ldr r3, [r7, #20]
  48277. }
  48278. 80145e6: 4618 mov r0, r3
  48279. 80145e8: 371c adds r7, #28
  48280. 80145ea: 46bd mov sp, r7
  48281. 80145ec: bd90 pop {r4, r7, pc}
  48282. 080145ee <xQueueTakeMutexRecursive>:
  48283. /*-----------------------------------------------------------*/
  48284. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  48285. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  48286. {
  48287. 80145ee: b590 push {r4, r7, lr}
  48288. 80145f0: b087 sub sp, #28
  48289. 80145f2: af00 add r7, sp, #0
  48290. 80145f4: 6078 str r0, [r7, #4]
  48291. 80145f6: 6039 str r1, [r7, #0]
  48292. BaseType_t xReturn;
  48293. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  48294. 80145f8: 687b ldr r3, [r7, #4]
  48295. 80145fa: 613b str r3, [r7, #16]
  48296. configASSERT( pxMutex );
  48297. 80145fc: 693b ldr r3, [r7, #16]
  48298. 80145fe: 2b00 cmp r3, #0
  48299. 8014600: d10b bne.n 801461a <xQueueTakeMutexRecursive+0x2c>
  48300. __asm volatile
  48301. 8014602: f04f 0350 mov.w r3, #80 @ 0x50
  48302. 8014606: f383 8811 msr BASEPRI, r3
  48303. 801460a: f3bf 8f6f isb sy
  48304. 801460e: f3bf 8f4f dsb sy
  48305. 8014612: 60fb str r3, [r7, #12]
  48306. }
  48307. 8014614: bf00 nop
  48308. 8014616: bf00 nop
  48309. 8014618: e7fd b.n 8014616 <xQueueTakeMutexRecursive+0x28>
  48310. /* Comments regarding mutual exclusion as per those within
  48311. xQueueGiveMutexRecursive(). */
  48312. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  48313. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  48314. 801461a: 693b ldr r3, [r7, #16]
  48315. 801461c: 689c ldr r4, [r3, #8]
  48316. 801461e: f001 fe03 bl 8016228 <xTaskGetCurrentTaskHandle>
  48317. 8014622: 4603 mov r3, r0
  48318. 8014624: 429c cmp r4, r3
  48319. 8014626: d107 bne.n 8014638 <xQueueTakeMutexRecursive+0x4a>
  48320. {
  48321. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  48322. 8014628: 693b ldr r3, [r7, #16]
  48323. 801462a: 68db ldr r3, [r3, #12]
  48324. 801462c: 1c5a adds r2, r3, #1
  48325. 801462e: 693b ldr r3, [r7, #16]
  48326. 8014630: 60da str r2, [r3, #12]
  48327. xReturn = pdPASS;
  48328. 8014632: 2301 movs r3, #1
  48329. 8014634: 617b str r3, [r7, #20]
  48330. 8014636: e00c b.n 8014652 <xQueueTakeMutexRecursive+0x64>
  48331. }
  48332. else
  48333. {
  48334. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  48335. 8014638: 6839 ldr r1, [r7, #0]
  48336. 801463a: 6938 ldr r0, [r7, #16]
  48337. 801463c: f000 fa90 bl 8014b60 <xQueueSemaphoreTake>
  48338. 8014640: 6178 str r0, [r7, #20]
  48339. /* pdPASS will only be returned if the mutex was successfully
  48340. obtained. The calling task may have entered the Blocked state
  48341. before reaching here. */
  48342. if( xReturn != pdFAIL )
  48343. 8014642: 697b ldr r3, [r7, #20]
  48344. 8014644: 2b00 cmp r3, #0
  48345. 8014646: d004 beq.n 8014652 <xQueueTakeMutexRecursive+0x64>
  48346. {
  48347. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  48348. 8014648: 693b ldr r3, [r7, #16]
  48349. 801464a: 68db ldr r3, [r3, #12]
  48350. 801464c: 1c5a adds r2, r3, #1
  48351. 801464e: 693b ldr r3, [r7, #16]
  48352. 8014650: 60da str r2, [r3, #12]
  48353. {
  48354. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  48355. }
  48356. }
  48357. return xReturn;
  48358. 8014652: 697b ldr r3, [r7, #20]
  48359. }
  48360. 8014654: 4618 mov r0, r3
  48361. 8014656: 371c adds r7, #28
  48362. 8014658: 46bd mov sp, r7
  48363. 801465a: bd90 pop {r4, r7, pc}
  48364. 0801465c <xQueueGenericSend>:
  48365. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  48366. /*-----------------------------------------------------------*/
  48367. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  48368. {
  48369. 801465c: b580 push {r7, lr}
  48370. 801465e: b08e sub sp, #56 @ 0x38
  48371. 8014660: af00 add r7, sp, #0
  48372. 8014662: 60f8 str r0, [r7, #12]
  48373. 8014664: 60b9 str r1, [r7, #8]
  48374. 8014666: 607a str r2, [r7, #4]
  48375. 8014668: 603b str r3, [r7, #0]
  48376. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  48377. 801466a: 2300 movs r3, #0
  48378. 801466c: 637b str r3, [r7, #52] @ 0x34
  48379. TimeOut_t xTimeOut;
  48380. Queue_t * const pxQueue = xQueue;
  48381. 801466e: 68fb ldr r3, [r7, #12]
  48382. 8014670: 633b str r3, [r7, #48] @ 0x30
  48383. configASSERT( pxQueue );
  48384. 8014672: 6b3b ldr r3, [r7, #48] @ 0x30
  48385. 8014674: 2b00 cmp r3, #0
  48386. 8014676: d10b bne.n 8014690 <xQueueGenericSend+0x34>
  48387. __asm volatile
  48388. 8014678: f04f 0350 mov.w r3, #80 @ 0x50
  48389. 801467c: f383 8811 msr BASEPRI, r3
  48390. 8014680: f3bf 8f6f isb sy
  48391. 8014684: f3bf 8f4f dsb sy
  48392. 8014688: 62bb str r3, [r7, #40] @ 0x28
  48393. }
  48394. 801468a: bf00 nop
  48395. 801468c: bf00 nop
  48396. 801468e: e7fd b.n 801468c <xQueueGenericSend+0x30>
  48397. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48398. 8014690: 68bb ldr r3, [r7, #8]
  48399. 8014692: 2b00 cmp r3, #0
  48400. 8014694: d103 bne.n 801469e <xQueueGenericSend+0x42>
  48401. 8014696: 6b3b ldr r3, [r7, #48] @ 0x30
  48402. 8014698: 6c1b ldr r3, [r3, #64] @ 0x40
  48403. 801469a: 2b00 cmp r3, #0
  48404. 801469c: d101 bne.n 80146a2 <xQueueGenericSend+0x46>
  48405. 801469e: 2301 movs r3, #1
  48406. 80146a0: e000 b.n 80146a4 <xQueueGenericSend+0x48>
  48407. 80146a2: 2300 movs r3, #0
  48408. 80146a4: 2b00 cmp r3, #0
  48409. 80146a6: d10b bne.n 80146c0 <xQueueGenericSend+0x64>
  48410. __asm volatile
  48411. 80146a8: f04f 0350 mov.w r3, #80 @ 0x50
  48412. 80146ac: f383 8811 msr BASEPRI, r3
  48413. 80146b0: f3bf 8f6f isb sy
  48414. 80146b4: f3bf 8f4f dsb sy
  48415. 80146b8: 627b str r3, [r7, #36] @ 0x24
  48416. }
  48417. 80146ba: bf00 nop
  48418. 80146bc: bf00 nop
  48419. 80146be: e7fd b.n 80146bc <xQueueGenericSend+0x60>
  48420. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  48421. 80146c0: 683b ldr r3, [r7, #0]
  48422. 80146c2: 2b02 cmp r3, #2
  48423. 80146c4: d103 bne.n 80146ce <xQueueGenericSend+0x72>
  48424. 80146c6: 6b3b ldr r3, [r7, #48] @ 0x30
  48425. 80146c8: 6bdb ldr r3, [r3, #60] @ 0x3c
  48426. 80146ca: 2b01 cmp r3, #1
  48427. 80146cc: d101 bne.n 80146d2 <xQueueGenericSend+0x76>
  48428. 80146ce: 2301 movs r3, #1
  48429. 80146d0: e000 b.n 80146d4 <xQueueGenericSend+0x78>
  48430. 80146d2: 2300 movs r3, #0
  48431. 80146d4: 2b00 cmp r3, #0
  48432. 80146d6: d10b bne.n 80146f0 <xQueueGenericSend+0x94>
  48433. __asm volatile
  48434. 80146d8: f04f 0350 mov.w r3, #80 @ 0x50
  48435. 80146dc: f383 8811 msr BASEPRI, r3
  48436. 80146e0: f3bf 8f6f isb sy
  48437. 80146e4: f3bf 8f4f dsb sy
  48438. 80146e8: 623b str r3, [r7, #32]
  48439. }
  48440. 80146ea: bf00 nop
  48441. 80146ec: bf00 nop
  48442. 80146ee: e7fd b.n 80146ec <xQueueGenericSend+0x90>
  48443. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48444. {
  48445. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48446. 80146f0: f001 fdaa bl 8016248 <xTaskGetSchedulerState>
  48447. 80146f4: 4603 mov r3, r0
  48448. 80146f6: 2b00 cmp r3, #0
  48449. 80146f8: d102 bne.n 8014700 <xQueueGenericSend+0xa4>
  48450. 80146fa: 687b ldr r3, [r7, #4]
  48451. 80146fc: 2b00 cmp r3, #0
  48452. 80146fe: d101 bne.n 8014704 <xQueueGenericSend+0xa8>
  48453. 8014700: 2301 movs r3, #1
  48454. 8014702: e000 b.n 8014706 <xQueueGenericSend+0xaa>
  48455. 8014704: 2300 movs r3, #0
  48456. 8014706: 2b00 cmp r3, #0
  48457. 8014708: d10b bne.n 8014722 <xQueueGenericSend+0xc6>
  48458. __asm volatile
  48459. 801470a: f04f 0350 mov.w r3, #80 @ 0x50
  48460. 801470e: f383 8811 msr BASEPRI, r3
  48461. 8014712: f3bf 8f6f isb sy
  48462. 8014716: f3bf 8f4f dsb sy
  48463. 801471a: 61fb str r3, [r7, #28]
  48464. }
  48465. 801471c: bf00 nop
  48466. 801471e: bf00 nop
  48467. 8014720: e7fd b.n 801471e <xQueueGenericSend+0xc2>
  48468. /*lint -save -e904 This function relaxes the coding standard somewhat to
  48469. allow return statements within the function itself. This is done in the
  48470. interest of execution time efficiency. */
  48471. for( ;; )
  48472. {
  48473. taskENTER_CRITICAL();
  48474. 8014722: f002 ff19 bl 8017558 <vPortEnterCritical>
  48475. {
  48476. /* Is there room on the queue now? The running task must be the
  48477. highest priority task wanting to access the queue. If the head item
  48478. in the queue is to be overwritten then it does not matter if the
  48479. queue is full. */
  48480. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  48481. 8014726: 6b3b ldr r3, [r7, #48] @ 0x30
  48482. 8014728: 6b9a ldr r2, [r3, #56] @ 0x38
  48483. 801472a: 6b3b ldr r3, [r7, #48] @ 0x30
  48484. 801472c: 6bdb ldr r3, [r3, #60] @ 0x3c
  48485. 801472e: 429a cmp r2, r3
  48486. 8014730: d302 bcc.n 8014738 <xQueueGenericSend+0xdc>
  48487. 8014732: 683b ldr r3, [r7, #0]
  48488. 8014734: 2b02 cmp r3, #2
  48489. 8014736: d129 bne.n 801478c <xQueueGenericSend+0x130>
  48490. }
  48491. }
  48492. }
  48493. #else /* configUSE_QUEUE_SETS */
  48494. {
  48495. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  48496. 8014738: 683a ldr r2, [r7, #0]
  48497. 801473a: 68b9 ldr r1, [r7, #8]
  48498. 801473c: 6b38 ldr r0, [r7, #48] @ 0x30
  48499. 801473e: f000 fbb9 bl 8014eb4 <prvCopyDataToQueue>
  48500. 8014742: 62f8 str r0, [r7, #44] @ 0x2c
  48501. /* If there was a task waiting for data to arrive on the
  48502. queue then unblock it now. */
  48503. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  48504. 8014744: 6b3b ldr r3, [r7, #48] @ 0x30
  48505. 8014746: 6a5b ldr r3, [r3, #36] @ 0x24
  48506. 8014748: 2b00 cmp r3, #0
  48507. 801474a: d010 beq.n 801476e <xQueueGenericSend+0x112>
  48508. {
  48509. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  48510. 801474c: 6b3b ldr r3, [r7, #48] @ 0x30
  48511. 801474e: 3324 adds r3, #36 @ 0x24
  48512. 8014750: 4618 mov r0, r3
  48513. 8014752: f001 fb7b bl 8015e4c <xTaskRemoveFromEventList>
  48514. 8014756: 4603 mov r3, r0
  48515. 8014758: 2b00 cmp r3, #0
  48516. 801475a: d013 beq.n 8014784 <xQueueGenericSend+0x128>
  48517. {
  48518. /* The unblocked task has a priority higher than
  48519. our own so yield immediately. Yes it is ok to do
  48520. this from within the critical section - the kernel
  48521. takes care of that. */
  48522. queueYIELD_IF_USING_PREEMPTION();
  48523. 801475c: 4b3f ldr r3, [pc, #252] @ (801485c <xQueueGenericSend+0x200>)
  48524. 801475e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48525. 8014762: 601a str r2, [r3, #0]
  48526. 8014764: f3bf 8f4f dsb sy
  48527. 8014768: f3bf 8f6f isb sy
  48528. 801476c: e00a b.n 8014784 <xQueueGenericSend+0x128>
  48529. else
  48530. {
  48531. mtCOVERAGE_TEST_MARKER();
  48532. }
  48533. }
  48534. else if( xYieldRequired != pdFALSE )
  48535. 801476e: 6afb ldr r3, [r7, #44] @ 0x2c
  48536. 8014770: 2b00 cmp r3, #0
  48537. 8014772: d007 beq.n 8014784 <xQueueGenericSend+0x128>
  48538. {
  48539. /* This path is a special case that will only get
  48540. executed if the task was holding multiple mutexes and
  48541. the mutexes were given back in an order that is
  48542. different to that in which they were taken. */
  48543. queueYIELD_IF_USING_PREEMPTION();
  48544. 8014774: 4b39 ldr r3, [pc, #228] @ (801485c <xQueueGenericSend+0x200>)
  48545. 8014776: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48546. 801477a: 601a str r2, [r3, #0]
  48547. 801477c: f3bf 8f4f dsb sy
  48548. 8014780: f3bf 8f6f isb sy
  48549. mtCOVERAGE_TEST_MARKER();
  48550. }
  48551. }
  48552. #endif /* configUSE_QUEUE_SETS */
  48553. taskEXIT_CRITICAL();
  48554. 8014784: f002 ff1a bl 80175bc <vPortExitCritical>
  48555. return pdPASS;
  48556. 8014788: 2301 movs r3, #1
  48557. 801478a: e063 b.n 8014854 <xQueueGenericSend+0x1f8>
  48558. }
  48559. else
  48560. {
  48561. if( xTicksToWait == ( TickType_t ) 0 )
  48562. 801478c: 687b ldr r3, [r7, #4]
  48563. 801478e: 2b00 cmp r3, #0
  48564. 8014790: d103 bne.n 801479a <xQueueGenericSend+0x13e>
  48565. {
  48566. /* The queue was full and no block time is specified (or
  48567. the block time has expired) so leave now. */
  48568. taskEXIT_CRITICAL();
  48569. 8014792: f002 ff13 bl 80175bc <vPortExitCritical>
  48570. /* Return to the original privilege level before exiting
  48571. the function. */
  48572. traceQUEUE_SEND_FAILED( pxQueue );
  48573. return errQUEUE_FULL;
  48574. 8014796: 2300 movs r3, #0
  48575. 8014798: e05c b.n 8014854 <xQueueGenericSend+0x1f8>
  48576. }
  48577. else if( xEntryTimeSet == pdFALSE )
  48578. 801479a: 6b7b ldr r3, [r7, #52] @ 0x34
  48579. 801479c: 2b00 cmp r3, #0
  48580. 801479e: d106 bne.n 80147ae <xQueueGenericSend+0x152>
  48581. {
  48582. /* The queue was full and a block time was specified so
  48583. configure the timeout structure. */
  48584. vTaskInternalSetTimeOutState( &xTimeOut );
  48585. 80147a0: f107 0314 add.w r3, r7, #20
  48586. 80147a4: 4618 mov r0, r3
  48587. 80147a6: f001 fbdd bl 8015f64 <vTaskInternalSetTimeOutState>
  48588. xEntryTimeSet = pdTRUE;
  48589. 80147aa: 2301 movs r3, #1
  48590. 80147ac: 637b str r3, [r7, #52] @ 0x34
  48591. /* Entry time was already set. */
  48592. mtCOVERAGE_TEST_MARKER();
  48593. }
  48594. }
  48595. }
  48596. taskEXIT_CRITICAL();
  48597. 80147ae: f002 ff05 bl 80175bc <vPortExitCritical>
  48598. /* Interrupts and other tasks can send to and receive from the queue
  48599. now the critical section has been exited. */
  48600. vTaskSuspendAll();
  48601. 80147b2: f001 f90f bl 80159d4 <vTaskSuspendAll>
  48602. prvLockQueue( pxQueue );
  48603. 80147b6: f002 fecf bl 8017558 <vPortEnterCritical>
  48604. 80147ba: 6b3b ldr r3, [r7, #48] @ 0x30
  48605. 80147bc: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  48606. 80147c0: b25b sxtb r3, r3
  48607. 80147c2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48608. 80147c6: d103 bne.n 80147d0 <xQueueGenericSend+0x174>
  48609. 80147c8: 6b3b ldr r3, [r7, #48] @ 0x30
  48610. 80147ca: 2200 movs r2, #0
  48611. 80147cc: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48612. 80147d0: 6b3b ldr r3, [r7, #48] @ 0x30
  48613. 80147d2: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48614. 80147d6: b25b sxtb r3, r3
  48615. 80147d8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48616. 80147dc: d103 bne.n 80147e6 <xQueueGenericSend+0x18a>
  48617. 80147de: 6b3b ldr r3, [r7, #48] @ 0x30
  48618. 80147e0: 2200 movs r2, #0
  48619. 80147e2: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48620. 80147e6: f002 fee9 bl 80175bc <vPortExitCritical>
  48621. /* Update the timeout state to see if it has expired yet. */
  48622. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  48623. 80147ea: 1d3a adds r2, r7, #4
  48624. 80147ec: f107 0314 add.w r3, r7, #20
  48625. 80147f0: 4611 mov r1, r2
  48626. 80147f2: 4618 mov r0, r3
  48627. 80147f4: f001 fbcc bl 8015f90 <xTaskCheckForTimeOut>
  48628. 80147f8: 4603 mov r3, r0
  48629. 80147fa: 2b00 cmp r3, #0
  48630. 80147fc: d124 bne.n 8014848 <xQueueGenericSend+0x1ec>
  48631. {
  48632. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  48633. 80147fe: 6b38 ldr r0, [r7, #48] @ 0x30
  48634. 8014800: f000 fc50 bl 80150a4 <prvIsQueueFull>
  48635. 8014804: 4603 mov r3, r0
  48636. 8014806: 2b00 cmp r3, #0
  48637. 8014808: d018 beq.n 801483c <xQueueGenericSend+0x1e0>
  48638. {
  48639. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  48640. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  48641. 801480a: 6b3b ldr r3, [r7, #48] @ 0x30
  48642. 801480c: 3310 adds r3, #16
  48643. 801480e: 687a ldr r2, [r7, #4]
  48644. 8014810: 4611 mov r1, r2
  48645. 8014812: 4618 mov r0, r3
  48646. 8014814: f001 fac8 bl 8015da8 <vTaskPlaceOnEventList>
  48647. /* Unlocking the queue means queue events can effect the
  48648. event list. It is possible that interrupts occurring now
  48649. remove this task from the event list again - but as the
  48650. scheduler is suspended the task will go onto the pending
  48651. ready last instead of the actual ready list. */
  48652. prvUnlockQueue( pxQueue );
  48653. 8014818: 6b38 ldr r0, [r7, #48] @ 0x30
  48654. 801481a: f000 fbdb bl 8014fd4 <prvUnlockQueue>
  48655. /* Resuming the scheduler will move tasks from the pending
  48656. ready list into the ready list - so it is feasible that this
  48657. task is already in a ready list before it yields - in which
  48658. case the yield will not cause a context switch unless there
  48659. is also a higher priority task in the pending ready list. */
  48660. if( xTaskResumeAll() == pdFALSE )
  48661. 801481e: f001 f8e7 bl 80159f0 <xTaskResumeAll>
  48662. 8014822: 4603 mov r3, r0
  48663. 8014824: 2b00 cmp r3, #0
  48664. 8014826: f47f af7c bne.w 8014722 <xQueueGenericSend+0xc6>
  48665. {
  48666. portYIELD_WITHIN_API();
  48667. 801482a: 4b0c ldr r3, [pc, #48] @ (801485c <xQueueGenericSend+0x200>)
  48668. 801482c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48669. 8014830: 601a str r2, [r3, #0]
  48670. 8014832: f3bf 8f4f dsb sy
  48671. 8014836: f3bf 8f6f isb sy
  48672. 801483a: e772 b.n 8014722 <xQueueGenericSend+0xc6>
  48673. }
  48674. }
  48675. else
  48676. {
  48677. /* Try again. */
  48678. prvUnlockQueue( pxQueue );
  48679. 801483c: 6b38 ldr r0, [r7, #48] @ 0x30
  48680. 801483e: f000 fbc9 bl 8014fd4 <prvUnlockQueue>
  48681. ( void ) xTaskResumeAll();
  48682. 8014842: f001 f8d5 bl 80159f0 <xTaskResumeAll>
  48683. 8014846: e76c b.n 8014722 <xQueueGenericSend+0xc6>
  48684. }
  48685. }
  48686. else
  48687. {
  48688. /* The timeout has expired. */
  48689. prvUnlockQueue( pxQueue );
  48690. 8014848: 6b38 ldr r0, [r7, #48] @ 0x30
  48691. 801484a: f000 fbc3 bl 8014fd4 <prvUnlockQueue>
  48692. ( void ) xTaskResumeAll();
  48693. 801484e: f001 f8cf bl 80159f0 <xTaskResumeAll>
  48694. traceQUEUE_SEND_FAILED( pxQueue );
  48695. return errQUEUE_FULL;
  48696. 8014852: 2300 movs r3, #0
  48697. }
  48698. } /*lint -restore */
  48699. }
  48700. 8014854: 4618 mov r0, r3
  48701. 8014856: 3738 adds r7, #56 @ 0x38
  48702. 8014858: 46bd mov sp, r7
  48703. 801485a: bd80 pop {r7, pc}
  48704. 801485c: e000ed04 .word 0xe000ed04
  48705. 08014860 <xQueueGenericSendFromISR>:
  48706. /*-----------------------------------------------------------*/
  48707. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  48708. {
  48709. 8014860: b580 push {r7, lr}
  48710. 8014862: b090 sub sp, #64 @ 0x40
  48711. 8014864: af00 add r7, sp, #0
  48712. 8014866: 60f8 str r0, [r7, #12]
  48713. 8014868: 60b9 str r1, [r7, #8]
  48714. 801486a: 607a str r2, [r7, #4]
  48715. 801486c: 603b str r3, [r7, #0]
  48716. BaseType_t xReturn;
  48717. UBaseType_t uxSavedInterruptStatus;
  48718. Queue_t * const pxQueue = xQueue;
  48719. 801486e: 68fb ldr r3, [r7, #12]
  48720. 8014870: 63bb str r3, [r7, #56] @ 0x38
  48721. configASSERT( pxQueue );
  48722. 8014872: 6bbb ldr r3, [r7, #56] @ 0x38
  48723. 8014874: 2b00 cmp r3, #0
  48724. 8014876: d10b bne.n 8014890 <xQueueGenericSendFromISR+0x30>
  48725. __asm volatile
  48726. 8014878: f04f 0350 mov.w r3, #80 @ 0x50
  48727. 801487c: f383 8811 msr BASEPRI, r3
  48728. 8014880: f3bf 8f6f isb sy
  48729. 8014884: f3bf 8f4f dsb sy
  48730. 8014888: 62bb str r3, [r7, #40] @ 0x28
  48731. }
  48732. 801488a: bf00 nop
  48733. 801488c: bf00 nop
  48734. 801488e: e7fd b.n 801488c <xQueueGenericSendFromISR+0x2c>
  48735. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48736. 8014890: 68bb ldr r3, [r7, #8]
  48737. 8014892: 2b00 cmp r3, #0
  48738. 8014894: d103 bne.n 801489e <xQueueGenericSendFromISR+0x3e>
  48739. 8014896: 6bbb ldr r3, [r7, #56] @ 0x38
  48740. 8014898: 6c1b ldr r3, [r3, #64] @ 0x40
  48741. 801489a: 2b00 cmp r3, #0
  48742. 801489c: d101 bne.n 80148a2 <xQueueGenericSendFromISR+0x42>
  48743. 801489e: 2301 movs r3, #1
  48744. 80148a0: e000 b.n 80148a4 <xQueueGenericSendFromISR+0x44>
  48745. 80148a2: 2300 movs r3, #0
  48746. 80148a4: 2b00 cmp r3, #0
  48747. 80148a6: d10b bne.n 80148c0 <xQueueGenericSendFromISR+0x60>
  48748. __asm volatile
  48749. 80148a8: f04f 0350 mov.w r3, #80 @ 0x50
  48750. 80148ac: f383 8811 msr BASEPRI, r3
  48751. 80148b0: f3bf 8f6f isb sy
  48752. 80148b4: f3bf 8f4f dsb sy
  48753. 80148b8: 627b str r3, [r7, #36] @ 0x24
  48754. }
  48755. 80148ba: bf00 nop
  48756. 80148bc: bf00 nop
  48757. 80148be: e7fd b.n 80148bc <xQueueGenericSendFromISR+0x5c>
  48758. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  48759. 80148c0: 683b ldr r3, [r7, #0]
  48760. 80148c2: 2b02 cmp r3, #2
  48761. 80148c4: d103 bne.n 80148ce <xQueueGenericSendFromISR+0x6e>
  48762. 80148c6: 6bbb ldr r3, [r7, #56] @ 0x38
  48763. 80148c8: 6bdb ldr r3, [r3, #60] @ 0x3c
  48764. 80148ca: 2b01 cmp r3, #1
  48765. 80148cc: d101 bne.n 80148d2 <xQueueGenericSendFromISR+0x72>
  48766. 80148ce: 2301 movs r3, #1
  48767. 80148d0: e000 b.n 80148d4 <xQueueGenericSendFromISR+0x74>
  48768. 80148d2: 2300 movs r3, #0
  48769. 80148d4: 2b00 cmp r3, #0
  48770. 80148d6: d10b bne.n 80148f0 <xQueueGenericSendFromISR+0x90>
  48771. __asm volatile
  48772. 80148d8: f04f 0350 mov.w r3, #80 @ 0x50
  48773. 80148dc: f383 8811 msr BASEPRI, r3
  48774. 80148e0: f3bf 8f6f isb sy
  48775. 80148e4: f3bf 8f4f dsb sy
  48776. 80148e8: 623b str r3, [r7, #32]
  48777. }
  48778. 80148ea: bf00 nop
  48779. 80148ec: bf00 nop
  48780. 80148ee: e7fd b.n 80148ec <xQueueGenericSendFromISR+0x8c>
  48781. that have been assigned a priority at or (logically) below the maximum
  48782. system call interrupt priority. FreeRTOS maintains a separate interrupt
  48783. safe API to ensure interrupt entry is as fast and as simple as possible.
  48784. More information (albeit Cortex-M specific) is provided on the following
  48785. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  48786. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  48787. 80148f0: f002 ff12 bl 8017718 <vPortValidateInterruptPriority>
  48788. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  48789. {
  48790. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  48791. __asm volatile
  48792. 80148f4: f3ef 8211 mrs r2, BASEPRI
  48793. 80148f8: f04f 0350 mov.w r3, #80 @ 0x50
  48794. 80148fc: f383 8811 msr BASEPRI, r3
  48795. 8014900: f3bf 8f6f isb sy
  48796. 8014904: f3bf 8f4f dsb sy
  48797. 8014908: 61fa str r2, [r7, #28]
  48798. 801490a: 61bb str r3, [r7, #24]
  48799. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48800. );
  48801. /* This return will not be reached but is necessary to prevent compiler
  48802. warnings. */
  48803. return ulOriginalBASEPRI;
  48804. 801490c: 69fb ldr r3, [r7, #28]
  48805. /* Similar to xQueueGenericSend, except without blocking if there is no room
  48806. in the queue. Also don't directly wake a task that was blocked on a queue
  48807. read, instead return a flag to say whether a context switch is required or
  48808. not (i.e. has a task with a higher priority than us been woken by this
  48809. post). */
  48810. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  48811. 801490e: 637b str r3, [r7, #52] @ 0x34
  48812. {
  48813. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  48814. 8014910: 6bbb ldr r3, [r7, #56] @ 0x38
  48815. 8014912: 6b9a ldr r2, [r3, #56] @ 0x38
  48816. 8014914: 6bbb ldr r3, [r7, #56] @ 0x38
  48817. 8014916: 6bdb ldr r3, [r3, #60] @ 0x3c
  48818. 8014918: 429a cmp r2, r3
  48819. 801491a: d302 bcc.n 8014922 <xQueueGenericSendFromISR+0xc2>
  48820. 801491c: 683b ldr r3, [r7, #0]
  48821. 801491e: 2b02 cmp r3, #2
  48822. 8014920: d12f bne.n 8014982 <xQueueGenericSendFromISR+0x122>
  48823. {
  48824. const int8_t cTxLock = pxQueue->cTxLock;
  48825. 8014922: 6bbb ldr r3, [r7, #56] @ 0x38
  48826. 8014924: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48827. 8014928: f887 3033 strb.w r3, [r7, #51] @ 0x33
  48828. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  48829. 801492c: 6bbb ldr r3, [r7, #56] @ 0x38
  48830. 801492e: 6b9b ldr r3, [r3, #56] @ 0x38
  48831. 8014930: 62fb str r3, [r7, #44] @ 0x2c
  48832. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  48833. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  48834. in a task disinheriting a priority and prvCopyDataToQueue() can be
  48835. called here even though the disinherit function does not check if
  48836. the scheduler is suspended before accessing the ready lists. */
  48837. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  48838. 8014932: 683a ldr r2, [r7, #0]
  48839. 8014934: 68b9 ldr r1, [r7, #8]
  48840. 8014936: 6bb8 ldr r0, [r7, #56] @ 0x38
  48841. 8014938: f000 fabc bl 8014eb4 <prvCopyDataToQueue>
  48842. /* The event list is not altered if the queue is locked. This will
  48843. be done when the queue is unlocked later. */
  48844. if( cTxLock == queueUNLOCKED )
  48845. 801493c: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  48846. 8014940: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48847. 8014944: d112 bne.n 801496c <xQueueGenericSendFromISR+0x10c>
  48848. }
  48849. }
  48850. }
  48851. #else /* configUSE_QUEUE_SETS */
  48852. {
  48853. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  48854. 8014946: 6bbb ldr r3, [r7, #56] @ 0x38
  48855. 8014948: 6a5b ldr r3, [r3, #36] @ 0x24
  48856. 801494a: 2b00 cmp r3, #0
  48857. 801494c: d016 beq.n 801497c <xQueueGenericSendFromISR+0x11c>
  48858. {
  48859. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  48860. 801494e: 6bbb ldr r3, [r7, #56] @ 0x38
  48861. 8014950: 3324 adds r3, #36 @ 0x24
  48862. 8014952: 4618 mov r0, r3
  48863. 8014954: f001 fa7a bl 8015e4c <xTaskRemoveFromEventList>
  48864. 8014958: 4603 mov r3, r0
  48865. 801495a: 2b00 cmp r3, #0
  48866. 801495c: d00e beq.n 801497c <xQueueGenericSendFromISR+0x11c>
  48867. {
  48868. /* The task waiting has a higher priority so record that a
  48869. context switch is required. */
  48870. if( pxHigherPriorityTaskWoken != NULL )
  48871. 801495e: 687b ldr r3, [r7, #4]
  48872. 8014960: 2b00 cmp r3, #0
  48873. 8014962: d00b beq.n 801497c <xQueueGenericSendFromISR+0x11c>
  48874. {
  48875. *pxHigherPriorityTaskWoken = pdTRUE;
  48876. 8014964: 687b ldr r3, [r7, #4]
  48877. 8014966: 2201 movs r2, #1
  48878. 8014968: 601a str r2, [r3, #0]
  48879. 801496a: e007 b.n 801497c <xQueueGenericSendFromISR+0x11c>
  48880. }
  48881. else
  48882. {
  48883. /* Increment the lock count so the task that unlocks the queue
  48884. knows that data was posted while it was locked. */
  48885. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  48886. 801496c: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  48887. 8014970: 3301 adds r3, #1
  48888. 8014972: b2db uxtb r3, r3
  48889. 8014974: b25a sxtb r2, r3
  48890. 8014976: 6bbb ldr r3, [r7, #56] @ 0x38
  48891. 8014978: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48892. }
  48893. xReturn = pdPASS;
  48894. 801497c: 2301 movs r3, #1
  48895. 801497e: 63fb str r3, [r7, #60] @ 0x3c
  48896. {
  48897. 8014980: e001 b.n 8014986 <xQueueGenericSendFromISR+0x126>
  48898. }
  48899. else
  48900. {
  48901. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  48902. xReturn = errQUEUE_FULL;
  48903. 8014982: 2300 movs r3, #0
  48904. 8014984: 63fb str r3, [r7, #60] @ 0x3c
  48905. 8014986: 6b7b ldr r3, [r7, #52] @ 0x34
  48906. 8014988: 617b str r3, [r7, #20]
  48907. }
  48908. /*-----------------------------------------------------------*/
  48909. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  48910. {
  48911. __asm volatile
  48912. 801498a: 697b ldr r3, [r7, #20]
  48913. 801498c: f383 8811 msr BASEPRI, r3
  48914. (
  48915. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  48916. );
  48917. }
  48918. 8014990: bf00 nop
  48919. }
  48920. }
  48921. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  48922. return xReturn;
  48923. 8014992: 6bfb ldr r3, [r7, #60] @ 0x3c
  48924. }
  48925. 8014994: 4618 mov r0, r3
  48926. 8014996: 3740 adds r7, #64 @ 0x40
  48927. 8014998: 46bd mov sp, r7
  48928. 801499a: bd80 pop {r7, pc}
  48929. 0801499c <xQueueReceive>:
  48930. return xReturn;
  48931. }
  48932. /*-----------------------------------------------------------*/
  48933. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  48934. {
  48935. 801499c: b580 push {r7, lr}
  48936. 801499e: b08c sub sp, #48 @ 0x30
  48937. 80149a0: af00 add r7, sp, #0
  48938. 80149a2: 60f8 str r0, [r7, #12]
  48939. 80149a4: 60b9 str r1, [r7, #8]
  48940. 80149a6: 607a str r2, [r7, #4]
  48941. BaseType_t xEntryTimeSet = pdFALSE;
  48942. 80149a8: 2300 movs r3, #0
  48943. 80149aa: 62fb str r3, [r7, #44] @ 0x2c
  48944. TimeOut_t xTimeOut;
  48945. Queue_t * const pxQueue = xQueue;
  48946. 80149ac: 68fb ldr r3, [r7, #12]
  48947. 80149ae: 62bb str r3, [r7, #40] @ 0x28
  48948. /* Check the pointer is not NULL. */
  48949. configASSERT( ( pxQueue ) );
  48950. 80149b0: 6abb ldr r3, [r7, #40] @ 0x28
  48951. 80149b2: 2b00 cmp r3, #0
  48952. 80149b4: d10b bne.n 80149ce <xQueueReceive+0x32>
  48953. __asm volatile
  48954. 80149b6: f04f 0350 mov.w r3, #80 @ 0x50
  48955. 80149ba: f383 8811 msr BASEPRI, r3
  48956. 80149be: f3bf 8f6f isb sy
  48957. 80149c2: f3bf 8f4f dsb sy
  48958. 80149c6: 623b str r3, [r7, #32]
  48959. }
  48960. 80149c8: bf00 nop
  48961. 80149ca: bf00 nop
  48962. 80149cc: e7fd b.n 80149ca <xQueueReceive+0x2e>
  48963. /* The buffer into which data is received can only be NULL if the data size
  48964. is zero (so no data is copied into the buffer. */
  48965. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48966. 80149ce: 68bb ldr r3, [r7, #8]
  48967. 80149d0: 2b00 cmp r3, #0
  48968. 80149d2: d103 bne.n 80149dc <xQueueReceive+0x40>
  48969. 80149d4: 6abb ldr r3, [r7, #40] @ 0x28
  48970. 80149d6: 6c1b ldr r3, [r3, #64] @ 0x40
  48971. 80149d8: 2b00 cmp r3, #0
  48972. 80149da: d101 bne.n 80149e0 <xQueueReceive+0x44>
  48973. 80149dc: 2301 movs r3, #1
  48974. 80149de: e000 b.n 80149e2 <xQueueReceive+0x46>
  48975. 80149e0: 2300 movs r3, #0
  48976. 80149e2: 2b00 cmp r3, #0
  48977. 80149e4: d10b bne.n 80149fe <xQueueReceive+0x62>
  48978. __asm volatile
  48979. 80149e6: f04f 0350 mov.w r3, #80 @ 0x50
  48980. 80149ea: f383 8811 msr BASEPRI, r3
  48981. 80149ee: f3bf 8f6f isb sy
  48982. 80149f2: f3bf 8f4f dsb sy
  48983. 80149f6: 61fb str r3, [r7, #28]
  48984. }
  48985. 80149f8: bf00 nop
  48986. 80149fa: bf00 nop
  48987. 80149fc: e7fd b.n 80149fa <xQueueReceive+0x5e>
  48988. /* Cannot block if the scheduler is suspended. */
  48989. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48990. {
  48991. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48992. 80149fe: f001 fc23 bl 8016248 <xTaskGetSchedulerState>
  48993. 8014a02: 4603 mov r3, r0
  48994. 8014a04: 2b00 cmp r3, #0
  48995. 8014a06: d102 bne.n 8014a0e <xQueueReceive+0x72>
  48996. 8014a08: 687b ldr r3, [r7, #4]
  48997. 8014a0a: 2b00 cmp r3, #0
  48998. 8014a0c: d101 bne.n 8014a12 <xQueueReceive+0x76>
  48999. 8014a0e: 2301 movs r3, #1
  49000. 8014a10: e000 b.n 8014a14 <xQueueReceive+0x78>
  49001. 8014a12: 2300 movs r3, #0
  49002. 8014a14: 2b00 cmp r3, #0
  49003. 8014a16: d10b bne.n 8014a30 <xQueueReceive+0x94>
  49004. __asm volatile
  49005. 8014a18: f04f 0350 mov.w r3, #80 @ 0x50
  49006. 8014a1c: f383 8811 msr BASEPRI, r3
  49007. 8014a20: f3bf 8f6f isb sy
  49008. 8014a24: f3bf 8f4f dsb sy
  49009. 8014a28: 61bb str r3, [r7, #24]
  49010. }
  49011. 8014a2a: bf00 nop
  49012. 8014a2c: bf00 nop
  49013. 8014a2e: e7fd b.n 8014a2c <xQueueReceive+0x90>
  49014. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49015. allow return statements within the function itself. This is done in the
  49016. interest of execution time efficiency. */
  49017. for( ;; )
  49018. {
  49019. taskENTER_CRITICAL();
  49020. 8014a30: f002 fd92 bl 8017558 <vPortEnterCritical>
  49021. {
  49022. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49023. 8014a34: 6abb ldr r3, [r7, #40] @ 0x28
  49024. 8014a36: 6b9b ldr r3, [r3, #56] @ 0x38
  49025. 8014a38: 627b str r3, [r7, #36] @ 0x24
  49026. /* Is there data in the queue now? To be running the calling task
  49027. must be the highest priority task wanting to access the queue. */
  49028. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49029. 8014a3a: 6a7b ldr r3, [r7, #36] @ 0x24
  49030. 8014a3c: 2b00 cmp r3, #0
  49031. 8014a3e: d01f beq.n 8014a80 <xQueueReceive+0xe4>
  49032. {
  49033. /* Data available, remove one item. */
  49034. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49035. 8014a40: 68b9 ldr r1, [r7, #8]
  49036. 8014a42: 6ab8 ldr r0, [r7, #40] @ 0x28
  49037. 8014a44: f000 faa0 bl 8014f88 <prvCopyDataFromQueue>
  49038. traceQUEUE_RECEIVE( pxQueue );
  49039. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49040. 8014a48: 6a7b ldr r3, [r7, #36] @ 0x24
  49041. 8014a4a: 1e5a subs r2, r3, #1
  49042. 8014a4c: 6abb ldr r3, [r7, #40] @ 0x28
  49043. 8014a4e: 639a str r2, [r3, #56] @ 0x38
  49044. /* There is now space in the queue, were any tasks waiting to
  49045. post to the queue? If so, unblock the highest priority waiting
  49046. task. */
  49047. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49048. 8014a50: 6abb ldr r3, [r7, #40] @ 0x28
  49049. 8014a52: 691b ldr r3, [r3, #16]
  49050. 8014a54: 2b00 cmp r3, #0
  49051. 8014a56: d00f beq.n 8014a78 <xQueueReceive+0xdc>
  49052. {
  49053. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49054. 8014a58: 6abb ldr r3, [r7, #40] @ 0x28
  49055. 8014a5a: 3310 adds r3, #16
  49056. 8014a5c: 4618 mov r0, r3
  49057. 8014a5e: f001 f9f5 bl 8015e4c <xTaskRemoveFromEventList>
  49058. 8014a62: 4603 mov r3, r0
  49059. 8014a64: 2b00 cmp r3, #0
  49060. 8014a66: d007 beq.n 8014a78 <xQueueReceive+0xdc>
  49061. {
  49062. queueYIELD_IF_USING_PREEMPTION();
  49063. 8014a68: 4b3c ldr r3, [pc, #240] @ (8014b5c <xQueueReceive+0x1c0>)
  49064. 8014a6a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49065. 8014a6e: 601a str r2, [r3, #0]
  49066. 8014a70: f3bf 8f4f dsb sy
  49067. 8014a74: f3bf 8f6f isb sy
  49068. else
  49069. {
  49070. mtCOVERAGE_TEST_MARKER();
  49071. }
  49072. taskEXIT_CRITICAL();
  49073. 8014a78: f002 fda0 bl 80175bc <vPortExitCritical>
  49074. return pdPASS;
  49075. 8014a7c: 2301 movs r3, #1
  49076. 8014a7e: e069 b.n 8014b54 <xQueueReceive+0x1b8>
  49077. }
  49078. else
  49079. {
  49080. if( xTicksToWait == ( TickType_t ) 0 )
  49081. 8014a80: 687b ldr r3, [r7, #4]
  49082. 8014a82: 2b00 cmp r3, #0
  49083. 8014a84: d103 bne.n 8014a8e <xQueueReceive+0xf2>
  49084. {
  49085. /* The queue was empty and no block time is specified (or
  49086. the block time has expired) so leave now. */
  49087. taskEXIT_CRITICAL();
  49088. 8014a86: f002 fd99 bl 80175bc <vPortExitCritical>
  49089. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49090. return errQUEUE_EMPTY;
  49091. 8014a8a: 2300 movs r3, #0
  49092. 8014a8c: e062 b.n 8014b54 <xQueueReceive+0x1b8>
  49093. }
  49094. else if( xEntryTimeSet == pdFALSE )
  49095. 8014a8e: 6afb ldr r3, [r7, #44] @ 0x2c
  49096. 8014a90: 2b00 cmp r3, #0
  49097. 8014a92: d106 bne.n 8014aa2 <xQueueReceive+0x106>
  49098. {
  49099. /* The queue was empty and a block time was specified so
  49100. configure the timeout structure. */
  49101. vTaskInternalSetTimeOutState( &xTimeOut );
  49102. 8014a94: f107 0310 add.w r3, r7, #16
  49103. 8014a98: 4618 mov r0, r3
  49104. 8014a9a: f001 fa63 bl 8015f64 <vTaskInternalSetTimeOutState>
  49105. xEntryTimeSet = pdTRUE;
  49106. 8014a9e: 2301 movs r3, #1
  49107. 8014aa0: 62fb str r3, [r7, #44] @ 0x2c
  49108. /* Entry time was already set. */
  49109. mtCOVERAGE_TEST_MARKER();
  49110. }
  49111. }
  49112. }
  49113. taskEXIT_CRITICAL();
  49114. 8014aa2: f002 fd8b bl 80175bc <vPortExitCritical>
  49115. /* Interrupts and other tasks can send to and receive from the queue
  49116. now the critical section has been exited. */
  49117. vTaskSuspendAll();
  49118. 8014aa6: f000 ff95 bl 80159d4 <vTaskSuspendAll>
  49119. prvLockQueue( pxQueue );
  49120. 8014aaa: f002 fd55 bl 8017558 <vPortEnterCritical>
  49121. 8014aae: 6abb ldr r3, [r7, #40] @ 0x28
  49122. 8014ab0: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49123. 8014ab4: b25b sxtb r3, r3
  49124. 8014ab6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49125. 8014aba: d103 bne.n 8014ac4 <xQueueReceive+0x128>
  49126. 8014abc: 6abb ldr r3, [r7, #40] @ 0x28
  49127. 8014abe: 2200 movs r2, #0
  49128. 8014ac0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49129. 8014ac4: 6abb ldr r3, [r7, #40] @ 0x28
  49130. 8014ac6: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49131. 8014aca: b25b sxtb r3, r3
  49132. 8014acc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49133. 8014ad0: d103 bne.n 8014ada <xQueueReceive+0x13e>
  49134. 8014ad2: 6abb ldr r3, [r7, #40] @ 0x28
  49135. 8014ad4: 2200 movs r2, #0
  49136. 8014ad6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49137. 8014ada: f002 fd6f bl 80175bc <vPortExitCritical>
  49138. /* Update the timeout state to see if it has expired yet. */
  49139. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49140. 8014ade: 1d3a adds r2, r7, #4
  49141. 8014ae0: f107 0310 add.w r3, r7, #16
  49142. 8014ae4: 4611 mov r1, r2
  49143. 8014ae6: 4618 mov r0, r3
  49144. 8014ae8: f001 fa52 bl 8015f90 <xTaskCheckForTimeOut>
  49145. 8014aec: 4603 mov r3, r0
  49146. 8014aee: 2b00 cmp r3, #0
  49147. 8014af0: d123 bne.n 8014b3a <xQueueReceive+0x19e>
  49148. {
  49149. /* The timeout has not expired. If the queue is still empty place
  49150. the task on the list of tasks waiting to receive from the queue. */
  49151. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49152. 8014af2: 6ab8 ldr r0, [r7, #40] @ 0x28
  49153. 8014af4: f000 fac0 bl 8015078 <prvIsQueueEmpty>
  49154. 8014af8: 4603 mov r3, r0
  49155. 8014afa: 2b00 cmp r3, #0
  49156. 8014afc: d017 beq.n 8014b2e <xQueueReceive+0x192>
  49157. {
  49158. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  49159. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  49160. 8014afe: 6abb ldr r3, [r7, #40] @ 0x28
  49161. 8014b00: 3324 adds r3, #36 @ 0x24
  49162. 8014b02: 687a ldr r2, [r7, #4]
  49163. 8014b04: 4611 mov r1, r2
  49164. 8014b06: 4618 mov r0, r3
  49165. 8014b08: f001 f94e bl 8015da8 <vTaskPlaceOnEventList>
  49166. prvUnlockQueue( pxQueue );
  49167. 8014b0c: 6ab8 ldr r0, [r7, #40] @ 0x28
  49168. 8014b0e: f000 fa61 bl 8014fd4 <prvUnlockQueue>
  49169. if( xTaskResumeAll() == pdFALSE )
  49170. 8014b12: f000 ff6d bl 80159f0 <xTaskResumeAll>
  49171. 8014b16: 4603 mov r3, r0
  49172. 8014b18: 2b00 cmp r3, #0
  49173. 8014b1a: d189 bne.n 8014a30 <xQueueReceive+0x94>
  49174. {
  49175. portYIELD_WITHIN_API();
  49176. 8014b1c: 4b0f ldr r3, [pc, #60] @ (8014b5c <xQueueReceive+0x1c0>)
  49177. 8014b1e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49178. 8014b22: 601a str r2, [r3, #0]
  49179. 8014b24: f3bf 8f4f dsb sy
  49180. 8014b28: f3bf 8f6f isb sy
  49181. 8014b2c: e780 b.n 8014a30 <xQueueReceive+0x94>
  49182. }
  49183. else
  49184. {
  49185. /* The queue contains data again. Loop back to try and read the
  49186. data. */
  49187. prvUnlockQueue( pxQueue );
  49188. 8014b2e: 6ab8 ldr r0, [r7, #40] @ 0x28
  49189. 8014b30: f000 fa50 bl 8014fd4 <prvUnlockQueue>
  49190. ( void ) xTaskResumeAll();
  49191. 8014b34: f000 ff5c bl 80159f0 <xTaskResumeAll>
  49192. 8014b38: e77a b.n 8014a30 <xQueueReceive+0x94>
  49193. }
  49194. else
  49195. {
  49196. /* Timed out. If there is no data in the queue exit, otherwise loop
  49197. back and attempt to read the data. */
  49198. prvUnlockQueue( pxQueue );
  49199. 8014b3a: 6ab8 ldr r0, [r7, #40] @ 0x28
  49200. 8014b3c: f000 fa4a bl 8014fd4 <prvUnlockQueue>
  49201. ( void ) xTaskResumeAll();
  49202. 8014b40: f000 ff56 bl 80159f0 <xTaskResumeAll>
  49203. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49204. 8014b44: 6ab8 ldr r0, [r7, #40] @ 0x28
  49205. 8014b46: f000 fa97 bl 8015078 <prvIsQueueEmpty>
  49206. 8014b4a: 4603 mov r3, r0
  49207. 8014b4c: 2b00 cmp r3, #0
  49208. 8014b4e: f43f af6f beq.w 8014a30 <xQueueReceive+0x94>
  49209. {
  49210. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49211. return errQUEUE_EMPTY;
  49212. 8014b52: 2300 movs r3, #0
  49213. {
  49214. mtCOVERAGE_TEST_MARKER();
  49215. }
  49216. }
  49217. } /*lint -restore */
  49218. }
  49219. 8014b54: 4618 mov r0, r3
  49220. 8014b56: 3730 adds r7, #48 @ 0x30
  49221. 8014b58: 46bd mov sp, r7
  49222. 8014b5a: bd80 pop {r7, pc}
  49223. 8014b5c: e000ed04 .word 0xe000ed04
  49224. 08014b60 <xQueueSemaphoreTake>:
  49225. /*-----------------------------------------------------------*/
  49226. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  49227. {
  49228. 8014b60: b580 push {r7, lr}
  49229. 8014b62: b08e sub sp, #56 @ 0x38
  49230. 8014b64: af00 add r7, sp, #0
  49231. 8014b66: 6078 str r0, [r7, #4]
  49232. 8014b68: 6039 str r1, [r7, #0]
  49233. BaseType_t xEntryTimeSet = pdFALSE;
  49234. 8014b6a: 2300 movs r3, #0
  49235. 8014b6c: 637b str r3, [r7, #52] @ 0x34
  49236. TimeOut_t xTimeOut;
  49237. Queue_t * const pxQueue = xQueue;
  49238. 8014b6e: 687b ldr r3, [r7, #4]
  49239. 8014b70: 62fb str r3, [r7, #44] @ 0x2c
  49240. #if( configUSE_MUTEXES == 1 )
  49241. BaseType_t xInheritanceOccurred = pdFALSE;
  49242. 8014b72: 2300 movs r3, #0
  49243. 8014b74: 633b str r3, [r7, #48] @ 0x30
  49244. #endif
  49245. /* Check the queue pointer is not NULL. */
  49246. configASSERT( ( pxQueue ) );
  49247. 8014b76: 6afb ldr r3, [r7, #44] @ 0x2c
  49248. 8014b78: 2b00 cmp r3, #0
  49249. 8014b7a: d10b bne.n 8014b94 <xQueueSemaphoreTake+0x34>
  49250. __asm volatile
  49251. 8014b7c: f04f 0350 mov.w r3, #80 @ 0x50
  49252. 8014b80: f383 8811 msr BASEPRI, r3
  49253. 8014b84: f3bf 8f6f isb sy
  49254. 8014b88: f3bf 8f4f dsb sy
  49255. 8014b8c: 623b str r3, [r7, #32]
  49256. }
  49257. 8014b8e: bf00 nop
  49258. 8014b90: bf00 nop
  49259. 8014b92: e7fd b.n 8014b90 <xQueueSemaphoreTake+0x30>
  49260. /* Check this really is a semaphore, in which case the item size will be
  49261. 0. */
  49262. configASSERT( pxQueue->uxItemSize == 0 );
  49263. 8014b94: 6afb ldr r3, [r7, #44] @ 0x2c
  49264. 8014b96: 6c1b ldr r3, [r3, #64] @ 0x40
  49265. 8014b98: 2b00 cmp r3, #0
  49266. 8014b9a: d00b beq.n 8014bb4 <xQueueSemaphoreTake+0x54>
  49267. __asm volatile
  49268. 8014b9c: f04f 0350 mov.w r3, #80 @ 0x50
  49269. 8014ba0: f383 8811 msr BASEPRI, r3
  49270. 8014ba4: f3bf 8f6f isb sy
  49271. 8014ba8: f3bf 8f4f dsb sy
  49272. 8014bac: 61fb str r3, [r7, #28]
  49273. }
  49274. 8014bae: bf00 nop
  49275. 8014bb0: bf00 nop
  49276. 8014bb2: e7fd b.n 8014bb0 <xQueueSemaphoreTake+0x50>
  49277. /* Cannot block if the scheduler is suspended. */
  49278. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49279. {
  49280. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49281. 8014bb4: f001 fb48 bl 8016248 <xTaskGetSchedulerState>
  49282. 8014bb8: 4603 mov r3, r0
  49283. 8014bba: 2b00 cmp r3, #0
  49284. 8014bbc: d102 bne.n 8014bc4 <xQueueSemaphoreTake+0x64>
  49285. 8014bbe: 683b ldr r3, [r7, #0]
  49286. 8014bc0: 2b00 cmp r3, #0
  49287. 8014bc2: d101 bne.n 8014bc8 <xQueueSemaphoreTake+0x68>
  49288. 8014bc4: 2301 movs r3, #1
  49289. 8014bc6: e000 b.n 8014bca <xQueueSemaphoreTake+0x6a>
  49290. 8014bc8: 2300 movs r3, #0
  49291. 8014bca: 2b00 cmp r3, #0
  49292. 8014bcc: d10b bne.n 8014be6 <xQueueSemaphoreTake+0x86>
  49293. __asm volatile
  49294. 8014bce: f04f 0350 mov.w r3, #80 @ 0x50
  49295. 8014bd2: f383 8811 msr BASEPRI, r3
  49296. 8014bd6: f3bf 8f6f isb sy
  49297. 8014bda: f3bf 8f4f dsb sy
  49298. 8014bde: 61bb str r3, [r7, #24]
  49299. }
  49300. 8014be0: bf00 nop
  49301. 8014be2: bf00 nop
  49302. 8014be4: e7fd b.n 8014be2 <xQueueSemaphoreTake+0x82>
  49303. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  49304. statements within the function itself. This is done in the interest
  49305. of execution time efficiency. */
  49306. for( ;; )
  49307. {
  49308. taskENTER_CRITICAL();
  49309. 8014be6: f002 fcb7 bl 8017558 <vPortEnterCritical>
  49310. {
  49311. /* Semaphores are queues with an item size of 0, and where the
  49312. number of messages in the queue is the semaphore's count value. */
  49313. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  49314. 8014bea: 6afb ldr r3, [r7, #44] @ 0x2c
  49315. 8014bec: 6b9b ldr r3, [r3, #56] @ 0x38
  49316. 8014bee: 62bb str r3, [r7, #40] @ 0x28
  49317. /* Is there data in the queue now? To be running the calling task
  49318. must be the highest priority task wanting to access the queue. */
  49319. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  49320. 8014bf0: 6abb ldr r3, [r7, #40] @ 0x28
  49321. 8014bf2: 2b00 cmp r3, #0
  49322. 8014bf4: d024 beq.n 8014c40 <xQueueSemaphoreTake+0xe0>
  49323. {
  49324. traceQUEUE_RECEIVE( pxQueue );
  49325. /* Semaphores are queues with a data size of zero and where the
  49326. messages waiting is the semaphore's count. Reduce the count. */
  49327. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  49328. 8014bf6: 6abb ldr r3, [r7, #40] @ 0x28
  49329. 8014bf8: 1e5a subs r2, r3, #1
  49330. 8014bfa: 6afb ldr r3, [r7, #44] @ 0x2c
  49331. 8014bfc: 639a str r2, [r3, #56] @ 0x38
  49332. #if ( configUSE_MUTEXES == 1 )
  49333. {
  49334. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49335. 8014bfe: 6afb ldr r3, [r7, #44] @ 0x2c
  49336. 8014c00: 681b ldr r3, [r3, #0]
  49337. 8014c02: 2b00 cmp r3, #0
  49338. 8014c04: d104 bne.n 8014c10 <xQueueSemaphoreTake+0xb0>
  49339. {
  49340. /* Record the information required to implement
  49341. priority inheritance should it become necessary. */
  49342. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  49343. 8014c06: f001 fc99 bl 801653c <pvTaskIncrementMutexHeldCount>
  49344. 8014c0a: 4602 mov r2, r0
  49345. 8014c0c: 6afb ldr r3, [r7, #44] @ 0x2c
  49346. 8014c0e: 609a str r2, [r3, #8]
  49347. }
  49348. #endif /* configUSE_MUTEXES */
  49349. /* Check to see if other tasks are blocked waiting to give the
  49350. semaphore, and if so, unblock the highest priority such task. */
  49351. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49352. 8014c10: 6afb ldr r3, [r7, #44] @ 0x2c
  49353. 8014c12: 691b ldr r3, [r3, #16]
  49354. 8014c14: 2b00 cmp r3, #0
  49355. 8014c16: d00f beq.n 8014c38 <xQueueSemaphoreTake+0xd8>
  49356. {
  49357. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49358. 8014c18: 6afb ldr r3, [r7, #44] @ 0x2c
  49359. 8014c1a: 3310 adds r3, #16
  49360. 8014c1c: 4618 mov r0, r3
  49361. 8014c1e: f001 f915 bl 8015e4c <xTaskRemoveFromEventList>
  49362. 8014c22: 4603 mov r3, r0
  49363. 8014c24: 2b00 cmp r3, #0
  49364. 8014c26: d007 beq.n 8014c38 <xQueueSemaphoreTake+0xd8>
  49365. {
  49366. queueYIELD_IF_USING_PREEMPTION();
  49367. 8014c28: 4b54 ldr r3, [pc, #336] @ (8014d7c <xQueueSemaphoreTake+0x21c>)
  49368. 8014c2a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49369. 8014c2e: 601a str r2, [r3, #0]
  49370. 8014c30: f3bf 8f4f dsb sy
  49371. 8014c34: f3bf 8f6f isb sy
  49372. else
  49373. {
  49374. mtCOVERAGE_TEST_MARKER();
  49375. }
  49376. taskEXIT_CRITICAL();
  49377. 8014c38: f002 fcc0 bl 80175bc <vPortExitCritical>
  49378. return pdPASS;
  49379. 8014c3c: 2301 movs r3, #1
  49380. 8014c3e: e098 b.n 8014d72 <xQueueSemaphoreTake+0x212>
  49381. }
  49382. else
  49383. {
  49384. if( xTicksToWait == ( TickType_t ) 0 )
  49385. 8014c40: 683b ldr r3, [r7, #0]
  49386. 8014c42: 2b00 cmp r3, #0
  49387. 8014c44: d112 bne.n 8014c6c <xQueueSemaphoreTake+0x10c>
  49388. /* For inheritance to have occurred there must have been an
  49389. initial timeout, and an adjusted timeout cannot become 0, as
  49390. if it were 0 the function would have exited. */
  49391. #if( configUSE_MUTEXES == 1 )
  49392. {
  49393. configASSERT( xInheritanceOccurred == pdFALSE );
  49394. 8014c46: 6b3b ldr r3, [r7, #48] @ 0x30
  49395. 8014c48: 2b00 cmp r3, #0
  49396. 8014c4a: d00b beq.n 8014c64 <xQueueSemaphoreTake+0x104>
  49397. __asm volatile
  49398. 8014c4c: f04f 0350 mov.w r3, #80 @ 0x50
  49399. 8014c50: f383 8811 msr BASEPRI, r3
  49400. 8014c54: f3bf 8f6f isb sy
  49401. 8014c58: f3bf 8f4f dsb sy
  49402. 8014c5c: 617b str r3, [r7, #20]
  49403. }
  49404. 8014c5e: bf00 nop
  49405. 8014c60: bf00 nop
  49406. 8014c62: e7fd b.n 8014c60 <xQueueSemaphoreTake+0x100>
  49407. }
  49408. #endif /* configUSE_MUTEXES */
  49409. /* The semaphore count was 0 and no block time is specified
  49410. (or the block time has expired) so exit now. */
  49411. taskEXIT_CRITICAL();
  49412. 8014c64: f002 fcaa bl 80175bc <vPortExitCritical>
  49413. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49414. return errQUEUE_EMPTY;
  49415. 8014c68: 2300 movs r3, #0
  49416. 8014c6a: e082 b.n 8014d72 <xQueueSemaphoreTake+0x212>
  49417. }
  49418. else if( xEntryTimeSet == pdFALSE )
  49419. 8014c6c: 6b7b ldr r3, [r7, #52] @ 0x34
  49420. 8014c6e: 2b00 cmp r3, #0
  49421. 8014c70: d106 bne.n 8014c80 <xQueueSemaphoreTake+0x120>
  49422. {
  49423. /* The semaphore count was 0 and a block time was specified
  49424. so configure the timeout structure ready to block. */
  49425. vTaskInternalSetTimeOutState( &xTimeOut );
  49426. 8014c72: f107 030c add.w r3, r7, #12
  49427. 8014c76: 4618 mov r0, r3
  49428. 8014c78: f001 f974 bl 8015f64 <vTaskInternalSetTimeOutState>
  49429. xEntryTimeSet = pdTRUE;
  49430. 8014c7c: 2301 movs r3, #1
  49431. 8014c7e: 637b str r3, [r7, #52] @ 0x34
  49432. /* Entry time was already set. */
  49433. mtCOVERAGE_TEST_MARKER();
  49434. }
  49435. }
  49436. }
  49437. taskEXIT_CRITICAL();
  49438. 8014c80: f002 fc9c bl 80175bc <vPortExitCritical>
  49439. /* Interrupts and other tasks can give to and take from the semaphore
  49440. now the critical section has been exited. */
  49441. vTaskSuspendAll();
  49442. 8014c84: f000 fea6 bl 80159d4 <vTaskSuspendAll>
  49443. prvLockQueue( pxQueue );
  49444. 8014c88: f002 fc66 bl 8017558 <vPortEnterCritical>
  49445. 8014c8c: 6afb ldr r3, [r7, #44] @ 0x2c
  49446. 8014c8e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49447. 8014c92: b25b sxtb r3, r3
  49448. 8014c94: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49449. 8014c98: d103 bne.n 8014ca2 <xQueueSemaphoreTake+0x142>
  49450. 8014c9a: 6afb ldr r3, [r7, #44] @ 0x2c
  49451. 8014c9c: 2200 movs r2, #0
  49452. 8014c9e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49453. 8014ca2: 6afb ldr r3, [r7, #44] @ 0x2c
  49454. 8014ca4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49455. 8014ca8: b25b sxtb r3, r3
  49456. 8014caa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49457. 8014cae: d103 bne.n 8014cb8 <xQueueSemaphoreTake+0x158>
  49458. 8014cb0: 6afb ldr r3, [r7, #44] @ 0x2c
  49459. 8014cb2: 2200 movs r2, #0
  49460. 8014cb4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49461. 8014cb8: f002 fc80 bl 80175bc <vPortExitCritical>
  49462. /* Update the timeout state to see if it has expired yet. */
  49463. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49464. 8014cbc: 463a mov r2, r7
  49465. 8014cbe: f107 030c add.w r3, r7, #12
  49466. 8014cc2: 4611 mov r1, r2
  49467. 8014cc4: 4618 mov r0, r3
  49468. 8014cc6: f001 f963 bl 8015f90 <xTaskCheckForTimeOut>
  49469. 8014cca: 4603 mov r3, r0
  49470. 8014ccc: 2b00 cmp r3, #0
  49471. 8014cce: d132 bne.n 8014d36 <xQueueSemaphoreTake+0x1d6>
  49472. {
  49473. /* A block time is specified and not expired. If the semaphore
  49474. count is 0 then enter the Blocked state to wait for a semaphore to
  49475. become available. As semaphores are implemented with queues the
  49476. queue being empty is equivalent to the semaphore count being 0. */
  49477. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49478. 8014cd0: 6af8 ldr r0, [r7, #44] @ 0x2c
  49479. 8014cd2: f000 f9d1 bl 8015078 <prvIsQueueEmpty>
  49480. 8014cd6: 4603 mov r3, r0
  49481. 8014cd8: 2b00 cmp r3, #0
  49482. 8014cda: d026 beq.n 8014d2a <xQueueSemaphoreTake+0x1ca>
  49483. {
  49484. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  49485. #if ( configUSE_MUTEXES == 1 )
  49486. {
  49487. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49488. 8014cdc: 6afb ldr r3, [r7, #44] @ 0x2c
  49489. 8014cde: 681b ldr r3, [r3, #0]
  49490. 8014ce0: 2b00 cmp r3, #0
  49491. 8014ce2: d109 bne.n 8014cf8 <xQueueSemaphoreTake+0x198>
  49492. {
  49493. taskENTER_CRITICAL();
  49494. 8014ce4: f002 fc38 bl 8017558 <vPortEnterCritical>
  49495. {
  49496. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  49497. 8014ce8: 6afb ldr r3, [r7, #44] @ 0x2c
  49498. 8014cea: 689b ldr r3, [r3, #8]
  49499. 8014cec: 4618 mov r0, r3
  49500. 8014cee: f001 fac9 bl 8016284 <xTaskPriorityInherit>
  49501. 8014cf2: 6338 str r0, [r7, #48] @ 0x30
  49502. }
  49503. taskEXIT_CRITICAL();
  49504. 8014cf4: f002 fc62 bl 80175bc <vPortExitCritical>
  49505. mtCOVERAGE_TEST_MARKER();
  49506. }
  49507. }
  49508. #endif
  49509. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  49510. 8014cf8: 6afb ldr r3, [r7, #44] @ 0x2c
  49511. 8014cfa: 3324 adds r3, #36 @ 0x24
  49512. 8014cfc: 683a ldr r2, [r7, #0]
  49513. 8014cfe: 4611 mov r1, r2
  49514. 8014d00: 4618 mov r0, r3
  49515. 8014d02: f001 f851 bl 8015da8 <vTaskPlaceOnEventList>
  49516. prvUnlockQueue( pxQueue );
  49517. 8014d06: 6af8 ldr r0, [r7, #44] @ 0x2c
  49518. 8014d08: f000 f964 bl 8014fd4 <prvUnlockQueue>
  49519. if( xTaskResumeAll() == pdFALSE )
  49520. 8014d0c: f000 fe70 bl 80159f0 <xTaskResumeAll>
  49521. 8014d10: 4603 mov r3, r0
  49522. 8014d12: 2b00 cmp r3, #0
  49523. 8014d14: f47f af67 bne.w 8014be6 <xQueueSemaphoreTake+0x86>
  49524. {
  49525. portYIELD_WITHIN_API();
  49526. 8014d18: 4b18 ldr r3, [pc, #96] @ (8014d7c <xQueueSemaphoreTake+0x21c>)
  49527. 8014d1a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49528. 8014d1e: 601a str r2, [r3, #0]
  49529. 8014d20: f3bf 8f4f dsb sy
  49530. 8014d24: f3bf 8f6f isb sy
  49531. 8014d28: e75d b.n 8014be6 <xQueueSemaphoreTake+0x86>
  49532. }
  49533. else
  49534. {
  49535. /* There was no timeout and the semaphore count was not 0, so
  49536. attempt to take the semaphore again. */
  49537. prvUnlockQueue( pxQueue );
  49538. 8014d2a: 6af8 ldr r0, [r7, #44] @ 0x2c
  49539. 8014d2c: f000 f952 bl 8014fd4 <prvUnlockQueue>
  49540. ( void ) xTaskResumeAll();
  49541. 8014d30: f000 fe5e bl 80159f0 <xTaskResumeAll>
  49542. 8014d34: e757 b.n 8014be6 <xQueueSemaphoreTake+0x86>
  49543. }
  49544. }
  49545. else
  49546. {
  49547. /* Timed out. */
  49548. prvUnlockQueue( pxQueue );
  49549. 8014d36: 6af8 ldr r0, [r7, #44] @ 0x2c
  49550. 8014d38: f000 f94c bl 8014fd4 <prvUnlockQueue>
  49551. ( void ) xTaskResumeAll();
  49552. 8014d3c: f000 fe58 bl 80159f0 <xTaskResumeAll>
  49553. /* If the semaphore count is 0 exit now as the timeout has
  49554. expired. Otherwise return to attempt to take the semaphore that is
  49555. known to be available. As semaphores are implemented by queues the
  49556. queue being empty is equivalent to the semaphore count being 0. */
  49557. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49558. 8014d40: 6af8 ldr r0, [r7, #44] @ 0x2c
  49559. 8014d42: f000 f999 bl 8015078 <prvIsQueueEmpty>
  49560. 8014d46: 4603 mov r3, r0
  49561. 8014d48: 2b00 cmp r3, #0
  49562. 8014d4a: f43f af4c beq.w 8014be6 <xQueueSemaphoreTake+0x86>
  49563. #if ( configUSE_MUTEXES == 1 )
  49564. {
  49565. /* xInheritanceOccurred could only have be set if
  49566. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  49567. test the mutex type again to check it is actually a mutex. */
  49568. if( xInheritanceOccurred != pdFALSE )
  49569. 8014d4e: 6b3b ldr r3, [r7, #48] @ 0x30
  49570. 8014d50: 2b00 cmp r3, #0
  49571. 8014d52: d00d beq.n 8014d70 <xQueueSemaphoreTake+0x210>
  49572. {
  49573. taskENTER_CRITICAL();
  49574. 8014d54: f002 fc00 bl 8017558 <vPortEnterCritical>
  49575. /* This task blocking on the mutex caused another
  49576. task to inherit this task's priority. Now this task
  49577. has timed out the priority should be disinherited
  49578. again, but only as low as the next highest priority
  49579. task that is waiting for the same mutex. */
  49580. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  49581. 8014d58: 6af8 ldr r0, [r7, #44] @ 0x2c
  49582. 8014d5a: f000 f893 bl 8014e84 <prvGetDisinheritPriorityAfterTimeout>
  49583. 8014d5e: 6278 str r0, [r7, #36] @ 0x24
  49584. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  49585. 8014d60: 6afb ldr r3, [r7, #44] @ 0x2c
  49586. 8014d62: 689b ldr r3, [r3, #8]
  49587. 8014d64: 6a79 ldr r1, [r7, #36] @ 0x24
  49588. 8014d66: 4618 mov r0, r3
  49589. 8014d68: f001 fb64 bl 8016434 <vTaskPriorityDisinheritAfterTimeout>
  49590. }
  49591. taskEXIT_CRITICAL();
  49592. 8014d6c: f002 fc26 bl 80175bc <vPortExitCritical>
  49593. }
  49594. }
  49595. #endif /* configUSE_MUTEXES */
  49596. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49597. return errQUEUE_EMPTY;
  49598. 8014d70: 2300 movs r3, #0
  49599. {
  49600. mtCOVERAGE_TEST_MARKER();
  49601. }
  49602. }
  49603. } /*lint -restore */
  49604. }
  49605. 8014d72: 4618 mov r0, r3
  49606. 8014d74: 3738 adds r7, #56 @ 0x38
  49607. 8014d76: 46bd mov sp, r7
  49608. 8014d78: bd80 pop {r7, pc}
  49609. 8014d7a: bf00 nop
  49610. 8014d7c: e000ed04 .word 0xe000ed04
  49611. 08014d80 <xQueueReceiveFromISR>:
  49612. } /*lint -restore */
  49613. }
  49614. /*-----------------------------------------------------------*/
  49615. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  49616. {
  49617. 8014d80: b580 push {r7, lr}
  49618. 8014d82: b08e sub sp, #56 @ 0x38
  49619. 8014d84: af00 add r7, sp, #0
  49620. 8014d86: 60f8 str r0, [r7, #12]
  49621. 8014d88: 60b9 str r1, [r7, #8]
  49622. 8014d8a: 607a str r2, [r7, #4]
  49623. BaseType_t xReturn;
  49624. UBaseType_t uxSavedInterruptStatus;
  49625. Queue_t * const pxQueue = xQueue;
  49626. 8014d8c: 68fb ldr r3, [r7, #12]
  49627. 8014d8e: 633b str r3, [r7, #48] @ 0x30
  49628. configASSERT( pxQueue );
  49629. 8014d90: 6b3b ldr r3, [r7, #48] @ 0x30
  49630. 8014d92: 2b00 cmp r3, #0
  49631. 8014d94: d10b bne.n 8014dae <xQueueReceiveFromISR+0x2e>
  49632. __asm volatile
  49633. 8014d96: f04f 0350 mov.w r3, #80 @ 0x50
  49634. 8014d9a: f383 8811 msr BASEPRI, r3
  49635. 8014d9e: f3bf 8f6f isb sy
  49636. 8014da2: f3bf 8f4f dsb sy
  49637. 8014da6: 623b str r3, [r7, #32]
  49638. }
  49639. 8014da8: bf00 nop
  49640. 8014daa: bf00 nop
  49641. 8014dac: e7fd b.n 8014daa <xQueueReceiveFromISR+0x2a>
  49642. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49643. 8014dae: 68bb ldr r3, [r7, #8]
  49644. 8014db0: 2b00 cmp r3, #0
  49645. 8014db2: d103 bne.n 8014dbc <xQueueReceiveFromISR+0x3c>
  49646. 8014db4: 6b3b ldr r3, [r7, #48] @ 0x30
  49647. 8014db6: 6c1b ldr r3, [r3, #64] @ 0x40
  49648. 8014db8: 2b00 cmp r3, #0
  49649. 8014dba: d101 bne.n 8014dc0 <xQueueReceiveFromISR+0x40>
  49650. 8014dbc: 2301 movs r3, #1
  49651. 8014dbe: e000 b.n 8014dc2 <xQueueReceiveFromISR+0x42>
  49652. 8014dc0: 2300 movs r3, #0
  49653. 8014dc2: 2b00 cmp r3, #0
  49654. 8014dc4: d10b bne.n 8014dde <xQueueReceiveFromISR+0x5e>
  49655. __asm volatile
  49656. 8014dc6: f04f 0350 mov.w r3, #80 @ 0x50
  49657. 8014dca: f383 8811 msr BASEPRI, r3
  49658. 8014dce: f3bf 8f6f isb sy
  49659. 8014dd2: f3bf 8f4f dsb sy
  49660. 8014dd6: 61fb str r3, [r7, #28]
  49661. }
  49662. 8014dd8: bf00 nop
  49663. 8014dda: bf00 nop
  49664. 8014ddc: e7fd b.n 8014dda <xQueueReceiveFromISR+0x5a>
  49665. that have been assigned a priority at or (logically) below the maximum
  49666. system call interrupt priority. FreeRTOS maintains a separate interrupt
  49667. safe API to ensure interrupt entry is as fast and as simple as possible.
  49668. More information (albeit Cortex-M specific) is provided on the following
  49669. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49670. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49671. 8014dde: f002 fc9b bl 8017718 <vPortValidateInterruptPriority>
  49672. __asm volatile
  49673. 8014de2: f3ef 8211 mrs r2, BASEPRI
  49674. 8014de6: f04f 0350 mov.w r3, #80 @ 0x50
  49675. 8014dea: f383 8811 msr BASEPRI, r3
  49676. 8014dee: f3bf 8f6f isb sy
  49677. 8014df2: f3bf 8f4f dsb sy
  49678. 8014df6: 61ba str r2, [r7, #24]
  49679. 8014df8: 617b str r3, [r7, #20]
  49680. return ulOriginalBASEPRI;
  49681. 8014dfa: 69bb ldr r3, [r7, #24]
  49682. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49683. 8014dfc: 62fb str r3, [r7, #44] @ 0x2c
  49684. {
  49685. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49686. 8014dfe: 6b3b ldr r3, [r7, #48] @ 0x30
  49687. 8014e00: 6b9b ldr r3, [r3, #56] @ 0x38
  49688. 8014e02: 62bb str r3, [r7, #40] @ 0x28
  49689. /* Cannot block in an ISR, so check there is data available. */
  49690. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49691. 8014e04: 6abb ldr r3, [r7, #40] @ 0x28
  49692. 8014e06: 2b00 cmp r3, #0
  49693. 8014e08: d02f beq.n 8014e6a <xQueueReceiveFromISR+0xea>
  49694. {
  49695. const int8_t cRxLock = pxQueue->cRxLock;
  49696. 8014e0a: 6b3b ldr r3, [r7, #48] @ 0x30
  49697. 8014e0c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49698. 8014e10: f887 3027 strb.w r3, [r7, #39] @ 0x27
  49699. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  49700. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49701. 8014e14: 68b9 ldr r1, [r7, #8]
  49702. 8014e16: 6b38 ldr r0, [r7, #48] @ 0x30
  49703. 8014e18: f000 f8b6 bl 8014f88 <prvCopyDataFromQueue>
  49704. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49705. 8014e1c: 6abb ldr r3, [r7, #40] @ 0x28
  49706. 8014e1e: 1e5a subs r2, r3, #1
  49707. 8014e20: 6b3b ldr r3, [r7, #48] @ 0x30
  49708. 8014e22: 639a str r2, [r3, #56] @ 0x38
  49709. /* If the queue is locked the event list will not be modified.
  49710. Instead update the lock count so the task that unlocks the queue
  49711. will know that an ISR has removed data while the queue was
  49712. locked. */
  49713. if( cRxLock == queueUNLOCKED )
  49714. 8014e24: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  49715. 8014e28: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49716. 8014e2c: d112 bne.n 8014e54 <xQueueReceiveFromISR+0xd4>
  49717. {
  49718. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49719. 8014e2e: 6b3b ldr r3, [r7, #48] @ 0x30
  49720. 8014e30: 691b ldr r3, [r3, #16]
  49721. 8014e32: 2b00 cmp r3, #0
  49722. 8014e34: d016 beq.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49723. {
  49724. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49725. 8014e36: 6b3b ldr r3, [r7, #48] @ 0x30
  49726. 8014e38: 3310 adds r3, #16
  49727. 8014e3a: 4618 mov r0, r3
  49728. 8014e3c: f001 f806 bl 8015e4c <xTaskRemoveFromEventList>
  49729. 8014e40: 4603 mov r3, r0
  49730. 8014e42: 2b00 cmp r3, #0
  49731. 8014e44: d00e beq.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49732. {
  49733. /* The task waiting has a higher priority than us so
  49734. force a context switch. */
  49735. if( pxHigherPriorityTaskWoken != NULL )
  49736. 8014e46: 687b ldr r3, [r7, #4]
  49737. 8014e48: 2b00 cmp r3, #0
  49738. 8014e4a: d00b beq.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49739. {
  49740. *pxHigherPriorityTaskWoken = pdTRUE;
  49741. 8014e4c: 687b ldr r3, [r7, #4]
  49742. 8014e4e: 2201 movs r2, #1
  49743. 8014e50: 601a str r2, [r3, #0]
  49744. 8014e52: e007 b.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49745. }
  49746. else
  49747. {
  49748. /* Increment the lock count so the task that unlocks the queue
  49749. knows that data was removed while it was locked. */
  49750. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  49751. 8014e54: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  49752. 8014e58: 3301 adds r3, #1
  49753. 8014e5a: b2db uxtb r3, r3
  49754. 8014e5c: b25a sxtb r2, r3
  49755. 8014e5e: 6b3b ldr r3, [r7, #48] @ 0x30
  49756. 8014e60: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49757. }
  49758. xReturn = pdPASS;
  49759. 8014e64: 2301 movs r3, #1
  49760. 8014e66: 637b str r3, [r7, #52] @ 0x34
  49761. 8014e68: e001 b.n 8014e6e <xQueueReceiveFromISR+0xee>
  49762. }
  49763. else
  49764. {
  49765. xReturn = pdFAIL;
  49766. 8014e6a: 2300 movs r3, #0
  49767. 8014e6c: 637b str r3, [r7, #52] @ 0x34
  49768. 8014e6e: 6afb ldr r3, [r7, #44] @ 0x2c
  49769. 8014e70: 613b str r3, [r7, #16]
  49770. __asm volatile
  49771. 8014e72: 693b ldr r3, [r7, #16]
  49772. 8014e74: f383 8811 msr BASEPRI, r3
  49773. }
  49774. 8014e78: bf00 nop
  49775. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  49776. }
  49777. }
  49778. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49779. return xReturn;
  49780. 8014e7a: 6b7b ldr r3, [r7, #52] @ 0x34
  49781. }
  49782. 8014e7c: 4618 mov r0, r3
  49783. 8014e7e: 3738 adds r7, #56 @ 0x38
  49784. 8014e80: 46bd mov sp, r7
  49785. 8014e82: bd80 pop {r7, pc}
  49786. 08014e84 <prvGetDisinheritPriorityAfterTimeout>:
  49787. /*-----------------------------------------------------------*/
  49788. #if( configUSE_MUTEXES == 1 )
  49789. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  49790. {
  49791. 8014e84: b480 push {r7}
  49792. 8014e86: b085 sub sp, #20
  49793. 8014e88: af00 add r7, sp, #0
  49794. 8014e8a: 6078 str r0, [r7, #4]
  49795. priority, but the waiting task times out, then the holder should
  49796. disinherit the priority - but only down to the highest priority of any
  49797. other tasks that are waiting for the same mutex. For this purpose,
  49798. return the priority of the highest priority task that is waiting for the
  49799. mutex. */
  49800. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  49801. 8014e8c: 687b ldr r3, [r7, #4]
  49802. 8014e8e: 6a5b ldr r3, [r3, #36] @ 0x24
  49803. 8014e90: 2b00 cmp r3, #0
  49804. 8014e92: d006 beq.n 8014ea2 <prvGetDisinheritPriorityAfterTimeout+0x1e>
  49805. {
  49806. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  49807. 8014e94: 687b ldr r3, [r7, #4]
  49808. 8014e96: 6b1b ldr r3, [r3, #48] @ 0x30
  49809. 8014e98: 681b ldr r3, [r3, #0]
  49810. 8014e9a: f1c3 0338 rsb r3, r3, #56 @ 0x38
  49811. 8014e9e: 60fb str r3, [r7, #12]
  49812. 8014ea0: e001 b.n 8014ea6 <prvGetDisinheritPriorityAfterTimeout+0x22>
  49813. }
  49814. else
  49815. {
  49816. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  49817. 8014ea2: 2300 movs r3, #0
  49818. 8014ea4: 60fb str r3, [r7, #12]
  49819. }
  49820. return uxHighestPriorityOfWaitingTasks;
  49821. 8014ea6: 68fb ldr r3, [r7, #12]
  49822. }
  49823. 8014ea8: 4618 mov r0, r3
  49824. 8014eaa: 3714 adds r7, #20
  49825. 8014eac: 46bd mov sp, r7
  49826. 8014eae: f85d 7b04 ldr.w r7, [sp], #4
  49827. 8014eb2: 4770 bx lr
  49828. 08014eb4 <prvCopyDataToQueue>:
  49829. #endif /* configUSE_MUTEXES */
  49830. /*-----------------------------------------------------------*/
  49831. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  49832. {
  49833. 8014eb4: b580 push {r7, lr}
  49834. 8014eb6: b086 sub sp, #24
  49835. 8014eb8: af00 add r7, sp, #0
  49836. 8014eba: 60f8 str r0, [r7, #12]
  49837. 8014ebc: 60b9 str r1, [r7, #8]
  49838. 8014ebe: 607a str r2, [r7, #4]
  49839. BaseType_t xReturn = pdFALSE;
  49840. 8014ec0: 2300 movs r3, #0
  49841. 8014ec2: 617b str r3, [r7, #20]
  49842. UBaseType_t uxMessagesWaiting;
  49843. /* This function is called from a critical section. */
  49844. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49845. 8014ec4: 68fb ldr r3, [r7, #12]
  49846. 8014ec6: 6b9b ldr r3, [r3, #56] @ 0x38
  49847. 8014ec8: 613b str r3, [r7, #16]
  49848. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  49849. 8014eca: 68fb ldr r3, [r7, #12]
  49850. 8014ecc: 6c1b ldr r3, [r3, #64] @ 0x40
  49851. 8014ece: 2b00 cmp r3, #0
  49852. 8014ed0: d10d bne.n 8014eee <prvCopyDataToQueue+0x3a>
  49853. {
  49854. #if ( configUSE_MUTEXES == 1 )
  49855. {
  49856. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49857. 8014ed2: 68fb ldr r3, [r7, #12]
  49858. 8014ed4: 681b ldr r3, [r3, #0]
  49859. 8014ed6: 2b00 cmp r3, #0
  49860. 8014ed8: d14d bne.n 8014f76 <prvCopyDataToQueue+0xc2>
  49861. {
  49862. /* The mutex is no longer being held. */
  49863. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  49864. 8014eda: 68fb ldr r3, [r7, #12]
  49865. 8014edc: 689b ldr r3, [r3, #8]
  49866. 8014ede: 4618 mov r0, r3
  49867. 8014ee0: f001 fa38 bl 8016354 <xTaskPriorityDisinherit>
  49868. 8014ee4: 6178 str r0, [r7, #20]
  49869. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  49870. 8014ee6: 68fb ldr r3, [r7, #12]
  49871. 8014ee8: 2200 movs r2, #0
  49872. 8014eea: 609a str r2, [r3, #8]
  49873. 8014eec: e043 b.n 8014f76 <prvCopyDataToQueue+0xc2>
  49874. mtCOVERAGE_TEST_MARKER();
  49875. }
  49876. }
  49877. #endif /* configUSE_MUTEXES */
  49878. }
  49879. else if( xPosition == queueSEND_TO_BACK )
  49880. 8014eee: 687b ldr r3, [r7, #4]
  49881. 8014ef0: 2b00 cmp r3, #0
  49882. 8014ef2: d119 bne.n 8014f28 <prvCopyDataToQueue+0x74>
  49883. {
  49884. ( 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. */
  49885. 8014ef4: 68fb ldr r3, [r7, #12]
  49886. 8014ef6: 6858 ldr r0, [r3, #4]
  49887. 8014ef8: 68fb ldr r3, [r7, #12]
  49888. 8014efa: 6c1b ldr r3, [r3, #64] @ 0x40
  49889. 8014efc: 461a mov r2, r3
  49890. 8014efe: 68b9 ldr r1, [r7, #8]
  49891. 8014f00: f003 f823 bl 8017f4a <memcpy>
  49892. 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. */
  49893. 8014f04: 68fb ldr r3, [r7, #12]
  49894. 8014f06: 685a ldr r2, [r3, #4]
  49895. 8014f08: 68fb ldr r3, [r7, #12]
  49896. 8014f0a: 6c1b ldr r3, [r3, #64] @ 0x40
  49897. 8014f0c: 441a add r2, r3
  49898. 8014f0e: 68fb ldr r3, [r7, #12]
  49899. 8014f10: 605a str r2, [r3, #4]
  49900. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49901. 8014f12: 68fb ldr r3, [r7, #12]
  49902. 8014f14: 685a ldr r2, [r3, #4]
  49903. 8014f16: 68fb ldr r3, [r7, #12]
  49904. 8014f18: 689b ldr r3, [r3, #8]
  49905. 8014f1a: 429a cmp r2, r3
  49906. 8014f1c: d32b bcc.n 8014f76 <prvCopyDataToQueue+0xc2>
  49907. {
  49908. pxQueue->pcWriteTo = pxQueue->pcHead;
  49909. 8014f1e: 68fb ldr r3, [r7, #12]
  49910. 8014f20: 681a ldr r2, [r3, #0]
  49911. 8014f22: 68fb ldr r3, [r7, #12]
  49912. 8014f24: 605a str r2, [r3, #4]
  49913. 8014f26: e026 b.n 8014f76 <prvCopyDataToQueue+0xc2>
  49914. mtCOVERAGE_TEST_MARKER();
  49915. }
  49916. }
  49917. else
  49918. {
  49919. ( 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. */
  49920. 8014f28: 68fb ldr r3, [r7, #12]
  49921. 8014f2a: 68d8 ldr r0, [r3, #12]
  49922. 8014f2c: 68fb ldr r3, [r7, #12]
  49923. 8014f2e: 6c1b ldr r3, [r3, #64] @ 0x40
  49924. 8014f30: 461a mov r2, r3
  49925. 8014f32: 68b9 ldr r1, [r7, #8]
  49926. 8014f34: f003 f809 bl 8017f4a <memcpy>
  49927. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  49928. 8014f38: 68fb ldr r3, [r7, #12]
  49929. 8014f3a: 68da ldr r2, [r3, #12]
  49930. 8014f3c: 68fb ldr r3, [r7, #12]
  49931. 8014f3e: 6c1b ldr r3, [r3, #64] @ 0x40
  49932. 8014f40: 425b negs r3, r3
  49933. 8014f42: 441a add r2, r3
  49934. 8014f44: 68fb ldr r3, [r7, #12]
  49935. 8014f46: 60da str r2, [r3, #12]
  49936. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49937. 8014f48: 68fb ldr r3, [r7, #12]
  49938. 8014f4a: 68da ldr r2, [r3, #12]
  49939. 8014f4c: 68fb ldr r3, [r7, #12]
  49940. 8014f4e: 681b ldr r3, [r3, #0]
  49941. 8014f50: 429a cmp r2, r3
  49942. 8014f52: d207 bcs.n 8014f64 <prvCopyDataToQueue+0xb0>
  49943. {
  49944. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  49945. 8014f54: 68fb ldr r3, [r7, #12]
  49946. 8014f56: 689a ldr r2, [r3, #8]
  49947. 8014f58: 68fb ldr r3, [r7, #12]
  49948. 8014f5a: 6c1b ldr r3, [r3, #64] @ 0x40
  49949. 8014f5c: 425b negs r3, r3
  49950. 8014f5e: 441a add r2, r3
  49951. 8014f60: 68fb ldr r3, [r7, #12]
  49952. 8014f62: 60da str r2, [r3, #12]
  49953. else
  49954. {
  49955. mtCOVERAGE_TEST_MARKER();
  49956. }
  49957. if( xPosition == queueOVERWRITE )
  49958. 8014f64: 687b ldr r3, [r7, #4]
  49959. 8014f66: 2b02 cmp r3, #2
  49960. 8014f68: d105 bne.n 8014f76 <prvCopyDataToQueue+0xc2>
  49961. {
  49962. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49963. 8014f6a: 693b ldr r3, [r7, #16]
  49964. 8014f6c: 2b00 cmp r3, #0
  49965. 8014f6e: d002 beq.n 8014f76 <prvCopyDataToQueue+0xc2>
  49966. {
  49967. /* An item is not being added but overwritten, so subtract
  49968. one from the recorded number of items in the queue so when
  49969. one is added again below the number of recorded items remains
  49970. correct. */
  49971. --uxMessagesWaiting;
  49972. 8014f70: 693b ldr r3, [r7, #16]
  49973. 8014f72: 3b01 subs r3, #1
  49974. 8014f74: 613b str r3, [r7, #16]
  49975. {
  49976. mtCOVERAGE_TEST_MARKER();
  49977. }
  49978. }
  49979. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  49980. 8014f76: 693b ldr r3, [r7, #16]
  49981. 8014f78: 1c5a adds r2, r3, #1
  49982. 8014f7a: 68fb ldr r3, [r7, #12]
  49983. 8014f7c: 639a str r2, [r3, #56] @ 0x38
  49984. return xReturn;
  49985. 8014f7e: 697b ldr r3, [r7, #20]
  49986. }
  49987. 8014f80: 4618 mov r0, r3
  49988. 8014f82: 3718 adds r7, #24
  49989. 8014f84: 46bd mov sp, r7
  49990. 8014f86: bd80 pop {r7, pc}
  49991. 08014f88 <prvCopyDataFromQueue>:
  49992. /*-----------------------------------------------------------*/
  49993. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  49994. {
  49995. 8014f88: b580 push {r7, lr}
  49996. 8014f8a: b082 sub sp, #8
  49997. 8014f8c: af00 add r7, sp, #0
  49998. 8014f8e: 6078 str r0, [r7, #4]
  49999. 8014f90: 6039 str r1, [r7, #0]
  50000. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  50001. 8014f92: 687b ldr r3, [r7, #4]
  50002. 8014f94: 6c1b ldr r3, [r3, #64] @ 0x40
  50003. 8014f96: 2b00 cmp r3, #0
  50004. 8014f98: d018 beq.n 8014fcc <prvCopyDataFromQueue+0x44>
  50005. {
  50006. 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. */
  50007. 8014f9a: 687b ldr r3, [r7, #4]
  50008. 8014f9c: 68da ldr r2, [r3, #12]
  50009. 8014f9e: 687b ldr r3, [r7, #4]
  50010. 8014fa0: 6c1b ldr r3, [r3, #64] @ 0x40
  50011. 8014fa2: 441a add r2, r3
  50012. 8014fa4: 687b ldr r3, [r7, #4]
  50013. 8014fa6: 60da str r2, [r3, #12]
  50014. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  50015. 8014fa8: 687b ldr r3, [r7, #4]
  50016. 8014faa: 68da ldr r2, [r3, #12]
  50017. 8014fac: 687b ldr r3, [r7, #4]
  50018. 8014fae: 689b ldr r3, [r3, #8]
  50019. 8014fb0: 429a cmp r2, r3
  50020. 8014fb2: d303 bcc.n 8014fbc <prvCopyDataFromQueue+0x34>
  50021. {
  50022. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  50023. 8014fb4: 687b ldr r3, [r7, #4]
  50024. 8014fb6: 681a ldr r2, [r3, #0]
  50025. 8014fb8: 687b ldr r3, [r7, #4]
  50026. 8014fba: 60da str r2, [r3, #12]
  50027. }
  50028. else
  50029. {
  50030. mtCOVERAGE_TEST_MARKER();
  50031. }
  50032. ( 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. */
  50033. 8014fbc: 687b ldr r3, [r7, #4]
  50034. 8014fbe: 68d9 ldr r1, [r3, #12]
  50035. 8014fc0: 687b ldr r3, [r7, #4]
  50036. 8014fc2: 6c1b ldr r3, [r3, #64] @ 0x40
  50037. 8014fc4: 461a mov r2, r3
  50038. 8014fc6: 6838 ldr r0, [r7, #0]
  50039. 8014fc8: f002 ffbf bl 8017f4a <memcpy>
  50040. }
  50041. }
  50042. 8014fcc: bf00 nop
  50043. 8014fce: 3708 adds r7, #8
  50044. 8014fd0: 46bd mov sp, r7
  50045. 8014fd2: bd80 pop {r7, pc}
  50046. 08014fd4 <prvUnlockQueue>:
  50047. /*-----------------------------------------------------------*/
  50048. static void prvUnlockQueue( Queue_t * const pxQueue )
  50049. {
  50050. 8014fd4: b580 push {r7, lr}
  50051. 8014fd6: b084 sub sp, #16
  50052. 8014fd8: af00 add r7, sp, #0
  50053. 8014fda: 6078 str r0, [r7, #4]
  50054. /* The lock counts contains the number of extra data items placed or
  50055. removed from the queue while the queue was locked. When a queue is
  50056. locked items can be added or removed, but the event lists cannot be
  50057. updated. */
  50058. taskENTER_CRITICAL();
  50059. 8014fdc: f002 fabc bl 8017558 <vPortEnterCritical>
  50060. {
  50061. int8_t cTxLock = pxQueue->cTxLock;
  50062. 8014fe0: 687b ldr r3, [r7, #4]
  50063. 8014fe2: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50064. 8014fe6: 73fb strb r3, [r7, #15]
  50065. /* See if data was added to the queue while it was locked. */
  50066. while( cTxLock > queueLOCKED_UNMODIFIED )
  50067. 8014fe8: e011 b.n 801500e <prvUnlockQueue+0x3a>
  50068. }
  50069. #else /* configUSE_QUEUE_SETS */
  50070. {
  50071. /* Tasks that are removed from the event list will get added to
  50072. the pending ready list as the scheduler is still suspended. */
  50073. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  50074. 8014fea: 687b ldr r3, [r7, #4]
  50075. 8014fec: 6a5b ldr r3, [r3, #36] @ 0x24
  50076. 8014fee: 2b00 cmp r3, #0
  50077. 8014ff0: d012 beq.n 8015018 <prvUnlockQueue+0x44>
  50078. {
  50079. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  50080. 8014ff2: 687b ldr r3, [r7, #4]
  50081. 8014ff4: 3324 adds r3, #36 @ 0x24
  50082. 8014ff6: 4618 mov r0, r3
  50083. 8014ff8: f000 ff28 bl 8015e4c <xTaskRemoveFromEventList>
  50084. 8014ffc: 4603 mov r3, r0
  50085. 8014ffe: 2b00 cmp r3, #0
  50086. 8015000: d001 beq.n 8015006 <prvUnlockQueue+0x32>
  50087. {
  50088. /* The task waiting has a higher priority so record that
  50089. a context switch is required. */
  50090. vTaskMissedYield();
  50091. 8015002: f001 f829 bl 8016058 <vTaskMissedYield>
  50092. break;
  50093. }
  50094. }
  50095. #endif /* configUSE_QUEUE_SETS */
  50096. --cTxLock;
  50097. 8015006: 7bfb ldrb r3, [r7, #15]
  50098. 8015008: 3b01 subs r3, #1
  50099. 801500a: b2db uxtb r3, r3
  50100. 801500c: 73fb strb r3, [r7, #15]
  50101. while( cTxLock > queueLOCKED_UNMODIFIED )
  50102. 801500e: f997 300f ldrsb.w r3, [r7, #15]
  50103. 8015012: 2b00 cmp r3, #0
  50104. 8015014: dce9 bgt.n 8014fea <prvUnlockQueue+0x16>
  50105. 8015016: e000 b.n 801501a <prvUnlockQueue+0x46>
  50106. break;
  50107. 8015018: bf00 nop
  50108. }
  50109. pxQueue->cTxLock = queueUNLOCKED;
  50110. 801501a: 687b ldr r3, [r7, #4]
  50111. 801501c: 22ff movs r2, #255 @ 0xff
  50112. 801501e: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50113. }
  50114. taskEXIT_CRITICAL();
  50115. 8015022: f002 facb bl 80175bc <vPortExitCritical>
  50116. /* Do the same for the Rx lock. */
  50117. taskENTER_CRITICAL();
  50118. 8015026: f002 fa97 bl 8017558 <vPortEnterCritical>
  50119. {
  50120. int8_t cRxLock = pxQueue->cRxLock;
  50121. 801502a: 687b ldr r3, [r7, #4]
  50122. 801502c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50123. 8015030: 73bb strb r3, [r7, #14]
  50124. while( cRxLock > queueLOCKED_UNMODIFIED )
  50125. 8015032: e011 b.n 8015058 <prvUnlockQueue+0x84>
  50126. {
  50127. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50128. 8015034: 687b ldr r3, [r7, #4]
  50129. 8015036: 691b ldr r3, [r3, #16]
  50130. 8015038: 2b00 cmp r3, #0
  50131. 801503a: d012 beq.n 8015062 <prvUnlockQueue+0x8e>
  50132. {
  50133. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50134. 801503c: 687b ldr r3, [r7, #4]
  50135. 801503e: 3310 adds r3, #16
  50136. 8015040: 4618 mov r0, r3
  50137. 8015042: f000 ff03 bl 8015e4c <xTaskRemoveFromEventList>
  50138. 8015046: 4603 mov r3, r0
  50139. 8015048: 2b00 cmp r3, #0
  50140. 801504a: d001 beq.n 8015050 <prvUnlockQueue+0x7c>
  50141. {
  50142. vTaskMissedYield();
  50143. 801504c: f001 f804 bl 8016058 <vTaskMissedYield>
  50144. else
  50145. {
  50146. mtCOVERAGE_TEST_MARKER();
  50147. }
  50148. --cRxLock;
  50149. 8015050: 7bbb ldrb r3, [r7, #14]
  50150. 8015052: 3b01 subs r3, #1
  50151. 8015054: b2db uxtb r3, r3
  50152. 8015056: 73bb strb r3, [r7, #14]
  50153. while( cRxLock > queueLOCKED_UNMODIFIED )
  50154. 8015058: f997 300e ldrsb.w r3, [r7, #14]
  50155. 801505c: 2b00 cmp r3, #0
  50156. 801505e: dce9 bgt.n 8015034 <prvUnlockQueue+0x60>
  50157. 8015060: e000 b.n 8015064 <prvUnlockQueue+0x90>
  50158. }
  50159. else
  50160. {
  50161. break;
  50162. 8015062: bf00 nop
  50163. }
  50164. }
  50165. pxQueue->cRxLock = queueUNLOCKED;
  50166. 8015064: 687b ldr r3, [r7, #4]
  50167. 8015066: 22ff movs r2, #255 @ 0xff
  50168. 8015068: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50169. }
  50170. taskEXIT_CRITICAL();
  50171. 801506c: f002 faa6 bl 80175bc <vPortExitCritical>
  50172. }
  50173. 8015070: bf00 nop
  50174. 8015072: 3710 adds r7, #16
  50175. 8015074: 46bd mov sp, r7
  50176. 8015076: bd80 pop {r7, pc}
  50177. 08015078 <prvIsQueueEmpty>:
  50178. /*-----------------------------------------------------------*/
  50179. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  50180. {
  50181. 8015078: b580 push {r7, lr}
  50182. 801507a: b084 sub sp, #16
  50183. 801507c: af00 add r7, sp, #0
  50184. 801507e: 6078 str r0, [r7, #4]
  50185. BaseType_t xReturn;
  50186. taskENTER_CRITICAL();
  50187. 8015080: f002 fa6a bl 8017558 <vPortEnterCritical>
  50188. {
  50189. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  50190. 8015084: 687b ldr r3, [r7, #4]
  50191. 8015086: 6b9b ldr r3, [r3, #56] @ 0x38
  50192. 8015088: 2b00 cmp r3, #0
  50193. 801508a: d102 bne.n 8015092 <prvIsQueueEmpty+0x1a>
  50194. {
  50195. xReturn = pdTRUE;
  50196. 801508c: 2301 movs r3, #1
  50197. 801508e: 60fb str r3, [r7, #12]
  50198. 8015090: e001 b.n 8015096 <prvIsQueueEmpty+0x1e>
  50199. }
  50200. else
  50201. {
  50202. xReturn = pdFALSE;
  50203. 8015092: 2300 movs r3, #0
  50204. 8015094: 60fb str r3, [r7, #12]
  50205. }
  50206. }
  50207. taskEXIT_CRITICAL();
  50208. 8015096: f002 fa91 bl 80175bc <vPortExitCritical>
  50209. return xReturn;
  50210. 801509a: 68fb ldr r3, [r7, #12]
  50211. }
  50212. 801509c: 4618 mov r0, r3
  50213. 801509e: 3710 adds r7, #16
  50214. 80150a0: 46bd mov sp, r7
  50215. 80150a2: bd80 pop {r7, pc}
  50216. 080150a4 <prvIsQueueFull>:
  50217. return xReturn;
  50218. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  50219. /*-----------------------------------------------------------*/
  50220. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  50221. {
  50222. 80150a4: b580 push {r7, lr}
  50223. 80150a6: b084 sub sp, #16
  50224. 80150a8: af00 add r7, sp, #0
  50225. 80150aa: 6078 str r0, [r7, #4]
  50226. BaseType_t xReturn;
  50227. taskENTER_CRITICAL();
  50228. 80150ac: f002 fa54 bl 8017558 <vPortEnterCritical>
  50229. {
  50230. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  50231. 80150b0: 687b ldr r3, [r7, #4]
  50232. 80150b2: 6b9a ldr r2, [r3, #56] @ 0x38
  50233. 80150b4: 687b ldr r3, [r7, #4]
  50234. 80150b6: 6bdb ldr r3, [r3, #60] @ 0x3c
  50235. 80150b8: 429a cmp r2, r3
  50236. 80150ba: d102 bne.n 80150c2 <prvIsQueueFull+0x1e>
  50237. {
  50238. xReturn = pdTRUE;
  50239. 80150bc: 2301 movs r3, #1
  50240. 80150be: 60fb str r3, [r7, #12]
  50241. 80150c0: e001 b.n 80150c6 <prvIsQueueFull+0x22>
  50242. }
  50243. else
  50244. {
  50245. xReturn = pdFALSE;
  50246. 80150c2: 2300 movs r3, #0
  50247. 80150c4: 60fb str r3, [r7, #12]
  50248. }
  50249. }
  50250. taskEXIT_CRITICAL();
  50251. 80150c6: f002 fa79 bl 80175bc <vPortExitCritical>
  50252. return xReturn;
  50253. 80150ca: 68fb ldr r3, [r7, #12]
  50254. }
  50255. 80150cc: 4618 mov r0, r3
  50256. 80150ce: 3710 adds r7, #16
  50257. 80150d0: 46bd mov sp, r7
  50258. 80150d2: bd80 pop {r7, pc}
  50259. 080150d4 <vQueueAddToRegistry>:
  50260. /*-----------------------------------------------------------*/
  50261. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  50262. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  50263. {
  50264. 80150d4: b480 push {r7}
  50265. 80150d6: b085 sub sp, #20
  50266. 80150d8: af00 add r7, sp, #0
  50267. 80150da: 6078 str r0, [r7, #4]
  50268. 80150dc: 6039 str r1, [r7, #0]
  50269. UBaseType_t ux;
  50270. /* See if there is an empty space in the registry. A NULL name denotes
  50271. a free slot. */
  50272. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  50273. 80150de: 2300 movs r3, #0
  50274. 80150e0: 60fb str r3, [r7, #12]
  50275. 80150e2: e014 b.n 801510e <vQueueAddToRegistry+0x3a>
  50276. {
  50277. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  50278. 80150e4: 4a0f ldr r2, [pc, #60] @ (8015124 <vQueueAddToRegistry+0x50>)
  50279. 80150e6: 68fb ldr r3, [r7, #12]
  50280. 80150e8: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  50281. 80150ec: 2b00 cmp r3, #0
  50282. 80150ee: d10b bne.n 8015108 <vQueueAddToRegistry+0x34>
  50283. {
  50284. /* Store the information on this queue. */
  50285. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  50286. 80150f0: 490c ldr r1, [pc, #48] @ (8015124 <vQueueAddToRegistry+0x50>)
  50287. 80150f2: 68fb ldr r3, [r7, #12]
  50288. 80150f4: 683a ldr r2, [r7, #0]
  50289. 80150f6: f841 2033 str.w r2, [r1, r3, lsl #3]
  50290. xQueueRegistry[ ux ].xHandle = xQueue;
  50291. 80150fa: 4a0a ldr r2, [pc, #40] @ (8015124 <vQueueAddToRegistry+0x50>)
  50292. 80150fc: 68fb ldr r3, [r7, #12]
  50293. 80150fe: 00db lsls r3, r3, #3
  50294. 8015100: 4413 add r3, r2
  50295. 8015102: 687a ldr r2, [r7, #4]
  50296. 8015104: 605a str r2, [r3, #4]
  50297. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  50298. break;
  50299. 8015106: e006 b.n 8015116 <vQueueAddToRegistry+0x42>
  50300. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  50301. 8015108: 68fb ldr r3, [r7, #12]
  50302. 801510a: 3301 adds r3, #1
  50303. 801510c: 60fb str r3, [r7, #12]
  50304. 801510e: 68fb ldr r3, [r7, #12]
  50305. 8015110: 2b07 cmp r3, #7
  50306. 8015112: d9e7 bls.n 80150e4 <vQueueAddToRegistry+0x10>
  50307. else
  50308. {
  50309. mtCOVERAGE_TEST_MARKER();
  50310. }
  50311. }
  50312. }
  50313. 8015114: bf00 nop
  50314. 8015116: bf00 nop
  50315. 8015118: 3714 adds r7, #20
  50316. 801511a: 46bd mov sp, r7
  50317. 801511c: f85d 7b04 ldr.w r7, [sp], #4
  50318. 8015120: 4770 bx lr
  50319. 8015122: bf00 nop
  50320. 8015124: 24002654 .word 0x24002654
  50321. 08015128 <vQueueWaitForMessageRestricted>:
  50322. /*-----------------------------------------------------------*/
  50323. #if ( configUSE_TIMERS == 1 )
  50324. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  50325. {
  50326. 8015128: b580 push {r7, lr}
  50327. 801512a: b086 sub sp, #24
  50328. 801512c: af00 add r7, sp, #0
  50329. 801512e: 60f8 str r0, [r7, #12]
  50330. 8015130: 60b9 str r1, [r7, #8]
  50331. 8015132: 607a str r2, [r7, #4]
  50332. Queue_t * const pxQueue = xQueue;
  50333. 8015134: 68fb ldr r3, [r7, #12]
  50334. 8015136: 617b str r3, [r7, #20]
  50335. will not actually cause the task to block, just place it on a blocked
  50336. list. It will not block until the scheduler is unlocked - at which
  50337. time a yield will be performed. If an item is added to the queue while
  50338. the queue is locked, and the calling task blocks on the queue, then the
  50339. calling task will be immediately unblocked when the queue is unlocked. */
  50340. prvLockQueue( pxQueue );
  50341. 8015138: f002 fa0e bl 8017558 <vPortEnterCritical>
  50342. 801513c: 697b ldr r3, [r7, #20]
  50343. 801513e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50344. 8015142: b25b sxtb r3, r3
  50345. 8015144: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50346. 8015148: d103 bne.n 8015152 <vQueueWaitForMessageRestricted+0x2a>
  50347. 801514a: 697b ldr r3, [r7, #20]
  50348. 801514c: 2200 movs r2, #0
  50349. 801514e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50350. 8015152: 697b ldr r3, [r7, #20]
  50351. 8015154: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50352. 8015158: b25b sxtb r3, r3
  50353. 801515a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50354. 801515e: d103 bne.n 8015168 <vQueueWaitForMessageRestricted+0x40>
  50355. 8015160: 697b ldr r3, [r7, #20]
  50356. 8015162: 2200 movs r2, #0
  50357. 8015164: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50358. 8015168: f002 fa28 bl 80175bc <vPortExitCritical>
  50359. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  50360. 801516c: 697b ldr r3, [r7, #20]
  50361. 801516e: 6b9b ldr r3, [r3, #56] @ 0x38
  50362. 8015170: 2b00 cmp r3, #0
  50363. 8015172: d106 bne.n 8015182 <vQueueWaitForMessageRestricted+0x5a>
  50364. {
  50365. /* There is nothing in the queue, block for the specified period. */
  50366. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  50367. 8015174: 697b ldr r3, [r7, #20]
  50368. 8015176: 3324 adds r3, #36 @ 0x24
  50369. 8015178: 687a ldr r2, [r7, #4]
  50370. 801517a: 68b9 ldr r1, [r7, #8]
  50371. 801517c: 4618 mov r0, r3
  50372. 801517e: f000 fe39 bl 8015df4 <vTaskPlaceOnEventListRestricted>
  50373. }
  50374. else
  50375. {
  50376. mtCOVERAGE_TEST_MARKER();
  50377. }
  50378. prvUnlockQueue( pxQueue );
  50379. 8015182: 6978 ldr r0, [r7, #20]
  50380. 8015184: f7ff ff26 bl 8014fd4 <prvUnlockQueue>
  50381. }
  50382. 8015188: bf00 nop
  50383. 801518a: 3718 adds r7, #24
  50384. 801518c: 46bd mov sp, r7
  50385. 801518e: bd80 pop {r7, pc}
  50386. 08015190 <xStreamBufferSpacesAvailable>:
  50387. return xReturn;
  50388. }
  50389. /*-----------------------------------------------------------*/
  50390. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  50391. {
  50392. 8015190: b480 push {r7}
  50393. 8015192: b087 sub sp, #28
  50394. 8015194: af00 add r7, sp, #0
  50395. 8015196: 6078 str r0, [r7, #4]
  50396. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  50397. 8015198: 687b ldr r3, [r7, #4]
  50398. 801519a: 613b str r3, [r7, #16]
  50399. size_t xSpace;
  50400. configASSERT( pxStreamBuffer );
  50401. 801519c: 693b ldr r3, [r7, #16]
  50402. 801519e: 2b00 cmp r3, #0
  50403. 80151a0: d10b bne.n 80151ba <xStreamBufferSpacesAvailable+0x2a>
  50404. __asm volatile
  50405. 80151a2: f04f 0350 mov.w r3, #80 @ 0x50
  50406. 80151a6: f383 8811 msr BASEPRI, r3
  50407. 80151aa: f3bf 8f6f isb sy
  50408. 80151ae: f3bf 8f4f dsb sy
  50409. 80151b2: 60fb str r3, [r7, #12]
  50410. }
  50411. 80151b4: bf00 nop
  50412. 80151b6: bf00 nop
  50413. 80151b8: e7fd b.n 80151b6 <xStreamBufferSpacesAvailable+0x26>
  50414. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  50415. 80151ba: 693b ldr r3, [r7, #16]
  50416. 80151bc: 689a ldr r2, [r3, #8]
  50417. 80151be: 693b ldr r3, [r7, #16]
  50418. 80151c0: 681b ldr r3, [r3, #0]
  50419. 80151c2: 4413 add r3, r2
  50420. 80151c4: 617b str r3, [r7, #20]
  50421. xSpace -= pxStreamBuffer->xHead;
  50422. 80151c6: 693b ldr r3, [r7, #16]
  50423. 80151c8: 685b ldr r3, [r3, #4]
  50424. 80151ca: 697a ldr r2, [r7, #20]
  50425. 80151cc: 1ad3 subs r3, r2, r3
  50426. 80151ce: 617b str r3, [r7, #20]
  50427. xSpace -= ( size_t ) 1;
  50428. 80151d0: 697b ldr r3, [r7, #20]
  50429. 80151d2: 3b01 subs r3, #1
  50430. 80151d4: 617b str r3, [r7, #20]
  50431. if( xSpace >= pxStreamBuffer->xLength )
  50432. 80151d6: 693b ldr r3, [r7, #16]
  50433. 80151d8: 689b ldr r3, [r3, #8]
  50434. 80151da: 697a ldr r2, [r7, #20]
  50435. 80151dc: 429a cmp r2, r3
  50436. 80151de: d304 bcc.n 80151ea <xStreamBufferSpacesAvailable+0x5a>
  50437. {
  50438. xSpace -= pxStreamBuffer->xLength;
  50439. 80151e0: 693b ldr r3, [r7, #16]
  50440. 80151e2: 689b ldr r3, [r3, #8]
  50441. 80151e4: 697a ldr r2, [r7, #20]
  50442. 80151e6: 1ad3 subs r3, r2, r3
  50443. 80151e8: 617b str r3, [r7, #20]
  50444. else
  50445. {
  50446. mtCOVERAGE_TEST_MARKER();
  50447. }
  50448. return xSpace;
  50449. 80151ea: 697b ldr r3, [r7, #20]
  50450. }
  50451. 80151ec: 4618 mov r0, r3
  50452. 80151ee: 371c adds r7, #28
  50453. 80151f0: 46bd mov sp, r7
  50454. 80151f2: f85d 7b04 ldr.w r7, [sp], #4
  50455. 80151f6: 4770 bx lr
  50456. 080151f8 <xStreamBufferSend>:
  50457. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  50458. const void *pvTxData,
  50459. size_t xDataLengthBytes,
  50460. TickType_t xTicksToWait )
  50461. {
  50462. 80151f8: b580 push {r7, lr}
  50463. 80151fa: b090 sub sp, #64 @ 0x40
  50464. 80151fc: af02 add r7, sp, #8
  50465. 80151fe: 60f8 str r0, [r7, #12]
  50466. 8015200: 60b9 str r1, [r7, #8]
  50467. 8015202: 607a str r2, [r7, #4]
  50468. 8015204: 603b str r3, [r7, #0]
  50469. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  50470. 8015206: 68fb ldr r3, [r7, #12]
  50471. 8015208: 62fb str r3, [r7, #44] @ 0x2c
  50472. size_t xReturn, xSpace = 0;
  50473. 801520a: 2300 movs r3, #0
  50474. 801520c: 637b str r3, [r7, #52] @ 0x34
  50475. size_t xRequiredSpace = xDataLengthBytes;
  50476. 801520e: 687b ldr r3, [r7, #4]
  50477. 8015210: 633b str r3, [r7, #48] @ 0x30
  50478. TimeOut_t xTimeOut;
  50479. configASSERT( pvTxData );
  50480. 8015212: 68bb ldr r3, [r7, #8]
  50481. 8015214: 2b00 cmp r3, #0
  50482. 8015216: d10b bne.n 8015230 <xStreamBufferSend+0x38>
  50483. __asm volatile
  50484. 8015218: f04f 0350 mov.w r3, #80 @ 0x50
  50485. 801521c: f383 8811 msr BASEPRI, r3
  50486. 8015220: f3bf 8f6f isb sy
  50487. 8015224: f3bf 8f4f dsb sy
  50488. 8015228: 627b str r3, [r7, #36] @ 0x24
  50489. }
  50490. 801522a: bf00 nop
  50491. 801522c: bf00 nop
  50492. 801522e: e7fd b.n 801522c <xStreamBufferSend+0x34>
  50493. configASSERT( pxStreamBuffer );
  50494. 8015230: 6afb ldr r3, [r7, #44] @ 0x2c
  50495. 8015232: 2b00 cmp r3, #0
  50496. 8015234: d10b bne.n 801524e <xStreamBufferSend+0x56>
  50497. __asm volatile
  50498. 8015236: f04f 0350 mov.w r3, #80 @ 0x50
  50499. 801523a: f383 8811 msr BASEPRI, r3
  50500. 801523e: f3bf 8f6f isb sy
  50501. 8015242: f3bf 8f4f dsb sy
  50502. 8015246: 623b str r3, [r7, #32]
  50503. }
  50504. 8015248: bf00 nop
  50505. 801524a: bf00 nop
  50506. 801524c: e7fd b.n 801524a <xStreamBufferSend+0x52>
  50507. /* This send function is used to write to both message buffers and stream
  50508. buffers. If this is a message buffer then the space needed must be
  50509. increased by the amount of bytes needed to store the length of the
  50510. message. */
  50511. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  50512. 801524e: 6afb ldr r3, [r7, #44] @ 0x2c
  50513. 8015250: 7f1b ldrb r3, [r3, #28]
  50514. 8015252: f003 0301 and.w r3, r3, #1
  50515. 8015256: 2b00 cmp r3, #0
  50516. 8015258: d012 beq.n 8015280 <xStreamBufferSend+0x88>
  50517. {
  50518. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  50519. 801525a: 6b3b ldr r3, [r7, #48] @ 0x30
  50520. 801525c: 3304 adds r3, #4
  50521. 801525e: 633b str r3, [r7, #48] @ 0x30
  50522. /* Overflow? */
  50523. configASSERT( xRequiredSpace > xDataLengthBytes );
  50524. 8015260: 6b3a ldr r2, [r7, #48] @ 0x30
  50525. 8015262: 687b ldr r3, [r7, #4]
  50526. 8015264: 429a cmp r2, r3
  50527. 8015266: d80b bhi.n 8015280 <xStreamBufferSend+0x88>
  50528. __asm volatile
  50529. 8015268: f04f 0350 mov.w r3, #80 @ 0x50
  50530. 801526c: f383 8811 msr BASEPRI, r3
  50531. 8015270: f3bf 8f6f isb sy
  50532. 8015274: f3bf 8f4f dsb sy
  50533. 8015278: 61fb str r3, [r7, #28]
  50534. }
  50535. 801527a: bf00 nop
  50536. 801527c: bf00 nop
  50537. 801527e: e7fd b.n 801527c <xStreamBufferSend+0x84>
  50538. else
  50539. {
  50540. mtCOVERAGE_TEST_MARKER();
  50541. }
  50542. if( xTicksToWait != ( TickType_t ) 0 )
  50543. 8015280: 683b ldr r3, [r7, #0]
  50544. 8015282: 2b00 cmp r3, #0
  50545. 8015284: d03f beq.n 8015306 <xStreamBufferSend+0x10e>
  50546. {
  50547. vTaskSetTimeOutState( &xTimeOut );
  50548. 8015286: f107 0310 add.w r3, r7, #16
  50549. 801528a: 4618 mov r0, r3
  50550. 801528c: f000 fe42 bl 8015f14 <vTaskSetTimeOutState>
  50551. do
  50552. {
  50553. /* Wait until the required number of bytes are free in the message
  50554. buffer. */
  50555. taskENTER_CRITICAL();
  50556. 8015290: f002 f962 bl 8017558 <vPortEnterCritical>
  50557. {
  50558. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  50559. 8015294: 6af8 ldr r0, [r7, #44] @ 0x2c
  50560. 8015296: f7ff ff7b bl 8015190 <xStreamBufferSpacesAvailable>
  50561. 801529a: 6378 str r0, [r7, #52] @ 0x34
  50562. if( xSpace < xRequiredSpace )
  50563. 801529c: 6b7a ldr r2, [r7, #52] @ 0x34
  50564. 801529e: 6b3b ldr r3, [r7, #48] @ 0x30
  50565. 80152a0: 429a cmp r2, r3
  50566. 80152a2: d218 bcs.n 80152d6 <xStreamBufferSend+0xde>
  50567. {
  50568. /* Clear notification state as going to wait for space. */
  50569. ( void ) xTaskNotifyStateClear( NULL );
  50570. 80152a4: 2000 movs r0, #0
  50571. 80152a6: f001 fb65 bl 8016974 <xTaskNotifyStateClear>
  50572. /* Should only be one writer. */
  50573. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  50574. 80152aa: 6afb ldr r3, [r7, #44] @ 0x2c
  50575. 80152ac: 695b ldr r3, [r3, #20]
  50576. 80152ae: 2b00 cmp r3, #0
  50577. 80152b0: d00b beq.n 80152ca <xStreamBufferSend+0xd2>
  50578. __asm volatile
  50579. 80152b2: f04f 0350 mov.w r3, #80 @ 0x50
  50580. 80152b6: f383 8811 msr BASEPRI, r3
  50581. 80152ba: f3bf 8f6f isb sy
  50582. 80152be: f3bf 8f4f dsb sy
  50583. 80152c2: 61bb str r3, [r7, #24]
  50584. }
  50585. 80152c4: bf00 nop
  50586. 80152c6: bf00 nop
  50587. 80152c8: e7fd b.n 80152c6 <xStreamBufferSend+0xce>
  50588. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  50589. 80152ca: f000 ffad bl 8016228 <xTaskGetCurrentTaskHandle>
  50590. 80152ce: 4602 mov r2, r0
  50591. 80152d0: 6afb ldr r3, [r7, #44] @ 0x2c
  50592. 80152d2: 615a str r2, [r3, #20]
  50593. 80152d4: e002 b.n 80152dc <xStreamBufferSend+0xe4>
  50594. }
  50595. else
  50596. {
  50597. taskEXIT_CRITICAL();
  50598. 80152d6: f002 f971 bl 80175bc <vPortExitCritical>
  50599. break;
  50600. 80152da: e014 b.n 8015306 <xStreamBufferSend+0x10e>
  50601. }
  50602. }
  50603. taskEXIT_CRITICAL();
  50604. 80152dc: f002 f96e bl 80175bc <vPortExitCritical>
  50605. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  50606. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  50607. 80152e0: 683b ldr r3, [r7, #0]
  50608. 80152e2: 2200 movs r2, #0
  50609. 80152e4: 2100 movs r1, #0
  50610. 80152e6: 2000 movs r0, #0
  50611. 80152e8: f001 f93c bl 8016564 <xTaskNotifyWait>
  50612. pxStreamBuffer->xTaskWaitingToSend = NULL;
  50613. 80152ec: 6afb ldr r3, [r7, #44] @ 0x2c
  50614. 80152ee: 2200 movs r2, #0
  50615. 80152f0: 615a str r2, [r3, #20]
  50616. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  50617. 80152f2: 463a mov r2, r7
  50618. 80152f4: f107 0310 add.w r3, r7, #16
  50619. 80152f8: 4611 mov r1, r2
  50620. 80152fa: 4618 mov r0, r3
  50621. 80152fc: f000 fe48 bl 8015f90 <xTaskCheckForTimeOut>
  50622. 8015300: 4603 mov r3, r0
  50623. 8015302: 2b00 cmp r3, #0
  50624. 8015304: d0c4 beq.n 8015290 <xStreamBufferSend+0x98>
  50625. else
  50626. {
  50627. mtCOVERAGE_TEST_MARKER();
  50628. }
  50629. if( xSpace == ( size_t ) 0 )
  50630. 8015306: 6b7b ldr r3, [r7, #52] @ 0x34
  50631. 8015308: 2b00 cmp r3, #0
  50632. 801530a: d103 bne.n 8015314 <xStreamBufferSend+0x11c>
  50633. {
  50634. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  50635. 801530c: 6af8 ldr r0, [r7, #44] @ 0x2c
  50636. 801530e: f7ff ff3f bl 8015190 <xStreamBufferSpacesAvailable>
  50637. 8015312: 6378 str r0, [r7, #52] @ 0x34
  50638. else
  50639. {
  50640. mtCOVERAGE_TEST_MARKER();
  50641. }
  50642. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  50643. 8015314: 6b3b ldr r3, [r7, #48] @ 0x30
  50644. 8015316: 9300 str r3, [sp, #0]
  50645. 8015318: 6b7b ldr r3, [r7, #52] @ 0x34
  50646. 801531a: 687a ldr r2, [r7, #4]
  50647. 801531c: 68b9 ldr r1, [r7, #8]
  50648. 801531e: 6af8 ldr r0, [r7, #44] @ 0x2c
  50649. 8015320: f000 f823 bl 801536a <prvWriteMessageToBuffer>
  50650. 8015324: 62b8 str r0, [r7, #40] @ 0x28
  50651. if( xReturn > ( size_t ) 0 )
  50652. 8015326: 6abb ldr r3, [r7, #40] @ 0x28
  50653. 8015328: 2b00 cmp r3, #0
  50654. 801532a: d019 beq.n 8015360 <xStreamBufferSend+0x168>
  50655. {
  50656. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  50657. /* Was a task waiting for the data? */
  50658. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  50659. 801532c: 6af8 ldr r0, [r7, #44] @ 0x2c
  50660. 801532e: f000 f8ce bl 80154ce <prvBytesInBuffer>
  50661. 8015332: 4602 mov r2, r0
  50662. 8015334: 6afb ldr r3, [r7, #44] @ 0x2c
  50663. 8015336: 68db ldr r3, [r3, #12]
  50664. 8015338: 429a cmp r2, r3
  50665. 801533a: d311 bcc.n 8015360 <xStreamBufferSend+0x168>
  50666. {
  50667. sbSEND_COMPLETED( pxStreamBuffer );
  50668. 801533c: f000 fb4a bl 80159d4 <vTaskSuspendAll>
  50669. 8015340: 6afb ldr r3, [r7, #44] @ 0x2c
  50670. 8015342: 691b ldr r3, [r3, #16]
  50671. 8015344: 2b00 cmp r3, #0
  50672. 8015346: d009 beq.n 801535c <xStreamBufferSend+0x164>
  50673. 8015348: 6afb ldr r3, [r7, #44] @ 0x2c
  50674. 801534a: 6918 ldr r0, [r3, #16]
  50675. 801534c: 2300 movs r3, #0
  50676. 801534e: 2200 movs r2, #0
  50677. 8015350: 2100 movs r1, #0
  50678. 8015352: f001 f967 bl 8016624 <xTaskGenericNotify>
  50679. 8015356: 6afb ldr r3, [r7, #44] @ 0x2c
  50680. 8015358: 2200 movs r2, #0
  50681. 801535a: 611a str r2, [r3, #16]
  50682. 801535c: f000 fb48 bl 80159f0 <xTaskResumeAll>
  50683. {
  50684. mtCOVERAGE_TEST_MARKER();
  50685. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  50686. }
  50687. return xReturn;
  50688. 8015360: 6abb ldr r3, [r7, #40] @ 0x28
  50689. }
  50690. 8015362: 4618 mov r0, r3
  50691. 8015364: 3738 adds r7, #56 @ 0x38
  50692. 8015366: 46bd mov sp, r7
  50693. 8015368: bd80 pop {r7, pc}
  50694. 0801536a <prvWriteMessageToBuffer>:
  50695. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  50696. const void * pvTxData,
  50697. size_t xDataLengthBytes,
  50698. size_t xSpace,
  50699. size_t xRequiredSpace )
  50700. {
  50701. 801536a: b580 push {r7, lr}
  50702. 801536c: b086 sub sp, #24
  50703. 801536e: af00 add r7, sp, #0
  50704. 8015370: 60f8 str r0, [r7, #12]
  50705. 8015372: 60b9 str r1, [r7, #8]
  50706. 8015374: 607a str r2, [r7, #4]
  50707. 8015376: 603b str r3, [r7, #0]
  50708. BaseType_t xShouldWrite;
  50709. size_t xReturn;
  50710. if( xSpace == ( size_t ) 0 )
  50711. 8015378: 683b ldr r3, [r7, #0]
  50712. 801537a: 2b00 cmp r3, #0
  50713. 801537c: d102 bne.n 8015384 <prvWriteMessageToBuffer+0x1a>
  50714. {
  50715. /* Doesn't matter if this is a stream buffer or a message buffer, there
  50716. is no space to write. */
  50717. xShouldWrite = pdFALSE;
  50718. 801537e: 2300 movs r3, #0
  50719. 8015380: 617b str r3, [r7, #20]
  50720. 8015382: e01d b.n 80153c0 <prvWriteMessageToBuffer+0x56>
  50721. }
  50722. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  50723. 8015384: 68fb ldr r3, [r7, #12]
  50724. 8015386: 7f1b ldrb r3, [r3, #28]
  50725. 8015388: f003 0301 and.w r3, r3, #1
  50726. 801538c: 2b00 cmp r3, #0
  50727. 801538e: d108 bne.n 80153a2 <prvWriteMessageToBuffer+0x38>
  50728. {
  50729. /* This is a stream buffer, as opposed to a message buffer, so writing a
  50730. stream of bytes rather than discrete messages. Write as many bytes as
  50731. possible. */
  50732. xShouldWrite = pdTRUE;
  50733. 8015390: 2301 movs r3, #1
  50734. 8015392: 617b str r3, [r7, #20]
  50735. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  50736. 8015394: 687a ldr r2, [r7, #4]
  50737. 8015396: 683b ldr r3, [r7, #0]
  50738. 8015398: 4293 cmp r3, r2
  50739. 801539a: bf28 it cs
  50740. 801539c: 4613 movcs r3, r2
  50741. 801539e: 607b str r3, [r7, #4]
  50742. 80153a0: e00e b.n 80153c0 <prvWriteMessageToBuffer+0x56>
  50743. }
  50744. else if( xSpace >= xRequiredSpace )
  50745. 80153a2: 683a ldr r2, [r7, #0]
  50746. 80153a4: 6a3b ldr r3, [r7, #32]
  50747. 80153a6: 429a cmp r2, r3
  50748. 80153a8: d308 bcc.n 80153bc <prvWriteMessageToBuffer+0x52>
  50749. {
  50750. /* This is a message buffer, as opposed to a stream buffer, and there
  50751. is enough space to write both the message length and the message itself
  50752. into the buffer. Start by writing the length of the data, the data
  50753. itself will be written later in this function. */
  50754. xShouldWrite = pdTRUE;
  50755. 80153aa: 2301 movs r3, #1
  50756. 80153ac: 617b str r3, [r7, #20]
  50757. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  50758. 80153ae: 1d3b adds r3, r7, #4
  50759. 80153b0: 2204 movs r2, #4
  50760. 80153b2: 4619 mov r1, r3
  50761. 80153b4: 68f8 ldr r0, [r7, #12]
  50762. 80153b6: f000 f815 bl 80153e4 <prvWriteBytesToBuffer>
  50763. 80153ba: e001 b.n 80153c0 <prvWriteMessageToBuffer+0x56>
  50764. }
  50765. else
  50766. {
  50767. /* There is space available, but not enough space. */
  50768. xShouldWrite = pdFALSE;
  50769. 80153bc: 2300 movs r3, #0
  50770. 80153be: 617b str r3, [r7, #20]
  50771. }
  50772. if( xShouldWrite != pdFALSE )
  50773. 80153c0: 697b ldr r3, [r7, #20]
  50774. 80153c2: 2b00 cmp r3, #0
  50775. 80153c4: d007 beq.n 80153d6 <prvWriteMessageToBuffer+0x6c>
  50776. {
  50777. /* Writes the data itself. */
  50778. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  50779. 80153c6: 687b ldr r3, [r7, #4]
  50780. 80153c8: 461a mov r2, r3
  50781. 80153ca: 68b9 ldr r1, [r7, #8]
  50782. 80153cc: 68f8 ldr r0, [r7, #12]
  50783. 80153ce: f000 f809 bl 80153e4 <prvWriteBytesToBuffer>
  50784. 80153d2: 6138 str r0, [r7, #16]
  50785. 80153d4: e001 b.n 80153da <prvWriteMessageToBuffer+0x70>
  50786. }
  50787. else
  50788. {
  50789. xReturn = 0;
  50790. 80153d6: 2300 movs r3, #0
  50791. 80153d8: 613b str r3, [r7, #16]
  50792. }
  50793. return xReturn;
  50794. 80153da: 693b ldr r3, [r7, #16]
  50795. }
  50796. 80153dc: 4618 mov r0, r3
  50797. 80153de: 3718 adds r7, #24
  50798. 80153e0: 46bd mov sp, r7
  50799. 80153e2: bd80 pop {r7, pc}
  50800. 080153e4 <prvWriteBytesToBuffer>:
  50801. return xReturn;
  50802. }
  50803. /*-----------------------------------------------------------*/
  50804. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  50805. {
  50806. 80153e4: b580 push {r7, lr}
  50807. 80153e6: b08a sub sp, #40 @ 0x28
  50808. 80153e8: af00 add r7, sp, #0
  50809. 80153ea: 60f8 str r0, [r7, #12]
  50810. 80153ec: 60b9 str r1, [r7, #8]
  50811. 80153ee: 607a str r2, [r7, #4]
  50812. size_t xNextHead, xFirstLength;
  50813. configASSERT( xCount > ( size_t ) 0 );
  50814. 80153f0: 687b ldr r3, [r7, #4]
  50815. 80153f2: 2b00 cmp r3, #0
  50816. 80153f4: d10b bne.n 801540e <prvWriteBytesToBuffer+0x2a>
  50817. __asm volatile
  50818. 80153f6: f04f 0350 mov.w r3, #80 @ 0x50
  50819. 80153fa: f383 8811 msr BASEPRI, r3
  50820. 80153fe: f3bf 8f6f isb sy
  50821. 8015402: f3bf 8f4f dsb sy
  50822. 8015406: 61fb str r3, [r7, #28]
  50823. }
  50824. 8015408: bf00 nop
  50825. 801540a: bf00 nop
  50826. 801540c: e7fd b.n 801540a <prvWriteBytesToBuffer+0x26>
  50827. xNextHead = pxStreamBuffer->xHead;
  50828. 801540e: 68fb ldr r3, [r7, #12]
  50829. 8015410: 685b ldr r3, [r3, #4]
  50830. 8015412: 627b str r3, [r7, #36] @ 0x24
  50831. /* Calculate the number of bytes that can be added in the first write -
  50832. which may be less than the total number of bytes that need to be added if
  50833. the buffer will wrap back to the beginning. */
  50834. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  50835. 8015414: 68fb ldr r3, [r7, #12]
  50836. 8015416: 689a ldr r2, [r3, #8]
  50837. 8015418: 6a7b ldr r3, [r7, #36] @ 0x24
  50838. 801541a: 1ad3 subs r3, r2, r3
  50839. 801541c: 687a ldr r2, [r7, #4]
  50840. 801541e: 4293 cmp r3, r2
  50841. 8015420: bf28 it cs
  50842. 8015422: 4613 movcs r3, r2
  50843. 8015424: 623b str r3, [r7, #32]
  50844. /* Write as many bytes as can be written in the first write. */
  50845. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  50846. 8015426: 6a7a ldr r2, [r7, #36] @ 0x24
  50847. 8015428: 6a3b ldr r3, [r7, #32]
  50848. 801542a: 441a add r2, r3
  50849. 801542c: 68fb ldr r3, [r7, #12]
  50850. 801542e: 689b ldr r3, [r3, #8]
  50851. 8015430: 429a cmp r2, r3
  50852. 8015432: d90b bls.n 801544c <prvWriteBytesToBuffer+0x68>
  50853. __asm volatile
  50854. 8015434: f04f 0350 mov.w r3, #80 @ 0x50
  50855. 8015438: f383 8811 msr BASEPRI, r3
  50856. 801543c: f3bf 8f6f isb sy
  50857. 8015440: f3bf 8f4f dsb sy
  50858. 8015444: 61bb str r3, [r7, #24]
  50859. }
  50860. 8015446: bf00 nop
  50861. 8015448: bf00 nop
  50862. 801544a: e7fd b.n 8015448 <prvWriteBytesToBuffer+0x64>
  50863. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50864. 801544c: 68fb ldr r3, [r7, #12]
  50865. 801544e: 699a ldr r2, [r3, #24]
  50866. 8015450: 6a7b ldr r3, [r7, #36] @ 0x24
  50867. 8015452: 4413 add r3, r2
  50868. 8015454: 6a3a ldr r2, [r7, #32]
  50869. 8015456: 68b9 ldr r1, [r7, #8]
  50870. 8015458: 4618 mov r0, r3
  50871. 801545a: f002 fd76 bl 8017f4a <memcpy>
  50872. /* If the number of bytes written was less than the number that could be
  50873. written in the first write... */
  50874. if( xCount > xFirstLength )
  50875. 801545e: 687a ldr r2, [r7, #4]
  50876. 8015460: 6a3b ldr r3, [r7, #32]
  50877. 8015462: 429a cmp r2, r3
  50878. 8015464: d91d bls.n 80154a2 <prvWriteBytesToBuffer+0xbe>
  50879. {
  50880. /* ...then write the remaining bytes to the start of the buffer. */
  50881. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  50882. 8015466: 687a ldr r2, [r7, #4]
  50883. 8015468: 6a3b ldr r3, [r7, #32]
  50884. 801546a: 1ad2 subs r2, r2, r3
  50885. 801546c: 68fb ldr r3, [r7, #12]
  50886. 801546e: 689b ldr r3, [r3, #8]
  50887. 8015470: 429a cmp r2, r3
  50888. 8015472: d90b bls.n 801548c <prvWriteBytesToBuffer+0xa8>
  50889. __asm volatile
  50890. 8015474: f04f 0350 mov.w r3, #80 @ 0x50
  50891. 8015478: f383 8811 msr BASEPRI, r3
  50892. 801547c: f3bf 8f6f isb sy
  50893. 8015480: f3bf 8f4f dsb sy
  50894. 8015484: 617b str r3, [r7, #20]
  50895. }
  50896. 8015486: bf00 nop
  50897. 8015488: bf00 nop
  50898. 801548a: e7fd b.n 8015488 <prvWriteBytesToBuffer+0xa4>
  50899. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50900. 801548c: 68fb ldr r3, [r7, #12]
  50901. 801548e: 6998 ldr r0, [r3, #24]
  50902. 8015490: 68ba ldr r2, [r7, #8]
  50903. 8015492: 6a3b ldr r3, [r7, #32]
  50904. 8015494: 18d1 adds r1, r2, r3
  50905. 8015496: 687a ldr r2, [r7, #4]
  50906. 8015498: 6a3b ldr r3, [r7, #32]
  50907. 801549a: 1ad3 subs r3, r2, r3
  50908. 801549c: 461a mov r2, r3
  50909. 801549e: f002 fd54 bl 8017f4a <memcpy>
  50910. else
  50911. {
  50912. mtCOVERAGE_TEST_MARKER();
  50913. }
  50914. xNextHead += xCount;
  50915. 80154a2: 6a7a ldr r2, [r7, #36] @ 0x24
  50916. 80154a4: 687b ldr r3, [r7, #4]
  50917. 80154a6: 4413 add r3, r2
  50918. 80154a8: 627b str r3, [r7, #36] @ 0x24
  50919. if( xNextHead >= pxStreamBuffer->xLength )
  50920. 80154aa: 68fb ldr r3, [r7, #12]
  50921. 80154ac: 689b ldr r3, [r3, #8]
  50922. 80154ae: 6a7a ldr r2, [r7, #36] @ 0x24
  50923. 80154b0: 429a cmp r2, r3
  50924. 80154b2: d304 bcc.n 80154be <prvWriteBytesToBuffer+0xda>
  50925. {
  50926. xNextHead -= pxStreamBuffer->xLength;
  50927. 80154b4: 68fb ldr r3, [r7, #12]
  50928. 80154b6: 689b ldr r3, [r3, #8]
  50929. 80154b8: 6a7a ldr r2, [r7, #36] @ 0x24
  50930. 80154ba: 1ad3 subs r3, r2, r3
  50931. 80154bc: 627b str r3, [r7, #36] @ 0x24
  50932. else
  50933. {
  50934. mtCOVERAGE_TEST_MARKER();
  50935. }
  50936. pxStreamBuffer->xHead = xNextHead;
  50937. 80154be: 68fb ldr r3, [r7, #12]
  50938. 80154c0: 6a7a ldr r2, [r7, #36] @ 0x24
  50939. 80154c2: 605a str r2, [r3, #4]
  50940. return xCount;
  50941. 80154c4: 687b ldr r3, [r7, #4]
  50942. }
  50943. 80154c6: 4618 mov r0, r3
  50944. 80154c8: 3728 adds r7, #40 @ 0x28
  50945. 80154ca: 46bd mov sp, r7
  50946. 80154cc: bd80 pop {r7, pc}
  50947. 080154ce <prvBytesInBuffer>:
  50948. return xCount;
  50949. }
  50950. /*-----------------------------------------------------------*/
  50951. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  50952. {
  50953. 80154ce: b480 push {r7}
  50954. 80154d0: b085 sub sp, #20
  50955. 80154d2: af00 add r7, sp, #0
  50956. 80154d4: 6078 str r0, [r7, #4]
  50957. /* Returns the distance between xTail and xHead. */
  50958. size_t xCount;
  50959. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  50960. 80154d6: 687b ldr r3, [r7, #4]
  50961. 80154d8: 689a ldr r2, [r3, #8]
  50962. 80154da: 687b ldr r3, [r7, #4]
  50963. 80154dc: 685b ldr r3, [r3, #4]
  50964. 80154de: 4413 add r3, r2
  50965. 80154e0: 60fb str r3, [r7, #12]
  50966. xCount -= pxStreamBuffer->xTail;
  50967. 80154e2: 687b ldr r3, [r7, #4]
  50968. 80154e4: 681b ldr r3, [r3, #0]
  50969. 80154e6: 68fa ldr r2, [r7, #12]
  50970. 80154e8: 1ad3 subs r3, r2, r3
  50971. 80154ea: 60fb str r3, [r7, #12]
  50972. if ( xCount >= pxStreamBuffer->xLength )
  50973. 80154ec: 687b ldr r3, [r7, #4]
  50974. 80154ee: 689b ldr r3, [r3, #8]
  50975. 80154f0: 68fa ldr r2, [r7, #12]
  50976. 80154f2: 429a cmp r2, r3
  50977. 80154f4: d304 bcc.n 8015500 <prvBytesInBuffer+0x32>
  50978. {
  50979. xCount -= pxStreamBuffer->xLength;
  50980. 80154f6: 687b ldr r3, [r7, #4]
  50981. 80154f8: 689b ldr r3, [r3, #8]
  50982. 80154fa: 68fa ldr r2, [r7, #12]
  50983. 80154fc: 1ad3 subs r3, r2, r3
  50984. 80154fe: 60fb str r3, [r7, #12]
  50985. else
  50986. {
  50987. mtCOVERAGE_TEST_MARKER();
  50988. }
  50989. return xCount;
  50990. 8015500: 68fb ldr r3, [r7, #12]
  50991. }
  50992. 8015502: 4618 mov r0, r3
  50993. 8015504: 3714 adds r7, #20
  50994. 8015506: 46bd mov sp, r7
  50995. 8015508: f85d 7b04 ldr.w r7, [sp], #4
  50996. 801550c: 4770 bx lr
  50997. 0801550e <xTaskCreateStatic>:
  50998. const uint32_t ulStackDepth,
  50999. void * const pvParameters,
  51000. UBaseType_t uxPriority,
  51001. StackType_t * const puxStackBuffer,
  51002. StaticTask_t * const pxTaskBuffer )
  51003. {
  51004. 801550e: b580 push {r7, lr}
  51005. 8015510: b08e sub sp, #56 @ 0x38
  51006. 8015512: af04 add r7, sp, #16
  51007. 8015514: 60f8 str r0, [r7, #12]
  51008. 8015516: 60b9 str r1, [r7, #8]
  51009. 8015518: 607a str r2, [r7, #4]
  51010. 801551a: 603b str r3, [r7, #0]
  51011. TCB_t *pxNewTCB;
  51012. TaskHandle_t xReturn;
  51013. configASSERT( puxStackBuffer != NULL );
  51014. 801551c: 6b7b ldr r3, [r7, #52] @ 0x34
  51015. 801551e: 2b00 cmp r3, #0
  51016. 8015520: d10b bne.n 801553a <xTaskCreateStatic+0x2c>
  51017. __asm volatile
  51018. 8015522: f04f 0350 mov.w r3, #80 @ 0x50
  51019. 8015526: f383 8811 msr BASEPRI, r3
  51020. 801552a: f3bf 8f6f isb sy
  51021. 801552e: f3bf 8f4f dsb sy
  51022. 8015532: 623b str r3, [r7, #32]
  51023. }
  51024. 8015534: bf00 nop
  51025. 8015536: bf00 nop
  51026. 8015538: e7fd b.n 8015536 <xTaskCreateStatic+0x28>
  51027. configASSERT( pxTaskBuffer != NULL );
  51028. 801553a: 6bbb ldr r3, [r7, #56] @ 0x38
  51029. 801553c: 2b00 cmp r3, #0
  51030. 801553e: d10b bne.n 8015558 <xTaskCreateStatic+0x4a>
  51031. __asm volatile
  51032. 8015540: f04f 0350 mov.w r3, #80 @ 0x50
  51033. 8015544: f383 8811 msr BASEPRI, r3
  51034. 8015548: f3bf 8f6f isb sy
  51035. 801554c: f3bf 8f4f dsb sy
  51036. 8015550: 61fb str r3, [r7, #28]
  51037. }
  51038. 8015552: bf00 nop
  51039. 8015554: bf00 nop
  51040. 8015556: e7fd b.n 8015554 <xTaskCreateStatic+0x46>
  51041. #if( configASSERT_DEFINED == 1 )
  51042. {
  51043. /* Sanity check that the size of the structure used to declare a
  51044. variable of type StaticTask_t equals the size of the real task
  51045. structure. */
  51046. volatile size_t xSize = sizeof( StaticTask_t );
  51047. 8015558: 23a8 movs r3, #168 @ 0xa8
  51048. 801555a: 613b str r3, [r7, #16]
  51049. configASSERT( xSize == sizeof( TCB_t ) );
  51050. 801555c: 693b ldr r3, [r7, #16]
  51051. 801555e: 2ba8 cmp r3, #168 @ 0xa8
  51052. 8015560: d00b beq.n 801557a <xTaskCreateStatic+0x6c>
  51053. __asm volatile
  51054. 8015562: f04f 0350 mov.w r3, #80 @ 0x50
  51055. 8015566: f383 8811 msr BASEPRI, r3
  51056. 801556a: f3bf 8f6f isb sy
  51057. 801556e: f3bf 8f4f dsb sy
  51058. 8015572: 61bb str r3, [r7, #24]
  51059. }
  51060. 8015574: bf00 nop
  51061. 8015576: bf00 nop
  51062. 8015578: e7fd b.n 8015576 <xTaskCreateStatic+0x68>
  51063. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  51064. 801557a: 693b ldr r3, [r7, #16]
  51065. }
  51066. #endif /* configASSERT_DEFINED */
  51067. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  51068. 801557c: 6bbb ldr r3, [r7, #56] @ 0x38
  51069. 801557e: 2b00 cmp r3, #0
  51070. 8015580: d01e beq.n 80155c0 <xTaskCreateStatic+0xb2>
  51071. 8015582: 6b7b ldr r3, [r7, #52] @ 0x34
  51072. 8015584: 2b00 cmp r3, #0
  51073. 8015586: d01b beq.n 80155c0 <xTaskCreateStatic+0xb2>
  51074. {
  51075. /* The memory used for the task's TCB and stack are passed into this
  51076. function - use them. */
  51077. 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. */
  51078. 8015588: 6bbb ldr r3, [r7, #56] @ 0x38
  51079. 801558a: 627b str r3, [r7, #36] @ 0x24
  51080. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  51081. 801558c: 6a7b ldr r3, [r7, #36] @ 0x24
  51082. 801558e: 6b7a ldr r2, [r7, #52] @ 0x34
  51083. 8015590: 631a str r2, [r3, #48] @ 0x30
  51084. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  51085. {
  51086. /* Tasks can be created statically or dynamically, so note this
  51087. task was created statically in case the task is later deleted. */
  51088. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  51089. 8015592: 6a7b ldr r3, [r7, #36] @ 0x24
  51090. 8015594: 2202 movs r2, #2
  51091. 8015596: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  51092. }
  51093. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  51094. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  51095. 801559a: 2300 movs r3, #0
  51096. 801559c: 9303 str r3, [sp, #12]
  51097. 801559e: 6a7b ldr r3, [r7, #36] @ 0x24
  51098. 80155a0: 9302 str r3, [sp, #8]
  51099. 80155a2: f107 0314 add.w r3, r7, #20
  51100. 80155a6: 9301 str r3, [sp, #4]
  51101. 80155a8: 6b3b ldr r3, [r7, #48] @ 0x30
  51102. 80155aa: 9300 str r3, [sp, #0]
  51103. 80155ac: 683b ldr r3, [r7, #0]
  51104. 80155ae: 687a ldr r2, [r7, #4]
  51105. 80155b0: 68b9 ldr r1, [r7, #8]
  51106. 80155b2: 68f8 ldr r0, [r7, #12]
  51107. 80155b4: f000 f850 bl 8015658 <prvInitialiseNewTask>
  51108. prvAddNewTaskToReadyList( pxNewTCB );
  51109. 80155b8: 6a78 ldr r0, [r7, #36] @ 0x24
  51110. 80155ba: f000 f8f5 bl 80157a8 <prvAddNewTaskToReadyList>
  51111. 80155be: e001 b.n 80155c4 <xTaskCreateStatic+0xb6>
  51112. }
  51113. else
  51114. {
  51115. xReturn = NULL;
  51116. 80155c0: 2300 movs r3, #0
  51117. 80155c2: 617b str r3, [r7, #20]
  51118. }
  51119. return xReturn;
  51120. 80155c4: 697b ldr r3, [r7, #20]
  51121. }
  51122. 80155c6: 4618 mov r0, r3
  51123. 80155c8: 3728 adds r7, #40 @ 0x28
  51124. 80155ca: 46bd mov sp, r7
  51125. 80155cc: bd80 pop {r7, pc}
  51126. 080155ce <xTaskCreate>:
  51127. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  51128. const configSTACK_DEPTH_TYPE usStackDepth,
  51129. void * const pvParameters,
  51130. UBaseType_t uxPriority,
  51131. TaskHandle_t * const pxCreatedTask )
  51132. {
  51133. 80155ce: b580 push {r7, lr}
  51134. 80155d0: b08c sub sp, #48 @ 0x30
  51135. 80155d2: af04 add r7, sp, #16
  51136. 80155d4: 60f8 str r0, [r7, #12]
  51137. 80155d6: 60b9 str r1, [r7, #8]
  51138. 80155d8: 603b str r3, [r7, #0]
  51139. 80155da: 4613 mov r3, r2
  51140. 80155dc: 80fb strh r3, [r7, #6]
  51141. #else /* portSTACK_GROWTH */
  51142. {
  51143. StackType_t *pxStack;
  51144. /* Allocate space for the stack used by the task being created. */
  51145. 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. */
  51146. 80155de: 88fb ldrh r3, [r7, #6]
  51147. 80155e0: 009b lsls r3, r3, #2
  51148. 80155e2: 4618 mov r0, r3
  51149. 80155e4: f002 f8da bl 801779c <pvPortMalloc>
  51150. 80155e8: 6178 str r0, [r7, #20]
  51151. if( pxStack != NULL )
  51152. 80155ea: 697b ldr r3, [r7, #20]
  51153. 80155ec: 2b00 cmp r3, #0
  51154. 80155ee: d00e beq.n 801560e <xTaskCreate+0x40>
  51155. {
  51156. /* Allocate space for the TCB. */
  51157. 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. */
  51158. 80155f0: 20a8 movs r0, #168 @ 0xa8
  51159. 80155f2: f002 f8d3 bl 801779c <pvPortMalloc>
  51160. 80155f6: 61f8 str r0, [r7, #28]
  51161. if( pxNewTCB != NULL )
  51162. 80155f8: 69fb ldr r3, [r7, #28]
  51163. 80155fa: 2b00 cmp r3, #0
  51164. 80155fc: d003 beq.n 8015606 <xTaskCreate+0x38>
  51165. {
  51166. /* Store the stack location in the TCB. */
  51167. pxNewTCB->pxStack = pxStack;
  51168. 80155fe: 69fb ldr r3, [r7, #28]
  51169. 8015600: 697a ldr r2, [r7, #20]
  51170. 8015602: 631a str r2, [r3, #48] @ 0x30
  51171. 8015604: e005 b.n 8015612 <xTaskCreate+0x44>
  51172. }
  51173. else
  51174. {
  51175. /* The stack cannot be used as the TCB was not created. Free
  51176. it again. */
  51177. vPortFree( pxStack );
  51178. 8015606: 6978 ldr r0, [r7, #20]
  51179. 8015608: f002 f996 bl 8017938 <vPortFree>
  51180. 801560c: e001 b.n 8015612 <xTaskCreate+0x44>
  51181. }
  51182. }
  51183. else
  51184. {
  51185. pxNewTCB = NULL;
  51186. 801560e: 2300 movs r3, #0
  51187. 8015610: 61fb str r3, [r7, #28]
  51188. }
  51189. }
  51190. #endif /* portSTACK_GROWTH */
  51191. if( pxNewTCB != NULL )
  51192. 8015612: 69fb ldr r3, [r7, #28]
  51193. 8015614: 2b00 cmp r3, #0
  51194. 8015616: d017 beq.n 8015648 <xTaskCreate+0x7a>
  51195. {
  51196. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  51197. {
  51198. /* Tasks can be created statically or dynamically, so note this
  51199. task was created dynamically in case it is later deleted. */
  51200. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  51201. 8015618: 69fb ldr r3, [r7, #28]
  51202. 801561a: 2200 movs r2, #0
  51203. 801561c: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  51204. }
  51205. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  51206. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  51207. 8015620: 88fa ldrh r2, [r7, #6]
  51208. 8015622: 2300 movs r3, #0
  51209. 8015624: 9303 str r3, [sp, #12]
  51210. 8015626: 69fb ldr r3, [r7, #28]
  51211. 8015628: 9302 str r3, [sp, #8]
  51212. 801562a: 6afb ldr r3, [r7, #44] @ 0x2c
  51213. 801562c: 9301 str r3, [sp, #4]
  51214. 801562e: 6abb ldr r3, [r7, #40] @ 0x28
  51215. 8015630: 9300 str r3, [sp, #0]
  51216. 8015632: 683b ldr r3, [r7, #0]
  51217. 8015634: 68b9 ldr r1, [r7, #8]
  51218. 8015636: 68f8 ldr r0, [r7, #12]
  51219. 8015638: f000 f80e bl 8015658 <prvInitialiseNewTask>
  51220. prvAddNewTaskToReadyList( pxNewTCB );
  51221. 801563c: 69f8 ldr r0, [r7, #28]
  51222. 801563e: f000 f8b3 bl 80157a8 <prvAddNewTaskToReadyList>
  51223. xReturn = pdPASS;
  51224. 8015642: 2301 movs r3, #1
  51225. 8015644: 61bb str r3, [r7, #24]
  51226. 8015646: e002 b.n 801564e <xTaskCreate+0x80>
  51227. }
  51228. else
  51229. {
  51230. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  51231. 8015648: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  51232. 801564c: 61bb str r3, [r7, #24]
  51233. }
  51234. return xReturn;
  51235. 801564e: 69bb ldr r3, [r7, #24]
  51236. }
  51237. 8015650: 4618 mov r0, r3
  51238. 8015652: 3720 adds r7, #32
  51239. 8015654: 46bd mov sp, r7
  51240. 8015656: bd80 pop {r7, pc}
  51241. 08015658 <prvInitialiseNewTask>:
  51242. void * const pvParameters,
  51243. UBaseType_t uxPriority,
  51244. TaskHandle_t * const pxCreatedTask,
  51245. TCB_t *pxNewTCB,
  51246. const MemoryRegion_t * const xRegions )
  51247. {
  51248. 8015658: b580 push {r7, lr}
  51249. 801565a: b088 sub sp, #32
  51250. 801565c: af00 add r7, sp, #0
  51251. 801565e: 60f8 str r0, [r7, #12]
  51252. 8015660: 60b9 str r1, [r7, #8]
  51253. 8015662: 607a str r2, [r7, #4]
  51254. 8015664: 603b str r3, [r7, #0]
  51255. /* Avoid dependency on memset() if it is not required. */
  51256. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  51257. {
  51258. /* Fill the stack with a known value to assist debugging. */
  51259. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  51260. 8015666: 6b3b ldr r3, [r7, #48] @ 0x30
  51261. 8015668: 6b18 ldr r0, [r3, #48] @ 0x30
  51262. 801566a: 687b ldr r3, [r7, #4]
  51263. 801566c: 009b lsls r3, r3, #2
  51264. 801566e: 461a mov r2, r3
  51265. 8015670: 21a5 movs r1, #165 @ 0xa5
  51266. 8015672: f002 fb98 bl 8017da6 <memset>
  51267. grows from high memory to low (as per the 80x86) or vice versa.
  51268. portSTACK_GROWTH is used to make the result positive or negative as required
  51269. by the port. */
  51270. #if( portSTACK_GROWTH < 0 )
  51271. {
  51272. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  51273. 8015676: 6b3b ldr r3, [r7, #48] @ 0x30
  51274. 8015678: 6b1a ldr r2, [r3, #48] @ 0x30
  51275. 801567a: 6879 ldr r1, [r7, #4]
  51276. 801567c: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  51277. 8015680: 440b add r3, r1
  51278. 8015682: 009b lsls r3, r3, #2
  51279. 8015684: 4413 add r3, r2
  51280. 8015686: 61bb str r3, [r7, #24]
  51281. 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(). */
  51282. 8015688: 69bb ldr r3, [r7, #24]
  51283. 801568a: f023 0307 bic.w r3, r3, #7
  51284. 801568e: 61bb str r3, [r7, #24]
  51285. /* Check the alignment of the calculated top of stack is correct. */
  51286. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  51287. 8015690: 69bb ldr r3, [r7, #24]
  51288. 8015692: f003 0307 and.w r3, r3, #7
  51289. 8015696: 2b00 cmp r3, #0
  51290. 8015698: d00b beq.n 80156b2 <prvInitialiseNewTask+0x5a>
  51291. __asm volatile
  51292. 801569a: f04f 0350 mov.w r3, #80 @ 0x50
  51293. 801569e: f383 8811 msr BASEPRI, r3
  51294. 80156a2: f3bf 8f6f isb sy
  51295. 80156a6: f3bf 8f4f dsb sy
  51296. 80156aa: 617b str r3, [r7, #20]
  51297. }
  51298. 80156ac: bf00 nop
  51299. 80156ae: bf00 nop
  51300. 80156b0: e7fd b.n 80156ae <prvInitialiseNewTask+0x56>
  51301. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  51302. }
  51303. #endif /* portSTACK_GROWTH */
  51304. /* Store the task name in the TCB. */
  51305. if( pcName != NULL )
  51306. 80156b2: 68bb ldr r3, [r7, #8]
  51307. 80156b4: 2b00 cmp r3, #0
  51308. 80156b6: d01f beq.n 80156f8 <prvInitialiseNewTask+0xa0>
  51309. {
  51310. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  51311. 80156b8: 2300 movs r3, #0
  51312. 80156ba: 61fb str r3, [r7, #28]
  51313. 80156bc: e012 b.n 80156e4 <prvInitialiseNewTask+0x8c>
  51314. {
  51315. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  51316. 80156be: 68ba ldr r2, [r7, #8]
  51317. 80156c0: 69fb ldr r3, [r7, #28]
  51318. 80156c2: 4413 add r3, r2
  51319. 80156c4: 7819 ldrb r1, [r3, #0]
  51320. 80156c6: 6b3a ldr r2, [r7, #48] @ 0x30
  51321. 80156c8: 69fb ldr r3, [r7, #28]
  51322. 80156ca: 4413 add r3, r2
  51323. 80156cc: 3334 adds r3, #52 @ 0x34
  51324. 80156ce: 460a mov r2, r1
  51325. 80156d0: 701a strb r2, [r3, #0]
  51326. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  51327. configMAX_TASK_NAME_LEN characters just in case the memory after the
  51328. string is not accessible (extremely unlikely). */
  51329. if( pcName[ x ] == ( char ) 0x00 )
  51330. 80156d2: 68ba ldr r2, [r7, #8]
  51331. 80156d4: 69fb ldr r3, [r7, #28]
  51332. 80156d6: 4413 add r3, r2
  51333. 80156d8: 781b ldrb r3, [r3, #0]
  51334. 80156da: 2b00 cmp r3, #0
  51335. 80156dc: d006 beq.n 80156ec <prvInitialiseNewTask+0x94>
  51336. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  51337. 80156de: 69fb ldr r3, [r7, #28]
  51338. 80156e0: 3301 adds r3, #1
  51339. 80156e2: 61fb str r3, [r7, #28]
  51340. 80156e4: 69fb ldr r3, [r7, #28]
  51341. 80156e6: 2b0f cmp r3, #15
  51342. 80156e8: d9e9 bls.n 80156be <prvInitialiseNewTask+0x66>
  51343. 80156ea: e000 b.n 80156ee <prvInitialiseNewTask+0x96>
  51344. {
  51345. break;
  51346. 80156ec: bf00 nop
  51347. }
  51348. }
  51349. /* Ensure the name string is terminated in the case that the string length
  51350. was greater or equal to configMAX_TASK_NAME_LEN. */
  51351. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  51352. 80156ee: 6b3b ldr r3, [r7, #48] @ 0x30
  51353. 80156f0: 2200 movs r2, #0
  51354. 80156f2: f883 2043 strb.w r2, [r3, #67] @ 0x43
  51355. 80156f6: e003 b.n 8015700 <prvInitialiseNewTask+0xa8>
  51356. }
  51357. else
  51358. {
  51359. /* The task has not been given a name, so just ensure there is a NULL
  51360. terminator when it is read out. */
  51361. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  51362. 80156f8: 6b3b ldr r3, [r7, #48] @ 0x30
  51363. 80156fa: 2200 movs r2, #0
  51364. 80156fc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  51365. }
  51366. /* This is used as an array index so must ensure it's not too large. First
  51367. remove the privilege bit if one is present. */
  51368. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  51369. 8015700: 6abb ldr r3, [r7, #40] @ 0x28
  51370. 8015702: 2b37 cmp r3, #55 @ 0x37
  51371. 8015704: d901 bls.n 801570a <prvInitialiseNewTask+0xb2>
  51372. {
  51373. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  51374. 8015706: 2337 movs r3, #55 @ 0x37
  51375. 8015708: 62bb str r3, [r7, #40] @ 0x28
  51376. else
  51377. {
  51378. mtCOVERAGE_TEST_MARKER();
  51379. }
  51380. pxNewTCB->uxPriority = uxPriority;
  51381. 801570a: 6b3b ldr r3, [r7, #48] @ 0x30
  51382. 801570c: 6aba ldr r2, [r7, #40] @ 0x28
  51383. 801570e: 62da str r2, [r3, #44] @ 0x2c
  51384. #if ( configUSE_MUTEXES == 1 )
  51385. {
  51386. pxNewTCB->uxBasePriority = uxPriority;
  51387. 8015710: 6b3b ldr r3, [r7, #48] @ 0x30
  51388. 8015712: 6aba ldr r2, [r7, #40] @ 0x28
  51389. 8015714: 64da str r2, [r3, #76] @ 0x4c
  51390. pxNewTCB->uxMutexesHeld = 0;
  51391. 8015716: 6b3b ldr r3, [r7, #48] @ 0x30
  51392. 8015718: 2200 movs r2, #0
  51393. 801571a: 651a str r2, [r3, #80] @ 0x50
  51394. }
  51395. #endif /* configUSE_MUTEXES */
  51396. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  51397. 801571c: 6b3b ldr r3, [r7, #48] @ 0x30
  51398. 801571e: 3304 adds r3, #4
  51399. 8015720: 4618 mov r0, r3
  51400. 8015722: f7fe fd09 bl 8014138 <vListInitialiseItem>
  51401. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  51402. 8015726: 6b3b ldr r3, [r7, #48] @ 0x30
  51403. 8015728: 3318 adds r3, #24
  51404. 801572a: 4618 mov r0, r3
  51405. 801572c: f7fe fd04 bl 8014138 <vListInitialiseItem>
  51406. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  51407. back to the containing TCB from a generic item in a list. */
  51408. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  51409. 8015730: 6b3b ldr r3, [r7, #48] @ 0x30
  51410. 8015732: 6b3a ldr r2, [r7, #48] @ 0x30
  51411. 8015734: 611a str r2, [r3, #16]
  51412. /* Event lists are always in priority order. */
  51413. 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. */
  51414. 8015736: 6abb ldr r3, [r7, #40] @ 0x28
  51415. 8015738: f1c3 0238 rsb r2, r3, #56 @ 0x38
  51416. 801573c: 6b3b ldr r3, [r7, #48] @ 0x30
  51417. 801573e: 619a str r2, [r3, #24]
  51418. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  51419. 8015740: 6b3b ldr r3, [r7, #48] @ 0x30
  51420. 8015742: 6b3a ldr r2, [r7, #48] @ 0x30
  51421. 8015744: 625a str r2, [r3, #36] @ 0x24
  51422. }
  51423. #endif
  51424. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  51425. {
  51426. pxNewTCB->ulNotifiedValue = 0;
  51427. 8015746: 6b3b ldr r3, [r7, #48] @ 0x30
  51428. 8015748: 2200 movs r2, #0
  51429. 801574a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  51430. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  51431. 801574e: 6b3b ldr r3, [r7, #48] @ 0x30
  51432. 8015750: 2200 movs r2, #0
  51433. 8015752: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  51434. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  51435. {
  51436. /* Initialise this task's Newlib reent structure.
  51437. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  51438. for additional information. */
  51439. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  51440. 8015756: 6b3b ldr r3, [r7, #48] @ 0x30
  51441. 8015758: 3354 adds r3, #84 @ 0x54
  51442. 801575a: 224c movs r2, #76 @ 0x4c
  51443. 801575c: 2100 movs r1, #0
  51444. 801575e: 4618 mov r0, r3
  51445. 8015760: f002 fb21 bl 8017da6 <memset>
  51446. 8015764: 6b3b ldr r3, [r7, #48] @ 0x30
  51447. 8015766: 4a0d ldr r2, [pc, #52] @ (801579c <prvInitialiseNewTask+0x144>)
  51448. 8015768: 659a str r2, [r3, #88] @ 0x58
  51449. 801576a: 6b3b ldr r3, [r7, #48] @ 0x30
  51450. 801576c: 4a0c ldr r2, [pc, #48] @ (80157a0 <prvInitialiseNewTask+0x148>)
  51451. 801576e: 65da str r2, [r3, #92] @ 0x5c
  51452. 8015770: 6b3b ldr r3, [r7, #48] @ 0x30
  51453. 8015772: 4a0c ldr r2, [pc, #48] @ (80157a4 <prvInitialiseNewTask+0x14c>)
  51454. 8015774: 661a str r2, [r3, #96] @ 0x60
  51455. }
  51456. #endif /* portSTACK_GROWTH */
  51457. }
  51458. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  51459. {
  51460. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  51461. 8015776: 683a ldr r2, [r7, #0]
  51462. 8015778: 68f9 ldr r1, [r7, #12]
  51463. 801577a: 69b8 ldr r0, [r7, #24]
  51464. 801577c: f001 fdb8 bl 80172f0 <pxPortInitialiseStack>
  51465. 8015780: 4602 mov r2, r0
  51466. 8015782: 6b3b ldr r3, [r7, #48] @ 0x30
  51467. 8015784: 601a str r2, [r3, #0]
  51468. }
  51469. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  51470. }
  51471. #endif /* portUSING_MPU_WRAPPERS */
  51472. if( pxCreatedTask != NULL )
  51473. 8015786: 6afb ldr r3, [r7, #44] @ 0x2c
  51474. 8015788: 2b00 cmp r3, #0
  51475. 801578a: d002 beq.n 8015792 <prvInitialiseNewTask+0x13a>
  51476. {
  51477. /* Pass the handle out in an anonymous way. The handle can be used to
  51478. change the created task's priority, delete the created task, etc.*/
  51479. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  51480. 801578c: 6afb ldr r3, [r7, #44] @ 0x2c
  51481. 801578e: 6b3a ldr r2, [r7, #48] @ 0x30
  51482. 8015790: 601a str r2, [r3, #0]
  51483. }
  51484. else
  51485. {
  51486. mtCOVERAGE_TEST_MARKER();
  51487. }
  51488. }
  51489. 8015792: bf00 nop
  51490. 8015794: 3720 adds r7, #32
  51491. 8015796: 46bd mov sp, r7
  51492. 8015798: bd80 pop {r7, pc}
  51493. 801579a: bf00 nop
  51494. 801579c: 24012ce8 .word 0x24012ce8
  51495. 80157a0: 24012d50 .word 0x24012d50
  51496. 80157a4: 24012db8 .word 0x24012db8
  51497. 080157a8 <prvAddNewTaskToReadyList>:
  51498. /*-----------------------------------------------------------*/
  51499. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  51500. {
  51501. 80157a8: b580 push {r7, lr}
  51502. 80157aa: b082 sub sp, #8
  51503. 80157ac: af00 add r7, sp, #0
  51504. 80157ae: 6078 str r0, [r7, #4]
  51505. /* Ensure interrupts don't access the task lists while the lists are being
  51506. updated. */
  51507. taskENTER_CRITICAL();
  51508. 80157b0: f001 fed2 bl 8017558 <vPortEnterCritical>
  51509. {
  51510. uxCurrentNumberOfTasks++;
  51511. 80157b4: 4b2d ldr r3, [pc, #180] @ (801586c <prvAddNewTaskToReadyList+0xc4>)
  51512. 80157b6: 681b ldr r3, [r3, #0]
  51513. 80157b8: 3301 adds r3, #1
  51514. 80157ba: 4a2c ldr r2, [pc, #176] @ (801586c <prvAddNewTaskToReadyList+0xc4>)
  51515. 80157bc: 6013 str r3, [r2, #0]
  51516. if( pxCurrentTCB == NULL )
  51517. 80157be: 4b2c ldr r3, [pc, #176] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51518. 80157c0: 681b ldr r3, [r3, #0]
  51519. 80157c2: 2b00 cmp r3, #0
  51520. 80157c4: d109 bne.n 80157da <prvAddNewTaskToReadyList+0x32>
  51521. {
  51522. /* There are no other tasks, or all the other tasks are in
  51523. the suspended state - make this the current task. */
  51524. pxCurrentTCB = pxNewTCB;
  51525. 80157c6: 4a2a ldr r2, [pc, #168] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51526. 80157c8: 687b ldr r3, [r7, #4]
  51527. 80157ca: 6013 str r3, [r2, #0]
  51528. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  51529. 80157cc: 4b27 ldr r3, [pc, #156] @ (801586c <prvAddNewTaskToReadyList+0xc4>)
  51530. 80157ce: 681b ldr r3, [r3, #0]
  51531. 80157d0: 2b01 cmp r3, #1
  51532. 80157d2: d110 bne.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51533. {
  51534. /* This is the first task to be created so do the preliminary
  51535. initialisation required. We will not recover if this call
  51536. fails, but we will report the failure. */
  51537. prvInitialiseTaskLists();
  51538. 80157d4: f000 fc64 bl 80160a0 <prvInitialiseTaskLists>
  51539. 80157d8: e00d b.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51540. else
  51541. {
  51542. /* If the scheduler is not already running, make this task the
  51543. current task if it is the highest priority task to be created
  51544. so far. */
  51545. if( xSchedulerRunning == pdFALSE )
  51546. 80157da: 4b26 ldr r3, [pc, #152] @ (8015874 <prvAddNewTaskToReadyList+0xcc>)
  51547. 80157dc: 681b ldr r3, [r3, #0]
  51548. 80157de: 2b00 cmp r3, #0
  51549. 80157e0: d109 bne.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51550. {
  51551. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  51552. 80157e2: 4b23 ldr r3, [pc, #140] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51553. 80157e4: 681b ldr r3, [r3, #0]
  51554. 80157e6: 6ada ldr r2, [r3, #44] @ 0x2c
  51555. 80157e8: 687b ldr r3, [r7, #4]
  51556. 80157ea: 6adb ldr r3, [r3, #44] @ 0x2c
  51557. 80157ec: 429a cmp r2, r3
  51558. 80157ee: d802 bhi.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51559. {
  51560. pxCurrentTCB = pxNewTCB;
  51561. 80157f0: 4a1f ldr r2, [pc, #124] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51562. 80157f2: 687b ldr r3, [r7, #4]
  51563. 80157f4: 6013 str r3, [r2, #0]
  51564. {
  51565. mtCOVERAGE_TEST_MARKER();
  51566. }
  51567. }
  51568. uxTaskNumber++;
  51569. 80157f6: 4b20 ldr r3, [pc, #128] @ (8015878 <prvAddNewTaskToReadyList+0xd0>)
  51570. 80157f8: 681b ldr r3, [r3, #0]
  51571. 80157fa: 3301 adds r3, #1
  51572. 80157fc: 4a1e ldr r2, [pc, #120] @ (8015878 <prvAddNewTaskToReadyList+0xd0>)
  51573. 80157fe: 6013 str r3, [r2, #0]
  51574. #if ( configUSE_TRACE_FACILITY == 1 )
  51575. {
  51576. /* Add a counter into the TCB for tracing only. */
  51577. pxNewTCB->uxTCBNumber = uxTaskNumber;
  51578. 8015800: 4b1d ldr r3, [pc, #116] @ (8015878 <prvAddNewTaskToReadyList+0xd0>)
  51579. 8015802: 681a ldr r2, [r3, #0]
  51580. 8015804: 687b ldr r3, [r7, #4]
  51581. 8015806: 645a str r2, [r3, #68] @ 0x44
  51582. }
  51583. #endif /* configUSE_TRACE_FACILITY */
  51584. traceTASK_CREATE( pxNewTCB );
  51585. prvAddTaskToReadyList( pxNewTCB );
  51586. 8015808: 687b ldr r3, [r7, #4]
  51587. 801580a: 6ada ldr r2, [r3, #44] @ 0x2c
  51588. 801580c: 4b1b ldr r3, [pc, #108] @ (801587c <prvAddNewTaskToReadyList+0xd4>)
  51589. 801580e: 681b ldr r3, [r3, #0]
  51590. 8015810: 429a cmp r2, r3
  51591. 8015812: d903 bls.n 801581c <prvAddNewTaskToReadyList+0x74>
  51592. 8015814: 687b ldr r3, [r7, #4]
  51593. 8015816: 6adb ldr r3, [r3, #44] @ 0x2c
  51594. 8015818: 4a18 ldr r2, [pc, #96] @ (801587c <prvAddNewTaskToReadyList+0xd4>)
  51595. 801581a: 6013 str r3, [r2, #0]
  51596. 801581c: 687b ldr r3, [r7, #4]
  51597. 801581e: 6ada ldr r2, [r3, #44] @ 0x2c
  51598. 8015820: 4613 mov r3, r2
  51599. 8015822: 009b lsls r3, r3, #2
  51600. 8015824: 4413 add r3, r2
  51601. 8015826: 009b lsls r3, r3, #2
  51602. 8015828: 4a15 ldr r2, [pc, #84] @ (8015880 <prvAddNewTaskToReadyList+0xd8>)
  51603. 801582a: 441a add r2, r3
  51604. 801582c: 687b ldr r3, [r7, #4]
  51605. 801582e: 3304 adds r3, #4
  51606. 8015830: 4619 mov r1, r3
  51607. 8015832: 4610 mov r0, r2
  51608. 8015834: f7fe fc8d bl 8014152 <vListInsertEnd>
  51609. portSETUP_TCB( pxNewTCB );
  51610. }
  51611. taskEXIT_CRITICAL();
  51612. 8015838: f001 fec0 bl 80175bc <vPortExitCritical>
  51613. if( xSchedulerRunning != pdFALSE )
  51614. 801583c: 4b0d ldr r3, [pc, #52] @ (8015874 <prvAddNewTaskToReadyList+0xcc>)
  51615. 801583e: 681b ldr r3, [r3, #0]
  51616. 8015840: 2b00 cmp r3, #0
  51617. 8015842: d00e beq.n 8015862 <prvAddNewTaskToReadyList+0xba>
  51618. {
  51619. /* If the created task is of a higher priority than the current task
  51620. then it should run now. */
  51621. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  51622. 8015844: 4b0a ldr r3, [pc, #40] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51623. 8015846: 681b ldr r3, [r3, #0]
  51624. 8015848: 6ada ldr r2, [r3, #44] @ 0x2c
  51625. 801584a: 687b ldr r3, [r7, #4]
  51626. 801584c: 6adb ldr r3, [r3, #44] @ 0x2c
  51627. 801584e: 429a cmp r2, r3
  51628. 8015850: d207 bcs.n 8015862 <prvAddNewTaskToReadyList+0xba>
  51629. {
  51630. taskYIELD_IF_USING_PREEMPTION();
  51631. 8015852: 4b0c ldr r3, [pc, #48] @ (8015884 <prvAddNewTaskToReadyList+0xdc>)
  51632. 8015854: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51633. 8015858: 601a str r2, [r3, #0]
  51634. 801585a: f3bf 8f4f dsb sy
  51635. 801585e: f3bf 8f6f isb sy
  51636. }
  51637. else
  51638. {
  51639. mtCOVERAGE_TEST_MARKER();
  51640. }
  51641. }
  51642. 8015862: bf00 nop
  51643. 8015864: 3708 adds r7, #8
  51644. 8015866: 46bd mov sp, r7
  51645. 8015868: bd80 pop {r7, pc}
  51646. 801586a: bf00 nop
  51647. 801586c: 24002b68 .word 0x24002b68
  51648. 8015870: 24002694 .word 0x24002694
  51649. 8015874: 24002b74 .word 0x24002b74
  51650. 8015878: 24002b84 .word 0x24002b84
  51651. 801587c: 24002b70 .word 0x24002b70
  51652. 8015880: 24002698 .word 0x24002698
  51653. 8015884: e000ed04 .word 0xe000ed04
  51654. 08015888 <vTaskDelay>:
  51655. /*-----------------------------------------------------------*/
  51656. #if ( INCLUDE_vTaskDelay == 1 )
  51657. void vTaskDelay( const TickType_t xTicksToDelay )
  51658. {
  51659. 8015888: b580 push {r7, lr}
  51660. 801588a: b084 sub sp, #16
  51661. 801588c: af00 add r7, sp, #0
  51662. 801588e: 6078 str r0, [r7, #4]
  51663. BaseType_t xAlreadyYielded = pdFALSE;
  51664. 8015890: 2300 movs r3, #0
  51665. 8015892: 60fb str r3, [r7, #12]
  51666. /* A delay time of zero just forces a reschedule. */
  51667. if( xTicksToDelay > ( TickType_t ) 0U )
  51668. 8015894: 687b ldr r3, [r7, #4]
  51669. 8015896: 2b00 cmp r3, #0
  51670. 8015898: d018 beq.n 80158cc <vTaskDelay+0x44>
  51671. {
  51672. configASSERT( uxSchedulerSuspended == 0 );
  51673. 801589a: 4b14 ldr r3, [pc, #80] @ (80158ec <vTaskDelay+0x64>)
  51674. 801589c: 681b ldr r3, [r3, #0]
  51675. 801589e: 2b00 cmp r3, #0
  51676. 80158a0: d00b beq.n 80158ba <vTaskDelay+0x32>
  51677. __asm volatile
  51678. 80158a2: f04f 0350 mov.w r3, #80 @ 0x50
  51679. 80158a6: f383 8811 msr BASEPRI, r3
  51680. 80158aa: f3bf 8f6f isb sy
  51681. 80158ae: f3bf 8f4f dsb sy
  51682. 80158b2: 60bb str r3, [r7, #8]
  51683. }
  51684. 80158b4: bf00 nop
  51685. 80158b6: bf00 nop
  51686. 80158b8: e7fd b.n 80158b6 <vTaskDelay+0x2e>
  51687. vTaskSuspendAll();
  51688. 80158ba: f000 f88b bl 80159d4 <vTaskSuspendAll>
  51689. list or removed from the blocked list until the scheduler
  51690. is resumed.
  51691. This task cannot be in an event list as it is the currently
  51692. executing task. */
  51693. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  51694. 80158be: 2100 movs r1, #0
  51695. 80158c0: 6878 ldr r0, [r7, #4]
  51696. 80158c2: f001 f87d bl 80169c0 <prvAddCurrentTaskToDelayedList>
  51697. }
  51698. xAlreadyYielded = xTaskResumeAll();
  51699. 80158c6: f000 f893 bl 80159f0 <xTaskResumeAll>
  51700. 80158ca: 60f8 str r0, [r7, #12]
  51701. mtCOVERAGE_TEST_MARKER();
  51702. }
  51703. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  51704. have put ourselves to sleep. */
  51705. if( xAlreadyYielded == pdFALSE )
  51706. 80158cc: 68fb ldr r3, [r7, #12]
  51707. 80158ce: 2b00 cmp r3, #0
  51708. 80158d0: d107 bne.n 80158e2 <vTaskDelay+0x5a>
  51709. {
  51710. portYIELD_WITHIN_API();
  51711. 80158d2: 4b07 ldr r3, [pc, #28] @ (80158f0 <vTaskDelay+0x68>)
  51712. 80158d4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51713. 80158d8: 601a str r2, [r3, #0]
  51714. 80158da: f3bf 8f4f dsb sy
  51715. 80158de: f3bf 8f6f isb sy
  51716. }
  51717. else
  51718. {
  51719. mtCOVERAGE_TEST_MARKER();
  51720. }
  51721. }
  51722. 80158e2: bf00 nop
  51723. 80158e4: 3710 adds r7, #16
  51724. 80158e6: 46bd mov sp, r7
  51725. 80158e8: bd80 pop {r7, pc}
  51726. 80158ea: bf00 nop
  51727. 80158ec: 24002b90 .word 0x24002b90
  51728. 80158f0: e000ed04 .word 0xe000ed04
  51729. 080158f4 <vTaskStartScheduler>:
  51730. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  51731. /*-----------------------------------------------------------*/
  51732. void vTaskStartScheduler( void )
  51733. {
  51734. 80158f4: b580 push {r7, lr}
  51735. 80158f6: b08a sub sp, #40 @ 0x28
  51736. 80158f8: af04 add r7, sp, #16
  51737. BaseType_t xReturn;
  51738. /* Add the idle task at the lowest priority. */
  51739. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  51740. {
  51741. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  51742. 80158fa: 2300 movs r3, #0
  51743. 80158fc: 60bb str r3, [r7, #8]
  51744. StackType_t *pxIdleTaskStackBuffer = NULL;
  51745. 80158fe: 2300 movs r3, #0
  51746. 8015900: 607b str r3, [r7, #4]
  51747. uint32_t ulIdleTaskStackSize;
  51748. /* The Idle task is created using user provided RAM - obtain the
  51749. address of the RAM then create the idle task. */
  51750. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  51751. 8015902: 463a mov r2, r7
  51752. 8015904: 1d39 adds r1, r7, #4
  51753. 8015906: f107 0308 add.w r3, r7, #8
  51754. 801590a: 4618 mov r0, r3
  51755. 801590c: f7fe fbc0 bl 8014090 <vApplicationGetIdleTaskMemory>
  51756. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  51757. 8015910: 6839 ldr r1, [r7, #0]
  51758. 8015912: 687b ldr r3, [r7, #4]
  51759. 8015914: 68ba ldr r2, [r7, #8]
  51760. 8015916: 9202 str r2, [sp, #8]
  51761. 8015918: 9301 str r3, [sp, #4]
  51762. 801591a: 2300 movs r3, #0
  51763. 801591c: 9300 str r3, [sp, #0]
  51764. 801591e: 2300 movs r3, #0
  51765. 8015920: 460a mov r2, r1
  51766. 8015922: 4924 ldr r1, [pc, #144] @ (80159b4 <vTaskStartScheduler+0xc0>)
  51767. 8015924: 4824 ldr r0, [pc, #144] @ (80159b8 <vTaskStartScheduler+0xc4>)
  51768. 8015926: f7ff fdf2 bl 801550e <xTaskCreateStatic>
  51769. 801592a: 4603 mov r3, r0
  51770. 801592c: 4a23 ldr r2, [pc, #140] @ (80159bc <vTaskStartScheduler+0xc8>)
  51771. 801592e: 6013 str r3, [r2, #0]
  51772. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  51773. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  51774. pxIdleTaskStackBuffer,
  51775. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  51776. if( xIdleTaskHandle != NULL )
  51777. 8015930: 4b22 ldr r3, [pc, #136] @ (80159bc <vTaskStartScheduler+0xc8>)
  51778. 8015932: 681b ldr r3, [r3, #0]
  51779. 8015934: 2b00 cmp r3, #0
  51780. 8015936: d002 beq.n 801593e <vTaskStartScheduler+0x4a>
  51781. {
  51782. xReturn = pdPASS;
  51783. 8015938: 2301 movs r3, #1
  51784. 801593a: 617b str r3, [r7, #20]
  51785. 801593c: e001 b.n 8015942 <vTaskStartScheduler+0x4e>
  51786. }
  51787. else
  51788. {
  51789. xReturn = pdFAIL;
  51790. 801593e: 2300 movs r3, #0
  51791. 8015940: 617b str r3, [r7, #20]
  51792. }
  51793. #endif /* configSUPPORT_STATIC_ALLOCATION */
  51794. #if ( configUSE_TIMERS == 1 )
  51795. {
  51796. if( xReturn == pdPASS )
  51797. 8015942: 697b ldr r3, [r7, #20]
  51798. 8015944: 2b01 cmp r3, #1
  51799. 8015946: d102 bne.n 801594e <vTaskStartScheduler+0x5a>
  51800. {
  51801. xReturn = xTimerCreateTimerTask();
  51802. 8015948: f001 f88e bl 8016a68 <xTimerCreateTimerTask>
  51803. 801594c: 6178 str r0, [r7, #20]
  51804. mtCOVERAGE_TEST_MARKER();
  51805. }
  51806. }
  51807. #endif /* configUSE_TIMERS */
  51808. if( xReturn == pdPASS )
  51809. 801594e: 697b ldr r3, [r7, #20]
  51810. 8015950: 2b01 cmp r3, #1
  51811. 8015952: d11b bne.n 801598c <vTaskStartScheduler+0x98>
  51812. __asm volatile
  51813. 8015954: f04f 0350 mov.w r3, #80 @ 0x50
  51814. 8015958: f383 8811 msr BASEPRI, r3
  51815. 801595c: f3bf 8f6f isb sy
  51816. 8015960: f3bf 8f4f dsb sy
  51817. 8015964: 613b str r3, [r7, #16]
  51818. }
  51819. 8015966: bf00 nop
  51820. {
  51821. /* Switch Newlib's _impure_ptr variable to point to the _reent
  51822. structure specific to the task that will run first.
  51823. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  51824. for additional information. */
  51825. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  51826. 8015968: 4b15 ldr r3, [pc, #84] @ (80159c0 <vTaskStartScheduler+0xcc>)
  51827. 801596a: 681b ldr r3, [r3, #0]
  51828. 801596c: 3354 adds r3, #84 @ 0x54
  51829. 801596e: 4a15 ldr r2, [pc, #84] @ (80159c4 <vTaskStartScheduler+0xd0>)
  51830. 8015970: 6013 str r3, [r2, #0]
  51831. }
  51832. #endif /* configUSE_NEWLIB_REENTRANT */
  51833. xNextTaskUnblockTime = portMAX_DELAY;
  51834. 8015972: 4b15 ldr r3, [pc, #84] @ (80159c8 <vTaskStartScheduler+0xd4>)
  51835. 8015974: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  51836. 8015978: 601a str r2, [r3, #0]
  51837. xSchedulerRunning = pdTRUE;
  51838. 801597a: 4b14 ldr r3, [pc, #80] @ (80159cc <vTaskStartScheduler+0xd8>)
  51839. 801597c: 2201 movs r2, #1
  51840. 801597e: 601a str r2, [r3, #0]
  51841. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  51842. 8015980: 4b13 ldr r3, [pc, #76] @ (80159d0 <vTaskStartScheduler+0xdc>)
  51843. 8015982: 2200 movs r2, #0
  51844. 8015984: 601a str r2, [r3, #0]
  51845. traceTASK_SWITCHED_IN();
  51846. /* Setting up the timer tick is hardware specific and thus in the
  51847. portable interface. */
  51848. if( xPortStartScheduler() != pdFALSE )
  51849. 8015986: f001 fd43 bl 8017410 <xPortStartScheduler>
  51850. }
  51851. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  51852. meaning xIdleTaskHandle is not used anywhere else. */
  51853. ( void ) xIdleTaskHandle;
  51854. }
  51855. 801598a: e00f b.n 80159ac <vTaskStartScheduler+0xb8>
  51856. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  51857. 801598c: 697b ldr r3, [r7, #20]
  51858. 801598e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51859. 8015992: d10b bne.n 80159ac <vTaskStartScheduler+0xb8>
  51860. __asm volatile
  51861. 8015994: f04f 0350 mov.w r3, #80 @ 0x50
  51862. 8015998: f383 8811 msr BASEPRI, r3
  51863. 801599c: f3bf 8f6f isb sy
  51864. 80159a0: f3bf 8f4f dsb sy
  51865. 80159a4: 60fb str r3, [r7, #12]
  51866. }
  51867. 80159a6: bf00 nop
  51868. 80159a8: bf00 nop
  51869. 80159aa: e7fd b.n 80159a8 <vTaskStartScheduler+0xb4>
  51870. }
  51871. 80159ac: bf00 nop
  51872. 80159ae: 3718 adds r7, #24
  51873. 80159b0: 46bd mov sp, r7
  51874. 80159b2: bd80 pop {r7, pc}
  51875. 80159b4: 08018b9c .word 0x08018b9c
  51876. 80159b8: 08016071 .word 0x08016071
  51877. 80159bc: 24002b8c .word 0x24002b8c
  51878. 80159c0: 24002694 .word 0x24002694
  51879. 80159c4: 24000054 .word 0x24000054
  51880. 80159c8: 24002b88 .word 0x24002b88
  51881. 80159cc: 24002b74 .word 0x24002b74
  51882. 80159d0: 24002b6c .word 0x24002b6c
  51883. 080159d4 <vTaskSuspendAll>:
  51884. vPortEndScheduler();
  51885. }
  51886. /*----------------------------------------------------------*/
  51887. void vTaskSuspendAll( void )
  51888. {
  51889. 80159d4: b480 push {r7}
  51890. 80159d6: af00 add r7, sp, #0
  51891. do not otherwise exhibit real time behaviour. */
  51892. portSOFTWARE_BARRIER();
  51893. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  51894. is used to allow calls to vTaskSuspendAll() to nest. */
  51895. ++uxSchedulerSuspended;
  51896. 80159d8: 4b04 ldr r3, [pc, #16] @ (80159ec <vTaskSuspendAll+0x18>)
  51897. 80159da: 681b ldr r3, [r3, #0]
  51898. 80159dc: 3301 adds r3, #1
  51899. 80159de: 4a03 ldr r2, [pc, #12] @ (80159ec <vTaskSuspendAll+0x18>)
  51900. 80159e0: 6013 str r3, [r2, #0]
  51901. /* Enforces ordering for ports and optimised compilers that may otherwise place
  51902. the above increment elsewhere. */
  51903. portMEMORY_BARRIER();
  51904. }
  51905. 80159e2: bf00 nop
  51906. 80159e4: 46bd mov sp, r7
  51907. 80159e6: f85d 7b04 ldr.w r7, [sp], #4
  51908. 80159ea: 4770 bx lr
  51909. 80159ec: 24002b90 .word 0x24002b90
  51910. 080159f0 <xTaskResumeAll>:
  51911. #endif /* configUSE_TICKLESS_IDLE */
  51912. /*----------------------------------------------------------*/
  51913. BaseType_t xTaskResumeAll( void )
  51914. {
  51915. 80159f0: b580 push {r7, lr}
  51916. 80159f2: b084 sub sp, #16
  51917. 80159f4: af00 add r7, sp, #0
  51918. TCB_t *pxTCB = NULL;
  51919. 80159f6: 2300 movs r3, #0
  51920. 80159f8: 60fb str r3, [r7, #12]
  51921. BaseType_t xAlreadyYielded = pdFALSE;
  51922. 80159fa: 2300 movs r3, #0
  51923. 80159fc: 60bb str r3, [r7, #8]
  51924. /* If uxSchedulerSuspended is zero then this function does not match a
  51925. previous call to vTaskSuspendAll(). */
  51926. configASSERT( uxSchedulerSuspended );
  51927. 80159fe: 4b42 ldr r3, [pc, #264] @ (8015b08 <xTaskResumeAll+0x118>)
  51928. 8015a00: 681b ldr r3, [r3, #0]
  51929. 8015a02: 2b00 cmp r3, #0
  51930. 8015a04: d10b bne.n 8015a1e <xTaskResumeAll+0x2e>
  51931. __asm volatile
  51932. 8015a06: f04f 0350 mov.w r3, #80 @ 0x50
  51933. 8015a0a: f383 8811 msr BASEPRI, r3
  51934. 8015a0e: f3bf 8f6f isb sy
  51935. 8015a12: f3bf 8f4f dsb sy
  51936. 8015a16: 603b str r3, [r7, #0]
  51937. }
  51938. 8015a18: bf00 nop
  51939. 8015a1a: bf00 nop
  51940. 8015a1c: e7fd b.n 8015a1a <xTaskResumeAll+0x2a>
  51941. /* It is possible that an ISR caused a task to be removed from an event
  51942. list while the scheduler was suspended. If this was the case then the
  51943. removed task will have been added to the xPendingReadyList. Once the
  51944. scheduler has been resumed it is safe to move all the pending ready
  51945. tasks from this list into their appropriate ready list. */
  51946. taskENTER_CRITICAL();
  51947. 8015a1e: f001 fd9b bl 8017558 <vPortEnterCritical>
  51948. {
  51949. --uxSchedulerSuspended;
  51950. 8015a22: 4b39 ldr r3, [pc, #228] @ (8015b08 <xTaskResumeAll+0x118>)
  51951. 8015a24: 681b ldr r3, [r3, #0]
  51952. 8015a26: 3b01 subs r3, #1
  51953. 8015a28: 4a37 ldr r2, [pc, #220] @ (8015b08 <xTaskResumeAll+0x118>)
  51954. 8015a2a: 6013 str r3, [r2, #0]
  51955. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  51956. 8015a2c: 4b36 ldr r3, [pc, #216] @ (8015b08 <xTaskResumeAll+0x118>)
  51957. 8015a2e: 681b ldr r3, [r3, #0]
  51958. 8015a30: 2b00 cmp r3, #0
  51959. 8015a32: d162 bne.n 8015afa <xTaskResumeAll+0x10a>
  51960. {
  51961. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  51962. 8015a34: 4b35 ldr r3, [pc, #212] @ (8015b0c <xTaskResumeAll+0x11c>)
  51963. 8015a36: 681b ldr r3, [r3, #0]
  51964. 8015a38: 2b00 cmp r3, #0
  51965. 8015a3a: d05e beq.n 8015afa <xTaskResumeAll+0x10a>
  51966. {
  51967. /* Move any readied tasks from the pending list into the
  51968. appropriate ready list. */
  51969. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  51970. 8015a3c: e02f b.n 8015a9e <xTaskResumeAll+0xae>
  51971. {
  51972. 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. */
  51973. 8015a3e: 4b34 ldr r3, [pc, #208] @ (8015b10 <xTaskResumeAll+0x120>)
  51974. 8015a40: 68db ldr r3, [r3, #12]
  51975. 8015a42: 68db ldr r3, [r3, #12]
  51976. 8015a44: 60fb str r3, [r7, #12]
  51977. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  51978. 8015a46: 68fb ldr r3, [r7, #12]
  51979. 8015a48: 3318 adds r3, #24
  51980. 8015a4a: 4618 mov r0, r3
  51981. 8015a4c: f7fe fbde bl 801420c <uxListRemove>
  51982. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  51983. 8015a50: 68fb ldr r3, [r7, #12]
  51984. 8015a52: 3304 adds r3, #4
  51985. 8015a54: 4618 mov r0, r3
  51986. 8015a56: f7fe fbd9 bl 801420c <uxListRemove>
  51987. prvAddTaskToReadyList( pxTCB );
  51988. 8015a5a: 68fb ldr r3, [r7, #12]
  51989. 8015a5c: 6ada ldr r2, [r3, #44] @ 0x2c
  51990. 8015a5e: 4b2d ldr r3, [pc, #180] @ (8015b14 <xTaskResumeAll+0x124>)
  51991. 8015a60: 681b ldr r3, [r3, #0]
  51992. 8015a62: 429a cmp r2, r3
  51993. 8015a64: d903 bls.n 8015a6e <xTaskResumeAll+0x7e>
  51994. 8015a66: 68fb ldr r3, [r7, #12]
  51995. 8015a68: 6adb ldr r3, [r3, #44] @ 0x2c
  51996. 8015a6a: 4a2a ldr r2, [pc, #168] @ (8015b14 <xTaskResumeAll+0x124>)
  51997. 8015a6c: 6013 str r3, [r2, #0]
  51998. 8015a6e: 68fb ldr r3, [r7, #12]
  51999. 8015a70: 6ada ldr r2, [r3, #44] @ 0x2c
  52000. 8015a72: 4613 mov r3, r2
  52001. 8015a74: 009b lsls r3, r3, #2
  52002. 8015a76: 4413 add r3, r2
  52003. 8015a78: 009b lsls r3, r3, #2
  52004. 8015a7a: 4a27 ldr r2, [pc, #156] @ (8015b18 <xTaskResumeAll+0x128>)
  52005. 8015a7c: 441a add r2, r3
  52006. 8015a7e: 68fb ldr r3, [r7, #12]
  52007. 8015a80: 3304 adds r3, #4
  52008. 8015a82: 4619 mov r1, r3
  52009. 8015a84: 4610 mov r0, r2
  52010. 8015a86: f7fe fb64 bl 8014152 <vListInsertEnd>
  52011. /* If the moved task has a priority higher than the current
  52012. task then a yield must be performed. */
  52013. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52014. 8015a8a: 68fb ldr r3, [r7, #12]
  52015. 8015a8c: 6ada ldr r2, [r3, #44] @ 0x2c
  52016. 8015a8e: 4b23 ldr r3, [pc, #140] @ (8015b1c <xTaskResumeAll+0x12c>)
  52017. 8015a90: 681b ldr r3, [r3, #0]
  52018. 8015a92: 6adb ldr r3, [r3, #44] @ 0x2c
  52019. 8015a94: 429a cmp r2, r3
  52020. 8015a96: d302 bcc.n 8015a9e <xTaskResumeAll+0xae>
  52021. {
  52022. xYieldPending = pdTRUE;
  52023. 8015a98: 4b21 ldr r3, [pc, #132] @ (8015b20 <xTaskResumeAll+0x130>)
  52024. 8015a9a: 2201 movs r2, #1
  52025. 8015a9c: 601a str r2, [r3, #0]
  52026. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52027. 8015a9e: 4b1c ldr r3, [pc, #112] @ (8015b10 <xTaskResumeAll+0x120>)
  52028. 8015aa0: 681b ldr r3, [r3, #0]
  52029. 8015aa2: 2b00 cmp r3, #0
  52030. 8015aa4: d1cb bne.n 8015a3e <xTaskResumeAll+0x4e>
  52031. {
  52032. mtCOVERAGE_TEST_MARKER();
  52033. }
  52034. }
  52035. if( pxTCB != NULL )
  52036. 8015aa6: 68fb ldr r3, [r7, #12]
  52037. 8015aa8: 2b00 cmp r3, #0
  52038. 8015aaa: d001 beq.n 8015ab0 <xTaskResumeAll+0xc0>
  52039. which may have prevented the next unblock time from being
  52040. re-calculated, in which case re-calculate it now. Mainly
  52041. important for low power tickless implementations, where
  52042. this can prevent an unnecessary exit from low power
  52043. state. */
  52044. prvResetNextTaskUnblockTime();
  52045. 8015aac: f000 fb9c bl 80161e8 <prvResetNextTaskUnblockTime>
  52046. /* If any ticks occurred while the scheduler was suspended then
  52047. they should be processed now. This ensures the tick count does
  52048. not slip, and that any delayed tasks are resumed at the correct
  52049. time. */
  52050. {
  52051. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  52052. 8015ab0: 4b1c ldr r3, [pc, #112] @ (8015b24 <xTaskResumeAll+0x134>)
  52053. 8015ab2: 681b ldr r3, [r3, #0]
  52054. 8015ab4: 607b str r3, [r7, #4]
  52055. if( xPendedCounts > ( TickType_t ) 0U )
  52056. 8015ab6: 687b ldr r3, [r7, #4]
  52057. 8015ab8: 2b00 cmp r3, #0
  52058. 8015aba: d010 beq.n 8015ade <xTaskResumeAll+0xee>
  52059. {
  52060. do
  52061. {
  52062. if( xTaskIncrementTick() != pdFALSE )
  52063. 8015abc: f000 f846 bl 8015b4c <xTaskIncrementTick>
  52064. 8015ac0: 4603 mov r3, r0
  52065. 8015ac2: 2b00 cmp r3, #0
  52066. 8015ac4: d002 beq.n 8015acc <xTaskResumeAll+0xdc>
  52067. {
  52068. xYieldPending = pdTRUE;
  52069. 8015ac6: 4b16 ldr r3, [pc, #88] @ (8015b20 <xTaskResumeAll+0x130>)
  52070. 8015ac8: 2201 movs r2, #1
  52071. 8015aca: 601a str r2, [r3, #0]
  52072. }
  52073. else
  52074. {
  52075. mtCOVERAGE_TEST_MARKER();
  52076. }
  52077. --xPendedCounts;
  52078. 8015acc: 687b ldr r3, [r7, #4]
  52079. 8015ace: 3b01 subs r3, #1
  52080. 8015ad0: 607b str r3, [r7, #4]
  52081. } while( xPendedCounts > ( TickType_t ) 0U );
  52082. 8015ad2: 687b ldr r3, [r7, #4]
  52083. 8015ad4: 2b00 cmp r3, #0
  52084. 8015ad6: d1f1 bne.n 8015abc <xTaskResumeAll+0xcc>
  52085. xPendedTicks = 0;
  52086. 8015ad8: 4b12 ldr r3, [pc, #72] @ (8015b24 <xTaskResumeAll+0x134>)
  52087. 8015ada: 2200 movs r2, #0
  52088. 8015adc: 601a str r2, [r3, #0]
  52089. {
  52090. mtCOVERAGE_TEST_MARKER();
  52091. }
  52092. }
  52093. if( xYieldPending != pdFALSE )
  52094. 8015ade: 4b10 ldr r3, [pc, #64] @ (8015b20 <xTaskResumeAll+0x130>)
  52095. 8015ae0: 681b ldr r3, [r3, #0]
  52096. 8015ae2: 2b00 cmp r3, #0
  52097. 8015ae4: d009 beq.n 8015afa <xTaskResumeAll+0x10a>
  52098. {
  52099. #if( configUSE_PREEMPTION != 0 )
  52100. {
  52101. xAlreadyYielded = pdTRUE;
  52102. 8015ae6: 2301 movs r3, #1
  52103. 8015ae8: 60bb str r3, [r7, #8]
  52104. }
  52105. #endif
  52106. taskYIELD_IF_USING_PREEMPTION();
  52107. 8015aea: 4b0f ldr r3, [pc, #60] @ (8015b28 <xTaskResumeAll+0x138>)
  52108. 8015aec: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52109. 8015af0: 601a str r2, [r3, #0]
  52110. 8015af2: f3bf 8f4f dsb sy
  52111. 8015af6: f3bf 8f6f isb sy
  52112. else
  52113. {
  52114. mtCOVERAGE_TEST_MARKER();
  52115. }
  52116. }
  52117. taskEXIT_CRITICAL();
  52118. 8015afa: f001 fd5f bl 80175bc <vPortExitCritical>
  52119. return xAlreadyYielded;
  52120. 8015afe: 68bb ldr r3, [r7, #8]
  52121. }
  52122. 8015b00: 4618 mov r0, r3
  52123. 8015b02: 3710 adds r7, #16
  52124. 8015b04: 46bd mov sp, r7
  52125. 8015b06: bd80 pop {r7, pc}
  52126. 8015b08: 24002b90 .word 0x24002b90
  52127. 8015b0c: 24002b68 .word 0x24002b68
  52128. 8015b10: 24002b28 .word 0x24002b28
  52129. 8015b14: 24002b70 .word 0x24002b70
  52130. 8015b18: 24002698 .word 0x24002698
  52131. 8015b1c: 24002694 .word 0x24002694
  52132. 8015b20: 24002b7c .word 0x24002b7c
  52133. 8015b24: 24002b78 .word 0x24002b78
  52134. 8015b28: e000ed04 .word 0xe000ed04
  52135. 08015b2c <xTaskGetTickCount>:
  52136. /*-----------------------------------------------------------*/
  52137. TickType_t xTaskGetTickCount( void )
  52138. {
  52139. 8015b2c: b480 push {r7}
  52140. 8015b2e: b083 sub sp, #12
  52141. 8015b30: af00 add r7, sp, #0
  52142. TickType_t xTicks;
  52143. /* Critical section required if running on a 16 bit processor. */
  52144. portTICK_TYPE_ENTER_CRITICAL();
  52145. {
  52146. xTicks = xTickCount;
  52147. 8015b32: 4b05 ldr r3, [pc, #20] @ (8015b48 <xTaskGetTickCount+0x1c>)
  52148. 8015b34: 681b ldr r3, [r3, #0]
  52149. 8015b36: 607b str r3, [r7, #4]
  52150. }
  52151. portTICK_TYPE_EXIT_CRITICAL();
  52152. return xTicks;
  52153. 8015b38: 687b ldr r3, [r7, #4]
  52154. }
  52155. 8015b3a: 4618 mov r0, r3
  52156. 8015b3c: 370c adds r7, #12
  52157. 8015b3e: 46bd mov sp, r7
  52158. 8015b40: f85d 7b04 ldr.w r7, [sp], #4
  52159. 8015b44: 4770 bx lr
  52160. 8015b46: bf00 nop
  52161. 8015b48: 24002b6c .word 0x24002b6c
  52162. 08015b4c <xTaskIncrementTick>:
  52163. #endif /* INCLUDE_xTaskAbortDelay */
  52164. /*----------------------------------------------------------*/
  52165. BaseType_t xTaskIncrementTick( void )
  52166. {
  52167. 8015b4c: b580 push {r7, lr}
  52168. 8015b4e: b086 sub sp, #24
  52169. 8015b50: af00 add r7, sp, #0
  52170. TCB_t * pxTCB;
  52171. TickType_t xItemValue;
  52172. BaseType_t xSwitchRequired = pdFALSE;
  52173. 8015b52: 2300 movs r3, #0
  52174. 8015b54: 617b str r3, [r7, #20]
  52175. /* Called by the portable layer each time a tick interrupt occurs.
  52176. Increments the tick then checks to see if the new tick value will cause any
  52177. tasks to be unblocked. */
  52178. traceTASK_INCREMENT_TICK( xTickCount );
  52179. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52180. 8015b56: 4b4f ldr r3, [pc, #316] @ (8015c94 <xTaskIncrementTick+0x148>)
  52181. 8015b58: 681b ldr r3, [r3, #0]
  52182. 8015b5a: 2b00 cmp r3, #0
  52183. 8015b5c: f040 8090 bne.w 8015c80 <xTaskIncrementTick+0x134>
  52184. {
  52185. /* Minor optimisation. The tick count cannot change in this
  52186. block. */
  52187. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  52188. 8015b60: 4b4d ldr r3, [pc, #308] @ (8015c98 <xTaskIncrementTick+0x14c>)
  52189. 8015b62: 681b ldr r3, [r3, #0]
  52190. 8015b64: 3301 adds r3, #1
  52191. 8015b66: 613b str r3, [r7, #16]
  52192. /* Increment the RTOS tick, switching the delayed and overflowed
  52193. delayed lists if it wraps to 0. */
  52194. xTickCount = xConstTickCount;
  52195. 8015b68: 4a4b ldr r2, [pc, #300] @ (8015c98 <xTaskIncrementTick+0x14c>)
  52196. 8015b6a: 693b ldr r3, [r7, #16]
  52197. 8015b6c: 6013 str r3, [r2, #0]
  52198. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  52199. 8015b6e: 693b ldr r3, [r7, #16]
  52200. 8015b70: 2b00 cmp r3, #0
  52201. 8015b72: d121 bne.n 8015bb8 <xTaskIncrementTick+0x6c>
  52202. {
  52203. taskSWITCH_DELAYED_LISTS();
  52204. 8015b74: 4b49 ldr r3, [pc, #292] @ (8015c9c <xTaskIncrementTick+0x150>)
  52205. 8015b76: 681b ldr r3, [r3, #0]
  52206. 8015b78: 681b ldr r3, [r3, #0]
  52207. 8015b7a: 2b00 cmp r3, #0
  52208. 8015b7c: d00b beq.n 8015b96 <xTaskIncrementTick+0x4a>
  52209. __asm volatile
  52210. 8015b7e: f04f 0350 mov.w r3, #80 @ 0x50
  52211. 8015b82: f383 8811 msr BASEPRI, r3
  52212. 8015b86: f3bf 8f6f isb sy
  52213. 8015b8a: f3bf 8f4f dsb sy
  52214. 8015b8e: 603b str r3, [r7, #0]
  52215. }
  52216. 8015b90: bf00 nop
  52217. 8015b92: bf00 nop
  52218. 8015b94: e7fd b.n 8015b92 <xTaskIncrementTick+0x46>
  52219. 8015b96: 4b41 ldr r3, [pc, #260] @ (8015c9c <xTaskIncrementTick+0x150>)
  52220. 8015b98: 681b ldr r3, [r3, #0]
  52221. 8015b9a: 60fb str r3, [r7, #12]
  52222. 8015b9c: 4b40 ldr r3, [pc, #256] @ (8015ca0 <xTaskIncrementTick+0x154>)
  52223. 8015b9e: 681b ldr r3, [r3, #0]
  52224. 8015ba0: 4a3e ldr r2, [pc, #248] @ (8015c9c <xTaskIncrementTick+0x150>)
  52225. 8015ba2: 6013 str r3, [r2, #0]
  52226. 8015ba4: 4a3e ldr r2, [pc, #248] @ (8015ca0 <xTaskIncrementTick+0x154>)
  52227. 8015ba6: 68fb ldr r3, [r7, #12]
  52228. 8015ba8: 6013 str r3, [r2, #0]
  52229. 8015baa: 4b3e ldr r3, [pc, #248] @ (8015ca4 <xTaskIncrementTick+0x158>)
  52230. 8015bac: 681b ldr r3, [r3, #0]
  52231. 8015bae: 3301 adds r3, #1
  52232. 8015bb0: 4a3c ldr r2, [pc, #240] @ (8015ca4 <xTaskIncrementTick+0x158>)
  52233. 8015bb2: 6013 str r3, [r2, #0]
  52234. 8015bb4: f000 fb18 bl 80161e8 <prvResetNextTaskUnblockTime>
  52235. /* See if this tick has made a timeout expire. Tasks are stored in
  52236. the queue in the order of their wake time - meaning once one task
  52237. has been found whose block time has not expired there is no need to
  52238. look any further down the list. */
  52239. if( xConstTickCount >= xNextTaskUnblockTime )
  52240. 8015bb8: 4b3b ldr r3, [pc, #236] @ (8015ca8 <xTaskIncrementTick+0x15c>)
  52241. 8015bba: 681b ldr r3, [r3, #0]
  52242. 8015bbc: 693a ldr r2, [r7, #16]
  52243. 8015bbe: 429a cmp r2, r3
  52244. 8015bc0: d349 bcc.n 8015c56 <xTaskIncrementTick+0x10a>
  52245. {
  52246. for( ;; )
  52247. {
  52248. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  52249. 8015bc2: 4b36 ldr r3, [pc, #216] @ (8015c9c <xTaskIncrementTick+0x150>)
  52250. 8015bc4: 681b ldr r3, [r3, #0]
  52251. 8015bc6: 681b ldr r3, [r3, #0]
  52252. 8015bc8: 2b00 cmp r3, #0
  52253. 8015bca: d104 bne.n 8015bd6 <xTaskIncrementTick+0x8a>
  52254. /* The delayed list is empty. Set xNextTaskUnblockTime
  52255. to the maximum possible value so it is extremely
  52256. unlikely that the
  52257. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  52258. next time through. */
  52259. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  52260. 8015bcc: 4b36 ldr r3, [pc, #216] @ (8015ca8 <xTaskIncrementTick+0x15c>)
  52261. 8015bce: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52262. 8015bd2: 601a str r2, [r3, #0]
  52263. break;
  52264. 8015bd4: e03f b.n 8015c56 <xTaskIncrementTick+0x10a>
  52265. {
  52266. /* The delayed list is not empty, get the value of the
  52267. item at the head of the delayed list. This is the time
  52268. at which the task at the head of the delayed list must
  52269. be removed from the Blocked state. */
  52270. 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. */
  52271. 8015bd6: 4b31 ldr r3, [pc, #196] @ (8015c9c <xTaskIncrementTick+0x150>)
  52272. 8015bd8: 681b ldr r3, [r3, #0]
  52273. 8015bda: 68db ldr r3, [r3, #12]
  52274. 8015bdc: 68db ldr r3, [r3, #12]
  52275. 8015bde: 60bb str r3, [r7, #8]
  52276. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  52277. 8015be0: 68bb ldr r3, [r7, #8]
  52278. 8015be2: 685b ldr r3, [r3, #4]
  52279. 8015be4: 607b str r3, [r7, #4]
  52280. if( xConstTickCount < xItemValue )
  52281. 8015be6: 693a ldr r2, [r7, #16]
  52282. 8015be8: 687b ldr r3, [r7, #4]
  52283. 8015bea: 429a cmp r2, r3
  52284. 8015bec: d203 bcs.n 8015bf6 <xTaskIncrementTick+0xaa>
  52285. /* It is not time to unblock this item yet, but the
  52286. item value is the time at which the task at the head
  52287. of the blocked list must be removed from the Blocked
  52288. state - so record the item value in
  52289. xNextTaskUnblockTime. */
  52290. xNextTaskUnblockTime = xItemValue;
  52291. 8015bee: 4a2e ldr r2, [pc, #184] @ (8015ca8 <xTaskIncrementTick+0x15c>)
  52292. 8015bf0: 687b ldr r3, [r7, #4]
  52293. 8015bf2: 6013 str r3, [r2, #0]
  52294. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  52295. 8015bf4: e02f b.n 8015c56 <xTaskIncrementTick+0x10a>
  52296. {
  52297. mtCOVERAGE_TEST_MARKER();
  52298. }
  52299. /* It is time to remove the item from the Blocked state. */
  52300. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52301. 8015bf6: 68bb ldr r3, [r7, #8]
  52302. 8015bf8: 3304 adds r3, #4
  52303. 8015bfa: 4618 mov r0, r3
  52304. 8015bfc: f7fe fb06 bl 801420c <uxListRemove>
  52305. /* Is the task waiting on an event also? If so remove
  52306. it from the event list. */
  52307. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  52308. 8015c00: 68bb ldr r3, [r7, #8]
  52309. 8015c02: 6a9b ldr r3, [r3, #40] @ 0x28
  52310. 8015c04: 2b00 cmp r3, #0
  52311. 8015c06: d004 beq.n 8015c12 <xTaskIncrementTick+0xc6>
  52312. {
  52313. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  52314. 8015c08: 68bb ldr r3, [r7, #8]
  52315. 8015c0a: 3318 adds r3, #24
  52316. 8015c0c: 4618 mov r0, r3
  52317. 8015c0e: f7fe fafd bl 801420c <uxListRemove>
  52318. mtCOVERAGE_TEST_MARKER();
  52319. }
  52320. /* Place the unblocked task into the appropriate ready
  52321. list. */
  52322. prvAddTaskToReadyList( pxTCB );
  52323. 8015c12: 68bb ldr r3, [r7, #8]
  52324. 8015c14: 6ada ldr r2, [r3, #44] @ 0x2c
  52325. 8015c16: 4b25 ldr r3, [pc, #148] @ (8015cac <xTaskIncrementTick+0x160>)
  52326. 8015c18: 681b ldr r3, [r3, #0]
  52327. 8015c1a: 429a cmp r2, r3
  52328. 8015c1c: d903 bls.n 8015c26 <xTaskIncrementTick+0xda>
  52329. 8015c1e: 68bb ldr r3, [r7, #8]
  52330. 8015c20: 6adb ldr r3, [r3, #44] @ 0x2c
  52331. 8015c22: 4a22 ldr r2, [pc, #136] @ (8015cac <xTaskIncrementTick+0x160>)
  52332. 8015c24: 6013 str r3, [r2, #0]
  52333. 8015c26: 68bb ldr r3, [r7, #8]
  52334. 8015c28: 6ada ldr r2, [r3, #44] @ 0x2c
  52335. 8015c2a: 4613 mov r3, r2
  52336. 8015c2c: 009b lsls r3, r3, #2
  52337. 8015c2e: 4413 add r3, r2
  52338. 8015c30: 009b lsls r3, r3, #2
  52339. 8015c32: 4a1f ldr r2, [pc, #124] @ (8015cb0 <xTaskIncrementTick+0x164>)
  52340. 8015c34: 441a add r2, r3
  52341. 8015c36: 68bb ldr r3, [r7, #8]
  52342. 8015c38: 3304 adds r3, #4
  52343. 8015c3a: 4619 mov r1, r3
  52344. 8015c3c: 4610 mov r0, r2
  52345. 8015c3e: f7fe fa88 bl 8014152 <vListInsertEnd>
  52346. {
  52347. /* Preemption is on, but a context switch should
  52348. only be performed if the unblocked task has a
  52349. priority that is equal to or higher than the
  52350. currently executing task. */
  52351. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52352. 8015c42: 68bb ldr r3, [r7, #8]
  52353. 8015c44: 6ada ldr r2, [r3, #44] @ 0x2c
  52354. 8015c46: 4b1b ldr r3, [pc, #108] @ (8015cb4 <xTaskIncrementTick+0x168>)
  52355. 8015c48: 681b ldr r3, [r3, #0]
  52356. 8015c4a: 6adb ldr r3, [r3, #44] @ 0x2c
  52357. 8015c4c: 429a cmp r2, r3
  52358. 8015c4e: d3b8 bcc.n 8015bc2 <xTaskIncrementTick+0x76>
  52359. {
  52360. xSwitchRequired = pdTRUE;
  52361. 8015c50: 2301 movs r3, #1
  52362. 8015c52: 617b str r3, [r7, #20]
  52363. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  52364. 8015c54: e7b5 b.n 8015bc2 <xTaskIncrementTick+0x76>
  52365. /* Tasks of equal priority to the currently running task will share
  52366. processing time (time slice) if preemption is on, and the application
  52367. writer has not explicitly turned time slicing off. */
  52368. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  52369. {
  52370. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  52371. 8015c56: 4b17 ldr r3, [pc, #92] @ (8015cb4 <xTaskIncrementTick+0x168>)
  52372. 8015c58: 681b ldr r3, [r3, #0]
  52373. 8015c5a: 6ada ldr r2, [r3, #44] @ 0x2c
  52374. 8015c5c: 4914 ldr r1, [pc, #80] @ (8015cb0 <xTaskIncrementTick+0x164>)
  52375. 8015c5e: 4613 mov r3, r2
  52376. 8015c60: 009b lsls r3, r3, #2
  52377. 8015c62: 4413 add r3, r2
  52378. 8015c64: 009b lsls r3, r3, #2
  52379. 8015c66: 440b add r3, r1
  52380. 8015c68: 681b ldr r3, [r3, #0]
  52381. 8015c6a: 2b01 cmp r3, #1
  52382. 8015c6c: d901 bls.n 8015c72 <xTaskIncrementTick+0x126>
  52383. {
  52384. xSwitchRequired = pdTRUE;
  52385. 8015c6e: 2301 movs r3, #1
  52386. 8015c70: 617b str r3, [r7, #20]
  52387. }
  52388. #endif /* configUSE_TICK_HOOK */
  52389. #if ( configUSE_PREEMPTION == 1 )
  52390. {
  52391. if( xYieldPending != pdFALSE )
  52392. 8015c72: 4b11 ldr r3, [pc, #68] @ (8015cb8 <xTaskIncrementTick+0x16c>)
  52393. 8015c74: 681b ldr r3, [r3, #0]
  52394. 8015c76: 2b00 cmp r3, #0
  52395. 8015c78: d007 beq.n 8015c8a <xTaskIncrementTick+0x13e>
  52396. {
  52397. xSwitchRequired = pdTRUE;
  52398. 8015c7a: 2301 movs r3, #1
  52399. 8015c7c: 617b str r3, [r7, #20]
  52400. 8015c7e: e004 b.n 8015c8a <xTaskIncrementTick+0x13e>
  52401. }
  52402. #endif /* configUSE_PREEMPTION */
  52403. }
  52404. else
  52405. {
  52406. ++xPendedTicks;
  52407. 8015c80: 4b0e ldr r3, [pc, #56] @ (8015cbc <xTaskIncrementTick+0x170>)
  52408. 8015c82: 681b ldr r3, [r3, #0]
  52409. 8015c84: 3301 adds r3, #1
  52410. 8015c86: 4a0d ldr r2, [pc, #52] @ (8015cbc <xTaskIncrementTick+0x170>)
  52411. 8015c88: 6013 str r3, [r2, #0]
  52412. vApplicationTickHook();
  52413. }
  52414. #endif
  52415. }
  52416. return xSwitchRequired;
  52417. 8015c8a: 697b ldr r3, [r7, #20]
  52418. }
  52419. 8015c8c: 4618 mov r0, r3
  52420. 8015c8e: 3718 adds r7, #24
  52421. 8015c90: 46bd mov sp, r7
  52422. 8015c92: bd80 pop {r7, pc}
  52423. 8015c94: 24002b90 .word 0x24002b90
  52424. 8015c98: 24002b6c .word 0x24002b6c
  52425. 8015c9c: 24002b20 .word 0x24002b20
  52426. 8015ca0: 24002b24 .word 0x24002b24
  52427. 8015ca4: 24002b80 .word 0x24002b80
  52428. 8015ca8: 24002b88 .word 0x24002b88
  52429. 8015cac: 24002b70 .word 0x24002b70
  52430. 8015cb0: 24002698 .word 0x24002698
  52431. 8015cb4: 24002694 .word 0x24002694
  52432. 8015cb8: 24002b7c .word 0x24002b7c
  52433. 8015cbc: 24002b78 .word 0x24002b78
  52434. 08015cc0 <vTaskSwitchContext>:
  52435. #endif /* configUSE_APPLICATION_TASK_TAG */
  52436. /*-----------------------------------------------------------*/
  52437. void vTaskSwitchContext( void )
  52438. {
  52439. 8015cc0: b580 push {r7, lr}
  52440. 8015cc2: b084 sub sp, #16
  52441. 8015cc4: af00 add r7, sp, #0
  52442. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  52443. 8015cc6: 4b32 ldr r3, [pc, #200] @ (8015d90 <vTaskSwitchContext+0xd0>)
  52444. 8015cc8: 681b ldr r3, [r3, #0]
  52445. 8015cca: 2b00 cmp r3, #0
  52446. 8015ccc: d003 beq.n 8015cd6 <vTaskSwitchContext+0x16>
  52447. {
  52448. /* The scheduler is currently suspended - do not allow a context
  52449. switch. */
  52450. xYieldPending = pdTRUE;
  52451. 8015cce: 4b31 ldr r3, [pc, #196] @ (8015d94 <vTaskSwitchContext+0xd4>)
  52452. 8015cd0: 2201 movs r2, #1
  52453. 8015cd2: 601a str r2, [r3, #0]
  52454. for additional information. */
  52455. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52456. }
  52457. #endif /* configUSE_NEWLIB_REENTRANT */
  52458. }
  52459. }
  52460. 8015cd4: e058 b.n 8015d88 <vTaskSwitchContext+0xc8>
  52461. xYieldPending = pdFALSE;
  52462. 8015cd6: 4b2f ldr r3, [pc, #188] @ (8015d94 <vTaskSwitchContext+0xd4>)
  52463. 8015cd8: 2200 movs r2, #0
  52464. 8015cda: 601a str r2, [r3, #0]
  52465. taskCHECK_FOR_STACK_OVERFLOW();
  52466. 8015cdc: 4b2e ldr r3, [pc, #184] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52467. 8015cde: 681b ldr r3, [r3, #0]
  52468. 8015ce0: 681a ldr r2, [r3, #0]
  52469. 8015ce2: 4b2d ldr r3, [pc, #180] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52470. 8015ce4: 681b ldr r3, [r3, #0]
  52471. 8015ce6: 6b1b ldr r3, [r3, #48] @ 0x30
  52472. 8015ce8: 429a cmp r2, r3
  52473. 8015cea: d808 bhi.n 8015cfe <vTaskSwitchContext+0x3e>
  52474. 8015cec: 4b2a ldr r3, [pc, #168] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52475. 8015cee: 681a ldr r2, [r3, #0]
  52476. 8015cf0: 4b29 ldr r3, [pc, #164] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52477. 8015cf2: 681b ldr r3, [r3, #0]
  52478. 8015cf4: 3334 adds r3, #52 @ 0x34
  52479. 8015cf6: 4619 mov r1, r3
  52480. 8015cf8: 4610 mov r0, r2
  52481. 8015cfa: f7ea fcb9 bl 8000670 <vApplicationStackOverflowHook>
  52482. 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. */
  52483. 8015cfe: 4b27 ldr r3, [pc, #156] @ (8015d9c <vTaskSwitchContext+0xdc>)
  52484. 8015d00: 681b ldr r3, [r3, #0]
  52485. 8015d02: 60fb str r3, [r7, #12]
  52486. 8015d04: e011 b.n 8015d2a <vTaskSwitchContext+0x6a>
  52487. 8015d06: 68fb ldr r3, [r7, #12]
  52488. 8015d08: 2b00 cmp r3, #0
  52489. 8015d0a: d10b bne.n 8015d24 <vTaskSwitchContext+0x64>
  52490. __asm volatile
  52491. 8015d0c: f04f 0350 mov.w r3, #80 @ 0x50
  52492. 8015d10: f383 8811 msr BASEPRI, r3
  52493. 8015d14: f3bf 8f6f isb sy
  52494. 8015d18: f3bf 8f4f dsb sy
  52495. 8015d1c: 607b str r3, [r7, #4]
  52496. }
  52497. 8015d1e: bf00 nop
  52498. 8015d20: bf00 nop
  52499. 8015d22: e7fd b.n 8015d20 <vTaskSwitchContext+0x60>
  52500. 8015d24: 68fb ldr r3, [r7, #12]
  52501. 8015d26: 3b01 subs r3, #1
  52502. 8015d28: 60fb str r3, [r7, #12]
  52503. 8015d2a: 491d ldr r1, [pc, #116] @ (8015da0 <vTaskSwitchContext+0xe0>)
  52504. 8015d2c: 68fa ldr r2, [r7, #12]
  52505. 8015d2e: 4613 mov r3, r2
  52506. 8015d30: 009b lsls r3, r3, #2
  52507. 8015d32: 4413 add r3, r2
  52508. 8015d34: 009b lsls r3, r3, #2
  52509. 8015d36: 440b add r3, r1
  52510. 8015d38: 681b ldr r3, [r3, #0]
  52511. 8015d3a: 2b00 cmp r3, #0
  52512. 8015d3c: d0e3 beq.n 8015d06 <vTaskSwitchContext+0x46>
  52513. 8015d3e: 68fa ldr r2, [r7, #12]
  52514. 8015d40: 4613 mov r3, r2
  52515. 8015d42: 009b lsls r3, r3, #2
  52516. 8015d44: 4413 add r3, r2
  52517. 8015d46: 009b lsls r3, r3, #2
  52518. 8015d48: 4a15 ldr r2, [pc, #84] @ (8015da0 <vTaskSwitchContext+0xe0>)
  52519. 8015d4a: 4413 add r3, r2
  52520. 8015d4c: 60bb str r3, [r7, #8]
  52521. 8015d4e: 68bb ldr r3, [r7, #8]
  52522. 8015d50: 685b ldr r3, [r3, #4]
  52523. 8015d52: 685a ldr r2, [r3, #4]
  52524. 8015d54: 68bb ldr r3, [r7, #8]
  52525. 8015d56: 605a str r2, [r3, #4]
  52526. 8015d58: 68bb ldr r3, [r7, #8]
  52527. 8015d5a: 685a ldr r2, [r3, #4]
  52528. 8015d5c: 68bb ldr r3, [r7, #8]
  52529. 8015d5e: 3308 adds r3, #8
  52530. 8015d60: 429a cmp r2, r3
  52531. 8015d62: d104 bne.n 8015d6e <vTaskSwitchContext+0xae>
  52532. 8015d64: 68bb ldr r3, [r7, #8]
  52533. 8015d66: 685b ldr r3, [r3, #4]
  52534. 8015d68: 685a ldr r2, [r3, #4]
  52535. 8015d6a: 68bb ldr r3, [r7, #8]
  52536. 8015d6c: 605a str r2, [r3, #4]
  52537. 8015d6e: 68bb ldr r3, [r7, #8]
  52538. 8015d70: 685b ldr r3, [r3, #4]
  52539. 8015d72: 68db ldr r3, [r3, #12]
  52540. 8015d74: 4a08 ldr r2, [pc, #32] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52541. 8015d76: 6013 str r3, [r2, #0]
  52542. 8015d78: 4a08 ldr r2, [pc, #32] @ (8015d9c <vTaskSwitchContext+0xdc>)
  52543. 8015d7a: 68fb ldr r3, [r7, #12]
  52544. 8015d7c: 6013 str r3, [r2, #0]
  52545. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52546. 8015d7e: 4b06 ldr r3, [pc, #24] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52547. 8015d80: 681b ldr r3, [r3, #0]
  52548. 8015d82: 3354 adds r3, #84 @ 0x54
  52549. 8015d84: 4a07 ldr r2, [pc, #28] @ (8015da4 <vTaskSwitchContext+0xe4>)
  52550. 8015d86: 6013 str r3, [r2, #0]
  52551. }
  52552. 8015d88: bf00 nop
  52553. 8015d8a: 3710 adds r7, #16
  52554. 8015d8c: 46bd mov sp, r7
  52555. 8015d8e: bd80 pop {r7, pc}
  52556. 8015d90: 24002b90 .word 0x24002b90
  52557. 8015d94: 24002b7c .word 0x24002b7c
  52558. 8015d98: 24002694 .word 0x24002694
  52559. 8015d9c: 24002b70 .word 0x24002b70
  52560. 8015da0: 24002698 .word 0x24002698
  52561. 8015da4: 24000054 .word 0x24000054
  52562. 08015da8 <vTaskPlaceOnEventList>:
  52563. /*-----------------------------------------------------------*/
  52564. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  52565. {
  52566. 8015da8: b580 push {r7, lr}
  52567. 8015daa: b084 sub sp, #16
  52568. 8015dac: af00 add r7, sp, #0
  52569. 8015dae: 6078 str r0, [r7, #4]
  52570. 8015db0: 6039 str r1, [r7, #0]
  52571. configASSERT( pxEventList );
  52572. 8015db2: 687b ldr r3, [r7, #4]
  52573. 8015db4: 2b00 cmp r3, #0
  52574. 8015db6: d10b bne.n 8015dd0 <vTaskPlaceOnEventList+0x28>
  52575. __asm volatile
  52576. 8015db8: f04f 0350 mov.w r3, #80 @ 0x50
  52577. 8015dbc: f383 8811 msr BASEPRI, r3
  52578. 8015dc0: f3bf 8f6f isb sy
  52579. 8015dc4: f3bf 8f4f dsb sy
  52580. 8015dc8: 60fb str r3, [r7, #12]
  52581. }
  52582. 8015dca: bf00 nop
  52583. 8015dcc: bf00 nop
  52584. 8015dce: e7fd b.n 8015dcc <vTaskPlaceOnEventList+0x24>
  52585. /* Place the event list item of the TCB in the appropriate event list.
  52586. This is placed in the list in priority order so the highest priority task
  52587. is the first to be woken by the event. The queue that contains the event
  52588. list is locked, preventing simultaneous access from interrupts. */
  52589. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  52590. 8015dd0: 4b07 ldr r3, [pc, #28] @ (8015df0 <vTaskPlaceOnEventList+0x48>)
  52591. 8015dd2: 681b ldr r3, [r3, #0]
  52592. 8015dd4: 3318 adds r3, #24
  52593. 8015dd6: 4619 mov r1, r3
  52594. 8015dd8: 6878 ldr r0, [r7, #4]
  52595. 8015dda: f7fe f9de bl 801419a <vListInsert>
  52596. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  52597. 8015dde: 2101 movs r1, #1
  52598. 8015de0: 6838 ldr r0, [r7, #0]
  52599. 8015de2: f000 fded bl 80169c0 <prvAddCurrentTaskToDelayedList>
  52600. }
  52601. 8015de6: bf00 nop
  52602. 8015de8: 3710 adds r7, #16
  52603. 8015dea: 46bd mov sp, r7
  52604. 8015dec: bd80 pop {r7, pc}
  52605. 8015dee: bf00 nop
  52606. 8015df0: 24002694 .word 0x24002694
  52607. 08015df4 <vTaskPlaceOnEventListRestricted>:
  52608. /*-----------------------------------------------------------*/
  52609. #if( configUSE_TIMERS == 1 )
  52610. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  52611. {
  52612. 8015df4: b580 push {r7, lr}
  52613. 8015df6: b086 sub sp, #24
  52614. 8015df8: af00 add r7, sp, #0
  52615. 8015dfa: 60f8 str r0, [r7, #12]
  52616. 8015dfc: 60b9 str r1, [r7, #8]
  52617. 8015dfe: 607a str r2, [r7, #4]
  52618. configASSERT( pxEventList );
  52619. 8015e00: 68fb ldr r3, [r7, #12]
  52620. 8015e02: 2b00 cmp r3, #0
  52621. 8015e04: d10b bne.n 8015e1e <vTaskPlaceOnEventListRestricted+0x2a>
  52622. __asm volatile
  52623. 8015e06: f04f 0350 mov.w r3, #80 @ 0x50
  52624. 8015e0a: f383 8811 msr BASEPRI, r3
  52625. 8015e0e: f3bf 8f6f isb sy
  52626. 8015e12: f3bf 8f4f dsb sy
  52627. 8015e16: 617b str r3, [r7, #20]
  52628. }
  52629. 8015e18: bf00 nop
  52630. 8015e1a: bf00 nop
  52631. 8015e1c: e7fd b.n 8015e1a <vTaskPlaceOnEventListRestricted+0x26>
  52632. /* Place the event list item of the TCB in the appropriate event list.
  52633. In this case it is assume that this is the only task that is going to
  52634. be waiting on this event list, so the faster vListInsertEnd() function
  52635. can be used in place of vListInsert. */
  52636. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  52637. 8015e1e: 4b0a ldr r3, [pc, #40] @ (8015e48 <vTaskPlaceOnEventListRestricted+0x54>)
  52638. 8015e20: 681b ldr r3, [r3, #0]
  52639. 8015e22: 3318 adds r3, #24
  52640. 8015e24: 4619 mov r1, r3
  52641. 8015e26: 68f8 ldr r0, [r7, #12]
  52642. 8015e28: f7fe f993 bl 8014152 <vListInsertEnd>
  52643. /* If the task should block indefinitely then set the block time to a
  52644. value that will be recognised as an indefinite delay inside the
  52645. prvAddCurrentTaskToDelayedList() function. */
  52646. if( xWaitIndefinitely != pdFALSE )
  52647. 8015e2c: 687b ldr r3, [r7, #4]
  52648. 8015e2e: 2b00 cmp r3, #0
  52649. 8015e30: d002 beq.n 8015e38 <vTaskPlaceOnEventListRestricted+0x44>
  52650. {
  52651. xTicksToWait = portMAX_DELAY;
  52652. 8015e32: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52653. 8015e36: 60bb str r3, [r7, #8]
  52654. }
  52655. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  52656. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  52657. 8015e38: 6879 ldr r1, [r7, #4]
  52658. 8015e3a: 68b8 ldr r0, [r7, #8]
  52659. 8015e3c: f000 fdc0 bl 80169c0 <prvAddCurrentTaskToDelayedList>
  52660. }
  52661. 8015e40: bf00 nop
  52662. 8015e42: 3718 adds r7, #24
  52663. 8015e44: 46bd mov sp, r7
  52664. 8015e46: bd80 pop {r7, pc}
  52665. 8015e48: 24002694 .word 0x24002694
  52666. 08015e4c <xTaskRemoveFromEventList>:
  52667. #endif /* configUSE_TIMERS */
  52668. /*-----------------------------------------------------------*/
  52669. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  52670. {
  52671. 8015e4c: b580 push {r7, lr}
  52672. 8015e4e: b086 sub sp, #24
  52673. 8015e50: af00 add r7, sp, #0
  52674. 8015e52: 6078 str r0, [r7, #4]
  52675. get called - the lock count on the queue will get modified instead. This
  52676. means exclusive access to the event list is guaranteed here.
  52677. This function assumes that a check has already been made to ensure that
  52678. pxEventList is not empty. */
  52679. 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. */
  52680. 8015e54: 687b ldr r3, [r7, #4]
  52681. 8015e56: 68db ldr r3, [r3, #12]
  52682. 8015e58: 68db ldr r3, [r3, #12]
  52683. 8015e5a: 613b str r3, [r7, #16]
  52684. configASSERT( pxUnblockedTCB );
  52685. 8015e5c: 693b ldr r3, [r7, #16]
  52686. 8015e5e: 2b00 cmp r3, #0
  52687. 8015e60: d10b bne.n 8015e7a <xTaskRemoveFromEventList+0x2e>
  52688. __asm volatile
  52689. 8015e62: f04f 0350 mov.w r3, #80 @ 0x50
  52690. 8015e66: f383 8811 msr BASEPRI, r3
  52691. 8015e6a: f3bf 8f6f isb sy
  52692. 8015e6e: f3bf 8f4f dsb sy
  52693. 8015e72: 60fb str r3, [r7, #12]
  52694. }
  52695. 8015e74: bf00 nop
  52696. 8015e76: bf00 nop
  52697. 8015e78: e7fd b.n 8015e76 <xTaskRemoveFromEventList+0x2a>
  52698. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  52699. 8015e7a: 693b ldr r3, [r7, #16]
  52700. 8015e7c: 3318 adds r3, #24
  52701. 8015e7e: 4618 mov r0, r3
  52702. 8015e80: f7fe f9c4 bl 801420c <uxListRemove>
  52703. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52704. 8015e84: 4b1d ldr r3, [pc, #116] @ (8015efc <xTaskRemoveFromEventList+0xb0>)
  52705. 8015e86: 681b ldr r3, [r3, #0]
  52706. 8015e88: 2b00 cmp r3, #0
  52707. 8015e8a: d11d bne.n 8015ec8 <xTaskRemoveFromEventList+0x7c>
  52708. {
  52709. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  52710. 8015e8c: 693b ldr r3, [r7, #16]
  52711. 8015e8e: 3304 adds r3, #4
  52712. 8015e90: 4618 mov r0, r3
  52713. 8015e92: f7fe f9bb bl 801420c <uxListRemove>
  52714. prvAddTaskToReadyList( pxUnblockedTCB );
  52715. 8015e96: 693b ldr r3, [r7, #16]
  52716. 8015e98: 6ada ldr r2, [r3, #44] @ 0x2c
  52717. 8015e9a: 4b19 ldr r3, [pc, #100] @ (8015f00 <xTaskRemoveFromEventList+0xb4>)
  52718. 8015e9c: 681b ldr r3, [r3, #0]
  52719. 8015e9e: 429a cmp r2, r3
  52720. 8015ea0: d903 bls.n 8015eaa <xTaskRemoveFromEventList+0x5e>
  52721. 8015ea2: 693b ldr r3, [r7, #16]
  52722. 8015ea4: 6adb ldr r3, [r3, #44] @ 0x2c
  52723. 8015ea6: 4a16 ldr r2, [pc, #88] @ (8015f00 <xTaskRemoveFromEventList+0xb4>)
  52724. 8015ea8: 6013 str r3, [r2, #0]
  52725. 8015eaa: 693b ldr r3, [r7, #16]
  52726. 8015eac: 6ada ldr r2, [r3, #44] @ 0x2c
  52727. 8015eae: 4613 mov r3, r2
  52728. 8015eb0: 009b lsls r3, r3, #2
  52729. 8015eb2: 4413 add r3, r2
  52730. 8015eb4: 009b lsls r3, r3, #2
  52731. 8015eb6: 4a13 ldr r2, [pc, #76] @ (8015f04 <xTaskRemoveFromEventList+0xb8>)
  52732. 8015eb8: 441a add r2, r3
  52733. 8015eba: 693b ldr r3, [r7, #16]
  52734. 8015ebc: 3304 adds r3, #4
  52735. 8015ebe: 4619 mov r1, r3
  52736. 8015ec0: 4610 mov r0, r2
  52737. 8015ec2: f7fe f946 bl 8014152 <vListInsertEnd>
  52738. 8015ec6: e005 b.n 8015ed4 <xTaskRemoveFromEventList+0x88>
  52739. }
  52740. else
  52741. {
  52742. /* The delayed and ready lists cannot be accessed, so hold this task
  52743. pending until the scheduler is resumed. */
  52744. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  52745. 8015ec8: 693b ldr r3, [r7, #16]
  52746. 8015eca: 3318 adds r3, #24
  52747. 8015ecc: 4619 mov r1, r3
  52748. 8015ece: 480e ldr r0, [pc, #56] @ (8015f08 <xTaskRemoveFromEventList+0xbc>)
  52749. 8015ed0: f7fe f93f bl 8014152 <vListInsertEnd>
  52750. }
  52751. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  52752. 8015ed4: 693b ldr r3, [r7, #16]
  52753. 8015ed6: 6ada ldr r2, [r3, #44] @ 0x2c
  52754. 8015ed8: 4b0c ldr r3, [pc, #48] @ (8015f0c <xTaskRemoveFromEventList+0xc0>)
  52755. 8015eda: 681b ldr r3, [r3, #0]
  52756. 8015edc: 6adb ldr r3, [r3, #44] @ 0x2c
  52757. 8015ede: 429a cmp r2, r3
  52758. 8015ee0: d905 bls.n 8015eee <xTaskRemoveFromEventList+0xa2>
  52759. {
  52760. /* Return true if the task removed from the event list has a higher
  52761. priority than the calling task. This allows the calling task to know if
  52762. it should force a context switch now. */
  52763. xReturn = pdTRUE;
  52764. 8015ee2: 2301 movs r3, #1
  52765. 8015ee4: 617b str r3, [r7, #20]
  52766. /* Mark that a yield is pending in case the user is not using the
  52767. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  52768. xYieldPending = pdTRUE;
  52769. 8015ee6: 4b0a ldr r3, [pc, #40] @ (8015f10 <xTaskRemoveFromEventList+0xc4>)
  52770. 8015ee8: 2201 movs r2, #1
  52771. 8015eea: 601a str r2, [r3, #0]
  52772. 8015eec: e001 b.n 8015ef2 <xTaskRemoveFromEventList+0xa6>
  52773. }
  52774. else
  52775. {
  52776. xReturn = pdFALSE;
  52777. 8015eee: 2300 movs r3, #0
  52778. 8015ef0: 617b str r3, [r7, #20]
  52779. }
  52780. return xReturn;
  52781. 8015ef2: 697b ldr r3, [r7, #20]
  52782. }
  52783. 8015ef4: 4618 mov r0, r3
  52784. 8015ef6: 3718 adds r7, #24
  52785. 8015ef8: 46bd mov sp, r7
  52786. 8015efa: bd80 pop {r7, pc}
  52787. 8015efc: 24002b90 .word 0x24002b90
  52788. 8015f00: 24002b70 .word 0x24002b70
  52789. 8015f04: 24002698 .word 0x24002698
  52790. 8015f08: 24002b28 .word 0x24002b28
  52791. 8015f0c: 24002694 .word 0x24002694
  52792. 8015f10: 24002b7c .word 0x24002b7c
  52793. 08015f14 <vTaskSetTimeOutState>:
  52794. }
  52795. }
  52796. /*-----------------------------------------------------------*/
  52797. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  52798. {
  52799. 8015f14: b580 push {r7, lr}
  52800. 8015f16: b084 sub sp, #16
  52801. 8015f18: af00 add r7, sp, #0
  52802. 8015f1a: 6078 str r0, [r7, #4]
  52803. configASSERT( pxTimeOut );
  52804. 8015f1c: 687b ldr r3, [r7, #4]
  52805. 8015f1e: 2b00 cmp r3, #0
  52806. 8015f20: d10b bne.n 8015f3a <vTaskSetTimeOutState+0x26>
  52807. __asm volatile
  52808. 8015f22: f04f 0350 mov.w r3, #80 @ 0x50
  52809. 8015f26: f383 8811 msr BASEPRI, r3
  52810. 8015f2a: f3bf 8f6f isb sy
  52811. 8015f2e: f3bf 8f4f dsb sy
  52812. 8015f32: 60fb str r3, [r7, #12]
  52813. }
  52814. 8015f34: bf00 nop
  52815. 8015f36: bf00 nop
  52816. 8015f38: e7fd b.n 8015f36 <vTaskSetTimeOutState+0x22>
  52817. taskENTER_CRITICAL();
  52818. 8015f3a: f001 fb0d bl 8017558 <vPortEnterCritical>
  52819. {
  52820. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52821. 8015f3e: 4b07 ldr r3, [pc, #28] @ (8015f5c <vTaskSetTimeOutState+0x48>)
  52822. 8015f40: 681a ldr r2, [r3, #0]
  52823. 8015f42: 687b ldr r3, [r7, #4]
  52824. 8015f44: 601a str r2, [r3, #0]
  52825. pxTimeOut->xTimeOnEntering = xTickCount;
  52826. 8015f46: 4b06 ldr r3, [pc, #24] @ (8015f60 <vTaskSetTimeOutState+0x4c>)
  52827. 8015f48: 681a ldr r2, [r3, #0]
  52828. 8015f4a: 687b ldr r3, [r7, #4]
  52829. 8015f4c: 605a str r2, [r3, #4]
  52830. }
  52831. taskEXIT_CRITICAL();
  52832. 8015f4e: f001 fb35 bl 80175bc <vPortExitCritical>
  52833. }
  52834. 8015f52: bf00 nop
  52835. 8015f54: 3710 adds r7, #16
  52836. 8015f56: 46bd mov sp, r7
  52837. 8015f58: bd80 pop {r7, pc}
  52838. 8015f5a: bf00 nop
  52839. 8015f5c: 24002b80 .word 0x24002b80
  52840. 8015f60: 24002b6c .word 0x24002b6c
  52841. 08015f64 <vTaskInternalSetTimeOutState>:
  52842. /*-----------------------------------------------------------*/
  52843. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  52844. {
  52845. 8015f64: b480 push {r7}
  52846. 8015f66: b083 sub sp, #12
  52847. 8015f68: af00 add r7, sp, #0
  52848. 8015f6a: 6078 str r0, [r7, #4]
  52849. /* For internal use only as it does not use a critical section. */
  52850. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52851. 8015f6c: 4b06 ldr r3, [pc, #24] @ (8015f88 <vTaskInternalSetTimeOutState+0x24>)
  52852. 8015f6e: 681a ldr r2, [r3, #0]
  52853. 8015f70: 687b ldr r3, [r7, #4]
  52854. 8015f72: 601a str r2, [r3, #0]
  52855. pxTimeOut->xTimeOnEntering = xTickCount;
  52856. 8015f74: 4b05 ldr r3, [pc, #20] @ (8015f8c <vTaskInternalSetTimeOutState+0x28>)
  52857. 8015f76: 681a ldr r2, [r3, #0]
  52858. 8015f78: 687b ldr r3, [r7, #4]
  52859. 8015f7a: 605a str r2, [r3, #4]
  52860. }
  52861. 8015f7c: bf00 nop
  52862. 8015f7e: 370c adds r7, #12
  52863. 8015f80: 46bd mov sp, r7
  52864. 8015f82: f85d 7b04 ldr.w r7, [sp], #4
  52865. 8015f86: 4770 bx lr
  52866. 8015f88: 24002b80 .word 0x24002b80
  52867. 8015f8c: 24002b6c .word 0x24002b6c
  52868. 08015f90 <xTaskCheckForTimeOut>:
  52869. /*-----------------------------------------------------------*/
  52870. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  52871. {
  52872. 8015f90: b580 push {r7, lr}
  52873. 8015f92: b088 sub sp, #32
  52874. 8015f94: af00 add r7, sp, #0
  52875. 8015f96: 6078 str r0, [r7, #4]
  52876. 8015f98: 6039 str r1, [r7, #0]
  52877. BaseType_t xReturn;
  52878. configASSERT( pxTimeOut );
  52879. 8015f9a: 687b ldr r3, [r7, #4]
  52880. 8015f9c: 2b00 cmp r3, #0
  52881. 8015f9e: d10b bne.n 8015fb8 <xTaskCheckForTimeOut+0x28>
  52882. __asm volatile
  52883. 8015fa0: f04f 0350 mov.w r3, #80 @ 0x50
  52884. 8015fa4: f383 8811 msr BASEPRI, r3
  52885. 8015fa8: f3bf 8f6f isb sy
  52886. 8015fac: f3bf 8f4f dsb sy
  52887. 8015fb0: 613b str r3, [r7, #16]
  52888. }
  52889. 8015fb2: bf00 nop
  52890. 8015fb4: bf00 nop
  52891. 8015fb6: e7fd b.n 8015fb4 <xTaskCheckForTimeOut+0x24>
  52892. configASSERT( pxTicksToWait );
  52893. 8015fb8: 683b ldr r3, [r7, #0]
  52894. 8015fba: 2b00 cmp r3, #0
  52895. 8015fbc: d10b bne.n 8015fd6 <xTaskCheckForTimeOut+0x46>
  52896. __asm volatile
  52897. 8015fbe: f04f 0350 mov.w r3, #80 @ 0x50
  52898. 8015fc2: f383 8811 msr BASEPRI, r3
  52899. 8015fc6: f3bf 8f6f isb sy
  52900. 8015fca: f3bf 8f4f dsb sy
  52901. 8015fce: 60fb str r3, [r7, #12]
  52902. }
  52903. 8015fd0: bf00 nop
  52904. 8015fd2: bf00 nop
  52905. 8015fd4: e7fd b.n 8015fd2 <xTaskCheckForTimeOut+0x42>
  52906. taskENTER_CRITICAL();
  52907. 8015fd6: f001 fabf bl 8017558 <vPortEnterCritical>
  52908. {
  52909. /* Minor optimisation. The tick count cannot change in this block. */
  52910. const TickType_t xConstTickCount = xTickCount;
  52911. 8015fda: 4b1d ldr r3, [pc, #116] @ (8016050 <xTaskCheckForTimeOut+0xc0>)
  52912. 8015fdc: 681b ldr r3, [r3, #0]
  52913. 8015fde: 61bb str r3, [r7, #24]
  52914. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  52915. 8015fe0: 687b ldr r3, [r7, #4]
  52916. 8015fe2: 685b ldr r3, [r3, #4]
  52917. 8015fe4: 69ba ldr r2, [r7, #24]
  52918. 8015fe6: 1ad3 subs r3, r2, r3
  52919. 8015fe8: 617b str r3, [r7, #20]
  52920. }
  52921. else
  52922. #endif
  52923. #if ( INCLUDE_vTaskSuspend == 1 )
  52924. if( *pxTicksToWait == portMAX_DELAY )
  52925. 8015fea: 683b ldr r3, [r7, #0]
  52926. 8015fec: 681b ldr r3, [r3, #0]
  52927. 8015fee: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52928. 8015ff2: d102 bne.n 8015ffa <xTaskCheckForTimeOut+0x6a>
  52929. {
  52930. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  52931. specified is the maximum block time then the task should block
  52932. indefinitely, and therefore never time out. */
  52933. xReturn = pdFALSE;
  52934. 8015ff4: 2300 movs r3, #0
  52935. 8015ff6: 61fb str r3, [r7, #28]
  52936. 8015ff8: e023 b.n 8016042 <xTaskCheckForTimeOut+0xb2>
  52937. }
  52938. else
  52939. #endif
  52940. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  52941. 8015ffa: 687b ldr r3, [r7, #4]
  52942. 8015ffc: 681a ldr r2, [r3, #0]
  52943. 8015ffe: 4b15 ldr r3, [pc, #84] @ (8016054 <xTaskCheckForTimeOut+0xc4>)
  52944. 8016000: 681b ldr r3, [r3, #0]
  52945. 8016002: 429a cmp r2, r3
  52946. 8016004: d007 beq.n 8016016 <xTaskCheckForTimeOut+0x86>
  52947. 8016006: 687b ldr r3, [r7, #4]
  52948. 8016008: 685b ldr r3, [r3, #4]
  52949. 801600a: 69ba ldr r2, [r7, #24]
  52950. 801600c: 429a cmp r2, r3
  52951. 801600e: d302 bcc.n 8016016 <xTaskCheckForTimeOut+0x86>
  52952. /* The tick count is greater than the time at which
  52953. vTaskSetTimeout() was called, but has also overflowed since
  52954. vTaskSetTimeOut() was called. It must have wrapped all the way
  52955. around and gone past again. This passed since vTaskSetTimeout()
  52956. was called. */
  52957. xReturn = pdTRUE;
  52958. 8016010: 2301 movs r3, #1
  52959. 8016012: 61fb str r3, [r7, #28]
  52960. 8016014: e015 b.n 8016042 <xTaskCheckForTimeOut+0xb2>
  52961. }
  52962. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  52963. 8016016: 683b ldr r3, [r7, #0]
  52964. 8016018: 681b ldr r3, [r3, #0]
  52965. 801601a: 697a ldr r2, [r7, #20]
  52966. 801601c: 429a cmp r2, r3
  52967. 801601e: d20b bcs.n 8016038 <xTaskCheckForTimeOut+0xa8>
  52968. {
  52969. /* Not a genuine timeout. Adjust parameters for time remaining. */
  52970. *pxTicksToWait -= xElapsedTime;
  52971. 8016020: 683b ldr r3, [r7, #0]
  52972. 8016022: 681a ldr r2, [r3, #0]
  52973. 8016024: 697b ldr r3, [r7, #20]
  52974. 8016026: 1ad2 subs r2, r2, r3
  52975. 8016028: 683b ldr r3, [r7, #0]
  52976. 801602a: 601a str r2, [r3, #0]
  52977. vTaskInternalSetTimeOutState( pxTimeOut );
  52978. 801602c: 6878 ldr r0, [r7, #4]
  52979. 801602e: f7ff ff99 bl 8015f64 <vTaskInternalSetTimeOutState>
  52980. xReturn = pdFALSE;
  52981. 8016032: 2300 movs r3, #0
  52982. 8016034: 61fb str r3, [r7, #28]
  52983. 8016036: e004 b.n 8016042 <xTaskCheckForTimeOut+0xb2>
  52984. }
  52985. else
  52986. {
  52987. *pxTicksToWait = 0;
  52988. 8016038: 683b ldr r3, [r7, #0]
  52989. 801603a: 2200 movs r2, #0
  52990. 801603c: 601a str r2, [r3, #0]
  52991. xReturn = pdTRUE;
  52992. 801603e: 2301 movs r3, #1
  52993. 8016040: 61fb str r3, [r7, #28]
  52994. }
  52995. }
  52996. taskEXIT_CRITICAL();
  52997. 8016042: f001 fabb bl 80175bc <vPortExitCritical>
  52998. return xReturn;
  52999. 8016046: 69fb ldr r3, [r7, #28]
  53000. }
  53001. 8016048: 4618 mov r0, r3
  53002. 801604a: 3720 adds r7, #32
  53003. 801604c: 46bd mov sp, r7
  53004. 801604e: bd80 pop {r7, pc}
  53005. 8016050: 24002b6c .word 0x24002b6c
  53006. 8016054: 24002b80 .word 0x24002b80
  53007. 08016058 <vTaskMissedYield>:
  53008. /*-----------------------------------------------------------*/
  53009. void vTaskMissedYield( void )
  53010. {
  53011. 8016058: b480 push {r7}
  53012. 801605a: af00 add r7, sp, #0
  53013. xYieldPending = pdTRUE;
  53014. 801605c: 4b03 ldr r3, [pc, #12] @ (801606c <vTaskMissedYield+0x14>)
  53015. 801605e: 2201 movs r2, #1
  53016. 8016060: 601a str r2, [r3, #0]
  53017. }
  53018. 8016062: bf00 nop
  53019. 8016064: 46bd mov sp, r7
  53020. 8016066: f85d 7b04 ldr.w r7, [sp], #4
  53021. 801606a: 4770 bx lr
  53022. 801606c: 24002b7c .word 0x24002b7c
  53023. 08016070 <prvIdleTask>:
  53024. *
  53025. * void prvIdleTask( void *pvParameters );
  53026. *
  53027. */
  53028. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  53029. {
  53030. 8016070: b580 push {r7, lr}
  53031. 8016072: b082 sub sp, #8
  53032. 8016074: af00 add r7, sp, #0
  53033. 8016076: 6078 str r0, [r7, #4]
  53034. for( ;; )
  53035. {
  53036. /* See if any tasks have deleted themselves - if so then the idle task
  53037. is responsible for freeing the deleted task's TCB and stack. */
  53038. prvCheckTasksWaitingTermination();
  53039. 8016078: f000 f852 bl 8016120 <prvCheckTasksWaitingTermination>
  53040. A critical region is not required here as we are just reading from
  53041. the list, and an occasional incorrect value will not matter. If
  53042. the ready list at the idle priority contains more than one task
  53043. then a task other than the idle task is ready to execute. */
  53044. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  53045. 801607c: 4b06 ldr r3, [pc, #24] @ (8016098 <prvIdleTask+0x28>)
  53046. 801607e: 681b ldr r3, [r3, #0]
  53047. 8016080: 2b01 cmp r3, #1
  53048. 8016082: d9f9 bls.n 8016078 <prvIdleTask+0x8>
  53049. {
  53050. taskYIELD();
  53051. 8016084: 4b05 ldr r3, [pc, #20] @ (801609c <prvIdleTask+0x2c>)
  53052. 8016086: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53053. 801608a: 601a str r2, [r3, #0]
  53054. 801608c: f3bf 8f4f dsb sy
  53055. 8016090: f3bf 8f6f isb sy
  53056. prvCheckTasksWaitingTermination();
  53057. 8016094: e7f0 b.n 8016078 <prvIdleTask+0x8>
  53058. 8016096: bf00 nop
  53059. 8016098: 24002698 .word 0x24002698
  53060. 801609c: e000ed04 .word 0xe000ed04
  53061. 080160a0 <prvInitialiseTaskLists>:
  53062. #endif /* portUSING_MPU_WRAPPERS */
  53063. /*-----------------------------------------------------------*/
  53064. static void prvInitialiseTaskLists( void )
  53065. {
  53066. 80160a0: b580 push {r7, lr}
  53067. 80160a2: b082 sub sp, #8
  53068. 80160a4: af00 add r7, sp, #0
  53069. UBaseType_t uxPriority;
  53070. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53071. 80160a6: 2300 movs r3, #0
  53072. 80160a8: 607b str r3, [r7, #4]
  53073. 80160aa: e00c b.n 80160c6 <prvInitialiseTaskLists+0x26>
  53074. {
  53075. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  53076. 80160ac: 687a ldr r2, [r7, #4]
  53077. 80160ae: 4613 mov r3, r2
  53078. 80160b0: 009b lsls r3, r3, #2
  53079. 80160b2: 4413 add r3, r2
  53080. 80160b4: 009b lsls r3, r3, #2
  53081. 80160b6: 4a12 ldr r2, [pc, #72] @ (8016100 <prvInitialiseTaskLists+0x60>)
  53082. 80160b8: 4413 add r3, r2
  53083. 80160ba: 4618 mov r0, r3
  53084. 80160bc: f7fe f81c bl 80140f8 <vListInitialise>
  53085. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53086. 80160c0: 687b ldr r3, [r7, #4]
  53087. 80160c2: 3301 adds r3, #1
  53088. 80160c4: 607b str r3, [r7, #4]
  53089. 80160c6: 687b ldr r3, [r7, #4]
  53090. 80160c8: 2b37 cmp r3, #55 @ 0x37
  53091. 80160ca: d9ef bls.n 80160ac <prvInitialiseTaskLists+0xc>
  53092. }
  53093. vListInitialise( &xDelayedTaskList1 );
  53094. 80160cc: 480d ldr r0, [pc, #52] @ (8016104 <prvInitialiseTaskLists+0x64>)
  53095. 80160ce: f7fe f813 bl 80140f8 <vListInitialise>
  53096. vListInitialise( &xDelayedTaskList2 );
  53097. 80160d2: 480d ldr r0, [pc, #52] @ (8016108 <prvInitialiseTaskLists+0x68>)
  53098. 80160d4: f7fe f810 bl 80140f8 <vListInitialise>
  53099. vListInitialise( &xPendingReadyList );
  53100. 80160d8: 480c ldr r0, [pc, #48] @ (801610c <prvInitialiseTaskLists+0x6c>)
  53101. 80160da: f7fe f80d bl 80140f8 <vListInitialise>
  53102. #if ( INCLUDE_vTaskDelete == 1 )
  53103. {
  53104. vListInitialise( &xTasksWaitingTermination );
  53105. 80160de: 480c ldr r0, [pc, #48] @ (8016110 <prvInitialiseTaskLists+0x70>)
  53106. 80160e0: f7fe f80a bl 80140f8 <vListInitialise>
  53107. }
  53108. #endif /* INCLUDE_vTaskDelete */
  53109. #if ( INCLUDE_vTaskSuspend == 1 )
  53110. {
  53111. vListInitialise( &xSuspendedTaskList );
  53112. 80160e4: 480b ldr r0, [pc, #44] @ (8016114 <prvInitialiseTaskLists+0x74>)
  53113. 80160e6: f7fe f807 bl 80140f8 <vListInitialise>
  53114. }
  53115. #endif /* INCLUDE_vTaskSuspend */
  53116. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  53117. using list2. */
  53118. pxDelayedTaskList = &xDelayedTaskList1;
  53119. 80160ea: 4b0b ldr r3, [pc, #44] @ (8016118 <prvInitialiseTaskLists+0x78>)
  53120. 80160ec: 4a05 ldr r2, [pc, #20] @ (8016104 <prvInitialiseTaskLists+0x64>)
  53121. 80160ee: 601a str r2, [r3, #0]
  53122. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  53123. 80160f0: 4b0a ldr r3, [pc, #40] @ (801611c <prvInitialiseTaskLists+0x7c>)
  53124. 80160f2: 4a05 ldr r2, [pc, #20] @ (8016108 <prvInitialiseTaskLists+0x68>)
  53125. 80160f4: 601a str r2, [r3, #0]
  53126. }
  53127. 80160f6: bf00 nop
  53128. 80160f8: 3708 adds r7, #8
  53129. 80160fa: 46bd mov sp, r7
  53130. 80160fc: bd80 pop {r7, pc}
  53131. 80160fe: bf00 nop
  53132. 8016100: 24002698 .word 0x24002698
  53133. 8016104: 24002af8 .word 0x24002af8
  53134. 8016108: 24002b0c .word 0x24002b0c
  53135. 801610c: 24002b28 .word 0x24002b28
  53136. 8016110: 24002b3c .word 0x24002b3c
  53137. 8016114: 24002b54 .word 0x24002b54
  53138. 8016118: 24002b20 .word 0x24002b20
  53139. 801611c: 24002b24 .word 0x24002b24
  53140. 08016120 <prvCheckTasksWaitingTermination>:
  53141. /*-----------------------------------------------------------*/
  53142. static void prvCheckTasksWaitingTermination( void )
  53143. {
  53144. 8016120: b580 push {r7, lr}
  53145. 8016122: b082 sub sp, #8
  53146. 8016124: af00 add r7, sp, #0
  53147. {
  53148. TCB_t *pxTCB;
  53149. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  53150. being called too often in the idle task. */
  53151. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  53152. 8016126: e019 b.n 801615c <prvCheckTasksWaitingTermination+0x3c>
  53153. {
  53154. taskENTER_CRITICAL();
  53155. 8016128: f001 fa16 bl 8017558 <vPortEnterCritical>
  53156. {
  53157. 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. */
  53158. 801612c: 4b10 ldr r3, [pc, #64] @ (8016170 <prvCheckTasksWaitingTermination+0x50>)
  53159. 801612e: 68db ldr r3, [r3, #12]
  53160. 8016130: 68db ldr r3, [r3, #12]
  53161. 8016132: 607b str r3, [r7, #4]
  53162. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53163. 8016134: 687b ldr r3, [r7, #4]
  53164. 8016136: 3304 adds r3, #4
  53165. 8016138: 4618 mov r0, r3
  53166. 801613a: f7fe f867 bl 801420c <uxListRemove>
  53167. --uxCurrentNumberOfTasks;
  53168. 801613e: 4b0d ldr r3, [pc, #52] @ (8016174 <prvCheckTasksWaitingTermination+0x54>)
  53169. 8016140: 681b ldr r3, [r3, #0]
  53170. 8016142: 3b01 subs r3, #1
  53171. 8016144: 4a0b ldr r2, [pc, #44] @ (8016174 <prvCheckTasksWaitingTermination+0x54>)
  53172. 8016146: 6013 str r3, [r2, #0]
  53173. --uxDeletedTasksWaitingCleanUp;
  53174. 8016148: 4b0b ldr r3, [pc, #44] @ (8016178 <prvCheckTasksWaitingTermination+0x58>)
  53175. 801614a: 681b ldr r3, [r3, #0]
  53176. 801614c: 3b01 subs r3, #1
  53177. 801614e: 4a0a ldr r2, [pc, #40] @ (8016178 <prvCheckTasksWaitingTermination+0x58>)
  53178. 8016150: 6013 str r3, [r2, #0]
  53179. }
  53180. taskEXIT_CRITICAL();
  53181. 8016152: f001 fa33 bl 80175bc <vPortExitCritical>
  53182. prvDeleteTCB( pxTCB );
  53183. 8016156: 6878 ldr r0, [r7, #4]
  53184. 8016158: f000 f810 bl 801617c <prvDeleteTCB>
  53185. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  53186. 801615c: 4b06 ldr r3, [pc, #24] @ (8016178 <prvCheckTasksWaitingTermination+0x58>)
  53187. 801615e: 681b ldr r3, [r3, #0]
  53188. 8016160: 2b00 cmp r3, #0
  53189. 8016162: d1e1 bne.n 8016128 <prvCheckTasksWaitingTermination+0x8>
  53190. }
  53191. }
  53192. #endif /* INCLUDE_vTaskDelete */
  53193. }
  53194. 8016164: bf00 nop
  53195. 8016166: bf00 nop
  53196. 8016168: 3708 adds r7, #8
  53197. 801616a: 46bd mov sp, r7
  53198. 801616c: bd80 pop {r7, pc}
  53199. 801616e: bf00 nop
  53200. 8016170: 24002b3c .word 0x24002b3c
  53201. 8016174: 24002b68 .word 0x24002b68
  53202. 8016178: 24002b50 .word 0x24002b50
  53203. 0801617c <prvDeleteTCB>:
  53204. /*-----------------------------------------------------------*/
  53205. #if ( INCLUDE_vTaskDelete == 1 )
  53206. static void prvDeleteTCB( TCB_t *pxTCB )
  53207. {
  53208. 801617c: b580 push {r7, lr}
  53209. 801617e: b084 sub sp, #16
  53210. 8016180: af00 add r7, sp, #0
  53211. 8016182: 6078 str r0, [r7, #4]
  53212. to the task to free any memory allocated at the application level.
  53213. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  53214. for additional information. */
  53215. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  53216. {
  53217. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  53218. 8016184: 687b ldr r3, [r7, #4]
  53219. 8016186: 3354 adds r3, #84 @ 0x54
  53220. 8016188: 4618 mov r0, r3
  53221. 801618a: f001 fe25 bl 8017dd8 <_reclaim_reent>
  53222. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  53223. {
  53224. /* The task could have been allocated statically or dynamically, so
  53225. check what was statically allocated before trying to free the
  53226. memory. */
  53227. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  53228. 801618e: 687b ldr r3, [r7, #4]
  53229. 8016190: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  53230. 8016194: 2b00 cmp r3, #0
  53231. 8016196: d108 bne.n 80161aa <prvDeleteTCB+0x2e>
  53232. {
  53233. /* Both the stack and TCB were allocated dynamically, so both
  53234. must be freed. */
  53235. vPortFree( pxTCB->pxStack );
  53236. 8016198: 687b ldr r3, [r7, #4]
  53237. 801619a: 6b1b ldr r3, [r3, #48] @ 0x30
  53238. 801619c: 4618 mov r0, r3
  53239. 801619e: f001 fbcb bl 8017938 <vPortFree>
  53240. vPortFree( pxTCB );
  53241. 80161a2: 6878 ldr r0, [r7, #4]
  53242. 80161a4: f001 fbc8 bl 8017938 <vPortFree>
  53243. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  53244. mtCOVERAGE_TEST_MARKER();
  53245. }
  53246. }
  53247. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  53248. }
  53249. 80161a8: e019 b.n 80161de <prvDeleteTCB+0x62>
  53250. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  53251. 80161aa: 687b ldr r3, [r7, #4]
  53252. 80161ac: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  53253. 80161b0: 2b01 cmp r3, #1
  53254. 80161b2: d103 bne.n 80161bc <prvDeleteTCB+0x40>
  53255. vPortFree( pxTCB );
  53256. 80161b4: 6878 ldr r0, [r7, #4]
  53257. 80161b6: f001 fbbf bl 8017938 <vPortFree>
  53258. }
  53259. 80161ba: e010 b.n 80161de <prvDeleteTCB+0x62>
  53260. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  53261. 80161bc: 687b ldr r3, [r7, #4]
  53262. 80161be: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  53263. 80161c2: 2b02 cmp r3, #2
  53264. 80161c4: d00b beq.n 80161de <prvDeleteTCB+0x62>
  53265. __asm volatile
  53266. 80161c6: f04f 0350 mov.w r3, #80 @ 0x50
  53267. 80161ca: f383 8811 msr BASEPRI, r3
  53268. 80161ce: f3bf 8f6f isb sy
  53269. 80161d2: f3bf 8f4f dsb sy
  53270. 80161d6: 60fb str r3, [r7, #12]
  53271. }
  53272. 80161d8: bf00 nop
  53273. 80161da: bf00 nop
  53274. 80161dc: e7fd b.n 80161da <prvDeleteTCB+0x5e>
  53275. }
  53276. 80161de: bf00 nop
  53277. 80161e0: 3710 adds r7, #16
  53278. 80161e2: 46bd mov sp, r7
  53279. 80161e4: bd80 pop {r7, pc}
  53280. ...
  53281. 080161e8 <prvResetNextTaskUnblockTime>:
  53282. #endif /* INCLUDE_vTaskDelete */
  53283. /*-----------------------------------------------------------*/
  53284. static void prvResetNextTaskUnblockTime( void )
  53285. {
  53286. 80161e8: b480 push {r7}
  53287. 80161ea: b083 sub sp, #12
  53288. 80161ec: af00 add r7, sp, #0
  53289. TCB_t *pxTCB;
  53290. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53291. 80161ee: 4b0c ldr r3, [pc, #48] @ (8016220 <prvResetNextTaskUnblockTime+0x38>)
  53292. 80161f0: 681b ldr r3, [r3, #0]
  53293. 80161f2: 681b ldr r3, [r3, #0]
  53294. 80161f4: 2b00 cmp r3, #0
  53295. 80161f6: d104 bne.n 8016202 <prvResetNextTaskUnblockTime+0x1a>
  53296. {
  53297. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  53298. the maximum possible value so it is extremely unlikely that the
  53299. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  53300. there is an item in the delayed list. */
  53301. xNextTaskUnblockTime = portMAX_DELAY;
  53302. 80161f8: 4b0a ldr r3, [pc, #40] @ (8016224 <prvResetNextTaskUnblockTime+0x3c>)
  53303. 80161fa: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  53304. 80161fe: 601a str r2, [r3, #0]
  53305. which the task at the head of the delayed list should be removed
  53306. from the Blocked state. */
  53307. ( 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. */
  53308. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  53309. }
  53310. }
  53311. 8016200: e008 b.n 8016214 <prvResetNextTaskUnblockTime+0x2c>
  53312. ( 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. */
  53313. 8016202: 4b07 ldr r3, [pc, #28] @ (8016220 <prvResetNextTaskUnblockTime+0x38>)
  53314. 8016204: 681b ldr r3, [r3, #0]
  53315. 8016206: 68db ldr r3, [r3, #12]
  53316. 8016208: 68db ldr r3, [r3, #12]
  53317. 801620a: 607b str r3, [r7, #4]
  53318. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  53319. 801620c: 687b ldr r3, [r7, #4]
  53320. 801620e: 685b ldr r3, [r3, #4]
  53321. 8016210: 4a04 ldr r2, [pc, #16] @ (8016224 <prvResetNextTaskUnblockTime+0x3c>)
  53322. 8016212: 6013 str r3, [r2, #0]
  53323. }
  53324. 8016214: bf00 nop
  53325. 8016216: 370c adds r7, #12
  53326. 8016218: 46bd mov sp, r7
  53327. 801621a: f85d 7b04 ldr.w r7, [sp], #4
  53328. 801621e: 4770 bx lr
  53329. 8016220: 24002b20 .word 0x24002b20
  53330. 8016224: 24002b88 .word 0x24002b88
  53331. 08016228 <xTaskGetCurrentTaskHandle>:
  53332. /*-----------------------------------------------------------*/
  53333. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  53334. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  53335. {
  53336. 8016228: b480 push {r7}
  53337. 801622a: b083 sub sp, #12
  53338. 801622c: af00 add r7, sp, #0
  53339. TaskHandle_t xReturn;
  53340. /* A critical section is not required as this is not called from
  53341. an interrupt and the current TCB will always be the same for any
  53342. individual execution thread. */
  53343. xReturn = pxCurrentTCB;
  53344. 801622e: 4b05 ldr r3, [pc, #20] @ (8016244 <xTaskGetCurrentTaskHandle+0x1c>)
  53345. 8016230: 681b ldr r3, [r3, #0]
  53346. 8016232: 607b str r3, [r7, #4]
  53347. return xReturn;
  53348. 8016234: 687b ldr r3, [r7, #4]
  53349. }
  53350. 8016236: 4618 mov r0, r3
  53351. 8016238: 370c adds r7, #12
  53352. 801623a: 46bd mov sp, r7
  53353. 801623c: f85d 7b04 ldr.w r7, [sp], #4
  53354. 8016240: 4770 bx lr
  53355. 8016242: bf00 nop
  53356. 8016244: 24002694 .word 0x24002694
  53357. 08016248 <xTaskGetSchedulerState>:
  53358. /*-----------------------------------------------------------*/
  53359. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  53360. BaseType_t xTaskGetSchedulerState( void )
  53361. {
  53362. 8016248: b480 push {r7}
  53363. 801624a: b083 sub sp, #12
  53364. 801624c: af00 add r7, sp, #0
  53365. BaseType_t xReturn;
  53366. if( xSchedulerRunning == pdFALSE )
  53367. 801624e: 4b0b ldr r3, [pc, #44] @ (801627c <xTaskGetSchedulerState+0x34>)
  53368. 8016250: 681b ldr r3, [r3, #0]
  53369. 8016252: 2b00 cmp r3, #0
  53370. 8016254: d102 bne.n 801625c <xTaskGetSchedulerState+0x14>
  53371. {
  53372. xReturn = taskSCHEDULER_NOT_STARTED;
  53373. 8016256: 2301 movs r3, #1
  53374. 8016258: 607b str r3, [r7, #4]
  53375. 801625a: e008 b.n 801626e <xTaskGetSchedulerState+0x26>
  53376. }
  53377. else
  53378. {
  53379. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53380. 801625c: 4b08 ldr r3, [pc, #32] @ (8016280 <xTaskGetSchedulerState+0x38>)
  53381. 801625e: 681b ldr r3, [r3, #0]
  53382. 8016260: 2b00 cmp r3, #0
  53383. 8016262: d102 bne.n 801626a <xTaskGetSchedulerState+0x22>
  53384. {
  53385. xReturn = taskSCHEDULER_RUNNING;
  53386. 8016264: 2302 movs r3, #2
  53387. 8016266: 607b str r3, [r7, #4]
  53388. 8016268: e001 b.n 801626e <xTaskGetSchedulerState+0x26>
  53389. }
  53390. else
  53391. {
  53392. xReturn = taskSCHEDULER_SUSPENDED;
  53393. 801626a: 2300 movs r3, #0
  53394. 801626c: 607b str r3, [r7, #4]
  53395. }
  53396. }
  53397. return xReturn;
  53398. 801626e: 687b ldr r3, [r7, #4]
  53399. }
  53400. 8016270: 4618 mov r0, r3
  53401. 8016272: 370c adds r7, #12
  53402. 8016274: 46bd mov sp, r7
  53403. 8016276: f85d 7b04 ldr.w r7, [sp], #4
  53404. 801627a: 4770 bx lr
  53405. 801627c: 24002b74 .word 0x24002b74
  53406. 8016280: 24002b90 .word 0x24002b90
  53407. 08016284 <xTaskPriorityInherit>:
  53408. /*-----------------------------------------------------------*/
  53409. #if ( configUSE_MUTEXES == 1 )
  53410. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  53411. {
  53412. 8016284: b580 push {r7, lr}
  53413. 8016286: b084 sub sp, #16
  53414. 8016288: af00 add r7, sp, #0
  53415. 801628a: 6078 str r0, [r7, #4]
  53416. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  53417. 801628c: 687b ldr r3, [r7, #4]
  53418. 801628e: 60bb str r3, [r7, #8]
  53419. BaseType_t xReturn = pdFALSE;
  53420. 8016290: 2300 movs r3, #0
  53421. 8016292: 60fb str r3, [r7, #12]
  53422. /* If the mutex was given back by an interrupt while the queue was
  53423. locked then the mutex holder might now be NULL. _RB_ Is this still
  53424. needed as interrupts can no longer use mutexes? */
  53425. if( pxMutexHolder != NULL )
  53426. 8016294: 687b ldr r3, [r7, #4]
  53427. 8016296: 2b00 cmp r3, #0
  53428. 8016298: d051 beq.n 801633e <xTaskPriorityInherit+0xba>
  53429. {
  53430. /* If the holder of the mutex has a priority below the priority of
  53431. the task attempting to obtain the mutex then it will temporarily
  53432. inherit the priority of the task attempting to obtain the mutex. */
  53433. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  53434. 801629a: 68bb ldr r3, [r7, #8]
  53435. 801629c: 6ada ldr r2, [r3, #44] @ 0x2c
  53436. 801629e: 4b2a ldr r3, [pc, #168] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53437. 80162a0: 681b ldr r3, [r3, #0]
  53438. 80162a2: 6adb ldr r3, [r3, #44] @ 0x2c
  53439. 80162a4: 429a cmp r2, r3
  53440. 80162a6: d241 bcs.n 801632c <xTaskPriorityInherit+0xa8>
  53441. {
  53442. /* Adjust the mutex holder state to account for its new
  53443. priority. Only reset the event list item value if the value is
  53444. not being used for anything else. */
  53445. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  53446. 80162a8: 68bb ldr r3, [r7, #8]
  53447. 80162aa: 699b ldr r3, [r3, #24]
  53448. 80162ac: 2b00 cmp r3, #0
  53449. 80162ae: db06 blt.n 80162be <xTaskPriorityInherit+0x3a>
  53450. {
  53451. 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. */
  53452. 80162b0: 4b25 ldr r3, [pc, #148] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53453. 80162b2: 681b ldr r3, [r3, #0]
  53454. 80162b4: 6adb ldr r3, [r3, #44] @ 0x2c
  53455. 80162b6: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53456. 80162ba: 68bb ldr r3, [r7, #8]
  53457. 80162bc: 619a str r2, [r3, #24]
  53458. mtCOVERAGE_TEST_MARKER();
  53459. }
  53460. /* If the task being modified is in the ready state it will need
  53461. to be moved into a new list. */
  53462. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  53463. 80162be: 68bb ldr r3, [r7, #8]
  53464. 80162c0: 6959 ldr r1, [r3, #20]
  53465. 80162c2: 68bb ldr r3, [r7, #8]
  53466. 80162c4: 6ada ldr r2, [r3, #44] @ 0x2c
  53467. 80162c6: 4613 mov r3, r2
  53468. 80162c8: 009b lsls r3, r3, #2
  53469. 80162ca: 4413 add r3, r2
  53470. 80162cc: 009b lsls r3, r3, #2
  53471. 80162ce: 4a1f ldr r2, [pc, #124] @ (801634c <xTaskPriorityInherit+0xc8>)
  53472. 80162d0: 4413 add r3, r2
  53473. 80162d2: 4299 cmp r1, r3
  53474. 80162d4: d122 bne.n 801631c <xTaskPriorityInherit+0x98>
  53475. {
  53476. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53477. 80162d6: 68bb ldr r3, [r7, #8]
  53478. 80162d8: 3304 adds r3, #4
  53479. 80162da: 4618 mov r0, r3
  53480. 80162dc: f7fd ff96 bl 801420c <uxListRemove>
  53481. {
  53482. mtCOVERAGE_TEST_MARKER();
  53483. }
  53484. /* Inherit the priority before being moved into the new list. */
  53485. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  53486. 80162e0: 4b19 ldr r3, [pc, #100] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53487. 80162e2: 681b ldr r3, [r3, #0]
  53488. 80162e4: 6ada ldr r2, [r3, #44] @ 0x2c
  53489. 80162e6: 68bb ldr r3, [r7, #8]
  53490. 80162e8: 62da str r2, [r3, #44] @ 0x2c
  53491. prvAddTaskToReadyList( pxMutexHolderTCB );
  53492. 80162ea: 68bb ldr r3, [r7, #8]
  53493. 80162ec: 6ada ldr r2, [r3, #44] @ 0x2c
  53494. 80162ee: 4b18 ldr r3, [pc, #96] @ (8016350 <xTaskPriorityInherit+0xcc>)
  53495. 80162f0: 681b ldr r3, [r3, #0]
  53496. 80162f2: 429a cmp r2, r3
  53497. 80162f4: d903 bls.n 80162fe <xTaskPriorityInherit+0x7a>
  53498. 80162f6: 68bb ldr r3, [r7, #8]
  53499. 80162f8: 6adb ldr r3, [r3, #44] @ 0x2c
  53500. 80162fa: 4a15 ldr r2, [pc, #84] @ (8016350 <xTaskPriorityInherit+0xcc>)
  53501. 80162fc: 6013 str r3, [r2, #0]
  53502. 80162fe: 68bb ldr r3, [r7, #8]
  53503. 8016300: 6ada ldr r2, [r3, #44] @ 0x2c
  53504. 8016302: 4613 mov r3, r2
  53505. 8016304: 009b lsls r3, r3, #2
  53506. 8016306: 4413 add r3, r2
  53507. 8016308: 009b lsls r3, r3, #2
  53508. 801630a: 4a10 ldr r2, [pc, #64] @ (801634c <xTaskPriorityInherit+0xc8>)
  53509. 801630c: 441a add r2, r3
  53510. 801630e: 68bb ldr r3, [r7, #8]
  53511. 8016310: 3304 adds r3, #4
  53512. 8016312: 4619 mov r1, r3
  53513. 8016314: 4610 mov r0, r2
  53514. 8016316: f7fd ff1c bl 8014152 <vListInsertEnd>
  53515. 801631a: e004 b.n 8016326 <xTaskPriorityInherit+0xa2>
  53516. }
  53517. else
  53518. {
  53519. /* Just inherit the priority. */
  53520. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  53521. 801631c: 4b0a ldr r3, [pc, #40] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53522. 801631e: 681b ldr r3, [r3, #0]
  53523. 8016320: 6ada ldr r2, [r3, #44] @ 0x2c
  53524. 8016322: 68bb ldr r3, [r7, #8]
  53525. 8016324: 62da str r2, [r3, #44] @ 0x2c
  53526. }
  53527. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  53528. /* Inheritance occurred. */
  53529. xReturn = pdTRUE;
  53530. 8016326: 2301 movs r3, #1
  53531. 8016328: 60fb str r3, [r7, #12]
  53532. 801632a: e008 b.n 801633e <xTaskPriorityInherit+0xba>
  53533. }
  53534. else
  53535. {
  53536. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  53537. 801632c: 68bb ldr r3, [r7, #8]
  53538. 801632e: 6cda ldr r2, [r3, #76] @ 0x4c
  53539. 8016330: 4b05 ldr r3, [pc, #20] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53540. 8016332: 681b ldr r3, [r3, #0]
  53541. 8016334: 6adb ldr r3, [r3, #44] @ 0x2c
  53542. 8016336: 429a cmp r2, r3
  53543. 8016338: d201 bcs.n 801633e <xTaskPriorityInherit+0xba>
  53544. current priority of the mutex holder is not lower than the
  53545. priority of the task attempting to take the mutex.
  53546. Therefore the mutex holder must have already inherited a
  53547. priority, but inheritance would have occurred if that had
  53548. not been the case. */
  53549. xReturn = pdTRUE;
  53550. 801633a: 2301 movs r3, #1
  53551. 801633c: 60fb str r3, [r7, #12]
  53552. else
  53553. {
  53554. mtCOVERAGE_TEST_MARKER();
  53555. }
  53556. return xReturn;
  53557. 801633e: 68fb ldr r3, [r7, #12]
  53558. }
  53559. 8016340: 4618 mov r0, r3
  53560. 8016342: 3710 adds r7, #16
  53561. 8016344: 46bd mov sp, r7
  53562. 8016346: bd80 pop {r7, pc}
  53563. 8016348: 24002694 .word 0x24002694
  53564. 801634c: 24002698 .word 0x24002698
  53565. 8016350: 24002b70 .word 0x24002b70
  53566. 08016354 <xTaskPriorityDisinherit>:
  53567. /*-----------------------------------------------------------*/
  53568. #if ( configUSE_MUTEXES == 1 )
  53569. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  53570. {
  53571. 8016354: b580 push {r7, lr}
  53572. 8016356: b086 sub sp, #24
  53573. 8016358: af00 add r7, sp, #0
  53574. 801635a: 6078 str r0, [r7, #4]
  53575. TCB_t * const pxTCB = pxMutexHolder;
  53576. 801635c: 687b ldr r3, [r7, #4]
  53577. 801635e: 613b str r3, [r7, #16]
  53578. BaseType_t xReturn = pdFALSE;
  53579. 8016360: 2300 movs r3, #0
  53580. 8016362: 617b str r3, [r7, #20]
  53581. if( pxMutexHolder != NULL )
  53582. 8016364: 687b ldr r3, [r7, #4]
  53583. 8016366: 2b00 cmp r3, #0
  53584. 8016368: d058 beq.n 801641c <xTaskPriorityDisinherit+0xc8>
  53585. {
  53586. /* A task can only have an inherited priority if it holds the mutex.
  53587. If the mutex is held by a task then it cannot be given from an
  53588. interrupt, and if a mutex is given by the holding task then it must
  53589. be the running state task. */
  53590. configASSERT( pxTCB == pxCurrentTCB );
  53591. 801636a: 4b2f ldr r3, [pc, #188] @ (8016428 <xTaskPriorityDisinherit+0xd4>)
  53592. 801636c: 681b ldr r3, [r3, #0]
  53593. 801636e: 693a ldr r2, [r7, #16]
  53594. 8016370: 429a cmp r2, r3
  53595. 8016372: d00b beq.n 801638c <xTaskPriorityDisinherit+0x38>
  53596. __asm volatile
  53597. 8016374: f04f 0350 mov.w r3, #80 @ 0x50
  53598. 8016378: f383 8811 msr BASEPRI, r3
  53599. 801637c: f3bf 8f6f isb sy
  53600. 8016380: f3bf 8f4f dsb sy
  53601. 8016384: 60fb str r3, [r7, #12]
  53602. }
  53603. 8016386: bf00 nop
  53604. 8016388: bf00 nop
  53605. 801638a: e7fd b.n 8016388 <xTaskPriorityDisinherit+0x34>
  53606. configASSERT( pxTCB->uxMutexesHeld );
  53607. 801638c: 693b ldr r3, [r7, #16]
  53608. 801638e: 6d1b ldr r3, [r3, #80] @ 0x50
  53609. 8016390: 2b00 cmp r3, #0
  53610. 8016392: d10b bne.n 80163ac <xTaskPriorityDisinherit+0x58>
  53611. __asm volatile
  53612. 8016394: f04f 0350 mov.w r3, #80 @ 0x50
  53613. 8016398: f383 8811 msr BASEPRI, r3
  53614. 801639c: f3bf 8f6f isb sy
  53615. 80163a0: f3bf 8f4f dsb sy
  53616. 80163a4: 60bb str r3, [r7, #8]
  53617. }
  53618. 80163a6: bf00 nop
  53619. 80163a8: bf00 nop
  53620. 80163aa: e7fd b.n 80163a8 <xTaskPriorityDisinherit+0x54>
  53621. ( pxTCB->uxMutexesHeld )--;
  53622. 80163ac: 693b ldr r3, [r7, #16]
  53623. 80163ae: 6d1b ldr r3, [r3, #80] @ 0x50
  53624. 80163b0: 1e5a subs r2, r3, #1
  53625. 80163b2: 693b ldr r3, [r7, #16]
  53626. 80163b4: 651a str r2, [r3, #80] @ 0x50
  53627. /* Has the holder of the mutex inherited the priority of another
  53628. task? */
  53629. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  53630. 80163b6: 693b ldr r3, [r7, #16]
  53631. 80163b8: 6ada ldr r2, [r3, #44] @ 0x2c
  53632. 80163ba: 693b ldr r3, [r7, #16]
  53633. 80163bc: 6cdb ldr r3, [r3, #76] @ 0x4c
  53634. 80163be: 429a cmp r2, r3
  53635. 80163c0: d02c beq.n 801641c <xTaskPriorityDisinherit+0xc8>
  53636. {
  53637. /* Only disinherit if no other mutexes are held. */
  53638. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  53639. 80163c2: 693b ldr r3, [r7, #16]
  53640. 80163c4: 6d1b ldr r3, [r3, #80] @ 0x50
  53641. 80163c6: 2b00 cmp r3, #0
  53642. 80163c8: d128 bne.n 801641c <xTaskPriorityDisinherit+0xc8>
  53643. /* A task can only have an inherited priority if it holds
  53644. the mutex. If the mutex is held by a task then it cannot be
  53645. given from an interrupt, and if a mutex is given by the
  53646. holding task then it must be the running state task. Remove
  53647. the holding task from the ready/delayed list. */
  53648. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53649. 80163ca: 693b ldr r3, [r7, #16]
  53650. 80163cc: 3304 adds r3, #4
  53651. 80163ce: 4618 mov r0, r3
  53652. 80163d0: f7fd ff1c bl 801420c <uxListRemove>
  53653. }
  53654. /* Disinherit the priority before adding the task into the
  53655. new ready list. */
  53656. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  53657. pxTCB->uxPriority = pxTCB->uxBasePriority;
  53658. 80163d4: 693b ldr r3, [r7, #16]
  53659. 80163d6: 6cda ldr r2, [r3, #76] @ 0x4c
  53660. 80163d8: 693b ldr r3, [r7, #16]
  53661. 80163da: 62da str r2, [r3, #44] @ 0x2c
  53662. /* Reset the event list item value. It cannot be in use for
  53663. any other purpose if this task is running, and it must be
  53664. running to give back the mutex. */
  53665. 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. */
  53666. 80163dc: 693b ldr r3, [r7, #16]
  53667. 80163de: 6adb ldr r3, [r3, #44] @ 0x2c
  53668. 80163e0: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53669. 80163e4: 693b ldr r3, [r7, #16]
  53670. 80163e6: 619a str r2, [r3, #24]
  53671. prvAddTaskToReadyList( pxTCB );
  53672. 80163e8: 693b ldr r3, [r7, #16]
  53673. 80163ea: 6ada ldr r2, [r3, #44] @ 0x2c
  53674. 80163ec: 4b0f ldr r3, [pc, #60] @ (801642c <xTaskPriorityDisinherit+0xd8>)
  53675. 80163ee: 681b ldr r3, [r3, #0]
  53676. 80163f0: 429a cmp r2, r3
  53677. 80163f2: d903 bls.n 80163fc <xTaskPriorityDisinherit+0xa8>
  53678. 80163f4: 693b ldr r3, [r7, #16]
  53679. 80163f6: 6adb ldr r3, [r3, #44] @ 0x2c
  53680. 80163f8: 4a0c ldr r2, [pc, #48] @ (801642c <xTaskPriorityDisinherit+0xd8>)
  53681. 80163fa: 6013 str r3, [r2, #0]
  53682. 80163fc: 693b ldr r3, [r7, #16]
  53683. 80163fe: 6ada ldr r2, [r3, #44] @ 0x2c
  53684. 8016400: 4613 mov r3, r2
  53685. 8016402: 009b lsls r3, r3, #2
  53686. 8016404: 4413 add r3, r2
  53687. 8016406: 009b lsls r3, r3, #2
  53688. 8016408: 4a09 ldr r2, [pc, #36] @ (8016430 <xTaskPriorityDisinherit+0xdc>)
  53689. 801640a: 441a add r2, r3
  53690. 801640c: 693b ldr r3, [r7, #16]
  53691. 801640e: 3304 adds r3, #4
  53692. 8016410: 4619 mov r1, r3
  53693. 8016412: 4610 mov r0, r2
  53694. 8016414: f7fd fe9d bl 8014152 <vListInsertEnd>
  53695. in an order different to that in which they were taken.
  53696. If a context switch did not occur when the first mutex was
  53697. returned, even if a task was waiting on it, then a context
  53698. switch should occur when the last mutex is returned whether
  53699. a task is waiting on it or not. */
  53700. xReturn = pdTRUE;
  53701. 8016418: 2301 movs r3, #1
  53702. 801641a: 617b str r3, [r7, #20]
  53703. else
  53704. {
  53705. mtCOVERAGE_TEST_MARKER();
  53706. }
  53707. return xReturn;
  53708. 801641c: 697b ldr r3, [r7, #20]
  53709. }
  53710. 801641e: 4618 mov r0, r3
  53711. 8016420: 3718 adds r7, #24
  53712. 8016422: 46bd mov sp, r7
  53713. 8016424: bd80 pop {r7, pc}
  53714. 8016426: bf00 nop
  53715. 8016428: 24002694 .word 0x24002694
  53716. 801642c: 24002b70 .word 0x24002b70
  53717. 8016430: 24002698 .word 0x24002698
  53718. 08016434 <vTaskPriorityDisinheritAfterTimeout>:
  53719. /*-----------------------------------------------------------*/
  53720. #if ( configUSE_MUTEXES == 1 )
  53721. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  53722. {
  53723. 8016434: b580 push {r7, lr}
  53724. 8016436: b088 sub sp, #32
  53725. 8016438: af00 add r7, sp, #0
  53726. 801643a: 6078 str r0, [r7, #4]
  53727. 801643c: 6039 str r1, [r7, #0]
  53728. TCB_t * const pxTCB = pxMutexHolder;
  53729. 801643e: 687b ldr r3, [r7, #4]
  53730. 8016440: 61bb str r3, [r7, #24]
  53731. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  53732. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  53733. 8016442: 2301 movs r3, #1
  53734. 8016444: 617b str r3, [r7, #20]
  53735. if( pxMutexHolder != NULL )
  53736. 8016446: 687b ldr r3, [r7, #4]
  53737. 8016448: 2b00 cmp r3, #0
  53738. 801644a: d06c beq.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53739. {
  53740. /* If pxMutexHolder is not NULL then the holder must hold at least
  53741. one mutex. */
  53742. configASSERT( pxTCB->uxMutexesHeld );
  53743. 801644c: 69bb ldr r3, [r7, #24]
  53744. 801644e: 6d1b ldr r3, [r3, #80] @ 0x50
  53745. 8016450: 2b00 cmp r3, #0
  53746. 8016452: d10b bne.n 801646c <vTaskPriorityDisinheritAfterTimeout+0x38>
  53747. __asm volatile
  53748. 8016454: f04f 0350 mov.w r3, #80 @ 0x50
  53749. 8016458: f383 8811 msr BASEPRI, r3
  53750. 801645c: f3bf 8f6f isb sy
  53751. 8016460: f3bf 8f4f dsb sy
  53752. 8016464: 60fb str r3, [r7, #12]
  53753. }
  53754. 8016466: bf00 nop
  53755. 8016468: bf00 nop
  53756. 801646a: e7fd b.n 8016468 <vTaskPriorityDisinheritAfterTimeout+0x34>
  53757. /* Determine the priority to which the priority of the task that
  53758. holds the mutex should be set. This will be the greater of the
  53759. holding task's base priority and the priority of the highest
  53760. priority task that is waiting to obtain the mutex. */
  53761. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  53762. 801646c: 69bb ldr r3, [r7, #24]
  53763. 801646e: 6cdb ldr r3, [r3, #76] @ 0x4c
  53764. 8016470: 683a ldr r2, [r7, #0]
  53765. 8016472: 429a cmp r2, r3
  53766. 8016474: d902 bls.n 801647c <vTaskPriorityDisinheritAfterTimeout+0x48>
  53767. {
  53768. uxPriorityToUse = uxHighestPriorityWaitingTask;
  53769. 8016476: 683b ldr r3, [r7, #0]
  53770. 8016478: 61fb str r3, [r7, #28]
  53771. 801647a: e002 b.n 8016482 <vTaskPriorityDisinheritAfterTimeout+0x4e>
  53772. }
  53773. else
  53774. {
  53775. uxPriorityToUse = pxTCB->uxBasePriority;
  53776. 801647c: 69bb ldr r3, [r7, #24]
  53777. 801647e: 6cdb ldr r3, [r3, #76] @ 0x4c
  53778. 8016480: 61fb str r3, [r7, #28]
  53779. }
  53780. /* Does the priority need to change? */
  53781. if( pxTCB->uxPriority != uxPriorityToUse )
  53782. 8016482: 69bb ldr r3, [r7, #24]
  53783. 8016484: 6adb ldr r3, [r3, #44] @ 0x2c
  53784. 8016486: 69fa ldr r2, [r7, #28]
  53785. 8016488: 429a cmp r2, r3
  53786. 801648a: d04c beq.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53787. {
  53788. /* Only disinherit if no other mutexes are held. This is a
  53789. simplification in the priority inheritance implementation. If
  53790. the task that holds the mutex is also holding other mutexes then
  53791. the other mutexes may have caused the priority inheritance. */
  53792. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  53793. 801648c: 69bb ldr r3, [r7, #24]
  53794. 801648e: 6d1b ldr r3, [r3, #80] @ 0x50
  53795. 8016490: 697a ldr r2, [r7, #20]
  53796. 8016492: 429a cmp r2, r3
  53797. 8016494: d147 bne.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53798. {
  53799. /* If a task has timed out because it already holds the
  53800. mutex it was trying to obtain then it cannot of inherited
  53801. its own priority. */
  53802. configASSERT( pxTCB != pxCurrentTCB );
  53803. 8016496: 4b26 ldr r3, [pc, #152] @ (8016530 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  53804. 8016498: 681b ldr r3, [r3, #0]
  53805. 801649a: 69ba ldr r2, [r7, #24]
  53806. 801649c: 429a cmp r2, r3
  53807. 801649e: d10b bne.n 80164b8 <vTaskPriorityDisinheritAfterTimeout+0x84>
  53808. __asm volatile
  53809. 80164a0: f04f 0350 mov.w r3, #80 @ 0x50
  53810. 80164a4: f383 8811 msr BASEPRI, r3
  53811. 80164a8: f3bf 8f6f isb sy
  53812. 80164ac: f3bf 8f4f dsb sy
  53813. 80164b0: 60bb str r3, [r7, #8]
  53814. }
  53815. 80164b2: bf00 nop
  53816. 80164b4: bf00 nop
  53817. 80164b6: e7fd b.n 80164b4 <vTaskPriorityDisinheritAfterTimeout+0x80>
  53818. /* Disinherit the priority, remembering the previous
  53819. priority to facilitate determining the subject task's
  53820. state. */
  53821. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  53822. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  53823. 80164b8: 69bb ldr r3, [r7, #24]
  53824. 80164ba: 6adb ldr r3, [r3, #44] @ 0x2c
  53825. 80164bc: 613b str r3, [r7, #16]
  53826. pxTCB->uxPriority = uxPriorityToUse;
  53827. 80164be: 69bb ldr r3, [r7, #24]
  53828. 80164c0: 69fa ldr r2, [r7, #28]
  53829. 80164c2: 62da str r2, [r3, #44] @ 0x2c
  53830. /* Only reset the event list item value if the value is not
  53831. being used for anything else. */
  53832. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  53833. 80164c4: 69bb ldr r3, [r7, #24]
  53834. 80164c6: 699b ldr r3, [r3, #24]
  53835. 80164c8: 2b00 cmp r3, #0
  53836. 80164ca: db04 blt.n 80164d6 <vTaskPriorityDisinheritAfterTimeout+0xa2>
  53837. {
  53838. 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. */
  53839. 80164cc: 69fb ldr r3, [r7, #28]
  53840. 80164ce: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53841. 80164d2: 69bb ldr r3, [r7, #24]
  53842. 80164d4: 619a str r2, [r3, #24]
  53843. then the task that holds the mutex could be in either the
  53844. Ready, Blocked or Suspended states. Only remove the task
  53845. from its current state list if it is in the Ready state as
  53846. the task's priority is going to change and there is one
  53847. Ready list per priority. */
  53848. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  53849. 80164d6: 69bb ldr r3, [r7, #24]
  53850. 80164d8: 6959 ldr r1, [r3, #20]
  53851. 80164da: 693a ldr r2, [r7, #16]
  53852. 80164dc: 4613 mov r3, r2
  53853. 80164de: 009b lsls r3, r3, #2
  53854. 80164e0: 4413 add r3, r2
  53855. 80164e2: 009b lsls r3, r3, #2
  53856. 80164e4: 4a13 ldr r2, [pc, #76] @ (8016534 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53857. 80164e6: 4413 add r3, r2
  53858. 80164e8: 4299 cmp r1, r3
  53859. 80164ea: d11c bne.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53860. {
  53861. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53862. 80164ec: 69bb ldr r3, [r7, #24]
  53863. 80164ee: 3304 adds r3, #4
  53864. 80164f0: 4618 mov r0, r3
  53865. 80164f2: f7fd fe8b bl 801420c <uxListRemove>
  53866. else
  53867. {
  53868. mtCOVERAGE_TEST_MARKER();
  53869. }
  53870. prvAddTaskToReadyList( pxTCB );
  53871. 80164f6: 69bb ldr r3, [r7, #24]
  53872. 80164f8: 6ada ldr r2, [r3, #44] @ 0x2c
  53873. 80164fa: 4b0f ldr r3, [pc, #60] @ (8016538 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53874. 80164fc: 681b ldr r3, [r3, #0]
  53875. 80164fe: 429a cmp r2, r3
  53876. 8016500: d903 bls.n 801650a <vTaskPriorityDisinheritAfterTimeout+0xd6>
  53877. 8016502: 69bb ldr r3, [r7, #24]
  53878. 8016504: 6adb ldr r3, [r3, #44] @ 0x2c
  53879. 8016506: 4a0c ldr r2, [pc, #48] @ (8016538 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53880. 8016508: 6013 str r3, [r2, #0]
  53881. 801650a: 69bb ldr r3, [r7, #24]
  53882. 801650c: 6ada ldr r2, [r3, #44] @ 0x2c
  53883. 801650e: 4613 mov r3, r2
  53884. 8016510: 009b lsls r3, r3, #2
  53885. 8016512: 4413 add r3, r2
  53886. 8016514: 009b lsls r3, r3, #2
  53887. 8016516: 4a07 ldr r2, [pc, #28] @ (8016534 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53888. 8016518: 441a add r2, r3
  53889. 801651a: 69bb ldr r3, [r7, #24]
  53890. 801651c: 3304 adds r3, #4
  53891. 801651e: 4619 mov r1, r3
  53892. 8016520: 4610 mov r0, r2
  53893. 8016522: f7fd fe16 bl 8014152 <vListInsertEnd>
  53894. }
  53895. else
  53896. {
  53897. mtCOVERAGE_TEST_MARKER();
  53898. }
  53899. }
  53900. 8016526: bf00 nop
  53901. 8016528: 3720 adds r7, #32
  53902. 801652a: 46bd mov sp, r7
  53903. 801652c: bd80 pop {r7, pc}
  53904. 801652e: bf00 nop
  53905. 8016530: 24002694 .word 0x24002694
  53906. 8016534: 24002698 .word 0x24002698
  53907. 8016538: 24002b70 .word 0x24002b70
  53908. 0801653c <pvTaskIncrementMutexHeldCount>:
  53909. /*-----------------------------------------------------------*/
  53910. #if ( configUSE_MUTEXES == 1 )
  53911. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  53912. {
  53913. 801653c: b480 push {r7}
  53914. 801653e: af00 add r7, sp, #0
  53915. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  53916. then pxCurrentTCB will be NULL. */
  53917. if( pxCurrentTCB != NULL )
  53918. 8016540: 4b07 ldr r3, [pc, #28] @ (8016560 <pvTaskIncrementMutexHeldCount+0x24>)
  53919. 8016542: 681b ldr r3, [r3, #0]
  53920. 8016544: 2b00 cmp r3, #0
  53921. 8016546: d004 beq.n 8016552 <pvTaskIncrementMutexHeldCount+0x16>
  53922. {
  53923. ( pxCurrentTCB->uxMutexesHeld )++;
  53924. 8016548: 4b05 ldr r3, [pc, #20] @ (8016560 <pvTaskIncrementMutexHeldCount+0x24>)
  53925. 801654a: 681b ldr r3, [r3, #0]
  53926. 801654c: 6d1a ldr r2, [r3, #80] @ 0x50
  53927. 801654e: 3201 adds r2, #1
  53928. 8016550: 651a str r2, [r3, #80] @ 0x50
  53929. }
  53930. return pxCurrentTCB;
  53931. 8016552: 4b03 ldr r3, [pc, #12] @ (8016560 <pvTaskIncrementMutexHeldCount+0x24>)
  53932. 8016554: 681b ldr r3, [r3, #0]
  53933. }
  53934. 8016556: 4618 mov r0, r3
  53935. 8016558: 46bd mov sp, r7
  53936. 801655a: f85d 7b04 ldr.w r7, [sp], #4
  53937. 801655e: 4770 bx lr
  53938. 8016560: 24002694 .word 0x24002694
  53939. 08016564 <xTaskNotifyWait>:
  53940. /*-----------------------------------------------------------*/
  53941. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53942. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  53943. {
  53944. 8016564: b580 push {r7, lr}
  53945. 8016566: b086 sub sp, #24
  53946. 8016568: af00 add r7, sp, #0
  53947. 801656a: 60f8 str r0, [r7, #12]
  53948. 801656c: 60b9 str r1, [r7, #8]
  53949. 801656e: 607a str r2, [r7, #4]
  53950. 8016570: 603b str r3, [r7, #0]
  53951. BaseType_t xReturn;
  53952. taskENTER_CRITICAL();
  53953. 8016572: f000 fff1 bl 8017558 <vPortEnterCritical>
  53954. {
  53955. /* Only block if a notification is not already pending. */
  53956. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  53957. 8016576: 4b29 ldr r3, [pc, #164] @ (801661c <xTaskNotifyWait+0xb8>)
  53958. 8016578: 681b ldr r3, [r3, #0]
  53959. 801657a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53960. 801657e: b2db uxtb r3, r3
  53961. 8016580: 2b02 cmp r3, #2
  53962. 8016582: d01c beq.n 80165be <xTaskNotifyWait+0x5a>
  53963. {
  53964. /* Clear bits in the task's notification value as bits may get
  53965. set by the notifying task or interrupt. This can be used to
  53966. clear the value to zero. */
  53967. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  53968. 8016584: 4b25 ldr r3, [pc, #148] @ (801661c <xTaskNotifyWait+0xb8>)
  53969. 8016586: 681b ldr r3, [r3, #0]
  53970. 8016588: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  53971. 801658c: 68fa ldr r2, [r7, #12]
  53972. 801658e: 43d2 mvns r2, r2
  53973. 8016590: 400a ands r2, r1
  53974. 8016592: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53975. /* Mark this task as waiting for a notification. */
  53976. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  53977. 8016596: 4b21 ldr r3, [pc, #132] @ (801661c <xTaskNotifyWait+0xb8>)
  53978. 8016598: 681b ldr r3, [r3, #0]
  53979. 801659a: 2201 movs r2, #1
  53980. 801659c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53981. if( xTicksToWait > ( TickType_t ) 0 )
  53982. 80165a0: 683b ldr r3, [r7, #0]
  53983. 80165a2: 2b00 cmp r3, #0
  53984. 80165a4: d00b beq.n 80165be <xTaskNotifyWait+0x5a>
  53985. {
  53986. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53987. 80165a6: 2101 movs r1, #1
  53988. 80165a8: 6838 ldr r0, [r7, #0]
  53989. 80165aa: f000 fa09 bl 80169c0 <prvAddCurrentTaskToDelayedList>
  53990. /* All ports are written to allow a yield in a critical
  53991. section (some will yield immediately, others wait until the
  53992. critical section exits) - but it is not something that
  53993. application code should ever do. */
  53994. portYIELD_WITHIN_API();
  53995. 80165ae: 4b1c ldr r3, [pc, #112] @ (8016620 <xTaskNotifyWait+0xbc>)
  53996. 80165b0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53997. 80165b4: 601a str r2, [r3, #0]
  53998. 80165b6: f3bf 8f4f dsb sy
  53999. 80165ba: f3bf 8f6f isb sy
  54000. else
  54001. {
  54002. mtCOVERAGE_TEST_MARKER();
  54003. }
  54004. }
  54005. taskEXIT_CRITICAL();
  54006. 80165be: f000 fffd bl 80175bc <vPortExitCritical>
  54007. taskENTER_CRITICAL();
  54008. 80165c2: f000 ffc9 bl 8017558 <vPortEnterCritical>
  54009. {
  54010. traceTASK_NOTIFY_WAIT();
  54011. if( pulNotificationValue != NULL )
  54012. 80165c6: 687b ldr r3, [r7, #4]
  54013. 80165c8: 2b00 cmp r3, #0
  54014. 80165ca: d005 beq.n 80165d8 <xTaskNotifyWait+0x74>
  54015. {
  54016. /* Output the current notification value, which may or may not
  54017. have changed. */
  54018. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  54019. 80165cc: 4b13 ldr r3, [pc, #76] @ (801661c <xTaskNotifyWait+0xb8>)
  54020. 80165ce: 681b ldr r3, [r3, #0]
  54021. 80165d0: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54022. 80165d4: 687b ldr r3, [r7, #4]
  54023. 80165d6: 601a str r2, [r3, #0]
  54024. /* If ucNotifyValue is set then either the task never entered the
  54025. blocked state (because a notification was already pending) or the
  54026. task unblocked because of a notification. Otherwise the task
  54027. unblocked because of a timeout. */
  54028. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54029. 80165d8: 4b10 ldr r3, [pc, #64] @ (801661c <xTaskNotifyWait+0xb8>)
  54030. 80165da: 681b ldr r3, [r3, #0]
  54031. 80165dc: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54032. 80165e0: b2db uxtb r3, r3
  54033. 80165e2: 2b02 cmp r3, #2
  54034. 80165e4: d002 beq.n 80165ec <xTaskNotifyWait+0x88>
  54035. {
  54036. /* A notification was not received. */
  54037. xReturn = pdFALSE;
  54038. 80165e6: 2300 movs r3, #0
  54039. 80165e8: 617b str r3, [r7, #20]
  54040. 80165ea: e00a b.n 8016602 <xTaskNotifyWait+0x9e>
  54041. }
  54042. else
  54043. {
  54044. /* A notification was already pending or a notification was
  54045. received while the task was waiting. */
  54046. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  54047. 80165ec: 4b0b ldr r3, [pc, #44] @ (801661c <xTaskNotifyWait+0xb8>)
  54048. 80165ee: 681b ldr r3, [r3, #0]
  54049. 80165f0: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54050. 80165f4: 68ba ldr r2, [r7, #8]
  54051. 80165f6: 43d2 mvns r2, r2
  54052. 80165f8: 400a ands r2, r1
  54053. 80165fa: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54054. xReturn = pdTRUE;
  54055. 80165fe: 2301 movs r3, #1
  54056. 8016600: 617b str r3, [r7, #20]
  54057. }
  54058. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54059. 8016602: 4b06 ldr r3, [pc, #24] @ (801661c <xTaskNotifyWait+0xb8>)
  54060. 8016604: 681b ldr r3, [r3, #0]
  54061. 8016606: 2200 movs r2, #0
  54062. 8016608: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54063. }
  54064. taskEXIT_CRITICAL();
  54065. 801660c: f000 ffd6 bl 80175bc <vPortExitCritical>
  54066. return xReturn;
  54067. 8016610: 697b ldr r3, [r7, #20]
  54068. }
  54069. 8016612: 4618 mov r0, r3
  54070. 8016614: 3718 adds r7, #24
  54071. 8016616: 46bd mov sp, r7
  54072. 8016618: bd80 pop {r7, pc}
  54073. 801661a: bf00 nop
  54074. 801661c: 24002694 .word 0x24002694
  54075. 8016620: e000ed04 .word 0xe000ed04
  54076. 08016624 <xTaskGenericNotify>:
  54077. /*-----------------------------------------------------------*/
  54078. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54079. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  54080. {
  54081. 8016624: b580 push {r7, lr}
  54082. 8016626: b08a sub sp, #40 @ 0x28
  54083. 8016628: af00 add r7, sp, #0
  54084. 801662a: 60f8 str r0, [r7, #12]
  54085. 801662c: 60b9 str r1, [r7, #8]
  54086. 801662e: 603b str r3, [r7, #0]
  54087. 8016630: 4613 mov r3, r2
  54088. 8016632: 71fb strb r3, [r7, #7]
  54089. TCB_t * pxTCB;
  54090. BaseType_t xReturn = pdPASS;
  54091. 8016634: 2301 movs r3, #1
  54092. 8016636: 627b str r3, [r7, #36] @ 0x24
  54093. uint8_t ucOriginalNotifyState;
  54094. configASSERT( xTaskToNotify );
  54095. 8016638: 68fb ldr r3, [r7, #12]
  54096. 801663a: 2b00 cmp r3, #0
  54097. 801663c: d10b bne.n 8016656 <xTaskGenericNotify+0x32>
  54098. __asm volatile
  54099. 801663e: f04f 0350 mov.w r3, #80 @ 0x50
  54100. 8016642: f383 8811 msr BASEPRI, r3
  54101. 8016646: f3bf 8f6f isb sy
  54102. 801664a: f3bf 8f4f dsb sy
  54103. 801664e: 61bb str r3, [r7, #24]
  54104. }
  54105. 8016650: bf00 nop
  54106. 8016652: bf00 nop
  54107. 8016654: e7fd b.n 8016652 <xTaskGenericNotify+0x2e>
  54108. pxTCB = xTaskToNotify;
  54109. 8016656: 68fb ldr r3, [r7, #12]
  54110. 8016658: 623b str r3, [r7, #32]
  54111. taskENTER_CRITICAL();
  54112. 801665a: f000 ff7d bl 8017558 <vPortEnterCritical>
  54113. {
  54114. if( pulPreviousNotificationValue != NULL )
  54115. 801665e: 683b ldr r3, [r7, #0]
  54116. 8016660: 2b00 cmp r3, #0
  54117. 8016662: d004 beq.n 801666e <xTaskGenericNotify+0x4a>
  54118. {
  54119. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  54120. 8016664: 6a3b ldr r3, [r7, #32]
  54121. 8016666: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54122. 801666a: 683b ldr r3, [r7, #0]
  54123. 801666c: 601a str r2, [r3, #0]
  54124. }
  54125. ucOriginalNotifyState = pxTCB->ucNotifyState;
  54126. 801666e: 6a3b ldr r3, [r7, #32]
  54127. 8016670: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54128. 8016674: 77fb strb r3, [r7, #31]
  54129. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  54130. 8016676: 6a3b ldr r3, [r7, #32]
  54131. 8016678: 2202 movs r2, #2
  54132. 801667a: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54133. switch( eAction )
  54134. 801667e: 79fb ldrb r3, [r7, #7]
  54135. 8016680: 2b04 cmp r3, #4
  54136. 8016682: d82e bhi.n 80166e2 <xTaskGenericNotify+0xbe>
  54137. 8016684: a201 add r2, pc, #4 @ (adr r2, 801668c <xTaskGenericNotify+0x68>)
  54138. 8016686: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  54139. 801668a: bf00 nop
  54140. 801668c: 08016707 .word 0x08016707
  54141. 8016690: 080166a1 .word 0x080166a1
  54142. 8016694: 080166b3 .word 0x080166b3
  54143. 8016698: 080166c3 .word 0x080166c3
  54144. 801669c: 080166cd .word 0x080166cd
  54145. {
  54146. case eSetBits :
  54147. pxTCB->ulNotifiedValue |= ulValue;
  54148. 80166a0: 6a3b ldr r3, [r7, #32]
  54149. 80166a2: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54150. 80166a6: 68bb ldr r3, [r7, #8]
  54151. 80166a8: 431a orrs r2, r3
  54152. 80166aa: 6a3b ldr r3, [r7, #32]
  54153. 80166ac: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54154. break;
  54155. 80166b0: e02c b.n 801670c <xTaskGenericNotify+0xe8>
  54156. case eIncrement :
  54157. ( pxTCB->ulNotifiedValue )++;
  54158. 80166b2: 6a3b ldr r3, [r7, #32]
  54159. 80166b4: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54160. 80166b8: 1c5a adds r2, r3, #1
  54161. 80166ba: 6a3b ldr r3, [r7, #32]
  54162. 80166bc: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54163. break;
  54164. 80166c0: e024 b.n 801670c <xTaskGenericNotify+0xe8>
  54165. case eSetValueWithOverwrite :
  54166. pxTCB->ulNotifiedValue = ulValue;
  54167. 80166c2: 6a3b ldr r3, [r7, #32]
  54168. 80166c4: 68ba ldr r2, [r7, #8]
  54169. 80166c6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54170. break;
  54171. 80166ca: e01f b.n 801670c <xTaskGenericNotify+0xe8>
  54172. case eSetValueWithoutOverwrite :
  54173. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  54174. 80166cc: 7ffb ldrb r3, [r7, #31]
  54175. 80166ce: 2b02 cmp r3, #2
  54176. 80166d0: d004 beq.n 80166dc <xTaskGenericNotify+0xb8>
  54177. {
  54178. pxTCB->ulNotifiedValue = ulValue;
  54179. 80166d2: 6a3b ldr r3, [r7, #32]
  54180. 80166d4: 68ba ldr r2, [r7, #8]
  54181. 80166d6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54182. else
  54183. {
  54184. /* The value could not be written to the task. */
  54185. xReturn = pdFAIL;
  54186. }
  54187. break;
  54188. 80166da: e017 b.n 801670c <xTaskGenericNotify+0xe8>
  54189. xReturn = pdFAIL;
  54190. 80166dc: 2300 movs r3, #0
  54191. 80166de: 627b str r3, [r7, #36] @ 0x24
  54192. break;
  54193. 80166e0: e014 b.n 801670c <xTaskGenericNotify+0xe8>
  54194. default:
  54195. /* Should not get here if all enums are handled.
  54196. Artificially force an assert by testing a value the
  54197. compiler can't assume is const. */
  54198. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  54199. 80166e2: 6a3b ldr r3, [r7, #32]
  54200. 80166e4: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54201. 80166e8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54202. 80166ec: d00d beq.n 801670a <xTaskGenericNotify+0xe6>
  54203. __asm volatile
  54204. 80166ee: f04f 0350 mov.w r3, #80 @ 0x50
  54205. 80166f2: f383 8811 msr BASEPRI, r3
  54206. 80166f6: f3bf 8f6f isb sy
  54207. 80166fa: f3bf 8f4f dsb sy
  54208. 80166fe: 617b str r3, [r7, #20]
  54209. }
  54210. 8016700: bf00 nop
  54211. 8016702: bf00 nop
  54212. 8016704: e7fd b.n 8016702 <xTaskGenericNotify+0xde>
  54213. break;
  54214. 8016706: bf00 nop
  54215. 8016708: e000 b.n 801670c <xTaskGenericNotify+0xe8>
  54216. break;
  54217. 801670a: bf00 nop
  54218. traceTASK_NOTIFY();
  54219. /* If the task is in the blocked state specifically to wait for a
  54220. notification then unblock it now. */
  54221. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  54222. 801670c: 7ffb ldrb r3, [r7, #31]
  54223. 801670e: 2b01 cmp r3, #1
  54224. 8016710: d13b bne.n 801678a <xTaskGenericNotify+0x166>
  54225. {
  54226. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54227. 8016712: 6a3b ldr r3, [r7, #32]
  54228. 8016714: 3304 adds r3, #4
  54229. 8016716: 4618 mov r0, r3
  54230. 8016718: f7fd fd78 bl 801420c <uxListRemove>
  54231. prvAddTaskToReadyList( pxTCB );
  54232. 801671c: 6a3b ldr r3, [r7, #32]
  54233. 801671e: 6ada ldr r2, [r3, #44] @ 0x2c
  54234. 8016720: 4b1d ldr r3, [pc, #116] @ (8016798 <xTaskGenericNotify+0x174>)
  54235. 8016722: 681b ldr r3, [r3, #0]
  54236. 8016724: 429a cmp r2, r3
  54237. 8016726: d903 bls.n 8016730 <xTaskGenericNotify+0x10c>
  54238. 8016728: 6a3b ldr r3, [r7, #32]
  54239. 801672a: 6adb ldr r3, [r3, #44] @ 0x2c
  54240. 801672c: 4a1a ldr r2, [pc, #104] @ (8016798 <xTaskGenericNotify+0x174>)
  54241. 801672e: 6013 str r3, [r2, #0]
  54242. 8016730: 6a3b ldr r3, [r7, #32]
  54243. 8016732: 6ada ldr r2, [r3, #44] @ 0x2c
  54244. 8016734: 4613 mov r3, r2
  54245. 8016736: 009b lsls r3, r3, #2
  54246. 8016738: 4413 add r3, r2
  54247. 801673a: 009b lsls r3, r3, #2
  54248. 801673c: 4a17 ldr r2, [pc, #92] @ (801679c <xTaskGenericNotify+0x178>)
  54249. 801673e: 441a add r2, r3
  54250. 8016740: 6a3b ldr r3, [r7, #32]
  54251. 8016742: 3304 adds r3, #4
  54252. 8016744: 4619 mov r1, r3
  54253. 8016746: 4610 mov r0, r2
  54254. 8016748: f7fd fd03 bl 8014152 <vListInsertEnd>
  54255. /* The task should not have been on an event list. */
  54256. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  54257. 801674c: 6a3b ldr r3, [r7, #32]
  54258. 801674e: 6a9b ldr r3, [r3, #40] @ 0x28
  54259. 8016750: 2b00 cmp r3, #0
  54260. 8016752: d00b beq.n 801676c <xTaskGenericNotify+0x148>
  54261. __asm volatile
  54262. 8016754: f04f 0350 mov.w r3, #80 @ 0x50
  54263. 8016758: f383 8811 msr BASEPRI, r3
  54264. 801675c: f3bf 8f6f isb sy
  54265. 8016760: f3bf 8f4f dsb sy
  54266. 8016764: 613b str r3, [r7, #16]
  54267. }
  54268. 8016766: bf00 nop
  54269. 8016768: bf00 nop
  54270. 801676a: e7fd b.n 8016768 <xTaskGenericNotify+0x144>
  54271. earliest possible time. */
  54272. prvResetNextTaskUnblockTime();
  54273. }
  54274. #endif
  54275. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  54276. 801676c: 6a3b ldr r3, [r7, #32]
  54277. 801676e: 6ada ldr r2, [r3, #44] @ 0x2c
  54278. 8016770: 4b0b ldr r3, [pc, #44] @ (80167a0 <xTaskGenericNotify+0x17c>)
  54279. 8016772: 681b ldr r3, [r3, #0]
  54280. 8016774: 6adb ldr r3, [r3, #44] @ 0x2c
  54281. 8016776: 429a cmp r2, r3
  54282. 8016778: d907 bls.n 801678a <xTaskGenericNotify+0x166>
  54283. {
  54284. /* The notified task has a priority above the currently
  54285. executing task so a yield is required. */
  54286. taskYIELD_IF_USING_PREEMPTION();
  54287. 801677a: 4b0a ldr r3, [pc, #40] @ (80167a4 <xTaskGenericNotify+0x180>)
  54288. 801677c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54289. 8016780: 601a str r2, [r3, #0]
  54290. 8016782: f3bf 8f4f dsb sy
  54291. 8016786: f3bf 8f6f isb sy
  54292. else
  54293. {
  54294. mtCOVERAGE_TEST_MARKER();
  54295. }
  54296. }
  54297. taskEXIT_CRITICAL();
  54298. 801678a: f000 ff17 bl 80175bc <vPortExitCritical>
  54299. return xReturn;
  54300. 801678e: 6a7b ldr r3, [r7, #36] @ 0x24
  54301. }
  54302. 8016790: 4618 mov r0, r3
  54303. 8016792: 3728 adds r7, #40 @ 0x28
  54304. 8016794: 46bd mov sp, r7
  54305. 8016796: bd80 pop {r7, pc}
  54306. 8016798: 24002b70 .word 0x24002b70
  54307. 801679c: 24002698 .word 0x24002698
  54308. 80167a0: 24002694 .word 0x24002694
  54309. 80167a4: e000ed04 .word 0xe000ed04
  54310. 080167a8 <xTaskGenericNotifyFromISR>:
  54311. /*-----------------------------------------------------------*/
  54312. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54313. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  54314. {
  54315. 80167a8: b580 push {r7, lr}
  54316. 80167aa: b08e sub sp, #56 @ 0x38
  54317. 80167ac: af00 add r7, sp, #0
  54318. 80167ae: 60f8 str r0, [r7, #12]
  54319. 80167b0: 60b9 str r1, [r7, #8]
  54320. 80167b2: 603b str r3, [r7, #0]
  54321. 80167b4: 4613 mov r3, r2
  54322. 80167b6: 71fb strb r3, [r7, #7]
  54323. TCB_t * pxTCB;
  54324. uint8_t ucOriginalNotifyState;
  54325. BaseType_t xReturn = pdPASS;
  54326. 80167b8: 2301 movs r3, #1
  54327. 80167ba: 637b str r3, [r7, #52] @ 0x34
  54328. UBaseType_t uxSavedInterruptStatus;
  54329. configASSERT( xTaskToNotify );
  54330. 80167bc: 68fb ldr r3, [r7, #12]
  54331. 80167be: 2b00 cmp r3, #0
  54332. 80167c0: d10b bne.n 80167da <xTaskGenericNotifyFromISR+0x32>
  54333. __asm volatile
  54334. 80167c2: f04f 0350 mov.w r3, #80 @ 0x50
  54335. 80167c6: f383 8811 msr BASEPRI, r3
  54336. 80167ca: f3bf 8f6f isb sy
  54337. 80167ce: f3bf 8f4f dsb sy
  54338. 80167d2: 627b str r3, [r7, #36] @ 0x24
  54339. }
  54340. 80167d4: bf00 nop
  54341. 80167d6: bf00 nop
  54342. 80167d8: e7fd b.n 80167d6 <xTaskGenericNotifyFromISR+0x2e>
  54343. below the maximum system call interrupt priority. FreeRTOS maintains a
  54344. separate interrupt safe API to ensure interrupt entry is as fast and as
  54345. simple as possible. More information (albeit Cortex-M specific) is
  54346. provided on the following link:
  54347. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  54348. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  54349. 80167da: f000 ff9d bl 8017718 <vPortValidateInterruptPriority>
  54350. pxTCB = xTaskToNotify;
  54351. 80167de: 68fb ldr r3, [r7, #12]
  54352. 80167e0: 633b str r3, [r7, #48] @ 0x30
  54353. __asm volatile
  54354. 80167e2: f3ef 8211 mrs r2, BASEPRI
  54355. 80167e6: f04f 0350 mov.w r3, #80 @ 0x50
  54356. 80167ea: f383 8811 msr BASEPRI, r3
  54357. 80167ee: f3bf 8f6f isb sy
  54358. 80167f2: f3bf 8f4f dsb sy
  54359. 80167f6: 623a str r2, [r7, #32]
  54360. 80167f8: 61fb str r3, [r7, #28]
  54361. return ulOriginalBASEPRI;
  54362. 80167fa: 6a3b ldr r3, [r7, #32]
  54363. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  54364. 80167fc: 62fb str r3, [r7, #44] @ 0x2c
  54365. {
  54366. if( pulPreviousNotificationValue != NULL )
  54367. 80167fe: 683b ldr r3, [r7, #0]
  54368. 8016800: 2b00 cmp r3, #0
  54369. 8016802: d004 beq.n 801680e <xTaskGenericNotifyFromISR+0x66>
  54370. {
  54371. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  54372. 8016804: 6b3b ldr r3, [r7, #48] @ 0x30
  54373. 8016806: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54374. 801680a: 683b ldr r3, [r7, #0]
  54375. 801680c: 601a str r2, [r3, #0]
  54376. }
  54377. ucOriginalNotifyState = pxTCB->ucNotifyState;
  54378. 801680e: 6b3b ldr r3, [r7, #48] @ 0x30
  54379. 8016810: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54380. 8016814: f887 302b strb.w r3, [r7, #43] @ 0x2b
  54381. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  54382. 8016818: 6b3b ldr r3, [r7, #48] @ 0x30
  54383. 801681a: 2202 movs r2, #2
  54384. 801681c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54385. switch( eAction )
  54386. 8016820: 79fb ldrb r3, [r7, #7]
  54387. 8016822: 2b04 cmp r3, #4
  54388. 8016824: d82e bhi.n 8016884 <xTaskGenericNotifyFromISR+0xdc>
  54389. 8016826: a201 add r2, pc, #4 @ (adr r2, 801682c <xTaskGenericNotifyFromISR+0x84>)
  54390. 8016828: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  54391. 801682c: 080168a9 .word 0x080168a9
  54392. 8016830: 08016841 .word 0x08016841
  54393. 8016834: 08016853 .word 0x08016853
  54394. 8016838: 08016863 .word 0x08016863
  54395. 801683c: 0801686d .word 0x0801686d
  54396. {
  54397. case eSetBits :
  54398. pxTCB->ulNotifiedValue |= ulValue;
  54399. 8016840: 6b3b ldr r3, [r7, #48] @ 0x30
  54400. 8016842: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54401. 8016846: 68bb ldr r3, [r7, #8]
  54402. 8016848: 431a orrs r2, r3
  54403. 801684a: 6b3b ldr r3, [r7, #48] @ 0x30
  54404. 801684c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54405. break;
  54406. 8016850: e02d b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54407. case eIncrement :
  54408. ( pxTCB->ulNotifiedValue )++;
  54409. 8016852: 6b3b ldr r3, [r7, #48] @ 0x30
  54410. 8016854: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54411. 8016858: 1c5a adds r2, r3, #1
  54412. 801685a: 6b3b ldr r3, [r7, #48] @ 0x30
  54413. 801685c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54414. break;
  54415. 8016860: e025 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54416. case eSetValueWithOverwrite :
  54417. pxTCB->ulNotifiedValue = ulValue;
  54418. 8016862: 6b3b ldr r3, [r7, #48] @ 0x30
  54419. 8016864: 68ba ldr r2, [r7, #8]
  54420. 8016866: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54421. break;
  54422. 801686a: e020 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54423. case eSetValueWithoutOverwrite :
  54424. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  54425. 801686c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  54426. 8016870: 2b02 cmp r3, #2
  54427. 8016872: d004 beq.n 801687e <xTaskGenericNotifyFromISR+0xd6>
  54428. {
  54429. pxTCB->ulNotifiedValue = ulValue;
  54430. 8016874: 6b3b ldr r3, [r7, #48] @ 0x30
  54431. 8016876: 68ba ldr r2, [r7, #8]
  54432. 8016878: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54433. else
  54434. {
  54435. /* The value could not be written to the task. */
  54436. xReturn = pdFAIL;
  54437. }
  54438. break;
  54439. 801687c: e017 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54440. xReturn = pdFAIL;
  54441. 801687e: 2300 movs r3, #0
  54442. 8016880: 637b str r3, [r7, #52] @ 0x34
  54443. break;
  54444. 8016882: e014 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54445. default:
  54446. /* Should not get here if all enums are handled.
  54447. Artificially force an assert by testing a value the
  54448. compiler can't assume is const. */
  54449. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  54450. 8016884: 6b3b ldr r3, [r7, #48] @ 0x30
  54451. 8016886: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54452. 801688a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54453. 801688e: d00d beq.n 80168ac <xTaskGenericNotifyFromISR+0x104>
  54454. __asm volatile
  54455. 8016890: f04f 0350 mov.w r3, #80 @ 0x50
  54456. 8016894: f383 8811 msr BASEPRI, r3
  54457. 8016898: f3bf 8f6f isb sy
  54458. 801689c: f3bf 8f4f dsb sy
  54459. 80168a0: 61bb str r3, [r7, #24]
  54460. }
  54461. 80168a2: bf00 nop
  54462. 80168a4: bf00 nop
  54463. 80168a6: e7fd b.n 80168a4 <xTaskGenericNotifyFromISR+0xfc>
  54464. break;
  54465. 80168a8: bf00 nop
  54466. 80168aa: e000 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54467. break;
  54468. 80168ac: bf00 nop
  54469. traceTASK_NOTIFY_FROM_ISR();
  54470. /* If the task is in the blocked state specifically to wait for a
  54471. notification then unblock it now. */
  54472. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  54473. 80168ae: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  54474. 80168b2: 2b01 cmp r3, #1
  54475. 80168b4: d147 bne.n 8016946 <xTaskGenericNotifyFromISR+0x19e>
  54476. {
  54477. /* The task should not have been on an event list. */
  54478. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  54479. 80168b6: 6b3b ldr r3, [r7, #48] @ 0x30
  54480. 80168b8: 6a9b ldr r3, [r3, #40] @ 0x28
  54481. 80168ba: 2b00 cmp r3, #0
  54482. 80168bc: d00b beq.n 80168d6 <xTaskGenericNotifyFromISR+0x12e>
  54483. __asm volatile
  54484. 80168be: f04f 0350 mov.w r3, #80 @ 0x50
  54485. 80168c2: f383 8811 msr BASEPRI, r3
  54486. 80168c6: f3bf 8f6f isb sy
  54487. 80168ca: f3bf 8f4f dsb sy
  54488. 80168ce: 617b str r3, [r7, #20]
  54489. }
  54490. 80168d0: bf00 nop
  54491. 80168d2: bf00 nop
  54492. 80168d4: e7fd b.n 80168d2 <xTaskGenericNotifyFromISR+0x12a>
  54493. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  54494. 80168d6: 4b21 ldr r3, [pc, #132] @ (801695c <xTaskGenericNotifyFromISR+0x1b4>)
  54495. 80168d8: 681b ldr r3, [r3, #0]
  54496. 80168da: 2b00 cmp r3, #0
  54497. 80168dc: d11d bne.n 801691a <xTaskGenericNotifyFromISR+0x172>
  54498. {
  54499. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54500. 80168de: 6b3b ldr r3, [r7, #48] @ 0x30
  54501. 80168e0: 3304 adds r3, #4
  54502. 80168e2: 4618 mov r0, r3
  54503. 80168e4: f7fd fc92 bl 801420c <uxListRemove>
  54504. prvAddTaskToReadyList( pxTCB );
  54505. 80168e8: 6b3b ldr r3, [r7, #48] @ 0x30
  54506. 80168ea: 6ada ldr r2, [r3, #44] @ 0x2c
  54507. 80168ec: 4b1c ldr r3, [pc, #112] @ (8016960 <xTaskGenericNotifyFromISR+0x1b8>)
  54508. 80168ee: 681b ldr r3, [r3, #0]
  54509. 80168f0: 429a cmp r2, r3
  54510. 80168f2: d903 bls.n 80168fc <xTaskGenericNotifyFromISR+0x154>
  54511. 80168f4: 6b3b ldr r3, [r7, #48] @ 0x30
  54512. 80168f6: 6adb ldr r3, [r3, #44] @ 0x2c
  54513. 80168f8: 4a19 ldr r2, [pc, #100] @ (8016960 <xTaskGenericNotifyFromISR+0x1b8>)
  54514. 80168fa: 6013 str r3, [r2, #0]
  54515. 80168fc: 6b3b ldr r3, [r7, #48] @ 0x30
  54516. 80168fe: 6ada ldr r2, [r3, #44] @ 0x2c
  54517. 8016900: 4613 mov r3, r2
  54518. 8016902: 009b lsls r3, r3, #2
  54519. 8016904: 4413 add r3, r2
  54520. 8016906: 009b lsls r3, r3, #2
  54521. 8016908: 4a16 ldr r2, [pc, #88] @ (8016964 <xTaskGenericNotifyFromISR+0x1bc>)
  54522. 801690a: 441a add r2, r3
  54523. 801690c: 6b3b ldr r3, [r7, #48] @ 0x30
  54524. 801690e: 3304 adds r3, #4
  54525. 8016910: 4619 mov r1, r3
  54526. 8016912: 4610 mov r0, r2
  54527. 8016914: f7fd fc1d bl 8014152 <vListInsertEnd>
  54528. 8016918: e005 b.n 8016926 <xTaskGenericNotifyFromISR+0x17e>
  54529. }
  54530. else
  54531. {
  54532. /* The delayed and ready lists cannot be accessed, so hold
  54533. this task pending until the scheduler is resumed. */
  54534. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  54535. 801691a: 6b3b ldr r3, [r7, #48] @ 0x30
  54536. 801691c: 3318 adds r3, #24
  54537. 801691e: 4619 mov r1, r3
  54538. 8016920: 4811 ldr r0, [pc, #68] @ (8016968 <xTaskGenericNotifyFromISR+0x1c0>)
  54539. 8016922: f7fd fc16 bl 8014152 <vListInsertEnd>
  54540. }
  54541. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  54542. 8016926: 6b3b ldr r3, [r7, #48] @ 0x30
  54543. 8016928: 6ada ldr r2, [r3, #44] @ 0x2c
  54544. 801692a: 4b10 ldr r3, [pc, #64] @ (801696c <xTaskGenericNotifyFromISR+0x1c4>)
  54545. 801692c: 681b ldr r3, [r3, #0]
  54546. 801692e: 6adb ldr r3, [r3, #44] @ 0x2c
  54547. 8016930: 429a cmp r2, r3
  54548. 8016932: d908 bls.n 8016946 <xTaskGenericNotifyFromISR+0x19e>
  54549. {
  54550. /* The notified task has a priority above the currently
  54551. executing task so a yield is required. */
  54552. if( pxHigherPriorityTaskWoken != NULL )
  54553. 8016934: 6c3b ldr r3, [r7, #64] @ 0x40
  54554. 8016936: 2b00 cmp r3, #0
  54555. 8016938: d002 beq.n 8016940 <xTaskGenericNotifyFromISR+0x198>
  54556. {
  54557. *pxHigherPriorityTaskWoken = pdTRUE;
  54558. 801693a: 6c3b ldr r3, [r7, #64] @ 0x40
  54559. 801693c: 2201 movs r2, #1
  54560. 801693e: 601a str r2, [r3, #0]
  54561. }
  54562. /* Mark that a yield is pending in case the user is not
  54563. using the "xHigherPriorityTaskWoken" parameter to an ISR
  54564. safe FreeRTOS function. */
  54565. xYieldPending = pdTRUE;
  54566. 8016940: 4b0b ldr r3, [pc, #44] @ (8016970 <xTaskGenericNotifyFromISR+0x1c8>)
  54567. 8016942: 2201 movs r2, #1
  54568. 8016944: 601a str r2, [r3, #0]
  54569. 8016946: 6afb ldr r3, [r7, #44] @ 0x2c
  54570. 8016948: 613b str r3, [r7, #16]
  54571. __asm volatile
  54572. 801694a: 693b ldr r3, [r7, #16]
  54573. 801694c: f383 8811 msr BASEPRI, r3
  54574. }
  54575. 8016950: bf00 nop
  54576. }
  54577. }
  54578. }
  54579. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  54580. return xReturn;
  54581. 8016952: 6b7b ldr r3, [r7, #52] @ 0x34
  54582. }
  54583. 8016954: 4618 mov r0, r3
  54584. 8016956: 3738 adds r7, #56 @ 0x38
  54585. 8016958: 46bd mov sp, r7
  54586. 801695a: bd80 pop {r7, pc}
  54587. 801695c: 24002b90 .word 0x24002b90
  54588. 8016960: 24002b70 .word 0x24002b70
  54589. 8016964: 24002698 .word 0x24002698
  54590. 8016968: 24002b28 .word 0x24002b28
  54591. 801696c: 24002694 .word 0x24002694
  54592. 8016970: 24002b7c .word 0x24002b7c
  54593. 08016974 <xTaskNotifyStateClear>:
  54594. /*-----------------------------------------------------------*/
  54595. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54596. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  54597. {
  54598. 8016974: b580 push {r7, lr}
  54599. 8016976: b084 sub sp, #16
  54600. 8016978: af00 add r7, sp, #0
  54601. 801697a: 6078 str r0, [r7, #4]
  54602. TCB_t *pxTCB;
  54603. BaseType_t xReturn;
  54604. /* If null is passed in here then it is the calling task that is having
  54605. its notification state cleared. */
  54606. pxTCB = prvGetTCBFromHandle( xTask );
  54607. 801697c: 687b ldr r3, [r7, #4]
  54608. 801697e: 2b00 cmp r3, #0
  54609. 8016980: d102 bne.n 8016988 <xTaskNotifyStateClear+0x14>
  54610. 8016982: 4b0e ldr r3, [pc, #56] @ (80169bc <xTaskNotifyStateClear+0x48>)
  54611. 8016984: 681b ldr r3, [r3, #0]
  54612. 8016986: e000 b.n 801698a <xTaskNotifyStateClear+0x16>
  54613. 8016988: 687b ldr r3, [r7, #4]
  54614. 801698a: 60bb str r3, [r7, #8]
  54615. taskENTER_CRITICAL();
  54616. 801698c: f000 fde4 bl 8017558 <vPortEnterCritical>
  54617. {
  54618. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  54619. 8016990: 68bb ldr r3, [r7, #8]
  54620. 8016992: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54621. 8016996: b2db uxtb r3, r3
  54622. 8016998: 2b02 cmp r3, #2
  54623. 801699a: d106 bne.n 80169aa <xTaskNotifyStateClear+0x36>
  54624. {
  54625. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54626. 801699c: 68bb ldr r3, [r7, #8]
  54627. 801699e: 2200 movs r2, #0
  54628. 80169a0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54629. xReturn = pdPASS;
  54630. 80169a4: 2301 movs r3, #1
  54631. 80169a6: 60fb str r3, [r7, #12]
  54632. 80169a8: e001 b.n 80169ae <xTaskNotifyStateClear+0x3a>
  54633. }
  54634. else
  54635. {
  54636. xReturn = pdFAIL;
  54637. 80169aa: 2300 movs r3, #0
  54638. 80169ac: 60fb str r3, [r7, #12]
  54639. }
  54640. }
  54641. taskEXIT_CRITICAL();
  54642. 80169ae: f000 fe05 bl 80175bc <vPortExitCritical>
  54643. return xReturn;
  54644. 80169b2: 68fb ldr r3, [r7, #12]
  54645. }
  54646. 80169b4: 4618 mov r0, r3
  54647. 80169b6: 3710 adds r7, #16
  54648. 80169b8: 46bd mov sp, r7
  54649. 80169ba: bd80 pop {r7, pc}
  54650. 80169bc: 24002694 .word 0x24002694
  54651. 080169c0 <prvAddCurrentTaskToDelayedList>:
  54652. #endif
  54653. /*-----------------------------------------------------------*/
  54654. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  54655. {
  54656. 80169c0: b580 push {r7, lr}
  54657. 80169c2: b084 sub sp, #16
  54658. 80169c4: af00 add r7, sp, #0
  54659. 80169c6: 6078 str r0, [r7, #4]
  54660. 80169c8: 6039 str r1, [r7, #0]
  54661. TickType_t xTimeToWake;
  54662. const TickType_t xConstTickCount = xTickCount;
  54663. 80169ca: 4b21 ldr r3, [pc, #132] @ (8016a50 <prvAddCurrentTaskToDelayedList+0x90>)
  54664. 80169cc: 681b ldr r3, [r3, #0]
  54665. 80169ce: 60fb str r3, [r7, #12]
  54666. }
  54667. #endif
  54668. /* Remove the task from the ready list before adding it to the blocked list
  54669. as the same list item is used for both lists. */
  54670. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54671. 80169d0: 4b20 ldr r3, [pc, #128] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54672. 80169d2: 681b ldr r3, [r3, #0]
  54673. 80169d4: 3304 adds r3, #4
  54674. 80169d6: 4618 mov r0, r3
  54675. 80169d8: f7fd fc18 bl 801420c <uxListRemove>
  54676. mtCOVERAGE_TEST_MARKER();
  54677. }
  54678. #if ( INCLUDE_vTaskSuspend == 1 )
  54679. {
  54680. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  54681. 80169dc: 687b ldr r3, [r7, #4]
  54682. 80169de: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54683. 80169e2: d10a bne.n 80169fa <prvAddCurrentTaskToDelayedList+0x3a>
  54684. 80169e4: 683b ldr r3, [r7, #0]
  54685. 80169e6: 2b00 cmp r3, #0
  54686. 80169e8: d007 beq.n 80169fa <prvAddCurrentTaskToDelayedList+0x3a>
  54687. {
  54688. /* Add the task to the suspended task list instead of a delayed task
  54689. list to ensure it is not woken by a timing event. It will block
  54690. indefinitely. */
  54691. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54692. 80169ea: 4b1a ldr r3, [pc, #104] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54693. 80169ec: 681b ldr r3, [r3, #0]
  54694. 80169ee: 3304 adds r3, #4
  54695. 80169f0: 4619 mov r1, r3
  54696. 80169f2: 4819 ldr r0, [pc, #100] @ (8016a58 <prvAddCurrentTaskToDelayedList+0x98>)
  54697. 80169f4: f7fd fbad bl 8014152 <vListInsertEnd>
  54698. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  54699. ( void ) xCanBlockIndefinitely;
  54700. }
  54701. #endif /* INCLUDE_vTaskSuspend */
  54702. }
  54703. 80169f8: e026 b.n 8016a48 <prvAddCurrentTaskToDelayedList+0x88>
  54704. xTimeToWake = xConstTickCount + xTicksToWait;
  54705. 80169fa: 68fa ldr r2, [r7, #12]
  54706. 80169fc: 687b ldr r3, [r7, #4]
  54707. 80169fe: 4413 add r3, r2
  54708. 8016a00: 60bb str r3, [r7, #8]
  54709. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  54710. 8016a02: 4b14 ldr r3, [pc, #80] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54711. 8016a04: 681b ldr r3, [r3, #0]
  54712. 8016a06: 68ba ldr r2, [r7, #8]
  54713. 8016a08: 605a str r2, [r3, #4]
  54714. if( xTimeToWake < xConstTickCount )
  54715. 8016a0a: 68ba ldr r2, [r7, #8]
  54716. 8016a0c: 68fb ldr r3, [r7, #12]
  54717. 8016a0e: 429a cmp r2, r3
  54718. 8016a10: d209 bcs.n 8016a26 <prvAddCurrentTaskToDelayedList+0x66>
  54719. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54720. 8016a12: 4b12 ldr r3, [pc, #72] @ (8016a5c <prvAddCurrentTaskToDelayedList+0x9c>)
  54721. 8016a14: 681a ldr r2, [r3, #0]
  54722. 8016a16: 4b0f ldr r3, [pc, #60] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54723. 8016a18: 681b ldr r3, [r3, #0]
  54724. 8016a1a: 3304 adds r3, #4
  54725. 8016a1c: 4619 mov r1, r3
  54726. 8016a1e: 4610 mov r0, r2
  54727. 8016a20: f7fd fbbb bl 801419a <vListInsert>
  54728. }
  54729. 8016a24: e010 b.n 8016a48 <prvAddCurrentTaskToDelayedList+0x88>
  54730. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54731. 8016a26: 4b0e ldr r3, [pc, #56] @ (8016a60 <prvAddCurrentTaskToDelayedList+0xa0>)
  54732. 8016a28: 681a ldr r2, [r3, #0]
  54733. 8016a2a: 4b0a ldr r3, [pc, #40] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54734. 8016a2c: 681b ldr r3, [r3, #0]
  54735. 8016a2e: 3304 adds r3, #4
  54736. 8016a30: 4619 mov r1, r3
  54737. 8016a32: 4610 mov r0, r2
  54738. 8016a34: f7fd fbb1 bl 801419a <vListInsert>
  54739. if( xTimeToWake < xNextTaskUnblockTime )
  54740. 8016a38: 4b0a ldr r3, [pc, #40] @ (8016a64 <prvAddCurrentTaskToDelayedList+0xa4>)
  54741. 8016a3a: 681b ldr r3, [r3, #0]
  54742. 8016a3c: 68ba ldr r2, [r7, #8]
  54743. 8016a3e: 429a cmp r2, r3
  54744. 8016a40: d202 bcs.n 8016a48 <prvAddCurrentTaskToDelayedList+0x88>
  54745. xNextTaskUnblockTime = xTimeToWake;
  54746. 8016a42: 4a08 ldr r2, [pc, #32] @ (8016a64 <prvAddCurrentTaskToDelayedList+0xa4>)
  54747. 8016a44: 68bb ldr r3, [r7, #8]
  54748. 8016a46: 6013 str r3, [r2, #0]
  54749. }
  54750. 8016a48: bf00 nop
  54751. 8016a4a: 3710 adds r7, #16
  54752. 8016a4c: 46bd mov sp, r7
  54753. 8016a4e: bd80 pop {r7, pc}
  54754. 8016a50: 24002b6c .word 0x24002b6c
  54755. 8016a54: 24002694 .word 0x24002694
  54756. 8016a58: 24002b54 .word 0x24002b54
  54757. 8016a5c: 24002b24 .word 0x24002b24
  54758. 8016a60: 24002b20 .word 0x24002b20
  54759. 8016a64: 24002b88 .word 0x24002b88
  54760. 08016a68 <xTimerCreateTimerTask>:
  54761. TimerCallbackFunction_t pxCallbackFunction,
  54762. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  54763. /*-----------------------------------------------------------*/
  54764. BaseType_t xTimerCreateTimerTask( void )
  54765. {
  54766. 8016a68: b580 push {r7, lr}
  54767. 8016a6a: b08a sub sp, #40 @ 0x28
  54768. 8016a6c: af04 add r7, sp, #16
  54769. BaseType_t xReturn = pdFAIL;
  54770. 8016a6e: 2300 movs r3, #0
  54771. 8016a70: 617b str r3, [r7, #20]
  54772. /* This function is called when the scheduler is started if
  54773. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  54774. timer service task has been created/initialised. If timers have already
  54775. been created then the initialisation will already have been performed. */
  54776. prvCheckForValidListAndQueue();
  54777. 8016a72: f000 fbb1 bl 80171d8 <prvCheckForValidListAndQueue>
  54778. if( xTimerQueue != NULL )
  54779. 8016a76: 4b1d ldr r3, [pc, #116] @ (8016aec <xTimerCreateTimerTask+0x84>)
  54780. 8016a78: 681b ldr r3, [r3, #0]
  54781. 8016a7a: 2b00 cmp r3, #0
  54782. 8016a7c: d021 beq.n 8016ac2 <xTimerCreateTimerTask+0x5a>
  54783. {
  54784. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  54785. {
  54786. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  54787. 8016a7e: 2300 movs r3, #0
  54788. 8016a80: 60fb str r3, [r7, #12]
  54789. StackType_t *pxTimerTaskStackBuffer = NULL;
  54790. 8016a82: 2300 movs r3, #0
  54791. 8016a84: 60bb str r3, [r7, #8]
  54792. uint32_t ulTimerTaskStackSize;
  54793. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  54794. 8016a86: 1d3a adds r2, r7, #4
  54795. 8016a88: f107 0108 add.w r1, r7, #8
  54796. 8016a8c: f107 030c add.w r3, r7, #12
  54797. 8016a90: 4618 mov r0, r3
  54798. 8016a92: f7fd fb17 bl 80140c4 <vApplicationGetTimerTaskMemory>
  54799. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  54800. 8016a96: 6879 ldr r1, [r7, #4]
  54801. 8016a98: 68bb ldr r3, [r7, #8]
  54802. 8016a9a: 68fa ldr r2, [r7, #12]
  54803. 8016a9c: 9202 str r2, [sp, #8]
  54804. 8016a9e: 9301 str r3, [sp, #4]
  54805. 8016aa0: 2302 movs r3, #2
  54806. 8016aa2: 9300 str r3, [sp, #0]
  54807. 8016aa4: 2300 movs r3, #0
  54808. 8016aa6: 460a mov r2, r1
  54809. 8016aa8: 4911 ldr r1, [pc, #68] @ (8016af0 <xTimerCreateTimerTask+0x88>)
  54810. 8016aaa: 4812 ldr r0, [pc, #72] @ (8016af4 <xTimerCreateTimerTask+0x8c>)
  54811. 8016aac: f7fe fd2f bl 801550e <xTaskCreateStatic>
  54812. 8016ab0: 4603 mov r3, r0
  54813. 8016ab2: 4a11 ldr r2, [pc, #68] @ (8016af8 <xTimerCreateTimerTask+0x90>)
  54814. 8016ab4: 6013 str r3, [r2, #0]
  54815. NULL,
  54816. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  54817. pxTimerTaskStackBuffer,
  54818. pxTimerTaskTCBBuffer );
  54819. if( xTimerTaskHandle != NULL )
  54820. 8016ab6: 4b10 ldr r3, [pc, #64] @ (8016af8 <xTimerCreateTimerTask+0x90>)
  54821. 8016ab8: 681b ldr r3, [r3, #0]
  54822. 8016aba: 2b00 cmp r3, #0
  54823. 8016abc: d001 beq.n 8016ac2 <xTimerCreateTimerTask+0x5a>
  54824. {
  54825. xReturn = pdPASS;
  54826. 8016abe: 2301 movs r3, #1
  54827. 8016ac0: 617b str r3, [r7, #20]
  54828. else
  54829. {
  54830. mtCOVERAGE_TEST_MARKER();
  54831. }
  54832. configASSERT( xReturn );
  54833. 8016ac2: 697b ldr r3, [r7, #20]
  54834. 8016ac4: 2b00 cmp r3, #0
  54835. 8016ac6: d10b bne.n 8016ae0 <xTimerCreateTimerTask+0x78>
  54836. __asm volatile
  54837. 8016ac8: f04f 0350 mov.w r3, #80 @ 0x50
  54838. 8016acc: f383 8811 msr BASEPRI, r3
  54839. 8016ad0: f3bf 8f6f isb sy
  54840. 8016ad4: f3bf 8f4f dsb sy
  54841. 8016ad8: 613b str r3, [r7, #16]
  54842. }
  54843. 8016ada: bf00 nop
  54844. 8016adc: bf00 nop
  54845. 8016ade: e7fd b.n 8016adc <xTimerCreateTimerTask+0x74>
  54846. return xReturn;
  54847. 8016ae0: 697b ldr r3, [r7, #20]
  54848. }
  54849. 8016ae2: 4618 mov r0, r3
  54850. 8016ae4: 3718 adds r7, #24
  54851. 8016ae6: 46bd mov sp, r7
  54852. 8016ae8: bd80 pop {r7, pc}
  54853. 8016aea: bf00 nop
  54854. 8016aec: 24002bc4 .word 0x24002bc4
  54855. 8016af0: 08018ba4 .word 0x08018ba4
  54856. 8016af4: 08016d71 .word 0x08016d71
  54857. 8016af8: 24002bc8 .word 0x24002bc8
  54858. 08016afc <xTimerCreate>:
  54859. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  54860. const TickType_t xTimerPeriodInTicks,
  54861. const UBaseType_t uxAutoReload,
  54862. void * const pvTimerID,
  54863. TimerCallbackFunction_t pxCallbackFunction )
  54864. {
  54865. 8016afc: b580 push {r7, lr}
  54866. 8016afe: b088 sub sp, #32
  54867. 8016b00: af02 add r7, sp, #8
  54868. 8016b02: 60f8 str r0, [r7, #12]
  54869. 8016b04: 60b9 str r1, [r7, #8]
  54870. 8016b06: 607a str r2, [r7, #4]
  54871. 8016b08: 603b str r3, [r7, #0]
  54872. Timer_t *pxNewTimer;
  54873. 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. */
  54874. 8016b0a: 202c movs r0, #44 @ 0x2c
  54875. 8016b0c: f000 fe46 bl 801779c <pvPortMalloc>
  54876. 8016b10: 6178 str r0, [r7, #20]
  54877. if( pxNewTimer != NULL )
  54878. 8016b12: 697b ldr r3, [r7, #20]
  54879. 8016b14: 2b00 cmp r3, #0
  54880. 8016b16: d00d beq.n 8016b34 <xTimerCreate+0x38>
  54881. {
  54882. /* Status is thus far zero as the timer is not created statically
  54883. and has not been started. The auto-reload bit may get set in
  54884. prvInitialiseNewTimer. */
  54885. pxNewTimer->ucStatus = 0x00;
  54886. 8016b18: 697b ldr r3, [r7, #20]
  54887. 8016b1a: 2200 movs r2, #0
  54888. 8016b1c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54889. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54890. 8016b20: 697b ldr r3, [r7, #20]
  54891. 8016b22: 9301 str r3, [sp, #4]
  54892. 8016b24: 6a3b ldr r3, [r7, #32]
  54893. 8016b26: 9300 str r3, [sp, #0]
  54894. 8016b28: 683b ldr r3, [r7, #0]
  54895. 8016b2a: 687a ldr r2, [r7, #4]
  54896. 8016b2c: 68b9 ldr r1, [r7, #8]
  54897. 8016b2e: 68f8 ldr r0, [r7, #12]
  54898. 8016b30: f000 f845 bl 8016bbe <prvInitialiseNewTimer>
  54899. }
  54900. return pxNewTimer;
  54901. 8016b34: 697b ldr r3, [r7, #20]
  54902. }
  54903. 8016b36: 4618 mov r0, r3
  54904. 8016b38: 3718 adds r7, #24
  54905. 8016b3a: 46bd mov sp, r7
  54906. 8016b3c: bd80 pop {r7, pc}
  54907. 08016b3e <xTimerCreateStatic>:
  54908. const TickType_t xTimerPeriodInTicks,
  54909. const UBaseType_t uxAutoReload,
  54910. void * const pvTimerID,
  54911. TimerCallbackFunction_t pxCallbackFunction,
  54912. StaticTimer_t *pxTimerBuffer )
  54913. {
  54914. 8016b3e: b580 push {r7, lr}
  54915. 8016b40: b08a sub sp, #40 @ 0x28
  54916. 8016b42: af02 add r7, sp, #8
  54917. 8016b44: 60f8 str r0, [r7, #12]
  54918. 8016b46: 60b9 str r1, [r7, #8]
  54919. 8016b48: 607a str r2, [r7, #4]
  54920. 8016b4a: 603b str r3, [r7, #0]
  54921. #if( configASSERT_DEFINED == 1 )
  54922. {
  54923. /* Sanity check that the size of the structure used to declare a
  54924. variable of type StaticTimer_t equals the size of the real timer
  54925. structure. */
  54926. volatile size_t xSize = sizeof( StaticTimer_t );
  54927. 8016b4c: 232c movs r3, #44 @ 0x2c
  54928. 8016b4e: 613b str r3, [r7, #16]
  54929. configASSERT( xSize == sizeof( Timer_t ) );
  54930. 8016b50: 693b ldr r3, [r7, #16]
  54931. 8016b52: 2b2c cmp r3, #44 @ 0x2c
  54932. 8016b54: d00b beq.n 8016b6e <xTimerCreateStatic+0x30>
  54933. __asm volatile
  54934. 8016b56: f04f 0350 mov.w r3, #80 @ 0x50
  54935. 8016b5a: f383 8811 msr BASEPRI, r3
  54936. 8016b5e: f3bf 8f6f isb sy
  54937. 8016b62: f3bf 8f4f dsb sy
  54938. 8016b66: 61bb str r3, [r7, #24]
  54939. }
  54940. 8016b68: bf00 nop
  54941. 8016b6a: bf00 nop
  54942. 8016b6c: e7fd b.n 8016b6a <xTimerCreateStatic+0x2c>
  54943. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  54944. 8016b6e: 693b ldr r3, [r7, #16]
  54945. }
  54946. #endif /* configASSERT_DEFINED */
  54947. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  54948. configASSERT( pxTimerBuffer );
  54949. 8016b70: 6afb ldr r3, [r7, #44] @ 0x2c
  54950. 8016b72: 2b00 cmp r3, #0
  54951. 8016b74: d10b bne.n 8016b8e <xTimerCreateStatic+0x50>
  54952. __asm volatile
  54953. 8016b76: f04f 0350 mov.w r3, #80 @ 0x50
  54954. 8016b7a: f383 8811 msr BASEPRI, r3
  54955. 8016b7e: f3bf 8f6f isb sy
  54956. 8016b82: f3bf 8f4f dsb sy
  54957. 8016b86: 617b str r3, [r7, #20]
  54958. }
  54959. 8016b88: bf00 nop
  54960. 8016b8a: bf00 nop
  54961. 8016b8c: e7fd b.n 8016b8a <xTimerCreateStatic+0x4c>
  54962. 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. */
  54963. 8016b8e: 6afb ldr r3, [r7, #44] @ 0x2c
  54964. 8016b90: 61fb str r3, [r7, #28]
  54965. if( pxNewTimer != NULL )
  54966. 8016b92: 69fb ldr r3, [r7, #28]
  54967. 8016b94: 2b00 cmp r3, #0
  54968. 8016b96: d00d beq.n 8016bb4 <xTimerCreateStatic+0x76>
  54969. {
  54970. /* Timers can be created statically or dynamically so note this
  54971. timer was created statically in case it is later deleted. The
  54972. auto-reload bit may get set in prvInitialiseNewTimer(). */
  54973. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  54974. 8016b98: 69fb ldr r3, [r7, #28]
  54975. 8016b9a: 2202 movs r2, #2
  54976. 8016b9c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54977. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54978. 8016ba0: 69fb ldr r3, [r7, #28]
  54979. 8016ba2: 9301 str r3, [sp, #4]
  54980. 8016ba4: 6abb ldr r3, [r7, #40] @ 0x28
  54981. 8016ba6: 9300 str r3, [sp, #0]
  54982. 8016ba8: 683b ldr r3, [r7, #0]
  54983. 8016baa: 687a ldr r2, [r7, #4]
  54984. 8016bac: 68b9 ldr r1, [r7, #8]
  54985. 8016bae: 68f8 ldr r0, [r7, #12]
  54986. 8016bb0: f000 f805 bl 8016bbe <prvInitialiseNewTimer>
  54987. }
  54988. return pxNewTimer;
  54989. 8016bb4: 69fb ldr r3, [r7, #28]
  54990. }
  54991. 8016bb6: 4618 mov r0, r3
  54992. 8016bb8: 3720 adds r7, #32
  54993. 8016bba: 46bd mov sp, r7
  54994. 8016bbc: bd80 pop {r7, pc}
  54995. 08016bbe <prvInitialiseNewTimer>:
  54996. const TickType_t xTimerPeriodInTicks,
  54997. const UBaseType_t uxAutoReload,
  54998. void * const pvTimerID,
  54999. TimerCallbackFunction_t pxCallbackFunction,
  55000. Timer_t *pxNewTimer )
  55001. {
  55002. 8016bbe: b580 push {r7, lr}
  55003. 8016bc0: b086 sub sp, #24
  55004. 8016bc2: af00 add r7, sp, #0
  55005. 8016bc4: 60f8 str r0, [r7, #12]
  55006. 8016bc6: 60b9 str r1, [r7, #8]
  55007. 8016bc8: 607a str r2, [r7, #4]
  55008. 8016bca: 603b str r3, [r7, #0]
  55009. /* 0 is not a valid value for xTimerPeriodInTicks. */
  55010. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  55011. 8016bcc: 68bb ldr r3, [r7, #8]
  55012. 8016bce: 2b00 cmp r3, #0
  55013. 8016bd0: d10b bne.n 8016bea <prvInitialiseNewTimer+0x2c>
  55014. __asm volatile
  55015. 8016bd2: f04f 0350 mov.w r3, #80 @ 0x50
  55016. 8016bd6: f383 8811 msr BASEPRI, r3
  55017. 8016bda: f3bf 8f6f isb sy
  55018. 8016bde: f3bf 8f4f dsb sy
  55019. 8016be2: 617b str r3, [r7, #20]
  55020. }
  55021. 8016be4: bf00 nop
  55022. 8016be6: bf00 nop
  55023. 8016be8: e7fd b.n 8016be6 <prvInitialiseNewTimer+0x28>
  55024. if( pxNewTimer != NULL )
  55025. 8016bea: 6a7b ldr r3, [r7, #36] @ 0x24
  55026. 8016bec: 2b00 cmp r3, #0
  55027. 8016bee: d01e beq.n 8016c2e <prvInitialiseNewTimer+0x70>
  55028. {
  55029. /* Ensure the infrastructure used by the timer service task has been
  55030. created/initialised. */
  55031. prvCheckForValidListAndQueue();
  55032. 8016bf0: f000 faf2 bl 80171d8 <prvCheckForValidListAndQueue>
  55033. /* Initialise the timer structure members using the function
  55034. parameters. */
  55035. pxNewTimer->pcTimerName = pcTimerName;
  55036. 8016bf4: 6a7b ldr r3, [r7, #36] @ 0x24
  55037. 8016bf6: 68fa ldr r2, [r7, #12]
  55038. 8016bf8: 601a str r2, [r3, #0]
  55039. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  55040. 8016bfa: 6a7b ldr r3, [r7, #36] @ 0x24
  55041. 8016bfc: 68ba ldr r2, [r7, #8]
  55042. 8016bfe: 619a str r2, [r3, #24]
  55043. pxNewTimer->pvTimerID = pvTimerID;
  55044. 8016c00: 6a7b ldr r3, [r7, #36] @ 0x24
  55045. 8016c02: 683a ldr r2, [r7, #0]
  55046. 8016c04: 61da str r2, [r3, #28]
  55047. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  55048. 8016c06: 6a7b ldr r3, [r7, #36] @ 0x24
  55049. 8016c08: 6a3a ldr r2, [r7, #32]
  55050. 8016c0a: 621a str r2, [r3, #32]
  55051. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  55052. 8016c0c: 6a7b ldr r3, [r7, #36] @ 0x24
  55053. 8016c0e: 3304 adds r3, #4
  55054. 8016c10: 4618 mov r0, r3
  55055. 8016c12: f7fd fa91 bl 8014138 <vListInitialiseItem>
  55056. if( uxAutoReload != pdFALSE )
  55057. 8016c16: 687b ldr r3, [r7, #4]
  55058. 8016c18: 2b00 cmp r3, #0
  55059. 8016c1a: d008 beq.n 8016c2e <prvInitialiseNewTimer+0x70>
  55060. {
  55061. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  55062. 8016c1c: 6a7b ldr r3, [r7, #36] @ 0x24
  55063. 8016c1e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55064. 8016c22: f043 0304 orr.w r3, r3, #4
  55065. 8016c26: b2da uxtb r2, r3
  55066. 8016c28: 6a7b ldr r3, [r7, #36] @ 0x24
  55067. 8016c2a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55068. }
  55069. traceTIMER_CREATE( pxNewTimer );
  55070. }
  55071. }
  55072. 8016c2e: bf00 nop
  55073. 8016c30: 3718 adds r7, #24
  55074. 8016c32: 46bd mov sp, r7
  55075. 8016c34: bd80 pop {r7, pc}
  55076. ...
  55077. 08016c38 <xTimerGenericCommand>:
  55078. /*-----------------------------------------------------------*/
  55079. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  55080. {
  55081. 8016c38: b580 push {r7, lr}
  55082. 8016c3a: b08a sub sp, #40 @ 0x28
  55083. 8016c3c: af00 add r7, sp, #0
  55084. 8016c3e: 60f8 str r0, [r7, #12]
  55085. 8016c40: 60b9 str r1, [r7, #8]
  55086. 8016c42: 607a str r2, [r7, #4]
  55087. 8016c44: 603b str r3, [r7, #0]
  55088. BaseType_t xReturn = pdFAIL;
  55089. 8016c46: 2300 movs r3, #0
  55090. 8016c48: 627b str r3, [r7, #36] @ 0x24
  55091. DaemonTaskMessage_t xMessage;
  55092. configASSERT( xTimer );
  55093. 8016c4a: 68fb ldr r3, [r7, #12]
  55094. 8016c4c: 2b00 cmp r3, #0
  55095. 8016c4e: d10b bne.n 8016c68 <xTimerGenericCommand+0x30>
  55096. __asm volatile
  55097. 8016c50: f04f 0350 mov.w r3, #80 @ 0x50
  55098. 8016c54: f383 8811 msr BASEPRI, r3
  55099. 8016c58: f3bf 8f6f isb sy
  55100. 8016c5c: f3bf 8f4f dsb sy
  55101. 8016c60: 623b str r3, [r7, #32]
  55102. }
  55103. 8016c62: bf00 nop
  55104. 8016c64: bf00 nop
  55105. 8016c66: e7fd b.n 8016c64 <xTimerGenericCommand+0x2c>
  55106. /* Send a message to the timer service task to perform a particular action
  55107. on a particular timer definition. */
  55108. if( xTimerQueue != NULL )
  55109. 8016c68: 4b19 ldr r3, [pc, #100] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55110. 8016c6a: 681b ldr r3, [r3, #0]
  55111. 8016c6c: 2b00 cmp r3, #0
  55112. 8016c6e: d02a beq.n 8016cc6 <xTimerGenericCommand+0x8e>
  55113. {
  55114. /* Send a command to the timer service task to start the xTimer timer. */
  55115. xMessage.xMessageID = xCommandID;
  55116. 8016c70: 68bb ldr r3, [r7, #8]
  55117. 8016c72: 613b str r3, [r7, #16]
  55118. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  55119. 8016c74: 687b ldr r3, [r7, #4]
  55120. 8016c76: 617b str r3, [r7, #20]
  55121. xMessage.u.xTimerParameters.pxTimer = xTimer;
  55122. 8016c78: 68fb ldr r3, [r7, #12]
  55123. 8016c7a: 61bb str r3, [r7, #24]
  55124. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  55125. 8016c7c: 68bb ldr r3, [r7, #8]
  55126. 8016c7e: 2b05 cmp r3, #5
  55127. 8016c80: dc18 bgt.n 8016cb4 <xTimerGenericCommand+0x7c>
  55128. {
  55129. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  55130. 8016c82: f7ff fae1 bl 8016248 <xTaskGetSchedulerState>
  55131. 8016c86: 4603 mov r3, r0
  55132. 8016c88: 2b02 cmp r3, #2
  55133. 8016c8a: d109 bne.n 8016ca0 <xTimerGenericCommand+0x68>
  55134. {
  55135. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  55136. 8016c8c: 4b10 ldr r3, [pc, #64] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55137. 8016c8e: 6818 ldr r0, [r3, #0]
  55138. 8016c90: f107 0110 add.w r1, r7, #16
  55139. 8016c94: 2300 movs r3, #0
  55140. 8016c96: 6b3a ldr r2, [r7, #48] @ 0x30
  55141. 8016c98: f7fd fce0 bl 801465c <xQueueGenericSend>
  55142. 8016c9c: 6278 str r0, [r7, #36] @ 0x24
  55143. 8016c9e: e012 b.n 8016cc6 <xTimerGenericCommand+0x8e>
  55144. }
  55145. else
  55146. {
  55147. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  55148. 8016ca0: 4b0b ldr r3, [pc, #44] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55149. 8016ca2: 6818 ldr r0, [r3, #0]
  55150. 8016ca4: f107 0110 add.w r1, r7, #16
  55151. 8016ca8: 2300 movs r3, #0
  55152. 8016caa: 2200 movs r2, #0
  55153. 8016cac: f7fd fcd6 bl 801465c <xQueueGenericSend>
  55154. 8016cb0: 6278 str r0, [r7, #36] @ 0x24
  55155. 8016cb2: e008 b.n 8016cc6 <xTimerGenericCommand+0x8e>
  55156. }
  55157. }
  55158. else
  55159. {
  55160. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  55161. 8016cb4: 4b06 ldr r3, [pc, #24] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55162. 8016cb6: 6818 ldr r0, [r3, #0]
  55163. 8016cb8: f107 0110 add.w r1, r7, #16
  55164. 8016cbc: 2300 movs r3, #0
  55165. 8016cbe: 683a ldr r2, [r7, #0]
  55166. 8016cc0: f7fd fdce bl 8014860 <xQueueGenericSendFromISR>
  55167. 8016cc4: 6278 str r0, [r7, #36] @ 0x24
  55168. else
  55169. {
  55170. mtCOVERAGE_TEST_MARKER();
  55171. }
  55172. return xReturn;
  55173. 8016cc6: 6a7b ldr r3, [r7, #36] @ 0x24
  55174. }
  55175. 8016cc8: 4618 mov r0, r3
  55176. 8016cca: 3728 adds r7, #40 @ 0x28
  55177. 8016ccc: 46bd mov sp, r7
  55178. 8016cce: bd80 pop {r7, pc}
  55179. 8016cd0: 24002bc4 .word 0x24002bc4
  55180. 08016cd4 <prvProcessExpiredTimer>:
  55181. return pxTimer->pcTimerName;
  55182. }
  55183. /*-----------------------------------------------------------*/
  55184. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  55185. {
  55186. 8016cd4: b580 push {r7, lr}
  55187. 8016cd6: b088 sub sp, #32
  55188. 8016cd8: af02 add r7, sp, #8
  55189. 8016cda: 6078 str r0, [r7, #4]
  55190. 8016cdc: 6039 str r1, [r7, #0]
  55191. BaseType_t xResult;
  55192. 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. */
  55193. 8016cde: 4b23 ldr r3, [pc, #140] @ (8016d6c <prvProcessExpiredTimer+0x98>)
  55194. 8016ce0: 681b ldr r3, [r3, #0]
  55195. 8016ce2: 68db ldr r3, [r3, #12]
  55196. 8016ce4: 68db ldr r3, [r3, #12]
  55197. 8016ce6: 617b str r3, [r7, #20]
  55198. /* Remove the timer from the list of active timers. A check has already
  55199. been performed to ensure the list is not empty. */
  55200. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55201. 8016ce8: 697b ldr r3, [r7, #20]
  55202. 8016cea: 3304 adds r3, #4
  55203. 8016cec: 4618 mov r0, r3
  55204. 8016cee: f7fd fa8d bl 801420c <uxListRemove>
  55205. traceTIMER_EXPIRED( pxTimer );
  55206. /* If the timer is an auto-reload timer then calculate the next
  55207. expiry time and re-insert the timer in the list of active timers. */
  55208. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55209. 8016cf2: 697b ldr r3, [r7, #20]
  55210. 8016cf4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55211. 8016cf8: f003 0304 and.w r3, r3, #4
  55212. 8016cfc: 2b00 cmp r3, #0
  55213. 8016cfe: d023 beq.n 8016d48 <prvProcessExpiredTimer+0x74>
  55214. {
  55215. /* The timer is inserted into a list using a time relative to anything
  55216. other than the current time. It will therefore be inserted into the
  55217. correct list relative to the time this task thinks it is now. */
  55218. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  55219. 8016d00: 697b ldr r3, [r7, #20]
  55220. 8016d02: 699a ldr r2, [r3, #24]
  55221. 8016d04: 687b ldr r3, [r7, #4]
  55222. 8016d06: 18d1 adds r1, r2, r3
  55223. 8016d08: 687b ldr r3, [r7, #4]
  55224. 8016d0a: 683a ldr r2, [r7, #0]
  55225. 8016d0c: 6978 ldr r0, [r7, #20]
  55226. 8016d0e: f000 f8d5 bl 8016ebc <prvInsertTimerInActiveList>
  55227. 8016d12: 4603 mov r3, r0
  55228. 8016d14: 2b00 cmp r3, #0
  55229. 8016d16: d020 beq.n 8016d5a <prvProcessExpiredTimer+0x86>
  55230. {
  55231. /* The timer expired before it was added to the active timer
  55232. list. Reload it now. */
  55233. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  55234. 8016d18: 2300 movs r3, #0
  55235. 8016d1a: 9300 str r3, [sp, #0]
  55236. 8016d1c: 2300 movs r3, #0
  55237. 8016d1e: 687a ldr r2, [r7, #4]
  55238. 8016d20: 2100 movs r1, #0
  55239. 8016d22: 6978 ldr r0, [r7, #20]
  55240. 8016d24: f7ff ff88 bl 8016c38 <xTimerGenericCommand>
  55241. 8016d28: 6138 str r0, [r7, #16]
  55242. configASSERT( xResult );
  55243. 8016d2a: 693b ldr r3, [r7, #16]
  55244. 8016d2c: 2b00 cmp r3, #0
  55245. 8016d2e: d114 bne.n 8016d5a <prvProcessExpiredTimer+0x86>
  55246. __asm volatile
  55247. 8016d30: f04f 0350 mov.w r3, #80 @ 0x50
  55248. 8016d34: f383 8811 msr BASEPRI, r3
  55249. 8016d38: f3bf 8f6f isb sy
  55250. 8016d3c: f3bf 8f4f dsb sy
  55251. 8016d40: 60fb str r3, [r7, #12]
  55252. }
  55253. 8016d42: bf00 nop
  55254. 8016d44: bf00 nop
  55255. 8016d46: e7fd b.n 8016d44 <prvProcessExpiredTimer+0x70>
  55256. mtCOVERAGE_TEST_MARKER();
  55257. }
  55258. }
  55259. else
  55260. {
  55261. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55262. 8016d48: 697b ldr r3, [r7, #20]
  55263. 8016d4a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55264. 8016d4e: f023 0301 bic.w r3, r3, #1
  55265. 8016d52: b2da uxtb r2, r3
  55266. 8016d54: 697b ldr r3, [r7, #20]
  55267. 8016d56: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55268. mtCOVERAGE_TEST_MARKER();
  55269. }
  55270. /* Call the timer callback. */
  55271. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55272. 8016d5a: 697b ldr r3, [r7, #20]
  55273. 8016d5c: 6a1b ldr r3, [r3, #32]
  55274. 8016d5e: 6978 ldr r0, [r7, #20]
  55275. 8016d60: 4798 blx r3
  55276. }
  55277. 8016d62: bf00 nop
  55278. 8016d64: 3718 adds r7, #24
  55279. 8016d66: 46bd mov sp, r7
  55280. 8016d68: bd80 pop {r7, pc}
  55281. 8016d6a: bf00 nop
  55282. 8016d6c: 24002bbc .word 0x24002bbc
  55283. 08016d70 <prvTimerTask>:
  55284. /*-----------------------------------------------------------*/
  55285. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  55286. {
  55287. 8016d70: b580 push {r7, lr}
  55288. 8016d72: b084 sub sp, #16
  55289. 8016d74: af00 add r7, sp, #0
  55290. 8016d76: 6078 str r0, [r7, #4]
  55291. for( ;; )
  55292. {
  55293. /* Query the timers list to see if it contains any timers, and if so,
  55294. obtain the time at which the next timer will expire. */
  55295. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  55296. 8016d78: f107 0308 add.w r3, r7, #8
  55297. 8016d7c: 4618 mov r0, r3
  55298. 8016d7e: f000 f859 bl 8016e34 <prvGetNextExpireTime>
  55299. 8016d82: 60f8 str r0, [r7, #12]
  55300. /* If a timer has expired, process it. Otherwise, block this task
  55301. until either a timer does expire, or a command is received. */
  55302. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  55303. 8016d84: 68bb ldr r3, [r7, #8]
  55304. 8016d86: 4619 mov r1, r3
  55305. 8016d88: 68f8 ldr r0, [r7, #12]
  55306. 8016d8a: f000 f805 bl 8016d98 <prvProcessTimerOrBlockTask>
  55307. /* Empty the command queue. */
  55308. prvProcessReceivedCommands();
  55309. 8016d8e: f000 f8d7 bl 8016f40 <prvProcessReceivedCommands>
  55310. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  55311. 8016d92: bf00 nop
  55312. 8016d94: e7f0 b.n 8016d78 <prvTimerTask+0x8>
  55313. ...
  55314. 08016d98 <prvProcessTimerOrBlockTask>:
  55315. }
  55316. }
  55317. /*-----------------------------------------------------------*/
  55318. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  55319. {
  55320. 8016d98: b580 push {r7, lr}
  55321. 8016d9a: b084 sub sp, #16
  55322. 8016d9c: af00 add r7, sp, #0
  55323. 8016d9e: 6078 str r0, [r7, #4]
  55324. 8016da0: 6039 str r1, [r7, #0]
  55325. TickType_t xTimeNow;
  55326. BaseType_t xTimerListsWereSwitched;
  55327. vTaskSuspendAll();
  55328. 8016da2: f7fe fe17 bl 80159d4 <vTaskSuspendAll>
  55329. /* Obtain the time now to make an assessment as to whether the timer
  55330. has expired or not. If obtaining the time causes the lists to switch
  55331. then don't process this timer as any timers that remained in the list
  55332. when the lists were switched will have been processed within the
  55333. prvSampleTimeNow() function. */
  55334. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  55335. 8016da6: f107 0308 add.w r3, r7, #8
  55336. 8016daa: 4618 mov r0, r3
  55337. 8016dac: f000 f866 bl 8016e7c <prvSampleTimeNow>
  55338. 8016db0: 60f8 str r0, [r7, #12]
  55339. if( xTimerListsWereSwitched == pdFALSE )
  55340. 8016db2: 68bb ldr r3, [r7, #8]
  55341. 8016db4: 2b00 cmp r3, #0
  55342. 8016db6: d130 bne.n 8016e1a <prvProcessTimerOrBlockTask+0x82>
  55343. {
  55344. /* The tick count has not overflowed, has the timer expired? */
  55345. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  55346. 8016db8: 683b ldr r3, [r7, #0]
  55347. 8016dba: 2b00 cmp r3, #0
  55348. 8016dbc: d10a bne.n 8016dd4 <prvProcessTimerOrBlockTask+0x3c>
  55349. 8016dbe: 687a ldr r2, [r7, #4]
  55350. 8016dc0: 68fb ldr r3, [r7, #12]
  55351. 8016dc2: 429a cmp r2, r3
  55352. 8016dc4: d806 bhi.n 8016dd4 <prvProcessTimerOrBlockTask+0x3c>
  55353. {
  55354. ( void ) xTaskResumeAll();
  55355. 8016dc6: f7fe fe13 bl 80159f0 <xTaskResumeAll>
  55356. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  55357. 8016dca: 68f9 ldr r1, [r7, #12]
  55358. 8016dcc: 6878 ldr r0, [r7, #4]
  55359. 8016dce: f7ff ff81 bl 8016cd4 <prvProcessExpiredTimer>
  55360. else
  55361. {
  55362. ( void ) xTaskResumeAll();
  55363. }
  55364. }
  55365. }
  55366. 8016dd2: e024 b.n 8016e1e <prvProcessTimerOrBlockTask+0x86>
  55367. if( xListWasEmpty != pdFALSE )
  55368. 8016dd4: 683b ldr r3, [r7, #0]
  55369. 8016dd6: 2b00 cmp r3, #0
  55370. 8016dd8: d008 beq.n 8016dec <prvProcessTimerOrBlockTask+0x54>
  55371. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  55372. 8016dda: 4b13 ldr r3, [pc, #76] @ (8016e28 <prvProcessTimerOrBlockTask+0x90>)
  55373. 8016ddc: 681b ldr r3, [r3, #0]
  55374. 8016dde: 681b ldr r3, [r3, #0]
  55375. 8016de0: 2b00 cmp r3, #0
  55376. 8016de2: d101 bne.n 8016de8 <prvProcessTimerOrBlockTask+0x50>
  55377. 8016de4: 2301 movs r3, #1
  55378. 8016de6: e000 b.n 8016dea <prvProcessTimerOrBlockTask+0x52>
  55379. 8016de8: 2300 movs r3, #0
  55380. 8016dea: 603b str r3, [r7, #0]
  55381. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  55382. 8016dec: 4b0f ldr r3, [pc, #60] @ (8016e2c <prvProcessTimerOrBlockTask+0x94>)
  55383. 8016dee: 6818 ldr r0, [r3, #0]
  55384. 8016df0: 687a ldr r2, [r7, #4]
  55385. 8016df2: 68fb ldr r3, [r7, #12]
  55386. 8016df4: 1ad3 subs r3, r2, r3
  55387. 8016df6: 683a ldr r2, [r7, #0]
  55388. 8016df8: 4619 mov r1, r3
  55389. 8016dfa: f7fe f995 bl 8015128 <vQueueWaitForMessageRestricted>
  55390. if( xTaskResumeAll() == pdFALSE )
  55391. 8016dfe: f7fe fdf7 bl 80159f0 <xTaskResumeAll>
  55392. 8016e02: 4603 mov r3, r0
  55393. 8016e04: 2b00 cmp r3, #0
  55394. 8016e06: d10a bne.n 8016e1e <prvProcessTimerOrBlockTask+0x86>
  55395. portYIELD_WITHIN_API();
  55396. 8016e08: 4b09 ldr r3, [pc, #36] @ (8016e30 <prvProcessTimerOrBlockTask+0x98>)
  55397. 8016e0a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  55398. 8016e0e: 601a str r2, [r3, #0]
  55399. 8016e10: f3bf 8f4f dsb sy
  55400. 8016e14: f3bf 8f6f isb sy
  55401. }
  55402. 8016e18: e001 b.n 8016e1e <prvProcessTimerOrBlockTask+0x86>
  55403. ( void ) xTaskResumeAll();
  55404. 8016e1a: f7fe fde9 bl 80159f0 <xTaskResumeAll>
  55405. }
  55406. 8016e1e: bf00 nop
  55407. 8016e20: 3710 adds r7, #16
  55408. 8016e22: 46bd mov sp, r7
  55409. 8016e24: bd80 pop {r7, pc}
  55410. 8016e26: bf00 nop
  55411. 8016e28: 24002bc0 .word 0x24002bc0
  55412. 8016e2c: 24002bc4 .word 0x24002bc4
  55413. 8016e30: e000ed04 .word 0xe000ed04
  55414. 08016e34 <prvGetNextExpireTime>:
  55415. /*-----------------------------------------------------------*/
  55416. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  55417. {
  55418. 8016e34: b480 push {r7}
  55419. 8016e36: b085 sub sp, #20
  55420. 8016e38: af00 add r7, sp, #0
  55421. 8016e3a: 6078 str r0, [r7, #4]
  55422. the timer with the nearest expiry time will expire. If there are no
  55423. active timers then just set the next expire time to 0. That will cause
  55424. this task to unblock when the tick count overflows, at which point the
  55425. timer lists will be switched and the next expiry time can be
  55426. re-assessed. */
  55427. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  55428. 8016e3c: 4b0e ldr r3, [pc, #56] @ (8016e78 <prvGetNextExpireTime+0x44>)
  55429. 8016e3e: 681b ldr r3, [r3, #0]
  55430. 8016e40: 681b ldr r3, [r3, #0]
  55431. 8016e42: 2b00 cmp r3, #0
  55432. 8016e44: d101 bne.n 8016e4a <prvGetNextExpireTime+0x16>
  55433. 8016e46: 2201 movs r2, #1
  55434. 8016e48: e000 b.n 8016e4c <prvGetNextExpireTime+0x18>
  55435. 8016e4a: 2200 movs r2, #0
  55436. 8016e4c: 687b ldr r3, [r7, #4]
  55437. 8016e4e: 601a str r2, [r3, #0]
  55438. if( *pxListWasEmpty == pdFALSE )
  55439. 8016e50: 687b ldr r3, [r7, #4]
  55440. 8016e52: 681b ldr r3, [r3, #0]
  55441. 8016e54: 2b00 cmp r3, #0
  55442. 8016e56: d105 bne.n 8016e64 <prvGetNextExpireTime+0x30>
  55443. {
  55444. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  55445. 8016e58: 4b07 ldr r3, [pc, #28] @ (8016e78 <prvGetNextExpireTime+0x44>)
  55446. 8016e5a: 681b ldr r3, [r3, #0]
  55447. 8016e5c: 68db ldr r3, [r3, #12]
  55448. 8016e5e: 681b ldr r3, [r3, #0]
  55449. 8016e60: 60fb str r3, [r7, #12]
  55450. 8016e62: e001 b.n 8016e68 <prvGetNextExpireTime+0x34>
  55451. }
  55452. else
  55453. {
  55454. /* Ensure the task unblocks when the tick count rolls over. */
  55455. xNextExpireTime = ( TickType_t ) 0U;
  55456. 8016e64: 2300 movs r3, #0
  55457. 8016e66: 60fb str r3, [r7, #12]
  55458. }
  55459. return xNextExpireTime;
  55460. 8016e68: 68fb ldr r3, [r7, #12]
  55461. }
  55462. 8016e6a: 4618 mov r0, r3
  55463. 8016e6c: 3714 adds r7, #20
  55464. 8016e6e: 46bd mov sp, r7
  55465. 8016e70: f85d 7b04 ldr.w r7, [sp], #4
  55466. 8016e74: 4770 bx lr
  55467. 8016e76: bf00 nop
  55468. 8016e78: 24002bbc .word 0x24002bbc
  55469. 08016e7c <prvSampleTimeNow>:
  55470. /*-----------------------------------------------------------*/
  55471. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  55472. {
  55473. 8016e7c: b580 push {r7, lr}
  55474. 8016e7e: b084 sub sp, #16
  55475. 8016e80: af00 add r7, sp, #0
  55476. 8016e82: 6078 str r0, [r7, #4]
  55477. TickType_t xTimeNow;
  55478. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  55479. xTimeNow = xTaskGetTickCount();
  55480. 8016e84: f7fe fe52 bl 8015b2c <xTaskGetTickCount>
  55481. 8016e88: 60f8 str r0, [r7, #12]
  55482. if( xTimeNow < xLastTime )
  55483. 8016e8a: 4b0b ldr r3, [pc, #44] @ (8016eb8 <prvSampleTimeNow+0x3c>)
  55484. 8016e8c: 681b ldr r3, [r3, #0]
  55485. 8016e8e: 68fa ldr r2, [r7, #12]
  55486. 8016e90: 429a cmp r2, r3
  55487. 8016e92: d205 bcs.n 8016ea0 <prvSampleTimeNow+0x24>
  55488. {
  55489. prvSwitchTimerLists();
  55490. 8016e94: f000 f93a bl 801710c <prvSwitchTimerLists>
  55491. *pxTimerListsWereSwitched = pdTRUE;
  55492. 8016e98: 687b ldr r3, [r7, #4]
  55493. 8016e9a: 2201 movs r2, #1
  55494. 8016e9c: 601a str r2, [r3, #0]
  55495. 8016e9e: e002 b.n 8016ea6 <prvSampleTimeNow+0x2a>
  55496. }
  55497. else
  55498. {
  55499. *pxTimerListsWereSwitched = pdFALSE;
  55500. 8016ea0: 687b ldr r3, [r7, #4]
  55501. 8016ea2: 2200 movs r2, #0
  55502. 8016ea4: 601a str r2, [r3, #0]
  55503. }
  55504. xLastTime = xTimeNow;
  55505. 8016ea6: 4a04 ldr r2, [pc, #16] @ (8016eb8 <prvSampleTimeNow+0x3c>)
  55506. 8016ea8: 68fb ldr r3, [r7, #12]
  55507. 8016eaa: 6013 str r3, [r2, #0]
  55508. return xTimeNow;
  55509. 8016eac: 68fb ldr r3, [r7, #12]
  55510. }
  55511. 8016eae: 4618 mov r0, r3
  55512. 8016eb0: 3710 adds r7, #16
  55513. 8016eb2: 46bd mov sp, r7
  55514. 8016eb4: bd80 pop {r7, pc}
  55515. 8016eb6: bf00 nop
  55516. 8016eb8: 24002bcc .word 0x24002bcc
  55517. 08016ebc <prvInsertTimerInActiveList>:
  55518. /*-----------------------------------------------------------*/
  55519. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  55520. {
  55521. 8016ebc: b580 push {r7, lr}
  55522. 8016ebe: b086 sub sp, #24
  55523. 8016ec0: af00 add r7, sp, #0
  55524. 8016ec2: 60f8 str r0, [r7, #12]
  55525. 8016ec4: 60b9 str r1, [r7, #8]
  55526. 8016ec6: 607a str r2, [r7, #4]
  55527. 8016ec8: 603b str r3, [r7, #0]
  55528. BaseType_t xProcessTimerNow = pdFALSE;
  55529. 8016eca: 2300 movs r3, #0
  55530. 8016ecc: 617b str r3, [r7, #20]
  55531. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  55532. 8016ece: 68fb ldr r3, [r7, #12]
  55533. 8016ed0: 68ba ldr r2, [r7, #8]
  55534. 8016ed2: 605a str r2, [r3, #4]
  55535. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  55536. 8016ed4: 68fb ldr r3, [r7, #12]
  55537. 8016ed6: 68fa ldr r2, [r7, #12]
  55538. 8016ed8: 611a str r2, [r3, #16]
  55539. if( xNextExpiryTime <= xTimeNow )
  55540. 8016eda: 68ba ldr r2, [r7, #8]
  55541. 8016edc: 687b ldr r3, [r7, #4]
  55542. 8016ede: 429a cmp r2, r3
  55543. 8016ee0: d812 bhi.n 8016f08 <prvInsertTimerInActiveList+0x4c>
  55544. {
  55545. /* Has the expiry time elapsed between the command to start/reset a
  55546. timer was issued, and the time the command was processed? */
  55547. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  55548. 8016ee2: 687a ldr r2, [r7, #4]
  55549. 8016ee4: 683b ldr r3, [r7, #0]
  55550. 8016ee6: 1ad2 subs r2, r2, r3
  55551. 8016ee8: 68fb ldr r3, [r7, #12]
  55552. 8016eea: 699b ldr r3, [r3, #24]
  55553. 8016eec: 429a cmp r2, r3
  55554. 8016eee: d302 bcc.n 8016ef6 <prvInsertTimerInActiveList+0x3a>
  55555. {
  55556. /* The time between a command being issued and the command being
  55557. processed actually exceeds the timers period. */
  55558. xProcessTimerNow = pdTRUE;
  55559. 8016ef0: 2301 movs r3, #1
  55560. 8016ef2: 617b str r3, [r7, #20]
  55561. 8016ef4: e01b b.n 8016f2e <prvInsertTimerInActiveList+0x72>
  55562. }
  55563. else
  55564. {
  55565. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  55566. 8016ef6: 4b10 ldr r3, [pc, #64] @ (8016f38 <prvInsertTimerInActiveList+0x7c>)
  55567. 8016ef8: 681a ldr r2, [r3, #0]
  55568. 8016efa: 68fb ldr r3, [r7, #12]
  55569. 8016efc: 3304 adds r3, #4
  55570. 8016efe: 4619 mov r1, r3
  55571. 8016f00: 4610 mov r0, r2
  55572. 8016f02: f7fd f94a bl 801419a <vListInsert>
  55573. 8016f06: e012 b.n 8016f2e <prvInsertTimerInActiveList+0x72>
  55574. }
  55575. }
  55576. else
  55577. {
  55578. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  55579. 8016f08: 687a ldr r2, [r7, #4]
  55580. 8016f0a: 683b ldr r3, [r7, #0]
  55581. 8016f0c: 429a cmp r2, r3
  55582. 8016f0e: d206 bcs.n 8016f1e <prvInsertTimerInActiveList+0x62>
  55583. 8016f10: 68ba ldr r2, [r7, #8]
  55584. 8016f12: 683b ldr r3, [r7, #0]
  55585. 8016f14: 429a cmp r2, r3
  55586. 8016f16: d302 bcc.n 8016f1e <prvInsertTimerInActiveList+0x62>
  55587. {
  55588. /* If, since the command was issued, the tick count has overflowed
  55589. but the expiry time has not, then the timer must have already passed
  55590. its expiry time and should be processed immediately. */
  55591. xProcessTimerNow = pdTRUE;
  55592. 8016f18: 2301 movs r3, #1
  55593. 8016f1a: 617b str r3, [r7, #20]
  55594. 8016f1c: e007 b.n 8016f2e <prvInsertTimerInActiveList+0x72>
  55595. }
  55596. else
  55597. {
  55598. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  55599. 8016f1e: 4b07 ldr r3, [pc, #28] @ (8016f3c <prvInsertTimerInActiveList+0x80>)
  55600. 8016f20: 681a ldr r2, [r3, #0]
  55601. 8016f22: 68fb ldr r3, [r7, #12]
  55602. 8016f24: 3304 adds r3, #4
  55603. 8016f26: 4619 mov r1, r3
  55604. 8016f28: 4610 mov r0, r2
  55605. 8016f2a: f7fd f936 bl 801419a <vListInsert>
  55606. }
  55607. }
  55608. return xProcessTimerNow;
  55609. 8016f2e: 697b ldr r3, [r7, #20]
  55610. }
  55611. 8016f30: 4618 mov r0, r3
  55612. 8016f32: 3718 adds r7, #24
  55613. 8016f34: 46bd mov sp, r7
  55614. 8016f36: bd80 pop {r7, pc}
  55615. 8016f38: 24002bc0 .word 0x24002bc0
  55616. 8016f3c: 24002bbc .word 0x24002bbc
  55617. 08016f40 <prvProcessReceivedCommands>:
  55618. /*-----------------------------------------------------------*/
  55619. static void prvProcessReceivedCommands( void )
  55620. {
  55621. 8016f40: b580 push {r7, lr}
  55622. 8016f42: b08e sub sp, #56 @ 0x38
  55623. 8016f44: af02 add r7, sp, #8
  55624. DaemonTaskMessage_t xMessage;
  55625. Timer_t *pxTimer;
  55626. BaseType_t xTimerListsWereSwitched, xResult;
  55627. TickType_t xTimeNow;
  55628. 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. */
  55629. 8016f46: e0ce b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55630. {
  55631. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  55632. {
  55633. /* Negative commands are pended function calls rather than timer
  55634. commands. */
  55635. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  55636. 8016f48: 687b ldr r3, [r7, #4]
  55637. 8016f4a: 2b00 cmp r3, #0
  55638. 8016f4c: da19 bge.n 8016f82 <prvProcessReceivedCommands+0x42>
  55639. {
  55640. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  55641. 8016f4e: 1d3b adds r3, r7, #4
  55642. 8016f50: 3304 adds r3, #4
  55643. 8016f52: 62fb str r3, [r7, #44] @ 0x2c
  55644. /* The timer uses the xCallbackParameters member to request a
  55645. callback be executed. Check the callback is not NULL. */
  55646. configASSERT( pxCallback );
  55647. 8016f54: 6afb ldr r3, [r7, #44] @ 0x2c
  55648. 8016f56: 2b00 cmp r3, #0
  55649. 8016f58: d10b bne.n 8016f72 <prvProcessReceivedCommands+0x32>
  55650. __asm volatile
  55651. 8016f5a: f04f 0350 mov.w r3, #80 @ 0x50
  55652. 8016f5e: f383 8811 msr BASEPRI, r3
  55653. 8016f62: f3bf 8f6f isb sy
  55654. 8016f66: f3bf 8f4f dsb sy
  55655. 8016f6a: 61fb str r3, [r7, #28]
  55656. }
  55657. 8016f6c: bf00 nop
  55658. 8016f6e: bf00 nop
  55659. 8016f70: e7fd b.n 8016f6e <prvProcessReceivedCommands+0x2e>
  55660. /* Call the function. */
  55661. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  55662. 8016f72: 6afb ldr r3, [r7, #44] @ 0x2c
  55663. 8016f74: 681b ldr r3, [r3, #0]
  55664. 8016f76: 6afa ldr r2, [r7, #44] @ 0x2c
  55665. 8016f78: 6850 ldr r0, [r2, #4]
  55666. 8016f7a: 6afa ldr r2, [r7, #44] @ 0x2c
  55667. 8016f7c: 6892 ldr r2, [r2, #8]
  55668. 8016f7e: 4611 mov r1, r2
  55669. 8016f80: 4798 blx r3
  55670. }
  55671. #endif /* INCLUDE_xTimerPendFunctionCall */
  55672. /* Commands that are positive are timer commands rather than pended
  55673. function calls. */
  55674. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  55675. 8016f82: 687b ldr r3, [r7, #4]
  55676. 8016f84: 2b00 cmp r3, #0
  55677. 8016f86: f2c0 80ae blt.w 80170e6 <prvProcessReceivedCommands+0x1a6>
  55678. {
  55679. /* The messages uses the xTimerParameters member to work on a
  55680. software timer. */
  55681. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  55682. 8016f8a: 68fb ldr r3, [r7, #12]
  55683. 8016f8c: 62bb str r3, [r7, #40] @ 0x28
  55684. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  55685. 8016f8e: 6abb ldr r3, [r7, #40] @ 0x28
  55686. 8016f90: 695b ldr r3, [r3, #20]
  55687. 8016f92: 2b00 cmp r3, #0
  55688. 8016f94: d004 beq.n 8016fa0 <prvProcessReceivedCommands+0x60>
  55689. {
  55690. /* The timer is in a list, remove it. */
  55691. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55692. 8016f96: 6abb ldr r3, [r7, #40] @ 0x28
  55693. 8016f98: 3304 adds r3, #4
  55694. 8016f9a: 4618 mov r0, r3
  55695. 8016f9c: f7fd f936 bl 801420c <uxListRemove>
  55696. it must be present in the function call. prvSampleTimeNow() must be
  55697. called after the message is received from xTimerQueue so there is no
  55698. possibility of a higher priority task adding a message to the message
  55699. queue with a time that is ahead of the timer daemon task (because it
  55700. pre-empted the timer daemon task after the xTimeNow value was set). */
  55701. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  55702. 8016fa0: 463b mov r3, r7
  55703. 8016fa2: 4618 mov r0, r3
  55704. 8016fa4: f7ff ff6a bl 8016e7c <prvSampleTimeNow>
  55705. 8016fa8: 6278 str r0, [r7, #36] @ 0x24
  55706. switch( xMessage.xMessageID )
  55707. 8016faa: 687b ldr r3, [r7, #4]
  55708. 8016fac: 2b09 cmp r3, #9
  55709. 8016fae: f200 8097 bhi.w 80170e0 <prvProcessReceivedCommands+0x1a0>
  55710. 8016fb2: a201 add r2, pc, #4 @ (adr r2, 8016fb8 <prvProcessReceivedCommands+0x78>)
  55711. 8016fb4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55712. 8016fb8: 08016fe1 .word 0x08016fe1
  55713. 8016fbc: 08016fe1 .word 0x08016fe1
  55714. 8016fc0: 08016fe1 .word 0x08016fe1
  55715. 8016fc4: 08017057 .word 0x08017057
  55716. 8016fc8: 0801706b .word 0x0801706b
  55717. 8016fcc: 080170b7 .word 0x080170b7
  55718. 8016fd0: 08016fe1 .word 0x08016fe1
  55719. 8016fd4: 08016fe1 .word 0x08016fe1
  55720. 8016fd8: 08017057 .word 0x08017057
  55721. 8016fdc: 0801706b .word 0x0801706b
  55722. case tmrCOMMAND_START_FROM_ISR :
  55723. case tmrCOMMAND_RESET :
  55724. case tmrCOMMAND_RESET_FROM_ISR :
  55725. case tmrCOMMAND_START_DONT_TRACE :
  55726. /* Start or restart a timer. */
  55727. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55728. 8016fe0: 6abb ldr r3, [r7, #40] @ 0x28
  55729. 8016fe2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55730. 8016fe6: f043 0301 orr.w r3, r3, #1
  55731. 8016fea: b2da uxtb r2, r3
  55732. 8016fec: 6abb ldr r3, [r7, #40] @ 0x28
  55733. 8016fee: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55734. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  55735. 8016ff2: 68ba ldr r2, [r7, #8]
  55736. 8016ff4: 6abb ldr r3, [r7, #40] @ 0x28
  55737. 8016ff6: 699b ldr r3, [r3, #24]
  55738. 8016ff8: 18d1 adds r1, r2, r3
  55739. 8016ffa: 68bb ldr r3, [r7, #8]
  55740. 8016ffc: 6a7a ldr r2, [r7, #36] @ 0x24
  55741. 8016ffe: 6ab8 ldr r0, [r7, #40] @ 0x28
  55742. 8017000: f7ff ff5c bl 8016ebc <prvInsertTimerInActiveList>
  55743. 8017004: 4603 mov r3, r0
  55744. 8017006: 2b00 cmp r3, #0
  55745. 8017008: d06c beq.n 80170e4 <prvProcessReceivedCommands+0x1a4>
  55746. {
  55747. /* The timer expired before it was added to the active
  55748. timer list. Process it now. */
  55749. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55750. 801700a: 6abb ldr r3, [r7, #40] @ 0x28
  55751. 801700c: 6a1b ldr r3, [r3, #32]
  55752. 801700e: 6ab8 ldr r0, [r7, #40] @ 0x28
  55753. 8017010: 4798 blx r3
  55754. traceTIMER_EXPIRED( pxTimer );
  55755. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55756. 8017012: 6abb ldr r3, [r7, #40] @ 0x28
  55757. 8017014: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55758. 8017018: f003 0304 and.w r3, r3, #4
  55759. 801701c: 2b00 cmp r3, #0
  55760. 801701e: d061 beq.n 80170e4 <prvProcessReceivedCommands+0x1a4>
  55761. {
  55762. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  55763. 8017020: 68ba ldr r2, [r7, #8]
  55764. 8017022: 6abb ldr r3, [r7, #40] @ 0x28
  55765. 8017024: 699b ldr r3, [r3, #24]
  55766. 8017026: 441a add r2, r3
  55767. 8017028: 2300 movs r3, #0
  55768. 801702a: 9300 str r3, [sp, #0]
  55769. 801702c: 2300 movs r3, #0
  55770. 801702e: 2100 movs r1, #0
  55771. 8017030: 6ab8 ldr r0, [r7, #40] @ 0x28
  55772. 8017032: f7ff fe01 bl 8016c38 <xTimerGenericCommand>
  55773. 8017036: 6238 str r0, [r7, #32]
  55774. configASSERT( xResult );
  55775. 8017038: 6a3b ldr r3, [r7, #32]
  55776. 801703a: 2b00 cmp r3, #0
  55777. 801703c: d152 bne.n 80170e4 <prvProcessReceivedCommands+0x1a4>
  55778. __asm volatile
  55779. 801703e: f04f 0350 mov.w r3, #80 @ 0x50
  55780. 8017042: f383 8811 msr BASEPRI, r3
  55781. 8017046: f3bf 8f6f isb sy
  55782. 801704a: f3bf 8f4f dsb sy
  55783. 801704e: 61bb str r3, [r7, #24]
  55784. }
  55785. 8017050: bf00 nop
  55786. 8017052: bf00 nop
  55787. 8017054: e7fd b.n 8017052 <prvProcessReceivedCommands+0x112>
  55788. break;
  55789. case tmrCOMMAND_STOP :
  55790. case tmrCOMMAND_STOP_FROM_ISR :
  55791. /* The timer has already been removed from the active list. */
  55792. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55793. 8017056: 6abb ldr r3, [r7, #40] @ 0x28
  55794. 8017058: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55795. 801705c: f023 0301 bic.w r3, r3, #1
  55796. 8017060: b2da uxtb r2, r3
  55797. 8017062: 6abb ldr r3, [r7, #40] @ 0x28
  55798. 8017064: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55799. break;
  55800. 8017068: e03d b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55801. case tmrCOMMAND_CHANGE_PERIOD :
  55802. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  55803. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55804. 801706a: 6abb ldr r3, [r7, #40] @ 0x28
  55805. 801706c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55806. 8017070: f043 0301 orr.w r3, r3, #1
  55807. 8017074: b2da uxtb r2, r3
  55808. 8017076: 6abb ldr r3, [r7, #40] @ 0x28
  55809. 8017078: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55810. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  55811. 801707c: 68ba ldr r2, [r7, #8]
  55812. 801707e: 6abb ldr r3, [r7, #40] @ 0x28
  55813. 8017080: 619a str r2, [r3, #24]
  55814. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  55815. 8017082: 6abb ldr r3, [r7, #40] @ 0x28
  55816. 8017084: 699b ldr r3, [r3, #24]
  55817. 8017086: 2b00 cmp r3, #0
  55818. 8017088: d10b bne.n 80170a2 <prvProcessReceivedCommands+0x162>
  55819. __asm volatile
  55820. 801708a: f04f 0350 mov.w r3, #80 @ 0x50
  55821. 801708e: f383 8811 msr BASEPRI, r3
  55822. 8017092: f3bf 8f6f isb sy
  55823. 8017096: f3bf 8f4f dsb sy
  55824. 801709a: 617b str r3, [r7, #20]
  55825. }
  55826. 801709c: bf00 nop
  55827. 801709e: bf00 nop
  55828. 80170a0: e7fd b.n 801709e <prvProcessReceivedCommands+0x15e>
  55829. be longer or shorter than the old one. The command time is
  55830. therefore set to the current time, and as the period cannot
  55831. be zero the next expiry time can only be in the future,
  55832. meaning (unlike for the xTimerStart() case above) there is
  55833. no fail case that needs to be handled here. */
  55834. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  55835. 80170a2: 6abb ldr r3, [r7, #40] @ 0x28
  55836. 80170a4: 699a ldr r2, [r3, #24]
  55837. 80170a6: 6a7b ldr r3, [r7, #36] @ 0x24
  55838. 80170a8: 18d1 adds r1, r2, r3
  55839. 80170aa: 6a7b ldr r3, [r7, #36] @ 0x24
  55840. 80170ac: 6a7a ldr r2, [r7, #36] @ 0x24
  55841. 80170ae: 6ab8 ldr r0, [r7, #40] @ 0x28
  55842. 80170b0: f7ff ff04 bl 8016ebc <prvInsertTimerInActiveList>
  55843. break;
  55844. 80170b4: e017 b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55845. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  55846. {
  55847. /* The timer has already been removed from the active list,
  55848. just free up the memory if the memory was dynamically
  55849. allocated. */
  55850. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  55851. 80170b6: 6abb ldr r3, [r7, #40] @ 0x28
  55852. 80170b8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55853. 80170bc: f003 0302 and.w r3, r3, #2
  55854. 80170c0: 2b00 cmp r3, #0
  55855. 80170c2: d103 bne.n 80170cc <prvProcessReceivedCommands+0x18c>
  55856. {
  55857. vPortFree( pxTimer );
  55858. 80170c4: 6ab8 ldr r0, [r7, #40] @ 0x28
  55859. 80170c6: f000 fc37 bl 8017938 <vPortFree>
  55860. no need to free the memory - just mark the timer as
  55861. "not active". */
  55862. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55863. }
  55864. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  55865. break;
  55866. 80170ca: e00c b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55867. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55868. 80170cc: 6abb ldr r3, [r7, #40] @ 0x28
  55869. 80170ce: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55870. 80170d2: f023 0301 bic.w r3, r3, #1
  55871. 80170d6: b2da uxtb r2, r3
  55872. 80170d8: 6abb ldr r3, [r7, #40] @ 0x28
  55873. 80170da: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55874. break;
  55875. 80170de: e002 b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55876. default :
  55877. /* Don't expect to get here. */
  55878. break;
  55879. 80170e0: bf00 nop
  55880. 80170e2: e000 b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55881. break;
  55882. 80170e4: bf00 nop
  55883. 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. */
  55884. 80170e6: 4b08 ldr r3, [pc, #32] @ (8017108 <prvProcessReceivedCommands+0x1c8>)
  55885. 80170e8: 681b ldr r3, [r3, #0]
  55886. 80170ea: 1d39 adds r1, r7, #4
  55887. 80170ec: 2200 movs r2, #0
  55888. 80170ee: 4618 mov r0, r3
  55889. 80170f0: f7fd fc54 bl 801499c <xQueueReceive>
  55890. 80170f4: 4603 mov r3, r0
  55891. 80170f6: 2b00 cmp r3, #0
  55892. 80170f8: f47f af26 bne.w 8016f48 <prvProcessReceivedCommands+0x8>
  55893. }
  55894. }
  55895. }
  55896. }
  55897. 80170fc: bf00 nop
  55898. 80170fe: bf00 nop
  55899. 8017100: 3730 adds r7, #48 @ 0x30
  55900. 8017102: 46bd mov sp, r7
  55901. 8017104: bd80 pop {r7, pc}
  55902. 8017106: bf00 nop
  55903. 8017108: 24002bc4 .word 0x24002bc4
  55904. 0801710c <prvSwitchTimerLists>:
  55905. /*-----------------------------------------------------------*/
  55906. static void prvSwitchTimerLists( void )
  55907. {
  55908. 801710c: b580 push {r7, lr}
  55909. 801710e: b088 sub sp, #32
  55910. 8017110: af02 add r7, sp, #8
  55911. /* The tick count has overflowed. The timer lists must be switched.
  55912. If there are any timers still referenced from the current timer list
  55913. then they must have expired and should be processed before the lists
  55914. are switched. */
  55915. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  55916. 8017112: e049 b.n 80171a8 <prvSwitchTimerLists+0x9c>
  55917. {
  55918. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  55919. 8017114: 4b2e ldr r3, [pc, #184] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  55920. 8017116: 681b ldr r3, [r3, #0]
  55921. 8017118: 68db ldr r3, [r3, #12]
  55922. 801711a: 681b ldr r3, [r3, #0]
  55923. 801711c: 613b str r3, [r7, #16]
  55924. /* Remove the timer from the list. */
  55925. 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. */
  55926. 801711e: 4b2c ldr r3, [pc, #176] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  55927. 8017120: 681b ldr r3, [r3, #0]
  55928. 8017122: 68db ldr r3, [r3, #12]
  55929. 8017124: 68db ldr r3, [r3, #12]
  55930. 8017126: 60fb str r3, [r7, #12]
  55931. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55932. 8017128: 68fb ldr r3, [r7, #12]
  55933. 801712a: 3304 adds r3, #4
  55934. 801712c: 4618 mov r0, r3
  55935. 801712e: f7fd f86d bl 801420c <uxListRemove>
  55936. traceTIMER_EXPIRED( pxTimer );
  55937. /* Execute its callback, then send a command to restart the timer if
  55938. it is an auto-reload timer. It cannot be restarted here as the lists
  55939. have not yet been switched. */
  55940. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55941. 8017132: 68fb ldr r3, [r7, #12]
  55942. 8017134: 6a1b ldr r3, [r3, #32]
  55943. 8017136: 68f8 ldr r0, [r7, #12]
  55944. 8017138: 4798 blx r3
  55945. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55946. 801713a: 68fb ldr r3, [r7, #12]
  55947. 801713c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55948. 8017140: f003 0304 and.w r3, r3, #4
  55949. 8017144: 2b00 cmp r3, #0
  55950. 8017146: d02f beq.n 80171a8 <prvSwitchTimerLists+0x9c>
  55951. the timer going into the same timer list then it has already expired
  55952. and the timer should be re-inserted into the current list so it is
  55953. processed again within this loop. Otherwise a command should be sent
  55954. to restart the timer to ensure it is only inserted into a list after
  55955. the lists have been swapped. */
  55956. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  55957. 8017148: 68fb ldr r3, [r7, #12]
  55958. 801714a: 699b ldr r3, [r3, #24]
  55959. 801714c: 693a ldr r2, [r7, #16]
  55960. 801714e: 4413 add r3, r2
  55961. 8017150: 60bb str r3, [r7, #8]
  55962. if( xReloadTime > xNextExpireTime )
  55963. 8017152: 68ba ldr r2, [r7, #8]
  55964. 8017154: 693b ldr r3, [r7, #16]
  55965. 8017156: 429a cmp r2, r3
  55966. 8017158: d90e bls.n 8017178 <prvSwitchTimerLists+0x6c>
  55967. {
  55968. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  55969. 801715a: 68fb ldr r3, [r7, #12]
  55970. 801715c: 68ba ldr r2, [r7, #8]
  55971. 801715e: 605a str r2, [r3, #4]
  55972. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  55973. 8017160: 68fb ldr r3, [r7, #12]
  55974. 8017162: 68fa ldr r2, [r7, #12]
  55975. 8017164: 611a str r2, [r3, #16]
  55976. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  55977. 8017166: 4b1a ldr r3, [pc, #104] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  55978. 8017168: 681a ldr r2, [r3, #0]
  55979. 801716a: 68fb ldr r3, [r7, #12]
  55980. 801716c: 3304 adds r3, #4
  55981. 801716e: 4619 mov r1, r3
  55982. 8017170: 4610 mov r0, r2
  55983. 8017172: f7fd f812 bl 801419a <vListInsert>
  55984. 8017176: e017 b.n 80171a8 <prvSwitchTimerLists+0x9c>
  55985. }
  55986. else
  55987. {
  55988. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  55989. 8017178: 2300 movs r3, #0
  55990. 801717a: 9300 str r3, [sp, #0]
  55991. 801717c: 2300 movs r3, #0
  55992. 801717e: 693a ldr r2, [r7, #16]
  55993. 8017180: 2100 movs r1, #0
  55994. 8017182: 68f8 ldr r0, [r7, #12]
  55995. 8017184: f7ff fd58 bl 8016c38 <xTimerGenericCommand>
  55996. 8017188: 6078 str r0, [r7, #4]
  55997. configASSERT( xResult );
  55998. 801718a: 687b ldr r3, [r7, #4]
  55999. 801718c: 2b00 cmp r3, #0
  56000. 801718e: d10b bne.n 80171a8 <prvSwitchTimerLists+0x9c>
  56001. __asm volatile
  56002. 8017190: f04f 0350 mov.w r3, #80 @ 0x50
  56003. 8017194: f383 8811 msr BASEPRI, r3
  56004. 8017198: f3bf 8f6f isb sy
  56005. 801719c: f3bf 8f4f dsb sy
  56006. 80171a0: 603b str r3, [r7, #0]
  56007. }
  56008. 80171a2: bf00 nop
  56009. 80171a4: bf00 nop
  56010. 80171a6: e7fd b.n 80171a4 <prvSwitchTimerLists+0x98>
  56011. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56012. 80171a8: 4b09 ldr r3, [pc, #36] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  56013. 80171aa: 681b ldr r3, [r3, #0]
  56014. 80171ac: 681b ldr r3, [r3, #0]
  56015. 80171ae: 2b00 cmp r3, #0
  56016. 80171b0: d1b0 bne.n 8017114 <prvSwitchTimerLists+0x8>
  56017. {
  56018. mtCOVERAGE_TEST_MARKER();
  56019. }
  56020. }
  56021. pxTemp = pxCurrentTimerList;
  56022. 80171b2: 4b07 ldr r3, [pc, #28] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  56023. 80171b4: 681b ldr r3, [r3, #0]
  56024. 80171b6: 617b str r3, [r7, #20]
  56025. pxCurrentTimerList = pxOverflowTimerList;
  56026. 80171b8: 4b06 ldr r3, [pc, #24] @ (80171d4 <prvSwitchTimerLists+0xc8>)
  56027. 80171ba: 681b ldr r3, [r3, #0]
  56028. 80171bc: 4a04 ldr r2, [pc, #16] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  56029. 80171be: 6013 str r3, [r2, #0]
  56030. pxOverflowTimerList = pxTemp;
  56031. 80171c0: 4a04 ldr r2, [pc, #16] @ (80171d4 <prvSwitchTimerLists+0xc8>)
  56032. 80171c2: 697b ldr r3, [r7, #20]
  56033. 80171c4: 6013 str r3, [r2, #0]
  56034. }
  56035. 80171c6: bf00 nop
  56036. 80171c8: 3718 adds r7, #24
  56037. 80171ca: 46bd mov sp, r7
  56038. 80171cc: bd80 pop {r7, pc}
  56039. 80171ce: bf00 nop
  56040. 80171d0: 24002bbc .word 0x24002bbc
  56041. 80171d4: 24002bc0 .word 0x24002bc0
  56042. 080171d8 <prvCheckForValidListAndQueue>:
  56043. /*-----------------------------------------------------------*/
  56044. static void prvCheckForValidListAndQueue( void )
  56045. {
  56046. 80171d8: b580 push {r7, lr}
  56047. 80171da: b082 sub sp, #8
  56048. 80171dc: af02 add r7, sp, #8
  56049. /* Check that the list from which active timers are referenced, and the
  56050. queue used to communicate with the timer service, have been
  56051. initialised. */
  56052. taskENTER_CRITICAL();
  56053. 80171de: f000 f9bb bl 8017558 <vPortEnterCritical>
  56054. {
  56055. if( xTimerQueue == NULL )
  56056. 80171e2: 4b15 ldr r3, [pc, #84] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56057. 80171e4: 681b ldr r3, [r3, #0]
  56058. 80171e6: 2b00 cmp r3, #0
  56059. 80171e8: d120 bne.n 801722c <prvCheckForValidListAndQueue+0x54>
  56060. {
  56061. vListInitialise( &xActiveTimerList1 );
  56062. 80171ea: 4814 ldr r0, [pc, #80] @ (801723c <prvCheckForValidListAndQueue+0x64>)
  56063. 80171ec: f7fc ff84 bl 80140f8 <vListInitialise>
  56064. vListInitialise( &xActiveTimerList2 );
  56065. 80171f0: 4813 ldr r0, [pc, #76] @ (8017240 <prvCheckForValidListAndQueue+0x68>)
  56066. 80171f2: f7fc ff81 bl 80140f8 <vListInitialise>
  56067. pxCurrentTimerList = &xActiveTimerList1;
  56068. 80171f6: 4b13 ldr r3, [pc, #76] @ (8017244 <prvCheckForValidListAndQueue+0x6c>)
  56069. 80171f8: 4a10 ldr r2, [pc, #64] @ (801723c <prvCheckForValidListAndQueue+0x64>)
  56070. 80171fa: 601a str r2, [r3, #0]
  56071. pxOverflowTimerList = &xActiveTimerList2;
  56072. 80171fc: 4b12 ldr r3, [pc, #72] @ (8017248 <prvCheckForValidListAndQueue+0x70>)
  56073. 80171fe: 4a10 ldr r2, [pc, #64] @ (8017240 <prvCheckForValidListAndQueue+0x68>)
  56074. 8017200: 601a str r2, [r3, #0]
  56075. /* The timer queue is allocated statically in case
  56076. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  56077. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  56078. 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. */
  56079. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  56080. 8017202: 2300 movs r3, #0
  56081. 8017204: 9300 str r3, [sp, #0]
  56082. 8017206: 4b11 ldr r3, [pc, #68] @ (801724c <prvCheckForValidListAndQueue+0x74>)
  56083. 8017208: 4a11 ldr r2, [pc, #68] @ (8017250 <prvCheckForValidListAndQueue+0x78>)
  56084. 801720a: 2110 movs r1, #16
  56085. 801720c: 200a movs r0, #10
  56086. 801720e: f7fd f891 bl 8014334 <xQueueGenericCreateStatic>
  56087. 8017212: 4603 mov r3, r0
  56088. 8017214: 4a08 ldr r2, [pc, #32] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56089. 8017216: 6013 str r3, [r2, #0]
  56090. }
  56091. #endif
  56092. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  56093. {
  56094. if( xTimerQueue != NULL )
  56095. 8017218: 4b07 ldr r3, [pc, #28] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56096. 801721a: 681b ldr r3, [r3, #0]
  56097. 801721c: 2b00 cmp r3, #0
  56098. 801721e: d005 beq.n 801722c <prvCheckForValidListAndQueue+0x54>
  56099. {
  56100. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  56101. 8017220: 4b05 ldr r3, [pc, #20] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56102. 8017222: 681b ldr r3, [r3, #0]
  56103. 8017224: 490b ldr r1, [pc, #44] @ (8017254 <prvCheckForValidListAndQueue+0x7c>)
  56104. 8017226: 4618 mov r0, r3
  56105. 8017228: f7fd ff54 bl 80150d4 <vQueueAddToRegistry>
  56106. else
  56107. {
  56108. mtCOVERAGE_TEST_MARKER();
  56109. }
  56110. }
  56111. taskEXIT_CRITICAL();
  56112. 801722c: f000 f9c6 bl 80175bc <vPortExitCritical>
  56113. }
  56114. 8017230: bf00 nop
  56115. 8017232: 46bd mov sp, r7
  56116. 8017234: bd80 pop {r7, pc}
  56117. 8017236: bf00 nop
  56118. 8017238: 24002bc4 .word 0x24002bc4
  56119. 801723c: 24002b94 .word 0x24002b94
  56120. 8017240: 24002ba8 .word 0x24002ba8
  56121. 8017244: 24002bbc .word 0x24002bbc
  56122. 8017248: 24002bc0 .word 0x24002bc0
  56123. 801724c: 24002c70 .word 0x24002c70
  56124. 8017250: 24002bd0 .word 0x24002bd0
  56125. 8017254: 08018bac .word 0x08018bac
  56126. 08017258 <xTimerIsTimerActive>:
  56127. /*-----------------------------------------------------------*/
  56128. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  56129. {
  56130. 8017258: b580 push {r7, lr}
  56131. 801725a: b086 sub sp, #24
  56132. 801725c: af00 add r7, sp, #0
  56133. 801725e: 6078 str r0, [r7, #4]
  56134. BaseType_t xReturn;
  56135. Timer_t *pxTimer = xTimer;
  56136. 8017260: 687b ldr r3, [r7, #4]
  56137. 8017262: 613b str r3, [r7, #16]
  56138. configASSERT( xTimer );
  56139. 8017264: 687b ldr r3, [r7, #4]
  56140. 8017266: 2b00 cmp r3, #0
  56141. 8017268: d10b bne.n 8017282 <xTimerIsTimerActive+0x2a>
  56142. __asm volatile
  56143. 801726a: f04f 0350 mov.w r3, #80 @ 0x50
  56144. 801726e: f383 8811 msr BASEPRI, r3
  56145. 8017272: f3bf 8f6f isb sy
  56146. 8017276: f3bf 8f4f dsb sy
  56147. 801727a: 60fb str r3, [r7, #12]
  56148. }
  56149. 801727c: bf00 nop
  56150. 801727e: bf00 nop
  56151. 8017280: e7fd b.n 801727e <xTimerIsTimerActive+0x26>
  56152. /* Is the timer in the list of active timers? */
  56153. taskENTER_CRITICAL();
  56154. 8017282: f000 f969 bl 8017558 <vPortEnterCritical>
  56155. {
  56156. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  56157. 8017286: 693b ldr r3, [r7, #16]
  56158. 8017288: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56159. 801728c: f003 0301 and.w r3, r3, #1
  56160. 8017290: 2b00 cmp r3, #0
  56161. 8017292: d102 bne.n 801729a <xTimerIsTimerActive+0x42>
  56162. {
  56163. xReturn = pdFALSE;
  56164. 8017294: 2300 movs r3, #0
  56165. 8017296: 617b str r3, [r7, #20]
  56166. 8017298: e001 b.n 801729e <xTimerIsTimerActive+0x46>
  56167. }
  56168. else
  56169. {
  56170. xReturn = pdTRUE;
  56171. 801729a: 2301 movs r3, #1
  56172. 801729c: 617b str r3, [r7, #20]
  56173. }
  56174. }
  56175. taskEXIT_CRITICAL();
  56176. 801729e: f000 f98d bl 80175bc <vPortExitCritical>
  56177. return xReturn;
  56178. 80172a2: 697b ldr r3, [r7, #20]
  56179. } /*lint !e818 Can't be pointer to const due to the typedef. */
  56180. 80172a4: 4618 mov r0, r3
  56181. 80172a6: 3718 adds r7, #24
  56182. 80172a8: 46bd mov sp, r7
  56183. 80172aa: bd80 pop {r7, pc}
  56184. 080172ac <pvTimerGetTimerID>:
  56185. /*-----------------------------------------------------------*/
  56186. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  56187. {
  56188. 80172ac: b580 push {r7, lr}
  56189. 80172ae: b086 sub sp, #24
  56190. 80172b0: af00 add r7, sp, #0
  56191. 80172b2: 6078 str r0, [r7, #4]
  56192. Timer_t * const pxTimer = xTimer;
  56193. 80172b4: 687b ldr r3, [r7, #4]
  56194. 80172b6: 617b str r3, [r7, #20]
  56195. void *pvReturn;
  56196. configASSERT( xTimer );
  56197. 80172b8: 687b ldr r3, [r7, #4]
  56198. 80172ba: 2b00 cmp r3, #0
  56199. 80172bc: d10b bne.n 80172d6 <pvTimerGetTimerID+0x2a>
  56200. __asm volatile
  56201. 80172be: f04f 0350 mov.w r3, #80 @ 0x50
  56202. 80172c2: f383 8811 msr BASEPRI, r3
  56203. 80172c6: f3bf 8f6f isb sy
  56204. 80172ca: f3bf 8f4f dsb sy
  56205. 80172ce: 60fb str r3, [r7, #12]
  56206. }
  56207. 80172d0: bf00 nop
  56208. 80172d2: bf00 nop
  56209. 80172d4: e7fd b.n 80172d2 <pvTimerGetTimerID+0x26>
  56210. taskENTER_CRITICAL();
  56211. 80172d6: f000 f93f bl 8017558 <vPortEnterCritical>
  56212. {
  56213. pvReturn = pxTimer->pvTimerID;
  56214. 80172da: 697b ldr r3, [r7, #20]
  56215. 80172dc: 69db ldr r3, [r3, #28]
  56216. 80172de: 613b str r3, [r7, #16]
  56217. }
  56218. taskEXIT_CRITICAL();
  56219. 80172e0: f000 f96c bl 80175bc <vPortExitCritical>
  56220. return pvReturn;
  56221. 80172e4: 693b ldr r3, [r7, #16]
  56222. }
  56223. 80172e6: 4618 mov r0, r3
  56224. 80172e8: 3718 adds r7, #24
  56225. 80172ea: 46bd mov sp, r7
  56226. 80172ec: bd80 pop {r7, pc}
  56227. ...
  56228. 080172f0 <pxPortInitialiseStack>:
  56229. /*
  56230. * See header file for description.
  56231. */
  56232. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  56233. {
  56234. 80172f0: b480 push {r7}
  56235. 80172f2: b085 sub sp, #20
  56236. 80172f4: af00 add r7, sp, #0
  56237. 80172f6: 60f8 str r0, [r7, #12]
  56238. 80172f8: 60b9 str r1, [r7, #8]
  56239. 80172fa: 607a str r2, [r7, #4]
  56240. /* Simulate the stack frame as it would be created by a context switch
  56241. interrupt. */
  56242. /* Offset added to account for the way the MCU uses the stack on entry/exit
  56243. of interrupts, and to ensure alignment. */
  56244. pxTopOfStack--;
  56245. 80172fc: 68fb ldr r3, [r7, #12]
  56246. 80172fe: 3b04 subs r3, #4
  56247. 8017300: 60fb str r3, [r7, #12]
  56248. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  56249. 8017302: 68fb ldr r3, [r7, #12]
  56250. 8017304: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  56251. 8017308: 601a str r2, [r3, #0]
  56252. pxTopOfStack--;
  56253. 801730a: 68fb ldr r3, [r7, #12]
  56254. 801730c: 3b04 subs r3, #4
  56255. 801730e: 60fb str r3, [r7, #12]
  56256. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  56257. 8017310: 68bb ldr r3, [r7, #8]
  56258. 8017312: f023 0201 bic.w r2, r3, #1
  56259. 8017316: 68fb ldr r3, [r7, #12]
  56260. 8017318: 601a str r2, [r3, #0]
  56261. pxTopOfStack--;
  56262. 801731a: 68fb ldr r3, [r7, #12]
  56263. 801731c: 3b04 subs r3, #4
  56264. 801731e: 60fb str r3, [r7, #12]
  56265. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  56266. 8017320: 4a0c ldr r2, [pc, #48] @ (8017354 <pxPortInitialiseStack+0x64>)
  56267. 8017322: 68fb ldr r3, [r7, #12]
  56268. 8017324: 601a str r2, [r3, #0]
  56269. /* Save code space by skipping register initialisation. */
  56270. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  56271. 8017326: 68fb ldr r3, [r7, #12]
  56272. 8017328: 3b14 subs r3, #20
  56273. 801732a: 60fb str r3, [r7, #12]
  56274. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  56275. 801732c: 687a ldr r2, [r7, #4]
  56276. 801732e: 68fb ldr r3, [r7, #12]
  56277. 8017330: 601a str r2, [r3, #0]
  56278. /* A save method is being used that requires each task to maintain its
  56279. own exec return value. */
  56280. pxTopOfStack--;
  56281. 8017332: 68fb ldr r3, [r7, #12]
  56282. 8017334: 3b04 subs r3, #4
  56283. 8017336: 60fb str r3, [r7, #12]
  56284. *pxTopOfStack = portINITIAL_EXC_RETURN;
  56285. 8017338: 68fb ldr r3, [r7, #12]
  56286. 801733a: f06f 0202 mvn.w r2, #2
  56287. 801733e: 601a str r2, [r3, #0]
  56288. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  56289. 8017340: 68fb ldr r3, [r7, #12]
  56290. 8017342: 3b20 subs r3, #32
  56291. 8017344: 60fb str r3, [r7, #12]
  56292. return pxTopOfStack;
  56293. 8017346: 68fb ldr r3, [r7, #12]
  56294. }
  56295. 8017348: 4618 mov r0, r3
  56296. 801734a: 3714 adds r7, #20
  56297. 801734c: 46bd mov sp, r7
  56298. 801734e: f85d 7b04 ldr.w r7, [sp], #4
  56299. 8017352: 4770 bx lr
  56300. 8017354: 08017359 .word 0x08017359
  56301. 08017358 <prvTaskExitError>:
  56302. /*-----------------------------------------------------------*/
  56303. static void prvTaskExitError( void )
  56304. {
  56305. 8017358: b480 push {r7}
  56306. 801735a: b085 sub sp, #20
  56307. 801735c: af00 add r7, sp, #0
  56308. volatile uint32_t ulDummy = 0;
  56309. 801735e: 2300 movs r3, #0
  56310. 8017360: 607b str r3, [r7, #4]
  56311. its caller as there is nothing to return to. If a task wants to exit it
  56312. should instead call vTaskDelete( NULL ).
  56313. Artificially force an assert() to be triggered if configASSERT() is
  56314. defined, then stop here so application writers can catch the error. */
  56315. configASSERT( uxCriticalNesting == ~0UL );
  56316. 8017362: 4b13 ldr r3, [pc, #76] @ (80173b0 <prvTaskExitError+0x58>)
  56317. 8017364: 681b ldr r3, [r3, #0]
  56318. 8017366: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  56319. 801736a: d00b beq.n 8017384 <prvTaskExitError+0x2c>
  56320. __asm volatile
  56321. 801736c: f04f 0350 mov.w r3, #80 @ 0x50
  56322. 8017370: f383 8811 msr BASEPRI, r3
  56323. 8017374: f3bf 8f6f isb sy
  56324. 8017378: f3bf 8f4f dsb sy
  56325. 801737c: 60fb str r3, [r7, #12]
  56326. }
  56327. 801737e: bf00 nop
  56328. 8017380: bf00 nop
  56329. 8017382: e7fd b.n 8017380 <prvTaskExitError+0x28>
  56330. __asm volatile
  56331. 8017384: f04f 0350 mov.w r3, #80 @ 0x50
  56332. 8017388: f383 8811 msr BASEPRI, r3
  56333. 801738c: f3bf 8f6f isb sy
  56334. 8017390: f3bf 8f4f dsb sy
  56335. 8017394: 60bb str r3, [r7, #8]
  56336. }
  56337. 8017396: bf00 nop
  56338. portDISABLE_INTERRUPTS();
  56339. while( ulDummy == 0 )
  56340. 8017398: bf00 nop
  56341. 801739a: 687b ldr r3, [r7, #4]
  56342. 801739c: 2b00 cmp r3, #0
  56343. 801739e: d0fc beq.n 801739a <prvTaskExitError+0x42>
  56344. about code appearing after this function is called - making ulDummy
  56345. volatile makes the compiler think the function could return and
  56346. therefore not output an 'unreachable code' warning for code that appears
  56347. after it. */
  56348. }
  56349. }
  56350. 80173a0: bf00 nop
  56351. 80173a2: bf00 nop
  56352. 80173a4: 3714 adds r7, #20
  56353. 80173a6: 46bd mov sp, r7
  56354. 80173a8: f85d 7b04 ldr.w r7, [sp], #4
  56355. 80173ac: 4770 bx lr
  56356. 80173ae: bf00 nop
  56357. 80173b0: 24000044 .word 0x24000044
  56358. ...
  56359. 080173c0 <SVC_Handler>:
  56360. /*-----------------------------------------------------------*/
  56361. void vPortSVCHandler( void )
  56362. {
  56363. __asm volatile (
  56364. 80173c0: 4b07 ldr r3, [pc, #28] @ (80173e0 <pxCurrentTCBConst2>)
  56365. 80173c2: 6819 ldr r1, [r3, #0]
  56366. 80173c4: 6808 ldr r0, [r1, #0]
  56367. 80173c6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56368. 80173ca: f380 8809 msr PSP, r0
  56369. 80173ce: f3bf 8f6f isb sy
  56370. 80173d2: f04f 0000 mov.w r0, #0
  56371. 80173d6: f380 8811 msr BASEPRI, r0
  56372. 80173da: 4770 bx lr
  56373. 80173dc: f3af 8000 nop.w
  56374. 080173e0 <pxCurrentTCBConst2>:
  56375. 80173e0: 24002694 .word 0x24002694
  56376. " bx r14 \n"
  56377. " \n"
  56378. " .align 4 \n"
  56379. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  56380. );
  56381. }
  56382. 80173e4: bf00 nop
  56383. 80173e6: bf00 nop
  56384. 080173e8 <prvPortStartFirstTask>:
  56385. {
  56386. /* Start the first task. This also clears the bit that indicates the FPU is
  56387. in use in case the FPU was used before the scheduler was started - which
  56388. would otherwise result in the unnecessary leaving of space in the SVC stack
  56389. for lazy saving of FPU registers. */
  56390. __asm volatile(
  56391. 80173e8: 4808 ldr r0, [pc, #32] @ (801740c <prvPortStartFirstTask+0x24>)
  56392. 80173ea: 6800 ldr r0, [r0, #0]
  56393. 80173ec: 6800 ldr r0, [r0, #0]
  56394. 80173ee: f380 8808 msr MSP, r0
  56395. 80173f2: f04f 0000 mov.w r0, #0
  56396. 80173f6: f380 8814 msr CONTROL, r0
  56397. 80173fa: b662 cpsie i
  56398. 80173fc: b661 cpsie f
  56399. 80173fe: f3bf 8f4f dsb sy
  56400. 8017402: f3bf 8f6f isb sy
  56401. 8017406: df00 svc 0
  56402. 8017408: bf00 nop
  56403. " dsb \n"
  56404. " isb \n"
  56405. " svc 0 \n" /* System call to start first task. */
  56406. " nop \n"
  56407. );
  56408. }
  56409. 801740a: bf00 nop
  56410. 801740c: e000ed08 .word 0xe000ed08
  56411. 08017410 <xPortStartScheduler>:
  56412. /*
  56413. * See header file for description.
  56414. */
  56415. BaseType_t xPortStartScheduler( void )
  56416. {
  56417. 8017410: b580 push {r7, lr}
  56418. 8017412: b086 sub sp, #24
  56419. 8017414: af00 add r7, sp, #0
  56420. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  56421. /* This port can be used on all revisions of the Cortex-M7 core other than
  56422. the r0p1 parts. r0p1 parts should use the port from the
  56423. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  56424. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  56425. 8017416: 4b47 ldr r3, [pc, #284] @ (8017534 <xPortStartScheduler+0x124>)
  56426. 8017418: 681b ldr r3, [r3, #0]
  56427. 801741a: 4a47 ldr r2, [pc, #284] @ (8017538 <xPortStartScheduler+0x128>)
  56428. 801741c: 4293 cmp r3, r2
  56429. 801741e: d10b bne.n 8017438 <xPortStartScheduler+0x28>
  56430. __asm volatile
  56431. 8017420: f04f 0350 mov.w r3, #80 @ 0x50
  56432. 8017424: f383 8811 msr BASEPRI, r3
  56433. 8017428: f3bf 8f6f isb sy
  56434. 801742c: f3bf 8f4f dsb sy
  56435. 8017430: 613b str r3, [r7, #16]
  56436. }
  56437. 8017432: bf00 nop
  56438. 8017434: bf00 nop
  56439. 8017436: e7fd b.n 8017434 <xPortStartScheduler+0x24>
  56440. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  56441. 8017438: 4b3e ldr r3, [pc, #248] @ (8017534 <xPortStartScheduler+0x124>)
  56442. 801743a: 681b ldr r3, [r3, #0]
  56443. 801743c: 4a3f ldr r2, [pc, #252] @ (801753c <xPortStartScheduler+0x12c>)
  56444. 801743e: 4293 cmp r3, r2
  56445. 8017440: d10b bne.n 801745a <xPortStartScheduler+0x4a>
  56446. __asm volatile
  56447. 8017442: f04f 0350 mov.w r3, #80 @ 0x50
  56448. 8017446: f383 8811 msr BASEPRI, r3
  56449. 801744a: f3bf 8f6f isb sy
  56450. 801744e: f3bf 8f4f dsb sy
  56451. 8017452: 60fb str r3, [r7, #12]
  56452. }
  56453. 8017454: bf00 nop
  56454. 8017456: bf00 nop
  56455. 8017458: e7fd b.n 8017456 <xPortStartScheduler+0x46>
  56456. #if( configASSERT_DEFINED == 1 )
  56457. {
  56458. volatile uint32_t ulOriginalPriority;
  56459. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  56460. 801745a: 4b39 ldr r3, [pc, #228] @ (8017540 <xPortStartScheduler+0x130>)
  56461. 801745c: 617b str r3, [r7, #20]
  56462. functions can be called. ISR safe functions are those that end in
  56463. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  56464. ensure interrupt entry is as fast and simple as possible.
  56465. Save the interrupt priority value that is about to be clobbered. */
  56466. ulOriginalPriority = *pucFirstUserPriorityRegister;
  56467. 801745e: 697b ldr r3, [r7, #20]
  56468. 8017460: 781b ldrb r3, [r3, #0]
  56469. 8017462: b2db uxtb r3, r3
  56470. 8017464: 607b str r3, [r7, #4]
  56471. /* Determine the number of priority bits available. First write to all
  56472. possible bits. */
  56473. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  56474. 8017466: 697b ldr r3, [r7, #20]
  56475. 8017468: 22ff movs r2, #255 @ 0xff
  56476. 801746a: 701a strb r2, [r3, #0]
  56477. /* Read the value back to see how many bits stuck. */
  56478. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  56479. 801746c: 697b ldr r3, [r7, #20]
  56480. 801746e: 781b ldrb r3, [r3, #0]
  56481. 8017470: b2db uxtb r3, r3
  56482. 8017472: 70fb strb r3, [r7, #3]
  56483. /* Use the same mask on the maximum system call priority. */
  56484. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  56485. 8017474: 78fb ldrb r3, [r7, #3]
  56486. 8017476: b2db uxtb r3, r3
  56487. 8017478: f003 0350 and.w r3, r3, #80 @ 0x50
  56488. 801747c: b2da uxtb r2, r3
  56489. 801747e: 4b31 ldr r3, [pc, #196] @ (8017544 <xPortStartScheduler+0x134>)
  56490. 8017480: 701a strb r2, [r3, #0]
  56491. /* Calculate the maximum acceptable priority group value for the number
  56492. of bits read back. */
  56493. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  56494. 8017482: 4b31 ldr r3, [pc, #196] @ (8017548 <xPortStartScheduler+0x138>)
  56495. 8017484: 2207 movs r2, #7
  56496. 8017486: 601a str r2, [r3, #0]
  56497. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  56498. 8017488: e009 b.n 801749e <xPortStartScheduler+0x8e>
  56499. {
  56500. ulMaxPRIGROUPValue--;
  56501. 801748a: 4b2f ldr r3, [pc, #188] @ (8017548 <xPortStartScheduler+0x138>)
  56502. 801748c: 681b ldr r3, [r3, #0]
  56503. 801748e: 3b01 subs r3, #1
  56504. 8017490: 4a2d ldr r2, [pc, #180] @ (8017548 <xPortStartScheduler+0x138>)
  56505. 8017492: 6013 str r3, [r2, #0]
  56506. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  56507. 8017494: 78fb ldrb r3, [r7, #3]
  56508. 8017496: b2db uxtb r3, r3
  56509. 8017498: 005b lsls r3, r3, #1
  56510. 801749a: b2db uxtb r3, r3
  56511. 801749c: 70fb strb r3, [r7, #3]
  56512. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  56513. 801749e: 78fb ldrb r3, [r7, #3]
  56514. 80174a0: b2db uxtb r3, r3
  56515. 80174a2: f003 0380 and.w r3, r3, #128 @ 0x80
  56516. 80174a6: 2b80 cmp r3, #128 @ 0x80
  56517. 80174a8: d0ef beq.n 801748a <xPortStartScheduler+0x7a>
  56518. #ifdef configPRIO_BITS
  56519. {
  56520. /* Check the FreeRTOS configuration that defines the number of
  56521. priority bits matches the number of priority bits actually queried
  56522. from the hardware. */
  56523. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  56524. 80174aa: 4b27 ldr r3, [pc, #156] @ (8017548 <xPortStartScheduler+0x138>)
  56525. 80174ac: 681b ldr r3, [r3, #0]
  56526. 80174ae: f1c3 0307 rsb r3, r3, #7
  56527. 80174b2: 2b04 cmp r3, #4
  56528. 80174b4: d00b beq.n 80174ce <xPortStartScheduler+0xbe>
  56529. __asm volatile
  56530. 80174b6: f04f 0350 mov.w r3, #80 @ 0x50
  56531. 80174ba: f383 8811 msr BASEPRI, r3
  56532. 80174be: f3bf 8f6f isb sy
  56533. 80174c2: f3bf 8f4f dsb sy
  56534. 80174c6: 60bb str r3, [r7, #8]
  56535. }
  56536. 80174c8: bf00 nop
  56537. 80174ca: bf00 nop
  56538. 80174cc: e7fd b.n 80174ca <xPortStartScheduler+0xba>
  56539. }
  56540. #endif
  56541. /* Shift the priority group value back to its position within the AIRCR
  56542. register. */
  56543. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  56544. 80174ce: 4b1e ldr r3, [pc, #120] @ (8017548 <xPortStartScheduler+0x138>)
  56545. 80174d0: 681b ldr r3, [r3, #0]
  56546. 80174d2: 021b lsls r3, r3, #8
  56547. 80174d4: 4a1c ldr r2, [pc, #112] @ (8017548 <xPortStartScheduler+0x138>)
  56548. 80174d6: 6013 str r3, [r2, #0]
  56549. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  56550. 80174d8: 4b1b ldr r3, [pc, #108] @ (8017548 <xPortStartScheduler+0x138>)
  56551. 80174da: 681b ldr r3, [r3, #0]
  56552. 80174dc: f403 63e0 and.w r3, r3, #1792 @ 0x700
  56553. 80174e0: 4a19 ldr r2, [pc, #100] @ (8017548 <xPortStartScheduler+0x138>)
  56554. 80174e2: 6013 str r3, [r2, #0]
  56555. /* Restore the clobbered interrupt priority register to its original
  56556. value. */
  56557. *pucFirstUserPriorityRegister = ulOriginalPriority;
  56558. 80174e4: 687b ldr r3, [r7, #4]
  56559. 80174e6: b2da uxtb r2, r3
  56560. 80174e8: 697b ldr r3, [r7, #20]
  56561. 80174ea: 701a strb r2, [r3, #0]
  56562. }
  56563. #endif /* conifgASSERT_DEFINED */
  56564. /* Make PendSV and SysTick the lowest priority interrupts. */
  56565. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  56566. 80174ec: 4b17 ldr r3, [pc, #92] @ (801754c <xPortStartScheduler+0x13c>)
  56567. 80174ee: 681b ldr r3, [r3, #0]
  56568. 80174f0: 4a16 ldr r2, [pc, #88] @ (801754c <xPortStartScheduler+0x13c>)
  56569. 80174f2: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  56570. 80174f6: 6013 str r3, [r2, #0]
  56571. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  56572. 80174f8: 4b14 ldr r3, [pc, #80] @ (801754c <xPortStartScheduler+0x13c>)
  56573. 80174fa: 681b ldr r3, [r3, #0]
  56574. 80174fc: 4a13 ldr r2, [pc, #76] @ (801754c <xPortStartScheduler+0x13c>)
  56575. 80174fe: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  56576. 8017502: 6013 str r3, [r2, #0]
  56577. /* Start the timer that generates the tick ISR. Interrupts are disabled
  56578. here already. */
  56579. vPortSetupTimerInterrupt();
  56580. 8017504: f000 f8da bl 80176bc <vPortSetupTimerInterrupt>
  56581. /* Initialise the critical nesting count ready for the first task. */
  56582. uxCriticalNesting = 0;
  56583. 8017508: 4b11 ldr r3, [pc, #68] @ (8017550 <xPortStartScheduler+0x140>)
  56584. 801750a: 2200 movs r2, #0
  56585. 801750c: 601a str r2, [r3, #0]
  56586. /* Ensure the VFP is enabled - it should be anyway. */
  56587. vPortEnableVFP();
  56588. 801750e: f000 f8f9 bl 8017704 <vPortEnableVFP>
  56589. /* Lazy save always. */
  56590. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  56591. 8017512: 4b10 ldr r3, [pc, #64] @ (8017554 <xPortStartScheduler+0x144>)
  56592. 8017514: 681b ldr r3, [r3, #0]
  56593. 8017516: 4a0f ldr r2, [pc, #60] @ (8017554 <xPortStartScheduler+0x144>)
  56594. 8017518: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  56595. 801751c: 6013 str r3, [r2, #0]
  56596. /* Start the first task. */
  56597. prvPortStartFirstTask();
  56598. 801751e: f7ff ff63 bl 80173e8 <prvPortStartFirstTask>
  56599. exit error function to prevent compiler warnings about a static function
  56600. not being called in the case that the application writer overrides this
  56601. functionality by defining configTASK_RETURN_ADDRESS. Call
  56602. vTaskSwitchContext() so link time optimisation does not remove the
  56603. symbol. */
  56604. vTaskSwitchContext();
  56605. 8017522: f7fe fbcd bl 8015cc0 <vTaskSwitchContext>
  56606. prvTaskExitError();
  56607. 8017526: f7ff ff17 bl 8017358 <prvTaskExitError>
  56608. /* Should not get here! */
  56609. return 0;
  56610. 801752a: 2300 movs r3, #0
  56611. }
  56612. 801752c: 4618 mov r0, r3
  56613. 801752e: 3718 adds r7, #24
  56614. 8017530: 46bd mov sp, r7
  56615. 8017532: bd80 pop {r7, pc}
  56616. 8017534: e000ed00 .word 0xe000ed00
  56617. 8017538: 410fc271 .word 0x410fc271
  56618. 801753c: 410fc270 .word 0x410fc270
  56619. 8017540: e000e400 .word 0xe000e400
  56620. 8017544: 24002cc0 .word 0x24002cc0
  56621. 8017548: 24002cc4 .word 0x24002cc4
  56622. 801754c: e000ed20 .word 0xe000ed20
  56623. 8017550: 24000044 .word 0x24000044
  56624. 8017554: e000ef34 .word 0xe000ef34
  56625. 08017558 <vPortEnterCritical>:
  56626. configASSERT( uxCriticalNesting == 1000UL );
  56627. }
  56628. /*-----------------------------------------------------------*/
  56629. void vPortEnterCritical( void )
  56630. {
  56631. 8017558: b480 push {r7}
  56632. 801755a: b083 sub sp, #12
  56633. 801755c: af00 add r7, sp, #0
  56634. __asm volatile
  56635. 801755e: f04f 0350 mov.w r3, #80 @ 0x50
  56636. 8017562: f383 8811 msr BASEPRI, r3
  56637. 8017566: f3bf 8f6f isb sy
  56638. 801756a: f3bf 8f4f dsb sy
  56639. 801756e: 607b str r3, [r7, #4]
  56640. }
  56641. 8017570: bf00 nop
  56642. portDISABLE_INTERRUPTS();
  56643. uxCriticalNesting++;
  56644. 8017572: 4b10 ldr r3, [pc, #64] @ (80175b4 <vPortEnterCritical+0x5c>)
  56645. 8017574: 681b ldr r3, [r3, #0]
  56646. 8017576: 3301 adds r3, #1
  56647. 8017578: 4a0e ldr r2, [pc, #56] @ (80175b4 <vPortEnterCritical+0x5c>)
  56648. 801757a: 6013 str r3, [r2, #0]
  56649. /* This is not the interrupt safe version of the enter critical function so
  56650. assert() if it is being called from an interrupt context. Only API
  56651. functions that end in "FromISR" can be used in an interrupt. Only assert if
  56652. the critical nesting count is 1 to protect against recursive calls if the
  56653. assert function also uses a critical section. */
  56654. if( uxCriticalNesting == 1 )
  56655. 801757c: 4b0d ldr r3, [pc, #52] @ (80175b4 <vPortEnterCritical+0x5c>)
  56656. 801757e: 681b ldr r3, [r3, #0]
  56657. 8017580: 2b01 cmp r3, #1
  56658. 8017582: d110 bne.n 80175a6 <vPortEnterCritical+0x4e>
  56659. {
  56660. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  56661. 8017584: 4b0c ldr r3, [pc, #48] @ (80175b8 <vPortEnterCritical+0x60>)
  56662. 8017586: 681b ldr r3, [r3, #0]
  56663. 8017588: b2db uxtb r3, r3
  56664. 801758a: 2b00 cmp r3, #0
  56665. 801758c: d00b beq.n 80175a6 <vPortEnterCritical+0x4e>
  56666. __asm volatile
  56667. 801758e: f04f 0350 mov.w r3, #80 @ 0x50
  56668. 8017592: f383 8811 msr BASEPRI, r3
  56669. 8017596: f3bf 8f6f isb sy
  56670. 801759a: f3bf 8f4f dsb sy
  56671. 801759e: 603b str r3, [r7, #0]
  56672. }
  56673. 80175a0: bf00 nop
  56674. 80175a2: bf00 nop
  56675. 80175a4: e7fd b.n 80175a2 <vPortEnterCritical+0x4a>
  56676. }
  56677. }
  56678. 80175a6: bf00 nop
  56679. 80175a8: 370c adds r7, #12
  56680. 80175aa: 46bd mov sp, r7
  56681. 80175ac: f85d 7b04 ldr.w r7, [sp], #4
  56682. 80175b0: 4770 bx lr
  56683. 80175b2: bf00 nop
  56684. 80175b4: 24000044 .word 0x24000044
  56685. 80175b8: e000ed04 .word 0xe000ed04
  56686. 080175bc <vPortExitCritical>:
  56687. /*-----------------------------------------------------------*/
  56688. void vPortExitCritical( void )
  56689. {
  56690. 80175bc: b480 push {r7}
  56691. 80175be: b083 sub sp, #12
  56692. 80175c0: af00 add r7, sp, #0
  56693. configASSERT( uxCriticalNesting );
  56694. 80175c2: 4b12 ldr r3, [pc, #72] @ (801760c <vPortExitCritical+0x50>)
  56695. 80175c4: 681b ldr r3, [r3, #0]
  56696. 80175c6: 2b00 cmp r3, #0
  56697. 80175c8: d10b bne.n 80175e2 <vPortExitCritical+0x26>
  56698. __asm volatile
  56699. 80175ca: f04f 0350 mov.w r3, #80 @ 0x50
  56700. 80175ce: f383 8811 msr BASEPRI, r3
  56701. 80175d2: f3bf 8f6f isb sy
  56702. 80175d6: f3bf 8f4f dsb sy
  56703. 80175da: 607b str r3, [r7, #4]
  56704. }
  56705. 80175dc: bf00 nop
  56706. 80175de: bf00 nop
  56707. 80175e0: e7fd b.n 80175de <vPortExitCritical+0x22>
  56708. uxCriticalNesting--;
  56709. 80175e2: 4b0a ldr r3, [pc, #40] @ (801760c <vPortExitCritical+0x50>)
  56710. 80175e4: 681b ldr r3, [r3, #0]
  56711. 80175e6: 3b01 subs r3, #1
  56712. 80175e8: 4a08 ldr r2, [pc, #32] @ (801760c <vPortExitCritical+0x50>)
  56713. 80175ea: 6013 str r3, [r2, #0]
  56714. if( uxCriticalNesting == 0 )
  56715. 80175ec: 4b07 ldr r3, [pc, #28] @ (801760c <vPortExitCritical+0x50>)
  56716. 80175ee: 681b ldr r3, [r3, #0]
  56717. 80175f0: 2b00 cmp r3, #0
  56718. 80175f2: d105 bne.n 8017600 <vPortExitCritical+0x44>
  56719. 80175f4: 2300 movs r3, #0
  56720. 80175f6: 603b str r3, [r7, #0]
  56721. __asm volatile
  56722. 80175f8: 683b ldr r3, [r7, #0]
  56723. 80175fa: f383 8811 msr BASEPRI, r3
  56724. }
  56725. 80175fe: bf00 nop
  56726. {
  56727. portENABLE_INTERRUPTS();
  56728. }
  56729. }
  56730. 8017600: bf00 nop
  56731. 8017602: 370c adds r7, #12
  56732. 8017604: 46bd mov sp, r7
  56733. 8017606: f85d 7b04 ldr.w r7, [sp], #4
  56734. 801760a: 4770 bx lr
  56735. 801760c: 24000044 .word 0x24000044
  56736. 08017610 <PendSV_Handler>:
  56737. void xPortPendSVHandler( void )
  56738. {
  56739. /* This is a naked function. */
  56740. __asm volatile
  56741. 8017610: f3ef 8009 mrs r0, PSP
  56742. 8017614: f3bf 8f6f isb sy
  56743. 8017618: 4b15 ldr r3, [pc, #84] @ (8017670 <pxCurrentTCBConst>)
  56744. 801761a: 681a ldr r2, [r3, #0]
  56745. 801761c: f01e 0f10 tst.w lr, #16
  56746. 8017620: bf08 it eq
  56747. 8017622: ed20 8a10 vstmdbeq r0!, {s16-s31}
  56748. 8017626: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56749. 801762a: 6010 str r0, [r2, #0]
  56750. 801762c: e92d 0009 stmdb sp!, {r0, r3}
  56751. 8017630: f04f 0050 mov.w r0, #80 @ 0x50
  56752. 8017634: f380 8811 msr BASEPRI, r0
  56753. 8017638: f3bf 8f4f dsb sy
  56754. 801763c: f3bf 8f6f isb sy
  56755. 8017640: f7fe fb3e bl 8015cc0 <vTaskSwitchContext>
  56756. 8017644: f04f 0000 mov.w r0, #0
  56757. 8017648: f380 8811 msr BASEPRI, r0
  56758. 801764c: bc09 pop {r0, r3}
  56759. 801764e: 6819 ldr r1, [r3, #0]
  56760. 8017650: 6808 ldr r0, [r1, #0]
  56761. 8017652: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56762. 8017656: f01e 0f10 tst.w lr, #16
  56763. 801765a: bf08 it eq
  56764. 801765c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  56765. 8017660: f380 8809 msr PSP, r0
  56766. 8017664: f3bf 8f6f isb sy
  56767. 8017668: 4770 bx lr
  56768. 801766a: bf00 nop
  56769. 801766c: f3af 8000 nop.w
  56770. 08017670 <pxCurrentTCBConst>:
  56771. 8017670: 24002694 .word 0x24002694
  56772. " \n"
  56773. " .align 4 \n"
  56774. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  56775. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  56776. );
  56777. }
  56778. 8017674: bf00 nop
  56779. 8017676: bf00 nop
  56780. 08017678 <xPortSysTickHandler>:
  56781. /*-----------------------------------------------------------*/
  56782. void xPortSysTickHandler( void )
  56783. {
  56784. 8017678: b580 push {r7, lr}
  56785. 801767a: b082 sub sp, #8
  56786. 801767c: af00 add r7, sp, #0
  56787. __asm volatile
  56788. 801767e: f04f 0350 mov.w r3, #80 @ 0x50
  56789. 8017682: f383 8811 msr BASEPRI, r3
  56790. 8017686: f3bf 8f6f isb sy
  56791. 801768a: f3bf 8f4f dsb sy
  56792. 801768e: 607b str r3, [r7, #4]
  56793. }
  56794. 8017690: bf00 nop
  56795. save and then restore the interrupt mask value as its value is already
  56796. known. */
  56797. portDISABLE_INTERRUPTS();
  56798. {
  56799. /* Increment the RTOS tick. */
  56800. if( xTaskIncrementTick() != pdFALSE )
  56801. 8017692: f7fe fa5b bl 8015b4c <xTaskIncrementTick>
  56802. 8017696: 4603 mov r3, r0
  56803. 8017698: 2b00 cmp r3, #0
  56804. 801769a: d003 beq.n 80176a4 <xPortSysTickHandler+0x2c>
  56805. {
  56806. /* A context switch is required. Context switching is performed in
  56807. the PendSV interrupt. Pend the PendSV interrupt. */
  56808. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  56809. 801769c: 4b06 ldr r3, [pc, #24] @ (80176b8 <xPortSysTickHandler+0x40>)
  56810. 801769e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56811. 80176a2: 601a str r2, [r3, #0]
  56812. 80176a4: 2300 movs r3, #0
  56813. 80176a6: 603b str r3, [r7, #0]
  56814. __asm volatile
  56815. 80176a8: 683b ldr r3, [r7, #0]
  56816. 80176aa: f383 8811 msr BASEPRI, r3
  56817. }
  56818. 80176ae: bf00 nop
  56819. }
  56820. }
  56821. portENABLE_INTERRUPTS();
  56822. }
  56823. 80176b0: bf00 nop
  56824. 80176b2: 3708 adds r7, #8
  56825. 80176b4: 46bd mov sp, r7
  56826. 80176b6: bd80 pop {r7, pc}
  56827. 80176b8: e000ed04 .word 0xe000ed04
  56828. 080176bc <vPortSetupTimerInterrupt>:
  56829. /*
  56830. * Setup the systick timer to generate the tick interrupts at the required
  56831. * frequency.
  56832. */
  56833. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  56834. {
  56835. 80176bc: b480 push {r7}
  56836. 80176be: af00 add r7, sp, #0
  56837. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  56838. }
  56839. #endif /* configUSE_TICKLESS_IDLE */
  56840. /* Stop and clear the SysTick. */
  56841. portNVIC_SYSTICK_CTRL_REG = 0UL;
  56842. 80176c0: 4b0b ldr r3, [pc, #44] @ (80176f0 <vPortSetupTimerInterrupt+0x34>)
  56843. 80176c2: 2200 movs r2, #0
  56844. 80176c4: 601a str r2, [r3, #0]
  56845. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  56846. 80176c6: 4b0b ldr r3, [pc, #44] @ (80176f4 <vPortSetupTimerInterrupt+0x38>)
  56847. 80176c8: 2200 movs r2, #0
  56848. 80176ca: 601a str r2, [r3, #0]
  56849. /* Configure SysTick to interrupt at the requested rate. */
  56850. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  56851. 80176cc: 4b0a ldr r3, [pc, #40] @ (80176f8 <vPortSetupTimerInterrupt+0x3c>)
  56852. 80176ce: 681b ldr r3, [r3, #0]
  56853. 80176d0: 4a0a ldr r2, [pc, #40] @ (80176fc <vPortSetupTimerInterrupt+0x40>)
  56854. 80176d2: fba2 2303 umull r2, r3, r2, r3
  56855. 80176d6: 099b lsrs r3, r3, #6
  56856. 80176d8: 4a09 ldr r2, [pc, #36] @ (8017700 <vPortSetupTimerInterrupt+0x44>)
  56857. 80176da: 3b01 subs r3, #1
  56858. 80176dc: 6013 str r3, [r2, #0]
  56859. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  56860. 80176de: 4b04 ldr r3, [pc, #16] @ (80176f0 <vPortSetupTimerInterrupt+0x34>)
  56861. 80176e0: 2207 movs r2, #7
  56862. 80176e2: 601a str r2, [r3, #0]
  56863. }
  56864. 80176e4: bf00 nop
  56865. 80176e6: 46bd mov sp, r7
  56866. 80176e8: f85d 7b04 ldr.w r7, [sp], #4
  56867. 80176ec: 4770 bx lr
  56868. 80176ee: bf00 nop
  56869. 80176f0: e000e010 .word 0xe000e010
  56870. 80176f4: e000e018 .word 0xe000e018
  56871. 80176f8: 24000034 .word 0x24000034
  56872. 80176fc: 10624dd3 .word 0x10624dd3
  56873. 8017700: e000e014 .word 0xe000e014
  56874. 08017704 <vPortEnableVFP>:
  56875. /*-----------------------------------------------------------*/
  56876. /* This is a naked function. */
  56877. static void vPortEnableVFP( void )
  56878. {
  56879. __asm volatile
  56880. 8017704: f8df 000c ldr.w r0, [pc, #12] @ 8017714 <vPortEnableVFP+0x10>
  56881. 8017708: 6801 ldr r1, [r0, #0]
  56882. 801770a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  56883. 801770e: 6001 str r1, [r0, #0]
  56884. 8017710: 4770 bx lr
  56885. " \n"
  56886. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  56887. " str r1, [r0] \n"
  56888. " bx r14 "
  56889. );
  56890. }
  56891. 8017712: bf00 nop
  56892. 8017714: e000ed88 .word 0xe000ed88
  56893. 08017718 <vPortValidateInterruptPriority>:
  56894. /*-----------------------------------------------------------*/
  56895. #if( configASSERT_DEFINED == 1 )
  56896. void vPortValidateInterruptPriority( void )
  56897. {
  56898. 8017718: b480 push {r7}
  56899. 801771a: b085 sub sp, #20
  56900. 801771c: af00 add r7, sp, #0
  56901. uint32_t ulCurrentInterrupt;
  56902. uint8_t ucCurrentPriority;
  56903. /* Obtain the number of the currently executing interrupt. */
  56904. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  56905. 801771e: f3ef 8305 mrs r3, IPSR
  56906. 8017722: 60fb str r3, [r7, #12]
  56907. /* Is the interrupt number a user defined interrupt? */
  56908. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  56909. 8017724: 68fb ldr r3, [r7, #12]
  56910. 8017726: 2b0f cmp r3, #15
  56911. 8017728: d915 bls.n 8017756 <vPortValidateInterruptPriority+0x3e>
  56912. {
  56913. /* Look up the interrupt's priority. */
  56914. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  56915. 801772a: 4a18 ldr r2, [pc, #96] @ (801778c <vPortValidateInterruptPriority+0x74>)
  56916. 801772c: 68fb ldr r3, [r7, #12]
  56917. 801772e: 4413 add r3, r2
  56918. 8017730: 781b ldrb r3, [r3, #0]
  56919. 8017732: 72fb strb r3, [r7, #11]
  56920. interrupt entry is as fast and simple as possible.
  56921. The following links provide detailed information:
  56922. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  56923. http://www.freertos.org/FAQHelp.html */
  56924. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  56925. 8017734: 4b16 ldr r3, [pc, #88] @ (8017790 <vPortValidateInterruptPriority+0x78>)
  56926. 8017736: 781b ldrb r3, [r3, #0]
  56927. 8017738: 7afa ldrb r2, [r7, #11]
  56928. 801773a: 429a cmp r2, r3
  56929. 801773c: d20b bcs.n 8017756 <vPortValidateInterruptPriority+0x3e>
  56930. __asm volatile
  56931. 801773e: f04f 0350 mov.w r3, #80 @ 0x50
  56932. 8017742: f383 8811 msr BASEPRI, r3
  56933. 8017746: f3bf 8f6f isb sy
  56934. 801774a: f3bf 8f4f dsb sy
  56935. 801774e: 607b str r3, [r7, #4]
  56936. }
  56937. 8017750: bf00 nop
  56938. 8017752: bf00 nop
  56939. 8017754: e7fd b.n 8017752 <vPortValidateInterruptPriority+0x3a>
  56940. configuration then the correct setting can be achieved on all Cortex-M
  56941. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  56942. scheduler. Note however that some vendor specific peripheral libraries
  56943. assume a non-zero priority group setting, in which cases using a value
  56944. of zero will result in unpredictable behaviour. */
  56945. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  56946. 8017756: 4b0f ldr r3, [pc, #60] @ (8017794 <vPortValidateInterruptPriority+0x7c>)
  56947. 8017758: 681b ldr r3, [r3, #0]
  56948. 801775a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  56949. 801775e: 4b0e ldr r3, [pc, #56] @ (8017798 <vPortValidateInterruptPriority+0x80>)
  56950. 8017760: 681b ldr r3, [r3, #0]
  56951. 8017762: 429a cmp r2, r3
  56952. 8017764: d90b bls.n 801777e <vPortValidateInterruptPriority+0x66>
  56953. __asm volatile
  56954. 8017766: f04f 0350 mov.w r3, #80 @ 0x50
  56955. 801776a: f383 8811 msr BASEPRI, r3
  56956. 801776e: f3bf 8f6f isb sy
  56957. 8017772: f3bf 8f4f dsb sy
  56958. 8017776: 603b str r3, [r7, #0]
  56959. }
  56960. 8017778: bf00 nop
  56961. 801777a: bf00 nop
  56962. 801777c: e7fd b.n 801777a <vPortValidateInterruptPriority+0x62>
  56963. }
  56964. 801777e: bf00 nop
  56965. 8017780: 3714 adds r7, #20
  56966. 8017782: 46bd mov sp, r7
  56967. 8017784: f85d 7b04 ldr.w r7, [sp], #4
  56968. 8017788: 4770 bx lr
  56969. 801778a: bf00 nop
  56970. 801778c: e000e3f0 .word 0xe000e3f0
  56971. 8017790: 24002cc0 .word 0x24002cc0
  56972. 8017794: e000ed0c .word 0xe000ed0c
  56973. 8017798: 24002cc4 .word 0x24002cc4
  56974. 0801779c <pvPortMalloc>:
  56975. static size_t xBlockAllocatedBit = 0;
  56976. /*-----------------------------------------------------------*/
  56977. void *pvPortMalloc( size_t xWantedSize )
  56978. {
  56979. 801779c: b580 push {r7, lr}
  56980. 801779e: b08a sub sp, #40 @ 0x28
  56981. 80177a0: af00 add r7, sp, #0
  56982. 80177a2: 6078 str r0, [r7, #4]
  56983. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  56984. void *pvReturn = NULL;
  56985. 80177a4: 2300 movs r3, #0
  56986. 80177a6: 61fb str r3, [r7, #28]
  56987. vTaskSuspendAll();
  56988. 80177a8: f7fe f914 bl 80159d4 <vTaskSuspendAll>
  56989. {
  56990. /* If this is the first call to malloc then the heap will require
  56991. initialisation to setup the list of free blocks. */
  56992. if( pxEnd == NULL )
  56993. 80177ac: 4b5c ldr r3, [pc, #368] @ (8017920 <pvPortMalloc+0x184>)
  56994. 80177ae: 681b ldr r3, [r3, #0]
  56995. 80177b0: 2b00 cmp r3, #0
  56996. 80177b2: d101 bne.n 80177b8 <pvPortMalloc+0x1c>
  56997. {
  56998. prvHeapInit();
  56999. 80177b4: f000 f924 bl 8017a00 <prvHeapInit>
  57000. /* Check the requested block size is not so large that the top bit is
  57001. set. The top bit of the block size member of the BlockLink_t structure
  57002. is used to determine who owns the block - the application or the
  57003. kernel, so it must be free. */
  57004. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  57005. 80177b8: 4b5a ldr r3, [pc, #360] @ (8017924 <pvPortMalloc+0x188>)
  57006. 80177ba: 681a ldr r2, [r3, #0]
  57007. 80177bc: 687b ldr r3, [r7, #4]
  57008. 80177be: 4013 ands r3, r2
  57009. 80177c0: 2b00 cmp r3, #0
  57010. 80177c2: f040 8095 bne.w 80178f0 <pvPortMalloc+0x154>
  57011. {
  57012. /* The wanted size is increased so it can contain a BlockLink_t
  57013. structure in addition to the requested amount of bytes. */
  57014. if( xWantedSize > 0 )
  57015. 80177c6: 687b ldr r3, [r7, #4]
  57016. 80177c8: 2b00 cmp r3, #0
  57017. 80177ca: d01e beq.n 801780a <pvPortMalloc+0x6e>
  57018. {
  57019. xWantedSize += xHeapStructSize;
  57020. 80177cc: 2208 movs r2, #8
  57021. 80177ce: 687b ldr r3, [r7, #4]
  57022. 80177d0: 4413 add r3, r2
  57023. 80177d2: 607b str r3, [r7, #4]
  57024. /* Ensure that blocks are always aligned to the required number
  57025. of bytes. */
  57026. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  57027. 80177d4: 687b ldr r3, [r7, #4]
  57028. 80177d6: f003 0307 and.w r3, r3, #7
  57029. 80177da: 2b00 cmp r3, #0
  57030. 80177dc: d015 beq.n 801780a <pvPortMalloc+0x6e>
  57031. {
  57032. /* Byte alignment required. */
  57033. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  57034. 80177de: 687b ldr r3, [r7, #4]
  57035. 80177e0: f023 0307 bic.w r3, r3, #7
  57036. 80177e4: 3308 adds r3, #8
  57037. 80177e6: 607b str r3, [r7, #4]
  57038. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  57039. 80177e8: 687b ldr r3, [r7, #4]
  57040. 80177ea: f003 0307 and.w r3, r3, #7
  57041. 80177ee: 2b00 cmp r3, #0
  57042. 80177f0: d00b beq.n 801780a <pvPortMalloc+0x6e>
  57043. __asm volatile
  57044. 80177f2: f04f 0350 mov.w r3, #80 @ 0x50
  57045. 80177f6: f383 8811 msr BASEPRI, r3
  57046. 80177fa: f3bf 8f6f isb sy
  57047. 80177fe: f3bf 8f4f dsb sy
  57048. 8017802: 617b str r3, [r7, #20]
  57049. }
  57050. 8017804: bf00 nop
  57051. 8017806: bf00 nop
  57052. 8017808: e7fd b.n 8017806 <pvPortMalloc+0x6a>
  57053. else
  57054. {
  57055. mtCOVERAGE_TEST_MARKER();
  57056. }
  57057. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  57058. 801780a: 687b ldr r3, [r7, #4]
  57059. 801780c: 2b00 cmp r3, #0
  57060. 801780e: d06f beq.n 80178f0 <pvPortMalloc+0x154>
  57061. 8017810: 4b45 ldr r3, [pc, #276] @ (8017928 <pvPortMalloc+0x18c>)
  57062. 8017812: 681b ldr r3, [r3, #0]
  57063. 8017814: 687a ldr r2, [r7, #4]
  57064. 8017816: 429a cmp r2, r3
  57065. 8017818: d86a bhi.n 80178f0 <pvPortMalloc+0x154>
  57066. {
  57067. /* Traverse the list from the start (lowest address) block until
  57068. one of adequate size is found. */
  57069. pxPreviousBlock = &xStart;
  57070. 801781a: 4b44 ldr r3, [pc, #272] @ (801792c <pvPortMalloc+0x190>)
  57071. 801781c: 623b str r3, [r7, #32]
  57072. pxBlock = xStart.pxNextFreeBlock;
  57073. 801781e: 4b43 ldr r3, [pc, #268] @ (801792c <pvPortMalloc+0x190>)
  57074. 8017820: 681b ldr r3, [r3, #0]
  57075. 8017822: 627b str r3, [r7, #36] @ 0x24
  57076. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57077. 8017824: e004 b.n 8017830 <pvPortMalloc+0x94>
  57078. {
  57079. pxPreviousBlock = pxBlock;
  57080. 8017826: 6a7b ldr r3, [r7, #36] @ 0x24
  57081. 8017828: 623b str r3, [r7, #32]
  57082. pxBlock = pxBlock->pxNextFreeBlock;
  57083. 801782a: 6a7b ldr r3, [r7, #36] @ 0x24
  57084. 801782c: 681b ldr r3, [r3, #0]
  57085. 801782e: 627b str r3, [r7, #36] @ 0x24
  57086. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57087. 8017830: 6a7b ldr r3, [r7, #36] @ 0x24
  57088. 8017832: 685b ldr r3, [r3, #4]
  57089. 8017834: 687a ldr r2, [r7, #4]
  57090. 8017836: 429a cmp r2, r3
  57091. 8017838: d903 bls.n 8017842 <pvPortMalloc+0xa6>
  57092. 801783a: 6a7b ldr r3, [r7, #36] @ 0x24
  57093. 801783c: 681b ldr r3, [r3, #0]
  57094. 801783e: 2b00 cmp r3, #0
  57095. 8017840: d1f1 bne.n 8017826 <pvPortMalloc+0x8a>
  57096. }
  57097. /* If the end marker was reached then a block of adequate size
  57098. was not found. */
  57099. if( pxBlock != pxEnd )
  57100. 8017842: 4b37 ldr r3, [pc, #220] @ (8017920 <pvPortMalloc+0x184>)
  57101. 8017844: 681b ldr r3, [r3, #0]
  57102. 8017846: 6a7a ldr r2, [r7, #36] @ 0x24
  57103. 8017848: 429a cmp r2, r3
  57104. 801784a: d051 beq.n 80178f0 <pvPortMalloc+0x154>
  57105. {
  57106. /* Return the memory space pointed to - jumping over the
  57107. BlockLink_t structure at its start. */
  57108. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  57109. 801784c: 6a3b ldr r3, [r7, #32]
  57110. 801784e: 681b ldr r3, [r3, #0]
  57111. 8017850: 2208 movs r2, #8
  57112. 8017852: 4413 add r3, r2
  57113. 8017854: 61fb str r3, [r7, #28]
  57114. /* This block is being returned for use so must be taken out
  57115. of the list of free blocks. */
  57116. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  57117. 8017856: 6a7b ldr r3, [r7, #36] @ 0x24
  57118. 8017858: 681a ldr r2, [r3, #0]
  57119. 801785a: 6a3b ldr r3, [r7, #32]
  57120. 801785c: 601a str r2, [r3, #0]
  57121. /* If the block is larger than required it can be split into
  57122. two. */
  57123. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  57124. 801785e: 6a7b ldr r3, [r7, #36] @ 0x24
  57125. 8017860: 685a ldr r2, [r3, #4]
  57126. 8017862: 687b ldr r3, [r7, #4]
  57127. 8017864: 1ad2 subs r2, r2, r3
  57128. 8017866: 2308 movs r3, #8
  57129. 8017868: 005b lsls r3, r3, #1
  57130. 801786a: 429a cmp r2, r3
  57131. 801786c: d920 bls.n 80178b0 <pvPortMalloc+0x114>
  57132. {
  57133. /* This block is to be split into two. Create a new
  57134. block following the number of bytes requested. The void
  57135. cast is used to prevent byte alignment warnings from the
  57136. compiler. */
  57137. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  57138. 801786e: 6a7a ldr r2, [r7, #36] @ 0x24
  57139. 8017870: 687b ldr r3, [r7, #4]
  57140. 8017872: 4413 add r3, r2
  57141. 8017874: 61bb str r3, [r7, #24]
  57142. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  57143. 8017876: 69bb ldr r3, [r7, #24]
  57144. 8017878: f003 0307 and.w r3, r3, #7
  57145. 801787c: 2b00 cmp r3, #0
  57146. 801787e: d00b beq.n 8017898 <pvPortMalloc+0xfc>
  57147. __asm volatile
  57148. 8017880: f04f 0350 mov.w r3, #80 @ 0x50
  57149. 8017884: f383 8811 msr BASEPRI, r3
  57150. 8017888: f3bf 8f6f isb sy
  57151. 801788c: f3bf 8f4f dsb sy
  57152. 8017890: 613b str r3, [r7, #16]
  57153. }
  57154. 8017892: bf00 nop
  57155. 8017894: bf00 nop
  57156. 8017896: e7fd b.n 8017894 <pvPortMalloc+0xf8>
  57157. /* Calculate the sizes of two blocks split from the
  57158. single block. */
  57159. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  57160. 8017898: 6a7b ldr r3, [r7, #36] @ 0x24
  57161. 801789a: 685a ldr r2, [r3, #4]
  57162. 801789c: 687b ldr r3, [r7, #4]
  57163. 801789e: 1ad2 subs r2, r2, r3
  57164. 80178a0: 69bb ldr r3, [r7, #24]
  57165. 80178a2: 605a str r2, [r3, #4]
  57166. pxBlock->xBlockSize = xWantedSize;
  57167. 80178a4: 6a7b ldr r3, [r7, #36] @ 0x24
  57168. 80178a6: 687a ldr r2, [r7, #4]
  57169. 80178a8: 605a str r2, [r3, #4]
  57170. /* Insert the new block into the list of free blocks. */
  57171. prvInsertBlockIntoFreeList( pxNewBlockLink );
  57172. 80178aa: 69b8 ldr r0, [r7, #24]
  57173. 80178ac: f000 f90a bl 8017ac4 <prvInsertBlockIntoFreeList>
  57174. else
  57175. {
  57176. mtCOVERAGE_TEST_MARKER();
  57177. }
  57178. xFreeBytesRemaining -= pxBlock->xBlockSize;
  57179. 80178b0: 4b1d ldr r3, [pc, #116] @ (8017928 <pvPortMalloc+0x18c>)
  57180. 80178b2: 681a ldr r2, [r3, #0]
  57181. 80178b4: 6a7b ldr r3, [r7, #36] @ 0x24
  57182. 80178b6: 685b ldr r3, [r3, #4]
  57183. 80178b8: 1ad3 subs r3, r2, r3
  57184. 80178ba: 4a1b ldr r2, [pc, #108] @ (8017928 <pvPortMalloc+0x18c>)
  57185. 80178bc: 6013 str r3, [r2, #0]
  57186. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  57187. 80178be: 4b1a ldr r3, [pc, #104] @ (8017928 <pvPortMalloc+0x18c>)
  57188. 80178c0: 681a ldr r2, [r3, #0]
  57189. 80178c2: 4b1b ldr r3, [pc, #108] @ (8017930 <pvPortMalloc+0x194>)
  57190. 80178c4: 681b ldr r3, [r3, #0]
  57191. 80178c6: 429a cmp r2, r3
  57192. 80178c8: d203 bcs.n 80178d2 <pvPortMalloc+0x136>
  57193. {
  57194. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  57195. 80178ca: 4b17 ldr r3, [pc, #92] @ (8017928 <pvPortMalloc+0x18c>)
  57196. 80178cc: 681b ldr r3, [r3, #0]
  57197. 80178ce: 4a18 ldr r2, [pc, #96] @ (8017930 <pvPortMalloc+0x194>)
  57198. 80178d0: 6013 str r3, [r2, #0]
  57199. mtCOVERAGE_TEST_MARKER();
  57200. }
  57201. /* The block is being returned - it is allocated and owned
  57202. by the application and has no "next" block. */
  57203. pxBlock->xBlockSize |= xBlockAllocatedBit;
  57204. 80178d2: 6a7b ldr r3, [r7, #36] @ 0x24
  57205. 80178d4: 685a ldr r2, [r3, #4]
  57206. 80178d6: 4b13 ldr r3, [pc, #76] @ (8017924 <pvPortMalloc+0x188>)
  57207. 80178d8: 681b ldr r3, [r3, #0]
  57208. 80178da: 431a orrs r2, r3
  57209. 80178dc: 6a7b ldr r3, [r7, #36] @ 0x24
  57210. 80178de: 605a str r2, [r3, #4]
  57211. pxBlock->pxNextFreeBlock = NULL;
  57212. 80178e0: 6a7b ldr r3, [r7, #36] @ 0x24
  57213. 80178e2: 2200 movs r2, #0
  57214. 80178e4: 601a str r2, [r3, #0]
  57215. xNumberOfSuccessfulAllocations++;
  57216. 80178e6: 4b13 ldr r3, [pc, #76] @ (8017934 <pvPortMalloc+0x198>)
  57217. 80178e8: 681b ldr r3, [r3, #0]
  57218. 80178ea: 3301 adds r3, #1
  57219. 80178ec: 4a11 ldr r2, [pc, #68] @ (8017934 <pvPortMalloc+0x198>)
  57220. 80178ee: 6013 str r3, [r2, #0]
  57221. mtCOVERAGE_TEST_MARKER();
  57222. }
  57223. traceMALLOC( pvReturn, xWantedSize );
  57224. }
  57225. ( void ) xTaskResumeAll();
  57226. 80178f0: f7fe f87e bl 80159f0 <xTaskResumeAll>
  57227. mtCOVERAGE_TEST_MARKER();
  57228. }
  57229. }
  57230. #endif
  57231. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  57232. 80178f4: 69fb ldr r3, [r7, #28]
  57233. 80178f6: f003 0307 and.w r3, r3, #7
  57234. 80178fa: 2b00 cmp r3, #0
  57235. 80178fc: d00b beq.n 8017916 <pvPortMalloc+0x17a>
  57236. __asm volatile
  57237. 80178fe: f04f 0350 mov.w r3, #80 @ 0x50
  57238. 8017902: f383 8811 msr BASEPRI, r3
  57239. 8017906: f3bf 8f6f isb sy
  57240. 801790a: f3bf 8f4f dsb sy
  57241. 801790e: 60fb str r3, [r7, #12]
  57242. }
  57243. 8017910: bf00 nop
  57244. 8017912: bf00 nop
  57245. 8017914: e7fd b.n 8017912 <pvPortMalloc+0x176>
  57246. return pvReturn;
  57247. 8017916: 69fb ldr r3, [r7, #28]
  57248. }
  57249. 8017918: 4618 mov r0, r3
  57250. 801791a: 3728 adds r7, #40 @ 0x28
  57251. 801791c: 46bd mov sp, r7
  57252. 801791e: bd80 pop {r7, pc}
  57253. 8017920: 24012cd0 .word 0x24012cd0
  57254. 8017924: 24012ce4 .word 0x24012ce4
  57255. 8017928: 24012cd4 .word 0x24012cd4
  57256. 801792c: 24012cc8 .word 0x24012cc8
  57257. 8017930: 24012cd8 .word 0x24012cd8
  57258. 8017934: 24012cdc .word 0x24012cdc
  57259. 08017938 <vPortFree>:
  57260. /*-----------------------------------------------------------*/
  57261. void vPortFree( void *pv )
  57262. {
  57263. 8017938: b580 push {r7, lr}
  57264. 801793a: b086 sub sp, #24
  57265. 801793c: af00 add r7, sp, #0
  57266. 801793e: 6078 str r0, [r7, #4]
  57267. uint8_t *puc = ( uint8_t * ) pv;
  57268. 8017940: 687b ldr r3, [r7, #4]
  57269. 8017942: 617b str r3, [r7, #20]
  57270. BlockLink_t *pxLink;
  57271. if( pv != NULL )
  57272. 8017944: 687b ldr r3, [r7, #4]
  57273. 8017946: 2b00 cmp r3, #0
  57274. 8017948: d04f beq.n 80179ea <vPortFree+0xb2>
  57275. {
  57276. /* The memory being freed will have an BlockLink_t structure immediately
  57277. before it. */
  57278. puc -= xHeapStructSize;
  57279. 801794a: 2308 movs r3, #8
  57280. 801794c: 425b negs r3, r3
  57281. 801794e: 697a ldr r2, [r7, #20]
  57282. 8017950: 4413 add r3, r2
  57283. 8017952: 617b str r3, [r7, #20]
  57284. /* This casting is to keep the compiler from issuing warnings. */
  57285. pxLink = ( void * ) puc;
  57286. 8017954: 697b ldr r3, [r7, #20]
  57287. 8017956: 613b str r3, [r7, #16]
  57288. /* Check the block is actually allocated. */
  57289. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  57290. 8017958: 693b ldr r3, [r7, #16]
  57291. 801795a: 685a ldr r2, [r3, #4]
  57292. 801795c: 4b25 ldr r3, [pc, #148] @ (80179f4 <vPortFree+0xbc>)
  57293. 801795e: 681b ldr r3, [r3, #0]
  57294. 8017960: 4013 ands r3, r2
  57295. 8017962: 2b00 cmp r3, #0
  57296. 8017964: d10b bne.n 801797e <vPortFree+0x46>
  57297. __asm volatile
  57298. 8017966: f04f 0350 mov.w r3, #80 @ 0x50
  57299. 801796a: f383 8811 msr BASEPRI, r3
  57300. 801796e: f3bf 8f6f isb sy
  57301. 8017972: f3bf 8f4f dsb sy
  57302. 8017976: 60fb str r3, [r7, #12]
  57303. }
  57304. 8017978: bf00 nop
  57305. 801797a: bf00 nop
  57306. 801797c: e7fd b.n 801797a <vPortFree+0x42>
  57307. configASSERT( pxLink->pxNextFreeBlock == NULL );
  57308. 801797e: 693b ldr r3, [r7, #16]
  57309. 8017980: 681b ldr r3, [r3, #0]
  57310. 8017982: 2b00 cmp r3, #0
  57311. 8017984: d00b beq.n 801799e <vPortFree+0x66>
  57312. __asm volatile
  57313. 8017986: f04f 0350 mov.w r3, #80 @ 0x50
  57314. 801798a: f383 8811 msr BASEPRI, r3
  57315. 801798e: f3bf 8f6f isb sy
  57316. 8017992: f3bf 8f4f dsb sy
  57317. 8017996: 60bb str r3, [r7, #8]
  57318. }
  57319. 8017998: bf00 nop
  57320. 801799a: bf00 nop
  57321. 801799c: e7fd b.n 801799a <vPortFree+0x62>
  57322. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  57323. 801799e: 693b ldr r3, [r7, #16]
  57324. 80179a0: 685a ldr r2, [r3, #4]
  57325. 80179a2: 4b14 ldr r3, [pc, #80] @ (80179f4 <vPortFree+0xbc>)
  57326. 80179a4: 681b ldr r3, [r3, #0]
  57327. 80179a6: 4013 ands r3, r2
  57328. 80179a8: 2b00 cmp r3, #0
  57329. 80179aa: d01e beq.n 80179ea <vPortFree+0xb2>
  57330. {
  57331. if( pxLink->pxNextFreeBlock == NULL )
  57332. 80179ac: 693b ldr r3, [r7, #16]
  57333. 80179ae: 681b ldr r3, [r3, #0]
  57334. 80179b0: 2b00 cmp r3, #0
  57335. 80179b2: d11a bne.n 80179ea <vPortFree+0xb2>
  57336. {
  57337. /* The block is being returned to the heap - it is no longer
  57338. allocated. */
  57339. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  57340. 80179b4: 693b ldr r3, [r7, #16]
  57341. 80179b6: 685a ldr r2, [r3, #4]
  57342. 80179b8: 4b0e ldr r3, [pc, #56] @ (80179f4 <vPortFree+0xbc>)
  57343. 80179ba: 681b ldr r3, [r3, #0]
  57344. 80179bc: 43db mvns r3, r3
  57345. 80179be: 401a ands r2, r3
  57346. 80179c0: 693b ldr r3, [r7, #16]
  57347. 80179c2: 605a str r2, [r3, #4]
  57348. vTaskSuspendAll();
  57349. 80179c4: f7fe f806 bl 80159d4 <vTaskSuspendAll>
  57350. {
  57351. /* Add this block to the list of free blocks. */
  57352. xFreeBytesRemaining += pxLink->xBlockSize;
  57353. 80179c8: 693b ldr r3, [r7, #16]
  57354. 80179ca: 685a ldr r2, [r3, #4]
  57355. 80179cc: 4b0a ldr r3, [pc, #40] @ (80179f8 <vPortFree+0xc0>)
  57356. 80179ce: 681b ldr r3, [r3, #0]
  57357. 80179d0: 4413 add r3, r2
  57358. 80179d2: 4a09 ldr r2, [pc, #36] @ (80179f8 <vPortFree+0xc0>)
  57359. 80179d4: 6013 str r3, [r2, #0]
  57360. traceFREE( pv, pxLink->xBlockSize );
  57361. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  57362. 80179d6: 6938 ldr r0, [r7, #16]
  57363. 80179d8: f000 f874 bl 8017ac4 <prvInsertBlockIntoFreeList>
  57364. xNumberOfSuccessfulFrees++;
  57365. 80179dc: 4b07 ldr r3, [pc, #28] @ (80179fc <vPortFree+0xc4>)
  57366. 80179de: 681b ldr r3, [r3, #0]
  57367. 80179e0: 3301 adds r3, #1
  57368. 80179e2: 4a06 ldr r2, [pc, #24] @ (80179fc <vPortFree+0xc4>)
  57369. 80179e4: 6013 str r3, [r2, #0]
  57370. }
  57371. ( void ) xTaskResumeAll();
  57372. 80179e6: f7fe f803 bl 80159f0 <xTaskResumeAll>
  57373. else
  57374. {
  57375. mtCOVERAGE_TEST_MARKER();
  57376. }
  57377. }
  57378. }
  57379. 80179ea: bf00 nop
  57380. 80179ec: 3718 adds r7, #24
  57381. 80179ee: 46bd mov sp, r7
  57382. 80179f0: bd80 pop {r7, pc}
  57383. 80179f2: bf00 nop
  57384. 80179f4: 24012ce4 .word 0x24012ce4
  57385. 80179f8: 24012cd4 .word 0x24012cd4
  57386. 80179fc: 24012ce0 .word 0x24012ce0
  57387. 08017a00 <prvHeapInit>:
  57388. /* This just exists to keep the linker quiet. */
  57389. }
  57390. /*-----------------------------------------------------------*/
  57391. static void prvHeapInit( void )
  57392. {
  57393. 8017a00: b480 push {r7}
  57394. 8017a02: b085 sub sp, #20
  57395. 8017a04: af00 add r7, sp, #0
  57396. BlockLink_t *pxFirstFreeBlock;
  57397. uint8_t *pucAlignedHeap;
  57398. size_t uxAddress;
  57399. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  57400. 8017a06: f44f 3380 mov.w r3, #65536 @ 0x10000
  57401. 8017a0a: 60bb str r3, [r7, #8]
  57402. /* Ensure the heap starts on a correctly aligned boundary. */
  57403. uxAddress = ( size_t ) ucHeap;
  57404. 8017a0c: 4b27 ldr r3, [pc, #156] @ (8017aac <prvHeapInit+0xac>)
  57405. 8017a0e: 60fb str r3, [r7, #12]
  57406. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  57407. 8017a10: 68fb ldr r3, [r7, #12]
  57408. 8017a12: f003 0307 and.w r3, r3, #7
  57409. 8017a16: 2b00 cmp r3, #0
  57410. 8017a18: d00c beq.n 8017a34 <prvHeapInit+0x34>
  57411. {
  57412. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  57413. 8017a1a: 68fb ldr r3, [r7, #12]
  57414. 8017a1c: 3307 adds r3, #7
  57415. 8017a1e: 60fb str r3, [r7, #12]
  57416. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  57417. 8017a20: 68fb ldr r3, [r7, #12]
  57418. 8017a22: f023 0307 bic.w r3, r3, #7
  57419. 8017a26: 60fb str r3, [r7, #12]
  57420. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  57421. 8017a28: 68ba ldr r2, [r7, #8]
  57422. 8017a2a: 68fb ldr r3, [r7, #12]
  57423. 8017a2c: 1ad3 subs r3, r2, r3
  57424. 8017a2e: 4a1f ldr r2, [pc, #124] @ (8017aac <prvHeapInit+0xac>)
  57425. 8017a30: 4413 add r3, r2
  57426. 8017a32: 60bb str r3, [r7, #8]
  57427. }
  57428. pucAlignedHeap = ( uint8_t * ) uxAddress;
  57429. 8017a34: 68fb ldr r3, [r7, #12]
  57430. 8017a36: 607b str r3, [r7, #4]
  57431. /* xStart is used to hold a pointer to the first item in the list of free
  57432. blocks. The void cast is used to prevent compiler warnings. */
  57433. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  57434. 8017a38: 4a1d ldr r2, [pc, #116] @ (8017ab0 <prvHeapInit+0xb0>)
  57435. 8017a3a: 687b ldr r3, [r7, #4]
  57436. 8017a3c: 6013 str r3, [r2, #0]
  57437. xStart.xBlockSize = ( size_t ) 0;
  57438. 8017a3e: 4b1c ldr r3, [pc, #112] @ (8017ab0 <prvHeapInit+0xb0>)
  57439. 8017a40: 2200 movs r2, #0
  57440. 8017a42: 605a str r2, [r3, #4]
  57441. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  57442. at the end of the heap space. */
  57443. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  57444. 8017a44: 687b ldr r3, [r7, #4]
  57445. 8017a46: 68ba ldr r2, [r7, #8]
  57446. 8017a48: 4413 add r3, r2
  57447. 8017a4a: 60fb str r3, [r7, #12]
  57448. uxAddress -= xHeapStructSize;
  57449. 8017a4c: 2208 movs r2, #8
  57450. 8017a4e: 68fb ldr r3, [r7, #12]
  57451. 8017a50: 1a9b subs r3, r3, r2
  57452. 8017a52: 60fb str r3, [r7, #12]
  57453. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  57454. 8017a54: 68fb ldr r3, [r7, #12]
  57455. 8017a56: f023 0307 bic.w r3, r3, #7
  57456. 8017a5a: 60fb str r3, [r7, #12]
  57457. pxEnd = ( void * ) uxAddress;
  57458. 8017a5c: 68fb ldr r3, [r7, #12]
  57459. 8017a5e: 4a15 ldr r2, [pc, #84] @ (8017ab4 <prvHeapInit+0xb4>)
  57460. 8017a60: 6013 str r3, [r2, #0]
  57461. pxEnd->xBlockSize = 0;
  57462. 8017a62: 4b14 ldr r3, [pc, #80] @ (8017ab4 <prvHeapInit+0xb4>)
  57463. 8017a64: 681b ldr r3, [r3, #0]
  57464. 8017a66: 2200 movs r2, #0
  57465. 8017a68: 605a str r2, [r3, #4]
  57466. pxEnd->pxNextFreeBlock = NULL;
  57467. 8017a6a: 4b12 ldr r3, [pc, #72] @ (8017ab4 <prvHeapInit+0xb4>)
  57468. 8017a6c: 681b ldr r3, [r3, #0]
  57469. 8017a6e: 2200 movs r2, #0
  57470. 8017a70: 601a str r2, [r3, #0]
  57471. /* To start with there is a single free block that is sized to take up the
  57472. entire heap space, minus the space taken by pxEnd. */
  57473. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  57474. 8017a72: 687b ldr r3, [r7, #4]
  57475. 8017a74: 603b str r3, [r7, #0]
  57476. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  57477. 8017a76: 683b ldr r3, [r7, #0]
  57478. 8017a78: 68fa ldr r2, [r7, #12]
  57479. 8017a7a: 1ad2 subs r2, r2, r3
  57480. 8017a7c: 683b ldr r3, [r7, #0]
  57481. 8017a7e: 605a str r2, [r3, #4]
  57482. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  57483. 8017a80: 4b0c ldr r3, [pc, #48] @ (8017ab4 <prvHeapInit+0xb4>)
  57484. 8017a82: 681a ldr r2, [r3, #0]
  57485. 8017a84: 683b ldr r3, [r7, #0]
  57486. 8017a86: 601a str r2, [r3, #0]
  57487. /* Only one block exists - and it covers the entire usable heap space. */
  57488. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  57489. 8017a88: 683b ldr r3, [r7, #0]
  57490. 8017a8a: 685b ldr r3, [r3, #4]
  57491. 8017a8c: 4a0a ldr r2, [pc, #40] @ (8017ab8 <prvHeapInit+0xb8>)
  57492. 8017a8e: 6013 str r3, [r2, #0]
  57493. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  57494. 8017a90: 683b ldr r3, [r7, #0]
  57495. 8017a92: 685b ldr r3, [r3, #4]
  57496. 8017a94: 4a09 ldr r2, [pc, #36] @ (8017abc <prvHeapInit+0xbc>)
  57497. 8017a96: 6013 str r3, [r2, #0]
  57498. /* Work out the position of the top bit in a size_t variable. */
  57499. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  57500. 8017a98: 4b09 ldr r3, [pc, #36] @ (8017ac0 <prvHeapInit+0xc0>)
  57501. 8017a9a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  57502. 8017a9e: 601a str r2, [r3, #0]
  57503. }
  57504. 8017aa0: bf00 nop
  57505. 8017aa2: 3714 adds r7, #20
  57506. 8017aa4: 46bd mov sp, r7
  57507. 8017aa6: f85d 7b04 ldr.w r7, [sp], #4
  57508. 8017aaa: 4770 bx lr
  57509. 8017aac: 24002cc8 .word 0x24002cc8
  57510. 8017ab0: 24012cc8 .word 0x24012cc8
  57511. 8017ab4: 24012cd0 .word 0x24012cd0
  57512. 8017ab8: 24012cd8 .word 0x24012cd8
  57513. 8017abc: 24012cd4 .word 0x24012cd4
  57514. 8017ac0: 24012ce4 .word 0x24012ce4
  57515. 08017ac4 <prvInsertBlockIntoFreeList>:
  57516. /*-----------------------------------------------------------*/
  57517. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  57518. {
  57519. 8017ac4: b480 push {r7}
  57520. 8017ac6: b085 sub sp, #20
  57521. 8017ac8: af00 add r7, sp, #0
  57522. 8017aca: 6078 str r0, [r7, #4]
  57523. BlockLink_t *pxIterator;
  57524. uint8_t *puc;
  57525. /* Iterate through the list until a block is found that has a higher address
  57526. than the block being inserted. */
  57527. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  57528. 8017acc: 4b28 ldr r3, [pc, #160] @ (8017b70 <prvInsertBlockIntoFreeList+0xac>)
  57529. 8017ace: 60fb str r3, [r7, #12]
  57530. 8017ad0: e002 b.n 8017ad8 <prvInsertBlockIntoFreeList+0x14>
  57531. 8017ad2: 68fb ldr r3, [r7, #12]
  57532. 8017ad4: 681b ldr r3, [r3, #0]
  57533. 8017ad6: 60fb str r3, [r7, #12]
  57534. 8017ad8: 68fb ldr r3, [r7, #12]
  57535. 8017ada: 681b ldr r3, [r3, #0]
  57536. 8017adc: 687a ldr r2, [r7, #4]
  57537. 8017ade: 429a cmp r2, r3
  57538. 8017ae0: d8f7 bhi.n 8017ad2 <prvInsertBlockIntoFreeList+0xe>
  57539. /* Nothing to do here, just iterate to the right position. */
  57540. }
  57541. /* Do the block being inserted, and the block it is being inserted after
  57542. make a contiguous block of memory? */
  57543. puc = ( uint8_t * ) pxIterator;
  57544. 8017ae2: 68fb ldr r3, [r7, #12]
  57545. 8017ae4: 60bb str r3, [r7, #8]
  57546. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  57547. 8017ae6: 68fb ldr r3, [r7, #12]
  57548. 8017ae8: 685b ldr r3, [r3, #4]
  57549. 8017aea: 68ba ldr r2, [r7, #8]
  57550. 8017aec: 4413 add r3, r2
  57551. 8017aee: 687a ldr r2, [r7, #4]
  57552. 8017af0: 429a cmp r2, r3
  57553. 8017af2: d108 bne.n 8017b06 <prvInsertBlockIntoFreeList+0x42>
  57554. {
  57555. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  57556. 8017af4: 68fb ldr r3, [r7, #12]
  57557. 8017af6: 685a ldr r2, [r3, #4]
  57558. 8017af8: 687b ldr r3, [r7, #4]
  57559. 8017afa: 685b ldr r3, [r3, #4]
  57560. 8017afc: 441a add r2, r3
  57561. 8017afe: 68fb ldr r3, [r7, #12]
  57562. 8017b00: 605a str r2, [r3, #4]
  57563. pxBlockToInsert = pxIterator;
  57564. 8017b02: 68fb ldr r3, [r7, #12]
  57565. 8017b04: 607b str r3, [r7, #4]
  57566. mtCOVERAGE_TEST_MARKER();
  57567. }
  57568. /* Do the block being inserted, and the block it is being inserted before
  57569. make a contiguous block of memory? */
  57570. puc = ( uint8_t * ) pxBlockToInsert;
  57571. 8017b06: 687b ldr r3, [r7, #4]
  57572. 8017b08: 60bb str r3, [r7, #8]
  57573. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  57574. 8017b0a: 687b ldr r3, [r7, #4]
  57575. 8017b0c: 685b ldr r3, [r3, #4]
  57576. 8017b0e: 68ba ldr r2, [r7, #8]
  57577. 8017b10: 441a add r2, r3
  57578. 8017b12: 68fb ldr r3, [r7, #12]
  57579. 8017b14: 681b ldr r3, [r3, #0]
  57580. 8017b16: 429a cmp r2, r3
  57581. 8017b18: d118 bne.n 8017b4c <prvInsertBlockIntoFreeList+0x88>
  57582. {
  57583. if( pxIterator->pxNextFreeBlock != pxEnd )
  57584. 8017b1a: 68fb ldr r3, [r7, #12]
  57585. 8017b1c: 681a ldr r2, [r3, #0]
  57586. 8017b1e: 4b15 ldr r3, [pc, #84] @ (8017b74 <prvInsertBlockIntoFreeList+0xb0>)
  57587. 8017b20: 681b ldr r3, [r3, #0]
  57588. 8017b22: 429a cmp r2, r3
  57589. 8017b24: d00d beq.n 8017b42 <prvInsertBlockIntoFreeList+0x7e>
  57590. {
  57591. /* Form one big block from the two blocks. */
  57592. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  57593. 8017b26: 687b ldr r3, [r7, #4]
  57594. 8017b28: 685a ldr r2, [r3, #4]
  57595. 8017b2a: 68fb ldr r3, [r7, #12]
  57596. 8017b2c: 681b ldr r3, [r3, #0]
  57597. 8017b2e: 685b ldr r3, [r3, #4]
  57598. 8017b30: 441a add r2, r3
  57599. 8017b32: 687b ldr r3, [r7, #4]
  57600. 8017b34: 605a str r2, [r3, #4]
  57601. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  57602. 8017b36: 68fb ldr r3, [r7, #12]
  57603. 8017b38: 681b ldr r3, [r3, #0]
  57604. 8017b3a: 681a ldr r2, [r3, #0]
  57605. 8017b3c: 687b ldr r3, [r7, #4]
  57606. 8017b3e: 601a str r2, [r3, #0]
  57607. 8017b40: e008 b.n 8017b54 <prvInsertBlockIntoFreeList+0x90>
  57608. }
  57609. else
  57610. {
  57611. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  57612. 8017b42: 4b0c ldr r3, [pc, #48] @ (8017b74 <prvInsertBlockIntoFreeList+0xb0>)
  57613. 8017b44: 681a ldr r2, [r3, #0]
  57614. 8017b46: 687b ldr r3, [r7, #4]
  57615. 8017b48: 601a str r2, [r3, #0]
  57616. 8017b4a: e003 b.n 8017b54 <prvInsertBlockIntoFreeList+0x90>
  57617. }
  57618. }
  57619. else
  57620. {
  57621. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  57622. 8017b4c: 68fb ldr r3, [r7, #12]
  57623. 8017b4e: 681a ldr r2, [r3, #0]
  57624. 8017b50: 687b ldr r3, [r7, #4]
  57625. 8017b52: 601a str r2, [r3, #0]
  57626. /* If the block being inserted plugged a gab, so was merged with the block
  57627. before and the block after, then it's pxNextFreeBlock pointer will have
  57628. already been set, and should not be set here as that would make it point
  57629. to itself. */
  57630. if( pxIterator != pxBlockToInsert )
  57631. 8017b54: 68fa ldr r2, [r7, #12]
  57632. 8017b56: 687b ldr r3, [r7, #4]
  57633. 8017b58: 429a cmp r2, r3
  57634. 8017b5a: d002 beq.n 8017b62 <prvInsertBlockIntoFreeList+0x9e>
  57635. {
  57636. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  57637. 8017b5c: 68fb ldr r3, [r7, #12]
  57638. 8017b5e: 687a ldr r2, [r7, #4]
  57639. 8017b60: 601a str r2, [r3, #0]
  57640. }
  57641. else
  57642. {
  57643. mtCOVERAGE_TEST_MARKER();
  57644. }
  57645. }
  57646. 8017b62: bf00 nop
  57647. 8017b64: 3714 adds r7, #20
  57648. 8017b66: 46bd mov sp, r7
  57649. 8017b68: f85d 7b04 ldr.w r7, [sp], #4
  57650. 8017b6c: 4770 bx lr
  57651. 8017b6e: bf00 nop
  57652. 8017b70: 24012cc8 .word 0x24012cc8
  57653. 8017b74: 24012cd0 .word 0x24012cd0
  57654. 08017b78 <std>:
  57655. 8017b78: 2300 movs r3, #0
  57656. 8017b7a: b510 push {r4, lr}
  57657. 8017b7c: 4604 mov r4, r0
  57658. 8017b7e: e9c0 3300 strd r3, r3, [r0]
  57659. 8017b82: e9c0 3304 strd r3, r3, [r0, #16]
  57660. 8017b86: 6083 str r3, [r0, #8]
  57661. 8017b88: 8181 strh r1, [r0, #12]
  57662. 8017b8a: 6643 str r3, [r0, #100] @ 0x64
  57663. 8017b8c: 81c2 strh r2, [r0, #14]
  57664. 8017b8e: 6183 str r3, [r0, #24]
  57665. 8017b90: 4619 mov r1, r3
  57666. 8017b92: 2208 movs r2, #8
  57667. 8017b94: 305c adds r0, #92 @ 0x5c
  57668. 8017b96: f000 f906 bl 8017da6 <memset>
  57669. 8017b9a: 4b0d ldr r3, [pc, #52] @ (8017bd0 <std+0x58>)
  57670. 8017b9c: 6263 str r3, [r4, #36] @ 0x24
  57671. 8017b9e: 4b0d ldr r3, [pc, #52] @ (8017bd4 <std+0x5c>)
  57672. 8017ba0: 62a3 str r3, [r4, #40] @ 0x28
  57673. 8017ba2: 4b0d ldr r3, [pc, #52] @ (8017bd8 <std+0x60>)
  57674. 8017ba4: 62e3 str r3, [r4, #44] @ 0x2c
  57675. 8017ba6: 4b0d ldr r3, [pc, #52] @ (8017bdc <std+0x64>)
  57676. 8017ba8: 6323 str r3, [r4, #48] @ 0x30
  57677. 8017baa: 4b0d ldr r3, [pc, #52] @ (8017be0 <std+0x68>)
  57678. 8017bac: 6224 str r4, [r4, #32]
  57679. 8017bae: 429c cmp r4, r3
  57680. 8017bb0: d006 beq.n 8017bc0 <std+0x48>
  57681. 8017bb2: f103 0268 add.w r2, r3, #104 @ 0x68
  57682. 8017bb6: 4294 cmp r4, r2
  57683. 8017bb8: d002 beq.n 8017bc0 <std+0x48>
  57684. 8017bba: 33d0 adds r3, #208 @ 0xd0
  57685. 8017bbc: 429c cmp r4, r3
  57686. 8017bbe: d105 bne.n 8017bcc <std+0x54>
  57687. 8017bc0: f104 0058 add.w r0, r4, #88 @ 0x58
  57688. 8017bc4: e8bd 4010 ldmia.w sp!, {r4, lr}
  57689. 8017bc8: f000 b9bc b.w 8017f44 <__retarget_lock_init_recursive>
  57690. 8017bcc: bd10 pop {r4, pc}
  57691. 8017bce: bf00 nop
  57692. 8017bd0: 08017d21 .word 0x08017d21
  57693. 8017bd4: 08017d43 .word 0x08017d43
  57694. 8017bd8: 08017d7b .word 0x08017d7b
  57695. 8017bdc: 08017d9f .word 0x08017d9f
  57696. 8017be0: 24012ce8 .word 0x24012ce8
  57697. 08017be4 <stdio_exit_handler>:
  57698. 8017be4: 4a02 ldr r2, [pc, #8] @ (8017bf0 <stdio_exit_handler+0xc>)
  57699. 8017be6: 4903 ldr r1, [pc, #12] @ (8017bf4 <stdio_exit_handler+0x10>)
  57700. 8017be8: 4803 ldr r0, [pc, #12] @ (8017bf8 <stdio_exit_handler+0x14>)
  57701. 8017bea: f000 b869 b.w 8017cc0 <_fwalk_sglue>
  57702. 8017bee: bf00 nop
  57703. 8017bf0: 24000048 .word 0x24000048
  57704. 8017bf4: 08018801 .word 0x08018801
  57705. 8017bf8: 24000058 .word 0x24000058
  57706. 08017bfc <cleanup_stdio>:
  57707. 8017bfc: 6841 ldr r1, [r0, #4]
  57708. 8017bfe: 4b0c ldr r3, [pc, #48] @ (8017c30 <cleanup_stdio+0x34>)
  57709. 8017c00: 4299 cmp r1, r3
  57710. 8017c02: b510 push {r4, lr}
  57711. 8017c04: 4604 mov r4, r0
  57712. 8017c06: d001 beq.n 8017c0c <cleanup_stdio+0x10>
  57713. 8017c08: f000 fdfa bl 8018800 <_fflush_r>
  57714. 8017c0c: 68a1 ldr r1, [r4, #8]
  57715. 8017c0e: 4b09 ldr r3, [pc, #36] @ (8017c34 <cleanup_stdio+0x38>)
  57716. 8017c10: 4299 cmp r1, r3
  57717. 8017c12: d002 beq.n 8017c1a <cleanup_stdio+0x1e>
  57718. 8017c14: 4620 mov r0, r4
  57719. 8017c16: f000 fdf3 bl 8018800 <_fflush_r>
  57720. 8017c1a: 68e1 ldr r1, [r4, #12]
  57721. 8017c1c: 4b06 ldr r3, [pc, #24] @ (8017c38 <cleanup_stdio+0x3c>)
  57722. 8017c1e: 4299 cmp r1, r3
  57723. 8017c20: d004 beq.n 8017c2c <cleanup_stdio+0x30>
  57724. 8017c22: 4620 mov r0, r4
  57725. 8017c24: e8bd 4010 ldmia.w sp!, {r4, lr}
  57726. 8017c28: f000 bdea b.w 8018800 <_fflush_r>
  57727. 8017c2c: bd10 pop {r4, pc}
  57728. 8017c2e: bf00 nop
  57729. 8017c30: 24012ce8 .word 0x24012ce8
  57730. 8017c34: 24012d50 .word 0x24012d50
  57731. 8017c38: 24012db8 .word 0x24012db8
  57732. 08017c3c <global_stdio_init.part.0>:
  57733. 8017c3c: b510 push {r4, lr}
  57734. 8017c3e: 4b0b ldr r3, [pc, #44] @ (8017c6c <global_stdio_init.part.0+0x30>)
  57735. 8017c40: 4c0b ldr r4, [pc, #44] @ (8017c70 <global_stdio_init.part.0+0x34>)
  57736. 8017c42: 4a0c ldr r2, [pc, #48] @ (8017c74 <global_stdio_init.part.0+0x38>)
  57737. 8017c44: 601a str r2, [r3, #0]
  57738. 8017c46: 4620 mov r0, r4
  57739. 8017c48: 2200 movs r2, #0
  57740. 8017c4a: 2104 movs r1, #4
  57741. 8017c4c: f7ff ff94 bl 8017b78 <std>
  57742. 8017c50: f104 0068 add.w r0, r4, #104 @ 0x68
  57743. 8017c54: 2201 movs r2, #1
  57744. 8017c56: 2109 movs r1, #9
  57745. 8017c58: f7ff ff8e bl 8017b78 <std>
  57746. 8017c5c: f104 00d0 add.w r0, r4, #208 @ 0xd0
  57747. 8017c60: 2202 movs r2, #2
  57748. 8017c62: e8bd 4010 ldmia.w sp!, {r4, lr}
  57749. 8017c66: 2112 movs r1, #18
  57750. 8017c68: f7ff bf86 b.w 8017b78 <std>
  57751. 8017c6c: 24012e20 .word 0x24012e20
  57752. 8017c70: 24012ce8 .word 0x24012ce8
  57753. 8017c74: 08017be5 .word 0x08017be5
  57754. 08017c78 <__sfp_lock_acquire>:
  57755. 8017c78: 4801 ldr r0, [pc, #4] @ (8017c80 <__sfp_lock_acquire+0x8>)
  57756. 8017c7a: f000 b964 b.w 8017f46 <__retarget_lock_acquire_recursive>
  57757. 8017c7e: bf00 nop
  57758. 8017c80: 24012e29 .word 0x24012e29
  57759. 08017c84 <__sfp_lock_release>:
  57760. 8017c84: 4801 ldr r0, [pc, #4] @ (8017c8c <__sfp_lock_release+0x8>)
  57761. 8017c86: f000 b95f b.w 8017f48 <__retarget_lock_release_recursive>
  57762. 8017c8a: bf00 nop
  57763. 8017c8c: 24012e29 .word 0x24012e29
  57764. 08017c90 <__sinit>:
  57765. 8017c90: b510 push {r4, lr}
  57766. 8017c92: 4604 mov r4, r0
  57767. 8017c94: f7ff fff0 bl 8017c78 <__sfp_lock_acquire>
  57768. 8017c98: 6a23 ldr r3, [r4, #32]
  57769. 8017c9a: b11b cbz r3, 8017ca4 <__sinit+0x14>
  57770. 8017c9c: e8bd 4010 ldmia.w sp!, {r4, lr}
  57771. 8017ca0: f7ff bff0 b.w 8017c84 <__sfp_lock_release>
  57772. 8017ca4: 4b04 ldr r3, [pc, #16] @ (8017cb8 <__sinit+0x28>)
  57773. 8017ca6: 6223 str r3, [r4, #32]
  57774. 8017ca8: 4b04 ldr r3, [pc, #16] @ (8017cbc <__sinit+0x2c>)
  57775. 8017caa: 681b ldr r3, [r3, #0]
  57776. 8017cac: 2b00 cmp r3, #0
  57777. 8017cae: d1f5 bne.n 8017c9c <__sinit+0xc>
  57778. 8017cb0: f7ff ffc4 bl 8017c3c <global_stdio_init.part.0>
  57779. 8017cb4: e7f2 b.n 8017c9c <__sinit+0xc>
  57780. 8017cb6: bf00 nop
  57781. 8017cb8: 08017bfd .word 0x08017bfd
  57782. 8017cbc: 24012e20 .word 0x24012e20
  57783. 08017cc0 <_fwalk_sglue>:
  57784. 8017cc0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  57785. 8017cc4: 4607 mov r7, r0
  57786. 8017cc6: 4688 mov r8, r1
  57787. 8017cc8: 4614 mov r4, r2
  57788. 8017cca: 2600 movs r6, #0
  57789. 8017ccc: e9d4 9501 ldrd r9, r5, [r4, #4]
  57790. 8017cd0: f1b9 0901 subs.w r9, r9, #1
  57791. 8017cd4: d505 bpl.n 8017ce2 <_fwalk_sglue+0x22>
  57792. 8017cd6: 6824 ldr r4, [r4, #0]
  57793. 8017cd8: 2c00 cmp r4, #0
  57794. 8017cda: d1f7 bne.n 8017ccc <_fwalk_sglue+0xc>
  57795. 8017cdc: 4630 mov r0, r6
  57796. 8017cde: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  57797. 8017ce2: 89ab ldrh r3, [r5, #12]
  57798. 8017ce4: 2b01 cmp r3, #1
  57799. 8017ce6: d907 bls.n 8017cf8 <_fwalk_sglue+0x38>
  57800. 8017ce8: f9b5 300e ldrsh.w r3, [r5, #14]
  57801. 8017cec: 3301 adds r3, #1
  57802. 8017cee: d003 beq.n 8017cf8 <_fwalk_sglue+0x38>
  57803. 8017cf0: 4629 mov r1, r5
  57804. 8017cf2: 4638 mov r0, r7
  57805. 8017cf4: 47c0 blx r8
  57806. 8017cf6: 4306 orrs r6, r0
  57807. 8017cf8: 3568 adds r5, #104 @ 0x68
  57808. 8017cfa: e7e9 b.n 8017cd0 <_fwalk_sglue+0x10>
  57809. 08017cfc <iprintf>:
  57810. 8017cfc: b40f push {r0, r1, r2, r3}
  57811. 8017cfe: b507 push {r0, r1, r2, lr}
  57812. 8017d00: 4906 ldr r1, [pc, #24] @ (8017d1c <iprintf+0x20>)
  57813. 8017d02: ab04 add r3, sp, #16
  57814. 8017d04: 6808 ldr r0, [r1, #0]
  57815. 8017d06: f853 2b04 ldr.w r2, [r3], #4
  57816. 8017d0a: 6881 ldr r1, [r0, #8]
  57817. 8017d0c: 9301 str r3, [sp, #4]
  57818. 8017d0e: f000 fa4d bl 80181ac <_vfiprintf_r>
  57819. 8017d12: b003 add sp, #12
  57820. 8017d14: f85d eb04 ldr.w lr, [sp], #4
  57821. 8017d18: b004 add sp, #16
  57822. 8017d1a: 4770 bx lr
  57823. 8017d1c: 24000054 .word 0x24000054
  57824. 08017d20 <__sread>:
  57825. 8017d20: b510 push {r4, lr}
  57826. 8017d22: 460c mov r4, r1
  57827. 8017d24: f9b1 100e ldrsh.w r1, [r1, #14]
  57828. 8017d28: f000 f8be bl 8017ea8 <_read_r>
  57829. 8017d2c: 2800 cmp r0, #0
  57830. 8017d2e: bfab itete ge
  57831. 8017d30: 6d63 ldrge r3, [r4, #84] @ 0x54
  57832. 8017d32: 89a3 ldrhlt r3, [r4, #12]
  57833. 8017d34: 181b addge r3, r3, r0
  57834. 8017d36: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  57835. 8017d3a: bfac ite ge
  57836. 8017d3c: 6563 strge r3, [r4, #84] @ 0x54
  57837. 8017d3e: 81a3 strhlt r3, [r4, #12]
  57838. 8017d40: bd10 pop {r4, pc}
  57839. 08017d42 <__swrite>:
  57840. 8017d42: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  57841. 8017d46: 461f mov r7, r3
  57842. 8017d48: 898b ldrh r3, [r1, #12]
  57843. 8017d4a: 05db lsls r3, r3, #23
  57844. 8017d4c: 4605 mov r5, r0
  57845. 8017d4e: 460c mov r4, r1
  57846. 8017d50: 4616 mov r6, r2
  57847. 8017d52: d505 bpl.n 8017d60 <__swrite+0x1e>
  57848. 8017d54: f9b1 100e ldrsh.w r1, [r1, #14]
  57849. 8017d58: 2302 movs r3, #2
  57850. 8017d5a: 2200 movs r2, #0
  57851. 8017d5c: f000 f892 bl 8017e84 <_lseek_r>
  57852. 8017d60: 89a3 ldrh r3, [r4, #12]
  57853. 8017d62: f9b4 100e ldrsh.w r1, [r4, #14]
  57854. 8017d66: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  57855. 8017d6a: 81a3 strh r3, [r4, #12]
  57856. 8017d6c: 4632 mov r2, r6
  57857. 8017d6e: 463b mov r3, r7
  57858. 8017d70: 4628 mov r0, r5
  57859. 8017d72: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  57860. 8017d76: f000 b8a9 b.w 8017ecc <_write_r>
  57861. 08017d7a <__sseek>:
  57862. 8017d7a: b510 push {r4, lr}
  57863. 8017d7c: 460c mov r4, r1
  57864. 8017d7e: f9b1 100e ldrsh.w r1, [r1, #14]
  57865. 8017d82: f000 f87f bl 8017e84 <_lseek_r>
  57866. 8017d86: 1c43 adds r3, r0, #1
  57867. 8017d88: 89a3 ldrh r3, [r4, #12]
  57868. 8017d8a: bf15 itete ne
  57869. 8017d8c: 6560 strne r0, [r4, #84] @ 0x54
  57870. 8017d8e: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  57871. 8017d92: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  57872. 8017d96: 81a3 strheq r3, [r4, #12]
  57873. 8017d98: bf18 it ne
  57874. 8017d9a: 81a3 strhne r3, [r4, #12]
  57875. 8017d9c: bd10 pop {r4, pc}
  57876. 08017d9e <__sclose>:
  57877. 8017d9e: f9b1 100e ldrsh.w r1, [r1, #14]
  57878. 8017da2: f000 b809 b.w 8017db8 <_close_r>
  57879. 08017da6 <memset>:
  57880. 8017da6: 4402 add r2, r0
  57881. 8017da8: 4603 mov r3, r0
  57882. 8017daa: 4293 cmp r3, r2
  57883. 8017dac: d100 bne.n 8017db0 <memset+0xa>
  57884. 8017dae: 4770 bx lr
  57885. 8017db0: f803 1b01 strb.w r1, [r3], #1
  57886. 8017db4: e7f9 b.n 8017daa <memset+0x4>
  57887. ...
  57888. 08017db8 <_close_r>:
  57889. 8017db8: b538 push {r3, r4, r5, lr}
  57890. 8017dba: 4d06 ldr r5, [pc, #24] @ (8017dd4 <_close_r+0x1c>)
  57891. 8017dbc: 2300 movs r3, #0
  57892. 8017dbe: 4604 mov r4, r0
  57893. 8017dc0: 4608 mov r0, r1
  57894. 8017dc2: 602b str r3, [r5, #0]
  57895. 8017dc4: f7ec f9cd bl 8004162 <_close>
  57896. 8017dc8: 1c43 adds r3, r0, #1
  57897. 8017dca: d102 bne.n 8017dd2 <_close_r+0x1a>
  57898. 8017dcc: 682b ldr r3, [r5, #0]
  57899. 8017dce: b103 cbz r3, 8017dd2 <_close_r+0x1a>
  57900. 8017dd0: 6023 str r3, [r4, #0]
  57901. 8017dd2: bd38 pop {r3, r4, r5, pc}
  57902. 8017dd4: 24012e24 .word 0x24012e24
  57903. 08017dd8 <_reclaim_reent>:
  57904. 8017dd8: 4b29 ldr r3, [pc, #164] @ (8017e80 <_reclaim_reent+0xa8>)
  57905. 8017dda: 681b ldr r3, [r3, #0]
  57906. 8017ddc: 4283 cmp r3, r0
  57907. 8017dde: b570 push {r4, r5, r6, lr}
  57908. 8017de0: 4604 mov r4, r0
  57909. 8017de2: d04b beq.n 8017e7c <_reclaim_reent+0xa4>
  57910. 8017de4: 69c3 ldr r3, [r0, #28]
  57911. 8017de6: b1ab cbz r3, 8017e14 <_reclaim_reent+0x3c>
  57912. 8017de8: 68db ldr r3, [r3, #12]
  57913. 8017dea: b16b cbz r3, 8017e08 <_reclaim_reent+0x30>
  57914. 8017dec: 2500 movs r5, #0
  57915. 8017dee: 69e3 ldr r3, [r4, #28]
  57916. 8017df0: 68db ldr r3, [r3, #12]
  57917. 8017df2: 5959 ldr r1, [r3, r5]
  57918. 8017df4: 2900 cmp r1, #0
  57919. 8017df6: d13b bne.n 8017e70 <_reclaim_reent+0x98>
  57920. 8017df8: 3504 adds r5, #4
  57921. 8017dfa: 2d80 cmp r5, #128 @ 0x80
  57922. 8017dfc: d1f7 bne.n 8017dee <_reclaim_reent+0x16>
  57923. 8017dfe: 69e3 ldr r3, [r4, #28]
  57924. 8017e00: 4620 mov r0, r4
  57925. 8017e02: 68d9 ldr r1, [r3, #12]
  57926. 8017e04: f000 f8b0 bl 8017f68 <_free_r>
  57927. 8017e08: 69e3 ldr r3, [r4, #28]
  57928. 8017e0a: 6819 ldr r1, [r3, #0]
  57929. 8017e0c: b111 cbz r1, 8017e14 <_reclaim_reent+0x3c>
  57930. 8017e0e: 4620 mov r0, r4
  57931. 8017e10: f000 f8aa bl 8017f68 <_free_r>
  57932. 8017e14: 6961 ldr r1, [r4, #20]
  57933. 8017e16: b111 cbz r1, 8017e1e <_reclaim_reent+0x46>
  57934. 8017e18: 4620 mov r0, r4
  57935. 8017e1a: f000 f8a5 bl 8017f68 <_free_r>
  57936. 8017e1e: 69e1 ldr r1, [r4, #28]
  57937. 8017e20: b111 cbz r1, 8017e28 <_reclaim_reent+0x50>
  57938. 8017e22: 4620 mov r0, r4
  57939. 8017e24: f000 f8a0 bl 8017f68 <_free_r>
  57940. 8017e28: 6b21 ldr r1, [r4, #48] @ 0x30
  57941. 8017e2a: b111 cbz r1, 8017e32 <_reclaim_reent+0x5a>
  57942. 8017e2c: 4620 mov r0, r4
  57943. 8017e2e: f000 f89b bl 8017f68 <_free_r>
  57944. 8017e32: 6b61 ldr r1, [r4, #52] @ 0x34
  57945. 8017e34: b111 cbz r1, 8017e3c <_reclaim_reent+0x64>
  57946. 8017e36: 4620 mov r0, r4
  57947. 8017e38: f000 f896 bl 8017f68 <_free_r>
  57948. 8017e3c: 6ba1 ldr r1, [r4, #56] @ 0x38
  57949. 8017e3e: b111 cbz r1, 8017e46 <_reclaim_reent+0x6e>
  57950. 8017e40: 4620 mov r0, r4
  57951. 8017e42: f000 f891 bl 8017f68 <_free_r>
  57952. 8017e46: 6ca1 ldr r1, [r4, #72] @ 0x48
  57953. 8017e48: b111 cbz r1, 8017e50 <_reclaim_reent+0x78>
  57954. 8017e4a: 4620 mov r0, r4
  57955. 8017e4c: f000 f88c bl 8017f68 <_free_r>
  57956. 8017e50: 6c61 ldr r1, [r4, #68] @ 0x44
  57957. 8017e52: b111 cbz r1, 8017e5a <_reclaim_reent+0x82>
  57958. 8017e54: 4620 mov r0, r4
  57959. 8017e56: f000 f887 bl 8017f68 <_free_r>
  57960. 8017e5a: 6ae1 ldr r1, [r4, #44] @ 0x2c
  57961. 8017e5c: b111 cbz r1, 8017e64 <_reclaim_reent+0x8c>
  57962. 8017e5e: 4620 mov r0, r4
  57963. 8017e60: f000 f882 bl 8017f68 <_free_r>
  57964. 8017e64: 6a23 ldr r3, [r4, #32]
  57965. 8017e66: b14b cbz r3, 8017e7c <_reclaim_reent+0xa4>
  57966. 8017e68: 4620 mov r0, r4
  57967. 8017e6a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  57968. 8017e6e: 4718 bx r3
  57969. 8017e70: 680e ldr r6, [r1, #0]
  57970. 8017e72: 4620 mov r0, r4
  57971. 8017e74: f000 f878 bl 8017f68 <_free_r>
  57972. 8017e78: 4631 mov r1, r6
  57973. 8017e7a: e7bb b.n 8017df4 <_reclaim_reent+0x1c>
  57974. 8017e7c: bd70 pop {r4, r5, r6, pc}
  57975. 8017e7e: bf00 nop
  57976. 8017e80: 24000054 .word 0x24000054
  57977. 08017e84 <_lseek_r>:
  57978. 8017e84: b538 push {r3, r4, r5, lr}
  57979. 8017e86: 4d07 ldr r5, [pc, #28] @ (8017ea4 <_lseek_r+0x20>)
  57980. 8017e88: 4604 mov r4, r0
  57981. 8017e8a: 4608 mov r0, r1
  57982. 8017e8c: 4611 mov r1, r2
  57983. 8017e8e: 2200 movs r2, #0
  57984. 8017e90: 602a str r2, [r5, #0]
  57985. 8017e92: 461a mov r2, r3
  57986. 8017e94: f7ec f98c bl 80041b0 <_lseek>
  57987. 8017e98: 1c43 adds r3, r0, #1
  57988. 8017e9a: d102 bne.n 8017ea2 <_lseek_r+0x1e>
  57989. 8017e9c: 682b ldr r3, [r5, #0]
  57990. 8017e9e: b103 cbz r3, 8017ea2 <_lseek_r+0x1e>
  57991. 8017ea0: 6023 str r3, [r4, #0]
  57992. 8017ea2: bd38 pop {r3, r4, r5, pc}
  57993. 8017ea4: 24012e24 .word 0x24012e24
  57994. 08017ea8 <_read_r>:
  57995. 8017ea8: b538 push {r3, r4, r5, lr}
  57996. 8017eaa: 4d07 ldr r5, [pc, #28] @ (8017ec8 <_read_r+0x20>)
  57997. 8017eac: 4604 mov r4, r0
  57998. 8017eae: 4608 mov r0, r1
  57999. 8017eb0: 4611 mov r1, r2
  58000. 8017eb2: 2200 movs r2, #0
  58001. 8017eb4: 602a str r2, [r5, #0]
  58002. 8017eb6: 461a mov r2, r3
  58003. 8017eb8: f7ec f91a bl 80040f0 <_read>
  58004. 8017ebc: 1c43 adds r3, r0, #1
  58005. 8017ebe: d102 bne.n 8017ec6 <_read_r+0x1e>
  58006. 8017ec0: 682b ldr r3, [r5, #0]
  58007. 8017ec2: b103 cbz r3, 8017ec6 <_read_r+0x1e>
  58008. 8017ec4: 6023 str r3, [r4, #0]
  58009. 8017ec6: bd38 pop {r3, r4, r5, pc}
  58010. 8017ec8: 24012e24 .word 0x24012e24
  58011. 08017ecc <_write_r>:
  58012. 8017ecc: b538 push {r3, r4, r5, lr}
  58013. 8017ece: 4d07 ldr r5, [pc, #28] @ (8017eec <_write_r+0x20>)
  58014. 8017ed0: 4604 mov r4, r0
  58015. 8017ed2: 4608 mov r0, r1
  58016. 8017ed4: 4611 mov r1, r2
  58017. 8017ed6: 2200 movs r2, #0
  58018. 8017ed8: 602a str r2, [r5, #0]
  58019. 8017eda: 461a mov r2, r3
  58020. 8017edc: f7ec f925 bl 800412a <_write>
  58021. 8017ee0: 1c43 adds r3, r0, #1
  58022. 8017ee2: d102 bne.n 8017eea <_write_r+0x1e>
  58023. 8017ee4: 682b ldr r3, [r5, #0]
  58024. 8017ee6: b103 cbz r3, 8017eea <_write_r+0x1e>
  58025. 8017ee8: 6023 str r3, [r4, #0]
  58026. 8017eea: bd38 pop {r3, r4, r5, pc}
  58027. 8017eec: 24012e24 .word 0x24012e24
  58028. 08017ef0 <__errno>:
  58029. 8017ef0: 4b01 ldr r3, [pc, #4] @ (8017ef8 <__errno+0x8>)
  58030. 8017ef2: 6818 ldr r0, [r3, #0]
  58031. 8017ef4: 4770 bx lr
  58032. 8017ef6: bf00 nop
  58033. 8017ef8: 24000054 .word 0x24000054
  58034. 08017efc <__libc_init_array>:
  58035. 8017efc: b570 push {r4, r5, r6, lr}
  58036. 8017efe: 4d0d ldr r5, [pc, #52] @ (8017f34 <__libc_init_array+0x38>)
  58037. 8017f00: 4c0d ldr r4, [pc, #52] @ (8017f38 <__libc_init_array+0x3c>)
  58038. 8017f02: 1b64 subs r4, r4, r5
  58039. 8017f04: 10a4 asrs r4, r4, #2
  58040. 8017f06: 2600 movs r6, #0
  58041. 8017f08: 42a6 cmp r6, r4
  58042. 8017f0a: d109 bne.n 8017f20 <__libc_init_array+0x24>
  58043. 8017f0c: 4d0b ldr r5, [pc, #44] @ (8017f3c <__libc_init_array+0x40>)
  58044. 8017f0e: 4c0c ldr r4, [pc, #48] @ (8017f40 <__libc_init_array+0x44>)
  58045. 8017f10: f000 fdc6 bl 8018aa0 <_init>
  58046. 8017f14: 1b64 subs r4, r4, r5
  58047. 8017f16: 10a4 asrs r4, r4, #2
  58048. 8017f18: 2600 movs r6, #0
  58049. 8017f1a: 42a6 cmp r6, r4
  58050. 8017f1c: d105 bne.n 8017f2a <__libc_init_array+0x2e>
  58051. 8017f1e: bd70 pop {r4, r5, r6, pc}
  58052. 8017f20: f855 3b04 ldr.w r3, [r5], #4
  58053. 8017f24: 4798 blx r3
  58054. 8017f26: 3601 adds r6, #1
  58055. 8017f28: e7ee b.n 8017f08 <__libc_init_array+0xc>
  58056. 8017f2a: f855 3b04 ldr.w r3, [r5], #4
  58057. 8017f2e: 4798 blx r3
  58058. 8017f30: 3601 adds r6, #1
  58059. 8017f32: e7f2 b.n 8017f1a <__libc_init_array+0x1e>
  58060. 8017f34: 08018c94 .word 0x08018c94
  58061. 8017f38: 08018c94 .word 0x08018c94
  58062. 8017f3c: 08018c94 .word 0x08018c94
  58063. 8017f40: 08018c98 .word 0x08018c98
  58064. 08017f44 <__retarget_lock_init_recursive>:
  58065. 8017f44: 4770 bx lr
  58066. 08017f46 <__retarget_lock_acquire_recursive>:
  58067. 8017f46: 4770 bx lr
  58068. 08017f48 <__retarget_lock_release_recursive>:
  58069. 8017f48: 4770 bx lr
  58070. 08017f4a <memcpy>:
  58071. 8017f4a: 440a add r2, r1
  58072. 8017f4c: 4291 cmp r1, r2
  58073. 8017f4e: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  58074. 8017f52: d100 bne.n 8017f56 <memcpy+0xc>
  58075. 8017f54: 4770 bx lr
  58076. 8017f56: b510 push {r4, lr}
  58077. 8017f58: f811 4b01 ldrb.w r4, [r1], #1
  58078. 8017f5c: f803 4f01 strb.w r4, [r3, #1]!
  58079. 8017f60: 4291 cmp r1, r2
  58080. 8017f62: d1f9 bne.n 8017f58 <memcpy+0xe>
  58081. 8017f64: bd10 pop {r4, pc}
  58082. ...
  58083. 08017f68 <_free_r>:
  58084. 8017f68: b538 push {r3, r4, r5, lr}
  58085. 8017f6a: 4605 mov r5, r0
  58086. 8017f6c: 2900 cmp r1, #0
  58087. 8017f6e: d041 beq.n 8017ff4 <_free_r+0x8c>
  58088. 8017f70: f851 3c04 ldr.w r3, [r1, #-4]
  58089. 8017f74: 1f0c subs r4, r1, #4
  58090. 8017f76: 2b00 cmp r3, #0
  58091. 8017f78: bfb8 it lt
  58092. 8017f7a: 18e4 addlt r4, r4, r3
  58093. 8017f7c: f000 f8e0 bl 8018140 <__malloc_lock>
  58094. 8017f80: 4a1d ldr r2, [pc, #116] @ (8017ff8 <_free_r+0x90>)
  58095. 8017f82: 6813 ldr r3, [r2, #0]
  58096. 8017f84: b933 cbnz r3, 8017f94 <_free_r+0x2c>
  58097. 8017f86: 6063 str r3, [r4, #4]
  58098. 8017f88: 6014 str r4, [r2, #0]
  58099. 8017f8a: 4628 mov r0, r5
  58100. 8017f8c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  58101. 8017f90: f000 b8dc b.w 801814c <__malloc_unlock>
  58102. 8017f94: 42a3 cmp r3, r4
  58103. 8017f96: d908 bls.n 8017faa <_free_r+0x42>
  58104. 8017f98: 6820 ldr r0, [r4, #0]
  58105. 8017f9a: 1821 adds r1, r4, r0
  58106. 8017f9c: 428b cmp r3, r1
  58107. 8017f9e: bf01 itttt eq
  58108. 8017fa0: 6819 ldreq r1, [r3, #0]
  58109. 8017fa2: 685b ldreq r3, [r3, #4]
  58110. 8017fa4: 1809 addeq r1, r1, r0
  58111. 8017fa6: 6021 streq r1, [r4, #0]
  58112. 8017fa8: e7ed b.n 8017f86 <_free_r+0x1e>
  58113. 8017faa: 461a mov r2, r3
  58114. 8017fac: 685b ldr r3, [r3, #4]
  58115. 8017fae: b10b cbz r3, 8017fb4 <_free_r+0x4c>
  58116. 8017fb0: 42a3 cmp r3, r4
  58117. 8017fb2: d9fa bls.n 8017faa <_free_r+0x42>
  58118. 8017fb4: 6811 ldr r1, [r2, #0]
  58119. 8017fb6: 1850 adds r0, r2, r1
  58120. 8017fb8: 42a0 cmp r0, r4
  58121. 8017fba: d10b bne.n 8017fd4 <_free_r+0x6c>
  58122. 8017fbc: 6820 ldr r0, [r4, #0]
  58123. 8017fbe: 4401 add r1, r0
  58124. 8017fc0: 1850 adds r0, r2, r1
  58125. 8017fc2: 4283 cmp r3, r0
  58126. 8017fc4: 6011 str r1, [r2, #0]
  58127. 8017fc6: d1e0 bne.n 8017f8a <_free_r+0x22>
  58128. 8017fc8: 6818 ldr r0, [r3, #0]
  58129. 8017fca: 685b ldr r3, [r3, #4]
  58130. 8017fcc: 6053 str r3, [r2, #4]
  58131. 8017fce: 4408 add r0, r1
  58132. 8017fd0: 6010 str r0, [r2, #0]
  58133. 8017fd2: e7da b.n 8017f8a <_free_r+0x22>
  58134. 8017fd4: d902 bls.n 8017fdc <_free_r+0x74>
  58135. 8017fd6: 230c movs r3, #12
  58136. 8017fd8: 602b str r3, [r5, #0]
  58137. 8017fda: e7d6 b.n 8017f8a <_free_r+0x22>
  58138. 8017fdc: 6820 ldr r0, [r4, #0]
  58139. 8017fde: 1821 adds r1, r4, r0
  58140. 8017fe0: 428b cmp r3, r1
  58141. 8017fe2: bf04 itt eq
  58142. 8017fe4: 6819 ldreq r1, [r3, #0]
  58143. 8017fe6: 685b ldreq r3, [r3, #4]
  58144. 8017fe8: 6063 str r3, [r4, #4]
  58145. 8017fea: bf04 itt eq
  58146. 8017fec: 1809 addeq r1, r1, r0
  58147. 8017fee: 6021 streq r1, [r4, #0]
  58148. 8017ff0: 6054 str r4, [r2, #4]
  58149. 8017ff2: e7ca b.n 8017f8a <_free_r+0x22>
  58150. 8017ff4: bd38 pop {r3, r4, r5, pc}
  58151. 8017ff6: bf00 nop
  58152. 8017ff8: 24012e30 .word 0x24012e30
  58153. 08017ffc <sbrk_aligned>:
  58154. 8017ffc: b570 push {r4, r5, r6, lr}
  58155. 8017ffe: 4e0f ldr r6, [pc, #60] @ (801803c <sbrk_aligned+0x40>)
  58156. 8018000: 460c mov r4, r1
  58157. 8018002: 6831 ldr r1, [r6, #0]
  58158. 8018004: 4605 mov r5, r0
  58159. 8018006: b911 cbnz r1, 801800e <sbrk_aligned+0x12>
  58160. 8018008: f000 fcb6 bl 8018978 <_sbrk_r>
  58161. 801800c: 6030 str r0, [r6, #0]
  58162. 801800e: 4621 mov r1, r4
  58163. 8018010: 4628 mov r0, r5
  58164. 8018012: f000 fcb1 bl 8018978 <_sbrk_r>
  58165. 8018016: 1c43 adds r3, r0, #1
  58166. 8018018: d103 bne.n 8018022 <sbrk_aligned+0x26>
  58167. 801801a: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  58168. 801801e: 4620 mov r0, r4
  58169. 8018020: bd70 pop {r4, r5, r6, pc}
  58170. 8018022: 1cc4 adds r4, r0, #3
  58171. 8018024: f024 0403 bic.w r4, r4, #3
  58172. 8018028: 42a0 cmp r0, r4
  58173. 801802a: d0f8 beq.n 801801e <sbrk_aligned+0x22>
  58174. 801802c: 1a21 subs r1, r4, r0
  58175. 801802e: 4628 mov r0, r5
  58176. 8018030: f000 fca2 bl 8018978 <_sbrk_r>
  58177. 8018034: 3001 adds r0, #1
  58178. 8018036: d1f2 bne.n 801801e <sbrk_aligned+0x22>
  58179. 8018038: e7ef b.n 801801a <sbrk_aligned+0x1e>
  58180. 801803a: bf00 nop
  58181. 801803c: 24012e2c .word 0x24012e2c
  58182. 08018040 <_malloc_r>:
  58183. 8018040: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  58184. 8018044: 1ccd adds r5, r1, #3
  58185. 8018046: f025 0503 bic.w r5, r5, #3
  58186. 801804a: 3508 adds r5, #8
  58187. 801804c: 2d0c cmp r5, #12
  58188. 801804e: bf38 it cc
  58189. 8018050: 250c movcc r5, #12
  58190. 8018052: 2d00 cmp r5, #0
  58191. 8018054: 4606 mov r6, r0
  58192. 8018056: db01 blt.n 801805c <_malloc_r+0x1c>
  58193. 8018058: 42a9 cmp r1, r5
  58194. 801805a: d904 bls.n 8018066 <_malloc_r+0x26>
  58195. 801805c: 230c movs r3, #12
  58196. 801805e: 6033 str r3, [r6, #0]
  58197. 8018060: 2000 movs r0, #0
  58198. 8018062: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  58199. 8018066: f8df 80d4 ldr.w r8, [pc, #212] @ 801813c <_malloc_r+0xfc>
  58200. 801806a: f000 f869 bl 8018140 <__malloc_lock>
  58201. 801806e: f8d8 3000 ldr.w r3, [r8]
  58202. 8018072: 461c mov r4, r3
  58203. 8018074: bb44 cbnz r4, 80180c8 <_malloc_r+0x88>
  58204. 8018076: 4629 mov r1, r5
  58205. 8018078: 4630 mov r0, r6
  58206. 801807a: f7ff ffbf bl 8017ffc <sbrk_aligned>
  58207. 801807e: 1c43 adds r3, r0, #1
  58208. 8018080: 4604 mov r4, r0
  58209. 8018082: d158 bne.n 8018136 <_malloc_r+0xf6>
  58210. 8018084: f8d8 4000 ldr.w r4, [r8]
  58211. 8018088: 4627 mov r7, r4
  58212. 801808a: 2f00 cmp r7, #0
  58213. 801808c: d143 bne.n 8018116 <_malloc_r+0xd6>
  58214. 801808e: 2c00 cmp r4, #0
  58215. 8018090: d04b beq.n 801812a <_malloc_r+0xea>
  58216. 8018092: 6823 ldr r3, [r4, #0]
  58217. 8018094: 4639 mov r1, r7
  58218. 8018096: 4630 mov r0, r6
  58219. 8018098: eb04 0903 add.w r9, r4, r3
  58220. 801809c: f000 fc6c bl 8018978 <_sbrk_r>
  58221. 80180a0: 4581 cmp r9, r0
  58222. 80180a2: d142 bne.n 801812a <_malloc_r+0xea>
  58223. 80180a4: 6821 ldr r1, [r4, #0]
  58224. 80180a6: 1a6d subs r5, r5, r1
  58225. 80180a8: 4629 mov r1, r5
  58226. 80180aa: 4630 mov r0, r6
  58227. 80180ac: f7ff ffa6 bl 8017ffc <sbrk_aligned>
  58228. 80180b0: 3001 adds r0, #1
  58229. 80180b2: d03a beq.n 801812a <_malloc_r+0xea>
  58230. 80180b4: 6823 ldr r3, [r4, #0]
  58231. 80180b6: 442b add r3, r5
  58232. 80180b8: 6023 str r3, [r4, #0]
  58233. 80180ba: f8d8 3000 ldr.w r3, [r8]
  58234. 80180be: 685a ldr r2, [r3, #4]
  58235. 80180c0: bb62 cbnz r2, 801811c <_malloc_r+0xdc>
  58236. 80180c2: f8c8 7000 str.w r7, [r8]
  58237. 80180c6: e00f b.n 80180e8 <_malloc_r+0xa8>
  58238. 80180c8: 6822 ldr r2, [r4, #0]
  58239. 80180ca: 1b52 subs r2, r2, r5
  58240. 80180cc: d420 bmi.n 8018110 <_malloc_r+0xd0>
  58241. 80180ce: 2a0b cmp r2, #11
  58242. 80180d0: d917 bls.n 8018102 <_malloc_r+0xc2>
  58243. 80180d2: 1961 adds r1, r4, r5
  58244. 80180d4: 42a3 cmp r3, r4
  58245. 80180d6: 6025 str r5, [r4, #0]
  58246. 80180d8: bf18 it ne
  58247. 80180da: 6059 strne r1, [r3, #4]
  58248. 80180dc: 6863 ldr r3, [r4, #4]
  58249. 80180de: bf08 it eq
  58250. 80180e0: f8c8 1000 streq.w r1, [r8]
  58251. 80180e4: 5162 str r2, [r4, r5]
  58252. 80180e6: 604b str r3, [r1, #4]
  58253. 80180e8: 4630 mov r0, r6
  58254. 80180ea: f000 f82f bl 801814c <__malloc_unlock>
  58255. 80180ee: f104 000b add.w r0, r4, #11
  58256. 80180f2: 1d23 adds r3, r4, #4
  58257. 80180f4: f020 0007 bic.w r0, r0, #7
  58258. 80180f8: 1ac2 subs r2, r0, r3
  58259. 80180fa: bf1c itt ne
  58260. 80180fc: 1a1b subne r3, r3, r0
  58261. 80180fe: 50a3 strne r3, [r4, r2]
  58262. 8018100: e7af b.n 8018062 <_malloc_r+0x22>
  58263. 8018102: 6862 ldr r2, [r4, #4]
  58264. 8018104: 42a3 cmp r3, r4
  58265. 8018106: bf0c ite eq
  58266. 8018108: f8c8 2000 streq.w r2, [r8]
  58267. 801810c: 605a strne r2, [r3, #4]
  58268. 801810e: e7eb b.n 80180e8 <_malloc_r+0xa8>
  58269. 8018110: 4623 mov r3, r4
  58270. 8018112: 6864 ldr r4, [r4, #4]
  58271. 8018114: e7ae b.n 8018074 <_malloc_r+0x34>
  58272. 8018116: 463c mov r4, r7
  58273. 8018118: 687f ldr r7, [r7, #4]
  58274. 801811a: e7b6 b.n 801808a <_malloc_r+0x4a>
  58275. 801811c: 461a mov r2, r3
  58276. 801811e: 685b ldr r3, [r3, #4]
  58277. 8018120: 42a3 cmp r3, r4
  58278. 8018122: d1fb bne.n 801811c <_malloc_r+0xdc>
  58279. 8018124: 2300 movs r3, #0
  58280. 8018126: 6053 str r3, [r2, #4]
  58281. 8018128: e7de b.n 80180e8 <_malloc_r+0xa8>
  58282. 801812a: 230c movs r3, #12
  58283. 801812c: 6033 str r3, [r6, #0]
  58284. 801812e: 4630 mov r0, r6
  58285. 8018130: f000 f80c bl 801814c <__malloc_unlock>
  58286. 8018134: e794 b.n 8018060 <_malloc_r+0x20>
  58287. 8018136: 6005 str r5, [r0, #0]
  58288. 8018138: e7d6 b.n 80180e8 <_malloc_r+0xa8>
  58289. 801813a: bf00 nop
  58290. 801813c: 24012e30 .word 0x24012e30
  58291. 08018140 <__malloc_lock>:
  58292. 8018140: 4801 ldr r0, [pc, #4] @ (8018148 <__malloc_lock+0x8>)
  58293. 8018142: f7ff bf00 b.w 8017f46 <__retarget_lock_acquire_recursive>
  58294. 8018146: bf00 nop
  58295. 8018148: 24012e28 .word 0x24012e28
  58296. 0801814c <__malloc_unlock>:
  58297. 801814c: 4801 ldr r0, [pc, #4] @ (8018154 <__malloc_unlock+0x8>)
  58298. 801814e: f7ff befb b.w 8017f48 <__retarget_lock_release_recursive>
  58299. 8018152: bf00 nop
  58300. 8018154: 24012e28 .word 0x24012e28
  58301. 08018158 <__sfputc_r>:
  58302. 8018158: 6893 ldr r3, [r2, #8]
  58303. 801815a: 3b01 subs r3, #1
  58304. 801815c: 2b00 cmp r3, #0
  58305. 801815e: b410 push {r4}
  58306. 8018160: 6093 str r3, [r2, #8]
  58307. 8018162: da08 bge.n 8018176 <__sfputc_r+0x1e>
  58308. 8018164: 6994 ldr r4, [r2, #24]
  58309. 8018166: 42a3 cmp r3, r4
  58310. 8018168: db01 blt.n 801816e <__sfputc_r+0x16>
  58311. 801816a: 290a cmp r1, #10
  58312. 801816c: d103 bne.n 8018176 <__sfputc_r+0x1e>
  58313. 801816e: f85d 4b04 ldr.w r4, [sp], #4
  58314. 8018172: f000 bb6d b.w 8018850 <__swbuf_r>
  58315. 8018176: 6813 ldr r3, [r2, #0]
  58316. 8018178: 1c58 adds r0, r3, #1
  58317. 801817a: 6010 str r0, [r2, #0]
  58318. 801817c: 7019 strb r1, [r3, #0]
  58319. 801817e: 4608 mov r0, r1
  58320. 8018180: f85d 4b04 ldr.w r4, [sp], #4
  58321. 8018184: 4770 bx lr
  58322. 08018186 <__sfputs_r>:
  58323. 8018186: b5f8 push {r3, r4, r5, r6, r7, lr}
  58324. 8018188: 4606 mov r6, r0
  58325. 801818a: 460f mov r7, r1
  58326. 801818c: 4614 mov r4, r2
  58327. 801818e: 18d5 adds r5, r2, r3
  58328. 8018190: 42ac cmp r4, r5
  58329. 8018192: d101 bne.n 8018198 <__sfputs_r+0x12>
  58330. 8018194: 2000 movs r0, #0
  58331. 8018196: e007 b.n 80181a8 <__sfputs_r+0x22>
  58332. 8018198: f814 1b01 ldrb.w r1, [r4], #1
  58333. 801819c: 463a mov r2, r7
  58334. 801819e: 4630 mov r0, r6
  58335. 80181a0: f7ff ffda bl 8018158 <__sfputc_r>
  58336. 80181a4: 1c43 adds r3, r0, #1
  58337. 80181a6: d1f3 bne.n 8018190 <__sfputs_r+0xa>
  58338. 80181a8: bdf8 pop {r3, r4, r5, r6, r7, pc}
  58339. ...
  58340. 080181ac <_vfiprintf_r>:
  58341. 80181ac: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  58342. 80181b0: 460d mov r5, r1
  58343. 80181b2: b09d sub sp, #116 @ 0x74
  58344. 80181b4: 4614 mov r4, r2
  58345. 80181b6: 4698 mov r8, r3
  58346. 80181b8: 4606 mov r6, r0
  58347. 80181ba: b118 cbz r0, 80181c4 <_vfiprintf_r+0x18>
  58348. 80181bc: 6a03 ldr r3, [r0, #32]
  58349. 80181be: b90b cbnz r3, 80181c4 <_vfiprintf_r+0x18>
  58350. 80181c0: f7ff fd66 bl 8017c90 <__sinit>
  58351. 80181c4: 6e6b ldr r3, [r5, #100] @ 0x64
  58352. 80181c6: 07d9 lsls r1, r3, #31
  58353. 80181c8: d405 bmi.n 80181d6 <_vfiprintf_r+0x2a>
  58354. 80181ca: 89ab ldrh r3, [r5, #12]
  58355. 80181cc: 059a lsls r2, r3, #22
  58356. 80181ce: d402 bmi.n 80181d6 <_vfiprintf_r+0x2a>
  58357. 80181d0: 6da8 ldr r0, [r5, #88] @ 0x58
  58358. 80181d2: f7ff feb8 bl 8017f46 <__retarget_lock_acquire_recursive>
  58359. 80181d6: 89ab ldrh r3, [r5, #12]
  58360. 80181d8: 071b lsls r3, r3, #28
  58361. 80181da: d501 bpl.n 80181e0 <_vfiprintf_r+0x34>
  58362. 80181dc: 692b ldr r3, [r5, #16]
  58363. 80181de: b99b cbnz r3, 8018208 <_vfiprintf_r+0x5c>
  58364. 80181e0: 4629 mov r1, r5
  58365. 80181e2: 4630 mov r0, r6
  58366. 80181e4: f000 fb72 bl 80188cc <__swsetup_r>
  58367. 80181e8: b170 cbz r0, 8018208 <_vfiprintf_r+0x5c>
  58368. 80181ea: 6e6b ldr r3, [r5, #100] @ 0x64
  58369. 80181ec: 07dc lsls r4, r3, #31
  58370. 80181ee: d504 bpl.n 80181fa <_vfiprintf_r+0x4e>
  58371. 80181f0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58372. 80181f4: b01d add sp, #116 @ 0x74
  58373. 80181f6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  58374. 80181fa: 89ab ldrh r3, [r5, #12]
  58375. 80181fc: 0598 lsls r0, r3, #22
  58376. 80181fe: d4f7 bmi.n 80181f0 <_vfiprintf_r+0x44>
  58377. 8018200: 6da8 ldr r0, [r5, #88] @ 0x58
  58378. 8018202: f7ff fea1 bl 8017f48 <__retarget_lock_release_recursive>
  58379. 8018206: e7f3 b.n 80181f0 <_vfiprintf_r+0x44>
  58380. 8018208: 2300 movs r3, #0
  58381. 801820a: 9309 str r3, [sp, #36] @ 0x24
  58382. 801820c: 2320 movs r3, #32
  58383. 801820e: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  58384. 8018212: f8cd 800c str.w r8, [sp, #12]
  58385. 8018216: 2330 movs r3, #48 @ 0x30
  58386. 8018218: f8df 81ac ldr.w r8, [pc, #428] @ 80183c8 <_vfiprintf_r+0x21c>
  58387. 801821c: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  58388. 8018220: f04f 0901 mov.w r9, #1
  58389. 8018224: 4623 mov r3, r4
  58390. 8018226: 469a mov sl, r3
  58391. 8018228: f813 2b01 ldrb.w r2, [r3], #1
  58392. 801822c: b10a cbz r2, 8018232 <_vfiprintf_r+0x86>
  58393. 801822e: 2a25 cmp r2, #37 @ 0x25
  58394. 8018230: d1f9 bne.n 8018226 <_vfiprintf_r+0x7a>
  58395. 8018232: ebba 0b04 subs.w fp, sl, r4
  58396. 8018236: d00b beq.n 8018250 <_vfiprintf_r+0xa4>
  58397. 8018238: 465b mov r3, fp
  58398. 801823a: 4622 mov r2, r4
  58399. 801823c: 4629 mov r1, r5
  58400. 801823e: 4630 mov r0, r6
  58401. 8018240: f7ff ffa1 bl 8018186 <__sfputs_r>
  58402. 8018244: 3001 adds r0, #1
  58403. 8018246: f000 80a7 beq.w 8018398 <_vfiprintf_r+0x1ec>
  58404. 801824a: 9a09 ldr r2, [sp, #36] @ 0x24
  58405. 801824c: 445a add r2, fp
  58406. 801824e: 9209 str r2, [sp, #36] @ 0x24
  58407. 8018250: f89a 3000 ldrb.w r3, [sl]
  58408. 8018254: 2b00 cmp r3, #0
  58409. 8018256: f000 809f beq.w 8018398 <_vfiprintf_r+0x1ec>
  58410. 801825a: 2300 movs r3, #0
  58411. 801825c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  58412. 8018260: e9cd 2305 strd r2, r3, [sp, #20]
  58413. 8018264: f10a 0a01 add.w sl, sl, #1
  58414. 8018268: 9304 str r3, [sp, #16]
  58415. 801826a: 9307 str r3, [sp, #28]
  58416. 801826c: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  58417. 8018270: 931a str r3, [sp, #104] @ 0x68
  58418. 8018272: 4654 mov r4, sl
  58419. 8018274: 2205 movs r2, #5
  58420. 8018276: f814 1b01 ldrb.w r1, [r4], #1
  58421. 801827a: 4853 ldr r0, [pc, #332] @ (80183c8 <_vfiprintf_r+0x21c>)
  58422. 801827c: f7e8 f830 bl 80002e0 <memchr>
  58423. 8018280: 9a04 ldr r2, [sp, #16]
  58424. 8018282: b9d8 cbnz r0, 80182bc <_vfiprintf_r+0x110>
  58425. 8018284: 06d1 lsls r1, r2, #27
  58426. 8018286: bf44 itt mi
  58427. 8018288: 2320 movmi r3, #32
  58428. 801828a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  58429. 801828e: 0713 lsls r3, r2, #28
  58430. 8018290: bf44 itt mi
  58431. 8018292: 232b movmi r3, #43 @ 0x2b
  58432. 8018294: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  58433. 8018298: f89a 3000 ldrb.w r3, [sl]
  58434. 801829c: 2b2a cmp r3, #42 @ 0x2a
  58435. 801829e: d015 beq.n 80182cc <_vfiprintf_r+0x120>
  58436. 80182a0: 9a07 ldr r2, [sp, #28]
  58437. 80182a2: 4654 mov r4, sl
  58438. 80182a4: 2000 movs r0, #0
  58439. 80182a6: f04f 0c0a mov.w ip, #10
  58440. 80182aa: 4621 mov r1, r4
  58441. 80182ac: f811 3b01 ldrb.w r3, [r1], #1
  58442. 80182b0: 3b30 subs r3, #48 @ 0x30
  58443. 80182b2: 2b09 cmp r3, #9
  58444. 80182b4: d94b bls.n 801834e <_vfiprintf_r+0x1a2>
  58445. 80182b6: b1b0 cbz r0, 80182e6 <_vfiprintf_r+0x13a>
  58446. 80182b8: 9207 str r2, [sp, #28]
  58447. 80182ba: e014 b.n 80182e6 <_vfiprintf_r+0x13a>
  58448. 80182bc: eba0 0308 sub.w r3, r0, r8
  58449. 80182c0: fa09 f303 lsl.w r3, r9, r3
  58450. 80182c4: 4313 orrs r3, r2
  58451. 80182c6: 9304 str r3, [sp, #16]
  58452. 80182c8: 46a2 mov sl, r4
  58453. 80182ca: e7d2 b.n 8018272 <_vfiprintf_r+0xc6>
  58454. 80182cc: 9b03 ldr r3, [sp, #12]
  58455. 80182ce: 1d19 adds r1, r3, #4
  58456. 80182d0: 681b ldr r3, [r3, #0]
  58457. 80182d2: 9103 str r1, [sp, #12]
  58458. 80182d4: 2b00 cmp r3, #0
  58459. 80182d6: bfbb ittet lt
  58460. 80182d8: 425b neglt r3, r3
  58461. 80182da: f042 0202 orrlt.w r2, r2, #2
  58462. 80182de: 9307 strge r3, [sp, #28]
  58463. 80182e0: 9307 strlt r3, [sp, #28]
  58464. 80182e2: bfb8 it lt
  58465. 80182e4: 9204 strlt r2, [sp, #16]
  58466. 80182e6: 7823 ldrb r3, [r4, #0]
  58467. 80182e8: 2b2e cmp r3, #46 @ 0x2e
  58468. 80182ea: d10a bne.n 8018302 <_vfiprintf_r+0x156>
  58469. 80182ec: 7863 ldrb r3, [r4, #1]
  58470. 80182ee: 2b2a cmp r3, #42 @ 0x2a
  58471. 80182f0: d132 bne.n 8018358 <_vfiprintf_r+0x1ac>
  58472. 80182f2: 9b03 ldr r3, [sp, #12]
  58473. 80182f4: 1d1a adds r2, r3, #4
  58474. 80182f6: 681b ldr r3, [r3, #0]
  58475. 80182f8: 9203 str r2, [sp, #12]
  58476. 80182fa: ea43 73e3 orr.w r3, r3, r3, asr #31
  58477. 80182fe: 3402 adds r4, #2
  58478. 8018300: 9305 str r3, [sp, #20]
  58479. 8018302: f8df a0d4 ldr.w sl, [pc, #212] @ 80183d8 <_vfiprintf_r+0x22c>
  58480. 8018306: 7821 ldrb r1, [r4, #0]
  58481. 8018308: 2203 movs r2, #3
  58482. 801830a: 4650 mov r0, sl
  58483. 801830c: f7e7 ffe8 bl 80002e0 <memchr>
  58484. 8018310: b138 cbz r0, 8018322 <_vfiprintf_r+0x176>
  58485. 8018312: 9b04 ldr r3, [sp, #16]
  58486. 8018314: eba0 000a sub.w r0, r0, sl
  58487. 8018318: 2240 movs r2, #64 @ 0x40
  58488. 801831a: 4082 lsls r2, r0
  58489. 801831c: 4313 orrs r3, r2
  58490. 801831e: 3401 adds r4, #1
  58491. 8018320: 9304 str r3, [sp, #16]
  58492. 8018322: f814 1b01 ldrb.w r1, [r4], #1
  58493. 8018326: 4829 ldr r0, [pc, #164] @ (80183cc <_vfiprintf_r+0x220>)
  58494. 8018328: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  58495. 801832c: 2206 movs r2, #6
  58496. 801832e: f7e7 ffd7 bl 80002e0 <memchr>
  58497. 8018332: 2800 cmp r0, #0
  58498. 8018334: d03f beq.n 80183b6 <_vfiprintf_r+0x20a>
  58499. 8018336: 4b26 ldr r3, [pc, #152] @ (80183d0 <_vfiprintf_r+0x224>)
  58500. 8018338: bb1b cbnz r3, 8018382 <_vfiprintf_r+0x1d6>
  58501. 801833a: 9b03 ldr r3, [sp, #12]
  58502. 801833c: 3307 adds r3, #7
  58503. 801833e: f023 0307 bic.w r3, r3, #7
  58504. 8018342: 3308 adds r3, #8
  58505. 8018344: 9303 str r3, [sp, #12]
  58506. 8018346: 9b09 ldr r3, [sp, #36] @ 0x24
  58507. 8018348: 443b add r3, r7
  58508. 801834a: 9309 str r3, [sp, #36] @ 0x24
  58509. 801834c: e76a b.n 8018224 <_vfiprintf_r+0x78>
  58510. 801834e: fb0c 3202 mla r2, ip, r2, r3
  58511. 8018352: 460c mov r4, r1
  58512. 8018354: 2001 movs r0, #1
  58513. 8018356: e7a8 b.n 80182aa <_vfiprintf_r+0xfe>
  58514. 8018358: 2300 movs r3, #0
  58515. 801835a: 3401 adds r4, #1
  58516. 801835c: 9305 str r3, [sp, #20]
  58517. 801835e: 4619 mov r1, r3
  58518. 8018360: f04f 0c0a mov.w ip, #10
  58519. 8018364: 4620 mov r0, r4
  58520. 8018366: f810 2b01 ldrb.w r2, [r0], #1
  58521. 801836a: 3a30 subs r2, #48 @ 0x30
  58522. 801836c: 2a09 cmp r2, #9
  58523. 801836e: d903 bls.n 8018378 <_vfiprintf_r+0x1cc>
  58524. 8018370: 2b00 cmp r3, #0
  58525. 8018372: d0c6 beq.n 8018302 <_vfiprintf_r+0x156>
  58526. 8018374: 9105 str r1, [sp, #20]
  58527. 8018376: e7c4 b.n 8018302 <_vfiprintf_r+0x156>
  58528. 8018378: fb0c 2101 mla r1, ip, r1, r2
  58529. 801837c: 4604 mov r4, r0
  58530. 801837e: 2301 movs r3, #1
  58531. 8018380: e7f0 b.n 8018364 <_vfiprintf_r+0x1b8>
  58532. 8018382: ab03 add r3, sp, #12
  58533. 8018384: 9300 str r3, [sp, #0]
  58534. 8018386: 462a mov r2, r5
  58535. 8018388: 4b12 ldr r3, [pc, #72] @ (80183d4 <_vfiprintf_r+0x228>)
  58536. 801838a: a904 add r1, sp, #16
  58537. 801838c: 4630 mov r0, r6
  58538. 801838e: f3af 8000 nop.w
  58539. 8018392: 4607 mov r7, r0
  58540. 8018394: 1c78 adds r0, r7, #1
  58541. 8018396: d1d6 bne.n 8018346 <_vfiprintf_r+0x19a>
  58542. 8018398: 6e6b ldr r3, [r5, #100] @ 0x64
  58543. 801839a: 07d9 lsls r1, r3, #31
  58544. 801839c: d405 bmi.n 80183aa <_vfiprintf_r+0x1fe>
  58545. 801839e: 89ab ldrh r3, [r5, #12]
  58546. 80183a0: 059a lsls r2, r3, #22
  58547. 80183a2: d402 bmi.n 80183aa <_vfiprintf_r+0x1fe>
  58548. 80183a4: 6da8 ldr r0, [r5, #88] @ 0x58
  58549. 80183a6: f7ff fdcf bl 8017f48 <__retarget_lock_release_recursive>
  58550. 80183aa: 89ab ldrh r3, [r5, #12]
  58551. 80183ac: 065b lsls r3, r3, #25
  58552. 80183ae: f53f af1f bmi.w 80181f0 <_vfiprintf_r+0x44>
  58553. 80183b2: 9809 ldr r0, [sp, #36] @ 0x24
  58554. 80183b4: e71e b.n 80181f4 <_vfiprintf_r+0x48>
  58555. 80183b6: ab03 add r3, sp, #12
  58556. 80183b8: 9300 str r3, [sp, #0]
  58557. 80183ba: 462a mov r2, r5
  58558. 80183bc: 4b05 ldr r3, [pc, #20] @ (80183d4 <_vfiprintf_r+0x228>)
  58559. 80183be: a904 add r1, sp, #16
  58560. 80183c0: 4630 mov r0, r6
  58561. 80183c2: f000 f879 bl 80184b8 <_printf_i>
  58562. 80183c6: e7e4 b.n 8018392 <_vfiprintf_r+0x1e6>
  58563. 80183c8: 08018c58 .word 0x08018c58
  58564. 80183cc: 08018c62 .word 0x08018c62
  58565. 80183d0: 00000000 .word 0x00000000
  58566. 80183d4: 08018187 .word 0x08018187
  58567. 80183d8: 08018c5e .word 0x08018c5e
  58568. 080183dc <_printf_common>:
  58569. 80183dc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  58570. 80183e0: 4616 mov r6, r2
  58571. 80183e2: 4698 mov r8, r3
  58572. 80183e4: 688a ldr r2, [r1, #8]
  58573. 80183e6: 690b ldr r3, [r1, #16]
  58574. 80183e8: f8dd 9020 ldr.w r9, [sp, #32]
  58575. 80183ec: 4293 cmp r3, r2
  58576. 80183ee: bfb8 it lt
  58577. 80183f0: 4613 movlt r3, r2
  58578. 80183f2: 6033 str r3, [r6, #0]
  58579. 80183f4: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  58580. 80183f8: 4607 mov r7, r0
  58581. 80183fa: 460c mov r4, r1
  58582. 80183fc: b10a cbz r2, 8018402 <_printf_common+0x26>
  58583. 80183fe: 3301 adds r3, #1
  58584. 8018400: 6033 str r3, [r6, #0]
  58585. 8018402: 6823 ldr r3, [r4, #0]
  58586. 8018404: 0699 lsls r1, r3, #26
  58587. 8018406: bf42 ittt mi
  58588. 8018408: 6833 ldrmi r3, [r6, #0]
  58589. 801840a: 3302 addmi r3, #2
  58590. 801840c: 6033 strmi r3, [r6, #0]
  58591. 801840e: 6825 ldr r5, [r4, #0]
  58592. 8018410: f015 0506 ands.w r5, r5, #6
  58593. 8018414: d106 bne.n 8018424 <_printf_common+0x48>
  58594. 8018416: f104 0a19 add.w sl, r4, #25
  58595. 801841a: 68e3 ldr r3, [r4, #12]
  58596. 801841c: 6832 ldr r2, [r6, #0]
  58597. 801841e: 1a9b subs r3, r3, r2
  58598. 8018420: 42ab cmp r3, r5
  58599. 8018422: dc26 bgt.n 8018472 <_printf_common+0x96>
  58600. 8018424: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  58601. 8018428: 6822 ldr r2, [r4, #0]
  58602. 801842a: 3b00 subs r3, #0
  58603. 801842c: bf18 it ne
  58604. 801842e: 2301 movne r3, #1
  58605. 8018430: 0692 lsls r2, r2, #26
  58606. 8018432: d42b bmi.n 801848c <_printf_common+0xb0>
  58607. 8018434: f104 0243 add.w r2, r4, #67 @ 0x43
  58608. 8018438: 4641 mov r1, r8
  58609. 801843a: 4638 mov r0, r7
  58610. 801843c: 47c8 blx r9
  58611. 801843e: 3001 adds r0, #1
  58612. 8018440: d01e beq.n 8018480 <_printf_common+0xa4>
  58613. 8018442: 6823 ldr r3, [r4, #0]
  58614. 8018444: 6922 ldr r2, [r4, #16]
  58615. 8018446: f003 0306 and.w r3, r3, #6
  58616. 801844a: 2b04 cmp r3, #4
  58617. 801844c: bf02 ittt eq
  58618. 801844e: 68e5 ldreq r5, [r4, #12]
  58619. 8018450: 6833 ldreq r3, [r6, #0]
  58620. 8018452: 1aed subeq r5, r5, r3
  58621. 8018454: 68a3 ldr r3, [r4, #8]
  58622. 8018456: bf0c ite eq
  58623. 8018458: ea25 75e5 biceq.w r5, r5, r5, asr #31
  58624. 801845c: 2500 movne r5, #0
  58625. 801845e: 4293 cmp r3, r2
  58626. 8018460: bfc4 itt gt
  58627. 8018462: 1a9b subgt r3, r3, r2
  58628. 8018464: 18ed addgt r5, r5, r3
  58629. 8018466: 2600 movs r6, #0
  58630. 8018468: 341a adds r4, #26
  58631. 801846a: 42b5 cmp r5, r6
  58632. 801846c: d11a bne.n 80184a4 <_printf_common+0xc8>
  58633. 801846e: 2000 movs r0, #0
  58634. 8018470: e008 b.n 8018484 <_printf_common+0xa8>
  58635. 8018472: 2301 movs r3, #1
  58636. 8018474: 4652 mov r2, sl
  58637. 8018476: 4641 mov r1, r8
  58638. 8018478: 4638 mov r0, r7
  58639. 801847a: 47c8 blx r9
  58640. 801847c: 3001 adds r0, #1
  58641. 801847e: d103 bne.n 8018488 <_printf_common+0xac>
  58642. 8018480: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58643. 8018484: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  58644. 8018488: 3501 adds r5, #1
  58645. 801848a: e7c6 b.n 801841a <_printf_common+0x3e>
  58646. 801848c: 18e1 adds r1, r4, r3
  58647. 801848e: 1c5a adds r2, r3, #1
  58648. 8018490: 2030 movs r0, #48 @ 0x30
  58649. 8018492: f881 0043 strb.w r0, [r1, #67] @ 0x43
  58650. 8018496: 4422 add r2, r4
  58651. 8018498: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  58652. 801849c: f882 1043 strb.w r1, [r2, #67] @ 0x43
  58653. 80184a0: 3302 adds r3, #2
  58654. 80184a2: e7c7 b.n 8018434 <_printf_common+0x58>
  58655. 80184a4: 2301 movs r3, #1
  58656. 80184a6: 4622 mov r2, r4
  58657. 80184a8: 4641 mov r1, r8
  58658. 80184aa: 4638 mov r0, r7
  58659. 80184ac: 47c8 blx r9
  58660. 80184ae: 3001 adds r0, #1
  58661. 80184b0: d0e6 beq.n 8018480 <_printf_common+0xa4>
  58662. 80184b2: 3601 adds r6, #1
  58663. 80184b4: e7d9 b.n 801846a <_printf_common+0x8e>
  58664. ...
  58665. 080184b8 <_printf_i>:
  58666. 80184b8: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  58667. 80184bc: 7e0f ldrb r7, [r1, #24]
  58668. 80184be: 9e0c ldr r6, [sp, #48] @ 0x30
  58669. 80184c0: 2f78 cmp r7, #120 @ 0x78
  58670. 80184c2: 4691 mov r9, r2
  58671. 80184c4: 4680 mov r8, r0
  58672. 80184c6: 460c mov r4, r1
  58673. 80184c8: 469a mov sl, r3
  58674. 80184ca: f101 0243 add.w r2, r1, #67 @ 0x43
  58675. 80184ce: d807 bhi.n 80184e0 <_printf_i+0x28>
  58676. 80184d0: 2f62 cmp r7, #98 @ 0x62
  58677. 80184d2: d80a bhi.n 80184ea <_printf_i+0x32>
  58678. 80184d4: 2f00 cmp r7, #0
  58679. 80184d6: f000 80d2 beq.w 801867e <_printf_i+0x1c6>
  58680. 80184da: 2f58 cmp r7, #88 @ 0x58
  58681. 80184dc: f000 80b9 beq.w 8018652 <_printf_i+0x19a>
  58682. 80184e0: f104 0642 add.w r6, r4, #66 @ 0x42
  58683. 80184e4: f884 7042 strb.w r7, [r4, #66] @ 0x42
  58684. 80184e8: e03a b.n 8018560 <_printf_i+0xa8>
  58685. 80184ea: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  58686. 80184ee: 2b15 cmp r3, #21
  58687. 80184f0: d8f6 bhi.n 80184e0 <_printf_i+0x28>
  58688. 80184f2: a101 add r1, pc, #4 @ (adr r1, 80184f8 <_printf_i+0x40>)
  58689. 80184f4: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  58690. 80184f8: 08018551 .word 0x08018551
  58691. 80184fc: 08018565 .word 0x08018565
  58692. 8018500: 080184e1 .word 0x080184e1
  58693. 8018504: 080184e1 .word 0x080184e1
  58694. 8018508: 080184e1 .word 0x080184e1
  58695. 801850c: 080184e1 .word 0x080184e1
  58696. 8018510: 08018565 .word 0x08018565
  58697. 8018514: 080184e1 .word 0x080184e1
  58698. 8018518: 080184e1 .word 0x080184e1
  58699. 801851c: 080184e1 .word 0x080184e1
  58700. 8018520: 080184e1 .word 0x080184e1
  58701. 8018524: 08018665 .word 0x08018665
  58702. 8018528: 0801858f .word 0x0801858f
  58703. 801852c: 0801861f .word 0x0801861f
  58704. 8018530: 080184e1 .word 0x080184e1
  58705. 8018534: 080184e1 .word 0x080184e1
  58706. 8018538: 08018687 .word 0x08018687
  58707. 801853c: 080184e1 .word 0x080184e1
  58708. 8018540: 0801858f .word 0x0801858f
  58709. 8018544: 080184e1 .word 0x080184e1
  58710. 8018548: 080184e1 .word 0x080184e1
  58711. 801854c: 08018627 .word 0x08018627
  58712. 8018550: 6833 ldr r3, [r6, #0]
  58713. 8018552: 1d1a adds r2, r3, #4
  58714. 8018554: 681b ldr r3, [r3, #0]
  58715. 8018556: 6032 str r2, [r6, #0]
  58716. 8018558: f104 0642 add.w r6, r4, #66 @ 0x42
  58717. 801855c: f884 3042 strb.w r3, [r4, #66] @ 0x42
  58718. 8018560: 2301 movs r3, #1
  58719. 8018562: e09d b.n 80186a0 <_printf_i+0x1e8>
  58720. 8018564: 6833 ldr r3, [r6, #0]
  58721. 8018566: 6820 ldr r0, [r4, #0]
  58722. 8018568: 1d19 adds r1, r3, #4
  58723. 801856a: 6031 str r1, [r6, #0]
  58724. 801856c: 0606 lsls r6, r0, #24
  58725. 801856e: d501 bpl.n 8018574 <_printf_i+0xbc>
  58726. 8018570: 681d ldr r5, [r3, #0]
  58727. 8018572: e003 b.n 801857c <_printf_i+0xc4>
  58728. 8018574: 0645 lsls r5, r0, #25
  58729. 8018576: d5fb bpl.n 8018570 <_printf_i+0xb8>
  58730. 8018578: f9b3 5000 ldrsh.w r5, [r3]
  58731. 801857c: 2d00 cmp r5, #0
  58732. 801857e: da03 bge.n 8018588 <_printf_i+0xd0>
  58733. 8018580: 232d movs r3, #45 @ 0x2d
  58734. 8018582: 426d negs r5, r5
  58735. 8018584: f884 3043 strb.w r3, [r4, #67] @ 0x43
  58736. 8018588: 4859 ldr r0, [pc, #356] @ (80186f0 <_printf_i+0x238>)
  58737. 801858a: 230a movs r3, #10
  58738. 801858c: e011 b.n 80185b2 <_printf_i+0xfa>
  58739. 801858e: 6821 ldr r1, [r4, #0]
  58740. 8018590: 6833 ldr r3, [r6, #0]
  58741. 8018592: 0608 lsls r0, r1, #24
  58742. 8018594: f853 5b04 ldr.w r5, [r3], #4
  58743. 8018598: d402 bmi.n 80185a0 <_printf_i+0xe8>
  58744. 801859a: 0649 lsls r1, r1, #25
  58745. 801859c: bf48 it mi
  58746. 801859e: b2ad uxthmi r5, r5
  58747. 80185a0: 2f6f cmp r7, #111 @ 0x6f
  58748. 80185a2: 4853 ldr r0, [pc, #332] @ (80186f0 <_printf_i+0x238>)
  58749. 80185a4: 6033 str r3, [r6, #0]
  58750. 80185a6: bf14 ite ne
  58751. 80185a8: 230a movne r3, #10
  58752. 80185aa: 2308 moveq r3, #8
  58753. 80185ac: 2100 movs r1, #0
  58754. 80185ae: f884 1043 strb.w r1, [r4, #67] @ 0x43
  58755. 80185b2: 6866 ldr r6, [r4, #4]
  58756. 80185b4: 60a6 str r6, [r4, #8]
  58757. 80185b6: 2e00 cmp r6, #0
  58758. 80185b8: bfa2 ittt ge
  58759. 80185ba: 6821 ldrge r1, [r4, #0]
  58760. 80185bc: f021 0104 bicge.w r1, r1, #4
  58761. 80185c0: 6021 strge r1, [r4, #0]
  58762. 80185c2: b90d cbnz r5, 80185c8 <_printf_i+0x110>
  58763. 80185c4: 2e00 cmp r6, #0
  58764. 80185c6: d04b beq.n 8018660 <_printf_i+0x1a8>
  58765. 80185c8: 4616 mov r6, r2
  58766. 80185ca: fbb5 f1f3 udiv r1, r5, r3
  58767. 80185ce: fb03 5711 mls r7, r3, r1, r5
  58768. 80185d2: 5dc7 ldrb r7, [r0, r7]
  58769. 80185d4: f806 7d01 strb.w r7, [r6, #-1]!
  58770. 80185d8: 462f mov r7, r5
  58771. 80185da: 42bb cmp r3, r7
  58772. 80185dc: 460d mov r5, r1
  58773. 80185de: d9f4 bls.n 80185ca <_printf_i+0x112>
  58774. 80185e0: 2b08 cmp r3, #8
  58775. 80185e2: d10b bne.n 80185fc <_printf_i+0x144>
  58776. 80185e4: 6823 ldr r3, [r4, #0]
  58777. 80185e6: 07df lsls r7, r3, #31
  58778. 80185e8: d508 bpl.n 80185fc <_printf_i+0x144>
  58779. 80185ea: 6923 ldr r3, [r4, #16]
  58780. 80185ec: 6861 ldr r1, [r4, #4]
  58781. 80185ee: 4299 cmp r1, r3
  58782. 80185f0: bfde ittt le
  58783. 80185f2: 2330 movle r3, #48 @ 0x30
  58784. 80185f4: f806 3c01 strble.w r3, [r6, #-1]
  58785. 80185f8: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  58786. 80185fc: 1b92 subs r2, r2, r6
  58787. 80185fe: 6122 str r2, [r4, #16]
  58788. 8018600: f8cd a000 str.w sl, [sp]
  58789. 8018604: 464b mov r3, r9
  58790. 8018606: aa03 add r2, sp, #12
  58791. 8018608: 4621 mov r1, r4
  58792. 801860a: 4640 mov r0, r8
  58793. 801860c: f7ff fee6 bl 80183dc <_printf_common>
  58794. 8018610: 3001 adds r0, #1
  58795. 8018612: d14a bne.n 80186aa <_printf_i+0x1f2>
  58796. 8018614: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58797. 8018618: b004 add sp, #16
  58798. 801861a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  58799. 801861e: 6823 ldr r3, [r4, #0]
  58800. 8018620: f043 0320 orr.w r3, r3, #32
  58801. 8018624: 6023 str r3, [r4, #0]
  58802. 8018626: 4833 ldr r0, [pc, #204] @ (80186f4 <_printf_i+0x23c>)
  58803. 8018628: 2778 movs r7, #120 @ 0x78
  58804. 801862a: f884 7045 strb.w r7, [r4, #69] @ 0x45
  58805. 801862e: 6823 ldr r3, [r4, #0]
  58806. 8018630: 6831 ldr r1, [r6, #0]
  58807. 8018632: 061f lsls r7, r3, #24
  58808. 8018634: f851 5b04 ldr.w r5, [r1], #4
  58809. 8018638: d402 bmi.n 8018640 <_printf_i+0x188>
  58810. 801863a: 065f lsls r7, r3, #25
  58811. 801863c: bf48 it mi
  58812. 801863e: b2ad uxthmi r5, r5
  58813. 8018640: 6031 str r1, [r6, #0]
  58814. 8018642: 07d9 lsls r1, r3, #31
  58815. 8018644: bf44 itt mi
  58816. 8018646: f043 0320 orrmi.w r3, r3, #32
  58817. 801864a: 6023 strmi r3, [r4, #0]
  58818. 801864c: b11d cbz r5, 8018656 <_printf_i+0x19e>
  58819. 801864e: 2310 movs r3, #16
  58820. 8018650: e7ac b.n 80185ac <_printf_i+0xf4>
  58821. 8018652: 4827 ldr r0, [pc, #156] @ (80186f0 <_printf_i+0x238>)
  58822. 8018654: e7e9 b.n 801862a <_printf_i+0x172>
  58823. 8018656: 6823 ldr r3, [r4, #0]
  58824. 8018658: f023 0320 bic.w r3, r3, #32
  58825. 801865c: 6023 str r3, [r4, #0]
  58826. 801865e: e7f6 b.n 801864e <_printf_i+0x196>
  58827. 8018660: 4616 mov r6, r2
  58828. 8018662: e7bd b.n 80185e0 <_printf_i+0x128>
  58829. 8018664: 6833 ldr r3, [r6, #0]
  58830. 8018666: 6825 ldr r5, [r4, #0]
  58831. 8018668: 6961 ldr r1, [r4, #20]
  58832. 801866a: 1d18 adds r0, r3, #4
  58833. 801866c: 6030 str r0, [r6, #0]
  58834. 801866e: 062e lsls r6, r5, #24
  58835. 8018670: 681b ldr r3, [r3, #0]
  58836. 8018672: d501 bpl.n 8018678 <_printf_i+0x1c0>
  58837. 8018674: 6019 str r1, [r3, #0]
  58838. 8018676: e002 b.n 801867e <_printf_i+0x1c6>
  58839. 8018678: 0668 lsls r0, r5, #25
  58840. 801867a: d5fb bpl.n 8018674 <_printf_i+0x1bc>
  58841. 801867c: 8019 strh r1, [r3, #0]
  58842. 801867e: 2300 movs r3, #0
  58843. 8018680: 6123 str r3, [r4, #16]
  58844. 8018682: 4616 mov r6, r2
  58845. 8018684: e7bc b.n 8018600 <_printf_i+0x148>
  58846. 8018686: 6833 ldr r3, [r6, #0]
  58847. 8018688: 1d1a adds r2, r3, #4
  58848. 801868a: 6032 str r2, [r6, #0]
  58849. 801868c: 681e ldr r6, [r3, #0]
  58850. 801868e: 6862 ldr r2, [r4, #4]
  58851. 8018690: 2100 movs r1, #0
  58852. 8018692: 4630 mov r0, r6
  58853. 8018694: f7e7 fe24 bl 80002e0 <memchr>
  58854. 8018698: b108 cbz r0, 801869e <_printf_i+0x1e6>
  58855. 801869a: 1b80 subs r0, r0, r6
  58856. 801869c: 6060 str r0, [r4, #4]
  58857. 801869e: 6863 ldr r3, [r4, #4]
  58858. 80186a0: 6123 str r3, [r4, #16]
  58859. 80186a2: 2300 movs r3, #0
  58860. 80186a4: f884 3043 strb.w r3, [r4, #67] @ 0x43
  58861. 80186a8: e7aa b.n 8018600 <_printf_i+0x148>
  58862. 80186aa: 6923 ldr r3, [r4, #16]
  58863. 80186ac: 4632 mov r2, r6
  58864. 80186ae: 4649 mov r1, r9
  58865. 80186b0: 4640 mov r0, r8
  58866. 80186b2: 47d0 blx sl
  58867. 80186b4: 3001 adds r0, #1
  58868. 80186b6: d0ad beq.n 8018614 <_printf_i+0x15c>
  58869. 80186b8: 6823 ldr r3, [r4, #0]
  58870. 80186ba: 079b lsls r3, r3, #30
  58871. 80186bc: d413 bmi.n 80186e6 <_printf_i+0x22e>
  58872. 80186be: 68e0 ldr r0, [r4, #12]
  58873. 80186c0: 9b03 ldr r3, [sp, #12]
  58874. 80186c2: 4298 cmp r0, r3
  58875. 80186c4: bfb8 it lt
  58876. 80186c6: 4618 movlt r0, r3
  58877. 80186c8: e7a6 b.n 8018618 <_printf_i+0x160>
  58878. 80186ca: 2301 movs r3, #1
  58879. 80186cc: 4632 mov r2, r6
  58880. 80186ce: 4649 mov r1, r9
  58881. 80186d0: 4640 mov r0, r8
  58882. 80186d2: 47d0 blx sl
  58883. 80186d4: 3001 adds r0, #1
  58884. 80186d6: d09d beq.n 8018614 <_printf_i+0x15c>
  58885. 80186d8: 3501 adds r5, #1
  58886. 80186da: 68e3 ldr r3, [r4, #12]
  58887. 80186dc: 9903 ldr r1, [sp, #12]
  58888. 80186de: 1a5b subs r3, r3, r1
  58889. 80186e0: 42ab cmp r3, r5
  58890. 80186e2: dcf2 bgt.n 80186ca <_printf_i+0x212>
  58891. 80186e4: e7eb b.n 80186be <_printf_i+0x206>
  58892. 80186e6: 2500 movs r5, #0
  58893. 80186e8: f104 0619 add.w r6, r4, #25
  58894. 80186ec: e7f5 b.n 80186da <_printf_i+0x222>
  58895. 80186ee: bf00 nop
  58896. 80186f0: 08018c69 .word 0x08018c69
  58897. 80186f4: 08018c7a .word 0x08018c7a
  58898. 080186f8 <__sflush_r>:
  58899. 80186f8: f9b1 200c ldrsh.w r2, [r1, #12]
  58900. 80186fc: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  58901. 8018700: 0716 lsls r6, r2, #28
  58902. 8018702: 4605 mov r5, r0
  58903. 8018704: 460c mov r4, r1
  58904. 8018706: d454 bmi.n 80187b2 <__sflush_r+0xba>
  58905. 8018708: 684b ldr r3, [r1, #4]
  58906. 801870a: 2b00 cmp r3, #0
  58907. 801870c: dc02 bgt.n 8018714 <__sflush_r+0x1c>
  58908. 801870e: 6c0b ldr r3, [r1, #64] @ 0x40
  58909. 8018710: 2b00 cmp r3, #0
  58910. 8018712: dd48 ble.n 80187a6 <__sflush_r+0xae>
  58911. 8018714: 6ae6 ldr r6, [r4, #44] @ 0x2c
  58912. 8018716: 2e00 cmp r6, #0
  58913. 8018718: d045 beq.n 80187a6 <__sflush_r+0xae>
  58914. 801871a: 2300 movs r3, #0
  58915. 801871c: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  58916. 8018720: 682f ldr r7, [r5, #0]
  58917. 8018722: 6a21 ldr r1, [r4, #32]
  58918. 8018724: 602b str r3, [r5, #0]
  58919. 8018726: d030 beq.n 801878a <__sflush_r+0x92>
  58920. 8018728: 6d62 ldr r2, [r4, #84] @ 0x54
  58921. 801872a: 89a3 ldrh r3, [r4, #12]
  58922. 801872c: 0759 lsls r1, r3, #29
  58923. 801872e: d505 bpl.n 801873c <__sflush_r+0x44>
  58924. 8018730: 6863 ldr r3, [r4, #4]
  58925. 8018732: 1ad2 subs r2, r2, r3
  58926. 8018734: 6b63 ldr r3, [r4, #52] @ 0x34
  58927. 8018736: b10b cbz r3, 801873c <__sflush_r+0x44>
  58928. 8018738: 6c23 ldr r3, [r4, #64] @ 0x40
  58929. 801873a: 1ad2 subs r2, r2, r3
  58930. 801873c: 2300 movs r3, #0
  58931. 801873e: 6ae6 ldr r6, [r4, #44] @ 0x2c
  58932. 8018740: 6a21 ldr r1, [r4, #32]
  58933. 8018742: 4628 mov r0, r5
  58934. 8018744: 47b0 blx r6
  58935. 8018746: 1c43 adds r3, r0, #1
  58936. 8018748: 89a3 ldrh r3, [r4, #12]
  58937. 801874a: d106 bne.n 801875a <__sflush_r+0x62>
  58938. 801874c: 6829 ldr r1, [r5, #0]
  58939. 801874e: 291d cmp r1, #29
  58940. 8018750: d82b bhi.n 80187aa <__sflush_r+0xb2>
  58941. 8018752: 4a2a ldr r2, [pc, #168] @ (80187fc <__sflush_r+0x104>)
  58942. 8018754: 410a asrs r2, r1
  58943. 8018756: 07d6 lsls r6, r2, #31
  58944. 8018758: d427 bmi.n 80187aa <__sflush_r+0xb2>
  58945. 801875a: 2200 movs r2, #0
  58946. 801875c: 6062 str r2, [r4, #4]
  58947. 801875e: 04d9 lsls r1, r3, #19
  58948. 8018760: 6922 ldr r2, [r4, #16]
  58949. 8018762: 6022 str r2, [r4, #0]
  58950. 8018764: d504 bpl.n 8018770 <__sflush_r+0x78>
  58951. 8018766: 1c42 adds r2, r0, #1
  58952. 8018768: d101 bne.n 801876e <__sflush_r+0x76>
  58953. 801876a: 682b ldr r3, [r5, #0]
  58954. 801876c: b903 cbnz r3, 8018770 <__sflush_r+0x78>
  58955. 801876e: 6560 str r0, [r4, #84] @ 0x54
  58956. 8018770: 6b61 ldr r1, [r4, #52] @ 0x34
  58957. 8018772: 602f str r7, [r5, #0]
  58958. 8018774: b1b9 cbz r1, 80187a6 <__sflush_r+0xae>
  58959. 8018776: f104 0344 add.w r3, r4, #68 @ 0x44
  58960. 801877a: 4299 cmp r1, r3
  58961. 801877c: d002 beq.n 8018784 <__sflush_r+0x8c>
  58962. 801877e: 4628 mov r0, r5
  58963. 8018780: f7ff fbf2 bl 8017f68 <_free_r>
  58964. 8018784: 2300 movs r3, #0
  58965. 8018786: 6363 str r3, [r4, #52] @ 0x34
  58966. 8018788: e00d b.n 80187a6 <__sflush_r+0xae>
  58967. 801878a: 2301 movs r3, #1
  58968. 801878c: 4628 mov r0, r5
  58969. 801878e: 47b0 blx r6
  58970. 8018790: 4602 mov r2, r0
  58971. 8018792: 1c50 adds r0, r2, #1
  58972. 8018794: d1c9 bne.n 801872a <__sflush_r+0x32>
  58973. 8018796: 682b ldr r3, [r5, #0]
  58974. 8018798: 2b00 cmp r3, #0
  58975. 801879a: d0c6 beq.n 801872a <__sflush_r+0x32>
  58976. 801879c: 2b1d cmp r3, #29
  58977. 801879e: d001 beq.n 80187a4 <__sflush_r+0xac>
  58978. 80187a0: 2b16 cmp r3, #22
  58979. 80187a2: d11e bne.n 80187e2 <__sflush_r+0xea>
  58980. 80187a4: 602f str r7, [r5, #0]
  58981. 80187a6: 2000 movs r0, #0
  58982. 80187a8: e022 b.n 80187f0 <__sflush_r+0xf8>
  58983. 80187aa: f043 0340 orr.w r3, r3, #64 @ 0x40
  58984. 80187ae: b21b sxth r3, r3
  58985. 80187b0: e01b b.n 80187ea <__sflush_r+0xf2>
  58986. 80187b2: 690f ldr r7, [r1, #16]
  58987. 80187b4: 2f00 cmp r7, #0
  58988. 80187b6: d0f6 beq.n 80187a6 <__sflush_r+0xae>
  58989. 80187b8: 0793 lsls r3, r2, #30
  58990. 80187ba: 680e ldr r6, [r1, #0]
  58991. 80187bc: bf08 it eq
  58992. 80187be: 694b ldreq r3, [r1, #20]
  58993. 80187c0: 600f str r7, [r1, #0]
  58994. 80187c2: bf18 it ne
  58995. 80187c4: 2300 movne r3, #0
  58996. 80187c6: eba6 0807 sub.w r8, r6, r7
  58997. 80187ca: 608b str r3, [r1, #8]
  58998. 80187cc: f1b8 0f00 cmp.w r8, #0
  58999. 80187d0: dde9 ble.n 80187a6 <__sflush_r+0xae>
  59000. 80187d2: 6a21 ldr r1, [r4, #32]
  59001. 80187d4: 6aa6 ldr r6, [r4, #40] @ 0x28
  59002. 80187d6: 4643 mov r3, r8
  59003. 80187d8: 463a mov r2, r7
  59004. 80187da: 4628 mov r0, r5
  59005. 80187dc: 47b0 blx r6
  59006. 80187de: 2800 cmp r0, #0
  59007. 80187e0: dc08 bgt.n 80187f4 <__sflush_r+0xfc>
  59008. 80187e2: f9b4 300c ldrsh.w r3, [r4, #12]
  59009. 80187e6: f043 0340 orr.w r3, r3, #64 @ 0x40
  59010. 80187ea: 81a3 strh r3, [r4, #12]
  59011. 80187ec: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  59012. 80187f0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  59013. 80187f4: 4407 add r7, r0
  59014. 80187f6: eba8 0800 sub.w r8, r8, r0
  59015. 80187fa: e7e7 b.n 80187cc <__sflush_r+0xd4>
  59016. 80187fc: dfbffffe .word 0xdfbffffe
  59017. 08018800 <_fflush_r>:
  59018. 8018800: b538 push {r3, r4, r5, lr}
  59019. 8018802: 690b ldr r3, [r1, #16]
  59020. 8018804: 4605 mov r5, r0
  59021. 8018806: 460c mov r4, r1
  59022. 8018808: b913 cbnz r3, 8018810 <_fflush_r+0x10>
  59023. 801880a: 2500 movs r5, #0
  59024. 801880c: 4628 mov r0, r5
  59025. 801880e: bd38 pop {r3, r4, r5, pc}
  59026. 8018810: b118 cbz r0, 801881a <_fflush_r+0x1a>
  59027. 8018812: 6a03 ldr r3, [r0, #32]
  59028. 8018814: b90b cbnz r3, 801881a <_fflush_r+0x1a>
  59029. 8018816: f7ff fa3b bl 8017c90 <__sinit>
  59030. 801881a: f9b4 300c ldrsh.w r3, [r4, #12]
  59031. 801881e: 2b00 cmp r3, #0
  59032. 8018820: d0f3 beq.n 801880a <_fflush_r+0xa>
  59033. 8018822: 6e62 ldr r2, [r4, #100] @ 0x64
  59034. 8018824: 07d0 lsls r0, r2, #31
  59035. 8018826: d404 bmi.n 8018832 <_fflush_r+0x32>
  59036. 8018828: 0599 lsls r1, r3, #22
  59037. 801882a: d402 bmi.n 8018832 <_fflush_r+0x32>
  59038. 801882c: 6da0 ldr r0, [r4, #88] @ 0x58
  59039. 801882e: f7ff fb8a bl 8017f46 <__retarget_lock_acquire_recursive>
  59040. 8018832: 4628 mov r0, r5
  59041. 8018834: 4621 mov r1, r4
  59042. 8018836: f7ff ff5f bl 80186f8 <__sflush_r>
  59043. 801883a: 6e63 ldr r3, [r4, #100] @ 0x64
  59044. 801883c: 07da lsls r2, r3, #31
  59045. 801883e: 4605 mov r5, r0
  59046. 8018840: d4e4 bmi.n 801880c <_fflush_r+0xc>
  59047. 8018842: 89a3 ldrh r3, [r4, #12]
  59048. 8018844: 059b lsls r3, r3, #22
  59049. 8018846: d4e1 bmi.n 801880c <_fflush_r+0xc>
  59050. 8018848: 6da0 ldr r0, [r4, #88] @ 0x58
  59051. 801884a: f7ff fb7d bl 8017f48 <__retarget_lock_release_recursive>
  59052. 801884e: e7dd b.n 801880c <_fflush_r+0xc>
  59053. 08018850 <__swbuf_r>:
  59054. 8018850: b5f8 push {r3, r4, r5, r6, r7, lr}
  59055. 8018852: 460e mov r6, r1
  59056. 8018854: 4614 mov r4, r2
  59057. 8018856: 4605 mov r5, r0
  59058. 8018858: b118 cbz r0, 8018862 <__swbuf_r+0x12>
  59059. 801885a: 6a03 ldr r3, [r0, #32]
  59060. 801885c: b90b cbnz r3, 8018862 <__swbuf_r+0x12>
  59061. 801885e: f7ff fa17 bl 8017c90 <__sinit>
  59062. 8018862: 69a3 ldr r3, [r4, #24]
  59063. 8018864: 60a3 str r3, [r4, #8]
  59064. 8018866: 89a3 ldrh r3, [r4, #12]
  59065. 8018868: 071a lsls r2, r3, #28
  59066. 801886a: d501 bpl.n 8018870 <__swbuf_r+0x20>
  59067. 801886c: 6923 ldr r3, [r4, #16]
  59068. 801886e: b943 cbnz r3, 8018882 <__swbuf_r+0x32>
  59069. 8018870: 4621 mov r1, r4
  59070. 8018872: 4628 mov r0, r5
  59071. 8018874: f000 f82a bl 80188cc <__swsetup_r>
  59072. 8018878: b118 cbz r0, 8018882 <__swbuf_r+0x32>
  59073. 801887a: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  59074. 801887e: 4638 mov r0, r7
  59075. 8018880: bdf8 pop {r3, r4, r5, r6, r7, pc}
  59076. 8018882: 6823 ldr r3, [r4, #0]
  59077. 8018884: 6922 ldr r2, [r4, #16]
  59078. 8018886: 1a98 subs r0, r3, r2
  59079. 8018888: 6963 ldr r3, [r4, #20]
  59080. 801888a: b2f6 uxtb r6, r6
  59081. 801888c: 4283 cmp r3, r0
  59082. 801888e: 4637 mov r7, r6
  59083. 8018890: dc05 bgt.n 801889e <__swbuf_r+0x4e>
  59084. 8018892: 4621 mov r1, r4
  59085. 8018894: 4628 mov r0, r5
  59086. 8018896: f7ff ffb3 bl 8018800 <_fflush_r>
  59087. 801889a: 2800 cmp r0, #0
  59088. 801889c: d1ed bne.n 801887a <__swbuf_r+0x2a>
  59089. 801889e: 68a3 ldr r3, [r4, #8]
  59090. 80188a0: 3b01 subs r3, #1
  59091. 80188a2: 60a3 str r3, [r4, #8]
  59092. 80188a4: 6823 ldr r3, [r4, #0]
  59093. 80188a6: 1c5a adds r2, r3, #1
  59094. 80188a8: 6022 str r2, [r4, #0]
  59095. 80188aa: 701e strb r6, [r3, #0]
  59096. 80188ac: 6962 ldr r2, [r4, #20]
  59097. 80188ae: 1c43 adds r3, r0, #1
  59098. 80188b0: 429a cmp r2, r3
  59099. 80188b2: d004 beq.n 80188be <__swbuf_r+0x6e>
  59100. 80188b4: 89a3 ldrh r3, [r4, #12]
  59101. 80188b6: 07db lsls r3, r3, #31
  59102. 80188b8: d5e1 bpl.n 801887e <__swbuf_r+0x2e>
  59103. 80188ba: 2e0a cmp r6, #10
  59104. 80188bc: d1df bne.n 801887e <__swbuf_r+0x2e>
  59105. 80188be: 4621 mov r1, r4
  59106. 80188c0: 4628 mov r0, r5
  59107. 80188c2: f7ff ff9d bl 8018800 <_fflush_r>
  59108. 80188c6: 2800 cmp r0, #0
  59109. 80188c8: d0d9 beq.n 801887e <__swbuf_r+0x2e>
  59110. 80188ca: e7d6 b.n 801887a <__swbuf_r+0x2a>
  59111. 080188cc <__swsetup_r>:
  59112. 80188cc: b538 push {r3, r4, r5, lr}
  59113. 80188ce: 4b29 ldr r3, [pc, #164] @ (8018974 <__swsetup_r+0xa8>)
  59114. 80188d0: 4605 mov r5, r0
  59115. 80188d2: 6818 ldr r0, [r3, #0]
  59116. 80188d4: 460c mov r4, r1
  59117. 80188d6: b118 cbz r0, 80188e0 <__swsetup_r+0x14>
  59118. 80188d8: 6a03 ldr r3, [r0, #32]
  59119. 80188da: b90b cbnz r3, 80188e0 <__swsetup_r+0x14>
  59120. 80188dc: f7ff f9d8 bl 8017c90 <__sinit>
  59121. 80188e0: f9b4 300c ldrsh.w r3, [r4, #12]
  59122. 80188e4: 0719 lsls r1, r3, #28
  59123. 80188e6: d422 bmi.n 801892e <__swsetup_r+0x62>
  59124. 80188e8: 06da lsls r2, r3, #27
  59125. 80188ea: d407 bmi.n 80188fc <__swsetup_r+0x30>
  59126. 80188ec: 2209 movs r2, #9
  59127. 80188ee: 602a str r2, [r5, #0]
  59128. 80188f0: f043 0340 orr.w r3, r3, #64 @ 0x40
  59129. 80188f4: 81a3 strh r3, [r4, #12]
  59130. 80188f6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  59131. 80188fa: e033 b.n 8018964 <__swsetup_r+0x98>
  59132. 80188fc: 0758 lsls r0, r3, #29
  59133. 80188fe: d512 bpl.n 8018926 <__swsetup_r+0x5a>
  59134. 8018900: 6b61 ldr r1, [r4, #52] @ 0x34
  59135. 8018902: b141 cbz r1, 8018916 <__swsetup_r+0x4a>
  59136. 8018904: f104 0344 add.w r3, r4, #68 @ 0x44
  59137. 8018908: 4299 cmp r1, r3
  59138. 801890a: d002 beq.n 8018912 <__swsetup_r+0x46>
  59139. 801890c: 4628 mov r0, r5
  59140. 801890e: f7ff fb2b bl 8017f68 <_free_r>
  59141. 8018912: 2300 movs r3, #0
  59142. 8018914: 6363 str r3, [r4, #52] @ 0x34
  59143. 8018916: 89a3 ldrh r3, [r4, #12]
  59144. 8018918: f023 0324 bic.w r3, r3, #36 @ 0x24
  59145. 801891c: 81a3 strh r3, [r4, #12]
  59146. 801891e: 2300 movs r3, #0
  59147. 8018920: 6063 str r3, [r4, #4]
  59148. 8018922: 6923 ldr r3, [r4, #16]
  59149. 8018924: 6023 str r3, [r4, #0]
  59150. 8018926: 89a3 ldrh r3, [r4, #12]
  59151. 8018928: f043 0308 orr.w r3, r3, #8
  59152. 801892c: 81a3 strh r3, [r4, #12]
  59153. 801892e: 6923 ldr r3, [r4, #16]
  59154. 8018930: b94b cbnz r3, 8018946 <__swsetup_r+0x7a>
  59155. 8018932: 89a3 ldrh r3, [r4, #12]
  59156. 8018934: f403 7320 and.w r3, r3, #640 @ 0x280
  59157. 8018938: f5b3 7f00 cmp.w r3, #512 @ 0x200
  59158. 801893c: d003 beq.n 8018946 <__swsetup_r+0x7a>
  59159. 801893e: 4621 mov r1, r4
  59160. 8018940: 4628 mov r0, r5
  59161. 8018942: f000 f84f bl 80189e4 <__smakebuf_r>
  59162. 8018946: f9b4 300c ldrsh.w r3, [r4, #12]
  59163. 801894a: f013 0201 ands.w r2, r3, #1
  59164. 801894e: d00a beq.n 8018966 <__swsetup_r+0x9a>
  59165. 8018950: 2200 movs r2, #0
  59166. 8018952: 60a2 str r2, [r4, #8]
  59167. 8018954: 6962 ldr r2, [r4, #20]
  59168. 8018956: 4252 negs r2, r2
  59169. 8018958: 61a2 str r2, [r4, #24]
  59170. 801895a: 6922 ldr r2, [r4, #16]
  59171. 801895c: b942 cbnz r2, 8018970 <__swsetup_r+0xa4>
  59172. 801895e: f013 0080 ands.w r0, r3, #128 @ 0x80
  59173. 8018962: d1c5 bne.n 80188f0 <__swsetup_r+0x24>
  59174. 8018964: bd38 pop {r3, r4, r5, pc}
  59175. 8018966: 0799 lsls r1, r3, #30
  59176. 8018968: bf58 it pl
  59177. 801896a: 6962 ldrpl r2, [r4, #20]
  59178. 801896c: 60a2 str r2, [r4, #8]
  59179. 801896e: e7f4 b.n 801895a <__swsetup_r+0x8e>
  59180. 8018970: 2000 movs r0, #0
  59181. 8018972: e7f7 b.n 8018964 <__swsetup_r+0x98>
  59182. 8018974: 24000054 .word 0x24000054
  59183. 08018978 <_sbrk_r>:
  59184. 8018978: b538 push {r3, r4, r5, lr}
  59185. 801897a: 4d06 ldr r5, [pc, #24] @ (8018994 <_sbrk_r+0x1c>)
  59186. 801897c: 2300 movs r3, #0
  59187. 801897e: 4604 mov r4, r0
  59188. 8018980: 4608 mov r0, r1
  59189. 8018982: 602b str r3, [r5, #0]
  59190. 8018984: f7eb fc22 bl 80041cc <_sbrk>
  59191. 8018988: 1c43 adds r3, r0, #1
  59192. 801898a: d102 bne.n 8018992 <_sbrk_r+0x1a>
  59193. 801898c: 682b ldr r3, [r5, #0]
  59194. 801898e: b103 cbz r3, 8018992 <_sbrk_r+0x1a>
  59195. 8018990: 6023 str r3, [r4, #0]
  59196. 8018992: bd38 pop {r3, r4, r5, pc}
  59197. 8018994: 24012e24 .word 0x24012e24
  59198. 08018998 <__swhatbuf_r>:
  59199. 8018998: b570 push {r4, r5, r6, lr}
  59200. 801899a: 460c mov r4, r1
  59201. 801899c: f9b1 100e ldrsh.w r1, [r1, #14]
  59202. 80189a0: 2900 cmp r1, #0
  59203. 80189a2: b096 sub sp, #88 @ 0x58
  59204. 80189a4: 4615 mov r5, r2
  59205. 80189a6: 461e mov r6, r3
  59206. 80189a8: da0d bge.n 80189c6 <__swhatbuf_r+0x2e>
  59207. 80189aa: 89a3 ldrh r3, [r4, #12]
  59208. 80189ac: f013 0f80 tst.w r3, #128 @ 0x80
  59209. 80189b0: f04f 0100 mov.w r1, #0
  59210. 80189b4: bf14 ite ne
  59211. 80189b6: 2340 movne r3, #64 @ 0x40
  59212. 80189b8: f44f 6380 moveq.w r3, #1024 @ 0x400
  59213. 80189bc: 2000 movs r0, #0
  59214. 80189be: 6031 str r1, [r6, #0]
  59215. 80189c0: 602b str r3, [r5, #0]
  59216. 80189c2: b016 add sp, #88 @ 0x58
  59217. 80189c4: bd70 pop {r4, r5, r6, pc}
  59218. 80189c6: 466a mov r2, sp
  59219. 80189c8: f000 f848 bl 8018a5c <_fstat_r>
  59220. 80189cc: 2800 cmp r0, #0
  59221. 80189ce: dbec blt.n 80189aa <__swhatbuf_r+0x12>
  59222. 80189d0: 9901 ldr r1, [sp, #4]
  59223. 80189d2: f401 4170 and.w r1, r1, #61440 @ 0xf000
  59224. 80189d6: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  59225. 80189da: 4259 negs r1, r3
  59226. 80189dc: 4159 adcs r1, r3
  59227. 80189de: f44f 6380 mov.w r3, #1024 @ 0x400
  59228. 80189e2: e7eb b.n 80189bc <__swhatbuf_r+0x24>
  59229. 080189e4 <__smakebuf_r>:
  59230. 80189e4: 898b ldrh r3, [r1, #12]
  59231. 80189e6: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  59232. 80189e8: 079d lsls r5, r3, #30
  59233. 80189ea: 4606 mov r6, r0
  59234. 80189ec: 460c mov r4, r1
  59235. 80189ee: d507 bpl.n 8018a00 <__smakebuf_r+0x1c>
  59236. 80189f0: f104 0347 add.w r3, r4, #71 @ 0x47
  59237. 80189f4: 6023 str r3, [r4, #0]
  59238. 80189f6: 6123 str r3, [r4, #16]
  59239. 80189f8: 2301 movs r3, #1
  59240. 80189fa: 6163 str r3, [r4, #20]
  59241. 80189fc: b003 add sp, #12
  59242. 80189fe: bdf0 pop {r4, r5, r6, r7, pc}
  59243. 8018a00: ab01 add r3, sp, #4
  59244. 8018a02: 466a mov r2, sp
  59245. 8018a04: f7ff ffc8 bl 8018998 <__swhatbuf_r>
  59246. 8018a08: 9f00 ldr r7, [sp, #0]
  59247. 8018a0a: 4605 mov r5, r0
  59248. 8018a0c: 4639 mov r1, r7
  59249. 8018a0e: 4630 mov r0, r6
  59250. 8018a10: f7ff fb16 bl 8018040 <_malloc_r>
  59251. 8018a14: b948 cbnz r0, 8018a2a <__smakebuf_r+0x46>
  59252. 8018a16: f9b4 300c ldrsh.w r3, [r4, #12]
  59253. 8018a1a: 059a lsls r2, r3, #22
  59254. 8018a1c: d4ee bmi.n 80189fc <__smakebuf_r+0x18>
  59255. 8018a1e: f023 0303 bic.w r3, r3, #3
  59256. 8018a22: f043 0302 orr.w r3, r3, #2
  59257. 8018a26: 81a3 strh r3, [r4, #12]
  59258. 8018a28: e7e2 b.n 80189f0 <__smakebuf_r+0xc>
  59259. 8018a2a: 89a3 ldrh r3, [r4, #12]
  59260. 8018a2c: 6020 str r0, [r4, #0]
  59261. 8018a2e: f043 0380 orr.w r3, r3, #128 @ 0x80
  59262. 8018a32: 81a3 strh r3, [r4, #12]
  59263. 8018a34: 9b01 ldr r3, [sp, #4]
  59264. 8018a36: e9c4 0704 strd r0, r7, [r4, #16]
  59265. 8018a3a: b15b cbz r3, 8018a54 <__smakebuf_r+0x70>
  59266. 8018a3c: f9b4 100e ldrsh.w r1, [r4, #14]
  59267. 8018a40: 4630 mov r0, r6
  59268. 8018a42: f000 f81d bl 8018a80 <_isatty_r>
  59269. 8018a46: b128 cbz r0, 8018a54 <__smakebuf_r+0x70>
  59270. 8018a48: 89a3 ldrh r3, [r4, #12]
  59271. 8018a4a: f023 0303 bic.w r3, r3, #3
  59272. 8018a4e: f043 0301 orr.w r3, r3, #1
  59273. 8018a52: 81a3 strh r3, [r4, #12]
  59274. 8018a54: 89a3 ldrh r3, [r4, #12]
  59275. 8018a56: 431d orrs r5, r3
  59276. 8018a58: 81a5 strh r5, [r4, #12]
  59277. 8018a5a: e7cf b.n 80189fc <__smakebuf_r+0x18>
  59278. 08018a5c <_fstat_r>:
  59279. 8018a5c: b538 push {r3, r4, r5, lr}
  59280. 8018a5e: 4d07 ldr r5, [pc, #28] @ (8018a7c <_fstat_r+0x20>)
  59281. 8018a60: 2300 movs r3, #0
  59282. 8018a62: 4604 mov r4, r0
  59283. 8018a64: 4608 mov r0, r1
  59284. 8018a66: 4611 mov r1, r2
  59285. 8018a68: 602b str r3, [r5, #0]
  59286. 8018a6a: f7eb fb86 bl 800417a <_fstat>
  59287. 8018a6e: 1c43 adds r3, r0, #1
  59288. 8018a70: d102 bne.n 8018a78 <_fstat_r+0x1c>
  59289. 8018a72: 682b ldr r3, [r5, #0]
  59290. 8018a74: b103 cbz r3, 8018a78 <_fstat_r+0x1c>
  59291. 8018a76: 6023 str r3, [r4, #0]
  59292. 8018a78: bd38 pop {r3, r4, r5, pc}
  59293. 8018a7a: bf00 nop
  59294. 8018a7c: 24012e24 .word 0x24012e24
  59295. 08018a80 <_isatty_r>:
  59296. 8018a80: b538 push {r3, r4, r5, lr}
  59297. 8018a82: 4d06 ldr r5, [pc, #24] @ (8018a9c <_isatty_r+0x1c>)
  59298. 8018a84: 2300 movs r3, #0
  59299. 8018a86: 4604 mov r4, r0
  59300. 8018a88: 4608 mov r0, r1
  59301. 8018a8a: 602b str r3, [r5, #0]
  59302. 8018a8c: f7eb fb85 bl 800419a <_isatty>
  59303. 8018a90: 1c43 adds r3, r0, #1
  59304. 8018a92: d102 bne.n 8018a9a <_isatty_r+0x1a>
  59305. 8018a94: 682b ldr r3, [r5, #0]
  59306. 8018a96: b103 cbz r3, 8018a9a <_isatty_r+0x1a>
  59307. 8018a98: 6023 str r3, [r4, #0]
  59308. 8018a9a: bd38 pop {r3, r4, r5, pc}
  59309. 8018a9c: 24012e24 .word 0x24012e24
  59310. 08018aa0 <_init>:
  59311. 8018aa0: b5f8 push {r3, r4, r5, r6, r7, lr}
  59312. 8018aa2: bf00 nop
  59313. 8018aa4: bcf8 pop {r3, r4, r5, r6, r7}
  59314. 8018aa6: bc08 pop {r3}
  59315. 8018aa8: 469e mov lr, r3
  59316. 8018aaa: 4770 bx lr
  59317. 08018aac <_fini>:
  59318. 8018aac: b5f8 push {r3, r4, r5, r6, r7, lr}
  59319. 8018aae: bf00 nop
  59320. 8018ab0: bcf8 pop {r3, r4, r5, r6, r7}
  59321. 8018ab2: bc08 pop {r3}
  59322. 8018ab4: 469e mov lr, r3
  59323. 8018ab6: 4770 bx lr