OZE_Sensor.list 2.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209
  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 000314de 00000000 00000000 00096697 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 0018843f 00000000 00000000 000c7b75 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0024ffb4 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c8e 00000000 00000000 0024fff7 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 0000a3b4 00000000 00000000 00251c88 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 0025c03c 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. encoderYChannelA = 0;
  3674. encoderYChannelB = 0;
  3675. }
  3676. }
  3677. #endif
  3678. if (htim->Instance == TIM4)
  3679. 8001a70: 687b ldr r3, [r7, #4]
  3680. 8001a72: 681b ldr r3, [r3, #0]
  3681. 8001a74: 4a61 ldr r2, [pc, #388] @ (8001bfc <HAL_TIM_IC_CaptureCallback+0x194>)
  3682. 8001a76: 4293 cmp r3, r2
  3683. 8001a78: d15a bne.n 8001b30 <HAL_TIM_IC_CaptureCallback+0xc8>
  3684. {
  3685. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3686. 8001a7a: 687b ldr r3, [r7, #4]
  3687. 8001a7c: 7f1b ldrb r3, [r3, #28]
  3688. 8001a7e: 2b04 cmp r3, #4
  3689. 8001a80: d114 bne.n 8001aac <HAL_TIM_IC_CaptureCallback+0x44>
  3690. {
  3691. if(encoderXChannelB > 0)
  3692. 8001a82: 4b5f ldr r3, [pc, #380] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3693. 8001a84: 681b ldr r3, [r3, #0]
  3694. 8001a86: 2b00 cmp r3, #0
  3695. 8001a88: dd08 ble.n 8001a9c <HAL_TIM_IC_CaptureCallback+0x34>
  3696. {
  3697. encoderXChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3698. 8001a8a: 2108 movs r1, #8
  3699. 8001a8c: 6878 ldr r0, [r7, #4]
  3700. 8001a8e: f00e f90b bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3701. 8001a92: 4603 mov r3, r0
  3702. 8001a94: 461a mov r2, r3
  3703. 8001a96: 4b5b ldr r3, [pc, #364] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3704. 8001a98: 601a str r2, [r3, #0]
  3705. 8001a9a: e01f b.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3706. }
  3707. else
  3708. {
  3709. encoderXChannelA = 1;
  3710. 8001a9c: 4b59 ldr r3, [pc, #356] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3711. 8001a9e: 2201 movs r2, #1
  3712. 8001aa0: 601a str r2, [r3, #0]
  3713. __HAL_TIM_SET_COUNTER(htim,0);
  3714. 8001aa2: 687b ldr r3, [r7, #4]
  3715. 8001aa4: 681b ldr r3, [r3, #0]
  3716. 8001aa6: 2200 movs r2, #0
  3717. 8001aa8: 625a str r2, [r3, #36] @ 0x24
  3718. 8001aaa: e017 b.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3719. }
  3720. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3721. 8001aac: 687b ldr r3, [r7, #4]
  3722. 8001aae: 7f1b ldrb r3, [r3, #28]
  3723. 8001ab0: 2b08 cmp r3, #8
  3724. 8001ab2: d113 bne.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3725. {
  3726. if(encoderXChannelA > 0)
  3727. 8001ab4: 4b53 ldr r3, [pc, #332] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3728. 8001ab6: 681b ldr r3, [r3, #0]
  3729. 8001ab8: 2b00 cmp r3, #0
  3730. 8001aba: dd08 ble.n 8001ace <HAL_TIM_IC_CaptureCallback+0x66>
  3731. {
  3732. encoderXChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3733. 8001abc: 210c movs r1, #12
  3734. 8001abe: 6878 ldr r0, [r7, #4]
  3735. 8001ac0: f00e f8f2 bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3736. 8001ac4: 4603 mov r3, r0
  3737. 8001ac6: 461a mov r2, r3
  3738. 8001ac8: 4b4d ldr r3, [pc, #308] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3739. 8001aca: 601a str r2, [r3, #0]
  3740. 8001acc: e006 b.n 8001adc <HAL_TIM_IC_CaptureCallback+0x74>
  3741. }
  3742. else
  3743. {
  3744. encoderXChannelB = 1;
  3745. 8001ace: 4b4c ldr r3, [pc, #304] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3746. 8001ad0: 2201 movs r2, #1
  3747. 8001ad2: 601a str r2, [r3, #0]
  3748. __HAL_TIM_SET_COUNTER(htim,0);
  3749. 8001ad4: 687b ldr r3, [r7, #4]
  3750. 8001ad6: 681b ldr r3, [r3, #0]
  3751. 8001ad8: 2200 movs r2, #0
  3752. 8001ada: 625a str r2, [r3, #36] @ 0x24
  3753. }
  3754. }
  3755. if((encoderXChannelA != 0) && (encoderXChannelB != 0))
  3756. 8001adc: 4b49 ldr r3, [pc, #292] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3757. 8001ade: 681b ldr r3, [r3, #0]
  3758. 8001ae0: 2b00 cmp r3, #0
  3759. 8001ae2: f000 8086 beq.w 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3760. 8001ae6: 4b46 ldr r3, [pc, #280] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3761. 8001ae8: 681b ldr r3, [r3, #0]
  3762. 8001aea: 2b00 cmp r3, #0
  3763. 8001aec: f000 8081 beq.w 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3764. {
  3765. EncoderData encoderData = { 0 };
  3766. 8001af0: 2300 movs r3, #0
  3767. 8001af2: 81bb strh r3, [r7, #12]
  3768. encoderData.axe = encoderAxeX;
  3769. 8001af4: 2300 movs r3, #0
  3770. 8001af6: 733b strb r3, [r7, #12]
  3771. encoderData.direction = encoderXChannelA - encoderXChannelB < 0 ? encoderCW : encoderCCW;
  3772. 8001af8: 4b42 ldr r3, [pc, #264] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3773. 8001afa: 681a ldr r2, [r3, #0]
  3774. 8001afc: 4b40 ldr r3, [pc, #256] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3775. 8001afe: 681b ldr r3, [r3, #0]
  3776. 8001b00: 1ad3 subs r3, r2, r3
  3777. 8001b02: 43db mvns r3, r3
  3778. 8001b04: 0fdb lsrs r3, r3, #31
  3779. 8001b06: b2db uxtb r3, r3
  3780. 8001b08: 737b strb r3, [r7, #13]
  3781. if (encoderData.direction == encoderCCW)
  3782. 8001b0a: 7b7b ldrb r3, [r7, #13]
  3783. 8001b0c: 2b01 cmp r3, #1
  3784. 8001b0e: d100 bne.n 8001b12 <HAL_TIM_IC_CaptureCallback+0xaa>
  3785. {
  3786. asm("nop;");
  3787. 8001b10: bf00 nop
  3788. }
  3789. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3790. 8001b12: 4b3d ldr r3, [pc, #244] @ (8001c08 <HAL_TIM_IC_CaptureCallback+0x1a0>)
  3791. 8001b14: 6818 ldr r0, [r3, #0]
  3792. 8001b16: f107 010c add.w r1, r7, #12
  3793. 8001b1a: 2300 movs r3, #0
  3794. 8001b1c: 2200 movs r2, #0
  3795. 8001b1e: f012 f9f9 bl 8013f14 <osMessageQueuePut>
  3796. encoderXChannelA = 0;
  3797. 8001b22: 4b38 ldr r3, [pc, #224] @ (8001c04 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3798. 8001b24: 2200 movs r2, #0
  3799. 8001b26: 601a str r2, [r3, #0]
  3800. encoderXChannelB = 0;
  3801. 8001b28: 4b35 ldr r3, [pc, #212] @ (8001c00 <HAL_TIM_IC_CaptureCallback+0x198>)
  3802. 8001b2a: 2200 movs r2, #0
  3803. 8001b2c: 601a str r2, [r3, #0]
  3804. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3805. encoderYChannelA = 0;
  3806. encoderYChannelB = 0;
  3807. }
  3808. }
  3809. }
  3810. 8001b2e: e060 b.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3811. } else if (htim->Instance == TIM2)
  3812. 8001b30: 687b ldr r3, [r7, #4]
  3813. 8001b32: 681b ldr r3, [r3, #0]
  3814. 8001b34: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  3815. 8001b38: d15b bne.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3816. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3817. 8001b3a: 687b ldr r3, [r7, #4]
  3818. 8001b3c: 7f1b ldrb r3, [r3, #28]
  3819. 8001b3e: 2b04 cmp r3, #4
  3820. 8001b40: d114 bne.n 8001b6c <HAL_TIM_IC_CaptureCallback+0x104>
  3821. if(encoderYChannelB > 0)
  3822. 8001b42: 4b32 ldr r3, [pc, #200] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3823. 8001b44: 681b ldr r3, [r3, #0]
  3824. 8001b46: 2b00 cmp r3, #0
  3825. 8001b48: dd08 ble.n 8001b5c <HAL_TIM_IC_CaptureCallback+0xf4>
  3826. encoderYChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3827. 8001b4a: 2108 movs r1, #8
  3828. 8001b4c: 6878 ldr r0, [r7, #4]
  3829. 8001b4e: f00e f8ab bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3830. 8001b52: 4603 mov r3, r0
  3831. 8001b54: 461a mov r2, r3
  3832. 8001b56: 4b2e ldr r3, [pc, #184] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3833. 8001b58: 601a str r2, [r3, #0]
  3834. 8001b5a: e01f b.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3835. encoderYChannelA = 1;
  3836. 8001b5c: 4b2c ldr r3, [pc, #176] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3837. 8001b5e: 2201 movs r2, #1
  3838. 8001b60: 601a str r2, [r3, #0]
  3839. __HAL_TIM_SET_COUNTER(htim,0);
  3840. 8001b62: 687b ldr r3, [r7, #4]
  3841. 8001b64: 681b ldr r3, [r3, #0]
  3842. 8001b66: 2200 movs r2, #0
  3843. 8001b68: 625a str r2, [r3, #36] @ 0x24
  3844. 8001b6a: e017 b.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3845. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3846. 8001b6c: 687b ldr r3, [r7, #4]
  3847. 8001b6e: 7f1b ldrb r3, [r3, #28]
  3848. 8001b70: 2b08 cmp r3, #8
  3849. 8001b72: d113 bne.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3850. if(encoderYChannelA > 0)
  3851. 8001b74: 4b26 ldr r3, [pc, #152] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3852. 8001b76: 681b ldr r3, [r3, #0]
  3853. 8001b78: 2b00 cmp r3, #0
  3854. 8001b7a: dd08 ble.n 8001b8e <HAL_TIM_IC_CaptureCallback+0x126>
  3855. encoderYChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3856. 8001b7c: 210c movs r1, #12
  3857. 8001b7e: 6878 ldr r0, [r7, #4]
  3858. 8001b80: f00e f892 bl 800fca8 <HAL_TIM_ReadCapturedValue>
  3859. 8001b84: 4603 mov r3, r0
  3860. 8001b86: 461a mov r2, r3
  3861. 8001b88: 4b20 ldr r3, [pc, #128] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3862. 8001b8a: 601a str r2, [r3, #0]
  3863. 8001b8c: e006 b.n 8001b9c <HAL_TIM_IC_CaptureCallback+0x134>
  3864. encoderYChannelB = 1;
  3865. 8001b8e: 4b1f ldr r3, [pc, #124] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3866. 8001b90: 2201 movs r2, #1
  3867. 8001b92: 601a str r2, [r3, #0]
  3868. __HAL_TIM_SET_COUNTER(htim,0);
  3869. 8001b94: 687b ldr r3, [r7, #4]
  3870. 8001b96: 681b ldr r3, [r3, #0]
  3871. 8001b98: 2200 movs r2, #0
  3872. 8001b9a: 625a str r2, [r3, #36] @ 0x24
  3873. if((encoderYChannelA != 0) && (encoderYChannelB != 0))
  3874. 8001b9c: 4b1c ldr r3, [pc, #112] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3875. 8001b9e: 681b ldr r3, [r3, #0]
  3876. 8001ba0: 2b00 cmp r3, #0
  3877. 8001ba2: d026 beq.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3878. 8001ba4: 4b19 ldr r3, [pc, #100] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3879. 8001ba6: 681b ldr r3, [r3, #0]
  3880. 8001ba8: 2b00 cmp r3, #0
  3881. 8001baa: d022 beq.n 8001bf2 <HAL_TIM_IC_CaptureCallback+0x18a>
  3882. EncoderData encoderData = { 0 };
  3883. 8001bac: 2300 movs r3, #0
  3884. 8001bae: 813b strh r3, [r7, #8]
  3885. encoderData.axe = encoderAxeY;
  3886. 8001bb0: 2301 movs r3, #1
  3887. 8001bb2: 723b strb r3, [r7, #8]
  3888. encoderData.direction = encoderYChannelA - encoderYChannelB < 0 ? encoderCW : encoderCCW;
  3889. 8001bb4: 4b16 ldr r3, [pc, #88] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3890. 8001bb6: 681a ldr r2, [r3, #0]
  3891. 8001bb8: 4b14 ldr r3, [pc, #80] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3892. 8001bba: 681b ldr r3, [r3, #0]
  3893. 8001bbc: 1ad3 subs r3, r2, r3
  3894. 8001bbe: 43db mvns r3, r3
  3895. 8001bc0: 0fdb lsrs r3, r3, #31
  3896. 8001bc2: b2db uxtb r3, r3
  3897. 8001bc4: 727b strb r3, [r7, #9]
  3898. if (encoderData.direction == encoderCCW)
  3899. 8001bc6: 7a7b ldrb r3, [r7, #9]
  3900. 8001bc8: 2b01 cmp r3, #1
  3901. 8001bca: d100 bne.n 8001bce <HAL_TIM_IC_CaptureCallback+0x166>
  3902. asm("nop;");
  3903. 8001bcc: bf00 nop
  3904. if (encoderData.direction == encoderCW)
  3905. 8001bce: 7a7b ldrb r3, [r7, #9]
  3906. 8001bd0: 2b00 cmp r3, #0
  3907. 8001bd2: d100 bne.n 8001bd6 <HAL_TIM_IC_CaptureCallback+0x16e>
  3908. asm("nop;");
  3909. 8001bd4: bf00 nop
  3910. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3911. 8001bd6: 4b0c ldr r3, [pc, #48] @ (8001c08 <HAL_TIM_IC_CaptureCallback+0x1a0>)
  3912. 8001bd8: 6818 ldr r0, [r3, #0]
  3913. 8001bda: f107 0108 add.w r1, r7, #8
  3914. 8001bde: 2300 movs r3, #0
  3915. 8001be0: 2200 movs r2, #0
  3916. 8001be2: f012 f997 bl 8013f14 <osMessageQueuePut>
  3917. encoderYChannelA = 0;
  3918. 8001be6: 4b0a ldr r3, [pc, #40] @ (8001c10 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3919. 8001be8: 2200 movs r2, #0
  3920. 8001bea: 601a str r2, [r3, #0]
  3921. encoderYChannelB = 0;
  3922. 8001bec: 4b07 ldr r3, [pc, #28] @ (8001c0c <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3923. 8001bee: 2200 movs r2, #0
  3924. 8001bf0: 601a str r2, [r3, #0]
  3925. }
  3926. 8001bf2: bf00 nop
  3927. 8001bf4: 3710 adds r7, #16
  3928. 8001bf6: 46bd mov sp, r7
  3929. 8001bf8: bd80 pop {r7, pc}
  3930. 8001bfa: bf00 nop
  3931. 8001bfc: 40000800 .word 0x40000800
  3932. 8001c00: 24000800 .word 0x24000800
  3933. 8001c04: 240007fc .word 0x240007fc
  3934. 8001c08: 24000830 .word 0x24000830
  3935. 8001c0c: 24000808 .word 0x24000808
  3936. 8001c10: 24000804 .word 0x24000804
  3937. 08001c14 <StartDefaultTask>:
  3938. * @param argument: Not used
  3939. * @retval None
  3940. */
  3941. /* USER CODE END Header_StartDefaultTask */
  3942. void StartDefaultTask(void *argument)
  3943. {
  3944. 8001c14: b580 push {r7, lr}
  3945. 8001c16: b082 sub sp, #8
  3946. 8001c18: af00 add r7, sp, #0
  3947. 8001c1a: 6078 str r0, [r7, #4]
  3948. /* USER CODE BEGIN 5 */
  3949. HAL_IWDG_Refresh(&hiwdg1);
  3950. 8001c1c: 485e ldr r0, [pc, #376] @ (8001d98 <StartDefaultTask+0x184>)
  3951. 8001c1e: f009 f8df bl 800ade0 <HAL_IWDG_Refresh>
  3952. SelectCurrentSensorGain(CurrentSensorL1, csGain3);
  3953. 8001c22: 2102 movs r1, #2
  3954. 8001c24: 2000 movs r0, #0
  3955. 8001c26: f001 f931 bl 8002e8c <SelectCurrentSensorGain>
  3956. SelectCurrentSensorGain(CurrentSensorL2, csGain3);
  3957. 8001c2a: 2102 movs r1, #2
  3958. 8001c2c: 2001 movs r0, #1
  3959. 8001c2e: f001 f92d bl 8002e8c <SelectCurrentSensorGain>
  3960. SelectCurrentSensorGain(CurrentSensorL3, csGain3);
  3961. 8001c32: 2102 movs r1, #2
  3962. 8001c34: 2002 movs r0, #2
  3963. 8001c36: f001 f929 bl 8002e8c <SelectCurrentSensorGain>
  3964. EnableCurrentSensors();
  3965. 8001c3a: f001 f91b bl 8002e74 <EnableCurrentSensors>
  3966. osDelay(pdMS_TO_TICKS(100));
  3967. 8001c3e: 2064 movs r0, #100 @ 0x64
  3968. 8001c40: f011 fed5 bl 80139ee <osDelay>
  3969. HAL_IWDG_Refresh(&hiwdg1);
  3970. 8001c44: 4854 ldr r0, [pc, #336] @ (8001d98 <StartDefaultTask+0x184>)
  3971. 8001c46: f009 f8cb bl 800ade0 <HAL_IWDG_Refresh>
  3972. if(HAL_TIM_Base_Start(&htim8) != HAL_OK)
  3973. 8001c4a: 4854 ldr r0, [pc, #336] @ (8001d9c <StartDefaultTask+0x188>)
  3974. 8001c4c: f00c ffe6 bl 800ec1c <HAL_TIM_Base_Start>
  3975. 8001c50: 4603 mov r3, r0
  3976. 8001c52: 2b00 cmp r3, #0
  3977. 8001c54: d001 beq.n 8001c5a <StartDefaultTask+0x46>
  3978. {
  3979. Error_Handler();
  3980. 8001c56: f000 f997 bl 8001f88 <Error_Handler>
  3981. }
  3982. if(HAL_TIM_Base_Start_IT(&htim2) != HAL_OK)
  3983. 8001c5a: 4851 ldr r0, [pc, #324] @ (8001da0 <StartDefaultTask+0x18c>)
  3984. 8001c5c: f00d f84e bl 800ecfc <HAL_TIM_Base_Start_IT>
  3985. 8001c60: 4603 mov r3, r0
  3986. 8001c62: 2b00 cmp r3, #0
  3987. 8001c64: d001 beq.n 8001c6a <StartDefaultTask+0x56>
  3988. {
  3989. Error_Handler();
  3990. 8001c66: f000 f98f bl 8001f88 <Error_Handler>
  3991. }
  3992. if(HAL_TIM_Base_Start_IT(&htim4) != HAL_OK)
  3993. 8001c6a: 484e ldr r0, [pc, #312] @ (8001da4 <StartDefaultTask+0x190>)
  3994. 8001c6c: f00d f846 bl 800ecfc <HAL_TIM_Base_Start_IT>
  3995. 8001c70: 4603 mov r3, r0
  3996. 8001c72: 2b00 cmp r3, #0
  3997. 8001c74: d001 beq.n 8001c7a <StartDefaultTask+0x66>
  3998. {
  3999. Error_Handler();
  4000. 8001c76: f000 f987 bl 8001f88 <Error_Handler>
  4001. }
  4002. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_3) != HAL_OK)
  4003. 8001c7a: 2108 movs r1, #8
  4004. 8001c7c: 4849 ldr r0, [pc, #292] @ (8001da4 <StartDefaultTask+0x190>)
  4005. 8001c7e: f00d fb13 bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4006. 8001c82: 4603 mov r3, r0
  4007. 8001c84: 2b00 cmp r3, #0
  4008. 8001c86: d001 beq.n 8001c8c <StartDefaultTask+0x78>
  4009. {
  4010. Error_Handler();
  4011. 8001c88: f000 f97e bl 8001f88 <Error_Handler>
  4012. }
  4013. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_4) != HAL_OK)
  4014. 8001c8c: 210c movs r1, #12
  4015. 8001c8e: 4845 ldr r0, [pc, #276] @ (8001da4 <StartDefaultTask+0x190>)
  4016. 8001c90: f00d fb0a bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4017. 8001c94: 4603 mov r3, r0
  4018. 8001c96: 2b00 cmp r3, #0
  4019. 8001c98: d001 beq.n 8001c9e <StartDefaultTask+0x8a>
  4020. {
  4021. Error_Handler();
  4022. 8001c9a: f000 f975 bl 8001f88 <Error_Handler>
  4023. }
  4024. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_3) != HAL_OK)
  4025. 8001c9e: 2108 movs r1, #8
  4026. 8001ca0: 483f ldr r0, [pc, #252] @ (8001da0 <StartDefaultTask+0x18c>)
  4027. 8001ca2: f00d fb01 bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4028. 8001ca6: 4603 mov r3, r0
  4029. 8001ca8: 2b00 cmp r3, #0
  4030. 8001caa: d001 beq.n 8001cb0 <StartDefaultTask+0x9c>
  4031. {
  4032. Error_Handler();
  4033. 8001cac: f000 f96c bl 8001f88 <Error_Handler>
  4034. }
  4035. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_4) != HAL_OK)
  4036. 8001cb0: 210c movs r1, #12
  4037. 8001cb2: 483b ldr r0, [pc, #236] @ (8001da0 <StartDefaultTask+0x18c>)
  4038. 8001cb4: f00d faf8 bl 800f2a8 <HAL_TIM_IC_Start_IT>
  4039. 8001cb8: 4603 mov r3, r0
  4040. 8001cba: 2b00 cmp r3, #0
  4041. 8001cbc: d001 beq.n 8001cc2 <StartDefaultTask+0xae>
  4042. {
  4043. Error_Handler();
  4044. 8001cbe: f000 f963 bl 8001f88 <Error_Handler>
  4045. }
  4046. if(HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData) != HAL_OK)
  4047. 8001cc2: 2207 movs r2, #7
  4048. 8001cc4: 4938 ldr r1, [pc, #224] @ (8001da8 <StartDefaultTask+0x194>)
  4049. 8001cc6: 4839 ldr r0, [pc, #228] @ (8001dac <StartDefaultTask+0x198>)
  4050. 8001cc8: f004 f850 bl 8005d6c <HAL_ADC_Start_DMA>
  4051. 8001ccc: 4603 mov r3, r0
  4052. 8001cce: 2b00 cmp r3, #0
  4053. 8001cd0: d001 beq.n 8001cd6 <StartDefaultTask+0xc2>
  4054. {
  4055. Error_Handler();
  4056. 8001cd2: f000 f959 bl 8001f88 <Error_Handler>
  4057. }
  4058. if(HAL_ADC_Start_DMA(&hadc2, (uint32_t *)adc2Data.adcDataBuffer, ADC2LastData) != HAL_OK)
  4059. 8001cd6: 2203 movs r2, #3
  4060. 8001cd8: 4935 ldr r1, [pc, #212] @ (8001db0 <StartDefaultTask+0x19c>)
  4061. 8001cda: 4836 ldr r0, [pc, #216] @ (8001db4 <StartDefaultTask+0x1a0>)
  4062. 8001cdc: f004 f846 bl 8005d6c <HAL_ADC_Start_DMA>
  4063. 8001ce0: 4603 mov r3, r0
  4064. 8001ce2: 2b00 cmp r3, #0
  4065. 8001ce4: d001 beq.n 8001cea <StartDefaultTask+0xd6>
  4066. {
  4067. Error_Handler();
  4068. 8001ce6: f000 f94f bl 8001f88 <Error_Handler>
  4069. }
  4070. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData) != HAL_OK)
  4071. 8001cea: 2205 movs r2, #5
  4072. 8001cec: 4932 ldr r1, [pc, #200] @ (8001db8 <StartDefaultTask+0x1a4>)
  4073. 8001cee: 4833 ldr r0, [pc, #204] @ (8001dbc <StartDefaultTask+0x1a8>)
  4074. 8001cf0: f004 f83c bl 8005d6c <HAL_ADC_Start_DMA>
  4075. 8001cf4: 4603 mov r3, r0
  4076. 8001cf6: 2b00 cmp r3, #0
  4077. 8001cf8: d001 beq.n 8001cfe <StartDefaultTask+0xea>
  4078. {
  4079. Error_Handler();
  4080. 8001cfa: f000 f945 bl 8001f88 <Error_Handler>
  4081. }
  4082. HAL_COMP_Start(&hcomp1);
  4083. 8001cfe: 4830 ldr r0, [pc, #192] @ (8001dc0 <StartDefaultTask+0x1ac>)
  4084. 8001d00: f005 f9b8 bl 8007074 <HAL_COMP_Start>
  4085. HAL_IWDG_Refresh(&hiwdg1);
  4086. 8001d04: 4824 ldr r0, [pc, #144] @ (8001d98 <StartDefaultTask+0x184>)
  4087. 8001d06: f009 f86b bl 800ade0 <HAL_IWDG_Refresh>
  4088. /* Infinite loop */
  4089. for(;;)
  4090. {
  4091. osDelay(pdMS_TO_TICKS(100));
  4092. 8001d0a: 2064 movs r0, #100 @ 0x64
  4093. 8001d0c: f011 fe6f bl 80139ee <osDelay>
  4094. HAL_IWDG_Refresh(&hiwdg1);
  4095. 8001d10: 4821 ldr r0, [pc, #132] @ (8001d98 <StartDefaultTask+0x184>)
  4096. 8001d12: f009 f865 bl 800ade0 <HAL_IWDG_Refresh>
  4097. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  4098. 8001d16: 2100 movs r1, #0
  4099. 8001d18: 482a ldr r0, [pc, #168] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4100. 8001d1a: f00e f827 bl 800fd6c <HAL_TIM_GetChannelState>
  4101. 8001d1e: 4603 mov r3, r0
  4102. 8001d20: 2b01 cmp r3, #1
  4103. 8001d22: d118 bne.n 8001d56 <StartDefaultTask+0x142>
  4104. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_2) == HAL_TIM_CHANNEL_STATE_READY)
  4105. 8001d24: 2104 movs r1, #4
  4106. 8001d26: 4827 ldr r0, [pc, #156] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4107. 8001d28: f00e f820 bl 800fd6c <HAL_TIM_GetChannelState>
  4108. 8001d2c: 4603 mov r3, r0
  4109. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  4110. 8001d2e: 2b01 cmp r3, #1
  4111. 8001d30: d111 bne.n 8001d56 <StartDefaultTask+0x142>
  4112. {
  4113. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  4114. 8001d32: 4b25 ldr r3, [pc, #148] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4115. 8001d34: 681b ldr r3, [r3, #0]
  4116. 8001d36: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4117. 8001d3a: 4618 mov r0, r3
  4118. 8001d3c: f011 ffef bl 8013d1e <osMutexAcquire>
  4119. 8001d40: 4603 mov r3, r0
  4120. 8001d42: 2b00 cmp r3, #0
  4121. 8001d44: d107 bne.n 8001d56 <StartDefaultTask+0x142>
  4122. {
  4123. sensorsInfo.motorXStatus = 0;
  4124. 8001d46: 4b21 ldr r3, [pc, #132] @ (8001dcc <StartDefaultTask+0x1b8>)
  4125. 8001d48: 2200 movs r2, #0
  4126. 8001d4a: 751a strb r2, [r3, #20]
  4127. osMutexRelease(sensorsInfoMutex);
  4128. 8001d4c: 4b1e ldr r3, [pc, #120] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4129. 8001d4e: 681b ldr r3, [r3, #0]
  4130. 8001d50: 4618 mov r0, r3
  4131. 8001d52: f012 f82f bl 8013db4 <osMutexRelease>
  4132. }
  4133. }
  4134. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  4135. 8001d56: 2108 movs r1, #8
  4136. 8001d58: 481a ldr r0, [pc, #104] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4137. 8001d5a: f00e f807 bl 800fd6c <HAL_TIM_GetChannelState>
  4138. 8001d5e: 4603 mov r3, r0
  4139. 8001d60: 2b01 cmp r3, #1
  4140. 8001d62: d1d2 bne.n 8001d0a <StartDefaultTask+0xf6>
  4141. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_4) == HAL_TIM_CHANNEL_STATE_READY)
  4142. 8001d64: 210c movs r1, #12
  4143. 8001d66: 4817 ldr r0, [pc, #92] @ (8001dc4 <StartDefaultTask+0x1b0>)
  4144. 8001d68: f00e f800 bl 800fd6c <HAL_TIM_GetChannelState>
  4145. 8001d6c: 4603 mov r3, r0
  4146. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  4147. 8001d6e: 2b01 cmp r3, #1
  4148. 8001d70: d1cb bne.n 8001d0a <StartDefaultTask+0xf6>
  4149. {
  4150. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  4151. 8001d72: 4b15 ldr r3, [pc, #84] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4152. 8001d74: 681b ldr r3, [r3, #0]
  4153. 8001d76: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4154. 8001d7a: 4618 mov r0, r3
  4155. 8001d7c: f011 ffcf bl 8013d1e <osMutexAcquire>
  4156. 8001d80: 4603 mov r3, r0
  4157. 8001d82: 2b00 cmp r3, #0
  4158. 8001d84: d1c1 bne.n 8001d0a <StartDefaultTask+0xf6>
  4159. {
  4160. sensorsInfo.motorYStatus = 0;
  4161. 8001d86: 4b11 ldr r3, [pc, #68] @ (8001dcc <StartDefaultTask+0x1b8>)
  4162. 8001d88: 2200 movs r2, #0
  4163. 8001d8a: 755a strb r2, [r3, #21]
  4164. osMutexRelease(sensorsInfoMutex);
  4165. 8001d8c: 4b0e ldr r3, [pc, #56] @ (8001dc8 <StartDefaultTask+0x1b4>)
  4166. 8001d8e: 681b ldr r3, [r3, #0]
  4167. 8001d90: 4618 mov r0, r3
  4168. 8001d92: f012 f80f bl 8013db4 <osMutexRelease>
  4169. osDelay(pdMS_TO_TICKS(100));
  4170. 8001d96: e7b8 b.n 8001d0a <StartDefaultTask+0xf6>
  4171. 8001d98: 24000438 .word 0x24000438
  4172. 8001d9c: 2400058c .word 0x2400058c
  4173. 8001da0: 240004a8 .word 0x240004a8
  4174. 8001da4: 24000540 .word 0x24000540
  4175. 8001da8: 240000e0 .word 0x240000e0
  4176. 8001dac: 24000140 .word 0x24000140
  4177. 8001db0: 24000100 .word 0x24000100
  4178. 8001db4: 240001a4 .word 0x240001a4
  4179. 8001db8: 24000120 .word 0x24000120
  4180. 8001dbc: 24000208 .word 0x24000208
  4181. 8001dc0: 240003d4 .word 0x240003d4
  4182. 8001dc4: 240004f4 .word 0x240004f4
  4183. 8001dc8: 2400083c .word 0x2400083c
  4184. 8001dcc: 24000880 .word 0x24000880
  4185. 08001dd0 <debugLedTimerCallback>:
  4186. /* USER CODE END 5 */
  4187. }
  4188. /* debugLedTimerCallback function */
  4189. void debugLedTimerCallback(void *argument)
  4190. {
  4191. 8001dd0: b580 push {r7, lr}
  4192. 8001dd2: b082 sub sp, #8
  4193. 8001dd4: af00 add r7, sp, #0
  4194. 8001dd6: 6078 str r0, [r7, #4]
  4195. /* USER CODE BEGIN debugLedTimerCallback */
  4196. DbgLEDOff (DBG_LED1);
  4197. 8001dd8: 2010 movs r0, #16
  4198. 8001dda: f001 f827 bl 8002e2c <DbgLEDOff>
  4199. /* USER CODE END debugLedTimerCallback */
  4200. }
  4201. 8001dde: bf00 nop
  4202. 8001de0: 3708 adds r7, #8
  4203. 8001de2: 46bd mov sp, r7
  4204. 8001de4: bd80 pop {r7, pc}
  4205. ...
  4206. 08001de8 <fanTimerCallback>:
  4207. /* fanTimerCallback function */
  4208. void fanTimerCallback(void *argument)
  4209. {
  4210. 8001de8: b580 push {r7, lr}
  4211. 8001dea: b082 sub sp, #8
  4212. 8001dec: af00 add r7, sp, #0
  4213. 8001dee: 6078 str r0, [r7, #4]
  4214. /* USER CODE BEGIN fanTimerCallback */
  4215. HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_2);
  4216. 8001df0: 2104 movs r1, #4
  4217. 8001df2: 4803 ldr r0, [pc, #12] @ (8001e00 <fanTimerCallback+0x18>)
  4218. 8001df4: f00d f960 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4219. /* USER CODE END fanTimerCallback */
  4220. }
  4221. 8001df8: bf00 nop
  4222. 8001dfa: 3708 adds r7, #8
  4223. 8001dfc: 46bd mov sp, r7
  4224. 8001dfe: bd80 pop {r7, pc}
  4225. 8001e00: 2400045c .word 0x2400045c
  4226. 08001e04 <motorXTimerCallback>:
  4227. /* motorXTimerCallback function */
  4228. void motorXTimerCallback(void *argument)
  4229. {
  4230. 8001e04: b580 push {r7, lr}
  4231. 8001e06: b084 sub sp, #16
  4232. 8001e08: af02 add r7, sp, #8
  4233. 8001e0a: 6078 str r0, [r7, #4]
  4234. /* USER CODE BEGIN motorXTimerCallback */
  4235. motorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, HiZ, 0);
  4236. 8001e0c: 2300 movs r3, #0
  4237. 8001e0e: 9301 str r3, [sp, #4]
  4238. 8001e10: 2300 movs r3, #0
  4239. 8001e12: 9300 str r3, [sp, #0]
  4240. 8001e14: 2304 movs r3, #4
  4241. 8001e16: 2200 movs r2, #0
  4242. 8001e18: 4907 ldr r1, [pc, #28] @ (8001e38 <motorXTimerCallback+0x34>)
  4243. 8001e1a: 4808 ldr r0, [pc, #32] @ (8001e3c <motorXTimerCallback+0x38>)
  4244. 8001e1c: f001 f9bb bl 8003196 <motorAction>
  4245. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
  4246. 8001e20: 2100 movs r1, #0
  4247. 8001e22: 4806 ldr r0, [pc, #24] @ (8001e3c <motorXTimerCallback+0x38>)
  4248. 8001e24: f00d f948 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4249. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_2);
  4250. 8001e28: 2104 movs r1, #4
  4251. 8001e2a: 4804 ldr r0, [pc, #16] @ (8001e3c <motorXTimerCallback+0x38>)
  4252. 8001e2c: f00d f944 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4253. /* USER CODE END motorXTimerCallback */
  4254. }
  4255. 8001e30: bf00 nop
  4256. 8001e32: 3708 adds r7, #8
  4257. 8001e34: 46bd mov sp, r7
  4258. 8001e36: bd80 pop {r7, pc}
  4259. 8001e38: 240007e0 .word 0x240007e0
  4260. 8001e3c: 240004f4 .word 0x240004f4
  4261. 08001e40 <motorYTimerCallback>:
  4262. /* motorYTimerCallback function */
  4263. void motorYTimerCallback(void *argument)
  4264. {
  4265. 8001e40: b580 push {r7, lr}
  4266. 8001e42: b084 sub sp, #16
  4267. 8001e44: af02 add r7, sp, #8
  4268. 8001e46: 6078 str r0, [r7, #4]
  4269. /* USER CODE BEGIN motorYTimerCallback */
  4270. motorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, HiZ, 0);
  4271. 8001e48: 2300 movs r3, #0
  4272. 8001e4a: 9301 str r3, [sp, #4]
  4273. 8001e4c: 2300 movs r3, #0
  4274. 8001e4e: 9300 str r3, [sp, #0]
  4275. 8001e50: 230c movs r3, #12
  4276. 8001e52: 2208 movs r2, #8
  4277. 8001e54: 4907 ldr r1, [pc, #28] @ (8001e74 <motorYTimerCallback+0x34>)
  4278. 8001e56: 4808 ldr r0, [pc, #32] @ (8001e78 <motorYTimerCallback+0x38>)
  4279. 8001e58: f001 f99d bl 8003196 <motorAction>
  4280. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_3);
  4281. 8001e5c: 2108 movs r1, #8
  4282. 8001e5e: 4806 ldr r0, [pc, #24] @ (8001e78 <motorYTimerCallback+0x38>)
  4283. 8001e60: f00d f92a bl 800f0b8 <HAL_TIM_PWM_Stop>
  4284. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_4);
  4285. 8001e64: 210c movs r1, #12
  4286. 8001e66: 4804 ldr r0, [pc, #16] @ (8001e78 <motorYTimerCallback+0x38>)
  4287. 8001e68: f00d f926 bl 800f0b8 <HAL_TIM_PWM_Stop>
  4288. /* USER CODE END motorYTimerCallback */
  4289. }
  4290. 8001e6c: bf00 nop
  4291. 8001e6e: 3708 adds r7, #8
  4292. 8001e70: 46bd mov sp, r7
  4293. 8001e72: bd80 pop {r7, pc}
  4294. 8001e74: 240007e0 .word 0x240007e0
  4295. 8001e78: 240004f4 .word 0x240004f4
  4296. 08001e7c <MPU_Config>:
  4297. /* MPU Configuration */
  4298. void MPU_Config(void)
  4299. {
  4300. 8001e7c: b580 push {r7, lr}
  4301. 8001e7e: b084 sub sp, #16
  4302. 8001e80: af00 add r7, sp, #0
  4303. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  4304. 8001e82: 463b mov r3, r7
  4305. 8001e84: 2200 movs r2, #0
  4306. 8001e86: 601a str r2, [r3, #0]
  4307. 8001e88: 605a str r2, [r3, #4]
  4308. 8001e8a: 609a str r2, [r3, #8]
  4309. 8001e8c: 60da str r2, [r3, #12]
  4310. /* Disables the MPU */
  4311. HAL_MPU_Disable();
  4312. 8001e8e: f005 fa39 bl 8007304 <HAL_MPU_Disable>
  4313. /** Initializes and configures the Region and the memory to be protected
  4314. */
  4315. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  4316. 8001e92: 2301 movs r3, #1
  4317. 8001e94: 703b strb r3, [r7, #0]
  4318. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  4319. 8001e96: 2300 movs r3, #0
  4320. 8001e98: 707b strb r3, [r7, #1]
  4321. MPU_InitStruct.BaseAddress = 0x0;
  4322. 8001e9a: 2300 movs r3, #0
  4323. 8001e9c: 607b str r3, [r7, #4]
  4324. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  4325. 8001e9e: 231f movs r3, #31
  4326. 8001ea0: 723b strb r3, [r7, #8]
  4327. MPU_InitStruct.SubRegionDisable = 0x87;
  4328. 8001ea2: 2387 movs r3, #135 @ 0x87
  4329. 8001ea4: 727b strb r3, [r7, #9]
  4330. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4331. 8001ea6: 2300 movs r3, #0
  4332. 8001ea8: 72bb strb r3, [r7, #10]
  4333. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  4334. 8001eaa: 2300 movs r3, #0
  4335. 8001eac: 72fb strb r3, [r7, #11]
  4336. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  4337. 8001eae: 2301 movs r3, #1
  4338. 8001eb0: 733b strb r3, [r7, #12]
  4339. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4340. 8001eb2: 2301 movs r3, #1
  4341. 8001eb4: 737b strb r3, [r7, #13]
  4342. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  4343. 8001eb6: 2300 movs r3, #0
  4344. 8001eb8: 73bb strb r3, [r7, #14]
  4345. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  4346. 8001eba: 2300 movs r3, #0
  4347. 8001ebc: 73fb strb r3, [r7, #15]
  4348. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4349. 8001ebe: 463b mov r3, r7
  4350. 8001ec0: 4618 mov r0, r3
  4351. 8001ec2: f005 fa57 bl 8007374 <HAL_MPU_ConfigRegion>
  4352. /** Initializes and configures the Region and the memory to be protected
  4353. */
  4354. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  4355. 8001ec6: 2301 movs r3, #1
  4356. 8001ec8: 707b strb r3, [r7, #1]
  4357. MPU_InitStruct.BaseAddress = 0x24020000;
  4358. 8001eca: 4b13 ldr r3, [pc, #76] @ (8001f18 <MPU_Config+0x9c>)
  4359. 8001ecc: 607b str r3, [r7, #4]
  4360. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  4361. 8001ece: 2310 movs r3, #16
  4362. 8001ed0: 723b strb r3, [r7, #8]
  4363. MPU_InitStruct.SubRegionDisable = 0x0;
  4364. 8001ed2: 2300 movs r3, #0
  4365. 8001ed4: 727b strb r3, [r7, #9]
  4366. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  4367. 8001ed6: 2301 movs r3, #1
  4368. 8001ed8: 72bb strb r3, [r7, #10]
  4369. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  4370. 8001eda: 2303 movs r3, #3
  4371. 8001edc: 72fb strb r3, [r7, #11]
  4372. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  4373. 8001ede: 2300 movs r3, #0
  4374. 8001ee0: 737b strb r3, [r7, #13]
  4375. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4376. 8001ee2: 463b mov r3, r7
  4377. 8001ee4: 4618 mov r0, r3
  4378. 8001ee6: f005 fa45 bl 8007374 <HAL_MPU_ConfigRegion>
  4379. /** Initializes and configures the Region and the memory to be protected
  4380. */
  4381. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  4382. 8001eea: 2302 movs r3, #2
  4383. 8001eec: 707b strb r3, [r7, #1]
  4384. MPU_InitStruct.BaseAddress = 0x24040000;
  4385. 8001eee: 4b0b ldr r3, [pc, #44] @ (8001f1c <MPU_Config+0xa0>)
  4386. 8001ef0: 607b str r3, [r7, #4]
  4387. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  4388. 8001ef2: 2308 movs r3, #8
  4389. 8001ef4: 723b strb r3, [r7, #8]
  4390. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4391. 8001ef6: 2300 movs r3, #0
  4392. 8001ef8: 72bb strb r3, [r7, #10]
  4393. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4394. 8001efa: 2301 movs r3, #1
  4395. 8001efc: 737b strb r3, [r7, #13]
  4396. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  4397. 8001efe: 2301 movs r3, #1
  4398. 8001f00: 73fb strb r3, [r7, #15]
  4399. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4400. 8001f02: 463b mov r3, r7
  4401. 8001f04: 4618 mov r0, r3
  4402. 8001f06: f005 fa35 bl 8007374 <HAL_MPU_ConfigRegion>
  4403. /* Enables the MPU */
  4404. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4405. 8001f0a: 2004 movs r0, #4
  4406. 8001f0c: f005 fa12 bl 8007334 <HAL_MPU_Enable>
  4407. }
  4408. 8001f10: bf00 nop
  4409. 8001f12: 3710 adds r7, #16
  4410. 8001f14: 46bd mov sp, r7
  4411. 8001f16: bd80 pop {r7, pc}
  4412. 8001f18: 24020000 .word 0x24020000
  4413. 8001f1c: 24040000 .word 0x24040000
  4414. 08001f20 <HAL_TIM_PeriodElapsedCallback>:
  4415. * a global variable "uwTick" used as application time base.
  4416. * @param htim : TIM handle
  4417. * @retval None
  4418. */
  4419. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  4420. {
  4421. 8001f20: b580 push {r7, lr}
  4422. 8001f22: b082 sub sp, #8
  4423. 8001f24: af00 add r7, sp, #0
  4424. 8001f26: 6078 str r0, [r7, #4]
  4425. /* USER CODE BEGIN Callback 0 */
  4426. /* USER CODE END Callback 0 */
  4427. if (htim->Instance == TIM6) {
  4428. 8001f28: 687b ldr r3, [r7, #4]
  4429. 8001f2a: 681b ldr r3, [r3, #0]
  4430. 8001f2c: 4a10 ldr r2, [pc, #64] @ (8001f70 <HAL_TIM_PeriodElapsedCallback+0x50>)
  4431. 8001f2e: 4293 cmp r3, r2
  4432. 8001f30: d102 bne.n 8001f38 <HAL_TIM_PeriodElapsedCallback+0x18>
  4433. HAL_IncTick();
  4434. 8001f32: f003 fb05 bl 8005540 <HAL_IncTick>
  4435. // encoderYChannelB = 0;
  4436. // }
  4437. // }
  4438. /* USER CODE END Callback 1 */
  4439. }
  4440. 8001f36: e016 b.n 8001f66 <HAL_TIM_PeriodElapsedCallback+0x46>
  4441. else if (htim->Instance == TIM4)
  4442. 8001f38: 687b ldr r3, [r7, #4]
  4443. 8001f3a: 681b ldr r3, [r3, #0]
  4444. 8001f3c: 4a0d ldr r2, [pc, #52] @ (8001f74 <HAL_TIM_PeriodElapsedCallback+0x54>)
  4445. 8001f3e: 4293 cmp r3, r2
  4446. 8001f40: d106 bne.n 8001f50 <HAL_TIM_PeriodElapsedCallback+0x30>
  4447. encoderXChannelA = 0;
  4448. 8001f42: 4b0d ldr r3, [pc, #52] @ (8001f78 <HAL_TIM_PeriodElapsedCallback+0x58>)
  4449. 8001f44: 2200 movs r2, #0
  4450. 8001f46: 601a str r2, [r3, #0]
  4451. encoderXChannelB = 0;
  4452. 8001f48: 4b0c ldr r3, [pc, #48] @ (8001f7c <HAL_TIM_PeriodElapsedCallback+0x5c>)
  4453. 8001f4a: 2200 movs r2, #0
  4454. 8001f4c: 601a str r2, [r3, #0]
  4455. }
  4456. 8001f4e: e00a b.n 8001f66 <HAL_TIM_PeriodElapsedCallback+0x46>
  4457. else if (htim->Instance == TIM2)
  4458. 8001f50: 687b ldr r3, [r7, #4]
  4459. 8001f52: 681b ldr r3, [r3, #0]
  4460. 8001f54: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  4461. 8001f58: d105 bne.n 8001f66 <HAL_TIM_PeriodElapsedCallback+0x46>
  4462. encoderYChannelA = 0;
  4463. 8001f5a: 4b09 ldr r3, [pc, #36] @ (8001f80 <HAL_TIM_PeriodElapsedCallback+0x60>)
  4464. 8001f5c: 2200 movs r2, #0
  4465. 8001f5e: 601a str r2, [r3, #0]
  4466. encoderYChannelB = 0;
  4467. 8001f60: 4b08 ldr r3, [pc, #32] @ (8001f84 <HAL_TIM_PeriodElapsedCallback+0x64>)
  4468. 8001f62: 2200 movs r2, #0
  4469. 8001f64: 601a str r2, [r3, #0]
  4470. }
  4471. 8001f66: bf00 nop
  4472. 8001f68: 3708 adds r7, #8
  4473. 8001f6a: 46bd mov sp, r7
  4474. 8001f6c: bd80 pop {r7, pc}
  4475. 8001f6e: bf00 nop
  4476. 8001f70: 40001000 .word 0x40001000
  4477. 8001f74: 40000800 .word 0x40000800
  4478. 8001f78: 240007fc .word 0x240007fc
  4479. 8001f7c: 24000800 .word 0x24000800
  4480. 8001f80: 24000804 .word 0x24000804
  4481. 8001f84: 24000808 .word 0x24000808
  4482. 08001f88 <Error_Handler>:
  4483. /**
  4484. * @brief This function is executed in case of error occurrence.
  4485. * @retval None
  4486. */
  4487. void Error_Handler(void)
  4488. {
  4489. 8001f88: b580 push {r7, lr}
  4490. 8001f8a: af00 add r7, sp, #0
  4491. __ASM volatile ("cpsid i" : : : "memory");
  4492. 8001f8c: b672 cpsid i
  4493. }
  4494. 8001f8e: bf00 nop
  4495. /* USER CODE BEGIN Error_Handler_Debug */
  4496. /* User can add his own implementation to report the HAL error return state */
  4497. __disable_irq();
  4498. NVIC_SystemReset();
  4499. 8001f90: f7fe fb7a bl 8000688 <__NVIC_SystemReset>
  4500. 08001f94 <MeasTasksInit>:
  4501. extern TIM_OC_InitTypeDef motorXYTimerConfigOC;
  4502. extern osTimerId_t motorXTimerHandle;
  4503. extern osTimerId_t motorYTimerHandle;
  4504. void MeasTasksInit (void) {
  4505. 8001f94: b580 push {r7, lr}
  4506. 8001f96: b0ae sub sp, #184 @ 0xb8
  4507. 8001f98: af00 add r7, sp, #0
  4508. vRefmVMutex = osMutexNew (NULL);
  4509. 8001f9a: 2000 movs r0, #0
  4510. 8001f9c: f011 fe39 bl 8013c12 <osMutexNew>
  4511. 8001fa0: 4603 mov r3, r0
  4512. 8001fa2: 4a58 ldr r2, [pc, #352] @ (8002104 <MeasTasksInit+0x170>)
  4513. 8001fa4: 6013 str r3, [r2, #0]
  4514. resMeasurementsMutex = osMutexNew (NULL);
  4515. 8001fa6: 2000 movs r0, #0
  4516. 8001fa8: f011 fe33 bl 8013c12 <osMutexNew>
  4517. 8001fac: 4603 mov r3, r0
  4518. 8001fae: 4a56 ldr r2, [pc, #344] @ (8002108 <MeasTasksInit+0x174>)
  4519. 8001fb0: 6013 str r3, [r2, #0]
  4520. sensorsInfoMutex = osMutexNew (NULL);
  4521. 8001fb2: 2000 movs r0, #0
  4522. 8001fb4: f011 fe2d bl 8013c12 <osMutexNew>
  4523. 8001fb8: 4603 mov r3, r0
  4524. 8001fba: 4a54 ldr r2, [pc, #336] @ (800210c <MeasTasksInit+0x178>)
  4525. 8001fbc: 6013 str r3, [r2, #0]
  4526. ILxRefMutex = osMutexNew (NULL);
  4527. 8001fbe: 2000 movs r0, #0
  4528. 8001fc0: f011 fe27 bl 8013c12 <osMutexNew>
  4529. 8001fc4: 4603 mov r3, r0
  4530. 8001fc6: 4a52 ldr r2, [pc, #328] @ (8002110 <MeasTasksInit+0x17c>)
  4531. 8001fc8: 6013 str r3, [r2, #0]
  4532. adc1MeasDataQueue = osMessageQueueNew (8, sizeof (ADC1_Data), NULL);
  4533. 8001fca: 2200 movs r2, #0
  4534. 8001fcc: 2120 movs r1, #32
  4535. 8001fce: 2008 movs r0, #8
  4536. 8001fd0: f011 ff2d bl 8013e2e <osMessageQueueNew>
  4537. 8001fd4: 4603 mov r3, r0
  4538. 8001fd6: 4a4f ldr r2, [pc, #316] @ (8002114 <MeasTasksInit+0x180>)
  4539. 8001fd8: 6013 str r3, [r2, #0]
  4540. adc2MeasDataQueue = osMessageQueueNew (8, sizeof (ADC2_Data), NULL);
  4541. 8001fda: 2200 movs r2, #0
  4542. 8001fdc: 2120 movs r1, #32
  4543. 8001fde: 2008 movs r0, #8
  4544. 8001fe0: f011 ff25 bl 8013e2e <osMessageQueueNew>
  4545. 8001fe4: 4603 mov r3, r0
  4546. 8001fe6: 4a4c ldr r2, [pc, #304] @ (8002118 <MeasTasksInit+0x184>)
  4547. 8001fe8: 6013 str r3, [r2, #0]
  4548. adc3MeasDataQueue = osMessageQueueNew (8, sizeof (ADC3_Data), NULL);
  4549. 8001fea: 2200 movs r2, #0
  4550. 8001fec: 2120 movs r1, #32
  4551. 8001fee: 2008 movs r0, #8
  4552. 8001ff0: f011 ff1d bl 8013e2e <osMessageQueueNew>
  4553. 8001ff4: 4603 mov r3, r0
  4554. 8001ff6: 4a49 ldr r2, [pc, #292] @ (800211c <MeasTasksInit+0x188>)
  4555. 8001ff8: 6013 str r3, [r2, #0]
  4556. osThreadAttr_t osThreadAttradc1MeasTask = { 0 };
  4557. 8001ffa: f107 0394 add.w r3, r7, #148 @ 0x94
  4558. 8001ffe: 2224 movs r2, #36 @ 0x24
  4559. 8002000: 2100 movs r1, #0
  4560. 8002002: 4618 mov r0, r3
  4561. 8002004: f015 fecf bl 8017da6 <memset>
  4562. osThreadAttr_t osThreadAttradc2MeasTask = { 0 };
  4563. 8002008: f107 0370 add.w r3, r7, #112 @ 0x70
  4564. 800200c: 2224 movs r2, #36 @ 0x24
  4565. 800200e: 2100 movs r1, #0
  4566. 8002010: 4618 mov r0, r3
  4567. 8002012: f015 fec8 bl 8017da6 <memset>
  4568. osThreadAttr_t osThreadAttradc3MeasTask = { 0 };
  4569. 8002016: f107 034c add.w r3, r7, #76 @ 0x4c
  4570. 800201a: 2224 movs r2, #36 @ 0x24
  4571. 800201c: 2100 movs r1, #0
  4572. 800201e: 4618 mov r0, r3
  4573. 8002020: f015 fec1 bl 8017da6 <memset>
  4574. osThreadAttradc1MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4575. 8002024: f44f 6380 mov.w r3, #1024 @ 0x400
  4576. 8002028: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  4577. osThreadAttradc1MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4578. 800202c: 2330 movs r3, #48 @ 0x30
  4579. 800202e: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  4580. osThreadAttradc2MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4581. 8002032: f44f 6380 mov.w r3, #1024 @ 0x400
  4582. 8002036: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  4583. osThreadAttradc2MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4584. 800203a: 2330 movs r3, #48 @ 0x30
  4585. 800203c: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  4586. osThreadAttradc3MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4587. 8002040: f44f 6380 mov.w r3, #1024 @ 0x400
  4588. 8002044: 663b str r3, [r7, #96] @ 0x60
  4589. osThreadAttradc3MeasTask.priority = (osPriority_t)osPriorityNormal;
  4590. 8002046: 2318 movs r3, #24
  4591. 8002048: 667b str r3, [r7, #100] @ 0x64
  4592. adc1MeasTaskHandle = osThreadNew (ADC1MeasTask, NULL, &osThreadAttradc1MeasTask);
  4593. 800204a: f107 0394 add.w r3, r7, #148 @ 0x94
  4594. 800204e: 461a mov r2, r3
  4595. 8002050: 2100 movs r1, #0
  4596. 8002052: 4833 ldr r0, [pc, #204] @ (8002120 <MeasTasksInit+0x18c>)
  4597. 8002054: f011 fc38 bl 80138c8 <osThreadNew>
  4598. 8002058: 4603 mov r3, r0
  4599. 800205a: 4a32 ldr r2, [pc, #200] @ (8002124 <MeasTasksInit+0x190>)
  4600. 800205c: 6013 str r3, [r2, #0]
  4601. adc2MeasTaskHandle = osThreadNew (ADC2MeasTask, NULL, &osThreadAttradc2MeasTask);
  4602. 800205e: f107 0370 add.w r3, r7, #112 @ 0x70
  4603. 8002062: 461a mov r2, r3
  4604. 8002064: 2100 movs r1, #0
  4605. 8002066: 4830 ldr r0, [pc, #192] @ (8002128 <MeasTasksInit+0x194>)
  4606. 8002068: f011 fc2e bl 80138c8 <osThreadNew>
  4607. 800206c: 4603 mov r3, r0
  4608. 800206e: 4a2f ldr r2, [pc, #188] @ (800212c <MeasTasksInit+0x198>)
  4609. 8002070: 6013 str r3, [r2, #0]
  4610. adc3MeasTaskHandle = osThreadNew (ADC3MeasTask, NULL, &osThreadAttradc3MeasTask);
  4611. 8002072: f107 034c add.w r3, r7, #76 @ 0x4c
  4612. 8002076: 461a mov r2, r3
  4613. 8002078: 2100 movs r1, #0
  4614. 800207a: 482d ldr r0, [pc, #180] @ (8002130 <MeasTasksInit+0x19c>)
  4615. 800207c: f011 fc24 bl 80138c8 <osThreadNew>
  4616. 8002080: 4603 mov r3, r0
  4617. 8002082: 4a2c ldr r2, [pc, #176] @ (8002134 <MeasTasksInit+0x1a0>)
  4618. 8002084: 6013 str r3, [r2, #0]
  4619. limiterSwitchDataQueue = osMessageQueueNew (8, sizeof (LimiterSwitchData), NULL);
  4620. 8002086: 2200 movs r2, #0
  4621. 8002088: 2104 movs r1, #4
  4622. 800208a: 2008 movs r0, #8
  4623. 800208c: f011 fecf bl 8013e2e <osMessageQueueNew>
  4624. 8002090: 4603 mov r3, r0
  4625. 8002092: 4a29 ldr r2, [pc, #164] @ (8002138 <MeasTasksInit+0x1a4>)
  4626. 8002094: 6013 str r3, [r2, #0]
  4627. osThreadAttr_t osThreadAttradc1LimiterSwitchTask = { 0 };
  4628. 8002096: f107 0328 add.w r3, r7, #40 @ 0x28
  4629. 800209a: 2224 movs r2, #36 @ 0x24
  4630. 800209c: 2100 movs r1, #0
  4631. 800209e: 4618 mov r0, r3
  4632. 80020a0: f015 fe81 bl 8017da6 <memset>
  4633. osThreadAttradc1LimiterSwitchTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4634. 80020a4: f44f 6380 mov.w r3, #1024 @ 0x400
  4635. 80020a8: 63fb str r3, [r7, #60] @ 0x3c
  4636. osThreadAttradc1LimiterSwitchTask.priority = (osPriority_t)osPriorityNormal;
  4637. 80020aa: 2318 movs r3, #24
  4638. 80020ac: 643b str r3, [r7, #64] @ 0x40
  4639. limiterSwitchTaskHandle = osThreadNew (LimiterSwitchTask, NULL, &osThreadAttradc1LimiterSwitchTask);
  4640. 80020ae: f107 0328 add.w r3, r7, #40 @ 0x28
  4641. 80020b2: 461a mov r2, r3
  4642. 80020b4: 2100 movs r1, #0
  4643. 80020b6: 4821 ldr r0, [pc, #132] @ (800213c <MeasTasksInit+0x1a8>)
  4644. 80020b8: f011 fc06 bl 80138c8 <osThreadNew>
  4645. 80020bc: 4603 mov r3, r0
  4646. 80020be: 4a20 ldr r2, [pc, #128] @ (8002140 <MeasTasksInit+0x1ac>)
  4647. 80020c0: 6013 str r3, [r2, #0]
  4648. encoderDataQueue = osMessageQueueNew (16, sizeof (EncoderData), NULL);
  4649. 80020c2: 2200 movs r2, #0
  4650. 80020c4: 2102 movs r1, #2
  4651. 80020c6: 2010 movs r0, #16
  4652. 80020c8: f011 feb1 bl 8013e2e <osMessageQueueNew>
  4653. 80020cc: 4603 mov r3, r0
  4654. 80020ce: 4a1d ldr r2, [pc, #116] @ (8002144 <MeasTasksInit+0x1b0>)
  4655. 80020d0: 6013 str r3, [r2, #0]
  4656. osThreadAttr_t osThreadAttrEncoderTask = { 0 };
  4657. 80020d2: 1d3b adds r3, r7, #4
  4658. 80020d4: 2224 movs r2, #36 @ 0x24
  4659. 80020d6: 2100 movs r1, #0
  4660. 80020d8: 4618 mov r0, r3
  4661. 80020da: f015 fe64 bl 8017da6 <memset>
  4662. osThreadAttrEncoderTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4663. 80020de: f44f 6380 mov.w r3, #1024 @ 0x400
  4664. 80020e2: 61bb str r3, [r7, #24]
  4665. osThreadAttrEncoderTask.priority = (osPriority_t)osPriorityNormal;
  4666. 80020e4: 2318 movs r3, #24
  4667. 80020e6: 61fb str r3, [r7, #28]
  4668. encoderTaskHandle = osThreadNew (EncoderTask, encoderDataQueue, &osThreadAttrEncoderTask);
  4669. 80020e8: 4b16 ldr r3, [pc, #88] @ (8002144 <MeasTasksInit+0x1b0>)
  4670. 80020ea: 681b ldr r3, [r3, #0]
  4671. 80020ec: 1d3a adds r2, r7, #4
  4672. 80020ee: 4619 mov r1, r3
  4673. 80020f0: 4815 ldr r0, [pc, #84] @ (8002148 <MeasTasksInit+0x1b4>)
  4674. 80020f2: f011 fbe9 bl 80138c8 <osThreadNew>
  4675. 80020f6: 4603 mov r3, r0
  4676. 80020f8: 4a14 ldr r2, [pc, #80] @ (800214c <MeasTasksInit+0x1b8>)
  4677. 80020fa: 6013 str r3, [r2, #0]
  4678. }
  4679. 80020fc: bf00 nop
  4680. 80020fe: 37b8 adds r7, #184 @ 0xb8
  4681. 8002100: 46bd mov sp, r7
  4682. 8002102: bd80 pop {r7, pc}
  4683. 8002104: 24000834 .word 0x24000834
  4684. 8002108: 24000838 .word 0x24000838
  4685. 800210c: 2400083c .word 0x2400083c
  4686. 8002110: 24000840 .word 0x24000840
  4687. 8002114: 24000820 .word 0x24000820
  4688. 8002118: 24000824 .word 0x24000824
  4689. 800211c: 24000828 .word 0x24000828
  4690. 8002120: 08002151 .word 0x08002151
  4691. 8002124: 2400080c .word 0x2400080c
  4692. 8002128: 080024d9 .word 0x080024d9
  4693. 800212c: 24000810 .word 0x24000810
  4694. 8002130: 080027e1 .word 0x080027e1
  4695. 8002134: 24000814 .word 0x24000814
  4696. 8002138: 2400082c .word 0x2400082c
  4697. 800213c: 08002b5d .word 0x08002b5d
  4698. 8002140: 24000818 .word 0x24000818
  4699. 8002144: 24000830 .word 0x24000830
  4700. 8002148: 08002d4d .word 0x08002d4d
  4701. 800214c: 2400081c .word 0x2400081c
  4702. 08002150 <ADC1MeasTask>:
  4703. void ADC1MeasTask (void* arg) {
  4704. 8002150: b580 push {r7, lr}
  4705. 8002152: b09a sub sp, #104 @ 0x68
  4706. 8002154: af00 add r7, sp, #0
  4707. 8002156: 6078 str r0, [r7, #4]
  4708. float circBuffer[VOLTAGES_COUNT][CIRC_BUFF_LEN] = { 0 };
  4709. 8002158: f107 032c add.w r3, r7, #44 @ 0x2c
  4710. 800215c: 2228 movs r2, #40 @ 0x28
  4711. 800215e: 2100 movs r1, #0
  4712. 8002160: 4618 mov r0, r3
  4713. 8002162: f015 fe20 bl 8017da6 <memset>
  4714. float rms[VOLTAGES_COUNT] = { 0 };
  4715. 8002166: f04f 0300 mov.w r3, #0
  4716. 800216a: 62bb str r3, [r7, #40] @ 0x28
  4717. ;
  4718. ADC1_Data adcData = { 0 };
  4719. 800216c: f107 0308 add.w r3, r7, #8
  4720. 8002170: 2220 movs r2, #32
  4721. 8002172: 2100 movs r1, #0
  4722. 8002174: 4618 mov r0, r3
  4723. 8002176: f015 fe16 bl 8017da6 <memset>
  4724. uint32_t circBuffPos = 0;
  4725. 800217a: 2300 movs r3, #0
  4726. 800217c: 667b str r3, [r7, #100] @ 0x64
  4727. float gainCorrection = 1.0;
  4728. 800217e: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  4729. 8002182: 663b str r3, [r7, #96] @ 0x60
  4730. while (pdTRUE) {
  4731. osMessageQueueGet (adc1MeasDataQueue, &adcData, 0, osWaitForever);
  4732. 8002184: 4bc8 ldr r3, [pc, #800] @ (80024a8 <ADC1MeasTask+0x358>)
  4733. 8002186: 6818 ldr r0, [r3, #0]
  4734. 8002188: f107 0108 add.w r1, r7, #8
  4735. 800218c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  4736. 8002190: 2200 movs r2, #0
  4737. 8002192: f011 ff1f bl 8013fd4 <osMessageQueueGet>
  4738. #ifdef GAIN_AUTO_CORRECTION
  4739. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  4740. 8002196: 4bc5 ldr r3, [pc, #788] @ (80024ac <ADC1MeasTask+0x35c>)
  4741. 8002198: 681b ldr r3, [r3, #0]
  4742. 800219a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4743. 800219e: 4618 mov r0, r3
  4744. 80021a0: f011 fdbd bl 8013d1e <osMutexAcquire>
  4745. 80021a4: 4603 mov r3, r0
  4746. 80021a6: 2b00 cmp r3, #0
  4747. 80021a8: d10c bne.n 80021c4 <ADC1MeasTask+0x74>
  4748. gainCorrection = (float)vRefmV;
  4749. 80021aa: 4bc1 ldr r3, [pc, #772] @ (80024b0 <ADC1MeasTask+0x360>)
  4750. 80021ac: 681b ldr r3, [r3, #0]
  4751. 80021ae: ee07 3a90 vmov s15, r3
  4752. 80021b2: eef8 7a67 vcvt.f32.u32 s15, s15
  4753. 80021b6: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4754. osMutexRelease (vRefmVMutex);
  4755. 80021ba: 4bbc ldr r3, [pc, #752] @ (80024ac <ADC1MeasTask+0x35c>)
  4756. 80021bc: 681b ldr r3, [r3, #0]
  4757. 80021be: 4618 mov r0, r3
  4758. 80021c0: f011 fdf8 bl 8013db4 <osMutexRelease>
  4759. }
  4760. gainCorrection = gainCorrection / EXT_VREF_mV;
  4761. 80021c4: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  4762. 80021c8: eddf 6aba vldr s13, [pc, #744] @ 80024b4 <ADC1MeasTask+0x364>
  4763. 80021cc: eec7 7a26 vdiv.f32 s15, s14, s13
  4764. 80021d0: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4765. #endif
  4766. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4767. 80021d4: 2300 movs r3, #0
  4768. 80021d6: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4769. 80021da: e0e7 b.n 80023ac <ADC1MeasTask+0x25c>
  4770. float val = adcData.adcDataBuffer[i] * deltaADC * U_CHANNEL_CONST * gainCorrection * U_MeasCorrectionData[i].gain + U_MeasCorrectionData[i].offset;
  4771. 80021dc: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4772. 80021e0: 005b lsls r3, r3, #1
  4773. 80021e2: 3368 adds r3, #104 @ 0x68
  4774. 80021e4: 443b add r3, r7
  4775. 80021e6: f833 3c60 ldrh.w r3, [r3, #-96]
  4776. 80021ea: ee07 3a90 vmov s15, r3
  4777. 80021ee: eeb8 7be7 vcvt.f64.s32 d7, s15
  4778. 80021f2: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4779. 80021f6: ee27 6b06 vmul.f64 d6, d7, d6
  4780. 80021fa: ed9f 5ba5 vldr d5, [pc, #660] @ 8002490 <ADC1MeasTask+0x340>
  4781. 80021fe: ee86 7b05 vdiv.f64 d7, d6, d5
  4782. 8002202: ed9f 6ba5 vldr d6, [pc, #660] @ 8002498 <ADC1MeasTask+0x348>
  4783. 8002206: ee27 6b06 vmul.f64 d6, d7, d6
  4784. 800220a: edd7 7a18 vldr s15, [r7, #96] @ 0x60
  4785. 800220e: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4786. 8002212: ee26 6b07 vmul.f64 d6, d6, d7
  4787. 8002216: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4788. 800221a: 4aa7 ldr r2, [pc, #668] @ (80024b8 <ADC1MeasTask+0x368>)
  4789. 800221c: 00db lsls r3, r3, #3
  4790. 800221e: 4413 add r3, r2
  4791. 8002220: edd3 7a00 vldr s15, [r3]
  4792. 8002224: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4793. 8002228: ee26 6b07 vmul.f64 d6, d6, d7
  4794. 800222c: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4795. 8002230: 4aa1 ldr r2, [pc, #644] @ (80024b8 <ADC1MeasTask+0x368>)
  4796. 8002232: 00db lsls r3, r3, #3
  4797. 8002234: 4413 add r3, r2
  4798. 8002236: 3304 adds r3, #4
  4799. 8002238: edd3 7a00 vldr s15, [r3]
  4800. 800223c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4801. 8002240: ee36 7b07 vadd.f64 d7, d6, d7
  4802. 8002244: eef7 7bc7 vcvt.f32.f64 s15, d7
  4803. 8002248: edc7 7a15 vstr s15, [r7, #84] @ 0x54
  4804. circBuffer[i][circBuffPos] = val;
  4805. 800224c: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4806. 8002250: 4613 mov r3, r2
  4807. 8002252: 009b lsls r3, r3, #2
  4808. 8002254: 4413 add r3, r2
  4809. 8002256: 005b lsls r3, r3, #1
  4810. 8002258: 6e7a ldr r2, [r7, #100] @ 0x64
  4811. 800225a: 4413 add r3, r2
  4812. 800225c: 009b lsls r3, r3, #2
  4813. 800225e: 3368 adds r3, #104 @ 0x68
  4814. 8002260: 443b add r3, r7
  4815. 8002262: 3b3c subs r3, #60 @ 0x3c
  4816. 8002264: 6d7a ldr r2, [r7, #84] @ 0x54
  4817. 8002266: 601a str r2, [r3, #0]
  4818. rms[i] = 0.0;
  4819. 8002268: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4820. 800226c: 009b lsls r3, r3, #2
  4821. 800226e: 3368 adds r3, #104 @ 0x68
  4822. 8002270: 443b add r3, r7
  4823. 8002272: 3b40 subs r3, #64 @ 0x40
  4824. 8002274: f04f 0200 mov.w r2, #0
  4825. 8002278: 601a str r2, [r3, #0]
  4826. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4827. 800227a: 2300 movs r3, #0
  4828. 800227c: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4829. 8002280: e025 b.n 80022ce <ADC1MeasTask+0x17e>
  4830. rms[i] += circBuffer[i][c];
  4831. 8002282: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4832. 8002286: 009b lsls r3, r3, #2
  4833. 8002288: 3368 adds r3, #104 @ 0x68
  4834. 800228a: 443b add r3, r7
  4835. 800228c: 3b40 subs r3, #64 @ 0x40
  4836. 800228e: ed93 7a00 vldr s14, [r3]
  4837. 8002292: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4838. 8002296: f897 105e ldrb.w r1, [r7, #94] @ 0x5e
  4839. 800229a: 4613 mov r3, r2
  4840. 800229c: 009b lsls r3, r3, #2
  4841. 800229e: 4413 add r3, r2
  4842. 80022a0: 005b lsls r3, r3, #1
  4843. 80022a2: 440b add r3, r1
  4844. 80022a4: 009b lsls r3, r3, #2
  4845. 80022a6: 3368 adds r3, #104 @ 0x68
  4846. 80022a8: 443b add r3, r7
  4847. 80022aa: 3b3c subs r3, #60 @ 0x3c
  4848. 80022ac: edd3 7a00 vldr s15, [r3]
  4849. 80022b0: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4850. 80022b4: ee77 7a27 vadd.f32 s15, s14, s15
  4851. 80022b8: 009b lsls r3, r3, #2
  4852. 80022ba: 3368 adds r3, #104 @ 0x68
  4853. 80022bc: 443b add r3, r7
  4854. 80022be: 3b40 subs r3, #64 @ 0x40
  4855. 80022c0: edc3 7a00 vstr s15, [r3]
  4856. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4857. 80022c4: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4858. 80022c8: 3301 adds r3, #1
  4859. 80022ca: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4860. 80022ce: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4861. 80022d2: 2b09 cmp r3, #9
  4862. 80022d4: d9d5 bls.n 8002282 <ADC1MeasTask+0x132>
  4863. }
  4864. rms[i] = rms[i] / CIRC_BUFF_LEN;
  4865. 80022d6: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4866. 80022da: 009b lsls r3, r3, #2
  4867. 80022dc: 3368 adds r3, #104 @ 0x68
  4868. 80022de: 443b add r3, r7
  4869. 80022e0: 3b40 subs r3, #64 @ 0x40
  4870. 80022e2: ed93 7a00 vldr s14, [r3]
  4871. 80022e6: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4872. 80022ea: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4873. 80022ee: eec7 7a26 vdiv.f32 s15, s14, s13
  4874. 80022f2: 009b lsls r3, r3, #2
  4875. 80022f4: 3368 adds r3, #104 @ 0x68
  4876. 80022f6: 443b add r3, r7
  4877. 80022f8: 3b40 subs r3, #64 @ 0x40
  4878. 80022fa: edc3 7a00 vstr s15, [r3]
  4879. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  4880. 80022fe: 4b6f ldr r3, [pc, #444] @ (80024bc <ADC1MeasTask+0x36c>)
  4881. 8002300: 681b ldr r3, [r3, #0]
  4882. 8002302: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4883. 8002306: 4618 mov r0, r3
  4884. 8002308: f011 fd09 bl 8013d1e <osMutexAcquire>
  4885. 800230c: 4603 mov r3, r0
  4886. 800230e: 2b00 cmp r3, #0
  4887. 8002310: d147 bne.n 80023a2 <ADC1MeasTask+0x252>
  4888. if (fabs (resMeasurements.voltagePeak[i]) < fabs (val)) {
  4889. 8002312: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4890. 8002316: 4a6a ldr r2, [pc, #424] @ (80024c0 <ADC1MeasTask+0x370>)
  4891. 8002318: 3302 adds r3, #2
  4892. 800231a: 009b lsls r3, r3, #2
  4893. 800231c: 4413 add r3, r2
  4894. 800231e: 3304 adds r3, #4
  4895. 8002320: edd3 7a00 vldr s15, [r3]
  4896. 8002324: eeb0 7ae7 vabs.f32 s14, s15
  4897. 8002328: edd7 7a15 vldr s15, [r7, #84] @ 0x54
  4898. 800232c: eef0 7ae7 vabs.f32 s15, s15
  4899. 8002330: eeb4 7ae7 vcmpe.f32 s14, s15
  4900. 8002334: eef1 fa10 vmrs APSR_nzcv, fpscr
  4901. 8002338: d508 bpl.n 800234c <ADC1MeasTask+0x1fc>
  4902. resMeasurements.voltagePeak[i] = val;
  4903. 800233a: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4904. 800233e: 4a60 ldr r2, [pc, #384] @ (80024c0 <ADC1MeasTask+0x370>)
  4905. 8002340: 3302 adds r3, #2
  4906. 8002342: 009b lsls r3, r3, #2
  4907. 8002344: 4413 add r3, r2
  4908. 8002346: 3304 adds r3, #4
  4909. 8002348: 6d7a ldr r2, [r7, #84] @ 0x54
  4910. 800234a: 601a str r2, [r3, #0]
  4911. }
  4912. resMeasurements.voltageRMS[i] = rms[i];
  4913. 800234c: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4914. 8002350: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4915. 8002354: 0092 lsls r2, r2, #2
  4916. 8002356: 3268 adds r2, #104 @ 0x68
  4917. 8002358: 443a add r2, r7
  4918. 800235a: 3a40 subs r2, #64 @ 0x40
  4919. 800235c: 6812 ldr r2, [r2, #0]
  4920. 800235e: 4958 ldr r1, [pc, #352] @ (80024c0 <ADC1MeasTask+0x370>)
  4921. 8002360: 009b lsls r3, r3, #2
  4922. 8002362: 440b add r3, r1
  4923. 8002364: 601a str r2, [r3, #0]
  4924. resMeasurements.power[i] = resMeasurements.voltageRMS[i] * resMeasurements.currentRMS[i];
  4925. 8002366: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4926. 800236a: 4a55 ldr r2, [pc, #340] @ (80024c0 <ADC1MeasTask+0x370>)
  4927. 800236c: 009b lsls r3, r3, #2
  4928. 800236e: 4413 add r3, r2
  4929. 8002370: ed93 7a00 vldr s14, [r3]
  4930. 8002374: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4931. 8002378: 4a51 ldr r2, [pc, #324] @ (80024c0 <ADC1MeasTask+0x370>)
  4932. 800237a: 3306 adds r3, #6
  4933. 800237c: 009b lsls r3, r3, #2
  4934. 800237e: 4413 add r3, r2
  4935. 8002380: edd3 7a00 vldr s15, [r3]
  4936. 8002384: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4937. 8002388: ee67 7a27 vmul.f32 s15, s14, s15
  4938. 800238c: 4a4c ldr r2, [pc, #304] @ (80024c0 <ADC1MeasTask+0x370>)
  4939. 800238e: 330c adds r3, #12
  4940. 8002390: 009b lsls r3, r3, #2
  4941. 8002392: 4413 add r3, r2
  4942. 8002394: edc3 7a00 vstr s15, [r3]
  4943. osMutexRelease (resMeasurementsMutex);
  4944. 8002398: 4b48 ldr r3, [pc, #288] @ (80024bc <ADC1MeasTask+0x36c>)
  4945. 800239a: 681b ldr r3, [r3, #0]
  4946. 800239c: 4618 mov r0, r3
  4947. 800239e: f011 fd09 bl 8013db4 <osMutexRelease>
  4948. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4949. 80023a2: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4950. 80023a6: 3301 adds r3, #1
  4951. 80023a8: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4952. 80023ac: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4953. 80023b0: 2b00 cmp r3, #0
  4954. 80023b2: f43f af13 beq.w 80021dc <ADC1MeasTask+0x8c>
  4955. }
  4956. }
  4957. ++circBuffPos;
  4958. 80023b6: 6e7b ldr r3, [r7, #100] @ 0x64
  4959. 80023b8: 3301 adds r3, #1
  4960. 80023ba: 667b str r3, [r7, #100] @ 0x64
  4961. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  4962. 80023bc: 6e7a ldr r2, [r7, #100] @ 0x64
  4963. 80023be: 4b41 ldr r3, [pc, #260] @ (80024c4 <ADC1MeasTask+0x374>)
  4964. 80023c0: fba3 1302 umull r1, r3, r3, r2
  4965. 80023c4: 08d9 lsrs r1, r3, #3
  4966. 80023c6: 460b mov r3, r1
  4967. 80023c8: 009b lsls r3, r3, #2
  4968. 80023ca: 440b add r3, r1
  4969. 80023cc: 005b lsls r3, r3, #1
  4970. 80023ce: 1ad3 subs r3, r2, r3
  4971. 80023d0: 667b str r3, [r7, #100] @ 0x64
  4972. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  4973. 80023d2: 4b3d ldr r3, [pc, #244] @ (80024c8 <ADC1MeasTask+0x378>)
  4974. 80023d4: 681b ldr r3, [r3, #0]
  4975. 80023d6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4976. 80023da: 4618 mov r0, r3
  4977. 80023dc: f011 fc9f bl 8013d1e <osMutexAcquire>
  4978. 80023e0: 4603 mov r3, r0
  4979. 80023e2: 2b00 cmp r3, #0
  4980. 80023e4: d124 bne.n 8002430 <ADC1MeasTask+0x2e0>
  4981. uint8_t refIdx = 0;
  4982. 80023e6: 2300 movs r3, #0
  4983. 80023e8: f887 305d strb.w r3, [r7, #93] @ 0x5d
  4984. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  4985. 80023ec: 2303 movs r3, #3
  4986. 80023ee: f887 305c strb.w r3, [r7, #92] @ 0x5c
  4987. 80023f2: e014 b.n 800241e <ADC1MeasTask+0x2ce>
  4988. ILxRef[refIdx++] = adcData.adcDataBuffer[i];
  4989. 80023f4: f897 205c ldrb.w r2, [r7, #92] @ 0x5c
  4990. 80023f8: f897 305d ldrb.w r3, [r7, #93] @ 0x5d
  4991. 80023fc: 1c59 adds r1, r3, #1
  4992. 80023fe: f887 105d strb.w r1, [r7, #93] @ 0x5d
  4993. 8002402: 4619 mov r1, r3
  4994. 8002404: 0053 lsls r3, r2, #1
  4995. 8002406: 3368 adds r3, #104 @ 0x68
  4996. 8002408: 443b add r3, r7
  4997. 800240a: f833 2c60 ldrh.w r2, [r3, #-96]
  4998. 800240e: 4b2f ldr r3, [pc, #188] @ (80024cc <ADC1MeasTask+0x37c>)
  4999. 8002410: f823 2011 strh.w r2, [r3, r1, lsl #1]
  5000. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  5001. 8002414: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  5002. 8002418: 3301 adds r3, #1
  5003. 800241a: f887 305c strb.w r3, [r7, #92] @ 0x5c
  5004. 800241e: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  5005. 8002422: 2b05 cmp r3, #5
  5006. 8002424: d9e6 bls.n 80023f4 <ADC1MeasTask+0x2a4>
  5007. }
  5008. osMutexRelease (ILxRefMutex);
  5009. 8002426: 4b28 ldr r3, [pc, #160] @ (80024c8 <ADC1MeasTask+0x378>)
  5010. 8002428: 681b ldr r3, [r3, #0]
  5011. 800242a: 4618 mov r0, r3
  5012. 800242c: f011 fcc2 bl 8013db4 <osMutexRelease>
  5013. }
  5014. float fanFBVoltage = adcData.adcDataBuffer[FanFB] * deltaADC * -4.35 + 12;
  5015. 8002430: 8abb ldrh r3, [r7, #20]
  5016. 8002432: ee07 3a90 vmov s15, r3
  5017. 8002436: eeb8 7be7 vcvt.f64.s32 d7, s15
  5018. 800243a: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5019. 800243e: ee27 6b06 vmul.f64 d6, d7, d6
  5020. 8002442: ed9f 5b13 vldr d5, [pc, #76] @ 8002490 <ADC1MeasTask+0x340>
  5021. 8002446: ee86 7b05 vdiv.f64 d7, d6, d5
  5022. 800244a: ed9f 6b15 vldr d6, [pc, #84] @ 80024a0 <ADC1MeasTask+0x350>
  5023. 800244e: ee27 7b06 vmul.f64 d7, d7, d6
  5024. 8002452: eeb2 6b08 vmov.f64 d6, #40 @ 0x41400000 12.0
  5025. 8002456: ee37 7b06 vadd.f64 d7, d7, d6
  5026. 800245a: eef7 7bc7 vcvt.f32.f64 s15, d7
  5027. 800245e: edc7 7a16 vstr s15, [r7, #88] @ 0x58
  5028. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5029. 8002462: 4b1b ldr r3, [pc, #108] @ (80024d0 <ADC1MeasTask+0x380>)
  5030. 8002464: 681b ldr r3, [r3, #0]
  5031. 8002466: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5032. 800246a: 4618 mov r0, r3
  5033. 800246c: f011 fc57 bl 8013d1e <osMutexAcquire>
  5034. 8002470: 4603 mov r3, r0
  5035. 8002472: 2b00 cmp r3, #0
  5036. 8002474: f47f ae86 bne.w 8002184 <ADC1MeasTask+0x34>
  5037. sensorsInfo.fanVoltage = fanFBVoltage;
  5038. 8002478: 4a16 ldr r2, [pc, #88] @ (80024d4 <ADC1MeasTask+0x384>)
  5039. 800247a: 6dbb ldr r3, [r7, #88] @ 0x58
  5040. 800247c: 6093 str r3, [r2, #8]
  5041. osMutexRelease (sensorsInfoMutex);
  5042. 800247e: 4b14 ldr r3, [pc, #80] @ (80024d0 <ADC1MeasTask+0x380>)
  5043. 8002480: 681b ldr r3, [r3, #0]
  5044. 8002482: 4618 mov r0, r3
  5045. 8002484: f011 fc96 bl 8013db4 <osMutexRelease>
  5046. while (pdTRUE) {
  5047. 8002488: e67c b.n 8002184 <ADC1MeasTask+0x34>
  5048. 800248a: bf00 nop
  5049. 800248c: f3af 8000 nop.w
  5050. 8002490: 00000000 .word 0x00000000
  5051. 8002494: 40efffe0 .word 0x40efffe0
  5052. 8002498: f5c28f5c .word 0xf5c28f5c
  5053. 800249c: 401e5c28 .word 0x401e5c28
  5054. 80024a0: 66666666 .word 0x66666666
  5055. 80024a4: c0116666 .word 0xc0116666
  5056. 80024a8: 24000820 .word 0x24000820
  5057. 80024ac: 24000834 .word 0x24000834
  5058. 80024b0: 24000030 .word 0x24000030
  5059. 80024b4: 453b8000 .word 0x453b8000
  5060. 80024b8: 24000000 .word 0x24000000
  5061. 80024bc: 24000838 .word 0x24000838
  5062. 80024c0: 24000844 .word 0x24000844
  5063. 80024c4: cccccccd .word 0xcccccccd
  5064. 80024c8: 24000840 .word 0x24000840
  5065. 80024cc: 240008b0 .word 0x240008b0
  5066. 80024d0: 2400083c .word 0x2400083c
  5067. 80024d4: 24000880 .word 0x24000880
  5068. 080024d8 <ADC2MeasTask>:
  5069. }
  5070. }
  5071. }
  5072. void ADC2MeasTask (void* arg) {
  5073. 80024d8: b580 push {r7, lr}
  5074. 80024da: b09c sub sp, #112 @ 0x70
  5075. 80024dc: af00 add r7, sp, #0
  5076. 80024de: 6078 str r0, [r7, #4]
  5077. float circBuffer[CURRENTS_COUNT][CIRC_BUFF_LEN] = { 0 };
  5078. 80024e0: f107 0334 add.w r3, r7, #52 @ 0x34
  5079. 80024e4: 2228 movs r2, #40 @ 0x28
  5080. 80024e6: 2100 movs r1, #0
  5081. 80024e8: 4618 mov r0, r3
  5082. 80024ea: f015 fc5c bl 8017da6 <memset>
  5083. float rms[CURRENTS_COUNT] = { 0 };
  5084. 80024ee: f04f 0300 mov.w r3, #0
  5085. 80024f2: 633b str r3, [r7, #48] @ 0x30
  5086. ADC2_Data adcData = { 0 };
  5087. 80024f4: f107 0310 add.w r3, r7, #16
  5088. 80024f8: 2220 movs r2, #32
  5089. 80024fa: 2100 movs r1, #0
  5090. 80024fc: 4618 mov r0, r3
  5091. 80024fe: f015 fc52 bl 8017da6 <memset>
  5092. uint32_t circBuffPos = 0;
  5093. 8002502: 2300 movs r3, #0
  5094. 8002504: 66fb str r3, [r7, #108] @ 0x6c
  5095. float gainCorrection = 1.0;
  5096. 8002506: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  5097. 800250a: 66bb str r3, [r7, #104] @ 0x68
  5098. while (pdTRUE) {
  5099. osMessageQueueGet (adc2MeasDataQueue, &adcData, 0, osWaitForever);
  5100. 800250c: 4baa ldr r3, [pc, #680] @ (80027b8 <ADC2MeasTask+0x2e0>)
  5101. 800250e: 6818 ldr r0, [r3, #0]
  5102. 8002510: f107 0110 add.w r1, r7, #16
  5103. 8002514: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5104. 8002518: 2200 movs r2, #0
  5105. 800251a: f011 fd5b bl 8013fd4 <osMessageQueueGet>
  5106. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  5107. 800251e: 4ba7 ldr r3, [pc, #668] @ (80027bc <ADC2MeasTask+0x2e4>)
  5108. 8002520: 681b ldr r3, [r3, #0]
  5109. 8002522: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5110. 8002526: 4618 mov r0, r3
  5111. 8002528: f011 fbf9 bl 8013d1e <osMutexAcquire>
  5112. 800252c: 4603 mov r3, r0
  5113. 800252e: 2b00 cmp r3, #0
  5114. 8002530: d10c bne.n 800254c <ADC2MeasTask+0x74>
  5115. gainCorrection = (float)vRefmV;
  5116. 8002532: 4ba3 ldr r3, [pc, #652] @ (80027c0 <ADC2MeasTask+0x2e8>)
  5117. 8002534: 681b ldr r3, [r3, #0]
  5118. 8002536: ee07 3a90 vmov s15, r3
  5119. 800253a: eef8 7a67 vcvt.f32.u32 s15, s15
  5120. 800253e: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  5121. osMutexRelease (vRefmVMutex);
  5122. 8002542: 4b9e ldr r3, [pc, #632] @ (80027bc <ADC2MeasTask+0x2e4>)
  5123. 8002544: 681b ldr r3, [r3, #0]
  5124. 8002546: 4618 mov r0, r3
  5125. 8002548: f011 fc34 bl 8013db4 <osMutexRelease>
  5126. }
  5127. gainCorrection = gainCorrection / EXT_VREF_mV;
  5128. 800254c: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  5129. 8002550: eddf 6a9c vldr s13, [pc, #624] @ 80027c4 <ADC2MeasTask+0x2ec>
  5130. 8002554: eec7 7a26 vdiv.f32 s15, s14, s13
  5131. 8002558: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  5132. float ref[CURRENTS_COUNT] = { 0 };
  5133. 800255c: f04f 0300 mov.w r3, #0
  5134. 8002560: 60fb str r3, [r7, #12]
  5135. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  5136. 8002562: 4b99 ldr r3, [pc, #612] @ (80027c8 <ADC2MeasTask+0x2f0>)
  5137. 8002564: 681b ldr r3, [r3, #0]
  5138. 8002566: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5139. 800256a: 4618 mov r0, r3
  5140. 800256c: f011 fbd7 bl 8013d1e <osMutexAcquire>
  5141. 8002570: 4603 mov r3, r0
  5142. 8002572: 2b00 cmp r3, #0
  5143. 8002574: d122 bne.n 80025bc <ADC2MeasTask+0xe4>
  5144. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5145. 8002576: 2300 movs r3, #0
  5146. 8002578: f887 3067 strb.w r3, [r7, #103] @ 0x67
  5147. 800257c: e015 b.n 80025aa <ADC2MeasTask+0xd2>
  5148. ref[i] = (float)ILxRef[i];
  5149. 800257e: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5150. 8002582: 4a92 ldr r2, [pc, #584] @ (80027cc <ADC2MeasTask+0x2f4>)
  5151. 8002584: f832 2013 ldrh.w r2, [r2, r3, lsl #1]
  5152. 8002588: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5153. 800258c: ee07 2a90 vmov s15, r2
  5154. 8002590: eef8 7a67 vcvt.f32.u32 s15, s15
  5155. 8002594: 009b lsls r3, r3, #2
  5156. 8002596: 3370 adds r3, #112 @ 0x70
  5157. 8002598: 443b add r3, r7
  5158. 800259a: 3b64 subs r3, #100 @ 0x64
  5159. 800259c: edc3 7a00 vstr s15, [r3]
  5160. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5161. 80025a0: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5162. 80025a4: 3301 adds r3, #1
  5163. 80025a6: f887 3067 strb.w r3, [r7, #103] @ 0x67
  5164. 80025aa: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5165. 80025ae: 2b00 cmp r3, #0
  5166. 80025b0: d0e5 beq.n 800257e <ADC2MeasTask+0xa6>
  5167. }
  5168. osMutexRelease (ILxRefMutex);
  5169. 80025b2: 4b85 ldr r3, [pc, #532] @ (80027c8 <ADC2MeasTask+0x2f0>)
  5170. 80025b4: 681b ldr r3, [r3, #0]
  5171. 80025b6: 4618 mov r0, r3
  5172. 80025b8: f011 fbfc bl 8013db4 <osMutexRelease>
  5173. }
  5174. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5175. 80025bc: 2300 movs r3, #0
  5176. 80025be: f887 3066 strb.w r3, [r7, #102] @ 0x66
  5177. 80025c2: e0db b.n 800277c <ADC2MeasTask+0x2a4>
  5178. float adcVal = (float)adcData.adcDataBuffer[i];
  5179. 80025c4: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5180. 80025c8: 005b lsls r3, r3, #1
  5181. 80025ca: 3370 adds r3, #112 @ 0x70
  5182. 80025cc: 443b add r3, r7
  5183. 80025ce: f833 3c60 ldrh.w r3, [r3, #-96]
  5184. 80025d2: ee07 3a90 vmov s15, r3
  5185. 80025d6: eef8 7a67 vcvt.f32.u32 s15, s15
  5186. 80025da: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  5187. float val = (adcVal - ref[i]) * deltaADC * I_CHANNEL_CONST * gainCorrection * I_MeasCorrectionData[i].gain + I_MeasCorrectionData[i].offset;
  5188. 80025de: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5189. 80025e2: 009b lsls r3, r3, #2
  5190. 80025e4: 3370 adds r3, #112 @ 0x70
  5191. 80025e6: 443b add r3, r7
  5192. 80025e8: 3b64 subs r3, #100 @ 0x64
  5193. 80025ea: edd3 7a00 vldr s15, [r3]
  5194. 80025ee: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  5195. 80025f2: ee77 7a67 vsub.f32 s15, s14, s15
  5196. 80025f6: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5197. 80025fa: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5198. 80025fe: ee27 6b06 vmul.f64 d6, d7, d6
  5199. 8002602: ed9f 5b69 vldr d5, [pc, #420] @ 80027a8 <ADC2MeasTask+0x2d0>
  5200. 8002606: ee86 7b05 vdiv.f64 d7, d6, d5
  5201. 800260a: ed9f 6b69 vldr d6, [pc, #420] @ 80027b0 <ADC2MeasTask+0x2d8>
  5202. 800260e: ee27 6b06 vmul.f64 d6, d7, d6
  5203. 8002612: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  5204. 8002616: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5205. 800261a: ee26 6b07 vmul.f64 d6, d6, d7
  5206. 800261e: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5207. 8002622: 4a6b ldr r2, [pc, #428] @ (80027d0 <ADC2MeasTask+0x2f8>)
  5208. 8002624: 00db lsls r3, r3, #3
  5209. 8002626: 4413 add r3, r2
  5210. 8002628: edd3 7a00 vldr s15, [r3]
  5211. 800262c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5212. 8002630: ee26 6b07 vmul.f64 d6, d6, d7
  5213. 8002634: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5214. 8002638: 4a65 ldr r2, [pc, #404] @ (80027d0 <ADC2MeasTask+0x2f8>)
  5215. 800263a: 00db lsls r3, r3, #3
  5216. 800263c: 4413 add r3, r2
  5217. 800263e: 3304 adds r3, #4
  5218. 8002640: edd3 7a00 vldr s15, [r3]
  5219. 8002644: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5220. 8002648: ee36 7b07 vadd.f64 d7, d6, d7
  5221. 800264c: eef7 7bc7 vcvt.f32.f64 s15, d7
  5222. 8002650: edc7 7a17 vstr s15, [r7, #92] @ 0x5c
  5223. circBuffer[i][circBuffPos] = val;
  5224. 8002654: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5225. 8002658: 4613 mov r3, r2
  5226. 800265a: 009b lsls r3, r3, #2
  5227. 800265c: 4413 add r3, r2
  5228. 800265e: 005b lsls r3, r3, #1
  5229. 8002660: 6efa ldr r2, [r7, #108] @ 0x6c
  5230. 8002662: 4413 add r3, r2
  5231. 8002664: 009b lsls r3, r3, #2
  5232. 8002666: 3370 adds r3, #112 @ 0x70
  5233. 8002668: 443b add r3, r7
  5234. 800266a: 3b3c subs r3, #60 @ 0x3c
  5235. 800266c: 6dfa ldr r2, [r7, #92] @ 0x5c
  5236. 800266e: 601a str r2, [r3, #0]
  5237. rms[i] = 0.0;
  5238. 8002670: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5239. 8002674: 009b lsls r3, r3, #2
  5240. 8002676: 3370 adds r3, #112 @ 0x70
  5241. 8002678: 443b add r3, r7
  5242. 800267a: 3b40 subs r3, #64 @ 0x40
  5243. 800267c: f04f 0200 mov.w r2, #0
  5244. 8002680: 601a str r2, [r3, #0]
  5245. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5246. 8002682: 2300 movs r3, #0
  5247. 8002684: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5248. 8002688: e025 b.n 80026d6 <ADC2MeasTask+0x1fe>
  5249. rms[i] += circBuffer[i][c];
  5250. 800268a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5251. 800268e: 009b lsls r3, r3, #2
  5252. 8002690: 3370 adds r3, #112 @ 0x70
  5253. 8002692: 443b add r3, r7
  5254. 8002694: 3b40 subs r3, #64 @ 0x40
  5255. 8002696: ed93 7a00 vldr s14, [r3]
  5256. 800269a: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5257. 800269e: f897 1065 ldrb.w r1, [r7, #101] @ 0x65
  5258. 80026a2: 4613 mov r3, r2
  5259. 80026a4: 009b lsls r3, r3, #2
  5260. 80026a6: 4413 add r3, r2
  5261. 80026a8: 005b lsls r3, r3, #1
  5262. 80026aa: 440b add r3, r1
  5263. 80026ac: 009b lsls r3, r3, #2
  5264. 80026ae: 3370 adds r3, #112 @ 0x70
  5265. 80026b0: 443b add r3, r7
  5266. 80026b2: 3b3c subs r3, #60 @ 0x3c
  5267. 80026b4: edd3 7a00 vldr s15, [r3]
  5268. 80026b8: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5269. 80026bc: ee77 7a27 vadd.f32 s15, s14, s15
  5270. 80026c0: 009b lsls r3, r3, #2
  5271. 80026c2: 3370 adds r3, #112 @ 0x70
  5272. 80026c4: 443b add r3, r7
  5273. 80026c6: 3b40 subs r3, #64 @ 0x40
  5274. 80026c8: edc3 7a00 vstr s15, [r3]
  5275. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5276. 80026cc: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5277. 80026d0: 3301 adds r3, #1
  5278. 80026d2: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5279. 80026d6: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5280. 80026da: 2b09 cmp r3, #9
  5281. 80026dc: d9d5 bls.n 800268a <ADC2MeasTask+0x1b2>
  5282. }
  5283. rms[i] = rms[i] / CIRC_BUFF_LEN;
  5284. 80026de: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5285. 80026e2: 009b lsls r3, r3, #2
  5286. 80026e4: 3370 adds r3, #112 @ 0x70
  5287. 80026e6: 443b add r3, r7
  5288. 80026e8: 3b40 subs r3, #64 @ 0x40
  5289. 80026ea: ed93 7a00 vldr s14, [r3]
  5290. 80026ee: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5291. 80026f2: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5292. 80026f6: eec7 7a26 vdiv.f32 s15, s14, s13
  5293. 80026fa: 009b lsls r3, r3, #2
  5294. 80026fc: 3370 adds r3, #112 @ 0x70
  5295. 80026fe: 443b add r3, r7
  5296. 8002700: 3b40 subs r3, #64 @ 0x40
  5297. 8002702: edc3 7a00 vstr s15, [r3]
  5298. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  5299. 8002706: 4b33 ldr r3, [pc, #204] @ (80027d4 <ADC2MeasTask+0x2fc>)
  5300. 8002708: 681b ldr r3, [r3, #0]
  5301. 800270a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5302. 800270e: 4618 mov r0, r3
  5303. 8002710: f011 fb05 bl 8013d1e <osMutexAcquire>
  5304. 8002714: 4603 mov r3, r0
  5305. 8002716: 2b00 cmp r3, #0
  5306. 8002718: d12b bne.n 8002772 <ADC2MeasTask+0x29a>
  5307. if (resMeasurements.currentPeak[i] < val) {
  5308. 800271a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5309. 800271e: 4a2e ldr r2, [pc, #184] @ (80027d8 <ADC2MeasTask+0x300>)
  5310. 8002720: 3308 adds r3, #8
  5311. 8002722: 009b lsls r3, r3, #2
  5312. 8002724: 4413 add r3, r2
  5313. 8002726: 3304 adds r3, #4
  5314. 8002728: edd3 7a00 vldr s15, [r3]
  5315. 800272c: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  5316. 8002730: eeb4 7ae7 vcmpe.f32 s14, s15
  5317. 8002734: eef1 fa10 vmrs APSR_nzcv, fpscr
  5318. 8002738: dd08 ble.n 800274c <ADC2MeasTask+0x274>
  5319. resMeasurements.currentPeak[i] = val;
  5320. 800273a: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5321. 800273e: 4a26 ldr r2, [pc, #152] @ (80027d8 <ADC2MeasTask+0x300>)
  5322. 8002740: 3308 adds r3, #8
  5323. 8002742: 009b lsls r3, r3, #2
  5324. 8002744: 4413 add r3, r2
  5325. 8002746: 3304 adds r3, #4
  5326. 8002748: 6dfa ldr r2, [r7, #92] @ 0x5c
  5327. 800274a: 601a str r2, [r3, #0]
  5328. }
  5329. resMeasurements.currentRMS[i] = rms[i];
  5330. 800274c: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5331. 8002750: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5332. 8002754: 0092 lsls r2, r2, #2
  5333. 8002756: 3270 adds r2, #112 @ 0x70
  5334. 8002758: 443a add r2, r7
  5335. 800275a: 3a40 subs r2, #64 @ 0x40
  5336. 800275c: 6812 ldr r2, [r2, #0]
  5337. 800275e: 491e ldr r1, [pc, #120] @ (80027d8 <ADC2MeasTask+0x300>)
  5338. 8002760: 3306 adds r3, #6
  5339. 8002762: 009b lsls r3, r3, #2
  5340. 8002764: 440b add r3, r1
  5341. 8002766: 601a str r2, [r3, #0]
  5342. osMutexRelease (resMeasurementsMutex);
  5343. 8002768: 4b1a ldr r3, [pc, #104] @ (80027d4 <ADC2MeasTask+0x2fc>)
  5344. 800276a: 681b ldr r3, [r3, #0]
  5345. 800276c: 4618 mov r0, r3
  5346. 800276e: f011 fb21 bl 8013db4 <osMutexRelease>
  5347. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5348. 8002772: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5349. 8002776: 3301 adds r3, #1
  5350. 8002778: f887 3066 strb.w r3, [r7, #102] @ 0x66
  5351. 800277c: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5352. 8002780: 2b00 cmp r3, #0
  5353. 8002782: f43f af1f beq.w 80025c4 <ADC2MeasTask+0xec>
  5354. }
  5355. }
  5356. ++circBuffPos;
  5357. 8002786: 6efb ldr r3, [r7, #108] @ 0x6c
  5358. 8002788: 3301 adds r3, #1
  5359. 800278a: 66fb str r3, [r7, #108] @ 0x6c
  5360. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5361. 800278c: 6efa ldr r2, [r7, #108] @ 0x6c
  5362. 800278e: 4b13 ldr r3, [pc, #76] @ (80027dc <ADC2MeasTask+0x304>)
  5363. 8002790: fba3 1302 umull r1, r3, r3, r2
  5364. 8002794: 08d9 lsrs r1, r3, #3
  5365. 8002796: 460b mov r3, r1
  5366. 8002798: 009b lsls r3, r3, #2
  5367. 800279a: 440b add r3, r1
  5368. 800279c: 005b lsls r3, r3, #1
  5369. 800279e: 1ad3 subs r3, r2, r3
  5370. 80027a0: 66fb str r3, [r7, #108] @ 0x6c
  5371. while (pdTRUE) {
  5372. 80027a2: e6b3 b.n 800250c <ADC2MeasTask+0x34>
  5373. 80027a4: f3af 8000 nop.w
  5374. 80027a8: 00000000 .word 0x00000000
  5375. 80027ac: 40efffe0 .word 0x40efffe0
  5376. 80027b0: 83e425af .word 0x83e425af
  5377. 80027b4: 401e4d9e .word 0x401e4d9e
  5378. 80027b8: 24000824 .word 0x24000824
  5379. 80027bc: 24000834 .word 0x24000834
  5380. 80027c0: 24000030 .word 0x24000030
  5381. 80027c4: 453b8000 .word 0x453b8000
  5382. 80027c8: 24000840 .word 0x24000840
  5383. 80027cc: 240008b0 .word 0x240008b0
  5384. 80027d0: 24000018 .word 0x24000018
  5385. 80027d4: 24000838 .word 0x24000838
  5386. 80027d8: 24000844 .word 0x24000844
  5387. 80027dc: cccccccd .word 0xcccccccd
  5388. 080027e0 <ADC3MeasTask>:
  5389. }
  5390. }
  5391. void ADC3MeasTask (void* arg) {
  5392. 80027e0: b580 push {r7, lr}
  5393. 80027e2: b0bc sub sp, #240 @ 0xf0
  5394. 80027e4: af00 add r7, sp, #0
  5395. 80027e6: 6078 str r0, [r7, #4]
  5396. float motorXSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5397. 80027e8: f107 03a4 add.w r3, r7, #164 @ 0xa4
  5398. 80027ec: 2228 movs r2, #40 @ 0x28
  5399. 80027ee: 2100 movs r1, #0
  5400. 80027f0: 4618 mov r0, r3
  5401. 80027f2: f015 fad8 bl 8017da6 <memset>
  5402. float motorYSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5403. 80027f6: f107 037c add.w r3, r7, #124 @ 0x7c
  5404. 80027fa: 2228 movs r2, #40 @ 0x28
  5405. 80027fc: 2100 movs r1, #0
  5406. 80027fe: 4618 mov r0, r3
  5407. 8002800: f015 fad1 bl 8017da6 <memset>
  5408. float pvT1CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5409. 8002804: f107 0354 add.w r3, r7, #84 @ 0x54
  5410. 8002808: 2228 movs r2, #40 @ 0x28
  5411. 800280a: 2100 movs r1, #0
  5412. 800280c: 4618 mov r0, r3
  5413. 800280e: f015 faca bl 8017da6 <memset>
  5414. float pvT2CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5415. 8002812: f107 032c add.w r3, r7, #44 @ 0x2c
  5416. 8002816: 2228 movs r2, #40 @ 0x28
  5417. 8002818: 2100 movs r1, #0
  5418. 800281a: 4618 mov r0, r3
  5419. 800281c: f015 fac3 bl 8017da6 <memset>
  5420. uint32_t circBuffPos = 0;
  5421. 8002820: 2300 movs r3, #0
  5422. 8002822: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5423. ADC3_Data adcData = { 0 };
  5424. 8002826: f107 030c add.w r3, r7, #12
  5425. 800282a: 2220 movs r2, #32
  5426. 800282c: 2100 movs r1, #0
  5427. 800282e: 4618 mov r0, r3
  5428. 8002830: f015 fab9 bl 8017da6 <memset>
  5429. while (pdTRUE) {
  5430. osMessageQueueGet (adc3MeasDataQueue, &adcData, 0, osWaitForever);
  5431. 8002834: 4bc2 ldr r3, [pc, #776] @ (8002b40 <ADC3MeasTask+0x360>)
  5432. 8002836: 6818 ldr r0, [r3, #0]
  5433. 8002838: f107 010c add.w r1, r7, #12
  5434. 800283c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5435. 8002840: 2200 movs r2, #0
  5436. 8002842: f011 fbc7 bl 8013fd4 <osMessageQueueGet>
  5437. uint32_t vRef = __LL_ADC_CALC_VREFANALOG_VOLTAGE (adcData.adcDataBuffer[VrefInt], LL_ADC_RESOLUTION_16B);
  5438. 8002846: 4bbf ldr r3, [pc, #764] @ (8002b44 <ADC3MeasTask+0x364>)
  5439. 8002848: 881b ldrh r3, [r3, #0]
  5440. 800284a: 461a mov r2, r3
  5441. 800284c: f640 43e4 movw r3, #3300 @ 0xce4
  5442. 8002850: fb02 f303 mul.w r3, r2, r3
  5443. 8002854: 8aba ldrh r2, [r7, #20]
  5444. 8002856: fbb3 f3f2 udiv r3, r3, r2
  5445. 800285a: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  5446. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  5447. 800285e: 4bba ldr r3, [pc, #744] @ (8002b48 <ADC3MeasTask+0x368>)
  5448. 8002860: 681b ldr r3, [r3, #0]
  5449. 8002862: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5450. 8002866: 4618 mov r0, r3
  5451. 8002868: f011 fa59 bl 8013d1e <osMutexAcquire>
  5452. 800286c: 4603 mov r3, r0
  5453. 800286e: 2b00 cmp r3, #0
  5454. 8002870: d108 bne.n 8002884 <ADC3MeasTask+0xa4>
  5455. vRefmV = vRef;
  5456. 8002872: 4ab6 ldr r2, [pc, #728] @ (8002b4c <ADC3MeasTask+0x36c>)
  5457. 8002874: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  5458. 8002878: 6013 str r3, [r2, #0]
  5459. osMutexRelease (vRefmVMutex);
  5460. 800287a: 4bb3 ldr r3, [pc, #716] @ (8002b48 <ADC3MeasTask+0x368>)
  5461. 800287c: 681b ldr r3, [r3, #0]
  5462. 800287e: 4618 mov r0, r3
  5463. 8002880: f011 fa98 bl 8013db4 <osMutexRelease>
  5464. }
  5465. float motorXCurrentSense = adcData.adcDataBuffer[motorXSense] * deltaADC * 10 / 8.33333;
  5466. 8002884: 8a3b ldrh r3, [r7, #16]
  5467. 8002886: ee07 3a90 vmov s15, r3
  5468. 800288a: eeb8 7be7 vcvt.f64.s32 d7, s15
  5469. 800288e: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5470. 8002892: ee27 6b06 vmul.f64 d6, d7, d6
  5471. 8002896: ed9f 5ba2 vldr d5, [pc, #648] @ 8002b20 <ADC3MeasTask+0x340>
  5472. 800289a: ee86 7b05 vdiv.f64 d7, d6, d5
  5473. 800289e: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5474. 80028a2: ee27 6b06 vmul.f64 d6, d7, d6
  5475. 80028a6: ed9f 5ba0 vldr d5, [pc, #640] @ 8002b28 <ADC3MeasTask+0x348>
  5476. 80028aa: ee86 7b05 vdiv.f64 d7, d6, d5
  5477. 80028ae: eef7 7bc7 vcvt.f32.f64 s15, d7
  5478. 80028b2: edc7 7a34 vstr s15, [r7, #208] @ 0xd0
  5479. float motorYCurrentSense = adcData.adcDataBuffer[motorYSense] * deltaADC * 10 / 8.33333;
  5480. 80028b6: 8a7b ldrh r3, [r7, #18]
  5481. 80028b8: ee07 3a90 vmov s15, r3
  5482. 80028bc: eeb8 7be7 vcvt.f64.s32 d7, s15
  5483. 80028c0: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5484. 80028c4: ee27 6b06 vmul.f64 d6, d7, d6
  5485. 80028c8: ed9f 5b95 vldr d5, [pc, #596] @ 8002b20 <ADC3MeasTask+0x340>
  5486. 80028cc: ee86 7b05 vdiv.f64 d7, d6, d5
  5487. 80028d0: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5488. 80028d4: ee27 6b06 vmul.f64 d6, d7, d6
  5489. 80028d8: ed9f 5b93 vldr d5, [pc, #588] @ 8002b28 <ADC3MeasTask+0x348>
  5490. 80028dc: ee86 7b05 vdiv.f64 d7, d6, d5
  5491. 80028e0: eef7 7bc7 vcvt.f32.f64 s15, d7
  5492. 80028e4: edc7 7a33 vstr s15, [r7, #204] @ 0xcc
  5493. motorXSensCircBuffer[circBuffPos] = motorXCurrentSense;
  5494. 80028e8: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5495. 80028ec: 009b lsls r3, r3, #2
  5496. 80028ee: 33f0 adds r3, #240 @ 0xf0
  5497. 80028f0: 443b add r3, r7
  5498. 80028f2: 3b4c subs r3, #76 @ 0x4c
  5499. 80028f4: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  5500. 80028f8: 601a str r2, [r3, #0]
  5501. motorYSensCircBuffer[circBuffPos] = motorYCurrentSense;
  5502. 80028fa: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5503. 80028fe: 009b lsls r3, r3, #2
  5504. 8002900: 33f0 adds r3, #240 @ 0xf0
  5505. 8002902: 443b add r3, r7
  5506. 8002904: 3b74 subs r3, #116 @ 0x74
  5507. 8002906: f8d7 20cc ldr.w r2, [r7, #204] @ 0xcc
  5508. 800290a: 601a str r2, [r3, #0]
  5509. pvT1CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp1] * deltaADC * 45.33333333 - 63;
  5510. 800290c: 89bb ldrh r3, [r7, #12]
  5511. 800290e: ee07 3a90 vmov s15, r3
  5512. 8002912: eeb8 7be7 vcvt.f64.s32 d7, s15
  5513. 8002916: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5514. 800291a: ee27 6b06 vmul.f64 d6, d7, d6
  5515. 800291e: ed9f 5b80 vldr d5, [pc, #512] @ 8002b20 <ADC3MeasTask+0x340>
  5516. 8002922: ee86 7b05 vdiv.f64 d7, d6, d5
  5517. 8002926: ed9f 6b82 vldr d6, [pc, #520] @ 8002b30 <ADC3MeasTask+0x350>
  5518. 800292a: ee27 7b06 vmul.f64 d7, d7, d6
  5519. 800292e: ed9f 6b82 vldr d6, [pc, #520] @ 8002b38 <ADC3MeasTask+0x358>
  5520. 8002932: ee37 7b46 vsub.f64 d7, d7, d6
  5521. 8002936: eef7 7bc7 vcvt.f32.f64 s15, d7
  5522. 800293a: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5523. 800293e: 009b lsls r3, r3, #2
  5524. 8002940: 33f0 adds r3, #240 @ 0xf0
  5525. 8002942: 443b add r3, r7
  5526. 8002944: 3b9c subs r3, #156 @ 0x9c
  5527. 8002946: edc3 7a00 vstr s15, [r3]
  5528. pvT2CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp2] * deltaADC * 45.33333333 - 63;
  5529. 800294a: 89fb ldrh r3, [r7, #14]
  5530. 800294c: ee07 3a90 vmov s15, r3
  5531. 8002950: eeb8 7be7 vcvt.f64.s32 d7, s15
  5532. 8002954: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5533. 8002958: ee27 6b06 vmul.f64 d6, d7, d6
  5534. 800295c: ed9f 5b70 vldr d5, [pc, #448] @ 8002b20 <ADC3MeasTask+0x340>
  5535. 8002960: ee86 7b05 vdiv.f64 d7, d6, d5
  5536. 8002964: ed9f 6b72 vldr d6, [pc, #456] @ 8002b30 <ADC3MeasTask+0x350>
  5537. 8002968: ee27 7b06 vmul.f64 d7, d7, d6
  5538. 800296c: ed9f 6b72 vldr d6, [pc, #456] @ 8002b38 <ADC3MeasTask+0x358>
  5539. 8002970: ee37 7b46 vsub.f64 d7, d7, d6
  5540. 8002974: eef7 7bc7 vcvt.f32.f64 s15, d7
  5541. 8002978: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5542. 800297c: 009b lsls r3, r3, #2
  5543. 800297e: 33f0 adds r3, #240 @ 0xf0
  5544. 8002980: 443b add r3, r7
  5545. 8002982: 3bc4 subs r3, #196 @ 0xc4
  5546. 8002984: edc3 7a00 vstr s15, [r3]
  5547. float motorXAveCurrent = 0;
  5548. 8002988: f04f 0300 mov.w r3, #0
  5549. 800298c: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  5550. float motorYAveCurrent = 0;
  5551. 8002990: f04f 0300 mov.w r3, #0
  5552. 8002994: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  5553. float pvT1AveTemp = 0;
  5554. 8002998: f04f 0300 mov.w r3, #0
  5555. 800299c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  5556. float pvT2AveTemp = 0;
  5557. 80029a0: f04f 0300 mov.w r3, #0
  5558. 80029a4: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  5559. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5560. 80029a8: 2300 movs r3, #0
  5561. 80029aa: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5562. 80029ae: e03c b.n 8002a2a <ADC3MeasTask+0x24a>
  5563. motorXAveCurrent += motorXSensCircBuffer[i];
  5564. 80029b0: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5565. 80029b4: 009b lsls r3, r3, #2
  5566. 80029b6: 33f0 adds r3, #240 @ 0xf0
  5567. 80029b8: 443b add r3, r7
  5568. 80029ba: 3b4c subs r3, #76 @ 0x4c
  5569. 80029bc: edd3 7a00 vldr s15, [r3]
  5570. 80029c0: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5571. 80029c4: ee77 7a27 vadd.f32 s15, s14, s15
  5572. 80029c8: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5573. motorYAveCurrent += motorYSensCircBuffer[i];
  5574. 80029cc: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5575. 80029d0: 009b lsls r3, r3, #2
  5576. 80029d2: 33f0 adds r3, #240 @ 0xf0
  5577. 80029d4: 443b add r3, r7
  5578. 80029d6: 3b74 subs r3, #116 @ 0x74
  5579. 80029d8: edd3 7a00 vldr s15, [r3]
  5580. 80029dc: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5581. 80029e0: ee77 7a27 vadd.f32 s15, s14, s15
  5582. 80029e4: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5583. #ifdef PV_BOARD
  5584. pvT1AveTemp += pvT1CircBuffer[i];
  5585. 80029e8: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5586. 80029ec: 009b lsls r3, r3, #2
  5587. 80029ee: 33f0 adds r3, #240 @ 0xf0
  5588. 80029f0: 443b add r3, r7
  5589. 80029f2: 3b9c subs r3, #156 @ 0x9c
  5590. 80029f4: edd3 7a00 vldr s15, [r3]
  5591. 80029f8: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5592. 80029fc: ee77 7a27 vadd.f32 s15, s14, s15
  5593. 8002a00: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5594. pvT2AveTemp += pvT2CircBuffer[i];
  5595. 8002a04: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5596. 8002a08: 009b lsls r3, r3, #2
  5597. 8002a0a: 33f0 adds r3, #240 @ 0xf0
  5598. 8002a0c: 443b add r3, r7
  5599. 8002a0e: 3bc4 subs r3, #196 @ 0xc4
  5600. 8002a10: edd3 7a00 vldr s15, [r3]
  5601. 8002a14: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5602. 8002a18: ee77 7a27 vadd.f32 s15, s14, s15
  5603. 8002a1c: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5604. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5605. 8002a20: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5606. 8002a24: 3301 adds r3, #1
  5607. 8002a26: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5608. 8002a2a: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5609. 8002a2e: 2b09 cmp r3, #9
  5610. 8002a30: d9be bls.n 80029b0 <ADC3MeasTask+0x1d0>
  5611. #endif
  5612. }
  5613. motorXAveCurrent /= CIRC_BUFF_LEN;
  5614. 8002a32: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5615. 8002a36: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5616. 8002a3a: eec7 7a26 vdiv.f32 s15, s14, s13
  5617. 8002a3e: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5618. motorYAveCurrent /= CIRC_BUFF_LEN;
  5619. 8002a42: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5620. 8002a46: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5621. 8002a4a: eec7 7a26 vdiv.f32 s15, s14, s13
  5622. 8002a4e: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5623. pvT1AveTemp /= CIRC_BUFF_LEN;
  5624. 8002a52: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5625. 8002a56: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5626. 8002a5a: eec7 7a26 vdiv.f32 s15, s14, s13
  5627. 8002a5e: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5628. pvT2AveTemp /= CIRC_BUFF_LEN;
  5629. 8002a62: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5630. 8002a66: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5631. 8002a6a: eec7 7a26 vdiv.f32 s15, s14, s13
  5632. 8002a6e: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5633. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5634. 8002a72: 4b37 ldr r3, [pc, #220] @ (8002b50 <ADC3MeasTask+0x370>)
  5635. 8002a74: 681b ldr r3, [r3, #0]
  5636. 8002a76: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5637. 8002a7a: 4618 mov r0, r3
  5638. 8002a7c: f011 f94f bl 8013d1e <osMutexAcquire>
  5639. 8002a80: 4603 mov r3, r0
  5640. 8002a82: 2b00 cmp r3, #0
  5641. 8002a84: d138 bne.n 8002af8 <ADC3MeasTask+0x318>
  5642. if (sensorsInfo.motorXStatus == 1) {
  5643. 8002a86: 4b33 ldr r3, [pc, #204] @ (8002b54 <ADC3MeasTask+0x374>)
  5644. 8002a88: 7d1b ldrb r3, [r3, #20]
  5645. 8002a8a: 2b01 cmp r3, #1
  5646. 8002a8c: d111 bne.n 8002ab2 <ADC3MeasTask+0x2d2>
  5647. sensorsInfo.motorXAveCurrent = motorXAveCurrent;
  5648. 8002a8e: 4a31 ldr r2, [pc, #196] @ (8002b54 <ADC3MeasTask+0x374>)
  5649. 8002a90: f8d7 30e8 ldr.w r3, [r7, #232] @ 0xe8
  5650. 8002a94: 6193 str r3, [r2, #24]
  5651. if (sensorsInfo.motorXPeakCurrent < motorXCurrentSense) {
  5652. 8002a96: 4b2f ldr r3, [pc, #188] @ (8002b54 <ADC3MeasTask+0x374>)
  5653. 8002a98: edd3 7a08 vldr s15, [r3, #32]
  5654. 8002a9c: ed97 7a34 vldr s14, [r7, #208] @ 0xd0
  5655. 8002aa0: eeb4 7ae7 vcmpe.f32 s14, s15
  5656. 8002aa4: eef1 fa10 vmrs APSR_nzcv, fpscr
  5657. 8002aa8: dd03 ble.n 8002ab2 <ADC3MeasTask+0x2d2>
  5658. sensorsInfo.motorXPeakCurrent = motorXCurrentSense;
  5659. 8002aaa: 4a2a ldr r2, [pc, #168] @ (8002b54 <ADC3MeasTask+0x374>)
  5660. 8002aac: f8d7 30d0 ldr.w r3, [r7, #208] @ 0xd0
  5661. 8002ab0: 6213 str r3, [r2, #32]
  5662. }
  5663. }
  5664. if (sensorsInfo.motorYStatus == 1) {
  5665. 8002ab2: 4b28 ldr r3, [pc, #160] @ (8002b54 <ADC3MeasTask+0x374>)
  5666. 8002ab4: 7d5b ldrb r3, [r3, #21]
  5667. 8002ab6: 2b01 cmp r3, #1
  5668. 8002ab8: d111 bne.n 8002ade <ADC3MeasTask+0x2fe>
  5669. sensorsInfo.motorYAveCurrent = motorYAveCurrent;
  5670. 8002aba: 4a26 ldr r2, [pc, #152] @ (8002b54 <ADC3MeasTask+0x374>)
  5671. 8002abc: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  5672. 8002ac0: 61d3 str r3, [r2, #28]
  5673. if (sensorsInfo.motorYPeakCurrent < motorYCurrentSense) {
  5674. 8002ac2: 4b24 ldr r3, [pc, #144] @ (8002b54 <ADC3MeasTask+0x374>)
  5675. 8002ac4: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5676. 8002ac8: ed97 7a33 vldr s14, [r7, #204] @ 0xcc
  5677. 8002acc: eeb4 7ae7 vcmpe.f32 s14, s15
  5678. 8002ad0: eef1 fa10 vmrs APSR_nzcv, fpscr
  5679. 8002ad4: dd03 ble.n 8002ade <ADC3MeasTask+0x2fe>
  5680. sensorsInfo.motorYPeakCurrent = motorYCurrentSense;
  5681. 8002ad6: 4a1f ldr r2, [pc, #124] @ (8002b54 <ADC3MeasTask+0x374>)
  5682. 8002ad8: f8d7 30cc ldr.w r3, [r7, #204] @ 0xcc
  5683. 8002adc: 6253 str r3, [r2, #36] @ 0x24
  5684. }
  5685. }
  5686. sensorsInfo.pvTemperature[0] = pvT1AveTemp;
  5687. 8002ade: 4a1d ldr r2, [pc, #116] @ (8002b54 <ADC3MeasTask+0x374>)
  5688. 8002ae0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  5689. 8002ae4: 6013 str r3, [r2, #0]
  5690. sensorsInfo.pvTemperature[1] = pvT2AveTemp;
  5691. 8002ae6: 4a1b ldr r2, [pc, #108] @ (8002b54 <ADC3MeasTask+0x374>)
  5692. 8002ae8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  5693. 8002aec: 6053 str r3, [r2, #4]
  5694. osMutexRelease (sensorsInfoMutex);
  5695. 8002aee: 4b18 ldr r3, [pc, #96] @ (8002b50 <ADC3MeasTask+0x370>)
  5696. 8002af0: 681b ldr r3, [r3, #0]
  5697. 8002af2: 4618 mov r0, r3
  5698. 8002af4: f011 f95e bl 8013db4 <osMutexRelease>
  5699. }
  5700. ++circBuffPos;
  5701. 8002af8: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5702. 8002afc: 3301 adds r3, #1
  5703. 8002afe: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5704. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5705. 8002b02: f8d7 20ec ldr.w r2, [r7, #236] @ 0xec
  5706. 8002b06: 4b14 ldr r3, [pc, #80] @ (8002b58 <ADC3MeasTask+0x378>)
  5707. 8002b08: fba3 1302 umull r1, r3, r3, r2
  5708. 8002b0c: 08d9 lsrs r1, r3, #3
  5709. 8002b0e: 460b mov r3, r1
  5710. 8002b10: 009b lsls r3, r3, #2
  5711. 8002b12: 440b add r3, r1
  5712. 8002b14: 005b lsls r3, r3, #1
  5713. 8002b16: 1ad3 subs r3, r2, r3
  5714. 8002b18: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5715. while (pdTRUE) {
  5716. 8002b1c: e68a b.n 8002834 <ADC3MeasTask+0x54>
  5717. 8002b1e: bf00 nop
  5718. 8002b20: 00000000 .word 0x00000000
  5719. 8002b24: 40efffe0 .word 0x40efffe0
  5720. 8002b28: 3ad18d26 .word 0x3ad18d26
  5721. 8002b2c: 4020aaaa .word 0x4020aaaa
  5722. 8002b30: aaa38226 .word 0xaaa38226
  5723. 8002b34: 4046aaaa .word 0x4046aaaa
  5724. 8002b38: 00000000 .word 0x00000000
  5725. 8002b3c: 404f8000 .word 0x404f8000
  5726. 8002b40: 24000828 .word 0x24000828
  5727. 8002b44: 1ff1e860 .word 0x1ff1e860
  5728. 8002b48: 24000834 .word 0x24000834
  5729. 8002b4c: 24000030 .word 0x24000030
  5730. 8002b50: 2400083c .word 0x2400083c
  5731. 8002b54: 24000880 .word 0x24000880
  5732. 8002b58: cccccccd .word 0xcccccccd
  5733. 08002b5c <LimiterSwitchTask>:
  5734. }
  5735. }
  5736. void LimiterSwitchTask (void* arg) {
  5737. 8002b5c: b580 push {r7, lr}
  5738. 8002b5e: b08a sub sp, #40 @ 0x28
  5739. 8002b60: af06 add r7, sp, #24
  5740. 8002b62: 6078 str r0, [r7, #4]
  5741. LimiterSwitchData limiterSwitchData = { 0 };
  5742. 8002b64: 2300 movs r3, #0
  5743. 8002b66: 60bb str r3, [r7, #8]
  5744. limiterSwitchData.gpioPin = GPIO_PIN_8;
  5745. 8002b68: f44f 7380 mov.w r3, #256 @ 0x100
  5746. 8002b6c: 813b strh r3, [r7, #8]
  5747. for (uint8_t i = 0; i < 6; i++) {
  5748. 8002b6e: 2300 movs r3, #0
  5749. 8002b70: 73fb strb r3, [r7, #15]
  5750. 8002b72: e015 b.n 8002ba0 <LimiterSwitchTask+0x44>
  5751. limiterSwitchData.pinState = HAL_GPIO_ReadPin (GPIOD, limiterSwitchData.gpioPin);
  5752. 8002b74: 893b ldrh r3, [r7, #8]
  5753. 8002b76: 4619 mov r1, r3
  5754. 8002b78: 486c ldr r0, [pc, #432] @ (8002d2c <LimiterSwitchTask+0x1d0>)
  5755. 8002b7a: f008 f87d bl 800ac78 <HAL_GPIO_ReadPin>
  5756. 8002b7e: 4603 mov r3, r0
  5757. 8002b80: 72bb strb r3, [r7, #10]
  5758. osMessageQueuePut (limiterSwitchDataQueue, &limiterSwitchData, 0, 0);
  5759. 8002b82: 4b6b ldr r3, [pc, #428] @ (8002d30 <LimiterSwitchTask+0x1d4>)
  5760. 8002b84: 6818 ldr r0, [r3, #0]
  5761. 8002b86: f107 0108 add.w r1, r7, #8
  5762. 8002b8a: 2300 movs r3, #0
  5763. 8002b8c: 2200 movs r2, #0
  5764. 8002b8e: f011 f9c1 bl 8013f14 <osMessageQueuePut>
  5765. limiterSwitchData.gpioPin = limiterSwitchData.gpioPin << 1;
  5766. 8002b92: 893b ldrh r3, [r7, #8]
  5767. 8002b94: 005b lsls r3, r3, #1
  5768. 8002b96: b29b uxth r3, r3
  5769. 8002b98: 813b strh r3, [r7, #8]
  5770. for (uint8_t i = 0; i < 6; i++) {
  5771. 8002b9a: 7bfb ldrb r3, [r7, #15]
  5772. 8002b9c: 3301 adds r3, #1
  5773. 8002b9e: 73fb strb r3, [r7, #15]
  5774. 8002ba0: 7bfb ldrb r3, [r7, #15]
  5775. 8002ba2: 2b05 cmp r3, #5
  5776. 8002ba4: d9e6 bls.n 8002b74 <LimiterSwitchTask+0x18>
  5777. }
  5778. while (pdTRUE) {
  5779. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  5780. 8002ba6: 4b62 ldr r3, [pc, #392] @ (8002d30 <LimiterSwitchTask+0x1d4>)
  5781. 8002ba8: 6818 ldr r0, [r3, #0]
  5782. 8002baa: f107 0108 add.w r1, r7, #8
  5783. 8002bae: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5784. 8002bb2: 2200 movs r2, #0
  5785. 8002bb4: f011 fa0e bl 8013fd4 <osMessageQueueGet>
  5786. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5787. 8002bb8: 4b5e ldr r3, [pc, #376] @ (8002d34 <LimiterSwitchTask+0x1d8>)
  5788. 8002bba: 681b ldr r3, [r3, #0]
  5789. 8002bbc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5790. 8002bc0: 4618 mov r0, r3
  5791. 8002bc2: f011 f8ac bl 8013d1e <osMutexAcquire>
  5792. 8002bc6: 4603 mov r3, r0
  5793. 8002bc8: 2b00 cmp r3, #0
  5794. 8002bca: d1ec bne.n 8002ba6 <LimiterSwitchTask+0x4a>
  5795. switch (limiterSwitchData.gpioPin) {
  5796. 8002bcc: 893b ldrh r3, [r7, #8]
  5797. 8002bce: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5798. 8002bd2: d052 beq.n 8002c7a <LimiterSwitchTask+0x11e>
  5799. 8002bd4: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5800. 8002bd8: dc5a bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5801. 8002bda: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5802. 8002bde: d041 beq.n 8002c64 <LimiterSwitchTask+0x108>
  5803. 8002be0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5804. 8002be4: dc54 bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5805. 8002be6: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5806. 8002bea: d030 beq.n 8002c4e <LimiterSwitchTask+0xf2>
  5807. 8002bec: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5808. 8002bf0: dc4e bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5809. 8002bf2: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5810. 8002bf6: d01f beq.n 8002c38 <LimiterSwitchTask+0xdc>
  5811. 8002bf8: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5812. 8002bfc: dc48 bgt.n 8002c90 <LimiterSwitchTask+0x134>
  5813. 8002bfe: f5b3 7f80 cmp.w r3, #256 @ 0x100
  5814. 8002c02: d003 beq.n 8002c0c <LimiterSwitchTask+0xb0>
  5815. 8002c04: f5b3 7f00 cmp.w r3, #512 @ 0x200
  5816. 8002c08: d00b beq.n 8002c22 <LimiterSwitchTask+0xc6>
  5817. case GPIO_PIN_9: sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5818. case GPIO_PIN_10: sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5819. case GPIO_PIN_11: sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5820. case GPIO_PIN_12: sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5821. case GPIO_PIN_13: sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5822. default: break;
  5823. 8002c0a: e041 b.n 8002c90 <LimiterSwitchTask+0x134>
  5824. case GPIO_PIN_8: sensorsInfo.limitYSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5825. 8002c0c: 7abb ldrb r3, [r7, #10]
  5826. 8002c0e: 2b01 cmp r3, #1
  5827. 8002c10: bf14 ite ne
  5828. 8002c12: 2301 movne r3, #1
  5829. 8002c14: 2300 moveq r3, #0
  5830. 8002c16: b2db uxtb r3, r3
  5831. 8002c18: 461a mov r2, r3
  5832. 8002c1a: 4b47 ldr r3, [pc, #284] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5833. 8002c1c: f883 202d strb.w r2, [r3, #45] @ 0x2d
  5834. 8002c20: e037 b.n 8002c92 <LimiterSwitchTask+0x136>
  5835. case GPIO_PIN_9: sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5836. 8002c22: 7abb ldrb r3, [r7, #10]
  5837. 8002c24: 2b01 cmp r3, #1
  5838. 8002c26: bf14 ite ne
  5839. 8002c28: 2301 movne r3, #1
  5840. 8002c2a: 2300 moveq r3, #0
  5841. 8002c2c: b2db uxtb r3, r3
  5842. 8002c2e: 461a mov r2, r3
  5843. 8002c30: 4b41 ldr r3, [pc, #260] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5844. 8002c32: f883 202c strb.w r2, [r3, #44] @ 0x2c
  5845. 8002c36: e02c b.n 8002c92 <LimiterSwitchTask+0x136>
  5846. case GPIO_PIN_10: sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5847. 8002c38: 7abb ldrb r3, [r7, #10]
  5848. 8002c3a: 2b01 cmp r3, #1
  5849. 8002c3c: bf14 ite ne
  5850. 8002c3e: 2301 movne r3, #1
  5851. 8002c40: 2300 moveq r3, #0
  5852. 8002c42: b2db uxtb r3, r3
  5853. 8002c44: 461a mov r2, r3
  5854. 8002c46: 4b3c ldr r3, [pc, #240] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5855. 8002c48: f883 202a strb.w r2, [r3, #42] @ 0x2a
  5856. 8002c4c: e021 b.n 8002c92 <LimiterSwitchTask+0x136>
  5857. case GPIO_PIN_11: sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5858. 8002c4e: 7abb ldrb r3, [r7, #10]
  5859. 8002c50: 2b01 cmp r3, #1
  5860. 8002c52: bf14 ite ne
  5861. 8002c54: 2301 movne r3, #1
  5862. 8002c56: 2300 moveq r3, #0
  5863. 8002c58: b2db uxtb r3, r3
  5864. 8002c5a: 461a mov r2, r3
  5865. 8002c5c: 4b36 ldr r3, [pc, #216] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5866. 8002c5e: f883 202b strb.w r2, [r3, #43] @ 0x2b
  5867. 8002c62: e016 b.n 8002c92 <LimiterSwitchTask+0x136>
  5868. case GPIO_PIN_12: sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5869. 8002c64: 7abb ldrb r3, [r7, #10]
  5870. 8002c66: 2b01 cmp r3, #1
  5871. 8002c68: bf14 ite ne
  5872. 8002c6a: 2301 movne r3, #1
  5873. 8002c6c: 2300 moveq r3, #0
  5874. 8002c6e: b2db uxtb r3, r3
  5875. 8002c70: 461a mov r2, r3
  5876. 8002c72: 4b31 ldr r3, [pc, #196] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5877. 8002c74: f883 2028 strb.w r2, [r3, #40] @ 0x28
  5878. 8002c78: e00b b.n 8002c92 <LimiterSwitchTask+0x136>
  5879. case GPIO_PIN_13: sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 0 : 1; break;
  5880. 8002c7a: 7abb ldrb r3, [r7, #10]
  5881. 8002c7c: 2b01 cmp r3, #1
  5882. 8002c7e: bf14 ite ne
  5883. 8002c80: 2301 movne r3, #1
  5884. 8002c82: 2300 moveq r3, #0
  5885. 8002c84: b2db uxtb r3, r3
  5886. 8002c86: 461a mov r2, r3
  5887. 8002c88: 4b2b ldr r3, [pc, #172] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5888. 8002c8a: f883 2029 strb.w r2, [r3, #41] @ 0x29
  5889. 8002c8e: e000 b.n 8002c92 <LimiterSwitchTask+0x136>
  5890. default: break;
  5891. 8002c90: bf00 nop
  5892. }
  5893. if ((sensorsInfo.limitXSwitchDown == 1) || (sensorsInfo.limitXSwitchUp == 1)) {
  5894. 8002c92: 4b29 ldr r3, [pc, #164] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5895. 8002c94: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5896. 8002c98: 2b01 cmp r3, #1
  5897. 8002c9a: d004 beq.n 8002ca6 <LimiterSwitchTask+0x14a>
  5898. 8002c9c: 4b26 ldr r3, [pc, #152] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5899. 8002c9e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5900. 8002ca2: 2b01 cmp r3, #1
  5901. 8002ca4: d118 bne.n 8002cd8 <LimiterSwitchTask+0x17c>
  5902. sensorsInfo.motorXStatus = motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, 0, 0, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  5903. 8002ca6: 4b25 ldr r3, [pc, #148] @ (8002d3c <LimiterSwitchTask+0x1e0>)
  5904. 8002ca8: 681b ldr r3, [r3, #0]
  5905. 8002caa: 4a23 ldr r2, [pc, #140] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5906. 8002cac: f892 2028 ldrb.w r2, [r2, #40] @ 0x28
  5907. 8002cb0: 4921 ldr r1, [pc, #132] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5908. 8002cb2: f891 1029 ldrb.w r1, [r1, #41] @ 0x29
  5909. 8002cb6: 9104 str r1, [sp, #16]
  5910. 8002cb8: 9203 str r2, [sp, #12]
  5911. 8002cba: 2200 movs r2, #0
  5912. 8002cbc: 9202 str r2, [sp, #8]
  5913. 8002cbe: 2200 movs r2, #0
  5914. 8002cc0: 9201 str r2, [sp, #4]
  5915. 8002cc2: 9300 str r3, [sp, #0]
  5916. 8002cc4: 2304 movs r3, #4
  5917. 8002cc6: 2200 movs r2, #0
  5918. 8002cc8: 491d ldr r1, [pc, #116] @ (8002d40 <LimiterSwitchTask+0x1e4>)
  5919. 8002cca: 481e ldr r0, [pc, #120] @ (8002d44 <LimiterSwitchTask+0x1e8>)
  5920. 8002ccc: f000 f92a bl 8002f24 <motorControl>
  5921. 8002cd0: 4603 mov r3, r0
  5922. 8002cd2: 461a mov r2, r3
  5923. 8002cd4: 4b18 ldr r3, [pc, #96] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5924. 8002cd6: 751a strb r2, [r3, #20]
  5925. }
  5926. if ((sensorsInfo.limitYSwitchDown == 1) || (sensorsInfo.limitYSwitchUp == 1)) {
  5927. 8002cd8: 4b17 ldr r3, [pc, #92] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5928. 8002cda: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5929. 8002cde: 2b01 cmp r3, #1
  5930. 8002ce0: d004 beq.n 8002cec <LimiterSwitchTask+0x190>
  5931. 8002ce2: 4b15 ldr r3, [pc, #84] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5932. 8002ce4: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5933. 8002ce8: 2b01 cmp r3, #1
  5934. 8002cea: d118 bne.n 8002d1e <LimiterSwitchTask+0x1c2>
  5935. sensorsInfo.motorYStatus = motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, 0, 0, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  5936. 8002cec: 4b16 ldr r3, [pc, #88] @ (8002d48 <LimiterSwitchTask+0x1ec>)
  5937. 8002cee: 681b ldr r3, [r3, #0]
  5938. 8002cf0: 4a11 ldr r2, [pc, #68] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5939. 8002cf2: f892 202b ldrb.w r2, [r2, #43] @ 0x2b
  5940. 8002cf6: 4910 ldr r1, [pc, #64] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5941. 8002cf8: f891 102c ldrb.w r1, [r1, #44] @ 0x2c
  5942. 8002cfc: 9104 str r1, [sp, #16]
  5943. 8002cfe: 9203 str r2, [sp, #12]
  5944. 8002d00: 2200 movs r2, #0
  5945. 8002d02: 9202 str r2, [sp, #8]
  5946. 8002d04: 2200 movs r2, #0
  5947. 8002d06: 9201 str r2, [sp, #4]
  5948. 8002d08: 9300 str r3, [sp, #0]
  5949. 8002d0a: 230c movs r3, #12
  5950. 8002d0c: 2208 movs r2, #8
  5951. 8002d0e: 490c ldr r1, [pc, #48] @ (8002d40 <LimiterSwitchTask+0x1e4>)
  5952. 8002d10: 480c ldr r0, [pc, #48] @ (8002d44 <LimiterSwitchTask+0x1e8>)
  5953. 8002d12: f000 f907 bl 8002f24 <motorControl>
  5954. 8002d16: 4603 mov r3, r0
  5955. 8002d18: 461a mov r2, r3
  5956. 8002d1a: 4b07 ldr r3, [pc, #28] @ (8002d38 <LimiterSwitchTask+0x1dc>)
  5957. 8002d1c: 755a strb r2, [r3, #21]
  5958. }
  5959. osMutexRelease (sensorsInfoMutex);
  5960. 8002d1e: 4b05 ldr r3, [pc, #20] @ (8002d34 <LimiterSwitchTask+0x1d8>)
  5961. 8002d20: 681b ldr r3, [r3, #0]
  5962. 8002d22: 4618 mov r0, r3
  5963. 8002d24: f011 f846 bl 8013db4 <osMutexRelease>
  5964. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  5965. 8002d28: e73d b.n 8002ba6 <LimiterSwitchTask+0x4a>
  5966. 8002d2a: bf00 nop
  5967. 8002d2c: 58020c00 .word 0x58020c00
  5968. 8002d30: 2400082c .word 0x2400082c
  5969. 8002d34: 2400083c .word 0x2400083c
  5970. 8002d38: 24000880 .word 0x24000880
  5971. 8002d3c: 24000764 .word 0x24000764
  5972. 8002d40: 240007e0 .word 0x240007e0
  5973. 8002d44: 240004f4 .word 0x240004f4
  5974. 8002d48: 24000794 .word 0x24000794
  5975. 08002d4c <EncoderTask>:
  5976. }
  5977. }
  5978. }
  5979. void EncoderTask (void* arg) {
  5980. 8002d4c: b580 push {r7, lr}
  5981. 8002d4e: b084 sub sp, #16
  5982. 8002d50: af00 add r7, sp, #0
  5983. 8002d52: 6078 str r0, [r7, #4]
  5984. EncoderData encoderData = { 0 };
  5985. 8002d54: 2300 movs r3, #0
  5986. 8002d56: 813b strh r3, [r7, #8]
  5987. osMessageQueueId_t encoderQueue = (osMessageQueueId_t)arg;
  5988. 8002d58: 687b ldr r3, [r7, #4]
  5989. 8002d5a: 60fb str r3, [r7, #12]
  5990. while (pdTRUE) {
  5991. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  5992. 8002d5c: f107 0108 add.w r1, r7, #8
  5993. 8002d60: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5994. 8002d64: 2200 movs r2, #0
  5995. 8002d66: 68f8 ldr r0, [r7, #12]
  5996. 8002d68: f011 f934 bl 8013fd4 <osMessageQueueGet>
  5997. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5998. 8002d6c: 4b24 ldr r3, [pc, #144] @ (8002e00 <EncoderTask+0xb4>)
  5999. 8002d6e: 681b ldr r3, [r3, #0]
  6000. 8002d70: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6001. 8002d74: 4618 mov r0, r3
  6002. 8002d76: f010 ffd2 bl 8013d1e <osMutexAcquire>
  6003. 8002d7a: 4603 mov r3, r0
  6004. 8002d7c: 2b00 cmp r3, #0
  6005. 8002d7e: d1ed bne.n 8002d5c <EncoderTask+0x10>
  6006. if (encoderData.axe == encoderAxeX) {
  6007. 8002d80: 7a3b ldrb r3, [r7, #8]
  6008. 8002d82: 2b00 cmp r3, #0
  6009. 8002d84: d11b bne.n 8002dbe <EncoderTask+0x72>
  6010. if (encoderData.direction == encoderCW) {
  6011. 8002d86: 7a7b ldrb r3, [r7, #9]
  6012. 8002d88: 2b00 cmp r3, #0
  6013. 8002d8a: d10a bne.n 8002da2 <EncoderTask+0x56>
  6014. sensorsInfo.pvEncoderX += 360.0 / ENCODER_X_IMP_PER_TURN;
  6015. 8002d8c: 4b1d ldr r3, [pc, #116] @ (8002e04 <EncoderTask+0xb8>)
  6016. 8002d8e: edd3 7a03 vldr s15, [r3, #12]
  6017. 8002d92: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6018. 8002d96: ee77 7a87 vadd.f32 s15, s15, s14
  6019. 8002d9a: 4b1a ldr r3, [pc, #104] @ (8002e04 <EncoderTask+0xb8>)
  6020. 8002d9c: edc3 7a03 vstr s15, [r3, #12]
  6021. 8002da0: e009 b.n 8002db6 <EncoderTask+0x6a>
  6022. } else {
  6023. sensorsInfo.pvEncoderX -= 360.0 / ENCODER_X_IMP_PER_TURN;
  6024. 8002da2: 4b18 ldr r3, [pc, #96] @ (8002e04 <EncoderTask+0xb8>)
  6025. 8002da4: edd3 7a03 vldr s15, [r3, #12]
  6026. 8002da8: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6027. 8002dac: ee77 7ac7 vsub.f32 s15, s15, s14
  6028. 8002db0: 4b14 ldr r3, [pc, #80] @ (8002e04 <EncoderTask+0xb8>)
  6029. 8002db2: edc3 7a03 vstr s15, [r3, #12]
  6030. }
  6031. DbgLEDToggle(DBG_LED2);
  6032. 8002db6: 2020 movs r0, #32
  6033. 8002db8: f000 f84a bl 8002e50 <DbgLEDToggle>
  6034. 8002dbc: e01a b.n 8002df4 <EncoderTask+0xa8>
  6035. } else {
  6036. if (encoderData.direction == encoderCW) {
  6037. 8002dbe: 7a7b ldrb r3, [r7, #9]
  6038. 8002dc0: 2b00 cmp r3, #0
  6039. 8002dc2: d10a bne.n 8002dda <EncoderTask+0x8e>
  6040. sensorsInfo.pvEncoderY += 360.0 / ENCODER_Y_IMP_PER_TURN;
  6041. 8002dc4: 4b0f ldr r3, [pc, #60] @ (8002e04 <EncoderTask+0xb8>)
  6042. 8002dc6: edd3 7a04 vldr s15, [r3, #16]
  6043. 8002dca: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6044. 8002dce: ee77 7a87 vadd.f32 s15, s15, s14
  6045. 8002dd2: 4b0c ldr r3, [pc, #48] @ (8002e04 <EncoderTask+0xb8>)
  6046. 8002dd4: edc3 7a04 vstr s15, [r3, #16]
  6047. 8002dd8: e009 b.n 8002dee <EncoderTask+0xa2>
  6048. } else {
  6049. sensorsInfo.pvEncoderY -= 360.0 / ENCODER_Y_IMP_PER_TURN;
  6050. 8002dda: 4b0a ldr r3, [pc, #40] @ (8002e04 <EncoderTask+0xb8>)
  6051. 8002ddc: edd3 7a04 vldr s15, [r3, #16]
  6052. 8002de0: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6053. 8002de4: ee77 7ac7 vsub.f32 s15, s15, s14
  6054. 8002de8: 4b06 ldr r3, [pc, #24] @ (8002e04 <EncoderTask+0xb8>)
  6055. 8002dea: edc3 7a04 vstr s15, [r3, #16]
  6056. }
  6057. DbgLEDToggle(DBG_LED3);
  6058. 8002dee: 2040 movs r0, #64 @ 0x40
  6059. 8002df0: f000 f82e bl 8002e50 <DbgLEDToggle>
  6060. }
  6061. osMutexRelease (sensorsInfoMutex);
  6062. 8002df4: 4b02 ldr r3, [pc, #8] @ (8002e00 <EncoderTask+0xb4>)
  6063. 8002df6: 681b ldr r3, [r3, #0]
  6064. 8002df8: 4618 mov r0, r3
  6065. 8002dfa: f010 ffdb bl 8013db4 <osMutexRelease>
  6066. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  6067. 8002dfe: e7ad b.n 8002d5c <EncoderTask+0x10>
  6068. 8002e00: 2400083c .word 0x2400083c
  6069. 8002e04: 24000880 .word 0x24000880
  6070. 08002e08 <DbgLEDOn>:
  6071. #include <stdlib.h>
  6072. #include "peripherial.h"
  6073. void DbgLEDOn (uint8_t ledNumber) {
  6074. 8002e08: b580 push {r7, lr}
  6075. 8002e0a: b082 sub sp, #8
  6076. 8002e0c: af00 add r7, sp, #0
  6077. 8002e0e: 4603 mov r3, r0
  6078. 8002e10: 71fb strb r3, [r7, #7]
  6079. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_SET);
  6080. 8002e12: 79fb ldrb r3, [r7, #7]
  6081. 8002e14: b29b uxth r3, r3
  6082. 8002e16: 2201 movs r2, #1
  6083. 8002e18: 4619 mov r1, r3
  6084. 8002e1a: 4803 ldr r0, [pc, #12] @ (8002e28 <DbgLEDOn+0x20>)
  6085. 8002e1c: f007 ff44 bl 800aca8 <HAL_GPIO_WritePin>
  6086. }
  6087. 8002e20: bf00 nop
  6088. 8002e22: 3708 adds r7, #8
  6089. 8002e24: 46bd mov sp, r7
  6090. 8002e26: bd80 pop {r7, pc}
  6091. 8002e28: 58020c00 .word 0x58020c00
  6092. 08002e2c <DbgLEDOff>:
  6093. void DbgLEDOff (uint8_t ledNumber) {
  6094. 8002e2c: b580 push {r7, lr}
  6095. 8002e2e: b082 sub sp, #8
  6096. 8002e30: af00 add r7, sp, #0
  6097. 8002e32: 4603 mov r3, r0
  6098. 8002e34: 71fb strb r3, [r7, #7]
  6099. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_RESET);
  6100. 8002e36: 79fb ldrb r3, [r7, #7]
  6101. 8002e38: b29b uxth r3, r3
  6102. 8002e3a: 2200 movs r2, #0
  6103. 8002e3c: 4619 mov r1, r3
  6104. 8002e3e: 4803 ldr r0, [pc, #12] @ (8002e4c <DbgLEDOff+0x20>)
  6105. 8002e40: f007 ff32 bl 800aca8 <HAL_GPIO_WritePin>
  6106. }
  6107. 8002e44: bf00 nop
  6108. 8002e46: 3708 adds r7, #8
  6109. 8002e48: 46bd mov sp, r7
  6110. 8002e4a: bd80 pop {r7, pc}
  6111. 8002e4c: 58020c00 .word 0x58020c00
  6112. 08002e50 <DbgLEDToggle>:
  6113. void DbgLEDToggle (uint8_t ledNumber) {
  6114. 8002e50: b580 push {r7, lr}
  6115. 8002e52: b082 sub sp, #8
  6116. 8002e54: af00 add r7, sp, #0
  6117. 8002e56: 4603 mov r3, r0
  6118. 8002e58: 71fb strb r3, [r7, #7]
  6119. HAL_GPIO_TogglePin (GPIOD, ledNumber);
  6120. 8002e5a: 79fb ldrb r3, [r7, #7]
  6121. 8002e5c: b29b uxth r3, r3
  6122. 8002e5e: 4619 mov r1, r3
  6123. 8002e60: 4803 ldr r0, [pc, #12] @ (8002e70 <DbgLEDToggle+0x20>)
  6124. 8002e62: f007 ff3a bl 800acda <HAL_GPIO_TogglePin>
  6125. }
  6126. 8002e66: bf00 nop
  6127. 8002e68: 3708 adds r7, #8
  6128. 8002e6a: 46bd mov sp, r7
  6129. 8002e6c: bd80 pop {r7, pc}
  6130. 8002e6e: bf00 nop
  6131. 8002e70: 58020c00 .word 0x58020c00
  6132. 08002e74 <EnableCurrentSensors>:
  6133. void EnableCurrentSensors (void) {
  6134. 8002e74: b580 push {r7, lr}
  6135. 8002e76: af00 add r7, sp, #0
  6136. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_SET);
  6137. 8002e78: 2201 movs r2, #1
  6138. 8002e7a: f44f 4100 mov.w r1, #32768 @ 0x8000
  6139. 8002e7e: 4802 ldr r0, [pc, #8] @ (8002e88 <EnableCurrentSensors+0x14>)
  6140. 8002e80: f007 ff12 bl 800aca8 <HAL_GPIO_WritePin>
  6141. }
  6142. 8002e84: bf00 nop
  6143. 8002e86: bd80 pop {r7, pc}
  6144. 8002e88: 58021000 .word 0x58021000
  6145. 08002e8c <SelectCurrentSensorGain>:
  6146. void DisableCurrentSensors (void) {
  6147. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_RESET);
  6148. }
  6149. void SelectCurrentSensorGain (CurrentSensor sensor, CurrentSensorGain gain) {
  6150. 8002e8c: b580 push {r7, lr}
  6151. 8002e8e: b084 sub sp, #16
  6152. 8002e90: af00 add r7, sp, #0
  6153. 8002e92: 4603 mov r3, r0
  6154. 8002e94: 460a mov r2, r1
  6155. 8002e96: 71fb strb r3, [r7, #7]
  6156. 8002e98: 4613 mov r3, r2
  6157. 8002e9a: 71bb strb r3, [r7, #6]
  6158. uint8_t gpioOffset = 0;
  6159. 8002e9c: 2300 movs r3, #0
  6160. 8002e9e: 73fb strb r3, [r7, #15]
  6161. switch (sensor) {
  6162. 8002ea0: 79fb ldrb r3, [r7, #7]
  6163. 8002ea2: 2b02 cmp r3, #2
  6164. 8002ea4: d00c beq.n 8002ec0 <SelectCurrentSensorGain+0x34>
  6165. 8002ea6: 2b02 cmp r3, #2
  6166. 8002ea8: dc0d bgt.n 8002ec6 <SelectCurrentSensorGain+0x3a>
  6167. 8002eaa: 2b00 cmp r3, #0
  6168. 8002eac: d002 beq.n 8002eb4 <SelectCurrentSensorGain+0x28>
  6169. 8002eae: 2b01 cmp r3, #1
  6170. 8002eb0: d003 beq.n 8002eba <SelectCurrentSensorGain+0x2e>
  6171. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6172. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6173. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6174. default: break;
  6175. 8002eb2: e008 b.n 8002ec6 <SelectCurrentSensorGain+0x3a>
  6176. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6177. 8002eb4: 2307 movs r3, #7
  6178. 8002eb6: 73fb strb r3, [r7, #15]
  6179. 8002eb8: e006 b.n 8002ec8 <SelectCurrentSensorGain+0x3c>
  6180. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6181. 8002eba: 2309 movs r3, #9
  6182. 8002ebc: 73fb strb r3, [r7, #15]
  6183. 8002ebe: e003 b.n 8002ec8 <SelectCurrentSensorGain+0x3c>
  6184. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6185. 8002ec0: 230d movs r3, #13
  6186. 8002ec2: 73fb strb r3, [r7, #15]
  6187. 8002ec4: e000 b.n 8002ec8 <SelectCurrentSensorGain+0x3c>
  6188. default: break;
  6189. 8002ec6: bf00 nop
  6190. }
  6191. if (gpioOffset > 0) {
  6192. 8002ec8: 7bfb ldrb r3, [r7, #15]
  6193. 8002eca: 2b00 cmp r3, #0
  6194. 8002ecc: d023 beq.n 8002f16 <SelectCurrentSensorGain+0x8a>
  6195. uint16_t gain0Gpio = 1 << gpioOffset;
  6196. 8002ece: 7bfb ldrb r3, [r7, #15]
  6197. 8002ed0: 2201 movs r2, #1
  6198. 8002ed2: fa02 f303 lsl.w r3, r2, r3
  6199. 8002ed6: 81bb strh r3, [r7, #12]
  6200. uint16_t gain1Gpio = 1 << (gpioOffset + 1);
  6201. 8002ed8: 7bfb ldrb r3, [r7, #15]
  6202. 8002eda: 3301 adds r3, #1
  6203. 8002edc: 2201 movs r2, #1
  6204. 8002ede: fa02 f303 lsl.w r3, r2, r3
  6205. 8002ee2: 817b strh r3, [r7, #10]
  6206. uint16_t gpioState = ((uint16_t)gain) & 0x0001;
  6207. 8002ee4: 79bb ldrb r3, [r7, #6]
  6208. 8002ee6: b29b uxth r3, r3
  6209. 8002ee8: f003 0301 and.w r3, r3, #1
  6210. 8002eec: 813b strh r3, [r7, #8]
  6211. HAL_GPIO_WritePin (GPIOE, gain0Gpio, gpioState);
  6212. 8002eee: 893b ldrh r3, [r7, #8]
  6213. 8002ef0: b2da uxtb r2, r3
  6214. 8002ef2: 89bb ldrh r3, [r7, #12]
  6215. 8002ef4: 4619 mov r1, r3
  6216. 8002ef6: 480a ldr r0, [pc, #40] @ (8002f20 <SelectCurrentSensorGain+0x94>)
  6217. 8002ef8: f007 fed6 bl 800aca8 <HAL_GPIO_WritePin>
  6218. gpioState = (((uint16_t)gain) >> 1) & 0x0001;
  6219. 8002efc: 79bb ldrb r3, [r7, #6]
  6220. 8002efe: 085b lsrs r3, r3, #1
  6221. 8002f00: b2db uxtb r3, r3
  6222. 8002f02: f003 0301 and.w r3, r3, #1
  6223. 8002f06: 813b strh r3, [r7, #8]
  6224. HAL_GPIO_WritePin (GPIOE, gain1Gpio, gpioState);
  6225. 8002f08: 893b ldrh r3, [r7, #8]
  6226. 8002f0a: b2da uxtb r2, r3
  6227. 8002f0c: 897b ldrh r3, [r7, #10]
  6228. 8002f0e: 4619 mov r1, r3
  6229. 8002f10: 4803 ldr r0, [pc, #12] @ (8002f20 <SelectCurrentSensorGain+0x94>)
  6230. 8002f12: f007 fec9 bl 800aca8 <HAL_GPIO_WritePin>
  6231. }
  6232. }
  6233. 8002f16: bf00 nop
  6234. 8002f18: 3710 adds r7, #16
  6235. 8002f1a: 46bd mov sp, r7
  6236. 8002f1c: bd80 pop {r7, pc}
  6237. 8002f1e: bf00 nop
  6238. 8002f20: 58021000 .word 0x58021000
  6239. 08002f24 <motorControl>:
  6240. uint8_t
  6241. 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) {
  6242. 8002f24: b580 push {r7, lr}
  6243. 8002f26: b088 sub sp, #32
  6244. 8002f28: af02 add r7, sp, #8
  6245. 8002f2a: 60f8 str r0, [r7, #12]
  6246. 8002f2c: 60b9 str r1, [r7, #8]
  6247. 8002f2e: 4611 mov r1, r2
  6248. 8002f30: 461a mov r2, r3
  6249. 8002f32: 460b mov r3, r1
  6250. 8002f34: 71fb strb r3, [r7, #7]
  6251. 8002f36: 4613 mov r3, r2
  6252. 8002f38: 71bb strb r3, [r7, #6]
  6253. uint32_t motorStatus = 0;
  6254. 8002f3a: 2300 movs r3, #0
  6255. 8002f3c: 617b str r3, [r7, #20]
  6256. MotorDriverState setMotorYState = HiZ;
  6257. 8002f3e: 2300 movs r3, #0
  6258. 8002f40: 74fb strb r3, [r7, #19]
  6259. HAL_TIM_PWM_Stop (htim, channel1);
  6260. 8002f42: 79fb ldrb r3, [r7, #7]
  6261. 8002f44: 4619 mov r1, r3
  6262. 8002f46: 68f8 ldr r0, [r7, #12]
  6263. 8002f48: f00c f8b6 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6264. HAL_TIM_PWM_Stop (htim, channel2);
  6265. 8002f4c: 79bb ldrb r3, [r7, #6]
  6266. 8002f4e: 4619 mov r1, r3
  6267. 8002f50: 68f8 ldr r0, [r7, #12]
  6268. 8002f52: f00c f8b1 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6269. if (motorTimerPeriod > 0) {
  6270. 8002f56: 6abb ldr r3, [r7, #40] @ 0x28
  6271. 8002f58: 2b00 cmp r3, #0
  6272. 8002f5a: f340 808c ble.w 8003076 <motorControl+0x152>
  6273. if (motorPWMPulse > 0) {
  6274. 8002f5e: 6a7b ldr r3, [r7, #36] @ 0x24
  6275. 8002f60: 2b00 cmp r3, #0
  6276. 8002f62: dd2c ble.n 8002fbe <motorControl+0x9a>
  6277. // Forward
  6278. if (switchLimiterUpStat == 0) {
  6279. 8002f64: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6280. 8002f68: 2b00 cmp r3, #0
  6281. 8002f6a: d11d bne.n 8002fa8 <motorControl+0x84>
  6282. setMotorYState = Forward;
  6283. 8002f6c: 2301 movs r3, #1
  6284. 8002f6e: 74fb strb r3, [r7, #19]
  6285. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6286. 8002f70: 79f9 ldrb r1, [r7, #7]
  6287. 8002f72: 79b8 ldrb r0, [r7, #6]
  6288. 8002f74: 6a7b ldr r3, [r7, #36] @ 0x24
  6289. 8002f76: ea83 72e3 eor.w r2, r3, r3, asr #31
  6290. 8002f7a: eba2 72e3 sub.w r2, r2, r3, asr #31
  6291. 8002f7e: 4613 mov r3, r2
  6292. 8002f80: 009b lsls r3, r3, #2
  6293. 8002f82: 4413 add r3, r2
  6294. 8002f84: 005b lsls r3, r3, #1
  6295. 8002f86: 9301 str r3, [sp, #4]
  6296. 8002f88: 7cfb ldrb r3, [r7, #19]
  6297. 8002f8a: 9300 str r3, [sp, #0]
  6298. 8002f8c: 4603 mov r3, r0
  6299. 8002f8e: 460a mov r2, r1
  6300. 8002f90: 68b9 ldr r1, [r7, #8]
  6301. 8002f92: 68f8 ldr r0, [r7, #12]
  6302. 8002f94: f000 f8ff bl 8003196 <motorAction>
  6303. HAL_TIM_PWM_Start (htim, channel1);
  6304. 8002f98: 79fb ldrb r3, [r7, #7]
  6305. 8002f9a: 4619 mov r1, r3
  6306. 8002f9c: 68f8 ldr r0, [r7, #12]
  6307. 8002f9e: f00b ff7d bl 800ee9c <HAL_TIM_PWM_Start>
  6308. motorStatus = 1;
  6309. 8002fa2: 2301 movs r3, #1
  6310. 8002fa4: 617b str r3, [r7, #20]
  6311. 8002fa6: e004 b.n 8002fb2 <motorControl+0x8e>
  6312. } else {
  6313. HAL_TIM_PWM_Stop (htim, channel1);
  6314. 8002fa8: 79fb ldrb r3, [r7, #7]
  6315. 8002faa: 4619 mov r1, r3
  6316. 8002fac: 68f8 ldr r0, [r7, #12]
  6317. 8002fae: f00c f883 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6318. }
  6319. HAL_TIM_PWM_Stop (htim, channel2);
  6320. 8002fb2: 79bb ldrb r3, [r7, #6]
  6321. 8002fb4: 4619 mov r1, r3
  6322. 8002fb6: 68f8 ldr r0, [r7, #12]
  6323. 8002fb8: f00c f87e bl 800f0b8 <HAL_TIM_PWM_Stop>
  6324. 8002fbc: e051 b.n 8003062 <motorControl+0x13e>
  6325. } else if (motorPWMPulse < 0) {
  6326. 8002fbe: 6a7b ldr r3, [r7, #36] @ 0x24
  6327. 8002fc0: 2b00 cmp r3, #0
  6328. 8002fc2: da2c bge.n 800301e <motorControl+0xfa>
  6329. // Reverse
  6330. if (switchLimiterDownStat == 0) {
  6331. 8002fc4: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6332. 8002fc8: 2b00 cmp r3, #0
  6333. 8002fca: d11d bne.n 8003008 <motorControl+0xe4>
  6334. setMotorYState = Reverse;
  6335. 8002fcc: 2302 movs r3, #2
  6336. 8002fce: 74fb strb r3, [r7, #19]
  6337. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6338. 8002fd0: 79f9 ldrb r1, [r7, #7]
  6339. 8002fd2: 79b8 ldrb r0, [r7, #6]
  6340. 8002fd4: 6a7b ldr r3, [r7, #36] @ 0x24
  6341. 8002fd6: ea83 72e3 eor.w r2, r3, r3, asr #31
  6342. 8002fda: eba2 72e3 sub.w r2, r2, r3, asr #31
  6343. 8002fde: 4613 mov r3, r2
  6344. 8002fe0: 009b lsls r3, r3, #2
  6345. 8002fe2: 4413 add r3, r2
  6346. 8002fe4: 005b lsls r3, r3, #1
  6347. 8002fe6: 9301 str r3, [sp, #4]
  6348. 8002fe8: 7cfb ldrb r3, [r7, #19]
  6349. 8002fea: 9300 str r3, [sp, #0]
  6350. 8002fec: 4603 mov r3, r0
  6351. 8002fee: 460a mov r2, r1
  6352. 8002ff0: 68b9 ldr r1, [r7, #8]
  6353. 8002ff2: 68f8 ldr r0, [r7, #12]
  6354. 8002ff4: f000 f8cf bl 8003196 <motorAction>
  6355. HAL_TIM_PWM_Start (htim, channel2);
  6356. 8002ff8: 79bb ldrb r3, [r7, #6]
  6357. 8002ffa: 4619 mov r1, r3
  6358. 8002ffc: 68f8 ldr r0, [r7, #12]
  6359. 8002ffe: f00b ff4d bl 800ee9c <HAL_TIM_PWM_Start>
  6360. motorStatus = 1;
  6361. 8003002: 2301 movs r3, #1
  6362. 8003004: 617b str r3, [r7, #20]
  6363. 8003006: e004 b.n 8003012 <motorControl+0xee>
  6364. } else {
  6365. HAL_TIM_PWM_Stop (htim, channel2);
  6366. 8003008: 79bb ldrb r3, [r7, #6]
  6367. 800300a: 4619 mov r1, r3
  6368. 800300c: 68f8 ldr r0, [r7, #12]
  6369. 800300e: f00c f853 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6370. }
  6371. HAL_TIM_PWM_Stop (htim, channel1);
  6372. 8003012: 79fb ldrb r3, [r7, #7]
  6373. 8003014: 4619 mov r1, r3
  6374. 8003016: 68f8 ldr r0, [r7, #12]
  6375. 8003018: f00c f84e bl 800f0b8 <HAL_TIM_PWM_Stop>
  6376. 800301c: e021 b.n 8003062 <motorControl+0x13e>
  6377. } else {
  6378. // Brake
  6379. setMotorYState = Brake;
  6380. 800301e: 2303 movs r3, #3
  6381. 8003020: 74fb strb r3, [r7, #19]
  6382. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6383. 8003022: 79f9 ldrb r1, [r7, #7]
  6384. 8003024: 79b8 ldrb r0, [r7, #6]
  6385. 8003026: 6a7b ldr r3, [r7, #36] @ 0x24
  6386. 8003028: ea83 72e3 eor.w r2, r3, r3, asr #31
  6387. 800302c: eba2 72e3 sub.w r2, r2, r3, asr #31
  6388. 8003030: 4613 mov r3, r2
  6389. 8003032: 009b lsls r3, r3, #2
  6390. 8003034: 4413 add r3, r2
  6391. 8003036: 005b lsls r3, r3, #1
  6392. 8003038: 9301 str r3, [sp, #4]
  6393. 800303a: 7cfb ldrb r3, [r7, #19]
  6394. 800303c: 9300 str r3, [sp, #0]
  6395. 800303e: 4603 mov r3, r0
  6396. 8003040: 460a mov r2, r1
  6397. 8003042: 68b9 ldr r1, [r7, #8]
  6398. 8003044: 68f8 ldr r0, [r7, #12]
  6399. 8003046: f000 f8a6 bl 8003196 <motorAction>
  6400. HAL_TIM_PWM_Start (htim, channel1);
  6401. 800304a: 79fb ldrb r3, [r7, #7]
  6402. 800304c: 4619 mov r1, r3
  6403. 800304e: 68f8 ldr r0, [r7, #12]
  6404. 8003050: f00b ff24 bl 800ee9c <HAL_TIM_PWM_Start>
  6405. HAL_TIM_PWM_Start (htim, channel2);
  6406. 8003054: 79bb ldrb r3, [r7, #6]
  6407. 8003056: 4619 mov r1, r3
  6408. 8003058: 68f8 ldr r0, [r7, #12]
  6409. 800305a: f00b ff1f bl 800ee9c <HAL_TIM_PWM_Start>
  6410. motorStatus = 0;
  6411. 800305e: 2300 movs r3, #0
  6412. 8003060: 617b str r3, [r7, #20]
  6413. }
  6414. osTimerStart (motorTimerHandle, motorTimerPeriod * 1000);
  6415. 8003062: 6abb ldr r3, [r7, #40] @ 0x28
  6416. 8003064: f44f 727a mov.w r2, #1000 @ 0x3e8
  6417. 8003068: fb02 f303 mul.w r3, r2, r3
  6418. 800306c: 4619 mov r1, r3
  6419. 800306e: 6a38 ldr r0, [r7, #32]
  6420. 8003070: f010 fd6a bl 8013b48 <osTimerStart>
  6421. 8003074: e089 b.n 800318a <motorControl+0x266>
  6422. } else if ((motorTimerPeriod == 0) && (motorPWMPulse == 0)) {
  6423. 8003076: 6abb ldr r3, [r7, #40] @ 0x28
  6424. 8003078: 2b00 cmp r3, #0
  6425. 800307a: d126 bne.n 80030ca <motorControl+0x1a6>
  6426. 800307c: 6a7b ldr r3, [r7, #36] @ 0x24
  6427. 800307e: 2b00 cmp r3, #0
  6428. 8003080: d123 bne.n 80030ca <motorControl+0x1a6>
  6429. motorAction (htim, motorTimerConfigOC, channel1, channel2, HiZ, abs (motorPWMPulse) * 10);
  6430. 8003082: 79f9 ldrb r1, [r7, #7]
  6431. 8003084: 79b8 ldrb r0, [r7, #6]
  6432. 8003086: 6a7b ldr r3, [r7, #36] @ 0x24
  6433. 8003088: ea83 72e3 eor.w r2, r3, r3, asr #31
  6434. 800308c: eba2 72e3 sub.w r2, r2, r3, asr #31
  6435. 8003090: 4613 mov r3, r2
  6436. 8003092: 009b lsls r3, r3, #2
  6437. 8003094: 4413 add r3, r2
  6438. 8003096: 005b lsls r3, r3, #1
  6439. 8003098: 9301 str r3, [sp, #4]
  6440. 800309a: 2300 movs r3, #0
  6441. 800309c: 9300 str r3, [sp, #0]
  6442. 800309e: 4603 mov r3, r0
  6443. 80030a0: 460a mov r2, r1
  6444. 80030a2: 68b9 ldr r1, [r7, #8]
  6445. 80030a4: 68f8 ldr r0, [r7, #12]
  6446. 80030a6: f000 f876 bl 8003196 <motorAction>
  6447. HAL_TIM_PWM_Stop (htim, channel1);
  6448. 80030aa: 79fb ldrb r3, [r7, #7]
  6449. 80030ac: 4619 mov r1, r3
  6450. 80030ae: 68f8 ldr r0, [r7, #12]
  6451. 80030b0: f00c f802 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6452. HAL_TIM_PWM_Stop (htim, channel2);
  6453. 80030b4: 79bb ldrb r3, [r7, #6]
  6454. 80030b6: 4619 mov r1, r3
  6455. 80030b8: 68f8 ldr r0, [r7, #12]
  6456. 80030ba: f00b fffd bl 800f0b8 <HAL_TIM_PWM_Stop>
  6457. osTimerStop (motorTimerHandle);
  6458. 80030be: 6a38 ldr r0, [r7, #32]
  6459. 80030c0: f010 fd70 bl 8013ba4 <osTimerStop>
  6460. motorStatus = 0;
  6461. 80030c4: 2300 movs r3, #0
  6462. 80030c6: 617b str r3, [r7, #20]
  6463. 80030c8: e05f b.n 800318a <motorControl+0x266>
  6464. } else if (motorTimerPeriod == -1) {
  6465. 80030ca: 6abb ldr r3, [r7, #40] @ 0x28
  6466. 80030cc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  6467. 80030d0: d15b bne.n 800318a <motorControl+0x266>
  6468. if (motorPWMPulse > 0) {
  6469. 80030d2: 6a7b ldr r3, [r7, #36] @ 0x24
  6470. 80030d4: 2b00 cmp r3, #0
  6471. 80030d6: dd2c ble.n 8003132 <motorControl+0x20e>
  6472. // Forward
  6473. if (switchLimiterUpStat == 0) {
  6474. 80030d8: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6475. 80030dc: 2b00 cmp r3, #0
  6476. 80030de: d11d bne.n 800311c <motorControl+0x1f8>
  6477. setMotorYState = Forward;
  6478. 80030e0: 2301 movs r3, #1
  6479. 80030e2: 74fb strb r3, [r7, #19]
  6480. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6481. 80030e4: 79f9 ldrb r1, [r7, #7]
  6482. 80030e6: 79b8 ldrb r0, [r7, #6]
  6483. 80030e8: 6a7b ldr r3, [r7, #36] @ 0x24
  6484. 80030ea: ea83 72e3 eor.w r2, r3, r3, asr #31
  6485. 80030ee: eba2 72e3 sub.w r2, r2, r3, asr #31
  6486. 80030f2: 4613 mov r3, r2
  6487. 80030f4: 009b lsls r3, r3, #2
  6488. 80030f6: 4413 add r3, r2
  6489. 80030f8: 005b lsls r3, r3, #1
  6490. 80030fa: 9301 str r3, [sp, #4]
  6491. 80030fc: 7cfb ldrb r3, [r7, #19]
  6492. 80030fe: 9300 str r3, [sp, #0]
  6493. 8003100: 4603 mov r3, r0
  6494. 8003102: 460a mov r2, r1
  6495. 8003104: 68b9 ldr r1, [r7, #8]
  6496. 8003106: 68f8 ldr r0, [r7, #12]
  6497. 8003108: f000 f845 bl 8003196 <motorAction>
  6498. HAL_TIM_PWM_Start (htim, channel1);
  6499. 800310c: 79fb ldrb r3, [r7, #7]
  6500. 800310e: 4619 mov r1, r3
  6501. 8003110: 68f8 ldr r0, [r7, #12]
  6502. 8003112: f00b fec3 bl 800ee9c <HAL_TIM_PWM_Start>
  6503. motorStatus = 1;
  6504. 8003116: 2301 movs r3, #1
  6505. 8003118: 617b str r3, [r7, #20]
  6506. 800311a: e004 b.n 8003126 <motorControl+0x202>
  6507. } else {
  6508. HAL_TIM_PWM_Stop (htim, channel1);
  6509. 800311c: 79fb ldrb r3, [r7, #7]
  6510. 800311e: 4619 mov r1, r3
  6511. 8003120: 68f8 ldr r0, [r7, #12]
  6512. 8003122: f00b ffc9 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6513. }
  6514. HAL_TIM_PWM_Stop (htim, channel2);
  6515. 8003126: 79bb ldrb r3, [r7, #6]
  6516. 8003128: 4619 mov r1, r3
  6517. 800312a: 68f8 ldr r0, [r7, #12]
  6518. 800312c: f00b ffc4 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6519. 8003130: e02b b.n 800318a <motorControl+0x266>
  6520. } else {
  6521. // Reverse
  6522. if (switchLimiterDownStat == 0) {
  6523. 8003132: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6524. 8003136: 2b00 cmp r3, #0
  6525. 8003138: d11d bne.n 8003176 <motorControl+0x252>
  6526. setMotorYState = Reverse;
  6527. 800313a: 2302 movs r3, #2
  6528. 800313c: 74fb strb r3, [r7, #19]
  6529. motorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorYState, abs (motorPWMPulse) * 10);
  6530. 800313e: 79f9 ldrb r1, [r7, #7]
  6531. 8003140: 79b8 ldrb r0, [r7, #6]
  6532. 8003142: 6a7b ldr r3, [r7, #36] @ 0x24
  6533. 8003144: ea83 72e3 eor.w r2, r3, r3, asr #31
  6534. 8003148: eba2 72e3 sub.w r2, r2, r3, asr #31
  6535. 800314c: 4613 mov r3, r2
  6536. 800314e: 009b lsls r3, r3, #2
  6537. 8003150: 4413 add r3, r2
  6538. 8003152: 005b lsls r3, r3, #1
  6539. 8003154: 9301 str r3, [sp, #4]
  6540. 8003156: 7cfb ldrb r3, [r7, #19]
  6541. 8003158: 9300 str r3, [sp, #0]
  6542. 800315a: 4603 mov r3, r0
  6543. 800315c: 460a mov r2, r1
  6544. 800315e: 68b9 ldr r1, [r7, #8]
  6545. 8003160: 68f8 ldr r0, [r7, #12]
  6546. 8003162: f000 f818 bl 8003196 <motorAction>
  6547. HAL_TIM_PWM_Start (htim, channel2);
  6548. 8003166: 79bb ldrb r3, [r7, #6]
  6549. 8003168: 4619 mov r1, r3
  6550. 800316a: 68f8 ldr r0, [r7, #12]
  6551. 800316c: f00b fe96 bl 800ee9c <HAL_TIM_PWM_Start>
  6552. motorStatus = 1;
  6553. 8003170: 2301 movs r3, #1
  6554. 8003172: 617b str r3, [r7, #20]
  6555. 8003174: e004 b.n 8003180 <motorControl+0x25c>
  6556. } else {
  6557. HAL_TIM_PWM_Stop (htim, channel2);
  6558. 8003176: 79bb ldrb r3, [r7, #6]
  6559. 8003178: 4619 mov r1, r3
  6560. 800317a: 68f8 ldr r0, [r7, #12]
  6561. 800317c: f00b ff9c bl 800f0b8 <HAL_TIM_PWM_Stop>
  6562. }
  6563. HAL_TIM_PWM_Stop (htim, channel1);
  6564. 8003180: 79fb ldrb r3, [r7, #7]
  6565. 8003182: 4619 mov r1, r3
  6566. 8003184: 68f8 ldr r0, [r7, #12]
  6567. 8003186: f00b ff97 bl 800f0b8 <HAL_TIM_PWM_Stop>
  6568. }
  6569. }
  6570. return motorStatus;
  6571. 800318a: 697b ldr r3, [r7, #20]
  6572. 800318c: b2db uxtb r3, r3
  6573. }
  6574. 800318e: 4618 mov r0, r3
  6575. 8003190: 3718 adds r7, #24
  6576. 8003192: 46bd mov sp, r7
  6577. 8003194: bd80 pop {r7, pc}
  6578. 08003196 <motorAction>:
  6579. void motorAction (TIM_HandleTypeDef* tim, TIM_OC_InitTypeDef* timerConf, uint32_t channel1, uint32_t channel2, MotorDriverState setState, uint32_t pulse) {
  6580. 8003196: b580 push {r7, lr}
  6581. 8003198: b084 sub sp, #16
  6582. 800319a: af00 add r7, sp, #0
  6583. 800319c: 60f8 str r0, [r7, #12]
  6584. 800319e: 60b9 str r1, [r7, #8]
  6585. 80031a0: 607a str r2, [r7, #4]
  6586. 80031a2: 603b str r3, [r7, #0]
  6587. timerConf->Pulse = pulse;
  6588. 80031a4: 68bb ldr r3, [r7, #8]
  6589. 80031a6: 69fa ldr r2, [r7, #28]
  6590. 80031a8: 605a str r2, [r3, #4]
  6591. switch (setState) {
  6592. 80031aa: 7e3b ldrb r3, [r7, #24]
  6593. 80031ac: 2b02 cmp r3, #2
  6594. 80031ae: dc02 bgt.n 80031b6 <motorAction+0x20>
  6595. 80031b0: 2b00 cmp r3, #0
  6596. 80031b2: da03 bge.n 80031bc <motorAction+0x26>
  6597. 80031b4: e038 b.n 8003228 <motorAction+0x92>
  6598. 80031b6: 2b03 cmp r3, #3
  6599. 80031b8: d01b beq.n 80031f2 <motorAction+0x5c>
  6600. 80031ba: e035 b.n 8003228 <motorAction+0x92>
  6601. case Forward:
  6602. case Reverse:
  6603. case HiZ:
  6604. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6605. 80031bc: 68bb ldr r3, [r7, #8]
  6606. 80031be: 2200 movs r2, #0
  6607. 80031c0: 609a str r2, [r3, #8]
  6608. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6609. 80031c2: 687a ldr r2, [r7, #4]
  6610. 80031c4: 68b9 ldr r1, [r7, #8]
  6611. 80031c6: 68f8 ldr r0, [r7, #12]
  6612. 80031c8: f00c fb62 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6613. 80031cc: 4603 mov r3, r0
  6614. 80031ce: 2b00 cmp r3, #0
  6615. 80031d0: d001 beq.n 80031d6 <motorAction+0x40>
  6616. Error_Handler ();
  6617. 80031d2: f7fe fed9 bl 8001f88 <Error_Handler>
  6618. }
  6619. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6620. 80031d6: 68bb ldr r3, [r7, #8]
  6621. 80031d8: 2200 movs r2, #0
  6622. 80031da: 609a str r2, [r3, #8]
  6623. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6624. 80031dc: 683a ldr r2, [r7, #0]
  6625. 80031de: 68b9 ldr r1, [r7, #8]
  6626. 80031e0: 68f8 ldr r0, [r7, #12]
  6627. 80031e2: f00c fb55 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6628. 80031e6: 4603 mov r3, r0
  6629. 80031e8: 2b00 cmp r3, #0
  6630. 80031ea: d038 beq.n 800325e <motorAction+0xc8>
  6631. Error_Handler ();
  6632. 80031ec: f7fe fecc bl 8001f88 <Error_Handler>
  6633. }
  6634. break;
  6635. 80031f0: e035 b.n 800325e <motorAction+0xc8>
  6636. case Brake:
  6637. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6638. 80031f2: 68bb ldr r3, [r7, #8]
  6639. 80031f4: 2202 movs r2, #2
  6640. 80031f6: 609a str r2, [r3, #8]
  6641. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6642. 80031f8: 687a ldr r2, [r7, #4]
  6643. 80031fa: 68b9 ldr r1, [r7, #8]
  6644. 80031fc: 68f8 ldr r0, [r7, #12]
  6645. 80031fe: f00c fb47 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6646. 8003202: 4603 mov r3, r0
  6647. 8003204: 2b00 cmp r3, #0
  6648. 8003206: d001 beq.n 800320c <motorAction+0x76>
  6649. Error_Handler ();
  6650. 8003208: f7fe febe bl 8001f88 <Error_Handler>
  6651. }
  6652. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6653. 800320c: 68bb ldr r3, [r7, #8]
  6654. 800320e: 2202 movs r2, #2
  6655. 8003210: 609a str r2, [r3, #8]
  6656. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6657. 8003212: 683a ldr r2, [r7, #0]
  6658. 8003214: 68b9 ldr r1, [r7, #8]
  6659. 8003216: 68f8 ldr r0, [r7, #12]
  6660. 8003218: f00c fb3a bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6661. 800321c: 4603 mov r3, r0
  6662. 800321e: 2b00 cmp r3, #0
  6663. 8003220: d01f beq.n 8003262 <motorAction+0xcc>
  6664. Error_Handler ();
  6665. 8003222: f7fe feb1 bl 8001f88 <Error_Handler>
  6666. }
  6667. break;
  6668. 8003226: e01c b.n 8003262 <motorAction+0xcc>
  6669. default:
  6670. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6671. 8003228: 68bb ldr r3, [r7, #8]
  6672. 800322a: 2200 movs r2, #0
  6673. 800322c: 609a str r2, [r3, #8]
  6674. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6675. 800322e: 687a ldr r2, [r7, #4]
  6676. 8003230: 68b9 ldr r1, [r7, #8]
  6677. 8003232: 68f8 ldr r0, [r7, #12]
  6678. 8003234: f00c fb2c bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6679. 8003238: 4603 mov r3, r0
  6680. 800323a: 2b00 cmp r3, #0
  6681. 800323c: d001 beq.n 8003242 <motorAction+0xac>
  6682. Error_Handler ();
  6683. 800323e: f7fe fea3 bl 8001f88 <Error_Handler>
  6684. }
  6685. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6686. 8003242: 68bb ldr r3, [r7, #8]
  6687. 8003244: 2200 movs r2, #0
  6688. 8003246: 609a str r2, [r3, #8]
  6689. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6690. 8003248: 683a ldr r2, [r7, #0]
  6691. 800324a: 68b9 ldr r1, [r7, #8]
  6692. 800324c: 68f8 ldr r0, [r7, #12]
  6693. 800324e: f00c fb1f bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  6694. 8003252: 4603 mov r3, r0
  6695. 8003254: 2b00 cmp r3, #0
  6696. 8003256: d006 beq.n 8003266 <motorAction+0xd0>
  6697. Error_Handler ();
  6698. 8003258: f7fe fe96 bl 8001f88 <Error_Handler>
  6699. }
  6700. break;
  6701. 800325c: e003 b.n 8003266 <motorAction+0xd0>
  6702. break;
  6703. 800325e: bf00 nop
  6704. 8003260: e002 b.n 8003268 <motorAction+0xd2>
  6705. break;
  6706. 8003262: bf00 nop
  6707. 8003264: e000 b.n 8003268 <motorAction+0xd2>
  6708. break;
  6709. 8003266: bf00 nop
  6710. }
  6711. }
  6712. 8003268: bf00 nop
  6713. 800326a: 3710 adds r7, #16
  6714. 800326c: 46bd mov sp, r7
  6715. 800326e: bd80 pop {r7, pc}
  6716. 08003270 <WriteDataToBuffer>:
  6717. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6718. }
  6719. *buffPos = newBuffPos;
  6720. }
  6721. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  6722. 8003270: b480 push {r7}
  6723. 8003272: b089 sub sp, #36 @ 0x24
  6724. 8003274: af00 add r7, sp, #0
  6725. 8003276: 60f8 str r0, [r7, #12]
  6726. 8003278: 60b9 str r1, [r7, #8]
  6727. 800327a: 607a str r2, [r7, #4]
  6728. 800327c: 70fb strb r3, [r7, #3]
  6729. uint32_t* uDataPtr = data;
  6730. 800327e: 687b ldr r3, [r7, #4]
  6731. 8003280: 61bb str r3, [r7, #24]
  6732. uint32_t uData = *uDataPtr;
  6733. 8003282: 69bb ldr r3, [r7, #24]
  6734. 8003284: 681b ldr r3, [r3, #0]
  6735. 8003286: 617b str r3, [r7, #20]
  6736. uint8_t i = 0;
  6737. 8003288: 2300 movs r3, #0
  6738. 800328a: 77fb strb r3, [r7, #31]
  6739. uint8_t newBuffPos = *buffPos;
  6740. 800328c: 68bb ldr r3, [r7, #8]
  6741. 800328e: 881b ldrh r3, [r3, #0]
  6742. 8003290: 77bb strb r3, [r7, #30]
  6743. for (i = 0; i < dataSize; i++) {
  6744. 8003292: 2300 movs r3, #0
  6745. 8003294: 77fb strb r3, [r7, #31]
  6746. 8003296: e00e b.n 80032b6 <WriteDataToBuffer+0x46>
  6747. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6748. 8003298: 7ffb ldrb r3, [r7, #31]
  6749. 800329a: 00db lsls r3, r3, #3
  6750. 800329c: 697a ldr r2, [r7, #20]
  6751. 800329e: 40da lsrs r2, r3
  6752. 80032a0: 7fbb ldrb r3, [r7, #30]
  6753. 80032a2: 1c59 adds r1, r3, #1
  6754. 80032a4: 77b9 strb r1, [r7, #30]
  6755. 80032a6: 4619 mov r1, r3
  6756. 80032a8: 68fb ldr r3, [r7, #12]
  6757. 80032aa: 440b add r3, r1
  6758. 80032ac: b2d2 uxtb r2, r2
  6759. 80032ae: 701a strb r2, [r3, #0]
  6760. for (i = 0; i < dataSize; i++) {
  6761. 80032b0: 7ffb ldrb r3, [r7, #31]
  6762. 80032b2: 3301 adds r3, #1
  6763. 80032b4: 77fb strb r3, [r7, #31]
  6764. 80032b6: 7ffa ldrb r2, [r7, #31]
  6765. 80032b8: 78fb ldrb r3, [r7, #3]
  6766. 80032ba: 429a cmp r2, r3
  6767. 80032bc: d3ec bcc.n 8003298 <WriteDataToBuffer+0x28>
  6768. }
  6769. *buffPos = newBuffPos;
  6770. 80032be: 7fbb ldrb r3, [r7, #30]
  6771. 80032c0: b29a uxth r2, r3
  6772. 80032c2: 68bb ldr r3, [r7, #8]
  6773. 80032c4: 801a strh r2, [r3, #0]
  6774. }
  6775. 80032c6: bf00 nop
  6776. 80032c8: 3724 adds r7, #36 @ 0x24
  6777. 80032ca: 46bd mov sp, r7
  6778. 80032cc: f85d 7b04 ldr.w r7, [sp], #4
  6779. 80032d0: 4770 bx lr
  6780. 080032d2 <ReadWordFromBufer>:
  6781. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  6782. *buffPos += sizeof(uint16_t);
  6783. }
  6784. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  6785. {
  6786. 80032d2: b480 push {r7}
  6787. 80032d4: b085 sub sp, #20
  6788. 80032d6: af00 add r7, sp, #0
  6789. 80032d8: 60f8 str r0, [r7, #12]
  6790. 80032da: 60b9 str r1, [r7, #8]
  6791. 80032dc: 607a str r2, [r7, #4]
  6792. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  6793. 80032de: 68bb ldr r3, [r7, #8]
  6794. 80032e0: 881b ldrh r3, [r3, #0]
  6795. 80032e2: 3303 adds r3, #3
  6796. 80032e4: 68fa ldr r2, [r7, #12]
  6797. 80032e6: 4413 add r3, r2
  6798. 80032e8: 781b ldrb r3, [r3, #0]
  6799. 80032ea: 061a lsls r2, r3, #24
  6800. 80032ec: 68bb ldr r3, [r7, #8]
  6801. 80032ee: 881b ldrh r3, [r3, #0]
  6802. 80032f0: 3302 adds r3, #2
  6803. 80032f2: 68f9 ldr r1, [r7, #12]
  6804. 80032f4: 440b add r3, r1
  6805. 80032f6: 781b ldrb r3, [r3, #0]
  6806. 80032f8: 041b lsls r3, r3, #16
  6807. 80032fa: 431a orrs r2, r3
  6808. 80032fc: 68bb ldr r3, [r7, #8]
  6809. 80032fe: 881b ldrh r3, [r3, #0]
  6810. 8003300: 3301 adds r3, #1
  6811. 8003302: 68f9 ldr r1, [r7, #12]
  6812. 8003304: 440b add r3, r1
  6813. 8003306: 781b ldrb r3, [r3, #0]
  6814. 8003308: 021b lsls r3, r3, #8
  6815. 800330a: 4313 orrs r3, r2
  6816. 800330c: 68ba ldr r2, [r7, #8]
  6817. 800330e: 8812 ldrh r2, [r2, #0]
  6818. 8003310: 4611 mov r1, r2
  6819. 8003312: 68fa ldr r2, [r7, #12]
  6820. 8003314: 440a add r2, r1
  6821. 8003316: 7812 ldrb r2, [r2, #0]
  6822. 8003318: 4313 orrs r3, r2
  6823. 800331a: 461a mov r2, r3
  6824. 800331c: 687b ldr r3, [r7, #4]
  6825. 800331e: 601a str r2, [r3, #0]
  6826. *buffPos += sizeof(uint32_t);
  6827. 8003320: 68bb ldr r3, [r7, #8]
  6828. 8003322: 881b ldrh r3, [r3, #0]
  6829. 8003324: 3304 adds r3, #4
  6830. 8003326: b29a uxth r2, r3
  6831. 8003328: 68bb ldr r3, [r7, #8]
  6832. 800332a: 801a strh r2, [r3, #0]
  6833. }
  6834. 800332c: bf00 nop
  6835. 800332e: 3714 adds r7, #20
  6836. 8003330: 46bd mov sp, r7
  6837. 8003332: f85d 7b04 ldr.w r7, [sp], #4
  6838. 8003336: 4770 bx lr
  6839. 08003338 <PrepareRespFrame>:
  6840. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6841. return txBufferPos;
  6842. }
  6843. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  6844. 8003338: b580 push {r7, lr}
  6845. 800333a: b084 sub sp, #16
  6846. 800333c: af00 add r7, sp, #0
  6847. 800333e: 6078 str r0, [r7, #4]
  6848. 8003340: 4608 mov r0, r1
  6849. 8003342: 4611 mov r1, r2
  6850. 8003344: 461a mov r2, r3
  6851. 8003346: 4603 mov r3, r0
  6852. 8003348: 807b strh r3, [r7, #2]
  6853. 800334a: 460b mov r3, r1
  6854. 800334c: 707b strb r3, [r7, #1]
  6855. 800334e: 4613 mov r3, r2
  6856. 8003350: 703b strb r3, [r7, #0]
  6857. uint16_t crc = 0;
  6858. 8003352: 2300 movs r3, #0
  6859. 8003354: 81bb strh r3, [r7, #12]
  6860. uint16_t txBufferPos = 0;
  6861. 8003356: 2300 movs r3, #0
  6862. 8003358: 81fb strh r3, [r7, #14]
  6863. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  6864. 800335a: 787b ldrb r3, [r7, #1]
  6865. 800335c: b21a sxth r2, r3
  6866. 800335e: 4b43 ldr r3, [pc, #268] @ (800346c <PrepareRespFrame+0x134>)
  6867. 8003360: 4313 orrs r3, r2
  6868. 8003362: b21b sxth r3, r3
  6869. 8003364: 817b strh r3, [r7, #10]
  6870. memset (txBuffer, 0x00, dataLength);
  6871. 8003366: 8bbb ldrh r3, [r7, #28]
  6872. 8003368: 461a mov r2, r3
  6873. 800336a: 2100 movs r1, #0
  6874. 800336c: 6878 ldr r0, [r7, #4]
  6875. 800336e: f014 fd1a bl 8017da6 <memset>
  6876. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6877. 8003372: 89fb ldrh r3, [r7, #14]
  6878. 8003374: 1c5a adds r2, r3, #1
  6879. 8003376: 81fa strh r2, [r7, #14]
  6880. 8003378: 461a mov r2, r3
  6881. 800337a: 687b ldr r3, [r7, #4]
  6882. 800337c: 4413 add r3, r2
  6883. 800337e: 22aa movs r2, #170 @ 0xaa
  6884. 8003380: 701a strb r2, [r3, #0]
  6885. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6886. 8003382: 89fb ldrh r3, [r7, #14]
  6887. 8003384: 1c5a adds r2, r3, #1
  6888. 8003386: 81fa strh r2, [r7, #14]
  6889. 8003388: 461a mov r2, r3
  6890. 800338a: 687b ldr r3, [r7, #4]
  6891. 800338c: 4413 add r3, r2
  6892. 800338e: 887a ldrh r2, [r7, #2]
  6893. 8003390: b2d2 uxtb r2, r2
  6894. 8003392: 701a strb r2, [r3, #0]
  6895. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6896. 8003394: 887b ldrh r3, [r7, #2]
  6897. 8003396: 0a1b lsrs r3, r3, #8
  6898. 8003398: b29a uxth r2, r3
  6899. 800339a: 89fb ldrh r3, [r7, #14]
  6900. 800339c: 1c59 adds r1, r3, #1
  6901. 800339e: 81f9 strh r1, [r7, #14]
  6902. 80033a0: 4619 mov r1, r3
  6903. 80033a2: 687b ldr r3, [r7, #4]
  6904. 80033a4: 440b add r3, r1
  6905. 80033a6: b2d2 uxtb r2, r2
  6906. 80033a8: 701a strb r2, [r3, #0]
  6907. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6908. 80033aa: 89fb ldrh r3, [r7, #14]
  6909. 80033ac: 1c5a adds r2, r3, #1
  6910. 80033ae: 81fa strh r2, [r7, #14]
  6911. 80033b0: 461a mov r2, r3
  6912. 80033b2: 687b ldr r3, [r7, #4]
  6913. 80033b4: 4413 add r3, r2
  6914. 80033b6: 897a ldrh r2, [r7, #10]
  6915. 80033b8: b2d2 uxtb r2, r2
  6916. 80033ba: 701a strb r2, [r3, #0]
  6917. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6918. 80033bc: 897b ldrh r3, [r7, #10]
  6919. 80033be: 0a1b lsrs r3, r3, #8
  6920. 80033c0: b29a uxth r2, r3
  6921. 80033c2: 89fb ldrh r3, [r7, #14]
  6922. 80033c4: 1c59 adds r1, r3, #1
  6923. 80033c6: 81f9 strh r1, [r7, #14]
  6924. 80033c8: 4619 mov r1, r3
  6925. 80033ca: 687b ldr r3, [r7, #4]
  6926. 80033cc: 440b add r3, r1
  6927. 80033ce: b2d2 uxtb r2, r2
  6928. 80033d0: 701a strb r2, [r3, #0]
  6929. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6930. 80033d2: 89fb ldrh r3, [r7, #14]
  6931. 80033d4: 1c5a adds r2, r3, #1
  6932. 80033d6: 81fa strh r2, [r7, #14]
  6933. 80033d8: 461a mov r2, r3
  6934. 80033da: 687b ldr r3, [r7, #4]
  6935. 80033dc: 4413 add r3, r2
  6936. 80033de: 8bba ldrh r2, [r7, #28]
  6937. 80033e0: b2d2 uxtb r2, r2
  6938. 80033e2: 701a strb r2, [r3, #0]
  6939. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6940. 80033e4: 8bbb ldrh r3, [r7, #28]
  6941. 80033e6: 0a1b lsrs r3, r3, #8
  6942. 80033e8: b29a uxth r2, r3
  6943. 80033ea: 89fb ldrh r3, [r7, #14]
  6944. 80033ec: 1c59 adds r1, r3, #1
  6945. 80033ee: 81f9 strh r1, [r7, #14]
  6946. 80033f0: 4619 mov r1, r3
  6947. 80033f2: 687b ldr r3, [r7, #4]
  6948. 80033f4: 440b add r3, r1
  6949. 80033f6: b2d2 uxtb r2, r2
  6950. 80033f8: 701a strb r2, [r3, #0]
  6951. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  6952. 80033fa: 89fb ldrh r3, [r7, #14]
  6953. 80033fc: 1c5a adds r2, r3, #1
  6954. 80033fe: 81fa strh r2, [r7, #14]
  6955. 8003400: 461a mov r2, r3
  6956. 8003402: 687b ldr r3, [r7, #4]
  6957. 8003404: 4413 add r3, r2
  6958. 8003406: 783a ldrb r2, [r7, #0]
  6959. 8003408: 701a strb r2, [r3, #0]
  6960. if (dataLength > 0) {
  6961. 800340a: 8bbb ldrh r3, [r7, #28]
  6962. 800340c: 2b00 cmp r3, #0
  6963. 800340e: d00b beq.n 8003428 <PrepareRespFrame+0xf0>
  6964. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6965. 8003410: 89fb ldrh r3, [r7, #14]
  6966. 8003412: 687a ldr r2, [r7, #4]
  6967. 8003414: 4413 add r3, r2
  6968. 8003416: 8bba ldrh r2, [r7, #28]
  6969. 8003418: 69b9 ldr r1, [r7, #24]
  6970. 800341a: 4618 mov r0, r3
  6971. 800341c: f014 fd95 bl 8017f4a <memcpy>
  6972. txBufferPos += dataLength;
  6973. 8003420: 89fa ldrh r2, [r7, #14]
  6974. 8003422: 8bbb ldrh r3, [r7, #28]
  6975. 8003424: 4413 add r3, r2
  6976. 8003426: 81fb strh r3, [r7, #14]
  6977. }
  6978. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6979. 8003428: 89fb ldrh r3, [r7, #14]
  6980. 800342a: 461a mov r2, r3
  6981. 800342c: 6879 ldr r1, [r7, #4]
  6982. 800342e: 4810 ldr r0, [pc, #64] @ (8003470 <PrepareRespFrame+0x138>)
  6983. 8003430: f004 f844 bl 80074bc <HAL_CRC_Calculate>
  6984. 8003434: 4603 mov r3, r0
  6985. 8003436: 81bb strh r3, [r7, #12]
  6986. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6987. 8003438: 89fb ldrh r3, [r7, #14]
  6988. 800343a: 1c5a adds r2, r3, #1
  6989. 800343c: 81fa strh r2, [r7, #14]
  6990. 800343e: 461a mov r2, r3
  6991. 8003440: 687b ldr r3, [r7, #4]
  6992. 8003442: 4413 add r3, r2
  6993. 8003444: 89ba ldrh r2, [r7, #12]
  6994. 8003446: b2d2 uxtb r2, r2
  6995. 8003448: 701a strb r2, [r3, #0]
  6996. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6997. 800344a: 89bb ldrh r3, [r7, #12]
  6998. 800344c: 0a1b lsrs r3, r3, #8
  6999. 800344e: b29a uxth r2, r3
  7000. 8003450: 89fb ldrh r3, [r7, #14]
  7001. 8003452: 1c59 adds r1, r3, #1
  7002. 8003454: 81f9 strh r1, [r7, #14]
  7003. 8003456: 4619 mov r1, r3
  7004. 8003458: 687b ldr r3, [r7, #4]
  7005. 800345a: 440b add r3, r1
  7006. 800345c: b2d2 uxtb r2, r2
  7007. 800345e: 701a strb r2, [r3, #0]
  7008. return txBufferPos;
  7009. 8003460: 89fb ldrh r3, [r7, #14]
  7010. }
  7011. 8003462: 4618 mov r0, r3
  7012. 8003464: 3710 adds r7, #16
  7013. 8003466: 46bd mov sp, r7
  7014. 8003468: bd80 pop {r7, pc}
  7015. 800346a: bf00 nop
  7016. 800346c: ffff8000 .word 0xffff8000
  7017. 8003470: 24000400 .word 0x24000400
  7018. 08003474 <HAL_MspInit>:
  7019. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  7020. /**
  7021. * Initializes the Global MSP.
  7022. */
  7023. void HAL_MspInit(void)
  7024. {
  7025. 8003474: b580 push {r7, lr}
  7026. 8003476: b086 sub sp, #24
  7027. 8003478: af00 add r7, sp, #0
  7028. /* USER CODE BEGIN MspInit 0 */
  7029. /* USER CODE END MspInit 0 */
  7030. PWREx_AVDTypeDef sConfigAVD = {0};
  7031. 800347a: f107 0310 add.w r3, r7, #16
  7032. 800347e: 2200 movs r2, #0
  7033. 8003480: 601a str r2, [r3, #0]
  7034. 8003482: 605a str r2, [r3, #4]
  7035. PWR_PVDTypeDef sConfigPVD = {0};
  7036. 8003484: f107 0308 add.w r3, r7, #8
  7037. 8003488: 2200 movs r2, #0
  7038. 800348a: 601a str r2, [r3, #0]
  7039. 800348c: 605a str r2, [r3, #4]
  7040. __HAL_RCC_SYSCFG_CLK_ENABLE();
  7041. 800348e: 4b26 ldr r3, [pc, #152] @ (8003528 <HAL_MspInit+0xb4>)
  7042. 8003490: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7043. 8003494: 4a24 ldr r2, [pc, #144] @ (8003528 <HAL_MspInit+0xb4>)
  7044. 8003496: f043 0302 orr.w r3, r3, #2
  7045. 800349a: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7046. 800349e: 4b22 ldr r3, [pc, #136] @ (8003528 <HAL_MspInit+0xb4>)
  7047. 80034a0: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7048. 80034a4: f003 0302 and.w r3, r3, #2
  7049. 80034a8: 607b str r3, [r7, #4]
  7050. 80034aa: 687b ldr r3, [r7, #4]
  7051. /* System interrupt init*/
  7052. /* PendSV_IRQn interrupt configuration */
  7053. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  7054. 80034ac: 2200 movs r2, #0
  7055. 80034ae: 210f movs r1, #15
  7056. 80034b0: f06f 0001 mvn.w r0, #1
  7057. 80034b4: f003 fefe bl 80072b4 <HAL_NVIC_SetPriority>
  7058. /* Peripheral interrupt init */
  7059. /* RCC_IRQn interrupt configuration */
  7060. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  7061. 80034b8: 2200 movs r2, #0
  7062. 80034ba: 2105 movs r1, #5
  7063. 80034bc: 2005 movs r0, #5
  7064. 80034be: f003 fef9 bl 80072b4 <HAL_NVIC_SetPriority>
  7065. HAL_NVIC_EnableIRQ(RCC_IRQn);
  7066. 80034c2: 2005 movs r0, #5
  7067. 80034c4: f003 ff10 bl 80072e8 <HAL_NVIC_EnableIRQ>
  7068. /** AVD Configuration
  7069. */
  7070. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  7071. 80034c8: f44f 23c0 mov.w r3, #393216 @ 0x60000
  7072. 80034cc: 613b str r3, [r7, #16]
  7073. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  7074. 80034ce: 2300 movs r3, #0
  7075. 80034d0: 617b str r3, [r7, #20]
  7076. HAL_PWREx_ConfigAVD(&sConfigAVD);
  7077. 80034d2: f107 0310 add.w r3, r7, #16
  7078. 80034d6: 4618 mov r0, r3
  7079. 80034d8: f007 fd56 bl 800af88 <HAL_PWREx_ConfigAVD>
  7080. /** Enable the AVD Output
  7081. */
  7082. HAL_PWREx_EnableAVD();
  7083. 80034dc: f007 fdca bl 800b074 <HAL_PWREx_EnableAVD>
  7084. /** PVD Configuration
  7085. */
  7086. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  7087. 80034e0: 23c0 movs r3, #192 @ 0xc0
  7088. 80034e2: 60bb str r3, [r7, #8]
  7089. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  7090. 80034e4: 2300 movs r3, #0
  7091. 80034e6: 60fb str r3, [r7, #12]
  7092. HAL_PWR_ConfigPVD(&sConfigPVD);
  7093. 80034e8: f107 0308 add.w r3, r7, #8
  7094. 80034ec: 4618 mov r0, r3
  7095. 80034ee: f007 fc87 bl 800ae00 <HAL_PWR_ConfigPVD>
  7096. /** Enable the PVD Output
  7097. */
  7098. HAL_PWR_EnablePVD();
  7099. 80034f2: f007 fcff bl 800aef4 <HAL_PWR_EnablePVD>
  7100. /** Enable the VREF clock
  7101. */
  7102. __HAL_RCC_VREF_CLK_ENABLE();
  7103. 80034f6: 4b0c ldr r3, [pc, #48] @ (8003528 <HAL_MspInit+0xb4>)
  7104. 80034f8: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7105. 80034fc: 4a0a ldr r2, [pc, #40] @ (8003528 <HAL_MspInit+0xb4>)
  7106. 80034fe: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  7107. 8003502: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7108. 8003506: 4b08 ldr r3, [pc, #32] @ (8003528 <HAL_MspInit+0xb4>)
  7109. 8003508: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7110. 800350c: f403 4300 and.w r3, r3, #32768 @ 0x8000
  7111. 8003510: 603b str r3, [r7, #0]
  7112. 8003512: 683b ldr r3, [r7, #0]
  7113. /** Disable the Internal Voltage Reference buffer
  7114. */
  7115. HAL_SYSCFG_DisableVREFBUF();
  7116. 8003514: f002 f854 bl 80055c0 <HAL_SYSCFG_DisableVREFBUF>
  7117. /** Configure the internal voltage reference buffer high impedance mode
  7118. */
  7119. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  7120. 8003518: 2002 movs r0, #2
  7121. 800351a: f002 f83d bl 8005598 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  7122. /* USER CODE BEGIN MspInit 1 */
  7123. /* USER CODE END MspInit 1 */
  7124. }
  7125. 800351e: bf00 nop
  7126. 8003520: 3718 adds r7, #24
  7127. 8003522: 46bd mov sp, r7
  7128. 8003524: bd80 pop {r7, pc}
  7129. 8003526: bf00 nop
  7130. 8003528: 58024400 .word 0x58024400
  7131. 0800352c <HAL_ADC_MspInit>:
  7132. * This function configures the hardware resources used in this example
  7133. * @param hadc: ADC handle pointer
  7134. * @retval None
  7135. */
  7136. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  7137. {
  7138. 800352c: b580 push {r7, lr}
  7139. 800352e: b092 sub sp, #72 @ 0x48
  7140. 8003530: af00 add r7, sp, #0
  7141. 8003532: 6078 str r0, [r7, #4]
  7142. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7143. 8003534: f107 0334 add.w r3, r7, #52 @ 0x34
  7144. 8003538: 2200 movs r2, #0
  7145. 800353a: 601a str r2, [r3, #0]
  7146. 800353c: 605a str r2, [r3, #4]
  7147. 800353e: 609a str r2, [r3, #8]
  7148. 8003540: 60da str r2, [r3, #12]
  7149. 8003542: 611a str r2, [r3, #16]
  7150. if(hadc->Instance==ADC1)
  7151. 8003544: 687b ldr r3, [r7, #4]
  7152. 8003546: 681b ldr r3, [r3, #0]
  7153. 8003548: 4a9d ldr r2, [pc, #628] @ (80037c0 <HAL_ADC_MspInit+0x294>)
  7154. 800354a: 4293 cmp r3, r2
  7155. 800354c: f040 8099 bne.w 8003682 <HAL_ADC_MspInit+0x156>
  7156. {
  7157. /* USER CODE BEGIN ADC1_MspInit 0 */
  7158. /* USER CODE END ADC1_MspInit 0 */
  7159. /* Peripheral clock enable */
  7160. HAL_RCC_ADC12_CLK_ENABLED++;
  7161. 8003550: 4b9c ldr r3, [pc, #624] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7162. 8003552: 681b ldr r3, [r3, #0]
  7163. 8003554: 3301 adds r3, #1
  7164. 8003556: 4a9b ldr r2, [pc, #620] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7165. 8003558: 6013 str r3, [r2, #0]
  7166. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  7167. 800355a: 4b9a ldr r3, [pc, #616] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7168. 800355c: 681b ldr r3, [r3, #0]
  7169. 800355e: 2b01 cmp r3, #1
  7170. 8003560: d10e bne.n 8003580 <HAL_ADC_MspInit+0x54>
  7171. __HAL_RCC_ADC12_CLK_ENABLE();
  7172. 8003562: 4b99 ldr r3, [pc, #612] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7173. 8003564: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7174. 8003568: 4a97 ldr r2, [pc, #604] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7175. 800356a: f043 0320 orr.w r3, r3, #32
  7176. 800356e: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  7177. 8003572: 4b95 ldr r3, [pc, #596] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7178. 8003574: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7179. 8003578: f003 0320 and.w r3, r3, #32
  7180. 800357c: 633b str r3, [r7, #48] @ 0x30
  7181. 800357e: 6b3b ldr r3, [r7, #48] @ 0x30
  7182. }
  7183. __HAL_RCC_GPIOA_CLK_ENABLE();
  7184. 8003580: 4b91 ldr r3, [pc, #580] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7185. 8003582: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7186. 8003586: 4a90 ldr r2, [pc, #576] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7187. 8003588: f043 0301 orr.w r3, r3, #1
  7188. 800358c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7189. 8003590: 4b8d ldr r3, [pc, #564] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7190. 8003592: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7191. 8003596: f003 0301 and.w r3, r3, #1
  7192. 800359a: 62fb str r3, [r7, #44] @ 0x2c
  7193. 800359c: 6afb ldr r3, [r7, #44] @ 0x2c
  7194. __HAL_RCC_GPIOC_CLK_ENABLE();
  7195. 800359e: 4b8a ldr r3, [pc, #552] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7196. 80035a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7197. 80035a4: 4a88 ldr r2, [pc, #544] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7198. 80035a6: f043 0304 orr.w r3, r3, #4
  7199. 80035aa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7200. 80035ae: 4b86 ldr r3, [pc, #536] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7201. 80035b0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7202. 80035b4: f003 0304 and.w r3, r3, #4
  7203. 80035b8: 62bb str r3, [r7, #40] @ 0x28
  7204. 80035ba: 6abb ldr r3, [r7, #40] @ 0x28
  7205. __HAL_RCC_GPIOB_CLK_ENABLE();
  7206. 80035bc: 4b82 ldr r3, [pc, #520] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7207. 80035be: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7208. 80035c2: 4a81 ldr r2, [pc, #516] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7209. 80035c4: f043 0302 orr.w r3, r3, #2
  7210. 80035c8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7211. 80035cc: 4b7e ldr r3, [pc, #504] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7212. 80035ce: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7213. 80035d2: f003 0302 and.w r3, r3, #2
  7214. 80035d6: 627b str r3, [r7, #36] @ 0x24
  7215. 80035d8: 6a7b ldr r3, [r7, #36] @ 0x24
  7216. PA3 ------> ADC1_INP15
  7217. PA7 ------> ADC1_INP7
  7218. PC5 ------> ADC1_INP8
  7219. PB0 ------> ADC1_INP9
  7220. */
  7221. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  7222. 80035da: 238f movs r3, #143 @ 0x8f
  7223. 80035dc: 637b str r3, [r7, #52] @ 0x34
  7224. |GPIO_PIN_7;
  7225. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7226. 80035de: 2303 movs r3, #3
  7227. 80035e0: 63bb str r3, [r7, #56] @ 0x38
  7228. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7229. 80035e2: 2300 movs r3, #0
  7230. 80035e4: 63fb str r3, [r7, #60] @ 0x3c
  7231. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7232. 80035e6: f107 0334 add.w r3, r7, #52 @ 0x34
  7233. 80035ea: 4619 mov r1, r3
  7234. 80035ec: 4877 ldr r0, [pc, #476] @ (80037cc <HAL_ADC_MspInit+0x2a0>)
  7235. 80035ee: f007 f993 bl 800a918 <HAL_GPIO_Init>
  7236. GPIO_InitStruct.Pin = GPIO_PIN_5;
  7237. 80035f2: 2320 movs r3, #32
  7238. 80035f4: 637b str r3, [r7, #52] @ 0x34
  7239. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7240. 80035f6: 2303 movs r3, #3
  7241. 80035f8: 63bb str r3, [r7, #56] @ 0x38
  7242. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7243. 80035fa: 2300 movs r3, #0
  7244. 80035fc: 63fb str r3, [r7, #60] @ 0x3c
  7245. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7246. 80035fe: f107 0334 add.w r3, r7, #52 @ 0x34
  7247. 8003602: 4619 mov r1, r3
  7248. 8003604: 4872 ldr r0, [pc, #456] @ (80037d0 <HAL_ADC_MspInit+0x2a4>)
  7249. 8003606: f007 f987 bl 800a918 <HAL_GPIO_Init>
  7250. GPIO_InitStruct.Pin = GPIO_PIN_0;
  7251. 800360a: 2301 movs r3, #1
  7252. 800360c: 637b str r3, [r7, #52] @ 0x34
  7253. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7254. 800360e: 2303 movs r3, #3
  7255. 8003610: 63bb str r3, [r7, #56] @ 0x38
  7256. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7257. 8003612: 2300 movs r3, #0
  7258. 8003614: 63fb str r3, [r7, #60] @ 0x3c
  7259. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7260. 8003616: f107 0334 add.w r3, r7, #52 @ 0x34
  7261. 800361a: 4619 mov r1, r3
  7262. 800361c: 486d ldr r0, [pc, #436] @ (80037d4 <HAL_ADC_MspInit+0x2a8>)
  7263. 800361e: f007 f97b bl 800a918 <HAL_GPIO_Init>
  7264. /* ADC1 DMA Init */
  7265. /* ADC1 Init */
  7266. hdma_adc1.Instance = DMA1_Stream0;
  7267. 8003622: 4b6d ldr r3, [pc, #436] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7268. 8003624: 4a6d ldr r2, [pc, #436] @ (80037dc <HAL_ADC_MspInit+0x2b0>)
  7269. 8003626: 601a str r2, [r3, #0]
  7270. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  7271. 8003628: 4b6b ldr r3, [pc, #428] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7272. 800362a: 2209 movs r2, #9
  7273. 800362c: 605a str r2, [r3, #4]
  7274. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7275. 800362e: 4b6a ldr r3, [pc, #424] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7276. 8003630: 2200 movs r2, #0
  7277. 8003632: 609a str r2, [r3, #8]
  7278. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  7279. 8003634: 4b68 ldr r3, [pc, #416] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7280. 8003636: 2200 movs r2, #0
  7281. 8003638: 60da str r2, [r3, #12]
  7282. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  7283. 800363a: 4b67 ldr r3, [pc, #412] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7284. 800363c: f44f 6280 mov.w r2, #1024 @ 0x400
  7285. 8003640: 611a str r2, [r3, #16]
  7286. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7287. 8003642: 4b65 ldr r3, [pc, #404] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7288. 8003644: f44f 6200 mov.w r2, #2048 @ 0x800
  7289. 8003648: 615a str r2, [r3, #20]
  7290. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7291. 800364a: 4b63 ldr r3, [pc, #396] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7292. 800364c: f44f 5200 mov.w r2, #8192 @ 0x2000
  7293. 8003650: 619a str r2, [r3, #24]
  7294. hdma_adc1.Init.Mode = DMA_NORMAL;
  7295. 8003652: 4b61 ldr r3, [pc, #388] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7296. 8003654: 2200 movs r2, #0
  7297. 8003656: 61da str r2, [r3, #28]
  7298. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  7299. 8003658: 4b5f ldr r3, [pc, #380] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7300. 800365a: 2200 movs r2, #0
  7301. 800365c: 621a str r2, [r3, #32]
  7302. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7303. 800365e: 4b5e ldr r3, [pc, #376] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7304. 8003660: 2200 movs r2, #0
  7305. 8003662: 625a str r2, [r3, #36] @ 0x24
  7306. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  7307. 8003664: 485c ldr r0, [pc, #368] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7308. 8003666: f004 fb1b bl 8007ca0 <HAL_DMA_Init>
  7309. 800366a: 4603 mov r3, r0
  7310. 800366c: 2b00 cmp r3, #0
  7311. 800366e: d001 beq.n 8003674 <HAL_ADC_MspInit+0x148>
  7312. {
  7313. Error_Handler();
  7314. 8003670: f7fe fc8a bl 8001f88 <Error_Handler>
  7315. }
  7316. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  7317. 8003674: 687b ldr r3, [r7, #4]
  7318. 8003676: 4a58 ldr r2, [pc, #352] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7319. 8003678: 64da str r2, [r3, #76] @ 0x4c
  7320. 800367a: 4a57 ldr r2, [pc, #348] @ (80037d8 <HAL_ADC_MspInit+0x2ac>)
  7321. 800367c: 687b ldr r3, [r7, #4]
  7322. 800367e: 6393 str r3, [r2, #56] @ 0x38
  7323. /* USER CODE BEGIN ADC3_MspInit 1 */
  7324. /* USER CODE END ADC3_MspInit 1 */
  7325. }
  7326. }
  7327. 8003680: e11e b.n 80038c0 <HAL_ADC_MspInit+0x394>
  7328. else if(hadc->Instance==ADC2)
  7329. 8003682: 687b ldr r3, [r7, #4]
  7330. 8003684: 681b ldr r3, [r3, #0]
  7331. 8003686: 4a56 ldr r2, [pc, #344] @ (80037e0 <HAL_ADC_MspInit+0x2b4>)
  7332. 8003688: 4293 cmp r3, r2
  7333. 800368a: f040 80af bne.w 80037ec <HAL_ADC_MspInit+0x2c0>
  7334. HAL_RCC_ADC12_CLK_ENABLED++;
  7335. 800368e: 4b4d ldr r3, [pc, #308] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7336. 8003690: 681b ldr r3, [r3, #0]
  7337. 8003692: 3301 adds r3, #1
  7338. 8003694: 4a4b ldr r2, [pc, #300] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7339. 8003696: 6013 str r3, [r2, #0]
  7340. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  7341. 8003698: 4b4a ldr r3, [pc, #296] @ (80037c4 <HAL_ADC_MspInit+0x298>)
  7342. 800369a: 681b ldr r3, [r3, #0]
  7343. 800369c: 2b01 cmp r3, #1
  7344. 800369e: d10e bne.n 80036be <HAL_ADC_MspInit+0x192>
  7345. __HAL_RCC_ADC12_CLK_ENABLE();
  7346. 80036a0: 4b49 ldr r3, [pc, #292] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7347. 80036a2: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7348. 80036a6: 4a48 ldr r2, [pc, #288] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7349. 80036a8: f043 0320 orr.w r3, r3, #32
  7350. 80036ac: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  7351. 80036b0: 4b45 ldr r3, [pc, #276] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7352. 80036b2: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7353. 80036b6: f003 0320 and.w r3, r3, #32
  7354. 80036ba: 623b str r3, [r7, #32]
  7355. 80036bc: 6a3b ldr r3, [r7, #32]
  7356. __HAL_RCC_GPIOA_CLK_ENABLE();
  7357. 80036be: 4b42 ldr r3, [pc, #264] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7358. 80036c0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7359. 80036c4: 4a40 ldr r2, [pc, #256] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7360. 80036c6: f043 0301 orr.w r3, r3, #1
  7361. 80036ca: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7362. 80036ce: 4b3e ldr r3, [pc, #248] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7363. 80036d0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7364. 80036d4: f003 0301 and.w r3, r3, #1
  7365. 80036d8: 61fb str r3, [r7, #28]
  7366. 80036da: 69fb ldr r3, [r7, #28]
  7367. __HAL_RCC_GPIOC_CLK_ENABLE();
  7368. 80036dc: 4b3a ldr r3, [pc, #232] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7369. 80036de: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7370. 80036e2: 4a39 ldr r2, [pc, #228] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7371. 80036e4: f043 0304 orr.w r3, r3, #4
  7372. 80036e8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7373. 80036ec: 4b36 ldr r3, [pc, #216] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7374. 80036ee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7375. 80036f2: f003 0304 and.w r3, r3, #4
  7376. 80036f6: 61bb str r3, [r7, #24]
  7377. 80036f8: 69bb ldr r3, [r7, #24]
  7378. __HAL_RCC_GPIOB_CLK_ENABLE();
  7379. 80036fa: 4b33 ldr r3, [pc, #204] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7380. 80036fc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7381. 8003700: 4a31 ldr r2, [pc, #196] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7382. 8003702: f043 0302 orr.w r3, r3, #2
  7383. 8003706: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7384. 800370a: 4b2f ldr r3, [pc, #188] @ (80037c8 <HAL_ADC_MspInit+0x29c>)
  7385. 800370c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7386. 8003710: f003 0302 and.w r3, r3, #2
  7387. 8003714: 617b str r3, [r7, #20]
  7388. 8003716: 697b ldr r3, [r7, #20]
  7389. GPIO_InitStruct.Pin = GPIO_PIN_6;
  7390. 8003718: 2340 movs r3, #64 @ 0x40
  7391. 800371a: 637b str r3, [r7, #52] @ 0x34
  7392. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7393. 800371c: 2303 movs r3, #3
  7394. 800371e: 63bb str r3, [r7, #56] @ 0x38
  7395. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7396. 8003720: 2300 movs r3, #0
  7397. 8003722: 63fb str r3, [r7, #60] @ 0x3c
  7398. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7399. 8003724: f107 0334 add.w r3, r7, #52 @ 0x34
  7400. 8003728: 4619 mov r1, r3
  7401. 800372a: 4828 ldr r0, [pc, #160] @ (80037cc <HAL_ADC_MspInit+0x2a0>)
  7402. 800372c: f007 f8f4 bl 800a918 <HAL_GPIO_Init>
  7403. GPIO_InitStruct.Pin = GPIO_PIN_4;
  7404. 8003730: 2310 movs r3, #16
  7405. 8003732: 637b str r3, [r7, #52] @ 0x34
  7406. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7407. 8003734: 2303 movs r3, #3
  7408. 8003736: 63bb str r3, [r7, #56] @ 0x38
  7409. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7410. 8003738: 2300 movs r3, #0
  7411. 800373a: 63fb str r3, [r7, #60] @ 0x3c
  7412. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7413. 800373c: f107 0334 add.w r3, r7, #52 @ 0x34
  7414. 8003740: 4619 mov r1, r3
  7415. 8003742: 4823 ldr r0, [pc, #140] @ (80037d0 <HAL_ADC_MspInit+0x2a4>)
  7416. 8003744: f007 f8e8 bl 800a918 <HAL_GPIO_Init>
  7417. GPIO_InitStruct.Pin = GPIO_PIN_1;
  7418. 8003748: 2302 movs r3, #2
  7419. 800374a: 637b str r3, [r7, #52] @ 0x34
  7420. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7421. 800374c: 2303 movs r3, #3
  7422. 800374e: 63bb str r3, [r7, #56] @ 0x38
  7423. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7424. 8003750: 2300 movs r3, #0
  7425. 8003752: 63fb str r3, [r7, #60] @ 0x3c
  7426. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7427. 8003754: f107 0334 add.w r3, r7, #52 @ 0x34
  7428. 8003758: 4619 mov r1, r3
  7429. 800375a: 481e ldr r0, [pc, #120] @ (80037d4 <HAL_ADC_MspInit+0x2a8>)
  7430. 800375c: f007 f8dc bl 800a918 <HAL_GPIO_Init>
  7431. hdma_adc2.Instance = DMA1_Stream1;
  7432. 8003760: 4b20 ldr r3, [pc, #128] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7433. 8003762: 4a21 ldr r2, [pc, #132] @ (80037e8 <HAL_ADC_MspInit+0x2bc>)
  7434. 8003764: 601a str r2, [r3, #0]
  7435. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  7436. 8003766: 4b1f ldr r3, [pc, #124] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7437. 8003768: 220a movs r2, #10
  7438. 800376a: 605a str r2, [r3, #4]
  7439. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7440. 800376c: 4b1d ldr r3, [pc, #116] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7441. 800376e: 2200 movs r2, #0
  7442. 8003770: 609a str r2, [r3, #8]
  7443. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  7444. 8003772: 4b1c ldr r3, [pc, #112] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7445. 8003774: 2200 movs r2, #0
  7446. 8003776: 60da str r2, [r3, #12]
  7447. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  7448. 8003778: 4b1a ldr r3, [pc, #104] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7449. 800377a: f44f 6280 mov.w r2, #1024 @ 0x400
  7450. 800377e: 611a str r2, [r3, #16]
  7451. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7452. 8003780: 4b18 ldr r3, [pc, #96] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7453. 8003782: f44f 6200 mov.w r2, #2048 @ 0x800
  7454. 8003786: 615a str r2, [r3, #20]
  7455. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7456. 8003788: 4b16 ldr r3, [pc, #88] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7457. 800378a: f44f 5200 mov.w r2, #8192 @ 0x2000
  7458. 800378e: 619a str r2, [r3, #24]
  7459. hdma_adc2.Init.Mode = DMA_NORMAL;
  7460. 8003790: 4b14 ldr r3, [pc, #80] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7461. 8003792: 2200 movs r2, #0
  7462. 8003794: 61da str r2, [r3, #28]
  7463. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  7464. 8003796: 4b13 ldr r3, [pc, #76] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7465. 8003798: 2200 movs r2, #0
  7466. 800379a: 621a str r2, [r3, #32]
  7467. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7468. 800379c: 4b11 ldr r3, [pc, #68] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7469. 800379e: 2200 movs r2, #0
  7470. 80037a0: 625a str r2, [r3, #36] @ 0x24
  7471. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  7472. 80037a2: 4810 ldr r0, [pc, #64] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7473. 80037a4: f004 fa7c bl 8007ca0 <HAL_DMA_Init>
  7474. 80037a8: 4603 mov r3, r0
  7475. 80037aa: 2b00 cmp r3, #0
  7476. 80037ac: d001 beq.n 80037b2 <HAL_ADC_MspInit+0x286>
  7477. Error_Handler();
  7478. 80037ae: f7fe fbeb bl 8001f88 <Error_Handler>
  7479. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  7480. 80037b2: 687b ldr r3, [r7, #4]
  7481. 80037b4: 4a0b ldr r2, [pc, #44] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7482. 80037b6: 64da str r2, [r3, #76] @ 0x4c
  7483. 80037b8: 4a0a ldr r2, [pc, #40] @ (80037e4 <HAL_ADC_MspInit+0x2b8>)
  7484. 80037ba: 687b ldr r3, [r7, #4]
  7485. 80037bc: 6393 str r3, [r2, #56] @ 0x38
  7486. }
  7487. 80037be: e07f b.n 80038c0 <HAL_ADC_MspInit+0x394>
  7488. 80037c0: 40022000 .word 0x40022000
  7489. 80037c4: 240008b4 .word 0x240008b4
  7490. 80037c8: 58024400 .word 0x58024400
  7491. 80037cc: 58020000 .word 0x58020000
  7492. 80037d0: 58020800 .word 0x58020800
  7493. 80037d4: 58020400 .word 0x58020400
  7494. 80037d8: 2400026c .word 0x2400026c
  7495. 80037dc: 40020010 .word 0x40020010
  7496. 80037e0: 40022100 .word 0x40022100
  7497. 80037e4: 240002e4 .word 0x240002e4
  7498. 80037e8: 40020028 .word 0x40020028
  7499. else if(hadc->Instance==ADC3)
  7500. 80037ec: 687b ldr r3, [r7, #4]
  7501. 80037ee: 681b ldr r3, [r3, #0]
  7502. 80037f0: 4a35 ldr r2, [pc, #212] @ (80038c8 <HAL_ADC_MspInit+0x39c>)
  7503. 80037f2: 4293 cmp r3, r2
  7504. 80037f4: d164 bne.n 80038c0 <HAL_ADC_MspInit+0x394>
  7505. __HAL_RCC_ADC3_CLK_ENABLE();
  7506. 80037f6: 4b35 ldr r3, [pc, #212] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7507. 80037f8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7508. 80037fc: 4a33 ldr r2, [pc, #204] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7509. 80037fe: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  7510. 8003802: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7511. 8003806: 4b31 ldr r3, [pc, #196] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7512. 8003808: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7513. 800380c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  7514. 8003810: 613b str r3, [r7, #16]
  7515. 8003812: 693b ldr r3, [r7, #16]
  7516. __HAL_RCC_GPIOC_CLK_ENABLE();
  7517. 8003814: 4b2d ldr r3, [pc, #180] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7518. 8003816: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7519. 800381a: 4a2c ldr r2, [pc, #176] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7520. 800381c: f043 0304 orr.w r3, r3, #4
  7521. 8003820: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7522. 8003824: 4b29 ldr r3, [pc, #164] @ (80038cc <HAL_ADC_MspInit+0x3a0>)
  7523. 8003826: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7524. 800382a: f003 0304 and.w r3, r3, #4
  7525. 800382e: 60fb str r3, [r7, #12]
  7526. 8003830: 68fb ldr r3, [r7, #12]
  7527. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7528. 8003832: 2303 movs r3, #3
  7529. 8003834: 637b str r3, [r7, #52] @ 0x34
  7530. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7531. 8003836: 2303 movs r3, #3
  7532. 8003838: 63bb str r3, [r7, #56] @ 0x38
  7533. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7534. 800383a: 2300 movs r3, #0
  7535. 800383c: 63fb str r3, [r7, #60] @ 0x3c
  7536. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7537. 800383e: f107 0334 add.w r3, r7, #52 @ 0x34
  7538. 8003842: 4619 mov r1, r3
  7539. 8003844: 4822 ldr r0, [pc, #136] @ (80038d0 <HAL_ADC_MspInit+0x3a4>)
  7540. 8003846: f007 f867 bl 800a918 <HAL_GPIO_Init>
  7541. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  7542. 800384a: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  7543. 800384e: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  7544. 8003852: f001 fec5 bl 80055e0 <HAL_SYSCFG_AnalogSwitchConfig>
  7545. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  7546. 8003856: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  7547. 800385a: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  7548. 800385e: f001 febf bl 80055e0 <HAL_SYSCFG_AnalogSwitchConfig>
  7549. hdma_adc3.Instance = DMA1_Stream2;
  7550. 8003862: 4b1c ldr r3, [pc, #112] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7551. 8003864: 4a1c ldr r2, [pc, #112] @ (80038d8 <HAL_ADC_MspInit+0x3ac>)
  7552. 8003866: 601a str r2, [r3, #0]
  7553. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  7554. 8003868: 4b1a ldr r3, [pc, #104] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7555. 800386a: 2273 movs r2, #115 @ 0x73
  7556. 800386c: 605a str r2, [r3, #4]
  7557. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7558. 800386e: 4b19 ldr r3, [pc, #100] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7559. 8003870: 2200 movs r2, #0
  7560. 8003872: 609a str r2, [r3, #8]
  7561. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  7562. 8003874: 4b17 ldr r3, [pc, #92] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7563. 8003876: 2200 movs r2, #0
  7564. 8003878: 60da str r2, [r3, #12]
  7565. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  7566. 800387a: 4b16 ldr r3, [pc, #88] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7567. 800387c: f44f 6280 mov.w r2, #1024 @ 0x400
  7568. 8003880: 611a str r2, [r3, #16]
  7569. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7570. 8003882: 4b14 ldr r3, [pc, #80] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7571. 8003884: f44f 6200 mov.w r2, #2048 @ 0x800
  7572. 8003888: 615a str r2, [r3, #20]
  7573. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7574. 800388a: 4b12 ldr r3, [pc, #72] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7575. 800388c: f44f 5200 mov.w r2, #8192 @ 0x2000
  7576. 8003890: 619a str r2, [r3, #24]
  7577. hdma_adc3.Init.Mode = DMA_NORMAL;
  7578. 8003892: 4b10 ldr r3, [pc, #64] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7579. 8003894: 2200 movs r2, #0
  7580. 8003896: 61da str r2, [r3, #28]
  7581. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  7582. 8003898: 4b0e ldr r3, [pc, #56] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7583. 800389a: 2200 movs r2, #0
  7584. 800389c: 621a str r2, [r3, #32]
  7585. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7586. 800389e: 4b0d ldr r3, [pc, #52] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7587. 80038a0: 2200 movs r2, #0
  7588. 80038a2: 625a str r2, [r3, #36] @ 0x24
  7589. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  7590. 80038a4: 480b ldr r0, [pc, #44] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7591. 80038a6: f004 f9fb bl 8007ca0 <HAL_DMA_Init>
  7592. 80038aa: 4603 mov r3, r0
  7593. 80038ac: 2b00 cmp r3, #0
  7594. 80038ae: d001 beq.n 80038b4 <HAL_ADC_MspInit+0x388>
  7595. Error_Handler();
  7596. 80038b0: f7fe fb6a bl 8001f88 <Error_Handler>
  7597. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  7598. 80038b4: 687b ldr r3, [r7, #4]
  7599. 80038b6: 4a07 ldr r2, [pc, #28] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7600. 80038b8: 64da str r2, [r3, #76] @ 0x4c
  7601. 80038ba: 4a06 ldr r2, [pc, #24] @ (80038d4 <HAL_ADC_MspInit+0x3a8>)
  7602. 80038bc: 687b ldr r3, [r7, #4]
  7603. 80038be: 6393 str r3, [r2, #56] @ 0x38
  7604. }
  7605. 80038c0: bf00 nop
  7606. 80038c2: 3748 adds r7, #72 @ 0x48
  7607. 80038c4: 46bd mov sp, r7
  7608. 80038c6: bd80 pop {r7, pc}
  7609. 80038c8: 58026000 .word 0x58026000
  7610. 80038cc: 58024400 .word 0x58024400
  7611. 80038d0: 58020800 .word 0x58020800
  7612. 80038d4: 2400035c .word 0x2400035c
  7613. 80038d8: 40020040 .word 0x40020040
  7614. 080038dc <HAL_COMP_MspInit>:
  7615. * This function configures the hardware resources used in this example
  7616. * @param hcomp: COMP handle pointer
  7617. * @retval None
  7618. */
  7619. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  7620. {
  7621. 80038dc: b580 push {r7, lr}
  7622. 80038de: b08a sub sp, #40 @ 0x28
  7623. 80038e0: af00 add r7, sp, #0
  7624. 80038e2: 6078 str r0, [r7, #4]
  7625. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7626. 80038e4: f107 0314 add.w r3, r7, #20
  7627. 80038e8: 2200 movs r2, #0
  7628. 80038ea: 601a str r2, [r3, #0]
  7629. 80038ec: 605a str r2, [r3, #4]
  7630. 80038ee: 609a str r2, [r3, #8]
  7631. 80038f0: 60da str r2, [r3, #12]
  7632. 80038f2: 611a str r2, [r3, #16]
  7633. if(hcomp->Instance==COMP1)
  7634. 80038f4: 687b ldr r3, [r7, #4]
  7635. 80038f6: 681b ldr r3, [r3, #0]
  7636. 80038f8: 4a18 ldr r2, [pc, #96] @ (800395c <HAL_COMP_MspInit+0x80>)
  7637. 80038fa: 4293 cmp r3, r2
  7638. 80038fc: d129 bne.n 8003952 <HAL_COMP_MspInit+0x76>
  7639. {
  7640. /* USER CODE BEGIN COMP1_MspInit 0 */
  7641. /* USER CODE END COMP1_MspInit 0 */
  7642. /* Peripheral clock enable */
  7643. __HAL_RCC_COMP12_CLK_ENABLE();
  7644. 80038fe: 4b18 ldr r3, [pc, #96] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7645. 8003900: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7646. 8003904: 4a16 ldr r2, [pc, #88] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7647. 8003906: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  7648. 800390a: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7649. 800390e: 4b14 ldr r3, [pc, #80] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7650. 8003910: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7651. 8003914: f403 4380 and.w r3, r3, #16384 @ 0x4000
  7652. 8003918: 613b str r3, [r7, #16]
  7653. 800391a: 693b ldr r3, [r7, #16]
  7654. __HAL_RCC_GPIOB_CLK_ENABLE();
  7655. 800391c: 4b10 ldr r3, [pc, #64] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7656. 800391e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7657. 8003922: 4a0f ldr r2, [pc, #60] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7658. 8003924: f043 0302 orr.w r3, r3, #2
  7659. 8003928: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7660. 800392c: 4b0c ldr r3, [pc, #48] @ (8003960 <HAL_COMP_MspInit+0x84>)
  7661. 800392e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7662. 8003932: f003 0302 and.w r3, r3, #2
  7663. 8003936: 60fb str r3, [r7, #12]
  7664. 8003938: 68fb ldr r3, [r7, #12]
  7665. /**COMP1 GPIO Configuration
  7666. PB2 ------> COMP1_INP
  7667. */
  7668. GPIO_InitStruct.Pin = GPIO_PIN_2;
  7669. 800393a: 2304 movs r3, #4
  7670. 800393c: 617b str r3, [r7, #20]
  7671. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7672. 800393e: 2303 movs r3, #3
  7673. 8003940: 61bb str r3, [r7, #24]
  7674. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7675. 8003942: 2300 movs r3, #0
  7676. 8003944: 61fb str r3, [r7, #28]
  7677. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7678. 8003946: f107 0314 add.w r3, r7, #20
  7679. 800394a: 4619 mov r1, r3
  7680. 800394c: 4805 ldr r0, [pc, #20] @ (8003964 <HAL_COMP_MspInit+0x88>)
  7681. 800394e: f006 ffe3 bl 800a918 <HAL_GPIO_Init>
  7682. /* USER CODE BEGIN COMP1_MspInit 1 */
  7683. /* USER CODE END COMP1_MspInit 1 */
  7684. }
  7685. }
  7686. 8003952: bf00 nop
  7687. 8003954: 3728 adds r7, #40 @ 0x28
  7688. 8003956: 46bd mov sp, r7
  7689. 8003958: bd80 pop {r7, pc}
  7690. 800395a: bf00 nop
  7691. 800395c: 5800380c .word 0x5800380c
  7692. 8003960: 58024400 .word 0x58024400
  7693. 8003964: 58020400 .word 0x58020400
  7694. 08003968 <HAL_CRC_MspInit>:
  7695. * This function configures the hardware resources used in this example
  7696. * @param hcrc: CRC handle pointer
  7697. * @retval None
  7698. */
  7699. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  7700. {
  7701. 8003968: b480 push {r7}
  7702. 800396a: b085 sub sp, #20
  7703. 800396c: af00 add r7, sp, #0
  7704. 800396e: 6078 str r0, [r7, #4]
  7705. if(hcrc->Instance==CRC)
  7706. 8003970: 687b ldr r3, [r7, #4]
  7707. 8003972: 681b ldr r3, [r3, #0]
  7708. 8003974: 4a0b ldr r2, [pc, #44] @ (80039a4 <HAL_CRC_MspInit+0x3c>)
  7709. 8003976: 4293 cmp r3, r2
  7710. 8003978: d10e bne.n 8003998 <HAL_CRC_MspInit+0x30>
  7711. {
  7712. /* USER CODE BEGIN CRC_MspInit 0 */
  7713. /* USER CODE END CRC_MspInit 0 */
  7714. /* Peripheral clock enable */
  7715. __HAL_RCC_CRC_CLK_ENABLE();
  7716. 800397a: 4b0b ldr r3, [pc, #44] @ (80039a8 <HAL_CRC_MspInit+0x40>)
  7717. 800397c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7718. 8003980: 4a09 ldr r2, [pc, #36] @ (80039a8 <HAL_CRC_MspInit+0x40>)
  7719. 8003982: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  7720. 8003986: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7721. 800398a: 4b07 ldr r3, [pc, #28] @ (80039a8 <HAL_CRC_MspInit+0x40>)
  7722. 800398c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7723. 8003990: f403 2300 and.w r3, r3, #524288 @ 0x80000
  7724. 8003994: 60fb str r3, [r7, #12]
  7725. 8003996: 68fb ldr r3, [r7, #12]
  7726. /* USER CODE BEGIN CRC_MspInit 1 */
  7727. /* USER CODE END CRC_MspInit 1 */
  7728. }
  7729. }
  7730. 8003998: bf00 nop
  7731. 800399a: 3714 adds r7, #20
  7732. 800399c: 46bd mov sp, r7
  7733. 800399e: f85d 7b04 ldr.w r7, [sp], #4
  7734. 80039a2: 4770 bx lr
  7735. 80039a4: 58024c00 .word 0x58024c00
  7736. 80039a8: 58024400 .word 0x58024400
  7737. 080039ac <HAL_DAC_MspInit>:
  7738. * This function configures the hardware resources used in this example
  7739. * @param hdac: DAC handle pointer
  7740. * @retval None
  7741. */
  7742. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  7743. {
  7744. 80039ac: b580 push {r7, lr}
  7745. 80039ae: b08a sub sp, #40 @ 0x28
  7746. 80039b0: af00 add r7, sp, #0
  7747. 80039b2: 6078 str r0, [r7, #4]
  7748. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7749. 80039b4: f107 0314 add.w r3, r7, #20
  7750. 80039b8: 2200 movs r2, #0
  7751. 80039ba: 601a str r2, [r3, #0]
  7752. 80039bc: 605a str r2, [r3, #4]
  7753. 80039be: 609a str r2, [r3, #8]
  7754. 80039c0: 60da str r2, [r3, #12]
  7755. 80039c2: 611a str r2, [r3, #16]
  7756. if(hdac->Instance==DAC1)
  7757. 80039c4: 687b ldr r3, [r7, #4]
  7758. 80039c6: 681b ldr r3, [r3, #0]
  7759. 80039c8: 4a1c ldr r2, [pc, #112] @ (8003a3c <HAL_DAC_MspInit+0x90>)
  7760. 80039ca: 4293 cmp r3, r2
  7761. 80039cc: d131 bne.n 8003a32 <HAL_DAC_MspInit+0x86>
  7762. {
  7763. /* USER CODE BEGIN DAC1_MspInit 0 */
  7764. /* USER CODE END DAC1_MspInit 0 */
  7765. /* Peripheral clock enable */
  7766. __HAL_RCC_DAC12_CLK_ENABLE();
  7767. 80039ce: 4b1c ldr r3, [pc, #112] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7768. 80039d0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7769. 80039d4: 4a1a ldr r2, [pc, #104] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7770. 80039d6: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  7771. 80039da: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7772. 80039de: 4b18 ldr r3, [pc, #96] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7773. 80039e0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7774. 80039e4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  7775. 80039e8: 613b str r3, [r7, #16]
  7776. 80039ea: 693b ldr r3, [r7, #16]
  7777. __HAL_RCC_GPIOA_CLK_ENABLE();
  7778. 80039ec: 4b14 ldr r3, [pc, #80] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7779. 80039ee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7780. 80039f2: 4a13 ldr r2, [pc, #76] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7781. 80039f4: f043 0301 orr.w r3, r3, #1
  7782. 80039f8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7783. 80039fc: 4b10 ldr r3, [pc, #64] @ (8003a40 <HAL_DAC_MspInit+0x94>)
  7784. 80039fe: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7785. 8003a02: f003 0301 and.w r3, r3, #1
  7786. 8003a06: 60fb str r3, [r7, #12]
  7787. 8003a08: 68fb ldr r3, [r7, #12]
  7788. /**DAC1 GPIO Configuration
  7789. PA4 ------> DAC1_OUT1
  7790. PA5 ------> DAC1_OUT2
  7791. */
  7792. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  7793. 8003a0a: 2330 movs r3, #48 @ 0x30
  7794. 8003a0c: 617b str r3, [r7, #20]
  7795. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7796. 8003a0e: 2303 movs r3, #3
  7797. 8003a10: 61bb str r3, [r7, #24]
  7798. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7799. 8003a12: 2300 movs r3, #0
  7800. 8003a14: 61fb str r3, [r7, #28]
  7801. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7802. 8003a16: f107 0314 add.w r3, r7, #20
  7803. 8003a1a: 4619 mov r1, r3
  7804. 8003a1c: 4809 ldr r0, [pc, #36] @ (8003a44 <HAL_DAC_MspInit+0x98>)
  7805. 8003a1e: f006 ff7b bl 800a918 <HAL_GPIO_Init>
  7806. /* DAC1 interrupt Init */
  7807. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  7808. 8003a22: 2200 movs r2, #0
  7809. 8003a24: 2105 movs r1, #5
  7810. 8003a26: 2036 movs r0, #54 @ 0x36
  7811. 8003a28: f003 fc44 bl 80072b4 <HAL_NVIC_SetPriority>
  7812. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  7813. 8003a2c: 2036 movs r0, #54 @ 0x36
  7814. 8003a2e: f003 fc5b bl 80072e8 <HAL_NVIC_EnableIRQ>
  7815. /* USER CODE BEGIN DAC1_MspInit 1 */
  7816. /* USER CODE END DAC1_MspInit 1 */
  7817. }
  7818. }
  7819. 8003a32: bf00 nop
  7820. 8003a34: 3728 adds r7, #40 @ 0x28
  7821. 8003a36: 46bd mov sp, r7
  7822. 8003a38: bd80 pop {r7, pc}
  7823. 8003a3a: bf00 nop
  7824. 8003a3c: 40007400 .word 0x40007400
  7825. 8003a40: 58024400 .word 0x58024400
  7826. 8003a44: 58020000 .word 0x58020000
  7827. 08003a48 <HAL_RNG_MspInit>:
  7828. * This function configures the hardware resources used in this example
  7829. * @param hrng: RNG handle pointer
  7830. * @retval None
  7831. */
  7832. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  7833. {
  7834. 8003a48: b580 push {r7, lr}
  7835. 8003a4a: b0b4 sub sp, #208 @ 0xd0
  7836. 8003a4c: af00 add r7, sp, #0
  7837. 8003a4e: 6078 str r0, [r7, #4]
  7838. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7839. 8003a50: f107 0310 add.w r3, r7, #16
  7840. 8003a54: 22c0 movs r2, #192 @ 0xc0
  7841. 8003a56: 2100 movs r1, #0
  7842. 8003a58: 4618 mov r0, r3
  7843. 8003a5a: f014 f9a4 bl 8017da6 <memset>
  7844. if(hrng->Instance==RNG)
  7845. 8003a5e: 687b ldr r3, [r7, #4]
  7846. 8003a60: 681b ldr r3, [r3, #0]
  7847. 8003a62: 4a14 ldr r2, [pc, #80] @ (8003ab4 <HAL_RNG_MspInit+0x6c>)
  7848. 8003a64: 4293 cmp r3, r2
  7849. 8003a66: d121 bne.n 8003aac <HAL_RNG_MspInit+0x64>
  7850. /* USER CODE END RNG_MspInit 0 */
  7851. /** Initializes the peripherals clock
  7852. */
  7853. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  7854. 8003a68: f44f 3200 mov.w r2, #131072 @ 0x20000
  7855. 8003a6c: f04f 0300 mov.w r3, #0
  7856. 8003a70: e9c7 2304 strd r2, r3, [r7, #16]
  7857. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  7858. 8003a74: 2300 movs r3, #0
  7859. 8003a76: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  7860. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7861. 8003a7a: f107 0310 add.w r3, r7, #16
  7862. 8003a7e: 4618 mov r0, r3
  7863. 8003a80: f008 fb30 bl 800c0e4 <HAL_RCCEx_PeriphCLKConfig>
  7864. 8003a84: 4603 mov r3, r0
  7865. 8003a86: 2b00 cmp r3, #0
  7866. 8003a88: d001 beq.n 8003a8e <HAL_RNG_MspInit+0x46>
  7867. {
  7868. Error_Handler();
  7869. 8003a8a: f7fe fa7d bl 8001f88 <Error_Handler>
  7870. }
  7871. /* Peripheral clock enable */
  7872. __HAL_RCC_RNG_CLK_ENABLE();
  7873. 8003a8e: 4b0a ldr r3, [pc, #40] @ (8003ab8 <HAL_RNG_MspInit+0x70>)
  7874. 8003a90: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7875. 8003a94: 4a08 ldr r2, [pc, #32] @ (8003ab8 <HAL_RNG_MspInit+0x70>)
  7876. 8003a96: f043 0340 orr.w r3, r3, #64 @ 0x40
  7877. 8003a9a: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  7878. 8003a9e: 4b06 ldr r3, [pc, #24] @ (8003ab8 <HAL_RNG_MspInit+0x70>)
  7879. 8003aa0: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7880. 8003aa4: f003 0340 and.w r3, r3, #64 @ 0x40
  7881. 8003aa8: 60fb str r3, [r7, #12]
  7882. 8003aaa: 68fb ldr r3, [r7, #12]
  7883. /* USER CODE BEGIN RNG_MspInit 1 */
  7884. /* USER CODE END RNG_MspInit 1 */
  7885. }
  7886. }
  7887. 8003aac: bf00 nop
  7888. 8003aae: 37d0 adds r7, #208 @ 0xd0
  7889. 8003ab0: 46bd mov sp, r7
  7890. 8003ab2: bd80 pop {r7, pc}
  7891. 8003ab4: 48021800 .word 0x48021800
  7892. 8003ab8: 58024400 .word 0x58024400
  7893. 08003abc <HAL_TIM_PWM_MspInit>:
  7894. * This function configures the hardware resources used in this example
  7895. * @param htim_pwm: TIM_PWM handle pointer
  7896. * @retval None
  7897. */
  7898. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  7899. {
  7900. 8003abc: b480 push {r7}
  7901. 8003abe: b085 sub sp, #20
  7902. 8003ac0: af00 add r7, sp, #0
  7903. 8003ac2: 6078 str r0, [r7, #4]
  7904. if(htim_pwm->Instance==TIM1)
  7905. 8003ac4: 687b ldr r3, [r7, #4]
  7906. 8003ac6: 681b ldr r3, [r3, #0]
  7907. 8003ac8: 4a16 ldr r2, [pc, #88] @ (8003b24 <HAL_TIM_PWM_MspInit+0x68>)
  7908. 8003aca: 4293 cmp r3, r2
  7909. 8003acc: d10f bne.n 8003aee <HAL_TIM_PWM_MspInit+0x32>
  7910. {
  7911. /* USER CODE BEGIN TIM1_MspInit 0 */
  7912. /* USER CODE END TIM1_MspInit 0 */
  7913. /* Peripheral clock enable */
  7914. __HAL_RCC_TIM1_CLK_ENABLE();
  7915. 8003ace: 4b16 ldr r3, [pc, #88] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7916. 8003ad0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7917. 8003ad4: 4a14 ldr r2, [pc, #80] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7918. 8003ad6: f043 0301 orr.w r3, r3, #1
  7919. 8003ada: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  7920. 8003ade: 4b12 ldr r3, [pc, #72] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7921. 8003ae0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7922. 8003ae4: f003 0301 and.w r3, r3, #1
  7923. 8003ae8: 60fb str r3, [r7, #12]
  7924. 8003aea: 68fb ldr r3, [r7, #12]
  7925. /* USER CODE BEGIN TIM3_MspInit 1 */
  7926. /* USER CODE END TIM3_MspInit 1 */
  7927. }
  7928. }
  7929. 8003aec: e013 b.n 8003b16 <HAL_TIM_PWM_MspInit+0x5a>
  7930. else if(htim_pwm->Instance==TIM3)
  7931. 8003aee: 687b ldr r3, [r7, #4]
  7932. 8003af0: 681b ldr r3, [r3, #0]
  7933. 8003af2: 4a0e ldr r2, [pc, #56] @ (8003b2c <HAL_TIM_PWM_MspInit+0x70>)
  7934. 8003af4: 4293 cmp r3, r2
  7935. 8003af6: d10e bne.n 8003b16 <HAL_TIM_PWM_MspInit+0x5a>
  7936. __HAL_RCC_TIM3_CLK_ENABLE();
  7937. 8003af8: 4b0b ldr r3, [pc, #44] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7938. 8003afa: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7939. 8003afe: 4a0a ldr r2, [pc, #40] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7940. 8003b00: f043 0302 orr.w r3, r3, #2
  7941. 8003b04: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7942. 8003b08: 4b07 ldr r3, [pc, #28] @ (8003b28 <HAL_TIM_PWM_MspInit+0x6c>)
  7943. 8003b0a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7944. 8003b0e: f003 0302 and.w r3, r3, #2
  7945. 8003b12: 60bb str r3, [r7, #8]
  7946. 8003b14: 68bb ldr r3, [r7, #8]
  7947. }
  7948. 8003b16: bf00 nop
  7949. 8003b18: 3714 adds r7, #20
  7950. 8003b1a: 46bd mov sp, r7
  7951. 8003b1c: f85d 7b04 ldr.w r7, [sp], #4
  7952. 8003b20: 4770 bx lr
  7953. 8003b22: bf00 nop
  7954. 8003b24: 40010000 .word 0x40010000
  7955. 8003b28: 58024400 .word 0x58024400
  7956. 8003b2c: 40000400 .word 0x40000400
  7957. 08003b30 <HAL_TIM_Base_MspInit>:
  7958. * This function configures the hardware resources used in this example
  7959. * @param htim_base: TIM_Base handle pointer
  7960. * @retval None
  7961. */
  7962. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  7963. {
  7964. 8003b30: b580 push {r7, lr}
  7965. 8003b32: b08c sub sp, #48 @ 0x30
  7966. 8003b34: af00 add r7, sp, #0
  7967. 8003b36: 6078 str r0, [r7, #4]
  7968. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7969. 8003b38: f107 031c add.w r3, r7, #28
  7970. 8003b3c: 2200 movs r2, #0
  7971. 8003b3e: 601a str r2, [r3, #0]
  7972. 8003b40: 605a str r2, [r3, #4]
  7973. 8003b42: 609a str r2, [r3, #8]
  7974. 8003b44: 60da str r2, [r3, #12]
  7975. 8003b46: 611a str r2, [r3, #16]
  7976. if(htim_base->Instance==TIM2)
  7977. 8003b48: 687b ldr r3, [r7, #4]
  7978. 8003b4a: 681b ldr r3, [r3, #0]
  7979. 8003b4c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  7980. 8003b50: d137 bne.n 8003bc2 <HAL_TIM_Base_MspInit+0x92>
  7981. {
  7982. /* USER CODE BEGIN TIM2_MspInit 0 */
  7983. /* USER CODE END TIM2_MspInit 0 */
  7984. /* Peripheral clock enable */
  7985. __HAL_RCC_TIM2_CLK_ENABLE();
  7986. 8003b52: 4b46 ldr r3, [pc, #280] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7987. 8003b54: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7988. 8003b58: 4a44 ldr r2, [pc, #272] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7989. 8003b5a: f043 0301 orr.w r3, r3, #1
  7990. 8003b5e: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7991. 8003b62: 4b42 ldr r3, [pc, #264] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7992. 8003b64: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7993. 8003b68: f003 0301 and.w r3, r3, #1
  7994. 8003b6c: 61bb str r3, [r7, #24]
  7995. 8003b6e: 69bb ldr r3, [r7, #24]
  7996. __HAL_RCC_GPIOB_CLK_ENABLE();
  7997. 8003b70: 4b3e ldr r3, [pc, #248] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  7998. 8003b72: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7999. 8003b76: 4a3d ldr r2, [pc, #244] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8000. 8003b78: f043 0302 orr.w r3, r3, #2
  8001. 8003b7c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8002. 8003b80: 4b3a ldr r3, [pc, #232] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8003. 8003b82: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8004. 8003b86: f003 0302 and.w r3, r3, #2
  8005. 8003b8a: 617b str r3, [r7, #20]
  8006. 8003b8c: 697b ldr r3, [r7, #20]
  8007. /**TIM2 GPIO Configuration
  8008. PB10 ------> TIM2_CH3
  8009. PB11 ------> TIM2_CH4
  8010. */
  8011. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  8012. 8003b8e: f44f 6340 mov.w r3, #3072 @ 0xc00
  8013. 8003b92: 61fb str r3, [r7, #28]
  8014. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8015. 8003b94: 2302 movs r3, #2
  8016. 8003b96: 623b str r3, [r7, #32]
  8017. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8018. 8003b98: 2300 movs r3, #0
  8019. 8003b9a: 627b str r3, [r7, #36] @ 0x24
  8020. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8021. 8003b9c: 2300 movs r3, #0
  8022. 8003b9e: 62bb str r3, [r7, #40] @ 0x28
  8023. GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
  8024. 8003ba0: 2301 movs r3, #1
  8025. 8003ba2: 62fb str r3, [r7, #44] @ 0x2c
  8026. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8027. 8003ba4: f107 031c add.w r3, r7, #28
  8028. 8003ba8: 4619 mov r1, r3
  8029. 8003baa: 4831 ldr r0, [pc, #196] @ (8003c70 <HAL_TIM_Base_MspInit+0x140>)
  8030. 8003bac: f006 feb4 bl 800a918 <HAL_GPIO_Init>
  8031. /* TIM2 interrupt Init */
  8032. HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
  8033. 8003bb0: 2200 movs r2, #0
  8034. 8003bb2: 2105 movs r1, #5
  8035. 8003bb4: 201c movs r0, #28
  8036. 8003bb6: f003 fb7d bl 80072b4 <HAL_NVIC_SetPriority>
  8037. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  8038. 8003bba: 201c movs r0, #28
  8039. 8003bbc: f003 fb94 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8040. /* USER CODE BEGIN TIM8_MspInit 1 */
  8041. /* USER CODE END TIM8_MspInit 1 */
  8042. }
  8043. }
  8044. 8003bc0: e050 b.n 8003c64 <HAL_TIM_Base_MspInit+0x134>
  8045. else if(htim_base->Instance==TIM4)
  8046. 8003bc2: 687b ldr r3, [r7, #4]
  8047. 8003bc4: 681b ldr r3, [r3, #0]
  8048. 8003bc6: 4a2b ldr r2, [pc, #172] @ (8003c74 <HAL_TIM_Base_MspInit+0x144>)
  8049. 8003bc8: 4293 cmp r3, r2
  8050. 8003bca: d137 bne.n 8003c3c <HAL_TIM_Base_MspInit+0x10c>
  8051. __HAL_RCC_TIM4_CLK_ENABLE();
  8052. 8003bcc: 4b27 ldr r3, [pc, #156] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8053. 8003bce: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8054. 8003bd2: 4a26 ldr r2, [pc, #152] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8055. 8003bd4: f043 0304 orr.w r3, r3, #4
  8056. 8003bd8: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8057. 8003bdc: 4b23 ldr r3, [pc, #140] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8058. 8003bde: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8059. 8003be2: f003 0304 and.w r3, r3, #4
  8060. 8003be6: 613b str r3, [r7, #16]
  8061. 8003be8: 693b ldr r3, [r7, #16]
  8062. __HAL_RCC_GPIOD_CLK_ENABLE();
  8063. 8003bea: 4b20 ldr r3, [pc, #128] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8064. 8003bec: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8065. 8003bf0: 4a1e ldr r2, [pc, #120] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8066. 8003bf2: f043 0308 orr.w r3, r3, #8
  8067. 8003bf6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8068. 8003bfa: 4b1c ldr r3, [pc, #112] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8069. 8003bfc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8070. 8003c00: f003 0308 and.w r3, r3, #8
  8071. 8003c04: 60fb str r3, [r7, #12]
  8072. 8003c06: 68fb ldr r3, [r7, #12]
  8073. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  8074. 8003c08: f44f 4340 mov.w r3, #49152 @ 0xc000
  8075. 8003c0c: 61fb str r3, [r7, #28]
  8076. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8077. 8003c0e: 2302 movs r3, #2
  8078. 8003c10: 623b str r3, [r7, #32]
  8079. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8080. 8003c12: 2300 movs r3, #0
  8081. 8003c14: 627b str r3, [r7, #36] @ 0x24
  8082. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8083. 8003c16: 2300 movs r3, #0
  8084. 8003c18: 62bb str r3, [r7, #40] @ 0x28
  8085. GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
  8086. 8003c1a: 2302 movs r3, #2
  8087. 8003c1c: 62fb str r3, [r7, #44] @ 0x2c
  8088. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  8089. 8003c1e: f107 031c add.w r3, r7, #28
  8090. 8003c22: 4619 mov r1, r3
  8091. 8003c24: 4814 ldr r0, [pc, #80] @ (8003c78 <HAL_TIM_Base_MspInit+0x148>)
  8092. 8003c26: f006 fe77 bl 800a918 <HAL_GPIO_Init>
  8093. HAL_NVIC_SetPriority(TIM4_IRQn, 5, 0);
  8094. 8003c2a: 2200 movs r2, #0
  8095. 8003c2c: 2105 movs r1, #5
  8096. 8003c2e: 201e movs r0, #30
  8097. 8003c30: f003 fb40 bl 80072b4 <HAL_NVIC_SetPriority>
  8098. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  8099. 8003c34: 201e movs r0, #30
  8100. 8003c36: f003 fb57 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8101. }
  8102. 8003c3a: e013 b.n 8003c64 <HAL_TIM_Base_MspInit+0x134>
  8103. else if(htim_base->Instance==TIM8)
  8104. 8003c3c: 687b ldr r3, [r7, #4]
  8105. 8003c3e: 681b ldr r3, [r3, #0]
  8106. 8003c40: 4a0e ldr r2, [pc, #56] @ (8003c7c <HAL_TIM_Base_MspInit+0x14c>)
  8107. 8003c42: 4293 cmp r3, r2
  8108. 8003c44: d10e bne.n 8003c64 <HAL_TIM_Base_MspInit+0x134>
  8109. __HAL_RCC_TIM8_CLK_ENABLE();
  8110. 8003c46: 4b09 ldr r3, [pc, #36] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8111. 8003c48: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8112. 8003c4c: 4a07 ldr r2, [pc, #28] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8113. 8003c4e: f043 0302 orr.w r3, r3, #2
  8114. 8003c52: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8115. 8003c56: 4b05 ldr r3, [pc, #20] @ (8003c6c <HAL_TIM_Base_MspInit+0x13c>)
  8116. 8003c58: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8117. 8003c5c: f003 0302 and.w r3, r3, #2
  8118. 8003c60: 60bb str r3, [r7, #8]
  8119. 8003c62: 68bb ldr r3, [r7, #8]
  8120. }
  8121. 8003c64: bf00 nop
  8122. 8003c66: 3730 adds r7, #48 @ 0x30
  8123. 8003c68: 46bd mov sp, r7
  8124. 8003c6a: bd80 pop {r7, pc}
  8125. 8003c6c: 58024400 .word 0x58024400
  8126. 8003c70: 58020400 .word 0x58020400
  8127. 8003c74: 40000800 .word 0x40000800
  8128. 8003c78: 58020c00 .word 0x58020c00
  8129. 8003c7c: 40010400 .word 0x40010400
  8130. 08003c80 <HAL_TIM_MspPostInit>:
  8131. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  8132. {
  8133. 8003c80: b580 push {r7, lr}
  8134. 8003c82: b08a sub sp, #40 @ 0x28
  8135. 8003c84: af00 add r7, sp, #0
  8136. 8003c86: 6078 str r0, [r7, #4]
  8137. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8138. 8003c88: f107 0314 add.w r3, r7, #20
  8139. 8003c8c: 2200 movs r2, #0
  8140. 8003c8e: 601a str r2, [r3, #0]
  8141. 8003c90: 605a str r2, [r3, #4]
  8142. 8003c92: 609a str r2, [r3, #8]
  8143. 8003c94: 60da str r2, [r3, #12]
  8144. 8003c96: 611a str r2, [r3, #16]
  8145. if(htim->Instance==TIM1)
  8146. 8003c98: 687b ldr r3, [r7, #4]
  8147. 8003c9a: 681b ldr r3, [r3, #0]
  8148. 8003c9c: 4a26 ldr r2, [pc, #152] @ (8003d38 <HAL_TIM_MspPostInit+0xb8>)
  8149. 8003c9e: 4293 cmp r3, r2
  8150. 8003ca0: d120 bne.n 8003ce4 <HAL_TIM_MspPostInit+0x64>
  8151. {
  8152. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  8153. /* USER CODE END TIM1_MspPostInit 0 */
  8154. __HAL_RCC_GPIOA_CLK_ENABLE();
  8155. 8003ca2: 4b26 ldr r3, [pc, #152] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8156. 8003ca4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8157. 8003ca8: 4a24 ldr r2, [pc, #144] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8158. 8003caa: f043 0301 orr.w r3, r3, #1
  8159. 8003cae: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8160. 8003cb2: 4b22 ldr r3, [pc, #136] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8161. 8003cb4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8162. 8003cb8: f003 0301 and.w r3, r3, #1
  8163. 8003cbc: 613b str r3, [r7, #16]
  8164. 8003cbe: 693b ldr r3, [r7, #16]
  8165. /**TIM1 GPIO Configuration
  8166. PA9 ------> TIM1_CH2
  8167. */
  8168. GPIO_InitStruct.Pin = GPIO_PIN_9;
  8169. 8003cc0: f44f 7300 mov.w r3, #512 @ 0x200
  8170. 8003cc4: 617b str r3, [r7, #20]
  8171. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8172. 8003cc6: 2302 movs r3, #2
  8173. 8003cc8: 61bb str r3, [r7, #24]
  8174. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8175. 8003cca: 2300 movs r3, #0
  8176. 8003ccc: 61fb str r3, [r7, #28]
  8177. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8178. 8003cce: 2300 movs r3, #0
  8179. 8003cd0: 623b str r3, [r7, #32]
  8180. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  8181. 8003cd2: 2301 movs r3, #1
  8182. 8003cd4: 627b str r3, [r7, #36] @ 0x24
  8183. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8184. 8003cd6: f107 0314 add.w r3, r7, #20
  8185. 8003cda: 4619 mov r1, r3
  8186. 8003cdc: 4818 ldr r0, [pc, #96] @ (8003d40 <HAL_TIM_MspPostInit+0xc0>)
  8187. 8003cde: f006 fe1b bl 800a918 <HAL_GPIO_Init>
  8188. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  8189. /* USER CODE END TIM3_MspPostInit 1 */
  8190. }
  8191. }
  8192. 8003ce2: e024 b.n 8003d2e <HAL_TIM_MspPostInit+0xae>
  8193. else if(htim->Instance==TIM3)
  8194. 8003ce4: 687b ldr r3, [r7, #4]
  8195. 8003ce6: 681b ldr r3, [r3, #0]
  8196. 8003ce8: 4a16 ldr r2, [pc, #88] @ (8003d44 <HAL_TIM_MspPostInit+0xc4>)
  8197. 8003cea: 4293 cmp r3, r2
  8198. 8003cec: d11f bne.n 8003d2e <HAL_TIM_MspPostInit+0xae>
  8199. __HAL_RCC_GPIOC_CLK_ENABLE();
  8200. 8003cee: 4b13 ldr r3, [pc, #76] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8201. 8003cf0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8202. 8003cf4: 4a11 ldr r2, [pc, #68] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8203. 8003cf6: f043 0304 orr.w r3, r3, #4
  8204. 8003cfa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8205. 8003cfe: 4b0f ldr r3, [pc, #60] @ (8003d3c <HAL_TIM_MspPostInit+0xbc>)
  8206. 8003d00: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8207. 8003d04: f003 0304 and.w r3, r3, #4
  8208. 8003d08: 60fb str r3, [r7, #12]
  8209. 8003d0a: 68fb ldr r3, [r7, #12]
  8210. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  8211. 8003d0c: f44f 7370 mov.w r3, #960 @ 0x3c0
  8212. 8003d10: 617b str r3, [r7, #20]
  8213. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8214. 8003d12: 2302 movs r3, #2
  8215. 8003d14: 61bb str r3, [r7, #24]
  8216. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8217. 8003d16: 2300 movs r3, #0
  8218. 8003d18: 61fb str r3, [r7, #28]
  8219. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  8220. 8003d1a: 2301 movs r3, #1
  8221. 8003d1c: 623b str r3, [r7, #32]
  8222. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  8223. 8003d1e: 2302 movs r3, #2
  8224. 8003d20: 627b str r3, [r7, #36] @ 0x24
  8225. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8226. 8003d22: f107 0314 add.w r3, r7, #20
  8227. 8003d26: 4619 mov r1, r3
  8228. 8003d28: 4807 ldr r0, [pc, #28] @ (8003d48 <HAL_TIM_MspPostInit+0xc8>)
  8229. 8003d2a: f006 fdf5 bl 800a918 <HAL_GPIO_Init>
  8230. }
  8231. 8003d2e: bf00 nop
  8232. 8003d30: 3728 adds r7, #40 @ 0x28
  8233. 8003d32: 46bd mov sp, r7
  8234. 8003d34: bd80 pop {r7, pc}
  8235. 8003d36: bf00 nop
  8236. 8003d38: 40010000 .word 0x40010000
  8237. 8003d3c: 58024400 .word 0x58024400
  8238. 8003d40: 58020000 .word 0x58020000
  8239. 8003d44: 40000400 .word 0x40000400
  8240. 8003d48: 58020800 .word 0x58020800
  8241. 08003d4c <HAL_UART_MspInit>:
  8242. * This function configures the hardware resources used in this example
  8243. * @param huart: UART handle pointer
  8244. * @retval None
  8245. */
  8246. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  8247. {
  8248. 8003d4c: b580 push {r7, lr}
  8249. 8003d4e: b0bc sub sp, #240 @ 0xf0
  8250. 8003d50: af00 add r7, sp, #0
  8251. 8003d52: 6078 str r0, [r7, #4]
  8252. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8253. 8003d54: f107 03dc add.w r3, r7, #220 @ 0xdc
  8254. 8003d58: 2200 movs r2, #0
  8255. 8003d5a: 601a str r2, [r3, #0]
  8256. 8003d5c: 605a str r2, [r3, #4]
  8257. 8003d5e: 609a str r2, [r3, #8]
  8258. 8003d60: 60da str r2, [r3, #12]
  8259. 8003d62: 611a str r2, [r3, #16]
  8260. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8261. 8003d64: f107 0318 add.w r3, r7, #24
  8262. 8003d68: 22c0 movs r2, #192 @ 0xc0
  8263. 8003d6a: 2100 movs r1, #0
  8264. 8003d6c: 4618 mov r0, r3
  8265. 8003d6e: f014 f81a bl 8017da6 <memset>
  8266. if(huart->Instance==UART8)
  8267. 8003d72: 687b ldr r3, [r7, #4]
  8268. 8003d74: 681b ldr r3, [r3, #0]
  8269. 8003d76: 4a55 ldr r2, [pc, #340] @ (8003ecc <HAL_UART_MspInit+0x180>)
  8270. 8003d78: 4293 cmp r3, r2
  8271. 8003d7a: d14e bne.n 8003e1a <HAL_UART_MspInit+0xce>
  8272. /* USER CODE END UART8_MspInit 0 */
  8273. /** Initializes the peripherals clock
  8274. */
  8275. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  8276. 8003d7c: f04f 0202 mov.w r2, #2
  8277. 8003d80: f04f 0300 mov.w r3, #0
  8278. 8003d84: e9c7 2306 strd r2, r3, [r7, #24]
  8279. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  8280. 8003d88: 2300 movs r3, #0
  8281. 8003d8a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8282. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8283. 8003d8e: f107 0318 add.w r3, r7, #24
  8284. 8003d92: 4618 mov r0, r3
  8285. 8003d94: f008 f9a6 bl 800c0e4 <HAL_RCCEx_PeriphCLKConfig>
  8286. 8003d98: 4603 mov r3, r0
  8287. 8003d9a: 2b00 cmp r3, #0
  8288. 8003d9c: d001 beq.n 8003da2 <HAL_UART_MspInit+0x56>
  8289. {
  8290. Error_Handler();
  8291. 8003d9e: f7fe f8f3 bl 8001f88 <Error_Handler>
  8292. }
  8293. /* Peripheral clock enable */
  8294. __HAL_RCC_UART8_CLK_ENABLE();
  8295. 8003da2: 4b4b ldr r3, [pc, #300] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8296. 8003da4: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8297. 8003da8: 4a49 ldr r2, [pc, #292] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8298. 8003daa: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  8299. 8003dae: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8300. 8003db2: 4b47 ldr r3, [pc, #284] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8301. 8003db4: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8302. 8003db8: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  8303. 8003dbc: 617b str r3, [r7, #20]
  8304. 8003dbe: 697b ldr r3, [r7, #20]
  8305. __HAL_RCC_GPIOE_CLK_ENABLE();
  8306. 8003dc0: 4b43 ldr r3, [pc, #268] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8307. 8003dc2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8308. 8003dc6: 4a42 ldr r2, [pc, #264] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8309. 8003dc8: f043 0310 orr.w r3, r3, #16
  8310. 8003dcc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8311. 8003dd0: 4b3f ldr r3, [pc, #252] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8312. 8003dd2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8313. 8003dd6: f003 0310 and.w r3, r3, #16
  8314. 8003dda: 613b str r3, [r7, #16]
  8315. 8003ddc: 693b ldr r3, [r7, #16]
  8316. /**UART8 GPIO Configuration
  8317. PE0 ------> UART8_RX
  8318. PE1 ------> UART8_TX
  8319. */
  8320. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8321. 8003dde: 2303 movs r3, #3
  8322. 8003de0: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8323. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8324. 8003de4: 2302 movs r3, #2
  8325. 8003de6: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8326. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8327. 8003dea: 2300 movs r3, #0
  8328. 8003dec: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8329. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8330. 8003df0: 2300 movs r3, #0
  8331. 8003df2: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8332. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  8333. 8003df6: 2308 movs r3, #8
  8334. 8003df8: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8335. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  8336. 8003dfc: f107 03dc add.w r3, r7, #220 @ 0xdc
  8337. 8003e00: 4619 mov r1, r3
  8338. 8003e02: 4834 ldr r0, [pc, #208] @ (8003ed4 <HAL_UART_MspInit+0x188>)
  8339. 8003e04: f006 fd88 bl 800a918 <HAL_GPIO_Init>
  8340. /* UART8 interrupt Init */
  8341. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  8342. 8003e08: 2200 movs r2, #0
  8343. 8003e0a: 2105 movs r1, #5
  8344. 8003e0c: 2053 movs r0, #83 @ 0x53
  8345. 8003e0e: f003 fa51 bl 80072b4 <HAL_NVIC_SetPriority>
  8346. HAL_NVIC_EnableIRQ(UART8_IRQn);
  8347. 8003e12: 2053 movs r0, #83 @ 0x53
  8348. 8003e14: f003 fa68 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8349. /* USER CODE BEGIN USART1_MspInit 1 */
  8350. /* USER CODE END USART1_MspInit 1 */
  8351. }
  8352. }
  8353. 8003e18: e053 b.n 8003ec2 <HAL_UART_MspInit+0x176>
  8354. else if(huart->Instance==USART1)
  8355. 8003e1a: 687b ldr r3, [r7, #4]
  8356. 8003e1c: 681b ldr r3, [r3, #0]
  8357. 8003e1e: 4a2e ldr r2, [pc, #184] @ (8003ed8 <HAL_UART_MspInit+0x18c>)
  8358. 8003e20: 4293 cmp r3, r2
  8359. 8003e22: d14e bne.n 8003ec2 <HAL_UART_MspInit+0x176>
  8360. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  8361. 8003e24: f04f 0201 mov.w r2, #1
  8362. 8003e28: f04f 0300 mov.w r3, #0
  8363. 8003e2c: e9c7 2306 strd r2, r3, [r7, #24]
  8364. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  8365. 8003e30: 2300 movs r3, #0
  8366. 8003e32: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  8367. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8368. 8003e36: f107 0318 add.w r3, r7, #24
  8369. 8003e3a: 4618 mov r0, r3
  8370. 8003e3c: f008 f952 bl 800c0e4 <HAL_RCCEx_PeriphCLKConfig>
  8371. 8003e40: 4603 mov r3, r0
  8372. 8003e42: 2b00 cmp r3, #0
  8373. 8003e44: d001 beq.n 8003e4a <HAL_UART_MspInit+0xfe>
  8374. Error_Handler();
  8375. 8003e46: f7fe f89f bl 8001f88 <Error_Handler>
  8376. __HAL_RCC_USART1_CLK_ENABLE();
  8377. 8003e4a: 4b21 ldr r3, [pc, #132] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8378. 8003e4c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8379. 8003e50: 4a1f ldr r2, [pc, #124] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8380. 8003e52: f043 0310 orr.w r3, r3, #16
  8381. 8003e56: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8382. 8003e5a: 4b1d ldr r3, [pc, #116] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8383. 8003e5c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8384. 8003e60: f003 0310 and.w r3, r3, #16
  8385. 8003e64: 60fb str r3, [r7, #12]
  8386. 8003e66: 68fb ldr r3, [r7, #12]
  8387. __HAL_RCC_GPIOB_CLK_ENABLE();
  8388. 8003e68: 4b19 ldr r3, [pc, #100] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8389. 8003e6a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8390. 8003e6e: 4a18 ldr r2, [pc, #96] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8391. 8003e70: f043 0302 orr.w r3, r3, #2
  8392. 8003e74: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8393. 8003e78: 4b15 ldr r3, [pc, #84] @ (8003ed0 <HAL_UART_MspInit+0x184>)
  8394. 8003e7a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8395. 8003e7e: f003 0302 and.w r3, r3, #2
  8396. 8003e82: 60bb str r3, [r7, #8]
  8397. 8003e84: 68bb ldr r3, [r7, #8]
  8398. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  8399. 8003e86: f44f 4340 mov.w r3, #49152 @ 0xc000
  8400. 8003e8a: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8401. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8402. 8003e8e: 2302 movs r3, #2
  8403. 8003e90: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8404. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8405. 8003e94: 2300 movs r3, #0
  8406. 8003e96: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8407. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8408. 8003e9a: 2300 movs r3, #0
  8409. 8003e9c: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8410. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  8411. 8003ea0: 2304 movs r3, #4
  8412. 8003ea2: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8413. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8414. 8003ea6: f107 03dc add.w r3, r7, #220 @ 0xdc
  8415. 8003eaa: 4619 mov r1, r3
  8416. 8003eac: 480b ldr r0, [pc, #44] @ (8003edc <HAL_UART_MspInit+0x190>)
  8417. 8003eae: f006 fd33 bl 800a918 <HAL_GPIO_Init>
  8418. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  8419. 8003eb2: 2200 movs r2, #0
  8420. 8003eb4: 2105 movs r1, #5
  8421. 8003eb6: 2025 movs r0, #37 @ 0x25
  8422. 8003eb8: f003 f9fc bl 80072b4 <HAL_NVIC_SetPriority>
  8423. HAL_NVIC_EnableIRQ(USART1_IRQn);
  8424. 8003ebc: 2025 movs r0, #37 @ 0x25
  8425. 8003ebe: f003 fa13 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8426. }
  8427. 8003ec2: bf00 nop
  8428. 8003ec4: 37f0 adds r7, #240 @ 0xf0
  8429. 8003ec6: 46bd mov sp, r7
  8430. 8003ec8: bd80 pop {r7, pc}
  8431. 8003eca: bf00 nop
  8432. 8003ecc: 40007c00 .word 0x40007c00
  8433. 8003ed0: 58024400 .word 0x58024400
  8434. 8003ed4: 58021000 .word 0x58021000
  8435. 8003ed8: 40011000 .word 0x40011000
  8436. 8003edc: 58020400 .word 0x58020400
  8437. 08003ee0 <HAL_InitTick>:
  8438. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  8439. * @param TickPriority: Tick interrupt priority.
  8440. * @retval HAL status
  8441. */
  8442. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  8443. {
  8444. 8003ee0: b580 push {r7, lr}
  8445. 8003ee2: b090 sub sp, #64 @ 0x40
  8446. 8003ee4: af00 add r7, sp, #0
  8447. 8003ee6: 6078 str r0, [r7, #4]
  8448. uint32_t uwTimclock, uwAPB1Prescaler;
  8449. uint32_t uwPrescalerValue;
  8450. uint32_t pFLatency;
  8451. /*Configure the TIM6 IRQ priority */
  8452. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  8453. 8003ee8: 687b ldr r3, [r7, #4]
  8454. 8003eea: 2b0f cmp r3, #15
  8455. 8003eec: d827 bhi.n 8003f3e <HAL_InitTick+0x5e>
  8456. {
  8457. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  8458. 8003eee: 2200 movs r2, #0
  8459. 8003ef0: 6879 ldr r1, [r7, #4]
  8460. 8003ef2: 2036 movs r0, #54 @ 0x36
  8461. 8003ef4: f003 f9de bl 80072b4 <HAL_NVIC_SetPriority>
  8462. /* Enable the TIM6 global Interrupt */
  8463. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8464. 8003ef8: 2036 movs r0, #54 @ 0x36
  8465. 8003efa: f003 f9f5 bl 80072e8 <HAL_NVIC_EnableIRQ>
  8466. uwTickPrio = TickPriority;
  8467. 8003efe: 4a29 ldr r2, [pc, #164] @ (8003fa4 <HAL_InitTick+0xc4>)
  8468. 8003f00: 687b ldr r3, [r7, #4]
  8469. 8003f02: 6013 str r3, [r2, #0]
  8470. {
  8471. return HAL_ERROR;
  8472. }
  8473. /* Enable TIM6 clock */
  8474. __HAL_RCC_TIM6_CLK_ENABLE();
  8475. 8003f04: 4b28 ldr r3, [pc, #160] @ (8003fa8 <HAL_InitTick+0xc8>)
  8476. 8003f06: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8477. 8003f0a: 4a27 ldr r2, [pc, #156] @ (8003fa8 <HAL_InitTick+0xc8>)
  8478. 8003f0c: f043 0310 orr.w r3, r3, #16
  8479. 8003f10: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8480. 8003f14: 4b24 ldr r3, [pc, #144] @ (8003fa8 <HAL_InitTick+0xc8>)
  8481. 8003f16: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8482. 8003f1a: f003 0310 and.w r3, r3, #16
  8483. 8003f1e: 60fb str r3, [r7, #12]
  8484. 8003f20: 68fb ldr r3, [r7, #12]
  8485. /* Get clock configuration */
  8486. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  8487. 8003f22: f107 0210 add.w r2, r7, #16
  8488. 8003f26: f107 0314 add.w r3, r7, #20
  8489. 8003f2a: 4611 mov r1, r2
  8490. 8003f2c: 4618 mov r0, r3
  8491. 8003f2e: f008 f897 bl 800c060 <HAL_RCC_GetClockConfig>
  8492. /* Get APB1 prescaler */
  8493. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  8494. 8003f32: 6abb ldr r3, [r7, #40] @ 0x28
  8495. 8003f34: 63bb str r3, [r7, #56] @ 0x38
  8496. /* Compute TIM6 clock */
  8497. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  8498. 8003f36: 6bbb ldr r3, [r7, #56] @ 0x38
  8499. 8003f38: 2b00 cmp r3, #0
  8500. 8003f3a: d106 bne.n 8003f4a <HAL_InitTick+0x6a>
  8501. 8003f3c: e001 b.n 8003f42 <HAL_InitTick+0x62>
  8502. return HAL_ERROR;
  8503. 8003f3e: 2301 movs r3, #1
  8504. 8003f40: e02b b.n 8003f9a <HAL_InitTick+0xba>
  8505. {
  8506. uwTimclock = HAL_RCC_GetPCLK1Freq();
  8507. 8003f42: f008 f861 bl 800c008 <HAL_RCC_GetPCLK1Freq>
  8508. 8003f46: 63f8 str r0, [r7, #60] @ 0x3c
  8509. 8003f48: e004 b.n 8003f54 <HAL_InitTick+0x74>
  8510. }
  8511. else
  8512. {
  8513. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  8514. 8003f4a: f008 f85d bl 800c008 <HAL_RCC_GetPCLK1Freq>
  8515. 8003f4e: 4603 mov r3, r0
  8516. 8003f50: 005b lsls r3, r3, #1
  8517. 8003f52: 63fb str r3, [r7, #60] @ 0x3c
  8518. }
  8519. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  8520. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  8521. 8003f54: 6bfb ldr r3, [r7, #60] @ 0x3c
  8522. 8003f56: 4a15 ldr r2, [pc, #84] @ (8003fac <HAL_InitTick+0xcc>)
  8523. 8003f58: fba2 2303 umull r2, r3, r2, r3
  8524. 8003f5c: 0c9b lsrs r3, r3, #18
  8525. 8003f5e: 3b01 subs r3, #1
  8526. 8003f60: 637b str r3, [r7, #52] @ 0x34
  8527. /* Initialize TIM6 */
  8528. htim6.Instance = TIM6;
  8529. 8003f62: 4b13 ldr r3, [pc, #76] @ (8003fb0 <HAL_InitTick+0xd0>)
  8530. 8003f64: 4a13 ldr r2, [pc, #76] @ (8003fb4 <HAL_InitTick+0xd4>)
  8531. 8003f66: 601a str r2, [r3, #0]
  8532. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  8533. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  8534. + ClockDivision = 0
  8535. + Counter direction = Up
  8536. */
  8537. htim6.Init.Period = (1000000U / 1000U) - 1U;
  8538. 8003f68: 4b11 ldr r3, [pc, #68] @ (8003fb0 <HAL_InitTick+0xd0>)
  8539. 8003f6a: f240 32e7 movw r2, #999 @ 0x3e7
  8540. 8003f6e: 60da str r2, [r3, #12]
  8541. htim6.Init.Prescaler = uwPrescalerValue;
  8542. 8003f70: 4a0f ldr r2, [pc, #60] @ (8003fb0 <HAL_InitTick+0xd0>)
  8543. 8003f72: 6b7b ldr r3, [r7, #52] @ 0x34
  8544. 8003f74: 6053 str r3, [r2, #4]
  8545. htim6.Init.ClockDivision = 0;
  8546. 8003f76: 4b0e ldr r3, [pc, #56] @ (8003fb0 <HAL_InitTick+0xd0>)
  8547. 8003f78: 2200 movs r2, #0
  8548. 8003f7a: 611a str r2, [r3, #16]
  8549. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  8550. 8003f7c: 4b0c ldr r3, [pc, #48] @ (8003fb0 <HAL_InitTick+0xd0>)
  8551. 8003f7e: 2200 movs r2, #0
  8552. 8003f80: 609a str r2, [r3, #8]
  8553. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  8554. 8003f82: 480b ldr r0, [pc, #44] @ (8003fb0 <HAL_InitTick+0xd0>)
  8555. 8003f84: f00a fdf2 bl 800eb6c <HAL_TIM_Base_Init>
  8556. 8003f88: 4603 mov r3, r0
  8557. 8003f8a: 2b00 cmp r3, #0
  8558. 8003f8c: d104 bne.n 8003f98 <HAL_InitTick+0xb8>
  8559. {
  8560. /* Start the TIM time Base generation in interrupt mode */
  8561. return HAL_TIM_Base_Start_IT(&htim6);
  8562. 8003f8e: 4808 ldr r0, [pc, #32] @ (8003fb0 <HAL_InitTick+0xd0>)
  8563. 8003f90: f00a feb4 bl 800ecfc <HAL_TIM_Base_Start_IT>
  8564. 8003f94: 4603 mov r3, r0
  8565. 8003f96: e000 b.n 8003f9a <HAL_InitTick+0xba>
  8566. }
  8567. /* Return function status */
  8568. return HAL_ERROR;
  8569. 8003f98: 2301 movs r3, #1
  8570. }
  8571. 8003f9a: 4618 mov r0, r3
  8572. 8003f9c: 3740 adds r7, #64 @ 0x40
  8573. 8003f9e: 46bd mov sp, r7
  8574. 8003fa0: bd80 pop {r7, pc}
  8575. 8003fa2: bf00 nop
  8576. 8003fa4: 2400003c .word 0x2400003c
  8577. 8003fa8: 58024400 .word 0x58024400
  8578. 8003fac: 431bde83 .word 0x431bde83
  8579. 8003fb0: 240008b8 .word 0x240008b8
  8580. 8003fb4: 40001000 .word 0x40001000
  8581. 08003fb8 <NMI_Handler>:
  8582. /******************************************************************************/
  8583. /**
  8584. * @brief This function handles Non maskable interrupt.
  8585. */
  8586. void NMI_Handler(void)
  8587. {
  8588. 8003fb8: b480 push {r7}
  8589. 8003fba: af00 add r7, sp, #0
  8590. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  8591. /* USER CODE END NonMaskableInt_IRQn 0 */
  8592. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  8593. while (1)
  8594. 8003fbc: bf00 nop
  8595. 8003fbe: e7fd b.n 8003fbc <NMI_Handler+0x4>
  8596. 08003fc0 <HardFault_Handler>:
  8597. /**
  8598. * @brief This function handles Hard fault interrupt.
  8599. */
  8600. void HardFault_Handler(void)
  8601. {
  8602. 8003fc0: b480 push {r7}
  8603. 8003fc2: af00 add r7, sp, #0
  8604. /* USER CODE BEGIN HardFault_IRQn 0 */
  8605. /* USER CODE END HardFault_IRQn 0 */
  8606. while (1)
  8607. 8003fc4: bf00 nop
  8608. 8003fc6: e7fd b.n 8003fc4 <HardFault_Handler+0x4>
  8609. 08003fc8 <MemManage_Handler>:
  8610. /**
  8611. * @brief This function handles Memory management fault.
  8612. */
  8613. void MemManage_Handler(void)
  8614. {
  8615. 8003fc8: b480 push {r7}
  8616. 8003fca: af00 add r7, sp, #0
  8617. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  8618. /* USER CODE END MemoryManagement_IRQn 0 */
  8619. while (1)
  8620. 8003fcc: bf00 nop
  8621. 8003fce: e7fd b.n 8003fcc <MemManage_Handler+0x4>
  8622. 08003fd0 <BusFault_Handler>:
  8623. /**
  8624. * @brief This function handles Pre-fetch fault, memory access fault.
  8625. */
  8626. void BusFault_Handler(void)
  8627. {
  8628. 8003fd0: b480 push {r7}
  8629. 8003fd2: af00 add r7, sp, #0
  8630. /* USER CODE BEGIN BusFault_IRQn 0 */
  8631. /* USER CODE END BusFault_IRQn 0 */
  8632. while (1)
  8633. 8003fd4: bf00 nop
  8634. 8003fd6: e7fd b.n 8003fd4 <BusFault_Handler+0x4>
  8635. 08003fd8 <UsageFault_Handler>:
  8636. /**
  8637. * @brief This function handles Undefined instruction or illegal state.
  8638. */
  8639. void UsageFault_Handler(void)
  8640. {
  8641. 8003fd8: b480 push {r7}
  8642. 8003fda: af00 add r7, sp, #0
  8643. /* USER CODE BEGIN UsageFault_IRQn 0 */
  8644. /* USER CODE END UsageFault_IRQn 0 */
  8645. while (1)
  8646. 8003fdc: bf00 nop
  8647. 8003fde: e7fd b.n 8003fdc <UsageFault_Handler+0x4>
  8648. 08003fe0 <DebugMon_Handler>:
  8649. /**
  8650. * @brief This function handles Debug monitor.
  8651. */
  8652. void DebugMon_Handler(void)
  8653. {
  8654. 8003fe0: b480 push {r7}
  8655. 8003fe2: af00 add r7, sp, #0
  8656. /* USER CODE END DebugMonitor_IRQn 0 */
  8657. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  8658. /* USER CODE END DebugMonitor_IRQn 1 */
  8659. }
  8660. 8003fe4: bf00 nop
  8661. 8003fe6: 46bd mov sp, r7
  8662. 8003fe8: f85d 7b04 ldr.w r7, [sp], #4
  8663. 8003fec: 4770 bx lr
  8664. 08003fee <RCC_IRQHandler>:
  8665. /**
  8666. * @brief This function handles RCC global interrupt.
  8667. */
  8668. void RCC_IRQHandler(void)
  8669. {
  8670. 8003fee: b480 push {r7}
  8671. 8003ff0: af00 add r7, sp, #0
  8672. /* USER CODE END RCC_IRQn 0 */
  8673. /* USER CODE BEGIN RCC_IRQn 1 */
  8674. /* USER CODE END RCC_IRQn 1 */
  8675. }
  8676. 8003ff2: bf00 nop
  8677. 8003ff4: 46bd mov sp, r7
  8678. 8003ff6: f85d 7b04 ldr.w r7, [sp], #4
  8679. 8003ffa: 4770 bx lr
  8680. 08003ffc <DMA1_Stream0_IRQHandler>:
  8681. /**
  8682. * @brief This function handles DMA1 stream0 global interrupt.
  8683. */
  8684. void DMA1_Stream0_IRQHandler(void)
  8685. {
  8686. 8003ffc: b580 push {r7, lr}
  8687. 8003ffe: af00 add r7, sp, #0
  8688. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  8689. /* USER CODE END DMA1_Stream0_IRQn 0 */
  8690. HAL_DMA_IRQHandler(&hdma_adc1);
  8691. 8004000: 4802 ldr r0, [pc, #8] @ (800400c <DMA1_Stream0_IRQHandler+0x10>)
  8692. 8004002: f005 f977 bl 80092f4 <HAL_DMA_IRQHandler>
  8693. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  8694. /* USER CODE END DMA1_Stream0_IRQn 1 */
  8695. }
  8696. 8004006: bf00 nop
  8697. 8004008: bd80 pop {r7, pc}
  8698. 800400a: bf00 nop
  8699. 800400c: 2400026c .word 0x2400026c
  8700. 08004010 <DMA1_Stream1_IRQHandler>:
  8701. /**
  8702. * @brief This function handles DMA1 stream1 global interrupt.
  8703. */
  8704. void DMA1_Stream1_IRQHandler(void)
  8705. {
  8706. 8004010: b580 push {r7, lr}
  8707. 8004012: af00 add r7, sp, #0
  8708. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  8709. /* USER CODE END DMA1_Stream1_IRQn 0 */
  8710. HAL_DMA_IRQHandler(&hdma_adc2);
  8711. 8004014: 4802 ldr r0, [pc, #8] @ (8004020 <DMA1_Stream1_IRQHandler+0x10>)
  8712. 8004016: f005 f96d bl 80092f4 <HAL_DMA_IRQHandler>
  8713. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  8714. /* USER CODE END DMA1_Stream1_IRQn 1 */
  8715. }
  8716. 800401a: bf00 nop
  8717. 800401c: bd80 pop {r7, pc}
  8718. 800401e: bf00 nop
  8719. 8004020: 240002e4 .word 0x240002e4
  8720. 08004024 <DMA1_Stream2_IRQHandler>:
  8721. /**
  8722. * @brief This function handles DMA1 stream2 global interrupt.
  8723. */
  8724. void DMA1_Stream2_IRQHandler(void)
  8725. {
  8726. 8004024: b580 push {r7, lr}
  8727. 8004026: af00 add r7, sp, #0
  8728. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  8729. /* USER CODE END DMA1_Stream2_IRQn 0 */
  8730. HAL_DMA_IRQHandler(&hdma_adc3);
  8731. 8004028: 4802 ldr r0, [pc, #8] @ (8004034 <DMA1_Stream2_IRQHandler+0x10>)
  8732. 800402a: f005 f963 bl 80092f4 <HAL_DMA_IRQHandler>
  8733. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  8734. /* USER CODE END DMA1_Stream2_IRQn 1 */
  8735. }
  8736. 800402e: bf00 nop
  8737. 8004030: bd80 pop {r7, pc}
  8738. 8004032: bf00 nop
  8739. 8004034: 2400035c .word 0x2400035c
  8740. 08004038 <EXTI9_5_IRQHandler>:
  8741. /**
  8742. * @brief This function handles EXTI line[9:5] interrupts.
  8743. */
  8744. void EXTI9_5_IRQHandler(void)
  8745. {
  8746. 8004038: b580 push {r7, lr}
  8747. 800403a: af00 add r7, sp, #0
  8748. /* USER CODE BEGIN EXTI9_5_IRQn 0 */
  8749. /* USER CODE END EXTI9_5_IRQn 0 */
  8750. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
  8751. 800403c: f44f 7080 mov.w r0, #256 @ 0x100
  8752. 8004040: f006 fe65 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8753. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_9);
  8754. 8004044: f44f 7000 mov.w r0, #512 @ 0x200
  8755. 8004048: f006 fe61 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8756. /* USER CODE BEGIN EXTI9_5_IRQn 1 */
  8757. /* USER CODE END EXTI9_5_IRQn 1 */
  8758. }
  8759. 800404c: bf00 nop
  8760. 800404e: bd80 pop {r7, pc}
  8761. 08004050 <TIM2_IRQHandler>:
  8762. /**
  8763. * @brief This function handles TIM2 global interrupt.
  8764. */
  8765. void TIM2_IRQHandler(void)
  8766. {
  8767. 8004050: b580 push {r7, lr}
  8768. 8004052: af00 add r7, sp, #0
  8769. /* USER CODE BEGIN TIM2_IRQn 0 */
  8770. /* USER CODE END TIM2_IRQn 0 */
  8771. HAL_TIM_IRQHandler(&htim2);
  8772. 8004054: 4802 ldr r0, [pc, #8] @ (8004060 <TIM2_IRQHandler+0x10>)
  8773. 8004056: f00b fa77 bl 800f548 <HAL_TIM_IRQHandler>
  8774. /* USER CODE BEGIN TIM2_IRQn 1 */
  8775. /* USER CODE END TIM2_IRQn 1 */
  8776. }
  8777. 800405a: bf00 nop
  8778. 800405c: bd80 pop {r7, pc}
  8779. 800405e: bf00 nop
  8780. 8004060: 240004a8 .word 0x240004a8
  8781. 08004064 <TIM4_IRQHandler>:
  8782. /**
  8783. * @brief This function handles TIM4 global interrupt.
  8784. */
  8785. void TIM4_IRQHandler(void)
  8786. {
  8787. 8004064: b580 push {r7, lr}
  8788. 8004066: af00 add r7, sp, #0
  8789. /* USER CODE BEGIN TIM4_IRQn 0 */
  8790. /* USER CODE END TIM4_IRQn 0 */
  8791. HAL_TIM_IRQHandler(&htim4);
  8792. 8004068: 4802 ldr r0, [pc, #8] @ (8004074 <TIM4_IRQHandler+0x10>)
  8793. 800406a: f00b fa6d bl 800f548 <HAL_TIM_IRQHandler>
  8794. /* USER CODE BEGIN TIM4_IRQn 1 */
  8795. /* USER CODE END TIM4_IRQn 1 */
  8796. }
  8797. 800406e: bf00 nop
  8798. 8004070: bd80 pop {r7, pc}
  8799. 8004072: bf00 nop
  8800. 8004074: 24000540 .word 0x24000540
  8801. 08004078 <USART1_IRQHandler>:
  8802. /**
  8803. * @brief This function handles USART1 global interrupt.
  8804. */
  8805. void USART1_IRQHandler(void)
  8806. {
  8807. 8004078: b580 push {r7, lr}
  8808. 800407a: af00 add r7, sp, #0
  8809. /* USER CODE BEGIN USART1_IRQn 0 */
  8810. /* USER CODE END USART1_IRQn 0 */
  8811. HAL_UART_IRQHandler(&huart1);
  8812. 800407c: 4802 ldr r0, [pc, #8] @ (8004088 <USART1_IRQHandler+0x10>)
  8813. 800407e: f00c feb5 bl 8010dec <HAL_UART_IRQHandler>
  8814. /* USER CODE BEGIN USART1_IRQn 1 */
  8815. /* USER CODE END USART1_IRQn 1 */
  8816. }
  8817. 8004082: bf00 nop
  8818. 8004084: bd80 pop {r7, pc}
  8819. 8004086: bf00 nop
  8820. 8004088: 2400066c .word 0x2400066c
  8821. 0800408c <EXTI15_10_IRQHandler>:
  8822. /**
  8823. * @brief This function handles EXTI line[15:10] interrupts.
  8824. */
  8825. void EXTI15_10_IRQHandler(void)
  8826. {
  8827. 800408c: b580 push {r7, lr}
  8828. 800408e: af00 add r7, sp, #0
  8829. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  8830. /* USER CODE END EXTI15_10_IRQn 0 */
  8831. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  8832. 8004090: f44f 6080 mov.w r0, #1024 @ 0x400
  8833. 8004094: f006 fe3b bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8834. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  8835. 8004098: f44f 6000 mov.w r0, #2048 @ 0x800
  8836. 800409c: f006 fe37 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8837. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12);
  8838. 80040a0: f44f 5080 mov.w r0, #4096 @ 0x1000
  8839. 80040a4: f006 fe33 bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8840. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  8841. 80040a8: f44f 5000 mov.w r0, #8192 @ 0x2000
  8842. 80040ac: f006 fe2f bl 800ad0e <HAL_GPIO_EXTI_IRQHandler>
  8843. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  8844. /* USER CODE END EXTI15_10_IRQn 1 */
  8845. }
  8846. 80040b0: bf00 nop
  8847. 80040b2: bd80 pop {r7, pc}
  8848. 080040b4 <TIM6_DAC_IRQHandler>:
  8849. /**
  8850. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  8851. */
  8852. void TIM6_DAC_IRQHandler(void)
  8853. {
  8854. 80040b4: b580 push {r7, lr}
  8855. 80040b6: af00 add r7, sp, #0
  8856. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  8857. /* USER CODE END TIM6_DAC_IRQn 0 */
  8858. if (hdac1.State != HAL_DAC_STATE_RESET) {
  8859. 80040b8: 4b06 ldr r3, [pc, #24] @ (80040d4 <TIM6_DAC_IRQHandler+0x20>)
  8860. 80040ba: 791b ldrb r3, [r3, #4]
  8861. 80040bc: b2db uxtb r3, r3
  8862. 80040be: 2b00 cmp r3, #0
  8863. 80040c0: d002 beq.n 80040c8 <TIM6_DAC_IRQHandler+0x14>
  8864. HAL_DAC_IRQHandler(&hdac1);
  8865. 80040c2: 4804 ldr r0, [pc, #16] @ (80040d4 <TIM6_DAC_IRQHandler+0x20>)
  8866. 80040c4: f003 fc15 bl 80078f2 <HAL_DAC_IRQHandler>
  8867. }
  8868. HAL_TIM_IRQHandler(&htim6);
  8869. 80040c8: 4803 ldr r0, [pc, #12] @ (80040d8 <TIM6_DAC_IRQHandler+0x24>)
  8870. 80040ca: f00b fa3d bl 800f548 <HAL_TIM_IRQHandler>
  8871. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  8872. /* USER CODE END TIM6_DAC_IRQn 1 */
  8873. }
  8874. 80040ce: bf00 nop
  8875. 80040d0: bd80 pop {r7, pc}
  8876. 80040d2: bf00 nop
  8877. 80040d4: 24000424 .word 0x24000424
  8878. 80040d8: 240008b8 .word 0x240008b8
  8879. 080040dc <UART8_IRQHandler>:
  8880. /**
  8881. * @brief This function handles UART8 global interrupt.
  8882. */
  8883. void UART8_IRQHandler(void)
  8884. {
  8885. 80040dc: b580 push {r7, lr}
  8886. 80040de: af00 add r7, sp, #0
  8887. /* USER CODE BEGIN UART8_IRQn 0 */
  8888. /* USER CODE END UART8_IRQn 0 */
  8889. HAL_UART_IRQHandler(&huart8);
  8890. 80040e0: 4802 ldr r0, [pc, #8] @ (80040ec <UART8_IRQHandler+0x10>)
  8891. 80040e2: f00c fe83 bl 8010dec <HAL_UART_IRQHandler>
  8892. /* USER CODE BEGIN UART8_IRQn 1 */
  8893. /* USER CODE END UART8_IRQn 1 */
  8894. }
  8895. 80040e6: bf00 nop
  8896. 80040e8: bd80 pop {r7, pc}
  8897. 80040ea: bf00 nop
  8898. 80040ec: 240005d8 .word 0x240005d8
  8899. 080040f0 <_read>:
  8900. _kill(status, -1);
  8901. while (1) {} /* Make sure we hang here */
  8902. }
  8903. __attribute__((weak)) int _read(int file, char *ptr, int len)
  8904. {
  8905. 80040f0: b580 push {r7, lr}
  8906. 80040f2: b086 sub sp, #24
  8907. 80040f4: af00 add r7, sp, #0
  8908. 80040f6: 60f8 str r0, [r7, #12]
  8909. 80040f8: 60b9 str r1, [r7, #8]
  8910. 80040fa: 607a str r2, [r7, #4]
  8911. (void)file;
  8912. int DataIdx;
  8913. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8914. 80040fc: 2300 movs r3, #0
  8915. 80040fe: 617b str r3, [r7, #20]
  8916. 8004100: e00a b.n 8004118 <_read+0x28>
  8917. {
  8918. *ptr++ = __io_getchar();
  8919. 8004102: f3af 8000 nop.w
  8920. 8004106: 4601 mov r1, r0
  8921. 8004108: 68bb ldr r3, [r7, #8]
  8922. 800410a: 1c5a adds r2, r3, #1
  8923. 800410c: 60ba str r2, [r7, #8]
  8924. 800410e: b2ca uxtb r2, r1
  8925. 8004110: 701a strb r2, [r3, #0]
  8926. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8927. 8004112: 697b ldr r3, [r7, #20]
  8928. 8004114: 3301 adds r3, #1
  8929. 8004116: 617b str r3, [r7, #20]
  8930. 8004118: 697a ldr r2, [r7, #20]
  8931. 800411a: 687b ldr r3, [r7, #4]
  8932. 800411c: 429a cmp r2, r3
  8933. 800411e: dbf0 blt.n 8004102 <_read+0x12>
  8934. }
  8935. return len;
  8936. 8004120: 687b ldr r3, [r7, #4]
  8937. }
  8938. 8004122: 4618 mov r0, r3
  8939. 8004124: 3718 adds r7, #24
  8940. 8004126: 46bd mov sp, r7
  8941. 8004128: bd80 pop {r7, pc}
  8942. 0800412a <_write>:
  8943. __attribute__((weak)) int _write(int file, char *ptr, int len)
  8944. {
  8945. 800412a: b580 push {r7, lr}
  8946. 800412c: b086 sub sp, #24
  8947. 800412e: af00 add r7, sp, #0
  8948. 8004130: 60f8 str r0, [r7, #12]
  8949. 8004132: 60b9 str r1, [r7, #8]
  8950. 8004134: 607a str r2, [r7, #4]
  8951. (void)file;
  8952. int DataIdx;
  8953. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8954. 8004136: 2300 movs r3, #0
  8955. 8004138: 617b str r3, [r7, #20]
  8956. 800413a: e009 b.n 8004150 <_write+0x26>
  8957. {
  8958. __io_putchar(*ptr++);
  8959. 800413c: 68bb ldr r3, [r7, #8]
  8960. 800413e: 1c5a adds r2, r3, #1
  8961. 8004140: 60ba str r2, [r7, #8]
  8962. 8004142: 781b ldrb r3, [r3, #0]
  8963. 8004144: 4618 mov r0, r3
  8964. 8004146: f7fc fab5 bl 80006b4 <__io_putchar>
  8965. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8966. 800414a: 697b ldr r3, [r7, #20]
  8967. 800414c: 3301 adds r3, #1
  8968. 800414e: 617b str r3, [r7, #20]
  8969. 8004150: 697a ldr r2, [r7, #20]
  8970. 8004152: 687b ldr r3, [r7, #4]
  8971. 8004154: 429a cmp r2, r3
  8972. 8004156: dbf1 blt.n 800413c <_write+0x12>
  8973. }
  8974. return len;
  8975. 8004158: 687b ldr r3, [r7, #4]
  8976. }
  8977. 800415a: 4618 mov r0, r3
  8978. 800415c: 3718 adds r7, #24
  8979. 800415e: 46bd mov sp, r7
  8980. 8004160: bd80 pop {r7, pc}
  8981. 08004162 <_close>:
  8982. int _close(int file)
  8983. {
  8984. 8004162: b480 push {r7}
  8985. 8004164: b083 sub sp, #12
  8986. 8004166: af00 add r7, sp, #0
  8987. 8004168: 6078 str r0, [r7, #4]
  8988. (void)file;
  8989. return -1;
  8990. 800416a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8991. }
  8992. 800416e: 4618 mov r0, r3
  8993. 8004170: 370c adds r7, #12
  8994. 8004172: 46bd mov sp, r7
  8995. 8004174: f85d 7b04 ldr.w r7, [sp], #4
  8996. 8004178: 4770 bx lr
  8997. 0800417a <_fstat>:
  8998. int _fstat(int file, struct stat *st)
  8999. {
  9000. 800417a: b480 push {r7}
  9001. 800417c: b083 sub sp, #12
  9002. 800417e: af00 add r7, sp, #0
  9003. 8004180: 6078 str r0, [r7, #4]
  9004. 8004182: 6039 str r1, [r7, #0]
  9005. (void)file;
  9006. st->st_mode = S_IFCHR;
  9007. 8004184: 683b ldr r3, [r7, #0]
  9008. 8004186: f44f 5200 mov.w r2, #8192 @ 0x2000
  9009. 800418a: 605a str r2, [r3, #4]
  9010. return 0;
  9011. 800418c: 2300 movs r3, #0
  9012. }
  9013. 800418e: 4618 mov r0, r3
  9014. 8004190: 370c adds r7, #12
  9015. 8004192: 46bd mov sp, r7
  9016. 8004194: f85d 7b04 ldr.w r7, [sp], #4
  9017. 8004198: 4770 bx lr
  9018. 0800419a <_isatty>:
  9019. int _isatty(int file)
  9020. {
  9021. 800419a: b480 push {r7}
  9022. 800419c: b083 sub sp, #12
  9023. 800419e: af00 add r7, sp, #0
  9024. 80041a0: 6078 str r0, [r7, #4]
  9025. (void)file;
  9026. return 1;
  9027. 80041a2: 2301 movs r3, #1
  9028. }
  9029. 80041a4: 4618 mov r0, r3
  9030. 80041a6: 370c adds r7, #12
  9031. 80041a8: 46bd mov sp, r7
  9032. 80041aa: f85d 7b04 ldr.w r7, [sp], #4
  9033. 80041ae: 4770 bx lr
  9034. 080041b0 <_lseek>:
  9035. int _lseek(int file, int ptr, int dir)
  9036. {
  9037. 80041b0: b480 push {r7}
  9038. 80041b2: b085 sub sp, #20
  9039. 80041b4: af00 add r7, sp, #0
  9040. 80041b6: 60f8 str r0, [r7, #12]
  9041. 80041b8: 60b9 str r1, [r7, #8]
  9042. 80041ba: 607a str r2, [r7, #4]
  9043. (void)file;
  9044. (void)ptr;
  9045. (void)dir;
  9046. return 0;
  9047. 80041bc: 2300 movs r3, #0
  9048. }
  9049. 80041be: 4618 mov r0, r3
  9050. 80041c0: 3714 adds r7, #20
  9051. 80041c2: 46bd mov sp, r7
  9052. 80041c4: f85d 7b04 ldr.w r7, [sp], #4
  9053. 80041c8: 4770 bx lr
  9054. ...
  9055. 080041cc <_sbrk>:
  9056. *
  9057. * @param incr Memory size
  9058. * @return Pointer to allocated memory
  9059. */
  9060. void *_sbrk(ptrdiff_t incr)
  9061. {
  9062. 80041cc: b580 push {r7, lr}
  9063. 80041ce: b086 sub sp, #24
  9064. 80041d0: af00 add r7, sp, #0
  9065. 80041d2: 6078 str r0, [r7, #4]
  9066. extern uint8_t _end; /* Symbol defined in the linker script */
  9067. extern uint8_t _estack; /* Symbol defined in the linker script */
  9068. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  9069. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  9070. 80041d4: 4a14 ldr r2, [pc, #80] @ (8004228 <_sbrk+0x5c>)
  9071. 80041d6: 4b15 ldr r3, [pc, #84] @ (800422c <_sbrk+0x60>)
  9072. 80041d8: 1ad3 subs r3, r2, r3
  9073. 80041da: 617b str r3, [r7, #20]
  9074. const uint8_t *max_heap = (uint8_t *)stack_limit;
  9075. 80041dc: 697b ldr r3, [r7, #20]
  9076. 80041de: 613b str r3, [r7, #16]
  9077. uint8_t *prev_heap_end;
  9078. /* Initialize heap end at first call */
  9079. if (NULL == __sbrk_heap_end)
  9080. 80041e0: 4b13 ldr r3, [pc, #76] @ (8004230 <_sbrk+0x64>)
  9081. 80041e2: 681b ldr r3, [r3, #0]
  9082. 80041e4: 2b00 cmp r3, #0
  9083. 80041e6: d102 bne.n 80041ee <_sbrk+0x22>
  9084. {
  9085. __sbrk_heap_end = &_end;
  9086. 80041e8: 4b11 ldr r3, [pc, #68] @ (8004230 <_sbrk+0x64>)
  9087. 80041ea: 4a12 ldr r2, [pc, #72] @ (8004234 <_sbrk+0x68>)
  9088. 80041ec: 601a str r2, [r3, #0]
  9089. }
  9090. /* Protect heap from growing into the reserved MSP stack */
  9091. if (__sbrk_heap_end + incr > max_heap)
  9092. 80041ee: 4b10 ldr r3, [pc, #64] @ (8004230 <_sbrk+0x64>)
  9093. 80041f0: 681a ldr r2, [r3, #0]
  9094. 80041f2: 687b ldr r3, [r7, #4]
  9095. 80041f4: 4413 add r3, r2
  9096. 80041f6: 693a ldr r2, [r7, #16]
  9097. 80041f8: 429a cmp r2, r3
  9098. 80041fa: d207 bcs.n 800420c <_sbrk+0x40>
  9099. {
  9100. errno = ENOMEM;
  9101. 80041fc: f013 fe78 bl 8017ef0 <__errno>
  9102. 8004200: 4603 mov r3, r0
  9103. 8004202: 220c movs r2, #12
  9104. 8004204: 601a str r2, [r3, #0]
  9105. return (void *)-1;
  9106. 8004206: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9107. 800420a: e009 b.n 8004220 <_sbrk+0x54>
  9108. }
  9109. prev_heap_end = __sbrk_heap_end;
  9110. 800420c: 4b08 ldr r3, [pc, #32] @ (8004230 <_sbrk+0x64>)
  9111. 800420e: 681b ldr r3, [r3, #0]
  9112. 8004210: 60fb str r3, [r7, #12]
  9113. __sbrk_heap_end += incr;
  9114. 8004212: 4b07 ldr r3, [pc, #28] @ (8004230 <_sbrk+0x64>)
  9115. 8004214: 681a ldr r2, [r3, #0]
  9116. 8004216: 687b ldr r3, [r7, #4]
  9117. 8004218: 4413 add r3, r2
  9118. 800421a: 4a05 ldr r2, [pc, #20] @ (8004230 <_sbrk+0x64>)
  9119. 800421c: 6013 str r3, [r2, #0]
  9120. return (void *)prev_heap_end;
  9121. 800421e: 68fb ldr r3, [r7, #12]
  9122. }
  9123. 8004220: 4618 mov r0, r3
  9124. 8004222: 3718 adds r7, #24
  9125. 8004224: 46bd mov sp, r7
  9126. 8004226: bd80 pop {r7, pc}
  9127. 8004228: 24060000 .word 0x24060000
  9128. 800422c: 00000400 .word 0x00000400
  9129. 8004230: 24000904 .word 0x24000904
  9130. 8004234: 24012e38 .word 0x24012e38
  9131. 08004238 <SystemInit>:
  9132. * configuration.
  9133. * @param None
  9134. * @retval None
  9135. */
  9136. void SystemInit (void)
  9137. {
  9138. 8004238: b480 push {r7}
  9139. 800423a: af00 add r7, sp, #0
  9140. __IO uint32_t tmpreg;
  9141. #endif /* DATA_IN_D2_SRAM */
  9142. /* FPU settings ------------------------------------------------------------*/
  9143. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  9144. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  9145. 800423c: 4b37 ldr r3, [pc, #220] @ (800431c <SystemInit+0xe4>)
  9146. 800423e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  9147. 8004242: 4a36 ldr r2, [pc, #216] @ (800431c <SystemInit+0xe4>)
  9148. 8004244: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  9149. 8004248: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  9150. #endif
  9151. /* Reset the RCC clock configuration to the default reset state ------------*/
  9152. /* Increasing the CPU frequency */
  9153. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9154. 800424c: 4b34 ldr r3, [pc, #208] @ (8004320 <SystemInit+0xe8>)
  9155. 800424e: 681b ldr r3, [r3, #0]
  9156. 8004250: f003 030f and.w r3, r3, #15
  9157. 8004254: 2b06 cmp r3, #6
  9158. 8004256: d807 bhi.n 8004268 <SystemInit+0x30>
  9159. {
  9160. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9161. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9162. 8004258: 4b31 ldr r3, [pc, #196] @ (8004320 <SystemInit+0xe8>)
  9163. 800425a: 681b ldr r3, [r3, #0]
  9164. 800425c: f023 030f bic.w r3, r3, #15
  9165. 8004260: 4a2f ldr r2, [pc, #188] @ (8004320 <SystemInit+0xe8>)
  9166. 8004262: f043 0307 orr.w r3, r3, #7
  9167. 8004266: 6013 str r3, [r2, #0]
  9168. }
  9169. /* Set HSION bit */
  9170. RCC->CR |= RCC_CR_HSION;
  9171. 8004268: 4b2e ldr r3, [pc, #184] @ (8004324 <SystemInit+0xec>)
  9172. 800426a: 681b ldr r3, [r3, #0]
  9173. 800426c: 4a2d ldr r2, [pc, #180] @ (8004324 <SystemInit+0xec>)
  9174. 800426e: f043 0301 orr.w r3, r3, #1
  9175. 8004272: 6013 str r3, [r2, #0]
  9176. /* Reset CFGR register */
  9177. RCC->CFGR = 0x00000000;
  9178. 8004274: 4b2b ldr r3, [pc, #172] @ (8004324 <SystemInit+0xec>)
  9179. 8004276: 2200 movs r2, #0
  9180. 8004278: 611a str r2, [r3, #16]
  9181. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  9182. RCC->CR &= 0xEAF6ED7FU;
  9183. 800427a: 4b2a ldr r3, [pc, #168] @ (8004324 <SystemInit+0xec>)
  9184. 800427c: 681a ldr r2, [r3, #0]
  9185. 800427e: 4929 ldr r1, [pc, #164] @ (8004324 <SystemInit+0xec>)
  9186. 8004280: 4b29 ldr r3, [pc, #164] @ (8004328 <SystemInit+0xf0>)
  9187. 8004282: 4013 ands r3, r2
  9188. 8004284: 600b str r3, [r1, #0]
  9189. /* Decreasing the number of wait states because of lower CPU frequency */
  9190. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9191. 8004286: 4b26 ldr r3, [pc, #152] @ (8004320 <SystemInit+0xe8>)
  9192. 8004288: 681b ldr r3, [r3, #0]
  9193. 800428a: f003 0308 and.w r3, r3, #8
  9194. 800428e: 2b00 cmp r3, #0
  9195. 8004290: d007 beq.n 80042a2 <SystemInit+0x6a>
  9196. {
  9197. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9198. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9199. 8004292: 4b23 ldr r3, [pc, #140] @ (8004320 <SystemInit+0xe8>)
  9200. 8004294: 681b ldr r3, [r3, #0]
  9201. 8004296: f023 030f bic.w r3, r3, #15
  9202. 800429a: 4a21 ldr r2, [pc, #132] @ (8004320 <SystemInit+0xe8>)
  9203. 800429c: f043 0307 orr.w r3, r3, #7
  9204. 80042a0: 6013 str r3, [r2, #0]
  9205. }
  9206. #if defined(D3_SRAM_BASE)
  9207. /* Reset D1CFGR register */
  9208. RCC->D1CFGR = 0x00000000;
  9209. 80042a2: 4b20 ldr r3, [pc, #128] @ (8004324 <SystemInit+0xec>)
  9210. 80042a4: 2200 movs r2, #0
  9211. 80042a6: 619a str r2, [r3, #24]
  9212. /* Reset D2CFGR register */
  9213. RCC->D2CFGR = 0x00000000;
  9214. 80042a8: 4b1e ldr r3, [pc, #120] @ (8004324 <SystemInit+0xec>)
  9215. 80042aa: 2200 movs r2, #0
  9216. 80042ac: 61da str r2, [r3, #28]
  9217. /* Reset D3CFGR register */
  9218. RCC->D3CFGR = 0x00000000;
  9219. 80042ae: 4b1d ldr r3, [pc, #116] @ (8004324 <SystemInit+0xec>)
  9220. 80042b0: 2200 movs r2, #0
  9221. 80042b2: 621a str r2, [r3, #32]
  9222. /* Reset SRDCFGR register */
  9223. RCC->SRDCFGR = 0x00000000;
  9224. #endif
  9225. /* Reset PLLCKSELR register */
  9226. RCC->PLLCKSELR = 0x02020200;
  9227. 80042b4: 4b1b ldr r3, [pc, #108] @ (8004324 <SystemInit+0xec>)
  9228. 80042b6: 4a1d ldr r2, [pc, #116] @ (800432c <SystemInit+0xf4>)
  9229. 80042b8: 629a str r2, [r3, #40] @ 0x28
  9230. /* Reset PLLCFGR register */
  9231. RCC->PLLCFGR = 0x01FF0000;
  9232. 80042ba: 4b1a ldr r3, [pc, #104] @ (8004324 <SystemInit+0xec>)
  9233. 80042bc: 4a1c ldr r2, [pc, #112] @ (8004330 <SystemInit+0xf8>)
  9234. 80042be: 62da str r2, [r3, #44] @ 0x2c
  9235. /* Reset PLL1DIVR register */
  9236. RCC->PLL1DIVR = 0x01010280;
  9237. 80042c0: 4b18 ldr r3, [pc, #96] @ (8004324 <SystemInit+0xec>)
  9238. 80042c2: 4a1c ldr r2, [pc, #112] @ (8004334 <SystemInit+0xfc>)
  9239. 80042c4: 631a str r2, [r3, #48] @ 0x30
  9240. /* Reset PLL1FRACR register */
  9241. RCC->PLL1FRACR = 0x00000000;
  9242. 80042c6: 4b17 ldr r3, [pc, #92] @ (8004324 <SystemInit+0xec>)
  9243. 80042c8: 2200 movs r2, #0
  9244. 80042ca: 635a str r2, [r3, #52] @ 0x34
  9245. /* Reset PLL2DIVR register */
  9246. RCC->PLL2DIVR = 0x01010280;
  9247. 80042cc: 4b15 ldr r3, [pc, #84] @ (8004324 <SystemInit+0xec>)
  9248. 80042ce: 4a19 ldr r2, [pc, #100] @ (8004334 <SystemInit+0xfc>)
  9249. 80042d0: 639a str r2, [r3, #56] @ 0x38
  9250. /* Reset PLL2FRACR register */
  9251. RCC->PLL2FRACR = 0x00000000;
  9252. 80042d2: 4b14 ldr r3, [pc, #80] @ (8004324 <SystemInit+0xec>)
  9253. 80042d4: 2200 movs r2, #0
  9254. 80042d6: 63da str r2, [r3, #60] @ 0x3c
  9255. /* Reset PLL3DIVR register */
  9256. RCC->PLL3DIVR = 0x01010280;
  9257. 80042d8: 4b12 ldr r3, [pc, #72] @ (8004324 <SystemInit+0xec>)
  9258. 80042da: 4a16 ldr r2, [pc, #88] @ (8004334 <SystemInit+0xfc>)
  9259. 80042dc: 641a str r2, [r3, #64] @ 0x40
  9260. /* Reset PLL3FRACR register */
  9261. RCC->PLL3FRACR = 0x00000000;
  9262. 80042de: 4b11 ldr r3, [pc, #68] @ (8004324 <SystemInit+0xec>)
  9263. 80042e0: 2200 movs r2, #0
  9264. 80042e2: 645a str r2, [r3, #68] @ 0x44
  9265. /* Reset HSEBYP bit */
  9266. RCC->CR &= 0xFFFBFFFFU;
  9267. 80042e4: 4b0f ldr r3, [pc, #60] @ (8004324 <SystemInit+0xec>)
  9268. 80042e6: 681b ldr r3, [r3, #0]
  9269. 80042e8: 4a0e ldr r2, [pc, #56] @ (8004324 <SystemInit+0xec>)
  9270. 80042ea: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  9271. 80042ee: 6013 str r3, [r2, #0]
  9272. /* Disable all interrupts */
  9273. RCC->CIER = 0x00000000;
  9274. 80042f0: 4b0c ldr r3, [pc, #48] @ (8004324 <SystemInit+0xec>)
  9275. 80042f2: 2200 movs r2, #0
  9276. 80042f4: 661a str r2, [r3, #96] @ 0x60
  9277. #if (STM32H7_DEV_ID == 0x450UL)
  9278. /* dual core CM7 or single core line */
  9279. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  9280. 80042f6: 4b10 ldr r3, [pc, #64] @ (8004338 <SystemInit+0x100>)
  9281. 80042f8: 681a ldr r2, [r3, #0]
  9282. 80042fa: 4b10 ldr r3, [pc, #64] @ (800433c <SystemInit+0x104>)
  9283. 80042fc: 4013 ands r3, r2
  9284. 80042fe: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  9285. 8004302: d202 bcs.n 800430a <SystemInit+0xd2>
  9286. {
  9287. /* if stm32h7 revY*/
  9288. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  9289. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  9290. 8004304: 4b0e ldr r3, [pc, #56] @ (8004340 <SystemInit+0x108>)
  9291. 8004306: 2201 movs r2, #1
  9292. 8004308: 601a str r2, [r3, #0]
  9293. /*
  9294. * Disable the FMC bank1 (enabled after reset).
  9295. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  9296. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  9297. */
  9298. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  9299. 800430a: 4b0e ldr r3, [pc, #56] @ (8004344 <SystemInit+0x10c>)
  9300. 800430c: f243 02d2 movw r2, #12498 @ 0x30d2
  9301. 8004310: 601a str r2, [r3, #0]
  9302. #if defined(USER_VECT_TAB_ADDRESS)
  9303. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  9304. #endif /* USER_VECT_TAB_ADDRESS */
  9305. #endif /*DUAL_CORE && CORE_CM4*/
  9306. }
  9307. 8004312: bf00 nop
  9308. 8004314: 46bd mov sp, r7
  9309. 8004316: f85d 7b04 ldr.w r7, [sp], #4
  9310. 800431a: 4770 bx lr
  9311. 800431c: e000ed00 .word 0xe000ed00
  9312. 8004320: 52002000 .word 0x52002000
  9313. 8004324: 58024400 .word 0x58024400
  9314. 8004328: eaf6ed7f .word 0xeaf6ed7f
  9315. 800432c: 02020200 .word 0x02020200
  9316. 8004330: 01ff0000 .word 0x01ff0000
  9317. 8004334: 01010280 .word 0x01010280
  9318. 8004338: 5c001000 .word 0x5c001000
  9319. 800433c: ffff0000 .word 0xffff0000
  9320. 8004340: 51008108 .word 0x51008108
  9321. 8004344: 52004000 .word 0x52004000
  9322. 08004348 <__NVIC_SystemReset>:
  9323. {
  9324. 8004348: b480 push {r7}
  9325. 800434a: af00 add r7, sp, #0
  9326. __ASM volatile ("dsb 0xF":::"memory");
  9327. 800434c: f3bf 8f4f dsb sy
  9328. }
  9329. 8004350: bf00 nop
  9330. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  9331. 8004352: 4b06 ldr r3, [pc, #24] @ (800436c <__NVIC_SystemReset+0x24>)
  9332. 8004354: 68db ldr r3, [r3, #12]
  9333. 8004356: f403 62e0 and.w r2, r3, #1792 @ 0x700
  9334. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  9335. 800435a: 4904 ldr r1, [pc, #16] @ (800436c <__NVIC_SystemReset+0x24>)
  9336. 800435c: 4b04 ldr r3, [pc, #16] @ (8004370 <__NVIC_SystemReset+0x28>)
  9337. 800435e: 4313 orrs r3, r2
  9338. 8004360: 60cb str r3, [r1, #12]
  9339. __ASM volatile ("dsb 0xF":::"memory");
  9340. 8004362: f3bf 8f4f dsb sy
  9341. }
  9342. 8004366: bf00 nop
  9343. __NOP();
  9344. 8004368: bf00 nop
  9345. 800436a: e7fd b.n 8004368 <__NVIC_SystemReset+0x20>
  9346. 800436c: e000ed00 .word 0xe000ed00
  9347. 8004370: 05fa0004 .word 0x05fa0004
  9348. 08004374 <UartTasksInit>:
  9349. uint32_t slaveLastSeen[SLAVES_COUNT] = { 0 };
  9350. extern RNG_HandleTypeDef hrng;
  9351. void UartTasksInit (void) {
  9352. 8004374: b580 push {r7, lr}
  9353. 8004376: af00 add r7, sp, #0
  9354. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  9355. 8004378: 4b13 ldr r3, [pc, #76] @ (80043c8 <UartTasksInit+0x54>)
  9356. 800437a: 4a14 ldr r2, [pc, #80] @ (80043cc <UartTasksInit+0x58>)
  9357. 800437c: 601a str r2, [r3, #0]
  9358. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  9359. 800437e: 4b12 ldr r3, [pc, #72] @ (80043c8 <UartTasksInit+0x54>)
  9360. 8004380: f44f 7280 mov.w r2, #256 @ 0x100
  9361. 8004384: 809a strh r2, [r3, #4]
  9362. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  9363. 8004386: 4b10 ldr r3, [pc, #64] @ (80043c8 <UartTasksInit+0x54>)
  9364. 8004388: 4a11 ldr r2, [pc, #68] @ (80043d0 <UartTasksInit+0x5c>)
  9365. 800438a: 609a str r2, [r3, #8]
  9366. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  9367. 800438c: 4b0e ldr r3, [pc, #56] @ (80043c8 <UartTasksInit+0x54>)
  9368. 800438e: f44f 7280 mov.w r2, #256 @ 0x100
  9369. 8004392: 809a strh r2, [r3, #4]
  9370. uart1TaskData.frameData = uart1TaskFrameData;
  9371. 8004394: 4b0c ldr r3, [pc, #48] @ (80043c8 <UartTasksInit+0x54>)
  9372. 8004396: 4a0f ldr r2, [pc, #60] @ (80043d4 <UartTasksInit+0x60>)
  9373. 8004398: 611a str r2, [r3, #16]
  9374. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  9375. 800439a: 4b0b ldr r3, [pc, #44] @ (80043c8 <UartTasksInit+0x54>)
  9376. 800439c: f44f 7280 mov.w r2, #256 @ 0x100
  9377. 80043a0: 829a strh r2, [r3, #20]
  9378. uart1TaskData.huart = &huart1;
  9379. 80043a2: 4b09 ldr r3, [pc, #36] @ (80043c8 <UartTasksInit+0x54>)
  9380. 80043a4: 4a0c ldr r2, [pc, #48] @ (80043d8 <UartTasksInit+0x64>)
  9381. 80043a6: 631a str r2, [r3, #48] @ 0x30
  9382. uart1TaskData.uartNumber = 1;
  9383. 80043a8: 4b07 ldr r3, [pc, #28] @ (80043c8 <UartTasksInit+0x54>)
  9384. 80043aa: 2201 movs r2, #1
  9385. 80043ac: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9386. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  9387. 80043b0: 4b05 ldr r3, [pc, #20] @ (80043c8 <UartTasksInit+0x54>)
  9388. 80043b2: 4a0a ldr r2, [pc, #40] @ (80043dc <UartTasksInit+0x68>)
  9389. 80043b4: 629a str r2, [r3, #40] @ 0x28
  9390. uart1TaskData.processRxDataMsgBuffer = NULL;
  9391. 80043b6: 4b04 ldr r3, [pc, #16] @ (80043c8 <UartTasksInit+0x54>)
  9392. 80043b8: 2200 movs r2, #0
  9393. 80043ba: 625a str r2, [r3, #36] @ 0x24
  9394. UartTaskCreate (&uart1TaskData);
  9395. 80043bc: 4802 ldr r0, [pc, #8] @ (80043c8 <UartTasksInit+0x54>)
  9396. 80043be: f000 f80f bl 80043e0 <UartTaskCreate>
  9397. }
  9398. 80043c2: bf00 nop
  9399. 80043c4: bd80 pop {r7, pc}
  9400. 80043c6: bf00 nop
  9401. 80043c8: 24000c08 .word 0x24000c08
  9402. 80043cc: 24000908 .word 0x24000908
  9403. 80043d0: 24000a08 .word 0x24000a08
  9404. 80043d4: 24000b08 .word 0x24000b08
  9405. 80043d8: 2400066c .word 0x2400066c
  9406. 80043dc: 08004ae5 .word 0x08004ae5
  9407. 080043e0 <UartTaskCreate>:
  9408. void UartTaskCreate (UartTaskData* uartTaskData) {
  9409. 80043e0: b580 push {r7, lr}
  9410. 80043e2: b08c sub sp, #48 @ 0x30
  9411. 80043e4: af00 add r7, sp, #0
  9412. 80043e6: 6078 str r0, [r7, #4]
  9413. osThreadAttr_t osThreadAttrRxUart = { 0 };
  9414. 80043e8: f107 030c add.w r3, r7, #12
  9415. 80043ec: 2224 movs r2, #36 @ 0x24
  9416. 80043ee: 2100 movs r1, #0
  9417. 80043f0: 4618 mov r0, r3
  9418. 80043f2: f013 fcd8 bl 8017da6 <memset>
  9419. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  9420. 80043f6: f44f 6380 mov.w r3, #1024 @ 0x400
  9421. 80043fa: 623b str r3, [r7, #32]
  9422. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  9423. 80043fc: 2328 movs r3, #40 @ 0x28
  9424. 80043fe: 627b str r3, [r7, #36] @ 0x24
  9425. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  9426. 8004400: f107 030c add.w r3, r7, #12
  9427. 8004404: 461a mov r2, r3
  9428. 8004406: 6879 ldr r1, [r7, #4]
  9429. 8004408: 4804 ldr r0, [pc, #16] @ (800441c <UartTaskCreate+0x3c>)
  9430. 800440a: f00f fa5d bl 80138c8 <osThreadNew>
  9431. 800440e: 4602 mov r2, r0
  9432. 8004410: 687b ldr r3, [r7, #4]
  9433. 8004412: 619a str r2, [r3, #24]
  9434. }
  9435. 8004414: bf00 nop
  9436. 8004416: 3730 adds r7, #48 @ 0x30
  9437. 8004418: 46bd mov sp, r7
  9438. 800441a: bd80 pop {r7, pc}
  9439. 800441c: 08004535 .word 0x08004535
  9440. 08004420 <HAL_UART_RxCpltCallback>:
  9441. uart8TaskData.huart = &huart8;
  9442. uart8TaskData.uartNumber = 8;
  9443. uart8TaskData.uartRecieveTaskHandle = osThreadNew (UartRxTask, &uart8TaskData, &osThreadAttrRxUart);
  9444. }
  9445. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  9446. 8004420: b480 push {r7}
  9447. 8004422: b083 sub sp, #12
  9448. 8004424: af00 add r7, sp, #0
  9449. 8004426: 6078 str r0, [r7, #4]
  9450. }
  9451. 8004428: bf00 nop
  9452. 800442a: 370c adds r7, #12
  9453. 800442c: 46bd mov sp, r7
  9454. 800442e: f85d 7b04 ldr.w r7, [sp], #4
  9455. 8004432: 4770 bx lr
  9456. 08004434 <HAL_UARTEx_RxEventCallback>:
  9457. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  9458. 8004434: b580 push {r7, lr}
  9459. 8004436: b082 sub sp, #8
  9460. 8004438: af00 add r7, sp, #0
  9461. 800443a: 6078 str r0, [r7, #4]
  9462. 800443c: 460b mov r3, r1
  9463. 800443e: 807b strh r3, [r7, #2]
  9464. if (huart->Instance == USART1) {
  9465. 8004440: 687b ldr r3, [r7, #4]
  9466. 8004442: 681b ldr r3, [r3, #0]
  9467. 8004444: 4a0c ldr r2, [pc, #48] @ (8004478 <HAL_UARTEx_RxEventCallback+0x44>)
  9468. 8004446: 4293 cmp r3, r2
  9469. 8004448: d106 bne.n 8004458 <HAL_UARTEx_RxEventCallback+0x24>
  9470. HandleUartRxCallback (&uart1TaskData, huart, Size);
  9471. 800444a: 887b ldrh r3, [r7, #2]
  9472. 800444c: 461a mov r2, r3
  9473. 800444e: 6879 ldr r1, [r7, #4]
  9474. 8004450: 480a ldr r0, [pc, #40] @ (800447c <HAL_UARTEx_RxEventCallback+0x48>)
  9475. 8004452: f000 f823 bl 800449c <HandleUartRxCallback>
  9476. } else if (huart->Instance == UART8) {
  9477. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9478. }
  9479. }
  9480. 8004456: e00a b.n 800446e <HAL_UARTEx_RxEventCallback+0x3a>
  9481. } else if (huart->Instance == UART8) {
  9482. 8004458: 687b ldr r3, [r7, #4]
  9483. 800445a: 681b ldr r3, [r3, #0]
  9484. 800445c: 4a08 ldr r2, [pc, #32] @ (8004480 <HAL_UARTEx_RxEventCallback+0x4c>)
  9485. 800445e: 4293 cmp r3, r2
  9486. 8004460: d105 bne.n 800446e <HAL_UARTEx_RxEventCallback+0x3a>
  9487. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9488. 8004462: 887b ldrh r3, [r7, #2]
  9489. 8004464: 461a mov r2, r3
  9490. 8004466: 6879 ldr r1, [r7, #4]
  9491. 8004468: 4806 ldr r0, [pc, #24] @ (8004484 <HAL_UARTEx_RxEventCallback+0x50>)
  9492. 800446a: f000 f817 bl 800449c <HandleUartRxCallback>
  9493. }
  9494. 800446e: bf00 nop
  9495. 8004470: 3708 adds r7, #8
  9496. 8004472: 46bd mov sp, r7
  9497. 8004474: bd80 pop {r7, pc}
  9498. 8004476: bf00 nop
  9499. 8004478: 40011000 .word 0x40011000
  9500. 800447c: 24000c08 .word 0x24000c08
  9501. 8004480: 40007c00 .word 0x40007c00
  9502. 8004484: 24000c40 .word 0x24000c40
  9503. 08004488 <HAL_UART_TxCpltCallback>:
  9504. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  9505. 8004488: b480 push {r7}
  9506. 800448a: b083 sub sp, #12
  9507. 800448c: af00 add r7, sp, #0
  9508. 800448e: 6078 str r0, [r7, #4]
  9509. if (huart->Instance == UART8) {
  9510. }
  9511. }
  9512. 8004490: bf00 nop
  9513. 8004492: 370c adds r7, #12
  9514. 8004494: 46bd mov sp, r7
  9515. 8004496: f85d 7b04 ldr.w r7, [sp], #4
  9516. 800449a: 4770 bx lr
  9517. 0800449c <HandleUartRxCallback>:
  9518. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  9519. 800449c: b580 push {r7, lr}
  9520. 800449e: b088 sub sp, #32
  9521. 80044a0: af02 add r7, sp, #8
  9522. 80044a2: 60f8 str r0, [r7, #12]
  9523. 80044a4: 60b9 str r1, [r7, #8]
  9524. 80044a6: 4613 mov r3, r2
  9525. 80044a8: 80fb strh r3, [r7, #6]
  9526. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  9527. 80044aa: 2300 movs r3, #0
  9528. 80044ac: 617b str r3, [r7, #20]
  9529. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9530. 80044ae: 68fb ldr r3, [r7, #12]
  9531. 80044b0: 6a1b ldr r3, [r3, #32]
  9532. 80044b2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9533. 80044b6: 4618 mov r0, r3
  9534. 80044b8: f00f fc31 bl 8013d1e <osMutexAcquire>
  9535. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  9536. 80044bc: 68fb ldr r3, [r7, #12]
  9537. 80044be: 691b ldr r3, [r3, #16]
  9538. 80044c0: 68fa ldr r2, [r7, #12]
  9539. 80044c2: 8ad2 ldrh r2, [r2, #22]
  9540. 80044c4: 1898 adds r0, r3, r2
  9541. 80044c6: 68fb ldr r3, [r7, #12]
  9542. 80044c8: 681b ldr r3, [r3, #0]
  9543. 80044ca: 88fa ldrh r2, [r7, #6]
  9544. 80044cc: 4619 mov r1, r3
  9545. 80044ce: f013 fd3c bl 8017f4a <memcpy>
  9546. uartTaskData->frameBytesCount += Size;
  9547. 80044d2: 68fb ldr r3, [r7, #12]
  9548. 80044d4: 8ada ldrh r2, [r3, #22]
  9549. 80044d6: 88fb ldrh r3, [r7, #6]
  9550. 80044d8: 4413 add r3, r2
  9551. 80044da: b29a uxth r2, r3
  9552. 80044dc: 68fb ldr r3, [r7, #12]
  9553. 80044de: 82da strh r2, [r3, #22]
  9554. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9555. 80044e0: 68fb ldr r3, [r7, #12]
  9556. 80044e2: 6a1b ldr r3, [r3, #32]
  9557. 80044e4: 4618 mov r0, r3
  9558. 80044e6: f00f fc65 bl 8013db4 <osMutexRelease>
  9559. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  9560. 80044ea: 68fb ldr r3, [r7, #12]
  9561. 80044ec: 6998 ldr r0, [r3, #24]
  9562. 80044ee: 88f9 ldrh r1, [r7, #6]
  9563. 80044f0: f107 0314 add.w r3, r7, #20
  9564. 80044f4: 9300 str r3, [sp, #0]
  9565. 80044f6: 2300 movs r3, #0
  9566. 80044f8: 2203 movs r2, #3
  9567. 80044fa: f012 f955 bl 80167a8 <xTaskGenericNotifyFromISR>
  9568. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9569. 80044fe: 68fb ldr r3, [r7, #12]
  9570. 8004500: 6b18 ldr r0, [r3, #48] @ 0x30
  9571. 8004502: 68fb ldr r3, [r7, #12]
  9572. 8004504: 6819 ldr r1, [r3, #0]
  9573. 8004506: 68fb ldr r3, [r7, #12]
  9574. 8004508: 889b ldrh r3, [r3, #4]
  9575. 800450a: 461a mov r2, r3
  9576. 800450c: f00f f8af bl 801366e <HAL_UARTEx_ReceiveToIdle_IT>
  9577. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  9578. 8004510: 697b ldr r3, [r7, #20]
  9579. 8004512: 2b00 cmp r3, #0
  9580. 8004514: d007 beq.n 8004526 <HandleUartRxCallback+0x8a>
  9581. 8004516: 4b06 ldr r3, [pc, #24] @ (8004530 <HandleUartRxCallback+0x94>)
  9582. 8004518: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  9583. 800451c: 601a str r2, [r3, #0]
  9584. 800451e: f3bf 8f4f dsb sy
  9585. 8004522: f3bf 8f6f isb sy
  9586. }
  9587. 8004526: bf00 nop
  9588. 8004528: 3718 adds r7, #24
  9589. 800452a: 46bd mov sp, r7
  9590. 800452c: bd80 pop {r7, pc}
  9591. 800452e: bf00 nop
  9592. 8004530: e000ed04 .word 0xe000ed04
  9593. 08004534 <UartRxTask>:
  9594. void UartRxTask (void* argument) {
  9595. 8004534: b580 push {r7, lr}
  9596. 8004536: b0d2 sub sp, #328 @ 0x148
  9597. 8004538: af02 add r7, sp, #8
  9598. 800453a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9599. 800453e: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9600. 8004542: 6018 str r0, [r3, #0]
  9601. UartTaskData* uartTaskData = (UartTaskData*)argument;
  9602. 8004544: f507 73a0 add.w r3, r7, #320 @ 0x140
  9603. 8004548: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9604. 800454c: 681b ldr r3, [r3, #0]
  9605. 800454e: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  9606. SerialProtocolFrameData spFrameData = { 0 };
  9607. 8004552: f507 73a0 add.w r3, r7, #320 @ 0x140
  9608. 8004556: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9609. 800455a: 4618 mov r0, r3
  9610. 800455c: f44f 7386 mov.w r3, #268 @ 0x10c
  9611. 8004560: 461a mov r2, r3
  9612. 8004562: 2100 movs r1, #0
  9613. 8004564: f013 fc1f bl 8017da6 <memset>
  9614. uint32_t bytesRec = 0;
  9615. 8004568: f507 73a0 add.w r3, r7, #320 @ 0x140
  9616. 800456c: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9617. 8004570: 2200 movs r2, #0
  9618. 8004572: 601a str r2, [r3, #0]
  9619. uint32_t crc = 0;
  9620. 8004574: 2300 movs r3, #0
  9621. 8004576: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9622. uint16_t frameCommandRaw = 0x0000;
  9623. 800457a: 2300 movs r3, #0
  9624. 800457c: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9625. uint16_t frameBytesCount = 0;
  9626. 8004580: 2300 movs r3, #0
  9627. 8004582: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9628. uint16_t frameCrc = 0;
  9629. 8004586: 2300 movs r3, #0
  9630. 8004588: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9631. uint16_t frameTotalLength = 0;
  9632. 800458c: 2300 movs r3, #0
  9633. 800458e: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9634. uint16_t dataToSend = 0;
  9635. 8004592: 2300 movs r3, #0
  9636. 8004594: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9637. portBASE_TYPE crcPass = pdFAIL;
  9638. 8004598: 2300 movs r3, #0
  9639. 800459a: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9640. portBASE_TYPE proceed = pdFALSE;
  9641. 800459e: 2300 movs r3, #0
  9642. 80045a0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9643. portBASE_TYPE frameTimeout = pdFAIL;
  9644. 80045a4: 2300 movs r3, #0
  9645. 80045a6: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9646. enum SerialReceiverStates receverState = srWaitForHeader;
  9647. 80045aa: 2300 movs r3, #0
  9648. 80045ac: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9649. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  9650. 80045b0: 2000 movs r0, #0
  9651. 80045b2: f00f fb2e bl 8013c12 <osMutexNew>
  9652. 80045b6: 4602 mov r2, r0
  9653. 80045b8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9654. 80045bc: 621a str r2, [r3, #32]
  9655. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9656. 80045be: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9657. 80045c2: 6b18 ldr r0, [r3, #48] @ 0x30
  9658. 80045c4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9659. 80045c8: 6819 ldr r1, [r3, #0]
  9660. 80045ca: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9661. 80045ce: 889b ldrh r3, [r3, #4]
  9662. 80045d0: 461a mov r2, r3
  9663. 80045d2: f00f f84c bl 801366e <HAL_UARTEx_ReceiveToIdle_IT>
  9664. while (pdTRUE) {
  9665. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9666. 80045d6: f107 020c add.w r2, r7, #12
  9667. 80045da: f44f 63fa mov.w r3, #2000 @ 0x7d0
  9668. 80045de: 2100 movs r1, #0
  9669. 80045e0: 2000 movs r0, #0
  9670. 80045e2: f011 ffbf bl 8016564 <xTaskNotifyWait>
  9671. 80045e6: 4603 mov r3, r0
  9672. 80045e8: 2b00 cmp r3, #0
  9673. 80045ea: bf0c ite eq
  9674. 80045ec: 2301 moveq r3, #1
  9675. 80045ee: 2300 movne r3, #0
  9676. 80045f0: b2db uxtb r3, r3
  9677. 80045f2: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9678. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9679. 80045f6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9680. 80045fa: 6a1b ldr r3, [r3, #32]
  9681. 80045fc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9682. 8004600: 4618 mov r0, r3
  9683. 8004602: f00f fb8c bl 8013d1e <osMutexAcquire>
  9684. frameBytesCount = uartTaskData->frameBytesCount;
  9685. 8004606: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9686. 800460a: 8adb ldrh r3, [r3, #22]
  9687. 800460c: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9688. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9689. 8004610: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9690. 8004614: 6a1b ldr r3, [r3, #32]
  9691. 8004616: 4618 mov r0, r3
  9692. 8004618: f00f fbcc bl 8013db4 <osMutexRelease>
  9693. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  9694. 800461c: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9695. 8004620: 2b01 cmp r3, #1
  9696. 8004622: d10a bne.n 800463a <UartRxTask+0x106>
  9697. 8004624: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9698. 8004628: 2b00 cmp r3, #0
  9699. 800462a: d006 beq.n 800463a <UartRxTask+0x106>
  9700. receverState = srFail;
  9701. 800462c: 2304 movs r3, #4
  9702. 800462e: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9703. proceed = pdTRUE;
  9704. 8004632: 2301 movs r3, #1
  9705. 8004634: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9706. 8004638: e029 b.n 800468e <UartRxTask+0x15a>
  9707. } else {
  9708. if (frameTimeout == pdFALSE) {
  9709. 800463a: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9710. 800463e: 2b00 cmp r3, #0
  9711. 8004640: d111 bne.n 8004666 <UartRxTask+0x132>
  9712. proceed = pdTRUE;
  9713. 8004642: 2301 movs r3, #1
  9714. 8004644: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9715. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  9716. 8004648: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9717. 800464c: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9718. 8004650: 4619 mov r1, r3
  9719. 8004652: f507 73a0 add.w r3, r7, #320 @ 0x140
  9720. 8004656: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9721. 800465a: 681b ldr r3, [r3, #0]
  9722. 800465c: 461a mov r2, r3
  9723. 800465e: 48c1 ldr r0, [pc, #772] @ (8004964 <UartRxTask+0x430>)
  9724. 8004660: f013 fb4c bl 8017cfc <iprintf>
  9725. 8004664: e22f b.n 8004ac6 <UartRxTask+0x592>
  9726. } else {
  9727. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  9728. 8004666: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9729. 800466a: 6b1b ldr r3, [r3, #48] @ 0x30
  9730. 800466c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  9731. 8004670: 2b20 cmp r3, #32
  9732. 8004672: f040 8228 bne.w 8004ac6 <UartRxTask+0x592>
  9733. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9734. 8004676: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9735. 800467a: 6b18 ldr r0, [r3, #48] @ 0x30
  9736. 800467c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9737. 8004680: 6819 ldr r1, [r3, #0]
  9738. 8004682: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9739. 8004686: 889b ldrh r3, [r3, #4]
  9740. 8004688: 461a mov r2, r3
  9741. 800468a: f00e fff0 bl 801366e <HAL_UARTEx_ReceiveToIdle_IT>
  9742. }
  9743. }
  9744. }
  9745. while (proceed) {
  9746. 800468e: e21a b.n 8004ac6 <UartRxTask+0x592>
  9747. switch (receverState) {
  9748. 8004690: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9749. 8004694: 2b04 cmp r3, #4
  9750. 8004696: f200 81f1 bhi.w 8004a7c <UartRxTask+0x548>
  9751. 800469a: a201 add r2, pc, #4 @ (adr r2, 80046a0 <UartRxTask+0x16c>)
  9752. 800469c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9753. 80046a0: 080046b5 .word 0x080046b5
  9754. 80046a4: 08004817 .word 0x08004817
  9755. 80046a8: 080047fb .word 0x080047fb
  9756. 80046ac: 080048b7 .word 0x080048b7
  9757. 80046b0: 08004971 .word 0x08004971
  9758. case srWaitForHeader:
  9759. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9760. 80046b4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9761. 80046b8: 6a1b ldr r3, [r3, #32]
  9762. 80046ba: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9763. 80046be: 4618 mov r0, r3
  9764. 80046c0: f00f fb2d bl 8013d1e <osMutexAcquire>
  9765. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  9766. 80046c4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9767. 80046c8: 691b ldr r3, [r3, #16]
  9768. 80046ca: 781b ldrb r3, [r3, #0]
  9769. 80046cc: 2baa cmp r3, #170 @ 0xaa
  9770. 80046ce: f040 8082 bne.w 80047d6 <UartRxTask+0x2a2>
  9771. if (frameBytesCount > FRAME_ID_LENGTH) {
  9772. 80046d2: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9773. 80046d6: 2b02 cmp r3, #2
  9774. 80046d8: d914 bls.n 8004704 <UartRxTask+0x1d0>
  9775. spFrameData.frameHeader.frameId =
  9776. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  9777. 80046da: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9778. 80046de: 691b ldr r3, [r3, #16]
  9779. 80046e0: 3302 adds r3, #2
  9780. 80046e2: 781b ldrb r3, [r3, #0]
  9781. 80046e4: 021b lsls r3, r3, #8
  9782. 80046e6: b21a sxth r2, r3
  9783. 80046e8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9784. 80046ec: 691b ldr r3, [r3, #16]
  9785. 80046ee: 3301 adds r3, #1
  9786. 80046f0: 781b ldrb r3, [r3, #0]
  9787. 80046f2: b21b sxth r3, r3
  9788. 80046f4: 4313 orrs r3, r2
  9789. 80046f6: b21b sxth r3, r3
  9790. 80046f8: b29a uxth r2, r3
  9791. spFrameData.frameHeader.frameId =
  9792. 80046fa: f507 73a0 add.w r3, r7, #320 @ 0x140
  9793. 80046fe: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9794. 8004702: 801a strh r2, [r3, #0]
  9795. }
  9796. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  9797. 8004704: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9798. 8004708: 2b04 cmp r3, #4
  9799. 800470a: d923 bls.n 8004754 <UartRxTask+0x220>
  9800. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  9801. 800470c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9802. 8004710: 691b ldr r3, [r3, #16]
  9803. 8004712: 3304 adds r3, #4
  9804. 8004714: 781b ldrb r3, [r3, #0]
  9805. 8004716: 021b lsls r3, r3, #8
  9806. 8004718: b21a sxth r2, r3
  9807. 800471a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9808. 800471e: 691b ldr r3, [r3, #16]
  9809. 8004720: 3303 adds r3, #3
  9810. 8004722: 781b ldrb r3, [r3, #0]
  9811. 8004724: b21b sxth r3, r3
  9812. 8004726: 4313 orrs r3, r2
  9813. 8004728: b21b sxth r3, r3
  9814. 800472a: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9815. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  9816. 800472e: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  9817. 8004732: b2da uxtb r2, r3
  9818. 8004734: f507 73a0 add.w r3, r7, #320 @ 0x140
  9819. 8004738: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9820. 800473c: 709a strb r2, [r3, #2]
  9821. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  9822. 800473e: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  9823. 8004742: 13db asrs r3, r3, #15
  9824. 8004744: b21b sxth r3, r3
  9825. 8004746: f003 0201 and.w r2, r3, #1
  9826. 800474a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9827. 800474e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9828. 8004752: 609a str r2, [r3, #8]
  9829. }
  9830. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  9831. 8004754: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9832. 8004758: 2b05 cmp r3, #5
  9833. 800475a: d913 bls.n 8004784 <UartRxTask+0x250>
  9834. 800475c: f507 73a0 add.w r3, r7, #320 @ 0x140
  9835. 8004760: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9836. 8004764: 789b ldrb r3, [r3, #2]
  9837. 8004766: f403 4300 and.w r3, r3, #32768 @ 0x8000
  9838. 800476a: 2b00 cmp r3, #0
  9839. 800476c: d00a beq.n 8004784 <UartRxTask+0x250>
  9840. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  9841. 800476e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9842. 8004772: 691b ldr r3, [r3, #16]
  9843. 8004774: 3305 adds r3, #5
  9844. 8004776: 781b ldrb r3, [r3, #0]
  9845. 8004778: b25a sxtb r2, r3
  9846. 800477a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9847. 800477e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9848. 8004782: 70da strb r2, [r3, #3]
  9849. }
  9850. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  9851. 8004784: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9852. 8004788: 2b07 cmp r3, #7
  9853. 800478a: d920 bls.n 80047ce <UartRxTask+0x29a>
  9854. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  9855. 800478c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9856. 8004790: 691b ldr r3, [r3, #16]
  9857. 8004792: 3306 adds r3, #6
  9858. 8004794: 781b ldrb r3, [r3, #0]
  9859. 8004796: 021b lsls r3, r3, #8
  9860. 8004798: b21a sxth r2, r3
  9861. 800479a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9862. 800479e: 691b ldr r3, [r3, #16]
  9863. 80047a0: 3305 adds r3, #5
  9864. 80047a2: 781b ldrb r3, [r3, #0]
  9865. 80047a4: b21b sxth r3, r3
  9866. 80047a6: 4313 orrs r3, r2
  9867. 80047a8: b21b sxth r3, r3
  9868. 80047aa: b29a uxth r2, r3
  9869. 80047ac: f507 73a0 add.w r3, r7, #320 @ 0x140
  9870. 80047b0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9871. 80047b4: 809a strh r2, [r3, #4]
  9872. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  9873. 80047b6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9874. 80047ba: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9875. 80047be: 889b ldrh r3, [r3, #4]
  9876. 80047c0: 330a adds r3, #10
  9877. 80047c2: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9878. receverState = srRecieveData;
  9879. 80047c6: 2302 movs r3, #2
  9880. 80047c8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9881. 80047cc: e00e b.n 80047ec <UartRxTask+0x2b8>
  9882. } else {
  9883. proceed = pdFALSE;
  9884. 80047ce: 2300 movs r3, #0
  9885. 80047d0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9886. 80047d4: e00a b.n 80047ec <UartRxTask+0x2b8>
  9887. }
  9888. } else {
  9889. if (frameBytesCount > 0) {
  9890. 80047d6: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9891. 80047da: 2b00 cmp r3, #0
  9892. 80047dc: d003 beq.n 80047e6 <UartRxTask+0x2b2>
  9893. receverState = srFail;
  9894. 80047de: 2304 movs r3, #4
  9895. 80047e0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9896. 80047e4: e002 b.n 80047ec <UartRxTask+0x2b8>
  9897. } else {
  9898. proceed = pdFALSE;
  9899. 80047e6: 2300 movs r3, #0
  9900. 80047e8: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9901. }
  9902. }
  9903. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9904. 80047ec: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9905. 80047f0: 6a1b ldr r3, [r3, #32]
  9906. 80047f2: 4618 mov r0, r3
  9907. 80047f4: f00f fade bl 8013db4 <osMutexRelease>
  9908. break;
  9909. 80047f8: e165 b.n 8004ac6 <UartRxTask+0x592>
  9910. case srRecieveData:
  9911. if (frameBytesCount >= frameTotalLength) {
  9912. 80047fa: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  9913. 80047fe: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9914. 8004802: 429a cmp r2, r3
  9915. 8004804: d303 bcc.n 800480e <UartRxTask+0x2da>
  9916. receverState = srCheckCrc;
  9917. 8004806: 2301 movs r3, #1
  9918. 8004808: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9919. } else {
  9920. proceed = pdFALSE;
  9921. }
  9922. break;
  9923. 800480c: e15b b.n 8004ac6 <UartRxTask+0x592>
  9924. proceed = pdFALSE;
  9925. 800480e: 2300 movs r3, #0
  9926. 8004810: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9927. break;
  9928. 8004814: e157 b.n 8004ac6 <UartRxTask+0x592>
  9929. case srCheckCrc:
  9930. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9931. 8004816: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9932. 800481a: 6a1b ldr r3, [r3, #32]
  9933. 800481c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9934. 8004820: 4618 mov r0, r3
  9935. 8004822: f00f fa7c bl 8013d1e <osMutexAcquire>
  9936. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  9937. 8004826: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9938. 800482a: 691a ldr r2, [r3, #16]
  9939. 800482c: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9940. 8004830: 3b01 subs r3, #1
  9941. 8004832: 4413 add r3, r2
  9942. 8004834: 781b ldrb r3, [r3, #0]
  9943. 8004836: 021b lsls r3, r3, #8
  9944. 8004838: b21a sxth r2, r3
  9945. 800483a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9946. 800483e: 6919 ldr r1, [r3, #16]
  9947. 8004840: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9948. 8004844: 3b02 subs r3, #2
  9949. 8004846: 440b add r3, r1
  9950. 8004848: 781b ldrb r3, [r3, #0]
  9951. 800484a: b21b sxth r3, r3
  9952. 800484c: 4313 orrs r3, r2
  9953. 800484e: b21b sxth r3, r3
  9954. 8004850: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9955. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  9956. 8004854: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9957. 8004858: 6919 ldr r1, [r3, #16]
  9958. 800485a: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9959. 800485e: 3b02 subs r3, #2
  9960. 8004860: 461a mov r2, r3
  9961. 8004862: 4841 ldr r0, [pc, #260] @ (8004968 <UartRxTask+0x434>)
  9962. 8004864: f002 fe2a bl 80074bc <HAL_CRC_Calculate>
  9963. 8004868: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  9964. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9965. 800486c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9966. 8004870: 6a1b ldr r3, [r3, #32]
  9967. 8004872: 4618 mov r0, r3
  9968. 8004874: f00f fa9e bl 8013db4 <osMutexRelease>
  9969. crcPass = frameCrc == crc;
  9970. 8004878: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  9971. 800487c: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  9972. 8004880: 429a cmp r2, r3
  9973. 8004882: bf0c ite eq
  9974. 8004884: 2301 moveq r3, #1
  9975. 8004886: 2300 movne r3, #0
  9976. 8004888: b2db uxtb r3, r3
  9977. 800488a: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9978. if (crcPass) {
  9979. 800488e: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9980. 8004892: 2b00 cmp r3, #0
  9981. 8004894: d00b beq.n 80048ae <UartRxTask+0x37a>
  9982. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  9983. 8004896: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9984. 800489a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9985. 800489e: 4619 mov r1, r3
  9986. 80048a0: 4832 ldr r0, [pc, #200] @ (800496c <UartRxTask+0x438>)
  9987. 80048a2: f013 fa2b bl 8017cfc <iprintf>
  9988. receverState = srExecuteCmd;
  9989. 80048a6: 2303 movs r3, #3
  9990. 80048a8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9991. } else {
  9992. receverState = srFail;
  9993. }
  9994. break;
  9995. 80048ac: e10b b.n 8004ac6 <UartRxTask+0x592>
  9996. receverState = srFail;
  9997. 80048ae: 2304 movs r3, #4
  9998. 80048b0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9999. break;
  10000. 80048b4: e107 b.n 8004ac6 <UartRxTask+0x592>
  10001. case srExecuteCmd:
  10002. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  10003. 80048b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10004. 80048ba: 6a9b ldr r3, [r3, #40] @ 0x28
  10005. 80048bc: 2b00 cmp r3, #0
  10006. 80048be: d104 bne.n 80048ca <UartRxTask+0x396>
  10007. 80048c0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10008. 80048c4: 6a5b ldr r3, [r3, #36] @ 0x24
  10009. 80048c6: 2b00 cmp r3, #0
  10010. 80048c8: d01e beq.n 8004908 <UartRxTask+0x3d4>
  10011. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10012. 80048ca: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10013. 80048ce: 6a1b ldr r3, [r3, #32]
  10014. 80048d0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10015. 80048d4: 4618 mov r0, r3
  10016. 80048d6: f00f fa22 bl 8013d1e <osMutexAcquire>
  10017. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10018. 80048da: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10019. 80048de: 691b ldr r3, [r3, #16]
  10020. 80048e0: f103 0108 add.w r1, r3, #8
  10021. 80048e4: f507 73a0 add.w r3, r7, #320 @ 0x140
  10022. 80048e8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10023. 80048ec: 889b ldrh r3, [r3, #4]
  10024. 80048ee: 461a mov r2, r3
  10025. 80048f0: f107 0310 add.w r3, r7, #16
  10026. 80048f4: 330c adds r3, #12
  10027. 80048f6: 4618 mov r0, r3
  10028. 80048f8: f013 fb27 bl 8017f4a <memcpy>
  10029. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10030. 80048fc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10031. 8004900: 6a1b ldr r3, [r3, #32]
  10032. 8004902: 4618 mov r0, r3
  10033. 8004904: f00f fa56 bl 8013db4 <osMutexRelease>
  10034. }
  10035. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10036. 8004908: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10037. 800490c: 6a5b ldr r3, [r3, #36] @ 0x24
  10038. 800490e: 2b00 cmp r3, #0
  10039. 8004910: d015 beq.n 800493e <UartRxTask+0x40a>
  10040. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  10041. 8004912: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10042. 8004916: 6a58 ldr r0, [r3, #36] @ 0x24
  10043. 8004918: f507 73a0 add.w r3, r7, #320 @ 0x140
  10044. 800491c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10045. 8004920: 889b ldrh r3, [r3, #4]
  10046. 8004922: f103 020c add.w r2, r3, #12
  10047. 8004926: f107 0110 add.w r1, r7, #16
  10048. 800492a: 23c8 movs r3, #200 @ 0xc8
  10049. 800492c: f010 fc64 bl 80151f8 <xStreamBufferSend>
  10050. 8004930: 4603 mov r3, r0
  10051. 8004932: 2b00 cmp r3, #0
  10052. 8004934: d103 bne.n 800493e <UartRxTask+0x40a>
  10053. receverState = srFail;
  10054. 8004936: 2304 movs r3, #4
  10055. 8004938: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10056. break;
  10057. 800493c: e0c3 b.n 8004ac6 <UartRxTask+0x592>
  10058. }
  10059. }
  10060. if (uartTaskData->processDataCb != NULL) {
  10061. 800493e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10062. 8004942: 6a9b ldr r3, [r3, #40] @ 0x28
  10063. 8004944: 2b00 cmp r3, #0
  10064. 8004946: d008 beq.n 800495a <UartRxTask+0x426>
  10065. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10066. 8004948: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10067. 800494c: 6a9b ldr r3, [r3, #40] @ 0x28
  10068. 800494e: f107 0210 add.w r2, r7, #16
  10069. 8004952: 4611 mov r1, r2
  10070. 8004954: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10071. 8004958: 4798 blx r3
  10072. }
  10073. receverState = srFinish;
  10074. 800495a: 2305 movs r3, #5
  10075. 800495c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10076. break;
  10077. 8004960: e0b1 b.n 8004ac6 <UartRxTask+0x592>
  10078. 8004962: bf00 nop
  10079. 8004964: 08018b0c .word 0x08018b0c
  10080. 8004968: 24000400 .word 0x24000400
  10081. 800496c: 08018b2c .word 0x08018b2c
  10082. case srFail:
  10083. dataToSend = 0;
  10084. 8004970: 2300 movs r3, #0
  10085. 8004972: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10086. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10087. 8004976: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10088. 800497a: 2b01 cmp r3, #1
  10089. 800497c: d124 bne.n 80049c8 <UartRxTask+0x494>
  10090. 800497e: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10091. 8004982: 2b02 cmp r3, #2
  10092. 8004984: d920 bls.n 80049c8 <UartRxTask+0x494>
  10093. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10094. 8004986: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10095. 800498a: 6898 ldr r0, [r3, #8]
  10096. 800498c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10097. 8004990: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10098. 8004994: 8819 ldrh r1, [r3, #0]
  10099. 8004996: f507 73a0 add.w r3, r7, #320 @ 0x140
  10100. 800499a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10101. 800499e: 789a ldrb r2, [r3, #2]
  10102. 80049a0: 2300 movs r3, #0
  10103. 80049a2: 9301 str r3, [sp, #4]
  10104. 80049a4: 2300 movs r3, #0
  10105. 80049a6: 9300 str r3, [sp, #0]
  10106. 80049a8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10107. 80049ac: f7fe fcc4 bl 8003338 <PrepareRespFrame>
  10108. 80049b0: 4603 mov r3, r0
  10109. 80049b2: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10110. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  10111. 80049b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10112. 80049ba: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10113. 80049be: 4619 mov r1, r3
  10114. 80049c0: 4844 ldr r0, [pc, #272] @ (8004ad4 <UartRxTask+0x5a0>)
  10115. 80049c2: f013 f99b bl 8017cfc <iprintf>
  10116. 80049c6: e03c b.n 8004a42 <UartRxTask+0x50e>
  10117. } else if (!crcPass) {
  10118. 80049c8: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10119. 80049cc: 2b00 cmp r3, #0
  10120. 80049ce: d120 bne.n 8004a12 <UartRxTask+0x4de>
  10121. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  10122. 80049d0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10123. 80049d4: 6898 ldr r0, [r3, #8]
  10124. 80049d6: f507 73a0 add.w r3, r7, #320 @ 0x140
  10125. 80049da: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10126. 80049de: 8819 ldrh r1, [r3, #0]
  10127. 80049e0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10128. 80049e4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10129. 80049e8: 789a ldrb r2, [r3, #2]
  10130. 80049ea: 2300 movs r3, #0
  10131. 80049ec: 9301 str r3, [sp, #4]
  10132. 80049ee: 2300 movs r3, #0
  10133. 80049f0: 9300 str r3, [sp, #0]
  10134. 80049f2: f06f 0301 mvn.w r3, #1
  10135. 80049f6: f7fe fc9f bl 8003338 <PrepareRespFrame>
  10136. 80049fa: 4603 mov r3, r0
  10137. 80049fc: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10138. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  10139. 8004a00: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10140. 8004a04: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10141. 8004a08: 4619 mov r1, r3
  10142. 8004a0a: 4833 ldr r0, [pc, #204] @ (8004ad8 <UartRxTask+0x5a4>)
  10143. 8004a0c: f013 f976 bl 8017cfc <iprintf>
  10144. 8004a10: e017 b.n 8004a42 <UartRxTask+0x50e>
  10145. } else {
  10146. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  10147. 8004a12: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10148. 8004a16: 6898 ldr r0, [r3, #8]
  10149. 8004a18: f507 73a0 add.w r3, r7, #320 @ 0x140
  10150. 8004a1c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10151. 8004a20: 8819 ldrh r1, [r3, #0]
  10152. 8004a22: f507 73a0 add.w r3, r7, #320 @ 0x140
  10153. 8004a26: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10154. 8004a2a: 789a ldrb r2, [r3, #2]
  10155. 8004a2c: 2300 movs r3, #0
  10156. 8004a2e: 9301 str r3, [sp, #4]
  10157. 8004a30: 2300 movs r3, #0
  10158. 8004a32: 9300 str r3, [sp, #0]
  10159. 8004a34: f06f 0303 mvn.w r3, #3
  10160. 8004a38: f7fe fc7e bl 8003338 <PrepareRespFrame>
  10161. 8004a3c: 4603 mov r3, r0
  10162. 8004a3e: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10163. }
  10164. if (dataToSend > 0) {
  10165. 8004a42: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  10166. 8004a46: 2b00 cmp r3, #0
  10167. 8004a48: d00a beq.n 8004a60 <UartRxTask+0x52c>
  10168. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  10169. 8004a4a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10170. 8004a4e: 6b18 ldr r0, [r3, #48] @ 0x30
  10171. 8004a50: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10172. 8004a54: 689b ldr r3, [r3, #8]
  10173. 8004a56: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  10174. 8004a5a: 4619 mov r1, r3
  10175. 8004a5c: f00c f932 bl 8010cc4 <HAL_UART_Transmit_IT>
  10176. }
  10177. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  10178. 8004a60: f8b7 113c ldrh.w r1, [r7, #316] @ 0x13c
  10179. 8004a64: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10180. 8004a68: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10181. 8004a6c: 461a mov r2, r3
  10182. 8004a6e: 481b ldr r0, [pc, #108] @ (8004adc <UartRxTask+0x5a8>)
  10183. 8004a70: f013 f944 bl 8017cfc <iprintf>
  10184. receverState = srFinish;
  10185. 8004a74: 2305 movs r3, #5
  10186. 8004a76: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10187. break;
  10188. 8004a7a: e024 b.n 8004ac6 <UartRxTask+0x592>
  10189. case srFinish:
  10190. default:
  10191. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10192. 8004a7c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10193. 8004a80: 6a1b ldr r3, [r3, #32]
  10194. 8004a82: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10195. 8004a86: 4618 mov r0, r3
  10196. 8004a88: f00f f949 bl 8013d1e <osMutexAcquire>
  10197. uartTaskData->frameBytesCount = 0;
  10198. 8004a8c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10199. 8004a90: 2200 movs r2, #0
  10200. 8004a92: 82da strh r2, [r3, #22]
  10201. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10202. 8004a94: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10203. 8004a98: 6a1b ldr r3, [r3, #32]
  10204. 8004a9a: 4618 mov r0, r3
  10205. 8004a9c: f00f f98a bl 8013db4 <osMutexRelease>
  10206. spFrameData.frameHeader.frameCommand = spUnknown;
  10207. 8004aa0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10208. 8004aa4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10209. 8004aa8: 2210 movs r2, #16
  10210. 8004aaa: 709a strb r2, [r3, #2]
  10211. frameTotalLength = 0;
  10212. 8004aac: 2300 movs r3, #0
  10213. 8004aae: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10214. outputDataBufferPos = 0;
  10215. 8004ab2: 4b0b ldr r3, [pc, #44] @ (8004ae0 <UartRxTask+0x5ac>)
  10216. 8004ab4: 2200 movs r2, #0
  10217. 8004ab6: 801a strh r2, [r3, #0]
  10218. receverState = srWaitForHeader;
  10219. 8004ab8: 2300 movs r3, #0
  10220. 8004aba: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10221. proceed = pdFALSE;
  10222. 8004abe: 2300 movs r3, #0
  10223. 8004ac0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10224. break;
  10225. 8004ac4: bf00 nop
  10226. while (proceed) {
  10227. 8004ac6: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  10228. 8004aca: 2b00 cmp r3, #0
  10229. 8004acc: f47f ade0 bne.w 8004690 <UartRxTask+0x15c>
  10230. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10231. 8004ad0: e581 b.n 80045d6 <UartRxTask+0xa2>
  10232. 8004ad2: bf00 nop
  10233. 8004ad4: 08018b44 .word 0x08018b44
  10234. 8004ad8: 08018b68 .word 0x08018b68
  10235. 8004adc: 08018b80 .word 0x08018b80
  10236. 8004ae0: 24000cf8 .word 0x24000cf8
  10237. 08004ae4 <Uart1ReceivedDataProcessCallback>:
  10238. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10239. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  10240. }
  10241. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10242. 8004ae4: b590 push {r4, r7, lr}
  10243. 8004ae6: b0a3 sub sp, #140 @ 0x8c
  10244. 8004ae8: af06 add r7, sp, #24
  10245. 8004aea: 6078 str r0, [r7, #4]
  10246. 8004aec: 6039 str r1, [r7, #0]
  10247. UartTaskData* uartTaskData = (UartTaskData*)arg;
  10248. 8004aee: 687b ldr r3, [r7, #4]
  10249. 8004af0: 64fb str r3, [r7, #76] @ 0x4c
  10250. uint16_t dataToSend = 0;
  10251. 8004af2: 2300 movs r3, #0
  10252. 8004af4: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  10253. outputDataBufferPos = 0;
  10254. 8004af8: 4ba4 ldr r3, [pc, #656] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10255. 8004afa: 2200 movs r2, #0
  10256. 8004afc: 801a strh r2, [r3, #0]
  10257. uint16_t inputDataBufferPos = 0;
  10258. 8004afe: 2300 movs r3, #0
  10259. 8004b00: 86bb strh r3, [r7, #52] @ 0x34
  10260. SerialProtocolRespStatus respStatus = spUnknownCommand;
  10261. 8004b02: 23fd movs r3, #253 @ 0xfd
  10262. 8004b04: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10263. switch (spFrameData->frameHeader.frameCommand) {
  10264. 8004b08: 683b ldr r3, [r7, #0]
  10265. 8004b0a: 789b ldrb r3, [r3, #2]
  10266. 8004b0c: 2b0f cmp r3, #15
  10267. 8004b0e: f200 8479 bhi.w 8005404 <Uart1ReceivedDataProcessCallback+0x920>
  10268. 8004b12: a201 add r2, pc, #4 @ (adr r2, 8004b18 <Uart1ReceivedDataProcessCallback+0x34>)
  10269. 8004b14: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10270. 8004b18: 08004b59 .word 0x08004b59
  10271. 8004b1c: 08004c47 .word 0x08004c47
  10272. 8004b20: 08004df1 .word 0x08004df1
  10273. 8004b24: 08004ead .word 0x08004ead
  10274. 8004b28: 08004f4f .word 0x08004f4f
  10275. 8004b2c: 0800506d .word 0x0800506d
  10276. 8004b30: 080050f5 .word 0x080050f5
  10277. 8004b34: 08004ff1 .word 0x08004ff1
  10278. 8004b38: 0800514b .word 0x0800514b
  10279. 8004b3c: 080051bd .word 0x080051bd
  10280. 8004b40: 08005209 .word 0x08005209
  10281. 8004b44: 08005255 .word 0x08005255
  10282. 8004b48: 080052b7 .word 0x080052b7
  10283. 8004b4c: 0800531b .word 0x0800531b
  10284. 8004b50: 0800537d .word 0x0800537d
  10285. 8004b54: 080053e1 .word 0x080053e1
  10286. case spGetElectricalMeasurments:
  10287. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  10288. 8004b58: 4b8d ldr r3, [pc, #564] @ (8004d90 <Uart1ReceivedDataProcessCallback+0x2ac>)
  10289. 8004b5a: 681b ldr r3, [r3, #0]
  10290. 8004b5c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10291. 8004b60: 4618 mov r0, r3
  10292. 8004b62: f00f f8dc bl 8013d1e <osMutexAcquire>
  10293. 8004b66: 4603 mov r3, r0
  10294. 8004b68: 2b00 cmp r3, #0
  10295. 8004b6a: d168 bne.n 8004c3e <Uart1ReceivedDataProcessCallback+0x15a>
  10296. for (int i = 0; i < 3; i++) {
  10297. 8004b6c: 2300 movs r3, #0
  10298. 8004b6e: 66bb str r3, [r7, #104] @ 0x68
  10299. 8004b70: e00b b.n 8004b8a <Uart1ReceivedDataProcessCallback+0xa6>
  10300. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  10301. 8004b72: 6ebb ldr r3, [r7, #104] @ 0x68
  10302. 8004b74: 009b lsls r3, r3, #2
  10303. 8004b76: 4a87 ldr r2, [pc, #540] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10304. 8004b78: 441a add r2, r3
  10305. 8004b7a: 2304 movs r3, #4
  10306. 8004b7c: 4983 ldr r1, [pc, #524] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10307. 8004b7e: 4886 ldr r0, [pc, #536] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10308. 8004b80: f7fe fb76 bl 8003270 <WriteDataToBuffer>
  10309. for (int i = 0; i < 3; i++) {
  10310. 8004b84: 6ebb ldr r3, [r7, #104] @ 0x68
  10311. 8004b86: 3301 adds r3, #1
  10312. 8004b88: 66bb str r3, [r7, #104] @ 0x68
  10313. 8004b8a: 6ebb ldr r3, [r7, #104] @ 0x68
  10314. 8004b8c: 2b02 cmp r3, #2
  10315. 8004b8e: ddf0 ble.n 8004b72 <Uart1ReceivedDataProcessCallback+0x8e>
  10316. }
  10317. for (int i = 0; i < 3; i++) {
  10318. 8004b90: 2300 movs r3, #0
  10319. 8004b92: 667b str r3, [r7, #100] @ 0x64
  10320. 8004b94: e00d b.n 8004bb2 <Uart1ReceivedDataProcessCallback+0xce>
  10321. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  10322. 8004b96: 6e7b ldr r3, [r7, #100] @ 0x64
  10323. 8004b98: 3302 adds r3, #2
  10324. 8004b9a: 009b lsls r3, r3, #2
  10325. 8004b9c: 4a7d ldr r2, [pc, #500] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10326. 8004b9e: 4413 add r3, r2
  10327. 8004ba0: 1d1a adds r2, r3, #4
  10328. 8004ba2: 2304 movs r3, #4
  10329. 8004ba4: 4979 ldr r1, [pc, #484] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10330. 8004ba6: 487c ldr r0, [pc, #496] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10331. 8004ba8: f7fe fb62 bl 8003270 <WriteDataToBuffer>
  10332. for (int i = 0; i < 3; i++) {
  10333. 8004bac: 6e7b ldr r3, [r7, #100] @ 0x64
  10334. 8004bae: 3301 adds r3, #1
  10335. 8004bb0: 667b str r3, [r7, #100] @ 0x64
  10336. 8004bb2: 6e7b ldr r3, [r7, #100] @ 0x64
  10337. 8004bb4: 2b02 cmp r3, #2
  10338. 8004bb6: ddee ble.n 8004b96 <Uart1ReceivedDataProcessCallback+0xb2>
  10339. }
  10340. for (int i = 0; i < 3; i++) {
  10341. 8004bb8: 2300 movs r3, #0
  10342. 8004bba: 663b str r3, [r7, #96] @ 0x60
  10343. 8004bbc: e00c b.n 8004bd8 <Uart1ReceivedDataProcessCallback+0xf4>
  10344. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  10345. 8004bbe: 6e3b ldr r3, [r7, #96] @ 0x60
  10346. 8004bc0: 3306 adds r3, #6
  10347. 8004bc2: 009b lsls r3, r3, #2
  10348. 8004bc4: 4a73 ldr r2, [pc, #460] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10349. 8004bc6: 441a add r2, r3
  10350. 8004bc8: 2304 movs r3, #4
  10351. 8004bca: 4970 ldr r1, [pc, #448] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10352. 8004bcc: 4872 ldr r0, [pc, #456] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10353. 8004bce: f7fe fb4f bl 8003270 <WriteDataToBuffer>
  10354. for (int i = 0; i < 3; i++) {
  10355. 8004bd2: 6e3b ldr r3, [r7, #96] @ 0x60
  10356. 8004bd4: 3301 adds r3, #1
  10357. 8004bd6: 663b str r3, [r7, #96] @ 0x60
  10358. 8004bd8: 6e3b ldr r3, [r7, #96] @ 0x60
  10359. 8004bda: 2b02 cmp r3, #2
  10360. 8004bdc: ddef ble.n 8004bbe <Uart1ReceivedDataProcessCallback+0xda>
  10361. }
  10362. for (int i = 0; i < 3; i++) {
  10363. 8004bde: 2300 movs r3, #0
  10364. 8004be0: 65fb str r3, [r7, #92] @ 0x5c
  10365. 8004be2: e00d b.n 8004c00 <Uart1ReceivedDataProcessCallback+0x11c>
  10366. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  10367. 8004be4: 6dfb ldr r3, [r7, #92] @ 0x5c
  10368. 8004be6: 3308 adds r3, #8
  10369. 8004be8: 009b lsls r3, r3, #2
  10370. 8004bea: 4a6a ldr r2, [pc, #424] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10371. 8004bec: 4413 add r3, r2
  10372. 8004bee: 1d1a adds r2, r3, #4
  10373. 8004bf0: 2304 movs r3, #4
  10374. 8004bf2: 4966 ldr r1, [pc, #408] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10375. 8004bf4: 4868 ldr r0, [pc, #416] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10376. 8004bf6: f7fe fb3b bl 8003270 <WriteDataToBuffer>
  10377. for (int i = 0; i < 3; i++) {
  10378. 8004bfa: 6dfb ldr r3, [r7, #92] @ 0x5c
  10379. 8004bfc: 3301 adds r3, #1
  10380. 8004bfe: 65fb str r3, [r7, #92] @ 0x5c
  10381. 8004c00: 6dfb ldr r3, [r7, #92] @ 0x5c
  10382. 8004c02: 2b02 cmp r3, #2
  10383. 8004c04: ddee ble.n 8004be4 <Uart1ReceivedDataProcessCallback+0x100>
  10384. }
  10385. for (int i = 0; i < 3; i++) {
  10386. 8004c06: 2300 movs r3, #0
  10387. 8004c08: 65bb str r3, [r7, #88] @ 0x58
  10388. 8004c0a: e00c b.n 8004c26 <Uart1ReceivedDataProcessCallback+0x142>
  10389. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  10390. 8004c0c: 6dbb ldr r3, [r7, #88] @ 0x58
  10391. 8004c0e: 330c adds r3, #12
  10392. 8004c10: 009b lsls r3, r3, #2
  10393. 8004c12: 4a60 ldr r2, [pc, #384] @ (8004d94 <Uart1ReceivedDataProcessCallback+0x2b0>)
  10394. 8004c14: 441a add r2, r3
  10395. 8004c16: 2304 movs r3, #4
  10396. 8004c18: 495c ldr r1, [pc, #368] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10397. 8004c1a: 485f ldr r0, [pc, #380] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10398. 8004c1c: f7fe fb28 bl 8003270 <WriteDataToBuffer>
  10399. for (int i = 0; i < 3; i++) {
  10400. 8004c20: 6dbb ldr r3, [r7, #88] @ 0x58
  10401. 8004c22: 3301 adds r3, #1
  10402. 8004c24: 65bb str r3, [r7, #88] @ 0x58
  10403. 8004c26: 6dbb ldr r3, [r7, #88] @ 0x58
  10404. 8004c28: 2b02 cmp r3, #2
  10405. 8004c2a: ddef ble.n 8004c0c <Uart1ReceivedDataProcessCallback+0x128>
  10406. }
  10407. osMutexRelease (resMeasurementsMutex);
  10408. 8004c2c: 4b58 ldr r3, [pc, #352] @ (8004d90 <Uart1ReceivedDataProcessCallback+0x2ac>)
  10409. 8004c2e: 681b ldr r3, [r3, #0]
  10410. 8004c30: 4618 mov r0, r3
  10411. 8004c32: f00f f8bf bl 8013db4 <osMutexRelease>
  10412. respStatus = spOK;
  10413. 8004c36: 2300 movs r3, #0
  10414. 8004c38: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10415. } else {
  10416. respStatus = spInternalError;
  10417. }
  10418. break;
  10419. 8004c3c: e3e6 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10420. respStatus = spInternalError;
  10421. 8004c3e: 23fc movs r3, #252 @ 0xfc
  10422. 8004c40: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10423. break;
  10424. 8004c44: e3e2 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10425. case spGetSensorMeasurments:
  10426. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10427. 8004c46: 4b55 ldr r3, [pc, #340] @ (8004d9c <Uart1ReceivedDataProcessCallback+0x2b8>)
  10428. 8004c48: 681b ldr r3, [r3, #0]
  10429. 8004c4a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10430. 8004c4e: 4618 mov r0, r3
  10431. 8004c50: f00f f865 bl 8013d1e <osMutexAcquire>
  10432. 8004c54: 4603 mov r3, r0
  10433. 8004c56: 2b00 cmp r3, #0
  10434. 8004c58: f040 8094 bne.w 8004d84 <Uart1ReceivedDataProcessCallback+0x2a0>
  10435. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  10436. 8004c5c: 2304 movs r3, #4
  10437. 8004c5e: 4a50 ldr r2, [pc, #320] @ (8004da0 <Uart1ReceivedDataProcessCallback+0x2bc>)
  10438. 8004c60: 494a ldr r1, [pc, #296] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10439. 8004c62: 484d ldr r0, [pc, #308] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10440. 8004c64: f7fe fb04 bl 8003270 <WriteDataToBuffer>
  10441. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  10442. 8004c68: 2304 movs r3, #4
  10443. 8004c6a: 4a4e ldr r2, [pc, #312] @ (8004da4 <Uart1ReceivedDataProcessCallback+0x2c0>)
  10444. 8004c6c: 4947 ldr r1, [pc, #284] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10445. 8004c6e: 484a ldr r0, [pc, #296] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10446. 8004c70: f7fe fafe bl 8003270 <WriteDataToBuffer>
  10447. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  10448. 8004c74: 2304 movs r3, #4
  10449. 8004c76: 4a4c ldr r2, [pc, #304] @ (8004da8 <Uart1ReceivedDataProcessCallback+0x2c4>)
  10450. 8004c78: 4944 ldr r1, [pc, #272] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10451. 8004c7a: 4847 ldr r0, [pc, #284] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10452. 8004c7c: f7fe faf8 bl 8003270 <WriteDataToBuffer>
  10453. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  10454. 8004c80: 2304 movs r3, #4
  10455. 8004c82: 4a4a ldr r2, [pc, #296] @ (8004dac <Uart1ReceivedDataProcessCallback+0x2c8>)
  10456. 8004c84: 4941 ldr r1, [pc, #260] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10457. 8004c86: 4844 ldr r0, [pc, #272] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10458. 8004c88: f7fe faf2 bl 8003270 <WriteDataToBuffer>
  10459. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  10460. 8004c8c: 2304 movs r3, #4
  10461. 8004c8e: 4a48 ldr r2, [pc, #288] @ (8004db0 <Uart1ReceivedDataProcessCallback+0x2cc>)
  10462. 8004c90: 493e ldr r1, [pc, #248] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10463. 8004c92: 4841 ldr r0, [pc, #260] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10464. 8004c94: f7fe faec bl 8003270 <WriteDataToBuffer>
  10465. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  10466. 8004c98: 2301 movs r3, #1
  10467. 8004c9a: 4a46 ldr r2, [pc, #280] @ (8004db4 <Uart1ReceivedDataProcessCallback+0x2d0>)
  10468. 8004c9c: 493b ldr r1, [pc, #236] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10469. 8004c9e: 483e ldr r0, [pc, #248] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10470. 8004ca0: f7fe fae6 bl 8003270 <WriteDataToBuffer>
  10471. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  10472. 8004ca4: 2301 movs r3, #1
  10473. 8004ca6: 4a44 ldr r2, [pc, #272] @ (8004db8 <Uart1ReceivedDataProcessCallback+0x2d4>)
  10474. 8004ca8: 4938 ldr r1, [pc, #224] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10475. 8004caa: 483b ldr r0, [pc, #236] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10476. 8004cac: f7fe fae0 bl 8003270 <WriteDataToBuffer>
  10477. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  10478. 8004cb0: 2304 movs r3, #4
  10479. 8004cb2: 4a42 ldr r2, [pc, #264] @ (8004dbc <Uart1ReceivedDataProcessCallback+0x2d8>)
  10480. 8004cb4: 4935 ldr r1, [pc, #212] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10481. 8004cb6: 4838 ldr r0, [pc, #224] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10482. 8004cb8: f7fe fada bl 8003270 <WriteDataToBuffer>
  10483. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  10484. 8004cbc: 2304 movs r3, #4
  10485. 8004cbe: 4a40 ldr r2, [pc, #256] @ (8004dc0 <Uart1ReceivedDataProcessCallback+0x2dc>)
  10486. 8004cc0: 4932 ldr r1, [pc, #200] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10487. 8004cc2: 4835 ldr r0, [pc, #212] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10488. 8004cc4: f7fe fad4 bl 8003270 <WriteDataToBuffer>
  10489. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  10490. 8004cc8: 2304 movs r3, #4
  10491. 8004cca: 4a3e ldr r2, [pc, #248] @ (8004dc4 <Uart1ReceivedDataProcessCallback+0x2e0>)
  10492. 8004ccc: 492f ldr r1, [pc, #188] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10493. 8004cce: 4832 ldr r0, [pc, #200] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10494. 8004cd0: f7fe face bl 8003270 <WriteDataToBuffer>
  10495. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  10496. 8004cd4: 2304 movs r3, #4
  10497. 8004cd6: 4a3c ldr r2, [pc, #240] @ (8004dc8 <Uart1ReceivedDataProcessCallback+0x2e4>)
  10498. 8004cd8: 492c ldr r1, [pc, #176] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10499. 8004cda: 482f ldr r0, [pc, #188] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10500. 8004cdc: f7fe fac8 bl 8003270 <WriteDataToBuffer>
  10501. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  10502. 8004ce0: 2301 movs r3, #1
  10503. 8004ce2: 4a3a ldr r2, [pc, #232] @ (8004dcc <Uart1ReceivedDataProcessCallback+0x2e8>)
  10504. 8004ce4: 4929 ldr r1, [pc, #164] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10505. 8004ce6: 482c ldr r0, [pc, #176] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10506. 8004ce8: f7fe fac2 bl 8003270 <WriteDataToBuffer>
  10507. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  10508. 8004cec: 2301 movs r3, #1
  10509. 8004cee: 4a38 ldr r2, [pc, #224] @ (8004dd0 <Uart1ReceivedDataProcessCallback+0x2ec>)
  10510. 8004cf0: 4926 ldr r1, [pc, #152] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10511. 8004cf2: 4829 ldr r0, [pc, #164] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10512. 8004cf4: f7fe fabc bl 8003270 <WriteDataToBuffer>
  10513. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  10514. 8004cf8: 2301 movs r3, #1
  10515. 8004cfa: 4a36 ldr r2, [pc, #216] @ (8004dd4 <Uart1ReceivedDataProcessCallback+0x2f0>)
  10516. 8004cfc: 4923 ldr r1, [pc, #140] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10517. 8004cfe: 4826 ldr r0, [pc, #152] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10518. 8004d00: f7fe fab6 bl 8003270 <WriteDataToBuffer>
  10519. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  10520. 8004d04: 2301 movs r3, #1
  10521. 8004d06: 4a34 ldr r2, [pc, #208] @ (8004dd8 <Uart1ReceivedDataProcessCallback+0x2f4>)
  10522. 8004d08: 4920 ldr r1, [pc, #128] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10523. 8004d0a: 4823 ldr r0, [pc, #140] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10524. 8004d0c: f7fe fab0 bl 8003270 <WriteDataToBuffer>
  10525. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  10526. 8004d10: 2301 movs r3, #1
  10527. 8004d12: 4a32 ldr r2, [pc, #200] @ (8004ddc <Uart1ReceivedDataProcessCallback+0x2f8>)
  10528. 8004d14: 491d ldr r1, [pc, #116] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10529. 8004d16: 4820 ldr r0, [pc, #128] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10530. 8004d18: f7fe faaa bl 8003270 <WriteDataToBuffer>
  10531. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  10532. 8004d1c: 2301 movs r3, #1
  10533. 8004d1e: 4a30 ldr r2, [pc, #192] @ (8004de0 <Uart1ReceivedDataProcessCallback+0x2fc>)
  10534. 8004d20: 491a ldr r1, [pc, #104] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10535. 8004d22: 481d ldr r0, [pc, #116] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10536. 8004d24: f7fe faa4 bl 8003270 <WriteDataToBuffer>
  10537. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  10538. 8004d28: 482e ldr r0, [pc, #184] @ (8004de4 <Uart1ReceivedDataProcessCallback+0x300>)
  10539. 8004d2a: f002 f9ed bl 8007108 <HAL_COMP_GetOutputLevel>
  10540. 8004d2e: 4603 mov r3, r0
  10541. 8004d30: 2b01 cmp r3, #1
  10542. 8004d32: bf0c ite eq
  10543. 8004d34: 2301 moveq r3, #1
  10544. 8004d36: 2300 movne r3, #0
  10545. 8004d38: b2db uxtb r3, r3
  10546. 8004d3a: f887 3037 strb.w r3, [r7, #55] @ 0x37
  10547. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  10548. 8004d3e: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  10549. 8004d42: 005c lsls r4, r3, #1
  10550. 8004d44: 2108 movs r1, #8
  10551. 8004d46: 4828 ldr r0, [pc, #160] @ (8004de8 <Uart1ReceivedDataProcessCallback+0x304>)
  10552. 8004d48: f005 ff96 bl 800ac78 <HAL_GPIO_ReadPin>
  10553. 8004d4c: 4603 mov r3, r0
  10554. 8004d4e: 4323 orrs r3, r4
  10555. 8004d50: f003 0301 and.w r3, r3, #1
  10556. 8004d54: 2b00 cmp r3, #0
  10557. 8004d56: bf0c ite eq
  10558. 8004d58: 2301 moveq r3, #1
  10559. 8004d5a: 2300 movne r3, #0
  10560. 8004d5c: b2db uxtb r3, r3
  10561. 8004d5e: 461a mov r2, r3
  10562. 8004d60: 4b0f ldr r3, [pc, #60] @ (8004da0 <Uart1ReceivedDataProcessCallback+0x2bc>)
  10563. 8004d62: f883 202e strb.w r2, [r3, #46] @ 0x2e
  10564. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  10565. 8004d66: 2301 movs r3, #1
  10566. 8004d68: 4a20 ldr r2, [pc, #128] @ (8004dec <Uart1ReceivedDataProcessCallback+0x308>)
  10567. 8004d6a: 4908 ldr r1, [pc, #32] @ (8004d8c <Uart1ReceivedDataProcessCallback+0x2a8>)
  10568. 8004d6c: 480a ldr r0, [pc, #40] @ (8004d98 <Uart1ReceivedDataProcessCallback+0x2b4>)
  10569. 8004d6e: f7fe fa7f bl 8003270 <WriteDataToBuffer>
  10570. osMutexRelease (sensorsInfoMutex);
  10571. 8004d72: 4b0a ldr r3, [pc, #40] @ (8004d9c <Uart1ReceivedDataProcessCallback+0x2b8>)
  10572. 8004d74: 681b ldr r3, [r3, #0]
  10573. 8004d76: 4618 mov r0, r3
  10574. 8004d78: f00f f81c bl 8013db4 <osMutexRelease>
  10575. respStatus = spOK;
  10576. 8004d7c: 2300 movs r3, #0
  10577. 8004d7e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10578. } else {
  10579. respStatus = spInternalError;
  10580. }
  10581. break;
  10582. 8004d82: e343 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10583. respStatus = spInternalError;
  10584. 8004d84: 23fc movs r3, #252 @ 0xfc
  10585. 8004d86: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10586. break;
  10587. 8004d8a: e33f b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10588. 8004d8c: 24000cf8 .word 0x24000cf8
  10589. 8004d90: 24000838 .word 0x24000838
  10590. 8004d94: 24000844 .word 0x24000844
  10591. 8004d98: 24000c78 .word 0x24000c78
  10592. 8004d9c: 2400083c .word 0x2400083c
  10593. 8004da0: 24000880 .word 0x24000880
  10594. 8004da4: 24000884 .word 0x24000884
  10595. 8004da8: 24000888 .word 0x24000888
  10596. 8004dac: 2400088c .word 0x2400088c
  10597. 8004db0: 24000890 .word 0x24000890
  10598. 8004db4: 24000894 .word 0x24000894
  10599. 8004db8: 24000895 .word 0x24000895
  10600. 8004dbc: 24000898 .word 0x24000898
  10601. 8004dc0: 2400089c .word 0x2400089c
  10602. 8004dc4: 240008a0 .word 0x240008a0
  10603. 8004dc8: 240008a4 .word 0x240008a4
  10604. 8004dcc: 240008a8 .word 0x240008a8
  10605. 8004dd0: 240008a9 .word 0x240008a9
  10606. 8004dd4: 240008aa .word 0x240008aa
  10607. 8004dd8: 240008ab .word 0x240008ab
  10608. 8004ddc: 240008ac .word 0x240008ac
  10609. 8004de0: 240008ad .word 0x240008ad
  10610. 8004de4: 240003d4 .word 0x240003d4
  10611. 8004de8: 58020c00 .word 0x58020c00
  10612. 8004dec: 240008ae .word 0x240008ae
  10613. case spSetFanSpeed:
  10614. osTimerStop (fanTimerHandle);
  10615. 8004df0: 4bb4 ldr r3, [pc, #720] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10616. 8004df2: 681b ldr r3, [r3, #0]
  10617. 8004df4: 4618 mov r0, r3
  10618. 8004df6: f00e fed5 bl 8013ba4 <osTimerStop>
  10619. int32_t fanTimerPeriod = 0;
  10620. 8004dfa: 2300 movs r3, #0
  10621. 8004dfc: 633b str r3, [r7, #48] @ 0x30
  10622. uint32_t pulse = 0;
  10623. 8004dfe: 2300 movs r3, #0
  10624. 8004e00: 62fb str r3, [r7, #44] @ 0x2c
  10625. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  10626. 8004e02: 683b ldr r3, [r7, #0]
  10627. 8004e04: 330c adds r3, #12
  10628. 8004e06: f107 022c add.w r2, r7, #44 @ 0x2c
  10629. 8004e0a: f107 0134 add.w r1, r7, #52 @ 0x34
  10630. 8004e0e: 4618 mov r0, r3
  10631. 8004e10: f7fe fa5f bl 80032d2 <ReadWordFromBufer>
  10632. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  10633. 8004e14: 683b ldr r3, [r7, #0]
  10634. 8004e16: 330c adds r3, #12
  10635. 8004e18: f107 0230 add.w r2, r7, #48 @ 0x30
  10636. 8004e1c: f107 0134 add.w r1, r7, #52 @ 0x34
  10637. 8004e20: 4618 mov r0, r3
  10638. 8004e22: f7fe fa56 bl 80032d2 <ReadWordFromBufer>
  10639. fanTimerConfigOC.Pulse = pulse * 10;
  10640. 8004e26: 6afa ldr r2, [r7, #44] @ 0x2c
  10641. 8004e28: 4613 mov r3, r2
  10642. 8004e2a: 009b lsls r3, r3, #2
  10643. 8004e2c: 4413 add r3, r2
  10644. 8004e2e: 005b lsls r3, r3, #1
  10645. 8004e30: 461a mov r2, r3
  10646. 8004e32: 4ba5 ldr r3, [pc, #660] @ (80050c8 <Uart1ReceivedDataProcessCallback+0x5e4>)
  10647. 8004e34: 605a str r2, [r3, #4]
  10648. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  10649. 8004e36: 2204 movs r2, #4
  10650. 8004e38: 49a3 ldr r1, [pc, #652] @ (80050c8 <Uart1ReceivedDataProcessCallback+0x5e4>)
  10651. 8004e3a: 48a4 ldr r0, [pc, #656] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10652. 8004e3c: f00a fd28 bl 800f890 <HAL_TIM_PWM_ConfigChannel>
  10653. 8004e40: 4603 mov r3, r0
  10654. 8004e42: 2b00 cmp r3, #0
  10655. 8004e44: d001 beq.n 8004e4a <Uart1ReceivedDataProcessCallback+0x366>
  10656. Error_Handler ();
  10657. 8004e46: f7fd f89f bl 8001f88 <Error_Handler>
  10658. }
  10659. if (fanTimerPeriod > 0) {
  10660. 8004e4a: 6b3b ldr r3, [r7, #48] @ 0x30
  10661. 8004e4c: 2b00 cmp r3, #0
  10662. 8004e4e: dd0f ble.n 8004e70 <Uart1ReceivedDataProcessCallback+0x38c>
  10663. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  10664. 8004e50: 4b9c ldr r3, [pc, #624] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10665. 8004e52: 681a ldr r2, [r3, #0]
  10666. 8004e54: 6b3b ldr r3, [r7, #48] @ 0x30
  10667. 8004e56: f44f 717a mov.w r1, #1000 @ 0x3e8
  10668. 8004e5a: fb01 f303 mul.w r3, r1, r3
  10669. 8004e5e: 4619 mov r1, r3
  10670. 8004e60: 4610 mov r0, r2
  10671. 8004e62: f00e fe71 bl 8013b48 <osTimerStart>
  10672. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10673. 8004e66: 2104 movs r1, #4
  10674. 8004e68: 4898 ldr r0, [pc, #608] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10675. 8004e6a: f00a f817 bl 800ee9c <HAL_TIM_PWM_Start>
  10676. 8004e6e: e019 b.n 8004ea4 <Uart1ReceivedDataProcessCallback+0x3c0>
  10677. } else if (fanTimerPeriod == 0) {
  10678. 8004e70: 6b3b ldr r3, [r7, #48] @ 0x30
  10679. 8004e72: 2b00 cmp r3, #0
  10680. 8004e74: d109 bne.n 8004e8a <Uart1ReceivedDataProcessCallback+0x3a6>
  10681. osTimerStop (fanTimerHandle);
  10682. 8004e76: 4b93 ldr r3, [pc, #588] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10683. 8004e78: 681b ldr r3, [r3, #0]
  10684. 8004e7a: 4618 mov r0, r3
  10685. 8004e7c: f00e fe92 bl 8013ba4 <osTimerStop>
  10686. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  10687. 8004e80: 2104 movs r1, #4
  10688. 8004e82: 4892 ldr r0, [pc, #584] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10689. 8004e84: f00a f918 bl 800f0b8 <HAL_TIM_PWM_Stop>
  10690. 8004e88: e00c b.n 8004ea4 <Uart1ReceivedDataProcessCallback+0x3c0>
  10691. } else if (fanTimerPeriod == -1) {
  10692. 8004e8a: 6b3b ldr r3, [r7, #48] @ 0x30
  10693. 8004e8c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10694. 8004e90: d108 bne.n 8004ea4 <Uart1ReceivedDataProcessCallback+0x3c0>
  10695. osTimerStop (fanTimerHandle);
  10696. 8004e92: 4b8c ldr r3, [pc, #560] @ (80050c4 <Uart1ReceivedDataProcessCallback+0x5e0>)
  10697. 8004e94: 681b ldr r3, [r3, #0]
  10698. 8004e96: 4618 mov r0, r3
  10699. 8004e98: f00e fe84 bl 8013ba4 <osTimerStop>
  10700. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10701. 8004e9c: 2104 movs r1, #4
  10702. 8004e9e: 488b ldr r0, [pc, #556] @ (80050cc <Uart1ReceivedDataProcessCallback+0x5e8>)
  10703. 8004ea0: f009 fffc bl 800ee9c <HAL_TIM_PWM_Start>
  10704. }
  10705. respStatus = spOK;
  10706. 8004ea4: 2300 movs r3, #0
  10707. 8004ea6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10708. break;
  10709. 8004eaa: e2af b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10710. case spSetMotorXOn:
  10711. int32_t motorXPWMPulse = 0;
  10712. 8004eac: 2300 movs r3, #0
  10713. 8004eae: 62bb str r3, [r7, #40] @ 0x28
  10714. int32_t motorXTimerPeriod = 0;
  10715. 8004eb0: 2300 movs r3, #0
  10716. 8004eb2: 627b str r3, [r7, #36] @ 0x24
  10717. uint32_t motorXStatus = 0;
  10718. 8004eb4: 2300 movs r3, #0
  10719. 8004eb6: 63bb str r3, [r7, #56] @ 0x38
  10720. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  10721. 8004eb8: 683b ldr r3, [r7, #0]
  10722. 8004eba: 330c adds r3, #12
  10723. 8004ebc: f107 0228 add.w r2, r7, #40 @ 0x28
  10724. 8004ec0: f107 0134 add.w r1, r7, #52 @ 0x34
  10725. 8004ec4: 4618 mov r0, r3
  10726. 8004ec6: f7fe fa04 bl 80032d2 <ReadWordFromBufer>
  10727. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  10728. 8004eca: 683b ldr r3, [r7, #0]
  10729. 8004ecc: 330c adds r3, #12
  10730. 8004ece: f107 0224 add.w r2, r7, #36 @ 0x24
  10731. 8004ed2: f107 0134 add.w r1, r7, #52 @ 0x34
  10732. 8004ed6: 4618 mov r0, r3
  10733. 8004ed8: f7fe f9fb bl 80032d2 <ReadWordFromBufer>
  10734. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10735. 8004edc: 4b7c ldr r3, [pc, #496] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10736. 8004ede: 681b ldr r3, [r3, #0]
  10737. 8004ee0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10738. 8004ee4: 4618 mov r0, r3
  10739. 8004ee6: f00e ff1a bl 8013d1e <osMutexAcquire>
  10740. 8004eea: 4603 mov r3, r0
  10741. 8004eec: 2b00 cmp r3, #0
  10742. 8004eee: d12a bne.n 8004f46 <Uart1ReceivedDataProcessCallback+0x462>
  10743. motorXStatus =
  10744. motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  10745. 8004ef0: 4b78 ldr r3, [pc, #480] @ (80050d4 <Uart1ReceivedDataProcessCallback+0x5f0>)
  10746. 8004ef2: 681b ldr r3, [r3, #0]
  10747. 8004ef4: 6aba ldr r2, [r7, #40] @ 0x28
  10748. 8004ef6: 6a79 ldr r1, [r7, #36] @ 0x24
  10749. 8004ef8: 4877 ldr r0, [pc, #476] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10750. 8004efa: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  10751. 8004efe: 4c76 ldr r4, [pc, #472] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10752. 8004f00: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  10753. 8004f04: 9404 str r4, [sp, #16]
  10754. 8004f06: 9003 str r0, [sp, #12]
  10755. 8004f08: 9102 str r1, [sp, #8]
  10756. 8004f0a: 9201 str r2, [sp, #4]
  10757. 8004f0c: 9300 str r3, [sp, #0]
  10758. 8004f0e: 2304 movs r3, #4
  10759. 8004f10: 2200 movs r2, #0
  10760. 8004f12: 4972 ldr r1, [pc, #456] @ (80050dc <Uart1ReceivedDataProcessCallback+0x5f8>)
  10761. 8004f14: 4872 ldr r0, [pc, #456] @ (80050e0 <Uart1ReceivedDataProcessCallback+0x5fc>)
  10762. 8004f16: f7fe f805 bl 8002f24 <motorControl>
  10763. 8004f1a: 4603 mov r3, r0
  10764. motorXStatus =
  10765. 8004f1c: 63bb str r3, [r7, #56] @ 0x38
  10766. sensorsInfo.motorXStatus = motorXStatus;
  10767. 8004f1e: 6bbb ldr r3, [r7, #56] @ 0x38
  10768. 8004f20: b2da uxtb r2, r3
  10769. 8004f22: 4b6d ldr r3, [pc, #436] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10770. 8004f24: 751a strb r2, [r3, #20]
  10771. if (motorXStatus == 1) {
  10772. 8004f26: 6bbb ldr r3, [r7, #56] @ 0x38
  10773. 8004f28: 2b01 cmp r3, #1
  10774. 8004f2a: d103 bne.n 8004f34 <Uart1ReceivedDataProcessCallback+0x450>
  10775. sensorsInfo.motorXPeakCurrent = 0.0;
  10776. 8004f2c: 4b6a ldr r3, [pc, #424] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10777. 8004f2e: f04f 0200 mov.w r2, #0
  10778. 8004f32: 621a str r2, [r3, #32]
  10779. }
  10780. osMutexRelease (sensorsInfoMutex);
  10781. 8004f34: 4b66 ldr r3, [pc, #408] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10782. 8004f36: 681b ldr r3, [r3, #0]
  10783. 8004f38: 4618 mov r0, r3
  10784. 8004f3a: f00e ff3b bl 8013db4 <osMutexRelease>
  10785. respStatus = spOK;
  10786. 8004f3e: 2300 movs r3, #0
  10787. 8004f40: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10788. } else {
  10789. respStatus = spInternalError;
  10790. }
  10791. break;
  10792. 8004f44: e262 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10793. respStatus = spInternalError;
  10794. 8004f46: 23fc movs r3, #252 @ 0xfc
  10795. 8004f48: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10796. break;
  10797. 8004f4c: e25e b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10798. case spSetMotorYOn:
  10799. int32_t motorYPWMPulse = 0;
  10800. 8004f4e: 2300 movs r3, #0
  10801. 8004f50: 623b str r3, [r7, #32]
  10802. int32_t motorYTimerPeriod = 0;
  10803. 8004f52: 2300 movs r3, #0
  10804. 8004f54: 61fb str r3, [r7, #28]
  10805. uint32_t motorYStatus = 0;
  10806. 8004f56: 2300 movs r3, #0
  10807. 8004f58: 63fb str r3, [r7, #60] @ 0x3c
  10808. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  10809. 8004f5a: 683b ldr r3, [r7, #0]
  10810. 8004f5c: 330c adds r3, #12
  10811. 8004f5e: f107 0220 add.w r2, r7, #32
  10812. 8004f62: f107 0134 add.w r1, r7, #52 @ 0x34
  10813. 8004f66: 4618 mov r0, r3
  10814. 8004f68: f7fe f9b3 bl 80032d2 <ReadWordFromBufer>
  10815. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  10816. 8004f6c: 683b ldr r3, [r7, #0]
  10817. 8004f6e: 330c adds r3, #12
  10818. 8004f70: f107 021c add.w r2, r7, #28
  10819. 8004f74: f107 0134 add.w r1, r7, #52 @ 0x34
  10820. 8004f78: 4618 mov r0, r3
  10821. 8004f7a: f7fe f9aa bl 80032d2 <ReadWordFromBufer>
  10822. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10823. 8004f7e: 4b54 ldr r3, [pc, #336] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10824. 8004f80: 681b ldr r3, [r3, #0]
  10825. 8004f82: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10826. 8004f86: 4618 mov r0, r3
  10827. 8004f88: f00e fec9 bl 8013d1e <osMutexAcquire>
  10828. 8004f8c: 4603 mov r3, r0
  10829. 8004f8e: 2b00 cmp r3, #0
  10830. 8004f90: d12a bne.n 8004fe8 <Uart1ReceivedDataProcessCallback+0x504>
  10831. motorYStatus =
  10832. motorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  10833. 8004f92: 4b54 ldr r3, [pc, #336] @ (80050e4 <Uart1ReceivedDataProcessCallback+0x600>)
  10834. 8004f94: 681b ldr r3, [r3, #0]
  10835. 8004f96: 6a3a ldr r2, [r7, #32]
  10836. 8004f98: 69f9 ldr r1, [r7, #28]
  10837. 8004f9a: 484f ldr r0, [pc, #316] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10838. 8004f9c: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  10839. 8004fa0: 4c4d ldr r4, [pc, #308] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10840. 8004fa2: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  10841. 8004fa6: 9404 str r4, [sp, #16]
  10842. 8004fa8: 9003 str r0, [sp, #12]
  10843. 8004faa: 9102 str r1, [sp, #8]
  10844. 8004fac: 9201 str r2, [sp, #4]
  10845. 8004fae: 9300 str r3, [sp, #0]
  10846. 8004fb0: 230c movs r3, #12
  10847. 8004fb2: 2208 movs r2, #8
  10848. 8004fb4: 4949 ldr r1, [pc, #292] @ (80050dc <Uart1ReceivedDataProcessCallback+0x5f8>)
  10849. 8004fb6: 484a ldr r0, [pc, #296] @ (80050e0 <Uart1ReceivedDataProcessCallback+0x5fc>)
  10850. 8004fb8: f7fd ffb4 bl 8002f24 <motorControl>
  10851. 8004fbc: 4603 mov r3, r0
  10852. motorYStatus =
  10853. 8004fbe: 63fb str r3, [r7, #60] @ 0x3c
  10854. sensorsInfo.motorYStatus = motorYStatus;
  10855. 8004fc0: 6bfb ldr r3, [r7, #60] @ 0x3c
  10856. 8004fc2: b2da uxtb r2, r3
  10857. 8004fc4: 4b44 ldr r3, [pc, #272] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10858. 8004fc6: 755a strb r2, [r3, #21]
  10859. if (motorYStatus == 1) {
  10860. 8004fc8: 6bfb ldr r3, [r7, #60] @ 0x3c
  10861. 8004fca: 2b01 cmp r3, #1
  10862. 8004fcc: d103 bne.n 8004fd6 <Uart1ReceivedDataProcessCallback+0x4f2>
  10863. sensorsInfo.motorYPeakCurrent = 0.0;
  10864. 8004fce: 4b42 ldr r3, [pc, #264] @ (80050d8 <Uart1ReceivedDataProcessCallback+0x5f4>)
  10865. 8004fd0: f04f 0200 mov.w r2, #0
  10866. 8004fd4: 625a str r2, [r3, #36] @ 0x24
  10867. }
  10868. osMutexRelease (sensorsInfoMutex);
  10869. 8004fd6: 4b3e ldr r3, [pc, #248] @ (80050d0 <Uart1ReceivedDataProcessCallback+0x5ec>)
  10870. 8004fd8: 681b ldr r3, [r3, #0]
  10871. 8004fda: 4618 mov r0, r3
  10872. 8004fdc: f00e feea bl 8013db4 <osMutexRelease>
  10873. respStatus = spOK;
  10874. 8004fe0: 2300 movs r3, #0
  10875. 8004fe2: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10876. } else {
  10877. respStatus = spInternalError;
  10878. }
  10879. break;
  10880. 8004fe6: e211 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10881. respStatus = spInternalError;
  10882. 8004fe8: 23fc movs r3, #252 @ 0xfc
  10883. 8004fea: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10884. break;
  10885. 8004fee: e20d b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10886. case spSetDiodeOn:
  10887. osTimerStop (debugLedTimerHandle);
  10888. 8004ff0: 4b3d ldr r3, [pc, #244] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10889. 8004ff2: 681b ldr r3, [r3, #0]
  10890. 8004ff4: 4618 mov r0, r3
  10891. 8004ff6: f00e fdd5 bl 8013ba4 <osTimerStop>
  10892. int32_t dbgLedTimerPeriod = 0;
  10893. 8004ffa: 2300 movs r3, #0
  10894. 8004ffc: 61bb str r3, [r7, #24]
  10895. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  10896. 8004ffe: 683b ldr r3, [r7, #0]
  10897. 8005000: 330c adds r3, #12
  10898. 8005002: f107 0218 add.w r2, r7, #24
  10899. 8005006: f107 0134 add.w r1, r7, #52 @ 0x34
  10900. 800500a: 4618 mov r0, r3
  10901. 800500c: f7fe f961 bl 80032d2 <ReadWordFromBufer>
  10902. if (dbgLedTimerPeriod > 0) {
  10903. 8005010: 69bb ldr r3, [r7, #24]
  10904. 8005012: 2b00 cmp r3, #0
  10905. 8005014: dd0e ble.n 8005034 <Uart1ReceivedDataProcessCallback+0x550>
  10906. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  10907. 8005016: 4b34 ldr r3, [pc, #208] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10908. 8005018: 681a ldr r2, [r3, #0]
  10909. 800501a: 69bb ldr r3, [r7, #24]
  10910. 800501c: f44f 717a mov.w r1, #1000 @ 0x3e8
  10911. 8005020: fb01 f303 mul.w r3, r1, r3
  10912. 8005024: 4619 mov r1, r3
  10913. 8005026: 4610 mov r0, r2
  10914. 8005028: f00e fd8e bl 8013b48 <osTimerStart>
  10915. DbgLEDOn (DBG_LED1);
  10916. 800502c: 2010 movs r0, #16
  10917. 800502e: f7fd feeb bl 8002e08 <DbgLEDOn>
  10918. 8005032: e017 b.n 8005064 <Uart1ReceivedDataProcessCallback+0x580>
  10919. } else if (dbgLedTimerPeriod == 0) {
  10920. 8005034: 69bb ldr r3, [r7, #24]
  10921. 8005036: 2b00 cmp r3, #0
  10922. 8005038: d108 bne.n 800504c <Uart1ReceivedDataProcessCallback+0x568>
  10923. osTimerStop (debugLedTimerHandle);
  10924. 800503a: 4b2b ldr r3, [pc, #172] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10925. 800503c: 681b ldr r3, [r3, #0]
  10926. 800503e: 4618 mov r0, r3
  10927. 8005040: f00e fdb0 bl 8013ba4 <osTimerStop>
  10928. DbgLEDOff (DBG_LED1);
  10929. 8005044: 2010 movs r0, #16
  10930. 8005046: f7fd fef1 bl 8002e2c <DbgLEDOff>
  10931. 800504a: e00b b.n 8005064 <Uart1ReceivedDataProcessCallback+0x580>
  10932. } else if (dbgLedTimerPeriod == -1) {
  10933. 800504c: 69bb ldr r3, [r7, #24]
  10934. 800504e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10935. 8005052: d107 bne.n 8005064 <Uart1ReceivedDataProcessCallback+0x580>
  10936. osTimerStop (debugLedTimerHandle);
  10937. 8005054: 4b24 ldr r3, [pc, #144] @ (80050e8 <Uart1ReceivedDataProcessCallback+0x604>)
  10938. 8005056: 681b ldr r3, [r3, #0]
  10939. 8005058: 4618 mov r0, r3
  10940. 800505a: f00e fda3 bl 8013ba4 <osTimerStop>
  10941. DbgLEDOn (DBG_LED1);
  10942. 800505e: 2010 movs r0, #16
  10943. 8005060: f7fd fed2 bl 8002e08 <DbgLEDOn>
  10944. }
  10945. respStatus = spOK;
  10946. 8005064: 2300 movs r3, #0
  10947. 8005066: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10948. break;
  10949. 800506a: e1cf b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10950. case spSetmotorXMaxCurrent:
  10951. float motorXMaxCurrent = 0;
  10952. 800506c: f04f 0300 mov.w r3, #0
  10953. 8005070: 617b str r3, [r7, #20]
  10954. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  10955. 8005072: 683b ldr r3, [r7, #0]
  10956. 8005074: 330c adds r3, #12
  10957. 8005076: f107 0214 add.w r2, r7, #20
  10958. 800507a: f107 0134 add.w r1, r7, #52 @ 0x34
  10959. 800507e: 4618 mov r0, r3
  10960. 8005080: f7fe f927 bl 80032d2 <ReadWordFromBufer>
  10961. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  10962. 8005084: edd7 7a05 vldr s15, [r7, #20]
  10963. 8005088: ed9f 7a19 vldr s14, [pc, #100] @ 80050f0 <Uart1ReceivedDataProcessCallback+0x60c>
  10964. 800508c: ee67 7a87 vmul.f32 s15, s15, s14
  10965. 8005090: eeb7 6ae7 vcvt.f64.f32 d6, s15
  10966. 8005094: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  10967. 8005098: ee86 7b05 vdiv.f64 d7, d6, d5
  10968. 800509c: eefc 7bc7 vcvt.u32.f64 s15, d7
  10969. 80050a0: ee17 3a90 vmov r3, s15
  10970. 80050a4: 643b str r3, [r7, #64] @ 0x40
  10971. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  10972. 80050a6: 6c3b ldr r3, [r7, #64] @ 0x40
  10973. 80050a8: 2200 movs r2, #0
  10974. 80050aa: 2100 movs r1, #0
  10975. 80050ac: 480f ldr r0, [pc, #60] @ (80050ec <Uart1ReceivedDataProcessCallback+0x608>)
  10976. 80050ae: f002 fc76 bl 800799e <HAL_DAC_SetValue>
  10977. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  10978. 80050b2: 2100 movs r1, #0
  10979. 80050b4: 480d ldr r0, [pc, #52] @ (80050ec <Uart1ReceivedDataProcessCallback+0x608>)
  10980. 80050b6: f002 fbc5 bl 8007844 <HAL_DAC_Start>
  10981. respStatus = spOK;
  10982. 80050ba: 2300 movs r3, #0
  10983. 80050bc: f887 306f strb.w r3, [r7, #111] @ 0x6f
  10984. break;
  10985. 80050c0: e1a4 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  10986. 80050c2: bf00 nop
  10987. 80050c4: 24000734 .word 0x24000734
  10988. 80050c8: 240007c4 .word 0x240007c4
  10989. 80050cc: 2400045c .word 0x2400045c
  10990. 80050d0: 2400083c .word 0x2400083c
  10991. 80050d4: 24000764 .word 0x24000764
  10992. 80050d8: 24000880 .word 0x24000880
  10993. 80050dc: 240007e0 .word 0x240007e0
  10994. 80050e0: 240004f4 .word 0x240004f4
  10995. 80050e4: 24000794 .word 0x24000794
  10996. 80050e8: 24000704 .word 0x24000704
  10997. 80050ec: 24000424 .word 0x24000424
  10998. 80050f0: 457ff000 .word 0x457ff000
  10999. case spSetmotorYMaxCurrent:
  11000. float motorYMaxCurrent = 0;
  11001. 80050f4: f04f 0300 mov.w r3, #0
  11002. 80050f8: 613b str r3, [r7, #16]
  11003. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  11004. 80050fa: 683b ldr r3, [r7, #0]
  11005. 80050fc: 330c adds r3, #12
  11006. 80050fe: f107 0210 add.w r2, r7, #16
  11007. 8005102: f107 0134 add.w r1, r7, #52 @ 0x34
  11008. 8005106: 4618 mov r0, r3
  11009. 8005108: f7fe f8e3 bl 80032d2 <ReadWordFromBufer>
  11010. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  11011. 800510c: edd7 7a04 vldr s15, [r7, #16]
  11012. 8005110: ed1f 7a09 vldr s14, [pc, #-36] @ 80050f0 <Uart1ReceivedDataProcessCallback+0x60c>
  11013. 8005114: ee67 7a87 vmul.f32 s15, s15, s14
  11014. 8005118: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11015. 800511c: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11016. 8005120: ee86 7b05 vdiv.f64 d7, d6, d5
  11017. 8005124: eefc 7bc7 vcvt.u32.f64 s15, d7
  11018. 8005128: ee17 3a90 vmov r3, s15
  11019. 800512c: 647b str r3, [r7, #68] @ 0x44
  11020. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  11021. 800512e: 6c7b ldr r3, [r7, #68] @ 0x44
  11022. 8005130: 2200 movs r2, #0
  11023. 8005132: 2110 movs r1, #16
  11024. 8005134: 48ac ldr r0, [pc, #688] @ (80053e8 <Uart1ReceivedDataProcessCallback+0x904>)
  11025. 8005136: f002 fc32 bl 800799e <HAL_DAC_SetValue>
  11026. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  11027. 800513a: 2110 movs r1, #16
  11028. 800513c: 48aa ldr r0, [pc, #680] @ (80053e8 <Uart1ReceivedDataProcessCallback+0x904>)
  11029. 800513e: f002 fb81 bl 8007844 <HAL_DAC_Start>
  11030. respStatus = spOK;
  11031. 8005142: 2300 movs r3, #0
  11032. 8005144: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11033. break;
  11034. 8005148: e160 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11035. case spClearPeakMeasurments:
  11036. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11037. 800514a: 4ba8 ldr r3, [pc, #672] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11038. 800514c: 681b ldr r3, [r3, #0]
  11039. 800514e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11040. 8005152: 4618 mov r0, r3
  11041. 8005154: f00e fde3 bl 8013d1e <osMutexAcquire>
  11042. 8005158: 4603 mov r3, r0
  11043. 800515a: 2b00 cmp r3, #0
  11044. 800515c: d12a bne.n 80051b4 <Uart1ReceivedDataProcessCallback+0x6d0>
  11045. for (int i = 0; i < 3; i++) {
  11046. 800515e: 2300 movs r3, #0
  11047. 8005160: 657b str r3, [r7, #84] @ 0x54
  11048. 8005162: e01b b.n 800519c <Uart1ReceivedDataProcessCallback+0x6b8>
  11049. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  11050. 8005164: 4aa2 ldr r2, [pc, #648] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11051. 8005166: 6d7b ldr r3, [r7, #84] @ 0x54
  11052. 8005168: 009b lsls r3, r3, #2
  11053. 800516a: 4413 add r3, r2
  11054. 800516c: 681a ldr r2, [r3, #0]
  11055. 800516e: 49a0 ldr r1, [pc, #640] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11056. 8005170: 6d7b ldr r3, [r7, #84] @ 0x54
  11057. 8005172: 3302 adds r3, #2
  11058. 8005174: 009b lsls r3, r3, #2
  11059. 8005176: 440b add r3, r1
  11060. 8005178: 3304 adds r3, #4
  11061. 800517a: 601a str r2, [r3, #0]
  11062. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  11063. 800517c: 4a9c ldr r2, [pc, #624] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11064. 800517e: 6d7b ldr r3, [r7, #84] @ 0x54
  11065. 8005180: 3306 adds r3, #6
  11066. 8005182: 009b lsls r3, r3, #2
  11067. 8005184: 4413 add r3, r2
  11068. 8005186: 681a ldr r2, [r3, #0]
  11069. 8005188: 4999 ldr r1, [pc, #612] @ (80053f0 <Uart1ReceivedDataProcessCallback+0x90c>)
  11070. 800518a: 6d7b ldr r3, [r7, #84] @ 0x54
  11071. 800518c: 3308 adds r3, #8
  11072. 800518e: 009b lsls r3, r3, #2
  11073. 8005190: 440b add r3, r1
  11074. 8005192: 3304 adds r3, #4
  11075. 8005194: 601a str r2, [r3, #0]
  11076. for (int i = 0; i < 3; i++) {
  11077. 8005196: 6d7b ldr r3, [r7, #84] @ 0x54
  11078. 8005198: 3301 adds r3, #1
  11079. 800519a: 657b str r3, [r7, #84] @ 0x54
  11080. 800519c: 6d7b ldr r3, [r7, #84] @ 0x54
  11081. 800519e: 2b02 cmp r3, #2
  11082. 80051a0: dde0 ble.n 8005164 <Uart1ReceivedDataProcessCallback+0x680>
  11083. }
  11084. osMutexRelease (resMeasurementsMutex);
  11085. 80051a2: 4b92 ldr r3, [pc, #584] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11086. 80051a4: 681b ldr r3, [r3, #0]
  11087. 80051a6: 4618 mov r0, r3
  11088. 80051a8: f00e fe04 bl 8013db4 <osMutexRelease>
  11089. respStatus = spOK;
  11090. 80051ac: 2300 movs r3, #0
  11091. 80051ae: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11092. } else {
  11093. respStatus = spInternalError;
  11094. }
  11095. break;
  11096. 80051b2: e12b b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11097. respStatus = spInternalError;
  11098. 80051b4: 23fc movs r3, #252 @ 0xfc
  11099. 80051b6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11100. break;
  11101. 80051ba: e127 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11102. case spSetEncoderXValue:
  11103. float enocoderXValue = 0;
  11104. 80051bc: f04f 0300 mov.w r3, #0
  11105. 80051c0: 60fb str r3, [r7, #12]
  11106. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  11107. 80051c2: 683b ldr r3, [r7, #0]
  11108. 80051c4: 330c adds r3, #12
  11109. 80051c6: f107 020c add.w r2, r7, #12
  11110. 80051ca: f107 0134 add.w r1, r7, #52 @ 0x34
  11111. 80051ce: 4618 mov r0, r3
  11112. 80051d0: f7fe f87f bl 80032d2 <ReadWordFromBufer>
  11113. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11114. 80051d4: 4b87 ldr r3, [pc, #540] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11115. 80051d6: 681b ldr r3, [r3, #0]
  11116. 80051d8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11117. 80051dc: 4618 mov r0, r3
  11118. 80051de: f00e fd9e bl 8013d1e <osMutexAcquire>
  11119. 80051e2: 4603 mov r3, r0
  11120. 80051e4: 2b00 cmp r3, #0
  11121. 80051e6: d10b bne.n 8005200 <Uart1ReceivedDataProcessCallback+0x71c>
  11122. sensorsInfo.pvEncoderX = enocoderXValue;
  11123. 80051e8: 68fb ldr r3, [r7, #12]
  11124. 80051ea: 4a83 ldr r2, [pc, #524] @ (80053f8 <Uart1ReceivedDataProcessCallback+0x914>)
  11125. 80051ec: 60d3 str r3, [r2, #12]
  11126. osMutexRelease (sensorsInfoMutex);
  11127. 80051ee: 4b81 ldr r3, [pc, #516] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11128. 80051f0: 681b ldr r3, [r3, #0]
  11129. 80051f2: 4618 mov r0, r3
  11130. 80051f4: f00e fdde bl 8013db4 <osMutexRelease>
  11131. respStatus = spOK;
  11132. 80051f8: 2300 movs r3, #0
  11133. 80051fa: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11134. } else {
  11135. respStatus = spInternalError;
  11136. }
  11137. break;
  11138. 80051fe: e105 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11139. respStatus = spInternalError;
  11140. 8005200: 23fc movs r3, #252 @ 0xfc
  11141. 8005202: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11142. break;
  11143. 8005206: e101 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11144. case spSetEncoderYValue:
  11145. float enocoderYValue = 0;
  11146. 8005208: f04f 0300 mov.w r3, #0
  11147. 800520c: 60bb str r3, [r7, #8]
  11148. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  11149. 800520e: 683b ldr r3, [r7, #0]
  11150. 8005210: 330c adds r3, #12
  11151. 8005212: f107 0208 add.w r2, r7, #8
  11152. 8005216: f107 0134 add.w r1, r7, #52 @ 0x34
  11153. 800521a: 4618 mov r0, r3
  11154. 800521c: f7fe f859 bl 80032d2 <ReadWordFromBufer>
  11155. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11156. 8005220: 4b74 ldr r3, [pc, #464] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11157. 8005222: 681b ldr r3, [r3, #0]
  11158. 8005224: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11159. 8005228: 4618 mov r0, r3
  11160. 800522a: f00e fd78 bl 8013d1e <osMutexAcquire>
  11161. 800522e: 4603 mov r3, r0
  11162. 8005230: 2b00 cmp r3, #0
  11163. 8005232: d10b bne.n 800524c <Uart1ReceivedDataProcessCallback+0x768>
  11164. sensorsInfo.pvEncoderY = enocoderYValue;
  11165. 8005234: 68bb ldr r3, [r7, #8]
  11166. 8005236: 4a70 ldr r2, [pc, #448] @ (80053f8 <Uart1ReceivedDataProcessCallback+0x914>)
  11167. 8005238: 6113 str r3, [r2, #16]
  11168. osMutexRelease (sensorsInfoMutex);
  11169. 800523a: 4b6e ldr r3, [pc, #440] @ (80053f4 <Uart1ReceivedDataProcessCallback+0x910>)
  11170. 800523c: 681b ldr r3, [r3, #0]
  11171. 800523e: 4618 mov r0, r3
  11172. 8005240: f00e fdb8 bl 8013db4 <osMutexRelease>
  11173. respStatus = spOK;
  11174. 8005244: 2300 movs r3, #0
  11175. 8005246: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11176. } else {
  11177. respStatus = spInternalError;
  11178. }
  11179. break;
  11180. 800524a: e0df b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11181. respStatus = spInternalError;
  11182. 800524c: 23fc movs r3, #252 @ 0xfc
  11183. 800524e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11184. break;
  11185. 8005252: e0db b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11186. case spSetVoltageMeasGains:
  11187. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11188. 8005254: 4b65 ldr r3, [pc, #404] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11189. 8005256: 681b ldr r3, [r3, #0]
  11190. 8005258: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11191. 800525c: 4618 mov r0, r3
  11192. 800525e: f00e fd5e bl 8013d1e <osMutexAcquire>
  11193. 8005262: 4603 mov r3, r0
  11194. 8005264: 2b00 cmp r3, #0
  11195. 8005266: d122 bne.n 80052ae <Uart1ReceivedDataProcessCallback+0x7ca>
  11196. for (uint8_t i = 0; i < 3; i++) {
  11197. 8005268: 2300 movs r3, #0
  11198. 800526a: f887 3053 strb.w r3, [r7, #83] @ 0x53
  11199. 800526e: e011 b.n 8005294 <Uart1ReceivedDataProcessCallback+0x7b0>
  11200. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  11201. 8005270: 683b ldr r3, [r7, #0]
  11202. 8005272: f103 000c add.w r0, r3, #12
  11203. 8005276: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  11204. 800527a: 00db lsls r3, r3, #3
  11205. 800527c: 4a5f ldr r2, [pc, #380] @ (80053fc <Uart1ReceivedDataProcessCallback+0x918>)
  11206. 800527e: 441a add r2, r3
  11207. 8005280: f107 0334 add.w r3, r7, #52 @ 0x34
  11208. 8005284: 4619 mov r1, r3
  11209. 8005286: f7fe f824 bl 80032d2 <ReadWordFromBufer>
  11210. for (uint8_t i = 0; i < 3; i++) {
  11211. 800528a: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  11212. 800528e: 3301 adds r3, #1
  11213. 8005290: f887 3053 strb.w r3, [r7, #83] @ 0x53
  11214. 8005294: f897 3053 ldrb.w r3, [r7, #83] @ 0x53
  11215. 8005298: 2b02 cmp r3, #2
  11216. 800529a: d9e9 bls.n 8005270 <Uart1ReceivedDataProcessCallback+0x78c>
  11217. }
  11218. osMutexRelease (resMeasurementsMutex);
  11219. 800529c: 4b53 ldr r3, [pc, #332] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11220. 800529e: 681b ldr r3, [r3, #0]
  11221. 80052a0: 4618 mov r0, r3
  11222. 80052a2: f00e fd87 bl 8013db4 <osMutexRelease>
  11223. respStatus = spOK;
  11224. 80052a6: 2300 movs r3, #0
  11225. 80052a8: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11226. } else {
  11227. respStatus = spInternalError;
  11228. }
  11229. break;
  11230. 80052ac: e0ae b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11231. respStatus = spInternalError;
  11232. 80052ae: 23fc movs r3, #252 @ 0xfc
  11233. 80052b0: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11234. break;
  11235. 80052b4: e0aa b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11236. case spSetVoltageMeasOffsets:
  11237. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11238. 80052b6: 4b4d ldr r3, [pc, #308] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11239. 80052b8: 681b ldr r3, [r3, #0]
  11240. 80052ba: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11241. 80052be: 4618 mov r0, r3
  11242. 80052c0: f00e fd2d bl 8013d1e <osMutexAcquire>
  11243. 80052c4: 4603 mov r3, r0
  11244. 80052c6: 2b00 cmp r3, #0
  11245. 80052c8: d123 bne.n 8005312 <Uart1ReceivedDataProcessCallback+0x82e>
  11246. for (uint8_t i = 0; i < 3; i++) {
  11247. 80052ca: 2300 movs r3, #0
  11248. 80052cc: f887 3052 strb.w r3, [r7, #82] @ 0x52
  11249. 80052d0: e012 b.n 80052f8 <Uart1ReceivedDataProcessCallback+0x814>
  11250. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  11251. 80052d2: 683b ldr r3, [r7, #0]
  11252. 80052d4: f103 000c add.w r0, r3, #12
  11253. 80052d8: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11254. 80052dc: 00db lsls r3, r3, #3
  11255. 80052de: 4a47 ldr r2, [pc, #284] @ (80053fc <Uart1ReceivedDataProcessCallback+0x918>)
  11256. 80052e0: 4413 add r3, r2
  11257. 80052e2: 1d1a adds r2, r3, #4
  11258. 80052e4: f107 0334 add.w r3, r7, #52 @ 0x34
  11259. 80052e8: 4619 mov r1, r3
  11260. 80052ea: f7fd fff2 bl 80032d2 <ReadWordFromBufer>
  11261. for (uint8_t i = 0; i < 3; i++) {
  11262. 80052ee: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11263. 80052f2: 3301 adds r3, #1
  11264. 80052f4: f887 3052 strb.w r3, [r7, #82] @ 0x52
  11265. 80052f8: f897 3052 ldrb.w r3, [r7, #82] @ 0x52
  11266. 80052fc: 2b02 cmp r3, #2
  11267. 80052fe: d9e8 bls.n 80052d2 <Uart1ReceivedDataProcessCallback+0x7ee>
  11268. }
  11269. osMutexRelease (resMeasurementsMutex);
  11270. 8005300: 4b3a ldr r3, [pc, #232] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11271. 8005302: 681b ldr r3, [r3, #0]
  11272. 8005304: 4618 mov r0, r3
  11273. 8005306: f00e fd55 bl 8013db4 <osMutexRelease>
  11274. respStatus = spOK;
  11275. 800530a: 2300 movs r3, #0
  11276. 800530c: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11277. } else {
  11278. respStatus = spInternalError;
  11279. }
  11280. break;
  11281. 8005310: e07c b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11282. respStatus = spInternalError;
  11283. 8005312: 23fc movs r3, #252 @ 0xfc
  11284. 8005314: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11285. break;
  11286. 8005318: e078 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11287. case spSetCurrentMeasGains:
  11288. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11289. 800531a: 4b34 ldr r3, [pc, #208] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11290. 800531c: 681b ldr r3, [r3, #0]
  11291. 800531e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11292. 8005322: 4618 mov r0, r3
  11293. 8005324: f00e fcfb bl 8013d1e <osMutexAcquire>
  11294. 8005328: 4603 mov r3, r0
  11295. 800532a: 2b00 cmp r3, #0
  11296. 800532c: d122 bne.n 8005374 <Uart1ReceivedDataProcessCallback+0x890>
  11297. for (uint8_t i = 0; i < 3; i++) {
  11298. 800532e: 2300 movs r3, #0
  11299. 8005330: f887 3051 strb.w r3, [r7, #81] @ 0x51
  11300. 8005334: e011 b.n 800535a <Uart1ReceivedDataProcessCallback+0x876>
  11301. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  11302. 8005336: 683b ldr r3, [r7, #0]
  11303. 8005338: f103 000c add.w r0, r3, #12
  11304. 800533c: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11305. 8005340: 00db lsls r3, r3, #3
  11306. 8005342: 4a2f ldr r2, [pc, #188] @ (8005400 <Uart1ReceivedDataProcessCallback+0x91c>)
  11307. 8005344: 441a add r2, r3
  11308. 8005346: f107 0334 add.w r3, r7, #52 @ 0x34
  11309. 800534a: 4619 mov r1, r3
  11310. 800534c: f7fd ffc1 bl 80032d2 <ReadWordFromBufer>
  11311. for (uint8_t i = 0; i < 3; i++) {
  11312. 8005350: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11313. 8005354: 3301 adds r3, #1
  11314. 8005356: f887 3051 strb.w r3, [r7, #81] @ 0x51
  11315. 800535a: f897 3051 ldrb.w r3, [r7, #81] @ 0x51
  11316. 800535e: 2b02 cmp r3, #2
  11317. 8005360: d9e9 bls.n 8005336 <Uart1ReceivedDataProcessCallback+0x852>
  11318. }
  11319. osMutexRelease (resMeasurementsMutex);
  11320. 8005362: 4b22 ldr r3, [pc, #136] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11321. 8005364: 681b ldr r3, [r3, #0]
  11322. 8005366: 4618 mov r0, r3
  11323. 8005368: f00e fd24 bl 8013db4 <osMutexRelease>
  11324. respStatus = spOK;
  11325. 800536c: 2300 movs r3, #0
  11326. 800536e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11327. } else {
  11328. respStatus = spInternalError;
  11329. }
  11330. break;
  11331. 8005372: e04b b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11332. respStatus = spInternalError;
  11333. 8005374: 23fc movs r3, #252 @ 0xfc
  11334. 8005376: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11335. break;
  11336. 800537a: e047 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11337. case spSetCurrentMeasOffsets:
  11338. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11339. 800537c: 4b1b ldr r3, [pc, #108] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11340. 800537e: 681b ldr r3, [r3, #0]
  11341. 8005380: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11342. 8005384: 4618 mov r0, r3
  11343. 8005386: f00e fcca bl 8013d1e <osMutexAcquire>
  11344. 800538a: 4603 mov r3, r0
  11345. 800538c: 2b00 cmp r3, #0
  11346. 800538e: d123 bne.n 80053d8 <Uart1ReceivedDataProcessCallback+0x8f4>
  11347. for (uint8_t i = 0; i < 3; i++) {
  11348. 8005390: 2300 movs r3, #0
  11349. 8005392: f887 3050 strb.w r3, [r7, #80] @ 0x50
  11350. 8005396: e012 b.n 80053be <Uart1ReceivedDataProcessCallback+0x8da>
  11351. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  11352. 8005398: 683b ldr r3, [r7, #0]
  11353. 800539a: f103 000c add.w r0, r3, #12
  11354. 800539e: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11355. 80053a2: 00db lsls r3, r3, #3
  11356. 80053a4: 4a16 ldr r2, [pc, #88] @ (8005400 <Uart1ReceivedDataProcessCallback+0x91c>)
  11357. 80053a6: 4413 add r3, r2
  11358. 80053a8: 1d1a adds r2, r3, #4
  11359. 80053aa: f107 0334 add.w r3, r7, #52 @ 0x34
  11360. 80053ae: 4619 mov r1, r3
  11361. 80053b0: f7fd ff8f bl 80032d2 <ReadWordFromBufer>
  11362. for (uint8_t i = 0; i < 3; i++) {
  11363. 80053b4: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11364. 80053b8: 3301 adds r3, #1
  11365. 80053ba: f887 3050 strb.w r3, [r7, #80] @ 0x50
  11366. 80053be: f897 3050 ldrb.w r3, [r7, #80] @ 0x50
  11367. 80053c2: 2b02 cmp r3, #2
  11368. 80053c4: d9e8 bls.n 8005398 <Uart1ReceivedDataProcessCallback+0x8b4>
  11369. }
  11370. osMutexRelease (resMeasurementsMutex);
  11371. 80053c6: 4b09 ldr r3, [pc, #36] @ (80053ec <Uart1ReceivedDataProcessCallback+0x908>)
  11372. 80053c8: 681b ldr r3, [r3, #0]
  11373. 80053ca: 4618 mov r0, r3
  11374. 80053cc: f00e fcf2 bl 8013db4 <osMutexRelease>
  11375. respStatus = spOK;
  11376. 80053d0: 2300 movs r3, #0
  11377. 80053d2: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11378. } else {
  11379. respStatus = spInternalError;
  11380. }
  11381. break;
  11382. 80053d6: e019 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11383. respStatus = spInternalError;
  11384. 80053d8: 23fc movs r3, #252 @ 0xfc
  11385. 80053da: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11386. break;
  11387. 80053de: e015 b.n 800540c <Uart1ReceivedDataProcessCallback+0x928>
  11388. __ASM volatile ("cpsid i" : : : "memory");
  11389. 80053e0: b672 cpsid i
  11390. }
  11391. 80053e2: bf00 nop
  11392. case spResetSystem:
  11393. __disable_irq();
  11394. NVIC_SystemReset();
  11395. 80053e4: f7fe ffb0 bl 8004348 <__NVIC_SystemReset>
  11396. 80053e8: 24000424 .word 0x24000424
  11397. 80053ec: 24000838 .word 0x24000838
  11398. 80053f0: 24000844 .word 0x24000844
  11399. 80053f4: 2400083c .word 0x2400083c
  11400. 80053f8: 24000880 .word 0x24000880
  11401. 80053fc: 24000000 .word 0x24000000
  11402. 8005400: 24000018 .word 0x24000018
  11403. break;
  11404. default: respStatus = spUnknownCommand; break;
  11405. 8005404: 23fd movs r3, #253 @ 0xfd
  11406. 8005406: f887 306f strb.w r3, [r7, #111] @ 0x6f
  11407. 800540a: bf00 nop
  11408. }
  11409. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  11410. 800540c: 6cfb ldr r3, [r7, #76] @ 0x4c
  11411. 800540e: 6898 ldr r0, [r3, #8]
  11412. 8005410: 683b ldr r3, [r7, #0]
  11413. 8005412: 8819 ldrh r1, [r3, #0]
  11414. 8005414: 683b ldr r3, [r7, #0]
  11415. 8005416: 789a ldrb r2, [r3, #2]
  11416. 8005418: 4b13 ldr r3, [pc, #76] @ (8005468 <Uart1ReceivedDataProcessCallback+0x984>)
  11417. 800541a: 881b ldrh r3, [r3, #0]
  11418. 800541c: f997 406f ldrsb.w r4, [r7, #111] @ 0x6f
  11419. 8005420: 9301 str r3, [sp, #4]
  11420. 8005422: 4b12 ldr r3, [pc, #72] @ (800546c <Uart1ReceivedDataProcessCallback+0x988>)
  11421. 8005424: 9300 str r3, [sp, #0]
  11422. 8005426: 4623 mov r3, r4
  11423. 8005428: f7fd ff86 bl 8003338 <PrepareRespFrame>
  11424. 800542c: 4603 mov r3, r0
  11425. 800542e: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  11426. if (dataToSend > 0) {
  11427. 8005432: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  11428. 8005436: 2b00 cmp r3, #0
  11429. 8005438: d008 beq.n 800544c <Uart1ReceivedDataProcessCallback+0x968>
  11430. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11431. 800543a: 6cfb ldr r3, [r7, #76] @ 0x4c
  11432. 800543c: 6b18 ldr r0, [r3, #48] @ 0x30
  11433. 800543e: 6cfb ldr r3, [r7, #76] @ 0x4c
  11434. 8005440: 689b ldr r3, [r3, #8]
  11435. 8005442: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  11436. 8005446: 4619 mov r1, r3
  11437. 8005448: f00b fc3c bl 8010cc4 <HAL_UART_Transmit_IT>
  11438. }
  11439. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  11440. 800544c: 6cfb ldr r3, [r7, #76] @ 0x4c
  11441. 800544e: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  11442. 8005452: 4619 mov r1, r3
  11443. 8005454: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  11444. 8005458: 461a mov r2, r3
  11445. 800545a: 4805 ldr r0, [pc, #20] @ (8005470 <Uart1ReceivedDataProcessCallback+0x98c>)
  11446. 800545c: f012 fc4e bl 8017cfc <iprintf>
  11447. }
  11448. 8005460: bf00 nop
  11449. 8005462: 3774 adds r7, #116 @ 0x74
  11450. 8005464: 46bd mov sp, r7
  11451. 8005466: bd90 pop {r4, r7, pc}
  11452. 8005468: 24000cf8 .word 0x24000cf8
  11453. 800546c: 24000c78 .word 0x24000c78
  11454. 8005470: 08018b80 .word 0x08018b80
  11455. 08005474 <Reset_Handler>:
  11456. .section .text.Reset_Handler
  11457. .weak Reset_Handler
  11458. .type Reset_Handler, %function
  11459. Reset_Handler:
  11460. ldr sp, =_estack /* set stack pointer */
  11461. 8005474: f8df d034 ldr.w sp, [pc, #52] @ 80054ac <LoopFillZerobss+0xe>
  11462. /* Call the clock system initialization function.*/
  11463. bl SystemInit
  11464. 8005478: f7fe fede bl 8004238 <SystemInit>
  11465. /* Copy the data segment initializers from flash to SRAM */
  11466. ldr r0, =_sdata
  11467. 800547c: 480c ldr r0, [pc, #48] @ (80054b0 <LoopFillZerobss+0x12>)
  11468. ldr r1, =_edata
  11469. 800547e: 490d ldr r1, [pc, #52] @ (80054b4 <LoopFillZerobss+0x16>)
  11470. ldr r2, =_sidata
  11471. 8005480: 4a0d ldr r2, [pc, #52] @ (80054b8 <LoopFillZerobss+0x1a>)
  11472. movs r3, #0
  11473. 8005482: 2300 movs r3, #0
  11474. b LoopCopyDataInit
  11475. 8005484: e002 b.n 800548c <LoopCopyDataInit>
  11476. 08005486 <CopyDataInit>:
  11477. CopyDataInit:
  11478. ldr r4, [r2, r3]
  11479. 8005486: 58d4 ldr r4, [r2, r3]
  11480. str r4, [r0, r3]
  11481. 8005488: 50c4 str r4, [r0, r3]
  11482. adds r3, r3, #4
  11483. 800548a: 3304 adds r3, #4
  11484. 0800548c <LoopCopyDataInit>:
  11485. LoopCopyDataInit:
  11486. adds r4, r0, r3
  11487. 800548c: 18c4 adds r4, r0, r3
  11488. cmp r4, r1
  11489. 800548e: 428c cmp r4, r1
  11490. bcc CopyDataInit
  11491. 8005490: d3f9 bcc.n 8005486 <CopyDataInit>
  11492. /* Zero fill the bss segment. */
  11493. ldr r2, =_sbss
  11494. 8005492: 4a0a ldr r2, [pc, #40] @ (80054bc <LoopFillZerobss+0x1e>)
  11495. ldr r4, =_ebss
  11496. 8005494: 4c0a ldr r4, [pc, #40] @ (80054c0 <LoopFillZerobss+0x22>)
  11497. movs r3, #0
  11498. 8005496: 2300 movs r3, #0
  11499. b LoopFillZerobss
  11500. 8005498: e001 b.n 800549e <LoopFillZerobss>
  11501. 0800549a <FillZerobss>:
  11502. FillZerobss:
  11503. str r3, [r2]
  11504. 800549a: 6013 str r3, [r2, #0]
  11505. adds r2, r2, #4
  11506. 800549c: 3204 adds r2, #4
  11507. 0800549e <LoopFillZerobss>:
  11508. LoopFillZerobss:
  11509. cmp r2, r4
  11510. 800549e: 42a2 cmp r2, r4
  11511. bcc FillZerobss
  11512. 80054a0: d3fb bcc.n 800549a <FillZerobss>
  11513. /* Call static constructors */
  11514. bl __libc_init_array
  11515. 80054a2: f012 fd2b bl 8017efc <__libc_init_array>
  11516. /* Call the application's entry point.*/
  11517. bl main
  11518. 80054a6: f7fb f937 bl 8000718 <main>
  11519. bx lr
  11520. 80054aa: 4770 bx lr
  11521. ldr sp, =_estack /* set stack pointer */
  11522. 80054ac: 24060000 .word 0x24060000
  11523. ldr r0, =_sdata
  11524. 80054b0: 24000000 .word 0x24000000
  11525. ldr r1, =_edata
  11526. 80054b4: 240000a4 .word 0x240000a4
  11527. ldr r2, =_sidata
  11528. 80054b8: 08018c9c .word 0x08018c9c
  11529. ldr r2, =_sbss
  11530. 80054bc: 240000c0 .word 0x240000c0
  11531. ldr r4, =_ebss
  11532. 80054c0: 24012e34 .word 0x24012e34
  11533. 080054c4 <ADC3_IRQHandler>:
  11534. * @retval None
  11535. */
  11536. .section .text.Default_Handler,"ax",%progbits
  11537. Default_Handler:
  11538. Infinite_Loop:
  11539. b Infinite_Loop
  11540. 80054c4: e7fe b.n 80054c4 <ADC3_IRQHandler>
  11541. ...
  11542. 080054c8 <HAL_Init>:
  11543. * need to ensure that the SysTick time base is always set to 1 millisecond
  11544. * to have correct HAL operation.
  11545. * @retval HAL status
  11546. */
  11547. HAL_StatusTypeDef HAL_Init(void)
  11548. {
  11549. 80054c8: b580 push {r7, lr}
  11550. 80054ca: b082 sub sp, #8
  11551. 80054cc: af00 add r7, sp, #0
  11552. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  11553. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  11554. #endif /* DUAL_CORE && CORE_CM4 */
  11555. /* Set Interrupt Group Priority */
  11556. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  11557. 80054ce: 2003 movs r0, #3
  11558. 80054d0: f001 fee5 bl 800729e <HAL_NVIC_SetPriorityGrouping>
  11559. /* Update the SystemCoreClock global variable */
  11560. #if defined(RCC_D1CFGR_D1CPRE)
  11561. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  11562. 80054d4: f006 fbee bl 800bcb4 <HAL_RCC_GetSysClockFreq>
  11563. 80054d8: 4602 mov r2, r0
  11564. 80054da: 4b15 ldr r3, [pc, #84] @ (8005530 <HAL_Init+0x68>)
  11565. 80054dc: 699b ldr r3, [r3, #24]
  11566. 80054de: 0a1b lsrs r3, r3, #8
  11567. 80054e0: f003 030f and.w r3, r3, #15
  11568. 80054e4: 4913 ldr r1, [pc, #76] @ (8005534 <HAL_Init+0x6c>)
  11569. 80054e6: 5ccb ldrb r3, [r1, r3]
  11570. 80054e8: f003 031f and.w r3, r3, #31
  11571. 80054ec: fa22 f303 lsr.w r3, r2, r3
  11572. 80054f0: 607b str r3, [r7, #4]
  11573. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  11574. #endif
  11575. /* Update the SystemD2Clock global variable */
  11576. #if defined(RCC_D1CFGR_HPRE)
  11577. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  11578. 80054f2: 4b0f ldr r3, [pc, #60] @ (8005530 <HAL_Init+0x68>)
  11579. 80054f4: 699b ldr r3, [r3, #24]
  11580. 80054f6: f003 030f and.w r3, r3, #15
  11581. 80054fa: 4a0e ldr r2, [pc, #56] @ (8005534 <HAL_Init+0x6c>)
  11582. 80054fc: 5cd3 ldrb r3, [r2, r3]
  11583. 80054fe: f003 031f and.w r3, r3, #31
  11584. 8005502: 687a ldr r2, [r7, #4]
  11585. 8005504: fa22 f303 lsr.w r3, r2, r3
  11586. 8005508: 4a0b ldr r2, [pc, #44] @ (8005538 <HAL_Init+0x70>)
  11587. 800550a: 6013 str r3, [r2, #0]
  11588. #endif
  11589. #if defined(DUAL_CORE) && defined(CORE_CM4)
  11590. SystemCoreClock = SystemD2Clock;
  11591. #else
  11592. SystemCoreClock = common_system_clock;
  11593. 800550c: 4a0b ldr r2, [pc, #44] @ (800553c <HAL_Init+0x74>)
  11594. 800550e: 687b ldr r3, [r7, #4]
  11595. 8005510: 6013 str r3, [r2, #0]
  11596. #endif /* DUAL_CORE && CORE_CM4 */
  11597. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  11598. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  11599. 8005512: 2005 movs r0, #5
  11600. 8005514: f7fe fce4 bl 8003ee0 <HAL_InitTick>
  11601. 8005518: 4603 mov r3, r0
  11602. 800551a: 2b00 cmp r3, #0
  11603. 800551c: d001 beq.n 8005522 <HAL_Init+0x5a>
  11604. {
  11605. return HAL_ERROR;
  11606. 800551e: 2301 movs r3, #1
  11607. 8005520: e002 b.n 8005528 <HAL_Init+0x60>
  11608. }
  11609. /* Init the low level hardware */
  11610. HAL_MspInit();
  11611. 8005522: f7fd ffa7 bl 8003474 <HAL_MspInit>
  11612. /* Return function status */
  11613. return HAL_OK;
  11614. 8005526: 2300 movs r3, #0
  11615. }
  11616. 8005528: 4618 mov r0, r3
  11617. 800552a: 3708 adds r7, #8
  11618. 800552c: 46bd mov sp, r7
  11619. 800552e: bd80 pop {r7, pc}
  11620. 8005530: 58024400 .word 0x58024400
  11621. 8005534: 08018c18 .word 0x08018c18
  11622. 8005538: 24000038 .word 0x24000038
  11623. 800553c: 24000034 .word 0x24000034
  11624. 08005540 <HAL_IncTick>:
  11625. * @note This function is declared as __weak to be overwritten in case of other
  11626. * implementations in user file.
  11627. * @retval None
  11628. */
  11629. __weak void HAL_IncTick(void)
  11630. {
  11631. 8005540: b480 push {r7}
  11632. 8005542: af00 add r7, sp, #0
  11633. uwTick += (uint32_t)uwTickFreq;
  11634. 8005544: 4b06 ldr r3, [pc, #24] @ (8005560 <HAL_IncTick+0x20>)
  11635. 8005546: 781b ldrb r3, [r3, #0]
  11636. 8005548: 461a mov r2, r3
  11637. 800554a: 4b06 ldr r3, [pc, #24] @ (8005564 <HAL_IncTick+0x24>)
  11638. 800554c: 681b ldr r3, [r3, #0]
  11639. 800554e: 4413 add r3, r2
  11640. 8005550: 4a04 ldr r2, [pc, #16] @ (8005564 <HAL_IncTick+0x24>)
  11641. 8005552: 6013 str r3, [r2, #0]
  11642. }
  11643. 8005554: bf00 nop
  11644. 8005556: 46bd mov sp, r7
  11645. 8005558: f85d 7b04 ldr.w r7, [sp], #4
  11646. 800555c: 4770 bx lr
  11647. 800555e: bf00 nop
  11648. 8005560: 24000040 .word 0x24000040
  11649. 8005564: 24000cfc .word 0x24000cfc
  11650. 08005568 <HAL_GetTick>:
  11651. * @note This function is declared as __weak to be overwritten in case of other
  11652. * implementations in user file.
  11653. * @retval tick value
  11654. */
  11655. __weak uint32_t HAL_GetTick(void)
  11656. {
  11657. 8005568: b480 push {r7}
  11658. 800556a: af00 add r7, sp, #0
  11659. return uwTick;
  11660. 800556c: 4b03 ldr r3, [pc, #12] @ (800557c <HAL_GetTick+0x14>)
  11661. 800556e: 681b ldr r3, [r3, #0]
  11662. }
  11663. 8005570: 4618 mov r0, r3
  11664. 8005572: 46bd mov sp, r7
  11665. 8005574: f85d 7b04 ldr.w r7, [sp], #4
  11666. 8005578: 4770 bx lr
  11667. 800557a: bf00 nop
  11668. 800557c: 24000cfc .word 0x24000cfc
  11669. 08005580 <HAL_GetREVID>:
  11670. /**
  11671. * @brief Returns the device revision identifier.
  11672. * @retval Device revision identifier
  11673. */
  11674. uint32_t HAL_GetREVID(void)
  11675. {
  11676. 8005580: b480 push {r7}
  11677. 8005582: af00 add r7, sp, #0
  11678. return((DBGMCU->IDCODE) >> 16);
  11679. 8005584: 4b03 ldr r3, [pc, #12] @ (8005594 <HAL_GetREVID+0x14>)
  11680. 8005586: 681b ldr r3, [r3, #0]
  11681. 8005588: 0c1b lsrs r3, r3, #16
  11682. }
  11683. 800558a: 4618 mov r0, r3
  11684. 800558c: 46bd mov sp, r7
  11685. 800558e: f85d 7b04 ldr.w r7, [sp], #4
  11686. 8005592: 4770 bx lr
  11687. 8005594: 5c001000 .word 0x5c001000
  11688. 08005598 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  11689. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  11690. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  11691. * @retval None
  11692. */
  11693. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  11694. {
  11695. 8005598: b480 push {r7}
  11696. 800559a: b083 sub sp, #12
  11697. 800559c: af00 add r7, sp, #0
  11698. 800559e: 6078 str r0, [r7, #4]
  11699. /* Check the parameters */
  11700. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  11701. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  11702. 80055a0: 4b06 ldr r3, [pc, #24] @ (80055bc <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  11703. 80055a2: 681b ldr r3, [r3, #0]
  11704. 80055a4: f023 0202 bic.w r2, r3, #2
  11705. 80055a8: 4904 ldr r1, [pc, #16] @ (80055bc <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  11706. 80055aa: 687b ldr r3, [r7, #4]
  11707. 80055ac: 4313 orrs r3, r2
  11708. 80055ae: 600b str r3, [r1, #0]
  11709. }
  11710. 80055b0: bf00 nop
  11711. 80055b2: 370c adds r7, #12
  11712. 80055b4: 46bd mov sp, r7
  11713. 80055b6: f85d 7b04 ldr.w r7, [sp], #4
  11714. 80055ba: 4770 bx lr
  11715. 80055bc: 58003c00 .word 0x58003c00
  11716. 080055c0 <HAL_SYSCFG_DisableVREFBUF>:
  11717. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  11718. *
  11719. * @retval None
  11720. */
  11721. void HAL_SYSCFG_DisableVREFBUF(void)
  11722. {
  11723. 80055c0: b480 push {r7}
  11724. 80055c2: af00 add r7, sp, #0
  11725. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  11726. 80055c4: 4b05 ldr r3, [pc, #20] @ (80055dc <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  11727. 80055c6: 681b ldr r3, [r3, #0]
  11728. 80055c8: 4a04 ldr r2, [pc, #16] @ (80055dc <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  11729. 80055ca: f023 0301 bic.w r3, r3, #1
  11730. 80055ce: 6013 str r3, [r2, #0]
  11731. }
  11732. 80055d0: bf00 nop
  11733. 80055d2: 46bd mov sp, r7
  11734. 80055d4: f85d 7b04 ldr.w r7, [sp], #4
  11735. 80055d8: 4770 bx lr
  11736. 80055da: bf00 nop
  11737. 80055dc: 58003c00 .word 0x58003c00
  11738. 080055e0 <HAL_SYSCFG_AnalogSwitchConfig>:
  11739. * @arg SYSCFG_SWITCH_PC3_CLOSE
  11740. * @retval None
  11741. */
  11742. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  11743. {
  11744. 80055e0: b480 push {r7}
  11745. 80055e2: b083 sub sp, #12
  11746. 80055e4: af00 add r7, sp, #0
  11747. 80055e6: 6078 str r0, [r7, #4]
  11748. 80055e8: 6039 str r1, [r7, #0]
  11749. /* Check the parameter */
  11750. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  11751. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  11752. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  11753. 80055ea: 4b07 ldr r3, [pc, #28] @ (8005608 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  11754. 80055ec: 685a ldr r2, [r3, #4]
  11755. 80055ee: 687b ldr r3, [r7, #4]
  11756. 80055f0: 43db mvns r3, r3
  11757. 80055f2: 401a ands r2, r3
  11758. 80055f4: 4904 ldr r1, [pc, #16] @ (8005608 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  11759. 80055f6: 683b ldr r3, [r7, #0]
  11760. 80055f8: 4313 orrs r3, r2
  11761. 80055fa: 604b str r3, [r1, #4]
  11762. }
  11763. 80055fc: bf00 nop
  11764. 80055fe: 370c adds r7, #12
  11765. 8005600: 46bd mov sp, r7
  11766. 8005602: f85d 7b04 ldr.w r7, [sp], #4
  11767. 8005606: 4770 bx lr
  11768. 8005608: 58000400 .word 0x58000400
  11769. 0800560c <LL_ADC_SetCommonClock>:
  11770. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  11771. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  11772. * @retval None
  11773. */
  11774. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  11775. {
  11776. 800560c: b480 push {r7}
  11777. 800560e: b083 sub sp, #12
  11778. 8005610: af00 add r7, sp, #0
  11779. 8005612: 6078 str r0, [r7, #4]
  11780. 8005614: 6039 str r1, [r7, #0]
  11781. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  11782. 8005616: 687b ldr r3, [r7, #4]
  11783. 8005618: 689b ldr r3, [r3, #8]
  11784. 800561a: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  11785. 800561e: 683b ldr r3, [r7, #0]
  11786. 8005620: 431a orrs r2, r3
  11787. 8005622: 687b ldr r3, [r7, #4]
  11788. 8005624: 609a str r2, [r3, #8]
  11789. }
  11790. 8005626: bf00 nop
  11791. 8005628: 370c adds r7, #12
  11792. 800562a: 46bd mov sp, r7
  11793. 800562c: f85d 7b04 ldr.w r7, [sp], #4
  11794. 8005630: 4770 bx lr
  11795. 08005632 <LL_ADC_SetCommonPathInternalCh>:
  11796. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  11797. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  11798. * @retval None
  11799. */
  11800. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  11801. {
  11802. 8005632: b480 push {r7}
  11803. 8005634: b083 sub sp, #12
  11804. 8005636: af00 add r7, sp, #0
  11805. 8005638: 6078 str r0, [r7, #4]
  11806. 800563a: 6039 str r1, [r7, #0]
  11807. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  11808. 800563c: 687b ldr r3, [r7, #4]
  11809. 800563e: 689b ldr r3, [r3, #8]
  11810. 8005640: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  11811. 8005644: 683b ldr r3, [r7, #0]
  11812. 8005646: 431a orrs r2, r3
  11813. 8005648: 687b ldr r3, [r7, #4]
  11814. 800564a: 609a str r2, [r3, #8]
  11815. }
  11816. 800564c: bf00 nop
  11817. 800564e: 370c adds r7, #12
  11818. 8005650: 46bd mov sp, r7
  11819. 8005652: f85d 7b04 ldr.w r7, [sp], #4
  11820. 8005656: 4770 bx lr
  11821. 08005658 <LL_ADC_GetCommonPathInternalCh>:
  11822. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  11823. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  11824. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  11825. */
  11826. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  11827. {
  11828. 8005658: b480 push {r7}
  11829. 800565a: b083 sub sp, #12
  11830. 800565c: af00 add r7, sp, #0
  11831. 800565e: 6078 str r0, [r7, #4]
  11832. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  11833. 8005660: 687b ldr r3, [r7, #4]
  11834. 8005662: 689b ldr r3, [r3, #8]
  11835. 8005664: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  11836. }
  11837. 8005668: 4618 mov r0, r3
  11838. 800566a: 370c adds r7, #12
  11839. 800566c: 46bd mov sp, r7
  11840. 800566e: f85d 7b04 ldr.w r7, [sp], #4
  11841. 8005672: 4770 bx lr
  11842. 08005674 <LL_ADC_SetOffset>:
  11843. * Other channels are slow channels (conversion rate: refer to reference manual).
  11844. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  11845. * @retval None
  11846. */
  11847. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  11848. {
  11849. 8005674: b480 push {r7}
  11850. 8005676: b087 sub sp, #28
  11851. 8005678: af00 add r7, sp, #0
  11852. 800567a: 60f8 str r0, [r7, #12]
  11853. 800567c: 60b9 str r1, [r7, #8]
  11854. 800567e: 607a str r2, [r7, #4]
  11855. 8005680: 603b str r3, [r7, #0]
  11856. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  11857. 8005682: 68fb ldr r3, [r7, #12]
  11858. 8005684: 3360 adds r3, #96 @ 0x60
  11859. 8005686: 461a mov r2, r3
  11860. 8005688: 68bb ldr r3, [r7, #8]
  11861. 800568a: 009b lsls r3, r3, #2
  11862. 800568c: 4413 add r3, r2
  11863. 800568e: 617b str r3, [r7, #20]
  11864. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  11865. }
  11866. else
  11867. #endif /* ADC_VER_V5_V90 */
  11868. {
  11869. MODIFY_REG(*preg,
  11870. 8005690: 697b ldr r3, [r7, #20]
  11871. 8005692: 681b ldr r3, [r3, #0]
  11872. 8005694: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  11873. 8005698: 687b ldr r3, [r7, #4]
  11874. 800569a: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  11875. 800569e: 683b ldr r3, [r7, #0]
  11876. 80056a0: 430b orrs r3, r1
  11877. 80056a2: 431a orrs r2, r3
  11878. 80056a4: 697b ldr r3, [r7, #20]
  11879. 80056a6: 601a str r2, [r3, #0]
  11880. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  11881. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  11882. }
  11883. }
  11884. 80056a8: bf00 nop
  11885. 80056aa: 371c adds r7, #28
  11886. 80056ac: 46bd mov sp, r7
  11887. 80056ae: f85d 7b04 ldr.w r7, [sp], #4
  11888. 80056b2: 4770 bx lr
  11889. 080056b4 <LL_ADC_SetDataRightShift>:
  11890. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  11891. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  11892. * @retval Returned None
  11893. */
  11894. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  11895. {
  11896. 80056b4: b480 push {r7}
  11897. 80056b6: b085 sub sp, #20
  11898. 80056b8: af00 add r7, sp, #0
  11899. 80056ba: 60f8 str r0, [r7, #12]
  11900. 80056bc: 60b9 str r1, [r7, #8]
  11901. 80056be: 607a str r2, [r7, #4]
  11902. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  11903. 80056c0: 68fb ldr r3, [r7, #12]
  11904. 80056c2: 691b ldr r3, [r3, #16]
  11905. 80056c4: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  11906. 80056c8: 68bb ldr r3, [r7, #8]
  11907. 80056ca: f003 031f and.w r3, r3, #31
  11908. 80056ce: 6879 ldr r1, [r7, #4]
  11909. 80056d0: fa01 f303 lsl.w r3, r1, r3
  11910. 80056d4: 431a orrs r2, r3
  11911. 80056d6: 68fb ldr r3, [r7, #12]
  11912. 80056d8: 611a str r2, [r3, #16]
  11913. }
  11914. 80056da: bf00 nop
  11915. 80056dc: 3714 adds r7, #20
  11916. 80056de: 46bd mov sp, r7
  11917. 80056e0: f85d 7b04 ldr.w r7, [sp], #4
  11918. 80056e4: 4770 bx lr
  11919. 080056e6 <LL_ADC_SetOffsetSignedSaturation>:
  11920. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  11921. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  11922. * @retval Returned None
  11923. */
  11924. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  11925. {
  11926. 80056e6: b480 push {r7}
  11927. 80056e8: b087 sub sp, #28
  11928. 80056ea: af00 add r7, sp, #0
  11929. 80056ec: 60f8 str r0, [r7, #12]
  11930. 80056ee: 60b9 str r1, [r7, #8]
  11931. 80056f0: 607a str r2, [r7, #4]
  11932. /* Function not available on this instance */
  11933. }
  11934. else
  11935. #endif /* ADC_VER_V5_V90 */
  11936. {
  11937. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  11938. 80056f2: 68fb ldr r3, [r7, #12]
  11939. 80056f4: 3360 adds r3, #96 @ 0x60
  11940. 80056f6: 461a mov r2, r3
  11941. 80056f8: 68bb ldr r3, [r7, #8]
  11942. 80056fa: 009b lsls r3, r3, #2
  11943. 80056fc: 4413 add r3, r2
  11944. 80056fe: 617b str r3, [r7, #20]
  11945. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  11946. 8005700: 697b ldr r3, [r7, #20]
  11947. 8005702: 681b ldr r3, [r3, #0]
  11948. 8005704: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  11949. 8005708: 687b ldr r3, [r7, #4]
  11950. 800570a: 431a orrs r2, r3
  11951. 800570c: 697b ldr r3, [r7, #20]
  11952. 800570e: 601a str r2, [r3, #0]
  11953. }
  11954. }
  11955. 8005710: bf00 nop
  11956. 8005712: 371c adds r7, #28
  11957. 8005714: 46bd mov sp, r7
  11958. 8005716: f85d 7b04 ldr.w r7, [sp], #4
  11959. 800571a: 4770 bx lr
  11960. 0800571c <LL_ADC_REG_IsTriggerSourceSWStart>:
  11961. * @param ADCx ADC instance
  11962. * @retval Value "0" if trigger source external trigger
  11963. * Value "1" if trigger source SW start.
  11964. */
  11965. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  11966. {
  11967. 800571c: b480 push {r7}
  11968. 800571e: b083 sub sp, #12
  11969. 8005720: af00 add r7, sp, #0
  11970. 8005722: 6078 str r0, [r7, #4]
  11971. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  11972. 8005724: 687b ldr r3, [r7, #4]
  11973. 8005726: 68db ldr r3, [r3, #12]
  11974. 8005728: f403 6340 and.w r3, r3, #3072 @ 0xc00
  11975. 800572c: 2b00 cmp r3, #0
  11976. 800572e: d101 bne.n 8005734 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  11977. 8005730: 2301 movs r3, #1
  11978. 8005732: e000 b.n 8005736 <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  11979. 8005734: 2300 movs r3, #0
  11980. }
  11981. 8005736: 4618 mov r0, r3
  11982. 8005738: 370c adds r7, #12
  11983. 800573a: 46bd mov sp, r7
  11984. 800573c: f85d 7b04 ldr.w r7, [sp], #4
  11985. 8005740: 4770 bx lr
  11986. 08005742 <LL_ADC_REG_SetSequencerRanks>:
  11987. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  11988. * Other channels are slow channels (conversion rate: refer to reference manual).
  11989. * @retval None
  11990. */
  11991. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  11992. {
  11993. 8005742: b480 push {r7}
  11994. 8005744: b087 sub sp, #28
  11995. 8005746: af00 add r7, sp, #0
  11996. 8005748: 60f8 str r0, [r7, #12]
  11997. 800574a: 60b9 str r1, [r7, #8]
  11998. 800574c: 607a str r2, [r7, #4]
  11999. /* Set bits with content of parameter "Channel" with bits position */
  12000. /* in register and register position depending on parameter "Rank". */
  12001. /* Parameters "Rank" and "Channel" are used with masks because containing */
  12002. /* other bits reserved for other purpose. */
  12003. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  12004. 800574e: 68fb ldr r3, [r7, #12]
  12005. 8005750: 3330 adds r3, #48 @ 0x30
  12006. 8005752: 461a mov r2, r3
  12007. 8005754: 68bb ldr r3, [r7, #8]
  12008. 8005756: 0a1b lsrs r3, r3, #8
  12009. 8005758: 009b lsls r3, r3, #2
  12010. 800575a: f003 030c and.w r3, r3, #12
  12011. 800575e: 4413 add r3, r2
  12012. 8005760: 617b str r3, [r7, #20]
  12013. MODIFY_REG(*preg,
  12014. 8005762: 697b ldr r3, [r7, #20]
  12015. 8005764: 681a ldr r2, [r3, #0]
  12016. 8005766: 68bb ldr r3, [r7, #8]
  12017. 8005768: f003 031f and.w r3, r3, #31
  12018. 800576c: 211f movs r1, #31
  12019. 800576e: fa01 f303 lsl.w r3, r1, r3
  12020. 8005772: 43db mvns r3, r3
  12021. 8005774: 401a ands r2, r3
  12022. 8005776: 687b ldr r3, [r7, #4]
  12023. 8005778: 0e9b lsrs r3, r3, #26
  12024. 800577a: f003 011f and.w r1, r3, #31
  12025. 800577e: 68bb ldr r3, [r7, #8]
  12026. 8005780: f003 031f and.w r3, r3, #31
  12027. 8005784: fa01 f303 lsl.w r3, r1, r3
  12028. 8005788: 431a orrs r2, r3
  12029. 800578a: 697b ldr r3, [r7, #20]
  12030. 800578c: 601a str r2, [r3, #0]
  12031. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  12032. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  12033. }
  12034. 800578e: bf00 nop
  12035. 8005790: 371c adds r7, #28
  12036. 8005792: 46bd mov sp, r7
  12037. 8005794: f85d 7b04 ldr.w r7, [sp], #4
  12038. 8005798: 4770 bx lr
  12039. 0800579a <LL_ADC_REG_SetDataTransferMode>:
  12040. * @param ADCx ADC instance
  12041. * @param DataTransferMode Select Data Management configuration
  12042. * @retval None
  12043. */
  12044. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  12045. {
  12046. 800579a: b480 push {r7}
  12047. 800579c: b083 sub sp, #12
  12048. 800579e: af00 add r7, sp, #0
  12049. 80057a0: 6078 str r0, [r7, #4]
  12050. 80057a2: 6039 str r1, [r7, #0]
  12051. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  12052. 80057a4: 687b ldr r3, [r7, #4]
  12053. 80057a6: 68db ldr r3, [r3, #12]
  12054. 80057a8: f023 0203 bic.w r2, r3, #3
  12055. 80057ac: 683b ldr r3, [r7, #0]
  12056. 80057ae: 431a orrs r2, r3
  12057. 80057b0: 687b ldr r3, [r7, #4]
  12058. 80057b2: 60da str r2, [r3, #12]
  12059. }
  12060. 80057b4: bf00 nop
  12061. 80057b6: 370c adds r7, #12
  12062. 80057b8: 46bd mov sp, r7
  12063. 80057ba: f85d 7b04 ldr.w r7, [sp], #4
  12064. 80057be: 4770 bx lr
  12065. 080057c0 <LL_ADC_SetChannelSamplingTime>:
  12066. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  12067. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  12068. * @retval None
  12069. */
  12070. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  12071. {
  12072. 80057c0: b480 push {r7}
  12073. 80057c2: b087 sub sp, #28
  12074. 80057c4: af00 add r7, sp, #0
  12075. 80057c6: 60f8 str r0, [r7, #12]
  12076. 80057c8: 60b9 str r1, [r7, #8]
  12077. 80057ca: 607a str r2, [r7, #4]
  12078. /* Set bits with content of parameter "SamplingTime" with bits position */
  12079. /* in register and register position depending on parameter "Channel". */
  12080. /* Parameter "Channel" is used with masks because containing */
  12081. /* other bits reserved for other purpose. */
  12082. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  12083. 80057cc: 68fb ldr r3, [r7, #12]
  12084. 80057ce: 3314 adds r3, #20
  12085. 80057d0: 461a mov r2, r3
  12086. 80057d2: 68bb ldr r3, [r7, #8]
  12087. 80057d4: 0e5b lsrs r3, r3, #25
  12088. 80057d6: 009b lsls r3, r3, #2
  12089. 80057d8: f003 0304 and.w r3, r3, #4
  12090. 80057dc: 4413 add r3, r2
  12091. 80057de: 617b str r3, [r7, #20]
  12092. MODIFY_REG(*preg,
  12093. 80057e0: 697b ldr r3, [r7, #20]
  12094. 80057e2: 681a ldr r2, [r3, #0]
  12095. 80057e4: 68bb ldr r3, [r7, #8]
  12096. 80057e6: 0d1b lsrs r3, r3, #20
  12097. 80057e8: f003 031f and.w r3, r3, #31
  12098. 80057ec: 2107 movs r1, #7
  12099. 80057ee: fa01 f303 lsl.w r3, r1, r3
  12100. 80057f2: 43db mvns r3, r3
  12101. 80057f4: 401a ands r2, r3
  12102. 80057f6: 68bb ldr r3, [r7, #8]
  12103. 80057f8: 0d1b lsrs r3, r3, #20
  12104. 80057fa: f003 031f and.w r3, r3, #31
  12105. 80057fe: 6879 ldr r1, [r7, #4]
  12106. 8005800: fa01 f303 lsl.w r3, r1, r3
  12107. 8005804: 431a orrs r2, r3
  12108. 8005806: 697b ldr r3, [r7, #20]
  12109. 8005808: 601a str r2, [r3, #0]
  12110. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  12111. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  12112. }
  12113. 800580a: bf00 nop
  12114. 800580c: 371c adds r7, #28
  12115. 800580e: 46bd mov sp, r7
  12116. 8005810: f85d 7b04 ldr.w r7, [sp], #4
  12117. 8005814: 4770 bx lr
  12118. ...
  12119. 08005818 <LL_ADC_SetChannelSingleDiff>:
  12120. * @arg @ref LL_ADC_SINGLE_ENDED
  12121. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  12122. * @retval None
  12123. */
  12124. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  12125. {
  12126. 8005818: b480 push {r7}
  12127. 800581a: b085 sub sp, #20
  12128. 800581c: af00 add r7, sp, #0
  12129. 800581e: 60f8 str r0, [r7, #12]
  12130. 8005820: 60b9 str r1, [r7, #8]
  12131. 8005822: 607a str r2, [r7, #4]
  12132. }
  12133. #else /* ADC_VER_V5_V90 */
  12134. /* Bits of channels in single or differential mode are set only for */
  12135. /* differential mode (for single mode, mask of bits allowed to be set is */
  12136. /* shifted out of range of bits of channels in single or differential mode. */
  12137. MODIFY_REG(ADCx->DIFSEL,
  12138. 8005824: 68fb ldr r3, [r7, #12]
  12139. 8005826: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  12140. 800582a: 68bb ldr r3, [r7, #8]
  12141. 800582c: f3c3 0313 ubfx r3, r3, #0, #20
  12142. 8005830: 43db mvns r3, r3
  12143. 8005832: 401a ands r2, r3
  12144. 8005834: 687b ldr r3, [r7, #4]
  12145. 8005836: f003 0318 and.w r3, r3, #24
  12146. 800583a: 4908 ldr r1, [pc, #32] @ (800585c <LL_ADC_SetChannelSingleDiff+0x44>)
  12147. 800583c: 40d9 lsrs r1, r3
  12148. 800583e: 68bb ldr r3, [r7, #8]
  12149. 8005840: 400b ands r3, r1
  12150. 8005842: f3c3 0313 ubfx r3, r3, #0, #20
  12151. 8005846: 431a orrs r2, r3
  12152. 8005848: 68fb ldr r3, [r7, #12]
  12153. 800584a: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  12154. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  12155. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  12156. #endif /* ADC_VER_V5_V90 */
  12157. }
  12158. 800584e: bf00 nop
  12159. 8005850: 3714 adds r7, #20
  12160. 8005852: 46bd mov sp, r7
  12161. 8005854: f85d 7b04 ldr.w r7, [sp], #4
  12162. 8005858: 4770 bx lr
  12163. 800585a: bf00 nop
  12164. 800585c: 000fffff .word 0x000fffff
  12165. 08005860 <LL_ADC_GetMultimode>:
  12166. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  12167. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  12168. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  12169. */
  12170. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  12171. {
  12172. 8005860: b480 push {r7}
  12173. 8005862: b083 sub sp, #12
  12174. 8005864: af00 add r7, sp, #0
  12175. 8005866: 6078 str r0, [r7, #4]
  12176. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  12177. 8005868: 687b ldr r3, [r7, #4]
  12178. 800586a: 689b ldr r3, [r3, #8]
  12179. 800586c: f003 031f and.w r3, r3, #31
  12180. }
  12181. 8005870: 4618 mov r0, r3
  12182. 8005872: 370c adds r7, #12
  12183. 8005874: 46bd mov sp, r7
  12184. 8005876: f85d 7b04 ldr.w r7, [sp], #4
  12185. 800587a: 4770 bx lr
  12186. 0800587c <LL_ADC_DisableDeepPowerDown>:
  12187. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  12188. * @param ADCx ADC instance
  12189. * @retval None
  12190. */
  12191. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  12192. {
  12193. 800587c: b480 push {r7}
  12194. 800587e: b083 sub sp, #12
  12195. 8005880: af00 add r7, sp, #0
  12196. 8005882: 6078 str r0, [r7, #4]
  12197. /* Note: Write register with some additional bits forced to state reset */
  12198. /* instead of modifying only the selected bit for this function, */
  12199. /* to not interfere with bits with HW property "rs". */
  12200. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  12201. 8005884: 687b ldr r3, [r7, #4]
  12202. 8005886: 689a ldr r2, [r3, #8]
  12203. 8005888: 4b04 ldr r3, [pc, #16] @ (800589c <LL_ADC_DisableDeepPowerDown+0x20>)
  12204. 800588a: 4013 ands r3, r2
  12205. 800588c: 687a ldr r2, [r7, #4]
  12206. 800588e: 6093 str r3, [r2, #8]
  12207. }
  12208. 8005890: bf00 nop
  12209. 8005892: 370c adds r7, #12
  12210. 8005894: 46bd mov sp, r7
  12211. 8005896: f85d 7b04 ldr.w r7, [sp], #4
  12212. 800589a: 4770 bx lr
  12213. 800589c: 5fffffc0 .word 0x5fffffc0
  12214. 080058a0 <LL_ADC_IsDeepPowerDownEnabled>:
  12215. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  12216. * @param ADCx ADC instance
  12217. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  12218. */
  12219. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  12220. {
  12221. 80058a0: b480 push {r7}
  12222. 80058a2: b083 sub sp, #12
  12223. 80058a4: af00 add r7, sp, #0
  12224. 80058a6: 6078 str r0, [r7, #4]
  12225. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  12226. 80058a8: 687b ldr r3, [r7, #4]
  12227. 80058aa: 689b ldr r3, [r3, #8]
  12228. 80058ac: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  12229. 80058b0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  12230. 80058b4: d101 bne.n 80058ba <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  12231. 80058b6: 2301 movs r3, #1
  12232. 80058b8: e000 b.n 80058bc <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  12233. 80058ba: 2300 movs r3, #0
  12234. }
  12235. 80058bc: 4618 mov r0, r3
  12236. 80058be: 370c adds r7, #12
  12237. 80058c0: 46bd mov sp, r7
  12238. 80058c2: f85d 7b04 ldr.w r7, [sp], #4
  12239. 80058c6: 4770 bx lr
  12240. 080058c8 <LL_ADC_EnableInternalRegulator>:
  12241. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  12242. * @param ADCx ADC instance
  12243. * @retval None
  12244. */
  12245. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  12246. {
  12247. 80058c8: b480 push {r7}
  12248. 80058ca: b083 sub sp, #12
  12249. 80058cc: af00 add r7, sp, #0
  12250. 80058ce: 6078 str r0, [r7, #4]
  12251. /* Note: Write register with some additional bits forced to state reset */
  12252. /* instead of modifying only the selected bit for this function, */
  12253. /* to not interfere with bits with HW property "rs". */
  12254. MODIFY_REG(ADCx->CR,
  12255. 80058d0: 687b ldr r3, [r7, #4]
  12256. 80058d2: 689a ldr r2, [r3, #8]
  12257. 80058d4: 4b05 ldr r3, [pc, #20] @ (80058ec <LL_ADC_EnableInternalRegulator+0x24>)
  12258. 80058d6: 4013 ands r3, r2
  12259. 80058d8: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  12260. 80058dc: 687b ldr r3, [r7, #4]
  12261. 80058de: 609a str r2, [r3, #8]
  12262. ADC_CR_BITS_PROPERTY_RS,
  12263. ADC_CR_ADVREGEN);
  12264. }
  12265. 80058e0: bf00 nop
  12266. 80058e2: 370c adds r7, #12
  12267. 80058e4: 46bd mov sp, r7
  12268. 80058e6: f85d 7b04 ldr.w r7, [sp], #4
  12269. 80058ea: 4770 bx lr
  12270. 80058ec: 6fffffc0 .word 0x6fffffc0
  12271. 080058f0 <LL_ADC_IsInternalRegulatorEnabled>:
  12272. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  12273. * @param ADCx ADC instance
  12274. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  12275. */
  12276. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  12277. {
  12278. 80058f0: b480 push {r7}
  12279. 80058f2: b083 sub sp, #12
  12280. 80058f4: af00 add r7, sp, #0
  12281. 80058f6: 6078 str r0, [r7, #4]
  12282. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  12283. 80058f8: 687b ldr r3, [r7, #4]
  12284. 80058fa: 689b ldr r3, [r3, #8]
  12285. 80058fc: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  12286. 8005900: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  12287. 8005904: d101 bne.n 800590a <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  12288. 8005906: 2301 movs r3, #1
  12289. 8005908: e000 b.n 800590c <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  12290. 800590a: 2300 movs r3, #0
  12291. }
  12292. 800590c: 4618 mov r0, r3
  12293. 800590e: 370c adds r7, #12
  12294. 8005910: 46bd mov sp, r7
  12295. 8005912: f85d 7b04 ldr.w r7, [sp], #4
  12296. 8005916: 4770 bx lr
  12297. 08005918 <LL_ADC_Enable>:
  12298. * @rmtoll CR ADEN LL_ADC_Enable
  12299. * @param ADCx ADC instance
  12300. * @retval None
  12301. */
  12302. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  12303. {
  12304. 8005918: b480 push {r7}
  12305. 800591a: b083 sub sp, #12
  12306. 800591c: af00 add r7, sp, #0
  12307. 800591e: 6078 str r0, [r7, #4]
  12308. /* Note: Write register with some additional bits forced to state reset */
  12309. /* instead of modifying only the selected bit for this function, */
  12310. /* to not interfere with bits with HW property "rs". */
  12311. MODIFY_REG(ADCx->CR,
  12312. 8005920: 687b ldr r3, [r7, #4]
  12313. 8005922: 689a ldr r2, [r3, #8]
  12314. 8005924: 4b05 ldr r3, [pc, #20] @ (800593c <LL_ADC_Enable+0x24>)
  12315. 8005926: 4013 ands r3, r2
  12316. 8005928: f043 0201 orr.w r2, r3, #1
  12317. 800592c: 687b ldr r3, [r7, #4]
  12318. 800592e: 609a str r2, [r3, #8]
  12319. ADC_CR_BITS_PROPERTY_RS,
  12320. ADC_CR_ADEN);
  12321. }
  12322. 8005930: bf00 nop
  12323. 8005932: 370c adds r7, #12
  12324. 8005934: 46bd mov sp, r7
  12325. 8005936: f85d 7b04 ldr.w r7, [sp], #4
  12326. 800593a: 4770 bx lr
  12327. 800593c: 7fffffc0 .word 0x7fffffc0
  12328. 08005940 <LL_ADC_Disable>:
  12329. * @rmtoll CR ADDIS LL_ADC_Disable
  12330. * @param ADCx ADC instance
  12331. * @retval None
  12332. */
  12333. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  12334. {
  12335. 8005940: b480 push {r7}
  12336. 8005942: b083 sub sp, #12
  12337. 8005944: af00 add r7, sp, #0
  12338. 8005946: 6078 str r0, [r7, #4]
  12339. /* Note: Write register with some additional bits forced to state reset */
  12340. /* instead of modifying only the selected bit for this function, */
  12341. /* to not interfere with bits with HW property "rs". */
  12342. MODIFY_REG(ADCx->CR,
  12343. 8005948: 687b ldr r3, [r7, #4]
  12344. 800594a: 689a ldr r2, [r3, #8]
  12345. 800594c: 4b05 ldr r3, [pc, #20] @ (8005964 <LL_ADC_Disable+0x24>)
  12346. 800594e: 4013 ands r3, r2
  12347. 8005950: f043 0202 orr.w r2, r3, #2
  12348. 8005954: 687b ldr r3, [r7, #4]
  12349. 8005956: 609a str r2, [r3, #8]
  12350. ADC_CR_BITS_PROPERTY_RS,
  12351. ADC_CR_ADDIS);
  12352. }
  12353. 8005958: bf00 nop
  12354. 800595a: 370c adds r7, #12
  12355. 800595c: 46bd mov sp, r7
  12356. 800595e: f85d 7b04 ldr.w r7, [sp], #4
  12357. 8005962: 4770 bx lr
  12358. 8005964: 7fffffc0 .word 0x7fffffc0
  12359. 08005968 <LL_ADC_IsEnabled>:
  12360. * @rmtoll CR ADEN LL_ADC_IsEnabled
  12361. * @param ADCx ADC instance
  12362. * @retval 0: ADC is disabled, 1: ADC is enabled.
  12363. */
  12364. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  12365. {
  12366. 8005968: b480 push {r7}
  12367. 800596a: b083 sub sp, #12
  12368. 800596c: af00 add r7, sp, #0
  12369. 800596e: 6078 str r0, [r7, #4]
  12370. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  12371. 8005970: 687b ldr r3, [r7, #4]
  12372. 8005972: 689b ldr r3, [r3, #8]
  12373. 8005974: f003 0301 and.w r3, r3, #1
  12374. 8005978: 2b01 cmp r3, #1
  12375. 800597a: d101 bne.n 8005980 <LL_ADC_IsEnabled+0x18>
  12376. 800597c: 2301 movs r3, #1
  12377. 800597e: e000 b.n 8005982 <LL_ADC_IsEnabled+0x1a>
  12378. 8005980: 2300 movs r3, #0
  12379. }
  12380. 8005982: 4618 mov r0, r3
  12381. 8005984: 370c adds r7, #12
  12382. 8005986: 46bd mov sp, r7
  12383. 8005988: f85d 7b04 ldr.w r7, [sp], #4
  12384. 800598c: 4770 bx lr
  12385. 0800598e <LL_ADC_IsDisableOngoing>:
  12386. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  12387. * @param ADCx ADC instance
  12388. * @retval 0: no ADC disable command on going.
  12389. */
  12390. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  12391. {
  12392. 800598e: b480 push {r7}
  12393. 8005990: b083 sub sp, #12
  12394. 8005992: af00 add r7, sp, #0
  12395. 8005994: 6078 str r0, [r7, #4]
  12396. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  12397. 8005996: 687b ldr r3, [r7, #4]
  12398. 8005998: 689b ldr r3, [r3, #8]
  12399. 800599a: f003 0302 and.w r3, r3, #2
  12400. 800599e: 2b02 cmp r3, #2
  12401. 80059a0: d101 bne.n 80059a6 <LL_ADC_IsDisableOngoing+0x18>
  12402. 80059a2: 2301 movs r3, #1
  12403. 80059a4: e000 b.n 80059a8 <LL_ADC_IsDisableOngoing+0x1a>
  12404. 80059a6: 2300 movs r3, #0
  12405. }
  12406. 80059a8: 4618 mov r0, r3
  12407. 80059aa: 370c adds r7, #12
  12408. 80059ac: 46bd mov sp, r7
  12409. 80059ae: f85d 7b04 ldr.w r7, [sp], #4
  12410. 80059b2: 4770 bx lr
  12411. 080059b4 <LL_ADC_REG_StartConversion>:
  12412. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  12413. * @param ADCx ADC instance
  12414. * @retval None
  12415. */
  12416. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  12417. {
  12418. 80059b4: b480 push {r7}
  12419. 80059b6: b083 sub sp, #12
  12420. 80059b8: af00 add r7, sp, #0
  12421. 80059ba: 6078 str r0, [r7, #4]
  12422. /* Note: Write register with some additional bits forced to state reset */
  12423. /* instead of modifying only the selected bit for this function, */
  12424. /* to not interfere with bits with HW property "rs". */
  12425. MODIFY_REG(ADCx->CR,
  12426. 80059bc: 687b ldr r3, [r7, #4]
  12427. 80059be: 689a ldr r2, [r3, #8]
  12428. 80059c0: 4b05 ldr r3, [pc, #20] @ (80059d8 <LL_ADC_REG_StartConversion+0x24>)
  12429. 80059c2: 4013 ands r3, r2
  12430. 80059c4: f043 0204 orr.w r2, r3, #4
  12431. 80059c8: 687b ldr r3, [r7, #4]
  12432. 80059ca: 609a str r2, [r3, #8]
  12433. ADC_CR_BITS_PROPERTY_RS,
  12434. ADC_CR_ADSTART);
  12435. }
  12436. 80059cc: bf00 nop
  12437. 80059ce: 370c adds r7, #12
  12438. 80059d0: 46bd mov sp, r7
  12439. 80059d2: f85d 7b04 ldr.w r7, [sp], #4
  12440. 80059d6: 4770 bx lr
  12441. 80059d8: 7fffffc0 .word 0x7fffffc0
  12442. 080059dc <LL_ADC_REG_IsConversionOngoing>:
  12443. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  12444. * @param ADCx ADC instance
  12445. * @retval 0: no conversion is on going on ADC group regular.
  12446. */
  12447. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  12448. {
  12449. 80059dc: b480 push {r7}
  12450. 80059de: b083 sub sp, #12
  12451. 80059e0: af00 add r7, sp, #0
  12452. 80059e2: 6078 str r0, [r7, #4]
  12453. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  12454. 80059e4: 687b ldr r3, [r7, #4]
  12455. 80059e6: 689b ldr r3, [r3, #8]
  12456. 80059e8: f003 0304 and.w r3, r3, #4
  12457. 80059ec: 2b04 cmp r3, #4
  12458. 80059ee: d101 bne.n 80059f4 <LL_ADC_REG_IsConversionOngoing+0x18>
  12459. 80059f0: 2301 movs r3, #1
  12460. 80059f2: e000 b.n 80059f6 <LL_ADC_REG_IsConversionOngoing+0x1a>
  12461. 80059f4: 2300 movs r3, #0
  12462. }
  12463. 80059f6: 4618 mov r0, r3
  12464. 80059f8: 370c adds r7, #12
  12465. 80059fa: 46bd mov sp, r7
  12466. 80059fc: f85d 7b04 ldr.w r7, [sp], #4
  12467. 8005a00: 4770 bx lr
  12468. 08005a02 <LL_ADC_INJ_IsConversionOngoing>:
  12469. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  12470. * @param ADCx ADC instance
  12471. * @retval 0: no conversion is on going on ADC group injected.
  12472. */
  12473. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  12474. {
  12475. 8005a02: b480 push {r7}
  12476. 8005a04: b083 sub sp, #12
  12477. 8005a06: af00 add r7, sp, #0
  12478. 8005a08: 6078 str r0, [r7, #4]
  12479. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  12480. 8005a0a: 687b ldr r3, [r7, #4]
  12481. 8005a0c: 689b ldr r3, [r3, #8]
  12482. 8005a0e: f003 0308 and.w r3, r3, #8
  12483. 8005a12: 2b08 cmp r3, #8
  12484. 8005a14: d101 bne.n 8005a1a <LL_ADC_INJ_IsConversionOngoing+0x18>
  12485. 8005a16: 2301 movs r3, #1
  12486. 8005a18: e000 b.n 8005a1c <LL_ADC_INJ_IsConversionOngoing+0x1a>
  12487. 8005a1a: 2300 movs r3, #0
  12488. }
  12489. 8005a1c: 4618 mov r0, r3
  12490. 8005a1e: 370c adds r7, #12
  12491. 8005a20: 46bd mov sp, r7
  12492. 8005a22: f85d 7b04 ldr.w r7, [sp], #4
  12493. 8005a26: 4770 bx lr
  12494. 08005a28 <HAL_ADC_Init>:
  12495. * without disabling the other ADCs.
  12496. * @param hadc ADC handle
  12497. * @retval HAL status
  12498. */
  12499. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  12500. {
  12501. 8005a28: b590 push {r4, r7, lr}
  12502. 8005a2a: b089 sub sp, #36 @ 0x24
  12503. 8005a2c: af00 add r7, sp, #0
  12504. 8005a2e: 6078 str r0, [r7, #4]
  12505. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  12506. 8005a30: 2300 movs r3, #0
  12507. 8005a32: 77fb strb r3, [r7, #31]
  12508. uint32_t tmpCFGR;
  12509. uint32_t tmp_adc_reg_is_conversion_on_going;
  12510. __IO uint32_t wait_loop_index = 0UL;
  12511. 8005a34: 2300 movs r3, #0
  12512. 8005a36: 60bb str r3, [r7, #8]
  12513. uint32_t tmp_adc_is_conversion_on_going_regular;
  12514. uint32_t tmp_adc_is_conversion_on_going_injected;
  12515. /* Check ADC handle */
  12516. if (hadc == NULL)
  12517. 8005a38: 687b ldr r3, [r7, #4]
  12518. 8005a3a: 2b00 cmp r3, #0
  12519. 8005a3c: d101 bne.n 8005a42 <HAL_ADC_Init+0x1a>
  12520. {
  12521. return HAL_ERROR;
  12522. 8005a3e: 2301 movs r3, #1
  12523. 8005a40: e18f b.n 8005d62 <HAL_ADC_Init+0x33a>
  12524. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  12525. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  12526. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  12527. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  12528. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  12529. 8005a42: 687b ldr r3, [r7, #4]
  12530. 8005a44: 68db ldr r3, [r3, #12]
  12531. 8005a46: 2b00 cmp r3, #0
  12532. /* DISCEN and CONT bits cannot be set at the same time */
  12533. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  12534. /* Actions performed only if ADC is coming from state reset: */
  12535. /* - Initialization of ADC MSP */
  12536. if (hadc->State == HAL_ADC_STATE_RESET)
  12537. 8005a48: 687b ldr r3, [r7, #4]
  12538. 8005a4a: 6d5b ldr r3, [r3, #84] @ 0x54
  12539. 8005a4c: 2b00 cmp r3, #0
  12540. 8005a4e: d109 bne.n 8005a64 <HAL_ADC_Init+0x3c>
  12541. /* Init the low level hardware */
  12542. hadc->MspInitCallback(hadc);
  12543. #else
  12544. /* Init the low level hardware */
  12545. HAL_ADC_MspInit(hadc);
  12546. 8005a50: 6878 ldr r0, [r7, #4]
  12547. 8005a52: f7fd fd6b bl 800352c <HAL_ADC_MspInit>
  12548. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  12549. /* Set ADC error code to none */
  12550. ADC_CLEAR_ERRORCODE(hadc);
  12551. 8005a56: 687b ldr r3, [r7, #4]
  12552. 8005a58: 2200 movs r2, #0
  12553. 8005a5a: 659a str r2, [r3, #88] @ 0x58
  12554. /* Initialize Lock */
  12555. hadc->Lock = HAL_UNLOCKED;
  12556. 8005a5c: 687b ldr r3, [r7, #4]
  12557. 8005a5e: 2200 movs r2, #0
  12558. 8005a60: f883 2050 strb.w r2, [r3, #80] @ 0x50
  12559. }
  12560. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  12561. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  12562. 8005a64: 687b ldr r3, [r7, #4]
  12563. 8005a66: 681b ldr r3, [r3, #0]
  12564. 8005a68: 4618 mov r0, r3
  12565. 8005a6a: f7ff ff19 bl 80058a0 <LL_ADC_IsDeepPowerDownEnabled>
  12566. 8005a6e: 4603 mov r3, r0
  12567. 8005a70: 2b00 cmp r3, #0
  12568. 8005a72: d004 beq.n 8005a7e <HAL_ADC_Init+0x56>
  12569. {
  12570. /* Disable ADC deep power down mode */
  12571. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  12572. 8005a74: 687b ldr r3, [r7, #4]
  12573. 8005a76: 681b ldr r3, [r3, #0]
  12574. 8005a78: 4618 mov r0, r3
  12575. 8005a7a: f7ff feff bl 800587c <LL_ADC_DisableDeepPowerDown>
  12576. /* System was in deep power down mode, calibration must
  12577. be relaunched or a previously saved calibration factor
  12578. re-applied once the ADC voltage regulator is enabled */
  12579. }
  12580. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12581. 8005a7e: 687b ldr r3, [r7, #4]
  12582. 8005a80: 681b ldr r3, [r3, #0]
  12583. 8005a82: 4618 mov r0, r3
  12584. 8005a84: f7ff ff34 bl 80058f0 <LL_ADC_IsInternalRegulatorEnabled>
  12585. 8005a88: 4603 mov r3, r0
  12586. 8005a8a: 2b00 cmp r3, #0
  12587. 8005a8c: d114 bne.n 8005ab8 <HAL_ADC_Init+0x90>
  12588. {
  12589. /* Enable ADC internal voltage regulator */
  12590. LL_ADC_EnableInternalRegulator(hadc->Instance);
  12591. 8005a8e: 687b ldr r3, [r7, #4]
  12592. 8005a90: 681b ldr r3, [r3, #0]
  12593. 8005a92: 4618 mov r0, r3
  12594. 8005a94: f7ff ff18 bl 80058c8 <LL_ADC_EnableInternalRegulator>
  12595. /* Note: Variable divided by 2 to compensate partially */
  12596. /* CPU processing cycles, scaling in us split to not */
  12597. /* exceed 32 bits register capacity and handle low frequency. */
  12598. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  12599. 8005a98: 4b87 ldr r3, [pc, #540] @ (8005cb8 <HAL_ADC_Init+0x290>)
  12600. 8005a9a: 681b ldr r3, [r3, #0]
  12601. 8005a9c: 099b lsrs r3, r3, #6
  12602. 8005a9e: 4a87 ldr r2, [pc, #540] @ (8005cbc <HAL_ADC_Init+0x294>)
  12603. 8005aa0: fba2 2303 umull r2, r3, r2, r3
  12604. 8005aa4: 099b lsrs r3, r3, #6
  12605. 8005aa6: 3301 adds r3, #1
  12606. 8005aa8: 60bb str r3, [r7, #8]
  12607. while (wait_loop_index != 0UL)
  12608. 8005aaa: e002 b.n 8005ab2 <HAL_ADC_Init+0x8a>
  12609. {
  12610. wait_loop_index--;
  12611. 8005aac: 68bb ldr r3, [r7, #8]
  12612. 8005aae: 3b01 subs r3, #1
  12613. 8005ab0: 60bb str r3, [r7, #8]
  12614. while (wait_loop_index != 0UL)
  12615. 8005ab2: 68bb ldr r3, [r7, #8]
  12616. 8005ab4: 2b00 cmp r3, #0
  12617. 8005ab6: d1f9 bne.n 8005aac <HAL_ADC_Init+0x84>
  12618. }
  12619. /* Verification that ADC voltage regulator is correctly enabled, whether */
  12620. /* or not ADC is coming from state reset (if any potential problem of */
  12621. /* clocking, voltage regulator would not be enabled). */
  12622. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12623. 8005ab8: 687b ldr r3, [r7, #4]
  12624. 8005aba: 681b ldr r3, [r3, #0]
  12625. 8005abc: 4618 mov r0, r3
  12626. 8005abe: f7ff ff17 bl 80058f0 <LL_ADC_IsInternalRegulatorEnabled>
  12627. 8005ac2: 4603 mov r3, r0
  12628. 8005ac4: 2b00 cmp r3, #0
  12629. 8005ac6: d10d bne.n 8005ae4 <HAL_ADC_Init+0xbc>
  12630. {
  12631. /* Update ADC state machine to error */
  12632. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  12633. 8005ac8: 687b ldr r3, [r7, #4]
  12634. 8005aca: 6d5b ldr r3, [r3, #84] @ 0x54
  12635. 8005acc: f043 0210 orr.w r2, r3, #16
  12636. 8005ad0: 687b ldr r3, [r7, #4]
  12637. 8005ad2: 655a str r2, [r3, #84] @ 0x54
  12638. /* Set ADC error code to ADC peripheral internal error */
  12639. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  12640. 8005ad4: 687b ldr r3, [r7, #4]
  12641. 8005ad6: 6d9b ldr r3, [r3, #88] @ 0x58
  12642. 8005ad8: f043 0201 orr.w r2, r3, #1
  12643. 8005adc: 687b ldr r3, [r7, #4]
  12644. 8005ade: 659a str r2, [r3, #88] @ 0x58
  12645. tmp_hal_status = HAL_ERROR;
  12646. 8005ae0: 2301 movs r3, #1
  12647. 8005ae2: 77fb strb r3, [r7, #31]
  12648. /* Configuration of ADC parameters if previous preliminary actions are */
  12649. /* correctly completed and if there is no conversion on going on regular */
  12650. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  12651. /* called to update a parameter on the fly). */
  12652. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  12653. 8005ae4: 687b ldr r3, [r7, #4]
  12654. 8005ae6: 681b ldr r3, [r3, #0]
  12655. 8005ae8: 4618 mov r0, r3
  12656. 8005aea: f7ff ff77 bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  12657. 8005aee: 6178 str r0, [r7, #20]
  12658. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  12659. 8005af0: 687b ldr r3, [r7, #4]
  12660. 8005af2: 6d5b ldr r3, [r3, #84] @ 0x54
  12661. 8005af4: f003 0310 and.w r3, r3, #16
  12662. 8005af8: 2b00 cmp r3, #0
  12663. 8005afa: f040 8129 bne.w 8005d50 <HAL_ADC_Init+0x328>
  12664. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  12665. 8005afe: 697b ldr r3, [r7, #20]
  12666. 8005b00: 2b00 cmp r3, #0
  12667. 8005b02: f040 8125 bne.w 8005d50 <HAL_ADC_Init+0x328>
  12668. )
  12669. {
  12670. /* Set ADC state */
  12671. ADC_STATE_CLR_SET(hadc->State,
  12672. 8005b06: 687b ldr r3, [r7, #4]
  12673. 8005b08: 6d5b ldr r3, [r3, #84] @ 0x54
  12674. 8005b0a: f423 7381 bic.w r3, r3, #258 @ 0x102
  12675. 8005b0e: f043 0202 orr.w r2, r3, #2
  12676. 8005b12: 687b ldr r3, [r7, #4]
  12677. 8005b14: 655a str r2, [r3, #84] @ 0x54
  12678. /* Configuration of common ADC parameters */
  12679. /* Parameters update conditioned to ADC state: */
  12680. /* Parameters that can be updated only when ADC is disabled: */
  12681. /* - clock configuration */
  12682. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  12683. 8005b16: 687b ldr r3, [r7, #4]
  12684. 8005b18: 681b ldr r3, [r3, #0]
  12685. 8005b1a: 4618 mov r0, r3
  12686. 8005b1c: f7ff ff24 bl 8005968 <LL_ADC_IsEnabled>
  12687. 8005b20: 4603 mov r3, r0
  12688. 8005b22: 2b00 cmp r3, #0
  12689. 8005b24: d136 bne.n 8005b94 <HAL_ADC_Init+0x16c>
  12690. {
  12691. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  12692. 8005b26: 687b ldr r3, [r7, #4]
  12693. 8005b28: 681b ldr r3, [r3, #0]
  12694. 8005b2a: 4a65 ldr r2, [pc, #404] @ (8005cc0 <HAL_ADC_Init+0x298>)
  12695. 8005b2c: 4293 cmp r3, r2
  12696. 8005b2e: d004 beq.n 8005b3a <HAL_ADC_Init+0x112>
  12697. 8005b30: 687b ldr r3, [r7, #4]
  12698. 8005b32: 681b ldr r3, [r3, #0]
  12699. 8005b34: 4a63 ldr r2, [pc, #396] @ (8005cc4 <HAL_ADC_Init+0x29c>)
  12700. 8005b36: 4293 cmp r3, r2
  12701. 8005b38: d10e bne.n 8005b58 <HAL_ADC_Init+0x130>
  12702. 8005b3a: 4861 ldr r0, [pc, #388] @ (8005cc0 <HAL_ADC_Init+0x298>)
  12703. 8005b3c: f7ff ff14 bl 8005968 <LL_ADC_IsEnabled>
  12704. 8005b40: 4604 mov r4, r0
  12705. 8005b42: 4860 ldr r0, [pc, #384] @ (8005cc4 <HAL_ADC_Init+0x29c>)
  12706. 8005b44: f7ff ff10 bl 8005968 <LL_ADC_IsEnabled>
  12707. 8005b48: 4603 mov r3, r0
  12708. 8005b4a: 4323 orrs r3, r4
  12709. 8005b4c: 2b00 cmp r3, #0
  12710. 8005b4e: bf0c ite eq
  12711. 8005b50: 2301 moveq r3, #1
  12712. 8005b52: 2300 movne r3, #0
  12713. 8005b54: b2db uxtb r3, r3
  12714. 8005b56: e008 b.n 8005b6a <HAL_ADC_Init+0x142>
  12715. 8005b58: 485b ldr r0, [pc, #364] @ (8005cc8 <HAL_ADC_Init+0x2a0>)
  12716. 8005b5a: f7ff ff05 bl 8005968 <LL_ADC_IsEnabled>
  12717. 8005b5e: 4603 mov r3, r0
  12718. 8005b60: 2b00 cmp r3, #0
  12719. 8005b62: bf0c ite eq
  12720. 8005b64: 2301 moveq r3, #1
  12721. 8005b66: 2300 movne r3, #0
  12722. 8005b68: b2db uxtb r3, r3
  12723. 8005b6a: 2b00 cmp r3, #0
  12724. 8005b6c: d012 beq.n 8005b94 <HAL_ADC_Init+0x16c>
  12725. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  12726. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  12727. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  12728. /* (set into HAL_ADC_ConfigChannel() or */
  12729. /* HAL_ADCEx_InjectedConfigChannel() ) */
  12730. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  12731. 8005b6e: 687b ldr r3, [r7, #4]
  12732. 8005b70: 681b ldr r3, [r3, #0]
  12733. 8005b72: 4a53 ldr r2, [pc, #332] @ (8005cc0 <HAL_ADC_Init+0x298>)
  12734. 8005b74: 4293 cmp r3, r2
  12735. 8005b76: d004 beq.n 8005b82 <HAL_ADC_Init+0x15a>
  12736. 8005b78: 687b ldr r3, [r7, #4]
  12737. 8005b7a: 681b ldr r3, [r3, #0]
  12738. 8005b7c: 4a51 ldr r2, [pc, #324] @ (8005cc4 <HAL_ADC_Init+0x29c>)
  12739. 8005b7e: 4293 cmp r3, r2
  12740. 8005b80: d101 bne.n 8005b86 <HAL_ADC_Init+0x15e>
  12741. 8005b82: 4a52 ldr r2, [pc, #328] @ (8005ccc <HAL_ADC_Init+0x2a4>)
  12742. 8005b84: e000 b.n 8005b88 <HAL_ADC_Init+0x160>
  12743. 8005b86: 4a52 ldr r2, [pc, #328] @ (8005cd0 <HAL_ADC_Init+0x2a8>)
  12744. 8005b88: 687b ldr r3, [r7, #4]
  12745. 8005b8a: 685b ldr r3, [r3, #4]
  12746. 8005b8c: 4619 mov r1, r3
  12747. 8005b8e: 4610 mov r0, r2
  12748. 8005b90: f7ff fd3c bl 800560c <LL_ADC_SetCommonClock>
  12749. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12750. }
  12751. #else
  12752. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  12753. 8005b94: f7ff fcf4 bl 8005580 <HAL_GetREVID>
  12754. 8005b98: 4603 mov r3, r0
  12755. 8005b9a: f241 0203 movw r2, #4099 @ 0x1003
  12756. 8005b9e: 4293 cmp r3, r2
  12757. 8005ba0: d914 bls.n 8005bcc <HAL_ADC_Init+0x1a4>
  12758. 8005ba2: 687b ldr r3, [r7, #4]
  12759. 8005ba4: 689b ldr r3, [r3, #8]
  12760. 8005ba6: 2b10 cmp r3, #16
  12761. 8005ba8: d110 bne.n 8005bcc <HAL_ADC_Init+0x1a4>
  12762. {
  12763. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  12764. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12765. 8005baa: 687b ldr r3, [r7, #4]
  12766. 8005bac: 7d5b ldrb r3, [r3, #21]
  12767. 8005bae: 035a lsls r2, r3, #13
  12768. hadc->Init.Overrun |
  12769. 8005bb0: 687b ldr r3, [r7, #4]
  12770. 8005bb2: 6b1b ldr r3, [r3, #48] @ 0x30
  12771. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12772. 8005bb4: 431a orrs r2, r3
  12773. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  12774. 8005bb6: 687b ldr r3, [r7, #4]
  12775. 8005bb8: 689b ldr r3, [r3, #8]
  12776. hadc->Init.Overrun |
  12777. 8005bba: 431a orrs r2, r3
  12778. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12779. 8005bbc: 687b ldr r3, [r7, #4]
  12780. 8005bbe: 7f1b ldrb r3, [r3, #28]
  12781. 8005bc0: 041b lsls r3, r3, #16
  12782. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  12783. 8005bc2: 4313 orrs r3, r2
  12784. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12785. 8005bc4: f043 030c orr.w r3, r3, #12
  12786. 8005bc8: 61bb str r3, [r7, #24]
  12787. 8005bca: e00d b.n 8005be8 <HAL_ADC_Init+0x1c0>
  12788. }
  12789. else
  12790. {
  12791. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12792. 8005bcc: 687b ldr r3, [r7, #4]
  12793. 8005bce: 7d5b ldrb r3, [r3, #21]
  12794. 8005bd0: 035a lsls r2, r3, #13
  12795. hadc->Init.Overrun |
  12796. 8005bd2: 687b ldr r3, [r7, #4]
  12797. 8005bd4: 6b1b ldr r3, [r3, #48] @ 0x30
  12798. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12799. 8005bd6: 431a orrs r2, r3
  12800. hadc->Init.Resolution |
  12801. 8005bd8: 687b ldr r3, [r7, #4]
  12802. 8005bda: 689b ldr r3, [r3, #8]
  12803. hadc->Init.Overrun |
  12804. 8005bdc: 431a orrs r2, r3
  12805. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  12806. 8005bde: 687b ldr r3, [r7, #4]
  12807. 8005be0: 7f1b ldrb r3, [r3, #28]
  12808. 8005be2: 041b lsls r3, r3, #16
  12809. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  12810. 8005be4: 4313 orrs r3, r2
  12811. 8005be6: 61bb str r3, [r7, #24]
  12812. }
  12813. #endif /* ADC_VER_V5_3 */
  12814. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  12815. 8005be8: 687b ldr r3, [r7, #4]
  12816. 8005bea: 7f1b ldrb r3, [r3, #28]
  12817. 8005bec: 2b01 cmp r3, #1
  12818. 8005bee: d106 bne.n 8005bfe <HAL_ADC_Init+0x1d6>
  12819. {
  12820. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  12821. 8005bf0: 687b ldr r3, [r7, #4]
  12822. 8005bf2: 6a1b ldr r3, [r3, #32]
  12823. 8005bf4: 3b01 subs r3, #1
  12824. 8005bf6: 045b lsls r3, r3, #17
  12825. 8005bf8: 69ba ldr r2, [r7, #24]
  12826. 8005bfa: 4313 orrs r3, r2
  12827. 8005bfc: 61bb str r3, [r7, #24]
  12828. /* Enable external trigger if trigger selection is different of software */
  12829. /* start. */
  12830. /* Note: This configuration keeps the hardware feature of parameter */
  12831. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  12832. /* software start. */
  12833. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  12834. 8005bfe: 687b ldr r3, [r7, #4]
  12835. 8005c00: 6a5b ldr r3, [r3, #36] @ 0x24
  12836. 8005c02: 2b00 cmp r3, #0
  12837. 8005c04: d009 beq.n 8005c1a <HAL_ADC_Init+0x1f2>
  12838. {
  12839. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  12840. 8005c06: 687b ldr r3, [r7, #4]
  12841. 8005c08: 6a5b ldr r3, [r3, #36] @ 0x24
  12842. 8005c0a: f403 7278 and.w r2, r3, #992 @ 0x3e0
  12843. | hadc->Init.ExternalTrigConvEdge
  12844. 8005c0e: 687b ldr r3, [r7, #4]
  12845. 8005c10: 6a9b ldr r3, [r3, #40] @ 0x28
  12846. 8005c12: 4313 orrs r3, r2
  12847. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  12848. 8005c14: 69ba ldr r2, [r7, #24]
  12849. 8005c16: 4313 orrs r3, r2
  12850. 8005c18: 61bb str r3, [r7, #24]
  12851. /* Update Configuration Register CFGR */
  12852. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  12853. }
  12854. #else
  12855. /* Update Configuration Register CFGR */
  12856. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  12857. 8005c1a: 687b ldr r3, [r7, #4]
  12858. 8005c1c: 681b ldr r3, [r3, #0]
  12859. 8005c1e: 68da ldr r2, [r3, #12]
  12860. 8005c20: 4b2c ldr r3, [pc, #176] @ (8005cd4 <HAL_ADC_Init+0x2ac>)
  12861. 8005c22: 4013 ands r3, r2
  12862. 8005c24: 687a ldr r2, [r7, #4]
  12863. 8005c26: 6812 ldr r2, [r2, #0]
  12864. 8005c28: 69b9 ldr r1, [r7, #24]
  12865. 8005c2a: 430b orrs r3, r1
  12866. 8005c2c: 60d3 str r3, [r2, #12]
  12867. /* Parameters that can be updated when ADC is disabled or enabled without */
  12868. /* conversion on going on regular and injected groups: */
  12869. /* - Conversion data management Init.ConversionDataManagement */
  12870. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  12871. /* - Oversampling parameters Init.Oversampling */
  12872. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  12873. 8005c2e: 687b ldr r3, [r7, #4]
  12874. 8005c30: 681b ldr r3, [r3, #0]
  12875. 8005c32: 4618 mov r0, r3
  12876. 8005c34: f7ff fed2 bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  12877. 8005c38: 6138 str r0, [r7, #16]
  12878. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  12879. 8005c3a: 687b ldr r3, [r7, #4]
  12880. 8005c3c: 681b ldr r3, [r3, #0]
  12881. 8005c3e: 4618 mov r0, r3
  12882. 8005c40: f7ff fedf bl 8005a02 <LL_ADC_INJ_IsConversionOngoing>
  12883. 8005c44: 60f8 str r0, [r7, #12]
  12884. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  12885. 8005c46: 693b ldr r3, [r7, #16]
  12886. 8005c48: 2b00 cmp r3, #0
  12887. 8005c4a: d15f bne.n 8005d0c <HAL_ADC_Init+0x2e4>
  12888. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  12889. 8005c4c: 68fb ldr r3, [r7, #12]
  12890. 8005c4e: 2b00 cmp r3, #0
  12891. 8005c50: d15c bne.n 8005d0c <HAL_ADC_Init+0x2e4>
  12892. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  12893. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  12894. }
  12895. #else
  12896. tmpCFGR = (
  12897. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  12898. 8005c52: 687b ldr r3, [r7, #4]
  12899. 8005c54: 7d1b ldrb r3, [r3, #20]
  12900. 8005c56: 039a lsls r2, r3, #14
  12901. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  12902. 8005c58: 687b ldr r3, [r7, #4]
  12903. 8005c5a: 6adb ldr r3, [r3, #44] @ 0x2c
  12904. tmpCFGR = (
  12905. 8005c5c: 4313 orrs r3, r2
  12906. 8005c5e: 61bb str r3, [r7, #24]
  12907. #endif
  12908. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  12909. 8005c60: 687b ldr r3, [r7, #4]
  12910. 8005c62: 681b ldr r3, [r3, #0]
  12911. 8005c64: 68da ldr r2, [r3, #12]
  12912. 8005c66: 4b1c ldr r3, [pc, #112] @ (8005cd8 <HAL_ADC_Init+0x2b0>)
  12913. 8005c68: 4013 ands r3, r2
  12914. 8005c6a: 687a ldr r2, [r7, #4]
  12915. 8005c6c: 6812 ldr r2, [r2, #0]
  12916. 8005c6e: 69b9 ldr r1, [r7, #24]
  12917. 8005c70: 430b orrs r3, r1
  12918. 8005c72: 60d3 str r3, [r2, #12]
  12919. if (hadc->Init.OversamplingMode == ENABLE)
  12920. 8005c74: 687b ldr r3, [r7, #4]
  12921. 8005c76: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  12922. 8005c7a: 2b01 cmp r3, #1
  12923. 8005c7c: d130 bne.n 8005ce0 <HAL_ADC_Init+0x2b8>
  12924. #endif
  12925. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  12926. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  12927. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  12928. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  12929. 8005c7e: 687b ldr r3, [r7, #4]
  12930. 8005c80: 6a5b ldr r3, [r3, #36] @ 0x24
  12931. 8005c82: 2b00 cmp r3, #0
  12932. /* - Oversampling Ratio */
  12933. /* - Right bit shift */
  12934. /* - Left bit shift */
  12935. /* - Triggered mode */
  12936. /* - Oversampling mode (continued/resumed) */
  12937. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  12938. 8005c84: 687b ldr r3, [r7, #4]
  12939. 8005c86: 681b ldr r3, [r3, #0]
  12940. 8005c88: 691a ldr r2, [r3, #16]
  12941. 8005c8a: 4b14 ldr r3, [pc, #80] @ (8005cdc <HAL_ADC_Init+0x2b4>)
  12942. 8005c8c: 4013 ands r3, r2
  12943. 8005c8e: 687a ldr r2, [r7, #4]
  12944. 8005c90: 6bd2 ldr r2, [r2, #60] @ 0x3c
  12945. 8005c92: 3a01 subs r2, #1
  12946. 8005c94: 0411 lsls r1, r2, #16
  12947. 8005c96: 687a ldr r2, [r7, #4]
  12948. 8005c98: 6c12 ldr r2, [r2, #64] @ 0x40
  12949. 8005c9a: 4311 orrs r1, r2
  12950. 8005c9c: 687a ldr r2, [r7, #4]
  12951. 8005c9e: 6c52 ldr r2, [r2, #68] @ 0x44
  12952. 8005ca0: 4311 orrs r1, r2
  12953. 8005ca2: 687a ldr r2, [r7, #4]
  12954. 8005ca4: 6c92 ldr r2, [r2, #72] @ 0x48
  12955. 8005ca6: 430a orrs r2, r1
  12956. 8005ca8: 431a orrs r2, r3
  12957. 8005caa: 687b ldr r3, [r7, #4]
  12958. 8005cac: 681b ldr r3, [r3, #0]
  12959. 8005cae: f042 0201 orr.w r2, r2, #1
  12960. 8005cb2: 611a str r2, [r3, #16]
  12961. 8005cb4: e01c b.n 8005cf0 <HAL_ADC_Init+0x2c8>
  12962. 8005cb6: bf00 nop
  12963. 8005cb8: 24000034 .word 0x24000034
  12964. 8005cbc: 053e2d63 .word 0x053e2d63
  12965. 8005cc0: 40022000 .word 0x40022000
  12966. 8005cc4: 40022100 .word 0x40022100
  12967. 8005cc8: 58026000 .word 0x58026000
  12968. 8005ccc: 40022300 .word 0x40022300
  12969. 8005cd0: 58026300 .word 0x58026300
  12970. 8005cd4: fff0c003 .word 0xfff0c003
  12971. 8005cd8: ffffbffc .word 0xffffbffc
  12972. 8005cdc: fc00f81e .word 0xfc00f81e
  12973. }
  12974. else
  12975. {
  12976. /* Disable ADC oversampling scope on ADC group regular */
  12977. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  12978. 8005ce0: 687b ldr r3, [r7, #4]
  12979. 8005ce2: 681b ldr r3, [r3, #0]
  12980. 8005ce4: 691a ldr r2, [r3, #16]
  12981. 8005ce6: 687b ldr r3, [r7, #4]
  12982. 8005ce8: 681b ldr r3, [r3, #0]
  12983. 8005cea: f022 0201 bic.w r2, r2, #1
  12984. 8005cee: 611a str r2, [r3, #16]
  12985. }
  12986. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  12987. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  12988. 8005cf0: 687b ldr r3, [r7, #4]
  12989. 8005cf2: 681b ldr r3, [r3, #0]
  12990. 8005cf4: 691b ldr r3, [r3, #16]
  12991. 8005cf6: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  12992. 8005cfa: 687b ldr r3, [r7, #4]
  12993. 8005cfc: 6b5a ldr r2, [r3, #52] @ 0x34
  12994. 8005cfe: 687b ldr r3, [r7, #4]
  12995. 8005d00: 681b ldr r3, [r3, #0]
  12996. 8005d02: 430a orrs r2, r1
  12997. 8005d04: 611a str r2, [r3, #16]
  12998. /* Configure the BOOST Mode */
  12999. ADC_ConfigureBoostMode(hadc);
  13000. }
  13001. #else
  13002. /* Configure the BOOST Mode */
  13003. ADC_ConfigureBoostMode(hadc);
  13004. 8005d06: 6878 ldr r0, [r7, #4]
  13005. 8005d08: f000 fde2 bl 80068d0 <ADC_ConfigureBoostMode>
  13006. /* Note: Scan mode is not present by hardware on this device, but */
  13007. /* emulated by software for alignment over all STM32 devices. */
  13008. /* - if scan mode is enabled, regular channels sequence length is set to */
  13009. /* parameter "NbrOfConversion". */
  13010. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  13011. 8005d0c: 687b ldr r3, [r7, #4]
  13012. 8005d0e: 68db ldr r3, [r3, #12]
  13013. 8005d10: 2b01 cmp r3, #1
  13014. 8005d12: d10c bne.n 8005d2e <HAL_ADC_Init+0x306>
  13015. {
  13016. /* Set number of ranks in regular group sequencer */
  13017. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  13018. 8005d14: 687b ldr r3, [r7, #4]
  13019. 8005d16: 681b ldr r3, [r3, #0]
  13020. 8005d18: 6b1b ldr r3, [r3, #48] @ 0x30
  13021. 8005d1a: f023 010f bic.w r1, r3, #15
  13022. 8005d1e: 687b ldr r3, [r7, #4]
  13023. 8005d20: 699b ldr r3, [r3, #24]
  13024. 8005d22: 1e5a subs r2, r3, #1
  13025. 8005d24: 687b ldr r3, [r7, #4]
  13026. 8005d26: 681b ldr r3, [r3, #0]
  13027. 8005d28: 430a orrs r2, r1
  13028. 8005d2a: 631a str r2, [r3, #48] @ 0x30
  13029. 8005d2c: e007 b.n 8005d3e <HAL_ADC_Init+0x316>
  13030. }
  13031. else
  13032. {
  13033. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  13034. 8005d2e: 687b ldr r3, [r7, #4]
  13035. 8005d30: 681b ldr r3, [r3, #0]
  13036. 8005d32: 6b1a ldr r2, [r3, #48] @ 0x30
  13037. 8005d34: 687b ldr r3, [r7, #4]
  13038. 8005d36: 681b ldr r3, [r3, #0]
  13039. 8005d38: f022 020f bic.w r2, r2, #15
  13040. 8005d3c: 631a str r2, [r3, #48] @ 0x30
  13041. }
  13042. /* Initialize the ADC state */
  13043. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  13044. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  13045. 8005d3e: 687b ldr r3, [r7, #4]
  13046. 8005d40: 6d5b ldr r3, [r3, #84] @ 0x54
  13047. 8005d42: f023 0303 bic.w r3, r3, #3
  13048. 8005d46: f043 0201 orr.w r2, r3, #1
  13049. 8005d4a: 687b ldr r3, [r7, #4]
  13050. 8005d4c: 655a str r2, [r3, #84] @ 0x54
  13051. 8005d4e: e007 b.n 8005d60 <HAL_ADC_Init+0x338>
  13052. }
  13053. else
  13054. {
  13055. /* Update ADC state machine to error */
  13056. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  13057. 8005d50: 687b ldr r3, [r7, #4]
  13058. 8005d52: 6d5b ldr r3, [r3, #84] @ 0x54
  13059. 8005d54: f043 0210 orr.w r2, r3, #16
  13060. 8005d58: 687b ldr r3, [r7, #4]
  13061. 8005d5a: 655a str r2, [r3, #84] @ 0x54
  13062. tmp_hal_status = HAL_ERROR;
  13063. 8005d5c: 2301 movs r3, #1
  13064. 8005d5e: 77fb strb r3, [r7, #31]
  13065. }
  13066. /* Return function status */
  13067. return tmp_hal_status;
  13068. 8005d60: 7ffb ldrb r3, [r7, #31]
  13069. }
  13070. 8005d62: 4618 mov r0, r3
  13071. 8005d64: 3724 adds r7, #36 @ 0x24
  13072. 8005d66: 46bd mov sp, r7
  13073. 8005d68: bd90 pop {r4, r7, pc}
  13074. 8005d6a: bf00 nop
  13075. 08005d6c <HAL_ADC_Start_DMA>:
  13076. * @param pData Destination Buffer address.
  13077. * @param Length Number of data to be transferred from ADC peripheral to memory
  13078. * @retval HAL status.
  13079. */
  13080. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  13081. {
  13082. 8005d6c: b580 push {r7, lr}
  13083. 8005d6e: b086 sub sp, #24
  13084. 8005d70: af00 add r7, sp, #0
  13085. 8005d72: 60f8 str r0, [r7, #12]
  13086. 8005d74: 60b9 str r1, [r7, #8]
  13087. 8005d76: 607a str r2, [r7, #4]
  13088. HAL_StatusTypeDef tmp_hal_status;
  13089. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  13090. 8005d78: 68fb ldr r3, [r7, #12]
  13091. 8005d7a: 681b ldr r3, [r3, #0]
  13092. 8005d7c: 4a55 ldr r2, [pc, #340] @ (8005ed4 <HAL_ADC_Start_DMA+0x168>)
  13093. 8005d7e: 4293 cmp r3, r2
  13094. 8005d80: d004 beq.n 8005d8c <HAL_ADC_Start_DMA+0x20>
  13095. 8005d82: 68fb ldr r3, [r7, #12]
  13096. 8005d84: 681b ldr r3, [r3, #0]
  13097. 8005d86: 4a54 ldr r2, [pc, #336] @ (8005ed8 <HAL_ADC_Start_DMA+0x16c>)
  13098. 8005d88: 4293 cmp r3, r2
  13099. 8005d8a: d101 bne.n 8005d90 <HAL_ADC_Start_DMA+0x24>
  13100. 8005d8c: 4b53 ldr r3, [pc, #332] @ (8005edc <HAL_ADC_Start_DMA+0x170>)
  13101. 8005d8e: e000 b.n 8005d92 <HAL_ADC_Start_DMA+0x26>
  13102. 8005d90: 4b53 ldr r3, [pc, #332] @ (8005ee0 <HAL_ADC_Start_DMA+0x174>)
  13103. 8005d92: 4618 mov r0, r3
  13104. 8005d94: f7ff fd64 bl 8005860 <LL_ADC_GetMultimode>
  13105. 8005d98: 6138 str r0, [r7, #16]
  13106. /* Check the parameters */
  13107. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  13108. /* Perform ADC enable and conversion start if no conversion is on going */
  13109. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  13110. 8005d9a: 68fb ldr r3, [r7, #12]
  13111. 8005d9c: 681b ldr r3, [r3, #0]
  13112. 8005d9e: 4618 mov r0, r3
  13113. 8005da0: f7ff fe1c bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  13114. 8005da4: 4603 mov r3, r0
  13115. 8005da6: 2b00 cmp r3, #0
  13116. 8005da8: f040 808c bne.w 8005ec4 <HAL_ADC_Start_DMA+0x158>
  13117. {
  13118. /* Process locked */
  13119. __HAL_LOCK(hadc);
  13120. 8005dac: 68fb ldr r3, [r7, #12]
  13121. 8005dae: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  13122. 8005db2: 2b01 cmp r3, #1
  13123. 8005db4: d101 bne.n 8005dba <HAL_ADC_Start_DMA+0x4e>
  13124. 8005db6: 2302 movs r3, #2
  13125. 8005db8: e087 b.n 8005eca <HAL_ADC_Start_DMA+0x15e>
  13126. 8005dba: 68fb ldr r3, [r7, #12]
  13127. 8005dbc: 2201 movs r2, #1
  13128. 8005dbe: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13129. /* Ensure that multimode regular conversions are not enabled. */
  13130. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  13131. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  13132. 8005dc2: 693b ldr r3, [r7, #16]
  13133. 8005dc4: 2b00 cmp r3, #0
  13134. 8005dc6: d005 beq.n 8005dd4 <HAL_ADC_Start_DMA+0x68>
  13135. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  13136. 8005dc8: 693b ldr r3, [r7, #16]
  13137. 8005dca: 2b05 cmp r3, #5
  13138. 8005dcc: d002 beq.n 8005dd4 <HAL_ADC_Start_DMA+0x68>
  13139. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  13140. 8005dce: 693b ldr r3, [r7, #16]
  13141. 8005dd0: 2b09 cmp r3, #9
  13142. 8005dd2: d170 bne.n 8005eb6 <HAL_ADC_Start_DMA+0x14a>
  13143. )
  13144. {
  13145. /* Enable the ADC peripheral */
  13146. tmp_hal_status = ADC_Enable(hadc);
  13147. 8005dd4: 68f8 ldr r0, [r7, #12]
  13148. 8005dd6: f000 fbfd bl 80065d4 <ADC_Enable>
  13149. 8005dda: 4603 mov r3, r0
  13150. 8005ddc: 75fb strb r3, [r7, #23]
  13151. /* Start conversion if ADC is effectively enabled */
  13152. if (tmp_hal_status == HAL_OK)
  13153. 8005dde: 7dfb ldrb r3, [r7, #23]
  13154. 8005de0: 2b00 cmp r3, #0
  13155. 8005de2: d163 bne.n 8005eac <HAL_ADC_Start_DMA+0x140>
  13156. {
  13157. /* Set ADC state */
  13158. /* - Clear state bitfield related to regular group conversion results */
  13159. /* - Set state bitfield related to regular operation */
  13160. ADC_STATE_CLR_SET(hadc->State,
  13161. 8005de4: 68fb ldr r3, [r7, #12]
  13162. 8005de6: 6d5a ldr r2, [r3, #84] @ 0x54
  13163. 8005de8: 4b3e ldr r3, [pc, #248] @ (8005ee4 <HAL_ADC_Start_DMA+0x178>)
  13164. 8005dea: 4013 ands r3, r2
  13165. 8005dec: f443 7280 orr.w r2, r3, #256 @ 0x100
  13166. 8005df0: 68fb ldr r3, [r7, #12]
  13167. 8005df2: 655a str r2, [r3, #84] @ 0x54
  13168. HAL_ADC_STATE_REG_BUSY);
  13169. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  13170. - if ADC instance is master or if multimode feature is not available
  13171. - if multimode setting is disabled (ADC instance slave in independent mode) */
  13172. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  13173. 8005df4: 68fb ldr r3, [r7, #12]
  13174. 8005df6: 681b ldr r3, [r3, #0]
  13175. 8005df8: 4a37 ldr r2, [pc, #220] @ (8005ed8 <HAL_ADC_Start_DMA+0x16c>)
  13176. 8005dfa: 4293 cmp r3, r2
  13177. 8005dfc: d002 beq.n 8005e04 <HAL_ADC_Start_DMA+0x98>
  13178. 8005dfe: 68fb ldr r3, [r7, #12]
  13179. 8005e00: 681b ldr r3, [r3, #0]
  13180. 8005e02: e000 b.n 8005e06 <HAL_ADC_Start_DMA+0x9a>
  13181. 8005e04: 4b33 ldr r3, [pc, #204] @ (8005ed4 <HAL_ADC_Start_DMA+0x168>)
  13182. 8005e06: 68fa ldr r2, [r7, #12]
  13183. 8005e08: 6812 ldr r2, [r2, #0]
  13184. 8005e0a: 4293 cmp r3, r2
  13185. 8005e0c: d002 beq.n 8005e14 <HAL_ADC_Start_DMA+0xa8>
  13186. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  13187. 8005e0e: 693b ldr r3, [r7, #16]
  13188. 8005e10: 2b00 cmp r3, #0
  13189. 8005e12: d105 bne.n 8005e20 <HAL_ADC_Start_DMA+0xb4>
  13190. )
  13191. {
  13192. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  13193. 8005e14: 68fb ldr r3, [r7, #12]
  13194. 8005e16: 6d5b ldr r3, [r3, #84] @ 0x54
  13195. 8005e18: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  13196. 8005e1c: 68fb ldr r3, [r7, #12]
  13197. 8005e1e: 655a str r2, [r3, #84] @ 0x54
  13198. }
  13199. /* Check if a conversion is on going on ADC group injected */
  13200. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  13201. 8005e20: 68fb ldr r3, [r7, #12]
  13202. 8005e22: 6d5b ldr r3, [r3, #84] @ 0x54
  13203. 8005e24: f403 5380 and.w r3, r3, #4096 @ 0x1000
  13204. 8005e28: 2b00 cmp r3, #0
  13205. 8005e2a: d006 beq.n 8005e3a <HAL_ADC_Start_DMA+0xce>
  13206. {
  13207. /* Reset ADC error code fields related to regular conversions only */
  13208. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  13209. 8005e2c: 68fb ldr r3, [r7, #12]
  13210. 8005e2e: 6d9b ldr r3, [r3, #88] @ 0x58
  13211. 8005e30: f023 0206 bic.w r2, r3, #6
  13212. 8005e34: 68fb ldr r3, [r7, #12]
  13213. 8005e36: 659a str r2, [r3, #88] @ 0x58
  13214. 8005e38: e002 b.n 8005e40 <HAL_ADC_Start_DMA+0xd4>
  13215. }
  13216. else
  13217. {
  13218. /* Reset all ADC error code fields */
  13219. ADC_CLEAR_ERRORCODE(hadc);
  13220. 8005e3a: 68fb ldr r3, [r7, #12]
  13221. 8005e3c: 2200 movs r2, #0
  13222. 8005e3e: 659a str r2, [r3, #88] @ 0x58
  13223. }
  13224. /* Set the DMA transfer complete callback */
  13225. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  13226. 8005e40: 68fb ldr r3, [r7, #12]
  13227. 8005e42: 6cdb ldr r3, [r3, #76] @ 0x4c
  13228. 8005e44: 4a28 ldr r2, [pc, #160] @ (8005ee8 <HAL_ADC_Start_DMA+0x17c>)
  13229. 8005e46: 63da str r2, [r3, #60] @ 0x3c
  13230. /* Set the DMA half transfer complete callback */
  13231. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  13232. 8005e48: 68fb ldr r3, [r7, #12]
  13233. 8005e4a: 6cdb ldr r3, [r3, #76] @ 0x4c
  13234. 8005e4c: 4a27 ldr r2, [pc, #156] @ (8005eec <HAL_ADC_Start_DMA+0x180>)
  13235. 8005e4e: 641a str r2, [r3, #64] @ 0x40
  13236. /* Set the DMA error callback */
  13237. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  13238. 8005e50: 68fb ldr r3, [r7, #12]
  13239. 8005e52: 6cdb ldr r3, [r3, #76] @ 0x4c
  13240. 8005e54: 4a26 ldr r2, [pc, #152] @ (8005ef0 <HAL_ADC_Start_DMA+0x184>)
  13241. 8005e56: 64da str r2, [r3, #76] @ 0x4c
  13242. /* ADC start (in case of SW start): */
  13243. /* Clear regular group conversion flag and overrun flag */
  13244. /* (To ensure of no unknown state from potential previous ADC */
  13245. /* operations) */
  13246. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  13247. 8005e58: 68fb ldr r3, [r7, #12]
  13248. 8005e5a: 681b ldr r3, [r3, #0]
  13249. 8005e5c: 221c movs r2, #28
  13250. 8005e5e: 601a str r2, [r3, #0]
  13251. /* Process unlocked */
  13252. /* Unlock before starting ADC conversions: in case of potential */
  13253. /* interruption, to let the process to ADC IRQ Handler. */
  13254. __HAL_UNLOCK(hadc);
  13255. 8005e60: 68fb ldr r3, [r7, #12]
  13256. 8005e62: 2200 movs r2, #0
  13257. 8005e64: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13258. /* With DMA, overrun event is always considered as an error even if
  13259. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  13260. ADC_IT_OVR is enabled. */
  13261. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  13262. 8005e68: 68fb ldr r3, [r7, #12]
  13263. 8005e6a: 681b ldr r3, [r3, #0]
  13264. 8005e6c: 685a ldr r2, [r3, #4]
  13265. 8005e6e: 68fb ldr r3, [r7, #12]
  13266. 8005e70: 681b ldr r3, [r3, #0]
  13267. 8005e72: f042 0210 orr.w r2, r2, #16
  13268. 8005e76: 605a str r2, [r3, #4]
  13269. {
  13270. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13271. }
  13272. #else
  13273. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  13274. 8005e78: 68fb ldr r3, [r7, #12]
  13275. 8005e7a: 681a ldr r2, [r3, #0]
  13276. 8005e7c: 68fb ldr r3, [r7, #12]
  13277. 8005e7e: 6adb ldr r3, [r3, #44] @ 0x2c
  13278. 8005e80: 4619 mov r1, r3
  13279. 8005e82: 4610 mov r0, r2
  13280. 8005e84: f7ff fc89 bl 800579a <LL_ADC_REG_SetDataTransferMode>
  13281. #endif
  13282. /* Start the DMA channel */
  13283. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  13284. 8005e88: 68fb ldr r3, [r7, #12]
  13285. 8005e8a: 6cd8 ldr r0, [r3, #76] @ 0x4c
  13286. 8005e8c: 68fb ldr r3, [r7, #12]
  13287. 8005e8e: 681b ldr r3, [r3, #0]
  13288. 8005e90: 3340 adds r3, #64 @ 0x40
  13289. 8005e92: 4619 mov r1, r3
  13290. 8005e94: 68ba ldr r2, [r7, #8]
  13291. 8005e96: 687b ldr r3, [r7, #4]
  13292. 8005e98: f002 fa5e bl 8008358 <HAL_DMA_Start_IT>
  13293. 8005e9c: 4603 mov r3, r0
  13294. 8005e9e: 75fb strb r3, [r7, #23]
  13295. /* Enable conversion of regular group. */
  13296. /* If software start has been selected, conversion starts immediately. */
  13297. /* If external trigger has been selected, conversion will start at next */
  13298. /* trigger event. */
  13299. /* Start ADC group regular conversion */
  13300. LL_ADC_REG_StartConversion(hadc->Instance);
  13301. 8005ea0: 68fb ldr r3, [r7, #12]
  13302. 8005ea2: 681b ldr r3, [r3, #0]
  13303. 8005ea4: 4618 mov r0, r3
  13304. 8005ea6: f7ff fd85 bl 80059b4 <LL_ADC_REG_StartConversion>
  13305. if (tmp_hal_status == HAL_OK)
  13306. 8005eaa: e00d b.n 8005ec8 <HAL_ADC_Start_DMA+0x15c>
  13307. }
  13308. else
  13309. {
  13310. /* Process unlocked */
  13311. __HAL_UNLOCK(hadc);
  13312. 8005eac: 68fb ldr r3, [r7, #12]
  13313. 8005eae: 2200 movs r2, #0
  13314. 8005eb0: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13315. if (tmp_hal_status == HAL_OK)
  13316. 8005eb4: e008 b.n 8005ec8 <HAL_ADC_Start_DMA+0x15c>
  13317. }
  13318. }
  13319. else
  13320. {
  13321. tmp_hal_status = HAL_ERROR;
  13322. 8005eb6: 2301 movs r3, #1
  13323. 8005eb8: 75fb strb r3, [r7, #23]
  13324. /* Process unlocked */
  13325. __HAL_UNLOCK(hadc);
  13326. 8005eba: 68fb ldr r3, [r7, #12]
  13327. 8005ebc: 2200 movs r2, #0
  13328. 8005ebe: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13329. 8005ec2: e001 b.n 8005ec8 <HAL_ADC_Start_DMA+0x15c>
  13330. }
  13331. }
  13332. else
  13333. {
  13334. tmp_hal_status = HAL_BUSY;
  13335. 8005ec4: 2302 movs r3, #2
  13336. 8005ec6: 75fb strb r3, [r7, #23]
  13337. }
  13338. /* Return function status */
  13339. return tmp_hal_status;
  13340. 8005ec8: 7dfb ldrb r3, [r7, #23]
  13341. }
  13342. 8005eca: 4618 mov r0, r3
  13343. 8005ecc: 3718 adds r7, #24
  13344. 8005ece: 46bd mov sp, r7
  13345. 8005ed0: bd80 pop {r7, pc}
  13346. 8005ed2: bf00 nop
  13347. 8005ed4: 40022000 .word 0x40022000
  13348. 8005ed8: 40022100 .word 0x40022100
  13349. 8005edc: 40022300 .word 0x40022300
  13350. 8005ee0: 58026300 .word 0x58026300
  13351. 8005ee4: fffff0fe .word 0xfffff0fe
  13352. 8005ee8: 080067a7 .word 0x080067a7
  13353. 8005eec: 0800687f .word 0x0800687f
  13354. 8005ef0: 0800689b .word 0x0800689b
  13355. 08005ef4 <HAL_ADC_ConvHalfCpltCallback>:
  13356. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  13357. * @param hadc ADC handle
  13358. * @retval None
  13359. */
  13360. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  13361. {
  13362. 8005ef4: b480 push {r7}
  13363. 8005ef6: b083 sub sp, #12
  13364. 8005ef8: af00 add r7, sp, #0
  13365. 8005efa: 6078 str r0, [r7, #4]
  13366. UNUSED(hadc);
  13367. /* NOTE : This function should not be modified. When the callback is needed,
  13368. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  13369. */
  13370. }
  13371. 8005efc: bf00 nop
  13372. 8005efe: 370c adds r7, #12
  13373. 8005f00: 46bd mov sp, r7
  13374. 8005f02: f85d 7b04 ldr.w r7, [sp], #4
  13375. 8005f06: 4770 bx lr
  13376. 08005f08 <HAL_ADC_ErrorCallback>:
  13377. * (this function is also clearing overrun flag)
  13378. * @param hadc ADC handle
  13379. * @retval None
  13380. */
  13381. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  13382. {
  13383. 8005f08: b480 push {r7}
  13384. 8005f0a: b083 sub sp, #12
  13385. 8005f0c: af00 add r7, sp, #0
  13386. 8005f0e: 6078 str r0, [r7, #4]
  13387. UNUSED(hadc);
  13388. /* NOTE : This function should not be modified. When the callback is needed,
  13389. function HAL_ADC_ErrorCallback must be implemented in the user file.
  13390. */
  13391. }
  13392. 8005f10: bf00 nop
  13393. 8005f12: 370c adds r7, #12
  13394. 8005f14: 46bd mov sp, r7
  13395. 8005f16: f85d 7b04 ldr.w r7, [sp], #4
  13396. 8005f1a: 4770 bx lr
  13397. 08005f1c <HAL_ADC_ConfigChannel>:
  13398. * @param hadc ADC handle
  13399. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  13400. * @retval HAL status
  13401. */
  13402. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  13403. {
  13404. 8005f1c: b590 push {r4, r7, lr}
  13405. 8005f1e: b0a1 sub sp, #132 @ 0x84
  13406. 8005f20: af00 add r7, sp, #0
  13407. 8005f22: 6078 str r0, [r7, #4]
  13408. 8005f24: 6039 str r1, [r7, #0]
  13409. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13410. 8005f26: 2300 movs r3, #0
  13411. 8005f28: f887 307f strb.w r3, [r7, #127] @ 0x7f
  13412. uint32_t tmpOffsetShifted;
  13413. uint32_t tmp_config_internal_channel;
  13414. __IO uint32_t wait_loop_index = 0;
  13415. 8005f2c: 2300 movs r3, #0
  13416. 8005f2e: 60bb str r3, [r7, #8]
  13417. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  13418. ignored (considered as reset) */
  13419. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  13420. /* Verification of channel number */
  13421. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  13422. 8005f30: 683b ldr r3, [r7, #0]
  13423. 8005f32: 68db ldr r3, [r3, #12]
  13424. 8005f34: 4a65 ldr r2, [pc, #404] @ (80060cc <HAL_ADC_ConfigChannel+0x1b0>)
  13425. 8005f36: 4293 cmp r3, r2
  13426. }
  13427. #endif
  13428. }
  13429. /* Process locked */
  13430. __HAL_LOCK(hadc);
  13431. 8005f38: 687b ldr r3, [r7, #4]
  13432. 8005f3a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  13433. 8005f3e: 2b01 cmp r3, #1
  13434. 8005f40: d101 bne.n 8005f46 <HAL_ADC_ConfigChannel+0x2a>
  13435. 8005f42: 2302 movs r3, #2
  13436. 8005f44: e32e b.n 80065a4 <HAL_ADC_ConfigChannel+0x688>
  13437. 8005f46: 687b ldr r3, [r7, #4]
  13438. 8005f48: 2201 movs r2, #1
  13439. 8005f4a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13440. /* Parameters update conditioned to ADC state: */
  13441. /* Parameters that can be updated when ADC is disabled or enabled without */
  13442. /* conversion on going on regular group: */
  13443. /* - Channel number */
  13444. /* - Channel rank */
  13445. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  13446. 8005f4e: 687b ldr r3, [r7, #4]
  13447. 8005f50: 681b ldr r3, [r3, #0]
  13448. 8005f52: 4618 mov r0, r3
  13449. 8005f54: f7ff fd42 bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  13450. 8005f58: 4603 mov r3, r0
  13451. 8005f5a: 2b00 cmp r3, #0
  13452. 8005f5c: f040 8313 bne.w 8006586 <HAL_ADC_ConfigChannel+0x66a>
  13453. {
  13454. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  13455. 8005f60: 683b ldr r3, [r7, #0]
  13456. 8005f62: 681b ldr r3, [r3, #0]
  13457. 8005f64: 2b00 cmp r3, #0
  13458. 8005f66: db2c blt.n 8005fc2 <HAL_ADC_ConfigChannel+0xa6>
  13459. /* ADC channels preselection */
  13460. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13461. }
  13462. #else
  13463. /* ADC channels preselection */
  13464. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13465. 8005f68: 683b ldr r3, [r7, #0]
  13466. 8005f6a: 681b ldr r3, [r3, #0]
  13467. 8005f6c: f3c3 0313 ubfx r3, r3, #0, #20
  13468. 8005f70: 2b00 cmp r3, #0
  13469. 8005f72: d108 bne.n 8005f86 <HAL_ADC_ConfigChannel+0x6a>
  13470. 8005f74: 683b ldr r3, [r7, #0]
  13471. 8005f76: 681b ldr r3, [r3, #0]
  13472. 8005f78: 0e9b lsrs r3, r3, #26
  13473. 8005f7a: f003 031f and.w r3, r3, #31
  13474. 8005f7e: 2201 movs r2, #1
  13475. 8005f80: fa02 f303 lsl.w r3, r2, r3
  13476. 8005f84: e016 b.n 8005fb4 <HAL_ADC_ConfigChannel+0x98>
  13477. 8005f86: 683b ldr r3, [r7, #0]
  13478. 8005f88: 681b ldr r3, [r3, #0]
  13479. 8005f8a: 667b str r3, [r7, #100] @ 0x64
  13480. uint32_t result;
  13481. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  13482. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  13483. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  13484. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13485. 8005f8c: 6e7b ldr r3, [r7, #100] @ 0x64
  13486. 8005f8e: fa93 f3a3 rbit r3, r3
  13487. 8005f92: 663b str r3, [r7, #96] @ 0x60
  13488. result |= value & 1U;
  13489. s--;
  13490. }
  13491. result <<= s; /* shift when v's highest bits are zero */
  13492. #endif
  13493. return result;
  13494. 8005f94: 6e3b ldr r3, [r7, #96] @ 0x60
  13495. 8005f96: 66bb str r3, [r7, #104] @ 0x68
  13496. optimisations using the logic "value was passed to __builtin_clz, so it
  13497. is non-zero".
  13498. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  13499. single CLZ instruction.
  13500. */
  13501. if (value == 0U)
  13502. 8005f98: 6ebb ldr r3, [r7, #104] @ 0x68
  13503. 8005f9a: 2b00 cmp r3, #0
  13504. 8005f9c: d101 bne.n 8005fa2 <HAL_ADC_ConfigChannel+0x86>
  13505. {
  13506. return 32U;
  13507. 8005f9e: 2320 movs r3, #32
  13508. 8005fa0: e003 b.n 8005faa <HAL_ADC_ConfigChannel+0x8e>
  13509. }
  13510. return __builtin_clz(value);
  13511. 8005fa2: 6ebb ldr r3, [r7, #104] @ 0x68
  13512. 8005fa4: fab3 f383 clz r3, r3
  13513. 8005fa8: b2db uxtb r3, r3
  13514. 8005faa: f003 031f and.w r3, r3, #31
  13515. 8005fae: 2201 movs r2, #1
  13516. 8005fb0: fa02 f303 lsl.w r3, r2, r3
  13517. 8005fb4: 687a ldr r2, [r7, #4]
  13518. 8005fb6: 6812 ldr r2, [r2, #0]
  13519. 8005fb8: 69d1 ldr r1, [r2, #28]
  13520. 8005fba: 687a ldr r2, [r7, #4]
  13521. 8005fbc: 6812 ldr r2, [r2, #0]
  13522. 8005fbe: 430b orrs r3, r1
  13523. 8005fc0: 61d3 str r3, [r2, #28]
  13524. #endif /* ADC_VER_V5_V90 */
  13525. }
  13526. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  13527. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  13528. 8005fc2: 687b ldr r3, [r7, #4]
  13529. 8005fc4: 6818 ldr r0, [r3, #0]
  13530. 8005fc6: 683b ldr r3, [r7, #0]
  13531. 8005fc8: 6859 ldr r1, [r3, #4]
  13532. 8005fca: 683b ldr r3, [r7, #0]
  13533. 8005fcc: 681b ldr r3, [r3, #0]
  13534. 8005fce: 461a mov r2, r3
  13535. 8005fd0: f7ff fbb7 bl 8005742 <LL_ADC_REG_SetSequencerRanks>
  13536. /* Parameters update conditioned to ADC state: */
  13537. /* Parameters that can be updated when ADC is disabled or enabled without */
  13538. /* conversion on going on regular group: */
  13539. /* - Channel sampling time */
  13540. /* - Channel offset */
  13541. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13542. 8005fd4: 687b ldr r3, [r7, #4]
  13543. 8005fd6: 681b ldr r3, [r3, #0]
  13544. 8005fd8: 4618 mov r0, r3
  13545. 8005fda: f7ff fcff bl 80059dc <LL_ADC_REG_IsConversionOngoing>
  13546. 8005fde: 67b8 str r0, [r7, #120] @ 0x78
  13547. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13548. 8005fe0: 687b ldr r3, [r7, #4]
  13549. 8005fe2: 681b ldr r3, [r3, #0]
  13550. 8005fe4: 4618 mov r0, r3
  13551. 8005fe6: f7ff fd0c bl 8005a02 <LL_ADC_INJ_IsConversionOngoing>
  13552. 8005fea: 6778 str r0, [r7, #116] @ 0x74
  13553. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13554. 8005fec: 6fbb ldr r3, [r7, #120] @ 0x78
  13555. 8005fee: 2b00 cmp r3, #0
  13556. 8005ff0: f040 80b8 bne.w 8006164 <HAL_ADC_ConfigChannel+0x248>
  13557. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13558. 8005ff4: 6f7b ldr r3, [r7, #116] @ 0x74
  13559. 8005ff6: 2b00 cmp r3, #0
  13560. 8005ff8: f040 80b4 bne.w 8006164 <HAL_ADC_ConfigChannel+0x248>
  13561. )
  13562. {
  13563. /* Set sampling time of the selected ADC channel */
  13564. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  13565. 8005ffc: 687b ldr r3, [r7, #4]
  13566. 8005ffe: 6818 ldr r0, [r3, #0]
  13567. 8006000: 683b ldr r3, [r7, #0]
  13568. 8006002: 6819 ldr r1, [r3, #0]
  13569. 8006004: 683b ldr r3, [r7, #0]
  13570. 8006006: 689b ldr r3, [r3, #8]
  13571. 8006008: 461a mov r2, r3
  13572. 800600a: f7ff fbd9 bl 80057c0 <LL_ADC_SetChannelSamplingTime>
  13573. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13574. }
  13575. else
  13576. #endif /* ADC_VER_V5_V90 */
  13577. {
  13578. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13579. 800600e: 4b30 ldr r3, [pc, #192] @ (80060d0 <HAL_ADC_ConfigChannel+0x1b4>)
  13580. 8006010: 681b ldr r3, [r3, #0]
  13581. 8006012: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  13582. 8006016: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13583. 800601a: d10b bne.n 8006034 <HAL_ADC_ConfigChannel+0x118>
  13584. 800601c: 683b ldr r3, [r7, #0]
  13585. 800601e: 695a ldr r2, [r3, #20]
  13586. 8006020: 687b ldr r3, [r7, #4]
  13587. 8006022: 681b ldr r3, [r3, #0]
  13588. 8006024: 68db ldr r3, [r3, #12]
  13589. 8006026: 089b lsrs r3, r3, #2
  13590. 8006028: f003 0307 and.w r3, r3, #7
  13591. 800602c: 005b lsls r3, r3, #1
  13592. 800602e: fa02 f303 lsl.w r3, r2, r3
  13593. 8006032: e01d b.n 8006070 <HAL_ADC_ConfigChannel+0x154>
  13594. 8006034: 687b ldr r3, [r7, #4]
  13595. 8006036: 681b ldr r3, [r3, #0]
  13596. 8006038: 68db ldr r3, [r3, #12]
  13597. 800603a: f003 0310 and.w r3, r3, #16
  13598. 800603e: 2b00 cmp r3, #0
  13599. 8006040: d10b bne.n 800605a <HAL_ADC_ConfigChannel+0x13e>
  13600. 8006042: 683b ldr r3, [r7, #0]
  13601. 8006044: 695a ldr r2, [r3, #20]
  13602. 8006046: 687b ldr r3, [r7, #4]
  13603. 8006048: 681b ldr r3, [r3, #0]
  13604. 800604a: 68db ldr r3, [r3, #12]
  13605. 800604c: 089b lsrs r3, r3, #2
  13606. 800604e: f003 0307 and.w r3, r3, #7
  13607. 8006052: 005b lsls r3, r3, #1
  13608. 8006054: fa02 f303 lsl.w r3, r2, r3
  13609. 8006058: e00a b.n 8006070 <HAL_ADC_ConfigChannel+0x154>
  13610. 800605a: 683b ldr r3, [r7, #0]
  13611. 800605c: 695a ldr r2, [r3, #20]
  13612. 800605e: 687b ldr r3, [r7, #4]
  13613. 8006060: 681b ldr r3, [r3, #0]
  13614. 8006062: 68db ldr r3, [r3, #12]
  13615. 8006064: 089b lsrs r3, r3, #2
  13616. 8006066: f003 0304 and.w r3, r3, #4
  13617. 800606a: 005b lsls r3, r3, #1
  13618. 800606c: fa02 f303 lsl.w r3, r2, r3
  13619. 8006070: 673b str r3, [r7, #112] @ 0x70
  13620. }
  13621. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  13622. 8006072: 683b ldr r3, [r7, #0]
  13623. 8006074: 691b ldr r3, [r3, #16]
  13624. 8006076: 2b04 cmp r3, #4
  13625. 8006078: d02c beq.n 80060d4 <HAL_ADC_ConfigChannel+0x1b8>
  13626. {
  13627. /* Set ADC selected offset number */
  13628. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  13629. 800607a: 687b ldr r3, [r7, #4]
  13630. 800607c: 6818 ldr r0, [r3, #0]
  13631. 800607e: 683b ldr r3, [r7, #0]
  13632. 8006080: 6919 ldr r1, [r3, #16]
  13633. 8006082: 683b ldr r3, [r7, #0]
  13634. 8006084: 681a ldr r2, [r3, #0]
  13635. 8006086: 6f3b ldr r3, [r7, #112] @ 0x70
  13636. 8006088: f7ff faf4 bl 8005674 <LL_ADC_SetOffset>
  13637. else
  13638. #endif /* ADC_VER_V5_V90 */
  13639. {
  13640. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  13641. /* Set ADC selected offset signed saturation */
  13642. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  13643. 800608c: 687b ldr r3, [r7, #4]
  13644. 800608e: 6818 ldr r0, [r3, #0]
  13645. 8006090: 683b ldr r3, [r7, #0]
  13646. 8006092: 6919 ldr r1, [r3, #16]
  13647. 8006094: 683b ldr r3, [r7, #0]
  13648. 8006096: 7e5b ldrb r3, [r3, #25]
  13649. 8006098: 2b01 cmp r3, #1
  13650. 800609a: d102 bne.n 80060a2 <HAL_ADC_ConfigChannel+0x186>
  13651. 800609c: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  13652. 80060a0: e000 b.n 80060a4 <HAL_ADC_ConfigChannel+0x188>
  13653. 80060a2: 2300 movs r3, #0
  13654. 80060a4: 461a mov r2, r3
  13655. 80060a6: f7ff fb1e bl 80056e6 <LL_ADC_SetOffsetSignedSaturation>
  13656. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  13657. /* Set ADC selected offset right shift */
  13658. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  13659. 80060aa: 687b ldr r3, [r7, #4]
  13660. 80060ac: 6818 ldr r0, [r3, #0]
  13661. 80060ae: 683b ldr r3, [r7, #0]
  13662. 80060b0: 6919 ldr r1, [r3, #16]
  13663. 80060b2: 683b ldr r3, [r7, #0]
  13664. 80060b4: 7e1b ldrb r3, [r3, #24]
  13665. 80060b6: 2b01 cmp r3, #1
  13666. 80060b8: d102 bne.n 80060c0 <HAL_ADC_ConfigChannel+0x1a4>
  13667. 80060ba: f44f 6300 mov.w r3, #2048 @ 0x800
  13668. 80060be: e000 b.n 80060c2 <HAL_ADC_ConfigChannel+0x1a6>
  13669. 80060c0: 2300 movs r3, #0
  13670. 80060c2: 461a mov r2, r3
  13671. 80060c4: f7ff faf6 bl 80056b4 <LL_ADC_SetDataRightShift>
  13672. 80060c8: e04c b.n 8006164 <HAL_ADC_ConfigChannel+0x248>
  13673. 80060ca: bf00 nop
  13674. 80060cc: 47ff0000 .word 0x47ff0000
  13675. 80060d0: 5c001000 .word 0x5c001000
  13676. }
  13677. }
  13678. else
  13679. #endif /* ADC_VER_V5_V90 */
  13680. {
  13681. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13682. 80060d4: 687b ldr r3, [r7, #4]
  13683. 80060d6: 681b ldr r3, [r3, #0]
  13684. 80060d8: 6e1b ldr r3, [r3, #96] @ 0x60
  13685. 80060da: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13686. 80060de: 683b ldr r3, [r7, #0]
  13687. 80060e0: 681b ldr r3, [r3, #0]
  13688. 80060e2: 069b lsls r3, r3, #26
  13689. 80060e4: 429a cmp r2, r3
  13690. 80060e6: d107 bne.n 80060f8 <HAL_ADC_ConfigChannel+0x1dc>
  13691. {
  13692. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  13693. 80060e8: 687b ldr r3, [r7, #4]
  13694. 80060ea: 681b ldr r3, [r3, #0]
  13695. 80060ec: 6e1a ldr r2, [r3, #96] @ 0x60
  13696. 80060ee: 687b ldr r3, [r7, #4]
  13697. 80060f0: 681b ldr r3, [r3, #0]
  13698. 80060f2: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13699. 80060f6: 661a str r2, [r3, #96] @ 0x60
  13700. }
  13701. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13702. 80060f8: 687b ldr r3, [r7, #4]
  13703. 80060fa: 681b ldr r3, [r3, #0]
  13704. 80060fc: 6e5b ldr r3, [r3, #100] @ 0x64
  13705. 80060fe: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13706. 8006102: 683b ldr r3, [r7, #0]
  13707. 8006104: 681b ldr r3, [r3, #0]
  13708. 8006106: 069b lsls r3, r3, #26
  13709. 8006108: 429a cmp r2, r3
  13710. 800610a: d107 bne.n 800611c <HAL_ADC_ConfigChannel+0x200>
  13711. {
  13712. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  13713. 800610c: 687b ldr r3, [r7, #4]
  13714. 800610e: 681b ldr r3, [r3, #0]
  13715. 8006110: 6e5a ldr r2, [r3, #100] @ 0x64
  13716. 8006112: 687b ldr r3, [r7, #4]
  13717. 8006114: 681b ldr r3, [r3, #0]
  13718. 8006116: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13719. 800611a: 665a str r2, [r3, #100] @ 0x64
  13720. }
  13721. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13722. 800611c: 687b ldr r3, [r7, #4]
  13723. 800611e: 681b ldr r3, [r3, #0]
  13724. 8006120: 6e9b ldr r3, [r3, #104] @ 0x68
  13725. 8006122: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13726. 8006126: 683b ldr r3, [r7, #0]
  13727. 8006128: 681b ldr r3, [r3, #0]
  13728. 800612a: 069b lsls r3, r3, #26
  13729. 800612c: 429a cmp r2, r3
  13730. 800612e: d107 bne.n 8006140 <HAL_ADC_ConfigChannel+0x224>
  13731. {
  13732. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  13733. 8006130: 687b ldr r3, [r7, #4]
  13734. 8006132: 681b ldr r3, [r3, #0]
  13735. 8006134: 6e9a ldr r2, [r3, #104] @ 0x68
  13736. 8006136: 687b ldr r3, [r7, #4]
  13737. 8006138: 681b ldr r3, [r3, #0]
  13738. 800613a: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13739. 800613e: 669a str r2, [r3, #104] @ 0x68
  13740. }
  13741. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  13742. 8006140: 687b ldr r3, [r7, #4]
  13743. 8006142: 681b ldr r3, [r3, #0]
  13744. 8006144: 6edb ldr r3, [r3, #108] @ 0x6c
  13745. 8006146: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13746. 800614a: 683b ldr r3, [r7, #0]
  13747. 800614c: 681b ldr r3, [r3, #0]
  13748. 800614e: 069b lsls r3, r3, #26
  13749. 8006150: 429a cmp r2, r3
  13750. 8006152: d107 bne.n 8006164 <HAL_ADC_ConfigChannel+0x248>
  13751. {
  13752. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  13753. 8006154: 687b ldr r3, [r7, #4]
  13754. 8006156: 681b ldr r3, [r3, #0]
  13755. 8006158: 6eda ldr r2, [r3, #108] @ 0x6c
  13756. 800615a: 687b ldr r3, [r7, #4]
  13757. 800615c: 681b ldr r3, [r3, #0]
  13758. 800615e: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  13759. 8006162: 66da str r2, [r3, #108] @ 0x6c
  13760. /* Parameters update conditioned to ADC state: */
  13761. /* Parameters that can be updated only when ADC is disabled: */
  13762. /* - Single or differential mode */
  13763. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  13764. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13765. 8006164: 687b ldr r3, [r7, #4]
  13766. 8006166: 681b ldr r3, [r3, #0]
  13767. 8006168: 4618 mov r0, r3
  13768. 800616a: f7ff fbfd bl 8005968 <LL_ADC_IsEnabled>
  13769. 800616e: 4603 mov r3, r0
  13770. 8006170: 2b00 cmp r3, #0
  13771. 8006172: f040 8211 bne.w 8006598 <HAL_ADC_ConfigChannel+0x67c>
  13772. {
  13773. /* Set mode single-ended or differential input of the selected ADC channel */
  13774. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  13775. 8006176: 687b ldr r3, [r7, #4]
  13776. 8006178: 6818 ldr r0, [r3, #0]
  13777. 800617a: 683b ldr r3, [r7, #0]
  13778. 800617c: 6819 ldr r1, [r3, #0]
  13779. 800617e: 683b ldr r3, [r7, #0]
  13780. 8006180: 68db ldr r3, [r3, #12]
  13781. 8006182: 461a mov r2, r3
  13782. 8006184: f7ff fb48 bl 8005818 <LL_ADC_SetChannelSingleDiff>
  13783. /* Configuration of differential mode */
  13784. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  13785. 8006188: 683b ldr r3, [r7, #0]
  13786. 800618a: 68db ldr r3, [r3, #12]
  13787. 800618c: 4aa1 ldr r2, [pc, #644] @ (8006414 <HAL_ADC_ConfigChannel+0x4f8>)
  13788. 800618e: 4293 cmp r3, r2
  13789. 8006190: f040 812e bne.w 80063f0 <HAL_ADC_ConfigChannel+0x4d4>
  13790. {
  13791. /* Set sampling time of the selected ADC channel */
  13792. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  13793. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13794. 8006194: 687b ldr r3, [r7, #4]
  13795. 8006196: 6818 ldr r0, [r3, #0]
  13796. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13797. 8006198: 683b ldr r3, [r7, #0]
  13798. 800619a: 681b ldr r3, [r3, #0]
  13799. 800619c: f3c3 0313 ubfx r3, r3, #0, #20
  13800. 80061a0: 2b00 cmp r3, #0
  13801. 80061a2: d10b bne.n 80061bc <HAL_ADC_ConfigChannel+0x2a0>
  13802. 80061a4: 683b ldr r3, [r7, #0]
  13803. 80061a6: 681b ldr r3, [r3, #0]
  13804. 80061a8: 0e9b lsrs r3, r3, #26
  13805. 80061aa: 3301 adds r3, #1
  13806. 80061ac: f003 031f and.w r3, r3, #31
  13807. 80061b0: 2b09 cmp r3, #9
  13808. 80061b2: bf94 ite ls
  13809. 80061b4: 2301 movls r3, #1
  13810. 80061b6: 2300 movhi r3, #0
  13811. 80061b8: b2db uxtb r3, r3
  13812. 80061ba: e019 b.n 80061f0 <HAL_ADC_ConfigChannel+0x2d4>
  13813. 80061bc: 683b ldr r3, [r7, #0]
  13814. 80061be: 681b ldr r3, [r3, #0]
  13815. 80061c0: 65bb str r3, [r7, #88] @ 0x58
  13816. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13817. 80061c2: 6dbb ldr r3, [r7, #88] @ 0x58
  13818. 80061c4: fa93 f3a3 rbit r3, r3
  13819. 80061c8: 657b str r3, [r7, #84] @ 0x54
  13820. return result;
  13821. 80061ca: 6d7b ldr r3, [r7, #84] @ 0x54
  13822. 80061cc: 65fb str r3, [r7, #92] @ 0x5c
  13823. if (value == 0U)
  13824. 80061ce: 6dfb ldr r3, [r7, #92] @ 0x5c
  13825. 80061d0: 2b00 cmp r3, #0
  13826. 80061d2: d101 bne.n 80061d8 <HAL_ADC_ConfigChannel+0x2bc>
  13827. return 32U;
  13828. 80061d4: 2320 movs r3, #32
  13829. 80061d6: e003 b.n 80061e0 <HAL_ADC_ConfigChannel+0x2c4>
  13830. return __builtin_clz(value);
  13831. 80061d8: 6dfb ldr r3, [r7, #92] @ 0x5c
  13832. 80061da: fab3 f383 clz r3, r3
  13833. 80061de: b2db uxtb r3, r3
  13834. 80061e0: 3301 adds r3, #1
  13835. 80061e2: f003 031f and.w r3, r3, #31
  13836. 80061e6: 2b09 cmp r3, #9
  13837. 80061e8: bf94 ite ls
  13838. 80061ea: 2301 movls r3, #1
  13839. 80061ec: 2300 movhi r3, #0
  13840. 80061ee: b2db uxtb r3, r3
  13841. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13842. 80061f0: 2b00 cmp r3, #0
  13843. 80061f2: d079 beq.n 80062e8 <HAL_ADC_ConfigChannel+0x3cc>
  13844. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13845. 80061f4: 683b ldr r3, [r7, #0]
  13846. 80061f6: 681b ldr r3, [r3, #0]
  13847. 80061f8: f3c3 0313 ubfx r3, r3, #0, #20
  13848. 80061fc: 2b00 cmp r3, #0
  13849. 80061fe: d107 bne.n 8006210 <HAL_ADC_ConfigChannel+0x2f4>
  13850. 8006200: 683b ldr r3, [r7, #0]
  13851. 8006202: 681b ldr r3, [r3, #0]
  13852. 8006204: 0e9b lsrs r3, r3, #26
  13853. 8006206: 3301 adds r3, #1
  13854. 8006208: 069b lsls r3, r3, #26
  13855. 800620a: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13856. 800620e: e015 b.n 800623c <HAL_ADC_ConfigChannel+0x320>
  13857. 8006210: 683b ldr r3, [r7, #0]
  13858. 8006212: 681b ldr r3, [r3, #0]
  13859. 8006214: 64fb str r3, [r7, #76] @ 0x4c
  13860. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13861. 8006216: 6cfb ldr r3, [r7, #76] @ 0x4c
  13862. 8006218: fa93 f3a3 rbit r3, r3
  13863. 800621c: 64bb str r3, [r7, #72] @ 0x48
  13864. return result;
  13865. 800621e: 6cbb ldr r3, [r7, #72] @ 0x48
  13866. 8006220: 653b str r3, [r7, #80] @ 0x50
  13867. if (value == 0U)
  13868. 8006222: 6d3b ldr r3, [r7, #80] @ 0x50
  13869. 8006224: 2b00 cmp r3, #0
  13870. 8006226: d101 bne.n 800622c <HAL_ADC_ConfigChannel+0x310>
  13871. return 32U;
  13872. 8006228: 2320 movs r3, #32
  13873. 800622a: e003 b.n 8006234 <HAL_ADC_ConfigChannel+0x318>
  13874. return __builtin_clz(value);
  13875. 800622c: 6d3b ldr r3, [r7, #80] @ 0x50
  13876. 800622e: fab3 f383 clz r3, r3
  13877. 8006232: b2db uxtb r3, r3
  13878. 8006234: 3301 adds r3, #1
  13879. 8006236: 069b lsls r3, r3, #26
  13880. 8006238: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13881. 800623c: 683b ldr r3, [r7, #0]
  13882. 800623e: 681b ldr r3, [r3, #0]
  13883. 8006240: f3c3 0313 ubfx r3, r3, #0, #20
  13884. 8006244: 2b00 cmp r3, #0
  13885. 8006246: d109 bne.n 800625c <HAL_ADC_ConfigChannel+0x340>
  13886. 8006248: 683b ldr r3, [r7, #0]
  13887. 800624a: 681b ldr r3, [r3, #0]
  13888. 800624c: 0e9b lsrs r3, r3, #26
  13889. 800624e: 3301 adds r3, #1
  13890. 8006250: f003 031f and.w r3, r3, #31
  13891. 8006254: 2101 movs r1, #1
  13892. 8006256: fa01 f303 lsl.w r3, r1, r3
  13893. 800625a: e017 b.n 800628c <HAL_ADC_ConfigChannel+0x370>
  13894. 800625c: 683b ldr r3, [r7, #0]
  13895. 800625e: 681b ldr r3, [r3, #0]
  13896. 8006260: 643b str r3, [r7, #64] @ 0x40
  13897. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13898. 8006262: 6c3b ldr r3, [r7, #64] @ 0x40
  13899. 8006264: fa93 f3a3 rbit r3, r3
  13900. 8006268: 63fb str r3, [r7, #60] @ 0x3c
  13901. return result;
  13902. 800626a: 6bfb ldr r3, [r7, #60] @ 0x3c
  13903. 800626c: 647b str r3, [r7, #68] @ 0x44
  13904. if (value == 0U)
  13905. 800626e: 6c7b ldr r3, [r7, #68] @ 0x44
  13906. 8006270: 2b00 cmp r3, #0
  13907. 8006272: d101 bne.n 8006278 <HAL_ADC_ConfigChannel+0x35c>
  13908. return 32U;
  13909. 8006274: 2320 movs r3, #32
  13910. 8006276: e003 b.n 8006280 <HAL_ADC_ConfigChannel+0x364>
  13911. return __builtin_clz(value);
  13912. 8006278: 6c7b ldr r3, [r7, #68] @ 0x44
  13913. 800627a: fab3 f383 clz r3, r3
  13914. 800627e: b2db uxtb r3, r3
  13915. 8006280: 3301 adds r3, #1
  13916. 8006282: f003 031f and.w r3, r3, #31
  13917. 8006286: 2101 movs r1, #1
  13918. 8006288: fa01 f303 lsl.w r3, r1, r3
  13919. 800628c: ea42 0103 orr.w r1, r2, r3
  13920. 8006290: 683b ldr r3, [r7, #0]
  13921. 8006292: 681b ldr r3, [r3, #0]
  13922. 8006294: f3c3 0313 ubfx r3, r3, #0, #20
  13923. 8006298: 2b00 cmp r3, #0
  13924. 800629a: d10a bne.n 80062b2 <HAL_ADC_ConfigChannel+0x396>
  13925. 800629c: 683b ldr r3, [r7, #0]
  13926. 800629e: 681b ldr r3, [r3, #0]
  13927. 80062a0: 0e9b lsrs r3, r3, #26
  13928. 80062a2: 3301 adds r3, #1
  13929. 80062a4: f003 021f and.w r2, r3, #31
  13930. 80062a8: 4613 mov r3, r2
  13931. 80062aa: 005b lsls r3, r3, #1
  13932. 80062ac: 4413 add r3, r2
  13933. 80062ae: 051b lsls r3, r3, #20
  13934. 80062b0: e018 b.n 80062e4 <HAL_ADC_ConfigChannel+0x3c8>
  13935. 80062b2: 683b ldr r3, [r7, #0]
  13936. 80062b4: 681b ldr r3, [r3, #0]
  13937. 80062b6: 637b str r3, [r7, #52] @ 0x34
  13938. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13939. 80062b8: 6b7b ldr r3, [r7, #52] @ 0x34
  13940. 80062ba: fa93 f3a3 rbit r3, r3
  13941. 80062be: 633b str r3, [r7, #48] @ 0x30
  13942. return result;
  13943. 80062c0: 6b3b ldr r3, [r7, #48] @ 0x30
  13944. 80062c2: 63bb str r3, [r7, #56] @ 0x38
  13945. if (value == 0U)
  13946. 80062c4: 6bbb ldr r3, [r7, #56] @ 0x38
  13947. 80062c6: 2b00 cmp r3, #0
  13948. 80062c8: d101 bne.n 80062ce <HAL_ADC_ConfigChannel+0x3b2>
  13949. return 32U;
  13950. 80062ca: 2320 movs r3, #32
  13951. 80062cc: e003 b.n 80062d6 <HAL_ADC_ConfigChannel+0x3ba>
  13952. return __builtin_clz(value);
  13953. 80062ce: 6bbb ldr r3, [r7, #56] @ 0x38
  13954. 80062d0: fab3 f383 clz r3, r3
  13955. 80062d4: b2db uxtb r3, r3
  13956. 80062d6: 3301 adds r3, #1
  13957. 80062d8: f003 021f and.w r2, r3, #31
  13958. 80062dc: 4613 mov r3, r2
  13959. 80062de: 005b lsls r3, r3, #1
  13960. 80062e0: 4413 add r3, r2
  13961. 80062e2: 051b lsls r3, r3, #20
  13962. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  13963. 80062e4: 430b orrs r3, r1
  13964. 80062e6: e07e b.n 80063e6 <HAL_ADC_ConfigChannel+0x4ca>
  13965. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  13966. 80062e8: 683b ldr r3, [r7, #0]
  13967. 80062ea: 681b ldr r3, [r3, #0]
  13968. 80062ec: f3c3 0313 ubfx r3, r3, #0, #20
  13969. 80062f0: 2b00 cmp r3, #0
  13970. 80062f2: d107 bne.n 8006304 <HAL_ADC_ConfigChannel+0x3e8>
  13971. 80062f4: 683b ldr r3, [r7, #0]
  13972. 80062f6: 681b ldr r3, [r3, #0]
  13973. 80062f8: 0e9b lsrs r3, r3, #26
  13974. 80062fa: 3301 adds r3, #1
  13975. 80062fc: 069b lsls r3, r3, #26
  13976. 80062fe: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  13977. 8006302: e015 b.n 8006330 <HAL_ADC_ConfigChannel+0x414>
  13978. 8006304: 683b ldr r3, [r7, #0]
  13979. 8006306: 681b ldr r3, [r3, #0]
  13980. 8006308: 62bb str r3, [r7, #40] @ 0x28
  13981. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13982. 800630a: 6abb ldr r3, [r7, #40] @ 0x28
  13983. 800630c: fa93 f3a3 rbit r3, r3
  13984. 8006310: 627b str r3, [r7, #36] @ 0x24
  13985. return result;
  13986. 8006312: 6a7b ldr r3, [r7, #36] @ 0x24
  13987. 8006314: 62fb str r3, [r7, #44] @ 0x2c
  13988. if (value == 0U)
  13989. 8006316: 6afb ldr r3, [r7, #44] @ 0x2c
  13990. 8006318: 2b00 cmp r3, #0
  13991. 800631a: d101 bne.n 8006320 <HAL_ADC_ConfigChannel+0x404>
  13992. return 32U;
  13993. 800631c: 2320 movs r3, #32
  13994. 800631e: e003 b.n 8006328 <HAL_ADC_ConfigChannel+0x40c>
  13995. return __builtin_clz(value);
  13996. 8006320: 6afb ldr r3, [r7, #44] @ 0x2c
  13997. 8006322: fab3 f383 clz r3, r3
  13998. 8006326: b2db uxtb r3, r3
  13999. 8006328: 3301 adds r3, #1
  14000. 800632a: 069b lsls r3, r3, #26
  14001. 800632c: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14002. 8006330: 683b ldr r3, [r7, #0]
  14003. 8006332: 681b ldr r3, [r3, #0]
  14004. 8006334: f3c3 0313 ubfx r3, r3, #0, #20
  14005. 8006338: 2b00 cmp r3, #0
  14006. 800633a: d109 bne.n 8006350 <HAL_ADC_ConfigChannel+0x434>
  14007. 800633c: 683b ldr r3, [r7, #0]
  14008. 800633e: 681b ldr r3, [r3, #0]
  14009. 8006340: 0e9b lsrs r3, r3, #26
  14010. 8006342: 3301 adds r3, #1
  14011. 8006344: f003 031f and.w r3, r3, #31
  14012. 8006348: 2101 movs r1, #1
  14013. 800634a: fa01 f303 lsl.w r3, r1, r3
  14014. 800634e: e017 b.n 8006380 <HAL_ADC_ConfigChannel+0x464>
  14015. 8006350: 683b ldr r3, [r7, #0]
  14016. 8006352: 681b ldr r3, [r3, #0]
  14017. 8006354: 61fb str r3, [r7, #28]
  14018. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14019. 8006356: 69fb ldr r3, [r7, #28]
  14020. 8006358: fa93 f3a3 rbit r3, r3
  14021. 800635c: 61bb str r3, [r7, #24]
  14022. return result;
  14023. 800635e: 69bb ldr r3, [r7, #24]
  14024. 8006360: 623b str r3, [r7, #32]
  14025. if (value == 0U)
  14026. 8006362: 6a3b ldr r3, [r7, #32]
  14027. 8006364: 2b00 cmp r3, #0
  14028. 8006366: d101 bne.n 800636c <HAL_ADC_ConfigChannel+0x450>
  14029. return 32U;
  14030. 8006368: 2320 movs r3, #32
  14031. 800636a: e003 b.n 8006374 <HAL_ADC_ConfigChannel+0x458>
  14032. return __builtin_clz(value);
  14033. 800636c: 6a3b ldr r3, [r7, #32]
  14034. 800636e: fab3 f383 clz r3, r3
  14035. 8006372: b2db uxtb r3, r3
  14036. 8006374: 3301 adds r3, #1
  14037. 8006376: f003 031f and.w r3, r3, #31
  14038. 800637a: 2101 movs r1, #1
  14039. 800637c: fa01 f303 lsl.w r3, r1, r3
  14040. 8006380: ea42 0103 orr.w r1, r2, r3
  14041. 8006384: 683b ldr r3, [r7, #0]
  14042. 8006386: 681b ldr r3, [r3, #0]
  14043. 8006388: f3c3 0313 ubfx r3, r3, #0, #20
  14044. 800638c: 2b00 cmp r3, #0
  14045. 800638e: d10d bne.n 80063ac <HAL_ADC_ConfigChannel+0x490>
  14046. 8006390: 683b ldr r3, [r7, #0]
  14047. 8006392: 681b ldr r3, [r3, #0]
  14048. 8006394: 0e9b lsrs r3, r3, #26
  14049. 8006396: 3301 adds r3, #1
  14050. 8006398: f003 021f and.w r2, r3, #31
  14051. 800639c: 4613 mov r3, r2
  14052. 800639e: 005b lsls r3, r3, #1
  14053. 80063a0: 4413 add r3, r2
  14054. 80063a2: 3b1e subs r3, #30
  14055. 80063a4: 051b lsls r3, r3, #20
  14056. 80063a6: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  14057. 80063aa: e01b b.n 80063e4 <HAL_ADC_ConfigChannel+0x4c8>
  14058. 80063ac: 683b ldr r3, [r7, #0]
  14059. 80063ae: 681b ldr r3, [r3, #0]
  14060. 80063b0: 613b str r3, [r7, #16]
  14061. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14062. 80063b2: 693b ldr r3, [r7, #16]
  14063. 80063b4: fa93 f3a3 rbit r3, r3
  14064. 80063b8: 60fb str r3, [r7, #12]
  14065. return result;
  14066. 80063ba: 68fb ldr r3, [r7, #12]
  14067. 80063bc: 617b str r3, [r7, #20]
  14068. if (value == 0U)
  14069. 80063be: 697b ldr r3, [r7, #20]
  14070. 80063c0: 2b00 cmp r3, #0
  14071. 80063c2: d101 bne.n 80063c8 <HAL_ADC_ConfigChannel+0x4ac>
  14072. return 32U;
  14073. 80063c4: 2320 movs r3, #32
  14074. 80063c6: e003 b.n 80063d0 <HAL_ADC_ConfigChannel+0x4b4>
  14075. return __builtin_clz(value);
  14076. 80063c8: 697b ldr r3, [r7, #20]
  14077. 80063ca: fab3 f383 clz r3, r3
  14078. 80063ce: b2db uxtb r3, r3
  14079. 80063d0: 3301 adds r3, #1
  14080. 80063d2: f003 021f and.w r2, r3, #31
  14081. 80063d6: 4613 mov r3, r2
  14082. 80063d8: 005b lsls r3, r3, #1
  14083. 80063da: 4413 add r3, r2
  14084. 80063dc: 3b1e subs r3, #30
  14085. 80063de: 051b lsls r3, r3, #20
  14086. 80063e0: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  14087. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14088. 80063e4: 430b orrs r3, r1
  14089. 80063e6: 683a ldr r2, [r7, #0]
  14090. 80063e8: 6892 ldr r2, [r2, #8]
  14091. 80063ea: 4619 mov r1, r3
  14092. 80063ec: f7ff f9e8 bl 80057c0 <LL_ADC_SetChannelSamplingTime>
  14093. /* If internal channel selected, enable dedicated internal buffers and */
  14094. /* paths. */
  14095. /* Note: these internal measurement paths can be disabled using */
  14096. /* HAL_ADC_DeInit(). */
  14097. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  14098. 80063f0: 683b ldr r3, [r7, #0]
  14099. 80063f2: 681b ldr r3, [r3, #0]
  14100. 80063f4: 2b00 cmp r3, #0
  14101. 80063f6: f280 80cf bge.w 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14102. {
  14103. /* Configuration of common ADC parameters */
  14104. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14105. 80063fa: 687b ldr r3, [r7, #4]
  14106. 80063fc: 681b ldr r3, [r3, #0]
  14107. 80063fe: 4a06 ldr r2, [pc, #24] @ (8006418 <HAL_ADC_ConfigChannel+0x4fc>)
  14108. 8006400: 4293 cmp r3, r2
  14109. 8006402: d004 beq.n 800640e <HAL_ADC_ConfigChannel+0x4f2>
  14110. 8006404: 687b ldr r3, [r7, #4]
  14111. 8006406: 681b ldr r3, [r3, #0]
  14112. 8006408: 4a04 ldr r2, [pc, #16] @ (800641c <HAL_ADC_ConfigChannel+0x500>)
  14113. 800640a: 4293 cmp r3, r2
  14114. 800640c: d10a bne.n 8006424 <HAL_ADC_ConfigChannel+0x508>
  14115. 800640e: 4b04 ldr r3, [pc, #16] @ (8006420 <HAL_ADC_ConfigChannel+0x504>)
  14116. 8006410: e009 b.n 8006426 <HAL_ADC_ConfigChannel+0x50a>
  14117. 8006412: bf00 nop
  14118. 8006414: 47ff0000 .word 0x47ff0000
  14119. 8006418: 40022000 .word 0x40022000
  14120. 800641c: 40022100 .word 0x40022100
  14121. 8006420: 40022300 .word 0x40022300
  14122. 8006424: 4b61 ldr r3, [pc, #388] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14123. 8006426: 4618 mov r0, r3
  14124. 8006428: f7ff f916 bl 8005658 <LL_ADC_GetCommonPathInternalCh>
  14125. 800642c: 66f8 str r0, [r7, #108] @ 0x6c
  14126. /* Software is allowed to change common parameters only when all ADCs */
  14127. /* of the common group are disabled. */
  14128. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  14129. 800642e: 687b ldr r3, [r7, #4]
  14130. 8006430: 681b ldr r3, [r3, #0]
  14131. 8006432: 4a5f ldr r2, [pc, #380] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14132. 8006434: 4293 cmp r3, r2
  14133. 8006436: d004 beq.n 8006442 <HAL_ADC_ConfigChannel+0x526>
  14134. 8006438: 687b ldr r3, [r7, #4]
  14135. 800643a: 681b ldr r3, [r3, #0]
  14136. 800643c: 4a5d ldr r2, [pc, #372] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14137. 800643e: 4293 cmp r3, r2
  14138. 8006440: d10e bne.n 8006460 <HAL_ADC_ConfigChannel+0x544>
  14139. 8006442: 485b ldr r0, [pc, #364] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14140. 8006444: f7ff fa90 bl 8005968 <LL_ADC_IsEnabled>
  14141. 8006448: 4604 mov r4, r0
  14142. 800644a: 485a ldr r0, [pc, #360] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14143. 800644c: f7ff fa8c bl 8005968 <LL_ADC_IsEnabled>
  14144. 8006450: 4603 mov r3, r0
  14145. 8006452: 4323 orrs r3, r4
  14146. 8006454: 2b00 cmp r3, #0
  14147. 8006456: bf0c ite eq
  14148. 8006458: 2301 moveq r3, #1
  14149. 800645a: 2300 movne r3, #0
  14150. 800645c: b2db uxtb r3, r3
  14151. 800645e: e008 b.n 8006472 <HAL_ADC_ConfigChannel+0x556>
  14152. 8006460: 4855 ldr r0, [pc, #340] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14153. 8006462: f7ff fa81 bl 8005968 <LL_ADC_IsEnabled>
  14154. 8006466: 4603 mov r3, r0
  14155. 8006468: 2b00 cmp r3, #0
  14156. 800646a: bf0c ite eq
  14157. 800646c: 2301 moveq r3, #1
  14158. 800646e: 2300 movne r3, #0
  14159. 8006470: b2db uxtb r3, r3
  14160. 8006472: 2b00 cmp r3, #0
  14161. 8006474: d07d beq.n 8006572 <HAL_ADC_ConfigChannel+0x656>
  14162. {
  14163. /* If the requested internal measurement path has already been enabled, */
  14164. /* bypass the configuration processing. */
  14165. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  14166. 8006476: 683b ldr r3, [r7, #0]
  14167. 8006478: 681b ldr r3, [r3, #0]
  14168. 800647a: 4a50 ldr r2, [pc, #320] @ (80065bc <HAL_ADC_ConfigChannel+0x6a0>)
  14169. 800647c: 4293 cmp r3, r2
  14170. 800647e: d130 bne.n 80064e2 <HAL_ADC_ConfigChannel+0x5c6>
  14171. 8006480: 6efb ldr r3, [r7, #108] @ 0x6c
  14172. 8006482: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  14173. 8006486: 2b00 cmp r3, #0
  14174. 8006488: d12b bne.n 80064e2 <HAL_ADC_ConfigChannel+0x5c6>
  14175. {
  14176. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  14177. 800648a: 687b ldr r3, [r7, #4]
  14178. 800648c: 681b ldr r3, [r3, #0]
  14179. 800648e: 4a4a ldr r2, [pc, #296] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14180. 8006490: 4293 cmp r3, r2
  14181. 8006492: f040 8081 bne.w 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14182. {
  14183. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  14184. 8006496: 687b ldr r3, [r7, #4]
  14185. 8006498: 681b ldr r3, [r3, #0]
  14186. 800649a: 4a45 ldr r2, [pc, #276] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14187. 800649c: 4293 cmp r3, r2
  14188. 800649e: d004 beq.n 80064aa <HAL_ADC_ConfigChannel+0x58e>
  14189. 80064a0: 687b ldr r3, [r7, #4]
  14190. 80064a2: 681b ldr r3, [r3, #0]
  14191. 80064a4: 4a43 ldr r2, [pc, #268] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14192. 80064a6: 4293 cmp r3, r2
  14193. 80064a8: d101 bne.n 80064ae <HAL_ADC_ConfigChannel+0x592>
  14194. 80064aa: 4a45 ldr r2, [pc, #276] @ (80065c0 <HAL_ADC_ConfigChannel+0x6a4>)
  14195. 80064ac: e000 b.n 80064b0 <HAL_ADC_ConfigChannel+0x594>
  14196. 80064ae: 4a3f ldr r2, [pc, #252] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14197. 80064b0: 6efb ldr r3, [r7, #108] @ 0x6c
  14198. 80064b2: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  14199. 80064b6: 4619 mov r1, r3
  14200. 80064b8: 4610 mov r0, r2
  14201. 80064ba: f7ff f8ba bl 8005632 <LL_ADC_SetCommonPathInternalCh>
  14202. /* Delay for temperature sensor stabilization time */
  14203. /* Wait loop initialization and execution */
  14204. /* Note: Variable divided by 2 to compensate partially */
  14205. /* CPU processing cycles, scaling in us split to not */
  14206. /* exceed 32 bits register capacity and handle low frequency. */
  14207. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  14208. 80064be: 4b41 ldr r3, [pc, #260] @ (80065c4 <HAL_ADC_ConfigChannel+0x6a8>)
  14209. 80064c0: 681b ldr r3, [r3, #0]
  14210. 80064c2: 099b lsrs r3, r3, #6
  14211. 80064c4: 4a40 ldr r2, [pc, #256] @ (80065c8 <HAL_ADC_ConfigChannel+0x6ac>)
  14212. 80064c6: fba2 2303 umull r2, r3, r2, r3
  14213. 80064ca: 099b lsrs r3, r3, #6
  14214. 80064cc: 3301 adds r3, #1
  14215. 80064ce: 005b lsls r3, r3, #1
  14216. 80064d0: 60bb str r3, [r7, #8]
  14217. while (wait_loop_index != 0UL)
  14218. 80064d2: e002 b.n 80064da <HAL_ADC_ConfigChannel+0x5be>
  14219. {
  14220. wait_loop_index--;
  14221. 80064d4: 68bb ldr r3, [r7, #8]
  14222. 80064d6: 3b01 subs r3, #1
  14223. 80064d8: 60bb str r3, [r7, #8]
  14224. while (wait_loop_index != 0UL)
  14225. 80064da: 68bb ldr r3, [r7, #8]
  14226. 80064dc: 2b00 cmp r3, #0
  14227. 80064de: d1f9 bne.n 80064d4 <HAL_ADC_ConfigChannel+0x5b8>
  14228. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  14229. 80064e0: e05a b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14230. }
  14231. }
  14232. }
  14233. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  14234. 80064e2: 683b ldr r3, [r7, #0]
  14235. 80064e4: 681b ldr r3, [r3, #0]
  14236. 80064e6: 4a39 ldr r2, [pc, #228] @ (80065cc <HAL_ADC_ConfigChannel+0x6b0>)
  14237. 80064e8: 4293 cmp r3, r2
  14238. 80064ea: d11e bne.n 800652a <HAL_ADC_ConfigChannel+0x60e>
  14239. 80064ec: 6efb ldr r3, [r7, #108] @ 0x6c
  14240. 80064ee: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  14241. 80064f2: 2b00 cmp r3, #0
  14242. 80064f4: d119 bne.n 800652a <HAL_ADC_ConfigChannel+0x60e>
  14243. {
  14244. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14245. 80064f6: 687b ldr r3, [r7, #4]
  14246. 80064f8: 681b ldr r3, [r3, #0]
  14247. 80064fa: 4a2f ldr r2, [pc, #188] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14248. 80064fc: 4293 cmp r3, r2
  14249. 80064fe: d14b bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14250. {
  14251. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  14252. 8006500: 687b ldr r3, [r7, #4]
  14253. 8006502: 681b ldr r3, [r3, #0]
  14254. 8006504: 4a2a ldr r2, [pc, #168] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14255. 8006506: 4293 cmp r3, r2
  14256. 8006508: d004 beq.n 8006514 <HAL_ADC_ConfigChannel+0x5f8>
  14257. 800650a: 687b ldr r3, [r7, #4]
  14258. 800650c: 681b ldr r3, [r3, #0]
  14259. 800650e: 4a29 ldr r2, [pc, #164] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14260. 8006510: 4293 cmp r3, r2
  14261. 8006512: d101 bne.n 8006518 <HAL_ADC_ConfigChannel+0x5fc>
  14262. 8006514: 4a2a ldr r2, [pc, #168] @ (80065c0 <HAL_ADC_ConfigChannel+0x6a4>)
  14263. 8006516: e000 b.n 800651a <HAL_ADC_ConfigChannel+0x5fe>
  14264. 8006518: 4a24 ldr r2, [pc, #144] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14265. 800651a: 6efb ldr r3, [r7, #108] @ 0x6c
  14266. 800651c: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  14267. 8006520: 4619 mov r1, r3
  14268. 8006522: 4610 mov r0, r2
  14269. 8006524: f7ff f885 bl 8005632 <LL_ADC_SetCommonPathInternalCh>
  14270. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14271. 8006528: e036 b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14272. }
  14273. }
  14274. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  14275. 800652a: 683b ldr r3, [r7, #0]
  14276. 800652c: 681b ldr r3, [r3, #0]
  14277. 800652e: 4a28 ldr r2, [pc, #160] @ (80065d0 <HAL_ADC_ConfigChannel+0x6b4>)
  14278. 8006530: 4293 cmp r3, r2
  14279. 8006532: d131 bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14280. 8006534: 6efb ldr r3, [r7, #108] @ 0x6c
  14281. 8006536: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  14282. 800653a: 2b00 cmp r3, #0
  14283. 800653c: d12c bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14284. {
  14285. if (ADC_VREFINT_INSTANCE(hadc))
  14286. 800653e: 687b ldr r3, [r7, #4]
  14287. 8006540: 681b ldr r3, [r3, #0]
  14288. 8006542: 4a1d ldr r2, [pc, #116] @ (80065b8 <HAL_ADC_ConfigChannel+0x69c>)
  14289. 8006544: 4293 cmp r3, r2
  14290. 8006546: d127 bne.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14291. {
  14292. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  14293. 8006548: 687b ldr r3, [r7, #4]
  14294. 800654a: 681b ldr r3, [r3, #0]
  14295. 800654c: 4a18 ldr r2, [pc, #96] @ (80065b0 <HAL_ADC_ConfigChannel+0x694>)
  14296. 800654e: 4293 cmp r3, r2
  14297. 8006550: d004 beq.n 800655c <HAL_ADC_ConfigChannel+0x640>
  14298. 8006552: 687b ldr r3, [r7, #4]
  14299. 8006554: 681b ldr r3, [r3, #0]
  14300. 8006556: 4a17 ldr r2, [pc, #92] @ (80065b4 <HAL_ADC_ConfigChannel+0x698>)
  14301. 8006558: 4293 cmp r3, r2
  14302. 800655a: d101 bne.n 8006560 <HAL_ADC_ConfigChannel+0x644>
  14303. 800655c: 4a18 ldr r2, [pc, #96] @ (80065c0 <HAL_ADC_ConfigChannel+0x6a4>)
  14304. 800655e: e000 b.n 8006562 <HAL_ADC_ConfigChannel+0x646>
  14305. 8006560: 4a12 ldr r2, [pc, #72] @ (80065ac <HAL_ADC_ConfigChannel+0x690>)
  14306. 8006562: 6efb ldr r3, [r7, #108] @ 0x6c
  14307. 8006564: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  14308. 8006568: 4619 mov r1, r3
  14309. 800656a: 4610 mov r0, r2
  14310. 800656c: f7ff f861 bl 8005632 <LL_ADC_SetCommonPathInternalCh>
  14311. 8006570: e012 b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14312. /* enabled and other ADC of the common group are enabled, internal */
  14313. /* measurement paths cannot be enabled. */
  14314. else
  14315. {
  14316. /* Update ADC state machine to error */
  14317. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14318. 8006572: 687b ldr r3, [r7, #4]
  14319. 8006574: 6d5b ldr r3, [r3, #84] @ 0x54
  14320. 8006576: f043 0220 orr.w r2, r3, #32
  14321. 800657a: 687b ldr r3, [r7, #4]
  14322. 800657c: 655a str r2, [r3, #84] @ 0x54
  14323. tmp_hal_status = HAL_ERROR;
  14324. 800657e: 2301 movs r3, #1
  14325. 8006580: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14326. 8006584: e008 b.n 8006598 <HAL_ADC_ConfigChannel+0x67c>
  14327. /* channel could be done on neither of the channel configuration structure */
  14328. /* parameters. */
  14329. else
  14330. {
  14331. /* Update ADC state machine to error */
  14332. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14333. 8006586: 687b ldr r3, [r7, #4]
  14334. 8006588: 6d5b ldr r3, [r3, #84] @ 0x54
  14335. 800658a: f043 0220 orr.w r2, r3, #32
  14336. 800658e: 687b ldr r3, [r7, #4]
  14337. 8006590: 655a str r2, [r3, #84] @ 0x54
  14338. tmp_hal_status = HAL_ERROR;
  14339. 8006592: 2301 movs r3, #1
  14340. 8006594: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14341. }
  14342. /* Process unlocked */
  14343. __HAL_UNLOCK(hadc);
  14344. 8006598: 687b ldr r3, [r7, #4]
  14345. 800659a: 2200 movs r2, #0
  14346. 800659c: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14347. /* Return function status */
  14348. return tmp_hal_status;
  14349. 80065a0: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  14350. }
  14351. 80065a4: 4618 mov r0, r3
  14352. 80065a6: 3784 adds r7, #132 @ 0x84
  14353. 80065a8: 46bd mov sp, r7
  14354. 80065aa: bd90 pop {r4, r7, pc}
  14355. 80065ac: 58026300 .word 0x58026300
  14356. 80065b0: 40022000 .word 0x40022000
  14357. 80065b4: 40022100 .word 0x40022100
  14358. 80065b8: 58026000 .word 0x58026000
  14359. 80065bc: cb840000 .word 0xcb840000
  14360. 80065c0: 40022300 .word 0x40022300
  14361. 80065c4: 24000034 .word 0x24000034
  14362. 80065c8: 053e2d63 .word 0x053e2d63
  14363. 80065cc: c7520000 .word 0xc7520000
  14364. 80065d0: cfb80000 .word 0xcfb80000
  14365. 080065d4 <ADC_Enable>:
  14366. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  14367. * @param hadc ADC handle
  14368. * @retval HAL status.
  14369. */
  14370. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  14371. {
  14372. 80065d4: b580 push {r7, lr}
  14373. 80065d6: b084 sub sp, #16
  14374. 80065d8: af00 add r7, sp, #0
  14375. 80065da: 6078 str r0, [r7, #4]
  14376. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  14377. /* enabling phase not yet completed: flag ADC ready not yet set). */
  14378. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  14379. /* causes: ADC clock not running, ...). */
  14380. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14381. 80065dc: 687b ldr r3, [r7, #4]
  14382. 80065de: 681b ldr r3, [r3, #0]
  14383. 80065e0: 4618 mov r0, r3
  14384. 80065e2: f7ff f9c1 bl 8005968 <LL_ADC_IsEnabled>
  14385. 80065e6: 4603 mov r3, r0
  14386. 80065e8: 2b00 cmp r3, #0
  14387. 80065ea: d16e bne.n 80066ca <ADC_Enable+0xf6>
  14388. {
  14389. /* Check if conditions to enable the ADC are fulfilled */
  14390. 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)
  14391. 80065ec: 687b ldr r3, [r7, #4]
  14392. 80065ee: 681b ldr r3, [r3, #0]
  14393. 80065f0: 689a ldr r2, [r3, #8]
  14394. 80065f2: 4b38 ldr r3, [pc, #224] @ (80066d4 <ADC_Enable+0x100>)
  14395. 80065f4: 4013 ands r3, r2
  14396. 80065f6: 2b00 cmp r3, #0
  14397. 80065f8: d00d beq.n 8006616 <ADC_Enable+0x42>
  14398. {
  14399. /* Update ADC state machine to error */
  14400. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14401. 80065fa: 687b ldr r3, [r7, #4]
  14402. 80065fc: 6d5b ldr r3, [r3, #84] @ 0x54
  14403. 80065fe: f043 0210 orr.w r2, r3, #16
  14404. 8006602: 687b ldr r3, [r7, #4]
  14405. 8006604: 655a str r2, [r3, #84] @ 0x54
  14406. /* Set ADC error code to ADC peripheral internal error */
  14407. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14408. 8006606: 687b ldr r3, [r7, #4]
  14409. 8006608: 6d9b ldr r3, [r3, #88] @ 0x58
  14410. 800660a: f043 0201 orr.w r2, r3, #1
  14411. 800660e: 687b ldr r3, [r7, #4]
  14412. 8006610: 659a str r2, [r3, #88] @ 0x58
  14413. return HAL_ERROR;
  14414. 8006612: 2301 movs r3, #1
  14415. 8006614: e05a b.n 80066cc <ADC_Enable+0xf8>
  14416. }
  14417. /* Enable the ADC peripheral */
  14418. LL_ADC_Enable(hadc->Instance);
  14419. 8006616: 687b ldr r3, [r7, #4]
  14420. 8006618: 681b ldr r3, [r3, #0]
  14421. 800661a: 4618 mov r0, r3
  14422. 800661c: f7ff f97c bl 8005918 <LL_ADC_Enable>
  14423. /* Wait for ADC effectively enabled */
  14424. tickstart = HAL_GetTick();
  14425. 8006620: f7fe ffa2 bl 8005568 <HAL_GetTick>
  14426. 8006624: 60f8 str r0, [r7, #12]
  14427. /* Poll for ADC ready flag raised except case of multimode enabled
  14428. and ADC slave selected. */
  14429. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14430. 8006626: 687b ldr r3, [r7, #4]
  14431. 8006628: 681b ldr r3, [r3, #0]
  14432. 800662a: 4a2b ldr r2, [pc, #172] @ (80066d8 <ADC_Enable+0x104>)
  14433. 800662c: 4293 cmp r3, r2
  14434. 800662e: d004 beq.n 800663a <ADC_Enable+0x66>
  14435. 8006630: 687b ldr r3, [r7, #4]
  14436. 8006632: 681b ldr r3, [r3, #0]
  14437. 8006634: 4a29 ldr r2, [pc, #164] @ (80066dc <ADC_Enable+0x108>)
  14438. 8006636: 4293 cmp r3, r2
  14439. 8006638: d101 bne.n 800663e <ADC_Enable+0x6a>
  14440. 800663a: 4b29 ldr r3, [pc, #164] @ (80066e0 <ADC_Enable+0x10c>)
  14441. 800663c: e000 b.n 8006640 <ADC_Enable+0x6c>
  14442. 800663e: 4b29 ldr r3, [pc, #164] @ (80066e4 <ADC_Enable+0x110>)
  14443. 8006640: 4618 mov r0, r3
  14444. 8006642: f7ff f90d bl 8005860 <LL_ADC_GetMultimode>
  14445. 8006646: 60b8 str r0, [r7, #8]
  14446. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14447. 8006648: 687b ldr r3, [r7, #4]
  14448. 800664a: 681b ldr r3, [r3, #0]
  14449. 800664c: 4a23 ldr r2, [pc, #140] @ (80066dc <ADC_Enable+0x108>)
  14450. 800664e: 4293 cmp r3, r2
  14451. 8006650: d002 beq.n 8006658 <ADC_Enable+0x84>
  14452. 8006652: 687b ldr r3, [r7, #4]
  14453. 8006654: 681b ldr r3, [r3, #0]
  14454. 8006656: e000 b.n 800665a <ADC_Enable+0x86>
  14455. 8006658: 4b1f ldr r3, [pc, #124] @ (80066d8 <ADC_Enable+0x104>)
  14456. 800665a: 687a ldr r2, [r7, #4]
  14457. 800665c: 6812 ldr r2, [r2, #0]
  14458. 800665e: 4293 cmp r3, r2
  14459. 8006660: d02c beq.n 80066bc <ADC_Enable+0xe8>
  14460. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14461. 8006662: 68bb ldr r3, [r7, #8]
  14462. 8006664: 2b00 cmp r3, #0
  14463. 8006666: d130 bne.n 80066ca <ADC_Enable+0xf6>
  14464. )
  14465. {
  14466. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14467. 8006668: e028 b.n 80066bc <ADC_Enable+0xe8>
  14468. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  14469. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  14470. 4 ADC clock cycle duration */
  14471. /* Note: Test of ADC enabled required due to hardware constraint to */
  14472. /* not enable ADC if already enabled. */
  14473. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14474. 800666a: 687b ldr r3, [r7, #4]
  14475. 800666c: 681b ldr r3, [r3, #0]
  14476. 800666e: 4618 mov r0, r3
  14477. 8006670: f7ff f97a bl 8005968 <LL_ADC_IsEnabled>
  14478. 8006674: 4603 mov r3, r0
  14479. 8006676: 2b00 cmp r3, #0
  14480. 8006678: d104 bne.n 8006684 <ADC_Enable+0xb0>
  14481. {
  14482. LL_ADC_Enable(hadc->Instance);
  14483. 800667a: 687b ldr r3, [r7, #4]
  14484. 800667c: 681b ldr r3, [r3, #0]
  14485. 800667e: 4618 mov r0, r3
  14486. 8006680: f7ff f94a bl 8005918 <LL_ADC_Enable>
  14487. }
  14488. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  14489. 8006684: f7fe ff70 bl 8005568 <HAL_GetTick>
  14490. 8006688: 4602 mov r2, r0
  14491. 800668a: 68fb ldr r3, [r7, #12]
  14492. 800668c: 1ad3 subs r3, r2, r3
  14493. 800668e: 2b02 cmp r3, #2
  14494. 8006690: d914 bls.n 80066bc <ADC_Enable+0xe8>
  14495. {
  14496. /* New check to avoid false timeout detection in case of preemption */
  14497. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14498. 8006692: 687b ldr r3, [r7, #4]
  14499. 8006694: 681b ldr r3, [r3, #0]
  14500. 8006696: 681b ldr r3, [r3, #0]
  14501. 8006698: f003 0301 and.w r3, r3, #1
  14502. 800669c: 2b01 cmp r3, #1
  14503. 800669e: d00d beq.n 80066bc <ADC_Enable+0xe8>
  14504. {
  14505. /* Update ADC state machine to error */
  14506. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14507. 80066a0: 687b ldr r3, [r7, #4]
  14508. 80066a2: 6d5b ldr r3, [r3, #84] @ 0x54
  14509. 80066a4: f043 0210 orr.w r2, r3, #16
  14510. 80066a8: 687b ldr r3, [r7, #4]
  14511. 80066aa: 655a str r2, [r3, #84] @ 0x54
  14512. /* Set ADC error code to ADC peripheral internal error */
  14513. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14514. 80066ac: 687b ldr r3, [r7, #4]
  14515. 80066ae: 6d9b ldr r3, [r3, #88] @ 0x58
  14516. 80066b0: f043 0201 orr.w r2, r3, #1
  14517. 80066b4: 687b ldr r3, [r7, #4]
  14518. 80066b6: 659a str r2, [r3, #88] @ 0x58
  14519. return HAL_ERROR;
  14520. 80066b8: 2301 movs r3, #1
  14521. 80066ba: e007 b.n 80066cc <ADC_Enable+0xf8>
  14522. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14523. 80066bc: 687b ldr r3, [r7, #4]
  14524. 80066be: 681b ldr r3, [r3, #0]
  14525. 80066c0: 681b ldr r3, [r3, #0]
  14526. 80066c2: f003 0301 and.w r3, r3, #1
  14527. 80066c6: 2b01 cmp r3, #1
  14528. 80066c8: d1cf bne.n 800666a <ADC_Enable+0x96>
  14529. }
  14530. }
  14531. }
  14532. /* Return HAL status */
  14533. return HAL_OK;
  14534. 80066ca: 2300 movs r3, #0
  14535. }
  14536. 80066cc: 4618 mov r0, r3
  14537. 80066ce: 3710 adds r7, #16
  14538. 80066d0: 46bd mov sp, r7
  14539. 80066d2: bd80 pop {r7, pc}
  14540. 80066d4: 8000003f .word 0x8000003f
  14541. 80066d8: 40022000 .word 0x40022000
  14542. 80066dc: 40022100 .word 0x40022100
  14543. 80066e0: 40022300 .word 0x40022300
  14544. 80066e4: 58026300 .word 0x58026300
  14545. 080066e8 <ADC_Disable>:
  14546. * stopped.
  14547. * @param hadc ADC handle
  14548. * @retval HAL status.
  14549. */
  14550. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  14551. {
  14552. 80066e8: b580 push {r7, lr}
  14553. 80066ea: b084 sub sp, #16
  14554. 80066ec: af00 add r7, sp, #0
  14555. 80066ee: 6078 str r0, [r7, #4]
  14556. uint32_t tickstart;
  14557. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  14558. 80066f0: 687b ldr r3, [r7, #4]
  14559. 80066f2: 681b ldr r3, [r3, #0]
  14560. 80066f4: 4618 mov r0, r3
  14561. 80066f6: f7ff f94a bl 800598e <LL_ADC_IsDisableOngoing>
  14562. 80066fa: 60f8 str r0, [r7, #12]
  14563. /* Verification if ADC is not already disabled: */
  14564. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  14565. /* disabled. */
  14566. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  14567. 80066fc: 687b ldr r3, [r7, #4]
  14568. 80066fe: 681b ldr r3, [r3, #0]
  14569. 8006700: 4618 mov r0, r3
  14570. 8006702: f7ff f931 bl 8005968 <LL_ADC_IsEnabled>
  14571. 8006706: 4603 mov r3, r0
  14572. 8006708: 2b00 cmp r3, #0
  14573. 800670a: d047 beq.n 800679c <ADC_Disable+0xb4>
  14574. && (tmp_adc_is_disable_on_going == 0UL)
  14575. 800670c: 68fb ldr r3, [r7, #12]
  14576. 800670e: 2b00 cmp r3, #0
  14577. 8006710: d144 bne.n 800679c <ADC_Disable+0xb4>
  14578. )
  14579. {
  14580. /* Check if conditions to disable the ADC are fulfilled */
  14581. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  14582. 8006712: 687b ldr r3, [r7, #4]
  14583. 8006714: 681b ldr r3, [r3, #0]
  14584. 8006716: 689b ldr r3, [r3, #8]
  14585. 8006718: f003 030d and.w r3, r3, #13
  14586. 800671c: 2b01 cmp r3, #1
  14587. 800671e: d10c bne.n 800673a <ADC_Disable+0x52>
  14588. {
  14589. /* Disable the ADC peripheral */
  14590. LL_ADC_Disable(hadc->Instance);
  14591. 8006720: 687b ldr r3, [r7, #4]
  14592. 8006722: 681b ldr r3, [r3, #0]
  14593. 8006724: 4618 mov r0, r3
  14594. 8006726: f7ff f90b bl 8005940 <LL_ADC_Disable>
  14595. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  14596. 800672a: 687b ldr r3, [r7, #4]
  14597. 800672c: 681b ldr r3, [r3, #0]
  14598. 800672e: 2203 movs r2, #3
  14599. 8006730: 601a str r2, [r3, #0]
  14600. return HAL_ERROR;
  14601. }
  14602. /* Wait for ADC effectively disabled */
  14603. /* Get tick count */
  14604. tickstart = HAL_GetTick();
  14605. 8006732: f7fe ff19 bl 8005568 <HAL_GetTick>
  14606. 8006736: 60b8 str r0, [r7, #8]
  14607. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14608. 8006738: e029 b.n 800678e <ADC_Disable+0xa6>
  14609. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14610. 800673a: 687b ldr r3, [r7, #4]
  14611. 800673c: 6d5b ldr r3, [r3, #84] @ 0x54
  14612. 800673e: f043 0210 orr.w r2, r3, #16
  14613. 8006742: 687b ldr r3, [r7, #4]
  14614. 8006744: 655a str r2, [r3, #84] @ 0x54
  14615. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14616. 8006746: 687b ldr r3, [r7, #4]
  14617. 8006748: 6d9b ldr r3, [r3, #88] @ 0x58
  14618. 800674a: f043 0201 orr.w r2, r3, #1
  14619. 800674e: 687b ldr r3, [r7, #4]
  14620. 8006750: 659a str r2, [r3, #88] @ 0x58
  14621. return HAL_ERROR;
  14622. 8006752: 2301 movs r3, #1
  14623. 8006754: e023 b.n 800679e <ADC_Disable+0xb6>
  14624. {
  14625. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  14626. 8006756: f7fe ff07 bl 8005568 <HAL_GetTick>
  14627. 800675a: 4602 mov r2, r0
  14628. 800675c: 68bb ldr r3, [r7, #8]
  14629. 800675e: 1ad3 subs r3, r2, r3
  14630. 8006760: 2b02 cmp r3, #2
  14631. 8006762: d914 bls.n 800678e <ADC_Disable+0xa6>
  14632. {
  14633. /* New check to avoid false timeout detection in case of preemption */
  14634. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14635. 8006764: 687b ldr r3, [r7, #4]
  14636. 8006766: 681b ldr r3, [r3, #0]
  14637. 8006768: 689b ldr r3, [r3, #8]
  14638. 800676a: f003 0301 and.w r3, r3, #1
  14639. 800676e: 2b00 cmp r3, #0
  14640. 8006770: d00d beq.n 800678e <ADC_Disable+0xa6>
  14641. {
  14642. /* Update ADC state machine to error */
  14643. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14644. 8006772: 687b ldr r3, [r7, #4]
  14645. 8006774: 6d5b ldr r3, [r3, #84] @ 0x54
  14646. 8006776: f043 0210 orr.w r2, r3, #16
  14647. 800677a: 687b ldr r3, [r7, #4]
  14648. 800677c: 655a str r2, [r3, #84] @ 0x54
  14649. /* Set ADC error code to ADC peripheral internal error */
  14650. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14651. 800677e: 687b ldr r3, [r7, #4]
  14652. 8006780: 6d9b ldr r3, [r3, #88] @ 0x58
  14653. 8006782: f043 0201 orr.w r2, r3, #1
  14654. 8006786: 687b ldr r3, [r7, #4]
  14655. 8006788: 659a str r2, [r3, #88] @ 0x58
  14656. return HAL_ERROR;
  14657. 800678a: 2301 movs r3, #1
  14658. 800678c: e007 b.n 800679e <ADC_Disable+0xb6>
  14659. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14660. 800678e: 687b ldr r3, [r7, #4]
  14661. 8006790: 681b ldr r3, [r3, #0]
  14662. 8006792: 689b ldr r3, [r3, #8]
  14663. 8006794: f003 0301 and.w r3, r3, #1
  14664. 8006798: 2b00 cmp r3, #0
  14665. 800679a: d1dc bne.n 8006756 <ADC_Disable+0x6e>
  14666. }
  14667. }
  14668. }
  14669. /* Return HAL status */
  14670. return HAL_OK;
  14671. 800679c: 2300 movs r3, #0
  14672. }
  14673. 800679e: 4618 mov r0, r3
  14674. 80067a0: 3710 adds r7, #16
  14675. 80067a2: 46bd mov sp, r7
  14676. 80067a4: bd80 pop {r7, pc}
  14677. 080067a6 <ADC_DMAConvCplt>:
  14678. * @brief DMA transfer complete callback.
  14679. * @param hdma pointer to DMA handle.
  14680. * @retval None
  14681. */
  14682. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  14683. {
  14684. 80067a6: b580 push {r7, lr}
  14685. 80067a8: b084 sub sp, #16
  14686. 80067aa: af00 add r7, sp, #0
  14687. 80067ac: 6078 str r0, [r7, #4]
  14688. /* Retrieve ADC handle corresponding to current DMA handle */
  14689. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14690. 80067ae: 687b ldr r3, [r7, #4]
  14691. 80067b0: 6b9b ldr r3, [r3, #56] @ 0x38
  14692. 80067b2: 60fb str r3, [r7, #12]
  14693. /* Update state machine on conversion status if not in error state */
  14694. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  14695. 80067b4: 68fb ldr r3, [r7, #12]
  14696. 80067b6: 6d5b ldr r3, [r3, #84] @ 0x54
  14697. 80067b8: f003 0350 and.w r3, r3, #80 @ 0x50
  14698. 80067bc: 2b00 cmp r3, #0
  14699. 80067be: d14b bne.n 8006858 <ADC_DMAConvCplt+0xb2>
  14700. {
  14701. /* Set ADC state */
  14702. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  14703. 80067c0: 68fb ldr r3, [r7, #12]
  14704. 80067c2: 6d5b ldr r3, [r3, #84] @ 0x54
  14705. 80067c4: f443 7200 orr.w r2, r3, #512 @ 0x200
  14706. 80067c8: 68fb ldr r3, [r7, #12]
  14707. 80067ca: 655a str r2, [r3, #84] @ 0x54
  14708. /* Determine whether any further conversion upcoming on group regular */
  14709. /* by external trigger, continuous mode or scan sequence on going */
  14710. /* to disable interruption. */
  14711. /* Is it the end of the regular sequence ? */
  14712. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  14713. 80067cc: 68fb ldr r3, [r7, #12]
  14714. 80067ce: 681b ldr r3, [r3, #0]
  14715. 80067d0: 681b ldr r3, [r3, #0]
  14716. 80067d2: f003 0308 and.w r3, r3, #8
  14717. 80067d6: 2b00 cmp r3, #0
  14718. 80067d8: d021 beq.n 800681e <ADC_DMAConvCplt+0x78>
  14719. {
  14720. /* Are conversions software-triggered ? */
  14721. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  14722. 80067da: 68fb ldr r3, [r7, #12]
  14723. 80067dc: 681b ldr r3, [r3, #0]
  14724. 80067de: 4618 mov r0, r3
  14725. 80067e0: f7fe ff9c bl 800571c <LL_ADC_REG_IsTriggerSourceSWStart>
  14726. 80067e4: 4603 mov r3, r0
  14727. 80067e6: 2b00 cmp r3, #0
  14728. 80067e8: d032 beq.n 8006850 <ADC_DMAConvCplt+0xaa>
  14729. {
  14730. /* Is CONT bit set ? */
  14731. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  14732. 80067ea: 68fb ldr r3, [r7, #12]
  14733. 80067ec: 681b ldr r3, [r3, #0]
  14734. 80067ee: 68db ldr r3, [r3, #12]
  14735. 80067f0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  14736. 80067f4: 2b00 cmp r3, #0
  14737. 80067f6: d12b bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14738. {
  14739. /* CONT bit is not set, no more conversions expected */
  14740. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  14741. 80067f8: 68fb ldr r3, [r7, #12]
  14742. 80067fa: 6d5b ldr r3, [r3, #84] @ 0x54
  14743. 80067fc: f423 7280 bic.w r2, r3, #256 @ 0x100
  14744. 8006800: 68fb ldr r3, [r7, #12]
  14745. 8006802: 655a str r2, [r3, #84] @ 0x54
  14746. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  14747. 8006804: 68fb ldr r3, [r7, #12]
  14748. 8006806: 6d5b ldr r3, [r3, #84] @ 0x54
  14749. 8006808: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14750. 800680c: 2b00 cmp r3, #0
  14751. 800680e: d11f bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14752. {
  14753. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  14754. 8006810: 68fb ldr r3, [r7, #12]
  14755. 8006812: 6d5b ldr r3, [r3, #84] @ 0x54
  14756. 8006814: f043 0201 orr.w r2, r3, #1
  14757. 8006818: 68fb ldr r3, [r7, #12]
  14758. 800681a: 655a str r2, [r3, #84] @ 0x54
  14759. 800681c: e018 b.n 8006850 <ADC_DMAConvCplt+0xaa>
  14760. }
  14761. else
  14762. {
  14763. /* DMA End of Transfer interrupt was triggered but conversions sequence
  14764. is not over. If DMACFG is set to 0, conversions are stopped. */
  14765. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  14766. 800681e: 68fb ldr r3, [r7, #12]
  14767. 8006820: 681b ldr r3, [r3, #0]
  14768. 8006822: 68db ldr r3, [r3, #12]
  14769. 8006824: f003 0303 and.w r3, r3, #3
  14770. 8006828: 2b00 cmp r3, #0
  14771. 800682a: d111 bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14772. {
  14773. /* DMACFG bit is not set, conversions are stopped. */
  14774. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  14775. 800682c: 68fb ldr r3, [r7, #12]
  14776. 800682e: 6d5b ldr r3, [r3, #84] @ 0x54
  14777. 8006830: f423 7280 bic.w r2, r3, #256 @ 0x100
  14778. 8006834: 68fb ldr r3, [r7, #12]
  14779. 8006836: 655a str r2, [r3, #84] @ 0x54
  14780. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  14781. 8006838: 68fb ldr r3, [r7, #12]
  14782. 800683a: 6d5b ldr r3, [r3, #84] @ 0x54
  14783. 800683c: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14784. 8006840: 2b00 cmp r3, #0
  14785. 8006842: d105 bne.n 8006850 <ADC_DMAConvCplt+0xaa>
  14786. {
  14787. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  14788. 8006844: 68fb ldr r3, [r7, #12]
  14789. 8006846: 6d5b ldr r3, [r3, #84] @ 0x54
  14790. 8006848: f043 0201 orr.w r2, r3, #1
  14791. 800684c: 68fb ldr r3, [r7, #12]
  14792. 800684e: 655a str r2, [r3, #84] @ 0x54
  14793. /* Conversion complete callback */
  14794. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14795. hadc->ConvCpltCallback(hadc);
  14796. #else
  14797. HAL_ADC_ConvCpltCallback(hadc);
  14798. 8006850: 68f8 ldr r0, [r7, #12]
  14799. 8006852: f7fb f817 bl 8001884 <HAL_ADC_ConvCpltCallback>
  14800. {
  14801. /* Call ADC DMA error callback */
  14802. hadc->DMA_Handle->XferErrorCallback(hdma);
  14803. }
  14804. }
  14805. }
  14806. 8006856: e00e b.n 8006876 <ADC_DMAConvCplt+0xd0>
  14807. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  14808. 8006858: 68fb ldr r3, [r7, #12]
  14809. 800685a: 6d5b ldr r3, [r3, #84] @ 0x54
  14810. 800685c: f003 0310 and.w r3, r3, #16
  14811. 8006860: 2b00 cmp r3, #0
  14812. 8006862: d003 beq.n 800686c <ADC_DMAConvCplt+0xc6>
  14813. HAL_ADC_ErrorCallback(hadc);
  14814. 8006864: 68f8 ldr r0, [r7, #12]
  14815. 8006866: f7ff fb4f bl 8005f08 <HAL_ADC_ErrorCallback>
  14816. }
  14817. 800686a: e004 b.n 8006876 <ADC_DMAConvCplt+0xd0>
  14818. hadc->DMA_Handle->XferErrorCallback(hdma);
  14819. 800686c: 68fb ldr r3, [r7, #12]
  14820. 800686e: 6cdb ldr r3, [r3, #76] @ 0x4c
  14821. 8006870: 6cdb ldr r3, [r3, #76] @ 0x4c
  14822. 8006872: 6878 ldr r0, [r7, #4]
  14823. 8006874: 4798 blx r3
  14824. }
  14825. 8006876: bf00 nop
  14826. 8006878: 3710 adds r7, #16
  14827. 800687a: 46bd mov sp, r7
  14828. 800687c: bd80 pop {r7, pc}
  14829. 0800687e <ADC_DMAHalfConvCplt>:
  14830. * @brief DMA half transfer complete callback.
  14831. * @param hdma pointer to DMA handle.
  14832. * @retval None
  14833. */
  14834. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  14835. {
  14836. 800687e: b580 push {r7, lr}
  14837. 8006880: b084 sub sp, #16
  14838. 8006882: af00 add r7, sp, #0
  14839. 8006884: 6078 str r0, [r7, #4]
  14840. /* Retrieve ADC handle corresponding to current DMA handle */
  14841. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14842. 8006886: 687b ldr r3, [r7, #4]
  14843. 8006888: 6b9b ldr r3, [r3, #56] @ 0x38
  14844. 800688a: 60fb str r3, [r7, #12]
  14845. /* Half conversion callback */
  14846. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14847. hadc->ConvHalfCpltCallback(hadc);
  14848. #else
  14849. HAL_ADC_ConvHalfCpltCallback(hadc);
  14850. 800688c: 68f8 ldr r0, [r7, #12]
  14851. 800688e: f7ff fb31 bl 8005ef4 <HAL_ADC_ConvHalfCpltCallback>
  14852. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  14853. }
  14854. 8006892: bf00 nop
  14855. 8006894: 3710 adds r7, #16
  14856. 8006896: 46bd mov sp, r7
  14857. 8006898: bd80 pop {r7, pc}
  14858. 0800689a <ADC_DMAError>:
  14859. * @brief DMA error callback.
  14860. * @param hdma pointer to DMA handle.
  14861. * @retval None
  14862. */
  14863. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  14864. {
  14865. 800689a: b580 push {r7, lr}
  14866. 800689c: b084 sub sp, #16
  14867. 800689e: af00 add r7, sp, #0
  14868. 80068a0: 6078 str r0, [r7, #4]
  14869. /* Retrieve ADC handle corresponding to current DMA handle */
  14870. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  14871. 80068a2: 687b ldr r3, [r7, #4]
  14872. 80068a4: 6b9b ldr r3, [r3, #56] @ 0x38
  14873. 80068a6: 60fb str r3, [r7, #12]
  14874. /* Set ADC state */
  14875. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  14876. 80068a8: 68fb ldr r3, [r7, #12]
  14877. 80068aa: 6d5b ldr r3, [r3, #84] @ 0x54
  14878. 80068ac: f043 0240 orr.w r2, r3, #64 @ 0x40
  14879. 80068b0: 68fb ldr r3, [r7, #12]
  14880. 80068b2: 655a str r2, [r3, #84] @ 0x54
  14881. /* Set ADC error code to DMA error */
  14882. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  14883. 80068b4: 68fb ldr r3, [r7, #12]
  14884. 80068b6: 6d9b ldr r3, [r3, #88] @ 0x58
  14885. 80068b8: f043 0204 orr.w r2, r3, #4
  14886. 80068bc: 68fb ldr r3, [r7, #12]
  14887. 80068be: 659a str r2, [r3, #88] @ 0x58
  14888. /* Error callback */
  14889. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  14890. hadc->ErrorCallback(hadc);
  14891. #else
  14892. HAL_ADC_ErrorCallback(hadc);
  14893. 80068c0: 68f8 ldr r0, [r7, #12]
  14894. 80068c2: f7ff fb21 bl 8005f08 <HAL_ADC_ErrorCallback>
  14895. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  14896. }
  14897. 80068c6: bf00 nop
  14898. 80068c8: 3710 adds r7, #16
  14899. 80068ca: 46bd mov sp, r7
  14900. 80068cc: bd80 pop {r7, pc}
  14901. ...
  14902. 080068d0 <ADC_ConfigureBoostMode>:
  14903. * stopped.
  14904. * @param hadc ADC handle
  14905. * @retval None.
  14906. */
  14907. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  14908. {
  14909. 80068d0: b580 push {r7, lr}
  14910. 80068d2: b084 sub sp, #16
  14911. 80068d4: af00 add r7, sp, #0
  14912. 80068d6: 6078 str r0, [r7, #4]
  14913. uint32_t freq;
  14914. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  14915. 80068d8: 687b ldr r3, [r7, #4]
  14916. 80068da: 681b ldr r3, [r3, #0]
  14917. 80068dc: 4a7a ldr r2, [pc, #488] @ (8006ac8 <ADC_ConfigureBoostMode+0x1f8>)
  14918. 80068de: 4293 cmp r3, r2
  14919. 80068e0: d004 beq.n 80068ec <ADC_ConfigureBoostMode+0x1c>
  14920. 80068e2: 687b ldr r3, [r7, #4]
  14921. 80068e4: 681b ldr r3, [r3, #0]
  14922. 80068e6: 4a79 ldr r2, [pc, #484] @ (8006acc <ADC_ConfigureBoostMode+0x1fc>)
  14923. 80068e8: 4293 cmp r3, r2
  14924. 80068ea: d109 bne.n 8006900 <ADC_ConfigureBoostMode+0x30>
  14925. 80068ec: 4b78 ldr r3, [pc, #480] @ (8006ad0 <ADC_ConfigureBoostMode+0x200>)
  14926. 80068ee: 689b ldr r3, [r3, #8]
  14927. 80068f0: f403 3340 and.w r3, r3, #196608 @ 0x30000
  14928. 80068f4: 2b00 cmp r3, #0
  14929. 80068f6: bf14 ite ne
  14930. 80068f8: 2301 movne r3, #1
  14931. 80068fa: 2300 moveq r3, #0
  14932. 80068fc: b2db uxtb r3, r3
  14933. 80068fe: e008 b.n 8006912 <ADC_ConfigureBoostMode+0x42>
  14934. 8006900: 4b74 ldr r3, [pc, #464] @ (8006ad4 <ADC_ConfigureBoostMode+0x204>)
  14935. 8006902: 689b ldr r3, [r3, #8]
  14936. 8006904: f403 3340 and.w r3, r3, #196608 @ 0x30000
  14937. 8006908: 2b00 cmp r3, #0
  14938. 800690a: bf14 ite ne
  14939. 800690c: 2301 movne r3, #1
  14940. 800690e: 2300 moveq r3, #0
  14941. 8006910: b2db uxtb r3, r3
  14942. 8006912: 2b00 cmp r3, #0
  14943. 8006914: d01c beq.n 8006950 <ADC_ConfigureBoostMode+0x80>
  14944. {
  14945. freq = HAL_RCC_GetHCLKFreq();
  14946. 8006916: f005 fb47 bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  14947. 800691a: 60f8 str r0, [r7, #12]
  14948. switch (hadc->Init.ClockPrescaler)
  14949. 800691c: 687b ldr r3, [r7, #4]
  14950. 800691e: 685b ldr r3, [r3, #4]
  14951. 8006920: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  14952. 8006924: d010 beq.n 8006948 <ADC_ConfigureBoostMode+0x78>
  14953. 8006926: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  14954. 800692a: d873 bhi.n 8006a14 <ADC_ConfigureBoostMode+0x144>
  14955. 800692c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  14956. 8006930: d002 beq.n 8006938 <ADC_ConfigureBoostMode+0x68>
  14957. 8006932: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  14958. 8006936: d16d bne.n 8006a14 <ADC_ConfigureBoostMode+0x144>
  14959. {
  14960. case ADC_CLOCK_SYNC_PCLK_DIV1:
  14961. case ADC_CLOCK_SYNC_PCLK_DIV2:
  14962. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  14963. 8006938: 687b ldr r3, [r7, #4]
  14964. 800693a: 685b ldr r3, [r3, #4]
  14965. 800693c: 0c1b lsrs r3, r3, #16
  14966. 800693e: 68fa ldr r2, [r7, #12]
  14967. 8006940: fbb2 f3f3 udiv r3, r2, r3
  14968. 8006944: 60fb str r3, [r7, #12]
  14969. break;
  14970. 8006946: e068 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  14971. case ADC_CLOCK_SYNC_PCLK_DIV4:
  14972. freq /= 4UL;
  14973. 8006948: 68fb ldr r3, [r7, #12]
  14974. 800694a: 089b lsrs r3, r3, #2
  14975. 800694c: 60fb str r3, [r7, #12]
  14976. break;
  14977. 800694e: e064 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  14978. break;
  14979. }
  14980. }
  14981. else
  14982. {
  14983. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  14984. 8006950: f44f 2000 mov.w r0, #524288 @ 0x80000
  14985. 8006954: f04f 0100 mov.w r1, #0
  14986. 8006958: f006 fdb2 bl 800d4c0 <HAL_RCCEx_GetPeriphCLKFreq>
  14987. 800695c: 60f8 str r0, [r7, #12]
  14988. switch (hadc->Init.ClockPrescaler)
  14989. 800695e: 687b ldr r3, [r7, #4]
  14990. 8006960: 685b ldr r3, [r3, #4]
  14991. 8006962: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  14992. 8006966: d051 beq.n 8006a0c <ADC_ConfigureBoostMode+0x13c>
  14993. 8006968: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  14994. 800696c: d854 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  14995. 800696e: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  14996. 8006972: d047 beq.n 8006a04 <ADC_ConfigureBoostMode+0x134>
  14997. 8006974: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  14998. 8006978: d84e bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  14999. 800697a: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  15000. 800697e: d03d beq.n 80069fc <ADC_ConfigureBoostMode+0x12c>
  15001. 8006980: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  15002. 8006984: d848 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15003. 8006986: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  15004. 800698a: d033 beq.n 80069f4 <ADC_ConfigureBoostMode+0x124>
  15005. 800698c: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  15006. 8006990: d842 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15007. 8006992: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  15008. 8006996: d029 beq.n 80069ec <ADC_ConfigureBoostMode+0x11c>
  15009. 8006998: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  15010. 800699c: d83c bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15011. 800699e: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  15012. 80069a2: d01a beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15013. 80069a4: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  15014. 80069a8: d836 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15015. 80069aa: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  15016. 80069ae: d014 beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15017. 80069b0: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  15018. 80069b4: d830 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15019. 80069b6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  15020. 80069ba: d00e beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15021. 80069bc: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  15022. 80069c0: d82a bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15023. 80069c2: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  15024. 80069c6: d008 beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15025. 80069c8: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  15026. 80069cc: d824 bhi.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15027. 80069ce: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  15028. 80069d2: d002 beq.n 80069da <ADC_ConfigureBoostMode+0x10a>
  15029. 80069d4: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  15030. 80069d8: d11e bne.n 8006a18 <ADC_ConfigureBoostMode+0x148>
  15031. case ADC_CLOCK_ASYNC_DIV4:
  15032. case ADC_CLOCK_ASYNC_DIV6:
  15033. case ADC_CLOCK_ASYNC_DIV8:
  15034. case ADC_CLOCK_ASYNC_DIV10:
  15035. case ADC_CLOCK_ASYNC_DIV12:
  15036. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  15037. 80069da: 687b ldr r3, [r7, #4]
  15038. 80069dc: 685b ldr r3, [r3, #4]
  15039. 80069de: 0c9b lsrs r3, r3, #18
  15040. 80069e0: 005b lsls r3, r3, #1
  15041. 80069e2: 68fa ldr r2, [r7, #12]
  15042. 80069e4: fbb2 f3f3 udiv r3, r2, r3
  15043. 80069e8: 60fb str r3, [r7, #12]
  15044. break;
  15045. 80069ea: e016 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15046. case ADC_CLOCK_ASYNC_DIV16:
  15047. freq /= 16UL;
  15048. 80069ec: 68fb ldr r3, [r7, #12]
  15049. 80069ee: 091b lsrs r3, r3, #4
  15050. 80069f0: 60fb str r3, [r7, #12]
  15051. break;
  15052. 80069f2: e012 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15053. case ADC_CLOCK_ASYNC_DIV32:
  15054. freq /= 32UL;
  15055. 80069f4: 68fb ldr r3, [r7, #12]
  15056. 80069f6: 095b lsrs r3, r3, #5
  15057. 80069f8: 60fb str r3, [r7, #12]
  15058. break;
  15059. 80069fa: e00e b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15060. case ADC_CLOCK_ASYNC_DIV64:
  15061. freq /= 64UL;
  15062. 80069fc: 68fb ldr r3, [r7, #12]
  15063. 80069fe: 099b lsrs r3, r3, #6
  15064. 8006a00: 60fb str r3, [r7, #12]
  15065. break;
  15066. 8006a02: e00a b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15067. case ADC_CLOCK_ASYNC_DIV128:
  15068. freq /= 128UL;
  15069. 8006a04: 68fb ldr r3, [r7, #12]
  15070. 8006a06: 09db lsrs r3, r3, #7
  15071. 8006a08: 60fb str r3, [r7, #12]
  15072. break;
  15073. 8006a0a: e006 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15074. case ADC_CLOCK_ASYNC_DIV256:
  15075. freq /= 256UL;
  15076. 8006a0c: 68fb ldr r3, [r7, #12]
  15077. 8006a0e: 0a1b lsrs r3, r3, #8
  15078. 8006a10: 60fb str r3, [r7, #12]
  15079. break;
  15080. 8006a12: e002 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15081. break;
  15082. 8006a14: bf00 nop
  15083. 8006a16: e000 b.n 8006a1a <ADC_ConfigureBoostMode+0x14a>
  15084. default:
  15085. break;
  15086. 8006a18: bf00 nop
  15087. else /* if(freq > 25000000UL) */
  15088. {
  15089. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15090. }
  15091. #else
  15092. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  15093. 8006a1a: f7fe fdb1 bl 8005580 <HAL_GetREVID>
  15094. 8006a1e: 4603 mov r3, r0
  15095. 8006a20: f241 0203 movw r2, #4099 @ 0x1003
  15096. 8006a24: 4293 cmp r3, r2
  15097. 8006a26: d815 bhi.n 8006a54 <ADC_ConfigureBoostMode+0x184>
  15098. {
  15099. if (freq > 20000000UL)
  15100. 8006a28: 68fb ldr r3, [r7, #12]
  15101. 8006a2a: 4a2b ldr r2, [pc, #172] @ (8006ad8 <ADC_ConfigureBoostMode+0x208>)
  15102. 8006a2c: 4293 cmp r3, r2
  15103. 8006a2e: d908 bls.n 8006a42 <ADC_ConfigureBoostMode+0x172>
  15104. {
  15105. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  15106. 8006a30: 687b ldr r3, [r7, #4]
  15107. 8006a32: 681b ldr r3, [r3, #0]
  15108. 8006a34: 689a ldr r2, [r3, #8]
  15109. 8006a36: 687b ldr r3, [r7, #4]
  15110. 8006a38: 681b ldr r3, [r3, #0]
  15111. 8006a3a: f442 7280 orr.w r2, r2, #256 @ 0x100
  15112. 8006a3e: 609a str r2, [r3, #8]
  15113. {
  15114. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15115. }
  15116. }
  15117. #endif /* ADC_VER_V5_3 */
  15118. }
  15119. 8006a40: e03e b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15120. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  15121. 8006a42: 687b ldr r3, [r7, #4]
  15122. 8006a44: 681b ldr r3, [r3, #0]
  15123. 8006a46: 689a ldr r2, [r3, #8]
  15124. 8006a48: 687b ldr r3, [r7, #4]
  15125. 8006a4a: 681b ldr r3, [r3, #0]
  15126. 8006a4c: f422 7280 bic.w r2, r2, #256 @ 0x100
  15127. 8006a50: 609a str r2, [r3, #8]
  15128. }
  15129. 8006a52: e035 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15130. freq /= 2U; /* divider by 2 for Rev.V */
  15131. 8006a54: 68fb ldr r3, [r7, #12]
  15132. 8006a56: 085b lsrs r3, r3, #1
  15133. 8006a58: 60fb str r3, [r7, #12]
  15134. if (freq <= 6250000UL)
  15135. 8006a5a: 68fb ldr r3, [r7, #12]
  15136. 8006a5c: 4a1f ldr r2, [pc, #124] @ (8006adc <ADC_ConfigureBoostMode+0x20c>)
  15137. 8006a5e: 4293 cmp r3, r2
  15138. 8006a60: d808 bhi.n 8006a74 <ADC_ConfigureBoostMode+0x1a4>
  15139. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  15140. 8006a62: 687b ldr r3, [r7, #4]
  15141. 8006a64: 681b ldr r3, [r3, #0]
  15142. 8006a66: 689a ldr r2, [r3, #8]
  15143. 8006a68: 687b ldr r3, [r7, #4]
  15144. 8006a6a: 681b ldr r3, [r3, #0]
  15145. 8006a6c: f422 7240 bic.w r2, r2, #768 @ 0x300
  15146. 8006a70: 609a str r2, [r3, #8]
  15147. }
  15148. 8006a72: e025 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15149. else if (freq <= 12500000UL)
  15150. 8006a74: 68fb ldr r3, [r7, #12]
  15151. 8006a76: 4a1a ldr r2, [pc, #104] @ (8006ae0 <ADC_ConfigureBoostMode+0x210>)
  15152. 8006a78: 4293 cmp r3, r2
  15153. 8006a7a: d80a bhi.n 8006a92 <ADC_ConfigureBoostMode+0x1c2>
  15154. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  15155. 8006a7c: 687b ldr r3, [r7, #4]
  15156. 8006a7e: 681b ldr r3, [r3, #0]
  15157. 8006a80: 689b ldr r3, [r3, #8]
  15158. 8006a82: f423 7240 bic.w r2, r3, #768 @ 0x300
  15159. 8006a86: 687b ldr r3, [r7, #4]
  15160. 8006a88: 681b ldr r3, [r3, #0]
  15161. 8006a8a: f442 7280 orr.w r2, r2, #256 @ 0x100
  15162. 8006a8e: 609a str r2, [r3, #8]
  15163. }
  15164. 8006a90: e016 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15165. else if (freq <= 25000000UL)
  15166. 8006a92: 68fb ldr r3, [r7, #12]
  15167. 8006a94: 4a13 ldr r2, [pc, #76] @ (8006ae4 <ADC_ConfigureBoostMode+0x214>)
  15168. 8006a96: 4293 cmp r3, r2
  15169. 8006a98: d80a bhi.n 8006ab0 <ADC_ConfigureBoostMode+0x1e0>
  15170. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  15171. 8006a9a: 687b ldr r3, [r7, #4]
  15172. 8006a9c: 681b ldr r3, [r3, #0]
  15173. 8006a9e: 689b ldr r3, [r3, #8]
  15174. 8006aa0: f423 7240 bic.w r2, r3, #768 @ 0x300
  15175. 8006aa4: 687b ldr r3, [r7, #4]
  15176. 8006aa6: 681b ldr r3, [r3, #0]
  15177. 8006aa8: f442 7200 orr.w r2, r2, #512 @ 0x200
  15178. 8006aac: 609a str r2, [r3, #8]
  15179. }
  15180. 8006aae: e007 b.n 8006ac0 <ADC_ConfigureBoostMode+0x1f0>
  15181. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15182. 8006ab0: 687b ldr r3, [r7, #4]
  15183. 8006ab2: 681b ldr r3, [r3, #0]
  15184. 8006ab4: 689a ldr r2, [r3, #8]
  15185. 8006ab6: 687b ldr r3, [r7, #4]
  15186. 8006ab8: 681b ldr r3, [r3, #0]
  15187. 8006aba: f442 7240 orr.w r2, r2, #768 @ 0x300
  15188. 8006abe: 609a str r2, [r3, #8]
  15189. }
  15190. 8006ac0: bf00 nop
  15191. 8006ac2: 3710 adds r7, #16
  15192. 8006ac4: 46bd mov sp, r7
  15193. 8006ac6: bd80 pop {r7, pc}
  15194. 8006ac8: 40022000 .word 0x40022000
  15195. 8006acc: 40022100 .word 0x40022100
  15196. 8006ad0: 40022300 .word 0x40022300
  15197. 8006ad4: 58026300 .word 0x58026300
  15198. 8006ad8: 01312d00 .word 0x01312d00
  15199. 8006adc: 005f5e10 .word 0x005f5e10
  15200. 8006ae0: 00bebc20 .word 0x00bebc20
  15201. 8006ae4: 017d7840 .word 0x017d7840
  15202. 08006ae8 <LL_ADC_IsEnabled>:
  15203. {
  15204. 8006ae8: b480 push {r7}
  15205. 8006aea: b083 sub sp, #12
  15206. 8006aec: af00 add r7, sp, #0
  15207. 8006aee: 6078 str r0, [r7, #4]
  15208. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  15209. 8006af0: 687b ldr r3, [r7, #4]
  15210. 8006af2: 689b ldr r3, [r3, #8]
  15211. 8006af4: f003 0301 and.w r3, r3, #1
  15212. 8006af8: 2b01 cmp r3, #1
  15213. 8006afa: d101 bne.n 8006b00 <LL_ADC_IsEnabled+0x18>
  15214. 8006afc: 2301 movs r3, #1
  15215. 8006afe: e000 b.n 8006b02 <LL_ADC_IsEnabled+0x1a>
  15216. 8006b00: 2300 movs r3, #0
  15217. }
  15218. 8006b02: 4618 mov r0, r3
  15219. 8006b04: 370c adds r7, #12
  15220. 8006b06: 46bd mov sp, r7
  15221. 8006b08: f85d 7b04 ldr.w r7, [sp], #4
  15222. 8006b0c: 4770 bx lr
  15223. ...
  15224. 08006b10 <LL_ADC_StartCalibration>:
  15225. {
  15226. 8006b10: b480 push {r7}
  15227. 8006b12: b085 sub sp, #20
  15228. 8006b14: af00 add r7, sp, #0
  15229. 8006b16: 60f8 str r0, [r7, #12]
  15230. 8006b18: 60b9 str r1, [r7, #8]
  15231. 8006b1a: 607a str r2, [r7, #4]
  15232. MODIFY_REG(ADCx->CR,
  15233. 8006b1c: 68fb ldr r3, [r7, #12]
  15234. 8006b1e: 689a ldr r2, [r3, #8]
  15235. 8006b20: 4b09 ldr r3, [pc, #36] @ (8006b48 <LL_ADC_StartCalibration+0x38>)
  15236. 8006b22: 4013 ands r3, r2
  15237. 8006b24: 68ba ldr r2, [r7, #8]
  15238. 8006b26: f402 3180 and.w r1, r2, #65536 @ 0x10000
  15239. 8006b2a: 687a ldr r2, [r7, #4]
  15240. 8006b2c: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  15241. 8006b30: 430a orrs r2, r1
  15242. 8006b32: 4313 orrs r3, r2
  15243. 8006b34: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  15244. 8006b38: 68fb ldr r3, [r7, #12]
  15245. 8006b3a: 609a str r2, [r3, #8]
  15246. }
  15247. 8006b3c: bf00 nop
  15248. 8006b3e: 3714 adds r7, #20
  15249. 8006b40: 46bd mov sp, r7
  15250. 8006b42: f85d 7b04 ldr.w r7, [sp], #4
  15251. 8006b46: 4770 bx lr
  15252. 8006b48: 3ffeffc0 .word 0x3ffeffc0
  15253. 08006b4c <LL_ADC_IsCalibrationOnGoing>:
  15254. {
  15255. 8006b4c: b480 push {r7}
  15256. 8006b4e: b083 sub sp, #12
  15257. 8006b50: af00 add r7, sp, #0
  15258. 8006b52: 6078 str r0, [r7, #4]
  15259. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  15260. 8006b54: 687b ldr r3, [r7, #4]
  15261. 8006b56: 689b ldr r3, [r3, #8]
  15262. 8006b58: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15263. 8006b5c: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15264. 8006b60: d101 bne.n 8006b66 <LL_ADC_IsCalibrationOnGoing+0x1a>
  15265. 8006b62: 2301 movs r3, #1
  15266. 8006b64: e000 b.n 8006b68 <LL_ADC_IsCalibrationOnGoing+0x1c>
  15267. 8006b66: 2300 movs r3, #0
  15268. }
  15269. 8006b68: 4618 mov r0, r3
  15270. 8006b6a: 370c adds r7, #12
  15271. 8006b6c: 46bd mov sp, r7
  15272. 8006b6e: f85d 7b04 ldr.w r7, [sp], #4
  15273. 8006b72: 4770 bx lr
  15274. 08006b74 <LL_ADC_REG_IsConversionOngoing>:
  15275. {
  15276. 8006b74: b480 push {r7}
  15277. 8006b76: b083 sub sp, #12
  15278. 8006b78: af00 add r7, sp, #0
  15279. 8006b7a: 6078 str r0, [r7, #4]
  15280. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  15281. 8006b7c: 687b ldr r3, [r7, #4]
  15282. 8006b7e: 689b ldr r3, [r3, #8]
  15283. 8006b80: f003 0304 and.w r3, r3, #4
  15284. 8006b84: 2b04 cmp r3, #4
  15285. 8006b86: d101 bne.n 8006b8c <LL_ADC_REG_IsConversionOngoing+0x18>
  15286. 8006b88: 2301 movs r3, #1
  15287. 8006b8a: e000 b.n 8006b8e <LL_ADC_REG_IsConversionOngoing+0x1a>
  15288. 8006b8c: 2300 movs r3, #0
  15289. }
  15290. 8006b8e: 4618 mov r0, r3
  15291. 8006b90: 370c adds r7, #12
  15292. 8006b92: 46bd mov sp, r7
  15293. 8006b94: f85d 7b04 ldr.w r7, [sp], #4
  15294. 8006b98: 4770 bx lr
  15295. ...
  15296. 08006b9c <HAL_ADCEx_Calibration_Start>:
  15297. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  15298. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  15299. * @retval HAL status
  15300. */
  15301. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  15302. {
  15303. 8006b9c: b580 push {r7, lr}
  15304. 8006b9e: b086 sub sp, #24
  15305. 8006ba0: af00 add r7, sp, #0
  15306. 8006ba2: 60f8 str r0, [r7, #12]
  15307. 8006ba4: 60b9 str r1, [r7, #8]
  15308. 8006ba6: 607a str r2, [r7, #4]
  15309. HAL_StatusTypeDef tmp_hal_status;
  15310. __IO uint32_t wait_loop_index = 0UL;
  15311. 8006ba8: 2300 movs r3, #0
  15312. 8006baa: 613b str r3, [r7, #16]
  15313. /* Check the parameters */
  15314. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  15315. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  15316. /* Process locked */
  15317. __HAL_LOCK(hadc);
  15318. 8006bac: 68fb ldr r3, [r7, #12]
  15319. 8006bae: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15320. 8006bb2: 2b01 cmp r3, #1
  15321. 8006bb4: d101 bne.n 8006bba <HAL_ADCEx_Calibration_Start+0x1e>
  15322. 8006bb6: 2302 movs r3, #2
  15323. 8006bb8: e04c b.n 8006c54 <HAL_ADCEx_Calibration_Start+0xb8>
  15324. 8006bba: 68fb ldr r3, [r7, #12]
  15325. 8006bbc: 2201 movs r2, #1
  15326. 8006bbe: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15327. /* Calibration prerequisite: ADC must be disabled. */
  15328. /* Disable the ADC (if not already disabled) */
  15329. tmp_hal_status = ADC_Disable(hadc);
  15330. 8006bc2: 68f8 ldr r0, [r7, #12]
  15331. 8006bc4: f7ff fd90 bl 80066e8 <ADC_Disable>
  15332. 8006bc8: 4603 mov r3, r0
  15333. 8006bca: 75fb strb r3, [r7, #23]
  15334. /* Check if ADC is effectively disabled */
  15335. if (tmp_hal_status == HAL_OK)
  15336. 8006bcc: 7dfb ldrb r3, [r7, #23]
  15337. 8006bce: 2b00 cmp r3, #0
  15338. 8006bd0: d135 bne.n 8006c3e <HAL_ADCEx_Calibration_Start+0xa2>
  15339. {
  15340. /* Set ADC state */
  15341. ADC_STATE_CLR_SET(hadc->State,
  15342. 8006bd2: 68fb ldr r3, [r7, #12]
  15343. 8006bd4: 6d5a ldr r2, [r3, #84] @ 0x54
  15344. 8006bd6: 4b21 ldr r3, [pc, #132] @ (8006c5c <HAL_ADCEx_Calibration_Start+0xc0>)
  15345. 8006bd8: 4013 ands r3, r2
  15346. 8006bda: f043 0202 orr.w r2, r3, #2
  15347. 8006bde: 68fb ldr r3, [r7, #12]
  15348. 8006be0: 655a str r2, [r3, #84] @ 0x54
  15349. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  15350. HAL_ADC_STATE_BUSY_INTERNAL);
  15351. /* Start ADC calibration in mode single-ended or differential */
  15352. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  15353. 8006be2: 68fb ldr r3, [r7, #12]
  15354. 8006be4: 681b ldr r3, [r3, #0]
  15355. 8006be6: 687a ldr r2, [r7, #4]
  15356. 8006be8: 68b9 ldr r1, [r7, #8]
  15357. 8006bea: 4618 mov r0, r3
  15358. 8006bec: f7ff ff90 bl 8006b10 <LL_ADC_StartCalibration>
  15359. /* Wait for calibration completion */
  15360. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15361. 8006bf0: e014 b.n 8006c1c <HAL_ADCEx_Calibration_Start+0x80>
  15362. {
  15363. wait_loop_index++;
  15364. 8006bf2: 693b ldr r3, [r7, #16]
  15365. 8006bf4: 3301 adds r3, #1
  15366. 8006bf6: 613b str r3, [r7, #16]
  15367. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  15368. 8006bf8: 693b ldr r3, [r7, #16]
  15369. 8006bfa: 4a19 ldr r2, [pc, #100] @ (8006c60 <HAL_ADCEx_Calibration_Start+0xc4>)
  15370. 8006bfc: 4293 cmp r3, r2
  15371. 8006bfe: d30d bcc.n 8006c1c <HAL_ADCEx_Calibration_Start+0x80>
  15372. {
  15373. /* Update ADC state machine to error */
  15374. ADC_STATE_CLR_SET(hadc->State,
  15375. 8006c00: 68fb ldr r3, [r7, #12]
  15376. 8006c02: 6d5b ldr r3, [r3, #84] @ 0x54
  15377. 8006c04: f023 0312 bic.w r3, r3, #18
  15378. 8006c08: f043 0210 orr.w r2, r3, #16
  15379. 8006c0c: 68fb ldr r3, [r7, #12]
  15380. 8006c0e: 655a str r2, [r3, #84] @ 0x54
  15381. HAL_ADC_STATE_BUSY_INTERNAL,
  15382. HAL_ADC_STATE_ERROR_INTERNAL);
  15383. /* Process unlocked */
  15384. __HAL_UNLOCK(hadc);
  15385. 8006c10: 68fb ldr r3, [r7, #12]
  15386. 8006c12: 2200 movs r2, #0
  15387. 8006c14: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15388. return HAL_ERROR;
  15389. 8006c18: 2301 movs r3, #1
  15390. 8006c1a: e01b b.n 8006c54 <HAL_ADCEx_Calibration_Start+0xb8>
  15391. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15392. 8006c1c: 68fb ldr r3, [r7, #12]
  15393. 8006c1e: 681b ldr r3, [r3, #0]
  15394. 8006c20: 4618 mov r0, r3
  15395. 8006c22: f7ff ff93 bl 8006b4c <LL_ADC_IsCalibrationOnGoing>
  15396. 8006c26: 4603 mov r3, r0
  15397. 8006c28: 2b00 cmp r3, #0
  15398. 8006c2a: d1e2 bne.n 8006bf2 <HAL_ADCEx_Calibration_Start+0x56>
  15399. }
  15400. }
  15401. /* Set ADC state */
  15402. ADC_STATE_CLR_SET(hadc->State,
  15403. 8006c2c: 68fb ldr r3, [r7, #12]
  15404. 8006c2e: 6d5b ldr r3, [r3, #84] @ 0x54
  15405. 8006c30: f023 0303 bic.w r3, r3, #3
  15406. 8006c34: f043 0201 orr.w r2, r3, #1
  15407. 8006c38: 68fb ldr r3, [r7, #12]
  15408. 8006c3a: 655a str r2, [r3, #84] @ 0x54
  15409. 8006c3c: e005 b.n 8006c4a <HAL_ADCEx_Calibration_Start+0xae>
  15410. HAL_ADC_STATE_BUSY_INTERNAL,
  15411. HAL_ADC_STATE_READY);
  15412. }
  15413. else
  15414. {
  15415. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15416. 8006c3e: 68fb ldr r3, [r7, #12]
  15417. 8006c40: 6d5b ldr r3, [r3, #84] @ 0x54
  15418. 8006c42: f043 0210 orr.w r2, r3, #16
  15419. 8006c46: 68fb ldr r3, [r7, #12]
  15420. 8006c48: 655a str r2, [r3, #84] @ 0x54
  15421. /* Note: No need to update variable "tmp_hal_status" here: already set */
  15422. /* to state "HAL_ERROR" by function disabling the ADC. */
  15423. }
  15424. /* Process unlocked */
  15425. __HAL_UNLOCK(hadc);
  15426. 8006c4a: 68fb ldr r3, [r7, #12]
  15427. 8006c4c: 2200 movs r2, #0
  15428. 8006c4e: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15429. /* Return function status */
  15430. return tmp_hal_status;
  15431. 8006c52: 7dfb ldrb r3, [r7, #23]
  15432. }
  15433. 8006c54: 4618 mov r0, r3
  15434. 8006c56: 3718 adds r7, #24
  15435. 8006c58: 46bd mov sp, r7
  15436. 8006c5a: bd80 pop {r7, pc}
  15437. 8006c5c: ffffeefd .word 0xffffeefd
  15438. 8006c60: 25c3f800 .word 0x25c3f800
  15439. 08006c64 <HAL_ADCEx_MultiModeConfigChannel>:
  15440. * @param hadc Master ADC handle
  15441. * @param multimode Structure of ADC multimode configuration
  15442. * @retval HAL status
  15443. */
  15444. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  15445. {
  15446. 8006c64: b590 push {r4, r7, lr}
  15447. 8006c66: b09f sub sp, #124 @ 0x7c
  15448. 8006c68: af00 add r7, sp, #0
  15449. 8006c6a: 6078 str r0, [r7, #4]
  15450. 8006c6c: 6039 str r1, [r7, #0]
  15451. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  15452. 8006c6e: 2300 movs r3, #0
  15453. 8006c70: f887 3077 strb.w r3, [r7, #119] @ 0x77
  15454. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  15455. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  15456. }
  15457. /* Process locked */
  15458. __HAL_LOCK(hadc);
  15459. 8006c74: 687b ldr r3, [r7, #4]
  15460. 8006c76: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15461. 8006c7a: 2b01 cmp r3, #1
  15462. 8006c7c: d101 bne.n 8006c82 <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  15463. 8006c7e: 2302 movs r3, #2
  15464. 8006c80: e0be b.n 8006e00 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  15465. 8006c82: 687b ldr r3, [r7, #4]
  15466. 8006c84: 2201 movs r2, #1
  15467. 8006c86: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15468. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  15469. 8006c8a: 2300 movs r3, #0
  15470. 8006c8c: 65fb str r3, [r7, #92] @ 0x5c
  15471. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  15472. 8006c8e: 2300 movs r3, #0
  15473. 8006c90: 663b str r3, [r7, #96] @ 0x60
  15474. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  15475. 8006c92: 687b ldr r3, [r7, #4]
  15476. 8006c94: 681b ldr r3, [r3, #0]
  15477. 8006c96: 4a5c ldr r2, [pc, #368] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15478. 8006c98: 4293 cmp r3, r2
  15479. 8006c9a: d102 bne.n 8006ca2 <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  15480. 8006c9c: 4b5b ldr r3, [pc, #364] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15481. 8006c9e: 60bb str r3, [r7, #8]
  15482. 8006ca0: e001 b.n 8006ca6 <HAL_ADCEx_MultiModeConfigChannel+0x42>
  15483. 8006ca2: 2300 movs r3, #0
  15484. 8006ca4: 60bb str r3, [r7, #8]
  15485. if (tmphadcSlave.Instance == NULL)
  15486. 8006ca6: 68bb ldr r3, [r7, #8]
  15487. 8006ca8: 2b00 cmp r3, #0
  15488. 8006caa: d10b bne.n 8006cc4 <HAL_ADCEx_MultiModeConfigChannel+0x60>
  15489. {
  15490. /* Update ADC state machine to error */
  15491. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15492. 8006cac: 687b ldr r3, [r7, #4]
  15493. 8006cae: 6d5b ldr r3, [r3, #84] @ 0x54
  15494. 8006cb0: f043 0220 orr.w r2, r3, #32
  15495. 8006cb4: 687b ldr r3, [r7, #4]
  15496. 8006cb6: 655a str r2, [r3, #84] @ 0x54
  15497. /* Process unlocked */
  15498. __HAL_UNLOCK(hadc);
  15499. 8006cb8: 687b ldr r3, [r7, #4]
  15500. 8006cba: 2200 movs r2, #0
  15501. 8006cbc: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15502. return HAL_ERROR;
  15503. 8006cc0: 2301 movs r3, #1
  15504. 8006cc2: e09d b.n 8006e00 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  15505. /* Parameters update conditioned to ADC state: */
  15506. /* Parameters that can be updated when ADC is disabled or enabled without */
  15507. /* conversion on going on regular group: */
  15508. /* - Multimode DATA Format configuration */
  15509. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  15510. 8006cc4: 68bb ldr r3, [r7, #8]
  15511. 8006cc6: 4618 mov r0, r3
  15512. 8006cc8: f7ff ff54 bl 8006b74 <LL_ADC_REG_IsConversionOngoing>
  15513. 8006ccc: 6738 str r0, [r7, #112] @ 0x70
  15514. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  15515. 8006cce: 687b ldr r3, [r7, #4]
  15516. 8006cd0: 681b ldr r3, [r3, #0]
  15517. 8006cd2: 4618 mov r0, r3
  15518. 8006cd4: f7ff ff4e bl 8006b74 <LL_ADC_REG_IsConversionOngoing>
  15519. 8006cd8: 4603 mov r3, r0
  15520. 8006cda: 2b00 cmp r3, #0
  15521. 8006cdc: d17f bne.n 8006dde <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  15522. && (tmphadcSlave_conversion_on_going == 0UL))
  15523. 8006cde: 6f3b ldr r3, [r7, #112] @ 0x70
  15524. 8006ce0: 2b00 cmp r3, #0
  15525. 8006ce2: d17c bne.n 8006dde <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  15526. {
  15527. /* Pointer to the common control register */
  15528. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  15529. 8006ce4: 687b ldr r3, [r7, #4]
  15530. 8006ce6: 681b ldr r3, [r3, #0]
  15531. 8006ce8: 4a47 ldr r2, [pc, #284] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15532. 8006cea: 4293 cmp r3, r2
  15533. 8006cec: d004 beq.n 8006cf8 <HAL_ADCEx_MultiModeConfigChannel+0x94>
  15534. 8006cee: 687b ldr r3, [r7, #4]
  15535. 8006cf0: 681b ldr r3, [r3, #0]
  15536. 8006cf2: 4a46 ldr r2, [pc, #280] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15537. 8006cf4: 4293 cmp r3, r2
  15538. 8006cf6: d101 bne.n 8006cfc <HAL_ADCEx_MultiModeConfigChannel+0x98>
  15539. 8006cf8: 4b45 ldr r3, [pc, #276] @ (8006e10 <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  15540. 8006cfa: e000 b.n 8006cfe <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  15541. 8006cfc: 4b45 ldr r3, [pc, #276] @ (8006e14 <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  15542. 8006cfe: 66fb str r3, [r7, #108] @ 0x6c
  15543. /* If multimode is selected, configure all multimode parameters. */
  15544. /* Otherwise, reset multimode parameters (can be used in case of */
  15545. /* transition from multimode to independent mode). */
  15546. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15547. 8006d00: 683b ldr r3, [r7, #0]
  15548. 8006d02: 681b ldr r3, [r3, #0]
  15549. 8006d04: 2b00 cmp r3, #0
  15550. 8006d06: d039 beq.n 8006d7c <HAL_ADCEx_MultiModeConfigChannel+0x118>
  15551. {
  15552. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  15553. 8006d08: 6efb ldr r3, [r7, #108] @ 0x6c
  15554. 8006d0a: 689b ldr r3, [r3, #8]
  15555. 8006d0c: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  15556. 8006d10: 683b ldr r3, [r7, #0]
  15557. 8006d12: 685b ldr r3, [r3, #4]
  15558. 8006d14: 431a orrs r2, r3
  15559. 8006d16: 6efb ldr r3, [r7, #108] @ 0x6c
  15560. 8006d18: 609a str r2, [r3, #8]
  15561. /* from 1 to 8 clock cycles for 12 bits */
  15562. /* from 1 to 6 clock cycles for 10 and 8 bits */
  15563. /* If a higher delay is selected, it will be clipped to maximum delay */
  15564. /* range */
  15565. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15566. 8006d1a: 687b ldr r3, [r7, #4]
  15567. 8006d1c: 681b ldr r3, [r3, #0]
  15568. 8006d1e: 4a3a ldr r2, [pc, #232] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15569. 8006d20: 4293 cmp r3, r2
  15570. 8006d22: d004 beq.n 8006d2e <HAL_ADCEx_MultiModeConfigChannel+0xca>
  15571. 8006d24: 687b ldr r3, [r7, #4]
  15572. 8006d26: 681b ldr r3, [r3, #0]
  15573. 8006d28: 4a38 ldr r2, [pc, #224] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15574. 8006d2a: 4293 cmp r3, r2
  15575. 8006d2c: d10e bne.n 8006d4c <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  15576. 8006d2e: 4836 ldr r0, [pc, #216] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15577. 8006d30: f7ff feda bl 8006ae8 <LL_ADC_IsEnabled>
  15578. 8006d34: 4604 mov r4, r0
  15579. 8006d36: 4835 ldr r0, [pc, #212] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15580. 8006d38: f7ff fed6 bl 8006ae8 <LL_ADC_IsEnabled>
  15581. 8006d3c: 4603 mov r3, r0
  15582. 8006d3e: 4323 orrs r3, r4
  15583. 8006d40: 2b00 cmp r3, #0
  15584. 8006d42: bf0c ite eq
  15585. 8006d44: 2301 moveq r3, #1
  15586. 8006d46: 2300 movne r3, #0
  15587. 8006d48: b2db uxtb r3, r3
  15588. 8006d4a: e008 b.n 8006d5e <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  15589. 8006d4c: 4832 ldr r0, [pc, #200] @ (8006e18 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  15590. 8006d4e: f7ff fecb bl 8006ae8 <LL_ADC_IsEnabled>
  15591. 8006d52: 4603 mov r3, r0
  15592. 8006d54: 2b00 cmp r3, #0
  15593. 8006d56: bf0c ite eq
  15594. 8006d58: 2301 moveq r3, #1
  15595. 8006d5a: 2300 movne r3, #0
  15596. 8006d5c: b2db uxtb r3, r3
  15597. 8006d5e: 2b00 cmp r3, #0
  15598. 8006d60: d047 beq.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15599. {
  15600. MODIFY_REG(tmpADC_Common->CCR,
  15601. 8006d62: 6efb ldr r3, [r7, #108] @ 0x6c
  15602. 8006d64: 689a ldr r2, [r3, #8]
  15603. 8006d66: 4b2d ldr r3, [pc, #180] @ (8006e1c <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  15604. 8006d68: 4013 ands r3, r2
  15605. 8006d6a: 683a ldr r2, [r7, #0]
  15606. 8006d6c: 6811 ldr r1, [r2, #0]
  15607. 8006d6e: 683a ldr r2, [r7, #0]
  15608. 8006d70: 6892 ldr r2, [r2, #8]
  15609. 8006d72: 430a orrs r2, r1
  15610. 8006d74: 431a orrs r2, r3
  15611. 8006d76: 6efb ldr r3, [r7, #108] @ 0x6c
  15612. 8006d78: 609a str r2, [r3, #8]
  15613. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15614. 8006d7a: e03a b.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15615. );
  15616. }
  15617. }
  15618. else /* ADC_MODE_INDEPENDENT */
  15619. {
  15620. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  15621. 8006d7c: 6efb ldr r3, [r7, #108] @ 0x6c
  15622. 8006d7e: 689b ldr r3, [r3, #8]
  15623. 8006d80: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  15624. 8006d84: 6efb ldr r3, [r7, #108] @ 0x6c
  15625. 8006d86: 609a str r2, [r3, #8]
  15626. /* Parameters that can be updated only when ADC is disabled: */
  15627. /* - Multimode mode selection */
  15628. /* - Multimode delay */
  15629. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15630. 8006d88: 687b ldr r3, [r7, #4]
  15631. 8006d8a: 681b ldr r3, [r3, #0]
  15632. 8006d8c: 4a1e ldr r2, [pc, #120] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15633. 8006d8e: 4293 cmp r3, r2
  15634. 8006d90: d004 beq.n 8006d9c <HAL_ADCEx_MultiModeConfigChannel+0x138>
  15635. 8006d92: 687b ldr r3, [r7, #4]
  15636. 8006d94: 681b ldr r3, [r3, #0]
  15637. 8006d96: 4a1d ldr r2, [pc, #116] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15638. 8006d98: 4293 cmp r3, r2
  15639. 8006d9a: d10e bne.n 8006dba <HAL_ADCEx_MultiModeConfigChannel+0x156>
  15640. 8006d9c: 481a ldr r0, [pc, #104] @ (8006e08 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  15641. 8006d9e: f7ff fea3 bl 8006ae8 <LL_ADC_IsEnabled>
  15642. 8006da2: 4604 mov r4, r0
  15643. 8006da4: 4819 ldr r0, [pc, #100] @ (8006e0c <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  15644. 8006da6: f7ff fe9f bl 8006ae8 <LL_ADC_IsEnabled>
  15645. 8006daa: 4603 mov r3, r0
  15646. 8006dac: 4323 orrs r3, r4
  15647. 8006dae: 2b00 cmp r3, #0
  15648. 8006db0: bf0c ite eq
  15649. 8006db2: 2301 moveq r3, #1
  15650. 8006db4: 2300 movne r3, #0
  15651. 8006db6: b2db uxtb r3, r3
  15652. 8006db8: e008 b.n 8006dcc <HAL_ADCEx_MultiModeConfigChannel+0x168>
  15653. 8006dba: 4817 ldr r0, [pc, #92] @ (8006e18 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  15654. 8006dbc: f7ff fe94 bl 8006ae8 <LL_ADC_IsEnabled>
  15655. 8006dc0: 4603 mov r3, r0
  15656. 8006dc2: 2b00 cmp r3, #0
  15657. 8006dc4: bf0c ite eq
  15658. 8006dc6: 2301 moveq r3, #1
  15659. 8006dc8: 2300 movne r3, #0
  15660. 8006dca: b2db uxtb r3, r3
  15661. 8006dcc: 2b00 cmp r3, #0
  15662. 8006dce: d010 beq.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15663. {
  15664. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  15665. 8006dd0: 6efb ldr r3, [r7, #108] @ 0x6c
  15666. 8006dd2: 689a ldr r2, [r3, #8]
  15667. 8006dd4: 4b11 ldr r3, [pc, #68] @ (8006e1c <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  15668. 8006dd6: 4013 ands r3, r2
  15669. 8006dd8: 6efa ldr r2, [r7, #108] @ 0x6c
  15670. 8006dda: 6093 str r3, [r2, #8]
  15671. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15672. 8006ddc: e009 b.n 8006df2 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  15673. /* If one of the ADC sharing the same common group is enabled, no update */
  15674. /* could be done on neither of the multimode structure parameters. */
  15675. else
  15676. {
  15677. /* Update ADC state machine to error */
  15678. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15679. 8006dde: 687b ldr r3, [r7, #4]
  15680. 8006de0: 6d5b ldr r3, [r3, #84] @ 0x54
  15681. 8006de2: f043 0220 orr.w r2, r3, #32
  15682. 8006de6: 687b ldr r3, [r7, #4]
  15683. 8006de8: 655a str r2, [r3, #84] @ 0x54
  15684. tmp_hal_status = HAL_ERROR;
  15685. 8006dea: 2301 movs r3, #1
  15686. 8006dec: f887 3077 strb.w r3, [r7, #119] @ 0x77
  15687. 8006df0: e000 b.n 8006df4 <HAL_ADCEx_MultiModeConfigChannel+0x190>
  15688. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  15689. 8006df2: bf00 nop
  15690. }
  15691. /* Process unlocked */
  15692. __HAL_UNLOCK(hadc);
  15693. 8006df4: 687b ldr r3, [r7, #4]
  15694. 8006df6: 2200 movs r2, #0
  15695. 8006df8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15696. /* Return function status */
  15697. return tmp_hal_status;
  15698. 8006dfc: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  15699. }
  15700. 8006e00: 4618 mov r0, r3
  15701. 8006e02: 377c adds r7, #124 @ 0x7c
  15702. 8006e04: 46bd mov sp, r7
  15703. 8006e06: bd90 pop {r4, r7, pc}
  15704. 8006e08: 40022000 .word 0x40022000
  15705. 8006e0c: 40022100 .word 0x40022100
  15706. 8006e10: 40022300 .word 0x40022300
  15707. 8006e14: 58026300 .word 0x58026300
  15708. 8006e18: 58026000 .word 0x58026000
  15709. 8006e1c: fffff0e0 .word 0xfffff0e0
  15710. 08006e20 <HAL_COMP_Init>:
  15711. * To unlock the configuration, perform a system reset.
  15712. * @param hcomp COMP handle
  15713. * @retval HAL status
  15714. */
  15715. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  15716. {
  15717. 8006e20: b580 push {r7, lr}
  15718. 8006e22: b088 sub sp, #32
  15719. 8006e24: af00 add r7, sp, #0
  15720. 8006e26: 6078 str r0, [r7, #4]
  15721. uint32_t tmp_csr ;
  15722. uint32_t exti_line ;
  15723. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  15724. __IO uint32_t wait_loop_index = 0UL;
  15725. 8006e28: 2300 movs r3, #0
  15726. 8006e2a: 60fb str r3, [r7, #12]
  15727. HAL_StatusTypeDef status = HAL_OK;
  15728. 8006e2c: 2300 movs r3, #0
  15729. 8006e2e: 77fb strb r3, [r7, #31]
  15730. /* Check the COMP handle allocation and lock status */
  15731. if(hcomp == NULL)
  15732. 8006e30: 687b ldr r3, [r7, #4]
  15733. 8006e32: 2b00 cmp r3, #0
  15734. 8006e34: d102 bne.n 8006e3c <HAL_COMP_Init+0x1c>
  15735. {
  15736. status = HAL_ERROR;
  15737. 8006e36: 2301 movs r3, #1
  15738. 8006e38: 77fb strb r3, [r7, #31]
  15739. 8006e3a: e10e b.n 800705a <HAL_COMP_Init+0x23a>
  15740. }
  15741. else if(__HAL_COMP_IS_LOCKED(hcomp))
  15742. 8006e3c: 687b ldr r3, [r7, #4]
  15743. 8006e3e: 681b ldr r3, [r3, #0]
  15744. 8006e40: 681b ldr r3, [r3, #0]
  15745. 8006e42: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15746. 8006e46: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15747. 8006e4a: d102 bne.n 8006e52 <HAL_COMP_Init+0x32>
  15748. {
  15749. status = HAL_ERROR;
  15750. 8006e4c: 2301 movs r3, #1
  15751. 8006e4e: 77fb strb r3, [r7, #31]
  15752. 8006e50: e103 b.n 800705a <HAL_COMP_Init+0x23a>
  15753. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  15754. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  15755. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  15756. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  15757. if(hcomp->State == HAL_COMP_STATE_RESET)
  15758. 8006e52: 687b ldr r3, [r7, #4]
  15759. 8006e54: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  15760. 8006e58: b2db uxtb r3, r3
  15761. 8006e5a: 2b00 cmp r3, #0
  15762. 8006e5c: d109 bne.n 8006e72 <HAL_COMP_Init+0x52>
  15763. {
  15764. /* Allocate lock resource and initialize it */
  15765. hcomp->Lock = HAL_UNLOCKED;
  15766. 8006e5e: 687b ldr r3, [r7, #4]
  15767. 8006e60: 2200 movs r2, #0
  15768. 8006e62: f883 2024 strb.w r2, [r3, #36] @ 0x24
  15769. /* Set COMP error code to none */
  15770. COMP_CLEAR_ERRORCODE(hcomp);
  15771. 8006e66: 687b ldr r3, [r7, #4]
  15772. 8006e68: 2200 movs r2, #0
  15773. 8006e6a: 629a str r2, [r3, #40] @ 0x28
  15774. /* Init the low level hardware */
  15775. hcomp->MspInitCallback(hcomp);
  15776. #else
  15777. /* Init the low level hardware */
  15778. HAL_COMP_MspInit(hcomp);
  15779. 8006e6c: 6878 ldr r0, [r7, #4]
  15780. 8006e6e: f7fc fd35 bl 80038dc <HAL_COMP_MspInit>
  15781. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  15782. }
  15783. /* Memorize voltage scaler state before initialization */
  15784. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  15785. 8006e72: 687b ldr r3, [r7, #4]
  15786. 8006e74: 681b ldr r3, [r3, #0]
  15787. 8006e76: 681b ldr r3, [r3, #0]
  15788. 8006e78: f003 0304 and.w r3, r3, #4
  15789. 8006e7c: 61bb str r3, [r7, #24]
  15790. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  15791. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  15792. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  15793. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  15794. tmp_csr = (hcomp->Init.InvertingInput | \
  15795. 8006e7e: 687b ldr r3, [r7, #4]
  15796. 8006e80: 691a ldr r2, [r3, #16]
  15797. hcomp->Init.NonInvertingInput | \
  15798. 8006e82: 687b ldr r3, [r7, #4]
  15799. 8006e84: 68db ldr r3, [r3, #12]
  15800. tmp_csr = (hcomp->Init.InvertingInput | \
  15801. 8006e86: 431a orrs r2, r3
  15802. hcomp->Init.BlankingSrce | \
  15803. 8006e88: 687b ldr r3, [r7, #4]
  15804. 8006e8a: 69db ldr r3, [r3, #28]
  15805. hcomp->Init.NonInvertingInput | \
  15806. 8006e8c: 431a orrs r2, r3
  15807. hcomp->Init.Hysteresis | \
  15808. 8006e8e: 687b ldr r3, [r7, #4]
  15809. 8006e90: 695b ldr r3, [r3, #20]
  15810. hcomp->Init.BlankingSrce | \
  15811. 8006e92: 431a orrs r2, r3
  15812. hcomp->Init.OutputPol | \
  15813. 8006e94: 687b ldr r3, [r7, #4]
  15814. 8006e96: 699b ldr r3, [r3, #24]
  15815. hcomp->Init.Hysteresis | \
  15816. 8006e98: 431a orrs r2, r3
  15817. hcomp->Init.Mode );
  15818. 8006e9a: 687b ldr r3, [r7, #4]
  15819. 8006e9c: 689b ldr r3, [r3, #8]
  15820. tmp_csr = (hcomp->Init.InvertingInput | \
  15821. 8006e9e: 4313 orrs r3, r2
  15822. 8006ea0: 617b str r3, [r7, #20]
  15823. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  15824. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  15825. tmp_csr
  15826. );
  15827. #else
  15828. MODIFY_REG(hcomp->Instance->CFGR,
  15829. 8006ea2: 687b ldr r3, [r7, #4]
  15830. 8006ea4: 681b ldr r3, [r3, #0]
  15831. 8006ea6: 681a ldr r2, [r3, #0]
  15832. 8006ea8: 4b6e ldr r3, [pc, #440] @ (8007064 <HAL_COMP_Init+0x244>)
  15833. 8006eaa: 4013 ands r3, r2
  15834. 8006eac: 687a ldr r2, [r7, #4]
  15835. 8006eae: 6812 ldr r2, [r2, #0]
  15836. 8006eb0: 6979 ldr r1, [r7, #20]
  15837. 8006eb2: 430b orrs r3, r1
  15838. 8006eb4: 6013 str r3, [r2, #0]
  15839. #endif
  15840. /* Set window mode */
  15841. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  15842. /* instances. Therefore, this function can update another COMP */
  15843. /* instance that the one currently selected. */
  15844. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  15845. 8006eb6: 687b ldr r3, [r7, #4]
  15846. 8006eb8: 685b ldr r3, [r3, #4]
  15847. 8006eba: 2b10 cmp r3, #16
  15848. 8006ebc: d108 bne.n 8006ed0 <HAL_COMP_Init+0xb0>
  15849. {
  15850. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  15851. 8006ebe: 687b ldr r3, [r7, #4]
  15852. 8006ec0: 681b ldr r3, [r3, #0]
  15853. 8006ec2: 681a ldr r2, [r3, #0]
  15854. 8006ec4: 687b ldr r3, [r7, #4]
  15855. 8006ec6: 681b ldr r3, [r3, #0]
  15856. 8006ec8: f042 0210 orr.w r2, r2, #16
  15857. 8006ecc: 601a str r2, [r3, #0]
  15858. 8006ece: e007 b.n 8006ee0 <HAL_COMP_Init+0xc0>
  15859. }
  15860. else
  15861. {
  15862. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  15863. 8006ed0: 687b ldr r3, [r7, #4]
  15864. 8006ed2: 681b ldr r3, [r3, #0]
  15865. 8006ed4: 681a ldr r2, [r3, #0]
  15866. 8006ed6: 687b ldr r3, [r7, #4]
  15867. 8006ed8: 681b ldr r3, [r3, #0]
  15868. 8006eda: f022 0210 bic.w r2, r2, #16
  15869. 8006ede: 601a str r2, [r3, #0]
  15870. }
  15871. /* Delay for COMP scaler bridge voltage stabilization */
  15872. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  15873. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  15874. 8006ee0: 687b ldr r3, [r7, #4]
  15875. 8006ee2: 681b ldr r3, [r3, #0]
  15876. 8006ee4: 681b ldr r3, [r3, #0]
  15877. 8006ee6: f003 0304 and.w r3, r3, #4
  15878. 8006eea: 2b00 cmp r3, #0
  15879. 8006eec: d016 beq.n 8006f1c <HAL_COMP_Init+0xfc>
  15880. 8006eee: 69bb ldr r3, [r7, #24]
  15881. 8006ef0: 2b00 cmp r3, #0
  15882. 8006ef2: d013 beq.n 8006f1c <HAL_COMP_Init+0xfc>
  15883. {
  15884. /* Wait loop initialization and execution */
  15885. /* Note: Variable divided by 2 to compensate partially */
  15886. /* CPU processing cycles.*/
  15887. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15888. 8006ef4: 4b5c ldr r3, [pc, #368] @ (8007068 <HAL_COMP_Init+0x248>)
  15889. 8006ef6: 681b ldr r3, [r3, #0]
  15890. 8006ef8: 099b lsrs r3, r3, #6
  15891. 8006efa: 4a5c ldr r2, [pc, #368] @ (800706c <HAL_COMP_Init+0x24c>)
  15892. 8006efc: fba2 2303 umull r2, r3, r2, r3
  15893. 8006f00: 099b lsrs r3, r3, #6
  15894. 8006f02: 1c5a adds r2, r3, #1
  15895. 8006f04: 4613 mov r3, r2
  15896. 8006f06: 009b lsls r3, r3, #2
  15897. 8006f08: 4413 add r3, r2
  15898. 8006f0a: 009b lsls r3, r3, #2
  15899. 8006f0c: 60fb str r3, [r7, #12]
  15900. while(wait_loop_index != 0UL)
  15901. 8006f0e: e002 b.n 8006f16 <HAL_COMP_Init+0xf6>
  15902. {
  15903. wait_loop_index --;
  15904. 8006f10: 68fb ldr r3, [r7, #12]
  15905. 8006f12: 3b01 subs r3, #1
  15906. 8006f14: 60fb str r3, [r7, #12]
  15907. while(wait_loop_index != 0UL)
  15908. 8006f16: 68fb ldr r3, [r7, #12]
  15909. 8006f18: 2b00 cmp r3, #0
  15910. 8006f1a: d1f9 bne.n 8006f10 <HAL_COMP_Init+0xf0>
  15911. }
  15912. }
  15913. /* Get the EXTI line corresponding to the selected COMP instance */
  15914. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  15915. 8006f1c: 687b ldr r3, [r7, #4]
  15916. 8006f1e: 681b ldr r3, [r3, #0]
  15917. 8006f20: 4a53 ldr r2, [pc, #332] @ (8007070 <HAL_COMP_Init+0x250>)
  15918. 8006f22: 4293 cmp r3, r2
  15919. 8006f24: d102 bne.n 8006f2c <HAL_COMP_Init+0x10c>
  15920. 8006f26: f44f 1380 mov.w r3, #1048576 @ 0x100000
  15921. 8006f2a: e001 b.n 8006f30 <HAL_COMP_Init+0x110>
  15922. 8006f2c: f44f 1300 mov.w r3, #2097152 @ 0x200000
  15923. 8006f30: 613b str r3, [r7, #16]
  15924. /* Manage EXTI settings */
  15925. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  15926. 8006f32: 687b ldr r3, [r7, #4]
  15927. 8006f34: 6a1b ldr r3, [r3, #32]
  15928. 8006f36: f003 0303 and.w r3, r3, #3
  15929. 8006f3a: 2b00 cmp r3, #0
  15930. 8006f3c: d06d beq.n 800701a <HAL_COMP_Init+0x1fa>
  15931. {
  15932. /* Configure EXTI rising edge */
  15933. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  15934. 8006f3e: 687b ldr r3, [r7, #4]
  15935. 8006f40: 6a1b ldr r3, [r3, #32]
  15936. 8006f42: f003 0310 and.w r3, r3, #16
  15937. 8006f46: 2b00 cmp r3, #0
  15938. 8006f48: d008 beq.n 8006f5c <HAL_COMP_Init+0x13c>
  15939. {
  15940. SET_BIT(EXTI->RTSR1, exti_line);
  15941. 8006f4a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15942. 8006f4e: 681a ldr r2, [r3, #0]
  15943. 8006f50: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15944. 8006f54: 693b ldr r3, [r7, #16]
  15945. 8006f56: 4313 orrs r3, r2
  15946. 8006f58: 600b str r3, [r1, #0]
  15947. 8006f5a: e008 b.n 8006f6e <HAL_COMP_Init+0x14e>
  15948. }
  15949. else
  15950. {
  15951. CLEAR_BIT(EXTI->RTSR1, exti_line);
  15952. 8006f5c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15953. 8006f60: 681a ldr r2, [r3, #0]
  15954. 8006f62: 693b ldr r3, [r7, #16]
  15955. 8006f64: 43db mvns r3, r3
  15956. 8006f66: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15957. 8006f6a: 4013 ands r3, r2
  15958. 8006f6c: 600b str r3, [r1, #0]
  15959. }
  15960. /* Configure EXTI falling edge */
  15961. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  15962. 8006f6e: 687b ldr r3, [r7, #4]
  15963. 8006f70: 6a1b ldr r3, [r3, #32]
  15964. 8006f72: f003 0320 and.w r3, r3, #32
  15965. 8006f76: 2b00 cmp r3, #0
  15966. 8006f78: d008 beq.n 8006f8c <HAL_COMP_Init+0x16c>
  15967. {
  15968. SET_BIT(EXTI->FTSR1, exti_line);
  15969. 8006f7a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15970. 8006f7e: 685a ldr r2, [r3, #4]
  15971. 8006f80: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15972. 8006f84: 693b ldr r3, [r7, #16]
  15973. 8006f86: 4313 orrs r3, r2
  15974. 8006f88: 604b str r3, [r1, #4]
  15975. 8006f8a: e008 b.n 8006f9e <HAL_COMP_Init+0x17e>
  15976. }
  15977. else
  15978. {
  15979. CLEAR_BIT(EXTI->FTSR1, exti_line);
  15980. 8006f8c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  15981. 8006f90: 685a ldr r2, [r3, #4]
  15982. 8006f92: 693b ldr r3, [r7, #16]
  15983. 8006f94: 43db mvns r3, r3
  15984. 8006f96: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  15985. 8006f9a: 4013 ands r3, r2
  15986. 8006f9c: 604b str r3, [r1, #4]
  15987. }
  15988. #if !defined (CORE_CM4)
  15989. /* Clear COMP EXTI pending bit (if any) */
  15990. WRITE_REG(EXTI->PR1, exti_line);
  15991. 8006f9e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  15992. 8006fa2: 693b ldr r3, [r7, #16]
  15993. 8006fa4: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  15994. /* Configure EXTI event mode */
  15995. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  15996. 8006fa8: 687b ldr r3, [r7, #4]
  15997. 8006faa: 6a1b ldr r3, [r3, #32]
  15998. 8006fac: f003 0302 and.w r3, r3, #2
  15999. 8006fb0: 2b00 cmp r3, #0
  16000. 8006fb2: d00a beq.n 8006fca <HAL_COMP_Init+0x1aa>
  16001. {
  16002. SET_BIT(EXTI->EMR1, exti_line);
  16003. 8006fb4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16004. 8006fb8: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16005. 8006fbc: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16006. 8006fc0: 693b ldr r3, [r7, #16]
  16007. 8006fc2: 4313 orrs r3, r2
  16008. 8006fc4: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16009. 8006fc8: e00a b.n 8006fe0 <HAL_COMP_Init+0x1c0>
  16010. }
  16011. else
  16012. {
  16013. CLEAR_BIT(EXTI->EMR1, exti_line);
  16014. 8006fca: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16015. 8006fce: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16016. 8006fd2: 693b ldr r3, [r7, #16]
  16017. 8006fd4: 43db mvns r3, r3
  16018. 8006fd6: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16019. 8006fda: 4013 ands r3, r2
  16020. 8006fdc: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16021. }
  16022. /* Configure EXTI interrupt mode */
  16023. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  16024. 8006fe0: 687b ldr r3, [r7, #4]
  16025. 8006fe2: 6a1b ldr r3, [r3, #32]
  16026. 8006fe4: f003 0301 and.w r3, r3, #1
  16027. 8006fe8: 2b00 cmp r3, #0
  16028. 8006fea: d00a beq.n 8007002 <HAL_COMP_Init+0x1e2>
  16029. {
  16030. SET_BIT(EXTI->IMR1, exti_line);
  16031. 8006fec: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16032. 8006ff0: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16033. 8006ff4: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16034. 8006ff8: 693b ldr r3, [r7, #16]
  16035. 8006ffa: 4313 orrs r3, r2
  16036. 8006ffc: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16037. 8007000: e021 b.n 8007046 <HAL_COMP_Init+0x226>
  16038. }
  16039. else
  16040. {
  16041. CLEAR_BIT(EXTI->IMR1, exti_line);
  16042. 8007002: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16043. 8007006: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16044. 800700a: 693b ldr r3, [r7, #16]
  16045. 800700c: 43db mvns r3, r3
  16046. 800700e: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16047. 8007012: 4013 ands r3, r2
  16048. 8007014: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16049. 8007018: e015 b.n 8007046 <HAL_COMP_Init+0x226>
  16050. }
  16051. }
  16052. else
  16053. {
  16054. /* Disable EXTI event mode */
  16055. CLEAR_BIT(EXTI->EMR1, exti_line);
  16056. 800701a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16057. 800701e: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16058. 8007022: 693b ldr r3, [r7, #16]
  16059. 8007024: 43db mvns r3, r3
  16060. 8007026: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16061. 800702a: 4013 ands r3, r2
  16062. 800702c: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16063. /* Disable EXTI interrupt mode */
  16064. CLEAR_BIT(EXTI->IMR1, exti_line);
  16065. 8007030: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16066. 8007034: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16067. 8007038: 693b ldr r3, [r7, #16]
  16068. 800703a: 43db mvns r3, r3
  16069. 800703c: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16070. 8007040: 4013 ands r3, r2
  16071. 8007042: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16072. }
  16073. #endif
  16074. /* Set HAL COMP handle state */
  16075. /* Note: Transition from state reset to state ready, */
  16076. /* otherwise (coming from state ready or busy) no state update. */
  16077. if (hcomp->State == HAL_COMP_STATE_RESET)
  16078. 8007046: 687b ldr r3, [r7, #4]
  16079. 8007048: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16080. 800704c: b2db uxtb r3, r3
  16081. 800704e: 2b00 cmp r3, #0
  16082. 8007050: d103 bne.n 800705a <HAL_COMP_Init+0x23a>
  16083. {
  16084. hcomp->State = HAL_COMP_STATE_READY;
  16085. 8007052: 687b ldr r3, [r7, #4]
  16086. 8007054: 2201 movs r2, #1
  16087. 8007056: f883 2025 strb.w r2, [r3, #37] @ 0x25
  16088. }
  16089. }
  16090. return status;
  16091. 800705a: 7ffb ldrb r3, [r7, #31]
  16092. }
  16093. 800705c: 4618 mov r0, r3
  16094. 800705e: 3720 adds r7, #32
  16095. 8007060: 46bd mov sp, r7
  16096. 8007062: bd80 pop {r7, pc}
  16097. 8007064: f0e8cce1 .word 0xf0e8cce1
  16098. 8007068: 24000034 .word 0x24000034
  16099. 800706c: 053e2d63 .word 0x053e2d63
  16100. 8007070: 5800380c .word 0x5800380c
  16101. 08007074 <HAL_COMP_Start>:
  16102. * @brief Start the comparator.
  16103. * @param hcomp COMP handle
  16104. * @retval HAL status
  16105. */
  16106. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  16107. {
  16108. 8007074: b480 push {r7}
  16109. 8007076: b085 sub sp, #20
  16110. 8007078: af00 add r7, sp, #0
  16111. 800707a: 6078 str r0, [r7, #4]
  16112. __IO uint32_t wait_loop_index = 0UL;
  16113. 800707c: 2300 movs r3, #0
  16114. 800707e: 60bb str r3, [r7, #8]
  16115. HAL_StatusTypeDef status = HAL_OK;
  16116. 8007080: 2300 movs r3, #0
  16117. 8007082: 73fb strb r3, [r7, #15]
  16118. /* Check the COMP handle allocation and lock status */
  16119. if(hcomp == NULL)
  16120. 8007084: 687b ldr r3, [r7, #4]
  16121. 8007086: 2b00 cmp r3, #0
  16122. 8007088: d102 bne.n 8007090 <HAL_COMP_Start+0x1c>
  16123. {
  16124. status = HAL_ERROR;
  16125. 800708a: 2301 movs r3, #1
  16126. 800708c: 73fb strb r3, [r7, #15]
  16127. 800708e: e030 b.n 80070f2 <HAL_COMP_Start+0x7e>
  16128. }
  16129. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16130. 8007090: 687b ldr r3, [r7, #4]
  16131. 8007092: 681b ldr r3, [r3, #0]
  16132. 8007094: 681b ldr r3, [r3, #0]
  16133. 8007096: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16134. 800709a: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16135. 800709e: d102 bne.n 80070a6 <HAL_COMP_Start+0x32>
  16136. {
  16137. status = HAL_ERROR;
  16138. 80070a0: 2301 movs r3, #1
  16139. 80070a2: 73fb strb r3, [r7, #15]
  16140. 80070a4: e025 b.n 80070f2 <HAL_COMP_Start+0x7e>
  16141. else
  16142. {
  16143. /* Check the parameter */
  16144. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  16145. if(hcomp->State == HAL_COMP_STATE_READY)
  16146. 80070a6: 687b ldr r3, [r7, #4]
  16147. 80070a8: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16148. 80070ac: b2db uxtb r3, r3
  16149. 80070ae: 2b01 cmp r3, #1
  16150. 80070b0: d11d bne.n 80070ee <HAL_COMP_Start+0x7a>
  16151. {
  16152. /* Enable the selected comparator */
  16153. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  16154. 80070b2: 687b ldr r3, [r7, #4]
  16155. 80070b4: 681b ldr r3, [r3, #0]
  16156. 80070b6: 681a ldr r2, [r3, #0]
  16157. 80070b8: 687b ldr r3, [r7, #4]
  16158. 80070ba: 681b ldr r3, [r3, #0]
  16159. 80070bc: f042 0201 orr.w r2, r2, #1
  16160. 80070c0: 601a str r2, [r3, #0]
  16161. /* Set HAL COMP handle state */
  16162. hcomp->State = HAL_COMP_STATE_BUSY;
  16163. 80070c2: 687b ldr r3, [r7, #4]
  16164. 80070c4: 2202 movs r2, #2
  16165. 80070c6: f883 2025 strb.w r2, [r3, #37] @ 0x25
  16166. /* Delay for COMP startup time */
  16167. /* Wait loop initialization and execution */
  16168. /* Note: Variable divided by 2 to compensate partially */
  16169. /* CPU processing cycles. */
  16170. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  16171. 80070ca: 4b0d ldr r3, [pc, #52] @ (8007100 <HAL_COMP_Start+0x8c>)
  16172. 80070cc: 681b ldr r3, [r3, #0]
  16173. 80070ce: 099b lsrs r3, r3, #6
  16174. 80070d0: 4a0c ldr r2, [pc, #48] @ (8007104 <HAL_COMP_Start+0x90>)
  16175. 80070d2: fba2 2303 umull r2, r3, r2, r3
  16176. 80070d6: 099b lsrs r3, r3, #6
  16177. 80070d8: 3301 adds r3, #1
  16178. 80070da: 00db lsls r3, r3, #3
  16179. 80070dc: 60bb str r3, [r7, #8]
  16180. while(wait_loop_index != 0UL)
  16181. 80070de: e002 b.n 80070e6 <HAL_COMP_Start+0x72>
  16182. {
  16183. wait_loop_index--;
  16184. 80070e0: 68bb ldr r3, [r7, #8]
  16185. 80070e2: 3b01 subs r3, #1
  16186. 80070e4: 60bb str r3, [r7, #8]
  16187. while(wait_loop_index != 0UL)
  16188. 80070e6: 68bb ldr r3, [r7, #8]
  16189. 80070e8: 2b00 cmp r3, #0
  16190. 80070ea: d1f9 bne.n 80070e0 <HAL_COMP_Start+0x6c>
  16191. 80070ec: e001 b.n 80070f2 <HAL_COMP_Start+0x7e>
  16192. }
  16193. }
  16194. else
  16195. {
  16196. status = HAL_ERROR;
  16197. 80070ee: 2301 movs r3, #1
  16198. 80070f0: 73fb strb r3, [r7, #15]
  16199. }
  16200. }
  16201. return status;
  16202. 80070f2: 7bfb ldrb r3, [r7, #15]
  16203. }
  16204. 80070f4: 4618 mov r0, r3
  16205. 80070f6: 3714 adds r7, #20
  16206. 80070f8: 46bd mov sp, r7
  16207. 80070fa: f85d 7b04 ldr.w r7, [sp], #4
  16208. 80070fe: 4770 bx lr
  16209. 8007100: 24000034 .word 0x24000034
  16210. 8007104: 053e2d63 .word 0x053e2d63
  16211. 08007108 <HAL_COMP_GetOutputLevel>:
  16212. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  16213. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  16214. *
  16215. */
  16216. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  16217. {
  16218. 8007108: b480 push {r7}
  16219. 800710a: b083 sub sp, #12
  16220. 800710c: af00 add r7, sp, #0
  16221. 800710e: 6078 str r0, [r7, #4]
  16222. /* Check the parameter */
  16223. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  16224. if (hcomp->Instance == COMP1)
  16225. 8007110: 687b ldr r3, [r7, #4]
  16226. 8007112: 681b ldr r3, [r3, #0]
  16227. 8007114: 4a09 ldr r2, [pc, #36] @ (800713c <HAL_COMP_GetOutputLevel+0x34>)
  16228. 8007116: 4293 cmp r3, r2
  16229. 8007118: d104 bne.n 8007124 <HAL_COMP_GetOutputLevel+0x1c>
  16230. {
  16231. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  16232. 800711a: 4b09 ldr r3, [pc, #36] @ (8007140 <HAL_COMP_GetOutputLevel+0x38>)
  16233. 800711c: 681b ldr r3, [r3, #0]
  16234. 800711e: f003 0301 and.w r3, r3, #1
  16235. 8007122: e004 b.n 800712e <HAL_COMP_GetOutputLevel+0x26>
  16236. }
  16237. else
  16238. {
  16239. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  16240. 8007124: 4b06 ldr r3, [pc, #24] @ (8007140 <HAL_COMP_GetOutputLevel+0x38>)
  16241. 8007126: 681b ldr r3, [r3, #0]
  16242. 8007128: 085b lsrs r3, r3, #1
  16243. 800712a: f003 0301 and.w r3, r3, #1
  16244. }
  16245. }
  16246. 800712e: 4618 mov r0, r3
  16247. 8007130: 370c adds r7, #12
  16248. 8007132: 46bd mov sp, r7
  16249. 8007134: f85d 7b04 ldr.w r7, [sp], #4
  16250. 8007138: 4770 bx lr
  16251. 800713a: bf00 nop
  16252. 800713c: 5800380c .word 0x5800380c
  16253. 8007140: 58003800 .word 0x58003800
  16254. 08007144 <__NVIC_SetPriorityGrouping>:
  16255. {
  16256. 8007144: b480 push {r7}
  16257. 8007146: b085 sub sp, #20
  16258. 8007148: af00 add r7, sp, #0
  16259. 800714a: 6078 str r0, [r7, #4]
  16260. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  16261. 800714c: 687b ldr r3, [r7, #4]
  16262. 800714e: f003 0307 and.w r3, r3, #7
  16263. 8007152: 60fb str r3, [r7, #12]
  16264. reg_value = SCB->AIRCR; /* read old register configuration */
  16265. 8007154: 4b0b ldr r3, [pc, #44] @ (8007184 <__NVIC_SetPriorityGrouping+0x40>)
  16266. 8007156: 68db ldr r3, [r3, #12]
  16267. 8007158: 60bb str r3, [r7, #8]
  16268. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  16269. 800715a: 68ba ldr r2, [r7, #8]
  16270. 800715c: f64f 03ff movw r3, #63743 @ 0xf8ff
  16271. 8007160: 4013 ands r3, r2
  16272. 8007162: 60bb str r3, [r7, #8]
  16273. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  16274. 8007164: 68fb ldr r3, [r7, #12]
  16275. 8007166: 021a lsls r2, r3, #8
  16276. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  16277. 8007168: 68bb ldr r3, [r7, #8]
  16278. 800716a: 431a orrs r2, r3
  16279. reg_value = (reg_value |
  16280. 800716c: 4b06 ldr r3, [pc, #24] @ (8007188 <__NVIC_SetPriorityGrouping+0x44>)
  16281. 800716e: 4313 orrs r3, r2
  16282. 8007170: 60bb str r3, [r7, #8]
  16283. SCB->AIRCR = reg_value;
  16284. 8007172: 4a04 ldr r2, [pc, #16] @ (8007184 <__NVIC_SetPriorityGrouping+0x40>)
  16285. 8007174: 68bb ldr r3, [r7, #8]
  16286. 8007176: 60d3 str r3, [r2, #12]
  16287. }
  16288. 8007178: bf00 nop
  16289. 800717a: 3714 adds r7, #20
  16290. 800717c: 46bd mov sp, r7
  16291. 800717e: f85d 7b04 ldr.w r7, [sp], #4
  16292. 8007182: 4770 bx lr
  16293. 8007184: e000ed00 .word 0xe000ed00
  16294. 8007188: 05fa0000 .word 0x05fa0000
  16295. 0800718c <__NVIC_GetPriorityGrouping>:
  16296. {
  16297. 800718c: b480 push {r7}
  16298. 800718e: af00 add r7, sp, #0
  16299. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  16300. 8007190: 4b04 ldr r3, [pc, #16] @ (80071a4 <__NVIC_GetPriorityGrouping+0x18>)
  16301. 8007192: 68db ldr r3, [r3, #12]
  16302. 8007194: 0a1b lsrs r3, r3, #8
  16303. 8007196: f003 0307 and.w r3, r3, #7
  16304. }
  16305. 800719a: 4618 mov r0, r3
  16306. 800719c: 46bd mov sp, r7
  16307. 800719e: f85d 7b04 ldr.w r7, [sp], #4
  16308. 80071a2: 4770 bx lr
  16309. 80071a4: e000ed00 .word 0xe000ed00
  16310. 080071a8 <__NVIC_EnableIRQ>:
  16311. {
  16312. 80071a8: b480 push {r7}
  16313. 80071aa: b083 sub sp, #12
  16314. 80071ac: af00 add r7, sp, #0
  16315. 80071ae: 4603 mov r3, r0
  16316. 80071b0: 80fb strh r3, [r7, #6]
  16317. if ((int32_t)(IRQn) >= 0)
  16318. 80071b2: f9b7 3006 ldrsh.w r3, [r7, #6]
  16319. 80071b6: 2b00 cmp r3, #0
  16320. 80071b8: db0b blt.n 80071d2 <__NVIC_EnableIRQ+0x2a>
  16321. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  16322. 80071ba: 88fb ldrh r3, [r7, #6]
  16323. 80071bc: f003 021f and.w r2, r3, #31
  16324. 80071c0: 4907 ldr r1, [pc, #28] @ (80071e0 <__NVIC_EnableIRQ+0x38>)
  16325. 80071c2: f9b7 3006 ldrsh.w r3, [r7, #6]
  16326. 80071c6: 095b lsrs r3, r3, #5
  16327. 80071c8: 2001 movs r0, #1
  16328. 80071ca: fa00 f202 lsl.w r2, r0, r2
  16329. 80071ce: f841 2023 str.w r2, [r1, r3, lsl #2]
  16330. }
  16331. 80071d2: bf00 nop
  16332. 80071d4: 370c adds r7, #12
  16333. 80071d6: 46bd mov sp, r7
  16334. 80071d8: f85d 7b04 ldr.w r7, [sp], #4
  16335. 80071dc: 4770 bx lr
  16336. 80071de: bf00 nop
  16337. 80071e0: e000e100 .word 0xe000e100
  16338. 080071e4 <__NVIC_SetPriority>:
  16339. {
  16340. 80071e4: b480 push {r7}
  16341. 80071e6: b083 sub sp, #12
  16342. 80071e8: af00 add r7, sp, #0
  16343. 80071ea: 4603 mov r3, r0
  16344. 80071ec: 6039 str r1, [r7, #0]
  16345. 80071ee: 80fb strh r3, [r7, #6]
  16346. if ((int32_t)(IRQn) >= 0)
  16347. 80071f0: f9b7 3006 ldrsh.w r3, [r7, #6]
  16348. 80071f4: 2b00 cmp r3, #0
  16349. 80071f6: db0a blt.n 800720e <__NVIC_SetPriority+0x2a>
  16350. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  16351. 80071f8: 683b ldr r3, [r7, #0]
  16352. 80071fa: b2da uxtb r2, r3
  16353. 80071fc: 490c ldr r1, [pc, #48] @ (8007230 <__NVIC_SetPriority+0x4c>)
  16354. 80071fe: f9b7 3006 ldrsh.w r3, [r7, #6]
  16355. 8007202: 0112 lsls r2, r2, #4
  16356. 8007204: b2d2 uxtb r2, r2
  16357. 8007206: 440b add r3, r1
  16358. 8007208: f883 2300 strb.w r2, [r3, #768] @ 0x300
  16359. }
  16360. 800720c: e00a b.n 8007224 <__NVIC_SetPriority+0x40>
  16361. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  16362. 800720e: 683b ldr r3, [r7, #0]
  16363. 8007210: b2da uxtb r2, r3
  16364. 8007212: 4908 ldr r1, [pc, #32] @ (8007234 <__NVIC_SetPriority+0x50>)
  16365. 8007214: 88fb ldrh r3, [r7, #6]
  16366. 8007216: f003 030f and.w r3, r3, #15
  16367. 800721a: 3b04 subs r3, #4
  16368. 800721c: 0112 lsls r2, r2, #4
  16369. 800721e: b2d2 uxtb r2, r2
  16370. 8007220: 440b add r3, r1
  16371. 8007222: 761a strb r2, [r3, #24]
  16372. }
  16373. 8007224: bf00 nop
  16374. 8007226: 370c adds r7, #12
  16375. 8007228: 46bd mov sp, r7
  16376. 800722a: f85d 7b04 ldr.w r7, [sp], #4
  16377. 800722e: 4770 bx lr
  16378. 8007230: e000e100 .word 0xe000e100
  16379. 8007234: e000ed00 .word 0xe000ed00
  16380. 08007238 <NVIC_EncodePriority>:
  16381. {
  16382. 8007238: b480 push {r7}
  16383. 800723a: b089 sub sp, #36 @ 0x24
  16384. 800723c: af00 add r7, sp, #0
  16385. 800723e: 60f8 str r0, [r7, #12]
  16386. 8007240: 60b9 str r1, [r7, #8]
  16387. 8007242: 607a str r2, [r7, #4]
  16388. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  16389. 8007244: 68fb ldr r3, [r7, #12]
  16390. 8007246: f003 0307 and.w r3, r3, #7
  16391. 800724a: 61fb str r3, [r7, #28]
  16392. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  16393. 800724c: 69fb ldr r3, [r7, #28]
  16394. 800724e: f1c3 0307 rsb r3, r3, #7
  16395. 8007252: 2b04 cmp r3, #4
  16396. 8007254: bf28 it cs
  16397. 8007256: 2304 movcs r3, #4
  16398. 8007258: 61bb str r3, [r7, #24]
  16399. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  16400. 800725a: 69fb ldr r3, [r7, #28]
  16401. 800725c: 3304 adds r3, #4
  16402. 800725e: 2b06 cmp r3, #6
  16403. 8007260: d902 bls.n 8007268 <NVIC_EncodePriority+0x30>
  16404. 8007262: 69fb ldr r3, [r7, #28]
  16405. 8007264: 3b03 subs r3, #3
  16406. 8007266: e000 b.n 800726a <NVIC_EncodePriority+0x32>
  16407. 8007268: 2300 movs r3, #0
  16408. 800726a: 617b str r3, [r7, #20]
  16409. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  16410. 800726c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  16411. 8007270: 69bb ldr r3, [r7, #24]
  16412. 8007272: fa02 f303 lsl.w r3, r2, r3
  16413. 8007276: 43da mvns r2, r3
  16414. 8007278: 68bb ldr r3, [r7, #8]
  16415. 800727a: 401a ands r2, r3
  16416. 800727c: 697b ldr r3, [r7, #20]
  16417. 800727e: 409a lsls r2, r3
  16418. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  16419. 8007280: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  16420. 8007284: 697b ldr r3, [r7, #20]
  16421. 8007286: fa01 f303 lsl.w r3, r1, r3
  16422. 800728a: 43d9 mvns r1, r3
  16423. 800728c: 687b ldr r3, [r7, #4]
  16424. 800728e: 400b ands r3, r1
  16425. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  16426. 8007290: 4313 orrs r3, r2
  16427. }
  16428. 8007292: 4618 mov r0, r3
  16429. 8007294: 3724 adds r7, #36 @ 0x24
  16430. 8007296: 46bd mov sp, r7
  16431. 8007298: f85d 7b04 ldr.w r7, [sp], #4
  16432. 800729c: 4770 bx lr
  16433. 0800729e <HAL_NVIC_SetPriorityGrouping>:
  16434. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  16435. * The pending IRQ priority will be managed only by the subpriority.
  16436. * @retval None
  16437. */
  16438. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  16439. {
  16440. 800729e: b580 push {r7, lr}
  16441. 80072a0: b082 sub sp, #8
  16442. 80072a2: af00 add r7, sp, #0
  16443. 80072a4: 6078 str r0, [r7, #4]
  16444. /* Check the parameters */
  16445. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  16446. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  16447. NVIC_SetPriorityGrouping(PriorityGroup);
  16448. 80072a6: 6878 ldr r0, [r7, #4]
  16449. 80072a8: f7ff ff4c bl 8007144 <__NVIC_SetPriorityGrouping>
  16450. }
  16451. 80072ac: bf00 nop
  16452. 80072ae: 3708 adds r7, #8
  16453. 80072b0: 46bd mov sp, r7
  16454. 80072b2: bd80 pop {r7, pc}
  16455. 080072b4 <HAL_NVIC_SetPriority>:
  16456. * This parameter can be a value between 0 and 15
  16457. * A lower priority value indicates a higher priority.
  16458. * @retval None
  16459. */
  16460. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  16461. {
  16462. 80072b4: b580 push {r7, lr}
  16463. 80072b6: b086 sub sp, #24
  16464. 80072b8: af00 add r7, sp, #0
  16465. 80072ba: 4603 mov r3, r0
  16466. 80072bc: 60b9 str r1, [r7, #8]
  16467. 80072be: 607a str r2, [r7, #4]
  16468. 80072c0: 81fb strh r3, [r7, #14]
  16469. /* Check the parameters */
  16470. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  16471. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  16472. prioritygroup = NVIC_GetPriorityGrouping();
  16473. 80072c2: f7ff ff63 bl 800718c <__NVIC_GetPriorityGrouping>
  16474. 80072c6: 6178 str r0, [r7, #20]
  16475. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  16476. 80072c8: 687a ldr r2, [r7, #4]
  16477. 80072ca: 68b9 ldr r1, [r7, #8]
  16478. 80072cc: 6978 ldr r0, [r7, #20]
  16479. 80072ce: f7ff ffb3 bl 8007238 <NVIC_EncodePriority>
  16480. 80072d2: 4602 mov r2, r0
  16481. 80072d4: f9b7 300e ldrsh.w r3, [r7, #14]
  16482. 80072d8: 4611 mov r1, r2
  16483. 80072da: 4618 mov r0, r3
  16484. 80072dc: f7ff ff82 bl 80071e4 <__NVIC_SetPriority>
  16485. }
  16486. 80072e0: bf00 nop
  16487. 80072e2: 3718 adds r7, #24
  16488. 80072e4: 46bd mov sp, r7
  16489. 80072e6: bd80 pop {r7, pc}
  16490. 080072e8 <HAL_NVIC_EnableIRQ>:
  16491. * This parameter can be an enumerator of IRQn_Type enumeration
  16492. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  16493. * @retval None
  16494. */
  16495. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  16496. {
  16497. 80072e8: b580 push {r7, lr}
  16498. 80072ea: b082 sub sp, #8
  16499. 80072ec: af00 add r7, sp, #0
  16500. 80072ee: 4603 mov r3, r0
  16501. 80072f0: 80fb strh r3, [r7, #6]
  16502. /* Check the parameters */
  16503. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  16504. /* Enable interrupt */
  16505. NVIC_EnableIRQ(IRQn);
  16506. 80072f2: f9b7 3006 ldrsh.w r3, [r7, #6]
  16507. 80072f6: 4618 mov r0, r3
  16508. 80072f8: f7ff ff56 bl 80071a8 <__NVIC_EnableIRQ>
  16509. }
  16510. 80072fc: bf00 nop
  16511. 80072fe: 3708 adds r7, #8
  16512. 8007300: 46bd mov sp, r7
  16513. 8007302: bd80 pop {r7, pc}
  16514. 08007304 <HAL_MPU_Disable>:
  16515. /**
  16516. * @brief Disables the MPU
  16517. * @retval None
  16518. */
  16519. void HAL_MPU_Disable(void)
  16520. {
  16521. 8007304: b480 push {r7}
  16522. 8007306: af00 add r7, sp, #0
  16523. __ASM volatile ("dmb 0xF":::"memory");
  16524. 8007308: f3bf 8f5f dmb sy
  16525. }
  16526. 800730c: bf00 nop
  16527. /* Make sure outstanding transfers are done */
  16528. __DMB();
  16529. /* Disable fault exceptions */
  16530. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  16531. 800730e: 4b07 ldr r3, [pc, #28] @ (800732c <HAL_MPU_Disable+0x28>)
  16532. 8007310: 6a5b ldr r3, [r3, #36] @ 0x24
  16533. 8007312: 4a06 ldr r2, [pc, #24] @ (800732c <HAL_MPU_Disable+0x28>)
  16534. 8007314: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  16535. 8007318: 6253 str r3, [r2, #36] @ 0x24
  16536. /* Disable the MPU and clear the control register*/
  16537. MPU->CTRL = 0;
  16538. 800731a: 4b05 ldr r3, [pc, #20] @ (8007330 <HAL_MPU_Disable+0x2c>)
  16539. 800731c: 2200 movs r2, #0
  16540. 800731e: 605a str r2, [r3, #4]
  16541. }
  16542. 8007320: bf00 nop
  16543. 8007322: 46bd mov sp, r7
  16544. 8007324: f85d 7b04 ldr.w r7, [sp], #4
  16545. 8007328: 4770 bx lr
  16546. 800732a: bf00 nop
  16547. 800732c: e000ed00 .word 0xe000ed00
  16548. 8007330: e000ed90 .word 0xe000ed90
  16549. 08007334 <HAL_MPU_Enable>:
  16550. * @arg MPU_PRIVILEGED_DEFAULT
  16551. * @arg MPU_HFNMI_PRIVDEF
  16552. * @retval None
  16553. */
  16554. void HAL_MPU_Enable(uint32_t MPU_Control)
  16555. {
  16556. 8007334: b480 push {r7}
  16557. 8007336: b083 sub sp, #12
  16558. 8007338: af00 add r7, sp, #0
  16559. 800733a: 6078 str r0, [r7, #4]
  16560. /* Enable the MPU */
  16561. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  16562. 800733c: 4a0b ldr r2, [pc, #44] @ (800736c <HAL_MPU_Enable+0x38>)
  16563. 800733e: 687b ldr r3, [r7, #4]
  16564. 8007340: f043 0301 orr.w r3, r3, #1
  16565. 8007344: 6053 str r3, [r2, #4]
  16566. /* Enable fault exceptions */
  16567. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  16568. 8007346: 4b0a ldr r3, [pc, #40] @ (8007370 <HAL_MPU_Enable+0x3c>)
  16569. 8007348: 6a5b ldr r3, [r3, #36] @ 0x24
  16570. 800734a: 4a09 ldr r2, [pc, #36] @ (8007370 <HAL_MPU_Enable+0x3c>)
  16571. 800734c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  16572. 8007350: 6253 str r3, [r2, #36] @ 0x24
  16573. __ASM volatile ("dsb 0xF":::"memory");
  16574. 8007352: f3bf 8f4f dsb sy
  16575. }
  16576. 8007356: bf00 nop
  16577. __ASM volatile ("isb 0xF":::"memory");
  16578. 8007358: f3bf 8f6f isb sy
  16579. }
  16580. 800735c: bf00 nop
  16581. /* Ensure MPU setting take effects */
  16582. __DSB();
  16583. __ISB();
  16584. }
  16585. 800735e: bf00 nop
  16586. 8007360: 370c adds r7, #12
  16587. 8007362: 46bd mov sp, r7
  16588. 8007364: f85d 7b04 ldr.w r7, [sp], #4
  16589. 8007368: 4770 bx lr
  16590. 800736a: bf00 nop
  16591. 800736c: e000ed90 .word 0xe000ed90
  16592. 8007370: e000ed00 .word 0xe000ed00
  16593. 08007374 <HAL_MPU_ConfigRegion>:
  16594. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  16595. * the initialization and configuration information.
  16596. * @retval None
  16597. */
  16598. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  16599. {
  16600. 8007374: b480 push {r7}
  16601. 8007376: b083 sub sp, #12
  16602. 8007378: af00 add r7, sp, #0
  16603. 800737a: 6078 str r0, [r7, #4]
  16604. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  16605. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  16606. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  16607. /* Set the Region number */
  16608. MPU->RNR = MPU_Init->Number;
  16609. 800737c: 687b ldr r3, [r7, #4]
  16610. 800737e: 785a ldrb r2, [r3, #1]
  16611. 8007380: 4b1b ldr r3, [pc, #108] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16612. 8007382: 609a str r2, [r3, #8]
  16613. /* Disable the Region */
  16614. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  16615. 8007384: 4b1a ldr r3, [pc, #104] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16616. 8007386: 691b ldr r3, [r3, #16]
  16617. 8007388: 4a19 ldr r2, [pc, #100] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16618. 800738a: f023 0301 bic.w r3, r3, #1
  16619. 800738e: 6113 str r3, [r2, #16]
  16620. /* Apply configuration */
  16621. MPU->RBAR = MPU_Init->BaseAddress;
  16622. 8007390: 4a17 ldr r2, [pc, #92] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16623. 8007392: 687b ldr r3, [r7, #4]
  16624. 8007394: 685b ldr r3, [r3, #4]
  16625. 8007396: 60d3 str r3, [r2, #12]
  16626. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16627. 8007398: 687b ldr r3, [r7, #4]
  16628. 800739a: 7b1b ldrb r3, [r3, #12]
  16629. 800739c: 071a lsls r2, r3, #28
  16630. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  16631. 800739e: 687b ldr r3, [r7, #4]
  16632. 80073a0: 7adb ldrb r3, [r3, #11]
  16633. 80073a2: 061b lsls r3, r3, #24
  16634. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16635. 80073a4: 431a orrs r2, r3
  16636. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  16637. 80073a6: 687b ldr r3, [r7, #4]
  16638. 80073a8: 7a9b ldrb r3, [r3, #10]
  16639. 80073aa: 04db lsls r3, r3, #19
  16640. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  16641. 80073ac: 431a orrs r2, r3
  16642. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  16643. 80073ae: 687b ldr r3, [r7, #4]
  16644. 80073b0: 7b5b ldrb r3, [r3, #13]
  16645. 80073b2: 049b lsls r3, r3, #18
  16646. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  16647. 80073b4: 431a orrs r2, r3
  16648. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  16649. 80073b6: 687b ldr r3, [r7, #4]
  16650. 80073b8: 7b9b ldrb r3, [r3, #14]
  16651. 80073ba: 045b lsls r3, r3, #17
  16652. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  16653. 80073bc: 431a orrs r2, r3
  16654. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  16655. 80073be: 687b ldr r3, [r7, #4]
  16656. 80073c0: 7bdb ldrb r3, [r3, #15]
  16657. 80073c2: 041b lsls r3, r3, #16
  16658. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  16659. 80073c4: 431a orrs r2, r3
  16660. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  16661. 80073c6: 687b ldr r3, [r7, #4]
  16662. 80073c8: 7a5b ldrb r3, [r3, #9]
  16663. 80073ca: 021b lsls r3, r3, #8
  16664. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  16665. 80073cc: 431a orrs r2, r3
  16666. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  16667. 80073ce: 687b ldr r3, [r7, #4]
  16668. 80073d0: 7a1b ldrb r3, [r3, #8]
  16669. 80073d2: 005b lsls r3, r3, #1
  16670. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  16671. 80073d4: 4313 orrs r3, r2
  16672. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  16673. 80073d6: 687a ldr r2, [r7, #4]
  16674. 80073d8: 7812 ldrb r2, [r2, #0]
  16675. 80073da: 4611 mov r1, r2
  16676. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16677. 80073dc: 4a04 ldr r2, [pc, #16] @ (80073f0 <HAL_MPU_ConfigRegion+0x7c>)
  16678. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  16679. 80073de: 430b orrs r3, r1
  16680. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  16681. 80073e0: 6113 str r3, [r2, #16]
  16682. }
  16683. 80073e2: bf00 nop
  16684. 80073e4: 370c adds r7, #12
  16685. 80073e6: 46bd mov sp, r7
  16686. 80073e8: f85d 7b04 ldr.w r7, [sp], #4
  16687. 80073ec: 4770 bx lr
  16688. 80073ee: bf00 nop
  16689. 80073f0: e000ed90 .word 0xe000ed90
  16690. 080073f4 <HAL_CRC_Init>:
  16691. * parameters in the CRC_InitTypeDef and create the associated handle.
  16692. * @param hcrc CRC handle
  16693. * @retval HAL status
  16694. */
  16695. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  16696. {
  16697. 80073f4: b580 push {r7, lr}
  16698. 80073f6: b082 sub sp, #8
  16699. 80073f8: af00 add r7, sp, #0
  16700. 80073fa: 6078 str r0, [r7, #4]
  16701. /* Check the CRC handle allocation */
  16702. if (hcrc == NULL)
  16703. 80073fc: 687b ldr r3, [r7, #4]
  16704. 80073fe: 2b00 cmp r3, #0
  16705. 8007400: d101 bne.n 8007406 <HAL_CRC_Init+0x12>
  16706. {
  16707. return HAL_ERROR;
  16708. 8007402: 2301 movs r3, #1
  16709. 8007404: e054 b.n 80074b0 <HAL_CRC_Init+0xbc>
  16710. }
  16711. /* Check the parameters */
  16712. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  16713. if (hcrc->State == HAL_CRC_STATE_RESET)
  16714. 8007406: 687b ldr r3, [r7, #4]
  16715. 8007408: 7f5b ldrb r3, [r3, #29]
  16716. 800740a: b2db uxtb r3, r3
  16717. 800740c: 2b00 cmp r3, #0
  16718. 800740e: d105 bne.n 800741c <HAL_CRC_Init+0x28>
  16719. {
  16720. /* Allocate lock resource and initialize it */
  16721. hcrc->Lock = HAL_UNLOCKED;
  16722. 8007410: 687b ldr r3, [r7, #4]
  16723. 8007412: 2200 movs r2, #0
  16724. 8007414: 771a strb r2, [r3, #28]
  16725. /* Init the low level hardware */
  16726. HAL_CRC_MspInit(hcrc);
  16727. 8007416: 6878 ldr r0, [r7, #4]
  16728. 8007418: f7fc faa6 bl 8003968 <HAL_CRC_MspInit>
  16729. }
  16730. hcrc->State = HAL_CRC_STATE_BUSY;
  16731. 800741c: 687b ldr r3, [r7, #4]
  16732. 800741e: 2202 movs r2, #2
  16733. 8007420: 775a strb r2, [r3, #29]
  16734. /* check whether or not non-default generating polynomial has been
  16735. * picked up by user */
  16736. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  16737. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  16738. 8007422: 687b ldr r3, [r7, #4]
  16739. 8007424: 791b ldrb r3, [r3, #4]
  16740. 8007426: 2b00 cmp r3, #0
  16741. 8007428: d10c bne.n 8007444 <HAL_CRC_Init+0x50>
  16742. {
  16743. /* initialize peripheral with default generating polynomial */
  16744. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  16745. 800742a: 687b ldr r3, [r7, #4]
  16746. 800742c: 681b ldr r3, [r3, #0]
  16747. 800742e: 4a22 ldr r2, [pc, #136] @ (80074b8 <HAL_CRC_Init+0xc4>)
  16748. 8007430: 615a str r2, [r3, #20]
  16749. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  16750. 8007432: 687b ldr r3, [r7, #4]
  16751. 8007434: 681b ldr r3, [r3, #0]
  16752. 8007436: 689a ldr r2, [r3, #8]
  16753. 8007438: 687b ldr r3, [r7, #4]
  16754. 800743a: 681b ldr r3, [r3, #0]
  16755. 800743c: f022 0218 bic.w r2, r2, #24
  16756. 8007440: 609a str r2, [r3, #8]
  16757. 8007442: e00c b.n 800745e <HAL_CRC_Init+0x6a>
  16758. }
  16759. else
  16760. {
  16761. /* initialize CRC peripheral with generating polynomial defined by user */
  16762. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  16763. 8007444: 687b ldr r3, [r7, #4]
  16764. 8007446: 6899 ldr r1, [r3, #8]
  16765. 8007448: 687b ldr r3, [r7, #4]
  16766. 800744a: 68db ldr r3, [r3, #12]
  16767. 800744c: 461a mov r2, r3
  16768. 800744e: 6878 ldr r0, [r7, #4]
  16769. 8007450: f000 f948 bl 80076e4 <HAL_CRCEx_Polynomial_Set>
  16770. 8007454: 4603 mov r3, r0
  16771. 8007456: 2b00 cmp r3, #0
  16772. 8007458: d001 beq.n 800745e <HAL_CRC_Init+0x6a>
  16773. {
  16774. return HAL_ERROR;
  16775. 800745a: 2301 movs r3, #1
  16776. 800745c: e028 b.n 80074b0 <HAL_CRC_Init+0xbc>
  16777. }
  16778. /* check whether or not non-default CRC initial value has been
  16779. * picked up by user */
  16780. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  16781. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  16782. 800745e: 687b ldr r3, [r7, #4]
  16783. 8007460: 795b ldrb r3, [r3, #5]
  16784. 8007462: 2b00 cmp r3, #0
  16785. 8007464: d105 bne.n 8007472 <HAL_CRC_Init+0x7e>
  16786. {
  16787. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  16788. 8007466: 687b ldr r3, [r7, #4]
  16789. 8007468: 681b ldr r3, [r3, #0]
  16790. 800746a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  16791. 800746e: 611a str r2, [r3, #16]
  16792. 8007470: e004 b.n 800747c <HAL_CRC_Init+0x88>
  16793. }
  16794. else
  16795. {
  16796. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  16797. 8007472: 687b ldr r3, [r7, #4]
  16798. 8007474: 681b ldr r3, [r3, #0]
  16799. 8007476: 687a ldr r2, [r7, #4]
  16800. 8007478: 6912 ldr r2, [r2, #16]
  16801. 800747a: 611a str r2, [r3, #16]
  16802. }
  16803. /* set input data inversion mode */
  16804. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  16805. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  16806. 800747c: 687b ldr r3, [r7, #4]
  16807. 800747e: 681b ldr r3, [r3, #0]
  16808. 8007480: 689b ldr r3, [r3, #8]
  16809. 8007482: f023 0160 bic.w r1, r3, #96 @ 0x60
  16810. 8007486: 687b ldr r3, [r7, #4]
  16811. 8007488: 695a ldr r2, [r3, #20]
  16812. 800748a: 687b ldr r3, [r7, #4]
  16813. 800748c: 681b ldr r3, [r3, #0]
  16814. 800748e: 430a orrs r2, r1
  16815. 8007490: 609a str r2, [r3, #8]
  16816. /* set output data inversion mode */
  16817. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  16818. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  16819. 8007492: 687b ldr r3, [r7, #4]
  16820. 8007494: 681b ldr r3, [r3, #0]
  16821. 8007496: 689b ldr r3, [r3, #8]
  16822. 8007498: f023 0180 bic.w r1, r3, #128 @ 0x80
  16823. 800749c: 687b ldr r3, [r7, #4]
  16824. 800749e: 699a ldr r2, [r3, #24]
  16825. 80074a0: 687b ldr r3, [r7, #4]
  16826. 80074a2: 681b ldr r3, [r3, #0]
  16827. 80074a4: 430a orrs r2, r1
  16828. 80074a6: 609a str r2, [r3, #8]
  16829. /* makes sure the input data format (bytes, halfwords or words stream)
  16830. * is properly specified by user */
  16831. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  16832. /* Change CRC peripheral state */
  16833. hcrc->State = HAL_CRC_STATE_READY;
  16834. 80074a8: 687b ldr r3, [r7, #4]
  16835. 80074aa: 2201 movs r2, #1
  16836. 80074ac: 775a strb r2, [r3, #29]
  16837. /* Return function status */
  16838. return HAL_OK;
  16839. 80074ae: 2300 movs r3, #0
  16840. }
  16841. 80074b0: 4618 mov r0, r3
  16842. 80074b2: 3708 adds r7, #8
  16843. 80074b4: 46bd mov sp, r7
  16844. 80074b6: bd80 pop {r7, pc}
  16845. 80074b8: 04c11db7 .word 0x04c11db7
  16846. 080074bc <HAL_CRC_Calculate>:
  16847. * and the API will internally adjust its input data processing based on the
  16848. * handle field hcrc->InputDataFormat.
  16849. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  16850. */
  16851. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  16852. {
  16853. 80074bc: b580 push {r7, lr}
  16854. 80074be: b086 sub sp, #24
  16855. 80074c0: af00 add r7, sp, #0
  16856. 80074c2: 60f8 str r0, [r7, #12]
  16857. 80074c4: 60b9 str r1, [r7, #8]
  16858. 80074c6: 607a str r2, [r7, #4]
  16859. uint32_t index; /* CRC input data buffer index */
  16860. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  16861. 80074c8: 2300 movs r3, #0
  16862. 80074ca: 613b str r3, [r7, #16]
  16863. /* Change CRC peripheral state */
  16864. hcrc->State = HAL_CRC_STATE_BUSY;
  16865. 80074cc: 68fb ldr r3, [r7, #12]
  16866. 80074ce: 2202 movs r2, #2
  16867. 80074d0: 775a strb r2, [r3, #29]
  16868. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  16869. * written in hcrc->Instance->DR) */
  16870. __HAL_CRC_DR_RESET(hcrc);
  16871. 80074d2: 68fb ldr r3, [r7, #12]
  16872. 80074d4: 681b ldr r3, [r3, #0]
  16873. 80074d6: 689a ldr r2, [r3, #8]
  16874. 80074d8: 68fb ldr r3, [r7, #12]
  16875. 80074da: 681b ldr r3, [r3, #0]
  16876. 80074dc: f042 0201 orr.w r2, r2, #1
  16877. 80074e0: 609a str r2, [r3, #8]
  16878. switch (hcrc->InputDataFormat)
  16879. 80074e2: 68fb ldr r3, [r7, #12]
  16880. 80074e4: 6a1b ldr r3, [r3, #32]
  16881. 80074e6: 2b03 cmp r3, #3
  16882. 80074e8: d006 beq.n 80074f8 <HAL_CRC_Calculate+0x3c>
  16883. 80074ea: 2b03 cmp r3, #3
  16884. 80074ec: d829 bhi.n 8007542 <HAL_CRC_Calculate+0x86>
  16885. 80074ee: 2b01 cmp r3, #1
  16886. 80074f0: d019 beq.n 8007526 <HAL_CRC_Calculate+0x6a>
  16887. 80074f2: 2b02 cmp r3, #2
  16888. 80074f4: d01e beq.n 8007534 <HAL_CRC_Calculate+0x78>
  16889. /* Specific 16-bit input data handling */
  16890. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  16891. break;
  16892. default:
  16893. break;
  16894. 80074f6: e024 b.n 8007542 <HAL_CRC_Calculate+0x86>
  16895. for (index = 0U; index < BufferLength; index++)
  16896. 80074f8: 2300 movs r3, #0
  16897. 80074fa: 617b str r3, [r7, #20]
  16898. 80074fc: e00a b.n 8007514 <HAL_CRC_Calculate+0x58>
  16899. hcrc->Instance->DR = pBuffer[index];
  16900. 80074fe: 697b ldr r3, [r7, #20]
  16901. 8007500: 009b lsls r3, r3, #2
  16902. 8007502: 68ba ldr r2, [r7, #8]
  16903. 8007504: 441a add r2, r3
  16904. 8007506: 68fb ldr r3, [r7, #12]
  16905. 8007508: 681b ldr r3, [r3, #0]
  16906. 800750a: 6812 ldr r2, [r2, #0]
  16907. 800750c: 601a str r2, [r3, #0]
  16908. for (index = 0U; index < BufferLength; index++)
  16909. 800750e: 697b ldr r3, [r7, #20]
  16910. 8007510: 3301 adds r3, #1
  16911. 8007512: 617b str r3, [r7, #20]
  16912. 8007514: 697a ldr r2, [r7, #20]
  16913. 8007516: 687b ldr r3, [r7, #4]
  16914. 8007518: 429a cmp r2, r3
  16915. 800751a: d3f0 bcc.n 80074fe <HAL_CRC_Calculate+0x42>
  16916. temp = hcrc->Instance->DR;
  16917. 800751c: 68fb ldr r3, [r7, #12]
  16918. 800751e: 681b ldr r3, [r3, #0]
  16919. 8007520: 681b ldr r3, [r3, #0]
  16920. 8007522: 613b str r3, [r7, #16]
  16921. break;
  16922. 8007524: e00e b.n 8007544 <HAL_CRC_Calculate+0x88>
  16923. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  16924. 8007526: 687a ldr r2, [r7, #4]
  16925. 8007528: 68b9 ldr r1, [r7, #8]
  16926. 800752a: 68f8 ldr r0, [r7, #12]
  16927. 800752c: f000 f812 bl 8007554 <CRC_Handle_8>
  16928. 8007530: 6138 str r0, [r7, #16]
  16929. break;
  16930. 8007532: e007 b.n 8007544 <HAL_CRC_Calculate+0x88>
  16931. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  16932. 8007534: 687a ldr r2, [r7, #4]
  16933. 8007536: 68b9 ldr r1, [r7, #8]
  16934. 8007538: 68f8 ldr r0, [r7, #12]
  16935. 800753a: f000 f899 bl 8007670 <CRC_Handle_16>
  16936. 800753e: 6138 str r0, [r7, #16]
  16937. break;
  16938. 8007540: e000 b.n 8007544 <HAL_CRC_Calculate+0x88>
  16939. break;
  16940. 8007542: bf00 nop
  16941. }
  16942. /* Change CRC peripheral state */
  16943. hcrc->State = HAL_CRC_STATE_READY;
  16944. 8007544: 68fb ldr r3, [r7, #12]
  16945. 8007546: 2201 movs r2, #1
  16946. 8007548: 775a strb r2, [r3, #29]
  16947. /* Return the CRC computed value */
  16948. return temp;
  16949. 800754a: 693b ldr r3, [r7, #16]
  16950. }
  16951. 800754c: 4618 mov r0, r3
  16952. 800754e: 3718 adds r7, #24
  16953. 8007550: 46bd mov sp, r7
  16954. 8007552: bd80 pop {r7, pc}
  16955. 08007554 <CRC_Handle_8>:
  16956. * @param pBuffer pointer to the input data buffer
  16957. * @param BufferLength input data buffer length
  16958. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  16959. */
  16960. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  16961. {
  16962. 8007554: b480 push {r7}
  16963. 8007556: b089 sub sp, #36 @ 0x24
  16964. 8007558: af00 add r7, sp, #0
  16965. 800755a: 60f8 str r0, [r7, #12]
  16966. 800755c: 60b9 str r1, [r7, #8]
  16967. 800755e: 607a str r2, [r7, #4]
  16968. __IO uint16_t *pReg;
  16969. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  16970. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  16971. * handling by the peripheral */
  16972. for (i = 0U; i < (BufferLength / 4U); i++)
  16973. 8007560: 2300 movs r3, #0
  16974. 8007562: 61fb str r3, [r7, #28]
  16975. 8007564: e023 b.n 80075ae <CRC_Handle_8+0x5a>
  16976. {
  16977. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16978. 8007566: 69fb ldr r3, [r7, #28]
  16979. 8007568: 009b lsls r3, r3, #2
  16980. 800756a: 68ba ldr r2, [r7, #8]
  16981. 800756c: 4413 add r3, r2
  16982. 800756e: 781b ldrb r3, [r3, #0]
  16983. 8007570: 061a lsls r2, r3, #24
  16984. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  16985. 8007572: 69fb ldr r3, [r7, #28]
  16986. 8007574: 009b lsls r3, r3, #2
  16987. 8007576: 3301 adds r3, #1
  16988. 8007578: 68b9 ldr r1, [r7, #8]
  16989. 800757a: 440b add r3, r1
  16990. 800757c: 781b ldrb r3, [r3, #0]
  16991. 800757e: 041b lsls r3, r3, #16
  16992. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  16993. 8007580: 431a orrs r2, r3
  16994. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  16995. 8007582: 69fb ldr r3, [r7, #28]
  16996. 8007584: 009b lsls r3, r3, #2
  16997. 8007586: 3302 adds r3, #2
  16998. 8007588: 68b9 ldr r1, [r7, #8]
  16999. 800758a: 440b add r3, r1
  17000. 800758c: 781b ldrb r3, [r3, #0]
  17001. 800758e: 021b lsls r3, r3, #8
  17002. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  17003. 8007590: 431a orrs r2, r3
  17004. (uint32_t)pBuffer[(4U * i) + 3U];
  17005. 8007592: 69fb ldr r3, [r7, #28]
  17006. 8007594: 009b lsls r3, r3, #2
  17007. 8007596: 3303 adds r3, #3
  17008. 8007598: 68b9 ldr r1, [r7, #8]
  17009. 800759a: 440b add r3, r1
  17010. 800759c: 781b ldrb r3, [r3, #0]
  17011. 800759e: 4619 mov r1, r3
  17012. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17013. 80075a0: 68fb ldr r3, [r7, #12]
  17014. 80075a2: 681b ldr r3, [r3, #0]
  17015. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  17016. 80075a4: 430a orrs r2, r1
  17017. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17018. 80075a6: 601a str r2, [r3, #0]
  17019. for (i = 0U; i < (BufferLength / 4U); i++)
  17020. 80075a8: 69fb ldr r3, [r7, #28]
  17021. 80075aa: 3301 adds r3, #1
  17022. 80075ac: 61fb str r3, [r7, #28]
  17023. 80075ae: 687b ldr r3, [r7, #4]
  17024. 80075b0: 089b lsrs r3, r3, #2
  17025. 80075b2: 69fa ldr r2, [r7, #28]
  17026. 80075b4: 429a cmp r2, r3
  17027. 80075b6: d3d6 bcc.n 8007566 <CRC_Handle_8+0x12>
  17028. }
  17029. /* last bytes specific handling */
  17030. if ((BufferLength % 4U) != 0U)
  17031. 80075b8: 687b ldr r3, [r7, #4]
  17032. 80075ba: f003 0303 and.w r3, r3, #3
  17033. 80075be: 2b00 cmp r3, #0
  17034. 80075c0: d04d beq.n 800765e <CRC_Handle_8+0x10a>
  17035. {
  17036. if ((BufferLength % 4U) == 1U)
  17037. 80075c2: 687b ldr r3, [r7, #4]
  17038. 80075c4: f003 0303 and.w r3, r3, #3
  17039. 80075c8: 2b01 cmp r3, #1
  17040. 80075ca: d107 bne.n 80075dc <CRC_Handle_8+0x88>
  17041. {
  17042. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  17043. 80075cc: 69fb ldr r3, [r7, #28]
  17044. 80075ce: 009b lsls r3, r3, #2
  17045. 80075d0: 68ba ldr r2, [r7, #8]
  17046. 80075d2: 4413 add r3, r2
  17047. 80075d4: 68fa ldr r2, [r7, #12]
  17048. 80075d6: 6812 ldr r2, [r2, #0]
  17049. 80075d8: 781b ldrb r3, [r3, #0]
  17050. 80075da: 7013 strb r3, [r2, #0]
  17051. }
  17052. if ((BufferLength % 4U) == 2U)
  17053. 80075dc: 687b ldr r3, [r7, #4]
  17054. 80075de: f003 0303 and.w r3, r3, #3
  17055. 80075e2: 2b02 cmp r3, #2
  17056. 80075e4: d116 bne.n 8007614 <CRC_Handle_8+0xc0>
  17057. {
  17058. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  17059. 80075e6: 69fb ldr r3, [r7, #28]
  17060. 80075e8: 009b lsls r3, r3, #2
  17061. 80075ea: 68ba ldr r2, [r7, #8]
  17062. 80075ec: 4413 add r3, r2
  17063. 80075ee: 781b ldrb r3, [r3, #0]
  17064. 80075f0: 021b lsls r3, r3, #8
  17065. 80075f2: b21a sxth r2, r3
  17066. 80075f4: 69fb ldr r3, [r7, #28]
  17067. 80075f6: 009b lsls r3, r3, #2
  17068. 80075f8: 3301 adds r3, #1
  17069. 80075fa: 68b9 ldr r1, [r7, #8]
  17070. 80075fc: 440b add r3, r1
  17071. 80075fe: 781b ldrb r3, [r3, #0]
  17072. 8007600: b21b sxth r3, r3
  17073. 8007602: 4313 orrs r3, r2
  17074. 8007604: b21b sxth r3, r3
  17075. 8007606: 837b strh r3, [r7, #26]
  17076. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17077. 8007608: 68fb ldr r3, [r7, #12]
  17078. 800760a: 681b ldr r3, [r3, #0]
  17079. 800760c: 617b str r3, [r7, #20]
  17080. *pReg = data;
  17081. 800760e: 697b ldr r3, [r7, #20]
  17082. 8007610: 8b7a ldrh r2, [r7, #26]
  17083. 8007612: 801a strh r2, [r3, #0]
  17084. }
  17085. if ((BufferLength % 4U) == 3U)
  17086. 8007614: 687b ldr r3, [r7, #4]
  17087. 8007616: f003 0303 and.w r3, r3, #3
  17088. 800761a: 2b03 cmp r3, #3
  17089. 800761c: d11f bne.n 800765e <CRC_Handle_8+0x10a>
  17090. {
  17091. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  17092. 800761e: 69fb ldr r3, [r7, #28]
  17093. 8007620: 009b lsls r3, r3, #2
  17094. 8007622: 68ba ldr r2, [r7, #8]
  17095. 8007624: 4413 add r3, r2
  17096. 8007626: 781b ldrb r3, [r3, #0]
  17097. 8007628: 021b lsls r3, r3, #8
  17098. 800762a: b21a sxth r2, r3
  17099. 800762c: 69fb ldr r3, [r7, #28]
  17100. 800762e: 009b lsls r3, r3, #2
  17101. 8007630: 3301 adds r3, #1
  17102. 8007632: 68b9 ldr r1, [r7, #8]
  17103. 8007634: 440b add r3, r1
  17104. 8007636: 781b ldrb r3, [r3, #0]
  17105. 8007638: b21b sxth r3, r3
  17106. 800763a: 4313 orrs r3, r2
  17107. 800763c: b21b sxth r3, r3
  17108. 800763e: 837b strh r3, [r7, #26]
  17109. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17110. 8007640: 68fb ldr r3, [r7, #12]
  17111. 8007642: 681b ldr r3, [r3, #0]
  17112. 8007644: 617b str r3, [r7, #20]
  17113. *pReg = data;
  17114. 8007646: 697b ldr r3, [r7, #20]
  17115. 8007648: 8b7a ldrh r2, [r7, #26]
  17116. 800764a: 801a strh r2, [r3, #0]
  17117. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  17118. 800764c: 69fb ldr r3, [r7, #28]
  17119. 800764e: 009b lsls r3, r3, #2
  17120. 8007650: 3302 adds r3, #2
  17121. 8007652: 68ba ldr r2, [r7, #8]
  17122. 8007654: 4413 add r3, r2
  17123. 8007656: 68fa ldr r2, [r7, #12]
  17124. 8007658: 6812 ldr r2, [r2, #0]
  17125. 800765a: 781b ldrb r3, [r3, #0]
  17126. 800765c: 7013 strb r3, [r2, #0]
  17127. }
  17128. }
  17129. /* Return the CRC computed value */
  17130. return hcrc->Instance->DR;
  17131. 800765e: 68fb ldr r3, [r7, #12]
  17132. 8007660: 681b ldr r3, [r3, #0]
  17133. 8007662: 681b ldr r3, [r3, #0]
  17134. }
  17135. 8007664: 4618 mov r0, r3
  17136. 8007666: 3724 adds r7, #36 @ 0x24
  17137. 8007668: 46bd mov sp, r7
  17138. 800766a: f85d 7b04 ldr.w r7, [sp], #4
  17139. 800766e: 4770 bx lr
  17140. 08007670 <CRC_Handle_16>:
  17141. * @param pBuffer pointer to the input data buffer
  17142. * @param BufferLength input data buffer length
  17143. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17144. */
  17145. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  17146. {
  17147. 8007670: b480 push {r7}
  17148. 8007672: b087 sub sp, #28
  17149. 8007674: af00 add r7, sp, #0
  17150. 8007676: 60f8 str r0, [r7, #12]
  17151. 8007678: 60b9 str r1, [r7, #8]
  17152. 800767a: 607a str r2, [r7, #4]
  17153. __IO uint16_t *pReg;
  17154. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  17155. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  17156. * a correct type handling by the peripheral */
  17157. for (i = 0U; i < (BufferLength / 2U); i++)
  17158. 800767c: 2300 movs r3, #0
  17159. 800767e: 617b str r3, [r7, #20]
  17160. 8007680: e013 b.n 80076aa <CRC_Handle_16+0x3a>
  17161. {
  17162. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  17163. 8007682: 697b ldr r3, [r7, #20]
  17164. 8007684: 009b lsls r3, r3, #2
  17165. 8007686: 68ba ldr r2, [r7, #8]
  17166. 8007688: 4413 add r3, r2
  17167. 800768a: 881b ldrh r3, [r3, #0]
  17168. 800768c: 041a lsls r2, r3, #16
  17169. 800768e: 697b ldr r3, [r7, #20]
  17170. 8007690: 009b lsls r3, r3, #2
  17171. 8007692: 3302 adds r3, #2
  17172. 8007694: 68b9 ldr r1, [r7, #8]
  17173. 8007696: 440b add r3, r1
  17174. 8007698: 881b ldrh r3, [r3, #0]
  17175. 800769a: 4619 mov r1, r3
  17176. 800769c: 68fb ldr r3, [r7, #12]
  17177. 800769e: 681b ldr r3, [r3, #0]
  17178. 80076a0: 430a orrs r2, r1
  17179. 80076a2: 601a str r2, [r3, #0]
  17180. for (i = 0U; i < (BufferLength / 2U); i++)
  17181. 80076a4: 697b ldr r3, [r7, #20]
  17182. 80076a6: 3301 adds r3, #1
  17183. 80076a8: 617b str r3, [r7, #20]
  17184. 80076aa: 687b ldr r3, [r7, #4]
  17185. 80076ac: 085b lsrs r3, r3, #1
  17186. 80076ae: 697a ldr r2, [r7, #20]
  17187. 80076b0: 429a cmp r2, r3
  17188. 80076b2: d3e6 bcc.n 8007682 <CRC_Handle_16+0x12>
  17189. }
  17190. if ((BufferLength % 2U) != 0U)
  17191. 80076b4: 687b ldr r3, [r7, #4]
  17192. 80076b6: f003 0301 and.w r3, r3, #1
  17193. 80076ba: 2b00 cmp r3, #0
  17194. 80076bc: d009 beq.n 80076d2 <CRC_Handle_16+0x62>
  17195. {
  17196. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17197. 80076be: 68fb ldr r3, [r7, #12]
  17198. 80076c0: 681b ldr r3, [r3, #0]
  17199. 80076c2: 613b str r3, [r7, #16]
  17200. *pReg = pBuffer[2U * i];
  17201. 80076c4: 697b ldr r3, [r7, #20]
  17202. 80076c6: 009b lsls r3, r3, #2
  17203. 80076c8: 68ba ldr r2, [r7, #8]
  17204. 80076ca: 4413 add r3, r2
  17205. 80076cc: 881a ldrh r2, [r3, #0]
  17206. 80076ce: 693b ldr r3, [r7, #16]
  17207. 80076d0: 801a strh r2, [r3, #0]
  17208. }
  17209. /* Return the CRC computed value */
  17210. return hcrc->Instance->DR;
  17211. 80076d2: 68fb ldr r3, [r7, #12]
  17212. 80076d4: 681b ldr r3, [r3, #0]
  17213. 80076d6: 681b ldr r3, [r3, #0]
  17214. }
  17215. 80076d8: 4618 mov r0, r3
  17216. 80076da: 371c adds r7, #28
  17217. 80076dc: 46bd mov sp, r7
  17218. 80076de: f85d 7b04 ldr.w r7, [sp], #4
  17219. 80076e2: 4770 bx lr
  17220. 080076e4 <HAL_CRCEx_Polynomial_Set>:
  17221. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  17222. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  17223. * @retval HAL status
  17224. */
  17225. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  17226. {
  17227. 80076e4: b480 push {r7}
  17228. 80076e6: b087 sub sp, #28
  17229. 80076e8: af00 add r7, sp, #0
  17230. 80076ea: 60f8 str r0, [r7, #12]
  17231. 80076ec: 60b9 str r1, [r7, #8]
  17232. 80076ee: 607a str r2, [r7, #4]
  17233. HAL_StatusTypeDef status = HAL_OK;
  17234. 80076f0: 2300 movs r3, #0
  17235. 80076f2: 75fb strb r3, [r7, #23]
  17236. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  17237. 80076f4: 231f movs r3, #31
  17238. 80076f6: 613b str r3, [r7, #16]
  17239. /* Check the parameters */
  17240. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  17241. /* Ensure that the generating polynomial is odd */
  17242. if ((Pol & (uint32_t)(0x1U)) == 0U)
  17243. 80076f8: 68bb ldr r3, [r7, #8]
  17244. 80076fa: f003 0301 and.w r3, r3, #1
  17245. 80076fe: 2b00 cmp r3, #0
  17246. 8007700: d102 bne.n 8007708 <HAL_CRCEx_Polynomial_Set+0x24>
  17247. {
  17248. status = HAL_ERROR;
  17249. 8007702: 2301 movs r3, #1
  17250. 8007704: 75fb strb r3, [r7, #23]
  17251. 8007706: e063 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17252. * definition. HAL_ERROR is reported if Pol degree is
  17253. * larger than that indicated by PolyLength.
  17254. * Look for MSB position: msb will contain the degree of
  17255. * the second to the largest polynomial member. E.g., for
  17256. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  17257. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  17258. 8007708: bf00 nop
  17259. 800770a: 693b ldr r3, [r7, #16]
  17260. 800770c: 1e5a subs r2, r3, #1
  17261. 800770e: 613a str r2, [r7, #16]
  17262. 8007710: 2b00 cmp r3, #0
  17263. 8007712: d009 beq.n 8007728 <HAL_CRCEx_Polynomial_Set+0x44>
  17264. 8007714: 693b ldr r3, [r7, #16]
  17265. 8007716: f003 031f and.w r3, r3, #31
  17266. 800771a: 68ba ldr r2, [r7, #8]
  17267. 800771c: fa22 f303 lsr.w r3, r2, r3
  17268. 8007720: f003 0301 and.w r3, r3, #1
  17269. 8007724: 2b00 cmp r3, #0
  17270. 8007726: d0f0 beq.n 800770a <HAL_CRCEx_Polynomial_Set+0x26>
  17271. {
  17272. }
  17273. switch (PolyLength)
  17274. 8007728: 687b ldr r3, [r7, #4]
  17275. 800772a: 2b18 cmp r3, #24
  17276. 800772c: d846 bhi.n 80077bc <HAL_CRCEx_Polynomial_Set+0xd8>
  17277. 800772e: a201 add r2, pc, #4 @ (adr r2, 8007734 <HAL_CRCEx_Polynomial_Set+0x50>)
  17278. 8007730: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17279. 8007734: 080077c3 .word 0x080077c3
  17280. 8007738: 080077bd .word 0x080077bd
  17281. 800773c: 080077bd .word 0x080077bd
  17282. 8007740: 080077bd .word 0x080077bd
  17283. 8007744: 080077bd .word 0x080077bd
  17284. 8007748: 080077bd .word 0x080077bd
  17285. 800774c: 080077bd .word 0x080077bd
  17286. 8007750: 080077bd .word 0x080077bd
  17287. 8007754: 080077b1 .word 0x080077b1
  17288. 8007758: 080077bd .word 0x080077bd
  17289. 800775c: 080077bd .word 0x080077bd
  17290. 8007760: 080077bd .word 0x080077bd
  17291. 8007764: 080077bd .word 0x080077bd
  17292. 8007768: 080077bd .word 0x080077bd
  17293. 800776c: 080077bd .word 0x080077bd
  17294. 8007770: 080077bd .word 0x080077bd
  17295. 8007774: 080077a5 .word 0x080077a5
  17296. 8007778: 080077bd .word 0x080077bd
  17297. 800777c: 080077bd .word 0x080077bd
  17298. 8007780: 080077bd .word 0x080077bd
  17299. 8007784: 080077bd .word 0x080077bd
  17300. 8007788: 080077bd .word 0x080077bd
  17301. 800778c: 080077bd .word 0x080077bd
  17302. 8007790: 080077bd .word 0x080077bd
  17303. 8007794: 08007799 .word 0x08007799
  17304. {
  17305. case CRC_POLYLENGTH_7B:
  17306. if (msb >= HAL_CRC_LENGTH_7B)
  17307. 8007798: 693b ldr r3, [r7, #16]
  17308. 800779a: 2b06 cmp r3, #6
  17309. 800779c: d913 bls.n 80077c6 <HAL_CRCEx_Polynomial_Set+0xe2>
  17310. {
  17311. status = HAL_ERROR;
  17312. 800779e: 2301 movs r3, #1
  17313. 80077a0: 75fb strb r3, [r7, #23]
  17314. }
  17315. break;
  17316. 80077a2: e010 b.n 80077c6 <HAL_CRCEx_Polynomial_Set+0xe2>
  17317. case CRC_POLYLENGTH_8B:
  17318. if (msb >= HAL_CRC_LENGTH_8B)
  17319. 80077a4: 693b ldr r3, [r7, #16]
  17320. 80077a6: 2b07 cmp r3, #7
  17321. 80077a8: d90f bls.n 80077ca <HAL_CRCEx_Polynomial_Set+0xe6>
  17322. {
  17323. status = HAL_ERROR;
  17324. 80077aa: 2301 movs r3, #1
  17325. 80077ac: 75fb strb r3, [r7, #23]
  17326. }
  17327. break;
  17328. 80077ae: e00c b.n 80077ca <HAL_CRCEx_Polynomial_Set+0xe6>
  17329. case CRC_POLYLENGTH_16B:
  17330. if (msb >= HAL_CRC_LENGTH_16B)
  17331. 80077b0: 693b ldr r3, [r7, #16]
  17332. 80077b2: 2b0f cmp r3, #15
  17333. 80077b4: d90b bls.n 80077ce <HAL_CRCEx_Polynomial_Set+0xea>
  17334. {
  17335. status = HAL_ERROR;
  17336. 80077b6: 2301 movs r3, #1
  17337. 80077b8: 75fb strb r3, [r7, #23]
  17338. }
  17339. break;
  17340. 80077ba: e008 b.n 80077ce <HAL_CRCEx_Polynomial_Set+0xea>
  17341. case CRC_POLYLENGTH_32B:
  17342. /* no polynomial definition vs. polynomial length issue possible */
  17343. break;
  17344. default:
  17345. status = HAL_ERROR;
  17346. 80077bc: 2301 movs r3, #1
  17347. 80077be: 75fb strb r3, [r7, #23]
  17348. break;
  17349. 80077c0: e006 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17350. break;
  17351. 80077c2: bf00 nop
  17352. 80077c4: e004 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17353. break;
  17354. 80077c6: bf00 nop
  17355. 80077c8: e002 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17356. break;
  17357. 80077ca: bf00 nop
  17358. 80077cc: e000 b.n 80077d0 <HAL_CRCEx_Polynomial_Set+0xec>
  17359. break;
  17360. 80077ce: bf00 nop
  17361. }
  17362. }
  17363. if (status == HAL_OK)
  17364. 80077d0: 7dfb ldrb r3, [r7, #23]
  17365. 80077d2: 2b00 cmp r3, #0
  17366. 80077d4: d10d bne.n 80077f2 <HAL_CRCEx_Polynomial_Set+0x10e>
  17367. {
  17368. /* set generating polynomial */
  17369. WRITE_REG(hcrc->Instance->POL, Pol);
  17370. 80077d6: 68fb ldr r3, [r7, #12]
  17371. 80077d8: 681b ldr r3, [r3, #0]
  17372. 80077da: 68ba ldr r2, [r7, #8]
  17373. 80077dc: 615a str r2, [r3, #20]
  17374. /* set generating polynomial size */
  17375. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  17376. 80077de: 68fb ldr r3, [r7, #12]
  17377. 80077e0: 681b ldr r3, [r3, #0]
  17378. 80077e2: 689b ldr r3, [r3, #8]
  17379. 80077e4: f023 0118 bic.w r1, r3, #24
  17380. 80077e8: 68fb ldr r3, [r7, #12]
  17381. 80077ea: 681b ldr r3, [r3, #0]
  17382. 80077ec: 687a ldr r2, [r7, #4]
  17383. 80077ee: 430a orrs r2, r1
  17384. 80077f0: 609a str r2, [r3, #8]
  17385. }
  17386. /* Return function status */
  17387. return status;
  17388. 80077f2: 7dfb ldrb r3, [r7, #23]
  17389. }
  17390. 80077f4: 4618 mov r0, r3
  17391. 80077f6: 371c adds r7, #28
  17392. 80077f8: 46bd mov sp, r7
  17393. 80077fa: f85d 7b04 ldr.w r7, [sp], #4
  17394. 80077fe: 4770 bx lr
  17395. 08007800 <HAL_DAC_Init>:
  17396. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17397. * the configuration information for the specified DAC.
  17398. * @retval HAL status
  17399. */
  17400. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  17401. {
  17402. 8007800: b580 push {r7, lr}
  17403. 8007802: b082 sub sp, #8
  17404. 8007804: af00 add r7, sp, #0
  17405. 8007806: 6078 str r0, [r7, #4]
  17406. /* Check the DAC peripheral handle */
  17407. if (hdac == NULL)
  17408. 8007808: 687b ldr r3, [r7, #4]
  17409. 800780a: 2b00 cmp r3, #0
  17410. 800780c: d101 bne.n 8007812 <HAL_DAC_Init+0x12>
  17411. {
  17412. return HAL_ERROR;
  17413. 800780e: 2301 movs r3, #1
  17414. 8007810: e014 b.n 800783c <HAL_DAC_Init+0x3c>
  17415. }
  17416. /* Check the parameters */
  17417. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  17418. if (hdac->State == HAL_DAC_STATE_RESET)
  17419. 8007812: 687b ldr r3, [r7, #4]
  17420. 8007814: 791b ldrb r3, [r3, #4]
  17421. 8007816: b2db uxtb r3, r3
  17422. 8007818: 2b00 cmp r3, #0
  17423. 800781a: d105 bne.n 8007828 <HAL_DAC_Init+0x28>
  17424. hdac->MspInitCallback = HAL_DAC_MspInit;
  17425. }
  17426. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17427. /* Allocate lock resource and initialize it */
  17428. hdac->Lock = HAL_UNLOCKED;
  17429. 800781c: 687b ldr r3, [r7, #4]
  17430. 800781e: 2200 movs r2, #0
  17431. 8007820: 715a strb r2, [r3, #5]
  17432. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17433. /* Init the low level hardware */
  17434. hdac->MspInitCallback(hdac);
  17435. #else
  17436. /* Init the low level hardware */
  17437. HAL_DAC_MspInit(hdac);
  17438. 8007822: 6878 ldr r0, [r7, #4]
  17439. 8007824: f7fc f8c2 bl 80039ac <HAL_DAC_MspInit>
  17440. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17441. }
  17442. /* Initialize the DAC state*/
  17443. hdac->State = HAL_DAC_STATE_BUSY;
  17444. 8007828: 687b ldr r3, [r7, #4]
  17445. 800782a: 2202 movs r2, #2
  17446. 800782c: 711a strb r2, [r3, #4]
  17447. /* Set DAC error code to none */
  17448. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  17449. 800782e: 687b ldr r3, [r7, #4]
  17450. 8007830: 2200 movs r2, #0
  17451. 8007832: 611a str r2, [r3, #16]
  17452. /* Initialize the DAC state*/
  17453. hdac->State = HAL_DAC_STATE_READY;
  17454. 8007834: 687b ldr r3, [r7, #4]
  17455. 8007836: 2201 movs r2, #1
  17456. 8007838: 711a strb r2, [r3, #4]
  17457. /* Return function status */
  17458. return HAL_OK;
  17459. 800783a: 2300 movs r3, #0
  17460. }
  17461. 800783c: 4618 mov r0, r3
  17462. 800783e: 3708 adds r7, #8
  17463. 8007840: 46bd mov sp, r7
  17464. 8007842: bd80 pop {r7, pc}
  17465. 08007844 <HAL_DAC_Start>:
  17466. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  17467. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  17468. * @retval HAL status
  17469. */
  17470. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  17471. {
  17472. 8007844: b480 push {r7}
  17473. 8007846: b083 sub sp, #12
  17474. 8007848: af00 add r7, sp, #0
  17475. 800784a: 6078 str r0, [r7, #4]
  17476. 800784c: 6039 str r1, [r7, #0]
  17477. /* Check the DAC peripheral handle */
  17478. if (hdac == NULL)
  17479. 800784e: 687b ldr r3, [r7, #4]
  17480. 8007850: 2b00 cmp r3, #0
  17481. 8007852: d101 bne.n 8007858 <HAL_DAC_Start+0x14>
  17482. {
  17483. return HAL_ERROR;
  17484. 8007854: 2301 movs r3, #1
  17485. 8007856: e046 b.n 80078e6 <HAL_DAC_Start+0xa2>
  17486. /* Check the parameters */
  17487. assert_param(IS_DAC_CHANNEL(Channel));
  17488. /* Process locked */
  17489. __HAL_LOCK(hdac);
  17490. 8007858: 687b ldr r3, [r7, #4]
  17491. 800785a: 795b ldrb r3, [r3, #5]
  17492. 800785c: 2b01 cmp r3, #1
  17493. 800785e: d101 bne.n 8007864 <HAL_DAC_Start+0x20>
  17494. 8007860: 2302 movs r3, #2
  17495. 8007862: e040 b.n 80078e6 <HAL_DAC_Start+0xa2>
  17496. 8007864: 687b ldr r3, [r7, #4]
  17497. 8007866: 2201 movs r2, #1
  17498. 8007868: 715a strb r2, [r3, #5]
  17499. /* Change DAC state */
  17500. hdac->State = HAL_DAC_STATE_BUSY;
  17501. 800786a: 687b ldr r3, [r7, #4]
  17502. 800786c: 2202 movs r2, #2
  17503. 800786e: 711a strb r2, [r3, #4]
  17504. /* Enable the Peripheral */
  17505. __HAL_DAC_ENABLE(hdac, Channel);
  17506. 8007870: 687b ldr r3, [r7, #4]
  17507. 8007872: 681b ldr r3, [r3, #0]
  17508. 8007874: 6819 ldr r1, [r3, #0]
  17509. 8007876: 683b ldr r3, [r7, #0]
  17510. 8007878: f003 0310 and.w r3, r3, #16
  17511. 800787c: 2201 movs r2, #1
  17512. 800787e: 409a lsls r2, r3
  17513. 8007880: 687b ldr r3, [r7, #4]
  17514. 8007882: 681b ldr r3, [r3, #0]
  17515. 8007884: 430a orrs r2, r1
  17516. 8007886: 601a str r2, [r3, #0]
  17517. if (Channel == DAC_CHANNEL_1)
  17518. 8007888: 683b ldr r3, [r7, #0]
  17519. 800788a: 2b00 cmp r3, #0
  17520. 800788c: d10f bne.n 80078ae <HAL_DAC_Start+0x6a>
  17521. {
  17522. /* Check if software trigger enabled */
  17523. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  17524. 800788e: 687b ldr r3, [r7, #4]
  17525. 8007890: 681b ldr r3, [r3, #0]
  17526. 8007892: 681b ldr r3, [r3, #0]
  17527. 8007894: f003 033e and.w r3, r3, #62 @ 0x3e
  17528. 8007898: 2b02 cmp r3, #2
  17529. 800789a: d11d bne.n 80078d8 <HAL_DAC_Start+0x94>
  17530. {
  17531. /* Enable the selected DAC software conversion */
  17532. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  17533. 800789c: 687b ldr r3, [r7, #4]
  17534. 800789e: 681b ldr r3, [r3, #0]
  17535. 80078a0: 685a ldr r2, [r3, #4]
  17536. 80078a2: 687b ldr r3, [r7, #4]
  17537. 80078a4: 681b ldr r3, [r3, #0]
  17538. 80078a6: f042 0201 orr.w r2, r2, #1
  17539. 80078aa: 605a str r2, [r3, #4]
  17540. 80078ac: e014 b.n 80078d8 <HAL_DAC_Start+0x94>
  17541. }
  17542. else
  17543. {
  17544. /* Check if software trigger enabled */
  17545. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  17546. 80078ae: 687b ldr r3, [r7, #4]
  17547. 80078b0: 681b ldr r3, [r3, #0]
  17548. 80078b2: 681b ldr r3, [r3, #0]
  17549. 80078b4: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  17550. 80078b8: 683b ldr r3, [r7, #0]
  17551. 80078ba: f003 0310 and.w r3, r3, #16
  17552. 80078be: 2102 movs r1, #2
  17553. 80078c0: fa01 f303 lsl.w r3, r1, r3
  17554. 80078c4: 429a cmp r2, r3
  17555. 80078c6: d107 bne.n 80078d8 <HAL_DAC_Start+0x94>
  17556. {
  17557. /* Enable the selected DAC software conversion*/
  17558. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  17559. 80078c8: 687b ldr r3, [r7, #4]
  17560. 80078ca: 681b ldr r3, [r3, #0]
  17561. 80078cc: 685a ldr r2, [r3, #4]
  17562. 80078ce: 687b ldr r3, [r7, #4]
  17563. 80078d0: 681b ldr r3, [r3, #0]
  17564. 80078d2: f042 0202 orr.w r2, r2, #2
  17565. 80078d6: 605a str r2, [r3, #4]
  17566. }
  17567. }
  17568. /* Change DAC state */
  17569. hdac->State = HAL_DAC_STATE_READY;
  17570. 80078d8: 687b ldr r3, [r7, #4]
  17571. 80078da: 2201 movs r2, #1
  17572. 80078dc: 711a strb r2, [r3, #4]
  17573. /* Process unlocked */
  17574. __HAL_UNLOCK(hdac);
  17575. 80078de: 687b ldr r3, [r7, #4]
  17576. 80078e0: 2200 movs r2, #0
  17577. 80078e2: 715a strb r2, [r3, #5]
  17578. /* Return function status */
  17579. return HAL_OK;
  17580. 80078e4: 2300 movs r3, #0
  17581. }
  17582. 80078e6: 4618 mov r0, r3
  17583. 80078e8: 370c adds r7, #12
  17584. 80078ea: 46bd mov sp, r7
  17585. 80078ec: f85d 7b04 ldr.w r7, [sp], #4
  17586. 80078f0: 4770 bx lr
  17587. 080078f2 <HAL_DAC_IRQHandler>:
  17588. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17589. * the configuration information for the specified DAC.
  17590. * @retval None
  17591. */
  17592. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  17593. {
  17594. 80078f2: b580 push {r7, lr}
  17595. 80078f4: b084 sub sp, #16
  17596. 80078f6: af00 add r7, sp, #0
  17597. 80078f8: 6078 str r0, [r7, #4]
  17598. uint32_t itsource = hdac->Instance->CR;
  17599. 80078fa: 687b ldr r3, [r7, #4]
  17600. 80078fc: 681b ldr r3, [r3, #0]
  17601. 80078fe: 681b ldr r3, [r3, #0]
  17602. 8007900: 60fb str r3, [r7, #12]
  17603. uint32_t itflag = hdac->Instance->SR;
  17604. 8007902: 687b ldr r3, [r7, #4]
  17605. 8007904: 681b ldr r3, [r3, #0]
  17606. 8007906: 6b5b ldr r3, [r3, #52] @ 0x34
  17607. 8007908: 60bb str r3, [r7, #8]
  17608. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  17609. 800790a: 68fb ldr r3, [r7, #12]
  17610. 800790c: f403 5300 and.w r3, r3, #8192 @ 0x2000
  17611. 8007910: 2b00 cmp r3, #0
  17612. 8007912: d01d beq.n 8007950 <HAL_DAC_IRQHandler+0x5e>
  17613. {
  17614. /* Check underrun flag of DAC channel 1 */
  17615. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  17616. 8007914: 68bb ldr r3, [r7, #8]
  17617. 8007916: f403 5300 and.w r3, r3, #8192 @ 0x2000
  17618. 800791a: 2b00 cmp r3, #0
  17619. 800791c: d018 beq.n 8007950 <HAL_DAC_IRQHandler+0x5e>
  17620. {
  17621. /* Change DAC state to error state */
  17622. hdac->State = HAL_DAC_STATE_ERROR;
  17623. 800791e: 687b ldr r3, [r7, #4]
  17624. 8007920: 2204 movs r2, #4
  17625. 8007922: 711a strb r2, [r3, #4]
  17626. /* Set DAC error code to channel1 DMA underrun error */
  17627. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  17628. 8007924: 687b ldr r3, [r7, #4]
  17629. 8007926: 691b ldr r3, [r3, #16]
  17630. 8007928: f043 0201 orr.w r2, r3, #1
  17631. 800792c: 687b ldr r3, [r7, #4]
  17632. 800792e: 611a str r2, [r3, #16]
  17633. /* Clear the underrun flag */
  17634. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  17635. 8007930: 687b ldr r3, [r7, #4]
  17636. 8007932: 681b ldr r3, [r3, #0]
  17637. 8007934: f44f 5200 mov.w r2, #8192 @ 0x2000
  17638. 8007938: 635a str r2, [r3, #52] @ 0x34
  17639. /* Disable the selected DAC channel1 DMA request */
  17640. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  17641. 800793a: 687b ldr r3, [r7, #4]
  17642. 800793c: 681b ldr r3, [r3, #0]
  17643. 800793e: 681a ldr r2, [r3, #0]
  17644. 8007940: 687b ldr r3, [r7, #4]
  17645. 8007942: 681b ldr r3, [r3, #0]
  17646. 8007944: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  17647. 8007948: 601a str r2, [r3, #0]
  17648. /* Error callback */
  17649. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17650. hdac->DMAUnderrunCallbackCh1(hdac);
  17651. #else
  17652. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  17653. 800794a: 6878 ldr r0, [r7, #4]
  17654. 800794c: f000 f851 bl 80079f2 <HAL_DAC_DMAUnderrunCallbackCh1>
  17655. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17656. }
  17657. }
  17658. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  17659. 8007950: 68fb ldr r3, [r7, #12]
  17660. 8007952: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17661. 8007956: 2b00 cmp r3, #0
  17662. 8007958: d01d beq.n 8007996 <HAL_DAC_IRQHandler+0xa4>
  17663. {
  17664. /* Check underrun flag of DAC channel 2 */
  17665. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  17666. 800795a: 68bb ldr r3, [r7, #8]
  17667. 800795c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  17668. 8007960: 2b00 cmp r3, #0
  17669. 8007962: d018 beq.n 8007996 <HAL_DAC_IRQHandler+0xa4>
  17670. {
  17671. /* Change DAC state to error state */
  17672. hdac->State = HAL_DAC_STATE_ERROR;
  17673. 8007964: 687b ldr r3, [r7, #4]
  17674. 8007966: 2204 movs r2, #4
  17675. 8007968: 711a strb r2, [r3, #4]
  17676. /* Set DAC error code to channel2 DMA underrun error */
  17677. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  17678. 800796a: 687b ldr r3, [r7, #4]
  17679. 800796c: 691b ldr r3, [r3, #16]
  17680. 800796e: f043 0202 orr.w r2, r3, #2
  17681. 8007972: 687b ldr r3, [r7, #4]
  17682. 8007974: 611a str r2, [r3, #16]
  17683. /* Clear the underrun flag */
  17684. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  17685. 8007976: 687b ldr r3, [r7, #4]
  17686. 8007978: 681b ldr r3, [r3, #0]
  17687. 800797a: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  17688. 800797e: 635a str r2, [r3, #52] @ 0x34
  17689. /* Disable the selected DAC channel2 DMA request */
  17690. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  17691. 8007980: 687b ldr r3, [r7, #4]
  17692. 8007982: 681b ldr r3, [r3, #0]
  17693. 8007984: 681a ldr r2, [r3, #0]
  17694. 8007986: 687b ldr r3, [r7, #4]
  17695. 8007988: 681b ldr r3, [r3, #0]
  17696. 800798a: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  17697. 800798e: 601a str r2, [r3, #0]
  17698. /* Error callback */
  17699. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  17700. hdac->DMAUnderrunCallbackCh2(hdac);
  17701. #else
  17702. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  17703. 8007990: 6878 ldr r0, [r7, #4]
  17704. 8007992: f000 f97b bl 8007c8c <HAL_DACEx_DMAUnderrunCallbackCh2>
  17705. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  17706. }
  17707. }
  17708. }
  17709. 8007996: bf00 nop
  17710. 8007998: 3710 adds r7, #16
  17711. 800799a: 46bd mov sp, r7
  17712. 800799c: bd80 pop {r7, pc}
  17713. 0800799e <HAL_DAC_SetValue>:
  17714. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  17715. * @param Data Data to be loaded in the selected data holding register.
  17716. * @retval HAL status
  17717. */
  17718. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  17719. {
  17720. 800799e: b480 push {r7}
  17721. 80079a0: b087 sub sp, #28
  17722. 80079a2: af00 add r7, sp, #0
  17723. 80079a4: 60f8 str r0, [r7, #12]
  17724. 80079a6: 60b9 str r1, [r7, #8]
  17725. 80079a8: 607a str r2, [r7, #4]
  17726. 80079aa: 603b str r3, [r7, #0]
  17727. __IO uint32_t tmp = 0UL;
  17728. 80079ac: 2300 movs r3, #0
  17729. 80079ae: 617b str r3, [r7, #20]
  17730. /* Check the DAC peripheral handle */
  17731. if (hdac == NULL)
  17732. 80079b0: 68fb ldr r3, [r7, #12]
  17733. 80079b2: 2b00 cmp r3, #0
  17734. 80079b4: d101 bne.n 80079ba <HAL_DAC_SetValue+0x1c>
  17735. {
  17736. return HAL_ERROR;
  17737. 80079b6: 2301 movs r3, #1
  17738. 80079b8: e015 b.n 80079e6 <HAL_DAC_SetValue+0x48>
  17739. /* Check the parameters */
  17740. assert_param(IS_DAC_CHANNEL(Channel));
  17741. assert_param(IS_DAC_ALIGN(Alignment));
  17742. assert_param(IS_DAC_DATA(Data));
  17743. tmp = (uint32_t)hdac->Instance;
  17744. 80079ba: 68fb ldr r3, [r7, #12]
  17745. 80079bc: 681b ldr r3, [r3, #0]
  17746. 80079be: 617b str r3, [r7, #20]
  17747. if (Channel == DAC_CHANNEL_1)
  17748. 80079c0: 68bb ldr r3, [r7, #8]
  17749. 80079c2: 2b00 cmp r3, #0
  17750. 80079c4: d105 bne.n 80079d2 <HAL_DAC_SetValue+0x34>
  17751. {
  17752. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  17753. 80079c6: 697a ldr r2, [r7, #20]
  17754. 80079c8: 687b ldr r3, [r7, #4]
  17755. 80079ca: 4413 add r3, r2
  17756. 80079cc: 3308 adds r3, #8
  17757. 80079ce: 617b str r3, [r7, #20]
  17758. 80079d0: e004 b.n 80079dc <HAL_DAC_SetValue+0x3e>
  17759. }
  17760. else
  17761. {
  17762. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  17763. 80079d2: 697a ldr r2, [r7, #20]
  17764. 80079d4: 687b ldr r3, [r7, #4]
  17765. 80079d6: 4413 add r3, r2
  17766. 80079d8: 3314 adds r3, #20
  17767. 80079da: 617b str r3, [r7, #20]
  17768. }
  17769. /* Set the DAC channel selected data holding register */
  17770. *(__IO uint32_t *) tmp = Data;
  17771. 80079dc: 697b ldr r3, [r7, #20]
  17772. 80079de: 461a mov r2, r3
  17773. 80079e0: 683b ldr r3, [r7, #0]
  17774. 80079e2: 6013 str r3, [r2, #0]
  17775. /* Return function status */
  17776. return HAL_OK;
  17777. 80079e4: 2300 movs r3, #0
  17778. }
  17779. 80079e6: 4618 mov r0, r3
  17780. 80079e8: 371c adds r7, #28
  17781. 80079ea: 46bd mov sp, r7
  17782. 80079ec: f85d 7b04 ldr.w r7, [sp], #4
  17783. 80079f0: 4770 bx lr
  17784. 080079f2 <HAL_DAC_DMAUnderrunCallbackCh1>:
  17785. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  17786. * the configuration information for the specified DAC.
  17787. * @retval None
  17788. */
  17789. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  17790. {
  17791. 80079f2: b480 push {r7}
  17792. 80079f4: b083 sub sp, #12
  17793. 80079f6: af00 add r7, sp, #0
  17794. 80079f8: 6078 str r0, [r7, #4]
  17795. UNUSED(hdac);
  17796. /* NOTE : This function should not be modified, when the callback is needed,
  17797. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  17798. */
  17799. }
  17800. 80079fa: bf00 nop
  17801. 80079fc: 370c adds r7, #12
  17802. 80079fe: 46bd mov sp, r7
  17803. 8007a00: f85d 7b04 ldr.w r7, [sp], #4
  17804. 8007a04: 4770 bx lr
  17805. ...
  17806. 08007a08 <HAL_DAC_ConfigChannel>:
  17807. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  17808. * @retval HAL status
  17809. */
  17810. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  17811. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  17812. {
  17813. 8007a08: b580 push {r7, lr}
  17814. 8007a0a: b08a sub sp, #40 @ 0x28
  17815. 8007a0c: af00 add r7, sp, #0
  17816. 8007a0e: 60f8 str r0, [r7, #12]
  17817. 8007a10: 60b9 str r1, [r7, #8]
  17818. 8007a12: 607a str r2, [r7, #4]
  17819. HAL_StatusTypeDef status = HAL_OK;
  17820. 8007a14: 2300 movs r3, #0
  17821. 8007a16: f887 3023 strb.w r3, [r7, #35] @ 0x23
  17822. uint32_t tmpreg2;
  17823. uint32_t tickstart;
  17824. uint32_t connectOnChip;
  17825. /* Check the DAC peripheral handle and channel configuration struct */
  17826. if ((hdac == NULL) || (sConfig == NULL))
  17827. 8007a1a: 68fb ldr r3, [r7, #12]
  17828. 8007a1c: 2b00 cmp r3, #0
  17829. 8007a1e: d002 beq.n 8007a26 <HAL_DAC_ConfigChannel+0x1e>
  17830. 8007a20: 68bb ldr r3, [r7, #8]
  17831. 8007a22: 2b00 cmp r3, #0
  17832. 8007a24: d101 bne.n 8007a2a <HAL_DAC_ConfigChannel+0x22>
  17833. {
  17834. return HAL_ERROR;
  17835. 8007a26: 2301 movs r3, #1
  17836. 8007a28: e12a b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17837. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  17838. }
  17839. assert_param(IS_DAC_CHANNEL(Channel));
  17840. /* Process locked */
  17841. __HAL_LOCK(hdac);
  17842. 8007a2a: 68fb ldr r3, [r7, #12]
  17843. 8007a2c: 795b ldrb r3, [r3, #5]
  17844. 8007a2e: 2b01 cmp r3, #1
  17845. 8007a30: d101 bne.n 8007a36 <HAL_DAC_ConfigChannel+0x2e>
  17846. 8007a32: 2302 movs r3, #2
  17847. 8007a34: e124 b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17848. 8007a36: 68fb ldr r3, [r7, #12]
  17849. 8007a38: 2201 movs r2, #1
  17850. 8007a3a: 715a strb r2, [r3, #5]
  17851. /* Change DAC state */
  17852. hdac->State = HAL_DAC_STATE_BUSY;
  17853. 8007a3c: 68fb ldr r3, [r7, #12]
  17854. 8007a3e: 2202 movs r2, #2
  17855. 8007a40: 711a strb r2, [r3, #4]
  17856. /* Sample and hold configuration */
  17857. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  17858. 8007a42: 68bb ldr r3, [r7, #8]
  17859. 8007a44: 681b ldr r3, [r3, #0]
  17860. 8007a46: 2b04 cmp r3, #4
  17861. 8007a48: d17a bne.n 8007b40 <HAL_DAC_ConfigChannel+0x138>
  17862. {
  17863. /* Get timeout */
  17864. tickstart = HAL_GetTick();
  17865. 8007a4a: f7fd fd8d bl 8005568 <HAL_GetTick>
  17866. 8007a4e: 61f8 str r0, [r7, #28]
  17867. if (Channel == DAC_CHANNEL_1)
  17868. 8007a50: 687b ldr r3, [r7, #4]
  17869. 8007a52: 2b00 cmp r3, #0
  17870. 8007a54: d13d bne.n 8007ad2 <HAL_DAC_ConfigChannel+0xca>
  17871. {
  17872. /* SHSR1 can be written when BWST1 is cleared */
  17873. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17874. 8007a56: e018 b.n 8007a8a <HAL_DAC_ConfigChannel+0x82>
  17875. {
  17876. /* Check for the Timeout */
  17877. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  17878. 8007a58: f7fd fd86 bl 8005568 <HAL_GetTick>
  17879. 8007a5c: 4602 mov r2, r0
  17880. 8007a5e: 69fb ldr r3, [r7, #28]
  17881. 8007a60: 1ad3 subs r3, r2, r3
  17882. 8007a62: 2b01 cmp r3, #1
  17883. 8007a64: d911 bls.n 8007a8a <HAL_DAC_ConfigChannel+0x82>
  17884. {
  17885. /* New check to avoid false timeout detection in case of preemption */
  17886. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17887. 8007a66: 68fb ldr r3, [r7, #12]
  17888. 8007a68: 681b ldr r3, [r3, #0]
  17889. 8007a6a: 6b5a ldr r2, [r3, #52] @ 0x34
  17890. 8007a6c: 4b86 ldr r3, [pc, #536] @ (8007c88 <HAL_DAC_ConfigChannel+0x280>)
  17891. 8007a6e: 4013 ands r3, r2
  17892. 8007a70: 2b00 cmp r3, #0
  17893. 8007a72: d00a beq.n 8007a8a <HAL_DAC_ConfigChannel+0x82>
  17894. {
  17895. /* Update error code */
  17896. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  17897. 8007a74: 68fb ldr r3, [r7, #12]
  17898. 8007a76: 691b ldr r3, [r3, #16]
  17899. 8007a78: f043 0208 orr.w r2, r3, #8
  17900. 8007a7c: 68fb ldr r3, [r7, #12]
  17901. 8007a7e: 611a str r2, [r3, #16]
  17902. /* Change the DMA state */
  17903. hdac->State = HAL_DAC_STATE_TIMEOUT;
  17904. 8007a80: 68fb ldr r3, [r7, #12]
  17905. 8007a82: 2203 movs r2, #3
  17906. 8007a84: 711a strb r2, [r3, #4]
  17907. return HAL_TIMEOUT;
  17908. 8007a86: 2303 movs r3, #3
  17909. 8007a88: e0fa b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17910. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  17911. 8007a8a: 68fb ldr r3, [r7, #12]
  17912. 8007a8c: 681b ldr r3, [r3, #0]
  17913. 8007a8e: 6b5a ldr r2, [r3, #52] @ 0x34
  17914. 8007a90: 4b7d ldr r3, [pc, #500] @ (8007c88 <HAL_DAC_ConfigChannel+0x280>)
  17915. 8007a92: 4013 ands r3, r2
  17916. 8007a94: 2b00 cmp r3, #0
  17917. 8007a96: d1df bne.n 8007a58 <HAL_DAC_ConfigChannel+0x50>
  17918. }
  17919. }
  17920. }
  17921. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  17922. 8007a98: 68fb ldr r3, [r7, #12]
  17923. 8007a9a: 681b ldr r3, [r3, #0]
  17924. 8007a9c: 68ba ldr r2, [r7, #8]
  17925. 8007a9e: 6992 ldr r2, [r2, #24]
  17926. 8007aa0: 641a str r2, [r3, #64] @ 0x40
  17927. 8007aa2: e020 b.n 8007ae6 <HAL_DAC_ConfigChannel+0xde>
  17928. {
  17929. /* SHSR2 can be written when BWST2 is cleared */
  17930. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17931. {
  17932. /* Check for the Timeout */
  17933. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  17934. 8007aa4: f7fd fd60 bl 8005568 <HAL_GetTick>
  17935. 8007aa8: 4602 mov r2, r0
  17936. 8007aaa: 69fb ldr r3, [r7, #28]
  17937. 8007aac: 1ad3 subs r3, r2, r3
  17938. 8007aae: 2b01 cmp r3, #1
  17939. 8007ab0: d90f bls.n 8007ad2 <HAL_DAC_ConfigChannel+0xca>
  17940. {
  17941. /* New check to avoid false timeout detection in case of preemption */
  17942. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17943. 8007ab2: 68fb ldr r3, [r7, #12]
  17944. 8007ab4: 681b ldr r3, [r3, #0]
  17945. 8007ab6: 6b5b ldr r3, [r3, #52] @ 0x34
  17946. 8007ab8: 2b00 cmp r3, #0
  17947. 8007aba: da0a bge.n 8007ad2 <HAL_DAC_ConfigChannel+0xca>
  17948. {
  17949. /* Update error code */
  17950. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  17951. 8007abc: 68fb ldr r3, [r7, #12]
  17952. 8007abe: 691b ldr r3, [r3, #16]
  17953. 8007ac0: f043 0208 orr.w r2, r3, #8
  17954. 8007ac4: 68fb ldr r3, [r7, #12]
  17955. 8007ac6: 611a str r2, [r3, #16]
  17956. /* Change the DMA state */
  17957. hdac->State = HAL_DAC_STATE_TIMEOUT;
  17958. 8007ac8: 68fb ldr r3, [r7, #12]
  17959. 8007aca: 2203 movs r2, #3
  17960. 8007acc: 711a strb r2, [r3, #4]
  17961. return HAL_TIMEOUT;
  17962. 8007ace: 2303 movs r3, #3
  17963. 8007ad0: e0d6 b.n 8007c80 <HAL_DAC_ConfigChannel+0x278>
  17964. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  17965. 8007ad2: 68fb ldr r3, [r7, #12]
  17966. 8007ad4: 681b ldr r3, [r3, #0]
  17967. 8007ad6: 6b5b ldr r3, [r3, #52] @ 0x34
  17968. 8007ad8: 2b00 cmp r3, #0
  17969. 8007ada: dbe3 blt.n 8007aa4 <HAL_DAC_ConfigChannel+0x9c>
  17970. }
  17971. }
  17972. }
  17973. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  17974. 8007adc: 68fb ldr r3, [r7, #12]
  17975. 8007ade: 681b ldr r3, [r3, #0]
  17976. 8007ae0: 68ba ldr r2, [r7, #8]
  17977. 8007ae2: 6992 ldr r2, [r2, #24]
  17978. 8007ae4: 645a str r2, [r3, #68] @ 0x44
  17979. }
  17980. /* HoldTime */
  17981. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  17982. 8007ae6: 68fb ldr r3, [r7, #12]
  17983. 8007ae8: 681b ldr r3, [r3, #0]
  17984. 8007aea: 6c9a ldr r2, [r3, #72] @ 0x48
  17985. 8007aec: 687b ldr r3, [r7, #4]
  17986. 8007aee: f003 0310 and.w r3, r3, #16
  17987. 8007af2: f240 31ff movw r1, #1023 @ 0x3ff
  17988. 8007af6: fa01 f303 lsl.w r3, r1, r3
  17989. 8007afa: 43db mvns r3, r3
  17990. 8007afc: ea02 0103 and.w r1, r2, r3
  17991. 8007b00: 68bb ldr r3, [r7, #8]
  17992. 8007b02: 69da ldr r2, [r3, #28]
  17993. 8007b04: 687b ldr r3, [r7, #4]
  17994. 8007b06: f003 0310 and.w r3, r3, #16
  17995. 8007b0a: 409a lsls r2, r3
  17996. 8007b0c: 68fb ldr r3, [r7, #12]
  17997. 8007b0e: 681b ldr r3, [r3, #0]
  17998. 8007b10: 430a orrs r2, r1
  17999. 8007b12: 649a str r2, [r3, #72] @ 0x48
  18000. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  18001. /* RefreshTime */
  18002. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  18003. 8007b14: 68fb ldr r3, [r7, #12]
  18004. 8007b16: 681b ldr r3, [r3, #0]
  18005. 8007b18: 6cda ldr r2, [r3, #76] @ 0x4c
  18006. 8007b1a: 687b ldr r3, [r7, #4]
  18007. 8007b1c: f003 0310 and.w r3, r3, #16
  18008. 8007b20: 21ff movs r1, #255 @ 0xff
  18009. 8007b22: fa01 f303 lsl.w r3, r1, r3
  18010. 8007b26: 43db mvns r3, r3
  18011. 8007b28: ea02 0103 and.w r1, r2, r3
  18012. 8007b2c: 68bb ldr r3, [r7, #8]
  18013. 8007b2e: 6a1a ldr r2, [r3, #32]
  18014. 8007b30: 687b ldr r3, [r7, #4]
  18015. 8007b32: f003 0310 and.w r3, r3, #16
  18016. 8007b36: 409a lsls r2, r3
  18017. 8007b38: 68fb ldr r3, [r7, #12]
  18018. 8007b3a: 681b ldr r3, [r3, #0]
  18019. 8007b3c: 430a orrs r2, r1
  18020. 8007b3e: 64da str r2, [r3, #76] @ 0x4c
  18021. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  18022. }
  18023. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  18024. 8007b40: 68bb ldr r3, [r7, #8]
  18025. 8007b42: 691b ldr r3, [r3, #16]
  18026. 8007b44: 2b01 cmp r3, #1
  18027. 8007b46: d11d bne.n 8007b84 <HAL_DAC_ConfigChannel+0x17c>
  18028. /* USER TRIMMING */
  18029. {
  18030. /* Get the DAC CCR value */
  18031. tmpreg1 = hdac->Instance->CCR;
  18032. 8007b48: 68fb ldr r3, [r7, #12]
  18033. 8007b4a: 681b ldr r3, [r3, #0]
  18034. 8007b4c: 6b9b ldr r3, [r3, #56] @ 0x38
  18035. 8007b4e: 61bb str r3, [r7, #24]
  18036. /* Clear trimming value */
  18037. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  18038. 8007b50: 687b ldr r3, [r7, #4]
  18039. 8007b52: f003 0310 and.w r3, r3, #16
  18040. 8007b56: 221f movs r2, #31
  18041. 8007b58: fa02 f303 lsl.w r3, r2, r3
  18042. 8007b5c: 43db mvns r3, r3
  18043. 8007b5e: 69ba ldr r2, [r7, #24]
  18044. 8007b60: 4013 ands r3, r2
  18045. 8007b62: 61bb str r3, [r7, #24]
  18046. /* Configure for the selected trimming offset */
  18047. tmpreg2 = sConfig->DAC_TrimmingValue;
  18048. 8007b64: 68bb ldr r3, [r7, #8]
  18049. 8007b66: 695b ldr r3, [r3, #20]
  18050. 8007b68: 617b str r3, [r7, #20]
  18051. /* Calculate CCR register value depending on DAC_Channel */
  18052. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18053. 8007b6a: 687b ldr r3, [r7, #4]
  18054. 8007b6c: f003 0310 and.w r3, r3, #16
  18055. 8007b70: 697a ldr r2, [r7, #20]
  18056. 8007b72: fa02 f303 lsl.w r3, r2, r3
  18057. 8007b76: 69ba ldr r2, [r7, #24]
  18058. 8007b78: 4313 orrs r3, r2
  18059. 8007b7a: 61bb str r3, [r7, #24]
  18060. /* Write to DAC CCR */
  18061. hdac->Instance->CCR = tmpreg1;
  18062. 8007b7c: 68fb ldr r3, [r7, #12]
  18063. 8007b7e: 681b ldr r3, [r3, #0]
  18064. 8007b80: 69ba ldr r2, [r7, #24]
  18065. 8007b82: 639a str r2, [r3, #56] @ 0x38
  18066. }
  18067. /* else factory trimming is used (factory setting are available at reset)*/
  18068. /* SW Nothing has nothing to do */
  18069. /* Get the DAC MCR value */
  18070. tmpreg1 = hdac->Instance->MCR;
  18071. 8007b84: 68fb ldr r3, [r7, #12]
  18072. 8007b86: 681b ldr r3, [r3, #0]
  18073. 8007b88: 6bdb ldr r3, [r3, #60] @ 0x3c
  18074. 8007b8a: 61bb str r3, [r7, #24]
  18075. /* Clear DAC_MCR_MODEx bits */
  18076. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  18077. 8007b8c: 687b ldr r3, [r7, #4]
  18078. 8007b8e: f003 0310 and.w r3, r3, #16
  18079. 8007b92: 2207 movs r2, #7
  18080. 8007b94: fa02 f303 lsl.w r3, r2, r3
  18081. 8007b98: 43db mvns r3, r3
  18082. 8007b9a: 69ba ldr r2, [r7, #24]
  18083. 8007b9c: 4013 ands r3, r2
  18084. 8007b9e: 61bb str r3, [r7, #24]
  18085. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  18086. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  18087. 8007ba0: 68bb ldr r3, [r7, #8]
  18088. 8007ba2: 68db ldr r3, [r3, #12]
  18089. 8007ba4: 2b01 cmp r3, #1
  18090. 8007ba6: d102 bne.n 8007bae <HAL_DAC_ConfigChannel+0x1a6>
  18091. {
  18092. connectOnChip = 0x00000000UL;
  18093. 8007ba8: 2300 movs r3, #0
  18094. 8007baa: 627b str r3, [r7, #36] @ 0x24
  18095. 8007bac: e00f b.n 8007bce <HAL_DAC_ConfigChannel+0x1c6>
  18096. }
  18097. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  18098. 8007bae: 68bb ldr r3, [r7, #8]
  18099. 8007bb0: 68db ldr r3, [r3, #12]
  18100. 8007bb2: 2b02 cmp r3, #2
  18101. 8007bb4: d102 bne.n 8007bbc <HAL_DAC_ConfigChannel+0x1b4>
  18102. {
  18103. connectOnChip = DAC_MCR_MODE1_0;
  18104. 8007bb6: 2301 movs r3, #1
  18105. 8007bb8: 627b str r3, [r7, #36] @ 0x24
  18106. 8007bba: e008 b.n 8007bce <HAL_DAC_ConfigChannel+0x1c6>
  18107. }
  18108. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  18109. {
  18110. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  18111. 8007bbc: 68bb ldr r3, [r7, #8]
  18112. 8007bbe: 689b ldr r3, [r3, #8]
  18113. 8007bc0: 2b00 cmp r3, #0
  18114. 8007bc2: d102 bne.n 8007bca <HAL_DAC_ConfigChannel+0x1c2>
  18115. {
  18116. connectOnChip = DAC_MCR_MODE1_0;
  18117. 8007bc4: 2301 movs r3, #1
  18118. 8007bc6: 627b str r3, [r7, #36] @ 0x24
  18119. 8007bc8: e001 b.n 8007bce <HAL_DAC_ConfigChannel+0x1c6>
  18120. }
  18121. else
  18122. {
  18123. connectOnChip = 0x00000000UL;
  18124. 8007bca: 2300 movs r3, #0
  18125. 8007bcc: 627b str r3, [r7, #36] @ 0x24
  18126. }
  18127. }
  18128. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  18129. 8007bce: 68bb ldr r3, [r7, #8]
  18130. 8007bd0: 681a ldr r2, [r3, #0]
  18131. 8007bd2: 68bb ldr r3, [r7, #8]
  18132. 8007bd4: 689b ldr r3, [r3, #8]
  18133. 8007bd6: 4313 orrs r3, r2
  18134. 8007bd8: 6a7a ldr r2, [r7, #36] @ 0x24
  18135. 8007bda: 4313 orrs r3, r2
  18136. 8007bdc: 617b str r3, [r7, #20]
  18137. /* Calculate MCR register value depending on DAC_Channel */
  18138. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18139. 8007bde: 687b ldr r3, [r7, #4]
  18140. 8007be0: f003 0310 and.w r3, r3, #16
  18141. 8007be4: 697a ldr r2, [r7, #20]
  18142. 8007be6: fa02 f303 lsl.w r3, r2, r3
  18143. 8007bea: 69ba ldr r2, [r7, #24]
  18144. 8007bec: 4313 orrs r3, r2
  18145. 8007bee: 61bb str r3, [r7, #24]
  18146. /* Write to DAC MCR */
  18147. hdac->Instance->MCR = tmpreg1;
  18148. 8007bf0: 68fb ldr r3, [r7, #12]
  18149. 8007bf2: 681b ldr r3, [r3, #0]
  18150. 8007bf4: 69ba ldr r2, [r7, #24]
  18151. 8007bf6: 63da str r2, [r3, #60] @ 0x3c
  18152. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  18153. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  18154. 8007bf8: 68fb ldr r3, [r7, #12]
  18155. 8007bfa: 681b ldr r3, [r3, #0]
  18156. 8007bfc: 6819 ldr r1, [r3, #0]
  18157. 8007bfe: 687b ldr r3, [r7, #4]
  18158. 8007c00: f003 0310 and.w r3, r3, #16
  18159. 8007c04: f44f 4280 mov.w r2, #16384 @ 0x4000
  18160. 8007c08: fa02 f303 lsl.w r3, r2, r3
  18161. 8007c0c: 43da mvns r2, r3
  18162. 8007c0e: 68fb ldr r3, [r7, #12]
  18163. 8007c10: 681b ldr r3, [r3, #0]
  18164. 8007c12: 400a ands r2, r1
  18165. 8007c14: 601a str r2, [r3, #0]
  18166. /* Get the DAC CR value */
  18167. tmpreg1 = hdac->Instance->CR;
  18168. 8007c16: 68fb ldr r3, [r7, #12]
  18169. 8007c18: 681b ldr r3, [r3, #0]
  18170. 8007c1a: 681b ldr r3, [r3, #0]
  18171. 8007c1c: 61bb str r3, [r7, #24]
  18172. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  18173. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  18174. 8007c1e: 687b ldr r3, [r7, #4]
  18175. 8007c20: f003 0310 and.w r3, r3, #16
  18176. 8007c24: f640 72fe movw r2, #4094 @ 0xffe
  18177. 8007c28: fa02 f303 lsl.w r3, r2, r3
  18178. 8007c2c: 43db mvns r3, r3
  18179. 8007c2e: 69ba ldr r2, [r7, #24]
  18180. 8007c30: 4013 ands r3, r2
  18181. 8007c32: 61bb str r3, [r7, #24]
  18182. /* Configure for the selected DAC channel: trigger */
  18183. /* Set TSELx and TENx bits according to DAC_Trigger value */
  18184. tmpreg2 = sConfig->DAC_Trigger;
  18185. 8007c34: 68bb ldr r3, [r7, #8]
  18186. 8007c36: 685b ldr r3, [r3, #4]
  18187. 8007c38: 617b str r3, [r7, #20]
  18188. /* Calculate CR register value depending on DAC_Channel */
  18189. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18190. 8007c3a: 687b ldr r3, [r7, #4]
  18191. 8007c3c: f003 0310 and.w r3, r3, #16
  18192. 8007c40: 697a ldr r2, [r7, #20]
  18193. 8007c42: fa02 f303 lsl.w r3, r2, r3
  18194. 8007c46: 69ba ldr r2, [r7, #24]
  18195. 8007c48: 4313 orrs r3, r2
  18196. 8007c4a: 61bb str r3, [r7, #24]
  18197. /* Write to DAC CR */
  18198. hdac->Instance->CR = tmpreg1;
  18199. 8007c4c: 68fb ldr r3, [r7, #12]
  18200. 8007c4e: 681b ldr r3, [r3, #0]
  18201. 8007c50: 69ba ldr r2, [r7, #24]
  18202. 8007c52: 601a str r2, [r3, #0]
  18203. /* Disable wave generation */
  18204. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  18205. 8007c54: 68fb ldr r3, [r7, #12]
  18206. 8007c56: 681b ldr r3, [r3, #0]
  18207. 8007c58: 6819 ldr r1, [r3, #0]
  18208. 8007c5a: 687b ldr r3, [r7, #4]
  18209. 8007c5c: f003 0310 and.w r3, r3, #16
  18210. 8007c60: 22c0 movs r2, #192 @ 0xc0
  18211. 8007c62: fa02 f303 lsl.w r3, r2, r3
  18212. 8007c66: 43da mvns r2, r3
  18213. 8007c68: 68fb ldr r3, [r7, #12]
  18214. 8007c6a: 681b ldr r3, [r3, #0]
  18215. 8007c6c: 400a ands r2, r1
  18216. 8007c6e: 601a str r2, [r3, #0]
  18217. /* Change DAC state */
  18218. hdac->State = HAL_DAC_STATE_READY;
  18219. 8007c70: 68fb ldr r3, [r7, #12]
  18220. 8007c72: 2201 movs r2, #1
  18221. 8007c74: 711a strb r2, [r3, #4]
  18222. /* Process unlocked */
  18223. __HAL_UNLOCK(hdac);
  18224. 8007c76: 68fb ldr r3, [r7, #12]
  18225. 8007c78: 2200 movs r2, #0
  18226. 8007c7a: 715a strb r2, [r3, #5]
  18227. /* Return function status */
  18228. return status;
  18229. 8007c7c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  18230. }
  18231. 8007c80: 4618 mov r0, r3
  18232. 8007c82: 3728 adds r7, #40 @ 0x28
  18233. 8007c84: 46bd mov sp, r7
  18234. 8007c86: bd80 pop {r7, pc}
  18235. 8007c88: 20008000 .word 0x20008000
  18236. 08007c8c <HAL_DACEx_DMAUnderrunCallbackCh2>:
  18237. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18238. * the configuration information for the specified DAC.
  18239. * @retval None
  18240. */
  18241. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  18242. {
  18243. 8007c8c: b480 push {r7}
  18244. 8007c8e: b083 sub sp, #12
  18245. 8007c90: af00 add r7, sp, #0
  18246. 8007c92: 6078 str r0, [r7, #4]
  18247. UNUSED(hdac);
  18248. /* NOTE : This function should not be modified, when the callback is needed,
  18249. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  18250. */
  18251. }
  18252. 8007c94: bf00 nop
  18253. 8007c96: 370c adds r7, #12
  18254. 8007c98: 46bd mov sp, r7
  18255. 8007c9a: f85d 7b04 ldr.w r7, [sp], #4
  18256. 8007c9e: 4770 bx lr
  18257. 08007ca0 <HAL_DMA_Init>:
  18258. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  18259. * the configuration information for the specified DMA Stream.
  18260. * @retval HAL status
  18261. */
  18262. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  18263. {
  18264. 8007ca0: b580 push {r7, lr}
  18265. 8007ca2: b086 sub sp, #24
  18266. 8007ca4: af00 add r7, sp, #0
  18267. 8007ca6: 6078 str r0, [r7, #4]
  18268. uint32_t registerValue;
  18269. uint32_t tickstart = HAL_GetTick();
  18270. 8007ca8: f7fd fc5e bl 8005568 <HAL_GetTick>
  18271. 8007cac: 6138 str r0, [r7, #16]
  18272. DMA_Base_Registers *regs_dma;
  18273. BDMA_Base_Registers *regs_bdma;
  18274. /* Check the DMA peripheral handle */
  18275. if(hdma == NULL)
  18276. 8007cae: 687b ldr r3, [r7, #4]
  18277. 8007cb0: 2b00 cmp r3, #0
  18278. 8007cb2: d101 bne.n 8007cb8 <HAL_DMA_Init+0x18>
  18279. {
  18280. return HAL_ERROR;
  18281. 8007cb4: 2301 movs r3, #1
  18282. 8007cb6: e316 b.n 80082e6 <HAL_DMA_Init+0x646>
  18283. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  18284. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  18285. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  18286. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  18287. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  18288. 8007cb8: 687b ldr r3, [r7, #4]
  18289. 8007cba: 681b ldr r3, [r3, #0]
  18290. 8007cbc: 4a66 ldr r2, [pc, #408] @ (8007e58 <HAL_DMA_Init+0x1b8>)
  18291. 8007cbe: 4293 cmp r3, r2
  18292. 8007cc0: d04a beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18293. 8007cc2: 687b ldr r3, [r7, #4]
  18294. 8007cc4: 681b ldr r3, [r3, #0]
  18295. 8007cc6: 4a65 ldr r2, [pc, #404] @ (8007e5c <HAL_DMA_Init+0x1bc>)
  18296. 8007cc8: 4293 cmp r3, r2
  18297. 8007cca: d045 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18298. 8007ccc: 687b ldr r3, [r7, #4]
  18299. 8007cce: 681b ldr r3, [r3, #0]
  18300. 8007cd0: 4a63 ldr r2, [pc, #396] @ (8007e60 <HAL_DMA_Init+0x1c0>)
  18301. 8007cd2: 4293 cmp r3, r2
  18302. 8007cd4: d040 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18303. 8007cd6: 687b ldr r3, [r7, #4]
  18304. 8007cd8: 681b ldr r3, [r3, #0]
  18305. 8007cda: 4a62 ldr r2, [pc, #392] @ (8007e64 <HAL_DMA_Init+0x1c4>)
  18306. 8007cdc: 4293 cmp r3, r2
  18307. 8007cde: d03b beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18308. 8007ce0: 687b ldr r3, [r7, #4]
  18309. 8007ce2: 681b ldr r3, [r3, #0]
  18310. 8007ce4: 4a60 ldr r2, [pc, #384] @ (8007e68 <HAL_DMA_Init+0x1c8>)
  18311. 8007ce6: 4293 cmp r3, r2
  18312. 8007ce8: d036 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18313. 8007cea: 687b ldr r3, [r7, #4]
  18314. 8007cec: 681b ldr r3, [r3, #0]
  18315. 8007cee: 4a5f ldr r2, [pc, #380] @ (8007e6c <HAL_DMA_Init+0x1cc>)
  18316. 8007cf0: 4293 cmp r3, r2
  18317. 8007cf2: d031 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18318. 8007cf4: 687b ldr r3, [r7, #4]
  18319. 8007cf6: 681b ldr r3, [r3, #0]
  18320. 8007cf8: 4a5d ldr r2, [pc, #372] @ (8007e70 <HAL_DMA_Init+0x1d0>)
  18321. 8007cfa: 4293 cmp r3, r2
  18322. 8007cfc: d02c beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18323. 8007cfe: 687b ldr r3, [r7, #4]
  18324. 8007d00: 681b ldr r3, [r3, #0]
  18325. 8007d02: 4a5c ldr r2, [pc, #368] @ (8007e74 <HAL_DMA_Init+0x1d4>)
  18326. 8007d04: 4293 cmp r3, r2
  18327. 8007d06: d027 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18328. 8007d08: 687b ldr r3, [r7, #4]
  18329. 8007d0a: 681b ldr r3, [r3, #0]
  18330. 8007d0c: 4a5a ldr r2, [pc, #360] @ (8007e78 <HAL_DMA_Init+0x1d8>)
  18331. 8007d0e: 4293 cmp r3, r2
  18332. 8007d10: d022 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18333. 8007d12: 687b ldr r3, [r7, #4]
  18334. 8007d14: 681b ldr r3, [r3, #0]
  18335. 8007d16: 4a59 ldr r2, [pc, #356] @ (8007e7c <HAL_DMA_Init+0x1dc>)
  18336. 8007d18: 4293 cmp r3, r2
  18337. 8007d1a: d01d beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18338. 8007d1c: 687b ldr r3, [r7, #4]
  18339. 8007d1e: 681b ldr r3, [r3, #0]
  18340. 8007d20: 4a57 ldr r2, [pc, #348] @ (8007e80 <HAL_DMA_Init+0x1e0>)
  18341. 8007d22: 4293 cmp r3, r2
  18342. 8007d24: d018 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18343. 8007d26: 687b ldr r3, [r7, #4]
  18344. 8007d28: 681b ldr r3, [r3, #0]
  18345. 8007d2a: 4a56 ldr r2, [pc, #344] @ (8007e84 <HAL_DMA_Init+0x1e4>)
  18346. 8007d2c: 4293 cmp r3, r2
  18347. 8007d2e: d013 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18348. 8007d30: 687b ldr r3, [r7, #4]
  18349. 8007d32: 681b ldr r3, [r3, #0]
  18350. 8007d34: 4a54 ldr r2, [pc, #336] @ (8007e88 <HAL_DMA_Init+0x1e8>)
  18351. 8007d36: 4293 cmp r3, r2
  18352. 8007d38: d00e beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18353. 8007d3a: 687b ldr r3, [r7, #4]
  18354. 8007d3c: 681b ldr r3, [r3, #0]
  18355. 8007d3e: 4a53 ldr r2, [pc, #332] @ (8007e8c <HAL_DMA_Init+0x1ec>)
  18356. 8007d40: 4293 cmp r3, r2
  18357. 8007d42: d009 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18358. 8007d44: 687b ldr r3, [r7, #4]
  18359. 8007d46: 681b ldr r3, [r3, #0]
  18360. 8007d48: 4a51 ldr r2, [pc, #324] @ (8007e90 <HAL_DMA_Init+0x1f0>)
  18361. 8007d4a: 4293 cmp r3, r2
  18362. 8007d4c: d004 beq.n 8007d58 <HAL_DMA_Init+0xb8>
  18363. 8007d4e: 687b ldr r3, [r7, #4]
  18364. 8007d50: 681b ldr r3, [r3, #0]
  18365. 8007d52: 4a50 ldr r2, [pc, #320] @ (8007e94 <HAL_DMA_Init+0x1f4>)
  18366. 8007d54: 4293 cmp r3, r2
  18367. 8007d56: d101 bne.n 8007d5c <HAL_DMA_Init+0xbc>
  18368. 8007d58: 2301 movs r3, #1
  18369. 8007d5a: e000 b.n 8007d5e <HAL_DMA_Init+0xbe>
  18370. 8007d5c: 2300 movs r3, #0
  18371. 8007d5e: 2b00 cmp r3, #0
  18372. 8007d60: f000 813b beq.w 8007fda <HAL_DMA_Init+0x33a>
  18373. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  18374. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  18375. }
  18376. /* Change DMA peripheral state */
  18377. hdma->State = HAL_DMA_STATE_BUSY;
  18378. 8007d64: 687b ldr r3, [r7, #4]
  18379. 8007d66: 2202 movs r2, #2
  18380. 8007d68: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18381. /* Allocate lock resource */
  18382. __HAL_UNLOCK(hdma);
  18383. 8007d6c: 687b ldr r3, [r7, #4]
  18384. 8007d6e: 2200 movs r2, #0
  18385. 8007d70: f883 2034 strb.w r2, [r3, #52] @ 0x34
  18386. /* Disable the peripheral */
  18387. __HAL_DMA_DISABLE(hdma);
  18388. 8007d74: 687b ldr r3, [r7, #4]
  18389. 8007d76: 681b ldr r3, [r3, #0]
  18390. 8007d78: 4a37 ldr r2, [pc, #220] @ (8007e58 <HAL_DMA_Init+0x1b8>)
  18391. 8007d7a: 4293 cmp r3, r2
  18392. 8007d7c: d04a beq.n 8007e14 <HAL_DMA_Init+0x174>
  18393. 8007d7e: 687b ldr r3, [r7, #4]
  18394. 8007d80: 681b ldr r3, [r3, #0]
  18395. 8007d82: 4a36 ldr r2, [pc, #216] @ (8007e5c <HAL_DMA_Init+0x1bc>)
  18396. 8007d84: 4293 cmp r3, r2
  18397. 8007d86: d045 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18398. 8007d88: 687b ldr r3, [r7, #4]
  18399. 8007d8a: 681b ldr r3, [r3, #0]
  18400. 8007d8c: 4a34 ldr r2, [pc, #208] @ (8007e60 <HAL_DMA_Init+0x1c0>)
  18401. 8007d8e: 4293 cmp r3, r2
  18402. 8007d90: d040 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18403. 8007d92: 687b ldr r3, [r7, #4]
  18404. 8007d94: 681b ldr r3, [r3, #0]
  18405. 8007d96: 4a33 ldr r2, [pc, #204] @ (8007e64 <HAL_DMA_Init+0x1c4>)
  18406. 8007d98: 4293 cmp r3, r2
  18407. 8007d9a: d03b beq.n 8007e14 <HAL_DMA_Init+0x174>
  18408. 8007d9c: 687b ldr r3, [r7, #4]
  18409. 8007d9e: 681b ldr r3, [r3, #0]
  18410. 8007da0: 4a31 ldr r2, [pc, #196] @ (8007e68 <HAL_DMA_Init+0x1c8>)
  18411. 8007da2: 4293 cmp r3, r2
  18412. 8007da4: d036 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18413. 8007da6: 687b ldr r3, [r7, #4]
  18414. 8007da8: 681b ldr r3, [r3, #0]
  18415. 8007daa: 4a30 ldr r2, [pc, #192] @ (8007e6c <HAL_DMA_Init+0x1cc>)
  18416. 8007dac: 4293 cmp r3, r2
  18417. 8007dae: d031 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18418. 8007db0: 687b ldr r3, [r7, #4]
  18419. 8007db2: 681b ldr r3, [r3, #0]
  18420. 8007db4: 4a2e ldr r2, [pc, #184] @ (8007e70 <HAL_DMA_Init+0x1d0>)
  18421. 8007db6: 4293 cmp r3, r2
  18422. 8007db8: d02c beq.n 8007e14 <HAL_DMA_Init+0x174>
  18423. 8007dba: 687b ldr r3, [r7, #4]
  18424. 8007dbc: 681b ldr r3, [r3, #0]
  18425. 8007dbe: 4a2d ldr r2, [pc, #180] @ (8007e74 <HAL_DMA_Init+0x1d4>)
  18426. 8007dc0: 4293 cmp r3, r2
  18427. 8007dc2: d027 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18428. 8007dc4: 687b ldr r3, [r7, #4]
  18429. 8007dc6: 681b ldr r3, [r3, #0]
  18430. 8007dc8: 4a2b ldr r2, [pc, #172] @ (8007e78 <HAL_DMA_Init+0x1d8>)
  18431. 8007dca: 4293 cmp r3, r2
  18432. 8007dcc: d022 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18433. 8007dce: 687b ldr r3, [r7, #4]
  18434. 8007dd0: 681b ldr r3, [r3, #0]
  18435. 8007dd2: 4a2a ldr r2, [pc, #168] @ (8007e7c <HAL_DMA_Init+0x1dc>)
  18436. 8007dd4: 4293 cmp r3, r2
  18437. 8007dd6: d01d beq.n 8007e14 <HAL_DMA_Init+0x174>
  18438. 8007dd8: 687b ldr r3, [r7, #4]
  18439. 8007dda: 681b ldr r3, [r3, #0]
  18440. 8007ddc: 4a28 ldr r2, [pc, #160] @ (8007e80 <HAL_DMA_Init+0x1e0>)
  18441. 8007dde: 4293 cmp r3, r2
  18442. 8007de0: d018 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18443. 8007de2: 687b ldr r3, [r7, #4]
  18444. 8007de4: 681b ldr r3, [r3, #0]
  18445. 8007de6: 4a27 ldr r2, [pc, #156] @ (8007e84 <HAL_DMA_Init+0x1e4>)
  18446. 8007de8: 4293 cmp r3, r2
  18447. 8007dea: d013 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18448. 8007dec: 687b ldr r3, [r7, #4]
  18449. 8007dee: 681b ldr r3, [r3, #0]
  18450. 8007df0: 4a25 ldr r2, [pc, #148] @ (8007e88 <HAL_DMA_Init+0x1e8>)
  18451. 8007df2: 4293 cmp r3, r2
  18452. 8007df4: d00e beq.n 8007e14 <HAL_DMA_Init+0x174>
  18453. 8007df6: 687b ldr r3, [r7, #4]
  18454. 8007df8: 681b ldr r3, [r3, #0]
  18455. 8007dfa: 4a24 ldr r2, [pc, #144] @ (8007e8c <HAL_DMA_Init+0x1ec>)
  18456. 8007dfc: 4293 cmp r3, r2
  18457. 8007dfe: d009 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18458. 8007e00: 687b ldr r3, [r7, #4]
  18459. 8007e02: 681b ldr r3, [r3, #0]
  18460. 8007e04: 4a22 ldr r2, [pc, #136] @ (8007e90 <HAL_DMA_Init+0x1f0>)
  18461. 8007e06: 4293 cmp r3, r2
  18462. 8007e08: d004 beq.n 8007e14 <HAL_DMA_Init+0x174>
  18463. 8007e0a: 687b ldr r3, [r7, #4]
  18464. 8007e0c: 681b ldr r3, [r3, #0]
  18465. 8007e0e: 4a21 ldr r2, [pc, #132] @ (8007e94 <HAL_DMA_Init+0x1f4>)
  18466. 8007e10: 4293 cmp r3, r2
  18467. 8007e12: d108 bne.n 8007e26 <HAL_DMA_Init+0x186>
  18468. 8007e14: 687b ldr r3, [r7, #4]
  18469. 8007e16: 681b ldr r3, [r3, #0]
  18470. 8007e18: 681a ldr r2, [r3, #0]
  18471. 8007e1a: 687b ldr r3, [r7, #4]
  18472. 8007e1c: 681b ldr r3, [r3, #0]
  18473. 8007e1e: f022 0201 bic.w r2, r2, #1
  18474. 8007e22: 601a str r2, [r3, #0]
  18475. 8007e24: e007 b.n 8007e36 <HAL_DMA_Init+0x196>
  18476. 8007e26: 687b ldr r3, [r7, #4]
  18477. 8007e28: 681b ldr r3, [r3, #0]
  18478. 8007e2a: 681a ldr r2, [r3, #0]
  18479. 8007e2c: 687b ldr r3, [r7, #4]
  18480. 8007e2e: 681b ldr r3, [r3, #0]
  18481. 8007e30: f022 0201 bic.w r2, r2, #1
  18482. 8007e34: 601a str r2, [r3, #0]
  18483. /* Check if the DMA Stream is effectively disabled */
  18484. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  18485. 8007e36: e02f b.n 8007e98 <HAL_DMA_Init+0x1f8>
  18486. {
  18487. /* Check for the Timeout */
  18488. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  18489. 8007e38: f7fd fb96 bl 8005568 <HAL_GetTick>
  18490. 8007e3c: 4602 mov r2, r0
  18491. 8007e3e: 693b ldr r3, [r7, #16]
  18492. 8007e40: 1ad3 subs r3, r2, r3
  18493. 8007e42: 2b05 cmp r3, #5
  18494. 8007e44: d928 bls.n 8007e98 <HAL_DMA_Init+0x1f8>
  18495. {
  18496. /* Update error code */
  18497. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  18498. 8007e46: 687b ldr r3, [r7, #4]
  18499. 8007e48: 2220 movs r2, #32
  18500. 8007e4a: 655a str r2, [r3, #84] @ 0x54
  18501. /* Change the DMA state */
  18502. hdma->State = HAL_DMA_STATE_ERROR;
  18503. 8007e4c: 687b ldr r3, [r7, #4]
  18504. 8007e4e: 2203 movs r2, #3
  18505. 8007e50: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18506. return HAL_ERROR;
  18507. 8007e54: 2301 movs r3, #1
  18508. 8007e56: e246 b.n 80082e6 <HAL_DMA_Init+0x646>
  18509. 8007e58: 40020010 .word 0x40020010
  18510. 8007e5c: 40020028 .word 0x40020028
  18511. 8007e60: 40020040 .word 0x40020040
  18512. 8007e64: 40020058 .word 0x40020058
  18513. 8007e68: 40020070 .word 0x40020070
  18514. 8007e6c: 40020088 .word 0x40020088
  18515. 8007e70: 400200a0 .word 0x400200a0
  18516. 8007e74: 400200b8 .word 0x400200b8
  18517. 8007e78: 40020410 .word 0x40020410
  18518. 8007e7c: 40020428 .word 0x40020428
  18519. 8007e80: 40020440 .word 0x40020440
  18520. 8007e84: 40020458 .word 0x40020458
  18521. 8007e88: 40020470 .word 0x40020470
  18522. 8007e8c: 40020488 .word 0x40020488
  18523. 8007e90: 400204a0 .word 0x400204a0
  18524. 8007e94: 400204b8 .word 0x400204b8
  18525. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  18526. 8007e98: 687b ldr r3, [r7, #4]
  18527. 8007e9a: 681b ldr r3, [r3, #0]
  18528. 8007e9c: 681b ldr r3, [r3, #0]
  18529. 8007e9e: f003 0301 and.w r3, r3, #1
  18530. 8007ea2: 2b00 cmp r3, #0
  18531. 8007ea4: d1c8 bne.n 8007e38 <HAL_DMA_Init+0x198>
  18532. }
  18533. }
  18534. /* Get the CR register value */
  18535. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  18536. 8007ea6: 687b ldr r3, [r7, #4]
  18537. 8007ea8: 681b ldr r3, [r3, #0]
  18538. 8007eaa: 681b ldr r3, [r3, #0]
  18539. 8007eac: 617b str r3, [r7, #20]
  18540. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  18541. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  18542. 8007eae: 697a ldr r2, [r7, #20]
  18543. 8007eb0: 4b83 ldr r3, [pc, #524] @ (80080c0 <HAL_DMA_Init+0x420>)
  18544. 8007eb2: 4013 ands r3, r2
  18545. 8007eb4: 617b str r3, [r7, #20]
  18546. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  18547. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  18548. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  18549. /* Prepare the DMA Stream configuration */
  18550. registerValue |= hdma->Init.Direction |
  18551. 8007eb6: 687b ldr r3, [r7, #4]
  18552. 8007eb8: 689a ldr r2, [r3, #8]
  18553. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18554. 8007eba: 687b ldr r3, [r7, #4]
  18555. 8007ebc: 68db ldr r3, [r3, #12]
  18556. registerValue |= hdma->Init.Direction |
  18557. 8007ebe: 431a orrs r2, r3
  18558. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18559. 8007ec0: 687b ldr r3, [r7, #4]
  18560. 8007ec2: 691b ldr r3, [r3, #16]
  18561. 8007ec4: 431a orrs r2, r3
  18562. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18563. 8007ec6: 687b ldr r3, [r7, #4]
  18564. 8007ec8: 695b ldr r3, [r3, #20]
  18565. hdma->Init.PeriphInc | hdma->Init.MemInc |
  18566. 8007eca: 431a orrs r2, r3
  18567. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18568. 8007ecc: 687b ldr r3, [r7, #4]
  18569. 8007ece: 699b ldr r3, [r3, #24]
  18570. 8007ed0: 431a orrs r2, r3
  18571. hdma->Init.Mode | hdma->Init.Priority;
  18572. 8007ed2: 687b ldr r3, [r7, #4]
  18573. 8007ed4: 69db ldr r3, [r3, #28]
  18574. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  18575. 8007ed6: 431a orrs r2, r3
  18576. hdma->Init.Mode | hdma->Init.Priority;
  18577. 8007ed8: 687b ldr r3, [r7, #4]
  18578. 8007eda: 6a1b ldr r3, [r3, #32]
  18579. 8007edc: 4313 orrs r3, r2
  18580. registerValue |= hdma->Init.Direction |
  18581. 8007ede: 697a ldr r2, [r7, #20]
  18582. 8007ee0: 4313 orrs r3, r2
  18583. 8007ee2: 617b str r3, [r7, #20]
  18584. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  18585. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  18586. 8007ee4: 687b ldr r3, [r7, #4]
  18587. 8007ee6: 6a5b ldr r3, [r3, #36] @ 0x24
  18588. 8007ee8: 2b04 cmp r3, #4
  18589. 8007eea: d107 bne.n 8007efc <HAL_DMA_Init+0x25c>
  18590. {
  18591. /* Get memory burst and peripheral burst */
  18592. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  18593. 8007eec: 687b ldr r3, [r7, #4]
  18594. 8007eee: 6ada ldr r2, [r3, #44] @ 0x2c
  18595. 8007ef0: 687b ldr r3, [r7, #4]
  18596. 8007ef2: 6b1b ldr r3, [r3, #48] @ 0x30
  18597. 8007ef4: 4313 orrs r3, r2
  18598. 8007ef6: 697a ldr r2, [r7, #20]
  18599. 8007ef8: 4313 orrs r3, r2
  18600. 8007efa: 617b str r3, [r7, #20]
  18601. }
  18602. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  18603. lock when transferring data to/from USART/UART */
  18604. #if (STM32H7_DEV_ID == 0x450UL)
  18605. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  18606. 8007efc: 4b71 ldr r3, [pc, #452] @ (80080c4 <HAL_DMA_Init+0x424>)
  18607. 8007efe: 681a ldr r2, [r3, #0]
  18608. 8007f00: 4b71 ldr r3, [pc, #452] @ (80080c8 <HAL_DMA_Init+0x428>)
  18609. 8007f02: 4013 ands r3, r2
  18610. 8007f04: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  18611. 8007f08: d328 bcc.n 8007f5c <HAL_DMA_Init+0x2bc>
  18612. {
  18613. #endif /* STM32H7_DEV_ID == 0x450UL */
  18614. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  18615. 8007f0a: 687b ldr r3, [r7, #4]
  18616. 8007f0c: 685b ldr r3, [r3, #4]
  18617. 8007f0e: 2b28 cmp r3, #40 @ 0x28
  18618. 8007f10: d903 bls.n 8007f1a <HAL_DMA_Init+0x27a>
  18619. 8007f12: 687b ldr r3, [r7, #4]
  18620. 8007f14: 685b ldr r3, [r3, #4]
  18621. 8007f16: 2b2e cmp r3, #46 @ 0x2e
  18622. 8007f18: d917 bls.n 8007f4a <HAL_DMA_Init+0x2aa>
  18623. 8007f1a: 687b ldr r3, [r7, #4]
  18624. 8007f1c: 685b ldr r3, [r3, #4]
  18625. 8007f1e: 2b3e cmp r3, #62 @ 0x3e
  18626. 8007f20: d903 bls.n 8007f2a <HAL_DMA_Init+0x28a>
  18627. 8007f22: 687b ldr r3, [r7, #4]
  18628. 8007f24: 685b ldr r3, [r3, #4]
  18629. 8007f26: 2b42 cmp r3, #66 @ 0x42
  18630. 8007f28: d90f bls.n 8007f4a <HAL_DMA_Init+0x2aa>
  18631. 8007f2a: 687b ldr r3, [r7, #4]
  18632. 8007f2c: 685b ldr r3, [r3, #4]
  18633. 8007f2e: 2b46 cmp r3, #70 @ 0x46
  18634. 8007f30: d903 bls.n 8007f3a <HAL_DMA_Init+0x29a>
  18635. 8007f32: 687b ldr r3, [r7, #4]
  18636. 8007f34: 685b ldr r3, [r3, #4]
  18637. 8007f36: 2b48 cmp r3, #72 @ 0x48
  18638. 8007f38: d907 bls.n 8007f4a <HAL_DMA_Init+0x2aa>
  18639. 8007f3a: 687b ldr r3, [r7, #4]
  18640. 8007f3c: 685b ldr r3, [r3, #4]
  18641. 8007f3e: 2b4e cmp r3, #78 @ 0x4e
  18642. 8007f40: d905 bls.n 8007f4e <HAL_DMA_Init+0x2ae>
  18643. 8007f42: 687b ldr r3, [r7, #4]
  18644. 8007f44: 685b ldr r3, [r3, #4]
  18645. 8007f46: 2b52 cmp r3, #82 @ 0x52
  18646. 8007f48: d801 bhi.n 8007f4e <HAL_DMA_Init+0x2ae>
  18647. 8007f4a: 2301 movs r3, #1
  18648. 8007f4c: e000 b.n 8007f50 <HAL_DMA_Init+0x2b0>
  18649. 8007f4e: 2300 movs r3, #0
  18650. 8007f50: 2b00 cmp r3, #0
  18651. 8007f52: d003 beq.n 8007f5c <HAL_DMA_Init+0x2bc>
  18652. {
  18653. registerValue |= DMA_SxCR_TRBUFF;
  18654. 8007f54: 697b ldr r3, [r7, #20]
  18655. 8007f56: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  18656. 8007f5a: 617b str r3, [r7, #20]
  18657. #if (STM32H7_DEV_ID == 0x450UL)
  18658. }
  18659. #endif /* STM32H7_DEV_ID == 0x450UL */
  18660. /* Write to DMA Stream CR register */
  18661. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  18662. 8007f5c: 687b ldr r3, [r7, #4]
  18663. 8007f5e: 681b ldr r3, [r3, #0]
  18664. 8007f60: 697a ldr r2, [r7, #20]
  18665. 8007f62: 601a str r2, [r3, #0]
  18666. /* Get the FCR register value */
  18667. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  18668. 8007f64: 687b ldr r3, [r7, #4]
  18669. 8007f66: 681b ldr r3, [r3, #0]
  18670. 8007f68: 695b ldr r3, [r3, #20]
  18671. 8007f6a: 617b str r3, [r7, #20]
  18672. /* Clear Direct mode and FIFO threshold bits */
  18673. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  18674. 8007f6c: 697b ldr r3, [r7, #20]
  18675. 8007f6e: f023 0307 bic.w r3, r3, #7
  18676. 8007f72: 617b str r3, [r7, #20]
  18677. /* Prepare the DMA Stream FIFO configuration */
  18678. registerValue |= hdma->Init.FIFOMode;
  18679. 8007f74: 687b ldr r3, [r7, #4]
  18680. 8007f76: 6a5b ldr r3, [r3, #36] @ 0x24
  18681. 8007f78: 697a ldr r2, [r7, #20]
  18682. 8007f7a: 4313 orrs r3, r2
  18683. 8007f7c: 617b str r3, [r7, #20]
  18684. /* the FIFO threshold is not used when the FIFO mode is disabled */
  18685. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  18686. 8007f7e: 687b ldr r3, [r7, #4]
  18687. 8007f80: 6a5b ldr r3, [r3, #36] @ 0x24
  18688. 8007f82: 2b04 cmp r3, #4
  18689. 8007f84: d117 bne.n 8007fb6 <HAL_DMA_Init+0x316>
  18690. {
  18691. /* Get the FIFO threshold */
  18692. registerValue |= hdma->Init.FIFOThreshold;
  18693. 8007f86: 687b ldr r3, [r7, #4]
  18694. 8007f88: 6a9b ldr r3, [r3, #40] @ 0x28
  18695. 8007f8a: 697a ldr r2, [r7, #20]
  18696. 8007f8c: 4313 orrs r3, r2
  18697. 8007f8e: 617b str r3, [r7, #20]
  18698. /* Check compatibility between FIFO threshold level and size of the memory burst */
  18699. /* for INCR4, INCR8, INCR16 */
  18700. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  18701. 8007f90: 687b ldr r3, [r7, #4]
  18702. 8007f92: 6adb ldr r3, [r3, #44] @ 0x2c
  18703. 8007f94: 2b00 cmp r3, #0
  18704. 8007f96: d00e beq.n 8007fb6 <HAL_DMA_Init+0x316>
  18705. {
  18706. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  18707. 8007f98: 6878 ldr r0, [r7, #4]
  18708. 8007f9a: f002 fb33 bl 800a604 <DMA_CheckFifoParam>
  18709. 8007f9e: 4603 mov r3, r0
  18710. 8007fa0: 2b00 cmp r3, #0
  18711. 8007fa2: d008 beq.n 8007fb6 <HAL_DMA_Init+0x316>
  18712. {
  18713. /* Update error code */
  18714. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  18715. 8007fa4: 687b ldr r3, [r7, #4]
  18716. 8007fa6: 2240 movs r2, #64 @ 0x40
  18717. 8007fa8: 655a str r2, [r3, #84] @ 0x54
  18718. /* Change the DMA state */
  18719. hdma->State = HAL_DMA_STATE_READY;
  18720. 8007faa: 687b ldr r3, [r7, #4]
  18721. 8007fac: 2201 movs r2, #1
  18722. 8007fae: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18723. return HAL_ERROR;
  18724. 8007fb2: 2301 movs r3, #1
  18725. 8007fb4: e197 b.n 80082e6 <HAL_DMA_Init+0x646>
  18726. }
  18727. }
  18728. }
  18729. /* Write to DMA Stream FCR */
  18730. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  18731. 8007fb6: 687b ldr r3, [r7, #4]
  18732. 8007fb8: 681b ldr r3, [r3, #0]
  18733. 8007fba: 697a ldr r2, [r7, #20]
  18734. 8007fbc: 615a str r2, [r3, #20]
  18735. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  18736. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  18737. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  18738. 8007fbe: 6878 ldr r0, [r7, #4]
  18739. 8007fc0: f002 fa6e bl 800a4a0 <DMA_CalcBaseAndBitshift>
  18740. 8007fc4: 4603 mov r3, r0
  18741. 8007fc6: 60bb str r3, [r7, #8]
  18742. /* Clear all interrupt flags */
  18743. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  18744. 8007fc8: 687b ldr r3, [r7, #4]
  18745. 8007fca: 6ddb ldr r3, [r3, #92] @ 0x5c
  18746. 8007fcc: f003 031f and.w r3, r3, #31
  18747. 8007fd0: 223f movs r2, #63 @ 0x3f
  18748. 8007fd2: 409a lsls r2, r3
  18749. 8007fd4: 68bb ldr r3, [r7, #8]
  18750. 8007fd6: 609a str r2, [r3, #8]
  18751. 8007fd8: e0cd b.n 8008176 <HAL_DMA_Init+0x4d6>
  18752. }
  18753. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  18754. 8007fda: 687b ldr r3, [r7, #4]
  18755. 8007fdc: 681b ldr r3, [r3, #0]
  18756. 8007fde: 4a3b ldr r2, [pc, #236] @ (80080cc <HAL_DMA_Init+0x42c>)
  18757. 8007fe0: 4293 cmp r3, r2
  18758. 8007fe2: d022 beq.n 800802a <HAL_DMA_Init+0x38a>
  18759. 8007fe4: 687b ldr r3, [r7, #4]
  18760. 8007fe6: 681b ldr r3, [r3, #0]
  18761. 8007fe8: 4a39 ldr r2, [pc, #228] @ (80080d0 <HAL_DMA_Init+0x430>)
  18762. 8007fea: 4293 cmp r3, r2
  18763. 8007fec: d01d beq.n 800802a <HAL_DMA_Init+0x38a>
  18764. 8007fee: 687b ldr r3, [r7, #4]
  18765. 8007ff0: 681b ldr r3, [r3, #0]
  18766. 8007ff2: 4a38 ldr r2, [pc, #224] @ (80080d4 <HAL_DMA_Init+0x434>)
  18767. 8007ff4: 4293 cmp r3, r2
  18768. 8007ff6: d018 beq.n 800802a <HAL_DMA_Init+0x38a>
  18769. 8007ff8: 687b ldr r3, [r7, #4]
  18770. 8007ffa: 681b ldr r3, [r3, #0]
  18771. 8007ffc: 4a36 ldr r2, [pc, #216] @ (80080d8 <HAL_DMA_Init+0x438>)
  18772. 8007ffe: 4293 cmp r3, r2
  18773. 8008000: d013 beq.n 800802a <HAL_DMA_Init+0x38a>
  18774. 8008002: 687b ldr r3, [r7, #4]
  18775. 8008004: 681b ldr r3, [r3, #0]
  18776. 8008006: 4a35 ldr r2, [pc, #212] @ (80080dc <HAL_DMA_Init+0x43c>)
  18777. 8008008: 4293 cmp r3, r2
  18778. 800800a: d00e beq.n 800802a <HAL_DMA_Init+0x38a>
  18779. 800800c: 687b ldr r3, [r7, #4]
  18780. 800800e: 681b ldr r3, [r3, #0]
  18781. 8008010: 4a33 ldr r2, [pc, #204] @ (80080e0 <HAL_DMA_Init+0x440>)
  18782. 8008012: 4293 cmp r3, r2
  18783. 8008014: d009 beq.n 800802a <HAL_DMA_Init+0x38a>
  18784. 8008016: 687b ldr r3, [r7, #4]
  18785. 8008018: 681b ldr r3, [r3, #0]
  18786. 800801a: 4a32 ldr r2, [pc, #200] @ (80080e4 <HAL_DMA_Init+0x444>)
  18787. 800801c: 4293 cmp r3, r2
  18788. 800801e: d004 beq.n 800802a <HAL_DMA_Init+0x38a>
  18789. 8008020: 687b ldr r3, [r7, #4]
  18790. 8008022: 681b ldr r3, [r3, #0]
  18791. 8008024: 4a30 ldr r2, [pc, #192] @ (80080e8 <HAL_DMA_Init+0x448>)
  18792. 8008026: 4293 cmp r3, r2
  18793. 8008028: d101 bne.n 800802e <HAL_DMA_Init+0x38e>
  18794. 800802a: 2301 movs r3, #1
  18795. 800802c: e000 b.n 8008030 <HAL_DMA_Init+0x390>
  18796. 800802e: 2300 movs r3, #0
  18797. 8008030: 2b00 cmp r3, #0
  18798. 8008032: f000 8097 beq.w 8008164 <HAL_DMA_Init+0x4c4>
  18799. {
  18800. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  18801. 8008036: 687b ldr r3, [r7, #4]
  18802. 8008038: 681b ldr r3, [r3, #0]
  18803. 800803a: 4a24 ldr r2, [pc, #144] @ (80080cc <HAL_DMA_Init+0x42c>)
  18804. 800803c: 4293 cmp r3, r2
  18805. 800803e: d021 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18806. 8008040: 687b ldr r3, [r7, #4]
  18807. 8008042: 681b ldr r3, [r3, #0]
  18808. 8008044: 4a22 ldr r2, [pc, #136] @ (80080d0 <HAL_DMA_Init+0x430>)
  18809. 8008046: 4293 cmp r3, r2
  18810. 8008048: d01c beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18811. 800804a: 687b ldr r3, [r7, #4]
  18812. 800804c: 681b ldr r3, [r3, #0]
  18813. 800804e: 4a21 ldr r2, [pc, #132] @ (80080d4 <HAL_DMA_Init+0x434>)
  18814. 8008050: 4293 cmp r3, r2
  18815. 8008052: d017 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18816. 8008054: 687b ldr r3, [r7, #4]
  18817. 8008056: 681b ldr r3, [r3, #0]
  18818. 8008058: 4a1f ldr r2, [pc, #124] @ (80080d8 <HAL_DMA_Init+0x438>)
  18819. 800805a: 4293 cmp r3, r2
  18820. 800805c: d012 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18821. 800805e: 687b ldr r3, [r7, #4]
  18822. 8008060: 681b ldr r3, [r3, #0]
  18823. 8008062: 4a1e ldr r2, [pc, #120] @ (80080dc <HAL_DMA_Init+0x43c>)
  18824. 8008064: 4293 cmp r3, r2
  18825. 8008066: d00d beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18826. 8008068: 687b ldr r3, [r7, #4]
  18827. 800806a: 681b ldr r3, [r3, #0]
  18828. 800806c: 4a1c ldr r2, [pc, #112] @ (80080e0 <HAL_DMA_Init+0x440>)
  18829. 800806e: 4293 cmp r3, r2
  18830. 8008070: d008 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18831. 8008072: 687b ldr r3, [r7, #4]
  18832. 8008074: 681b ldr r3, [r3, #0]
  18833. 8008076: 4a1b ldr r2, [pc, #108] @ (80080e4 <HAL_DMA_Init+0x444>)
  18834. 8008078: 4293 cmp r3, r2
  18835. 800807a: d003 beq.n 8008084 <HAL_DMA_Init+0x3e4>
  18836. 800807c: 687b ldr r3, [r7, #4]
  18837. 800807e: 681b ldr r3, [r3, #0]
  18838. 8008080: 4a19 ldr r2, [pc, #100] @ (80080e8 <HAL_DMA_Init+0x448>)
  18839. 8008082: 4293 cmp r3, r2
  18840. /* Check the request parameter */
  18841. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  18842. }
  18843. /* Change DMA peripheral state */
  18844. hdma->State = HAL_DMA_STATE_BUSY;
  18845. 8008084: 687b ldr r3, [r7, #4]
  18846. 8008086: 2202 movs r2, #2
  18847. 8008088: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18848. /* Allocate lock resource */
  18849. __HAL_UNLOCK(hdma);
  18850. 800808c: 687b ldr r3, [r7, #4]
  18851. 800808e: 2200 movs r2, #0
  18852. 8008090: f883 2034 strb.w r2, [r3, #52] @ 0x34
  18853. /* Get the CR register value */
  18854. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  18855. 8008094: 687b ldr r3, [r7, #4]
  18856. 8008096: 681b ldr r3, [r3, #0]
  18857. 8008098: 681b ldr r3, [r3, #0]
  18858. 800809a: 617b str r3, [r7, #20]
  18859. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  18860. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  18861. 800809c: 697a ldr r2, [r7, #20]
  18862. 800809e: 4b13 ldr r3, [pc, #76] @ (80080ec <HAL_DMA_Init+0x44c>)
  18863. 80080a0: 4013 ands r3, r2
  18864. 80080a2: 617b str r3, [r7, #20]
  18865. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  18866. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  18867. BDMA_CCR_CT));
  18868. /* Prepare the DMA Channel configuration */
  18869. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18870. 80080a4: 687b ldr r3, [r7, #4]
  18871. 80080a6: 689b ldr r3, [r3, #8]
  18872. 80080a8: 2b40 cmp r3, #64 @ 0x40
  18873. 80080aa: d021 beq.n 80080f0 <HAL_DMA_Init+0x450>
  18874. 80080ac: 687b ldr r3, [r7, #4]
  18875. 80080ae: 689b ldr r3, [r3, #8]
  18876. 80080b0: 2b80 cmp r3, #128 @ 0x80
  18877. 80080b2: d102 bne.n 80080ba <HAL_DMA_Init+0x41a>
  18878. 80080b4: f44f 4380 mov.w r3, #16384 @ 0x4000
  18879. 80080b8: e01b b.n 80080f2 <HAL_DMA_Init+0x452>
  18880. 80080ba: 2300 movs r3, #0
  18881. 80080bc: e019 b.n 80080f2 <HAL_DMA_Init+0x452>
  18882. 80080be: bf00 nop
  18883. 80080c0: fe10803f .word 0xfe10803f
  18884. 80080c4: 5c001000 .word 0x5c001000
  18885. 80080c8: ffff0000 .word 0xffff0000
  18886. 80080cc: 58025408 .word 0x58025408
  18887. 80080d0: 5802541c .word 0x5802541c
  18888. 80080d4: 58025430 .word 0x58025430
  18889. 80080d8: 58025444 .word 0x58025444
  18890. 80080dc: 58025458 .word 0x58025458
  18891. 80080e0: 5802546c .word 0x5802546c
  18892. 80080e4: 58025480 .word 0x58025480
  18893. 80080e8: 58025494 .word 0x58025494
  18894. 80080ec: fffe000f .word 0xfffe000f
  18895. 80080f0: 2310 movs r3, #16
  18896. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  18897. 80080f2: 687a ldr r2, [r7, #4]
  18898. 80080f4: 68d2 ldr r2, [r2, #12]
  18899. 80080f6: 08d2 lsrs r2, r2, #3
  18900. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18901. 80080f8: 431a orrs r2, r3
  18902. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  18903. 80080fa: 687b ldr r3, [r7, #4]
  18904. 80080fc: 691b ldr r3, [r3, #16]
  18905. 80080fe: 08db lsrs r3, r3, #3
  18906. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  18907. 8008100: 431a orrs r2, r3
  18908. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  18909. 8008102: 687b ldr r3, [r7, #4]
  18910. 8008104: 695b ldr r3, [r3, #20]
  18911. 8008106: 08db lsrs r3, r3, #3
  18912. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  18913. 8008108: 431a orrs r2, r3
  18914. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  18915. 800810a: 687b ldr r3, [r7, #4]
  18916. 800810c: 699b ldr r3, [r3, #24]
  18917. 800810e: 08db lsrs r3, r3, #3
  18918. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  18919. 8008110: 431a orrs r2, r3
  18920. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  18921. 8008112: 687b ldr r3, [r7, #4]
  18922. 8008114: 69db ldr r3, [r3, #28]
  18923. 8008116: 08db lsrs r3, r3, #3
  18924. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  18925. 8008118: 431a orrs r2, r3
  18926. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  18927. 800811a: 687b ldr r3, [r7, #4]
  18928. 800811c: 6a1b ldr r3, [r3, #32]
  18929. 800811e: 091b lsrs r3, r3, #4
  18930. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  18931. 8008120: 4313 orrs r3, r2
  18932. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  18933. 8008122: 697a ldr r2, [r7, #20]
  18934. 8008124: 4313 orrs r3, r2
  18935. 8008126: 617b str r3, [r7, #20]
  18936. /* Write to DMA Channel CR register */
  18937. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  18938. 8008128: 687b ldr r3, [r7, #4]
  18939. 800812a: 681b ldr r3, [r3, #0]
  18940. 800812c: 697a ldr r2, [r7, #20]
  18941. 800812e: 601a str r2, [r3, #0]
  18942. /* calculation of the channel index */
  18943. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  18944. 8008130: 687b ldr r3, [r7, #4]
  18945. 8008132: 681b ldr r3, [r3, #0]
  18946. 8008134: 461a mov r2, r3
  18947. 8008136: 4b6e ldr r3, [pc, #440] @ (80082f0 <HAL_DMA_Init+0x650>)
  18948. 8008138: 4413 add r3, r2
  18949. 800813a: 4a6e ldr r2, [pc, #440] @ (80082f4 <HAL_DMA_Init+0x654>)
  18950. 800813c: fba2 2303 umull r2, r3, r2, r3
  18951. 8008140: 091b lsrs r3, r3, #4
  18952. 8008142: 009a lsls r2, r3, #2
  18953. 8008144: 687b ldr r3, [r7, #4]
  18954. 8008146: 65da str r2, [r3, #92] @ 0x5c
  18955. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  18956. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  18957. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  18958. 8008148: 6878 ldr r0, [r7, #4]
  18959. 800814a: f002 f9a9 bl 800a4a0 <DMA_CalcBaseAndBitshift>
  18960. 800814e: 4603 mov r3, r0
  18961. 8008150: 60fb str r3, [r7, #12]
  18962. /* Clear all interrupt flags */
  18963. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  18964. 8008152: 687b ldr r3, [r7, #4]
  18965. 8008154: 6ddb ldr r3, [r3, #92] @ 0x5c
  18966. 8008156: f003 031f and.w r3, r3, #31
  18967. 800815a: 2201 movs r2, #1
  18968. 800815c: 409a lsls r2, r3
  18969. 800815e: 68fb ldr r3, [r7, #12]
  18970. 8008160: 605a str r2, [r3, #4]
  18971. 8008162: e008 b.n 8008176 <HAL_DMA_Init+0x4d6>
  18972. }
  18973. else
  18974. {
  18975. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  18976. 8008164: 687b ldr r3, [r7, #4]
  18977. 8008166: 2240 movs r2, #64 @ 0x40
  18978. 8008168: 655a str r2, [r3, #84] @ 0x54
  18979. hdma->State = HAL_DMA_STATE_ERROR;
  18980. 800816a: 687b ldr r3, [r7, #4]
  18981. 800816c: 2203 movs r2, #3
  18982. 800816e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  18983. return HAL_ERROR;
  18984. 8008172: 2301 movs r3, #1
  18985. 8008174: e0b7 b.n 80082e6 <HAL_DMA_Init+0x646>
  18986. }
  18987. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  18988. 8008176: 687b ldr r3, [r7, #4]
  18989. 8008178: 681b ldr r3, [r3, #0]
  18990. 800817a: 4a5f ldr r2, [pc, #380] @ (80082f8 <HAL_DMA_Init+0x658>)
  18991. 800817c: 4293 cmp r3, r2
  18992. 800817e: d072 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  18993. 8008180: 687b ldr r3, [r7, #4]
  18994. 8008182: 681b ldr r3, [r3, #0]
  18995. 8008184: 4a5d ldr r2, [pc, #372] @ (80082fc <HAL_DMA_Init+0x65c>)
  18996. 8008186: 4293 cmp r3, r2
  18997. 8008188: d06d beq.n 8008266 <HAL_DMA_Init+0x5c6>
  18998. 800818a: 687b ldr r3, [r7, #4]
  18999. 800818c: 681b ldr r3, [r3, #0]
  19000. 800818e: 4a5c ldr r2, [pc, #368] @ (8008300 <HAL_DMA_Init+0x660>)
  19001. 8008190: 4293 cmp r3, r2
  19002. 8008192: d068 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19003. 8008194: 687b ldr r3, [r7, #4]
  19004. 8008196: 681b ldr r3, [r3, #0]
  19005. 8008198: 4a5a ldr r2, [pc, #360] @ (8008304 <HAL_DMA_Init+0x664>)
  19006. 800819a: 4293 cmp r3, r2
  19007. 800819c: d063 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19008. 800819e: 687b ldr r3, [r7, #4]
  19009. 80081a0: 681b ldr r3, [r3, #0]
  19010. 80081a2: 4a59 ldr r2, [pc, #356] @ (8008308 <HAL_DMA_Init+0x668>)
  19011. 80081a4: 4293 cmp r3, r2
  19012. 80081a6: d05e beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19013. 80081a8: 687b ldr r3, [r7, #4]
  19014. 80081aa: 681b ldr r3, [r3, #0]
  19015. 80081ac: 4a57 ldr r2, [pc, #348] @ (800830c <HAL_DMA_Init+0x66c>)
  19016. 80081ae: 4293 cmp r3, r2
  19017. 80081b0: d059 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19018. 80081b2: 687b ldr r3, [r7, #4]
  19019. 80081b4: 681b ldr r3, [r3, #0]
  19020. 80081b6: 4a56 ldr r2, [pc, #344] @ (8008310 <HAL_DMA_Init+0x670>)
  19021. 80081b8: 4293 cmp r3, r2
  19022. 80081ba: d054 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19023. 80081bc: 687b ldr r3, [r7, #4]
  19024. 80081be: 681b ldr r3, [r3, #0]
  19025. 80081c0: 4a54 ldr r2, [pc, #336] @ (8008314 <HAL_DMA_Init+0x674>)
  19026. 80081c2: 4293 cmp r3, r2
  19027. 80081c4: d04f beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19028. 80081c6: 687b ldr r3, [r7, #4]
  19029. 80081c8: 681b ldr r3, [r3, #0]
  19030. 80081ca: 4a53 ldr r2, [pc, #332] @ (8008318 <HAL_DMA_Init+0x678>)
  19031. 80081cc: 4293 cmp r3, r2
  19032. 80081ce: d04a beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19033. 80081d0: 687b ldr r3, [r7, #4]
  19034. 80081d2: 681b ldr r3, [r3, #0]
  19035. 80081d4: 4a51 ldr r2, [pc, #324] @ (800831c <HAL_DMA_Init+0x67c>)
  19036. 80081d6: 4293 cmp r3, r2
  19037. 80081d8: d045 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19038. 80081da: 687b ldr r3, [r7, #4]
  19039. 80081dc: 681b ldr r3, [r3, #0]
  19040. 80081de: 4a50 ldr r2, [pc, #320] @ (8008320 <HAL_DMA_Init+0x680>)
  19041. 80081e0: 4293 cmp r3, r2
  19042. 80081e2: d040 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19043. 80081e4: 687b ldr r3, [r7, #4]
  19044. 80081e6: 681b ldr r3, [r3, #0]
  19045. 80081e8: 4a4e ldr r2, [pc, #312] @ (8008324 <HAL_DMA_Init+0x684>)
  19046. 80081ea: 4293 cmp r3, r2
  19047. 80081ec: d03b beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19048. 80081ee: 687b ldr r3, [r7, #4]
  19049. 80081f0: 681b ldr r3, [r3, #0]
  19050. 80081f2: 4a4d ldr r2, [pc, #308] @ (8008328 <HAL_DMA_Init+0x688>)
  19051. 80081f4: 4293 cmp r3, r2
  19052. 80081f6: d036 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19053. 80081f8: 687b ldr r3, [r7, #4]
  19054. 80081fa: 681b ldr r3, [r3, #0]
  19055. 80081fc: 4a4b ldr r2, [pc, #300] @ (800832c <HAL_DMA_Init+0x68c>)
  19056. 80081fe: 4293 cmp r3, r2
  19057. 8008200: d031 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19058. 8008202: 687b ldr r3, [r7, #4]
  19059. 8008204: 681b ldr r3, [r3, #0]
  19060. 8008206: 4a4a ldr r2, [pc, #296] @ (8008330 <HAL_DMA_Init+0x690>)
  19061. 8008208: 4293 cmp r3, r2
  19062. 800820a: d02c beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19063. 800820c: 687b ldr r3, [r7, #4]
  19064. 800820e: 681b ldr r3, [r3, #0]
  19065. 8008210: 4a48 ldr r2, [pc, #288] @ (8008334 <HAL_DMA_Init+0x694>)
  19066. 8008212: 4293 cmp r3, r2
  19067. 8008214: d027 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19068. 8008216: 687b ldr r3, [r7, #4]
  19069. 8008218: 681b ldr r3, [r3, #0]
  19070. 800821a: 4a47 ldr r2, [pc, #284] @ (8008338 <HAL_DMA_Init+0x698>)
  19071. 800821c: 4293 cmp r3, r2
  19072. 800821e: d022 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19073. 8008220: 687b ldr r3, [r7, #4]
  19074. 8008222: 681b ldr r3, [r3, #0]
  19075. 8008224: 4a45 ldr r2, [pc, #276] @ (800833c <HAL_DMA_Init+0x69c>)
  19076. 8008226: 4293 cmp r3, r2
  19077. 8008228: d01d beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19078. 800822a: 687b ldr r3, [r7, #4]
  19079. 800822c: 681b ldr r3, [r3, #0]
  19080. 800822e: 4a44 ldr r2, [pc, #272] @ (8008340 <HAL_DMA_Init+0x6a0>)
  19081. 8008230: 4293 cmp r3, r2
  19082. 8008232: d018 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19083. 8008234: 687b ldr r3, [r7, #4]
  19084. 8008236: 681b ldr r3, [r3, #0]
  19085. 8008238: 4a42 ldr r2, [pc, #264] @ (8008344 <HAL_DMA_Init+0x6a4>)
  19086. 800823a: 4293 cmp r3, r2
  19087. 800823c: d013 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19088. 800823e: 687b ldr r3, [r7, #4]
  19089. 8008240: 681b ldr r3, [r3, #0]
  19090. 8008242: 4a41 ldr r2, [pc, #260] @ (8008348 <HAL_DMA_Init+0x6a8>)
  19091. 8008244: 4293 cmp r3, r2
  19092. 8008246: d00e beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19093. 8008248: 687b ldr r3, [r7, #4]
  19094. 800824a: 681b ldr r3, [r3, #0]
  19095. 800824c: 4a3f ldr r2, [pc, #252] @ (800834c <HAL_DMA_Init+0x6ac>)
  19096. 800824e: 4293 cmp r3, r2
  19097. 8008250: d009 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19098. 8008252: 687b ldr r3, [r7, #4]
  19099. 8008254: 681b ldr r3, [r3, #0]
  19100. 8008256: 4a3e ldr r2, [pc, #248] @ (8008350 <HAL_DMA_Init+0x6b0>)
  19101. 8008258: 4293 cmp r3, r2
  19102. 800825a: d004 beq.n 8008266 <HAL_DMA_Init+0x5c6>
  19103. 800825c: 687b ldr r3, [r7, #4]
  19104. 800825e: 681b ldr r3, [r3, #0]
  19105. 8008260: 4a3c ldr r2, [pc, #240] @ (8008354 <HAL_DMA_Init+0x6b4>)
  19106. 8008262: 4293 cmp r3, r2
  19107. 8008264: d101 bne.n 800826a <HAL_DMA_Init+0x5ca>
  19108. 8008266: 2301 movs r3, #1
  19109. 8008268: e000 b.n 800826c <HAL_DMA_Init+0x5cc>
  19110. 800826a: 2300 movs r3, #0
  19111. 800826c: 2b00 cmp r3, #0
  19112. 800826e: d032 beq.n 80082d6 <HAL_DMA_Init+0x636>
  19113. {
  19114. /* Initialize parameters for DMAMUX channel :
  19115. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  19116. */
  19117. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  19118. 8008270: 6878 ldr r0, [r7, #4]
  19119. 8008272: f002 fa43 bl 800a6fc <DMA_CalcDMAMUXChannelBaseAndMask>
  19120. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  19121. 8008276: 687b ldr r3, [r7, #4]
  19122. 8008278: 689b ldr r3, [r3, #8]
  19123. 800827a: 2b80 cmp r3, #128 @ 0x80
  19124. 800827c: d102 bne.n 8008284 <HAL_DMA_Init+0x5e4>
  19125. {
  19126. /* if memory to memory force the request to 0*/
  19127. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  19128. 800827e: 687b ldr r3, [r7, #4]
  19129. 8008280: 2200 movs r2, #0
  19130. 8008282: 605a str r2, [r3, #4]
  19131. }
  19132. /* Set peripheral request to DMAMUX channel */
  19133. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  19134. 8008284: 687b ldr r3, [r7, #4]
  19135. 8008286: 685a ldr r2, [r3, #4]
  19136. 8008288: 687b ldr r3, [r7, #4]
  19137. 800828a: 6e1b ldr r3, [r3, #96] @ 0x60
  19138. 800828c: b2d2 uxtb r2, r2
  19139. 800828e: 601a str r2, [r3, #0]
  19140. /* Clear the DMAMUX synchro overrun flag */
  19141. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  19142. 8008290: 687b ldr r3, [r7, #4]
  19143. 8008292: 6e5b ldr r3, [r3, #100] @ 0x64
  19144. 8008294: 687a ldr r2, [r7, #4]
  19145. 8008296: 6e92 ldr r2, [r2, #104] @ 0x68
  19146. 8008298: 605a str r2, [r3, #4]
  19147. /* Initialize parameters for DMAMUX request generator :
  19148. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  19149. */
  19150. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  19151. 800829a: 687b ldr r3, [r7, #4]
  19152. 800829c: 685b ldr r3, [r3, #4]
  19153. 800829e: 2b00 cmp r3, #0
  19154. 80082a0: d010 beq.n 80082c4 <HAL_DMA_Init+0x624>
  19155. 80082a2: 687b ldr r3, [r7, #4]
  19156. 80082a4: 685b ldr r3, [r3, #4]
  19157. 80082a6: 2b08 cmp r3, #8
  19158. 80082a8: d80c bhi.n 80082c4 <HAL_DMA_Init+0x624>
  19159. {
  19160. /* Initialize parameters for DMAMUX request generator :
  19161. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  19162. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  19163. 80082aa: 6878 ldr r0, [r7, #4]
  19164. 80082ac: f002 fac0 bl 800a830 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  19165. /* Reset the DMAMUX request generator register */
  19166. hdma->DMAmuxRequestGen->RGCR = 0U;
  19167. 80082b0: 687b ldr r3, [r7, #4]
  19168. 80082b2: 6edb ldr r3, [r3, #108] @ 0x6c
  19169. 80082b4: 2200 movs r2, #0
  19170. 80082b6: 601a str r2, [r3, #0]
  19171. /* Clear the DMAMUX request generator overrun flag */
  19172. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  19173. 80082b8: 687b ldr r3, [r7, #4]
  19174. 80082ba: 6f1b ldr r3, [r3, #112] @ 0x70
  19175. 80082bc: 687a ldr r2, [r7, #4]
  19176. 80082be: 6f52 ldr r2, [r2, #116] @ 0x74
  19177. 80082c0: 605a str r2, [r3, #4]
  19178. 80082c2: e008 b.n 80082d6 <HAL_DMA_Init+0x636>
  19179. }
  19180. else
  19181. {
  19182. hdma->DMAmuxRequestGen = 0U;
  19183. 80082c4: 687b ldr r3, [r7, #4]
  19184. 80082c6: 2200 movs r2, #0
  19185. 80082c8: 66da str r2, [r3, #108] @ 0x6c
  19186. hdma->DMAmuxRequestGenStatus = 0U;
  19187. 80082ca: 687b ldr r3, [r7, #4]
  19188. 80082cc: 2200 movs r2, #0
  19189. 80082ce: 671a str r2, [r3, #112] @ 0x70
  19190. hdma->DMAmuxRequestGenStatusMask = 0U;
  19191. 80082d0: 687b ldr r3, [r7, #4]
  19192. 80082d2: 2200 movs r2, #0
  19193. 80082d4: 675a str r2, [r3, #116] @ 0x74
  19194. }
  19195. }
  19196. /* Initialize the error code */
  19197. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  19198. 80082d6: 687b ldr r3, [r7, #4]
  19199. 80082d8: 2200 movs r2, #0
  19200. 80082da: 655a str r2, [r3, #84] @ 0x54
  19201. /* Initialize the DMA state */
  19202. hdma->State = HAL_DMA_STATE_READY;
  19203. 80082dc: 687b ldr r3, [r7, #4]
  19204. 80082de: 2201 movs r2, #1
  19205. 80082e0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19206. return HAL_OK;
  19207. 80082e4: 2300 movs r3, #0
  19208. }
  19209. 80082e6: 4618 mov r0, r3
  19210. 80082e8: 3718 adds r7, #24
  19211. 80082ea: 46bd mov sp, r7
  19212. 80082ec: bd80 pop {r7, pc}
  19213. 80082ee: bf00 nop
  19214. 80082f0: a7fdabf8 .word 0xa7fdabf8
  19215. 80082f4: cccccccd .word 0xcccccccd
  19216. 80082f8: 40020010 .word 0x40020010
  19217. 80082fc: 40020028 .word 0x40020028
  19218. 8008300: 40020040 .word 0x40020040
  19219. 8008304: 40020058 .word 0x40020058
  19220. 8008308: 40020070 .word 0x40020070
  19221. 800830c: 40020088 .word 0x40020088
  19222. 8008310: 400200a0 .word 0x400200a0
  19223. 8008314: 400200b8 .word 0x400200b8
  19224. 8008318: 40020410 .word 0x40020410
  19225. 800831c: 40020428 .word 0x40020428
  19226. 8008320: 40020440 .word 0x40020440
  19227. 8008324: 40020458 .word 0x40020458
  19228. 8008328: 40020470 .word 0x40020470
  19229. 800832c: 40020488 .word 0x40020488
  19230. 8008330: 400204a0 .word 0x400204a0
  19231. 8008334: 400204b8 .word 0x400204b8
  19232. 8008338: 58025408 .word 0x58025408
  19233. 800833c: 5802541c .word 0x5802541c
  19234. 8008340: 58025430 .word 0x58025430
  19235. 8008344: 58025444 .word 0x58025444
  19236. 8008348: 58025458 .word 0x58025458
  19237. 800834c: 5802546c .word 0x5802546c
  19238. 8008350: 58025480 .word 0x58025480
  19239. 8008354: 58025494 .word 0x58025494
  19240. 08008358 <HAL_DMA_Start_IT>:
  19241. * @param DstAddress: The destination memory Buffer address
  19242. * @param DataLength: The length of data to be transferred from source to destination
  19243. * @retval HAL status
  19244. */
  19245. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  19246. {
  19247. 8008358: b580 push {r7, lr}
  19248. 800835a: b086 sub sp, #24
  19249. 800835c: af00 add r7, sp, #0
  19250. 800835e: 60f8 str r0, [r7, #12]
  19251. 8008360: 60b9 str r1, [r7, #8]
  19252. 8008362: 607a str r2, [r7, #4]
  19253. 8008364: 603b str r3, [r7, #0]
  19254. HAL_StatusTypeDef status = HAL_OK;
  19255. 8008366: 2300 movs r3, #0
  19256. 8008368: 75fb strb r3, [r7, #23]
  19257. /* Check the parameters */
  19258. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  19259. /* Check the DMA peripheral handle */
  19260. if(hdma == NULL)
  19261. 800836a: 68fb ldr r3, [r7, #12]
  19262. 800836c: 2b00 cmp r3, #0
  19263. 800836e: d101 bne.n 8008374 <HAL_DMA_Start_IT+0x1c>
  19264. {
  19265. return HAL_ERROR;
  19266. 8008370: 2301 movs r3, #1
  19267. 8008372: e226 b.n 80087c2 <HAL_DMA_Start_IT+0x46a>
  19268. }
  19269. /* Process locked */
  19270. __HAL_LOCK(hdma);
  19271. 8008374: 68fb ldr r3, [r7, #12]
  19272. 8008376: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  19273. 800837a: 2b01 cmp r3, #1
  19274. 800837c: d101 bne.n 8008382 <HAL_DMA_Start_IT+0x2a>
  19275. 800837e: 2302 movs r3, #2
  19276. 8008380: e21f b.n 80087c2 <HAL_DMA_Start_IT+0x46a>
  19277. 8008382: 68fb ldr r3, [r7, #12]
  19278. 8008384: 2201 movs r2, #1
  19279. 8008386: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19280. if(HAL_DMA_STATE_READY == hdma->State)
  19281. 800838a: 68fb ldr r3, [r7, #12]
  19282. 800838c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  19283. 8008390: b2db uxtb r3, r3
  19284. 8008392: 2b01 cmp r3, #1
  19285. 8008394: f040 820a bne.w 80087ac <HAL_DMA_Start_IT+0x454>
  19286. {
  19287. /* Change DMA peripheral state */
  19288. hdma->State = HAL_DMA_STATE_BUSY;
  19289. 8008398: 68fb ldr r3, [r7, #12]
  19290. 800839a: 2202 movs r2, #2
  19291. 800839c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19292. /* Initialize the error code */
  19293. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  19294. 80083a0: 68fb ldr r3, [r7, #12]
  19295. 80083a2: 2200 movs r2, #0
  19296. 80083a4: 655a str r2, [r3, #84] @ 0x54
  19297. /* Disable the peripheral */
  19298. __HAL_DMA_DISABLE(hdma);
  19299. 80083a6: 68fb ldr r3, [r7, #12]
  19300. 80083a8: 681b ldr r3, [r3, #0]
  19301. 80083aa: 4a68 ldr r2, [pc, #416] @ (800854c <HAL_DMA_Start_IT+0x1f4>)
  19302. 80083ac: 4293 cmp r3, r2
  19303. 80083ae: d04a beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19304. 80083b0: 68fb ldr r3, [r7, #12]
  19305. 80083b2: 681b ldr r3, [r3, #0]
  19306. 80083b4: 4a66 ldr r2, [pc, #408] @ (8008550 <HAL_DMA_Start_IT+0x1f8>)
  19307. 80083b6: 4293 cmp r3, r2
  19308. 80083b8: d045 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19309. 80083ba: 68fb ldr r3, [r7, #12]
  19310. 80083bc: 681b ldr r3, [r3, #0]
  19311. 80083be: 4a65 ldr r2, [pc, #404] @ (8008554 <HAL_DMA_Start_IT+0x1fc>)
  19312. 80083c0: 4293 cmp r3, r2
  19313. 80083c2: d040 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19314. 80083c4: 68fb ldr r3, [r7, #12]
  19315. 80083c6: 681b ldr r3, [r3, #0]
  19316. 80083c8: 4a63 ldr r2, [pc, #396] @ (8008558 <HAL_DMA_Start_IT+0x200>)
  19317. 80083ca: 4293 cmp r3, r2
  19318. 80083cc: d03b beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19319. 80083ce: 68fb ldr r3, [r7, #12]
  19320. 80083d0: 681b ldr r3, [r3, #0]
  19321. 80083d2: 4a62 ldr r2, [pc, #392] @ (800855c <HAL_DMA_Start_IT+0x204>)
  19322. 80083d4: 4293 cmp r3, r2
  19323. 80083d6: d036 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19324. 80083d8: 68fb ldr r3, [r7, #12]
  19325. 80083da: 681b ldr r3, [r3, #0]
  19326. 80083dc: 4a60 ldr r2, [pc, #384] @ (8008560 <HAL_DMA_Start_IT+0x208>)
  19327. 80083de: 4293 cmp r3, r2
  19328. 80083e0: d031 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19329. 80083e2: 68fb ldr r3, [r7, #12]
  19330. 80083e4: 681b ldr r3, [r3, #0]
  19331. 80083e6: 4a5f ldr r2, [pc, #380] @ (8008564 <HAL_DMA_Start_IT+0x20c>)
  19332. 80083e8: 4293 cmp r3, r2
  19333. 80083ea: d02c beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19334. 80083ec: 68fb ldr r3, [r7, #12]
  19335. 80083ee: 681b ldr r3, [r3, #0]
  19336. 80083f0: 4a5d ldr r2, [pc, #372] @ (8008568 <HAL_DMA_Start_IT+0x210>)
  19337. 80083f2: 4293 cmp r3, r2
  19338. 80083f4: d027 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19339. 80083f6: 68fb ldr r3, [r7, #12]
  19340. 80083f8: 681b ldr r3, [r3, #0]
  19341. 80083fa: 4a5c ldr r2, [pc, #368] @ (800856c <HAL_DMA_Start_IT+0x214>)
  19342. 80083fc: 4293 cmp r3, r2
  19343. 80083fe: d022 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19344. 8008400: 68fb ldr r3, [r7, #12]
  19345. 8008402: 681b ldr r3, [r3, #0]
  19346. 8008404: 4a5a ldr r2, [pc, #360] @ (8008570 <HAL_DMA_Start_IT+0x218>)
  19347. 8008406: 4293 cmp r3, r2
  19348. 8008408: d01d beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19349. 800840a: 68fb ldr r3, [r7, #12]
  19350. 800840c: 681b ldr r3, [r3, #0]
  19351. 800840e: 4a59 ldr r2, [pc, #356] @ (8008574 <HAL_DMA_Start_IT+0x21c>)
  19352. 8008410: 4293 cmp r3, r2
  19353. 8008412: d018 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19354. 8008414: 68fb ldr r3, [r7, #12]
  19355. 8008416: 681b ldr r3, [r3, #0]
  19356. 8008418: 4a57 ldr r2, [pc, #348] @ (8008578 <HAL_DMA_Start_IT+0x220>)
  19357. 800841a: 4293 cmp r3, r2
  19358. 800841c: d013 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19359. 800841e: 68fb ldr r3, [r7, #12]
  19360. 8008420: 681b ldr r3, [r3, #0]
  19361. 8008422: 4a56 ldr r2, [pc, #344] @ (800857c <HAL_DMA_Start_IT+0x224>)
  19362. 8008424: 4293 cmp r3, r2
  19363. 8008426: d00e beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19364. 8008428: 68fb ldr r3, [r7, #12]
  19365. 800842a: 681b ldr r3, [r3, #0]
  19366. 800842c: 4a54 ldr r2, [pc, #336] @ (8008580 <HAL_DMA_Start_IT+0x228>)
  19367. 800842e: 4293 cmp r3, r2
  19368. 8008430: d009 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19369. 8008432: 68fb ldr r3, [r7, #12]
  19370. 8008434: 681b ldr r3, [r3, #0]
  19371. 8008436: 4a53 ldr r2, [pc, #332] @ (8008584 <HAL_DMA_Start_IT+0x22c>)
  19372. 8008438: 4293 cmp r3, r2
  19373. 800843a: d004 beq.n 8008446 <HAL_DMA_Start_IT+0xee>
  19374. 800843c: 68fb ldr r3, [r7, #12]
  19375. 800843e: 681b ldr r3, [r3, #0]
  19376. 8008440: 4a51 ldr r2, [pc, #324] @ (8008588 <HAL_DMA_Start_IT+0x230>)
  19377. 8008442: 4293 cmp r3, r2
  19378. 8008444: d108 bne.n 8008458 <HAL_DMA_Start_IT+0x100>
  19379. 8008446: 68fb ldr r3, [r7, #12]
  19380. 8008448: 681b ldr r3, [r3, #0]
  19381. 800844a: 681a ldr r2, [r3, #0]
  19382. 800844c: 68fb ldr r3, [r7, #12]
  19383. 800844e: 681b ldr r3, [r3, #0]
  19384. 8008450: f022 0201 bic.w r2, r2, #1
  19385. 8008454: 601a str r2, [r3, #0]
  19386. 8008456: e007 b.n 8008468 <HAL_DMA_Start_IT+0x110>
  19387. 8008458: 68fb ldr r3, [r7, #12]
  19388. 800845a: 681b ldr r3, [r3, #0]
  19389. 800845c: 681a ldr r2, [r3, #0]
  19390. 800845e: 68fb ldr r3, [r7, #12]
  19391. 8008460: 681b ldr r3, [r3, #0]
  19392. 8008462: f022 0201 bic.w r2, r2, #1
  19393. 8008466: 601a str r2, [r3, #0]
  19394. /* Configure the source, destination address and the data length */
  19395. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  19396. 8008468: 683b ldr r3, [r7, #0]
  19397. 800846a: 687a ldr r2, [r7, #4]
  19398. 800846c: 68b9 ldr r1, [r7, #8]
  19399. 800846e: 68f8 ldr r0, [r7, #12]
  19400. 8008470: f001 fe6a bl 800a148 <DMA_SetConfig>
  19401. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19402. 8008474: 68fb ldr r3, [r7, #12]
  19403. 8008476: 681b ldr r3, [r3, #0]
  19404. 8008478: 4a34 ldr r2, [pc, #208] @ (800854c <HAL_DMA_Start_IT+0x1f4>)
  19405. 800847a: 4293 cmp r3, r2
  19406. 800847c: d04a beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19407. 800847e: 68fb ldr r3, [r7, #12]
  19408. 8008480: 681b ldr r3, [r3, #0]
  19409. 8008482: 4a33 ldr r2, [pc, #204] @ (8008550 <HAL_DMA_Start_IT+0x1f8>)
  19410. 8008484: 4293 cmp r3, r2
  19411. 8008486: d045 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19412. 8008488: 68fb ldr r3, [r7, #12]
  19413. 800848a: 681b ldr r3, [r3, #0]
  19414. 800848c: 4a31 ldr r2, [pc, #196] @ (8008554 <HAL_DMA_Start_IT+0x1fc>)
  19415. 800848e: 4293 cmp r3, r2
  19416. 8008490: d040 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19417. 8008492: 68fb ldr r3, [r7, #12]
  19418. 8008494: 681b ldr r3, [r3, #0]
  19419. 8008496: 4a30 ldr r2, [pc, #192] @ (8008558 <HAL_DMA_Start_IT+0x200>)
  19420. 8008498: 4293 cmp r3, r2
  19421. 800849a: d03b beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19422. 800849c: 68fb ldr r3, [r7, #12]
  19423. 800849e: 681b ldr r3, [r3, #0]
  19424. 80084a0: 4a2e ldr r2, [pc, #184] @ (800855c <HAL_DMA_Start_IT+0x204>)
  19425. 80084a2: 4293 cmp r3, r2
  19426. 80084a4: d036 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19427. 80084a6: 68fb ldr r3, [r7, #12]
  19428. 80084a8: 681b ldr r3, [r3, #0]
  19429. 80084aa: 4a2d ldr r2, [pc, #180] @ (8008560 <HAL_DMA_Start_IT+0x208>)
  19430. 80084ac: 4293 cmp r3, r2
  19431. 80084ae: d031 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19432. 80084b0: 68fb ldr r3, [r7, #12]
  19433. 80084b2: 681b ldr r3, [r3, #0]
  19434. 80084b4: 4a2b ldr r2, [pc, #172] @ (8008564 <HAL_DMA_Start_IT+0x20c>)
  19435. 80084b6: 4293 cmp r3, r2
  19436. 80084b8: d02c beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19437. 80084ba: 68fb ldr r3, [r7, #12]
  19438. 80084bc: 681b ldr r3, [r3, #0]
  19439. 80084be: 4a2a ldr r2, [pc, #168] @ (8008568 <HAL_DMA_Start_IT+0x210>)
  19440. 80084c0: 4293 cmp r3, r2
  19441. 80084c2: d027 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19442. 80084c4: 68fb ldr r3, [r7, #12]
  19443. 80084c6: 681b ldr r3, [r3, #0]
  19444. 80084c8: 4a28 ldr r2, [pc, #160] @ (800856c <HAL_DMA_Start_IT+0x214>)
  19445. 80084ca: 4293 cmp r3, r2
  19446. 80084cc: d022 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19447. 80084ce: 68fb ldr r3, [r7, #12]
  19448. 80084d0: 681b ldr r3, [r3, #0]
  19449. 80084d2: 4a27 ldr r2, [pc, #156] @ (8008570 <HAL_DMA_Start_IT+0x218>)
  19450. 80084d4: 4293 cmp r3, r2
  19451. 80084d6: d01d beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19452. 80084d8: 68fb ldr r3, [r7, #12]
  19453. 80084da: 681b ldr r3, [r3, #0]
  19454. 80084dc: 4a25 ldr r2, [pc, #148] @ (8008574 <HAL_DMA_Start_IT+0x21c>)
  19455. 80084de: 4293 cmp r3, r2
  19456. 80084e0: d018 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19457. 80084e2: 68fb ldr r3, [r7, #12]
  19458. 80084e4: 681b ldr r3, [r3, #0]
  19459. 80084e6: 4a24 ldr r2, [pc, #144] @ (8008578 <HAL_DMA_Start_IT+0x220>)
  19460. 80084e8: 4293 cmp r3, r2
  19461. 80084ea: d013 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19462. 80084ec: 68fb ldr r3, [r7, #12]
  19463. 80084ee: 681b ldr r3, [r3, #0]
  19464. 80084f0: 4a22 ldr r2, [pc, #136] @ (800857c <HAL_DMA_Start_IT+0x224>)
  19465. 80084f2: 4293 cmp r3, r2
  19466. 80084f4: d00e beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19467. 80084f6: 68fb ldr r3, [r7, #12]
  19468. 80084f8: 681b ldr r3, [r3, #0]
  19469. 80084fa: 4a21 ldr r2, [pc, #132] @ (8008580 <HAL_DMA_Start_IT+0x228>)
  19470. 80084fc: 4293 cmp r3, r2
  19471. 80084fe: d009 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19472. 8008500: 68fb ldr r3, [r7, #12]
  19473. 8008502: 681b ldr r3, [r3, #0]
  19474. 8008504: 4a1f ldr r2, [pc, #124] @ (8008584 <HAL_DMA_Start_IT+0x22c>)
  19475. 8008506: 4293 cmp r3, r2
  19476. 8008508: d004 beq.n 8008514 <HAL_DMA_Start_IT+0x1bc>
  19477. 800850a: 68fb ldr r3, [r7, #12]
  19478. 800850c: 681b ldr r3, [r3, #0]
  19479. 800850e: 4a1e ldr r2, [pc, #120] @ (8008588 <HAL_DMA_Start_IT+0x230>)
  19480. 8008510: 4293 cmp r3, r2
  19481. 8008512: d101 bne.n 8008518 <HAL_DMA_Start_IT+0x1c0>
  19482. 8008514: 2301 movs r3, #1
  19483. 8008516: e000 b.n 800851a <HAL_DMA_Start_IT+0x1c2>
  19484. 8008518: 2300 movs r3, #0
  19485. 800851a: 2b00 cmp r3, #0
  19486. 800851c: d036 beq.n 800858c <HAL_DMA_Start_IT+0x234>
  19487. {
  19488. /* Enable Common interrupts*/
  19489. 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));
  19490. 800851e: 68fb ldr r3, [r7, #12]
  19491. 8008520: 681b ldr r3, [r3, #0]
  19492. 8008522: 681b ldr r3, [r3, #0]
  19493. 8008524: f023 021e bic.w r2, r3, #30
  19494. 8008528: 68fb ldr r3, [r7, #12]
  19495. 800852a: 681b ldr r3, [r3, #0]
  19496. 800852c: f042 0216 orr.w r2, r2, #22
  19497. 8008530: 601a str r2, [r3, #0]
  19498. if(hdma->XferHalfCpltCallback != NULL)
  19499. 8008532: 68fb ldr r3, [r7, #12]
  19500. 8008534: 6c1b ldr r3, [r3, #64] @ 0x40
  19501. 8008536: 2b00 cmp r3, #0
  19502. 8008538: d03e beq.n 80085b8 <HAL_DMA_Start_IT+0x260>
  19503. {
  19504. /* Enable Half Transfer IT if corresponding Callback is set */
  19505. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  19506. 800853a: 68fb ldr r3, [r7, #12]
  19507. 800853c: 681b ldr r3, [r3, #0]
  19508. 800853e: 681a ldr r2, [r3, #0]
  19509. 8008540: 68fb ldr r3, [r7, #12]
  19510. 8008542: 681b ldr r3, [r3, #0]
  19511. 8008544: f042 0208 orr.w r2, r2, #8
  19512. 8008548: 601a str r2, [r3, #0]
  19513. 800854a: e035 b.n 80085b8 <HAL_DMA_Start_IT+0x260>
  19514. 800854c: 40020010 .word 0x40020010
  19515. 8008550: 40020028 .word 0x40020028
  19516. 8008554: 40020040 .word 0x40020040
  19517. 8008558: 40020058 .word 0x40020058
  19518. 800855c: 40020070 .word 0x40020070
  19519. 8008560: 40020088 .word 0x40020088
  19520. 8008564: 400200a0 .word 0x400200a0
  19521. 8008568: 400200b8 .word 0x400200b8
  19522. 800856c: 40020410 .word 0x40020410
  19523. 8008570: 40020428 .word 0x40020428
  19524. 8008574: 40020440 .word 0x40020440
  19525. 8008578: 40020458 .word 0x40020458
  19526. 800857c: 40020470 .word 0x40020470
  19527. 8008580: 40020488 .word 0x40020488
  19528. 8008584: 400204a0 .word 0x400204a0
  19529. 8008588: 400204b8 .word 0x400204b8
  19530. }
  19531. }
  19532. else /* BDMA channel */
  19533. {
  19534. /* Enable Common interrupts */
  19535. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  19536. 800858c: 68fb ldr r3, [r7, #12]
  19537. 800858e: 681b ldr r3, [r3, #0]
  19538. 8008590: 681b ldr r3, [r3, #0]
  19539. 8008592: f023 020e bic.w r2, r3, #14
  19540. 8008596: 68fb ldr r3, [r7, #12]
  19541. 8008598: 681b ldr r3, [r3, #0]
  19542. 800859a: f042 020a orr.w r2, r2, #10
  19543. 800859e: 601a str r2, [r3, #0]
  19544. if(hdma->XferHalfCpltCallback != NULL)
  19545. 80085a0: 68fb ldr r3, [r7, #12]
  19546. 80085a2: 6c1b ldr r3, [r3, #64] @ 0x40
  19547. 80085a4: 2b00 cmp r3, #0
  19548. 80085a6: d007 beq.n 80085b8 <HAL_DMA_Start_IT+0x260>
  19549. {
  19550. /*Enable Half Transfer IT if corresponding Callback is set */
  19551. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  19552. 80085a8: 68fb ldr r3, [r7, #12]
  19553. 80085aa: 681b ldr r3, [r3, #0]
  19554. 80085ac: 681a ldr r2, [r3, #0]
  19555. 80085ae: 68fb ldr r3, [r7, #12]
  19556. 80085b0: 681b ldr r3, [r3, #0]
  19557. 80085b2: f042 0204 orr.w r2, r2, #4
  19558. 80085b6: 601a str r2, [r3, #0]
  19559. }
  19560. }
  19561. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  19562. 80085b8: 68fb ldr r3, [r7, #12]
  19563. 80085ba: 681b ldr r3, [r3, #0]
  19564. 80085bc: 4a83 ldr r2, [pc, #524] @ (80087cc <HAL_DMA_Start_IT+0x474>)
  19565. 80085be: 4293 cmp r3, r2
  19566. 80085c0: d072 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19567. 80085c2: 68fb ldr r3, [r7, #12]
  19568. 80085c4: 681b ldr r3, [r3, #0]
  19569. 80085c6: 4a82 ldr r2, [pc, #520] @ (80087d0 <HAL_DMA_Start_IT+0x478>)
  19570. 80085c8: 4293 cmp r3, r2
  19571. 80085ca: d06d beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19572. 80085cc: 68fb ldr r3, [r7, #12]
  19573. 80085ce: 681b ldr r3, [r3, #0]
  19574. 80085d0: 4a80 ldr r2, [pc, #512] @ (80087d4 <HAL_DMA_Start_IT+0x47c>)
  19575. 80085d2: 4293 cmp r3, r2
  19576. 80085d4: d068 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19577. 80085d6: 68fb ldr r3, [r7, #12]
  19578. 80085d8: 681b ldr r3, [r3, #0]
  19579. 80085da: 4a7f ldr r2, [pc, #508] @ (80087d8 <HAL_DMA_Start_IT+0x480>)
  19580. 80085dc: 4293 cmp r3, r2
  19581. 80085de: d063 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19582. 80085e0: 68fb ldr r3, [r7, #12]
  19583. 80085e2: 681b ldr r3, [r3, #0]
  19584. 80085e4: 4a7d ldr r2, [pc, #500] @ (80087dc <HAL_DMA_Start_IT+0x484>)
  19585. 80085e6: 4293 cmp r3, r2
  19586. 80085e8: d05e beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19587. 80085ea: 68fb ldr r3, [r7, #12]
  19588. 80085ec: 681b ldr r3, [r3, #0]
  19589. 80085ee: 4a7c ldr r2, [pc, #496] @ (80087e0 <HAL_DMA_Start_IT+0x488>)
  19590. 80085f0: 4293 cmp r3, r2
  19591. 80085f2: d059 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19592. 80085f4: 68fb ldr r3, [r7, #12]
  19593. 80085f6: 681b ldr r3, [r3, #0]
  19594. 80085f8: 4a7a ldr r2, [pc, #488] @ (80087e4 <HAL_DMA_Start_IT+0x48c>)
  19595. 80085fa: 4293 cmp r3, r2
  19596. 80085fc: d054 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19597. 80085fe: 68fb ldr r3, [r7, #12]
  19598. 8008600: 681b ldr r3, [r3, #0]
  19599. 8008602: 4a79 ldr r2, [pc, #484] @ (80087e8 <HAL_DMA_Start_IT+0x490>)
  19600. 8008604: 4293 cmp r3, r2
  19601. 8008606: d04f beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19602. 8008608: 68fb ldr r3, [r7, #12]
  19603. 800860a: 681b ldr r3, [r3, #0]
  19604. 800860c: 4a77 ldr r2, [pc, #476] @ (80087ec <HAL_DMA_Start_IT+0x494>)
  19605. 800860e: 4293 cmp r3, r2
  19606. 8008610: d04a beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19607. 8008612: 68fb ldr r3, [r7, #12]
  19608. 8008614: 681b ldr r3, [r3, #0]
  19609. 8008616: 4a76 ldr r2, [pc, #472] @ (80087f0 <HAL_DMA_Start_IT+0x498>)
  19610. 8008618: 4293 cmp r3, r2
  19611. 800861a: d045 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19612. 800861c: 68fb ldr r3, [r7, #12]
  19613. 800861e: 681b ldr r3, [r3, #0]
  19614. 8008620: 4a74 ldr r2, [pc, #464] @ (80087f4 <HAL_DMA_Start_IT+0x49c>)
  19615. 8008622: 4293 cmp r3, r2
  19616. 8008624: d040 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19617. 8008626: 68fb ldr r3, [r7, #12]
  19618. 8008628: 681b ldr r3, [r3, #0]
  19619. 800862a: 4a73 ldr r2, [pc, #460] @ (80087f8 <HAL_DMA_Start_IT+0x4a0>)
  19620. 800862c: 4293 cmp r3, r2
  19621. 800862e: d03b beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19622. 8008630: 68fb ldr r3, [r7, #12]
  19623. 8008632: 681b ldr r3, [r3, #0]
  19624. 8008634: 4a71 ldr r2, [pc, #452] @ (80087fc <HAL_DMA_Start_IT+0x4a4>)
  19625. 8008636: 4293 cmp r3, r2
  19626. 8008638: d036 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19627. 800863a: 68fb ldr r3, [r7, #12]
  19628. 800863c: 681b ldr r3, [r3, #0]
  19629. 800863e: 4a70 ldr r2, [pc, #448] @ (8008800 <HAL_DMA_Start_IT+0x4a8>)
  19630. 8008640: 4293 cmp r3, r2
  19631. 8008642: d031 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19632. 8008644: 68fb ldr r3, [r7, #12]
  19633. 8008646: 681b ldr r3, [r3, #0]
  19634. 8008648: 4a6e ldr r2, [pc, #440] @ (8008804 <HAL_DMA_Start_IT+0x4ac>)
  19635. 800864a: 4293 cmp r3, r2
  19636. 800864c: d02c beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19637. 800864e: 68fb ldr r3, [r7, #12]
  19638. 8008650: 681b ldr r3, [r3, #0]
  19639. 8008652: 4a6d ldr r2, [pc, #436] @ (8008808 <HAL_DMA_Start_IT+0x4b0>)
  19640. 8008654: 4293 cmp r3, r2
  19641. 8008656: d027 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19642. 8008658: 68fb ldr r3, [r7, #12]
  19643. 800865a: 681b ldr r3, [r3, #0]
  19644. 800865c: 4a6b ldr r2, [pc, #428] @ (800880c <HAL_DMA_Start_IT+0x4b4>)
  19645. 800865e: 4293 cmp r3, r2
  19646. 8008660: d022 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19647. 8008662: 68fb ldr r3, [r7, #12]
  19648. 8008664: 681b ldr r3, [r3, #0]
  19649. 8008666: 4a6a ldr r2, [pc, #424] @ (8008810 <HAL_DMA_Start_IT+0x4b8>)
  19650. 8008668: 4293 cmp r3, r2
  19651. 800866a: d01d beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19652. 800866c: 68fb ldr r3, [r7, #12]
  19653. 800866e: 681b ldr r3, [r3, #0]
  19654. 8008670: 4a68 ldr r2, [pc, #416] @ (8008814 <HAL_DMA_Start_IT+0x4bc>)
  19655. 8008672: 4293 cmp r3, r2
  19656. 8008674: d018 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19657. 8008676: 68fb ldr r3, [r7, #12]
  19658. 8008678: 681b ldr r3, [r3, #0]
  19659. 800867a: 4a67 ldr r2, [pc, #412] @ (8008818 <HAL_DMA_Start_IT+0x4c0>)
  19660. 800867c: 4293 cmp r3, r2
  19661. 800867e: d013 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19662. 8008680: 68fb ldr r3, [r7, #12]
  19663. 8008682: 681b ldr r3, [r3, #0]
  19664. 8008684: 4a65 ldr r2, [pc, #404] @ (800881c <HAL_DMA_Start_IT+0x4c4>)
  19665. 8008686: 4293 cmp r3, r2
  19666. 8008688: d00e beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19667. 800868a: 68fb ldr r3, [r7, #12]
  19668. 800868c: 681b ldr r3, [r3, #0]
  19669. 800868e: 4a64 ldr r2, [pc, #400] @ (8008820 <HAL_DMA_Start_IT+0x4c8>)
  19670. 8008690: 4293 cmp r3, r2
  19671. 8008692: d009 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19672. 8008694: 68fb ldr r3, [r7, #12]
  19673. 8008696: 681b ldr r3, [r3, #0]
  19674. 8008698: 4a62 ldr r2, [pc, #392] @ (8008824 <HAL_DMA_Start_IT+0x4cc>)
  19675. 800869a: 4293 cmp r3, r2
  19676. 800869c: d004 beq.n 80086a8 <HAL_DMA_Start_IT+0x350>
  19677. 800869e: 68fb ldr r3, [r7, #12]
  19678. 80086a0: 681b ldr r3, [r3, #0]
  19679. 80086a2: 4a61 ldr r2, [pc, #388] @ (8008828 <HAL_DMA_Start_IT+0x4d0>)
  19680. 80086a4: 4293 cmp r3, r2
  19681. 80086a6: d101 bne.n 80086ac <HAL_DMA_Start_IT+0x354>
  19682. 80086a8: 2301 movs r3, #1
  19683. 80086aa: e000 b.n 80086ae <HAL_DMA_Start_IT+0x356>
  19684. 80086ac: 2300 movs r3, #0
  19685. 80086ae: 2b00 cmp r3, #0
  19686. 80086b0: d01a beq.n 80086e8 <HAL_DMA_Start_IT+0x390>
  19687. {
  19688. /* Check if DMAMUX Synchronization is enabled */
  19689. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  19690. 80086b2: 68fb ldr r3, [r7, #12]
  19691. 80086b4: 6e1b ldr r3, [r3, #96] @ 0x60
  19692. 80086b6: 681b ldr r3, [r3, #0]
  19693. 80086b8: f403 3380 and.w r3, r3, #65536 @ 0x10000
  19694. 80086bc: 2b00 cmp r3, #0
  19695. 80086be: d007 beq.n 80086d0 <HAL_DMA_Start_IT+0x378>
  19696. {
  19697. /* Enable DMAMUX sync overrun IT*/
  19698. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  19699. 80086c0: 68fb ldr r3, [r7, #12]
  19700. 80086c2: 6e1b ldr r3, [r3, #96] @ 0x60
  19701. 80086c4: 681a ldr r2, [r3, #0]
  19702. 80086c6: 68fb ldr r3, [r7, #12]
  19703. 80086c8: 6e1b ldr r3, [r3, #96] @ 0x60
  19704. 80086ca: f442 7280 orr.w r2, r2, #256 @ 0x100
  19705. 80086ce: 601a str r2, [r3, #0]
  19706. }
  19707. if(hdma->DMAmuxRequestGen != 0U)
  19708. 80086d0: 68fb ldr r3, [r7, #12]
  19709. 80086d2: 6edb ldr r3, [r3, #108] @ 0x6c
  19710. 80086d4: 2b00 cmp r3, #0
  19711. 80086d6: d007 beq.n 80086e8 <HAL_DMA_Start_IT+0x390>
  19712. {
  19713. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  19714. /* enable the request gen overrun IT */
  19715. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  19716. 80086d8: 68fb ldr r3, [r7, #12]
  19717. 80086da: 6edb ldr r3, [r3, #108] @ 0x6c
  19718. 80086dc: 681a ldr r2, [r3, #0]
  19719. 80086de: 68fb ldr r3, [r7, #12]
  19720. 80086e0: 6edb ldr r3, [r3, #108] @ 0x6c
  19721. 80086e2: f442 7280 orr.w r2, r2, #256 @ 0x100
  19722. 80086e6: 601a str r2, [r3, #0]
  19723. }
  19724. }
  19725. /* Enable the Peripheral */
  19726. __HAL_DMA_ENABLE(hdma);
  19727. 80086e8: 68fb ldr r3, [r7, #12]
  19728. 80086ea: 681b ldr r3, [r3, #0]
  19729. 80086ec: 4a37 ldr r2, [pc, #220] @ (80087cc <HAL_DMA_Start_IT+0x474>)
  19730. 80086ee: 4293 cmp r3, r2
  19731. 80086f0: d04a beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19732. 80086f2: 68fb ldr r3, [r7, #12]
  19733. 80086f4: 681b ldr r3, [r3, #0]
  19734. 80086f6: 4a36 ldr r2, [pc, #216] @ (80087d0 <HAL_DMA_Start_IT+0x478>)
  19735. 80086f8: 4293 cmp r3, r2
  19736. 80086fa: d045 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19737. 80086fc: 68fb ldr r3, [r7, #12]
  19738. 80086fe: 681b ldr r3, [r3, #0]
  19739. 8008700: 4a34 ldr r2, [pc, #208] @ (80087d4 <HAL_DMA_Start_IT+0x47c>)
  19740. 8008702: 4293 cmp r3, r2
  19741. 8008704: d040 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19742. 8008706: 68fb ldr r3, [r7, #12]
  19743. 8008708: 681b ldr r3, [r3, #0]
  19744. 800870a: 4a33 ldr r2, [pc, #204] @ (80087d8 <HAL_DMA_Start_IT+0x480>)
  19745. 800870c: 4293 cmp r3, r2
  19746. 800870e: d03b beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19747. 8008710: 68fb ldr r3, [r7, #12]
  19748. 8008712: 681b ldr r3, [r3, #0]
  19749. 8008714: 4a31 ldr r2, [pc, #196] @ (80087dc <HAL_DMA_Start_IT+0x484>)
  19750. 8008716: 4293 cmp r3, r2
  19751. 8008718: d036 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19752. 800871a: 68fb ldr r3, [r7, #12]
  19753. 800871c: 681b ldr r3, [r3, #0]
  19754. 800871e: 4a30 ldr r2, [pc, #192] @ (80087e0 <HAL_DMA_Start_IT+0x488>)
  19755. 8008720: 4293 cmp r3, r2
  19756. 8008722: d031 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19757. 8008724: 68fb ldr r3, [r7, #12]
  19758. 8008726: 681b ldr r3, [r3, #0]
  19759. 8008728: 4a2e ldr r2, [pc, #184] @ (80087e4 <HAL_DMA_Start_IT+0x48c>)
  19760. 800872a: 4293 cmp r3, r2
  19761. 800872c: d02c beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19762. 800872e: 68fb ldr r3, [r7, #12]
  19763. 8008730: 681b ldr r3, [r3, #0]
  19764. 8008732: 4a2d ldr r2, [pc, #180] @ (80087e8 <HAL_DMA_Start_IT+0x490>)
  19765. 8008734: 4293 cmp r3, r2
  19766. 8008736: d027 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19767. 8008738: 68fb ldr r3, [r7, #12]
  19768. 800873a: 681b ldr r3, [r3, #0]
  19769. 800873c: 4a2b ldr r2, [pc, #172] @ (80087ec <HAL_DMA_Start_IT+0x494>)
  19770. 800873e: 4293 cmp r3, r2
  19771. 8008740: d022 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19772. 8008742: 68fb ldr r3, [r7, #12]
  19773. 8008744: 681b ldr r3, [r3, #0]
  19774. 8008746: 4a2a ldr r2, [pc, #168] @ (80087f0 <HAL_DMA_Start_IT+0x498>)
  19775. 8008748: 4293 cmp r3, r2
  19776. 800874a: d01d beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19777. 800874c: 68fb ldr r3, [r7, #12]
  19778. 800874e: 681b ldr r3, [r3, #0]
  19779. 8008750: 4a28 ldr r2, [pc, #160] @ (80087f4 <HAL_DMA_Start_IT+0x49c>)
  19780. 8008752: 4293 cmp r3, r2
  19781. 8008754: d018 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19782. 8008756: 68fb ldr r3, [r7, #12]
  19783. 8008758: 681b ldr r3, [r3, #0]
  19784. 800875a: 4a27 ldr r2, [pc, #156] @ (80087f8 <HAL_DMA_Start_IT+0x4a0>)
  19785. 800875c: 4293 cmp r3, r2
  19786. 800875e: d013 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19787. 8008760: 68fb ldr r3, [r7, #12]
  19788. 8008762: 681b ldr r3, [r3, #0]
  19789. 8008764: 4a25 ldr r2, [pc, #148] @ (80087fc <HAL_DMA_Start_IT+0x4a4>)
  19790. 8008766: 4293 cmp r3, r2
  19791. 8008768: d00e beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19792. 800876a: 68fb ldr r3, [r7, #12]
  19793. 800876c: 681b ldr r3, [r3, #0]
  19794. 800876e: 4a24 ldr r2, [pc, #144] @ (8008800 <HAL_DMA_Start_IT+0x4a8>)
  19795. 8008770: 4293 cmp r3, r2
  19796. 8008772: d009 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19797. 8008774: 68fb ldr r3, [r7, #12]
  19798. 8008776: 681b ldr r3, [r3, #0]
  19799. 8008778: 4a22 ldr r2, [pc, #136] @ (8008804 <HAL_DMA_Start_IT+0x4ac>)
  19800. 800877a: 4293 cmp r3, r2
  19801. 800877c: d004 beq.n 8008788 <HAL_DMA_Start_IT+0x430>
  19802. 800877e: 68fb ldr r3, [r7, #12]
  19803. 8008780: 681b ldr r3, [r3, #0]
  19804. 8008782: 4a21 ldr r2, [pc, #132] @ (8008808 <HAL_DMA_Start_IT+0x4b0>)
  19805. 8008784: 4293 cmp r3, r2
  19806. 8008786: d108 bne.n 800879a <HAL_DMA_Start_IT+0x442>
  19807. 8008788: 68fb ldr r3, [r7, #12]
  19808. 800878a: 681b ldr r3, [r3, #0]
  19809. 800878c: 681a ldr r2, [r3, #0]
  19810. 800878e: 68fb ldr r3, [r7, #12]
  19811. 8008790: 681b ldr r3, [r3, #0]
  19812. 8008792: f042 0201 orr.w r2, r2, #1
  19813. 8008796: 601a str r2, [r3, #0]
  19814. 8008798: e012 b.n 80087c0 <HAL_DMA_Start_IT+0x468>
  19815. 800879a: 68fb ldr r3, [r7, #12]
  19816. 800879c: 681b ldr r3, [r3, #0]
  19817. 800879e: 681a ldr r2, [r3, #0]
  19818. 80087a0: 68fb ldr r3, [r7, #12]
  19819. 80087a2: 681b ldr r3, [r3, #0]
  19820. 80087a4: f042 0201 orr.w r2, r2, #1
  19821. 80087a8: 601a str r2, [r3, #0]
  19822. 80087aa: e009 b.n 80087c0 <HAL_DMA_Start_IT+0x468>
  19823. }
  19824. else
  19825. {
  19826. /* Set the error code to busy */
  19827. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  19828. 80087ac: 68fb ldr r3, [r7, #12]
  19829. 80087ae: f44f 6200 mov.w r2, #2048 @ 0x800
  19830. 80087b2: 655a str r2, [r3, #84] @ 0x54
  19831. /* Process unlocked */
  19832. __HAL_UNLOCK(hdma);
  19833. 80087b4: 68fb ldr r3, [r7, #12]
  19834. 80087b6: 2200 movs r2, #0
  19835. 80087b8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19836. /* Return error status */
  19837. status = HAL_ERROR;
  19838. 80087bc: 2301 movs r3, #1
  19839. 80087be: 75fb strb r3, [r7, #23]
  19840. }
  19841. return status;
  19842. 80087c0: 7dfb ldrb r3, [r7, #23]
  19843. }
  19844. 80087c2: 4618 mov r0, r3
  19845. 80087c4: 3718 adds r7, #24
  19846. 80087c6: 46bd mov sp, r7
  19847. 80087c8: bd80 pop {r7, pc}
  19848. 80087ca: bf00 nop
  19849. 80087cc: 40020010 .word 0x40020010
  19850. 80087d0: 40020028 .word 0x40020028
  19851. 80087d4: 40020040 .word 0x40020040
  19852. 80087d8: 40020058 .word 0x40020058
  19853. 80087dc: 40020070 .word 0x40020070
  19854. 80087e0: 40020088 .word 0x40020088
  19855. 80087e4: 400200a0 .word 0x400200a0
  19856. 80087e8: 400200b8 .word 0x400200b8
  19857. 80087ec: 40020410 .word 0x40020410
  19858. 80087f0: 40020428 .word 0x40020428
  19859. 80087f4: 40020440 .word 0x40020440
  19860. 80087f8: 40020458 .word 0x40020458
  19861. 80087fc: 40020470 .word 0x40020470
  19862. 8008800: 40020488 .word 0x40020488
  19863. 8008804: 400204a0 .word 0x400204a0
  19864. 8008808: 400204b8 .word 0x400204b8
  19865. 800880c: 58025408 .word 0x58025408
  19866. 8008810: 5802541c .word 0x5802541c
  19867. 8008814: 58025430 .word 0x58025430
  19868. 8008818: 58025444 .word 0x58025444
  19869. 800881c: 58025458 .word 0x58025458
  19870. 8008820: 5802546c .word 0x5802546c
  19871. 8008824: 58025480 .word 0x58025480
  19872. 8008828: 58025494 .word 0x58025494
  19873. 0800882c <HAL_DMA_Abort>:
  19874. * and the Stream will be effectively disabled only after the transfer of
  19875. * this single data is finished.
  19876. * @retval HAL status
  19877. */
  19878. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  19879. {
  19880. 800882c: b580 push {r7, lr}
  19881. 800882e: b086 sub sp, #24
  19882. 8008830: af00 add r7, sp, #0
  19883. 8008832: 6078 str r0, [r7, #4]
  19884. /* calculate DMA base and stream number */
  19885. DMA_Base_Registers *regs_dma;
  19886. BDMA_Base_Registers *regs_bdma;
  19887. const __IO uint32_t *enableRegister;
  19888. uint32_t tickstart = HAL_GetTick();
  19889. 8008834: f7fc fe98 bl 8005568 <HAL_GetTick>
  19890. 8008838: 6138 str r0, [r7, #16]
  19891. /* Check the DMA peripheral handle */
  19892. if(hdma == NULL)
  19893. 800883a: 687b ldr r3, [r7, #4]
  19894. 800883c: 2b00 cmp r3, #0
  19895. 800883e: d101 bne.n 8008844 <HAL_DMA_Abort+0x18>
  19896. {
  19897. return HAL_ERROR;
  19898. 8008840: 2301 movs r3, #1
  19899. 8008842: e2dc b.n 8008dfe <HAL_DMA_Abort+0x5d2>
  19900. }
  19901. /* Check the DMA peripheral state */
  19902. if(hdma->State != HAL_DMA_STATE_BUSY)
  19903. 8008844: 687b ldr r3, [r7, #4]
  19904. 8008846: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  19905. 800884a: b2db uxtb r3, r3
  19906. 800884c: 2b02 cmp r3, #2
  19907. 800884e: d008 beq.n 8008862 <HAL_DMA_Abort+0x36>
  19908. {
  19909. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  19910. 8008850: 687b ldr r3, [r7, #4]
  19911. 8008852: 2280 movs r2, #128 @ 0x80
  19912. 8008854: 655a str r2, [r3, #84] @ 0x54
  19913. /* Process Unlocked */
  19914. __HAL_UNLOCK(hdma);
  19915. 8008856: 687b ldr r3, [r7, #4]
  19916. 8008858: 2200 movs r2, #0
  19917. 800885a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19918. return HAL_ERROR;
  19919. 800885e: 2301 movs r3, #1
  19920. 8008860: e2cd b.n 8008dfe <HAL_DMA_Abort+0x5d2>
  19921. }
  19922. else
  19923. {
  19924. /* Disable all the transfer interrupts */
  19925. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19926. 8008862: 687b ldr r3, [r7, #4]
  19927. 8008864: 681b ldr r3, [r3, #0]
  19928. 8008866: 4a76 ldr r2, [pc, #472] @ (8008a40 <HAL_DMA_Abort+0x214>)
  19929. 8008868: 4293 cmp r3, r2
  19930. 800886a: d04a beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19931. 800886c: 687b ldr r3, [r7, #4]
  19932. 800886e: 681b ldr r3, [r3, #0]
  19933. 8008870: 4a74 ldr r2, [pc, #464] @ (8008a44 <HAL_DMA_Abort+0x218>)
  19934. 8008872: 4293 cmp r3, r2
  19935. 8008874: d045 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19936. 8008876: 687b ldr r3, [r7, #4]
  19937. 8008878: 681b ldr r3, [r3, #0]
  19938. 800887a: 4a73 ldr r2, [pc, #460] @ (8008a48 <HAL_DMA_Abort+0x21c>)
  19939. 800887c: 4293 cmp r3, r2
  19940. 800887e: d040 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19941. 8008880: 687b ldr r3, [r7, #4]
  19942. 8008882: 681b ldr r3, [r3, #0]
  19943. 8008884: 4a71 ldr r2, [pc, #452] @ (8008a4c <HAL_DMA_Abort+0x220>)
  19944. 8008886: 4293 cmp r3, r2
  19945. 8008888: d03b beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19946. 800888a: 687b ldr r3, [r7, #4]
  19947. 800888c: 681b ldr r3, [r3, #0]
  19948. 800888e: 4a70 ldr r2, [pc, #448] @ (8008a50 <HAL_DMA_Abort+0x224>)
  19949. 8008890: 4293 cmp r3, r2
  19950. 8008892: d036 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19951. 8008894: 687b ldr r3, [r7, #4]
  19952. 8008896: 681b ldr r3, [r3, #0]
  19953. 8008898: 4a6e ldr r2, [pc, #440] @ (8008a54 <HAL_DMA_Abort+0x228>)
  19954. 800889a: 4293 cmp r3, r2
  19955. 800889c: d031 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19956. 800889e: 687b ldr r3, [r7, #4]
  19957. 80088a0: 681b ldr r3, [r3, #0]
  19958. 80088a2: 4a6d ldr r2, [pc, #436] @ (8008a58 <HAL_DMA_Abort+0x22c>)
  19959. 80088a4: 4293 cmp r3, r2
  19960. 80088a6: d02c beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19961. 80088a8: 687b ldr r3, [r7, #4]
  19962. 80088aa: 681b ldr r3, [r3, #0]
  19963. 80088ac: 4a6b ldr r2, [pc, #428] @ (8008a5c <HAL_DMA_Abort+0x230>)
  19964. 80088ae: 4293 cmp r3, r2
  19965. 80088b0: d027 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19966. 80088b2: 687b ldr r3, [r7, #4]
  19967. 80088b4: 681b ldr r3, [r3, #0]
  19968. 80088b6: 4a6a ldr r2, [pc, #424] @ (8008a60 <HAL_DMA_Abort+0x234>)
  19969. 80088b8: 4293 cmp r3, r2
  19970. 80088ba: d022 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19971. 80088bc: 687b ldr r3, [r7, #4]
  19972. 80088be: 681b ldr r3, [r3, #0]
  19973. 80088c0: 4a68 ldr r2, [pc, #416] @ (8008a64 <HAL_DMA_Abort+0x238>)
  19974. 80088c2: 4293 cmp r3, r2
  19975. 80088c4: d01d beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19976. 80088c6: 687b ldr r3, [r7, #4]
  19977. 80088c8: 681b ldr r3, [r3, #0]
  19978. 80088ca: 4a67 ldr r2, [pc, #412] @ (8008a68 <HAL_DMA_Abort+0x23c>)
  19979. 80088cc: 4293 cmp r3, r2
  19980. 80088ce: d018 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19981. 80088d0: 687b ldr r3, [r7, #4]
  19982. 80088d2: 681b ldr r3, [r3, #0]
  19983. 80088d4: 4a65 ldr r2, [pc, #404] @ (8008a6c <HAL_DMA_Abort+0x240>)
  19984. 80088d6: 4293 cmp r3, r2
  19985. 80088d8: d013 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19986. 80088da: 687b ldr r3, [r7, #4]
  19987. 80088dc: 681b ldr r3, [r3, #0]
  19988. 80088de: 4a64 ldr r2, [pc, #400] @ (8008a70 <HAL_DMA_Abort+0x244>)
  19989. 80088e0: 4293 cmp r3, r2
  19990. 80088e2: d00e beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19991. 80088e4: 687b ldr r3, [r7, #4]
  19992. 80088e6: 681b ldr r3, [r3, #0]
  19993. 80088e8: 4a62 ldr r2, [pc, #392] @ (8008a74 <HAL_DMA_Abort+0x248>)
  19994. 80088ea: 4293 cmp r3, r2
  19995. 80088ec: d009 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  19996. 80088ee: 687b ldr r3, [r7, #4]
  19997. 80088f0: 681b ldr r3, [r3, #0]
  19998. 80088f2: 4a61 ldr r2, [pc, #388] @ (8008a78 <HAL_DMA_Abort+0x24c>)
  19999. 80088f4: 4293 cmp r3, r2
  20000. 80088f6: d004 beq.n 8008902 <HAL_DMA_Abort+0xd6>
  20001. 80088f8: 687b ldr r3, [r7, #4]
  20002. 80088fa: 681b ldr r3, [r3, #0]
  20003. 80088fc: 4a5f ldr r2, [pc, #380] @ (8008a7c <HAL_DMA_Abort+0x250>)
  20004. 80088fe: 4293 cmp r3, r2
  20005. 8008900: d101 bne.n 8008906 <HAL_DMA_Abort+0xda>
  20006. 8008902: 2301 movs r3, #1
  20007. 8008904: e000 b.n 8008908 <HAL_DMA_Abort+0xdc>
  20008. 8008906: 2300 movs r3, #0
  20009. 8008908: 2b00 cmp r3, #0
  20010. 800890a: d013 beq.n 8008934 <HAL_DMA_Abort+0x108>
  20011. {
  20012. /* Disable DMA All Interrupts */
  20013. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  20014. 800890c: 687b ldr r3, [r7, #4]
  20015. 800890e: 681b ldr r3, [r3, #0]
  20016. 8008910: 681a ldr r2, [r3, #0]
  20017. 8008912: 687b ldr r3, [r7, #4]
  20018. 8008914: 681b ldr r3, [r3, #0]
  20019. 8008916: f022 021e bic.w r2, r2, #30
  20020. 800891a: 601a str r2, [r3, #0]
  20021. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  20022. 800891c: 687b ldr r3, [r7, #4]
  20023. 800891e: 681b ldr r3, [r3, #0]
  20024. 8008920: 695a ldr r2, [r3, #20]
  20025. 8008922: 687b ldr r3, [r7, #4]
  20026. 8008924: 681b ldr r3, [r3, #0]
  20027. 8008926: f022 0280 bic.w r2, r2, #128 @ 0x80
  20028. 800892a: 615a str r2, [r3, #20]
  20029. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  20030. 800892c: 687b ldr r3, [r7, #4]
  20031. 800892e: 681b ldr r3, [r3, #0]
  20032. 8008930: 617b str r3, [r7, #20]
  20033. 8008932: e00a b.n 800894a <HAL_DMA_Abort+0x11e>
  20034. }
  20035. else /* BDMA channel */
  20036. {
  20037. /* Disable DMA All Interrupts */
  20038. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  20039. 8008934: 687b ldr r3, [r7, #4]
  20040. 8008936: 681b ldr r3, [r3, #0]
  20041. 8008938: 681a ldr r2, [r3, #0]
  20042. 800893a: 687b ldr r3, [r7, #4]
  20043. 800893c: 681b ldr r3, [r3, #0]
  20044. 800893e: f022 020e bic.w r2, r2, #14
  20045. 8008942: 601a str r2, [r3, #0]
  20046. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  20047. 8008944: 687b ldr r3, [r7, #4]
  20048. 8008946: 681b ldr r3, [r3, #0]
  20049. 8008948: 617b str r3, [r7, #20]
  20050. }
  20051. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20052. 800894a: 687b ldr r3, [r7, #4]
  20053. 800894c: 681b ldr r3, [r3, #0]
  20054. 800894e: 4a3c ldr r2, [pc, #240] @ (8008a40 <HAL_DMA_Abort+0x214>)
  20055. 8008950: 4293 cmp r3, r2
  20056. 8008952: d072 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20057. 8008954: 687b ldr r3, [r7, #4]
  20058. 8008956: 681b ldr r3, [r3, #0]
  20059. 8008958: 4a3a ldr r2, [pc, #232] @ (8008a44 <HAL_DMA_Abort+0x218>)
  20060. 800895a: 4293 cmp r3, r2
  20061. 800895c: d06d beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20062. 800895e: 687b ldr r3, [r7, #4]
  20063. 8008960: 681b ldr r3, [r3, #0]
  20064. 8008962: 4a39 ldr r2, [pc, #228] @ (8008a48 <HAL_DMA_Abort+0x21c>)
  20065. 8008964: 4293 cmp r3, r2
  20066. 8008966: d068 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20067. 8008968: 687b ldr r3, [r7, #4]
  20068. 800896a: 681b ldr r3, [r3, #0]
  20069. 800896c: 4a37 ldr r2, [pc, #220] @ (8008a4c <HAL_DMA_Abort+0x220>)
  20070. 800896e: 4293 cmp r3, r2
  20071. 8008970: d063 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20072. 8008972: 687b ldr r3, [r7, #4]
  20073. 8008974: 681b ldr r3, [r3, #0]
  20074. 8008976: 4a36 ldr r2, [pc, #216] @ (8008a50 <HAL_DMA_Abort+0x224>)
  20075. 8008978: 4293 cmp r3, r2
  20076. 800897a: d05e beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20077. 800897c: 687b ldr r3, [r7, #4]
  20078. 800897e: 681b ldr r3, [r3, #0]
  20079. 8008980: 4a34 ldr r2, [pc, #208] @ (8008a54 <HAL_DMA_Abort+0x228>)
  20080. 8008982: 4293 cmp r3, r2
  20081. 8008984: d059 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20082. 8008986: 687b ldr r3, [r7, #4]
  20083. 8008988: 681b ldr r3, [r3, #0]
  20084. 800898a: 4a33 ldr r2, [pc, #204] @ (8008a58 <HAL_DMA_Abort+0x22c>)
  20085. 800898c: 4293 cmp r3, r2
  20086. 800898e: d054 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20087. 8008990: 687b ldr r3, [r7, #4]
  20088. 8008992: 681b ldr r3, [r3, #0]
  20089. 8008994: 4a31 ldr r2, [pc, #196] @ (8008a5c <HAL_DMA_Abort+0x230>)
  20090. 8008996: 4293 cmp r3, r2
  20091. 8008998: d04f beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20092. 800899a: 687b ldr r3, [r7, #4]
  20093. 800899c: 681b ldr r3, [r3, #0]
  20094. 800899e: 4a30 ldr r2, [pc, #192] @ (8008a60 <HAL_DMA_Abort+0x234>)
  20095. 80089a0: 4293 cmp r3, r2
  20096. 80089a2: d04a beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20097. 80089a4: 687b ldr r3, [r7, #4]
  20098. 80089a6: 681b ldr r3, [r3, #0]
  20099. 80089a8: 4a2e ldr r2, [pc, #184] @ (8008a64 <HAL_DMA_Abort+0x238>)
  20100. 80089aa: 4293 cmp r3, r2
  20101. 80089ac: d045 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20102. 80089ae: 687b ldr r3, [r7, #4]
  20103. 80089b0: 681b ldr r3, [r3, #0]
  20104. 80089b2: 4a2d ldr r2, [pc, #180] @ (8008a68 <HAL_DMA_Abort+0x23c>)
  20105. 80089b4: 4293 cmp r3, r2
  20106. 80089b6: d040 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20107. 80089b8: 687b ldr r3, [r7, #4]
  20108. 80089ba: 681b ldr r3, [r3, #0]
  20109. 80089bc: 4a2b ldr r2, [pc, #172] @ (8008a6c <HAL_DMA_Abort+0x240>)
  20110. 80089be: 4293 cmp r3, r2
  20111. 80089c0: d03b beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20112. 80089c2: 687b ldr r3, [r7, #4]
  20113. 80089c4: 681b ldr r3, [r3, #0]
  20114. 80089c6: 4a2a ldr r2, [pc, #168] @ (8008a70 <HAL_DMA_Abort+0x244>)
  20115. 80089c8: 4293 cmp r3, r2
  20116. 80089ca: d036 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20117. 80089cc: 687b ldr r3, [r7, #4]
  20118. 80089ce: 681b ldr r3, [r3, #0]
  20119. 80089d0: 4a28 ldr r2, [pc, #160] @ (8008a74 <HAL_DMA_Abort+0x248>)
  20120. 80089d2: 4293 cmp r3, r2
  20121. 80089d4: d031 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20122. 80089d6: 687b ldr r3, [r7, #4]
  20123. 80089d8: 681b ldr r3, [r3, #0]
  20124. 80089da: 4a27 ldr r2, [pc, #156] @ (8008a78 <HAL_DMA_Abort+0x24c>)
  20125. 80089dc: 4293 cmp r3, r2
  20126. 80089de: d02c beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20127. 80089e0: 687b ldr r3, [r7, #4]
  20128. 80089e2: 681b ldr r3, [r3, #0]
  20129. 80089e4: 4a25 ldr r2, [pc, #148] @ (8008a7c <HAL_DMA_Abort+0x250>)
  20130. 80089e6: 4293 cmp r3, r2
  20131. 80089e8: d027 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20132. 80089ea: 687b ldr r3, [r7, #4]
  20133. 80089ec: 681b ldr r3, [r3, #0]
  20134. 80089ee: 4a24 ldr r2, [pc, #144] @ (8008a80 <HAL_DMA_Abort+0x254>)
  20135. 80089f0: 4293 cmp r3, r2
  20136. 80089f2: d022 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20137. 80089f4: 687b ldr r3, [r7, #4]
  20138. 80089f6: 681b ldr r3, [r3, #0]
  20139. 80089f8: 4a22 ldr r2, [pc, #136] @ (8008a84 <HAL_DMA_Abort+0x258>)
  20140. 80089fa: 4293 cmp r3, r2
  20141. 80089fc: d01d beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20142. 80089fe: 687b ldr r3, [r7, #4]
  20143. 8008a00: 681b ldr r3, [r3, #0]
  20144. 8008a02: 4a21 ldr r2, [pc, #132] @ (8008a88 <HAL_DMA_Abort+0x25c>)
  20145. 8008a04: 4293 cmp r3, r2
  20146. 8008a06: d018 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20147. 8008a08: 687b ldr r3, [r7, #4]
  20148. 8008a0a: 681b ldr r3, [r3, #0]
  20149. 8008a0c: 4a1f ldr r2, [pc, #124] @ (8008a8c <HAL_DMA_Abort+0x260>)
  20150. 8008a0e: 4293 cmp r3, r2
  20151. 8008a10: d013 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20152. 8008a12: 687b ldr r3, [r7, #4]
  20153. 8008a14: 681b ldr r3, [r3, #0]
  20154. 8008a16: 4a1e ldr r2, [pc, #120] @ (8008a90 <HAL_DMA_Abort+0x264>)
  20155. 8008a18: 4293 cmp r3, r2
  20156. 8008a1a: d00e beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20157. 8008a1c: 687b ldr r3, [r7, #4]
  20158. 8008a1e: 681b ldr r3, [r3, #0]
  20159. 8008a20: 4a1c ldr r2, [pc, #112] @ (8008a94 <HAL_DMA_Abort+0x268>)
  20160. 8008a22: 4293 cmp r3, r2
  20161. 8008a24: d009 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20162. 8008a26: 687b ldr r3, [r7, #4]
  20163. 8008a28: 681b ldr r3, [r3, #0]
  20164. 8008a2a: 4a1b ldr r2, [pc, #108] @ (8008a98 <HAL_DMA_Abort+0x26c>)
  20165. 8008a2c: 4293 cmp r3, r2
  20166. 8008a2e: d004 beq.n 8008a3a <HAL_DMA_Abort+0x20e>
  20167. 8008a30: 687b ldr r3, [r7, #4]
  20168. 8008a32: 681b ldr r3, [r3, #0]
  20169. 8008a34: 4a19 ldr r2, [pc, #100] @ (8008a9c <HAL_DMA_Abort+0x270>)
  20170. 8008a36: 4293 cmp r3, r2
  20171. 8008a38: d132 bne.n 8008aa0 <HAL_DMA_Abort+0x274>
  20172. 8008a3a: 2301 movs r3, #1
  20173. 8008a3c: e031 b.n 8008aa2 <HAL_DMA_Abort+0x276>
  20174. 8008a3e: bf00 nop
  20175. 8008a40: 40020010 .word 0x40020010
  20176. 8008a44: 40020028 .word 0x40020028
  20177. 8008a48: 40020040 .word 0x40020040
  20178. 8008a4c: 40020058 .word 0x40020058
  20179. 8008a50: 40020070 .word 0x40020070
  20180. 8008a54: 40020088 .word 0x40020088
  20181. 8008a58: 400200a0 .word 0x400200a0
  20182. 8008a5c: 400200b8 .word 0x400200b8
  20183. 8008a60: 40020410 .word 0x40020410
  20184. 8008a64: 40020428 .word 0x40020428
  20185. 8008a68: 40020440 .word 0x40020440
  20186. 8008a6c: 40020458 .word 0x40020458
  20187. 8008a70: 40020470 .word 0x40020470
  20188. 8008a74: 40020488 .word 0x40020488
  20189. 8008a78: 400204a0 .word 0x400204a0
  20190. 8008a7c: 400204b8 .word 0x400204b8
  20191. 8008a80: 58025408 .word 0x58025408
  20192. 8008a84: 5802541c .word 0x5802541c
  20193. 8008a88: 58025430 .word 0x58025430
  20194. 8008a8c: 58025444 .word 0x58025444
  20195. 8008a90: 58025458 .word 0x58025458
  20196. 8008a94: 5802546c .word 0x5802546c
  20197. 8008a98: 58025480 .word 0x58025480
  20198. 8008a9c: 58025494 .word 0x58025494
  20199. 8008aa0: 2300 movs r3, #0
  20200. 8008aa2: 2b00 cmp r3, #0
  20201. 8008aa4: d007 beq.n 8008ab6 <HAL_DMA_Abort+0x28a>
  20202. {
  20203. /* disable the DMAMUX sync overrun IT */
  20204. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  20205. 8008aa6: 687b ldr r3, [r7, #4]
  20206. 8008aa8: 6e1b ldr r3, [r3, #96] @ 0x60
  20207. 8008aaa: 681a ldr r2, [r3, #0]
  20208. 8008aac: 687b ldr r3, [r7, #4]
  20209. 8008aae: 6e1b ldr r3, [r3, #96] @ 0x60
  20210. 8008ab0: f422 7280 bic.w r2, r2, #256 @ 0x100
  20211. 8008ab4: 601a str r2, [r3, #0]
  20212. }
  20213. /* Disable the stream */
  20214. __HAL_DMA_DISABLE(hdma);
  20215. 8008ab6: 687b ldr r3, [r7, #4]
  20216. 8008ab8: 681b ldr r3, [r3, #0]
  20217. 8008aba: 4a6d ldr r2, [pc, #436] @ (8008c70 <HAL_DMA_Abort+0x444>)
  20218. 8008abc: 4293 cmp r3, r2
  20219. 8008abe: d04a beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20220. 8008ac0: 687b ldr r3, [r7, #4]
  20221. 8008ac2: 681b ldr r3, [r3, #0]
  20222. 8008ac4: 4a6b ldr r2, [pc, #428] @ (8008c74 <HAL_DMA_Abort+0x448>)
  20223. 8008ac6: 4293 cmp r3, r2
  20224. 8008ac8: d045 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20225. 8008aca: 687b ldr r3, [r7, #4]
  20226. 8008acc: 681b ldr r3, [r3, #0]
  20227. 8008ace: 4a6a ldr r2, [pc, #424] @ (8008c78 <HAL_DMA_Abort+0x44c>)
  20228. 8008ad0: 4293 cmp r3, r2
  20229. 8008ad2: d040 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20230. 8008ad4: 687b ldr r3, [r7, #4]
  20231. 8008ad6: 681b ldr r3, [r3, #0]
  20232. 8008ad8: 4a68 ldr r2, [pc, #416] @ (8008c7c <HAL_DMA_Abort+0x450>)
  20233. 8008ada: 4293 cmp r3, r2
  20234. 8008adc: d03b beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20235. 8008ade: 687b ldr r3, [r7, #4]
  20236. 8008ae0: 681b ldr r3, [r3, #0]
  20237. 8008ae2: 4a67 ldr r2, [pc, #412] @ (8008c80 <HAL_DMA_Abort+0x454>)
  20238. 8008ae4: 4293 cmp r3, r2
  20239. 8008ae6: d036 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20240. 8008ae8: 687b ldr r3, [r7, #4]
  20241. 8008aea: 681b ldr r3, [r3, #0]
  20242. 8008aec: 4a65 ldr r2, [pc, #404] @ (8008c84 <HAL_DMA_Abort+0x458>)
  20243. 8008aee: 4293 cmp r3, r2
  20244. 8008af0: d031 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20245. 8008af2: 687b ldr r3, [r7, #4]
  20246. 8008af4: 681b ldr r3, [r3, #0]
  20247. 8008af6: 4a64 ldr r2, [pc, #400] @ (8008c88 <HAL_DMA_Abort+0x45c>)
  20248. 8008af8: 4293 cmp r3, r2
  20249. 8008afa: d02c beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20250. 8008afc: 687b ldr r3, [r7, #4]
  20251. 8008afe: 681b ldr r3, [r3, #0]
  20252. 8008b00: 4a62 ldr r2, [pc, #392] @ (8008c8c <HAL_DMA_Abort+0x460>)
  20253. 8008b02: 4293 cmp r3, r2
  20254. 8008b04: d027 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20255. 8008b06: 687b ldr r3, [r7, #4]
  20256. 8008b08: 681b ldr r3, [r3, #0]
  20257. 8008b0a: 4a61 ldr r2, [pc, #388] @ (8008c90 <HAL_DMA_Abort+0x464>)
  20258. 8008b0c: 4293 cmp r3, r2
  20259. 8008b0e: d022 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20260. 8008b10: 687b ldr r3, [r7, #4]
  20261. 8008b12: 681b ldr r3, [r3, #0]
  20262. 8008b14: 4a5f ldr r2, [pc, #380] @ (8008c94 <HAL_DMA_Abort+0x468>)
  20263. 8008b16: 4293 cmp r3, r2
  20264. 8008b18: d01d beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20265. 8008b1a: 687b ldr r3, [r7, #4]
  20266. 8008b1c: 681b ldr r3, [r3, #0]
  20267. 8008b1e: 4a5e ldr r2, [pc, #376] @ (8008c98 <HAL_DMA_Abort+0x46c>)
  20268. 8008b20: 4293 cmp r3, r2
  20269. 8008b22: d018 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20270. 8008b24: 687b ldr r3, [r7, #4]
  20271. 8008b26: 681b ldr r3, [r3, #0]
  20272. 8008b28: 4a5c ldr r2, [pc, #368] @ (8008c9c <HAL_DMA_Abort+0x470>)
  20273. 8008b2a: 4293 cmp r3, r2
  20274. 8008b2c: d013 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20275. 8008b2e: 687b ldr r3, [r7, #4]
  20276. 8008b30: 681b ldr r3, [r3, #0]
  20277. 8008b32: 4a5b ldr r2, [pc, #364] @ (8008ca0 <HAL_DMA_Abort+0x474>)
  20278. 8008b34: 4293 cmp r3, r2
  20279. 8008b36: d00e beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20280. 8008b38: 687b ldr r3, [r7, #4]
  20281. 8008b3a: 681b ldr r3, [r3, #0]
  20282. 8008b3c: 4a59 ldr r2, [pc, #356] @ (8008ca4 <HAL_DMA_Abort+0x478>)
  20283. 8008b3e: 4293 cmp r3, r2
  20284. 8008b40: d009 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20285. 8008b42: 687b ldr r3, [r7, #4]
  20286. 8008b44: 681b ldr r3, [r3, #0]
  20287. 8008b46: 4a58 ldr r2, [pc, #352] @ (8008ca8 <HAL_DMA_Abort+0x47c>)
  20288. 8008b48: 4293 cmp r3, r2
  20289. 8008b4a: d004 beq.n 8008b56 <HAL_DMA_Abort+0x32a>
  20290. 8008b4c: 687b ldr r3, [r7, #4]
  20291. 8008b4e: 681b ldr r3, [r3, #0]
  20292. 8008b50: 4a56 ldr r2, [pc, #344] @ (8008cac <HAL_DMA_Abort+0x480>)
  20293. 8008b52: 4293 cmp r3, r2
  20294. 8008b54: d108 bne.n 8008b68 <HAL_DMA_Abort+0x33c>
  20295. 8008b56: 687b ldr r3, [r7, #4]
  20296. 8008b58: 681b ldr r3, [r3, #0]
  20297. 8008b5a: 681a ldr r2, [r3, #0]
  20298. 8008b5c: 687b ldr r3, [r7, #4]
  20299. 8008b5e: 681b ldr r3, [r3, #0]
  20300. 8008b60: f022 0201 bic.w r2, r2, #1
  20301. 8008b64: 601a str r2, [r3, #0]
  20302. 8008b66: e007 b.n 8008b78 <HAL_DMA_Abort+0x34c>
  20303. 8008b68: 687b ldr r3, [r7, #4]
  20304. 8008b6a: 681b ldr r3, [r3, #0]
  20305. 8008b6c: 681a ldr r2, [r3, #0]
  20306. 8008b6e: 687b ldr r3, [r7, #4]
  20307. 8008b70: 681b ldr r3, [r3, #0]
  20308. 8008b72: f022 0201 bic.w r2, r2, #1
  20309. 8008b76: 601a str r2, [r3, #0]
  20310. /* Check if the DMA Stream is effectively disabled */
  20311. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  20312. 8008b78: e013 b.n 8008ba2 <HAL_DMA_Abort+0x376>
  20313. {
  20314. /* Check for the Timeout */
  20315. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  20316. 8008b7a: f7fc fcf5 bl 8005568 <HAL_GetTick>
  20317. 8008b7e: 4602 mov r2, r0
  20318. 8008b80: 693b ldr r3, [r7, #16]
  20319. 8008b82: 1ad3 subs r3, r2, r3
  20320. 8008b84: 2b05 cmp r3, #5
  20321. 8008b86: d90c bls.n 8008ba2 <HAL_DMA_Abort+0x376>
  20322. {
  20323. /* Update error code */
  20324. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  20325. 8008b88: 687b ldr r3, [r7, #4]
  20326. 8008b8a: 2220 movs r2, #32
  20327. 8008b8c: 655a str r2, [r3, #84] @ 0x54
  20328. /* Change the DMA state */
  20329. hdma->State = HAL_DMA_STATE_ERROR;
  20330. 8008b8e: 687b ldr r3, [r7, #4]
  20331. 8008b90: 2203 movs r2, #3
  20332. 8008b92: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20333. /* Process Unlocked */
  20334. __HAL_UNLOCK(hdma);
  20335. 8008b96: 687b ldr r3, [r7, #4]
  20336. 8008b98: 2200 movs r2, #0
  20337. 8008b9a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20338. return HAL_ERROR;
  20339. 8008b9e: 2301 movs r3, #1
  20340. 8008ba0: e12d b.n 8008dfe <HAL_DMA_Abort+0x5d2>
  20341. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  20342. 8008ba2: 697b ldr r3, [r7, #20]
  20343. 8008ba4: 681b ldr r3, [r3, #0]
  20344. 8008ba6: f003 0301 and.w r3, r3, #1
  20345. 8008baa: 2b00 cmp r3, #0
  20346. 8008bac: d1e5 bne.n 8008b7a <HAL_DMA_Abort+0x34e>
  20347. }
  20348. }
  20349. /* Clear all interrupt flags at correct offset within the register */
  20350. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20351. 8008bae: 687b ldr r3, [r7, #4]
  20352. 8008bb0: 681b ldr r3, [r3, #0]
  20353. 8008bb2: 4a2f ldr r2, [pc, #188] @ (8008c70 <HAL_DMA_Abort+0x444>)
  20354. 8008bb4: 4293 cmp r3, r2
  20355. 8008bb6: d04a beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20356. 8008bb8: 687b ldr r3, [r7, #4]
  20357. 8008bba: 681b ldr r3, [r3, #0]
  20358. 8008bbc: 4a2d ldr r2, [pc, #180] @ (8008c74 <HAL_DMA_Abort+0x448>)
  20359. 8008bbe: 4293 cmp r3, r2
  20360. 8008bc0: d045 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20361. 8008bc2: 687b ldr r3, [r7, #4]
  20362. 8008bc4: 681b ldr r3, [r3, #0]
  20363. 8008bc6: 4a2c ldr r2, [pc, #176] @ (8008c78 <HAL_DMA_Abort+0x44c>)
  20364. 8008bc8: 4293 cmp r3, r2
  20365. 8008bca: d040 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20366. 8008bcc: 687b ldr r3, [r7, #4]
  20367. 8008bce: 681b ldr r3, [r3, #0]
  20368. 8008bd0: 4a2a ldr r2, [pc, #168] @ (8008c7c <HAL_DMA_Abort+0x450>)
  20369. 8008bd2: 4293 cmp r3, r2
  20370. 8008bd4: d03b beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20371. 8008bd6: 687b ldr r3, [r7, #4]
  20372. 8008bd8: 681b ldr r3, [r3, #0]
  20373. 8008bda: 4a29 ldr r2, [pc, #164] @ (8008c80 <HAL_DMA_Abort+0x454>)
  20374. 8008bdc: 4293 cmp r3, r2
  20375. 8008bde: d036 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20376. 8008be0: 687b ldr r3, [r7, #4]
  20377. 8008be2: 681b ldr r3, [r3, #0]
  20378. 8008be4: 4a27 ldr r2, [pc, #156] @ (8008c84 <HAL_DMA_Abort+0x458>)
  20379. 8008be6: 4293 cmp r3, r2
  20380. 8008be8: d031 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20381. 8008bea: 687b ldr r3, [r7, #4]
  20382. 8008bec: 681b ldr r3, [r3, #0]
  20383. 8008bee: 4a26 ldr r2, [pc, #152] @ (8008c88 <HAL_DMA_Abort+0x45c>)
  20384. 8008bf0: 4293 cmp r3, r2
  20385. 8008bf2: d02c beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20386. 8008bf4: 687b ldr r3, [r7, #4]
  20387. 8008bf6: 681b ldr r3, [r3, #0]
  20388. 8008bf8: 4a24 ldr r2, [pc, #144] @ (8008c8c <HAL_DMA_Abort+0x460>)
  20389. 8008bfa: 4293 cmp r3, r2
  20390. 8008bfc: d027 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20391. 8008bfe: 687b ldr r3, [r7, #4]
  20392. 8008c00: 681b ldr r3, [r3, #0]
  20393. 8008c02: 4a23 ldr r2, [pc, #140] @ (8008c90 <HAL_DMA_Abort+0x464>)
  20394. 8008c04: 4293 cmp r3, r2
  20395. 8008c06: d022 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20396. 8008c08: 687b ldr r3, [r7, #4]
  20397. 8008c0a: 681b ldr r3, [r3, #0]
  20398. 8008c0c: 4a21 ldr r2, [pc, #132] @ (8008c94 <HAL_DMA_Abort+0x468>)
  20399. 8008c0e: 4293 cmp r3, r2
  20400. 8008c10: d01d beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20401. 8008c12: 687b ldr r3, [r7, #4]
  20402. 8008c14: 681b ldr r3, [r3, #0]
  20403. 8008c16: 4a20 ldr r2, [pc, #128] @ (8008c98 <HAL_DMA_Abort+0x46c>)
  20404. 8008c18: 4293 cmp r3, r2
  20405. 8008c1a: d018 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20406. 8008c1c: 687b ldr r3, [r7, #4]
  20407. 8008c1e: 681b ldr r3, [r3, #0]
  20408. 8008c20: 4a1e ldr r2, [pc, #120] @ (8008c9c <HAL_DMA_Abort+0x470>)
  20409. 8008c22: 4293 cmp r3, r2
  20410. 8008c24: d013 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20411. 8008c26: 687b ldr r3, [r7, #4]
  20412. 8008c28: 681b ldr r3, [r3, #0]
  20413. 8008c2a: 4a1d ldr r2, [pc, #116] @ (8008ca0 <HAL_DMA_Abort+0x474>)
  20414. 8008c2c: 4293 cmp r3, r2
  20415. 8008c2e: d00e beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20416. 8008c30: 687b ldr r3, [r7, #4]
  20417. 8008c32: 681b ldr r3, [r3, #0]
  20418. 8008c34: 4a1b ldr r2, [pc, #108] @ (8008ca4 <HAL_DMA_Abort+0x478>)
  20419. 8008c36: 4293 cmp r3, r2
  20420. 8008c38: d009 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20421. 8008c3a: 687b ldr r3, [r7, #4]
  20422. 8008c3c: 681b ldr r3, [r3, #0]
  20423. 8008c3e: 4a1a ldr r2, [pc, #104] @ (8008ca8 <HAL_DMA_Abort+0x47c>)
  20424. 8008c40: 4293 cmp r3, r2
  20425. 8008c42: d004 beq.n 8008c4e <HAL_DMA_Abort+0x422>
  20426. 8008c44: 687b ldr r3, [r7, #4]
  20427. 8008c46: 681b ldr r3, [r3, #0]
  20428. 8008c48: 4a18 ldr r2, [pc, #96] @ (8008cac <HAL_DMA_Abort+0x480>)
  20429. 8008c4a: 4293 cmp r3, r2
  20430. 8008c4c: d101 bne.n 8008c52 <HAL_DMA_Abort+0x426>
  20431. 8008c4e: 2301 movs r3, #1
  20432. 8008c50: e000 b.n 8008c54 <HAL_DMA_Abort+0x428>
  20433. 8008c52: 2300 movs r3, #0
  20434. 8008c54: 2b00 cmp r3, #0
  20435. 8008c56: d02b beq.n 8008cb0 <HAL_DMA_Abort+0x484>
  20436. {
  20437. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  20438. 8008c58: 687b ldr r3, [r7, #4]
  20439. 8008c5a: 6d9b ldr r3, [r3, #88] @ 0x58
  20440. 8008c5c: 60bb str r3, [r7, #8]
  20441. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  20442. 8008c5e: 687b ldr r3, [r7, #4]
  20443. 8008c60: 6ddb ldr r3, [r3, #92] @ 0x5c
  20444. 8008c62: f003 031f and.w r3, r3, #31
  20445. 8008c66: 223f movs r2, #63 @ 0x3f
  20446. 8008c68: 409a lsls r2, r3
  20447. 8008c6a: 68bb ldr r3, [r7, #8]
  20448. 8008c6c: 609a str r2, [r3, #8]
  20449. 8008c6e: e02a b.n 8008cc6 <HAL_DMA_Abort+0x49a>
  20450. 8008c70: 40020010 .word 0x40020010
  20451. 8008c74: 40020028 .word 0x40020028
  20452. 8008c78: 40020040 .word 0x40020040
  20453. 8008c7c: 40020058 .word 0x40020058
  20454. 8008c80: 40020070 .word 0x40020070
  20455. 8008c84: 40020088 .word 0x40020088
  20456. 8008c88: 400200a0 .word 0x400200a0
  20457. 8008c8c: 400200b8 .word 0x400200b8
  20458. 8008c90: 40020410 .word 0x40020410
  20459. 8008c94: 40020428 .word 0x40020428
  20460. 8008c98: 40020440 .word 0x40020440
  20461. 8008c9c: 40020458 .word 0x40020458
  20462. 8008ca0: 40020470 .word 0x40020470
  20463. 8008ca4: 40020488 .word 0x40020488
  20464. 8008ca8: 400204a0 .word 0x400204a0
  20465. 8008cac: 400204b8 .word 0x400204b8
  20466. }
  20467. else /* BDMA channel */
  20468. {
  20469. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  20470. 8008cb0: 687b ldr r3, [r7, #4]
  20471. 8008cb2: 6d9b ldr r3, [r3, #88] @ 0x58
  20472. 8008cb4: 60fb str r3, [r7, #12]
  20473. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20474. 8008cb6: 687b ldr r3, [r7, #4]
  20475. 8008cb8: 6ddb ldr r3, [r3, #92] @ 0x5c
  20476. 8008cba: f003 031f and.w r3, r3, #31
  20477. 8008cbe: 2201 movs r2, #1
  20478. 8008cc0: 409a lsls r2, r3
  20479. 8008cc2: 68fb ldr r3, [r7, #12]
  20480. 8008cc4: 605a str r2, [r3, #4]
  20481. }
  20482. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20483. 8008cc6: 687b ldr r3, [r7, #4]
  20484. 8008cc8: 681b ldr r3, [r3, #0]
  20485. 8008cca: 4a4f ldr r2, [pc, #316] @ (8008e08 <HAL_DMA_Abort+0x5dc>)
  20486. 8008ccc: 4293 cmp r3, r2
  20487. 8008cce: d072 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20488. 8008cd0: 687b ldr r3, [r7, #4]
  20489. 8008cd2: 681b ldr r3, [r3, #0]
  20490. 8008cd4: 4a4d ldr r2, [pc, #308] @ (8008e0c <HAL_DMA_Abort+0x5e0>)
  20491. 8008cd6: 4293 cmp r3, r2
  20492. 8008cd8: d06d beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20493. 8008cda: 687b ldr r3, [r7, #4]
  20494. 8008cdc: 681b ldr r3, [r3, #0]
  20495. 8008cde: 4a4c ldr r2, [pc, #304] @ (8008e10 <HAL_DMA_Abort+0x5e4>)
  20496. 8008ce0: 4293 cmp r3, r2
  20497. 8008ce2: d068 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20498. 8008ce4: 687b ldr r3, [r7, #4]
  20499. 8008ce6: 681b ldr r3, [r3, #0]
  20500. 8008ce8: 4a4a ldr r2, [pc, #296] @ (8008e14 <HAL_DMA_Abort+0x5e8>)
  20501. 8008cea: 4293 cmp r3, r2
  20502. 8008cec: d063 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20503. 8008cee: 687b ldr r3, [r7, #4]
  20504. 8008cf0: 681b ldr r3, [r3, #0]
  20505. 8008cf2: 4a49 ldr r2, [pc, #292] @ (8008e18 <HAL_DMA_Abort+0x5ec>)
  20506. 8008cf4: 4293 cmp r3, r2
  20507. 8008cf6: d05e beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20508. 8008cf8: 687b ldr r3, [r7, #4]
  20509. 8008cfa: 681b ldr r3, [r3, #0]
  20510. 8008cfc: 4a47 ldr r2, [pc, #284] @ (8008e1c <HAL_DMA_Abort+0x5f0>)
  20511. 8008cfe: 4293 cmp r3, r2
  20512. 8008d00: d059 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20513. 8008d02: 687b ldr r3, [r7, #4]
  20514. 8008d04: 681b ldr r3, [r3, #0]
  20515. 8008d06: 4a46 ldr r2, [pc, #280] @ (8008e20 <HAL_DMA_Abort+0x5f4>)
  20516. 8008d08: 4293 cmp r3, r2
  20517. 8008d0a: d054 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20518. 8008d0c: 687b ldr r3, [r7, #4]
  20519. 8008d0e: 681b ldr r3, [r3, #0]
  20520. 8008d10: 4a44 ldr r2, [pc, #272] @ (8008e24 <HAL_DMA_Abort+0x5f8>)
  20521. 8008d12: 4293 cmp r3, r2
  20522. 8008d14: d04f beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20523. 8008d16: 687b ldr r3, [r7, #4]
  20524. 8008d18: 681b ldr r3, [r3, #0]
  20525. 8008d1a: 4a43 ldr r2, [pc, #268] @ (8008e28 <HAL_DMA_Abort+0x5fc>)
  20526. 8008d1c: 4293 cmp r3, r2
  20527. 8008d1e: d04a beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20528. 8008d20: 687b ldr r3, [r7, #4]
  20529. 8008d22: 681b ldr r3, [r3, #0]
  20530. 8008d24: 4a41 ldr r2, [pc, #260] @ (8008e2c <HAL_DMA_Abort+0x600>)
  20531. 8008d26: 4293 cmp r3, r2
  20532. 8008d28: d045 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20533. 8008d2a: 687b ldr r3, [r7, #4]
  20534. 8008d2c: 681b ldr r3, [r3, #0]
  20535. 8008d2e: 4a40 ldr r2, [pc, #256] @ (8008e30 <HAL_DMA_Abort+0x604>)
  20536. 8008d30: 4293 cmp r3, r2
  20537. 8008d32: d040 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20538. 8008d34: 687b ldr r3, [r7, #4]
  20539. 8008d36: 681b ldr r3, [r3, #0]
  20540. 8008d38: 4a3e ldr r2, [pc, #248] @ (8008e34 <HAL_DMA_Abort+0x608>)
  20541. 8008d3a: 4293 cmp r3, r2
  20542. 8008d3c: d03b beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20543. 8008d3e: 687b ldr r3, [r7, #4]
  20544. 8008d40: 681b ldr r3, [r3, #0]
  20545. 8008d42: 4a3d ldr r2, [pc, #244] @ (8008e38 <HAL_DMA_Abort+0x60c>)
  20546. 8008d44: 4293 cmp r3, r2
  20547. 8008d46: d036 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20548. 8008d48: 687b ldr r3, [r7, #4]
  20549. 8008d4a: 681b ldr r3, [r3, #0]
  20550. 8008d4c: 4a3b ldr r2, [pc, #236] @ (8008e3c <HAL_DMA_Abort+0x610>)
  20551. 8008d4e: 4293 cmp r3, r2
  20552. 8008d50: d031 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20553. 8008d52: 687b ldr r3, [r7, #4]
  20554. 8008d54: 681b ldr r3, [r3, #0]
  20555. 8008d56: 4a3a ldr r2, [pc, #232] @ (8008e40 <HAL_DMA_Abort+0x614>)
  20556. 8008d58: 4293 cmp r3, r2
  20557. 8008d5a: d02c beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20558. 8008d5c: 687b ldr r3, [r7, #4]
  20559. 8008d5e: 681b ldr r3, [r3, #0]
  20560. 8008d60: 4a38 ldr r2, [pc, #224] @ (8008e44 <HAL_DMA_Abort+0x618>)
  20561. 8008d62: 4293 cmp r3, r2
  20562. 8008d64: d027 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20563. 8008d66: 687b ldr r3, [r7, #4]
  20564. 8008d68: 681b ldr r3, [r3, #0]
  20565. 8008d6a: 4a37 ldr r2, [pc, #220] @ (8008e48 <HAL_DMA_Abort+0x61c>)
  20566. 8008d6c: 4293 cmp r3, r2
  20567. 8008d6e: d022 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20568. 8008d70: 687b ldr r3, [r7, #4]
  20569. 8008d72: 681b ldr r3, [r3, #0]
  20570. 8008d74: 4a35 ldr r2, [pc, #212] @ (8008e4c <HAL_DMA_Abort+0x620>)
  20571. 8008d76: 4293 cmp r3, r2
  20572. 8008d78: d01d beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20573. 8008d7a: 687b ldr r3, [r7, #4]
  20574. 8008d7c: 681b ldr r3, [r3, #0]
  20575. 8008d7e: 4a34 ldr r2, [pc, #208] @ (8008e50 <HAL_DMA_Abort+0x624>)
  20576. 8008d80: 4293 cmp r3, r2
  20577. 8008d82: d018 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20578. 8008d84: 687b ldr r3, [r7, #4]
  20579. 8008d86: 681b ldr r3, [r3, #0]
  20580. 8008d88: 4a32 ldr r2, [pc, #200] @ (8008e54 <HAL_DMA_Abort+0x628>)
  20581. 8008d8a: 4293 cmp r3, r2
  20582. 8008d8c: d013 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20583. 8008d8e: 687b ldr r3, [r7, #4]
  20584. 8008d90: 681b ldr r3, [r3, #0]
  20585. 8008d92: 4a31 ldr r2, [pc, #196] @ (8008e58 <HAL_DMA_Abort+0x62c>)
  20586. 8008d94: 4293 cmp r3, r2
  20587. 8008d96: d00e beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20588. 8008d98: 687b ldr r3, [r7, #4]
  20589. 8008d9a: 681b ldr r3, [r3, #0]
  20590. 8008d9c: 4a2f ldr r2, [pc, #188] @ (8008e5c <HAL_DMA_Abort+0x630>)
  20591. 8008d9e: 4293 cmp r3, r2
  20592. 8008da0: d009 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20593. 8008da2: 687b ldr r3, [r7, #4]
  20594. 8008da4: 681b ldr r3, [r3, #0]
  20595. 8008da6: 4a2e ldr r2, [pc, #184] @ (8008e60 <HAL_DMA_Abort+0x634>)
  20596. 8008da8: 4293 cmp r3, r2
  20597. 8008daa: d004 beq.n 8008db6 <HAL_DMA_Abort+0x58a>
  20598. 8008dac: 687b ldr r3, [r7, #4]
  20599. 8008dae: 681b ldr r3, [r3, #0]
  20600. 8008db0: 4a2c ldr r2, [pc, #176] @ (8008e64 <HAL_DMA_Abort+0x638>)
  20601. 8008db2: 4293 cmp r3, r2
  20602. 8008db4: d101 bne.n 8008dba <HAL_DMA_Abort+0x58e>
  20603. 8008db6: 2301 movs r3, #1
  20604. 8008db8: e000 b.n 8008dbc <HAL_DMA_Abort+0x590>
  20605. 8008dba: 2300 movs r3, #0
  20606. 8008dbc: 2b00 cmp r3, #0
  20607. 8008dbe: d015 beq.n 8008dec <HAL_DMA_Abort+0x5c0>
  20608. {
  20609. /* Clear the DMAMUX synchro overrun flag */
  20610. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20611. 8008dc0: 687b ldr r3, [r7, #4]
  20612. 8008dc2: 6e5b ldr r3, [r3, #100] @ 0x64
  20613. 8008dc4: 687a ldr r2, [r7, #4]
  20614. 8008dc6: 6e92 ldr r2, [r2, #104] @ 0x68
  20615. 8008dc8: 605a str r2, [r3, #4]
  20616. if(hdma->DMAmuxRequestGen != 0U)
  20617. 8008dca: 687b ldr r3, [r7, #4]
  20618. 8008dcc: 6edb ldr r3, [r3, #108] @ 0x6c
  20619. 8008dce: 2b00 cmp r3, #0
  20620. 8008dd0: d00c beq.n 8008dec <HAL_DMA_Abort+0x5c0>
  20621. {
  20622. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  20623. /* disable the request gen overrun IT */
  20624. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  20625. 8008dd2: 687b ldr r3, [r7, #4]
  20626. 8008dd4: 6edb ldr r3, [r3, #108] @ 0x6c
  20627. 8008dd6: 681a ldr r2, [r3, #0]
  20628. 8008dd8: 687b ldr r3, [r7, #4]
  20629. 8008dda: 6edb ldr r3, [r3, #108] @ 0x6c
  20630. 8008ddc: f422 7280 bic.w r2, r2, #256 @ 0x100
  20631. 8008de0: 601a str r2, [r3, #0]
  20632. /* Clear the DMAMUX request generator overrun flag */
  20633. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  20634. 8008de2: 687b ldr r3, [r7, #4]
  20635. 8008de4: 6f1b ldr r3, [r3, #112] @ 0x70
  20636. 8008de6: 687a ldr r2, [r7, #4]
  20637. 8008de8: 6f52 ldr r2, [r2, #116] @ 0x74
  20638. 8008dea: 605a str r2, [r3, #4]
  20639. }
  20640. }
  20641. /* Change the DMA state */
  20642. hdma->State = HAL_DMA_STATE_READY;
  20643. 8008dec: 687b ldr r3, [r7, #4]
  20644. 8008dee: 2201 movs r2, #1
  20645. 8008df0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20646. /* Process Unlocked */
  20647. __HAL_UNLOCK(hdma);
  20648. 8008df4: 687b ldr r3, [r7, #4]
  20649. 8008df6: 2200 movs r2, #0
  20650. 8008df8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20651. }
  20652. return HAL_OK;
  20653. 8008dfc: 2300 movs r3, #0
  20654. }
  20655. 8008dfe: 4618 mov r0, r3
  20656. 8008e00: 3718 adds r7, #24
  20657. 8008e02: 46bd mov sp, r7
  20658. 8008e04: bd80 pop {r7, pc}
  20659. 8008e06: bf00 nop
  20660. 8008e08: 40020010 .word 0x40020010
  20661. 8008e0c: 40020028 .word 0x40020028
  20662. 8008e10: 40020040 .word 0x40020040
  20663. 8008e14: 40020058 .word 0x40020058
  20664. 8008e18: 40020070 .word 0x40020070
  20665. 8008e1c: 40020088 .word 0x40020088
  20666. 8008e20: 400200a0 .word 0x400200a0
  20667. 8008e24: 400200b8 .word 0x400200b8
  20668. 8008e28: 40020410 .word 0x40020410
  20669. 8008e2c: 40020428 .word 0x40020428
  20670. 8008e30: 40020440 .word 0x40020440
  20671. 8008e34: 40020458 .word 0x40020458
  20672. 8008e38: 40020470 .word 0x40020470
  20673. 8008e3c: 40020488 .word 0x40020488
  20674. 8008e40: 400204a0 .word 0x400204a0
  20675. 8008e44: 400204b8 .word 0x400204b8
  20676. 8008e48: 58025408 .word 0x58025408
  20677. 8008e4c: 5802541c .word 0x5802541c
  20678. 8008e50: 58025430 .word 0x58025430
  20679. 8008e54: 58025444 .word 0x58025444
  20680. 8008e58: 58025458 .word 0x58025458
  20681. 8008e5c: 5802546c .word 0x5802546c
  20682. 8008e60: 58025480 .word 0x58025480
  20683. 8008e64: 58025494 .word 0x58025494
  20684. 08008e68 <HAL_DMA_Abort_IT>:
  20685. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  20686. * the configuration information for the specified DMA Stream.
  20687. * @retval HAL status
  20688. */
  20689. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  20690. {
  20691. 8008e68: b580 push {r7, lr}
  20692. 8008e6a: b084 sub sp, #16
  20693. 8008e6c: af00 add r7, sp, #0
  20694. 8008e6e: 6078 str r0, [r7, #4]
  20695. BDMA_Base_Registers *regs_bdma;
  20696. /* Check the DMA peripheral handle */
  20697. if(hdma == NULL)
  20698. 8008e70: 687b ldr r3, [r7, #4]
  20699. 8008e72: 2b00 cmp r3, #0
  20700. 8008e74: d101 bne.n 8008e7a <HAL_DMA_Abort_IT+0x12>
  20701. {
  20702. return HAL_ERROR;
  20703. 8008e76: 2301 movs r3, #1
  20704. 8008e78: e237 b.n 80092ea <HAL_DMA_Abort_IT+0x482>
  20705. }
  20706. if(hdma->State != HAL_DMA_STATE_BUSY)
  20707. 8008e7a: 687b ldr r3, [r7, #4]
  20708. 8008e7c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20709. 8008e80: b2db uxtb r3, r3
  20710. 8008e82: 2b02 cmp r3, #2
  20711. 8008e84: d004 beq.n 8008e90 <HAL_DMA_Abort_IT+0x28>
  20712. {
  20713. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  20714. 8008e86: 687b ldr r3, [r7, #4]
  20715. 8008e88: 2280 movs r2, #128 @ 0x80
  20716. 8008e8a: 655a str r2, [r3, #84] @ 0x54
  20717. return HAL_ERROR;
  20718. 8008e8c: 2301 movs r3, #1
  20719. 8008e8e: e22c b.n 80092ea <HAL_DMA_Abort_IT+0x482>
  20720. }
  20721. else
  20722. {
  20723. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20724. 8008e90: 687b ldr r3, [r7, #4]
  20725. 8008e92: 681b ldr r3, [r3, #0]
  20726. 8008e94: 4a5c ldr r2, [pc, #368] @ (8009008 <HAL_DMA_Abort_IT+0x1a0>)
  20727. 8008e96: 4293 cmp r3, r2
  20728. 8008e98: d04a beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20729. 8008e9a: 687b ldr r3, [r7, #4]
  20730. 8008e9c: 681b ldr r3, [r3, #0]
  20731. 8008e9e: 4a5b ldr r2, [pc, #364] @ (800900c <HAL_DMA_Abort_IT+0x1a4>)
  20732. 8008ea0: 4293 cmp r3, r2
  20733. 8008ea2: d045 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20734. 8008ea4: 687b ldr r3, [r7, #4]
  20735. 8008ea6: 681b ldr r3, [r3, #0]
  20736. 8008ea8: 4a59 ldr r2, [pc, #356] @ (8009010 <HAL_DMA_Abort_IT+0x1a8>)
  20737. 8008eaa: 4293 cmp r3, r2
  20738. 8008eac: d040 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20739. 8008eae: 687b ldr r3, [r7, #4]
  20740. 8008eb0: 681b ldr r3, [r3, #0]
  20741. 8008eb2: 4a58 ldr r2, [pc, #352] @ (8009014 <HAL_DMA_Abort_IT+0x1ac>)
  20742. 8008eb4: 4293 cmp r3, r2
  20743. 8008eb6: d03b beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20744. 8008eb8: 687b ldr r3, [r7, #4]
  20745. 8008eba: 681b ldr r3, [r3, #0]
  20746. 8008ebc: 4a56 ldr r2, [pc, #344] @ (8009018 <HAL_DMA_Abort_IT+0x1b0>)
  20747. 8008ebe: 4293 cmp r3, r2
  20748. 8008ec0: d036 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20749. 8008ec2: 687b ldr r3, [r7, #4]
  20750. 8008ec4: 681b ldr r3, [r3, #0]
  20751. 8008ec6: 4a55 ldr r2, [pc, #340] @ (800901c <HAL_DMA_Abort_IT+0x1b4>)
  20752. 8008ec8: 4293 cmp r3, r2
  20753. 8008eca: d031 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20754. 8008ecc: 687b ldr r3, [r7, #4]
  20755. 8008ece: 681b ldr r3, [r3, #0]
  20756. 8008ed0: 4a53 ldr r2, [pc, #332] @ (8009020 <HAL_DMA_Abort_IT+0x1b8>)
  20757. 8008ed2: 4293 cmp r3, r2
  20758. 8008ed4: d02c beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20759. 8008ed6: 687b ldr r3, [r7, #4]
  20760. 8008ed8: 681b ldr r3, [r3, #0]
  20761. 8008eda: 4a52 ldr r2, [pc, #328] @ (8009024 <HAL_DMA_Abort_IT+0x1bc>)
  20762. 8008edc: 4293 cmp r3, r2
  20763. 8008ede: d027 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20764. 8008ee0: 687b ldr r3, [r7, #4]
  20765. 8008ee2: 681b ldr r3, [r3, #0]
  20766. 8008ee4: 4a50 ldr r2, [pc, #320] @ (8009028 <HAL_DMA_Abort_IT+0x1c0>)
  20767. 8008ee6: 4293 cmp r3, r2
  20768. 8008ee8: d022 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20769. 8008eea: 687b ldr r3, [r7, #4]
  20770. 8008eec: 681b ldr r3, [r3, #0]
  20771. 8008eee: 4a4f ldr r2, [pc, #316] @ (800902c <HAL_DMA_Abort_IT+0x1c4>)
  20772. 8008ef0: 4293 cmp r3, r2
  20773. 8008ef2: d01d beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20774. 8008ef4: 687b ldr r3, [r7, #4]
  20775. 8008ef6: 681b ldr r3, [r3, #0]
  20776. 8008ef8: 4a4d ldr r2, [pc, #308] @ (8009030 <HAL_DMA_Abort_IT+0x1c8>)
  20777. 8008efa: 4293 cmp r3, r2
  20778. 8008efc: d018 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20779. 8008efe: 687b ldr r3, [r7, #4]
  20780. 8008f00: 681b ldr r3, [r3, #0]
  20781. 8008f02: 4a4c ldr r2, [pc, #304] @ (8009034 <HAL_DMA_Abort_IT+0x1cc>)
  20782. 8008f04: 4293 cmp r3, r2
  20783. 8008f06: d013 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20784. 8008f08: 687b ldr r3, [r7, #4]
  20785. 8008f0a: 681b ldr r3, [r3, #0]
  20786. 8008f0c: 4a4a ldr r2, [pc, #296] @ (8009038 <HAL_DMA_Abort_IT+0x1d0>)
  20787. 8008f0e: 4293 cmp r3, r2
  20788. 8008f10: d00e beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20789. 8008f12: 687b ldr r3, [r7, #4]
  20790. 8008f14: 681b ldr r3, [r3, #0]
  20791. 8008f16: 4a49 ldr r2, [pc, #292] @ (800903c <HAL_DMA_Abort_IT+0x1d4>)
  20792. 8008f18: 4293 cmp r3, r2
  20793. 8008f1a: d009 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20794. 8008f1c: 687b ldr r3, [r7, #4]
  20795. 8008f1e: 681b ldr r3, [r3, #0]
  20796. 8008f20: 4a47 ldr r2, [pc, #284] @ (8009040 <HAL_DMA_Abort_IT+0x1d8>)
  20797. 8008f22: 4293 cmp r3, r2
  20798. 8008f24: d004 beq.n 8008f30 <HAL_DMA_Abort_IT+0xc8>
  20799. 8008f26: 687b ldr r3, [r7, #4]
  20800. 8008f28: 681b ldr r3, [r3, #0]
  20801. 8008f2a: 4a46 ldr r2, [pc, #280] @ (8009044 <HAL_DMA_Abort_IT+0x1dc>)
  20802. 8008f2c: 4293 cmp r3, r2
  20803. 8008f2e: d101 bne.n 8008f34 <HAL_DMA_Abort_IT+0xcc>
  20804. 8008f30: 2301 movs r3, #1
  20805. 8008f32: e000 b.n 8008f36 <HAL_DMA_Abort_IT+0xce>
  20806. 8008f34: 2300 movs r3, #0
  20807. 8008f36: 2b00 cmp r3, #0
  20808. 8008f38: f000 8086 beq.w 8009048 <HAL_DMA_Abort_IT+0x1e0>
  20809. {
  20810. /* Set Abort State */
  20811. hdma->State = HAL_DMA_STATE_ABORT;
  20812. 8008f3c: 687b ldr r3, [r7, #4]
  20813. 8008f3e: 2204 movs r2, #4
  20814. 8008f40: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20815. /* Disable the stream */
  20816. __HAL_DMA_DISABLE(hdma);
  20817. 8008f44: 687b ldr r3, [r7, #4]
  20818. 8008f46: 681b ldr r3, [r3, #0]
  20819. 8008f48: 4a2f ldr r2, [pc, #188] @ (8009008 <HAL_DMA_Abort_IT+0x1a0>)
  20820. 8008f4a: 4293 cmp r3, r2
  20821. 8008f4c: d04a beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20822. 8008f4e: 687b ldr r3, [r7, #4]
  20823. 8008f50: 681b ldr r3, [r3, #0]
  20824. 8008f52: 4a2e ldr r2, [pc, #184] @ (800900c <HAL_DMA_Abort_IT+0x1a4>)
  20825. 8008f54: 4293 cmp r3, r2
  20826. 8008f56: d045 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20827. 8008f58: 687b ldr r3, [r7, #4]
  20828. 8008f5a: 681b ldr r3, [r3, #0]
  20829. 8008f5c: 4a2c ldr r2, [pc, #176] @ (8009010 <HAL_DMA_Abort_IT+0x1a8>)
  20830. 8008f5e: 4293 cmp r3, r2
  20831. 8008f60: d040 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20832. 8008f62: 687b ldr r3, [r7, #4]
  20833. 8008f64: 681b ldr r3, [r3, #0]
  20834. 8008f66: 4a2b ldr r2, [pc, #172] @ (8009014 <HAL_DMA_Abort_IT+0x1ac>)
  20835. 8008f68: 4293 cmp r3, r2
  20836. 8008f6a: d03b beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20837. 8008f6c: 687b ldr r3, [r7, #4]
  20838. 8008f6e: 681b ldr r3, [r3, #0]
  20839. 8008f70: 4a29 ldr r2, [pc, #164] @ (8009018 <HAL_DMA_Abort_IT+0x1b0>)
  20840. 8008f72: 4293 cmp r3, r2
  20841. 8008f74: d036 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20842. 8008f76: 687b ldr r3, [r7, #4]
  20843. 8008f78: 681b ldr r3, [r3, #0]
  20844. 8008f7a: 4a28 ldr r2, [pc, #160] @ (800901c <HAL_DMA_Abort_IT+0x1b4>)
  20845. 8008f7c: 4293 cmp r3, r2
  20846. 8008f7e: d031 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20847. 8008f80: 687b ldr r3, [r7, #4]
  20848. 8008f82: 681b ldr r3, [r3, #0]
  20849. 8008f84: 4a26 ldr r2, [pc, #152] @ (8009020 <HAL_DMA_Abort_IT+0x1b8>)
  20850. 8008f86: 4293 cmp r3, r2
  20851. 8008f88: d02c beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20852. 8008f8a: 687b ldr r3, [r7, #4]
  20853. 8008f8c: 681b ldr r3, [r3, #0]
  20854. 8008f8e: 4a25 ldr r2, [pc, #148] @ (8009024 <HAL_DMA_Abort_IT+0x1bc>)
  20855. 8008f90: 4293 cmp r3, r2
  20856. 8008f92: d027 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20857. 8008f94: 687b ldr r3, [r7, #4]
  20858. 8008f96: 681b ldr r3, [r3, #0]
  20859. 8008f98: 4a23 ldr r2, [pc, #140] @ (8009028 <HAL_DMA_Abort_IT+0x1c0>)
  20860. 8008f9a: 4293 cmp r3, r2
  20861. 8008f9c: d022 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20862. 8008f9e: 687b ldr r3, [r7, #4]
  20863. 8008fa0: 681b ldr r3, [r3, #0]
  20864. 8008fa2: 4a22 ldr r2, [pc, #136] @ (800902c <HAL_DMA_Abort_IT+0x1c4>)
  20865. 8008fa4: 4293 cmp r3, r2
  20866. 8008fa6: d01d beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20867. 8008fa8: 687b ldr r3, [r7, #4]
  20868. 8008faa: 681b ldr r3, [r3, #0]
  20869. 8008fac: 4a20 ldr r2, [pc, #128] @ (8009030 <HAL_DMA_Abort_IT+0x1c8>)
  20870. 8008fae: 4293 cmp r3, r2
  20871. 8008fb0: d018 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20872. 8008fb2: 687b ldr r3, [r7, #4]
  20873. 8008fb4: 681b ldr r3, [r3, #0]
  20874. 8008fb6: 4a1f ldr r2, [pc, #124] @ (8009034 <HAL_DMA_Abort_IT+0x1cc>)
  20875. 8008fb8: 4293 cmp r3, r2
  20876. 8008fba: d013 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20877. 8008fbc: 687b ldr r3, [r7, #4]
  20878. 8008fbe: 681b ldr r3, [r3, #0]
  20879. 8008fc0: 4a1d ldr r2, [pc, #116] @ (8009038 <HAL_DMA_Abort_IT+0x1d0>)
  20880. 8008fc2: 4293 cmp r3, r2
  20881. 8008fc4: d00e beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20882. 8008fc6: 687b ldr r3, [r7, #4]
  20883. 8008fc8: 681b ldr r3, [r3, #0]
  20884. 8008fca: 4a1c ldr r2, [pc, #112] @ (800903c <HAL_DMA_Abort_IT+0x1d4>)
  20885. 8008fcc: 4293 cmp r3, r2
  20886. 8008fce: d009 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20887. 8008fd0: 687b ldr r3, [r7, #4]
  20888. 8008fd2: 681b ldr r3, [r3, #0]
  20889. 8008fd4: 4a1a ldr r2, [pc, #104] @ (8009040 <HAL_DMA_Abort_IT+0x1d8>)
  20890. 8008fd6: 4293 cmp r3, r2
  20891. 8008fd8: d004 beq.n 8008fe4 <HAL_DMA_Abort_IT+0x17c>
  20892. 8008fda: 687b ldr r3, [r7, #4]
  20893. 8008fdc: 681b ldr r3, [r3, #0]
  20894. 8008fde: 4a19 ldr r2, [pc, #100] @ (8009044 <HAL_DMA_Abort_IT+0x1dc>)
  20895. 8008fe0: 4293 cmp r3, r2
  20896. 8008fe2: d108 bne.n 8008ff6 <HAL_DMA_Abort_IT+0x18e>
  20897. 8008fe4: 687b ldr r3, [r7, #4]
  20898. 8008fe6: 681b ldr r3, [r3, #0]
  20899. 8008fe8: 681a ldr r2, [r3, #0]
  20900. 8008fea: 687b ldr r3, [r7, #4]
  20901. 8008fec: 681b ldr r3, [r3, #0]
  20902. 8008fee: f022 0201 bic.w r2, r2, #1
  20903. 8008ff2: 601a str r2, [r3, #0]
  20904. 8008ff4: e178 b.n 80092e8 <HAL_DMA_Abort_IT+0x480>
  20905. 8008ff6: 687b ldr r3, [r7, #4]
  20906. 8008ff8: 681b ldr r3, [r3, #0]
  20907. 8008ffa: 681a ldr r2, [r3, #0]
  20908. 8008ffc: 687b ldr r3, [r7, #4]
  20909. 8008ffe: 681b ldr r3, [r3, #0]
  20910. 8009000: f022 0201 bic.w r2, r2, #1
  20911. 8009004: 601a str r2, [r3, #0]
  20912. 8009006: e16f b.n 80092e8 <HAL_DMA_Abort_IT+0x480>
  20913. 8009008: 40020010 .word 0x40020010
  20914. 800900c: 40020028 .word 0x40020028
  20915. 8009010: 40020040 .word 0x40020040
  20916. 8009014: 40020058 .word 0x40020058
  20917. 8009018: 40020070 .word 0x40020070
  20918. 800901c: 40020088 .word 0x40020088
  20919. 8009020: 400200a0 .word 0x400200a0
  20920. 8009024: 400200b8 .word 0x400200b8
  20921. 8009028: 40020410 .word 0x40020410
  20922. 800902c: 40020428 .word 0x40020428
  20923. 8009030: 40020440 .word 0x40020440
  20924. 8009034: 40020458 .word 0x40020458
  20925. 8009038: 40020470 .word 0x40020470
  20926. 800903c: 40020488 .word 0x40020488
  20927. 8009040: 400204a0 .word 0x400204a0
  20928. 8009044: 400204b8 .word 0x400204b8
  20929. }
  20930. else /* BDMA channel */
  20931. {
  20932. /* Disable DMA All Interrupts */
  20933. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  20934. 8009048: 687b ldr r3, [r7, #4]
  20935. 800904a: 681b ldr r3, [r3, #0]
  20936. 800904c: 681a ldr r2, [r3, #0]
  20937. 800904e: 687b ldr r3, [r7, #4]
  20938. 8009050: 681b ldr r3, [r3, #0]
  20939. 8009052: f022 020e bic.w r2, r2, #14
  20940. 8009056: 601a str r2, [r3, #0]
  20941. /* Disable the channel */
  20942. __HAL_DMA_DISABLE(hdma);
  20943. 8009058: 687b ldr r3, [r7, #4]
  20944. 800905a: 681b ldr r3, [r3, #0]
  20945. 800905c: 4a6c ldr r2, [pc, #432] @ (8009210 <HAL_DMA_Abort_IT+0x3a8>)
  20946. 800905e: 4293 cmp r3, r2
  20947. 8009060: d04a beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20948. 8009062: 687b ldr r3, [r7, #4]
  20949. 8009064: 681b ldr r3, [r3, #0]
  20950. 8009066: 4a6b ldr r2, [pc, #428] @ (8009214 <HAL_DMA_Abort_IT+0x3ac>)
  20951. 8009068: 4293 cmp r3, r2
  20952. 800906a: d045 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20953. 800906c: 687b ldr r3, [r7, #4]
  20954. 800906e: 681b ldr r3, [r3, #0]
  20955. 8009070: 4a69 ldr r2, [pc, #420] @ (8009218 <HAL_DMA_Abort_IT+0x3b0>)
  20956. 8009072: 4293 cmp r3, r2
  20957. 8009074: d040 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20958. 8009076: 687b ldr r3, [r7, #4]
  20959. 8009078: 681b ldr r3, [r3, #0]
  20960. 800907a: 4a68 ldr r2, [pc, #416] @ (800921c <HAL_DMA_Abort_IT+0x3b4>)
  20961. 800907c: 4293 cmp r3, r2
  20962. 800907e: d03b beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20963. 8009080: 687b ldr r3, [r7, #4]
  20964. 8009082: 681b ldr r3, [r3, #0]
  20965. 8009084: 4a66 ldr r2, [pc, #408] @ (8009220 <HAL_DMA_Abort_IT+0x3b8>)
  20966. 8009086: 4293 cmp r3, r2
  20967. 8009088: d036 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20968. 800908a: 687b ldr r3, [r7, #4]
  20969. 800908c: 681b ldr r3, [r3, #0]
  20970. 800908e: 4a65 ldr r2, [pc, #404] @ (8009224 <HAL_DMA_Abort_IT+0x3bc>)
  20971. 8009090: 4293 cmp r3, r2
  20972. 8009092: d031 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20973. 8009094: 687b ldr r3, [r7, #4]
  20974. 8009096: 681b ldr r3, [r3, #0]
  20975. 8009098: 4a63 ldr r2, [pc, #396] @ (8009228 <HAL_DMA_Abort_IT+0x3c0>)
  20976. 800909a: 4293 cmp r3, r2
  20977. 800909c: d02c beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20978. 800909e: 687b ldr r3, [r7, #4]
  20979. 80090a0: 681b ldr r3, [r3, #0]
  20980. 80090a2: 4a62 ldr r2, [pc, #392] @ (800922c <HAL_DMA_Abort_IT+0x3c4>)
  20981. 80090a4: 4293 cmp r3, r2
  20982. 80090a6: d027 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20983. 80090a8: 687b ldr r3, [r7, #4]
  20984. 80090aa: 681b ldr r3, [r3, #0]
  20985. 80090ac: 4a60 ldr r2, [pc, #384] @ (8009230 <HAL_DMA_Abort_IT+0x3c8>)
  20986. 80090ae: 4293 cmp r3, r2
  20987. 80090b0: d022 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20988. 80090b2: 687b ldr r3, [r7, #4]
  20989. 80090b4: 681b ldr r3, [r3, #0]
  20990. 80090b6: 4a5f ldr r2, [pc, #380] @ (8009234 <HAL_DMA_Abort_IT+0x3cc>)
  20991. 80090b8: 4293 cmp r3, r2
  20992. 80090ba: d01d beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20993. 80090bc: 687b ldr r3, [r7, #4]
  20994. 80090be: 681b ldr r3, [r3, #0]
  20995. 80090c0: 4a5d ldr r2, [pc, #372] @ (8009238 <HAL_DMA_Abort_IT+0x3d0>)
  20996. 80090c2: 4293 cmp r3, r2
  20997. 80090c4: d018 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  20998. 80090c6: 687b ldr r3, [r7, #4]
  20999. 80090c8: 681b ldr r3, [r3, #0]
  21000. 80090ca: 4a5c ldr r2, [pc, #368] @ (800923c <HAL_DMA_Abort_IT+0x3d4>)
  21001. 80090cc: 4293 cmp r3, r2
  21002. 80090ce: d013 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  21003. 80090d0: 687b ldr r3, [r7, #4]
  21004. 80090d2: 681b ldr r3, [r3, #0]
  21005. 80090d4: 4a5a ldr r2, [pc, #360] @ (8009240 <HAL_DMA_Abort_IT+0x3d8>)
  21006. 80090d6: 4293 cmp r3, r2
  21007. 80090d8: d00e beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  21008. 80090da: 687b ldr r3, [r7, #4]
  21009. 80090dc: 681b ldr r3, [r3, #0]
  21010. 80090de: 4a59 ldr r2, [pc, #356] @ (8009244 <HAL_DMA_Abort_IT+0x3dc>)
  21011. 80090e0: 4293 cmp r3, r2
  21012. 80090e2: d009 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  21013. 80090e4: 687b ldr r3, [r7, #4]
  21014. 80090e6: 681b ldr r3, [r3, #0]
  21015. 80090e8: 4a57 ldr r2, [pc, #348] @ (8009248 <HAL_DMA_Abort_IT+0x3e0>)
  21016. 80090ea: 4293 cmp r3, r2
  21017. 80090ec: d004 beq.n 80090f8 <HAL_DMA_Abort_IT+0x290>
  21018. 80090ee: 687b ldr r3, [r7, #4]
  21019. 80090f0: 681b ldr r3, [r3, #0]
  21020. 80090f2: 4a56 ldr r2, [pc, #344] @ (800924c <HAL_DMA_Abort_IT+0x3e4>)
  21021. 80090f4: 4293 cmp r3, r2
  21022. 80090f6: d108 bne.n 800910a <HAL_DMA_Abort_IT+0x2a2>
  21023. 80090f8: 687b ldr r3, [r7, #4]
  21024. 80090fa: 681b ldr r3, [r3, #0]
  21025. 80090fc: 681a ldr r2, [r3, #0]
  21026. 80090fe: 687b ldr r3, [r7, #4]
  21027. 8009100: 681b ldr r3, [r3, #0]
  21028. 8009102: f022 0201 bic.w r2, r2, #1
  21029. 8009106: 601a str r2, [r3, #0]
  21030. 8009108: e007 b.n 800911a <HAL_DMA_Abort_IT+0x2b2>
  21031. 800910a: 687b ldr r3, [r7, #4]
  21032. 800910c: 681b ldr r3, [r3, #0]
  21033. 800910e: 681a ldr r2, [r3, #0]
  21034. 8009110: 687b ldr r3, [r7, #4]
  21035. 8009112: 681b ldr r3, [r3, #0]
  21036. 8009114: f022 0201 bic.w r2, r2, #1
  21037. 8009118: 601a str r2, [r3, #0]
  21038. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21039. 800911a: 687b ldr r3, [r7, #4]
  21040. 800911c: 681b ldr r3, [r3, #0]
  21041. 800911e: 4a3c ldr r2, [pc, #240] @ (8009210 <HAL_DMA_Abort_IT+0x3a8>)
  21042. 8009120: 4293 cmp r3, r2
  21043. 8009122: d072 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21044. 8009124: 687b ldr r3, [r7, #4]
  21045. 8009126: 681b ldr r3, [r3, #0]
  21046. 8009128: 4a3a ldr r2, [pc, #232] @ (8009214 <HAL_DMA_Abort_IT+0x3ac>)
  21047. 800912a: 4293 cmp r3, r2
  21048. 800912c: d06d beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21049. 800912e: 687b ldr r3, [r7, #4]
  21050. 8009130: 681b ldr r3, [r3, #0]
  21051. 8009132: 4a39 ldr r2, [pc, #228] @ (8009218 <HAL_DMA_Abort_IT+0x3b0>)
  21052. 8009134: 4293 cmp r3, r2
  21053. 8009136: d068 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21054. 8009138: 687b ldr r3, [r7, #4]
  21055. 800913a: 681b ldr r3, [r3, #0]
  21056. 800913c: 4a37 ldr r2, [pc, #220] @ (800921c <HAL_DMA_Abort_IT+0x3b4>)
  21057. 800913e: 4293 cmp r3, r2
  21058. 8009140: d063 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21059. 8009142: 687b ldr r3, [r7, #4]
  21060. 8009144: 681b ldr r3, [r3, #0]
  21061. 8009146: 4a36 ldr r2, [pc, #216] @ (8009220 <HAL_DMA_Abort_IT+0x3b8>)
  21062. 8009148: 4293 cmp r3, r2
  21063. 800914a: d05e beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21064. 800914c: 687b ldr r3, [r7, #4]
  21065. 800914e: 681b ldr r3, [r3, #0]
  21066. 8009150: 4a34 ldr r2, [pc, #208] @ (8009224 <HAL_DMA_Abort_IT+0x3bc>)
  21067. 8009152: 4293 cmp r3, r2
  21068. 8009154: d059 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21069. 8009156: 687b ldr r3, [r7, #4]
  21070. 8009158: 681b ldr r3, [r3, #0]
  21071. 800915a: 4a33 ldr r2, [pc, #204] @ (8009228 <HAL_DMA_Abort_IT+0x3c0>)
  21072. 800915c: 4293 cmp r3, r2
  21073. 800915e: d054 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21074. 8009160: 687b ldr r3, [r7, #4]
  21075. 8009162: 681b ldr r3, [r3, #0]
  21076. 8009164: 4a31 ldr r2, [pc, #196] @ (800922c <HAL_DMA_Abort_IT+0x3c4>)
  21077. 8009166: 4293 cmp r3, r2
  21078. 8009168: d04f beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21079. 800916a: 687b ldr r3, [r7, #4]
  21080. 800916c: 681b ldr r3, [r3, #0]
  21081. 800916e: 4a30 ldr r2, [pc, #192] @ (8009230 <HAL_DMA_Abort_IT+0x3c8>)
  21082. 8009170: 4293 cmp r3, r2
  21083. 8009172: d04a beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21084. 8009174: 687b ldr r3, [r7, #4]
  21085. 8009176: 681b ldr r3, [r3, #0]
  21086. 8009178: 4a2e ldr r2, [pc, #184] @ (8009234 <HAL_DMA_Abort_IT+0x3cc>)
  21087. 800917a: 4293 cmp r3, r2
  21088. 800917c: d045 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21089. 800917e: 687b ldr r3, [r7, #4]
  21090. 8009180: 681b ldr r3, [r3, #0]
  21091. 8009182: 4a2d ldr r2, [pc, #180] @ (8009238 <HAL_DMA_Abort_IT+0x3d0>)
  21092. 8009184: 4293 cmp r3, r2
  21093. 8009186: d040 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21094. 8009188: 687b ldr r3, [r7, #4]
  21095. 800918a: 681b ldr r3, [r3, #0]
  21096. 800918c: 4a2b ldr r2, [pc, #172] @ (800923c <HAL_DMA_Abort_IT+0x3d4>)
  21097. 800918e: 4293 cmp r3, r2
  21098. 8009190: d03b beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21099. 8009192: 687b ldr r3, [r7, #4]
  21100. 8009194: 681b ldr r3, [r3, #0]
  21101. 8009196: 4a2a ldr r2, [pc, #168] @ (8009240 <HAL_DMA_Abort_IT+0x3d8>)
  21102. 8009198: 4293 cmp r3, r2
  21103. 800919a: d036 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21104. 800919c: 687b ldr r3, [r7, #4]
  21105. 800919e: 681b ldr r3, [r3, #0]
  21106. 80091a0: 4a28 ldr r2, [pc, #160] @ (8009244 <HAL_DMA_Abort_IT+0x3dc>)
  21107. 80091a2: 4293 cmp r3, r2
  21108. 80091a4: d031 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21109. 80091a6: 687b ldr r3, [r7, #4]
  21110. 80091a8: 681b ldr r3, [r3, #0]
  21111. 80091aa: 4a27 ldr r2, [pc, #156] @ (8009248 <HAL_DMA_Abort_IT+0x3e0>)
  21112. 80091ac: 4293 cmp r3, r2
  21113. 80091ae: d02c beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21114. 80091b0: 687b ldr r3, [r7, #4]
  21115. 80091b2: 681b ldr r3, [r3, #0]
  21116. 80091b4: 4a25 ldr r2, [pc, #148] @ (800924c <HAL_DMA_Abort_IT+0x3e4>)
  21117. 80091b6: 4293 cmp r3, r2
  21118. 80091b8: d027 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21119. 80091ba: 687b ldr r3, [r7, #4]
  21120. 80091bc: 681b ldr r3, [r3, #0]
  21121. 80091be: 4a24 ldr r2, [pc, #144] @ (8009250 <HAL_DMA_Abort_IT+0x3e8>)
  21122. 80091c0: 4293 cmp r3, r2
  21123. 80091c2: d022 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21124. 80091c4: 687b ldr r3, [r7, #4]
  21125. 80091c6: 681b ldr r3, [r3, #0]
  21126. 80091c8: 4a22 ldr r2, [pc, #136] @ (8009254 <HAL_DMA_Abort_IT+0x3ec>)
  21127. 80091ca: 4293 cmp r3, r2
  21128. 80091cc: d01d beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21129. 80091ce: 687b ldr r3, [r7, #4]
  21130. 80091d0: 681b ldr r3, [r3, #0]
  21131. 80091d2: 4a21 ldr r2, [pc, #132] @ (8009258 <HAL_DMA_Abort_IT+0x3f0>)
  21132. 80091d4: 4293 cmp r3, r2
  21133. 80091d6: d018 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21134. 80091d8: 687b ldr r3, [r7, #4]
  21135. 80091da: 681b ldr r3, [r3, #0]
  21136. 80091dc: 4a1f ldr r2, [pc, #124] @ (800925c <HAL_DMA_Abort_IT+0x3f4>)
  21137. 80091de: 4293 cmp r3, r2
  21138. 80091e0: d013 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21139. 80091e2: 687b ldr r3, [r7, #4]
  21140. 80091e4: 681b ldr r3, [r3, #0]
  21141. 80091e6: 4a1e ldr r2, [pc, #120] @ (8009260 <HAL_DMA_Abort_IT+0x3f8>)
  21142. 80091e8: 4293 cmp r3, r2
  21143. 80091ea: d00e beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21144. 80091ec: 687b ldr r3, [r7, #4]
  21145. 80091ee: 681b ldr r3, [r3, #0]
  21146. 80091f0: 4a1c ldr r2, [pc, #112] @ (8009264 <HAL_DMA_Abort_IT+0x3fc>)
  21147. 80091f2: 4293 cmp r3, r2
  21148. 80091f4: d009 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21149. 80091f6: 687b ldr r3, [r7, #4]
  21150. 80091f8: 681b ldr r3, [r3, #0]
  21151. 80091fa: 4a1b ldr r2, [pc, #108] @ (8009268 <HAL_DMA_Abort_IT+0x400>)
  21152. 80091fc: 4293 cmp r3, r2
  21153. 80091fe: d004 beq.n 800920a <HAL_DMA_Abort_IT+0x3a2>
  21154. 8009200: 687b ldr r3, [r7, #4]
  21155. 8009202: 681b ldr r3, [r3, #0]
  21156. 8009204: 4a19 ldr r2, [pc, #100] @ (800926c <HAL_DMA_Abort_IT+0x404>)
  21157. 8009206: 4293 cmp r3, r2
  21158. 8009208: d132 bne.n 8009270 <HAL_DMA_Abort_IT+0x408>
  21159. 800920a: 2301 movs r3, #1
  21160. 800920c: e031 b.n 8009272 <HAL_DMA_Abort_IT+0x40a>
  21161. 800920e: bf00 nop
  21162. 8009210: 40020010 .word 0x40020010
  21163. 8009214: 40020028 .word 0x40020028
  21164. 8009218: 40020040 .word 0x40020040
  21165. 800921c: 40020058 .word 0x40020058
  21166. 8009220: 40020070 .word 0x40020070
  21167. 8009224: 40020088 .word 0x40020088
  21168. 8009228: 400200a0 .word 0x400200a0
  21169. 800922c: 400200b8 .word 0x400200b8
  21170. 8009230: 40020410 .word 0x40020410
  21171. 8009234: 40020428 .word 0x40020428
  21172. 8009238: 40020440 .word 0x40020440
  21173. 800923c: 40020458 .word 0x40020458
  21174. 8009240: 40020470 .word 0x40020470
  21175. 8009244: 40020488 .word 0x40020488
  21176. 8009248: 400204a0 .word 0x400204a0
  21177. 800924c: 400204b8 .word 0x400204b8
  21178. 8009250: 58025408 .word 0x58025408
  21179. 8009254: 5802541c .word 0x5802541c
  21180. 8009258: 58025430 .word 0x58025430
  21181. 800925c: 58025444 .word 0x58025444
  21182. 8009260: 58025458 .word 0x58025458
  21183. 8009264: 5802546c .word 0x5802546c
  21184. 8009268: 58025480 .word 0x58025480
  21185. 800926c: 58025494 .word 0x58025494
  21186. 8009270: 2300 movs r3, #0
  21187. 8009272: 2b00 cmp r3, #0
  21188. 8009274: d028 beq.n 80092c8 <HAL_DMA_Abort_IT+0x460>
  21189. {
  21190. /* disable the DMAMUX sync overrun IT */
  21191. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  21192. 8009276: 687b ldr r3, [r7, #4]
  21193. 8009278: 6e1b ldr r3, [r3, #96] @ 0x60
  21194. 800927a: 681a ldr r2, [r3, #0]
  21195. 800927c: 687b ldr r3, [r7, #4]
  21196. 800927e: 6e1b ldr r3, [r3, #96] @ 0x60
  21197. 8009280: f422 7280 bic.w r2, r2, #256 @ 0x100
  21198. 8009284: 601a str r2, [r3, #0]
  21199. /* Clear all flags */
  21200. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21201. 8009286: 687b ldr r3, [r7, #4]
  21202. 8009288: 6d9b ldr r3, [r3, #88] @ 0x58
  21203. 800928a: 60fb str r3, [r7, #12]
  21204. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21205. 800928c: 687b ldr r3, [r7, #4]
  21206. 800928e: 6ddb ldr r3, [r3, #92] @ 0x5c
  21207. 8009290: f003 031f and.w r3, r3, #31
  21208. 8009294: 2201 movs r2, #1
  21209. 8009296: 409a lsls r2, r3
  21210. 8009298: 68fb ldr r3, [r7, #12]
  21211. 800929a: 605a str r2, [r3, #4]
  21212. /* Clear the DMAMUX synchro overrun flag */
  21213. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21214. 800929c: 687b ldr r3, [r7, #4]
  21215. 800929e: 6e5b ldr r3, [r3, #100] @ 0x64
  21216. 80092a0: 687a ldr r2, [r7, #4]
  21217. 80092a2: 6e92 ldr r2, [r2, #104] @ 0x68
  21218. 80092a4: 605a str r2, [r3, #4]
  21219. if(hdma->DMAmuxRequestGen != 0U)
  21220. 80092a6: 687b ldr r3, [r7, #4]
  21221. 80092a8: 6edb ldr r3, [r3, #108] @ 0x6c
  21222. 80092aa: 2b00 cmp r3, #0
  21223. 80092ac: d00c beq.n 80092c8 <HAL_DMA_Abort_IT+0x460>
  21224. {
  21225. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  21226. /* disable the request gen overrun IT */
  21227. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21228. 80092ae: 687b ldr r3, [r7, #4]
  21229. 80092b0: 6edb ldr r3, [r3, #108] @ 0x6c
  21230. 80092b2: 681a ldr r2, [r3, #0]
  21231. 80092b4: 687b ldr r3, [r7, #4]
  21232. 80092b6: 6edb ldr r3, [r3, #108] @ 0x6c
  21233. 80092b8: f422 7280 bic.w r2, r2, #256 @ 0x100
  21234. 80092bc: 601a str r2, [r3, #0]
  21235. /* Clear the DMAMUX request generator overrun flag */
  21236. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21237. 80092be: 687b ldr r3, [r7, #4]
  21238. 80092c0: 6f1b ldr r3, [r3, #112] @ 0x70
  21239. 80092c2: 687a ldr r2, [r7, #4]
  21240. 80092c4: 6f52 ldr r2, [r2, #116] @ 0x74
  21241. 80092c6: 605a str r2, [r3, #4]
  21242. }
  21243. }
  21244. /* Change the DMA state */
  21245. hdma->State = HAL_DMA_STATE_READY;
  21246. 80092c8: 687b ldr r3, [r7, #4]
  21247. 80092ca: 2201 movs r2, #1
  21248. 80092cc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21249. /* Process Unlocked */
  21250. __HAL_UNLOCK(hdma);
  21251. 80092d0: 687b ldr r3, [r7, #4]
  21252. 80092d2: 2200 movs r2, #0
  21253. 80092d4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21254. /* Call User Abort callback */
  21255. if(hdma->XferAbortCallback != NULL)
  21256. 80092d8: 687b ldr r3, [r7, #4]
  21257. 80092da: 6d1b ldr r3, [r3, #80] @ 0x50
  21258. 80092dc: 2b00 cmp r3, #0
  21259. 80092de: d003 beq.n 80092e8 <HAL_DMA_Abort_IT+0x480>
  21260. {
  21261. hdma->XferAbortCallback(hdma);
  21262. 80092e0: 687b ldr r3, [r7, #4]
  21263. 80092e2: 6d1b ldr r3, [r3, #80] @ 0x50
  21264. 80092e4: 6878 ldr r0, [r7, #4]
  21265. 80092e6: 4798 blx r3
  21266. }
  21267. }
  21268. }
  21269. return HAL_OK;
  21270. 80092e8: 2300 movs r3, #0
  21271. }
  21272. 80092ea: 4618 mov r0, r3
  21273. 80092ec: 3710 adds r7, #16
  21274. 80092ee: 46bd mov sp, r7
  21275. 80092f0: bd80 pop {r7, pc}
  21276. 80092f2: bf00 nop
  21277. 080092f4 <HAL_DMA_IRQHandler>:
  21278. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  21279. * the configuration information for the specified DMA Stream.
  21280. * @retval None
  21281. */
  21282. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  21283. {
  21284. 80092f4: b580 push {r7, lr}
  21285. 80092f6: b08a sub sp, #40 @ 0x28
  21286. 80092f8: af00 add r7, sp, #0
  21287. 80092fa: 6078 str r0, [r7, #4]
  21288. uint32_t tmpisr_dma, tmpisr_bdma;
  21289. uint32_t ccr_reg;
  21290. __IO uint32_t count = 0U;
  21291. 80092fc: 2300 movs r3, #0
  21292. 80092fe: 60fb str r3, [r7, #12]
  21293. uint32_t timeout = SystemCoreClock / 9600U;
  21294. 8009300: 4b67 ldr r3, [pc, #412] @ (80094a0 <HAL_DMA_IRQHandler+0x1ac>)
  21295. 8009302: 681b ldr r3, [r3, #0]
  21296. 8009304: 4a67 ldr r2, [pc, #412] @ (80094a4 <HAL_DMA_IRQHandler+0x1b0>)
  21297. 8009306: fba2 2303 umull r2, r3, r2, r3
  21298. 800930a: 0a9b lsrs r3, r3, #10
  21299. 800930c: 627b str r3, [r7, #36] @ 0x24
  21300. /* calculate DMA base and stream number */
  21301. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21302. 800930e: 687b ldr r3, [r7, #4]
  21303. 8009310: 6d9b ldr r3, [r3, #88] @ 0x58
  21304. 8009312: 623b str r3, [r7, #32]
  21305. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21306. 8009314: 687b ldr r3, [r7, #4]
  21307. 8009316: 6d9b ldr r3, [r3, #88] @ 0x58
  21308. 8009318: 61fb str r3, [r7, #28]
  21309. tmpisr_dma = regs_dma->ISR;
  21310. 800931a: 6a3b ldr r3, [r7, #32]
  21311. 800931c: 681b ldr r3, [r3, #0]
  21312. 800931e: 61bb str r3, [r7, #24]
  21313. tmpisr_bdma = regs_bdma->ISR;
  21314. 8009320: 69fb ldr r3, [r7, #28]
  21315. 8009322: 681b ldr r3, [r3, #0]
  21316. 8009324: 617b str r3, [r7, #20]
  21317. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21318. 8009326: 687b ldr r3, [r7, #4]
  21319. 8009328: 681b ldr r3, [r3, #0]
  21320. 800932a: 4a5f ldr r2, [pc, #380] @ (80094a8 <HAL_DMA_IRQHandler+0x1b4>)
  21321. 800932c: 4293 cmp r3, r2
  21322. 800932e: d04a beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21323. 8009330: 687b ldr r3, [r7, #4]
  21324. 8009332: 681b ldr r3, [r3, #0]
  21325. 8009334: 4a5d ldr r2, [pc, #372] @ (80094ac <HAL_DMA_IRQHandler+0x1b8>)
  21326. 8009336: 4293 cmp r3, r2
  21327. 8009338: d045 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21328. 800933a: 687b ldr r3, [r7, #4]
  21329. 800933c: 681b ldr r3, [r3, #0]
  21330. 800933e: 4a5c ldr r2, [pc, #368] @ (80094b0 <HAL_DMA_IRQHandler+0x1bc>)
  21331. 8009340: 4293 cmp r3, r2
  21332. 8009342: d040 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21333. 8009344: 687b ldr r3, [r7, #4]
  21334. 8009346: 681b ldr r3, [r3, #0]
  21335. 8009348: 4a5a ldr r2, [pc, #360] @ (80094b4 <HAL_DMA_IRQHandler+0x1c0>)
  21336. 800934a: 4293 cmp r3, r2
  21337. 800934c: d03b beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21338. 800934e: 687b ldr r3, [r7, #4]
  21339. 8009350: 681b ldr r3, [r3, #0]
  21340. 8009352: 4a59 ldr r2, [pc, #356] @ (80094b8 <HAL_DMA_IRQHandler+0x1c4>)
  21341. 8009354: 4293 cmp r3, r2
  21342. 8009356: d036 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21343. 8009358: 687b ldr r3, [r7, #4]
  21344. 800935a: 681b ldr r3, [r3, #0]
  21345. 800935c: 4a57 ldr r2, [pc, #348] @ (80094bc <HAL_DMA_IRQHandler+0x1c8>)
  21346. 800935e: 4293 cmp r3, r2
  21347. 8009360: d031 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21348. 8009362: 687b ldr r3, [r7, #4]
  21349. 8009364: 681b ldr r3, [r3, #0]
  21350. 8009366: 4a56 ldr r2, [pc, #344] @ (80094c0 <HAL_DMA_IRQHandler+0x1cc>)
  21351. 8009368: 4293 cmp r3, r2
  21352. 800936a: d02c beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21353. 800936c: 687b ldr r3, [r7, #4]
  21354. 800936e: 681b ldr r3, [r3, #0]
  21355. 8009370: 4a54 ldr r2, [pc, #336] @ (80094c4 <HAL_DMA_IRQHandler+0x1d0>)
  21356. 8009372: 4293 cmp r3, r2
  21357. 8009374: d027 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21358. 8009376: 687b ldr r3, [r7, #4]
  21359. 8009378: 681b ldr r3, [r3, #0]
  21360. 800937a: 4a53 ldr r2, [pc, #332] @ (80094c8 <HAL_DMA_IRQHandler+0x1d4>)
  21361. 800937c: 4293 cmp r3, r2
  21362. 800937e: d022 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21363. 8009380: 687b ldr r3, [r7, #4]
  21364. 8009382: 681b ldr r3, [r3, #0]
  21365. 8009384: 4a51 ldr r2, [pc, #324] @ (80094cc <HAL_DMA_IRQHandler+0x1d8>)
  21366. 8009386: 4293 cmp r3, r2
  21367. 8009388: d01d beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21368. 800938a: 687b ldr r3, [r7, #4]
  21369. 800938c: 681b ldr r3, [r3, #0]
  21370. 800938e: 4a50 ldr r2, [pc, #320] @ (80094d0 <HAL_DMA_IRQHandler+0x1dc>)
  21371. 8009390: 4293 cmp r3, r2
  21372. 8009392: d018 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21373. 8009394: 687b ldr r3, [r7, #4]
  21374. 8009396: 681b ldr r3, [r3, #0]
  21375. 8009398: 4a4e ldr r2, [pc, #312] @ (80094d4 <HAL_DMA_IRQHandler+0x1e0>)
  21376. 800939a: 4293 cmp r3, r2
  21377. 800939c: d013 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21378. 800939e: 687b ldr r3, [r7, #4]
  21379. 80093a0: 681b ldr r3, [r3, #0]
  21380. 80093a2: 4a4d ldr r2, [pc, #308] @ (80094d8 <HAL_DMA_IRQHandler+0x1e4>)
  21381. 80093a4: 4293 cmp r3, r2
  21382. 80093a6: d00e beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21383. 80093a8: 687b ldr r3, [r7, #4]
  21384. 80093aa: 681b ldr r3, [r3, #0]
  21385. 80093ac: 4a4b ldr r2, [pc, #300] @ (80094dc <HAL_DMA_IRQHandler+0x1e8>)
  21386. 80093ae: 4293 cmp r3, r2
  21387. 80093b0: d009 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21388. 80093b2: 687b ldr r3, [r7, #4]
  21389. 80093b4: 681b ldr r3, [r3, #0]
  21390. 80093b6: 4a4a ldr r2, [pc, #296] @ (80094e0 <HAL_DMA_IRQHandler+0x1ec>)
  21391. 80093b8: 4293 cmp r3, r2
  21392. 80093ba: d004 beq.n 80093c6 <HAL_DMA_IRQHandler+0xd2>
  21393. 80093bc: 687b ldr r3, [r7, #4]
  21394. 80093be: 681b ldr r3, [r3, #0]
  21395. 80093c0: 4a48 ldr r2, [pc, #288] @ (80094e4 <HAL_DMA_IRQHandler+0x1f0>)
  21396. 80093c2: 4293 cmp r3, r2
  21397. 80093c4: d101 bne.n 80093ca <HAL_DMA_IRQHandler+0xd6>
  21398. 80093c6: 2301 movs r3, #1
  21399. 80093c8: e000 b.n 80093cc <HAL_DMA_IRQHandler+0xd8>
  21400. 80093ca: 2300 movs r3, #0
  21401. 80093cc: 2b00 cmp r3, #0
  21402. 80093ce: f000 842b beq.w 8009c28 <HAL_DMA_IRQHandler+0x934>
  21403. {
  21404. /* Transfer Error Interrupt management ***************************************/
  21405. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21406. 80093d2: 687b ldr r3, [r7, #4]
  21407. 80093d4: 6ddb ldr r3, [r3, #92] @ 0x5c
  21408. 80093d6: f003 031f and.w r3, r3, #31
  21409. 80093da: 2208 movs r2, #8
  21410. 80093dc: 409a lsls r2, r3
  21411. 80093de: 69bb ldr r3, [r7, #24]
  21412. 80093e0: 4013 ands r3, r2
  21413. 80093e2: 2b00 cmp r3, #0
  21414. 80093e4: f000 80a2 beq.w 800952c <HAL_DMA_IRQHandler+0x238>
  21415. {
  21416. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  21417. 80093e8: 687b ldr r3, [r7, #4]
  21418. 80093ea: 681b ldr r3, [r3, #0]
  21419. 80093ec: 4a2e ldr r2, [pc, #184] @ (80094a8 <HAL_DMA_IRQHandler+0x1b4>)
  21420. 80093ee: 4293 cmp r3, r2
  21421. 80093f0: d04a beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21422. 80093f2: 687b ldr r3, [r7, #4]
  21423. 80093f4: 681b ldr r3, [r3, #0]
  21424. 80093f6: 4a2d ldr r2, [pc, #180] @ (80094ac <HAL_DMA_IRQHandler+0x1b8>)
  21425. 80093f8: 4293 cmp r3, r2
  21426. 80093fa: d045 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21427. 80093fc: 687b ldr r3, [r7, #4]
  21428. 80093fe: 681b ldr r3, [r3, #0]
  21429. 8009400: 4a2b ldr r2, [pc, #172] @ (80094b0 <HAL_DMA_IRQHandler+0x1bc>)
  21430. 8009402: 4293 cmp r3, r2
  21431. 8009404: d040 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21432. 8009406: 687b ldr r3, [r7, #4]
  21433. 8009408: 681b ldr r3, [r3, #0]
  21434. 800940a: 4a2a ldr r2, [pc, #168] @ (80094b4 <HAL_DMA_IRQHandler+0x1c0>)
  21435. 800940c: 4293 cmp r3, r2
  21436. 800940e: d03b beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21437. 8009410: 687b ldr r3, [r7, #4]
  21438. 8009412: 681b ldr r3, [r3, #0]
  21439. 8009414: 4a28 ldr r2, [pc, #160] @ (80094b8 <HAL_DMA_IRQHandler+0x1c4>)
  21440. 8009416: 4293 cmp r3, r2
  21441. 8009418: d036 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21442. 800941a: 687b ldr r3, [r7, #4]
  21443. 800941c: 681b ldr r3, [r3, #0]
  21444. 800941e: 4a27 ldr r2, [pc, #156] @ (80094bc <HAL_DMA_IRQHandler+0x1c8>)
  21445. 8009420: 4293 cmp r3, r2
  21446. 8009422: d031 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21447. 8009424: 687b ldr r3, [r7, #4]
  21448. 8009426: 681b ldr r3, [r3, #0]
  21449. 8009428: 4a25 ldr r2, [pc, #148] @ (80094c0 <HAL_DMA_IRQHandler+0x1cc>)
  21450. 800942a: 4293 cmp r3, r2
  21451. 800942c: d02c beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21452. 800942e: 687b ldr r3, [r7, #4]
  21453. 8009430: 681b ldr r3, [r3, #0]
  21454. 8009432: 4a24 ldr r2, [pc, #144] @ (80094c4 <HAL_DMA_IRQHandler+0x1d0>)
  21455. 8009434: 4293 cmp r3, r2
  21456. 8009436: d027 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21457. 8009438: 687b ldr r3, [r7, #4]
  21458. 800943a: 681b ldr r3, [r3, #0]
  21459. 800943c: 4a22 ldr r2, [pc, #136] @ (80094c8 <HAL_DMA_IRQHandler+0x1d4>)
  21460. 800943e: 4293 cmp r3, r2
  21461. 8009440: d022 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21462. 8009442: 687b ldr r3, [r7, #4]
  21463. 8009444: 681b ldr r3, [r3, #0]
  21464. 8009446: 4a21 ldr r2, [pc, #132] @ (80094cc <HAL_DMA_IRQHandler+0x1d8>)
  21465. 8009448: 4293 cmp r3, r2
  21466. 800944a: d01d beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21467. 800944c: 687b ldr r3, [r7, #4]
  21468. 800944e: 681b ldr r3, [r3, #0]
  21469. 8009450: 4a1f ldr r2, [pc, #124] @ (80094d0 <HAL_DMA_IRQHandler+0x1dc>)
  21470. 8009452: 4293 cmp r3, r2
  21471. 8009454: d018 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21472. 8009456: 687b ldr r3, [r7, #4]
  21473. 8009458: 681b ldr r3, [r3, #0]
  21474. 800945a: 4a1e ldr r2, [pc, #120] @ (80094d4 <HAL_DMA_IRQHandler+0x1e0>)
  21475. 800945c: 4293 cmp r3, r2
  21476. 800945e: d013 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21477. 8009460: 687b ldr r3, [r7, #4]
  21478. 8009462: 681b ldr r3, [r3, #0]
  21479. 8009464: 4a1c ldr r2, [pc, #112] @ (80094d8 <HAL_DMA_IRQHandler+0x1e4>)
  21480. 8009466: 4293 cmp r3, r2
  21481. 8009468: d00e beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21482. 800946a: 687b ldr r3, [r7, #4]
  21483. 800946c: 681b ldr r3, [r3, #0]
  21484. 800946e: 4a1b ldr r2, [pc, #108] @ (80094dc <HAL_DMA_IRQHandler+0x1e8>)
  21485. 8009470: 4293 cmp r3, r2
  21486. 8009472: d009 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21487. 8009474: 687b ldr r3, [r7, #4]
  21488. 8009476: 681b ldr r3, [r3, #0]
  21489. 8009478: 4a19 ldr r2, [pc, #100] @ (80094e0 <HAL_DMA_IRQHandler+0x1ec>)
  21490. 800947a: 4293 cmp r3, r2
  21491. 800947c: d004 beq.n 8009488 <HAL_DMA_IRQHandler+0x194>
  21492. 800947e: 687b ldr r3, [r7, #4]
  21493. 8009480: 681b ldr r3, [r3, #0]
  21494. 8009482: 4a18 ldr r2, [pc, #96] @ (80094e4 <HAL_DMA_IRQHandler+0x1f0>)
  21495. 8009484: 4293 cmp r3, r2
  21496. 8009486: d12f bne.n 80094e8 <HAL_DMA_IRQHandler+0x1f4>
  21497. 8009488: 687b ldr r3, [r7, #4]
  21498. 800948a: 681b ldr r3, [r3, #0]
  21499. 800948c: 681b ldr r3, [r3, #0]
  21500. 800948e: f003 0304 and.w r3, r3, #4
  21501. 8009492: 2b00 cmp r3, #0
  21502. 8009494: bf14 ite ne
  21503. 8009496: 2301 movne r3, #1
  21504. 8009498: 2300 moveq r3, #0
  21505. 800949a: b2db uxtb r3, r3
  21506. 800949c: e02e b.n 80094fc <HAL_DMA_IRQHandler+0x208>
  21507. 800949e: bf00 nop
  21508. 80094a0: 24000034 .word 0x24000034
  21509. 80094a4: 1b4e81b5 .word 0x1b4e81b5
  21510. 80094a8: 40020010 .word 0x40020010
  21511. 80094ac: 40020028 .word 0x40020028
  21512. 80094b0: 40020040 .word 0x40020040
  21513. 80094b4: 40020058 .word 0x40020058
  21514. 80094b8: 40020070 .word 0x40020070
  21515. 80094bc: 40020088 .word 0x40020088
  21516. 80094c0: 400200a0 .word 0x400200a0
  21517. 80094c4: 400200b8 .word 0x400200b8
  21518. 80094c8: 40020410 .word 0x40020410
  21519. 80094cc: 40020428 .word 0x40020428
  21520. 80094d0: 40020440 .word 0x40020440
  21521. 80094d4: 40020458 .word 0x40020458
  21522. 80094d8: 40020470 .word 0x40020470
  21523. 80094dc: 40020488 .word 0x40020488
  21524. 80094e0: 400204a0 .word 0x400204a0
  21525. 80094e4: 400204b8 .word 0x400204b8
  21526. 80094e8: 687b ldr r3, [r7, #4]
  21527. 80094ea: 681b ldr r3, [r3, #0]
  21528. 80094ec: 681b ldr r3, [r3, #0]
  21529. 80094ee: f003 0308 and.w r3, r3, #8
  21530. 80094f2: 2b00 cmp r3, #0
  21531. 80094f4: bf14 ite ne
  21532. 80094f6: 2301 movne r3, #1
  21533. 80094f8: 2300 moveq r3, #0
  21534. 80094fa: b2db uxtb r3, r3
  21535. 80094fc: 2b00 cmp r3, #0
  21536. 80094fe: d015 beq.n 800952c <HAL_DMA_IRQHandler+0x238>
  21537. {
  21538. /* Disable the transfer error interrupt */
  21539. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  21540. 8009500: 687b ldr r3, [r7, #4]
  21541. 8009502: 681b ldr r3, [r3, #0]
  21542. 8009504: 681a ldr r2, [r3, #0]
  21543. 8009506: 687b ldr r3, [r7, #4]
  21544. 8009508: 681b ldr r3, [r3, #0]
  21545. 800950a: f022 0204 bic.w r2, r2, #4
  21546. 800950e: 601a str r2, [r3, #0]
  21547. /* Clear the transfer error flag */
  21548. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21549. 8009510: 687b ldr r3, [r7, #4]
  21550. 8009512: 6ddb ldr r3, [r3, #92] @ 0x5c
  21551. 8009514: f003 031f and.w r3, r3, #31
  21552. 8009518: 2208 movs r2, #8
  21553. 800951a: 409a lsls r2, r3
  21554. 800951c: 6a3b ldr r3, [r7, #32]
  21555. 800951e: 609a str r2, [r3, #8]
  21556. /* Update error code */
  21557. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  21558. 8009520: 687b ldr r3, [r7, #4]
  21559. 8009522: 6d5b ldr r3, [r3, #84] @ 0x54
  21560. 8009524: f043 0201 orr.w r2, r3, #1
  21561. 8009528: 687b ldr r3, [r7, #4]
  21562. 800952a: 655a str r2, [r3, #84] @ 0x54
  21563. }
  21564. }
  21565. /* FIFO Error Interrupt management ******************************************/
  21566. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21567. 800952c: 687b ldr r3, [r7, #4]
  21568. 800952e: 6ddb ldr r3, [r3, #92] @ 0x5c
  21569. 8009530: f003 031f and.w r3, r3, #31
  21570. 8009534: 69ba ldr r2, [r7, #24]
  21571. 8009536: fa22 f303 lsr.w r3, r2, r3
  21572. 800953a: f003 0301 and.w r3, r3, #1
  21573. 800953e: 2b00 cmp r3, #0
  21574. 8009540: d06e beq.n 8009620 <HAL_DMA_IRQHandler+0x32c>
  21575. {
  21576. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  21577. 8009542: 687b ldr r3, [r7, #4]
  21578. 8009544: 681b ldr r3, [r3, #0]
  21579. 8009546: 4a69 ldr r2, [pc, #420] @ (80096ec <HAL_DMA_IRQHandler+0x3f8>)
  21580. 8009548: 4293 cmp r3, r2
  21581. 800954a: d04a beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21582. 800954c: 687b ldr r3, [r7, #4]
  21583. 800954e: 681b ldr r3, [r3, #0]
  21584. 8009550: 4a67 ldr r2, [pc, #412] @ (80096f0 <HAL_DMA_IRQHandler+0x3fc>)
  21585. 8009552: 4293 cmp r3, r2
  21586. 8009554: d045 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21587. 8009556: 687b ldr r3, [r7, #4]
  21588. 8009558: 681b ldr r3, [r3, #0]
  21589. 800955a: 4a66 ldr r2, [pc, #408] @ (80096f4 <HAL_DMA_IRQHandler+0x400>)
  21590. 800955c: 4293 cmp r3, r2
  21591. 800955e: d040 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21592. 8009560: 687b ldr r3, [r7, #4]
  21593. 8009562: 681b ldr r3, [r3, #0]
  21594. 8009564: 4a64 ldr r2, [pc, #400] @ (80096f8 <HAL_DMA_IRQHandler+0x404>)
  21595. 8009566: 4293 cmp r3, r2
  21596. 8009568: d03b beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21597. 800956a: 687b ldr r3, [r7, #4]
  21598. 800956c: 681b ldr r3, [r3, #0]
  21599. 800956e: 4a63 ldr r2, [pc, #396] @ (80096fc <HAL_DMA_IRQHandler+0x408>)
  21600. 8009570: 4293 cmp r3, r2
  21601. 8009572: d036 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21602. 8009574: 687b ldr r3, [r7, #4]
  21603. 8009576: 681b ldr r3, [r3, #0]
  21604. 8009578: 4a61 ldr r2, [pc, #388] @ (8009700 <HAL_DMA_IRQHandler+0x40c>)
  21605. 800957a: 4293 cmp r3, r2
  21606. 800957c: d031 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21607. 800957e: 687b ldr r3, [r7, #4]
  21608. 8009580: 681b ldr r3, [r3, #0]
  21609. 8009582: 4a60 ldr r2, [pc, #384] @ (8009704 <HAL_DMA_IRQHandler+0x410>)
  21610. 8009584: 4293 cmp r3, r2
  21611. 8009586: d02c beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21612. 8009588: 687b ldr r3, [r7, #4]
  21613. 800958a: 681b ldr r3, [r3, #0]
  21614. 800958c: 4a5e ldr r2, [pc, #376] @ (8009708 <HAL_DMA_IRQHandler+0x414>)
  21615. 800958e: 4293 cmp r3, r2
  21616. 8009590: d027 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21617. 8009592: 687b ldr r3, [r7, #4]
  21618. 8009594: 681b ldr r3, [r3, #0]
  21619. 8009596: 4a5d ldr r2, [pc, #372] @ (800970c <HAL_DMA_IRQHandler+0x418>)
  21620. 8009598: 4293 cmp r3, r2
  21621. 800959a: d022 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21622. 800959c: 687b ldr r3, [r7, #4]
  21623. 800959e: 681b ldr r3, [r3, #0]
  21624. 80095a0: 4a5b ldr r2, [pc, #364] @ (8009710 <HAL_DMA_IRQHandler+0x41c>)
  21625. 80095a2: 4293 cmp r3, r2
  21626. 80095a4: d01d beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21627. 80095a6: 687b ldr r3, [r7, #4]
  21628. 80095a8: 681b ldr r3, [r3, #0]
  21629. 80095aa: 4a5a ldr r2, [pc, #360] @ (8009714 <HAL_DMA_IRQHandler+0x420>)
  21630. 80095ac: 4293 cmp r3, r2
  21631. 80095ae: d018 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21632. 80095b0: 687b ldr r3, [r7, #4]
  21633. 80095b2: 681b ldr r3, [r3, #0]
  21634. 80095b4: 4a58 ldr r2, [pc, #352] @ (8009718 <HAL_DMA_IRQHandler+0x424>)
  21635. 80095b6: 4293 cmp r3, r2
  21636. 80095b8: d013 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21637. 80095ba: 687b ldr r3, [r7, #4]
  21638. 80095bc: 681b ldr r3, [r3, #0]
  21639. 80095be: 4a57 ldr r2, [pc, #348] @ (800971c <HAL_DMA_IRQHandler+0x428>)
  21640. 80095c0: 4293 cmp r3, r2
  21641. 80095c2: d00e beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21642. 80095c4: 687b ldr r3, [r7, #4]
  21643. 80095c6: 681b ldr r3, [r3, #0]
  21644. 80095c8: 4a55 ldr r2, [pc, #340] @ (8009720 <HAL_DMA_IRQHandler+0x42c>)
  21645. 80095ca: 4293 cmp r3, r2
  21646. 80095cc: d009 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21647. 80095ce: 687b ldr r3, [r7, #4]
  21648. 80095d0: 681b ldr r3, [r3, #0]
  21649. 80095d2: 4a54 ldr r2, [pc, #336] @ (8009724 <HAL_DMA_IRQHandler+0x430>)
  21650. 80095d4: 4293 cmp r3, r2
  21651. 80095d6: d004 beq.n 80095e2 <HAL_DMA_IRQHandler+0x2ee>
  21652. 80095d8: 687b ldr r3, [r7, #4]
  21653. 80095da: 681b ldr r3, [r3, #0]
  21654. 80095dc: 4a52 ldr r2, [pc, #328] @ (8009728 <HAL_DMA_IRQHandler+0x434>)
  21655. 80095de: 4293 cmp r3, r2
  21656. 80095e0: d10a bne.n 80095f8 <HAL_DMA_IRQHandler+0x304>
  21657. 80095e2: 687b ldr r3, [r7, #4]
  21658. 80095e4: 681b ldr r3, [r3, #0]
  21659. 80095e6: 695b ldr r3, [r3, #20]
  21660. 80095e8: f003 0380 and.w r3, r3, #128 @ 0x80
  21661. 80095ec: 2b00 cmp r3, #0
  21662. 80095ee: bf14 ite ne
  21663. 80095f0: 2301 movne r3, #1
  21664. 80095f2: 2300 moveq r3, #0
  21665. 80095f4: b2db uxtb r3, r3
  21666. 80095f6: e003 b.n 8009600 <HAL_DMA_IRQHandler+0x30c>
  21667. 80095f8: 687b ldr r3, [r7, #4]
  21668. 80095fa: 681b ldr r3, [r3, #0]
  21669. 80095fc: 681b ldr r3, [r3, #0]
  21670. 80095fe: 2300 movs r3, #0
  21671. 8009600: 2b00 cmp r3, #0
  21672. 8009602: d00d beq.n 8009620 <HAL_DMA_IRQHandler+0x32c>
  21673. {
  21674. /* Clear the FIFO error flag */
  21675. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21676. 8009604: 687b ldr r3, [r7, #4]
  21677. 8009606: 6ddb ldr r3, [r3, #92] @ 0x5c
  21678. 8009608: f003 031f and.w r3, r3, #31
  21679. 800960c: 2201 movs r2, #1
  21680. 800960e: 409a lsls r2, r3
  21681. 8009610: 6a3b ldr r3, [r7, #32]
  21682. 8009612: 609a str r2, [r3, #8]
  21683. /* Update error code */
  21684. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  21685. 8009614: 687b ldr r3, [r7, #4]
  21686. 8009616: 6d5b ldr r3, [r3, #84] @ 0x54
  21687. 8009618: f043 0202 orr.w r2, r3, #2
  21688. 800961c: 687b ldr r3, [r7, #4]
  21689. 800961e: 655a str r2, [r3, #84] @ 0x54
  21690. }
  21691. }
  21692. /* Direct Mode Error Interrupt management ***********************************/
  21693. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21694. 8009620: 687b ldr r3, [r7, #4]
  21695. 8009622: 6ddb ldr r3, [r3, #92] @ 0x5c
  21696. 8009624: f003 031f and.w r3, r3, #31
  21697. 8009628: 2204 movs r2, #4
  21698. 800962a: 409a lsls r2, r3
  21699. 800962c: 69bb ldr r3, [r7, #24]
  21700. 800962e: 4013 ands r3, r2
  21701. 8009630: 2b00 cmp r3, #0
  21702. 8009632: f000 808f beq.w 8009754 <HAL_DMA_IRQHandler+0x460>
  21703. {
  21704. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  21705. 8009636: 687b ldr r3, [r7, #4]
  21706. 8009638: 681b ldr r3, [r3, #0]
  21707. 800963a: 4a2c ldr r2, [pc, #176] @ (80096ec <HAL_DMA_IRQHandler+0x3f8>)
  21708. 800963c: 4293 cmp r3, r2
  21709. 800963e: d04a beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21710. 8009640: 687b ldr r3, [r7, #4]
  21711. 8009642: 681b ldr r3, [r3, #0]
  21712. 8009644: 4a2a ldr r2, [pc, #168] @ (80096f0 <HAL_DMA_IRQHandler+0x3fc>)
  21713. 8009646: 4293 cmp r3, r2
  21714. 8009648: d045 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21715. 800964a: 687b ldr r3, [r7, #4]
  21716. 800964c: 681b ldr r3, [r3, #0]
  21717. 800964e: 4a29 ldr r2, [pc, #164] @ (80096f4 <HAL_DMA_IRQHandler+0x400>)
  21718. 8009650: 4293 cmp r3, r2
  21719. 8009652: d040 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21720. 8009654: 687b ldr r3, [r7, #4]
  21721. 8009656: 681b ldr r3, [r3, #0]
  21722. 8009658: 4a27 ldr r2, [pc, #156] @ (80096f8 <HAL_DMA_IRQHandler+0x404>)
  21723. 800965a: 4293 cmp r3, r2
  21724. 800965c: d03b beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21725. 800965e: 687b ldr r3, [r7, #4]
  21726. 8009660: 681b ldr r3, [r3, #0]
  21727. 8009662: 4a26 ldr r2, [pc, #152] @ (80096fc <HAL_DMA_IRQHandler+0x408>)
  21728. 8009664: 4293 cmp r3, r2
  21729. 8009666: d036 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21730. 8009668: 687b ldr r3, [r7, #4]
  21731. 800966a: 681b ldr r3, [r3, #0]
  21732. 800966c: 4a24 ldr r2, [pc, #144] @ (8009700 <HAL_DMA_IRQHandler+0x40c>)
  21733. 800966e: 4293 cmp r3, r2
  21734. 8009670: d031 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21735. 8009672: 687b ldr r3, [r7, #4]
  21736. 8009674: 681b ldr r3, [r3, #0]
  21737. 8009676: 4a23 ldr r2, [pc, #140] @ (8009704 <HAL_DMA_IRQHandler+0x410>)
  21738. 8009678: 4293 cmp r3, r2
  21739. 800967a: d02c beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21740. 800967c: 687b ldr r3, [r7, #4]
  21741. 800967e: 681b ldr r3, [r3, #0]
  21742. 8009680: 4a21 ldr r2, [pc, #132] @ (8009708 <HAL_DMA_IRQHandler+0x414>)
  21743. 8009682: 4293 cmp r3, r2
  21744. 8009684: d027 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21745. 8009686: 687b ldr r3, [r7, #4]
  21746. 8009688: 681b ldr r3, [r3, #0]
  21747. 800968a: 4a20 ldr r2, [pc, #128] @ (800970c <HAL_DMA_IRQHandler+0x418>)
  21748. 800968c: 4293 cmp r3, r2
  21749. 800968e: d022 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21750. 8009690: 687b ldr r3, [r7, #4]
  21751. 8009692: 681b ldr r3, [r3, #0]
  21752. 8009694: 4a1e ldr r2, [pc, #120] @ (8009710 <HAL_DMA_IRQHandler+0x41c>)
  21753. 8009696: 4293 cmp r3, r2
  21754. 8009698: d01d beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21755. 800969a: 687b ldr r3, [r7, #4]
  21756. 800969c: 681b ldr r3, [r3, #0]
  21757. 800969e: 4a1d ldr r2, [pc, #116] @ (8009714 <HAL_DMA_IRQHandler+0x420>)
  21758. 80096a0: 4293 cmp r3, r2
  21759. 80096a2: d018 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21760. 80096a4: 687b ldr r3, [r7, #4]
  21761. 80096a6: 681b ldr r3, [r3, #0]
  21762. 80096a8: 4a1b ldr r2, [pc, #108] @ (8009718 <HAL_DMA_IRQHandler+0x424>)
  21763. 80096aa: 4293 cmp r3, r2
  21764. 80096ac: d013 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21765. 80096ae: 687b ldr r3, [r7, #4]
  21766. 80096b0: 681b ldr r3, [r3, #0]
  21767. 80096b2: 4a1a ldr r2, [pc, #104] @ (800971c <HAL_DMA_IRQHandler+0x428>)
  21768. 80096b4: 4293 cmp r3, r2
  21769. 80096b6: d00e beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21770. 80096b8: 687b ldr r3, [r7, #4]
  21771. 80096ba: 681b ldr r3, [r3, #0]
  21772. 80096bc: 4a18 ldr r2, [pc, #96] @ (8009720 <HAL_DMA_IRQHandler+0x42c>)
  21773. 80096be: 4293 cmp r3, r2
  21774. 80096c0: d009 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21775. 80096c2: 687b ldr r3, [r7, #4]
  21776. 80096c4: 681b ldr r3, [r3, #0]
  21777. 80096c6: 4a17 ldr r2, [pc, #92] @ (8009724 <HAL_DMA_IRQHandler+0x430>)
  21778. 80096c8: 4293 cmp r3, r2
  21779. 80096ca: d004 beq.n 80096d6 <HAL_DMA_IRQHandler+0x3e2>
  21780. 80096cc: 687b ldr r3, [r7, #4]
  21781. 80096ce: 681b ldr r3, [r3, #0]
  21782. 80096d0: 4a15 ldr r2, [pc, #84] @ (8009728 <HAL_DMA_IRQHandler+0x434>)
  21783. 80096d2: 4293 cmp r3, r2
  21784. 80096d4: d12a bne.n 800972c <HAL_DMA_IRQHandler+0x438>
  21785. 80096d6: 687b ldr r3, [r7, #4]
  21786. 80096d8: 681b ldr r3, [r3, #0]
  21787. 80096da: 681b ldr r3, [r3, #0]
  21788. 80096dc: f003 0302 and.w r3, r3, #2
  21789. 80096e0: 2b00 cmp r3, #0
  21790. 80096e2: bf14 ite ne
  21791. 80096e4: 2301 movne r3, #1
  21792. 80096e6: 2300 moveq r3, #0
  21793. 80096e8: b2db uxtb r3, r3
  21794. 80096ea: e023 b.n 8009734 <HAL_DMA_IRQHandler+0x440>
  21795. 80096ec: 40020010 .word 0x40020010
  21796. 80096f0: 40020028 .word 0x40020028
  21797. 80096f4: 40020040 .word 0x40020040
  21798. 80096f8: 40020058 .word 0x40020058
  21799. 80096fc: 40020070 .word 0x40020070
  21800. 8009700: 40020088 .word 0x40020088
  21801. 8009704: 400200a0 .word 0x400200a0
  21802. 8009708: 400200b8 .word 0x400200b8
  21803. 800970c: 40020410 .word 0x40020410
  21804. 8009710: 40020428 .word 0x40020428
  21805. 8009714: 40020440 .word 0x40020440
  21806. 8009718: 40020458 .word 0x40020458
  21807. 800971c: 40020470 .word 0x40020470
  21808. 8009720: 40020488 .word 0x40020488
  21809. 8009724: 400204a0 .word 0x400204a0
  21810. 8009728: 400204b8 .word 0x400204b8
  21811. 800972c: 687b ldr r3, [r7, #4]
  21812. 800972e: 681b ldr r3, [r3, #0]
  21813. 8009730: 681b ldr r3, [r3, #0]
  21814. 8009732: 2300 movs r3, #0
  21815. 8009734: 2b00 cmp r3, #0
  21816. 8009736: d00d beq.n 8009754 <HAL_DMA_IRQHandler+0x460>
  21817. {
  21818. /* Clear the direct mode error flag */
  21819. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  21820. 8009738: 687b ldr r3, [r7, #4]
  21821. 800973a: 6ddb ldr r3, [r3, #92] @ 0x5c
  21822. 800973c: f003 031f and.w r3, r3, #31
  21823. 8009740: 2204 movs r2, #4
  21824. 8009742: 409a lsls r2, r3
  21825. 8009744: 6a3b ldr r3, [r7, #32]
  21826. 8009746: 609a str r2, [r3, #8]
  21827. /* Update error code */
  21828. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  21829. 8009748: 687b ldr r3, [r7, #4]
  21830. 800974a: 6d5b ldr r3, [r3, #84] @ 0x54
  21831. 800974c: f043 0204 orr.w r2, r3, #4
  21832. 8009750: 687b ldr r3, [r7, #4]
  21833. 8009752: 655a str r2, [r3, #84] @ 0x54
  21834. }
  21835. }
  21836. /* Half Transfer Complete Interrupt management ******************************/
  21837. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  21838. 8009754: 687b ldr r3, [r7, #4]
  21839. 8009756: 6ddb ldr r3, [r3, #92] @ 0x5c
  21840. 8009758: f003 031f and.w r3, r3, #31
  21841. 800975c: 2210 movs r2, #16
  21842. 800975e: 409a lsls r2, r3
  21843. 8009760: 69bb ldr r3, [r7, #24]
  21844. 8009762: 4013 ands r3, r2
  21845. 8009764: 2b00 cmp r3, #0
  21846. 8009766: f000 80a6 beq.w 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21847. {
  21848. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  21849. 800976a: 687b ldr r3, [r7, #4]
  21850. 800976c: 681b ldr r3, [r3, #0]
  21851. 800976e: 4a85 ldr r2, [pc, #532] @ (8009984 <HAL_DMA_IRQHandler+0x690>)
  21852. 8009770: 4293 cmp r3, r2
  21853. 8009772: d04a beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21854. 8009774: 687b ldr r3, [r7, #4]
  21855. 8009776: 681b ldr r3, [r3, #0]
  21856. 8009778: 4a83 ldr r2, [pc, #524] @ (8009988 <HAL_DMA_IRQHandler+0x694>)
  21857. 800977a: 4293 cmp r3, r2
  21858. 800977c: d045 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21859. 800977e: 687b ldr r3, [r7, #4]
  21860. 8009780: 681b ldr r3, [r3, #0]
  21861. 8009782: 4a82 ldr r2, [pc, #520] @ (800998c <HAL_DMA_IRQHandler+0x698>)
  21862. 8009784: 4293 cmp r3, r2
  21863. 8009786: d040 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21864. 8009788: 687b ldr r3, [r7, #4]
  21865. 800978a: 681b ldr r3, [r3, #0]
  21866. 800978c: 4a80 ldr r2, [pc, #512] @ (8009990 <HAL_DMA_IRQHandler+0x69c>)
  21867. 800978e: 4293 cmp r3, r2
  21868. 8009790: d03b beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21869. 8009792: 687b ldr r3, [r7, #4]
  21870. 8009794: 681b ldr r3, [r3, #0]
  21871. 8009796: 4a7f ldr r2, [pc, #508] @ (8009994 <HAL_DMA_IRQHandler+0x6a0>)
  21872. 8009798: 4293 cmp r3, r2
  21873. 800979a: d036 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21874. 800979c: 687b ldr r3, [r7, #4]
  21875. 800979e: 681b ldr r3, [r3, #0]
  21876. 80097a0: 4a7d ldr r2, [pc, #500] @ (8009998 <HAL_DMA_IRQHandler+0x6a4>)
  21877. 80097a2: 4293 cmp r3, r2
  21878. 80097a4: d031 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21879. 80097a6: 687b ldr r3, [r7, #4]
  21880. 80097a8: 681b ldr r3, [r3, #0]
  21881. 80097aa: 4a7c ldr r2, [pc, #496] @ (800999c <HAL_DMA_IRQHandler+0x6a8>)
  21882. 80097ac: 4293 cmp r3, r2
  21883. 80097ae: d02c beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21884. 80097b0: 687b ldr r3, [r7, #4]
  21885. 80097b2: 681b ldr r3, [r3, #0]
  21886. 80097b4: 4a7a ldr r2, [pc, #488] @ (80099a0 <HAL_DMA_IRQHandler+0x6ac>)
  21887. 80097b6: 4293 cmp r3, r2
  21888. 80097b8: d027 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21889. 80097ba: 687b ldr r3, [r7, #4]
  21890. 80097bc: 681b ldr r3, [r3, #0]
  21891. 80097be: 4a79 ldr r2, [pc, #484] @ (80099a4 <HAL_DMA_IRQHandler+0x6b0>)
  21892. 80097c0: 4293 cmp r3, r2
  21893. 80097c2: d022 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21894. 80097c4: 687b ldr r3, [r7, #4]
  21895. 80097c6: 681b ldr r3, [r3, #0]
  21896. 80097c8: 4a77 ldr r2, [pc, #476] @ (80099a8 <HAL_DMA_IRQHandler+0x6b4>)
  21897. 80097ca: 4293 cmp r3, r2
  21898. 80097cc: d01d beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21899. 80097ce: 687b ldr r3, [r7, #4]
  21900. 80097d0: 681b ldr r3, [r3, #0]
  21901. 80097d2: 4a76 ldr r2, [pc, #472] @ (80099ac <HAL_DMA_IRQHandler+0x6b8>)
  21902. 80097d4: 4293 cmp r3, r2
  21903. 80097d6: d018 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21904. 80097d8: 687b ldr r3, [r7, #4]
  21905. 80097da: 681b ldr r3, [r3, #0]
  21906. 80097dc: 4a74 ldr r2, [pc, #464] @ (80099b0 <HAL_DMA_IRQHandler+0x6bc>)
  21907. 80097de: 4293 cmp r3, r2
  21908. 80097e0: d013 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21909. 80097e2: 687b ldr r3, [r7, #4]
  21910. 80097e4: 681b ldr r3, [r3, #0]
  21911. 80097e6: 4a73 ldr r2, [pc, #460] @ (80099b4 <HAL_DMA_IRQHandler+0x6c0>)
  21912. 80097e8: 4293 cmp r3, r2
  21913. 80097ea: d00e beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21914. 80097ec: 687b ldr r3, [r7, #4]
  21915. 80097ee: 681b ldr r3, [r3, #0]
  21916. 80097f0: 4a71 ldr r2, [pc, #452] @ (80099b8 <HAL_DMA_IRQHandler+0x6c4>)
  21917. 80097f2: 4293 cmp r3, r2
  21918. 80097f4: d009 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21919. 80097f6: 687b ldr r3, [r7, #4]
  21920. 80097f8: 681b ldr r3, [r3, #0]
  21921. 80097fa: 4a70 ldr r2, [pc, #448] @ (80099bc <HAL_DMA_IRQHandler+0x6c8>)
  21922. 80097fc: 4293 cmp r3, r2
  21923. 80097fe: d004 beq.n 800980a <HAL_DMA_IRQHandler+0x516>
  21924. 8009800: 687b ldr r3, [r7, #4]
  21925. 8009802: 681b ldr r3, [r3, #0]
  21926. 8009804: 4a6e ldr r2, [pc, #440] @ (80099c0 <HAL_DMA_IRQHandler+0x6cc>)
  21927. 8009806: 4293 cmp r3, r2
  21928. 8009808: d10a bne.n 8009820 <HAL_DMA_IRQHandler+0x52c>
  21929. 800980a: 687b ldr r3, [r7, #4]
  21930. 800980c: 681b ldr r3, [r3, #0]
  21931. 800980e: 681b ldr r3, [r3, #0]
  21932. 8009810: f003 0308 and.w r3, r3, #8
  21933. 8009814: 2b00 cmp r3, #0
  21934. 8009816: bf14 ite ne
  21935. 8009818: 2301 movne r3, #1
  21936. 800981a: 2300 moveq r3, #0
  21937. 800981c: b2db uxtb r3, r3
  21938. 800981e: e009 b.n 8009834 <HAL_DMA_IRQHandler+0x540>
  21939. 8009820: 687b ldr r3, [r7, #4]
  21940. 8009822: 681b ldr r3, [r3, #0]
  21941. 8009824: 681b ldr r3, [r3, #0]
  21942. 8009826: f003 0304 and.w r3, r3, #4
  21943. 800982a: 2b00 cmp r3, #0
  21944. 800982c: bf14 ite ne
  21945. 800982e: 2301 movne r3, #1
  21946. 8009830: 2300 moveq r3, #0
  21947. 8009832: b2db uxtb r3, r3
  21948. 8009834: 2b00 cmp r3, #0
  21949. 8009836: d03e beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21950. {
  21951. /* Clear the half transfer complete flag */
  21952. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  21953. 8009838: 687b ldr r3, [r7, #4]
  21954. 800983a: 6ddb ldr r3, [r3, #92] @ 0x5c
  21955. 800983c: f003 031f and.w r3, r3, #31
  21956. 8009840: 2210 movs r2, #16
  21957. 8009842: 409a lsls r2, r3
  21958. 8009844: 6a3b ldr r3, [r7, #32]
  21959. 8009846: 609a str r2, [r3, #8]
  21960. /* Multi_Buffering mode enabled */
  21961. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  21962. 8009848: 687b ldr r3, [r7, #4]
  21963. 800984a: 681b ldr r3, [r3, #0]
  21964. 800984c: 681b ldr r3, [r3, #0]
  21965. 800984e: f403 2380 and.w r3, r3, #262144 @ 0x40000
  21966. 8009852: 2b00 cmp r3, #0
  21967. 8009854: d018 beq.n 8009888 <HAL_DMA_IRQHandler+0x594>
  21968. {
  21969. /* Current memory buffer used is Memory 0 */
  21970. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  21971. 8009856: 687b ldr r3, [r7, #4]
  21972. 8009858: 681b ldr r3, [r3, #0]
  21973. 800985a: 681b ldr r3, [r3, #0]
  21974. 800985c: f403 2300 and.w r3, r3, #524288 @ 0x80000
  21975. 8009860: 2b00 cmp r3, #0
  21976. 8009862: d108 bne.n 8009876 <HAL_DMA_IRQHandler+0x582>
  21977. {
  21978. if(hdma->XferHalfCpltCallback != NULL)
  21979. 8009864: 687b ldr r3, [r7, #4]
  21980. 8009866: 6c1b ldr r3, [r3, #64] @ 0x40
  21981. 8009868: 2b00 cmp r3, #0
  21982. 800986a: d024 beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21983. {
  21984. /* Half transfer callback */
  21985. hdma->XferHalfCpltCallback(hdma);
  21986. 800986c: 687b ldr r3, [r7, #4]
  21987. 800986e: 6c1b ldr r3, [r3, #64] @ 0x40
  21988. 8009870: 6878 ldr r0, [r7, #4]
  21989. 8009872: 4798 blx r3
  21990. 8009874: e01f b.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  21991. }
  21992. }
  21993. /* Current memory buffer used is Memory 1 */
  21994. else
  21995. {
  21996. if(hdma->XferM1HalfCpltCallback != NULL)
  21997. 8009876: 687b ldr r3, [r7, #4]
  21998. 8009878: 6c9b ldr r3, [r3, #72] @ 0x48
  21999. 800987a: 2b00 cmp r3, #0
  22000. 800987c: d01b beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  22001. {
  22002. /* Half transfer callback */
  22003. hdma->XferM1HalfCpltCallback(hdma);
  22004. 800987e: 687b ldr r3, [r7, #4]
  22005. 8009880: 6c9b ldr r3, [r3, #72] @ 0x48
  22006. 8009882: 6878 ldr r0, [r7, #4]
  22007. 8009884: 4798 blx r3
  22008. 8009886: e016 b.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  22009. }
  22010. }
  22011. else
  22012. {
  22013. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  22014. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  22015. 8009888: 687b ldr r3, [r7, #4]
  22016. 800988a: 681b ldr r3, [r3, #0]
  22017. 800988c: 681b ldr r3, [r3, #0]
  22018. 800988e: f403 7380 and.w r3, r3, #256 @ 0x100
  22019. 8009892: 2b00 cmp r3, #0
  22020. 8009894: d107 bne.n 80098a6 <HAL_DMA_IRQHandler+0x5b2>
  22021. {
  22022. /* Disable the half transfer interrupt */
  22023. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  22024. 8009896: 687b ldr r3, [r7, #4]
  22025. 8009898: 681b ldr r3, [r3, #0]
  22026. 800989a: 681a ldr r2, [r3, #0]
  22027. 800989c: 687b ldr r3, [r7, #4]
  22028. 800989e: 681b ldr r3, [r3, #0]
  22029. 80098a0: f022 0208 bic.w r2, r2, #8
  22030. 80098a4: 601a str r2, [r3, #0]
  22031. }
  22032. if(hdma->XferHalfCpltCallback != NULL)
  22033. 80098a6: 687b ldr r3, [r7, #4]
  22034. 80098a8: 6c1b ldr r3, [r3, #64] @ 0x40
  22035. 80098aa: 2b00 cmp r3, #0
  22036. 80098ac: d003 beq.n 80098b6 <HAL_DMA_IRQHandler+0x5c2>
  22037. {
  22038. /* Half transfer callback */
  22039. hdma->XferHalfCpltCallback(hdma);
  22040. 80098ae: 687b ldr r3, [r7, #4]
  22041. 80098b0: 6c1b ldr r3, [r3, #64] @ 0x40
  22042. 80098b2: 6878 ldr r0, [r7, #4]
  22043. 80098b4: 4798 blx r3
  22044. }
  22045. }
  22046. }
  22047. }
  22048. /* Transfer Complete Interrupt management ***********************************/
  22049. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22050. 80098b6: 687b ldr r3, [r7, #4]
  22051. 80098b8: 6ddb ldr r3, [r3, #92] @ 0x5c
  22052. 80098ba: f003 031f and.w r3, r3, #31
  22053. 80098be: 2220 movs r2, #32
  22054. 80098c0: 409a lsls r2, r3
  22055. 80098c2: 69bb ldr r3, [r7, #24]
  22056. 80098c4: 4013 ands r3, r2
  22057. 80098c6: 2b00 cmp r3, #0
  22058. 80098c8: f000 8110 beq.w 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22059. {
  22060. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  22061. 80098cc: 687b ldr r3, [r7, #4]
  22062. 80098ce: 681b ldr r3, [r3, #0]
  22063. 80098d0: 4a2c ldr r2, [pc, #176] @ (8009984 <HAL_DMA_IRQHandler+0x690>)
  22064. 80098d2: 4293 cmp r3, r2
  22065. 80098d4: d04a beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22066. 80098d6: 687b ldr r3, [r7, #4]
  22067. 80098d8: 681b ldr r3, [r3, #0]
  22068. 80098da: 4a2b ldr r2, [pc, #172] @ (8009988 <HAL_DMA_IRQHandler+0x694>)
  22069. 80098dc: 4293 cmp r3, r2
  22070. 80098de: d045 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22071. 80098e0: 687b ldr r3, [r7, #4]
  22072. 80098e2: 681b ldr r3, [r3, #0]
  22073. 80098e4: 4a29 ldr r2, [pc, #164] @ (800998c <HAL_DMA_IRQHandler+0x698>)
  22074. 80098e6: 4293 cmp r3, r2
  22075. 80098e8: d040 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22076. 80098ea: 687b ldr r3, [r7, #4]
  22077. 80098ec: 681b ldr r3, [r3, #0]
  22078. 80098ee: 4a28 ldr r2, [pc, #160] @ (8009990 <HAL_DMA_IRQHandler+0x69c>)
  22079. 80098f0: 4293 cmp r3, r2
  22080. 80098f2: d03b beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22081. 80098f4: 687b ldr r3, [r7, #4]
  22082. 80098f6: 681b ldr r3, [r3, #0]
  22083. 80098f8: 4a26 ldr r2, [pc, #152] @ (8009994 <HAL_DMA_IRQHandler+0x6a0>)
  22084. 80098fa: 4293 cmp r3, r2
  22085. 80098fc: d036 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22086. 80098fe: 687b ldr r3, [r7, #4]
  22087. 8009900: 681b ldr r3, [r3, #0]
  22088. 8009902: 4a25 ldr r2, [pc, #148] @ (8009998 <HAL_DMA_IRQHandler+0x6a4>)
  22089. 8009904: 4293 cmp r3, r2
  22090. 8009906: d031 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22091. 8009908: 687b ldr r3, [r7, #4]
  22092. 800990a: 681b ldr r3, [r3, #0]
  22093. 800990c: 4a23 ldr r2, [pc, #140] @ (800999c <HAL_DMA_IRQHandler+0x6a8>)
  22094. 800990e: 4293 cmp r3, r2
  22095. 8009910: d02c beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22096. 8009912: 687b ldr r3, [r7, #4]
  22097. 8009914: 681b ldr r3, [r3, #0]
  22098. 8009916: 4a22 ldr r2, [pc, #136] @ (80099a0 <HAL_DMA_IRQHandler+0x6ac>)
  22099. 8009918: 4293 cmp r3, r2
  22100. 800991a: d027 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22101. 800991c: 687b ldr r3, [r7, #4]
  22102. 800991e: 681b ldr r3, [r3, #0]
  22103. 8009920: 4a20 ldr r2, [pc, #128] @ (80099a4 <HAL_DMA_IRQHandler+0x6b0>)
  22104. 8009922: 4293 cmp r3, r2
  22105. 8009924: d022 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22106. 8009926: 687b ldr r3, [r7, #4]
  22107. 8009928: 681b ldr r3, [r3, #0]
  22108. 800992a: 4a1f ldr r2, [pc, #124] @ (80099a8 <HAL_DMA_IRQHandler+0x6b4>)
  22109. 800992c: 4293 cmp r3, r2
  22110. 800992e: d01d beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22111. 8009930: 687b ldr r3, [r7, #4]
  22112. 8009932: 681b ldr r3, [r3, #0]
  22113. 8009934: 4a1d ldr r2, [pc, #116] @ (80099ac <HAL_DMA_IRQHandler+0x6b8>)
  22114. 8009936: 4293 cmp r3, r2
  22115. 8009938: d018 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22116. 800993a: 687b ldr r3, [r7, #4]
  22117. 800993c: 681b ldr r3, [r3, #0]
  22118. 800993e: 4a1c ldr r2, [pc, #112] @ (80099b0 <HAL_DMA_IRQHandler+0x6bc>)
  22119. 8009940: 4293 cmp r3, r2
  22120. 8009942: d013 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22121. 8009944: 687b ldr r3, [r7, #4]
  22122. 8009946: 681b ldr r3, [r3, #0]
  22123. 8009948: 4a1a ldr r2, [pc, #104] @ (80099b4 <HAL_DMA_IRQHandler+0x6c0>)
  22124. 800994a: 4293 cmp r3, r2
  22125. 800994c: d00e beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22126. 800994e: 687b ldr r3, [r7, #4]
  22127. 8009950: 681b ldr r3, [r3, #0]
  22128. 8009952: 4a19 ldr r2, [pc, #100] @ (80099b8 <HAL_DMA_IRQHandler+0x6c4>)
  22129. 8009954: 4293 cmp r3, r2
  22130. 8009956: d009 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22131. 8009958: 687b ldr r3, [r7, #4]
  22132. 800995a: 681b ldr r3, [r3, #0]
  22133. 800995c: 4a17 ldr r2, [pc, #92] @ (80099bc <HAL_DMA_IRQHandler+0x6c8>)
  22134. 800995e: 4293 cmp r3, r2
  22135. 8009960: d004 beq.n 800996c <HAL_DMA_IRQHandler+0x678>
  22136. 8009962: 687b ldr r3, [r7, #4]
  22137. 8009964: 681b ldr r3, [r3, #0]
  22138. 8009966: 4a16 ldr r2, [pc, #88] @ (80099c0 <HAL_DMA_IRQHandler+0x6cc>)
  22139. 8009968: 4293 cmp r3, r2
  22140. 800996a: d12b bne.n 80099c4 <HAL_DMA_IRQHandler+0x6d0>
  22141. 800996c: 687b ldr r3, [r7, #4]
  22142. 800996e: 681b ldr r3, [r3, #0]
  22143. 8009970: 681b ldr r3, [r3, #0]
  22144. 8009972: f003 0310 and.w r3, r3, #16
  22145. 8009976: 2b00 cmp r3, #0
  22146. 8009978: bf14 ite ne
  22147. 800997a: 2301 movne r3, #1
  22148. 800997c: 2300 moveq r3, #0
  22149. 800997e: b2db uxtb r3, r3
  22150. 8009980: e02a b.n 80099d8 <HAL_DMA_IRQHandler+0x6e4>
  22151. 8009982: bf00 nop
  22152. 8009984: 40020010 .word 0x40020010
  22153. 8009988: 40020028 .word 0x40020028
  22154. 800998c: 40020040 .word 0x40020040
  22155. 8009990: 40020058 .word 0x40020058
  22156. 8009994: 40020070 .word 0x40020070
  22157. 8009998: 40020088 .word 0x40020088
  22158. 800999c: 400200a0 .word 0x400200a0
  22159. 80099a0: 400200b8 .word 0x400200b8
  22160. 80099a4: 40020410 .word 0x40020410
  22161. 80099a8: 40020428 .word 0x40020428
  22162. 80099ac: 40020440 .word 0x40020440
  22163. 80099b0: 40020458 .word 0x40020458
  22164. 80099b4: 40020470 .word 0x40020470
  22165. 80099b8: 40020488 .word 0x40020488
  22166. 80099bc: 400204a0 .word 0x400204a0
  22167. 80099c0: 400204b8 .word 0x400204b8
  22168. 80099c4: 687b ldr r3, [r7, #4]
  22169. 80099c6: 681b ldr r3, [r3, #0]
  22170. 80099c8: 681b ldr r3, [r3, #0]
  22171. 80099ca: f003 0302 and.w r3, r3, #2
  22172. 80099ce: 2b00 cmp r3, #0
  22173. 80099d0: bf14 ite ne
  22174. 80099d2: 2301 movne r3, #1
  22175. 80099d4: 2300 moveq r3, #0
  22176. 80099d6: b2db uxtb r3, r3
  22177. 80099d8: 2b00 cmp r3, #0
  22178. 80099da: f000 8087 beq.w 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22179. {
  22180. /* Clear the transfer complete flag */
  22181. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  22182. 80099de: 687b ldr r3, [r7, #4]
  22183. 80099e0: 6ddb ldr r3, [r3, #92] @ 0x5c
  22184. 80099e2: f003 031f and.w r3, r3, #31
  22185. 80099e6: 2220 movs r2, #32
  22186. 80099e8: 409a lsls r2, r3
  22187. 80099ea: 6a3b ldr r3, [r7, #32]
  22188. 80099ec: 609a str r2, [r3, #8]
  22189. if(HAL_DMA_STATE_ABORT == hdma->State)
  22190. 80099ee: 687b ldr r3, [r7, #4]
  22191. 80099f0: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  22192. 80099f4: b2db uxtb r3, r3
  22193. 80099f6: 2b04 cmp r3, #4
  22194. 80099f8: d139 bne.n 8009a6e <HAL_DMA_IRQHandler+0x77a>
  22195. {
  22196. /* Disable all the transfer interrupts */
  22197. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  22198. 80099fa: 687b ldr r3, [r7, #4]
  22199. 80099fc: 681b ldr r3, [r3, #0]
  22200. 80099fe: 681a ldr r2, [r3, #0]
  22201. 8009a00: 687b ldr r3, [r7, #4]
  22202. 8009a02: 681b ldr r3, [r3, #0]
  22203. 8009a04: f022 0216 bic.w r2, r2, #22
  22204. 8009a08: 601a str r2, [r3, #0]
  22205. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  22206. 8009a0a: 687b ldr r3, [r7, #4]
  22207. 8009a0c: 681b ldr r3, [r3, #0]
  22208. 8009a0e: 695a ldr r2, [r3, #20]
  22209. 8009a10: 687b ldr r3, [r7, #4]
  22210. 8009a12: 681b ldr r3, [r3, #0]
  22211. 8009a14: f022 0280 bic.w r2, r2, #128 @ 0x80
  22212. 8009a18: 615a str r2, [r3, #20]
  22213. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  22214. 8009a1a: 687b ldr r3, [r7, #4]
  22215. 8009a1c: 6c1b ldr r3, [r3, #64] @ 0x40
  22216. 8009a1e: 2b00 cmp r3, #0
  22217. 8009a20: d103 bne.n 8009a2a <HAL_DMA_IRQHandler+0x736>
  22218. 8009a22: 687b ldr r3, [r7, #4]
  22219. 8009a24: 6c9b ldr r3, [r3, #72] @ 0x48
  22220. 8009a26: 2b00 cmp r3, #0
  22221. 8009a28: d007 beq.n 8009a3a <HAL_DMA_IRQHandler+0x746>
  22222. {
  22223. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  22224. 8009a2a: 687b ldr r3, [r7, #4]
  22225. 8009a2c: 681b ldr r3, [r3, #0]
  22226. 8009a2e: 681a ldr r2, [r3, #0]
  22227. 8009a30: 687b ldr r3, [r7, #4]
  22228. 8009a32: 681b ldr r3, [r3, #0]
  22229. 8009a34: f022 0208 bic.w r2, r2, #8
  22230. 8009a38: 601a str r2, [r3, #0]
  22231. }
  22232. /* Clear all interrupt flags at correct offset within the register */
  22233. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  22234. 8009a3a: 687b ldr r3, [r7, #4]
  22235. 8009a3c: 6ddb ldr r3, [r3, #92] @ 0x5c
  22236. 8009a3e: f003 031f and.w r3, r3, #31
  22237. 8009a42: 223f movs r2, #63 @ 0x3f
  22238. 8009a44: 409a lsls r2, r3
  22239. 8009a46: 6a3b ldr r3, [r7, #32]
  22240. 8009a48: 609a str r2, [r3, #8]
  22241. /* Change the DMA state */
  22242. hdma->State = HAL_DMA_STATE_READY;
  22243. 8009a4a: 687b ldr r3, [r7, #4]
  22244. 8009a4c: 2201 movs r2, #1
  22245. 8009a4e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22246. /* Process Unlocked */
  22247. __HAL_UNLOCK(hdma);
  22248. 8009a52: 687b ldr r3, [r7, #4]
  22249. 8009a54: 2200 movs r2, #0
  22250. 8009a56: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22251. if(hdma->XferAbortCallback != NULL)
  22252. 8009a5a: 687b ldr r3, [r7, #4]
  22253. 8009a5c: 6d1b ldr r3, [r3, #80] @ 0x50
  22254. 8009a5e: 2b00 cmp r3, #0
  22255. 8009a60: f000 834a beq.w 800a0f8 <HAL_DMA_IRQHandler+0xe04>
  22256. {
  22257. hdma->XferAbortCallback(hdma);
  22258. 8009a64: 687b ldr r3, [r7, #4]
  22259. 8009a66: 6d1b ldr r3, [r3, #80] @ 0x50
  22260. 8009a68: 6878 ldr r0, [r7, #4]
  22261. 8009a6a: 4798 blx r3
  22262. }
  22263. return;
  22264. 8009a6c: e344 b.n 800a0f8 <HAL_DMA_IRQHandler+0xe04>
  22265. }
  22266. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  22267. 8009a6e: 687b ldr r3, [r7, #4]
  22268. 8009a70: 681b ldr r3, [r3, #0]
  22269. 8009a72: 681b ldr r3, [r3, #0]
  22270. 8009a74: f403 2380 and.w r3, r3, #262144 @ 0x40000
  22271. 8009a78: 2b00 cmp r3, #0
  22272. 8009a7a: d018 beq.n 8009aae <HAL_DMA_IRQHandler+0x7ba>
  22273. {
  22274. /* Current memory buffer used is Memory 0 */
  22275. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  22276. 8009a7c: 687b ldr r3, [r7, #4]
  22277. 8009a7e: 681b ldr r3, [r3, #0]
  22278. 8009a80: 681b ldr r3, [r3, #0]
  22279. 8009a82: f403 2300 and.w r3, r3, #524288 @ 0x80000
  22280. 8009a86: 2b00 cmp r3, #0
  22281. 8009a88: d108 bne.n 8009a9c <HAL_DMA_IRQHandler+0x7a8>
  22282. {
  22283. if(hdma->XferM1CpltCallback != NULL)
  22284. 8009a8a: 687b ldr r3, [r7, #4]
  22285. 8009a8c: 6c5b ldr r3, [r3, #68] @ 0x44
  22286. 8009a8e: 2b00 cmp r3, #0
  22287. 8009a90: d02c beq.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22288. {
  22289. /* Transfer complete Callback for memory1 */
  22290. hdma->XferM1CpltCallback(hdma);
  22291. 8009a92: 687b ldr r3, [r7, #4]
  22292. 8009a94: 6c5b ldr r3, [r3, #68] @ 0x44
  22293. 8009a96: 6878 ldr r0, [r7, #4]
  22294. 8009a98: 4798 blx r3
  22295. 8009a9a: e027 b.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22296. }
  22297. }
  22298. /* Current memory buffer used is Memory 1 */
  22299. else
  22300. {
  22301. if(hdma->XferCpltCallback != NULL)
  22302. 8009a9c: 687b ldr r3, [r7, #4]
  22303. 8009a9e: 6bdb ldr r3, [r3, #60] @ 0x3c
  22304. 8009aa0: 2b00 cmp r3, #0
  22305. 8009aa2: d023 beq.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22306. {
  22307. /* Transfer complete Callback for memory0 */
  22308. hdma->XferCpltCallback(hdma);
  22309. 8009aa4: 687b ldr r3, [r7, #4]
  22310. 8009aa6: 6bdb ldr r3, [r3, #60] @ 0x3c
  22311. 8009aa8: 6878 ldr r0, [r7, #4]
  22312. 8009aaa: 4798 blx r3
  22313. 8009aac: e01e b.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22314. }
  22315. }
  22316. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  22317. else
  22318. {
  22319. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  22320. 8009aae: 687b ldr r3, [r7, #4]
  22321. 8009ab0: 681b ldr r3, [r3, #0]
  22322. 8009ab2: 681b ldr r3, [r3, #0]
  22323. 8009ab4: f403 7380 and.w r3, r3, #256 @ 0x100
  22324. 8009ab8: 2b00 cmp r3, #0
  22325. 8009aba: d10f bne.n 8009adc <HAL_DMA_IRQHandler+0x7e8>
  22326. {
  22327. /* Disable the transfer complete interrupt */
  22328. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  22329. 8009abc: 687b ldr r3, [r7, #4]
  22330. 8009abe: 681b ldr r3, [r3, #0]
  22331. 8009ac0: 681a ldr r2, [r3, #0]
  22332. 8009ac2: 687b ldr r3, [r7, #4]
  22333. 8009ac4: 681b ldr r3, [r3, #0]
  22334. 8009ac6: f022 0210 bic.w r2, r2, #16
  22335. 8009aca: 601a str r2, [r3, #0]
  22336. /* Change the DMA state */
  22337. hdma->State = HAL_DMA_STATE_READY;
  22338. 8009acc: 687b ldr r3, [r7, #4]
  22339. 8009ace: 2201 movs r2, #1
  22340. 8009ad0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22341. /* Process Unlocked */
  22342. __HAL_UNLOCK(hdma);
  22343. 8009ad4: 687b ldr r3, [r7, #4]
  22344. 8009ad6: 2200 movs r2, #0
  22345. 8009ad8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22346. }
  22347. if(hdma->XferCpltCallback != NULL)
  22348. 8009adc: 687b ldr r3, [r7, #4]
  22349. 8009ade: 6bdb ldr r3, [r3, #60] @ 0x3c
  22350. 8009ae0: 2b00 cmp r3, #0
  22351. 8009ae2: d003 beq.n 8009aec <HAL_DMA_IRQHandler+0x7f8>
  22352. {
  22353. /* Transfer complete callback */
  22354. hdma->XferCpltCallback(hdma);
  22355. 8009ae4: 687b ldr r3, [r7, #4]
  22356. 8009ae6: 6bdb ldr r3, [r3, #60] @ 0x3c
  22357. 8009ae8: 6878 ldr r0, [r7, #4]
  22358. 8009aea: 4798 blx r3
  22359. }
  22360. }
  22361. }
  22362. /* manage error case */
  22363. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  22364. 8009aec: 687b ldr r3, [r7, #4]
  22365. 8009aee: 6d5b ldr r3, [r3, #84] @ 0x54
  22366. 8009af0: 2b00 cmp r3, #0
  22367. 8009af2: f000 8306 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22368. {
  22369. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  22370. 8009af6: 687b ldr r3, [r7, #4]
  22371. 8009af8: 6d5b ldr r3, [r3, #84] @ 0x54
  22372. 8009afa: f003 0301 and.w r3, r3, #1
  22373. 8009afe: 2b00 cmp r3, #0
  22374. 8009b00: f000 8088 beq.w 8009c14 <HAL_DMA_IRQHandler+0x920>
  22375. {
  22376. hdma->State = HAL_DMA_STATE_ABORT;
  22377. 8009b04: 687b ldr r3, [r7, #4]
  22378. 8009b06: 2204 movs r2, #4
  22379. 8009b08: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22380. /* Disable the stream */
  22381. __HAL_DMA_DISABLE(hdma);
  22382. 8009b0c: 687b ldr r3, [r7, #4]
  22383. 8009b0e: 681b ldr r3, [r3, #0]
  22384. 8009b10: 4a7a ldr r2, [pc, #488] @ (8009cfc <HAL_DMA_IRQHandler+0xa08>)
  22385. 8009b12: 4293 cmp r3, r2
  22386. 8009b14: d04a beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22387. 8009b16: 687b ldr r3, [r7, #4]
  22388. 8009b18: 681b ldr r3, [r3, #0]
  22389. 8009b1a: 4a79 ldr r2, [pc, #484] @ (8009d00 <HAL_DMA_IRQHandler+0xa0c>)
  22390. 8009b1c: 4293 cmp r3, r2
  22391. 8009b1e: d045 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22392. 8009b20: 687b ldr r3, [r7, #4]
  22393. 8009b22: 681b ldr r3, [r3, #0]
  22394. 8009b24: 4a77 ldr r2, [pc, #476] @ (8009d04 <HAL_DMA_IRQHandler+0xa10>)
  22395. 8009b26: 4293 cmp r3, r2
  22396. 8009b28: d040 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22397. 8009b2a: 687b ldr r3, [r7, #4]
  22398. 8009b2c: 681b ldr r3, [r3, #0]
  22399. 8009b2e: 4a76 ldr r2, [pc, #472] @ (8009d08 <HAL_DMA_IRQHandler+0xa14>)
  22400. 8009b30: 4293 cmp r3, r2
  22401. 8009b32: d03b beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22402. 8009b34: 687b ldr r3, [r7, #4]
  22403. 8009b36: 681b ldr r3, [r3, #0]
  22404. 8009b38: 4a74 ldr r2, [pc, #464] @ (8009d0c <HAL_DMA_IRQHandler+0xa18>)
  22405. 8009b3a: 4293 cmp r3, r2
  22406. 8009b3c: d036 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22407. 8009b3e: 687b ldr r3, [r7, #4]
  22408. 8009b40: 681b ldr r3, [r3, #0]
  22409. 8009b42: 4a73 ldr r2, [pc, #460] @ (8009d10 <HAL_DMA_IRQHandler+0xa1c>)
  22410. 8009b44: 4293 cmp r3, r2
  22411. 8009b46: d031 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22412. 8009b48: 687b ldr r3, [r7, #4]
  22413. 8009b4a: 681b ldr r3, [r3, #0]
  22414. 8009b4c: 4a71 ldr r2, [pc, #452] @ (8009d14 <HAL_DMA_IRQHandler+0xa20>)
  22415. 8009b4e: 4293 cmp r3, r2
  22416. 8009b50: d02c beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22417. 8009b52: 687b ldr r3, [r7, #4]
  22418. 8009b54: 681b ldr r3, [r3, #0]
  22419. 8009b56: 4a70 ldr r2, [pc, #448] @ (8009d18 <HAL_DMA_IRQHandler+0xa24>)
  22420. 8009b58: 4293 cmp r3, r2
  22421. 8009b5a: d027 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22422. 8009b5c: 687b ldr r3, [r7, #4]
  22423. 8009b5e: 681b ldr r3, [r3, #0]
  22424. 8009b60: 4a6e ldr r2, [pc, #440] @ (8009d1c <HAL_DMA_IRQHandler+0xa28>)
  22425. 8009b62: 4293 cmp r3, r2
  22426. 8009b64: d022 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22427. 8009b66: 687b ldr r3, [r7, #4]
  22428. 8009b68: 681b ldr r3, [r3, #0]
  22429. 8009b6a: 4a6d ldr r2, [pc, #436] @ (8009d20 <HAL_DMA_IRQHandler+0xa2c>)
  22430. 8009b6c: 4293 cmp r3, r2
  22431. 8009b6e: d01d beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22432. 8009b70: 687b ldr r3, [r7, #4]
  22433. 8009b72: 681b ldr r3, [r3, #0]
  22434. 8009b74: 4a6b ldr r2, [pc, #428] @ (8009d24 <HAL_DMA_IRQHandler+0xa30>)
  22435. 8009b76: 4293 cmp r3, r2
  22436. 8009b78: d018 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22437. 8009b7a: 687b ldr r3, [r7, #4]
  22438. 8009b7c: 681b ldr r3, [r3, #0]
  22439. 8009b7e: 4a6a ldr r2, [pc, #424] @ (8009d28 <HAL_DMA_IRQHandler+0xa34>)
  22440. 8009b80: 4293 cmp r3, r2
  22441. 8009b82: d013 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22442. 8009b84: 687b ldr r3, [r7, #4]
  22443. 8009b86: 681b ldr r3, [r3, #0]
  22444. 8009b88: 4a68 ldr r2, [pc, #416] @ (8009d2c <HAL_DMA_IRQHandler+0xa38>)
  22445. 8009b8a: 4293 cmp r3, r2
  22446. 8009b8c: d00e beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22447. 8009b8e: 687b ldr r3, [r7, #4]
  22448. 8009b90: 681b ldr r3, [r3, #0]
  22449. 8009b92: 4a67 ldr r2, [pc, #412] @ (8009d30 <HAL_DMA_IRQHandler+0xa3c>)
  22450. 8009b94: 4293 cmp r3, r2
  22451. 8009b96: d009 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22452. 8009b98: 687b ldr r3, [r7, #4]
  22453. 8009b9a: 681b ldr r3, [r3, #0]
  22454. 8009b9c: 4a65 ldr r2, [pc, #404] @ (8009d34 <HAL_DMA_IRQHandler+0xa40>)
  22455. 8009b9e: 4293 cmp r3, r2
  22456. 8009ba0: d004 beq.n 8009bac <HAL_DMA_IRQHandler+0x8b8>
  22457. 8009ba2: 687b ldr r3, [r7, #4]
  22458. 8009ba4: 681b ldr r3, [r3, #0]
  22459. 8009ba6: 4a64 ldr r2, [pc, #400] @ (8009d38 <HAL_DMA_IRQHandler+0xa44>)
  22460. 8009ba8: 4293 cmp r3, r2
  22461. 8009baa: d108 bne.n 8009bbe <HAL_DMA_IRQHandler+0x8ca>
  22462. 8009bac: 687b ldr r3, [r7, #4]
  22463. 8009bae: 681b ldr r3, [r3, #0]
  22464. 8009bb0: 681a ldr r2, [r3, #0]
  22465. 8009bb2: 687b ldr r3, [r7, #4]
  22466. 8009bb4: 681b ldr r3, [r3, #0]
  22467. 8009bb6: f022 0201 bic.w r2, r2, #1
  22468. 8009bba: 601a str r2, [r3, #0]
  22469. 8009bbc: e007 b.n 8009bce <HAL_DMA_IRQHandler+0x8da>
  22470. 8009bbe: 687b ldr r3, [r7, #4]
  22471. 8009bc0: 681b ldr r3, [r3, #0]
  22472. 8009bc2: 681a ldr r2, [r3, #0]
  22473. 8009bc4: 687b ldr r3, [r7, #4]
  22474. 8009bc6: 681b ldr r3, [r3, #0]
  22475. 8009bc8: f022 0201 bic.w r2, r2, #1
  22476. 8009bcc: 601a str r2, [r3, #0]
  22477. do
  22478. {
  22479. if (++count > timeout)
  22480. 8009bce: 68fb ldr r3, [r7, #12]
  22481. 8009bd0: 3301 adds r3, #1
  22482. 8009bd2: 60fb str r3, [r7, #12]
  22483. 8009bd4: 6a7a ldr r2, [r7, #36] @ 0x24
  22484. 8009bd6: 429a cmp r2, r3
  22485. 8009bd8: d307 bcc.n 8009bea <HAL_DMA_IRQHandler+0x8f6>
  22486. {
  22487. break;
  22488. }
  22489. }
  22490. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  22491. 8009bda: 687b ldr r3, [r7, #4]
  22492. 8009bdc: 681b ldr r3, [r3, #0]
  22493. 8009bde: 681b ldr r3, [r3, #0]
  22494. 8009be0: f003 0301 and.w r3, r3, #1
  22495. 8009be4: 2b00 cmp r3, #0
  22496. 8009be6: d1f2 bne.n 8009bce <HAL_DMA_IRQHandler+0x8da>
  22497. 8009be8: e000 b.n 8009bec <HAL_DMA_IRQHandler+0x8f8>
  22498. break;
  22499. 8009bea: bf00 nop
  22500. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  22501. 8009bec: 687b ldr r3, [r7, #4]
  22502. 8009bee: 681b ldr r3, [r3, #0]
  22503. 8009bf0: 681b ldr r3, [r3, #0]
  22504. 8009bf2: f003 0301 and.w r3, r3, #1
  22505. 8009bf6: 2b00 cmp r3, #0
  22506. 8009bf8: d004 beq.n 8009c04 <HAL_DMA_IRQHandler+0x910>
  22507. {
  22508. /* Change the DMA state to error if DMA disable fails */
  22509. hdma->State = HAL_DMA_STATE_ERROR;
  22510. 8009bfa: 687b ldr r3, [r7, #4]
  22511. 8009bfc: 2203 movs r2, #3
  22512. 8009bfe: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22513. 8009c02: e003 b.n 8009c0c <HAL_DMA_IRQHandler+0x918>
  22514. }
  22515. else
  22516. {
  22517. /* Change the DMA state to Ready if DMA disable success */
  22518. hdma->State = HAL_DMA_STATE_READY;
  22519. 8009c04: 687b ldr r3, [r7, #4]
  22520. 8009c06: 2201 movs r2, #1
  22521. 8009c08: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22522. }
  22523. /* Process Unlocked */
  22524. __HAL_UNLOCK(hdma);
  22525. 8009c0c: 687b ldr r3, [r7, #4]
  22526. 8009c0e: 2200 movs r2, #0
  22527. 8009c10: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22528. }
  22529. if(hdma->XferErrorCallback != NULL)
  22530. 8009c14: 687b ldr r3, [r7, #4]
  22531. 8009c16: 6cdb ldr r3, [r3, #76] @ 0x4c
  22532. 8009c18: 2b00 cmp r3, #0
  22533. 8009c1a: f000 8272 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22534. {
  22535. /* Transfer error callback */
  22536. hdma->XferErrorCallback(hdma);
  22537. 8009c1e: 687b ldr r3, [r7, #4]
  22538. 8009c20: 6cdb ldr r3, [r3, #76] @ 0x4c
  22539. 8009c22: 6878 ldr r0, [r7, #4]
  22540. 8009c24: 4798 blx r3
  22541. 8009c26: e26c b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22542. }
  22543. }
  22544. }
  22545. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  22546. 8009c28: 687b ldr r3, [r7, #4]
  22547. 8009c2a: 681b ldr r3, [r3, #0]
  22548. 8009c2c: 4a43 ldr r2, [pc, #268] @ (8009d3c <HAL_DMA_IRQHandler+0xa48>)
  22549. 8009c2e: 4293 cmp r3, r2
  22550. 8009c30: d022 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22551. 8009c32: 687b ldr r3, [r7, #4]
  22552. 8009c34: 681b ldr r3, [r3, #0]
  22553. 8009c36: 4a42 ldr r2, [pc, #264] @ (8009d40 <HAL_DMA_IRQHandler+0xa4c>)
  22554. 8009c38: 4293 cmp r3, r2
  22555. 8009c3a: d01d beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22556. 8009c3c: 687b ldr r3, [r7, #4]
  22557. 8009c3e: 681b ldr r3, [r3, #0]
  22558. 8009c40: 4a40 ldr r2, [pc, #256] @ (8009d44 <HAL_DMA_IRQHandler+0xa50>)
  22559. 8009c42: 4293 cmp r3, r2
  22560. 8009c44: d018 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22561. 8009c46: 687b ldr r3, [r7, #4]
  22562. 8009c48: 681b ldr r3, [r3, #0]
  22563. 8009c4a: 4a3f ldr r2, [pc, #252] @ (8009d48 <HAL_DMA_IRQHandler+0xa54>)
  22564. 8009c4c: 4293 cmp r3, r2
  22565. 8009c4e: d013 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22566. 8009c50: 687b ldr r3, [r7, #4]
  22567. 8009c52: 681b ldr r3, [r3, #0]
  22568. 8009c54: 4a3d ldr r2, [pc, #244] @ (8009d4c <HAL_DMA_IRQHandler+0xa58>)
  22569. 8009c56: 4293 cmp r3, r2
  22570. 8009c58: d00e beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22571. 8009c5a: 687b ldr r3, [r7, #4]
  22572. 8009c5c: 681b ldr r3, [r3, #0]
  22573. 8009c5e: 4a3c ldr r2, [pc, #240] @ (8009d50 <HAL_DMA_IRQHandler+0xa5c>)
  22574. 8009c60: 4293 cmp r3, r2
  22575. 8009c62: d009 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22576. 8009c64: 687b ldr r3, [r7, #4]
  22577. 8009c66: 681b ldr r3, [r3, #0]
  22578. 8009c68: 4a3a ldr r2, [pc, #232] @ (8009d54 <HAL_DMA_IRQHandler+0xa60>)
  22579. 8009c6a: 4293 cmp r3, r2
  22580. 8009c6c: d004 beq.n 8009c78 <HAL_DMA_IRQHandler+0x984>
  22581. 8009c6e: 687b ldr r3, [r7, #4]
  22582. 8009c70: 681b ldr r3, [r3, #0]
  22583. 8009c72: 4a39 ldr r2, [pc, #228] @ (8009d58 <HAL_DMA_IRQHandler+0xa64>)
  22584. 8009c74: 4293 cmp r3, r2
  22585. 8009c76: d101 bne.n 8009c7c <HAL_DMA_IRQHandler+0x988>
  22586. 8009c78: 2301 movs r3, #1
  22587. 8009c7a: e000 b.n 8009c7e <HAL_DMA_IRQHandler+0x98a>
  22588. 8009c7c: 2300 movs r3, #0
  22589. 8009c7e: 2b00 cmp r3, #0
  22590. 8009c80: f000 823f beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  22591. {
  22592. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  22593. 8009c84: 687b ldr r3, [r7, #4]
  22594. 8009c86: 681b ldr r3, [r3, #0]
  22595. 8009c88: 681b ldr r3, [r3, #0]
  22596. 8009c8a: 613b str r3, [r7, #16]
  22597. /* Half Transfer Complete Interrupt management ******************************/
  22598. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  22599. 8009c8c: 687b ldr r3, [r7, #4]
  22600. 8009c8e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22601. 8009c90: f003 031f and.w r3, r3, #31
  22602. 8009c94: 2204 movs r2, #4
  22603. 8009c96: 409a lsls r2, r3
  22604. 8009c98: 697b ldr r3, [r7, #20]
  22605. 8009c9a: 4013 ands r3, r2
  22606. 8009c9c: 2b00 cmp r3, #0
  22607. 8009c9e: f000 80cd beq.w 8009e3c <HAL_DMA_IRQHandler+0xb48>
  22608. 8009ca2: 693b ldr r3, [r7, #16]
  22609. 8009ca4: f003 0304 and.w r3, r3, #4
  22610. 8009ca8: 2b00 cmp r3, #0
  22611. 8009caa: f000 80c7 beq.w 8009e3c <HAL_DMA_IRQHandler+0xb48>
  22612. {
  22613. /* Clear the half transfer complete flag */
  22614. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  22615. 8009cae: 687b ldr r3, [r7, #4]
  22616. 8009cb0: 6ddb ldr r3, [r3, #92] @ 0x5c
  22617. 8009cb2: f003 031f and.w r3, r3, #31
  22618. 8009cb6: 2204 movs r2, #4
  22619. 8009cb8: 409a lsls r2, r3
  22620. 8009cba: 69fb ldr r3, [r7, #28]
  22621. 8009cbc: 605a str r2, [r3, #4]
  22622. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  22623. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22624. 8009cbe: 693b ldr r3, [r7, #16]
  22625. 8009cc0: f403 4300 and.w r3, r3, #32768 @ 0x8000
  22626. 8009cc4: 2b00 cmp r3, #0
  22627. 8009cc6: d049 beq.n 8009d5c <HAL_DMA_IRQHandler+0xa68>
  22628. {
  22629. /* Current memory buffer used is Memory 0 */
  22630. if((ccr_reg & BDMA_CCR_CT) == 0U)
  22631. 8009cc8: 693b ldr r3, [r7, #16]
  22632. 8009cca: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22633. 8009cce: 2b00 cmp r3, #0
  22634. 8009cd0: d109 bne.n 8009ce6 <HAL_DMA_IRQHandler+0x9f2>
  22635. {
  22636. if(hdma->XferM1HalfCpltCallback != NULL)
  22637. 8009cd2: 687b ldr r3, [r7, #4]
  22638. 8009cd4: 6c9b ldr r3, [r3, #72] @ 0x48
  22639. 8009cd6: 2b00 cmp r3, #0
  22640. 8009cd8: f000 8210 beq.w 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22641. {
  22642. /* Half transfer Callback for Memory 1 */
  22643. hdma->XferM1HalfCpltCallback(hdma);
  22644. 8009cdc: 687b ldr r3, [r7, #4]
  22645. 8009cde: 6c9b ldr r3, [r3, #72] @ 0x48
  22646. 8009ce0: 6878 ldr r0, [r7, #4]
  22647. 8009ce2: 4798 blx r3
  22648. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22649. 8009ce4: e20a b.n 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22650. }
  22651. }
  22652. /* Current memory buffer used is Memory 1 */
  22653. else
  22654. {
  22655. if(hdma->XferHalfCpltCallback != NULL)
  22656. 8009ce6: 687b ldr r3, [r7, #4]
  22657. 8009ce8: 6c1b ldr r3, [r3, #64] @ 0x40
  22658. 8009cea: 2b00 cmp r3, #0
  22659. 8009cec: f000 8206 beq.w 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22660. {
  22661. /* Half transfer Callback for Memory 0 */
  22662. hdma->XferHalfCpltCallback(hdma);
  22663. 8009cf0: 687b ldr r3, [r7, #4]
  22664. 8009cf2: 6c1b ldr r3, [r3, #64] @ 0x40
  22665. 8009cf4: 6878 ldr r0, [r7, #4]
  22666. 8009cf6: 4798 blx r3
  22667. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22668. 8009cf8: e200 b.n 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22669. 8009cfa: bf00 nop
  22670. 8009cfc: 40020010 .word 0x40020010
  22671. 8009d00: 40020028 .word 0x40020028
  22672. 8009d04: 40020040 .word 0x40020040
  22673. 8009d08: 40020058 .word 0x40020058
  22674. 8009d0c: 40020070 .word 0x40020070
  22675. 8009d10: 40020088 .word 0x40020088
  22676. 8009d14: 400200a0 .word 0x400200a0
  22677. 8009d18: 400200b8 .word 0x400200b8
  22678. 8009d1c: 40020410 .word 0x40020410
  22679. 8009d20: 40020428 .word 0x40020428
  22680. 8009d24: 40020440 .word 0x40020440
  22681. 8009d28: 40020458 .word 0x40020458
  22682. 8009d2c: 40020470 .word 0x40020470
  22683. 8009d30: 40020488 .word 0x40020488
  22684. 8009d34: 400204a0 .word 0x400204a0
  22685. 8009d38: 400204b8 .word 0x400204b8
  22686. 8009d3c: 58025408 .word 0x58025408
  22687. 8009d40: 5802541c .word 0x5802541c
  22688. 8009d44: 58025430 .word 0x58025430
  22689. 8009d48: 58025444 .word 0x58025444
  22690. 8009d4c: 58025458 .word 0x58025458
  22691. 8009d50: 5802546c .word 0x5802546c
  22692. 8009d54: 58025480 .word 0x58025480
  22693. 8009d58: 58025494 .word 0x58025494
  22694. }
  22695. }
  22696. }
  22697. else
  22698. {
  22699. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  22700. 8009d5c: 693b ldr r3, [r7, #16]
  22701. 8009d5e: f003 0320 and.w r3, r3, #32
  22702. 8009d62: 2b00 cmp r3, #0
  22703. 8009d64: d160 bne.n 8009e28 <HAL_DMA_IRQHandler+0xb34>
  22704. {
  22705. /* Disable the half transfer interrupt */
  22706. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  22707. 8009d66: 687b ldr r3, [r7, #4]
  22708. 8009d68: 681b ldr r3, [r3, #0]
  22709. 8009d6a: 4a7f ldr r2, [pc, #508] @ (8009f68 <HAL_DMA_IRQHandler+0xc74>)
  22710. 8009d6c: 4293 cmp r3, r2
  22711. 8009d6e: d04a beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22712. 8009d70: 687b ldr r3, [r7, #4]
  22713. 8009d72: 681b ldr r3, [r3, #0]
  22714. 8009d74: 4a7d ldr r2, [pc, #500] @ (8009f6c <HAL_DMA_IRQHandler+0xc78>)
  22715. 8009d76: 4293 cmp r3, r2
  22716. 8009d78: d045 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22717. 8009d7a: 687b ldr r3, [r7, #4]
  22718. 8009d7c: 681b ldr r3, [r3, #0]
  22719. 8009d7e: 4a7c ldr r2, [pc, #496] @ (8009f70 <HAL_DMA_IRQHandler+0xc7c>)
  22720. 8009d80: 4293 cmp r3, r2
  22721. 8009d82: d040 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22722. 8009d84: 687b ldr r3, [r7, #4]
  22723. 8009d86: 681b ldr r3, [r3, #0]
  22724. 8009d88: 4a7a ldr r2, [pc, #488] @ (8009f74 <HAL_DMA_IRQHandler+0xc80>)
  22725. 8009d8a: 4293 cmp r3, r2
  22726. 8009d8c: d03b beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22727. 8009d8e: 687b ldr r3, [r7, #4]
  22728. 8009d90: 681b ldr r3, [r3, #0]
  22729. 8009d92: 4a79 ldr r2, [pc, #484] @ (8009f78 <HAL_DMA_IRQHandler+0xc84>)
  22730. 8009d94: 4293 cmp r3, r2
  22731. 8009d96: d036 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22732. 8009d98: 687b ldr r3, [r7, #4]
  22733. 8009d9a: 681b ldr r3, [r3, #0]
  22734. 8009d9c: 4a77 ldr r2, [pc, #476] @ (8009f7c <HAL_DMA_IRQHandler+0xc88>)
  22735. 8009d9e: 4293 cmp r3, r2
  22736. 8009da0: d031 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22737. 8009da2: 687b ldr r3, [r7, #4]
  22738. 8009da4: 681b ldr r3, [r3, #0]
  22739. 8009da6: 4a76 ldr r2, [pc, #472] @ (8009f80 <HAL_DMA_IRQHandler+0xc8c>)
  22740. 8009da8: 4293 cmp r3, r2
  22741. 8009daa: d02c beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22742. 8009dac: 687b ldr r3, [r7, #4]
  22743. 8009dae: 681b ldr r3, [r3, #0]
  22744. 8009db0: 4a74 ldr r2, [pc, #464] @ (8009f84 <HAL_DMA_IRQHandler+0xc90>)
  22745. 8009db2: 4293 cmp r3, r2
  22746. 8009db4: d027 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22747. 8009db6: 687b ldr r3, [r7, #4]
  22748. 8009db8: 681b ldr r3, [r3, #0]
  22749. 8009dba: 4a73 ldr r2, [pc, #460] @ (8009f88 <HAL_DMA_IRQHandler+0xc94>)
  22750. 8009dbc: 4293 cmp r3, r2
  22751. 8009dbe: d022 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22752. 8009dc0: 687b ldr r3, [r7, #4]
  22753. 8009dc2: 681b ldr r3, [r3, #0]
  22754. 8009dc4: 4a71 ldr r2, [pc, #452] @ (8009f8c <HAL_DMA_IRQHandler+0xc98>)
  22755. 8009dc6: 4293 cmp r3, r2
  22756. 8009dc8: d01d beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22757. 8009dca: 687b ldr r3, [r7, #4]
  22758. 8009dcc: 681b ldr r3, [r3, #0]
  22759. 8009dce: 4a70 ldr r2, [pc, #448] @ (8009f90 <HAL_DMA_IRQHandler+0xc9c>)
  22760. 8009dd0: 4293 cmp r3, r2
  22761. 8009dd2: d018 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22762. 8009dd4: 687b ldr r3, [r7, #4]
  22763. 8009dd6: 681b ldr r3, [r3, #0]
  22764. 8009dd8: 4a6e ldr r2, [pc, #440] @ (8009f94 <HAL_DMA_IRQHandler+0xca0>)
  22765. 8009dda: 4293 cmp r3, r2
  22766. 8009ddc: d013 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22767. 8009dde: 687b ldr r3, [r7, #4]
  22768. 8009de0: 681b ldr r3, [r3, #0]
  22769. 8009de2: 4a6d ldr r2, [pc, #436] @ (8009f98 <HAL_DMA_IRQHandler+0xca4>)
  22770. 8009de4: 4293 cmp r3, r2
  22771. 8009de6: d00e beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22772. 8009de8: 687b ldr r3, [r7, #4]
  22773. 8009dea: 681b ldr r3, [r3, #0]
  22774. 8009dec: 4a6b ldr r2, [pc, #428] @ (8009f9c <HAL_DMA_IRQHandler+0xca8>)
  22775. 8009dee: 4293 cmp r3, r2
  22776. 8009df0: d009 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22777. 8009df2: 687b ldr r3, [r7, #4]
  22778. 8009df4: 681b ldr r3, [r3, #0]
  22779. 8009df6: 4a6a ldr r2, [pc, #424] @ (8009fa0 <HAL_DMA_IRQHandler+0xcac>)
  22780. 8009df8: 4293 cmp r3, r2
  22781. 8009dfa: d004 beq.n 8009e06 <HAL_DMA_IRQHandler+0xb12>
  22782. 8009dfc: 687b ldr r3, [r7, #4]
  22783. 8009dfe: 681b ldr r3, [r3, #0]
  22784. 8009e00: 4a68 ldr r2, [pc, #416] @ (8009fa4 <HAL_DMA_IRQHandler+0xcb0>)
  22785. 8009e02: 4293 cmp r3, r2
  22786. 8009e04: d108 bne.n 8009e18 <HAL_DMA_IRQHandler+0xb24>
  22787. 8009e06: 687b ldr r3, [r7, #4]
  22788. 8009e08: 681b ldr r3, [r3, #0]
  22789. 8009e0a: 681a ldr r2, [r3, #0]
  22790. 8009e0c: 687b ldr r3, [r7, #4]
  22791. 8009e0e: 681b ldr r3, [r3, #0]
  22792. 8009e10: f022 0208 bic.w r2, r2, #8
  22793. 8009e14: 601a str r2, [r3, #0]
  22794. 8009e16: e007 b.n 8009e28 <HAL_DMA_IRQHandler+0xb34>
  22795. 8009e18: 687b ldr r3, [r7, #4]
  22796. 8009e1a: 681b ldr r3, [r3, #0]
  22797. 8009e1c: 681a ldr r2, [r3, #0]
  22798. 8009e1e: 687b ldr r3, [r7, #4]
  22799. 8009e20: 681b ldr r3, [r3, #0]
  22800. 8009e22: f022 0204 bic.w r2, r2, #4
  22801. 8009e26: 601a str r2, [r3, #0]
  22802. }
  22803. /* DMA peripheral state is not updated in Half Transfer */
  22804. /* but in Transfer Complete case */
  22805. if(hdma->XferHalfCpltCallback != NULL)
  22806. 8009e28: 687b ldr r3, [r7, #4]
  22807. 8009e2a: 6c1b ldr r3, [r3, #64] @ 0x40
  22808. 8009e2c: 2b00 cmp r3, #0
  22809. 8009e2e: f000 8165 beq.w 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22810. {
  22811. /* Half transfer callback */
  22812. hdma->XferHalfCpltCallback(hdma);
  22813. 8009e32: 687b ldr r3, [r7, #4]
  22814. 8009e34: 6c1b ldr r3, [r3, #64] @ 0x40
  22815. 8009e36: 6878 ldr r0, [r7, #4]
  22816. 8009e38: 4798 blx r3
  22817. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22818. 8009e3a: e15f b.n 800a0fc <HAL_DMA_IRQHandler+0xe08>
  22819. }
  22820. }
  22821. }
  22822. /* Transfer Complete Interrupt management ***********************************/
  22823. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  22824. 8009e3c: 687b ldr r3, [r7, #4]
  22825. 8009e3e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22826. 8009e40: f003 031f and.w r3, r3, #31
  22827. 8009e44: 2202 movs r2, #2
  22828. 8009e46: 409a lsls r2, r3
  22829. 8009e48: 697b ldr r3, [r7, #20]
  22830. 8009e4a: 4013 ands r3, r2
  22831. 8009e4c: 2b00 cmp r3, #0
  22832. 8009e4e: f000 80c5 beq.w 8009fdc <HAL_DMA_IRQHandler+0xce8>
  22833. 8009e52: 693b ldr r3, [r7, #16]
  22834. 8009e54: f003 0302 and.w r3, r3, #2
  22835. 8009e58: 2b00 cmp r3, #0
  22836. 8009e5a: f000 80bf beq.w 8009fdc <HAL_DMA_IRQHandler+0xce8>
  22837. {
  22838. /* Clear the transfer complete flag */
  22839. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  22840. 8009e5e: 687b ldr r3, [r7, #4]
  22841. 8009e60: 6ddb ldr r3, [r3, #92] @ 0x5c
  22842. 8009e62: f003 031f and.w r3, r3, #31
  22843. 8009e66: 2202 movs r2, #2
  22844. 8009e68: 409a lsls r2, r3
  22845. 8009e6a: 69fb ldr r3, [r7, #28]
  22846. 8009e6c: 605a str r2, [r3, #4]
  22847. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  22848. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22849. 8009e6e: 693b ldr r3, [r7, #16]
  22850. 8009e70: f403 4300 and.w r3, r3, #32768 @ 0x8000
  22851. 8009e74: 2b00 cmp r3, #0
  22852. 8009e76: d018 beq.n 8009eaa <HAL_DMA_IRQHandler+0xbb6>
  22853. {
  22854. /* Current memory buffer used is Memory 0 */
  22855. if((ccr_reg & BDMA_CCR_CT) == 0U)
  22856. 8009e78: 693b ldr r3, [r7, #16]
  22857. 8009e7a: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22858. 8009e7e: 2b00 cmp r3, #0
  22859. 8009e80: d109 bne.n 8009e96 <HAL_DMA_IRQHandler+0xba2>
  22860. {
  22861. if(hdma->XferM1CpltCallback != NULL)
  22862. 8009e82: 687b ldr r3, [r7, #4]
  22863. 8009e84: 6c5b ldr r3, [r3, #68] @ 0x44
  22864. 8009e86: 2b00 cmp r3, #0
  22865. 8009e88: f000 813a beq.w 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22866. {
  22867. /* Transfer complete Callback for Memory 1 */
  22868. hdma->XferM1CpltCallback(hdma);
  22869. 8009e8c: 687b ldr r3, [r7, #4]
  22870. 8009e8e: 6c5b ldr r3, [r3, #68] @ 0x44
  22871. 8009e90: 6878 ldr r0, [r7, #4]
  22872. 8009e92: 4798 blx r3
  22873. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22874. 8009e94: e134 b.n 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22875. }
  22876. }
  22877. /* Current memory buffer used is Memory 1 */
  22878. else
  22879. {
  22880. if(hdma->XferCpltCallback != NULL)
  22881. 8009e96: 687b ldr r3, [r7, #4]
  22882. 8009e98: 6bdb ldr r3, [r3, #60] @ 0x3c
  22883. 8009e9a: 2b00 cmp r3, #0
  22884. 8009e9c: f000 8130 beq.w 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22885. {
  22886. /* Transfer complete Callback for Memory 0 */
  22887. hdma->XferCpltCallback(hdma);
  22888. 8009ea0: 687b ldr r3, [r7, #4]
  22889. 8009ea2: 6bdb ldr r3, [r3, #60] @ 0x3c
  22890. 8009ea4: 6878 ldr r0, [r7, #4]
  22891. 8009ea6: 4798 blx r3
  22892. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  22893. 8009ea8: e12a b.n 800a100 <HAL_DMA_IRQHandler+0xe0c>
  22894. }
  22895. }
  22896. }
  22897. else
  22898. {
  22899. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  22900. 8009eaa: 693b ldr r3, [r7, #16]
  22901. 8009eac: f003 0320 and.w r3, r3, #32
  22902. 8009eb0: 2b00 cmp r3, #0
  22903. 8009eb2: f040 8089 bne.w 8009fc8 <HAL_DMA_IRQHandler+0xcd4>
  22904. {
  22905. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  22906. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  22907. 8009eb6: 687b ldr r3, [r7, #4]
  22908. 8009eb8: 681b ldr r3, [r3, #0]
  22909. 8009eba: 4a2b ldr r2, [pc, #172] @ (8009f68 <HAL_DMA_IRQHandler+0xc74>)
  22910. 8009ebc: 4293 cmp r3, r2
  22911. 8009ebe: d04a beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22912. 8009ec0: 687b ldr r3, [r7, #4]
  22913. 8009ec2: 681b ldr r3, [r3, #0]
  22914. 8009ec4: 4a29 ldr r2, [pc, #164] @ (8009f6c <HAL_DMA_IRQHandler+0xc78>)
  22915. 8009ec6: 4293 cmp r3, r2
  22916. 8009ec8: d045 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22917. 8009eca: 687b ldr r3, [r7, #4]
  22918. 8009ecc: 681b ldr r3, [r3, #0]
  22919. 8009ece: 4a28 ldr r2, [pc, #160] @ (8009f70 <HAL_DMA_IRQHandler+0xc7c>)
  22920. 8009ed0: 4293 cmp r3, r2
  22921. 8009ed2: d040 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22922. 8009ed4: 687b ldr r3, [r7, #4]
  22923. 8009ed6: 681b ldr r3, [r3, #0]
  22924. 8009ed8: 4a26 ldr r2, [pc, #152] @ (8009f74 <HAL_DMA_IRQHandler+0xc80>)
  22925. 8009eda: 4293 cmp r3, r2
  22926. 8009edc: d03b beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22927. 8009ede: 687b ldr r3, [r7, #4]
  22928. 8009ee0: 681b ldr r3, [r3, #0]
  22929. 8009ee2: 4a25 ldr r2, [pc, #148] @ (8009f78 <HAL_DMA_IRQHandler+0xc84>)
  22930. 8009ee4: 4293 cmp r3, r2
  22931. 8009ee6: d036 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22932. 8009ee8: 687b ldr r3, [r7, #4]
  22933. 8009eea: 681b ldr r3, [r3, #0]
  22934. 8009eec: 4a23 ldr r2, [pc, #140] @ (8009f7c <HAL_DMA_IRQHandler+0xc88>)
  22935. 8009eee: 4293 cmp r3, r2
  22936. 8009ef0: d031 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22937. 8009ef2: 687b ldr r3, [r7, #4]
  22938. 8009ef4: 681b ldr r3, [r3, #0]
  22939. 8009ef6: 4a22 ldr r2, [pc, #136] @ (8009f80 <HAL_DMA_IRQHandler+0xc8c>)
  22940. 8009ef8: 4293 cmp r3, r2
  22941. 8009efa: d02c beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22942. 8009efc: 687b ldr r3, [r7, #4]
  22943. 8009efe: 681b ldr r3, [r3, #0]
  22944. 8009f00: 4a20 ldr r2, [pc, #128] @ (8009f84 <HAL_DMA_IRQHandler+0xc90>)
  22945. 8009f02: 4293 cmp r3, r2
  22946. 8009f04: d027 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22947. 8009f06: 687b ldr r3, [r7, #4]
  22948. 8009f08: 681b ldr r3, [r3, #0]
  22949. 8009f0a: 4a1f ldr r2, [pc, #124] @ (8009f88 <HAL_DMA_IRQHandler+0xc94>)
  22950. 8009f0c: 4293 cmp r3, r2
  22951. 8009f0e: d022 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22952. 8009f10: 687b ldr r3, [r7, #4]
  22953. 8009f12: 681b ldr r3, [r3, #0]
  22954. 8009f14: 4a1d ldr r2, [pc, #116] @ (8009f8c <HAL_DMA_IRQHandler+0xc98>)
  22955. 8009f16: 4293 cmp r3, r2
  22956. 8009f18: d01d beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22957. 8009f1a: 687b ldr r3, [r7, #4]
  22958. 8009f1c: 681b ldr r3, [r3, #0]
  22959. 8009f1e: 4a1c ldr r2, [pc, #112] @ (8009f90 <HAL_DMA_IRQHandler+0xc9c>)
  22960. 8009f20: 4293 cmp r3, r2
  22961. 8009f22: d018 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22962. 8009f24: 687b ldr r3, [r7, #4]
  22963. 8009f26: 681b ldr r3, [r3, #0]
  22964. 8009f28: 4a1a ldr r2, [pc, #104] @ (8009f94 <HAL_DMA_IRQHandler+0xca0>)
  22965. 8009f2a: 4293 cmp r3, r2
  22966. 8009f2c: d013 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22967. 8009f2e: 687b ldr r3, [r7, #4]
  22968. 8009f30: 681b ldr r3, [r3, #0]
  22969. 8009f32: 4a19 ldr r2, [pc, #100] @ (8009f98 <HAL_DMA_IRQHandler+0xca4>)
  22970. 8009f34: 4293 cmp r3, r2
  22971. 8009f36: d00e beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22972. 8009f38: 687b ldr r3, [r7, #4]
  22973. 8009f3a: 681b ldr r3, [r3, #0]
  22974. 8009f3c: 4a17 ldr r2, [pc, #92] @ (8009f9c <HAL_DMA_IRQHandler+0xca8>)
  22975. 8009f3e: 4293 cmp r3, r2
  22976. 8009f40: d009 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22977. 8009f42: 687b ldr r3, [r7, #4]
  22978. 8009f44: 681b ldr r3, [r3, #0]
  22979. 8009f46: 4a16 ldr r2, [pc, #88] @ (8009fa0 <HAL_DMA_IRQHandler+0xcac>)
  22980. 8009f48: 4293 cmp r3, r2
  22981. 8009f4a: d004 beq.n 8009f56 <HAL_DMA_IRQHandler+0xc62>
  22982. 8009f4c: 687b ldr r3, [r7, #4]
  22983. 8009f4e: 681b ldr r3, [r3, #0]
  22984. 8009f50: 4a14 ldr r2, [pc, #80] @ (8009fa4 <HAL_DMA_IRQHandler+0xcb0>)
  22985. 8009f52: 4293 cmp r3, r2
  22986. 8009f54: d128 bne.n 8009fa8 <HAL_DMA_IRQHandler+0xcb4>
  22987. 8009f56: 687b ldr r3, [r7, #4]
  22988. 8009f58: 681b ldr r3, [r3, #0]
  22989. 8009f5a: 681a ldr r2, [r3, #0]
  22990. 8009f5c: 687b ldr r3, [r7, #4]
  22991. 8009f5e: 681b ldr r3, [r3, #0]
  22992. 8009f60: f022 0214 bic.w r2, r2, #20
  22993. 8009f64: 601a str r2, [r3, #0]
  22994. 8009f66: e027 b.n 8009fb8 <HAL_DMA_IRQHandler+0xcc4>
  22995. 8009f68: 40020010 .word 0x40020010
  22996. 8009f6c: 40020028 .word 0x40020028
  22997. 8009f70: 40020040 .word 0x40020040
  22998. 8009f74: 40020058 .word 0x40020058
  22999. 8009f78: 40020070 .word 0x40020070
  23000. 8009f7c: 40020088 .word 0x40020088
  23001. 8009f80: 400200a0 .word 0x400200a0
  23002. 8009f84: 400200b8 .word 0x400200b8
  23003. 8009f88: 40020410 .word 0x40020410
  23004. 8009f8c: 40020428 .word 0x40020428
  23005. 8009f90: 40020440 .word 0x40020440
  23006. 8009f94: 40020458 .word 0x40020458
  23007. 8009f98: 40020470 .word 0x40020470
  23008. 8009f9c: 40020488 .word 0x40020488
  23009. 8009fa0: 400204a0 .word 0x400204a0
  23010. 8009fa4: 400204b8 .word 0x400204b8
  23011. 8009fa8: 687b ldr r3, [r7, #4]
  23012. 8009faa: 681b ldr r3, [r3, #0]
  23013. 8009fac: 681a ldr r2, [r3, #0]
  23014. 8009fae: 687b ldr r3, [r7, #4]
  23015. 8009fb0: 681b ldr r3, [r3, #0]
  23016. 8009fb2: f022 020a bic.w r2, r2, #10
  23017. 8009fb6: 601a str r2, [r3, #0]
  23018. /* Change the DMA state */
  23019. hdma->State = HAL_DMA_STATE_READY;
  23020. 8009fb8: 687b ldr r3, [r7, #4]
  23021. 8009fba: 2201 movs r2, #1
  23022. 8009fbc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23023. /* Process Unlocked */
  23024. __HAL_UNLOCK(hdma);
  23025. 8009fc0: 687b ldr r3, [r7, #4]
  23026. 8009fc2: 2200 movs r2, #0
  23027. 8009fc4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23028. }
  23029. if(hdma->XferCpltCallback != NULL)
  23030. 8009fc8: 687b ldr r3, [r7, #4]
  23031. 8009fca: 6bdb ldr r3, [r3, #60] @ 0x3c
  23032. 8009fcc: 2b00 cmp r3, #0
  23033. 8009fce: f000 8097 beq.w 800a100 <HAL_DMA_IRQHandler+0xe0c>
  23034. {
  23035. /* Transfer complete callback */
  23036. hdma->XferCpltCallback(hdma);
  23037. 8009fd2: 687b ldr r3, [r7, #4]
  23038. 8009fd4: 6bdb ldr r3, [r3, #60] @ 0x3c
  23039. 8009fd6: 6878 ldr r0, [r7, #4]
  23040. 8009fd8: 4798 blx r3
  23041. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23042. 8009fda: e091 b.n 800a100 <HAL_DMA_IRQHandler+0xe0c>
  23043. }
  23044. }
  23045. }
  23046. /* Transfer Error Interrupt management **************************************/
  23047. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  23048. 8009fdc: 687b ldr r3, [r7, #4]
  23049. 8009fde: 6ddb ldr r3, [r3, #92] @ 0x5c
  23050. 8009fe0: f003 031f and.w r3, r3, #31
  23051. 8009fe4: 2208 movs r2, #8
  23052. 8009fe6: 409a lsls r2, r3
  23053. 8009fe8: 697b ldr r3, [r7, #20]
  23054. 8009fea: 4013 ands r3, r2
  23055. 8009fec: 2b00 cmp r3, #0
  23056. 8009fee: f000 8088 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23057. 8009ff2: 693b ldr r3, [r7, #16]
  23058. 8009ff4: f003 0308 and.w r3, r3, #8
  23059. 8009ff8: 2b00 cmp r3, #0
  23060. 8009ffa: f000 8082 beq.w 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23061. {
  23062. /* When a DMA transfer error occurs */
  23063. /* A hardware clear of its EN bits is performed */
  23064. /* Disable ALL DMA IT */
  23065. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  23066. 8009ffe: 687b ldr r3, [r7, #4]
  23067. 800a000: 681b ldr r3, [r3, #0]
  23068. 800a002: 4a41 ldr r2, [pc, #260] @ (800a108 <HAL_DMA_IRQHandler+0xe14>)
  23069. 800a004: 4293 cmp r3, r2
  23070. 800a006: d04a beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23071. 800a008: 687b ldr r3, [r7, #4]
  23072. 800a00a: 681b ldr r3, [r3, #0]
  23073. 800a00c: 4a3f ldr r2, [pc, #252] @ (800a10c <HAL_DMA_IRQHandler+0xe18>)
  23074. 800a00e: 4293 cmp r3, r2
  23075. 800a010: d045 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23076. 800a012: 687b ldr r3, [r7, #4]
  23077. 800a014: 681b ldr r3, [r3, #0]
  23078. 800a016: 4a3e ldr r2, [pc, #248] @ (800a110 <HAL_DMA_IRQHandler+0xe1c>)
  23079. 800a018: 4293 cmp r3, r2
  23080. 800a01a: d040 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23081. 800a01c: 687b ldr r3, [r7, #4]
  23082. 800a01e: 681b ldr r3, [r3, #0]
  23083. 800a020: 4a3c ldr r2, [pc, #240] @ (800a114 <HAL_DMA_IRQHandler+0xe20>)
  23084. 800a022: 4293 cmp r3, r2
  23085. 800a024: d03b beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23086. 800a026: 687b ldr r3, [r7, #4]
  23087. 800a028: 681b ldr r3, [r3, #0]
  23088. 800a02a: 4a3b ldr r2, [pc, #236] @ (800a118 <HAL_DMA_IRQHandler+0xe24>)
  23089. 800a02c: 4293 cmp r3, r2
  23090. 800a02e: d036 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23091. 800a030: 687b ldr r3, [r7, #4]
  23092. 800a032: 681b ldr r3, [r3, #0]
  23093. 800a034: 4a39 ldr r2, [pc, #228] @ (800a11c <HAL_DMA_IRQHandler+0xe28>)
  23094. 800a036: 4293 cmp r3, r2
  23095. 800a038: d031 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23096. 800a03a: 687b ldr r3, [r7, #4]
  23097. 800a03c: 681b ldr r3, [r3, #0]
  23098. 800a03e: 4a38 ldr r2, [pc, #224] @ (800a120 <HAL_DMA_IRQHandler+0xe2c>)
  23099. 800a040: 4293 cmp r3, r2
  23100. 800a042: d02c beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23101. 800a044: 687b ldr r3, [r7, #4]
  23102. 800a046: 681b ldr r3, [r3, #0]
  23103. 800a048: 4a36 ldr r2, [pc, #216] @ (800a124 <HAL_DMA_IRQHandler+0xe30>)
  23104. 800a04a: 4293 cmp r3, r2
  23105. 800a04c: d027 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23106. 800a04e: 687b ldr r3, [r7, #4]
  23107. 800a050: 681b ldr r3, [r3, #0]
  23108. 800a052: 4a35 ldr r2, [pc, #212] @ (800a128 <HAL_DMA_IRQHandler+0xe34>)
  23109. 800a054: 4293 cmp r3, r2
  23110. 800a056: d022 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23111. 800a058: 687b ldr r3, [r7, #4]
  23112. 800a05a: 681b ldr r3, [r3, #0]
  23113. 800a05c: 4a33 ldr r2, [pc, #204] @ (800a12c <HAL_DMA_IRQHandler+0xe38>)
  23114. 800a05e: 4293 cmp r3, r2
  23115. 800a060: d01d beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23116. 800a062: 687b ldr r3, [r7, #4]
  23117. 800a064: 681b ldr r3, [r3, #0]
  23118. 800a066: 4a32 ldr r2, [pc, #200] @ (800a130 <HAL_DMA_IRQHandler+0xe3c>)
  23119. 800a068: 4293 cmp r3, r2
  23120. 800a06a: d018 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23121. 800a06c: 687b ldr r3, [r7, #4]
  23122. 800a06e: 681b ldr r3, [r3, #0]
  23123. 800a070: 4a30 ldr r2, [pc, #192] @ (800a134 <HAL_DMA_IRQHandler+0xe40>)
  23124. 800a072: 4293 cmp r3, r2
  23125. 800a074: d013 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23126. 800a076: 687b ldr r3, [r7, #4]
  23127. 800a078: 681b ldr r3, [r3, #0]
  23128. 800a07a: 4a2f ldr r2, [pc, #188] @ (800a138 <HAL_DMA_IRQHandler+0xe44>)
  23129. 800a07c: 4293 cmp r3, r2
  23130. 800a07e: d00e beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23131. 800a080: 687b ldr r3, [r7, #4]
  23132. 800a082: 681b ldr r3, [r3, #0]
  23133. 800a084: 4a2d ldr r2, [pc, #180] @ (800a13c <HAL_DMA_IRQHandler+0xe48>)
  23134. 800a086: 4293 cmp r3, r2
  23135. 800a088: d009 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23136. 800a08a: 687b ldr r3, [r7, #4]
  23137. 800a08c: 681b ldr r3, [r3, #0]
  23138. 800a08e: 4a2c ldr r2, [pc, #176] @ (800a140 <HAL_DMA_IRQHandler+0xe4c>)
  23139. 800a090: 4293 cmp r3, r2
  23140. 800a092: d004 beq.n 800a09e <HAL_DMA_IRQHandler+0xdaa>
  23141. 800a094: 687b ldr r3, [r7, #4]
  23142. 800a096: 681b ldr r3, [r3, #0]
  23143. 800a098: 4a2a ldr r2, [pc, #168] @ (800a144 <HAL_DMA_IRQHandler+0xe50>)
  23144. 800a09a: 4293 cmp r3, r2
  23145. 800a09c: d108 bne.n 800a0b0 <HAL_DMA_IRQHandler+0xdbc>
  23146. 800a09e: 687b ldr r3, [r7, #4]
  23147. 800a0a0: 681b ldr r3, [r3, #0]
  23148. 800a0a2: 681a ldr r2, [r3, #0]
  23149. 800a0a4: 687b ldr r3, [r7, #4]
  23150. 800a0a6: 681b ldr r3, [r3, #0]
  23151. 800a0a8: f022 021c bic.w r2, r2, #28
  23152. 800a0ac: 601a str r2, [r3, #0]
  23153. 800a0ae: e007 b.n 800a0c0 <HAL_DMA_IRQHandler+0xdcc>
  23154. 800a0b0: 687b ldr r3, [r7, #4]
  23155. 800a0b2: 681b ldr r3, [r3, #0]
  23156. 800a0b4: 681a ldr r2, [r3, #0]
  23157. 800a0b6: 687b ldr r3, [r7, #4]
  23158. 800a0b8: 681b ldr r3, [r3, #0]
  23159. 800a0ba: f022 020e bic.w r2, r2, #14
  23160. 800a0be: 601a str r2, [r3, #0]
  23161. /* Clear all flags */
  23162. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  23163. 800a0c0: 687b ldr r3, [r7, #4]
  23164. 800a0c2: 6ddb ldr r3, [r3, #92] @ 0x5c
  23165. 800a0c4: f003 031f and.w r3, r3, #31
  23166. 800a0c8: 2201 movs r2, #1
  23167. 800a0ca: 409a lsls r2, r3
  23168. 800a0cc: 69fb ldr r3, [r7, #28]
  23169. 800a0ce: 605a str r2, [r3, #4]
  23170. /* Update error code */
  23171. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  23172. 800a0d0: 687b ldr r3, [r7, #4]
  23173. 800a0d2: 2201 movs r2, #1
  23174. 800a0d4: 655a str r2, [r3, #84] @ 0x54
  23175. /* Change the DMA state */
  23176. hdma->State = HAL_DMA_STATE_READY;
  23177. 800a0d6: 687b ldr r3, [r7, #4]
  23178. 800a0d8: 2201 movs r2, #1
  23179. 800a0da: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23180. /* Process Unlocked */
  23181. __HAL_UNLOCK(hdma);
  23182. 800a0de: 687b ldr r3, [r7, #4]
  23183. 800a0e0: 2200 movs r2, #0
  23184. 800a0e2: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23185. if (hdma->XferErrorCallback != NULL)
  23186. 800a0e6: 687b ldr r3, [r7, #4]
  23187. 800a0e8: 6cdb ldr r3, [r3, #76] @ 0x4c
  23188. 800a0ea: 2b00 cmp r3, #0
  23189. 800a0ec: d009 beq.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23190. {
  23191. /* Transfer error callback */
  23192. hdma->XferErrorCallback(hdma);
  23193. 800a0ee: 687b ldr r3, [r7, #4]
  23194. 800a0f0: 6cdb ldr r3, [r3, #76] @ 0x4c
  23195. 800a0f2: 6878 ldr r0, [r7, #4]
  23196. 800a0f4: 4798 blx r3
  23197. 800a0f6: e004 b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23198. return;
  23199. 800a0f8: bf00 nop
  23200. 800a0fa: e002 b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23201. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23202. 800a0fc: bf00 nop
  23203. 800a0fe: e000 b.n 800a102 <HAL_DMA_IRQHandler+0xe0e>
  23204. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23205. 800a100: bf00 nop
  23206. }
  23207. else
  23208. {
  23209. /* Nothing To Do */
  23210. }
  23211. }
  23212. 800a102: 3728 adds r7, #40 @ 0x28
  23213. 800a104: 46bd mov sp, r7
  23214. 800a106: bd80 pop {r7, pc}
  23215. 800a108: 40020010 .word 0x40020010
  23216. 800a10c: 40020028 .word 0x40020028
  23217. 800a110: 40020040 .word 0x40020040
  23218. 800a114: 40020058 .word 0x40020058
  23219. 800a118: 40020070 .word 0x40020070
  23220. 800a11c: 40020088 .word 0x40020088
  23221. 800a120: 400200a0 .word 0x400200a0
  23222. 800a124: 400200b8 .word 0x400200b8
  23223. 800a128: 40020410 .word 0x40020410
  23224. 800a12c: 40020428 .word 0x40020428
  23225. 800a130: 40020440 .word 0x40020440
  23226. 800a134: 40020458 .word 0x40020458
  23227. 800a138: 40020470 .word 0x40020470
  23228. 800a13c: 40020488 .word 0x40020488
  23229. 800a140: 400204a0 .word 0x400204a0
  23230. 800a144: 400204b8 .word 0x400204b8
  23231. 0800a148 <DMA_SetConfig>:
  23232. * @param DstAddress: The destination memory Buffer address
  23233. * @param DataLength: The length of data to be transferred from source to destination
  23234. * @retval None
  23235. */
  23236. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  23237. {
  23238. 800a148: b480 push {r7}
  23239. 800a14a: b087 sub sp, #28
  23240. 800a14c: af00 add r7, sp, #0
  23241. 800a14e: 60f8 str r0, [r7, #12]
  23242. 800a150: 60b9 str r1, [r7, #8]
  23243. 800a152: 607a str r2, [r7, #4]
  23244. 800a154: 603b str r3, [r7, #0]
  23245. /* calculate DMA base and stream number */
  23246. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  23247. 800a156: 68fb ldr r3, [r7, #12]
  23248. 800a158: 6d9b ldr r3, [r3, #88] @ 0x58
  23249. 800a15a: 617b str r3, [r7, #20]
  23250. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  23251. 800a15c: 68fb ldr r3, [r7, #12]
  23252. 800a15e: 6d9b ldr r3, [r3, #88] @ 0x58
  23253. 800a160: 613b str r3, [r7, #16]
  23254. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  23255. 800a162: 68fb ldr r3, [r7, #12]
  23256. 800a164: 681b ldr r3, [r3, #0]
  23257. 800a166: 4a7f ldr r2, [pc, #508] @ (800a364 <DMA_SetConfig+0x21c>)
  23258. 800a168: 4293 cmp r3, r2
  23259. 800a16a: d072 beq.n 800a252 <DMA_SetConfig+0x10a>
  23260. 800a16c: 68fb ldr r3, [r7, #12]
  23261. 800a16e: 681b ldr r3, [r3, #0]
  23262. 800a170: 4a7d ldr r2, [pc, #500] @ (800a368 <DMA_SetConfig+0x220>)
  23263. 800a172: 4293 cmp r3, r2
  23264. 800a174: d06d beq.n 800a252 <DMA_SetConfig+0x10a>
  23265. 800a176: 68fb ldr r3, [r7, #12]
  23266. 800a178: 681b ldr r3, [r3, #0]
  23267. 800a17a: 4a7c ldr r2, [pc, #496] @ (800a36c <DMA_SetConfig+0x224>)
  23268. 800a17c: 4293 cmp r3, r2
  23269. 800a17e: d068 beq.n 800a252 <DMA_SetConfig+0x10a>
  23270. 800a180: 68fb ldr r3, [r7, #12]
  23271. 800a182: 681b ldr r3, [r3, #0]
  23272. 800a184: 4a7a ldr r2, [pc, #488] @ (800a370 <DMA_SetConfig+0x228>)
  23273. 800a186: 4293 cmp r3, r2
  23274. 800a188: d063 beq.n 800a252 <DMA_SetConfig+0x10a>
  23275. 800a18a: 68fb ldr r3, [r7, #12]
  23276. 800a18c: 681b ldr r3, [r3, #0]
  23277. 800a18e: 4a79 ldr r2, [pc, #484] @ (800a374 <DMA_SetConfig+0x22c>)
  23278. 800a190: 4293 cmp r3, r2
  23279. 800a192: d05e beq.n 800a252 <DMA_SetConfig+0x10a>
  23280. 800a194: 68fb ldr r3, [r7, #12]
  23281. 800a196: 681b ldr r3, [r3, #0]
  23282. 800a198: 4a77 ldr r2, [pc, #476] @ (800a378 <DMA_SetConfig+0x230>)
  23283. 800a19a: 4293 cmp r3, r2
  23284. 800a19c: d059 beq.n 800a252 <DMA_SetConfig+0x10a>
  23285. 800a19e: 68fb ldr r3, [r7, #12]
  23286. 800a1a0: 681b ldr r3, [r3, #0]
  23287. 800a1a2: 4a76 ldr r2, [pc, #472] @ (800a37c <DMA_SetConfig+0x234>)
  23288. 800a1a4: 4293 cmp r3, r2
  23289. 800a1a6: d054 beq.n 800a252 <DMA_SetConfig+0x10a>
  23290. 800a1a8: 68fb ldr r3, [r7, #12]
  23291. 800a1aa: 681b ldr r3, [r3, #0]
  23292. 800a1ac: 4a74 ldr r2, [pc, #464] @ (800a380 <DMA_SetConfig+0x238>)
  23293. 800a1ae: 4293 cmp r3, r2
  23294. 800a1b0: d04f beq.n 800a252 <DMA_SetConfig+0x10a>
  23295. 800a1b2: 68fb ldr r3, [r7, #12]
  23296. 800a1b4: 681b ldr r3, [r3, #0]
  23297. 800a1b6: 4a73 ldr r2, [pc, #460] @ (800a384 <DMA_SetConfig+0x23c>)
  23298. 800a1b8: 4293 cmp r3, r2
  23299. 800a1ba: d04a beq.n 800a252 <DMA_SetConfig+0x10a>
  23300. 800a1bc: 68fb ldr r3, [r7, #12]
  23301. 800a1be: 681b ldr r3, [r3, #0]
  23302. 800a1c0: 4a71 ldr r2, [pc, #452] @ (800a388 <DMA_SetConfig+0x240>)
  23303. 800a1c2: 4293 cmp r3, r2
  23304. 800a1c4: d045 beq.n 800a252 <DMA_SetConfig+0x10a>
  23305. 800a1c6: 68fb ldr r3, [r7, #12]
  23306. 800a1c8: 681b ldr r3, [r3, #0]
  23307. 800a1ca: 4a70 ldr r2, [pc, #448] @ (800a38c <DMA_SetConfig+0x244>)
  23308. 800a1cc: 4293 cmp r3, r2
  23309. 800a1ce: d040 beq.n 800a252 <DMA_SetConfig+0x10a>
  23310. 800a1d0: 68fb ldr r3, [r7, #12]
  23311. 800a1d2: 681b ldr r3, [r3, #0]
  23312. 800a1d4: 4a6e ldr r2, [pc, #440] @ (800a390 <DMA_SetConfig+0x248>)
  23313. 800a1d6: 4293 cmp r3, r2
  23314. 800a1d8: d03b beq.n 800a252 <DMA_SetConfig+0x10a>
  23315. 800a1da: 68fb ldr r3, [r7, #12]
  23316. 800a1dc: 681b ldr r3, [r3, #0]
  23317. 800a1de: 4a6d ldr r2, [pc, #436] @ (800a394 <DMA_SetConfig+0x24c>)
  23318. 800a1e0: 4293 cmp r3, r2
  23319. 800a1e2: d036 beq.n 800a252 <DMA_SetConfig+0x10a>
  23320. 800a1e4: 68fb ldr r3, [r7, #12]
  23321. 800a1e6: 681b ldr r3, [r3, #0]
  23322. 800a1e8: 4a6b ldr r2, [pc, #428] @ (800a398 <DMA_SetConfig+0x250>)
  23323. 800a1ea: 4293 cmp r3, r2
  23324. 800a1ec: d031 beq.n 800a252 <DMA_SetConfig+0x10a>
  23325. 800a1ee: 68fb ldr r3, [r7, #12]
  23326. 800a1f0: 681b ldr r3, [r3, #0]
  23327. 800a1f2: 4a6a ldr r2, [pc, #424] @ (800a39c <DMA_SetConfig+0x254>)
  23328. 800a1f4: 4293 cmp r3, r2
  23329. 800a1f6: d02c beq.n 800a252 <DMA_SetConfig+0x10a>
  23330. 800a1f8: 68fb ldr r3, [r7, #12]
  23331. 800a1fa: 681b ldr r3, [r3, #0]
  23332. 800a1fc: 4a68 ldr r2, [pc, #416] @ (800a3a0 <DMA_SetConfig+0x258>)
  23333. 800a1fe: 4293 cmp r3, r2
  23334. 800a200: d027 beq.n 800a252 <DMA_SetConfig+0x10a>
  23335. 800a202: 68fb ldr r3, [r7, #12]
  23336. 800a204: 681b ldr r3, [r3, #0]
  23337. 800a206: 4a67 ldr r2, [pc, #412] @ (800a3a4 <DMA_SetConfig+0x25c>)
  23338. 800a208: 4293 cmp r3, r2
  23339. 800a20a: d022 beq.n 800a252 <DMA_SetConfig+0x10a>
  23340. 800a20c: 68fb ldr r3, [r7, #12]
  23341. 800a20e: 681b ldr r3, [r3, #0]
  23342. 800a210: 4a65 ldr r2, [pc, #404] @ (800a3a8 <DMA_SetConfig+0x260>)
  23343. 800a212: 4293 cmp r3, r2
  23344. 800a214: d01d beq.n 800a252 <DMA_SetConfig+0x10a>
  23345. 800a216: 68fb ldr r3, [r7, #12]
  23346. 800a218: 681b ldr r3, [r3, #0]
  23347. 800a21a: 4a64 ldr r2, [pc, #400] @ (800a3ac <DMA_SetConfig+0x264>)
  23348. 800a21c: 4293 cmp r3, r2
  23349. 800a21e: d018 beq.n 800a252 <DMA_SetConfig+0x10a>
  23350. 800a220: 68fb ldr r3, [r7, #12]
  23351. 800a222: 681b ldr r3, [r3, #0]
  23352. 800a224: 4a62 ldr r2, [pc, #392] @ (800a3b0 <DMA_SetConfig+0x268>)
  23353. 800a226: 4293 cmp r3, r2
  23354. 800a228: d013 beq.n 800a252 <DMA_SetConfig+0x10a>
  23355. 800a22a: 68fb ldr r3, [r7, #12]
  23356. 800a22c: 681b ldr r3, [r3, #0]
  23357. 800a22e: 4a61 ldr r2, [pc, #388] @ (800a3b4 <DMA_SetConfig+0x26c>)
  23358. 800a230: 4293 cmp r3, r2
  23359. 800a232: d00e beq.n 800a252 <DMA_SetConfig+0x10a>
  23360. 800a234: 68fb ldr r3, [r7, #12]
  23361. 800a236: 681b ldr r3, [r3, #0]
  23362. 800a238: 4a5f ldr r2, [pc, #380] @ (800a3b8 <DMA_SetConfig+0x270>)
  23363. 800a23a: 4293 cmp r3, r2
  23364. 800a23c: d009 beq.n 800a252 <DMA_SetConfig+0x10a>
  23365. 800a23e: 68fb ldr r3, [r7, #12]
  23366. 800a240: 681b ldr r3, [r3, #0]
  23367. 800a242: 4a5e ldr r2, [pc, #376] @ (800a3bc <DMA_SetConfig+0x274>)
  23368. 800a244: 4293 cmp r3, r2
  23369. 800a246: d004 beq.n 800a252 <DMA_SetConfig+0x10a>
  23370. 800a248: 68fb ldr r3, [r7, #12]
  23371. 800a24a: 681b ldr r3, [r3, #0]
  23372. 800a24c: 4a5c ldr r2, [pc, #368] @ (800a3c0 <DMA_SetConfig+0x278>)
  23373. 800a24e: 4293 cmp r3, r2
  23374. 800a250: d101 bne.n 800a256 <DMA_SetConfig+0x10e>
  23375. 800a252: 2301 movs r3, #1
  23376. 800a254: e000 b.n 800a258 <DMA_SetConfig+0x110>
  23377. 800a256: 2300 movs r3, #0
  23378. 800a258: 2b00 cmp r3, #0
  23379. 800a25a: d00d beq.n 800a278 <DMA_SetConfig+0x130>
  23380. {
  23381. /* Clear the DMAMUX synchro overrun flag */
  23382. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  23383. 800a25c: 68fb ldr r3, [r7, #12]
  23384. 800a25e: 6e5b ldr r3, [r3, #100] @ 0x64
  23385. 800a260: 68fa ldr r2, [r7, #12]
  23386. 800a262: 6e92 ldr r2, [r2, #104] @ 0x68
  23387. 800a264: 605a str r2, [r3, #4]
  23388. if(hdma->DMAmuxRequestGen != 0U)
  23389. 800a266: 68fb ldr r3, [r7, #12]
  23390. 800a268: 6edb ldr r3, [r3, #108] @ 0x6c
  23391. 800a26a: 2b00 cmp r3, #0
  23392. 800a26c: d004 beq.n 800a278 <DMA_SetConfig+0x130>
  23393. {
  23394. /* Clear the DMAMUX request generator overrun flag */
  23395. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  23396. 800a26e: 68fb ldr r3, [r7, #12]
  23397. 800a270: 6f1b ldr r3, [r3, #112] @ 0x70
  23398. 800a272: 68fa ldr r2, [r7, #12]
  23399. 800a274: 6f52 ldr r2, [r2, #116] @ 0x74
  23400. 800a276: 605a str r2, [r3, #4]
  23401. }
  23402. }
  23403. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  23404. 800a278: 68fb ldr r3, [r7, #12]
  23405. 800a27a: 681b ldr r3, [r3, #0]
  23406. 800a27c: 4a39 ldr r2, [pc, #228] @ (800a364 <DMA_SetConfig+0x21c>)
  23407. 800a27e: 4293 cmp r3, r2
  23408. 800a280: d04a beq.n 800a318 <DMA_SetConfig+0x1d0>
  23409. 800a282: 68fb ldr r3, [r7, #12]
  23410. 800a284: 681b ldr r3, [r3, #0]
  23411. 800a286: 4a38 ldr r2, [pc, #224] @ (800a368 <DMA_SetConfig+0x220>)
  23412. 800a288: 4293 cmp r3, r2
  23413. 800a28a: d045 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23414. 800a28c: 68fb ldr r3, [r7, #12]
  23415. 800a28e: 681b ldr r3, [r3, #0]
  23416. 800a290: 4a36 ldr r2, [pc, #216] @ (800a36c <DMA_SetConfig+0x224>)
  23417. 800a292: 4293 cmp r3, r2
  23418. 800a294: d040 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23419. 800a296: 68fb ldr r3, [r7, #12]
  23420. 800a298: 681b ldr r3, [r3, #0]
  23421. 800a29a: 4a35 ldr r2, [pc, #212] @ (800a370 <DMA_SetConfig+0x228>)
  23422. 800a29c: 4293 cmp r3, r2
  23423. 800a29e: d03b beq.n 800a318 <DMA_SetConfig+0x1d0>
  23424. 800a2a0: 68fb ldr r3, [r7, #12]
  23425. 800a2a2: 681b ldr r3, [r3, #0]
  23426. 800a2a4: 4a33 ldr r2, [pc, #204] @ (800a374 <DMA_SetConfig+0x22c>)
  23427. 800a2a6: 4293 cmp r3, r2
  23428. 800a2a8: d036 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23429. 800a2aa: 68fb ldr r3, [r7, #12]
  23430. 800a2ac: 681b ldr r3, [r3, #0]
  23431. 800a2ae: 4a32 ldr r2, [pc, #200] @ (800a378 <DMA_SetConfig+0x230>)
  23432. 800a2b0: 4293 cmp r3, r2
  23433. 800a2b2: d031 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23434. 800a2b4: 68fb ldr r3, [r7, #12]
  23435. 800a2b6: 681b ldr r3, [r3, #0]
  23436. 800a2b8: 4a30 ldr r2, [pc, #192] @ (800a37c <DMA_SetConfig+0x234>)
  23437. 800a2ba: 4293 cmp r3, r2
  23438. 800a2bc: d02c beq.n 800a318 <DMA_SetConfig+0x1d0>
  23439. 800a2be: 68fb ldr r3, [r7, #12]
  23440. 800a2c0: 681b ldr r3, [r3, #0]
  23441. 800a2c2: 4a2f ldr r2, [pc, #188] @ (800a380 <DMA_SetConfig+0x238>)
  23442. 800a2c4: 4293 cmp r3, r2
  23443. 800a2c6: d027 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23444. 800a2c8: 68fb ldr r3, [r7, #12]
  23445. 800a2ca: 681b ldr r3, [r3, #0]
  23446. 800a2cc: 4a2d ldr r2, [pc, #180] @ (800a384 <DMA_SetConfig+0x23c>)
  23447. 800a2ce: 4293 cmp r3, r2
  23448. 800a2d0: d022 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23449. 800a2d2: 68fb ldr r3, [r7, #12]
  23450. 800a2d4: 681b ldr r3, [r3, #0]
  23451. 800a2d6: 4a2c ldr r2, [pc, #176] @ (800a388 <DMA_SetConfig+0x240>)
  23452. 800a2d8: 4293 cmp r3, r2
  23453. 800a2da: d01d beq.n 800a318 <DMA_SetConfig+0x1d0>
  23454. 800a2dc: 68fb ldr r3, [r7, #12]
  23455. 800a2de: 681b ldr r3, [r3, #0]
  23456. 800a2e0: 4a2a ldr r2, [pc, #168] @ (800a38c <DMA_SetConfig+0x244>)
  23457. 800a2e2: 4293 cmp r3, r2
  23458. 800a2e4: d018 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23459. 800a2e6: 68fb ldr r3, [r7, #12]
  23460. 800a2e8: 681b ldr r3, [r3, #0]
  23461. 800a2ea: 4a29 ldr r2, [pc, #164] @ (800a390 <DMA_SetConfig+0x248>)
  23462. 800a2ec: 4293 cmp r3, r2
  23463. 800a2ee: d013 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23464. 800a2f0: 68fb ldr r3, [r7, #12]
  23465. 800a2f2: 681b ldr r3, [r3, #0]
  23466. 800a2f4: 4a27 ldr r2, [pc, #156] @ (800a394 <DMA_SetConfig+0x24c>)
  23467. 800a2f6: 4293 cmp r3, r2
  23468. 800a2f8: d00e beq.n 800a318 <DMA_SetConfig+0x1d0>
  23469. 800a2fa: 68fb ldr r3, [r7, #12]
  23470. 800a2fc: 681b ldr r3, [r3, #0]
  23471. 800a2fe: 4a26 ldr r2, [pc, #152] @ (800a398 <DMA_SetConfig+0x250>)
  23472. 800a300: 4293 cmp r3, r2
  23473. 800a302: d009 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23474. 800a304: 68fb ldr r3, [r7, #12]
  23475. 800a306: 681b ldr r3, [r3, #0]
  23476. 800a308: 4a24 ldr r2, [pc, #144] @ (800a39c <DMA_SetConfig+0x254>)
  23477. 800a30a: 4293 cmp r3, r2
  23478. 800a30c: d004 beq.n 800a318 <DMA_SetConfig+0x1d0>
  23479. 800a30e: 68fb ldr r3, [r7, #12]
  23480. 800a310: 681b ldr r3, [r3, #0]
  23481. 800a312: 4a23 ldr r2, [pc, #140] @ (800a3a0 <DMA_SetConfig+0x258>)
  23482. 800a314: 4293 cmp r3, r2
  23483. 800a316: d101 bne.n 800a31c <DMA_SetConfig+0x1d4>
  23484. 800a318: 2301 movs r3, #1
  23485. 800a31a: e000 b.n 800a31e <DMA_SetConfig+0x1d6>
  23486. 800a31c: 2300 movs r3, #0
  23487. 800a31e: 2b00 cmp r3, #0
  23488. 800a320: d059 beq.n 800a3d6 <DMA_SetConfig+0x28e>
  23489. {
  23490. /* Clear all interrupt flags at correct offset within the register */
  23491. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  23492. 800a322: 68fb ldr r3, [r7, #12]
  23493. 800a324: 6ddb ldr r3, [r3, #92] @ 0x5c
  23494. 800a326: f003 031f and.w r3, r3, #31
  23495. 800a32a: 223f movs r2, #63 @ 0x3f
  23496. 800a32c: 409a lsls r2, r3
  23497. 800a32e: 697b ldr r3, [r7, #20]
  23498. 800a330: 609a str r2, [r3, #8]
  23499. /* Clear DBM bit */
  23500. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  23501. 800a332: 68fb ldr r3, [r7, #12]
  23502. 800a334: 681b ldr r3, [r3, #0]
  23503. 800a336: 681a ldr r2, [r3, #0]
  23504. 800a338: 68fb ldr r3, [r7, #12]
  23505. 800a33a: 681b ldr r3, [r3, #0]
  23506. 800a33c: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  23507. 800a340: 601a str r2, [r3, #0]
  23508. /* Configure DMA Stream data length */
  23509. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  23510. 800a342: 68fb ldr r3, [r7, #12]
  23511. 800a344: 681b ldr r3, [r3, #0]
  23512. 800a346: 683a ldr r2, [r7, #0]
  23513. 800a348: 605a str r2, [r3, #4]
  23514. /* Peripheral to Memory */
  23515. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  23516. 800a34a: 68fb ldr r3, [r7, #12]
  23517. 800a34c: 689b ldr r3, [r3, #8]
  23518. 800a34e: 2b40 cmp r3, #64 @ 0x40
  23519. 800a350: d138 bne.n 800a3c4 <DMA_SetConfig+0x27c>
  23520. {
  23521. /* Configure DMA Stream destination address */
  23522. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  23523. 800a352: 68fb ldr r3, [r7, #12]
  23524. 800a354: 681b ldr r3, [r3, #0]
  23525. 800a356: 687a ldr r2, [r7, #4]
  23526. 800a358: 609a str r2, [r3, #8]
  23527. /* Configure DMA Stream source address */
  23528. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  23529. 800a35a: 68fb ldr r3, [r7, #12]
  23530. 800a35c: 681b ldr r3, [r3, #0]
  23531. 800a35e: 68ba ldr r2, [r7, #8]
  23532. 800a360: 60da str r2, [r3, #12]
  23533. }
  23534. else
  23535. {
  23536. /* Nothing To Do */
  23537. }
  23538. }
  23539. 800a362: e086 b.n 800a472 <DMA_SetConfig+0x32a>
  23540. 800a364: 40020010 .word 0x40020010
  23541. 800a368: 40020028 .word 0x40020028
  23542. 800a36c: 40020040 .word 0x40020040
  23543. 800a370: 40020058 .word 0x40020058
  23544. 800a374: 40020070 .word 0x40020070
  23545. 800a378: 40020088 .word 0x40020088
  23546. 800a37c: 400200a0 .word 0x400200a0
  23547. 800a380: 400200b8 .word 0x400200b8
  23548. 800a384: 40020410 .word 0x40020410
  23549. 800a388: 40020428 .word 0x40020428
  23550. 800a38c: 40020440 .word 0x40020440
  23551. 800a390: 40020458 .word 0x40020458
  23552. 800a394: 40020470 .word 0x40020470
  23553. 800a398: 40020488 .word 0x40020488
  23554. 800a39c: 400204a0 .word 0x400204a0
  23555. 800a3a0: 400204b8 .word 0x400204b8
  23556. 800a3a4: 58025408 .word 0x58025408
  23557. 800a3a8: 5802541c .word 0x5802541c
  23558. 800a3ac: 58025430 .word 0x58025430
  23559. 800a3b0: 58025444 .word 0x58025444
  23560. 800a3b4: 58025458 .word 0x58025458
  23561. 800a3b8: 5802546c .word 0x5802546c
  23562. 800a3bc: 58025480 .word 0x58025480
  23563. 800a3c0: 58025494 .word 0x58025494
  23564. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  23565. 800a3c4: 68fb ldr r3, [r7, #12]
  23566. 800a3c6: 681b ldr r3, [r3, #0]
  23567. 800a3c8: 68ba ldr r2, [r7, #8]
  23568. 800a3ca: 609a str r2, [r3, #8]
  23569. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  23570. 800a3cc: 68fb ldr r3, [r7, #12]
  23571. 800a3ce: 681b ldr r3, [r3, #0]
  23572. 800a3d0: 687a ldr r2, [r7, #4]
  23573. 800a3d2: 60da str r2, [r3, #12]
  23574. }
  23575. 800a3d4: e04d b.n 800a472 <DMA_SetConfig+0x32a>
  23576. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23577. 800a3d6: 68fb ldr r3, [r7, #12]
  23578. 800a3d8: 681b ldr r3, [r3, #0]
  23579. 800a3da: 4a29 ldr r2, [pc, #164] @ (800a480 <DMA_SetConfig+0x338>)
  23580. 800a3dc: 4293 cmp r3, r2
  23581. 800a3de: d022 beq.n 800a426 <DMA_SetConfig+0x2de>
  23582. 800a3e0: 68fb ldr r3, [r7, #12]
  23583. 800a3e2: 681b ldr r3, [r3, #0]
  23584. 800a3e4: 4a27 ldr r2, [pc, #156] @ (800a484 <DMA_SetConfig+0x33c>)
  23585. 800a3e6: 4293 cmp r3, r2
  23586. 800a3e8: d01d beq.n 800a426 <DMA_SetConfig+0x2de>
  23587. 800a3ea: 68fb ldr r3, [r7, #12]
  23588. 800a3ec: 681b ldr r3, [r3, #0]
  23589. 800a3ee: 4a26 ldr r2, [pc, #152] @ (800a488 <DMA_SetConfig+0x340>)
  23590. 800a3f0: 4293 cmp r3, r2
  23591. 800a3f2: d018 beq.n 800a426 <DMA_SetConfig+0x2de>
  23592. 800a3f4: 68fb ldr r3, [r7, #12]
  23593. 800a3f6: 681b ldr r3, [r3, #0]
  23594. 800a3f8: 4a24 ldr r2, [pc, #144] @ (800a48c <DMA_SetConfig+0x344>)
  23595. 800a3fa: 4293 cmp r3, r2
  23596. 800a3fc: d013 beq.n 800a426 <DMA_SetConfig+0x2de>
  23597. 800a3fe: 68fb ldr r3, [r7, #12]
  23598. 800a400: 681b ldr r3, [r3, #0]
  23599. 800a402: 4a23 ldr r2, [pc, #140] @ (800a490 <DMA_SetConfig+0x348>)
  23600. 800a404: 4293 cmp r3, r2
  23601. 800a406: d00e beq.n 800a426 <DMA_SetConfig+0x2de>
  23602. 800a408: 68fb ldr r3, [r7, #12]
  23603. 800a40a: 681b ldr r3, [r3, #0]
  23604. 800a40c: 4a21 ldr r2, [pc, #132] @ (800a494 <DMA_SetConfig+0x34c>)
  23605. 800a40e: 4293 cmp r3, r2
  23606. 800a410: d009 beq.n 800a426 <DMA_SetConfig+0x2de>
  23607. 800a412: 68fb ldr r3, [r7, #12]
  23608. 800a414: 681b ldr r3, [r3, #0]
  23609. 800a416: 4a20 ldr r2, [pc, #128] @ (800a498 <DMA_SetConfig+0x350>)
  23610. 800a418: 4293 cmp r3, r2
  23611. 800a41a: d004 beq.n 800a426 <DMA_SetConfig+0x2de>
  23612. 800a41c: 68fb ldr r3, [r7, #12]
  23613. 800a41e: 681b ldr r3, [r3, #0]
  23614. 800a420: 4a1e ldr r2, [pc, #120] @ (800a49c <DMA_SetConfig+0x354>)
  23615. 800a422: 4293 cmp r3, r2
  23616. 800a424: d101 bne.n 800a42a <DMA_SetConfig+0x2e2>
  23617. 800a426: 2301 movs r3, #1
  23618. 800a428: e000 b.n 800a42c <DMA_SetConfig+0x2e4>
  23619. 800a42a: 2300 movs r3, #0
  23620. 800a42c: 2b00 cmp r3, #0
  23621. 800a42e: d020 beq.n 800a472 <DMA_SetConfig+0x32a>
  23622. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  23623. 800a430: 68fb ldr r3, [r7, #12]
  23624. 800a432: 6ddb ldr r3, [r3, #92] @ 0x5c
  23625. 800a434: f003 031f and.w r3, r3, #31
  23626. 800a438: 2201 movs r2, #1
  23627. 800a43a: 409a lsls r2, r3
  23628. 800a43c: 693b ldr r3, [r7, #16]
  23629. 800a43e: 605a str r2, [r3, #4]
  23630. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  23631. 800a440: 68fb ldr r3, [r7, #12]
  23632. 800a442: 681b ldr r3, [r3, #0]
  23633. 800a444: 683a ldr r2, [r7, #0]
  23634. 800a446: 605a str r2, [r3, #4]
  23635. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  23636. 800a448: 68fb ldr r3, [r7, #12]
  23637. 800a44a: 689b ldr r3, [r3, #8]
  23638. 800a44c: 2b40 cmp r3, #64 @ 0x40
  23639. 800a44e: d108 bne.n 800a462 <DMA_SetConfig+0x31a>
  23640. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  23641. 800a450: 68fb ldr r3, [r7, #12]
  23642. 800a452: 681b ldr r3, [r3, #0]
  23643. 800a454: 687a ldr r2, [r7, #4]
  23644. 800a456: 609a str r2, [r3, #8]
  23645. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  23646. 800a458: 68fb ldr r3, [r7, #12]
  23647. 800a45a: 681b ldr r3, [r3, #0]
  23648. 800a45c: 68ba ldr r2, [r7, #8]
  23649. 800a45e: 60da str r2, [r3, #12]
  23650. }
  23651. 800a460: e007 b.n 800a472 <DMA_SetConfig+0x32a>
  23652. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  23653. 800a462: 68fb ldr r3, [r7, #12]
  23654. 800a464: 681b ldr r3, [r3, #0]
  23655. 800a466: 68ba ldr r2, [r7, #8]
  23656. 800a468: 609a str r2, [r3, #8]
  23657. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  23658. 800a46a: 68fb ldr r3, [r7, #12]
  23659. 800a46c: 681b ldr r3, [r3, #0]
  23660. 800a46e: 687a ldr r2, [r7, #4]
  23661. 800a470: 60da str r2, [r3, #12]
  23662. }
  23663. 800a472: bf00 nop
  23664. 800a474: 371c adds r7, #28
  23665. 800a476: 46bd mov sp, r7
  23666. 800a478: f85d 7b04 ldr.w r7, [sp], #4
  23667. 800a47c: 4770 bx lr
  23668. 800a47e: bf00 nop
  23669. 800a480: 58025408 .word 0x58025408
  23670. 800a484: 5802541c .word 0x5802541c
  23671. 800a488: 58025430 .word 0x58025430
  23672. 800a48c: 58025444 .word 0x58025444
  23673. 800a490: 58025458 .word 0x58025458
  23674. 800a494: 5802546c .word 0x5802546c
  23675. 800a498: 58025480 .word 0x58025480
  23676. 800a49c: 58025494 .word 0x58025494
  23677. 0800a4a0 <DMA_CalcBaseAndBitshift>:
  23678. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23679. * the configuration information for the specified DMA Stream.
  23680. * @retval Stream base address
  23681. */
  23682. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  23683. {
  23684. 800a4a0: b480 push {r7}
  23685. 800a4a2: b085 sub sp, #20
  23686. 800a4a4: af00 add r7, sp, #0
  23687. 800a4a6: 6078 str r0, [r7, #4]
  23688. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  23689. 800a4a8: 687b ldr r3, [r7, #4]
  23690. 800a4aa: 681b ldr r3, [r3, #0]
  23691. 800a4ac: 4a42 ldr r2, [pc, #264] @ (800a5b8 <DMA_CalcBaseAndBitshift+0x118>)
  23692. 800a4ae: 4293 cmp r3, r2
  23693. 800a4b0: d04a beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23694. 800a4b2: 687b ldr r3, [r7, #4]
  23695. 800a4b4: 681b ldr r3, [r3, #0]
  23696. 800a4b6: 4a41 ldr r2, [pc, #260] @ (800a5bc <DMA_CalcBaseAndBitshift+0x11c>)
  23697. 800a4b8: 4293 cmp r3, r2
  23698. 800a4ba: d045 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23699. 800a4bc: 687b ldr r3, [r7, #4]
  23700. 800a4be: 681b ldr r3, [r3, #0]
  23701. 800a4c0: 4a3f ldr r2, [pc, #252] @ (800a5c0 <DMA_CalcBaseAndBitshift+0x120>)
  23702. 800a4c2: 4293 cmp r3, r2
  23703. 800a4c4: d040 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23704. 800a4c6: 687b ldr r3, [r7, #4]
  23705. 800a4c8: 681b ldr r3, [r3, #0]
  23706. 800a4ca: 4a3e ldr r2, [pc, #248] @ (800a5c4 <DMA_CalcBaseAndBitshift+0x124>)
  23707. 800a4cc: 4293 cmp r3, r2
  23708. 800a4ce: d03b beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23709. 800a4d0: 687b ldr r3, [r7, #4]
  23710. 800a4d2: 681b ldr r3, [r3, #0]
  23711. 800a4d4: 4a3c ldr r2, [pc, #240] @ (800a5c8 <DMA_CalcBaseAndBitshift+0x128>)
  23712. 800a4d6: 4293 cmp r3, r2
  23713. 800a4d8: d036 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23714. 800a4da: 687b ldr r3, [r7, #4]
  23715. 800a4dc: 681b ldr r3, [r3, #0]
  23716. 800a4de: 4a3b ldr r2, [pc, #236] @ (800a5cc <DMA_CalcBaseAndBitshift+0x12c>)
  23717. 800a4e0: 4293 cmp r3, r2
  23718. 800a4e2: d031 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23719. 800a4e4: 687b ldr r3, [r7, #4]
  23720. 800a4e6: 681b ldr r3, [r3, #0]
  23721. 800a4e8: 4a39 ldr r2, [pc, #228] @ (800a5d0 <DMA_CalcBaseAndBitshift+0x130>)
  23722. 800a4ea: 4293 cmp r3, r2
  23723. 800a4ec: d02c beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23724. 800a4ee: 687b ldr r3, [r7, #4]
  23725. 800a4f0: 681b ldr r3, [r3, #0]
  23726. 800a4f2: 4a38 ldr r2, [pc, #224] @ (800a5d4 <DMA_CalcBaseAndBitshift+0x134>)
  23727. 800a4f4: 4293 cmp r3, r2
  23728. 800a4f6: d027 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23729. 800a4f8: 687b ldr r3, [r7, #4]
  23730. 800a4fa: 681b ldr r3, [r3, #0]
  23731. 800a4fc: 4a36 ldr r2, [pc, #216] @ (800a5d8 <DMA_CalcBaseAndBitshift+0x138>)
  23732. 800a4fe: 4293 cmp r3, r2
  23733. 800a500: d022 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23734. 800a502: 687b ldr r3, [r7, #4]
  23735. 800a504: 681b ldr r3, [r3, #0]
  23736. 800a506: 4a35 ldr r2, [pc, #212] @ (800a5dc <DMA_CalcBaseAndBitshift+0x13c>)
  23737. 800a508: 4293 cmp r3, r2
  23738. 800a50a: d01d beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23739. 800a50c: 687b ldr r3, [r7, #4]
  23740. 800a50e: 681b ldr r3, [r3, #0]
  23741. 800a510: 4a33 ldr r2, [pc, #204] @ (800a5e0 <DMA_CalcBaseAndBitshift+0x140>)
  23742. 800a512: 4293 cmp r3, r2
  23743. 800a514: d018 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23744. 800a516: 687b ldr r3, [r7, #4]
  23745. 800a518: 681b ldr r3, [r3, #0]
  23746. 800a51a: 4a32 ldr r2, [pc, #200] @ (800a5e4 <DMA_CalcBaseAndBitshift+0x144>)
  23747. 800a51c: 4293 cmp r3, r2
  23748. 800a51e: d013 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23749. 800a520: 687b ldr r3, [r7, #4]
  23750. 800a522: 681b ldr r3, [r3, #0]
  23751. 800a524: 4a30 ldr r2, [pc, #192] @ (800a5e8 <DMA_CalcBaseAndBitshift+0x148>)
  23752. 800a526: 4293 cmp r3, r2
  23753. 800a528: d00e beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23754. 800a52a: 687b ldr r3, [r7, #4]
  23755. 800a52c: 681b ldr r3, [r3, #0]
  23756. 800a52e: 4a2f ldr r2, [pc, #188] @ (800a5ec <DMA_CalcBaseAndBitshift+0x14c>)
  23757. 800a530: 4293 cmp r3, r2
  23758. 800a532: d009 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23759. 800a534: 687b ldr r3, [r7, #4]
  23760. 800a536: 681b ldr r3, [r3, #0]
  23761. 800a538: 4a2d ldr r2, [pc, #180] @ (800a5f0 <DMA_CalcBaseAndBitshift+0x150>)
  23762. 800a53a: 4293 cmp r3, r2
  23763. 800a53c: d004 beq.n 800a548 <DMA_CalcBaseAndBitshift+0xa8>
  23764. 800a53e: 687b ldr r3, [r7, #4]
  23765. 800a540: 681b ldr r3, [r3, #0]
  23766. 800a542: 4a2c ldr r2, [pc, #176] @ (800a5f4 <DMA_CalcBaseAndBitshift+0x154>)
  23767. 800a544: 4293 cmp r3, r2
  23768. 800a546: d101 bne.n 800a54c <DMA_CalcBaseAndBitshift+0xac>
  23769. 800a548: 2301 movs r3, #1
  23770. 800a54a: e000 b.n 800a54e <DMA_CalcBaseAndBitshift+0xae>
  23771. 800a54c: 2300 movs r3, #0
  23772. 800a54e: 2b00 cmp r3, #0
  23773. 800a550: d024 beq.n 800a59c <DMA_CalcBaseAndBitshift+0xfc>
  23774. {
  23775. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  23776. 800a552: 687b ldr r3, [r7, #4]
  23777. 800a554: 681b ldr r3, [r3, #0]
  23778. 800a556: b2db uxtb r3, r3
  23779. 800a558: 3b10 subs r3, #16
  23780. 800a55a: 4a27 ldr r2, [pc, #156] @ (800a5f8 <DMA_CalcBaseAndBitshift+0x158>)
  23781. 800a55c: fba2 2303 umull r2, r3, r2, r3
  23782. 800a560: 091b lsrs r3, r3, #4
  23783. 800a562: 60fb str r3, [r7, #12]
  23784. /* lookup table for necessary bitshift of flags within status registers */
  23785. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  23786. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  23787. 800a564: 68fb ldr r3, [r7, #12]
  23788. 800a566: f003 0307 and.w r3, r3, #7
  23789. 800a56a: 4a24 ldr r2, [pc, #144] @ (800a5fc <DMA_CalcBaseAndBitshift+0x15c>)
  23790. 800a56c: 5cd3 ldrb r3, [r2, r3]
  23791. 800a56e: 461a mov r2, r3
  23792. 800a570: 687b ldr r3, [r7, #4]
  23793. 800a572: 65da str r2, [r3, #92] @ 0x5c
  23794. if (stream_number > 3U)
  23795. 800a574: 68fb ldr r3, [r7, #12]
  23796. 800a576: 2b03 cmp r3, #3
  23797. 800a578: d908 bls.n 800a58c <DMA_CalcBaseAndBitshift+0xec>
  23798. {
  23799. /* return pointer to HISR and HIFCR */
  23800. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  23801. 800a57a: 687b ldr r3, [r7, #4]
  23802. 800a57c: 681b ldr r3, [r3, #0]
  23803. 800a57e: 461a mov r2, r3
  23804. 800a580: 4b1f ldr r3, [pc, #124] @ (800a600 <DMA_CalcBaseAndBitshift+0x160>)
  23805. 800a582: 4013 ands r3, r2
  23806. 800a584: 1d1a adds r2, r3, #4
  23807. 800a586: 687b ldr r3, [r7, #4]
  23808. 800a588: 659a str r2, [r3, #88] @ 0x58
  23809. 800a58a: e00d b.n 800a5a8 <DMA_CalcBaseAndBitshift+0x108>
  23810. }
  23811. else
  23812. {
  23813. /* return pointer to LISR and LIFCR */
  23814. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  23815. 800a58c: 687b ldr r3, [r7, #4]
  23816. 800a58e: 681b ldr r3, [r3, #0]
  23817. 800a590: 461a mov r2, r3
  23818. 800a592: 4b1b ldr r3, [pc, #108] @ (800a600 <DMA_CalcBaseAndBitshift+0x160>)
  23819. 800a594: 4013 ands r3, r2
  23820. 800a596: 687a ldr r2, [r7, #4]
  23821. 800a598: 6593 str r3, [r2, #88] @ 0x58
  23822. 800a59a: e005 b.n 800a5a8 <DMA_CalcBaseAndBitshift+0x108>
  23823. }
  23824. }
  23825. else /* BDMA instance(s) */
  23826. {
  23827. /* return pointer to ISR and IFCR */
  23828. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  23829. 800a59c: 687b ldr r3, [r7, #4]
  23830. 800a59e: 681b ldr r3, [r3, #0]
  23831. 800a5a0: f023 02ff bic.w r2, r3, #255 @ 0xff
  23832. 800a5a4: 687b ldr r3, [r7, #4]
  23833. 800a5a6: 659a str r2, [r3, #88] @ 0x58
  23834. }
  23835. return hdma->StreamBaseAddress;
  23836. 800a5a8: 687b ldr r3, [r7, #4]
  23837. 800a5aa: 6d9b ldr r3, [r3, #88] @ 0x58
  23838. }
  23839. 800a5ac: 4618 mov r0, r3
  23840. 800a5ae: 3714 adds r7, #20
  23841. 800a5b0: 46bd mov sp, r7
  23842. 800a5b2: f85d 7b04 ldr.w r7, [sp], #4
  23843. 800a5b6: 4770 bx lr
  23844. 800a5b8: 40020010 .word 0x40020010
  23845. 800a5bc: 40020028 .word 0x40020028
  23846. 800a5c0: 40020040 .word 0x40020040
  23847. 800a5c4: 40020058 .word 0x40020058
  23848. 800a5c8: 40020070 .word 0x40020070
  23849. 800a5cc: 40020088 .word 0x40020088
  23850. 800a5d0: 400200a0 .word 0x400200a0
  23851. 800a5d4: 400200b8 .word 0x400200b8
  23852. 800a5d8: 40020410 .word 0x40020410
  23853. 800a5dc: 40020428 .word 0x40020428
  23854. 800a5e0: 40020440 .word 0x40020440
  23855. 800a5e4: 40020458 .word 0x40020458
  23856. 800a5e8: 40020470 .word 0x40020470
  23857. 800a5ec: 40020488 .word 0x40020488
  23858. 800a5f0: 400204a0 .word 0x400204a0
  23859. 800a5f4: 400204b8 .word 0x400204b8
  23860. 800a5f8: aaaaaaab .word 0xaaaaaaab
  23861. 800a5fc: 08018c28 .word 0x08018c28
  23862. 800a600: fffffc00 .word 0xfffffc00
  23863. 0800a604 <DMA_CheckFifoParam>:
  23864. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  23865. * the configuration information for the specified DMA Stream.
  23866. * @retval HAL status
  23867. */
  23868. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  23869. {
  23870. 800a604: b480 push {r7}
  23871. 800a606: b085 sub sp, #20
  23872. 800a608: af00 add r7, sp, #0
  23873. 800a60a: 6078 str r0, [r7, #4]
  23874. HAL_StatusTypeDef status = HAL_OK;
  23875. 800a60c: 2300 movs r3, #0
  23876. 800a60e: 73fb strb r3, [r7, #15]
  23877. /* Memory Data size equal to Byte */
  23878. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  23879. 800a610: 687b ldr r3, [r7, #4]
  23880. 800a612: 699b ldr r3, [r3, #24]
  23881. 800a614: 2b00 cmp r3, #0
  23882. 800a616: d120 bne.n 800a65a <DMA_CheckFifoParam+0x56>
  23883. {
  23884. switch (hdma->Init.FIFOThreshold)
  23885. 800a618: 687b ldr r3, [r7, #4]
  23886. 800a61a: 6a9b ldr r3, [r3, #40] @ 0x28
  23887. 800a61c: 2b03 cmp r3, #3
  23888. 800a61e: d858 bhi.n 800a6d2 <DMA_CheckFifoParam+0xce>
  23889. 800a620: a201 add r2, pc, #4 @ (adr r2, 800a628 <DMA_CheckFifoParam+0x24>)
  23890. 800a622: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23891. 800a626: bf00 nop
  23892. 800a628: 0800a639 .word 0x0800a639
  23893. 800a62c: 0800a64b .word 0x0800a64b
  23894. 800a630: 0800a639 .word 0x0800a639
  23895. 800a634: 0800a6d3 .word 0x0800a6d3
  23896. {
  23897. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  23898. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  23899. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  23900. 800a638: 687b ldr r3, [r7, #4]
  23901. 800a63a: 6adb ldr r3, [r3, #44] @ 0x2c
  23902. 800a63c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  23903. 800a640: 2b00 cmp r3, #0
  23904. 800a642: d048 beq.n 800a6d6 <DMA_CheckFifoParam+0xd2>
  23905. {
  23906. status = HAL_ERROR;
  23907. 800a644: 2301 movs r3, #1
  23908. 800a646: 73fb strb r3, [r7, #15]
  23909. }
  23910. break;
  23911. 800a648: e045 b.n 800a6d6 <DMA_CheckFifoParam+0xd2>
  23912. case DMA_FIFO_THRESHOLD_HALFFULL:
  23913. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  23914. 800a64a: 687b ldr r3, [r7, #4]
  23915. 800a64c: 6adb ldr r3, [r3, #44] @ 0x2c
  23916. 800a64e: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  23917. 800a652: d142 bne.n 800a6da <DMA_CheckFifoParam+0xd6>
  23918. {
  23919. status = HAL_ERROR;
  23920. 800a654: 2301 movs r3, #1
  23921. 800a656: 73fb strb r3, [r7, #15]
  23922. }
  23923. break;
  23924. 800a658: e03f b.n 800a6da <DMA_CheckFifoParam+0xd6>
  23925. break;
  23926. }
  23927. }
  23928. /* Memory Data size equal to Half-Word */
  23929. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  23930. 800a65a: 687b ldr r3, [r7, #4]
  23931. 800a65c: 699b ldr r3, [r3, #24]
  23932. 800a65e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  23933. 800a662: d123 bne.n 800a6ac <DMA_CheckFifoParam+0xa8>
  23934. {
  23935. switch (hdma->Init.FIFOThreshold)
  23936. 800a664: 687b ldr r3, [r7, #4]
  23937. 800a666: 6a9b ldr r3, [r3, #40] @ 0x28
  23938. 800a668: 2b03 cmp r3, #3
  23939. 800a66a: d838 bhi.n 800a6de <DMA_CheckFifoParam+0xda>
  23940. 800a66c: a201 add r2, pc, #4 @ (adr r2, 800a674 <DMA_CheckFifoParam+0x70>)
  23941. 800a66e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  23942. 800a672: bf00 nop
  23943. 800a674: 0800a685 .word 0x0800a685
  23944. 800a678: 0800a68b .word 0x0800a68b
  23945. 800a67c: 0800a685 .word 0x0800a685
  23946. 800a680: 0800a69d .word 0x0800a69d
  23947. {
  23948. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  23949. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  23950. status = HAL_ERROR;
  23951. 800a684: 2301 movs r3, #1
  23952. 800a686: 73fb strb r3, [r7, #15]
  23953. break;
  23954. 800a688: e030 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  23955. case DMA_FIFO_THRESHOLD_HALFFULL:
  23956. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  23957. 800a68a: 687b ldr r3, [r7, #4]
  23958. 800a68c: 6adb ldr r3, [r3, #44] @ 0x2c
  23959. 800a68e: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  23960. 800a692: 2b00 cmp r3, #0
  23961. 800a694: d025 beq.n 800a6e2 <DMA_CheckFifoParam+0xde>
  23962. {
  23963. status = HAL_ERROR;
  23964. 800a696: 2301 movs r3, #1
  23965. 800a698: 73fb strb r3, [r7, #15]
  23966. }
  23967. break;
  23968. 800a69a: e022 b.n 800a6e2 <DMA_CheckFifoParam+0xde>
  23969. case DMA_FIFO_THRESHOLD_FULL:
  23970. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  23971. 800a69c: 687b ldr r3, [r7, #4]
  23972. 800a69e: 6adb ldr r3, [r3, #44] @ 0x2c
  23973. 800a6a0: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  23974. 800a6a4: d11f bne.n 800a6e6 <DMA_CheckFifoParam+0xe2>
  23975. {
  23976. status = HAL_ERROR;
  23977. 800a6a6: 2301 movs r3, #1
  23978. 800a6a8: 73fb strb r3, [r7, #15]
  23979. }
  23980. break;
  23981. 800a6aa: e01c b.n 800a6e6 <DMA_CheckFifoParam+0xe2>
  23982. }
  23983. /* Memory Data size equal to Word */
  23984. else
  23985. {
  23986. switch (hdma->Init.FIFOThreshold)
  23987. 800a6ac: 687b ldr r3, [r7, #4]
  23988. 800a6ae: 6a9b ldr r3, [r3, #40] @ 0x28
  23989. 800a6b0: 2b02 cmp r3, #2
  23990. 800a6b2: d902 bls.n 800a6ba <DMA_CheckFifoParam+0xb6>
  23991. 800a6b4: 2b03 cmp r3, #3
  23992. 800a6b6: d003 beq.n 800a6c0 <DMA_CheckFifoParam+0xbc>
  23993. status = HAL_ERROR;
  23994. }
  23995. break;
  23996. default:
  23997. break;
  23998. 800a6b8: e018 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  23999. status = HAL_ERROR;
  24000. 800a6ba: 2301 movs r3, #1
  24001. 800a6bc: 73fb strb r3, [r7, #15]
  24002. break;
  24003. 800a6be: e015 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24004. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24005. 800a6c0: 687b ldr r3, [r7, #4]
  24006. 800a6c2: 6adb ldr r3, [r3, #44] @ 0x2c
  24007. 800a6c4: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24008. 800a6c8: 2b00 cmp r3, #0
  24009. 800a6ca: d00e beq.n 800a6ea <DMA_CheckFifoParam+0xe6>
  24010. status = HAL_ERROR;
  24011. 800a6cc: 2301 movs r3, #1
  24012. 800a6ce: 73fb strb r3, [r7, #15]
  24013. break;
  24014. 800a6d0: e00b b.n 800a6ea <DMA_CheckFifoParam+0xe6>
  24015. break;
  24016. 800a6d2: bf00 nop
  24017. 800a6d4: e00a b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24018. break;
  24019. 800a6d6: bf00 nop
  24020. 800a6d8: e008 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24021. break;
  24022. 800a6da: bf00 nop
  24023. 800a6dc: e006 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24024. break;
  24025. 800a6de: bf00 nop
  24026. 800a6e0: e004 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24027. break;
  24028. 800a6e2: bf00 nop
  24029. 800a6e4: e002 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24030. break;
  24031. 800a6e6: bf00 nop
  24032. 800a6e8: e000 b.n 800a6ec <DMA_CheckFifoParam+0xe8>
  24033. break;
  24034. 800a6ea: bf00 nop
  24035. }
  24036. }
  24037. return status;
  24038. 800a6ec: 7bfb ldrb r3, [r7, #15]
  24039. }
  24040. 800a6ee: 4618 mov r0, r3
  24041. 800a6f0: 3714 adds r7, #20
  24042. 800a6f2: 46bd mov sp, r7
  24043. 800a6f4: f85d 7b04 ldr.w r7, [sp], #4
  24044. 800a6f8: 4770 bx lr
  24045. 800a6fa: bf00 nop
  24046. 0800a6fc <DMA_CalcDMAMUXChannelBaseAndMask>:
  24047. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24048. * the configuration information for the specified DMA Stream.
  24049. * @retval HAL status
  24050. */
  24051. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  24052. {
  24053. 800a6fc: b480 push {r7}
  24054. 800a6fe: b085 sub sp, #20
  24055. 800a700: af00 add r7, sp, #0
  24056. 800a702: 6078 str r0, [r7, #4]
  24057. uint32_t stream_number;
  24058. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  24059. 800a704: 687b ldr r3, [r7, #4]
  24060. 800a706: 681b ldr r3, [r3, #0]
  24061. 800a708: 60bb str r3, [r7, #8]
  24062. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  24063. 800a70a: 687b ldr r3, [r7, #4]
  24064. 800a70c: 681b ldr r3, [r3, #0]
  24065. 800a70e: 4a38 ldr r2, [pc, #224] @ (800a7f0 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  24066. 800a710: 4293 cmp r3, r2
  24067. 800a712: d022 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24068. 800a714: 687b ldr r3, [r7, #4]
  24069. 800a716: 681b ldr r3, [r3, #0]
  24070. 800a718: 4a36 ldr r2, [pc, #216] @ (800a7f4 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  24071. 800a71a: 4293 cmp r3, r2
  24072. 800a71c: d01d beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24073. 800a71e: 687b ldr r3, [r7, #4]
  24074. 800a720: 681b ldr r3, [r3, #0]
  24075. 800a722: 4a35 ldr r2, [pc, #212] @ (800a7f8 <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  24076. 800a724: 4293 cmp r3, r2
  24077. 800a726: d018 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24078. 800a728: 687b ldr r3, [r7, #4]
  24079. 800a72a: 681b ldr r3, [r3, #0]
  24080. 800a72c: 4a33 ldr r2, [pc, #204] @ (800a7fc <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  24081. 800a72e: 4293 cmp r3, r2
  24082. 800a730: d013 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24083. 800a732: 687b ldr r3, [r7, #4]
  24084. 800a734: 681b ldr r3, [r3, #0]
  24085. 800a736: 4a32 ldr r2, [pc, #200] @ (800a800 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  24086. 800a738: 4293 cmp r3, r2
  24087. 800a73a: d00e beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24088. 800a73c: 687b ldr r3, [r7, #4]
  24089. 800a73e: 681b ldr r3, [r3, #0]
  24090. 800a740: 4a30 ldr r2, [pc, #192] @ (800a804 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  24091. 800a742: 4293 cmp r3, r2
  24092. 800a744: d009 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24093. 800a746: 687b ldr r3, [r7, #4]
  24094. 800a748: 681b ldr r3, [r3, #0]
  24095. 800a74a: 4a2f ldr r2, [pc, #188] @ (800a808 <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  24096. 800a74c: 4293 cmp r3, r2
  24097. 800a74e: d004 beq.n 800a75a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24098. 800a750: 687b ldr r3, [r7, #4]
  24099. 800a752: 681b ldr r3, [r3, #0]
  24100. 800a754: 4a2d ldr r2, [pc, #180] @ (800a80c <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  24101. 800a756: 4293 cmp r3, r2
  24102. 800a758: d101 bne.n 800a75e <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  24103. 800a75a: 2301 movs r3, #1
  24104. 800a75c: e000 b.n 800a760 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  24105. 800a75e: 2300 movs r3, #0
  24106. 800a760: 2b00 cmp r3, #0
  24107. 800a762: d01a beq.n 800a79a <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  24108. {
  24109. /* BDMA Channels are connected to DMAMUX2 channels */
  24110. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  24111. 800a764: 687b ldr r3, [r7, #4]
  24112. 800a766: 681b ldr r3, [r3, #0]
  24113. 800a768: b2db uxtb r3, r3
  24114. 800a76a: 3b08 subs r3, #8
  24115. 800a76c: 4a28 ldr r2, [pc, #160] @ (800a810 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  24116. 800a76e: fba2 2303 umull r2, r3, r2, r3
  24117. 800a772: 091b lsrs r3, r3, #4
  24118. 800a774: 60fb str r3, [r7, #12]
  24119. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  24120. 800a776: 68fa ldr r2, [r7, #12]
  24121. 800a778: 4b26 ldr r3, [pc, #152] @ (800a814 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  24122. 800a77a: 4413 add r3, r2
  24123. 800a77c: 009b lsls r3, r3, #2
  24124. 800a77e: 461a mov r2, r3
  24125. 800a780: 687b ldr r3, [r7, #4]
  24126. 800a782: 661a str r2, [r3, #96] @ 0x60
  24127. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  24128. 800a784: 687b ldr r3, [r7, #4]
  24129. 800a786: 4a24 ldr r2, [pc, #144] @ (800a818 <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  24130. 800a788: 665a str r2, [r3, #100] @ 0x64
  24131. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24132. 800a78a: 68fb ldr r3, [r7, #12]
  24133. 800a78c: f003 031f and.w r3, r3, #31
  24134. 800a790: 2201 movs r2, #1
  24135. 800a792: 409a lsls r2, r3
  24136. 800a794: 687b ldr r3, [r7, #4]
  24137. 800a796: 669a str r2, [r3, #104] @ 0x68
  24138. }
  24139. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  24140. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  24141. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24142. }
  24143. }
  24144. 800a798: e024 b.n 800a7e4 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  24145. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24146. 800a79a: 687b ldr r3, [r7, #4]
  24147. 800a79c: 681b ldr r3, [r3, #0]
  24148. 800a79e: b2db uxtb r3, r3
  24149. 800a7a0: 3b10 subs r3, #16
  24150. 800a7a2: 4a1e ldr r2, [pc, #120] @ (800a81c <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  24151. 800a7a4: fba2 2303 umull r2, r3, r2, r3
  24152. 800a7a8: 091b lsrs r3, r3, #4
  24153. 800a7aa: 60fb str r3, [r7, #12]
  24154. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  24155. 800a7ac: 68bb ldr r3, [r7, #8]
  24156. 800a7ae: 4a1c ldr r2, [pc, #112] @ (800a820 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  24157. 800a7b0: 4293 cmp r3, r2
  24158. 800a7b2: d806 bhi.n 800a7c2 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  24159. 800a7b4: 68bb ldr r3, [r7, #8]
  24160. 800a7b6: 4a1b ldr r2, [pc, #108] @ (800a824 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  24161. 800a7b8: 4293 cmp r3, r2
  24162. 800a7ba: d902 bls.n 800a7c2 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  24163. stream_number += 8U;
  24164. 800a7bc: 68fb ldr r3, [r7, #12]
  24165. 800a7be: 3308 adds r3, #8
  24166. 800a7c0: 60fb str r3, [r7, #12]
  24167. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  24168. 800a7c2: 68fa ldr r2, [r7, #12]
  24169. 800a7c4: 4b18 ldr r3, [pc, #96] @ (800a828 <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  24170. 800a7c6: 4413 add r3, r2
  24171. 800a7c8: 009b lsls r3, r3, #2
  24172. 800a7ca: 461a mov r2, r3
  24173. 800a7cc: 687b ldr r3, [r7, #4]
  24174. 800a7ce: 661a str r2, [r3, #96] @ 0x60
  24175. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  24176. 800a7d0: 687b ldr r3, [r7, #4]
  24177. 800a7d2: 4a16 ldr r2, [pc, #88] @ (800a82c <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  24178. 800a7d4: 665a str r2, [r3, #100] @ 0x64
  24179. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24180. 800a7d6: 68fb ldr r3, [r7, #12]
  24181. 800a7d8: f003 031f and.w r3, r3, #31
  24182. 800a7dc: 2201 movs r2, #1
  24183. 800a7de: 409a lsls r2, r3
  24184. 800a7e0: 687b ldr r3, [r7, #4]
  24185. 800a7e2: 669a str r2, [r3, #104] @ 0x68
  24186. }
  24187. 800a7e4: bf00 nop
  24188. 800a7e6: 3714 adds r7, #20
  24189. 800a7e8: 46bd mov sp, r7
  24190. 800a7ea: f85d 7b04 ldr.w r7, [sp], #4
  24191. 800a7ee: 4770 bx lr
  24192. 800a7f0: 58025408 .word 0x58025408
  24193. 800a7f4: 5802541c .word 0x5802541c
  24194. 800a7f8: 58025430 .word 0x58025430
  24195. 800a7fc: 58025444 .word 0x58025444
  24196. 800a800: 58025458 .word 0x58025458
  24197. 800a804: 5802546c .word 0x5802546c
  24198. 800a808: 58025480 .word 0x58025480
  24199. 800a80c: 58025494 .word 0x58025494
  24200. 800a810: cccccccd .word 0xcccccccd
  24201. 800a814: 16009600 .word 0x16009600
  24202. 800a818: 58025880 .word 0x58025880
  24203. 800a81c: aaaaaaab .word 0xaaaaaaab
  24204. 800a820: 400204b8 .word 0x400204b8
  24205. 800a824: 4002040f .word 0x4002040f
  24206. 800a828: 10008200 .word 0x10008200
  24207. 800a82c: 40020880 .word 0x40020880
  24208. 0800a830 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  24209. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24210. * the configuration information for the specified DMA Stream.
  24211. * @retval HAL status
  24212. */
  24213. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  24214. {
  24215. 800a830: b480 push {r7}
  24216. 800a832: b085 sub sp, #20
  24217. 800a834: af00 add r7, sp, #0
  24218. 800a836: 6078 str r0, [r7, #4]
  24219. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  24220. 800a838: 687b ldr r3, [r7, #4]
  24221. 800a83a: 685b ldr r3, [r3, #4]
  24222. 800a83c: b2db uxtb r3, r3
  24223. 800a83e: 60fb str r3, [r7, #12]
  24224. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  24225. 800a840: 68fb ldr r3, [r7, #12]
  24226. 800a842: 2b00 cmp r3, #0
  24227. 800a844: d04a beq.n 800a8dc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24228. 800a846: 68fb ldr r3, [r7, #12]
  24229. 800a848: 2b08 cmp r3, #8
  24230. 800a84a: d847 bhi.n 800a8dc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24231. {
  24232. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  24233. 800a84c: 687b ldr r3, [r7, #4]
  24234. 800a84e: 681b ldr r3, [r3, #0]
  24235. 800a850: 4a25 ldr r2, [pc, #148] @ (800a8e8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  24236. 800a852: 4293 cmp r3, r2
  24237. 800a854: d022 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24238. 800a856: 687b ldr r3, [r7, #4]
  24239. 800a858: 681b ldr r3, [r3, #0]
  24240. 800a85a: 4a24 ldr r2, [pc, #144] @ (800a8ec <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  24241. 800a85c: 4293 cmp r3, r2
  24242. 800a85e: d01d beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24243. 800a860: 687b ldr r3, [r7, #4]
  24244. 800a862: 681b ldr r3, [r3, #0]
  24245. 800a864: 4a22 ldr r2, [pc, #136] @ (800a8f0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  24246. 800a866: 4293 cmp r3, r2
  24247. 800a868: d018 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24248. 800a86a: 687b ldr r3, [r7, #4]
  24249. 800a86c: 681b ldr r3, [r3, #0]
  24250. 800a86e: 4a21 ldr r2, [pc, #132] @ (800a8f4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  24251. 800a870: 4293 cmp r3, r2
  24252. 800a872: d013 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24253. 800a874: 687b ldr r3, [r7, #4]
  24254. 800a876: 681b ldr r3, [r3, #0]
  24255. 800a878: 4a1f ldr r2, [pc, #124] @ (800a8f8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  24256. 800a87a: 4293 cmp r3, r2
  24257. 800a87c: d00e beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24258. 800a87e: 687b ldr r3, [r7, #4]
  24259. 800a880: 681b ldr r3, [r3, #0]
  24260. 800a882: 4a1e ldr r2, [pc, #120] @ (800a8fc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  24261. 800a884: 4293 cmp r3, r2
  24262. 800a886: d009 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24263. 800a888: 687b ldr r3, [r7, #4]
  24264. 800a88a: 681b ldr r3, [r3, #0]
  24265. 800a88c: 4a1c ldr r2, [pc, #112] @ (800a900 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  24266. 800a88e: 4293 cmp r3, r2
  24267. 800a890: d004 beq.n 800a89c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24268. 800a892: 687b ldr r3, [r7, #4]
  24269. 800a894: 681b ldr r3, [r3, #0]
  24270. 800a896: 4a1b ldr r2, [pc, #108] @ (800a904 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  24271. 800a898: 4293 cmp r3, r2
  24272. 800a89a: d101 bne.n 800a8a0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  24273. 800a89c: 2301 movs r3, #1
  24274. 800a89e: e000 b.n 800a8a2 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  24275. 800a8a0: 2300 movs r3, #0
  24276. 800a8a2: 2b00 cmp r3, #0
  24277. 800a8a4: d00a beq.n 800a8bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  24278. {
  24279. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  24280. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  24281. 800a8a6: 68fa ldr r2, [r7, #12]
  24282. 800a8a8: 4b17 ldr r3, [pc, #92] @ (800a908 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  24283. 800a8aa: 4413 add r3, r2
  24284. 800a8ac: 009b lsls r3, r3, #2
  24285. 800a8ae: 461a mov r2, r3
  24286. 800a8b0: 687b ldr r3, [r7, #4]
  24287. 800a8b2: 66da str r2, [r3, #108] @ 0x6c
  24288. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  24289. 800a8b4: 687b ldr r3, [r7, #4]
  24290. 800a8b6: 4a15 ldr r2, [pc, #84] @ (800a90c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  24291. 800a8b8: 671a str r2, [r3, #112] @ 0x70
  24292. 800a8ba: e009 b.n 800a8d0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  24293. }
  24294. else
  24295. {
  24296. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  24297. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  24298. 800a8bc: 68fa ldr r2, [r7, #12]
  24299. 800a8be: 4b14 ldr r3, [pc, #80] @ (800a910 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  24300. 800a8c0: 4413 add r3, r2
  24301. 800a8c2: 009b lsls r3, r3, #2
  24302. 800a8c4: 461a mov r2, r3
  24303. 800a8c6: 687b ldr r3, [r7, #4]
  24304. 800a8c8: 66da str r2, [r3, #108] @ 0x6c
  24305. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  24306. 800a8ca: 687b ldr r3, [r7, #4]
  24307. 800a8cc: 4a11 ldr r2, [pc, #68] @ (800a914 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  24308. 800a8ce: 671a str r2, [r3, #112] @ 0x70
  24309. }
  24310. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  24311. 800a8d0: 68fb ldr r3, [r7, #12]
  24312. 800a8d2: 3b01 subs r3, #1
  24313. 800a8d4: 2201 movs r2, #1
  24314. 800a8d6: 409a lsls r2, r3
  24315. 800a8d8: 687b ldr r3, [r7, #4]
  24316. 800a8da: 675a str r2, [r3, #116] @ 0x74
  24317. }
  24318. }
  24319. 800a8dc: bf00 nop
  24320. 800a8de: 3714 adds r7, #20
  24321. 800a8e0: 46bd mov sp, r7
  24322. 800a8e2: f85d 7b04 ldr.w r7, [sp], #4
  24323. 800a8e6: 4770 bx lr
  24324. 800a8e8: 58025408 .word 0x58025408
  24325. 800a8ec: 5802541c .word 0x5802541c
  24326. 800a8f0: 58025430 .word 0x58025430
  24327. 800a8f4: 58025444 .word 0x58025444
  24328. 800a8f8: 58025458 .word 0x58025458
  24329. 800a8fc: 5802546c .word 0x5802546c
  24330. 800a900: 58025480 .word 0x58025480
  24331. 800a904: 58025494 .word 0x58025494
  24332. 800a908: 1600963f .word 0x1600963f
  24333. 800a90c: 58025940 .word 0x58025940
  24334. 800a910: 1000823f .word 0x1000823f
  24335. 800a914: 40020940 .word 0x40020940
  24336. 0800a918 <HAL_GPIO_Init>:
  24337. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  24338. * the configuration information for the specified GPIO peripheral.
  24339. * @retval None
  24340. */
  24341. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  24342. {
  24343. 800a918: b480 push {r7}
  24344. 800a91a: b089 sub sp, #36 @ 0x24
  24345. 800a91c: af00 add r7, sp, #0
  24346. 800a91e: 6078 str r0, [r7, #4]
  24347. 800a920: 6039 str r1, [r7, #0]
  24348. uint32_t position = 0x00U;
  24349. 800a922: 2300 movs r3, #0
  24350. 800a924: 61fb str r3, [r7, #28]
  24351. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  24352. #if defined(DUAL_CORE) && defined(CORE_CM4)
  24353. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  24354. #else
  24355. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  24356. 800a926: 4b89 ldr r3, [pc, #548] @ (800ab4c <HAL_GPIO_Init+0x234>)
  24357. 800a928: 617b str r3, [r7, #20]
  24358. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  24359. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  24360. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  24361. /* Configure the port pins */
  24362. while (((GPIO_Init->Pin) >> position) != 0x00U)
  24363. 800a92a: e194 b.n 800ac56 <HAL_GPIO_Init+0x33e>
  24364. {
  24365. /* Get current io position */
  24366. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  24367. 800a92c: 683b ldr r3, [r7, #0]
  24368. 800a92e: 681a ldr r2, [r3, #0]
  24369. 800a930: 2101 movs r1, #1
  24370. 800a932: 69fb ldr r3, [r7, #28]
  24371. 800a934: fa01 f303 lsl.w r3, r1, r3
  24372. 800a938: 4013 ands r3, r2
  24373. 800a93a: 613b str r3, [r7, #16]
  24374. if (iocurrent != 0x00U)
  24375. 800a93c: 693b ldr r3, [r7, #16]
  24376. 800a93e: 2b00 cmp r3, #0
  24377. 800a940: f000 8186 beq.w 800ac50 <HAL_GPIO_Init+0x338>
  24378. {
  24379. /*--------------------- GPIO Mode Configuration ------------------------*/
  24380. /* In case of Output or Alternate function mode selection */
  24381. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  24382. 800a944: 683b ldr r3, [r7, #0]
  24383. 800a946: 685b ldr r3, [r3, #4]
  24384. 800a948: f003 0303 and.w r3, r3, #3
  24385. 800a94c: 2b01 cmp r3, #1
  24386. 800a94e: d005 beq.n 800a95c <HAL_GPIO_Init+0x44>
  24387. 800a950: 683b ldr r3, [r7, #0]
  24388. 800a952: 685b ldr r3, [r3, #4]
  24389. 800a954: f003 0303 and.w r3, r3, #3
  24390. 800a958: 2b02 cmp r3, #2
  24391. 800a95a: d130 bne.n 800a9be <HAL_GPIO_Init+0xa6>
  24392. {
  24393. /* Check the Speed parameter */
  24394. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  24395. /* Configure the IO Speed */
  24396. temp = GPIOx->OSPEEDR;
  24397. 800a95c: 687b ldr r3, [r7, #4]
  24398. 800a95e: 689b ldr r3, [r3, #8]
  24399. 800a960: 61bb str r3, [r7, #24]
  24400. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  24401. 800a962: 69fb ldr r3, [r7, #28]
  24402. 800a964: 005b lsls r3, r3, #1
  24403. 800a966: 2203 movs r2, #3
  24404. 800a968: fa02 f303 lsl.w r3, r2, r3
  24405. 800a96c: 43db mvns r3, r3
  24406. 800a96e: 69ba ldr r2, [r7, #24]
  24407. 800a970: 4013 ands r3, r2
  24408. 800a972: 61bb str r3, [r7, #24]
  24409. temp |= (GPIO_Init->Speed << (position * 2U));
  24410. 800a974: 683b ldr r3, [r7, #0]
  24411. 800a976: 68da ldr r2, [r3, #12]
  24412. 800a978: 69fb ldr r3, [r7, #28]
  24413. 800a97a: 005b lsls r3, r3, #1
  24414. 800a97c: fa02 f303 lsl.w r3, r2, r3
  24415. 800a980: 69ba ldr r2, [r7, #24]
  24416. 800a982: 4313 orrs r3, r2
  24417. 800a984: 61bb str r3, [r7, #24]
  24418. GPIOx->OSPEEDR = temp;
  24419. 800a986: 687b ldr r3, [r7, #4]
  24420. 800a988: 69ba ldr r2, [r7, #24]
  24421. 800a98a: 609a str r2, [r3, #8]
  24422. /* Configure the IO Output Type */
  24423. temp = GPIOx->OTYPER;
  24424. 800a98c: 687b ldr r3, [r7, #4]
  24425. 800a98e: 685b ldr r3, [r3, #4]
  24426. 800a990: 61bb str r3, [r7, #24]
  24427. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  24428. 800a992: 2201 movs r2, #1
  24429. 800a994: 69fb ldr r3, [r7, #28]
  24430. 800a996: fa02 f303 lsl.w r3, r2, r3
  24431. 800a99a: 43db mvns r3, r3
  24432. 800a99c: 69ba ldr r2, [r7, #24]
  24433. 800a99e: 4013 ands r3, r2
  24434. 800a9a0: 61bb str r3, [r7, #24]
  24435. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  24436. 800a9a2: 683b ldr r3, [r7, #0]
  24437. 800a9a4: 685b ldr r3, [r3, #4]
  24438. 800a9a6: 091b lsrs r3, r3, #4
  24439. 800a9a8: f003 0201 and.w r2, r3, #1
  24440. 800a9ac: 69fb ldr r3, [r7, #28]
  24441. 800a9ae: fa02 f303 lsl.w r3, r2, r3
  24442. 800a9b2: 69ba ldr r2, [r7, #24]
  24443. 800a9b4: 4313 orrs r3, r2
  24444. 800a9b6: 61bb str r3, [r7, #24]
  24445. GPIOx->OTYPER = temp;
  24446. 800a9b8: 687b ldr r3, [r7, #4]
  24447. 800a9ba: 69ba ldr r2, [r7, #24]
  24448. 800a9bc: 605a str r2, [r3, #4]
  24449. }
  24450. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  24451. 800a9be: 683b ldr r3, [r7, #0]
  24452. 800a9c0: 685b ldr r3, [r3, #4]
  24453. 800a9c2: f003 0303 and.w r3, r3, #3
  24454. 800a9c6: 2b03 cmp r3, #3
  24455. 800a9c8: d017 beq.n 800a9fa <HAL_GPIO_Init+0xe2>
  24456. {
  24457. /* Check the Pull parameter */
  24458. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  24459. /* Activate the Pull-up or Pull down resistor for the current IO */
  24460. temp = GPIOx->PUPDR;
  24461. 800a9ca: 687b ldr r3, [r7, #4]
  24462. 800a9cc: 68db ldr r3, [r3, #12]
  24463. 800a9ce: 61bb str r3, [r7, #24]
  24464. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  24465. 800a9d0: 69fb ldr r3, [r7, #28]
  24466. 800a9d2: 005b lsls r3, r3, #1
  24467. 800a9d4: 2203 movs r2, #3
  24468. 800a9d6: fa02 f303 lsl.w r3, r2, r3
  24469. 800a9da: 43db mvns r3, r3
  24470. 800a9dc: 69ba ldr r2, [r7, #24]
  24471. 800a9de: 4013 ands r3, r2
  24472. 800a9e0: 61bb str r3, [r7, #24]
  24473. temp |= ((GPIO_Init->Pull) << (position * 2U));
  24474. 800a9e2: 683b ldr r3, [r7, #0]
  24475. 800a9e4: 689a ldr r2, [r3, #8]
  24476. 800a9e6: 69fb ldr r3, [r7, #28]
  24477. 800a9e8: 005b lsls r3, r3, #1
  24478. 800a9ea: fa02 f303 lsl.w r3, r2, r3
  24479. 800a9ee: 69ba ldr r2, [r7, #24]
  24480. 800a9f0: 4313 orrs r3, r2
  24481. 800a9f2: 61bb str r3, [r7, #24]
  24482. GPIOx->PUPDR = temp;
  24483. 800a9f4: 687b ldr r3, [r7, #4]
  24484. 800a9f6: 69ba ldr r2, [r7, #24]
  24485. 800a9f8: 60da str r2, [r3, #12]
  24486. }
  24487. /* In case of Alternate function mode selection */
  24488. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  24489. 800a9fa: 683b ldr r3, [r7, #0]
  24490. 800a9fc: 685b ldr r3, [r3, #4]
  24491. 800a9fe: f003 0303 and.w r3, r3, #3
  24492. 800aa02: 2b02 cmp r3, #2
  24493. 800aa04: d123 bne.n 800aa4e <HAL_GPIO_Init+0x136>
  24494. /* Check the Alternate function parameters */
  24495. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  24496. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  24497. /* Configure Alternate function mapped with the current IO */
  24498. temp = GPIOx->AFR[position >> 3U];
  24499. 800aa06: 69fb ldr r3, [r7, #28]
  24500. 800aa08: 08da lsrs r2, r3, #3
  24501. 800aa0a: 687b ldr r3, [r7, #4]
  24502. 800aa0c: 3208 adds r2, #8
  24503. 800aa0e: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  24504. 800aa12: 61bb str r3, [r7, #24]
  24505. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  24506. 800aa14: 69fb ldr r3, [r7, #28]
  24507. 800aa16: f003 0307 and.w r3, r3, #7
  24508. 800aa1a: 009b lsls r3, r3, #2
  24509. 800aa1c: 220f movs r2, #15
  24510. 800aa1e: fa02 f303 lsl.w r3, r2, r3
  24511. 800aa22: 43db mvns r3, r3
  24512. 800aa24: 69ba ldr r2, [r7, #24]
  24513. 800aa26: 4013 ands r3, r2
  24514. 800aa28: 61bb str r3, [r7, #24]
  24515. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  24516. 800aa2a: 683b ldr r3, [r7, #0]
  24517. 800aa2c: 691a ldr r2, [r3, #16]
  24518. 800aa2e: 69fb ldr r3, [r7, #28]
  24519. 800aa30: f003 0307 and.w r3, r3, #7
  24520. 800aa34: 009b lsls r3, r3, #2
  24521. 800aa36: fa02 f303 lsl.w r3, r2, r3
  24522. 800aa3a: 69ba ldr r2, [r7, #24]
  24523. 800aa3c: 4313 orrs r3, r2
  24524. 800aa3e: 61bb str r3, [r7, #24]
  24525. GPIOx->AFR[position >> 3U] = temp;
  24526. 800aa40: 69fb ldr r3, [r7, #28]
  24527. 800aa42: 08da lsrs r2, r3, #3
  24528. 800aa44: 687b ldr r3, [r7, #4]
  24529. 800aa46: 3208 adds r2, #8
  24530. 800aa48: 69b9 ldr r1, [r7, #24]
  24531. 800aa4a: f843 1022 str.w r1, [r3, r2, lsl #2]
  24532. }
  24533. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  24534. temp = GPIOx->MODER;
  24535. 800aa4e: 687b ldr r3, [r7, #4]
  24536. 800aa50: 681b ldr r3, [r3, #0]
  24537. 800aa52: 61bb str r3, [r7, #24]
  24538. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  24539. 800aa54: 69fb ldr r3, [r7, #28]
  24540. 800aa56: 005b lsls r3, r3, #1
  24541. 800aa58: 2203 movs r2, #3
  24542. 800aa5a: fa02 f303 lsl.w r3, r2, r3
  24543. 800aa5e: 43db mvns r3, r3
  24544. 800aa60: 69ba ldr r2, [r7, #24]
  24545. 800aa62: 4013 ands r3, r2
  24546. 800aa64: 61bb str r3, [r7, #24]
  24547. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  24548. 800aa66: 683b ldr r3, [r7, #0]
  24549. 800aa68: 685b ldr r3, [r3, #4]
  24550. 800aa6a: f003 0203 and.w r2, r3, #3
  24551. 800aa6e: 69fb ldr r3, [r7, #28]
  24552. 800aa70: 005b lsls r3, r3, #1
  24553. 800aa72: fa02 f303 lsl.w r3, r2, r3
  24554. 800aa76: 69ba ldr r2, [r7, #24]
  24555. 800aa78: 4313 orrs r3, r2
  24556. 800aa7a: 61bb str r3, [r7, #24]
  24557. GPIOx->MODER = temp;
  24558. 800aa7c: 687b ldr r3, [r7, #4]
  24559. 800aa7e: 69ba ldr r2, [r7, #24]
  24560. 800aa80: 601a str r2, [r3, #0]
  24561. /*--------------------- EXTI Mode Configuration ------------------------*/
  24562. /* Configure the External Interrupt or event for the current IO */
  24563. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  24564. 800aa82: 683b ldr r3, [r7, #0]
  24565. 800aa84: 685b ldr r3, [r3, #4]
  24566. 800aa86: f403 3340 and.w r3, r3, #196608 @ 0x30000
  24567. 800aa8a: 2b00 cmp r3, #0
  24568. 800aa8c: f000 80e0 beq.w 800ac50 <HAL_GPIO_Init+0x338>
  24569. {
  24570. /* Enable SYSCFG Clock */
  24571. __HAL_RCC_SYSCFG_CLK_ENABLE();
  24572. 800aa90: 4b2f ldr r3, [pc, #188] @ (800ab50 <HAL_GPIO_Init+0x238>)
  24573. 800aa92: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  24574. 800aa96: 4a2e ldr r2, [pc, #184] @ (800ab50 <HAL_GPIO_Init+0x238>)
  24575. 800aa98: f043 0302 orr.w r3, r3, #2
  24576. 800aa9c: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  24577. 800aaa0: 4b2b ldr r3, [pc, #172] @ (800ab50 <HAL_GPIO_Init+0x238>)
  24578. 800aaa2: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  24579. 800aaa6: f003 0302 and.w r3, r3, #2
  24580. 800aaaa: 60fb str r3, [r7, #12]
  24581. 800aaac: 68fb ldr r3, [r7, #12]
  24582. temp = SYSCFG->EXTICR[position >> 2U];
  24583. 800aaae: 4a29 ldr r2, [pc, #164] @ (800ab54 <HAL_GPIO_Init+0x23c>)
  24584. 800aab0: 69fb ldr r3, [r7, #28]
  24585. 800aab2: 089b lsrs r3, r3, #2
  24586. 800aab4: 3302 adds r3, #2
  24587. 800aab6: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  24588. 800aaba: 61bb str r3, [r7, #24]
  24589. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  24590. 800aabc: 69fb ldr r3, [r7, #28]
  24591. 800aabe: f003 0303 and.w r3, r3, #3
  24592. 800aac2: 009b lsls r3, r3, #2
  24593. 800aac4: 220f movs r2, #15
  24594. 800aac6: fa02 f303 lsl.w r3, r2, r3
  24595. 800aaca: 43db mvns r3, r3
  24596. 800aacc: 69ba ldr r2, [r7, #24]
  24597. 800aace: 4013 ands r3, r2
  24598. 800aad0: 61bb str r3, [r7, #24]
  24599. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  24600. 800aad2: 687b ldr r3, [r7, #4]
  24601. 800aad4: 4a20 ldr r2, [pc, #128] @ (800ab58 <HAL_GPIO_Init+0x240>)
  24602. 800aad6: 4293 cmp r3, r2
  24603. 800aad8: d052 beq.n 800ab80 <HAL_GPIO_Init+0x268>
  24604. 800aada: 687b ldr r3, [r7, #4]
  24605. 800aadc: 4a1f ldr r2, [pc, #124] @ (800ab5c <HAL_GPIO_Init+0x244>)
  24606. 800aade: 4293 cmp r3, r2
  24607. 800aae0: d031 beq.n 800ab46 <HAL_GPIO_Init+0x22e>
  24608. 800aae2: 687b ldr r3, [r7, #4]
  24609. 800aae4: 4a1e ldr r2, [pc, #120] @ (800ab60 <HAL_GPIO_Init+0x248>)
  24610. 800aae6: 4293 cmp r3, r2
  24611. 800aae8: d02b beq.n 800ab42 <HAL_GPIO_Init+0x22a>
  24612. 800aaea: 687b ldr r3, [r7, #4]
  24613. 800aaec: 4a1d ldr r2, [pc, #116] @ (800ab64 <HAL_GPIO_Init+0x24c>)
  24614. 800aaee: 4293 cmp r3, r2
  24615. 800aaf0: d025 beq.n 800ab3e <HAL_GPIO_Init+0x226>
  24616. 800aaf2: 687b ldr r3, [r7, #4]
  24617. 800aaf4: 4a1c ldr r2, [pc, #112] @ (800ab68 <HAL_GPIO_Init+0x250>)
  24618. 800aaf6: 4293 cmp r3, r2
  24619. 800aaf8: d01f beq.n 800ab3a <HAL_GPIO_Init+0x222>
  24620. 800aafa: 687b ldr r3, [r7, #4]
  24621. 800aafc: 4a1b ldr r2, [pc, #108] @ (800ab6c <HAL_GPIO_Init+0x254>)
  24622. 800aafe: 4293 cmp r3, r2
  24623. 800ab00: d019 beq.n 800ab36 <HAL_GPIO_Init+0x21e>
  24624. 800ab02: 687b ldr r3, [r7, #4]
  24625. 800ab04: 4a1a ldr r2, [pc, #104] @ (800ab70 <HAL_GPIO_Init+0x258>)
  24626. 800ab06: 4293 cmp r3, r2
  24627. 800ab08: d013 beq.n 800ab32 <HAL_GPIO_Init+0x21a>
  24628. 800ab0a: 687b ldr r3, [r7, #4]
  24629. 800ab0c: 4a19 ldr r2, [pc, #100] @ (800ab74 <HAL_GPIO_Init+0x25c>)
  24630. 800ab0e: 4293 cmp r3, r2
  24631. 800ab10: d00d beq.n 800ab2e <HAL_GPIO_Init+0x216>
  24632. 800ab12: 687b ldr r3, [r7, #4]
  24633. 800ab14: 4a18 ldr r2, [pc, #96] @ (800ab78 <HAL_GPIO_Init+0x260>)
  24634. 800ab16: 4293 cmp r3, r2
  24635. 800ab18: d007 beq.n 800ab2a <HAL_GPIO_Init+0x212>
  24636. 800ab1a: 687b ldr r3, [r7, #4]
  24637. 800ab1c: 4a17 ldr r2, [pc, #92] @ (800ab7c <HAL_GPIO_Init+0x264>)
  24638. 800ab1e: 4293 cmp r3, r2
  24639. 800ab20: d101 bne.n 800ab26 <HAL_GPIO_Init+0x20e>
  24640. 800ab22: 2309 movs r3, #9
  24641. 800ab24: e02d b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24642. 800ab26: 230a movs r3, #10
  24643. 800ab28: e02b b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24644. 800ab2a: 2308 movs r3, #8
  24645. 800ab2c: e029 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24646. 800ab2e: 2307 movs r3, #7
  24647. 800ab30: e027 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24648. 800ab32: 2306 movs r3, #6
  24649. 800ab34: e025 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24650. 800ab36: 2305 movs r3, #5
  24651. 800ab38: e023 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24652. 800ab3a: 2304 movs r3, #4
  24653. 800ab3c: e021 b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24654. 800ab3e: 2303 movs r3, #3
  24655. 800ab40: e01f b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24656. 800ab42: 2302 movs r3, #2
  24657. 800ab44: e01d b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24658. 800ab46: 2301 movs r3, #1
  24659. 800ab48: e01b b.n 800ab82 <HAL_GPIO_Init+0x26a>
  24660. 800ab4a: bf00 nop
  24661. 800ab4c: 58000080 .word 0x58000080
  24662. 800ab50: 58024400 .word 0x58024400
  24663. 800ab54: 58000400 .word 0x58000400
  24664. 800ab58: 58020000 .word 0x58020000
  24665. 800ab5c: 58020400 .word 0x58020400
  24666. 800ab60: 58020800 .word 0x58020800
  24667. 800ab64: 58020c00 .word 0x58020c00
  24668. 800ab68: 58021000 .word 0x58021000
  24669. 800ab6c: 58021400 .word 0x58021400
  24670. 800ab70: 58021800 .word 0x58021800
  24671. 800ab74: 58021c00 .word 0x58021c00
  24672. 800ab78: 58022000 .word 0x58022000
  24673. 800ab7c: 58022400 .word 0x58022400
  24674. 800ab80: 2300 movs r3, #0
  24675. 800ab82: 69fa ldr r2, [r7, #28]
  24676. 800ab84: f002 0203 and.w r2, r2, #3
  24677. 800ab88: 0092 lsls r2, r2, #2
  24678. 800ab8a: 4093 lsls r3, r2
  24679. 800ab8c: 69ba ldr r2, [r7, #24]
  24680. 800ab8e: 4313 orrs r3, r2
  24681. 800ab90: 61bb str r3, [r7, #24]
  24682. SYSCFG->EXTICR[position >> 2U] = temp;
  24683. 800ab92: 4938 ldr r1, [pc, #224] @ (800ac74 <HAL_GPIO_Init+0x35c>)
  24684. 800ab94: 69fb ldr r3, [r7, #28]
  24685. 800ab96: 089b lsrs r3, r3, #2
  24686. 800ab98: 3302 adds r3, #2
  24687. 800ab9a: 69ba ldr r2, [r7, #24]
  24688. 800ab9c: f841 2023 str.w r2, [r1, r3, lsl #2]
  24689. /* Clear Rising Falling edge configuration */
  24690. temp = EXTI->RTSR1;
  24691. 800aba0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24692. 800aba4: 681b ldr r3, [r3, #0]
  24693. 800aba6: 61bb str r3, [r7, #24]
  24694. temp &= ~(iocurrent);
  24695. 800aba8: 693b ldr r3, [r7, #16]
  24696. 800abaa: 43db mvns r3, r3
  24697. 800abac: 69ba ldr r2, [r7, #24]
  24698. 800abae: 4013 ands r3, r2
  24699. 800abb0: 61bb str r3, [r7, #24]
  24700. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  24701. 800abb2: 683b ldr r3, [r7, #0]
  24702. 800abb4: 685b ldr r3, [r3, #4]
  24703. 800abb6: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  24704. 800abba: 2b00 cmp r3, #0
  24705. 800abbc: d003 beq.n 800abc6 <HAL_GPIO_Init+0x2ae>
  24706. {
  24707. temp |= iocurrent;
  24708. 800abbe: 69ba ldr r2, [r7, #24]
  24709. 800abc0: 693b ldr r3, [r7, #16]
  24710. 800abc2: 4313 orrs r3, r2
  24711. 800abc4: 61bb str r3, [r7, #24]
  24712. }
  24713. EXTI->RTSR1 = temp;
  24714. 800abc6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24715. 800abca: 69bb ldr r3, [r7, #24]
  24716. 800abcc: 6013 str r3, [r2, #0]
  24717. temp = EXTI->FTSR1;
  24718. 800abce: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24719. 800abd2: 685b ldr r3, [r3, #4]
  24720. 800abd4: 61bb str r3, [r7, #24]
  24721. temp &= ~(iocurrent);
  24722. 800abd6: 693b ldr r3, [r7, #16]
  24723. 800abd8: 43db mvns r3, r3
  24724. 800abda: 69ba ldr r2, [r7, #24]
  24725. 800abdc: 4013 ands r3, r2
  24726. 800abde: 61bb str r3, [r7, #24]
  24727. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  24728. 800abe0: 683b ldr r3, [r7, #0]
  24729. 800abe2: 685b ldr r3, [r3, #4]
  24730. 800abe4: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  24731. 800abe8: 2b00 cmp r3, #0
  24732. 800abea: d003 beq.n 800abf4 <HAL_GPIO_Init+0x2dc>
  24733. {
  24734. temp |= iocurrent;
  24735. 800abec: 69ba ldr r2, [r7, #24]
  24736. 800abee: 693b ldr r3, [r7, #16]
  24737. 800abf0: 4313 orrs r3, r2
  24738. 800abf2: 61bb str r3, [r7, #24]
  24739. }
  24740. EXTI->FTSR1 = temp;
  24741. 800abf4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24742. 800abf8: 69bb ldr r3, [r7, #24]
  24743. 800abfa: 6053 str r3, [r2, #4]
  24744. temp = EXTI_CurrentCPU->EMR1;
  24745. 800abfc: 697b ldr r3, [r7, #20]
  24746. 800abfe: 685b ldr r3, [r3, #4]
  24747. 800ac00: 61bb str r3, [r7, #24]
  24748. temp &= ~(iocurrent);
  24749. 800ac02: 693b ldr r3, [r7, #16]
  24750. 800ac04: 43db mvns r3, r3
  24751. 800ac06: 69ba ldr r2, [r7, #24]
  24752. 800ac08: 4013 ands r3, r2
  24753. 800ac0a: 61bb str r3, [r7, #24]
  24754. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  24755. 800ac0c: 683b ldr r3, [r7, #0]
  24756. 800ac0e: 685b ldr r3, [r3, #4]
  24757. 800ac10: f403 3300 and.w r3, r3, #131072 @ 0x20000
  24758. 800ac14: 2b00 cmp r3, #0
  24759. 800ac16: d003 beq.n 800ac20 <HAL_GPIO_Init+0x308>
  24760. {
  24761. temp |= iocurrent;
  24762. 800ac18: 69ba ldr r2, [r7, #24]
  24763. 800ac1a: 693b ldr r3, [r7, #16]
  24764. 800ac1c: 4313 orrs r3, r2
  24765. 800ac1e: 61bb str r3, [r7, #24]
  24766. }
  24767. EXTI_CurrentCPU->EMR1 = temp;
  24768. 800ac20: 697b ldr r3, [r7, #20]
  24769. 800ac22: 69ba ldr r2, [r7, #24]
  24770. 800ac24: 605a str r2, [r3, #4]
  24771. /* Clear EXTI line configuration */
  24772. temp = EXTI_CurrentCPU->IMR1;
  24773. 800ac26: 697b ldr r3, [r7, #20]
  24774. 800ac28: 681b ldr r3, [r3, #0]
  24775. 800ac2a: 61bb str r3, [r7, #24]
  24776. temp &= ~(iocurrent);
  24777. 800ac2c: 693b ldr r3, [r7, #16]
  24778. 800ac2e: 43db mvns r3, r3
  24779. 800ac30: 69ba ldr r2, [r7, #24]
  24780. 800ac32: 4013 ands r3, r2
  24781. 800ac34: 61bb str r3, [r7, #24]
  24782. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  24783. 800ac36: 683b ldr r3, [r7, #0]
  24784. 800ac38: 685b ldr r3, [r3, #4]
  24785. 800ac3a: f403 3380 and.w r3, r3, #65536 @ 0x10000
  24786. 800ac3e: 2b00 cmp r3, #0
  24787. 800ac40: d003 beq.n 800ac4a <HAL_GPIO_Init+0x332>
  24788. {
  24789. temp |= iocurrent;
  24790. 800ac42: 69ba ldr r2, [r7, #24]
  24791. 800ac44: 693b ldr r3, [r7, #16]
  24792. 800ac46: 4313 orrs r3, r2
  24793. 800ac48: 61bb str r3, [r7, #24]
  24794. }
  24795. EXTI_CurrentCPU->IMR1 = temp;
  24796. 800ac4a: 697b ldr r3, [r7, #20]
  24797. 800ac4c: 69ba ldr r2, [r7, #24]
  24798. 800ac4e: 601a str r2, [r3, #0]
  24799. }
  24800. }
  24801. position++;
  24802. 800ac50: 69fb ldr r3, [r7, #28]
  24803. 800ac52: 3301 adds r3, #1
  24804. 800ac54: 61fb str r3, [r7, #28]
  24805. while (((GPIO_Init->Pin) >> position) != 0x00U)
  24806. 800ac56: 683b ldr r3, [r7, #0]
  24807. 800ac58: 681a ldr r2, [r3, #0]
  24808. 800ac5a: 69fb ldr r3, [r7, #28]
  24809. 800ac5c: fa22 f303 lsr.w r3, r2, r3
  24810. 800ac60: 2b00 cmp r3, #0
  24811. 800ac62: f47f ae63 bne.w 800a92c <HAL_GPIO_Init+0x14>
  24812. }
  24813. }
  24814. 800ac66: bf00 nop
  24815. 800ac68: bf00 nop
  24816. 800ac6a: 3724 adds r7, #36 @ 0x24
  24817. 800ac6c: 46bd mov sp, r7
  24818. 800ac6e: f85d 7b04 ldr.w r7, [sp], #4
  24819. 800ac72: 4770 bx lr
  24820. 800ac74: 58000400 .word 0x58000400
  24821. 0800ac78 <HAL_GPIO_ReadPin>:
  24822. * @param GPIO_Pin: specifies the port bit to read.
  24823. * This parameter can be GPIO_PIN_x where x can be (0..15).
  24824. * @retval The input port pin value.
  24825. */
  24826. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  24827. {
  24828. 800ac78: b480 push {r7}
  24829. 800ac7a: b085 sub sp, #20
  24830. 800ac7c: af00 add r7, sp, #0
  24831. 800ac7e: 6078 str r0, [r7, #4]
  24832. 800ac80: 460b mov r3, r1
  24833. 800ac82: 807b strh r3, [r7, #2]
  24834. GPIO_PinState bitstatus;
  24835. /* Check the parameters */
  24836. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24837. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  24838. 800ac84: 687b ldr r3, [r7, #4]
  24839. 800ac86: 691a ldr r2, [r3, #16]
  24840. 800ac88: 887b ldrh r3, [r7, #2]
  24841. 800ac8a: 4013 ands r3, r2
  24842. 800ac8c: 2b00 cmp r3, #0
  24843. 800ac8e: d002 beq.n 800ac96 <HAL_GPIO_ReadPin+0x1e>
  24844. {
  24845. bitstatus = GPIO_PIN_SET;
  24846. 800ac90: 2301 movs r3, #1
  24847. 800ac92: 73fb strb r3, [r7, #15]
  24848. 800ac94: e001 b.n 800ac9a <HAL_GPIO_ReadPin+0x22>
  24849. }
  24850. else
  24851. {
  24852. bitstatus = GPIO_PIN_RESET;
  24853. 800ac96: 2300 movs r3, #0
  24854. 800ac98: 73fb strb r3, [r7, #15]
  24855. }
  24856. return bitstatus;
  24857. 800ac9a: 7bfb ldrb r3, [r7, #15]
  24858. }
  24859. 800ac9c: 4618 mov r0, r3
  24860. 800ac9e: 3714 adds r7, #20
  24861. 800aca0: 46bd mov sp, r7
  24862. 800aca2: f85d 7b04 ldr.w r7, [sp], #4
  24863. 800aca6: 4770 bx lr
  24864. 0800aca8 <HAL_GPIO_WritePin>:
  24865. * @arg GPIO_PIN_RESET: to clear the port pin
  24866. * @arg GPIO_PIN_SET: to set the port pin
  24867. * @retval None
  24868. */
  24869. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  24870. {
  24871. 800aca8: b480 push {r7}
  24872. 800acaa: b083 sub sp, #12
  24873. 800acac: af00 add r7, sp, #0
  24874. 800acae: 6078 str r0, [r7, #4]
  24875. 800acb0: 460b mov r3, r1
  24876. 800acb2: 807b strh r3, [r7, #2]
  24877. 800acb4: 4613 mov r3, r2
  24878. 800acb6: 707b strb r3, [r7, #1]
  24879. /* Check the parameters */
  24880. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24881. assert_param(IS_GPIO_PIN_ACTION(PinState));
  24882. if (PinState != GPIO_PIN_RESET)
  24883. 800acb8: 787b ldrb r3, [r7, #1]
  24884. 800acba: 2b00 cmp r3, #0
  24885. 800acbc: d003 beq.n 800acc6 <HAL_GPIO_WritePin+0x1e>
  24886. {
  24887. GPIOx->BSRR = GPIO_Pin;
  24888. 800acbe: 887a ldrh r2, [r7, #2]
  24889. 800acc0: 687b ldr r3, [r7, #4]
  24890. 800acc2: 619a str r2, [r3, #24]
  24891. }
  24892. else
  24893. {
  24894. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  24895. }
  24896. }
  24897. 800acc4: e003 b.n 800acce <HAL_GPIO_WritePin+0x26>
  24898. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  24899. 800acc6: 887b ldrh r3, [r7, #2]
  24900. 800acc8: 041a lsls r2, r3, #16
  24901. 800acca: 687b ldr r3, [r7, #4]
  24902. 800accc: 619a str r2, [r3, #24]
  24903. }
  24904. 800acce: bf00 nop
  24905. 800acd0: 370c adds r7, #12
  24906. 800acd2: 46bd mov sp, r7
  24907. 800acd4: f85d 7b04 ldr.w r7, [sp], #4
  24908. 800acd8: 4770 bx lr
  24909. 0800acda <HAL_GPIO_TogglePin>:
  24910. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  24911. * @param GPIO_Pin: Specifies the pins to be toggled.
  24912. * @retval None
  24913. */
  24914. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  24915. {
  24916. 800acda: b480 push {r7}
  24917. 800acdc: b085 sub sp, #20
  24918. 800acde: af00 add r7, sp, #0
  24919. 800ace0: 6078 str r0, [r7, #4]
  24920. 800ace2: 460b mov r3, r1
  24921. 800ace4: 807b strh r3, [r7, #2]
  24922. /* Check the parameters */
  24923. assert_param(IS_GPIO_PIN(GPIO_Pin));
  24924. /* get current Output Data Register value */
  24925. odr = GPIOx->ODR;
  24926. 800ace6: 687b ldr r3, [r7, #4]
  24927. 800ace8: 695b ldr r3, [r3, #20]
  24928. 800acea: 60fb str r3, [r7, #12]
  24929. /* Set selected pins that were at low level, and reset ones that were high */
  24930. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  24931. 800acec: 887a ldrh r2, [r7, #2]
  24932. 800acee: 68fb ldr r3, [r7, #12]
  24933. 800acf0: 4013 ands r3, r2
  24934. 800acf2: 041a lsls r2, r3, #16
  24935. 800acf4: 68fb ldr r3, [r7, #12]
  24936. 800acf6: 43d9 mvns r1, r3
  24937. 800acf8: 887b ldrh r3, [r7, #2]
  24938. 800acfa: 400b ands r3, r1
  24939. 800acfc: 431a orrs r2, r3
  24940. 800acfe: 687b ldr r3, [r7, #4]
  24941. 800ad00: 619a str r2, [r3, #24]
  24942. }
  24943. 800ad02: bf00 nop
  24944. 800ad04: 3714 adds r7, #20
  24945. 800ad06: 46bd mov sp, r7
  24946. 800ad08: f85d 7b04 ldr.w r7, [sp], #4
  24947. 800ad0c: 4770 bx lr
  24948. 0800ad0e <HAL_GPIO_EXTI_IRQHandler>:
  24949. * @brief Handle EXTI interrupt request.
  24950. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  24951. * @retval None
  24952. */
  24953. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  24954. {
  24955. 800ad0e: b580 push {r7, lr}
  24956. 800ad10: b082 sub sp, #8
  24957. 800ad12: af00 add r7, sp, #0
  24958. 800ad14: 4603 mov r3, r0
  24959. 800ad16: 80fb strh r3, [r7, #6]
  24960. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  24961. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  24962. }
  24963. #else
  24964. /* EXTI line interrupt detected */
  24965. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  24966. 800ad18: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  24967. 800ad1c: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  24968. 800ad20: 88fb ldrh r3, [r7, #6]
  24969. 800ad22: 4013 ands r3, r2
  24970. 800ad24: 2b00 cmp r3, #0
  24971. 800ad26: d008 beq.n 800ad3a <HAL_GPIO_EXTI_IRQHandler+0x2c>
  24972. {
  24973. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  24974. 800ad28: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  24975. 800ad2c: 88fb ldrh r3, [r7, #6]
  24976. 800ad2e: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  24977. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  24978. 800ad32: 88fb ldrh r3, [r7, #6]
  24979. 800ad34: 4618 mov r0, r3
  24980. 800ad36: f7f5 fccf bl 80006d8 <HAL_GPIO_EXTI_Callback>
  24981. }
  24982. #endif
  24983. }
  24984. 800ad3a: bf00 nop
  24985. 800ad3c: 3708 adds r7, #8
  24986. 800ad3e: 46bd mov sp, r7
  24987. 800ad40: bd80 pop {r7, pc}
  24988. 0800ad42 <HAL_IWDG_Init>:
  24989. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  24990. * the configuration information for the specified IWDG module.
  24991. * @retval HAL status
  24992. */
  24993. HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
  24994. {
  24995. 800ad42: b580 push {r7, lr}
  24996. 800ad44: b084 sub sp, #16
  24997. 800ad46: af00 add r7, sp, #0
  24998. 800ad48: 6078 str r0, [r7, #4]
  24999. uint32_t tickstart;
  25000. /* Check the IWDG handle allocation */
  25001. if (hiwdg == NULL)
  25002. 800ad4a: 687b ldr r3, [r7, #4]
  25003. 800ad4c: 2b00 cmp r3, #0
  25004. 800ad4e: d101 bne.n 800ad54 <HAL_IWDG_Init+0x12>
  25005. {
  25006. return HAL_ERROR;
  25007. 800ad50: 2301 movs r3, #1
  25008. 800ad52: e041 b.n 800add8 <HAL_IWDG_Init+0x96>
  25009. assert_param(IS_IWDG_PRESCALER(hiwdg->Init.Prescaler));
  25010. assert_param(IS_IWDG_RELOAD(hiwdg->Init.Reload));
  25011. assert_param(IS_IWDG_WINDOW(hiwdg->Init.Window));
  25012. /* Enable IWDG. LSI is turned on automatically */
  25013. __HAL_IWDG_START(hiwdg);
  25014. 800ad54: 687b ldr r3, [r7, #4]
  25015. 800ad56: 681b ldr r3, [r3, #0]
  25016. 800ad58: f64c 42cc movw r2, #52428 @ 0xcccc
  25017. 800ad5c: 601a str r2, [r3, #0]
  25018. /* Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers by writing
  25019. 0x5555 in KR */
  25020. IWDG_ENABLE_WRITE_ACCESS(hiwdg);
  25021. 800ad5e: 687b ldr r3, [r7, #4]
  25022. 800ad60: 681b ldr r3, [r3, #0]
  25023. 800ad62: f245 5255 movw r2, #21845 @ 0x5555
  25024. 800ad66: 601a str r2, [r3, #0]
  25025. /* Write to IWDG registers the Prescaler & Reload values to work with */
  25026. hiwdg->Instance->PR = hiwdg->Init.Prescaler;
  25027. 800ad68: 687b ldr r3, [r7, #4]
  25028. 800ad6a: 681b ldr r3, [r3, #0]
  25029. 800ad6c: 687a ldr r2, [r7, #4]
  25030. 800ad6e: 6852 ldr r2, [r2, #4]
  25031. 800ad70: 605a str r2, [r3, #4]
  25032. hiwdg->Instance->RLR = hiwdg->Init.Reload;
  25033. 800ad72: 687b ldr r3, [r7, #4]
  25034. 800ad74: 681b ldr r3, [r3, #0]
  25035. 800ad76: 687a ldr r2, [r7, #4]
  25036. 800ad78: 6892 ldr r2, [r2, #8]
  25037. 800ad7a: 609a str r2, [r3, #8]
  25038. /* Check pending flag, if previous update not done, return timeout */
  25039. tickstart = HAL_GetTick();
  25040. 800ad7c: f7fa fbf4 bl 8005568 <HAL_GetTick>
  25041. 800ad80: 60f8 str r0, [r7, #12]
  25042. /* Wait for register to be updated */
  25043. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25044. 800ad82: e00f b.n 800ada4 <HAL_IWDG_Init+0x62>
  25045. {
  25046. if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT)
  25047. 800ad84: f7fa fbf0 bl 8005568 <HAL_GetTick>
  25048. 800ad88: 4602 mov r2, r0
  25049. 800ad8a: 68fb ldr r3, [r7, #12]
  25050. 800ad8c: 1ad3 subs r3, r2, r3
  25051. 800ad8e: 2b31 cmp r3, #49 @ 0x31
  25052. 800ad90: d908 bls.n 800ada4 <HAL_IWDG_Init+0x62>
  25053. {
  25054. if ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25055. 800ad92: 687b ldr r3, [r7, #4]
  25056. 800ad94: 681b ldr r3, [r3, #0]
  25057. 800ad96: 68db ldr r3, [r3, #12]
  25058. 800ad98: f003 0307 and.w r3, r3, #7
  25059. 800ad9c: 2b00 cmp r3, #0
  25060. 800ad9e: d001 beq.n 800ada4 <HAL_IWDG_Init+0x62>
  25061. {
  25062. return HAL_TIMEOUT;
  25063. 800ada0: 2303 movs r3, #3
  25064. 800ada2: e019 b.n 800add8 <HAL_IWDG_Init+0x96>
  25065. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25066. 800ada4: 687b ldr r3, [r7, #4]
  25067. 800ada6: 681b ldr r3, [r3, #0]
  25068. 800ada8: 68db ldr r3, [r3, #12]
  25069. 800adaa: f003 0307 and.w r3, r3, #7
  25070. 800adae: 2b00 cmp r3, #0
  25071. 800adb0: d1e8 bne.n 800ad84 <HAL_IWDG_Init+0x42>
  25072. }
  25073. }
  25074. /* If window parameter is different than current value, modify window
  25075. register */
  25076. if (hiwdg->Instance->WINR != hiwdg->Init.Window)
  25077. 800adb2: 687b ldr r3, [r7, #4]
  25078. 800adb4: 681b ldr r3, [r3, #0]
  25079. 800adb6: 691a ldr r2, [r3, #16]
  25080. 800adb8: 687b ldr r3, [r7, #4]
  25081. 800adba: 68db ldr r3, [r3, #12]
  25082. 800adbc: 429a cmp r2, r3
  25083. 800adbe: d005 beq.n 800adcc <HAL_IWDG_Init+0x8a>
  25084. {
  25085. /* Write to IWDG WINR the IWDG_Window value to compare with. In any case,
  25086. even if window feature is disabled, Watchdog will be reloaded by writing
  25087. windows register */
  25088. hiwdg->Instance->WINR = hiwdg->Init.Window;
  25089. 800adc0: 687b ldr r3, [r7, #4]
  25090. 800adc2: 681b ldr r3, [r3, #0]
  25091. 800adc4: 687a ldr r2, [r7, #4]
  25092. 800adc6: 68d2 ldr r2, [r2, #12]
  25093. 800adc8: 611a str r2, [r3, #16]
  25094. 800adca: e004 b.n 800add6 <HAL_IWDG_Init+0x94>
  25095. }
  25096. else
  25097. {
  25098. /* Reload IWDG counter with value defined in the reload register */
  25099. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  25100. 800adcc: 687b ldr r3, [r7, #4]
  25101. 800adce: 681b ldr r3, [r3, #0]
  25102. 800add0: f64a 22aa movw r2, #43690 @ 0xaaaa
  25103. 800add4: 601a str r2, [r3, #0]
  25104. }
  25105. /* Return function status */
  25106. return HAL_OK;
  25107. 800add6: 2300 movs r3, #0
  25108. }
  25109. 800add8: 4618 mov r0, r3
  25110. 800adda: 3710 adds r7, #16
  25111. 800addc: 46bd mov sp, r7
  25112. 800adde: bd80 pop {r7, pc}
  25113. 0800ade0 <HAL_IWDG_Refresh>:
  25114. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  25115. * the configuration information for the specified IWDG module.
  25116. * @retval HAL status
  25117. */
  25118. HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
  25119. {
  25120. 800ade0: b480 push {r7}
  25121. 800ade2: b083 sub sp, #12
  25122. 800ade4: af00 add r7, sp, #0
  25123. 800ade6: 6078 str r0, [r7, #4]
  25124. /* Reload IWDG counter with value defined in the reload register */
  25125. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  25126. 800ade8: 687b ldr r3, [r7, #4]
  25127. 800adea: 681b ldr r3, [r3, #0]
  25128. 800adec: f64a 22aa movw r2, #43690 @ 0xaaaa
  25129. 800adf0: 601a str r2, [r3, #0]
  25130. /* Return function status */
  25131. return HAL_OK;
  25132. 800adf2: 2300 movs r3, #0
  25133. }
  25134. 800adf4: 4618 mov r0, r3
  25135. 800adf6: 370c adds r7, #12
  25136. 800adf8: 46bd mov sp, r7
  25137. 800adfa: f85d 7b04 ldr.w r7, [sp], #4
  25138. 800adfe: 4770 bx lr
  25139. 0800ae00 <HAL_PWR_ConfigPVD>:
  25140. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  25141. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  25142. * @retval None.
  25143. */
  25144. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  25145. {
  25146. 800ae00: b480 push {r7}
  25147. 800ae02: b083 sub sp, #12
  25148. 800ae04: af00 add r7, sp, #0
  25149. 800ae06: 6078 str r0, [r7, #4]
  25150. /* Check the PVD configuration parameter */
  25151. if (sConfigPVD == NULL)
  25152. 800ae08: 687b ldr r3, [r7, #4]
  25153. 800ae0a: 2b00 cmp r3, #0
  25154. 800ae0c: d069 beq.n 800aee2 <HAL_PWR_ConfigPVD+0xe2>
  25155. /* Check the parameters */
  25156. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  25157. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  25158. /* Set PLS[7:5] bits according to PVDLevel value */
  25159. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  25160. 800ae0e: 4b38 ldr r3, [pc, #224] @ (800aef0 <HAL_PWR_ConfigPVD+0xf0>)
  25161. 800ae10: 681b ldr r3, [r3, #0]
  25162. 800ae12: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  25163. 800ae16: 687b ldr r3, [r7, #4]
  25164. 800ae18: 681b ldr r3, [r3, #0]
  25165. 800ae1a: 4935 ldr r1, [pc, #212] @ (800aef0 <HAL_PWR_ConfigPVD+0xf0>)
  25166. 800ae1c: 4313 orrs r3, r2
  25167. 800ae1e: 600b str r3, [r1, #0]
  25168. /* Clear previous config */
  25169. #if !defined (DUAL_CORE)
  25170. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  25171. 800ae20: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25172. 800ae24: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25173. 800ae28: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25174. 800ae2c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25175. 800ae30: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25176. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  25177. 800ae34: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25178. 800ae38: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25179. 800ae3c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25180. 800ae40: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25181. 800ae44: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25182. #endif /* !defined (DUAL_CORE) */
  25183. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  25184. 800ae48: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25185. 800ae4c: 681b ldr r3, [r3, #0]
  25186. 800ae4e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25187. 800ae52: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25188. 800ae56: 6013 str r3, [r2, #0]
  25189. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  25190. 800ae58: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25191. 800ae5c: 685b ldr r3, [r3, #4]
  25192. 800ae5e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25193. 800ae62: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25194. 800ae66: 6053 str r3, [r2, #4]
  25195. #if !defined (DUAL_CORE)
  25196. /* Interrupt mode configuration */
  25197. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  25198. 800ae68: 687b ldr r3, [r7, #4]
  25199. 800ae6a: 685b ldr r3, [r3, #4]
  25200. 800ae6c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25201. 800ae70: 2b00 cmp r3, #0
  25202. 800ae72: d009 beq.n 800ae88 <HAL_PWR_ConfigPVD+0x88>
  25203. {
  25204. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  25205. 800ae74: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25206. 800ae78: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25207. 800ae7c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25208. 800ae80: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25209. 800ae84: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25210. }
  25211. /* Event mode configuration */
  25212. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  25213. 800ae88: 687b ldr r3, [r7, #4]
  25214. 800ae8a: 685b ldr r3, [r3, #4]
  25215. 800ae8c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25216. 800ae90: 2b00 cmp r3, #0
  25217. 800ae92: d009 beq.n 800aea8 <HAL_PWR_ConfigPVD+0xa8>
  25218. {
  25219. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  25220. 800ae94: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25221. 800ae98: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25222. 800ae9c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25223. 800aea0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25224. 800aea4: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25225. }
  25226. #endif /* !defined (DUAL_CORE) */
  25227. /* Rising edge configuration */
  25228. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  25229. 800aea8: 687b ldr r3, [r7, #4]
  25230. 800aeaa: 685b ldr r3, [r3, #4]
  25231. 800aeac: f003 0301 and.w r3, r3, #1
  25232. 800aeb0: 2b00 cmp r3, #0
  25233. 800aeb2: d007 beq.n 800aec4 <HAL_PWR_ConfigPVD+0xc4>
  25234. {
  25235. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  25236. 800aeb4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25237. 800aeb8: 681b ldr r3, [r3, #0]
  25238. 800aeba: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25239. 800aebe: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25240. 800aec2: 6013 str r3, [r2, #0]
  25241. }
  25242. /* Falling edge configuration */
  25243. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  25244. 800aec4: 687b ldr r3, [r7, #4]
  25245. 800aec6: 685b ldr r3, [r3, #4]
  25246. 800aec8: f003 0302 and.w r3, r3, #2
  25247. 800aecc: 2b00 cmp r3, #0
  25248. 800aece: d009 beq.n 800aee4 <HAL_PWR_ConfigPVD+0xe4>
  25249. {
  25250. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  25251. 800aed0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25252. 800aed4: 685b ldr r3, [r3, #4]
  25253. 800aed6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25254. 800aeda: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25255. 800aede: 6053 str r3, [r2, #4]
  25256. 800aee0: e000 b.n 800aee4 <HAL_PWR_ConfigPVD+0xe4>
  25257. return;
  25258. 800aee2: bf00 nop
  25259. }
  25260. }
  25261. 800aee4: 370c adds r7, #12
  25262. 800aee6: 46bd mov sp, r7
  25263. 800aee8: f85d 7b04 ldr.w r7, [sp], #4
  25264. 800aeec: 4770 bx lr
  25265. 800aeee: bf00 nop
  25266. 800aef0: 58024800 .word 0x58024800
  25267. 0800aef4 <HAL_PWR_EnablePVD>:
  25268. /**
  25269. * @brief Enable the Programmable Voltage Detector (PVD).
  25270. * @retval None.
  25271. */
  25272. void HAL_PWR_EnablePVD (void)
  25273. {
  25274. 800aef4: b480 push {r7}
  25275. 800aef6: af00 add r7, sp, #0
  25276. /* Enable the power voltage detector */
  25277. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  25278. 800aef8: 4b05 ldr r3, [pc, #20] @ (800af10 <HAL_PWR_EnablePVD+0x1c>)
  25279. 800aefa: 681b ldr r3, [r3, #0]
  25280. 800aefc: 4a04 ldr r2, [pc, #16] @ (800af10 <HAL_PWR_EnablePVD+0x1c>)
  25281. 800aefe: f043 0310 orr.w r3, r3, #16
  25282. 800af02: 6013 str r3, [r2, #0]
  25283. }
  25284. 800af04: bf00 nop
  25285. 800af06: 46bd mov sp, r7
  25286. 800af08: f85d 7b04 ldr.w r7, [sp], #4
  25287. 800af0c: 4770 bx lr
  25288. 800af0e: bf00 nop
  25289. 800af10: 58024800 .word 0x58024800
  25290. 0800af14 <HAL_PWREx_ConfigSupply>:
  25291. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  25292. * regulator.
  25293. * @retval HAL status.
  25294. */
  25295. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  25296. {
  25297. 800af14: b580 push {r7, lr}
  25298. 800af16: b084 sub sp, #16
  25299. 800af18: af00 add r7, sp, #0
  25300. 800af1a: 6078 str r0, [r7, #4]
  25301. /* Check the parameters */
  25302. assert_param (IS_PWR_SUPPLY (SupplySource));
  25303. /* Check if supply source was configured */
  25304. #if defined (PWR_FLAG_SCUEN)
  25305. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  25306. 800af1c: 4b19 ldr r3, [pc, #100] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25307. 800af1e: 68db ldr r3, [r3, #12]
  25308. 800af20: f003 0304 and.w r3, r3, #4
  25309. 800af24: 2b04 cmp r3, #4
  25310. 800af26: d00a beq.n 800af3e <HAL_PWREx_ConfigSupply+0x2a>
  25311. #else
  25312. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  25313. #endif /* defined (PWR_FLAG_SCUEN) */
  25314. {
  25315. /* Check supply configuration */
  25316. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  25317. 800af28: 4b16 ldr r3, [pc, #88] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25318. 800af2a: 68db ldr r3, [r3, #12]
  25319. 800af2c: f003 0307 and.w r3, r3, #7
  25320. 800af30: 687a ldr r2, [r7, #4]
  25321. 800af32: 429a cmp r2, r3
  25322. 800af34: d001 beq.n 800af3a <HAL_PWREx_ConfigSupply+0x26>
  25323. {
  25324. /* Supply configuration update locked, can't apply a new supply config */
  25325. return HAL_ERROR;
  25326. 800af36: 2301 movs r3, #1
  25327. 800af38: e01f b.n 800af7a <HAL_PWREx_ConfigSupply+0x66>
  25328. else
  25329. {
  25330. /* Supply configuration update locked, but new supply configuration
  25331. matches with old supply configuration : nothing to do
  25332. */
  25333. return HAL_OK;
  25334. 800af3a: 2300 movs r3, #0
  25335. 800af3c: e01d b.n 800af7a <HAL_PWREx_ConfigSupply+0x66>
  25336. }
  25337. }
  25338. /* Set the power supply configuration */
  25339. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  25340. 800af3e: 4b11 ldr r3, [pc, #68] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25341. 800af40: 68db ldr r3, [r3, #12]
  25342. 800af42: f023 0207 bic.w r2, r3, #7
  25343. 800af46: 490f ldr r1, [pc, #60] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25344. 800af48: 687b ldr r3, [r7, #4]
  25345. 800af4a: 4313 orrs r3, r2
  25346. 800af4c: 60cb str r3, [r1, #12]
  25347. /* Get tick */
  25348. tickstart = HAL_GetTick ();
  25349. 800af4e: f7fa fb0b bl 8005568 <HAL_GetTick>
  25350. 800af52: 60f8 str r0, [r7, #12]
  25351. /* Wait till voltage level flag is set */
  25352. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  25353. 800af54: e009 b.n 800af6a <HAL_PWREx_ConfigSupply+0x56>
  25354. {
  25355. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  25356. 800af56: f7fa fb07 bl 8005568 <HAL_GetTick>
  25357. 800af5a: 4602 mov r2, r0
  25358. 800af5c: 68fb ldr r3, [r7, #12]
  25359. 800af5e: 1ad3 subs r3, r2, r3
  25360. 800af60: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  25361. 800af64: d901 bls.n 800af6a <HAL_PWREx_ConfigSupply+0x56>
  25362. {
  25363. return HAL_ERROR;
  25364. 800af66: 2301 movs r3, #1
  25365. 800af68: e007 b.n 800af7a <HAL_PWREx_ConfigSupply+0x66>
  25366. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  25367. 800af6a: 4b06 ldr r3, [pc, #24] @ (800af84 <HAL_PWREx_ConfigSupply+0x70>)
  25368. 800af6c: 685b ldr r3, [r3, #4]
  25369. 800af6e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  25370. 800af72: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25371. 800af76: d1ee bne.n 800af56 <HAL_PWREx_ConfigSupply+0x42>
  25372. }
  25373. }
  25374. }
  25375. #endif /* defined (SMPS) */
  25376. return HAL_OK;
  25377. 800af78: 2300 movs r3, #0
  25378. }
  25379. 800af7a: 4618 mov r0, r3
  25380. 800af7c: 3710 adds r7, #16
  25381. 800af7e: 46bd mov sp, r7
  25382. 800af80: bd80 pop {r7, pc}
  25383. 800af82: bf00 nop
  25384. 800af84: 58024800 .word 0x58024800
  25385. 0800af88 <HAL_PWREx_ConfigAVD>:
  25386. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  25387. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  25388. * @retval None.
  25389. */
  25390. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  25391. {
  25392. 800af88: b480 push {r7}
  25393. 800af8a: b083 sub sp, #12
  25394. 800af8c: af00 add r7, sp, #0
  25395. 800af8e: 6078 str r0, [r7, #4]
  25396. /* Check the parameters */
  25397. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  25398. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  25399. /* Set the ALS[18:17] bits according to AVDLevel value */
  25400. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  25401. 800af90: 4b37 ldr r3, [pc, #220] @ (800b070 <HAL_PWREx_ConfigAVD+0xe8>)
  25402. 800af92: 681b ldr r3, [r3, #0]
  25403. 800af94: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  25404. 800af98: 687b ldr r3, [r7, #4]
  25405. 800af9a: 681b ldr r3, [r3, #0]
  25406. 800af9c: 4934 ldr r1, [pc, #208] @ (800b070 <HAL_PWREx_ConfigAVD+0xe8>)
  25407. 800af9e: 4313 orrs r3, r2
  25408. 800afa0: 600b str r3, [r1, #0]
  25409. /* Clear any previous config */
  25410. #if !defined (DUAL_CORE)
  25411. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  25412. 800afa2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25413. 800afa6: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25414. 800afaa: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25415. 800afae: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25416. 800afb2: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25417. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  25418. 800afb6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25419. 800afba: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25420. 800afbe: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25421. 800afc2: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25422. 800afc6: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25423. #endif /* !defined (DUAL_CORE) */
  25424. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  25425. 800afca: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25426. 800afce: 681b ldr r3, [r3, #0]
  25427. 800afd0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25428. 800afd4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25429. 800afd8: 6013 str r3, [r2, #0]
  25430. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  25431. 800afda: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25432. 800afde: 685b ldr r3, [r3, #4]
  25433. 800afe0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25434. 800afe4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25435. 800afe8: 6053 str r3, [r2, #4]
  25436. #if !defined (DUAL_CORE)
  25437. /* Configure the interrupt mode */
  25438. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  25439. 800afea: 687b ldr r3, [r7, #4]
  25440. 800afec: 685b ldr r3, [r3, #4]
  25441. 800afee: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25442. 800aff2: 2b00 cmp r3, #0
  25443. 800aff4: d009 beq.n 800b00a <HAL_PWREx_ConfigAVD+0x82>
  25444. {
  25445. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  25446. 800aff6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25447. 800affa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25448. 800affe: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25449. 800b002: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25450. 800b006: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25451. }
  25452. /* Configure the event mode */
  25453. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  25454. 800b00a: 687b ldr r3, [r7, #4]
  25455. 800b00c: 685b ldr r3, [r3, #4]
  25456. 800b00e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25457. 800b012: 2b00 cmp r3, #0
  25458. 800b014: d009 beq.n 800b02a <HAL_PWREx_ConfigAVD+0xa2>
  25459. {
  25460. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  25461. 800b016: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25462. 800b01a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25463. 800b01e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25464. 800b022: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25465. 800b026: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25466. }
  25467. #endif /* !defined (DUAL_CORE) */
  25468. /* Rising edge configuration */
  25469. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  25470. 800b02a: 687b ldr r3, [r7, #4]
  25471. 800b02c: 685b ldr r3, [r3, #4]
  25472. 800b02e: f003 0301 and.w r3, r3, #1
  25473. 800b032: 2b00 cmp r3, #0
  25474. 800b034: d007 beq.n 800b046 <HAL_PWREx_ConfigAVD+0xbe>
  25475. {
  25476. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  25477. 800b036: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25478. 800b03a: 681b ldr r3, [r3, #0]
  25479. 800b03c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25480. 800b040: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25481. 800b044: 6013 str r3, [r2, #0]
  25482. }
  25483. /* Falling edge configuration */
  25484. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  25485. 800b046: 687b ldr r3, [r7, #4]
  25486. 800b048: 685b ldr r3, [r3, #4]
  25487. 800b04a: f003 0302 and.w r3, r3, #2
  25488. 800b04e: 2b00 cmp r3, #0
  25489. 800b050: d007 beq.n 800b062 <HAL_PWREx_ConfigAVD+0xda>
  25490. {
  25491. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  25492. 800b052: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25493. 800b056: 685b ldr r3, [r3, #4]
  25494. 800b058: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25495. 800b05c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25496. 800b060: 6053 str r3, [r2, #4]
  25497. }
  25498. }
  25499. 800b062: bf00 nop
  25500. 800b064: 370c adds r7, #12
  25501. 800b066: 46bd mov sp, r7
  25502. 800b068: f85d 7b04 ldr.w r7, [sp], #4
  25503. 800b06c: 4770 bx lr
  25504. 800b06e: bf00 nop
  25505. 800b070: 58024800 .word 0x58024800
  25506. 0800b074 <HAL_PWREx_EnableAVD>:
  25507. /**
  25508. * @brief Enable the Analog Voltage Detector (AVD).
  25509. * @retval None.
  25510. */
  25511. void HAL_PWREx_EnableAVD (void)
  25512. {
  25513. 800b074: b480 push {r7}
  25514. 800b076: af00 add r7, sp, #0
  25515. /* Enable the Analog Voltage Detector */
  25516. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  25517. 800b078: 4b05 ldr r3, [pc, #20] @ (800b090 <HAL_PWREx_EnableAVD+0x1c>)
  25518. 800b07a: 681b ldr r3, [r3, #0]
  25519. 800b07c: 4a04 ldr r2, [pc, #16] @ (800b090 <HAL_PWREx_EnableAVD+0x1c>)
  25520. 800b07e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25521. 800b082: 6013 str r3, [r2, #0]
  25522. }
  25523. 800b084: bf00 nop
  25524. 800b086: 46bd mov sp, r7
  25525. 800b088: f85d 7b04 ldr.w r7, [sp], #4
  25526. 800b08c: 4770 bx lr
  25527. 800b08e: bf00 nop
  25528. 800b090: 58024800 .word 0x58024800
  25529. 0800b094 <HAL_RCC_OscConfig>:
  25530. * supported by this function. User should request a transition to HSE Off
  25531. * first and then HSE On or HSE Bypass.
  25532. * @retval HAL status
  25533. */
  25534. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  25535. {
  25536. 800b094: b580 push {r7, lr}
  25537. 800b096: b08c sub sp, #48 @ 0x30
  25538. 800b098: af00 add r7, sp, #0
  25539. 800b09a: 6078 str r0, [r7, #4]
  25540. uint32_t tickstart;
  25541. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  25542. /* Check Null pointer */
  25543. if (RCC_OscInitStruct == NULL)
  25544. 800b09c: 687b ldr r3, [r7, #4]
  25545. 800b09e: 2b00 cmp r3, #0
  25546. 800b0a0: d102 bne.n 800b0a8 <HAL_RCC_OscConfig+0x14>
  25547. {
  25548. return HAL_ERROR;
  25549. 800b0a2: 2301 movs r3, #1
  25550. 800b0a4: f000 bc48 b.w 800b938 <HAL_RCC_OscConfig+0x8a4>
  25551. }
  25552. /* Check the parameters */
  25553. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  25554. /*------------------------------- HSE Configuration ------------------------*/
  25555. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  25556. 800b0a8: 687b ldr r3, [r7, #4]
  25557. 800b0aa: 681b ldr r3, [r3, #0]
  25558. 800b0ac: f003 0301 and.w r3, r3, #1
  25559. 800b0b0: 2b00 cmp r3, #0
  25560. 800b0b2: f000 8088 beq.w 800b1c6 <HAL_RCC_OscConfig+0x132>
  25561. {
  25562. /* Check the parameters */
  25563. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  25564. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25565. 800b0b6: 4b99 ldr r3, [pc, #612] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25566. 800b0b8: 691b ldr r3, [r3, #16]
  25567. 800b0ba: f003 0338 and.w r3, r3, #56 @ 0x38
  25568. 800b0be: 62fb str r3, [r7, #44] @ 0x2c
  25569. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25570. 800b0c0: 4b96 ldr r3, [pc, #600] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25571. 800b0c2: 6a9b ldr r3, [r3, #40] @ 0x28
  25572. 800b0c4: 62bb str r3, [r7, #40] @ 0x28
  25573. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  25574. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  25575. 800b0c6: 6afb ldr r3, [r7, #44] @ 0x2c
  25576. 800b0c8: 2b10 cmp r3, #16
  25577. 800b0ca: d007 beq.n 800b0dc <HAL_RCC_OscConfig+0x48>
  25578. 800b0cc: 6afb ldr r3, [r7, #44] @ 0x2c
  25579. 800b0ce: 2b18 cmp r3, #24
  25580. 800b0d0: d111 bne.n 800b0f6 <HAL_RCC_OscConfig+0x62>
  25581. 800b0d2: 6abb ldr r3, [r7, #40] @ 0x28
  25582. 800b0d4: f003 0303 and.w r3, r3, #3
  25583. 800b0d8: 2b02 cmp r3, #2
  25584. 800b0da: d10c bne.n 800b0f6 <HAL_RCC_OscConfig+0x62>
  25585. {
  25586. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  25587. 800b0dc: 4b8f ldr r3, [pc, #572] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25588. 800b0de: 681b ldr r3, [r3, #0]
  25589. 800b0e0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25590. 800b0e4: 2b00 cmp r3, #0
  25591. 800b0e6: d06d beq.n 800b1c4 <HAL_RCC_OscConfig+0x130>
  25592. 800b0e8: 687b ldr r3, [r7, #4]
  25593. 800b0ea: 685b ldr r3, [r3, #4]
  25594. 800b0ec: 2b00 cmp r3, #0
  25595. 800b0ee: d169 bne.n 800b1c4 <HAL_RCC_OscConfig+0x130>
  25596. {
  25597. return HAL_ERROR;
  25598. 800b0f0: 2301 movs r3, #1
  25599. 800b0f2: f000 bc21 b.w 800b938 <HAL_RCC_OscConfig+0x8a4>
  25600. }
  25601. }
  25602. else
  25603. {
  25604. /* Set the new HSE configuration ---------------------------------------*/
  25605. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  25606. 800b0f6: 687b ldr r3, [r7, #4]
  25607. 800b0f8: 685b ldr r3, [r3, #4]
  25608. 800b0fa: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  25609. 800b0fe: d106 bne.n 800b10e <HAL_RCC_OscConfig+0x7a>
  25610. 800b100: 4b86 ldr r3, [pc, #536] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25611. 800b102: 681b ldr r3, [r3, #0]
  25612. 800b104: 4a85 ldr r2, [pc, #532] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25613. 800b106: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25614. 800b10a: 6013 str r3, [r2, #0]
  25615. 800b10c: e02e b.n 800b16c <HAL_RCC_OscConfig+0xd8>
  25616. 800b10e: 687b ldr r3, [r7, #4]
  25617. 800b110: 685b ldr r3, [r3, #4]
  25618. 800b112: 2b00 cmp r3, #0
  25619. 800b114: d10c bne.n 800b130 <HAL_RCC_OscConfig+0x9c>
  25620. 800b116: 4b81 ldr r3, [pc, #516] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25621. 800b118: 681b ldr r3, [r3, #0]
  25622. 800b11a: 4a80 ldr r2, [pc, #512] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25623. 800b11c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25624. 800b120: 6013 str r3, [r2, #0]
  25625. 800b122: 4b7e ldr r3, [pc, #504] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25626. 800b124: 681b ldr r3, [r3, #0]
  25627. 800b126: 4a7d ldr r2, [pc, #500] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25628. 800b128: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  25629. 800b12c: 6013 str r3, [r2, #0]
  25630. 800b12e: e01d b.n 800b16c <HAL_RCC_OscConfig+0xd8>
  25631. 800b130: 687b ldr r3, [r7, #4]
  25632. 800b132: 685b ldr r3, [r3, #4]
  25633. 800b134: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  25634. 800b138: d10c bne.n 800b154 <HAL_RCC_OscConfig+0xc0>
  25635. 800b13a: 4b78 ldr r3, [pc, #480] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25636. 800b13c: 681b ldr r3, [r3, #0]
  25637. 800b13e: 4a77 ldr r2, [pc, #476] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25638. 800b140: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  25639. 800b144: 6013 str r3, [r2, #0]
  25640. 800b146: 4b75 ldr r3, [pc, #468] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25641. 800b148: 681b ldr r3, [r3, #0]
  25642. 800b14a: 4a74 ldr r2, [pc, #464] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25643. 800b14c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25644. 800b150: 6013 str r3, [r2, #0]
  25645. 800b152: e00b b.n 800b16c <HAL_RCC_OscConfig+0xd8>
  25646. 800b154: 4b71 ldr r3, [pc, #452] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25647. 800b156: 681b ldr r3, [r3, #0]
  25648. 800b158: 4a70 ldr r2, [pc, #448] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25649. 800b15a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25650. 800b15e: 6013 str r3, [r2, #0]
  25651. 800b160: 4b6e ldr r3, [pc, #440] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25652. 800b162: 681b ldr r3, [r3, #0]
  25653. 800b164: 4a6d ldr r2, [pc, #436] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25654. 800b166: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  25655. 800b16a: 6013 str r3, [r2, #0]
  25656. /* Check the HSE State */
  25657. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  25658. 800b16c: 687b ldr r3, [r7, #4]
  25659. 800b16e: 685b ldr r3, [r3, #4]
  25660. 800b170: 2b00 cmp r3, #0
  25661. 800b172: d013 beq.n 800b19c <HAL_RCC_OscConfig+0x108>
  25662. {
  25663. /* Get Start Tick*/
  25664. tickstart = HAL_GetTick();
  25665. 800b174: f7fa f9f8 bl 8005568 <HAL_GetTick>
  25666. 800b178: 6278 str r0, [r7, #36] @ 0x24
  25667. /* Wait till HSE is ready */
  25668. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  25669. 800b17a: e008 b.n 800b18e <HAL_RCC_OscConfig+0xfa>
  25670. {
  25671. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  25672. 800b17c: f7fa f9f4 bl 8005568 <HAL_GetTick>
  25673. 800b180: 4602 mov r2, r0
  25674. 800b182: 6a7b ldr r3, [r7, #36] @ 0x24
  25675. 800b184: 1ad3 subs r3, r2, r3
  25676. 800b186: 2b64 cmp r3, #100 @ 0x64
  25677. 800b188: d901 bls.n 800b18e <HAL_RCC_OscConfig+0xfa>
  25678. {
  25679. return HAL_TIMEOUT;
  25680. 800b18a: 2303 movs r3, #3
  25681. 800b18c: e3d4 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25682. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  25683. 800b18e: 4b63 ldr r3, [pc, #396] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25684. 800b190: 681b ldr r3, [r3, #0]
  25685. 800b192: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25686. 800b196: 2b00 cmp r3, #0
  25687. 800b198: d0f0 beq.n 800b17c <HAL_RCC_OscConfig+0xe8>
  25688. 800b19a: e014 b.n 800b1c6 <HAL_RCC_OscConfig+0x132>
  25689. }
  25690. }
  25691. else
  25692. {
  25693. /* Get Start Tick*/
  25694. tickstart = HAL_GetTick();
  25695. 800b19c: f7fa f9e4 bl 8005568 <HAL_GetTick>
  25696. 800b1a0: 6278 str r0, [r7, #36] @ 0x24
  25697. /* Wait till HSE is disabled */
  25698. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  25699. 800b1a2: e008 b.n 800b1b6 <HAL_RCC_OscConfig+0x122>
  25700. {
  25701. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  25702. 800b1a4: f7fa f9e0 bl 8005568 <HAL_GetTick>
  25703. 800b1a8: 4602 mov r2, r0
  25704. 800b1aa: 6a7b ldr r3, [r7, #36] @ 0x24
  25705. 800b1ac: 1ad3 subs r3, r2, r3
  25706. 800b1ae: 2b64 cmp r3, #100 @ 0x64
  25707. 800b1b0: d901 bls.n 800b1b6 <HAL_RCC_OscConfig+0x122>
  25708. {
  25709. return HAL_TIMEOUT;
  25710. 800b1b2: 2303 movs r3, #3
  25711. 800b1b4: e3c0 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25712. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  25713. 800b1b6: 4b59 ldr r3, [pc, #356] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25714. 800b1b8: 681b ldr r3, [r3, #0]
  25715. 800b1ba: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25716. 800b1be: 2b00 cmp r3, #0
  25717. 800b1c0: d1f0 bne.n 800b1a4 <HAL_RCC_OscConfig+0x110>
  25718. 800b1c2: e000 b.n 800b1c6 <HAL_RCC_OscConfig+0x132>
  25719. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  25720. 800b1c4: bf00 nop
  25721. }
  25722. }
  25723. }
  25724. }
  25725. /*----------------------------- HSI Configuration --------------------------*/
  25726. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  25727. 800b1c6: 687b ldr r3, [r7, #4]
  25728. 800b1c8: 681b ldr r3, [r3, #0]
  25729. 800b1ca: f003 0302 and.w r3, r3, #2
  25730. 800b1ce: 2b00 cmp r3, #0
  25731. 800b1d0: f000 80ca beq.w 800b368 <HAL_RCC_OscConfig+0x2d4>
  25732. /* Check the parameters */
  25733. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  25734. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  25735. /* When the HSI is used as system clock it will not be disabled */
  25736. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25737. 800b1d4: 4b51 ldr r3, [pc, #324] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25738. 800b1d6: 691b ldr r3, [r3, #16]
  25739. 800b1d8: f003 0338 and.w r3, r3, #56 @ 0x38
  25740. 800b1dc: 623b str r3, [r7, #32]
  25741. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25742. 800b1de: 4b4f ldr r3, [pc, #316] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25743. 800b1e0: 6a9b ldr r3, [r3, #40] @ 0x28
  25744. 800b1e2: 61fb str r3, [r7, #28]
  25745. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  25746. 800b1e4: 6a3b ldr r3, [r7, #32]
  25747. 800b1e6: 2b00 cmp r3, #0
  25748. 800b1e8: d007 beq.n 800b1fa <HAL_RCC_OscConfig+0x166>
  25749. 800b1ea: 6a3b ldr r3, [r7, #32]
  25750. 800b1ec: 2b18 cmp r3, #24
  25751. 800b1ee: d156 bne.n 800b29e <HAL_RCC_OscConfig+0x20a>
  25752. 800b1f0: 69fb ldr r3, [r7, #28]
  25753. 800b1f2: f003 0303 and.w r3, r3, #3
  25754. 800b1f6: 2b00 cmp r3, #0
  25755. 800b1f8: d151 bne.n 800b29e <HAL_RCC_OscConfig+0x20a>
  25756. {
  25757. /* When HSI is used as system clock it will not be disabled */
  25758. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25759. 800b1fa: 4b48 ldr r3, [pc, #288] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25760. 800b1fc: 681b ldr r3, [r3, #0]
  25761. 800b1fe: f003 0304 and.w r3, r3, #4
  25762. 800b202: 2b00 cmp r3, #0
  25763. 800b204: d005 beq.n 800b212 <HAL_RCC_OscConfig+0x17e>
  25764. 800b206: 687b ldr r3, [r7, #4]
  25765. 800b208: 68db ldr r3, [r3, #12]
  25766. 800b20a: 2b00 cmp r3, #0
  25767. 800b20c: d101 bne.n 800b212 <HAL_RCC_OscConfig+0x17e>
  25768. {
  25769. return HAL_ERROR;
  25770. 800b20e: 2301 movs r3, #1
  25771. 800b210: e392 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25772. }
  25773. /* Otherwise, only HSI division and calibration are allowed */
  25774. else
  25775. {
  25776. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  25777. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  25778. 800b212: 4b42 ldr r3, [pc, #264] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25779. 800b214: 681b ldr r3, [r3, #0]
  25780. 800b216: f023 0219 bic.w r2, r3, #25
  25781. 800b21a: 687b ldr r3, [r7, #4]
  25782. 800b21c: 68db ldr r3, [r3, #12]
  25783. 800b21e: 493f ldr r1, [pc, #252] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25784. 800b220: 4313 orrs r3, r2
  25785. 800b222: 600b str r3, [r1, #0]
  25786. /* Get Start Tick*/
  25787. tickstart = HAL_GetTick();
  25788. 800b224: f7fa f9a0 bl 8005568 <HAL_GetTick>
  25789. 800b228: 6278 str r0, [r7, #36] @ 0x24
  25790. /* Wait till HSI is ready */
  25791. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25792. 800b22a: e008 b.n 800b23e <HAL_RCC_OscConfig+0x1aa>
  25793. {
  25794. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25795. 800b22c: f7fa f99c bl 8005568 <HAL_GetTick>
  25796. 800b230: 4602 mov r2, r0
  25797. 800b232: 6a7b ldr r3, [r7, #36] @ 0x24
  25798. 800b234: 1ad3 subs r3, r2, r3
  25799. 800b236: 2b02 cmp r3, #2
  25800. 800b238: d901 bls.n 800b23e <HAL_RCC_OscConfig+0x1aa>
  25801. {
  25802. return HAL_TIMEOUT;
  25803. 800b23a: 2303 movs r3, #3
  25804. 800b23c: e37c b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25805. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25806. 800b23e: 4b37 ldr r3, [pc, #220] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25807. 800b240: 681b ldr r3, [r3, #0]
  25808. 800b242: f003 0304 and.w r3, r3, #4
  25809. 800b246: 2b00 cmp r3, #0
  25810. 800b248: d0f0 beq.n 800b22c <HAL_RCC_OscConfig+0x198>
  25811. }
  25812. }
  25813. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  25814. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25815. 800b24a: f7fa f999 bl 8005580 <HAL_GetREVID>
  25816. 800b24e: 4603 mov r3, r0
  25817. 800b250: f241 0203 movw r2, #4099 @ 0x1003
  25818. 800b254: 4293 cmp r3, r2
  25819. 800b256: d817 bhi.n 800b288 <HAL_RCC_OscConfig+0x1f4>
  25820. 800b258: 687b ldr r3, [r7, #4]
  25821. 800b25a: 691b ldr r3, [r3, #16]
  25822. 800b25c: 2b40 cmp r3, #64 @ 0x40
  25823. 800b25e: d108 bne.n 800b272 <HAL_RCC_OscConfig+0x1de>
  25824. 800b260: 4b2e ldr r3, [pc, #184] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25825. 800b262: 685b ldr r3, [r3, #4]
  25826. 800b264: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  25827. 800b268: 4a2c ldr r2, [pc, #176] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25828. 800b26a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25829. 800b26e: 6053 str r3, [r2, #4]
  25830. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25831. 800b270: e07a b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25832. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25833. 800b272: 4b2a ldr r3, [pc, #168] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25834. 800b274: 685b ldr r3, [r3, #4]
  25835. 800b276: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  25836. 800b27a: 687b ldr r3, [r7, #4]
  25837. 800b27c: 691b ldr r3, [r3, #16]
  25838. 800b27e: 031b lsls r3, r3, #12
  25839. 800b280: 4926 ldr r1, [pc, #152] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25840. 800b282: 4313 orrs r3, r2
  25841. 800b284: 604b str r3, [r1, #4]
  25842. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25843. 800b286: e06f b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25844. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25845. 800b288: 4b24 ldr r3, [pc, #144] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25846. 800b28a: 685b ldr r3, [r3, #4]
  25847. 800b28c: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  25848. 800b290: 687b ldr r3, [r7, #4]
  25849. 800b292: 691b ldr r3, [r3, #16]
  25850. 800b294: 061b lsls r3, r3, #24
  25851. 800b296: 4921 ldr r1, [pc, #132] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25852. 800b298: 4313 orrs r3, r2
  25853. 800b29a: 604b str r3, [r1, #4]
  25854. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  25855. 800b29c: e064 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25856. }
  25857. else
  25858. {
  25859. /* Check the HSI State */
  25860. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  25861. 800b29e: 687b ldr r3, [r7, #4]
  25862. 800b2a0: 68db ldr r3, [r3, #12]
  25863. 800b2a2: 2b00 cmp r3, #0
  25864. 800b2a4: d047 beq.n 800b336 <HAL_RCC_OscConfig+0x2a2>
  25865. {
  25866. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  25867. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  25868. 800b2a6: 4b1d ldr r3, [pc, #116] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25869. 800b2a8: 681b ldr r3, [r3, #0]
  25870. 800b2aa: f023 0219 bic.w r2, r3, #25
  25871. 800b2ae: 687b ldr r3, [r7, #4]
  25872. 800b2b0: 68db ldr r3, [r3, #12]
  25873. 800b2b2: 491a ldr r1, [pc, #104] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25874. 800b2b4: 4313 orrs r3, r2
  25875. 800b2b6: 600b str r3, [r1, #0]
  25876. /* Get Start Tick*/
  25877. tickstart = HAL_GetTick();
  25878. 800b2b8: f7fa f956 bl 8005568 <HAL_GetTick>
  25879. 800b2bc: 6278 str r0, [r7, #36] @ 0x24
  25880. /* Wait till HSI is ready */
  25881. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25882. 800b2be: e008 b.n 800b2d2 <HAL_RCC_OscConfig+0x23e>
  25883. {
  25884. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25885. 800b2c0: f7fa f952 bl 8005568 <HAL_GetTick>
  25886. 800b2c4: 4602 mov r2, r0
  25887. 800b2c6: 6a7b ldr r3, [r7, #36] @ 0x24
  25888. 800b2c8: 1ad3 subs r3, r2, r3
  25889. 800b2ca: 2b02 cmp r3, #2
  25890. 800b2cc: d901 bls.n 800b2d2 <HAL_RCC_OscConfig+0x23e>
  25891. {
  25892. return HAL_TIMEOUT;
  25893. 800b2ce: 2303 movs r3, #3
  25894. 800b2d0: e332 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25895. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  25896. 800b2d2: 4b12 ldr r3, [pc, #72] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25897. 800b2d4: 681b ldr r3, [r3, #0]
  25898. 800b2d6: f003 0304 and.w r3, r3, #4
  25899. 800b2da: 2b00 cmp r3, #0
  25900. 800b2dc: d0f0 beq.n 800b2c0 <HAL_RCC_OscConfig+0x22c>
  25901. }
  25902. }
  25903. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  25904. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  25905. 800b2de: f7fa f94f bl 8005580 <HAL_GetREVID>
  25906. 800b2e2: 4603 mov r3, r0
  25907. 800b2e4: f241 0203 movw r2, #4099 @ 0x1003
  25908. 800b2e8: 4293 cmp r3, r2
  25909. 800b2ea: d819 bhi.n 800b320 <HAL_RCC_OscConfig+0x28c>
  25910. 800b2ec: 687b ldr r3, [r7, #4]
  25911. 800b2ee: 691b ldr r3, [r3, #16]
  25912. 800b2f0: 2b40 cmp r3, #64 @ 0x40
  25913. 800b2f2: d108 bne.n 800b306 <HAL_RCC_OscConfig+0x272>
  25914. 800b2f4: 4b09 ldr r3, [pc, #36] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25915. 800b2f6: 685b ldr r3, [r3, #4]
  25916. 800b2f8: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  25917. 800b2fc: 4a07 ldr r2, [pc, #28] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25918. 800b2fe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25919. 800b302: 6053 str r3, [r2, #4]
  25920. 800b304: e030 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25921. 800b306: 4b05 ldr r3, [pc, #20] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25922. 800b308: 685b ldr r3, [r3, #4]
  25923. 800b30a: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  25924. 800b30e: 687b ldr r3, [r7, #4]
  25925. 800b310: 691b ldr r3, [r3, #16]
  25926. 800b312: 031b lsls r3, r3, #12
  25927. 800b314: 4901 ldr r1, [pc, #4] @ (800b31c <HAL_RCC_OscConfig+0x288>)
  25928. 800b316: 4313 orrs r3, r2
  25929. 800b318: 604b str r3, [r1, #4]
  25930. 800b31a: e025 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25931. 800b31c: 58024400 .word 0x58024400
  25932. 800b320: 4b9a ldr r3, [pc, #616] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25933. 800b322: 685b ldr r3, [r3, #4]
  25934. 800b324: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  25935. 800b328: 687b ldr r3, [r7, #4]
  25936. 800b32a: 691b ldr r3, [r3, #16]
  25937. 800b32c: 061b lsls r3, r3, #24
  25938. 800b32e: 4997 ldr r1, [pc, #604] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25939. 800b330: 4313 orrs r3, r2
  25940. 800b332: 604b str r3, [r1, #4]
  25941. 800b334: e018 b.n 800b368 <HAL_RCC_OscConfig+0x2d4>
  25942. }
  25943. else
  25944. {
  25945. /* Disable the Internal High Speed oscillator (HSI). */
  25946. __HAL_RCC_HSI_DISABLE();
  25947. 800b336: 4b95 ldr r3, [pc, #596] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25948. 800b338: 681b ldr r3, [r3, #0]
  25949. 800b33a: 4a94 ldr r2, [pc, #592] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25950. 800b33c: f023 0301 bic.w r3, r3, #1
  25951. 800b340: 6013 str r3, [r2, #0]
  25952. /* Get Start Tick*/
  25953. tickstart = HAL_GetTick();
  25954. 800b342: f7fa f911 bl 8005568 <HAL_GetTick>
  25955. 800b346: 6278 str r0, [r7, #36] @ 0x24
  25956. /* Wait till HSI is disabled */
  25957. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  25958. 800b348: e008 b.n 800b35c <HAL_RCC_OscConfig+0x2c8>
  25959. {
  25960. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  25961. 800b34a: f7fa f90d bl 8005568 <HAL_GetTick>
  25962. 800b34e: 4602 mov r2, r0
  25963. 800b350: 6a7b ldr r3, [r7, #36] @ 0x24
  25964. 800b352: 1ad3 subs r3, r2, r3
  25965. 800b354: 2b02 cmp r3, #2
  25966. 800b356: d901 bls.n 800b35c <HAL_RCC_OscConfig+0x2c8>
  25967. {
  25968. return HAL_TIMEOUT;
  25969. 800b358: 2303 movs r3, #3
  25970. 800b35a: e2ed b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  25971. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  25972. 800b35c: 4b8b ldr r3, [pc, #556] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25973. 800b35e: 681b ldr r3, [r3, #0]
  25974. 800b360: f003 0304 and.w r3, r3, #4
  25975. 800b364: 2b00 cmp r3, #0
  25976. 800b366: d1f0 bne.n 800b34a <HAL_RCC_OscConfig+0x2b6>
  25977. }
  25978. }
  25979. }
  25980. }
  25981. /*----------------------------- CSI Configuration --------------------------*/
  25982. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  25983. 800b368: 687b ldr r3, [r7, #4]
  25984. 800b36a: 681b ldr r3, [r3, #0]
  25985. 800b36c: f003 0310 and.w r3, r3, #16
  25986. 800b370: 2b00 cmp r3, #0
  25987. 800b372: f000 80a9 beq.w 800b4c8 <HAL_RCC_OscConfig+0x434>
  25988. /* Check the parameters */
  25989. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  25990. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  25991. /* When the CSI is used as system clock it will not disabled */
  25992. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  25993. 800b376: 4b85 ldr r3, [pc, #532] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25994. 800b378: 691b ldr r3, [r3, #16]
  25995. 800b37a: f003 0338 and.w r3, r3, #56 @ 0x38
  25996. 800b37e: 61bb str r3, [r7, #24]
  25997. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  25998. 800b380: 4b82 ldr r3, [pc, #520] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  25999. 800b382: 6a9b ldr r3, [r3, #40] @ 0x28
  26000. 800b384: 617b str r3, [r7, #20]
  26001. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  26002. 800b386: 69bb ldr r3, [r7, #24]
  26003. 800b388: 2b08 cmp r3, #8
  26004. 800b38a: d007 beq.n 800b39c <HAL_RCC_OscConfig+0x308>
  26005. 800b38c: 69bb ldr r3, [r7, #24]
  26006. 800b38e: 2b18 cmp r3, #24
  26007. 800b390: d13a bne.n 800b408 <HAL_RCC_OscConfig+0x374>
  26008. 800b392: 697b ldr r3, [r7, #20]
  26009. 800b394: f003 0303 and.w r3, r3, #3
  26010. 800b398: 2b01 cmp r3, #1
  26011. 800b39a: d135 bne.n 800b408 <HAL_RCC_OscConfig+0x374>
  26012. {
  26013. /* When CSI is used as system clock it will not disabled */
  26014. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26015. 800b39c: 4b7b ldr r3, [pc, #492] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26016. 800b39e: 681b ldr r3, [r3, #0]
  26017. 800b3a0: f403 7380 and.w r3, r3, #256 @ 0x100
  26018. 800b3a4: 2b00 cmp r3, #0
  26019. 800b3a6: d005 beq.n 800b3b4 <HAL_RCC_OscConfig+0x320>
  26020. 800b3a8: 687b ldr r3, [r7, #4]
  26021. 800b3aa: 69db ldr r3, [r3, #28]
  26022. 800b3ac: 2b80 cmp r3, #128 @ 0x80
  26023. 800b3ae: d001 beq.n 800b3b4 <HAL_RCC_OscConfig+0x320>
  26024. {
  26025. return HAL_ERROR;
  26026. 800b3b0: 2301 movs r3, #1
  26027. 800b3b2: e2c1 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26028. }
  26029. /* Otherwise, just the calibration is allowed */
  26030. else
  26031. {
  26032. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  26033. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26034. 800b3b4: f7fa f8e4 bl 8005580 <HAL_GetREVID>
  26035. 800b3b8: 4603 mov r3, r0
  26036. 800b3ba: f241 0203 movw r2, #4099 @ 0x1003
  26037. 800b3be: 4293 cmp r3, r2
  26038. 800b3c0: d817 bhi.n 800b3f2 <HAL_RCC_OscConfig+0x35e>
  26039. 800b3c2: 687b ldr r3, [r7, #4]
  26040. 800b3c4: 6a1b ldr r3, [r3, #32]
  26041. 800b3c6: 2b20 cmp r3, #32
  26042. 800b3c8: d108 bne.n 800b3dc <HAL_RCC_OscConfig+0x348>
  26043. 800b3ca: 4b70 ldr r3, [pc, #448] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26044. 800b3cc: 685b ldr r3, [r3, #4]
  26045. 800b3ce: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  26046. 800b3d2: 4a6e ldr r2, [pc, #440] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26047. 800b3d4: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  26048. 800b3d8: 6053 str r3, [r2, #4]
  26049. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26050. 800b3da: e075 b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26051. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26052. 800b3dc: 4b6b ldr r3, [pc, #428] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26053. 800b3de: 685b ldr r3, [r3, #4]
  26054. 800b3e0: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  26055. 800b3e4: 687b ldr r3, [r7, #4]
  26056. 800b3e6: 6a1b ldr r3, [r3, #32]
  26057. 800b3e8: 069b lsls r3, r3, #26
  26058. 800b3ea: 4968 ldr r1, [pc, #416] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26059. 800b3ec: 4313 orrs r3, r2
  26060. 800b3ee: 604b str r3, [r1, #4]
  26061. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26062. 800b3f0: e06a b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26063. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26064. 800b3f2: 4b66 ldr r3, [pc, #408] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26065. 800b3f4: 68db ldr r3, [r3, #12]
  26066. 800b3f6: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  26067. 800b3fa: 687b ldr r3, [r7, #4]
  26068. 800b3fc: 6a1b ldr r3, [r3, #32]
  26069. 800b3fe: 061b lsls r3, r3, #24
  26070. 800b400: 4962 ldr r1, [pc, #392] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26071. 800b402: 4313 orrs r3, r2
  26072. 800b404: 60cb str r3, [r1, #12]
  26073. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26074. 800b406: e05f b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26075. }
  26076. }
  26077. else
  26078. {
  26079. /* Check the CSI State */
  26080. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  26081. 800b408: 687b ldr r3, [r7, #4]
  26082. 800b40a: 69db ldr r3, [r3, #28]
  26083. 800b40c: 2b00 cmp r3, #0
  26084. 800b40e: d042 beq.n 800b496 <HAL_RCC_OscConfig+0x402>
  26085. {
  26086. /* Enable the Internal High Speed oscillator (CSI). */
  26087. __HAL_RCC_CSI_ENABLE();
  26088. 800b410: 4b5e ldr r3, [pc, #376] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26089. 800b412: 681b ldr r3, [r3, #0]
  26090. 800b414: 4a5d ldr r2, [pc, #372] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26091. 800b416: f043 0380 orr.w r3, r3, #128 @ 0x80
  26092. 800b41a: 6013 str r3, [r2, #0]
  26093. /* Get Start Tick*/
  26094. tickstart = HAL_GetTick();
  26095. 800b41c: f7fa f8a4 bl 8005568 <HAL_GetTick>
  26096. 800b420: 6278 str r0, [r7, #36] @ 0x24
  26097. /* Wait till CSI is ready */
  26098. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  26099. 800b422: e008 b.n 800b436 <HAL_RCC_OscConfig+0x3a2>
  26100. {
  26101. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  26102. 800b424: f7fa f8a0 bl 8005568 <HAL_GetTick>
  26103. 800b428: 4602 mov r2, r0
  26104. 800b42a: 6a7b ldr r3, [r7, #36] @ 0x24
  26105. 800b42c: 1ad3 subs r3, r2, r3
  26106. 800b42e: 2b02 cmp r3, #2
  26107. 800b430: d901 bls.n 800b436 <HAL_RCC_OscConfig+0x3a2>
  26108. {
  26109. return HAL_TIMEOUT;
  26110. 800b432: 2303 movs r3, #3
  26111. 800b434: e280 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26112. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  26113. 800b436: 4b55 ldr r3, [pc, #340] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26114. 800b438: 681b ldr r3, [r3, #0]
  26115. 800b43a: f403 7380 and.w r3, r3, #256 @ 0x100
  26116. 800b43e: 2b00 cmp r3, #0
  26117. 800b440: d0f0 beq.n 800b424 <HAL_RCC_OscConfig+0x390>
  26118. }
  26119. }
  26120. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  26121. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26122. 800b442: f7fa f89d bl 8005580 <HAL_GetREVID>
  26123. 800b446: 4603 mov r3, r0
  26124. 800b448: f241 0203 movw r2, #4099 @ 0x1003
  26125. 800b44c: 4293 cmp r3, r2
  26126. 800b44e: d817 bhi.n 800b480 <HAL_RCC_OscConfig+0x3ec>
  26127. 800b450: 687b ldr r3, [r7, #4]
  26128. 800b452: 6a1b ldr r3, [r3, #32]
  26129. 800b454: 2b20 cmp r3, #32
  26130. 800b456: d108 bne.n 800b46a <HAL_RCC_OscConfig+0x3d6>
  26131. 800b458: 4b4c ldr r3, [pc, #304] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26132. 800b45a: 685b ldr r3, [r3, #4]
  26133. 800b45c: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  26134. 800b460: 4a4a ldr r2, [pc, #296] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26135. 800b462: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  26136. 800b466: 6053 str r3, [r2, #4]
  26137. 800b468: e02e b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26138. 800b46a: 4b48 ldr r3, [pc, #288] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26139. 800b46c: 685b ldr r3, [r3, #4]
  26140. 800b46e: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  26141. 800b472: 687b ldr r3, [r7, #4]
  26142. 800b474: 6a1b ldr r3, [r3, #32]
  26143. 800b476: 069b lsls r3, r3, #26
  26144. 800b478: 4944 ldr r1, [pc, #272] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26145. 800b47a: 4313 orrs r3, r2
  26146. 800b47c: 604b str r3, [r1, #4]
  26147. 800b47e: e023 b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26148. 800b480: 4b42 ldr r3, [pc, #264] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26149. 800b482: 68db ldr r3, [r3, #12]
  26150. 800b484: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  26151. 800b488: 687b ldr r3, [r7, #4]
  26152. 800b48a: 6a1b ldr r3, [r3, #32]
  26153. 800b48c: 061b lsls r3, r3, #24
  26154. 800b48e: 493f ldr r1, [pc, #252] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26155. 800b490: 4313 orrs r3, r2
  26156. 800b492: 60cb str r3, [r1, #12]
  26157. 800b494: e018 b.n 800b4c8 <HAL_RCC_OscConfig+0x434>
  26158. }
  26159. else
  26160. {
  26161. /* Disable the Internal High Speed oscillator (CSI). */
  26162. __HAL_RCC_CSI_DISABLE();
  26163. 800b496: 4b3d ldr r3, [pc, #244] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26164. 800b498: 681b ldr r3, [r3, #0]
  26165. 800b49a: 4a3c ldr r2, [pc, #240] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26166. 800b49c: f023 0380 bic.w r3, r3, #128 @ 0x80
  26167. 800b4a0: 6013 str r3, [r2, #0]
  26168. /* Get Start Tick*/
  26169. tickstart = HAL_GetTick();
  26170. 800b4a2: f7fa f861 bl 8005568 <HAL_GetTick>
  26171. 800b4a6: 6278 str r0, [r7, #36] @ 0x24
  26172. /* Wait till CSI is disabled */
  26173. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  26174. 800b4a8: e008 b.n 800b4bc <HAL_RCC_OscConfig+0x428>
  26175. {
  26176. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  26177. 800b4aa: f7fa f85d bl 8005568 <HAL_GetTick>
  26178. 800b4ae: 4602 mov r2, r0
  26179. 800b4b0: 6a7b ldr r3, [r7, #36] @ 0x24
  26180. 800b4b2: 1ad3 subs r3, r2, r3
  26181. 800b4b4: 2b02 cmp r3, #2
  26182. 800b4b6: d901 bls.n 800b4bc <HAL_RCC_OscConfig+0x428>
  26183. {
  26184. return HAL_TIMEOUT;
  26185. 800b4b8: 2303 movs r3, #3
  26186. 800b4ba: e23d b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26187. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  26188. 800b4bc: 4b33 ldr r3, [pc, #204] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26189. 800b4be: 681b ldr r3, [r3, #0]
  26190. 800b4c0: f403 7380 and.w r3, r3, #256 @ 0x100
  26191. 800b4c4: 2b00 cmp r3, #0
  26192. 800b4c6: d1f0 bne.n 800b4aa <HAL_RCC_OscConfig+0x416>
  26193. }
  26194. }
  26195. }
  26196. }
  26197. /*------------------------------ LSI Configuration -------------------------*/
  26198. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  26199. 800b4c8: 687b ldr r3, [r7, #4]
  26200. 800b4ca: 681b ldr r3, [r3, #0]
  26201. 800b4cc: f003 0308 and.w r3, r3, #8
  26202. 800b4d0: 2b00 cmp r3, #0
  26203. 800b4d2: d036 beq.n 800b542 <HAL_RCC_OscConfig+0x4ae>
  26204. {
  26205. /* Check the parameters */
  26206. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  26207. /* Check the LSI State */
  26208. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  26209. 800b4d4: 687b ldr r3, [r7, #4]
  26210. 800b4d6: 695b ldr r3, [r3, #20]
  26211. 800b4d8: 2b00 cmp r3, #0
  26212. 800b4da: d019 beq.n 800b510 <HAL_RCC_OscConfig+0x47c>
  26213. {
  26214. /* Enable the Internal Low Speed oscillator (LSI). */
  26215. __HAL_RCC_LSI_ENABLE();
  26216. 800b4dc: 4b2b ldr r3, [pc, #172] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26217. 800b4de: 6f5b ldr r3, [r3, #116] @ 0x74
  26218. 800b4e0: 4a2a ldr r2, [pc, #168] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26219. 800b4e2: f043 0301 orr.w r3, r3, #1
  26220. 800b4e6: 6753 str r3, [r2, #116] @ 0x74
  26221. /* Get Start Tick*/
  26222. tickstart = HAL_GetTick();
  26223. 800b4e8: f7fa f83e bl 8005568 <HAL_GetTick>
  26224. 800b4ec: 6278 str r0, [r7, #36] @ 0x24
  26225. /* Wait till LSI is ready */
  26226. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  26227. 800b4ee: e008 b.n 800b502 <HAL_RCC_OscConfig+0x46e>
  26228. {
  26229. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  26230. 800b4f0: f7fa f83a bl 8005568 <HAL_GetTick>
  26231. 800b4f4: 4602 mov r2, r0
  26232. 800b4f6: 6a7b ldr r3, [r7, #36] @ 0x24
  26233. 800b4f8: 1ad3 subs r3, r2, r3
  26234. 800b4fa: 2b02 cmp r3, #2
  26235. 800b4fc: d901 bls.n 800b502 <HAL_RCC_OscConfig+0x46e>
  26236. {
  26237. return HAL_TIMEOUT;
  26238. 800b4fe: 2303 movs r3, #3
  26239. 800b500: e21a b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26240. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  26241. 800b502: 4b22 ldr r3, [pc, #136] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26242. 800b504: 6f5b ldr r3, [r3, #116] @ 0x74
  26243. 800b506: f003 0302 and.w r3, r3, #2
  26244. 800b50a: 2b00 cmp r3, #0
  26245. 800b50c: d0f0 beq.n 800b4f0 <HAL_RCC_OscConfig+0x45c>
  26246. 800b50e: e018 b.n 800b542 <HAL_RCC_OscConfig+0x4ae>
  26247. }
  26248. }
  26249. else
  26250. {
  26251. /* Disable the Internal Low Speed oscillator (LSI). */
  26252. __HAL_RCC_LSI_DISABLE();
  26253. 800b510: 4b1e ldr r3, [pc, #120] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26254. 800b512: 6f5b ldr r3, [r3, #116] @ 0x74
  26255. 800b514: 4a1d ldr r2, [pc, #116] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26256. 800b516: f023 0301 bic.w r3, r3, #1
  26257. 800b51a: 6753 str r3, [r2, #116] @ 0x74
  26258. /* Get Start Tick*/
  26259. tickstart = HAL_GetTick();
  26260. 800b51c: f7fa f824 bl 8005568 <HAL_GetTick>
  26261. 800b520: 6278 str r0, [r7, #36] @ 0x24
  26262. /* Wait till LSI is ready */
  26263. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  26264. 800b522: e008 b.n 800b536 <HAL_RCC_OscConfig+0x4a2>
  26265. {
  26266. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  26267. 800b524: f7fa f820 bl 8005568 <HAL_GetTick>
  26268. 800b528: 4602 mov r2, r0
  26269. 800b52a: 6a7b ldr r3, [r7, #36] @ 0x24
  26270. 800b52c: 1ad3 subs r3, r2, r3
  26271. 800b52e: 2b02 cmp r3, #2
  26272. 800b530: d901 bls.n 800b536 <HAL_RCC_OscConfig+0x4a2>
  26273. {
  26274. return HAL_TIMEOUT;
  26275. 800b532: 2303 movs r3, #3
  26276. 800b534: e200 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26277. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  26278. 800b536: 4b15 ldr r3, [pc, #84] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26279. 800b538: 6f5b ldr r3, [r3, #116] @ 0x74
  26280. 800b53a: f003 0302 and.w r3, r3, #2
  26281. 800b53e: 2b00 cmp r3, #0
  26282. 800b540: d1f0 bne.n 800b524 <HAL_RCC_OscConfig+0x490>
  26283. }
  26284. }
  26285. }
  26286. /*------------------------------ HSI48 Configuration -------------------------*/
  26287. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  26288. 800b542: 687b ldr r3, [r7, #4]
  26289. 800b544: 681b ldr r3, [r3, #0]
  26290. 800b546: f003 0320 and.w r3, r3, #32
  26291. 800b54a: 2b00 cmp r3, #0
  26292. 800b54c: d039 beq.n 800b5c2 <HAL_RCC_OscConfig+0x52e>
  26293. {
  26294. /* Check the parameters */
  26295. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  26296. /* Check the HSI48 State */
  26297. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  26298. 800b54e: 687b ldr r3, [r7, #4]
  26299. 800b550: 699b ldr r3, [r3, #24]
  26300. 800b552: 2b00 cmp r3, #0
  26301. 800b554: d01c beq.n 800b590 <HAL_RCC_OscConfig+0x4fc>
  26302. {
  26303. /* Enable the Internal Low Speed oscillator (HSI48). */
  26304. __HAL_RCC_HSI48_ENABLE();
  26305. 800b556: 4b0d ldr r3, [pc, #52] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26306. 800b558: 681b ldr r3, [r3, #0]
  26307. 800b55a: 4a0c ldr r2, [pc, #48] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26308. 800b55c: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  26309. 800b560: 6013 str r3, [r2, #0]
  26310. /* Get time-out */
  26311. tickstart = HAL_GetTick();
  26312. 800b562: f7fa f801 bl 8005568 <HAL_GetTick>
  26313. 800b566: 6278 str r0, [r7, #36] @ 0x24
  26314. /* Wait till HSI48 is ready */
  26315. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  26316. 800b568: e008 b.n 800b57c <HAL_RCC_OscConfig+0x4e8>
  26317. {
  26318. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  26319. 800b56a: f7f9 fffd bl 8005568 <HAL_GetTick>
  26320. 800b56e: 4602 mov r2, r0
  26321. 800b570: 6a7b ldr r3, [r7, #36] @ 0x24
  26322. 800b572: 1ad3 subs r3, r2, r3
  26323. 800b574: 2b02 cmp r3, #2
  26324. 800b576: d901 bls.n 800b57c <HAL_RCC_OscConfig+0x4e8>
  26325. {
  26326. return HAL_TIMEOUT;
  26327. 800b578: 2303 movs r3, #3
  26328. 800b57a: e1dd b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26329. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  26330. 800b57c: 4b03 ldr r3, [pc, #12] @ (800b58c <HAL_RCC_OscConfig+0x4f8>)
  26331. 800b57e: 681b ldr r3, [r3, #0]
  26332. 800b580: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26333. 800b584: 2b00 cmp r3, #0
  26334. 800b586: d0f0 beq.n 800b56a <HAL_RCC_OscConfig+0x4d6>
  26335. 800b588: e01b b.n 800b5c2 <HAL_RCC_OscConfig+0x52e>
  26336. 800b58a: bf00 nop
  26337. 800b58c: 58024400 .word 0x58024400
  26338. }
  26339. }
  26340. else
  26341. {
  26342. /* Disable the Internal Low Speed oscillator (HSI48). */
  26343. __HAL_RCC_HSI48_DISABLE();
  26344. 800b590: 4b9b ldr r3, [pc, #620] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26345. 800b592: 681b ldr r3, [r3, #0]
  26346. 800b594: 4a9a ldr r2, [pc, #616] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26347. 800b596: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  26348. 800b59a: 6013 str r3, [r2, #0]
  26349. /* Get time-out */
  26350. tickstart = HAL_GetTick();
  26351. 800b59c: f7f9 ffe4 bl 8005568 <HAL_GetTick>
  26352. 800b5a0: 6278 str r0, [r7, #36] @ 0x24
  26353. /* Wait till HSI48 is ready */
  26354. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  26355. 800b5a2: e008 b.n 800b5b6 <HAL_RCC_OscConfig+0x522>
  26356. {
  26357. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  26358. 800b5a4: f7f9 ffe0 bl 8005568 <HAL_GetTick>
  26359. 800b5a8: 4602 mov r2, r0
  26360. 800b5aa: 6a7b ldr r3, [r7, #36] @ 0x24
  26361. 800b5ac: 1ad3 subs r3, r2, r3
  26362. 800b5ae: 2b02 cmp r3, #2
  26363. 800b5b0: d901 bls.n 800b5b6 <HAL_RCC_OscConfig+0x522>
  26364. {
  26365. return HAL_TIMEOUT;
  26366. 800b5b2: 2303 movs r3, #3
  26367. 800b5b4: e1c0 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26368. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  26369. 800b5b6: 4b92 ldr r3, [pc, #584] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26370. 800b5b8: 681b ldr r3, [r3, #0]
  26371. 800b5ba: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26372. 800b5be: 2b00 cmp r3, #0
  26373. 800b5c0: d1f0 bne.n 800b5a4 <HAL_RCC_OscConfig+0x510>
  26374. }
  26375. }
  26376. }
  26377. }
  26378. /*------------------------------ LSE Configuration -------------------------*/
  26379. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  26380. 800b5c2: 687b ldr r3, [r7, #4]
  26381. 800b5c4: 681b ldr r3, [r3, #0]
  26382. 800b5c6: f003 0304 and.w r3, r3, #4
  26383. 800b5ca: 2b00 cmp r3, #0
  26384. 800b5cc: f000 8081 beq.w 800b6d2 <HAL_RCC_OscConfig+0x63e>
  26385. {
  26386. /* Check the parameters */
  26387. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  26388. /* Enable write access to Backup domain */
  26389. PWR->CR1 |= PWR_CR1_DBP;
  26390. 800b5d0: 4b8c ldr r3, [pc, #560] @ (800b804 <HAL_RCC_OscConfig+0x770>)
  26391. 800b5d2: 681b ldr r3, [r3, #0]
  26392. 800b5d4: 4a8b ldr r2, [pc, #556] @ (800b804 <HAL_RCC_OscConfig+0x770>)
  26393. 800b5d6: f443 7380 orr.w r3, r3, #256 @ 0x100
  26394. 800b5da: 6013 str r3, [r2, #0]
  26395. /* Wait for Backup domain Write protection disable */
  26396. tickstart = HAL_GetTick();
  26397. 800b5dc: f7f9 ffc4 bl 8005568 <HAL_GetTick>
  26398. 800b5e0: 6278 str r0, [r7, #36] @ 0x24
  26399. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26400. 800b5e2: e008 b.n 800b5f6 <HAL_RCC_OscConfig+0x562>
  26401. {
  26402. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  26403. 800b5e4: f7f9 ffc0 bl 8005568 <HAL_GetTick>
  26404. 800b5e8: 4602 mov r2, r0
  26405. 800b5ea: 6a7b ldr r3, [r7, #36] @ 0x24
  26406. 800b5ec: 1ad3 subs r3, r2, r3
  26407. 800b5ee: 2b64 cmp r3, #100 @ 0x64
  26408. 800b5f0: d901 bls.n 800b5f6 <HAL_RCC_OscConfig+0x562>
  26409. {
  26410. return HAL_TIMEOUT;
  26411. 800b5f2: 2303 movs r3, #3
  26412. 800b5f4: e1a0 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26413. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26414. 800b5f6: 4b83 ldr r3, [pc, #524] @ (800b804 <HAL_RCC_OscConfig+0x770>)
  26415. 800b5f8: 681b ldr r3, [r3, #0]
  26416. 800b5fa: f403 7380 and.w r3, r3, #256 @ 0x100
  26417. 800b5fe: 2b00 cmp r3, #0
  26418. 800b600: d0f0 beq.n 800b5e4 <HAL_RCC_OscConfig+0x550>
  26419. }
  26420. }
  26421. /* Set the new LSE configuration -----------------------------------------*/
  26422. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  26423. 800b602: 687b ldr r3, [r7, #4]
  26424. 800b604: 689b ldr r3, [r3, #8]
  26425. 800b606: 2b01 cmp r3, #1
  26426. 800b608: d106 bne.n 800b618 <HAL_RCC_OscConfig+0x584>
  26427. 800b60a: 4b7d ldr r3, [pc, #500] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26428. 800b60c: 6f1b ldr r3, [r3, #112] @ 0x70
  26429. 800b60e: 4a7c ldr r2, [pc, #496] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26430. 800b610: f043 0301 orr.w r3, r3, #1
  26431. 800b614: 6713 str r3, [r2, #112] @ 0x70
  26432. 800b616: e02d b.n 800b674 <HAL_RCC_OscConfig+0x5e0>
  26433. 800b618: 687b ldr r3, [r7, #4]
  26434. 800b61a: 689b ldr r3, [r3, #8]
  26435. 800b61c: 2b00 cmp r3, #0
  26436. 800b61e: d10c bne.n 800b63a <HAL_RCC_OscConfig+0x5a6>
  26437. 800b620: 4b77 ldr r3, [pc, #476] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26438. 800b622: 6f1b ldr r3, [r3, #112] @ 0x70
  26439. 800b624: 4a76 ldr r2, [pc, #472] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26440. 800b626: f023 0301 bic.w r3, r3, #1
  26441. 800b62a: 6713 str r3, [r2, #112] @ 0x70
  26442. 800b62c: 4b74 ldr r3, [pc, #464] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26443. 800b62e: 6f1b ldr r3, [r3, #112] @ 0x70
  26444. 800b630: 4a73 ldr r2, [pc, #460] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26445. 800b632: f023 0304 bic.w r3, r3, #4
  26446. 800b636: 6713 str r3, [r2, #112] @ 0x70
  26447. 800b638: e01c b.n 800b674 <HAL_RCC_OscConfig+0x5e0>
  26448. 800b63a: 687b ldr r3, [r7, #4]
  26449. 800b63c: 689b ldr r3, [r3, #8]
  26450. 800b63e: 2b05 cmp r3, #5
  26451. 800b640: d10c bne.n 800b65c <HAL_RCC_OscConfig+0x5c8>
  26452. 800b642: 4b6f ldr r3, [pc, #444] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26453. 800b644: 6f1b ldr r3, [r3, #112] @ 0x70
  26454. 800b646: 4a6e ldr r2, [pc, #440] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26455. 800b648: f043 0304 orr.w r3, r3, #4
  26456. 800b64c: 6713 str r3, [r2, #112] @ 0x70
  26457. 800b64e: 4b6c ldr r3, [pc, #432] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26458. 800b650: 6f1b ldr r3, [r3, #112] @ 0x70
  26459. 800b652: 4a6b ldr r2, [pc, #428] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26460. 800b654: f043 0301 orr.w r3, r3, #1
  26461. 800b658: 6713 str r3, [r2, #112] @ 0x70
  26462. 800b65a: e00b b.n 800b674 <HAL_RCC_OscConfig+0x5e0>
  26463. 800b65c: 4b68 ldr r3, [pc, #416] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26464. 800b65e: 6f1b ldr r3, [r3, #112] @ 0x70
  26465. 800b660: 4a67 ldr r2, [pc, #412] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26466. 800b662: f023 0301 bic.w r3, r3, #1
  26467. 800b666: 6713 str r3, [r2, #112] @ 0x70
  26468. 800b668: 4b65 ldr r3, [pc, #404] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26469. 800b66a: 6f1b ldr r3, [r3, #112] @ 0x70
  26470. 800b66c: 4a64 ldr r2, [pc, #400] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26471. 800b66e: f023 0304 bic.w r3, r3, #4
  26472. 800b672: 6713 str r3, [r2, #112] @ 0x70
  26473. /* Check the LSE State */
  26474. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  26475. 800b674: 687b ldr r3, [r7, #4]
  26476. 800b676: 689b ldr r3, [r3, #8]
  26477. 800b678: 2b00 cmp r3, #0
  26478. 800b67a: d015 beq.n 800b6a8 <HAL_RCC_OscConfig+0x614>
  26479. {
  26480. /* Get Start Tick*/
  26481. tickstart = HAL_GetTick();
  26482. 800b67c: f7f9 ff74 bl 8005568 <HAL_GetTick>
  26483. 800b680: 6278 str r0, [r7, #36] @ 0x24
  26484. /* Wait till LSE is ready */
  26485. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26486. 800b682: e00a b.n 800b69a <HAL_RCC_OscConfig+0x606>
  26487. {
  26488. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  26489. 800b684: f7f9 ff70 bl 8005568 <HAL_GetTick>
  26490. 800b688: 4602 mov r2, r0
  26491. 800b68a: 6a7b ldr r3, [r7, #36] @ 0x24
  26492. 800b68c: 1ad3 subs r3, r2, r3
  26493. 800b68e: f241 3288 movw r2, #5000 @ 0x1388
  26494. 800b692: 4293 cmp r3, r2
  26495. 800b694: d901 bls.n 800b69a <HAL_RCC_OscConfig+0x606>
  26496. {
  26497. return HAL_TIMEOUT;
  26498. 800b696: 2303 movs r3, #3
  26499. 800b698: e14e b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26500. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26501. 800b69a: 4b59 ldr r3, [pc, #356] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26502. 800b69c: 6f1b ldr r3, [r3, #112] @ 0x70
  26503. 800b69e: f003 0302 and.w r3, r3, #2
  26504. 800b6a2: 2b00 cmp r3, #0
  26505. 800b6a4: d0ee beq.n 800b684 <HAL_RCC_OscConfig+0x5f0>
  26506. 800b6a6: e014 b.n 800b6d2 <HAL_RCC_OscConfig+0x63e>
  26507. }
  26508. }
  26509. else
  26510. {
  26511. /* Get Start Tick*/
  26512. tickstart = HAL_GetTick();
  26513. 800b6a8: f7f9 ff5e bl 8005568 <HAL_GetTick>
  26514. 800b6ac: 6278 str r0, [r7, #36] @ 0x24
  26515. /* Wait till LSE is disabled */
  26516. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  26517. 800b6ae: e00a b.n 800b6c6 <HAL_RCC_OscConfig+0x632>
  26518. {
  26519. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  26520. 800b6b0: f7f9 ff5a bl 8005568 <HAL_GetTick>
  26521. 800b6b4: 4602 mov r2, r0
  26522. 800b6b6: 6a7b ldr r3, [r7, #36] @ 0x24
  26523. 800b6b8: 1ad3 subs r3, r2, r3
  26524. 800b6ba: f241 3288 movw r2, #5000 @ 0x1388
  26525. 800b6be: 4293 cmp r3, r2
  26526. 800b6c0: d901 bls.n 800b6c6 <HAL_RCC_OscConfig+0x632>
  26527. {
  26528. return HAL_TIMEOUT;
  26529. 800b6c2: 2303 movs r3, #3
  26530. 800b6c4: e138 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26531. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  26532. 800b6c6: 4b4e ldr r3, [pc, #312] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26533. 800b6c8: 6f1b ldr r3, [r3, #112] @ 0x70
  26534. 800b6ca: f003 0302 and.w r3, r3, #2
  26535. 800b6ce: 2b00 cmp r3, #0
  26536. 800b6d0: d1ee bne.n 800b6b0 <HAL_RCC_OscConfig+0x61c>
  26537. }
  26538. }
  26539. /*-------------------------------- PLL Configuration -----------------------*/
  26540. /* Check the parameters */
  26541. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  26542. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  26543. 800b6d2: 687b ldr r3, [r7, #4]
  26544. 800b6d4: 6a5b ldr r3, [r3, #36] @ 0x24
  26545. 800b6d6: 2b00 cmp r3, #0
  26546. 800b6d8: f000 812d beq.w 800b936 <HAL_RCC_OscConfig+0x8a2>
  26547. {
  26548. /* Check if the PLL is used as system clock or not */
  26549. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  26550. 800b6dc: 4b48 ldr r3, [pc, #288] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26551. 800b6de: 691b ldr r3, [r3, #16]
  26552. 800b6e0: f003 0338 and.w r3, r3, #56 @ 0x38
  26553. 800b6e4: 2b18 cmp r3, #24
  26554. 800b6e6: f000 80bd beq.w 800b864 <HAL_RCC_OscConfig+0x7d0>
  26555. {
  26556. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  26557. 800b6ea: 687b ldr r3, [r7, #4]
  26558. 800b6ec: 6a5b ldr r3, [r3, #36] @ 0x24
  26559. 800b6ee: 2b02 cmp r3, #2
  26560. 800b6f0: f040 809e bne.w 800b830 <HAL_RCC_OscConfig+0x79c>
  26561. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  26562. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  26563. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  26564. /* Disable the main PLL. */
  26565. __HAL_RCC_PLL_DISABLE();
  26566. 800b6f4: 4b42 ldr r3, [pc, #264] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26567. 800b6f6: 681b ldr r3, [r3, #0]
  26568. 800b6f8: 4a41 ldr r2, [pc, #260] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26569. 800b6fa: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  26570. 800b6fe: 6013 str r3, [r2, #0]
  26571. /* Get Start Tick*/
  26572. tickstart = HAL_GetTick();
  26573. 800b700: f7f9 ff32 bl 8005568 <HAL_GetTick>
  26574. 800b704: 6278 str r0, [r7, #36] @ 0x24
  26575. /* Wait till PLL is disabled */
  26576. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26577. 800b706: e008 b.n 800b71a <HAL_RCC_OscConfig+0x686>
  26578. {
  26579. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26580. 800b708: f7f9 ff2e bl 8005568 <HAL_GetTick>
  26581. 800b70c: 4602 mov r2, r0
  26582. 800b70e: 6a7b ldr r3, [r7, #36] @ 0x24
  26583. 800b710: 1ad3 subs r3, r2, r3
  26584. 800b712: 2b02 cmp r3, #2
  26585. 800b714: d901 bls.n 800b71a <HAL_RCC_OscConfig+0x686>
  26586. {
  26587. return HAL_TIMEOUT;
  26588. 800b716: 2303 movs r3, #3
  26589. 800b718: e10e b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26590. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26591. 800b71a: 4b39 ldr r3, [pc, #228] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26592. 800b71c: 681b ldr r3, [r3, #0]
  26593. 800b71e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26594. 800b722: 2b00 cmp r3, #0
  26595. 800b724: d1f0 bne.n 800b708 <HAL_RCC_OscConfig+0x674>
  26596. }
  26597. }
  26598. /* Configure the main PLL clock source, multiplication and division factors. */
  26599. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  26600. 800b726: 4b36 ldr r3, [pc, #216] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26601. 800b728: 6a9a ldr r2, [r3, #40] @ 0x28
  26602. 800b72a: 4b37 ldr r3, [pc, #220] @ (800b808 <HAL_RCC_OscConfig+0x774>)
  26603. 800b72c: 4013 ands r3, r2
  26604. 800b72e: 687a ldr r2, [r7, #4]
  26605. 800b730: 6a91 ldr r1, [r2, #40] @ 0x28
  26606. 800b732: 687a ldr r2, [r7, #4]
  26607. 800b734: 6ad2 ldr r2, [r2, #44] @ 0x2c
  26608. 800b736: 0112 lsls r2, r2, #4
  26609. 800b738: 430a orrs r2, r1
  26610. 800b73a: 4931 ldr r1, [pc, #196] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26611. 800b73c: 4313 orrs r3, r2
  26612. 800b73e: 628b str r3, [r1, #40] @ 0x28
  26613. 800b740: 687b ldr r3, [r7, #4]
  26614. 800b742: 6b1b ldr r3, [r3, #48] @ 0x30
  26615. 800b744: 3b01 subs r3, #1
  26616. 800b746: f3c3 0208 ubfx r2, r3, #0, #9
  26617. 800b74a: 687b ldr r3, [r7, #4]
  26618. 800b74c: 6b5b ldr r3, [r3, #52] @ 0x34
  26619. 800b74e: 3b01 subs r3, #1
  26620. 800b750: 025b lsls r3, r3, #9
  26621. 800b752: b29b uxth r3, r3
  26622. 800b754: 431a orrs r2, r3
  26623. 800b756: 687b ldr r3, [r7, #4]
  26624. 800b758: 6b9b ldr r3, [r3, #56] @ 0x38
  26625. 800b75a: 3b01 subs r3, #1
  26626. 800b75c: 041b lsls r3, r3, #16
  26627. 800b75e: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  26628. 800b762: 431a orrs r2, r3
  26629. 800b764: 687b ldr r3, [r7, #4]
  26630. 800b766: 6bdb ldr r3, [r3, #60] @ 0x3c
  26631. 800b768: 3b01 subs r3, #1
  26632. 800b76a: 061b lsls r3, r3, #24
  26633. 800b76c: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  26634. 800b770: 4923 ldr r1, [pc, #140] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26635. 800b772: 4313 orrs r3, r2
  26636. 800b774: 630b str r3, [r1, #48] @ 0x30
  26637. RCC_OscInitStruct->PLL.PLLP,
  26638. RCC_OscInitStruct->PLL.PLLQ,
  26639. RCC_OscInitStruct->PLL.PLLR);
  26640. /* Disable PLLFRACN . */
  26641. __HAL_RCC_PLLFRACN_DISABLE();
  26642. 800b776: 4b22 ldr r3, [pc, #136] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26643. 800b778: 6adb ldr r3, [r3, #44] @ 0x2c
  26644. 800b77a: 4a21 ldr r2, [pc, #132] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26645. 800b77c: f023 0301 bic.w r3, r3, #1
  26646. 800b780: 62d3 str r3, [r2, #44] @ 0x2c
  26647. /* Configure PLL PLL1FRACN */
  26648. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  26649. 800b782: 4b1f ldr r3, [pc, #124] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26650. 800b784: 6b5a ldr r2, [r3, #52] @ 0x34
  26651. 800b786: 4b21 ldr r3, [pc, #132] @ (800b80c <HAL_RCC_OscConfig+0x778>)
  26652. 800b788: 4013 ands r3, r2
  26653. 800b78a: 687a ldr r2, [r7, #4]
  26654. 800b78c: 6c92 ldr r2, [r2, #72] @ 0x48
  26655. 800b78e: 00d2 lsls r2, r2, #3
  26656. 800b790: 491b ldr r1, [pc, #108] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26657. 800b792: 4313 orrs r3, r2
  26658. 800b794: 634b str r3, [r1, #52] @ 0x34
  26659. /* Select PLL1 input reference frequency range: VCI */
  26660. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  26661. 800b796: 4b1a ldr r3, [pc, #104] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26662. 800b798: 6adb ldr r3, [r3, #44] @ 0x2c
  26663. 800b79a: f023 020c bic.w r2, r3, #12
  26664. 800b79e: 687b ldr r3, [r7, #4]
  26665. 800b7a0: 6c1b ldr r3, [r3, #64] @ 0x40
  26666. 800b7a2: 4917 ldr r1, [pc, #92] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26667. 800b7a4: 4313 orrs r3, r2
  26668. 800b7a6: 62cb str r3, [r1, #44] @ 0x2c
  26669. /* Select PLL1 output frequency range : VCO */
  26670. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  26671. 800b7a8: 4b15 ldr r3, [pc, #84] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26672. 800b7aa: 6adb ldr r3, [r3, #44] @ 0x2c
  26673. 800b7ac: f023 0202 bic.w r2, r3, #2
  26674. 800b7b0: 687b ldr r3, [r7, #4]
  26675. 800b7b2: 6c5b ldr r3, [r3, #68] @ 0x44
  26676. 800b7b4: 4912 ldr r1, [pc, #72] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26677. 800b7b6: 4313 orrs r3, r2
  26678. 800b7b8: 62cb str r3, [r1, #44] @ 0x2c
  26679. /* Enable PLL System Clock output. */
  26680. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  26681. 800b7ba: 4b11 ldr r3, [pc, #68] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26682. 800b7bc: 6adb ldr r3, [r3, #44] @ 0x2c
  26683. 800b7be: 4a10 ldr r2, [pc, #64] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26684. 800b7c0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26685. 800b7c4: 62d3 str r3, [r2, #44] @ 0x2c
  26686. /* Enable PLL1Q Clock output. */
  26687. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26688. 800b7c6: 4b0e ldr r3, [pc, #56] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26689. 800b7c8: 6adb ldr r3, [r3, #44] @ 0x2c
  26690. 800b7ca: 4a0d ldr r2, [pc, #52] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26691. 800b7cc: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26692. 800b7d0: 62d3 str r3, [r2, #44] @ 0x2c
  26693. /* Enable PLL1R Clock output. */
  26694. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  26695. 800b7d2: 4b0b ldr r3, [pc, #44] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26696. 800b7d4: 6adb ldr r3, [r3, #44] @ 0x2c
  26697. 800b7d6: 4a0a ldr r2, [pc, #40] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26698. 800b7d8: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26699. 800b7dc: 62d3 str r3, [r2, #44] @ 0x2c
  26700. /* Enable PLL1FRACN . */
  26701. __HAL_RCC_PLLFRACN_ENABLE();
  26702. 800b7de: 4b08 ldr r3, [pc, #32] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26703. 800b7e0: 6adb ldr r3, [r3, #44] @ 0x2c
  26704. 800b7e2: 4a07 ldr r2, [pc, #28] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26705. 800b7e4: f043 0301 orr.w r3, r3, #1
  26706. 800b7e8: 62d3 str r3, [r2, #44] @ 0x2c
  26707. /* Enable the main PLL. */
  26708. __HAL_RCC_PLL_ENABLE();
  26709. 800b7ea: 4b05 ldr r3, [pc, #20] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26710. 800b7ec: 681b ldr r3, [r3, #0]
  26711. 800b7ee: 4a04 ldr r2, [pc, #16] @ (800b800 <HAL_RCC_OscConfig+0x76c>)
  26712. 800b7f0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  26713. 800b7f4: 6013 str r3, [r2, #0]
  26714. /* Get Start Tick*/
  26715. tickstart = HAL_GetTick();
  26716. 800b7f6: f7f9 feb7 bl 8005568 <HAL_GetTick>
  26717. 800b7fa: 6278 str r0, [r7, #36] @ 0x24
  26718. /* Wait till PLL is ready */
  26719. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  26720. 800b7fc: e011 b.n 800b822 <HAL_RCC_OscConfig+0x78e>
  26721. 800b7fe: bf00 nop
  26722. 800b800: 58024400 .word 0x58024400
  26723. 800b804: 58024800 .word 0x58024800
  26724. 800b808: fffffc0c .word 0xfffffc0c
  26725. 800b80c: ffff0007 .word 0xffff0007
  26726. {
  26727. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26728. 800b810: f7f9 feaa bl 8005568 <HAL_GetTick>
  26729. 800b814: 4602 mov r2, r0
  26730. 800b816: 6a7b ldr r3, [r7, #36] @ 0x24
  26731. 800b818: 1ad3 subs r3, r2, r3
  26732. 800b81a: 2b02 cmp r3, #2
  26733. 800b81c: d901 bls.n 800b822 <HAL_RCC_OscConfig+0x78e>
  26734. {
  26735. return HAL_TIMEOUT;
  26736. 800b81e: 2303 movs r3, #3
  26737. 800b820: e08a b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26738. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  26739. 800b822: 4b47 ldr r3, [pc, #284] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26740. 800b824: 681b ldr r3, [r3, #0]
  26741. 800b826: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26742. 800b82a: 2b00 cmp r3, #0
  26743. 800b82c: d0f0 beq.n 800b810 <HAL_RCC_OscConfig+0x77c>
  26744. 800b82e: e082 b.n 800b936 <HAL_RCC_OscConfig+0x8a2>
  26745. }
  26746. }
  26747. else
  26748. {
  26749. /* Disable the main PLL. */
  26750. __HAL_RCC_PLL_DISABLE();
  26751. 800b830: 4b43 ldr r3, [pc, #268] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26752. 800b832: 681b ldr r3, [r3, #0]
  26753. 800b834: 4a42 ldr r2, [pc, #264] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26754. 800b836: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  26755. 800b83a: 6013 str r3, [r2, #0]
  26756. /* Get Start Tick*/
  26757. tickstart = HAL_GetTick();
  26758. 800b83c: f7f9 fe94 bl 8005568 <HAL_GetTick>
  26759. 800b840: 6278 str r0, [r7, #36] @ 0x24
  26760. /* Wait till PLL is disabled */
  26761. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26762. 800b842: e008 b.n 800b856 <HAL_RCC_OscConfig+0x7c2>
  26763. {
  26764. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  26765. 800b844: f7f9 fe90 bl 8005568 <HAL_GetTick>
  26766. 800b848: 4602 mov r2, r0
  26767. 800b84a: 6a7b ldr r3, [r7, #36] @ 0x24
  26768. 800b84c: 1ad3 subs r3, r2, r3
  26769. 800b84e: 2b02 cmp r3, #2
  26770. 800b850: d901 bls.n 800b856 <HAL_RCC_OscConfig+0x7c2>
  26771. {
  26772. return HAL_TIMEOUT;
  26773. 800b852: 2303 movs r3, #3
  26774. 800b854: e070 b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26775. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  26776. 800b856: 4b3a ldr r3, [pc, #232] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26777. 800b858: 681b ldr r3, [r3, #0]
  26778. 800b85a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  26779. 800b85e: 2b00 cmp r3, #0
  26780. 800b860: d1f0 bne.n 800b844 <HAL_RCC_OscConfig+0x7b0>
  26781. 800b862: e068 b.n 800b936 <HAL_RCC_OscConfig+0x8a2>
  26782. }
  26783. }
  26784. else
  26785. {
  26786. /* Do not return HAL_ERROR if request repeats the current configuration */
  26787. temp1_pllckcfg = RCC->PLLCKSELR;
  26788. 800b864: 4b36 ldr r3, [pc, #216] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26789. 800b866: 6a9b ldr r3, [r3, #40] @ 0x28
  26790. 800b868: 613b str r3, [r7, #16]
  26791. temp2_pllckcfg = RCC->PLL1DIVR;
  26792. 800b86a: 4b35 ldr r3, [pc, #212] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26793. 800b86c: 6b1b ldr r3, [r3, #48] @ 0x30
  26794. 800b86e: 60fb str r3, [r7, #12]
  26795. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  26796. 800b870: 687b ldr r3, [r7, #4]
  26797. 800b872: 6a5b ldr r3, [r3, #36] @ 0x24
  26798. 800b874: 2b01 cmp r3, #1
  26799. 800b876: d031 beq.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26800. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  26801. 800b878: 693b ldr r3, [r7, #16]
  26802. 800b87a: f003 0203 and.w r2, r3, #3
  26803. 800b87e: 687b ldr r3, [r7, #4]
  26804. 800b880: 6a9b ldr r3, [r3, #40] @ 0x28
  26805. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  26806. 800b882: 429a cmp r2, r3
  26807. 800b884: d12a bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26808. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  26809. 800b886: 693b ldr r3, [r7, #16]
  26810. 800b888: 091b lsrs r3, r3, #4
  26811. 800b88a: f003 023f and.w r2, r3, #63 @ 0x3f
  26812. 800b88e: 687b ldr r3, [r7, #4]
  26813. 800b890: 6adb ldr r3, [r3, #44] @ 0x2c
  26814. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  26815. 800b892: 429a cmp r2, r3
  26816. 800b894: d122 bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26817. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  26818. 800b896: 68fb ldr r3, [r7, #12]
  26819. 800b898: f3c3 0208 ubfx r2, r3, #0, #9
  26820. 800b89c: 687b ldr r3, [r7, #4]
  26821. 800b89e: 6b1b ldr r3, [r3, #48] @ 0x30
  26822. 800b8a0: 3b01 subs r3, #1
  26823. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  26824. 800b8a2: 429a cmp r2, r3
  26825. 800b8a4: d11a bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26826. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  26827. 800b8a6: 68fb ldr r3, [r7, #12]
  26828. 800b8a8: 0a5b lsrs r3, r3, #9
  26829. 800b8aa: f003 027f and.w r2, r3, #127 @ 0x7f
  26830. 800b8ae: 687b ldr r3, [r7, #4]
  26831. 800b8b0: 6b5b ldr r3, [r3, #52] @ 0x34
  26832. 800b8b2: 3b01 subs r3, #1
  26833. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  26834. 800b8b4: 429a cmp r2, r3
  26835. 800b8b6: d111 bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26836. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  26837. 800b8b8: 68fb ldr r3, [r7, #12]
  26838. 800b8ba: 0c1b lsrs r3, r3, #16
  26839. 800b8bc: f003 027f and.w r2, r3, #127 @ 0x7f
  26840. 800b8c0: 687b ldr r3, [r7, #4]
  26841. 800b8c2: 6b9b ldr r3, [r3, #56] @ 0x38
  26842. 800b8c4: 3b01 subs r3, #1
  26843. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  26844. 800b8c6: 429a cmp r2, r3
  26845. 800b8c8: d108 bne.n 800b8dc <HAL_RCC_OscConfig+0x848>
  26846. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  26847. 800b8ca: 68fb ldr r3, [r7, #12]
  26848. 800b8cc: 0e1b lsrs r3, r3, #24
  26849. 800b8ce: f003 027f and.w r2, r3, #127 @ 0x7f
  26850. 800b8d2: 687b ldr r3, [r7, #4]
  26851. 800b8d4: 6bdb ldr r3, [r3, #60] @ 0x3c
  26852. 800b8d6: 3b01 subs r3, #1
  26853. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  26854. 800b8d8: 429a cmp r2, r3
  26855. 800b8da: d001 beq.n 800b8e0 <HAL_RCC_OscConfig+0x84c>
  26856. {
  26857. return HAL_ERROR;
  26858. 800b8dc: 2301 movs r3, #1
  26859. 800b8de: e02b b.n 800b938 <HAL_RCC_OscConfig+0x8a4>
  26860. }
  26861. else
  26862. {
  26863. /* Check if only fractional part needs to be updated */
  26864. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  26865. 800b8e0: 4b17 ldr r3, [pc, #92] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26866. 800b8e2: 6b5b ldr r3, [r3, #52] @ 0x34
  26867. 800b8e4: 08db lsrs r3, r3, #3
  26868. 800b8e6: f3c3 030c ubfx r3, r3, #0, #13
  26869. 800b8ea: 613b str r3, [r7, #16]
  26870. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  26871. 800b8ec: 687b ldr r3, [r7, #4]
  26872. 800b8ee: 6c9b ldr r3, [r3, #72] @ 0x48
  26873. 800b8f0: 693a ldr r2, [r7, #16]
  26874. 800b8f2: 429a cmp r2, r3
  26875. 800b8f4: d01f beq.n 800b936 <HAL_RCC_OscConfig+0x8a2>
  26876. {
  26877. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  26878. /* Disable PLL1FRACEN */
  26879. __HAL_RCC_PLLFRACN_DISABLE();
  26880. 800b8f6: 4b12 ldr r3, [pc, #72] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26881. 800b8f8: 6adb ldr r3, [r3, #44] @ 0x2c
  26882. 800b8fa: 4a11 ldr r2, [pc, #68] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26883. 800b8fc: f023 0301 bic.w r3, r3, #1
  26884. 800b900: 62d3 str r3, [r2, #44] @ 0x2c
  26885. /* Get Start Tick*/
  26886. tickstart = HAL_GetTick();
  26887. 800b902: f7f9 fe31 bl 8005568 <HAL_GetTick>
  26888. 800b906: 6278 str r0, [r7, #36] @ 0x24
  26889. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  26890. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  26891. 800b908: bf00 nop
  26892. 800b90a: f7f9 fe2d bl 8005568 <HAL_GetTick>
  26893. 800b90e: 4602 mov r2, r0
  26894. 800b910: 6a7b ldr r3, [r7, #36] @ 0x24
  26895. 800b912: 4293 cmp r3, r2
  26896. 800b914: d0f9 beq.n 800b90a <HAL_RCC_OscConfig+0x876>
  26897. {
  26898. }
  26899. /* Configure PLL1 PLL1FRACN */
  26900. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  26901. 800b916: 4b0a ldr r3, [pc, #40] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26902. 800b918: 6b5a ldr r2, [r3, #52] @ 0x34
  26903. 800b91a: 4b0a ldr r3, [pc, #40] @ (800b944 <HAL_RCC_OscConfig+0x8b0>)
  26904. 800b91c: 4013 ands r3, r2
  26905. 800b91e: 687a ldr r2, [r7, #4]
  26906. 800b920: 6c92 ldr r2, [r2, #72] @ 0x48
  26907. 800b922: 00d2 lsls r2, r2, #3
  26908. 800b924: 4906 ldr r1, [pc, #24] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26909. 800b926: 4313 orrs r3, r2
  26910. 800b928: 634b str r3, [r1, #52] @ 0x34
  26911. /* Enable PLL1FRACEN to latch new value. */
  26912. __HAL_RCC_PLLFRACN_ENABLE();
  26913. 800b92a: 4b05 ldr r3, [pc, #20] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26914. 800b92c: 6adb ldr r3, [r3, #44] @ 0x2c
  26915. 800b92e: 4a04 ldr r2, [pc, #16] @ (800b940 <HAL_RCC_OscConfig+0x8ac>)
  26916. 800b930: f043 0301 orr.w r3, r3, #1
  26917. 800b934: 62d3 str r3, [r2, #44] @ 0x2c
  26918. }
  26919. }
  26920. }
  26921. }
  26922. return HAL_OK;
  26923. 800b936: 2300 movs r3, #0
  26924. }
  26925. 800b938: 4618 mov r0, r3
  26926. 800b93a: 3730 adds r7, #48 @ 0x30
  26927. 800b93c: 46bd mov sp, r7
  26928. 800b93e: bd80 pop {r7, pc}
  26929. 800b940: 58024400 .word 0x58024400
  26930. 800b944: ffff0007 .word 0xffff0007
  26931. 0800b948 <HAL_RCC_ClockConfig>:
  26932. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  26933. * (for more details refer to section above "Initialization/de-initialization functions")
  26934. * @retval None
  26935. */
  26936. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  26937. {
  26938. 800b948: b580 push {r7, lr}
  26939. 800b94a: b086 sub sp, #24
  26940. 800b94c: af00 add r7, sp, #0
  26941. 800b94e: 6078 str r0, [r7, #4]
  26942. 800b950: 6039 str r1, [r7, #0]
  26943. HAL_StatusTypeDef halstatus;
  26944. uint32_t tickstart;
  26945. uint32_t common_system_clock;
  26946. /* Check Null pointer */
  26947. if (RCC_ClkInitStruct == NULL)
  26948. 800b952: 687b ldr r3, [r7, #4]
  26949. 800b954: 2b00 cmp r3, #0
  26950. 800b956: d101 bne.n 800b95c <HAL_RCC_ClockConfig+0x14>
  26951. {
  26952. return HAL_ERROR;
  26953. 800b958: 2301 movs r3, #1
  26954. 800b95a: e19c b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  26955. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  26956. must be correctly programmed according to the frequency of the CPU clock
  26957. (HCLK) and the supply voltage of the device. */
  26958. /* Increasing the CPU frequency */
  26959. if (FLatency > __HAL_FLASH_GET_LATENCY())
  26960. 800b95c: 4b8a ldr r3, [pc, #552] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26961. 800b95e: 681b ldr r3, [r3, #0]
  26962. 800b960: f003 030f and.w r3, r3, #15
  26963. 800b964: 683a ldr r2, [r7, #0]
  26964. 800b966: 429a cmp r2, r3
  26965. 800b968: d910 bls.n 800b98c <HAL_RCC_ClockConfig+0x44>
  26966. {
  26967. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  26968. __HAL_FLASH_SET_LATENCY(FLatency);
  26969. 800b96a: 4b87 ldr r3, [pc, #540] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26970. 800b96c: 681b ldr r3, [r3, #0]
  26971. 800b96e: f023 020f bic.w r2, r3, #15
  26972. 800b972: 4985 ldr r1, [pc, #532] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26973. 800b974: 683b ldr r3, [r7, #0]
  26974. 800b976: 4313 orrs r3, r2
  26975. 800b978: 600b str r3, [r1, #0]
  26976. /* Check that the new number of wait states is taken into account to access the Flash
  26977. memory by reading the FLASH_ACR register */
  26978. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  26979. 800b97a: 4b83 ldr r3, [pc, #524] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  26980. 800b97c: 681b ldr r3, [r3, #0]
  26981. 800b97e: f003 030f and.w r3, r3, #15
  26982. 800b982: 683a ldr r2, [r7, #0]
  26983. 800b984: 429a cmp r2, r3
  26984. 800b986: d001 beq.n 800b98c <HAL_RCC_ClockConfig+0x44>
  26985. {
  26986. return HAL_ERROR;
  26987. 800b988: 2301 movs r3, #1
  26988. 800b98a: e184 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  26989. }
  26990. /* Increasing the BUS frequency divider */
  26991. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  26992. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  26993. 800b98c: 687b ldr r3, [r7, #4]
  26994. 800b98e: 681b ldr r3, [r3, #0]
  26995. 800b990: f003 0304 and.w r3, r3, #4
  26996. 800b994: 2b00 cmp r3, #0
  26997. 800b996: d010 beq.n 800b9ba <HAL_RCC_ClockConfig+0x72>
  26998. {
  26999. #if defined (RCC_D1CFGR_D1PPRE)
  27000. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  27001. 800b998: 687b ldr r3, [r7, #4]
  27002. 800b99a: 691a ldr r2, [r3, #16]
  27003. 800b99c: 4b7b ldr r3, [pc, #492] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27004. 800b99e: 699b ldr r3, [r3, #24]
  27005. 800b9a0: f003 0370 and.w r3, r3, #112 @ 0x70
  27006. 800b9a4: 429a cmp r2, r3
  27007. 800b9a6: d908 bls.n 800b9ba <HAL_RCC_ClockConfig+0x72>
  27008. {
  27009. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  27010. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  27011. 800b9a8: 4b78 ldr r3, [pc, #480] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27012. 800b9aa: 699b ldr r3, [r3, #24]
  27013. 800b9ac: f023 0270 bic.w r2, r3, #112 @ 0x70
  27014. 800b9b0: 687b ldr r3, [r7, #4]
  27015. 800b9b2: 691b ldr r3, [r3, #16]
  27016. 800b9b4: 4975 ldr r1, [pc, #468] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27017. 800b9b6: 4313 orrs r3, r2
  27018. 800b9b8: 618b str r3, [r1, #24]
  27019. }
  27020. #endif
  27021. }
  27022. /*-------------------------- PCLK1 Configuration ---------------------------*/
  27023. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  27024. 800b9ba: 687b ldr r3, [r7, #4]
  27025. 800b9bc: 681b ldr r3, [r3, #0]
  27026. 800b9be: f003 0308 and.w r3, r3, #8
  27027. 800b9c2: 2b00 cmp r3, #0
  27028. 800b9c4: d010 beq.n 800b9e8 <HAL_RCC_ClockConfig+0xa0>
  27029. {
  27030. #if defined (RCC_D2CFGR_D2PPRE1)
  27031. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  27032. 800b9c6: 687b ldr r3, [r7, #4]
  27033. 800b9c8: 695a ldr r2, [r3, #20]
  27034. 800b9ca: 4b70 ldr r3, [pc, #448] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27035. 800b9cc: 69db ldr r3, [r3, #28]
  27036. 800b9ce: f003 0370 and.w r3, r3, #112 @ 0x70
  27037. 800b9d2: 429a cmp r2, r3
  27038. 800b9d4: d908 bls.n 800b9e8 <HAL_RCC_ClockConfig+0xa0>
  27039. {
  27040. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  27041. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27042. 800b9d6: 4b6d ldr r3, [pc, #436] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27043. 800b9d8: 69db ldr r3, [r3, #28]
  27044. 800b9da: f023 0270 bic.w r2, r3, #112 @ 0x70
  27045. 800b9de: 687b ldr r3, [r7, #4]
  27046. 800b9e0: 695b ldr r3, [r3, #20]
  27047. 800b9e2: 496a ldr r1, [pc, #424] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27048. 800b9e4: 4313 orrs r3, r2
  27049. 800b9e6: 61cb str r3, [r1, #28]
  27050. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27051. }
  27052. #endif
  27053. }
  27054. /*-------------------------- PCLK2 Configuration ---------------------------*/
  27055. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  27056. 800b9e8: 687b ldr r3, [r7, #4]
  27057. 800b9ea: 681b ldr r3, [r3, #0]
  27058. 800b9ec: f003 0310 and.w r3, r3, #16
  27059. 800b9f0: 2b00 cmp r3, #0
  27060. 800b9f2: d010 beq.n 800ba16 <HAL_RCC_ClockConfig+0xce>
  27061. {
  27062. #if defined(RCC_D2CFGR_D2PPRE2)
  27063. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  27064. 800b9f4: 687b ldr r3, [r7, #4]
  27065. 800b9f6: 699a ldr r2, [r3, #24]
  27066. 800b9f8: 4b64 ldr r3, [pc, #400] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27067. 800b9fa: 69db ldr r3, [r3, #28]
  27068. 800b9fc: f403 63e0 and.w r3, r3, #1792 @ 0x700
  27069. 800ba00: 429a cmp r2, r3
  27070. 800ba02: d908 bls.n 800ba16 <HAL_RCC_ClockConfig+0xce>
  27071. {
  27072. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  27073. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  27074. 800ba04: 4b61 ldr r3, [pc, #388] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27075. 800ba06: 69db ldr r3, [r3, #28]
  27076. 800ba08: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  27077. 800ba0c: 687b ldr r3, [r7, #4]
  27078. 800ba0e: 699b ldr r3, [r3, #24]
  27079. 800ba10: 495e ldr r1, [pc, #376] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27080. 800ba12: 4313 orrs r3, r2
  27081. 800ba14: 61cb str r3, [r1, #28]
  27082. }
  27083. #endif
  27084. }
  27085. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  27086. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  27087. 800ba16: 687b ldr r3, [r7, #4]
  27088. 800ba18: 681b ldr r3, [r3, #0]
  27089. 800ba1a: f003 0320 and.w r3, r3, #32
  27090. 800ba1e: 2b00 cmp r3, #0
  27091. 800ba20: d010 beq.n 800ba44 <HAL_RCC_ClockConfig+0xfc>
  27092. {
  27093. #if defined(RCC_D3CFGR_D3PPRE)
  27094. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  27095. 800ba22: 687b ldr r3, [r7, #4]
  27096. 800ba24: 69da ldr r2, [r3, #28]
  27097. 800ba26: 4b59 ldr r3, [pc, #356] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27098. 800ba28: 6a1b ldr r3, [r3, #32]
  27099. 800ba2a: f003 0370 and.w r3, r3, #112 @ 0x70
  27100. 800ba2e: 429a cmp r2, r3
  27101. 800ba30: d908 bls.n 800ba44 <HAL_RCC_ClockConfig+0xfc>
  27102. {
  27103. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  27104. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  27105. 800ba32: 4b56 ldr r3, [pc, #344] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27106. 800ba34: 6a1b ldr r3, [r3, #32]
  27107. 800ba36: f023 0270 bic.w r2, r3, #112 @ 0x70
  27108. 800ba3a: 687b ldr r3, [r7, #4]
  27109. 800ba3c: 69db ldr r3, [r3, #28]
  27110. 800ba3e: 4953 ldr r1, [pc, #332] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27111. 800ba40: 4313 orrs r3, r2
  27112. 800ba42: 620b str r3, [r1, #32]
  27113. }
  27114. #endif
  27115. }
  27116. /*-------------------------- HCLK Configuration --------------------------*/
  27117. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  27118. 800ba44: 687b ldr r3, [r7, #4]
  27119. 800ba46: 681b ldr r3, [r3, #0]
  27120. 800ba48: f003 0302 and.w r3, r3, #2
  27121. 800ba4c: 2b00 cmp r3, #0
  27122. 800ba4e: d010 beq.n 800ba72 <HAL_RCC_ClockConfig+0x12a>
  27123. {
  27124. #if defined (RCC_D1CFGR_HPRE)
  27125. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  27126. 800ba50: 687b ldr r3, [r7, #4]
  27127. 800ba52: 68da ldr r2, [r3, #12]
  27128. 800ba54: 4b4d ldr r3, [pc, #308] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27129. 800ba56: 699b ldr r3, [r3, #24]
  27130. 800ba58: f003 030f and.w r3, r3, #15
  27131. 800ba5c: 429a cmp r2, r3
  27132. 800ba5e: d908 bls.n 800ba72 <HAL_RCC_ClockConfig+0x12a>
  27133. {
  27134. /* Set the new HCLK clock divider */
  27135. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  27136. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  27137. 800ba60: 4b4a ldr r3, [pc, #296] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27138. 800ba62: 699b ldr r3, [r3, #24]
  27139. 800ba64: f023 020f bic.w r2, r3, #15
  27140. 800ba68: 687b ldr r3, [r7, #4]
  27141. 800ba6a: 68db ldr r3, [r3, #12]
  27142. 800ba6c: 4947 ldr r1, [pc, #284] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27143. 800ba6e: 4313 orrs r3, r2
  27144. 800ba70: 618b str r3, [r1, #24]
  27145. }
  27146. #endif
  27147. }
  27148. /*------------------------- SYSCLK Configuration -------------------------*/
  27149. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  27150. 800ba72: 687b ldr r3, [r7, #4]
  27151. 800ba74: 681b ldr r3, [r3, #0]
  27152. 800ba76: f003 0301 and.w r3, r3, #1
  27153. 800ba7a: 2b00 cmp r3, #0
  27154. 800ba7c: d055 beq.n 800bb2a <HAL_RCC_ClockConfig+0x1e2>
  27155. {
  27156. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  27157. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  27158. #if defined(RCC_D1CFGR_D1CPRE)
  27159. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  27160. 800ba7e: 4b43 ldr r3, [pc, #268] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27161. 800ba80: 699b ldr r3, [r3, #24]
  27162. 800ba82: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  27163. 800ba86: 687b ldr r3, [r7, #4]
  27164. 800ba88: 689b ldr r3, [r3, #8]
  27165. 800ba8a: 4940 ldr r1, [pc, #256] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27166. 800ba8c: 4313 orrs r3, r2
  27167. 800ba8e: 618b str r3, [r1, #24]
  27168. #else
  27169. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  27170. #endif
  27171. /* HSE is selected as System Clock Source */
  27172. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  27173. 800ba90: 687b ldr r3, [r7, #4]
  27174. 800ba92: 685b ldr r3, [r3, #4]
  27175. 800ba94: 2b02 cmp r3, #2
  27176. 800ba96: d107 bne.n 800baa8 <HAL_RCC_ClockConfig+0x160>
  27177. {
  27178. /* Check the HSE ready flag */
  27179. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  27180. 800ba98: 4b3c ldr r3, [pc, #240] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27181. 800ba9a: 681b ldr r3, [r3, #0]
  27182. 800ba9c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  27183. 800baa0: 2b00 cmp r3, #0
  27184. 800baa2: d121 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27185. {
  27186. return HAL_ERROR;
  27187. 800baa4: 2301 movs r3, #1
  27188. 800baa6: e0f6 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27189. }
  27190. }
  27191. /* PLL is selected as System Clock Source */
  27192. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  27193. 800baa8: 687b ldr r3, [r7, #4]
  27194. 800baaa: 685b ldr r3, [r3, #4]
  27195. 800baac: 2b03 cmp r3, #3
  27196. 800baae: d107 bne.n 800bac0 <HAL_RCC_ClockConfig+0x178>
  27197. {
  27198. /* Check the PLL ready flag */
  27199. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27200. 800bab0: 4b36 ldr r3, [pc, #216] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27201. 800bab2: 681b ldr r3, [r3, #0]
  27202. 800bab4: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27203. 800bab8: 2b00 cmp r3, #0
  27204. 800baba: d115 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27205. {
  27206. return HAL_ERROR;
  27207. 800babc: 2301 movs r3, #1
  27208. 800babe: e0ea b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27209. }
  27210. }
  27211. /* CSI is selected as System Clock Source */
  27212. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  27213. 800bac0: 687b ldr r3, [r7, #4]
  27214. 800bac2: 685b ldr r3, [r3, #4]
  27215. 800bac4: 2b01 cmp r3, #1
  27216. 800bac6: d107 bne.n 800bad8 <HAL_RCC_ClockConfig+0x190>
  27217. {
  27218. /* Check the PLL ready flag */
  27219. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27220. 800bac8: 4b30 ldr r3, [pc, #192] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27221. 800baca: 681b ldr r3, [r3, #0]
  27222. 800bacc: f403 7380 and.w r3, r3, #256 @ 0x100
  27223. 800bad0: 2b00 cmp r3, #0
  27224. 800bad2: d109 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27225. {
  27226. return HAL_ERROR;
  27227. 800bad4: 2301 movs r3, #1
  27228. 800bad6: e0de b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27229. }
  27230. /* HSI is selected as System Clock Source */
  27231. else
  27232. {
  27233. /* Check the HSI ready flag */
  27234. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  27235. 800bad8: 4b2c ldr r3, [pc, #176] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27236. 800bada: 681b ldr r3, [r3, #0]
  27237. 800badc: f003 0304 and.w r3, r3, #4
  27238. 800bae0: 2b00 cmp r3, #0
  27239. 800bae2: d101 bne.n 800bae8 <HAL_RCC_ClockConfig+0x1a0>
  27240. {
  27241. return HAL_ERROR;
  27242. 800bae4: 2301 movs r3, #1
  27243. 800bae6: e0d6 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27244. }
  27245. }
  27246. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  27247. 800bae8: 4b28 ldr r3, [pc, #160] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27248. 800baea: 691b ldr r3, [r3, #16]
  27249. 800baec: f023 0207 bic.w r2, r3, #7
  27250. 800baf0: 687b ldr r3, [r7, #4]
  27251. 800baf2: 685b ldr r3, [r3, #4]
  27252. 800baf4: 4925 ldr r1, [pc, #148] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27253. 800baf6: 4313 orrs r3, r2
  27254. 800baf8: 610b str r3, [r1, #16]
  27255. /* Get Start Tick*/
  27256. tickstart = HAL_GetTick();
  27257. 800bafa: f7f9 fd35 bl 8005568 <HAL_GetTick>
  27258. 800bafe: 6178 str r0, [r7, #20]
  27259. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  27260. 800bb00: e00a b.n 800bb18 <HAL_RCC_ClockConfig+0x1d0>
  27261. {
  27262. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  27263. 800bb02: f7f9 fd31 bl 8005568 <HAL_GetTick>
  27264. 800bb06: 4602 mov r2, r0
  27265. 800bb08: 697b ldr r3, [r7, #20]
  27266. 800bb0a: 1ad3 subs r3, r2, r3
  27267. 800bb0c: f241 3288 movw r2, #5000 @ 0x1388
  27268. 800bb10: 4293 cmp r3, r2
  27269. 800bb12: d901 bls.n 800bb18 <HAL_RCC_ClockConfig+0x1d0>
  27270. {
  27271. return HAL_TIMEOUT;
  27272. 800bb14: 2303 movs r3, #3
  27273. 800bb16: e0be b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27274. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  27275. 800bb18: 4b1c ldr r3, [pc, #112] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27276. 800bb1a: 691b ldr r3, [r3, #16]
  27277. 800bb1c: f003 0238 and.w r2, r3, #56 @ 0x38
  27278. 800bb20: 687b ldr r3, [r7, #4]
  27279. 800bb22: 685b ldr r3, [r3, #4]
  27280. 800bb24: 00db lsls r3, r3, #3
  27281. 800bb26: 429a cmp r2, r3
  27282. 800bb28: d1eb bne.n 800bb02 <HAL_RCC_ClockConfig+0x1ba>
  27283. }
  27284. /* Decreasing the BUS frequency divider */
  27285. /*-------------------------- HCLK Configuration --------------------------*/
  27286. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  27287. 800bb2a: 687b ldr r3, [r7, #4]
  27288. 800bb2c: 681b ldr r3, [r3, #0]
  27289. 800bb2e: f003 0302 and.w r3, r3, #2
  27290. 800bb32: 2b00 cmp r3, #0
  27291. 800bb34: d010 beq.n 800bb58 <HAL_RCC_ClockConfig+0x210>
  27292. {
  27293. #if defined(RCC_D1CFGR_HPRE)
  27294. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  27295. 800bb36: 687b ldr r3, [r7, #4]
  27296. 800bb38: 68da ldr r2, [r3, #12]
  27297. 800bb3a: 4b14 ldr r3, [pc, #80] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27298. 800bb3c: 699b ldr r3, [r3, #24]
  27299. 800bb3e: f003 030f and.w r3, r3, #15
  27300. 800bb42: 429a cmp r2, r3
  27301. 800bb44: d208 bcs.n 800bb58 <HAL_RCC_ClockConfig+0x210>
  27302. {
  27303. /* Set the new HCLK clock divider */
  27304. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  27305. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  27306. 800bb46: 4b11 ldr r3, [pc, #68] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27307. 800bb48: 699b ldr r3, [r3, #24]
  27308. 800bb4a: f023 020f bic.w r2, r3, #15
  27309. 800bb4e: 687b ldr r3, [r7, #4]
  27310. 800bb50: 68db ldr r3, [r3, #12]
  27311. 800bb52: 490e ldr r1, [pc, #56] @ (800bb8c <HAL_RCC_ClockConfig+0x244>)
  27312. 800bb54: 4313 orrs r3, r2
  27313. 800bb56: 618b str r3, [r1, #24]
  27314. }
  27315. #endif
  27316. }
  27317. /* Decreasing the number of wait states because of lower CPU frequency */
  27318. if (FLatency < __HAL_FLASH_GET_LATENCY())
  27319. 800bb58: 4b0b ldr r3, [pc, #44] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27320. 800bb5a: 681b ldr r3, [r3, #0]
  27321. 800bb5c: f003 030f and.w r3, r3, #15
  27322. 800bb60: 683a ldr r2, [r7, #0]
  27323. 800bb62: 429a cmp r2, r3
  27324. 800bb64: d214 bcs.n 800bb90 <HAL_RCC_ClockConfig+0x248>
  27325. {
  27326. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  27327. __HAL_FLASH_SET_LATENCY(FLatency);
  27328. 800bb66: 4b08 ldr r3, [pc, #32] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27329. 800bb68: 681b ldr r3, [r3, #0]
  27330. 800bb6a: f023 020f bic.w r2, r3, #15
  27331. 800bb6e: 4906 ldr r1, [pc, #24] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27332. 800bb70: 683b ldr r3, [r7, #0]
  27333. 800bb72: 4313 orrs r3, r2
  27334. 800bb74: 600b str r3, [r1, #0]
  27335. /* Check that the new number of wait states is taken into account to access the Flash
  27336. memory by reading the FLASH_ACR register */
  27337. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  27338. 800bb76: 4b04 ldr r3, [pc, #16] @ (800bb88 <HAL_RCC_ClockConfig+0x240>)
  27339. 800bb78: 681b ldr r3, [r3, #0]
  27340. 800bb7a: f003 030f and.w r3, r3, #15
  27341. 800bb7e: 683a ldr r2, [r7, #0]
  27342. 800bb80: 429a cmp r2, r3
  27343. 800bb82: d005 beq.n 800bb90 <HAL_RCC_ClockConfig+0x248>
  27344. {
  27345. return HAL_ERROR;
  27346. 800bb84: 2301 movs r3, #1
  27347. 800bb86: e086 b.n 800bc96 <HAL_RCC_ClockConfig+0x34e>
  27348. 800bb88: 52002000 .word 0x52002000
  27349. 800bb8c: 58024400 .word 0x58024400
  27350. }
  27351. }
  27352. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  27353. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  27354. 800bb90: 687b ldr r3, [r7, #4]
  27355. 800bb92: 681b ldr r3, [r3, #0]
  27356. 800bb94: f003 0304 and.w r3, r3, #4
  27357. 800bb98: 2b00 cmp r3, #0
  27358. 800bb9a: d010 beq.n 800bbbe <HAL_RCC_ClockConfig+0x276>
  27359. {
  27360. #if defined(RCC_D1CFGR_D1PPRE)
  27361. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  27362. 800bb9c: 687b ldr r3, [r7, #4]
  27363. 800bb9e: 691a ldr r2, [r3, #16]
  27364. 800bba0: 4b3f ldr r3, [pc, #252] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27365. 800bba2: 699b ldr r3, [r3, #24]
  27366. 800bba4: f003 0370 and.w r3, r3, #112 @ 0x70
  27367. 800bba8: 429a cmp r2, r3
  27368. 800bbaa: d208 bcs.n 800bbbe <HAL_RCC_ClockConfig+0x276>
  27369. {
  27370. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  27371. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  27372. 800bbac: 4b3c ldr r3, [pc, #240] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27373. 800bbae: 699b ldr r3, [r3, #24]
  27374. 800bbb0: f023 0270 bic.w r2, r3, #112 @ 0x70
  27375. 800bbb4: 687b ldr r3, [r7, #4]
  27376. 800bbb6: 691b ldr r3, [r3, #16]
  27377. 800bbb8: 4939 ldr r1, [pc, #228] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27378. 800bbba: 4313 orrs r3, r2
  27379. 800bbbc: 618b str r3, [r1, #24]
  27380. }
  27381. #endif
  27382. }
  27383. /*-------------------------- PCLK1 Configuration ---------------------------*/
  27384. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  27385. 800bbbe: 687b ldr r3, [r7, #4]
  27386. 800bbc0: 681b ldr r3, [r3, #0]
  27387. 800bbc2: f003 0308 and.w r3, r3, #8
  27388. 800bbc6: 2b00 cmp r3, #0
  27389. 800bbc8: d010 beq.n 800bbec <HAL_RCC_ClockConfig+0x2a4>
  27390. {
  27391. #if defined(RCC_D2CFGR_D2PPRE1)
  27392. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  27393. 800bbca: 687b ldr r3, [r7, #4]
  27394. 800bbcc: 695a ldr r2, [r3, #20]
  27395. 800bbce: 4b34 ldr r3, [pc, #208] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27396. 800bbd0: 69db ldr r3, [r3, #28]
  27397. 800bbd2: f003 0370 and.w r3, r3, #112 @ 0x70
  27398. 800bbd6: 429a cmp r2, r3
  27399. 800bbd8: d208 bcs.n 800bbec <HAL_RCC_ClockConfig+0x2a4>
  27400. {
  27401. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  27402. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27403. 800bbda: 4b31 ldr r3, [pc, #196] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27404. 800bbdc: 69db ldr r3, [r3, #28]
  27405. 800bbde: f023 0270 bic.w r2, r3, #112 @ 0x70
  27406. 800bbe2: 687b ldr r3, [r7, #4]
  27407. 800bbe4: 695b ldr r3, [r3, #20]
  27408. 800bbe6: 492e ldr r1, [pc, #184] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27409. 800bbe8: 4313 orrs r3, r2
  27410. 800bbea: 61cb str r3, [r1, #28]
  27411. }
  27412. #endif
  27413. }
  27414. /*-------------------------- PCLK2 Configuration ---------------------------*/
  27415. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  27416. 800bbec: 687b ldr r3, [r7, #4]
  27417. 800bbee: 681b ldr r3, [r3, #0]
  27418. 800bbf0: f003 0310 and.w r3, r3, #16
  27419. 800bbf4: 2b00 cmp r3, #0
  27420. 800bbf6: d010 beq.n 800bc1a <HAL_RCC_ClockConfig+0x2d2>
  27421. {
  27422. #if defined (RCC_D2CFGR_D2PPRE2)
  27423. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  27424. 800bbf8: 687b ldr r3, [r7, #4]
  27425. 800bbfa: 699a ldr r2, [r3, #24]
  27426. 800bbfc: 4b28 ldr r3, [pc, #160] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27427. 800bbfe: 69db ldr r3, [r3, #28]
  27428. 800bc00: f403 63e0 and.w r3, r3, #1792 @ 0x700
  27429. 800bc04: 429a cmp r2, r3
  27430. 800bc06: d208 bcs.n 800bc1a <HAL_RCC_ClockConfig+0x2d2>
  27431. {
  27432. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  27433. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  27434. 800bc08: 4b25 ldr r3, [pc, #148] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27435. 800bc0a: 69db ldr r3, [r3, #28]
  27436. 800bc0c: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  27437. 800bc10: 687b ldr r3, [r7, #4]
  27438. 800bc12: 699b ldr r3, [r3, #24]
  27439. 800bc14: 4922 ldr r1, [pc, #136] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27440. 800bc16: 4313 orrs r3, r2
  27441. 800bc18: 61cb str r3, [r1, #28]
  27442. }
  27443. #endif
  27444. }
  27445. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  27446. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  27447. 800bc1a: 687b ldr r3, [r7, #4]
  27448. 800bc1c: 681b ldr r3, [r3, #0]
  27449. 800bc1e: f003 0320 and.w r3, r3, #32
  27450. 800bc22: 2b00 cmp r3, #0
  27451. 800bc24: d010 beq.n 800bc48 <HAL_RCC_ClockConfig+0x300>
  27452. {
  27453. #if defined(RCC_D3CFGR_D3PPRE)
  27454. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  27455. 800bc26: 687b ldr r3, [r7, #4]
  27456. 800bc28: 69da ldr r2, [r3, #28]
  27457. 800bc2a: 4b1d ldr r3, [pc, #116] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27458. 800bc2c: 6a1b ldr r3, [r3, #32]
  27459. 800bc2e: f003 0370 and.w r3, r3, #112 @ 0x70
  27460. 800bc32: 429a cmp r2, r3
  27461. 800bc34: d208 bcs.n 800bc48 <HAL_RCC_ClockConfig+0x300>
  27462. {
  27463. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  27464. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  27465. 800bc36: 4b1a ldr r3, [pc, #104] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27466. 800bc38: 6a1b ldr r3, [r3, #32]
  27467. 800bc3a: f023 0270 bic.w r2, r3, #112 @ 0x70
  27468. 800bc3e: 687b ldr r3, [r7, #4]
  27469. 800bc40: 69db ldr r3, [r3, #28]
  27470. 800bc42: 4917 ldr r1, [pc, #92] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27471. 800bc44: 4313 orrs r3, r2
  27472. 800bc46: 620b str r3, [r1, #32]
  27473. #endif
  27474. }
  27475. /* Update the SystemCoreClock global variable */
  27476. #if defined(RCC_D1CFGR_D1CPRE)
  27477. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  27478. 800bc48: f000 f834 bl 800bcb4 <HAL_RCC_GetSysClockFreq>
  27479. 800bc4c: 4602 mov r2, r0
  27480. 800bc4e: 4b14 ldr r3, [pc, #80] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27481. 800bc50: 699b ldr r3, [r3, #24]
  27482. 800bc52: 0a1b lsrs r3, r3, #8
  27483. 800bc54: f003 030f and.w r3, r3, #15
  27484. 800bc58: 4912 ldr r1, [pc, #72] @ (800bca4 <HAL_RCC_ClockConfig+0x35c>)
  27485. 800bc5a: 5ccb ldrb r3, [r1, r3]
  27486. 800bc5c: f003 031f and.w r3, r3, #31
  27487. 800bc60: fa22 f303 lsr.w r3, r2, r3
  27488. 800bc64: 613b str r3, [r7, #16]
  27489. #else
  27490. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  27491. #endif
  27492. #if defined(RCC_D1CFGR_HPRE)
  27493. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  27494. 800bc66: 4b0e ldr r3, [pc, #56] @ (800bca0 <HAL_RCC_ClockConfig+0x358>)
  27495. 800bc68: 699b ldr r3, [r3, #24]
  27496. 800bc6a: f003 030f and.w r3, r3, #15
  27497. 800bc6e: 4a0d ldr r2, [pc, #52] @ (800bca4 <HAL_RCC_ClockConfig+0x35c>)
  27498. 800bc70: 5cd3 ldrb r3, [r2, r3]
  27499. 800bc72: f003 031f and.w r3, r3, #31
  27500. 800bc76: 693a ldr r2, [r7, #16]
  27501. 800bc78: fa22 f303 lsr.w r3, r2, r3
  27502. 800bc7c: 4a0a ldr r2, [pc, #40] @ (800bca8 <HAL_RCC_ClockConfig+0x360>)
  27503. 800bc7e: 6013 str r3, [r2, #0]
  27504. #endif
  27505. #if defined(DUAL_CORE) && defined(CORE_CM4)
  27506. SystemCoreClock = SystemD2Clock;
  27507. #else
  27508. SystemCoreClock = common_system_clock;
  27509. 800bc80: 4a0a ldr r2, [pc, #40] @ (800bcac <HAL_RCC_ClockConfig+0x364>)
  27510. 800bc82: 693b ldr r3, [r7, #16]
  27511. 800bc84: 6013 str r3, [r2, #0]
  27512. #endif /* DUAL_CORE && CORE_CM4 */
  27513. /* Configure the source of time base considering new system clocks settings*/
  27514. halstatus = HAL_InitTick(uwTickPrio);
  27515. 800bc86: 4b0a ldr r3, [pc, #40] @ (800bcb0 <HAL_RCC_ClockConfig+0x368>)
  27516. 800bc88: 681b ldr r3, [r3, #0]
  27517. 800bc8a: 4618 mov r0, r3
  27518. 800bc8c: f7f8 f928 bl 8003ee0 <HAL_InitTick>
  27519. 800bc90: 4603 mov r3, r0
  27520. 800bc92: 73fb strb r3, [r7, #15]
  27521. return halstatus;
  27522. 800bc94: 7bfb ldrb r3, [r7, #15]
  27523. }
  27524. 800bc96: 4618 mov r0, r3
  27525. 800bc98: 3718 adds r7, #24
  27526. 800bc9a: 46bd mov sp, r7
  27527. 800bc9c: bd80 pop {r7, pc}
  27528. 800bc9e: bf00 nop
  27529. 800bca0: 58024400 .word 0x58024400
  27530. 800bca4: 08018c18 .word 0x08018c18
  27531. 800bca8: 24000038 .word 0x24000038
  27532. 800bcac: 24000034 .word 0x24000034
  27533. 800bcb0: 2400003c .word 0x2400003c
  27534. 0800bcb4 <HAL_RCC_GetSysClockFreq>:
  27535. *
  27536. *
  27537. * @retval SYSCLK frequency
  27538. */
  27539. uint32_t HAL_RCC_GetSysClockFreq(void)
  27540. {
  27541. 800bcb4: b480 push {r7}
  27542. 800bcb6: b089 sub sp, #36 @ 0x24
  27543. 800bcb8: af00 add r7, sp, #0
  27544. float_t fracn1, pllvco;
  27545. uint32_t sysclockfreq;
  27546. /* Get SYSCLK source -------------------------------------------------------*/
  27547. switch (RCC->CFGR & RCC_CFGR_SWS)
  27548. 800bcba: 4bb3 ldr r3, [pc, #716] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27549. 800bcbc: 691b ldr r3, [r3, #16]
  27550. 800bcbe: f003 0338 and.w r3, r3, #56 @ 0x38
  27551. 800bcc2: 2b18 cmp r3, #24
  27552. 800bcc4: f200 8155 bhi.w 800bf72 <HAL_RCC_GetSysClockFreq+0x2be>
  27553. 800bcc8: a201 add r2, pc, #4 @ (adr r2, 800bcd0 <HAL_RCC_GetSysClockFreq+0x1c>)
  27554. 800bcca: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  27555. 800bcce: bf00 nop
  27556. 800bcd0: 0800bd35 .word 0x0800bd35
  27557. 800bcd4: 0800bf73 .word 0x0800bf73
  27558. 800bcd8: 0800bf73 .word 0x0800bf73
  27559. 800bcdc: 0800bf73 .word 0x0800bf73
  27560. 800bce0: 0800bf73 .word 0x0800bf73
  27561. 800bce4: 0800bf73 .word 0x0800bf73
  27562. 800bce8: 0800bf73 .word 0x0800bf73
  27563. 800bcec: 0800bf73 .word 0x0800bf73
  27564. 800bcf0: 0800bd5b .word 0x0800bd5b
  27565. 800bcf4: 0800bf73 .word 0x0800bf73
  27566. 800bcf8: 0800bf73 .word 0x0800bf73
  27567. 800bcfc: 0800bf73 .word 0x0800bf73
  27568. 800bd00: 0800bf73 .word 0x0800bf73
  27569. 800bd04: 0800bf73 .word 0x0800bf73
  27570. 800bd08: 0800bf73 .word 0x0800bf73
  27571. 800bd0c: 0800bf73 .word 0x0800bf73
  27572. 800bd10: 0800bd61 .word 0x0800bd61
  27573. 800bd14: 0800bf73 .word 0x0800bf73
  27574. 800bd18: 0800bf73 .word 0x0800bf73
  27575. 800bd1c: 0800bf73 .word 0x0800bf73
  27576. 800bd20: 0800bf73 .word 0x0800bf73
  27577. 800bd24: 0800bf73 .word 0x0800bf73
  27578. 800bd28: 0800bf73 .word 0x0800bf73
  27579. 800bd2c: 0800bf73 .word 0x0800bf73
  27580. 800bd30: 0800bd67 .word 0x0800bd67
  27581. {
  27582. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  27583. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27584. 800bd34: 4b94 ldr r3, [pc, #592] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27585. 800bd36: 681b ldr r3, [r3, #0]
  27586. 800bd38: f003 0320 and.w r3, r3, #32
  27587. 800bd3c: 2b00 cmp r3, #0
  27588. 800bd3e: d009 beq.n 800bd54 <HAL_RCC_GetSysClockFreq+0xa0>
  27589. {
  27590. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27591. 800bd40: 4b91 ldr r3, [pc, #580] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27592. 800bd42: 681b ldr r3, [r3, #0]
  27593. 800bd44: 08db lsrs r3, r3, #3
  27594. 800bd46: f003 0303 and.w r3, r3, #3
  27595. 800bd4a: 4a90 ldr r2, [pc, #576] @ (800bf8c <HAL_RCC_GetSysClockFreq+0x2d8>)
  27596. 800bd4c: fa22 f303 lsr.w r3, r2, r3
  27597. 800bd50: 61bb str r3, [r7, #24]
  27598. else
  27599. {
  27600. sysclockfreq = (uint32_t) HSI_VALUE;
  27601. }
  27602. break;
  27603. 800bd52: e111 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27604. sysclockfreq = (uint32_t) HSI_VALUE;
  27605. 800bd54: 4b8d ldr r3, [pc, #564] @ (800bf8c <HAL_RCC_GetSysClockFreq+0x2d8>)
  27606. 800bd56: 61bb str r3, [r7, #24]
  27607. break;
  27608. 800bd58: e10e b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27609. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  27610. sysclockfreq = CSI_VALUE;
  27611. 800bd5a: 4b8d ldr r3, [pc, #564] @ (800bf90 <HAL_RCC_GetSysClockFreq+0x2dc>)
  27612. 800bd5c: 61bb str r3, [r7, #24]
  27613. break;
  27614. 800bd5e: e10b b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27615. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  27616. sysclockfreq = HSE_VALUE;
  27617. 800bd60: 4b8c ldr r3, [pc, #560] @ (800bf94 <HAL_RCC_GetSysClockFreq+0x2e0>)
  27618. 800bd62: 61bb str r3, [r7, #24]
  27619. break;
  27620. 800bd64: e108 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27621. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  27622. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  27623. SYSCLK = PLL_VCO / PLLR
  27624. */
  27625. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  27626. 800bd66: 4b88 ldr r3, [pc, #544] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27627. 800bd68: 6a9b ldr r3, [r3, #40] @ 0x28
  27628. 800bd6a: f003 0303 and.w r3, r3, #3
  27629. 800bd6e: 617b str r3, [r7, #20]
  27630. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  27631. 800bd70: 4b85 ldr r3, [pc, #532] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27632. 800bd72: 6a9b ldr r3, [r3, #40] @ 0x28
  27633. 800bd74: 091b lsrs r3, r3, #4
  27634. 800bd76: f003 033f and.w r3, r3, #63 @ 0x3f
  27635. 800bd7a: 613b str r3, [r7, #16]
  27636. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  27637. 800bd7c: 4b82 ldr r3, [pc, #520] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27638. 800bd7e: 6adb ldr r3, [r3, #44] @ 0x2c
  27639. 800bd80: f003 0301 and.w r3, r3, #1
  27640. 800bd84: 60fb str r3, [r7, #12]
  27641. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  27642. 800bd86: 4b80 ldr r3, [pc, #512] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27643. 800bd88: 6b5b ldr r3, [r3, #52] @ 0x34
  27644. 800bd8a: 08db lsrs r3, r3, #3
  27645. 800bd8c: f3c3 030c ubfx r3, r3, #0, #13
  27646. 800bd90: 68fa ldr r2, [r7, #12]
  27647. 800bd92: fb02 f303 mul.w r3, r2, r3
  27648. 800bd96: ee07 3a90 vmov s15, r3
  27649. 800bd9a: eef8 7a67 vcvt.f32.u32 s15, s15
  27650. 800bd9e: edc7 7a02 vstr s15, [r7, #8]
  27651. if (pllm != 0U)
  27652. 800bda2: 693b ldr r3, [r7, #16]
  27653. 800bda4: 2b00 cmp r3, #0
  27654. 800bda6: f000 80e1 beq.w 800bf6c <HAL_RCC_GetSysClockFreq+0x2b8>
  27655. 800bdaa: 697b ldr r3, [r7, #20]
  27656. 800bdac: 2b02 cmp r3, #2
  27657. 800bdae: f000 8083 beq.w 800beb8 <HAL_RCC_GetSysClockFreq+0x204>
  27658. 800bdb2: 697b ldr r3, [r7, #20]
  27659. 800bdb4: 2b02 cmp r3, #2
  27660. 800bdb6: f200 80a1 bhi.w 800befc <HAL_RCC_GetSysClockFreq+0x248>
  27661. 800bdba: 697b ldr r3, [r7, #20]
  27662. 800bdbc: 2b00 cmp r3, #0
  27663. 800bdbe: d003 beq.n 800bdc8 <HAL_RCC_GetSysClockFreq+0x114>
  27664. 800bdc0: 697b ldr r3, [r7, #20]
  27665. 800bdc2: 2b01 cmp r3, #1
  27666. 800bdc4: d056 beq.n 800be74 <HAL_RCC_GetSysClockFreq+0x1c0>
  27667. 800bdc6: e099 b.n 800befc <HAL_RCC_GetSysClockFreq+0x248>
  27668. {
  27669. switch (pllsource)
  27670. {
  27671. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  27672. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  27673. 800bdc8: 4b6f ldr r3, [pc, #444] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27674. 800bdca: 681b ldr r3, [r3, #0]
  27675. 800bdcc: f003 0320 and.w r3, r3, #32
  27676. 800bdd0: 2b00 cmp r3, #0
  27677. 800bdd2: d02d beq.n 800be30 <HAL_RCC_GetSysClockFreq+0x17c>
  27678. {
  27679. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  27680. 800bdd4: 4b6c ldr r3, [pc, #432] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27681. 800bdd6: 681b ldr r3, [r3, #0]
  27682. 800bdd8: 08db lsrs r3, r3, #3
  27683. 800bdda: f003 0303 and.w r3, r3, #3
  27684. 800bdde: 4a6b ldr r2, [pc, #428] @ (800bf8c <HAL_RCC_GetSysClockFreq+0x2d8>)
  27685. 800bde0: fa22 f303 lsr.w r3, r2, r3
  27686. 800bde4: 607b str r3, [r7, #4]
  27687. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27688. 800bde6: 687b ldr r3, [r7, #4]
  27689. 800bde8: ee07 3a90 vmov s15, r3
  27690. 800bdec: eef8 6a67 vcvt.f32.u32 s13, s15
  27691. 800bdf0: 693b ldr r3, [r7, #16]
  27692. 800bdf2: ee07 3a90 vmov s15, r3
  27693. 800bdf6: eef8 7a67 vcvt.f32.u32 s15, s15
  27694. 800bdfa: ee86 7aa7 vdiv.f32 s14, s13, s15
  27695. 800bdfe: 4b62 ldr r3, [pc, #392] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27696. 800be00: 6b1b ldr r3, [r3, #48] @ 0x30
  27697. 800be02: f3c3 0308 ubfx r3, r3, #0, #9
  27698. 800be06: ee07 3a90 vmov s15, r3
  27699. 800be0a: eef8 6a67 vcvt.f32.u32 s13, s15
  27700. 800be0e: ed97 6a02 vldr s12, [r7, #8]
  27701. 800be12: eddf 5a61 vldr s11, [pc, #388] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27702. 800be16: eec6 7a25 vdiv.f32 s15, s12, s11
  27703. 800be1a: ee76 7aa7 vadd.f32 s15, s13, s15
  27704. 800be1e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27705. 800be22: ee77 7aa6 vadd.f32 s15, s15, s13
  27706. 800be26: ee67 7a27 vmul.f32 s15, s14, s15
  27707. 800be2a: edc7 7a07 vstr s15, [r7, #28]
  27708. }
  27709. else
  27710. {
  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. }
  27713. break;
  27714. 800be2e: e087 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27715. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27716. 800be30: 693b ldr r3, [r7, #16]
  27717. 800be32: ee07 3a90 vmov s15, r3
  27718. 800be36: eef8 7a67 vcvt.f32.u32 s15, s15
  27719. 800be3a: eddf 6a58 vldr s13, [pc, #352] @ 800bf9c <HAL_RCC_GetSysClockFreq+0x2e8>
  27720. 800be3e: ee86 7aa7 vdiv.f32 s14, s13, s15
  27721. 800be42: 4b51 ldr r3, [pc, #324] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27722. 800be44: 6b1b ldr r3, [r3, #48] @ 0x30
  27723. 800be46: f3c3 0308 ubfx r3, r3, #0, #9
  27724. 800be4a: ee07 3a90 vmov s15, r3
  27725. 800be4e: eef8 6a67 vcvt.f32.u32 s13, s15
  27726. 800be52: ed97 6a02 vldr s12, [r7, #8]
  27727. 800be56: eddf 5a50 vldr s11, [pc, #320] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27728. 800be5a: eec6 7a25 vdiv.f32 s15, s12, s11
  27729. 800be5e: ee76 7aa7 vadd.f32 s15, s13, s15
  27730. 800be62: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27731. 800be66: ee77 7aa6 vadd.f32 s15, s15, s13
  27732. 800be6a: ee67 7a27 vmul.f32 s15, s14, s15
  27733. 800be6e: edc7 7a07 vstr s15, [r7, #28]
  27734. break;
  27735. 800be72: e065 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27736. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  27737. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27738. 800be74: 693b ldr r3, [r7, #16]
  27739. 800be76: ee07 3a90 vmov s15, r3
  27740. 800be7a: eef8 7a67 vcvt.f32.u32 s15, s15
  27741. 800be7e: eddf 6a48 vldr s13, [pc, #288] @ 800bfa0 <HAL_RCC_GetSysClockFreq+0x2ec>
  27742. 800be82: ee86 7aa7 vdiv.f32 s14, s13, s15
  27743. 800be86: 4b40 ldr r3, [pc, #256] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27744. 800be88: 6b1b ldr r3, [r3, #48] @ 0x30
  27745. 800be8a: f3c3 0308 ubfx r3, r3, #0, #9
  27746. 800be8e: ee07 3a90 vmov s15, r3
  27747. 800be92: eef8 6a67 vcvt.f32.u32 s13, s15
  27748. 800be96: ed97 6a02 vldr s12, [r7, #8]
  27749. 800be9a: eddf 5a3f vldr s11, [pc, #252] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27750. 800be9e: eec6 7a25 vdiv.f32 s15, s12, s11
  27751. 800bea2: ee76 7aa7 vadd.f32 s15, s13, s15
  27752. 800bea6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27753. 800beaa: ee77 7aa6 vadd.f32 s15, s15, s13
  27754. 800beae: ee67 7a27 vmul.f32 s15, s14, s15
  27755. 800beb2: edc7 7a07 vstr s15, [r7, #28]
  27756. break;
  27757. 800beb6: e043 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27758. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  27759. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27760. 800beb8: 693b ldr r3, [r7, #16]
  27761. 800beba: ee07 3a90 vmov s15, r3
  27762. 800bebe: eef8 7a67 vcvt.f32.u32 s15, s15
  27763. 800bec2: eddf 6a38 vldr s13, [pc, #224] @ 800bfa4 <HAL_RCC_GetSysClockFreq+0x2f0>
  27764. 800bec6: ee86 7aa7 vdiv.f32 s14, s13, s15
  27765. 800beca: 4b2f ldr r3, [pc, #188] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27766. 800becc: 6b1b ldr r3, [r3, #48] @ 0x30
  27767. 800bece: f3c3 0308 ubfx r3, r3, #0, #9
  27768. 800bed2: ee07 3a90 vmov s15, r3
  27769. 800bed6: eef8 6a67 vcvt.f32.u32 s13, s15
  27770. 800beda: ed97 6a02 vldr s12, [r7, #8]
  27771. 800bede: eddf 5a2e vldr s11, [pc, #184] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27772. 800bee2: eec6 7a25 vdiv.f32 s15, s12, s11
  27773. 800bee6: ee76 7aa7 vadd.f32 s15, s13, s15
  27774. 800beea: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27775. 800beee: ee77 7aa6 vadd.f32 s15, s15, s13
  27776. 800bef2: ee67 7a27 vmul.f32 s15, s14, s15
  27777. 800bef6: edc7 7a07 vstr s15, [r7, #28]
  27778. break;
  27779. 800befa: e021 b.n 800bf40 <HAL_RCC_GetSysClockFreq+0x28c>
  27780. default:
  27781. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  27782. 800befc: 693b ldr r3, [r7, #16]
  27783. 800befe: ee07 3a90 vmov s15, r3
  27784. 800bf02: eef8 7a67 vcvt.f32.u32 s15, s15
  27785. 800bf06: eddf 6a26 vldr s13, [pc, #152] @ 800bfa0 <HAL_RCC_GetSysClockFreq+0x2ec>
  27786. 800bf0a: ee86 7aa7 vdiv.f32 s14, s13, s15
  27787. 800bf0e: 4b1e ldr r3, [pc, #120] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27788. 800bf10: 6b1b ldr r3, [r3, #48] @ 0x30
  27789. 800bf12: f3c3 0308 ubfx r3, r3, #0, #9
  27790. 800bf16: ee07 3a90 vmov s15, r3
  27791. 800bf1a: eef8 6a67 vcvt.f32.u32 s13, s15
  27792. 800bf1e: ed97 6a02 vldr s12, [r7, #8]
  27793. 800bf22: eddf 5a1d vldr s11, [pc, #116] @ 800bf98 <HAL_RCC_GetSysClockFreq+0x2e4>
  27794. 800bf26: eec6 7a25 vdiv.f32 s15, s12, s11
  27795. 800bf2a: ee76 7aa7 vadd.f32 s15, s13, s15
  27796. 800bf2e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  27797. 800bf32: ee77 7aa6 vadd.f32 s15, s15, s13
  27798. 800bf36: ee67 7a27 vmul.f32 s15, s14, s15
  27799. 800bf3a: edc7 7a07 vstr s15, [r7, #28]
  27800. break;
  27801. 800bf3e: bf00 nop
  27802. }
  27803. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  27804. 800bf40: 4b11 ldr r3, [pc, #68] @ (800bf88 <HAL_RCC_GetSysClockFreq+0x2d4>)
  27805. 800bf42: 6b1b ldr r3, [r3, #48] @ 0x30
  27806. 800bf44: 0a5b lsrs r3, r3, #9
  27807. 800bf46: f003 037f and.w r3, r3, #127 @ 0x7f
  27808. 800bf4a: 3301 adds r3, #1
  27809. 800bf4c: 603b str r3, [r7, #0]
  27810. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  27811. 800bf4e: 683b ldr r3, [r7, #0]
  27812. 800bf50: ee07 3a90 vmov s15, r3
  27813. 800bf54: eeb8 7a67 vcvt.f32.u32 s14, s15
  27814. 800bf58: edd7 6a07 vldr s13, [r7, #28]
  27815. 800bf5c: eec6 7a87 vdiv.f32 s15, s13, s14
  27816. 800bf60: eefc 7ae7 vcvt.u32.f32 s15, s15
  27817. 800bf64: ee17 3a90 vmov r3, s15
  27818. 800bf68: 61bb str r3, [r7, #24]
  27819. }
  27820. else
  27821. {
  27822. sysclockfreq = 0U;
  27823. }
  27824. break;
  27825. 800bf6a: e005 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27826. sysclockfreq = 0U;
  27827. 800bf6c: 2300 movs r3, #0
  27828. 800bf6e: 61bb str r3, [r7, #24]
  27829. break;
  27830. 800bf70: e002 b.n 800bf78 <HAL_RCC_GetSysClockFreq+0x2c4>
  27831. default:
  27832. sysclockfreq = CSI_VALUE;
  27833. 800bf72: 4b07 ldr r3, [pc, #28] @ (800bf90 <HAL_RCC_GetSysClockFreq+0x2dc>)
  27834. 800bf74: 61bb str r3, [r7, #24]
  27835. break;
  27836. 800bf76: bf00 nop
  27837. }
  27838. return sysclockfreq;
  27839. 800bf78: 69bb ldr r3, [r7, #24]
  27840. }
  27841. 800bf7a: 4618 mov r0, r3
  27842. 800bf7c: 3724 adds r7, #36 @ 0x24
  27843. 800bf7e: 46bd mov sp, r7
  27844. 800bf80: f85d 7b04 ldr.w r7, [sp], #4
  27845. 800bf84: 4770 bx lr
  27846. 800bf86: bf00 nop
  27847. 800bf88: 58024400 .word 0x58024400
  27848. 800bf8c: 03d09000 .word 0x03d09000
  27849. 800bf90: 003d0900 .word 0x003d0900
  27850. 800bf94: 017d7840 .word 0x017d7840
  27851. 800bf98: 46000000 .word 0x46000000
  27852. 800bf9c: 4c742400 .word 0x4c742400
  27853. 800bfa0: 4a742400 .word 0x4a742400
  27854. 800bfa4: 4bbebc20 .word 0x4bbebc20
  27855. 0800bfa8 <HAL_RCC_GetHCLKFreq>:
  27856. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  27857. * and updated within this function
  27858. * @retval HCLK frequency
  27859. */
  27860. uint32_t HAL_RCC_GetHCLKFreq(void)
  27861. {
  27862. 800bfa8: b580 push {r7, lr}
  27863. 800bfaa: b082 sub sp, #8
  27864. 800bfac: af00 add r7, sp, #0
  27865. uint32_t common_system_clock;
  27866. #if defined(RCC_D1CFGR_D1CPRE)
  27867. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  27868. 800bfae: f7ff fe81 bl 800bcb4 <HAL_RCC_GetSysClockFreq>
  27869. 800bfb2: 4602 mov r2, r0
  27870. 800bfb4: 4b10 ldr r3, [pc, #64] @ (800bff8 <HAL_RCC_GetHCLKFreq+0x50>)
  27871. 800bfb6: 699b ldr r3, [r3, #24]
  27872. 800bfb8: 0a1b lsrs r3, r3, #8
  27873. 800bfba: f003 030f and.w r3, r3, #15
  27874. 800bfbe: 490f ldr r1, [pc, #60] @ (800bffc <HAL_RCC_GetHCLKFreq+0x54>)
  27875. 800bfc0: 5ccb ldrb r3, [r1, r3]
  27876. 800bfc2: f003 031f and.w r3, r3, #31
  27877. 800bfc6: fa22 f303 lsr.w r3, r2, r3
  27878. 800bfca: 607b str r3, [r7, #4]
  27879. #else
  27880. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  27881. #endif
  27882. #if defined(RCC_D1CFGR_HPRE)
  27883. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  27884. 800bfcc: 4b0a ldr r3, [pc, #40] @ (800bff8 <HAL_RCC_GetHCLKFreq+0x50>)
  27885. 800bfce: 699b ldr r3, [r3, #24]
  27886. 800bfd0: f003 030f and.w r3, r3, #15
  27887. 800bfd4: 4a09 ldr r2, [pc, #36] @ (800bffc <HAL_RCC_GetHCLKFreq+0x54>)
  27888. 800bfd6: 5cd3 ldrb r3, [r2, r3]
  27889. 800bfd8: f003 031f and.w r3, r3, #31
  27890. 800bfdc: 687a ldr r2, [r7, #4]
  27891. 800bfde: fa22 f303 lsr.w r3, r2, r3
  27892. 800bfe2: 4a07 ldr r2, [pc, #28] @ (800c000 <HAL_RCC_GetHCLKFreq+0x58>)
  27893. 800bfe4: 6013 str r3, [r2, #0]
  27894. #endif
  27895. #if defined(DUAL_CORE) && defined(CORE_CM4)
  27896. SystemCoreClock = SystemD2Clock;
  27897. #else
  27898. SystemCoreClock = common_system_clock;
  27899. 800bfe6: 4a07 ldr r2, [pc, #28] @ (800c004 <HAL_RCC_GetHCLKFreq+0x5c>)
  27900. 800bfe8: 687b ldr r3, [r7, #4]
  27901. 800bfea: 6013 str r3, [r2, #0]
  27902. #endif /* DUAL_CORE && CORE_CM4 */
  27903. return SystemD2Clock;
  27904. 800bfec: 4b04 ldr r3, [pc, #16] @ (800c000 <HAL_RCC_GetHCLKFreq+0x58>)
  27905. 800bfee: 681b ldr r3, [r3, #0]
  27906. }
  27907. 800bff0: 4618 mov r0, r3
  27908. 800bff2: 3708 adds r7, #8
  27909. 800bff4: 46bd mov sp, r7
  27910. 800bff6: bd80 pop {r7, pc}
  27911. 800bff8: 58024400 .word 0x58024400
  27912. 800bffc: 08018c18 .word 0x08018c18
  27913. 800c000: 24000038 .word 0x24000038
  27914. 800c004: 24000034 .word 0x24000034
  27915. 0800c008 <HAL_RCC_GetPCLK1Freq>:
  27916. * @note Each time PCLK1 changes, this function must be called to update the
  27917. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  27918. * @retval PCLK1 frequency
  27919. */
  27920. uint32_t HAL_RCC_GetPCLK1Freq(void)
  27921. {
  27922. 800c008: b580 push {r7, lr}
  27923. 800c00a: af00 add r7, sp, #0
  27924. #if defined (RCC_D2CFGR_D2PPRE1)
  27925. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27926. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  27927. 800c00c: f7ff ffcc bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  27928. 800c010: 4602 mov r2, r0
  27929. 800c012: 4b06 ldr r3, [pc, #24] @ (800c02c <HAL_RCC_GetPCLK1Freq+0x24>)
  27930. 800c014: 69db ldr r3, [r3, #28]
  27931. 800c016: 091b lsrs r3, r3, #4
  27932. 800c018: f003 0307 and.w r3, r3, #7
  27933. 800c01c: 4904 ldr r1, [pc, #16] @ (800c030 <HAL_RCC_GetPCLK1Freq+0x28>)
  27934. 800c01e: 5ccb ldrb r3, [r1, r3]
  27935. 800c020: f003 031f and.w r3, r3, #31
  27936. 800c024: fa22 f303 lsr.w r3, r2, r3
  27937. #else
  27938. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27939. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  27940. #endif
  27941. }
  27942. 800c028: 4618 mov r0, r3
  27943. 800c02a: bd80 pop {r7, pc}
  27944. 800c02c: 58024400 .word 0x58024400
  27945. 800c030: 08018c18 .word 0x08018c18
  27946. 0800c034 <HAL_RCC_GetPCLK2Freq>:
  27947. * @note Each time PCLK2 changes, this function must be called to update the
  27948. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  27949. * @retval PCLK1 frequency
  27950. */
  27951. uint32_t HAL_RCC_GetPCLK2Freq(void)
  27952. {
  27953. 800c034: b580 push {r7, lr}
  27954. 800c036: af00 add r7, sp, #0
  27955. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  27956. #if defined(RCC_D2CFGR_D2PPRE2)
  27957. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  27958. 800c038: f7ff ffb6 bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  27959. 800c03c: 4602 mov r2, r0
  27960. 800c03e: 4b06 ldr r3, [pc, #24] @ (800c058 <HAL_RCC_GetPCLK2Freq+0x24>)
  27961. 800c040: 69db ldr r3, [r3, #28]
  27962. 800c042: 0a1b lsrs r3, r3, #8
  27963. 800c044: f003 0307 and.w r3, r3, #7
  27964. 800c048: 4904 ldr r1, [pc, #16] @ (800c05c <HAL_RCC_GetPCLK2Freq+0x28>)
  27965. 800c04a: 5ccb ldrb r3, [r1, r3]
  27966. 800c04c: f003 031f and.w r3, r3, #31
  27967. 800c050: fa22 f303 lsr.w r3, r2, r3
  27968. #else
  27969. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  27970. #endif
  27971. }
  27972. 800c054: 4618 mov r0, r3
  27973. 800c056: bd80 pop {r7, pc}
  27974. 800c058: 58024400 .word 0x58024400
  27975. 800c05c: 08018c18 .word 0x08018c18
  27976. 0800c060 <HAL_RCC_GetClockConfig>:
  27977. * will be configured.
  27978. * @param pFLatency: Pointer on the Flash Latency.
  27979. * @retval None
  27980. */
  27981. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  27982. {
  27983. 800c060: b480 push {r7}
  27984. 800c062: b083 sub sp, #12
  27985. 800c064: af00 add r7, sp, #0
  27986. 800c066: 6078 str r0, [r7, #4]
  27987. 800c068: 6039 str r1, [r7, #0]
  27988. /* Set all possible values for the Clock type parameter --------------------*/
  27989. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  27990. 800c06a: 687b ldr r3, [r7, #4]
  27991. 800c06c: 223f movs r2, #63 @ 0x3f
  27992. 800c06e: 601a str r2, [r3, #0]
  27993. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  27994. /* Get the SYSCLK configuration --------------------------------------------*/
  27995. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  27996. 800c070: 4b1a ldr r3, [pc, #104] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  27997. 800c072: 691b ldr r3, [r3, #16]
  27998. 800c074: f003 0207 and.w r2, r3, #7
  27999. 800c078: 687b ldr r3, [r7, #4]
  28000. 800c07a: 605a str r2, [r3, #4]
  28001. #if defined(RCC_D1CFGR_D1CPRE)
  28002. /* Get the SYSCLK configuration ----------------------------------------------*/
  28003. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  28004. 800c07c: 4b17 ldr r3, [pc, #92] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28005. 800c07e: 699b ldr r3, [r3, #24]
  28006. 800c080: f403 6270 and.w r2, r3, #3840 @ 0xf00
  28007. 800c084: 687b ldr r3, [r7, #4]
  28008. 800c086: 609a str r2, [r3, #8]
  28009. /* Get the D1HCLK configuration ----------------------------------------------*/
  28010. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  28011. 800c088: 4b14 ldr r3, [pc, #80] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28012. 800c08a: 699b ldr r3, [r3, #24]
  28013. 800c08c: f003 020f and.w r2, r3, #15
  28014. 800c090: 687b ldr r3, [r7, #4]
  28015. 800c092: 60da str r2, [r3, #12]
  28016. /* Get the APB3 configuration ----------------------------------------------*/
  28017. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  28018. 800c094: 4b11 ldr r3, [pc, #68] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28019. 800c096: 699b ldr r3, [r3, #24]
  28020. 800c098: f003 0270 and.w r2, r3, #112 @ 0x70
  28021. 800c09c: 687b ldr r3, [r7, #4]
  28022. 800c09e: 611a str r2, [r3, #16]
  28023. /* Get the APB1 configuration ----------------------------------------------*/
  28024. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  28025. 800c0a0: 4b0e ldr r3, [pc, #56] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28026. 800c0a2: 69db ldr r3, [r3, #28]
  28027. 800c0a4: f003 0270 and.w r2, r3, #112 @ 0x70
  28028. 800c0a8: 687b ldr r3, [r7, #4]
  28029. 800c0aa: 615a str r2, [r3, #20]
  28030. /* Get the APB2 configuration ----------------------------------------------*/
  28031. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  28032. 800c0ac: 4b0b ldr r3, [pc, #44] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28033. 800c0ae: 69db ldr r3, [r3, #28]
  28034. 800c0b0: f403 62e0 and.w r2, r3, #1792 @ 0x700
  28035. 800c0b4: 687b ldr r3, [r7, #4]
  28036. 800c0b6: 619a str r2, [r3, #24]
  28037. /* Get the APB4 configuration ----------------------------------------------*/
  28038. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  28039. 800c0b8: 4b08 ldr r3, [pc, #32] @ (800c0dc <HAL_RCC_GetClockConfig+0x7c>)
  28040. 800c0ba: 6a1b ldr r3, [r3, #32]
  28041. 800c0bc: f003 0270 and.w r2, r3, #112 @ 0x70
  28042. 800c0c0: 687b ldr r3, [r7, #4]
  28043. 800c0c2: 61da str r2, [r3, #28]
  28044. /* Get the APB4 configuration ----------------------------------------------*/
  28045. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  28046. #endif
  28047. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  28048. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  28049. 800c0c4: 4b06 ldr r3, [pc, #24] @ (800c0e0 <HAL_RCC_GetClockConfig+0x80>)
  28050. 800c0c6: 681b ldr r3, [r3, #0]
  28051. 800c0c8: f003 020f and.w r2, r3, #15
  28052. 800c0cc: 683b ldr r3, [r7, #0]
  28053. 800c0ce: 601a str r2, [r3, #0]
  28054. }
  28055. 800c0d0: bf00 nop
  28056. 800c0d2: 370c adds r7, #12
  28057. 800c0d4: 46bd mov sp, r7
  28058. 800c0d6: f85d 7b04 ldr.w r7, [sp], #4
  28059. 800c0da: 4770 bx lr
  28060. 800c0dc: 58024400 .word 0x58024400
  28061. 800c0e0: 52002000 .word 0x52002000
  28062. 0800c0e4 <HAL_RCCEx_PeriphCLKConfig>:
  28063. * (*) : Available on some STM32H7 lines only.
  28064. *
  28065. * @retval HAL status
  28066. */
  28067. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  28068. {
  28069. 800c0e4: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  28070. 800c0e8: b0c8 sub sp, #288 @ 0x120
  28071. 800c0ea: af00 add r7, sp, #0
  28072. 800c0ec: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  28073. uint32_t tmpreg;
  28074. uint32_t tickstart;
  28075. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  28076. 800c0f0: 2300 movs r3, #0
  28077. 800c0f2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28078. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  28079. 800c0f6: 2300 movs r3, #0
  28080. 800c0f8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28081. /*---------------------------- SPDIFRX configuration -------------------------------*/
  28082. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  28083. 800c0fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28084. 800c100: e9d3 2300 ldrd r2, r3, [r3]
  28085. 800c104: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  28086. 800c108: 2500 movs r5, #0
  28087. 800c10a: ea54 0305 orrs.w r3, r4, r5
  28088. 800c10e: d049 beq.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  28089. {
  28090. switch (PeriphClkInit->SpdifrxClockSelection)
  28091. 800c110: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28092. 800c114: 6e9b ldr r3, [r3, #104] @ 0x68
  28093. 800c116: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  28094. 800c11a: d02f beq.n 800c17c <HAL_RCCEx_PeriphCLKConfig+0x98>
  28095. 800c11c: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  28096. 800c120: d828 bhi.n 800c174 <HAL_RCCEx_PeriphCLKConfig+0x90>
  28097. 800c122: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28098. 800c126: d01a beq.n 800c15e <HAL_RCCEx_PeriphCLKConfig+0x7a>
  28099. 800c128: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28100. 800c12c: d822 bhi.n 800c174 <HAL_RCCEx_PeriphCLKConfig+0x90>
  28101. 800c12e: 2b00 cmp r3, #0
  28102. 800c130: d003 beq.n 800c13a <HAL_RCCEx_PeriphCLKConfig+0x56>
  28103. 800c132: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  28104. 800c136: d007 beq.n 800c148 <HAL_RCCEx_PeriphCLKConfig+0x64>
  28105. 800c138: e01c b.n 800c174 <HAL_RCCEx_PeriphCLKConfig+0x90>
  28106. {
  28107. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  28108. /* Enable PLL1Q Clock output generated form System PLL . */
  28109. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28110. 800c13a: 4bb8 ldr r3, [pc, #736] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28111. 800c13c: 6adb ldr r3, [r3, #44] @ 0x2c
  28112. 800c13e: 4ab7 ldr r2, [pc, #732] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28113. 800c140: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28114. 800c144: 62d3 str r3, [r2, #44] @ 0x2c
  28115. /* SPDIFRX clock source configuration done later after clock selection check */
  28116. break;
  28117. 800c146: e01a b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28118. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  28119. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28120. 800c148: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28121. 800c14c: 3308 adds r3, #8
  28122. 800c14e: 2102 movs r1, #2
  28123. 800c150: 4618 mov r0, r3
  28124. 800c152: f002 fb45 bl 800e7e0 <RCCEx_PLL2_Config>
  28125. 800c156: 4603 mov r3, r0
  28126. 800c158: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28127. /* SPDIFRX clock source configuration done later after clock selection check */
  28128. break;
  28129. 800c15c: e00f b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28130. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  28131. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  28132. 800c15e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28133. 800c162: 3328 adds r3, #40 @ 0x28
  28134. 800c164: 2102 movs r1, #2
  28135. 800c166: 4618 mov r0, r3
  28136. 800c168: f002 fbec bl 800e944 <RCCEx_PLL3_Config>
  28137. 800c16c: 4603 mov r3, r0
  28138. 800c16e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28139. /* SPDIFRX clock source configuration done later after clock selection check */
  28140. break;
  28141. 800c172: e004 b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28142. /* Internal OSC clock is used as source of SPDIFRX clock*/
  28143. /* SPDIFRX clock source configuration done later after clock selection check */
  28144. break;
  28145. default:
  28146. ret = HAL_ERROR;
  28147. 800c174: 2301 movs r3, #1
  28148. 800c176: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28149. break;
  28150. 800c17a: e000 b.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28151. break;
  28152. 800c17c: bf00 nop
  28153. }
  28154. if (ret == HAL_OK)
  28155. 800c17e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28156. 800c182: 2b00 cmp r3, #0
  28157. 800c184: d10a bne.n 800c19c <HAL_RCCEx_PeriphCLKConfig+0xb8>
  28158. {
  28159. /* Set the source of SPDIFRX clock*/
  28160. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  28161. 800c186: 4ba5 ldr r3, [pc, #660] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28162. 800c188: 6d1b ldr r3, [r3, #80] @ 0x50
  28163. 800c18a: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  28164. 800c18e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28165. 800c192: 6e9b ldr r3, [r3, #104] @ 0x68
  28166. 800c194: 4aa1 ldr r2, [pc, #644] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28167. 800c196: 430b orrs r3, r1
  28168. 800c198: 6513 str r3, [r2, #80] @ 0x50
  28169. 800c19a: e003 b.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  28170. }
  28171. else
  28172. {
  28173. /* set overall return value */
  28174. status = ret;
  28175. 800c19c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28176. 800c1a0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28177. }
  28178. }
  28179. /*---------------------------- SAI1 configuration -------------------------------*/
  28180. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  28181. 800c1a4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28182. 800c1a8: e9d3 2300 ldrd r2, r3, [r3]
  28183. 800c1ac: f402 7880 and.w r8, r2, #256 @ 0x100
  28184. 800c1b0: f04f 0900 mov.w r9, #0
  28185. 800c1b4: ea58 0309 orrs.w r3, r8, r9
  28186. 800c1b8: d047 beq.n 800c24a <HAL_RCCEx_PeriphCLKConfig+0x166>
  28187. {
  28188. switch (PeriphClkInit->Sai1ClockSelection)
  28189. 800c1ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28190. 800c1be: 6d9b ldr r3, [r3, #88] @ 0x58
  28191. 800c1c0: 2b04 cmp r3, #4
  28192. 800c1c2: d82a bhi.n 800c21a <HAL_RCCEx_PeriphCLKConfig+0x136>
  28193. 800c1c4: a201 add r2, pc, #4 @ (adr r2, 800c1cc <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  28194. 800c1c6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28195. 800c1ca: bf00 nop
  28196. 800c1cc: 0800c1e1 .word 0x0800c1e1
  28197. 800c1d0: 0800c1ef .word 0x0800c1ef
  28198. 800c1d4: 0800c205 .word 0x0800c205
  28199. 800c1d8: 0800c223 .word 0x0800c223
  28200. 800c1dc: 0800c223 .word 0x0800c223
  28201. {
  28202. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  28203. /* Enable SAI Clock output generated form System PLL . */
  28204. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28205. 800c1e0: 4b8e ldr r3, [pc, #568] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28206. 800c1e2: 6adb ldr r3, [r3, #44] @ 0x2c
  28207. 800c1e4: 4a8d ldr r2, [pc, #564] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28208. 800c1e6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28209. 800c1ea: 62d3 str r3, [r2, #44] @ 0x2c
  28210. /* SAI1 clock source configuration done later after clock selection check */
  28211. break;
  28212. 800c1ec: e01a b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28213. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  28214. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28215. 800c1ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28216. 800c1f2: 3308 adds r3, #8
  28217. 800c1f4: 2100 movs r1, #0
  28218. 800c1f6: 4618 mov r0, r3
  28219. 800c1f8: f002 faf2 bl 800e7e0 <RCCEx_PLL2_Config>
  28220. 800c1fc: 4603 mov r3, r0
  28221. 800c1fe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28222. /* SAI1 clock source configuration done later after clock selection check */
  28223. break;
  28224. 800c202: e00f b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28225. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  28226. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28227. 800c204: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28228. 800c208: 3328 adds r3, #40 @ 0x28
  28229. 800c20a: 2100 movs r1, #0
  28230. 800c20c: 4618 mov r0, r3
  28231. 800c20e: f002 fb99 bl 800e944 <RCCEx_PLL3_Config>
  28232. 800c212: 4603 mov r3, r0
  28233. 800c214: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28234. /* SAI1 clock source configuration done later after clock selection check */
  28235. break;
  28236. 800c218: e004 b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28237. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  28238. /* SAI1 clock source configuration done later after clock selection check */
  28239. break;
  28240. default:
  28241. ret = HAL_ERROR;
  28242. 800c21a: 2301 movs r3, #1
  28243. 800c21c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28244. break;
  28245. 800c220: e000 b.n 800c224 <HAL_RCCEx_PeriphCLKConfig+0x140>
  28246. break;
  28247. 800c222: bf00 nop
  28248. }
  28249. if (ret == HAL_OK)
  28250. 800c224: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28251. 800c228: 2b00 cmp r3, #0
  28252. 800c22a: d10a bne.n 800c242 <HAL_RCCEx_PeriphCLKConfig+0x15e>
  28253. {
  28254. /* Set the source of SAI1 clock*/
  28255. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  28256. 800c22c: 4b7b ldr r3, [pc, #492] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28257. 800c22e: 6d1b ldr r3, [r3, #80] @ 0x50
  28258. 800c230: f023 0107 bic.w r1, r3, #7
  28259. 800c234: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28260. 800c238: 6d9b ldr r3, [r3, #88] @ 0x58
  28261. 800c23a: 4a78 ldr r2, [pc, #480] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28262. 800c23c: 430b orrs r3, r1
  28263. 800c23e: 6513 str r3, [r2, #80] @ 0x50
  28264. 800c240: e003 b.n 800c24a <HAL_RCCEx_PeriphCLKConfig+0x166>
  28265. }
  28266. else
  28267. {
  28268. /* set overall return value */
  28269. status = ret;
  28270. 800c242: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28271. 800c246: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28272. }
  28273. }
  28274. #if defined(SAI3)
  28275. /*---------------------------- SAI2/3 configuration -------------------------------*/
  28276. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  28277. 800c24a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28278. 800c24e: e9d3 2300 ldrd r2, r3, [r3]
  28279. 800c252: f402 7a00 and.w sl, r2, #512 @ 0x200
  28280. 800c256: f04f 0b00 mov.w fp, #0
  28281. 800c25a: ea5a 030b orrs.w r3, sl, fp
  28282. 800c25e: d04c beq.n 800c2fa <HAL_RCCEx_PeriphCLKConfig+0x216>
  28283. {
  28284. switch (PeriphClkInit->Sai23ClockSelection)
  28285. 800c260: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28286. 800c264: 6ddb ldr r3, [r3, #92] @ 0x5c
  28287. 800c266: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28288. 800c26a: d030 beq.n 800c2ce <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  28289. 800c26c: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28290. 800c270: d829 bhi.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28291. 800c272: 2bc0 cmp r3, #192 @ 0xc0
  28292. 800c274: d02d beq.n 800c2d2 <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  28293. 800c276: 2bc0 cmp r3, #192 @ 0xc0
  28294. 800c278: d825 bhi.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28295. 800c27a: 2b80 cmp r3, #128 @ 0x80
  28296. 800c27c: d018 beq.n 800c2b0 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  28297. 800c27e: 2b80 cmp r3, #128 @ 0x80
  28298. 800c280: d821 bhi.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28299. 800c282: 2b00 cmp r3, #0
  28300. 800c284: d002 beq.n 800c28c <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  28301. 800c286: 2b40 cmp r3, #64 @ 0x40
  28302. 800c288: d007 beq.n 800c29a <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  28303. 800c28a: e01c b.n 800c2c6 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28304. {
  28305. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  28306. /* Enable SAI Clock output generated form System PLL . */
  28307. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28308. 800c28c: 4b63 ldr r3, [pc, #396] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28309. 800c28e: 6adb ldr r3, [r3, #44] @ 0x2c
  28310. 800c290: 4a62 ldr r2, [pc, #392] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28311. 800c292: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28312. 800c296: 62d3 str r3, [r2, #44] @ 0x2c
  28313. /* SAI2/3 clock source configuration done later after clock selection check */
  28314. break;
  28315. 800c298: e01c b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28316. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  28317. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28318. 800c29a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28319. 800c29e: 3308 adds r3, #8
  28320. 800c2a0: 2100 movs r1, #0
  28321. 800c2a2: 4618 mov r0, r3
  28322. 800c2a4: f002 fa9c bl 800e7e0 <RCCEx_PLL2_Config>
  28323. 800c2a8: 4603 mov r3, r0
  28324. 800c2aa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28325. /* SAI2/3 clock source configuration done later after clock selection check */
  28326. break;
  28327. 800c2ae: e011 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28328. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  28329. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28330. 800c2b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28331. 800c2b4: 3328 adds r3, #40 @ 0x28
  28332. 800c2b6: 2100 movs r1, #0
  28333. 800c2b8: 4618 mov r0, r3
  28334. 800c2ba: f002 fb43 bl 800e944 <RCCEx_PLL3_Config>
  28335. 800c2be: 4603 mov r3, r0
  28336. 800c2c0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28337. /* SAI2/3 clock source configuration done later after clock selection check */
  28338. break;
  28339. 800c2c4: e006 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28340. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  28341. /* SAI2/3 clock source configuration done later after clock selection check */
  28342. break;
  28343. default:
  28344. ret = HAL_ERROR;
  28345. 800c2c6: 2301 movs r3, #1
  28346. 800c2c8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28347. break;
  28348. 800c2cc: e002 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28349. break;
  28350. 800c2ce: bf00 nop
  28351. 800c2d0: e000 b.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28352. break;
  28353. 800c2d2: bf00 nop
  28354. }
  28355. if (ret == HAL_OK)
  28356. 800c2d4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28357. 800c2d8: 2b00 cmp r3, #0
  28358. 800c2da: d10a bne.n 800c2f2 <HAL_RCCEx_PeriphCLKConfig+0x20e>
  28359. {
  28360. /* Set the source of SAI2/3 clock*/
  28361. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  28362. 800c2dc: 4b4f ldr r3, [pc, #316] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28363. 800c2de: 6d1b ldr r3, [r3, #80] @ 0x50
  28364. 800c2e0: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  28365. 800c2e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28366. 800c2e8: 6ddb ldr r3, [r3, #92] @ 0x5c
  28367. 800c2ea: 4a4c ldr r2, [pc, #304] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28368. 800c2ec: 430b orrs r3, r1
  28369. 800c2ee: 6513 str r3, [r2, #80] @ 0x50
  28370. 800c2f0: e003 b.n 800c2fa <HAL_RCCEx_PeriphCLKConfig+0x216>
  28371. }
  28372. else
  28373. {
  28374. /* set overall return value */
  28375. status = ret;
  28376. 800c2f2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28377. 800c2f6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28378. }
  28379. #endif /*SAI2B*/
  28380. #if defined(SAI4)
  28381. /*---------------------------- SAI4A configuration -------------------------------*/
  28382. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  28383. 800c2fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28384. 800c2fe: e9d3 2300 ldrd r2, r3, [r3]
  28385. 800c302: f402 6380 and.w r3, r2, #1024 @ 0x400
  28386. 800c306: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  28387. 800c30a: 2300 movs r3, #0
  28388. 800c30c: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  28389. 800c310: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  28390. 800c314: 460b mov r3, r1
  28391. 800c316: 4313 orrs r3, r2
  28392. 800c318: d053 beq.n 800c3c2 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  28393. {
  28394. switch (PeriphClkInit->Sai4AClockSelection)
  28395. 800c31a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28396. 800c31e: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  28397. 800c322: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  28398. 800c326: d035 beq.n 800c394 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  28399. 800c328: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  28400. 800c32c: d82e bhi.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28401. 800c32e: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  28402. 800c332: d031 beq.n 800c398 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  28403. 800c334: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  28404. 800c338: d828 bhi.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28405. 800c33a: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  28406. 800c33e: d01a beq.n 800c376 <HAL_RCCEx_PeriphCLKConfig+0x292>
  28407. 800c340: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  28408. 800c344: d822 bhi.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28409. 800c346: 2b00 cmp r3, #0
  28410. 800c348: d003 beq.n 800c352 <HAL_RCCEx_PeriphCLKConfig+0x26e>
  28411. 800c34a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28412. 800c34e: d007 beq.n 800c360 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  28413. 800c350: e01c b.n 800c38c <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  28414. {
  28415. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  28416. /* Enable SAI Clock output generated form System PLL . */
  28417. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28418. 800c352: 4b32 ldr r3, [pc, #200] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28419. 800c354: 6adb ldr r3, [r3, #44] @ 0x2c
  28420. 800c356: 4a31 ldr r2, [pc, #196] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28421. 800c358: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28422. 800c35c: 62d3 str r3, [r2, #44] @ 0x2c
  28423. /* SAI1 clock source configuration done later after clock selection check */
  28424. break;
  28425. 800c35e: e01c b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28426. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  28427. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28428. 800c360: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28429. 800c364: 3308 adds r3, #8
  28430. 800c366: 2100 movs r1, #0
  28431. 800c368: 4618 mov r0, r3
  28432. 800c36a: f002 fa39 bl 800e7e0 <RCCEx_PLL2_Config>
  28433. 800c36e: 4603 mov r3, r0
  28434. 800c370: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28435. /* SAI2 clock source configuration done later after clock selection check */
  28436. break;
  28437. 800c374: e011 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28438. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  28439. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28440. 800c376: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28441. 800c37a: 3328 adds r3, #40 @ 0x28
  28442. 800c37c: 2100 movs r1, #0
  28443. 800c37e: 4618 mov r0, r3
  28444. 800c380: f002 fae0 bl 800e944 <RCCEx_PLL3_Config>
  28445. 800c384: 4603 mov r3, r0
  28446. 800c386: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28447. /* SAI1 clock source configuration done later after clock selection check */
  28448. break;
  28449. 800c38a: e006 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28450. /* SAI4A clock source configuration done later after clock selection check */
  28451. break;
  28452. #endif /* RCC_VER_3_0 */
  28453. default:
  28454. ret = HAL_ERROR;
  28455. 800c38c: 2301 movs r3, #1
  28456. 800c38e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28457. break;
  28458. 800c392: e002 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28459. break;
  28460. 800c394: bf00 nop
  28461. 800c396: e000 b.n 800c39a <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  28462. break;
  28463. 800c398: bf00 nop
  28464. }
  28465. if (ret == HAL_OK)
  28466. 800c39a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28467. 800c39e: 2b00 cmp r3, #0
  28468. 800c3a0: d10b bne.n 800c3ba <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  28469. {
  28470. /* Set the source of SAI4A clock*/
  28471. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  28472. 800c3a2: 4b1e ldr r3, [pc, #120] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28473. 800c3a4: 6d9b ldr r3, [r3, #88] @ 0x58
  28474. 800c3a6: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  28475. 800c3aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28476. 800c3ae: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  28477. 800c3b2: 4a1a ldr r2, [pc, #104] @ (800c41c <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28478. 800c3b4: 430b orrs r3, r1
  28479. 800c3b6: 6593 str r3, [r2, #88] @ 0x58
  28480. 800c3b8: e003 b.n 800c3c2 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  28481. }
  28482. else
  28483. {
  28484. /* set overall return value */
  28485. status = ret;
  28486. 800c3ba: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28487. 800c3be: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28488. }
  28489. }
  28490. /*---------------------------- SAI4B configuration -------------------------------*/
  28491. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  28492. 800c3c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28493. 800c3c6: e9d3 2300 ldrd r2, r3, [r3]
  28494. 800c3ca: f402 6300 and.w r3, r2, #2048 @ 0x800
  28495. 800c3ce: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  28496. 800c3d2: 2300 movs r3, #0
  28497. 800c3d4: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  28498. 800c3d8: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  28499. 800c3dc: 460b mov r3, r1
  28500. 800c3de: 4313 orrs r3, r2
  28501. 800c3e0: d056 beq.n 800c490 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  28502. {
  28503. switch (PeriphClkInit->Sai4BClockSelection)
  28504. 800c3e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28505. 800c3e6: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  28506. 800c3ea: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  28507. 800c3ee: d038 beq.n 800c462 <HAL_RCCEx_PeriphCLKConfig+0x37e>
  28508. 800c3f0: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  28509. 800c3f4: d831 bhi.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28510. 800c3f6: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  28511. 800c3fa: d034 beq.n 800c466 <HAL_RCCEx_PeriphCLKConfig+0x382>
  28512. 800c3fc: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  28513. 800c400: d82b bhi.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28514. 800c402: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  28515. 800c406: d01d beq.n 800c444 <HAL_RCCEx_PeriphCLKConfig+0x360>
  28516. 800c408: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  28517. 800c40c: d825 bhi.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28518. 800c40e: 2b00 cmp r3, #0
  28519. 800c410: d006 beq.n 800c420 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  28520. 800c412: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  28521. 800c416: d00a beq.n 800c42e <HAL_RCCEx_PeriphCLKConfig+0x34a>
  28522. 800c418: e01f b.n 800c45a <HAL_RCCEx_PeriphCLKConfig+0x376>
  28523. 800c41a: bf00 nop
  28524. 800c41c: 58024400 .word 0x58024400
  28525. {
  28526. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  28527. /* Enable SAI Clock output generated form System PLL . */
  28528. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28529. 800c420: 4ba2 ldr r3, [pc, #648] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28530. 800c422: 6adb ldr r3, [r3, #44] @ 0x2c
  28531. 800c424: 4aa1 ldr r2, [pc, #644] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28532. 800c426: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28533. 800c42a: 62d3 str r3, [r2, #44] @ 0x2c
  28534. /* SAI1 clock source configuration done later after clock selection check */
  28535. break;
  28536. 800c42c: e01c b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28537. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  28538. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28539. 800c42e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28540. 800c432: 3308 adds r3, #8
  28541. 800c434: 2100 movs r1, #0
  28542. 800c436: 4618 mov r0, r3
  28543. 800c438: f002 f9d2 bl 800e7e0 <RCCEx_PLL2_Config>
  28544. 800c43c: 4603 mov r3, r0
  28545. 800c43e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28546. /* SAI2 clock source configuration done later after clock selection check */
  28547. break;
  28548. 800c442: e011 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28549. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  28550. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28551. 800c444: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28552. 800c448: 3328 adds r3, #40 @ 0x28
  28553. 800c44a: 2100 movs r1, #0
  28554. 800c44c: 4618 mov r0, r3
  28555. 800c44e: f002 fa79 bl 800e944 <RCCEx_PLL3_Config>
  28556. 800c452: 4603 mov r3, r0
  28557. 800c454: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28558. /* SAI1 clock source configuration done later after clock selection check */
  28559. break;
  28560. 800c458: e006 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28561. /* SAI4B clock source configuration done later after clock selection check */
  28562. break;
  28563. #endif /* RCC_VER_3_0 */
  28564. default:
  28565. ret = HAL_ERROR;
  28566. 800c45a: 2301 movs r3, #1
  28567. 800c45c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28568. break;
  28569. 800c460: e002 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28570. break;
  28571. 800c462: bf00 nop
  28572. 800c464: e000 b.n 800c468 <HAL_RCCEx_PeriphCLKConfig+0x384>
  28573. break;
  28574. 800c466: bf00 nop
  28575. }
  28576. if (ret == HAL_OK)
  28577. 800c468: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28578. 800c46c: 2b00 cmp r3, #0
  28579. 800c46e: d10b bne.n 800c488 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  28580. {
  28581. /* Set the source of SAI4B clock*/
  28582. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  28583. 800c470: 4b8e ldr r3, [pc, #568] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28584. 800c472: 6d9b ldr r3, [r3, #88] @ 0x58
  28585. 800c474: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  28586. 800c478: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28587. 800c47c: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  28588. 800c480: 4a8a ldr r2, [pc, #552] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28589. 800c482: 430b orrs r3, r1
  28590. 800c484: 6593 str r3, [r2, #88] @ 0x58
  28591. 800c486: e003 b.n 800c490 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  28592. }
  28593. else
  28594. {
  28595. /* set overall return value */
  28596. status = ret;
  28597. 800c488: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28598. 800c48c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28599. }
  28600. #endif /*SAI4*/
  28601. #if defined(QUADSPI)
  28602. /*---------------------------- QSPI configuration -------------------------------*/
  28603. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  28604. 800c490: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28605. 800c494: e9d3 2300 ldrd r2, r3, [r3]
  28606. 800c498: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  28607. 800c49c: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  28608. 800c4a0: 2300 movs r3, #0
  28609. 800c4a2: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  28610. 800c4a6: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  28611. 800c4aa: 460b mov r3, r1
  28612. 800c4ac: 4313 orrs r3, r2
  28613. 800c4ae: d03a beq.n 800c526 <HAL_RCCEx_PeriphCLKConfig+0x442>
  28614. {
  28615. switch (PeriphClkInit->QspiClockSelection)
  28616. 800c4b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28617. 800c4b4: 6cdb ldr r3, [r3, #76] @ 0x4c
  28618. 800c4b6: 2b30 cmp r3, #48 @ 0x30
  28619. 800c4b8: d01f beq.n 800c4fa <HAL_RCCEx_PeriphCLKConfig+0x416>
  28620. 800c4ba: 2b30 cmp r3, #48 @ 0x30
  28621. 800c4bc: d819 bhi.n 800c4f2 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28622. 800c4be: 2b20 cmp r3, #32
  28623. 800c4c0: d00c beq.n 800c4dc <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  28624. 800c4c2: 2b20 cmp r3, #32
  28625. 800c4c4: d815 bhi.n 800c4f2 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28626. 800c4c6: 2b00 cmp r3, #0
  28627. 800c4c8: d019 beq.n 800c4fe <HAL_RCCEx_PeriphCLKConfig+0x41a>
  28628. 800c4ca: 2b10 cmp r3, #16
  28629. 800c4cc: d111 bne.n 800c4f2 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  28630. {
  28631. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  28632. /* Enable QSPI Clock output generated form System PLL . */
  28633. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28634. 800c4ce: 4b77 ldr r3, [pc, #476] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28635. 800c4d0: 6adb ldr r3, [r3, #44] @ 0x2c
  28636. 800c4d2: 4a76 ldr r2, [pc, #472] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28637. 800c4d4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28638. 800c4d8: 62d3 str r3, [r2, #44] @ 0x2c
  28639. /* QSPI clock source configuration done later after clock selection check */
  28640. break;
  28641. 800c4da: e011 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28642. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  28643. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28644. 800c4dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28645. 800c4e0: 3308 adds r3, #8
  28646. 800c4e2: 2102 movs r1, #2
  28647. 800c4e4: 4618 mov r0, r3
  28648. 800c4e6: f002 f97b bl 800e7e0 <RCCEx_PLL2_Config>
  28649. 800c4ea: 4603 mov r3, r0
  28650. 800c4ec: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28651. /* QSPI clock source configuration done later after clock selection check */
  28652. break;
  28653. 800c4f0: e006 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28654. case RCC_QSPICLKSOURCE_D1HCLK:
  28655. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  28656. break;
  28657. default:
  28658. ret = HAL_ERROR;
  28659. 800c4f2: 2301 movs r3, #1
  28660. 800c4f4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28661. break;
  28662. 800c4f8: e002 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28663. break;
  28664. 800c4fa: bf00 nop
  28665. 800c4fc: e000 b.n 800c500 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  28666. break;
  28667. 800c4fe: bf00 nop
  28668. }
  28669. if (ret == HAL_OK)
  28670. 800c500: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28671. 800c504: 2b00 cmp r3, #0
  28672. 800c506: d10a bne.n 800c51e <HAL_RCCEx_PeriphCLKConfig+0x43a>
  28673. {
  28674. /* Set the source of QSPI clock*/
  28675. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  28676. 800c508: 4b68 ldr r3, [pc, #416] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28677. 800c50a: 6cdb ldr r3, [r3, #76] @ 0x4c
  28678. 800c50c: f023 0130 bic.w r1, r3, #48 @ 0x30
  28679. 800c510: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28680. 800c514: 6cdb ldr r3, [r3, #76] @ 0x4c
  28681. 800c516: 4a65 ldr r2, [pc, #404] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28682. 800c518: 430b orrs r3, r1
  28683. 800c51a: 64d3 str r3, [r2, #76] @ 0x4c
  28684. 800c51c: e003 b.n 800c526 <HAL_RCCEx_PeriphCLKConfig+0x442>
  28685. }
  28686. else
  28687. {
  28688. /* set overall return value */
  28689. status = ret;
  28690. 800c51e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28691. 800c522: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28692. }
  28693. }
  28694. #endif /*OCTOSPI*/
  28695. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  28696. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  28697. 800c526: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28698. 800c52a: e9d3 2300 ldrd r2, r3, [r3]
  28699. 800c52e: f402 5380 and.w r3, r2, #4096 @ 0x1000
  28700. 800c532: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  28701. 800c536: 2300 movs r3, #0
  28702. 800c538: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  28703. 800c53c: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  28704. 800c540: 460b mov r3, r1
  28705. 800c542: 4313 orrs r3, r2
  28706. 800c544: d051 beq.n 800c5ea <HAL_RCCEx_PeriphCLKConfig+0x506>
  28707. {
  28708. switch (PeriphClkInit->Spi123ClockSelection)
  28709. 800c546: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28710. 800c54a: 6e1b ldr r3, [r3, #96] @ 0x60
  28711. 800c54c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  28712. 800c550: d035 beq.n 800c5be <HAL_RCCEx_PeriphCLKConfig+0x4da>
  28713. 800c552: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  28714. 800c556: d82e bhi.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28715. 800c558: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  28716. 800c55c: d031 beq.n 800c5c2 <HAL_RCCEx_PeriphCLKConfig+0x4de>
  28717. 800c55e: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  28718. 800c562: d828 bhi.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28719. 800c564: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  28720. 800c568: d01a beq.n 800c5a0 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  28721. 800c56a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  28722. 800c56e: d822 bhi.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28723. 800c570: 2b00 cmp r3, #0
  28724. 800c572: d003 beq.n 800c57c <HAL_RCCEx_PeriphCLKConfig+0x498>
  28725. 800c574: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  28726. 800c578: d007 beq.n 800c58a <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  28727. 800c57a: e01c b.n 800c5b6 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  28728. {
  28729. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  28730. /* Enable SPI Clock output generated form System PLL . */
  28731. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28732. 800c57c: 4b4b ldr r3, [pc, #300] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28733. 800c57e: 6adb ldr r3, [r3, #44] @ 0x2c
  28734. 800c580: 4a4a ldr r2, [pc, #296] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28735. 800c582: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28736. 800c586: 62d3 str r3, [r2, #44] @ 0x2c
  28737. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28738. break;
  28739. 800c588: e01c b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28740. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  28741. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28742. 800c58a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28743. 800c58e: 3308 adds r3, #8
  28744. 800c590: 2100 movs r1, #0
  28745. 800c592: 4618 mov r0, r3
  28746. 800c594: f002 f924 bl 800e7e0 <RCCEx_PLL2_Config>
  28747. 800c598: 4603 mov r3, r0
  28748. 800c59a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28749. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28750. break;
  28751. 800c59e: e011 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28752. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  28753. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28754. 800c5a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28755. 800c5a4: 3328 adds r3, #40 @ 0x28
  28756. 800c5a6: 2100 movs r1, #0
  28757. 800c5a8: 4618 mov r0, r3
  28758. 800c5aa: f002 f9cb bl 800e944 <RCCEx_PLL3_Config>
  28759. 800c5ae: 4603 mov r3, r0
  28760. 800c5b0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28761. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28762. break;
  28763. 800c5b4: e006 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28764. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  28765. /* SPI1/2/3 clock source configuration done later after clock selection check */
  28766. break;
  28767. default:
  28768. ret = HAL_ERROR;
  28769. 800c5b6: 2301 movs r3, #1
  28770. 800c5b8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28771. break;
  28772. 800c5bc: e002 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28773. break;
  28774. 800c5be: bf00 nop
  28775. 800c5c0: e000 b.n 800c5c4 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  28776. break;
  28777. 800c5c2: bf00 nop
  28778. }
  28779. if (ret == HAL_OK)
  28780. 800c5c4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28781. 800c5c8: 2b00 cmp r3, #0
  28782. 800c5ca: d10a bne.n 800c5e2 <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  28783. {
  28784. /* Set the source of SPI1/2/3 clock*/
  28785. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  28786. 800c5cc: 4b37 ldr r3, [pc, #220] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28787. 800c5ce: 6d1b ldr r3, [r3, #80] @ 0x50
  28788. 800c5d0: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  28789. 800c5d4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28790. 800c5d8: 6e1b ldr r3, [r3, #96] @ 0x60
  28791. 800c5da: 4a34 ldr r2, [pc, #208] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28792. 800c5dc: 430b orrs r3, r1
  28793. 800c5de: 6513 str r3, [r2, #80] @ 0x50
  28794. 800c5e0: e003 b.n 800c5ea <HAL_RCCEx_PeriphCLKConfig+0x506>
  28795. }
  28796. else
  28797. {
  28798. /* set overall return value */
  28799. status = ret;
  28800. 800c5e2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28801. 800c5e6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28802. }
  28803. }
  28804. /*---------------------------- SPI4/5 configuration -------------------------------*/
  28805. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  28806. 800c5ea: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28807. 800c5ee: e9d3 2300 ldrd r2, r3, [r3]
  28808. 800c5f2: f402 5300 and.w r3, r2, #8192 @ 0x2000
  28809. 800c5f6: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  28810. 800c5fa: 2300 movs r3, #0
  28811. 800c5fc: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  28812. 800c600: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  28813. 800c604: 460b mov r3, r1
  28814. 800c606: 4313 orrs r3, r2
  28815. 800c608: d056 beq.n 800c6b8 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  28816. {
  28817. switch (PeriphClkInit->Spi45ClockSelection)
  28818. 800c60a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28819. 800c60e: 6e5b ldr r3, [r3, #100] @ 0x64
  28820. 800c610: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  28821. 800c614: d033 beq.n 800c67e <HAL_RCCEx_PeriphCLKConfig+0x59a>
  28822. 800c616: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  28823. 800c61a: d82c bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28824. 800c61c: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  28825. 800c620: d02f beq.n 800c682 <HAL_RCCEx_PeriphCLKConfig+0x59e>
  28826. 800c622: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  28827. 800c626: d826 bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28828. 800c628: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  28829. 800c62c: d02b beq.n 800c686 <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  28830. 800c62e: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  28831. 800c632: d820 bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28832. 800c634: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  28833. 800c638: d012 beq.n 800c660 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  28834. 800c63a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  28835. 800c63e: d81a bhi.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28836. 800c640: 2b00 cmp r3, #0
  28837. 800c642: d022 beq.n 800c68a <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  28838. 800c644: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  28839. 800c648: d115 bne.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x592>
  28840. /* SPI4/5 clock source configuration done later after clock selection check */
  28841. break;
  28842. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  28843. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28844. 800c64a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28845. 800c64e: 3308 adds r3, #8
  28846. 800c650: 2101 movs r1, #1
  28847. 800c652: 4618 mov r0, r3
  28848. 800c654: f002 f8c4 bl 800e7e0 <RCCEx_PLL2_Config>
  28849. 800c658: 4603 mov r3, r0
  28850. 800c65a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28851. /* SPI4/5 clock source configuration done later after clock selection check */
  28852. break;
  28853. 800c65e: e015 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28854. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  28855. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  28856. 800c660: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28857. 800c664: 3328 adds r3, #40 @ 0x28
  28858. 800c666: 2101 movs r1, #1
  28859. 800c668: 4618 mov r0, r3
  28860. 800c66a: f002 f96b bl 800e944 <RCCEx_PLL3_Config>
  28861. 800c66e: 4603 mov r3, r0
  28862. 800c670: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28863. /* SPI4/5 clock source configuration done later after clock selection check */
  28864. break;
  28865. 800c674: e00a b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28866. /* HSE, oscillator is used as source of SPI4/5 clock */
  28867. /* SPI4/5 clock source configuration done later after clock selection check */
  28868. break;
  28869. default:
  28870. ret = HAL_ERROR;
  28871. 800c676: 2301 movs r3, #1
  28872. 800c678: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28873. break;
  28874. 800c67c: e006 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28875. break;
  28876. 800c67e: bf00 nop
  28877. 800c680: e004 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28878. break;
  28879. 800c682: bf00 nop
  28880. 800c684: e002 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28881. break;
  28882. 800c686: bf00 nop
  28883. 800c688: e000 b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  28884. break;
  28885. 800c68a: bf00 nop
  28886. }
  28887. if (ret == HAL_OK)
  28888. 800c68c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28889. 800c690: 2b00 cmp r3, #0
  28890. 800c692: d10d bne.n 800c6b0 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  28891. {
  28892. /* Set the source of SPI4/5 clock*/
  28893. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  28894. 800c694: 4b05 ldr r3, [pc, #20] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28895. 800c696: 6d1b ldr r3, [r3, #80] @ 0x50
  28896. 800c698: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  28897. 800c69c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28898. 800c6a0: 6e5b ldr r3, [r3, #100] @ 0x64
  28899. 800c6a2: 4a02 ldr r2, [pc, #8] @ (800c6ac <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  28900. 800c6a4: 430b orrs r3, r1
  28901. 800c6a6: 6513 str r3, [r2, #80] @ 0x50
  28902. 800c6a8: e006 b.n 800c6b8 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  28903. 800c6aa: bf00 nop
  28904. 800c6ac: 58024400 .word 0x58024400
  28905. }
  28906. else
  28907. {
  28908. /* set overall return value */
  28909. status = ret;
  28910. 800c6b0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28911. 800c6b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28912. }
  28913. }
  28914. /*---------------------------- SPI6 configuration -------------------------------*/
  28915. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  28916. 800c6b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28917. 800c6bc: e9d3 2300 ldrd r2, r3, [r3]
  28918. 800c6c0: f402 4380 and.w r3, r2, #16384 @ 0x4000
  28919. 800c6c4: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  28920. 800c6c8: 2300 movs r3, #0
  28921. 800c6ca: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  28922. 800c6ce: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  28923. 800c6d2: 460b mov r3, r1
  28924. 800c6d4: 4313 orrs r3, r2
  28925. 800c6d6: d055 beq.n 800c784 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  28926. {
  28927. switch (PeriphClkInit->Spi6ClockSelection)
  28928. 800c6d8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28929. 800c6dc: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  28930. 800c6e0: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  28931. 800c6e4: d033 beq.n 800c74e <HAL_RCCEx_PeriphCLKConfig+0x66a>
  28932. 800c6e6: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  28933. 800c6ea: d82c bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28934. 800c6ec: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28935. 800c6f0: d02f beq.n 800c752 <HAL_RCCEx_PeriphCLKConfig+0x66e>
  28936. 800c6f2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  28937. 800c6f6: d826 bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28938. 800c6f8: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  28939. 800c6fc: d02b beq.n 800c756 <HAL_RCCEx_PeriphCLKConfig+0x672>
  28940. 800c6fe: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  28941. 800c702: d820 bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28942. 800c704: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28943. 800c708: d012 beq.n 800c730 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  28944. 800c70a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  28945. 800c70e: d81a bhi.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28946. 800c710: 2b00 cmp r3, #0
  28947. 800c712: d022 beq.n 800c75a <HAL_RCCEx_PeriphCLKConfig+0x676>
  28948. 800c714: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  28949. 800c718: d115 bne.n 800c746 <HAL_RCCEx_PeriphCLKConfig+0x662>
  28950. /* SPI6 clock source configuration done later after clock selection check */
  28951. break;
  28952. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  28953. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28954. 800c71a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28955. 800c71e: 3308 adds r3, #8
  28956. 800c720: 2101 movs r1, #1
  28957. 800c722: 4618 mov r0, r3
  28958. 800c724: f002 f85c bl 800e7e0 <RCCEx_PLL2_Config>
  28959. 800c728: 4603 mov r3, r0
  28960. 800c72a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28961. /* SPI6 clock source configuration done later after clock selection check */
  28962. break;
  28963. 800c72e: e015 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28964. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  28965. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  28966. 800c730: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28967. 800c734: 3328 adds r3, #40 @ 0x28
  28968. 800c736: 2101 movs r1, #1
  28969. 800c738: 4618 mov r0, r3
  28970. 800c73a: f002 f903 bl 800e944 <RCCEx_PLL3_Config>
  28971. 800c73e: 4603 mov r3, r0
  28972. 800c740: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28973. /* SPI6 clock source configuration done later after clock selection check */
  28974. break;
  28975. 800c744: e00a b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28976. /* SPI6 clock source configuration done later after clock selection check */
  28977. break;
  28978. #endif
  28979. default:
  28980. ret = HAL_ERROR;
  28981. 800c746: 2301 movs r3, #1
  28982. 800c748: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28983. break;
  28984. 800c74c: e006 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28985. break;
  28986. 800c74e: bf00 nop
  28987. 800c750: e004 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28988. break;
  28989. 800c752: bf00 nop
  28990. 800c754: e002 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28991. break;
  28992. 800c756: bf00 nop
  28993. 800c758: e000 b.n 800c75c <HAL_RCCEx_PeriphCLKConfig+0x678>
  28994. break;
  28995. 800c75a: bf00 nop
  28996. }
  28997. if (ret == HAL_OK)
  28998. 800c75c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28999. 800c760: 2b00 cmp r3, #0
  29000. 800c762: d10b bne.n 800c77c <HAL_RCCEx_PeriphCLKConfig+0x698>
  29001. {
  29002. /* Set the source of SPI6 clock*/
  29003. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  29004. 800c764: 4ba3 ldr r3, [pc, #652] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29005. 800c766: 6d9b ldr r3, [r3, #88] @ 0x58
  29006. 800c768: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  29007. 800c76c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29008. 800c770: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  29009. 800c774: 4a9f ldr r2, [pc, #636] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29010. 800c776: 430b orrs r3, r1
  29011. 800c778: 6593 str r3, [r2, #88] @ 0x58
  29012. 800c77a: e003 b.n 800c784 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  29013. }
  29014. else
  29015. {
  29016. /* set overall return value */
  29017. status = ret;
  29018. 800c77c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29019. 800c780: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29020. }
  29021. #endif /*DSI*/
  29022. #if defined(FDCAN1) || defined(FDCAN2)
  29023. /*---------------------------- FDCAN configuration -------------------------------*/
  29024. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  29025. 800c784: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29026. 800c788: e9d3 2300 ldrd r2, r3, [r3]
  29027. 800c78c: f402 4300 and.w r3, r2, #32768 @ 0x8000
  29028. 800c790: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  29029. 800c794: 2300 movs r3, #0
  29030. 800c796: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  29031. 800c79a: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  29032. 800c79e: 460b mov r3, r1
  29033. 800c7a0: 4313 orrs r3, r2
  29034. 800c7a2: d037 beq.n 800c814 <HAL_RCCEx_PeriphCLKConfig+0x730>
  29035. {
  29036. switch (PeriphClkInit->FdcanClockSelection)
  29037. 800c7a4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29038. 800c7a8: 6f1b ldr r3, [r3, #112] @ 0x70
  29039. 800c7aa: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29040. 800c7ae: d00e beq.n 800c7ce <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  29041. 800c7b0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29042. 800c7b4: d816 bhi.n 800c7e4 <HAL_RCCEx_PeriphCLKConfig+0x700>
  29043. 800c7b6: 2b00 cmp r3, #0
  29044. 800c7b8: d018 beq.n 800c7ec <HAL_RCCEx_PeriphCLKConfig+0x708>
  29045. 800c7ba: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  29046. 800c7be: d111 bne.n 800c7e4 <HAL_RCCEx_PeriphCLKConfig+0x700>
  29047. {
  29048. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  29049. /* Enable FDCAN Clock output generated form System PLL . */
  29050. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29051. 800c7c0: 4b8c ldr r3, [pc, #560] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29052. 800c7c2: 6adb ldr r3, [r3, #44] @ 0x2c
  29053. 800c7c4: 4a8b ldr r2, [pc, #556] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29054. 800c7c6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29055. 800c7ca: 62d3 str r3, [r2, #44] @ 0x2c
  29056. /* FDCAN clock source configuration done later after clock selection check */
  29057. break;
  29058. 800c7cc: e00f b.n 800c7ee <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29059. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  29060. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29061. 800c7ce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29062. 800c7d2: 3308 adds r3, #8
  29063. 800c7d4: 2101 movs r1, #1
  29064. 800c7d6: 4618 mov r0, r3
  29065. 800c7d8: f002 f802 bl 800e7e0 <RCCEx_PLL2_Config>
  29066. 800c7dc: 4603 mov r3, r0
  29067. 800c7de: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29068. /* FDCAN clock source configuration done later after clock selection check */
  29069. break;
  29070. 800c7e2: e004 b.n 800c7ee <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29071. /* HSE is used as clock source for FDCAN*/
  29072. /* FDCAN clock source configuration done later after clock selection check */
  29073. break;
  29074. default:
  29075. ret = HAL_ERROR;
  29076. 800c7e4: 2301 movs r3, #1
  29077. 800c7e6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29078. break;
  29079. 800c7ea: e000 b.n 800c7ee <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29080. break;
  29081. 800c7ec: bf00 nop
  29082. }
  29083. if (ret == HAL_OK)
  29084. 800c7ee: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29085. 800c7f2: 2b00 cmp r3, #0
  29086. 800c7f4: d10a bne.n 800c80c <HAL_RCCEx_PeriphCLKConfig+0x728>
  29087. {
  29088. /* Set the source of FDCAN clock*/
  29089. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  29090. 800c7f6: 4b7f ldr r3, [pc, #508] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29091. 800c7f8: 6d1b ldr r3, [r3, #80] @ 0x50
  29092. 800c7fa: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  29093. 800c7fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29094. 800c802: 6f1b ldr r3, [r3, #112] @ 0x70
  29095. 800c804: 4a7b ldr r2, [pc, #492] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29096. 800c806: 430b orrs r3, r1
  29097. 800c808: 6513 str r3, [r2, #80] @ 0x50
  29098. 800c80a: e003 b.n 800c814 <HAL_RCCEx_PeriphCLKConfig+0x730>
  29099. }
  29100. else
  29101. {
  29102. /* set overall return value */
  29103. status = ret;
  29104. 800c80c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29105. 800c810: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29106. }
  29107. }
  29108. #endif /*FDCAN1 || FDCAN2*/
  29109. /*---------------------------- FMC configuration -------------------------------*/
  29110. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  29111. 800c814: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29112. 800c818: e9d3 2300 ldrd r2, r3, [r3]
  29113. 800c81c: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  29114. 800c820: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  29115. 800c824: 2300 movs r3, #0
  29116. 800c826: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  29117. 800c82a: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  29118. 800c82e: 460b mov r3, r1
  29119. 800c830: 4313 orrs r3, r2
  29120. 800c832: d039 beq.n 800c8a8 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  29121. {
  29122. switch (PeriphClkInit->FmcClockSelection)
  29123. 800c834: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29124. 800c838: 6c9b ldr r3, [r3, #72] @ 0x48
  29125. 800c83a: 2b03 cmp r3, #3
  29126. 800c83c: d81c bhi.n 800c878 <HAL_RCCEx_PeriphCLKConfig+0x794>
  29127. 800c83e: a201 add r2, pc, #4 @ (adr r2, 800c844 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  29128. 800c840: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29129. 800c844: 0800c881 .word 0x0800c881
  29130. 800c848: 0800c855 .word 0x0800c855
  29131. 800c84c: 0800c863 .word 0x0800c863
  29132. 800c850: 0800c881 .word 0x0800c881
  29133. {
  29134. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  29135. /* Enable FMC Clock output generated form System PLL . */
  29136. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29137. 800c854: 4b67 ldr r3, [pc, #412] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29138. 800c856: 6adb ldr r3, [r3, #44] @ 0x2c
  29139. 800c858: 4a66 ldr r2, [pc, #408] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29140. 800c85a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29141. 800c85e: 62d3 str r3, [r2, #44] @ 0x2c
  29142. /* FMC clock source configuration done later after clock selection check */
  29143. break;
  29144. 800c860: e00f b.n 800c882 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29145. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  29146. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29147. 800c862: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29148. 800c866: 3308 adds r3, #8
  29149. 800c868: 2102 movs r1, #2
  29150. 800c86a: 4618 mov r0, r3
  29151. 800c86c: f001 ffb8 bl 800e7e0 <RCCEx_PLL2_Config>
  29152. 800c870: 4603 mov r3, r0
  29153. 800c872: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29154. /* FMC clock source configuration done later after clock selection check */
  29155. break;
  29156. 800c876: e004 b.n 800c882 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29157. case RCC_FMCCLKSOURCE_HCLK:
  29158. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  29159. break;
  29160. default:
  29161. ret = HAL_ERROR;
  29162. 800c878: 2301 movs r3, #1
  29163. 800c87a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29164. break;
  29165. 800c87e: e000 b.n 800c882 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29166. break;
  29167. 800c880: bf00 nop
  29168. }
  29169. if (ret == HAL_OK)
  29170. 800c882: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29171. 800c886: 2b00 cmp r3, #0
  29172. 800c888: d10a bne.n 800c8a0 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  29173. {
  29174. /* Set the source of FMC clock*/
  29175. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  29176. 800c88a: 4b5a ldr r3, [pc, #360] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29177. 800c88c: 6cdb ldr r3, [r3, #76] @ 0x4c
  29178. 800c88e: f023 0103 bic.w r1, r3, #3
  29179. 800c892: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29180. 800c896: 6c9b ldr r3, [r3, #72] @ 0x48
  29181. 800c898: 4a56 ldr r2, [pc, #344] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29182. 800c89a: 430b orrs r3, r1
  29183. 800c89c: 64d3 str r3, [r2, #76] @ 0x4c
  29184. 800c89e: e003 b.n 800c8a8 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  29185. }
  29186. else
  29187. {
  29188. /* set overall return value */
  29189. status = ret;
  29190. 800c8a0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29191. 800c8a4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29192. }
  29193. }
  29194. /*---------------------------- RTC configuration -------------------------------*/
  29195. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  29196. 800c8a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29197. 800c8ac: e9d3 2300 ldrd r2, r3, [r3]
  29198. 800c8b0: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  29199. 800c8b4: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  29200. 800c8b8: 2300 movs r3, #0
  29201. 800c8ba: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  29202. 800c8be: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  29203. 800c8c2: 460b mov r3, r1
  29204. 800c8c4: 4313 orrs r3, r2
  29205. 800c8c6: f000 809f beq.w 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x924>
  29206. {
  29207. /* check for RTC Parameters used to output RTCCLK */
  29208. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  29209. /* Enable write access to Backup domain */
  29210. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  29211. 800c8ca: 4b4b ldr r3, [pc, #300] @ (800c9f8 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29212. 800c8cc: 681b ldr r3, [r3, #0]
  29213. 800c8ce: 4a4a ldr r2, [pc, #296] @ (800c9f8 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29214. 800c8d0: f443 7380 orr.w r3, r3, #256 @ 0x100
  29215. 800c8d4: 6013 str r3, [r2, #0]
  29216. /* Wait for Backup domain Write protection disable */
  29217. tickstart = HAL_GetTick();
  29218. 800c8d6: f7f8 fe47 bl 8005568 <HAL_GetTick>
  29219. 800c8da: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  29220. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  29221. 800c8de: e00b b.n 800c8f8 <HAL_RCCEx_PeriphCLKConfig+0x814>
  29222. {
  29223. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  29224. 800c8e0: f7f8 fe42 bl 8005568 <HAL_GetTick>
  29225. 800c8e4: 4602 mov r2, r0
  29226. 800c8e6: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  29227. 800c8ea: 1ad3 subs r3, r2, r3
  29228. 800c8ec: 2b64 cmp r3, #100 @ 0x64
  29229. 800c8ee: d903 bls.n 800c8f8 <HAL_RCCEx_PeriphCLKConfig+0x814>
  29230. {
  29231. ret = HAL_TIMEOUT;
  29232. 800c8f0: 2303 movs r3, #3
  29233. 800c8f2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29234. break;
  29235. 800c8f6: e005 b.n 800c904 <HAL_RCCEx_PeriphCLKConfig+0x820>
  29236. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  29237. 800c8f8: 4b3f ldr r3, [pc, #252] @ (800c9f8 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29238. 800c8fa: 681b ldr r3, [r3, #0]
  29239. 800c8fc: f403 7380 and.w r3, r3, #256 @ 0x100
  29240. 800c900: 2b00 cmp r3, #0
  29241. 800c902: d0ed beq.n 800c8e0 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  29242. }
  29243. }
  29244. if (ret == HAL_OK)
  29245. 800c904: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29246. 800c908: 2b00 cmp r3, #0
  29247. 800c90a: d179 bne.n 800ca00 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  29248. {
  29249. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  29250. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  29251. 800c90c: 4b39 ldr r3, [pc, #228] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29252. 800c90e: 6f1a ldr r2, [r3, #112] @ 0x70
  29253. 800c910: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29254. 800c914: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29255. 800c918: 4053 eors r3, r2
  29256. 800c91a: f403 7340 and.w r3, r3, #768 @ 0x300
  29257. 800c91e: 2b00 cmp r3, #0
  29258. 800c920: d015 beq.n 800c94e <HAL_RCCEx_PeriphCLKConfig+0x86a>
  29259. {
  29260. /* Store the content of BDCR register before the reset of Backup Domain */
  29261. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  29262. 800c922: 4b34 ldr r3, [pc, #208] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29263. 800c924: 6f1b ldr r3, [r3, #112] @ 0x70
  29264. 800c926: f423 7340 bic.w r3, r3, #768 @ 0x300
  29265. 800c92a: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  29266. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  29267. __HAL_RCC_BACKUPRESET_FORCE();
  29268. 800c92e: 4b31 ldr r3, [pc, #196] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29269. 800c930: 6f1b ldr r3, [r3, #112] @ 0x70
  29270. 800c932: 4a30 ldr r2, [pc, #192] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29271. 800c934: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  29272. 800c938: 6713 str r3, [r2, #112] @ 0x70
  29273. __HAL_RCC_BACKUPRESET_RELEASE();
  29274. 800c93a: 4b2e ldr r3, [pc, #184] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29275. 800c93c: 6f1b ldr r3, [r3, #112] @ 0x70
  29276. 800c93e: 4a2d ldr r2, [pc, #180] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29277. 800c940: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  29278. 800c944: 6713 str r3, [r2, #112] @ 0x70
  29279. /* Restore the Content of BDCR register */
  29280. RCC->BDCR = tmpreg;
  29281. 800c946: 4a2b ldr r2, [pc, #172] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29282. 800c948: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  29283. 800c94c: 6713 str r3, [r2, #112] @ 0x70
  29284. }
  29285. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  29286. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  29287. 800c94e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29288. 800c952: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29289. 800c956: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29290. 800c95a: d118 bne.n 800c98e <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  29291. {
  29292. /* Get Start Tick*/
  29293. tickstart = HAL_GetTick();
  29294. 800c95c: f7f8 fe04 bl 8005568 <HAL_GetTick>
  29295. 800c960: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  29296. /* Wait till LSE is ready */
  29297. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  29298. 800c964: e00d b.n 800c982 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  29299. {
  29300. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  29301. 800c966: f7f8 fdff bl 8005568 <HAL_GetTick>
  29302. 800c96a: 4602 mov r2, r0
  29303. 800c96c: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  29304. 800c970: 1ad2 subs r2, r2, r3
  29305. 800c972: f241 3388 movw r3, #5000 @ 0x1388
  29306. 800c976: 429a cmp r2, r3
  29307. 800c978: d903 bls.n 800c982 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  29308. {
  29309. ret = HAL_TIMEOUT;
  29310. 800c97a: 2303 movs r3, #3
  29311. 800c97c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29312. break;
  29313. 800c980: e005 b.n 800c98e <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  29314. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  29315. 800c982: 4b1c ldr r3, [pc, #112] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29316. 800c984: 6f1b ldr r3, [r3, #112] @ 0x70
  29317. 800c986: f003 0302 and.w r3, r3, #2
  29318. 800c98a: 2b00 cmp r3, #0
  29319. 800c98c: d0eb beq.n 800c966 <HAL_RCCEx_PeriphCLKConfig+0x882>
  29320. }
  29321. }
  29322. }
  29323. if (ret == HAL_OK)
  29324. 800c98e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29325. 800c992: 2b00 cmp r3, #0
  29326. 800c994: d129 bne.n 800c9ea <HAL_RCCEx_PeriphCLKConfig+0x906>
  29327. {
  29328. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  29329. 800c996: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29330. 800c99a: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29331. 800c99e: f403 7340 and.w r3, r3, #768 @ 0x300
  29332. 800c9a2: f5b3 7f40 cmp.w r3, #768 @ 0x300
  29333. 800c9a6: d10e bne.n 800c9c6 <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  29334. 800c9a8: 4b12 ldr r3, [pc, #72] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29335. 800c9aa: 691b ldr r3, [r3, #16]
  29336. 800c9ac: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  29337. 800c9b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29338. 800c9b4: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29339. 800c9b8: 091a lsrs r2, r3, #4
  29340. 800c9ba: 4b10 ldr r3, [pc, #64] @ (800c9fc <HAL_RCCEx_PeriphCLKConfig+0x918>)
  29341. 800c9bc: 4013 ands r3, r2
  29342. 800c9be: 4a0d ldr r2, [pc, #52] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29343. 800c9c0: 430b orrs r3, r1
  29344. 800c9c2: 6113 str r3, [r2, #16]
  29345. 800c9c4: e005 b.n 800c9d2 <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  29346. 800c9c6: 4b0b ldr r3, [pc, #44] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29347. 800c9c8: 691b ldr r3, [r3, #16]
  29348. 800c9ca: 4a0a ldr r2, [pc, #40] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29349. 800c9cc: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  29350. 800c9d0: 6113 str r3, [r2, #16]
  29351. 800c9d2: 4b08 ldr r3, [pc, #32] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29352. 800c9d4: 6f19 ldr r1, [r3, #112] @ 0x70
  29353. 800c9d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29354. 800c9da: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29355. 800c9de: f3c3 030b ubfx r3, r3, #0, #12
  29356. 800c9e2: 4a04 ldr r2, [pc, #16] @ (800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29357. 800c9e4: 430b orrs r3, r1
  29358. 800c9e6: 6713 str r3, [r2, #112] @ 0x70
  29359. 800c9e8: e00e b.n 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x924>
  29360. }
  29361. else
  29362. {
  29363. /* set overall return value */
  29364. status = ret;
  29365. 800c9ea: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29366. 800c9ee: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29367. 800c9f2: e009 b.n 800ca08 <HAL_RCCEx_PeriphCLKConfig+0x924>
  29368. 800c9f4: 58024400 .word 0x58024400
  29369. 800c9f8: 58024800 .word 0x58024800
  29370. 800c9fc: 00ffffcf .word 0x00ffffcf
  29371. }
  29372. }
  29373. else
  29374. {
  29375. /* set overall return value */
  29376. status = ret;
  29377. 800ca00: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29378. 800ca04: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29379. }
  29380. }
  29381. /*-------------------------- USART1/6 configuration --------------------------*/
  29382. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  29383. 800ca08: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29384. 800ca0c: e9d3 2300 ldrd r2, r3, [r3]
  29385. 800ca10: f002 0301 and.w r3, r2, #1
  29386. 800ca14: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  29387. 800ca18: 2300 movs r3, #0
  29388. 800ca1a: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  29389. 800ca1e: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  29390. 800ca22: 460b mov r3, r1
  29391. 800ca24: 4313 orrs r3, r2
  29392. 800ca26: f000 8089 beq.w 800cb3c <HAL_RCCEx_PeriphCLKConfig+0xa58>
  29393. {
  29394. switch (PeriphClkInit->Usart16ClockSelection)
  29395. 800ca2a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29396. 800ca2e: 6fdb ldr r3, [r3, #124] @ 0x7c
  29397. 800ca30: 2b28 cmp r3, #40 @ 0x28
  29398. 800ca32: d86b bhi.n 800cb0c <HAL_RCCEx_PeriphCLKConfig+0xa28>
  29399. 800ca34: a201 add r2, pc, #4 @ (adr r2, 800ca3c <HAL_RCCEx_PeriphCLKConfig+0x958>)
  29400. 800ca36: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29401. 800ca3a: bf00 nop
  29402. 800ca3c: 0800cb15 .word 0x0800cb15
  29403. 800ca40: 0800cb0d .word 0x0800cb0d
  29404. 800ca44: 0800cb0d .word 0x0800cb0d
  29405. 800ca48: 0800cb0d .word 0x0800cb0d
  29406. 800ca4c: 0800cb0d .word 0x0800cb0d
  29407. 800ca50: 0800cb0d .word 0x0800cb0d
  29408. 800ca54: 0800cb0d .word 0x0800cb0d
  29409. 800ca58: 0800cb0d .word 0x0800cb0d
  29410. 800ca5c: 0800cae1 .word 0x0800cae1
  29411. 800ca60: 0800cb0d .word 0x0800cb0d
  29412. 800ca64: 0800cb0d .word 0x0800cb0d
  29413. 800ca68: 0800cb0d .word 0x0800cb0d
  29414. 800ca6c: 0800cb0d .word 0x0800cb0d
  29415. 800ca70: 0800cb0d .word 0x0800cb0d
  29416. 800ca74: 0800cb0d .word 0x0800cb0d
  29417. 800ca78: 0800cb0d .word 0x0800cb0d
  29418. 800ca7c: 0800caf7 .word 0x0800caf7
  29419. 800ca80: 0800cb0d .word 0x0800cb0d
  29420. 800ca84: 0800cb0d .word 0x0800cb0d
  29421. 800ca88: 0800cb0d .word 0x0800cb0d
  29422. 800ca8c: 0800cb0d .word 0x0800cb0d
  29423. 800ca90: 0800cb0d .word 0x0800cb0d
  29424. 800ca94: 0800cb0d .word 0x0800cb0d
  29425. 800ca98: 0800cb0d .word 0x0800cb0d
  29426. 800ca9c: 0800cb15 .word 0x0800cb15
  29427. 800caa0: 0800cb0d .word 0x0800cb0d
  29428. 800caa4: 0800cb0d .word 0x0800cb0d
  29429. 800caa8: 0800cb0d .word 0x0800cb0d
  29430. 800caac: 0800cb0d .word 0x0800cb0d
  29431. 800cab0: 0800cb0d .word 0x0800cb0d
  29432. 800cab4: 0800cb0d .word 0x0800cb0d
  29433. 800cab8: 0800cb0d .word 0x0800cb0d
  29434. 800cabc: 0800cb15 .word 0x0800cb15
  29435. 800cac0: 0800cb0d .word 0x0800cb0d
  29436. 800cac4: 0800cb0d .word 0x0800cb0d
  29437. 800cac8: 0800cb0d .word 0x0800cb0d
  29438. 800cacc: 0800cb0d .word 0x0800cb0d
  29439. 800cad0: 0800cb0d .word 0x0800cb0d
  29440. 800cad4: 0800cb0d .word 0x0800cb0d
  29441. 800cad8: 0800cb0d .word 0x0800cb0d
  29442. 800cadc: 0800cb15 .word 0x0800cb15
  29443. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  29444. /* USART1/6 clock source configuration done later after clock selection check */
  29445. break;
  29446. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  29447. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29448. 800cae0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29449. 800cae4: 3308 adds r3, #8
  29450. 800cae6: 2101 movs r1, #1
  29451. 800cae8: 4618 mov r0, r3
  29452. 800caea: f001 fe79 bl 800e7e0 <RCCEx_PLL2_Config>
  29453. 800caee: 4603 mov r3, r0
  29454. 800caf0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29455. /* USART1/6 clock source configuration done later after clock selection check */
  29456. break;
  29457. 800caf4: e00f b.n 800cb16 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29458. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  29459. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29460. 800caf6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29461. 800cafa: 3328 adds r3, #40 @ 0x28
  29462. 800cafc: 2101 movs r1, #1
  29463. 800cafe: 4618 mov r0, r3
  29464. 800cb00: f001 ff20 bl 800e944 <RCCEx_PLL3_Config>
  29465. 800cb04: 4603 mov r3, r0
  29466. 800cb06: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29467. /* USART1/6 clock source configuration done later after clock selection check */
  29468. break;
  29469. 800cb0a: e004 b.n 800cb16 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29470. /* LSE, oscillator is used as source of USART1/6 clock */
  29471. /* USART1/6 clock source configuration done later after clock selection check */
  29472. break;
  29473. default:
  29474. ret = HAL_ERROR;
  29475. 800cb0c: 2301 movs r3, #1
  29476. 800cb0e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29477. break;
  29478. 800cb12: e000 b.n 800cb16 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  29479. break;
  29480. 800cb14: bf00 nop
  29481. }
  29482. if (ret == HAL_OK)
  29483. 800cb16: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29484. 800cb1a: 2b00 cmp r3, #0
  29485. 800cb1c: d10a bne.n 800cb34 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  29486. {
  29487. /* Set the source of USART1/6 clock */
  29488. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  29489. 800cb1e: 4bbf ldr r3, [pc, #764] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29490. 800cb20: 6d5b ldr r3, [r3, #84] @ 0x54
  29491. 800cb22: f023 0138 bic.w r1, r3, #56 @ 0x38
  29492. 800cb26: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29493. 800cb2a: 6fdb ldr r3, [r3, #124] @ 0x7c
  29494. 800cb2c: 4abb ldr r2, [pc, #748] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29495. 800cb2e: 430b orrs r3, r1
  29496. 800cb30: 6553 str r3, [r2, #84] @ 0x54
  29497. 800cb32: e003 b.n 800cb3c <HAL_RCCEx_PeriphCLKConfig+0xa58>
  29498. }
  29499. else
  29500. {
  29501. /* set overall return value */
  29502. status = ret;
  29503. 800cb34: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29504. 800cb38: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29505. }
  29506. }
  29507. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  29508. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  29509. 800cb3c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29510. 800cb40: e9d3 2300 ldrd r2, r3, [r3]
  29511. 800cb44: f002 0302 and.w r3, r2, #2
  29512. 800cb48: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  29513. 800cb4c: 2300 movs r3, #0
  29514. 800cb4e: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  29515. 800cb52: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  29516. 800cb56: 460b mov r3, r1
  29517. 800cb58: 4313 orrs r3, r2
  29518. 800cb5a: d041 beq.n 800cbe0 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  29519. {
  29520. switch (PeriphClkInit->Usart234578ClockSelection)
  29521. 800cb5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29522. 800cb60: 6f9b ldr r3, [r3, #120] @ 0x78
  29523. 800cb62: 2b05 cmp r3, #5
  29524. 800cb64: d824 bhi.n 800cbb0 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  29525. 800cb66: a201 add r2, pc, #4 @ (adr r2, 800cb6c <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  29526. 800cb68: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29527. 800cb6c: 0800cbb9 .word 0x0800cbb9
  29528. 800cb70: 0800cb85 .word 0x0800cb85
  29529. 800cb74: 0800cb9b .word 0x0800cb9b
  29530. 800cb78: 0800cbb9 .word 0x0800cbb9
  29531. 800cb7c: 0800cbb9 .word 0x0800cbb9
  29532. 800cb80: 0800cbb9 .word 0x0800cbb9
  29533. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  29534. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29535. break;
  29536. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  29537. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29538. 800cb84: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29539. 800cb88: 3308 adds r3, #8
  29540. 800cb8a: 2101 movs r1, #1
  29541. 800cb8c: 4618 mov r0, r3
  29542. 800cb8e: f001 fe27 bl 800e7e0 <RCCEx_PLL2_Config>
  29543. 800cb92: 4603 mov r3, r0
  29544. 800cb94: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29545. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29546. break;
  29547. 800cb98: e00f b.n 800cbba <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29548. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  29549. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29550. 800cb9a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29551. 800cb9e: 3328 adds r3, #40 @ 0x28
  29552. 800cba0: 2101 movs r1, #1
  29553. 800cba2: 4618 mov r0, r3
  29554. 800cba4: f001 fece bl 800e944 <RCCEx_PLL3_Config>
  29555. 800cba8: 4603 mov r3, r0
  29556. 800cbaa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29557. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29558. break;
  29559. 800cbae: e004 b.n 800cbba <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29560. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  29561. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  29562. break;
  29563. default:
  29564. ret = HAL_ERROR;
  29565. 800cbb0: 2301 movs r3, #1
  29566. 800cbb2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29567. break;
  29568. 800cbb6: e000 b.n 800cbba <HAL_RCCEx_PeriphCLKConfig+0xad6>
  29569. break;
  29570. 800cbb8: bf00 nop
  29571. }
  29572. if (ret == HAL_OK)
  29573. 800cbba: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29574. 800cbbe: 2b00 cmp r3, #0
  29575. 800cbc0: d10a bne.n 800cbd8 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  29576. {
  29577. /* Set the source of USART2/3/4/5/7/8 clock */
  29578. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  29579. 800cbc2: 4b96 ldr r3, [pc, #600] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29580. 800cbc4: 6d5b ldr r3, [r3, #84] @ 0x54
  29581. 800cbc6: f023 0107 bic.w r1, r3, #7
  29582. 800cbca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29583. 800cbce: 6f9b ldr r3, [r3, #120] @ 0x78
  29584. 800cbd0: 4a92 ldr r2, [pc, #584] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29585. 800cbd2: 430b orrs r3, r1
  29586. 800cbd4: 6553 str r3, [r2, #84] @ 0x54
  29587. 800cbd6: e003 b.n 800cbe0 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  29588. }
  29589. else
  29590. {
  29591. /* set overall return value */
  29592. status = ret;
  29593. 800cbd8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29594. 800cbdc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29595. }
  29596. }
  29597. /*-------------------------- LPUART1 Configuration -------------------------*/
  29598. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  29599. 800cbe0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29600. 800cbe4: e9d3 2300 ldrd r2, r3, [r3]
  29601. 800cbe8: f002 0304 and.w r3, r2, #4
  29602. 800cbec: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  29603. 800cbf0: 2300 movs r3, #0
  29604. 800cbf2: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  29605. 800cbf6: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  29606. 800cbfa: 460b mov r3, r1
  29607. 800cbfc: 4313 orrs r3, r2
  29608. 800cbfe: d044 beq.n 800cc8a <HAL_RCCEx_PeriphCLKConfig+0xba6>
  29609. {
  29610. switch (PeriphClkInit->Lpuart1ClockSelection)
  29611. 800cc00: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29612. 800cc04: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  29613. 800cc08: 2b05 cmp r3, #5
  29614. 800cc0a: d825 bhi.n 800cc58 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  29615. 800cc0c: a201 add r2, pc, #4 @ (adr r2, 800cc14 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  29616. 800cc0e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29617. 800cc12: bf00 nop
  29618. 800cc14: 0800cc61 .word 0x0800cc61
  29619. 800cc18: 0800cc2d .word 0x0800cc2d
  29620. 800cc1c: 0800cc43 .word 0x0800cc43
  29621. 800cc20: 0800cc61 .word 0x0800cc61
  29622. 800cc24: 0800cc61 .word 0x0800cc61
  29623. 800cc28: 0800cc61 .word 0x0800cc61
  29624. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  29625. /* LPUART1 clock source configuration done later after clock selection check */
  29626. break;
  29627. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  29628. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29629. 800cc2c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29630. 800cc30: 3308 adds r3, #8
  29631. 800cc32: 2101 movs r1, #1
  29632. 800cc34: 4618 mov r0, r3
  29633. 800cc36: f001 fdd3 bl 800e7e0 <RCCEx_PLL2_Config>
  29634. 800cc3a: 4603 mov r3, r0
  29635. 800cc3c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29636. /* LPUART1 clock source configuration done later after clock selection check */
  29637. break;
  29638. 800cc40: e00f b.n 800cc62 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29639. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  29640. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29641. 800cc42: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29642. 800cc46: 3328 adds r3, #40 @ 0x28
  29643. 800cc48: 2101 movs r1, #1
  29644. 800cc4a: 4618 mov r0, r3
  29645. 800cc4c: f001 fe7a bl 800e944 <RCCEx_PLL3_Config>
  29646. 800cc50: 4603 mov r3, r0
  29647. 800cc52: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29648. /* LPUART1 clock source configuration done later after clock selection check */
  29649. break;
  29650. 800cc56: e004 b.n 800cc62 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29651. /* LSE, oscillator is used as source of LPUART1 clock */
  29652. /* LPUART1 clock source configuration done later after clock selection check */
  29653. break;
  29654. default:
  29655. ret = HAL_ERROR;
  29656. 800cc58: 2301 movs r3, #1
  29657. 800cc5a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29658. break;
  29659. 800cc5e: e000 b.n 800cc62 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  29660. break;
  29661. 800cc60: bf00 nop
  29662. }
  29663. if (ret == HAL_OK)
  29664. 800cc62: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29665. 800cc66: 2b00 cmp r3, #0
  29666. 800cc68: d10b bne.n 800cc82 <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  29667. {
  29668. /* Set the source of LPUART1 clock */
  29669. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  29670. 800cc6a: 4b6c ldr r3, [pc, #432] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29671. 800cc6c: 6d9b ldr r3, [r3, #88] @ 0x58
  29672. 800cc6e: f023 0107 bic.w r1, r3, #7
  29673. 800cc72: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29674. 800cc76: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  29675. 800cc7a: 4a68 ldr r2, [pc, #416] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29676. 800cc7c: 430b orrs r3, r1
  29677. 800cc7e: 6593 str r3, [r2, #88] @ 0x58
  29678. 800cc80: e003 b.n 800cc8a <HAL_RCCEx_PeriphCLKConfig+0xba6>
  29679. }
  29680. else
  29681. {
  29682. /* set overall return value */
  29683. status = ret;
  29684. 800cc82: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29685. 800cc86: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29686. }
  29687. }
  29688. /*---------------------------- LPTIM1 configuration -------------------------------*/
  29689. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  29690. 800cc8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29691. 800cc8e: e9d3 2300 ldrd r2, r3, [r3]
  29692. 800cc92: f002 0320 and.w r3, r2, #32
  29693. 800cc96: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  29694. 800cc9a: 2300 movs r3, #0
  29695. 800cc9c: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  29696. 800cca0: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  29697. 800cca4: 460b mov r3, r1
  29698. 800cca6: 4313 orrs r3, r2
  29699. 800cca8: d055 beq.n 800cd56 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  29700. {
  29701. switch (PeriphClkInit->Lptim1ClockSelection)
  29702. 800ccaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29703. 800ccae: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29704. 800ccb2: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29705. 800ccb6: d033 beq.n 800cd20 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  29706. 800ccb8: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29707. 800ccbc: d82c bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29708. 800ccbe: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29709. 800ccc2: d02f beq.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  29710. 800ccc4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29711. 800ccc8: d826 bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29712. 800ccca: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29713. 800ccce: d02b beq.n 800cd28 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  29714. 800ccd0: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29715. 800ccd4: d820 bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29716. 800ccd6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29717. 800ccda: d012 beq.n 800cd02 <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  29718. 800ccdc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29719. 800cce0: d81a bhi.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29720. 800cce2: 2b00 cmp r3, #0
  29721. 800cce4: d022 beq.n 800cd2c <HAL_RCCEx_PeriphCLKConfig+0xc48>
  29722. 800cce6: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  29723. 800ccea: d115 bne.n 800cd18 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  29724. /* LPTIM1 clock source configuration done later after clock selection check */
  29725. break;
  29726. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  29727. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29728. 800ccec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29729. 800ccf0: 3308 adds r3, #8
  29730. 800ccf2: 2100 movs r1, #0
  29731. 800ccf4: 4618 mov r0, r3
  29732. 800ccf6: f001 fd73 bl 800e7e0 <RCCEx_PLL2_Config>
  29733. 800ccfa: 4603 mov r3, r0
  29734. 800ccfc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29735. /* LPTIM1 clock source configuration done later after clock selection check */
  29736. break;
  29737. 800cd00: e015 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29738. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  29739. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29740. 800cd02: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29741. 800cd06: 3328 adds r3, #40 @ 0x28
  29742. 800cd08: 2102 movs r1, #2
  29743. 800cd0a: 4618 mov r0, r3
  29744. 800cd0c: f001 fe1a bl 800e944 <RCCEx_PLL3_Config>
  29745. 800cd10: 4603 mov r3, r0
  29746. 800cd12: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29747. /* LPTIM1 clock source configuration done later after clock selection check */
  29748. break;
  29749. 800cd16: e00a b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29750. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  29751. /* LPTIM1 clock source configuration done later after clock selection check */
  29752. break;
  29753. default:
  29754. ret = HAL_ERROR;
  29755. 800cd18: 2301 movs r3, #1
  29756. 800cd1a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29757. break;
  29758. 800cd1e: e006 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29759. break;
  29760. 800cd20: bf00 nop
  29761. 800cd22: e004 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29762. break;
  29763. 800cd24: bf00 nop
  29764. 800cd26: e002 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29765. break;
  29766. 800cd28: bf00 nop
  29767. 800cd2a: e000 b.n 800cd2e <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  29768. break;
  29769. 800cd2c: bf00 nop
  29770. }
  29771. if (ret == HAL_OK)
  29772. 800cd2e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29773. 800cd32: 2b00 cmp r3, #0
  29774. 800cd34: d10b bne.n 800cd4e <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  29775. {
  29776. /* Set the source of LPTIM1 clock*/
  29777. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  29778. 800cd36: 4b39 ldr r3, [pc, #228] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29779. 800cd38: 6d5b ldr r3, [r3, #84] @ 0x54
  29780. 800cd3a: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  29781. 800cd3e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29782. 800cd42: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  29783. 800cd46: 4a35 ldr r2, [pc, #212] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29784. 800cd48: 430b orrs r3, r1
  29785. 800cd4a: 6553 str r3, [r2, #84] @ 0x54
  29786. 800cd4c: e003 b.n 800cd56 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  29787. }
  29788. else
  29789. {
  29790. /* set overall return value */
  29791. status = ret;
  29792. 800cd4e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29793. 800cd52: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29794. }
  29795. }
  29796. /*---------------------------- LPTIM2 configuration -------------------------------*/
  29797. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  29798. 800cd56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29799. 800cd5a: e9d3 2300 ldrd r2, r3, [r3]
  29800. 800cd5e: f002 0340 and.w r3, r2, #64 @ 0x40
  29801. 800cd62: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  29802. 800cd66: 2300 movs r3, #0
  29803. 800cd68: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  29804. 800cd6c: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  29805. 800cd70: 460b mov r3, r1
  29806. 800cd72: 4313 orrs r3, r2
  29807. 800cd74: d058 beq.n 800ce28 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  29808. {
  29809. switch (PeriphClkInit->Lptim2ClockSelection)
  29810. 800cd76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29811. 800cd7a: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  29812. 800cd7e: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  29813. 800cd82: d033 beq.n 800cdec <HAL_RCCEx_PeriphCLKConfig+0xd08>
  29814. 800cd84: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  29815. 800cd88: d82c bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29816. 800cd8a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29817. 800cd8e: d02f beq.n 800cdf0 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  29818. 800cd90: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29819. 800cd94: d826 bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29820. 800cd96: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  29821. 800cd9a: d02b beq.n 800cdf4 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  29822. 800cd9c: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  29823. 800cda0: d820 bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29824. 800cda2: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  29825. 800cda6: d012 beq.n 800cdce <HAL_RCCEx_PeriphCLKConfig+0xcea>
  29826. 800cda8: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  29827. 800cdac: d81a bhi.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29828. 800cdae: 2b00 cmp r3, #0
  29829. 800cdb0: d022 beq.n 800cdf8 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  29830. 800cdb2: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  29831. 800cdb6: d115 bne.n 800cde4 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  29832. /* LPTIM2 clock source configuration done later after clock selection check */
  29833. break;
  29834. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  29835. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29836. 800cdb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29837. 800cdbc: 3308 adds r3, #8
  29838. 800cdbe: 2100 movs r1, #0
  29839. 800cdc0: 4618 mov r0, r3
  29840. 800cdc2: f001 fd0d bl 800e7e0 <RCCEx_PLL2_Config>
  29841. 800cdc6: 4603 mov r3, r0
  29842. 800cdc8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29843. /* LPTIM2 clock source configuration done later after clock selection check */
  29844. break;
  29845. 800cdcc: e015 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29846. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  29847. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29848. 800cdce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29849. 800cdd2: 3328 adds r3, #40 @ 0x28
  29850. 800cdd4: 2102 movs r1, #2
  29851. 800cdd6: 4618 mov r0, r3
  29852. 800cdd8: f001 fdb4 bl 800e944 <RCCEx_PLL3_Config>
  29853. 800cddc: 4603 mov r3, r0
  29854. 800cdde: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29855. /* LPTIM2 clock source configuration done later after clock selection check */
  29856. break;
  29857. 800cde2: e00a b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29858. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  29859. /* LPTIM2 clock source configuration done later after clock selection check */
  29860. break;
  29861. default:
  29862. ret = HAL_ERROR;
  29863. 800cde4: 2301 movs r3, #1
  29864. 800cde6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29865. break;
  29866. 800cdea: e006 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29867. break;
  29868. 800cdec: bf00 nop
  29869. 800cdee: e004 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29870. break;
  29871. 800cdf0: bf00 nop
  29872. 800cdf2: e002 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29873. break;
  29874. 800cdf4: bf00 nop
  29875. 800cdf6: e000 b.n 800cdfa <HAL_RCCEx_PeriphCLKConfig+0xd16>
  29876. break;
  29877. 800cdf8: bf00 nop
  29878. }
  29879. if (ret == HAL_OK)
  29880. 800cdfa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29881. 800cdfe: 2b00 cmp r3, #0
  29882. 800ce00: d10e bne.n 800ce20 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  29883. {
  29884. /* Set the source of LPTIM2 clock*/
  29885. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  29886. 800ce02: 4b06 ldr r3, [pc, #24] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29887. 800ce04: 6d9b ldr r3, [r3, #88] @ 0x58
  29888. 800ce06: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  29889. 800ce0a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29890. 800ce0e: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  29891. 800ce12: 4a02 ldr r2, [pc, #8] @ (800ce1c <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  29892. 800ce14: 430b orrs r3, r1
  29893. 800ce16: 6593 str r3, [r2, #88] @ 0x58
  29894. 800ce18: e006 b.n 800ce28 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  29895. 800ce1a: bf00 nop
  29896. 800ce1c: 58024400 .word 0x58024400
  29897. }
  29898. else
  29899. {
  29900. /* set overall return value */
  29901. status = ret;
  29902. 800ce20: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29903. 800ce24: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29904. }
  29905. }
  29906. /*---------------------------- LPTIM345 configuration -------------------------------*/
  29907. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  29908. 800ce28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29909. 800ce2c: e9d3 2300 ldrd r2, r3, [r3]
  29910. 800ce30: f002 0380 and.w r3, r2, #128 @ 0x80
  29911. 800ce34: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  29912. 800ce38: 2300 movs r3, #0
  29913. 800ce3a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  29914. 800ce3e: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  29915. 800ce42: 460b mov r3, r1
  29916. 800ce44: 4313 orrs r3, r2
  29917. 800ce46: d055 beq.n 800cef4 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  29918. {
  29919. switch (PeriphClkInit->Lptim345ClockSelection)
  29920. 800ce48: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29921. 800ce4c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  29922. 800ce50: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  29923. 800ce54: d033 beq.n 800cebe <HAL_RCCEx_PeriphCLKConfig+0xdda>
  29924. 800ce56: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  29925. 800ce5a: d82c bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29926. 800ce5c: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  29927. 800ce60: d02f beq.n 800cec2 <HAL_RCCEx_PeriphCLKConfig+0xdde>
  29928. 800ce62: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  29929. 800ce66: d826 bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29930. 800ce68: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  29931. 800ce6c: d02b beq.n 800cec6 <HAL_RCCEx_PeriphCLKConfig+0xde2>
  29932. 800ce6e: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  29933. 800ce72: d820 bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29934. 800ce74: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29935. 800ce78: d012 beq.n 800cea0 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  29936. 800ce7a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29937. 800ce7e: d81a bhi.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29938. 800ce80: 2b00 cmp r3, #0
  29939. 800ce82: d022 beq.n 800ceca <HAL_RCCEx_PeriphCLKConfig+0xde6>
  29940. 800ce84: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29941. 800ce88: d115 bne.n 800ceb6 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  29942. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  29943. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29944. break;
  29945. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  29946. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29947. 800ce8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29948. 800ce8e: 3308 adds r3, #8
  29949. 800ce90: 2100 movs r1, #0
  29950. 800ce92: 4618 mov r0, r3
  29951. 800ce94: f001 fca4 bl 800e7e0 <RCCEx_PLL2_Config>
  29952. 800ce98: 4603 mov r3, r0
  29953. 800ce9a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29954. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29955. break;
  29956. 800ce9e: e015 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29957. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  29958. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29959. 800cea0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29960. 800cea4: 3328 adds r3, #40 @ 0x28
  29961. 800cea6: 2102 movs r1, #2
  29962. 800cea8: 4618 mov r0, r3
  29963. 800ceaa: f001 fd4b bl 800e944 <RCCEx_PLL3_Config>
  29964. 800ceae: 4603 mov r3, r0
  29965. 800ceb0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29966. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29967. break;
  29968. 800ceb4: e00a b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29969. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  29970. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  29971. break;
  29972. default:
  29973. ret = HAL_ERROR;
  29974. 800ceb6: 2301 movs r3, #1
  29975. 800ceb8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29976. break;
  29977. 800cebc: e006 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29978. break;
  29979. 800cebe: bf00 nop
  29980. 800cec0: e004 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29981. break;
  29982. 800cec2: bf00 nop
  29983. 800cec4: e002 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29984. break;
  29985. 800cec6: bf00 nop
  29986. 800cec8: e000 b.n 800cecc <HAL_RCCEx_PeriphCLKConfig+0xde8>
  29987. break;
  29988. 800ceca: bf00 nop
  29989. }
  29990. if (ret == HAL_OK)
  29991. 800cecc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29992. 800ced0: 2b00 cmp r3, #0
  29993. 800ced2: d10b bne.n 800ceec <HAL_RCCEx_PeriphCLKConfig+0xe08>
  29994. {
  29995. /* Set the source of LPTIM3/4/5 clock */
  29996. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  29997. 800ced4: 4bbb ldr r3, [pc, #748] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  29998. 800ced6: 6d9b ldr r3, [r3, #88] @ 0x58
  29999. 800ced8: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  30000. 800cedc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30001. 800cee0: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  30002. 800cee4: 4ab7 ldr r2, [pc, #732] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30003. 800cee6: 430b orrs r3, r1
  30004. 800cee8: 6593 str r3, [r2, #88] @ 0x58
  30005. 800ceea: e003 b.n 800cef4 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  30006. }
  30007. else
  30008. {
  30009. /* set overall return value */
  30010. status = ret;
  30011. 800ceec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30012. 800cef0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30013. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  30014. }
  30015. #else
  30016. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  30017. 800cef4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30018. 800cef8: e9d3 2300 ldrd r2, r3, [r3]
  30019. 800cefc: f002 0308 and.w r3, r2, #8
  30020. 800cf00: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  30021. 800cf04: 2300 movs r3, #0
  30022. 800cf06: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  30023. 800cf0a: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  30024. 800cf0e: 460b mov r3, r1
  30025. 800cf10: 4313 orrs r3, r2
  30026. 800cf12: d01e beq.n 800cf52 <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  30027. {
  30028. /* Check the parameters */
  30029. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  30030. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  30031. 800cf14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30032. 800cf18: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  30033. 800cf1c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30034. 800cf20: d10c bne.n 800cf3c <HAL_RCCEx_PeriphCLKConfig+0xe58>
  30035. {
  30036. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  30037. 800cf22: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30038. 800cf26: 3328 adds r3, #40 @ 0x28
  30039. 800cf28: 2102 movs r1, #2
  30040. 800cf2a: 4618 mov r0, r3
  30041. 800cf2c: f001 fd0a bl 800e944 <RCCEx_PLL3_Config>
  30042. 800cf30: 4603 mov r3, r0
  30043. 800cf32: 2b00 cmp r3, #0
  30044. 800cf34: d002 beq.n 800cf3c <HAL_RCCEx_PeriphCLKConfig+0xe58>
  30045. {
  30046. status = HAL_ERROR;
  30047. 800cf36: 2301 movs r3, #1
  30048. 800cf38: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30049. }
  30050. }
  30051. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  30052. 800cf3c: 4ba1 ldr r3, [pc, #644] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30053. 800cf3e: 6d5b ldr r3, [r3, #84] @ 0x54
  30054. 800cf40: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  30055. 800cf44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30056. 800cf48: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  30057. 800cf4c: 4a9d ldr r2, [pc, #628] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30058. 800cf4e: 430b orrs r3, r1
  30059. 800cf50: 6553 str r3, [r2, #84] @ 0x54
  30060. }
  30061. #endif /* I2C5 */
  30062. /*------------------------------ I2C4 Configuration ------------------------*/
  30063. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  30064. 800cf52: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30065. 800cf56: e9d3 2300 ldrd r2, r3, [r3]
  30066. 800cf5a: f002 0310 and.w r3, r2, #16
  30067. 800cf5e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  30068. 800cf62: 2300 movs r3, #0
  30069. 800cf64: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  30070. 800cf68: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  30071. 800cf6c: 460b mov r3, r1
  30072. 800cf6e: 4313 orrs r3, r2
  30073. 800cf70: d01e beq.n 800cfb0 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  30074. {
  30075. /* Check the parameters */
  30076. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  30077. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  30078. 800cf72: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30079. 800cf76: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  30080. 800cf7a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30081. 800cf7e: d10c bne.n 800cf9a <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  30082. {
  30083. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  30084. 800cf80: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30085. 800cf84: 3328 adds r3, #40 @ 0x28
  30086. 800cf86: 2102 movs r1, #2
  30087. 800cf88: 4618 mov r0, r3
  30088. 800cf8a: f001 fcdb bl 800e944 <RCCEx_PLL3_Config>
  30089. 800cf8e: 4603 mov r3, r0
  30090. 800cf90: 2b00 cmp r3, #0
  30091. 800cf92: d002 beq.n 800cf9a <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  30092. {
  30093. status = HAL_ERROR;
  30094. 800cf94: 2301 movs r3, #1
  30095. 800cf96: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30096. }
  30097. }
  30098. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  30099. 800cf9a: 4b8a ldr r3, [pc, #552] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30100. 800cf9c: 6d9b ldr r3, [r3, #88] @ 0x58
  30101. 800cf9e: f423 7140 bic.w r1, r3, #768 @ 0x300
  30102. 800cfa2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30103. 800cfa6: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  30104. 800cfaa: 4a86 ldr r2, [pc, #536] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30105. 800cfac: 430b orrs r3, r1
  30106. 800cfae: 6593 str r3, [r2, #88] @ 0x58
  30107. }
  30108. /*---------------------------- ADC configuration -------------------------------*/
  30109. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  30110. 800cfb0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30111. 800cfb4: e9d3 2300 ldrd r2, r3, [r3]
  30112. 800cfb8: f402 2300 and.w r3, r2, #524288 @ 0x80000
  30113. 800cfbc: 67bb str r3, [r7, #120] @ 0x78
  30114. 800cfbe: 2300 movs r3, #0
  30115. 800cfc0: 67fb str r3, [r7, #124] @ 0x7c
  30116. 800cfc2: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  30117. 800cfc6: 460b mov r3, r1
  30118. 800cfc8: 4313 orrs r3, r2
  30119. 800cfca: d03e beq.n 800d04a <HAL_RCCEx_PeriphCLKConfig+0xf66>
  30120. {
  30121. switch (PeriphClkInit->AdcClockSelection)
  30122. 800cfcc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30123. 800cfd0: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  30124. 800cfd4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30125. 800cfd8: d022 beq.n 800d020 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  30126. 800cfda: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30127. 800cfde: d81b bhi.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  30128. 800cfe0: 2b00 cmp r3, #0
  30129. 800cfe2: d003 beq.n 800cfec <HAL_RCCEx_PeriphCLKConfig+0xf08>
  30130. 800cfe4: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  30131. 800cfe8: d00b beq.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  30132. 800cfea: e015 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  30133. {
  30134. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  30135. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30136. 800cfec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30137. 800cff0: 3308 adds r3, #8
  30138. 800cff2: 2100 movs r1, #0
  30139. 800cff4: 4618 mov r0, r3
  30140. 800cff6: f001 fbf3 bl 800e7e0 <RCCEx_PLL2_Config>
  30141. 800cffa: 4603 mov r3, r0
  30142. 800cffc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30143. /* ADC clock source configuration done later after clock selection check */
  30144. break;
  30145. 800d000: e00f b.n 800d022 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30146. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  30147. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30148. 800d002: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30149. 800d006: 3328 adds r3, #40 @ 0x28
  30150. 800d008: 2102 movs r1, #2
  30151. 800d00a: 4618 mov r0, r3
  30152. 800d00c: f001 fc9a bl 800e944 <RCCEx_PLL3_Config>
  30153. 800d010: 4603 mov r3, r0
  30154. 800d012: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30155. /* ADC clock source configuration done later after clock selection check */
  30156. break;
  30157. 800d016: e004 b.n 800d022 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30158. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  30159. /* ADC clock source configuration done later after clock selection check */
  30160. break;
  30161. default:
  30162. ret = HAL_ERROR;
  30163. 800d018: 2301 movs r3, #1
  30164. 800d01a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30165. break;
  30166. 800d01e: e000 b.n 800d022 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30167. break;
  30168. 800d020: bf00 nop
  30169. }
  30170. if (ret == HAL_OK)
  30171. 800d022: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30172. 800d026: 2b00 cmp r3, #0
  30173. 800d028: d10b bne.n 800d042 <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  30174. {
  30175. /* Set the source of ADC clock*/
  30176. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  30177. 800d02a: 4b66 ldr r3, [pc, #408] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30178. 800d02c: 6d9b ldr r3, [r3, #88] @ 0x58
  30179. 800d02e: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  30180. 800d032: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30181. 800d036: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  30182. 800d03a: 4a62 ldr r2, [pc, #392] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30183. 800d03c: 430b orrs r3, r1
  30184. 800d03e: 6593 str r3, [r2, #88] @ 0x58
  30185. 800d040: e003 b.n 800d04a <HAL_RCCEx_PeriphCLKConfig+0xf66>
  30186. }
  30187. else
  30188. {
  30189. /* set overall return value */
  30190. status = ret;
  30191. 800d042: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30192. 800d046: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30193. }
  30194. }
  30195. /*------------------------------ USB Configuration -------------------------*/
  30196. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  30197. 800d04a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30198. 800d04e: e9d3 2300 ldrd r2, r3, [r3]
  30199. 800d052: f402 2380 and.w r3, r2, #262144 @ 0x40000
  30200. 800d056: 673b str r3, [r7, #112] @ 0x70
  30201. 800d058: 2300 movs r3, #0
  30202. 800d05a: 677b str r3, [r7, #116] @ 0x74
  30203. 800d05c: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  30204. 800d060: 460b mov r3, r1
  30205. 800d062: 4313 orrs r3, r2
  30206. 800d064: d03b beq.n 800d0de <HAL_RCCEx_PeriphCLKConfig+0xffa>
  30207. {
  30208. switch (PeriphClkInit->UsbClockSelection)
  30209. 800d066: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30210. 800d06a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30211. 800d06e: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  30212. 800d072: d01f beq.n 800d0b4 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  30213. 800d074: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  30214. 800d078: d818 bhi.n 800d0ac <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  30215. 800d07a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  30216. 800d07e: d003 beq.n 800d088 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  30217. 800d080: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  30218. 800d084: d007 beq.n 800d096 <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  30219. 800d086: e011 b.n 800d0ac <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  30220. {
  30221. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  30222. /* Enable USB Clock output generated form System USB . */
  30223. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30224. 800d088: 4b4e ldr r3, [pc, #312] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30225. 800d08a: 6adb ldr r3, [r3, #44] @ 0x2c
  30226. 800d08c: 4a4d ldr r2, [pc, #308] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30227. 800d08e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30228. 800d092: 62d3 str r3, [r2, #44] @ 0x2c
  30229. /* USB clock source configuration done later after clock selection check */
  30230. break;
  30231. 800d094: e00f b.n 800d0b6 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30232. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  30233. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30234. 800d096: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30235. 800d09a: 3328 adds r3, #40 @ 0x28
  30236. 800d09c: 2101 movs r1, #1
  30237. 800d09e: 4618 mov r0, r3
  30238. 800d0a0: f001 fc50 bl 800e944 <RCCEx_PLL3_Config>
  30239. 800d0a4: 4603 mov r3, r0
  30240. 800d0a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30241. /* USB clock source configuration done later after clock selection check */
  30242. break;
  30243. 800d0aa: e004 b.n 800d0b6 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30244. /* HSI48 oscillator is used as source of USB clock */
  30245. /* USB clock source configuration done later after clock selection check */
  30246. break;
  30247. default:
  30248. ret = HAL_ERROR;
  30249. 800d0ac: 2301 movs r3, #1
  30250. 800d0ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30251. break;
  30252. 800d0b2: e000 b.n 800d0b6 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30253. break;
  30254. 800d0b4: bf00 nop
  30255. }
  30256. if (ret == HAL_OK)
  30257. 800d0b6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30258. 800d0ba: 2b00 cmp r3, #0
  30259. 800d0bc: d10b bne.n 800d0d6 <HAL_RCCEx_PeriphCLKConfig+0xff2>
  30260. {
  30261. /* Set the source of USB clock*/
  30262. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  30263. 800d0be: 4b41 ldr r3, [pc, #260] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30264. 800d0c0: 6d5b ldr r3, [r3, #84] @ 0x54
  30265. 800d0c2: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  30266. 800d0c6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30267. 800d0ca: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30268. 800d0ce: 4a3d ldr r2, [pc, #244] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30269. 800d0d0: 430b orrs r3, r1
  30270. 800d0d2: 6553 str r3, [r2, #84] @ 0x54
  30271. 800d0d4: e003 b.n 800d0de <HAL_RCCEx_PeriphCLKConfig+0xffa>
  30272. }
  30273. else
  30274. {
  30275. /* set overall return value */
  30276. status = ret;
  30277. 800d0d6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30278. 800d0da: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30279. }
  30280. }
  30281. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  30282. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  30283. 800d0de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30284. 800d0e2: e9d3 2300 ldrd r2, r3, [r3]
  30285. 800d0e6: f402 3380 and.w r3, r2, #65536 @ 0x10000
  30286. 800d0ea: 66bb str r3, [r7, #104] @ 0x68
  30287. 800d0ec: 2300 movs r3, #0
  30288. 800d0ee: 66fb str r3, [r7, #108] @ 0x6c
  30289. 800d0f0: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  30290. 800d0f4: 460b mov r3, r1
  30291. 800d0f6: 4313 orrs r3, r2
  30292. 800d0f8: d031 beq.n 800d15e <HAL_RCCEx_PeriphCLKConfig+0x107a>
  30293. {
  30294. /* Check the parameters */
  30295. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  30296. switch (PeriphClkInit->SdmmcClockSelection)
  30297. 800d0fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30298. 800d0fe: 6d1b ldr r3, [r3, #80] @ 0x50
  30299. 800d100: 2b00 cmp r3, #0
  30300. 800d102: d003 beq.n 800d10c <HAL_RCCEx_PeriphCLKConfig+0x1028>
  30301. 800d104: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  30302. 800d108: d007 beq.n 800d11a <HAL_RCCEx_PeriphCLKConfig+0x1036>
  30303. 800d10a: e011 b.n 800d130 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  30304. {
  30305. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  30306. /* Enable SDMMC Clock output generated form System PLL . */
  30307. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30308. 800d10c: 4b2d ldr r3, [pc, #180] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30309. 800d10e: 6adb ldr r3, [r3, #44] @ 0x2c
  30310. 800d110: 4a2c ldr r2, [pc, #176] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30311. 800d112: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30312. 800d116: 62d3 str r3, [r2, #44] @ 0x2c
  30313. /* SDMMC clock source configuration done later after clock selection check */
  30314. break;
  30315. 800d118: e00e b.n 800d138 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  30316. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  30317. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30318. 800d11a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30319. 800d11e: 3308 adds r3, #8
  30320. 800d120: 2102 movs r1, #2
  30321. 800d122: 4618 mov r0, r3
  30322. 800d124: f001 fb5c bl 800e7e0 <RCCEx_PLL2_Config>
  30323. 800d128: 4603 mov r3, r0
  30324. 800d12a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30325. /* SDMMC clock source configuration done later after clock selection check */
  30326. break;
  30327. 800d12e: e003 b.n 800d138 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  30328. default:
  30329. ret = HAL_ERROR;
  30330. 800d130: 2301 movs r3, #1
  30331. 800d132: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30332. break;
  30333. 800d136: bf00 nop
  30334. }
  30335. if (ret == HAL_OK)
  30336. 800d138: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30337. 800d13c: 2b00 cmp r3, #0
  30338. 800d13e: d10a bne.n 800d156 <HAL_RCCEx_PeriphCLKConfig+0x1072>
  30339. {
  30340. /* Set the source of SDMMC clock*/
  30341. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  30342. 800d140: 4b20 ldr r3, [pc, #128] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30343. 800d142: 6cdb ldr r3, [r3, #76] @ 0x4c
  30344. 800d144: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  30345. 800d148: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30346. 800d14c: 6d1b ldr r3, [r3, #80] @ 0x50
  30347. 800d14e: 4a1d ldr r2, [pc, #116] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30348. 800d150: 430b orrs r3, r1
  30349. 800d152: 64d3 str r3, [r2, #76] @ 0x4c
  30350. 800d154: e003 b.n 800d15e <HAL_RCCEx_PeriphCLKConfig+0x107a>
  30351. }
  30352. else
  30353. {
  30354. /* set overall return value */
  30355. status = ret;
  30356. 800d156: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30357. 800d15a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30358. }
  30359. }
  30360. #endif /* LTDC */
  30361. /*------------------------------ RNG Configuration -------------------------*/
  30362. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  30363. 800d15e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30364. 800d162: e9d3 2300 ldrd r2, r3, [r3]
  30365. 800d166: f402 3300 and.w r3, r2, #131072 @ 0x20000
  30366. 800d16a: 663b str r3, [r7, #96] @ 0x60
  30367. 800d16c: 2300 movs r3, #0
  30368. 800d16e: 667b str r3, [r7, #100] @ 0x64
  30369. 800d170: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  30370. 800d174: 460b mov r3, r1
  30371. 800d176: 4313 orrs r3, r2
  30372. 800d178: d03b beq.n 800d1f2 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  30373. {
  30374. switch (PeriphClkInit->RngClockSelection)
  30375. 800d17a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30376. 800d17e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30377. 800d182: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30378. 800d186: d018 beq.n 800d1ba <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  30379. 800d188: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30380. 800d18c: d811 bhi.n 800d1b2 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30381. 800d18e: f5b3 7f00 cmp.w r3, #512 @ 0x200
  30382. 800d192: d014 beq.n 800d1be <HAL_RCCEx_PeriphCLKConfig+0x10da>
  30383. 800d194: f5b3 7f00 cmp.w r3, #512 @ 0x200
  30384. 800d198: d80b bhi.n 800d1b2 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30385. 800d19a: 2b00 cmp r3, #0
  30386. 800d19c: d014 beq.n 800d1c8 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  30387. 800d19e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30388. 800d1a2: d106 bne.n 800d1b2 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  30389. {
  30390. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  30391. /* Enable RNG Clock output generated form System RNG . */
  30392. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30393. 800d1a4: 4b07 ldr r3, [pc, #28] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30394. 800d1a6: 6adb ldr r3, [r3, #44] @ 0x2c
  30395. 800d1a8: 4a06 ldr r2, [pc, #24] @ (800d1c4 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30396. 800d1aa: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30397. 800d1ae: 62d3 str r3, [r2, #44] @ 0x2c
  30398. /* RNG clock source configuration done later after clock selection check */
  30399. break;
  30400. 800d1b0: e00b b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30401. /* HSI48 oscillator is used as source of RNG clock */
  30402. /* RNG clock source configuration done later after clock selection check */
  30403. break;
  30404. default:
  30405. ret = HAL_ERROR;
  30406. 800d1b2: 2301 movs r3, #1
  30407. 800d1b4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30408. break;
  30409. 800d1b8: e007 b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30410. break;
  30411. 800d1ba: bf00 nop
  30412. 800d1bc: e005 b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30413. break;
  30414. 800d1be: bf00 nop
  30415. 800d1c0: e003 b.n 800d1ca <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  30416. 800d1c2: bf00 nop
  30417. 800d1c4: 58024400 .word 0x58024400
  30418. break;
  30419. 800d1c8: bf00 nop
  30420. }
  30421. if (ret == HAL_OK)
  30422. 800d1ca: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30423. 800d1ce: 2b00 cmp r3, #0
  30424. 800d1d0: d10b bne.n 800d1ea <HAL_RCCEx_PeriphCLKConfig+0x1106>
  30425. {
  30426. /* Set the source of RNG clock*/
  30427. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  30428. 800d1d2: 4bba ldr r3, [pc, #744] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30429. 800d1d4: 6d5b ldr r3, [r3, #84] @ 0x54
  30430. 800d1d6: f423 7140 bic.w r1, r3, #768 @ 0x300
  30431. 800d1da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30432. 800d1de: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  30433. 800d1e2: 4ab6 ldr r2, [pc, #728] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30434. 800d1e4: 430b orrs r3, r1
  30435. 800d1e6: 6553 str r3, [r2, #84] @ 0x54
  30436. 800d1e8: e003 b.n 800d1f2 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  30437. }
  30438. else
  30439. {
  30440. /* set overall return value */
  30441. status = ret;
  30442. 800d1ea: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30443. 800d1ee: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30444. }
  30445. }
  30446. /*------------------------------ SWPMI1 Configuration ------------------------*/
  30447. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  30448. 800d1f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30449. 800d1f6: e9d3 2300 ldrd r2, r3, [r3]
  30450. 800d1fa: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  30451. 800d1fe: 65bb str r3, [r7, #88] @ 0x58
  30452. 800d200: 2300 movs r3, #0
  30453. 800d202: 65fb str r3, [r7, #92] @ 0x5c
  30454. 800d204: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  30455. 800d208: 460b mov r3, r1
  30456. 800d20a: 4313 orrs r3, r2
  30457. 800d20c: d009 beq.n 800d222 <HAL_RCCEx_PeriphCLKConfig+0x113e>
  30458. {
  30459. /* Check the parameters */
  30460. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  30461. /* Configure the SWPMI1 interface clock source */
  30462. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  30463. 800d20e: 4bab ldr r3, [pc, #684] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30464. 800d210: 6d1b ldr r3, [r3, #80] @ 0x50
  30465. 800d212: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  30466. 800d216: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30467. 800d21a: 6f5b ldr r3, [r3, #116] @ 0x74
  30468. 800d21c: 4aa7 ldr r2, [pc, #668] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30469. 800d21e: 430b orrs r3, r1
  30470. 800d220: 6513 str r3, [r2, #80] @ 0x50
  30471. }
  30472. #if defined(HRTIM1)
  30473. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  30474. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  30475. 800d222: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30476. 800d226: e9d3 2300 ldrd r2, r3, [r3]
  30477. 800d22a: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  30478. 800d22e: 653b str r3, [r7, #80] @ 0x50
  30479. 800d230: 2300 movs r3, #0
  30480. 800d232: 657b str r3, [r7, #84] @ 0x54
  30481. 800d234: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  30482. 800d238: 460b mov r3, r1
  30483. 800d23a: 4313 orrs r3, r2
  30484. 800d23c: d00a beq.n 800d254 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  30485. {
  30486. /* Check the parameters */
  30487. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  30488. /* Configure the HRTIM1 clock source */
  30489. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  30490. 800d23e: 4b9f ldr r3, [pc, #636] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30491. 800d240: 691b ldr r3, [r3, #16]
  30492. 800d242: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  30493. 800d246: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30494. 800d24a: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  30495. 800d24e: 4a9b ldr r2, [pc, #620] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30496. 800d250: 430b orrs r3, r1
  30497. 800d252: 6113 str r3, [r2, #16]
  30498. }
  30499. #endif /*HRTIM1*/
  30500. /*------------------------------ DFSDM1 Configuration ------------------------*/
  30501. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  30502. 800d254: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30503. 800d258: e9d3 2300 ldrd r2, r3, [r3]
  30504. 800d25c: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  30505. 800d260: 64bb str r3, [r7, #72] @ 0x48
  30506. 800d262: 2300 movs r3, #0
  30507. 800d264: 64fb str r3, [r7, #76] @ 0x4c
  30508. 800d266: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  30509. 800d26a: 460b mov r3, r1
  30510. 800d26c: 4313 orrs r3, r2
  30511. 800d26e: d009 beq.n 800d284 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  30512. {
  30513. /* Check the parameters */
  30514. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  30515. /* Configure the DFSDM1 interface clock source */
  30516. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  30517. 800d270: 4b92 ldr r3, [pc, #584] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30518. 800d272: 6d1b ldr r3, [r3, #80] @ 0x50
  30519. 800d274: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  30520. 800d278: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30521. 800d27c: 6edb ldr r3, [r3, #108] @ 0x6c
  30522. 800d27e: 4a8f ldr r2, [pc, #572] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30523. 800d280: 430b orrs r3, r1
  30524. 800d282: 6513 str r3, [r2, #80] @ 0x50
  30525. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  30526. }
  30527. #endif /* DFSDM2 */
  30528. /*------------------------------------ TIM configuration --------------------------------------*/
  30529. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  30530. 800d284: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30531. 800d288: e9d3 2300 ldrd r2, r3, [r3]
  30532. 800d28c: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  30533. 800d290: 643b str r3, [r7, #64] @ 0x40
  30534. 800d292: 2300 movs r3, #0
  30535. 800d294: 647b str r3, [r7, #68] @ 0x44
  30536. 800d296: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  30537. 800d29a: 460b mov r3, r1
  30538. 800d29c: 4313 orrs r3, r2
  30539. 800d29e: d00e beq.n 800d2be <HAL_RCCEx_PeriphCLKConfig+0x11da>
  30540. {
  30541. /* Check the parameters */
  30542. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  30543. /* Configure Timer Prescaler */
  30544. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  30545. 800d2a0: 4b86 ldr r3, [pc, #536] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30546. 800d2a2: 691b ldr r3, [r3, #16]
  30547. 800d2a4: 4a85 ldr r2, [pc, #532] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30548. 800d2a6: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  30549. 800d2aa: 6113 str r3, [r2, #16]
  30550. 800d2ac: 4b83 ldr r3, [pc, #524] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30551. 800d2ae: 6919 ldr r1, [r3, #16]
  30552. 800d2b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30553. 800d2b4: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  30554. 800d2b8: 4a80 ldr r2, [pc, #512] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30555. 800d2ba: 430b orrs r3, r1
  30556. 800d2bc: 6113 str r3, [r2, #16]
  30557. }
  30558. /*------------------------------------ CKPER configuration --------------------------------------*/
  30559. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  30560. 800d2be: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30561. 800d2c2: e9d3 2300 ldrd r2, r3, [r3]
  30562. 800d2c6: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  30563. 800d2ca: 63bb str r3, [r7, #56] @ 0x38
  30564. 800d2cc: 2300 movs r3, #0
  30565. 800d2ce: 63fb str r3, [r7, #60] @ 0x3c
  30566. 800d2d0: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  30567. 800d2d4: 460b mov r3, r1
  30568. 800d2d6: 4313 orrs r3, r2
  30569. 800d2d8: d009 beq.n 800d2ee <HAL_RCCEx_PeriphCLKConfig+0x120a>
  30570. {
  30571. /* Check the parameters */
  30572. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  30573. /* Configure the CKPER clock source */
  30574. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  30575. 800d2da: 4b78 ldr r3, [pc, #480] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30576. 800d2dc: 6cdb ldr r3, [r3, #76] @ 0x4c
  30577. 800d2de: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  30578. 800d2e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30579. 800d2e6: 6d5b ldr r3, [r3, #84] @ 0x54
  30580. 800d2e8: 4a74 ldr r2, [pc, #464] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30581. 800d2ea: 430b orrs r3, r1
  30582. 800d2ec: 64d3 str r3, [r2, #76] @ 0x4c
  30583. }
  30584. /*------------------------------ CEC Configuration ------------------------*/
  30585. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  30586. 800d2ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30587. 800d2f2: e9d3 2300 ldrd r2, r3, [r3]
  30588. 800d2f6: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  30589. 800d2fa: 633b str r3, [r7, #48] @ 0x30
  30590. 800d2fc: 2300 movs r3, #0
  30591. 800d2fe: 637b str r3, [r7, #52] @ 0x34
  30592. 800d300: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  30593. 800d304: 460b mov r3, r1
  30594. 800d306: 4313 orrs r3, r2
  30595. 800d308: d00a beq.n 800d320 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  30596. {
  30597. /* Check the parameters */
  30598. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  30599. /* Configure the CEC interface clock source */
  30600. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  30601. 800d30a: 4b6c ldr r3, [pc, #432] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30602. 800d30c: 6d5b ldr r3, [r3, #84] @ 0x54
  30603. 800d30e: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  30604. 800d312: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30605. 800d316: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  30606. 800d31a: 4a68 ldr r2, [pc, #416] @ (800d4bc <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  30607. 800d31c: 430b orrs r3, r1
  30608. 800d31e: 6553 str r3, [r2, #84] @ 0x54
  30609. }
  30610. /*---------------------------- PLL2 configuration -------------------------------*/
  30611. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  30612. 800d320: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30613. 800d324: e9d3 2300 ldrd r2, r3, [r3]
  30614. 800d328: 2100 movs r1, #0
  30615. 800d32a: 62b9 str r1, [r7, #40] @ 0x28
  30616. 800d32c: f003 0301 and.w r3, r3, #1
  30617. 800d330: 62fb str r3, [r7, #44] @ 0x2c
  30618. 800d332: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  30619. 800d336: 460b mov r3, r1
  30620. 800d338: 4313 orrs r3, r2
  30621. 800d33a: d011 beq.n 800d360 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  30622. {
  30623. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30624. 800d33c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30625. 800d340: 3308 adds r3, #8
  30626. 800d342: 2100 movs r1, #0
  30627. 800d344: 4618 mov r0, r3
  30628. 800d346: f001 fa4b bl 800e7e0 <RCCEx_PLL2_Config>
  30629. 800d34a: 4603 mov r3, r0
  30630. 800d34c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30631. if (ret == HAL_OK)
  30632. 800d350: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30633. 800d354: 2b00 cmp r3, #0
  30634. 800d356: d003 beq.n 800d360 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  30635. /*Nothing to do*/
  30636. }
  30637. else
  30638. {
  30639. /* set overall return value */
  30640. status = ret;
  30641. 800d358: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30642. 800d35c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30643. }
  30644. }
  30645. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  30646. 800d360: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30647. 800d364: e9d3 2300 ldrd r2, r3, [r3]
  30648. 800d368: 2100 movs r1, #0
  30649. 800d36a: 6239 str r1, [r7, #32]
  30650. 800d36c: f003 0302 and.w r3, r3, #2
  30651. 800d370: 627b str r3, [r7, #36] @ 0x24
  30652. 800d372: e9d7 1208 ldrd r1, r2, [r7, #32]
  30653. 800d376: 460b mov r3, r1
  30654. 800d378: 4313 orrs r3, r2
  30655. 800d37a: d011 beq.n 800d3a0 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  30656. {
  30657. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30658. 800d37c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30659. 800d380: 3308 adds r3, #8
  30660. 800d382: 2101 movs r1, #1
  30661. 800d384: 4618 mov r0, r3
  30662. 800d386: f001 fa2b bl 800e7e0 <RCCEx_PLL2_Config>
  30663. 800d38a: 4603 mov r3, r0
  30664. 800d38c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30665. if (ret == HAL_OK)
  30666. 800d390: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30667. 800d394: 2b00 cmp r3, #0
  30668. 800d396: d003 beq.n 800d3a0 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  30669. /*Nothing to do*/
  30670. }
  30671. else
  30672. {
  30673. /* set overall return value */
  30674. status = ret;
  30675. 800d398: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30676. 800d39c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30677. }
  30678. }
  30679. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  30680. 800d3a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30681. 800d3a4: e9d3 2300 ldrd r2, r3, [r3]
  30682. 800d3a8: 2100 movs r1, #0
  30683. 800d3aa: 61b9 str r1, [r7, #24]
  30684. 800d3ac: f003 0304 and.w r3, r3, #4
  30685. 800d3b0: 61fb str r3, [r7, #28]
  30686. 800d3b2: e9d7 1206 ldrd r1, r2, [r7, #24]
  30687. 800d3b6: 460b mov r3, r1
  30688. 800d3b8: 4313 orrs r3, r2
  30689. 800d3ba: d011 beq.n 800d3e0 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  30690. {
  30691. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30692. 800d3bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30693. 800d3c0: 3308 adds r3, #8
  30694. 800d3c2: 2102 movs r1, #2
  30695. 800d3c4: 4618 mov r0, r3
  30696. 800d3c6: f001 fa0b bl 800e7e0 <RCCEx_PLL2_Config>
  30697. 800d3ca: 4603 mov r3, r0
  30698. 800d3cc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30699. if (ret == HAL_OK)
  30700. 800d3d0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30701. 800d3d4: 2b00 cmp r3, #0
  30702. 800d3d6: d003 beq.n 800d3e0 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  30703. /*Nothing to do*/
  30704. }
  30705. else
  30706. {
  30707. /* set overall return value */
  30708. status = ret;
  30709. 800d3d8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30710. 800d3dc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30711. }
  30712. }
  30713. /*---------------------------- PLL3 configuration -------------------------------*/
  30714. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  30715. 800d3e0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30716. 800d3e4: e9d3 2300 ldrd r2, r3, [r3]
  30717. 800d3e8: 2100 movs r1, #0
  30718. 800d3ea: 6139 str r1, [r7, #16]
  30719. 800d3ec: f003 0308 and.w r3, r3, #8
  30720. 800d3f0: 617b str r3, [r7, #20]
  30721. 800d3f2: e9d7 1204 ldrd r1, r2, [r7, #16]
  30722. 800d3f6: 460b mov r3, r1
  30723. 800d3f8: 4313 orrs r3, r2
  30724. 800d3fa: d011 beq.n 800d420 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  30725. {
  30726. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  30727. 800d3fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30728. 800d400: 3328 adds r3, #40 @ 0x28
  30729. 800d402: 2100 movs r1, #0
  30730. 800d404: 4618 mov r0, r3
  30731. 800d406: f001 fa9d bl 800e944 <RCCEx_PLL3_Config>
  30732. 800d40a: 4603 mov r3, r0
  30733. 800d40c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30734. if (ret == HAL_OK)
  30735. 800d410: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30736. 800d414: 2b00 cmp r3, #0
  30737. 800d416: d003 beq.n 800d420 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  30738. /*Nothing to do*/
  30739. }
  30740. else
  30741. {
  30742. /* set overall return value */
  30743. status = ret;
  30744. 800d418: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30745. 800d41c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30746. }
  30747. }
  30748. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  30749. 800d420: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30750. 800d424: e9d3 2300 ldrd r2, r3, [r3]
  30751. 800d428: 2100 movs r1, #0
  30752. 800d42a: 60b9 str r1, [r7, #8]
  30753. 800d42c: f003 0310 and.w r3, r3, #16
  30754. 800d430: 60fb str r3, [r7, #12]
  30755. 800d432: e9d7 1202 ldrd r1, r2, [r7, #8]
  30756. 800d436: 460b mov r3, r1
  30757. 800d438: 4313 orrs r3, r2
  30758. 800d43a: d011 beq.n 800d460 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  30759. {
  30760. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30761. 800d43c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30762. 800d440: 3328 adds r3, #40 @ 0x28
  30763. 800d442: 2101 movs r1, #1
  30764. 800d444: 4618 mov r0, r3
  30765. 800d446: f001 fa7d bl 800e944 <RCCEx_PLL3_Config>
  30766. 800d44a: 4603 mov r3, r0
  30767. 800d44c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30768. if (ret == HAL_OK)
  30769. 800d450: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30770. 800d454: 2b00 cmp r3, #0
  30771. 800d456: d003 beq.n 800d460 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  30772. /*Nothing to do*/
  30773. }
  30774. else
  30775. {
  30776. /* set overall return value */
  30777. status = ret;
  30778. 800d458: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30779. 800d45c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30780. }
  30781. }
  30782. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  30783. 800d460: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30784. 800d464: e9d3 2300 ldrd r2, r3, [r3]
  30785. 800d468: 2100 movs r1, #0
  30786. 800d46a: 6039 str r1, [r7, #0]
  30787. 800d46c: f003 0320 and.w r3, r3, #32
  30788. 800d470: 607b str r3, [r7, #4]
  30789. 800d472: e9d7 1200 ldrd r1, r2, [r7]
  30790. 800d476: 460b mov r3, r1
  30791. 800d478: 4313 orrs r3, r2
  30792. 800d47a: d011 beq.n 800d4a0 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  30793. {
  30794. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30795. 800d47c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30796. 800d480: 3328 adds r3, #40 @ 0x28
  30797. 800d482: 2102 movs r1, #2
  30798. 800d484: 4618 mov r0, r3
  30799. 800d486: f001 fa5d bl 800e944 <RCCEx_PLL3_Config>
  30800. 800d48a: 4603 mov r3, r0
  30801. 800d48c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30802. if (ret == HAL_OK)
  30803. 800d490: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30804. 800d494: 2b00 cmp r3, #0
  30805. 800d496: d003 beq.n 800d4a0 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  30806. /*Nothing to do*/
  30807. }
  30808. else
  30809. {
  30810. /* set overall return value */
  30811. status = ret;
  30812. 800d498: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30813. 800d49c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30814. }
  30815. }
  30816. if (status == HAL_OK)
  30817. 800d4a0: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  30818. 800d4a4: 2b00 cmp r3, #0
  30819. 800d4a6: d101 bne.n 800d4ac <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  30820. {
  30821. return HAL_OK;
  30822. 800d4a8: 2300 movs r3, #0
  30823. 800d4aa: e000 b.n 800d4ae <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  30824. }
  30825. return HAL_ERROR;
  30826. 800d4ac: 2301 movs r3, #1
  30827. }
  30828. 800d4ae: 4618 mov r0, r3
  30829. 800d4b0: f507 7790 add.w r7, r7, #288 @ 0x120
  30830. 800d4b4: 46bd mov sp, r7
  30831. 800d4b6: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  30832. 800d4ba: bf00 nop
  30833. 800d4bc: 58024400 .word 0x58024400
  30834. 0800d4c0 <HAL_RCCEx_GetPeriphCLKFreq>:
  30835. * @retval Frequency in KHz
  30836. *
  30837. * (*) : Available on some STM32H7 lines only.
  30838. */
  30839. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  30840. {
  30841. 800d4c0: b580 push {r7, lr}
  30842. 800d4c2: b090 sub sp, #64 @ 0x40
  30843. 800d4c4: af00 add r7, sp, #0
  30844. 800d4c6: e9c7 0100 strd r0, r1, [r7]
  30845. /* This variable is used to store the SAI and CKP clock source */
  30846. uint32_t saiclocksource;
  30847. uint32_t ckpclocksource;
  30848. uint32_t srcclk;
  30849. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  30850. 800d4ca: e9d7 2300 ldrd r2, r3, [r7]
  30851. 800d4ce: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  30852. 800d4d2: 430b orrs r3, r1
  30853. 800d4d4: f040 8094 bne.w 800d600 <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  30854. {
  30855. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  30856. 800d4d8: 4b9e ldr r3, [pc, #632] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30857. 800d4da: 6d1b ldr r3, [r3, #80] @ 0x50
  30858. 800d4dc: f003 0307 and.w r3, r3, #7
  30859. 800d4e0: 633b str r3, [r7, #48] @ 0x30
  30860. switch (saiclocksource)
  30861. 800d4e2: 6b3b ldr r3, [r7, #48] @ 0x30
  30862. 800d4e4: 2b04 cmp r3, #4
  30863. 800d4e6: f200 8087 bhi.w 800d5f8 <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  30864. 800d4ea: a201 add r2, pc, #4 @ (adr r2, 800d4f0 <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  30865. 800d4ec: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30866. 800d4f0: 0800d505 .word 0x0800d505
  30867. 800d4f4: 0800d52d .word 0x0800d52d
  30868. 800d4f8: 0800d555 .word 0x0800d555
  30869. 800d4fc: 0800d5f1 .word 0x0800d5f1
  30870. 800d500: 0800d57d .word 0x0800d57d
  30871. {
  30872. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  30873. {
  30874. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  30875. 800d504: 4b93 ldr r3, [pc, #588] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30876. 800d506: 681b ldr r3, [r3, #0]
  30877. 800d508: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  30878. 800d50c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  30879. 800d510: d108 bne.n 800d524 <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  30880. {
  30881. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  30882. 800d512: f107 0324 add.w r3, r7, #36 @ 0x24
  30883. 800d516: 4618 mov r0, r3
  30884. 800d518: f001 f810 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  30885. frequency = pll1_clocks.PLL1_Q_Frequency;
  30886. 800d51c: 6abb ldr r3, [r7, #40] @ 0x28
  30887. 800d51e: 63fb str r3, [r7, #60] @ 0x3c
  30888. }
  30889. else
  30890. {
  30891. frequency = 0;
  30892. }
  30893. break;
  30894. 800d520: f000 bd45 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30895. frequency = 0;
  30896. 800d524: 2300 movs r3, #0
  30897. 800d526: 63fb str r3, [r7, #60] @ 0x3c
  30898. break;
  30899. 800d528: f000 bd41 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30900. }
  30901. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  30902. {
  30903. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  30904. 800d52c: 4b89 ldr r3, [pc, #548] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30905. 800d52e: 681b ldr r3, [r3, #0]
  30906. 800d530: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  30907. 800d534: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  30908. 800d538: d108 bne.n 800d54c <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  30909. {
  30910. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  30911. 800d53a: f107 0318 add.w r3, r7, #24
  30912. 800d53e: 4618 mov r0, r3
  30913. 800d540: f000 fd54 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  30914. frequency = pll2_clocks.PLL2_P_Frequency;
  30915. 800d544: 69bb ldr r3, [r7, #24]
  30916. 800d546: 63fb str r3, [r7, #60] @ 0x3c
  30917. }
  30918. else
  30919. {
  30920. frequency = 0;
  30921. }
  30922. break;
  30923. 800d548: f000 bd31 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30924. frequency = 0;
  30925. 800d54c: 2300 movs r3, #0
  30926. 800d54e: 63fb str r3, [r7, #60] @ 0x3c
  30927. break;
  30928. 800d550: f000 bd2d b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30929. }
  30930. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  30931. {
  30932. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  30933. 800d554: 4b7f ldr r3, [pc, #508] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30934. 800d556: 681b ldr r3, [r3, #0]
  30935. 800d558: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  30936. 800d55c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30937. 800d560: d108 bne.n 800d574 <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  30938. {
  30939. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  30940. 800d562: f107 030c add.w r3, r7, #12
  30941. 800d566: 4618 mov r0, r3
  30942. 800d568: f000 fe94 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  30943. frequency = pll3_clocks.PLL3_P_Frequency;
  30944. 800d56c: 68fb ldr r3, [r7, #12]
  30945. 800d56e: 63fb str r3, [r7, #60] @ 0x3c
  30946. }
  30947. else
  30948. {
  30949. frequency = 0;
  30950. }
  30951. break;
  30952. 800d570: f000 bd1d b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30953. frequency = 0;
  30954. 800d574: 2300 movs r3, #0
  30955. 800d576: 63fb str r3, [r7, #60] @ 0x3c
  30956. break;
  30957. 800d578: f000 bd19 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  30958. }
  30959. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  30960. {
  30961. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  30962. 800d57c: 4b75 ldr r3, [pc, #468] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30963. 800d57e: 6cdb ldr r3, [r3, #76] @ 0x4c
  30964. 800d580: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  30965. 800d584: 637b str r3, [r7, #52] @ 0x34
  30966. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  30967. 800d586: 4b73 ldr r3, [pc, #460] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30968. 800d588: 681b ldr r3, [r3, #0]
  30969. 800d58a: f003 0304 and.w r3, r3, #4
  30970. 800d58e: 2b04 cmp r3, #4
  30971. 800d590: d10c bne.n 800d5ac <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  30972. 800d592: 6b7b ldr r3, [r7, #52] @ 0x34
  30973. 800d594: 2b00 cmp r3, #0
  30974. 800d596: d109 bne.n 800d5ac <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  30975. {
  30976. /* In Case the CKPER Source is HSI */
  30977. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  30978. 800d598: 4b6e ldr r3, [pc, #440] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30979. 800d59a: 681b ldr r3, [r3, #0]
  30980. 800d59c: 08db lsrs r3, r3, #3
  30981. 800d59e: f003 0303 and.w r3, r3, #3
  30982. 800d5a2: 4a6d ldr r2, [pc, #436] @ (800d758 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  30983. 800d5a4: fa22 f303 lsr.w r3, r2, r3
  30984. 800d5a8: 63fb str r3, [r7, #60] @ 0x3c
  30985. 800d5aa: e01f b.n 800d5ec <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  30986. }
  30987. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  30988. 800d5ac: 4b69 ldr r3, [pc, #420] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  30989. 800d5ae: 681b ldr r3, [r3, #0]
  30990. 800d5b0: f403 7380 and.w r3, r3, #256 @ 0x100
  30991. 800d5b4: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30992. 800d5b8: d106 bne.n 800d5c8 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  30993. 800d5ba: 6b7b ldr r3, [r7, #52] @ 0x34
  30994. 800d5bc: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30995. 800d5c0: d102 bne.n 800d5c8 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  30996. {
  30997. /* In Case the CKPER Source is CSI */
  30998. frequency = CSI_VALUE;
  30999. 800d5c2: 4b66 ldr r3, [pc, #408] @ (800d75c <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  31000. 800d5c4: 63fb str r3, [r7, #60] @ 0x3c
  31001. 800d5c6: e011 b.n 800d5ec <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  31002. }
  31003. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31004. 800d5c8: 4b62 ldr r3, [pc, #392] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31005. 800d5ca: 681b ldr r3, [r3, #0]
  31006. 800d5cc: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31007. 800d5d0: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31008. 800d5d4: d106 bne.n 800d5e4 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  31009. 800d5d6: 6b7b ldr r3, [r7, #52] @ 0x34
  31010. 800d5d8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31011. 800d5dc: d102 bne.n 800d5e4 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  31012. {
  31013. /* In Case the CKPER Source is HSE */
  31014. frequency = HSE_VALUE;
  31015. 800d5de: 4b60 ldr r3, [pc, #384] @ (800d760 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  31016. 800d5e0: 63fb str r3, [r7, #60] @ 0x3c
  31017. 800d5e2: e003 b.n 800d5ec <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  31018. }
  31019. else
  31020. {
  31021. /* In Case the CKPER is disabled*/
  31022. frequency = 0;
  31023. 800d5e4: 2300 movs r3, #0
  31024. 800d5e6: 63fb str r3, [r7, #60] @ 0x3c
  31025. }
  31026. break;
  31027. 800d5e8: f000 bce1 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31028. 800d5ec: f000 bcdf b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31029. }
  31030. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  31031. {
  31032. frequency = EXTERNAL_CLOCK_VALUE;
  31033. 800d5f0: 4b5c ldr r3, [pc, #368] @ (800d764 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  31034. 800d5f2: 63fb str r3, [r7, #60] @ 0x3c
  31035. break;
  31036. 800d5f4: f000 bcdb b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31037. }
  31038. default :
  31039. {
  31040. frequency = 0;
  31041. 800d5f8: 2300 movs r3, #0
  31042. 800d5fa: 63fb str r3, [r7, #60] @ 0x3c
  31043. break;
  31044. 800d5fc: f000 bcd7 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31045. }
  31046. }
  31047. }
  31048. #if defined(SAI3)
  31049. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  31050. 800d600: e9d7 2300 ldrd r2, r3, [r7]
  31051. 800d604: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  31052. 800d608: 430b orrs r3, r1
  31053. 800d60a: f040 80ad bne.w 800d768 <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  31054. {
  31055. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  31056. 800d60e: 4b51 ldr r3, [pc, #324] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31057. 800d610: 6d1b ldr r3, [r3, #80] @ 0x50
  31058. 800d612: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  31059. 800d616: 633b str r3, [r7, #48] @ 0x30
  31060. switch (saiclocksource)
  31061. 800d618: 6b3b ldr r3, [r7, #48] @ 0x30
  31062. 800d61a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31063. 800d61e: d056 beq.n 800d6ce <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  31064. 800d620: 6b3b ldr r3, [r7, #48] @ 0x30
  31065. 800d622: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31066. 800d626: f200 8090 bhi.w 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31067. 800d62a: 6b3b ldr r3, [r7, #48] @ 0x30
  31068. 800d62c: 2bc0 cmp r3, #192 @ 0xc0
  31069. 800d62e: f000 8088 beq.w 800d742 <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  31070. 800d632: 6b3b ldr r3, [r7, #48] @ 0x30
  31071. 800d634: 2bc0 cmp r3, #192 @ 0xc0
  31072. 800d636: f200 8088 bhi.w 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31073. 800d63a: 6b3b ldr r3, [r7, #48] @ 0x30
  31074. 800d63c: 2b80 cmp r3, #128 @ 0x80
  31075. 800d63e: d032 beq.n 800d6a6 <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  31076. 800d640: 6b3b ldr r3, [r7, #48] @ 0x30
  31077. 800d642: 2b80 cmp r3, #128 @ 0x80
  31078. 800d644: f200 8081 bhi.w 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31079. 800d648: 6b3b ldr r3, [r7, #48] @ 0x30
  31080. 800d64a: 2b00 cmp r3, #0
  31081. 800d64c: d003 beq.n 800d656 <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  31082. 800d64e: 6b3b ldr r3, [r7, #48] @ 0x30
  31083. 800d650: 2b40 cmp r3, #64 @ 0x40
  31084. 800d652: d014 beq.n 800d67e <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  31085. 800d654: e079 b.n 800d74a <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31086. {
  31087. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  31088. {
  31089. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31090. 800d656: 4b3f ldr r3, [pc, #252] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31091. 800d658: 681b ldr r3, [r3, #0]
  31092. 800d65a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31093. 800d65e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31094. 800d662: d108 bne.n 800d676 <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  31095. {
  31096. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31097. 800d664: f107 0324 add.w r3, r7, #36 @ 0x24
  31098. 800d668: 4618 mov r0, r3
  31099. 800d66a: f000 ff67 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31100. frequency = pll1_clocks.PLL1_Q_Frequency;
  31101. 800d66e: 6abb ldr r3, [r7, #40] @ 0x28
  31102. 800d670: 63fb str r3, [r7, #60] @ 0x3c
  31103. }
  31104. else
  31105. {
  31106. frequency = 0;
  31107. }
  31108. break;
  31109. 800d672: f000 bc9c b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31110. frequency = 0;
  31111. 800d676: 2300 movs r3, #0
  31112. 800d678: 63fb str r3, [r7, #60] @ 0x3c
  31113. break;
  31114. 800d67a: f000 bc98 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31115. }
  31116. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  31117. {
  31118. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31119. 800d67e: 4b35 ldr r3, [pc, #212] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31120. 800d680: 681b ldr r3, [r3, #0]
  31121. 800d682: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31122. 800d686: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31123. 800d68a: d108 bne.n 800d69e <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  31124. {
  31125. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31126. 800d68c: f107 0318 add.w r3, r7, #24
  31127. 800d690: 4618 mov r0, r3
  31128. 800d692: f000 fcab bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31129. frequency = pll2_clocks.PLL2_P_Frequency;
  31130. 800d696: 69bb ldr r3, [r7, #24]
  31131. 800d698: 63fb str r3, [r7, #60] @ 0x3c
  31132. }
  31133. else
  31134. {
  31135. frequency = 0;
  31136. }
  31137. break;
  31138. 800d69a: f000 bc88 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31139. frequency = 0;
  31140. 800d69e: 2300 movs r3, #0
  31141. 800d6a0: 63fb str r3, [r7, #60] @ 0x3c
  31142. break;
  31143. 800d6a2: f000 bc84 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31144. }
  31145. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  31146. {
  31147. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31148. 800d6a6: 4b2b ldr r3, [pc, #172] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31149. 800d6a8: 681b ldr r3, [r3, #0]
  31150. 800d6aa: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31151. 800d6ae: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31152. 800d6b2: d108 bne.n 800d6c6 <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  31153. {
  31154. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31155. 800d6b4: f107 030c add.w r3, r7, #12
  31156. 800d6b8: 4618 mov r0, r3
  31157. 800d6ba: f000 fdeb bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31158. frequency = pll3_clocks.PLL3_P_Frequency;
  31159. 800d6be: 68fb ldr r3, [r7, #12]
  31160. 800d6c0: 63fb str r3, [r7, #60] @ 0x3c
  31161. }
  31162. else
  31163. {
  31164. frequency = 0;
  31165. }
  31166. break;
  31167. 800d6c2: f000 bc74 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31168. frequency = 0;
  31169. 800d6c6: 2300 movs r3, #0
  31170. 800d6c8: 63fb str r3, [r7, #60] @ 0x3c
  31171. break;
  31172. 800d6ca: f000 bc70 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31173. }
  31174. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  31175. {
  31176. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31177. 800d6ce: 4b21 ldr r3, [pc, #132] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31178. 800d6d0: 6cdb ldr r3, [r3, #76] @ 0x4c
  31179. 800d6d2: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31180. 800d6d6: 637b str r3, [r7, #52] @ 0x34
  31181. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31182. 800d6d8: 4b1e ldr r3, [pc, #120] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31183. 800d6da: 681b ldr r3, [r3, #0]
  31184. 800d6dc: f003 0304 and.w r3, r3, #4
  31185. 800d6e0: 2b04 cmp r3, #4
  31186. 800d6e2: d10c bne.n 800d6fe <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  31187. 800d6e4: 6b7b ldr r3, [r7, #52] @ 0x34
  31188. 800d6e6: 2b00 cmp r3, #0
  31189. 800d6e8: d109 bne.n 800d6fe <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  31190. {
  31191. /* In Case the CKPER Source is HSI */
  31192. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31193. 800d6ea: 4b1a ldr r3, [pc, #104] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31194. 800d6ec: 681b ldr r3, [r3, #0]
  31195. 800d6ee: 08db lsrs r3, r3, #3
  31196. 800d6f0: f003 0303 and.w r3, r3, #3
  31197. 800d6f4: 4a18 ldr r2, [pc, #96] @ (800d758 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  31198. 800d6f6: fa22 f303 lsr.w r3, r2, r3
  31199. 800d6fa: 63fb str r3, [r7, #60] @ 0x3c
  31200. 800d6fc: e01f b.n 800d73e <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31201. }
  31202. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31203. 800d6fe: 4b15 ldr r3, [pc, #84] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31204. 800d700: 681b ldr r3, [r3, #0]
  31205. 800d702: f403 7380 and.w r3, r3, #256 @ 0x100
  31206. 800d706: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31207. 800d70a: d106 bne.n 800d71a <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  31208. 800d70c: 6b7b ldr r3, [r7, #52] @ 0x34
  31209. 800d70e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31210. 800d712: d102 bne.n 800d71a <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  31211. {
  31212. /* In Case the CKPER Source is CSI */
  31213. frequency = CSI_VALUE;
  31214. 800d714: 4b11 ldr r3, [pc, #68] @ (800d75c <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  31215. 800d716: 63fb str r3, [r7, #60] @ 0x3c
  31216. 800d718: e011 b.n 800d73e <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31217. }
  31218. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31219. 800d71a: 4b0e ldr r3, [pc, #56] @ (800d754 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31220. 800d71c: 681b ldr r3, [r3, #0]
  31221. 800d71e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31222. 800d722: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31223. 800d726: d106 bne.n 800d736 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  31224. 800d728: 6b7b ldr r3, [r7, #52] @ 0x34
  31225. 800d72a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31226. 800d72e: d102 bne.n 800d736 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  31227. {
  31228. /* In Case the CKPER Source is HSE */
  31229. frequency = HSE_VALUE;
  31230. 800d730: 4b0b ldr r3, [pc, #44] @ (800d760 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  31231. 800d732: 63fb str r3, [r7, #60] @ 0x3c
  31232. 800d734: e003 b.n 800d73e <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31233. }
  31234. else
  31235. {
  31236. /* In Case the CKPER is disabled*/
  31237. frequency = 0;
  31238. 800d736: 2300 movs r3, #0
  31239. 800d738: 63fb str r3, [r7, #60] @ 0x3c
  31240. }
  31241. break;
  31242. 800d73a: f000 bc38 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31243. 800d73e: f000 bc36 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31244. }
  31245. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  31246. {
  31247. frequency = EXTERNAL_CLOCK_VALUE;
  31248. 800d742: 4b08 ldr r3, [pc, #32] @ (800d764 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  31249. 800d744: 63fb str r3, [r7, #60] @ 0x3c
  31250. break;
  31251. 800d746: f000 bc32 b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31252. }
  31253. default :
  31254. {
  31255. frequency = 0;
  31256. 800d74a: 2300 movs r3, #0
  31257. 800d74c: 63fb str r3, [r7, #60] @ 0x3c
  31258. break;
  31259. 800d74e: f000 bc2e b.w 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31260. 800d752: bf00 nop
  31261. 800d754: 58024400 .word 0x58024400
  31262. 800d758: 03d09000 .word 0x03d09000
  31263. 800d75c: 003d0900 .word 0x003d0900
  31264. 800d760: 017d7840 .word 0x017d7840
  31265. 800d764: 00bb8000 .word 0x00bb8000
  31266. }
  31267. }
  31268. #endif
  31269. #if defined(SAI4)
  31270. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  31271. 800d768: e9d7 2300 ldrd r2, r3, [r7]
  31272. 800d76c: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  31273. 800d770: 430b orrs r3, r1
  31274. 800d772: f040 809c bne.w 800d8ae <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  31275. {
  31276. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  31277. 800d776: 4b9e ldr r3, [pc, #632] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31278. 800d778: 6d9b ldr r3, [r3, #88] @ 0x58
  31279. 800d77a: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  31280. 800d77e: 633b str r3, [r7, #48] @ 0x30
  31281. switch (saiclocksource)
  31282. 800d780: 6b3b ldr r3, [r7, #48] @ 0x30
  31283. 800d782: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  31284. 800d786: d054 beq.n 800d832 <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  31285. 800d788: 6b3b ldr r3, [r7, #48] @ 0x30
  31286. 800d78a: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  31287. 800d78e: f200 808b bhi.w 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31288. 800d792: 6b3b ldr r3, [r7, #48] @ 0x30
  31289. 800d794: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  31290. 800d798: f000 8083 beq.w 800d8a2 <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  31291. 800d79c: 6b3b ldr r3, [r7, #48] @ 0x30
  31292. 800d79e: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  31293. 800d7a2: f200 8081 bhi.w 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31294. 800d7a6: 6b3b ldr r3, [r7, #48] @ 0x30
  31295. 800d7a8: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  31296. 800d7ac: d02f beq.n 800d80e <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  31297. 800d7ae: 6b3b ldr r3, [r7, #48] @ 0x30
  31298. 800d7b0: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  31299. 800d7b4: d878 bhi.n 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31300. 800d7b6: 6b3b ldr r3, [r7, #48] @ 0x30
  31301. 800d7b8: 2b00 cmp r3, #0
  31302. 800d7ba: d004 beq.n 800d7c6 <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  31303. 800d7bc: 6b3b ldr r3, [r7, #48] @ 0x30
  31304. 800d7be: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  31305. 800d7c2: d012 beq.n 800d7ea <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  31306. 800d7c4: e070 b.n 800d8a8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31307. {
  31308. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  31309. {
  31310. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31311. 800d7c6: 4b8a ldr r3, [pc, #552] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31312. 800d7c8: 681b ldr r3, [r3, #0]
  31313. 800d7ca: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31314. 800d7ce: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31315. 800d7d2: d107 bne.n 800d7e4 <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  31316. {
  31317. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31318. 800d7d4: f107 0324 add.w r3, r7, #36 @ 0x24
  31319. 800d7d8: 4618 mov r0, r3
  31320. 800d7da: f000 feaf bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31321. frequency = pll1_clocks.PLL1_Q_Frequency;
  31322. 800d7de: 6abb ldr r3, [r7, #40] @ 0x28
  31323. 800d7e0: 63fb str r3, [r7, #60] @ 0x3c
  31324. }
  31325. else
  31326. {
  31327. frequency = 0;
  31328. }
  31329. break;
  31330. 800d7e2: e3e4 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31331. frequency = 0;
  31332. 800d7e4: 2300 movs r3, #0
  31333. 800d7e6: 63fb str r3, [r7, #60] @ 0x3c
  31334. break;
  31335. 800d7e8: e3e1 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31336. }
  31337. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  31338. {
  31339. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31340. 800d7ea: 4b81 ldr r3, [pc, #516] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31341. 800d7ec: 681b ldr r3, [r3, #0]
  31342. 800d7ee: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31343. 800d7f2: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31344. 800d7f6: d107 bne.n 800d808 <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  31345. {
  31346. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31347. 800d7f8: f107 0318 add.w r3, r7, #24
  31348. 800d7fc: 4618 mov r0, r3
  31349. 800d7fe: f000 fbf5 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31350. frequency = pll2_clocks.PLL2_P_Frequency;
  31351. 800d802: 69bb ldr r3, [r7, #24]
  31352. 800d804: 63fb str r3, [r7, #60] @ 0x3c
  31353. }
  31354. else
  31355. {
  31356. frequency = 0;
  31357. }
  31358. break;
  31359. 800d806: e3d2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31360. frequency = 0;
  31361. 800d808: 2300 movs r3, #0
  31362. 800d80a: 63fb str r3, [r7, #60] @ 0x3c
  31363. break;
  31364. 800d80c: e3cf b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31365. }
  31366. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  31367. {
  31368. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31369. 800d80e: 4b78 ldr r3, [pc, #480] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31370. 800d810: 681b ldr r3, [r3, #0]
  31371. 800d812: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31372. 800d816: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31373. 800d81a: d107 bne.n 800d82c <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  31374. {
  31375. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31376. 800d81c: f107 030c add.w r3, r7, #12
  31377. 800d820: 4618 mov r0, r3
  31378. 800d822: f000 fd37 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31379. frequency = pll3_clocks.PLL3_P_Frequency;
  31380. 800d826: 68fb ldr r3, [r7, #12]
  31381. 800d828: 63fb str r3, [r7, #60] @ 0x3c
  31382. }
  31383. else
  31384. {
  31385. frequency = 0;
  31386. }
  31387. break;
  31388. 800d82a: e3c0 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31389. frequency = 0;
  31390. 800d82c: 2300 movs r3, #0
  31391. 800d82e: 63fb str r3, [r7, #60] @ 0x3c
  31392. break;
  31393. 800d830: e3bd b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31394. }
  31395. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  31396. {
  31397. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31398. 800d832: 4b6f ldr r3, [pc, #444] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31399. 800d834: 6cdb ldr r3, [r3, #76] @ 0x4c
  31400. 800d836: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31401. 800d83a: 637b str r3, [r7, #52] @ 0x34
  31402. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31403. 800d83c: 4b6c ldr r3, [pc, #432] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31404. 800d83e: 681b ldr r3, [r3, #0]
  31405. 800d840: f003 0304 and.w r3, r3, #4
  31406. 800d844: 2b04 cmp r3, #4
  31407. 800d846: d10c bne.n 800d862 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  31408. 800d848: 6b7b ldr r3, [r7, #52] @ 0x34
  31409. 800d84a: 2b00 cmp r3, #0
  31410. 800d84c: d109 bne.n 800d862 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  31411. {
  31412. /* In Case the CKPER Source is HSI */
  31413. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31414. 800d84e: 4b68 ldr r3, [pc, #416] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31415. 800d850: 681b ldr r3, [r3, #0]
  31416. 800d852: 08db lsrs r3, r3, #3
  31417. 800d854: f003 0303 and.w r3, r3, #3
  31418. 800d858: 4a66 ldr r2, [pc, #408] @ (800d9f4 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  31419. 800d85a: fa22 f303 lsr.w r3, r2, r3
  31420. 800d85e: 63fb str r3, [r7, #60] @ 0x3c
  31421. 800d860: e01e b.n 800d8a0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31422. }
  31423. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31424. 800d862: 4b63 ldr r3, [pc, #396] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31425. 800d864: 681b ldr r3, [r3, #0]
  31426. 800d866: f403 7380 and.w r3, r3, #256 @ 0x100
  31427. 800d86a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31428. 800d86e: d106 bne.n 800d87e <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  31429. 800d870: 6b7b ldr r3, [r7, #52] @ 0x34
  31430. 800d872: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31431. 800d876: d102 bne.n 800d87e <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  31432. {
  31433. /* In Case the CKPER Source is CSI */
  31434. frequency = CSI_VALUE;
  31435. 800d878: 4b5f ldr r3, [pc, #380] @ (800d9f8 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  31436. 800d87a: 63fb str r3, [r7, #60] @ 0x3c
  31437. 800d87c: e010 b.n 800d8a0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31438. }
  31439. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31440. 800d87e: 4b5c ldr r3, [pc, #368] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31441. 800d880: 681b ldr r3, [r3, #0]
  31442. 800d882: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31443. 800d886: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31444. 800d88a: d106 bne.n 800d89a <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  31445. 800d88c: 6b7b ldr r3, [r7, #52] @ 0x34
  31446. 800d88e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31447. 800d892: d102 bne.n 800d89a <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  31448. {
  31449. /* In Case the CKPER Source is HSE */
  31450. frequency = HSE_VALUE;
  31451. 800d894: 4b59 ldr r3, [pc, #356] @ (800d9fc <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  31452. 800d896: 63fb str r3, [r7, #60] @ 0x3c
  31453. 800d898: e002 b.n 800d8a0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  31454. }
  31455. else
  31456. {
  31457. /* In Case the CKPER is disabled*/
  31458. frequency = 0;
  31459. 800d89a: 2300 movs r3, #0
  31460. 800d89c: 63fb str r3, [r7, #60] @ 0x3c
  31461. }
  31462. break;
  31463. 800d89e: e386 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31464. 800d8a0: e385 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31465. }
  31466. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  31467. {
  31468. frequency = EXTERNAL_CLOCK_VALUE;
  31469. 800d8a2: 4b57 ldr r3, [pc, #348] @ (800da00 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  31470. 800d8a4: 63fb str r3, [r7, #60] @ 0x3c
  31471. break;
  31472. 800d8a6: e382 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31473. }
  31474. default :
  31475. {
  31476. frequency = 0;
  31477. 800d8a8: 2300 movs r3, #0
  31478. 800d8aa: 63fb str r3, [r7, #60] @ 0x3c
  31479. break;
  31480. 800d8ac: e37f b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31481. }
  31482. }
  31483. }
  31484. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  31485. 800d8ae: e9d7 2300 ldrd r2, r3, [r7]
  31486. 800d8b2: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  31487. 800d8b6: 430b orrs r3, r1
  31488. 800d8b8: f040 80a7 bne.w 800da0a <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  31489. {
  31490. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  31491. 800d8bc: 4b4c ldr r3, [pc, #304] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31492. 800d8be: 6d9b ldr r3, [r3, #88] @ 0x58
  31493. 800d8c0: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  31494. 800d8c4: 633b str r3, [r7, #48] @ 0x30
  31495. switch (saiclocksource)
  31496. 800d8c6: 6b3b ldr r3, [r7, #48] @ 0x30
  31497. 800d8c8: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  31498. 800d8cc: d055 beq.n 800d97a <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  31499. 800d8ce: 6b3b ldr r3, [r7, #48] @ 0x30
  31500. 800d8d0: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  31501. 800d8d4: f200 8096 bhi.w 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31502. 800d8d8: 6b3b ldr r3, [r7, #48] @ 0x30
  31503. 800d8da: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  31504. 800d8de: f000 8084 beq.w 800d9ea <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  31505. 800d8e2: 6b3b ldr r3, [r7, #48] @ 0x30
  31506. 800d8e4: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  31507. 800d8e8: f200 808c bhi.w 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31508. 800d8ec: 6b3b ldr r3, [r7, #48] @ 0x30
  31509. 800d8ee: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31510. 800d8f2: d030 beq.n 800d956 <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  31511. 800d8f4: 6b3b ldr r3, [r7, #48] @ 0x30
  31512. 800d8f6: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31513. 800d8fa: f200 8083 bhi.w 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31514. 800d8fe: 6b3b ldr r3, [r7, #48] @ 0x30
  31515. 800d900: 2b00 cmp r3, #0
  31516. 800d902: d004 beq.n 800d90e <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  31517. 800d904: 6b3b ldr r3, [r7, #48] @ 0x30
  31518. 800d906: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  31519. 800d90a: d012 beq.n 800d932 <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  31520. 800d90c: e07a b.n 800da04 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  31521. {
  31522. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  31523. {
  31524. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31525. 800d90e: 4b38 ldr r3, [pc, #224] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31526. 800d910: 681b ldr r3, [r3, #0]
  31527. 800d912: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31528. 800d916: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31529. 800d91a: d107 bne.n 800d92c <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  31530. {
  31531. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31532. 800d91c: f107 0324 add.w r3, r7, #36 @ 0x24
  31533. 800d920: 4618 mov r0, r3
  31534. 800d922: f000 fe0b bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31535. frequency = pll1_clocks.PLL1_Q_Frequency;
  31536. 800d926: 6abb ldr r3, [r7, #40] @ 0x28
  31537. 800d928: 63fb str r3, [r7, #60] @ 0x3c
  31538. }
  31539. else
  31540. {
  31541. frequency = 0;
  31542. }
  31543. break;
  31544. 800d92a: e340 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31545. frequency = 0;
  31546. 800d92c: 2300 movs r3, #0
  31547. 800d92e: 63fb str r3, [r7, #60] @ 0x3c
  31548. break;
  31549. 800d930: e33d b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31550. }
  31551. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  31552. {
  31553. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31554. 800d932: 4b2f ldr r3, [pc, #188] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31555. 800d934: 681b ldr r3, [r3, #0]
  31556. 800d936: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31557. 800d93a: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31558. 800d93e: d107 bne.n 800d950 <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  31559. {
  31560. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31561. 800d940: f107 0318 add.w r3, r7, #24
  31562. 800d944: 4618 mov r0, r3
  31563. 800d946: f000 fb51 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31564. frequency = pll2_clocks.PLL2_P_Frequency;
  31565. 800d94a: 69bb ldr r3, [r7, #24]
  31566. 800d94c: 63fb str r3, [r7, #60] @ 0x3c
  31567. }
  31568. else
  31569. {
  31570. frequency = 0;
  31571. }
  31572. break;
  31573. 800d94e: e32e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31574. frequency = 0;
  31575. 800d950: 2300 movs r3, #0
  31576. 800d952: 63fb str r3, [r7, #60] @ 0x3c
  31577. break;
  31578. 800d954: e32b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31579. }
  31580. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  31581. {
  31582. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31583. 800d956: 4b26 ldr r3, [pc, #152] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31584. 800d958: 681b ldr r3, [r3, #0]
  31585. 800d95a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31586. 800d95e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31587. 800d962: d107 bne.n 800d974 <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  31588. {
  31589. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31590. 800d964: f107 030c add.w r3, r7, #12
  31591. 800d968: 4618 mov r0, r3
  31592. 800d96a: f000 fc93 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31593. frequency = pll3_clocks.PLL3_P_Frequency;
  31594. 800d96e: 68fb ldr r3, [r7, #12]
  31595. 800d970: 63fb str r3, [r7, #60] @ 0x3c
  31596. }
  31597. else
  31598. {
  31599. frequency = 0;
  31600. }
  31601. break;
  31602. 800d972: e31c b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31603. frequency = 0;
  31604. 800d974: 2300 movs r3, #0
  31605. 800d976: 63fb str r3, [r7, #60] @ 0x3c
  31606. break;
  31607. 800d978: e319 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31608. }
  31609. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  31610. {
  31611. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31612. 800d97a: 4b1d ldr r3, [pc, #116] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31613. 800d97c: 6cdb ldr r3, [r3, #76] @ 0x4c
  31614. 800d97e: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31615. 800d982: 637b str r3, [r7, #52] @ 0x34
  31616. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31617. 800d984: 4b1a ldr r3, [pc, #104] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31618. 800d986: 681b ldr r3, [r3, #0]
  31619. 800d988: f003 0304 and.w r3, r3, #4
  31620. 800d98c: 2b04 cmp r3, #4
  31621. 800d98e: d10c bne.n 800d9aa <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  31622. 800d990: 6b7b ldr r3, [r7, #52] @ 0x34
  31623. 800d992: 2b00 cmp r3, #0
  31624. 800d994: d109 bne.n 800d9aa <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  31625. {
  31626. /* In Case the CKPER Source is HSI */
  31627. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31628. 800d996: 4b16 ldr r3, [pc, #88] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31629. 800d998: 681b ldr r3, [r3, #0]
  31630. 800d99a: 08db lsrs r3, r3, #3
  31631. 800d99c: f003 0303 and.w r3, r3, #3
  31632. 800d9a0: 4a14 ldr r2, [pc, #80] @ (800d9f4 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  31633. 800d9a2: fa22 f303 lsr.w r3, r2, r3
  31634. 800d9a6: 63fb str r3, [r7, #60] @ 0x3c
  31635. 800d9a8: e01e b.n 800d9e8 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31636. }
  31637. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31638. 800d9aa: 4b11 ldr r3, [pc, #68] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31639. 800d9ac: 681b ldr r3, [r3, #0]
  31640. 800d9ae: f403 7380 and.w r3, r3, #256 @ 0x100
  31641. 800d9b2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31642. 800d9b6: d106 bne.n 800d9c6 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  31643. 800d9b8: 6b7b ldr r3, [r7, #52] @ 0x34
  31644. 800d9ba: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31645. 800d9be: d102 bne.n 800d9c6 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  31646. {
  31647. /* In Case the CKPER Source is CSI */
  31648. frequency = CSI_VALUE;
  31649. 800d9c0: 4b0d ldr r3, [pc, #52] @ (800d9f8 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  31650. 800d9c2: 63fb str r3, [r7, #60] @ 0x3c
  31651. 800d9c4: e010 b.n 800d9e8 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31652. }
  31653. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31654. 800d9c6: 4b0a ldr r3, [pc, #40] @ (800d9f0 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31655. 800d9c8: 681b ldr r3, [r3, #0]
  31656. 800d9ca: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31657. 800d9ce: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31658. 800d9d2: d106 bne.n 800d9e2 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  31659. 800d9d4: 6b7b ldr r3, [r7, #52] @ 0x34
  31660. 800d9d6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31661. 800d9da: d102 bne.n 800d9e2 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  31662. {
  31663. /* In Case the CKPER Source is HSE */
  31664. frequency = HSE_VALUE;
  31665. 800d9dc: 4b07 ldr r3, [pc, #28] @ (800d9fc <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  31666. 800d9de: 63fb str r3, [r7, #60] @ 0x3c
  31667. 800d9e0: e002 b.n 800d9e8 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  31668. }
  31669. else
  31670. {
  31671. /* In Case the CKPER is disabled*/
  31672. frequency = 0;
  31673. 800d9e2: 2300 movs r3, #0
  31674. 800d9e4: 63fb str r3, [r7, #60] @ 0x3c
  31675. }
  31676. break;
  31677. 800d9e6: e2e2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31678. 800d9e8: e2e1 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31679. }
  31680. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  31681. {
  31682. frequency = EXTERNAL_CLOCK_VALUE;
  31683. 800d9ea: 4b05 ldr r3, [pc, #20] @ (800da00 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  31684. 800d9ec: 63fb str r3, [r7, #60] @ 0x3c
  31685. break;
  31686. 800d9ee: e2de b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31687. 800d9f0: 58024400 .word 0x58024400
  31688. 800d9f4: 03d09000 .word 0x03d09000
  31689. 800d9f8: 003d0900 .word 0x003d0900
  31690. 800d9fc: 017d7840 .word 0x017d7840
  31691. 800da00: 00bb8000 .word 0x00bb8000
  31692. }
  31693. default :
  31694. {
  31695. frequency = 0;
  31696. 800da04: 2300 movs r3, #0
  31697. 800da06: 63fb str r3, [r7, #60] @ 0x3c
  31698. break;
  31699. 800da08: e2d1 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31700. }
  31701. }
  31702. }
  31703. #endif /*SAI4*/
  31704. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  31705. 800da0a: e9d7 2300 ldrd r2, r3, [r7]
  31706. 800da0e: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  31707. 800da12: 430b orrs r3, r1
  31708. 800da14: f040 809c bne.w 800db50 <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  31709. {
  31710. /* Get SPI1/2/3 clock source */
  31711. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  31712. 800da18: 4b93 ldr r3, [pc, #588] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31713. 800da1a: 6d1b ldr r3, [r3, #80] @ 0x50
  31714. 800da1c: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  31715. 800da20: 63bb str r3, [r7, #56] @ 0x38
  31716. switch (srcclk)
  31717. 800da22: 6bbb ldr r3, [r7, #56] @ 0x38
  31718. 800da24: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31719. 800da28: d054 beq.n 800dad4 <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  31720. 800da2a: 6bbb ldr r3, [r7, #56] @ 0x38
  31721. 800da2c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31722. 800da30: f200 808b bhi.w 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31723. 800da34: 6bbb ldr r3, [r7, #56] @ 0x38
  31724. 800da36: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  31725. 800da3a: f000 8083 beq.w 800db44 <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  31726. 800da3e: 6bbb ldr r3, [r7, #56] @ 0x38
  31727. 800da40: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  31728. 800da44: f200 8081 bhi.w 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31729. 800da48: 6bbb ldr r3, [r7, #56] @ 0x38
  31730. 800da4a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31731. 800da4e: d02f beq.n 800dab0 <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  31732. 800da50: 6bbb ldr r3, [r7, #56] @ 0x38
  31733. 800da52: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31734. 800da56: d878 bhi.n 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31735. 800da58: 6bbb ldr r3, [r7, #56] @ 0x38
  31736. 800da5a: 2b00 cmp r3, #0
  31737. 800da5c: d004 beq.n 800da68 <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  31738. 800da5e: 6bbb ldr r3, [r7, #56] @ 0x38
  31739. 800da60: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31740. 800da64: d012 beq.n 800da8c <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  31741. 800da66: e070 b.n 800db4a <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  31742. {
  31743. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  31744. {
  31745. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31746. 800da68: 4b7f ldr r3, [pc, #508] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31747. 800da6a: 681b ldr r3, [r3, #0]
  31748. 800da6c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31749. 800da70: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31750. 800da74: d107 bne.n 800da86 <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  31751. {
  31752. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31753. 800da76: f107 0324 add.w r3, r7, #36 @ 0x24
  31754. 800da7a: 4618 mov r0, r3
  31755. 800da7c: f000 fd5e bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  31756. frequency = pll1_clocks.PLL1_Q_Frequency;
  31757. 800da80: 6abb ldr r3, [r7, #40] @ 0x28
  31758. 800da82: 63fb str r3, [r7, #60] @ 0x3c
  31759. }
  31760. else
  31761. {
  31762. frequency = 0;
  31763. }
  31764. break;
  31765. 800da84: e293 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31766. frequency = 0;
  31767. 800da86: 2300 movs r3, #0
  31768. 800da88: 63fb str r3, [r7, #60] @ 0x3c
  31769. break;
  31770. 800da8a: e290 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31771. }
  31772. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  31773. {
  31774. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31775. 800da8c: 4b76 ldr r3, [pc, #472] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31776. 800da8e: 681b ldr r3, [r3, #0]
  31777. 800da90: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31778. 800da94: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31779. 800da98: d107 bne.n 800daaa <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  31780. {
  31781. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31782. 800da9a: f107 0318 add.w r3, r7, #24
  31783. 800da9e: 4618 mov r0, r3
  31784. 800daa0: f000 faa4 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31785. frequency = pll2_clocks.PLL2_P_Frequency;
  31786. 800daa4: 69bb ldr r3, [r7, #24]
  31787. 800daa6: 63fb str r3, [r7, #60] @ 0x3c
  31788. }
  31789. else
  31790. {
  31791. frequency = 0;
  31792. }
  31793. break;
  31794. 800daa8: e281 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31795. frequency = 0;
  31796. 800daaa: 2300 movs r3, #0
  31797. 800daac: 63fb str r3, [r7, #60] @ 0x3c
  31798. break;
  31799. 800daae: e27e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31800. }
  31801. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  31802. {
  31803. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31804. 800dab0: 4b6d ldr r3, [pc, #436] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31805. 800dab2: 681b ldr r3, [r3, #0]
  31806. 800dab4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31807. 800dab8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31808. 800dabc: d107 bne.n 800dace <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  31809. {
  31810. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31811. 800dabe: f107 030c add.w r3, r7, #12
  31812. 800dac2: 4618 mov r0, r3
  31813. 800dac4: f000 fbe6 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  31814. frequency = pll3_clocks.PLL3_P_Frequency;
  31815. 800dac8: 68fb ldr r3, [r7, #12]
  31816. 800daca: 63fb str r3, [r7, #60] @ 0x3c
  31817. }
  31818. else
  31819. {
  31820. frequency = 0;
  31821. }
  31822. break;
  31823. 800dacc: e26f b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31824. frequency = 0;
  31825. 800dace: 2300 movs r3, #0
  31826. 800dad0: 63fb str r3, [r7, #60] @ 0x3c
  31827. break;
  31828. 800dad2: e26c b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31829. }
  31830. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  31831. {
  31832. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31833. 800dad4: 4b64 ldr r3, [pc, #400] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31834. 800dad6: 6cdb ldr r3, [r3, #76] @ 0x4c
  31835. 800dad8: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31836. 800dadc: 637b str r3, [r7, #52] @ 0x34
  31837. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31838. 800dade: 4b62 ldr r3, [pc, #392] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31839. 800dae0: 681b ldr r3, [r3, #0]
  31840. 800dae2: f003 0304 and.w r3, r3, #4
  31841. 800dae6: 2b04 cmp r3, #4
  31842. 800dae8: d10c bne.n 800db04 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  31843. 800daea: 6b7b ldr r3, [r7, #52] @ 0x34
  31844. 800daec: 2b00 cmp r3, #0
  31845. 800daee: d109 bne.n 800db04 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  31846. {
  31847. /* In Case the CKPER Source is HSI */
  31848. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31849. 800daf0: 4b5d ldr r3, [pc, #372] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31850. 800daf2: 681b ldr r3, [r3, #0]
  31851. 800daf4: 08db lsrs r3, r3, #3
  31852. 800daf6: f003 0303 and.w r3, r3, #3
  31853. 800dafa: 4a5c ldr r2, [pc, #368] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  31854. 800dafc: fa22 f303 lsr.w r3, r2, r3
  31855. 800db00: 63fb str r3, [r7, #60] @ 0x3c
  31856. 800db02: e01e b.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31857. }
  31858. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31859. 800db04: 4b58 ldr r3, [pc, #352] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31860. 800db06: 681b ldr r3, [r3, #0]
  31861. 800db08: f403 7380 and.w r3, r3, #256 @ 0x100
  31862. 800db0c: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31863. 800db10: d106 bne.n 800db20 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  31864. 800db12: 6b7b ldr r3, [r7, #52] @ 0x34
  31865. 800db14: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31866. 800db18: d102 bne.n 800db20 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  31867. {
  31868. /* In Case the CKPER Source is CSI */
  31869. frequency = CSI_VALUE;
  31870. 800db1a: 4b55 ldr r3, [pc, #340] @ (800dc70 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  31871. 800db1c: 63fb str r3, [r7, #60] @ 0x3c
  31872. 800db1e: e010 b.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31873. }
  31874. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31875. 800db20: 4b51 ldr r3, [pc, #324] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31876. 800db22: 681b ldr r3, [r3, #0]
  31877. 800db24: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31878. 800db28: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31879. 800db2c: d106 bne.n 800db3c <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  31880. 800db2e: 6b7b ldr r3, [r7, #52] @ 0x34
  31881. 800db30: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31882. 800db34: d102 bne.n 800db3c <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  31883. {
  31884. /* In Case the CKPER Source is HSE */
  31885. frequency = HSE_VALUE;
  31886. 800db36: 4b4f ldr r3, [pc, #316] @ (800dc74 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  31887. 800db38: 63fb str r3, [r7, #60] @ 0x3c
  31888. 800db3a: e002 b.n 800db42 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  31889. }
  31890. else
  31891. {
  31892. /* In Case the CKPER is disabled*/
  31893. frequency = 0;
  31894. 800db3c: 2300 movs r3, #0
  31895. 800db3e: 63fb str r3, [r7, #60] @ 0x3c
  31896. }
  31897. break;
  31898. 800db40: e235 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31899. 800db42: e234 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31900. }
  31901. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  31902. {
  31903. frequency = EXTERNAL_CLOCK_VALUE;
  31904. 800db44: 4b4c ldr r3, [pc, #304] @ (800dc78 <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  31905. 800db46: 63fb str r3, [r7, #60] @ 0x3c
  31906. break;
  31907. 800db48: e231 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31908. }
  31909. default :
  31910. {
  31911. frequency = 0;
  31912. 800db4a: 2300 movs r3, #0
  31913. 800db4c: 63fb str r3, [r7, #60] @ 0x3c
  31914. break;
  31915. 800db4e: e22e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31916. }
  31917. }
  31918. }
  31919. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  31920. 800db50: e9d7 2300 ldrd r2, r3, [r7]
  31921. 800db54: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  31922. 800db58: 430b orrs r3, r1
  31923. 800db5a: f040 808f bne.w 800dc7c <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  31924. {
  31925. /* Get SPI45 clock source */
  31926. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  31927. 800db5e: 4b42 ldr r3, [pc, #264] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31928. 800db60: 6d1b ldr r3, [r3, #80] @ 0x50
  31929. 800db62: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  31930. 800db66: 63bb str r3, [r7, #56] @ 0x38
  31931. switch (srcclk)
  31932. 800db68: 6bbb ldr r3, [r7, #56] @ 0x38
  31933. 800db6a: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  31934. 800db6e: d06b beq.n 800dc48 <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  31935. 800db70: 6bbb ldr r3, [r7, #56] @ 0x38
  31936. 800db72: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  31937. 800db76: d874 bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31938. 800db78: 6bbb ldr r3, [r7, #56] @ 0x38
  31939. 800db7a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  31940. 800db7e: d056 beq.n 800dc2e <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  31941. 800db80: 6bbb ldr r3, [r7, #56] @ 0x38
  31942. 800db82: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  31943. 800db86: d86c bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31944. 800db88: 6bbb ldr r3, [r7, #56] @ 0x38
  31945. 800db8a: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  31946. 800db8e: d03b beq.n 800dc08 <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  31947. 800db90: 6bbb ldr r3, [r7, #56] @ 0x38
  31948. 800db92: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  31949. 800db96: d864 bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31950. 800db98: 6bbb ldr r3, [r7, #56] @ 0x38
  31951. 800db9a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31952. 800db9e: d021 beq.n 800dbe4 <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  31953. 800dba0: 6bbb ldr r3, [r7, #56] @ 0x38
  31954. 800dba2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31955. 800dba6: d85c bhi.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31956. 800dba8: 6bbb ldr r3, [r7, #56] @ 0x38
  31957. 800dbaa: 2b00 cmp r3, #0
  31958. 800dbac: d004 beq.n 800dbb8 <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  31959. 800dbae: 6bbb ldr r3, [r7, #56] @ 0x38
  31960. 800dbb0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31961. 800dbb4: d004 beq.n 800dbc0 <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  31962. 800dbb6: e054 b.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  31963. {
  31964. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  31965. {
  31966. frequency = HAL_RCC_GetPCLK1Freq();
  31967. 800dbb8: f7fe fa26 bl 800c008 <HAL_RCC_GetPCLK1Freq>
  31968. 800dbbc: 63f8 str r0, [r7, #60] @ 0x3c
  31969. break;
  31970. 800dbbe: e1f6 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31971. }
  31972. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  31973. {
  31974. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31975. 800dbc0: 4b29 ldr r3, [pc, #164] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  31976. 800dbc2: 681b ldr r3, [r3, #0]
  31977. 800dbc4: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31978. 800dbc8: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31979. 800dbcc: d107 bne.n 800dbde <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  31980. {
  31981. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31982. 800dbce: f107 0318 add.w r3, r7, #24
  31983. 800dbd2: 4618 mov r0, r3
  31984. 800dbd4: f000 fa0a bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  31985. frequency = pll2_clocks.PLL2_Q_Frequency;
  31986. 800dbd8: 69fb ldr r3, [r7, #28]
  31987. 800dbda: 63fb str r3, [r7, #60] @ 0x3c
  31988. }
  31989. else
  31990. {
  31991. frequency = 0;
  31992. }
  31993. break;
  31994. 800dbdc: e1e7 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31995. frequency = 0;
  31996. 800dbde: 2300 movs r3, #0
  31997. 800dbe0: 63fb str r3, [r7, #60] @ 0x3c
  31998. break;
  31999. 800dbe2: e1e4 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32000. }
  32001. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  32002. {
  32003. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32004. 800dbe4: 4b20 ldr r3, [pc, #128] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32005. 800dbe6: 681b ldr r3, [r3, #0]
  32006. 800dbe8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32007. 800dbec: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32008. 800dbf0: d107 bne.n 800dc02 <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  32009. {
  32010. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32011. 800dbf2: f107 030c add.w r3, r7, #12
  32012. 800dbf6: 4618 mov r0, r3
  32013. 800dbf8: f000 fb4c bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  32014. frequency = pll3_clocks.PLL3_Q_Frequency;
  32015. 800dbfc: 693b ldr r3, [r7, #16]
  32016. 800dbfe: 63fb str r3, [r7, #60] @ 0x3c
  32017. }
  32018. else
  32019. {
  32020. frequency = 0;
  32021. }
  32022. break;
  32023. 800dc00: e1d5 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32024. frequency = 0;
  32025. 800dc02: 2300 movs r3, #0
  32026. 800dc04: 63fb str r3, [r7, #60] @ 0x3c
  32027. break;
  32028. 800dc06: e1d2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32029. }
  32030. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  32031. {
  32032. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  32033. 800dc08: 4b17 ldr r3, [pc, #92] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32034. 800dc0a: 681b ldr r3, [r3, #0]
  32035. 800dc0c: f003 0304 and.w r3, r3, #4
  32036. 800dc10: 2b04 cmp r3, #4
  32037. 800dc12: d109 bne.n 800dc28 <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  32038. {
  32039. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32040. 800dc14: 4b14 ldr r3, [pc, #80] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32041. 800dc16: 681b ldr r3, [r3, #0]
  32042. 800dc18: 08db lsrs r3, r3, #3
  32043. 800dc1a: f003 0303 and.w r3, r3, #3
  32044. 800dc1e: 4a13 ldr r2, [pc, #76] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32045. 800dc20: fa22 f303 lsr.w r3, r2, r3
  32046. 800dc24: 63fb str r3, [r7, #60] @ 0x3c
  32047. }
  32048. else
  32049. {
  32050. frequency = 0;
  32051. }
  32052. break;
  32053. 800dc26: e1c2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32054. frequency = 0;
  32055. 800dc28: 2300 movs r3, #0
  32056. 800dc2a: 63fb str r3, [r7, #60] @ 0x3c
  32057. break;
  32058. 800dc2c: e1bf b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32059. }
  32060. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  32061. {
  32062. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  32063. 800dc2e: 4b0e ldr r3, [pc, #56] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32064. 800dc30: 681b ldr r3, [r3, #0]
  32065. 800dc32: f403 7380 and.w r3, r3, #256 @ 0x100
  32066. 800dc36: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32067. 800dc3a: d102 bne.n 800dc42 <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  32068. {
  32069. frequency = CSI_VALUE;
  32070. 800dc3c: 4b0c ldr r3, [pc, #48] @ (800dc70 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32071. 800dc3e: 63fb str r3, [r7, #60] @ 0x3c
  32072. }
  32073. else
  32074. {
  32075. frequency = 0;
  32076. }
  32077. break;
  32078. 800dc40: e1b5 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32079. frequency = 0;
  32080. 800dc42: 2300 movs r3, #0
  32081. 800dc44: 63fb str r3, [r7, #60] @ 0x3c
  32082. break;
  32083. 800dc46: e1b2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32084. }
  32085. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  32086. {
  32087. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32088. 800dc48: 4b07 ldr r3, [pc, #28] @ (800dc68 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32089. 800dc4a: 681b ldr r3, [r3, #0]
  32090. 800dc4c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32091. 800dc50: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32092. 800dc54: d102 bne.n 800dc5c <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  32093. {
  32094. frequency = HSE_VALUE;
  32095. 800dc56: 4b07 ldr r3, [pc, #28] @ (800dc74 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  32096. 800dc58: 63fb str r3, [r7, #60] @ 0x3c
  32097. }
  32098. else
  32099. {
  32100. frequency = 0;
  32101. }
  32102. break;
  32103. 800dc5a: e1a8 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32104. frequency = 0;
  32105. 800dc5c: 2300 movs r3, #0
  32106. 800dc5e: 63fb str r3, [r7, #60] @ 0x3c
  32107. break;
  32108. 800dc60: e1a5 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32109. }
  32110. default :
  32111. {
  32112. frequency = 0;
  32113. 800dc62: 2300 movs r3, #0
  32114. 800dc64: 63fb str r3, [r7, #60] @ 0x3c
  32115. break;
  32116. 800dc66: e1a2 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32117. 800dc68: 58024400 .word 0x58024400
  32118. 800dc6c: 03d09000 .word 0x03d09000
  32119. 800dc70: 003d0900 .word 0x003d0900
  32120. 800dc74: 017d7840 .word 0x017d7840
  32121. 800dc78: 00bb8000 .word 0x00bb8000
  32122. }
  32123. }
  32124. }
  32125. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  32126. 800dc7c: e9d7 2300 ldrd r2, r3, [r7]
  32127. 800dc80: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  32128. 800dc84: 430b orrs r3, r1
  32129. 800dc86: d173 bne.n 800dd70 <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  32130. {
  32131. /* Get ADC clock source */
  32132. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  32133. 800dc88: 4b9c ldr r3, [pc, #624] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32134. 800dc8a: 6d9b ldr r3, [r3, #88] @ 0x58
  32135. 800dc8c: f403 3340 and.w r3, r3, #196608 @ 0x30000
  32136. 800dc90: 63bb str r3, [r7, #56] @ 0x38
  32137. switch (srcclk)
  32138. 800dc92: 6bbb ldr r3, [r7, #56] @ 0x38
  32139. 800dc94: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32140. 800dc98: d02f beq.n 800dcfa <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  32141. 800dc9a: 6bbb ldr r3, [r7, #56] @ 0x38
  32142. 800dc9c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32143. 800dca0: d863 bhi.n 800dd6a <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  32144. 800dca2: 6bbb ldr r3, [r7, #56] @ 0x38
  32145. 800dca4: 2b00 cmp r3, #0
  32146. 800dca6: d004 beq.n 800dcb2 <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  32147. 800dca8: 6bbb ldr r3, [r7, #56] @ 0x38
  32148. 800dcaa: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32149. 800dcae: d012 beq.n 800dcd6 <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  32150. 800dcb0: e05b b.n 800dd6a <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  32151. {
  32152. case RCC_ADCCLKSOURCE_PLL2:
  32153. {
  32154. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32155. 800dcb2: 4b92 ldr r3, [pc, #584] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32156. 800dcb4: 681b ldr r3, [r3, #0]
  32157. 800dcb6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32158. 800dcba: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32159. 800dcbe: d107 bne.n 800dcd0 <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  32160. {
  32161. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32162. 800dcc0: f107 0318 add.w r3, r7, #24
  32163. 800dcc4: 4618 mov r0, r3
  32164. 800dcc6: f000 f991 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32165. frequency = pll2_clocks.PLL2_P_Frequency;
  32166. 800dcca: 69bb ldr r3, [r7, #24]
  32167. 800dccc: 63fb str r3, [r7, #60] @ 0x3c
  32168. }
  32169. else
  32170. {
  32171. frequency = 0;
  32172. }
  32173. break;
  32174. 800dcce: e16e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32175. frequency = 0;
  32176. 800dcd0: 2300 movs r3, #0
  32177. 800dcd2: 63fb str r3, [r7, #60] @ 0x3c
  32178. break;
  32179. 800dcd4: e16b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32180. }
  32181. case RCC_ADCCLKSOURCE_PLL3:
  32182. {
  32183. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32184. 800dcd6: 4b89 ldr r3, [pc, #548] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32185. 800dcd8: 681b ldr r3, [r3, #0]
  32186. 800dcda: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32187. 800dcde: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32188. 800dce2: d107 bne.n 800dcf4 <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  32189. {
  32190. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32191. 800dce4: f107 030c add.w r3, r7, #12
  32192. 800dce8: 4618 mov r0, r3
  32193. 800dcea: f000 fad3 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  32194. frequency = pll3_clocks.PLL3_R_Frequency;
  32195. 800dcee: 697b ldr r3, [r7, #20]
  32196. 800dcf0: 63fb str r3, [r7, #60] @ 0x3c
  32197. }
  32198. else
  32199. {
  32200. frequency = 0;
  32201. }
  32202. break;
  32203. 800dcf2: e15c b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32204. frequency = 0;
  32205. 800dcf4: 2300 movs r3, #0
  32206. 800dcf6: 63fb str r3, [r7, #60] @ 0x3c
  32207. break;
  32208. 800dcf8: e159 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32209. }
  32210. case RCC_ADCCLKSOURCE_CLKP:
  32211. {
  32212. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32213. 800dcfa: 4b80 ldr r3, [pc, #512] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32214. 800dcfc: 6cdb ldr r3, [r3, #76] @ 0x4c
  32215. 800dcfe: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32216. 800dd02: 637b str r3, [r7, #52] @ 0x34
  32217. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32218. 800dd04: 4b7d ldr r3, [pc, #500] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32219. 800dd06: 681b ldr r3, [r3, #0]
  32220. 800dd08: f003 0304 and.w r3, r3, #4
  32221. 800dd0c: 2b04 cmp r3, #4
  32222. 800dd0e: d10c bne.n 800dd2a <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  32223. 800dd10: 6b7b ldr r3, [r7, #52] @ 0x34
  32224. 800dd12: 2b00 cmp r3, #0
  32225. 800dd14: d109 bne.n 800dd2a <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  32226. {
  32227. /* In Case the CKPER Source is HSI */
  32228. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32229. 800dd16: 4b79 ldr r3, [pc, #484] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32230. 800dd18: 681b ldr r3, [r3, #0]
  32231. 800dd1a: 08db lsrs r3, r3, #3
  32232. 800dd1c: f003 0303 and.w r3, r3, #3
  32233. 800dd20: 4a77 ldr r2, [pc, #476] @ (800df00 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  32234. 800dd22: fa22 f303 lsr.w r3, r2, r3
  32235. 800dd26: 63fb str r3, [r7, #60] @ 0x3c
  32236. 800dd28: e01e b.n 800dd68 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32237. }
  32238. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32239. 800dd2a: 4b74 ldr r3, [pc, #464] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32240. 800dd2c: 681b ldr r3, [r3, #0]
  32241. 800dd2e: f403 7380 and.w r3, r3, #256 @ 0x100
  32242. 800dd32: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32243. 800dd36: d106 bne.n 800dd46 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  32244. 800dd38: 6b7b ldr r3, [r7, #52] @ 0x34
  32245. 800dd3a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32246. 800dd3e: d102 bne.n 800dd46 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  32247. {
  32248. /* In Case the CKPER Source is CSI */
  32249. frequency = CSI_VALUE;
  32250. 800dd40: 4b70 ldr r3, [pc, #448] @ (800df04 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  32251. 800dd42: 63fb str r3, [r7, #60] @ 0x3c
  32252. 800dd44: e010 b.n 800dd68 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32253. }
  32254. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32255. 800dd46: 4b6d ldr r3, [pc, #436] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32256. 800dd48: 681b ldr r3, [r3, #0]
  32257. 800dd4a: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32258. 800dd4e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32259. 800dd52: d106 bne.n 800dd62 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  32260. 800dd54: 6b7b ldr r3, [r7, #52] @ 0x34
  32261. 800dd56: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32262. 800dd5a: d102 bne.n 800dd62 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  32263. {
  32264. /* In Case the CKPER Source is HSE */
  32265. frequency = HSE_VALUE;
  32266. 800dd5c: 4b6a ldr r3, [pc, #424] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  32267. 800dd5e: 63fb str r3, [r7, #60] @ 0x3c
  32268. 800dd60: e002 b.n 800dd68 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32269. }
  32270. else
  32271. {
  32272. /* In Case the CKPER is disabled*/
  32273. frequency = 0;
  32274. 800dd62: 2300 movs r3, #0
  32275. 800dd64: 63fb str r3, [r7, #60] @ 0x3c
  32276. }
  32277. break;
  32278. 800dd66: e122 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32279. 800dd68: e121 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32280. }
  32281. default :
  32282. {
  32283. frequency = 0;
  32284. 800dd6a: 2300 movs r3, #0
  32285. 800dd6c: 63fb str r3, [r7, #60] @ 0x3c
  32286. break;
  32287. 800dd6e: e11e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32288. }
  32289. }
  32290. }
  32291. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  32292. 800dd70: e9d7 2300 ldrd r2, r3, [r7]
  32293. 800dd74: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  32294. 800dd78: 430b orrs r3, r1
  32295. 800dd7a: d133 bne.n 800dde4 <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  32296. {
  32297. /* Get SDMMC clock source */
  32298. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  32299. 800dd7c: 4b5f ldr r3, [pc, #380] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32300. 800dd7e: 6cdb ldr r3, [r3, #76] @ 0x4c
  32301. 800dd80: f403 3380 and.w r3, r3, #65536 @ 0x10000
  32302. 800dd84: 63bb str r3, [r7, #56] @ 0x38
  32303. switch (srcclk)
  32304. 800dd86: 6bbb ldr r3, [r7, #56] @ 0x38
  32305. 800dd88: 2b00 cmp r3, #0
  32306. 800dd8a: d004 beq.n 800dd96 <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  32307. 800dd8c: 6bbb ldr r3, [r7, #56] @ 0x38
  32308. 800dd8e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32309. 800dd92: d012 beq.n 800ddba <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  32310. 800dd94: e023 b.n 800ddde <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  32311. {
  32312. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  32313. {
  32314. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32315. 800dd96: 4b59 ldr r3, [pc, #356] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32316. 800dd98: 681b ldr r3, [r3, #0]
  32317. 800dd9a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32318. 800dd9e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32319. 800dda2: d107 bne.n 800ddb4 <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  32320. {
  32321. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32322. 800dda4: f107 0324 add.w r3, r7, #36 @ 0x24
  32323. 800dda8: 4618 mov r0, r3
  32324. 800ddaa: f000 fbc7 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  32325. frequency = pll1_clocks.PLL1_Q_Frequency;
  32326. 800ddae: 6abb ldr r3, [r7, #40] @ 0x28
  32327. 800ddb0: 63fb str r3, [r7, #60] @ 0x3c
  32328. }
  32329. else
  32330. {
  32331. frequency = 0;
  32332. }
  32333. break;
  32334. 800ddb2: e0fc b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32335. frequency = 0;
  32336. 800ddb4: 2300 movs r3, #0
  32337. 800ddb6: 63fb str r3, [r7, #60] @ 0x3c
  32338. break;
  32339. 800ddb8: e0f9 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32340. }
  32341. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  32342. {
  32343. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32344. 800ddba: 4b50 ldr r3, [pc, #320] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32345. 800ddbc: 681b ldr r3, [r3, #0]
  32346. 800ddbe: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32347. 800ddc2: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32348. 800ddc6: d107 bne.n 800ddd8 <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  32349. {
  32350. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32351. 800ddc8: f107 0318 add.w r3, r7, #24
  32352. 800ddcc: 4618 mov r0, r3
  32353. 800ddce: f000 f90d bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32354. frequency = pll2_clocks.PLL2_R_Frequency;
  32355. 800ddd2: 6a3b ldr r3, [r7, #32]
  32356. 800ddd4: 63fb str r3, [r7, #60] @ 0x3c
  32357. }
  32358. else
  32359. {
  32360. frequency = 0;
  32361. }
  32362. break;
  32363. 800ddd6: e0ea b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32364. frequency = 0;
  32365. 800ddd8: 2300 movs r3, #0
  32366. 800ddda: 63fb str r3, [r7, #60] @ 0x3c
  32367. break;
  32368. 800dddc: e0e7 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32369. }
  32370. default :
  32371. {
  32372. frequency = 0;
  32373. 800ddde: 2300 movs r3, #0
  32374. 800dde0: 63fb str r3, [r7, #60] @ 0x3c
  32375. break;
  32376. 800dde2: e0e4 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32377. }
  32378. }
  32379. }
  32380. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  32381. 800dde4: e9d7 2300 ldrd r2, r3, [r7]
  32382. 800dde8: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  32383. 800ddec: 430b orrs r3, r1
  32384. 800ddee: f040 808d bne.w 800df0c <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  32385. {
  32386. /* Get SPI6 clock source */
  32387. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  32388. 800ddf2: 4b42 ldr r3, [pc, #264] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32389. 800ddf4: 6d9b ldr r3, [r3, #88] @ 0x58
  32390. 800ddf6: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  32391. 800ddfa: 63bb str r3, [r7, #56] @ 0x38
  32392. switch (srcclk)
  32393. 800ddfc: 6bbb ldr r3, [r7, #56] @ 0x38
  32394. 800ddfe: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  32395. 800de02: d06b beq.n 800dedc <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  32396. 800de04: 6bbb ldr r3, [r7, #56] @ 0x38
  32397. 800de06: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  32398. 800de0a: d874 bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32399. 800de0c: 6bbb ldr r3, [r7, #56] @ 0x38
  32400. 800de0e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  32401. 800de12: d056 beq.n 800dec2 <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  32402. 800de14: 6bbb ldr r3, [r7, #56] @ 0x38
  32403. 800de16: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  32404. 800de1a: d86c bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32405. 800de1c: 6bbb ldr r3, [r7, #56] @ 0x38
  32406. 800de1e: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  32407. 800de22: d03b beq.n 800de9c <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  32408. 800de24: 6bbb ldr r3, [r7, #56] @ 0x38
  32409. 800de26: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  32410. 800de2a: d864 bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32411. 800de2c: 6bbb ldr r3, [r7, #56] @ 0x38
  32412. 800de2e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32413. 800de32: d021 beq.n 800de78 <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  32414. 800de34: 6bbb ldr r3, [r7, #56] @ 0x38
  32415. 800de36: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32416. 800de3a: d85c bhi.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32417. 800de3c: 6bbb ldr r3, [r7, #56] @ 0x38
  32418. 800de3e: 2b00 cmp r3, #0
  32419. 800de40: d004 beq.n 800de4c <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  32420. 800de42: 6bbb ldr r3, [r7, #56] @ 0x38
  32421. 800de44: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32422. 800de48: d004 beq.n 800de54 <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  32423. 800de4a: e054 b.n 800def6 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  32424. {
  32425. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  32426. {
  32427. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  32428. 800de4c: f000 f8b8 bl 800dfc0 <HAL_RCCEx_GetD3PCLK1Freq>
  32429. 800de50: 63f8 str r0, [r7, #60] @ 0x3c
  32430. break;
  32431. 800de52: e0ac b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32432. }
  32433. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  32434. {
  32435. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32436. 800de54: 4b29 ldr r3, [pc, #164] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32437. 800de56: 681b ldr r3, [r3, #0]
  32438. 800de58: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32439. 800de5c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32440. 800de60: d107 bne.n 800de72 <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  32441. {
  32442. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32443. 800de62: f107 0318 add.w r3, r7, #24
  32444. 800de66: 4618 mov r0, r3
  32445. 800de68: f000 f8c0 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32446. frequency = pll2_clocks.PLL2_Q_Frequency;
  32447. 800de6c: 69fb ldr r3, [r7, #28]
  32448. 800de6e: 63fb str r3, [r7, #60] @ 0x3c
  32449. }
  32450. else
  32451. {
  32452. frequency = 0;
  32453. }
  32454. break;
  32455. 800de70: e09d b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32456. frequency = 0;
  32457. 800de72: 2300 movs r3, #0
  32458. 800de74: 63fb str r3, [r7, #60] @ 0x3c
  32459. break;
  32460. 800de76: e09a b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32461. }
  32462. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  32463. {
  32464. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32465. 800de78: 4b20 ldr r3, [pc, #128] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32466. 800de7a: 681b ldr r3, [r3, #0]
  32467. 800de7c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32468. 800de80: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32469. 800de84: d107 bne.n 800de96 <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  32470. {
  32471. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32472. 800de86: f107 030c add.w r3, r7, #12
  32473. 800de8a: 4618 mov r0, r3
  32474. 800de8c: f000 fa02 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  32475. frequency = pll3_clocks.PLL3_Q_Frequency;
  32476. 800de90: 693b ldr r3, [r7, #16]
  32477. 800de92: 63fb str r3, [r7, #60] @ 0x3c
  32478. }
  32479. else
  32480. {
  32481. frequency = 0;
  32482. }
  32483. break;
  32484. 800de94: e08b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32485. frequency = 0;
  32486. 800de96: 2300 movs r3, #0
  32487. 800de98: 63fb str r3, [r7, #60] @ 0x3c
  32488. break;
  32489. 800de9a: e088 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32490. }
  32491. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  32492. {
  32493. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  32494. 800de9c: 4b17 ldr r3, [pc, #92] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32495. 800de9e: 681b ldr r3, [r3, #0]
  32496. 800dea0: f003 0304 and.w r3, r3, #4
  32497. 800dea4: 2b04 cmp r3, #4
  32498. 800dea6: d109 bne.n 800debc <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  32499. {
  32500. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32501. 800dea8: 4b14 ldr r3, [pc, #80] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32502. 800deaa: 681b ldr r3, [r3, #0]
  32503. 800deac: 08db lsrs r3, r3, #3
  32504. 800deae: f003 0303 and.w r3, r3, #3
  32505. 800deb2: 4a13 ldr r2, [pc, #76] @ (800df00 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  32506. 800deb4: fa22 f303 lsr.w r3, r2, r3
  32507. 800deb8: 63fb str r3, [r7, #60] @ 0x3c
  32508. }
  32509. else
  32510. {
  32511. frequency = 0;
  32512. }
  32513. break;
  32514. 800deba: e078 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32515. frequency = 0;
  32516. 800debc: 2300 movs r3, #0
  32517. 800debe: 63fb str r3, [r7, #60] @ 0x3c
  32518. break;
  32519. 800dec0: e075 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32520. }
  32521. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  32522. {
  32523. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  32524. 800dec2: 4b0e ldr r3, [pc, #56] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32525. 800dec4: 681b ldr r3, [r3, #0]
  32526. 800dec6: f403 7380 and.w r3, r3, #256 @ 0x100
  32527. 800deca: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32528. 800dece: d102 bne.n 800ded6 <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  32529. {
  32530. frequency = CSI_VALUE;
  32531. 800ded0: 4b0c ldr r3, [pc, #48] @ (800df04 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  32532. 800ded2: 63fb str r3, [r7, #60] @ 0x3c
  32533. }
  32534. else
  32535. {
  32536. frequency = 0;
  32537. }
  32538. break;
  32539. 800ded4: e06b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32540. frequency = 0;
  32541. 800ded6: 2300 movs r3, #0
  32542. 800ded8: 63fb str r3, [r7, #60] @ 0x3c
  32543. break;
  32544. 800deda: e068 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32545. }
  32546. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  32547. {
  32548. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32549. 800dedc: 4b07 ldr r3, [pc, #28] @ (800defc <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32550. 800dede: 681b ldr r3, [r3, #0]
  32551. 800dee0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32552. 800dee4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32553. 800dee8: d102 bne.n 800def0 <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  32554. {
  32555. frequency = HSE_VALUE;
  32556. 800deea: 4b07 ldr r3, [pc, #28] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  32557. 800deec: 63fb str r3, [r7, #60] @ 0x3c
  32558. }
  32559. else
  32560. {
  32561. frequency = 0;
  32562. }
  32563. break;
  32564. 800deee: e05e b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32565. frequency = 0;
  32566. 800def0: 2300 movs r3, #0
  32567. 800def2: 63fb str r3, [r7, #60] @ 0x3c
  32568. break;
  32569. 800def4: e05b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32570. break;
  32571. }
  32572. #endif /* RCC_SPI6CLKSOURCE_PIN */
  32573. default :
  32574. {
  32575. frequency = 0;
  32576. 800def6: 2300 movs r3, #0
  32577. 800def8: 63fb str r3, [r7, #60] @ 0x3c
  32578. break;
  32579. 800defa: e058 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32580. 800defc: 58024400 .word 0x58024400
  32581. 800df00: 03d09000 .word 0x03d09000
  32582. 800df04: 003d0900 .word 0x003d0900
  32583. 800df08: 017d7840 .word 0x017d7840
  32584. }
  32585. }
  32586. }
  32587. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  32588. 800df0c: e9d7 2300 ldrd r2, r3, [r7]
  32589. 800df10: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  32590. 800df14: 430b orrs r3, r1
  32591. 800df16: d148 bne.n 800dfaa <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  32592. {
  32593. /* Get FDCAN clock source */
  32594. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  32595. 800df18: 4b27 ldr r3, [pc, #156] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32596. 800df1a: 6d1b ldr r3, [r3, #80] @ 0x50
  32597. 800df1c: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32598. 800df20: 63bb str r3, [r7, #56] @ 0x38
  32599. switch (srcclk)
  32600. 800df22: 6bbb ldr r3, [r7, #56] @ 0x38
  32601. 800df24: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32602. 800df28: d02a beq.n 800df80 <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  32603. 800df2a: 6bbb ldr r3, [r7, #56] @ 0x38
  32604. 800df2c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32605. 800df30: d838 bhi.n 800dfa4 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  32606. 800df32: 6bbb ldr r3, [r7, #56] @ 0x38
  32607. 800df34: 2b00 cmp r3, #0
  32608. 800df36: d004 beq.n 800df42 <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  32609. 800df38: 6bbb ldr r3, [r7, #56] @ 0x38
  32610. 800df3a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32611. 800df3e: d00d beq.n 800df5c <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  32612. 800df40: e030 b.n 800dfa4 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  32613. {
  32614. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  32615. {
  32616. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32617. 800df42: 4b1d ldr r3, [pc, #116] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32618. 800df44: 681b ldr r3, [r3, #0]
  32619. 800df46: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32620. 800df4a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32621. 800df4e: d102 bne.n 800df56 <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  32622. {
  32623. frequency = HSE_VALUE;
  32624. 800df50: 4b1a ldr r3, [pc, #104] @ (800dfbc <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  32625. 800df52: 63fb str r3, [r7, #60] @ 0x3c
  32626. }
  32627. else
  32628. {
  32629. frequency = 0;
  32630. }
  32631. break;
  32632. 800df54: e02b b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32633. frequency = 0;
  32634. 800df56: 2300 movs r3, #0
  32635. 800df58: 63fb str r3, [r7, #60] @ 0x3c
  32636. break;
  32637. 800df5a: e028 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32638. }
  32639. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  32640. {
  32641. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32642. 800df5c: 4b16 ldr r3, [pc, #88] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32643. 800df5e: 681b ldr r3, [r3, #0]
  32644. 800df60: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32645. 800df64: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32646. 800df68: d107 bne.n 800df7a <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  32647. {
  32648. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32649. 800df6a: f107 0324 add.w r3, r7, #36 @ 0x24
  32650. 800df6e: 4618 mov r0, r3
  32651. 800df70: f000 fae4 bl 800e53c <HAL_RCCEx_GetPLL1ClockFreq>
  32652. frequency = pll1_clocks.PLL1_Q_Frequency;
  32653. 800df74: 6abb ldr r3, [r7, #40] @ 0x28
  32654. 800df76: 63fb str r3, [r7, #60] @ 0x3c
  32655. }
  32656. else
  32657. {
  32658. frequency = 0;
  32659. }
  32660. break;
  32661. 800df78: e019 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32662. frequency = 0;
  32663. 800df7a: 2300 movs r3, #0
  32664. 800df7c: 63fb str r3, [r7, #60] @ 0x3c
  32665. break;
  32666. 800df7e: e016 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32667. }
  32668. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  32669. {
  32670. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32671. 800df80: 4b0d ldr r3, [pc, #52] @ (800dfb8 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  32672. 800df82: 681b ldr r3, [r3, #0]
  32673. 800df84: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32674. 800df88: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32675. 800df8c: d107 bne.n 800df9e <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  32676. {
  32677. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32678. 800df8e: f107 0318 add.w r3, r7, #24
  32679. 800df92: 4618 mov r0, r3
  32680. 800df94: f000 f82a bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  32681. frequency = pll2_clocks.PLL2_Q_Frequency;
  32682. 800df98: 69fb ldr r3, [r7, #28]
  32683. 800df9a: 63fb str r3, [r7, #60] @ 0x3c
  32684. }
  32685. else
  32686. {
  32687. frequency = 0;
  32688. }
  32689. break;
  32690. 800df9c: e007 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32691. frequency = 0;
  32692. 800df9e: 2300 movs r3, #0
  32693. 800dfa0: 63fb str r3, [r7, #60] @ 0x3c
  32694. break;
  32695. 800dfa2: e004 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32696. }
  32697. default :
  32698. {
  32699. frequency = 0;
  32700. 800dfa4: 2300 movs r3, #0
  32701. 800dfa6: 63fb str r3, [r7, #60] @ 0x3c
  32702. break;
  32703. 800dfa8: e001 b.n 800dfae <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32704. }
  32705. }
  32706. }
  32707. else
  32708. {
  32709. frequency = 0;
  32710. 800dfaa: 2300 movs r3, #0
  32711. 800dfac: 63fb str r3, [r7, #60] @ 0x3c
  32712. }
  32713. return frequency;
  32714. 800dfae: 6bfb ldr r3, [r7, #60] @ 0x3c
  32715. }
  32716. 800dfb0: 4618 mov r0, r3
  32717. 800dfb2: 3740 adds r7, #64 @ 0x40
  32718. 800dfb4: 46bd mov sp, r7
  32719. 800dfb6: bd80 pop {r7, pc}
  32720. 800dfb8: 58024400 .word 0x58024400
  32721. 800dfbc: 017d7840 .word 0x017d7840
  32722. 0800dfc0 <HAL_RCCEx_GetD3PCLK1Freq>:
  32723. * @note Each time D3PCLK1 changes, this function must be called to update the
  32724. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  32725. * @retval D3PCLK1 frequency
  32726. */
  32727. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  32728. {
  32729. 800dfc0: b580 push {r7, lr}
  32730. 800dfc2: af00 add r7, sp, #0
  32731. #if defined(RCC_D3CFGR_D3PPRE)
  32732. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  32733. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  32734. 800dfc4: f7fd fff0 bl 800bfa8 <HAL_RCC_GetHCLKFreq>
  32735. 800dfc8: 4602 mov r2, r0
  32736. 800dfca: 4b06 ldr r3, [pc, #24] @ (800dfe4 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  32737. 800dfcc: 6a1b ldr r3, [r3, #32]
  32738. 800dfce: 091b lsrs r3, r3, #4
  32739. 800dfd0: f003 0307 and.w r3, r3, #7
  32740. 800dfd4: 4904 ldr r1, [pc, #16] @ (800dfe8 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  32741. 800dfd6: 5ccb ldrb r3, [r1, r3]
  32742. 800dfd8: f003 031f and.w r3, r3, #31
  32743. 800dfdc: fa22 f303 lsr.w r3, r2, r3
  32744. #else
  32745. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  32746. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  32747. #endif
  32748. }
  32749. 800dfe0: 4618 mov r0, r3
  32750. 800dfe2: bd80 pop {r7, pc}
  32751. 800dfe4: 58024400 .word 0x58024400
  32752. 800dfe8: 08018c18 .word 0x08018c18
  32753. 0800dfec <HAL_RCCEx_GetPLL2ClockFreq>:
  32754. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  32755. * @param PLL2_Clocks structure.
  32756. * @retval None
  32757. */
  32758. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  32759. {
  32760. 800dfec: b480 push {r7}
  32761. 800dfee: b089 sub sp, #36 @ 0x24
  32762. 800dff0: af00 add r7, sp, #0
  32763. 800dff2: 6078 str r0, [r7, #4]
  32764. float_t fracn2, pll2vco;
  32765. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  32766. PLL2xCLK = PLL2_VCO / PLL2x
  32767. */
  32768. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  32769. 800dff4: 4ba1 ldr r3, [pc, #644] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32770. 800dff6: 6a9b ldr r3, [r3, #40] @ 0x28
  32771. 800dff8: f003 0303 and.w r3, r3, #3
  32772. 800dffc: 61bb str r3, [r7, #24]
  32773. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  32774. 800dffe: 4b9f ldr r3, [pc, #636] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32775. 800e000: 6a9b ldr r3, [r3, #40] @ 0x28
  32776. 800e002: 0b1b lsrs r3, r3, #12
  32777. 800e004: f003 033f and.w r3, r3, #63 @ 0x3f
  32778. 800e008: 617b str r3, [r7, #20]
  32779. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  32780. 800e00a: 4b9c ldr r3, [pc, #624] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32781. 800e00c: 6adb ldr r3, [r3, #44] @ 0x2c
  32782. 800e00e: 091b lsrs r3, r3, #4
  32783. 800e010: f003 0301 and.w r3, r3, #1
  32784. 800e014: 613b str r3, [r7, #16]
  32785. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  32786. 800e016: 4b99 ldr r3, [pc, #612] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32787. 800e018: 6bdb ldr r3, [r3, #60] @ 0x3c
  32788. 800e01a: 08db lsrs r3, r3, #3
  32789. 800e01c: f3c3 030c ubfx r3, r3, #0, #13
  32790. 800e020: 693a ldr r2, [r7, #16]
  32791. 800e022: fb02 f303 mul.w r3, r2, r3
  32792. 800e026: ee07 3a90 vmov s15, r3
  32793. 800e02a: eef8 7a67 vcvt.f32.u32 s15, s15
  32794. 800e02e: edc7 7a03 vstr s15, [r7, #12]
  32795. if (pll2m != 0U)
  32796. 800e032: 697b ldr r3, [r7, #20]
  32797. 800e034: 2b00 cmp r3, #0
  32798. 800e036: f000 8111 beq.w 800e25c <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  32799. {
  32800. switch (pllsource)
  32801. 800e03a: 69bb ldr r3, [r7, #24]
  32802. 800e03c: 2b02 cmp r3, #2
  32803. 800e03e: f000 8083 beq.w 800e148 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  32804. 800e042: 69bb ldr r3, [r7, #24]
  32805. 800e044: 2b02 cmp r3, #2
  32806. 800e046: f200 80a1 bhi.w 800e18c <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  32807. 800e04a: 69bb ldr r3, [r7, #24]
  32808. 800e04c: 2b00 cmp r3, #0
  32809. 800e04e: d003 beq.n 800e058 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  32810. 800e050: 69bb ldr r3, [r7, #24]
  32811. 800e052: 2b01 cmp r3, #1
  32812. 800e054: d056 beq.n 800e104 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  32813. 800e056: e099 b.n 800e18c <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  32814. {
  32815. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  32816. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32817. 800e058: 4b88 ldr r3, [pc, #544] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32818. 800e05a: 681b ldr r3, [r3, #0]
  32819. 800e05c: f003 0320 and.w r3, r3, #32
  32820. 800e060: 2b00 cmp r3, #0
  32821. 800e062: d02d beq.n 800e0c0 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  32822. {
  32823. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32824. 800e064: 4b85 ldr r3, [pc, #532] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32825. 800e066: 681b ldr r3, [r3, #0]
  32826. 800e068: 08db lsrs r3, r3, #3
  32827. 800e06a: f003 0303 and.w r3, r3, #3
  32828. 800e06e: 4a84 ldr r2, [pc, #528] @ (800e280 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  32829. 800e070: fa22 f303 lsr.w r3, r2, r3
  32830. 800e074: 60bb str r3, [r7, #8]
  32831. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32832. 800e076: 68bb ldr r3, [r7, #8]
  32833. 800e078: ee07 3a90 vmov s15, r3
  32834. 800e07c: eef8 6a67 vcvt.f32.u32 s13, s15
  32835. 800e080: 697b ldr r3, [r7, #20]
  32836. 800e082: ee07 3a90 vmov s15, r3
  32837. 800e086: eef8 7a67 vcvt.f32.u32 s15, s15
  32838. 800e08a: ee86 7aa7 vdiv.f32 s14, s13, s15
  32839. 800e08e: 4b7b ldr r3, [pc, #492] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32840. 800e090: 6b9b ldr r3, [r3, #56] @ 0x38
  32841. 800e092: f3c3 0308 ubfx r3, r3, #0, #9
  32842. 800e096: ee07 3a90 vmov s15, r3
  32843. 800e09a: eef8 6a67 vcvt.f32.u32 s13, s15
  32844. 800e09e: ed97 6a03 vldr s12, [r7, #12]
  32845. 800e0a2: eddf 5a78 vldr s11, [pc, #480] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32846. 800e0a6: eec6 7a25 vdiv.f32 s15, s12, s11
  32847. 800e0aa: ee76 7aa7 vadd.f32 s15, s13, s15
  32848. 800e0ae: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32849. 800e0b2: ee77 7aa6 vadd.f32 s15, s15, s13
  32850. 800e0b6: ee67 7a27 vmul.f32 s15, s14, s15
  32851. 800e0ba: edc7 7a07 vstr s15, [r7, #28]
  32852. }
  32853. else
  32854. {
  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. }
  32857. break;
  32858. 800e0be: e087 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32859. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32860. 800e0c0: 697b ldr r3, [r7, #20]
  32861. 800e0c2: ee07 3a90 vmov s15, r3
  32862. 800e0c6: eef8 7a67 vcvt.f32.u32 s15, s15
  32863. 800e0ca: eddf 6a6f vldr s13, [pc, #444] @ 800e288 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  32864. 800e0ce: ee86 7aa7 vdiv.f32 s14, s13, s15
  32865. 800e0d2: 4b6a ldr r3, [pc, #424] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32866. 800e0d4: 6b9b ldr r3, [r3, #56] @ 0x38
  32867. 800e0d6: f3c3 0308 ubfx r3, r3, #0, #9
  32868. 800e0da: ee07 3a90 vmov s15, r3
  32869. 800e0de: eef8 6a67 vcvt.f32.u32 s13, s15
  32870. 800e0e2: ed97 6a03 vldr s12, [r7, #12]
  32871. 800e0e6: eddf 5a67 vldr s11, [pc, #412] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32872. 800e0ea: eec6 7a25 vdiv.f32 s15, s12, s11
  32873. 800e0ee: ee76 7aa7 vadd.f32 s15, s13, s15
  32874. 800e0f2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32875. 800e0f6: ee77 7aa6 vadd.f32 s15, s15, s13
  32876. 800e0fa: ee67 7a27 vmul.f32 s15, s14, s15
  32877. 800e0fe: edc7 7a07 vstr s15, [r7, #28]
  32878. break;
  32879. 800e102: e065 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32880. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  32881. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32882. 800e104: 697b ldr r3, [r7, #20]
  32883. 800e106: ee07 3a90 vmov s15, r3
  32884. 800e10a: eef8 7a67 vcvt.f32.u32 s15, s15
  32885. 800e10e: eddf 6a5f vldr s13, [pc, #380] @ 800e28c <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  32886. 800e112: ee86 7aa7 vdiv.f32 s14, s13, s15
  32887. 800e116: 4b59 ldr r3, [pc, #356] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32888. 800e118: 6b9b ldr r3, [r3, #56] @ 0x38
  32889. 800e11a: f3c3 0308 ubfx r3, r3, #0, #9
  32890. 800e11e: ee07 3a90 vmov s15, r3
  32891. 800e122: eef8 6a67 vcvt.f32.u32 s13, s15
  32892. 800e126: ed97 6a03 vldr s12, [r7, #12]
  32893. 800e12a: eddf 5a56 vldr s11, [pc, #344] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32894. 800e12e: eec6 7a25 vdiv.f32 s15, s12, s11
  32895. 800e132: ee76 7aa7 vadd.f32 s15, s13, s15
  32896. 800e136: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32897. 800e13a: ee77 7aa6 vadd.f32 s15, s15, s13
  32898. 800e13e: ee67 7a27 vmul.f32 s15, s14, s15
  32899. 800e142: edc7 7a07 vstr s15, [r7, #28]
  32900. break;
  32901. 800e146: e043 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32902. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  32903. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32904. 800e148: 697b ldr r3, [r7, #20]
  32905. 800e14a: ee07 3a90 vmov s15, r3
  32906. 800e14e: eef8 7a67 vcvt.f32.u32 s15, s15
  32907. 800e152: eddf 6a4f vldr s13, [pc, #316] @ 800e290 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  32908. 800e156: ee86 7aa7 vdiv.f32 s14, s13, s15
  32909. 800e15a: 4b48 ldr r3, [pc, #288] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32910. 800e15c: 6b9b ldr r3, [r3, #56] @ 0x38
  32911. 800e15e: f3c3 0308 ubfx r3, r3, #0, #9
  32912. 800e162: ee07 3a90 vmov s15, r3
  32913. 800e166: eef8 6a67 vcvt.f32.u32 s13, s15
  32914. 800e16a: ed97 6a03 vldr s12, [r7, #12]
  32915. 800e16e: eddf 5a45 vldr s11, [pc, #276] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32916. 800e172: eec6 7a25 vdiv.f32 s15, s12, s11
  32917. 800e176: ee76 7aa7 vadd.f32 s15, s13, s15
  32918. 800e17a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32919. 800e17e: ee77 7aa6 vadd.f32 s15, s15, s13
  32920. 800e182: ee67 7a27 vmul.f32 s15, s14, s15
  32921. 800e186: edc7 7a07 vstr s15, [r7, #28]
  32922. break;
  32923. 800e18a: e021 b.n 800e1d0 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  32924. default:
  32925. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  32926. 800e18c: 697b ldr r3, [r7, #20]
  32927. 800e18e: ee07 3a90 vmov s15, r3
  32928. 800e192: eef8 7a67 vcvt.f32.u32 s15, s15
  32929. 800e196: eddf 6a3d vldr s13, [pc, #244] @ 800e28c <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  32930. 800e19a: ee86 7aa7 vdiv.f32 s14, s13, s15
  32931. 800e19e: 4b37 ldr r3, [pc, #220] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32932. 800e1a0: 6b9b ldr r3, [r3, #56] @ 0x38
  32933. 800e1a2: f3c3 0308 ubfx r3, r3, #0, #9
  32934. 800e1a6: ee07 3a90 vmov s15, r3
  32935. 800e1aa: eef8 6a67 vcvt.f32.u32 s13, s15
  32936. 800e1ae: ed97 6a03 vldr s12, [r7, #12]
  32937. 800e1b2: eddf 5a34 vldr s11, [pc, #208] @ 800e284 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  32938. 800e1b6: eec6 7a25 vdiv.f32 s15, s12, s11
  32939. 800e1ba: ee76 7aa7 vadd.f32 s15, s13, s15
  32940. 800e1be: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  32941. 800e1c2: ee77 7aa6 vadd.f32 s15, s15, s13
  32942. 800e1c6: ee67 7a27 vmul.f32 s15, s14, s15
  32943. 800e1ca: edc7 7a07 vstr s15, [r7, #28]
  32944. break;
  32945. 800e1ce: bf00 nop
  32946. }
  32947. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  32948. 800e1d0: 4b2a ldr r3, [pc, #168] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32949. 800e1d2: 6b9b ldr r3, [r3, #56] @ 0x38
  32950. 800e1d4: 0a5b lsrs r3, r3, #9
  32951. 800e1d6: f003 037f and.w r3, r3, #127 @ 0x7f
  32952. 800e1da: ee07 3a90 vmov s15, r3
  32953. 800e1de: eef8 7a67 vcvt.f32.u32 s15, s15
  32954. 800e1e2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32955. 800e1e6: ee37 7a87 vadd.f32 s14, s15, s14
  32956. 800e1ea: edd7 6a07 vldr s13, [r7, #28]
  32957. 800e1ee: eec6 7a87 vdiv.f32 s15, s13, s14
  32958. 800e1f2: eefc 7ae7 vcvt.u32.f32 s15, s15
  32959. 800e1f6: ee17 2a90 vmov r2, s15
  32960. 800e1fa: 687b ldr r3, [r7, #4]
  32961. 800e1fc: 601a str r2, [r3, #0]
  32962. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  32963. 800e1fe: 4b1f ldr r3, [pc, #124] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32964. 800e200: 6b9b ldr r3, [r3, #56] @ 0x38
  32965. 800e202: 0c1b lsrs r3, r3, #16
  32966. 800e204: f003 037f and.w r3, r3, #127 @ 0x7f
  32967. 800e208: ee07 3a90 vmov s15, r3
  32968. 800e20c: eef8 7a67 vcvt.f32.u32 s15, s15
  32969. 800e210: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32970. 800e214: ee37 7a87 vadd.f32 s14, s15, s14
  32971. 800e218: edd7 6a07 vldr s13, [r7, #28]
  32972. 800e21c: eec6 7a87 vdiv.f32 s15, s13, s14
  32973. 800e220: eefc 7ae7 vcvt.u32.f32 s15, s15
  32974. 800e224: ee17 2a90 vmov r2, s15
  32975. 800e228: 687b ldr r3, [r7, #4]
  32976. 800e22a: 605a str r2, [r3, #4]
  32977. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  32978. 800e22c: 4b13 ldr r3, [pc, #76] @ (800e27c <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  32979. 800e22e: 6b9b ldr r3, [r3, #56] @ 0x38
  32980. 800e230: 0e1b lsrs r3, r3, #24
  32981. 800e232: f003 037f and.w r3, r3, #127 @ 0x7f
  32982. 800e236: ee07 3a90 vmov s15, r3
  32983. 800e23a: eef8 7a67 vcvt.f32.u32 s15, s15
  32984. 800e23e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  32985. 800e242: ee37 7a87 vadd.f32 s14, s15, s14
  32986. 800e246: edd7 6a07 vldr s13, [r7, #28]
  32987. 800e24a: eec6 7a87 vdiv.f32 s15, s13, s14
  32988. 800e24e: eefc 7ae7 vcvt.u32.f32 s15, s15
  32989. 800e252: ee17 2a90 vmov r2, s15
  32990. 800e256: 687b ldr r3, [r7, #4]
  32991. 800e258: 609a str r2, [r3, #8]
  32992. {
  32993. PLL2_Clocks->PLL2_P_Frequency = 0U;
  32994. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  32995. PLL2_Clocks->PLL2_R_Frequency = 0U;
  32996. }
  32997. }
  32998. 800e25a: e008 b.n 800e26e <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  32999. PLL2_Clocks->PLL2_P_Frequency = 0U;
  33000. 800e25c: 687b ldr r3, [r7, #4]
  33001. 800e25e: 2200 movs r2, #0
  33002. 800e260: 601a str r2, [r3, #0]
  33003. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  33004. 800e262: 687b ldr r3, [r7, #4]
  33005. 800e264: 2200 movs r2, #0
  33006. 800e266: 605a str r2, [r3, #4]
  33007. PLL2_Clocks->PLL2_R_Frequency = 0U;
  33008. 800e268: 687b ldr r3, [r7, #4]
  33009. 800e26a: 2200 movs r2, #0
  33010. 800e26c: 609a str r2, [r3, #8]
  33011. }
  33012. 800e26e: bf00 nop
  33013. 800e270: 3724 adds r7, #36 @ 0x24
  33014. 800e272: 46bd mov sp, r7
  33015. 800e274: f85d 7b04 ldr.w r7, [sp], #4
  33016. 800e278: 4770 bx lr
  33017. 800e27a: bf00 nop
  33018. 800e27c: 58024400 .word 0x58024400
  33019. 800e280: 03d09000 .word 0x03d09000
  33020. 800e284: 46000000 .word 0x46000000
  33021. 800e288: 4c742400 .word 0x4c742400
  33022. 800e28c: 4a742400 .word 0x4a742400
  33023. 800e290: 4bbebc20 .word 0x4bbebc20
  33024. 0800e294 <HAL_RCCEx_GetPLL3ClockFreq>:
  33025. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  33026. * @param PLL3_Clocks structure.
  33027. * @retval None
  33028. */
  33029. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  33030. {
  33031. 800e294: b480 push {r7}
  33032. 800e296: b089 sub sp, #36 @ 0x24
  33033. 800e298: af00 add r7, sp, #0
  33034. 800e29a: 6078 str r0, [r7, #4]
  33035. float_t fracn3, pll3vco;
  33036. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  33037. PLL3xCLK = PLL3_VCO / PLLxR
  33038. */
  33039. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33040. 800e29c: 4ba1 ldr r3, [pc, #644] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33041. 800e29e: 6a9b ldr r3, [r3, #40] @ 0x28
  33042. 800e2a0: f003 0303 and.w r3, r3, #3
  33043. 800e2a4: 61bb str r3, [r7, #24]
  33044. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  33045. 800e2a6: 4b9f ldr r3, [pc, #636] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33046. 800e2a8: 6a9b ldr r3, [r3, #40] @ 0x28
  33047. 800e2aa: 0d1b lsrs r3, r3, #20
  33048. 800e2ac: f003 033f and.w r3, r3, #63 @ 0x3f
  33049. 800e2b0: 617b str r3, [r7, #20]
  33050. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  33051. 800e2b2: 4b9c ldr r3, [pc, #624] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33052. 800e2b4: 6adb ldr r3, [r3, #44] @ 0x2c
  33053. 800e2b6: 0a1b lsrs r3, r3, #8
  33054. 800e2b8: f003 0301 and.w r3, r3, #1
  33055. 800e2bc: 613b str r3, [r7, #16]
  33056. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  33057. 800e2be: 4b99 ldr r3, [pc, #612] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33058. 800e2c0: 6c5b ldr r3, [r3, #68] @ 0x44
  33059. 800e2c2: 08db lsrs r3, r3, #3
  33060. 800e2c4: f3c3 030c ubfx r3, r3, #0, #13
  33061. 800e2c8: 693a ldr r2, [r7, #16]
  33062. 800e2ca: fb02 f303 mul.w r3, r2, r3
  33063. 800e2ce: ee07 3a90 vmov s15, r3
  33064. 800e2d2: eef8 7a67 vcvt.f32.u32 s15, s15
  33065. 800e2d6: edc7 7a03 vstr s15, [r7, #12]
  33066. if (pll3m != 0U)
  33067. 800e2da: 697b ldr r3, [r7, #20]
  33068. 800e2dc: 2b00 cmp r3, #0
  33069. 800e2de: f000 8111 beq.w 800e504 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  33070. {
  33071. switch (pllsource)
  33072. 800e2e2: 69bb ldr r3, [r7, #24]
  33073. 800e2e4: 2b02 cmp r3, #2
  33074. 800e2e6: f000 8083 beq.w 800e3f0 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  33075. 800e2ea: 69bb ldr r3, [r7, #24]
  33076. 800e2ec: 2b02 cmp r3, #2
  33077. 800e2ee: f200 80a1 bhi.w 800e434 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  33078. 800e2f2: 69bb ldr r3, [r7, #24]
  33079. 800e2f4: 2b00 cmp r3, #0
  33080. 800e2f6: d003 beq.n 800e300 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  33081. 800e2f8: 69bb ldr r3, [r7, #24]
  33082. 800e2fa: 2b01 cmp r3, #1
  33083. 800e2fc: d056 beq.n 800e3ac <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  33084. 800e2fe: e099 b.n 800e434 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  33085. {
  33086. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33087. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33088. 800e300: 4b88 ldr r3, [pc, #544] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33089. 800e302: 681b ldr r3, [r3, #0]
  33090. 800e304: f003 0320 and.w r3, r3, #32
  33091. 800e308: 2b00 cmp r3, #0
  33092. 800e30a: d02d beq.n 800e368 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  33093. {
  33094. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33095. 800e30c: 4b85 ldr r3, [pc, #532] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33096. 800e30e: 681b ldr r3, [r3, #0]
  33097. 800e310: 08db lsrs r3, r3, #3
  33098. 800e312: f003 0303 and.w r3, r3, #3
  33099. 800e316: 4a84 ldr r2, [pc, #528] @ (800e528 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  33100. 800e318: fa22 f303 lsr.w r3, r2, r3
  33101. 800e31c: 60bb str r3, [r7, #8]
  33102. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33103. 800e31e: 68bb ldr r3, [r7, #8]
  33104. 800e320: ee07 3a90 vmov s15, r3
  33105. 800e324: eef8 6a67 vcvt.f32.u32 s13, s15
  33106. 800e328: 697b ldr r3, [r7, #20]
  33107. 800e32a: ee07 3a90 vmov s15, r3
  33108. 800e32e: eef8 7a67 vcvt.f32.u32 s15, s15
  33109. 800e332: ee86 7aa7 vdiv.f32 s14, s13, s15
  33110. 800e336: 4b7b ldr r3, [pc, #492] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33111. 800e338: 6c1b ldr r3, [r3, #64] @ 0x40
  33112. 800e33a: f3c3 0308 ubfx r3, r3, #0, #9
  33113. 800e33e: ee07 3a90 vmov s15, r3
  33114. 800e342: eef8 6a67 vcvt.f32.u32 s13, s15
  33115. 800e346: ed97 6a03 vldr s12, [r7, #12]
  33116. 800e34a: eddf 5a78 vldr s11, [pc, #480] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33117. 800e34e: eec6 7a25 vdiv.f32 s15, s12, s11
  33118. 800e352: ee76 7aa7 vadd.f32 s15, s13, s15
  33119. 800e356: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33120. 800e35a: ee77 7aa6 vadd.f32 s15, s15, s13
  33121. 800e35e: ee67 7a27 vmul.f32 s15, s14, s15
  33122. 800e362: edc7 7a07 vstr s15, [r7, #28]
  33123. }
  33124. else
  33125. {
  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. }
  33128. break;
  33129. 800e366: e087 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33130. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33131. 800e368: 697b ldr r3, [r7, #20]
  33132. 800e36a: ee07 3a90 vmov s15, r3
  33133. 800e36e: eef8 7a67 vcvt.f32.u32 s15, s15
  33134. 800e372: eddf 6a6f vldr s13, [pc, #444] @ 800e530 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  33135. 800e376: ee86 7aa7 vdiv.f32 s14, s13, s15
  33136. 800e37a: 4b6a ldr r3, [pc, #424] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33137. 800e37c: 6c1b ldr r3, [r3, #64] @ 0x40
  33138. 800e37e: f3c3 0308 ubfx r3, r3, #0, #9
  33139. 800e382: ee07 3a90 vmov s15, r3
  33140. 800e386: eef8 6a67 vcvt.f32.u32 s13, s15
  33141. 800e38a: ed97 6a03 vldr s12, [r7, #12]
  33142. 800e38e: eddf 5a67 vldr s11, [pc, #412] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33143. 800e392: eec6 7a25 vdiv.f32 s15, s12, s11
  33144. 800e396: ee76 7aa7 vadd.f32 s15, s13, s15
  33145. 800e39a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33146. 800e39e: ee77 7aa6 vadd.f32 s15, s15, s13
  33147. 800e3a2: ee67 7a27 vmul.f32 s15, s14, s15
  33148. 800e3a6: edc7 7a07 vstr s15, [r7, #28]
  33149. break;
  33150. 800e3aa: e065 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33151. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33152. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33153. 800e3ac: 697b ldr r3, [r7, #20]
  33154. 800e3ae: ee07 3a90 vmov s15, r3
  33155. 800e3b2: eef8 7a67 vcvt.f32.u32 s15, s15
  33156. 800e3b6: eddf 6a5f vldr s13, [pc, #380] @ 800e534 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  33157. 800e3ba: ee86 7aa7 vdiv.f32 s14, s13, s15
  33158. 800e3be: 4b59 ldr r3, [pc, #356] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33159. 800e3c0: 6c1b ldr r3, [r3, #64] @ 0x40
  33160. 800e3c2: f3c3 0308 ubfx r3, r3, #0, #9
  33161. 800e3c6: ee07 3a90 vmov s15, r3
  33162. 800e3ca: eef8 6a67 vcvt.f32.u32 s13, s15
  33163. 800e3ce: ed97 6a03 vldr s12, [r7, #12]
  33164. 800e3d2: eddf 5a56 vldr s11, [pc, #344] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33165. 800e3d6: eec6 7a25 vdiv.f32 s15, s12, s11
  33166. 800e3da: ee76 7aa7 vadd.f32 s15, s13, s15
  33167. 800e3de: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33168. 800e3e2: ee77 7aa6 vadd.f32 s15, s15, s13
  33169. 800e3e6: ee67 7a27 vmul.f32 s15, s14, s15
  33170. 800e3ea: edc7 7a07 vstr s15, [r7, #28]
  33171. break;
  33172. 800e3ee: e043 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33173. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33174. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33175. 800e3f0: 697b ldr r3, [r7, #20]
  33176. 800e3f2: ee07 3a90 vmov s15, r3
  33177. 800e3f6: eef8 7a67 vcvt.f32.u32 s15, s15
  33178. 800e3fa: eddf 6a4f vldr s13, [pc, #316] @ 800e538 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  33179. 800e3fe: ee86 7aa7 vdiv.f32 s14, s13, s15
  33180. 800e402: 4b48 ldr r3, [pc, #288] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33181. 800e404: 6c1b ldr r3, [r3, #64] @ 0x40
  33182. 800e406: f3c3 0308 ubfx r3, r3, #0, #9
  33183. 800e40a: ee07 3a90 vmov s15, r3
  33184. 800e40e: eef8 6a67 vcvt.f32.u32 s13, s15
  33185. 800e412: ed97 6a03 vldr s12, [r7, #12]
  33186. 800e416: eddf 5a45 vldr s11, [pc, #276] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33187. 800e41a: eec6 7a25 vdiv.f32 s15, s12, s11
  33188. 800e41e: ee76 7aa7 vadd.f32 s15, s13, s15
  33189. 800e422: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33190. 800e426: ee77 7aa6 vadd.f32 s15, s15, s13
  33191. 800e42a: ee67 7a27 vmul.f32 s15, s14, s15
  33192. 800e42e: edc7 7a07 vstr s15, [r7, #28]
  33193. break;
  33194. 800e432: e021 b.n 800e478 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33195. default:
  33196. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33197. 800e434: 697b ldr r3, [r7, #20]
  33198. 800e436: ee07 3a90 vmov s15, r3
  33199. 800e43a: eef8 7a67 vcvt.f32.u32 s15, s15
  33200. 800e43e: eddf 6a3d vldr s13, [pc, #244] @ 800e534 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  33201. 800e442: ee86 7aa7 vdiv.f32 s14, s13, s15
  33202. 800e446: 4b37 ldr r3, [pc, #220] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33203. 800e448: 6c1b ldr r3, [r3, #64] @ 0x40
  33204. 800e44a: f3c3 0308 ubfx r3, r3, #0, #9
  33205. 800e44e: ee07 3a90 vmov s15, r3
  33206. 800e452: eef8 6a67 vcvt.f32.u32 s13, s15
  33207. 800e456: ed97 6a03 vldr s12, [r7, #12]
  33208. 800e45a: eddf 5a34 vldr s11, [pc, #208] @ 800e52c <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33209. 800e45e: eec6 7a25 vdiv.f32 s15, s12, s11
  33210. 800e462: ee76 7aa7 vadd.f32 s15, s13, s15
  33211. 800e466: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33212. 800e46a: ee77 7aa6 vadd.f32 s15, s15, s13
  33213. 800e46e: ee67 7a27 vmul.f32 s15, s14, s15
  33214. 800e472: edc7 7a07 vstr s15, [r7, #28]
  33215. break;
  33216. 800e476: bf00 nop
  33217. }
  33218. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  33219. 800e478: 4b2a ldr r3, [pc, #168] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33220. 800e47a: 6c1b ldr r3, [r3, #64] @ 0x40
  33221. 800e47c: 0a5b lsrs r3, r3, #9
  33222. 800e47e: f003 037f and.w r3, r3, #127 @ 0x7f
  33223. 800e482: ee07 3a90 vmov s15, r3
  33224. 800e486: eef8 7a67 vcvt.f32.u32 s15, s15
  33225. 800e48a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33226. 800e48e: ee37 7a87 vadd.f32 s14, s15, s14
  33227. 800e492: edd7 6a07 vldr s13, [r7, #28]
  33228. 800e496: eec6 7a87 vdiv.f32 s15, s13, s14
  33229. 800e49a: eefc 7ae7 vcvt.u32.f32 s15, s15
  33230. 800e49e: ee17 2a90 vmov r2, s15
  33231. 800e4a2: 687b ldr r3, [r7, #4]
  33232. 800e4a4: 601a str r2, [r3, #0]
  33233. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  33234. 800e4a6: 4b1f ldr r3, [pc, #124] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33235. 800e4a8: 6c1b ldr r3, [r3, #64] @ 0x40
  33236. 800e4aa: 0c1b lsrs r3, r3, #16
  33237. 800e4ac: f003 037f and.w r3, r3, #127 @ 0x7f
  33238. 800e4b0: ee07 3a90 vmov s15, r3
  33239. 800e4b4: eef8 7a67 vcvt.f32.u32 s15, s15
  33240. 800e4b8: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33241. 800e4bc: ee37 7a87 vadd.f32 s14, s15, s14
  33242. 800e4c0: edd7 6a07 vldr s13, [r7, #28]
  33243. 800e4c4: eec6 7a87 vdiv.f32 s15, s13, s14
  33244. 800e4c8: eefc 7ae7 vcvt.u32.f32 s15, s15
  33245. 800e4cc: ee17 2a90 vmov r2, s15
  33246. 800e4d0: 687b ldr r3, [r7, #4]
  33247. 800e4d2: 605a str r2, [r3, #4]
  33248. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  33249. 800e4d4: 4b13 ldr r3, [pc, #76] @ (800e524 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33250. 800e4d6: 6c1b ldr r3, [r3, #64] @ 0x40
  33251. 800e4d8: 0e1b lsrs r3, r3, #24
  33252. 800e4da: f003 037f and.w r3, r3, #127 @ 0x7f
  33253. 800e4de: ee07 3a90 vmov s15, r3
  33254. 800e4e2: eef8 7a67 vcvt.f32.u32 s15, s15
  33255. 800e4e6: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33256. 800e4ea: ee37 7a87 vadd.f32 s14, s15, s14
  33257. 800e4ee: edd7 6a07 vldr s13, [r7, #28]
  33258. 800e4f2: eec6 7a87 vdiv.f32 s15, s13, s14
  33259. 800e4f6: eefc 7ae7 vcvt.u32.f32 s15, s15
  33260. 800e4fa: ee17 2a90 vmov r2, s15
  33261. 800e4fe: 687b ldr r3, [r7, #4]
  33262. 800e500: 609a str r2, [r3, #8]
  33263. PLL3_Clocks->PLL3_P_Frequency = 0U;
  33264. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  33265. PLL3_Clocks->PLL3_R_Frequency = 0U;
  33266. }
  33267. }
  33268. 800e502: e008 b.n 800e516 <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  33269. PLL3_Clocks->PLL3_P_Frequency = 0U;
  33270. 800e504: 687b ldr r3, [r7, #4]
  33271. 800e506: 2200 movs r2, #0
  33272. 800e508: 601a str r2, [r3, #0]
  33273. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  33274. 800e50a: 687b ldr r3, [r7, #4]
  33275. 800e50c: 2200 movs r2, #0
  33276. 800e50e: 605a str r2, [r3, #4]
  33277. PLL3_Clocks->PLL3_R_Frequency = 0U;
  33278. 800e510: 687b ldr r3, [r7, #4]
  33279. 800e512: 2200 movs r2, #0
  33280. 800e514: 609a str r2, [r3, #8]
  33281. }
  33282. 800e516: bf00 nop
  33283. 800e518: 3724 adds r7, #36 @ 0x24
  33284. 800e51a: 46bd mov sp, r7
  33285. 800e51c: f85d 7b04 ldr.w r7, [sp], #4
  33286. 800e520: 4770 bx lr
  33287. 800e522: bf00 nop
  33288. 800e524: 58024400 .word 0x58024400
  33289. 800e528: 03d09000 .word 0x03d09000
  33290. 800e52c: 46000000 .word 0x46000000
  33291. 800e530: 4c742400 .word 0x4c742400
  33292. 800e534: 4a742400 .word 0x4a742400
  33293. 800e538: 4bbebc20 .word 0x4bbebc20
  33294. 0800e53c <HAL_RCCEx_GetPLL1ClockFreq>:
  33295. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  33296. * @param PLL1_Clocks structure.
  33297. * @retval None
  33298. */
  33299. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  33300. {
  33301. 800e53c: b480 push {r7}
  33302. 800e53e: b089 sub sp, #36 @ 0x24
  33303. 800e540: af00 add r7, sp, #0
  33304. 800e542: 6078 str r0, [r7, #4]
  33305. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  33306. float_t fracn1, pll1vco;
  33307. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33308. 800e544: 4ba0 ldr r3, [pc, #640] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33309. 800e546: 6a9b ldr r3, [r3, #40] @ 0x28
  33310. 800e548: f003 0303 and.w r3, r3, #3
  33311. 800e54c: 61bb str r3, [r7, #24]
  33312. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  33313. 800e54e: 4b9e ldr r3, [pc, #632] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33314. 800e550: 6a9b ldr r3, [r3, #40] @ 0x28
  33315. 800e552: 091b lsrs r3, r3, #4
  33316. 800e554: f003 033f and.w r3, r3, #63 @ 0x3f
  33317. 800e558: 617b str r3, [r7, #20]
  33318. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  33319. 800e55a: 4b9b ldr r3, [pc, #620] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33320. 800e55c: 6adb ldr r3, [r3, #44] @ 0x2c
  33321. 800e55e: f003 0301 and.w r3, r3, #1
  33322. 800e562: 613b str r3, [r7, #16]
  33323. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  33324. 800e564: 4b98 ldr r3, [pc, #608] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33325. 800e566: 6b5b ldr r3, [r3, #52] @ 0x34
  33326. 800e568: 08db lsrs r3, r3, #3
  33327. 800e56a: f3c3 030c ubfx r3, r3, #0, #13
  33328. 800e56e: 693a ldr r2, [r7, #16]
  33329. 800e570: fb02 f303 mul.w r3, r2, r3
  33330. 800e574: ee07 3a90 vmov s15, r3
  33331. 800e578: eef8 7a67 vcvt.f32.u32 s15, s15
  33332. 800e57c: edc7 7a03 vstr s15, [r7, #12]
  33333. if (pll1m != 0U)
  33334. 800e580: 697b ldr r3, [r7, #20]
  33335. 800e582: 2b00 cmp r3, #0
  33336. 800e584: f000 8111 beq.w 800e7aa <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  33337. {
  33338. switch (pllsource)
  33339. 800e588: 69bb ldr r3, [r7, #24]
  33340. 800e58a: 2b02 cmp r3, #2
  33341. 800e58c: f000 8083 beq.w 800e696 <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  33342. 800e590: 69bb ldr r3, [r7, #24]
  33343. 800e592: 2b02 cmp r3, #2
  33344. 800e594: f200 80a1 bhi.w 800e6da <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  33345. 800e598: 69bb ldr r3, [r7, #24]
  33346. 800e59a: 2b00 cmp r3, #0
  33347. 800e59c: d003 beq.n 800e5a6 <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  33348. 800e59e: 69bb ldr r3, [r7, #24]
  33349. 800e5a0: 2b01 cmp r3, #1
  33350. 800e5a2: d056 beq.n 800e652 <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  33351. 800e5a4: e099 b.n 800e6da <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  33352. {
  33353. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33354. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33355. 800e5a6: 4b88 ldr r3, [pc, #544] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33356. 800e5a8: 681b ldr r3, [r3, #0]
  33357. 800e5aa: f003 0320 and.w r3, r3, #32
  33358. 800e5ae: 2b00 cmp r3, #0
  33359. 800e5b0: d02d beq.n 800e60e <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  33360. {
  33361. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33362. 800e5b2: 4b85 ldr r3, [pc, #532] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33363. 800e5b4: 681b ldr r3, [r3, #0]
  33364. 800e5b6: 08db lsrs r3, r3, #3
  33365. 800e5b8: f003 0303 and.w r3, r3, #3
  33366. 800e5bc: 4a83 ldr r2, [pc, #524] @ (800e7cc <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  33367. 800e5be: fa22 f303 lsr.w r3, r2, r3
  33368. 800e5c2: 60bb str r3, [r7, #8]
  33369. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33370. 800e5c4: 68bb ldr r3, [r7, #8]
  33371. 800e5c6: ee07 3a90 vmov s15, r3
  33372. 800e5ca: eef8 6a67 vcvt.f32.u32 s13, s15
  33373. 800e5ce: 697b ldr r3, [r7, #20]
  33374. 800e5d0: ee07 3a90 vmov s15, r3
  33375. 800e5d4: eef8 7a67 vcvt.f32.u32 s15, s15
  33376. 800e5d8: ee86 7aa7 vdiv.f32 s14, s13, s15
  33377. 800e5dc: 4b7a ldr r3, [pc, #488] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33378. 800e5de: 6b1b ldr r3, [r3, #48] @ 0x30
  33379. 800e5e0: f3c3 0308 ubfx r3, r3, #0, #9
  33380. 800e5e4: ee07 3a90 vmov s15, r3
  33381. 800e5e8: eef8 6a67 vcvt.f32.u32 s13, s15
  33382. 800e5ec: ed97 6a03 vldr s12, [r7, #12]
  33383. 800e5f0: eddf 5a77 vldr s11, [pc, #476] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33384. 800e5f4: eec6 7a25 vdiv.f32 s15, s12, s11
  33385. 800e5f8: ee76 7aa7 vadd.f32 s15, s13, s15
  33386. 800e5fc: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33387. 800e600: ee77 7aa6 vadd.f32 s15, s15, s13
  33388. 800e604: ee67 7a27 vmul.f32 s15, s14, s15
  33389. 800e608: edc7 7a07 vstr s15, [r7, #28]
  33390. }
  33391. else
  33392. {
  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. }
  33395. break;
  33396. 800e60c: e087 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33397. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33398. 800e60e: 697b ldr r3, [r7, #20]
  33399. 800e610: ee07 3a90 vmov s15, r3
  33400. 800e614: eef8 7a67 vcvt.f32.u32 s15, s15
  33401. 800e618: eddf 6a6e vldr s13, [pc, #440] @ 800e7d4 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  33402. 800e61c: ee86 7aa7 vdiv.f32 s14, s13, s15
  33403. 800e620: 4b69 ldr r3, [pc, #420] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33404. 800e622: 6b1b ldr r3, [r3, #48] @ 0x30
  33405. 800e624: f3c3 0308 ubfx r3, r3, #0, #9
  33406. 800e628: ee07 3a90 vmov s15, r3
  33407. 800e62c: eef8 6a67 vcvt.f32.u32 s13, s15
  33408. 800e630: ed97 6a03 vldr s12, [r7, #12]
  33409. 800e634: eddf 5a66 vldr s11, [pc, #408] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33410. 800e638: eec6 7a25 vdiv.f32 s15, s12, s11
  33411. 800e63c: ee76 7aa7 vadd.f32 s15, s13, s15
  33412. 800e640: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33413. 800e644: ee77 7aa6 vadd.f32 s15, s15, s13
  33414. 800e648: ee67 7a27 vmul.f32 s15, s14, s15
  33415. 800e64c: edc7 7a07 vstr s15, [r7, #28]
  33416. break;
  33417. 800e650: e065 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33418. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33419. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33420. 800e652: 697b ldr r3, [r7, #20]
  33421. 800e654: ee07 3a90 vmov s15, r3
  33422. 800e658: eef8 7a67 vcvt.f32.u32 s15, s15
  33423. 800e65c: eddf 6a5e vldr s13, [pc, #376] @ 800e7d8 <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  33424. 800e660: ee86 7aa7 vdiv.f32 s14, s13, s15
  33425. 800e664: 4b58 ldr r3, [pc, #352] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33426. 800e666: 6b1b ldr r3, [r3, #48] @ 0x30
  33427. 800e668: f3c3 0308 ubfx r3, r3, #0, #9
  33428. 800e66c: ee07 3a90 vmov s15, r3
  33429. 800e670: eef8 6a67 vcvt.f32.u32 s13, s15
  33430. 800e674: ed97 6a03 vldr s12, [r7, #12]
  33431. 800e678: eddf 5a55 vldr s11, [pc, #340] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33432. 800e67c: eec6 7a25 vdiv.f32 s15, s12, s11
  33433. 800e680: ee76 7aa7 vadd.f32 s15, s13, s15
  33434. 800e684: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33435. 800e688: ee77 7aa6 vadd.f32 s15, s15, s13
  33436. 800e68c: ee67 7a27 vmul.f32 s15, s14, s15
  33437. 800e690: edc7 7a07 vstr s15, [r7, #28]
  33438. break;
  33439. 800e694: e043 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33440. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33441. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33442. 800e696: 697b ldr r3, [r7, #20]
  33443. 800e698: ee07 3a90 vmov s15, r3
  33444. 800e69c: eef8 7a67 vcvt.f32.u32 s15, s15
  33445. 800e6a0: eddf 6a4e vldr s13, [pc, #312] @ 800e7dc <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  33446. 800e6a4: ee86 7aa7 vdiv.f32 s14, s13, s15
  33447. 800e6a8: 4b47 ldr r3, [pc, #284] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33448. 800e6aa: 6b1b ldr r3, [r3, #48] @ 0x30
  33449. 800e6ac: f3c3 0308 ubfx r3, r3, #0, #9
  33450. 800e6b0: ee07 3a90 vmov s15, r3
  33451. 800e6b4: eef8 6a67 vcvt.f32.u32 s13, s15
  33452. 800e6b8: ed97 6a03 vldr s12, [r7, #12]
  33453. 800e6bc: eddf 5a44 vldr s11, [pc, #272] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33454. 800e6c0: eec6 7a25 vdiv.f32 s15, s12, s11
  33455. 800e6c4: ee76 7aa7 vadd.f32 s15, s13, s15
  33456. 800e6c8: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33457. 800e6cc: ee77 7aa6 vadd.f32 s15, s15, s13
  33458. 800e6d0: ee67 7a27 vmul.f32 s15, s14, s15
  33459. 800e6d4: edc7 7a07 vstr s15, [r7, #28]
  33460. break;
  33461. 800e6d8: e021 b.n 800e71e <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  33462. default:
  33463. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  33464. 800e6da: 697b ldr r3, [r7, #20]
  33465. 800e6dc: ee07 3a90 vmov s15, r3
  33466. 800e6e0: eef8 7a67 vcvt.f32.u32 s15, s15
  33467. 800e6e4: eddf 6a3b vldr s13, [pc, #236] @ 800e7d4 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  33468. 800e6e8: ee86 7aa7 vdiv.f32 s14, s13, s15
  33469. 800e6ec: 4b36 ldr r3, [pc, #216] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33470. 800e6ee: 6b1b ldr r3, [r3, #48] @ 0x30
  33471. 800e6f0: f3c3 0308 ubfx r3, r3, #0, #9
  33472. 800e6f4: ee07 3a90 vmov s15, r3
  33473. 800e6f8: eef8 6a67 vcvt.f32.u32 s13, s15
  33474. 800e6fc: ed97 6a03 vldr s12, [r7, #12]
  33475. 800e700: eddf 5a33 vldr s11, [pc, #204] @ 800e7d0 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  33476. 800e704: eec6 7a25 vdiv.f32 s15, s12, s11
  33477. 800e708: ee76 7aa7 vadd.f32 s15, s13, s15
  33478. 800e70c: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33479. 800e710: ee77 7aa6 vadd.f32 s15, s15, s13
  33480. 800e714: ee67 7a27 vmul.f32 s15, s14, s15
  33481. 800e718: edc7 7a07 vstr s15, [r7, #28]
  33482. break;
  33483. 800e71c: bf00 nop
  33484. }
  33485. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  33486. 800e71e: 4b2a ldr r3, [pc, #168] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33487. 800e720: 6b1b ldr r3, [r3, #48] @ 0x30
  33488. 800e722: 0a5b lsrs r3, r3, #9
  33489. 800e724: f003 037f and.w r3, r3, #127 @ 0x7f
  33490. 800e728: ee07 3a90 vmov s15, r3
  33491. 800e72c: eef8 7a67 vcvt.f32.u32 s15, s15
  33492. 800e730: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33493. 800e734: ee37 7a87 vadd.f32 s14, s15, s14
  33494. 800e738: edd7 6a07 vldr s13, [r7, #28]
  33495. 800e73c: eec6 7a87 vdiv.f32 s15, s13, s14
  33496. 800e740: eefc 7ae7 vcvt.u32.f32 s15, s15
  33497. 800e744: ee17 2a90 vmov r2, s15
  33498. 800e748: 687b ldr r3, [r7, #4]
  33499. 800e74a: 601a str r2, [r3, #0]
  33500. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  33501. 800e74c: 4b1e ldr r3, [pc, #120] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33502. 800e74e: 6b1b ldr r3, [r3, #48] @ 0x30
  33503. 800e750: 0c1b lsrs r3, r3, #16
  33504. 800e752: f003 037f and.w r3, r3, #127 @ 0x7f
  33505. 800e756: ee07 3a90 vmov s15, r3
  33506. 800e75a: eef8 7a67 vcvt.f32.u32 s15, s15
  33507. 800e75e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33508. 800e762: ee37 7a87 vadd.f32 s14, s15, s14
  33509. 800e766: edd7 6a07 vldr s13, [r7, #28]
  33510. 800e76a: eec6 7a87 vdiv.f32 s15, s13, s14
  33511. 800e76e: eefc 7ae7 vcvt.u32.f32 s15, s15
  33512. 800e772: ee17 2a90 vmov r2, s15
  33513. 800e776: 687b ldr r3, [r7, #4]
  33514. 800e778: 605a str r2, [r3, #4]
  33515. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  33516. 800e77a: 4b13 ldr r3, [pc, #76] @ (800e7c8 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33517. 800e77c: 6b1b ldr r3, [r3, #48] @ 0x30
  33518. 800e77e: 0e1b lsrs r3, r3, #24
  33519. 800e780: f003 037f and.w r3, r3, #127 @ 0x7f
  33520. 800e784: ee07 3a90 vmov s15, r3
  33521. 800e788: eef8 7a67 vcvt.f32.u32 s15, s15
  33522. 800e78c: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33523. 800e790: ee37 7a87 vadd.f32 s14, s15, s14
  33524. 800e794: edd7 6a07 vldr s13, [r7, #28]
  33525. 800e798: eec6 7a87 vdiv.f32 s15, s13, s14
  33526. 800e79c: eefc 7ae7 vcvt.u32.f32 s15, s15
  33527. 800e7a0: ee17 2a90 vmov r2, s15
  33528. 800e7a4: 687b ldr r3, [r7, #4]
  33529. 800e7a6: 609a str r2, [r3, #8]
  33530. PLL1_Clocks->PLL1_P_Frequency = 0U;
  33531. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  33532. PLL1_Clocks->PLL1_R_Frequency = 0U;
  33533. }
  33534. }
  33535. 800e7a8: e008 b.n 800e7bc <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  33536. PLL1_Clocks->PLL1_P_Frequency = 0U;
  33537. 800e7aa: 687b ldr r3, [r7, #4]
  33538. 800e7ac: 2200 movs r2, #0
  33539. 800e7ae: 601a str r2, [r3, #0]
  33540. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  33541. 800e7b0: 687b ldr r3, [r7, #4]
  33542. 800e7b2: 2200 movs r2, #0
  33543. 800e7b4: 605a str r2, [r3, #4]
  33544. PLL1_Clocks->PLL1_R_Frequency = 0U;
  33545. 800e7b6: 687b ldr r3, [r7, #4]
  33546. 800e7b8: 2200 movs r2, #0
  33547. 800e7ba: 609a str r2, [r3, #8]
  33548. }
  33549. 800e7bc: bf00 nop
  33550. 800e7be: 3724 adds r7, #36 @ 0x24
  33551. 800e7c0: 46bd mov sp, r7
  33552. 800e7c2: f85d 7b04 ldr.w r7, [sp], #4
  33553. 800e7c6: 4770 bx lr
  33554. 800e7c8: 58024400 .word 0x58024400
  33555. 800e7cc: 03d09000 .word 0x03d09000
  33556. 800e7d0: 46000000 .word 0x46000000
  33557. 800e7d4: 4c742400 .word 0x4c742400
  33558. 800e7d8: 4a742400 .word 0x4a742400
  33559. 800e7dc: 4bbebc20 .word 0x4bbebc20
  33560. 0800e7e0 <RCCEx_PLL2_Config>:
  33561. * @note PLL2 is temporary disabled to apply new parameters
  33562. *
  33563. * @retval HAL status
  33564. */
  33565. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  33566. {
  33567. 800e7e0: b580 push {r7, lr}
  33568. 800e7e2: b084 sub sp, #16
  33569. 800e7e4: af00 add r7, sp, #0
  33570. 800e7e6: 6078 str r0, [r7, #4]
  33571. 800e7e8: 6039 str r1, [r7, #0]
  33572. uint32_t tickstart;
  33573. HAL_StatusTypeDef status = HAL_OK;
  33574. 800e7ea: 2300 movs r3, #0
  33575. 800e7ec: 73fb strb r3, [r7, #15]
  33576. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  33577. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  33578. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  33579. /* Check that PLL2 OSC clock source is already set */
  33580. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  33581. 800e7ee: 4b53 ldr r3, [pc, #332] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33582. 800e7f0: 6a9b ldr r3, [r3, #40] @ 0x28
  33583. 800e7f2: f003 0303 and.w r3, r3, #3
  33584. 800e7f6: 2b03 cmp r3, #3
  33585. 800e7f8: d101 bne.n 800e7fe <RCCEx_PLL2_Config+0x1e>
  33586. {
  33587. return HAL_ERROR;
  33588. 800e7fa: 2301 movs r3, #1
  33589. 800e7fc: e099 b.n 800e932 <RCCEx_PLL2_Config+0x152>
  33590. else
  33591. {
  33592. /* Disable PLL2. */
  33593. __HAL_RCC_PLL2_DISABLE();
  33594. 800e7fe: 4b4f ldr r3, [pc, #316] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33595. 800e800: 681b ldr r3, [r3, #0]
  33596. 800e802: 4a4e ldr r2, [pc, #312] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33597. 800e804: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  33598. 800e808: 6013 str r3, [r2, #0]
  33599. /* Get Start Tick*/
  33600. tickstart = HAL_GetTick();
  33601. 800e80a: f7f6 fead bl 8005568 <HAL_GetTick>
  33602. 800e80e: 60b8 str r0, [r7, #8]
  33603. /* Wait till PLL is disabled */
  33604. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  33605. 800e810: e008 b.n 800e824 <RCCEx_PLL2_Config+0x44>
  33606. {
  33607. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  33608. 800e812: f7f6 fea9 bl 8005568 <HAL_GetTick>
  33609. 800e816: 4602 mov r2, r0
  33610. 800e818: 68bb ldr r3, [r7, #8]
  33611. 800e81a: 1ad3 subs r3, r2, r3
  33612. 800e81c: 2b02 cmp r3, #2
  33613. 800e81e: d901 bls.n 800e824 <RCCEx_PLL2_Config+0x44>
  33614. {
  33615. return HAL_TIMEOUT;
  33616. 800e820: 2303 movs r3, #3
  33617. 800e822: e086 b.n 800e932 <RCCEx_PLL2_Config+0x152>
  33618. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  33619. 800e824: 4b45 ldr r3, [pc, #276] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33620. 800e826: 681b ldr r3, [r3, #0]
  33621. 800e828: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33622. 800e82c: 2b00 cmp r3, #0
  33623. 800e82e: d1f0 bne.n 800e812 <RCCEx_PLL2_Config+0x32>
  33624. }
  33625. }
  33626. /* Configure PLL2 multiplication and division factors. */
  33627. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  33628. 800e830: 4b42 ldr r3, [pc, #264] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33629. 800e832: 6a9b ldr r3, [r3, #40] @ 0x28
  33630. 800e834: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  33631. 800e838: 687b ldr r3, [r7, #4]
  33632. 800e83a: 681b ldr r3, [r3, #0]
  33633. 800e83c: 031b lsls r3, r3, #12
  33634. 800e83e: 493f ldr r1, [pc, #252] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33635. 800e840: 4313 orrs r3, r2
  33636. 800e842: 628b str r3, [r1, #40] @ 0x28
  33637. 800e844: 687b ldr r3, [r7, #4]
  33638. 800e846: 685b ldr r3, [r3, #4]
  33639. 800e848: 3b01 subs r3, #1
  33640. 800e84a: f3c3 0208 ubfx r2, r3, #0, #9
  33641. 800e84e: 687b ldr r3, [r7, #4]
  33642. 800e850: 689b ldr r3, [r3, #8]
  33643. 800e852: 3b01 subs r3, #1
  33644. 800e854: 025b lsls r3, r3, #9
  33645. 800e856: b29b uxth r3, r3
  33646. 800e858: 431a orrs r2, r3
  33647. 800e85a: 687b ldr r3, [r7, #4]
  33648. 800e85c: 68db ldr r3, [r3, #12]
  33649. 800e85e: 3b01 subs r3, #1
  33650. 800e860: 041b lsls r3, r3, #16
  33651. 800e862: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  33652. 800e866: 431a orrs r2, r3
  33653. 800e868: 687b ldr r3, [r7, #4]
  33654. 800e86a: 691b ldr r3, [r3, #16]
  33655. 800e86c: 3b01 subs r3, #1
  33656. 800e86e: 061b lsls r3, r3, #24
  33657. 800e870: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  33658. 800e874: 4931 ldr r1, [pc, #196] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33659. 800e876: 4313 orrs r3, r2
  33660. 800e878: 638b str r3, [r1, #56] @ 0x38
  33661. pll2->PLL2P,
  33662. pll2->PLL2Q,
  33663. pll2->PLL2R);
  33664. /* Select PLL2 input reference frequency range: VCI */
  33665. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  33666. 800e87a: 4b30 ldr r3, [pc, #192] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33667. 800e87c: 6adb ldr r3, [r3, #44] @ 0x2c
  33668. 800e87e: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  33669. 800e882: 687b ldr r3, [r7, #4]
  33670. 800e884: 695b ldr r3, [r3, #20]
  33671. 800e886: 492d ldr r1, [pc, #180] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33672. 800e888: 4313 orrs r3, r2
  33673. 800e88a: 62cb str r3, [r1, #44] @ 0x2c
  33674. /* Select PLL2 output frequency range : VCO */
  33675. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  33676. 800e88c: 4b2b ldr r3, [pc, #172] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33677. 800e88e: 6adb ldr r3, [r3, #44] @ 0x2c
  33678. 800e890: f023 0220 bic.w r2, r3, #32
  33679. 800e894: 687b ldr r3, [r7, #4]
  33680. 800e896: 699b ldr r3, [r3, #24]
  33681. 800e898: 4928 ldr r1, [pc, #160] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33682. 800e89a: 4313 orrs r3, r2
  33683. 800e89c: 62cb str r3, [r1, #44] @ 0x2c
  33684. /* Disable PLL2FRACN . */
  33685. __HAL_RCC_PLL2FRACN_DISABLE();
  33686. 800e89e: 4b27 ldr r3, [pc, #156] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33687. 800e8a0: 6adb ldr r3, [r3, #44] @ 0x2c
  33688. 800e8a2: 4a26 ldr r2, [pc, #152] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33689. 800e8a4: f023 0310 bic.w r3, r3, #16
  33690. 800e8a8: 62d3 str r3, [r2, #44] @ 0x2c
  33691. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  33692. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  33693. 800e8aa: 4b24 ldr r3, [pc, #144] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33694. 800e8ac: 6bda ldr r2, [r3, #60] @ 0x3c
  33695. 800e8ae: 4b24 ldr r3, [pc, #144] @ (800e940 <RCCEx_PLL2_Config+0x160>)
  33696. 800e8b0: 4013 ands r3, r2
  33697. 800e8b2: 687a ldr r2, [r7, #4]
  33698. 800e8b4: 69d2 ldr r2, [r2, #28]
  33699. 800e8b6: 00d2 lsls r2, r2, #3
  33700. 800e8b8: 4920 ldr r1, [pc, #128] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33701. 800e8ba: 4313 orrs r3, r2
  33702. 800e8bc: 63cb str r3, [r1, #60] @ 0x3c
  33703. /* Enable PLL2FRACN . */
  33704. __HAL_RCC_PLL2FRACN_ENABLE();
  33705. 800e8be: 4b1f ldr r3, [pc, #124] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33706. 800e8c0: 6adb ldr r3, [r3, #44] @ 0x2c
  33707. 800e8c2: 4a1e ldr r2, [pc, #120] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33708. 800e8c4: f043 0310 orr.w r3, r3, #16
  33709. 800e8c8: 62d3 str r3, [r2, #44] @ 0x2c
  33710. /* Enable the PLL2 clock output */
  33711. if (Divider == DIVIDER_P_UPDATE)
  33712. 800e8ca: 683b ldr r3, [r7, #0]
  33713. 800e8cc: 2b00 cmp r3, #0
  33714. 800e8ce: d106 bne.n 800e8de <RCCEx_PLL2_Config+0xfe>
  33715. {
  33716. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  33717. 800e8d0: 4b1a ldr r3, [pc, #104] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33718. 800e8d2: 6adb ldr r3, [r3, #44] @ 0x2c
  33719. 800e8d4: 4a19 ldr r2, [pc, #100] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33720. 800e8d6: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  33721. 800e8da: 62d3 str r3, [r2, #44] @ 0x2c
  33722. 800e8dc: e00f b.n 800e8fe <RCCEx_PLL2_Config+0x11e>
  33723. }
  33724. else if (Divider == DIVIDER_Q_UPDATE)
  33725. 800e8de: 683b ldr r3, [r7, #0]
  33726. 800e8e0: 2b01 cmp r3, #1
  33727. 800e8e2: d106 bne.n 800e8f2 <RCCEx_PLL2_Config+0x112>
  33728. {
  33729. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  33730. 800e8e4: 4b15 ldr r3, [pc, #84] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33731. 800e8e6: 6adb ldr r3, [r3, #44] @ 0x2c
  33732. 800e8e8: 4a14 ldr r2, [pc, #80] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33733. 800e8ea: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  33734. 800e8ee: 62d3 str r3, [r2, #44] @ 0x2c
  33735. 800e8f0: e005 b.n 800e8fe <RCCEx_PLL2_Config+0x11e>
  33736. }
  33737. else
  33738. {
  33739. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  33740. 800e8f2: 4b12 ldr r3, [pc, #72] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33741. 800e8f4: 6adb ldr r3, [r3, #44] @ 0x2c
  33742. 800e8f6: 4a11 ldr r2, [pc, #68] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33743. 800e8f8: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  33744. 800e8fc: 62d3 str r3, [r2, #44] @ 0x2c
  33745. }
  33746. /* Enable PLL2. */
  33747. __HAL_RCC_PLL2_ENABLE();
  33748. 800e8fe: 4b0f ldr r3, [pc, #60] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33749. 800e900: 681b ldr r3, [r3, #0]
  33750. 800e902: 4a0e ldr r2, [pc, #56] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33751. 800e904: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  33752. 800e908: 6013 str r3, [r2, #0]
  33753. /* Get Start Tick*/
  33754. tickstart = HAL_GetTick();
  33755. 800e90a: f7f6 fe2d bl 8005568 <HAL_GetTick>
  33756. 800e90e: 60b8 str r0, [r7, #8]
  33757. /* Wait till PLL2 is ready */
  33758. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  33759. 800e910: e008 b.n 800e924 <RCCEx_PLL2_Config+0x144>
  33760. {
  33761. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  33762. 800e912: f7f6 fe29 bl 8005568 <HAL_GetTick>
  33763. 800e916: 4602 mov r2, r0
  33764. 800e918: 68bb ldr r3, [r7, #8]
  33765. 800e91a: 1ad3 subs r3, r2, r3
  33766. 800e91c: 2b02 cmp r3, #2
  33767. 800e91e: d901 bls.n 800e924 <RCCEx_PLL2_Config+0x144>
  33768. {
  33769. return HAL_TIMEOUT;
  33770. 800e920: 2303 movs r3, #3
  33771. 800e922: e006 b.n 800e932 <RCCEx_PLL2_Config+0x152>
  33772. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  33773. 800e924: 4b05 ldr r3, [pc, #20] @ (800e93c <RCCEx_PLL2_Config+0x15c>)
  33774. 800e926: 681b ldr r3, [r3, #0]
  33775. 800e928: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33776. 800e92c: 2b00 cmp r3, #0
  33777. 800e92e: d0f0 beq.n 800e912 <RCCEx_PLL2_Config+0x132>
  33778. }
  33779. }
  33780. return status;
  33781. 800e930: 7bfb ldrb r3, [r7, #15]
  33782. }
  33783. 800e932: 4618 mov r0, r3
  33784. 800e934: 3710 adds r7, #16
  33785. 800e936: 46bd mov sp, r7
  33786. 800e938: bd80 pop {r7, pc}
  33787. 800e93a: bf00 nop
  33788. 800e93c: 58024400 .word 0x58024400
  33789. 800e940: ffff0007 .word 0xffff0007
  33790. 0800e944 <RCCEx_PLL3_Config>:
  33791. * @note PLL3 is temporary disabled to apply new parameters
  33792. *
  33793. * @retval HAL status
  33794. */
  33795. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  33796. {
  33797. 800e944: b580 push {r7, lr}
  33798. 800e946: b084 sub sp, #16
  33799. 800e948: af00 add r7, sp, #0
  33800. 800e94a: 6078 str r0, [r7, #4]
  33801. 800e94c: 6039 str r1, [r7, #0]
  33802. uint32_t tickstart;
  33803. HAL_StatusTypeDef status = HAL_OK;
  33804. 800e94e: 2300 movs r3, #0
  33805. 800e950: 73fb strb r3, [r7, #15]
  33806. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  33807. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  33808. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  33809. /* Check that PLL3 OSC clock source is already set */
  33810. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  33811. 800e952: 4b53 ldr r3, [pc, #332] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33812. 800e954: 6a9b ldr r3, [r3, #40] @ 0x28
  33813. 800e956: f003 0303 and.w r3, r3, #3
  33814. 800e95a: 2b03 cmp r3, #3
  33815. 800e95c: d101 bne.n 800e962 <RCCEx_PLL3_Config+0x1e>
  33816. {
  33817. return HAL_ERROR;
  33818. 800e95e: 2301 movs r3, #1
  33819. 800e960: e099 b.n 800ea96 <RCCEx_PLL3_Config+0x152>
  33820. else
  33821. {
  33822. /* Disable PLL3. */
  33823. __HAL_RCC_PLL3_DISABLE();
  33824. 800e962: 4b4f ldr r3, [pc, #316] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33825. 800e964: 681b ldr r3, [r3, #0]
  33826. 800e966: 4a4e ldr r2, [pc, #312] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33827. 800e968: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  33828. 800e96c: 6013 str r3, [r2, #0]
  33829. /* Get Start Tick*/
  33830. tickstart = HAL_GetTick();
  33831. 800e96e: f7f6 fdfb bl 8005568 <HAL_GetTick>
  33832. 800e972: 60b8 str r0, [r7, #8]
  33833. /* Wait till PLL3 is ready */
  33834. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  33835. 800e974: e008 b.n 800e988 <RCCEx_PLL3_Config+0x44>
  33836. {
  33837. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  33838. 800e976: f7f6 fdf7 bl 8005568 <HAL_GetTick>
  33839. 800e97a: 4602 mov r2, r0
  33840. 800e97c: 68bb ldr r3, [r7, #8]
  33841. 800e97e: 1ad3 subs r3, r2, r3
  33842. 800e980: 2b02 cmp r3, #2
  33843. 800e982: d901 bls.n 800e988 <RCCEx_PLL3_Config+0x44>
  33844. {
  33845. return HAL_TIMEOUT;
  33846. 800e984: 2303 movs r3, #3
  33847. 800e986: e086 b.n 800ea96 <RCCEx_PLL3_Config+0x152>
  33848. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  33849. 800e988: 4b45 ldr r3, [pc, #276] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33850. 800e98a: 681b ldr r3, [r3, #0]
  33851. 800e98c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33852. 800e990: 2b00 cmp r3, #0
  33853. 800e992: d1f0 bne.n 800e976 <RCCEx_PLL3_Config+0x32>
  33854. }
  33855. }
  33856. /* Configure the PLL3 multiplication and division factors. */
  33857. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  33858. 800e994: 4b42 ldr r3, [pc, #264] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33859. 800e996: 6a9b ldr r3, [r3, #40] @ 0x28
  33860. 800e998: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  33861. 800e99c: 687b ldr r3, [r7, #4]
  33862. 800e99e: 681b ldr r3, [r3, #0]
  33863. 800e9a0: 051b lsls r3, r3, #20
  33864. 800e9a2: 493f ldr r1, [pc, #252] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33865. 800e9a4: 4313 orrs r3, r2
  33866. 800e9a6: 628b str r3, [r1, #40] @ 0x28
  33867. 800e9a8: 687b ldr r3, [r7, #4]
  33868. 800e9aa: 685b ldr r3, [r3, #4]
  33869. 800e9ac: 3b01 subs r3, #1
  33870. 800e9ae: f3c3 0208 ubfx r2, r3, #0, #9
  33871. 800e9b2: 687b ldr r3, [r7, #4]
  33872. 800e9b4: 689b ldr r3, [r3, #8]
  33873. 800e9b6: 3b01 subs r3, #1
  33874. 800e9b8: 025b lsls r3, r3, #9
  33875. 800e9ba: b29b uxth r3, r3
  33876. 800e9bc: 431a orrs r2, r3
  33877. 800e9be: 687b ldr r3, [r7, #4]
  33878. 800e9c0: 68db ldr r3, [r3, #12]
  33879. 800e9c2: 3b01 subs r3, #1
  33880. 800e9c4: 041b lsls r3, r3, #16
  33881. 800e9c6: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  33882. 800e9ca: 431a orrs r2, r3
  33883. 800e9cc: 687b ldr r3, [r7, #4]
  33884. 800e9ce: 691b ldr r3, [r3, #16]
  33885. 800e9d0: 3b01 subs r3, #1
  33886. 800e9d2: 061b lsls r3, r3, #24
  33887. 800e9d4: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  33888. 800e9d8: 4931 ldr r1, [pc, #196] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33889. 800e9da: 4313 orrs r3, r2
  33890. 800e9dc: 640b str r3, [r1, #64] @ 0x40
  33891. pll3->PLL3P,
  33892. pll3->PLL3Q,
  33893. pll3->PLL3R);
  33894. /* Select PLL3 input reference frequency range: VCI */
  33895. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  33896. 800e9de: 4b30 ldr r3, [pc, #192] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33897. 800e9e0: 6adb ldr r3, [r3, #44] @ 0x2c
  33898. 800e9e2: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  33899. 800e9e6: 687b ldr r3, [r7, #4]
  33900. 800e9e8: 695b ldr r3, [r3, #20]
  33901. 800e9ea: 492d ldr r1, [pc, #180] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33902. 800e9ec: 4313 orrs r3, r2
  33903. 800e9ee: 62cb str r3, [r1, #44] @ 0x2c
  33904. /* Select PLL3 output frequency range : VCO */
  33905. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  33906. 800e9f0: 4b2b ldr r3, [pc, #172] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33907. 800e9f2: 6adb ldr r3, [r3, #44] @ 0x2c
  33908. 800e9f4: f423 7200 bic.w r2, r3, #512 @ 0x200
  33909. 800e9f8: 687b ldr r3, [r7, #4]
  33910. 800e9fa: 699b ldr r3, [r3, #24]
  33911. 800e9fc: 4928 ldr r1, [pc, #160] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33912. 800e9fe: 4313 orrs r3, r2
  33913. 800ea00: 62cb str r3, [r1, #44] @ 0x2c
  33914. /* Disable PLL3FRACN . */
  33915. __HAL_RCC_PLL3FRACN_DISABLE();
  33916. 800ea02: 4b27 ldr r3, [pc, #156] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33917. 800ea04: 6adb ldr r3, [r3, #44] @ 0x2c
  33918. 800ea06: 4a26 ldr r2, [pc, #152] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33919. 800ea08: f423 7380 bic.w r3, r3, #256 @ 0x100
  33920. 800ea0c: 62d3 str r3, [r2, #44] @ 0x2c
  33921. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  33922. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  33923. 800ea0e: 4b24 ldr r3, [pc, #144] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33924. 800ea10: 6c5a ldr r2, [r3, #68] @ 0x44
  33925. 800ea12: 4b24 ldr r3, [pc, #144] @ (800eaa4 <RCCEx_PLL3_Config+0x160>)
  33926. 800ea14: 4013 ands r3, r2
  33927. 800ea16: 687a ldr r2, [r7, #4]
  33928. 800ea18: 69d2 ldr r2, [r2, #28]
  33929. 800ea1a: 00d2 lsls r2, r2, #3
  33930. 800ea1c: 4920 ldr r1, [pc, #128] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33931. 800ea1e: 4313 orrs r3, r2
  33932. 800ea20: 644b str r3, [r1, #68] @ 0x44
  33933. /* Enable PLL3FRACN . */
  33934. __HAL_RCC_PLL3FRACN_ENABLE();
  33935. 800ea22: 4b1f ldr r3, [pc, #124] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33936. 800ea24: 6adb ldr r3, [r3, #44] @ 0x2c
  33937. 800ea26: 4a1e ldr r2, [pc, #120] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33938. 800ea28: f443 7380 orr.w r3, r3, #256 @ 0x100
  33939. 800ea2c: 62d3 str r3, [r2, #44] @ 0x2c
  33940. /* Enable the PLL3 clock output */
  33941. if (Divider == DIVIDER_P_UPDATE)
  33942. 800ea2e: 683b ldr r3, [r7, #0]
  33943. 800ea30: 2b00 cmp r3, #0
  33944. 800ea32: d106 bne.n 800ea42 <RCCEx_PLL3_Config+0xfe>
  33945. {
  33946. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  33947. 800ea34: 4b1a ldr r3, [pc, #104] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33948. 800ea36: 6adb ldr r3, [r3, #44] @ 0x2c
  33949. 800ea38: 4a19 ldr r2, [pc, #100] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33950. 800ea3a: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  33951. 800ea3e: 62d3 str r3, [r2, #44] @ 0x2c
  33952. 800ea40: e00f b.n 800ea62 <RCCEx_PLL3_Config+0x11e>
  33953. }
  33954. else if (Divider == DIVIDER_Q_UPDATE)
  33955. 800ea42: 683b ldr r3, [r7, #0]
  33956. 800ea44: 2b01 cmp r3, #1
  33957. 800ea46: d106 bne.n 800ea56 <RCCEx_PLL3_Config+0x112>
  33958. {
  33959. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  33960. 800ea48: 4b15 ldr r3, [pc, #84] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33961. 800ea4a: 6adb ldr r3, [r3, #44] @ 0x2c
  33962. 800ea4c: 4a14 ldr r2, [pc, #80] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33963. 800ea4e: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  33964. 800ea52: 62d3 str r3, [r2, #44] @ 0x2c
  33965. 800ea54: e005 b.n 800ea62 <RCCEx_PLL3_Config+0x11e>
  33966. }
  33967. else
  33968. {
  33969. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  33970. 800ea56: 4b12 ldr r3, [pc, #72] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33971. 800ea58: 6adb ldr r3, [r3, #44] @ 0x2c
  33972. 800ea5a: 4a11 ldr r2, [pc, #68] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33973. 800ea5c: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  33974. 800ea60: 62d3 str r3, [r2, #44] @ 0x2c
  33975. }
  33976. /* Enable PLL3. */
  33977. __HAL_RCC_PLL3_ENABLE();
  33978. 800ea62: 4b0f ldr r3, [pc, #60] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33979. 800ea64: 681b ldr r3, [r3, #0]
  33980. 800ea66: 4a0e ldr r2, [pc, #56] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  33981. 800ea68: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  33982. 800ea6c: 6013 str r3, [r2, #0]
  33983. /* Get Start Tick*/
  33984. tickstart = HAL_GetTick();
  33985. 800ea6e: f7f6 fd7b bl 8005568 <HAL_GetTick>
  33986. 800ea72: 60b8 str r0, [r7, #8]
  33987. /* Wait till PLL3 is ready */
  33988. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  33989. 800ea74: e008 b.n 800ea88 <RCCEx_PLL3_Config+0x144>
  33990. {
  33991. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  33992. 800ea76: f7f6 fd77 bl 8005568 <HAL_GetTick>
  33993. 800ea7a: 4602 mov r2, r0
  33994. 800ea7c: 68bb ldr r3, [r7, #8]
  33995. 800ea7e: 1ad3 subs r3, r2, r3
  33996. 800ea80: 2b02 cmp r3, #2
  33997. 800ea82: d901 bls.n 800ea88 <RCCEx_PLL3_Config+0x144>
  33998. {
  33999. return HAL_TIMEOUT;
  34000. 800ea84: 2303 movs r3, #3
  34001. 800ea86: e006 b.n 800ea96 <RCCEx_PLL3_Config+0x152>
  34002. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  34003. 800ea88: 4b05 ldr r3, [pc, #20] @ (800eaa0 <RCCEx_PLL3_Config+0x15c>)
  34004. 800ea8a: 681b ldr r3, [r3, #0]
  34005. 800ea8c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34006. 800ea90: 2b00 cmp r3, #0
  34007. 800ea92: d0f0 beq.n 800ea76 <RCCEx_PLL3_Config+0x132>
  34008. }
  34009. }
  34010. return status;
  34011. 800ea94: 7bfb ldrb r3, [r7, #15]
  34012. }
  34013. 800ea96: 4618 mov r0, r3
  34014. 800ea98: 3710 adds r7, #16
  34015. 800ea9a: 46bd mov sp, r7
  34016. 800ea9c: bd80 pop {r7, pc}
  34017. 800ea9e: bf00 nop
  34018. 800eaa0: 58024400 .word 0x58024400
  34019. 800eaa4: ffff0007 .word 0xffff0007
  34020. 0800eaa8 <HAL_RNG_Init>:
  34021. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  34022. * the configuration information for RNG.
  34023. * @retval HAL status
  34024. */
  34025. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  34026. {
  34027. 800eaa8: b580 push {r7, lr}
  34028. 800eaaa: b084 sub sp, #16
  34029. 800eaac: af00 add r7, sp, #0
  34030. 800eaae: 6078 str r0, [r7, #4]
  34031. uint32_t tickstart;
  34032. /* Check the RNG handle allocation */
  34033. if (hrng == NULL)
  34034. 800eab0: 687b ldr r3, [r7, #4]
  34035. 800eab2: 2b00 cmp r3, #0
  34036. 800eab4: d101 bne.n 800eaba <HAL_RNG_Init+0x12>
  34037. {
  34038. return HAL_ERROR;
  34039. 800eab6: 2301 movs r3, #1
  34040. 800eab8: e054 b.n 800eb64 <HAL_RNG_Init+0xbc>
  34041. /* Init the low level hardware */
  34042. hrng->MspInitCallback(hrng);
  34043. }
  34044. #else
  34045. if (hrng->State == HAL_RNG_STATE_RESET)
  34046. 800eaba: 687b ldr r3, [r7, #4]
  34047. 800eabc: 7a5b ldrb r3, [r3, #9]
  34048. 800eabe: b2db uxtb r3, r3
  34049. 800eac0: 2b00 cmp r3, #0
  34050. 800eac2: d105 bne.n 800ead0 <HAL_RNG_Init+0x28>
  34051. {
  34052. /* Allocate lock resource and initialize it */
  34053. hrng->Lock = HAL_UNLOCKED;
  34054. 800eac4: 687b ldr r3, [r7, #4]
  34055. 800eac6: 2200 movs r2, #0
  34056. 800eac8: 721a strb r2, [r3, #8]
  34057. /* Init the low level hardware */
  34058. HAL_RNG_MspInit(hrng);
  34059. 800eaca: 6878 ldr r0, [r7, #4]
  34060. 800eacc: f7f4 ffbc bl 8003a48 <HAL_RNG_MspInit>
  34061. }
  34062. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  34063. /* Change RNG peripheral state */
  34064. hrng->State = HAL_RNG_STATE_BUSY;
  34065. 800ead0: 687b ldr r3, [r7, #4]
  34066. 800ead2: 2202 movs r2, #2
  34067. 800ead4: 725a strb r2, [r3, #9]
  34068. }
  34069. }
  34070. }
  34071. #else
  34072. /* Clock Error Detection Configuration */
  34073. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  34074. 800ead6: 687b ldr r3, [r7, #4]
  34075. 800ead8: 681b ldr r3, [r3, #0]
  34076. 800eada: 681b ldr r3, [r3, #0]
  34077. 800eadc: f023 0120 bic.w r1, r3, #32
  34078. 800eae0: 687b ldr r3, [r7, #4]
  34079. 800eae2: 685a ldr r2, [r3, #4]
  34080. 800eae4: 687b ldr r3, [r7, #4]
  34081. 800eae6: 681b ldr r3, [r3, #0]
  34082. 800eae8: 430a orrs r2, r1
  34083. 800eaea: 601a str r2, [r3, #0]
  34084. #endif /* RNG_CR_CONDRST */
  34085. /* Enable the RNG Peripheral */
  34086. __HAL_RNG_ENABLE(hrng);
  34087. 800eaec: 687b ldr r3, [r7, #4]
  34088. 800eaee: 681b ldr r3, [r3, #0]
  34089. 800eaf0: 681a ldr r2, [r3, #0]
  34090. 800eaf2: 687b ldr r3, [r7, #4]
  34091. 800eaf4: 681b ldr r3, [r3, #0]
  34092. 800eaf6: f042 0204 orr.w r2, r2, #4
  34093. 800eafa: 601a str r2, [r3, #0]
  34094. /* verify that no seed error */
  34095. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  34096. 800eafc: 687b ldr r3, [r7, #4]
  34097. 800eafe: 681b ldr r3, [r3, #0]
  34098. 800eb00: 685b ldr r3, [r3, #4]
  34099. 800eb02: f003 0340 and.w r3, r3, #64 @ 0x40
  34100. 800eb06: 2b40 cmp r3, #64 @ 0x40
  34101. 800eb08: d104 bne.n 800eb14 <HAL_RNG_Init+0x6c>
  34102. {
  34103. hrng->State = HAL_RNG_STATE_ERROR;
  34104. 800eb0a: 687b ldr r3, [r7, #4]
  34105. 800eb0c: 2204 movs r2, #4
  34106. 800eb0e: 725a strb r2, [r3, #9]
  34107. return HAL_ERROR;
  34108. 800eb10: 2301 movs r3, #1
  34109. 800eb12: e027 b.n 800eb64 <HAL_RNG_Init+0xbc>
  34110. }
  34111. /* Get tick */
  34112. tickstart = HAL_GetTick();
  34113. 800eb14: f7f6 fd28 bl 8005568 <HAL_GetTick>
  34114. 800eb18: 60f8 str r0, [r7, #12]
  34115. /* Check if data register contains valid random data */
  34116. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34117. 800eb1a: e015 b.n 800eb48 <HAL_RNG_Init+0xa0>
  34118. {
  34119. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  34120. 800eb1c: f7f6 fd24 bl 8005568 <HAL_GetTick>
  34121. 800eb20: 4602 mov r2, r0
  34122. 800eb22: 68fb ldr r3, [r7, #12]
  34123. 800eb24: 1ad3 subs r3, r2, r3
  34124. 800eb26: 2b02 cmp r3, #2
  34125. 800eb28: d90e bls.n 800eb48 <HAL_RNG_Init+0xa0>
  34126. {
  34127. /* New check to avoid false timeout detection in case of preemption */
  34128. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34129. 800eb2a: 687b ldr r3, [r7, #4]
  34130. 800eb2c: 681b ldr r3, [r3, #0]
  34131. 800eb2e: 685b ldr r3, [r3, #4]
  34132. 800eb30: f003 0304 and.w r3, r3, #4
  34133. 800eb34: 2b04 cmp r3, #4
  34134. 800eb36: d107 bne.n 800eb48 <HAL_RNG_Init+0xa0>
  34135. {
  34136. hrng->State = HAL_RNG_STATE_ERROR;
  34137. 800eb38: 687b ldr r3, [r7, #4]
  34138. 800eb3a: 2204 movs r2, #4
  34139. 800eb3c: 725a strb r2, [r3, #9]
  34140. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  34141. 800eb3e: 687b ldr r3, [r7, #4]
  34142. 800eb40: 2202 movs r2, #2
  34143. 800eb42: 60da str r2, [r3, #12]
  34144. return HAL_ERROR;
  34145. 800eb44: 2301 movs r3, #1
  34146. 800eb46: e00d b.n 800eb64 <HAL_RNG_Init+0xbc>
  34147. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34148. 800eb48: 687b ldr r3, [r7, #4]
  34149. 800eb4a: 681b ldr r3, [r3, #0]
  34150. 800eb4c: 685b ldr r3, [r3, #4]
  34151. 800eb4e: f003 0304 and.w r3, r3, #4
  34152. 800eb52: 2b04 cmp r3, #4
  34153. 800eb54: d0e2 beq.n 800eb1c <HAL_RNG_Init+0x74>
  34154. }
  34155. }
  34156. }
  34157. /* Initialize the RNG state */
  34158. hrng->State = HAL_RNG_STATE_READY;
  34159. 800eb56: 687b ldr r3, [r7, #4]
  34160. 800eb58: 2201 movs r2, #1
  34161. 800eb5a: 725a strb r2, [r3, #9]
  34162. /* Initialise the error code */
  34163. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  34164. 800eb5c: 687b ldr r3, [r7, #4]
  34165. 800eb5e: 2200 movs r2, #0
  34166. 800eb60: 60da str r2, [r3, #12]
  34167. /* Return function status */
  34168. return HAL_OK;
  34169. 800eb62: 2300 movs r3, #0
  34170. }
  34171. 800eb64: 4618 mov r0, r3
  34172. 800eb66: 3710 adds r7, #16
  34173. 800eb68: 46bd mov sp, r7
  34174. 800eb6a: bd80 pop {r7, pc}
  34175. 0800eb6c <HAL_TIM_Base_Init>:
  34176. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  34177. * @param htim TIM Base handle
  34178. * @retval HAL status
  34179. */
  34180. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  34181. {
  34182. 800eb6c: b580 push {r7, lr}
  34183. 800eb6e: b082 sub sp, #8
  34184. 800eb70: af00 add r7, sp, #0
  34185. 800eb72: 6078 str r0, [r7, #4]
  34186. /* Check the TIM handle allocation */
  34187. if (htim == NULL)
  34188. 800eb74: 687b ldr r3, [r7, #4]
  34189. 800eb76: 2b00 cmp r3, #0
  34190. 800eb78: d101 bne.n 800eb7e <HAL_TIM_Base_Init+0x12>
  34191. {
  34192. return HAL_ERROR;
  34193. 800eb7a: 2301 movs r3, #1
  34194. 800eb7c: e049 b.n 800ec12 <HAL_TIM_Base_Init+0xa6>
  34195. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  34196. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  34197. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  34198. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  34199. if (htim->State == HAL_TIM_STATE_RESET)
  34200. 800eb7e: 687b ldr r3, [r7, #4]
  34201. 800eb80: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34202. 800eb84: b2db uxtb r3, r3
  34203. 800eb86: 2b00 cmp r3, #0
  34204. 800eb88: d106 bne.n 800eb98 <HAL_TIM_Base_Init+0x2c>
  34205. {
  34206. /* Allocate lock resource and initialize it */
  34207. htim->Lock = HAL_UNLOCKED;
  34208. 800eb8a: 687b ldr r3, [r7, #4]
  34209. 800eb8c: 2200 movs r2, #0
  34210. 800eb8e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  34211. }
  34212. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34213. htim->Base_MspInitCallback(htim);
  34214. #else
  34215. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34216. HAL_TIM_Base_MspInit(htim);
  34217. 800eb92: 6878 ldr r0, [r7, #4]
  34218. 800eb94: f7f4 ffcc bl 8003b30 <HAL_TIM_Base_MspInit>
  34219. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  34220. }
  34221. /* Set the TIM state */
  34222. htim->State = HAL_TIM_STATE_BUSY;
  34223. 800eb98: 687b ldr r3, [r7, #4]
  34224. 800eb9a: 2202 movs r2, #2
  34225. 800eb9c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34226. /* Set the Time Base configuration */
  34227. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  34228. 800eba0: 687b ldr r3, [r7, #4]
  34229. 800eba2: 681a ldr r2, [r3, #0]
  34230. 800eba4: 687b ldr r3, [r7, #4]
  34231. 800eba6: 3304 adds r3, #4
  34232. 800eba8: 4619 mov r1, r3
  34233. 800ebaa: 4610 mov r0, r2
  34234. 800ebac: f001 f918 bl 800fde0 <TIM_Base_SetConfig>
  34235. /* Initialize the DMA burst operation state */
  34236. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  34237. 800ebb0: 687b ldr r3, [r7, #4]
  34238. 800ebb2: 2201 movs r2, #1
  34239. 800ebb4: f883 2048 strb.w r2, [r3, #72] @ 0x48
  34240. /* Initialize the TIM channels state */
  34241. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34242. 800ebb8: 687b ldr r3, [r7, #4]
  34243. 800ebba: 2201 movs r2, #1
  34244. 800ebbc: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34245. 800ebc0: 687b ldr r3, [r7, #4]
  34246. 800ebc2: 2201 movs r2, #1
  34247. 800ebc4: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34248. 800ebc8: 687b ldr r3, [r7, #4]
  34249. 800ebca: 2201 movs r2, #1
  34250. 800ebcc: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34251. 800ebd0: 687b ldr r3, [r7, #4]
  34252. 800ebd2: 2201 movs r2, #1
  34253. 800ebd4: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34254. 800ebd8: 687b ldr r3, [r7, #4]
  34255. 800ebda: 2201 movs r2, #1
  34256. 800ebdc: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34257. 800ebe0: 687b ldr r3, [r7, #4]
  34258. 800ebe2: 2201 movs r2, #1
  34259. 800ebe4: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34260. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34261. 800ebe8: 687b ldr r3, [r7, #4]
  34262. 800ebea: 2201 movs r2, #1
  34263. 800ebec: f883 2044 strb.w r2, [r3, #68] @ 0x44
  34264. 800ebf0: 687b ldr r3, [r7, #4]
  34265. 800ebf2: 2201 movs r2, #1
  34266. 800ebf4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  34267. 800ebf8: 687b ldr r3, [r7, #4]
  34268. 800ebfa: 2201 movs r2, #1
  34269. 800ebfc: f883 2046 strb.w r2, [r3, #70] @ 0x46
  34270. 800ec00: 687b ldr r3, [r7, #4]
  34271. 800ec02: 2201 movs r2, #1
  34272. 800ec04: f883 2047 strb.w r2, [r3, #71] @ 0x47
  34273. /* Initialize the TIM state*/
  34274. htim->State = HAL_TIM_STATE_READY;
  34275. 800ec08: 687b ldr r3, [r7, #4]
  34276. 800ec0a: 2201 movs r2, #1
  34277. 800ec0c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34278. return HAL_OK;
  34279. 800ec10: 2300 movs r3, #0
  34280. }
  34281. 800ec12: 4618 mov r0, r3
  34282. 800ec14: 3708 adds r7, #8
  34283. 800ec16: 46bd mov sp, r7
  34284. 800ec18: bd80 pop {r7, pc}
  34285. ...
  34286. 0800ec1c <HAL_TIM_Base_Start>:
  34287. * @brief Starts the TIM Base generation.
  34288. * @param htim TIM Base handle
  34289. * @retval HAL status
  34290. */
  34291. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  34292. {
  34293. 800ec1c: b480 push {r7}
  34294. 800ec1e: b085 sub sp, #20
  34295. 800ec20: af00 add r7, sp, #0
  34296. 800ec22: 6078 str r0, [r7, #4]
  34297. /* Check the parameters */
  34298. assert_param(IS_TIM_INSTANCE(htim->Instance));
  34299. /* Check the TIM state */
  34300. if (htim->State != HAL_TIM_STATE_READY)
  34301. 800ec24: 687b ldr r3, [r7, #4]
  34302. 800ec26: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34303. 800ec2a: b2db uxtb r3, r3
  34304. 800ec2c: 2b01 cmp r3, #1
  34305. 800ec2e: d001 beq.n 800ec34 <HAL_TIM_Base_Start+0x18>
  34306. {
  34307. return HAL_ERROR;
  34308. 800ec30: 2301 movs r3, #1
  34309. 800ec32: e04c b.n 800ecce <HAL_TIM_Base_Start+0xb2>
  34310. }
  34311. /* Set the TIM state */
  34312. htim->State = HAL_TIM_STATE_BUSY;
  34313. 800ec34: 687b ldr r3, [r7, #4]
  34314. 800ec36: 2202 movs r2, #2
  34315. 800ec38: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34316. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34317. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34318. 800ec3c: 687b ldr r3, [r7, #4]
  34319. 800ec3e: 681b ldr r3, [r3, #0]
  34320. 800ec40: 4a26 ldr r2, [pc, #152] @ (800ecdc <HAL_TIM_Base_Start+0xc0>)
  34321. 800ec42: 4293 cmp r3, r2
  34322. 800ec44: d022 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34323. 800ec46: 687b ldr r3, [r7, #4]
  34324. 800ec48: 681b ldr r3, [r3, #0]
  34325. 800ec4a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34326. 800ec4e: d01d beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34327. 800ec50: 687b ldr r3, [r7, #4]
  34328. 800ec52: 681b ldr r3, [r3, #0]
  34329. 800ec54: 4a22 ldr r2, [pc, #136] @ (800ece0 <HAL_TIM_Base_Start+0xc4>)
  34330. 800ec56: 4293 cmp r3, r2
  34331. 800ec58: d018 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34332. 800ec5a: 687b ldr r3, [r7, #4]
  34333. 800ec5c: 681b ldr r3, [r3, #0]
  34334. 800ec5e: 4a21 ldr r2, [pc, #132] @ (800ece4 <HAL_TIM_Base_Start+0xc8>)
  34335. 800ec60: 4293 cmp r3, r2
  34336. 800ec62: d013 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34337. 800ec64: 687b ldr r3, [r7, #4]
  34338. 800ec66: 681b ldr r3, [r3, #0]
  34339. 800ec68: 4a1f ldr r2, [pc, #124] @ (800ece8 <HAL_TIM_Base_Start+0xcc>)
  34340. 800ec6a: 4293 cmp r3, r2
  34341. 800ec6c: d00e beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34342. 800ec6e: 687b ldr r3, [r7, #4]
  34343. 800ec70: 681b ldr r3, [r3, #0]
  34344. 800ec72: 4a1e ldr r2, [pc, #120] @ (800ecec <HAL_TIM_Base_Start+0xd0>)
  34345. 800ec74: 4293 cmp r3, r2
  34346. 800ec76: d009 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34347. 800ec78: 687b ldr r3, [r7, #4]
  34348. 800ec7a: 681b ldr r3, [r3, #0]
  34349. 800ec7c: 4a1c ldr r2, [pc, #112] @ (800ecf0 <HAL_TIM_Base_Start+0xd4>)
  34350. 800ec7e: 4293 cmp r3, r2
  34351. 800ec80: d004 beq.n 800ec8c <HAL_TIM_Base_Start+0x70>
  34352. 800ec82: 687b ldr r3, [r7, #4]
  34353. 800ec84: 681b ldr r3, [r3, #0]
  34354. 800ec86: 4a1b ldr r2, [pc, #108] @ (800ecf4 <HAL_TIM_Base_Start+0xd8>)
  34355. 800ec88: 4293 cmp r3, r2
  34356. 800ec8a: d115 bne.n 800ecb8 <HAL_TIM_Base_Start+0x9c>
  34357. {
  34358. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34359. 800ec8c: 687b ldr r3, [r7, #4]
  34360. 800ec8e: 681b ldr r3, [r3, #0]
  34361. 800ec90: 689a ldr r2, [r3, #8]
  34362. 800ec92: 4b19 ldr r3, [pc, #100] @ (800ecf8 <HAL_TIM_Base_Start+0xdc>)
  34363. 800ec94: 4013 ands r3, r2
  34364. 800ec96: 60fb str r3, [r7, #12]
  34365. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34366. 800ec98: 68fb ldr r3, [r7, #12]
  34367. 800ec9a: 2b06 cmp r3, #6
  34368. 800ec9c: d015 beq.n 800ecca <HAL_TIM_Base_Start+0xae>
  34369. 800ec9e: 68fb ldr r3, [r7, #12]
  34370. 800eca0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34371. 800eca4: d011 beq.n 800ecca <HAL_TIM_Base_Start+0xae>
  34372. {
  34373. __HAL_TIM_ENABLE(htim);
  34374. 800eca6: 687b ldr r3, [r7, #4]
  34375. 800eca8: 681b ldr r3, [r3, #0]
  34376. 800ecaa: 681a ldr r2, [r3, #0]
  34377. 800ecac: 687b ldr r3, [r7, #4]
  34378. 800ecae: 681b ldr r3, [r3, #0]
  34379. 800ecb0: f042 0201 orr.w r2, r2, #1
  34380. 800ecb4: 601a str r2, [r3, #0]
  34381. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34382. 800ecb6: e008 b.n 800ecca <HAL_TIM_Base_Start+0xae>
  34383. }
  34384. }
  34385. else
  34386. {
  34387. __HAL_TIM_ENABLE(htim);
  34388. 800ecb8: 687b ldr r3, [r7, #4]
  34389. 800ecba: 681b ldr r3, [r3, #0]
  34390. 800ecbc: 681a ldr r2, [r3, #0]
  34391. 800ecbe: 687b ldr r3, [r7, #4]
  34392. 800ecc0: 681b ldr r3, [r3, #0]
  34393. 800ecc2: f042 0201 orr.w r2, r2, #1
  34394. 800ecc6: 601a str r2, [r3, #0]
  34395. 800ecc8: e000 b.n 800eccc <HAL_TIM_Base_Start+0xb0>
  34396. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34397. 800ecca: bf00 nop
  34398. }
  34399. /* Return function status */
  34400. return HAL_OK;
  34401. 800eccc: 2300 movs r3, #0
  34402. }
  34403. 800ecce: 4618 mov r0, r3
  34404. 800ecd0: 3714 adds r7, #20
  34405. 800ecd2: 46bd mov sp, r7
  34406. 800ecd4: f85d 7b04 ldr.w r7, [sp], #4
  34407. 800ecd8: 4770 bx lr
  34408. 800ecda: bf00 nop
  34409. 800ecdc: 40010000 .word 0x40010000
  34410. 800ece0: 40000400 .word 0x40000400
  34411. 800ece4: 40000800 .word 0x40000800
  34412. 800ece8: 40000c00 .word 0x40000c00
  34413. 800ecec: 40010400 .word 0x40010400
  34414. 800ecf0: 40001800 .word 0x40001800
  34415. 800ecf4: 40014000 .word 0x40014000
  34416. 800ecf8: 00010007 .word 0x00010007
  34417. 0800ecfc <HAL_TIM_Base_Start_IT>:
  34418. * @brief Starts the TIM Base generation in interrupt mode.
  34419. * @param htim TIM Base handle
  34420. * @retval HAL status
  34421. */
  34422. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  34423. {
  34424. 800ecfc: b480 push {r7}
  34425. 800ecfe: b085 sub sp, #20
  34426. 800ed00: af00 add r7, sp, #0
  34427. 800ed02: 6078 str r0, [r7, #4]
  34428. /* Check the parameters */
  34429. assert_param(IS_TIM_INSTANCE(htim->Instance));
  34430. /* Check the TIM state */
  34431. if (htim->State != HAL_TIM_STATE_READY)
  34432. 800ed04: 687b ldr r3, [r7, #4]
  34433. 800ed06: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34434. 800ed0a: b2db uxtb r3, r3
  34435. 800ed0c: 2b01 cmp r3, #1
  34436. 800ed0e: d001 beq.n 800ed14 <HAL_TIM_Base_Start_IT+0x18>
  34437. {
  34438. return HAL_ERROR;
  34439. 800ed10: 2301 movs r3, #1
  34440. 800ed12: e054 b.n 800edbe <HAL_TIM_Base_Start_IT+0xc2>
  34441. }
  34442. /* Set the TIM state */
  34443. htim->State = HAL_TIM_STATE_BUSY;
  34444. 800ed14: 687b ldr r3, [r7, #4]
  34445. 800ed16: 2202 movs r2, #2
  34446. 800ed18: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34447. /* Enable the TIM Update interrupt */
  34448. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  34449. 800ed1c: 687b ldr r3, [r7, #4]
  34450. 800ed1e: 681b ldr r3, [r3, #0]
  34451. 800ed20: 68da ldr r2, [r3, #12]
  34452. 800ed22: 687b ldr r3, [r7, #4]
  34453. 800ed24: 681b ldr r3, [r3, #0]
  34454. 800ed26: f042 0201 orr.w r2, r2, #1
  34455. 800ed2a: 60da str r2, [r3, #12]
  34456. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34457. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34458. 800ed2c: 687b ldr r3, [r7, #4]
  34459. 800ed2e: 681b ldr r3, [r3, #0]
  34460. 800ed30: 4a26 ldr r2, [pc, #152] @ (800edcc <HAL_TIM_Base_Start_IT+0xd0>)
  34461. 800ed32: 4293 cmp r3, r2
  34462. 800ed34: d022 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34463. 800ed36: 687b ldr r3, [r7, #4]
  34464. 800ed38: 681b ldr r3, [r3, #0]
  34465. 800ed3a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34466. 800ed3e: d01d beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34467. 800ed40: 687b ldr r3, [r7, #4]
  34468. 800ed42: 681b ldr r3, [r3, #0]
  34469. 800ed44: 4a22 ldr r2, [pc, #136] @ (800edd0 <HAL_TIM_Base_Start_IT+0xd4>)
  34470. 800ed46: 4293 cmp r3, r2
  34471. 800ed48: d018 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34472. 800ed4a: 687b ldr r3, [r7, #4]
  34473. 800ed4c: 681b ldr r3, [r3, #0]
  34474. 800ed4e: 4a21 ldr r2, [pc, #132] @ (800edd4 <HAL_TIM_Base_Start_IT+0xd8>)
  34475. 800ed50: 4293 cmp r3, r2
  34476. 800ed52: d013 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34477. 800ed54: 687b ldr r3, [r7, #4]
  34478. 800ed56: 681b ldr r3, [r3, #0]
  34479. 800ed58: 4a1f ldr r2, [pc, #124] @ (800edd8 <HAL_TIM_Base_Start_IT+0xdc>)
  34480. 800ed5a: 4293 cmp r3, r2
  34481. 800ed5c: d00e beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34482. 800ed5e: 687b ldr r3, [r7, #4]
  34483. 800ed60: 681b ldr r3, [r3, #0]
  34484. 800ed62: 4a1e ldr r2, [pc, #120] @ (800eddc <HAL_TIM_Base_Start_IT+0xe0>)
  34485. 800ed64: 4293 cmp r3, r2
  34486. 800ed66: d009 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34487. 800ed68: 687b ldr r3, [r7, #4]
  34488. 800ed6a: 681b ldr r3, [r3, #0]
  34489. 800ed6c: 4a1c ldr r2, [pc, #112] @ (800ede0 <HAL_TIM_Base_Start_IT+0xe4>)
  34490. 800ed6e: 4293 cmp r3, r2
  34491. 800ed70: d004 beq.n 800ed7c <HAL_TIM_Base_Start_IT+0x80>
  34492. 800ed72: 687b ldr r3, [r7, #4]
  34493. 800ed74: 681b ldr r3, [r3, #0]
  34494. 800ed76: 4a1b ldr r2, [pc, #108] @ (800ede4 <HAL_TIM_Base_Start_IT+0xe8>)
  34495. 800ed78: 4293 cmp r3, r2
  34496. 800ed7a: d115 bne.n 800eda8 <HAL_TIM_Base_Start_IT+0xac>
  34497. {
  34498. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34499. 800ed7c: 687b ldr r3, [r7, #4]
  34500. 800ed7e: 681b ldr r3, [r3, #0]
  34501. 800ed80: 689a ldr r2, [r3, #8]
  34502. 800ed82: 4b19 ldr r3, [pc, #100] @ (800ede8 <HAL_TIM_Base_Start_IT+0xec>)
  34503. 800ed84: 4013 ands r3, r2
  34504. 800ed86: 60fb str r3, [r7, #12]
  34505. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34506. 800ed88: 68fb ldr r3, [r7, #12]
  34507. 800ed8a: 2b06 cmp r3, #6
  34508. 800ed8c: d015 beq.n 800edba <HAL_TIM_Base_Start_IT+0xbe>
  34509. 800ed8e: 68fb ldr r3, [r7, #12]
  34510. 800ed90: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34511. 800ed94: d011 beq.n 800edba <HAL_TIM_Base_Start_IT+0xbe>
  34512. {
  34513. __HAL_TIM_ENABLE(htim);
  34514. 800ed96: 687b ldr r3, [r7, #4]
  34515. 800ed98: 681b ldr r3, [r3, #0]
  34516. 800ed9a: 681a ldr r2, [r3, #0]
  34517. 800ed9c: 687b ldr r3, [r7, #4]
  34518. 800ed9e: 681b ldr r3, [r3, #0]
  34519. 800eda0: f042 0201 orr.w r2, r2, #1
  34520. 800eda4: 601a str r2, [r3, #0]
  34521. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34522. 800eda6: e008 b.n 800edba <HAL_TIM_Base_Start_IT+0xbe>
  34523. }
  34524. }
  34525. else
  34526. {
  34527. __HAL_TIM_ENABLE(htim);
  34528. 800eda8: 687b ldr r3, [r7, #4]
  34529. 800edaa: 681b ldr r3, [r3, #0]
  34530. 800edac: 681a ldr r2, [r3, #0]
  34531. 800edae: 687b ldr r3, [r7, #4]
  34532. 800edb0: 681b ldr r3, [r3, #0]
  34533. 800edb2: f042 0201 orr.w r2, r2, #1
  34534. 800edb6: 601a str r2, [r3, #0]
  34535. 800edb8: e000 b.n 800edbc <HAL_TIM_Base_Start_IT+0xc0>
  34536. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34537. 800edba: bf00 nop
  34538. }
  34539. /* Return function status */
  34540. return HAL_OK;
  34541. 800edbc: 2300 movs r3, #0
  34542. }
  34543. 800edbe: 4618 mov r0, r3
  34544. 800edc0: 3714 adds r7, #20
  34545. 800edc2: 46bd mov sp, r7
  34546. 800edc4: f85d 7b04 ldr.w r7, [sp], #4
  34547. 800edc8: 4770 bx lr
  34548. 800edca: bf00 nop
  34549. 800edcc: 40010000 .word 0x40010000
  34550. 800edd0: 40000400 .word 0x40000400
  34551. 800edd4: 40000800 .word 0x40000800
  34552. 800edd8: 40000c00 .word 0x40000c00
  34553. 800eddc: 40010400 .word 0x40010400
  34554. 800ede0: 40001800 .word 0x40001800
  34555. 800ede4: 40014000 .word 0x40014000
  34556. 800ede8: 00010007 .word 0x00010007
  34557. 0800edec <HAL_TIM_PWM_Init>:
  34558. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  34559. * @param htim TIM PWM handle
  34560. * @retval HAL status
  34561. */
  34562. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  34563. {
  34564. 800edec: b580 push {r7, lr}
  34565. 800edee: b082 sub sp, #8
  34566. 800edf0: af00 add r7, sp, #0
  34567. 800edf2: 6078 str r0, [r7, #4]
  34568. /* Check the TIM handle allocation */
  34569. if (htim == NULL)
  34570. 800edf4: 687b ldr r3, [r7, #4]
  34571. 800edf6: 2b00 cmp r3, #0
  34572. 800edf8: d101 bne.n 800edfe <HAL_TIM_PWM_Init+0x12>
  34573. {
  34574. return HAL_ERROR;
  34575. 800edfa: 2301 movs r3, #1
  34576. 800edfc: e049 b.n 800ee92 <HAL_TIM_PWM_Init+0xa6>
  34577. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  34578. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  34579. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  34580. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  34581. if (htim->State == HAL_TIM_STATE_RESET)
  34582. 800edfe: 687b ldr r3, [r7, #4]
  34583. 800ee00: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34584. 800ee04: b2db uxtb r3, r3
  34585. 800ee06: 2b00 cmp r3, #0
  34586. 800ee08: d106 bne.n 800ee18 <HAL_TIM_PWM_Init+0x2c>
  34587. {
  34588. /* Allocate lock resource and initialize it */
  34589. htim->Lock = HAL_UNLOCKED;
  34590. 800ee0a: 687b ldr r3, [r7, #4]
  34591. 800ee0c: 2200 movs r2, #0
  34592. 800ee0e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  34593. }
  34594. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34595. htim->PWM_MspInitCallback(htim);
  34596. #else
  34597. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  34598. HAL_TIM_PWM_MspInit(htim);
  34599. 800ee12: 6878 ldr r0, [r7, #4]
  34600. 800ee14: f7f4 fe52 bl 8003abc <HAL_TIM_PWM_MspInit>
  34601. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  34602. }
  34603. /* Set the TIM state */
  34604. htim->State = HAL_TIM_STATE_BUSY;
  34605. 800ee18: 687b ldr r3, [r7, #4]
  34606. 800ee1a: 2202 movs r2, #2
  34607. 800ee1c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34608. /* Init the base time for the PWM */
  34609. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  34610. 800ee20: 687b ldr r3, [r7, #4]
  34611. 800ee22: 681a ldr r2, [r3, #0]
  34612. 800ee24: 687b ldr r3, [r7, #4]
  34613. 800ee26: 3304 adds r3, #4
  34614. 800ee28: 4619 mov r1, r3
  34615. 800ee2a: 4610 mov r0, r2
  34616. 800ee2c: f000 ffd8 bl 800fde0 <TIM_Base_SetConfig>
  34617. /* Initialize the DMA burst operation state */
  34618. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  34619. 800ee30: 687b ldr r3, [r7, #4]
  34620. 800ee32: 2201 movs r2, #1
  34621. 800ee34: f883 2048 strb.w r2, [r3, #72] @ 0x48
  34622. /* Initialize the TIM channels state */
  34623. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34624. 800ee38: 687b ldr r3, [r7, #4]
  34625. 800ee3a: 2201 movs r2, #1
  34626. 800ee3c: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34627. 800ee40: 687b ldr r3, [r7, #4]
  34628. 800ee42: 2201 movs r2, #1
  34629. 800ee44: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34630. 800ee48: 687b ldr r3, [r7, #4]
  34631. 800ee4a: 2201 movs r2, #1
  34632. 800ee4c: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34633. 800ee50: 687b ldr r3, [r7, #4]
  34634. 800ee52: 2201 movs r2, #1
  34635. 800ee54: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34636. 800ee58: 687b ldr r3, [r7, #4]
  34637. 800ee5a: 2201 movs r2, #1
  34638. 800ee5c: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34639. 800ee60: 687b ldr r3, [r7, #4]
  34640. 800ee62: 2201 movs r2, #1
  34641. 800ee64: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34642. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34643. 800ee68: 687b ldr r3, [r7, #4]
  34644. 800ee6a: 2201 movs r2, #1
  34645. 800ee6c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  34646. 800ee70: 687b ldr r3, [r7, #4]
  34647. 800ee72: 2201 movs r2, #1
  34648. 800ee74: f883 2045 strb.w r2, [r3, #69] @ 0x45
  34649. 800ee78: 687b ldr r3, [r7, #4]
  34650. 800ee7a: 2201 movs r2, #1
  34651. 800ee7c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  34652. 800ee80: 687b ldr r3, [r7, #4]
  34653. 800ee82: 2201 movs r2, #1
  34654. 800ee84: f883 2047 strb.w r2, [r3, #71] @ 0x47
  34655. /* Initialize the TIM state*/
  34656. htim->State = HAL_TIM_STATE_READY;
  34657. 800ee88: 687b ldr r3, [r7, #4]
  34658. 800ee8a: 2201 movs r2, #1
  34659. 800ee8c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34660. return HAL_OK;
  34661. 800ee90: 2300 movs r3, #0
  34662. }
  34663. 800ee92: 4618 mov r0, r3
  34664. 800ee94: 3708 adds r7, #8
  34665. 800ee96: 46bd mov sp, r7
  34666. 800ee98: bd80 pop {r7, pc}
  34667. ...
  34668. 0800ee9c <HAL_TIM_PWM_Start>:
  34669. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  34670. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  34671. * @retval HAL status
  34672. */
  34673. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  34674. {
  34675. 800ee9c: b580 push {r7, lr}
  34676. 800ee9e: b084 sub sp, #16
  34677. 800eea0: af00 add r7, sp, #0
  34678. 800eea2: 6078 str r0, [r7, #4]
  34679. 800eea4: 6039 str r1, [r7, #0]
  34680. /* Check the parameters */
  34681. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  34682. /* Check the TIM channel state */
  34683. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  34684. 800eea6: 683b ldr r3, [r7, #0]
  34685. 800eea8: 2b00 cmp r3, #0
  34686. 800eeaa: d109 bne.n 800eec0 <HAL_TIM_PWM_Start+0x24>
  34687. 800eeac: 687b ldr r3, [r7, #4]
  34688. 800eeae: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  34689. 800eeb2: b2db uxtb r3, r3
  34690. 800eeb4: 2b01 cmp r3, #1
  34691. 800eeb6: bf14 ite ne
  34692. 800eeb8: 2301 movne r3, #1
  34693. 800eeba: 2300 moveq r3, #0
  34694. 800eebc: b2db uxtb r3, r3
  34695. 800eebe: e03c b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34696. 800eec0: 683b ldr r3, [r7, #0]
  34697. 800eec2: 2b04 cmp r3, #4
  34698. 800eec4: d109 bne.n 800eeda <HAL_TIM_PWM_Start+0x3e>
  34699. 800eec6: 687b ldr r3, [r7, #4]
  34700. 800eec8: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  34701. 800eecc: b2db uxtb r3, r3
  34702. 800eece: 2b01 cmp r3, #1
  34703. 800eed0: bf14 ite ne
  34704. 800eed2: 2301 movne r3, #1
  34705. 800eed4: 2300 moveq r3, #0
  34706. 800eed6: b2db uxtb r3, r3
  34707. 800eed8: e02f b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34708. 800eeda: 683b ldr r3, [r7, #0]
  34709. 800eedc: 2b08 cmp r3, #8
  34710. 800eede: d109 bne.n 800eef4 <HAL_TIM_PWM_Start+0x58>
  34711. 800eee0: 687b ldr r3, [r7, #4]
  34712. 800eee2: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  34713. 800eee6: b2db uxtb r3, r3
  34714. 800eee8: 2b01 cmp r3, #1
  34715. 800eeea: bf14 ite ne
  34716. 800eeec: 2301 movne r3, #1
  34717. 800eeee: 2300 moveq r3, #0
  34718. 800eef0: b2db uxtb r3, r3
  34719. 800eef2: e022 b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34720. 800eef4: 683b ldr r3, [r7, #0]
  34721. 800eef6: 2b0c cmp r3, #12
  34722. 800eef8: d109 bne.n 800ef0e <HAL_TIM_PWM_Start+0x72>
  34723. 800eefa: 687b ldr r3, [r7, #4]
  34724. 800eefc: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  34725. 800ef00: b2db uxtb r3, r3
  34726. 800ef02: 2b01 cmp r3, #1
  34727. 800ef04: bf14 ite ne
  34728. 800ef06: 2301 movne r3, #1
  34729. 800ef08: 2300 moveq r3, #0
  34730. 800ef0a: b2db uxtb r3, r3
  34731. 800ef0c: e015 b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34732. 800ef0e: 683b ldr r3, [r7, #0]
  34733. 800ef10: 2b10 cmp r3, #16
  34734. 800ef12: d109 bne.n 800ef28 <HAL_TIM_PWM_Start+0x8c>
  34735. 800ef14: 687b ldr r3, [r7, #4]
  34736. 800ef16: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  34737. 800ef1a: b2db uxtb r3, r3
  34738. 800ef1c: 2b01 cmp r3, #1
  34739. 800ef1e: bf14 ite ne
  34740. 800ef20: 2301 movne r3, #1
  34741. 800ef22: 2300 moveq r3, #0
  34742. 800ef24: b2db uxtb r3, r3
  34743. 800ef26: e008 b.n 800ef3a <HAL_TIM_PWM_Start+0x9e>
  34744. 800ef28: 687b ldr r3, [r7, #4]
  34745. 800ef2a: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  34746. 800ef2e: b2db uxtb r3, r3
  34747. 800ef30: 2b01 cmp r3, #1
  34748. 800ef32: bf14 ite ne
  34749. 800ef34: 2301 movne r3, #1
  34750. 800ef36: 2300 moveq r3, #0
  34751. 800ef38: b2db uxtb r3, r3
  34752. 800ef3a: 2b00 cmp r3, #0
  34753. 800ef3c: d001 beq.n 800ef42 <HAL_TIM_PWM_Start+0xa6>
  34754. {
  34755. return HAL_ERROR;
  34756. 800ef3e: 2301 movs r3, #1
  34757. 800ef40: e0a1 b.n 800f086 <HAL_TIM_PWM_Start+0x1ea>
  34758. }
  34759. /* Set the TIM channel state */
  34760. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  34761. 800ef42: 683b ldr r3, [r7, #0]
  34762. 800ef44: 2b00 cmp r3, #0
  34763. 800ef46: d104 bne.n 800ef52 <HAL_TIM_PWM_Start+0xb6>
  34764. 800ef48: 687b ldr r3, [r7, #4]
  34765. 800ef4a: 2202 movs r2, #2
  34766. 800ef4c: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34767. 800ef50: e023 b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34768. 800ef52: 683b ldr r3, [r7, #0]
  34769. 800ef54: 2b04 cmp r3, #4
  34770. 800ef56: d104 bne.n 800ef62 <HAL_TIM_PWM_Start+0xc6>
  34771. 800ef58: 687b ldr r3, [r7, #4]
  34772. 800ef5a: 2202 movs r2, #2
  34773. 800ef5c: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34774. 800ef60: e01b b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34775. 800ef62: 683b ldr r3, [r7, #0]
  34776. 800ef64: 2b08 cmp r3, #8
  34777. 800ef66: d104 bne.n 800ef72 <HAL_TIM_PWM_Start+0xd6>
  34778. 800ef68: 687b ldr r3, [r7, #4]
  34779. 800ef6a: 2202 movs r2, #2
  34780. 800ef6c: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34781. 800ef70: e013 b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34782. 800ef72: 683b ldr r3, [r7, #0]
  34783. 800ef74: 2b0c cmp r3, #12
  34784. 800ef76: d104 bne.n 800ef82 <HAL_TIM_PWM_Start+0xe6>
  34785. 800ef78: 687b ldr r3, [r7, #4]
  34786. 800ef7a: 2202 movs r2, #2
  34787. 800ef7c: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34788. 800ef80: e00b b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34789. 800ef82: 683b ldr r3, [r7, #0]
  34790. 800ef84: 2b10 cmp r3, #16
  34791. 800ef86: d104 bne.n 800ef92 <HAL_TIM_PWM_Start+0xf6>
  34792. 800ef88: 687b ldr r3, [r7, #4]
  34793. 800ef8a: 2202 movs r2, #2
  34794. 800ef8c: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34795. 800ef90: e003 b.n 800ef9a <HAL_TIM_PWM_Start+0xfe>
  34796. 800ef92: 687b ldr r3, [r7, #4]
  34797. 800ef94: 2202 movs r2, #2
  34798. 800ef96: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34799. /* Enable the Capture compare channel */
  34800. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  34801. 800ef9a: 687b ldr r3, [r7, #4]
  34802. 800ef9c: 681b ldr r3, [r3, #0]
  34803. 800ef9e: 2201 movs r2, #1
  34804. 800efa0: 6839 ldr r1, [r7, #0]
  34805. 800efa2: 4618 mov r0, r3
  34806. 800efa4: f001 fc60 bl 8010868 <TIM_CCxChannelCmd>
  34807. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  34808. 800efa8: 687b ldr r3, [r7, #4]
  34809. 800efaa: 681b ldr r3, [r3, #0]
  34810. 800efac: 4a38 ldr r2, [pc, #224] @ (800f090 <HAL_TIM_PWM_Start+0x1f4>)
  34811. 800efae: 4293 cmp r3, r2
  34812. 800efb0: d013 beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34813. 800efb2: 687b ldr r3, [r7, #4]
  34814. 800efb4: 681b ldr r3, [r3, #0]
  34815. 800efb6: 4a37 ldr r2, [pc, #220] @ (800f094 <HAL_TIM_PWM_Start+0x1f8>)
  34816. 800efb8: 4293 cmp r3, r2
  34817. 800efba: d00e beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34818. 800efbc: 687b ldr r3, [r7, #4]
  34819. 800efbe: 681b ldr r3, [r3, #0]
  34820. 800efc0: 4a35 ldr r2, [pc, #212] @ (800f098 <HAL_TIM_PWM_Start+0x1fc>)
  34821. 800efc2: 4293 cmp r3, r2
  34822. 800efc4: d009 beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34823. 800efc6: 687b ldr r3, [r7, #4]
  34824. 800efc8: 681b ldr r3, [r3, #0]
  34825. 800efca: 4a34 ldr r2, [pc, #208] @ (800f09c <HAL_TIM_PWM_Start+0x200>)
  34826. 800efcc: 4293 cmp r3, r2
  34827. 800efce: d004 beq.n 800efda <HAL_TIM_PWM_Start+0x13e>
  34828. 800efd0: 687b ldr r3, [r7, #4]
  34829. 800efd2: 681b ldr r3, [r3, #0]
  34830. 800efd4: 4a32 ldr r2, [pc, #200] @ (800f0a0 <HAL_TIM_PWM_Start+0x204>)
  34831. 800efd6: 4293 cmp r3, r2
  34832. 800efd8: d101 bne.n 800efde <HAL_TIM_PWM_Start+0x142>
  34833. 800efda: 2301 movs r3, #1
  34834. 800efdc: e000 b.n 800efe0 <HAL_TIM_PWM_Start+0x144>
  34835. 800efde: 2300 movs r3, #0
  34836. 800efe0: 2b00 cmp r3, #0
  34837. 800efe2: d007 beq.n 800eff4 <HAL_TIM_PWM_Start+0x158>
  34838. {
  34839. /* Enable the main output */
  34840. __HAL_TIM_MOE_ENABLE(htim);
  34841. 800efe4: 687b ldr r3, [r7, #4]
  34842. 800efe6: 681b ldr r3, [r3, #0]
  34843. 800efe8: 6c5a ldr r2, [r3, #68] @ 0x44
  34844. 800efea: 687b ldr r3, [r7, #4]
  34845. 800efec: 681b ldr r3, [r3, #0]
  34846. 800efee: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  34847. 800eff2: 645a str r2, [r3, #68] @ 0x44
  34848. }
  34849. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34850. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34851. 800eff4: 687b ldr r3, [r7, #4]
  34852. 800eff6: 681b ldr r3, [r3, #0]
  34853. 800eff8: 4a25 ldr r2, [pc, #148] @ (800f090 <HAL_TIM_PWM_Start+0x1f4>)
  34854. 800effa: 4293 cmp r3, r2
  34855. 800effc: d022 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34856. 800effe: 687b ldr r3, [r7, #4]
  34857. 800f000: 681b ldr r3, [r3, #0]
  34858. 800f002: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34859. 800f006: d01d beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34860. 800f008: 687b ldr r3, [r7, #4]
  34861. 800f00a: 681b ldr r3, [r3, #0]
  34862. 800f00c: 4a25 ldr r2, [pc, #148] @ (800f0a4 <HAL_TIM_PWM_Start+0x208>)
  34863. 800f00e: 4293 cmp r3, r2
  34864. 800f010: d018 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34865. 800f012: 687b ldr r3, [r7, #4]
  34866. 800f014: 681b ldr r3, [r3, #0]
  34867. 800f016: 4a24 ldr r2, [pc, #144] @ (800f0a8 <HAL_TIM_PWM_Start+0x20c>)
  34868. 800f018: 4293 cmp r3, r2
  34869. 800f01a: d013 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34870. 800f01c: 687b ldr r3, [r7, #4]
  34871. 800f01e: 681b ldr r3, [r3, #0]
  34872. 800f020: 4a22 ldr r2, [pc, #136] @ (800f0ac <HAL_TIM_PWM_Start+0x210>)
  34873. 800f022: 4293 cmp r3, r2
  34874. 800f024: d00e beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34875. 800f026: 687b ldr r3, [r7, #4]
  34876. 800f028: 681b ldr r3, [r3, #0]
  34877. 800f02a: 4a1a ldr r2, [pc, #104] @ (800f094 <HAL_TIM_PWM_Start+0x1f8>)
  34878. 800f02c: 4293 cmp r3, r2
  34879. 800f02e: d009 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34880. 800f030: 687b ldr r3, [r7, #4]
  34881. 800f032: 681b ldr r3, [r3, #0]
  34882. 800f034: 4a1e ldr r2, [pc, #120] @ (800f0b0 <HAL_TIM_PWM_Start+0x214>)
  34883. 800f036: 4293 cmp r3, r2
  34884. 800f038: d004 beq.n 800f044 <HAL_TIM_PWM_Start+0x1a8>
  34885. 800f03a: 687b ldr r3, [r7, #4]
  34886. 800f03c: 681b ldr r3, [r3, #0]
  34887. 800f03e: 4a16 ldr r2, [pc, #88] @ (800f098 <HAL_TIM_PWM_Start+0x1fc>)
  34888. 800f040: 4293 cmp r3, r2
  34889. 800f042: d115 bne.n 800f070 <HAL_TIM_PWM_Start+0x1d4>
  34890. {
  34891. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  34892. 800f044: 687b ldr r3, [r7, #4]
  34893. 800f046: 681b ldr r3, [r3, #0]
  34894. 800f048: 689a ldr r2, [r3, #8]
  34895. 800f04a: 4b1a ldr r3, [pc, #104] @ (800f0b4 <HAL_TIM_PWM_Start+0x218>)
  34896. 800f04c: 4013 ands r3, r2
  34897. 800f04e: 60fb str r3, [r7, #12]
  34898. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34899. 800f050: 68fb ldr r3, [r7, #12]
  34900. 800f052: 2b06 cmp r3, #6
  34901. 800f054: d015 beq.n 800f082 <HAL_TIM_PWM_Start+0x1e6>
  34902. 800f056: 68fb ldr r3, [r7, #12]
  34903. 800f058: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  34904. 800f05c: d011 beq.n 800f082 <HAL_TIM_PWM_Start+0x1e6>
  34905. {
  34906. __HAL_TIM_ENABLE(htim);
  34907. 800f05e: 687b ldr r3, [r7, #4]
  34908. 800f060: 681b ldr r3, [r3, #0]
  34909. 800f062: 681a ldr r2, [r3, #0]
  34910. 800f064: 687b ldr r3, [r7, #4]
  34911. 800f066: 681b ldr r3, [r3, #0]
  34912. 800f068: f042 0201 orr.w r2, r2, #1
  34913. 800f06c: 601a str r2, [r3, #0]
  34914. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34915. 800f06e: e008 b.n 800f082 <HAL_TIM_PWM_Start+0x1e6>
  34916. }
  34917. }
  34918. else
  34919. {
  34920. __HAL_TIM_ENABLE(htim);
  34921. 800f070: 687b ldr r3, [r7, #4]
  34922. 800f072: 681b ldr r3, [r3, #0]
  34923. 800f074: 681a ldr r2, [r3, #0]
  34924. 800f076: 687b ldr r3, [r7, #4]
  34925. 800f078: 681b ldr r3, [r3, #0]
  34926. 800f07a: f042 0201 orr.w r2, r2, #1
  34927. 800f07e: 601a str r2, [r3, #0]
  34928. 800f080: e000 b.n 800f084 <HAL_TIM_PWM_Start+0x1e8>
  34929. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  34930. 800f082: bf00 nop
  34931. }
  34932. /* Return function status */
  34933. return HAL_OK;
  34934. 800f084: 2300 movs r3, #0
  34935. }
  34936. 800f086: 4618 mov r0, r3
  34937. 800f088: 3710 adds r7, #16
  34938. 800f08a: 46bd mov sp, r7
  34939. 800f08c: bd80 pop {r7, pc}
  34940. 800f08e: bf00 nop
  34941. 800f090: 40010000 .word 0x40010000
  34942. 800f094: 40010400 .word 0x40010400
  34943. 800f098: 40014000 .word 0x40014000
  34944. 800f09c: 40014400 .word 0x40014400
  34945. 800f0a0: 40014800 .word 0x40014800
  34946. 800f0a4: 40000400 .word 0x40000400
  34947. 800f0a8: 40000800 .word 0x40000800
  34948. 800f0ac: 40000c00 .word 0x40000c00
  34949. 800f0b0: 40001800 .word 0x40001800
  34950. 800f0b4: 00010007 .word 0x00010007
  34951. 0800f0b8 <HAL_TIM_PWM_Stop>:
  34952. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  34953. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  34954. * @retval HAL status
  34955. */
  34956. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  34957. {
  34958. 800f0b8: b580 push {r7, lr}
  34959. 800f0ba: b082 sub sp, #8
  34960. 800f0bc: af00 add r7, sp, #0
  34961. 800f0be: 6078 str r0, [r7, #4]
  34962. 800f0c0: 6039 str r1, [r7, #0]
  34963. /* Check the parameters */
  34964. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  34965. /* Disable the Capture compare channel */
  34966. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  34967. 800f0c2: 687b ldr r3, [r7, #4]
  34968. 800f0c4: 681b ldr r3, [r3, #0]
  34969. 800f0c6: 2200 movs r2, #0
  34970. 800f0c8: 6839 ldr r1, [r7, #0]
  34971. 800f0ca: 4618 mov r0, r3
  34972. 800f0cc: f001 fbcc bl 8010868 <TIM_CCxChannelCmd>
  34973. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  34974. 800f0d0: 687b ldr r3, [r7, #4]
  34975. 800f0d2: 681b ldr r3, [r3, #0]
  34976. 800f0d4: 4a3e ldr r2, [pc, #248] @ (800f1d0 <HAL_TIM_PWM_Stop+0x118>)
  34977. 800f0d6: 4293 cmp r3, r2
  34978. 800f0d8: d013 beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34979. 800f0da: 687b ldr r3, [r7, #4]
  34980. 800f0dc: 681b ldr r3, [r3, #0]
  34981. 800f0de: 4a3d ldr r2, [pc, #244] @ (800f1d4 <HAL_TIM_PWM_Stop+0x11c>)
  34982. 800f0e0: 4293 cmp r3, r2
  34983. 800f0e2: d00e beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34984. 800f0e4: 687b ldr r3, [r7, #4]
  34985. 800f0e6: 681b ldr r3, [r3, #0]
  34986. 800f0e8: 4a3b ldr r2, [pc, #236] @ (800f1d8 <HAL_TIM_PWM_Stop+0x120>)
  34987. 800f0ea: 4293 cmp r3, r2
  34988. 800f0ec: d009 beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34989. 800f0ee: 687b ldr r3, [r7, #4]
  34990. 800f0f0: 681b ldr r3, [r3, #0]
  34991. 800f0f2: 4a3a ldr r2, [pc, #232] @ (800f1dc <HAL_TIM_PWM_Stop+0x124>)
  34992. 800f0f4: 4293 cmp r3, r2
  34993. 800f0f6: d004 beq.n 800f102 <HAL_TIM_PWM_Stop+0x4a>
  34994. 800f0f8: 687b ldr r3, [r7, #4]
  34995. 800f0fa: 681b ldr r3, [r3, #0]
  34996. 800f0fc: 4a38 ldr r2, [pc, #224] @ (800f1e0 <HAL_TIM_PWM_Stop+0x128>)
  34997. 800f0fe: 4293 cmp r3, r2
  34998. 800f100: d101 bne.n 800f106 <HAL_TIM_PWM_Stop+0x4e>
  34999. 800f102: 2301 movs r3, #1
  35000. 800f104: e000 b.n 800f108 <HAL_TIM_PWM_Stop+0x50>
  35001. 800f106: 2300 movs r3, #0
  35002. 800f108: 2b00 cmp r3, #0
  35003. 800f10a: d017 beq.n 800f13c <HAL_TIM_PWM_Stop+0x84>
  35004. {
  35005. /* Disable the Main Output */
  35006. __HAL_TIM_MOE_DISABLE(htim);
  35007. 800f10c: 687b ldr r3, [r7, #4]
  35008. 800f10e: 681b ldr r3, [r3, #0]
  35009. 800f110: 6a1a ldr r2, [r3, #32]
  35010. 800f112: f241 1311 movw r3, #4369 @ 0x1111
  35011. 800f116: 4013 ands r3, r2
  35012. 800f118: 2b00 cmp r3, #0
  35013. 800f11a: d10f bne.n 800f13c <HAL_TIM_PWM_Stop+0x84>
  35014. 800f11c: 687b ldr r3, [r7, #4]
  35015. 800f11e: 681b ldr r3, [r3, #0]
  35016. 800f120: 6a1a ldr r2, [r3, #32]
  35017. 800f122: f240 4344 movw r3, #1092 @ 0x444
  35018. 800f126: 4013 ands r3, r2
  35019. 800f128: 2b00 cmp r3, #0
  35020. 800f12a: d107 bne.n 800f13c <HAL_TIM_PWM_Stop+0x84>
  35021. 800f12c: 687b ldr r3, [r7, #4]
  35022. 800f12e: 681b ldr r3, [r3, #0]
  35023. 800f130: 6c5a ldr r2, [r3, #68] @ 0x44
  35024. 800f132: 687b ldr r3, [r7, #4]
  35025. 800f134: 681b ldr r3, [r3, #0]
  35026. 800f136: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  35027. 800f13a: 645a str r2, [r3, #68] @ 0x44
  35028. }
  35029. /* Disable the Peripheral */
  35030. __HAL_TIM_DISABLE(htim);
  35031. 800f13c: 687b ldr r3, [r7, #4]
  35032. 800f13e: 681b ldr r3, [r3, #0]
  35033. 800f140: 6a1a ldr r2, [r3, #32]
  35034. 800f142: f241 1311 movw r3, #4369 @ 0x1111
  35035. 800f146: 4013 ands r3, r2
  35036. 800f148: 2b00 cmp r3, #0
  35037. 800f14a: d10f bne.n 800f16c <HAL_TIM_PWM_Stop+0xb4>
  35038. 800f14c: 687b ldr r3, [r7, #4]
  35039. 800f14e: 681b ldr r3, [r3, #0]
  35040. 800f150: 6a1a ldr r2, [r3, #32]
  35041. 800f152: f240 4344 movw r3, #1092 @ 0x444
  35042. 800f156: 4013 ands r3, r2
  35043. 800f158: 2b00 cmp r3, #0
  35044. 800f15a: d107 bne.n 800f16c <HAL_TIM_PWM_Stop+0xb4>
  35045. 800f15c: 687b ldr r3, [r7, #4]
  35046. 800f15e: 681b ldr r3, [r3, #0]
  35047. 800f160: 681a ldr r2, [r3, #0]
  35048. 800f162: 687b ldr r3, [r7, #4]
  35049. 800f164: 681b ldr r3, [r3, #0]
  35050. 800f166: f022 0201 bic.w r2, r2, #1
  35051. 800f16a: 601a str r2, [r3, #0]
  35052. /* Set the TIM channel state */
  35053. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  35054. 800f16c: 683b ldr r3, [r7, #0]
  35055. 800f16e: 2b00 cmp r3, #0
  35056. 800f170: d104 bne.n 800f17c <HAL_TIM_PWM_Stop+0xc4>
  35057. 800f172: 687b ldr r3, [r7, #4]
  35058. 800f174: 2201 movs r2, #1
  35059. 800f176: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35060. 800f17a: e023 b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35061. 800f17c: 683b ldr r3, [r7, #0]
  35062. 800f17e: 2b04 cmp r3, #4
  35063. 800f180: d104 bne.n 800f18c <HAL_TIM_PWM_Stop+0xd4>
  35064. 800f182: 687b ldr r3, [r7, #4]
  35065. 800f184: 2201 movs r2, #1
  35066. 800f186: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35067. 800f18a: e01b b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35068. 800f18c: 683b ldr r3, [r7, #0]
  35069. 800f18e: 2b08 cmp r3, #8
  35070. 800f190: d104 bne.n 800f19c <HAL_TIM_PWM_Stop+0xe4>
  35071. 800f192: 687b ldr r3, [r7, #4]
  35072. 800f194: 2201 movs r2, #1
  35073. 800f196: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35074. 800f19a: e013 b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35075. 800f19c: 683b ldr r3, [r7, #0]
  35076. 800f19e: 2b0c cmp r3, #12
  35077. 800f1a0: d104 bne.n 800f1ac <HAL_TIM_PWM_Stop+0xf4>
  35078. 800f1a2: 687b ldr r3, [r7, #4]
  35079. 800f1a4: 2201 movs r2, #1
  35080. 800f1a6: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35081. 800f1aa: e00b b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35082. 800f1ac: 683b ldr r3, [r7, #0]
  35083. 800f1ae: 2b10 cmp r3, #16
  35084. 800f1b0: d104 bne.n 800f1bc <HAL_TIM_PWM_Stop+0x104>
  35085. 800f1b2: 687b ldr r3, [r7, #4]
  35086. 800f1b4: 2201 movs r2, #1
  35087. 800f1b6: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35088. 800f1ba: e003 b.n 800f1c4 <HAL_TIM_PWM_Stop+0x10c>
  35089. 800f1bc: 687b ldr r3, [r7, #4]
  35090. 800f1be: 2201 movs r2, #1
  35091. 800f1c0: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35092. /* Return function status */
  35093. return HAL_OK;
  35094. 800f1c4: 2300 movs r3, #0
  35095. }
  35096. 800f1c6: 4618 mov r0, r3
  35097. 800f1c8: 3708 adds r7, #8
  35098. 800f1ca: 46bd mov sp, r7
  35099. 800f1cc: bd80 pop {r7, pc}
  35100. 800f1ce: bf00 nop
  35101. 800f1d0: 40010000 .word 0x40010000
  35102. 800f1d4: 40010400 .word 0x40010400
  35103. 800f1d8: 40014000 .word 0x40014000
  35104. 800f1dc: 40014400 .word 0x40014400
  35105. 800f1e0: 40014800 .word 0x40014800
  35106. 0800f1e4 <HAL_TIM_IC_Init>:
  35107. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  35108. * @param htim TIM Input Capture handle
  35109. * @retval HAL status
  35110. */
  35111. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  35112. {
  35113. 800f1e4: b580 push {r7, lr}
  35114. 800f1e6: b082 sub sp, #8
  35115. 800f1e8: af00 add r7, sp, #0
  35116. 800f1ea: 6078 str r0, [r7, #4]
  35117. /* Check the TIM handle allocation */
  35118. if (htim == NULL)
  35119. 800f1ec: 687b ldr r3, [r7, #4]
  35120. 800f1ee: 2b00 cmp r3, #0
  35121. 800f1f0: d101 bne.n 800f1f6 <HAL_TIM_IC_Init+0x12>
  35122. {
  35123. return HAL_ERROR;
  35124. 800f1f2: 2301 movs r3, #1
  35125. 800f1f4: e049 b.n 800f28a <HAL_TIM_IC_Init+0xa6>
  35126. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35127. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35128. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35129. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35130. if (htim->State == HAL_TIM_STATE_RESET)
  35131. 800f1f6: 687b ldr r3, [r7, #4]
  35132. 800f1f8: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35133. 800f1fc: b2db uxtb r3, r3
  35134. 800f1fe: 2b00 cmp r3, #0
  35135. 800f200: d106 bne.n 800f210 <HAL_TIM_IC_Init+0x2c>
  35136. {
  35137. /* Allocate lock resource and initialize it */
  35138. htim->Lock = HAL_UNLOCKED;
  35139. 800f202: 687b ldr r3, [r7, #4]
  35140. 800f204: 2200 movs r2, #0
  35141. 800f206: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35142. }
  35143. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35144. htim->IC_MspInitCallback(htim);
  35145. #else
  35146. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  35147. HAL_TIM_IC_MspInit(htim);
  35148. 800f20a: 6878 ldr r0, [r7, #4]
  35149. 800f20c: f000 f841 bl 800f292 <HAL_TIM_IC_MspInit>
  35150. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35151. }
  35152. /* Set the TIM state */
  35153. htim->State = HAL_TIM_STATE_BUSY;
  35154. 800f210: 687b ldr r3, [r7, #4]
  35155. 800f212: 2202 movs r2, #2
  35156. 800f214: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35157. /* Init the base time for the input capture */
  35158. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35159. 800f218: 687b ldr r3, [r7, #4]
  35160. 800f21a: 681a ldr r2, [r3, #0]
  35161. 800f21c: 687b ldr r3, [r7, #4]
  35162. 800f21e: 3304 adds r3, #4
  35163. 800f220: 4619 mov r1, r3
  35164. 800f222: 4610 mov r0, r2
  35165. 800f224: f000 fddc bl 800fde0 <TIM_Base_SetConfig>
  35166. /* Initialize the DMA burst operation state */
  35167. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35168. 800f228: 687b ldr r3, [r7, #4]
  35169. 800f22a: 2201 movs r2, #1
  35170. 800f22c: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35171. /* Initialize the TIM channels state */
  35172. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35173. 800f230: 687b ldr r3, [r7, #4]
  35174. 800f232: 2201 movs r2, #1
  35175. 800f234: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35176. 800f238: 687b ldr r3, [r7, #4]
  35177. 800f23a: 2201 movs r2, #1
  35178. 800f23c: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35179. 800f240: 687b ldr r3, [r7, #4]
  35180. 800f242: 2201 movs r2, #1
  35181. 800f244: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35182. 800f248: 687b ldr r3, [r7, #4]
  35183. 800f24a: 2201 movs r2, #1
  35184. 800f24c: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35185. 800f250: 687b ldr r3, [r7, #4]
  35186. 800f252: 2201 movs r2, #1
  35187. 800f254: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35188. 800f258: 687b ldr r3, [r7, #4]
  35189. 800f25a: 2201 movs r2, #1
  35190. 800f25c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35191. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35192. 800f260: 687b ldr r3, [r7, #4]
  35193. 800f262: 2201 movs r2, #1
  35194. 800f264: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35195. 800f268: 687b ldr r3, [r7, #4]
  35196. 800f26a: 2201 movs r2, #1
  35197. 800f26c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35198. 800f270: 687b ldr r3, [r7, #4]
  35199. 800f272: 2201 movs r2, #1
  35200. 800f274: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35201. 800f278: 687b ldr r3, [r7, #4]
  35202. 800f27a: 2201 movs r2, #1
  35203. 800f27c: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35204. /* Initialize the TIM state*/
  35205. htim->State = HAL_TIM_STATE_READY;
  35206. 800f280: 687b ldr r3, [r7, #4]
  35207. 800f282: 2201 movs r2, #1
  35208. 800f284: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35209. return HAL_OK;
  35210. 800f288: 2300 movs r3, #0
  35211. }
  35212. 800f28a: 4618 mov r0, r3
  35213. 800f28c: 3708 adds r7, #8
  35214. 800f28e: 46bd mov sp, r7
  35215. 800f290: bd80 pop {r7, pc}
  35216. 0800f292 <HAL_TIM_IC_MspInit>:
  35217. * @brief Initializes the TIM Input Capture MSP.
  35218. * @param htim TIM Input Capture handle
  35219. * @retval None
  35220. */
  35221. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  35222. {
  35223. 800f292: b480 push {r7}
  35224. 800f294: b083 sub sp, #12
  35225. 800f296: af00 add r7, sp, #0
  35226. 800f298: 6078 str r0, [r7, #4]
  35227. UNUSED(htim);
  35228. /* NOTE : This function should not be modified, when the callback is needed,
  35229. the HAL_TIM_IC_MspInit could be implemented in the user file
  35230. */
  35231. }
  35232. 800f29a: bf00 nop
  35233. 800f29c: 370c adds r7, #12
  35234. 800f29e: 46bd mov sp, r7
  35235. 800f2a0: f85d 7b04 ldr.w r7, [sp], #4
  35236. 800f2a4: 4770 bx lr
  35237. ...
  35238. 0800f2a8 <HAL_TIM_IC_Start_IT>:
  35239. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  35240. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  35241. * @retval HAL status
  35242. */
  35243. HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
  35244. {
  35245. 800f2a8: b580 push {r7, lr}
  35246. 800f2aa: b084 sub sp, #16
  35247. 800f2ac: af00 add r7, sp, #0
  35248. 800f2ae: 6078 str r0, [r7, #4]
  35249. 800f2b0: 6039 str r1, [r7, #0]
  35250. HAL_StatusTypeDef status = HAL_OK;
  35251. 800f2b2: 2300 movs r3, #0
  35252. 800f2b4: 73fb strb r3, [r7, #15]
  35253. uint32_t tmpsmcr;
  35254. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  35255. 800f2b6: 683b ldr r3, [r7, #0]
  35256. 800f2b8: 2b00 cmp r3, #0
  35257. 800f2ba: d104 bne.n 800f2c6 <HAL_TIM_IC_Start_IT+0x1e>
  35258. 800f2bc: 687b ldr r3, [r7, #4]
  35259. 800f2be: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  35260. 800f2c2: b2db uxtb r3, r3
  35261. 800f2c4: e023 b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35262. 800f2c6: 683b ldr r3, [r7, #0]
  35263. 800f2c8: 2b04 cmp r3, #4
  35264. 800f2ca: d104 bne.n 800f2d6 <HAL_TIM_IC_Start_IT+0x2e>
  35265. 800f2cc: 687b ldr r3, [r7, #4]
  35266. 800f2ce: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  35267. 800f2d2: b2db uxtb r3, r3
  35268. 800f2d4: e01b b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35269. 800f2d6: 683b ldr r3, [r7, #0]
  35270. 800f2d8: 2b08 cmp r3, #8
  35271. 800f2da: d104 bne.n 800f2e6 <HAL_TIM_IC_Start_IT+0x3e>
  35272. 800f2dc: 687b ldr r3, [r7, #4]
  35273. 800f2de: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  35274. 800f2e2: b2db uxtb r3, r3
  35275. 800f2e4: e013 b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35276. 800f2e6: 683b ldr r3, [r7, #0]
  35277. 800f2e8: 2b0c cmp r3, #12
  35278. 800f2ea: d104 bne.n 800f2f6 <HAL_TIM_IC_Start_IT+0x4e>
  35279. 800f2ec: 687b ldr r3, [r7, #4]
  35280. 800f2ee: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  35281. 800f2f2: b2db uxtb r3, r3
  35282. 800f2f4: e00b b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35283. 800f2f6: 683b ldr r3, [r7, #0]
  35284. 800f2f8: 2b10 cmp r3, #16
  35285. 800f2fa: d104 bne.n 800f306 <HAL_TIM_IC_Start_IT+0x5e>
  35286. 800f2fc: 687b ldr r3, [r7, #4]
  35287. 800f2fe: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  35288. 800f302: b2db uxtb r3, r3
  35289. 800f304: e003 b.n 800f30e <HAL_TIM_IC_Start_IT+0x66>
  35290. 800f306: 687b ldr r3, [r7, #4]
  35291. 800f308: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  35292. 800f30c: b2db uxtb r3, r3
  35293. 800f30e: 73bb strb r3, [r7, #14]
  35294. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  35295. 800f310: 683b ldr r3, [r7, #0]
  35296. 800f312: 2b00 cmp r3, #0
  35297. 800f314: d104 bne.n 800f320 <HAL_TIM_IC_Start_IT+0x78>
  35298. 800f316: 687b ldr r3, [r7, #4]
  35299. 800f318: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  35300. 800f31c: b2db uxtb r3, r3
  35301. 800f31e: e013 b.n 800f348 <HAL_TIM_IC_Start_IT+0xa0>
  35302. 800f320: 683b ldr r3, [r7, #0]
  35303. 800f322: 2b04 cmp r3, #4
  35304. 800f324: d104 bne.n 800f330 <HAL_TIM_IC_Start_IT+0x88>
  35305. 800f326: 687b ldr r3, [r7, #4]
  35306. 800f328: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  35307. 800f32c: b2db uxtb r3, r3
  35308. 800f32e: e00b b.n 800f348 <HAL_TIM_IC_Start_IT+0xa0>
  35309. 800f330: 683b ldr r3, [r7, #0]
  35310. 800f332: 2b08 cmp r3, #8
  35311. 800f334: d104 bne.n 800f340 <HAL_TIM_IC_Start_IT+0x98>
  35312. 800f336: 687b ldr r3, [r7, #4]
  35313. 800f338: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  35314. 800f33c: b2db uxtb r3, r3
  35315. 800f33e: e003 b.n 800f348 <HAL_TIM_IC_Start_IT+0xa0>
  35316. 800f340: 687b ldr r3, [r7, #4]
  35317. 800f342: f893 3047 ldrb.w r3, [r3, #71] @ 0x47
  35318. 800f346: b2db uxtb r3, r3
  35319. 800f348: 737b strb r3, [r7, #13]
  35320. /* Check the parameters */
  35321. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  35322. /* Check the TIM channel state */
  35323. if ((channel_state != HAL_TIM_CHANNEL_STATE_READY)
  35324. 800f34a: 7bbb ldrb r3, [r7, #14]
  35325. 800f34c: 2b01 cmp r3, #1
  35326. 800f34e: d102 bne.n 800f356 <HAL_TIM_IC_Start_IT+0xae>
  35327. || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY))
  35328. 800f350: 7b7b ldrb r3, [r7, #13]
  35329. 800f352: 2b01 cmp r3, #1
  35330. 800f354: d001 beq.n 800f35a <HAL_TIM_IC_Start_IT+0xb2>
  35331. {
  35332. return HAL_ERROR;
  35333. 800f356: 2301 movs r3, #1
  35334. 800f358: e0e2 b.n 800f520 <HAL_TIM_IC_Start_IT+0x278>
  35335. }
  35336. /* Set the TIM channel state */
  35337. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35338. 800f35a: 683b ldr r3, [r7, #0]
  35339. 800f35c: 2b00 cmp r3, #0
  35340. 800f35e: d104 bne.n 800f36a <HAL_TIM_IC_Start_IT+0xc2>
  35341. 800f360: 687b ldr r3, [r7, #4]
  35342. 800f362: 2202 movs r2, #2
  35343. 800f364: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35344. 800f368: e023 b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35345. 800f36a: 683b ldr r3, [r7, #0]
  35346. 800f36c: 2b04 cmp r3, #4
  35347. 800f36e: d104 bne.n 800f37a <HAL_TIM_IC_Start_IT+0xd2>
  35348. 800f370: 687b ldr r3, [r7, #4]
  35349. 800f372: 2202 movs r2, #2
  35350. 800f374: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35351. 800f378: e01b b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35352. 800f37a: 683b ldr r3, [r7, #0]
  35353. 800f37c: 2b08 cmp r3, #8
  35354. 800f37e: d104 bne.n 800f38a <HAL_TIM_IC_Start_IT+0xe2>
  35355. 800f380: 687b ldr r3, [r7, #4]
  35356. 800f382: 2202 movs r2, #2
  35357. 800f384: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35358. 800f388: e013 b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35359. 800f38a: 683b ldr r3, [r7, #0]
  35360. 800f38c: 2b0c cmp r3, #12
  35361. 800f38e: d104 bne.n 800f39a <HAL_TIM_IC_Start_IT+0xf2>
  35362. 800f390: 687b ldr r3, [r7, #4]
  35363. 800f392: 2202 movs r2, #2
  35364. 800f394: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35365. 800f398: e00b b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35366. 800f39a: 683b ldr r3, [r7, #0]
  35367. 800f39c: 2b10 cmp r3, #16
  35368. 800f39e: d104 bne.n 800f3aa <HAL_TIM_IC_Start_IT+0x102>
  35369. 800f3a0: 687b ldr r3, [r7, #4]
  35370. 800f3a2: 2202 movs r2, #2
  35371. 800f3a4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35372. 800f3a8: e003 b.n 800f3b2 <HAL_TIM_IC_Start_IT+0x10a>
  35373. 800f3aa: 687b ldr r3, [r7, #4]
  35374. 800f3ac: 2202 movs r2, #2
  35375. 800f3ae: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35376. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35377. 800f3b2: 683b ldr r3, [r7, #0]
  35378. 800f3b4: 2b00 cmp r3, #0
  35379. 800f3b6: d104 bne.n 800f3c2 <HAL_TIM_IC_Start_IT+0x11a>
  35380. 800f3b8: 687b ldr r3, [r7, #4]
  35381. 800f3ba: 2202 movs r2, #2
  35382. 800f3bc: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35383. 800f3c0: e013 b.n 800f3ea <HAL_TIM_IC_Start_IT+0x142>
  35384. 800f3c2: 683b ldr r3, [r7, #0]
  35385. 800f3c4: 2b04 cmp r3, #4
  35386. 800f3c6: d104 bne.n 800f3d2 <HAL_TIM_IC_Start_IT+0x12a>
  35387. 800f3c8: 687b ldr r3, [r7, #4]
  35388. 800f3ca: 2202 movs r2, #2
  35389. 800f3cc: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35390. 800f3d0: e00b b.n 800f3ea <HAL_TIM_IC_Start_IT+0x142>
  35391. 800f3d2: 683b ldr r3, [r7, #0]
  35392. 800f3d4: 2b08 cmp r3, #8
  35393. 800f3d6: d104 bne.n 800f3e2 <HAL_TIM_IC_Start_IT+0x13a>
  35394. 800f3d8: 687b ldr r3, [r7, #4]
  35395. 800f3da: 2202 movs r2, #2
  35396. 800f3dc: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35397. 800f3e0: e003 b.n 800f3ea <HAL_TIM_IC_Start_IT+0x142>
  35398. 800f3e2: 687b ldr r3, [r7, #4]
  35399. 800f3e4: 2202 movs r2, #2
  35400. 800f3e6: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35401. switch (Channel)
  35402. 800f3ea: 683b ldr r3, [r7, #0]
  35403. 800f3ec: 2b0c cmp r3, #12
  35404. 800f3ee: d841 bhi.n 800f474 <HAL_TIM_IC_Start_IT+0x1cc>
  35405. 800f3f0: a201 add r2, pc, #4 @ (adr r2, 800f3f8 <HAL_TIM_IC_Start_IT+0x150>)
  35406. 800f3f2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  35407. 800f3f6: bf00 nop
  35408. 800f3f8: 0800f42d .word 0x0800f42d
  35409. 800f3fc: 0800f475 .word 0x0800f475
  35410. 800f400: 0800f475 .word 0x0800f475
  35411. 800f404: 0800f475 .word 0x0800f475
  35412. 800f408: 0800f43f .word 0x0800f43f
  35413. 800f40c: 0800f475 .word 0x0800f475
  35414. 800f410: 0800f475 .word 0x0800f475
  35415. 800f414: 0800f475 .word 0x0800f475
  35416. 800f418: 0800f451 .word 0x0800f451
  35417. 800f41c: 0800f475 .word 0x0800f475
  35418. 800f420: 0800f475 .word 0x0800f475
  35419. 800f424: 0800f475 .word 0x0800f475
  35420. 800f428: 0800f463 .word 0x0800f463
  35421. {
  35422. case TIM_CHANNEL_1:
  35423. {
  35424. /* Enable the TIM Capture/Compare 1 interrupt */
  35425. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
  35426. 800f42c: 687b ldr r3, [r7, #4]
  35427. 800f42e: 681b ldr r3, [r3, #0]
  35428. 800f430: 68da ldr r2, [r3, #12]
  35429. 800f432: 687b ldr r3, [r7, #4]
  35430. 800f434: 681b ldr r3, [r3, #0]
  35431. 800f436: f042 0202 orr.w r2, r2, #2
  35432. 800f43a: 60da str r2, [r3, #12]
  35433. break;
  35434. 800f43c: e01d b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35435. }
  35436. case TIM_CHANNEL_2:
  35437. {
  35438. /* Enable the TIM Capture/Compare 2 interrupt */
  35439. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
  35440. 800f43e: 687b ldr r3, [r7, #4]
  35441. 800f440: 681b ldr r3, [r3, #0]
  35442. 800f442: 68da ldr r2, [r3, #12]
  35443. 800f444: 687b ldr r3, [r7, #4]
  35444. 800f446: 681b ldr r3, [r3, #0]
  35445. 800f448: f042 0204 orr.w r2, r2, #4
  35446. 800f44c: 60da str r2, [r3, #12]
  35447. break;
  35448. 800f44e: e014 b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35449. }
  35450. case TIM_CHANNEL_3:
  35451. {
  35452. /* Enable the TIM Capture/Compare 3 interrupt */
  35453. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3);
  35454. 800f450: 687b ldr r3, [r7, #4]
  35455. 800f452: 681b ldr r3, [r3, #0]
  35456. 800f454: 68da ldr r2, [r3, #12]
  35457. 800f456: 687b ldr r3, [r7, #4]
  35458. 800f458: 681b ldr r3, [r3, #0]
  35459. 800f45a: f042 0208 orr.w r2, r2, #8
  35460. 800f45e: 60da str r2, [r3, #12]
  35461. break;
  35462. 800f460: e00b b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35463. }
  35464. case TIM_CHANNEL_4:
  35465. {
  35466. /* Enable the TIM Capture/Compare 4 interrupt */
  35467. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4);
  35468. 800f462: 687b ldr r3, [r7, #4]
  35469. 800f464: 681b ldr r3, [r3, #0]
  35470. 800f466: 68da ldr r2, [r3, #12]
  35471. 800f468: 687b ldr r3, [r7, #4]
  35472. 800f46a: 681b ldr r3, [r3, #0]
  35473. 800f46c: f042 0210 orr.w r2, r2, #16
  35474. 800f470: 60da str r2, [r3, #12]
  35475. break;
  35476. 800f472: e002 b.n 800f47a <HAL_TIM_IC_Start_IT+0x1d2>
  35477. }
  35478. default:
  35479. status = HAL_ERROR;
  35480. 800f474: 2301 movs r3, #1
  35481. 800f476: 73fb strb r3, [r7, #15]
  35482. break;
  35483. 800f478: bf00 nop
  35484. }
  35485. if (status == HAL_OK)
  35486. 800f47a: 7bfb ldrb r3, [r7, #15]
  35487. 800f47c: 2b00 cmp r3, #0
  35488. 800f47e: d14e bne.n 800f51e <HAL_TIM_IC_Start_IT+0x276>
  35489. {
  35490. /* Enable the Input Capture channel */
  35491. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35492. 800f480: 687b ldr r3, [r7, #4]
  35493. 800f482: 681b ldr r3, [r3, #0]
  35494. 800f484: 2201 movs r2, #1
  35495. 800f486: 6839 ldr r1, [r7, #0]
  35496. 800f488: 4618 mov r0, r3
  35497. 800f48a: f001 f9ed bl 8010868 <TIM_CCxChannelCmd>
  35498. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35499. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35500. 800f48e: 687b ldr r3, [r7, #4]
  35501. 800f490: 681b ldr r3, [r3, #0]
  35502. 800f492: 4a25 ldr r2, [pc, #148] @ (800f528 <HAL_TIM_IC_Start_IT+0x280>)
  35503. 800f494: 4293 cmp r3, r2
  35504. 800f496: d022 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35505. 800f498: 687b ldr r3, [r7, #4]
  35506. 800f49a: 681b ldr r3, [r3, #0]
  35507. 800f49c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35508. 800f4a0: d01d beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35509. 800f4a2: 687b ldr r3, [r7, #4]
  35510. 800f4a4: 681b ldr r3, [r3, #0]
  35511. 800f4a6: 4a21 ldr r2, [pc, #132] @ (800f52c <HAL_TIM_IC_Start_IT+0x284>)
  35512. 800f4a8: 4293 cmp r3, r2
  35513. 800f4aa: d018 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35514. 800f4ac: 687b ldr r3, [r7, #4]
  35515. 800f4ae: 681b ldr r3, [r3, #0]
  35516. 800f4b0: 4a1f ldr r2, [pc, #124] @ (800f530 <HAL_TIM_IC_Start_IT+0x288>)
  35517. 800f4b2: 4293 cmp r3, r2
  35518. 800f4b4: d013 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35519. 800f4b6: 687b ldr r3, [r7, #4]
  35520. 800f4b8: 681b ldr r3, [r3, #0]
  35521. 800f4ba: 4a1e ldr r2, [pc, #120] @ (800f534 <HAL_TIM_IC_Start_IT+0x28c>)
  35522. 800f4bc: 4293 cmp r3, r2
  35523. 800f4be: d00e beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35524. 800f4c0: 687b ldr r3, [r7, #4]
  35525. 800f4c2: 681b ldr r3, [r3, #0]
  35526. 800f4c4: 4a1c ldr r2, [pc, #112] @ (800f538 <HAL_TIM_IC_Start_IT+0x290>)
  35527. 800f4c6: 4293 cmp r3, r2
  35528. 800f4c8: d009 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35529. 800f4ca: 687b ldr r3, [r7, #4]
  35530. 800f4cc: 681b ldr r3, [r3, #0]
  35531. 800f4ce: 4a1b ldr r2, [pc, #108] @ (800f53c <HAL_TIM_IC_Start_IT+0x294>)
  35532. 800f4d0: 4293 cmp r3, r2
  35533. 800f4d2: d004 beq.n 800f4de <HAL_TIM_IC_Start_IT+0x236>
  35534. 800f4d4: 687b ldr r3, [r7, #4]
  35535. 800f4d6: 681b ldr r3, [r3, #0]
  35536. 800f4d8: 4a19 ldr r2, [pc, #100] @ (800f540 <HAL_TIM_IC_Start_IT+0x298>)
  35537. 800f4da: 4293 cmp r3, r2
  35538. 800f4dc: d115 bne.n 800f50a <HAL_TIM_IC_Start_IT+0x262>
  35539. {
  35540. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35541. 800f4de: 687b ldr r3, [r7, #4]
  35542. 800f4e0: 681b ldr r3, [r3, #0]
  35543. 800f4e2: 689a ldr r2, [r3, #8]
  35544. 800f4e4: 4b17 ldr r3, [pc, #92] @ (800f544 <HAL_TIM_IC_Start_IT+0x29c>)
  35545. 800f4e6: 4013 ands r3, r2
  35546. 800f4e8: 60bb str r3, [r7, #8]
  35547. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35548. 800f4ea: 68bb ldr r3, [r7, #8]
  35549. 800f4ec: 2b06 cmp r3, #6
  35550. 800f4ee: d015 beq.n 800f51c <HAL_TIM_IC_Start_IT+0x274>
  35551. 800f4f0: 68bb ldr r3, [r7, #8]
  35552. 800f4f2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35553. 800f4f6: d011 beq.n 800f51c <HAL_TIM_IC_Start_IT+0x274>
  35554. {
  35555. __HAL_TIM_ENABLE(htim);
  35556. 800f4f8: 687b ldr r3, [r7, #4]
  35557. 800f4fa: 681b ldr r3, [r3, #0]
  35558. 800f4fc: 681a ldr r2, [r3, #0]
  35559. 800f4fe: 687b ldr r3, [r7, #4]
  35560. 800f500: 681b ldr r3, [r3, #0]
  35561. 800f502: f042 0201 orr.w r2, r2, #1
  35562. 800f506: 601a str r2, [r3, #0]
  35563. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35564. 800f508: e008 b.n 800f51c <HAL_TIM_IC_Start_IT+0x274>
  35565. }
  35566. }
  35567. else
  35568. {
  35569. __HAL_TIM_ENABLE(htim);
  35570. 800f50a: 687b ldr r3, [r7, #4]
  35571. 800f50c: 681b ldr r3, [r3, #0]
  35572. 800f50e: 681a ldr r2, [r3, #0]
  35573. 800f510: 687b ldr r3, [r7, #4]
  35574. 800f512: 681b ldr r3, [r3, #0]
  35575. 800f514: f042 0201 orr.w r2, r2, #1
  35576. 800f518: 601a str r2, [r3, #0]
  35577. 800f51a: e000 b.n 800f51e <HAL_TIM_IC_Start_IT+0x276>
  35578. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35579. 800f51c: bf00 nop
  35580. }
  35581. }
  35582. /* Return function status */
  35583. return status;
  35584. 800f51e: 7bfb ldrb r3, [r7, #15]
  35585. }
  35586. 800f520: 4618 mov r0, r3
  35587. 800f522: 3710 adds r7, #16
  35588. 800f524: 46bd mov sp, r7
  35589. 800f526: bd80 pop {r7, pc}
  35590. 800f528: 40010000 .word 0x40010000
  35591. 800f52c: 40000400 .word 0x40000400
  35592. 800f530: 40000800 .word 0x40000800
  35593. 800f534: 40000c00 .word 0x40000c00
  35594. 800f538: 40010400 .word 0x40010400
  35595. 800f53c: 40001800 .word 0x40001800
  35596. 800f540: 40014000 .word 0x40014000
  35597. 800f544: 00010007 .word 0x00010007
  35598. 0800f548 <HAL_TIM_IRQHandler>:
  35599. * @brief This function handles TIM interrupts requests.
  35600. * @param htim TIM handle
  35601. * @retval None
  35602. */
  35603. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  35604. {
  35605. 800f548: b580 push {r7, lr}
  35606. 800f54a: b084 sub sp, #16
  35607. 800f54c: af00 add r7, sp, #0
  35608. 800f54e: 6078 str r0, [r7, #4]
  35609. uint32_t itsource = htim->Instance->DIER;
  35610. 800f550: 687b ldr r3, [r7, #4]
  35611. 800f552: 681b ldr r3, [r3, #0]
  35612. 800f554: 68db ldr r3, [r3, #12]
  35613. 800f556: 60fb str r3, [r7, #12]
  35614. uint32_t itflag = htim->Instance->SR;
  35615. 800f558: 687b ldr r3, [r7, #4]
  35616. 800f55a: 681b ldr r3, [r3, #0]
  35617. 800f55c: 691b ldr r3, [r3, #16]
  35618. 800f55e: 60bb str r3, [r7, #8]
  35619. /* Capture compare 1 event */
  35620. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  35621. 800f560: 68bb ldr r3, [r7, #8]
  35622. 800f562: f003 0302 and.w r3, r3, #2
  35623. 800f566: 2b00 cmp r3, #0
  35624. 800f568: d020 beq.n 800f5ac <HAL_TIM_IRQHandler+0x64>
  35625. {
  35626. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  35627. 800f56a: 68fb ldr r3, [r7, #12]
  35628. 800f56c: f003 0302 and.w r3, r3, #2
  35629. 800f570: 2b00 cmp r3, #0
  35630. 800f572: d01b beq.n 800f5ac <HAL_TIM_IRQHandler+0x64>
  35631. {
  35632. {
  35633. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  35634. 800f574: 687b ldr r3, [r7, #4]
  35635. 800f576: 681b ldr r3, [r3, #0]
  35636. 800f578: f06f 0202 mvn.w r2, #2
  35637. 800f57c: 611a str r2, [r3, #16]
  35638. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  35639. 800f57e: 687b ldr r3, [r7, #4]
  35640. 800f580: 2201 movs r2, #1
  35641. 800f582: 771a strb r2, [r3, #28]
  35642. /* Input capture event */
  35643. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  35644. 800f584: 687b ldr r3, [r7, #4]
  35645. 800f586: 681b ldr r3, [r3, #0]
  35646. 800f588: 699b ldr r3, [r3, #24]
  35647. 800f58a: f003 0303 and.w r3, r3, #3
  35648. 800f58e: 2b00 cmp r3, #0
  35649. 800f590: d003 beq.n 800f59a <HAL_TIM_IRQHandler+0x52>
  35650. {
  35651. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35652. htim->IC_CaptureCallback(htim);
  35653. #else
  35654. HAL_TIM_IC_CaptureCallback(htim);
  35655. 800f592: 6878 ldr r0, [r7, #4]
  35656. 800f594: f7f2 fa68 bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35657. 800f598: e005 b.n 800f5a6 <HAL_TIM_IRQHandler+0x5e>
  35658. {
  35659. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35660. htim->OC_DelayElapsedCallback(htim);
  35661. htim->PWM_PulseFinishedCallback(htim);
  35662. #else
  35663. HAL_TIM_OC_DelayElapsedCallback(htim);
  35664. 800f59a: 6878 ldr r0, [r7, #4]
  35665. 800f59c: f000 fbc8 bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35666. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35667. 800f5a0: 6878 ldr r0, [r7, #4]
  35668. 800f5a2: f000 fbcf bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35669. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35670. }
  35671. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35672. 800f5a6: 687b ldr r3, [r7, #4]
  35673. 800f5a8: 2200 movs r2, #0
  35674. 800f5aa: 771a strb r2, [r3, #28]
  35675. }
  35676. }
  35677. }
  35678. /* Capture compare 2 event */
  35679. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  35680. 800f5ac: 68bb ldr r3, [r7, #8]
  35681. 800f5ae: f003 0304 and.w r3, r3, #4
  35682. 800f5b2: 2b00 cmp r3, #0
  35683. 800f5b4: d020 beq.n 800f5f8 <HAL_TIM_IRQHandler+0xb0>
  35684. {
  35685. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  35686. 800f5b6: 68fb ldr r3, [r7, #12]
  35687. 800f5b8: f003 0304 and.w r3, r3, #4
  35688. 800f5bc: 2b00 cmp r3, #0
  35689. 800f5be: d01b beq.n 800f5f8 <HAL_TIM_IRQHandler+0xb0>
  35690. {
  35691. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  35692. 800f5c0: 687b ldr r3, [r7, #4]
  35693. 800f5c2: 681b ldr r3, [r3, #0]
  35694. 800f5c4: f06f 0204 mvn.w r2, #4
  35695. 800f5c8: 611a str r2, [r3, #16]
  35696. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  35697. 800f5ca: 687b ldr r3, [r7, #4]
  35698. 800f5cc: 2202 movs r2, #2
  35699. 800f5ce: 771a strb r2, [r3, #28]
  35700. /* Input capture event */
  35701. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  35702. 800f5d0: 687b ldr r3, [r7, #4]
  35703. 800f5d2: 681b ldr r3, [r3, #0]
  35704. 800f5d4: 699b ldr r3, [r3, #24]
  35705. 800f5d6: f403 7340 and.w r3, r3, #768 @ 0x300
  35706. 800f5da: 2b00 cmp r3, #0
  35707. 800f5dc: d003 beq.n 800f5e6 <HAL_TIM_IRQHandler+0x9e>
  35708. {
  35709. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35710. htim->IC_CaptureCallback(htim);
  35711. #else
  35712. HAL_TIM_IC_CaptureCallback(htim);
  35713. 800f5de: 6878 ldr r0, [r7, #4]
  35714. 800f5e0: f7f2 fa42 bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35715. 800f5e4: e005 b.n 800f5f2 <HAL_TIM_IRQHandler+0xaa>
  35716. {
  35717. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35718. htim->OC_DelayElapsedCallback(htim);
  35719. htim->PWM_PulseFinishedCallback(htim);
  35720. #else
  35721. HAL_TIM_OC_DelayElapsedCallback(htim);
  35722. 800f5e6: 6878 ldr r0, [r7, #4]
  35723. 800f5e8: f000 fba2 bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35724. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35725. 800f5ec: 6878 ldr r0, [r7, #4]
  35726. 800f5ee: f000 fba9 bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35727. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35728. }
  35729. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35730. 800f5f2: 687b ldr r3, [r7, #4]
  35731. 800f5f4: 2200 movs r2, #0
  35732. 800f5f6: 771a strb r2, [r3, #28]
  35733. }
  35734. }
  35735. /* Capture compare 3 event */
  35736. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  35737. 800f5f8: 68bb ldr r3, [r7, #8]
  35738. 800f5fa: f003 0308 and.w r3, r3, #8
  35739. 800f5fe: 2b00 cmp r3, #0
  35740. 800f600: d020 beq.n 800f644 <HAL_TIM_IRQHandler+0xfc>
  35741. {
  35742. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  35743. 800f602: 68fb ldr r3, [r7, #12]
  35744. 800f604: f003 0308 and.w r3, r3, #8
  35745. 800f608: 2b00 cmp r3, #0
  35746. 800f60a: d01b beq.n 800f644 <HAL_TIM_IRQHandler+0xfc>
  35747. {
  35748. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  35749. 800f60c: 687b ldr r3, [r7, #4]
  35750. 800f60e: 681b ldr r3, [r3, #0]
  35751. 800f610: f06f 0208 mvn.w r2, #8
  35752. 800f614: 611a str r2, [r3, #16]
  35753. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  35754. 800f616: 687b ldr r3, [r7, #4]
  35755. 800f618: 2204 movs r2, #4
  35756. 800f61a: 771a strb r2, [r3, #28]
  35757. /* Input capture event */
  35758. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  35759. 800f61c: 687b ldr r3, [r7, #4]
  35760. 800f61e: 681b ldr r3, [r3, #0]
  35761. 800f620: 69db ldr r3, [r3, #28]
  35762. 800f622: f003 0303 and.w r3, r3, #3
  35763. 800f626: 2b00 cmp r3, #0
  35764. 800f628: d003 beq.n 800f632 <HAL_TIM_IRQHandler+0xea>
  35765. {
  35766. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35767. htim->IC_CaptureCallback(htim);
  35768. #else
  35769. HAL_TIM_IC_CaptureCallback(htim);
  35770. 800f62a: 6878 ldr r0, [r7, #4]
  35771. 800f62c: f7f2 fa1c bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35772. 800f630: e005 b.n 800f63e <HAL_TIM_IRQHandler+0xf6>
  35773. {
  35774. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35775. htim->OC_DelayElapsedCallback(htim);
  35776. htim->PWM_PulseFinishedCallback(htim);
  35777. #else
  35778. HAL_TIM_OC_DelayElapsedCallback(htim);
  35779. 800f632: 6878 ldr r0, [r7, #4]
  35780. 800f634: f000 fb7c bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35781. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35782. 800f638: 6878 ldr r0, [r7, #4]
  35783. 800f63a: f000 fb83 bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35784. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35785. }
  35786. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35787. 800f63e: 687b ldr r3, [r7, #4]
  35788. 800f640: 2200 movs r2, #0
  35789. 800f642: 771a strb r2, [r3, #28]
  35790. }
  35791. }
  35792. /* Capture compare 4 event */
  35793. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  35794. 800f644: 68bb ldr r3, [r7, #8]
  35795. 800f646: f003 0310 and.w r3, r3, #16
  35796. 800f64a: 2b00 cmp r3, #0
  35797. 800f64c: d020 beq.n 800f690 <HAL_TIM_IRQHandler+0x148>
  35798. {
  35799. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  35800. 800f64e: 68fb ldr r3, [r7, #12]
  35801. 800f650: f003 0310 and.w r3, r3, #16
  35802. 800f654: 2b00 cmp r3, #0
  35803. 800f656: d01b beq.n 800f690 <HAL_TIM_IRQHandler+0x148>
  35804. {
  35805. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  35806. 800f658: 687b ldr r3, [r7, #4]
  35807. 800f65a: 681b ldr r3, [r3, #0]
  35808. 800f65c: f06f 0210 mvn.w r2, #16
  35809. 800f660: 611a str r2, [r3, #16]
  35810. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  35811. 800f662: 687b ldr r3, [r7, #4]
  35812. 800f664: 2208 movs r2, #8
  35813. 800f666: 771a strb r2, [r3, #28]
  35814. /* Input capture event */
  35815. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  35816. 800f668: 687b ldr r3, [r7, #4]
  35817. 800f66a: 681b ldr r3, [r3, #0]
  35818. 800f66c: 69db ldr r3, [r3, #28]
  35819. 800f66e: f403 7340 and.w r3, r3, #768 @ 0x300
  35820. 800f672: 2b00 cmp r3, #0
  35821. 800f674: d003 beq.n 800f67e <HAL_TIM_IRQHandler+0x136>
  35822. {
  35823. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35824. htim->IC_CaptureCallback(htim);
  35825. #else
  35826. HAL_TIM_IC_CaptureCallback(htim);
  35827. 800f676: 6878 ldr r0, [r7, #4]
  35828. 800f678: f7f2 f9f6 bl 8001a68 <HAL_TIM_IC_CaptureCallback>
  35829. 800f67c: e005 b.n 800f68a <HAL_TIM_IRQHandler+0x142>
  35830. {
  35831. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35832. htim->OC_DelayElapsedCallback(htim);
  35833. htim->PWM_PulseFinishedCallback(htim);
  35834. #else
  35835. HAL_TIM_OC_DelayElapsedCallback(htim);
  35836. 800f67e: 6878 ldr r0, [r7, #4]
  35837. 800f680: f000 fb56 bl 800fd30 <HAL_TIM_OC_DelayElapsedCallback>
  35838. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35839. 800f684: 6878 ldr r0, [r7, #4]
  35840. 800f686: f000 fb5d bl 800fd44 <HAL_TIM_PWM_PulseFinishedCallback>
  35841. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35842. }
  35843. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35844. 800f68a: 687b ldr r3, [r7, #4]
  35845. 800f68c: 2200 movs r2, #0
  35846. 800f68e: 771a strb r2, [r3, #28]
  35847. }
  35848. }
  35849. /* TIM Update event */
  35850. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  35851. 800f690: 68bb ldr r3, [r7, #8]
  35852. 800f692: f003 0301 and.w r3, r3, #1
  35853. 800f696: 2b00 cmp r3, #0
  35854. 800f698: d00c beq.n 800f6b4 <HAL_TIM_IRQHandler+0x16c>
  35855. {
  35856. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  35857. 800f69a: 68fb ldr r3, [r7, #12]
  35858. 800f69c: f003 0301 and.w r3, r3, #1
  35859. 800f6a0: 2b00 cmp r3, #0
  35860. 800f6a2: d007 beq.n 800f6b4 <HAL_TIM_IRQHandler+0x16c>
  35861. {
  35862. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  35863. 800f6a4: 687b ldr r3, [r7, #4]
  35864. 800f6a6: 681b ldr r3, [r3, #0]
  35865. 800f6a8: f06f 0201 mvn.w r2, #1
  35866. 800f6ac: 611a str r2, [r3, #16]
  35867. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35868. htim->PeriodElapsedCallback(htim);
  35869. #else
  35870. HAL_TIM_PeriodElapsedCallback(htim);
  35871. 800f6ae: 6878 ldr r0, [r7, #4]
  35872. 800f6b0: f7f2 fc36 bl 8001f20 <HAL_TIM_PeriodElapsedCallback>
  35873. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35874. }
  35875. }
  35876. /* TIM Break input event */
  35877. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  35878. 800f6b4: 68bb ldr r3, [r7, #8]
  35879. 800f6b6: f003 0380 and.w r3, r3, #128 @ 0x80
  35880. 800f6ba: 2b00 cmp r3, #0
  35881. 800f6bc: d104 bne.n 800f6c8 <HAL_TIM_IRQHandler+0x180>
  35882. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  35883. 800f6be: 68bb ldr r3, [r7, #8]
  35884. 800f6c0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  35885. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  35886. 800f6c4: 2b00 cmp r3, #0
  35887. 800f6c6: d00c beq.n 800f6e2 <HAL_TIM_IRQHandler+0x19a>
  35888. {
  35889. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  35890. 800f6c8: 68fb ldr r3, [r7, #12]
  35891. 800f6ca: f003 0380 and.w r3, r3, #128 @ 0x80
  35892. 800f6ce: 2b00 cmp r3, #0
  35893. 800f6d0: d007 beq.n 800f6e2 <HAL_TIM_IRQHandler+0x19a>
  35894. {
  35895. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  35896. 800f6d2: 687b ldr r3, [r7, #4]
  35897. 800f6d4: 681b ldr r3, [r3, #0]
  35898. 800f6d6: f46f 5202 mvn.w r2, #8320 @ 0x2080
  35899. 800f6da: 611a str r2, [r3, #16]
  35900. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35901. htim->BreakCallback(htim);
  35902. #else
  35903. HAL_TIMEx_BreakCallback(htim);
  35904. 800f6dc: 6878 ldr r0, [r7, #4]
  35905. 800f6de: f001 f9ff bl 8010ae0 <HAL_TIMEx_BreakCallback>
  35906. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35907. }
  35908. }
  35909. /* TIM Break2 input event */
  35910. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  35911. 800f6e2: 68bb ldr r3, [r7, #8]
  35912. 800f6e4: f403 7380 and.w r3, r3, #256 @ 0x100
  35913. 800f6e8: 2b00 cmp r3, #0
  35914. 800f6ea: d00c beq.n 800f706 <HAL_TIM_IRQHandler+0x1be>
  35915. {
  35916. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  35917. 800f6ec: 68fb ldr r3, [r7, #12]
  35918. 800f6ee: f003 0380 and.w r3, r3, #128 @ 0x80
  35919. 800f6f2: 2b00 cmp r3, #0
  35920. 800f6f4: d007 beq.n 800f706 <HAL_TIM_IRQHandler+0x1be>
  35921. {
  35922. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  35923. 800f6f6: 687b ldr r3, [r7, #4]
  35924. 800f6f8: 681b ldr r3, [r3, #0]
  35925. 800f6fa: f46f 7280 mvn.w r2, #256 @ 0x100
  35926. 800f6fe: 611a str r2, [r3, #16]
  35927. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35928. htim->Break2Callback(htim);
  35929. #else
  35930. HAL_TIMEx_Break2Callback(htim);
  35931. 800f700: 6878 ldr r0, [r7, #4]
  35932. 800f702: f001 f9f7 bl 8010af4 <HAL_TIMEx_Break2Callback>
  35933. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35934. }
  35935. }
  35936. /* TIM Trigger detection event */
  35937. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  35938. 800f706: 68bb ldr r3, [r7, #8]
  35939. 800f708: f003 0340 and.w r3, r3, #64 @ 0x40
  35940. 800f70c: 2b00 cmp r3, #0
  35941. 800f70e: d00c beq.n 800f72a <HAL_TIM_IRQHandler+0x1e2>
  35942. {
  35943. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  35944. 800f710: 68fb ldr r3, [r7, #12]
  35945. 800f712: f003 0340 and.w r3, r3, #64 @ 0x40
  35946. 800f716: 2b00 cmp r3, #0
  35947. 800f718: d007 beq.n 800f72a <HAL_TIM_IRQHandler+0x1e2>
  35948. {
  35949. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  35950. 800f71a: 687b ldr r3, [r7, #4]
  35951. 800f71c: 681b ldr r3, [r3, #0]
  35952. 800f71e: f06f 0240 mvn.w r2, #64 @ 0x40
  35953. 800f722: 611a str r2, [r3, #16]
  35954. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35955. htim->TriggerCallback(htim);
  35956. #else
  35957. HAL_TIM_TriggerCallback(htim);
  35958. 800f724: 6878 ldr r0, [r7, #4]
  35959. 800f726: f000 fb17 bl 800fd58 <HAL_TIM_TriggerCallback>
  35960. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35961. }
  35962. }
  35963. /* TIM commutation event */
  35964. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  35965. 800f72a: 68bb ldr r3, [r7, #8]
  35966. 800f72c: f003 0320 and.w r3, r3, #32
  35967. 800f730: 2b00 cmp r3, #0
  35968. 800f732: d00c beq.n 800f74e <HAL_TIM_IRQHandler+0x206>
  35969. {
  35970. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  35971. 800f734: 68fb ldr r3, [r7, #12]
  35972. 800f736: f003 0320 and.w r3, r3, #32
  35973. 800f73a: 2b00 cmp r3, #0
  35974. 800f73c: d007 beq.n 800f74e <HAL_TIM_IRQHandler+0x206>
  35975. {
  35976. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  35977. 800f73e: 687b ldr r3, [r7, #4]
  35978. 800f740: 681b ldr r3, [r3, #0]
  35979. 800f742: f06f 0220 mvn.w r2, #32
  35980. 800f746: 611a str r2, [r3, #16]
  35981. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35982. htim->CommutationCallback(htim);
  35983. #else
  35984. HAL_TIMEx_CommutCallback(htim);
  35985. 800f748: 6878 ldr r0, [r7, #4]
  35986. 800f74a: f001 f9bf bl 8010acc <HAL_TIMEx_CommutCallback>
  35987. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35988. }
  35989. }
  35990. }
  35991. 800f74e: bf00 nop
  35992. 800f750: 3710 adds r7, #16
  35993. 800f752: 46bd mov sp, r7
  35994. 800f754: bd80 pop {r7, pc}
  35995. 0800f756 <HAL_TIM_IC_ConfigChannel>:
  35996. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  35997. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  35998. * @retval HAL status
  35999. */
  36000. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  36001. {
  36002. 800f756: b580 push {r7, lr}
  36003. 800f758: b086 sub sp, #24
  36004. 800f75a: af00 add r7, sp, #0
  36005. 800f75c: 60f8 str r0, [r7, #12]
  36006. 800f75e: 60b9 str r1, [r7, #8]
  36007. 800f760: 607a str r2, [r7, #4]
  36008. HAL_StatusTypeDef status = HAL_OK;
  36009. 800f762: 2300 movs r3, #0
  36010. 800f764: 75fb strb r3, [r7, #23]
  36011. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  36012. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  36013. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  36014. /* Process Locked */
  36015. __HAL_LOCK(htim);
  36016. 800f766: 68fb ldr r3, [r7, #12]
  36017. 800f768: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36018. 800f76c: 2b01 cmp r3, #1
  36019. 800f76e: d101 bne.n 800f774 <HAL_TIM_IC_ConfigChannel+0x1e>
  36020. 800f770: 2302 movs r3, #2
  36021. 800f772: e088 b.n 800f886 <HAL_TIM_IC_ConfigChannel+0x130>
  36022. 800f774: 68fb ldr r3, [r7, #12]
  36023. 800f776: 2201 movs r2, #1
  36024. 800f778: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36025. if (Channel == TIM_CHANNEL_1)
  36026. 800f77c: 687b ldr r3, [r7, #4]
  36027. 800f77e: 2b00 cmp r3, #0
  36028. 800f780: d11b bne.n 800f7ba <HAL_TIM_IC_ConfigChannel+0x64>
  36029. {
  36030. /* TI1 Configuration */
  36031. TIM_TI1_SetConfig(htim->Instance,
  36032. 800f782: 68fb ldr r3, [r7, #12]
  36033. 800f784: 6818 ldr r0, [r3, #0]
  36034. sConfig->ICPolarity,
  36035. 800f786: 68bb ldr r3, [r7, #8]
  36036. 800f788: 6819 ldr r1, [r3, #0]
  36037. sConfig->ICSelection,
  36038. 800f78a: 68bb ldr r3, [r7, #8]
  36039. 800f78c: 685a ldr r2, [r3, #4]
  36040. sConfig->ICFilter);
  36041. 800f78e: 68bb ldr r3, [r7, #8]
  36042. 800f790: 68db ldr r3, [r3, #12]
  36043. TIM_TI1_SetConfig(htim->Instance,
  36044. 800f792: f000 fea1 bl 80104d8 <TIM_TI1_SetConfig>
  36045. /* Reset the IC1PSC Bits */
  36046. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  36047. 800f796: 68fb ldr r3, [r7, #12]
  36048. 800f798: 681b ldr r3, [r3, #0]
  36049. 800f79a: 699a ldr r2, [r3, #24]
  36050. 800f79c: 68fb ldr r3, [r7, #12]
  36051. 800f79e: 681b ldr r3, [r3, #0]
  36052. 800f7a0: f022 020c bic.w r2, r2, #12
  36053. 800f7a4: 619a str r2, [r3, #24]
  36054. /* Set the IC1PSC value */
  36055. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  36056. 800f7a6: 68fb ldr r3, [r7, #12]
  36057. 800f7a8: 681b ldr r3, [r3, #0]
  36058. 800f7aa: 6999 ldr r1, [r3, #24]
  36059. 800f7ac: 68bb ldr r3, [r7, #8]
  36060. 800f7ae: 689a ldr r2, [r3, #8]
  36061. 800f7b0: 68fb ldr r3, [r7, #12]
  36062. 800f7b2: 681b ldr r3, [r3, #0]
  36063. 800f7b4: 430a orrs r2, r1
  36064. 800f7b6: 619a str r2, [r3, #24]
  36065. 800f7b8: e060 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36066. }
  36067. else if (Channel == TIM_CHANNEL_2)
  36068. 800f7ba: 687b ldr r3, [r7, #4]
  36069. 800f7bc: 2b04 cmp r3, #4
  36070. 800f7be: d11c bne.n 800f7fa <HAL_TIM_IC_ConfigChannel+0xa4>
  36071. {
  36072. /* TI2 Configuration */
  36073. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36074. TIM_TI2_SetConfig(htim->Instance,
  36075. 800f7c0: 68fb ldr r3, [r7, #12]
  36076. 800f7c2: 6818 ldr r0, [r3, #0]
  36077. sConfig->ICPolarity,
  36078. 800f7c4: 68bb ldr r3, [r7, #8]
  36079. 800f7c6: 6819 ldr r1, [r3, #0]
  36080. sConfig->ICSelection,
  36081. 800f7c8: 68bb ldr r3, [r7, #8]
  36082. 800f7ca: 685a ldr r2, [r3, #4]
  36083. sConfig->ICFilter);
  36084. 800f7cc: 68bb ldr r3, [r7, #8]
  36085. 800f7ce: 68db ldr r3, [r3, #12]
  36086. TIM_TI2_SetConfig(htim->Instance,
  36087. 800f7d0: f000 ff25 bl 801061e <TIM_TI2_SetConfig>
  36088. /* Reset the IC2PSC Bits */
  36089. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  36090. 800f7d4: 68fb ldr r3, [r7, #12]
  36091. 800f7d6: 681b ldr r3, [r3, #0]
  36092. 800f7d8: 699a ldr r2, [r3, #24]
  36093. 800f7da: 68fb ldr r3, [r7, #12]
  36094. 800f7dc: 681b ldr r3, [r3, #0]
  36095. 800f7de: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  36096. 800f7e2: 619a str r2, [r3, #24]
  36097. /* Set the IC2PSC value */
  36098. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  36099. 800f7e4: 68fb ldr r3, [r7, #12]
  36100. 800f7e6: 681b ldr r3, [r3, #0]
  36101. 800f7e8: 6999 ldr r1, [r3, #24]
  36102. 800f7ea: 68bb ldr r3, [r7, #8]
  36103. 800f7ec: 689b ldr r3, [r3, #8]
  36104. 800f7ee: 021a lsls r2, r3, #8
  36105. 800f7f0: 68fb ldr r3, [r7, #12]
  36106. 800f7f2: 681b ldr r3, [r3, #0]
  36107. 800f7f4: 430a orrs r2, r1
  36108. 800f7f6: 619a str r2, [r3, #24]
  36109. 800f7f8: e040 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36110. }
  36111. else if (Channel == TIM_CHANNEL_3)
  36112. 800f7fa: 687b ldr r3, [r7, #4]
  36113. 800f7fc: 2b08 cmp r3, #8
  36114. 800f7fe: d11b bne.n 800f838 <HAL_TIM_IC_ConfigChannel+0xe2>
  36115. {
  36116. /* TI3 Configuration */
  36117. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36118. TIM_TI3_SetConfig(htim->Instance,
  36119. 800f800: 68fb ldr r3, [r7, #12]
  36120. 800f802: 6818 ldr r0, [r3, #0]
  36121. sConfig->ICPolarity,
  36122. 800f804: 68bb ldr r3, [r7, #8]
  36123. 800f806: 6819 ldr r1, [r3, #0]
  36124. sConfig->ICSelection,
  36125. 800f808: 68bb ldr r3, [r7, #8]
  36126. 800f80a: 685a ldr r2, [r3, #4]
  36127. sConfig->ICFilter);
  36128. 800f80c: 68bb ldr r3, [r7, #8]
  36129. 800f80e: 68db ldr r3, [r3, #12]
  36130. TIM_TI3_SetConfig(htim->Instance,
  36131. 800f810: f000 ff72 bl 80106f8 <TIM_TI3_SetConfig>
  36132. /* Reset the IC3PSC Bits */
  36133. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  36134. 800f814: 68fb ldr r3, [r7, #12]
  36135. 800f816: 681b ldr r3, [r3, #0]
  36136. 800f818: 69da ldr r2, [r3, #28]
  36137. 800f81a: 68fb ldr r3, [r7, #12]
  36138. 800f81c: 681b ldr r3, [r3, #0]
  36139. 800f81e: f022 020c bic.w r2, r2, #12
  36140. 800f822: 61da str r2, [r3, #28]
  36141. /* Set the IC3PSC value */
  36142. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  36143. 800f824: 68fb ldr r3, [r7, #12]
  36144. 800f826: 681b ldr r3, [r3, #0]
  36145. 800f828: 69d9 ldr r1, [r3, #28]
  36146. 800f82a: 68bb ldr r3, [r7, #8]
  36147. 800f82c: 689a ldr r2, [r3, #8]
  36148. 800f82e: 68fb ldr r3, [r7, #12]
  36149. 800f830: 681b ldr r3, [r3, #0]
  36150. 800f832: 430a orrs r2, r1
  36151. 800f834: 61da str r2, [r3, #28]
  36152. 800f836: e021 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36153. }
  36154. else if (Channel == TIM_CHANNEL_4)
  36155. 800f838: 687b ldr r3, [r7, #4]
  36156. 800f83a: 2b0c cmp r3, #12
  36157. 800f83c: d11c bne.n 800f878 <HAL_TIM_IC_ConfigChannel+0x122>
  36158. {
  36159. /* TI4 Configuration */
  36160. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36161. TIM_TI4_SetConfig(htim->Instance,
  36162. 800f83e: 68fb ldr r3, [r7, #12]
  36163. 800f840: 6818 ldr r0, [r3, #0]
  36164. sConfig->ICPolarity,
  36165. 800f842: 68bb ldr r3, [r7, #8]
  36166. 800f844: 6819 ldr r1, [r3, #0]
  36167. sConfig->ICSelection,
  36168. 800f846: 68bb ldr r3, [r7, #8]
  36169. 800f848: 685a ldr r2, [r3, #4]
  36170. sConfig->ICFilter);
  36171. 800f84a: 68bb ldr r3, [r7, #8]
  36172. 800f84c: 68db ldr r3, [r3, #12]
  36173. TIM_TI4_SetConfig(htim->Instance,
  36174. 800f84e: f000 ff8f bl 8010770 <TIM_TI4_SetConfig>
  36175. /* Reset the IC4PSC Bits */
  36176. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  36177. 800f852: 68fb ldr r3, [r7, #12]
  36178. 800f854: 681b ldr r3, [r3, #0]
  36179. 800f856: 69da ldr r2, [r3, #28]
  36180. 800f858: 68fb ldr r3, [r7, #12]
  36181. 800f85a: 681b ldr r3, [r3, #0]
  36182. 800f85c: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  36183. 800f860: 61da str r2, [r3, #28]
  36184. /* Set the IC4PSC value */
  36185. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  36186. 800f862: 68fb ldr r3, [r7, #12]
  36187. 800f864: 681b ldr r3, [r3, #0]
  36188. 800f866: 69d9 ldr r1, [r3, #28]
  36189. 800f868: 68bb ldr r3, [r7, #8]
  36190. 800f86a: 689b ldr r3, [r3, #8]
  36191. 800f86c: 021a lsls r2, r3, #8
  36192. 800f86e: 68fb ldr r3, [r7, #12]
  36193. 800f870: 681b ldr r3, [r3, #0]
  36194. 800f872: 430a orrs r2, r1
  36195. 800f874: 61da str r2, [r3, #28]
  36196. 800f876: e001 b.n 800f87c <HAL_TIM_IC_ConfigChannel+0x126>
  36197. }
  36198. else
  36199. {
  36200. status = HAL_ERROR;
  36201. 800f878: 2301 movs r3, #1
  36202. 800f87a: 75fb strb r3, [r7, #23]
  36203. }
  36204. __HAL_UNLOCK(htim);
  36205. 800f87c: 68fb ldr r3, [r7, #12]
  36206. 800f87e: 2200 movs r2, #0
  36207. 800f880: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36208. return status;
  36209. 800f884: 7dfb ldrb r3, [r7, #23]
  36210. }
  36211. 800f886: 4618 mov r0, r3
  36212. 800f888: 3718 adds r7, #24
  36213. 800f88a: 46bd mov sp, r7
  36214. 800f88c: bd80 pop {r7, pc}
  36215. ...
  36216. 0800f890 <HAL_TIM_PWM_ConfigChannel>:
  36217. * @retval HAL status
  36218. */
  36219. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  36220. const TIM_OC_InitTypeDef *sConfig,
  36221. uint32_t Channel)
  36222. {
  36223. 800f890: b580 push {r7, lr}
  36224. 800f892: b086 sub sp, #24
  36225. 800f894: af00 add r7, sp, #0
  36226. 800f896: 60f8 str r0, [r7, #12]
  36227. 800f898: 60b9 str r1, [r7, #8]
  36228. 800f89a: 607a str r2, [r7, #4]
  36229. HAL_StatusTypeDef status = HAL_OK;
  36230. 800f89c: 2300 movs r3, #0
  36231. 800f89e: 75fb strb r3, [r7, #23]
  36232. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  36233. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  36234. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  36235. /* Process Locked */
  36236. __HAL_LOCK(htim);
  36237. 800f8a0: 68fb ldr r3, [r7, #12]
  36238. 800f8a2: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36239. 800f8a6: 2b01 cmp r3, #1
  36240. 800f8a8: d101 bne.n 800f8ae <HAL_TIM_PWM_ConfigChannel+0x1e>
  36241. 800f8aa: 2302 movs r3, #2
  36242. 800f8ac: e0ff b.n 800faae <HAL_TIM_PWM_ConfigChannel+0x21e>
  36243. 800f8ae: 68fb ldr r3, [r7, #12]
  36244. 800f8b0: 2201 movs r2, #1
  36245. 800f8b2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36246. switch (Channel)
  36247. 800f8b6: 687b ldr r3, [r7, #4]
  36248. 800f8b8: 2b14 cmp r3, #20
  36249. 800f8ba: f200 80f0 bhi.w 800fa9e <HAL_TIM_PWM_ConfigChannel+0x20e>
  36250. 800f8be: a201 add r2, pc, #4 @ (adr r2, 800f8c4 <HAL_TIM_PWM_ConfigChannel+0x34>)
  36251. 800f8c0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36252. 800f8c4: 0800f919 .word 0x0800f919
  36253. 800f8c8: 0800fa9f .word 0x0800fa9f
  36254. 800f8cc: 0800fa9f .word 0x0800fa9f
  36255. 800f8d0: 0800fa9f .word 0x0800fa9f
  36256. 800f8d4: 0800f959 .word 0x0800f959
  36257. 800f8d8: 0800fa9f .word 0x0800fa9f
  36258. 800f8dc: 0800fa9f .word 0x0800fa9f
  36259. 800f8e0: 0800fa9f .word 0x0800fa9f
  36260. 800f8e4: 0800f99b .word 0x0800f99b
  36261. 800f8e8: 0800fa9f .word 0x0800fa9f
  36262. 800f8ec: 0800fa9f .word 0x0800fa9f
  36263. 800f8f0: 0800fa9f .word 0x0800fa9f
  36264. 800f8f4: 0800f9db .word 0x0800f9db
  36265. 800f8f8: 0800fa9f .word 0x0800fa9f
  36266. 800f8fc: 0800fa9f .word 0x0800fa9f
  36267. 800f900: 0800fa9f .word 0x0800fa9f
  36268. 800f904: 0800fa1d .word 0x0800fa1d
  36269. 800f908: 0800fa9f .word 0x0800fa9f
  36270. 800f90c: 0800fa9f .word 0x0800fa9f
  36271. 800f910: 0800fa9f .word 0x0800fa9f
  36272. 800f914: 0800fa5d .word 0x0800fa5d
  36273. {
  36274. /* Check the parameters */
  36275. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  36276. /* Configure the Channel 1 in PWM mode */
  36277. TIM_OC1_SetConfig(htim->Instance, sConfig);
  36278. 800f918: 68fb ldr r3, [r7, #12]
  36279. 800f91a: 681b ldr r3, [r3, #0]
  36280. 800f91c: 68b9 ldr r1, [r7, #8]
  36281. 800f91e: 4618 mov r0, r3
  36282. 800f920: f000 fb04 bl 800ff2c <TIM_OC1_SetConfig>
  36283. /* Set the Preload enable bit for channel1 */
  36284. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  36285. 800f924: 68fb ldr r3, [r7, #12]
  36286. 800f926: 681b ldr r3, [r3, #0]
  36287. 800f928: 699a ldr r2, [r3, #24]
  36288. 800f92a: 68fb ldr r3, [r7, #12]
  36289. 800f92c: 681b ldr r3, [r3, #0]
  36290. 800f92e: f042 0208 orr.w r2, r2, #8
  36291. 800f932: 619a str r2, [r3, #24]
  36292. /* Configure the Output Fast mode */
  36293. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  36294. 800f934: 68fb ldr r3, [r7, #12]
  36295. 800f936: 681b ldr r3, [r3, #0]
  36296. 800f938: 699a ldr r2, [r3, #24]
  36297. 800f93a: 68fb ldr r3, [r7, #12]
  36298. 800f93c: 681b ldr r3, [r3, #0]
  36299. 800f93e: f022 0204 bic.w r2, r2, #4
  36300. 800f942: 619a str r2, [r3, #24]
  36301. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  36302. 800f944: 68fb ldr r3, [r7, #12]
  36303. 800f946: 681b ldr r3, [r3, #0]
  36304. 800f948: 6999 ldr r1, [r3, #24]
  36305. 800f94a: 68bb ldr r3, [r7, #8]
  36306. 800f94c: 691a ldr r2, [r3, #16]
  36307. 800f94e: 68fb ldr r3, [r7, #12]
  36308. 800f950: 681b ldr r3, [r3, #0]
  36309. 800f952: 430a orrs r2, r1
  36310. 800f954: 619a str r2, [r3, #24]
  36311. break;
  36312. 800f956: e0a5 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36313. {
  36314. /* Check the parameters */
  36315. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36316. /* Configure the Channel 2 in PWM mode */
  36317. TIM_OC2_SetConfig(htim->Instance, sConfig);
  36318. 800f958: 68fb ldr r3, [r7, #12]
  36319. 800f95a: 681b ldr r3, [r3, #0]
  36320. 800f95c: 68b9 ldr r1, [r7, #8]
  36321. 800f95e: 4618 mov r0, r3
  36322. 800f960: f000 fb74 bl 801004c <TIM_OC2_SetConfig>
  36323. /* Set the Preload enable bit for channel2 */
  36324. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  36325. 800f964: 68fb ldr r3, [r7, #12]
  36326. 800f966: 681b ldr r3, [r3, #0]
  36327. 800f968: 699a ldr r2, [r3, #24]
  36328. 800f96a: 68fb ldr r3, [r7, #12]
  36329. 800f96c: 681b ldr r3, [r3, #0]
  36330. 800f96e: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36331. 800f972: 619a str r2, [r3, #24]
  36332. /* Configure the Output Fast mode */
  36333. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  36334. 800f974: 68fb ldr r3, [r7, #12]
  36335. 800f976: 681b ldr r3, [r3, #0]
  36336. 800f978: 699a ldr r2, [r3, #24]
  36337. 800f97a: 68fb ldr r3, [r7, #12]
  36338. 800f97c: 681b ldr r3, [r3, #0]
  36339. 800f97e: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36340. 800f982: 619a str r2, [r3, #24]
  36341. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  36342. 800f984: 68fb ldr r3, [r7, #12]
  36343. 800f986: 681b ldr r3, [r3, #0]
  36344. 800f988: 6999 ldr r1, [r3, #24]
  36345. 800f98a: 68bb ldr r3, [r7, #8]
  36346. 800f98c: 691b ldr r3, [r3, #16]
  36347. 800f98e: 021a lsls r2, r3, #8
  36348. 800f990: 68fb ldr r3, [r7, #12]
  36349. 800f992: 681b ldr r3, [r3, #0]
  36350. 800f994: 430a orrs r2, r1
  36351. 800f996: 619a str r2, [r3, #24]
  36352. break;
  36353. 800f998: e084 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36354. {
  36355. /* Check the parameters */
  36356. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36357. /* Configure the Channel 3 in PWM mode */
  36358. TIM_OC3_SetConfig(htim->Instance, sConfig);
  36359. 800f99a: 68fb ldr r3, [r7, #12]
  36360. 800f99c: 681b ldr r3, [r3, #0]
  36361. 800f99e: 68b9 ldr r1, [r7, #8]
  36362. 800f9a0: 4618 mov r0, r3
  36363. 800f9a2: f000 fbdd bl 8010160 <TIM_OC3_SetConfig>
  36364. /* Set the Preload enable bit for channel3 */
  36365. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  36366. 800f9a6: 68fb ldr r3, [r7, #12]
  36367. 800f9a8: 681b ldr r3, [r3, #0]
  36368. 800f9aa: 69da ldr r2, [r3, #28]
  36369. 800f9ac: 68fb ldr r3, [r7, #12]
  36370. 800f9ae: 681b ldr r3, [r3, #0]
  36371. 800f9b0: f042 0208 orr.w r2, r2, #8
  36372. 800f9b4: 61da str r2, [r3, #28]
  36373. /* Configure the Output Fast mode */
  36374. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  36375. 800f9b6: 68fb ldr r3, [r7, #12]
  36376. 800f9b8: 681b ldr r3, [r3, #0]
  36377. 800f9ba: 69da ldr r2, [r3, #28]
  36378. 800f9bc: 68fb ldr r3, [r7, #12]
  36379. 800f9be: 681b ldr r3, [r3, #0]
  36380. 800f9c0: f022 0204 bic.w r2, r2, #4
  36381. 800f9c4: 61da str r2, [r3, #28]
  36382. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  36383. 800f9c6: 68fb ldr r3, [r7, #12]
  36384. 800f9c8: 681b ldr r3, [r3, #0]
  36385. 800f9ca: 69d9 ldr r1, [r3, #28]
  36386. 800f9cc: 68bb ldr r3, [r7, #8]
  36387. 800f9ce: 691a ldr r2, [r3, #16]
  36388. 800f9d0: 68fb ldr r3, [r7, #12]
  36389. 800f9d2: 681b ldr r3, [r3, #0]
  36390. 800f9d4: 430a orrs r2, r1
  36391. 800f9d6: 61da str r2, [r3, #28]
  36392. break;
  36393. 800f9d8: e064 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36394. {
  36395. /* Check the parameters */
  36396. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36397. /* Configure the Channel 4 in PWM mode */
  36398. TIM_OC4_SetConfig(htim->Instance, sConfig);
  36399. 800f9da: 68fb ldr r3, [r7, #12]
  36400. 800f9dc: 681b ldr r3, [r3, #0]
  36401. 800f9de: 68b9 ldr r1, [r7, #8]
  36402. 800f9e0: 4618 mov r0, r3
  36403. 800f9e2: f000 fc45 bl 8010270 <TIM_OC4_SetConfig>
  36404. /* Set the Preload enable bit for channel4 */
  36405. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  36406. 800f9e6: 68fb ldr r3, [r7, #12]
  36407. 800f9e8: 681b ldr r3, [r3, #0]
  36408. 800f9ea: 69da ldr r2, [r3, #28]
  36409. 800f9ec: 68fb ldr r3, [r7, #12]
  36410. 800f9ee: 681b ldr r3, [r3, #0]
  36411. 800f9f0: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36412. 800f9f4: 61da str r2, [r3, #28]
  36413. /* Configure the Output Fast mode */
  36414. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  36415. 800f9f6: 68fb ldr r3, [r7, #12]
  36416. 800f9f8: 681b ldr r3, [r3, #0]
  36417. 800f9fa: 69da ldr r2, [r3, #28]
  36418. 800f9fc: 68fb ldr r3, [r7, #12]
  36419. 800f9fe: 681b ldr r3, [r3, #0]
  36420. 800fa00: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36421. 800fa04: 61da str r2, [r3, #28]
  36422. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  36423. 800fa06: 68fb ldr r3, [r7, #12]
  36424. 800fa08: 681b ldr r3, [r3, #0]
  36425. 800fa0a: 69d9 ldr r1, [r3, #28]
  36426. 800fa0c: 68bb ldr r3, [r7, #8]
  36427. 800fa0e: 691b ldr r3, [r3, #16]
  36428. 800fa10: 021a lsls r2, r3, #8
  36429. 800fa12: 68fb ldr r3, [r7, #12]
  36430. 800fa14: 681b ldr r3, [r3, #0]
  36431. 800fa16: 430a orrs r2, r1
  36432. 800fa18: 61da str r2, [r3, #28]
  36433. break;
  36434. 800fa1a: e043 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36435. {
  36436. /* Check the parameters */
  36437. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  36438. /* Configure the Channel 5 in PWM mode */
  36439. TIM_OC5_SetConfig(htim->Instance, sConfig);
  36440. 800fa1c: 68fb ldr r3, [r7, #12]
  36441. 800fa1e: 681b ldr r3, [r3, #0]
  36442. 800fa20: 68b9 ldr r1, [r7, #8]
  36443. 800fa22: 4618 mov r0, r3
  36444. 800fa24: f000 fc8e bl 8010344 <TIM_OC5_SetConfig>
  36445. /* Set the Preload enable bit for channel5*/
  36446. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  36447. 800fa28: 68fb ldr r3, [r7, #12]
  36448. 800fa2a: 681b ldr r3, [r3, #0]
  36449. 800fa2c: 6d5a ldr r2, [r3, #84] @ 0x54
  36450. 800fa2e: 68fb ldr r3, [r7, #12]
  36451. 800fa30: 681b ldr r3, [r3, #0]
  36452. 800fa32: f042 0208 orr.w r2, r2, #8
  36453. 800fa36: 655a str r2, [r3, #84] @ 0x54
  36454. /* Configure the Output Fast mode */
  36455. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  36456. 800fa38: 68fb ldr r3, [r7, #12]
  36457. 800fa3a: 681b ldr r3, [r3, #0]
  36458. 800fa3c: 6d5a ldr r2, [r3, #84] @ 0x54
  36459. 800fa3e: 68fb ldr r3, [r7, #12]
  36460. 800fa40: 681b ldr r3, [r3, #0]
  36461. 800fa42: f022 0204 bic.w r2, r2, #4
  36462. 800fa46: 655a str r2, [r3, #84] @ 0x54
  36463. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  36464. 800fa48: 68fb ldr r3, [r7, #12]
  36465. 800fa4a: 681b ldr r3, [r3, #0]
  36466. 800fa4c: 6d59 ldr r1, [r3, #84] @ 0x54
  36467. 800fa4e: 68bb ldr r3, [r7, #8]
  36468. 800fa50: 691a ldr r2, [r3, #16]
  36469. 800fa52: 68fb ldr r3, [r7, #12]
  36470. 800fa54: 681b ldr r3, [r3, #0]
  36471. 800fa56: 430a orrs r2, r1
  36472. 800fa58: 655a str r2, [r3, #84] @ 0x54
  36473. break;
  36474. 800fa5a: e023 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36475. {
  36476. /* Check the parameters */
  36477. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  36478. /* Configure the Channel 6 in PWM mode */
  36479. TIM_OC6_SetConfig(htim->Instance, sConfig);
  36480. 800fa5c: 68fb ldr r3, [r7, #12]
  36481. 800fa5e: 681b ldr r3, [r3, #0]
  36482. 800fa60: 68b9 ldr r1, [r7, #8]
  36483. 800fa62: 4618 mov r0, r3
  36484. 800fa64: f000 fcd2 bl 801040c <TIM_OC6_SetConfig>
  36485. /* Set the Preload enable bit for channel6 */
  36486. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  36487. 800fa68: 68fb ldr r3, [r7, #12]
  36488. 800fa6a: 681b ldr r3, [r3, #0]
  36489. 800fa6c: 6d5a ldr r2, [r3, #84] @ 0x54
  36490. 800fa6e: 68fb ldr r3, [r7, #12]
  36491. 800fa70: 681b ldr r3, [r3, #0]
  36492. 800fa72: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36493. 800fa76: 655a str r2, [r3, #84] @ 0x54
  36494. /* Configure the Output Fast mode */
  36495. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  36496. 800fa78: 68fb ldr r3, [r7, #12]
  36497. 800fa7a: 681b ldr r3, [r3, #0]
  36498. 800fa7c: 6d5a ldr r2, [r3, #84] @ 0x54
  36499. 800fa7e: 68fb ldr r3, [r7, #12]
  36500. 800fa80: 681b ldr r3, [r3, #0]
  36501. 800fa82: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36502. 800fa86: 655a str r2, [r3, #84] @ 0x54
  36503. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  36504. 800fa88: 68fb ldr r3, [r7, #12]
  36505. 800fa8a: 681b ldr r3, [r3, #0]
  36506. 800fa8c: 6d59 ldr r1, [r3, #84] @ 0x54
  36507. 800fa8e: 68bb ldr r3, [r7, #8]
  36508. 800fa90: 691b ldr r3, [r3, #16]
  36509. 800fa92: 021a lsls r2, r3, #8
  36510. 800fa94: 68fb ldr r3, [r7, #12]
  36511. 800fa96: 681b ldr r3, [r3, #0]
  36512. 800fa98: 430a orrs r2, r1
  36513. 800fa9a: 655a str r2, [r3, #84] @ 0x54
  36514. break;
  36515. 800fa9c: e002 b.n 800faa4 <HAL_TIM_PWM_ConfigChannel+0x214>
  36516. }
  36517. default:
  36518. status = HAL_ERROR;
  36519. 800fa9e: 2301 movs r3, #1
  36520. 800faa0: 75fb strb r3, [r7, #23]
  36521. break;
  36522. 800faa2: bf00 nop
  36523. }
  36524. __HAL_UNLOCK(htim);
  36525. 800faa4: 68fb ldr r3, [r7, #12]
  36526. 800faa6: 2200 movs r2, #0
  36527. 800faa8: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36528. return status;
  36529. 800faac: 7dfb ldrb r3, [r7, #23]
  36530. }
  36531. 800faae: 4618 mov r0, r3
  36532. 800fab0: 3718 adds r7, #24
  36533. 800fab2: 46bd mov sp, r7
  36534. 800fab4: bd80 pop {r7, pc}
  36535. 800fab6: bf00 nop
  36536. 0800fab8 <HAL_TIM_ConfigClockSource>:
  36537. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  36538. * contains the clock source information for the TIM peripheral.
  36539. * @retval HAL status
  36540. */
  36541. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  36542. {
  36543. 800fab8: b580 push {r7, lr}
  36544. 800faba: b084 sub sp, #16
  36545. 800fabc: af00 add r7, sp, #0
  36546. 800fabe: 6078 str r0, [r7, #4]
  36547. 800fac0: 6039 str r1, [r7, #0]
  36548. HAL_StatusTypeDef status = HAL_OK;
  36549. 800fac2: 2300 movs r3, #0
  36550. 800fac4: 73fb strb r3, [r7, #15]
  36551. uint32_t tmpsmcr;
  36552. /* Process Locked */
  36553. __HAL_LOCK(htim);
  36554. 800fac6: 687b ldr r3, [r7, #4]
  36555. 800fac8: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36556. 800facc: 2b01 cmp r3, #1
  36557. 800face: d101 bne.n 800fad4 <HAL_TIM_ConfigClockSource+0x1c>
  36558. 800fad0: 2302 movs r3, #2
  36559. 800fad2: e0dc b.n 800fc8e <HAL_TIM_ConfigClockSource+0x1d6>
  36560. 800fad4: 687b ldr r3, [r7, #4]
  36561. 800fad6: 2201 movs r2, #1
  36562. 800fad8: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36563. htim->State = HAL_TIM_STATE_BUSY;
  36564. 800fadc: 687b ldr r3, [r7, #4]
  36565. 800fade: 2202 movs r2, #2
  36566. 800fae0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36567. /* Check the parameters */
  36568. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  36569. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  36570. tmpsmcr = htim->Instance->SMCR;
  36571. 800fae4: 687b ldr r3, [r7, #4]
  36572. 800fae6: 681b ldr r3, [r3, #0]
  36573. 800fae8: 689b ldr r3, [r3, #8]
  36574. 800faea: 60bb str r3, [r7, #8]
  36575. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  36576. 800faec: 68ba ldr r2, [r7, #8]
  36577. 800faee: 4b6a ldr r3, [pc, #424] @ (800fc98 <HAL_TIM_ConfigClockSource+0x1e0>)
  36578. 800faf0: 4013 ands r3, r2
  36579. 800faf2: 60bb str r3, [r7, #8]
  36580. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  36581. 800faf4: 68bb ldr r3, [r7, #8]
  36582. 800faf6: f423 437f bic.w r3, r3, #65280 @ 0xff00
  36583. 800fafa: 60bb str r3, [r7, #8]
  36584. htim->Instance->SMCR = tmpsmcr;
  36585. 800fafc: 687b ldr r3, [r7, #4]
  36586. 800fafe: 681b ldr r3, [r3, #0]
  36587. 800fb00: 68ba ldr r2, [r7, #8]
  36588. 800fb02: 609a str r2, [r3, #8]
  36589. switch (sClockSourceConfig->ClockSource)
  36590. 800fb04: 683b ldr r3, [r7, #0]
  36591. 800fb06: 681b ldr r3, [r3, #0]
  36592. 800fb08: 4a64 ldr r2, [pc, #400] @ (800fc9c <HAL_TIM_ConfigClockSource+0x1e4>)
  36593. 800fb0a: 4293 cmp r3, r2
  36594. 800fb0c: f000 80a9 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36595. 800fb10: 4a62 ldr r2, [pc, #392] @ (800fc9c <HAL_TIM_ConfigClockSource+0x1e4>)
  36596. 800fb12: 4293 cmp r3, r2
  36597. 800fb14: f200 80ae bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36598. 800fb18: 4a61 ldr r2, [pc, #388] @ (800fca0 <HAL_TIM_ConfigClockSource+0x1e8>)
  36599. 800fb1a: 4293 cmp r3, r2
  36600. 800fb1c: f000 80a1 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36601. 800fb20: 4a5f ldr r2, [pc, #380] @ (800fca0 <HAL_TIM_ConfigClockSource+0x1e8>)
  36602. 800fb22: 4293 cmp r3, r2
  36603. 800fb24: f200 80a6 bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36604. 800fb28: 4a5e ldr r2, [pc, #376] @ (800fca4 <HAL_TIM_ConfigClockSource+0x1ec>)
  36605. 800fb2a: 4293 cmp r3, r2
  36606. 800fb2c: f000 8099 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36607. 800fb30: 4a5c ldr r2, [pc, #368] @ (800fca4 <HAL_TIM_ConfigClockSource+0x1ec>)
  36608. 800fb32: 4293 cmp r3, r2
  36609. 800fb34: f200 809e bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36610. 800fb38: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36611. 800fb3c: f000 8091 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36612. 800fb40: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36613. 800fb44: f200 8096 bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36614. 800fb48: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36615. 800fb4c: f000 8089 beq.w 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36616. 800fb50: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36617. 800fb54: f200 808e bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36618. 800fb58: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36619. 800fb5c: d03e beq.n 800fbdc <HAL_TIM_ConfigClockSource+0x124>
  36620. 800fb5e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36621. 800fb62: f200 8087 bhi.w 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36622. 800fb66: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36623. 800fb6a: f000 8086 beq.w 800fc7a <HAL_TIM_ConfigClockSource+0x1c2>
  36624. 800fb6e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36625. 800fb72: d87f bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36626. 800fb74: 2b70 cmp r3, #112 @ 0x70
  36627. 800fb76: d01a beq.n 800fbae <HAL_TIM_ConfigClockSource+0xf6>
  36628. 800fb78: 2b70 cmp r3, #112 @ 0x70
  36629. 800fb7a: d87b bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36630. 800fb7c: 2b60 cmp r3, #96 @ 0x60
  36631. 800fb7e: d050 beq.n 800fc22 <HAL_TIM_ConfigClockSource+0x16a>
  36632. 800fb80: 2b60 cmp r3, #96 @ 0x60
  36633. 800fb82: d877 bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36634. 800fb84: 2b50 cmp r3, #80 @ 0x50
  36635. 800fb86: d03c beq.n 800fc02 <HAL_TIM_ConfigClockSource+0x14a>
  36636. 800fb88: 2b50 cmp r3, #80 @ 0x50
  36637. 800fb8a: d873 bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36638. 800fb8c: 2b40 cmp r3, #64 @ 0x40
  36639. 800fb8e: d058 beq.n 800fc42 <HAL_TIM_ConfigClockSource+0x18a>
  36640. 800fb90: 2b40 cmp r3, #64 @ 0x40
  36641. 800fb92: d86f bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36642. 800fb94: 2b30 cmp r3, #48 @ 0x30
  36643. 800fb96: d064 beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36644. 800fb98: 2b30 cmp r3, #48 @ 0x30
  36645. 800fb9a: d86b bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36646. 800fb9c: 2b20 cmp r3, #32
  36647. 800fb9e: d060 beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36648. 800fba0: 2b20 cmp r3, #32
  36649. 800fba2: d867 bhi.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36650. 800fba4: 2b00 cmp r3, #0
  36651. 800fba6: d05c beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36652. 800fba8: 2b10 cmp r3, #16
  36653. 800fbaa: d05a beq.n 800fc62 <HAL_TIM_ConfigClockSource+0x1aa>
  36654. 800fbac: e062 b.n 800fc74 <HAL_TIM_ConfigClockSource+0x1bc>
  36655. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36656. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36657. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36658. /* Configure the ETR Clock source */
  36659. TIM_ETR_SetConfig(htim->Instance,
  36660. 800fbae: 687b ldr r3, [r7, #4]
  36661. 800fbb0: 6818 ldr r0, [r3, #0]
  36662. sClockSourceConfig->ClockPrescaler,
  36663. 800fbb2: 683b ldr r3, [r7, #0]
  36664. 800fbb4: 6899 ldr r1, [r3, #8]
  36665. sClockSourceConfig->ClockPolarity,
  36666. 800fbb6: 683b ldr r3, [r7, #0]
  36667. 800fbb8: 685a ldr r2, [r3, #4]
  36668. sClockSourceConfig->ClockFilter);
  36669. 800fbba: 683b ldr r3, [r7, #0]
  36670. 800fbbc: 68db ldr r3, [r3, #12]
  36671. TIM_ETR_SetConfig(htim->Instance,
  36672. 800fbbe: f000 fe33 bl 8010828 <TIM_ETR_SetConfig>
  36673. /* Select the External clock mode1 and the ETRF trigger */
  36674. tmpsmcr = htim->Instance->SMCR;
  36675. 800fbc2: 687b ldr r3, [r7, #4]
  36676. 800fbc4: 681b ldr r3, [r3, #0]
  36677. 800fbc6: 689b ldr r3, [r3, #8]
  36678. 800fbc8: 60bb str r3, [r7, #8]
  36679. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  36680. 800fbca: 68bb ldr r3, [r7, #8]
  36681. 800fbcc: f043 0377 orr.w r3, r3, #119 @ 0x77
  36682. 800fbd0: 60bb str r3, [r7, #8]
  36683. /* Write to TIMx SMCR */
  36684. htim->Instance->SMCR = tmpsmcr;
  36685. 800fbd2: 687b ldr r3, [r7, #4]
  36686. 800fbd4: 681b ldr r3, [r3, #0]
  36687. 800fbd6: 68ba ldr r2, [r7, #8]
  36688. 800fbd8: 609a str r2, [r3, #8]
  36689. break;
  36690. 800fbda: e04f b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36691. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36692. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36693. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36694. /* Configure the ETR Clock source */
  36695. TIM_ETR_SetConfig(htim->Instance,
  36696. 800fbdc: 687b ldr r3, [r7, #4]
  36697. 800fbde: 6818 ldr r0, [r3, #0]
  36698. sClockSourceConfig->ClockPrescaler,
  36699. 800fbe0: 683b ldr r3, [r7, #0]
  36700. 800fbe2: 6899 ldr r1, [r3, #8]
  36701. sClockSourceConfig->ClockPolarity,
  36702. 800fbe4: 683b ldr r3, [r7, #0]
  36703. 800fbe6: 685a ldr r2, [r3, #4]
  36704. sClockSourceConfig->ClockFilter);
  36705. 800fbe8: 683b ldr r3, [r7, #0]
  36706. 800fbea: 68db ldr r3, [r3, #12]
  36707. TIM_ETR_SetConfig(htim->Instance,
  36708. 800fbec: f000 fe1c bl 8010828 <TIM_ETR_SetConfig>
  36709. /* Enable the External clock mode2 */
  36710. htim->Instance->SMCR |= TIM_SMCR_ECE;
  36711. 800fbf0: 687b ldr r3, [r7, #4]
  36712. 800fbf2: 681b ldr r3, [r3, #0]
  36713. 800fbf4: 689a ldr r2, [r3, #8]
  36714. 800fbf6: 687b ldr r3, [r7, #4]
  36715. 800fbf8: 681b ldr r3, [r3, #0]
  36716. 800fbfa: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  36717. 800fbfe: 609a str r2, [r3, #8]
  36718. break;
  36719. 800fc00: e03c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36720. /* Check TI1 input conditioning related parameters */
  36721. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36722. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36723. TIM_TI1_ConfigInputStage(htim->Instance,
  36724. 800fc02: 687b ldr r3, [r7, #4]
  36725. 800fc04: 6818 ldr r0, [r3, #0]
  36726. sClockSourceConfig->ClockPolarity,
  36727. 800fc06: 683b ldr r3, [r7, #0]
  36728. 800fc08: 6859 ldr r1, [r3, #4]
  36729. sClockSourceConfig->ClockFilter);
  36730. 800fc0a: 683b ldr r3, [r7, #0]
  36731. 800fc0c: 68db ldr r3, [r3, #12]
  36732. TIM_TI1_ConfigInputStage(htim->Instance,
  36733. 800fc0e: 461a mov r2, r3
  36734. 800fc10: f000 fcd6 bl 80105c0 <TIM_TI1_ConfigInputStage>
  36735. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  36736. 800fc14: 687b ldr r3, [r7, #4]
  36737. 800fc16: 681b ldr r3, [r3, #0]
  36738. 800fc18: 2150 movs r1, #80 @ 0x50
  36739. 800fc1a: 4618 mov r0, r3
  36740. 800fc1c: f000 fde6 bl 80107ec <TIM_ITRx_SetConfig>
  36741. break;
  36742. 800fc20: e02c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36743. /* Check TI2 input conditioning related parameters */
  36744. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36745. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36746. TIM_TI2_ConfigInputStage(htim->Instance,
  36747. 800fc22: 687b ldr r3, [r7, #4]
  36748. 800fc24: 6818 ldr r0, [r3, #0]
  36749. sClockSourceConfig->ClockPolarity,
  36750. 800fc26: 683b ldr r3, [r7, #0]
  36751. 800fc28: 6859 ldr r1, [r3, #4]
  36752. sClockSourceConfig->ClockFilter);
  36753. 800fc2a: 683b ldr r3, [r7, #0]
  36754. 800fc2c: 68db ldr r3, [r3, #12]
  36755. TIM_TI2_ConfigInputStage(htim->Instance,
  36756. 800fc2e: 461a mov r2, r3
  36757. 800fc30: f000 fd32 bl 8010698 <TIM_TI2_ConfigInputStage>
  36758. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  36759. 800fc34: 687b ldr r3, [r7, #4]
  36760. 800fc36: 681b ldr r3, [r3, #0]
  36761. 800fc38: 2160 movs r1, #96 @ 0x60
  36762. 800fc3a: 4618 mov r0, r3
  36763. 800fc3c: f000 fdd6 bl 80107ec <TIM_ITRx_SetConfig>
  36764. break;
  36765. 800fc40: e01c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36766. /* Check TI1 input conditioning related parameters */
  36767. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36768. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36769. TIM_TI1_ConfigInputStage(htim->Instance,
  36770. 800fc42: 687b ldr r3, [r7, #4]
  36771. 800fc44: 6818 ldr r0, [r3, #0]
  36772. sClockSourceConfig->ClockPolarity,
  36773. 800fc46: 683b ldr r3, [r7, #0]
  36774. 800fc48: 6859 ldr r1, [r3, #4]
  36775. sClockSourceConfig->ClockFilter);
  36776. 800fc4a: 683b ldr r3, [r7, #0]
  36777. 800fc4c: 68db ldr r3, [r3, #12]
  36778. TIM_TI1_ConfigInputStage(htim->Instance,
  36779. 800fc4e: 461a mov r2, r3
  36780. 800fc50: f000 fcb6 bl 80105c0 <TIM_TI1_ConfigInputStage>
  36781. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  36782. 800fc54: 687b ldr r3, [r7, #4]
  36783. 800fc56: 681b ldr r3, [r3, #0]
  36784. 800fc58: 2140 movs r1, #64 @ 0x40
  36785. 800fc5a: 4618 mov r0, r3
  36786. 800fc5c: f000 fdc6 bl 80107ec <TIM_ITRx_SetConfig>
  36787. break;
  36788. 800fc60: e00c b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36789. case TIM_CLOCKSOURCE_ITR8:
  36790. {
  36791. /* Check whether or not the timer instance supports internal trigger input */
  36792. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  36793. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  36794. 800fc62: 687b ldr r3, [r7, #4]
  36795. 800fc64: 681a ldr r2, [r3, #0]
  36796. 800fc66: 683b ldr r3, [r7, #0]
  36797. 800fc68: 681b ldr r3, [r3, #0]
  36798. 800fc6a: 4619 mov r1, r3
  36799. 800fc6c: 4610 mov r0, r2
  36800. 800fc6e: f000 fdbd bl 80107ec <TIM_ITRx_SetConfig>
  36801. break;
  36802. 800fc72: e003 b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36803. }
  36804. default:
  36805. status = HAL_ERROR;
  36806. 800fc74: 2301 movs r3, #1
  36807. 800fc76: 73fb strb r3, [r7, #15]
  36808. break;
  36809. 800fc78: e000 b.n 800fc7c <HAL_TIM_ConfigClockSource+0x1c4>
  36810. break;
  36811. 800fc7a: bf00 nop
  36812. }
  36813. htim->State = HAL_TIM_STATE_READY;
  36814. 800fc7c: 687b ldr r3, [r7, #4]
  36815. 800fc7e: 2201 movs r2, #1
  36816. 800fc80: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36817. __HAL_UNLOCK(htim);
  36818. 800fc84: 687b ldr r3, [r7, #4]
  36819. 800fc86: 2200 movs r2, #0
  36820. 800fc88: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36821. return status;
  36822. 800fc8c: 7bfb ldrb r3, [r7, #15]
  36823. }
  36824. 800fc8e: 4618 mov r0, r3
  36825. 800fc90: 3710 adds r7, #16
  36826. 800fc92: 46bd mov sp, r7
  36827. 800fc94: bd80 pop {r7, pc}
  36828. 800fc96: bf00 nop
  36829. 800fc98: ffceff88 .word 0xffceff88
  36830. 800fc9c: 00100040 .word 0x00100040
  36831. 800fca0: 00100030 .word 0x00100030
  36832. 800fca4: 00100020 .word 0x00100020
  36833. 0800fca8 <HAL_TIM_ReadCapturedValue>:
  36834. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  36835. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  36836. * @retval Captured value
  36837. */
  36838. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  36839. {
  36840. 800fca8: b480 push {r7}
  36841. 800fcaa: b085 sub sp, #20
  36842. 800fcac: af00 add r7, sp, #0
  36843. 800fcae: 6078 str r0, [r7, #4]
  36844. 800fcb0: 6039 str r1, [r7, #0]
  36845. uint32_t tmpreg = 0U;
  36846. 800fcb2: 2300 movs r3, #0
  36847. 800fcb4: 60fb str r3, [r7, #12]
  36848. switch (Channel)
  36849. 800fcb6: 683b ldr r3, [r7, #0]
  36850. 800fcb8: 2b0c cmp r3, #12
  36851. 800fcba: d831 bhi.n 800fd20 <HAL_TIM_ReadCapturedValue+0x78>
  36852. 800fcbc: a201 add r2, pc, #4 @ (adr r2, 800fcc4 <HAL_TIM_ReadCapturedValue+0x1c>)
  36853. 800fcbe: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36854. 800fcc2: bf00 nop
  36855. 800fcc4: 0800fcf9 .word 0x0800fcf9
  36856. 800fcc8: 0800fd21 .word 0x0800fd21
  36857. 800fccc: 0800fd21 .word 0x0800fd21
  36858. 800fcd0: 0800fd21 .word 0x0800fd21
  36859. 800fcd4: 0800fd03 .word 0x0800fd03
  36860. 800fcd8: 0800fd21 .word 0x0800fd21
  36861. 800fcdc: 0800fd21 .word 0x0800fd21
  36862. 800fce0: 0800fd21 .word 0x0800fd21
  36863. 800fce4: 0800fd0d .word 0x0800fd0d
  36864. 800fce8: 0800fd21 .word 0x0800fd21
  36865. 800fcec: 0800fd21 .word 0x0800fd21
  36866. 800fcf0: 0800fd21 .word 0x0800fd21
  36867. 800fcf4: 0800fd17 .word 0x0800fd17
  36868. {
  36869. /* Check the parameters */
  36870. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  36871. /* Return the capture 1 value */
  36872. tmpreg = htim->Instance->CCR1;
  36873. 800fcf8: 687b ldr r3, [r7, #4]
  36874. 800fcfa: 681b ldr r3, [r3, #0]
  36875. 800fcfc: 6b5b ldr r3, [r3, #52] @ 0x34
  36876. 800fcfe: 60fb str r3, [r7, #12]
  36877. break;
  36878. 800fd00: e00f b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36879. {
  36880. /* Check the parameters */
  36881. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36882. /* Return the capture 2 value */
  36883. tmpreg = htim->Instance->CCR2;
  36884. 800fd02: 687b ldr r3, [r7, #4]
  36885. 800fd04: 681b ldr r3, [r3, #0]
  36886. 800fd06: 6b9b ldr r3, [r3, #56] @ 0x38
  36887. 800fd08: 60fb str r3, [r7, #12]
  36888. break;
  36889. 800fd0a: e00a b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36890. {
  36891. /* Check the parameters */
  36892. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36893. /* Return the capture 3 value */
  36894. tmpreg = htim->Instance->CCR3;
  36895. 800fd0c: 687b ldr r3, [r7, #4]
  36896. 800fd0e: 681b ldr r3, [r3, #0]
  36897. 800fd10: 6bdb ldr r3, [r3, #60] @ 0x3c
  36898. 800fd12: 60fb str r3, [r7, #12]
  36899. break;
  36900. 800fd14: e005 b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36901. {
  36902. /* Check the parameters */
  36903. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36904. /* Return the capture 4 value */
  36905. tmpreg = htim->Instance->CCR4;
  36906. 800fd16: 687b ldr r3, [r7, #4]
  36907. 800fd18: 681b ldr r3, [r3, #0]
  36908. 800fd1a: 6c1b ldr r3, [r3, #64] @ 0x40
  36909. 800fd1c: 60fb str r3, [r7, #12]
  36910. break;
  36911. 800fd1e: e000 b.n 800fd22 <HAL_TIM_ReadCapturedValue+0x7a>
  36912. }
  36913. default:
  36914. break;
  36915. 800fd20: bf00 nop
  36916. }
  36917. return tmpreg;
  36918. 800fd22: 68fb ldr r3, [r7, #12]
  36919. }
  36920. 800fd24: 4618 mov r0, r3
  36921. 800fd26: 3714 adds r7, #20
  36922. 800fd28: 46bd mov sp, r7
  36923. 800fd2a: f85d 7b04 ldr.w r7, [sp], #4
  36924. 800fd2e: 4770 bx lr
  36925. 0800fd30 <HAL_TIM_OC_DelayElapsedCallback>:
  36926. * @brief Output Compare callback in non-blocking mode
  36927. * @param htim TIM OC handle
  36928. * @retval None
  36929. */
  36930. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  36931. {
  36932. 800fd30: b480 push {r7}
  36933. 800fd32: b083 sub sp, #12
  36934. 800fd34: af00 add r7, sp, #0
  36935. 800fd36: 6078 str r0, [r7, #4]
  36936. UNUSED(htim);
  36937. /* NOTE : This function should not be modified, when the callback is needed,
  36938. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  36939. */
  36940. }
  36941. 800fd38: bf00 nop
  36942. 800fd3a: 370c adds r7, #12
  36943. 800fd3c: 46bd mov sp, r7
  36944. 800fd3e: f85d 7b04 ldr.w r7, [sp], #4
  36945. 800fd42: 4770 bx lr
  36946. 0800fd44 <HAL_TIM_PWM_PulseFinishedCallback>:
  36947. * @brief PWM Pulse finished callback in non-blocking mode
  36948. * @param htim TIM handle
  36949. * @retval None
  36950. */
  36951. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  36952. {
  36953. 800fd44: b480 push {r7}
  36954. 800fd46: b083 sub sp, #12
  36955. 800fd48: af00 add r7, sp, #0
  36956. 800fd4a: 6078 str r0, [r7, #4]
  36957. UNUSED(htim);
  36958. /* NOTE : This function should not be modified, when the callback is needed,
  36959. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  36960. */
  36961. }
  36962. 800fd4c: bf00 nop
  36963. 800fd4e: 370c adds r7, #12
  36964. 800fd50: 46bd mov sp, r7
  36965. 800fd52: f85d 7b04 ldr.w r7, [sp], #4
  36966. 800fd56: 4770 bx lr
  36967. 0800fd58 <HAL_TIM_TriggerCallback>:
  36968. * @brief Hall Trigger detection callback in non-blocking mode
  36969. * @param htim TIM handle
  36970. * @retval None
  36971. */
  36972. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  36973. {
  36974. 800fd58: b480 push {r7}
  36975. 800fd5a: b083 sub sp, #12
  36976. 800fd5c: af00 add r7, sp, #0
  36977. 800fd5e: 6078 str r0, [r7, #4]
  36978. UNUSED(htim);
  36979. /* NOTE : This function should not be modified, when the callback is needed,
  36980. the HAL_TIM_TriggerCallback could be implemented in the user file
  36981. */
  36982. }
  36983. 800fd60: bf00 nop
  36984. 800fd62: 370c adds r7, #12
  36985. 800fd64: 46bd mov sp, r7
  36986. 800fd66: f85d 7b04 ldr.w r7, [sp], #4
  36987. 800fd6a: 4770 bx lr
  36988. 0800fd6c <HAL_TIM_GetChannelState>:
  36989. * @arg TIM_CHANNEL_5: TIM Channel 5
  36990. * @arg TIM_CHANNEL_6: TIM Channel 6
  36991. * @retval TIM Channel state
  36992. */
  36993. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  36994. {
  36995. 800fd6c: b480 push {r7}
  36996. 800fd6e: b085 sub sp, #20
  36997. 800fd70: af00 add r7, sp, #0
  36998. 800fd72: 6078 str r0, [r7, #4]
  36999. 800fd74: 6039 str r1, [r7, #0]
  37000. HAL_TIM_ChannelStateTypeDef channel_state;
  37001. /* Check the parameters */
  37002. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  37003. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  37004. 800fd76: 683b ldr r3, [r7, #0]
  37005. 800fd78: 2b00 cmp r3, #0
  37006. 800fd7a: d104 bne.n 800fd86 <HAL_TIM_GetChannelState+0x1a>
  37007. 800fd7c: 687b ldr r3, [r7, #4]
  37008. 800fd7e: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  37009. 800fd82: b2db uxtb r3, r3
  37010. 800fd84: e023 b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37011. 800fd86: 683b ldr r3, [r7, #0]
  37012. 800fd88: 2b04 cmp r3, #4
  37013. 800fd8a: d104 bne.n 800fd96 <HAL_TIM_GetChannelState+0x2a>
  37014. 800fd8c: 687b ldr r3, [r7, #4]
  37015. 800fd8e: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  37016. 800fd92: b2db uxtb r3, r3
  37017. 800fd94: e01b b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37018. 800fd96: 683b ldr r3, [r7, #0]
  37019. 800fd98: 2b08 cmp r3, #8
  37020. 800fd9a: d104 bne.n 800fda6 <HAL_TIM_GetChannelState+0x3a>
  37021. 800fd9c: 687b ldr r3, [r7, #4]
  37022. 800fd9e: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  37023. 800fda2: b2db uxtb r3, r3
  37024. 800fda4: e013 b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37025. 800fda6: 683b ldr r3, [r7, #0]
  37026. 800fda8: 2b0c cmp r3, #12
  37027. 800fdaa: d104 bne.n 800fdb6 <HAL_TIM_GetChannelState+0x4a>
  37028. 800fdac: 687b ldr r3, [r7, #4]
  37029. 800fdae: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  37030. 800fdb2: b2db uxtb r3, r3
  37031. 800fdb4: e00b b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37032. 800fdb6: 683b ldr r3, [r7, #0]
  37033. 800fdb8: 2b10 cmp r3, #16
  37034. 800fdba: d104 bne.n 800fdc6 <HAL_TIM_GetChannelState+0x5a>
  37035. 800fdbc: 687b ldr r3, [r7, #4]
  37036. 800fdbe: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  37037. 800fdc2: b2db uxtb r3, r3
  37038. 800fdc4: e003 b.n 800fdce <HAL_TIM_GetChannelState+0x62>
  37039. 800fdc6: 687b ldr r3, [r7, #4]
  37040. 800fdc8: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  37041. 800fdcc: b2db uxtb r3, r3
  37042. 800fdce: 73fb strb r3, [r7, #15]
  37043. return channel_state;
  37044. 800fdd0: 7bfb ldrb r3, [r7, #15]
  37045. }
  37046. 800fdd2: 4618 mov r0, r3
  37047. 800fdd4: 3714 adds r7, #20
  37048. 800fdd6: 46bd mov sp, r7
  37049. 800fdd8: f85d 7b04 ldr.w r7, [sp], #4
  37050. 800fddc: 4770 bx lr
  37051. ...
  37052. 0800fde0 <TIM_Base_SetConfig>:
  37053. * @param TIMx TIM peripheral
  37054. * @param Structure TIM Base configuration structure
  37055. * @retval None
  37056. */
  37057. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  37058. {
  37059. 800fde0: b480 push {r7}
  37060. 800fde2: b085 sub sp, #20
  37061. 800fde4: af00 add r7, sp, #0
  37062. 800fde6: 6078 str r0, [r7, #4]
  37063. 800fde8: 6039 str r1, [r7, #0]
  37064. uint32_t tmpcr1;
  37065. tmpcr1 = TIMx->CR1;
  37066. 800fdea: 687b ldr r3, [r7, #4]
  37067. 800fdec: 681b ldr r3, [r3, #0]
  37068. 800fdee: 60fb str r3, [r7, #12]
  37069. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  37070. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  37071. 800fdf0: 687b ldr r3, [r7, #4]
  37072. 800fdf2: 4a46 ldr r2, [pc, #280] @ (800ff0c <TIM_Base_SetConfig+0x12c>)
  37073. 800fdf4: 4293 cmp r3, r2
  37074. 800fdf6: d013 beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37075. 800fdf8: 687b ldr r3, [r7, #4]
  37076. 800fdfa: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  37077. 800fdfe: d00f beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37078. 800fe00: 687b ldr r3, [r7, #4]
  37079. 800fe02: 4a43 ldr r2, [pc, #268] @ (800ff10 <TIM_Base_SetConfig+0x130>)
  37080. 800fe04: 4293 cmp r3, r2
  37081. 800fe06: d00b beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37082. 800fe08: 687b ldr r3, [r7, #4]
  37083. 800fe0a: 4a42 ldr r2, [pc, #264] @ (800ff14 <TIM_Base_SetConfig+0x134>)
  37084. 800fe0c: 4293 cmp r3, r2
  37085. 800fe0e: d007 beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37086. 800fe10: 687b ldr r3, [r7, #4]
  37087. 800fe12: 4a41 ldr r2, [pc, #260] @ (800ff18 <TIM_Base_SetConfig+0x138>)
  37088. 800fe14: 4293 cmp r3, r2
  37089. 800fe16: d003 beq.n 800fe20 <TIM_Base_SetConfig+0x40>
  37090. 800fe18: 687b ldr r3, [r7, #4]
  37091. 800fe1a: 4a40 ldr r2, [pc, #256] @ (800ff1c <TIM_Base_SetConfig+0x13c>)
  37092. 800fe1c: 4293 cmp r3, r2
  37093. 800fe1e: d108 bne.n 800fe32 <TIM_Base_SetConfig+0x52>
  37094. {
  37095. /* Select the Counter Mode */
  37096. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  37097. 800fe20: 68fb ldr r3, [r7, #12]
  37098. 800fe22: f023 0370 bic.w r3, r3, #112 @ 0x70
  37099. 800fe26: 60fb str r3, [r7, #12]
  37100. tmpcr1 |= Structure->CounterMode;
  37101. 800fe28: 683b ldr r3, [r7, #0]
  37102. 800fe2a: 685b ldr r3, [r3, #4]
  37103. 800fe2c: 68fa ldr r2, [r7, #12]
  37104. 800fe2e: 4313 orrs r3, r2
  37105. 800fe30: 60fb str r3, [r7, #12]
  37106. }
  37107. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  37108. 800fe32: 687b ldr r3, [r7, #4]
  37109. 800fe34: 4a35 ldr r2, [pc, #212] @ (800ff0c <TIM_Base_SetConfig+0x12c>)
  37110. 800fe36: 4293 cmp r3, r2
  37111. 800fe38: d01f beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37112. 800fe3a: 687b ldr r3, [r7, #4]
  37113. 800fe3c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  37114. 800fe40: d01b beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37115. 800fe42: 687b ldr r3, [r7, #4]
  37116. 800fe44: 4a32 ldr r2, [pc, #200] @ (800ff10 <TIM_Base_SetConfig+0x130>)
  37117. 800fe46: 4293 cmp r3, r2
  37118. 800fe48: d017 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37119. 800fe4a: 687b ldr r3, [r7, #4]
  37120. 800fe4c: 4a31 ldr r2, [pc, #196] @ (800ff14 <TIM_Base_SetConfig+0x134>)
  37121. 800fe4e: 4293 cmp r3, r2
  37122. 800fe50: d013 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37123. 800fe52: 687b ldr r3, [r7, #4]
  37124. 800fe54: 4a30 ldr r2, [pc, #192] @ (800ff18 <TIM_Base_SetConfig+0x138>)
  37125. 800fe56: 4293 cmp r3, r2
  37126. 800fe58: d00f beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37127. 800fe5a: 687b ldr r3, [r7, #4]
  37128. 800fe5c: 4a2f ldr r2, [pc, #188] @ (800ff1c <TIM_Base_SetConfig+0x13c>)
  37129. 800fe5e: 4293 cmp r3, r2
  37130. 800fe60: d00b beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37131. 800fe62: 687b ldr r3, [r7, #4]
  37132. 800fe64: 4a2e ldr r2, [pc, #184] @ (800ff20 <TIM_Base_SetConfig+0x140>)
  37133. 800fe66: 4293 cmp r3, r2
  37134. 800fe68: d007 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37135. 800fe6a: 687b ldr r3, [r7, #4]
  37136. 800fe6c: 4a2d ldr r2, [pc, #180] @ (800ff24 <TIM_Base_SetConfig+0x144>)
  37137. 800fe6e: 4293 cmp r3, r2
  37138. 800fe70: d003 beq.n 800fe7a <TIM_Base_SetConfig+0x9a>
  37139. 800fe72: 687b ldr r3, [r7, #4]
  37140. 800fe74: 4a2c ldr r2, [pc, #176] @ (800ff28 <TIM_Base_SetConfig+0x148>)
  37141. 800fe76: 4293 cmp r3, r2
  37142. 800fe78: d108 bne.n 800fe8c <TIM_Base_SetConfig+0xac>
  37143. {
  37144. /* Set the clock division */
  37145. tmpcr1 &= ~TIM_CR1_CKD;
  37146. 800fe7a: 68fb ldr r3, [r7, #12]
  37147. 800fe7c: f423 7340 bic.w r3, r3, #768 @ 0x300
  37148. 800fe80: 60fb str r3, [r7, #12]
  37149. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  37150. 800fe82: 683b ldr r3, [r7, #0]
  37151. 800fe84: 68db ldr r3, [r3, #12]
  37152. 800fe86: 68fa ldr r2, [r7, #12]
  37153. 800fe88: 4313 orrs r3, r2
  37154. 800fe8a: 60fb str r3, [r7, #12]
  37155. }
  37156. /* Set the auto-reload preload */
  37157. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  37158. 800fe8c: 68fb ldr r3, [r7, #12]
  37159. 800fe8e: f023 0280 bic.w r2, r3, #128 @ 0x80
  37160. 800fe92: 683b ldr r3, [r7, #0]
  37161. 800fe94: 695b ldr r3, [r3, #20]
  37162. 800fe96: 4313 orrs r3, r2
  37163. 800fe98: 60fb str r3, [r7, #12]
  37164. TIMx->CR1 = tmpcr1;
  37165. 800fe9a: 687b ldr r3, [r7, #4]
  37166. 800fe9c: 68fa ldr r2, [r7, #12]
  37167. 800fe9e: 601a str r2, [r3, #0]
  37168. /* Set the Autoreload value */
  37169. TIMx->ARR = (uint32_t)Structure->Period ;
  37170. 800fea0: 683b ldr r3, [r7, #0]
  37171. 800fea2: 689a ldr r2, [r3, #8]
  37172. 800fea4: 687b ldr r3, [r7, #4]
  37173. 800fea6: 62da str r2, [r3, #44] @ 0x2c
  37174. /* Set the Prescaler value */
  37175. TIMx->PSC = Structure->Prescaler;
  37176. 800fea8: 683b ldr r3, [r7, #0]
  37177. 800feaa: 681a ldr r2, [r3, #0]
  37178. 800feac: 687b ldr r3, [r7, #4]
  37179. 800feae: 629a str r2, [r3, #40] @ 0x28
  37180. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  37181. 800feb0: 687b ldr r3, [r7, #4]
  37182. 800feb2: 4a16 ldr r2, [pc, #88] @ (800ff0c <TIM_Base_SetConfig+0x12c>)
  37183. 800feb4: 4293 cmp r3, r2
  37184. 800feb6: d00f beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37185. 800feb8: 687b ldr r3, [r7, #4]
  37186. 800feba: 4a18 ldr r2, [pc, #96] @ (800ff1c <TIM_Base_SetConfig+0x13c>)
  37187. 800febc: 4293 cmp r3, r2
  37188. 800febe: d00b beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37189. 800fec0: 687b ldr r3, [r7, #4]
  37190. 800fec2: 4a17 ldr r2, [pc, #92] @ (800ff20 <TIM_Base_SetConfig+0x140>)
  37191. 800fec4: 4293 cmp r3, r2
  37192. 800fec6: d007 beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37193. 800fec8: 687b ldr r3, [r7, #4]
  37194. 800feca: 4a16 ldr r2, [pc, #88] @ (800ff24 <TIM_Base_SetConfig+0x144>)
  37195. 800fecc: 4293 cmp r3, r2
  37196. 800fece: d003 beq.n 800fed8 <TIM_Base_SetConfig+0xf8>
  37197. 800fed0: 687b ldr r3, [r7, #4]
  37198. 800fed2: 4a15 ldr r2, [pc, #84] @ (800ff28 <TIM_Base_SetConfig+0x148>)
  37199. 800fed4: 4293 cmp r3, r2
  37200. 800fed6: d103 bne.n 800fee0 <TIM_Base_SetConfig+0x100>
  37201. {
  37202. /* Set the Repetition Counter value */
  37203. TIMx->RCR = Structure->RepetitionCounter;
  37204. 800fed8: 683b ldr r3, [r7, #0]
  37205. 800feda: 691a ldr r2, [r3, #16]
  37206. 800fedc: 687b ldr r3, [r7, #4]
  37207. 800fede: 631a str r2, [r3, #48] @ 0x30
  37208. }
  37209. /* Generate an update event to reload the Prescaler
  37210. and the repetition counter (only for advanced timer) value immediately */
  37211. TIMx->EGR = TIM_EGR_UG;
  37212. 800fee0: 687b ldr r3, [r7, #4]
  37213. 800fee2: 2201 movs r2, #1
  37214. 800fee4: 615a str r2, [r3, #20]
  37215. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  37216. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  37217. 800fee6: 687b ldr r3, [r7, #4]
  37218. 800fee8: 691b ldr r3, [r3, #16]
  37219. 800feea: f003 0301 and.w r3, r3, #1
  37220. 800feee: 2b01 cmp r3, #1
  37221. 800fef0: d105 bne.n 800fefe <TIM_Base_SetConfig+0x11e>
  37222. {
  37223. /* Clear the update flag */
  37224. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  37225. 800fef2: 687b ldr r3, [r7, #4]
  37226. 800fef4: 691b ldr r3, [r3, #16]
  37227. 800fef6: f023 0201 bic.w r2, r3, #1
  37228. 800fefa: 687b ldr r3, [r7, #4]
  37229. 800fefc: 611a str r2, [r3, #16]
  37230. }
  37231. }
  37232. 800fefe: bf00 nop
  37233. 800ff00: 3714 adds r7, #20
  37234. 800ff02: 46bd mov sp, r7
  37235. 800ff04: f85d 7b04 ldr.w r7, [sp], #4
  37236. 800ff08: 4770 bx lr
  37237. 800ff0a: bf00 nop
  37238. 800ff0c: 40010000 .word 0x40010000
  37239. 800ff10: 40000400 .word 0x40000400
  37240. 800ff14: 40000800 .word 0x40000800
  37241. 800ff18: 40000c00 .word 0x40000c00
  37242. 800ff1c: 40010400 .word 0x40010400
  37243. 800ff20: 40014000 .word 0x40014000
  37244. 800ff24: 40014400 .word 0x40014400
  37245. 800ff28: 40014800 .word 0x40014800
  37246. 0800ff2c <TIM_OC1_SetConfig>:
  37247. * @param TIMx to select the TIM peripheral
  37248. * @param OC_Config The output configuration structure
  37249. * @retval None
  37250. */
  37251. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37252. {
  37253. 800ff2c: b480 push {r7}
  37254. 800ff2e: b087 sub sp, #28
  37255. 800ff30: af00 add r7, sp, #0
  37256. 800ff32: 6078 str r0, [r7, #4]
  37257. 800ff34: 6039 str r1, [r7, #0]
  37258. uint32_t tmpccmrx;
  37259. uint32_t tmpccer;
  37260. uint32_t tmpcr2;
  37261. /* Get the TIMx CCER register value */
  37262. tmpccer = TIMx->CCER;
  37263. 800ff36: 687b ldr r3, [r7, #4]
  37264. 800ff38: 6a1b ldr r3, [r3, #32]
  37265. 800ff3a: 617b str r3, [r7, #20]
  37266. /* Disable the Channel 1: Reset the CC1E Bit */
  37267. TIMx->CCER &= ~TIM_CCER_CC1E;
  37268. 800ff3c: 687b ldr r3, [r7, #4]
  37269. 800ff3e: 6a1b ldr r3, [r3, #32]
  37270. 800ff40: f023 0201 bic.w r2, r3, #1
  37271. 800ff44: 687b ldr r3, [r7, #4]
  37272. 800ff46: 621a str r2, [r3, #32]
  37273. /* Get the TIMx CR2 register value */
  37274. tmpcr2 = TIMx->CR2;
  37275. 800ff48: 687b ldr r3, [r7, #4]
  37276. 800ff4a: 685b ldr r3, [r3, #4]
  37277. 800ff4c: 613b str r3, [r7, #16]
  37278. /* Get the TIMx CCMR1 register value */
  37279. tmpccmrx = TIMx->CCMR1;
  37280. 800ff4e: 687b ldr r3, [r7, #4]
  37281. 800ff50: 699b ldr r3, [r3, #24]
  37282. 800ff52: 60fb str r3, [r7, #12]
  37283. /* Reset the Output Compare Mode Bits */
  37284. tmpccmrx &= ~TIM_CCMR1_OC1M;
  37285. 800ff54: 68fa ldr r2, [r7, #12]
  37286. 800ff56: 4b37 ldr r3, [pc, #220] @ (8010034 <TIM_OC1_SetConfig+0x108>)
  37287. 800ff58: 4013 ands r3, r2
  37288. 800ff5a: 60fb str r3, [r7, #12]
  37289. tmpccmrx &= ~TIM_CCMR1_CC1S;
  37290. 800ff5c: 68fb ldr r3, [r7, #12]
  37291. 800ff5e: f023 0303 bic.w r3, r3, #3
  37292. 800ff62: 60fb str r3, [r7, #12]
  37293. /* Select the Output Compare Mode */
  37294. tmpccmrx |= OC_Config->OCMode;
  37295. 800ff64: 683b ldr r3, [r7, #0]
  37296. 800ff66: 681b ldr r3, [r3, #0]
  37297. 800ff68: 68fa ldr r2, [r7, #12]
  37298. 800ff6a: 4313 orrs r3, r2
  37299. 800ff6c: 60fb str r3, [r7, #12]
  37300. /* Reset the Output Polarity level */
  37301. tmpccer &= ~TIM_CCER_CC1P;
  37302. 800ff6e: 697b ldr r3, [r7, #20]
  37303. 800ff70: f023 0302 bic.w r3, r3, #2
  37304. 800ff74: 617b str r3, [r7, #20]
  37305. /* Set the Output Compare Polarity */
  37306. tmpccer |= OC_Config->OCPolarity;
  37307. 800ff76: 683b ldr r3, [r7, #0]
  37308. 800ff78: 689b ldr r3, [r3, #8]
  37309. 800ff7a: 697a ldr r2, [r7, #20]
  37310. 800ff7c: 4313 orrs r3, r2
  37311. 800ff7e: 617b str r3, [r7, #20]
  37312. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  37313. 800ff80: 687b ldr r3, [r7, #4]
  37314. 800ff82: 4a2d ldr r2, [pc, #180] @ (8010038 <TIM_OC1_SetConfig+0x10c>)
  37315. 800ff84: 4293 cmp r3, r2
  37316. 800ff86: d00f beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37317. 800ff88: 687b ldr r3, [r7, #4]
  37318. 800ff8a: 4a2c ldr r2, [pc, #176] @ (801003c <TIM_OC1_SetConfig+0x110>)
  37319. 800ff8c: 4293 cmp r3, r2
  37320. 800ff8e: d00b beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37321. 800ff90: 687b ldr r3, [r7, #4]
  37322. 800ff92: 4a2b ldr r2, [pc, #172] @ (8010040 <TIM_OC1_SetConfig+0x114>)
  37323. 800ff94: 4293 cmp r3, r2
  37324. 800ff96: d007 beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37325. 800ff98: 687b ldr r3, [r7, #4]
  37326. 800ff9a: 4a2a ldr r2, [pc, #168] @ (8010044 <TIM_OC1_SetConfig+0x118>)
  37327. 800ff9c: 4293 cmp r3, r2
  37328. 800ff9e: d003 beq.n 800ffa8 <TIM_OC1_SetConfig+0x7c>
  37329. 800ffa0: 687b ldr r3, [r7, #4]
  37330. 800ffa2: 4a29 ldr r2, [pc, #164] @ (8010048 <TIM_OC1_SetConfig+0x11c>)
  37331. 800ffa4: 4293 cmp r3, r2
  37332. 800ffa6: d10c bne.n 800ffc2 <TIM_OC1_SetConfig+0x96>
  37333. {
  37334. /* Check parameters */
  37335. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37336. /* Reset the Output N Polarity level */
  37337. tmpccer &= ~TIM_CCER_CC1NP;
  37338. 800ffa8: 697b ldr r3, [r7, #20]
  37339. 800ffaa: f023 0308 bic.w r3, r3, #8
  37340. 800ffae: 617b str r3, [r7, #20]
  37341. /* Set the Output N Polarity */
  37342. tmpccer |= OC_Config->OCNPolarity;
  37343. 800ffb0: 683b ldr r3, [r7, #0]
  37344. 800ffb2: 68db ldr r3, [r3, #12]
  37345. 800ffb4: 697a ldr r2, [r7, #20]
  37346. 800ffb6: 4313 orrs r3, r2
  37347. 800ffb8: 617b str r3, [r7, #20]
  37348. /* Reset the Output N State */
  37349. tmpccer &= ~TIM_CCER_CC1NE;
  37350. 800ffba: 697b ldr r3, [r7, #20]
  37351. 800ffbc: f023 0304 bic.w r3, r3, #4
  37352. 800ffc0: 617b str r3, [r7, #20]
  37353. }
  37354. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37355. 800ffc2: 687b ldr r3, [r7, #4]
  37356. 800ffc4: 4a1c ldr r2, [pc, #112] @ (8010038 <TIM_OC1_SetConfig+0x10c>)
  37357. 800ffc6: 4293 cmp r3, r2
  37358. 800ffc8: d00f beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37359. 800ffca: 687b ldr r3, [r7, #4]
  37360. 800ffcc: 4a1b ldr r2, [pc, #108] @ (801003c <TIM_OC1_SetConfig+0x110>)
  37361. 800ffce: 4293 cmp r3, r2
  37362. 800ffd0: d00b beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37363. 800ffd2: 687b ldr r3, [r7, #4]
  37364. 800ffd4: 4a1a ldr r2, [pc, #104] @ (8010040 <TIM_OC1_SetConfig+0x114>)
  37365. 800ffd6: 4293 cmp r3, r2
  37366. 800ffd8: d007 beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37367. 800ffda: 687b ldr r3, [r7, #4]
  37368. 800ffdc: 4a19 ldr r2, [pc, #100] @ (8010044 <TIM_OC1_SetConfig+0x118>)
  37369. 800ffde: 4293 cmp r3, r2
  37370. 800ffe0: d003 beq.n 800ffea <TIM_OC1_SetConfig+0xbe>
  37371. 800ffe2: 687b ldr r3, [r7, #4]
  37372. 800ffe4: 4a18 ldr r2, [pc, #96] @ (8010048 <TIM_OC1_SetConfig+0x11c>)
  37373. 800ffe6: 4293 cmp r3, r2
  37374. 800ffe8: d111 bne.n 801000e <TIM_OC1_SetConfig+0xe2>
  37375. /* Check parameters */
  37376. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37377. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37378. /* Reset the Output Compare and Output Compare N IDLE State */
  37379. tmpcr2 &= ~TIM_CR2_OIS1;
  37380. 800ffea: 693b ldr r3, [r7, #16]
  37381. 800ffec: f423 7380 bic.w r3, r3, #256 @ 0x100
  37382. 800fff0: 613b str r3, [r7, #16]
  37383. tmpcr2 &= ~TIM_CR2_OIS1N;
  37384. 800fff2: 693b ldr r3, [r7, #16]
  37385. 800fff4: f423 7300 bic.w r3, r3, #512 @ 0x200
  37386. 800fff8: 613b str r3, [r7, #16]
  37387. /* Set the Output Idle state */
  37388. tmpcr2 |= OC_Config->OCIdleState;
  37389. 800fffa: 683b ldr r3, [r7, #0]
  37390. 800fffc: 695b ldr r3, [r3, #20]
  37391. 800fffe: 693a ldr r2, [r7, #16]
  37392. 8010000: 4313 orrs r3, r2
  37393. 8010002: 613b str r3, [r7, #16]
  37394. /* Set the Output N Idle state */
  37395. tmpcr2 |= OC_Config->OCNIdleState;
  37396. 8010004: 683b ldr r3, [r7, #0]
  37397. 8010006: 699b ldr r3, [r3, #24]
  37398. 8010008: 693a ldr r2, [r7, #16]
  37399. 801000a: 4313 orrs r3, r2
  37400. 801000c: 613b str r3, [r7, #16]
  37401. }
  37402. /* Write to TIMx CR2 */
  37403. TIMx->CR2 = tmpcr2;
  37404. 801000e: 687b ldr r3, [r7, #4]
  37405. 8010010: 693a ldr r2, [r7, #16]
  37406. 8010012: 605a str r2, [r3, #4]
  37407. /* Write to TIMx CCMR1 */
  37408. TIMx->CCMR1 = tmpccmrx;
  37409. 8010014: 687b ldr r3, [r7, #4]
  37410. 8010016: 68fa ldr r2, [r7, #12]
  37411. 8010018: 619a str r2, [r3, #24]
  37412. /* Set the Capture Compare Register value */
  37413. TIMx->CCR1 = OC_Config->Pulse;
  37414. 801001a: 683b ldr r3, [r7, #0]
  37415. 801001c: 685a ldr r2, [r3, #4]
  37416. 801001e: 687b ldr r3, [r7, #4]
  37417. 8010020: 635a str r2, [r3, #52] @ 0x34
  37418. /* Write to TIMx CCER */
  37419. TIMx->CCER = tmpccer;
  37420. 8010022: 687b ldr r3, [r7, #4]
  37421. 8010024: 697a ldr r2, [r7, #20]
  37422. 8010026: 621a str r2, [r3, #32]
  37423. }
  37424. 8010028: bf00 nop
  37425. 801002a: 371c adds r7, #28
  37426. 801002c: 46bd mov sp, r7
  37427. 801002e: f85d 7b04 ldr.w r7, [sp], #4
  37428. 8010032: 4770 bx lr
  37429. 8010034: fffeff8f .word 0xfffeff8f
  37430. 8010038: 40010000 .word 0x40010000
  37431. 801003c: 40010400 .word 0x40010400
  37432. 8010040: 40014000 .word 0x40014000
  37433. 8010044: 40014400 .word 0x40014400
  37434. 8010048: 40014800 .word 0x40014800
  37435. 0801004c <TIM_OC2_SetConfig>:
  37436. * @param TIMx to select the TIM peripheral
  37437. * @param OC_Config The output configuration structure
  37438. * @retval None
  37439. */
  37440. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37441. {
  37442. 801004c: b480 push {r7}
  37443. 801004e: b087 sub sp, #28
  37444. 8010050: af00 add r7, sp, #0
  37445. 8010052: 6078 str r0, [r7, #4]
  37446. 8010054: 6039 str r1, [r7, #0]
  37447. uint32_t tmpccmrx;
  37448. uint32_t tmpccer;
  37449. uint32_t tmpcr2;
  37450. /* Get the TIMx CCER register value */
  37451. tmpccer = TIMx->CCER;
  37452. 8010056: 687b ldr r3, [r7, #4]
  37453. 8010058: 6a1b ldr r3, [r3, #32]
  37454. 801005a: 617b str r3, [r7, #20]
  37455. /* Disable the Channel 2: Reset the CC2E Bit */
  37456. TIMx->CCER &= ~TIM_CCER_CC2E;
  37457. 801005c: 687b ldr r3, [r7, #4]
  37458. 801005e: 6a1b ldr r3, [r3, #32]
  37459. 8010060: f023 0210 bic.w r2, r3, #16
  37460. 8010064: 687b ldr r3, [r7, #4]
  37461. 8010066: 621a str r2, [r3, #32]
  37462. /* Get the TIMx CR2 register value */
  37463. tmpcr2 = TIMx->CR2;
  37464. 8010068: 687b ldr r3, [r7, #4]
  37465. 801006a: 685b ldr r3, [r3, #4]
  37466. 801006c: 613b str r3, [r7, #16]
  37467. /* Get the TIMx CCMR1 register value */
  37468. tmpccmrx = TIMx->CCMR1;
  37469. 801006e: 687b ldr r3, [r7, #4]
  37470. 8010070: 699b ldr r3, [r3, #24]
  37471. 8010072: 60fb str r3, [r7, #12]
  37472. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37473. tmpccmrx &= ~TIM_CCMR1_OC2M;
  37474. 8010074: 68fa ldr r2, [r7, #12]
  37475. 8010076: 4b34 ldr r3, [pc, #208] @ (8010148 <TIM_OC2_SetConfig+0xfc>)
  37476. 8010078: 4013 ands r3, r2
  37477. 801007a: 60fb str r3, [r7, #12]
  37478. tmpccmrx &= ~TIM_CCMR1_CC2S;
  37479. 801007c: 68fb ldr r3, [r7, #12]
  37480. 801007e: f423 7340 bic.w r3, r3, #768 @ 0x300
  37481. 8010082: 60fb str r3, [r7, #12]
  37482. /* Select the Output Compare Mode */
  37483. tmpccmrx |= (OC_Config->OCMode << 8U);
  37484. 8010084: 683b ldr r3, [r7, #0]
  37485. 8010086: 681b ldr r3, [r3, #0]
  37486. 8010088: 021b lsls r3, r3, #8
  37487. 801008a: 68fa ldr r2, [r7, #12]
  37488. 801008c: 4313 orrs r3, r2
  37489. 801008e: 60fb str r3, [r7, #12]
  37490. /* Reset the Output Polarity level */
  37491. tmpccer &= ~TIM_CCER_CC2P;
  37492. 8010090: 697b ldr r3, [r7, #20]
  37493. 8010092: f023 0320 bic.w r3, r3, #32
  37494. 8010096: 617b str r3, [r7, #20]
  37495. /* Set the Output Compare Polarity */
  37496. tmpccer |= (OC_Config->OCPolarity << 4U);
  37497. 8010098: 683b ldr r3, [r7, #0]
  37498. 801009a: 689b ldr r3, [r3, #8]
  37499. 801009c: 011b lsls r3, r3, #4
  37500. 801009e: 697a ldr r2, [r7, #20]
  37501. 80100a0: 4313 orrs r3, r2
  37502. 80100a2: 617b str r3, [r7, #20]
  37503. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  37504. 80100a4: 687b ldr r3, [r7, #4]
  37505. 80100a6: 4a29 ldr r2, [pc, #164] @ (801014c <TIM_OC2_SetConfig+0x100>)
  37506. 80100a8: 4293 cmp r3, r2
  37507. 80100aa: d003 beq.n 80100b4 <TIM_OC2_SetConfig+0x68>
  37508. 80100ac: 687b ldr r3, [r7, #4]
  37509. 80100ae: 4a28 ldr r2, [pc, #160] @ (8010150 <TIM_OC2_SetConfig+0x104>)
  37510. 80100b0: 4293 cmp r3, r2
  37511. 80100b2: d10d bne.n 80100d0 <TIM_OC2_SetConfig+0x84>
  37512. {
  37513. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37514. /* Reset the Output N Polarity level */
  37515. tmpccer &= ~TIM_CCER_CC2NP;
  37516. 80100b4: 697b ldr r3, [r7, #20]
  37517. 80100b6: f023 0380 bic.w r3, r3, #128 @ 0x80
  37518. 80100ba: 617b str r3, [r7, #20]
  37519. /* Set the Output N Polarity */
  37520. tmpccer |= (OC_Config->OCNPolarity << 4U);
  37521. 80100bc: 683b ldr r3, [r7, #0]
  37522. 80100be: 68db ldr r3, [r3, #12]
  37523. 80100c0: 011b lsls r3, r3, #4
  37524. 80100c2: 697a ldr r2, [r7, #20]
  37525. 80100c4: 4313 orrs r3, r2
  37526. 80100c6: 617b str r3, [r7, #20]
  37527. /* Reset the Output N State */
  37528. tmpccer &= ~TIM_CCER_CC2NE;
  37529. 80100c8: 697b ldr r3, [r7, #20]
  37530. 80100ca: f023 0340 bic.w r3, r3, #64 @ 0x40
  37531. 80100ce: 617b str r3, [r7, #20]
  37532. }
  37533. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37534. 80100d0: 687b ldr r3, [r7, #4]
  37535. 80100d2: 4a1e ldr r2, [pc, #120] @ (801014c <TIM_OC2_SetConfig+0x100>)
  37536. 80100d4: 4293 cmp r3, r2
  37537. 80100d6: d00f beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37538. 80100d8: 687b ldr r3, [r7, #4]
  37539. 80100da: 4a1d ldr r2, [pc, #116] @ (8010150 <TIM_OC2_SetConfig+0x104>)
  37540. 80100dc: 4293 cmp r3, r2
  37541. 80100de: d00b beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37542. 80100e0: 687b ldr r3, [r7, #4]
  37543. 80100e2: 4a1c ldr r2, [pc, #112] @ (8010154 <TIM_OC2_SetConfig+0x108>)
  37544. 80100e4: 4293 cmp r3, r2
  37545. 80100e6: d007 beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37546. 80100e8: 687b ldr r3, [r7, #4]
  37547. 80100ea: 4a1b ldr r2, [pc, #108] @ (8010158 <TIM_OC2_SetConfig+0x10c>)
  37548. 80100ec: 4293 cmp r3, r2
  37549. 80100ee: d003 beq.n 80100f8 <TIM_OC2_SetConfig+0xac>
  37550. 80100f0: 687b ldr r3, [r7, #4]
  37551. 80100f2: 4a1a ldr r2, [pc, #104] @ (801015c <TIM_OC2_SetConfig+0x110>)
  37552. 80100f4: 4293 cmp r3, r2
  37553. 80100f6: d113 bne.n 8010120 <TIM_OC2_SetConfig+0xd4>
  37554. /* Check parameters */
  37555. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37556. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37557. /* Reset the Output Compare and Output Compare N IDLE State */
  37558. tmpcr2 &= ~TIM_CR2_OIS2;
  37559. 80100f8: 693b ldr r3, [r7, #16]
  37560. 80100fa: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37561. 80100fe: 613b str r3, [r7, #16]
  37562. tmpcr2 &= ~TIM_CR2_OIS2N;
  37563. 8010100: 693b ldr r3, [r7, #16]
  37564. 8010102: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37565. 8010106: 613b str r3, [r7, #16]
  37566. /* Set the Output Idle state */
  37567. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  37568. 8010108: 683b ldr r3, [r7, #0]
  37569. 801010a: 695b ldr r3, [r3, #20]
  37570. 801010c: 009b lsls r3, r3, #2
  37571. 801010e: 693a ldr r2, [r7, #16]
  37572. 8010110: 4313 orrs r3, r2
  37573. 8010112: 613b str r3, [r7, #16]
  37574. /* Set the Output N Idle state */
  37575. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  37576. 8010114: 683b ldr r3, [r7, #0]
  37577. 8010116: 699b ldr r3, [r3, #24]
  37578. 8010118: 009b lsls r3, r3, #2
  37579. 801011a: 693a ldr r2, [r7, #16]
  37580. 801011c: 4313 orrs r3, r2
  37581. 801011e: 613b str r3, [r7, #16]
  37582. }
  37583. /* Write to TIMx CR2 */
  37584. TIMx->CR2 = tmpcr2;
  37585. 8010120: 687b ldr r3, [r7, #4]
  37586. 8010122: 693a ldr r2, [r7, #16]
  37587. 8010124: 605a str r2, [r3, #4]
  37588. /* Write to TIMx CCMR1 */
  37589. TIMx->CCMR1 = tmpccmrx;
  37590. 8010126: 687b ldr r3, [r7, #4]
  37591. 8010128: 68fa ldr r2, [r7, #12]
  37592. 801012a: 619a str r2, [r3, #24]
  37593. /* Set the Capture Compare Register value */
  37594. TIMx->CCR2 = OC_Config->Pulse;
  37595. 801012c: 683b ldr r3, [r7, #0]
  37596. 801012e: 685a ldr r2, [r3, #4]
  37597. 8010130: 687b ldr r3, [r7, #4]
  37598. 8010132: 639a str r2, [r3, #56] @ 0x38
  37599. /* Write to TIMx CCER */
  37600. TIMx->CCER = tmpccer;
  37601. 8010134: 687b ldr r3, [r7, #4]
  37602. 8010136: 697a ldr r2, [r7, #20]
  37603. 8010138: 621a str r2, [r3, #32]
  37604. }
  37605. 801013a: bf00 nop
  37606. 801013c: 371c adds r7, #28
  37607. 801013e: 46bd mov sp, r7
  37608. 8010140: f85d 7b04 ldr.w r7, [sp], #4
  37609. 8010144: 4770 bx lr
  37610. 8010146: bf00 nop
  37611. 8010148: feff8fff .word 0xfeff8fff
  37612. 801014c: 40010000 .word 0x40010000
  37613. 8010150: 40010400 .word 0x40010400
  37614. 8010154: 40014000 .word 0x40014000
  37615. 8010158: 40014400 .word 0x40014400
  37616. 801015c: 40014800 .word 0x40014800
  37617. 08010160 <TIM_OC3_SetConfig>:
  37618. * @param TIMx to select the TIM peripheral
  37619. * @param OC_Config The output configuration structure
  37620. * @retval None
  37621. */
  37622. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37623. {
  37624. 8010160: b480 push {r7}
  37625. 8010162: b087 sub sp, #28
  37626. 8010164: af00 add r7, sp, #0
  37627. 8010166: 6078 str r0, [r7, #4]
  37628. 8010168: 6039 str r1, [r7, #0]
  37629. uint32_t tmpccmrx;
  37630. uint32_t tmpccer;
  37631. uint32_t tmpcr2;
  37632. /* Get the TIMx CCER register value */
  37633. tmpccer = TIMx->CCER;
  37634. 801016a: 687b ldr r3, [r7, #4]
  37635. 801016c: 6a1b ldr r3, [r3, #32]
  37636. 801016e: 617b str r3, [r7, #20]
  37637. /* Disable the Channel 3: Reset the CC2E Bit */
  37638. TIMx->CCER &= ~TIM_CCER_CC3E;
  37639. 8010170: 687b ldr r3, [r7, #4]
  37640. 8010172: 6a1b ldr r3, [r3, #32]
  37641. 8010174: f423 7280 bic.w r2, r3, #256 @ 0x100
  37642. 8010178: 687b ldr r3, [r7, #4]
  37643. 801017a: 621a str r2, [r3, #32]
  37644. /* Get the TIMx CR2 register value */
  37645. tmpcr2 = TIMx->CR2;
  37646. 801017c: 687b ldr r3, [r7, #4]
  37647. 801017e: 685b ldr r3, [r3, #4]
  37648. 8010180: 613b str r3, [r7, #16]
  37649. /* Get the TIMx CCMR2 register value */
  37650. tmpccmrx = TIMx->CCMR2;
  37651. 8010182: 687b ldr r3, [r7, #4]
  37652. 8010184: 69db ldr r3, [r3, #28]
  37653. 8010186: 60fb str r3, [r7, #12]
  37654. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37655. tmpccmrx &= ~TIM_CCMR2_OC3M;
  37656. 8010188: 68fa ldr r2, [r7, #12]
  37657. 801018a: 4b33 ldr r3, [pc, #204] @ (8010258 <TIM_OC3_SetConfig+0xf8>)
  37658. 801018c: 4013 ands r3, r2
  37659. 801018e: 60fb str r3, [r7, #12]
  37660. tmpccmrx &= ~TIM_CCMR2_CC3S;
  37661. 8010190: 68fb ldr r3, [r7, #12]
  37662. 8010192: f023 0303 bic.w r3, r3, #3
  37663. 8010196: 60fb str r3, [r7, #12]
  37664. /* Select the Output Compare Mode */
  37665. tmpccmrx |= OC_Config->OCMode;
  37666. 8010198: 683b ldr r3, [r7, #0]
  37667. 801019a: 681b ldr r3, [r3, #0]
  37668. 801019c: 68fa ldr r2, [r7, #12]
  37669. 801019e: 4313 orrs r3, r2
  37670. 80101a0: 60fb str r3, [r7, #12]
  37671. /* Reset the Output Polarity level */
  37672. tmpccer &= ~TIM_CCER_CC3P;
  37673. 80101a2: 697b ldr r3, [r7, #20]
  37674. 80101a4: f423 7300 bic.w r3, r3, #512 @ 0x200
  37675. 80101a8: 617b str r3, [r7, #20]
  37676. /* Set the Output Compare Polarity */
  37677. tmpccer |= (OC_Config->OCPolarity << 8U);
  37678. 80101aa: 683b ldr r3, [r7, #0]
  37679. 80101ac: 689b ldr r3, [r3, #8]
  37680. 80101ae: 021b lsls r3, r3, #8
  37681. 80101b0: 697a ldr r2, [r7, #20]
  37682. 80101b2: 4313 orrs r3, r2
  37683. 80101b4: 617b str r3, [r7, #20]
  37684. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  37685. 80101b6: 687b ldr r3, [r7, #4]
  37686. 80101b8: 4a28 ldr r2, [pc, #160] @ (801025c <TIM_OC3_SetConfig+0xfc>)
  37687. 80101ba: 4293 cmp r3, r2
  37688. 80101bc: d003 beq.n 80101c6 <TIM_OC3_SetConfig+0x66>
  37689. 80101be: 687b ldr r3, [r7, #4]
  37690. 80101c0: 4a27 ldr r2, [pc, #156] @ (8010260 <TIM_OC3_SetConfig+0x100>)
  37691. 80101c2: 4293 cmp r3, r2
  37692. 80101c4: d10d bne.n 80101e2 <TIM_OC3_SetConfig+0x82>
  37693. {
  37694. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37695. /* Reset the Output N Polarity level */
  37696. tmpccer &= ~TIM_CCER_CC3NP;
  37697. 80101c6: 697b ldr r3, [r7, #20]
  37698. 80101c8: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37699. 80101cc: 617b str r3, [r7, #20]
  37700. /* Set the Output N Polarity */
  37701. tmpccer |= (OC_Config->OCNPolarity << 8U);
  37702. 80101ce: 683b ldr r3, [r7, #0]
  37703. 80101d0: 68db ldr r3, [r3, #12]
  37704. 80101d2: 021b lsls r3, r3, #8
  37705. 80101d4: 697a ldr r2, [r7, #20]
  37706. 80101d6: 4313 orrs r3, r2
  37707. 80101d8: 617b str r3, [r7, #20]
  37708. /* Reset the Output N State */
  37709. tmpccer &= ~TIM_CCER_CC3NE;
  37710. 80101da: 697b ldr r3, [r7, #20]
  37711. 80101dc: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37712. 80101e0: 617b str r3, [r7, #20]
  37713. }
  37714. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37715. 80101e2: 687b ldr r3, [r7, #4]
  37716. 80101e4: 4a1d ldr r2, [pc, #116] @ (801025c <TIM_OC3_SetConfig+0xfc>)
  37717. 80101e6: 4293 cmp r3, r2
  37718. 80101e8: d00f beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37719. 80101ea: 687b ldr r3, [r7, #4]
  37720. 80101ec: 4a1c ldr r2, [pc, #112] @ (8010260 <TIM_OC3_SetConfig+0x100>)
  37721. 80101ee: 4293 cmp r3, r2
  37722. 80101f0: d00b beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37723. 80101f2: 687b ldr r3, [r7, #4]
  37724. 80101f4: 4a1b ldr r2, [pc, #108] @ (8010264 <TIM_OC3_SetConfig+0x104>)
  37725. 80101f6: 4293 cmp r3, r2
  37726. 80101f8: d007 beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37727. 80101fa: 687b ldr r3, [r7, #4]
  37728. 80101fc: 4a1a ldr r2, [pc, #104] @ (8010268 <TIM_OC3_SetConfig+0x108>)
  37729. 80101fe: 4293 cmp r3, r2
  37730. 8010200: d003 beq.n 801020a <TIM_OC3_SetConfig+0xaa>
  37731. 8010202: 687b ldr r3, [r7, #4]
  37732. 8010204: 4a19 ldr r2, [pc, #100] @ (801026c <TIM_OC3_SetConfig+0x10c>)
  37733. 8010206: 4293 cmp r3, r2
  37734. 8010208: d113 bne.n 8010232 <TIM_OC3_SetConfig+0xd2>
  37735. /* Check parameters */
  37736. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37737. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37738. /* Reset the Output Compare and Output Compare N IDLE State */
  37739. tmpcr2 &= ~TIM_CR2_OIS3;
  37740. 801020a: 693b ldr r3, [r7, #16]
  37741. 801020c: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  37742. 8010210: 613b str r3, [r7, #16]
  37743. tmpcr2 &= ~TIM_CR2_OIS3N;
  37744. 8010212: 693b ldr r3, [r7, #16]
  37745. 8010214: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37746. 8010218: 613b str r3, [r7, #16]
  37747. /* Set the Output Idle state */
  37748. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  37749. 801021a: 683b ldr r3, [r7, #0]
  37750. 801021c: 695b ldr r3, [r3, #20]
  37751. 801021e: 011b lsls r3, r3, #4
  37752. 8010220: 693a ldr r2, [r7, #16]
  37753. 8010222: 4313 orrs r3, r2
  37754. 8010224: 613b str r3, [r7, #16]
  37755. /* Set the Output N Idle state */
  37756. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  37757. 8010226: 683b ldr r3, [r7, #0]
  37758. 8010228: 699b ldr r3, [r3, #24]
  37759. 801022a: 011b lsls r3, r3, #4
  37760. 801022c: 693a ldr r2, [r7, #16]
  37761. 801022e: 4313 orrs r3, r2
  37762. 8010230: 613b str r3, [r7, #16]
  37763. }
  37764. /* Write to TIMx CR2 */
  37765. TIMx->CR2 = tmpcr2;
  37766. 8010232: 687b ldr r3, [r7, #4]
  37767. 8010234: 693a ldr r2, [r7, #16]
  37768. 8010236: 605a str r2, [r3, #4]
  37769. /* Write to TIMx CCMR2 */
  37770. TIMx->CCMR2 = tmpccmrx;
  37771. 8010238: 687b ldr r3, [r7, #4]
  37772. 801023a: 68fa ldr r2, [r7, #12]
  37773. 801023c: 61da str r2, [r3, #28]
  37774. /* Set the Capture Compare Register value */
  37775. TIMx->CCR3 = OC_Config->Pulse;
  37776. 801023e: 683b ldr r3, [r7, #0]
  37777. 8010240: 685a ldr r2, [r3, #4]
  37778. 8010242: 687b ldr r3, [r7, #4]
  37779. 8010244: 63da str r2, [r3, #60] @ 0x3c
  37780. /* Write to TIMx CCER */
  37781. TIMx->CCER = tmpccer;
  37782. 8010246: 687b ldr r3, [r7, #4]
  37783. 8010248: 697a ldr r2, [r7, #20]
  37784. 801024a: 621a str r2, [r3, #32]
  37785. }
  37786. 801024c: bf00 nop
  37787. 801024e: 371c adds r7, #28
  37788. 8010250: 46bd mov sp, r7
  37789. 8010252: f85d 7b04 ldr.w r7, [sp], #4
  37790. 8010256: 4770 bx lr
  37791. 8010258: fffeff8f .word 0xfffeff8f
  37792. 801025c: 40010000 .word 0x40010000
  37793. 8010260: 40010400 .word 0x40010400
  37794. 8010264: 40014000 .word 0x40014000
  37795. 8010268: 40014400 .word 0x40014400
  37796. 801026c: 40014800 .word 0x40014800
  37797. 08010270 <TIM_OC4_SetConfig>:
  37798. * @param TIMx to select the TIM peripheral
  37799. * @param OC_Config The output configuration structure
  37800. * @retval None
  37801. */
  37802. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37803. {
  37804. 8010270: b480 push {r7}
  37805. 8010272: b087 sub sp, #28
  37806. 8010274: af00 add r7, sp, #0
  37807. 8010276: 6078 str r0, [r7, #4]
  37808. 8010278: 6039 str r1, [r7, #0]
  37809. uint32_t tmpccmrx;
  37810. uint32_t tmpccer;
  37811. uint32_t tmpcr2;
  37812. /* Get the TIMx CCER register value */
  37813. tmpccer = TIMx->CCER;
  37814. 801027a: 687b ldr r3, [r7, #4]
  37815. 801027c: 6a1b ldr r3, [r3, #32]
  37816. 801027e: 613b str r3, [r7, #16]
  37817. /* Disable the Channel 4: Reset the CC4E Bit */
  37818. TIMx->CCER &= ~TIM_CCER_CC4E;
  37819. 8010280: 687b ldr r3, [r7, #4]
  37820. 8010282: 6a1b ldr r3, [r3, #32]
  37821. 8010284: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  37822. 8010288: 687b ldr r3, [r7, #4]
  37823. 801028a: 621a str r2, [r3, #32]
  37824. /* Get the TIMx CR2 register value */
  37825. tmpcr2 = TIMx->CR2;
  37826. 801028c: 687b ldr r3, [r7, #4]
  37827. 801028e: 685b ldr r3, [r3, #4]
  37828. 8010290: 617b str r3, [r7, #20]
  37829. /* Get the TIMx CCMR2 register value */
  37830. tmpccmrx = TIMx->CCMR2;
  37831. 8010292: 687b ldr r3, [r7, #4]
  37832. 8010294: 69db ldr r3, [r3, #28]
  37833. 8010296: 60fb str r3, [r7, #12]
  37834. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37835. tmpccmrx &= ~TIM_CCMR2_OC4M;
  37836. 8010298: 68fa ldr r2, [r7, #12]
  37837. 801029a: 4b24 ldr r3, [pc, #144] @ (801032c <TIM_OC4_SetConfig+0xbc>)
  37838. 801029c: 4013 ands r3, r2
  37839. 801029e: 60fb str r3, [r7, #12]
  37840. tmpccmrx &= ~TIM_CCMR2_CC4S;
  37841. 80102a0: 68fb ldr r3, [r7, #12]
  37842. 80102a2: f423 7340 bic.w r3, r3, #768 @ 0x300
  37843. 80102a6: 60fb str r3, [r7, #12]
  37844. /* Select the Output Compare Mode */
  37845. tmpccmrx |= (OC_Config->OCMode << 8U);
  37846. 80102a8: 683b ldr r3, [r7, #0]
  37847. 80102aa: 681b ldr r3, [r3, #0]
  37848. 80102ac: 021b lsls r3, r3, #8
  37849. 80102ae: 68fa ldr r2, [r7, #12]
  37850. 80102b0: 4313 orrs r3, r2
  37851. 80102b2: 60fb str r3, [r7, #12]
  37852. /* Reset the Output Polarity level */
  37853. tmpccer &= ~TIM_CCER_CC4P;
  37854. 80102b4: 693b ldr r3, [r7, #16]
  37855. 80102b6: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37856. 80102ba: 613b str r3, [r7, #16]
  37857. /* Set the Output Compare Polarity */
  37858. tmpccer |= (OC_Config->OCPolarity << 12U);
  37859. 80102bc: 683b ldr r3, [r7, #0]
  37860. 80102be: 689b ldr r3, [r3, #8]
  37861. 80102c0: 031b lsls r3, r3, #12
  37862. 80102c2: 693a ldr r2, [r7, #16]
  37863. 80102c4: 4313 orrs r3, r2
  37864. 80102c6: 613b str r3, [r7, #16]
  37865. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37866. 80102c8: 687b ldr r3, [r7, #4]
  37867. 80102ca: 4a19 ldr r2, [pc, #100] @ (8010330 <TIM_OC4_SetConfig+0xc0>)
  37868. 80102cc: 4293 cmp r3, r2
  37869. 80102ce: d00f beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37870. 80102d0: 687b ldr r3, [r7, #4]
  37871. 80102d2: 4a18 ldr r2, [pc, #96] @ (8010334 <TIM_OC4_SetConfig+0xc4>)
  37872. 80102d4: 4293 cmp r3, r2
  37873. 80102d6: d00b beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37874. 80102d8: 687b ldr r3, [r7, #4]
  37875. 80102da: 4a17 ldr r2, [pc, #92] @ (8010338 <TIM_OC4_SetConfig+0xc8>)
  37876. 80102dc: 4293 cmp r3, r2
  37877. 80102de: d007 beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37878. 80102e0: 687b ldr r3, [r7, #4]
  37879. 80102e2: 4a16 ldr r2, [pc, #88] @ (801033c <TIM_OC4_SetConfig+0xcc>)
  37880. 80102e4: 4293 cmp r3, r2
  37881. 80102e6: d003 beq.n 80102f0 <TIM_OC4_SetConfig+0x80>
  37882. 80102e8: 687b ldr r3, [r7, #4]
  37883. 80102ea: 4a15 ldr r2, [pc, #84] @ (8010340 <TIM_OC4_SetConfig+0xd0>)
  37884. 80102ec: 4293 cmp r3, r2
  37885. 80102ee: d109 bne.n 8010304 <TIM_OC4_SetConfig+0x94>
  37886. {
  37887. /* Check parameters */
  37888. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37889. /* Reset the Output Compare IDLE State */
  37890. tmpcr2 &= ~TIM_CR2_OIS4;
  37891. 80102f0: 697b ldr r3, [r7, #20]
  37892. 80102f2: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  37893. 80102f6: 617b str r3, [r7, #20]
  37894. /* Set the Output Idle state */
  37895. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  37896. 80102f8: 683b ldr r3, [r7, #0]
  37897. 80102fa: 695b ldr r3, [r3, #20]
  37898. 80102fc: 019b lsls r3, r3, #6
  37899. 80102fe: 697a ldr r2, [r7, #20]
  37900. 8010300: 4313 orrs r3, r2
  37901. 8010302: 617b str r3, [r7, #20]
  37902. }
  37903. /* Write to TIMx CR2 */
  37904. TIMx->CR2 = tmpcr2;
  37905. 8010304: 687b ldr r3, [r7, #4]
  37906. 8010306: 697a ldr r2, [r7, #20]
  37907. 8010308: 605a str r2, [r3, #4]
  37908. /* Write to TIMx CCMR2 */
  37909. TIMx->CCMR2 = tmpccmrx;
  37910. 801030a: 687b ldr r3, [r7, #4]
  37911. 801030c: 68fa ldr r2, [r7, #12]
  37912. 801030e: 61da str r2, [r3, #28]
  37913. /* Set the Capture Compare Register value */
  37914. TIMx->CCR4 = OC_Config->Pulse;
  37915. 8010310: 683b ldr r3, [r7, #0]
  37916. 8010312: 685a ldr r2, [r3, #4]
  37917. 8010314: 687b ldr r3, [r7, #4]
  37918. 8010316: 641a str r2, [r3, #64] @ 0x40
  37919. /* Write to TIMx CCER */
  37920. TIMx->CCER = tmpccer;
  37921. 8010318: 687b ldr r3, [r7, #4]
  37922. 801031a: 693a ldr r2, [r7, #16]
  37923. 801031c: 621a str r2, [r3, #32]
  37924. }
  37925. 801031e: bf00 nop
  37926. 8010320: 371c adds r7, #28
  37927. 8010322: 46bd mov sp, r7
  37928. 8010324: f85d 7b04 ldr.w r7, [sp], #4
  37929. 8010328: 4770 bx lr
  37930. 801032a: bf00 nop
  37931. 801032c: feff8fff .word 0xfeff8fff
  37932. 8010330: 40010000 .word 0x40010000
  37933. 8010334: 40010400 .word 0x40010400
  37934. 8010338: 40014000 .word 0x40014000
  37935. 801033c: 40014400 .word 0x40014400
  37936. 8010340: 40014800 .word 0x40014800
  37937. 08010344 <TIM_OC5_SetConfig>:
  37938. * @param OC_Config The output configuration structure
  37939. * @retval None
  37940. */
  37941. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  37942. const TIM_OC_InitTypeDef *OC_Config)
  37943. {
  37944. 8010344: b480 push {r7}
  37945. 8010346: b087 sub sp, #28
  37946. 8010348: af00 add r7, sp, #0
  37947. 801034a: 6078 str r0, [r7, #4]
  37948. 801034c: 6039 str r1, [r7, #0]
  37949. uint32_t tmpccmrx;
  37950. uint32_t tmpccer;
  37951. uint32_t tmpcr2;
  37952. /* Get the TIMx CCER register value */
  37953. tmpccer = TIMx->CCER;
  37954. 801034e: 687b ldr r3, [r7, #4]
  37955. 8010350: 6a1b ldr r3, [r3, #32]
  37956. 8010352: 613b str r3, [r7, #16]
  37957. /* Disable the output: Reset the CCxE Bit */
  37958. TIMx->CCER &= ~TIM_CCER_CC5E;
  37959. 8010354: 687b ldr r3, [r7, #4]
  37960. 8010356: 6a1b ldr r3, [r3, #32]
  37961. 8010358: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  37962. 801035c: 687b ldr r3, [r7, #4]
  37963. 801035e: 621a str r2, [r3, #32]
  37964. /* Get the TIMx CR2 register value */
  37965. tmpcr2 = TIMx->CR2;
  37966. 8010360: 687b ldr r3, [r7, #4]
  37967. 8010362: 685b ldr r3, [r3, #4]
  37968. 8010364: 617b str r3, [r7, #20]
  37969. /* Get the TIMx CCMR1 register value */
  37970. tmpccmrx = TIMx->CCMR3;
  37971. 8010366: 687b ldr r3, [r7, #4]
  37972. 8010368: 6d5b ldr r3, [r3, #84] @ 0x54
  37973. 801036a: 60fb str r3, [r7, #12]
  37974. /* Reset the Output Compare Mode Bits */
  37975. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  37976. 801036c: 68fa ldr r2, [r7, #12]
  37977. 801036e: 4b21 ldr r3, [pc, #132] @ (80103f4 <TIM_OC5_SetConfig+0xb0>)
  37978. 8010370: 4013 ands r3, r2
  37979. 8010372: 60fb str r3, [r7, #12]
  37980. /* Select the Output Compare Mode */
  37981. tmpccmrx |= OC_Config->OCMode;
  37982. 8010374: 683b ldr r3, [r7, #0]
  37983. 8010376: 681b ldr r3, [r3, #0]
  37984. 8010378: 68fa ldr r2, [r7, #12]
  37985. 801037a: 4313 orrs r3, r2
  37986. 801037c: 60fb str r3, [r7, #12]
  37987. /* Reset the Output Polarity level */
  37988. tmpccer &= ~TIM_CCER_CC5P;
  37989. 801037e: 693b ldr r3, [r7, #16]
  37990. 8010380: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  37991. 8010384: 613b str r3, [r7, #16]
  37992. /* Set the Output Compare Polarity */
  37993. tmpccer |= (OC_Config->OCPolarity << 16U);
  37994. 8010386: 683b ldr r3, [r7, #0]
  37995. 8010388: 689b ldr r3, [r3, #8]
  37996. 801038a: 041b lsls r3, r3, #16
  37997. 801038c: 693a ldr r2, [r7, #16]
  37998. 801038e: 4313 orrs r3, r2
  37999. 8010390: 613b str r3, [r7, #16]
  38000. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38001. 8010392: 687b ldr r3, [r7, #4]
  38002. 8010394: 4a18 ldr r2, [pc, #96] @ (80103f8 <TIM_OC5_SetConfig+0xb4>)
  38003. 8010396: 4293 cmp r3, r2
  38004. 8010398: d00f beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38005. 801039a: 687b ldr r3, [r7, #4]
  38006. 801039c: 4a17 ldr r2, [pc, #92] @ (80103fc <TIM_OC5_SetConfig+0xb8>)
  38007. 801039e: 4293 cmp r3, r2
  38008. 80103a0: d00b beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38009. 80103a2: 687b ldr r3, [r7, #4]
  38010. 80103a4: 4a16 ldr r2, [pc, #88] @ (8010400 <TIM_OC5_SetConfig+0xbc>)
  38011. 80103a6: 4293 cmp r3, r2
  38012. 80103a8: d007 beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38013. 80103aa: 687b ldr r3, [r7, #4]
  38014. 80103ac: 4a15 ldr r2, [pc, #84] @ (8010404 <TIM_OC5_SetConfig+0xc0>)
  38015. 80103ae: 4293 cmp r3, r2
  38016. 80103b0: d003 beq.n 80103ba <TIM_OC5_SetConfig+0x76>
  38017. 80103b2: 687b ldr r3, [r7, #4]
  38018. 80103b4: 4a14 ldr r2, [pc, #80] @ (8010408 <TIM_OC5_SetConfig+0xc4>)
  38019. 80103b6: 4293 cmp r3, r2
  38020. 80103b8: d109 bne.n 80103ce <TIM_OC5_SetConfig+0x8a>
  38021. {
  38022. /* Reset the Output Compare IDLE State */
  38023. tmpcr2 &= ~TIM_CR2_OIS5;
  38024. 80103ba: 697b ldr r3, [r7, #20]
  38025. 80103bc: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  38026. 80103c0: 617b str r3, [r7, #20]
  38027. /* Set the Output Idle state */
  38028. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  38029. 80103c2: 683b ldr r3, [r7, #0]
  38030. 80103c4: 695b ldr r3, [r3, #20]
  38031. 80103c6: 021b lsls r3, r3, #8
  38032. 80103c8: 697a ldr r2, [r7, #20]
  38033. 80103ca: 4313 orrs r3, r2
  38034. 80103cc: 617b str r3, [r7, #20]
  38035. }
  38036. /* Write to TIMx CR2 */
  38037. TIMx->CR2 = tmpcr2;
  38038. 80103ce: 687b ldr r3, [r7, #4]
  38039. 80103d0: 697a ldr r2, [r7, #20]
  38040. 80103d2: 605a str r2, [r3, #4]
  38041. /* Write to TIMx CCMR3 */
  38042. TIMx->CCMR3 = tmpccmrx;
  38043. 80103d4: 687b ldr r3, [r7, #4]
  38044. 80103d6: 68fa ldr r2, [r7, #12]
  38045. 80103d8: 655a str r2, [r3, #84] @ 0x54
  38046. /* Set the Capture Compare Register value */
  38047. TIMx->CCR5 = OC_Config->Pulse;
  38048. 80103da: 683b ldr r3, [r7, #0]
  38049. 80103dc: 685a ldr r2, [r3, #4]
  38050. 80103de: 687b ldr r3, [r7, #4]
  38051. 80103e0: 659a str r2, [r3, #88] @ 0x58
  38052. /* Write to TIMx CCER */
  38053. TIMx->CCER = tmpccer;
  38054. 80103e2: 687b ldr r3, [r7, #4]
  38055. 80103e4: 693a ldr r2, [r7, #16]
  38056. 80103e6: 621a str r2, [r3, #32]
  38057. }
  38058. 80103e8: bf00 nop
  38059. 80103ea: 371c adds r7, #28
  38060. 80103ec: 46bd mov sp, r7
  38061. 80103ee: f85d 7b04 ldr.w r7, [sp], #4
  38062. 80103f2: 4770 bx lr
  38063. 80103f4: fffeff8f .word 0xfffeff8f
  38064. 80103f8: 40010000 .word 0x40010000
  38065. 80103fc: 40010400 .word 0x40010400
  38066. 8010400: 40014000 .word 0x40014000
  38067. 8010404: 40014400 .word 0x40014400
  38068. 8010408: 40014800 .word 0x40014800
  38069. 0801040c <TIM_OC6_SetConfig>:
  38070. * @param OC_Config The output configuration structure
  38071. * @retval None
  38072. */
  38073. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  38074. const TIM_OC_InitTypeDef *OC_Config)
  38075. {
  38076. 801040c: b480 push {r7}
  38077. 801040e: b087 sub sp, #28
  38078. 8010410: af00 add r7, sp, #0
  38079. 8010412: 6078 str r0, [r7, #4]
  38080. 8010414: 6039 str r1, [r7, #0]
  38081. uint32_t tmpccmrx;
  38082. uint32_t tmpccer;
  38083. uint32_t tmpcr2;
  38084. /* Get the TIMx CCER register value */
  38085. tmpccer = TIMx->CCER;
  38086. 8010416: 687b ldr r3, [r7, #4]
  38087. 8010418: 6a1b ldr r3, [r3, #32]
  38088. 801041a: 613b str r3, [r7, #16]
  38089. /* Disable the output: Reset the CCxE Bit */
  38090. TIMx->CCER &= ~TIM_CCER_CC6E;
  38091. 801041c: 687b ldr r3, [r7, #4]
  38092. 801041e: 6a1b ldr r3, [r3, #32]
  38093. 8010420: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  38094. 8010424: 687b ldr r3, [r7, #4]
  38095. 8010426: 621a str r2, [r3, #32]
  38096. /* Get the TIMx CR2 register value */
  38097. tmpcr2 = TIMx->CR2;
  38098. 8010428: 687b ldr r3, [r7, #4]
  38099. 801042a: 685b ldr r3, [r3, #4]
  38100. 801042c: 617b str r3, [r7, #20]
  38101. /* Get the TIMx CCMR1 register value */
  38102. tmpccmrx = TIMx->CCMR3;
  38103. 801042e: 687b ldr r3, [r7, #4]
  38104. 8010430: 6d5b ldr r3, [r3, #84] @ 0x54
  38105. 8010432: 60fb str r3, [r7, #12]
  38106. /* Reset the Output Compare Mode Bits */
  38107. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  38108. 8010434: 68fa ldr r2, [r7, #12]
  38109. 8010436: 4b22 ldr r3, [pc, #136] @ (80104c0 <TIM_OC6_SetConfig+0xb4>)
  38110. 8010438: 4013 ands r3, r2
  38111. 801043a: 60fb str r3, [r7, #12]
  38112. /* Select the Output Compare Mode */
  38113. tmpccmrx |= (OC_Config->OCMode << 8U);
  38114. 801043c: 683b ldr r3, [r7, #0]
  38115. 801043e: 681b ldr r3, [r3, #0]
  38116. 8010440: 021b lsls r3, r3, #8
  38117. 8010442: 68fa ldr r2, [r7, #12]
  38118. 8010444: 4313 orrs r3, r2
  38119. 8010446: 60fb str r3, [r7, #12]
  38120. /* Reset the Output Polarity level */
  38121. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  38122. 8010448: 693b ldr r3, [r7, #16]
  38123. 801044a: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  38124. 801044e: 613b str r3, [r7, #16]
  38125. /* Set the Output Compare Polarity */
  38126. tmpccer |= (OC_Config->OCPolarity << 20U);
  38127. 8010450: 683b ldr r3, [r7, #0]
  38128. 8010452: 689b ldr r3, [r3, #8]
  38129. 8010454: 051b lsls r3, r3, #20
  38130. 8010456: 693a ldr r2, [r7, #16]
  38131. 8010458: 4313 orrs r3, r2
  38132. 801045a: 613b str r3, [r7, #16]
  38133. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38134. 801045c: 687b ldr r3, [r7, #4]
  38135. 801045e: 4a19 ldr r2, [pc, #100] @ (80104c4 <TIM_OC6_SetConfig+0xb8>)
  38136. 8010460: 4293 cmp r3, r2
  38137. 8010462: d00f beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38138. 8010464: 687b ldr r3, [r7, #4]
  38139. 8010466: 4a18 ldr r2, [pc, #96] @ (80104c8 <TIM_OC6_SetConfig+0xbc>)
  38140. 8010468: 4293 cmp r3, r2
  38141. 801046a: d00b beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38142. 801046c: 687b ldr r3, [r7, #4]
  38143. 801046e: 4a17 ldr r2, [pc, #92] @ (80104cc <TIM_OC6_SetConfig+0xc0>)
  38144. 8010470: 4293 cmp r3, r2
  38145. 8010472: d007 beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38146. 8010474: 687b ldr r3, [r7, #4]
  38147. 8010476: 4a16 ldr r2, [pc, #88] @ (80104d0 <TIM_OC6_SetConfig+0xc4>)
  38148. 8010478: 4293 cmp r3, r2
  38149. 801047a: d003 beq.n 8010484 <TIM_OC6_SetConfig+0x78>
  38150. 801047c: 687b ldr r3, [r7, #4]
  38151. 801047e: 4a15 ldr r2, [pc, #84] @ (80104d4 <TIM_OC6_SetConfig+0xc8>)
  38152. 8010480: 4293 cmp r3, r2
  38153. 8010482: d109 bne.n 8010498 <TIM_OC6_SetConfig+0x8c>
  38154. {
  38155. /* Reset the Output Compare IDLE State */
  38156. tmpcr2 &= ~TIM_CR2_OIS6;
  38157. 8010484: 697b ldr r3, [r7, #20]
  38158. 8010486: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  38159. 801048a: 617b str r3, [r7, #20]
  38160. /* Set the Output Idle state */
  38161. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  38162. 801048c: 683b ldr r3, [r7, #0]
  38163. 801048e: 695b ldr r3, [r3, #20]
  38164. 8010490: 029b lsls r3, r3, #10
  38165. 8010492: 697a ldr r2, [r7, #20]
  38166. 8010494: 4313 orrs r3, r2
  38167. 8010496: 617b str r3, [r7, #20]
  38168. }
  38169. /* Write to TIMx CR2 */
  38170. TIMx->CR2 = tmpcr2;
  38171. 8010498: 687b ldr r3, [r7, #4]
  38172. 801049a: 697a ldr r2, [r7, #20]
  38173. 801049c: 605a str r2, [r3, #4]
  38174. /* Write to TIMx CCMR3 */
  38175. TIMx->CCMR3 = tmpccmrx;
  38176. 801049e: 687b ldr r3, [r7, #4]
  38177. 80104a0: 68fa ldr r2, [r7, #12]
  38178. 80104a2: 655a str r2, [r3, #84] @ 0x54
  38179. /* Set the Capture Compare Register value */
  38180. TIMx->CCR6 = OC_Config->Pulse;
  38181. 80104a4: 683b ldr r3, [r7, #0]
  38182. 80104a6: 685a ldr r2, [r3, #4]
  38183. 80104a8: 687b ldr r3, [r7, #4]
  38184. 80104aa: 65da str r2, [r3, #92] @ 0x5c
  38185. /* Write to TIMx CCER */
  38186. TIMx->CCER = tmpccer;
  38187. 80104ac: 687b ldr r3, [r7, #4]
  38188. 80104ae: 693a ldr r2, [r7, #16]
  38189. 80104b0: 621a str r2, [r3, #32]
  38190. }
  38191. 80104b2: bf00 nop
  38192. 80104b4: 371c adds r7, #28
  38193. 80104b6: 46bd mov sp, r7
  38194. 80104b8: f85d 7b04 ldr.w r7, [sp], #4
  38195. 80104bc: 4770 bx lr
  38196. 80104be: bf00 nop
  38197. 80104c0: feff8fff .word 0xfeff8fff
  38198. 80104c4: 40010000 .word 0x40010000
  38199. 80104c8: 40010400 .word 0x40010400
  38200. 80104cc: 40014000 .word 0x40014000
  38201. 80104d0: 40014400 .word 0x40014400
  38202. 80104d4: 40014800 .word 0x40014800
  38203. 080104d8 <TIM_TI1_SetConfig>:
  38204. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  38205. * protected against un-initialized filter and polarity values.
  38206. */
  38207. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38208. uint32_t TIM_ICFilter)
  38209. {
  38210. 80104d8: b480 push {r7}
  38211. 80104da: b087 sub sp, #28
  38212. 80104dc: af00 add r7, sp, #0
  38213. 80104de: 60f8 str r0, [r7, #12]
  38214. 80104e0: 60b9 str r1, [r7, #8]
  38215. 80104e2: 607a str r2, [r7, #4]
  38216. 80104e4: 603b str r3, [r7, #0]
  38217. uint32_t tmpccmr1;
  38218. uint32_t tmpccer;
  38219. /* Disable the Channel 1: Reset the CC1E Bit */
  38220. tmpccer = TIMx->CCER;
  38221. 80104e6: 68fb ldr r3, [r7, #12]
  38222. 80104e8: 6a1b ldr r3, [r3, #32]
  38223. 80104ea: 613b str r3, [r7, #16]
  38224. TIMx->CCER &= ~TIM_CCER_CC1E;
  38225. 80104ec: 68fb ldr r3, [r7, #12]
  38226. 80104ee: 6a1b ldr r3, [r3, #32]
  38227. 80104f0: f023 0201 bic.w r2, r3, #1
  38228. 80104f4: 68fb ldr r3, [r7, #12]
  38229. 80104f6: 621a str r2, [r3, #32]
  38230. tmpccmr1 = TIMx->CCMR1;
  38231. 80104f8: 68fb ldr r3, [r7, #12]
  38232. 80104fa: 699b ldr r3, [r3, #24]
  38233. 80104fc: 617b str r3, [r7, #20]
  38234. /* Select the Input */
  38235. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  38236. 80104fe: 68fb ldr r3, [r7, #12]
  38237. 8010500: 4a28 ldr r2, [pc, #160] @ (80105a4 <TIM_TI1_SetConfig+0xcc>)
  38238. 8010502: 4293 cmp r3, r2
  38239. 8010504: d01b beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38240. 8010506: 68fb ldr r3, [r7, #12]
  38241. 8010508: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38242. 801050c: d017 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38243. 801050e: 68fb ldr r3, [r7, #12]
  38244. 8010510: 4a25 ldr r2, [pc, #148] @ (80105a8 <TIM_TI1_SetConfig+0xd0>)
  38245. 8010512: 4293 cmp r3, r2
  38246. 8010514: d013 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38247. 8010516: 68fb ldr r3, [r7, #12]
  38248. 8010518: 4a24 ldr r2, [pc, #144] @ (80105ac <TIM_TI1_SetConfig+0xd4>)
  38249. 801051a: 4293 cmp r3, r2
  38250. 801051c: d00f beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38251. 801051e: 68fb ldr r3, [r7, #12]
  38252. 8010520: 4a23 ldr r2, [pc, #140] @ (80105b0 <TIM_TI1_SetConfig+0xd8>)
  38253. 8010522: 4293 cmp r3, r2
  38254. 8010524: d00b beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38255. 8010526: 68fb ldr r3, [r7, #12]
  38256. 8010528: 4a22 ldr r2, [pc, #136] @ (80105b4 <TIM_TI1_SetConfig+0xdc>)
  38257. 801052a: 4293 cmp r3, r2
  38258. 801052c: d007 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38259. 801052e: 68fb ldr r3, [r7, #12]
  38260. 8010530: 4a21 ldr r2, [pc, #132] @ (80105b8 <TIM_TI1_SetConfig+0xe0>)
  38261. 8010532: 4293 cmp r3, r2
  38262. 8010534: d003 beq.n 801053e <TIM_TI1_SetConfig+0x66>
  38263. 8010536: 68fb ldr r3, [r7, #12]
  38264. 8010538: 4a20 ldr r2, [pc, #128] @ (80105bc <TIM_TI1_SetConfig+0xe4>)
  38265. 801053a: 4293 cmp r3, r2
  38266. 801053c: d101 bne.n 8010542 <TIM_TI1_SetConfig+0x6a>
  38267. 801053e: 2301 movs r3, #1
  38268. 8010540: e000 b.n 8010544 <TIM_TI1_SetConfig+0x6c>
  38269. 8010542: 2300 movs r3, #0
  38270. 8010544: 2b00 cmp r3, #0
  38271. 8010546: d008 beq.n 801055a <TIM_TI1_SetConfig+0x82>
  38272. {
  38273. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  38274. 8010548: 697b ldr r3, [r7, #20]
  38275. 801054a: f023 0303 bic.w r3, r3, #3
  38276. 801054e: 617b str r3, [r7, #20]
  38277. tmpccmr1 |= TIM_ICSelection;
  38278. 8010550: 697a ldr r2, [r7, #20]
  38279. 8010552: 687b ldr r3, [r7, #4]
  38280. 8010554: 4313 orrs r3, r2
  38281. 8010556: 617b str r3, [r7, #20]
  38282. 8010558: e003 b.n 8010562 <TIM_TI1_SetConfig+0x8a>
  38283. }
  38284. else
  38285. {
  38286. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  38287. 801055a: 697b ldr r3, [r7, #20]
  38288. 801055c: f043 0301 orr.w r3, r3, #1
  38289. 8010560: 617b str r3, [r7, #20]
  38290. }
  38291. /* Set the filter */
  38292. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  38293. 8010562: 697b ldr r3, [r7, #20]
  38294. 8010564: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38295. 8010568: 617b str r3, [r7, #20]
  38296. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  38297. 801056a: 683b ldr r3, [r7, #0]
  38298. 801056c: 011b lsls r3, r3, #4
  38299. 801056e: b2db uxtb r3, r3
  38300. 8010570: 697a ldr r2, [r7, #20]
  38301. 8010572: 4313 orrs r3, r2
  38302. 8010574: 617b str r3, [r7, #20]
  38303. /* Select the Polarity and set the CC1E Bit */
  38304. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  38305. 8010576: 693b ldr r3, [r7, #16]
  38306. 8010578: f023 030a bic.w r3, r3, #10
  38307. 801057c: 613b str r3, [r7, #16]
  38308. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  38309. 801057e: 68bb ldr r3, [r7, #8]
  38310. 8010580: f003 030a and.w r3, r3, #10
  38311. 8010584: 693a ldr r2, [r7, #16]
  38312. 8010586: 4313 orrs r3, r2
  38313. 8010588: 613b str r3, [r7, #16]
  38314. /* Write to TIMx CCMR1 and CCER registers */
  38315. TIMx->CCMR1 = tmpccmr1;
  38316. 801058a: 68fb ldr r3, [r7, #12]
  38317. 801058c: 697a ldr r2, [r7, #20]
  38318. 801058e: 619a str r2, [r3, #24]
  38319. TIMx->CCER = tmpccer;
  38320. 8010590: 68fb ldr r3, [r7, #12]
  38321. 8010592: 693a ldr r2, [r7, #16]
  38322. 8010594: 621a str r2, [r3, #32]
  38323. }
  38324. 8010596: bf00 nop
  38325. 8010598: 371c adds r7, #28
  38326. 801059a: 46bd mov sp, r7
  38327. 801059c: f85d 7b04 ldr.w r7, [sp], #4
  38328. 80105a0: 4770 bx lr
  38329. 80105a2: bf00 nop
  38330. 80105a4: 40010000 .word 0x40010000
  38331. 80105a8: 40000400 .word 0x40000400
  38332. 80105ac: 40000800 .word 0x40000800
  38333. 80105b0: 40000c00 .word 0x40000c00
  38334. 80105b4: 40010400 .word 0x40010400
  38335. 80105b8: 40001800 .word 0x40001800
  38336. 80105bc: 40014000 .word 0x40014000
  38337. 080105c0 <TIM_TI1_ConfigInputStage>:
  38338. * @param TIM_ICFilter Specifies the Input Capture Filter.
  38339. * This parameter must be a value between 0x00 and 0x0F.
  38340. * @retval None
  38341. */
  38342. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  38343. {
  38344. 80105c0: b480 push {r7}
  38345. 80105c2: b087 sub sp, #28
  38346. 80105c4: af00 add r7, sp, #0
  38347. 80105c6: 60f8 str r0, [r7, #12]
  38348. 80105c8: 60b9 str r1, [r7, #8]
  38349. 80105ca: 607a str r2, [r7, #4]
  38350. uint32_t tmpccmr1;
  38351. uint32_t tmpccer;
  38352. /* Disable the Channel 1: Reset the CC1E Bit */
  38353. tmpccer = TIMx->CCER;
  38354. 80105cc: 68fb ldr r3, [r7, #12]
  38355. 80105ce: 6a1b ldr r3, [r3, #32]
  38356. 80105d0: 617b str r3, [r7, #20]
  38357. TIMx->CCER &= ~TIM_CCER_CC1E;
  38358. 80105d2: 68fb ldr r3, [r7, #12]
  38359. 80105d4: 6a1b ldr r3, [r3, #32]
  38360. 80105d6: f023 0201 bic.w r2, r3, #1
  38361. 80105da: 68fb ldr r3, [r7, #12]
  38362. 80105dc: 621a str r2, [r3, #32]
  38363. tmpccmr1 = TIMx->CCMR1;
  38364. 80105de: 68fb ldr r3, [r7, #12]
  38365. 80105e0: 699b ldr r3, [r3, #24]
  38366. 80105e2: 613b str r3, [r7, #16]
  38367. /* Set the filter */
  38368. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  38369. 80105e4: 693b ldr r3, [r7, #16]
  38370. 80105e6: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38371. 80105ea: 613b str r3, [r7, #16]
  38372. tmpccmr1 |= (TIM_ICFilter << 4U);
  38373. 80105ec: 687b ldr r3, [r7, #4]
  38374. 80105ee: 011b lsls r3, r3, #4
  38375. 80105f0: 693a ldr r2, [r7, #16]
  38376. 80105f2: 4313 orrs r3, r2
  38377. 80105f4: 613b str r3, [r7, #16]
  38378. /* Select the Polarity and set the CC1E Bit */
  38379. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  38380. 80105f6: 697b ldr r3, [r7, #20]
  38381. 80105f8: f023 030a bic.w r3, r3, #10
  38382. 80105fc: 617b str r3, [r7, #20]
  38383. tmpccer |= TIM_ICPolarity;
  38384. 80105fe: 697a ldr r2, [r7, #20]
  38385. 8010600: 68bb ldr r3, [r7, #8]
  38386. 8010602: 4313 orrs r3, r2
  38387. 8010604: 617b str r3, [r7, #20]
  38388. /* Write to TIMx CCMR1 and CCER registers */
  38389. TIMx->CCMR1 = tmpccmr1;
  38390. 8010606: 68fb ldr r3, [r7, #12]
  38391. 8010608: 693a ldr r2, [r7, #16]
  38392. 801060a: 619a str r2, [r3, #24]
  38393. TIMx->CCER = tmpccer;
  38394. 801060c: 68fb ldr r3, [r7, #12]
  38395. 801060e: 697a ldr r2, [r7, #20]
  38396. 8010610: 621a str r2, [r3, #32]
  38397. }
  38398. 8010612: bf00 nop
  38399. 8010614: 371c adds r7, #28
  38400. 8010616: 46bd mov sp, r7
  38401. 8010618: f85d 7b04 ldr.w r7, [sp], #4
  38402. 801061c: 4770 bx lr
  38403. 0801061e <TIM_TI2_SetConfig>:
  38404. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  38405. * protected against un-initialized filter and polarity values.
  38406. */
  38407. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38408. uint32_t TIM_ICFilter)
  38409. {
  38410. 801061e: b480 push {r7}
  38411. 8010620: b087 sub sp, #28
  38412. 8010622: af00 add r7, sp, #0
  38413. 8010624: 60f8 str r0, [r7, #12]
  38414. 8010626: 60b9 str r1, [r7, #8]
  38415. 8010628: 607a str r2, [r7, #4]
  38416. 801062a: 603b str r3, [r7, #0]
  38417. uint32_t tmpccmr1;
  38418. uint32_t tmpccer;
  38419. /* Disable the Channel 2: Reset the CC2E Bit */
  38420. tmpccer = TIMx->CCER;
  38421. 801062c: 68fb ldr r3, [r7, #12]
  38422. 801062e: 6a1b ldr r3, [r3, #32]
  38423. 8010630: 617b str r3, [r7, #20]
  38424. TIMx->CCER &= ~TIM_CCER_CC2E;
  38425. 8010632: 68fb ldr r3, [r7, #12]
  38426. 8010634: 6a1b ldr r3, [r3, #32]
  38427. 8010636: f023 0210 bic.w r2, r3, #16
  38428. 801063a: 68fb ldr r3, [r7, #12]
  38429. 801063c: 621a str r2, [r3, #32]
  38430. tmpccmr1 = TIMx->CCMR1;
  38431. 801063e: 68fb ldr r3, [r7, #12]
  38432. 8010640: 699b ldr r3, [r3, #24]
  38433. 8010642: 613b str r3, [r7, #16]
  38434. /* Select the Input */
  38435. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  38436. 8010644: 693b ldr r3, [r7, #16]
  38437. 8010646: f423 7340 bic.w r3, r3, #768 @ 0x300
  38438. 801064a: 613b str r3, [r7, #16]
  38439. tmpccmr1 |= (TIM_ICSelection << 8U);
  38440. 801064c: 687b ldr r3, [r7, #4]
  38441. 801064e: 021b lsls r3, r3, #8
  38442. 8010650: 693a ldr r2, [r7, #16]
  38443. 8010652: 4313 orrs r3, r2
  38444. 8010654: 613b str r3, [r7, #16]
  38445. /* Set the filter */
  38446. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  38447. 8010656: 693b ldr r3, [r7, #16]
  38448. 8010658: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38449. 801065c: 613b str r3, [r7, #16]
  38450. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  38451. 801065e: 683b ldr r3, [r7, #0]
  38452. 8010660: 031b lsls r3, r3, #12
  38453. 8010662: b29b uxth r3, r3
  38454. 8010664: 693a ldr r2, [r7, #16]
  38455. 8010666: 4313 orrs r3, r2
  38456. 8010668: 613b str r3, [r7, #16]
  38457. /* Select the Polarity and set the CC2E Bit */
  38458. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  38459. 801066a: 697b ldr r3, [r7, #20]
  38460. 801066c: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  38461. 8010670: 617b str r3, [r7, #20]
  38462. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  38463. 8010672: 68bb ldr r3, [r7, #8]
  38464. 8010674: 011b lsls r3, r3, #4
  38465. 8010676: f003 03a0 and.w r3, r3, #160 @ 0xa0
  38466. 801067a: 697a ldr r2, [r7, #20]
  38467. 801067c: 4313 orrs r3, r2
  38468. 801067e: 617b str r3, [r7, #20]
  38469. /* Write to TIMx CCMR1 and CCER registers */
  38470. TIMx->CCMR1 = tmpccmr1 ;
  38471. 8010680: 68fb ldr r3, [r7, #12]
  38472. 8010682: 693a ldr r2, [r7, #16]
  38473. 8010684: 619a str r2, [r3, #24]
  38474. TIMx->CCER = tmpccer;
  38475. 8010686: 68fb ldr r3, [r7, #12]
  38476. 8010688: 697a ldr r2, [r7, #20]
  38477. 801068a: 621a str r2, [r3, #32]
  38478. }
  38479. 801068c: bf00 nop
  38480. 801068e: 371c adds r7, #28
  38481. 8010690: 46bd mov sp, r7
  38482. 8010692: f85d 7b04 ldr.w r7, [sp], #4
  38483. 8010696: 4770 bx lr
  38484. 08010698 <TIM_TI2_ConfigInputStage>:
  38485. * @param TIM_ICFilter Specifies the Input Capture Filter.
  38486. * This parameter must be a value between 0x00 and 0x0F.
  38487. * @retval None
  38488. */
  38489. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  38490. {
  38491. 8010698: b480 push {r7}
  38492. 801069a: b087 sub sp, #28
  38493. 801069c: af00 add r7, sp, #0
  38494. 801069e: 60f8 str r0, [r7, #12]
  38495. 80106a0: 60b9 str r1, [r7, #8]
  38496. 80106a2: 607a str r2, [r7, #4]
  38497. uint32_t tmpccmr1;
  38498. uint32_t tmpccer;
  38499. /* Disable the Channel 2: Reset the CC2E Bit */
  38500. tmpccer = TIMx->CCER;
  38501. 80106a4: 68fb ldr r3, [r7, #12]
  38502. 80106a6: 6a1b ldr r3, [r3, #32]
  38503. 80106a8: 617b str r3, [r7, #20]
  38504. TIMx->CCER &= ~TIM_CCER_CC2E;
  38505. 80106aa: 68fb ldr r3, [r7, #12]
  38506. 80106ac: 6a1b ldr r3, [r3, #32]
  38507. 80106ae: f023 0210 bic.w r2, r3, #16
  38508. 80106b2: 68fb ldr r3, [r7, #12]
  38509. 80106b4: 621a str r2, [r3, #32]
  38510. tmpccmr1 = TIMx->CCMR1;
  38511. 80106b6: 68fb ldr r3, [r7, #12]
  38512. 80106b8: 699b ldr r3, [r3, #24]
  38513. 80106ba: 613b str r3, [r7, #16]
  38514. /* Set the filter */
  38515. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  38516. 80106bc: 693b ldr r3, [r7, #16]
  38517. 80106be: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38518. 80106c2: 613b str r3, [r7, #16]
  38519. tmpccmr1 |= (TIM_ICFilter << 12U);
  38520. 80106c4: 687b ldr r3, [r7, #4]
  38521. 80106c6: 031b lsls r3, r3, #12
  38522. 80106c8: 693a ldr r2, [r7, #16]
  38523. 80106ca: 4313 orrs r3, r2
  38524. 80106cc: 613b str r3, [r7, #16]
  38525. /* Select the Polarity and set the CC2E Bit */
  38526. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  38527. 80106ce: 697b ldr r3, [r7, #20]
  38528. 80106d0: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  38529. 80106d4: 617b str r3, [r7, #20]
  38530. tmpccer |= (TIM_ICPolarity << 4U);
  38531. 80106d6: 68bb ldr r3, [r7, #8]
  38532. 80106d8: 011b lsls r3, r3, #4
  38533. 80106da: 697a ldr r2, [r7, #20]
  38534. 80106dc: 4313 orrs r3, r2
  38535. 80106de: 617b str r3, [r7, #20]
  38536. /* Write to TIMx CCMR1 and CCER registers */
  38537. TIMx->CCMR1 = tmpccmr1 ;
  38538. 80106e0: 68fb ldr r3, [r7, #12]
  38539. 80106e2: 693a ldr r2, [r7, #16]
  38540. 80106e4: 619a str r2, [r3, #24]
  38541. TIMx->CCER = tmpccer;
  38542. 80106e6: 68fb ldr r3, [r7, #12]
  38543. 80106e8: 697a ldr r2, [r7, #20]
  38544. 80106ea: 621a str r2, [r3, #32]
  38545. }
  38546. 80106ec: bf00 nop
  38547. 80106ee: 371c adds r7, #28
  38548. 80106f0: 46bd mov sp, r7
  38549. 80106f2: f85d 7b04 ldr.w r7, [sp], #4
  38550. 80106f6: 4770 bx lr
  38551. 080106f8 <TIM_TI3_SetConfig>:
  38552. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  38553. * protected against un-initialized filter and polarity values.
  38554. */
  38555. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38556. uint32_t TIM_ICFilter)
  38557. {
  38558. 80106f8: b480 push {r7}
  38559. 80106fa: b087 sub sp, #28
  38560. 80106fc: af00 add r7, sp, #0
  38561. 80106fe: 60f8 str r0, [r7, #12]
  38562. 8010700: 60b9 str r1, [r7, #8]
  38563. 8010702: 607a str r2, [r7, #4]
  38564. 8010704: 603b str r3, [r7, #0]
  38565. uint32_t tmpccmr2;
  38566. uint32_t tmpccer;
  38567. /* Disable the Channel 3: Reset the CC3E Bit */
  38568. tmpccer = TIMx->CCER;
  38569. 8010706: 68fb ldr r3, [r7, #12]
  38570. 8010708: 6a1b ldr r3, [r3, #32]
  38571. 801070a: 617b str r3, [r7, #20]
  38572. TIMx->CCER &= ~TIM_CCER_CC3E;
  38573. 801070c: 68fb ldr r3, [r7, #12]
  38574. 801070e: 6a1b ldr r3, [r3, #32]
  38575. 8010710: f423 7280 bic.w r2, r3, #256 @ 0x100
  38576. 8010714: 68fb ldr r3, [r7, #12]
  38577. 8010716: 621a str r2, [r3, #32]
  38578. tmpccmr2 = TIMx->CCMR2;
  38579. 8010718: 68fb ldr r3, [r7, #12]
  38580. 801071a: 69db ldr r3, [r3, #28]
  38581. 801071c: 613b str r3, [r7, #16]
  38582. /* Select the Input */
  38583. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  38584. 801071e: 693b ldr r3, [r7, #16]
  38585. 8010720: f023 0303 bic.w r3, r3, #3
  38586. 8010724: 613b str r3, [r7, #16]
  38587. tmpccmr2 |= TIM_ICSelection;
  38588. 8010726: 693a ldr r2, [r7, #16]
  38589. 8010728: 687b ldr r3, [r7, #4]
  38590. 801072a: 4313 orrs r3, r2
  38591. 801072c: 613b str r3, [r7, #16]
  38592. /* Set the filter */
  38593. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  38594. 801072e: 693b ldr r3, [r7, #16]
  38595. 8010730: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38596. 8010734: 613b str r3, [r7, #16]
  38597. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  38598. 8010736: 683b ldr r3, [r7, #0]
  38599. 8010738: 011b lsls r3, r3, #4
  38600. 801073a: b2db uxtb r3, r3
  38601. 801073c: 693a ldr r2, [r7, #16]
  38602. 801073e: 4313 orrs r3, r2
  38603. 8010740: 613b str r3, [r7, #16]
  38604. /* Select the Polarity and set the CC3E Bit */
  38605. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  38606. 8010742: 697b ldr r3, [r7, #20]
  38607. 8010744: f423 6320 bic.w r3, r3, #2560 @ 0xa00
  38608. 8010748: 617b str r3, [r7, #20]
  38609. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  38610. 801074a: 68bb ldr r3, [r7, #8]
  38611. 801074c: 021b lsls r3, r3, #8
  38612. 801074e: f403 6320 and.w r3, r3, #2560 @ 0xa00
  38613. 8010752: 697a ldr r2, [r7, #20]
  38614. 8010754: 4313 orrs r3, r2
  38615. 8010756: 617b str r3, [r7, #20]
  38616. /* Write to TIMx CCMR2 and CCER registers */
  38617. TIMx->CCMR2 = tmpccmr2;
  38618. 8010758: 68fb ldr r3, [r7, #12]
  38619. 801075a: 693a ldr r2, [r7, #16]
  38620. 801075c: 61da str r2, [r3, #28]
  38621. TIMx->CCER = tmpccer;
  38622. 801075e: 68fb ldr r3, [r7, #12]
  38623. 8010760: 697a ldr r2, [r7, #20]
  38624. 8010762: 621a str r2, [r3, #32]
  38625. }
  38626. 8010764: bf00 nop
  38627. 8010766: 371c adds r7, #28
  38628. 8010768: 46bd mov sp, r7
  38629. 801076a: f85d 7b04 ldr.w r7, [sp], #4
  38630. 801076e: 4770 bx lr
  38631. 08010770 <TIM_TI4_SetConfig>:
  38632. * protected against un-initialized filter and polarity values.
  38633. * @retval None
  38634. */
  38635. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  38636. uint32_t TIM_ICFilter)
  38637. {
  38638. 8010770: b480 push {r7}
  38639. 8010772: b087 sub sp, #28
  38640. 8010774: af00 add r7, sp, #0
  38641. 8010776: 60f8 str r0, [r7, #12]
  38642. 8010778: 60b9 str r1, [r7, #8]
  38643. 801077a: 607a str r2, [r7, #4]
  38644. 801077c: 603b str r3, [r7, #0]
  38645. uint32_t tmpccmr2;
  38646. uint32_t tmpccer;
  38647. /* Disable the Channel 4: Reset the CC4E Bit */
  38648. tmpccer = TIMx->CCER;
  38649. 801077e: 68fb ldr r3, [r7, #12]
  38650. 8010780: 6a1b ldr r3, [r3, #32]
  38651. 8010782: 617b str r3, [r7, #20]
  38652. TIMx->CCER &= ~TIM_CCER_CC4E;
  38653. 8010784: 68fb ldr r3, [r7, #12]
  38654. 8010786: 6a1b ldr r3, [r3, #32]
  38655. 8010788: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38656. 801078c: 68fb ldr r3, [r7, #12]
  38657. 801078e: 621a str r2, [r3, #32]
  38658. tmpccmr2 = TIMx->CCMR2;
  38659. 8010790: 68fb ldr r3, [r7, #12]
  38660. 8010792: 69db ldr r3, [r3, #28]
  38661. 8010794: 613b str r3, [r7, #16]
  38662. /* Select the Input */
  38663. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  38664. 8010796: 693b ldr r3, [r7, #16]
  38665. 8010798: f423 7340 bic.w r3, r3, #768 @ 0x300
  38666. 801079c: 613b str r3, [r7, #16]
  38667. tmpccmr2 |= (TIM_ICSelection << 8U);
  38668. 801079e: 687b ldr r3, [r7, #4]
  38669. 80107a0: 021b lsls r3, r3, #8
  38670. 80107a2: 693a ldr r2, [r7, #16]
  38671. 80107a4: 4313 orrs r3, r2
  38672. 80107a6: 613b str r3, [r7, #16]
  38673. /* Set the filter */
  38674. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  38675. 80107a8: 693b ldr r3, [r7, #16]
  38676. 80107aa: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38677. 80107ae: 613b str r3, [r7, #16]
  38678. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  38679. 80107b0: 683b ldr r3, [r7, #0]
  38680. 80107b2: 031b lsls r3, r3, #12
  38681. 80107b4: b29b uxth r3, r3
  38682. 80107b6: 693a ldr r2, [r7, #16]
  38683. 80107b8: 4313 orrs r3, r2
  38684. 80107ba: 613b str r3, [r7, #16]
  38685. /* Select the Polarity and set the CC4E Bit */
  38686. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  38687. 80107bc: 697b ldr r3, [r7, #20]
  38688. 80107be: f423 4320 bic.w r3, r3, #40960 @ 0xa000
  38689. 80107c2: 617b str r3, [r7, #20]
  38690. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  38691. 80107c4: 68bb ldr r3, [r7, #8]
  38692. 80107c6: 031b lsls r3, r3, #12
  38693. 80107c8: f403 4320 and.w r3, r3, #40960 @ 0xa000
  38694. 80107cc: 697a ldr r2, [r7, #20]
  38695. 80107ce: 4313 orrs r3, r2
  38696. 80107d0: 617b str r3, [r7, #20]
  38697. /* Write to TIMx CCMR2 and CCER registers */
  38698. TIMx->CCMR2 = tmpccmr2;
  38699. 80107d2: 68fb ldr r3, [r7, #12]
  38700. 80107d4: 693a ldr r2, [r7, #16]
  38701. 80107d6: 61da str r2, [r3, #28]
  38702. TIMx->CCER = tmpccer ;
  38703. 80107d8: 68fb ldr r3, [r7, #12]
  38704. 80107da: 697a ldr r2, [r7, #20]
  38705. 80107dc: 621a str r2, [r3, #32]
  38706. }
  38707. 80107de: bf00 nop
  38708. 80107e0: 371c adds r7, #28
  38709. 80107e2: 46bd mov sp, r7
  38710. 80107e4: f85d 7b04 ldr.w r7, [sp], #4
  38711. 80107e8: 4770 bx lr
  38712. ...
  38713. 080107ec <TIM_ITRx_SetConfig>:
  38714. * (*) Value not defined in all devices.
  38715. *
  38716. * @retval None
  38717. */
  38718. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  38719. {
  38720. 80107ec: b480 push {r7}
  38721. 80107ee: b085 sub sp, #20
  38722. 80107f0: af00 add r7, sp, #0
  38723. 80107f2: 6078 str r0, [r7, #4]
  38724. 80107f4: 6039 str r1, [r7, #0]
  38725. uint32_t tmpsmcr;
  38726. /* Get the TIMx SMCR register value */
  38727. tmpsmcr = TIMx->SMCR;
  38728. 80107f6: 687b ldr r3, [r7, #4]
  38729. 80107f8: 689b ldr r3, [r3, #8]
  38730. 80107fa: 60fb str r3, [r7, #12]
  38731. /* Reset the TS Bits */
  38732. tmpsmcr &= ~TIM_SMCR_TS;
  38733. 80107fc: 68fa ldr r2, [r7, #12]
  38734. 80107fe: 4b09 ldr r3, [pc, #36] @ (8010824 <TIM_ITRx_SetConfig+0x38>)
  38735. 8010800: 4013 ands r3, r2
  38736. 8010802: 60fb str r3, [r7, #12]
  38737. /* Set the Input Trigger source and the slave mode*/
  38738. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  38739. 8010804: 683a ldr r2, [r7, #0]
  38740. 8010806: 68fb ldr r3, [r7, #12]
  38741. 8010808: 4313 orrs r3, r2
  38742. 801080a: f043 0307 orr.w r3, r3, #7
  38743. 801080e: 60fb str r3, [r7, #12]
  38744. /* Write to TIMx SMCR */
  38745. TIMx->SMCR = tmpsmcr;
  38746. 8010810: 687b ldr r3, [r7, #4]
  38747. 8010812: 68fa ldr r2, [r7, #12]
  38748. 8010814: 609a str r2, [r3, #8]
  38749. }
  38750. 8010816: bf00 nop
  38751. 8010818: 3714 adds r7, #20
  38752. 801081a: 46bd mov sp, r7
  38753. 801081c: f85d 7b04 ldr.w r7, [sp], #4
  38754. 8010820: 4770 bx lr
  38755. 8010822: bf00 nop
  38756. 8010824: ffcfff8f .word 0xffcfff8f
  38757. 08010828 <TIM_ETR_SetConfig>:
  38758. * This parameter must be a value between 0x00 and 0x0F
  38759. * @retval None
  38760. */
  38761. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  38762. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  38763. {
  38764. 8010828: b480 push {r7}
  38765. 801082a: b087 sub sp, #28
  38766. 801082c: af00 add r7, sp, #0
  38767. 801082e: 60f8 str r0, [r7, #12]
  38768. 8010830: 60b9 str r1, [r7, #8]
  38769. 8010832: 607a str r2, [r7, #4]
  38770. 8010834: 603b str r3, [r7, #0]
  38771. uint32_t tmpsmcr;
  38772. tmpsmcr = TIMx->SMCR;
  38773. 8010836: 68fb ldr r3, [r7, #12]
  38774. 8010838: 689b ldr r3, [r3, #8]
  38775. 801083a: 617b str r3, [r7, #20]
  38776. /* Reset the ETR Bits */
  38777. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  38778. 801083c: 697b ldr r3, [r7, #20]
  38779. 801083e: f423 437f bic.w r3, r3, #65280 @ 0xff00
  38780. 8010842: 617b str r3, [r7, #20]
  38781. /* Set the Prescaler, the Filter value and the Polarity */
  38782. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  38783. 8010844: 683b ldr r3, [r7, #0]
  38784. 8010846: 021a lsls r2, r3, #8
  38785. 8010848: 687b ldr r3, [r7, #4]
  38786. 801084a: 431a orrs r2, r3
  38787. 801084c: 68bb ldr r3, [r7, #8]
  38788. 801084e: 4313 orrs r3, r2
  38789. 8010850: 697a ldr r2, [r7, #20]
  38790. 8010852: 4313 orrs r3, r2
  38791. 8010854: 617b str r3, [r7, #20]
  38792. /* Write to TIMx SMCR */
  38793. TIMx->SMCR = tmpsmcr;
  38794. 8010856: 68fb ldr r3, [r7, #12]
  38795. 8010858: 697a ldr r2, [r7, #20]
  38796. 801085a: 609a str r2, [r3, #8]
  38797. }
  38798. 801085c: bf00 nop
  38799. 801085e: 371c adds r7, #28
  38800. 8010860: 46bd mov sp, r7
  38801. 8010862: f85d 7b04 ldr.w r7, [sp], #4
  38802. 8010866: 4770 bx lr
  38803. 08010868 <TIM_CCxChannelCmd>:
  38804. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  38805. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  38806. * @retval None
  38807. */
  38808. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  38809. {
  38810. 8010868: b480 push {r7}
  38811. 801086a: b087 sub sp, #28
  38812. 801086c: af00 add r7, sp, #0
  38813. 801086e: 60f8 str r0, [r7, #12]
  38814. 8010870: 60b9 str r1, [r7, #8]
  38815. 8010872: 607a str r2, [r7, #4]
  38816. /* Check the parameters */
  38817. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  38818. assert_param(IS_TIM_CHANNELS(Channel));
  38819. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  38820. 8010874: 68bb ldr r3, [r7, #8]
  38821. 8010876: f003 031f and.w r3, r3, #31
  38822. 801087a: 2201 movs r2, #1
  38823. 801087c: fa02 f303 lsl.w r3, r2, r3
  38824. 8010880: 617b str r3, [r7, #20]
  38825. /* Reset the CCxE Bit */
  38826. TIMx->CCER &= ~tmp;
  38827. 8010882: 68fb ldr r3, [r7, #12]
  38828. 8010884: 6a1a ldr r2, [r3, #32]
  38829. 8010886: 697b ldr r3, [r7, #20]
  38830. 8010888: 43db mvns r3, r3
  38831. 801088a: 401a ands r2, r3
  38832. 801088c: 68fb ldr r3, [r7, #12]
  38833. 801088e: 621a str r2, [r3, #32]
  38834. /* Set or reset the CCxE Bit */
  38835. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  38836. 8010890: 68fb ldr r3, [r7, #12]
  38837. 8010892: 6a1a ldr r2, [r3, #32]
  38838. 8010894: 68bb ldr r3, [r7, #8]
  38839. 8010896: f003 031f and.w r3, r3, #31
  38840. 801089a: 6879 ldr r1, [r7, #4]
  38841. 801089c: fa01 f303 lsl.w r3, r1, r3
  38842. 80108a0: 431a orrs r2, r3
  38843. 80108a2: 68fb ldr r3, [r7, #12]
  38844. 80108a4: 621a str r2, [r3, #32]
  38845. }
  38846. 80108a6: bf00 nop
  38847. 80108a8: 371c adds r7, #28
  38848. 80108aa: 46bd mov sp, r7
  38849. 80108ac: f85d 7b04 ldr.w r7, [sp], #4
  38850. 80108b0: 4770 bx lr
  38851. ...
  38852. 080108b4 <HAL_TIMEx_MasterConfigSynchronization>:
  38853. * mode.
  38854. * @retval HAL status
  38855. */
  38856. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  38857. const TIM_MasterConfigTypeDef *sMasterConfig)
  38858. {
  38859. 80108b4: b480 push {r7}
  38860. 80108b6: b085 sub sp, #20
  38861. 80108b8: af00 add r7, sp, #0
  38862. 80108ba: 6078 str r0, [r7, #4]
  38863. 80108bc: 6039 str r1, [r7, #0]
  38864. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  38865. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  38866. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  38867. /* Check input state */
  38868. __HAL_LOCK(htim);
  38869. 80108be: 687b ldr r3, [r7, #4]
  38870. 80108c0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  38871. 80108c4: 2b01 cmp r3, #1
  38872. 80108c6: d101 bne.n 80108cc <HAL_TIMEx_MasterConfigSynchronization+0x18>
  38873. 80108c8: 2302 movs r3, #2
  38874. 80108ca: e06d b.n 80109a8 <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  38875. 80108cc: 687b ldr r3, [r7, #4]
  38876. 80108ce: 2201 movs r2, #1
  38877. 80108d0: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38878. /* Change the handler state */
  38879. htim->State = HAL_TIM_STATE_BUSY;
  38880. 80108d4: 687b ldr r3, [r7, #4]
  38881. 80108d6: 2202 movs r2, #2
  38882. 80108d8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  38883. /* Get the TIMx CR2 register value */
  38884. tmpcr2 = htim->Instance->CR2;
  38885. 80108dc: 687b ldr r3, [r7, #4]
  38886. 80108de: 681b ldr r3, [r3, #0]
  38887. 80108e0: 685b ldr r3, [r3, #4]
  38888. 80108e2: 60fb str r3, [r7, #12]
  38889. /* Get the TIMx SMCR register value */
  38890. tmpsmcr = htim->Instance->SMCR;
  38891. 80108e4: 687b ldr r3, [r7, #4]
  38892. 80108e6: 681b ldr r3, [r3, #0]
  38893. 80108e8: 689b ldr r3, [r3, #8]
  38894. 80108ea: 60bb str r3, [r7, #8]
  38895. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  38896. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  38897. 80108ec: 687b ldr r3, [r7, #4]
  38898. 80108ee: 681b ldr r3, [r3, #0]
  38899. 80108f0: 4a30 ldr r2, [pc, #192] @ (80109b4 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38900. 80108f2: 4293 cmp r3, r2
  38901. 80108f4: d004 beq.n 8010900 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  38902. 80108f6: 687b ldr r3, [r7, #4]
  38903. 80108f8: 681b ldr r3, [r3, #0]
  38904. 80108fa: 4a2f ldr r2, [pc, #188] @ (80109b8 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38905. 80108fc: 4293 cmp r3, r2
  38906. 80108fe: d108 bne.n 8010912 <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  38907. {
  38908. /* Check the parameters */
  38909. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  38910. /* Clear the MMS2 bits */
  38911. tmpcr2 &= ~TIM_CR2_MMS2;
  38912. 8010900: 68fb ldr r3, [r7, #12]
  38913. 8010902: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  38914. 8010906: 60fb str r3, [r7, #12]
  38915. /* Select the TRGO2 source*/
  38916. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  38917. 8010908: 683b ldr r3, [r7, #0]
  38918. 801090a: 685b ldr r3, [r3, #4]
  38919. 801090c: 68fa ldr r2, [r7, #12]
  38920. 801090e: 4313 orrs r3, r2
  38921. 8010910: 60fb str r3, [r7, #12]
  38922. }
  38923. /* Reset the MMS Bits */
  38924. tmpcr2 &= ~TIM_CR2_MMS;
  38925. 8010912: 68fb ldr r3, [r7, #12]
  38926. 8010914: f023 0370 bic.w r3, r3, #112 @ 0x70
  38927. 8010918: 60fb str r3, [r7, #12]
  38928. /* Select the TRGO source */
  38929. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  38930. 801091a: 683b ldr r3, [r7, #0]
  38931. 801091c: 681b ldr r3, [r3, #0]
  38932. 801091e: 68fa ldr r2, [r7, #12]
  38933. 8010920: 4313 orrs r3, r2
  38934. 8010922: 60fb str r3, [r7, #12]
  38935. /* Update TIMx CR2 */
  38936. htim->Instance->CR2 = tmpcr2;
  38937. 8010924: 687b ldr r3, [r7, #4]
  38938. 8010926: 681b ldr r3, [r3, #0]
  38939. 8010928: 68fa ldr r2, [r7, #12]
  38940. 801092a: 605a str r2, [r3, #4]
  38941. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  38942. 801092c: 687b ldr r3, [r7, #4]
  38943. 801092e: 681b ldr r3, [r3, #0]
  38944. 8010930: 4a20 ldr r2, [pc, #128] @ (80109b4 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38945. 8010932: 4293 cmp r3, r2
  38946. 8010934: d022 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38947. 8010936: 687b ldr r3, [r7, #4]
  38948. 8010938: 681b ldr r3, [r3, #0]
  38949. 801093a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38950. 801093e: d01d beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38951. 8010940: 687b ldr r3, [r7, #4]
  38952. 8010942: 681b ldr r3, [r3, #0]
  38953. 8010944: 4a1d ldr r2, [pc, #116] @ (80109bc <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  38954. 8010946: 4293 cmp r3, r2
  38955. 8010948: d018 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38956. 801094a: 687b ldr r3, [r7, #4]
  38957. 801094c: 681b ldr r3, [r3, #0]
  38958. 801094e: 4a1c ldr r2, [pc, #112] @ (80109c0 <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  38959. 8010950: 4293 cmp r3, r2
  38960. 8010952: d013 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38961. 8010954: 687b ldr r3, [r7, #4]
  38962. 8010956: 681b ldr r3, [r3, #0]
  38963. 8010958: 4a1a ldr r2, [pc, #104] @ (80109c4 <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  38964. 801095a: 4293 cmp r3, r2
  38965. 801095c: d00e beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38966. 801095e: 687b ldr r3, [r7, #4]
  38967. 8010960: 681b ldr r3, [r3, #0]
  38968. 8010962: 4a15 ldr r2, [pc, #84] @ (80109b8 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38969. 8010964: 4293 cmp r3, r2
  38970. 8010966: d009 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38971. 8010968: 687b ldr r3, [r7, #4]
  38972. 801096a: 681b ldr r3, [r3, #0]
  38973. 801096c: 4a16 ldr r2, [pc, #88] @ (80109c8 <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  38974. 801096e: 4293 cmp r3, r2
  38975. 8010970: d004 beq.n 801097c <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38976. 8010972: 687b ldr r3, [r7, #4]
  38977. 8010974: 681b ldr r3, [r3, #0]
  38978. 8010976: 4a15 ldr r2, [pc, #84] @ (80109cc <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  38979. 8010978: 4293 cmp r3, r2
  38980. 801097a: d10c bne.n 8010996 <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  38981. {
  38982. /* Reset the MSM Bit */
  38983. tmpsmcr &= ~TIM_SMCR_MSM;
  38984. 801097c: 68bb ldr r3, [r7, #8]
  38985. 801097e: f023 0380 bic.w r3, r3, #128 @ 0x80
  38986. 8010982: 60bb str r3, [r7, #8]
  38987. /* Set master mode */
  38988. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  38989. 8010984: 683b ldr r3, [r7, #0]
  38990. 8010986: 689b ldr r3, [r3, #8]
  38991. 8010988: 68ba ldr r2, [r7, #8]
  38992. 801098a: 4313 orrs r3, r2
  38993. 801098c: 60bb str r3, [r7, #8]
  38994. /* Update TIMx SMCR */
  38995. htim->Instance->SMCR = tmpsmcr;
  38996. 801098e: 687b ldr r3, [r7, #4]
  38997. 8010990: 681b ldr r3, [r3, #0]
  38998. 8010992: 68ba ldr r2, [r7, #8]
  38999. 8010994: 609a str r2, [r3, #8]
  39000. }
  39001. /* Change the htim state */
  39002. htim->State = HAL_TIM_STATE_READY;
  39003. 8010996: 687b ldr r3, [r7, #4]
  39004. 8010998: 2201 movs r2, #1
  39005. 801099a: f883 203d strb.w r2, [r3, #61] @ 0x3d
  39006. __HAL_UNLOCK(htim);
  39007. 801099e: 687b ldr r3, [r7, #4]
  39008. 80109a0: 2200 movs r2, #0
  39009. 80109a2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39010. return HAL_OK;
  39011. 80109a6: 2300 movs r3, #0
  39012. }
  39013. 80109a8: 4618 mov r0, r3
  39014. 80109aa: 3714 adds r7, #20
  39015. 80109ac: 46bd mov sp, r7
  39016. 80109ae: f85d 7b04 ldr.w r7, [sp], #4
  39017. 80109b2: 4770 bx lr
  39018. 80109b4: 40010000 .word 0x40010000
  39019. 80109b8: 40010400 .word 0x40010400
  39020. 80109bc: 40000400 .word 0x40000400
  39021. 80109c0: 40000800 .word 0x40000800
  39022. 80109c4: 40000c00 .word 0x40000c00
  39023. 80109c8: 40001800 .word 0x40001800
  39024. 80109cc: 40014000 .word 0x40014000
  39025. 080109d0 <HAL_TIMEx_ConfigBreakDeadTime>:
  39026. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  39027. * @retval HAL status
  39028. */
  39029. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  39030. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  39031. {
  39032. 80109d0: b480 push {r7}
  39033. 80109d2: b085 sub sp, #20
  39034. 80109d4: af00 add r7, sp, #0
  39035. 80109d6: 6078 str r0, [r7, #4]
  39036. 80109d8: 6039 str r1, [r7, #0]
  39037. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  39038. uint32_t tmpbdtr = 0U;
  39039. 80109da: 2300 movs r3, #0
  39040. 80109dc: 60fb str r3, [r7, #12]
  39041. #if defined(TIM_BDTR_BKBID)
  39042. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  39043. #endif /* TIM_BDTR_BKBID */
  39044. /* Check input state */
  39045. __HAL_LOCK(htim);
  39046. 80109de: 687b ldr r3, [r7, #4]
  39047. 80109e0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  39048. 80109e4: 2b01 cmp r3, #1
  39049. 80109e6: d101 bne.n 80109ec <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  39050. 80109e8: 2302 movs r3, #2
  39051. 80109ea: e065 b.n 8010ab8 <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  39052. 80109ec: 687b ldr r3, [r7, #4]
  39053. 80109ee: 2201 movs r2, #1
  39054. 80109f0: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39055. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  39056. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  39057. /* Set the BDTR bits */
  39058. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  39059. 80109f4: 68fb ldr r3, [r7, #12]
  39060. 80109f6: f023 02ff bic.w r2, r3, #255 @ 0xff
  39061. 80109fa: 683b ldr r3, [r7, #0]
  39062. 80109fc: 68db ldr r3, [r3, #12]
  39063. 80109fe: 4313 orrs r3, r2
  39064. 8010a00: 60fb str r3, [r7, #12]
  39065. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  39066. 8010a02: 68fb ldr r3, [r7, #12]
  39067. 8010a04: f423 7240 bic.w r2, r3, #768 @ 0x300
  39068. 8010a08: 683b ldr r3, [r7, #0]
  39069. 8010a0a: 689b ldr r3, [r3, #8]
  39070. 8010a0c: 4313 orrs r3, r2
  39071. 8010a0e: 60fb str r3, [r7, #12]
  39072. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  39073. 8010a10: 68fb ldr r3, [r7, #12]
  39074. 8010a12: f423 6280 bic.w r2, r3, #1024 @ 0x400
  39075. 8010a16: 683b ldr r3, [r7, #0]
  39076. 8010a18: 685b ldr r3, [r3, #4]
  39077. 8010a1a: 4313 orrs r3, r2
  39078. 8010a1c: 60fb str r3, [r7, #12]
  39079. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  39080. 8010a1e: 68fb ldr r3, [r7, #12]
  39081. 8010a20: f423 6200 bic.w r2, r3, #2048 @ 0x800
  39082. 8010a24: 683b ldr r3, [r7, #0]
  39083. 8010a26: 681b ldr r3, [r3, #0]
  39084. 8010a28: 4313 orrs r3, r2
  39085. 8010a2a: 60fb str r3, [r7, #12]
  39086. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  39087. 8010a2c: 68fb ldr r3, [r7, #12]
  39088. 8010a2e: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  39089. 8010a32: 683b ldr r3, [r7, #0]
  39090. 8010a34: 691b ldr r3, [r3, #16]
  39091. 8010a36: 4313 orrs r3, r2
  39092. 8010a38: 60fb str r3, [r7, #12]
  39093. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  39094. 8010a3a: 68fb ldr r3, [r7, #12]
  39095. 8010a3c: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  39096. 8010a40: 683b ldr r3, [r7, #0]
  39097. 8010a42: 695b ldr r3, [r3, #20]
  39098. 8010a44: 4313 orrs r3, r2
  39099. 8010a46: 60fb str r3, [r7, #12]
  39100. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  39101. 8010a48: 68fb ldr r3, [r7, #12]
  39102. 8010a4a: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  39103. 8010a4e: 683b ldr r3, [r7, #0]
  39104. 8010a50: 6a9b ldr r3, [r3, #40] @ 0x28
  39105. 8010a52: 4313 orrs r3, r2
  39106. 8010a54: 60fb str r3, [r7, #12]
  39107. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  39108. 8010a56: 68fb ldr r3, [r7, #12]
  39109. 8010a58: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  39110. 8010a5c: 683b ldr r3, [r7, #0]
  39111. 8010a5e: 699b ldr r3, [r3, #24]
  39112. 8010a60: 041b lsls r3, r3, #16
  39113. 8010a62: 4313 orrs r3, r2
  39114. 8010a64: 60fb str r3, [r7, #12]
  39115. #if defined(TIM_BDTR_BKBID)
  39116. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  39117. #endif /* TIM_BDTR_BKBID */
  39118. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  39119. 8010a66: 687b ldr r3, [r7, #4]
  39120. 8010a68: 681b ldr r3, [r3, #0]
  39121. 8010a6a: 4a16 ldr r2, [pc, #88] @ (8010ac4 <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  39122. 8010a6c: 4293 cmp r3, r2
  39123. 8010a6e: d004 beq.n 8010a7a <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  39124. 8010a70: 687b ldr r3, [r7, #4]
  39125. 8010a72: 681b ldr r3, [r3, #0]
  39126. 8010a74: 4a14 ldr r2, [pc, #80] @ (8010ac8 <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  39127. 8010a76: 4293 cmp r3, r2
  39128. 8010a78: d115 bne.n 8010aa6 <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  39129. #if defined(TIM_BDTR_BKBID)
  39130. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  39131. #endif /* TIM_BDTR_BKBID */
  39132. /* Set the BREAK2 input related BDTR bits */
  39133. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  39134. 8010a7a: 68fb ldr r3, [r7, #12]
  39135. 8010a7c: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  39136. 8010a80: 683b ldr r3, [r7, #0]
  39137. 8010a82: 6a5b ldr r3, [r3, #36] @ 0x24
  39138. 8010a84: 051b lsls r3, r3, #20
  39139. 8010a86: 4313 orrs r3, r2
  39140. 8010a88: 60fb str r3, [r7, #12]
  39141. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  39142. 8010a8a: 68fb ldr r3, [r7, #12]
  39143. 8010a8c: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  39144. 8010a90: 683b ldr r3, [r7, #0]
  39145. 8010a92: 69db ldr r3, [r3, #28]
  39146. 8010a94: 4313 orrs r3, r2
  39147. 8010a96: 60fb str r3, [r7, #12]
  39148. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  39149. 8010a98: 68fb ldr r3, [r7, #12]
  39150. 8010a9a: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  39151. 8010a9e: 683b ldr r3, [r7, #0]
  39152. 8010aa0: 6a1b ldr r3, [r3, #32]
  39153. 8010aa2: 4313 orrs r3, r2
  39154. 8010aa4: 60fb str r3, [r7, #12]
  39155. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  39156. #endif /* TIM_BDTR_BKBID */
  39157. }
  39158. /* Set TIMx_BDTR */
  39159. htim->Instance->BDTR = tmpbdtr;
  39160. 8010aa6: 687b ldr r3, [r7, #4]
  39161. 8010aa8: 681b ldr r3, [r3, #0]
  39162. 8010aaa: 68fa ldr r2, [r7, #12]
  39163. 8010aac: 645a str r2, [r3, #68] @ 0x44
  39164. __HAL_UNLOCK(htim);
  39165. 8010aae: 687b ldr r3, [r7, #4]
  39166. 8010ab0: 2200 movs r2, #0
  39167. 8010ab2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39168. return HAL_OK;
  39169. 8010ab6: 2300 movs r3, #0
  39170. }
  39171. 8010ab8: 4618 mov r0, r3
  39172. 8010aba: 3714 adds r7, #20
  39173. 8010abc: 46bd mov sp, r7
  39174. 8010abe: f85d 7b04 ldr.w r7, [sp], #4
  39175. 8010ac2: 4770 bx lr
  39176. 8010ac4: 40010000 .word 0x40010000
  39177. 8010ac8: 40010400 .word 0x40010400
  39178. 08010acc <HAL_TIMEx_CommutCallback>:
  39179. * @brief Commutation callback in non-blocking mode
  39180. * @param htim TIM handle
  39181. * @retval None
  39182. */
  39183. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  39184. {
  39185. 8010acc: b480 push {r7}
  39186. 8010ace: b083 sub sp, #12
  39187. 8010ad0: af00 add r7, sp, #0
  39188. 8010ad2: 6078 str r0, [r7, #4]
  39189. UNUSED(htim);
  39190. /* NOTE : This function should not be modified, when the callback is needed,
  39191. the HAL_TIMEx_CommutCallback could be implemented in the user file
  39192. */
  39193. }
  39194. 8010ad4: bf00 nop
  39195. 8010ad6: 370c adds r7, #12
  39196. 8010ad8: 46bd mov sp, r7
  39197. 8010ada: f85d 7b04 ldr.w r7, [sp], #4
  39198. 8010ade: 4770 bx lr
  39199. 08010ae0 <HAL_TIMEx_BreakCallback>:
  39200. * @brief Break detection callback in non-blocking mode
  39201. * @param htim TIM handle
  39202. * @retval None
  39203. */
  39204. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  39205. {
  39206. 8010ae0: b480 push {r7}
  39207. 8010ae2: b083 sub sp, #12
  39208. 8010ae4: af00 add r7, sp, #0
  39209. 8010ae6: 6078 str r0, [r7, #4]
  39210. UNUSED(htim);
  39211. /* NOTE : This function should not be modified, when the callback is needed,
  39212. the HAL_TIMEx_BreakCallback could be implemented in the user file
  39213. */
  39214. }
  39215. 8010ae8: bf00 nop
  39216. 8010aea: 370c adds r7, #12
  39217. 8010aec: 46bd mov sp, r7
  39218. 8010aee: f85d 7b04 ldr.w r7, [sp], #4
  39219. 8010af2: 4770 bx lr
  39220. 08010af4 <HAL_TIMEx_Break2Callback>:
  39221. * @brief Break2 detection callback in non blocking mode
  39222. * @param htim: TIM handle
  39223. * @retval None
  39224. */
  39225. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  39226. {
  39227. 8010af4: b480 push {r7}
  39228. 8010af6: b083 sub sp, #12
  39229. 8010af8: af00 add r7, sp, #0
  39230. 8010afa: 6078 str r0, [r7, #4]
  39231. UNUSED(htim);
  39232. /* NOTE : This function Should not be modified, when the callback is needed,
  39233. the HAL_TIMEx_Break2Callback could be implemented in the user file
  39234. */
  39235. }
  39236. 8010afc: bf00 nop
  39237. 8010afe: 370c adds r7, #12
  39238. 8010b00: 46bd mov sp, r7
  39239. 8010b02: f85d 7b04 ldr.w r7, [sp], #4
  39240. 8010b06: 4770 bx lr
  39241. 08010b08 <HAL_UART_Init>:
  39242. * parameters in the UART_InitTypeDef and initialize the associated handle.
  39243. * @param huart UART handle.
  39244. * @retval HAL status
  39245. */
  39246. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  39247. {
  39248. 8010b08: b580 push {r7, lr}
  39249. 8010b0a: b082 sub sp, #8
  39250. 8010b0c: af00 add r7, sp, #0
  39251. 8010b0e: 6078 str r0, [r7, #4]
  39252. /* Check the UART handle allocation */
  39253. if (huart == NULL)
  39254. 8010b10: 687b ldr r3, [r7, #4]
  39255. 8010b12: 2b00 cmp r3, #0
  39256. 8010b14: d101 bne.n 8010b1a <HAL_UART_Init+0x12>
  39257. {
  39258. return HAL_ERROR;
  39259. 8010b16: 2301 movs r3, #1
  39260. 8010b18: e042 b.n 8010ba0 <HAL_UART_Init+0x98>
  39261. {
  39262. /* Check the parameters */
  39263. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  39264. }
  39265. if (huart->gState == HAL_UART_STATE_RESET)
  39266. 8010b1a: 687b ldr r3, [r7, #4]
  39267. 8010b1c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39268. 8010b20: 2b00 cmp r3, #0
  39269. 8010b22: d106 bne.n 8010b32 <HAL_UART_Init+0x2a>
  39270. {
  39271. /* Allocate lock resource and initialize it */
  39272. huart->Lock = HAL_UNLOCKED;
  39273. 8010b24: 687b ldr r3, [r7, #4]
  39274. 8010b26: 2200 movs r2, #0
  39275. 8010b28: f883 2084 strb.w r2, [r3, #132] @ 0x84
  39276. /* Init the low level hardware */
  39277. huart->MspInitCallback(huart);
  39278. #else
  39279. /* Init the low level hardware : GPIO, CLOCK */
  39280. HAL_UART_MspInit(huart);
  39281. 8010b2c: 6878 ldr r0, [r7, #4]
  39282. 8010b2e: f7f3 f90d bl 8003d4c <HAL_UART_MspInit>
  39283. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  39284. }
  39285. huart->gState = HAL_UART_STATE_BUSY;
  39286. 8010b32: 687b ldr r3, [r7, #4]
  39287. 8010b34: 2224 movs r2, #36 @ 0x24
  39288. 8010b36: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39289. __HAL_UART_DISABLE(huart);
  39290. 8010b3a: 687b ldr r3, [r7, #4]
  39291. 8010b3c: 681b ldr r3, [r3, #0]
  39292. 8010b3e: 681a ldr r2, [r3, #0]
  39293. 8010b40: 687b ldr r3, [r7, #4]
  39294. 8010b42: 681b ldr r3, [r3, #0]
  39295. 8010b44: f022 0201 bic.w r2, r2, #1
  39296. 8010b48: 601a str r2, [r3, #0]
  39297. /* Perform advanced settings configuration */
  39298. /* For some items, configuration requires to be done prior TE and RE bits are set */
  39299. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  39300. 8010b4a: 687b ldr r3, [r7, #4]
  39301. 8010b4c: 6a9b ldr r3, [r3, #40] @ 0x28
  39302. 8010b4e: 2b00 cmp r3, #0
  39303. 8010b50: d002 beq.n 8010b58 <HAL_UART_Init+0x50>
  39304. {
  39305. UART_AdvFeatureConfig(huart);
  39306. 8010b52: 6878 ldr r0, [r7, #4]
  39307. 8010b54: f001 fa76 bl 8012044 <UART_AdvFeatureConfig>
  39308. }
  39309. /* Set the UART Communication parameters */
  39310. if (UART_SetConfig(huart) == HAL_ERROR)
  39311. 8010b58: 6878 ldr r0, [r7, #4]
  39312. 8010b5a: f000 fd0b bl 8011574 <UART_SetConfig>
  39313. 8010b5e: 4603 mov r3, r0
  39314. 8010b60: 2b01 cmp r3, #1
  39315. 8010b62: d101 bne.n 8010b68 <HAL_UART_Init+0x60>
  39316. {
  39317. return HAL_ERROR;
  39318. 8010b64: 2301 movs r3, #1
  39319. 8010b66: e01b b.n 8010ba0 <HAL_UART_Init+0x98>
  39320. }
  39321. /* In asynchronous mode, the following bits must be kept cleared:
  39322. - LINEN and CLKEN bits in the USART_CR2 register,
  39323. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  39324. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  39325. 8010b68: 687b ldr r3, [r7, #4]
  39326. 8010b6a: 681b ldr r3, [r3, #0]
  39327. 8010b6c: 685a ldr r2, [r3, #4]
  39328. 8010b6e: 687b ldr r3, [r7, #4]
  39329. 8010b70: 681b ldr r3, [r3, #0]
  39330. 8010b72: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  39331. 8010b76: 605a str r2, [r3, #4]
  39332. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  39333. 8010b78: 687b ldr r3, [r7, #4]
  39334. 8010b7a: 681b ldr r3, [r3, #0]
  39335. 8010b7c: 689a ldr r2, [r3, #8]
  39336. 8010b7e: 687b ldr r3, [r7, #4]
  39337. 8010b80: 681b ldr r3, [r3, #0]
  39338. 8010b82: f022 022a bic.w r2, r2, #42 @ 0x2a
  39339. 8010b86: 609a str r2, [r3, #8]
  39340. __HAL_UART_ENABLE(huart);
  39341. 8010b88: 687b ldr r3, [r7, #4]
  39342. 8010b8a: 681b ldr r3, [r3, #0]
  39343. 8010b8c: 681a ldr r2, [r3, #0]
  39344. 8010b8e: 687b ldr r3, [r7, #4]
  39345. 8010b90: 681b ldr r3, [r3, #0]
  39346. 8010b92: f042 0201 orr.w r2, r2, #1
  39347. 8010b96: 601a str r2, [r3, #0]
  39348. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  39349. return (UART_CheckIdleState(huart));
  39350. 8010b98: 6878 ldr r0, [r7, #4]
  39351. 8010b9a: f001 faf5 bl 8012188 <UART_CheckIdleState>
  39352. 8010b9e: 4603 mov r3, r0
  39353. }
  39354. 8010ba0: 4618 mov r0, r3
  39355. 8010ba2: 3708 adds r7, #8
  39356. 8010ba4: 46bd mov sp, r7
  39357. 8010ba6: bd80 pop {r7, pc}
  39358. 08010ba8 <HAL_UART_Transmit>:
  39359. * @param Size Amount of data elements (u8 or u16) to be sent.
  39360. * @param Timeout Timeout duration.
  39361. * @retval HAL status
  39362. */
  39363. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
  39364. {
  39365. 8010ba8: b580 push {r7, lr}
  39366. 8010baa: b08a sub sp, #40 @ 0x28
  39367. 8010bac: af02 add r7, sp, #8
  39368. 8010bae: 60f8 str r0, [r7, #12]
  39369. 8010bb0: 60b9 str r1, [r7, #8]
  39370. 8010bb2: 603b str r3, [r7, #0]
  39371. 8010bb4: 4613 mov r3, r2
  39372. 8010bb6: 80fb strh r3, [r7, #6]
  39373. const uint8_t *pdata8bits;
  39374. const uint16_t *pdata16bits;
  39375. uint32_t tickstart;
  39376. /* Check that a Tx process is not already ongoing */
  39377. if (huart->gState == HAL_UART_STATE_READY)
  39378. 8010bb8: 68fb ldr r3, [r7, #12]
  39379. 8010bba: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39380. 8010bbe: 2b20 cmp r3, #32
  39381. 8010bc0: d17b bne.n 8010cba <HAL_UART_Transmit+0x112>
  39382. {
  39383. if ((pData == NULL) || (Size == 0U))
  39384. 8010bc2: 68bb ldr r3, [r7, #8]
  39385. 8010bc4: 2b00 cmp r3, #0
  39386. 8010bc6: d002 beq.n 8010bce <HAL_UART_Transmit+0x26>
  39387. 8010bc8: 88fb ldrh r3, [r7, #6]
  39388. 8010bca: 2b00 cmp r3, #0
  39389. 8010bcc: d101 bne.n 8010bd2 <HAL_UART_Transmit+0x2a>
  39390. {
  39391. return HAL_ERROR;
  39392. 8010bce: 2301 movs r3, #1
  39393. 8010bd0: e074 b.n 8010cbc <HAL_UART_Transmit+0x114>
  39394. }
  39395. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39396. 8010bd2: 68fb ldr r3, [r7, #12]
  39397. 8010bd4: 2200 movs r2, #0
  39398. 8010bd6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39399. huart->gState = HAL_UART_STATE_BUSY_TX;
  39400. 8010bda: 68fb ldr r3, [r7, #12]
  39401. 8010bdc: 2221 movs r2, #33 @ 0x21
  39402. 8010bde: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39403. /* Init tickstart for timeout management */
  39404. tickstart = HAL_GetTick();
  39405. 8010be2: f7f4 fcc1 bl 8005568 <HAL_GetTick>
  39406. 8010be6: 6178 str r0, [r7, #20]
  39407. huart->TxXferSize = Size;
  39408. 8010be8: 68fb ldr r3, [r7, #12]
  39409. 8010bea: 88fa ldrh r2, [r7, #6]
  39410. 8010bec: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  39411. huart->TxXferCount = Size;
  39412. 8010bf0: 68fb ldr r3, [r7, #12]
  39413. 8010bf2: 88fa ldrh r2, [r7, #6]
  39414. 8010bf4: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39415. /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */
  39416. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39417. 8010bf8: 68fb ldr r3, [r7, #12]
  39418. 8010bfa: 689b ldr r3, [r3, #8]
  39419. 8010bfc: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39420. 8010c00: d108 bne.n 8010c14 <HAL_UART_Transmit+0x6c>
  39421. 8010c02: 68fb ldr r3, [r7, #12]
  39422. 8010c04: 691b ldr r3, [r3, #16]
  39423. 8010c06: 2b00 cmp r3, #0
  39424. 8010c08: d104 bne.n 8010c14 <HAL_UART_Transmit+0x6c>
  39425. {
  39426. pdata8bits = NULL;
  39427. 8010c0a: 2300 movs r3, #0
  39428. 8010c0c: 61fb str r3, [r7, #28]
  39429. pdata16bits = (const uint16_t *) pData;
  39430. 8010c0e: 68bb ldr r3, [r7, #8]
  39431. 8010c10: 61bb str r3, [r7, #24]
  39432. 8010c12: e003 b.n 8010c1c <HAL_UART_Transmit+0x74>
  39433. }
  39434. else
  39435. {
  39436. pdata8bits = pData;
  39437. 8010c14: 68bb ldr r3, [r7, #8]
  39438. 8010c16: 61fb str r3, [r7, #28]
  39439. pdata16bits = NULL;
  39440. 8010c18: 2300 movs r3, #0
  39441. 8010c1a: 61bb str r3, [r7, #24]
  39442. }
  39443. while (huart->TxXferCount > 0U)
  39444. 8010c1c: e030 b.n 8010c80 <HAL_UART_Transmit+0xd8>
  39445. {
  39446. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  39447. 8010c1e: 683b ldr r3, [r7, #0]
  39448. 8010c20: 9300 str r3, [sp, #0]
  39449. 8010c22: 697b ldr r3, [r7, #20]
  39450. 8010c24: 2200 movs r2, #0
  39451. 8010c26: 2180 movs r1, #128 @ 0x80
  39452. 8010c28: 68f8 ldr r0, [r7, #12]
  39453. 8010c2a: f001 fb57 bl 80122dc <UART_WaitOnFlagUntilTimeout>
  39454. 8010c2e: 4603 mov r3, r0
  39455. 8010c30: 2b00 cmp r3, #0
  39456. 8010c32: d005 beq.n 8010c40 <HAL_UART_Transmit+0x98>
  39457. {
  39458. huart->gState = HAL_UART_STATE_READY;
  39459. 8010c34: 68fb ldr r3, [r7, #12]
  39460. 8010c36: 2220 movs r2, #32
  39461. 8010c38: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39462. return HAL_TIMEOUT;
  39463. 8010c3c: 2303 movs r3, #3
  39464. 8010c3e: e03d b.n 8010cbc <HAL_UART_Transmit+0x114>
  39465. }
  39466. if (pdata8bits == NULL)
  39467. 8010c40: 69fb ldr r3, [r7, #28]
  39468. 8010c42: 2b00 cmp r3, #0
  39469. 8010c44: d10b bne.n 8010c5e <HAL_UART_Transmit+0xb6>
  39470. {
  39471. huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU);
  39472. 8010c46: 69bb ldr r3, [r7, #24]
  39473. 8010c48: 881b ldrh r3, [r3, #0]
  39474. 8010c4a: 461a mov r2, r3
  39475. 8010c4c: 68fb ldr r3, [r7, #12]
  39476. 8010c4e: 681b ldr r3, [r3, #0]
  39477. 8010c50: f3c2 0208 ubfx r2, r2, #0, #9
  39478. 8010c54: 629a str r2, [r3, #40] @ 0x28
  39479. pdata16bits++;
  39480. 8010c56: 69bb ldr r3, [r7, #24]
  39481. 8010c58: 3302 adds r3, #2
  39482. 8010c5a: 61bb str r3, [r7, #24]
  39483. 8010c5c: e007 b.n 8010c6e <HAL_UART_Transmit+0xc6>
  39484. }
  39485. else
  39486. {
  39487. huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU);
  39488. 8010c5e: 69fb ldr r3, [r7, #28]
  39489. 8010c60: 781a ldrb r2, [r3, #0]
  39490. 8010c62: 68fb ldr r3, [r7, #12]
  39491. 8010c64: 681b ldr r3, [r3, #0]
  39492. 8010c66: 629a str r2, [r3, #40] @ 0x28
  39493. pdata8bits++;
  39494. 8010c68: 69fb ldr r3, [r7, #28]
  39495. 8010c6a: 3301 adds r3, #1
  39496. 8010c6c: 61fb str r3, [r7, #28]
  39497. }
  39498. huart->TxXferCount--;
  39499. 8010c6e: 68fb ldr r3, [r7, #12]
  39500. 8010c70: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  39501. 8010c74: b29b uxth r3, r3
  39502. 8010c76: 3b01 subs r3, #1
  39503. 8010c78: b29a uxth r2, r3
  39504. 8010c7a: 68fb ldr r3, [r7, #12]
  39505. 8010c7c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39506. while (huart->TxXferCount > 0U)
  39507. 8010c80: 68fb ldr r3, [r7, #12]
  39508. 8010c82: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  39509. 8010c86: b29b uxth r3, r3
  39510. 8010c88: 2b00 cmp r3, #0
  39511. 8010c8a: d1c8 bne.n 8010c1e <HAL_UART_Transmit+0x76>
  39512. }
  39513. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  39514. 8010c8c: 683b ldr r3, [r7, #0]
  39515. 8010c8e: 9300 str r3, [sp, #0]
  39516. 8010c90: 697b ldr r3, [r7, #20]
  39517. 8010c92: 2200 movs r2, #0
  39518. 8010c94: 2140 movs r1, #64 @ 0x40
  39519. 8010c96: 68f8 ldr r0, [r7, #12]
  39520. 8010c98: f001 fb20 bl 80122dc <UART_WaitOnFlagUntilTimeout>
  39521. 8010c9c: 4603 mov r3, r0
  39522. 8010c9e: 2b00 cmp r3, #0
  39523. 8010ca0: d005 beq.n 8010cae <HAL_UART_Transmit+0x106>
  39524. {
  39525. huart->gState = HAL_UART_STATE_READY;
  39526. 8010ca2: 68fb ldr r3, [r7, #12]
  39527. 8010ca4: 2220 movs r2, #32
  39528. 8010ca6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39529. return HAL_TIMEOUT;
  39530. 8010caa: 2303 movs r3, #3
  39531. 8010cac: e006 b.n 8010cbc <HAL_UART_Transmit+0x114>
  39532. }
  39533. /* At end of Tx process, restore huart->gState to Ready */
  39534. huart->gState = HAL_UART_STATE_READY;
  39535. 8010cae: 68fb ldr r3, [r7, #12]
  39536. 8010cb0: 2220 movs r2, #32
  39537. 8010cb2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39538. return HAL_OK;
  39539. 8010cb6: 2300 movs r3, #0
  39540. 8010cb8: e000 b.n 8010cbc <HAL_UART_Transmit+0x114>
  39541. }
  39542. else
  39543. {
  39544. return HAL_BUSY;
  39545. 8010cba: 2302 movs r3, #2
  39546. }
  39547. }
  39548. 8010cbc: 4618 mov r0, r3
  39549. 8010cbe: 3720 adds r7, #32
  39550. 8010cc0: 46bd mov sp, r7
  39551. 8010cc2: bd80 pop {r7, pc}
  39552. 08010cc4 <HAL_UART_Transmit_IT>:
  39553. * @param pData Pointer to data buffer (u8 or u16 data elements).
  39554. * @param Size Amount of data elements (u8 or u16) to be sent.
  39555. * @retval HAL status
  39556. */
  39557. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  39558. {
  39559. 8010cc4: b480 push {r7}
  39560. 8010cc6: b091 sub sp, #68 @ 0x44
  39561. 8010cc8: af00 add r7, sp, #0
  39562. 8010cca: 60f8 str r0, [r7, #12]
  39563. 8010ccc: 60b9 str r1, [r7, #8]
  39564. 8010cce: 4613 mov r3, r2
  39565. 8010cd0: 80fb strh r3, [r7, #6]
  39566. /* Check that a Tx process is not already ongoing */
  39567. if (huart->gState == HAL_UART_STATE_READY)
  39568. 8010cd2: 68fb ldr r3, [r7, #12]
  39569. 8010cd4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  39570. 8010cd8: 2b20 cmp r3, #32
  39571. 8010cda: d178 bne.n 8010dce <HAL_UART_Transmit_IT+0x10a>
  39572. {
  39573. if ((pData == NULL) || (Size == 0U))
  39574. 8010cdc: 68bb ldr r3, [r7, #8]
  39575. 8010cde: 2b00 cmp r3, #0
  39576. 8010ce0: d002 beq.n 8010ce8 <HAL_UART_Transmit_IT+0x24>
  39577. 8010ce2: 88fb ldrh r3, [r7, #6]
  39578. 8010ce4: 2b00 cmp r3, #0
  39579. 8010ce6: d101 bne.n 8010cec <HAL_UART_Transmit_IT+0x28>
  39580. {
  39581. return HAL_ERROR;
  39582. 8010ce8: 2301 movs r3, #1
  39583. 8010cea: e071 b.n 8010dd0 <HAL_UART_Transmit_IT+0x10c>
  39584. }
  39585. huart->pTxBuffPtr = pData;
  39586. 8010cec: 68fb ldr r3, [r7, #12]
  39587. 8010cee: 68ba ldr r2, [r7, #8]
  39588. 8010cf0: 651a str r2, [r3, #80] @ 0x50
  39589. huart->TxXferSize = Size;
  39590. 8010cf2: 68fb ldr r3, [r7, #12]
  39591. 8010cf4: 88fa ldrh r2, [r7, #6]
  39592. 8010cf6: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  39593. huart->TxXferCount = Size;
  39594. 8010cfa: 68fb ldr r3, [r7, #12]
  39595. 8010cfc: 88fa ldrh r2, [r7, #6]
  39596. 8010cfe: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  39597. huart->TxISR = NULL;
  39598. 8010d02: 68fb ldr r3, [r7, #12]
  39599. 8010d04: 2200 movs r2, #0
  39600. 8010d06: 679a str r2, [r3, #120] @ 0x78
  39601. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39602. 8010d08: 68fb ldr r3, [r7, #12]
  39603. 8010d0a: 2200 movs r2, #0
  39604. 8010d0c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39605. huart->gState = HAL_UART_STATE_BUSY_TX;
  39606. 8010d10: 68fb ldr r3, [r7, #12]
  39607. 8010d12: 2221 movs r2, #33 @ 0x21
  39608. 8010d14: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  39609. /* Configure Tx interrupt processing */
  39610. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  39611. 8010d18: 68fb ldr r3, [r7, #12]
  39612. 8010d1a: 6e5b ldr r3, [r3, #100] @ 0x64
  39613. 8010d1c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  39614. 8010d20: d12a bne.n 8010d78 <HAL_UART_Transmit_IT+0xb4>
  39615. {
  39616. /* Set the Tx ISR function pointer according to the data word length */
  39617. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39618. 8010d22: 68fb ldr r3, [r7, #12]
  39619. 8010d24: 689b ldr r3, [r3, #8]
  39620. 8010d26: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39621. 8010d2a: d107 bne.n 8010d3c <HAL_UART_Transmit_IT+0x78>
  39622. 8010d2c: 68fb ldr r3, [r7, #12]
  39623. 8010d2e: 691b ldr r3, [r3, #16]
  39624. 8010d30: 2b00 cmp r3, #0
  39625. 8010d32: d103 bne.n 8010d3c <HAL_UART_Transmit_IT+0x78>
  39626. {
  39627. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  39628. 8010d34: 68fb ldr r3, [r7, #12]
  39629. 8010d36: 4a29 ldr r2, [pc, #164] @ (8010ddc <HAL_UART_Transmit_IT+0x118>)
  39630. 8010d38: 679a str r2, [r3, #120] @ 0x78
  39631. 8010d3a: e002 b.n 8010d42 <HAL_UART_Transmit_IT+0x7e>
  39632. }
  39633. else
  39634. {
  39635. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  39636. 8010d3c: 68fb ldr r3, [r7, #12]
  39637. 8010d3e: 4a28 ldr r2, [pc, #160] @ (8010de0 <HAL_UART_Transmit_IT+0x11c>)
  39638. 8010d40: 679a str r2, [r3, #120] @ 0x78
  39639. }
  39640. /* Enable the TX FIFO threshold interrupt */
  39641. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  39642. 8010d42: 68fb ldr r3, [r7, #12]
  39643. 8010d44: 681b ldr r3, [r3, #0]
  39644. 8010d46: 3308 adds r3, #8
  39645. 8010d48: 62bb str r3, [r7, #40] @ 0x28
  39646. */
  39647. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  39648. {
  39649. uint32_t result;
  39650. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39651. 8010d4a: 6abb ldr r3, [r7, #40] @ 0x28
  39652. 8010d4c: e853 3f00 ldrex r3, [r3]
  39653. 8010d50: 627b str r3, [r7, #36] @ 0x24
  39654. return(result);
  39655. 8010d52: 6a7b ldr r3, [r7, #36] @ 0x24
  39656. 8010d54: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  39657. 8010d58: 63bb str r3, [r7, #56] @ 0x38
  39658. 8010d5a: 68fb ldr r3, [r7, #12]
  39659. 8010d5c: 681b ldr r3, [r3, #0]
  39660. 8010d5e: 3308 adds r3, #8
  39661. 8010d60: 6bba ldr r2, [r7, #56] @ 0x38
  39662. 8010d62: 637a str r2, [r7, #52] @ 0x34
  39663. 8010d64: 633b str r3, [r7, #48] @ 0x30
  39664. */
  39665. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  39666. {
  39667. uint32_t result;
  39668. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39669. 8010d66: 6b39 ldr r1, [r7, #48] @ 0x30
  39670. 8010d68: 6b7a ldr r2, [r7, #52] @ 0x34
  39671. 8010d6a: e841 2300 strex r3, r2, [r1]
  39672. 8010d6e: 62fb str r3, [r7, #44] @ 0x2c
  39673. return(result);
  39674. 8010d70: 6afb ldr r3, [r7, #44] @ 0x2c
  39675. 8010d72: 2b00 cmp r3, #0
  39676. 8010d74: d1e5 bne.n 8010d42 <HAL_UART_Transmit_IT+0x7e>
  39677. 8010d76: e028 b.n 8010dca <HAL_UART_Transmit_IT+0x106>
  39678. }
  39679. else
  39680. {
  39681. /* Set the Tx ISR function pointer according to the data word length */
  39682. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  39683. 8010d78: 68fb ldr r3, [r7, #12]
  39684. 8010d7a: 689b ldr r3, [r3, #8]
  39685. 8010d7c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39686. 8010d80: d107 bne.n 8010d92 <HAL_UART_Transmit_IT+0xce>
  39687. 8010d82: 68fb ldr r3, [r7, #12]
  39688. 8010d84: 691b ldr r3, [r3, #16]
  39689. 8010d86: 2b00 cmp r3, #0
  39690. 8010d88: d103 bne.n 8010d92 <HAL_UART_Transmit_IT+0xce>
  39691. {
  39692. huart->TxISR = UART_TxISR_16BIT;
  39693. 8010d8a: 68fb ldr r3, [r7, #12]
  39694. 8010d8c: 4a15 ldr r2, [pc, #84] @ (8010de4 <HAL_UART_Transmit_IT+0x120>)
  39695. 8010d8e: 679a str r2, [r3, #120] @ 0x78
  39696. 8010d90: e002 b.n 8010d98 <HAL_UART_Transmit_IT+0xd4>
  39697. }
  39698. else
  39699. {
  39700. huart->TxISR = UART_TxISR_8BIT;
  39701. 8010d92: 68fb ldr r3, [r7, #12]
  39702. 8010d94: 4a14 ldr r2, [pc, #80] @ (8010de8 <HAL_UART_Transmit_IT+0x124>)
  39703. 8010d96: 679a str r2, [r3, #120] @ 0x78
  39704. }
  39705. /* Enable the Transmit Data Register Empty interrupt */
  39706. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  39707. 8010d98: 68fb ldr r3, [r7, #12]
  39708. 8010d9a: 681b ldr r3, [r3, #0]
  39709. 8010d9c: 617b str r3, [r7, #20]
  39710. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39711. 8010d9e: 697b ldr r3, [r7, #20]
  39712. 8010da0: e853 3f00 ldrex r3, [r3]
  39713. 8010da4: 613b str r3, [r7, #16]
  39714. return(result);
  39715. 8010da6: 693b ldr r3, [r7, #16]
  39716. 8010da8: f043 0380 orr.w r3, r3, #128 @ 0x80
  39717. 8010dac: 63fb str r3, [r7, #60] @ 0x3c
  39718. 8010dae: 68fb ldr r3, [r7, #12]
  39719. 8010db0: 681b ldr r3, [r3, #0]
  39720. 8010db2: 461a mov r2, r3
  39721. 8010db4: 6bfb ldr r3, [r7, #60] @ 0x3c
  39722. 8010db6: 623b str r3, [r7, #32]
  39723. 8010db8: 61fa str r2, [r7, #28]
  39724. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39725. 8010dba: 69f9 ldr r1, [r7, #28]
  39726. 8010dbc: 6a3a ldr r2, [r7, #32]
  39727. 8010dbe: e841 2300 strex r3, r2, [r1]
  39728. 8010dc2: 61bb str r3, [r7, #24]
  39729. return(result);
  39730. 8010dc4: 69bb ldr r3, [r7, #24]
  39731. 8010dc6: 2b00 cmp r3, #0
  39732. 8010dc8: d1e6 bne.n 8010d98 <HAL_UART_Transmit_IT+0xd4>
  39733. }
  39734. return HAL_OK;
  39735. 8010dca: 2300 movs r3, #0
  39736. 8010dcc: e000 b.n 8010dd0 <HAL_UART_Transmit_IT+0x10c>
  39737. }
  39738. else
  39739. {
  39740. return HAL_BUSY;
  39741. 8010dce: 2302 movs r3, #2
  39742. }
  39743. }
  39744. 8010dd0: 4618 mov r0, r3
  39745. 8010dd2: 3744 adds r7, #68 @ 0x44
  39746. 8010dd4: 46bd mov sp, r7
  39747. 8010dd6: f85d 7b04 ldr.w r7, [sp], #4
  39748. 8010dda: 4770 bx lr
  39749. 8010ddc: 0801294f .word 0x0801294f
  39750. 8010de0: 0801286f .word 0x0801286f
  39751. 8010de4: 080127ad .word 0x080127ad
  39752. 8010de8: 080126f5 .word 0x080126f5
  39753. 08010dec <HAL_UART_IRQHandler>:
  39754. * @brief Handle UART interrupt request.
  39755. * @param huart UART handle.
  39756. * @retval None
  39757. */
  39758. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  39759. {
  39760. 8010dec: b580 push {r7, lr}
  39761. 8010dee: b0ba sub sp, #232 @ 0xe8
  39762. 8010df0: af00 add r7, sp, #0
  39763. 8010df2: 6078 str r0, [r7, #4]
  39764. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  39765. 8010df4: 687b ldr r3, [r7, #4]
  39766. 8010df6: 681b ldr r3, [r3, #0]
  39767. 8010df8: 69db ldr r3, [r3, #28]
  39768. 8010dfa: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  39769. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  39770. 8010dfe: 687b ldr r3, [r7, #4]
  39771. 8010e00: 681b ldr r3, [r3, #0]
  39772. 8010e02: 681b ldr r3, [r3, #0]
  39773. 8010e04: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  39774. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  39775. 8010e08: 687b ldr r3, [r7, #4]
  39776. 8010e0a: 681b ldr r3, [r3, #0]
  39777. 8010e0c: 689b ldr r3, [r3, #8]
  39778. 8010e0e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  39779. uint32_t errorflags;
  39780. uint32_t errorcode;
  39781. /* If no error occurs */
  39782. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  39783. 8010e12: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  39784. 8010e16: f640 030f movw r3, #2063 @ 0x80f
  39785. 8010e1a: 4013 ands r3, r2
  39786. 8010e1c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  39787. if (errorflags == 0U)
  39788. 8010e20: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39789. 8010e24: 2b00 cmp r3, #0
  39790. 8010e26: d11b bne.n 8010e60 <HAL_UART_IRQHandler+0x74>
  39791. {
  39792. /* UART in mode Receiver ---------------------------------------------------*/
  39793. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39794. 8010e28: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39795. 8010e2c: f003 0320 and.w r3, r3, #32
  39796. 8010e30: 2b00 cmp r3, #0
  39797. 8010e32: d015 beq.n 8010e60 <HAL_UART_IRQHandler+0x74>
  39798. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39799. 8010e34: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39800. 8010e38: f003 0320 and.w r3, r3, #32
  39801. 8010e3c: 2b00 cmp r3, #0
  39802. 8010e3e: d105 bne.n 8010e4c <HAL_UART_IRQHandler+0x60>
  39803. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39804. 8010e40: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39805. 8010e44: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39806. 8010e48: 2b00 cmp r3, #0
  39807. 8010e4a: d009 beq.n 8010e60 <HAL_UART_IRQHandler+0x74>
  39808. {
  39809. if (huart->RxISR != NULL)
  39810. 8010e4c: 687b ldr r3, [r7, #4]
  39811. 8010e4e: 6f5b ldr r3, [r3, #116] @ 0x74
  39812. 8010e50: 2b00 cmp r3, #0
  39813. 8010e52: f000 8377 beq.w 8011544 <HAL_UART_IRQHandler+0x758>
  39814. {
  39815. huart->RxISR(huart);
  39816. 8010e56: 687b ldr r3, [r7, #4]
  39817. 8010e58: 6f5b ldr r3, [r3, #116] @ 0x74
  39818. 8010e5a: 6878 ldr r0, [r7, #4]
  39819. 8010e5c: 4798 blx r3
  39820. }
  39821. return;
  39822. 8010e5e: e371 b.n 8011544 <HAL_UART_IRQHandler+0x758>
  39823. }
  39824. }
  39825. /* If some errors occur */
  39826. if ((errorflags != 0U)
  39827. 8010e60: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39828. 8010e64: 2b00 cmp r3, #0
  39829. 8010e66: f000 8123 beq.w 80110b0 <HAL_UART_IRQHandler+0x2c4>
  39830. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  39831. 8010e6a: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39832. 8010e6e: 4b8d ldr r3, [pc, #564] @ (80110a4 <HAL_UART_IRQHandler+0x2b8>)
  39833. 8010e70: 4013 ands r3, r2
  39834. 8010e72: 2b00 cmp r3, #0
  39835. 8010e74: d106 bne.n 8010e84 <HAL_UART_IRQHandler+0x98>
  39836. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  39837. 8010e76: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  39838. 8010e7a: 4b8b ldr r3, [pc, #556] @ (80110a8 <HAL_UART_IRQHandler+0x2bc>)
  39839. 8010e7c: 4013 ands r3, r2
  39840. 8010e7e: 2b00 cmp r3, #0
  39841. 8010e80: f000 8116 beq.w 80110b0 <HAL_UART_IRQHandler+0x2c4>
  39842. {
  39843. /* UART parity error interrupt occurred -------------------------------------*/
  39844. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  39845. 8010e84: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39846. 8010e88: f003 0301 and.w r3, r3, #1
  39847. 8010e8c: 2b00 cmp r3, #0
  39848. 8010e8e: d011 beq.n 8010eb4 <HAL_UART_IRQHandler+0xc8>
  39849. 8010e90: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39850. 8010e94: f403 7380 and.w r3, r3, #256 @ 0x100
  39851. 8010e98: 2b00 cmp r3, #0
  39852. 8010e9a: d00b beq.n 8010eb4 <HAL_UART_IRQHandler+0xc8>
  39853. {
  39854. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  39855. 8010e9c: 687b ldr r3, [r7, #4]
  39856. 8010e9e: 681b ldr r3, [r3, #0]
  39857. 8010ea0: 2201 movs r2, #1
  39858. 8010ea2: 621a str r2, [r3, #32]
  39859. huart->ErrorCode |= HAL_UART_ERROR_PE;
  39860. 8010ea4: 687b ldr r3, [r7, #4]
  39861. 8010ea6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39862. 8010eaa: f043 0201 orr.w r2, r3, #1
  39863. 8010eae: 687b ldr r3, [r7, #4]
  39864. 8010eb0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39865. }
  39866. /* UART frame error interrupt occurred --------------------------------------*/
  39867. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39868. 8010eb4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39869. 8010eb8: f003 0302 and.w r3, r3, #2
  39870. 8010ebc: 2b00 cmp r3, #0
  39871. 8010ebe: d011 beq.n 8010ee4 <HAL_UART_IRQHandler+0xf8>
  39872. 8010ec0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39873. 8010ec4: f003 0301 and.w r3, r3, #1
  39874. 8010ec8: 2b00 cmp r3, #0
  39875. 8010eca: d00b beq.n 8010ee4 <HAL_UART_IRQHandler+0xf8>
  39876. {
  39877. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  39878. 8010ecc: 687b ldr r3, [r7, #4]
  39879. 8010ece: 681b ldr r3, [r3, #0]
  39880. 8010ed0: 2202 movs r2, #2
  39881. 8010ed2: 621a str r2, [r3, #32]
  39882. huart->ErrorCode |= HAL_UART_ERROR_FE;
  39883. 8010ed4: 687b ldr r3, [r7, #4]
  39884. 8010ed6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39885. 8010eda: f043 0204 orr.w r2, r3, #4
  39886. 8010ede: 687b ldr r3, [r7, #4]
  39887. 8010ee0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39888. }
  39889. /* UART noise error interrupt occurred --------------------------------------*/
  39890. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39891. 8010ee4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39892. 8010ee8: f003 0304 and.w r3, r3, #4
  39893. 8010eec: 2b00 cmp r3, #0
  39894. 8010eee: d011 beq.n 8010f14 <HAL_UART_IRQHandler+0x128>
  39895. 8010ef0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39896. 8010ef4: f003 0301 and.w r3, r3, #1
  39897. 8010ef8: 2b00 cmp r3, #0
  39898. 8010efa: d00b beq.n 8010f14 <HAL_UART_IRQHandler+0x128>
  39899. {
  39900. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  39901. 8010efc: 687b ldr r3, [r7, #4]
  39902. 8010efe: 681b ldr r3, [r3, #0]
  39903. 8010f00: 2204 movs r2, #4
  39904. 8010f02: 621a str r2, [r3, #32]
  39905. huart->ErrorCode |= HAL_UART_ERROR_NE;
  39906. 8010f04: 687b ldr r3, [r7, #4]
  39907. 8010f06: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39908. 8010f0a: f043 0202 orr.w r2, r3, #2
  39909. 8010f0e: 687b ldr r3, [r7, #4]
  39910. 8010f10: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39911. }
  39912. /* UART Over-Run interrupt occurred -----------------------------------------*/
  39913. if (((isrflags & USART_ISR_ORE) != 0U)
  39914. 8010f14: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39915. 8010f18: f003 0308 and.w r3, r3, #8
  39916. 8010f1c: 2b00 cmp r3, #0
  39917. 8010f1e: d017 beq.n 8010f50 <HAL_UART_IRQHandler+0x164>
  39918. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39919. 8010f20: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39920. 8010f24: f003 0320 and.w r3, r3, #32
  39921. 8010f28: 2b00 cmp r3, #0
  39922. 8010f2a: d105 bne.n 8010f38 <HAL_UART_IRQHandler+0x14c>
  39923. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  39924. 8010f2c: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39925. 8010f30: 4b5c ldr r3, [pc, #368] @ (80110a4 <HAL_UART_IRQHandler+0x2b8>)
  39926. 8010f32: 4013 ands r3, r2
  39927. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39928. 8010f34: 2b00 cmp r3, #0
  39929. 8010f36: d00b beq.n 8010f50 <HAL_UART_IRQHandler+0x164>
  39930. {
  39931. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  39932. 8010f38: 687b ldr r3, [r7, #4]
  39933. 8010f3a: 681b ldr r3, [r3, #0]
  39934. 8010f3c: 2208 movs r2, #8
  39935. 8010f3e: 621a str r2, [r3, #32]
  39936. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  39937. 8010f40: 687b ldr r3, [r7, #4]
  39938. 8010f42: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39939. 8010f46: f043 0208 orr.w r2, r3, #8
  39940. 8010f4a: 687b ldr r3, [r7, #4]
  39941. 8010f4c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39942. }
  39943. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  39944. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  39945. 8010f50: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39946. 8010f54: f403 6300 and.w r3, r3, #2048 @ 0x800
  39947. 8010f58: 2b00 cmp r3, #0
  39948. 8010f5a: d012 beq.n 8010f82 <HAL_UART_IRQHandler+0x196>
  39949. 8010f5c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39950. 8010f60: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  39951. 8010f64: 2b00 cmp r3, #0
  39952. 8010f66: d00c beq.n 8010f82 <HAL_UART_IRQHandler+0x196>
  39953. {
  39954. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  39955. 8010f68: 687b ldr r3, [r7, #4]
  39956. 8010f6a: 681b ldr r3, [r3, #0]
  39957. 8010f6c: f44f 6200 mov.w r2, #2048 @ 0x800
  39958. 8010f70: 621a str r2, [r3, #32]
  39959. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  39960. 8010f72: 687b ldr r3, [r7, #4]
  39961. 8010f74: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39962. 8010f78: f043 0220 orr.w r2, r3, #32
  39963. 8010f7c: 687b ldr r3, [r7, #4]
  39964. 8010f7e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39965. }
  39966. /* Call UART Error Call back function if need be ----------------------------*/
  39967. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  39968. 8010f82: 687b ldr r3, [r7, #4]
  39969. 8010f84: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39970. 8010f88: 2b00 cmp r3, #0
  39971. 8010f8a: f000 82dd beq.w 8011548 <HAL_UART_IRQHandler+0x75c>
  39972. {
  39973. /* UART in mode Receiver --------------------------------------------------*/
  39974. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39975. 8010f8e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39976. 8010f92: f003 0320 and.w r3, r3, #32
  39977. 8010f96: 2b00 cmp r3, #0
  39978. 8010f98: d013 beq.n 8010fc2 <HAL_UART_IRQHandler+0x1d6>
  39979. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39980. 8010f9a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39981. 8010f9e: f003 0320 and.w r3, r3, #32
  39982. 8010fa2: 2b00 cmp r3, #0
  39983. 8010fa4: d105 bne.n 8010fb2 <HAL_UART_IRQHandler+0x1c6>
  39984. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39985. 8010fa6: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39986. 8010faa: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39987. 8010fae: 2b00 cmp r3, #0
  39988. 8010fb0: d007 beq.n 8010fc2 <HAL_UART_IRQHandler+0x1d6>
  39989. {
  39990. if (huart->RxISR != NULL)
  39991. 8010fb2: 687b ldr r3, [r7, #4]
  39992. 8010fb4: 6f5b ldr r3, [r3, #116] @ 0x74
  39993. 8010fb6: 2b00 cmp r3, #0
  39994. 8010fb8: d003 beq.n 8010fc2 <HAL_UART_IRQHandler+0x1d6>
  39995. {
  39996. huart->RxISR(huart);
  39997. 8010fba: 687b ldr r3, [r7, #4]
  39998. 8010fbc: 6f5b ldr r3, [r3, #116] @ 0x74
  39999. 8010fbe: 6878 ldr r0, [r7, #4]
  40000. 8010fc0: 4798 blx r3
  40001. /* If Error is to be considered as blocking :
  40002. - Receiver Timeout error in Reception
  40003. - Overrun error in Reception
  40004. - any error occurs in DMA mode reception
  40005. */
  40006. errorcode = huart->ErrorCode;
  40007. 8010fc2: 687b ldr r3, [r7, #4]
  40008. 8010fc4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40009. 8010fc8: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  40010. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40011. 8010fcc: 687b ldr r3, [r7, #4]
  40012. 8010fce: 681b ldr r3, [r3, #0]
  40013. 8010fd0: 689b ldr r3, [r3, #8]
  40014. 8010fd2: f003 0340 and.w r3, r3, #64 @ 0x40
  40015. 8010fd6: 2b40 cmp r3, #64 @ 0x40
  40016. 8010fd8: d005 beq.n 8010fe6 <HAL_UART_IRQHandler+0x1fa>
  40017. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  40018. 8010fda: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  40019. 8010fde: f003 0328 and.w r3, r3, #40 @ 0x28
  40020. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40021. 8010fe2: 2b00 cmp r3, #0
  40022. 8010fe4: d054 beq.n 8011090 <HAL_UART_IRQHandler+0x2a4>
  40023. {
  40024. /* Blocking error : transfer is aborted
  40025. Set the UART state ready to be able to start again the process,
  40026. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  40027. UART_EndRxTransfer(huart);
  40028. 8010fe6: 6878 ldr r0, [r7, #4]
  40029. 8010fe8: f001 fb08 bl 80125fc <UART_EndRxTransfer>
  40030. /* Abort the UART DMA Rx channel if enabled */
  40031. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40032. 8010fec: 687b ldr r3, [r7, #4]
  40033. 8010fee: 681b ldr r3, [r3, #0]
  40034. 8010ff0: 689b ldr r3, [r3, #8]
  40035. 8010ff2: f003 0340 and.w r3, r3, #64 @ 0x40
  40036. 8010ff6: 2b40 cmp r3, #64 @ 0x40
  40037. 8010ff8: d146 bne.n 8011088 <HAL_UART_IRQHandler+0x29c>
  40038. {
  40039. /* Disable the UART DMA Rx request if enabled */
  40040. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40041. 8010ffa: 687b ldr r3, [r7, #4]
  40042. 8010ffc: 681b ldr r3, [r3, #0]
  40043. 8010ffe: 3308 adds r3, #8
  40044. 8011000: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  40045. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40046. 8011004: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  40047. 8011008: e853 3f00 ldrex r3, [r3]
  40048. 801100c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  40049. return(result);
  40050. 8011010: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  40051. 8011014: f023 0340 bic.w r3, r3, #64 @ 0x40
  40052. 8011018: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  40053. 801101c: 687b ldr r3, [r7, #4]
  40054. 801101e: 681b ldr r3, [r3, #0]
  40055. 8011020: 3308 adds r3, #8
  40056. 8011022: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  40057. 8011026: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  40058. 801102a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  40059. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40060. 801102e: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  40061. 8011032: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  40062. 8011036: e841 2300 strex r3, r2, [r1]
  40063. 801103a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  40064. return(result);
  40065. 801103e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  40066. 8011042: 2b00 cmp r3, #0
  40067. 8011044: d1d9 bne.n 8010ffa <HAL_UART_IRQHandler+0x20e>
  40068. /* Abort the UART DMA Rx channel */
  40069. if (huart->hdmarx != NULL)
  40070. 8011046: 687b ldr r3, [r7, #4]
  40071. 8011048: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40072. 801104c: 2b00 cmp r3, #0
  40073. 801104e: d017 beq.n 8011080 <HAL_UART_IRQHandler+0x294>
  40074. {
  40075. /* Set the UART DMA Abort callback :
  40076. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  40077. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  40078. 8011050: 687b ldr r3, [r7, #4]
  40079. 8011052: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40080. 8011056: 4a15 ldr r2, [pc, #84] @ (80110ac <HAL_UART_IRQHandler+0x2c0>)
  40081. 8011058: 651a str r2, [r3, #80] @ 0x50
  40082. /* Abort DMA RX */
  40083. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  40084. 801105a: 687b ldr r3, [r7, #4]
  40085. 801105c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40086. 8011060: 4618 mov r0, r3
  40087. 8011062: f7f7 ff01 bl 8008e68 <HAL_DMA_Abort_IT>
  40088. 8011066: 4603 mov r3, r0
  40089. 8011068: 2b00 cmp r3, #0
  40090. 801106a: d019 beq.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40091. {
  40092. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  40093. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  40094. 801106c: 687b ldr r3, [r7, #4]
  40095. 801106e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40096. 8011072: 6d1b ldr r3, [r3, #80] @ 0x50
  40097. 8011074: 687a ldr r2, [r7, #4]
  40098. 8011076: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  40099. 801107a: 4610 mov r0, r2
  40100. 801107c: 4798 blx r3
  40101. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40102. 801107e: e00f b.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40103. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40104. /*Call registered error callback*/
  40105. huart->ErrorCallback(huart);
  40106. #else
  40107. /*Call legacy weak error callback*/
  40108. HAL_UART_ErrorCallback(huart);
  40109. 8011080: 6878 ldr r0, [r7, #4]
  40110. 8011082: f000 fa6d bl 8011560 <HAL_UART_ErrorCallback>
  40111. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40112. 8011086: e00b b.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40113. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40114. /*Call registered error callback*/
  40115. huart->ErrorCallback(huart);
  40116. #else
  40117. /*Call legacy weak error callback*/
  40118. HAL_UART_ErrorCallback(huart);
  40119. 8011088: 6878 ldr r0, [r7, #4]
  40120. 801108a: f000 fa69 bl 8011560 <HAL_UART_ErrorCallback>
  40121. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40122. 801108e: e007 b.n 80110a0 <HAL_UART_IRQHandler+0x2b4>
  40123. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40124. /*Call registered error callback*/
  40125. huart->ErrorCallback(huart);
  40126. #else
  40127. /*Call legacy weak error callback*/
  40128. HAL_UART_ErrorCallback(huart);
  40129. 8011090: 6878 ldr r0, [r7, #4]
  40130. 8011092: f000 fa65 bl 8011560 <HAL_UART_ErrorCallback>
  40131. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40132. huart->ErrorCode = HAL_UART_ERROR_NONE;
  40133. 8011096: 687b ldr r3, [r7, #4]
  40134. 8011098: 2200 movs r2, #0
  40135. 801109a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40136. }
  40137. }
  40138. return;
  40139. 801109e: e253 b.n 8011548 <HAL_UART_IRQHandler+0x75c>
  40140. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40141. 80110a0: bf00 nop
  40142. return;
  40143. 80110a2: e251 b.n 8011548 <HAL_UART_IRQHandler+0x75c>
  40144. 80110a4: 10000001 .word 0x10000001
  40145. 80110a8: 04000120 .word 0x04000120
  40146. 80110ac: 080126c9 .word 0x080126c9
  40147. } /* End if some error occurs */
  40148. /* Check current reception Mode :
  40149. If Reception till IDLE event has been selected : */
  40150. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  40151. 80110b0: 687b ldr r3, [r7, #4]
  40152. 80110b2: 6edb ldr r3, [r3, #108] @ 0x6c
  40153. 80110b4: 2b01 cmp r3, #1
  40154. 80110b6: f040 81e7 bne.w 8011488 <HAL_UART_IRQHandler+0x69c>
  40155. && ((isrflags & USART_ISR_IDLE) != 0U)
  40156. 80110ba: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40157. 80110be: f003 0310 and.w r3, r3, #16
  40158. 80110c2: 2b00 cmp r3, #0
  40159. 80110c4: f000 81e0 beq.w 8011488 <HAL_UART_IRQHandler+0x69c>
  40160. && ((cr1its & USART_ISR_IDLE) != 0U))
  40161. 80110c8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40162. 80110cc: f003 0310 and.w r3, r3, #16
  40163. 80110d0: 2b00 cmp r3, #0
  40164. 80110d2: f000 81d9 beq.w 8011488 <HAL_UART_IRQHandler+0x69c>
  40165. {
  40166. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  40167. 80110d6: 687b ldr r3, [r7, #4]
  40168. 80110d8: 681b ldr r3, [r3, #0]
  40169. 80110da: 2210 movs r2, #16
  40170. 80110dc: 621a str r2, [r3, #32]
  40171. /* Check if DMA mode is enabled in UART */
  40172. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40173. 80110de: 687b ldr r3, [r7, #4]
  40174. 80110e0: 681b ldr r3, [r3, #0]
  40175. 80110e2: 689b ldr r3, [r3, #8]
  40176. 80110e4: f003 0340 and.w r3, r3, #64 @ 0x40
  40177. 80110e8: 2b40 cmp r3, #64 @ 0x40
  40178. 80110ea: f040 8151 bne.w 8011390 <HAL_UART_IRQHandler+0x5a4>
  40179. {
  40180. /* DMA mode enabled */
  40181. /* Check received length : If all expected data are received, do nothing,
  40182. (DMA cplt callback will be called).
  40183. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  40184. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  40185. 80110ee: 687b ldr r3, [r7, #4]
  40186. 80110f0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40187. 80110f4: 681b ldr r3, [r3, #0]
  40188. 80110f6: 4a96 ldr r2, [pc, #600] @ (8011350 <HAL_UART_IRQHandler+0x564>)
  40189. 80110f8: 4293 cmp r3, r2
  40190. 80110fa: d068 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40191. 80110fc: 687b ldr r3, [r7, #4]
  40192. 80110fe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40193. 8011102: 681b ldr r3, [r3, #0]
  40194. 8011104: 4a93 ldr r2, [pc, #588] @ (8011354 <HAL_UART_IRQHandler+0x568>)
  40195. 8011106: 4293 cmp r3, r2
  40196. 8011108: d061 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40197. 801110a: 687b ldr r3, [r7, #4]
  40198. 801110c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40199. 8011110: 681b ldr r3, [r3, #0]
  40200. 8011112: 4a91 ldr r2, [pc, #580] @ (8011358 <HAL_UART_IRQHandler+0x56c>)
  40201. 8011114: 4293 cmp r3, r2
  40202. 8011116: d05a beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40203. 8011118: 687b ldr r3, [r7, #4]
  40204. 801111a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40205. 801111e: 681b ldr r3, [r3, #0]
  40206. 8011120: 4a8e ldr r2, [pc, #568] @ (801135c <HAL_UART_IRQHandler+0x570>)
  40207. 8011122: 4293 cmp r3, r2
  40208. 8011124: d053 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40209. 8011126: 687b ldr r3, [r7, #4]
  40210. 8011128: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40211. 801112c: 681b ldr r3, [r3, #0]
  40212. 801112e: 4a8c ldr r2, [pc, #560] @ (8011360 <HAL_UART_IRQHandler+0x574>)
  40213. 8011130: 4293 cmp r3, r2
  40214. 8011132: d04c beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40215. 8011134: 687b ldr r3, [r7, #4]
  40216. 8011136: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40217. 801113a: 681b ldr r3, [r3, #0]
  40218. 801113c: 4a89 ldr r2, [pc, #548] @ (8011364 <HAL_UART_IRQHandler+0x578>)
  40219. 801113e: 4293 cmp r3, r2
  40220. 8011140: d045 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40221. 8011142: 687b ldr r3, [r7, #4]
  40222. 8011144: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40223. 8011148: 681b ldr r3, [r3, #0]
  40224. 801114a: 4a87 ldr r2, [pc, #540] @ (8011368 <HAL_UART_IRQHandler+0x57c>)
  40225. 801114c: 4293 cmp r3, r2
  40226. 801114e: d03e beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40227. 8011150: 687b ldr r3, [r7, #4]
  40228. 8011152: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40229. 8011156: 681b ldr r3, [r3, #0]
  40230. 8011158: 4a84 ldr r2, [pc, #528] @ (801136c <HAL_UART_IRQHandler+0x580>)
  40231. 801115a: 4293 cmp r3, r2
  40232. 801115c: d037 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40233. 801115e: 687b ldr r3, [r7, #4]
  40234. 8011160: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40235. 8011164: 681b ldr r3, [r3, #0]
  40236. 8011166: 4a82 ldr r2, [pc, #520] @ (8011370 <HAL_UART_IRQHandler+0x584>)
  40237. 8011168: 4293 cmp r3, r2
  40238. 801116a: d030 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40239. 801116c: 687b ldr r3, [r7, #4]
  40240. 801116e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40241. 8011172: 681b ldr r3, [r3, #0]
  40242. 8011174: 4a7f ldr r2, [pc, #508] @ (8011374 <HAL_UART_IRQHandler+0x588>)
  40243. 8011176: 4293 cmp r3, r2
  40244. 8011178: d029 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40245. 801117a: 687b ldr r3, [r7, #4]
  40246. 801117c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40247. 8011180: 681b ldr r3, [r3, #0]
  40248. 8011182: 4a7d ldr r2, [pc, #500] @ (8011378 <HAL_UART_IRQHandler+0x58c>)
  40249. 8011184: 4293 cmp r3, r2
  40250. 8011186: d022 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40251. 8011188: 687b ldr r3, [r7, #4]
  40252. 801118a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40253. 801118e: 681b ldr r3, [r3, #0]
  40254. 8011190: 4a7a ldr r2, [pc, #488] @ (801137c <HAL_UART_IRQHandler+0x590>)
  40255. 8011192: 4293 cmp r3, r2
  40256. 8011194: d01b beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40257. 8011196: 687b ldr r3, [r7, #4]
  40258. 8011198: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40259. 801119c: 681b ldr r3, [r3, #0]
  40260. 801119e: 4a78 ldr r2, [pc, #480] @ (8011380 <HAL_UART_IRQHandler+0x594>)
  40261. 80111a0: 4293 cmp r3, r2
  40262. 80111a2: d014 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40263. 80111a4: 687b ldr r3, [r7, #4]
  40264. 80111a6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40265. 80111aa: 681b ldr r3, [r3, #0]
  40266. 80111ac: 4a75 ldr r2, [pc, #468] @ (8011384 <HAL_UART_IRQHandler+0x598>)
  40267. 80111ae: 4293 cmp r3, r2
  40268. 80111b0: d00d beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40269. 80111b2: 687b ldr r3, [r7, #4]
  40270. 80111b4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40271. 80111b8: 681b ldr r3, [r3, #0]
  40272. 80111ba: 4a73 ldr r2, [pc, #460] @ (8011388 <HAL_UART_IRQHandler+0x59c>)
  40273. 80111bc: 4293 cmp r3, r2
  40274. 80111be: d006 beq.n 80111ce <HAL_UART_IRQHandler+0x3e2>
  40275. 80111c0: 687b ldr r3, [r7, #4]
  40276. 80111c2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40277. 80111c6: 681b ldr r3, [r3, #0]
  40278. 80111c8: 4a70 ldr r2, [pc, #448] @ (801138c <HAL_UART_IRQHandler+0x5a0>)
  40279. 80111ca: 4293 cmp r3, r2
  40280. 80111cc: d106 bne.n 80111dc <HAL_UART_IRQHandler+0x3f0>
  40281. 80111ce: 687b ldr r3, [r7, #4]
  40282. 80111d0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40283. 80111d4: 681b ldr r3, [r3, #0]
  40284. 80111d6: 685b ldr r3, [r3, #4]
  40285. 80111d8: b29b uxth r3, r3
  40286. 80111da: e005 b.n 80111e8 <HAL_UART_IRQHandler+0x3fc>
  40287. 80111dc: 687b ldr r3, [r7, #4]
  40288. 80111de: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40289. 80111e2: 681b ldr r3, [r3, #0]
  40290. 80111e4: 685b ldr r3, [r3, #4]
  40291. 80111e6: b29b uxth r3, r3
  40292. 80111e8: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  40293. if ((nb_remaining_rx_data > 0U)
  40294. 80111ec: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  40295. 80111f0: 2b00 cmp r3, #0
  40296. 80111f2: f000 81ab beq.w 801154c <HAL_UART_IRQHandler+0x760>
  40297. && (nb_remaining_rx_data < huart->RxXferSize))
  40298. 80111f6: 687b ldr r3, [r7, #4]
  40299. 80111f8: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  40300. 80111fc: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  40301. 8011200: 429a cmp r2, r3
  40302. 8011202: f080 81a3 bcs.w 801154c <HAL_UART_IRQHandler+0x760>
  40303. {
  40304. /* Reception is not complete */
  40305. huart->RxXferCount = nb_remaining_rx_data;
  40306. 8011206: 687b ldr r3, [r7, #4]
  40307. 8011208: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  40308. 801120c: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  40309. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  40310. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  40311. 8011210: 687b ldr r3, [r7, #4]
  40312. 8011212: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40313. 8011216: 69db ldr r3, [r3, #28]
  40314. 8011218: f5b3 7f80 cmp.w r3, #256 @ 0x100
  40315. 801121c: f000 8087 beq.w 801132e <HAL_UART_IRQHandler+0x542>
  40316. {
  40317. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  40318. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  40319. 8011220: 687b ldr r3, [r7, #4]
  40320. 8011222: 681b ldr r3, [r3, #0]
  40321. 8011224: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  40322. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40323. 8011228: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  40324. 801122c: e853 3f00 ldrex r3, [r3]
  40325. 8011230: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  40326. return(result);
  40327. 8011234: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  40328. 8011238: f423 7380 bic.w r3, r3, #256 @ 0x100
  40329. 801123c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  40330. 8011240: 687b ldr r3, [r7, #4]
  40331. 8011242: 681b ldr r3, [r3, #0]
  40332. 8011244: 461a mov r2, r3
  40333. 8011246: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  40334. 801124a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  40335. 801124e: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  40336. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40337. 8011252: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  40338. 8011256: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  40339. 801125a: e841 2300 strex r3, r2, [r1]
  40340. 801125e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  40341. return(result);
  40342. 8011262: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  40343. 8011266: 2b00 cmp r3, #0
  40344. 8011268: d1da bne.n 8011220 <HAL_UART_IRQHandler+0x434>
  40345. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  40346. 801126a: 687b ldr r3, [r7, #4]
  40347. 801126c: 681b ldr r3, [r3, #0]
  40348. 801126e: 3308 adds r3, #8
  40349. 8011270: 677b str r3, [r7, #116] @ 0x74
  40350. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40351. 8011272: 6f7b ldr r3, [r7, #116] @ 0x74
  40352. 8011274: e853 3f00 ldrex r3, [r3]
  40353. 8011278: 673b str r3, [r7, #112] @ 0x70
  40354. return(result);
  40355. 801127a: 6f3b ldr r3, [r7, #112] @ 0x70
  40356. 801127c: f023 0301 bic.w r3, r3, #1
  40357. 8011280: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  40358. 8011284: 687b ldr r3, [r7, #4]
  40359. 8011286: 681b ldr r3, [r3, #0]
  40360. 8011288: 3308 adds r3, #8
  40361. 801128a: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  40362. 801128e: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  40363. 8011292: 67fb str r3, [r7, #124] @ 0x7c
  40364. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40365. 8011294: 6ff9 ldr r1, [r7, #124] @ 0x7c
  40366. 8011296: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  40367. 801129a: e841 2300 strex r3, r2, [r1]
  40368. 801129e: 67bb str r3, [r7, #120] @ 0x78
  40369. return(result);
  40370. 80112a0: 6fbb ldr r3, [r7, #120] @ 0x78
  40371. 80112a2: 2b00 cmp r3, #0
  40372. 80112a4: d1e1 bne.n 801126a <HAL_UART_IRQHandler+0x47e>
  40373. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  40374. in the UART CR3 register */
  40375. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40376. 80112a6: 687b ldr r3, [r7, #4]
  40377. 80112a8: 681b ldr r3, [r3, #0]
  40378. 80112aa: 3308 adds r3, #8
  40379. 80112ac: 663b str r3, [r7, #96] @ 0x60
  40380. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40381. 80112ae: 6e3b ldr r3, [r7, #96] @ 0x60
  40382. 80112b0: e853 3f00 ldrex r3, [r3]
  40383. 80112b4: 65fb str r3, [r7, #92] @ 0x5c
  40384. return(result);
  40385. 80112b6: 6dfb ldr r3, [r7, #92] @ 0x5c
  40386. 80112b8: f023 0340 bic.w r3, r3, #64 @ 0x40
  40387. 80112bc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  40388. 80112c0: 687b ldr r3, [r7, #4]
  40389. 80112c2: 681b ldr r3, [r3, #0]
  40390. 80112c4: 3308 adds r3, #8
  40391. 80112c6: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  40392. 80112ca: 66fa str r2, [r7, #108] @ 0x6c
  40393. 80112cc: 66bb str r3, [r7, #104] @ 0x68
  40394. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40395. 80112ce: 6eb9 ldr r1, [r7, #104] @ 0x68
  40396. 80112d0: 6efa ldr r2, [r7, #108] @ 0x6c
  40397. 80112d2: e841 2300 strex r3, r2, [r1]
  40398. 80112d6: 667b str r3, [r7, #100] @ 0x64
  40399. return(result);
  40400. 80112d8: 6e7b ldr r3, [r7, #100] @ 0x64
  40401. 80112da: 2b00 cmp r3, #0
  40402. 80112dc: d1e3 bne.n 80112a6 <HAL_UART_IRQHandler+0x4ba>
  40403. /* At end of Rx process, restore huart->RxState to Ready */
  40404. huart->RxState = HAL_UART_STATE_READY;
  40405. 80112de: 687b ldr r3, [r7, #4]
  40406. 80112e0: 2220 movs r2, #32
  40407. 80112e2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  40408. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  40409. 80112e6: 687b ldr r3, [r7, #4]
  40410. 80112e8: 2200 movs r2, #0
  40411. 80112ea: 66da str r2, [r3, #108] @ 0x6c
  40412. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  40413. 80112ec: 687b ldr r3, [r7, #4]
  40414. 80112ee: 681b ldr r3, [r3, #0]
  40415. 80112f0: 64fb str r3, [r7, #76] @ 0x4c
  40416. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40417. 80112f2: 6cfb ldr r3, [r7, #76] @ 0x4c
  40418. 80112f4: e853 3f00 ldrex r3, [r3]
  40419. 80112f8: 64bb str r3, [r7, #72] @ 0x48
  40420. return(result);
  40421. 80112fa: 6cbb ldr r3, [r7, #72] @ 0x48
  40422. 80112fc: f023 0310 bic.w r3, r3, #16
  40423. 8011300: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  40424. 8011304: 687b ldr r3, [r7, #4]
  40425. 8011306: 681b ldr r3, [r3, #0]
  40426. 8011308: 461a mov r2, r3
  40427. 801130a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  40428. 801130e: 65bb str r3, [r7, #88] @ 0x58
  40429. 8011310: 657a str r2, [r7, #84] @ 0x54
  40430. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40431. 8011312: 6d79 ldr r1, [r7, #84] @ 0x54
  40432. 8011314: 6dba ldr r2, [r7, #88] @ 0x58
  40433. 8011316: e841 2300 strex r3, r2, [r1]
  40434. 801131a: 653b str r3, [r7, #80] @ 0x50
  40435. return(result);
  40436. 801131c: 6d3b ldr r3, [r7, #80] @ 0x50
  40437. 801131e: 2b00 cmp r3, #0
  40438. 8011320: d1e4 bne.n 80112ec <HAL_UART_IRQHandler+0x500>
  40439. /* Last bytes received, so no need as the abort is immediate */
  40440. (void)HAL_DMA_Abort(huart->hdmarx);
  40441. 8011322: 687b ldr r3, [r7, #4]
  40442. 8011324: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40443. 8011328: 4618 mov r0, r3
  40444. 801132a: f7f7 fa7f bl 800882c <HAL_DMA_Abort>
  40445. }
  40446. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  40447. In this case, Rx Event type is Idle Event */
  40448. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  40449. 801132e: 687b ldr r3, [r7, #4]
  40450. 8011330: 2202 movs r2, #2
  40451. 8011332: 671a str r2, [r3, #112] @ 0x70
  40452. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40453. /*Call registered Rx Event callback*/
  40454. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  40455. #else
  40456. /*Call legacy weak Rx Event callback*/
  40457. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  40458. 8011334: 687b ldr r3, [r7, #4]
  40459. 8011336: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  40460. 801133a: 687b ldr r3, [r7, #4]
  40461. 801133c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40462. 8011340: b29b uxth r3, r3
  40463. 8011342: 1ad3 subs r3, r2, r3
  40464. 8011344: b29b uxth r3, r3
  40465. 8011346: 4619 mov r1, r3
  40466. 8011348: 6878 ldr r0, [r7, #4]
  40467. 801134a: f7f3 f873 bl 8004434 <HAL_UARTEx_RxEventCallback>
  40468. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40469. }
  40470. return;
  40471. 801134e: e0fd b.n 801154c <HAL_UART_IRQHandler+0x760>
  40472. 8011350: 40020010 .word 0x40020010
  40473. 8011354: 40020028 .word 0x40020028
  40474. 8011358: 40020040 .word 0x40020040
  40475. 801135c: 40020058 .word 0x40020058
  40476. 8011360: 40020070 .word 0x40020070
  40477. 8011364: 40020088 .word 0x40020088
  40478. 8011368: 400200a0 .word 0x400200a0
  40479. 801136c: 400200b8 .word 0x400200b8
  40480. 8011370: 40020410 .word 0x40020410
  40481. 8011374: 40020428 .word 0x40020428
  40482. 8011378: 40020440 .word 0x40020440
  40483. 801137c: 40020458 .word 0x40020458
  40484. 8011380: 40020470 .word 0x40020470
  40485. 8011384: 40020488 .word 0x40020488
  40486. 8011388: 400204a0 .word 0x400204a0
  40487. 801138c: 400204b8 .word 0x400204b8
  40488. else
  40489. {
  40490. /* DMA mode not enabled */
  40491. /* Check received length : If all expected data are received, do nothing.
  40492. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  40493. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  40494. 8011390: 687b ldr r3, [r7, #4]
  40495. 8011392: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  40496. 8011396: 687b ldr r3, [r7, #4]
  40497. 8011398: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40498. 801139c: b29b uxth r3, r3
  40499. 801139e: 1ad3 subs r3, r2, r3
  40500. 80113a0: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  40501. if ((huart->RxXferCount > 0U)
  40502. 80113a4: 687b ldr r3, [r7, #4]
  40503. 80113a6: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  40504. 80113aa: b29b uxth r3, r3
  40505. 80113ac: 2b00 cmp r3, #0
  40506. 80113ae: f000 80cf beq.w 8011550 <HAL_UART_IRQHandler+0x764>
  40507. && (nb_rx_data > 0U))
  40508. 80113b2: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  40509. 80113b6: 2b00 cmp r3, #0
  40510. 80113b8: f000 80ca beq.w 8011550 <HAL_UART_IRQHandler+0x764>
  40511. {
  40512. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  40513. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  40514. 80113bc: 687b ldr r3, [r7, #4]
  40515. 80113be: 681b ldr r3, [r3, #0]
  40516. 80113c0: 63bb str r3, [r7, #56] @ 0x38
  40517. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40518. 80113c2: 6bbb ldr r3, [r7, #56] @ 0x38
  40519. 80113c4: e853 3f00 ldrex r3, [r3]
  40520. 80113c8: 637b str r3, [r7, #52] @ 0x34
  40521. return(result);
  40522. 80113ca: 6b7b ldr r3, [r7, #52] @ 0x34
  40523. 80113cc: f423 7390 bic.w r3, r3, #288 @ 0x120
  40524. 80113d0: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  40525. 80113d4: 687b ldr r3, [r7, #4]
  40526. 80113d6: 681b ldr r3, [r3, #0]
  40527. 80113d8: 461a mov r2, r3
  40528. 80113da: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  40529. 80113de: 647b str r3, [r7, #68] @ 0x44
  40530. 80113e0: 643a str r2, [r7, #64] @ 0x40
  40531. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40532. 80113e2: 6c39 ldr r1, [r7, #64] @ 0x40
  40533. 80113e4: 6c7a ldr r2, [r7, #68] @ 0x44
  40534. 80113e6: e841 2300 strex r3, r2, [r1]
  40535. 80113ea: 63fb str r3, [r7, #60] @ 0x3c
  40536. return(result);
  40537. 80113ec: 6bfb ldr r3, [r7, #60] @ 0x3c
  40538. 80113ee: 2b00 cmp r3, #0
  40539. 80113f0: d1e4 bne.n 80113bc <HAL_UART_IRQHandler+0x5d0>
  40540. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  40541. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  40542. 80113f2: 687b ldr r3, [r7, #4]
  40543. 80113f4: 681b ldr r3, [r3, #0]
  40544. 80113f6: 3308 adds r3, #8
  40545. 80113f8: 627b str r3, [r7, #36] @ 0x24
  40546. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40547. 80113fa: 6a7b ldr r3, [r7, #36] @ 0x24
  40548. 80113fc: e853 3f00 ldrex r3, [r3]
  40549. 8011400: 623b str r3, [r7, #32]
  40550. return(result);
  40551. 8011402: 6a3a ldr r2, [r7, #32]
  40552. 8011404: 4b55 ldr r3, [pc, #340] @ (801155c <HAL_UART_IRQHandler+0x770>)
  40553. 8011406: 4013 ands r3, r2
  40554. 8011408: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  40555. 801140c: 687b ldr r3, [r7, #4]
  40556. 801140e: 681b ldr r3, [r3, #0]
  40557. 8011410: 3308 adds r3, #8
  40558. 8011412: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  40559. 8011416: 633a str r2, [r7, #48] @ 0x30
  40560. 8011418: 62fb str r3, [r7, #44] @ 0x2c
  40561. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40562. 801141a: 6af9 ldr r1, [r7, #44] @ 0x2c
  40563. 801141c: 6b3a ldr r2, [r7, #48] @ 0x30
  40564. 801141e: e841 2300 strex r3, r2, [r1]
  40565. 8011422: 62bb str r3, [r7, #40] @ 0x28
  40566. return(result);
  40567. 8011424: 6abb ldr r3, [r7, #40] @ 0x28
  40568. 8011426: 2b00 cmp r3, #0
  40569. 8011428: d1e3 bne.n 80113f2 <HAL_UART_IRQHandler+0x606>
  40570. /* Rx process is completed, restore huart->RxState to Ready */
  40571. huart->RxState = HAL_UART_STATE_READY;
  40572. 801142a: 687b ldr r3, [r7, #4]
  40573. 801142c: 2220 movs r2, #32
  40574. 801142e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  40575. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  40576. 8011432: 687b ldr r3, [r7, #4]
  40577. 8011434: 2200 movs r2, #0
  40578. 8011436: 66da str r2, [r3, #108] @ 0x6c
  40579. /* Clear RxISR function pointer */
  40580. huart->RxISR = NULL;
  40581. 8011438: 687b ldr r3, [r7, #4]
  40582. 801143a: 2200 movs r2, #0
  40583. 801143c: 675a str r2, [r3, #116] @ 0x74
  40584. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  40585. 801143e: 687b ldr r3, [r7, #4]
  40586. 8011440: 681b ldr r3, [r3, #0]
  40587. 8011442: 613b str r3, [r7, #16]
  40588. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40589. 8011444: 693b ldr r3, [r7, #16]
  40590. 8011446: e853 3f00 ldrex r3, [r3]
  40591. 801144a: 60fb str r3, [r7, #12]
  40592. return(result);
  40593. 801144c: 68fb ldr r3, [r7, #12]
  40594. 801144e: f023 0310 bic.w r3, r3, #16
  40595. 8011452: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  40596. 8011456: 687b ldr r3, [r7, #4]
  40597. 8011458: 681b ldr r3, [r3, #0]
  40598. 801145a: 461a mov r2, r3
  40599. 801145c: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  40600. 8011460: 61fb str r3, [r7, #28]
  40601. 8011462: 61ba str r2, [r7, #24]
  40602. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40603. 8011464: 69b9 ldr r1, [r7, #24]
  40604. 8011466: 69fa ldr r2, [r7, #28]
  40605. 8011468: e841 2300 strex r3, r2, [r1]
  40606. 801146c: 617b str r3, [r7, #20]
  40607. return(result);
  40608. 801146e: 697b ldr r3, [r7, #20]
  40609. 8011470: 2b00 cmp r3, #0
  40610. 8011472: d1e4 bne.n 801143e <HAL_UART_IRQHandler+0x652>
  40611. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  40612. In this case, Rx Event type is Idle Event */
  40613. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  40614. 8011474: 687b ldr r3, [r7, #4]
  40615. 8011476: 2202 movs r2, #2
  40616. 8011478: 671a str r2, [r3, #112] @ 0x70
  40617. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40618. /*Call registered Rx complete callback*/
  40619. huart->RxEventCallback(huart, nb_rx_data);
  40620. #else
  40621. /*Call legacy weak Rx Event callback*/
  40622. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  40623. 801147a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  40624. 801147e: 4619 mov r1, r3
  40625. 8011480: 6878 ldr r0, [r7, #4]
  40626. 8011482: f7f2 ffd7 bl 8004434 <HAL_UARTEx_RxEventCallback>
  40627. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40628. }
  40629. return;
  40630. 8011486: e063 b.n 8011550 <HAL_UART_IRQHandler+0x764>
  40631. }
  40632. }
  40633. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  40634. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  40635. 8011488: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40636. 801148c: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  40637. 8011490: 2b00 cmp r3, #0
  40638. 8011492: d00e beq.n 80114b2 <HAL_UART_IRQHandler+0x6c6>
  40639. 8011494: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40640. 8011498: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  40641. 801149c: 2b00 cmp r3, #0
  40642. 801149e: d008 beq.n 80114b2 <HAL_UART_IRQHandler+0x6c6>
  40643. {
  40644. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  40645. 80114a0: 687b ldr r3, [r7, #4]
  40646. 80114a2: 681b ldr r3, [r3, #0]
  40647. 80114a4: f44f 1280 mov.w r2, #1048576 @ 0x100000
  40648. 80114a8: 621a str r2, [r3, #32]
  40649. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40650. /* Call registered Wakeup Callback */
  40651. huart->WakeupCallback(huart);
  40652. #else
  40653. /* Call legacy weak Wakeup Callback */
  40654. HAL_UARTEx_WakeupCallback(huart);
  40655. 80114aa: 6878 ldr r0, [r7, #4]
  40656. 80114ac: f002 f80c bl 80134c8 <HAL_UARTEx_WakeupCallback>
  40657. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40658. return;
  40659. 80114b0: e051 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40660. }
  40661. /* UART in mode Transmitter ------------------------------------------------*/
  40662. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  40663. 80114b2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40664. 80114b6: f003 0380 and.w r3, r3, #128 @ 0x80
  40665. 80114ba: 2b00 cmp r3, #0
  40666. 80114bc: d014 beq.n 80114e8 <HAL_UART_IRQHandler+0x6fc>
  40667. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  40668. 80114be: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40669. 80114c2: f003 0380 and.w r3, r3, #128 @ 0x80
  40670. 80114c6: 2b00 cmp r3, #0
  40671. 80114c8: d105 bne.n 80114d6 <HAL_UART_IRQHandler+0x6ea>
  40672. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  40673. 80114ca: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40674. 80114ce: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  40675. 80114d2: 2b00 cmp r3, #0
  40676. 80114d4: d008 beq.n 80114e8 <HAL_UART_IRQHandler+0x6fc>
  40677. {
  40678. if (huart->TxISR != NULL)
  40679. 80114d6: 687b ldr r3, [r7, #4]
  40680. 80114d8: 6f9b ldr r3, [r3, #120] @ 0x78
  40681. 80114da: 2b00 cmp r3, #0
  40682. 80114dc: d03a beq.n 8011554 <HAL_UART_IRQHandler+0x768>
  40683. {
  40684. huart->TxISR(huart);
  40685. 80114de: 687b ldr r3, [r7, #4]
  40686. 80114e0: 6f9b ldr r3, [r3, #120] @ 0x78
  40687. 80114e2: 6878 ldr r0, [r7, #4]
  40688. 80114e4: 4798 blx r3
  40689. }
  40690. return;
  40691. 80114e6: e035 b.n 8011554 <HAL_UART_IRQHandler+0x768>
  40692. }
  40693. /* UART in mode Transmitter (transmission end) -----------------------------*/
  40694. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  40695. 80114e8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40696. 80114ec: f003 0340 and.w r3, r3, #64 @ 0x40
  40697. 80114f0: 2b00 cmp r3, #0
  40698. 80114f2: d009 beq.n 8011508 <HAL_UART_IRQHandler+0x71c>
  40699. 80114f4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40700. 80114f8: f003 0340 and.w r3, r3, #64 @ 0x40
  40701. 80114fc: 2b00 cmp r3, #0
  40702. 80114fe: d003 beq.n 8011508 <HAL_UART_IRQHandler+0x71c>
  40703. {
  40704. UART_EndTransmit_IT(huart);
  40705. 8011500: 6878 ldr r0, [r7, #4]
  40706. 8011502: f001 fa99 bl 8012a38 <UART_EndTransmit_IT>
  40707. return;
  40708. 8011506: e026 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40709. }
  40710. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  40711. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  40712. 8011508: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40713. 801150c: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  40714. 8011510: 2b00 cmp r3, #0
  40715. 8011512: d009 beq.n 8011528 <HAL_UART_IRQHandler+0x73c>
  40716. 8011514: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40717. 8011518: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  40718. 801151c: 2b00 cmp r3, #0
  40719. 801151e: d003 beq.n 8011528 <HAL_UART_IRQHandler+0x73c>
  40720. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40721. /* Call registered Tx Fifo Empty Callback */
  40722. huart->TxFifoEmptyCallback(huart);
  40723. #else
  40724. /* Call legacy weak Tx Fifo Empty Callback */
  40725. HAL_UARTEx_TxFifoEmptyCallback(huart);
  40726. 8011520: 6878 ldr r0, [r7, #4]
  40727. 8011522: f001 ffe5 bl 80134f0 <HAL_UARTEx_TxFifoEmptyCallback>
  40728. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40729. return;
  40730. 8011526: e016 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40731. }
  40732. /* UART RX Fifo Full occurred ----------------------------------------------*/
  40733. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  40734. 8011528: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40735. 801152c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  40736. 8011530: 2b00 cmp r3, #0
  40737. 8011532: d010 beq.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40738. 8011534: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40739. 8011538: 2b00 cmp r3, #0
  40740. 801153a: da0c bge.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40741. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40742. /* Call registered Rx Fifo Full Callback */
  40743. huart->RxFifoFullCallback(huart);
  40744. #else
  40745. /* Call legacy weak Rx Fifo Full Callback */
  40746. HAL_UARTEx_RxFifoFullCallback(huart);
  40747. 801153c: 6878 ldr r0, [r7, #4]
  40748. 801153e: f001 ffcd bl 80134dc <HAL_UARTEx_RxFifoFullCallback>
  40749. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40750. return;
  40751. 8011542: e008 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40752. return;
  40753. 8011544: bf00 nop
  40754. 8011546: e006 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40755. return;
  40756. 8011548: bf00 nop
  40757. 801154a: e004 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40758. return;
  40759. 801154c: bf00 nop
  40760. 801154e: e002 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40761. return;
  40762. 8011550: bf00 nop
  40763. 8011552: e000 b.n 8011556 <HAL_UART_IRQHandler+0x76a>
  40764. return;
  40765. 8011554: bf00 nop
  40766. }
  40767. }
  40768. 8011556: 37e8 adds r7, #232 @ 0xe8
  40769. 8011558: 46bd mov sp, r7
  40770. 801155a: bd80 pop {r7, pc}
  40771. 801155c: effffffe .word 0xeffffffe
  40772. 08011560 <HAL_UART_ErrorCallback>:
  40773. * @brief UART error callback.
  40774. * @param huart UART handle.
  40775. * @retval None
  40776. */
  40777. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  40778. {
  40779. 8011560: b480 push {r7}
  40780. 8011562: b083 sub sp, #12
  40781. 8011564: af00 add r7, sp, #0
  40782. 8011566: 6078 str r0, [r7, #4]
  40783. UNUSED(huart);
  40784. /* NOTE : This function should not be modified, when the callback is needed,
  40785. the HAL_UART_ErrorCallback can be implemented in the user file.
  40786. */
  40787. }
  40788. 8011568: bf00 nop
  40789. 801156a: 370c adds r7, #12
  40790. 801156c: 46bd mov sp, r7
  40791. 801156e: f85d 7b04 ldr.w r7, [sp], #4
  40792. 8011572: 4770 bx lr
  40793. 08011574 <UART_SetConfig>:
  40794. * @brief Configure the UART peripheral.
  40795. * @param huart UART handle.
  40796. * @retval HAL status
  40797. */
  40798. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  40799. {
  40800. 8011574: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  40801. 8011578: b092 sub sp, #72 @ 0x48
  40802. 801157a: af00 add r7, sp, #0
  40803. 801157c: 6178 str r0, [r7, #20]
  40804. uint32_t tmpreg;
  40805. uint16_t brrtemp;
  40806. UART_ClockSourceTypeDef clocksource;
  40807. uint32_t usartdiv;
  40808. HAL_StatusTypeDef ret = HAL_OK;
  40809. 801157e: 2300 movs r3, #0
  40810. 8011580: f887 3042 strb.w r3, [r7, #66] @ 0x42
  40811. * the UART Word Length, Parity, Mode and oversampling:
  40812. * set the M bits according to huart->Init.WordLength value
  40813. * set PCE and PS bits according to huart->Init.Parity value
  40814. * set TE and RE bits according to huart->Init.Mode value
  40815. * set OVER8 bit according to huart->Init.OverSampling value */
  40816. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  40817. 8011584: 697b ldr r3, [r7, #20]
  40818. 8011586: 689a ldr r2, [r3, #8]
  40819. 8011588: 697b ldr r3, [r7, #20]
  40820. 801158a: 691b ldr r3, [r3, #16]
  40821. 801158c: 431a orrs r2, r3
  40822. 801158e: 697b ldr r3, [r7, #20]
  40823. 8011590: 695b ldr r3, [r3, #20]
  40824. 8011592: 431a orrs r2, r3
  40825. 8011594: 697b ldr r3, [r7, #20]
  40826. 8011596: 69db ldr r3, [r3, #28]
  40827. 8011598: 4313 orrs r3, r2
  40828. 801159a: 647b str r3, [r7, #68] @ 0x44
  40829. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  40830. 801159c: 697b ldr r3, [r7, #20]
  40831. 801159e: 681b ldr r3, [r3, #0]
  40832. 80115a0: 681a ldr r2, [r3, #0]
  40833. 80115a2: 4bbe ldr r3, [pc, #760] @ (801189c <UART_SetConfig+0x328>)
  40834. 80115a4: 4013 ands r3, r2
  40835. 80115a6: 697a ldr r2, [r7, #20]
  40836. 80115a8: 6812 ldr r2, [r2, #0]
  40837. 80115aa: 6c79 ldr r1, [r7, #68] @ 0x44
  40838. 80115ac: 430b orrs r3, r1
  40839. 80115ae: 6013 str r3, [r2, #0]
  40840. /*-------------------------- USART CR2 Configuration -----------------------*/
  40841. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  40842. * to huart->Init.StopBits value */
  40843. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  40844. 80115b0: 697b ldr r3, [r7, #20]
  40845. 80115b2: 681b ldr r3, [r3, #0]
  40846. 80115b4: 685b ldr r3, [r3, #4]
  40847. 80115b6: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  40848. 80115ba: 697b ldr r3, [r7, #20]
  40849. 80115bc: 68da ldr r2, [r3, #12]
  40850. 80115be: 697b ldr r3, [r7, #20]
  40851. 80115c0: 681b ldr r3, [r3, #0]
  40852. 80115c2: 430a orrs r2, r1
  40853. 80115c4: 605a str r2, [r3, #4]
  40854. /* Configure
  40855. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  40856. * to huart->Init.HwFlowCtl value
  40857. * - one-bit sampling method versus three samples' majority rule according
  40858. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  40859. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  40860. 80115c6: 697b ldr r3, [r7, #20]
  40861. 80115c8: 699b ldr r3, [r3, #24]
  40862. 80115ca: 647b str r3, [r7, #68] @ 0x44
  40863. if (!(UART_INSTANCE_LOWPOWER(huart)))
  40864. 80115cc: 697b ldr r3, [r7, #20]
  40865. 80115ce: 681b ldr r3, [r3, #0]
  40866. 80115d0: 4ab3 ldr r2, [pc, #716] @ (80118a0 <UART_SetConfig+0x32c>)
  40867. 80115d2: 4293 cmp r3, r2
  40868. 80115d4: d004 beq.n 80115e0 <UART_SetConfig+0x6c>
  40869. {
  40870. tmpreg |= huart->Init.OneBitSampling;
  40871. 80115d6: 697b ldr r3, [r7, #20]
  40872. 80115d8: 6a1b ldr r3, [r3, #32]
  40873. 80115da: 6c7a ldr r2, [r7, #68] @ 0x44
  40874. 80115dc: 4313 orrs r3, r2
  40875. 80115de: 647b str r3, [r7, #68] @ 0x44
  40876. }
  40877. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  40878. 80115e0: 697b ldr r3, [r7, #20]
  40879. 80115e2: 681b ldr r3, [r3, #0]
  40880. 80115e4: 689a ldr r2, [r3, #8]
  40881. 80115e6: 4baf ldr r3, [pc, #700] @ (80118a4 <UART_SetConfig+0x330>)
  40882. 80115e8: 4013 ands r3, r2
  40883. 80115ea: 697a ldr r2, [r7, #20]
  40884. 80115ec: 6812 ldr r2, [r2, #0]
  40885. 80115ee: 6c79 ldr r1, [r7, #68] @ 0x44
  40886. 80115f0: 430b orrs r3, r1
  40887. 80115f2: 6093 str r3, [r2, #8]
  40888. /*-------------------------- USART PRESC Configuration -----------------------*/
  40889. /* Configure
  40890. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  40891. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  40892. 80115f4: 697b ldr r3, [r7, #20]
  40893. 80115f6: 681b ldr r3, [r3, #0]
  40894. 80115f8: 6adb ldr r3, [r3, #44] @ 0x2c
  40895. 80115fa: f023 010f bic.w r1, r3, #15
  40896. 80115fe: 697b ldr r3, [r7, #20]
  40897. 8011600: 6a5a ldr r2, [r3, #36] @ 0x24
  40898. 8011602: 697b ldr r3, [r7, #20]
  40899. 8011604: 681b ldr r3, [r3, #0]
  40900. 8011606: 430a orrs r2, r1
  40901. 8011608: 62da str r2, [r3, #44] @ 0x2c
  40902. /*-------------------------- USART BRR Configuration -----------------------*/
  40903. UART_GETCLOCKSOURCE(huart, clocksource);
  40904. 801160a: 697b ldr r3, [r7, #20]
  40905. 801160c: 681b ldr r3, [r3, #0]
  40906. 801160e: 4aa6 ldr r2, [pc, #664] @ (80118a8 <UART_SetConfig+0x334>)
  40907. 8011610: 4293 cmp r3, r2
  40908. 8011612: d177 bne.n 8011704 <UART_SetConfig+0x190>
  40909. 8011614: 4ba5 ldr r3, [pc, #660] @ (80118ac <UART_SetConfig+0x338>)
  40910. 8011616: 6d5b ldr r3, [r3, #84] @ 0x54
  40911. 8011618: f003 0338 and.w r3, r3, #56 @ 0x38
  40912. 801161c: 2b28 cmp r3, #40 @ 0x28
  40913. 801161e: d86d bhi.n 80116fc <UART_SetConfig+0x188>
  40914. 8011620: a201 add r2, pc, #4 @ (adr r2, 8011628 <UART_SetConfig+0xb4>)
  40915. 8011622: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40916. 8011626: bf00 nop
  40917. 8011628: 080116cd .word 0x080116cd
  40918. 801162c: 080116fd .word 0x080116fd
  40919. 8011630: 080116fd .word 0x080116fd
  40920. 8011634: 080116fd .word 0x080116fd
  40921. 8011638: 080116fd .word 0x080116fd
  40922. 801163c: 080116fd .word 0x080116fd
  40923. 8011640: 080116fd .word 0x080116fd
  40924. 8011644: 080116fd .word 0x080116fd
  40925. 8011648: 080116d5 .word 0x080116d5
  40926. 801164c: 080116fd .word 0x080116fd
  40927. 8011650: 080116fd .word 0x080116fd
  40928. 8011654: 080116fd .word 0x080116fd
  40929. 8011658: 080116fd .word 0x080116fd
  40930. 801165c: 080116fd .word 0x080116fd
  40931. 8011660: 080116fd .word 0x080116fd
  40932. 8011664: 080116fd .word 0x080116fd
  40933. 8011668: 080116dd .word 0x080116dd
  40934. 801166c: 080116fd .word 0x080116fd
  40935. 8011670: 080116fd .word 0x080116fd
  40936. 8011674: 080116fd .word 0x080116fd
  40937. 8011678: 080116fd .word 0x080116fd
  40938. 801167c: 080116fd .word 0x080116fd
  40939. 8011680: 080116fd .word 0x080116fd
  40940. 8011684: 080116fd .word 0x080116fd
  40941. 8011688: 080116e5 .word 0x080116e5
  40942. 801168c: 080116fd .word 0x080116fd
  40943. 8011690: 080116fd .word 0x080116fd
  40944. 8011694: 080116fd .word 0x080116fd
  40945. 8011698: 080116fd .word 0x080116fd
  40946. 801169c: 080116fd .word 0x080116fd
  40947. 80116a0: 080116fd .word 0x080116fd
  40948. 80116a4: 080116fd .word 0x080116fd
  40949. 80116a8: 080116ed .word 0x080116ed
  40950. 80116ac: 080116fd .word 0x080116fd
  40951. 80116b0: 080116fd .word 0x080116fd
  40952. 80116b4: 080116fd .word 0x080116fd
  40953. 80116b8: 080116fd .word 0x080116fd
  40954. 80116bc: 080116fd .word 0x080116fd
  40955. 80116c0: 080116fd .word 0x080116fd
  40956. 80116c4: 080116fd .word 0x080116fd
  40957. 80116c8: 080116f5 .word 0x080116f5
  40958. 80116cc: 2301 movs r3, #1
  40959. 80116ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40960. 80116d2: e222 b.n 8011b1a <UART_SetConfig+0x5a6>
  40961. 80116d4: 2304 movs r3, #4
  40962. 80116d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40963. 80116da: e21e b.n 8011b1a <UART_SetConfig+0x5a6>
  40964. 80116dc: 2308 movs r3, #8
  40965. 80116de: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40966. 80116e2: e21a b.n 8011b1a <UART_SetConfig+0x5a6>
  40967. 80116e4: 2310 movs r3, #16
  40968. 80116e6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40969. 80116ea: e216 b.n 8011b1a <UART_SetConfig+0x5a6>
  40970. 80116ec: 2320 movs r3, #32
  40971. 80116ee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40972. 80116f2: e212 b.n 8011b1a <UART_SetConfig+0x5a6>
  40973. 80116f4: 2340 movs r3, #64 @ 0x40
  40974. 80116f6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40975. 80116fa: e20e b.n 8011b1a <UART_SetConfig+0x5a6>
  40976. 80116fc: 2380 movs r3, #128 @ 0x80
  40977. 80116fe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40978. 8011702: e20a b.n 8011b1a <UART_SetConfig+0x5a6>
  40979. 8011704: 697b ldr r3, [r7, #20]
  40980. 8011706: 681b ldr r3, [r3, #0]
  40981. 8011708: 4a69 ldr r2, [pc, #420] @ (80118b0 <UART_SetConfig+0x33c>)
  40982. 801170a: 4293 cmp r3, r2
  40983. 801170c: d130 bne.n 8011770 <UART_SetConfig+0x1fc>
  40984. 801170e: 4b67 ldr r3, [pc, #412] @ (80118ac <UART_SetConfig+0x338>)
  40985. 8011710: 6d5b ldr r3, [r3, #84] @ 0x54
  40986. 8011712: f003 0307 and.w r3, r3, #7
  40987. 8011716: 2b05 cmp r3, #5
  40988. 8011718: d826 bhi.n 8011768 <UART_SetConfig+0x1f4>
  40989. 801171a: a201 add r2, pc, #4 @ (adr r2, 8011720 <UART_SetConfig+0x1ac>)
  40990. 801171c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40991. 8011720: 08011739 .word 0x08011739
  40992. 8011724: 08011741 .word 0x08011741
  40993. 8011728: 08011749 .word 0x08011749
  40994. 801172c: 08011751 .word 0x08011751
  40995. 8011730: 08011759 .word 0x08011759
  40996. 8011734: 08011761 .word 0x08011761
  40997. 8011738: 2300 movs r3, #0
  40998. 801173a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40999. 801173e: e1ec b.n 8011b1a <UART_SetConfig+0x5a6>
  41000. 8011740: 2304 movs r3, #4
  41001. 8011742: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41002. 8011746: e1e8 b.n 8011b1a <UART_SetConfig+0x5a6>
  41003. 8011748: 2308 movs r3, #8
  41004. 801174a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41005. 801174e: e1e4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41006. 8011750: 2310 movs r3, #16
  41007. 8011752: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41008. 8011756: e1e0 b.n 8011b1a <UART_SetConfig+0x5a6>
  41009. 8011758: 2320 movs r3, #32
  41010. 801175a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41011. 801175e: e1dc b.n 8011b1a <UART_SetConfig+0x5a6>
  41012. 8011760: 2340 movs r3, #64 @ 0x40
  41013. 8011762: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41014. 8011766: e1d8 b.n 8011b1a <UART_SetConfig+0x5a6>
  41015. 8011768: 2380 movs r3, #128 @ 0x80
  41016. 801176a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41017. 801176e: e1d4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41018. 8011770: 697b ldr r3, [r7, #20]
  41019. 8011772: 681b ldr r3, [r3, #0]
  41020. 8011774: 4a4f ldr r2, [pc, #316] @ (80118b4 <UART_SetConfig+0x340>)
  41021. 8011776: 4293 cmp r3, r2
  41022. 8011778: d130 bne.n 80117dc <UART_SetConfig+0x268>
  41023. 801177a: 4b4c ldr r3, [pc, #304] @ (80118ac <UART_SetConfig+0x338>)
  41024. 801177c: 6d5b ldr r3, [r3, #84] @ 0x54
  41025. 801177e: f003 0307 and.w r3, r3, #7
  41026. 8011782: 2b05 cmp r3, #5
  41027. 8011784: d826 bhi.n 80117d4 <UART_SetConfig+0x260>
  41028. 8011786: a201 add r2, pc, #4 @ (adr r2, 801178c <UART_SetConfig+0x218>)
  41029. 8011788: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41030. 801178c: 080117a5 .word 0x080117a5
  41031. 8011790: 080117ad .word 0x080117ad
  41032. 8011794: 080117b5 .word 0x080117b5
  41033. 8011798: 080117bd .word 0x080117bd
  41034. 801179c: 080117c5 .word 0x080117c5
  41035. 80117a0: 080117cd .word 0x080117cd
  41036. 80117a4: 2300 movs r3, #0
  41037. 80117a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41038. 80117aa: e1b6 b.n 8011b1a <UART_SetConfig+0x5a6>
  41039. 80117ac: 2304 movs r3, #4
  41040. 80117ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41041. 80117b2: e1b2 b.n 8011b1a <UART_SetConfig+0x5a6>
  41042. 80117b4: 2308 movs r3, #8
  41043. 80117b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41044. 80117ba: e1ae b.n 8011b1a <UART_SetConfig+0x5a6>
  41045. 80117bc: 2310 movs r3, #16
  41046. 80117be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41047. 80117c2: e1aa b.n 8011b1a <UART_SetConfig+0x5a6>
  41048. 80117c4: 2320 movs r3, #32
  41049. 80117c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41050. 80117ca: e1a6 b.n 8011b1a <UART_SetConfig+0x5a6>
  41051. 80117cc: 2340 movs r3, #64 @ 0x40
  41052. 80117ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41053. 80117d2: e1a2 b.n 8011b1a <UART_SetConfig+0x5a6>
  41054. 80117d4: 2380 movs r3, #128 @ 0x80
  41055. 80117d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41056. 80117da: e19e b.n 8011b1a <UART_SetConfig+0x5a6>
  41057. 80117dc: 697b ldr r3, [r7, #20]
  41058. 80117de: 681b ldr r3, [r3, #0]
  41059. 80117e0: 4a35 ldr r2, [pc, #212] @ (80118b8 <UART_SetConfig+0x344>)
  41060. 80117e2: 4293 cmp r3, r2
  41061. 80117e4: d130 bne.n 8011848 <UART_SetConfig+0x2d4>
  41062. 80117e6: 4b31 ldr r3, [pc, #196] @ (80118ac <UART_SetConfig+0x338>)
  41063. 80117e8: 6d5b ldr r3, [r3, #84] @ 0x54
  41064. 80117ea: f003 0307 and.w r3, r3, #7
  41065. 80117ee: 2b05 cmp r3, #5
  41066. 80117f0: d826 bhi.n 8011840 <UART_SetConfig+0x2cc>
  41067. 80117f2: a201 add r2, pc, #4 @ (adr r2, 80117f8 <UART_SetConfig+0x284>)
  41068. 80117f4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41069. 80117f8: 08011811 .word 0x08011811
  41070. 80117fc: 08011819 .word 0x08011819
  41071. 8011800: 08011821 .word 0x08011821
  41072. 8011804: 08011829 .word 0x08011829
  41073. 8011808: 08011831 .word 0x08011831
  41074. 801180c: 08011839 .word 0x08011839
  41075. 8011810: 2300 movs r3, #0
  41076. 8011812: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41077. 8011816: e180 b.n 8011b1a <UART_SetConfig+0x5a6>
  41078. 8011818: 2304 movs r3, #4
  41079. 801181a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41080. 801181e: e17c b.n 8011b1a <UART_SetConfig+0x5a6>
  41081. 8011820: 2308 movs r3, #8
  41082. 8011822: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41083. 8011826: e178 b.n 8011b1a <UART_SetConfig+0x5a6>
  41084. 8011828: 2310 movs r3, #16
  41085. 801182a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41086. 801182e: e174 b.n 8011b1a <UART_SetConfig+0x5a6>
  41087. 8011830: 2320 movs r3, #32
  41088. 8011832: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41089. 8011836: e170 b.n 8011b1a <UART_SetConfig+0x5a6>
  41090. 8011838: 2340 movs r3, #64 @ 0x40
  41091. 801183a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41092. 801183e: e16c b.n 8011b1a <UART_SetConfig+0x5a6>
  41093. 8011840: 2380 movs r3, #128 @ 0x80
  41094. 8011842: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41095. 8011846: e168 b.n 8011b1a <UART_SetConfig+0x5a6>
  41096. 8011848: 697b ldr r3, [r7, #20]
  41097. 801184a: 681b ldr r3, [r3, #0]
  41098. 801184c: 4a1b ldr r2, [pc, #108] @ (80118bc <UART_SetConfig+0x348>)
  41099. 801184e: 4293 cmp r3, r2
  41100. 8011850: d142 bne.n 80118d8 <UART_SetConfig+0x364>
  41101. 8011852: 4b16 ldr r3, [pc, #88] @ (80118ac <UART_SetConfig+0x338>)
  41102. 8011854: 6d5b ldr r3, [r3, #84] @ 0x54
  41103. 8011856: f003 0307 and.w r3, r3, #7
  41104. 801185a: 2b05 cmp r3, #5
  41105. 801185c: d838 bhi.n 80118d0 <UART_SetConfig+0x35c>
  41106. 801185e: a201 add r2, pc, #4 @ (adr r2, 8011864 <UART_SetConfig+0x2f0>)
  41107. 8011860: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41108. 8011864: 0801187d .word 0x0801187d
  41109. 8011868: 08011885 .word 0x08011885
  41110. 801186c: 0801188d .word 0x0801188d
  41111. 8011870: 08011895 .word 0x08011895
  41112. 8011874: 080118c1 .word 0x080118c1
  41113. 8011878: 080118c9 .word 0x080118c9
  41114. 801187c: 2300 movs r3, #0
  41115. 801187e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41116. 8011882: e14a b.n 8011b1a <UART_SetConfig+0x5a6>
  41117. 8011884: 2304 movs r3, #4
  41118. 8011886: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41119. 801188a: e146 b.n 8011b1a <UART_SetConfig+0x5a6>
  41120. 801188c: 2308 movs r3, #8
  41121. 801188e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41122. 8011892: e142 b.n 8011b1a <UART_SetConfig+0x5a6>
  41123. 8011894: 2310 movs r3, #16
  41124. 8011896: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41125. 801189a: e13e b.n 8011b1a <UART_SetConfig+0x5a6>
  41126. 801189c: cfff69f3 .word 0xcfff69f3
  41127. 80118a0: 58000c00 .word 0x58000c00
  41128. 80118a4: 11fff4ff .word 0x11fff4ff
  41129. 80118a8: 40011000 .word 0x40011000
  41130. 80118ac: 58024400 .word 0x58024400
  41131. 80118b0: 40004400 .word 0x40004400
  41132. 80118b4: 40004800 .word 0x40004800
  41133. 80118b8: 40004c00 .word 0x40004c00
  41134. 80118bc: 40005000 .word 0x40005000
  41135. 80118c0: 2320 movs r3, #32
  41136. 80118c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41137. 80118c6: e128 b.n 8011b1a <UART_SetConfig+0x5a6>
  41138. 80118c8: 2340 movs r3, #64 @ 0x40
  41139. 80118ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41140. 80118ce: e124 b.n 8011b1a <UART_SetConfig+0x5a6>
  41141. 80118d0: 2380 movs r3, #128 @ 0x80
  41142. 80118d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41143. 80118d6: e120 b.n 8011b1a <UART_SetConfig+0x5a6>
  41144. 80118d8: 697b ldr r3, [r7, #20]
  41145. 80118da: 681b ldr r3, [r3, #0]
  41146. 80118dc: 4acb ldr r2, [pc, #812] @ (8011c0c <UART_SetConfig+0x698>)
  41147. 80118de: 4293 cmp r3, r2
  41148. 80118e0: d176 bne.n 80119d0 <UART_SetConfig+0x45c>
  41149. 80118e2: 4bcb ldr r3, [pc, #812] @ (8011c10 <UART_SetConfig+0x69c>)
  41150. 80118e4: 6d5b ldr r3, [r3, #84] @ 0x54
  41151. 80118e6: f003 0338 and.w r3, r3, #56 @ 0x38
  41152. 80118ea: 2b28 cmp r3, #40 @ 0x28
  41153. 80118ec: d86c bhi.n 80119c8 <UART_SetConfig+0x454>
  41154. 80118ee: a201 add r2, pc, #4 @ (adr r2, 80118f4 <UART_SetConfig+0x380>)
  41155. 80118f0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41156. 80118f4: 08011999 .word 0x08011999
  41157. 80118f8: 080119c9 .word 0x080119c9
  41158. 80118fc: 080119c9 .word 0x080119c9
  41159. 8011900: 080119c9 .word 0x080119c9
  41160. 8011904: 080119c9 .word 0x080119c9
  41161. 8011908: 080119c9 .word 0x080119c9
  41162. 801190c: 080119c9 .word 0x080119c9
  41163. 8011910: 080119c9 .word 0x080119c9
  41164. 8011914: 080119a1 .word 0x080119a1
  41165. 8011918: 080119c9 .word 0x080119c9
  41166. 801191c: 080119c9 .word 0x080119c9
  41167. 8011920: 080119c9 .word 0x080119c9
  41168. 8011924: 080119c9 .word 0x080119c9
  41169. 8011928: 080119c9 .word 0x080119c9
  41170. 801192c: 080119c9 .word 0x080119c9
  41171. 8011930: 080119c9 .word 0x080119c9
  41172. 8011934: 080119a9 .word 0x080119a9
  41173. 8011938: 080119c9 .word 0x080119c9
  41174. 801193c: 080119c9 .word 0x080119c9
  41175. 8011940: 080119c9 .word 0x080119c9
  41176. 8011944: 080119c9 .word 0x080119c9
  41177. 8011948: 080119c9 .word 0x080119c9
  41178. 801194c: 080119c9 .word 0x080119c9
  41179. 8011950: 080119c9 .word 0x080119c9
  41180. 8011954: 080119b1 .word 0x080119b1
  41181. 8011958: 080119c9 .word 0x080119c9
  41182. 801195c: 080119c9 .word 0x080119c9
  41183. 8011960: 080119c9 .word 0x080119c9
  41184. 8011964: 080119c9 .word 0x080119c9
  41185. 8011968: 080119c9 .word 0x080119c9
  41186. 801196c: 080119c9 .word 0x080119c9
  41187. 8011970: 080119c9 .word 0x080119c9
  41188. 8011974: 080119b9 .word 0x080119b9
  41189. 8011978: 080119c9 .word 0x080119c9
  41190. 801197c: 080119c9 .word 0x080119c9
  41191. 8011980: 080119c9 .word 0x080119c9
  41192. 8011984: 080119c9 .word 0x080119c9
  41193. 8011988: 080119c9 .word 0x080119c9
  41194. 801198c: 080119c9 .word 0x080119c9
  41195. 8011990: 080119c9 .word 0x080119c9
  41196. 8011994: 080119c1 .word 0x080119c1
  41197. 8011998: 2301 movs r3, #1
  41198. 801199a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41199. 801199e: e0bc b.n 8011b1a <UART_SetConfig+0x5a6>
  41200. 80119a0: 2304 movs r3, #4
  41201. 80119a2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41202. 80119a6: e0b8 b.n 8011b1a <UART_SetConfig+0x5a6>
  41203. 80119a8: 2308 movs r3, #8
  41204. 80119aa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41205. 80119ae: e0b4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41206. 80119b0: 2310 movs r3, #16
  41207. 80119b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41208. 80119b6: e0b0 b.n 8011b1a <UART_SetConfig+0x5a6>
  41209. 80119b8: 2320 movs r3, #32
  41210. 80119ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41211. 80119be: e0ac b.n 8011b1a <UART_SetConfig+0x5a6>
  41212. 80119c0: 2340 movs r3, #64 @ 0x40
  41213. 80119c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41214. 80119c6: e0a8 b.n 8011b1a <UART_SetConfig+0x5a6>
  41215. 80119c8: 2380 movs r3, #128 @ 0x80
  41216. 80119ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41217. 80119ce: e0a4 b.n 8011b1a <UART_SetConfig+0x5a6>
  41218. 80119d0: 697b ldr r3, [r7, #20]
  41219. 80119d2: 681b ldr r3, [r3, #0]
  41220. 80119d4: 4a8f ldr r2, [pc, #572] @ (8011c14 <UART_SetConfig+0x6a0>)
  41221. 80119d6: 4293 cmp r3, r2
  41222. 80119d8: d130 bne.n 8011a3c <UART_SetConfig+0x4c8>
  41223. 80119da: 4b8d ldr r3, [pc, #564] @ (8011c10 <UART_SetConfig+0x69c>)
  41224. 80119dc: 6d5b ldr r3, [r3, #84] @ 0x54
  41225. 80119de: f003 0307 and.w r3, r3, #7
  41226. 80119e2: 2b05 cmp r3, #5
  41227. 80119e4: d826 bhi.n 8011a34 <UART_SetConfig+0x4c0>
  41228. 80119e6: a201 add r2, pc, #4 @ (adr r2, 80119ec <UART_SetConfig+0x478>)
  41229. 80119e8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41230. 80119ec: 08011a05 .word 0x08011a05
  41231. 80119f0: 08011a0d .word 0x08011a0d
  41232. 80119f4: 08011a15 .word 0x08011a15
  41233. 80119f8: 08011a1d .word 0x08011a1d
  41234. 80119fc: 08011a25 .word 0x08011a25
  41235. 8011a00: 08011a2d .word 0x08011a2d
  41236. 8011a04: 2300 movs r3, #0
  41237. 8011a06: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41238. 8011a0a: e086 b.n 8011b1a <UART_SetConfig+0x5a6>
  41239. 8011a0c: 2304 movs r3, #4
  41240. 8011a0e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41241. 8011a12: e082 b.n 8011b1a <UART_SetConfig+0x5a6>
  41242. 8011a14: 2308 movs r3, #8
  41243. 8011a16: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41244. 8011a1a: e07e b.n 8011b1a <UART_SetConfig+0x5a6>
  41245. 8011a1c: 2310 movs r3, #16
  41246. 8011a1e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41247. 8011a22: e07a b.n 8011b1a <UART_SetConfig+0x5a6>
  41248. 8011a24: 2320 movs r3, #32
  41249. 8011a26: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41250. 8011a2a: e076 b.n 8011b1a <UART_SetConfig+0x5a6>
  41251. 8011a2c: 2340 movs r3, #64 @ 0x40
  41252. 8011a2e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41253. 8011a32: e072 b.n 8011b1a <UART_SetConfig+0x5a6>
  41254. 8011a34: 2380 movs r3, #128 @ 0x80
  41255. 8011a36: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41256. 8011a3a: e06e b.n 8011b1a <UART_SetConfig+0x5a6>
  41257. 8011a3c: 697b ldr r3, [r7, #20]
  41258. 8011a3e: 681b ldr r3, [r3, #0]
  41259. 8011a40: 4a75 ldr r2, [pc, #468] @ (8011c18 <UART_SetConfig+0x6a4>)
  41260. 8011a42: 4293 cmp r3, r2
  41261. 8011a44: d130 bne.n 8011aa8 <UART_SetConfig+0x534>
  41262. 8011a46: 4b72 ldr r3, [pc, #456] @ (8011c10 <UART_SetConfig+0x69c>)
  41263. 8011a48: 6d5b ldr r3, [r3, #84] @ 0x54
  41264. 8011a4a: f003 0307 and.w r3, r3, #7
  41265. 8011a4e: 2b05 cmp r3, #5
  41266. 8011a50: d826 bhi.n 8011aa0 <UART_SetConfig+0x52c>
  41267. 8011a52: a201 add r2, pc, #4 @ (adr r2, 8011a58 <UART_SetConfig+0x4e4>)
  41268. 8011a54: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41269. 8011a58: 08011a71 .word 0x08011a71
  41270. 8011a5c: 08011a79 .word 0x08011a79
  41271. 8011a60: 08011a81 .word 0x08011a81
  41272. 8011a64: 08011a89 .word 0x08011a89
  41273. 8011a68: 08011a91 .word 0x08011a91
  41274. 8011a6c: 08011a99 .word 0x08011a99
  41275. 8011a70: 2300 movs r3, #0
  41276. 8011a72: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41277. 8011a76: e050 b.n 8011b1a <UART_SetConfig+0x5a6>
  41278. 8011a78: 2304 movs r3, #4
  41279. 8011a7a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41280. 8011a7e: e04c b.n 8011b1a <UART_SetConfig+0x5a6>
  41281. 8011a80: 2308 movs r3, #8
  41282. 8011a82: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41283. 8011a86: e048 b.n 8011b1a <UART_SetConfig+0x5a6>
  41284. 8011a88: 2310 movs r3, #16
  41285. 8011a8a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41286. 8011a8e: e044 b.n 8011b1a <UART_SetConfig+0x5a6>
  41287. 8011a90: 2320 movs r3, #32
  41288. 8011a92: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41289. 8011a96: e040 b.n 8011b1a <UART_SetConfig+0x5a6>
  41290. 8011a98: 2340 movs r3, #64 @ 0x40
  41291. 8011a9a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41292. 8011a9e: e03c b.n 8011b1a <UART_SetConfig+0x5a6>
  41293. 8011aa0: 2380 movs r3, #128 @ 0x80
  41294. 8011aa2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41295. 8011aa6: e038 b.n 8011b1a <UART_SetConfig+0x5a6>
  41296. 8011aa8: 697b ldr r3, [r7, #20]
  41297. 8011aaa: 681b ldr r3, [r3, #0]
  41298. 8011aac: 4a5b ldr r2, [pc, #364] @ (8011c1c <UART_SetConfig+0x6a8>)
  41299. 8011aae: 4293 cmp r3, r2
  41300. 8011ab0: d130 bne.n 8011b14 <UART_SetConfig+0x5a0>
  41301. 8011ab2: 4b57 ldr r3, [pc, #348] @ (8011c10 <UART_SetConfig+0x69c>)
  41302. 8011ab4: 6d9b ldr r3, [r3, #88] @ 0x58
  41303. 8011ab6: f003 0307 and.w r3, r3, #7
  41304. 8011aba: 2b05 cmp r3, #5
  41305. 8011abc: d826 bhi.n 8011b0c <UART_SetConfig+0x598>
  41306. 8011abe: a201 add r2, pc, #4 @ (adr r2, 8011ac4 <UART_SetConfig+0x550>)
  41307. 8011ac0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41308. 8011ac4: 08011add .word 0x08011add
  41309. 8011ac8: 08011ae5 .word 0x08011ae5
  41310. 8011acc: 08011aed .word 0x08011aed
  41311. 8011ad0: 08011af5 .word 0x08011af5
  41312. 8011ad4: 08011afd .word 0x08011afd
  41313. 8011ad8: 08011b05 .word 0x08011b05
  41314. 8011adc: 2302 movs r3, #2
  41315. 8011ade: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41316. 8011ae2: e01a b.n 8011b1a <UART_SetConfig+0x5a6>
  41317. 8011ae4: 2304 movs r3, #4
  41318. 8011ae6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41319. 8011aea: e016 b.n 8011b1a <UART_SetConfig+0x5a6>
  41320. 8011aec: 2308 movs r3, #8
  41321. 8011aee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41322. 8011af2: e012 b.n 8011b1a <UART_SetConfig+0x5a6>
  41323. 8011af4: 2310 movs r3, #16
  41324. 8011af6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41325. 8011afa: e00e b.n 8011b1a <UART_SetConfig+0x5a6>
  41326. 8011afc: 2320 movs r3, #32
  41327. 8011afe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41328. 8011b02: e00a b.n 8011b1a <UART_SetConfig+0x5a6>
  41329. 8011b04: 2340 movs r3, #64 @ 0x40
  41330. 8011b06: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41331. 8011b0a: e006 b.n 8011b1a <UART_SetConfig+0x5a6>
  41332. 8011b0c: 2380 movs r3, #128 @ 0x80
  41333. 8011b0e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41334. 8011b12: e002 b.n 8011b1a <UART_SetConfig+0x5a6>
  41335. 8011b14: 2380 movs r3, #128 @ 0x80
  41336. 8011b16: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41337. /* Check LPUART instance */
  41338. if (UART_INSTANCE_LOWPOWER(huart))
  41339. 8011b1a: 697b ldr r3, [r7, #20]
  41340. 8011b1c: 681b ldr r3, [r3, #0]
  41341. 8011b1e: 4a3f ldr r2, [pc, #252] @ (8011c1c <UART_SetConfig+0x6a8>)
  41342. 8011b20: 4293 cmp r3, r2
  41343. 8011b22: f040 80f8 bne.w 8011d16 <UART_SetConfig+0x7a2>
  41344. {
  41345. /* Retrieve frequency clock */
  41346. switch (clocksource)
  41347. 8011b26: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41348. 8011b2a: 2b20 cmp r3, #32
  41349. 8011b2c: dc46 bgt.n 8011bbc <UART_SetConfig+0x648>
  41350. 8011b2e: 2b02 cmp r3, #2
  41351. 8011b30: f2c0 8082 blt.w 8011c38 <UART_SetConfig+0x6c4>
  41352. 8011b34: 3b02 subs r3, #2
  41353. 8011b36: 2b1e cmp r3, #30
  41354. 8011b38: d87e bhi.n 8011c38 <UART_SetConfig+0x6c4>
  41355. 8011b3a: a201 add r2, pc, #4 @ (adr r2, 8011b40 <UART_SetConfig+0x5cc>)
  41356. 8011b3c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41357. 8011b40: 08011bc3 .word 0x08011bc3
  41358. 8011b44: 08011c39 .word 0x08011c39
  41359. 8011b48: 08011bcb .word 0x08011bcb
  41360. 8011b4c: 08011c39 .word 0x08011c39
  41361. 8011b50: 08011c39 .word 0x08011c39
  41362. 8011b54: 08011c39 .word 0x08011c39
  41363. 8011b58: 08011bdb .word 0x08011bdb
  41364. 8011b5c: 08011c39 .word 0x08011c39
  41365. 8011b60: 08011c39 .word 0x08011c39
  41366. 8011b64: 08011c39 .word 0x08011c39
  41367. 8011b68: 08011c39 .word 0x08011c39
  41368. 8011b6c: 08011c39 .word 0x08011c39
  41369. 8011b70: 08011c39 .word 0x08011c39
  41370. 8011b74: 08011c39 .word 0x08011c39
  41371. 8011b78: 08011beb .word 0x08011beb
  41372. 8011b7c: 08011c39 .word 0x08011c39
  41373. 8011b80: 08011c39 .word 0x08011c39
  41374. 8011b84: 08011c39 .word 0x08011c39
  41375. 8011b88: 08011c39 .word 0x08011c39
  41376. 8011b8c: 08011c39 .word 0x08011c39
  41377. 8011b90: 08011c39 .word 0x08011c39
  41378. 8011b94: 08011c39 .word 0x08011c39
  41379. 8011b98: 08011c39 .word 0x08011c39
  41380. 8011b9c: 08011c39 .word 0x08011c39
  41381. 8011ba0: 08011c39 .word 0x08011c39
  41382. 8011ba4: 08011c39 .word 0x08011c39
  41383. 8011ba8: 08011c39 .word 0x08011c39
  41384. 8011bac: 08011c39 .word 0x08011c39
  41385. 8011bb0: 08011c39 .word 0x08011c39
  41386. 8011bb4: 08011c39 .word 0x08011c39
  41387. 8011bb8: 08011c2b .word 0x08011c2b
  41388. 8011bbc: 2b40 cmp r3, #64 @ 0x40
  41389. 8011bbe: d037 beq.n 8011c30 <UART_SetConfig+0x6bc>
  41390. 8011bc0: e03a b.n 8011c38 <UART_SetConfig+0x6c4>
  41391. {
  41392. case UART_CLOCKSOURCE_D3PCLK1:
  41393. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  41394. 8011bc2: f7fc f9fd bl 800dfc0 <HAL_RCCEx_GetD3PCLK1Freq>
  41395. 8011bc6: 63f8 str r0, [r7, #60] @ 0x3c
  41396. break;
  41397. 8011bc8: e03c b.n 8011c44 <UART_SetConfig+0x6d0>
  41398. case UART_CLOCKSOURCE_PLL2:
  41399. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41400. 8011bca: f107 0324 add.w r3, r7, #36 @ 0x24
  41401. 8011bce: 4618 mov r0, r3
  41402. 8011bd0: f7fc fa0c bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  41403. pclk = pll2_clocks.PLL2_Q_Frequency;
  41404. 8011bd4: 6abb ldr r3, [r7, #40] @ 0x28
  41405. 8011bd6: 63fb str r3, [r7, #60] @ 0x3c
  41406. break;
  41407. 8011bd8: e034 b.n 8011c44 <UART_SetConfig+0x6d0>
  41408. case UART_CLOCKSOURCE_PLL3:
  41409. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41410. 8011bda: f107 0318 add.w r3, r7, #24
  41411. 8011bde: 4618 mov r0, r3
  41412. 8011be0: f7fc fb58 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  41413. pclk = pll3_clocks.PLL3_Q_Frequency;
  41414. 8011be4: 69fb ldr r3, [r7, #28]
  41415. 8011be6: 63fb str r3, [r7, #60] @ 0x3c
  41416. break;
  41417. 8011be8: e02c b.n 8011c44 <UART_SetConfig+0x6d0>
  41418. case UART_CLOCKSOURCE_HSI:
  41419. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41420. 8011bea: 4b09 ldr r3, [pc, #36] @ (8011c10 <UART_SetConfig+0x69c>)
  41421. 8011bec: 681b ldr r3, [r3, #0]
  41422. 8011bee: f003 0320 and.w r3, r3, #32
  41423. 8011bf2: 2b00 cmp r3, #0
  41424. 8011bf4: d016 beq.n 8011c24 <UART_SetConfig+0x6b0>
  41425. {
  41426. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41427. 8011bf6: 4b06 ldr r3, [pc, #24] @ (8011c10 <UART_SetConfig+0x69c>)
  41428. 8011bf8: 681b ldr r3, [r3, #0]
  41429. 8011bfa: 08db lsrs r3, r3, #3
  41430. 8011bfc: f003 0303 and.w r3, r3, #3
  41431. 8011c00: 4a07 ldr r2, [pc, #28] @ (8011c20 <UART_SetConfig+0x6ac>)
  41432. 8011c02: fa22 f303 lsr.w r3, r2, r3
  41433. 8011c06: 63fb str r3, [r7, #60] @ 0x3c
  41434. }
  41435. else
  41436. {
  41437. pclk = (uint32_t) HSI_VALUE;
  41438. }
  41439. break;
  41440. 8011c08: e01c b.n 8011c44 <UART_SetConfig+0x6d0>
  41441. 8011c0a: bf00 nop
  41442. 8011c0c: 40011400 .word 0x40011400
  41443. 8011c10: 58024400 .word 0x58024400
  41444. 8011c14: 40007800 .word 0x40007800
  41445. 8011c18: 40007c00 .word 0x40007c00
  41446. 8011c1c: 58000c00 .word 0x58000c00
  41447. 8011c20: 03d09000 .word 0x03d09000
  41448. pclk = (uint32_t) HSI_VALUE;
  41449. 8011c24: 4b9d ldr r3, [pc, #628] @ (8011e9c <UART_SetConfig+0x928>)
  41450. 8011c26: 63fb str r3, [r7, #60] @ 0x3c
  41451. break;
  41452. 8011c28: e00c b.n 8011c44 <UART_SetConfig+0x6d0>
  41453. case UART_CLOCKSOURCE_CSI:
  41454. pclk = (uint32_t) CSI_VALUE;
  41455. 8011c2a: 4b9d ldr r3, [pc, #628] @ (8011ea0 <UART_SetConfig+0x92c>)
  41456. 8011c2c: 63fb str r3, [r7, #60] @ 0x3c
  41457. break;
  41458. 8011c2e: e009 b.n 8011c44 <UART_SetConfig+0x6d0>
  41459. case UART_CLOCKSOURCE_LSE:
  41460. pclk = (uint32_t) LSE_VALUE;
  41461. 8011c30: f44f 4300 mov.w r3, #32768 @ 0x8000
  41462. 8011c34: 63fb str r3, [r7, #60] @ 0x3c
  41463. break;
  41464. 8011c36: e005 b.n 8011c44 <UART_SetConfig+0x6d0>
  41465. default:
  41466. pclk = 0U;
  41467. 8011c38: 2300 movs r3, #0
  41468. 8011c3a: 63fb str r3, [r7, #60] @ 0x3c
  41469. ret = HAL_ERROR;
  41470. 8011c3c: 2301 movs r3, #1
  41471. 8011c3e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41472. break;
  41473. 8011c42: bf00 nop
  41474. }
  41475. /* If proper clock source reported */
  41476. if (pclk != 0U)
  41477. 8011c44: 6bfb ldr r3, [r7, #60] @ 0x3c
  41478. 8011c46: 2b00 cmp r3, #0
  41479. 8011c48: f000 81de beq.w 8012008 <UART_SetConfig+0xa94>
  41480. {
  41481. /* Compute clock after Prescaler */
  41482. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  41483. 8011c4c: 697b ldr r3, [r7, #20]
  41484. 8011c4e: 6a5b ldr r3, [r3, #36] @ 0x24
  41485. 8011c50: 4a94 ldr r2, [pc, #592] @ (8011ea4 <UART_SetConfig+0x930>)
  41486. 8011c52: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41487. 8011c56: 461a mov r2, r3
  41488. 8011c58: 6bfb ldr r3, [r7, #60] @ 0x3c
  41489. 8011c5a: fbb3 f3f2 udiv r3, r3, r2
  41490. 8011c5e: 633b str r3, [r7, #48] @ 0x30
  41491. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  41492. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  41493. 8011c60: 697b ldr r3, [r7, #20]
  41494. 8011c62: 685a ldr r2, [r3, #4]
  41495. 8011c64: 4613 mov r3, r2
  41496. 8011c66: 005b lsls r3, r3, #1
  41497. 8011c68: 4413 add r3, r2
  41498. 8011c6a: 6b3a ldr r2, [r7, #48] @ 0x30
  41499. 8011c6c: 429a cmp r2, r3
  41500. 8011c6e: d305 bcc.n 8011c7c <UART_SetConfig+0x708>
  41501. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  41502. 8011c70: 697b ldr r3, [r7, #20]
  41503. 8011c72: 685b ldr r3, [r3, #4]
  41504. 8011c74: 031b lsls r3, r3, #12
  41505. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  41506. 8011c76: 6b3a ldr r2, [r7, #48] @ 0x30
  41507. 8011c78: 429a cmp r2, r3
  41508. 8011c7a: d903 bls.n 8011c84 <UART_SetConfig+0x710>
  41509. {
  41510. ret = HAL_ERROR;
  41511. 8011c7c: 2301 movs r3, #1
  41512. 8011c7e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41513. 8011c82: e1c1 b.n 8012008 <UART_SetConfig+0xa94>
  41514. }
  41515. else
  41516. {
  41517. /* Check computed UsartDiv value is in allocated range
  41518. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  41519. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41520. 8011c84: 6bfb ldr r3, [r7, #60] @ 0x3c
  41521. 8011c86: 2200 movs r2, #0
  41522. 8011c88: 60bb str r3, [r7, #8]
  41523. 8011c8a: 60fa str r2, [r7, #12]
  41524. 8011c8c: 697b ldr r3, [r7, #20]
  41525. 8011c8e: 6a5b ldr r3, [r3, #36] @ 0x24
  41526. 8011c90: 4a84 ldr r2, [pc, #528] @ (8011ea4 <UART_SetConfig+0x930>)
  41527. 8011c92: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41528. 8011c96: b29b uxth r3, r3
  41529. 8011c98: 2200 movs r2, #0
  41530. 8011c9a: 603b str r3, [r7, #0]
  41531. 8011c9c: 607a str r2, [r7, #4]
  41532. 8011c9e: e9d7 2300 ldrd r2, r3, [r7]
  41533. 8011ca2: e9d7 0102 ldrd r0, r1, [r7, #8]
  41534. 8011ca6: f7ee fb6b bl 8000380 <__aeabi_uldivmod>
  41535. 8011caa: 4602 mov r2, r0
  41536. 8011cac: 460b mov r3, r1
  41537. 8011cae: 4610 mov r0, r2
  41538. 8011cb0: 4619 mov r1, r3
  41539. 8011cb2: f04f 0200 mov.w r2, #0
  41540. 8011cb6: f04f 0300 mov.w r3, #0
  41541. 8011cba: 020b lsls r3, r1, #8
  41542. 8011cbc: ea43 6310 orr.w r3, r3, r0, lsr #24
  41543. 8011cc0: 0202 lsls r2, r0, #8
  41544. 8011cc2: 6979 ldr r1, [r7, #20]
  41545. 8011cc4: 6849 ldr r1, [r1, #4]
  41546. 8011cc6: 0849 lsrs r1, r1, #1
  41547. 8011cc8: 2000 movs r0, #0
  41548. 8011cca: 460c mov r4, r1
  41549. 8011ccc: 4605 mov r5, r0
  41550. 8011cce: eb12 0804 adds.w r8, r2, r4
  41551. 8011cd2: eb43 0905 adc.w r9, r3, r5
  41552. 8011cd6: 697b ldr r3, [r7, #20]
  41553. 8011cd8: 685b ldr r3, [r3, #4]
  41554. 8011cda: 2200 movs r2, #0
  41555. 8011cdc: 469a mov sl, r3
  41556. 8011cde: 4693 mov fp, r2
  41557. 8011ce0: 4652 mov r2, sl
  41558. 8011ce2: 465b mov r3, fp
  41559. 8011ce4: 4640 mov r0, r8
  41560. 8011ce6: 4649 mov r1, r9
  41561. 8011ce8: f7ee fb4a bl 8000380 <__aeabi_uldivmod>
  41562. 8011cec: 4602 mov r2, r0
  41563. 8011cee: 460b mov r3, r1
  41564. 8011cf0: 4613 mov r3, r2
  41565. 8011cf2: 63bb str r3, [r7, #56] @ 0x38
  41566. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  41567. 8011cf4: 6bbb ldr r3, [r7, #56] @ 0x38
  41568. 8011cf6: f5b3 7f40 cmp.w r3, #768 @ 0x300
  41569. 8011cfa: d308 bcc.n 8011d0e <UART_SetConfig+0x79a>
  41570. 8011cfc: 6bbb ldr r3, [r7, #56] @ 0x38
  41571. 8011cfe: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  41572. 8011d02: d204 bcs.n 8011d0e <UART_SetConfig+0x79a>
  41573. {
  41574. huart->Instance->BRR = usartdiv;
  41575. 8011d04: 697b ldr r3, [r7, #20]
  41576. 8011d06: 681b ldr r3, [r3, #0]
  41577. 8011d08: 6bba ldr r2, [r7, #56] @ 0x38
  41578. 8011d0a: 60da str r2, [r3, #12]
  41579. 8011d0c: e17c b.n 8012008 <UART_SetConfig+0xa94>
  41580. }
  41581. else
  41582. {
  41583. ret = HAL_ERROR;
  41584. 8011d0e: 2301 movs r3, #1
  41585. 8011d10: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41586. 8011d14: e178 b.n 8012008 <UART_SetConfig+0xa94>
  41587. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  41588. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  41589. } /* if (pclk != 0) */
  41590. }
  41591. /* Check UART Over Sampling to set Baud Rate Register */
  41592. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  41593. 8011d16: 697b ldr r3, [r7, #20]
  41594. 8011d18: 69db ldr r3, [r3, #28]
  41595. 8011d1a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  41596. 8011d1e: f040 80c5 bne.w 8011eac <UART_SetConfig+0x938>
  41597. {
  41598. switch (clocksource)
  41599. 8011d22: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41600. 8011d26: 2b20 cmp r3, #32
  41601. 8011d28: dc48 bgt.n 8011dbc <UART_SetConfig+0x848>
  41602. 8011d2a: 2b00 cmp r3, #0
  41603. 8011d2c: db7b blt.n 8011e26 <UART_SetConfig+0x8b2>
  41604. 8011d2e: 2b20 cmp r3, #32
  41605. 8011d30: d879 bhi.n 8011e26 <UART_SetConfig+0x8b2>
  41606. 8011d32: a201 add r2, pc, #4 @ (adr r2, 8011d38 <UART_SetConfig+0x7c4>)
  41607. 8011d34: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41608. 8011d38: 08011dc3 .word 0x08011dc3
  41609. 8011d3c: 08011dcb .word 0x08011dcb
  41610. 8011d40: 08011e27 .word 0x08011e27
  41611. 8011d44: 08011e27 .word 0x08011e27
  41612. 8011d48: 08011dd3 .word 0x08011dd3
  41613. 8011d4c: 08011e27 .word 0x08011e27
  41614. 8011d50: 08011e27 .word 0x08011e27
  41615. 8011d54: 08011e27 .word 0x08011e27
  41616. 8011d58: 08011de3 .word 0x08011de3
  41617. 8011d5c: 08011e27 .word 0x08011e27
  41618. 8011d60: 08011e27 .word 0x08011e27
  41619. 8011d64: 08011e27 .word 0x08011e27
  41620. 8011d68: 08011e27 .word 0x08011e27
  41621. 8011d6c: 08011e27 .word 0x08011e27
  41622. 8011d70: 08011e27 .word 0x08011e27
  41623. 8011d74: 08011e27 .word 0x08011e27
  41624. 8011d78: 08011df3 .word 0x08011df3
  41625. 8011d7c: 08011e27 .word 0x08011e27
  41626. 8011d80: 08011e27 .word 0x08011e27
  41627. 8011d84: 08011e27 .word 0x08011e27
  41628. 8011d88: 08011e27 .word 0x08011e27
  41629. 8011d8c: 08011e27 .word 0x08011e27
  41630. 8011d90: 08011e27 .word 0x08011e27
  41631. 8011d94: 08011e27 .word 0x08011e27
  41632. 8011d98: 08011e27 .word 0x08011e27
  41633. 8011d9c: 08011e27 .word 0x08011e27
  41634. 8011da0: 08011e27 .word 0x08011e27
  41635. 8011da4: 08011e27 .word 0x08011e27
  41636. 8011da8: 08011e27 .word 0x08011e27
  41637. 8011dac: 08011e27 .word 0x08011e27
  41638. 8011db0: 08011e27 .word 0x08011e27
  41639. 8011db4: 08011e27 .word 0x08011e27
  41640. 8011db8: 08011e19 .word 0x08011e19
  41641. 8011dbc: 2b40 cmp r3, #64 @ 0x40
  41642. 8011dbe: d02e beq.n 8011e1e <UART_SetConfig+0x8aa>
  41643. 8011dc0: e031 b.n 8011e26 <UART_SetConfig+0x8b2>
  41644. {
  41645. case UART_CLOCKSOURCE_D2PCLK1:
  41646. pclk = HAL_RCC_GetPCLK1Freq();
  41647. 8011dc2: f7fa f921 bl 800c008 <HAL_RCC_GetPCLK1Freq>
  41648. 8011dc6: 63f8 str r0, [r7, #60] @ 0x3c
  41649. break;
  41650. 8011dc8: e033 b.n 8011e32 <UART_SetConfig+0x8be>
  41651. case UART_CLOCKSOURCE_D2PCLK2:
  41652. pclk = HAL_RCC_GetPCLK2Freq();
  41653. 8011dca: f7fa f933 bl 800c034 <HAL_RCC_GetPCLK2Freq>
  41654. 8011dce: 63f8 str r0, [r7, #60] @ 0x3c
  41655. break;
  41656. 8011dd0: e02f b.n 8011e32 <UART_SetConfig+0x8be>
  41657. case UART_CLOCKSOURCE_PLL2:
  41658. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41659. 8011dd2: f107 0324 add.w r3, r7, #36 @ 0x24
  41660. 8011dd6: 4618 mov r0, r3
  41661. 8011dd8: f7fc f908 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  41662. pclk = pll2_clocks.PLL2_Q_Frequency;
  41663. 8011ddc: 6abb ldr r3, [r7, #40] @ 0x28
  41664. 8011dde: 63fb str r3, [r7, #60] @ 0x3c
  41665. break;
  41666. 8011de0: e027 b.n 8011e32 <UART_SetConfig+0x8be>
  41667. case UART_CLOCKSOURCE_PLL3:
  41668. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41669. 8011de2: f107 0318 add.w r3, r7, #24
  41670. 8011de6: 4618 mov r0, r3
  41671. 8011de8: f7fc fa54 bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  41672. pclk = pll3_clocks.PLL3_Q_Frequency;
  41673. 8011dec: 69fb ldr r3, [r7, #28]
  41674. 8011dee: 63fb str r3, [r7, #60] @ 0x3c
  41675. break;
  41676. 8011df0: e01f b.n 8011e32 <UART_SetConfig+0x8be>
  41677. case UART_CLOCKSOURCE_HSI:
  41678. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41679. 8011df2: 4b2d ldr r3, [pc, #180] @ (8011ea8 <UART_SetConfig+0x934>)
  41680. 8011df4: 681b ldr r3, [r3, #0]
  41681. 8011df6: f003 0320 and.w r3, r3, #32
  41682. 8011dfa: 2b00 cmp r3, #0
  41683. 8011dfc: d009 beq.n 8011e12 <UART_SetConfig+0x89e>
  41684. {
  41685. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41686. 8011dfe: 4b2a ldr r3, [pc, #168] @ (8011ea8 <UART_SetConfig+0x934>)
  41687. 8011e00: 681b ldr r3, [r3, #0]
  41688. 8011e02: 08db lsrs r3, r3, #3
  41689. 8011e04: f003 0303 and.w r3, r3, #3
  41690. 8011e08: 4a24 ldr r2, [pc, #144] @ (8011e9c <UART_SetConfig+0x928>)
  41691. 8011e0a: fa22 f303 lsr.w r3, r2, r3
  41692. 8011e0e: 63fb str r3, [r7, #60] @ 0x3c
  41693. }
  41694. else
  41695. {
  41696. pclk = (uint32_t) HSI_VALUE;
  41697. }
  41698. break;
  41699. 8011e10: e00f b.n 8011e32 <UART_SetConfig+0x8be>
  41700. pclk = (uint32_t) HSI_VALUE;
  41701. 8011e12: 4b22 ldr r3, [pc, #136] @ (8011e9c <UART_SetConfig+0x928>)
  41702. 8011e14: 63fb str r3, [r7, #60] @ 0x3c
  41703. break;
  41704. 8011e16: e00c b.n 8011e32 <UART_SetConfig+0x8be>
  41705. case UART_CLOCKSOURCE_CSI:
  41706. pclk = (uint32_t) CSI_VALUE;
  41707. 8011e18: 4b21 ldr r3, [pc, #132] @ (8011ea0 <UART_SetConfig+0x92c>)
  41708. 8011e1a: 63fb str r3, [r7, #60] @ 0x3c
  41709. break;
  41710. 8011e1c: e009 b.n 8011e32 <UART_SetConfig+0x8be>
  41711. case UART_CLOCKSOURCE_LSE:
  41712. pclk = (uint32_t) LSE_VALUE;
  41713. 8011e1e: f44f 4300 mov.w r3, #32768 @ 0x8000
  41714. 8011e22: 63fb str r3, [r7, #60] @ 0x3c
  41715. break;
  41716. 8011e24: e005 b.n 8011e32 <UART_SetConfig+0x8be>
  41717. default:
  41718. pclk = 0U;
  41719. 8011e26: 2300 movs r3, #0
  41720. 8011e28: 63fb str r3, [r7, #60] @ 0x3c
  41721. ret = HAL_ERROR;
  41722. 8011e2a: 2301 movs r3, #1
  41723. 8011e2c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41724. break;
  41725. 8011e30: bf00 nop
  41726. }
  41727. /* USARTDIV must be greater than or equal to 0d16 */
  41728. if (pclk != 0U)
  41729. 8011e32: 6bfb ldr r3, [r7, #60] @ 0x3c
  41730. 8011e34: 2b00 cmp r3, #0
  41731. 8011e36: f000 80e7 beq.w 8012008 <UART_SetConfig+0xa94>
  41732. {
  41733. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41734. 8011e3a: 697b ldr r3, [r7, #20]
  41735. 8011e3c: 6a5b ldr r3, [r3, #36] @ 0x24
  41736. 8011e3e: 4a19 ldr r2, [pc, #100] @ (8011ea4 <UART_SetConfig+0x930>)
  41737. 8011e40: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41738. 8011e44: 461a mov r2, r3
  41739. 8011e46: 6bfb ldr r3, [r7, #60] @ 0x3c
  41740. 8011e48: fbb3 f3f2 udiv r3, r3, r2
  41741. 8011e4c: 005a lsls r2, r3, #1
  41742. 8011e4e: 697b ldr r3, [r7, #20]
  41743. 8011e50: 685b ldr r3, [r3, #4]
  41744. 8011e52: 085b lsrs r3, r3, #1
  41745. 8011e54: 441a add r2, r3
  41746. 8011e56: 697b ldr r3, [r7, #20]
  41747. 8011e58: 685b ldr r3, [r3, #4]
  41748. 8011e5a: fbb2 f3f3 udiv r3, r2, r3
  41749. 8011e5e: 63bb str r3, [r7, #56] @ 0x38
  41750. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41751. 8011e60: 6bbb ldr r3, [r7, #56] @ 0x38
  41752. 8011e62: 2b0f cmp r3, #15
  41753. 8011e64: d916 bls.n 8011e94 <UART_SetConfig+0x920>
  41754. 8011e66: 6bbb ldr r3, [r7, #56] @ 0x38
  41755. 8011e68: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41756. 8011e6c: d212 bcs.n 8011e94 <UART_SetConfig+0x920>
  41757. {
  41758. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  41759. 8011e6e: 6bbb ldr r3, [r7, #56] @ 0x38
  41760. 8011e70: b29b uxth r3, r3
  41761. 8011e72: f023 030f bic.w r3, r3, #15
  41762. 8011e76: 86fb strh r3, [r7, #54] @ 0x36
  41763. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  41764. 8011e78: 6bbb ldr r3, [r7, #56] @ 0x38
  41765. 8011e7a: 085b lsrs r3, r3, #1
  41766. 8011e7c: b29b uxth r3, r3
  41767. 8011e7e: f003 0307 and.w r3, r3, #7
  41768. 8011e82: b29a uxth r2, r3
  41769. 8011e84: 8efb ldrh r3, [r7, #54] @ 0x36
  41770. 8011e86: 4313 orrs r3, r2
  41771. 8011e88: 86fb strh r3, [r7, #54] @ 0x36
  41772. huart->Instance->BRR = brrtemp;
  41773. 8011e8a: 697b ldr r3, [r7, #20]
  41774. 8011e8c: 681b ldr r3, [r3, #0]
  41775. 8011e8e: 8efa ldrh r2, [r7, #54] @ 0x36
  41776. 8011e90: 60da str r2, [r3, #12]
  41777. 8011e92: e0b9 b.n 8012008 <UART_SetConfig+0xa94>
  41778. }
  41779. else
  41780. {
  41781. ret = HAL_ERROR;
  41782. 8011e94: 2301 movs r3, #1
  41783. 8011e96: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41784. 8011e9a: e0b5 b.n 8012008 <UART_SetConfig+0xa94>
  41785. 8011e9c: 03d09000 .word 0x03d09000
  41786. 8011ea0: 003d0900 .word 0x003d0900
  41787. 8011ea4: 08018c30 .word 0x08018c30
  41788. 8011ea8: 58024400 .word 0x58024400
  41789. }
  41790. }
  41791. }
  41792. else
  41793. {
  41794. switch (clocksource)
  41795. 8011eac: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41796. 8011eb0: 2b20 cmp r3, #32
  41797. 8011eb2: dc49 bgt.n 8011f48 <UART_SetConfig+0x9d4>
  41798. 8011eb4: 2b00 cmp r3, #0
  41799. 8011eb6: db7c blt.n 8011fb2 <UART_SetConfig+0xa3e>
  41800. 8011eb8: 2b20 cmp r3, #32
  41801. 8011eba: d87a bhi.n 8011fb2 <UART_SetConfig+0xa3e>
  41802. 8011ebc: a201 add r2, pc, #4 @ (adr r2, 8011ec4 <UART_SetConfig+0x950>)
  41803. 8011ebe: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41804. 8011ec2: bf00 nop
  41805. 8011ec4: 08011f4f .word 0x08011f4f
  41806. 8011ec8: 08011f57 .word 0x08011f57
  41807. 8011ecc: 08011fb3 .word 0x08011fb3
  41808. 8011ed0: 08011fb3 .word 0x08011fb3
  41809. 8011ed4: 08011f5f .word 0x08011f5f
  41810. 8011ed8: 08011fb3 .word 0x08011fb3
  41811. 8011edc: 08011fb3 .word 0x08011fb3
  41812. 8011ee0: 08011fb3 .word 0x08011fb3
  41813. 8011ee4: 08011f6f .word 0x08011f6f
  41814. 8011ee8: 08011fb3 .word 0x08011fb3
  41815. 8011eec: 08011fb3 .word 0x08011fb3
  41816. 8011ef0: 08011fb3 .word 0x08011fb3
  41817. 8011ef4: 08011fb3 .word 0x08011fb3
  41818. 8011ef8: 08011fb3 .word 0x08011fb3
  41819. 8011efc: 08011fb3 .word 0x08011fb3
  41820. 8011f00: 08011fb3 .word 0x08011fb3
  41821. 8011f04: 08011f7f .word 0x08011f7f
  41822. 8011f08: 08011fb3 .word 0x08011fb3
  41823. 8011f0c: 08011fb3 .word 0x08011fb3
  41824. 8011f10: 08011fb3 .word 0x08011fb3
  41825. 8011f14: 08011fb3 .word 0x08011fb3
  41826. 8011f18: 08011fb3 .word 0x08011fb3
  41827. 8011f1c: 08011fb3 .word 0x08011fb3
  41828. 8011f20: 08011fb3 .word 0x08011fb3
  41829. 8011f24: 08011fb3 .word 0x08011fb3
  41830. 8011f28: 08011fb3 .word 0x08011fb3
  41831. 8011f2c: 08011fb3 .word 0x08011fb3
  41832. 8011f30: 08011fb3 .word 0x08011fb3
  41833. 8011f34: 08011fb3 .word 0x08011fb3
  41834. 8011f38: 08011fb3 .word 0x08011fb3
  41835. 8011f3c: 08011fb3 .word 0x08011fb3
  41836. 8011f40: 08011fb3 .word 0x08011fb3
  41837. 8011f44: 08011fa5 .word 0x08011fa5
  41838. 8011f48: 2b40 cmp r3, #64 @ 0x40
  41839. 8011f4a: d02e beq.n 8011faa <UART_SetConfig+0xa36>
  41840. 8011f4c: e031 b.n 8011fb2 <UART_SetConfig+0xa3e>
  41841. {
  41842. case UART_CLOCKSOURCE_D2PCLK1:
  41843. pclk = HAL_RCC_GetPCLK1Freq();
  41844. 8011f4e: f7fa f85b bl 800c008 <HAL_RCC_GetPCLK1Freq>
  41845. 8011f52: 63f8 str r0, [r7, #60] @ 0x3c
  41846. break;
  41847. 8011f54: e033 b.n 8011fbe <UART_SetConfig+0xa4a>
  41848. case UART_CLOCKSOURCE_D2PCLK2:
  41849. pclk = HAL_RCC_GetPCLK2Freq();
  41850. 8011f56: f7fa f86d bl 800c034 <HAL_RCC_GetPCLK2Freq>
  41851. 8011f5a: 63f8 str r0, [r7, #60] @ 0x3c
  41852. break;
  41853. 8011f5c: e02f b.n 8011fbe <UART_SetConfig+0xa4a>
  41854. case UART_CLOCKSOURCE_PLL2:
  41855. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41856. 8011f5e: f107 0324 add.w r3, r7, #36 @ 0x24
  41857. 8011f62: 4618 mov r0, r3
  41858. 8011f64: f7fc f842 bl 800dfec <HAL_RCCEx_GetPLL2ClockFreq>
  41859. pclk = pll2_clocks.PLL2_Q_Frequency;
  41860. 8011f68: 6abb ldr r3, [r7, #40] @ 0x28
  41861. 8011f6a: 63fb str r3, [r7, #60] @ 0x3c
  41862. break;
  41863. 8011f6c: e027 b.n 8011fbe <UART_SetConfig+0xa4a>
  41864. case UART_CLOCKSOURCE_PLL3:
  41865. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41866. 8011f6e: f107 0318 add.w r3, r7, #24
  41867. 8011f72: 4618 mov r0, r3
  41868. 8011f74: f7fc f98e bl 800e294 <HAL_RCCEx_GetPLL3ClockFreq>
  41869. pclk = pll3_clocks.PLL3_Q_Frequency;
  41870. 8011f78: 69fb ldr r3, [r7, #28]
  41871. 8011f7a: 63fb str r3, [r7, #60] @ 0x3c
  41872. break;
  41873. 8011f7c: e01f b.n 8011fbe <UART_SetConfig+0xa4a>
  41874. case UART_CLOCKSOURCE_HSI:
  41875. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41876. 8011f7e: 4b2d ldr r3, [pc, #180] @ (8012034 <UART_SetConfig+0xac0>)
  41877. 8011f80: 681b ldr r3, [r3, #0]
  41878. 8011f82: f003 0320 and.w r3, r3, #32
  41879. 8011f86: 2b00 cmp r3, #0
  41880. 8011f88: d009 beq.n 8011f9e <UART_SetConfig+0xa2a>
  41881. {
  41882. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41883. 8011f8a: 4b2a ldr r3, [pc, #168] @ (8012034 <UART_SetConfig+0xac0>)
  41884. 8011f8c: 681b ldr r3, [r3, #0]
  41885. 8011f8e: 08db lsrs r3, r3, #3
  41886. 8011f90: f003 0303 and.w r3, r3, #3
  41887. 8011f94: 4a28 ldr r2, [pc, #160] @ (8012038 <UART_SetConfig+0xac4>)
  41888. 8011f96: fa22 f303 lsr.w r3, r2, r3
  41889. 8011f9a: 63fb str r3, [r7, #60] @ 0x3c
  41890. }
  41891. else
  41892. {
  41893. pclk = (uint32_t) HSI_VALUE;
  41894. }
  41895. break;
  41896. 8011f9c: e00f b.n 8011fbe <UART_SetConfig+0xa4a>
  41897. pclk = (uint32_t) HSI_VALUE;
  41898. 8011f9e: 4b26 ldr r3, [pc, #152] @ (8012038 <UART_SetConfig+0xac4>)
  41899. 8011fa0: 63fb str r3, [r7, #60] @ 0x3c
  41900. break;
  41901. 8011fa2: e00c b.n 8011fbe <UART_SetConfig+0xa4a>
  41902. case UART_CLOCKSOURCE_CSI:
  41903. pclk = (uint32_t) CSI_VALUE;
  41904. 8011fa4: 4b25 ldr r3, [pc, #148] @ (801203c <UART_SetConfig+0xac8>)
  41905. 8011fa6: 63fb str r3, [r7, #60] @ 0x3c
  41906. break;
  41907. 8011fa8: e009 b.n 8011fbe <UART_SetConfig+0xa4a>
  41908. case UART_CLOCKSOURCE_LSE:
  41909. pclk = (uint32_t) LSE_VALUE;
  41910. 8011faa: f44f 4300 mov.w r3, #32768 @ 0x8000
  41911. 8011fae: 63fb str r3, [r7, #60] @ 0x3c
  41912. break;
  41913. 8011fb0: e005 b.n 8011fbe <UART_SetConfig+0xa4a>
  41914. default:
  41915. pclk = 0U;
  41916. 8011fb2: 2300 movs r3, #0
  41917. 8011fb4: 63fb str r3, [r7, #60] @ 0x3c
  41918. ret = HAL_ERROR;
  41919. 8011fb6: 2301 movs r3, #1
  41920. 8011fb8: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41921. break;
  41922. 8011fbc: bf00 nop
  41923. }
  41924. if (pclk != 0U)
  41925. 8011fbe: 6bfb ldr r3, [r7, #60] @ 0x3c
  41926. 8011fc0: 2b00 cmp r3, #0
  41927. 8011fc2: d021 beq.n 8012008 <UART_SetConfig+0xa94>
  41928. {
  41929. /* USARTDIV must be greater than or equal to 0d16 */
  41930. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41931. 8011fc4: 697b ldr r3, [r7, #20]
  41932. 8011fc6: 6a5b ldr r3, [r3, #36] @ 0x24
  41933. 8011fc8: 4a1d ldr r2, [pc, #116] @ (8012040 <UART_SetConfig+0xacc>)
  41934. 8011fca: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41935. 8011fce: 461a mov r2, r3
  41936. 8011fd0: 6bfb ldr r3, [r7, #60] @ 0x3c
  41937. 8011fd2: fbb3 f2f2 udiv r2, r3, r2
  41938. 8011fd6: 697b ldr r3, [r7, #20]
  41939. 8011fd8: 685b ldr r3, [r3, #4]
  41940. 8011fda: 085b lsrs r3, r3, #1
  41941. 8011fdc: 441a add r2, r3
  41942. 8011fde: 697b ldr r3, [r7, #20]
  41943. 8011fe0: 685b ldr r3, [r3, #4]
  41944. 8011fe2: fbb2 f3f3 udiv r3, r2, r3
  41945. 8011fe6: 63bb str r3, [r7, #56] @ 0x38
  41946. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41947. 8011fe8: 6bbb ldr r3, [r7, #56] @ 0x38
  41948. 8011fea: 2b0f cmp r3, #15
  41949. 8011fec: d909 bls.n 8012002 <UART_SetConfig+0xa8e>
  41950. 8011fee: 6bbb ldr r3, [r7, #56] @ 0x38
  41951. 8011ff0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41952. 8011ff4: d205 bcs.n 8012002 <UART_SetConfig+0xa8e>
  41953. {
  41954. huart->Instance->BRR = (uint16_t)usartdiv;
  41955. 8011ff6: 6bbb ldr r3, [r7, #56] @ 0x38
  41956. 8011ff8: b29a uxth r2, r3
  41957. 8011ffa: 697b ldr r3, [r7, #20]
  41958. 8011ffc: 681b ldr r3, [r3, #0]
  41959. 8011ffe: 60da str r2, [r3, #12]
  41960. 8012000: e002 b.n 8012008 <UART_SetConfig+0xa94>
  41961. }
  41962. else
  41963. {
  41964. ret = HAL_ERROR;
  41965. 8012002: 2301 movs r3, #1
  41966. 8012004: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41967. }
  41968. }
  41969. }
  41970. /* Initialize the number of data to process during RX/TX ISR execution */
  41971. huart->NbTxDataToProcess = 1;
  41972. 8012008: 697b ldr r3, [r7, #20]
  41973. 801200a: 2201 movs r2, #1
  41974. 801200c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  41975. huart->NbRxDataToProcess = 1;
  41976. 8012010: 697b ldr r3, [r7, #20]
  41977. 8012012: 2201 movs r2, #1
  41978. 8012014: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  41979. /* Clear ISR function pointers */
  41980. huart->RxISR = NULL;
  41981. 8012018: 697b ldr r3, [r7, #20]
  41982. 801201a: 2200 movs r2, #0
  41983. 801201c: 675a str r2, [r3, #116] @ 0x74
  41984. huart->TxISR = NULL;
  41985. 801201e: 697b ldr r3, [r7, #20]
  41986. 8012020: 2200 movs r2, #0
  41987. 8012022: 679a str r2, [r3, #120] @ 0x78
  41988. return ret;
  41989. 8012024: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  41990. }
  41991. 8012028: 4618 mov r0, r3
  41992. 801202a: 3748 adds r7, #72 @ 0x48
  41993. 801202c: 46bd mov sp, r7
  41994. 801202e: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  41995. 8012032: bf00 nop
  41996. 8012034: 58024400 .word 0x58024400
  41997. 8012038: 03d09000 .word 0x03d09000
  41998. 801203c: 003d0900 .word 0x003d0900
  41999. 8012040: 08018c30 .word 0x08018c30
  42000. 08012044 <UART_AdvFeatureConfig>:
  42001. * @brief Configure the UART peripheral advanced features.
  42002. * @param huart UART handle.
  42003. * @retval None
  42004. */
  42005. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  42006. {
  42007. 8012044: b480 push {r7}
  42008. 8012046: b083 sub sp, #12
  42009. 8012048: af00 add r7, sp, #0
  42010. 801204a: 6078 str r0, [r7, #4]
  42011. /* Check whether the set of advanced features to configure is properly set */
  42012. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  42013. /* if required, configure RX/TX pins swap */
  42014. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  42015. 801204c: 687b ldr r3, [r7, #4]
  42016. 801204e: 6a9b ldr r3, [r3, #40] @ 0x28
  42017. 8012050: f003 0308 and.w r3, r3, #8
  42018. 8012054: 2b00 cmp r3, #0
  42019. 8012056: d00a beq.n 801206e <UART_AdvFeatureConfig+0x2a>
  42020. {
  42021. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  42022. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  42023. 8012058: 687b ldr r3, [r7, #4]
  42024. 801205a: 681b ldr r3, [r3, #0]
  42025. 801205c: 685b ldr r3, [r3, #4]
  42026. 801205e: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  42027. 8012062: 687b ldr r3, [r7, #4]
  42028. 8012064: 6b9a ldr r2, [r3, #56] @ 0x38
  42029. 8012066: 687b ldr r3, [r7, #4]
  42030. 8012068: 681b ldr r3, [r3, #0]
  42031. 801206a: 430a orrs r2, r1
  42032. 801206c: 605a str r2, [r3, #4]
  42033. }
  42034. /* if required, configure TX pin active level inversion */
  42035. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  42036. 801206e: 687b ldr r3, [r7, #4]
  42037. 8012070: 6a9b ldr r3, [r3, #40] @ 0x28
  42038. 8012072: f003 0301 and.w r3, r3, #1
  42039. 8012076: 2b00 cmp r3, #0
  42040. 8012078: d00a beq.n 8012090 <UART_AdvFeatureConfig+0x4c>
  42041. {
  42042. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  42043. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  42044. 801207a: 687b ldr r3, [r7, #4]
  42045. 801207c: 681b ldr r3, [r3, #0]
  42046. 801207e: 685b ldr r3, [r3, #4]
  42047. 8012080: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  42048. 8012084: 687b ldr r3, [r7, #4]
  42049. 8012086: 6ada ldr r2, [r3, #44] @ 0x2c
  42050. 8012088: 687b ldr r3, [r7, #4]
  42051. 801208a: 681b ldr r3, [r3, #0]
  42052. 801208c: 430a orrs r2, r1
  42053. 801208e: 605a str r2, [r3, #4]
  42054. }
  42055. /* if required, configure RX pin active level inversion */
  42056. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  42057. 8012090: 687b ldr r3, [r7, #4]
  42058. 8012092: 6a9b ldr r3, [r3, #40] @ 0x28
  42059. 8012094: f003 0302 and.w r3, r3, #2
  42060. 8012098: 2b00 cmp r3, #0
  42061. 801209a: d00a beq.n 80120b2 <UART_AdvFeatureConfig+0x6e>
  42062. {
  42063. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  42064. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  42065. 801209c: 687b ldr r3, [r7, #4]
  42066. 801209e: 681b ldr r3, [r3, #0]
  42067. 80120a0: 685b ldr r3, [r3, #4]
  42068. 80120a2: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  42069. 80120a6: 687b ldr r3, [r7, #4]
  42070. 80120a8: 6b1a ldr r2, [r3, #48] @ 0x30
  42071. 80120aa: 687b ldr r3, [r7, #4]
  42072. 80120ac: 681b ldr r3, [r3, #0]
  42073. 80120ae: 430a orrs r2, r1
  42074. 80120b0: 605a str r2, [r3, #4]
  42075. }
  42076. /* if required, configure data inversion */
  42077. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  42078. 80120b2: 687b ldr r3, [r7, #4]
  42079. 80120b4: 6a9b ldr r3, [r3, #40] @ 0x28
  42080. 80120b6: f003 0304 and.w r3, r3, #4
  42081. 80120ba: 2b00 cmp r3, #0
  42082. 80120bc: d00a beq.n 80120d4 <UART_AdvFeatureConfig+0x90>
  42083. {
  42084. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  42085. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  42086. 80120be: 687b ldr r3, [r7, #4]
  42087. 80120c0: 681b ldr r3, [r3, #0]
  42088. 80120c2: 685b ldr r3, [r3, #4]
  42089. 80120c4: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  42090. 80120c8: 687b ldr r3, [r7, #4]
  42091. 80120ca: 6b5a ldr r2, [r3, #52] @ 0x34
  42092. 80120cc: 687b ldr r3, [r7, #4]
  42093. 80120ce: 681b ldr r3, [r3, #0]
  42094. 80120d0: 430a orrs r2, r1
  42095. 80120d2: 605a str r2, [r3, #4]
  42096. }
  42097. /* if required, configure RX overrun detection disabling */
  42098. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  42099. 80120d4: 687b ldr r3, [r7, #4]
  42100. 80120d6: 6a9b ldr r3, [r3, #40] @ 0x28
  42101. 80120d8: f003 0310 and.w r3, r3, #16
  42102. 80120dc: 2b00 cmp r3, #0
  42103. 80120de: d00a beq.n 80120f6 <UART_AdvFeatureConfig+0xb2>
  42104. {
  42105. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  42106. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  42107. 80120e0: 687b ldr r3, [r7, #4]
  42108. 80120e2: 681b ldr r3, [r3, #0]
  42109. 80120e4: 689b ldr r3, [r3, #8]
  42110. 80120e6: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  42111. 80120ea: 687b ldr r3, [r7, #4]
  42112. 80120ec: 6bda ldr r2, [r3, #60] @ 0x3c
  42113. 80120ee: 687b ldr r3, [r7, #4]
  42114. 80120f0: 681b ldr r3, [r3, #0]
  42115. 80120f2: 430a orrs r2, r1
  42116. 80120f4: 609a str r2, [r3, #8]
  42117. }
  42118. /* if required, configure DMA disabling on reception error */
  42119. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  42120. 80120f6: 687b ldr r3, [r7, #4]
  42121. 80120f8: 6a9b ldr r3, [r3, #40] @ 0x28
  42122. 80120fa: f003 0320 and.w r3, r3, #32
  42123. 80120fe: 2b00 cmp r3, #0
  42124. 8012100: d00a beq.n 8012118 <UART_AdvFeatureConfig+0xd4>
  42125. {
  42126. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  42127. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  42128. 8012102: 687b ldr r3, [r7, #4]
  42129. 8012104: 681b ldr r3, [r3, #0]
  42130. 8012106: 689b ldr r3, [r3, #8]
  42131. 8012108: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  42132. 801210c: 687b ldr r3, [r7, #4]
  42133. 801210e: 6c1a ldr r2, [r3, #64] @ 0x40
  42134. 8012110: 687b ldr r3, [r7, #4]
  42135. 8012112: 681b ldr r3, [r3, #0]
  42136. 8012114: 430a orrs r2, r1
  42137. 8012116: 609a str r2, [r3, #8]
  42138. }
  42139. /* if required, configure auto Baud rate detection scheme */
  42140. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  42141. 8012118: 687b ldr r3, [r7, #4]
  42142. 801211a: 6a9b ldr r3, [r3, #40] @ 0x28
  42143. 801211c: f003 0340 and.w r3, r3, #64 @ 0x40
  42144. 8012120: 2b00 cmp r3, #0
  42145. 8012122: d01a beq.n 801215a <UART_AdvFeatureConfig+0x116>
  42146. {
  42147. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  42148. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  42149. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  42150. 8012124: 687b ldr r3, [r7, #4]
  42151. 8012126: 681b ldr r3, [r3, #0]
  42152. 8012128: 685b ldr r3, [r3, #4]
  42153. 801212a: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  42154. 801212e: 687b ldr r3, [r7, #4]
  42155. 8012130: 6c5a ldr r2, [r3, #68] @ 0x44
  42156. 8012132: 687b ldr r3, [r7, #4]
  42157. 8012134: 681b ldr r3, [r3, #0]
  42158. 8012136: 430a orrs r2, r1
  42159. 8012138: 605a str r2, [r3, #4]
  42160. /* set auto Baudrate detection parameters if detection is enabled */
  42161. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  42162. 801213a: 687b ldr r3, [r7, #4]
  42163. 801213c: 6c5b ldr r3, [r3, #68] @ 0x44
  42164. 801213e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  42165. 8012142: d10a bne.n 801215a <UART_AdvFeatureConfig+0x116>
  42166. {
  42167. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  42168. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  42169. 8012144: 687b ldr r3, [r7, #4]
  42170. 8012146: 681b ldr r3, [r3, #0]
  42171. 8012148: 685b ldr r3, [r3, #4]
  42172. 801214a: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  42173. 801214e: 687b ldr r3, [r7, #4]
  42174. 8012150: 6c9a ldr r2, [r3, #72] @ 0x48
  42175. 8012152: 687b ldr r3, [r7, #4]
  42176. 8012154: 681b ldr r3, [r3, #0]
  42177. 8012156: 430a orrs r2, r1
  42178. 8012158: 605a str r2, [r3, #4]
  42179. }
  42180. }
  42181. /* if required, configure MSB first on communication line */
  42182. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  42183. 801215a: 687b ldr r3, [r7, #4]
  42184. 801215c: 6a9b ldr r3, [r3, #40] @ 0x28
  42185. 801215e: f003 0380 and.w r3, r3, #128 @ 0x80
  42186. 8012162: 2b00 cmp r3, #0
  42187. 8012164: d00a beq.n 801217c <UART_AdvFeatureConfig+0x138>
  42188. {
  42189. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  42190. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  42191. 8012166: 687b ldr r3, [r7, #4]
  42192. 8012168: 681b ldr r3, [r3, #0]
  42193. 801216a: 685b ldr r3, [r3, #4]
  42194. 801216c: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  42195. 8012170: 687b ldr r3, [r7, #4]
  42196. 8012172: 6cda ldr r2, [r3, #76] @ 0x4c
  42197. 8012174: 687b ldr r3, [r7, #4]
  42198. 8012176: 681b ldr r3, [r3, #0]
  42199. 8012178: 430a orrs r2, r1
  42200. 801217a: 605a str r2, [r3, #4]
  42201. }
  42202. }
  42203. 801217c: bf00 nop
  42204. 801217e: 370c adds r7, #12
  42205. 8012180: 46bd mov sp, r7
  42206. 8012182: f85d 7b04 ldr.w r7, [sp], #4
  42207. 8012186: 4770 bx lr
  42208. 08012188 <UART_CheckIdleState>:
  42209. * @brief Check the UART Idle State.
  42210. * @param huart UART handle.
  42211. * @retval HAL status
  42212. */
  42213. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  42214. {
  42215. 8012188: b580 push {r7, lr}
  42216. 801218a: b098 sub sp, #96 @ 0x60
  42217. 801218c: af02 add r7, sp, #8
  42218. 801218e: 6078 str r0, [r7, #4]
  42219. uint32_t tickstart;
  42220. /* Initialize the UART ErrorCode */
  42221. huart->ErrorCode = HAL_UART_ERROR_NONE;
  42222. 8012190: 687b ldr r3, [r7, #4]
  42223. 8012192: 2200 movs r2, #0
  42224. 8012194: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42225. /* Init tickstart for timeout management */
  42226. tickstart = HAL_GetTick();
  42227. 8012198: f7f3 f9e6 bl 8005568 <HAL_GetTick>
  42228. 801219c: 6578 str r0, [r7, #84] @ 0x54
  42229. /* Check if the Transmitter is enabled */
  42230. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  42231. 801219e: 687b ldr r3, [r7, #4]
  42232. 80121a0: 681b ldr r3, [r3, #0]
  42233. 80121a2: 681b ldr r3, [r3, #0]
  42234. 80121a4: f003 0308 and.w r3, r3, #8
  42235. 80121a8: 2b08 cmp r3, #8
  42236. 80121aa: d12f bne.n 801220c <UART_CheckIdleState+0x84>
  42237. {
  42238. /* Wait until TEACK flag is set */
  42239. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  42240. 80121ac: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  42241. 80121b0: 9300 str r3, [sp, #0]
  42242. 80121b2: 6d7b ldr r3, [r7, #84] @ 0x54
  42243. 80121b4: 2200 movs r2, #0
  42244. 80121b6: f44f 1100 mov.w r1, #2097152 @ 0x200000
  42245. 80121ba: 6878 ldr r0, [r7, #4]
  42246. 80121bc: f000 f88e bl 80122dc <UART_WaitOnFlagUntilTimeout>
  42247. 80121c0: 4603 mov r3, r0
  42248. 80121c2: 2b00 cmp r3, #0
  42249. 80121c4: d022 beq.n 801220c <UART_CheckIdleState+0x84>
  42250. {
  42251. /* Disable TXE interrupt for the interrupt process */
  42252. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  42253. 80121c6: 687b ldr r3, [r7, #4]
  42254. 80121c8: 681b ldr r3, [r3, #0]
  42255. 80121ca: 63bb str r3, [r7, #56] @ 0x38
  42256. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42257. 80121cc: 6bbb ldr r3, [r7, #56] @ 0x38
  42258. 80121ce: e853 3f00 ldrex r3, [r3]
  42259. 80121d2: 637b str r3, [r7, #52] @ 0x34
  42260. return(result);
  42261. 80121d4: 6b7b ldr r3, [r7, #52] @ 0x34
  42262. 80121d6: f023 0380 bic.w r3, r3, #128 @ 0x80
  42263. 80121da: 653b str r3, [r7, #80] @ 0x50
  42264. 80121dc: 687b ldr r3, [r7, #4]
  42265. 80121de: 681b ldr r3, [r3, #0]
  42266. 80121e0: 461a mov r2, r3
  42267. 80121e2: 6d3b ldr r3, [r7, #80] @ 0x50
  42268. 80121e4: 647b str r3, [r7, #68] @ 0x44
  42269. 80121e6: 643a str r2, [r7, #64] @ 0x40
  42270. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42271. 80121e8: 6c39 ldr r1, [r7, #64] @ 0x40
  42272. 80121ea: 6c7a ldr r2, [r7, #68] @ 0x44
  42273. 80121ec: e841 2300 strex r3, r2, [r1]
  42274. 80121f0: 63fb str r3, [r7, #60] @ 0x3c
  42275. return(result);
  42276. 80121f2: 6bfb ldr r3, [r7, #60] @ 0x3c
  42277. 80121f4: 2b00 cmp r3, #0
  42278. 80121f6: d1e6 bne.n 80121c6 <UART_CheckIdleState+0x3e>
  42279. huart->gState = HAL_UART_STATE_READY;
  42280. 80121f8: 687b ldr r3, [r7, #4]
  42281. 80121fa: 2220 movs r2, #32
  42282. 80121fc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  42283. __HAL_UNLOCK(huart);
  42284. 8012200: 687b ldr r3, [r7, #4]
  42285. 8012202: 2200 movs r2, #0
  42286. 8012204: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42287. /* Timeout occurred */
  42288. return HAL_TIMEOUT;
  42289. 8012208: 2303 movs r3, #3
  42290. 801220a: e063 b.n 80122d4 <UART_CheckIdleState+0x14c>
  42291. }
  42292. }
  42293. /* Check if the Receiver is enabled */
  42294. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  42295. 801220c: 687b ldr r3, [r7, #4]
  42296. 801220e: 681b ldr r3, [r3, #0]
  42297. 8012210: 681b ldr r3, [r3, #0]
  42298. 8012212: f003 0304 and.w r3, r3, #4
  42299. 8012216: 2b04 cmp r3, #4
  42300. 8012218: d149 bne.n 80122ae <UART_CheckIdleState+0x126>
  42301. {
  42302. /* Wait until REACK flag is set */
  42303. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  42304. 801221a: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  42305. 801221e: 9300 str r3, [sp, #0]
  42306. 8012220: 6d7b ldr r3, [r7, #84] @ 0x54
  42307. 8012222: 2200 movs r2, #0
  42308. 8012224: f44f 0180 mov.w r1, #4194304 @ 0x400000
  42309. 8012228: 6878 ldr r0, [r7, #4]
  42310. 801222a: f000 f857 bl 80122dc <UART_WaitOnFlagUntilTimeout>
  42311. 801222e: 4603 mov r3, r0
  42312. 8012230: 2b00 cmp r3, #0
  42313. 8012232: d03c beq.n 80122ae <UART_CheckIdleState+0x126>
  42314. {
  42315. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  42316. interrupts for the interrupt process */
  42317. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  42318. 8012234: 687b ldr r3, [r7, #4]
  42319. 8012236: 681b ldr r3, [r3, #0]
  42320. 8012238: 627b str r3, [r7, #36] @ 0x24
  42321. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42322. 801223a: 6a7b ldr r3, [r7, #36] @ 0x24
  42323. 801223c: e853 3f00 ldrex r3, [r3]
  42324. 8012240: 623b str r3, [r7, #32]
  42325. return(result);
  42326. 8012242: 6a3b ldr r3, [r7, #32]
  42327. 8012244: f423 7390 bic.w r3, r3, #288 @ 0x120
  42328. 8012248: 64fb str r3, [r7, #76] @ 0x4c
  42329. 801224a: 687b ldr r3, [r7, #4]
  42330. 801224c: 681b ldr r3, [r3, #0]
  42331. 801224e: 461a mov r2, r3
  42332. 8012250: 6cfb ldr r3, [r7, #76] @ 0x4c
  42333. 8012252: 633b str r3, [r7, #48] @ 0x30
  42334. 8012254: 62fa str r2, [r7, #44] @ 0x2c
  42335. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42336. 8012256: 6af9 ldr r1, [r7, #44] @ 0x2c
  42337. 8012258: 6b3a ldr r2, [r7, #48] @ 0x30
  42338. 801225a: e841 2300 strex r3, r2, [r1]
  42339. 801225e: 62bb str r3, [r7, #40] @ 0x28
  42340. return(result);
  42341. 8012260: 6abb ldr r3, [r7, #40] @ 0x28
  42342. 8012262: 2b00 cmp r3, #0
  42343. 8012264: d1e6 bne.n 8012234 <UART_CheckIdleState+0xac>
  42344. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  42345. 8012266: 687b ldr r3, [r7, #4]
  42346. 8012268: 681b ldr r3, [r3, #0]
  42347. 801226a: 3308 adds r3, #8
  42348. 801226c: 613b str r3, [r7, #16]
  42349. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42350. 801226e: 693b ldr r3, [r7, #16]
  42351. 8012270: e853 3f00 ldrex r3, [r3]
  42352. 8012274: 60fb str r3, [r7, #12]
  42353. return(result);
  42354. 8012276: 68fb ldr r3, [r7, #12]
  42355. 8012278: f023 0301 bic.w r3, r3, #1
  42356. 801227c: 64bb str r3, [r7, #72] @ 0x48
  42357. 801227e: 687b ldr r3, [r7, #4]
  42358. 8012280: 681b ldr r3, [r3, #0]
  42359. 8012282: 3308 adds r3, #8
  42360. 8012284: 6cba ldr r2, [r7, #72] @ 0x48
  42361. 8012286: 61fa str r2, [r7, #28]
  42362. 8012288: 61bb str r3, [r7, #24]
  42363. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42364. 801228a: 69b9 ldr r1, [r7, #24]
  42365. 801228c: 69fa ldr r2, [r7, #28]
  42366. 801228e: e841 2300 strex r3, r2, [r1]
  42367. 8012292: 617b str r3, [r7, #20]
  42368. return(result);
  42369. 8012294: 697b ldr r3, [r7, #20]
  42370. 8012296: 2b00 cmp r3, #0
  42371. 8012298: d1e5 bne.n 8012266 <UART_CheckIdleState+0xde>
  42372. huart->RxState = HAL_UART_STATE_READY;
  42373. 801229a: 687b ldr r3, [r7, #4]
  42374. 801229c: 2220 movs r2, #32
  42375. 801229e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42376. __HAL_UNLOCK(huart);
  42377. 80122a2: 687b ldr r3, [r7, #4]
  42378. 80122a4: 2200 movs r2, #0
  42379. 80122a6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42380. /* Timeout occurred */
  42381. return HAL_TIMEOUT;
  42382. 80122aa: 2303 movs r3, #3
  42383. 80122ac: e012 b.n 80122d4 <UART_CheckIdleState+0x14c>
  42384. }
  42385. }
  42386. /* Initialize the UART State */
  42387. huart->gState = HAL_UART_STATE_READY;
  42388. 80122ae: 687b ldr r3, [r7, #4]
  42389. 80122b0: 2220 movs r2, #32
  42390. 80122b2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  42391. huart->RxState = HAL_UART_STATE_READY;
  42392. 80122b6: 687b ldr r3, [r7, #4]
  42393. 80122b8: 2220 movs r2, #32
  42394. 80122ba: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42395. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  42396. 80122be: 687b ldr r3, [r7, #4]
  42397. 80122c0: 2200 movs r2, #0
  42398. 80122c2: 66da str r2, [r3, #108] @ 0x6c
  42399. huart->RxEventType = HAL_UART_RXEVENT_TC;
  42400. 80122c4: 687b ldr r3, [r7, #4]
  42401. 80122c6: 2200 movs r2, #0
  42402. 80122c8: 671a str r2, [r3, #112] @ 0x70
  42403. __HAL_UNLOCK(huart);
  42404. 80122ca: 687b ldr r3, [r7, #4]
  42405. 80122cc: 2200 movs r2, #0
  42406. 80122ce: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42407. return HAL_OK;
  42408. 80122d2: 2300 movs r3, #0
  42409. }
  42410. 80122d4: 4618 mov r0, r3
  42411. 80122d6: 3758 adds r7, #88 @ 0x58
  42412. 80122d8: 46bd mov sp, r7
  42413. 80122da: bd80 pop {r7, pc}
  42414. 080122dc <UART_WaitOnFlagUntilTimeout>:
  42415. * @param Timeout Timeout duration
  42416. * @retval HAL status
  42417. */
  42418. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  42419. uint32_t Tickstart, uint32_t Timeout)
  42420. {
  42421. 80122dc: b580 push {r7, lr}
  42422. 80122de: b084 sub sp, #16
  42423. 80122e0: af00 add r7, sp, #0
  42424. 80122e2: 60f8 str r0, [r7, #12]
  42425. 80122e4: 60b9 str r1, [r7, #8]
  42426. 80122e6: 603b str r3, [r7, #0]
  42427. 80122e8: 4613 mov r3, r2
  42428. 80122ea: 71fb strb r3, [r7, #7]
  42429. /* Wait until flag is set */
  42430. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  42431. 80122ec: e04f b.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42432. {
  42433. /* Check for the Timeout */
  42434. if (Timeout != HAL_MAX_DELAY)
  42435. 80122ee: 69bb ldr r3, [r7, #24]
  42436. 80122f0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42437. 80122f4: d04b beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42438. {
  42439. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  42440. 80122f6: f7f3 f937 bl 8005568 <HAL_GetTick>
  42441. 80122fa: 4602 mov r2, r0
  42442. 80122fc: 683b ldr r3, [r7, #0]
  42443. 80122fe: 1ad3 subs r3, r2, r3
  42444. 8012300: 69ba ldr r2, [r7, #24]
  42445. 8012302: 429a cmp r2, r3
  42446. 8012304: d302 bcc.n 801230c <UART_WaitOnFlagUntilTimeout+0x30>
  42447. 8012306: 69bb ldr r3, [r7, #24]
  42448. 8012308: 2b00 cmp r3, #0
  42449. 801230a: d101 bne.n 8012310 <UART_WaitOnFlagUntilTimeout+0x34>
  42450. {
  42451. return HAL_TIMEOUT;
  42452. 801230c: 2303 movs r3, #3
  42453. 801230e: e04e b.n 80123ae <UART_WaitOnFlagUntilTimeout+0xd2>
  42454. }
  42455. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  42456. 8012310: 68fb ldr r3, [r7, #12]
  42457. 8012312: 681b ldr r3, [r3, #0]
  42458. 8012314: 681b ldr r3, [r3, #0]
  42459. 8012316: f003 0304 and.w r3, r3, #4
  42460. 801231a: 2b00 cmp r3, #0
  42461. 801231c: d037 beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42462. 801231e: 68bb ldr r3, [r7, #8]
  42463. 8012320: 2b80 cmp r3, #128 @ 0x80
  42464. 8012322: d034 beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42465. 8012324: 68bb ldr r3, [r7, #8]
  42466. 8012326: 2b40 cmp r3, #64 @ 0x40
  42467. 8012328: d031 beq.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42468. {
  42469. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  42470. 801232a: 68fb ldr r3, [r7, #12]
  42471. 801232c: 681b ldr r3, [r3, #0]
  42472. 801232e: 69db ldr r3, [r3, #28]
  42473. 8012330: f003 0308 and.w r3, r3, #8
  42474. 8012334: 2b08 cmp r3, #8
  42475. 8012336: d110 bne.n 801235a <UART_WaitOnFlagUntilTimeout+0x7e>
  42476. {
  42477. /* Clear Overrun Error flag*/
  42478. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  42479. 8012338: 68fb ldr r3, [r7, #12]
  42480. 801233a: 681b ldr r3, [r3, #0]
  42481. 801233c: 2208 movs r2, #8
  42482. 801233e: 621a str r2, [r3, #32]
  42483. /* Blocking error : transfer is aborted
  42484. Set the UART state ready to be able to start again the process,
  42485. Disable Rx Interrupts if ongoing */
  42486. UART_EndRxTransfer(huart);
  42487. 8012340: 68f8 ldr r0, [r7, #12]
  42488. 8012342: f000 f95b bl 80125fc <UART_EndRxTransfer>
  42489. huart->ErrorCode = HAL_UART_ERROR_ORE;
  42490. 8012346: 68fb ldr r3, [r7, #12]
  42491. 8012348: 2208 movs r2, #8
  42492. 801234a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42493. /* Process Unlocked */
  42494. __HAL_UNLOCK(huart);
  42495. 801234e: 68fb ldr r3, [r7, #12]
  42496. 8012350: 2200 movs r2, #0
  42497. 8012352: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42498. return HAL_ERROR;
  42499. 8012356: 2301 movs r3, #1
  42500. 8012358: e029 b.n 80123ae <UART_WaitOnFlagUntilTimeout+0xd2>
  42501. }
  42502. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  42503. 801235a: 68fb ldr r3, [r7, #12]
  42504. 801235c: 681b ldr r3, [r3, #0]
  42505. 801235e: 69db ldr r3, [r3, #28]
  42506. 8012360: f403 6300 and.w r3, r3, #2048 @ 0x800
  42507. 8012364: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  42508. 8012368: d111 bne.n 801238e <UART_WaitOnFlagUntilTimeout+0xb2>
  42509. {
  42510. /* Clear Receiver Timeout flag*/
  42511. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  42512. 801236a: 68fb ldr r3, [r7, #12]
  42513. 801236c: 681b ldr r3, [r3, #0]
  42514. 801236e: f44f 6200 mov.w r2, #2048 @ 0x800
  42515. 8012372: 621a str r2, [r3, #32]
  42516. /* Blocking error : transfer is aborted
  42517. Set the UART state ready to be able to start again the process,
  42518. Disable Rx Interrupts if ongoing */
  42519. UART_EndRxTransfer(huart);
  42520. 8012374: 68f8 ldr r0, [r7, #12]
  42521. 8012376: f000 f941 bl 80125fc <UART_EndRxTransfer>
  42522. huart->ErrorCode = HAL_UART_ERROR_RTO;
  42523. 801237a: 68fb ldr r3, [r7, #12]
  42524. 801237c: 2220 movs r2, #32
  42525. 801237e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42526. /* Process Unlocked */
  42527. __HAL_UNLOCK(huart);
  42528. 8012382: 68fb ldr r3, [r7, #12]
  42529. 8012384: 2200 movs r2, #0
  42530. 8012386: f883 2084 strb.w r2, [r3, #132] @ 0x84
  42531. return HAL_TIMEOUT;
  42532. 801238a: 2303 movs r3, #3
  42533. 801238c: e00f b.n 80123ae <UART_WaitOnFlagUntilTimeout+0xd2>
  42534. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  42535. 801238e: 68fb ldr r3, [r7, #12]
  42536. 8012390: 681b ldr r3, [r3, #0]
  42537. 8012392: 69da ldr r2, [r3, #28]
  42538. 8012394: 68bb ldr r3, [r7, #8]
  42539. 8012396: 4013 ands r3, r2
  42540. 8012398: 68ba ldr r2, [r7, #8]
  42541. 801239a: 429a cmp r2, r3
  42542. 801239c: bf0c ite eq
  42543. 801239e: 2301 moveq r3, #1
  42544. 80123a0: 2300 movne r3, #0
  42545. 80123a2: b2db uxtb r3, r3
  42546. 80123a4: 461a mov r2, r3
  42547. 80123a6: 79fb ldrb r3, [r7, #7]
  42548. 80123a8: 429a cmp r2, r3
  42549. 80123aa: d0a0 beq.n 80122ee <UART_WaitOnFlagUntilTimeout+0x12>
  42550. }
  42551. }
  42552. }
  42553. }
  42554. return HAL_OK;
  42555. 80123ac: 2300 movs r3, #0
  42556. }
  42557. 80123ae: 4618 mov r0, r3
  42558. 80123b0: 3710 adds r7, #16
  42559. 80123b2: 46bd mov sp, r7
  42560. 80123b4: bd80 pop {r7, pc}
  42561. ...
  42562. 080123b8 <UART_Start_Receive_IT>:
  42563. * @param pData Pointer to data buffer (u8 or u16 data elements).
  42564. * @param Size Amount of data elements (u8 or u16) to be received.
  42565. * @retval HAL status
  42566. */
  42567. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  42568. {
  42569. 80123b8: b480 push {r7}
  42570. 80123ba: b0a3 sub sp, #140 @ 0x8c
  42571. 80123bc: af00 add r7, sp, #0
  42572. 80123be: 60f8 str r0, [r7, #12]
  42573. 80123c0: 60b9 str r1, [r7, #8]
  42574. 80123c2: 4613 mov r3, r2
  42575. 80123c4: 80fb strh r3, [r7, #6]
  42576. huart->pRxBuffPtr = pData;
  42577. 80123c6: 68fb ldr r3, [r7, #12]
  42578. 80123c8: 68ba ldr r2, [r7, #8]
  42579. 80123ca: 659a str r2, [r3, #88] @ 0x58
  42580. huart->RxXferSize = Size;
  42581. 80123cc: 68fb ldr r3, [r7, #12]
  42582. 80123ce: 88fa ldrh r2, [r7, #6]
  42583. 80123d0: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  42584. huart->RxXferCount = Size;
  42585. 80123d4: 68fb ldr r3, [r7, #12]
  42586. 80123d6: 88fa ldrh r2, [r7, #6]
  42587. 80123d8: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  42588. huart->RxISR = NULL;
  42589. 80123dc: 68fb ldr r3, [r7, #12]
  42590. 80123de: 2200 movs r2, #0
  42591. 80123e0: 675a str r2, [r3, #116] @ 0x74
  42592. /* Computation of UART mask to apply to RDR register */
  42593. UART_MASK_COMPUTATION(huart);
  42594. 80123e2: 68fb ldr r3, [r7, #12]
  42595. 80123e4: 689b ldr r3, [r3, #8]
  42596. 80123e6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42597. 80123ea: d10e bne.n 801240a <UART_Start_Receive_IT+0x52>
  42598. 80123ec: 68fb ldr r3, [r7, #12]
  42599. 80123ee: 691b ldr r3, [r3, #16]
  42600. 80123f0: 2b00 cmp r3, #0
  42601. 80123f2: d105 bne.n 8012400 <UART_Start_Receive_IT+0x48>
  42602. 80123f4: 68fb ldr r3, [r7, #12]
  42603. 80123f6: f240 12ff movw r2, #511 @ 0x1ff
  42604. 80123fa: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42605. 80123fe: e02d b.n 801245c <UART_Start_Receive_IT+0xa4>
  42606. 8012400: 68fb ldr r3, [r7, #12]
  42607. 8012402: 22ff movs r2, #255 @ 0xff
  42608. 8012404: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42609. 8012408: e028 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42610. 801240a: 68fb ldr r3, [r7, #12]
  42611. 801240c: 689b ldr r3, [r3, #8]
  42612. 801240e: 2b00 cmp r3, #0
  42613. 8012410: d10d bne.n 801242e <UART_Start_Receive_IT+0x76>
  42614. 8012412: 68fb ldr r3, [r7, #12]
  42615. 8012414: 691b ldr r3, [r3, #16]
  42616. 8012416: 2b00 cmp r3, #0
  42617. 8012418: d104 bne.n 8012424 <UART_Start_Receive_IT+0x6c>
  42618. 801241a: 68fb ldr r3, [r7, #12]
  42619. 801241c: 22ff movs r2, #255 @ 0xff
  42620. 801241e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42621. 8012422: e01b b.n 801245c <UART_Start_Receive_IT+0xa4>
  42622. 8012424: 68fb ldr r3, [r7, #12]
  42623. 8012426: 227f movs r2, #127 @ 0x7f
  42624. 8012428: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42625. 801242c: e016 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42626. 801242e: 68fb ldr r3, [r7, #12]
  42627. 8012430: 689b ldr r3, [r3, #8]
  42628. 8012432: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  42629. 8012436: d10d bne.n 8012454 <UART_Start_Receive_IT+0x9c>
  42630. 8012438: 68fb ldr r3, [r7, #12]
  42631. 801243a: 691b ldr r3, [r3, #16]
  42632. 801243c: 2b00 cmp r3, #0
  42633. 801243e: d104 bne.n 801244a <UART_Start_Receive_IT+0x92>
  42634. 8012440: 68fb ldr r3, [r7, #12]
  42635. 8012442: 227f movs r2, #127 @ 0x7f
  42636. 8012444: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42637. 8012448: e008 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42638. 801244a: 68fb ldr r3, [r7, #12]
  42639. 801244c: 223f movs r2, #63 @ 0x3f
  42640. 801244e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42641. 8012452: e003 b.n 801245c <UART_Start_Receive_IT+0xa4>
  42642. 8012454: 68fb ldr r3, [r7, #12]
  42643. 8012456: 2200 movs r2, #0
  42644. 8012458: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  42645. huart->ErrorCode = HAL_UART_ERROR_NONE;
  42646. 801245c: 68fb ldr r3, [r7, #12]
  42647. 801245e: 2200 movs r2, #0
  42648. 8012460: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  42649. huart->RxState = HAL_UART_STATE_BUSY_RX;
  42650. 8012464: 68fb ldr r3, [r7, #12]
  42651. 8012466: 2222 movs r2, #34 @ 0x22
  42652. 8012468: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42653. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  42654. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  42655. 801246c: 68fb ldr r3, [r7, #12]
  42656. 801246e: 681b ldr r3, [r3, #0]
  42657. 8012470: 3308 adds r3, #8
  42658. 8012472: 667b str r3, [r7, #100] @ 0x64
  42659. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42660. 8012474: 6e7b ldr r3, [r7, #100] @ 0x64
  42661. 8012476: e853 3f00 ldrex r3, [r3]
  42662. 801247a: 663b str r3, [r7, #96] @ 0x60
  42663. return(result);
  42664. 801247c: 6e3b ldr r3, [r7, #96] @ 0x60
  42665. 801247e: f043 0301 orr.w r3, r3, #1
  42666. 8012482: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  42667. 8012486: 68fb ldr r3, [r7, #12]
  42668. 8012488: 681b ldr r3, [r3, #0]
  42669. 801248a: 3308 adds r3, #8
  42670. 801248c: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  42671. 8012490: 673a str r2, [r7, #112] @ 0x70
  42672. 8012492: 66fb str r3, [r7, #108] @ 0x6c
  42673. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42674. 8012494: 6ef9 ldr r1, [r7, #108] @ 0x6c
  42675. 8012496: 6f3a ldr r2, [r7, #112] @ 0x70
  42676. 8012498: e841 2300 strex r3, r2, [r1]
  42677. 801249c: 66bb str r3, [r7, #104] @ 0x68
  42678. return(result);
  42679. 801249e: 6ebb ldr r3, [r7, #104] @ 0x68
  42680. 80124a0: 2b00 cmp r3, #0
  42681. 80124a2: d1e3 bne.n 801246c <UART_Start_Receive_IT+0xb4>
  42682. /* Configure Rx interrupt processing */
  42683. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  42684. 80124a4: 68fb ldr r3, [r7, #12]
  42685. 80124a6: 6e5b ldr r3, [r3, #100] @ 0x64
  42686. 80124a8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  42687. 80124ac: d14f bne.n 801254e <UART_Start_Receive_IT+0x196>
  42688. 80124ae: 68fb ldr r3, [r7, #12]
  42689. 80124b0: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  42690. 80124b4: 88fa ldrh r2, [r7, #6]
  42691. 80124b6: 429a cmp r2, r3
  42692. 80124b8: d349 bcc.n 801254e <UART_Start_Receive_IT+0x196>
  42693. {
  42694. /* Set the Rx ISR function pointer according to the data word length */
  42695. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42696. 80124ba: 68fb ldr r3, [r7, #12]
  42697. 80124bc: 689b ldr r3, [r3, #8]
  42698. 80124be: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42699. 80124c2: d107 bne.n 80124d4 <UART_Start_Receive_IT+0x11c>
  42700. 80124c4: 68fb ldr r3, [r7, #12]
  42701. 80124c6: 691b ldr r3, [r3, #16]
  42702. 80124c8: 2b00 cmp r3, #0
  42703. 80124ca: d103 bne.n 80124d4 <UART_Start_Receive_IT+0x11c>
  42704. {
  42705. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  42706. 80124cc: 68fb ldr r3, [r7, #12]
  42707. 80124ce: 4a47 ldr r2, [pc, #284] @ (80125ec <UART_Start_Receive_IT+0x234>)
  42708. 80124d0: 675a str r2, [r3, #116] @ 0x74
  42709. 80124d2: e002 b.n 80124da <UART_Start_Receive_IT+0x122>
  42710. }
  42711. else
  42712. {
  42713. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  42714. 80124d4: 68fb ldr r3, [r7, #12]
  42715. 80124d6: 4a46 ldr r2, [pc, #280] @ (80125f0 <UART_Start_Receive_IT+0x238>)
  42716. 80124d8: 675a str r2, [r3, #116] @ 0x74
  42717. }
  42718. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  42719. if (huart->Init.Parity != UART_PARITY_NONE)
  42720. 80124da: 68fb ldr r3, [r7, #12]
  42721. 80124dc: 691b ldr r3, [r3, #16]
  42722. 80124de: 2b00 cmp r3, #0
  42723. 80124e0: d01a beq.n 8012518 <UART_Start_Receive_IT+0x160>
  42724. {
  42725. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  42726. 80124e2: 68fb ldr r3, [r7, #12]
  42727. 80124e4: 681b ldr r3, [r3, #0]
  42728. 80124e6: 653b str r3, [r7, #80] @ 0x50
  42729. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42730. 80124e8: 6d3b ldr r3, [r7, #80] @ 0x50
  42731. 80124ea: e853 3f00 ldrex r3, [r3]
  42732. 80124ee: 64fb str r3, [r7, #76] @ 0x4c
  42733. return(result);
  42734. 80124f0: 6cfb ldr r3, [r7, #76] @ 0x4c
  42735. 80124f2: f443 7380 orr.w r3, r3, #256 @ 0x100
  42736. 80124f6: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  42737. 80124fa: 68fb ldr r3, [r7, #12]
  42738. 80124fc: 681b ldr r3, [r3, #0]
  42739. 80124fe: 461a mov r2, r3
  42740. 8012500: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  42741. 8012504: 65fb str r3, [r7, #92] @ 0x5c
  42742. 8012506: 65ba str r2, [r7, #88] @ 0x58
  42743. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42744. 8012508: 6db9 ldr r1, [r7, #88] @ 0x58
  42745. 801250a: 6dfa ldr r2, [r7, #92] @ 0x5c
  42746. 801250c: e841 2300 strex r3, r2, [r1]
  42747. 8012510: 657b str r3, [r7, #84] @ 0x54
  42748. return(result);
  42749. 8012512: 6d7b ldr r3, [r7, #84] @ 0x54
  42750. 8012514: 2b00 cmp r3, #0
  42751. 8012516: d1e4 bne.n 80124e2 <UART_Start_Receive_IT+0x12a>
  42752. }
  42753. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  42754. 8012518: 68fb ldr r3, [r7, #12]
  42755. 801251a: 681b ldr r3, [r3, #0]
  42756. 801251c: 3308 adds r3, #8
  42757. 801251e: 63fb str r3, [r7, #60] @ 0x3c
  42758. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42759. 8012520: 6bfb ldr r3, [r7, #60] @ 0x3c
  42760. 8012522: e853 3f00 ldrex r3, [r3]
  42761. 8012526: 63bb str r3, [r7, #56] @ 0x38
  42762. return(result);
  42763. 8012528: 6bbb ldr r3, [r7, #56] @ 0x38
  42764. 801252a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  42765. 801252e: 67fb str r3, [r7, #124] @ 0x7c
  42766. 8012530: 68fb ldr r3, [r7, #12]
  42767. 8012532: 681b ldr r3, [r3, #0]
  42768. 8012534: 3308 adds r3, #8
  42769. 8012536: 6ffa ldr r2, [r7, #124] @ 0x7c
  42770. 8012538: 64ba str r2, [r7, #72] @ 0x48
  42771. 801253a: 647b str r3, [r7, #68] @ 0x44
  42772. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42773. 801253c: 6c79 ldr r1, [r7, #68] @ 0x44
  42774. 801253e: 6cba ldr r2, [r7, #72] @ 0x48
  42775. 8012540: e841 2300 strex r3, r2, [r1]
  42776. 8012544: 643b str r3, [r7, #64] @ 0x40
  42777. return(result);
  42778. 8012546: 6c3b ldr r3, [r7, #64] @ 0x40
  42779. 8012548: 2b00 cmp r3, #0
  42780. 801254a: d1e5 bne.n 8012518 <UART_Start_Receive_IT+0x160>
  42781. 801254c: e046 b.n 80125dc <UART_Start_Receive_IT+0x224>
  42782. }
  42783. else
  42784. {
  42785. /* Set the Rx ISR function pointer according to the data word length */
  42786. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42787. 801254e: 68fb ldr r3, [r7, #12]
  42788. 8012550: 689b ldr r3, [r3, #8]
  42789. 8012552: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42790. 8012556: d107 bne.n 8012568 <UART_Start_Receive_IT+0x1b0>
  42791. 8012558: 68fb ldr r3, [r7, #12]
  42792. 801255a: 691b ldr r3, [r3, #16]
  42793. 801255c: 2b00 cmp r3, #0
  42794. 801255e: d103 bne.n 8012568 <UART_Start_Receive_IT+0x1b0>
  42795. {
  42796. huart->RxISR = UART_RxISR_16BIT;
  42797. 8012560: 68fb ldr r3, [r7, #12]
  42798. 8012562: 4a24 ldr r2, [pc, #144] @ (80125f4 <UART_Start_Receive_IT+0x23c>)
  42799. 8012564: 675a str r2, [r3, #116] @ 0x74
  42800. 8012566: e002 b.n 801256e <UART_Start_Receive_IT+0x1b6>
  42801. }
  42802. else
  42803. {
  42804. huart->RxISR = UART_RxISR_8BIT;
  42805. 8012568: 68fb ldr r3, [r7, #12]
  42806. 801256a: 4a23 ldr r2, [pc, #140] @ (80125f8 <UART_Start_Receive_IT+0x240>)
  42807. 801256c: 675a str r2, [r3, #116] @ 0x74
  42808. }
  42809. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  42810. if (huart->Init.Parity != UART_PARITY_NONE)
  42811. 801256e: 68fb ldr r3, [r7, #12]
  42812. 8012570: 691b ldr r3, [r3, #16]
  42813. 8012572: 2b00 cmp r3, #0
  42814. 8012574: d019 beq.n 80125aa <UART_Start_Receive_IT+0x1f2>
  42815. {
  42816. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  42817. 8012576: 68fb ldr r3, [r7, #12]
  42818. 8012578: 681b ldr r3, [r3, #0]
  42819. 801257a: 62bb str r3, [r7, #40] @ 0x28
  42820. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42821. 801257c: 6abb ldr r3, [r7, #40] @ 0x28
  42822. 801257e: e853 3f00 ldrex r3, [r3]
  42823. 8012582: 627b str r3, [r7, #36] @ 0x24
  42824. return(result);
  42825. 8012584: 6a7b ldr r3, [r7, #36] @ 0x24
  42826. 8012586: f443 7390 orr.w r3, r3, #288 @ 0x120
  42827. 801258a: 677b str r3, [r7, #116] @ 0x74
  42828. 801258c: 68fb ldr r3, [r7, #12]
  42829. 801258e: 681b ldr r3, [r3, #0]
  42830. 8012590: 461a mov r2, r3
  42831. 8012592: 6f7b ldr r3, [r7, #116] @ 0x74
  42832. 8012594: 637b str r3, [r7, #52] @ 0x34
  42833. 8012596: 633a str r2, [r7, #48] @ 0x30
  42834. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42835. 8012598: 6b39 ldr r1, [r7, #48] @ 0x30
  42836. 801259a: 6b7a ldr r2, [r7, #52] @ 0x34
  42837. 801259c: e841 2300 strex r3, r2, [r1]
  42838. 80125a0: 62fb str r3, [r7, #44] @ 0x2c
  42839. return(result);
  42840. 80125a2: 6afb ldr r3, [r7, #44] @ 0x2c
  42841. 80125a4: 2b00 cmp r3, #0
  42842. 80125a6: d1e6 bne.n 8012576 <UART_Start_Receive_IT+0x1be>
  42843. 80125a8: e018 b.n 80125dc <UART_Start_Receive_IT+0x224>
  42844. }
  42845. else
  42846. {
  42847. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  42848. 80125aa: 68fb ldr r3, [r7, #12]
  42849. 80125ac: 681b ldr r3, [r3, #0]
  42850. 80125ae: 617b str r3, [r7, #20]
  42851. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42852. 80125b0: 697b ldr r3, [r7, #20]
  42853. 80125b2: e853 3f00 ldrex r3, [r3]
  42854. 80125b6: 613b str r3, [r7, #16]
  42855. return(result);
  42856. 80125b8: 693b ldr r3, [r7, #16]
  42857. 80125ba: f043 0320 orr.w r3, r3, #32
  42858. 80125be: 67bb str r3, [r7, #120] @ 0x78
  42859. 80125c0: 68fb ldr r3, [r7, #12]
  42860. 80125c2: 681b ldr r3, [r3, #0]
  42861. 80125c4: 461a mov r2, r3
  42862. 80125c6: 6fbb ldr r3, [r7, #120] @ 0x78
  42863. 80125c8: 623b str r3, [r7, #32]
  42864. 80125ca: 61fa str r2, [r7, #28]
  42865. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42866. 80125cc: 69f9 ldr r1, [r7, #28]
  42867. 80125ce: 6a3a ldr r2, [r7, #32]
  42868. 80125d0: e841 2300 strex r3, r2, [r1]
  42869. 80125d4: 61bb str r3, [r7, #24]
  42870. return(result);
  42871. 80125d6: 69bb ldr r3, [r7, #24]
  42872. 80125d8: 2b00 cmp r3, #0
  42873. 80125da: d1e6 bne.n 80125aa <UART_Start_Receive_IT+0x1f2>
  42874. }
  42875. }
  42876. return HAL_OK;
  42877. 80125dc: 2300 movs r3, #0
  42878. }
  42879. 80125de: 4618 mov r0, r3
  42880. 80125e0: 378c adds r7, #140 @ 0x8c
  42881. 80125e2: 46bd mov sp, r7
  42882. 80125e4: f85d 7b04 ldr.w r7, [sp], #4
  42883. 80125e8: 4770 bx lr
  42884. 80125ea: bf00 nop
  42885. 80125ec: 08013161 .word 0x08013161
  42886. 80125f0: 08012e01 .word 0x08012e01
  42887. 80125f4: 08012c49 .word 0x08012c49
  42888. 80125f8: 08012a91 .word 0x08012a91
  42889. 080125fc <UART_EndRxTransfer>:
  42890. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  42891. * @param huart UART handle.
  42892. * @retval None
  42893. */
  42894. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  42895. {
  42896. 80125fc: b480 push {r7}
  42897. 80125fe: b095 sub sp, #84 @ 0x54
  42898. 8012600: af00 add r7, sp, #0
  42899. 8012602: 6078 str r0, [r7, #4]
  42900. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  42901. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  42902. 8012604: 687b ldr r3, [r7, #4]
  42903. 8012606: 681b ldr r3, [r3, #0]
  42904. 8012608: 637b str r3, [r7, #52] @ 0x34
  42905. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42906. 801260a: 6b7b ldr r3, [r7, #52] @ 0x34
  42907. 801260c: e853 3f00 ldrex r3, [r3]
  42908. 8012610: 633b str r3, [r7, #48] @ 0x30
  42909. return(result);
  42910. 8012612: 6b3b ldr r3, [r7, #48] @ 0x30
  42911. 8012614: f423 7390 bic.w r3, r3, #288 @ 0x120
  42912. 8012618: 64fb str r3, [r7, #76] @ 0x4c
  42913. 801261a: 687b ldr r3, [r7, #4]
  42914. 801261c: 681b ldr r3, [r3, #0]
  42915. 801261e: 461a mov r2, r3
  42916. 8012620: 6cfb ldr r3, [r7, #76] @ 0x4c
  42917. 8012622: 643b str r3, [r7, #64] @ 0x40
  42918. 8012624: 63fa str r2, [r7, #60] @ 0x3c
  42919. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42920. 8012626: 6bf9 ldr r1, [r7, #60] @ 0x3c
  42921. 8012628: 6c3a ldr r2, [r7, #64] @ 0x40
  42922. 801262a: e841 2300 strex r3, r2, [r1]
  42923. 801262e: 63bb str r3, [r7, #56] @ 0x38
  42924. return(result);
  42925. 8012630: 6bbb ldr r3, [r7, #56] @ 0x38
  42926. 8012632: 2b00 cmp r3, #0
  42927. 8012634: d1e6 bne.n 8012604 <UART_EndRxTransfer+0x8>
  42928. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  42929. 8012636: 687b ldr r3, [r7, #4]
  42930. 8012638: 681b ldr r3, [r3, #0]
  42931. 801263a: 3308 adds r3, #8
  42932. 801263c: 623b str r3, [r7, #32]
  42933. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42934. 801263e: 6a3b ldr r3, [r7, #32]
  42935. 8012640: e853 3f00 ldrex r3, [r3]
  42936. 8012644: 61fb str r3, [r7, #28]
  42937. return(result);
  42938. 8012646: 69fa ldr r2, [r7, #28]
  42939. 8012648: 4b1e ldr r3, [pc, #120] @ (80126c4 <UART_EndRxTransfer+0xc8>)
  42940. 801264a: 4013 ands r3, r2
  42941. 801264c: 64bb str r3, [r7, #72] @ 0x48
  42942. 801264e: 687b ldr r3, [r7, #4]
  42943. 8012650: 681b ldr r3, [r3, #0]
  42944. 8012652: 3308 adds r3, #8
  42945. 8012654: 6cba ldr r2, [r7, #72] @ 0x48
  42946. 8012656: 62fa str r2, [r7, #44] @ 0x2c
  42947. 8012658: 62bb str r3, [r7, #40] @ 0x28
  42948. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42949. 801265a: 6ab9 ldr r1, [r7, #40] @ 0x28
  42950. 801265c: 6afa ldr r2, [r7, #44] @ 0x2c
  42951. 801265e: e841 2300 strex r3, r2, [r1]
  42952. 8012662: 627b str r3, [r7, #36] @ 0x24
  42953. return(result);
  42954. 8012664: 6a7b ldr r3, [r7, #36] @ 0x24
  42955. 8012666: 2b00 cmp r3, #0
  42956. 8012668: d1e5 bne.n 8012636 <UART_EndRxTransfer+0x3a>
  42957. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  42958. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  42959. 801266a: 687b ldr r3, [r7, #4]
  42960. 801266c: 6edb ldr r3, [r3, #108] @ 0x6c
  42961. 801266e: 2b01 cmp r3, #1
  42962. 8012670: d118 bne.n 80126a4 <UART_EndRxTransfer+0xa8>
  42963. {
  42964. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  42965. 8012672: 687b ldr r3, [r7, #4]
  42966. 8012674: 681b ldr r3, [r3, #0]
  42967. 8012676: 60fb str r3, [r7, #12]
  42968. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42969. 8012678: 68fb ldr r3, [r7, #12]
  42970. 801267a: e853 3f00 ldrex r3, [r3]
  42971. 801267e: 60bb str r3, [r7, #8]
  42972. return(result);
  42973. 8012680: 68bb ldr r3, [r7, #8]
  42974. 8012682: f023 0310 bic.w r3, r3, #16
  42975. 8012686: 647b str r3, [r7, #68] @ 0x44
  42976. 8012688: 687b ldr r3, [r7, #4]
  42977. 801268a: 681b ldr r3, [r3, #0]
  42978. 801268c: 461a mov r2, r3
  42979. 801268e: 6c7b ldr r3, [r7, #68] @ 0x44
  42980. 8012690: 61bb str r3, [r7, #24]
  42981. 8012692: 617a str r2, [r7, #20]
  42982. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42983. 8012694: 6979 ldr r1, [r7, #20]
  42984. 8012696: 69ba ldr r2, [r7, #24]
  42985. 8012698: e841 2300 strex r3, r2, [r1]
  42986. 801269c: 613b str r3, [r7, #16]
  42987. return(result);
  42988. 801269e: 693b ldr r3, [r7, #16]
  42989. 80126a0: 2b00 cmp r3, #0
  42990. 80126a2: d1e6 bne.n 8012672 <UART_EndRxTransfer+0x76>
  42991. }
  42992. /* At end of Rx process, restore huart->RxState to Ready */
  42993. huart->RxState = HAL_UART_STATE_READY;
  42994. 80126a4: 687b ldr r3, [r7, #4]
  42995. 80126a6: 2220 movs r2, #32
  42996. 80126a8: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42997. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  42998. 80126ac: 687b ldr r3, [r7, #4]
  42999. 80126ae: 2200 movs r2, #0
  43000. 80126b0: 66da str r2, [r3, #108] @ 0x6c
  43001. /* Reset RxIsr function pointer */
  43002. huart->RxISR = NULL;
  43003. 80126b2: 687b ldr r3, [r7, #4]
  43004. 80126b4: 2200 movs r2, #0
  43005. 80126b6: 675a str r2, [r3, #116] @ 0x74
  43006. }
  43007. 80126b8: bf00 nop
  43008. 80126ba: 3754 adds r7, #84 @ 0x54
  43009. 80126bc: 46bd mov sp, r7
  43010. 80126be: f85d 7b04 ldr.w r7, [sp], #4
  43011. 80126c2: 4770 bx lr
  43012. 80126c4: effffffe .word 0xeffffffe
  43013. 080126c8 <UART_DMAAbortOnError>:
  43014. * (To be called at end of DMA Abort procedure following error occurrence).
  43015. * @param hdma DMA handle.
  43016. * @retval None
  43017. */
  43018. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  43019. {
  43020. 80126c8: b580 push {r7, lr}
  43021. 80126ca: b084 sub sp, #16
  43022. 80126cc: af00 add r7, sp, #0
  43023. 80126ce: 6078 str r0, [r7, #4]
  43024. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  43025. 80126d0: 687b ldr r3, [r7, #4]
  43026. 80126d2: 6b9b ldr r3, [r3, #56] @ 0x38
  43027. 80126d4: 60fb str r3, [r7, #12]
  43028. huart->RxXferCount = 0U;
  43029. 80126d6: 68fb ldr r3, [r7, #12]
  43030. 80126d8: 2200 movs r2, #0
  43031. 80126da: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43032. huart->TxXferCount = 0U;
  43033. 80126de: 68fb ldr r3, [r7, #12]
  43034. 80126e0: 2200 movs r2, #0
  43035. 80126e2: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43036. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43037. /*Call registered error callback*/
  43038. huart->ErrorCallback(huart);
  43039. #else
  43040. /*Call legacy weak error callback*/
  43041. HAL_UART_ErrorCallback(huart);
  43042. 80126e6: 68f8 ldr r0, [r7, #12]
  43043. 80126e8: f7fe ff3a bl 8011560 <HAL_UART_ErrorCallback>
  43044. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43045. }
  43046. 80126ec: bf00 nop
  43047. 80126ee: 3710 adds r7, #16
  43048. 80126f0: 46bd mov sp, r7
  43049. 80126f2: bd80 pop {r7, pc}
  43050. 080126f4 <UART_TxISR_8BIT>:
  43051. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43052. * @param huart UART handle.
  43053. * @retval None
  43054. */
  43055. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  43056. {
  43057. 80126f4: b480 push {r7}
  43058. 80126f6: b08f sub sp, #60 @ 0x3c
  43059. 80126f8: af00 add r7, sp, #0
  43060. 80126fa: 6078 str r0, [r7, #4]
  43061. /* Check that a Tx process is ongoing */
  43062. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43063. 80126fc: 687b ldr r3, [r7, #4]
  43064. 80126fe: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43065. 8012702: 2b21 cmp r3, #33 @ 0x21
  43066. 8012704: d14c bne.n 80127a0 <UART_TxISR_8BIT+0xac>
  43067. {
  43068. if (huart->TxXferCount == 0U)
  43069. 8012706: 687b ldr r3, [r7, #4]
  43070. 8012708: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43071. 801270c: b29b uxth r3, r3
  43072. 801270e: 2b00 cmp r3, #0
  43073. 8012710: d132 bne.n 8012778 <UART_TxISR_8BIT+0x84>
  43074. {
  43075. /* Disable the UART Transmit Data Register Empty Interrupt */
  43076. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  43077. 8012712: 687b ldr r3, [r7, #4]
  43078. 8012714: 681b ldr r3, [r3, #0]
  43079. 8012716: 623b str r3, [r7, #32]
  43080. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43081. 8012718: 6a3b ldr r3, [r7, #32]
  43082. 801271a: e853 3f00 ldrex r3, [r3]
  43083. 801271e: 61fb str r3, [r7, #28]
  43084. return(result);
  43085. 8012720: 69fb ldr r3, [r7, #28]
  43086. 8012722: f023 0380 bic.w r3, r3, #128 @ 0x80
  43087. 8012726: 637b str r3, [r7, #52] @ 0x34
  43088. 8012728: 687b ldr r3, [r7, #4]
  43089. 801272a: 681b ldr r3, [r3, #0]
  43090. 801272c: 461a mov r2, r3
  43091. 801272e: 6b7b ldr r3, [r7, #52] @ 0x34
  43092. 8012730: 62fb str r3, [r7, #44] @ 0x2c
  43093. 8012732: 62ba str r2, [r7, #40] @ 0x28
  43094. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43095. 8012734: 6ab9 ldr r1, [r7, #40] @ 0x28
  43096. 8012736: 6afa ldr r2, [r7, #44] @ 0x2c
  43097. 8012738: e841 2300 strex r3, r2, [r1]
  43098. 801273c: 627b str r3, [r7, #36] @ 0x24
  43099. return(result);
  43100. 801273e: 6a7b ldr r3, [r7, #36] @ 0x24
  43101. 8012740: 2b00 cmp r3, #0
  43102. 8012742: d1e6 bne.n 8012712 <UART_TxISR_8BIT+0x1e>
  43103. /* Enable the UART Transmit Complete Interrupt */
  43104. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43105. 8012744: 687b ldr r3, [r7, #4]
  43106. 8012746: 681b ldr r3, [r3, #0]
  43107. 8012748: 60fb str r3, [r7, #12]
  43108. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43109. 801274a: 68fb ldr r3, [r7, #12]
  43110. 801274c: e853 3f00 ldrex r3, [r3]
  43111. 8012750: 60bb str r3, [r7, #8]
  43112. return(result);
  43113. 8012752: 68bb ldr r3, [r7, #8]
  43114. 8012754: f043 0340 orr.w r3, r3, #64 @ 0x40
  43115. 8012758: 633b str r3, [r7, #48] @ 0x30
  43116. 801275a: 687b ldr r3, [r7, #4]
  43117. 801275c: 681b ldr r3, [r3, #0]
  43118. 801275e: 461a mov r2, r3
  43119. 8012760: 6b3b ldr r3, [r7, #48] @ 0x30
  43120. 8012762: 61bb str r3, [r7, #24]
  43121. 8012764: 617a str r2, [r7, #20]
  43122. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43123. 8012766: 6979 ldr r1, [r7, #20]
  43124. 8012768: 69ba ldr r2, [r7, #24]
  43125. 801276a: e841 2300 strex r3, r2, [r1]
  43126. 801276e: 613b str r3, [r7, #16]
  43127. return(result);
  43128. 8012770: 693b ldr r3, [r7, #16]
  43129. 8012772: 2b00 cmp r3, #0
  43130. 8012774: d1e6 bne.n 8012744 <UART_TxISR_8BIT+0x50>
  43131. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43132. huart->pTxBuffPtr++;
  43133. huart->TxXferCount--;
  43134. }
  43135. }
  43136. }
  43137. 8012776: e013 b.n 80127a0 <UART_TxISR_8BIT+0xac>
  43138. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43139. 8012778: 687b ldr r3, [r7, #4]
  43140. 801277a: 6d1b ldr r3, [r3, #80] @ 0x50
  43141. 801277c: 781a ldrb r2, [r3, #0]
  43142. 801277e: 687b ldr r3, [r7, #4]
  43143. 8012780: 681b ldr r3, [r3, #0]
  43144. 8012782: 629a str r2, [r3, #40] @ 0x28
  43145. huart->pTxBuffPtr++;
  43146. 8012784: 687b ldr r3, [r7, #4]
  43147. 8012786: 6d1b ldr r3, [r3, #80] @ 0x50
  43148. 8012788: 1c5a adds r2, r3, #1
  43149. 801278a: 687b ldr r3, [r7, #4]
  43150. 801278c: 651a str r2, [r3, #80] @ 0x50
  43151. huart->TxXferCount--;
  43152. 801278e: 687b ldr r3, [r7, #4]
  43153. 8012790: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43154. 8012794: b29b uxth r3, r3
  43155. 8012796: 3b01 subs r3, #1
  43156. 8012798: b29a uxth r2, r3
  43157. 801279a: 687b ldr r3, [r7, #4]
  43158. 801279c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43159. }
  43160. 80127a0: bf00 nop
  43161. 80127a2: 373c adds r7, #60 @ 0x3c
  43162. 80127a4: 46bd mov sp, r7
  43163. 80127a6: f85d 7b04 ldr.w r7, [sp], #4
  43164. 80127aa: 4770 bx lr
  43165. 080127ac <UART_TxISR_16BIT>:
  43166. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43167. * @param huart UART handle.
  43168. * @retval None
  43169. */
  43170. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  43171. {
  43172. 80127ac: b480 push {r7}
  43173. 80127ae: b091 sub sp, #68 @ 0x44
  43174. 80127b0: af00 add r7, sp, #0
  43175. 80127b2: 6078 str r0, [r7, #4]
  43176. const uint16_t *tmp;
  43177. /* Check that a Tx process is ongoing */
  43178. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43179. 80127b4: 687b ldr r3, [r7, #4]
  43180. 80127b6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43181. 80127ba: 2b21 cmp r3, #33 @ 0x21
  43182. 80127bc: d151 bne.n 8012862 <UART_TxISR_16BIT+0xb6>
  43183. {
  43184. if (huart->TxXferCount == 0U)
  43185. 80127be: 687b ldr r3, [r7, #4]
  43186. 80127c0: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43187. 80127c4: b29b uxth r3, r3
  43188. 80127c6: 2b00 cmp r3, #0
  43189. 80127c8: d132 bne.n 8012830 <UART_TxISR_16BIT+0x84>
  43190. {
  43191. /* Disable the UART Transmit Data Register Empty Interrupt */
  43192. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  43193. 80127ca: 687b ldr r3, [r7, #4]
  43194. 80127cc: 681b ldr r3, [r3, #0]
  43195. 80127ce: 627b str r3, [r7, #36] @ 0x24
  43196. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43197. 80127d0: 6a7b ldr r3, [r7, #36] @ 0x24
  43198. 80127d2: e853 3f00 ldrex r3, [r3]
  43199. 80127d6: 623b str r3, [r7, #32]
  43200. return(result);
  43201. 80127d8: 6a3b ldr r3, [r7, #32]
  43202. 80127da: f023 0380 bic.w r3, r3, #128 @ 0x80
  43203. 80127de: 63bb str r3, [r7, #56] @ 0x38
  43204. 80127e0: 687b ldr r3, [r7, #4]
  43205. 80127e2: 681b ldr r3, [r3, #0]
  43206. 80127e4: 461a mov r2, r3
  43207. 80127e6: 6bbb ldr r3, [r7, #56] @ 0x38
  43208. 80127e8: 633b str r3, [r7, #48] @ 0x30
  43209. 80127ea: 62fa str r2, [r7, #44] @ 0x2c
  43210. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43211. 80127ec: 6af9 ldr r1, [r7, #44] @ 0x2c
  43212. 80127ee: 6b3a ldr r2, [r7, #48] @ 0x30
  43213. 80127f0: e841 2300 strex r3, r2, [r1]
  43214. 80127f4: 62bb str r3, [r7, #40] @ 0x28
  43215. return(result);
  43216. 80127f6: 6abb ldr r3, [r7, #40] @ 0x28
  43217. 80127f8: 2b00 cmp r3, #0
  43218. 80127fa: d1e6 bne.n 80127ca <UART_TxISR_16BIT+0x1e>
  43219. /* Enable the UART Transmit Complete Interrupt */
  43220. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43221. 80127fc: 687b ldr r3, [r7, #4]
  43222. 80127fe: 681b ldr r3, [r3, #0]
  43223. 8012800: 613b str r3, [r7, #16]
  43224. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43225. 8012802: 693b ldr r3, [r7, #16]
  43226. 8012804: e853 3f00 ldrex r3, [r3]
  43227. 8012808: 60fb str r3, [r7, #12]
  43228. return(result);
  43229. 801280a: 68fb ldr r3, [r7, #12]
  43230. 801280c: f043 0340 orr.w r3, r3, #64 @ 0x40
  43231. 8012810: 637b str r3, [r7, #52] @ 0x34
  43232. 8012812: 687b ldr r3, [r7, #4]
  43233. 8012814: 681b ldr r3, [r3, #0]
  43234. 8012816: 461a mov r2, r3
  43235. 8012818: 6b7b ldr r3, [r7, #52] @ 0x34
  43236. 801281a: 61fb str r3, [r7, #28]
  43237. 801281c: 61ba str r2, [r7, #24]
  43238. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43239. 801281e: 69b9 ldr r1, [r7, #24]
  43240. 8012820: 69fa ldr r2, [r7, #28]
  43241. 8012822: e841 2300 strex r3, r2, [r1]
  43242. 8012826: 617b str r3, [r7, #20]
  43243. return(result);
  43244. 8012828: 697b ldr r3, [r7, #20]
  43245. 801282a: 2b00 cmp r3, #0
  43246. 801282c: d1e6 bne.n 80127fc <UART_TxISR_16BIT+0x50>
  43247. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  43248. huart->pTxBuffPtr += 2U;
  43249. huart->TxXferCount--;
  43250. }
  43251. }
  43252. }
  43253. 801282e: e018 b.n 8012862 <UART_TxISR_16BIT+0xb6>
  43254. tmp = (const uint16_t *) huart->pTxBuffPtr;
  43255. 8012830: 687b ldr r3, [r7, #4]
  43256. 8012832: 6d1b ldr r3, [r3, #80] @ 0x50
  43257. 8012834: 63fb str r3, [r7, #60] @ 0x3c
  43258. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  43259. 8012836: 6bfb ldr r3, [r7, #60] @ 0x3c
  43260. 8012838: 881b ldrh r3, [r3, #0]
  43261. 801283a: 461a mov r2, r3
  43262. 801283c: 687b ldr r3, [r7, #4]
  43263. 801283e: 681b ldr r3, [r3, #0]
  43264. 8012840: f3c2 0208 ubfx r2, r2, #0, #9
  43265. 8012844: 629a str r2, [r3, #40] @ 0x28
  43266. huart->pTxBuffPtr += 2U;
  43267. 8012846: 687b ldr r3, [r7, #4]
  43268. 8012848: 6d1b ldr r3, [r3, #80] @ 0x50
  43269. 801284a: 1c9a adds r2, r3, #2
  43270. 801284c: 687b ldr r3, [r7, #4]
  43271. 801284e: 651a str r2, [r3, #80] @ 0x50
  43272. huart->TxXferCount--;
  43273. 8012850: 687b ldr r3, [r7, #4]
  43274. 8012852: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43275. 8012856: b29b uxth r3, r3
  43276. 8012858: 3b01 subs r3, #1
  43277. 801285a: b29a uxth r2, r3
  43278. 801285c: 687b ldr r3, [r7, #4]
  43279. 801285e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43280. }
  43281. 8012862: bf00 nop
  43282. 8012864: 3744 adds r7, #68 @ 0x44
  43283. 8012866: 46bd mov sp, r7
  43284. 8012868: f85d 7b04 ldr.w r7, [sp], #4
  43285. 801286c: 4770 bx lr
  43286. 0801286e <UART_TxISR_8BIT_FIFOEN>:
  43287. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43288. * @param huart UART handle.
  43289. * @retval None
  43290. */
  43291. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  43292. {
  43293. 801286e: b480 push {r7}
  43294. 8012870: b091 sub sp, #68 @ 0x44
  43295. 8012872: af00 add r7, sp, #0
  43296. 8012874: 6078 str r0, [r7, #4]
  43297. uint16_t nb_tx_data;
  43298. /* Check that a Tx process is ongoing */
  43299. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43300. 8012876: 687b ldr r3, [r7, #4]
  43301. 8012878: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43302. 801287c: 2b21 cmp r3, #33 @ 0x21
  43303. 801287e: d160 bne.n 8012942 <UART_TxISR_8BIT_FIFOEN+0xd4>
  43304. {
  43305. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43306. 8012880: 687b ldr r3, [r7, #4]
  43307. 8012882: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  43308. 8012886: 87fb strh r3, [r7, #62] @ 0x3e
  43309. 8012888: e057 b.n 801293a <UART_TxISR_8BIT_FIFOEN+0xcc>
  43310. {
  43311. if (huart->TxXferCount == 0U)
  43312. 801288a: 687b ldr r3, [r7, #4]
  43313. 801288c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43314. 8012890: b29b uxth r3, r3
  43315. 8012892: 2b00 cmp r3, #0
  43316. 8012894: d133 bne.n 80128fe <UART_TxISR_8BIT_FIFOEN+0x90>
  43317. {
  43318. /* Disable the TX FIFO threshold interrupt */
  43319. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  43320. 8012896: 687b ldr r3, [r7, #4]
  43321. 8012898: 681b ldr r3, [r3, #0]
  43322. 801289a: 3308 adds r3, #8
  43323. 801289c: 627b str r3, [r7, #36] @ 0x24
  43324. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43325. 801289e: 6a7b ldr r3, [r7, #36] @ 0x24
  43326. 80128a0: e853 3f00 ldrex r3, [r3]
  43327. 80128a4: 623b str r3, [r7, #32]
  43328. return(result);
  43329. 80128a6: 6a3b ldr r3, [r7, #32]
  43330. 80128a8: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  43331. 80128ac: 63bb str r3, [r7, #56] @ 0x38
  43332. 80128ae: 687b ldr r3, [r7, #4]
  43333. 80128b0: 681b ldr r3, [r3, #0]
  43334. 80128b2: 3308 adds r3, #8
  43335. 80128b4: 6bba ldr r2, [r7, #56] @ 0x38
  43336. 80128b6: 633a str r2, [r7, #48] @ 0x30
  43337. 80128b8: 62fb str r3, [r7, #44] @ 0x2c
  43338. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43339. 80128ba: 6af9 ldr r1, [r7, #44] @ 0x2c
  43340. 80128bc: 6b3a ldr r2, [r7, #48] @ 0x30
  43341. 80128be: e841 2300 strex r3, r2, [r1]
  43342. 80128c2: 62bb str r3, [r7, #40] @ 0x28
  43343. return(result);
  43344. 80128c4: 6abb ldr r3, [r7, #40] @ 0x28
  43345. 80128c6: 2b00 cmp r3, #0
  43346. 80128c8: d1e5 bne.n 8012896 <UART_TxISR_8BIT_FIFOEN+0x28>
  43347. /* Enable the UART Transmit Complete Interrupt */
  43348. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43349. 80128ca: 687b ldr r3, [r7, #4]
  43350. 80128cc: 681b ldr r3, [r3, #0]
  43351. 80128ce: 613b str r3, [r7, #16]
  43352. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43353. 80128d0: 693b ldr r3, [r7, #16]
  43354. 80128d2: e853 3f00 ldrex r3, [r3]
  43355. 80128d6: 60fb str r3, [r7, #12]
  43356. return(result);
  43357. 80128d8: 68fb ldr r3, [r7, #12]
  43358. 80128da: f043 0340 orr.w r3, r3, #64 @ 0x40
  43359. 80128de: 637b str r3, [r7, #52] @ 0x34
  43360. 80128e0: 687b ldr r3, [r7, #4]
  43361. 80128e2: 681b ldr r3, [r3, #0]
  43362. 80128e4: 461a mov r2, r3
  43363. 80128e6: 6b7b ldr r3, [r7, #52] @ 0x34
  43364. 80128e8: 61fb str r3, [r7, #28]
  43365. 80128ea: 61ba str r2, [r7, #24]
  43366. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43367. 80128ec: 69b9 ldr r1, [r7, #24]
  43368. 80128ee: 69fa ldr r2, [r7, #28]
  43369. 80128f0: e841 2300 strex r3, r2, [r1]
  43370. 80128f4: 617b str r3, [r7, #20]
  43371. return(result);
  43372. 80128f6: 697b ldr r3, [r7, #20]
  43373. 80128f8: 2b00 cmp r3, #0
  43374. 80128fa: d1e6 bne.n 80128ca <UART_TxISR_8BIT_FIFOEN+0x5c>
  43375. break; /* force exit loop */
  43376. 80128fc: e021 b.n 8012942 <UART_TxISR_8BIT_FIFOEN+0xd4>
  43377. }
  43378. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  43379. 80128fe: 687b ldr r3, [r7, #4]
  43380. 8012900: 681b ldr r3, [r3, #0]
  43381. 8012902: 69db ldr r3, [r3, #28]
  43382. 8012904: f003 0380 and.w r3, r3, #128 @ 0x80
  43383. 8012908: 2b00 cmp r3, #0
  43384. 801290a: d013 beq.n 8012934 <UART_TxISR_8BIT_FIFOEN+0xc6>
  43385. {
  43386. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  43387. 801290c: 687b ldr r3, [r7, #4]
  43388. 801290e: 6d1b ldr r3, [r3, #80] @ 0x50
  43389. 8012910: 781a ldrb r2, [r3, #0]
  43390. 8012912: 687b ldr r3, [r7, #4]
  43391. 8012914: 681b ldr r3, [r3, #0]
  43392. 8012916: 629a str r2, [r3, #40] @ 0x28
  43393. huart->pTxBuffPtr++;
  43394. 8012918: 687b ldr r3, [r7, #4]
  43395. 801291a: 6d1b ldr r3, [r3, #80] @ 0x50
  43396. 801291c: 1c5a adds r2, r3, #1
  43397. 801291e: 687b ldr r3, [r7, #4]
  43398. 8012920: 651a str r2, [r3, #80] @ 0x50
  43399. huart->TxXferCount--;
  43400. 8012922: 687b ldr r3, [r7, #4]
  43401. 8012924: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43402. 8012928: b29b uxth r3, r3
  43403. 801292a: 3b01 subs r3, #1
  43404. 801292c: b29a uxth r2, r3
  43405. 801292e: 687b ldr r3, [r7, #4]
  43406. 8012930: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43407. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43408. 8012934: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43409. 8012936: 3b01 subs r3, #1
  43410. 8012938: 87fb strh r3, [r7, #62] @ 0x3e
  43411. 801293a: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43412. 801293c: 2b00 cmp r3, #0
  43413. 801293e: d1a4 bne.n 801288a <UART_TxISR_8BIT_FIFOEN+0x1c>
  43414. {
  43415. /* Nothing to do */
  43416. }
  43417. }
  43418. }
  43419. }
  43420. 8012940: e7ff b.n 8012942 <UART_TxISR_8BIT_FIFOEN+0xd4>
  43421. 8012942: bf00 nop
  43422. 8012944: 3744 adds r7, #68 @ 0x44
  43423. 8012946: 46bd mov sp, r7
  43424. 8012948: f85d 7b04 ldr.w r7, [sp], #4
  43425. 801294c: 4770 bx lr
  43426. 0801294e <UART_TxISR_16BIT_FIFOEN>:
  43427. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43428. * @param huart UART handle.
  43429. * @retval None
  43430. */
  43431. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  43432. {
  43433. 801294e: b480 push {r7}
  43434. 8012950: b091 sub sp, #68 @ 0x44
  43435. 8012952: af00 add r7, sp, #0
  43436. 8012954: 6078 str r0, [r7, #4]
  43437. const uint16_t *tmp;
  43438. uint16_t nb_tx_data;
  43439. /* Check that a Tx process is ongoing */
  43440. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43441. 8012956: 687b ldr r3, [r7, #4]
  43442. 8012958: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43443. 801295c: 2b21 cmp r3, #33 @ 0x21
  43444. 801295e: d165 bne.n 8012a2c <UART_TxISR_16BIT_FIFOEN+0xde>
  43445. {
  43446. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43447. 8012960: 687b ldr r3, [r7, #4]
  43448. 8012962: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  43449. 8012966: 87fb strh r3, [r7, #62] @ 0x3e
  43450. 8012968: e05c b.n 8012a24 <UART_TxISR_16BIT_FIFOEN+0xd6>
  43451. {
  43452. if (huart->TxXferCount == 0U)
  43453. 801296a: 687b ldr r3, [r7, #4]
  43454. 801296c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43455. 8012970: b29b uxth r3, r3
  43456. 8012972: 2b00 cmp r3, #0
  43457. 8012974: d133 bne.n 80129de <UART_TxISR_16BIT_FIFOEN+0x90>
  43458. {
  43459. /* Disable the TX FIFO threshold interrupt */
  43460. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  43461. 8012976: 687b ldr r3, [r7, #4]
  43462. 8012978: 681b ldr r3, [r3, #0]
  43463. 801297a: 3308 adds r3, #8
  43464. 801297c: 623b str r3, [r7, #32]
  43465. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43466. 801297e: 6a3b ldr r3, [r7, #32]
  43467. 8012980: e853 3f00 ldrex r3, [r3]
  43468. 8012984: 61fb str r3, [r7, #28]
  43469. return(result);
  43470. 8012986: 69fb ldr r3, [r7, #28]
  43471. 8012988: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  43472. 801298c: 637b str r3, [r7, #52] @ 0x34
  43473. 801298e: 687b ldr r3, [r7, #4]
  43474. 8012990: 681b ldr r3, [r3, #0]
  43475. 8012992: 3308 adds r3, #8
  43476. 8012994: 6b7a ldr r2, [r7, #52] @ 0x34
  43477. 8012996: 62fa str r2, [r7, #44] @ 0x2c
  43478. 8012998: 62bb str r3, [r7, #40] @ 0x28
  43479. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43480. 801299a: 6ab9 ldr r1, [r7, #40] @ 0x28
  43481. 801299c: 6afa ldr r2, [r7, #44] @ 0x2c
  43482. 801299e: e841 2300 strex r3, r2, [r1]
  43483. 80129a2: 627b str r3, [r7, #36] @ 0x24
  43484. return(result);
  43485. 80129a4: 6a7b ldr r3, [r7, #36] @ 0x24
  43486. 80129a6: 2b00 cmp r3, #0
  43487. 80129a8: d1e5 bne.n 8012976 <UART_TxISR_16BIT_FIFOEN+0x28>
  43488. /* Enable the UART Transmit Complete Interrupt */
  43489. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43490. 80129aa: 687b ldr r3, [r7, #4]
  43491. 80129ac: 681b ldr r3, [r3, #0]
  43492. 80129ae: 60fb str r3, [r7, #12]
  43493. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43494. 80129b0: 68fb ldr r3, [r7, #12]
  43495. 80129b2: e853 3f00 ldrex r3, [r3]
  43496. 80129b6: 60bb str r3, [r7, #8]
  43497. return(result);
  43498. 80129b8: 68bb ldr r3, [r7, #8]
  43499. 80129ba: f043 0340 orr.w r3, r3, #64 @ 0x40
  43500. 80129be: 633b str r3, [r7, #48] @ 0x30
  43501. 80129c0: 687b ldr r3, [r7, #4]
  43502. 80129c2: 681b ldr r3, [r3, #0]
  43503. 80129c4: 461a mov r2, r3
  43504. 80129c6: 6b3b ldr r3, [r7, #48] @ 0x30
  43505. 80129c8: 61bb str r3, [r7, #24]
  43506. 80129ca: 617a str r2, [r7, #20]
  43507. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43508. 80129cc: 6979 ldr r1, [r7, #20]
  43509. 80129ce: 69ba ldr r2, [r7, #24]
  43510. 80129d0: e841 2300 strex r3, r2, [r1]
  43511. 80129d4: 613b str r3, [r7, #16]
  43512. return(result);
  43513. 80129d6: 693b ldr r3, [r7, #16]
  43514. 80129d8: 2b00 cmp r3, #0
  43515. 80129da: d1e6 bne.n 80129aa <UART_TxISR_16BIT_FIFOEN+0x5c>
  43516. break; /* force exit loop */
  43517. 80129dc: e026 b.n 8012a2c <UART_TxISR_16BIT_FIFOEN+0xde>
  43518. }
  43519. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  43520. 80129de: 687b ldr r3, [r7, #4]
  43521. 80129e0: 681b ldr r3, [r3, #0]
  43522. 80129e2: 69db ldr r3, [r3, #28]
  43523. 80129e4: f003 0380 and.w r3, r3, #128 @ 0x80
  43524. 80129e8: 2b00 cmp r3, #0
  43525. 80129ea: d018 beq.n 8012a1e <UART_TxISR_16BIT_FIFOEN+0xd0>
  43526. {
  43527. tmp = (const uint16_t *) huart->pTxBuffPtr;
  43528. 80129ec: 687b ldr r3, [r7, #4]
  43529. 80129ee: 6d1b ldr r3, [r3, #80] @ 0x50
  43530. 80129f0: 63bb str r3, [r7, #56] @ 0x38
  43531. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  43532. 80129f2: 6bbb ldr r3, [r7, #56] @ 0x38
  43533. 80129f4: 881b ldrh r3, [r3, #0]
  43534. 80129f6: 461a mov r2, r3
  43535. 80129f8: 687b ldr r3, [r7, #4]
  43536. 80129fa: 681b ldr r3, [r3, #0]
  43537. 80129fc: f3c2 0208 ubfx r2, r2, #0, #9
  43538. 8012a00: 629a str r2, [r3, #40] @ 0x28
  43539. huart->pTxBuffPtr += 2U;
  43540. 8012a02: 687b ldr r3, [r7, #4]
  43541. 8012a04: 6d1b ldr r3, [r3, #80] @ 0x50
  43542. 8012a06: 1c9a adds r2, r3, #2
  43543. 8012a08: 687b ldr r3, [r7, #4]
  43544. 8012a0a: 651a str r2, [r3, #80] @ 0x50
  43545. huart->TxXferCount--;
  43546. 8012a0c: 687b ldr r3, [r7, #4]
  43547. 8012a0e: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43548. 8012a12: b29b uxth r3, r3
  43549. 8012a14: 3b01 subs r3, #1
  43550. 8012a16: b29a uxth r2, r3
  43551. 8012a18: 687b ldr r3, [r7, #4]
  43552. 8012a1a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43553. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  43554. 8012a1e: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43555. 8012a20: 3b01 subs r3, #1
  43556. 8012a22: 87fb strh r3, [r7, #62] @ 0x3e
  43557. 8012a24: 8ffb ldrh r3, [r7, #62] @ 0x3e
  43558. 8012a26: 2b00 cmp r3, #0
  43559. 8012a28: d19f bne.n 801296a <UART_TxISR_16BIT_FIFOEN+0x1c>
  43560. {
  43561. /* Nothing to do */
  43562. }
  43563. }
  43564. }
  43565. }
  43566. 8012a2a: e7ff b.n 8012a2c <UART_TxISR_16BIT_FIFOEN+0xde>
  43567. 8012a2c: bf00 nop
  43568. 8012a2e: 3744 adds r7, #68 @ 0x44
  43569. 8012a30: 46bd mov sp, r7
  43570. 8012a32: f85d 7b04 ldr.w r7, [sp], #4
  43571. 8012a36: 4770 bx lr
  43572. 08012a38 <UART_EndTransmit_IT>:
  43573. * @param huart pointer to a UART_HandleTypeDef structure that contains
  43574. * the configuration information for the specified UART module.
  43575. * @retval None
  43576. */
  43577. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  43578. {
  43579. 8012a38: b580 push {r7, lr}
  43580. 8012a3a: b088 sub sp, #32
  43581. 8012a3c: af00 add r7, sp, #0
  43582. 8012a3e: 6078 str r0, [r7, #4]
  43583. /* Disable the UART Transmit Complete Interrupt */
  43584. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43585. 8012a40: 687b ldr r3, [r7, #4]
  43586. 8012a42: 681b ldr r3, [r3, #0]
  43587. 8012a44: 60fb str r3, [r7, #12]
  43588. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43589. 8012a46: 68fb ldr r3, [r7, #12]
  43590. 8012a48: e853 3f00 ldrex r3, [r3]
  43591. 8012a4c: 60bb str r3, [r7, #8]
  43592. return(result);
  43593. 8012a4e: 68bb ldr r3, [r7, #8]
  43594. 8012a50: f023 0340 bic.w r3, r3, #64 @ 0x40
  43595. 8012a54: 61fb str r3, [r7, #28]
  43596. 8012a56: 687b ldr r3, [r7, #4]
  43597. 8012a58: 681b ldr r3, [r3, #0]
  43598. 8012a5a: 461a mov r2, r3
  43599. 8012a5c: 69fb ldr r3, [r7, #28]
  43600. 8012a5e: 61bb str r3, [r7, #24]
  43601. 8012a60: 617a str r2, [r7, #20]
  43602. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43603. 8012a62: 6979 ldr r1, [r7, #20]
  43604. 8012a64: 69ba ldr r2, [r7, #24]
  43605. 8012a66: e841 2300 strex r3, r2, [r1]
  43606. 8012a6a: 613b str r3, [r7, #16]
  43607. return(result);
  43608. 8012a6c: 693b ldr r3, [r7, #16]
  43609. 8012a6e: 2b00 cmp r3, #0
  43610. 8012a70: d1e6 bne.n 8012a40 <UART_EndTransmit_IT+0x8>
  43611. /* Tx process is ended, restore huart->gState to Ready */
  43612. huart->gState = HAL_UART_STATE_READY;
  43613. 8012a72: 687b ldr r3, [r7, #4]
  43614. 8012a74: 2220 movs r2, #32
  43615. 8012a76: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43616. /* Cleat TxISR function pointer */
  43617. huart->TxISR = NULL;
  43618. 8012a7a: 687b ldr r3, [r7, #4]
  43619. 8012a7c: 2200 movs r2, #0
  43620. 8012a7e: 679a str r2, [r3, #120] @ 0x78
  43621. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43622. /*Call registered Tx complete callback*/
  43623. huart->TxCpltCallback(huart);
  43624. #else
  43625. /*Call legacy weak Tx complete callback*/
  43626. HAL_UART_TxCpltCallback(huart);
  43627. 8012a80: 6878 ldr r0, [r7, #4]
  43628. 8012a82: f7f1 fd01 bl 8004488 <HAL_UART_TxCpltCallback>
  43629. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43630. }
  43631. 8012a86: bf00 nop
  43632. 8012a88: 3720 adds r7, #32
  43633. 8012a8a: 46bd mov sp, r7
  43634. 8012a8c: bd80 pop {r7, pc}
  43635. ...
  43636. 08012a90 <UART_RxISR_8BIT>:
  43637. * @brief RX interrupt handler for 7 or 8 bits data word length .
  43638. * @param huart UART handle.
  43639. * @retval None
  43640. */
  43641. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  43642. {
  43643. 8012a90: b580 push {r7, lr}
  43644. 8012a92: b09c sub sp, #112 @ 0x70
  43645. 8012a94: af00 add r7, sp, #0
  43646. 8012a96: 6078 str r0, [r7, #4]
  43647. uint16_t uhMask = huart->Mask;
  43648. 8012a98: 687b ldr r3, [r7, #4]
  43649. 8012a9a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43650. 8012a9e: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  43651. uint16_t uhdata;
  43652. /* Check that a Rx process is ongoing */
  43653. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43654. 8012aa2: 687b ldr r3, [r7, #4]
  43655. 8012aa4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43656. 8012aa8: 2b22 cmp r3, #34 @ 0x22
  43657. 8012aaa: f040 80be bne.w 8012c2a <UART_RxISR_8BIT+0x19a>
  43658. {
  43659. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43660. 8012aae: 687b ldr r3, [r7, #4]
  43661. 8012ab0: 681b ldr r3, [r3, #0]
  43662. 8012ab2: 6a5b ldr r3, [r3, #36] @ 0x24
  43663. 8012ab4: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  43664. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  43665. 8012ab8: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  43666. 8012abc: b2d9 uxtb r1, r3
  43667. 8012abe: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  43668. 8012ac2: b2da uxtb r2, r3
  43669. 8012ac4: 687b ldr r3, [r7, #4]
  43670. 8012ac6: 6d9b ldr r3, [r3, #88] @ 0x58
  43671. 8012ac8: 400a ands r2, r1
  43672. 8012aca: b2d2 uxtb r2, r2
  43673. 8012acc: 701a strb r2, [r3, #0]
  43674. huart->pRxBuffPtr++;
  43675. 8012ace: 687b ldr r3, [r7, #4]
  43676. 8012ad0: 6d9b ldr r3, [r3, #88] @ 0x58
  43677. 8012ad2: 1c5a adds r2, r3, #1
  43678. 8012ad4: 687b ldr r3, [r7, #4]
  43679. 8012ad6: 659a str r2, [r3, #88] @ 0x58
  43680. huart->RxXferCount--;
  43681. 8012ad8: 687b ldr r3, [r7, #4]
  43682. 8012ada: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43683. 8012ade: b29b uxth r3, r3
  43684. 8012ae0: 3b01 subs r3, #1
  43685. 8012ae2: b29a uxth r2, r3
  43686. 8012ae4: 687b ldr r3, [r7, #4]
  43687. 8012ae6: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43688. if (huart->RxXferCount == 0U)
  43689. 8012aea: 687b ldr r3, [r7, #4]
  43690. 8012aec: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43691. 8012af0: b29b uxth r3, r3
  43692. 8012af2: 2b00 cmp r3, #0
  43693. 8012af4: f040 80a1 bne.w 8012c3a <UART_RxISR_8BIT+0x1aa>
  43694. {
  43695. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  43696. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43697. 8012af8: 687b ldr r3, [r7, #4]
  43698. 8012afa: 681b ldr r3, [r3, #0]
  43699. 8012afc: 64fb str r3, [r7, #76] @ 0x4c
  43700. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43701. 8012afe: 6cfb ldr r3, [r7, #76] @ 0x4c
  43702. 8012b00: e853 3f00 ldrex r3, [r3]
  43703. 8012b04: 64bb str r3, [r7, #72] @ 0x48
  43704. return(result);
  43705. 8012b06: 6cbb ldr r3, [r7, #72] @ 0x48
  43706. 8012b08: f423 7390 bic.w r3, r3, #288 @ 0x120
  43707. 8012b0c: 66bb str r3, [r7, #104] @ 0x68
  43708. 8012b0e: 687b ldr r3, [r7, #4]
  43709. 8012b10: 681b ldr r3, [r3, #0]
  43710. 8012b12: 461a mov r2, r3
  43711. 8012b14: 6ebb ldr r3, [r7, #104] @ 0x68
  43712. 8012b16: 65bb str r3, [r7, #88] @ 0x58
  43713. 8012b18: 657a str r2, [r7, #84] @ 0x54
  43714. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43715. 8012b1a: 6d79 ldr r1, [r7, #84] @ 0x54
  43716. 8012b1c: 6dba ldr r2, [r7, #88] @ 0x58
  43717. 8012b1e: e841 2300 strex r3, r2, [r1]
  43718. 8012b22: 653b str r3, [r7, #80] @ 0x50
  43719. return(result);
  43720. 8012b24: 6d3b ldr r3, [r7, #80] @ 0x50
  43721. 8012b26: 2b00 cmp r3, #0
  43722. 8012b28: d1e6 bne.n 8012af8 <UART_RxISR_8BIT+0x68>
  43723. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43724. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43725. 8012b2a: 687b ldr r3, [r7, #4]
  43726. 8012b2c: 681b ldr r3, [r3, #0]
  43727. 8012b2e: 3308 adds r3, #8
  43728. 8012b30: 63bb str r3, [r7, #56] @ 0x38
  43729. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43730. 8012b32: 6bbb ldr r3, [r7, #56] @ 0x38
  43731. 8012b34: e853 3f00 ldrex r3, [r3]
  43732. 8012b38: 637b str r3, [r7, #52] @ 0x34
  43733. return(result);
  43734. 8012b3a: 6b7b ldr r3, [r7, #52] @ 0x34
  43735. 8012b3c: f023 0301 bic.w r3, r3, #1
  43736. 8012b40: 667b str r3, [r7, #100] @ 0x64
  43737. 8012b42: 687b ldr r3, [r7, #4]
  43738. 8012b44: 681b ldr r3, [r3, #0]
  43739. 8012b46: 3308 adds r3, #8
  43740. 8012b48: 6e7a ldr r2, [r7, #100] @ 0x64
  43741. 8012b4a: 647a str r2, [r7, #68] @ 0x44
  43742. 8012b4c: 643b str r3, [r7, #64] @ 0x40
  43743. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43744. 8012b4e: 6c39 ldr r1, [r7, #64] @ 0x40
  43745. 8012b50: 6c7a ldr r2, [r7, #68] @ 0x44
  43746. 8012b52: e841 2300 strex r3, r2, [r1]
  43747. 8012b56: 63fb str r3, [r7, #60] @ 0x3c
  43748. return(result);
  43749. 8012b58: 6bfb ldr r3, [r7, #60] @ 0x3c
  43750. 8012b5a: 2b00 cmp r3, #0
  43751. 8012b5c: d1e5 bne.n 8012b2a <UART_RxISR_8BIT+0x9a>
  43752. /* Rx process is completed, restore huart->RxState to Ready */
  43753. huart->RxState = HAL_UART_STATE_READY;
  43754. 8012b5e: 687b ldr r3, [r7, #4]
  43755. 8012b60: 2220 movs r2, #32
  43756. 8012b62: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43757. /* Clear RxISR function pointer */
  43758. huart->RxISR = NULL;
  43759. 8012b66: 687b ldr r3, [r7, #4]
  43760. 8012b68: 2200 movs r2, #0
  43761. 8012b6a: 675a str r2, [r3, #116] @ 0x74
  43762. /* Initialize type of RxEvent to Transfer Complete */
  43763. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43764. 8012b6c: 687b ldr r3, [r7, #4]
  43765. 8012b6e: 2200 movs r2, #0
  43766. 8012b70: 671a str r2, [r3, #112] @ 0x70
  43767. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  43768. 8012b72: 687b ldr r3, [r7, #4]
  43769. 8012b74: 681b ldr r3, [r3, #0]
  43770. 8012b76: 4a33 ldr r2, [pc, #204] @ (8012c44 <UART_RxISR_8BIT+0x1b4>)
  43771. 8012b78: 4293 cmp r3, r2
  43772. 8012b7a: d01f beq.n 8012bbc <UART_RxISR_8BIT+0x12c>
  43773. {
  43774. /* Check that USART RTOEN bit is set */
  43775. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  43776. 8012b7c: 687b ldr r3, [r7, #4]
  43777. 8012b7e: 681b ldr r3, [r3, #0]
  43778. 8012b80: 685b ldr r3, [r3, #4]
  43779. 8012b82: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  43780. 8012b86: 2b00 cmp r3, #0
  43781. 8012b88: d018 beq.n 8012bbc <UART_RxISR_8BIT+0x12c>
  43782. {
  43783. /* Enable the UART Receiver Timeout Interrupt */
  43784. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  43785. 8012b8a: 687b ldr r3, [r7, #4]
  43786. 8012b8c: 681b ldr r3, [r3, #0]
  43787. 8012b8e: 627b str r3, [r7, #36] @ 0x24
  43788. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43789. 8012b90: 6a7b ldr r3, [r7, #36] @ 0x24
  43790. 8012b92: e853 3f00 ldrex r3, [r3]
  43791. 8012b96: 623b str r3, [r7, #32]
  43792. return(result);
  43793. 8012b98: 6a3b ldr r3, [r7, #32]
  43794. 8012b9a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  43795. 8012b9e: 663b str r3, [r7, #96] @ 0x60
  43796. 8012ba0: 687b ldr r3, [r7, #4]
  43797. 8012ba2: 681b ldr r3, [r3, #0]
  43798. 8012ba4: 461a mov r2, r3
  43799. 8012ba6: 6e3b ldr r3, [r7, #96] @ 0x60
  43800. 8012ba8: 633b str r3, [r7, #48] @ 0x30
  43801. 8012baa: 62fa str r2, [r7, #44] @ 0x2c
  43802. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43803. 8012bac: 6af9 ldr r1, [r7, #44] @ 0x2c
  43804. 8012bae: 6b3a ldr r2, [r7, #48] @ 0x30
  43805. 8012bb0: e841 2300 strex r3, r2, [r1]
  43806. 8012bb4: 62bb str r3, [r7, #40] @ 0x28
  43807. return(result);
  43808. 8012bb6: 6abb ldr r3, [r7, #40] @ 0x28
  43809. 8012bb8: 2b00 cmp r3, #0
  43810. 8012bba: d1e6 bne.n 8012b8a <UART_RxISR_8BIT+0xfa>
  43811. }
  43812. }
  43813. /* Check current reception Mode :
  43814. If Reception till IDLE event has been selected : */
  43815. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43816. 8012bbc: 687b ldr r3, [r7, #4]
  43817. 8012bbe: 6edb ldr r3, [r3, #108] @ 0x6c
  43818. 8012bc0: 2b01 cmp r3, #1
  43819. 8012bc2: d12e bne.n 8012c22 <UART_RxISR_8BIT+0x192>
  43820. {
  43821. /* Set reception type to Standard */
  43822. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43823. 8012bc4: 687b ldr r3, [r7, #4]
  43824. 8012bc6: 2200 movs r2, #0
  43825. 8012bc8: 66da str r2, [r3, #108] @ 0x6c
  43826. /* Disable IDLE interrupt */
  43827. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43828. 8012bca: 687b ldr r3, [r7, #4]
  43829. 8012bcc: 681b ldr r3, [r3, #0]
  43830. 8012bce: 613b str r3, [r7, #16]
  43831. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43832. 8012bd0: 693b ldr r3, [r7, #16]
  43833. 8012bd2: e853 3f00 ldrex r3, [r3]
  43834. 8012bd6: 60fb str r3, [r7, #12]
  43835. return(result);
  43836. 8012bd8: 68fb ldr r3, [r7, #12]
  43837. 8012bda: f023 0310 bic.w r3, r3, #16
  43838. 8012bde: 65fb str r3, [r7, #92] @ 0x5c
  43839. 8012be0: 687b ldr r3, [r7, #4]
  43840. 8012be2: 681b ldr r3, [r3, #0]
  43841. 8012be4: 461a mov r2, r3
  43842. 8012be6: 6dfb ldr r3, [r7, #92] @ 0x5c
  43843. 8012be8: 61fb str r3, [r7, #28]
  43844. 8012bea: 61ba str r2, [r7, #24]
  43845. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43846. 8012bec: 69b9 ldr r1, [r7, #24]
  43847. 8012bee: 69fa ldr r2, [r7, #28]
  43848. 8012bf0: e841 2300 strex r3, r2, [r1]
  43849. 8012bf4: 617b str r3, [r7, #20]
  43850. return(result);
  43851. 8012bf6: 697b ldr r3, [r7, #20]
  43852. 8012bf8: 2b00 cmp r3, #0
  43853. 8012bfa: d1e6 bne.n 8012bca <UART_RxISR_8BIT+0x13a>
  43854. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  43855. 8012bfc: 687b ldr r3, [r7, #4]
  43856. 8012bfe: 681b ldr r3, [r3, #0]
  43857. 8012c00: 69db ldr r3, [r3, #28]
  43858. 8012c02: f003 0310 and.w r3, r3, #16
  43859. 8012c06: 2b10 cmp r3, #16
  43860. 8012c08: d103 bne.n 8012c12 <UART_RxISR_8BIT+0x182>
  43861. {
  43862. /* Clear IDLE Flag */
  43863. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  43864. 8012c0a: 687b ldr r3, [r7, #4]
  43865. 8012c0c: 681b ldr r3, [r3, #0]
  43866. 8012c0e: 2210 movs r2, #16
  43867. 8012c10: 621a str r2, [r3, #32]
  43868. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43869. /*Call registered Rx Event callback*/
  43870. huart->RxEventCallback(huart, huart->RxXferSize);
  43871. #else
  43872. /*Call legacy weak Rx Event callback*/
  43873. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  43874. 8012c12: 687b ldr r3, [r7, #4]
  43875. 8012c14: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  43876. 8012c18: 4619 mov r1, r3
  43877. 8012c1a: 6878 ldr r0, [r7, #4]
  43878. 8012c1c: f7f1 fc0a bl 8004434 <HAL_UARTEx_RxEventCallback>
  43879. else
  43880. {
  43881. /* Clear RXNE interrupt flag */
  43882. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43883. }
  43884. }
  43885. 8012c20: e00b b.n 8012c3a <UART_RxISR_8BIT+0x1aa>
  43886. HAL_UART_RxCpltCallback(huart);
  43887. 8012c22: 6878 ldr r0, [r7, #4]
  43888. 8012c24: f7f1 fbfc bl 8004420 <HAL_UART_RxCpltCallback>
  43889. }
  43890. 8012c28: e007 b.n 8012c3a <UART_RxISR_8BIT+0x1aa>
  43891. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43892. 8012c2a: 687b ldr r3, [r7, #4]
  43893. 8012c2c: 681b ldr r3, [r3, #0]
  43894. 8012c2e: 699a ldr r2, [r3, #24]
  43895. 8012c30: 687b ldr r3, [r7, #4]
  43896. 8012c32: 681b ldr r3, [r3, #0]
  43897. 8012c34: f042 0208 orr.w r2, r2, #8
  43898. 8012c38: 619a str r2, [r3, #24]
  43899. }
  43900. 8012c3a: bf00 nop
  43901. 8012c3c: 3770 adds r7, #112 @ 0x70
  43902. 8012c3e: 46bd mov sp, r7
  43903. 8012c40: bd80 pop {r7, pc}
  43904. 8012c42: bf00 nop
  43905. 8012c44: 58000c00 .word 0x58000c00
  43906. 08012c48 <UART_RxISR_16BIT>:
  43907. * interruptions have been enabled by HAL_UART_Receive_IT()
  43908. * @param huart UART handle.
  43909. * @retval None
  43910. */
  43911. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  43912. {
  43913. 8012c48: b580 push {r7, lr}
  43914. 8012c4a: b09c sub sp, #112 @ 0x70
  43915. 8012c4c: af00 add r7, sp, #0
  43916. 8012c4e: 6078 str r0, [r7, #4]
  43917. uint16_t *tmp;
  43918. uint16_t uhMask = huart->Mask;
  43919. 8012c50: 687b ldr r3, [r7, #4]
  43920. 8012c52: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43921. 8012c56: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  43922. uint16_t uhdata;
  43923. /* Check that a Rx process is ongoing */
  43924. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43925. 8012c5a: 687b ldr r3, [r7, #4]
  43926. 8012c5c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43927. 8012c60: 2b22 cmp r3, #34 @ 0x22
  43928. 8012c62: f040 80be bne.w 8012de2 <UART_RxISR_16BIT+0x19a>
  43929. {
  43930. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43931. 8012c66: 687b ldr r3, [r7, #4]
  43932. 8012c68: 681b ldr r3, [r3, #0]
  43933. 8012c6a: 6a5b ldr r3, [r3, #36] @ 0x24
  43934. 8012c6c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  43935. tmp = (uint16_t *) huart->pRxBuffPtr ;
  43936. 8012c70: 687b ldr r3, [r7, #4]
  43937. 8012c72: 6d9b ldr r3, [r3, #88] @ 0x58
  43938. 8012c74: 66bb str r3, [r7, #104] @ 0x68
  43939. *tmp = (uint16_t)(uhdata & uhMask);
  43940. 8012c76: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  43941. 8012c7a: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  43942. 8012c7e: 4013 ands r3, r2
  43943. 8012c80: b29a uxth r2, r3
  43944. 8012c82: 6ebb ldr r3, [r7, #104] @ 0x68
  43945. 8012c84: 801a strh r2, [r3, #0]
  43946. huart->pRxBuffPtr += 2U;
  43947. 8012c86: 687b ldr r3, [r7, #4]
  43948. 8012c88: 6d9b ldr r3, [r3, #88] @ 0x58
  43949. 8012c8a: 1c9a adds r2, r3, #2
  43950. 8012c8c: 687b ldr r3, [r7, #4]
  43951. 8012c8e: 659a str r2, [r3, #88] @ 0x58
  43952. huart->RxXferCount--;
  43953. 8012c90: 687b ldr r3, [r7, #4]
  43954. 8012c92: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43955. 8012c96: b29b uxth r3, r3
  43956. 8012c98: 3b01 subs r3, #1
  43957. 8012c9a: b29a uxth r2, r3
  43958. 8012c9c: 687b ldr r3, [r7, #4]
  43959. 8012c9e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43960. if (huart->RxXferCount == 0U)
  43961. 8012ca2: 687b ldr r3, [r7, #4]
  43962. 8012ca4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43963. 8012ca8: b29b uxth r3, r3
  43964. 8012caa: 2b00 cmp r3, #0
  43965. 8012cac: f040 80a1 bne.w 8012df2 <UART_RxISR_16BIT+0x1aa>
  43966. {
  43967. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  43968. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43969. 8012cb0: 687b ldr r3, [r7, #4]
  43970. 8012cb2: 681b ldr r3, [r3, #0]
  43971. 8012cb4: 64bb str r3, [r7, #72] @ 0x48
  43972. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43973. 8012cb6: 6cbb ldr r3, [r7, #72] @ 0x48
  43974. 8012cb8: e853 3f00 ldrex r3, [r3]
  43975. 8012cbc: 647b str r3, [r7, #68] @ 0x44
  43976. return(result);
  43977. 8012cbe: 6c7b ldr r3, [r7, #68] @ 0x44
  43978. 8012cc0: f423 7390 bic.w r3, r3, #288 @ 0x120
  43979. 8012cc4: 667b str r3, [r7, #100] @ 0x64
  43980. 8012cc6: 687b ldr r3, [r7, #4]
  43981. 8012cc8: 681b ldr r3, [r3, #0]
  43982. 8012cca: 461a mov r2, r3
  43983. 8012ccc: 6e7b ldr r3, [r7, #100] @ 0x64
  43984. 8012cce: 657b str r3, [r7, #84] @ 0x54
  43985. 8012cd0: 653a str r2, [r7, #80] @ 0x50
  43986. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43987. 8012cd2: 6d39 ldr r1, [r7, #80] @ 0x50
  43988. 8012cd4: 6d7a ldr r2, [r7, #84] @ 0x54
  43989. 8012cd6: e841 2300 strex r3, r2, [r1]
  43990. 8012cda: 64fb str r3, [r7, #76] @ 0x4c
  43991. return(result);
  43992. 8012cdc: 6cfb ldr r3, [r7, #76] @ 0x4c
  43993. 8012cde: 2b00 cmp r3, #0
  43994. 8012ce0: d1e6 bne.n 8012cb0 <UART_RxISR_16BIT+0x68>
  43995. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43996. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43997. 8012ce2: 687b ldr r3, [r7, #4]
  43998. 8012ce4: 681b ldr r3, [r3, #0]
  43999. 8012ce6: 3308 adds r3, #8
  44000. 8012ce8: 637b str r3, [r7, #52] @ 0x34
  44001. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44002. 8012cea: 6b7b ldr r3, [r7, #52] @ 0x34
  44003. 8012cec: e853 3f00 ldrex r3, [r3]
  44004. 8012cf0: 633b str r3, [r7, #48] @ 0x30
  44005. return(result);
  44006. 8012cf2: 6b3b ldr r3, [r7, #48] @ 0x30
  44007. 8012cf4: f023 0301 bic.w r3, r3, #1
  44008. 8012cf8: 663b str r3, [r7, #96] @ 0x60
  44009. 8012cfa: 687b ldr r3, [r7, #4]
  44010. 8012cfc: 681b ldr r3, [r3, #0]
  44011. 8012cfe: 3308 adds r3, #8
  44012. 8012d00: 6e3a ldr r2, [r7, #96] @ 0x60
  44013. 8012d02: 643a str r2, [r7, #64] @ 0x40
  44014. 8012d04: 63fb str r3, [r7, #60] @ 0x3c
  44015. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44016. 8012d06: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44017. 8012d08: 6c3a ldr r2, [r7, #64] @ 0x40
  44018. 8012d0a: e841 2300 strex r3, r2, [r1]
  44019. 8012d0e: 63bb str r3, [r7, #56] @ 0x38
  44020. return(result);
  44021. 8012d10: 6bbb ldr r3, [r7, #56] @ 0x38
  44022. 8012d12: 2b00 cmp r3, #0
  44023. 8012d14: d1e5 bne.n 8012ce2 <UART_RxISR_16BIT+0x9a>
  44024. /* Rx process is completed, restore huart->RxState to Ready */
  44025. huart->RxState = HAL_UART_STATE_READY;
  44026. 8012d16: 687b ldr r3, [r7, #4]
  44027. 8012d18: 2220 movs r2, #32
  44028. 8012d1a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44029. /* Clear RxISR function pointer */
  44030. huart->RxISR = NULL;
  44031. 8012d1e: 687b ldr r3, [r7, #4]
  44032. 8012d20: 2200 movs r2, #0
  44033. 8012d22: 675a str r2, [r3, #116] @ 0x74
  44034. /* Initialize type of RxEvent to Transfer Complete */
  44035. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44036. 8012d24: 687b ldr r3, [r7, #4]
  44037. 8012d26: 2200 movs r2, #0
  44038. 8012d28: 671a str r2, [r3, #112] @ 0x70
  44039. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44040. 8012d2a: 687b ldr r3, [r7, #4]
  44041. 8012d2c: 681b ldr r3, [r3, #0]
  44042. 8012d2e: 4a33 ldr r2, [pc, #204] @ (8012dfc <UART_RxISR_16BIT+0x1b4>)
  44043. 8012d30: 4293 cmp r3, r2
  44044. 8012d32: d01f beq.n 8012d74 <UART_RxISR_16BIT+0x12c>
  44045. {
  44046. /* Check that USART RTOEN bit is set */
  44047. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44048. 8012d34: 687b ldr r3, [r7, #4]
  44049. 8012d36: 681b ldr r3, [r3, #0]
  44050. 8012d38: 685b ldr r3, [r3, #4]
  44051. 8012d3a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44052. 8012d3e: 2b00 cmp r3, #0
  44053. 8012d40: d018 beq.n 8012d74 <UART_RxISR_16BIT+0x12c>
  44054. {
  44055. /* Enable the UART Receiver Timeout Interrupt */
  44056. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44057. 8012d42: 687b ldr r3, [r7, #4]
  44058. 8012d44: 681b ldr r3, [r3, #0]
  44059. 8012d46: 623b str r3, [r7, #32]
  44060. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44061. 8012d48: 6a3b ldr r3, [r7, #32]
  44062. 8012d4a: e853 3f00 ldrex r3, [r3]
  44063. 8012d4e: 61fb str r3, [r7, #28]
  44064. return(result);
  44065. 8012d50: 69fb ldr r3, [r7, #28]
  44066. 8012d52: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44067. 8012d56: 65fb str r3, [r7, #92] @ 0x5c
  44068. 8012d58: 687b ldr r3, [r7, #4]
  44069. 8012d5a: 681b ldr r3, [r3, #0]
  44070. 8012d5c: 461a mov r2, r3
  44071. 8012d5e: 6dfb ldr r3, [r7, #92] @ 0x5c
  44072. 8012d60: 62fb str r3, [r7, #44] @ 0x2c
  44073. 8012d62: 62ba str r2, [r7, #40] @ 0x28
  44074. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44075. 8012d64: 6ab9 ldr r1, [r7, #40] @ 0x28
  44076. 8012d66: 6afa ldr r2, [r7, #44] @ 0x2c
  44077. 8012d68: e841 2300 strex r3, r2, [r1]
  44078. 8012d6c: 627b str r3, [r7, #36] @ 0x24
  44079. return(result);
  44080. 8012d6e: 6a7b ldr r3, [r7, #36] @ 0x24
  44081. 8012d70: 2b00 cmp r3, #0
  44082. 8012d72: d1e6 bne.n 8012d42 <UART_RxISR_16BIT+0xfa>
  44083. }
  44084. }
  44085. /* Check current reception Mode :
  44086. If Reception till IDLE event has been selected : */
  44087. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44088. 8012d74: 687b ldr r3, [r7, #4]
  44089. 8012d76: 6edb ldr r3, [r3, #108] @ 0x6c
  44090. 8012d78: 2b01 cmp r3, #1
  44091. 8012d7a: d12e bne.n 8012dda <UART_RxISR_16BIT+0x192>
  44092. {
  44093. /* Set reception type to Standard */
  44094. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44095. 8012d7c: 687b ldr r3, [r7, #4]
  44096. 8012d7e: 2200 movs r2, #0
  44097. 8012d80: 66da str r2, [r3, #108] @ 0x6c
  44098. /* Disable IDLE interrupt */
  44099. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44100. 8012d82: 687b ldr r3, [r7, #4]
  44101. 8012d84: 681b ldr r3, [r3, #0]
  44102. 8012d86: 60fb str r3, [r7, #12]
  44103. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44104. 8012d88: 68fb ldr r3, [r7, #12]
  44105. 8012d8a: e853 3f00 ldrex r3, [r3]
  44106. 8012d8e: 60bb str r3, [r7, #8]
  44107. return(result);
  44108. 8012d90: 68bb ldr r3, [r7, #8]
  44109. 8012d92: f023 0310 bic.w r3, r3, #16
  44110. 8012d96: 65bb str r3, [r7, #88] @ 0x58
  44111. 8012d98: 687b ldr r3, [r7, #4]
  44112. 8012d9a: 681b ldr r3, [r3, #0]
  44113. 8012d9c: 461a mov r2, r3
  44114. 8012d9e: 6dbb ldr r3, [r7, #88] @ 0x58
  44115. 8012da0: 61bb str r3, [r7, #24]
  44116. 8012da2: 617a str r2, [r7, #20]
  44117. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44118. 8012da4: 6979 ldr r1, [r7, #20]
  44119. 8012da6: 69ba ldr r2, [r7, #24]
  44120. 8012da8: e841 2300 strex r3, r2, [r1]
  44121. 8012dac: 613b str r3, [r7, #16]
  44122. return(result);
  44123. 8012dae: 693b ldr r3, [r7, #16]
  44124. 8012db0: 2b00 cmp r3, #0
  44125. 8012db2: d1e6 bne.n 8012d82 <UART_RxISR_16BIT+0x13a>
  44126. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44127. 8012db4: 687b ldr r3, [r7, #4]
  44128. 8012db6: 681b ldr r3, [r3, #0]
  44129. 8012db8: 69db ldr r3, [r3, #28]
  44130. 8012dba: f003 0310 and.w r3, r3, #16
  44131. 8012dbe: 2b10 cmp r3, #16
  44132. 8012dc0: d103 bne.n 8012dca <UART_RxISR_16BIT+0x182>
  44133. {
  44134. /* Clear IDLE Flag */
  44135. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44136. 8012dc2: 687b ldr r3, [r7, #4]
  44137. 8012dc4: 681b ldr r3, [r3, #0]
  44138. 8012dc6: 2210 movs r2, #16
  44139. 8012dc8: 621a str r2, [r3, #32]
  44140. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44141. /*Call registered Rx Event callback*/
  44142. huart->RxEventCallback(huart, huart->RxXferSize);
  44143. #else
  44144. /*Call legacy weak Rx Event callback*/
  44145. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44146. 8012dca: 687b ldr r3, [r7, #4]
  44147. 8012dcc: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44148. 8012dd0: 4619 mov r1, r3
  44149. 8012dd2: 6878 ldr r0, [r7, #4]
  44150. 8012dd4: f7f1 fb2e bl 8004434 <HAL_UARTEx_RxEventCallback>
  44151. else
  44152. {
  44153. /* Clear RXNE interrupt flag */
  44154. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44155. }
  44156. }
  44157. 8012dd8: e00b b.n 8012df2 <UART_RxISR_16BIT+0x1aa>
  44158. HAL_UART_RxCpltCallback(huart);
  44159. 8012dda: 6878 ldr r0, [r7, #4]
  44160. 8012ddc: f7f1 fb20 bl 8004420 <HAL_UART_RxCpltCallback>
  44161. }
  44162. 8012de0: e007 b.n 8012df2 <UART_RxISR_16BIT+0x1aa>
  44163. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44164. 8012de2: 687b ldr r3, [r7, #4]
  44165. 8012de4: 681b ldr r3, [r3, #0]
  44166. 8012de6: 699a ldr r2, [r3, #24]
  44167. 8012de8: 687b ldr r3, [r7, #4]
  44168. 8012dea: 681b ldr r3, [r3, #0]
  44169. 8012dec: f042 0208 orr.w r2, r2, #8
  44170. 8012df0: 619a str r2, [r3, #24]
  44171. }
  44172. 8012df2: bf00 nop
  44173. 8012df4: 3770 adds r7, #112 @ 0x70
  44174. 8012df6: 46bd mov sp, r7
  44175. 8012df8: bd80 pop {r7, pc}
  44176. 8012dfa: bf00 nop
  44177. 8012dfc: 58000c00 .word 0x58000c00
  44178. 08012e00 <UART_RxISR_8BIT_FIFOEN>:
  44179. * interruptions have been enabled by HAL_UART_Receive_IT()
  44180. * @param huart UART handle.
  44181. * @retval None
  44182. */
  44183. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  44184. {
  44185. 8012e00: b580 push {r7, lr}
  44186. 8012e02: b0ac sub sp, #176 @ 0xb0
  44187. 8012e04: af00 add r7, sp, #0
  44188. 8012e06: 6078 str r0, [r7, #4]
  44189. uint16_t uhMask = huart->Mask;
  44190. 8012e08: 687b ldr r3, [r7, #4]
  44191. 8012e0a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44192. 8012e0e: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  44193. uint16_t uhdata;
  44194. uint16_t nb_rx_data;
  44195. uint16_t rxdatacount;
  44196. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  44197. 8012e12: 687b ldr r3, [r7, #4]
  44198. 8012e14: 681b ldr r3, [r3, #0]
  44199. 8012e16: 69db ldr r3, [r3, #28]
  44200. 8012e18: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44201. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  44202. 8012e1c: 687b ldr r3, [r7, #4]
  44203. 8012e1e: 681b ldr r3, [r3, #0]
  44204. 8012e20: 681b ldr r3, [r3, #0]
  44205. 8012e22: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  44206. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  44207. 8012e26: 687b ldr r3, [r7, #4]
  44208. 8012e28: 681b ldr r3, [r3, #0]
  44209. 8012e2a: 689b ldr r3, [r3, #8]
  44210. 8012e2c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  44211. /* Check that a Rx process is ongoing */
  44212. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44213. 8012e30: 687b ldr r3, [r7, #4]
  44214. 8012e32: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44215. 8012e36: 2b22 cmp r3, #34 @ 0x22
  44216. 8012e38: f040 8180 bne.w 801313c <UART_RxISR_8BIT_FIFOEN+0x33c>
  44217. {
  44218. nb_rx_data = huart->NbRxDataToProcess;
  44219. 8012e3c: 687b ldr r3, [r7, #4]
  44220. 8012e3e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44221. 8012e42: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  44222. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44223. 8012e46: e123 b.n 8013090 <UART_RxISR_8BIT_FIFOEN+0x290>
  44224. {
  44225. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44226. 8012e48: 687b ldr r3, [r7, #4]
  44227. 8012e4a: 681b ldr r3, [r3, #0]
  44228. 8012e4c: 6a5b ldr r3, [r3, #36] @ 0x24
  44229. 8012e4e: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  44230. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  44231. 8012e52: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  44232. 8012e56: b2d9 uxtb r1, r3
  44233. 8012e58: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  44234. 8012e5c: b2da uxtb r2, r3
  44235. 8012e5e: 687b ldr r3, [r7, #4]
  44236. 8012e60: 6d9b ldr r3, [r3, #88] @ 0x58
  44237. 8012e62: 400a ands r2, r1
  44238. 8012e64: b2d2 uxtb r2, r2
  44239. 8012e66: 701a strb r2, [r3, #0]
  44240. huart->pRxBuffPtr++;
  44241. 8012e68: 687b ldr r3, [r7, #4]
  44242. 8012e6a: 6d9b ldr r3, [r3, #88] @ 0x58
  44243. 8012e6c: 1c5a adds r2, r3, #1
  44244. 8012e6e: 687b ldr r3, [r7, #4]
  44245. 8012e70: 659a str r2, [r3, #88] @ 0x58
  44246. huart->RxXferCount--;
  44247. 8012e72: 687b ldr r3, [r7, #4]
  44248. 8012e74: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44249. 8012e78: b29b uxth r3, r3
  44250. 8012e7a: 3b01 subs r3, #1
  44251. 8012e7c: b29a uxth r2, r3
  44252. 8012e7e: 687b ldr r3, [r7, #4]
  44253. 8012e80: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44254. isrflags = READ_REG(huart->Instance->ISR);
  44255. 8012e84: 687b ldr r3, [r7, #4]
  44256. 8012e86: 681b ldr r3, [r3, #0]
  44257. 8012e88: 69db ldr r3, [r3, #28]
  44258. 8012e8a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44259. /* If some non blocking errors occurred */
  44260. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  44261. 8012e8e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44262. 8012e92: f003 0307 and.w r3, r3, #7
  44263. 8012e96: 2b00 cmp r3, #0
  44264. 8012e98: d053 beq.n 8012f42 <UART_RxISR_8BIT_FIFOEN+0x142>
  44265. {
  44266. /* UART parity error interrupt occurred -------------------------------------*/
  44267. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  44268. 8012e9a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44269. 8012e9e: f003 0301 and.w r3, r3, #1
  44270. 8012ea2: 2b00 cmp r3, #0
  44271. 8012ea4: d011 beq.n 8012eca <UART_RxISR_8BIT_FIFOEN+0xca>
  44272. 8012ea6: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  44273. 8012eaa: f403 7380 and.w r3, r3, #256 @ 0x100
  44274. 8012eae: 2b00 cmp r3, #0
  44275. 8012eb0: d00b beq.n 8012eca <UART_RxISR_8BIT_FIFOEN+0xca>
  44276. {
  44277. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  44278. 8012eb2: 687b ldr r3, [r7, #4]
  44279. 8012eb4: 681b ldr r3, [r3, #0]
  44280. 8012eb6: 2201 movs r2, #1
  44281. 8012eb8: 621a str r2, [r3, #32]
  44282. huart->ErrorCode |= HAL_UART_ERROR_PE;
  44283. 8012eba: 687b ldr r3, [r7, #4]
  44284. 8012ebc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44285. 8012ec0: f043 0201 orr.w r2, r3, #1
  44286. 8012ec4: 687b ldr r3, [r7, #4]
  44287. 8012ec6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44288. }
  44289. /* UART frame error interrupt occurred --------------------------------------*/
  44290. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44291. 8012eca: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44292. 8012ece: f003 0302 and.w r3, r3, #2
  44293. 8012ed2: 2b00 cmp r3, #0
  44294. 8012ed4: d011 beq.n 8012efa <UART_RxISR_8BIT_FIFOEN+0xfa>
  44295. 8012ed6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44296. 8012eda: f003 0301 and.w r3, r3, #1
  44297. 8012ede: 2b00 cmp r3, #0
  44298. 8012ee0: d00b beq.n 8012efa <UART_RxISR_8BIT_FIFOEN+0xfa>
  44299. {
  44300. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  44301. 8012ee2: 687b ldr r3, [r7, #4]
  44302. 8012ee4: 681b ldr r3, [r3, #0]
  44303. 8012ee6: 2202 movs r2, #2
  44304. 8012ee8: 621a str r2, [r3, #32]
  44305. huart->ErrorCode |= HAL_UART_ERROR_FE;
  44306. 8012eea: 687b ldr r3, [r7, #4]
  44307. 8012eec: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44308. 8012ef0: f043 0204 orr.w r2, r3, #4
  44309. 8012ef4: 687b ldr r3, [r7, #4]
  44310. 8012ef6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44311. }
  44312. /* UART noise error interrupt occurred --------------------------------------*/
  44313. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44314. 8012efa: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44315. 8012efe: f003 0304 and.w r3, r3, #4
  44316. 8012f02: 2b00 cmp r3, #0
  44317. 8012f04: d011 beq.n 8012f2a <UART_RxISR_8BIT_FIFOEN+0x12a>
  44318. 8012f06: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44319. 8012f0a: f003 0301 and.w r3, r3, #1
  44320. 8012f0e: 2b00 cmp r3, #0
  44321. 8012f10: d00b beq.n 8012f2a <UART_RxISR_8BIT_FIFOEN+0x12a>
  44322. {
  44323. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  44324. 8012f12: 687b ldr r3, [r7, #4]
  44325. 8012f14: 681b ldr r3, [r3, #0]
  44326. 8012f16: 2204 movs r2, #4
  44327. 8012f18: 621a str r2, [r3, #32]
  44328. huart->ErrorCode |= HAL_UART_ERROR_NE;
  44329. 8012f1a: 687b ldr r3, [r7, #4]
  44330. 8012f1c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44331. 8012f20: f043 0202 orr.w r2, r3, #2
  44332. 8012f24: 687b ldr r3, [r7, #4]
  44333. 8012f26: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44334. }
  44335. /* Call UART Error Call back function if need be ----------------------------*/
  44336. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  44337. 8012f2a: 687b ldr r3, [r7, #4]
  44338. 8012f2c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44339. 8012f30: 2b00 cmp r3, #0
  44340. 8012f32: d006 beq.n 8012f42 <UART_RxISR_8BIT_FIFOEN+0x142>
  44341. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44342. /*Call registered error callback*/
  44343. huart->ErrorCallback(huart);
  44344. #else
  44345. /*Call legacy weak error callback*/
  44346. HAL_UART_ErrorCallback(huart);
  44347. 8012f34: 6878 ldr r0, [r7, #4]
  44348. 8012f36: f7fe fb13 bl 8011560 <HAL_UART_ErrorCallback>
  44349. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44350. huart->ErrorCode = HAL_UART_ERROR_NONE;
  44351. 8012f3a: 687b ldr r3, [r7, #4]
  44352. 8012f3c: 2200 movs r2, #0
  44353. 8012f3e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44354. }
  44355. }
  44356. if (huart->RxXferCount == 0U)
  44357. 8012f42: 687b ldr r3, [r7, #4]
  44358. 8012f44: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44359. 8012f48: b29b uxth r3, r3
  44360. 8012f4a: 2b00 cmp r3, #0
  44361. 8012f4c: f040 80a0 bne.w 8013090 <UART_RxISR_8BIT_FIFOEN+0x290>
  44362. {
  44363. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  44364. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  44365. 8012f50: 687b ldr r3, [r7, #4]
  44366. 8012f52: 681b ldr r3, [r3, #0]
  44367. 8012f54: 673b str r3, [r7, #112] @ 0x70
  44368. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44369. 8012f56: 6f3b ldr r3, [r7, #112] @ 0x70
  44370. 8012f58: e853 3f00 ldrex r3, [r3]
  44371. 8012f5c: 66fb str r3, [r7, #108] @ 0x6c
  44372. return(result);
  44373. 8012f5e: 6efb ldr r3, [r7, #108] @ 0x6c
  44374. 8012f60: f423 7380 bic.w r3, r3, #256 @ 0x100
  44375. 8012f64: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  44376. 8012f68: 687b ldr r3, [r7, #4]
  44377. 8012f6a: 681b ldr r3, [r3, #0]
  44378. 8012f6c: 461a mov r2, r3
  44379. 8012f6e: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  44380. 8012f72: 67fb str r3, [r7, #124] @ 0x7c
  44381. 8012f74: 67ba str r2, [r7, #120] @ 0x78
  44382. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44383. 8012f76: 6fb9 ldr r1, [r7, #120] @ 0x78
  44384. 8012f78: 6ffa ldr r2, [r7, #124] @ 0x7c
  44385. 8012f7a: e841 2300 strex r3, r2, [r1]
  44386. 8012f7e: 677b str r3, [r7, #116] @ 0x74
  44387. return(result);
  44388. 8012f80: 6f7b ldr r3, [r7, #116] @ 0x74
  44389. 8012f82: 2b00 cmp r3, #0
  44390. 8012f84: d1e4 bne.n 8012f50 <UART_RxISR_8BIT_FIFOEN+0x150>
  44391. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  44392. and RX FIFO Threshold interrupt */
  44393. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  44394. 8012f86: 687b ldr r3, [r7, #4]
  44395. 8012f88: 681b ldr r3, [r3, #0]
  44396. 8012f8a: 3308 adds r3, #8
  44397. 8012f8c: 65fb str r3, [r7, #92] @ 0x5c
  44398. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44399. 8012f8e: 6dfb ldr r3, [r7, #92] @ 0x5c
  44400. 8012f90: e853 3f00 ldrex r3, [r3]
  44401. 8012f94: 65bb str r3, [r7, #88] @ 0x58
  44402. return(result);
  44403. 8012f96: 6dba ldr r2, [r7, #88] @ 0x58
  44404. 8012f98: 4b6e ldr r3, [pc, #440] @ (8013154 <UART_RxISR_8BIT_FIFOEN+0x354>)
  44405. 8012f9a: 4013 ands r3, r2
  44406. 8012f9c: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  44407. 8012fa0: 687b ldr r3, [r7, #4]
  44408. 8012fa2: 681b ldr r3, [r3, #0]
  44409. 8012fa4: 3308 adds r3, #8
  44410. 8012fa6: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  44411. 8012faa: 66ba str r2, [r7, #104] @ 0x68
  44412. 8012fac: 667b str r3, [r7, #100] @ 0x64
  44413. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44414. 8012fae: 6e79 ldr r1, [r7, #100] @ 0x64
  44415. 8012fb0: 6eba ldr r2, [r7, #104] @ 0x68
  44416. 8012fb2: e841 2300 strex r3, r2, [r1]
  44417. 8012fb6: 663b str r3, [r7, #96] @ 0x60
  44418. return(result);
  44419. 8012fb8: 6e3b ldr r3, [r7, #96] @ 0x60
  44420. 8012fba: 2b00 cmp r3, #0
  44421. 8012fbc: d1e3 bne.n 8012f86 <UART_RxISR_8BIT_FIFOEN+0x186>
  44422. /* Rx process is completed, restore huart->RxState to Ready */
  44423. huart->RxState = HAL_UART_STATE_READY;
  44424. 8012fbe: 687b ldr r3, [r7, #4]
  44425. 8012fc0: 2220 movs r2, #32
  44426. 8012fc2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44427. /* Clear RxISR function pointer */
  44428. huart->RxISR = NULL;
  44429. 8012fc6: 687b ldr r3, [r7, #4]
  44430. 8012fc8: 2200 movs r2, #0
  44431. 8012fca: 675a str r2, [r3, #116] @ 0x74
  44432. /* Initialize type of RxEvent to Transfer Complete */
  44433. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44434. 8012fcc: 687b ldr r3, [r7, #4]
  44435. 8012fce: 2200 movs r2, #0
  44436. 8012fd0: 671a str r2, [r3, #112] @ 0x70
  44437. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44438. 8012fd2: 687b ldr r3, [r7, #4]
  44439. 8012fd4: 681b ldr r3, [r3, #0]
  44440. 8012fd6: 4a60 ldr r2, [pc, #384] @ (8013158 <UART_RxISR_8BIT_FIFOEN+0x358>)
  44441. 8012fd8: 4293 cmp r3, r2
  44442. 8012fda: d021 beq.n 8013020 <UART_RxISR_8BIT_FIFOEN+0x220>
  44443. {
  44444. /* Check that USART RTOEN bit is set */
  44445. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44446. 8012fdc: 687b ldr r3, [r7, #4]
  44447. 8012fde: 681b ldr r3, [r3, #0]
  44448. 8012fe0: 685b ldr r3, [r3, #4]
  44449. 8012fe2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44450. 8012fe6: 2b00 cmp r3, #0
  44451. 8012fe8: d01a beq.n 8013020 <UART_RxISR_8BIT_FIFOEN+0x220>
  44452. {
  44453. /* Enable the UART Receiver Timeout Interrupt */
  44454. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44455. 8012fea: 687b ldr r3, [r7, #4]
  44456. 8012fec: 681b ldr r3, [r3, #0]
  44457. 8012fee: 64bb str r3, [r7, #72] @ 0x48
  44458. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44459. 8012ff0: 6cbb ldr r3, [r7, #72] @ 0x48
  44460. 8012ff2: e853 3f00 ldrex r3, [r3]
  44461. 8012ff6: 647b str r3, [r7, #68] @ 0x44
  44462. return(result);
  44463. 8012ff8: 6c7b ldr r3, [r7, #68] @ 0x44
  44464. 8012ffa: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44465. 8012ffe: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  44466. 8013002: 687b ldr r3, [r7, #4]
  44467. 8013004: 681b ldr r3, [r3, #0]
  44468. 8013006: 461a mov r2, r3
  44469. 8013008: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  44470. 801300c: 657b str r3, [r7, #84] @ 0x54
  44471. 801300e: 653a str r2, [r7, #80] @ 0x50
  44472. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44473. 8013010: 6d39 ldr r1, [r7, #80] @ 0x50
  44474. 8013012: 6d7a ldr r2, [r7, #84] @ 0x54
  44475. 8013014: e841 2300 strex r3, r2, [r1]
  44476. 8013018: 64fb str r3, [r7, #76] @ 0x4c
  44477. return(result);
  44478. 801301a: 6cfb ldr r3, [r7, #76] @ 0x4c
  44479. 801301c: 2b00 cmp r3, #0
  44480. 801301e: d1e4 bne.n 8012fea <UART_RxISR_8BIT_FIFOEN+0x1ea>
  44481. }
  44482. }
  44483. /* Check current reception Mode :
  44484. If Reception till IDLE event has been selected : */
  44485. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44486. 8013020: 687b ldr r3, [r7, #4]
  44487. 8013022: 6edb ldr r3, [r3, #108] @ 0x6c
  44488. 8013024: 2b01 cmp r3, #1
  44489. 8013026: d130 bne.n 801308a <UART_RxISR_8BIT_FIFOEN+0x28a>
  44490. {
  44491. /* Set reception type to Standard */
  44492. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44493. 8013028: 687b ldr r3, [r7, #4]
  44494. 801302a: 2200 movs r2, #0
  44495. 801302c: 66da str r2, [r3, #108] @ 0x6c
  44496. /* Disable IDLE interrupt */
  44497. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44498. 801302e: 687b ldr r3, [r7, #4]
  44499. 8013030: 681b ldr r3, [r3, #0]
  44500. 8013032: 637b str r3, [r7, #52] @ 0x34
  44501. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44502. 8013034: 6b7b ldr r3, [r7, #52] @ 0x34
  44503. 8013036: e853 3f00 ldrex r3, [r3]
  44504. 801303a: 633b str r3, [r7, #48] @ 0x30
  44505. return(result);
  44506. 801303c: 6b3b ldr r3, [r7, #48] @ 0x30
  44507. 801303e: f023 0310 bic.w r3, r3, #16
  44508. 8013042: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  44509. 8013046: 687b ldr r3, [r7, #4]
  44510. 8013048: 681b ldr r3, [r3, #0]
  44511. 801304a: 461a mov r2, r3
  44512. 801304c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  44513. 8013050: 643b str r3, [r7, #64] @ 0x40
  44514. 8013052: 63fa str r2, [r7, #60] @ 0x3c
  44515. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44516. 8013054: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44517. 8013056: 6c3a ldr r2, [r7, #64] @ 0x40
  44518. 8013058: e841 2300 strex r3, r2, [r1]
  44519. 801305c: 63bb str r3, [r7, #56] @ 0x38
  44520. return(result);
  44521. 801305e: 6bbb ldr r3, [r7, #56] @ 0x38
  44522. 8013060: 2b00 cmp r3, #0
  44523. 8013062: d1e4 bne.n 801302e <UART_RxISR_8BIT_FIFOEN+0x22e>
  44524. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44525. 8013064: 687b ldr r3, [r7, #4]
  44526. 8013066: 681b ldr r3, [r3, #0]
  44527. 8013068: 69db ldr r3, [r3, #28]
  44528. 801306a: f003 0310 and.w r3, r3, #16
  44529. 801306e: 2b10 cmp r3, #16
  44530. 8013070: d103 bne.n 801307a <UART_RxISR_8BIT_FIFOEN+0x27a>
  44531. {
  44532. /* Clear IDLE Flag */
  44533. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44534. 8013072: 687b ldr r3, [r7, #4]
  44535. 8013074: 681b ldr r3, [r3, #0]
  44536. 8013076: 2210 movs r2, #16
  44537. 8013078: 621a str r2, [r3, #32]
  44538. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44539. /*Call registered Rx Event callback*/
  44540. huart->RxEventCallback(huart, huart->RxXferSize);
  44541. #else
  44542. /*Call legacy weak Rx Event callback*/
  44543. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44544. 801307a: 687b ldr r3, [r7, #4]
  44545. 801307c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44546. 8013080: 4619 mov r1, r3
  44547. 8013082: 6878 ldr r0, [r7, #4]
  44548. 8013084: f7f1 f9d6 bl 8004434 <HAL_UARTEx_RxEventCallback>
  44549. 8013088: e002 b.n 8013090 <UART_RxISR_8BIT_FIFOEN+0x290>
  44550. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44551. /*Call registered Rx complete callback*/
  44552. huart->RxCpltCallback(huart);
  44553. #else
  44554. /*Call legacy weak Rx complete callback*/
  44555. HAL_UART_RxCpltCallback(huart);
  44556. 801308a: 6878 ldr r0, [r7, #4]
  44557. 801308c: f7f1 f9c8 bl 8004420 <HAL_UART_RxCpltCallback>
  44558. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44559. 8013090: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  44560. 8013094: 2b00 cmp r3, #0
  44561. 8013096: d006 beq.n 80130a6 <UART_RxISR_8BIT_FIFOEN+0x2a6>
  44562. 8013098: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44563. 801309c: f003 0320 and.w r3, r3, #32
  44564. 80130a0: 2b00 cmp r3, #0
  44565. 80130a2: f47f aed1 bne.w 8012e48 <UART_RxISR_8BIT_FIFOEN+0x48>
  44566. /* When remaining number of bytes to receive is less than the RX FIFO
  44567. threshold, next incoming frames are processed as if FIFO mode was
  44568. disabled (i.e. one interrupt per received frame).
  44569. */
  44570. rxdatacount = huart->RxXferCount;
  44571. 80130a6: 687b ldr r3, [r7, #4]
  44572. 80130a8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44573. 80130ac: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  44574. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  44575. 80130b0: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  44576. 80130b4: 2b00 cmp r3, #0
  44577. 80130b6: d049 beq.n 801314c <UART_RxISR_8BIT_FIFOEN+0x34c>
  44578. 80130b8: 687b ldr r3, [r7, #4]
  44579. 80130ba: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44580. 80130be: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  44581. 80130c2: 429a cmp r2, r3
  44582. 80130c4: d242 bcs.n 801314c <UART_RxISR_8BIT_FIFOEN+0x34c>
  44583. {
  44584. /* Disable the UART RXFT interrupt*/
  44585. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  44586. 80130c6: 687b ldr r3, [r7, #4]
  44587. 80130c8: 681b ldr r3, [r3, #0]
  44588. 80130ca: 3308 adds r3, #8
  44589. 80130cc: 623b str r3, [r7, #32]
  44590. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44591. 80130ce: 6a3b ldr r3, [r7, #32]
  44592. 80130d0: e853 3f00 ldrex r3, [r3]
  44593. 80130d4: 61fb str r3, [r7, #28]
  44594. return(result);
  44595. 80130d6: 69fb ldr r3, [r7, #28]
  44596. 80130d8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  44597. 80130dc: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  44598. 80130e0: 687b ldr r3, [r7, #4]
  44599. 80130e2: 681b ldr r3, [r3, #0]
  44600. 80130e4: 3308 adds r3, #8
  44601. 80130e6: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  44602. 80130ea: 62fa str r2, [r7, #44] @ 0x2c
  44603. 80130ec: 62bb str r3, [r7, #40] @ 0x28
  44604. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44605. 80130ee: 6ab9 ldr r1, [r7, #40] @ 0x28
  44606. 80130f0: 6afa ldr r2, [r7, #44] @ 0x2c
  44607. 80130f2: e841 2300 strex r3, r2, [r1]
  44608. 80130f6: 627b str r3, [r7, #36] @ 0x24
  44609. return(result);
  44610. 80130f8: 6a7b ldr r3, [r7, #36] @ 0x24
  44611. 80130fa: 2b00 cmp r3, #0
  44612. 80130fc: d1e3 bne.n 80130c6 <UART_RxISR_8BIT_FIFOEN+0x2c6>
  44613. /* Update the RxISR function pointer */
  44614. huart->RxISR = UART_RxISR_8BIT;
  44615. 80130fe: 687b ldr r3, [r7, #4]
  44616. 8013100: 4a16 ldr r2, [pc, #88] @ (801315c <UART_RxISR_8BIT_FIFOEN+0x35c>)
  44617. 8013102: 675a str r2, [r3, #116] @ 0x74
  44618. /* Enable the UART Data Register Not Empty interrupt */
  44619. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  44620. 8013104: 687b ldr r3, [r7, #4]
  44621. 8013106: 681b ldr r3, [r3, #0]
  44622. 8013108: 60fb str r3, [r7, #12]
  44623. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44624. 801310a: 68fb ldr r3, [r7, #12]
  44625. 801310c: e853 3f00 ldrex r3, [r3]
  44626. 8013110: 60bb str r3, [r7, #8]
  44627. return(result);
  44628. 8013112: 68bb ldr r3, [r7, #8]
  44629. 8013114: f043 0320 orr.w r3, r3, #32
  44630. 8013118: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  44631. 801311c: 687b ldr r3, [r7, #4]
  44632. 801311e: 681b ldr r3, [r3, #0]
  44633. 8013120: 461a mov r2, r3
  44634. 8013122: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  44635. 8013126: 61bb str r3, [r7, #24]
  44636. 8013128: 617a str r2, [r7, #20]
  44637. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44638. 801312a: 6979 ldr r1, [r7, #20]
  44639. 801312c: 69ba ldr r2, [r7, #24]
  44640. 801312e: e841 2300 strex r3, r2, [r1]
  44641. 8013132: 613b str r3, [r7, #16]
  44642. return(result);
  44643. 8013134: 693b ldr r3, [r7, #16]
  44644. 8013136: 2b00 cmp r3, #0
  44645. 8013138: d1e4 bne.n 8013104 <UART_RxISR_8BIT_FIFOEN+0x304>
  44646. else
  44647. {
  44648. /* Clear RXNE interrupt flag */
  44649. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44650. }
  44651. }
  44652. 801313a: e007 b.n 801314c <UART_RxISR_8BIT_FIFOEN+0x34c>
  44653. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44654. 801313c: 687b ldr r3, [r7, #4]
  44655. 801313e: 681b ldr r3, [r3, #0]
  44656. 8013140: 699a ldr r2, [r3, #24]
  44657. 8013142: 687b ldr r3, [r7, #4]
  44658. 8013144: 681b ldr r3, [r3, #0]
  44659. 8013146: f042 0208 orr.w r2, r2, #8
  44660. 801314a: 619a str r2, [r3, #24]
  44661. }
  44662. 801314c: bf00 nop
  44663. 801314e: 37b0 adds r7, #176 @ 0xb0
  44664. 8013150: 46bd mov sp, r7
  44665. 8013152: bd80 pop {r7, pc}
  44666. 8013154: effffffe .word 0xeffffffe
  44667. 8013158: 58000c00 .word 0x58000c00
  44668. 801315c: 08012a91 .word 0x08012a91
  44669. 08013160 <UART_RxISR_16BIT_FIFOEN>:
  44670. * interruptions have been enabled by HAL_UART_Receive_IT()
  44671. * @param huart UART handle.
  44672. * @retval None
  44673. */
  44674. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  44675. {
  44676. 8013160: b580 push {r7, lr}
  44677. 8013162: b0ae sub sp, #184 @ 0xb8
  44678. 8013164: af00 add r7, sp, #0
  44679. 8013166: 6078 str r0, [r7, #4]
  44680. uint16_t *tmp;
  44681. uint16_t uhMask = huart->Mask;
  44682. 8013168: 687b ldr r3, [r7, #4]
  44683. 801316a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44684. 801316e: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  44685. uint16_t uhdata;
  44686. uint16_t nb_rx_data;
  44687. uint16_t rxdatacount;
  44688. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  44689. 8013172: 687b ldr r3, [r7, #4]
  44690. 8013174: 681b ldr r3, [r3, #0]
  44691. 8013176: 69db ldr r3, [r3, #28]
  44692. 8013178: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44693. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  44694. 801317c: 687b ldr r3, [r7, #4]
  44695. 801317e: 681b ldr r3, [r3, #0]
  44696. 8013180: 681b ldr r3, [r3, #0]
  44697. 8013182: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44698. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  44699. 8013186: 687b ldr r3, [r7, #4]
  44700. 8013188: 681b ldr r3, [r3, #0]
  44701. 801318a: 689b ldr r3, [r3, #8]
  44702. 801318c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  44703. /* Check that a Rx process is ongoing */
  44704. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44705. 8013190: 687b ldr r3, [r7, #4]
  44706. 8013192: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44707. 8013196: 2b22 cmp r3, #34 @ 0x22
  44708. 8013198: f040 8184 bne.w 80134a4 <UART_RxISR_16BIT_FIFOEN+0x344>
  44709. {
  44710. nb_rx_data = huart->NbRxDataToProcess;
  44711. 801319c: 687b ldr r3, [r7, #4]
  44712. 801319e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44713. 80131a2: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  44714. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44715. 80131a6: e127 b.n 80133f8 <UART_RxISR_16BIT_FIFOEN+0x298>
  44716. {
  44717. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44718. 80131a8: 687b ldr r3, [r7, #4]
  44719. 80131aa: 681b ldr r3, [r3, #0]
  44720. 80131ac: 6a5b ldr r3, [r3, #36] @ 0x24
  44721. 80131ae: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  44722. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44723. 80131b2: 687b ldr r3, [r7, #4]
  44724. 80131b4: 6d9b ldr r3, [r3, #88] @ 0x58
  44725. 80131b6: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  44726. *tmp = (uint16_t)(uhdata & uhMask);
  44727. 80131ba: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  44728. 80131be: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  44729. 80131c2: 4013 ands r3, r2
  44730. 80131c4: b29a uxth r2, r3
  44731. 80131c6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44732. 80131ca: 801a strh r2, [r3, #0]
  44733. huart->pRxBuffPtr += 2U;
  44734. 80131cc: 687b ldr r3, [r7, #4]
  44735. 80131ce: 6d9b ldr r3, [r3, #88] @ 0x58
  44736. 80131d0: 1c9a adds r2, r3, #2
  44737. 80131d2: 687b ldr r3, [r7, #4]
  44738. 80131d4: 659a str r2, [r3, #88] @ 0x58
  44739. huart->RxXferCount--;
  44740. 80131d6: 687b ldr r3, [r7, #4]
  44741. 80131d8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44742. 80131dc: b29b uxth r3, r3
  44743. 80131de: 3b01 subs r3, #1
  44744. 80131e0: b29a uxth r2, r3
  44745. 80131e2: 687b ldr r3, [r7, #4]
  44746. 80131e4: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44747. isrflags = READ_REG(huart->Instance->ISR);
  44748. 80131e8: 687b ldr r3, [r7, #4]
  44749. 80131ea: 681b ldr r3, [r3, #0]
  44750. 80131ec: 69db ldr r3, [r3, #28]
  44751. 80131ee: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44752. /* If some non blocking errors occurred */
  44753. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  44754. 80131f2: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44755. 80131f6: f003 0307 and.w r3, r3, #7
  44756. 80131fa: 2b00 cmp r3, #0
  44757. 80131fc: d053 beq.n 80132a6 <UART_RxISR_16BIT_FIFOEN+0x146>
  44758. {
  44759. /* UART parity error interrupt occurred -------------------------------------*/
  44760. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  44761. 80131fe: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44762. 8013202: f003 0301 and.w r3, r3, #1
  44763. 8013206: 2b00 cmp r3, #0
  44764. 8013208: d011 beq.n 801322e <UART_RxISR_16BIT_FIFOEN+0xce>
  44765. 801320a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44766. 801320e: f403 7380 and.w r3, r3, #256 @ 0x100
  44767. 8013212: 2b00 cmp r3, #0
  44768. 8013214: d00b beq.n 801322e <UART_RxISR_16BIT_FIFOEN+0xce>
  44769. {
  44770. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  44771. 8013216: 687b ldr r3, [r7, #4]
  44772. 8013218: 681b ldr r3, [r3, #0]
  44773. 801321a: 2201 movs r2, #1
  44774. 801321c: 621a str r2, [r3, #32]
  44775. huart->ErrorCode |= HAL_UART_ERROR_PE;
  44776. 801321e: 687b ldr r3, [r7, #4]
  44777. 8013220: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44778. 8013224: f043 0201 orr.w r2, r3, #1
  44779. 8013228: 687b ldr r3, [r7, #4]
  44780. 801322a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44781. }
  44782. /* UART frame error interrupt occurred --------------------------------------*/
  44783. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44784. 801322e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44785. 8013232: f003 0302 and.w r3, r3, #2
  44786. 8013236: 2b00 cmp r3, #0
  44787. 8013238: d011 beq.n 801325e <UART_RxISR_16BIT_FIFOEN+0xfe>
  44788. 801323a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44789. 801323e: f003 0301 and.w r3, r3, #1
  44790. 8013242: 2b00 cmp r3, #0
  44791. 8013244: d00b beq.n 801325e <UART_RxISR_16BIT_FIFOEN+0xfe>
  44792. {
  44793. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  44794. 8013246: 687b ldr r3, [r7, #4]
  44795. 8013248: 681b ldr r3, [r3, #0]
  44796. 801324a: 2202 movs r2, #2
  44797. 801324c: 621a str r2, [r3, #32]
  44798. huart->ErrorCode |= HAL_UART_ERROR_FE;
  44799. 801324e: 687b ldr r3, [r7, #4]
  44800. 8013250: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44801. 8013254: f043 0204 orr.w r2, r3, #4
  44802. 8013258: 687b ldr r3, [r7, #4]
  44803. 801325a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44804. }
  44805. /* UART noise error interrupt occurred --------------------------------------*/
  44806. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44807. 801325e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44808. 8013262: f003 0304 and.w r3, r3, #4
  44809. 8013266: 2b00 cmp r3, #0
  44810. 8013268: d011 beq.n 801328e <UART_RxISR_16BIT_FIFOEN+0x12e>
  44811. 801326a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44812. 801326e: f003 0301 and.w r3, r3, #1
  44813. 8013272: 2b00 cmp r3, #0
  44814. 8013274: d00b beq.n 801328e <UART_RxISR_16BIT_FIFOEN+0x12e>
  44815. {
  44816. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  44817. 8013276: 687b ldr r3, [r7, #4]
  44818. 8013278: 681b ldr r3, [r3, #0]
  44819. 801327a: 2204 movs r2, #4
  44820. 801327c: 621a str r2, [r3, #32]
  44821. huart->ErrorCode |= HAL_UART_ERROR_NE;
  44822. 801327e: 687b ldr r3, [r7, #4]
  44823. 8013280: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44824. 8013284: f043 0202 orr.w r2, r3, #2
  44825. 8013288: 687b ldr r3, [r7, #4]
  44826. 801328a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44827. }
  44828. /* Call UART Error Call back function if need be ----------------------------*/
  44829. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  44830. 801328e: 687b ldr r3, [r7, #4]
  44831. 8013290: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44832. 8013294: 2b00 cmp r3, #0
  44833. 8013296: d006 beq.n 80132a6 <UART_RxISR_16BIT_FIFOEN+0x146>
  44834. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44835. /*Call registered error callback*/
  44836. huart->ErrorCallback(huart);
  44837. #else
  44838. /*Call legacy weak error callback*/
  44839. HAL_UART_ErrorCallback(huart);
  44840. 8013298: 6878 ldr r0, [r7, #4]
  44841. 801329a: f7fe f961 bl 8011560 <HAL_UART_ErrorCallback>
  44842. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44843. huart->ErrorCode = HAL_UART_ERROR_NONE;
  44844. 801329e: 687b ldr r3, [r7, #4]
  44845. 80132a0: 2200 movs r2, #0
  44846. 80132a2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44847. }
  44848. }
  44849. if (huart->RxXferCount == 0U)
  44850. 80132a6: 687b ldr r3, [r7, #4]
  44851. 80132a8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44852. 80132ac: b29b uxth r3, r3
  44853. 80132ae: 2b00 cmp r3, #0
  44854. 80132b0: f040 80a2 bne.w 80133f8 <UART_RxISR_16BIT_FIFOEN+0x298>
  44855. {
  44856. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  44857. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  44858. 80132b4: 687b ldr r3, [r7, #4]
  44859. 80132b6: 681b ldr r3, [r3, #0]
  44860. 80132b8: 677b str r3, [r7, #116] @ 0x74
  44861. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44862. 80132ba: 6f7b ldr r3, [r7, #116] @ 0x74
  44863. 80132bc: e853 3f00 ldrex r3, [r3]
  44864. 80132c0: 673b str r3, [r7, #112] @ 0x70
  44865. return(result);
  44866. 80132c2: 6f3b ldr r3, [r7, #112] @ 0x70
  44867. 80132c4: f423 7380 bic.w r3, r3, #256 @ 0x100
  44868. 80132c8: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  44869. 80132cc: 687b ldr r3, [r7, #4]
  44870. 80132ce: 681b ldr r3, [r3, #0]
  44871. 80132d0: 461a mov r2, r3
  44872. 80132d2: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  44873. 80132d6: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  44874. 80132da: 67fa str r2, [r7, #124] @ 0x7c
  44875. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44876. 80132dc: 6ff9 ldr r1, [r7, #124] @ 0x7c
  44877. 80132de: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  44878. 80132e2: e841 2300 strex r3, r2, [r1]
  44879. 80132e6: 67bb str r3, [r7, #120] @ 0x78
  44880. return(result);
  44881. 80132e8: 6fbb ldr r3, [r7, #120] @ 0x78
  44882. 80132ea: 2b00 cmp r3, #0
  44883. 80132ec: d1e2 bne.n 80132b4 <UART_RxISR_16BIT_FIFOEN+0x154>
  44884. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  44885. and RX FIFO Threshold interrupt */
  44886. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  44887. 80132ee: 687b ldr r3, [r7, #4]
  44888. 80132f0: 681b ldr r3, [r3, #0]
  44889. 80132f2: 3308 adds r3, #8
  44890. 80132f4: 663b str r3, [r7, #96] @ 0x60
  44891. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44892. 80132f6: 6e3b ldr r3, [r7, #96] @ 0x60
  44893. 80132f8: e853 3f00 ldrex r3, [r3]
  44894. 80132fc: 65fb str r3, [r7, #92] @ 0x5c
  44895. return(result);
  44896. 80132fe: 6dfa ldr r2, [r7, #92] @ 0x5c
  44897. 8013300: 4b6e ldr r3, [pc, #440] @ (80134bc <UART_RxISR_16BIT_FIFOEN+0x35c>)
  44898. 8013302: 4013 ands r3, r2
  44899. 8013304: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  44900. 8013308: 687b ldr r3, [r7, #4]
  44901. 801330a: 681b ldr r3, [r3, #0]
  44902. 801330c: 3308 adds r3, #8
  44903. 801330e: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  44904. 8013312: 66fa str r2, [r7, #108] @ 0x6c
  44905. 8013314: 66bb str r3, [r7, #104] @ 0x68
  44906. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44907. 8013316: 6eb9 ldr r1, [r7, #104] @ 0x68
  44908. 8013318: 6efa ldr r2, [r7, #108] @ 0x6c
  44909. 801331a: e841 2300 strex r3, r2, [r1]
  44910. 801331e: 667b str r3, [r7, #100] @ 0x64
  44911. return(result);
  44912. 8013320: 6e7b ldr r3, [r7, #100] @ 0x64
  44913. 8013322: 2b00 cmp r3, #0
  44914. 8013324: d1e3 bne.n 80132ee <UART_RxISR_16BIT_FIFOEN+0x18e>
  44915. /* Rx process is completed, restore huart->RxState to Ready */
  44916. huart->RxState = HAL_UART_STATE_READY;
  44917. 8013326: 687b ldr r3, [r7, #4]
  44918. 8013328: 2220 movs r2, #32
  44919. 801332a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44920. /* Clear RxISR function pointer */
  44921. huart->RxISR = NULL;
  44922. 801332e: 687b ldr r3, [r7, #4]
  44923. 8013330: 2200 movs r2, #0
  44924. 8013332: 675a str r2, [r3, #116] @ 0x74
  44925. /* Initialize type of RxEvent to Transfer Complete */
  44926. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44927. 8013334: 687b ldr r3, [r7, #4]
  44928. 8013336: 2200 movs r2, #0
  44929. 8013338: 671a str r2, [r3, #112] @ 0x70
  44930. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44931. 801333a: 687b ldr r3, [r7, #4]
  44932. 801333c: 681b ldr r3, [r3, #0]
  44933. 801333e: 4a60 ldr r2, [pc, #384] @ (80134c0 <UART_RxISR_16BIT_FIFOEN+0x360>)
  44934. 8013340: 4293 cmp r3, r2
  44935. 8013342: d021 beq.n 8013388 <UART_RxISR_16BIT_FIFOEN+0x228>
  44936. {
  44937. /* Check that USART RTOEN bit is set */
  44938. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44939. 8013344: 687b ldr r3, [r7, #4]
  44940. 8013346: 681b ldr r3, [r3, #0]
  44941. 8013348: 685b ldr r3, [r3, #4]
  44942. 801334a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44943. 801334e: 2b00 cmp r3, #0
  44944. 8013350: d01a beq.n 8013388 <UART_RxISR_16BIT_FIFOEN+0x228>
  44945. {
  44946. /* Enable the UART Receiver Timeout Interrupt */
  44947. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44948. 8013352: 687b ldr r3, [r7, #4]
  44949. 8013354: 681b ldr r3, [r3, #0]
  44950. 8013356: 64fb str r3, [r7, #76] @ 0x4c
  44951. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44952. 8013358: 6cfb ldr r3, [r7, #76] @ 0x4c
  44953. 801335a: e853 3f00 ldrex r3, [r3]
  44954. 801335e: 64bb str r3, [r7, #72] @ 0x48
  44955. return(result);
  44956. 8013360: 6cbb ldr r3, [r7, #72] @ 0x48
  44957. 8013362: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44958. 8013366: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  44959. 801336a: 687b ldr r3, [r7, #4]
  44960. 801336c: 681b ldr r3, [r3, #0]
  44961. 801336e: 461a mov r2, r3
  44962. 8013370: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  44963. 8013374: 65bb str r3, [r7, #88] @ 0x58
  44964. 8013376: 657a str r2, [r7, #84] @ 0x54
  44965. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44966. 8013378: 6d79 ldr r1, [r7, #84] @ 0x54
  44967. 801337a: 6dba ldr r2, [r7, #88] @ 0x58
  44968. 801337c: e841 2300 strex r3, r2, [r1]
  44969. 8013380: 653b str r3, [r7, #80] @ 0x50
  44970. return(result);
  44971. 8013382: 6d3b ldr r3, [r7, #80] @ 0x50
  44972. 8013384: 2b00 cmp r3, #0
  44973. 8013386: d1e4 bne.n 8013352 <UART_RxISR_16BIT_FIFOEN+0x1f2>
  44974. }
  44975. }
  44976. /* Check current reception Mode :
  44977. If Reception till IDLE event has been selected : */
  44978. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44979. 8013388: 687b ldr r3, [r7, #4]
  44980. 801338a: 6edb ldr r3, [r3, #108] @ 0x6c
  44981. 801338c: 2b01 cmp r3, #1
  44982. 801338e: d130 bne.n 80133f2 <UART_RxISR_16BIT_FIFOEN+0x292>
  44983. {
  44984. /* Set reception type to Standard */
  44985. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44986. 8013390: 687b ldr r3, [r7, #4]
  44987. 8013392: 2200 movs r2, #0
  44988. 8013394: 66da str r2, [r3, #108] @ 0x6c
  44989. /* Disable IDLE interrupt */
  44990. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44991. 8013396: 687b ldr r3, [r7, #4]
  44992. 8013398: 681b ldr r3, [r3, #0]
  44993. 801339a: 63bb str r3, [r7, #56] @ 0x38
  44994. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44995. 801339c: 6bbb ldr r3, [r7, #56] @ 0x38
  44996. 801339e: e853 3f00 ldrex r3, [r3]
  44997. 80133a2: 637b str r3, [r7, #52] @ 0x34
  44998. return(result);
  44999. 80133a4: 6b7b ldr r3, [r7, #52] @ 0x34
  45000. 80133a6: f023 0310 bic.w r3, r3, #16
  45001. 80133aa: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45002. 80133ae: 687b ldr r3, [r7, #4]
  45003. 80133b0: 681b ldr r3, [r3, #0]
  45004. 80133b2: 461a mov r2, r3
  45005. 80133b4: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45006. 80133b8: 647b str r3, [r7, #68] @ 0x44
  45007. 80133ba: 643a str r2, [r7, #64] @ 0x40
  45008. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45009. 80133bc: 6c39 ldr r1, [r7, #64] @ 0x40
  45010. 80133be: 6c7a ldr r2, [r7, #68] @ 0x44
  45011. 80133c0: e841 2300 strex r3, r2, [r1]
  45012. 80133c4: 63fb str r3, [r7, #60] @ 0x3c
  45013. return(result);
  45014. 80133c6: 6bfb ldr r3, [r7, #60] @ 0x3c
  45015. 80133c8: 2b00 cmp r3, #0
  45016. 80133ca: d1e4 bne.n 8013396 <UART_RxISR_16BIT_FIFOEN+0x236>
  45017. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45018. 80133cc: 687b ldr r3, [r7, #4]
  45019. 80133ce: 681b ldr r3, [r3, #0]
  45020. 80133d0: 69db ldr r3, [r3, #28]
  45021. 80133d2: f003 0310 and.w r3, r3, #16
  45022. 80133d6: 2b10 cmp r3, #16
  45023. 80133d8: d103 bne.n 80133e2 <UART_RxISR_16BIT_FIFOEN+0x282>
  45024. {
  45025. /* Clear IDLE Flag */
  45026. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45027. 80133da: 687b ldr r3, [r7, #4]
  45028. 80133dc: 681b ldr r3, [r3, #0]
  45029. 80133de: 2210 movs r2, #16
  45030. 80133e0: 621a str r2, [r3, #32]
  45031. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45032. /*Call registered Rx Event callback*/
  45033. huart->RxEventCallback(huart, huart->RxXferSize);
  45034. #else
  45035. /*Call legacy weak Rx Event callback*/
  45036. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45037. 80133e2: 687b ldr r3, [r7, #4]
  45038. 80133e4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45039. 80133e8: 4619 mov r1, r3
  45040. 80133ea: 6878 ldr r0, [r7, #4]
  45041. 80133ec: f7f1 f822 bl 8004434 <HAL_UARTEx_RxEventCallback>
  45042. 80133f0: e002 b.n 80133f8 <UART_RxISR_16BIT_FIFOEN+0x298>
  45043. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45044. /*Call registered Rx complete callback*/
  45045. huart->RxCpltCallback(huart);
  45046. #else
  45047. /*Call legacy weak Rx complete callback*/
  45048. HAL_UART_RxCpltCallback(huart);
  45049. 80133f2: 6878 ldr r0, [r7, #4]
  45050. 80133f4: f7f1 f814 bl 8004420 <HAL_UART_RxCpltCallback>
  45051. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45052. 80133f8: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  45053. 80133fc: 2b00 cmp r3, #0
  45054. 80133fe: d006 beq.n 801340e <UART_RxISR_16BIT_FIFOEN+0x2ae>
  45055. 8013400: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45056. 8013404: f003 0320 and.w r3, r3, #32
  45057. 8013408: 2b00 cmp r3, #0
  45058. 801340a: f47f aecd bne.w 80131a8 <UART_RxISR_16BIT_FIFOEN+0x48>
  45059. /* When remaining number of bytes to receive is less than the RX FIFO
  45060. threshold, next incoming frames are processed as if FIFO mode was
  45061. disabled (i.e. one interrupt per received frame).
  45062. */
  45063. rxdatacount = huart->RxXferCount;
  45064. 801340e: 687b ldr r3, [r7, #4]
  45065. 8013410: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45066. 8013414: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  45067. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45068. 8013418: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  45069. 801341c: 2b00 cmp r3, #0
  45070. 801341e: d049 beq.n 80134b4 <UART_RxISR_16BIT_FIFOEN+0x354>
  45071. 8013420: 687b ldr r3, [r7, #4]
  45072. 8013422: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45073. 8013426: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  45074. 801342a: 429a cmp r2, r3
  45075. 801342c: d242 bcs.n 80134b4 <UART_RxISR_16BIT_FIFOEN+0x354>
  45076. {
  45077. /* Disable the UART RXFT interrupt*/
  45078. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45079. 801342e: 687b ldr r3, [r7, #4]
  45080. 8013430: 681b ldr r3, [r3, #0]
  45081. 8013432: 3308 adds r3, #8
  45082. 8013434: 627b str r3, [r7, #36] @ 0x24
  45083. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45084. 8013436: 6a7b ldr r3, [r7, #36] @ 0x24
  45085. 8013438: e853 3f00 ldrex r3, [r3]
  45086. 801343c: 623b str r3, [r7, #32]
  45087. return(result);
  45088. 801343e: 6a3b ldr r3, [r7, #32]
  45089. 8013440: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45090. 8013444: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  45091. 8013448: 687b ldr r3, [r7, #4]
  45092. 801344a: 681b ldr r3, [r3, #0]
  45093. 801344c: 3308 adds r3, #8
  45094. 801344e: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  45095. 8013452: 633a str r2, [r7, #48] @ 0x30
  45096. 8013454: 62fb str r3, [r7, #44] @ 0x2c
  45097. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45098. 8013456: 6af9 ldr r1, [r7, #44] @ 0x2c
  45099. 8013458: 6b3a ldr r2, [r7, #48] @ 0x30
  45100. 801345a: e841 2300 strex r3, r2, [r1]
  45101. 801345e: 62bb str r3, [r7, #40] @ 0x28
  45102. return(result);
  45103. 8013460: 6abb ldr r3, [r7, #40] @ 0x28
  45104. 8013462: 2b00 cmp r3, #0
  45105. 8013464: d1e3 bne.n 801342e <UART_RxISR_16BIT_FIFOEN+0x2ce>
  45106. /* Update the RxISR function pointer */
  45107. huart->RxISR = UART_RxISR_16BIT;
  45108. 8013466: 687b ldr r3, [r7, #4]
  45109. 8013468: 4a16 ldr r2, [pc, #88] @ (80134c4 <UART_RxISR_16BIT_FIFOEN+0x364>)
  45110. 801346a: 675a str r2, [r3, #116] @ 0x74
  45111. /* Enable the UART Data Register Not Empty interrupt */
  45112. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45113. 801346c: 687b ldr r3, [r7, #4]
  45114. 801346e: 681b ldr r3, [r3, #0]
  45115. 8013470: 613b str r3, [r7, #16]
  45116. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45117. 8013472: 693b ldr r3, [r7, #16]
  45118. 8013474: e853 3f00 ldrex r3, [r3]
  45119. 8013478: 60fb str r3, [r7, #12]
  45120. return(result);
  45121. 801347a: 68fb ldr r3, [r7, #12]
  45122. 801347c: f043 0320 orr.w r3, r3, #32
  45123. 8013480: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45124. 8013484: 687b ldr r3, [r7, #4]
  45125. 8013486: 681b ldr r3, [r3, #0]
  45126. 8013488: 461a mov r2, r3
  45127. 801348a: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  45128. 801348e: 61fb str r3, [r7, #28]
  45129. 8013490: 61ba str r2, [r7, #24]
  45130. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45131. 8013492: 69b9 ldr r1, [r7, #24]
  45132. 8013494: 69fa ldr r2, [r7, #28]
  45133. 8013496: e841 2300 strex r3, r2, [r1]
  45134. 801349a: 617b str r3, [r7, #20]
  45135. return(result);
  45136. 801349c: 697b ldr r3, [r7, #20]
  45137. 801349e: 2b00 cmp r3, #0
  45138. 80134a0: d1e4 bne.n 801346c <UART_RxISR_16BIT_FIFOEN+0x30c>
  45139. else
  45140. {
  45141. /* Clear RXNE interrupt flag */
  45142. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45143. }
  45144. }
  45145. 80134a2: e007 b.n 80134b4 <UART_RxISR_16BIT_FIFOEN+0x354>
  45146. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45147. 80134a4: 687b ldr r3, [r7, #4]
  45148. 80134a6: 681b ldr r3, [r3, #0]
  45149. 80134a8: 699a ldr r2, [r3, #24]
  45150. 80134aa: 687b ldr r3, [r7, #4]
  45151. 80134ac: 681b ldr r3, [r3, #0]
  45152. 80134ae: f042 0208 orr.w r2, r2, #8
  45153. 80134b2: 619a str r2, [r3, #24]
  45154. }
  45155. 80134b4: bf00 nop
  45156. 80134b6: 37b8 adds r7, #184 @ 0xb8
  45157. 80134b8: 46bd mov sp, r7
  45158. 80134ba: bd80 pop {r7, pc}
  45159. 80134bc: effffffe .word 0xeffffffe
  45160. 80134c0: 58000c00 .word 0x58000c00
  45161. 80134c4: 08012c49 .word 0x08012c49
  45162. 080134c8 <HAL_UARTEx_WakeupCallback>:
  45163. * @brief UART wakeup from Stop mode callback.
  45164. * @param huart UART handle.
  45165. * @retval None
  45166. */
  45167. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  45168. {
  45169. 80134c8: b480 push {r7}
  45170. 80134ca: b083 sub sp, #12
  45171. 80134cc: af00 add r7, sp, #0
  45172. 80134ce: 6078 str r0, [r7, #4]
  45173. UNUSED(huart);
  45174. /* NOTE : This function should not be modified, when the callback is needed,
  45175. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  45176. */
  45177. }
  45178. 80134d0: bf00 nop
  45179. 80134d2: 370c adds r7, #12
  45180. 80134d4: 46bd mov sp, r7
  45181. 80134d6: f85d 7b04 ldr.w r7, [sp], #4
  45182. 80134da: 4770 bx lr
  45183. 080134dc <HAL_UARTEx_RxFifoFullCallback>:
  45184. * @brief UART RX Fifo full callback.
  45185. * @param huart UART handle.
  45186. * @retval None
  45187. */
  45188. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  45189. {
  45190. 80134dc: b480 push {r7}
  45191. 80134de: b083 sub sp, #12
  45192. 80134e0: af00 add r7, sp, #0
  45193. 80134e2: 6078 str r0, [r7, #4]
  45194. UNUSED(huart);
  45195. /* NOTE : This function should not be modified, when the callback is needed,
  45196. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  45197. */
  45198. }
  45199. 80134e4: bf00 nop
  45200. 80134e6: 370c adds r7, #12
  45201. 80134e8: 46bd mov sp, r7
  45202. 80134ea: f85d 7b04 ldr.w r7, [sp], #4
  45203. 80134ee: 4770 bx lr
  45204. 080134f0 <HAL_UARTEx_TxFifoEmptyCallback>:
  45205. * @brief UART TX Fifo empty callback.
  45206. * @param huart UART handle.
  45207. * @retval None
  45208. */
  45209. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  45210. {
  45211. 80134f0: b480 push {r7}
  45212. 80134f2: b083 sub sp, #12
  45213. 80134f4: af00 add r7, sp, #0
  45214. 80134f6: 6078 str r0, [r7, #4]
  45215. UNUSED(huart);
  45216. /* NOTE : This function should not be modified, when the callback is needed,
  45217. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  45218. */
  45219. }
  45220. 80134f8: bf00 nop
  45221. 80134fa: 370c adds r7, #12
  45222. 80134fc: 46bd mov sp, r7
  45223. 80134fe: f85d 7b04 ldr.w r7, [sp], #4
  45224. 8013502: 4770 bx lr
  45225. 08013504 <HAL_UARTEx_DisableFifoMode>:
  45226. * @brief Disable the FIFO mode.
  45227. * @param huart UART handle.
  45228. * @retval HAL status
  45229. */
  45230. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  45231. {
  45232. 8013504: b480 push {r7}
  45233. 8013506: b085 sub sp, #20
  45234. 8013508: af00 add r7, sp, #0
  45235. 801350a: 6078 str r0, [r7, #4]
  45236. /* Check parameters */
  45237. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  45238. /* Process Locked */
  45239. __HAL_LOCK(huart);
  45240. 801350c: 687b ldr r3, [r7, #4]
  45241. 801350e: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  45242. 8013512: 2b01 cmp r3, #1
  45243. 8013514: d101 bne.n 801351a <HAL_UARTEx_DisableFifoMode+0x16>
  45244. 8013516: 2302 movs r3, #2
  45245. 8013518: e027 b.n 801356a <HAL_UARTEx_DisableFifoMode+0x66>
  45246. 801351a: 687b ldr r3, [r7, #4]
  45247. 801351c: 2201 movs r2, #1
  45248. 801351e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45249. huart->gState = HAL_UART_STATE_BUSY;
  45250. 8013522: 687b ldr r3, [r7, #4]
  45251. 8013524: 2224 movs r2, #36 @ 0x24
  45252. 8013526: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45253. /* Save actual UART configuration */
  45254. tmpcr1 = READ_REG(huart->Instance->CR1);
  45255. 801352a: 687b ldr r3, [r7, #4]
  45256. 801352c: 681b ldr r3, [r3, #0]
  45257. 801352e: 681b ldr r3, [r3, #0]
  45258. 8013530: 60fb str r3, [r7, #12]
  45259. /* Disable UART */
  45260. __HAL_UART_DISABLE(huart);
  45261. 8013532: 687b ldr r3, [r7, #4]
  45262. 8013534: 681b ldr r3, [r3, #0]
  45263. 8013536: 681a ldr r2, [r3, #0]
  45264. 8013538: 687b ldr r3, [r7, #4]
  45265. 801353a: 681b ldr r3, [r3, #0]
  45266. 801353c: f022 0201 bic.w r2, r2, #1
  45267. 8013540: 601a str r2, [r3, #0]
  45268. /* Enable FIFO mode */
  45269. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  45270. 8013542: 68fb ldr r3, [r7, #12]
  45271. 8013544: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  45272. 8013548: 60fb str r3, [r7, #12]
  45273. huart->FifoMode = UART_FIFOMODE_DISABLE;
  45274. 801354a: 687b ldr r3, [r7, #4]
  45275. 801354c: 2200 movs r2, #0
  45276. 801354e: 665a str r2, [r3, #100] @ 0x64
  45277. /* Restore UART configuration */
  45278. WRITE_REG(huart->Instance->CR1, tmpcr1);
  45279. 8013550: 687b ldr r3, [r7, #4]
  45280. 8013552: 681b ldr r3, [r3, #0]
  45281. 8013554: 68fa ldr r2, [r7, #12]
  45282. 8013556: 601a str r2, [r3, #0]
  45283. huart->gState = HAL_UART_STATE_READY;
  45284. 8013558: 687b ldr r3, [r7, #4]
  45285. 801355a: 2220 movs r2, #32
  45286. 801355c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45287. /* Process Unlocked */
  45288. __HAL_UNLOCK(huart);
  45289. 8013560: 687b ldr r3, [r7, #4]
  45290. 8013562: 2200 movs r2, #0
  45291. 8013564: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45292. return HAL_OK;
  45293. 8013568: 2300 movs r3, #0
  45294. }
  45295. 801356a: 4618 mov r0, r3
  45296. 801356c: 3714 adds r7, #20
  45297. 801356e: 46bd mov sp, r7
  45298. 8013570: f85d 7b04 ldr.w r7, [sp], #4
  45299. 8013574: 4770 bx lr
  45300. 08013576 <HAL_UARTEx_SetTxFifoThreshold>:
  45301. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  45302. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  45303. * @retval HAL status
  45304. */
  45305. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  45306. {
  45307. 8013576: b580 push {r7, lr}
  45308. 8013578: b084 sub sp, #16
  45309. 801357a: af00 add r7, sp, #0
  45310. 801357c: 6078 str r0, [r7, #4]
  45311. 801357e: 6039 str r1, [r7, #0]
  45312. /* Check parameters */
  45313. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  45314. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  45315. /* Process Locked */
  45316. __HAL_LOCK(huart);
  45317. 8013580: 687b ldr r3, [r7, #4]
  45318. 8013582: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  45319. 8013586: 2b01 cmp r3, #1
  45320. 8013588: d101 bne.n 801358e <HAL_UARTEx_SetTxFifoThreshold+0x18>
  45321. 801358a: 2302 movs r3, #2
  45322. 801358c: e02d b.n 80135ea <HAL_UARTEx_SetTxFifoThreshold+0x74>
  45323. 801358e: 687b ldr r3, [r7, #4]
  45324. 8013590: 2201 movs r2, #1
  45325. 8013592: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45326. huart->gState = HAL_UART_STATE_BUSY;
  45327. 8013596: 687b ldr r3, [r7, #4]
  45328. 8013598: 2224 movs r2, #36 @ 0x24
  45329. 801359a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45330. /* Save actual UART configuration */
  45331. tmpcr1 = READ_REG(huart->Instance->CR1);
  45332. 801359e: 687b ldr r3, [r7, #4]
  45333. 80135a0: 681b ldr r3, [r3, #0]
  45334. 80135a2: 681b ldr r3, [r3, #0]
  45335. 80135a4: 60fb str r3, [r7, #12]
  45336. /* Disable UART */
  45337. __HAL_UART_DISABLE(huart);
  45338. 80135a6: 687b ldr r3, [r7, #4]
  45339. 80135a8: 681b ldr r3, [r3, #0]
  45340. 80135aa: 681a ldr r2, [r3, #0]
  45341. 80135ac: 687b ldr r3, [r7, #4]
  45342. 80135ae: 681b ldr r3, [r3, #0]
  45343. 80135b0: f022 0201 bic.w r2, r2, #1
  45344. 80135b4: 601a str r2, [r3, #0]
  45345. /* Update TX threshold configuration */
  45346. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  45347. 80135b6: 687b ldr r3, [r7, #4]
  45348. 80135b8: 681b ldr r3, [r3, #0]
  45349. 80135ba: 689b ldr r3, [r3, #8]
  45350. 80135bc: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  45351. 80135c0: 687b ldr r3, [r7, #4]
  45352. 80135c2: 681b ldr r3, [r3, #0]
  45353. 80135c4: 683a ldr r2, [r7, #0]
  45354. 80135c6: 430a orrs r2, r1
  45355. 80135c8: 609a str r2, [r3, #8]
  45356. /* Determine the number of data to process during RX/TX ISR execution */
  45357. UARTEx_SetNbDataToProcess(huart);
  45358. 80135ca: 6878 ldr r0, [r7, #4]
  45359. 80135cc: f000 f8a0 bl 8013710 <UARTEx_SetNbDataToProcess>
  45360. /* Restore UART configuration */
  45361. WRITE_REG(huart->Instance->CR1, tmpcr1);
  45362. 80135d0: 687b ldr r3, [r7, #4]
  45363. 80135d2: 681b ldr r3, [r3, #0]
  45364. 80135d4: 68fa ldr r2, [r7, #12]
  45365. 80135d6: 601a str r2, [r3, #0]
  45366. huart->gState = HAL_UART_STATE_READY;
  45367. 80135d8: 687b ldr r3, [r7, #4]
  45368. 80135da: 2220 movs r2, #32
  45369. 80135dc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45370. /* Process Unlocked */
  45371. __HAL_UNLOCK(huart);
  45372. 80135e0: 687b ldr r3, [r7, #4]
  45373. 80135e2: 2200 movs r2, #0
  45374. 80135e4: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45375. return HAL_OK;
  45376. 80135e8: 2300 movs r3, #0
  45377. }
  45378. 80135ea: 4618 mov r0, r3
  45379. 80135ec: 3710 adds r7, #16
  45380. 80135ee: 46bd mov sp, r7
  45381. 80135f0: bd80 pop {r7, pc}
  45382. 080135f2 <HAL_UARTEx_SetRxFifoThreshold>:
  45383. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  45384. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  45385. * @retval HAL status
  45386. */
  45387. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  45388. {
  45389. 80135f2: b580 push {r7, lr}
  45390. 80135f4: b084 sub sp, #16
  45391. 80135f6: af00 add r7, sp, #0
  45392. 80135f8: 6078 str r0, [r7, #4]
  45393. 80135fa: 6039 str r1, [r7, #0]
  45394. /* Check the parameters */
  45395. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  45396. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  45397. /* Process Locked */
  45398. __HAL_LOCK(huart);
  45399. 80135fc: 687b ldr r3, [r7, #4]
  45400. 80135fe: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  45401. 8013602: 2b01 cmp r3, #1
  45402. 8013604: d101 bne.n 801360a <HAL_UARTEx_SetRxFifoThreshold+0x18>
  45403. 8013606: 2302 movs r3, #2
  45404. 8013608: e02d b.n 8013666 <HAL_UARTEx_SetRxFifoThreshold+0x74>
  45405. 801360a: 687b ldr r3, [r7, #4]
  45406. 801360c: 2201 movs r2, #1
  45407. 801360e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45408. huart->gState = HAL_UART_STATE_BUSY;
  45409. 8013612: 687b ldr r3, [r7, #4]
  45410. 8013614: 2224 movs r2, #36 @ 0x24
  45411. 8013616: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45412. /* Save actual UART configuration */
  45413. tmpcr1 = READ_REG(huart->Instance->CR1);
  45414. 801361a: 687b ldr r3, [r7, #4]
  45415. 801361c: 681b ldr r3, [r3, #0]
  45416. 801361e: 681b ldr r3, [r3, #0]
  45417. 8013620: 60fb str r3, [r7, #12]
  45418. /* Disable UART */
  45419. __HAL_UART_DISABLE(huart);
  45420. 8013622: 687b ldr r3, [r7, #4]
  45421. 8013624: 681b ldr r3, [r3, #0]
  45422. 8013626: 681a ldr r2, [r3, #0]
  45423. 8013628: 687b ldr r3, [r7, #4]
  45424. 801362a: 681b ldr r3, [r3, #0]
  45425. 801362c: f022 0201 bic.w r2, r2, #1
  45426. 8013630: 601a str r2, [r3, #0]
  45427. /* Update RX threshold configuration */
  45428. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  45429. 8013632: 687b ldr r3, [r7, #4]
  45430. 8013634: 681b ldr r3, [r3, #0]
  45431. 8013636: 689b ldr r3, [r3, #8]
  45432. 8013638: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  45433. 801363c: 687b ldr r3, [r7, #4]
  45434. 801363e: 681b ldr r3, [r3, #0]
  45435. 8013640: 683a ldr r2, [r7, #0]
  45436. 8013642: 430a orrs r2, r1
  45437. 8013644: 609a str r2, [r3, #8]
  45438. /* Determine the number of data to process during RX/TX ISR execution */
  45439. UARTEx_SetNbDataToProcess(huart);
  45440. 8013646: 6878 ldr r0, [r7, #4]
  45441. 8013648: f000 f862 bl 8013710 <UARTEx_SetNbDataToProcess>
  45442. /* Restore UART configuration */
  45443. WRITE_REG(huart->Instance->CR1, tmpcr1);
  45444. 801364c: 687b ldr r3, [r7, #4]
  45445. 801364e: 681b ldr r3, [r3, #0]
  45446. 8013650: 68fa ldr r2, [r7, #12]
  45447. 8013652: 601a str r2, [r3, #0]
  45448. huart->gState = HAL_UART_STATE_READY;
  45449. 8013654: 687b ldr r3, [r7, #4]
  45450. 8013656: 2220 movs r2, #32
  45451. 8013658: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  45452. /* Process Unlocked */
  45453. __HAL_UNLOCK(huart);
  45454. 801365c: 687b ldr r3, [r7, #4]
  45455. 801365e: 2200 movs r2, #0
  45456. 8013660: f883 2084 strb.w r2, [r3, #132] @ 0x84
  45457. return HAL_OK;
  45458. 8013664: 2300 movs r3, #0
  45459. }
  45460. 8013666: 4618 mov r0, r3
  45461. 8013668: 3710 adds r7, #16
  45462. 801366a: 46bd mov sp, r7
  45463. 801366c: bd80 pop {r7, pc}
  45464. 0801366e <HAL_UARTEx_ReceiveToIdle_IT>:
  45465. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  45466. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  45467. * @retval HAL status
  45468. */
  45469. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  45470. {
  45471. 801366e: b580 push {r7, lr}
  45472. 8013670: b08c sub sp, #48 @ 0x30
  45473. 8013672: af00 add r7, sp, #0
  45474. 8013674: 60f8 str r0, [r7, #12]
  45475. 8013676: 60b9 str r1, [r7, #8]
  45476. 8013678: 4613 mov r3, r2
  45477. 801367a: 80fb strh r3, [r7, #6]
  45478. HAL_StatusTypeDef status = HAL_OK;
  45479. 801367c: 2300 movs r3, #0
  45480. 801367e: f887 302f strb.w r3, [r7, #47] @ 0x2f
  45481. /* Check that a Rx process is not already ongoing */
  45482. if (huart->RxState == HAL_UART_STATE_READY)
  45483. 8013682: 68fb ldr r3, [r7, #12]
  45484. 8013684: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45485. 8013688: 2b20 cmp r3, #32
  45486. 801368a: d13b bne.n 8013704 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  45487. {
  45488. if ((pData == NULL) || (Size == 0U))
  45489. 801368c: 68bb ldr r3, [r7, #8]
  45490. 801368e: 2b00 cmp r3, #0
  45491. 8013690: d002 beq.n 8013698 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  45492. 8013692: 88fb ldrh r3, [r7, #6]
  45493. 8013694: 2b00 cmp r3, #0
  45494. 8013696: d101 bne.n 801369c <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  45495. {
  45496. return HAL_ERROR;
  45497. 8013698: 2301 movs r3, #1
  45498. 801369a: e034 b.n 8013706 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  45499. }
  45500. /* Set Reception type to reception till IDLE Event*/
  45501. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  45502. 801369c: 68fb ldr r3, [r7, #12]
  45503. 801369e: 2201 movs r2, #1
  45504. 80136a0: 66da str r2, [r3, #108] @ 0x6c
  45505. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45506. 80136a2: 68fb ldr r3, [r7, #12]
  45507. 80136a4: 2200 movs r2, #0
  45508. 80136a6: 671a str r2, [r3, #112] @ 0x70
  45509. (void)UART_Start_Receive_IT(huart, pData, Size);
  45510. 80136a8: 88fb ldrh r3, [r7, #6]
  45511. 80136aa: 461a mov r2, r3
  45512. 80136ac: 68b9 ldr r1, [r7, #8]
  45513. 80136ae: 68f8 ldr r0, [r7, #12]
  45514. 80136b0: f7fe fe82 bl 80123b8 <UART_Start_Receive_IT>
  45515. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45516. 80136b4: 68fb ldr r3, [r7, #12]
  45517. 80136b6: 6edb ldr r3, [r3, #108] @ 0x6c
  45518. 80136b8: 2b01 cmp r3, #1
  45519. 80136ba: d11d bne.n 80136f8 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  45520. {
  45521. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45522. 80136bc: 68fb ldr r3, [r7, #12]
  45523. 80136be: 681b ldr r3, [r3, #0]
  45524. 80136c0: 2210 movs r2, #16
  45525. 80136c2: 621a str r2, [r3, #32]
  45526. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45527. 80136c4: 68fb ldr r3, [r7, #12]
  45528. 80136c6: 681b ldr r3, [r3, #0]
  45529. 80136c8: 61bb str r3, [r7, #24]
  45530. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45531. 80136ca: 69bb ldr r3, [r7, #24]
  45532. 80136cc: e853 3f00 ldrex r3, [r3]
  45533. 80136d0: 617b str r3, [r7, #20]
  45534. return(result);
  45535. 80136d2: 697b ldr r3, [r7, #20]
  45536. 80136d4: f043 0310 orr.w r3, r3, #16
  45537. 80136d8: 62bb str r3, [r7, #40] @ 0x28
  45538. 80136da: 68fb ldr r3, [r7, #12]
  45539. 80136dc: 681b ldr r3, [r3, #0]
  45540. 80136de: 461a mov r2, r3
  45541. 80136e0: 6abb ldr r3, [r7, #40] @ 0x28
  45542. 80136e2: 627b str r3, [r7, #36] @ 0x24
  45543. 80136e4: 623a str r2, [r7, #32]
  45544. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45545. 80136e6: 6a39 ldr r1, [r7, #32]
  45546. 80136e8: 6a7a ldr r2, [r7, #36] @ 0x24
  45547. 80136ea: e841 2300 strex r3, r2, [r1]
  45548. 80136ee: 61fb str r3, [r7, #28]
  45549. return(result);
  45550. 80136f0: 69fb ldr r3, [r7, #28]
  45551. 80136f2: 2b00 cmp r3, #0
  45552. 80136f4: d1e6 bne.n 80136c4 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  45553. 80136f6: e002 b.n 80136fe <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  45554. {
  45555. /* In case of errors already pending when reception is started,
  45556. Interrupts may have already been raised and lead to reception abortion.
  45557. (Overrun error for instance).
  45558. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  45559. status = HAL_ERROR;
  45560. 80136f8: 2301 movs r3, #1
  45561. 80136fa: f887 302f strb.w r3, [r7, #47] @ 0x2f
  45562. }
  45563. return status;
  45564. 80136fe: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  45565. 8013702: e000 b.n 8013706 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  45566. }
  45567. else
  45568. {
  45569. return HAL_BUSY;
  45570. 8013704: 2302 movs r3, #2
  45571. }
  45572. }
  45573. 8013706: 4618 mov r0, r3
  45574. 8013708: 3730 adds r7, #48 @ 0x30
  45575. 801370a: 46bd mov sp, r7
  45576. 801370c: bd80 pop {r7, pc}
  45577. ...
  45578. 08013710 <UARTEx_SetNbDataToProcess>:
  45579. * the UART configuration registers.
  45580. * @param huart UART handle.
  45581. * @retval None
  45582. */
  45583. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  45584. {
  45585. 8013710: b480 push {r7}
  45586. 8013712: b085 sub sp, #20
  45587. 8013714: af00 add r7, sp, #0
  45588. 8013716: 6078 str r0, [r7, #4]
  45589. uint8_t rx_fifo_threshold;
  45590. uint8_t tx_fifo_threshold;
  45591. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  45592. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  45593. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  45594. 8013718: 687b ldr r3, [r7, #4]
  45595. 801371a: 6e5b ldr r3, [r3, #100] @ 0x64
  45596. 801371c: 2b00 cmp r3, #0
  45597. 801371e: d108 bne.n 8013732 <UARTEx_SetNbDataToProcess+0x22>
  45598. {
  45599. huart->NbTxDataToProcess = 1U;
  45600. 8013720: 687b ldr r3, [r7, #4]
  45601. 8013722: 2201 movs r2, #1
  45602. 8013724: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  45603. huart->NbRxDataToProcess = 1U;
  45604. 8013728: 687b ldr r3, [r7, #4]
  45605. 801372a: 2201 movs r2, #1
  45606. 801372c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  45607. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45608. (uint16_t)denominator[tx_fifo_threshold];
  45609. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45610. (uint16_t)denominator[rx_fifo_threshold];
  45611. }
  45612. }
  45613. 8013730: e031 b.n 8013796 <UARTEx_SetNbDataToProcess+0x86>
  45614. rx_fifo_depth = RX_FIFO_DEPTH;
  45615. 8013732: 2310 movs r3, #16
  45616. 8013734: 73fb strb r3, [r7, #15]
  45617. tx_fifo_depth = TX_FIFO_DEPTH;
  45618. 8013736: 2310 movs r3, #16
  45619. 8013738: 73bb strb r3, [r7, #14]
  45620. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  45621. 801373a: 687b ldr r3, [r7, #4]
  45622. 801373c: 681b ldr r3, [r3, #0]
  45623. 801373e: 689b ldr r3, [r3, #8]
  45624. 8013740: 0e5b lsrs r3, r3, #25
  45625. 8013742: b2db uxtb r3, r3
  45626. 8013744: f003 0307 and.w r3, r3, #7
  45627. 8013748: 737b strb r3, [r7, #13]
  45628. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  45629. 801374a: 687b ldr r3, [r7, #4]
  45630. 801374c: 681b ldr r3, [r3, #0]
  45631. 801374e: 689b ldr r3, [r3, #8]
  45632. 8013750: 0f5b lsrs r3, r3, #29
  45633. 8013752: b2db uxtb r3, r3
  45634. 8013754: f003 0307 and.w r3, r3, #7
  45635. 8013758: 733b strb r3, [r7, #12]
  45636. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45637. 801375a: 7bbb ldrb r3, [r7, #14]
  45638. 801375c: 7b3a ldrb r2, [r7, #12]
  45639. 801375e: 4911 ldr r1, [pc, #68] @ (80137a4 <UARTEx_SetNbDataToProcess+0x94>)
  45640. 8013760: 5c8a ldrb r2, [r1, r2]
  45641. 8013762: fb02 f303 mul.w r3, r2, r3
  45642. (uint16_t)denominator[tx_fifo_threshold];
  45643. 8013766: 7b3a ldrb r2, [r7, #12]
  45644. 8013768: 490f ldr r1, [pc, #60] @ (80137a8 <UARTEx_SetNbDataToProcess+0x98>)
  45645. 801376a: 5c8a ldrb r2, [r1, r2]
  45646. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  45647. 801376c: fb93 f3f2 sdiv r3, r3, r2
  45648. 8013770: b29a uxth r2, r3
  45649. 8013772: 687b ldr r3, [r7, #4]
  45650. 8013774: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  45651. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45652. 8013778: 7bfb ldrb r3, [r7, #15]
  45653. 801377a: 7b7a ldrb r2, [r7, #13]
  45654. 801377c: 4909 ldr r1, [pc, #36] @ (80137a4 <UARTEx_SetNbDataToProcess+0x94>)
  45655. 801377e: 5c8a ldrb r2, [r1, r2]
  45656. 8013780: fb02 f303 mul.w r3, r2, r3
  45657. (uint16_t)denominator[rx_fifo_threshold];
  45658. 8013784: 7b7a ldrb r2, [r7, #13]
  45659. 8013786: 4908 ldr r1, [pc, #32] @ (80137a8 <UARTEx_SetNbDataToProcess+0x98>)
  45660. 8013788: 5c8a ldrb r2, [r1, r2]
  45661. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  45662. 801378a: fb93 f3f2 sdiv r3, r3, r2
  45663. 801378e: b29a uxth r2, r3
  45664. 8013790: 687b ldr r3, [r7, #4]
  45665. 8013792: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  45666. }
  45667. 8013796: bf00 nop
  45668. 8013798: 3714 adds r7, #20
  45669. 801379a: 46bd mov sp, r7
  45670. 801379c: f85d 7b04 ldr.w r7, [sp], #4
  45671. 80137a0: 4770 bx lr
  45672. 80137a2: bf00 nop
  45673. 80137a4: 08018c48 .word 0x08018c48
  45674. 80137a8: 08018c50 .word 0x08018c50
  45675. 080137ac <__NVIC_SetPriority>:
  45676. {
  45677. 80137ac: b480 push {r7}
  45678. 80137ae: b083 sub sp, #12
  45679. 80137b0: af00 add r7, sp, #0
  45680. 80137b2: 4603 mov r3, r0
  45681. 80137b4: 6039 str r1, [r7, #0]
  45682. 80137b6: 80fb strh r3, [r7, #6]
  45683. if ((int32_t)(IRQn) >= 0)
  45684. 80137b8: f9b7 3006 ldrsh.w r3, [r7, #6]
  45685. 80137bc: 2b00 cmp r3, #0
  45686. 80137be: db0a blt.n 80137d6 <__NVIC_SetPriority+0x2a>
  45687. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45688. 80137c0: 683b ldr r3, [r7, #0]
  45689. 80137c2: b2da uxtb r2, r3
  45690. 80137c4: 490c ldr r1, [pc, #48] @ (80137f8 <__NVIC_SetPriority+0x4c>)
  45691. 80137c6: f9b7 3006 ldrsh.w r3, [r7, #6]
  45692. 80137ca: 0112 lsls r2, r2, #4
  45693. 80137cc: b2d2 uxtb r2, r2
  45694. 80137ce: 440b add r3, r1
  45695. 80137d0: f883 2300 strb.w r2, [r3, #768] @ 0x300
  45696. }
  45697. 80137d4: e00a b.n 80137ec <__NVIC_SetPriority+0x40>
  45698. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45699. 80137d6: 683b ldr r3, [r7, #0]
  45700. 80137d8: b2da uxtb r2, r3
  45701. 80137da: 4908 ldr r1, [pc, #32] @ (80137fc <__NVIC_SetPriority+0x50>)
  45702. 80137dc: 88fb ldrh r3, [r7, #6]
  45703. 80137de: f003 030f and.w r3, r3, #15
  45704. 80137e2: 3b04 subs r3, #4
  45705. 80137e4: 0112 lsls r2, r2, #4
  45706. 80137e6: b2d2 uxtb r2, r2
  45707. 80137e8: 440b add r3, r1
  45708. 80137ea: 761a strb r2, [r3, #24]
  45709. }
  45710. 80137ec: bf00 nop
  45711. 80137ee: 370c adds r7, #12
  45712. 80137f0: 46bd mov sp, r7
  45713. 80137f2: f85d 7b04 ldr.w r7, [sp], #4
  45714. 80137f6: 4770 bx lr
  45715. 80137f8: e000e100 .word 0xe000e100
  45716. 80137fc: e000ed00 .word 0xe000ed00
  45717. 08013800 <SysTick_Handler>:
  45718. /*
  45719. SysTick handler implementation that also clears overflow flag.
  45720. */
  45721. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  45722. void SysTick_Handler (void) {
  45723. 8013800: b580 push {r7, lr}
  45724. 8013802: af00 add r7, sp, #0
  45725. /* Clear overflow flag */
  45726. SysTick->CTRL;
  45727. 8013804: 4b05 ldr r3, [pc, #20] @ (801381c <SysTick_Handler+0x1c>)
  45728. 8013806: 681b ldr r3, [r3, #0]
  45729. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  45730. 8013808: f002 fd1e bl 8016248 <xTaskGetSchedulerState>
  45731. 801380c: 4603 mov r3, r0
  45732. 801380e: 2b01 cmp r3, #1
  45733. 8013810: d001 beq.n 8013816 <SysTick_Handler+0x16>
  45734. /* Call tick handler */
  45735. xPortSysTickHandler();
  45736. 8013812: f003 ff31 bl 8017678 <xPortSysTickHandler>
  45737. }
  45738. }
  45739. 8013816: bf00 nop
  45740. 8013818: bd80 pop {r7, pc}
  45741. 801381a: bf00 nop
  45742. 801381c: e000e010 .word 0xe000e010
  45743. 08013820 <SVC_Setup>:
  45744. #endif /* SysTick */
  45745. /*
  45746. Setup SVC to reset value.
  45747. */
  45748. __STATIC_INLINE void SVC_Setup (void) {
  45749. 8013820: b580 push {r7, lr}
  45750. 8013822: af00 add r7, sp, #0
  45751. #if (__ARM_ARCH_7A__ == 0U)
  45752. /* Service Call interrupt might be configured before kernel start */
  45753. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  45754. /* causes a Hard Fault. */
  45755. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  45756. 8013824: 2100 movs r1, #0
  45757. 8013826: f06f 0004 mvn.w r0, #4
  45758. 801382a: f7ff ffbf bl 80137ac <__NVIC_SetPriority>
  45759. #endif
  45760. }
  45761. 801382e: bf00 nop
  45762. 8013830: bd80 pop {r7, pc}
  45763. ...
  45764. 08013834 <osKernelInitialize>:
  45765. static uint32_t OS_Tick_GetOverflow (void);
  45766. /* Get OS Tick interval */
  45767. static uint32_t OS_Tick_GetInterval (void);
  45768. /*---------------------------------------------------------------------------*/
  45769. osStatus_t osKernelInitialize (void) {
  45770. 8013834: b480 push {r7}
  45771. 8013836: b083 sub sp, #12
  45772. 8013838: af00 add r7, sp, #0
  45773. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45774. 801383a: f3ef 8305 mrs r3, IPSR
  45775. 801383e: 603b str r3, [r7, #0]
  45776. return(result);
  45777. 8013840: 683b ldr r3, [r7, #0]
  45778. osStatus_t stat;
  45779. if (IS_IRQ()) {
  45780. 8013842: 2b00 cmp r3, #0
  45781. 8013844: d003 beq.n 801384e <osKernelInitialize+0x1a>
  45782. stat = osErrorISR;
  45783. 8013846: f06f 0305 mvn.w r3, #5
  45784. 801384a: 607b str r3, [r7, #4]
  45785. 801384c: e00c b.n 8013868 <osKernelInitialize+0x34>
  45786. }
  45787. else {
  45788. if (KernelState == osKernelInactive) {
  45789. 801384e: 4b0a ldr r3, [pc, #40] @ (8013878 <osKernelInitialize+0x44>)
  45790. 8013850: 681b ldr r3, [r3, #0]
  45791. 8013852: 2b00 cmp r3, #0
  45792. 8013854: d105 bne.n 8013862 <osKernelInitialize+0x2e>
  45793. EvrFreeRTOSSetup(0U);
  45794. #endif
  45795. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  45796. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  45797. #endif
  45798. KernelState = osKernelReady;
  45799. 8013856: 4b08 ldr r3, [pc, #32] @ (8013878 <osKernelInitialize+0x44>)
  45800. 8013858: 2201 movs r2, #1
  45801. 801385a: 601a str r2, [r3, #0]
  45802. stat = osOK;
  45803. 801385c: 2300 movs r3, #0
  45804. 801385e: 607b str r3, [r7, #4]
  45805. 8013860: e002 b.n 8013868 <osKernelInitialize+0x34>
  45806. } else {
  45807. stat = osError;
  45808. 8013862: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45809. 8013866: 607b str r3, [r7, #4]
  45810. }
  45811. }
  45812. return (stat);
  45813. 8013868: 687b ldr r3, [r7, #4]
  45814. }
  45815. 801386a: 4618 mov r0, r3
  45816. 801386c: 370c adds r7, #12
  45817. 801386e: 46bd mov sp, r7
  45818. 8013870: f85d 7b04 ldr.w r7, [sp], #4
  45819. 8013874: 4770 bx lr
  45820. 8013876: bf00 nop
  45821. 8013878: 24000d00 .word 0x24000d00
  45822. 0801387c <osKernelStart>:
  45823. }
  45824. return (state);
  45825. }
  45826. osStatus_t osKernelStart (void) {
  45827. 801387c: b580 push {r7, lr}
  45828. 801387e: b082 sub sp, #8
  45829. 8013880: af00 add r7, sp, #0
  45830. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45831. 8013882: f3ef 8305 mrs r3, IPSR
  45832. 8013886: 603b str r3, [r7, #0]
  45833. return(result);
  45834. 8013888: 683b ldr r3, [r7, #0]
  45835. osStatus_t stat;
  45836. if (IS_IRQ()) {
  45837. 801388a: 2b00 cmp r3, #0
  45838. 801388c: d003 beq.n 8013896 <osKernelStart+0x1a>
  45839. stat = osErrorISR;
  45840. 801388e: f06f 0305 mvn.w r3, #5
  45841. 8013892: 607b str r3, [r7, #4]
  45842. 8013894: e010 b.n 80138b8 <osKernelStart+0x3c>
  45843. }
  45844. else {
  45845. if (KernelState == osKernelReady) {
  45846. 8013896: 4b0b ldr r3, [pc, #44] @ (80138c4 <osKernelStart+0x48>)
  45847. 8013898: 681b ldr r3, [r3, #0]
  45848. 801389a: 2b01 cmp r3, #1
  45849. 801389c: d109 bne.n 80138b2 <osKernelStart+0x36>
  45850. /* Ensure SVC priority is at the reset value */
  45851. SVC_Setup();
  45852. 801389e: f7ff ffbf bl 8013820 <SVC_Setup>
  45853. /* Change state to enable IRQ masking check */
  45854. KernelState = osKernelRunning;
  45855. 80138a2: 4b08 ldr r3, [pc, #32] @ (80138c4 <osKernelStart+0x48>)
  45856. 80138a4: 2202 movs r2, #2
  45857. 80138a6: 601a str r2, [r3, #0]
  45858. /* Start the kernel scheduler */
  45859. vTaskStartScheduler();
  45860. 80138a8: f002 f824 bl 80158f4 <vTaskStartScheduler>
  45861. stat = osOK;
  45862. 80138ac: 2300 movs r3, #0
  45863. 80138ae: 607b str r3, [r7, #4]
  45864. 80138b0: e002 b.n 80138b8 <osKernelStart+0x3c>
  45865. } else {
  45866. stat = osError;
  45867. 80138b2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45868. 80138b6: 607b str r3, [r7, #4]
  45869. }
  45870. }
  45871. return (stat);
  45872. 80138b8: 687b ldr r3, [r7, #4]
  45873. }
  45874. 80138ba: 4618 mov r0, r3
  45875. 80138bc: 3708 adds r7, #8
  45876. 80138be: 46bd mov sp, r7
  45877. 80138c0: bd80 pop {r7, pc}
  45878. 80138c2: bf00 nop
  45879. 80138c4: 24000d00 .word 0x24000d00
  45880. 080138c8 <osThreadNew>:
  45881. return (configCPU_CLOCK_HZ);
  45882. }
  45883. /*---------------------------------------------------------------------------*/
  45884. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  45885. 80138c8: b580 push {r7, lr}
  45886. 80138ca: b08e sub sp, #56 @ 0x38
  45887. 80138cc: af04 add r7, sp, #16
  45888. 80138ce: 60f8 str r0, [r7, #12]
  45889. 80138d0: 60b9 str r1, [r7, #8]
  45890. 80138d2: 607a str r2, [r7, #4]
  45891. uint32_t stack;
  45892. TaskHandle_t hTask;
  45893. UBaseType_t prio;
  45894. int32_t mem;
  45895. hTask = NULL;
  45896. 80138d4: 2300 movs r3, #0
  45897. 80138d6: 613b str r3, [r7, #16]
  45898. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45899. 80138d8: f3ef 8305 mrs r3, IPSR
  45900. 80138dc: 617b str r3, [r7, #20]
  45901. return(result);
  45902. 80138de: 697b ldr r3, [r7, #20]
  45903. if (!IS_IRQ() && (func != NULL)) {
  45904. 80138e0: 2b00 cmp r3, #0
  45905. 80138e2: d17f bne.n 80139e4 <osThreadNew+0x11c>
  45906. 80138e4: 68fb ldr r3, [r7, #12]
  45907. 80138e6: 2b00 cmp r3, #0
  45908. 80138e8: d07c beq.n 80139e4 <osThreadNew+0x11c>
  45909. stack = configMINIMAL_STACK_SIZE;
  45910. 80138ea: f44f 7300 mov.w r3, #512 @ 0x200
  45911. 80138ee: 623b str r3, [r7, #32]
  45912. prio = (UBaseType_t)osPriorityNormal;
  45913. 80138f0: 2318 movs r3, #24
  45914. 80138f2: 61fb str r3, [r7, #28]
  45915. name = NULL;
  45916. 80138f4: 2300 movs r3, #0
  45917. 80138f6: 627b str r3, [r7, #36] @ 0x24
  45918. mem = -1;
  45919. 80138f8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45920. 80138fc: 61bb str r3, [r7, #24]
  45921. if (attr != NULL) {
  45922. 80138fe: 687b ldr r3, [r7, #4]
  45923. 8013900: 2b00 cmp r3, #0
  45924. 8013902: d045 beq.n 8013990 <osThreadNew+0xc8>
  45925. if (attr->name != NULL) {
  45926. 8013904: 687b ldr r3, [r7, #4]
  45927. 8013906: 681b ldr r3, [r3, #0]
  45928. 8013908: 2b00 cmp r3, #0
  45929. 801390a: d002 beq.n 8013912 <osThreadNew+0x4a>
  45930. name = attr->name;
  45931. 801390c: 687b ldr r3, [r7, #4]
  45932. 801390e: 681b ldr r3, [r3, #0]
  45933. 8013910: 627b str r3, [r7, #36] @ 0x24
  45934. }
  45935. if (attr->priority != osPriorityNone) {
  45936. 8013912: 687b ldr r3, [r7, #4]
  45937. 8013914: 699b ldr r3, [r3, #24]
  45938. 8013916: 2b00 cmp r3, #0
  45939. 8013918: d002 beq.n 8013920 <osThreadNew+0x58>
  45940. prio = (UBaseType_t)attr->priority;
  45941. 801391a: 687b ldr r3, [r7, #4]
  45942. 801391c: 699b ldr r3, [r3, #24]
  45943. 801391e: 61fb str r3, [r7, #28]
  45944. }
  45945. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  45946. 8013920: 69fb ldr r3, [r7, #28]
  45947. 8013922: 2b00 cmp r3, #0
  45948. 8013924: d008 beq.n 8013938 <osThreadNew+0x70>
  45949. 8013926: 69fb ldr r3, [r7, #28]
  45950. 8013928: 2b38 cmp r3, #56 @ 0x38
  45951. 801392a: d805 bhi.n 8013938 <osThreadNew+0x70>
  45952. 801392c: 687b ldr r3, [r7, #4]
  45953. 801392e: 685b ldr r3, [r3, #4]
  45954. 8013930: f003 0301 and.w r3, r3, #1
  45955. 8013934: 2b00 cmp r3, #0
  45956. 8013936: d001 beq.n 801393c <osThreadNew+0x74>
  45957. return (NULL);
  45958. 8013938: 2300 movs r3, #0
  45959. 801393a: e054 b.n 80139e6 <osThreadNew+0x11e>
  45960. }
  45961. if (attr->stack_size > 0U) {
  45962. 801393c: 687b ldr r3, [r7, #4]
  45963. 801393e: 695b ldr r3, [r3, #20]
  45964. 8013940: 2b00 cmp r3, #0
  45965. 8013942: d003 beq.n 801394c <osThreadNew+0x84>
  45966. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  45967. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  45968. stack = attr->stack_size / sizeof(StackType_t);
  45969. 8013944: 687b ldr r3, [r7, #4]
  45970. 8013946: 695b ldr r3, [r3, #20]
  45971. 8013948: 089b lsrs r3, r3, #2
  45972. 801394a: 623b str r3, [r7, #32]
  45973. }
  45974. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45975. 801394c: 687b ldr r3, [r7, #4]
  45976. 801394e: 689b ldr r3, [r3, #8]
  45977. 8013950: 2b00 cmp r3, #0
  45978. 8013952: d00e beq.n 8013972 <osThreadNew+0xaa>
  45979. 8013954: 687b ldr r3, [r7, #4]
  45980. 8013956: 68db ldr r3, [r3, #12]
  45981. 8013958: 2ba7 cmp r3, #167 @ 0xa7
  45982. 801395a: d90a bls.n 8013972 <osThreadNew+0xaa>
  45983. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45984. 801395c: 687b ldr r3, [r7, #4]
  45985. 801395e: 691b ldr r3, [r3, #16]
  45986. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45987. 8013960: 2b00 cmp r3, #0
  45988. 8013962: d006 beq.n 8013972 <osThreadNew+0xaa>
  45989. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45990. 8013964: 687b ldr r3, [r7, #4]
  45991. 8013966: 695b ldr r3, [r3, #20]
  45992. 8013968: 2b00 cmp r3, #0
  45993. 801396a: d002 beq.n 8013972 <osThreadNew+0xaa>
  45994. mem = 1;
  45995. 801396c: 2301 movs r3, #1
  45996. 801396e: 61bb str r3, [r7, #24]
  45997. 8013970: e010 b.n 8013994 <osThreadNew+0xcc>
  45998. }
  45999. else {
  46000. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  46001. 8013972: 687b ldr r3, [r7, #4]
  46002. 8013974: 689b ldr r3, [r3, #8]
  46003. 8013976: 2b00 cmp r3, #0
  46004. 8013978: d10c bne.n 8013994 <osThreadNew+0xcc>
  46005. 801397a: 687b ldr r3, [r7, #4]
  46006. 801397c: 68db ldr r3, [r3, #12]
  46007. 801397e: 2b00 cmp r3, #0
  46008. 8013980: d108 bne.n 8013994 <osThreadNew+0xcc>
  46009. 8013982: 687b ldr r3, [r7, #4]
  46010. 8013984: 691b ldr r3, [r3, #16]
  46011. 8013986: 2b00 cmp r3, #0
  46012. 8013988: d104 bne.n 8013994 <osThreadNew+0xcc>
  46013. mem = 0;
  46014. 801398a: 2300 movs r3, #0
  46015. 801398c: 61bb str r3, [r7, #24]
  46016. 801398e: e001 b.n 8013994 <osThreadNew+0xcc>
  46017. }
  46018. }
  46019. }
  46020. else {
  46021. mem = 0;
  46022. 8013990: 2300 movs r3, #0
  46023. 8013992: 61bb str r3, [r7, #24]
  46024. }
  46025. if (mem == 1) {
  46026. 8013994: 69bb ldr r3, [r7, #24]
  46027. 8013996: 2b01 cmp r3, #1
  46028. 8013998: d110 bne.n 80139bc <osThreadNew+0xf4>
  46029. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46030. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46031. 801399a: 687b ldr r3, [r7, #4]
  46032. 801399c: 691b ldr r3, [r3, #16]
  46033. (StaticTask_t *)attr->cb_mem);
  46034. 801399e: 687a ldr r2, [r7, #4]
  46035. 80139a0: 6892 ldr r2, [r2, #8]
  46036. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46037. 80139a2: 9202 str r2, [sp, #8]
  46038. 80139a4: 9301 str r3, [sp, #4]
  46039. 80139a6: 69fb ldr r3, [r7, #28]
  46040. 80139a8: 9300 str r3, [sp, #0]
  46041. 80139aa: 68bb ldr r3, [r7, #8]
  46042. 80139ac: 6a3a ldr r2, [r7, #32]
  46043. 80139ae: 6a79 ldr r1, [r7, #36] @ 0x24
  46044. 80139b0: 68f8 ldr r0, [r7, #12]
  46045. 80139b2: f001 fdac bl 801550e <xTaskCreateStatic>
  46046. 80139b6: 4603 mov r3, r0
  46047. 80139b8: 613b str r3, [r7, #16]
  46048. 80139ba: e013 b.n 80139e4 <osThreadNew+0x11c>
  46049. #endif
  46050. }
  46051. else {
  46052. if (mem == 0) {
  46053. 80139bc: 69bb ldr r3, [r7, #24]
  46054. 80139be: 2b00 cmp r3, #0
  46055. 80139c0: d110 bne.n 80139e4 <osThreadNew+0x11c>
  46056. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46057. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  46058. 80139c2: 6a3b ldr r3, [r7, #32]
  46059. 80139c4: b29a uxth r2, r3
  46060. 80139c6: f107 0310 add.w r3, r7, #16
  46061. 80139ca: 9301 str r3, [sp, #4]
  46062. 80139cc: 69fb ldr r3, [r7, #28]
  46063. 80139ce: 9300 str r3, [sp, #0]
  46064. 80139d0: 68bb ldr r3, [r7, #8]
  46065. 80139d2: 6a79 ldr r1, [r7, #36] @ 0x24
  46066. 80139d4: 68f8 ldr r0, [r7, #12]
  46067. 80139d6: f001 fdfa bl 80155ce <xTaskCreate>
  46068. 80139da: 4603 mov r3, r0
  46069. 80139dc: 2b01 cmp r3, #1
  46070. 80139de: d001 beq.n 80139e4 <osThreadNew+0x11c>
  46071. hTask = NULL;
  46072. 80139e0: 2300 movs r3, #0
  46073. 80139e2: 613b str r3, [r7, #16]
  46074. #endif
  46075. }
  46076. }
  46077. }
  46078. return ((osThreadId_t)hTask);
  46079. 80139e4: 693b ldr r3, [r7, #16]
  46080. }
  46081. 80139e6: 4618 mov r0, r3
  46082. 80139e8: 3728 adds r7, #40 @ 0x28
  46083. 80139ea: 46bd mov sp, r7
  46084. 80139ec: bd80 pop {r7, pc}
  46085. 080139ee <osDelay>:
  46086. /* Return flags before clearing */
  46087. return (rflags);
  46088. }
  46089. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  46090. osStatus_t osDelay (uint32_t ticks) {
  46091. 80139ee: b580 push {r7, lr}
  46092. 80139f0: b084 sub sp, #16
  46093. 80139f2: af00 add r7, sp, #0
  46094. 80139f4: 6078 str r0, [r7, #4]
  46095. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46096. 80139f6: f3ef 8305 mrs r3, IPSR
  46097. 80139fa: 60bb str r3, [r7, #8]
  46098. return(result);
  46099. 80139fc: 68bb ldr r3, [r7, #8]
  46100. osStatus_t stat;
  46101. if (IS_IRQ()) {
  46102. 80139fe: 2b00 cmp r3, #0
  46103. 8013a00: d003 beq.n 8013a0a <osDelay+0x1c>
  46104. stat = osErrorISR;
  46105. 8013a02: f06f 0305 mvn.w r3, #5
  46106. 8013a06: 60fb str r3, [r7, #12]
  46107. 8013a08: e007 b.n 8013a1a <osDelay+0x2c>
  46108. }
  46109. else {
  46110. stat = osOK;
  46111. 8013a0a: 2300 movs r3, #0
  46112. 8013a0c: 60fb str r3, [r7, #12]
  46113. if (ticks != 0U) {
  46114. 8013a0e: 687b ldr r3, [r7, #4]
  46115. 8013a10: 2b00 cmp r3, #0
  46116. 8013a12: d002 beq.n 8013a1a <osDelay+0x2c>
  46117. vTaskDelay(ticks);
  46118. 8013a14: 6878 ldr r0, [r7, #4]
  46119. 8013a16: f001 ff37 bl 8015888 <vTaskDelay>
  46120. }
  46121. }
  46122. return (stat);
  46123. 8013a1a: 68fb ldr r3, [r7, #12]
  46124. }
  46125. 8013a1c: 4618 mov r0, r3
  46126. 8013a1e: 3710 adds r7, #16
  46127. 8013a20: 46bd mov sp, r7
  46128. 8013a22: bd80 pop {r7, pc}
  46129. 08013a24 <TimerCallback>:
  46130. }
  46131. /*---------------------------------------------------------------------------*/
  46132. #if (configUSE_OS2_TIMER == 1)
  46133. static void TimerCallback (TimerHandle_t hTimer) {
  46134. 8013a24: b580 push {r7, lr}
  46135. 8013a26: b084 sub sp, #16
  46136. 8013a28: af00 add r7, sp, #0
  46137. 8013a2a: 6078 str r0, [r7, #4]
  46138. TimerCallback_t *callb;
  46139. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  46140. 8013a2c: 6878 ldr r0, [r7, #4]
  46141. 8013a2e: f003 fc3d bl 80172ac <pvTimerGetTimerID>
  46142. 8013a32: 60f8 str r0, [r7, #12]
  46143. if (callb != NULL) {
  46144. 8013a34: 68fb ldr r3, [r7, #12]
  46145. 8013a36: 2b00 cmp r3, #0
  46146. 8013a38: d005 beq.n 8013a46 <TimerCallback+0x22>
  46147. callb->func (callb->arg);
  46148. 8013a3a: 68fb ldr r3, [r7, #12]
  46149. 8013a3c: 681b ldr r3, [r3, #0]
  46150. 8013a3e: 68fa ldr r2, [r7, #12]
  46151. 8013a40: 6852 ldr r2, [r2, #4]
  46152. 8013a42: 4610 mov r0, r2
  46153. 8013a44: 4798 blx r3
  46154. }
  46155. }
  46156. 8013a46: bf00 nop
  46157. 8013a48: 3710 adds r7, #16
  46158. 8013a4a: 46bd mov sp, r7
  46159. 8013a4c: bd80 pop {r7, pc}
  46160. ...
  46161. 08013a50 <osTimerNew>:
  46162. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  46163. 8013a50: b580 push {r7, lr}
  46164. 8013a52: b08c sub sp, #48 @ 0x30
  46165. 8013a54: af02 add r7, sp, #8
  46166. 8013a56: 60f8 str r0, [r7, #12]
  46167. 8013a58: 607a str r2, [r7, #4]
  46168. 8013a5a: 603b str r3, [r7, #0]
  46169. 8013a5c: 460b mov r3, r1
  46170. 8013a5e: 72fb strb r3, [r7, #11]
  46171. TimerHandle_t hTimer;
  46172. TimerCallback_t *callb;
  46173. UBaseType_t reload;
  46174. int32_t mem;
  46175. hTimer = NULL;
  46176. 8013a60: 2300 movs r3, #0
  46177. 8013a62: 623b str r3, [r7, #32]
  46178. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46179. 8013a64: f3ef 8305 mrs r3, IPSR
  46180. 8013a68: 613b str r3, [r7, #16]
  46181. return(result);
  46182. 8013a6a: 693b ldr r3, [r7, #16]
  46183. if (!IS_IRQ() && (func != NULL)) {
  46184. 8013a6c: 2b00 cmp r3, #0
  46185. 8013a6e: d163 bne.n 8013b38 <osTimerNew+0xe8>
  46186. 8013a70: 68fb ldr r3, [r7, #12]
  46187. 8013a72: 2b00 cmp r3, #0
  46188. 8013a74: d060 beq.n 8013b38 <osTimerNew+0xe8>
  46189. /* Allocate memory to store callback function and argument */
  46190. callb = pvPortMalloc (sizeof(TimerCallback_t));
  46191. 8013a76: 2008 movs r0, #8
  46192. 8013a78: f003 fe90 bl 801779c <pvPortMalloc>
  46193. 8013a7c: 6178 str r0, [r7, #20]
  46194. if (callb != NULL) {
  46195. 8013a7e: 697b ldr r3, [r7, #20]
  46196. 8013a80: 2b00 cmp r3, #0
  46197. 8013a82: d059 beq.n 8013b38 <osTimerNew+0xe8>
  46198. callb->func = func;
  46199. 8013a84: 697b ldr r3, [r7, #20]
  46200. 8013a86: 68fa ldr r2, [r7, #12]
  46201. 8013a88: 601a str r2, [r3, #0]
  46202. callb->arg = argument;
  46203. 8013a8a: 697b ldr r3, [r7, #20]
  46204. 8013a8c: 687a ldr r2, [r7, #4]
  46205. 8013a8e: 605a str r2, [r3, #4]
  46206. if (type == osTimerOnce) {
  46207. 8013a90: 7afb ldrb r3, [r7, #11]
  46208. 8013a92: 2b00 cmp r3, #0
  46209. 8013a94: d102 bne.n 8013a9c <osTimerNew+0x4c>
  46210. reload = pdFALSE;
  46211. 8013a96: 2300 movs r3, #0
  46212. 8013a98: 61fb str r3, [r7, #28]
  46213. 8013a9a: e001 b.n 8013aa0 <osTimerNew+0x50>
  46214. } else {
  46215. reload = pdTRUE;
  46216. 8013a9c: 2301 movs r3, #1
  46217. 8013a9e: 61fb str r3, [r7, #28]
  46218. }
  46219. mem = -1;
  46220. 8013aa0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46221. 8013aa4: 61bb str r3, [r7, #24]
  46222. name = NULL;
  46223. 8013aa6: 2300 movs r3, #0
  46224. 8013aa8: 627b str r3, [r7, #36] @ 0x24
  46225. if (attr != NULL) {
  46226. 8013aaa: 683b ldr r3, [r7, #0]
  46227. 8013aac: 2b00 cmp r3, #0
  46228. 8013aae: d01c beq.n 8013aea <osTimerNew+0x9a>
  46229. if (attr->name != NULL) {
  46230. 8013ab0: 683b ldr r3, [r7, #0]
  46231. 8013ab2: 681b ldr r3, [r3, #0]
  46232. 8013ab4: 2b00 cmp r3, #0
  46233. 8013ab6: d002 beq.n 8013abe <osTimerNew+0x6e>
  46234. name = attr->name;
  46235. 8013ab8: 683b ldr r3, [r7, #0]
  46236. 8013aba: 681b ldr r3, [r3, #0]
  46237. 8013abc: 627b str r3, [r7, #36] @ 0x24
  46238. }
  46239. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  46240. 8013abe: 683b ldr r3, [r7, #0]
  46241. 8013ac0: 689b ldr r3, [r3, #8]
  46242. 8013ac2: 2b00 cmp r3, #0
  46243. 8013ac4: d006 beq.n 8013ad4 <osTimerNew+0x84>
  46244. 8013ac6: 683b ldr r3, [r7, #0]
  46245. 8013ac8: 68db ldr r3, [r3, #12]
  46246. 8013aca: 2b2b cmp r3, #43 @ 0x2b
  46247. 8013acc: d902 bls.n 8013ad4 <osTimerNew+0x84>
  46248. mem = 1;
  46249. 8013ace: 2301 movs r3, #1
  46250. 8013ad0: 61bb str r3, [r7, #24]
  46251. 8013ad2: e00c b.n 8013aee <osTimerNew+0x9e>
  46252. }
  46253. else {
  46254. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  46255. 8013ad4: 683b ldr r3, [r7, #0]
  46256. 8013ad6: 689b ldr r3, [r3, #8]
  46257. 8013ad8: 2b00 cmp r3, #0
  46258. 8013ada: d108 bne.n 8013aee <osTimerNew+0x9e>
  46259. 8013adc: 683b ldr r3, [r7, #0]
  46260. 8013ade: 68db ldr r3, [r3, #12]
  46261. 8013ae0: 2b00 cmp r3, #0
  46262. 8013ae2: d104 bne.n 8013aee <osTimerNew+0x9e>
  46263. mem = 0;
  46264. 8013ae4: 2300 movs r3, #0
  46265. 8013ae6: 61bb str r3, [r7, #24]
  46266. 8013ae8: e001 b.n 8013aee <osTimerNew+0x9e>
  46267. }
  46268. }
  46269. }
  46270. else {
  46271. mem = 0;
  46272. 8013aea: 2300 movs r3, #0
  46273. 8013aec: 61bb str r3, [r7, #24]
  46274. }
  46275. if (mem == 1) {
  46276. 8013aee: 69bb ldr r3, [r7, #24]
  46277. 8013af0: 2b01 cmp r3, #1
  46278. 8013af2: d10c bne.n 8013b0e <osTimerNew+0xbe>
  46279. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46280. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  46281. 8013af4: 683b ldr r3, [r7, #0]
  46282. 8013af6: 689b ldr r3, [r3, #8]
  46283. 8013af8: 9301 str r3, [sp, #4]
  46284. 8013afa: 4b12 ldr r3, [pc, #72] @ (8013b44 <osTimerNew+0xf4>)
  46285. 8013afc: 9300 str r3, [sp, #0]
  46286. 8013afe: 697b ldr r3, [r7, #20]
  46287. 8013b00: 69fa ldr r2, [r7, #28]
  46288. 8013b02: 2101 movs r1, #1
  46289. 8013b04: 6a78 ldr r0, [r7, #36] @ 0x24
  46290. 8013b06: f003 f81a bl 8016b3e <xTimerCreateStatic>
  46291. 8013b0a: 6238 str r0, [r7, #32]
  46292. 8013b0c: e00b b.n 8013b26 <osTimerNew+0xd6>
  46293. #endif
  46294. }
  46295. else {
  46296. if (mem == 0) {
  46297. 8013b0e: 69bb ldr r3, [r7, #24]
  46298. 8013b10: 2b00 cmp r3, #0
  46299. 8013b12: d108 bne.n 8013b26 <osTimerNew+0xd6>
  46300. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46301. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  46302. 8013b14: 4b0b ldr r3, [pc, #44] @ (8013b44 <osTimerNew+0xf4>)
  46303. 8013b16: 9300 str r3, [sp, #0]
  46304. 8013b18: 697b ldr r3, [r7, #20]
  46305. 8013b1a: 69fa ldr r2, [r7, #28]
  46306. 8013b1c: 2101 movs r1, #1
  46307. 8013b1e: 6a78 ldr r0, [r7, #36] @ 0x24
  46308. 8013b20: f002 ffec bl 8016afc <xTimerCreate>
  46309. 8013b24: 6238 str r0, [r7, #32]
  46310. #endif
  46311. }
  46312. }
  46313. if ((hTimer == NULL) && (callb != NULL)) {
  46314. 8013b26: 6a3b ldr r3, [r7, #32]
  46315. 8013b28: 2b00 cmp r3, #0
  46316. 8013b2a: d105 bne.n 8013b38 <osTimerNew+0xe8>
  46317. 8013b2c: 697b ldr r3, [r7, #20]
  46318. 8013b2e: 2b00 cmp r3, #0
  46319. 8013b30: d002 beq.n 8013b38 <osTimerNew+0xe8>
  46320. vPortFree (callb);
  46321. 8013b32: 6978 ldr r0, [r7, #20]
  46322. 8013b34: f003 ff00 bl 8017938 <vPortFree>
  46323. }
  46324. }
  46325. }
  46326. return ((osTimerId_t)hTimer);
  46327. 8013b38: 6a3b ldr r3, [r7, #32]
  46328. }
  46329. 8013b3a: 4618 mov r0, r3
  46330. 8013b3c: 3728 adds r7, #40 @ 0x28
  46331. 8013b3e: 46bd mov sp, r7
  46332. 8013b40: bd80 pop {r7, pc}
  46333. 8013b42: bf00 nop
  46334. 8013b44: 08013a25 .word 0x08013a25
  46335. 08013b48 <osTimerStart>:
  46336. }
  46337. return (p);
  46338. }
  46339. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  46340. 8013b48: b580 push {r7, lr}
  46341. 8013b4a: b088 sub sp, #32
  46342. 8013b4c: af02 add r7, sp, #8
  46343. 8013b4e: 6078 str r0, [r7, #4]
  46344. 8013b50: 6039 str r1, [r7, #0]
  46345. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  46346. 8013b52: 687b ldr r3, [r7, #4]
  46347. 8013b54: 613b str r3, [r7, #16]
  46348. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46349. 8013b56: f3ef 8305 mrs r3, IPSR
  46350. 8013b5a: 60fb str r3, [r7, #12]
  46351. return(result);
  46352. 8013b5c: 68fb ldr r3, [r7, #12]
  46353. osStatus_t stat;
  46354. if (IS_IRQ()) {
  46355. 8013b5e: 2b00 cmp r3, #0
  46356. 8013b60: d003 beq.n 8013b6a <osTimerStart+0x22>
  46357. stat = osErrorISR;
  46358. 8013b62: f06f 0305 mvn.w r3, #5
  46359. 8013b66: 617b str r3, [r7, #20]
  46360. 8013b68: e017 b.n 8013b9a <osTimerStart+0x52>
  46361. }
  46362. else if (hTimer == NULL) {
  46363. 8013b6a: 693b ldr r3, [r7, #16]
  46364. 8013b6c: 2b00 cmp r3, #0
  46365. 8013b6e: d103 bne.n 8013b78 <osTimerStart+0x30>
  46366. stat = osErrorParameter;
  46367. 8013b70: f06f 0303 mvn.w r3, #3
  46368. 8013b74: 617b str r3, [r7, #20]
  46369. 8013b76: e010 b.n 8013b9a <osTimerStart+0x52>
  46370. }
  46371. else {
  46372. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  46373. 8013b78: 2300 movs r3, #0
  46374. 8013b7a: 9300 str r3, [sp, #0]
  46375. 8013b7c: 2300 movs r3, #0
  46376. 8013b7e: 683a ldr r2, [r7, #0]
  46377. 8013b80: 2104 movs r1, #4
  46378. 8013b82: 6938 ldr r0, [r7, #16]
  46379. 8013b84: f003 f858 bl 8016c38 <xTimerGenericCommand>
  46380. 8013b88: 4603 mov r3, r0
  46381. 8013b8a: 2b01 cmp r3, #1
  46382. 8013b8c: d102 bne.n 8013b94 <osTimerStart+0x4c>
  46383. stat = osOK;
  46384. 8013b8e: 2300 movs r3, #0
  46385. 8013b90: 617b str r3, [r7, #20]
  46386. 8013b92: e002 b.n 8013b9a <osTimerStart+0x52>
  46387. } else {
  46388. stat = osErrorResource;
  46389. 8013b94: f06f 0302 mvn.w r3, #2
  46390. 8013b98: 617b str r3, [r7, #20]
  46391. }
  46392. }
  46393. return (stat);
  46394. 8013b9a: 697b ldr r3, [r7, #20]
  46395. }
  46396. 8013b9c: 4618 mov r0, r3
  46397. 8013b9e: 3718 adds r7, #24
  46398. 8013ba0: 46bd mov sp, r7
  46399. 8013ba2: bd80 pop {r7, pc}
  46400. 08013ba4 <osTimerStop>:
  46401. osStatus_t osTimerStop (osTimerId_t timer_id) {
  46402. 8013ba4: b580 push {r7, lr}
  46403. 8013ba6: b088 sub sp, #32
  46404. 8013ba8: af02 add r7, sp, #8
  46405. 8013baa: 6078 str r0, [r7, #4]
  46406. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  46407. 8013bac: 687b ldr r3, [r7, #4]
  46408. 8013bae: 613b str r3, [r7, #16]
  46409. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46410. 8013bb0: f3ef 8305 mrs r3, IPSR
  46411. 8013bb4: 60fb str r3, [r7, #12]
  46412. return(result);
  46413. 8013bb6: 68fb ldr r3, [r7, #12]
  46414. osStatus_t stat;
  46415. if (IS_IRQ()) {
  46416. 8013bb8: 2b00 cmp r3, #0
  46417. 8013bba: d003 beq.n 8013bc4 <osTimerStop+0x20>
  46418. stat = osErrorISR;
  46419. 8013bbc: f06f 0305 mvn.w r3, #5
  46420. 8013bc0: 617b str r3, [r7, #20]
  46421. 8013bc2: e021 b.n 8013c08 <osTimerStop+0x64>
  46422. }
  46423. else if (hTimer == NULL) {
  46424. 8013bc4: 693b ldr r3, [r7, #16]
  46425. 8013bc6: 2b00 cmp r3, #0
  46426. 8013bc8: d103 bne.n 8013bd2 <osTimerStop+0x2e>
  46427. stat = osErrorParameter;
  46428. 8013bca: f06f 0303 mvn.w r3, #3
  46429. 8013bce: 617b str r3, [r7, #20]
  46430. 8013bd0: e01a b.n 8013c08 <osTimerStop+0x64>
  46431. }
  46432. else {
  46433. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  46434. 8013bd2: 6938 ldr r0, [r7, #16]
  46435. 8013bd4: f003 fb40 bl 8017258 <xTimerIsTimerActive>
  46436. 8013bd8: 4603 mov r3, r0
  46437. 8013bda: 2b00 cmp r3, #0
  46438. 8013bdc: d103 bne.n 8013be6 <osTimerStop+0x42>
  46439. stat = osErrorResource;
  46440. 8013bde: f06f 0302 mvn.w r3, #2
  46441. 8013be2: 617b str r3, [r7, #20]
  46442. 8013be4: e010 b.n 8013c08 <osTimerStop+0x64>
  46443. }
  46444. else {
  46445. if (xTimerStop (hTimer, 0) == pdPASS) {
  46446. 8013be6: 2300 movs r3, #0
  46447. 8013be8: 9300 str r3, [sp, #0]
  46448. 8013bea: 2300 movs r3, #0
  46449. 8013bec: 2200 movs r2, #0
  46450. 8013bee: 2103 movs r1, #3
  46451. 8013bf0: 6938 ldr r0, [r7, #16]
  46452. 8013bf2: f003 f821 bl 8016c38 <xTimerGenericCommand>
  46453. 8013bf6: 4603 mov r3, r0
  46454. 8013bf8: 2b01 cmp r3, #1
  46455. 8013bfa: d102 bne.n 8013c02 <osTimerStop+0x5e>
  46456. stat = osOK;
  46457. 8013bfc: 2300 movs r3, #0
  46458. 8013bfe: 617b str r3, [r7, #20]
  46459. 8013c00: e002 b.n 8013c08 <osTimerStop+0x64>
  46460. } else {
  46461. stat = osError;
  46462. 8013c02: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46463. 8013c06: 617b str r3, [r7, #20]
  46464. }
  46465. }
  46466. }
  46467. return (stat);
  46468. 8013c08: 697b ldr r3, [r7, #20]
  46469. }
  46470. 8013c0a: 4618 mov r0, r3
  46471. 8013c0c: 3718 adds r7, #24
  46472. 8013c0e: 46bd mov sp, r7
  46473. 8013c10: bd80 pop {r7, pc}
  46474. 08013c12 <osMutexNew>:
  46475. }
  46476. /*---------------------------------------------------------------------------*/
  46477. #if (configUSE_OS2_MUTEX == 1)
  46478. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  46479. 8013c12: b580 push {r7, lr}
  46480. 8013c14: b088 sub sp, #32
  46481. 8013c16: af00 add r7, sp, #0
  46482. 8013c18: 6078 str r0, [r7, #4]
  46483. int32_t mem;
  46484. #if (configQUEUE_REGISTRY_SIZE > 0)
  46485. const char *name;
  46486. #endif
  46487. hMutex = NULL;
  46488. 8013c1a: 2300 movs r3, #0
  46489. 8013c1c: 61fb str r3, [r7, #28]
  46490. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46491. 8013c1e: f3ef 8305 mrs r3, IPSR
  46492. 8013c22: 60bb str r3, [r7, #8]
  46493. return(result);
  46494. 8013c24: 68bb ldr r3, [r7, #8]
  46495. if (!IS_IRQ()) {
  46496. 8013c26: 2b00 cmp r3, #0
  46497. 8013c28: d174 bne.n 8013d14 <osMutexNew+0x102>
  46498. if (attr != NULL) {
  46499. 8013c2a: 687b ldr r3, [r7, #4]
  46500. 8013c2c: 2b00 cmp r3, #0
  46501. 8013c2e: d003 beq.n 8013c38 <osMutexNew+0x26>
  46502. type = attr->attr_bits;
  46503. 8013c30: 687b ldr r3, [r7, #4]
  46504. 8013c32: 685b ldr r3, [r3, #4]
  46505. 8013c34: 61bb str r3, [r7, #24]
  46506. 8013c36: e001 b.n 8013c3c <osMutexNew+0x2a>
  46507. } else {
  46508. type = 0U;
  46509. 8013c38: 2300 movs r3, #0
  46510. 8013c3a: 61bb str r3, [r7, #24]
  46511. }
  46512. if ((type & osMutexRecursive) == osMutexRecursive) {
  46513. 8013c3c: 69bb ldr r3, [r7, #24]
  46514. 8013c3e: f003 0301 and.w r3, r3, #1
  46515. 8013c42: 2b00 cmp r3, #0
  46516. 8013c44: d002 beq.n 8013c4c <osMutexNew+0x3a>
  46517. rmtx = 1U;
  46518. 8013c46: 2301 movs r3, #1
  46519. 8013c48: 617b str r3, [r7, #20]
  46520. 8013c4a: e001 b.n 8013c50 <osMutexNew+0x3e>
  46521. } else {
  46522. rmtx = 0U;
  46523. 8013c4c: 2300 movs r3, #0
  46524. 8013c4e: 617b str r3, [r7, #20]
  46525. }
  46526. if ((type & osMutexRobust) != osMutexRobust) {
  46527. 8013c50: 69bb ldr r3, [r7, #24]
  46528. 8013c52: f003 0308 and.w r3, r3, #8
  46529. 8013c56: 2b00 cmp r3, #0
  46530. 8013c58: d15c bne.n 8013d14 <osMutexNew+0x102>
  46531. mem = -1;
  46532. 8013c5a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46533. 8013c5e: 613b str r3, [r7, #16]
  46534. if (attr != NULL) {
  46535. 8013c60: 687b ldr r3, [r7, #4]
  46536. 8013c62: 2b00 cmp r3, #0
  46537. 8013c64: d015 beq.n 8013c92 <osMutexNew+0x80>
  46538. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  46539. 8013c66: 687b ldr r3, [r7, #4]
  46540. 8013c68: 689b ldr r3, [r3, #8]
  46541. 8013c6a: 2b00 cmp r3, #0
  46542. 8013c6c: d006 beq.n 8013c7c <osMutexNew+0x6a>
  46543. 8013c6e: 687b ldr r3, [r7, #4]
  46544. 8013c70: 68db ldr r3, [r3, #12]
  46545. 8013c72: 2b4f cmp r3, #79 @ 0x4f
  46546. 8013c74: d902 bls.n 8013c7c <osMutexNew+0x6a>
  46547. mem = 1;
  46548. 8013c76: 2301 movs r3, #1
  46549. 8013c78: 613b str r3, [r7, #16]
  46550. 8013c7a: e00c b.n 8013c96 <osMutexNew+0x84>
  46551. }
  46552. else {
  46553. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  46554. 8013c7c: 687b ldr r3, [r7, #4]
  46555. 8013c7e: 689b ldr r3, [r3, #8]
  46556. 8013c80: 2b00 cmp r3, #0
  46557. 8013c82: d108 bne.n 8013c96 <osMutexNew+0x84>
  46558. 8013c84: 687b ldr r3, [r7, #4]
  46559. 8013c86: 68db ldr r3, [r3, #12]
  46560. 8013c88: 2b00 cmp r3, #0
  46561. 8013c8a: d104 bne.n 8013c96 <osMutexNew+0x84>
  46562. mem = 0;
  46563. 8013c8c: 2300 movs r3, #0
  46564. 8013c8e: 613b str r3, [r7, #16]
  46565. 8013c90: e001 b.n 8013c96 <osMutexNew+0x84>
  46566. }
  46567. }
  46568. }
  46569. else {
  46570. mem = 0;
  46571. 8013c92: 2300 movs r3, #0
  46572. 8013c94: 613b str r3, [r7, #16]
  46573. }
  46574. if (mem == 1) {
  46575. 8013c96: 693b ldr r3, [r7, #16]
  46576. 8013c98: 2b01 cmp r3, #1
  46577. 8013c9a: d112 bne.n 8013cc2 <osMutexNew+0xb0>
  46578. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46579. if (rmtx != 0U) {
  46580. 8013c9c: 697b ldr r3, [r7, #20]
  46581. 8013c9e: 2b00 cmp r3, #0
  46582. 8013ca0: d007 beq.n 8013cb2 <osMutexNew+0xa0>
  46583. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46584. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  46585. 8013ca2: 687b ldr r3, [r7, #4]
  46586. 8013ca4: 689b ldr r3, [r3, #8]
  46587. 8013ca6: 4619 mov r1, r3
  46588. 8013ca8: 2004 movs r0, #4
  46589. 8013caa: f000 fc50 bl 801454e <xQueueCreateMutexStatic>
  46590. 8013cae: 61f8 str r0, [r7, #28]
  46591. 8013cb0: e016 b.n 8013ce0 <osMutexNew+0xce>
  46592. #endif
  46593. }
  46594. else {
  46595. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  46596. 8013cb2: 687b ldr r3, [r7, #4]
  46597. 8013cb4: 689b ldr r3, [r3, #8]
  46598. 8013cb6: 4619 mov r1, r3
  46599. 8013cb8: 2001 movs r0, #1
  46600. 8013cba: f000 fc48 bl 801454e <xQueueCreateMutexStatic>
  46601. 8013cbe: 61f8 str r0, [r7, #28]
  46602. 8013cc0: e00e b.n 8013ce0 <osMutexNew+0xce>
  46603. }
  46604. #endif
  46605. }
  46606. else {
  46607. if (mem == 0) {
  46608. 8013cc2: 693b ldr r3, [r7, #16]
  46609. 8013cc4: 2b00 cmp r3, #0
  46610. 8013cc6: d10b bne.n 8013ce0 <osMutexNew+0xce>
  46611. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46612. if (rmtx != 0U) {
  46613. 8013cc8: 697b ldr r3, [r7, #20]
  46614. 8013cca: 2b00 cmp r3, #0
  46615. 8013ccc: d004 beq.n 8013cd8 <osMutexNew+0xc6>
  46616. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46617. hMutex = xSemaphoreCreateRecursiveMutex ();
  46618. 8013cce: 2004 movs r0, #4
  46619. 8013cd0: f000 fc25 bl 801451e <xQueueCreateMutex>
  46620. 8013cd4: 61f8 str r0, [r7, #28]
  46621. 8013cd6: e003 b.n 8013ce0 <osMutexNew+0xce>
  46622. #endif
  46623. } else {
  46624. hMutex = xSemaphoreCreateMutex ();
  46625. 8013cd8: 2001 movs r0, #1
  46626. 8013cda: f000 fc20 bl 801451e <xQueueCreateMutex>
  46627. 8013cde: 61f8 str r0, [r7, #28]
  46628. #endif
  46629. }
  46630. }
  46631. #if (configQUEUE_REGISTRY_SIZE > 0)
  46632. if (hMutex != NULL) {
  46633. 8013ce0: 69fb ldr r3, [r7, #28]
  46634. 8013ce2: 2b00 cmp r3, #0
  46635. 8013ce4: d00c beq.n 8013d00 <osMutexNew+0xee>
  46636. if (attr != NULL) {
  46637. 8013ce6: 687b ldr r3, [r7, #4]
  46638. 8013ce8: 2b00 cmp r3, #0
  46639. 8013cea: d003 beq.n 8013cf4 <osMutexNew+0xe2>
  46640. name = attr->name;
  46641. 8013cec: 687b ldr r3, [r7, #4]
  46642. 8013cee: 681b ldr r3, [r3, #0]
  46643. 8013cf0: 60fb str r3, [r7, #12]
  46644. 8013cf2: e001 b.n 8013cf8 <osMutexNew+0xe6>
  46645. } else {
  46646. name = NULL;
  46647. 8013cf4: 2300 movs r3, #0
  46648. 8013cf6: 60fb str r3, [r7, #12]
  46649. }
  46650. vQueueAddToRegistry (hMutex, name);
  46651. 8013cf8: 68f9 ldr r1, [r7, #12]
  46652. 8013cfa: 69f8 ldr r0, [r7, #28]
  46653. 8013cfc: f001 f9ea bl 80150d4 <vQueueAddToRegistry>
  46654. }
  46655. #endif
  46656. if ((hMutex != NULL) && (rmtx != 0U)) {
  46657. 8013d00: 69fb ldr r3, [r7, #28]
  46658. 8013d02: 2b00 cmp r3, #0
  46659. 8013d04: d006 beq.n 8013d14 <osMutexNew+0x102>
  46660. 8013d06: 697b ldr r3, [r7, #20]
  46661. 8013d08: 2b00 cmp r3, #0
  46662. 8013d0a: d003 beq.n 8013d14 <osMutexNew+0x102>
  46663. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  46664. 8013d0c: 69fb ldr r3, [r7, #28]
  46665. 8013d0e: f043 0301 orr.w r3, r3, #1
  46666. 8013d12: 61fb str r3, [r7, #28]
  46667. }
  46668. }
  46669. }
  46670. return ((osMutexId_t)hMutex);
  46671. 8013d14: 69fb ldr r3, [r7, #28]
  46672. }
  46673. 8013d16: 4618 mov r0, r3
  46674. 8013d18: 3720 adds r7, #32
  46675. 8013d1a: 46bd mov sp, r7
  46676. 8013d1c: bd80 pop {r7, pc}
  46677. 08013d1e <osMutexAcquire>:
  46678. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  46679. 8013d1e: b580 push {r7, lr}
  46680. 8013d20: b086 sub sp, #24
  46681. 8013d22: af00 add r7, sp, #0
  46682. 8013d24: 6078 str r0, [r7, #4]
  46683. 8013d26: 6039 str r1, [r7, #0]
  46684. SemaphoreHandle_t hMutex;
  46685. osStatus_t stat;
  46686. uint32_t rmtx;
  46687. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46688. 8013d28: 687b ldr r3, [r7, #4]
  46689. 8013d2a: f023 0301 bic.w r3, r3, #1
  46690. 8013d2e: 613b str r3, [r7, #16]
  46691. rmtx = (uint32_t)mutex_id & 1U;
  46692. 8013d30: 687b ldr r3, [r7, #4]
  46693. 8013d32: f003 0301 and.w r3, r3, #1
  46694. 8013d36: 60fb str r3, [r7, #12]
  46695. stat = osOK;
  46696. 8013d38: 2300 movs r3, #0
  46697. 8013d3a: 617b str r3, [r7, #20]
  46698. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46699. 8013d3c: f3ef 8305 mrs r3, IPSR
  46700. 8013d40: 60bb str r3, [r7, #8]
  46701. return(result);
  46702. 8013d42: 68bb ldr r3, [r7, #8]
  46703. if (IS_IRQ()) {
  46704. 8013d44: 2b00 cmp r3, #0
  46705. 8013d46: d003 beq.n 8013d50 <osMutexAcquire+0x32>
  46706. stat = osErrorISR;
  46707. 8013d48: f06f 0305 mvn.w r3, #5
  46708. 8013d4c: 617b str r3, [r7, #20]
  46709. 8013d4e: e02c b.n 8013daa <osMutexAcquire+0x8c>
  46710. }
  46711. else if (hMutex == NULL) {
  46712. 8013d50: 693b ldr r3, [r7, #16]
  46713. 8013d52: 2b00 cmp r3, #0
  46714. 8013d54: d103 bne.n 8013d5e <osMutexAcquire+0x40>
  46715. stat = osErrorParameter;
  46716. 8013d56: f06f 0303 mvn.w r3, #3
  46717. 8013d5a: 617b str r3, [r7, #20]
  46718. 8013d5c: e025 b.n 8013daa <osMutexAcquire+0x8c>
  46719. }
  46720. else {
  46721. if (rmtx != 0U) {
  46722. 8013d5e: 68fb ldr r3, [r7, #12]
  46723. 8013d60: 2b00 cmp r3, #0
  46724. 8013d62: d011 beq.n 8013d88 <osMutexAcquire+0x6a>
  46725. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46726. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  46727. 8013d64: 6839 ldr r1, [r7, #0]
  46728. 8013d66: 6938 ldr r0, [r7, #16]
  46729. 8013d68: f000 fc41 bl 80145ee <xQueueTakeMutexRecursive>
  46730. 8013d6c: 4603 mov r3, r0
  46731. 8013d6e: 2b01 cmp r3, #1
  46732. 8013d70: d01b beq.n 8013daa <osMutexAcquire+0x8c>
  46733. if (timeout != 0U) {
  46734. 8013d72: 683b ldr r3, [r7, #0]
  46735. 8013d74: 2b00 cmp r3, #0
  46736. 8013d76: d003 beq.n 8013d80 <osMutexAcquire+0x62>
  46737. stat = osErrorTimeout;
  46738. 8013d78: f06f 0301 mvn.w r3, #1
  46739. 8013d7c: 617b str r3, [r7, #20]
  46740. 8013d7e: e014 b.n 8013daa <osMutexAcquire+0x8c>
  46741. } else {
  46742. stat = osErrorResource;
  46743. 8013d80: f06f 0302 mvn.w r3, #2
  46744. 8013d84: 617b str r3, [r7, #20]
  46745. 8013d86: e010 b.n 8013daa <osMutexAcquire+0x8c>
  46746. }
  46747. }
  46748. #endif
  46749. }
  46750. else {
  46751. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  46752. 8013d88: 6839 ldr r1, [r7, #0]
  46753. 8013d8a: 6938 ldr r0, [r7, #16]
  46754. 8013d8c: f000 fee8 bl 8014b60 <xQueueSemaphoreTake>
  46755. 8013d90: 4603 mov r3, r0
  46756. 8013d92: 2b01 cmp r3, #1
  46757. 8013d94: d009 beq.n 8013daa <osMutexAcquire+0x8c>
  46758. if (timeout != 0U) {
  46759. 8013d96: 683b ldr r3, [r7, #0]
  46760. 8013d98: 2b00 cmp r3, #0
  46761. 8013d9a: d003 beq.n 8013da4 <osMutexAcquire+0x86>
  46762. stat = osErrorTimeout;
  46763. 8013d9c: f06f 0301 mvn.w r3, #1
  46764. 8013da0: 617b str r3, [r7, #20]
  46765. 8013da2: e002 b.n 8013daa <osMutexAcquire+0x8c>
  46766. } else {
  46767. stat = osErrorResource;
  46768. 8013da4: f06f 0302 mvn.w r3, #2
  46769. 8013da8: 617b str r3, [r7, #20]
  46770. }
  46771. }
  46772. }
  46773. }
  46774. return (stat);
  46775. 8013daa: 697b ldr r3, [r7, #20]
  46776. }
  46777. 8013dac: 4618 mov r0, r3
  46778. 8013dae: 3718 adds r7, #24
  46779. 8013db0: 46bd mov sp, r7
  46780. 8013db2: bd80 pop {r7, pc}
  46781. 08013db4 <osMutexRelease>:
  46782. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  46783. 8013db4: b580 push {r7, lr}
  46784. 8013db6: b086 sub sp, #24
  46785. 8013db8: af00 add r7, sp, #0
  46786. 8013dba: 6078 str r0, [r7, #4]
  46787. SemaphoreHandle_t hMutex;
  46788. osStatus_t stat;
  46789. uint32_t rmtx;
  46790. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46791. 8013dbc: 687b ldr r3, [r7, #4]
  46792. 8013dbe: f023 0301 bic.w r3, r3, #1
  46793. 8013dc2: 613b str r3, [r7, #16]
  46794. rmtx = (uint32_t)mutex_id & 1U;
  46795. 8013dc4: 687b ldr r3, [r7, #4]
  46796. 8013dc6: f003 0301 and.w r3, r3, #1
  46797. 8013dca: 60fb str r3, [r7, #12]
  46798. stat = osOK;
  46799. 8013dcc: 2300 movs r3, #0
  46800. 8013dce: 617b str r3, [r7, #20]
  46801. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46802. 8013dd0: f3ef 8305 mrs r3, IPSR
  46803. 8013dd4: 60bb str r3, [r7, #8]
  46804. return(result);
  46805. 8013dd6: 68bb ldr r3, [r7, #8]
  46806. if (IS_IRQ()) {
  46807. 8013dd8: 2b00 cmp r3, #0
  46808. 8013dda: d003 beq.n 8013de4 <osMutexRelease+0x30>
  46809. stat = osErrorISR;
  46810. 8013ddc: f06f 0305 mvn.w r3, #5
  46811. 8013de0: 617b str r3, [r7, #20]
  46812. 8013de2: e01f b.n 8013e24 <osMutexRelease+0x70>
  46813. }
  46814. else if (hMutex == NULL) {
  46815. 8013de4: 693b ldr r3, [r7, #16]
  46816. 8013de6: 2b00 cmp r3, #0
  46817. 8013de8: d103 bne.n 8013df2 <osMutexRelease+0x3e>
  46818. stat = osErrorParameter;
  46819. 8013dea: f06f 0303 mvn.w r3, #3
  46820. 8013dee: 617b str r3, [r7, #20]
  46821. 8013df0: e018 b.n 8013e24 <osMutexRelease+0x70>
  46822. }
  46823. else {
  46824. if (rmtx != 0U) {
  46825. 8013df2: 68fb ldr r3, [r7, #12]
  46826. 8013df4: 2b00 cmp r3, #0
  46827. 8013df6: d009 beq.n 8013e0c <osMutexRelease+0x58>
  46828. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46829. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  46830. 8013df8: 6938 ldr r0, [r7, #16]
  46831. 8013dfa: f000 fbc3 bl 8014584 <xQueueGiveMutexRecursive>
  46832. 8013dfe: 4603 mov r3, r0
  46833. 8013e00: 2b01 cmp r3, #1
  46834. 8013e02: d00f beq.n 8013e24 <osMutexRelease+0x70>
  46835. stat = osErrorResource;
  46836. 8013e04: f06f 0302 mvn.w r3, #2
  46837. 8013e08: 617b str r3, [r7, #20]
  46838. 8013e0a: e00b b.n 8013e24 <osMutexRelease+0x70>
  46839. }
  46840. #endif
  46841. }
  46842. else {
  46843. if (xSemaphoreGive (hMutex) != pdPASS) {
  46844. 8013e0c: 2300 movs r3, #0
  46845. 8013e0e: 2200 movs r2, #0
  46846. 8013e10: 2100 movs r1, #0
  46847. 8013e12: 6938 ldr r0, [r7, #16]
  46848. 8013e14: f000 fc22 bl 801465c <xQueueGenericSend>
  46849. 8013e18: 4603 mov r3, r0
  46850. 8013e1a: 2b01 cmp r3, #1
  46851. 8013e1c: d002 beq.n 8013e24 <osMutexRelease+0x70>
  46852. stat = osErrorResource;
  46853. 8013e1e: f06f 0302 mvn.w r3, #2
  46854. 8013e22: 617b str r3, [r7, #20]
  46855. }
  46856. }
  46857. }
  46858. return (stat);
  46859. 8013e24: 697b ldr r3, [r7, #20]
  46860. }
  46861. 8013e26: 4618 mov r0, r3
  46862. 8013e28: 3718 adds r7, #24
  46863. 8013e2a: 46bd mov sp, r7
  46864. 8013e2c: bd80 pop {r7, pc}
  46865. 08013e2e <osMessageQueueNew>:
  46866. return (stat);
  46867. }
  46868. /*---------------------------------------------------------------------------*/
  46869. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  46870. 8013e2e: b580 push {r7, lr}
  46871. 8013e30: b08a sub sp, #40 @ 0x28
  46872. 8013e32: af02 add r7, sp, #8
  46873. 8013e34: 60f8 str r0, [r7, #12]
  46874. 8013e36: 60b9 str r1, [r7, #8]
  46875. 8013e38: 607a str r2, [r7, #4]
  46876. int32_t mem;
  46877. #if (configQUEUE_REGISTRY_SIZE > 0)
  46878. const char *name;
  46879. #endif
  46880. hQueue = NULL;
  46881. 8013e3a: 2300 movs r3, #0
  46882. 8013e3c: 61fb str r3, [r7, #28]
  46883. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46884. 8013e3e: f3ef 8305 mrs r3, IPSR
  46885. 8013e42: 613b str r3, [r7, #16]
  46886. return(result);
  46887. 8013e44: 693b ldr r3, [r7, #16]
  46888. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  46889. 8013e46: 2b00 cmp r3, #0
  46890. 8013e48: d15f bne.n 8013f0a <osMessageQueueNew+0xdc>
  46891. 8013e4a: 68fb ldr r3, [r7, #12]
  46892. 8013e4c: 2b00 cmp r3, #0
  46893. 8013e4e: d05c beq.n 8013f0a <osMessageQueueNew+0xdc>
  46894. 8013e50: 68bb ldr r3, [r7, #8]
  46895. 8013e52: 2b00 cmp r3, #0
  46896. 8013e54: d059 beq.n 8013f0a <osMessageQueueNew+0xdc>
  46897. mem = -1;
  46898. 8013e56: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46899. 8013e5a: 61bb str r3, [r7, #24]
  46900. if (attr != NULL) {
  46901. 8013e5c: 687b ldr r3, [r7, #4]
  46902. 8013e5e: 2b00 cmp r3, #0
  46903. 8013e60: d029 beq.n 8013eb6 <osMessageQueueNew+0x88>
  46904. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46905. 8013e62: 687b ldr r3, [r7, #4]
  46906. 8013e64: 689b ldr r3, [r3, #8]
  46907. 8013e66: 2b00 cmp r3, #0
  46908. 8013e68: d012 beq.n 8013e90 <osMessageQueueNew+0x62>
  46909. 8013e6a: 687b ldr r3, [r7, #4]
  46910. 8013e6c: 68db ldr r3, [r3, #12]
  46911. 8013e6e: 2b4f cmp r3, #79 @ 0x4f
  46912. 8013e70: d90e bls.n 8013e90 <osMessageQueueNew+0x62>
  46913. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46914. 8013e72: 687b ldr r3, [r7, #4]
  46915. 8013e74: 691b ldr r3, [r3, #16]
  46916. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46917. 8013e76: 2b00 cmp r3, #0
  46918. 8013e78: d00a beq.n 8013e90 <osMessageQueueNew+0x62>
  46919. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46920. 8013e7a: 687b ldr r3, [r7, #4]
  46921. 8013e7c: 695a ldr r2, [r3, #20]
  46922. 8013e7e: 68fb ldr r3, [r7, #12]
  46923. 8013e80: 68b9 ldr r1, [r7, #8]
  46924. 8013e82: fb01 f303 mul.w r3, r1, r3
  46925. 8013e86: 429a cmp r2, r3
  46926. 8013e88: d302 bcc.n 8013e90 <osMessageQueueNew+0x62>
  46927. mem = 1;
  46928. 8013e8a: 2301 movs r3, #1
  46929. 8013e8c: 61bb str r3, [r7, #24]
  46930. 8013e8e: e014 b.n 8013eba <osMessageQueueNew+0x8c>
  46931. }
  46932. else {
  46933. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46934. 8013e90: 687b ldr r3, [r7, #4]
  46935. 8013e92: 689b ldr r3, [r3, #8]
  46936. 8013e94: 2b00 cmp r3, #0
  46937. 8013e96: d110 bne.n 8013eba <osMessageQueueNew+0x8c>
  46938. 8013e98: 687b ldr r3, [r7, #4]
  46939. 8013e9a: 68db ldr r3, [r3, #12]
  46940. 8013e9c: 2b00 cmp r3, #0
  46941. 8013e9e: d10c bne.n 8013eba <osMessageQueueNew+0x8c>
  46942. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46943. 8013ea0: 687b ldr r3, [r7, #4]
  46944. 8013ea2: 691b ldr r3, [r3, #16]
  46945. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46946. 8013ea4: 2b00 cmp r3, #0
  46947. 8013ea6: d108 bne.n 8013eba <osMessageQueueNew+0x8c>
  46948. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46949. 8013ea8: 687b ldr r3, [r7, #4]
  46950. 8013eaa: 695b ldr r3, [r3, #20]
  46951. 8013eac: 2b00 cmp r3, #0
  46952. 8013eae: d104 bne.n 8013eba <osMessageQueueNew+0x8c>
  46953. mem = 0;
  46954. 8013eb0: 2300 movs r3, #0
  46955. 8013eb2: 61bb str r3, [r7, #24]
  46956. 8013eb4: e001 b.n 8013eba <osMessageQueueNew+0x8c>
  46957. }
  46958. }
  46959. }
  46960. else {
  46961. mem = 0;
  46962. 8013eb6: 2300 movs r3, #0
  46963. 8013eb8: 61bb str r3, [r7, #24]
  46964. }
  46965. if (mem == 1) {
  46966. 8013eba: 69bb ldr r3, [r7, #24]
  46967. 8013ebc: 2b01 cmp r3, #1
  46968. 8013ebe: d10b bne.n 8013ed8 <osMessageQueueNew+0xaa>
  46969. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46970. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  46971. 8013ec0: 687b ldr r3, [r7, #4]
  46972. 8013ec2: 691a ldr r2, [r3, #16]
  46973. 8013ec4: 687b ldr r3, [r7, #4]
  46974. 8013ec6: 689b ldr r3, [r3, #8]
  46975. 8013ec8: 2100 movs r1, #0
  46976. 8013eca: 9100 str r1, [sp, #0]
  46977. 8013ecc: 68b9 ldr r1, [r7, #8]
  46978. 8013ece: 68f8 ldr r0, [r7, #12]
  46979. 8013ed0: f000 fa30 bl 8014334 <xQueueGenericCreateStatic>
  46980. 8013ed4: 61f8 str r0, [r7, #28]
  46981. 8013ed6: e008 b.n 8013eea <osMessageQueueNew+0xbc>
  46982. #endif
  46983. }
  46984. else {
  46985. if (mem == 0) {
  46986. 8013ed8: 69bb ldr r3, [r7, #24]
  46987. 8013eda: 2b00 cmp r3, #0
  46988. 8013edc: d105 bne.n 8013eea <osMessageQueueNew+0xbc>
  46989. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46990. hQueue = xQueueCreate (msg_count, msg_size);
  46991. 8013ede: 2200 movs r2, #0
  46992. 8013ee0: 68b9 ldr r1, [r7, #8]
  46993. 8013ee2: 68f8 ldr r0, [r7, #12]
  46994. 8013ee4: f000 faa3 bl 801442e <xQueueGenericCreate>
  46995. 8013ee8: 61f8 str r0, [r7, #28]
  46996. #endif
  46997. }
  46998. }
  46999. #if (configQUEUE_REGISTRY_SIZE > 0)
  47000. if (hQueue != NULL) {
  47001. 8013eea: 69fb ldr r3, [r7, #28]
  47002. 8013eec: 2b00 cmp r3, #0
  47003. 8013eee: d00c beq.n 8013f0a <osMessageQueueNew+0xdc>
  47004. if (attr != NULL) {
  47005. 8013ef0: 687b ldr r3, [r7, #4]
  47006. 8013ef2: 2b00 cmp r3, #0
  47007. 8013ef4: d003 beq.n 8013efe <osMessageQueueNew+0xd0>
  47008. name = attr->name;
  47009. 8013ef6: 687b ldr r3, [r7, #4]
  47010. 8013ef8: 681b ldr r3, [r3, #0]
  47011. 8013efa: 617b str r3, [r7, #20]
  47012. 8013efc: e001 b.n 8013f02 <osMessageQueueNew+0xd4>
  47013. } else {
  47014. name = NULL;
  47015. 8013efe: 2300 movs r3, #0
  47016. 8013f00: 617b str r3, [r7, #20]
  47017. }
  47018. vQueueAddToRegistry (hQueue, name);
  47019. 8013f02: 6979 ldr r1, [r7, #20]
  47020. 8013f04: 69f8 ldr r0, [r7, #28]
  47021. 8013f06: f001 f8e5 bl 80150d4 <vQueueAddToRegistry>
  47022. }
  47023. #endif
  47024. }
  47025. return ((osMessageQueueId_t)hQueue);
  47026. 8013f0a: 69fb ldr r3, [r7, #28]
  47027. }
  47028. 8013f0c: 4618 mov r0, r3
  47029. 8013f0e: 3720 adds r7, #32
  47030. 8013f10: 46bd mov sp, r7
  47031. 8013f12: bd80 pop {r7, pc}
  47032. 08013f14 <osMessageQueuePut>:
  47033. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  47034. 8013f14: b580 push {r7, lr}
  47035. 8013f16: b088 sub sp, #32
  47036. 8013f18: af00 add r7, sp, #0
  47037. 8013f1a: 60f8 str r0, [r7, #12]
  47038. 8013f1c: 60b9 str r1, [r7, #8]
  47039. 8013f1e: 603b str r3, [r7, #0]
  47040. 8013f20: 4613 mov r3, r2
  47041. 8013f22: 71fb strb r3, [r7, #7]
  47042. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47043. 8013f24: 68fb ldr r3, [r7, #12]
  47044. 8013f26: 61bb str r3, [r7, #24]
  47045. osStatus_t stat;
  47046. BaseType_t yield;
  47047. (void)msg_prio; /* Message priority is ignored */
  47048. stat = osOK;
  47049. 8013f28: 2300 movs r3, #0
  47050. 8013f2a: 61fb str r3, [r7, #28]
  47051. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47052. 8013f2c: f3ef 8305 mrs r3, IPSR
  47053. 8013f30: 617b str r3, [r7, #20]
  47054. return(result);
  47055. 8013f32: 697b ldr r3, [r7, #20]
  47056. if (IS_IRQ()) {
  47057. 8013f34: 2b00 cmp r3, #0
  47058. 8013f36: d028 beq.n 8013f8a <osMessageQueuePut+0x76>
  47059. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47060. 8013f38: 69bb ldr r3, [r7, #24]
  47061. 8013f3a: 2b00 cmp r3, #0
  47062. 8013f3c: d005 beq.n 8013f4a <osMessageQueuePut+0x36>
  47063. 8013f3e: 68bb ldr r3, [r7, #8]
  47064. 8013f40: 2b00 cmp r3, #0
  47065. 8013f42: d002 beq.n 8013f4a <osMessageQueuePut+0x36>
  47066. 8013f44: 683b ldr r3, [r7, #0]
  47067. 8013f46: 2b00 cmp r3, #0
  47068. 8013f48: d003 beq.n 8013f52 <osMessageQueuePut+0x3e>
  47069. stat = osErrorParameter;
  47070. 8013f4a: f06f 0303 mvn.w r3, #3
  47071. 8013f4e: 61fb str r3, [r7, #28]
  47072. 8013f50: e038 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47073. }
  47074. else {
  47075. yield = pdFALSE;
  47076. 8013f52: 2300 movs r3, #0
  47077. 8013f54: 613b str r3, [r7, #16]
  47078. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  47079. 8013f56: f107 0210 add.w r2, r7, #16
  47080. 8013f5a: 2300 movs r3, #0
  47081. 8013f5c: 68b9 ldr r1, [r7, #8]
  47082. 8013f5e: 69b8 ldr r0, [r7, #24]
  47083. 8013f60: f000 fc7e bl 8014860 <xQueueGenericSendFromISR>
  47084. 8013f64: 4603 mov r3, r0
  47085. 8013f66: 2b01 cmp r3, #1
  47086. 8013f68: d003 beq.n 8013f72 <osMessageQueuePut+0x5e>
  47087. stat = osErrorResource;
  47088. 8013f6a: f06f 0302 mvn.w r3, #2
  47089. 8013f6e: 61fb str r3, [r7, #28]
  47090. 8013f70: e028 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47091. } else {
  47092. portYIELD_FROM_ISR (yield);
  47093. 8013f72: 693b ldr r3, [r7, #16]
  47094. 8013f74: 2b00 cmp r3, #0
  47095. 8013f76: d025 beq.n 8013fc4 <osMessageQueuePut+0xb0>
  47096. 8013f78: 4b15 ldr r3, [pc, #84] @ (8013fd0 <osMessageQueuePut+0xbc>)
  47097. 8013f7a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47098. 8013f7e: 601a str r2, [r3, #0]
  47099. 8013f80: f3bf 8f4f dsb sy
  47100. 8013f84: f3bf 8f6f isb sy
  47101. 8013f88: e01c b.n 8013fc4 <osMessageQueuePut+0xb0>
  47102. }
  47103. }
  47104. }
  47105. else {
  47106. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  47107. 8013f8a: 69bb ldr r3, [r7, #24]
  47108. 8013f8c: 2b00 cmp r3, #0
  47109. 8013f8e: d002 beq.n 8013f96 <osMessageQueuePut+0x82>
  47110. 8013f90: 68bb ldr r3, [r7, #8]
  47111. 8013f92: 2b00 cmp r3, #0
  47112. 8013f94: d103 bne.n 8013f9e <osMessageQueuePut+0x8a>
  47113. stat = osErrorParameter;
  47114. 8013f96: f06f 0303 mvn.w r3, #3
  47115. 8013f9a: 61fb str r3, [r7, #28]
  47116. 8013f9c: e012 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47117. }
  47118. else {
  47119. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  47120. 8013f9e: 2300 movs r3, #0
  47121. 8013fa0: 683a ldr r2, [r7, #0]
  47122. 8013fa2: 68b9 ldr r1, [r7, #8]
  47123. 8013fa4: 69b8 ldr r0, [r7, #24]
  47124. 8013fa6: f000 fb59 bl 801465c <xQueueGenericSend>
  47125. 8013faa: 4603 mov r3, r0
  47126. 8013fac: 2b01 cmp r3, #1
  47127. 8013fae: d009 beq.n 8013fc4 <osMessageQueuePut+0xb0>
  47128. if (timeout != 0U) {
  47129. 8013fb0: 683b ldr r3, [r7, #0]
  47130. 8013fb2: 2b00 cmp r3, #0
  47131. 8013fb4: d003 beq.n 8013fbe <osMessageQueuePut+0xaa>
  47132. stat = osErrorTimeout;
  47133. 8013fb6: f06f 0301 mvn.w r3, #1
  47134. 8013fba: 61fb str r3, [r7, #28]
  47135. 8013fbc: e002 b.n 8013fc4 <osMessageQueuePut+0xb0>
  47136. } else {
  47137. stat = osErrorResource;
  47138. 8013fbe: f06f 0302 mvn.w r3, #2
  47139. 8013fc2: 61fb str r3, [r7, #28]
  47140. }
  47141. }
  47142. }
  47143. }
  47144. return (stat);
  47145. 8013fc4: 69fb ldr r3, [r7, #28]
  47146. }
  47147. 8013fc6: 4618 mov r0, r3
  47148. 8013fc8: 3720 adds r7, #32
  47149. 8013fca: 46bd mov sp, r7
  47150. 8013fcc: bd80 pop {r7, pc}
  47151. 8013fce: bf00 nop
  47152. 8013fd0: e000ed04 .word 0xe000ed04
  47153. 08013fd4 <osMessageQueueGet>:
  47154. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  47155. 8013fd4: b580 push {r7, lr}
  47156. 8013fd6: b088 sub sp, #32
  47157. 8013fd8: af00 add r7, sp, #0
  47158. 8013fda: 60f8 str r0, [r7, #12]
  47159. 8013fdc: 60b9 str r1, [r7, #8]
  47160. 8013fde: 607a str r2, [r7, #4]
  47161. 8013fe0: 603b str r3, [r7, #0]
  47162. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47163. 8013fe2: 68fb ldr r3, [r7, #12]
  47164. 8013fe4: 61bb str r3, [r7, #24]
  47165. osStatus_t stat;
  47166. BaseType_t yield;
  47167. (void)msg_prio; /* Message priority is ignored */
  47168. stat = osOK;
  47169. 8013fe6: 2300 movs r3, #0
  47170. 8013fe8: 61fb str r3, [r7, #28]
  47171. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47172. 8013fea: f3ef 8305 mrs r3, IPSR
  47173. 8013fee: 617b str r3, [r7, #20]
  47174. return(result);
  47175. 8013ff0: 697b ldr r3, [r7, #20]
  47176. if (IS_IRQ()) {
  47177. 8013ff2: 2b00 cmp r3, #0
  47178. 8013ff4: d028 beq.n 8014048 <osMessageQueueGet+0x74>
  47179. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47180. 8013ff6: 69bb ldr r3, [r7, #24]
  47181. 8013ff8: 2b00 cmp r3, #0
  47182. 8013ffa: d005 beq.n 8014008 <osMessageQueueGet+0x34>
  47183. 8013ffc: 68bb ldr r3, [r7, #8]
  47184. 8013ffe: 2b00 cmp r3, #0
  47185. 8014000: d002 beq.n 8014008 <osMessageQueueGet+0x34>
  47186. 8014002: 683b ldr r3, [r7, #0]
  47187. 8014004: 2b00 cmp r3, #0
  47188. 8014006: d003 beq.n 8014010 <osMessageQueueGet+0x3c>
  47189. stat = osErrorParameter;
  47190. 8014008: f06f 0303 mvn.w r3, #3
  47191. 801400c: 61fb str r3, [r7, #28]
  47192. 801400e: e037 b.n 8014080 <osMessageQueueGet+0xac>
  47193. }
  47194. else {
  47195. yield = pdFALSE;
  47196. 8014010: 2300 movs r3, #0
  47197. 8014012: 613b str r3, [r7, #16]
  47198. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  47199. 8014014: f107 0310 add.w r3, r7, #16
  47200. 8014018: 461a mov r2, r3
  47201. 801401a: 68b9 ldr r1, [r7, #8]
  47202. 801401c: 69b8 ldr r0, [r7, #24]
  47203. 801401e: f000 feaf bl 8014d80 <xQueueReceiveFromISR>
  47204. 8014022: 4603 mov r3, r0
  47205. 8014024: 2b01 cmp r3, #1
  47206. 8014026: d003 beq.n 8014030 <osMessageQueueGet+0x5c>
  47207. stat = osErrorResource;
  47208. 8014028: f06f 0302 mvn.w r3, #2
  47209. 801402c: 61fb str r3, [r7, #28]
  47210. 801402e: e027 b.n 8014080 <osMessageQueueGet+0xac>
  47211. } else {
  47212. portYIELD_FROM_ISR (yield);
  47213. 8014030: 693b ldr r3, [r7, #16]
  47214. 8014032: 2b00 cmp r3, #0
  47215. 8014034: d024 beq.n 8014080 <osMessageQueueGet+0xac>
  47216. 8014036: 4b15 ldr r3, [pc, #84] @ (801408c <osMessageQueueGet+0xb8>)
  47217. 8014038: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47218. 801403c: 601a str r2, [r3, #0]
  47219. 801403e: f3bf 8f4f dsb sy
  47220. 8014042: f3bf 8f6f isb sy
  47221. 8014046: e01b b.n 8014080 <osMessageQueueGet+0xac>
  47222. }
  47223. }
  47224. }
  47225. else {
  47226. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  47227. 8014048: 69bb ldr r3, [r7, #24]
  47228. 801404a: 2b00 cmp r3, #0
  47229. 801404c: d002 beq.n 8014054 <osMessageQueueGet+0x80>
  47230. 801404e: 68bb ldr r3, [r7, #8]
  47231. 8014050: 2b00 cmp r3, #0
  47232. 8014052: d103 bne.n 801405c <osMessageQueueGet+0x88>
  47233. stat = osErrorParameter;
  47234. 8014054: f06f 0303 mvn.w r3, #3
  47235. 8014058: 61fb str r3, [r7, #28]
  47236. 801405a: e011 b.n 8014080 <osMessageQueueGet+0xac>
  47237. }
  47238. else {
  47239. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  47240. 801405c: 683a ldr r2, [r7, #0]
  47241. 801405e: 68b9 ldr r1, [r7, #8]
  47242. 8014060: 69b8 ldr r0, [r7, #24]
  47243. 8014062: f000 fc9b bl 801499c <xQueueReceive>
  47244. 8014066: 4603 mov r3, r0
  47245. 8014068: 2b01 cmp r3, #1
  47246. 801406a: d009 beq.n 8014080 <osMessageQueueGet+0xac>
  47247. if (timeout != 0U) {
  47248. 801406c: 683b ldr r3, [r7, #0]
  47249. 801406e: 2b00 cmp r3, #0
  47250. 8014070: d003 beq.n 801407a <osMessageQueueGet+0xa6>
  47251. stat = osErrorTimeout;
  47252. 8014072: f06f 0301 mvn.w r3, #1
  47253. 8014076: 61fb str r3, [r7, #28]
  47254. 8014078: e002 b.n 8014080 <osMessageQueueGet+0xac>
  47255. } else {
  47256. stat = osErrorResource;
  47257. 801407a: f06f 0302 mvn.w r3, #2
  47258. 801407e: 61fb str r3, [r7, #28]
  47259. }
  47260. }
  47261. }
  47262. }
  47263. return (stat);
  47264. 8014080: 69fb ldr r3, [r7, #28]
  47265. }
  47266. 8014082: 4618 mov r0, r3
  47267. 8014084: 3720 adds r7, #32
  47268. 8014086: 46bd mov sp, r7
  47269. 8014088: bd80 pop {r7, pc}
  47270. 801408a: bf00 nop
  47271. 801408c: e000ed04 .word 0xe000ed04
  47272. 08014090 <vApplicationGetIdleTaskMemory>:
  47273. /*
  47274. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  47275. equals to 1 and is required for static memory allocation support.
  47276. */
  47277. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  47278. 8014090: b480 push {r7}
  47279. 8014092: b085 sub sp, #20
  47280. 8014094: af00 add r7, sp, #0
  47281. 8014096: 60f8 str r0, [r7, #12]
  47282. 8014098: 60b9 str r1, [r7, #8]
  47283. 801409a: 607a str r2, [r7, #4]
  47284. /* Idle task control block and stack */
  47285. static StaticTask_t Idle_TCB;
  47286. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  47287. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  47288. 801409c: 68fb ldr r3, [r7, #12]
  47289. 801409e: 4a07 ldr r2, [pc, #28] @ (80140bc <vApplicationGetIdleTaskMemory+0x2c>)
  47290. 80140a0: 601a str r2, [r3, #0]
  47291. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  47292. 80140a2: 68bb ldr r3, [r7, #8]
  47293. 80140a4: 4a06 ldr r2, [pc, #24] @ (80140c0 <vApplicationGetIdleTaskMemory+0x30>)
  47294. 80140a6: 601a str r2, [r3, #0]
  47295. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  47296. 80140a8: 687b ldr r3, [r7, #4]
  47297. 80140aa: f44f 7200 mov.w r2, #512 @ 0x200
  47298. 80140ae: 601a str r2, [r3, #0]
  47299. }
  47300. 80140b0: bf00 nop
  47301. 80140b2: 3714 adds r7, #20
  47302. 80140b4: 46bd mov sp, r7
  47303. 80140b6: f85d 7b04 ldr.w r7, [sp], #4
  47304. 80140ba: 4770 bx lr
  47305. 80140bc: 24000d04 .word 0x24000d04
  47306. 80140c0: 24000dac .word 0x24000dac
  47307. 080140c4 <vApplicationGetTimerTaskMemory>:
  47308. /*
  47309. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  47310. equals to 1 and is required for static memory allocation support.
  47311. */
  47312. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  47313. 80140c4: b480 push {r7}
  47314. 80140c6: b085 sub sp, #20
  47315. 80140c8: af00 add r7, sp, #0
  47316. 80140ca: 60f8 str r0, [r7, #12]
  47317. 80140cc: 60b9 str r1, [r7, #8]
  47318. 80140ce: 607a str r2, [r7, #4]
  47319. /* Timer task control block and stack */
  47320. static StaticTask_t Timer_TCB;
  47321. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  47322. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  47323. 80140d0: 68fb ldr r3, [r7, #12]
  47324. 80140d2: 4a07 ldr r2, [pc, #28] @ (80140f0 <vApplicationGetTimerTaskMemory+0x2c>)
  47325. 80140d4: 601a str r2, [r3, #0]
  47326. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  47327. 80140d6: 68bb ldr r3, [r7, #8]
  47328. 80140d8: 4a06 ldr r2, [pc, #24] @ (80140f4 <vApplicationGetTimerTaskMemory+0x30>)
  47329. 80140da: 601a str r2, [r3, #0]
  47330. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  47331. 80140dc: 687b ldr r3, [r7, #4]
  47332. 80140de: f44f 6280 mov.w r2, #1024 @ 0x400
  47333. 80140e2: 601a str r2, [r3, #0]
  47334. }
  47335. 80140e4: bf00 nop
  47336. 80140e6: 3714 adds r7, #20
  47337. 80140e8: 46bd mov sp, r7
  47338. 80140ea: f85d 7b04 ldr.w r7, [sp], #4
  47339. 80140ee: 4770 bx lr
  47340. 80140f0: 240015ac .word 0x240015ac
  47341. 80140f4: 24001654 .word 0x24001654
  47342. 080140f8 <vListInitialise>:
  47343. /*-----------------------------------------------------------
  47344. * PUBLIC LIST API documented in list.h
  47345. *----------------------------------------------------------*/
  47346. void vListInitialise( List_t * const pxList )
  47347. {
  47348. 80140f8: b480 push {r7}
  47349. 80140fa: b083 sub sp, #12
  47350. 80140fc: af00 add r7, sp, #0
  47351. 80140fe: 6078 str r0, [r7, #4]
  47352. /* The list structure contains a list item which is used to mark the
  47353. end of the list. To initialise the list the list end is inserted
  47354. as the only list entry. */
  47355. 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. */
  47356. 8014100: 687b ldr r3, [r7, #4]
  47357. 8014102: f103 0208 add.w r2, r3, #8
  47358. 8014106: 687b ldr r3, [r7, #4]
  47359. 8014108: 605a str r2, [r3, #4]
  47360. /* The list end value is the highest possible value in the list to
  47361. ensure it remains at the end of the list. */
  47362. pxList->xListEnd.xItemValue = portMAX_DELAY;
  47363. 801410a: 687b ldr r3, [r7, #4]
  47364. 801410c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  47365. 8014110: 609a str r2, [r3, #8]
  47366. /* The list end next and previous pointers point to itself so we know
  47367. when the list is empty. */
  47368. 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. */
  47369. 8014112: 687b ldr r3, [r7, #4]
  47370. 8014114: f103 0208 add.w r2, r3, #8
  47371. 8014118: 687b ldr r3, [r7, #4]
  47372. 801411a: 60da str r2, [r3, #12]
  47373. 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. */
  47374. 801411c: 687b ldr r3, [r7, #4]
  47375. 801411e: f103 0208 add.w r2, r3, #8
  47376. 8014122: 687b ldr r3, [r7, #4]
  47377. 8014124: 611a str r2, [r3, #16]
  47378. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  47379. 8014126: 687b ldr r3, [r7, #4]
  47380. 8014128: 2200 movs r2, #0
  47381. 801412a: 601a str r2, [r3, #0]
  47382. /* Write known values into the list if
  47383. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  47384. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  47385. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  47386. }
  47387. 801412c: bf00 nop
  47388. 801412e: 370c adds r7, #12
  47389. 8014130: 46bd mov sp, r7
  47390. 8014132: f85d 7b04 ldr.w r7, [sp], #4
  47391. 8014136: 4770 bx lr
  47392. 08014138 <vListInitialiseItem>:
  47393. /*-----------------------------------------------------------*/
  47394. void vListInitialiseItem( ListItem_t * const pxItem )
  47395. {
  47396. 8014138: b480 push {r7}
  47397. 801413a: b083 sub sp, #12
  47398. 801413c: af00 add r7, sp, #0
  47399. 801413e: 6078 str r0, [r7, #4]
  47400. /* Make sure the list item is not recorded as being on a list. */
  47401. pxItem->pxContainer = NULL;
  47402. 8014140: 687b ldr r3, [r7, #4]
  47403. 8014142: 2200 movs r2, #0
  47404. 8014144: 611a str r2, [r3, #16]
  47405. /* Write known values into the list item if
  47406. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  47407. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  47408. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  47409. }
  47410. 8014146: bf00 nop
  47411. 8014148: 370c adds r7, #12
  47412. 801414a: 46bd mov sp, r7
  47413. 801414c: f85d 7b04 ldr.w r7, [sp], #4
  47414. 8014150: 4770 bx lr
  47415. 08014152 <vListInsertEnd>:
  47416. /*-----------------------------------------------------------*/
  47417. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  47418. {
  47419. 8014152: b480 push {r7}
  47420. 8014154: b085 sub sp, #20
  47421. 8014156: af00 add r7, sp, #0
  47422. 8014158: 6078 str r0, [r7, #4]
  47423. 801415a: 6039 str r1, [r7, #0]
  47424. ListItem_t * const pxIndex = pxList->pxIndex;
  47425. 801415c: 687b ldr r3, [r7, #4]
  47426. 801415e: 685b ldr r3, [r3, #4]
  47427. 8014160: 60fb str r3, [r7, #12]
  47428. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  47429. /* Insert a new list item into pxList, but rather than sort the list,
  47430. makes the new list item the last item to be removed by a call to
  47431. listGET_OWNER_OF_NEXT_ENTRY(). */
  47432. pxNewListItem->pxNext = pxIndex;
  47433. 8014162: 683b ldr r3, [r7, #0]
  47434. 8014164: 68fa ldr r2, [r7, #12]
  47435. 8014166: 605a str r2, [r3, #4]
  47436. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  47437. 8014168: 68fb ldr r3, [r7, #12]
  47438. 801416a: 689a ldr r2, [r3, #8]
  47439. 801416c: 683b ldr r3, [r7, #0]
  47440. 801416e: 609a str r2, [r3, #8]
  47441. /* Only used during decision coverage testing. */
  47442. mtCOVERAGE_TEST_DELAY();
  47443. pxIndex->pxPrevious->pxNext = pxNewListItem;
  47444. 8014170: 68fb ldr r3, [r7, #12]
  47445. 8014172: 689b ldr r3, [r3, #8]
  47446. 8014174: 683a ldr r2, [r7, #0]
  47447. 8014176: 605a str r2, [r3, #4]
  47448. pxIndex->pxPrevious = pxNewListItem;
  47449. 8014178: 68fb ldr r3, [r7, #12]
  47450. 801417a: 683a ldr r2, [r7, #0]
  47451. 801417c: 609a str r2, [r3, #8]
  47452. /* Remember which list the item is in. */
  47453. pxNewListItem->pxContainer = pxList;
  47454. 801417e: 683b ldr r3, [r7, #0]
  47455. 8014180: 687a ldr r2, [r7, #4]
  47456. 8014182: 611a str r2, [r3, #16]
  47457. ( pxList->uxNumberOfItems )++;
  47458. 8014184: 687b ldr r3, [r7, #4]
  47459. 8014186: 681b ldr r3, [r3, #0]
  47460. 8014188: 1c5a adds r2, r3, #1
  47461. 801418a: 687b ldr r3, [r7, #4]
  47462. 801418c: 601a str r2, [r3, #0]
  47463. }
  47464. 801418e: bf00 nop
  47465. 8014190: 3714 adds r7, #20
  47466. 8014192: 46bd mov sp, r7
  47467. 8014194: f85d 7b04 ldr.w r7, [sp], #4
  47468. 8014198: 4770 bx lr
  47469. 0801419a <vListInsert>:
  47470. /*-----------------------------------------------------------*/
  47471. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  47472. {
  47473. 801419a: b480 push {r7}
  47474. 801419c: b085 sub sp, #20
  47475. 801419e: af00 add r7, sp, #0
  47476. 80141a0: 6078 str r0, [r7, #4]
  47477. 80141a2: 6039 str r1, [r7, #0]
  47478. ListItem_t *pxIterator;
  47479. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  47480. 80141a4: 683b ldr r3, [r7, #0]
  47481. 80141a6: 681b ldr r3, [r3, #0]
  47482. 80141a8: 60bb str r3, [r7, #8]
  47483. new list item should be placed after it. This ensures that TCBs which are
  47484. stored in ready lists (all of which have the same xItemValue value) get a
  47485. share of the CPU. However, if the xItemValue is the same as the back marker
  47486. the iteration loop below will not end. Therefore the value is checked
  47487. first, and the algorithm slightly modified if necessary. */
  47488. if( xValueOfInsertion == portMAX_DELAY )
  47489. 80141aa: 68bb ldr r3, [r7, #8]
  47490. 80141ac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47491. 80141b0: d103 bne.n 80141ba <vListInsert+0x20>
  47492. {
  47493. pxIterator = pxList->xListEnd.pxPrevious;
  47494. 80141b2: 687b ldr r3, [r7, #4]
  47495. 80141b4: 691b ldr r3, [r3, #16]
  47496. 80141b6: 60fb str r3, [r7, #12]
  47497. 80141b8: e00c b.n 80141d4 <vListInsert+0x3a>
  47498. 4) Using a queue or semaphore before it has been initialised or
  47499. before the scheduler has been started (are interrupts firing
  47500. before vTaskStartScheduler() has been called?).
  47501. **********************************************************************/
  47502. 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. */
  47503. 80141ba: 687b ldr r3, [r7, #4]
  47504. 80141bc: 3308 adds r3, #8
  47505. 80141be: 60fb str r3, [r7, #12]
  47506. 80141c0: e002 b.n 80141c8 <vListInsert+0x2e>
  47507. 80141c2: 68fb ldr r3, [r7, #12]
  47508. 80141c4: 685b ldr r3, [r3, #4]
  47509. 80141c6: 60fb str r3, [r7, #12]
  47510. 80141c8: 68fb ldr r3, [r7, #12]
  47511. 80141ca: 685b ldr r3, [r3, #4]
  47512. 80141cc: 681b ldr r3, [r3, #0]
  47513. 80141ce: 68ba ldr r2, [r7, #8]
  47514. 80141d0: 429a cmp r2, r3
  47515. 80141d2: d2f6 bcs.n 80141c2 <vListInsert+0x28>
  47516. /* There is nothing to do here, just iterating to the wanted
  47517. insertion position. */
  47518. }
  47519. }
  47520. pxNewListItem->pxNext = pxIterator->pxNext;
  47521. 80141d4: 68fb ldr r3, [r7, #12]
  47522. 80141d6: 685a ldr r2, [r3, #4]
  47523. 80141d8: 683b ldr r3, [r7, #0]
  47524. 80141da: 605a str r2, [r3, #4]
  47525. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  47526. 80141dc: 683b ldr r3, [r7, #0]
  47527. 80141de: 685b ldr r3, [r3, #4]
  47528. 80141e0: 683a ldr r2, [r7, #0]
  47529. 80141e2: 609a str r2, [r3, #8]
  47530. pxNewListItem->pxPrevious = pxIterator;
  47531. 80141e4: 683b ldr r3, [r7, #0]
  47532. 80141e6: 68fa ldr r2, [r7, #12]
  47533. 80141e8: 609a str r2, [r3, #8]
  47534. pxIterator->pxNext = pxNewListItem;
  47535. 80141ea: 68fb ldr r3, [r7, #12]
  47536. 80141ec: 683a ldr r2, [r7, #0]
  47537. 80141ee: 605a str r2, [r3, #4]
  47538. /* Remember which list the item is in. This allows fast removal of the
  47539. item later. */
  47540. pxNewListItem->pxContainer = pxList;
  47541. 80141f0: 683b ldr r3, [r7, #0]
  47542. 80141f2: 687a ldr r2, [r7, #4]
  47543. 80141f4: 611a str r2, [r3, #16]
  47544. ( pxList->uxNumberOfItems )++;
  47545. 80141f6: 687b ldr r3, [r7, #4]
  47546. 80141f8: 681b ldr r3, [r3, #0]
  47547. 80141fa: 1c5a adds r2, r3, #1
  47548. 80141fc: 687b ldr r3, [r7, #4]
  47549. 80141fe: 601a str r2, [r3, #0]
  47550. }
  47551. 8014200: bf00 nop
  47552. 8014202: 3714 adds r7, #20
  47553. 8014204: 46bd mov sp, r7
  47554. 8014206: f85d 7b04 ldr.w r7, [sp], #4
  47555. 801420a: 4770 bx lr
  47556. 0801420c <uxListRemove>:
  47557. /*-----------------------------------------------------------*/
  47558. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  47559. {
  47560. 801420c: b480 push {r7}
  47561. 801420e: b085 sub sp, #20
  47562. 8014210: af00 add r7, sp, #0
  47563. 8014212: 6078 str r0, [r7, #4]
  47564. /* The list item knows which list it is in. Obtain the list from the list
  47565. item. */
  47566. List_t * const pxList = pxItemToRemove->pxContainer;
  47567. 8014214: 687b ldr r3, [r7, #4]
  47568. 8014216: 691b ldr r3, [r3, #16]
  47569. 8014218: 60fb str r3, [r7, #12]
  47570. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  47571. 801421a: 687b ldr r3, [r7, #4]
  47572. 801421c: 685b ldr r3, [r3, #4]
  47573. 801421e: 687a ldr r2, [r7, #4]
  47574. 8014220: 6892 ldr r2, [r2, #8]
  47575. 8014222: 609a str r2, [r3, #8]
  47576. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  47577. 8014224: 687b ldr r3, [r7, #4]
  47578. 8014226: 689b ldr r3, [r3, #8]
  47579. 8014228: 687a ldr r2, [r7, #4]
  47580. 801422a: 6852 ldr r2, [r2, #4]
  47581. 801422c: 605a str r2, [r3, #4]
  47582. /* Only used during decision coverage testing. */
  47583. mtCOVERAGE_TEST_DELAY();
  47584. /* Make sure the index is left pointing to a valid item. */
  47585. if( pxList->pxIndex == pxItemToRemove )
  47586. 801422e: 68fb ldr r3, [r7, #12]
  47587. 8014230: 685b ldr r3, [r3, #4]
  47588. 8014232: 687a ldr r2, [r7, #4]
  47589. 8014234: 429a cmp r2, r3
  47590. 8014236: d103 bne.n 8014240 <uxListRemove+0x34>
  47591. {
  47592. pxList->pxIndex = pxItemToRemove->pxPrevious;
  47593. 8014238: 687b ldr r3, [r7, #4]
  47594. 801423a: 689a ldr r2, [r3, #8]
  47595. 801423c: 68fb ldr r3, [r7, #12]
  47596. 801423e: 605a str r2, [r3, #4]
  47597. else
  47598. {
  47599. mtCOVERAGE_TEST_MARKER();
  47600. }
  47601. pxItemToRemove->pxContainer = NULL;
  47602. 8014240: 687b ldr r3, [r7, #4]
  47603. 8014242: 2200 movs r2, #0
  47604. 8014244: 611a str r2, [r3, #16]
  47605. ( pxList->uxNumberOfItems )--;
  47606. 8014246: 68fb ldr r3, [r7, #12]
  47607. 8014248: 681b ldr r3, [r3, #0]
  47608. 801424a: 1e5a subs r2, r3, #1
  47609. 801424c: 68fb ldr r3, [r7, #12]
  47610. 801424e: 601a str r2, [r3, #0]
  47611. return pxList->uxNumberOfItems;
  47612. 8014250: 68fb ldr r3, [r7, #12]
  47613. 8014252: 681b ldr r3, [r3, #0]
  47614. }
  47615. 8014254: 4618 mov r0, r3
  47616. 8014256: 3714 adds r7, #20
  47617. 8014258: 46bd mov sp, r7
  47618. 801425a: f85d 7b04 ldr.w r7, [sp], #4
  47619. 801425e: 4770 bx lr
  47620. 08014260 <xQueueGenericReset>:
  47621. } \
  47622. taskEXIT_CRITICAL()
  47623. /*-----------------------------------------------------------*/
  47624. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  47625. {
  47626. 8014260: b580 push {r7, lr}
  47627. 8014262: b084 sub sp, #16
  47628. 8014264: af00 add r7, sp, #0
  47629. 8014266: 6078 str r0, [r7, #4]
  47630. 8014268: 6039 str r1, [r7, #0]
  47631. Queue_t * const pxQueue = xQueue;
  47632. 801426a: 687b ldr r3, [r7, #4]
  47633. 801426c: 60fb str r3, [r7, #12]
  47634. configASSERT( pxQueue );
  47635. 801426e: 68fb ldr r3, [r7, #12]
  47636. 8014270: 2b00 cmp r3, #0
  47637. 8014272: d10b bne.n 801428c <xQueueGenericReset+0x2c>
  47638. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  47639. {
  47640. uint32_t ulNewBASEPRI;
  47641. __asm volatile
  47642. 8014274: f04f 0350 mov.w r3, #80 @ 0x50
  47643. 8014278: f383 8811 msr BASEPRI, r3
  47644. 801427c: f3bf 8f6f isb sy
  47645. 8014280: f3bf 8f4f dsb sy
  47646. 8014284: 60bb str r3, [r7, #8]
  47647. " msr basepri, %0 \n" \
  47648. " isb \n" \
  47649. " dsb \n" \
  47650. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  47651. );
  47652. }
  47653. 8014286: bf00 nop
  47654. 8014288: bf00 nop
  47655. 801428a: e7fd b.n 8014288 <xQueueGenericReset+0x28>
  47656. taskENTER_CRITICAL();
  47657. 801428c: f003 f964 bl 8017558 <vPortEnterCritical>
  47658. {
  47659. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47660. 8014290: 68fb ldr r3, [r7, #12]
  47661. 8014292: 681a ldr r2, [r3, #0]
  47662. 8014294: 68fb ldr r3, [r7, #12]
  47663. 8014296: 6bdb ldr r3, [r3, #60] @ 0x3c
  47664. 8014298: 68f9 ldr r1, [r7, #12]
  47665. 801429a: 6c09 ldr r1, [r1, #64] @ 0x40
  47666. 801429c: fb01 f303 mul.w r3, r1, r3
  47667. 80142a0: 441a add r2, r3
  47668. 80142a2: 68fb ldr r3, [r7, #12]
  47669. 80142a4: 609a str r2, [r3, #8]
  47670. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  47671. 80142a6: 68fb ldr r3, [r7, #12]
  47672. 80142a8: 2200 movs r2, #0
  47673. 80142aa: 639a str r2, [r3, #56] @ 0x38
  47674. pxQueue->pcWriteTo = pxQueue->pcHead;
  47675. 80142ac: 68fb ldr r3, [r7, #12]
  47676. 80142ae: 681a ldr r2, [r3, #0]
  47677. 80142b0: 68fb ldr r3, [r7, #12]
  47678. 80142b2: 605a str r2, [r3, #4]
  47679. 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. */
  47680. 80142b4: 68fb ldr r3, [r7, #12]
  47681. 80142b6: 681a ldr r2, [r3, #0]
  47682. 80142b8: 68fb ldr r3, [r7, #12]
  47683. 80142ba: 6bdb ldr r3, [r3, #60] @ 0x3c
  47684. 80142bc: 3b01 subs r3, #1
  47685. 80142be: 68f9 ldr r1, [r7, #12]
  47686. 80142c0: 6c09 ldr r1, [r1, #64] @ 0x40
  47687. 80142c2: fb01 f303 mul.w r3, r1, r3
  47688. 80142c6: 441a add r2, r3
  47689. 80142c8: 68fb ldr r3, [r7, #12]
  47690. 80142ca: 60da str r2, [r3, #12]
  47691. pxQueue->cRxLock = queueUNLOCKED;
  47692. 80142cc: 68fb ldr r3, [r7, #12]
  47693. 80142ce: 22ff movs r2, #255 @ 0xff
  47694. 80142d0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  47695. pxQueue->cTxLock = queueUNLOCKED;
  47696. 80142d4: 68fb ldr r3, [r7, #12]
  47697. 80142d6: 22ff movs r2, #255 @ 0xff
  47698. 80142d8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  47699. if( xNewQueue == pdFALSE )
  47700. 80142dc: 683b ldr r3, [r7, #0]
  47701. 80142de: 2b00 cmp r3, #0
  47702. 80142e0: d114 bne.n 801430c <xQueueGenericReset+0xac>
  47703. /* If there are tasks blocked waiting to read from the queue, then
  47704. the tasks will remain blocked as after this function exits the queue
  47705. will still be empty. If there are tasks blocked waiting to write to
  47706. the queue, then one should be unblocked as after this function exits
  47707. it will be possible to write to it. */
  47708. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  47709. 80142e2: 68fb ldr r3, [r7, #12]
  47710. 80142e4: 691b ldr r3, [r3, #16]
  47711. 80142e6: 2b00 cmp r3, #0
  47712. 80142e8: d01a beq.n 8014320 <xQueueGenericReset+0xc0>
  47713. {
  47714. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  47715. 80142ea: 68fb ldr r3, [r7, #12]
  47716. 80142ec: 3310 adds r3, #16
  47717. 80142ee: 4618 mov r0, r3
  47718. 80142f0: f001 fdac bl 8015e4c <xTaskRemoveFromEventList>
  47719. 80142f4: 4603 mov r3, r0
  47720. 80142f6: 2b00 cmp r3, #0
  47721. 80142f8: d012 beq.n 8014320 <xQueueGenericReset+0xc0>
  47722. {
  47723. queueYIELD_IF_USING_PREEMPTION();
  47724. 80142fa: 4b0d ldr r3, [pc, #52] @ (8014330 <xQueueGenericReset+0xd0>)
  47725. 80142fc: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47726. 8014300: 601a str r2, [r3, #0]
  47727. 8014302: f3bf 8f4f dsb sy
  47728. 8014306: f3bf 8f6f isb sy
  47729. 801430a: e009 b.n 8014320 <xQueueGenericReset+0xc0>
  47730. }
  47731. }
  47732. else
  47733. {
  47734. /* Ensure the event queues start in the correct state. */
  47735. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  47736. 801430c: 68fb ldr r3, [r7, #12]
  47737. 801430e: 3310 adds r3, #16
  47738. 8014310: 4618 mov r0, r3
  47739. 8014312: f7ff fef1 bl 80140f8 <vListInitialise>
  47740. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  47741. 8014316: 68fb ldr r3, [r7, #12]
  47742. 8014318: 3324 adds r3, #36 @ 0x24
  47743. 801431a: 4618 mov r0, r3
  47744. 801431c: f7ff feec bl 80140f8 <vListInitialise>
  47745. }
  47746. }
  47747. taskEXIT_CRITICAL();
  47748. 8014320: f003 f94c bl 80175bc <vPortExitCritical>
  47749. /* A value is returned for calling semantic consistency with previous
  47750. versions. */
  47751. return pdPASS;
  47752. 8014324: 2301 movs r3, #1
  47753. }
  47754. 8014326: 4618 mov r0, r3
  47755. 8014328: 3710 adds r7, #16
  47756. 801432a: 46bd mov sp, r7
  47757. 801432c: bd80 pop {r7, pc}
  47758. 801432e: bf00 nop
  47759. 8014330: e000ed04 .word 0xe000ed04
  47760. 08014334 <xQueueGenericCreateStatic>:
  47761. /*-----------------------------------------------------------*/
  47762. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47763. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  47764. {
  47765. 8014334: b580 push {r7, lr}
  47766. 8014336: b08e sub sp, #56 @ 0x38
  47767. 8014338: af02 add r7, sp, #8
  47768. 801433a: 60f8 str r0, [r7, #12]
  47769. 801433c: 60b9 str r1, [r7, #8]
  47770. 801433e: 607a str r2, [r7, #4]
  47771. 8014340: 603b str r3, [r7, #0]
  47772. Queue_t *pxNewQueue;
  47773. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47774. 8014342: 68fb ldr r3, [r7, #12]
  47775. 8014344: 2b00 cmp r3, #0
  47776. 8014346: d10b bne.n 8014360 <xQueueGenericCreateStatic+0x2c>
  47777. __asm volatile
  47778. 8014348: f04f 0350 mov.w r3, #80 @ 0x50
  47779. 801434c: f383 8811 msr BASEPRI, r3
  47780. 8014350: f3bf 8f6f isb sy
  47781. 8014354: f3bf 8f4f dsb sy
  47782. 8014358: 62bb str r3, [r7, #40] @ 0x28
  47783. }
  47784. 801435a: bf00 nop
  47785. 801435c: bf00 nop
  47786. 801435e: e7fd b.n 801435c <xQueueGenericCreateStatic+0x28>
  47787. /* The StaticQueue_t structure and the queue storage area must be
  47788. supplied. */
  47789. configASSERT( pxStaticQueue != NULL );
  47790. 8014360: 683b ldr r3, [r7, #0]
  47791. 8014362: 2b00 cmp r3, #0
  47792. 8014364: d10b bne.n 801437e <xQueueGenericCreateStatic+0x4a>
  47793. __asm volatile
  47794. 8014366: f04f 0350 mov.w r3, #80 @ 0x50
  47795. 801436a: f383 8811 msr BASEPRI, r3
  47796. 801436e: f3bf 8f6f isb sy
  47797. 8014372: f3bf 8f4f dsb sy
  47798. 8014376: 627b str r3, [r7, #36] @ 0x24
  47799. }
  47800. 8014378: bf00 nop
  47801. 801437a: bf00 nop
  47802. 801437c: e7fd b.n 801437a <xQueueGenericCreateStatic+0x46>
  47803. /* A queue storage area should be provided if the item size is not 0, and
  47804. should not be provided if the item size is 0. */
  47805. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  47806. 801437e: 687b ldr r3, [r7, #4]
  47807. 8014380: 2b00 cmp r3, #0
  47808. 8014382: d002 beq.n 801438a <xQueueGenericCreateStatic+0x56>
  47809. 8014384: 68bb ldr r3, [r7, #8]
  47810. 8014386: 2b00 cmp r3, #0
  47811. 8014388: d001 beq.n 801438e <xQueueGenericCreateStatic+0x5a>
  47812. 801438a: 2301 movs r3, #1
  47813. 801438c: e000 b.n 8014390 <xQueueGenericCreateStatic+0x5c>
  47814. 801438e: 2300 movs r3, #0
  47815. 8014390: 2b00 cmp r3, #0
  47816. 8014392: d10b bne.n 80143ac <xQueueGenericCreateStatic+0x78>
  47817. __asm volatile
  47818. 8014394: f04f 0350 mov.w r3, #80 @ 0x50
  47819. 8014398: f383 8811 msr BASEPRI, r3
  47820. 801439c: f3bf 8f6f isb sy
  47821. 80143a0: f3bf 8f4f dsb sy
  47822. 80143a4: 623b str r3, [r7, #32]
  47823. }
  47824. 80143a6: bf00 nop
  47825. 80143a8: bf00 nop
  47826. 80143aa: e7fd b.n 80143a8 <xQueueGenericCreateStatic+0x74>
  47827. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  47828. 80143ac: 687b ldr r3, [r7, #4]
  47829. 80143ae: 2b00 cmp r3, #0
  47830. 80143b0: d102 bne.n 80143b8 <xQueueGenericCreateStatic+0x84>
  47831. 80143b2: 68bb ldr r3, [r7, #8]
  47832. 80143b4: 2b00 cmp r3, #0
  47833. 80143b6: d101 bne.n 80143bc <xQueueGenericCreateStatic+0x88>
  47834. 80143b8: 2301 movs r3, #1
  47835. 80143ba: e000 b.n 80143be <xQueueGenericCreateStatic+0x8a>
  47836. 80143bc: 2300 movs r3, #0
  47837. 80143be: 2b00 cmp r3, #0
  47838. 80143c0: d10b bne.n 80143da <xQueueGenericCreateStatic+0xa6>
  47839. __asm volatile
  47840. 80143c2: f04f 0350 mov.w r3, #80 @ 0x50
  47841. 80143c6: f383 8811 msr BASEPRI, r3
  47842. 80143ca: f3bf 8f6f isb sy
  47843. 80143ce: f3bf 8f4f dsb sy
  47844. 80143d2: 61fb str r3, [r7, #28]
  47845. }
  47846. 80143d4: bf00 nop
  47847. 80143d6: bf00 nop
  47848. 80143d8: e7fd b.n 80143d6 <xQueueGenericCreateStatic+0xa2>
  47849. #if( configASSERT_DEFINED == 1 )
  47850. {
  47851. /* Sanity check that the size of the structure used to declare a
  47852. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  47853. the real queue and semaphore structures. */
  47854. volatile size_t xSize = sizeof( StaticQueue_t );
  47855. 80143da: 2350 movs r3, #80 @ 0x50
  47856. 80143dc: 617b str r3, [r7, #20]
  47857. configASSERT( xSize == sizeof( Queue_t ) );
  47858. 80143de: 697b ldr r3, [r7, #20]
  47859. 80143e0: 2b50 cmp r3, #80 @ 0x50
  47860. 80143e2: d00b beq.n 80143fc <xQueueGenericCreateStatic+0xc8>
  47861. __asm volatile
  47862. 80143e4: f04f 0350 mov.w r3, #80 @ 0x50
  47863. 80143e8: f383 8811 msr BASEPRI, r3
  47864. 80143ec: f3bf 8f6f isb sy
  47865. 80143f0: f3bf 8f4f dsb sy
  47866. 80143f4: 61bb str r3, [r7, #24]
  47867. }
  47868. 80143f6: bf00 nop
  47869. 80143f8: bf00 nop
  47870. 80143fa: e7fd b.n 80143f8 <xQueueGenericCreateStatic+0xc4>
  47871. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  47872. 80143fc: 697b ldr r3, [r7, #20]
  47873. #endif /* configASSERT_DEFINED */
  47874. /* The address of a statically allocated queue was passed in, use it.
  47875. The address of a statically allocated storage area was also passed in
  47876. but is already set. */
  47877. 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. */
  47878. 80143fe: 683b ldr r3, [r7, #0]
  47879. 8014400: 62fb str r3, [r7, #44] @ 0x2c
  47880. if( pxNewQueue != NULL )
  47881. 8014402: 6afb ldr r3, [r7, #44] @ 0x2c
  47882. 8014404: 2b00 cmp r3, #0
  47883. 8014406: d00d beq.n 8014424 <xQueueGenericCreateStatic+0xf0>
  47884. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47885. {
  47886. /* Queues can be allocated wither statically or dynamically, so
  47887. note this queue was allocated statically in case the queue is
  47888. later deleted. */
  47889. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  47890. 8014408: 6afb ldr r3, [r7, #44] @ 0x2c
  47891. 801440a: 2201 movs r2, #1
  47892. 801440c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47893. }
  47894. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  47895. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47896. 8014410: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  47897. 8014414: 6afb ldr r3, [r7, #44] @ 0x2c
  47898. 8014416: 9300 str r3, [sp, #0]
  47899. 8014418: 4613 mov r3, r2
  47900. 801441a: 687a ldr r2, [r7, #4]
  47901. 801441c: 68b9 ldr r1, [r7, #8]
  47902. 801441e: 68f8 ldr r0, [r7, #12]
  47903. 8014420: f000 f840 bl 80144a4 <prvInitialiseNewQueue>
  47904. {
  47905. traceQUEUE_CREATE_FAILED( ucQueueType );
  47906. mtCOVERAGE_TEST_MARKER();
  47907. }
  47908. return pxNewQueue;
  47909. 8014424: 6afb ldr r3, [r7, #44] @ 0x2c
  47910. }
  47911. 8014426: 4618 mov r0, r3
  47912. 8014428: 3730 adds r7, #48 @ 0x30
  47913. 801442a: 46bd mov sp, r7
  47914. 801442c: bd80 pop {r7, pc}
  47915. 0801442e <xQueueGenericCreate>:
  47916. /*-----------------------------------------------------------*/
  47917. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47918. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  47919. {
  47920. 801442e: b580 push {r7, lr}
  47921. 8014430: b08a sub sp, #40 @ 0x28
  47922. 8014432: af02 add r7, sp, #8
  47923. 8014434: 60f8 str r0, [r7, #12]
  47924. 8014436: 60b9 str r1, [r7, #8]
  47925. 8014438: 4613 mov r3, r2
  47926. 801443a: 71fb strb r3, [r7, #7]
  47927. Queue_t *pxNewQueue;
  47928. size_t xQueueSizeInBytes;
  47929. uint8_t *pucQueueStorage;
  47930. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47931. 801443c: 68fb ldr r3, [r7, #12]
  47932. 801443e: 2b00 cmp r3, #0
  47933. 8014440: d10b bne.n 801445a <xQueueGenericCreate+0x2c>
  47934. __asm volatile
  47935. 8014442: f04f 0350 mov.w r3, #80 @ 0x50
  47936. 8014446: f383 8811 msr BASEPRI, r3
  47937. 801444a: f3bf 8f6f isb sy
  47938. 801444e: f3bf 8f4f dsb sy
  47939. 8014452: 613b str r3, [r7, #16]
  47940. }
  47941. 8014454: bf00 nop
  47942. 8014456: bf00 nop
  47943. 8014458: e7fd b.n 8014456 <xQueueGenericCreate+0x28>
  47944. /* Allocate enough space to hold the maximum number of items that
  47945. can be in the queue at any time. It is valid for uxItemSize to be
  47946. zero in the case the queue is used as a semaphore. */
  47947. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  47948. 801445a: 68fb ldr r3, [r7, #12]
  47949. 801445c: 68ba ldr r2, [r7, #8]
  47950. 801445e: fb02 f303 mul.w r3, r2, r3
  47951. 8014462: 61fb str r3, [r7, #28]
  47952. alignment requirements of the Queue_t structure - which in this case
  47953. is an int8_t *. Therefore, whenever the stack alignment requirements
  47954. are greater than or equal to the pointer to char requirements the cast
  47955. is safe. In other cases alignment requirements are not strict (one or
  47956. two bytes). */
  47957. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  47958. 8014464: 69fb ldr r3, [r7, #28]
  47959. 8014466: 3350 adds r3, #80 @ 0x50
  47960. 8014468: 4618 mov r0, r3
  47961. 801446a: f003 f997 bl 801779c <pvPortMalloc>
  47962. 801446e: 61b8 str r0, [r7, #24]
  47963. if( pxNewQueue != NULL )
  47964. 8014470: 69bb ldr r3, [r7, #24]
  47965. 8014472: 2b00 cmp r3, #0
  47966. 8014474: d011 beq.n 801449a <xQueueGenericCreate+0x6c>
  47967. {
  47968. /* Jump past the queue structure to find the location of the queue
  47969. storage area. */
  47970. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  47971. 8014476: 69bb ldr r3, [r7, #24]
  47972. 8014478: 617b str r3, [r7, #20]
  47973. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47974. 801447a: 697b ldr r3, [r7, #20]
  47975. 801447c: 3350 adds r3, #80 @ 0x50
  47976. 801447e: 617b str r3, [r7, #20]
  47977. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47978. {
  47979. /* Queues can be created either statically or dynamically, so
  47980. note this task was created dynamically in case it is later
  47981. deleted. */
  47982. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  47983. 8014480: 69bb ldr r3, [r7, #24]
  47984. 8014482: 2200 movs r2, #0
  47985. 8014484: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47986. }
  47987. #endif /* configSUPPORT_STATIC_ALLOCATION */
  47988. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47989. 8014488: 79fa ldrb r2, [r7, #7]
  47990. 801448a: 69bb ldr r3, [r7, #24]
  47991. 801448c: 9300 str r3, [sp, #0]
  47992. 801448e: 4613 mov r3, r2
  47993. 8014490: 697a ldr r2, [r7, #20]
  47994. 8014492: 68b9 ldr r1, [r7, #8]
  47995. 8014494: 68f8 ldr r0, [r7, #12]
  47996. 8014496: f000 f805 bl 80144a4 <prvInitialiseNewQueue>
  47997. {
  47998. traceQUEUE_CREATE_FAILED( ucQueueType );
  47999. mtCOVERAGE_TEST_MARKER();
  48000. }
  48001. return pxNewQueue;
  48002. 801449a: 69bb ldr r3, [r7, #24]
  48003. }
  48004. 801449c: 4618 mov r0, r3
  48005. 801449e: 3720 adds r7, #32
  48006. 80144a0: 46bd mov sp, r7
  48007. 80144a2: bd80 pop {r7, pc}
  48008. 080144a4 <prvInitialiseNewQueue>:
  48009. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48010. /*-----------------------------------------------------------*/
  48011. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  48012. {
  48013. 80144a4: b580 push {r7, lr}
  48014. 80144a6: b084 sub sp, #16
  48015. 80144a8: af00 add r7, sp, #0
  48016. 80144aa: 60f8 str r0, [r7, #12]
  48017. 80144ac: 60b9 str r1, [r7, #8]
  48018. 80144ae: 607a str r2, [r7, #4]
  48019. 80144b0: 70fb strb r3, [r7, #3]
  48020. /* Remove compiler warnings about unused parameters should
  48021. configUSE_TRACE_FACILITY not be set to 1. */
  48022. ( void ) ucQueueType;
  48023. if( uxItemSize == ( UBaseType_t ) 0 )
  48024. 80144b2: 68bb ldr r3, [r7, #8]
  48025. 80144b4: 2b00 cmp r3, #0
  48026. 80144b6: d103 bne.n 80144c0 <prvInitialiseNewQueue+0x1c>
  48027. {
  48028. /* No RAM was allocated for the queue storage area, but PC head cannot
  48029. be set to NULL because NULL is used as a key to say the queue is used as
  48030. a mutex. Therefore just set pcHead to point to the queue as a benign
  48031. value that is known to be within the memory map. */
  48032. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  48033. 80144b8: 69bb ldr r3, [r7, #24]
  48034. 80144ba: 69ba ldr r2, [r7, #24]
  48035. 80144bc: 601a str r2, [r3, #0]
  48036. 80144be: e002 b.n 80144c6 <prvInitialiseNewQueue+0x22>
  48037. }
  48038. else
  48039. {
  48040. /* Set the head to the start of the queue storage area. */
  48041. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  48042. 80144c0: 69bb ldr r3, [r7, #24]
  48043. 80144c2: 687a ldr r2, [r7, #4]
  48044. 80144c4: 601a str r2, [r3, #0]
  48045. }
  48046. /* Initialise the queue members as described where the queue type is
  48047. defined. */
  48048. pxNewQueue->uxLength = uxQueueLength;
  48049. 80144c6: 69bb ldr r3, [r7, #24]
  48050. 80144c8: 68fa ldr r2, [r7, #12]
  48051. 80144ca: 63da str r2, [r3, #60] @ 0x3c
  48052. pxNewQueue->uxItemSize = uxItemSize;
  48053. 80144cc: 69bb ldr r3, [r7, #24]
  48054. 80144ce: 68ba ldr r2, [r7, #8]
  48055. 80144d0: 641a str r2, [r3, #64] @ 0x40
  48056. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  48057. 80144d2: 2101 movs r1, #1
  48058. 80144d4: 69b8 ldr r0, [r7, #24]
  48059. 80144d6: f7ff fec3 bl 8014260 <xQueueGenericReset>
  48060. #if ( configUSE_TRACE_FACILITY == 1 )
  48061. {
  48062. pxNewQueue->ucQueueType = ucQueueType;
  48063. 80144da: 69bb ldr r3, [r7, #24]
  48064. 80144dc: 78fa ldrb r2, [r7, #3]
  48065. 80144de: f883 204c strb.w r2, [r3, #76] @ 0x4c
  48066. pxNewQueue->pxQueueSetContainer = NULL;
  48067. }
  48068. #endif /* configUSE_QUEUE_SETS */
  48069. traceQUEUE_CREATE( pxNewQueue );
  48070. }
  48071. 80144e2: bf00 nop
  48072. 80144e4: 3710 adds r7, #16
  48073. 80144e6: 46bd mov sp, r7
  48074. 80144e8: bd80 pop {r7, pc}
  48075. 080144ea <prvInitialiseMutex>:
  48076. /*-----------------------------------------------------------*/
  48077. #if( configUSE_MUTEXES == 1 )
  48078. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  48079. {
  48080. 80144ea: b580 push {r7, lr}
  48081. 80144ec: b082 sub sp, #8
  48082. 80144ee: af00 add r7, sp, #0
  48083. 80144f0: 6078 str r0, [r7, #4]
  48084. if( pxNewQueue != NULL )
  48085. 80144f2: 687b ldr r3, [r7, #4]
  48086. 80144f4: 2b00 cmp r3, #0
  48087. 80144f6: d00e beq.n 8014516 <prvInitialiseMutex+0x2c>
  48088. {
  48089. /* The queue create function will set all the queue structure members
  48090. correctly for a generic queue, but this function is creating a
  48091. mutex. Overwrite those members that need to be set differently -
  48092. in particular the information required for priority inheritance. */
  48093. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  48094. 80144f8: 687b ldr r3, [r7, #4]
  48095. 80144fa: 2200 movs r2, #0
  48096. 80144fc: 609a str r2, [r3, #8]
  48097. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  48098. 80144fe: 687b ldr r3, [r7, #4]
  48099. 8014500: 2200 movs r2, #0
  48100. 8014502: 601a str r2, [r3, #0]
  48101. /* In case this is a recursive mutex. */
  48102. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  48103. 8014504: 687b ldr r3, [r7, #4]
  48104. 8014506: 2200 movs r2, #0
  48105. 8014508: 60da str r2, [r3, #12]
  48106. traceCREATE_MUTEX( pxNewQueue );
  48107. /* Start with the semaphore in the expected state. */
  48108. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  48109. 801450a: 2300 movs r3, #0
  48110. 801450c: 2200 movs r2, #0
  48111. 801450e: 2100 movs r1, #0
  48112. 8014510: 6878 ldr r0, [r7, #4]
  48113. 8014512: f000 f8a3 bl 801465c <xQueueGenericSend>
  48114. }
  48115. else
  48116. {
  48117. traceCREATE_MUTEX_FAILED();
  48118. }
  48119. }
  48120. 8014516: bf00 nop
  48121. 8014518: 3708 adds r7, #8
  48122. 801451a: 46bd mov sp, r7
  48123. 801451c: bd80 pop {r7, pc}
  48124. 0801451e <xQueueCreateMutex>:
  48125. /*-----------------------------------------------------------*/
  48126. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  48127. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  48128. {
  48129. 801451e: b580 push {r7, lr}
  48130. 8014520: b086 sub sp, #24
  48131. 8014522: af00 add r7, sp, #0
  48132. 8014524: 4603 mov r3, r0
  48133. 8014526: 71fb strb r3, [r7, #7]
  48134. QueueHandle_t xNewQueue;
  48135. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  48136. 8014528: 2301 movs r3, #1
  48137. 801452a: 617b str r3, [r7, #20]
  48138. 801452c: 2300 movs r3, #0
  48139. 801452e: 613b str r3, [r7, #16]
  48140. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  48141. 8014530: 79fb ldrb r3, [r7, #7]
  48142. 8014532: 461a mov r2, r3
  48143. 8014534: 6939 ldr r1, [r7, #16]
  48144. 8014536: 6978 ldr r0, [r7, #20]
  48145. 8014538: f7ff ff79 bl 801442e <xQueueGenericCreate>
  48146. 801453c: 60f8 str r0, [r7, #12]
  48147. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  48148. 801453e: 68f8 ldr r0, [r7, #12]
  48149. 8014540: f7ff ffd3 bl 80144ea <prvInitialiseMutex>
  48150. return xNewQueue;
  48151. 8014544: 68fb ldr r3, [r7, #12]
  48152. }
  48153. 8014546: 4618 mov r0, r3
  48154. 8014548: 3718 adds r7, #24
  48155. 801454a: 46bd mov sp, r7
  48156. 801454c: bd80 pop {r7, pc}
  48157. 0801454e <xQueueCreateMutexStatic>:
  48158. /*-----------------------------------------------------------*/
  48159. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  48160. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  48161. {
  48162. 801454e: b580 push {r7, lr}
  48163. 8014550: b088 sub sp, #32
  48164. 8014552: af02 add r7, sp, #8
  48165. 8014554: 4603 mov r3, r0
  48166. 8014556: 6039 str r1, [r7, #0]
  48167. 8014558: 71fb strb r3, [r7, #7]
  48168. QueueHandle_t xNewQueue;
  48169. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  48170. 801455a: 2301 movs r3, #1
  48171. 801455c: 617b str r3, [r7, #20]
  48172. 801455e: 2300 movs r3, #0
  48173. 8014560: 613b str r3, [r7, #16]
  48174. /* Prevent compiler warnings about unused parameters if
  48175. configUSE_TRACE_FACILITY does not equal 1. */
  48176. ( void ) ucQueueType;
  48177. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  48178. 8014562: 79fb ldrb r3, [r7, #7]
  48179. 8014564: 9300 str r3, [sp, #0]
  48180. 8014566: 683b ldr r3, [r7, #0]
  48181. 8014568: 2200 movs r2, #0
  48182. 801456a: 6939 ldr r1, [r7, #16]
  48183. 801456c: 6978 ldr r0, [r7, #20]
  48184. 801456e: f7ff fee1 bl 8014334 <xQueueGenericCreateStatic>
  48185. 8014572: 60f8 str r0, [r7, #12]
  48186. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  48187. 8014574: 68f8 ldr r0, [r7, #12]
  48188. 8014576: f7ff ffb8 bl 80144ea <prvInitialiseMutex>
  48189. return xNewQueue;
  48190. 801457a: 68fb ldr r3, [r7, #12]
  48191. }
  48192. 801457c: 4618 mov r0, r3
  48193. 801457e: 3718 adds r7, #24
  48194. 8014580: 46bd mov sp, r7
  48195. 8014582: bd80 pop {r7, pc}
  48196. 08014584 <xQueueGiveMutexRecursive>:
  48197. /*-----------------------------------------------------------*/
  48198. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  48199. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  48200. {
  48201. 8014584: b590 push {r4, r7, lr}
  48202. 8014586: b087 sub sp, #28
  48203. 8014588: af00 add r7, sp, #0
  48204. 801458a: 6078 str r0, [r7, #4]
  48205. BaseType_t xReturn;
  48206. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  48207. 801458c: 687b ldr r3, [r7, #4]
  48208. 801458e: 613b str r3, [r7, #16]
  48209. configASSERT( pxMutex );
  48210. 8014590: 693b ldr r3, [r7, #16]
  48211. 8014592: 2b00 cmp r3, #0
  48212. 8014594: d10b bne.n 80145ae <xQueueGiveMutexRecursive+0x2a>
  48213. __asm volatile
  48214. 8014596: f04f 0350 mov.w r3, #80 @ 0x50
  48215. 801459a: f383 8811 msr BASEPRI, r3
  48216. 801459e: f3bf 8f6f isb sy
  48217. 80145a2: f3bf 8f4f dsb sy
  48218. 80145a6: 60fb str r3, [r7, #12]
  48219. }
  48220. 80145a8: bf00 nop
  48221. 80145aa: bf00 nop
  48222. 80145ac: e7fd b.n 80145aa <xQueueGiveMutexRecursive+0x26>
  48223. change outside of this task. If this task does not hold the mutex then
  48224. pxMutexHolder can never coincidentally equal the tasks handle, and as
  48225. this is the only condition we are interested in it does not matter if
  48226. pxMutexHolder is accessed simultaneously by another task. Therefore no
  48227. mutual exclusion is required to test the pxMutexHolder variable. */
  48228. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  48229. 80145ae: 693b ldr r3, [r7, #16]
  48230. 80145b0: 689c ldr r4, [r3, #8]
  48231. 80145b2: f001 fe39 bl 8016228 <xTaskGetCurrentTaskHandle>
  48232. 80145b6: 4603 mov r3, r0
  48233. 80145b8: 429c cmp r4, r3
  48234. 80145ba: d111 bne.n 80145e0 <xQueueGiveMutexRecursive+0x5c>
  48235. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  48236. the task handle, therefore no underflow check is required. Also,
  48237. uxRecursiveCallCount is only modified by the mutex holder, and as
  48238. there can only be one, no mutual exclusion is required to modify the
  48239. uxRecursiveCallCount member. */
  48240. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  48241. 80145bc: 693b ldr r3, [r7, #16]
  48242. 80145be: 68db ldr r3, [r3, #12]
  48243. 80145c0: 1e5a subs r2, r3, #1
  48244. 80145c2: 693b ldr r3, [r7, #16]
  48245. 80145c4: 60da str r2, [r3, #12]
  48246. /* Has the recursive call count unwound to 0? */
  48247. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  48248. 80145c6: 693b ldr r3, [r7, #16]
  48249. 80145c8: 68db ldr r3, [r3, #12]
  48250. 80145ca: 2b00 cmp r3, #0
  48251. 80145cc: d105 bne.n 80145da <xQueueGiveMutexRecursive+0x56>
  48252. {
  48253. /* Return the mutex. This will automatically unblock any other
  48254. task that might be waiting to access the mutex. */
  48255. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  48256. 80145ce: 2300 movs r3, #0
  48257. 80145d0: 2200 movs r2, #0
  48258. 80145d2: 2100 movs r1, #0
  48259. 80145d4: 6938 ldr r0, [r7, #16]
  48260. 80145d6: f000 f841 bl 801465c <xQueueGenericSend>
  48261. else
  48262. {
  48263. mtCOVERAGE_TEST_MARKER();
  48264. }
  48265. xReturn = pdPASS;
  48266. 80145da: 2301 movs r3, #1
  48267. 80145dc: 617b str r3, [r7, #20]
  48268. 80145de: e001 b.n 80145e4 <xQueueGiveMutexRecursive+0x60>
  48269. }
  48270. else
  48271. {
  48272. /* The mutex cannot be given because the calling task is not the
  48273. holder. */
  48274. xReturn = pdFAIL;
  48275. 80145e0: 2300 movs r3, #0
  48276. 80145e2: 617b str r3, [r7, #20]
  48277. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  48278. }
  48279. return xReturn;
  48280. 80145e4: 697b ldr r3, [r7, #20]
  48281. }
  48282. 80145e6: 4618 mov r0, r3
  48283. 80145e8: 371c adds r7, #28
  48284. 80145ea: 46bd mov sp, r7
  48285. 80145ec: bd90 pop {r4, r7, pc}
  48286. 080145ee <xQueueTakeMutexRecursive>:
  48287. /*-----------------------------------------------------------*/
  48288. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  48289. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  48290. {
  48291. 80145ee: b590 push {r4, r7, lr}
  48292. 80145f0: b087 sub sp, #28
  48293. 80145f2: af00 add r7, sp, #0
  48294. 80145f4: 6078 str r0, [r7, #4]
  48295. 80145f6: 6039 str r1, [r7, #0]
  48296. BaseType_t xReturn;
  48297. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  48298. 80145f8: 687b ldr r3, [r7, #4]
  48299. 80145fa: 613b str r3, [r7, #16]
  48300. configASSERT( pxMutex );
  48301. 80145fc: 693b ldr r3, [r7, #16]
  48302. 80145fe: 2b00 cmp r3, #0
  48303. 8014600: d10b bne.n 801461a <xQueueTakeMutexRecursive+0x2c>
  48304. __asm volatile
  48305. 8014602: f04f 0350 mov.w r3, #80 @ 0x50
  48306. 8014606: f383 8811 msr BASEPRI, r3
  48307. 801460a: f3bf 8f6f isb sy
  48308. 801460e: f3bf 8f4f dsb sy
  48309. 8014612: 60fb str r3, [r7, #12]
  48310. }
  48311. 8014614: bf00 nop
  48312. 8014616: bf00 nop
  48313. 8014618: e7fd b.n 8014616 <xQueueTakeMutexRecursive+0x28>
  48314. /* Comments regarding mutual exclusion as per those within
  48315. xQueueGiveMutexRecursive(). */
  48316. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  48317. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  48318. 801461a: 693b ldr r3, [r7, #16]
  48319. 801461c: 689c ldr r4, [r3, #8]
  48320. 801461e: f001 fe03 bl 8016228 <xTaskGetCurrentTaskHandle>
  48321. 8014622: 4603 mov r3, r0
  48322. 8014624: 429c cmp r4, r3
  48323. 8014626: d107 bne.n 8014638 <xQueueTakeMutexRecursive+0x4a>
  48324. {
  48325. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  48326. 8014628: 693b ldr r3, [r7, #16]
  48327. 801462a: 68db ldr r3, [r3, #12]
  48328. 801462c: 1c5a adds r2, r3, #1
  48329. 801462e: 693b ldr r3, [r7, #16]
  48330. 8014630: 60da str r2, [r3, #12]
  48331. xReturn = pdPASS;
  48332. 8014632: 2301 movs r3, #1
  48333. 8014634: 617b str r3, [r7, #20]
  48334. 8014636: e00c b.n 8014652 <xQueueTakeMutexRecursive+0x64>
  48335. }
  48336. else
  48337. {
  48338. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  48339. 8014638: 6839 ldr r1, [r7, #0]
  48340. 801463a: 6938 ldr r0, [r7, #16]
  48341. 801463c: f000 fa90 bl 8014b60 <xQueueSemaphoreTake>
  48342. 8014640: 6178 str r0, [r7, #20]
  48343. /* pdPASS will only be returned if the mutex was successfully
  48344. obtained. The calling task may have entered the Blocked state
  48345. before reaching here. */
  48346. if( xReturn != pdFAIL )
  48347. 8014642: 697b ldr r3, [r7, #20]
  48348. 8014644: 2b00 cmp r3, #0
  48349. 8014646: d004 beq.n 8014652 <xQueueTakeMutexRecursive+0x64>
  48350. {
  48351. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  48352. 8014648: 693b ldr r3, [r7, #16]
  48353. 801464a: 68db ldr r3, [r3, #12]
  48354. 801464c: 1c5a adds r2, r3, #1
  48355. 801464e: 693b ldr r3, [r7, #16]
  48356. 8014650: 60da str r2, [r3, #12]
  48357. {
  48358. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  48359. }
  48360. }
  48361. return xReturn;
  48362. 8014652: 697b ldr r3, [r7, #20]
  48363. }
  48364. 8014654: 4618 mov r0, r3
  48365. 8014656: 371c adds r7, #28
  48366. 8014658: 46bd mov sp, r7
  48367. 801465a: bd90 pop {r4, r7, pc}
  48368. 0801465c <xQueueGenericSend>:
  48369. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  48370. /*-----------------------------------------------------------*/
  48371. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  48372. {
  48373. 801465c: b580 push {r7, lr}
  48374. 801465e: b08e sub sp, #56 @ 0x38
  48375. 8014660: af00 add r7, sp, #0
  48376. 8014662: 60f8 str r0, [r7, #12]
  48377. 8014664: 60b9 str r1, [r7, #8]
  48378. 8014666: 607a str r2, [r7, #4]
  48379. 8014668: 603b str r3, [r7, #0]
  48380. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  48381. 801466a: 2300 movs r3, #0
  48382. 801466c: 637b str r3, [r7, #52] @ 0x34
  48383. TimeOut_t xTimeOut;
  48384. Queue_t * const pxQueue = xQueue;
  48385. 801466e: 68fb ldr r3, [r7, #12]
  48386. 8014670: 633b str r3, [r7, #48] @ 0x30
  48387. configASSERT( pxQueue );
  48388. 8014672: 6b3b ldr r3, [r7, #48] @ 0x30
  48389. 8014674: 2b00 cmp r3, #0
  48390. 8014676: d10b bne.n 8014690 <xQueueGenericSend+0x34>
  48391. __asm volatile
  48392. 8014678: f04f 0350 mov.w r3, #80 @ 0x50
  48393. 801467c: f383 8811 msr BASEPRI, r3
  48394. 8014680: f3bf 8f6f isb sy
  48395. 8014684: f3bf 8f4f dsb sy
  48396. 8014688: 62bb str r3, [r7, #40] @ 0x28
  48397. }
  48398. 801468a: bf00 nop
  48399. 801468c: bf00 nop
  48400. 801468e: e7fd b.n 801468c <xQueueGenericSend+0x30>
  48401. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48402. 8014690: 68bb ldr r3, [r7, #8]
  48403. 8014692: 2b00 cmp r3, #0
  48404. 8014694: d103 bne.n 801469e <xQueueGenericSend+0x42>
  48405. 8014696: 6b3b ldr r3, [r7, #48] @ 0x30
  48406. 8014698: 6c1b ldr r3, [r3, #64] @ 0x40
  48407. 801469a: 2b00 cmp r3, #0
  48408. 801469c: d101 bne.n 80146a2 <xQueueGenericSend+0x46>
  48409. 801469e: 2301 movs r3, #1
  48410. 80146a0: e000 b.n 80146a4 <xQueueGenericSend+0x48>
  48411. 80146a2: 2300 movs r3, #0
  48412. 80146a4: 2b00 cmp r3, #0
  48413. 80146a6: d10b bne.n 80146c0 <xQueueGenericSend+0x64>
  48414. __asm volatile
  48415. 80146a8: f04f 0350 mov.w r3, #80 @ 0x50
  48416. 80146ac: f383 8811 msr BASEPRI, r3
  48417. 80146b0: f3bf 8f6f isb sy
  48418. 80146b4: f3bf 8f4f dsb sy
  48419. 80146b8: 627b str r3, [r7, #36] @ 0x24
  48420. }
  48421. 80146ba: bf00 nop
  48422. 80146bc: bf00 nop
  48423. 80146be: e7fd b.n 80146bc <xQueueGenericSend+0x60>
  48424. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  48425. 80146c0: 683b ldr r3, [r7, #0]
  48426. 80146c2: 2b02 cmp r3, #2
  48427. 80146c4: d103 bne.n 80146ce <xQueueGenericSend+0x72>
  48428. 80146c6: 6b3b ldr r3, [r7, #48] @ 0x30
  48429. 80146c8: 6bdb ldr r3, [r3, #60] @ 0x3c
  48430. 80146ca: 2b01 cmp r3, #1
  48431. 80146cc: d101 bne.n 80146d2 <xQueueGenericSend+0x76>
  48432. 80146ce: 2301 movs r3, #1
  48433. 80146d0: e000 b.n 80146d4 <xQueueGenericSend+0x78>
  48434. 80146d2: 2300 movs r3, #0
  48435. 80146d4: 2b00 cmp r3, #0
  48436. 80146d6: d10b bne.n 80146f0 <xQueueGenericSend+0x94>
  48437. __asm volatile
  48438. 80146d8: f04f 0350 mov.w r3, #80 @ 0x50
  48439. 80146dc: f383 8811 msr BASEPRI, r3
  48440. 80146e0: f3bf 8f6f isb sy
  48441. 80146e4: f3bf 8f4f dsb sy
  48442. 80146e8: 623b str r3, [r7, #32]
  48443. }
  48444. 80146ea: bf00 nop
  48445. 80146ec: bf00 nop
  48446. 80146ee: e7fd b.n 80146ec <xQueueGenericSend+0x90>
  48447. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48448. {
  48449. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48450. 80146f0: f001 fdaa bl 8016248 <xTaskGetSchedulerState>
  48451. 80146f4: 4603 mov r3, r0
  48452. 80146f6: 2b00 cmp r3, #0
  48453. 80146f8: d102 bne.n 8014700 <xQueueGenericSend+0xa4>
  48454. 80146fa: 687b ldr r3, [r7, #4]
  48455. 80146fc: 2b00 cmp r3, #0
  48456. 80146fe: d101 bne.n 8014704 <xQueueGenericSend+0xa8>
  48457. 8014700: 2301 movs r3, #1
  48458. 8014702: e000 b.n 8014706 <xQueueGenericSend+0xaa>
  48459. 8014704: 2300 movs r3, #0
  48460. 8014706: 2b00 cmp r3, #0
  48461. 8014708: d10b bne.n 8014722 <xQueueGenericSend+0xc6>
  48462. __asm volatile
  48463. 801470a: f04f 0350 mov.w r3, #80 @ 0x50
  48464. 801470e: f383 8811 msr BASEPRI, r3
  48465. 8014712: f3bf 8f6f isb sy
  48466. 8014716: f3bf 8f4f dsb sy
  48467. 801471a: 61fb str r3, [r7, #28]
  48468. }
  48469. 801471c: bf00 nop
  48470. 801471e: bf00 nop
  48471. 8014720: e7fd b.n 801471e <xQueueGenericSend+0xc2>
  48472. /*lint -save -e904 This function relaxes the coding standard somewhat to
  48473. allow return statements within the function itself. This is done in the
  48474. interest of execution time efficiency. */
  48475. for( ;; )
  48476. {
  48477. taskENTER_CRITICAL();
  48478. 8014722: f002 ff19 bl 8017558 <vPortEnterCritical>
  48479. {
  48480. /* Is there room on the queue now? The running task must be the
  48481. highest priority task wanting to access the queue. If the head item
  48482. in the queue is to be overwritten then it does not matter if the
  48483. queue is full. */
  48484. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  48485. 8014726: 6b3b ldr r3, [r7, #48] @ 0x30
  48486. 8014728: 6b9a ldr r2, [r3, #56] @ 0x38
  48487. 801472a: 6b3b ldr r3, [r7, #48] @ 0x30
  48488. 801472c: 6bdb ldr r3, [r3, #60] @ 0x3c
  48489. 801472e: 429a cmp r2, r3
  48490. 8014730: d302 bcc.n 8014738 <xQueueGenericSend+0xdc>
  48491. 8014732: 683b ldr r3, [r7, #0]
  48492. 8014734: 2b02 cmp r3, #2
  48493. 8014736: d129 bne.n 801478c <xQueueGenericSend+0x130>
  48494. }
  48495. }
  48496. }
  48497. #else /* configUSE_QUEUE_SETS */
  48498. {
  48499. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  48500. 8014738: 683a ldr r2, [r7, #0]
  48501. 801473a: 68b9 ldr r1, [r7, #8]
  48502. 801473c: 6b38 ldr r0, [r7, #48] @ 0x30
  48503. 801473e: f000 fbb9 bl 8014eb4 <prvCopyDataToQueue>
  48504. 8014742: 62f8 str r0, [r7, #44] @ 0x2c
  48505. /* If there was a task waiting for data to arrive on the
  48506. queue then unblock it now. */
  48507. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  48508. 8014744: 6b3b ldr r3, [r7, #48] @ 0x30
  48509. 8014746: 6a5b ldr r3, [r3, #36] @ 0x24
  48510. 8014748: 2b00 cmp r3, #0
  48511. 801474a: d010 beq.n 801476e <xQueueGenericSend+0x112>
  48512. {
  48513. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  48514. 801474c: 6b3b ldr r3, [r7, #48] @ 0x30
  48515. 801474e: 3324 adds r3, #36 @ 0x24
  48516. 8014750: 4618 mov r0, r3
  48517. 8014752: f001 fb7b bl 8015e4c <xTaskRemoveFromEventList>
  48518. 8014756: 4603 mov r3, r0
  48519. 8014758: 2b00 cmp r3, #0
  48520. 801475a: d013 beq.n 8014784 <xQueueGenericSend+0x128>
  48521. {
  48522. /* The unblocked task has a priority higher than
  48523. our own so yield immediately. Yes it is ok to do
  48524. this from within the critical section - the kernel
  48525. takes care of that. */
  48526. queueYIELD_IF_USING_PREEMPTION();
  48527. 801475c: 4b3f ldr r3, [pc, #252] @ (801485c <xQueueGenericSend+0x200>)
  48528. 801475e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48529. 8014762: 601a str r2, [r3, #0]
  48530. 8014764: f3bf 8f4f dsb sy
  48531. 8014768: f3bf 8f6f isb sy
  48532. 801476c: e00a b.n 8014784 <xQueueGenericSend+0x128>
  48533. else
  48534. {
  48535. mtCOVERAGE_TEST_MARKER();
  48536. }
  48537. }
  48538. else if( xYieldRequired != pdFALSE )
  48539. 801476e: 6afb ldr r3, [r7, #44] @ 0x2c
  48540. 8014770: 2b00 cmp r3, #0
  48541. 8014772: d007 beq.n 8014784 <xQueueGenericSend+0x128>
  48542. {
  48543. /* This path is a special case that will only get
  48544. executed if the task was holding multiple mutexes and
  48545. the mutexes were given back in an order that is
  48546. different to that in which they were taken. */
  48547. queueYIELD_IF_USING_PREEMPTION();
  48548. 8014774: 4b39 ldr r3, [pc, #228] @ (801485c <xQueueGenericSend+0x200>)
  48549. 8014776: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48550. 801477a: 601a str r2, [r3, #0]
  48551. 801477c: f3bf 8f4f dsb sy
  48552. 8014780: f3bf 8f6f isb sy
  48553. mtCOVERAGE_TEST_MARKER();
  48554. }
  48555. }
  48556. #endif /* configUSE_QUEUE_SETS */
  48557. taskEXIT_CRITICAL();
  48558. 8014784: f002 ff1a bl 80175bc <vPortExitCritical>
  48559. return pdPASS;
  48560. 8014788: 2301 movs r3, #1
  48561. 801478a: e063 b.n 8014854 <xQueueGenericSend+0x1f8>
  48562. }
  48563. else
  48564. {
  48565. if( xTicksToWait == ( TickType_t ) 0 )
  48566. 801478c: 687b ldr r3, [r7, #4]
  48567. 801478e: 2b00 cmp r3, #0
  48568. 8014790: d103 bne.n 801479a <xQueueGenericSend+0x13e>
  48569. {
  48570. /* The queue was full and no block time is specified (or
  48571. the block time has expired) so leave now. */
  48572. taskEXIT_CRITICAL();
  48573. 8014792: f002 ff13 bl 80175bc <vPortExitCritical>
  48574. /* Return to the original privilege level before exiting
  48575. the function. */
  48576. traceQUEUE_SEND_FAILED( pxQueue );
  48577. return errQUEUE_FULL;
  48578. 8014796: 2300 movs r3, #0
  48579. 8014798: e05c b.n 8014854 <xQueueGenericSend+0x1f8>
  48580. }
  48581. else if( xEntryTimeSet == pdFALSE )
  48582. 801479a: 6b7b ldr r3, [r7, #52] @ 0x34
  48583. 801479c: 2b00 cmp r3, #0
  48584. 801479e: d106 bne.n 80147ae <xQueueGenericSend+0x152>
  48585. {
  48586. /* The queue was full and a block time was specified so
  48587. configure the timeout structure. */
  48588. vTaskInternalSetTimeOutState( &xTimeOut );
  48589. 80147a0: f107 0314 add.w r3, r7, #20
  48590. 80147a4: 4618 mov r0, r3
  48591. 80147a6: f001 fbdd bl 8015f64 <vTaskInternalSetTimeOutState>
  48592. xEntryTimeSet = pdTRUE;
  48593. 80147aa: 2301 movs r3, #1
  48594. 80147ac: 637b str r3, [r7, #52] @ 0x34
  48595. /* Entry time was already set. */
  48596. mtCOVERAGE_TEST_MARKER();
  48597. }
  48598. }
  48599. }
  48600. taskEXIT_CRITICAL();
  48601. 80147ae: f002 ff05 bl 80175bc <vPortExitCritical>
  48602. /* Interrupts and other tasks can send to and receive from the queue
  48603. now the critical section has been exited. */
  48604. vTaskSuspendAll();
  48605. 80147b2: f001 f90f bl 80159d4 <vTaskSuspendAll>
  48606. prvLockQueue( pxQueue );
  48607. 80147b6: f002 fecf bl 8017558 <vPortEnterCritical>
  48608. 80147ba: 6b3b ldr r3, [r7, #48] @ 0x30
  48609. 80147bc: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  48610. 80147c0: b25b sxtb r3, r3
  48611. 80147c2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48612. 80147c6: d103 bne.n 80147d0 <xQueueGenericSend+0x174>
  48613. 80147c8: 6b3b ldr r3, [r7, #48] @ 0x30
  48614. 80147ca: 2200 movs r2, #0
  48615. 80147cc: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48616. 80147d0: 6b3b ldr r3, [r7, #48] @ 0x30
  48617. 80147d2: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48618. 80147d6: b25b sxtb r3, r3
  48619. 80147d8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48620. 80147dc: d103 bne.n 80147e6 <xQueueGenericSend+0x18a>
  48621. 80147de: 6b3b ldr r3, [r7, #48] @ 0x30
  48622. 80147e0: 2200 movs r2, #0
  48623. 80147e2: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48624. 80147e6: f002 fee9 bl 80175bc <vPortExitCritical>
  48625. /* Update the timeout state to see if it has expired yet. */
  48626. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  48627. 80147ea: 1d3a adds r2, r7, #4
  48628. 80147ec: f107 0314 add.w r3, r7, #20
  48629. 80147f0: 4611 mov r1, r2
  48630. 80147f2: 4618 mov r0, r3
  48631. 80147f4: f001 fbcc bl 8015f90 <xTaskCheckForTimeOut>
  48632. 80147f8: 4603 mov r3, r0
  48633. 80147fa: 2b00 cmp r3, #0
  48634. 80147fc: d124 bne.n 8014848 <xQueueGenericSend+0x1ec>
  48635. {
  48636. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  48637. 80147fe: 6b38 ldr r0, [r7, #48] @ 0x30
  48638. 8014800: f000 fc50 bl 80150a4 <prvIsQueueFull>
  48639. 8014804: 4603 mov r3, r0
  48640. 8014806: 2b00 cmp r3, #0
  48641. 8014808: d018 beq.n 801483c <xQueueGenericSend+0x1e0>
  48642. {
  48643. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  48644. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  48645. 801480a: 6b3b ldr r3, [r7, #48] @ 0x30
  48646. 801480c: 3310 adds r3, #16
  48647. 801480e: 687a ldr r2, [r7, #4]
  48648. 8014810: 4611 mov r1, r2
  48649. 8014812: 4618 mov r0, r3
  48650. 8014814: f001 fac8 bl 8015da8 <vTaskPlaceOnEventList>
  48651. /* Unlocking the queue means queue events can effect the
  48652. event list. It is possible that interrupts occurring now
  48653. remove this task from the event list again - but as the
  48654. scheduler is suspended the task will go onto the pending
  48655. ready last instead of the actual ready list. */
  48656. prvUnlockQueue( pxQueue );
  48657. 8014818: 6b38 ldr r0, [r7, #48] @ 0x30
  48658. 801481a: f000 fbdb bl 8014fd4 <prvUnlockQueue>
  48659. /* Resuming the scheduler will move tasks from the pending
  48660. ready list into the ready list - so it is feasible that this
  48661. task is already in a ready list before it yields - in which
  48662. case the yield will not cause a context switch unless there
  48663. is also a higher priority task in the pending ready list. */
  48664. if( xTaskResumeAll() == pdFALSE )
  48665. 801481e: f001 f8e7 bl 80159f0 <xTaskResumeAll>
  48666. 8014822: 4603 mov r3, r0
  48667. 8014824: 2b00 cmp r3, #0
  48668. 8014826: f47f af7c bne.w 8014722 <xQueueGenericSend+0xc6>
  48669. {
  48670. portYIELD_WITHIN_API();
  48671. 801482a: 4b0c ldr r3, [pc, #48] @ (801485c <xQueueGenericSend+0x200>)
  48672. 801482c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48673. 8014830: 601a str r2, [r3, #0]
  48674. 8014832: f3bf 8f4f dsb sy
  48675. 8014836: f3bf 8f6f isb sy
  48676. 801483a: e772 b.n 8014722 <xQueueGenericSend+0xc6>
  48677. }
  48678. }
  48679. else
  48680. {
  48681. /* Try again. */
  48682. prvUnlockQueue( pxQueue );
  48683. 801483c: 6b38 ldr r0, [r7, #48] @ 0x30
  48684. 801483e: f000 fbc9 bl 8014fd4 <prvUnlockQueue>
  48685. ( void ) xTaskResumeAll();
  48686. 8014842: f001 f8d5 bl 80159f0 <xTaskResumeAll>
  48687. 8014846: e76c b.n 8014722 <xQueueGenericSend+0xc6>
  48688. }
  48689. }
  48690. else
  48691. {
  48692. /* The timeout has expired. */
  48693. prvUnlockQueue( pxQueue );
  48694. 8014848: 6b38 ldr r0, [r7, #48] @ 0x30
  48695. 801484a: f000 fbc3 bl 8014fd4 <prvUnlockQueue>
  48696. ( void ) xTaskResumeAll();
  48697. 801484e: f001 f8cf bl 80159f0 <xTaskResumeAll>
  48698. traceQUEUE_SEND_FAILED( pxQueue );
  48699. return errQUEUE_FULL;
  48700. 8014852: 2300 movs r3, #0
  48701. }
  48702. } /*lint -restore */
  48703. }
  48704. 8014854: 4618 mov r0, r3
  48705. 8014856: 3738 adds r7, #56 @ 0x38
  48706. 8014858: 46bd mov sp, r7
  48707. 801485a: bd80 pop {r7, pc}
  48708. 801485c: e000ed04 .word 0xe000ed04
  48709. 08014860 <xQueueGenericSendFromISR>:
  48710. /*-----------------------------------------------------------*/
  48711. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  48712. {
  48713. 8014860: b580 push {r7, lr}
  48714. 8014862: b090 sub sp, #64 @ 0x40
  48715. 8014864: af00 add r7, sp, #0
  48716. 8014866: 60f8 str r0, [r7, #12]
  48717. 8014868: 60b9 str r1, [r7, #8]
  48718. 801486a: 607a str r2, [r7, #4]
  48719. 801486c: 603b str r3, [r7, #0]
  48720. BaseType_t xReturn;
  48721. UBaseType_t uxSavedInterruptStatus;
  48722. Queue_t * const pxQueue = xQueue;
  48723. 801486e: 68fb ldr r3, [r7, #12]
  48724. 8014870: 63bb str r3, [r7, #56] @ 0x38
  48725. configASSERT( pxQueue );
  48726. 8014872: 6bbb ldr r3, [r7, #56] @ 0x38
  48727. 8014874: 2b00 cmp r3, #0
  48728. 8014876: d10b bne.n 8014890 <xQueueGenericSendFromISR+0x30>
  48729. __asm volatile
  48730. 8014878: f04f 0350 mov.w r3, #80 @ 0x50
  48731. 801487c: f383 8811 msr BASEPRI, r3
  48732. 8014880: f3bf 8f6f isb sy
  48733. 8014884: f3bf 8f4f dsb sy
  48734. 8014888: 62bb str r3, [r7, #40] @ 0x28
  48735. }
  48736. 801488a: bf00 nop
  48737. 801488c: bf00 nop
  48738. 801488e: e7fd b.n 801488c <xQueueGenericSendFromISR+0x2c>
  48739. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48740. 8014890: 68bb ldr r3, [r7, #8]
  48741. 8014892: 2b00 cmp r3, #0
  48742. 8014894: d103 bne.n 801489e <xQueueGenericSendFromISR+0x3e>
  48743. 8014896: 6bbb ldr r3, [r7, #56] @ 0x38
  48744. 8014898: 6c1b ldr r3, [r3, #64] @ 0x40
  48745. 801489a: 2b00 cmp r3, #0
  48746. 801489c: d101 bne.n 80148a2 <xQueueGenericSendFromISR+0x42>
  48747. 801489e: 2301 movs r3, #1
  48748. 80148a0: e000 b.n 80148a4 <xQueueGenericSendFromISR+0x44>
  48749. 80148a2: 2300 movs r3, #0
  48750. 80148a4: 2b00 cmp r3, #0
  48751. 80148a6: d10b bne.n 80148c0 <xQueueGenericSendFromISR+0x60>
  48752. __asm volatile
  48753. 80148a8: f04f 0350 mov.w r3, #80 @ 0x50
  48754. 80148ac: f383 8811 msr BASEPRI, r3
  48755. 80148b0: f3bf 8f6f isb sy
  48756. 80148b4: f3bf 8f4f dsb sy
  48757. 80148b8: 627b str r3, [r7, #36] @ 0x24
  48758. }
  48759. 80148ba: bf00 nop
  48760. 80148bc: bf00 nop
  48761. 80148be: e7fd b.n 80148bc <xQueueGenericSendFromISR+0x5c>
  48762. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  48763. 80148c0: 683b ldr r3, [r7, #0]
  48764. 80148c2: 2b02 cmp r3, #2
  48765. 80148c4: d103 bne.n 80148ce <xQueueGenericSendFromISR+0x6e>
  48766. 80148c6: 6bbb ldr r3, [r7, #56] @ 0x38
  48767. 80148c8: 6bdb ldr r3, [r3, #60] @ 0x3c
  48768. 80148ca: 2b01 cmp r3, #1
  48769. 80148cc: d101 bne.n 80148d2 <xQueueGenericSendFromISR+0x72>
  48770. 80148ce: 2301 movs r3, #1
  48771. 80148d0: e000 b.n 80148d4 <xQueueGenericSendFromISR+0x74>
  48772. 80148d2: 2300 movs r3, #0
  48773. 80148d4: 2b00 cmp r3, #0
  48774. 80148d6: d10b bne.n 80148f0 <xQueueGenericSendFromISR+0x90>
  48775. __asm volatile
  48776. 80148d8: f04f 0350 mov.w r3, #80 @ 0x50
  48777. 80148dc: f383 8811 msr BASEPRI, r3
  48778. 80148e0: f3bf 8f6f isb sy
  48779. 80148e4: f3bf 8f4f dsb sy
  48780. 80148e8: 623b str r3, [r7, #32]
  48781. }
  48782. 80148ea: bf00 nop
  48783. 80148ec: bf00 nop
  48784. 80148ee: e7fd b.n 80148ec <xQueueGenericSendFromISR+0x8c>
  48785. that have been assigned a priority at or (logically) below the maximum
  48786. system call interrupt priority. FreeRTOS maintains a separate interrupt
  48787. safe API to ensure interrupt entry is as fast and as simple as possible.
  48788. More information (albeit Cortex-M specific) is provided on the following
  48789. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  48790. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  48791. 80148f0: f002 ff12 bl 8017718 <vPortValidateInterruptPriority>
  48792. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  48793. {
  48794. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  48795. __asm volatile
  48796. 80148f4: f3ef 8211 mrs r2, BASEPRI
  48797. 80148f8: f04f 0350 mov.w r3, #80 @ 0x50
  48798. 80148fc: f383 8811 msr BASEPRI, r3
  48799. 8014900: f3bf 8f6f isb sy
  48800. 8014904: f3bf 8f4f dsb sy
  48801. 8014908: 61fa str r2, [r7, #28]
  48802. 801490a: 61bb str r3, [r7, #24]
  48803. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48804. );
  48805. /* This return will not be reached but is necessary to prevent compiler
  48806. warnings. */
  48807. return ulOriginalBASEPRI;
  48808. 801490c: 69fb ldr r3, [r7, #28]
  48809. /* Similar to xQueueGenericSend, except without blocking if there is no room
  48810. in the queue. Also don't directly wake a task that was blocked on a queue
  48811. read, instead return a flag to say whether a context switch is required or
  48812. not (i.e. has a task with a higher priority than us been woken by this
  48813. post). */
  48814. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  48815. 801490e: 637b str r3, [r7, #52] @ 0x34
  48816. {
  48817. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  48818. 8014910: 6bbb ldr r3, [r7, #56] @ 0x38
  48819. 8014912: 6b9a ldr r2, [r3, #56] @ 0x38
  48820. 8014914: 6bbb ldr r3, [r7, #56] @ 0x38
  48821. 8014916: 6bdb ldr r3, [r3, #60] @ 0x3c
  48822. 8014918: 429a cmp r2, r3
  48823. 801491a: d302 bcc.n 8014922 <xQueueGenericSendFromISR+0xc2>
  48824. 801491c: 683b ldr r3, [r7, #0]
  48825. 801491e: 2b02 cmp r3, #2
  48826. 8014920: d12f bne.n 8014982 <xQueueGenericSendFromISR+0x122>
  48827. {
  48828. const int8_t cTxLock = pxQueue->cTxLock;
  48829. 8014922: 6bbb ldr r3, [r7, #56] @ 0x38
  48830. 8014924: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48831. 8014928: f887 3033 strb.w r3, [r7, #51] @ 0x33
  48832. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  48833. 801492c: 6bbb ldr r3, [r7, #56] @ 0x38
  48834. 801492e: 6b9b ldr r3, [r3, #56] @ 0x38
  48835. 8014930: 62fb str r3, [r7, #44] @ 0x2c
  48836. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  48837. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  48838. in a task disinheriting a priority and prvCopyDataToQueue() can be
  48839. called here even though the disinherit function does not check if
  48840. the scheduler is suspended before accessing the ready lists. */
  48841. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  48842. 8014932: 683a ldr r2, [r7, #0]
  48843. 8014934: 68b9 ldr r1, [r7, #8]
  48844. 8014936: 6bb8 ldr r0, [r7, #56] @ 0x38
  48845. 8014938: f000 fabc bl 8014eb4 <prvCopyDataToQueue>
  48846. /* The event list is not altered if the queue is locked. This will
  48847. be done when the queue is unlocked later. */
  48848. if( cTxLock == queueUNLOCKED )
  48849. 801493c: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  48850. 8014940: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48851. 8014944: d112 bne.n 801496c <xQueueGenericSendFromISR+0x10c>
  48852. }
  48853. }
  48854. }
  48855. #else /* configUSE_QUEUE_SETS */
  48856. {
  48857. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  48858. 8014946: 6bbb ldr r3, [r7, #56] @ 0x38
  48859. 8014948: 6a5b ldr r3, [r3, #36] @ 0x24
  48860. 801494a: 2b00 cmp r3, #0
  48861. 801494c: d016 beq.n 801497c <xQueueGenericSendFromISR+0x11c>
  48862. {
  48863. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  48864. 801494e: 6bbb ldr r3, [r7, #56] @ 0x38
  48865. 8014950: 3324 adds r3, #36 @ 0x24
  48866. 8014952: 4618 mov r0, r3
  48867. 8014954: f001 fa7a bl 8015e4c <xTaskRemoveFromEventList>
  48868. 8014958: 4603 mov r3, r0
  48869. 801495a: 2b00 cmp r3, #0
  48870. 801495c: d00e beq.n 801497c <xQueueGenericSendFromISR+0x11c>
  48871. {
  48872. /* The task waiting has a higher priority so record that a
  48873. context switch is required. */
  48874. if( pxHigherPriorityTaskWoken != NULL )
  48875. 801495e: 687b ldr r3, [r7, #4]
  48876. 8014960: 2b00 cmp r3, #0
  48877. 8014962: d00b beq.n 801497c <xQueueGenericSendFromISR+0x11c>
  48878. {
  48879. *pxHigherPriorityTaskWoken = pdTRUE;
  48880. 8014964: 687b ldr r3, [r7, #4]
  48881. 8014966: 2201 movs r2, #1
  48882. 8014968: 601a str r2, [r3, #0]
  48883. 801496a: e007 b.n 801497c <xQueueGenericSendFromISR+0x11c>
  48884. }
  48885. else
  48886. {
  48887. /* Increment the lock count so the task that unlocks the queue
  48888. knows that data was posted while it was locked. */
  48889. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  48890. 801496c: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  48891. 8014970: 3301 adds r3, #1
  48892. 8014972: b2db uxtb r3, r3
  48893. 8014974: b25a sxtb r2, r3
  48894. 8014976: 6bbb ldr r3, [r7, #56] @ 0x38
  48895. 8014978: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48896. }
  48897. xReturn = pdPASS;
  48898. 801497c: 2301 movs r3, #1
  48899. 801497e: 63fb str r3, [r7, #60] @ 0x3c
  48900. {
  48901. 8014980: e001 b.n 8014986 <xQueueGenericSendFromISR+0x126>
  48902. }
  48903. else
  48904. {
  48905. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  48906. xReturn = errQUEUE_FULL;
  48907. 8014982: 2300 movs r3, #0
  48908. 8014984: 63fb str r3, [r7, #60] @ 0x3c
  48909. 8014986: 6b7b ldr r3, [r7, #52] @ 0x34
  48910. 8014988: 617b str r3, [r7, #20]
  48911. }
  48912. /*-----------------------------------------------------------*/
  48913. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  48914. {
  48915. __asm volatile
  48916. 801498a: 697b ldr r3, [r7, #20]
  48917. 801498c: f383 8811 msr BASEPRI, r3
  48918. (
  48919. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  48920. );
  48921. }
  48922. 8014990: bf00 nop
  48923. }
  48924. }
  48925. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  48926. return xReturn;
  48927. 8014992: 6bfb ldr r3, [r7, #60] @ 0x3c
  48928. }
  48929. 8014994: 4618 mov r0, r3
  48930. 8014996: 3740 adds r7, #64 @ 0x40
  48931. 8014998: 46bd mov sp, r7
  48932. 801499a: bd80 pop {r7, pc}
  48933. 0801499c <xQueueReceive>:
  48934. return xReturn;
  48935. }
  48936. /*-----------------------------------------------------------*/
  48937. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  48938. {
  48939. 801499c: b580 push {r7, lr}
  48940. 801499e: b08c sub sp, #48 @ 0x30
  48941. 80149a0: af00 add r7, sp, #0
  48942. 80149a2: 60f8 str r0, [r7, #12]
  48943. 80149a4: 60b9 str r1, [r7, #8]
  48944. 80149a6: 607a str r2, [r7, #4]
  48945. BaseType_t xEntryTimeSet = pdFALSE;
  48946. 80149a8: 2300 movs r3, #0
  48947. 80149aa: 62fb str r3, [r7, #44] @ 0x2c
  48948. TimeOut_t xTimeOut;
  48949. Queue_t * const pxQueue = xQueue;
  48950. 80149ac: 68fb ldr r3, [r7, #12]
  48951. 80149ae: 62bb str r3, [r7, #40] @ 0x28
  48952. /* Check the pointer is not NULL. */
  48953. configASSERT( ( pxQueue ) );
  48954. 80149b0: 6abb ldr r3, [r7, #40] @ 0x28
  48955. 80149b2: 2b00 cmp r3, #0
  48956. 80149b4: d10b bne.n 80149ce <xQueueReceive+0x32>
  48957. __asm volatile
  48958. 80149b6: f04f 0350 mov.w r3, #80 @ 0x50
  48959. 80149ba: f383 8811 msr BASEPRI, r3
  48960. 80149be: f3bf 8f6f isb sy
  48961. 80149c2: f3bf 8f4f dsb sy
  48962. 80149c6: 623b str r3, [r7, #32]
  48963. }
  48964. 80149c8: bf00 nop
  48965. 80149ca: bf00 nop
  48966. 80149cc: e7fd b.n 80149ca <xQueueReceive+0x2e>
  48967. /* The buffer into which data is received can only be NULL if the data size
  48968. is zero (so no data is copied into the buffer. */
  48969. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48970. 80149ce: 68bb ldr r3, [r7, #8]
  48971. 80149d0: 2b00 cmp r3, #0
  48972. 80149d2: d103 bne.n 80149dc <xQueueReceive+0x40>
  48973. 80149d4: 6abb ldr r3, [r7, #40] @ 0x28
  48974. 80149d6: 6c1b ldr r3, [r3, #64] @ 0x40
  48975. 80149d8: 2b00 cmp r3, #0
  48976. 80149da: d101 bne.n 80149e0 <xQueueReceive+0x44>
  48977. 80149dc: 2301 movs r3, #1
  48978. 80149de: e000 b.n 80149e2 <xQueueReceive+0x46>
  48979. 80149e0: 2300 movs r3, #0
  48980. 80149e2: 2b00 cmp r3, #0
  48981. 80149e4: d10b bne.n 80149fe <xQueueReceive+0x62>
  48982. __asm volatile
  48983. 80149e6: f04f 0350 mov.w r3, #80 @ 0x50
  48984. 80149ea: f383 8811 msr BASEPRI, r3
  48985. 80149ee: f3bf 8f6f isb sy
  48986. 80149f2: f3bf 8f4f dsb sy
  48987. 80149f6: 61fb str r3, [r7, #28]
  48988. }
  48989. 80149f8: bf00 nop
  48990. 80149fa: bf00 nop
  48991. 80149fc: e7fd b.n 80149fa <xQueueReceive+0x5e>
  48992. /* Cannot block if the scheduler is suspended. */
  48993. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48994. {
  48995. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48996. 80149fe: f001 fc23 bl 8016248 <xTaskGetSchedulerState>
  48997. 8014a02: 4603 mov r3, r0
  48998. 8014a04: 2b00 cmp r3, #0
  48999. 8014a06: d102 bne.n 8014a0e <xQueueReceive+0x72>
  49000. 8014a08: 687b ldr r3, [r7, #4]
  49001. 8014a0a: 2b00 cmp r3, #0
  49002. 8014a0c: d101 bne.n 8014a12 <xQueueReceive+0x76>
  49003. 8014a0e: 2301 movs r3, #1
  49004. 8014a10: e000 b.n 8014a14 <xQueueReceive+0x78>
  49005. 8014a12: 2300 movs r3, #0
  49006. 8014a14: 2b00 cmp r3, #0
  49007. 8014a16: d10b bne.n 8014a30 <xQueueReceive+0x94>
  49008. __asm volatile
  49009. 8014a18: f04f 0350 mov.w r3, #80 @ 0x50
  49010. 8014a1c: f383 8811 msr BASEPRI, r3
  49011. 8014a20: f3bf 8f6f isb sy
  49012. 8014a24: f3bf 8f4f dsb sy
  49013. 8014a28: 61bb str r3, [r7, #24]
  49014. }
  49015. 8014a2a: bf00 nop
  49016. 8014a2c: bf00 nop
  49017. 8014a2e: e7fd b.n 8014a2c <xQueueReceive+0x90>
  49018. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49019. allow return statements within the function itself. This is done in the
  49020. interest of execution time efficiency. */
  49021. for( ;; )
  49022. {
  49023. taskENTER_CRITICAL();
  49024. 8014a30: f002 fd92 bl 8017558 <vPortEnterCritical>
  49025. {
  49026. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49027. 8014a34: 6abb ldr r3, [r7, #40] @ 0x28
  49028. 8014a36: 6b9b ldr r3, [r3, #56] @ 0x38
  49029. 8014a38: 627b str r3, [r7, #36] @ 0x24
  49030. /* Is there data in the queue now? To be running the calling task
  49031. must be the highest priority task wanting to access the queue. */
  49032. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49033. 8014a3a: 6a7b ldr r3, [r7, #36] @ 0x24
  49034. 8014a3c: 2b00 cmp r3, #0
  49035. 8014a3e: d01f beq.n 8014a80 <xQueueReceive+0xe4>
  49036. {
  49037. /* Data available, remove one item. */
  49038. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49039. 8014a40: 68b9 ldr r1, [r7, #8]
  49040. 8014a42: 6ab8 ldr r0, [r7, #40] @ 0x28
  49041. 8014a44: f000 faa0 bl 8014f88 <prvCopyDataFromQueue>
  49042. traceQUEUE_RECEIVE( pxQueue );
  49043. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49044. 8014a48: 6a7b ldr r3, [r7, #36] @ 0x24
  49045. 8014a4a: 1e5a subs r2, r3, #1
  49046. 8014a4c: 6abb ldr r3, [r7, #40] @ 0x28
  49047. 8014a4e: 639a str r2, [r3, #56] @ 0x38
  49048. /* There is now space in the queue, were any tasks waiting to
  49049. post to the queue? If so, unblock the highest priority waiting
  49050. task. */
  49051. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49052. 8014a50: 6abb ldr r3, [r7, #40] @ 0x28
  49053. 8014a52: 691b ldr r3, [r3, #16]
  49054. 8014a54: 2b00 cmp r3, #0
  49055. 8014a56: d00f beq.n 8014a78 <xQueueReceive+0xdc>
  49056. {
  49057. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49058. 8014a58: 6abb ldr r3, [r7, #40] @ 0x28
  49059. 8014a5a: 3310 adds r3, #16
  49060. 8014a5c: 4618 mov r0, r3
  49061. 8014a5e: f001 f9f5 bl 8015e4c <xTaskRemoveFromEventList>
  49062. 8014a62: 4603 mov r3, r0
  49063. 8014a64: 2b00 cmp r3, #0
  49064. 8014a66: d007 beq.n 8014a78 <xQueueReceive+0xdc>
  49065. {
  49066. queueYIELD_IF_USING_PREEMPTION();
  49067. 8014a68: 4b3c ldr r3, [pc, #240] @ (8014b5c <xQueueReceive+0x1c0>)
  49068. 8014a6a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49069. 8014a6e: 601a str r2, [r3, #0]
  49070. 8014a70: f3bf 8f4f dsb sy
  49071. 8014a74: f3bf 8f6f isb sy
  49072. else
  49073. {
  49074. mtCOVERAGE_TEST_MARKER();
  49075. }
  49076. taskEXIT_CRITICAL();
  49077. 8014a78: f002 fda0 bl 80175bc <vPortExitCritical>
  49078. return pdPASS;
  49079. 8014a7c: 2301 movs r3, #1
  49080. 8014a7e: e069 b.n 8014b54 <xQueueReceive+0x1b8>
  49081. }
  49082. else
  49083. {
  49084. if( xTicksToWait == ( TickType_t ) 0 )
  49085. 8014a80: 687b ldr r3, [r7, #4]
  49086. 8014a82: 2b00 cmp r3, #0
  49087. 8014a84: d103 bne.n 8014a8e <xQueueReceive+0xf2>
  49088. {
  49089. /* The queue was empty and no block time is specified (or
  49090. the block time has expired) so leave now. */
  49091. taskEXIT_CRITICAL();
  49092. 8014a86: f002 fd99 bl 80175bc <vPortExitCritical>
  49093. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49094. return errQUEUE_EMPTY;
  49095. 8014a8a: 2300 movs r3, #0
  49096. 8014a8c: e062 b.n 8014b54 <xQueueReceive+0x1b8>
  49097. }
  49098. else if( xEntryTimeSet == pdFALSE )
  49099. 8014a8e: 6afb ldr r3, [r7, #44] @ 0x2c
  49100. 8014a90: 2b00 cmp r3, #0
  49101. 8014a92: d106 bne.n 8014aa2 <xQueueReceive+0x106>
  49102. {
  49103. /* The queue was empty and a block time was specified so
  49104. configure the timeout structure. */
  49105. vTaskInternalSetTimeOutState( &xTimeOut );
  49106. 8014a94: f107 0310 add.w r3, r7, #16
  49107. 8014a98: 4618 mov r0, r3
  49108. 8014a9a: f001 fa63 bl 8015f64 <vTaskInternalSetTimeOutState>
  49109. xEntryTimeSet = pdTRUE;
  49110. 8014a9e: 2301 movs r3, #1
  49111. 8014aa0: 62fb str r3, [r7, #44] @ 0x2c
  49112. /* Entry time was already set. */
  49113. mtCOVERAGE_TEST_MARKER();
  49114. }
  49115. }
  49116. }
  49117. taskEXIT_CRITICAL();
  49118. 8014aa2: f002 fd8b bl 80175bc <vPortExitCritical>
  49119. /* Interrupts and other tasks can send to and receive from the queue
  49120. now the critical section has been exited. */
  49121. vTaskSuspendAll();
  49122. 8014aa6: f000 ff95 bl 80159d4 <vTaskSuspendAll>
  49123. prvLockQueue( pxQueue );
  49124. 8014aaa: f002 fd55 bl 8017558 <vPortEnterCritical>
  49125. 8014aae: 6abb ldr r3, [r7, #40] @ 0x28
  49126. 8014ab0: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49127. 8014ab4: b25b sxtb r3, r3
  49128. 8014ab6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49129. 8014aba: d103 bne.n 8014ac4 <xQueueReceive+0x128>
  49130. 8014abc: 6abb ldr r3, [r7, #40] @ 0x28
  49131. 8014abe: 2200 movs r2, #0
  49132. 8014ac0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49133. 8014ac4: 6abb ldr r3, [r7, #40] @ 0x28
  49134. 8014ac6: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49135. 8014aca: b25b sxtb r3, r3
  49136. 8014acc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49137. 8014ad0: d103 bne.n 8014ada <xQueueReceive+0x13e>
  49138. 8014ad2: 6abb ldr r3, [r7, #40] @ 0x28
  49139. 8014ad4: 2200 movs r2, #0
  49140. 8014ad6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49141. 8014ada: f002 fd6f bl 80175bc <vPortExitCritical>
  49142. /* Update the timeout state to see if it has expired yet. */
  49143. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49144. 8014ade: 1d3a adds r2, r7, #4
  49145. 8014ae0: f107 0310 add.w r3, r7, #16
  49146. 8014ae4: 4611 mov r1, r2
  49147. 8014ae6: 4618 mov r0, r3
  49148. 8014ae8: f001 fa52 bl 8015f90 <xTaskCheckForTimeOut>
  49149. 8014aec: 4603 mov r3, r0
  49150. 8014aee: 2b00 cmp r3, #0
  49151. 8014af0: d123 bne.n 8014b3a <xQueueReceive+0x19e>
  49152. {
  49153. /* The timeout has not expired. If the queue is still empty place
  49154. the task on the list of tasks waiting to receive from the queue. */
  49155. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49156. 8014af2: 6ab8 ldr r0, [r7, #40] @ 0x28
  49157. 8014af4: f000 fac0 bl 8015078 <prvIsQueueEmpty>
  49158. 8014af8: 4603 mov r3, r0
  49159. 8014afa: 2b00 cmp r3, #0
  49160. 8014afc: d017 beq.n 8014b2e <xQueueReceive+0x192>
  49161. {
  49162. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  49163. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  49164. 8014afe: 6abb ldr r3, [r7, #40] @ 0x28
  49165. 8014b00: 3324 adds r3, #36 @ 0x24
  49166. 8014b02: 687a ldr r2, [r7, #4]
  49167. 8014b04: 4611 mov r1, r2
  49168. 8014b06: 4618 mov r0, r3
  49169. 8014b08: f001 f94e bl 8015da8 <vTaskPlaceOnEventList>
  49170. prvUnlockQueue( pxQueue );
  49171. 8014b0c: 6ab8 ldr r0, [r7, #40] @ 0x28
  49172. 8014b0e: f000 fa61 bl 8014fd4 <prvUnlockQueue>
  49173. if( xTaskResumeAll() == pdFALSE )
  49174. 8014b12: f000 ff6d bl 80159f0 <xTaskResumeAll>
  49175. 8014b16: 4603 mov r3, r0
  49176. 8014b18: 2b00 cmp r3, #0
  49177. 8014b1a: d189 bne.n 8014a30 <xQueueReceive+0x94>
  49178. {
  49179. portYIELD_WITHIN_API();
  49180. 8014b1c: 4b0f ldr r3, [pc, #60] @ (8014b5c <xQueueReceive+0x1c0>)
  49181. 8014b1e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49182. 8014b22: 601a str r2, [r3, #0]
  49183. 8014b24: f3bf 8f4f dsb sy
  49184. 8014b28: f3bf 8f6f isb sy
  49185. 8014b2c: e780 b.n 8014a30 <xQueueReceive+0x94>
  49186. }
  49187. else
  49188. {
  49189. /* The queue contains data again. Loop back to try and read the
  49190. data. */
  49191. prvUnlockQueue( pxQueue );
  49192. 8014b2e: 6ab8 ldr r0, [r7, #40] @ 0x28
  49193. 8014b30: f000 fa50 bl 8014fd4 <prvUnlockQueue>
  49194. ( void ) xTaskResumeAll();
  49195. 8014b34: f000 ff5c bl 80159f0 <xTaskResumeAll>
  49196. 8014b38: e77a b.n 8014a30 <xQueueReceive+0x94>
  49197. }
  49198. else
  49199. {
  49200. /* Timed out. If there is no data in the queue exit, otherwise loop
  49201. back and attempt to read the data. */
  49202. prvUnlockQueue( pxQueue );
  49203. 8014b3a: 6ab8 ldr r0, [r7, #40] @ 0x28
  49204. 8014b3c: f000 fa4a bl 8014fd4 <prvUnlockQueue>
  49205. ( void ) xTaskResumeAll();
  49206. 8014b40: f000 ff56 bl 80159f0 <xTaskResumeAll>
  49207. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49208. 8014b44: 6ab8 ldr r0, [r7, #40] @ 0x28
  49209. 8014b46: f000 fa97 bl 8015078 <prvIsQueueEmpty>
  49210. 8014b4a: 4603 mov r3, r0
  49211. 8014b4c: 2b00 cmp r3, #0
  49212. 8014b4e: f43f af6f beq.w 8014a30 <xQueueReceive+0x94>
  49213. {
  49214. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49215. return errQUEUE_EMPTY;
  49216. 8014b52: 2300 movs r3, #0
  49217. {
  49218. mtCOVERAGE_TEST_MARKER();
  49219. }
  49220. }
  49221. } /*lint -restore */
  49222. }
  49223. 8014b54: 4618 mov r0, r3
  49224. 8014b56: 3730 adds r7, #48 @ 0x30
  49225. 8014b58: 46bd mov sp, r7
  49226. 8014b5a: bd80 pop {r7, pc}
  49227. 8014b5c: e000ed04 .word 0xe000ed04
  49228. 08014b60 <xQueueSemaphoreTake>:
  49229. /*-----------------------------------------------------------*/
  49230. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  49231. {
  49232. 8014b60: b580 push {r7, lr}
  49233. 8014b62: b08e sub sp, #56 @ 0x38
  49234. 8014b64: af00 add r7, sp, #0
  49235. 8014b66: 6078 str r0, [r7, #4]
  49236. 8014b68: 6039 str r1, [r7, #0]
  49237. BaseType_t xEntryTimeSet = pdFALSE;
  49238. 8014b6a: 2300 movs r3, #0
  49239. 8014b6c: 637b str r3, [r7, #52] @ 0x34
  49240. TimeOut_t xTimeOut;
  49241. Queue_t * const pxQueue = xQueue;
  49242. 8014b6e: 687b ldr r3, [r7, #4]
  49243. 8014b70: 62fb str r3, [r7, #44] @ 0x2c
  49244. #if( configUSE_MUTEXES == 1 )
  49245. BaseType_t xInheritanceOccurred = pdFALSE;
  49246. 8014b72: 2300 movs r3, #0
  49247. 8014b74: 633b str r3, [r7, #48] @ 0x30
  49248. #endif
  49249. /* Check the queue pointer is not NULL. */
  49250. configASSERT( ( pxQueue ) );
  49251. 8014b76: 6afb ldr r3, [r7, #44] @ 0x2c
  49252. 8014b78: 2b00 cmp r3, #0
  49253. 8014b7a: d10b bne.n 8014b94 <xQueueSemaphoreTake+0x34>
  49254. __asm volatile
  49255. 8014b7c: f04f 0350 mov.w r3, #80 @ 0x50
  49256. 8014b80: f383 8811 msr BASEPRI, r3
  49257. 8014b84: f3bf 8f6f isb sy
  49258. 8014b88: f3bf 8f4f dsb sy
  49259. 8014b8c: 623b str r3, [r7, #32]
  49260. }
  49261. 8014b8e: bf00 nop
  49262. 8014b90: bf00 nop
  49263. 8014b92: e7fd b.n 8014b90 <xQueueSemaphoreTake+0x30>
  49264. /* Check this really is a semaphore, in which case the item size will be
  49265. 0. */
  49266. configASSERT( pxQueue->uxItemSize == 0 );
  49267. 8014b94: 6afb ldr r3, [r7, #44] @ 0x2c
  49268. 8014b96: 6c1b ldr r3, [r3, #64] @ 0x40
  49269. 8014b98: 2b00 cmp r3, #0
  49270. 8014b9a: d00b beq.n 8014bb4 <xQueueSemaphoreTake+0x54>
  49271. __asm volatile
  49272. 8014b9c: f04f 0350 mov.w r3, #80 @ 0x50
  49273. 8014ba0: f383 8811 msr BASEPRI, r3
  49274. 8014ba4: f3bf 8f6f isb sy
  49275. 8014ba8: f3bf 8f4f dsb sy
  49276. 8014bac: 61fb str r3, [r7, #28]
  49277. }
  49278. 8014bae: bf00 nop
  49279. 8014bb0: bf00 nop
  49280. 8014bb2: e7fd b.n 8014bb0 <xQueueSemaphoreTake+0x50>
  49281. /* Cannot block if the scheduler is suspended. */
  49282. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49283. {
  49284. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49285. 8014bb4: f001 fb48 bl 8016248 <xTaskGetSchedulerState>
  49286. 8014bb8: 4603 mov r3, r0
  49287. 8014bba: 2b00 cmp r3, #0
  49288. 8014bbc: d102 bne.n 8014bc4 <xQueueSemaphoreTake+0x64>
  49289. 8014bbe: 683b ldr r3, [r7, #0]
  49290. 8014bc0: 2b00 cmp r3, #0
  49291. 8014bc2: d101 bne.n 8014bc8 <xQueueSemaphoreTake+0x68>
  49292. 8014bc4: 2301 movs r3, #1
  49293. 8014bc6: e000 b.n 8014bca <xQueueSemaphoreTake+0x6a>
  49294. 8014bc8: 2300 movs r3, #0
  49295. 8014bca: 2b00 cmp r3, #0
  49296. 8014bcc: d10b bne.n 8014be6 <xQueueSemaphoreTake+0x86>
  49297. __asm volatile
  49298. 8014bce: f04f 0350 mov.w r3, #80 @ 0x50
  49299. 8014bd2: f383 8811 msr BASEPRI, r3
  49300. 8014bd6: f3bf 8f6f isb sy
  49301. 8014bda: f3bf 8f4f dsb sy
  49302. 8014bde: 61bb str r3, [r7, #24]
  49303. }
  49304. 8014be0: bf00 nop
  49305. 8014be2: bf00 nop
  49306. 8014be4: e7fd b.n 8014be2 <xQueueSemaphoreTake+0x82>
  49307. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  49308. statements within the function itself. This is done in the interest
  49309. of execution time efficiency. */
  49310. for( ;; )
  49311. {
  49312. taskENTER_CRITICAL();
  49313. 8014be6: f002 fcb7 bl 8017558 <vPortEnterCritical>
  49314. {
  49315. /* Semaphores are queues with an item size of 0, and where the
  49316. number of messages in the queue is the semaphore's count value. */
  49317. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  49318. 8014bea: 6afb ldr r3, [r7, #44] @ 0x2c
  49319. 8014bec: 6b9b ldr r3, [r3, #56] @ 0x38
  49320. 8014bee: 62bb str r3, [r7, #40] @ 0x28
  49321. /* Is there data in the queue now? To be running the calling task
  49322. must be the highest priority task wanting to access the queue. */
  49323. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  49324. 8014bf0: 6abb ldr r3, [r7, #40] @ 0x28
  49325. 8014bf2: 2b00 cmp r3, #0
  49326. 8014bf4: d024 beq.n 8014c40 <xQueueSemaphoreTake+0xe0>
  49327. {
  49328. traceQUEUE_RECEIVE( pxQueue );
  49329. /* Semaphores are queues with a data size of zero and where the
  49330. messages waiting is the semaphore's count. Reduce the count. */
  49331. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  49332. 8014bf6: 6abb ldr r3, [r7, #40] @ 0x28
  49333. 8014bf8: 1e5a subs r2, r3, #1
  49334. 8014bfa: 6afb ldr r3, [r7, #44] @ 0x2c
  49335. 8014bfc: 639a str r2, [r3, #56] @ 0x38
  49336. #if ( configUSE_MUTEXES == 1 )
  49337. {
  49338. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49339. 8014bfe: 6afb ldr r3, [r7, #44] @ 0x2c
  49340. 8014c00: 681b ldr r3, [r3, #0]
  49341. 8014c02: 2b00 cmp r3, #0
  49342. 8014c04: d104 bne.n 8014c10 <xQueueSemaphoreTake+0xb0>
  49343. {
  49344. /* Record the information required to implement
  49345. priority inheritance should it become necessary. */
  49346. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  49347. 8014c06: f001 fc99 bl 801653c <pvTaskIncrementMutexHeldCount>
  49348. 8014c0a: 4602 mov r2, r0
  49349. 8014c0c: 6afb ldr r3, [r7, #44] @ 0x2c
  49350. 8014c0e: 609a str r2, [r3, #8]
  49351. }
  49352. #endif /* configUSE_MUTEXES */
  49353. /* Check to see if other tasks are blocked waiting to give the
  49354. semaphore, and if so, unblock the highest priority such task. */
  49355. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49356. 8014c10: 6afb ldr r3, [r7, #44] @ 0x2c
  49357. 8014c12: 691b ldr r3, [r3, #16]
  49358. 8014c14: 2b00 cmp r3, #0
  49359. 8014c16: d00f beq.n 8014c38 <xQueueSemaphoreTake+0xd8>
  49360. {
  49361. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49362. 8014c18: 6afb ldr r3, [r7, #44] @ 0x2c
  49363. 8014c1a: 3310 adds r3, #16
  49364. 8014c1c: 4618 mov r0, r3
  49365. 8014c1e: f001 f915 bl 8015e4c <xTaskRemoveFromEventList>
  49366. 8014c22: 4603 mov r3, r0
  49367. 8014c24: 2b00 cmp r3, #0
  49368. 8014c26: d007 beq.n 8014c38 <xQueueSemaphoreTake+0xd8>
  49369. {
  49370. queueYIELD_IF_USING_PREEMPTION();
  49371. 8014c28: 4b54 ldr r3, [pc, #336] @ (8014d7c <xQueueSemaphoreTake+0x21c>)
  49372. 8014c2a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49373. 8014c2e: 601a str r2, [r3, #0]
  49374. 8014c30: f3bf 8f4f dsb sy
  49375. 8014c34: f3bf 8f6f isb sy
  49376. else
  49377. {
  49378. mtCOVERAGE_TEST_MARKER();
  49379. }
  49380. taskEXIT_CRITICAL();
  49381. 8014c38: f002 fcc0 bl 80175bc <vPortExitCritical>
  49382. return pdPASS;
  49383. 8014c3c: 2301 movs r3, #1
  49384. 8014c3e: e098 b.n 8014d72 <xQueueSemaphoreTake+0x212>
  49385. }
  49386. else
  49387. {
  49388. if( xTicksToWait == ( TickType_t ) 0 )
  49389. 8014c40: 683b ldr r3, [r7, #0]
  49390. 8014c42: 2b00 cmp r3, #0
  49391. 8014c44: d112 bne.n 8014c6c <xQueueSemaphoreTake+0x10c>
  49392. /* For inheritance to have occurred there must have been an
  49393. initial timeout, and an adjusted timeout cannot become 0, as
  49394. if it were 0 the function would have exited. */
  49395. #if( configUSE_MUTEXES == 1 )
  49396. {
  49397. configASSERT( xInheritanceOccurred == pdFALSE );
  49398. 8014c46: 6b3b ldr r3, [r7, #48] @ 0x30
  49399. 8014c48: 2b00 cmp r3, #0
  49400. 8014c4a: d00b beq.n 8014c64 <xQueueSemaphoreTake+0x104>
  49401. __asm volatile
  49402. 8014c4c: f04f 0350 mov.w r3, #80 @ 0x50
  49403. 8014c50: f383 8811 msr BASEPRI, r3
  49404. 8014c54: f3bf 8f6f isb sy
  49405. 8014c58: f3bf 8f4f dsb sy
  49406. 8014c5c: 617b str r3, [r7, #20]
  49407. }
  49408. 8014c5e: bf00 nop
  49409. 8014c60: bf00 nop
  49410. 8014c62: e7fd b.n 8014c60 <xQueueSemaphoreTake+0x100>
  49411. }
  49412. #endif /* configUSE_MUTEXES */
  49413. /* The semaphore count was 0 and no block time is specified
  49414. (or the block time has expired) so exit now. */
  49415. taskEXIT_CRITICAL();
  49416. 8014c64: f002 fcaa bl 80175bc <vPortExitCritical>
  49417. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49418. return errQUEUE_EMPTY;
  49419. 8014c68: 2300 movs r3, #0
  49420. 8014c6a: e082 b.n 8014d72 <xQueueSemaphoreTake+0x212>
  49421. }
  49422. else if( xEntryTimeSet == pdFALSE )
  49423. 8014c6c: 6b7b ldr r3, [r7, #52] @ 0x34
  49424. 8014c6e: 2b00 cmp r3, #0
  49425. 8014c70: d106 bne.n 8014c80 <xQueueSemaphoreTake+0x120>
  49426. {
  49427. /* The semaphore count was 0 and a block time was specified
  49428. so configure the timeout structure ready to block. */
  49429. vTaskInternalSetTimeOutState( &xTimeOut );
  49430. 8014c72: f107 030c add.w r3, r7, #12
  49431. 8014c76: 4618 mov r0, r3
  49432. 8014c78: f001 f974 bl 8015f64 <vTaskInternalSetTimeOutState>
  49433. xEntryTimeSet = pdTRUE;
  49434. 8014c7c: 2301 movs r3, #1
  49435. 8014c7e: 637b str r3, [r7, #52] @ 0x34
  49436. /* Entry time was already set. */
  49437. mtCOVERAGE_TEST_MARKER();
  49438. }
  49439. }
  49440. }
  49441. taskEXIT_CRITICAL();
  49442. 8014c80: f002 fc9c bl 80175bc <vPortExitCritical>
  49443. /* Interrupts and other tasks can give to and take from the semaphore
  49444. now the critical section has been exited. */
  49445. vTaskSuspendAll();
  49446. 8014c84: f000 fea6 bl 80159d4 <vTaskSuspendAll>
  49447. prvLockQueue( pxQueue );
  49448. 8014c88: f002 fc66 bl 8017558 <vPortEnterCritical>
  49449. 8014c8c: 6afb ldr r3, [r7, #44] @ 0x2c
  49450. 8014c8e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49451. 8014c92: b25b sxtb r3, r3
  49452. 8014c94: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49453. 8014c98: d103 bne.n 8014ca2 <xQueueSemaphoreTake+0x142>
  49454. 8014c9a: 6afb ldr r3, [r7, #44] @ 0x2c
  49455. 8014c9c: 2200 movs r2, #0
  49456. 8014c9e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49457. 8014ca2: 6afb ldr r3, [r7, #44] @ 0x2c
  49458. 8014ca4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49459. 8014ca8: b25b sxtb r3, r3
  49460. 8014caa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49461. 8014cae: d103 bne.n 8014cb8 <xQueueSemaphoreTake+0x158>
  49462. 8014cb0: 6afb ldr r3, [r7, #44] @ 0x2c
  49463. 8014cb2: 2200 movs r2, #0
  49464. 8014cb4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49465. 8014cb8: f002 fc80 bl 80175bc <vPortExitCritical>
  49466. /* Update the timeout state to see if it has expired yet. */
  49467. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49468. 8014cbc: 463a mov r2, r7
  49469. 8014cbe: f107 030c add.w r3, r7, #12
  49470. 8014cc2: 4611 mov r1, r2
  49471. 8014cc4: 4618 mov r0, r3
  49472. 8014cc6: f001 f963 bl 8015f90 <xTaskCheckForTimeOut>
  49473. 8014cca: 4603 mov r3, r0
  49474. 8014ccc: 2b00 cmp r3, #0
  49475. 8014cce: d132 bne.n 8014d36 <xQueueSemaphoreTake+0x1d6>
  49476. {
  49477. /* A block time is specified and not expired. If the semaphore
  49478. count is 0 then enter the Blocked state to wait for a semaphore to
  49479. become available. As semaphores are implemented with queues the
  49480. queue being empty is equivalent to the semaphore count being 0. */
  49481. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49482. 8014cd0: 6af8 ldr r0, [r7, #44] @ 0x2c
  49483. 8014cd2: f000 f9d1 bl 8015078 <prvIsQueueEmpty>
  49484. 8014cd6: 4603 mov r3, r0
  49485. 8014cd8: 2b00 cmp r3, #0
  49486. 8014cda: d026 beq.n 8014d2a <xQueueSemaphoreTake+0x1ca>
  49487. {
  49488. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  49489. #if ( configUSE_MUTEXES == 1 )
  49490. {
  49491. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49492. 8014cdc: 6afb ldr r3, [r7, #44] @ 0x2c
  49493. 8014cde: 681b ldr r3, [r3, #0]
  49494. 8014ce0: 2b00 cmp r3, #0
  49495. 8014ce2: d109 bne.n 8014cf8 <xQueueSemaphoreTake+0x198>
  49496. {
  49497. taskENTER_CRITICAL();
  49498. 8014ce4: f002 fc38 bl 8017558 <vPortEnterCritical>
  49499. {
  49500. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  49501. 8014ce8: 6afb ldr r3, [r7, #44] @ 0x2c
  49502. 8014cea: 689b ldr r3, [r3, #8]
  49503. 8014cec: 4618 mov r0, r3
  49504. 8014cee: f001 fac9 bl 8016284 <xTaskPriorityInherit>
  49505. 8014cf2: 6338 str r0, [r7, #48] @ 0x30
  49506. }
  49507. taskEXIT_CRITICAL();
  49508. 8014cf4: f002 fc62 bl 80175bc <vPortExitCritical>
  49509. mtCOVERAGE_TEST_MARKER();
  49510. }
  49511. }
  49512. #endif
  49513. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  49514. 8014cf8: 6afb ldr r3, [r7, #44] @ 0x2c
  49515. 8014cfa: 3324 adds r3, #36 @ 0x24
  49516. 8014cfc: 683a ldr r2, [r7, #0]
  49517. 8014cfe: 4611 mov r1, r2
  49518. 8014d00: 4618 mov r0, r3
  49519. 8014d02: f001 f851 bl 8015da8 <vTaskPlaceOnEventList>
  49520. prvUnlockQueue( pxQueue );
  49521. 8014d06: 6af8 ldr r0, [r7, #44] @ 0x2c
  49522. 8014d08: f000 f964 bl 8014fd4 <prvUnlockQueue>
  49523. if( xTaskResumeAll() == pdFALSE )
  49524. 8014d0c: f000 fe70 bl 80159f0 <xTaskResumeAll>
  49525. 8014d10: 4603 mov r3, r0
  49526. 8014d12: 2b00 cmp r3, #0
  49527. 8014d14: f47f af67 bne.w 8014be6 <xQueueSemaphoreTake+0x86>
  49528. {
  49529. portYIELD_WITHIN_API();
  49530. 8014d18: 4b18 ldr r3, [pc, #96] @ (8014d7c <xQueueSemaphoreTake+0x21c>)
  49531. 8014d1a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49532. 8014d1e: 601a str r2, [r3, #0]
  49533. 8014d20: f3bf 8f4f dsb sy
  49534. 8014d24: f3bf 8f6f isb sy
  49535. 8014d28: e75d b.n 8014be6 <xQueueSemaphoreTake+0x86>
  49536. }
  49537. else
  49538. {
  49539. /* There was no timeout and the semaphore count was not 0, so
  49540. attempt to take the semaphore again. */
  49541. prvUnlockQueue( pxQueue );
  49542. 8014d2a: 6af8 ldr r0, [r7, #44] @ 0x2c
  49543. 8014d2c: f000 f952 bl 8014fd4 <prvUnlockQueue>
  49544. ( void ) xTaskResumeAll();
  49545. 8014d30: f000 fe5e bl 80159f0 <xTaskResumeAll>
  49546. 8014d34: e757 b.n 8014be6 <xQueueSemaphoreTake+0x86>
  49547. }
  49548. }
  49549. else
  49550. {
  49551. /* Timed out. */
  49552. prvUnlockQueue( pxQueue );
  49553. 8014d36: 6af8 ldr r0, [r7, #44] @ 0x2c
  49554. 8014d38: f000 f94c bl 8014fd4 <prvUnlockQueue>
  49555. ( void ) xTaskResumeAll();
  49556. 8014d3c: f000 fe58 bl 80159f0 <xTaskResumeAll>
  49557. /* If the semaphore count is 0 exit now as the timeout has
  49558. expired. Otherwise return to attempt to take the semaphore that is
  49559. known to be available. As semaphores are implemented by queues the
  49560. queue being empty is equivalent to the semaphore count being 0. */
  49561. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  49562. 8014d40: 6af8 ldr r0, [r7, #44] @ 0x2c
  49563. 8014d42: f000 f999 bl 8015078 <prvIsQueueEmpty>
  49564. 8014d46: 4603 mov r3, r0
  49565. 8014d48: 2b00 cmp r3, #0
  49566. 8014d4a: f43f af4c beq.w 8014be6 <xQueueSemaphoreTake+0x86>
  49567. #if ( configUSE_MUTEXES == 1 )
  49568. {
  49569. /* xInheritanceOccurred could only have be set if
  49570. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  49571. test the mutex type again to check it is actually a mutex. */
  49572. if( xInheritanceOccurred != pdFALSE )
  49573. 8014d4e: 6b3b ldr r3, [r7, #48] @ 0x30
  49574. 8014d50: 2b00 cmp r3, #0
  49575. 8014d52: d00d beq.n 8014d70 <xQueueSemaphoreTake+0x210>
  49576. {
  49577. taskENTER_CRITICAL();
  49578. 8014d54: f002 fc00 bl 8017558 <vPortEnterCritical>
  49579. /* This task blocking on the mutex caused another
  49580. task to inherit this task's priority. Now this task
  49581. has timed out the priority should be disinherited
  49582. again, but only as low as the next highest priority
  49583. task that is waiting for the same mutex. */
  49584. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  49585. 8014d58: 6af8 ldr r0, [r7, #44] @ 0x2c
  49586. 8014d5a: f000 f893 bl 8014e84 <prvGetDisinheritPriorityAfterTimeout>
  49587. 8014d5e: 6278 str r0, [r7, #36] @ 0x24
  49588. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  49589. 8014d60: 6afb ldr r3, [r7, #44] @ 0x2c
  49590. 8014d62: 689b ldr r3, [r3, #8]
  49591. 8014d64: 6a79 ldr r1, [r7, #36] @ 0x24
  49592. 8014d66: 4618 mov r0, r3
  49593. 8014d68: f001 fb64 bl 8016434 <vTaskPriorityDisinheritAfterTimeout>
  49594. }
  49595. taskEXIT_CRITICAL();
  49596. 8014d6c: f002 fc26 bl 80175bc <vPortExitCritical>
  49597. }
  49598. }
  49599. #endif /* configUSE_MUTEXES */
  49600. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49601. return errQUEUE_EMPTY;
  49602. 8014d70: 2300 movs r3, #0
  49603. {
  49604. mtCOVERAGE_TEST_MARKER();
  49605. }
  49606. }
  49607. } /*lint -restore */
  49608. }
  49609. 8014d72: 4618 mov r0, r3
  49610. 8014d74: 3738 adds r7, #56 @ 0x38
  49611. 8014d76: 46bd mov sp, r7
  49612. 8014d78: bd80 pop {r7, pc}
  49613. 8014d7a: bf00 nop
  49614. 8014d7c: e000ed04 .word 0xe000ed04
  49615. 08014d80 <xQueueReceiveFromISR>:
  49616. } /*lint -restore */
  49617. }
  49618. /*-----------------------------------------------------------*/
  49619. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  49620. {
  49621. 8014d80: b580 push {r7, lr}
  49622. 8014d82: b08e sub sp, #56 @ 0x38
  49623. 8014d84: af00 add r7, sp, #0
  49624. 8014d86: 60f8 str r0, [r7, #12]
  49625. 8014d88: 60b9 str r1, [r7, #8]
  49626. 8014d8a: 607a str r2, [r7, #4]
  49627. BaseType_t xReturn;
  49628. UBaseType_t uxSavedInterruptStatus;
  49629. Queue_t * const pxQueue = xQueue;
  49630. 8014d8c: 68fb ldr r3, [r7, #12]
  49631. 8014d8e: 633b str r3, [r7, #48] @ 0x30
  49632. configASSERT( pxQueue );
  49633. 8014d90: 6b3b ldr r3, [r7, #48] @ 0x30
  49634. 8014d92: 2b00 cmp r3, #0
  49635. 8014d94: d10b bne.n 8014dae <xQueueReceiveFromISR+0x2e>
  49636. __asm volatile
  49637. 8014d96: f04f 0350 mov.w r3, #80 @ 0x50
  49638. 8014d9a: f383 8811 msr BASEPRI, r3
  49639. 8014d9e: f3bf 8f6f isb sy
  49640. 8014da2: f3bf 8f4f dsb sy
  49641. 8014da6: 623b str r3, [r7, #32]
  49642. }
  49643. 8014da8: bf00 nop
  49644. 8014daa: bf00 nop
  49645. 8014dac: e7fd b.n 8014daa <xQueueReceiveFromISR+0x2a>
  49646. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49647. 8014dae: 68bb ldr r3, [r7, #8]
  49648. 8014db0: 2b00 cmp r3, #0
  49649. 8014db2: d103 bne.n 8014dbc <xQueueReceiveFromISR+0x3c>
  49650. 8014db4: 6b3b ldr r3, [r7, #48] @ 0x30
  49651. 8014db6: 6c1b ldr r3, [r3, #64] @ 0x40
  49652. 8014db8: 2b00 cmp r3, #0
  49653. 8014dba: d101 bne.n 8014dc0 <xQueueReceiveFromISR+0x40>
  49654. 8014dbc: 2301 movs r3, #1
  49655. 8014dbe: e000 b.n 8014dc2 <xQueueReceiveFromISR+0x42>
  49656. 8014dc0: 2300 movs r3, #0
  49657. 8014dc2: 2b00 cmp r3, #0
  49658. 8014dc4: d10b bne.n 8014dde <xQueueReceiveFromISR+0x5e>
  49659. __asm volatile
  49660. 8014dc6: f04f 0350 mov.w r3, #80 @ 0x50
  49661. 8014dca: f383 8811 msr BASEPRI, r3
  49662. 8014dce: f3bf 8f6f isb sy
  49663. 8014dd2: f3bf 8f4f dsb sy
  49664. 8014dd6: 61fb str r3, [r7, #28]
  49665. }
  49666. 8014dd8: bf00 nop
  49667. 8014dda: bf00 nop
  49668. 8014ddc: e7fd b.n 8014dda <xQueueReceiveFromISR+0x5a>
  49669. that have been assigned a priority at or (logically) below the maximum
  49670. system call interrupt priority. FreeRTOS maintains a separate interrupt
  49671. safe API to ensure interrupt entry is as fast and as simple as possible.
  49672. More information (albeit Cortex-M specific) is provided on the following
  49673. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49674. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49675. 8014dde: f002 fc9b bl 8017718 <vPortValidateInterruptPriority>
  49676. __asm volatile
  49677. 8014de2: f3ef 8211 mrs r2, BASEPRI
  49678. 8014de6: f04f 0350 mov.w r3, #80 @ 0x50
  49679. 8014dea: f383 8811 msr BASEPRI, r3
  49680. 8014dee: f3bf 8f6f isb sy
  49681. 8014df2: f3bf 8f4f dsb sy
  49682. 8014df6: 61ba str r2, [r7, #24]
  49683. 8014df8: 617b str r3, [r7, #20]
  49684. return ulOriginalBASEPRI;
  49685. 8014dfa: 69bb ldr r3, [r7, #24]
  49686. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49687. 8014dfc: 62fb str r3, [r7, #44] @ 0x2c
  49688. {
  49689. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49690. 8014dfe: 6b3b ldr r3, [r7, #48] @ 0x30
  49691. 8014e00: 6b9b ldr r3, [r3, #56] @ 0x38
  49692. 8014e02: 62bb str r3, [r7, #40] @ 0x28
  49693. /* Cannot block in an ISR, so check there is data available. */
  49694. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49695. 8014e04: 6abb ldr r3, [r7, #40] @ 0x28
  49696. 8014e06: 2b00 cmp r3, #0
  49697. 8014e08: d02f beq.n 8014e6a <xQueueReceiveFromISR+0xea>
  49698. {
  49699. const int8_t cRxLock = pxQueue->cRxLock;
  49700. 8014e0a: 6b3b ldr r3, [r7, #48] @ 0x30
  49701. 8014e0c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49702. 8014e10: f887 3027 strb.w r3, [r7, #39] @ 0x27
  49703. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  49704. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49705. 8014e14: 68b9 ldr r1, [r7, #8]
  49706. 8014e16: 6b38 ldr r0, [r7, #48] @ 0x30
  49707. 8014e18: f000 f8b6 bl 8014f88 <prvCopyDataFromQueue>
  49708. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49709. 8014e1c: 6abb ldr r3, [r7, #40] @ 0x28
  49710. 8014e1e: 1e5a subs r2, r3, #1
  49711. 8014e20: 6b3b ldr r3, [r7, #48] @ 0x30
  49712. 8014e22: 639a str r2, [r3, #56] @ 0x38
  49713. /* If the queue is locked the event list will not be modified.
  49714. Instead update the lock count so the task that unlocks the queue
  49715. will know that an ISR has removed data while the queue was
  49716. locked. */
  49717. if( cRxLock == queueUNLOCKED )
  49718. 8014e24: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  49719. 8014e28: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49720. 8014e2c: d112 bne.n 8014e54 <xQueueReceiveFromISR+0xd4>
  49721. {
  49722. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49723. 8014e2e: 6b3b ldr r3, [r7, #48] @ 0x30
  49724. 8014e30: 691b ldr r3, [r3, #16]
  49725. 8014e32: 2b00 cmp r3, #0
  49726. 8014e34: d016 beq.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49727. {
  49728. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49729. 8014e36: 6b3b ldr r3, [r7, #48] @ 0x30
  49730. 8014e38: 3310 adds r3, #16
  49731. 8014e3a: 4618 mov r0, r3
  49732. 8014e3c: f001 f806 bl 8015e4c <xTaskRemoveFromEventList>
  49733. 8014e40: 4603 mov r3, r0
  49734. 8014e42: 2b00 cmp r3, #0
  49735. 8014e44: d00e beq.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49736. {
  49737. /* The task waiting has a higher priority than us so
  49738. force a context switch. */
  49739. if( pxHigherPriorityTaskWoken != NULL )
  49740. 8014e46: 687b ldr r3, [r7, #4]
  49741. 8014e48: 2b00 cmp r3, #0
  49742. 8014e4a: d00b beq.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49743. {
  49744. *pxHigherPriorityTaskWoken = pdTRUE;
  49745. 8014e4c: 687b ldr r3, [r7, #4]
  49746. 8014e4e: 2201 movs r2, #1
  49747. 8014e50: 601a str r2, [r3, #0]
  49748. 8014e52: e007 b.n 8014e64 <xQueueReceiveFromISR+0xe4>
  49749. }
  49750. else
  49751. {
  49752. /* Increment the lock count so the task that unlocks the queue
  49753. knows that data was removed while it was locked. */
  49754. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  49755. 8014e54: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  49756. 8014e58: 3301 adds r3, #1
  49757. 8014e5a: b2db uxtb r3, r3
  49758. 8014e5c: b25a sxtb r2, r3
  49759. 8014e5e: 6b3b ldr r3, [r7, #48] @ 0x30
  49760. 8014e60: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49761. }
  49762. xReturn = pdPASS;
  49763. 8014e64: 2301 movs r3, #1
  49764. 8014e66: 637b str r3, [r7, #52] @ 0x34
  49765. 8014e68: e001 b.n 8014e6e <xQueueReceiveFromISR+0xee>
  49766. }
  49767. else
  49768. {
  49769. xReturn = pdFAIL;
  49770. 8014e6a: 2300 movs r3, #0
  49771. 8014e6c: 637b str r3, [r7, #52] @ 0x34
  49772. 8014e6e: 6afb ldr r3, [r7, #44] @ 0x2c
  49773. 8014e70: 613b str r3, [r7, #16]
  49774. __asm volatile
  49775. 8014e72: 693b ldr r3, [r7, #16]
  49776. 8014e74: f383 8811 msr BASEPRI, r3
  49777. }
  49778. 8014e78: bf00 nop
  49779. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  49780. }
  49781. }
  49782. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49783. return xReturn;
  49784. 8014e7a: 6b7b ldr r3, [r7, #52] @ 0x34
  49785. }
  49786. 8014e7c: 4618 mov r0, r3
  49787. 8014e7e: 3738 adds r7, #56 @ 0x38
  49788. 8014e80: 46bd mov sp, r7
  49789. 8014e82: bd80 pop {r7, pc}
  49790. 08014e84 <prvGetDisinheritPriorityAfterTimeout>:
  49791. /*-----------------------------------------------------------*/
  49792. #if( configUSE_MUTEXES == 1 )
  49793. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  49794. {
  49795. 8014e84: b480 push {r7}
  49796. 8014e86: b085 sub sp, #20
  49797. 8014e88: af00 add r7, sp, #0
  49798. 8014e8a: 6078 str r0, [r7, #4]
  49799. priority, but the waiting task times out, then the holder should
  49800. disinherit the priority - but only down to the highest priority of any
  49801. other tasks that are waiting for the same mutex. For this purpose,
  49802. return the priority of the highest priority task that is waiting for the
  49803. mutex. */
  49804. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  49805. 8014e8c: 687b ldr r3, [r7, #4]
  49806. 8014e8e: 6a5b ldr r3, [r3, #36] @ 0x24
  49807. 8014e90: 2b00 cmp r3, #0
  49808. 8014e92: d006 beq.n 8014ea2 <prvGetDisinheritPriorityAfterTimeout+0x1e>
  49809. {
  49810. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  49811. 8014e94: 687b ldr r3, [r7, #4]
  49812. 8014e96: 6b1b ldr r3, [r3, #48] @ 0x30
  49813. 8014e98: 681b ldr r3, [r3, #0]
  49814. 8014e9a: f1c3 0338 rsb r3, r3, #56 @ 0x38
  49815. 8014e9e: 60fb str r3, [r7, #12]
  49816. 8014ea0: e001 b.n 8014ea6 <prvGetDisinheritPriorityAfterTimeout+0x22>
  49817. }
  49818. else
  49819. {
  49820. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  49821. 8014ea2: 2300 movs r3, #0
  49822. 8014ea4: 60fb str r3, [r7, #12]
  49823. }
  49824. return uxHighestPriorityOfWaitingTasks;
  49825. 8014ea6: 68fb ldr r3, [r7, #12]
  49826. }
  49827. 8014ea8: 4618 mov r0, r3
  49828. 8014eaa: 3714 adds r7, #20
  49829. 8014eac: 46bd mov sp, r7
  49830. 8014eae: f85d 7b04 ldr.w r7, [sp], #4
  49831. 8014eb2: 4770 bx lr
  49832. 08014eb4 <prvCopyDataToQueue>:
  49833. #endif /* configUSE_MUTEXES */
  49834. /*-----------------------------------------------------------*/
  49835. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  49836. {
  49837. 8014eb4: b580 push {r7, lr}
  49838. 8014eb6: b086 sub sp, #24
  49839. 8014eb8: af00 add r7, sp, #0
  49840. 8014eba: 60f8 str r0, [r7, #12]
  49841. 8014ebc: 60b9 str r1, [r7, #8]
  49842. 8014ebe: 607a str r2, [r7, #4]
  49843. BaseType_t xReturn = pdFALSE;
  49844. 8014ec0: 2300 movs r3, #0
  49845. 8014ec2: 617b str r3, [r7, #20]
  49846. UBaseType_t uxMessagesWaiting;
  49847. /* This function is called from a critical section. */
  49848. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49849. 8014ec4: 68fb ldr r3, [r7, #12]
  49850. 8014ec6: 6b9b ldr r3, [r3, #56] @ 0x38
  49851. 8014ec8: 613b str r3, [r7, #16]
  49852. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  49853. 8014eca: 68fb ldr r3, [r7, #12]
  49854. 8014ecc: 6c1b ldr r3, [r3, #64] @ 0x40
  49855. 8014ece: 2b00 cmp r3, #0
  49856. 8014ed0: d10d bne.n 8014eee <prvCopyDataToQueue+0x3a>
  49857. {
  49858. #if ( configUSE_MUTEXES == 1 )
  49859. {
  49860. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49861. 8014ed2: 68fb ldr r3, [r7, #12]
  49862. 8014ed4: 681b ldr r3, [r3, #0]
  49863. 8014ed6: 2b00 cmp r3, #0
  49864. 8014ed8: d14d bne.n 8014f76 <prvCopyDataToQueue+0xc2>
  49865. {
  49866. /* The mutex is no longer being held. */
  49867. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  49868. 8014eda: 68fb ldr r3, [r7, #12]
  49869. 8014edc: 689b ldr r3, [r3, #8]
  49870. 8014ede: 4618 mov r0, r3
  49871. 8014ee0: f001 fa38 bl 8016354 <xTaskPriorityDisinherit>
  49872. 8014ee4: 6178 str r0, [r7, #20]
  49873. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  49874. 8014ee6: 68fb ldr r3, [r7, #12]
  49875. 8014ee8: 2200 movs r2, #0
  49876. 8014eea: 609a str r2, [r3, #8]
  49877. 8014eec: e043 b.n 8014f76 <prvCopyDataToQueue+0xc2>
  49878. mtCOVERAGE_TEST_MARKER();
  49879. }
  49880. }
  49881. #endif /* configUSE_MUTEXES */
  49882. }
  49883. else if( xPosition == queueSEND_TO_BACK )
  49884. 8014eee: 687b ldr r3, [r7, #4]
  49885. 8014ef0: 2b00 cmp r3, #0
  49886. 8014ef2: d119 bne.n 8014f28 <prvCopyDataToQueue+0x74>
  49887. {
  49888. ( 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. */
  49889. 8014ef4: 68fb ldr r3, [r7, #12]
  49890. 8014ef6: 6858 ldr r0, [r3, #4]
  49891. 8014ef8: 68fb ldr r3, [r7, #12]
  49892. 8014efa: 6c1b ldr r3, [r3, #64] @ 0x40
  49893. 8014efc: 461a mov r2, r3
  49894. 8014efe: 68b9 ldr r1, [r7, #8]
  49895. 8014f00: f003 f823 bl 8017f4a <memcpy>
  49896. 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. */
  49897. 8014f04: 68fb ldr r3, [r7, #12]
  49898. 8014f06: 685a ldr r2, [r3, #4]
  49899. 8014f08: 68fb ldr r3, [r7, #12]
  49900. 8014f0a: 6c1b ldr r3, [r3, #64] @ 0x40
  49901. 8014f0c: 441a add r2, r3
  49902. 8014f0e: 68fb ldr r3, [r7, #12]
  49903. 8014f10: 605a str r2, [r3, #4]
  49904. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49905. 8014f12: 68fb ldr r3, [r7, #12]
  49906. 8014f14: 685a ldr r2, [r3, #4]
  49907. 8014f16: 68fb ldr r3, [r7, #12]
  49908. 8014f18: 689b ldr r3, [r3, #8]
  49909. 8014f1a: 429a cmp r2, r3
  49910. 8014f1c: d32b bcc.n 8014f76 <prvCopyDataToQueue+0xc2>
  49911. {
  49912. pxQueue->pcWriteTo = pxQueue->pcHead;
  49913. 8014f1e: 68fb ldr r3, [r7, #12]
  49914. 8014f20: 681a ldr r2, [r3, #0]
  49915. 8014f22: 68fb ldr r3, [r7, #12]
  49916. 8014f24: 605a str r2, [r3, #4]
  49917. 8014f26: e026 b.n 8014f76 <prvCopyDataToQueue+0xc2>
  49918. mtCOVERAGE_TEST_MARKER();
  49919. }
  49920. }
  49921. else
  49922. {
  49923. ( 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. */
  49924. 8014f28: 68fb ldr r3, [r7, #12]
  49925. 8014f2a: 68d8 ldr r0, [r3, #12]
  49926. 8014f2c: 68fb ldr r3, [r7, #12]
  49927. 8014f2e: 6c1b ldr r3, [r3, #64] @ 0x40
  49928. 8014f30: 461a mov r2, r3
  49929. 8014f32: 68b9 ldr r1, [r7, #8]
  49930. 8014f34: f003 f809 bl 8017f4a <memcpy>
  49931. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  49932. 8014f38: 68fb ldr r3, [r7, #12]
  49933. 8014f3a: 68da ldr r2, [r3, #12]
  49934. 8014f3c: 68fb ldr r3, [r7, #12]
  49935. 8014f3e: 6c1b ldr r3, [r3, #64] @ 0x40
  49936. 8014f40: 425b negs r3, r3
  49937. 8014f42: 441a add r2, r3
  49938. 8014f44: 68fb ldr r3, [r7, #12]
  49939. 8014f46: 60da str r2, [r3, #12]
  49940. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49941. 8014f48: 68fb ldr r3, [r7, #12]
  49942. 8014f4a: 68da ldr r2, [r3, #12]
  49943. 8014f4c: 68fb ldr r3, [r7, #12]
  49944. 8014f4e: 681b ldr r3, [r3, #0]
  49945. 8014f50: 429a cmp r2, r3
  49946. 8014f52: d207 bcs.n 8014f64 <prvCopyDataToQueue+0xb0>
  49947. {
  49948. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  49949. 8014f54: 68fb ldr r3, [r7, #12]
  49950. 8014f56: 689a ldr r2, [r3, #8]
  49951. 8014f58: 68fb ldr r3, [r7, #12]
  49952. 8014f5a: 6c1b ldr r3, [r3, #64] @ 0x40
  49953. 8014f5c: 425b negs r3, r3
  49954. 8014f5e: 441a add r2, r3
  49955. 8014f60: 68fb ldr r3, [r7, #12]
  49956. 8014f62: 60da str r2, [r3, #12]
  49957. else
  49958. {
  49959. mtCOVERAGE_TEST_MARKER();
  49960. }
  49961. if( xPosition == queueOVERWRITE )
  49962. 8014f64: 687b ldr r3, [r7, #4]
  49963. 8014f66: 2b02 cmp r3, #2
  49964. 8014f68: d105 bne.n 8014f76 <prvCopyDataToQueue+0xc2>
  49965. {
  49966. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49967. 8014f6a: 693b ldr r3, [r7, #16]
  49968. 8014f6c: 2b00 cmp r3, #0
  49969. 8014f6e: d002 beq.n 8014f76 <prvCopyDataToQueue+0xc2>
  49970. {
  49971. /* An item is not being added but overwritten, so subtract
  49972. one from the recorded number of items in the queue so when
  49973. one is added again below the number of recorded items remains
  49974. correct. */
  49975. --uxMessagesWaiting;
  49976. 8014f70: 693b ldr r3, [r7, #16]
  49977. 8014f72: 3b01 subs r3, #1
  49978. 8014f74: 613b str r3, [r7, #16]
  49979. {
  49980. mtCOVERAGE_TEST_MARKER();
  49981. }
  49982. }
  49983. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  49984. 8014f76: 693b ldr r3, [r7, #16]
  49985. 8014f78: 1c5a adds r2, r3, #1
  49986. 8014f7a: 68fb ldr r3, [r7, #12]
  49987. 8014f7c: 639a str r2, [r3, #56] @ 0x38
  49988. return xReturn;
  49989. 8014f7e: 697b ldr r3, [r7, #20]
  49990. }
  49991. 8014f80: 4618 mov r0, r3
  49992. 8014f82: 3718 adds r7, #24
  49993. 8014f84: 46bd mov sp, r7
  49994. 8014f86: bd80 pop {r7, pc}
  49995. 08014f88 <prvCopyDataFromQueue>:
  49996. /*-----------------------------------------------------------*/
  49997. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  49998. {
  49999. 8014f88: b580 push {r7, lr}
  50000. 8014f8a: b082 sub sp, #8
  50001. 8014f8c: af00 add r7, sp, #0
  50002. 8014f8e: 6078 str r0, [r7, #4]
  50003. 8014f90: 6039 str r1, [r7, #0]
  50004. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  50005. 8014f92: 687b ldr r3, [r7, #4]
  50006. 8014f94: 6c1b ldr r3, [r3, #64] @ 0x40
  50007. 8014f96: 2b00 cmp r3, #0
  50008. 8014f98: d018 beq.n 8014fcc <prvCopyDataFromQueue+0x44>
  50009. {
  50010. 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. */
  50011. 8014f9a: 687b ldr r3, [r7, #4]
  50012. 8014f9c: 68da ldr r2, [r3, #12]
  50013. 8014f9e: 687b ldr r3, [r7, #4]
  50014. 8014fa0: 6c1b ldr r3, [r3, #64] @ 0x40
  50015. 8014fa2: 441a add r2, r3
  50016. 8014fa4: 687b ldr r3, [r7, #4]
  50017. 8014fa6: 60da str r2, [r3, #12]
  50018. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  50019. 8014fa8: 687b ldr r3, [r7, #4]
  50020. 8014faa: 68da ldr r2, [r3, #12]
  50021. 8014fac: 687b ldr r3, [r7, #4]
  50022. 8014fae: 689b ldr r3, [r3, #8]
  50023. 8014fb0: 429a cmp r2, r3
  50024. 8014fb2: d303 bcc.n 8014fbc <prvCopyDataFromQueue+0x34>
  50025. {
  50026. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  50027. 8014fb4: 687b ldr r3, [r7, #4]
  50028. 8014fb6: 681a ldr r2, [r3, #0]
  50029. 8014fb8: 687b ldr r3, [r7, #4]
  50030. 8014fba: 60da str r2, [r3, #12]
  50031. }
  50032. else
  50033. {
  50034. mtCOVERAGE_TEST_MARKER();
  50035. }
  50036. ( 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. */
  50037. 8014fbc: 687b ldr r3, [r7, #4]
  50038. 8014fbe: 68d9 ldr r1, [r3, #12]
  50039. 8014fc0: 687b ldr r3, [r7, #4]
  50040. 8014fc2: 6c1b ldr r3, [r3, #64] @ 0x40
  50041. 8014fc4: 461a mov r2, r3
  50042. 8014fc6: 6838 ldr r0, [r7, #0]
  50043. 8014fc8: f002 ffbf bl 8017f4a <memcpy>
  50044. }
  50045. }
  50046. 8014fcc: bf00 nop
  50047. 8014fce: 3708 adds r7, #8
  50048. 8014fd0: 46bd mov sp, r7
  50049. 8014fd2: bd80 pop {r7, pc}
  50050. 08014fd4 <prvUnlockQueue>:
  50051. /*-----------------------------------------------------------*/
  50052. static void prvUnlockQueue( Queue_t * const pxQueue )
  50053. {
  50054. 8014fd4: b580 push {r7, lr}
  50055. 8014fd6: b084 sub sp, #16
  50056. 8014fd8: af00 add r7, sp, #0
  50057. 8014fda: 6078 str r0, [r7, #4]
  50058. /* The lock counts contains the number of extra data items placed or
  50059. removed from the queue while the queue was locked. When a queue is
  50060. locked items can be added or removed, but the event lists cannot be
  50061. updated. */
  50062. taskENTER_CRITICAL();
  50063. 8014fdc: f002 fabc bl 8017558 <vPortEnterCritical>
  50064. {
  50065. int8_t cTxLock = pxQueue->cTxLock;
  50066. 8014fe0: 687b ldr r3, [r7, #4]
  50067. 8014fe2: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50068. 8014fe6: 73fb strb r3, [r7, #15]
  50069. /* See if data was added to the queue while it was locked. */
  50070. while( cTxLock > queueLOCKED_UNMODIFIED )
  50071. 8014fe8: e011 b.n 801500e <prvUnlockQueue+0x3a>
  50072. }
  50073. #else /* configUSE_QUEUE_SETS */
  50074. {
  50075. /* Tasks that are removed from the event list will get added to
  50076. the pending ready list as the scheduler is still suspended. */
  50077. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  50078. 8014fea: 687b ldr r3, [r7, #4]
  50079. 8014fec: 6a5b ldr r3, [r3, #36] @ 0x24
  50080. 8014fee: 2b00 cmp r3, #0
  50081. 8014ff0: d012 beq.n 8015018 <prvUnlockQueue+0x44>
  50082. {
  50083. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  50084. 8014ff2: 687b ldr r3, [r7, #4]
  50085. 8014ff4: 3324 adds r3, #36 @ 0x24
  50086. 8014ff6: 4618 mov r0, r3
  50087. 8014ff8: f000 ff28 bl 8015e4c <xTaskRemoveFromEventList>
  50088. 8014ffc: 4603 mov r3, r0
  50089. 8014ffe: 2b00 cmp r3, #0
  50090. 8015000: d001 beq.n 8015006 <prvUnlockQueue+0x32>
  50091. {
  50092. /* The task waiting has a higher priority so record that
  50093. a context switch is required. */
  50094. vTaskMissedYield();
  50095. 8015002: f001 f829 bl 8016058 <vTaskMissedYield>
  50096. break;
  50097. }
  50098. }
  50099. #endif /* configUSE_QUEUE_SETS */
  50100. --cTxLock;
  50101. 8015006: 7bfb ldrb r3, [r7, #15]
  50102. 8015008: 3b01 subs r3, #1
  50103. 801500a: b2db uxtb r3, r3
  50104. 801500c: 73fb strb r3, [r7, #15]
  50105. while( cTxLock > queueLOCKED_UNMODIFIED )
  50106. 801500e: f997 300f ldrsb.w r3, [r7, #15]
  50107. 8015012: 2b00 cmp r3, #0
  50108. 8015014: dce9 bgt.n 8014fea <prvUnlockQueue+0x16>
  50109. 8015016: e000 b.n 801501a <prvUnlockQueue+0x46>
  50110. break;
  50111. 8015018: bf00 nop
  50112. }
  50113. pxQueue->cTxLock = queueUNLOCKED;
  50114. 801501a: 687b ldr r3, [r7, #4]
  50115. 801501c: 22ff movs r2, #255 @ 0xff
  50116. 801501e: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50117. }
  50118. taskEXIT_CRITICAL();
  50119. 8015022: f002 facb bl 80175bc <vPortExitCritical>
  50120. /* Do the same for the Rx lock. */
  50121. taskENTER_CRITICAL();
  50122. 8015026: f002 fa97 bl 8017558 <vPortEnterCritical>
  50123. {
  50124. int8_t cRxLock = pxQueue->cRxLock;
  50125. 801502a: 687b ldr r3, [r7, #4]
  50126. 801502c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50127. 8015030: 73bb strb r3, [r7, #14]
  50128. while( cRxLock > queueLOCKED_UNMODIFIED )
  50129. 8015032: e011 b.n 8015058 <prvUnlockQueue+0x84>
  50130. {
  50131. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50132. 8015034: 687b ldr r3, [r7, #4]
  50133. 8015036: 691b ldr r3, [r3, #16]
  50134. 8015038: 2b00 cmp r3, #0
  50135. 801503a: d012 beq.n 8015062 <prvUnlockQueue+0x8e>
  50136. {
  50137. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50138. 801503c: 687b ldr r3, [r7, #4]
  50139. 801503e: 3310 adds r3, #16
  50140. 8015040: 4618 mov r0, r3
  50141. 8015042: f000 ff03 bl 8015e4c <xTaskRemoveFromEventList>
  50142. 8015046: 4603 mov r3, r0
  50143. 8015048: 2b00 cmp r3, #0
  50144. 801504a: d001 beq.n 8015050 <prvUnlockQueue+0x7c>
  50145. {
  50146. vTaskMissedYield();
  50147. 801504c: f001 f804 bl 8016058 <vTaskMissedYield>
  50148. else
  50149. {
  50150. mtCOVERAGE_TEST_MARKER();
  50151. }
  50152. --cRxLock;
  50153. 8015050: 7bbb ldrb r3, [r7, #14]
  50154. 8015052: 3b01 subs r3, #1
  50155. 8015054: b2db uxtb r3, r3
  50156. 8015056: 73bb strb r3, [r7, #14]
  50157. while( cRxLock > queueLOCKED_UNMODIFIED )
  50158. 8015058: f997 300e ldrsb.w r3, [r7, #14]
  50159. 801505c: 2b00 cmp r3, #0
  50160. 801505e: dce9 bgt.n 8015034 <prvUnlockQueue+0x60>
  50161. 8015060: e000 b.n 8015064 <prvUnlockQueue+0x90>
  50162. }
  50163. else
  50164. {
  50165. break;
  50166. 8015062: bf00 nop
  50167. }
  50168. }
  50169. pxQueue->cRxLock = queueUNLOCKED;
  50170. 8015064: 687b ldr r3, [r7, #4]
  50171. 8015066: 22ff movs r2, #255 @ 0xff
  50172. 8015068: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50173. }
  50174. taskEXIT_CRITICAL();
  50175. 801506c: f002 faa6 bl 80175bc <vPortExitCritical>
  50176. }
  50177. 8015070: bf00 nop
  50178. 8015072: 3710 adds r7, #16
  50179. 8015074: 46bd mov sp, r7
  50180. 8015076: bd80 pop {r7, pc}
  50181. 08015078 <prvIsQueueEmpty>:
  50182. /*-----------------------------------------------------------*/
  50183. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  50184. {
  50185. 8015078: b580 push {r7, lr}
  50186. 801507a: b084 sub sp, #16
  50187. 801507c: af00 add r7, sp, #0
  50188. 801507e: 6078 str r0, [r7, #4]
  50189. BaseType_t xReturn;
  50190. taskENTER_CRITICAL();
  50191. 8015080: f002 fa6a bl 8017558 <vPortEnterCritical>
  50192. {
  50193. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  50194. 8015084: 687b ldr r3, [r7, #4]
  50195. 8015086: 6b9b ldr r3, [r3, #56] @ 0x38
  50196. 8015088: 2b00 cmp r3, #0
  50197. 801508a: d102 bne.n 8015092 <prvIsQueueEmpty+0x1a>
  50198. {
  50199. xReturn = pdTRUE;
  50200. 801508c: 2301 movs r3, #1
  50201. 801508e: 60fb str r3, [r7, #12]
  50202. 8015090: e001 b.n 8015096 <prvIsQueueEmpty+0x1e>
  50203. }
  50204. else
  50205. {
  50206. xReturn = pdFALSE;
  50207. 8015092: 2300 movs r3, #0
  50208. 8015094: 60fb str r3, [r7, #12]
  50209. }
  50210. }
  50211. taskEXIT_CRITICAL();
  50212. 8015096: f002 fa91 bl 80175bc <vPortExitCritical>
  50213. return xReturn;
  50214. 801509a: 68fb ldr r3, [r7, #12]
  50215. }
  50216. 801509c: 4618 mov r0, r3
  50217. 801509e: 3710 adds r7, #16
  50218. 80150a0: 46bd mov sp, r7
  50219. 80150a2: bd80 pop {r7, pc}
  50220. 080150a4 <prvIsQueueFull>:
  50221. return xReturn;
  50222. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  50223. /*-----------------------------------------------------------*/
  50224. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  50225. {
  50226. 80150a4: b580 push {r7, lr}
  50227. 80150a6: b084 sub sp, #16
  50228. 80150a8: af00 add r7, sp, #0
  50229. 80150aa: 6078 str r0, [r7, #4]
  50230. BaseType_t xReturn;
  50231. taskENTER_CRITICAL();
  50232. 80150ac: f002 fa54 bl 8017558 <vPortEnterCritical>
  50233. {
  50234. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  50235. 80150b0: 687b ldr r3, [r7, #4]
  50236. 80150b2: 6b9a ldr r2, [r3, #56] @ 0x38
  50237. 80150b4: 687b ldr r3, [r7, #4]
  50238. 80150b6: 6bdb ldr r3, [r3, #60] @ 0x3c
  50239. 80150b8: 429a cmp r2, r3
  50240. 80150ba: d102 bne.n 80150c2 <prvIsQueueFull+0x1e>
  50241. {
  50242. xReturn = pdTRUE;
  50243. 80150bc: 2301 movs r3, #1
  50244. 80150be: 60fb str r3, [r7, #12]
  50245. 80150c0: e001 b.n 80150c6 <prvIsQueueFull+0x22>
  50246. }
  50247. else
  50248. {
  50249. xReturn = pdFALSE;
  50250. 80150c2: 2300 movs r3, #0
  50251. 80150c4: 60fb str r3, [r7, #12]
  50252. }
  50253. }
  50254. taskEXIT_CRITICAL();
  50255. 80150c6: f002 fa79 bl 80175bc <vPortExitCritical>
  50256. return xReturn;
  50257. 80150ca: 68fb ldr r3, [r7, #12]
  50258. }
  50259. 80150cc: 4618 mov r0, r3
  50260. 80150ce: 3710 adds r7, #16
  50261. 80150d0: 46bd mov sp, r7
  50262. 80150d2: bd80 pop {r7, pc}
  50263. 080150d4 <vQueueAddToRegistry>:
  50264. /*-----------------------------------------------------------*/
  50265. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  50266. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  50267. {
  50268. 80150d4: b480 push {r7}
  50269. 80150d6: b085 sub sp, #20
  50270. 80150d8: af00 add r7, sp, #0
  50271. 80150da: 6078 str r0, [r7, #4]
  50272. 80150dc: 6039 str r1, [r7, #0]
  50273. UBaseType_t ux;
  50274. /* See if there is an empty space in the registry. A NULL name denotes
  50275. a free slot. */
  50276. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  50277. 80150de: 2300 movs r3, #0
  50278. 80150e0: 60fb str r3, [r7, #12]
  50279. 80150e2: e014 b.n 801510e <vQueueAddToRegistry+0x3a>
  50280. {
  50281. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  50282. 80150e4: 4a0f ldr r2, [pc, #60] @ (8015124 <vQueueAddToRegistry+0x50>)
  50283. 80150e6: 68fb ldr r3, [r7, #12]
  50284. 80150e8: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  50285. 80150ec: 2b00 cmp r3, #0
  50286. 80150ee: d10b bne.n 8015108 <vQueueAddToRegistry+0x34>
  50287. {
  50288. /* Store the information on this queue. */
  50289. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  50290. 80150f0: 490c ldr r1, [pc, #48] @ (8015124 <vQueueAddToRegistry+0x50>)
  50291. 80150f2: 68fb ldr r3, [r7, #12]
  50292. 80150f4: 683a ldr r2, [r7, #0]
  50293. 80150f6: f841 2033 str.w r2, [r1, r3, lsl #3]
  50294. xQueueRegistry[ ux ].xHandle = xQueue;
  50295. 80150fa: 4a0a ldr r2, [pc, #40] @ (8015124 <vQueueAddToRegistry+0x50>)
  50296. 80150fc: 68fb ldr r3, [r7, #12]
  50297. 80150fe: 00db lsls r3, r3, #3
  50298. 8015100: 4413 add r3, r2
  50299. 8015102: 687a ldr r2, [r7, #4]
  50300. 8015104: 605a str r2, [r3, #4]
  50301. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  50302. break;
  50303. 8015106: e006 b.n 8015116 <vQueueAddToRegistry+0x42>
  50304. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  50305. 8015108: 68fb ldr r3, [r7, #12]
  50306. 801510a: 3301 adds r3, #1
  50307. 801510c: 60fb str r3, [r7, #12]
  50308. 801510e: 68fb ldr r3, [r7, #12]
  50309. 8015110: 2b07 cmp r3, #7
  50310. 8015112: d9e7 bls.n 80150e4 <vQueueAddToRegistry+0x10>
  50311. else
  50312. {
  50313. mtCOVERAGE_TEST_MARKER();
  50314. }
  50315. }
  50316. }
  50317. 8015114: bf00 nop
  50318. 8015116: bf00 nop
  50319. 8015118: 3714 adds r7, #20
  50320. 801511a: 46bd mov sp, r7
  50321. 801511c: f85d 7b04 ldr.w r7, [sp], #4
  50322. 8015120: 4770 bx lr
  50323. 8015122: bf00 nop
  50324. 8015124: 24002654 .word 0x24002654
  50325. 08015128 <vQueueWaitForMessageRestricted>:
  50326. /*-----------------------------------------------------------*/
  50327. #if ( configUSE_TIMERS == 1 )
  50328. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  50329. {
  50330. 8015128: b580 push {r7, lr}
  50331. 801512a: b086 sub sp, #24
  50332. 801512c: af00 add r7, sp, #0
  50333. 801512e: 60f8 str r0, [r7, #12]
  50334. 8015130: 60b9 str r1, [r7, #8]
  50335. 8015132: 607a str r2, [r7, #4]
  50336. Queue_t * const pxQueue = xQueue;
  50337. 8015134: 68fb ldr r3, [r7, #12]
  50338. 8015136: 617b str r3, [r7, #20]
  50339. will not actually cause the task to block, just place it on a blocked
  50340. list. It will not block until the scheduler is unlocked - at which
  50341. time a yield will be performed. If an item is added to the queue while
  50342. the queue is locked, and the calling task blocks on the queue, then the
  50343. calling task will be immediately unblocked when the queue is unlocked. */
  50344. prvLockQueue( pxQueue );
  50345. 8015138: f002 fa0e bl 8017558 <vPortEnterCritical>
  50346. 801513c: 697b ldr r3, [r7, #20]
  50347. 801513e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50348. 8015142: b25b sxtb r3, r3
  50349. 8015144: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50350. 8015148: d103 bne.n 8015152 <vQueueWaitForMessageRestricted+0x2a>
  50351. 801514a: 697b ldr r3, [r7, #20]
  50352. 801514c: 2200 movs r2, #0
  50353. 801514e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50354. 8015152: 697b ldr r3, [r7, #20]
  50355. 8015154: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50356. 8015158: b25b sxtb r3, r3
  50357. 801515a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50358. 801515e: d103 bne.n 8015168 <vQueueWaitForMessageRestricted+0x40>
  50359. 8015160: 697b ldr r3, [r7, #20]
  50360. 8015162: 2200 movs r2, #0
  50361. 8015164: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50362. 8015168: f002 fa28 bl 80175bc <vPortExitCritical>
  50363. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  50364. 801516c: 697b ldr r3, [r7, #20]
  50365. 801516e: 6b9b ldr r3, [r3, #56] @ 0x38
  50366. 8015170: 2b00 cmp r3, #0
  50367. 8015172: d106 bne.n 8015182 <vQueueWaitForMessageRestricted+0x5a>
  50368. {
  50369. /* There is nothing in the queue, block for the specified period. */
  50370. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  50371. 8015174: 697b ldr r3, [r7, #20]
  50372. 8015176: 3324 adds r3, #36 @ 0x24
  50373. 8015178: 687a ldr r2, [r7, #4]
  50374. 801517a: 68b9 ldr r1, [r7, #8]
  50375. 801517c: 4618 mov r0, r3
  50376. 801517e: f000 fe39 bl 8015df4 <vTaskPlaceOnEventListRestricted>
  50377. }
  50378. else
  50379. {
  50380. mtCOVERAGE_TEST_MARKER();
  50381. }
  50382. prvUnlockQueue( pxQueue );
  50383. 8015182: 6978 ldr r0, [r7, #20]
  50384. 8015184: f7ff ff26 bl 8014fd4 <prvUnlockQueue>
  50385. }
  50386. 8015188: bf00 nop
  50387. 801518a: 3718 adds r7, #24
  50388. 801518c: 46bd mov sp, r7
  50389. 801518e: bd80 pop {r7, pc}
  50390. 08015190 <xStreamBufferSpacesAvailable>:
  50391. return xReturn;
  50392. }
  50393. /*-----------------------------------------------------------*/
  50394. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  50395. {
  50396. 8015190: b480 push {r7}
  50397. 8015192: b087 sub sp, #28
  50398. 8015194: af00 add r7, sp, #0
  50399. 8015196: 6078 str r0, [r7, #4]
  50400. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  50401. 8015198: 687b ldr r3, [r7, #4]
  50402. 801519a: 613b str r3, [r7, #16]
  50403. size_t xSpace;
  50404. configASSERT( pxStreamBuffer );
  50405. 801519c: 693b ldr r3, [r7, #16]
  50406. 801519e: 2b00 cmp r3, #0
  50407. 80151a0: d10b bne.n 80151ba <xStreamBufferSpacesAvailable+0x2a>
  50408. __asm volatile
  50409. 80151a2: f04f 0350 mov.w r3, #80 @ 0x50
  50410. 80151a6: f383 8811 msr BASEPRI, r3
  50411. 80151aa: f3bf 8f6f isb sy
  50412. 80151ae: f3bf 8f4f dsb sy
  50413. 80151b2: 60fb str r3, [r7, #12]
  50414. }
  50415. 80151b4: bf00 nop
  50416. 80151b6: bf00 nop
  50417. 80151b8: e7fd b.n 80151b6 <xStreamBufferSpacesAvailable+0x26>
  50418. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  50419. 80151ba: 693b ldr r3, [r7, #16]
  50420. 80151bc: 689a ldr r2, [r3, #8]
  50421. 80151be: 693b ldr r3, [r7, #16]
  50422. 80151c0: 681b ldr r3, [r3, #0]
  50423. 80151c2: 4413 add r3, r2
  50424. 80151c4: 617b str r3, [r7, #20]
  50425. xSpace -= pxStreamBuffer->xHead;
  50426. 80151c6: 693b ldr r3, [r7, #16]
  50427. 80151c8: 685b ldr r3, [r3, #4]
  50428. 80151ca: 697a ldr r2, [r7, #20]
  50429. 80151cc: 1ad3 subs r3, r2, r3
  50430. 80151ce: 617b str r3, [r7, #20]
  50431. xSpace -= ( size_t ) 1;
  50432. 80151d0: 697b ldr r3, [r7, #20]
  50433. 80151d2: 3b01 subs r3, #1
  50434. 80151d4: 617b str r3, [r7, #20]
  50435. if( xSpace >= pxStreamBuffer->xLength )
  50436. 80151d6: 693b ldr r3, [r7, #16]
  50437. 80151d8: 689b ldr r3, [r3, #8]
  50438. 80151da: 697a ldr r2, [r7, #20]
  50439. 80151dc: 429a cmp r2, r3
  50440. 80151de: d304 bcc.n 80151ea <xStreamBufferSpacesAvailable+0x5a>
  50441. {
  50442. xSpace -= pxStreamBuffer->xLength;
  50443. 80151e0: 693b ldr r3, [r7, #16]
  50444. 80151e2: 689b ldr r3, [r3, #8]
  50445. 80151e4: 697a ldr r2, [r7, #20]
  50446. 80151e6: 1ad3 subs r3, r2, r3
  50447. 80151e8: 617b str r3, [r7, #20]
  50448. else
  50449. {
  50450. mtCOVERAGE_TEST_MARKER();
  50451. }
  50452. return xSpace;
  50453. 80151ea: 697b ldr r3, [r7, #20]
  50454. }
  50455. 80151ec: 4618 mov r0, r3
  50456. 80151ee: 371c adds r7, #28
  50457. 80151f0: 46bd mov sp, r7
  50458. 80151f2: f85d 7b04 ldr.w r7, [sp], #4
  50459. 80151f6: 4770 bx lr
  50460. 080151f8 <xStreamBufferSend>:
  50461. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  50462. const void *pvTxData,
  50463. size_t xDataLengthBytes,
  50464. TickType_t xTicksToWait )
  50465. {
  50466. 80151f8: b580 push {r7, lr}
  50467. 80151fa: b090 sub sp, #64 @ 0x40
  50468. 80151fc: af02 add r7, sp, #8
  50469. 80151fe: 60f8 str r0, [r7, #12]
  50470. 8015200: 60b9 str r1, [r7, #8]
  50471. 8015202: 607a str r2, [r7, #4]
  50472. 8015204: 603b str r3, [r7, #0]
  50473. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  50474. 8015206: 68fb ldr r3, [r7, #12]
  50475. 8015208: 62fb str r3, [r7, #44] @ 0x2c
  50476. size_t xReturn, xSpace = 0;
  50477. 801520a: 2300 movs r3, #0
  50478. 801520c: 637b str r3, [r7, #52] @ 0x34
  50479. size_t xRequiredSpace = xDataLengthBytes;
  50480. 801520e: 687b ldr r3, [r7, #4]
  50481. 8015210: 633b str r3, [r7, #48] @ 0x30
  50482. TimeOut_t xTimeOut;
  50483. configASSERT( pvTxData );
  50484. 8015212: 68bb ldr r3, [r7, #8]
  50485. 8015214: 2b00 cmp r3, #0
  50486. 8015216: d10b bne.n 8015230 <xStreamBufferSend+0x38>
  50487. __asm volatile
  50488. 8015218: f04f 0350 mov.w r3, #80 @ 0x50
  50489. 801521c: f383 8811 msr BASEPRI, r3
  50490. 8015220: f3bf 8f6f isb sy
  50491. 8015224: f3bf 8f4f dsb sy
  50492. 8015228: 627b str r3, [r7, #36] @ 0x24
  50493. }
  50494. 801522a: bf00 nop
  50495. 801522c: bf00 nop
  50496. 801522e: e7fd b.n 801522c <xStreamBufferSend+0x34>
  50497. configASSERT( pxStreamBuffer );
  50498. 8015230: 6afb ldr r3, [r7, #44] @ 0x2c
  50499. 8015232: 2b00 cmp r3, #0
  50500. 8015234: d10b bne.n 801524e <xStreamBufferSend+0x56>
  50501. __asm volatile
  50502. 8015236: f04f 0350 mov.w r3, #80 @ 0x50
  50503. 801523a: f383 8811 msr BASEPRI, r3
  50504. 801523e: f3bf 8f6f isb sy
  50505. 8015242: f3bf 8f4f dsb sy
  50506. 8015246: 623b str r3, [r7, #32]
  50507. }
  50508. 8015248: bf00 nop
  50509. 801524a: bf00 nop
  50510. 801524c: e7fd b.n 801524a <xStreamBufferSend+0x52>
  50511. /* This send function is used to write to both message buffers and stream
  50512. buffers. If this is a message buffer then the space needed must be
  50513. increased by the amount of bytes needed to store the length of the
  50514. message. */
  50515. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  50516. 801524e: 6afb ldr r3, [r7, #44] @ 0x2c
  50517. 8015250: 7f1b ldrb r3, [r3, #28]
  50518. 8015252: f003 0301 and.w r3, r3, #1
  50519. 8015256: 2b00 cmp r3, #0
  50520. 8015258: d012 beq.n 8015280 <xStreamBufferSend+0x88>
  50521. {
  50522. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  50523. 801525a: 6b3b ldr r3, [r7, #48] @ 0x30
  50524. 801525c: 3304 adds r3, #4
  50525. 801525e: 633b str r3, [r7, #48] @ 0x30
  50526. /* Overflow? */
  50527. configASSERT( xRequiredSpace > xDataLengthBytes );
  50528. 8015260: 6b3a ldr r2, [r7, #48] @ 0x30
  50529. 8015262: 687b ldr r3, [r7, #4]
  50530. 8015264: 429a cmp r2, r3
  50531. 8015266: d80b bhi.n 8015280 <xStreamBufferSend+0x88>
  50532. __asm volatile
  50533. 8015268: f04f 0350 mov.w r3, #80 @ 0x50
  50534. 801526c: f383 8811 msr BASEPRI, r3
  50535. 8015270: f3bf 8f6f isb sy
  50536. 8015274: f3bf 8f4f dsb sy
  50537. 8015278: 61fb str r3, [r7, #28]
  50538. }
  50539. 801527a: bf00 nop
  50540. 801527c: bf00 nop
  50541. 801527e: e7fd b.n 801527c <xStreamBufferSend+0x84>
  50542. else
  50543. {
  50544. mtCOVERAGE_TEST_MARKER();
  50545. }
  50546. if( xTicksToWait != ( TickType_t ) 0 )
  50547. 8015280: 683b ldr r3, [r7, #0]
  50548. 8015282: 2b00 cmp r3, #0
  50549. 8015284: d03f beq.n 8015306 <xStreamBufferSend+0x10e>
  50550. {
  50551. vTaskSetTimeOutState( &xTimeOut );
  50552. 8015286: f107 0310 add.w r3, r7, #16
  50553. 801528a: 4618 mov r0, r3
  50554. 801528c: f000 fe42 bl 8015f14 <vTaskSetTimeOutState>
  50555. do
  50556. {
  50557. /* Wait until the required number of bytes are free in the message
  50558. buffer. */
  50559. taskENTER_CRITICAL();
  50560. 8015290: f002 f962 bl 8017558 <vPortEnterCritical>
  50561. {
  50562. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  50563. 8015294: 6af8 ldr r0, [r7, #44] @ 0x2c
  50564. 8015296: f7ff ff7b bl 8015190 <xStreamBufferSpacesAvailable>
  50565. 801529a: 6378 str r0, [r7, #52] @ 0x34
  50566. if( xSpace < xRequiredSpace )
  50567. 801529c: 6b7a ldr r2, [r7, #52] @ 0x34
  50568. 801529e: 6b3b ldr r3, [r7, #48] @ 0x30
  50569. 80152a0: 429a cmp r2, r3
  50570. 80152a2: d218 bcs.n 80152d6 <xStreamBufferSend+0xde>
  50571. {
  50572. /* Clear notification state as going to wait for space. */
  50573. ( void ) xTaskNotifyStateClear( NULL );
  50574. 80152a4: 2000 movs r0, #0
  50575. 80152a6: f001 fb65 bl 8016974 <xTaskNotifyStateClear>
  50576. /* Should only be one writer. */
  50577. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  50578. 80152aa: 6afb ldr r3, [r7, #44] @ 0x2c
  50579. 80152ac: 695b ldr r3, [r3, #20]
  50580. 80152ae: 2b00 cmp r3, #0
  50581. 80152b0: d00b beq.n 80152ca <xStreamBufferSend+0xd2>
  50582. __asm volatile
  50583. 80152b2: f04f 0350 mov.w r3, #80 @ 0x50
  50584. 80152b6: f383 8811 msr BASEPRI, r3
  50585. 80152ba: f3bf 8f6f isb sy
  50586. 80152be: f3bf 8f4f dsb sy
  50587. 80152c2: 61bb str r3, [r7, #24]
  50588. }
  50589. 80152c4: bf00 nop
  50590. 80152c6: bf00 nop
  50591. 80152c8: e7fd b.n 80152c6 <xStreamBufferSend+0xce>
  50592. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  50593. 80152ca: f000 ffad bl 8016228 <xTaskGetCurrentTaskHandle>
  50594. 80152ce: 4602 mov r2, r0
  50595. 80152d0: 6afb ldr r3, [r7, #44] @ 0x2c
  50596. 80152d2: 615a str r2, [r3, #20]
  50597. 80152d4: e002 b.n 80152dc <xStreamBufferSend+0xe4>
  50598. }
  50599. else
  50600. {
  50601. taskEXIT_CRITICAL();
  50602. 80152d6: f002 f971 bl 80175bc <vPortExitCritical>
  50603. break;
  50604. 80152da: e014 b.n 8015306 <xStreamBufferSend+0x10e>
  50605. }
  50606. }
  50607. taskEXIT_CRITICAL();
  50608. 80152dc: f002 f96e bl 80175bc <vPortExitCritical>
  50609. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  50610. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  50611. 80152e0: 683b ldr r3, [r7, #0]
  50612. 80152e2: 2200 movs r2, #0
  50613. 80152e4: 2100 movs r1, #0
  50614. 80152e6: 2000 movs r0, #0
  50615. 80152e8: f001 f93c bl 8016564 <xTaskNotifyWait>
  50616. pxStreamBuffer->xTaskWaitingToSend = NULL;
  50617. 80152ec: 6afb ldr r3, [r7, #44] @ 0x2c
  50618. 80152ee: 2200 movs r2, #0
  50619. 80152f0: 615a str r2, [r3, #20]
  50620. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  50621. 80152f2: 463a mov r2, r7
  50622. 80152f4: f107 0310 add.w r3, r7, #16
  50623. 80152f8: 4611 mov r1, r2
  50624. 80152fa: 4618 mov r0, r3
  50625. 80152fc: f000 fe48 bl 8015f90 <xTaskCheckForTimeOut>
  50626. 8015300: 4603 mov r3, r0
  50627. 8015302: 2b00 cmp r3, #0
  50628. 8015304: d0c4 beq.n 8015290 <xStreamBufferSend+0x98>
  50629. else
  50630. {
  50631. mtCOVERAGE_TEST_MARKER();
  50632. }
  50633. if( xSpace == ( size_t ) 0 )
  50634. 8015306: 6b7b ldr r3, [r7, #52] @ 0x34
  50635. 8015308: 2b00 cmp r3, #0
  50636. 801530a: d103 bne.n 8015314 <xStreamBufferSend+0x11c>
  50637. {
  50638. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  50639. 801530c: 6af8 ldr r0, [r7, #44] @ 0x2c
  50640. 801530e: f7ff ff3f bl 8015190 <xStreamBufferSpacesAvailable>
  50641. 8015312: 6378 str r0, [r7, #52] @ 0x34
  50642. else
  50643. {
  50644. mtCOVERAGE_TEST_MARKER();
  50645. }
  50646. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  50647. 8015314: 6b3b ldr r3, [r7, #48] @ 0x30
  50648. 8015316: 9300 str r3, [sp, #0]
  50649. 8015318: 6b7b ldr r3, [r7, #52] @ 0x34
  50650. 801531a: 687a ldr r2, [r7, #4]
  50651. 801531c: 68b9 ldr r1, [r7, #8]
  50652. 801531e: 6af8 ldr r0, [r7, #44] @ 0x2c
  50653. 8015320: f000 f823 bl 801536a <prvWriteMessageToBuffer>
  50654. 8015324: 62b8 str r0, [r7, #40] @ 0x28
  50655. if( xReturn > ( size_t ) 0 )
  50656. 8015326: 6abb ldr r3, [r7, #40] @ 0x28
  50657. 8015328: 2b00 cmp r3, #0
  50658. 801532a: d019 beq.n 8015360 <xStreamBufferSend+0x168>
  50659. {
  50660. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  50661. /* Was a task waiting for the data? */
  50662. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  50663. 801532c: 6af8 ldr r0, [r7, #44] @ 0x2c
  50664. 801532e: f000 f8ce bl 80154ce <prvBytesInBuffer>
  50665. 8015332: 4602 mov r2, r0
  50666. 8015334: 6afb ldr r3, [r7, #44] @ 0x2c
  50667. 8015336: 68db ldr r3, [r3, #12]
  50668. 8015338: 429a cmp r2, r3
  50669. 801533a: d311 bcc.n 8015360 <xStreamBufferSend+0x168>
  50670. {
  50671. sbSEND_COMPLETED( pxStreamBuffer );
  50672. 801533c: f000 fb4a bl 80159d4 <vTaskSuspendAll>
  50673. 8015340: 6afb ldr r3, [r7, #44] @ 0x2c
  50674. 8015342: 691b ldr r3, [r3, #16]
  50675. 8015344: 2b00 cmp r3, #0
  50676. 8015346: d009 beq.n 801535c <xStreamBufferSend+0x164>
  50677. 8015348: 6afb ldr r3, [r7, #44] @ 0x2c
  50678. 801534a: 6918 ldr r0, [r3, #16]
  50679. 801534c: 2300 movs r3, #0
  50680. 801534e: 2200 movs r2, #0
  50681. 8015350: 2100 movs r1, #0
  50682. 8015352: f001 f967 bl 8016624 <xTaskGenericNotify>
  50683. 8015356: 6afb ldr r3, [r7, #44] @ 0x2c
  50684. 8015358: 2200 movs r2, #0
  50685. 801535a: 611a str r2, [r3, #16]
  50686. 801535c: f000 fb48 bl 80159f0 <xTaskResumeAll>
  50687. {
  50688. mtCOVERAGE_TEST_MARKER();
  50689. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  50690. }
  50691. return xReturn;
  50692. 8015360: 6abb ldr r3, [r7, #40] @ 0x28
  50693. }
  50694. 8015362: 4618 mov r0, r3
  50695. 8015364: 3738 adds r7, #56 @ 0x38
  50696. 8015366: 46bd mov sp, r7
  50697. 8015368: bd80 pop {r7, pc}
  50698. 0801536a <prvWriteMessageToBuffer>:
  50699. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  50700. const void * pvTxData,
  50701. size_t xDataLengthBytes,
  50702. size_t xSpace,
  50703. size_t xRequiredSpace )
  50704. {
  50705. 801536a: b580 push {r7, lr}
  50706. 801536c: b086 sub sp, #24
  50707. 801536e: af00 add r7, sp, #0
  50708. 8015370: 60f8 str r0, [r7, #12]
  50709. 8015372: 60b9 str r1, [r7, #8]
  50710. 8015374: 607a str r2, [r7, #4]
  50711. 8015376: 603b str r3, [r7, #0]
  50712. BaseType_t xShouldWrite;
  50713. size_t xReturn;
  50714. if( xSpace == ( size_t ) 0 )
  50715. 8015378: 683b ldr r3, [r7, #0]
  50716. 801537a: 2b00 cmp r3, #0
  50717. 801537c: d102 bne.n 8015384 <prvWriteMessageToBuffer+0x1a>
  50718. {
  50719. /* Doesn't matter if this is a stream buffer or a message buffer, there
  50720. is no space to write. */
  50721. xShouldWrite = pdFALSE;
  50722. 801537e: 2300 movs r3, #0
  50723. 8015380: 617b str r3, [r7, #20]
  50724. 8015382: e01d b.n 80153c0 <prvWriteMessageToBuffer+0x56>
  50725. }
  50726. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  50727. 8015384: 68fb ldr r3, [r7, #12]
  50728. 8015386: 7f1b ldrb r3, [r3, #28]
  50729. 8015388: f003 0301 and.w r3, r3, #1
  50730. 801538c: 2b00 cmp r3, #0
  50731. 801538e: d108 bne.n 80153a2 <prvWriteMessageToBuffer+0x38>
  50732. {
  50733. /* This is a stream buffer, as opposed to a message buffer, so writing a
  50734. stream of bytes rather than discrete messages. Write as many bytes as
  50735. possible. */
  50736. xShouldWrite = pdTRUE;
  50737. 8015390: 2301 movs r3, #1
  50738. 8015392: 617b str r3, [r7, #20]
  50739. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  50740. 8015394: 687a ldr r2, [r7, #4]
  50741. 8015396: 683b ldr r3, [r7, #0]
  50742. 8015398: 4293 cmp r3, r2
  50743. 801539a: bf28 it cs
  50744. 801539c: 4613 movcs r3, r2
  50745. 801539e: 607b str r3, [r7, #4]
  50746. 80153a0: e00e b.n 80153c0 <prvWriteMessageToBuffer+0x56>
  50747. }
  50748. else if( xSpace >= xRequiredSpace )
  50749. 80153a2: 683a ldr r2, [r7, #0]
  50750. 80153a4: 6a3b ldr r3, [r7, #32]
  50751. 80153a6: 429a cmp r2, r3
  50752. 80153a8: d308 bcc.n 80153bc <prvWriteMessageToBuffer+0x52>
  50753. {
  50754. /* This is a message buffer, as opposed to a stream buffer, and there
  50755. is enough space to write both the message length and the message itself
  50756. into the buffer. Start by writing the length of the data, the data
  50757. itself will be written later in this function. */
  50758. xShouldWrite = pdTRUE;
  50759. 80153aa: 2301 movs r3, #1
  50760. 80153ac: 617b str r3, [r7, #20]
  50761. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  50762. 80153ae: 1d3b adds r3, r7, #4
  50763. 80153b0: 2204 movs r2, #4
  50764. 80153b2: 4619 mov r1, r3
  50765. 80153b4: 68f8 ldr r0, [r7, #12]
  50766. 80153b6: f000 f815 bl 80153e4 <prvWriteBytesToBuffer>
  50767. 80153ba: e001 b.n 80153c0 <prvWriteMessageToBuffer+0x56>
  50768. }
  50769. else
  50770. {
  50771. /* There is space available, but not enough space. */
  50772. xShouldWrite = pdFALSE;
  50773. 80153bc: 2300 movs r3, #0
  50774. 80153be: 617b str r3, [r7, #20]
  50775. }
  50776. if( xShouldWrite != pdFALSE )
  50777. 80153c0: 697b ldr r3, [r7, #20]
  50778. 80153c2: 2b00 cmp r3, #0
  50779. 80153c4: d007 beq.n 80153d6 <prvWriteMessageToBuffer+0x6c>
  50780. {
  50781. /* Writes the data itself. */
  50782. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  50783. 80153c6: 687b ldr r3, [r7, #4]
  50784. 80153c8: 461a mov r2, r3
  50785. 80153ca: 68b9 ldr r1, [r7, #8]
  50786. 80153cc: 68f8 ldr r0, [r7, #12]
  50787. 80153ce: f000 f809 bl 80153e4 <prvWriteBytesToBuffer>
  50788. 80153d2: 6138 str r0, [r7, #16]
  50789. 80153d4: e001 b.n 80153da <prvWriteMessageToBuffer+0x70>
  50790. }
  50791. else
  50792. {
  50793. xReturn = 0;
  50794. 80153d6: 2300 movs r3, #0
  50795. 80153d8: 613b str r3, [r7, #16]
  50796. }
  50797. return xReturn;
  50798. 80153da: 693b ldr r3, [r7, #16]
  50799. }
  50800. 80153dc: 4618 mov r0, r3
  50801. 80153de: 3718 adds r7, #24
  50802. 80153e0: 46bd mov sp, r7
  50803. 80153e2: bd80 pop {r7, pc}
  50804. 080153e4 <prvWriteBytesToBuffer>:
  50805. return xReturn;
  50806. }
  50807. /*-----------------------------------------------------------*/
  50808. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  50809. {
  50810. 80153e4: b580 push {r7, lr}
  50811. 80153e6: b08a sub sp, #40 @ 0x28
  50812. 80153e8: af00 add r7, sp, #0
  50813. 80153ea: 60f8 str r0, [r7, #12]
  50814. 80153ec: 60b9 str r1, [r7, #8]
  50815. 80153ee: 607a str r2, [r7, #4]
  50816. size_t xNextHead, xFirstLength;
  50817. configASSERT( xCount > ( size_t ) 0 );
  50818. 80153f0: 687b ldr r3, [r7, #4]
  50819. 80153f2: 2b00 cmp r3, #0
  50820. 80153f4: d10b bne.n 801540e <prvWriteBytesToBuffer+0x2a>
  50821. __asm volatile
  50822. 80153f6: f04f 0350 mov.w r3, #80 @ 0x50
  50823. 80153fa: f383 8811 msr BASEPRI, r3
  50824. 80153fe: f3bf 8f6f isb sy
  50825. 8015402: f3bf 8f4f dsb sy
  50826. 8015406: 61fb str r3, [r7, #28]
  50827. }
  50828. 8015408: bf00 nop
  50829. 801540a: bf00 nop
  50830. 801540c: e7fd b.n 801540a <prvWriteBytesToBuffer+0x26>
  50831. xNextHead = pxStreamBuffer->xHead;
  50832. 801540e: 68fb ldr r3, [r7, #12]
  50833. 8015410: 685b ldr r3, [r3, #4]
  50834. 8015412: 627b str r3, [r7, #36] @ 0x24
  50835. /* Calculate the number of bytes that can be added in the first write -
  50836. which may be less than the total number of bytes that need to be added if
  50837. the buffer will wrap back to the beginning. */
  50838. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  50839. 8015414: 68fb ldr r3, [r7, #12]
  50840. 8015416: 689a ldr r2, [r3, #8]
  50841. 8015418: 6a7b ldr r3, [r7, #36] @ 0x24
  50842. 801541a: 1ad3 subs r3, r2, r3
  50843. 801541c: 687a ldr r2, [r7, #4]
  50844. 801541e: 4293 cmp r3, r2
  50845. 8015420: bf28 it cs
  50846. 8015422: 4613 movcs r3, r2
  50847. 8015424: 623b str r3, [r7, #32]
  50848. /* Write as many bytes as can be written in the first write. */
  50849. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  50850. 8015426: 6a7a ldr r2, [r7, #36] @ 0x24
  50851. 8015428: 6a3b ldr r3, [r7, #32]
  50852. 801542a: 441a add r2, r3
  50853. 801542c: 68fb ldr r3, [r7, #12]
  50854. 801542e: 689b ldr r3, [r3, #8]
  50855. 8015430: 429a cmp r2, r3
  50856. 8015432: d90b bls.n 801544c <prvWriteBytesToBuffer+0x68>
  50857. __asm volatile
  50858. 8015434: f04f 0350 mov.w r3, #80 @ 0x50
  50859. 8015438: f383 8811 msr BASEPRI, r3
  50860. 801543c: f3bf 8f6f isb sy
  50861. 8015440: f3bf 8f4f dsb sy
  50862. 8015444: 61bb str r3, [r7, #24]
  50863. }
  50864. 8015446: bf00 nop
  50865. 8015448: bf00 nop
  50866. 801544a: e7fd b.n 8015448 <prvWriteBytesToBuffer+0x64>
  50867. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50868. 801544c: 68fb ldr r3, [r7, #12]
  50869. 801544e: 699a ldr r2, [r3, #24]
  50870. 8015450: 6a7b ldr r3, [r7, #36] @ 0x24
  50871. 8015452: 4413 add r3, r2
  50872. 8015454: 6a3a ldr r2, [r7, #32]
  50873. 8015456: 68b9 ldr r1, [r7, #8]
  50874. 8015458: 4618 mov r0, r3
  50875. 801545a: f002 fd76 bl 8017f4a <memcpy>
  50876. /* If the number of bytes written was less than the number that could be
  50877. written in the first write... */
  50878. if( xCount > xFirstLength )
  50879. 801545e: 687a ldr r2, [r7, #4]
  50880. 8015460: 6a3b ldr r3, [r7, #32]
  50881. 8015462: 429a cmp r2, r3
  50882. 8015464: d91d bls.n 80154a2 <prvWriteBytesToBuffer+0xbe>
  50883. {
  50884. /* ...then write the remaining bytes to the start of the buffer. */
  50885. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  50886. 8015466: 687a ldr r2, [r7, #4]
  50887. 8015468: 6a3b ldr r3, [r7, #32]
  50888. 801546a: 1ad2 subs r2, r2, r3
  50889. 801546c: 68fb ldr r3, [r7, #12]
  50890. 801546e: 689b ldr r3, [r3, #8]
  50891. 8015470: 429a cmp r2, r3
  50892. 8015472: d90b bls.n 801548c <prvWriteBytesToBuffer+0xa8>
  50893. __asm volatile
  50894. 8015474: f04f 0350 mov.w r3, #80 @ 0x50
  50895. 8015478: f383 8811 msr BASEPRI, r3
  50896. 801547c: f3bf 8f6f isb sy
  50897. 8015480: f3bf 8f4f dsb sy
  50898. 8015484: 617b str r3, [r7, #20]
  50899. }
  50900. 8015486: bf00 nop
  50901. 8015488: bf00 nop
  50902. 801548a: e7fd b.n 8015488 <prvWriteBytesToBuffer+0xa4>
  50903. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50904. 801548c: 68fb ldr r3, [r7, #12]
  50905. 801548e: 6998 ldr r0, [r3, #24]
  50906. 8015490: 68ba ldr r2, [r7, #8]
  50907. 8015492: 6a3b ldr r3, [r7, #32]
  50908. 8015494: 18d1 adds r1, r2, r3
  50909. 8015496: 687a ldr r2, [r7, #4]
  50910. 8015498: 6a3b ldr r3, [r7, #32]
  50911. 801549a: 1ad3 subs r3, r2, r3
  50912. 801549c: 461a mov r2, r3
  50913. 801549e: f002 fd54 bl 8017f4a <memcpy>
  50914. else
  50915. {
  50916. mtCOVERAGE_TEST_MARKER();
  50917. }
  50918. xNextHead += xCount;
  50919. 80154a2: 6a7a ldr r2, [r7, #36] @ 0x24
  50920. 80154a4: 687b ldr r3, [r7, #4]
  50921. 80154a6: 4413 add r3, r2
  50922. 80154a8: 627b str r3, [r7, #36] @ 0x24
  50923. if( xNextHead >= pxStreamBuffer->xLength )
  50924. 80154aa: 68fb ldr r3, [r7, #12]
  50925. 80154ac: 689b ldr r3, [r3, #8]
  50926. 80154ae: 6a7a ldr r2, [r7, #36] @ 0x24
  50927. 80154b0: 429a cmp r2, r3
  50928. 80154b2: d304 bcc.n 80154be <prvWriteBytesToBuffer+0xda>
  50929. {
  50930. xNextHead -= pxStreamBuffer->xLength;
  50931. 80154b4: 68fb ldr r3, [r7, #12]
  50932. 80154b6: 689b ldr r3, [r3, #8]
  50933. 80154b8: 6a7a ldr r2, [r7, #36] @ 0x24
  50934. 80154ba: 1ad3 subs r3, r2, r3
  50935. 80154bc: 627b str r3, [r7, #36] @ 0x24
  50936. else
  50937. {
  50938. mtCOVERAGE_TEST_MARKER();
  50939. }
  50940. pxStreamBuffer->xHead = xNextHead;
  50941. 80154be: 68fb ldr r3, [r7, #12]
  50942. 80154c0: 6a7a ldr r2, [r7, #36] @ 0x24
  50943. 80154c2: 605a str r2, [r3, #4]
  50944. return xCount;
  50945. 80154c4: 687b ldr r3, [r7, #4]
  50946. }
  50947. 80154c6: 4618 mov r0, r3
  50948. 80154c8: 3728 adds r7, #40 @ 0x28
  50949. 80154ca: 46bd mov sp, r7
  50950. 80154cc: bd80 pop {r7, pc}
  50951. 080154ce <prvBytesInBuffer>:
  50952. return xCount;
  50953. }
  50954. /*-----------------------------------------------------------*/
  50955. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  50956. {
  50957. 80154ce: b480 push {r7}
  50958. 80154d0: b085 sub sp, #20
  50959. 80154d2: af00 add r7, sp, #0
  50960. 80154d4: 6078 str r0, [r7, #4]
  50961. /* Returns the distance between xTail and xHead. */
  50962. size_t xCount;
  50963. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  50964. 80154d6: 687b ldr r3, [r7, #4]
  50965. 80154d8: 689a ldr r2, [r3, #8]
  50966. 80154da: 687b ldr r3, [r7, #4]
  50967. 80154dc: 685b ldr r3, [r3, #4]
  50968. 80154de: 4413 add r3, r2
  50969. 80154e0: 60fb str r3, [r7, #12]
  50970. xCount -= pxStreamBuffer->xTail;
  50971. 80154e2: 687b ldr r3, [r7, #4]
  50972. 80154e4: 681b ldr r3, [r3, #0]
  50973. 80154e6: 68fa ldr r2, [r7, #12]
  50974. 80154e8: 1ad3 subs r3, r2, r3
  50975. 80154ea: 60fb str r3, [r7, #12]
  50976. if ( xCount >= pxStreamBuffer->xLength )
  50977. 80154ec: 687b ldr r3, [r7, #4]
  50978. 80154ee: 689b ldr r3, [r3, #8]
  50979. 80154f0: 68fa ldr r2, [r7, #12]
  50980. 80154f2: 429a cmp r2, r3
  50981. 80154f4: d304 bcc.n 8015500 <prvBytesInBuffer+0x32>
  50982. {
  50983. xCount -= pxStreamBuffer->xLength;
  50984. 80154f6: 687b ldr r3, [r7, #4]
  50985. 80154f8: 689b ldr r3, [r3, #8]
  50986. 80154fa: 68fa ldr r2, [r7, #12]
  50987. 80154fc: 1ad3 subs r3, r2, r3
  50988. 80154fe: 60fb str r3, [r7, #12]
  50989. else
  50990. {
  50991. mtCOVERAGE_TEST_MARKER();
  50992. }
  50993. return xCount;
  50994. 8015500: 68fb ldr r3, [r7, #12]
  50995. }
  50996. 8015502: 4618 mov r0, r3
  50997. 8015504: 3714 adds r7, #20
  50998. 8015506: 46bd mov sp, r7
  50999. 8015508: f85d 7b04 ldr.w r7, [sp], #4
  51000. 801550c: 4770 bx lr
  51001. 0801550e <xTaskCreateStatic>:
  51002. const uint32_t ulStackDepth,
  51003. void * const pvParameters,
  51004. UBaseType_t uxPriority,
  51005. StackType_t * const puxStackBuffer,
  51006. StaticTask_t * const pxTaskBuffer )
  51007. {
  51008. 801550e: b580 push {r7, lr}
  51009. 8015510: b08e sub sp, #56 @ 0x38
  51010. 8015512: af04 add r7, sp, #16
  51011. 8015514: 60f8 str r0, [r7, #12]
  51012. 8015516: 60b9 str r1, [r7, #8]
  51013. 8015518: 607a str r2, [r7, #4]
  51014. 801551a: 603b str r3, [r7, #0]
  51015. TCB_t *pxNewTCB;
  51016. TaskHandle_t xReturn;
  51017. configASSERT( puxStackBuffer != NULL );
  51018. 801551c: 6b7b ldr r3, [r7, #52] @ 0x34
  51019. 801551e: 2b00 cmp r3, #0
  51020. 8015520: d10b bne.n 801553a <xTaskCreateStatic+0x2c>
  51021. __asm volatile
  51022. 8015522: f04f 0350 mov.w r3, #80 @ 0x50
  51023. 8015526: f383 8811 msr BASEPRI, r3
  51024. 801552a: f3bf 8f6f isb sy
  51025. 801552e: f3bf 8f4f dsb sy
  51026. 8015532: 623b str r3, [r7, #32]
  51027. }
  51028. 8015534: bf00 nop
  51029. 8015536: bf00 nop
  51030. 8015538: e7fd b.n 8015536 <xTaskCreateStatic+0x28>
  51031. configASSERT( pxTaskBuffer != NULL );
  51032. 801553a: 6bbb ldr r3, [r7, #56] @ 0x38
  51033. 801553c: 2b00 cmp r3, #0
  51034. 801553e: d10b bne.n 8015558 <xTaskCreateStatic+0x4a>
  51035. __asm volatile
  51036. 8015540: f04f 0350 mov.w r3, #80 @ 0x50
  51037. 8015544: f383 8811 msr BASEPRI, r3
  51038. 8015548: f3bf 8f6f isb sy
  51039. 801554c: f3bf 8f4f dsb sy
  51040. 8015550: 61fb str r3, [r7, #28]
  51041. }
  51042. 8015552: bf00 nop
  51043. 8015554: bf00 nop
  51044. 8015556: e7fd b.n 8015554 <xTaskCreateStatic+0x46>
  51045. #if( configASSERT_DEFINED == 1 )
  51046. {
  51047. /* Sanity check that the size of the structure used to declare a
  51048. variable of type StaticTask_t equals the size of the real task
  51049. structure. */
  51050. volatile size_t xSize = sizeof( StaticTask_t );
  51051. 8015558: 23a8 movs r3, #168 @ 0xa8
  51052. 801555a: 613b str r3, [r7, #16]
  51053. configASSERT( xSize == sizeof( TCB_t ) );
  51054. 801555c: 693b ldr r3, [r7, #16]
  51055. 801555e: 2ba8 cmp r3, #168 @ 0xa8
  51056. 8015560: d00b beq.n 801557a <xTaskCreateStatic+0x6c>
  51057. __asm volatile
  51058. 8015562: f04f 0350 mov.w r3, #80 @ 0x50
  51059. 8015566: f383 8811 msr BASEPRI, r3
  51060. 801556a: f3bf 8f6f isb sy
  51061. 801556e: f3bf 8f4f dsb sy
  51062. 8015572: 61bb str r3, [r7, #24]
  51063. }
  51064. 8015574: bf00 nop
  51065. 8015576: bf00 nop
  51066. 8015578: e7fd b.n 8015576 <xTaskCreateStatic+0x68>
  51067. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  51068. 801557a: 693b ldr r3, [r7, #16]
  51069. }
  51070. #endif /* configASSERT_DEFINED */
  51071. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  51072. 801557c: 6bbb ldr r3, [r7, #56] @ 0x38
  51073. 801557e: 2b00 cmp r3, #0
  51074. 8015580: d01e beq.n 80155c0 <xTaskCreateStatic+0xb2>
  51075. 8015582: 6b7b ldr r3, [r7, #52] @ 0x34
  51076. 8015584: 2b00 cmp r3, #0
  51077. 8015586: d01b beq.n 80155c0 <xTaskCreateStatic+0xb2>
  51078. {
  51079. /* The memory used for the task's TCB and stack are passed into this
  51080. function - use them. */
  51081. 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. */
  51082. 8015588: 6bbb ldr r3, [r7, #56] @ 0x38
  51083. 801558a: 627b str r3, [r7, #36] @ 0x24
  51084. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  51085. 801558c: 6a7b ldr r3, [r7, #36] @ 0x24
  51086. 801558e: 6b7a ldr r2, [r7, #52] @ 0x34
  51087. 8015590: 631a str r2, [r3, #48] @ 0x30
  51088. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  51089. {
  51090. /* Tasks can be created statically or dynamically, so note this
  51091. task was created statically in case the task is later deleted. */
  51092. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  51093. 8015592: 6a7b ldr r3, [r7, #36] @ 0x24
  51094. 8015594: 2202 movs r2, #2
  51095. 8015596: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  51096. }
  51097. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  51098. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  51099. 801559a: 2300 movs r3, #0
  51100. 801559c: 9303 str r3, [sp, #12]
  51101. 801559e: 6a7b ldr r3, [r7, #36] @ 0x24
  51102. 80155a0: 9302 str r3, [sp, #8]
  51103. 80155a2: f107 0314 add.w r3, r7, #20
  51104. 80155a6: 9301 str r3, [sp, #4]
  51105. 80155a8: 6b3b ldr r3, [r7, #48] @ 0x30
  51106. 80155aa: 9300 str r3, [sp, #0]
  51107. 80155ac: 683b ldr r3, [r7, #0]
  51108. 80155ae: 687a ldr r2, [r7, #4]
  51109. 80155b0: 68b9 ldr r1, [r7, #8]
  51110. 80155b2: 68f8 ldr r0, [r7, #12]
  51111. 80155b4: f000 f850 bl 8015658 <prvInitialiseNewTask>
  51112. prvAddNewTaskToReadyList( pxNewTCB );
  51113. 80155b8: 6a78 ldr r0, [r7, #36] @ 0x24
  51114. 80155ba: f000 f8f5 bl 80157a8 <prvAddNewTaskToReadyList>
  51115. 80155be: e001 b.n 80155c4 <xTaskCreateStatic+0xb6>
  51116. }
  51117. else
  51118. {
  51119. xReturn = NULL;
  51120. 80155c0: 2300 movs r3, #0
  51121. 80155c2: 617b str r3, [r7, #20]
  51122. }
  51123. return xReturn;
  51124. 80155c4: 697b ldr r3, [r7, #20]
  51125. }
  51126. 80155c6: 4618 mov r0, r3
  51127. 80155c8: 3728 adds r7, #40 @ 0x28
  51128. 80155ca: 46bd mov sp, r7
  51129. 80155cc: bd80 pop {r7, pc}
  51130. 080155ce <xTaskCreate>:
  51131. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  51132. const configSTACK_DEPTH_TYPE usStackDepth,
  51133. void * const pvParameters,
  51134. UBaseType_t uxPriority,
  51135. TaskHandle_t * const pxCreatedTask )
  51136. {
  51137. 80155ce: b580 push {r7, lr}
  51138. 80155d0: b08c sub sp, #48 @ 0x30
  51139. 80155d2: af04 add r7, sp, #16
  51140. 80155d4: 60f8 str r0, [r7, #12]
  51141. 80155d6: 60b9 str r1, [r7, #8]
  51142. 80155d8: 603b str r3, [r7, #0]
  51143. 80155da: 4613 mov r3, r2
  51144. 80155dc: 80fb strh r3, [r7, #6]
  51145. #else /* portSTACK_GROWTH */
  51146. {
  51147. StackType_t *pxStack;
  51148. /* Allocate space for the stack used by the task being created. */
  51149. 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. */
  51150. 80155de: 88fb ldrh r3, [r7, #6]
  51151. 80155e0: 009b lsls r3, r3, #2
  51152. 80155e2: 4618 mov r0, r3
  51153. 80155e4: f002 f8da bl 801779c <pvPortMalloc>
  51154. 80155e8: 6178 str r0, [r7, #20]
  51155. if( pxStack != NULL )
  51156. 80155ea: 697b ldr r3, [r7, #20]
  51157. 80155ec: 2b00 cmp r3, #0
  51158. 80155ee: d00e beq.n 801560e <xTaskCreate+0x40>
  51159. {
  51160. /* Allocate space for the TCB. */
  51161. 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. */
  51162. 80155f0: 20a8 movs r0, #168 @ 0xa8
  51163. 80155f2: f002 f8d3 bl 801779c <pvPortMalloc>
  51164. 80155f6: 61f8 str r0, [r7, #28]
  51165. if( pxNewTCB != NULL )
  51166. 80155f8: 69fb ldr r3, [r7, #28]
  51167. 80155fa: 2b00 cmp r3, #0
  51168. 80155fc: d003 beq.n 8015606 <xTaskCreate+0x38>
  51169. {
  51170. /* Store the stack location in the TCB. */
  51171. pxNewTCB->pxStack = pxStack;
  51172. 80155fe: 69fb ldr r3, [r7, #28]
  51173. 8015600: 697a ldr r2, [r7, #20]
  51174. 8015602: 631a str r2, [r3, #48] @ 0x30
  51175. 8015604: e005 b.n 8015612 <xTaskCreate+0x44>
  51176. }
  51177. else
  51178. {
  51179. /* The stack cannot be used as the TCB was not created. Free
  51180. it again. */
  51181. vPortFree( pxStack );
  51182. 8015606: 6978 ldr r0, [r7, #20]
  51183. 8015608: f002 f996 bl 8017938 <vPortFree>
  51184. 801560c: e001 b.n 8015612 <xTaskCreate+0x44>
  51185. }
  51186. }
  51187. else
  51188. {
  51189. pxNewTCB = NULL;
  51190. 801560e: 2300 movs r3, #0
  51191. 8015610: 61fb str r3, [r7, #28]
  51192. }
  51193. }
  51194. #endif /* portSTACK_GROWTH */
  51195. if( pxNewTCB != NULL )
  51196. 8015612: 69fb ldr r3, [r7, #28]
  51197. 8015614: 2b00 cmp r3, #0
  51198. 8015616: d017 beq.n 8015648 <xTaskCreate+0x7a>
  51199. {
  51200. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  51201. {
  51202. /* Tasks can be created statically or dynamically, so note this
  51203. task was created dynamically in case it is later deleted. */
  51204. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  51205. 8015618: 69fb ldr r3, [r7, #28]
  51206. 801561a: 2200 movs r2, #0
  51207. 801561c: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  51208. }
  51209. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  51210. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  51211. 8015620: 88fa ldrh r2, [r7, #6]
  51212. 8015622: 2300 movs r3, #0
  51213. 8015624: 9303 str r3, [sp, #12]
  51214. 8015626: 69fb ldr r3, [r7, #28]
  51215. 8015628: 9302 str r3, [sp, #8]
  51216. 801562a: 6afb ldr r3, [r7, #44] @ 0x2c
  51217. 801562c: 9301 str r3, [sp, #4]
  51218. 801562e: 6abb ldr r3, [r7, #40] @ 0x28
  51219. 8015630: 9300 str r3, [sp, #0]
  51220. 8015632: 683b ldr r3, [r7, #0]
  51221. 8015634: 68b9 ldr r1, [r7, #8]
  51222. 8015636: 68f8 ldr r0, [r7, #12]
  51223. 8015638: f000 f80e bl 8015658 <prvInitialiseNewTask>
  51224. prvAddNewTaskToReadyList( pxNewTCB );
  51225. 801563c: 69f8 ldr r0, [r7, #28]
  51226. 801563e: f000 f8b3 bl 80157a8 <prvAddNewTaskToReadyList>
  51227. xReturn = pdPASS;
  51228. 8015642: 2301 movs r3, #1
  51229. 8015644: 61bb str r3, [r7, #24]
  51230. 8015646: e002 b.n 801564e <xTaskCreate+0x80>
  51231. }
  51232. else
  51233. {
  51234. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  51235. 8015648: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  51236. 801564c: 61bb str r3, [r7, #24]
  51237. }
  51238. return xReturn;
  51239. 801564e: 69bb ldr r3, [r7, #24]
  51240. }
  51241. 8015650: 4618 mov r0, r3
  51242. 8015652: 3720 adds r7, #32
  51243. 8015654: 46bd mov sp, r7
  51244. 8015656: bd80 pop {r7, pc}
  51245. 08015658 <prvInitialiseNewTask>:
  51246. void * const pvParameters,
  51247. UBaseType_t uxPriority,
  51248. TaskHandle_t * const pxCreatedTask,
  51249. TCB_t *pxNewTCB,
  51250. const MemoryRegion_t * const xRegions )
  51251. {
  51252. 8015658: b580 push {r7, lr}
  51253. 801565a: b088 sub sp, #32
  51254. 801565c: af00 add r7, sp, #0
  51255. 801565e: 60f8 str r0, [r7, #12]
  51256. 8015660: 60b9 str r1, [r7, #8]
  51257. 8015662: 607a str r2, [r7, #4]
  51258. 8015664: 603b str r3, [r7, #0]
  51259. /* Avoid dependency on memset() if it is not required. */
  51260. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  51261. {
  51262. /* Fill the stack with a known value to assist debugging. */
  51263. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  51264. 8015666: 6b3b ldr r3, [r7, #48] @ 0x30
  51265. 8015668: 6b18 ldr r0, [r3, #48] @ 0x30
  51266. 801566a: 687b ldr r3, [r7, #4]
  51267. 801566c: 009b lsls r3, r3, #2
  51268. 801566e: 461a mov r2, r3
  51269. 8015670: 21a5 movs r1, #165 @ 0xa5
  51270. 8015672: f002 fb98 bl 8017da6 <memset>
  51271. grows from high memory to low (as per the 80x86) or vice versa.
  51272. portSTACK_GROWTH is used to make the result positive or negative as required
  51273. by the port. */
  51274. #if( portSTACK_GROWTH < 0 )
  51275. {
  51276. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  51277. 8015676: 6b3b ldr r3, [r7, #48] @ 0x30
  51278. 8015678: 6b1a ldr r2, [r3, #48] @ 0x30
  51279. 801567a: 6879 ldr r1, [r7, #4]
  51280. 801567c: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  51281. 8015680: 440b add r3, r1
  51282. 8015682: 009b lsls r3, r3, #2
  51283. 8015684: 4413 add r3, r2
  51284. 8015686: 61bb str r3, [r7, #24]
  51285. 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(). */
  51286. 8015688: 69bb ldr r3, [r7, #24]
  51287. 801568a: f023 0307 bic.w r3, r3, #7
  51288. 801568e: 61bb str r3, [r7, #24]
  51289. /* Check the alignment of the calculated top of stack is correct. */
  51290. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  51291. 8015690: 69bb ldr r3, [r7, #24]
  51292. 8015692: f003 0307 and.w r3, r3, #7
  51293. 8015696: 2b00 cmp r3, #0
  51294. 8015698: d00b beq.n 80156b2 <prvInitialiseNewTask+0x5a>
  51295. __asm volatile
  51296. 801569a: f04f 0350 mov.w r3, #80 @ 0x50
  51297. 801569e: f383 8811 msr BASEPRI, r3
  51298. 80156a2: f3bf 8f6f isb sy
  51299. 80156a6: f3bf 8f4f dsb sy
  51300. 80156aa: 617b str r3, [r7, #20]
  51301. }
  51302. 80156ac: bf00 nop
  51303. 80156ae: bf00 nop
  51304. 80156b0: e7fd b.n 80156ae <prvInitialiseNewTask+0x56>
  51305. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  51306. }
  51307. #endif /* portSTACK_GROWTH */
  51308. /* Store the task name in the TCB. */
  51309. if( pcName != NULL )
  51310. 80156b2: 68bb ldr r3, [r7, #8]
  51311. 80156b4: 2b00 cmp r3, #0
  51312. 80156b6: d01f beq.n 80156f8 <prvInitialiseNewTask+0xa0>
  51313. {
  51314. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  51315. 80156b8: 2300 movs r3, #0
  51316. 80156ba: 61fb str r3, [r7, #28]
  51317. 80156bc: e012 b.n 80156e4 <prvInitialiseNewTask+0x8c>
  51318. {
  51319. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  51320. 80156be: 68ba ldr r2, [r7, #8]
  51321. 80156c0: 69fb ldr r3, [r7, #28]
  51322. 80156c2: 4413 add r3, r2
  51323. 80156c4: 7819 ldrb r1, [r3, #0]
  51324. 80156c6: 6b3a ldr r2, [r7, #48] @ 0x30
  51325. 80156c8: 69fb ldr r3, [r7, #28]
  51326. 80156ca: 4413 add r3, r2
  51327. 80156cc: 3334 adds r3, #52 @ 0x34
  51328. 80156ce: 460a mov r2, r1
  51329. 80156d0: 701a strb r2, [r3, #0]
  51330. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  51331. configMAX_TASK_NAME_LEN characters just in case the memory after the
  51332. string is not accessible (extremely unlikely). */
  51333. if( pcName[ x ] == ( char ) 0x00 )
  51334. 80156d2: 68ba ldr r2, [r7, #8]
  51335. 80156d4: 69fb ldr r3, [r7, #28]
  51336. 80156d6: 4413 add r3, r2
  51337. 80156d8: 781b ldrb r3, [r3, #0]
  51338. 80156da: 2b00 cmp r3, #0
  51339. 80156dc: d006 beq.n 80156ec <prvInitialiseNewTask+0x94>
  51340. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  51341. 80156de: 69fb ldr r3, [r7, #28]
  51342. 80156e0: 3301 adds r3, #1
  51343. 80156e2: 61fb str r3, [r7, #28]
  51344. 80156e4: 69fb ldr r3, [r7, #28]
  51345. 80156e6: 2b0f cmp r3, #15
  51346. 80156e8: d9e9 bls.n 80156be <prvInitialiseNewTask+0x66>
  51347. 80156ea: e000 b.n 80156ee <prvInitialiseNewTask+0x96>
  51348. {
  51349. break;
  51350. 80156ec: bf00 nop
  51351. }
  51352. }
  51353. /* Ensure the name string is terminated in the case that the string length
  51354. was greater or equal to configMAX_TASK_NAME_LEN. */
  51355. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  51356. 80156ee: 6b3b ldr r3, [r7, #48] @ 0x30
  51357. 80156f0: 2200 movs r2, #0
  51358. 80156f2: f883 2043 strb.w r2, [r3, #67] @ 0x43
  51359. 80156f6: e003 b.n 8015700 <prvInitialiseNewTask+0xa8>
  51360. }
  51361. else
  51362. {
  51363. /* The task has not been given a name, so just ensure there is a NULL
  51364. terminator when it is read out. */
  51365. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  51366. 80156f8: 6b3b ldr r3, [r7, #48] @ 0x30
  51367. 80156fa: 2200 movs r2, #0
  51368. 80156fc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  51369. }
  51370. /* This is used as an array index so must ensure it's not too large. First
  51371. remove the privilege bit if one is present. */
  51372. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  51373. 8015700: 6abb ldr r3, [r7, #40] @ 0x28
  51374. 8015702: 2b37 cmp r3, #55 @ 0x37
  51375. 8015704: d901 bls.n 801570a <prvInitialiseNewTask+0xb2>
  51376. {
  51377. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  51378. 8015706: 2337 movs r3, #55 @ 0x37
  51379. 8015708: 62bb str r3, [r7, #40] @ 0x28
  51380. else
  51381. {
  51382. mtCOVERAGE_TEST_MARKER();
  51383. }
  51384. pxNewTCB->uxPriority = uxPriority;
  51385. 801570a: 6b3b ldr r3, [r7, #48] @ 0x30
  51386. 801570c: 6aba ldr r2, [r7, #40] @ 0x28
  51387. 801570e: 62da str r2, [r3, #44] @ 0x2c
  51388. #if ( configUSE_MUTEXES == 1 )
  51389. {
  51390. pxNewTCB->uxBasePriority = uxPriority;
  51391. 8015710: 6b3b ldr r3, [r7, #48] @ 0x30
  51392. 8015712: 6aba ldr r2, [r7, #40] @ 0x28
  51393. 8015714: 64da str r2, [r3, #76] @ 0x4c
  51394. pxNewTCB->uxMutexesHeld = 0;
  51395. 8015716: 6b3b ldr r3, [r7, #48] @ 0x30
  51396. 8015718: 2200 movs r2, #0
  51397. 801571a: 651a str r2, [r3, #80] @ 0x50
  51398. }
  51399. #endif /* configUSE_MUTEXES */
  51400. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  51401. 801571c: 6b3b ldr r3, [r7, #48] @ 0x30
  51402. 801571e: 3304 adds r3, #4
  51403. 8015720: 4618 mov r0, r3
  51404. 8015722: f7fe fd09 bl 8014138 <vListInitialiseItem>
  51405. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  51406. 8015726: 6b3b ldr r3, [r7, #48] @ 0x30
  51407. 8015728: 3318 adds r3, #24
  51408. 801572a: 4618 mov r0, r3
  51409. 801572c: f7fe fd04 bl 8014138 <vListInitialiseItem>
  51410. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  51411. back to the containing TCB from a generic item in a list. */
  51412. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  51413. 8015730: 6b3b ldr r3, [r7, #48] @ 0x30
  51414. 8015732: 6b3a ldr r2, [r7, #48] @ 0x30
  51415. 8015734: 611a str r2, [r3, #16]
  51416. /* Event lists are always in priority order. */
  51417. 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. */
  51418. 8015736: 6abb ldr r3, [r7, #40] @ 0x28
  51419. 8015738: f1c3 0238 rsb r2, r3, #56 @ 0x38
  51420. 801573c: 6b3b ldr r3, [r7, #48] @ 0x30
  51421. 801573e: 619a str r2, [r3, #24]
  51422. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  51423. 8015740: 6b3b ldr r3, [r7, #48] @ 0x30
  51424. 8015742: 6b3a ldr r2, [r7, #48] @ 0x30
  51425. 8015744: 625a str r2, [r3, #36] @ 0x24
  51426. }
  51427. #endif
  51428. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  51429. {
  51430. pxNewTCB->ulNotifiedValue = 0;
  51431. 8015746: 6b3b ldr r3, [r7, #48] @ 0x30
  51432. 8015748: 2200 movs r2, #0
  51433. 801574a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  51434. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  51435. 801574e: 6b3b ldr r3, [r7, #48] @ 0x30
  51436. 8015750: 2200 movs r2, #0
  51437. 8015752: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  51438. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  51439. {
  51440. /* Initialise this task's Newlib reent structure.
  51441. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  51442. for additional information. */
  51443. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  51444. 8015756: 6b3b ldr r3, [r7, #48] @ 0x30
  51445. 8015758: 3354 adds r3, #84 @ 0x54
  51446. 801575a: 224c movs r2, #76 @ 0x4c
  51447. 801575c: 2100 movs r1, #0
  51448. 801575e: 4618 mov r0, r3
  51449. 8015760: f002 fb21 bl 8017da6 <memset>
  51450. 8015764: 6b3b ldr r3, [r7, #48] @ 0x30
  51451. 8015766: 4a0d ldr r2, [pc, #52] @ (801579c <prvInitialiseNewTask+0x144>)
  51452. 8015768: 659a str r2, [r3, #88] @ 0x58
  51453. 801576a: 6b3b ldr r3, [r7, #48] @ 0x30
  51454. 801576c: 4a0c ldr r2, [pc, #48] @ (80157a0 <prvInitialiseNewTask+0x148>)
  51455. 801576e: 65da str r2, [r3, #92] @ 0x5c
  51456. 8015770: 6b3b ldr r3, [r7, #48] @ 0x30
  51457. 8015772: 4a0c ldr r2, [pc, #48] @ (80157a4 <prvInitialiseNewTask+0x14c>)
  51458. 8015774: 661a str r2, [r3, #96] @ 0x60
  51459. }
  51460. #endif /* portSTACK_GROWTH */
  51461. }
  51462. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  51463. {
  51464. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  51465. 8015776: 683a ldr r2, [r7, #0]
  51466. 8015778: 68f9 ldr r1, [r7, #12]
  51467. 801577a: 69b8 ldr r0, [r7, #24]
  51468. 801577c: f001 fdb8 bl 80172f0 <pxPortInitialiseStack>
  51469. 8015780: 4602 mov r2, r0
  51470. 8015782: 6b3b ldr r3, [r7, #48] @ 0x30
  51471. 8015784: 601a str r2, [r3, #0]
  51472. }
  51473. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  51474. }
  51475. #endif /* portUSING_MPU_WRAPPERS */
  51476. if( pxCreatedTask != NULL )
  51477. 8015786: 6afb ldr r3, [r7, #44] @ 0x2c
  51478. 8015788: 2b00 cmp r3, #0
  51479. 801578a: d002 beq.n 8015792 <prvInitialiseNewTask+0x13a>
  51480. {
  51481. /* Pass the handle out in an anonymous way. The handle can be used to
  51482. change the created task's priority, delete the created task, etc.*/
  51483. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  51484. 801578c: 6afb ldr r3, [r7, #44] @ 0x2c
  51485. 801578e: 6b3a ldr r2, [r7, #48] @ 0x30
  51486. 8015790: 601a str r2, [r3, #0]
  51487. }
  51488. else
  51489. {
  51490. mtCOVERAGE_TEST_MARKER();
  51491. }
  51492. }
  51493. 8015792: bf00 nop
  51494. 8015794: 3720 adds r7, #32
  51495. 8015796: 46bd mov sp, r7
  51496. 8015798: bd80 pop {r7, pc}
  51497. 801579a: bf00 nop
  51498. 801579c: 24012ce8 .word 0x24012ce8
  51499. 80157a0: 24012d50 .word 0x24012d50
  51500. 80157a4: 24012db8 .word 0x24012db8
  51501. 080157a8 <prvAddNewTaskToReadyList>:
  51502. /*-----------------------------------------------------------*/
  51503. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  51504. {
  51505. 80157a8: b580 push {r7, lr}
  51506. 80157aa: b082 sub sp, #8
  51507. 80157ac: af00 add r7, sp, #0
  51508. 80157ae: 6078 str r0, [r7, #4]
  51509. /* Ensure interrupts don't access the task lists while the lists are being
  51510. updated. */
  51511. taskENTER_CRITICAL();
  51512. 80157b0: f001 fed2 bl 8017558 <vPortEnterCritical>
  51513. {
  51514. uxCurrentNumberOfTasks++;
  51515. 80157b4: 4b2d ldr r3, [pc, #180] @ (801586c <prvAddNewTaskToReadyList+0xc4>)
  51516. 80157b6: 681b ldr r3, [r3, #0]
  51517. 80157b8: 3301 adds r3, #1
  51518. 80157ba: 4a2c ldr r2, [pc, #176] @ (801586c <prvAddNewTaskToReadyList+0xc4>)
  51519. 80157bc: 6013 str r3, [r2, #0]
  51520. if( pxCurrentTCB == NULL )
  51521. 80157be: 4b2c ldr r3, [pc, #176] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51522. 80157c0: 681b ldr r3, [r3, #0]
  51523. 80157c2: 2b00 cmp r3, #0
  51524. 80157c4: d109 bne.n 80157da <prvAddNewTaskToReadyList+0x32>
  51525. {
  51526. /* There are no other tasks, or all the other tasks are in
  51527. the suspended state - make this the current task. */
  51528. pxCurrentTCB = pxNewTCB;
  51529. 80157c6: 4a2a ldr r2, [pc, #168] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51530. 80157c8: 687b ldr r3, [r7, #4]
  51531. 80157ca: 6013 str r3, [r2, #0]
  51532. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  51533. 80157cc: 4b27 ldr r3, [pc, #156] @ (801586c <prvAddNewTaskToReadyList+0xc4>)
  51534. 80157ce: 681b ldr r3, [r3, #0]
  51535. 80157d0: 2b01 cmp r3, #1
  51536. 80157d2: d110 bne.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51537. {
  51538. /* This is the first task to be created so do the preliminary
  51539. initialisation required. We will not recover if this call
  51540. fails, but we will report the failure. */
  51541. prvInitialiseTaskLists();
  51542. 80157d4: f000 fc64 bl 80160a0 <prvInitialiseTaskLists>
  51543. 80157d8: e00d b.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51544. else
  51545. {
  51546. /* If the scheduler is not already running, make this task the
  51547. current task if it is the highest priority task to be created
  51548. so far. */
  51549. if( xSchedulerRunning == pdFALSE )
  51550. 80157da: 4b26 ldr r3, [pc, #152] @ (8015874 <prvAddNewTaskToReadyList+0xcc>)
  51551. 80157dc: 681b ldr r3, [r3, #0]
  51552. 80157de: 2b00 cmp r3, #0
  51553. 80157e0: d109 bne.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51554. {
  51555. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  51556. 80157e2: 4b23 ldr r3, [pc, #140] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51557. 80157e4: 681b ldr r3, [r3, #0]
  51558. 80157e6: 6ada ldr r2, [r3, #44] @ 0x2c
  51559. 80157e8: 687b ldr r3, [r7, #4]
  51560. 80157ea: 6adb ldr r3, [r3, #44] @ 0x2c
  51561. 80157ec: 429a cmp r2, r3
  51562. 80157ee: d802 bhi.n 80157f6 <prvAddNewTaskToReadyList+0x4e>
  51563. {
  51564. pxCurrentTCB = pxNewTCB;
  51565. 80157f0: 4a1f ldr r2, [pc, #124] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51566. 80157f2: 687b ldr r3, [r7, #4]
  51567. 80157f4: 6013 str r3, [r2, #0]
  51568. {
  51569. mtCOVERAGE_TEST_MARKER();
  51570. }
  51571. }
  51572. uxTaskNumber++;
  51573. 80157f6: 4b20 ldr r3, [pc, #128] @ (8015878 <prvAddNewTaskToReadyList+0xd0>)
  51574. 80157f8: 681b ldr r3, [r3, #0]
  51575. 80157fa: 3301 adds r3, #1
  51576. 80157fc: 4a1e ldr r2, [pc, #120] @ (8015878 <prvAddNewTaskToReadyList+0xd0>)
  51577. 80157fe: 6013 str r3, [r2, #0]
  51578. #if ( configUSE_TRACE_FACILITY == 1 )
  51579. {
  51580. /* Add a counter into the TCB for tracing only. */
  51581. pxNewTCB->uxTCBNumber = uxTaskNumber;
  51582. 8015800: 4b1d ldr r3, [pc, #116] @ (8015878 <prvAddNewTaskToReadyList+0xd0>)
  51583. 8015802: 681a ldr r2, [r3, #0]
  51584. 8015804: 687b ldr r3, [r7, #4]
  51585. 8015806: 645a str r2, [r3, #68] @ 0x44
  51586. }
  51587. #endif /* configUSE_TRACE_FACILITY */
  51588. traceTASK_CREATE( pxNewTCB );
  51589. prvAddTaskToReadyList( pxNewTCB );
  51590. 8015808: 687b ldr r3, [r7, #4]
  51591. 801580a: 6ada ldr r2, [r3, #44] @ 0x2c
  51592. 801580c: 4b1b ldr r3, [pc, #108] @ (801587c <prvAddNewTaskToReadyList+0xd4>)
  51593. 801580e: 681b ldr r3, [r3, #0]
  51594. 8015810: 429a cmp r2, r3
  51595. 8015812: d903 bls.n 801581c <prvAddNewTaskToReadyList+0x74>
  51596. 8015814: 687b ldr r3, [r7, #4]
  51597. 8015816: 6adb ldr r3, [r3, #44] @ 0x2c
  51598. 8015818: 4a18 ldr r2, [pc, #96] @ (801587c <prvAddNewTaskToReadyList+0xd4>)
  51599. 801581a: 6013 str r3, [r2, #0]
  51600. 801581c: 687b ldr r3, [r7, #4]
  51601. 801581e: 6ada ldr r2, [r3, #44] @ 0x2c
  51602. 8015820: 4613 mov r3, r2
  51603. 8015822: 009b lsls r3, r3, #2
  51604. 8015824: 4413 add r3, r2
  51605. 8015826: 009b lsls r3, r3, #2
  51606. 8015828: 4a15 ldr r2, [pc, #84] @ (8015880 <prvAddNewTaskToReadyList+0xd8>)
  51607. 801582a: 441a add r2, r3
  51608. 801582c: 687b ldr r3, [r7, #4]
  51609. 801582e: 3304 adds r3, #4
  51610. 8015830: 4619 mov r1, r3
  51611. 8015832: 4610 mov r0, r2
  51612. 8015834: f7fe fc8d bl 8014152 <vListInsertEnd>
  51613. portSETUP_TCB( pxNewTCB );
  51614. }
  51615. taskEXIT_CRITICAL();
  51616. 8015838: f001 fec0 bl 80175bc <vPortExitCritical>
  51617. if( xSchedulerRunning != pdFALSE )
  51618. 801583c: 4b0d ldr r3, [pc, #52] @ (8015874 <prvAddNewTaskToReadyList+0xcc>)
  51619. 801583e: 681b ldr r3, [r3, #0]
  51620. 8015840: 2b00 cmp r3, #0
  51621. 8015842: d00e beq.n 8015862 <prvAddNewTaskToReadyList+0xba>
  51622. {
  51623. /* If the created task is of a higher priority than the current task
  51624. then it should run now. */
  51625. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  51626. 8015844: 4b0a ldr r3, [pc, #40] @ (8015870 <prvAddNewTaskToReadyList+0xc8>)
  51627. 8015846: 681b ldr r3, [r3, #0]
  51628. 8015848: 6ada ldr r2, [r3, #44] @ 0x2c
  51629. 801584a: 687b ldr r3, [r7, #4]
  51630. 801584c: 6adb ldr r3, [r3, #44] @ 0x2c
  51631. 801584e: 429a cmp r2, r3
  51632. 8015850: d207 bcs.n 8015862 <prvAddNewTaskToReadyList+0xba>
  51633. {
  51634. taskYIELD_IF_USING_PREEMPTION();
  51635. 8015852: 4b0c ldr r3, [pc, #48] @ (8015884 <prvAddNewTaskToReadyList+0xdc>)
  51636. 8015854: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51637. 8015858: 601a str r2, [r3, #0]
  51638. 801585a: f3bf 8f4f dsb sy
  51639. 801585e: f3bf 8f6f isb sy
  51640. }
  51641. else
  51642. {
  51643. mtCOVERAGE_TEST_MARKER();
  51644. }
  51645. }
  51646. 8015862: bf00 nop
  51647. 8015864: 3708 adds r7, #8
  51648. 8015866: 46bd mov sp, r7
  51649. 8015868: bd80 pop {r7, pc}
  51650. 801586a: bf00 nop
  51651. 801586c: 24002b68 .word 0x24002b68
  51652. 8015870: 24002694 .word 0x24002694
  51653. 8015874: 24002b74 .word 0x24002b74
  51654. 8015878: 24002b84 .word 0x24002b84
  51655. 801587c: 24002b70 .word 0x24002b70
  51656. 8015880: 24002698 .word 0x24002698
  51657. 8015884: e000ed04 .word 0xe000ed04
  51658. 08015888 <vTaskDelay>:
  51659. /*-----------------------------------------------------------*/
  51660. #if ( INCLUDE_vTaskDelay == 1 )
  51661. void vTaskDelay( const TickType_t xTicksToDelay )
  51662. {
  51663. 8015888: b580 push {r7, lr}
  51664. 801588a: b084 sub sp, #16
  51665. 801588c: af00 add r7, sp, #0
  51666. 801588e: 6078 str r0, [r7, #4]
  51667. BaseType_t xAlreadyYielded = pdFALSE;
  51668. 8015890: 2300 movs r3, #0
  51669. 8015892: 60fb str r3, [r7, #12]
  51670. /* A delay time of zero just forces a reschedule. */
  51671. if( xTicksToDelay > ( TickType_t ) 0U )
  51672. 8015894: 687b ldr r3, [r7, #4]
  51673. 8015896: 2b00 cmp r3, #0
  51674. 8015898: d018 beq.n 80158cc <vTaskDelay+0x44>
  51675. {
  51676. configASSERT( uxSchedulerSuspended == 0 );
  51677. 801589a: 4b14 ldr r3, [pc, #80] @ (80158ec <vTaskDelay+0x64>)
  51678. 801589c: 681b ldr r3, [r3, #0]
  51679. 801589e: 2b00 cmp r3, #0
  51680. 80158a0: d00b beq.n 80158ba <vTaskDelay+0x32>
  51681. __asm volatile
  51682. 80158a2: f04f 0350 mov.w r3, #80 @ 0x50
  51683. 80158a6: f383 8811 msr BASEPRI, r3
  51684. 80158aa: f3bf 8f6f isb sy
  51685. 80158ae: f3bf 8f4f dsb sy
  51686. 80158b2: 60bb str r3, [r7, #8]
  51687. }
  51688. 80158b4: bf00 nop
  51689. 80158b6: bf00 nop
  51690. 80158b8: e7fd b.n 80158b6 <vTaskDelay+0x2e>
  51691. vTaskSuspendAll();
  51692. 80158ba: f000 f88b bl 80159d4 <vTaskSuspendAll>
  51693. list or removed from the blocked list until the scheduler
  51694. is resumed.
  51695. This task cannot be in an event list as it is the currently
  51696. executing task. */
  51697. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  51698. 80158be: 2100 movs r1, #0
  51699. 80158c0: 6878 ldr r0, [r7, #4]
  51700. 80158c2: f001 f87d bl 80169c0 <prvAddCurrentTaskToDelayedList>
  51701. }
  51702. xAlreadyYielded = xTaskResumeAll();
  51703. 80158c6: f000 f893 bl 80159f0 <xTaskResumeAll>
  51704. 80158ca: 60f8 str r0, [r7, #12]
  51705. mtCOVERAGE_TEST_MARKER();
  51706. }
  51707. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  51708. have put ourselves to sleep. */
  51709. if( xAlreadyYielded == pdFALSE )
  51710. 80158cc: 68fb ldr r3, [r7, #12]
  51711. 80158ce: 2b00 cmp r3, #0
  51712. 80158d0: d107 bne.n 80158e2 <vTaskDelay+0x5a>
  51713. {
  51714. portYIELD_WITHIN_API();
  51715. 80158d2: 4b07 ldr r3, [pc, #28] @ (80158f0 <vTaskDelay+0x68>)
  51716. 80158d4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51717. 80158d8: 601a str r2, [r3, #0]
  51718. 80158da: f3bf 8f4f dsb sy
  51719. 80158de: f3bf 8f6f isb sy
  51720. }
  51721. else
  51722. {
  51723. mtCOVERAGE_TEST_MARKER();
  51724. }
  51725. }
  51726. 80158e2: bf00 nop
  51727. 80158e4: 3710 adds r7, #16
  51728. 80158e6: 46bd mov sp, r7
  51729. 80158e8: bd80 pop {r7, pc}
  51730. 80158ea: bf00 nop
  51731. 80158ec: 24002b90 .word 0x24002b90
  51732. 80158f0: e000ed04 .word 0xe000ed04
  51733. 080158f4 <vTaskStartScheduler>:
  51734. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  51735. /*-----------------------------------------------------------*/
  51736. void vTaskStartScheduler( void )
  51737. {
  51738. 80158f4: b580 push {r7, lr}
  51739. 80158f6: b08a sub sp, #40 @ 0x28
  51740. 80158f8: af04 add r7, sp, #16
  51741. BaseType_t xReturn;
  51742. /* Add the idle task at the lowest priority. */
  51743. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  51744. {
  51745. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  51746. 80158fa: 2300 movs r3, #0
  51747. 80158fc: 60bb str r3, [r7, #8]
  51748. StackType_t *pxIdleTaskStackBuffer = NULL;
  51749. 80158fe: 2300 movs r3, #0
  51750. 8015900: 607b str r3, [r7, #4]
  51751. uint32_t ulIdleTaskStackSize;
  51752. /* The Idle task is created using user provided RAM - obtain the
  51753. address of the RAM then create the idle task. */
  51754. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  51755. 8015902: 463a mov r2, r7
  51756. 8015904: 1d39 adds r1, r7, #4
  51757. 8015906: f107 0308 add.w r3, r7, #8
  51758. 801590a: 4618 mov r0, r3
  51759. 801590c: f7fe fbc0 bl 8014090 <vApplicationGetIdleTaskMemory>
  51760. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  51761. 8015910: 6839 ldr r1, [r7, #0]
  51762. 8015912: 687b ldr r3, [r7, #4]
  51763. 8015914: 68ba ldr r2, [r7, #8]
  51764. 8015916: 9202 str r2, [sp, #8]
  51765. 8015918: 9301 str r3, [sp, #4]
  51766. 801591a: 2300 movs r3, #0
  51767. 801591c: 9300 str r3, [sp, #0]
  51768. 801591e: 2300 movs r3, #0
  51769. 8015920: 460a mov r2, r1
  51770. 8015922: 4924 ldr r1, [pc, #144] @ (80159b4 <vTaskStartScheduler+0xc0>)
  51771. 8015924: 4824 ldr r0, [pc, #144] @ (80159b8 <vTaskStartScheduler+0xc4>)
  51772. 8015926: f7ff fdf2 bl 801550e <xTaskCreateStatic>
  51773. 801592a: 4603 mov r3, r0
  51774. 801592c: 4a23 ldr r2, [pc, #140] @ (80159bc <vTaskStartScheduler+0xc8>)
  51775. 801592e: 6013 str r3, [r2, #0]
  51776. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  51777. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  51778. pxIdleTaskStackBuffer,
  51779. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  51780. if( xIdleTaskHandle != NULL )
  51781. 8015930: 4b22 ldr r3, [pc, #136] @ (80159bc <vTaskStartScheduler+0xc8>)
  51782. 8015932: 681b ldr r3, [r3, #0]
  51783. 8015934: 2b00 cmp r3, #0
  51784. 8015936: d002 beq.n 801593e <vTaskStartScheduler+0x4a>
  51785. {
  51786. xReturn = pdPASS;
  51787. 8015938: 2301 movs r3, #1
  51788. 801593a: 617b str r3, [r7, #20]
  51789. 801593c: e001 b.n 8015942 <vTaskStartScheduler+0x4e>
  51790. }
  51791. else
  51792. {
  51793. xReturn = pdFAIL;
  51794. 801593e: 2300 movs r3, #0
  51795. 8015940: 617b str r3, [r7, #20]
  51796. }
  51797. #endif /* configSUPPORT_STATIC_ALLOCATION */
  51798. #if ( configUSE_TIMERS == 1 )
  51799. {
  51800. if( xReturn == pdPASS )
  51801. 8015942: 697b ldr r3, [r7, #20]
  51802. 8015944: 2b01 cmp r3, #1
  51803. 8015946: d102 bne.n 801594e <vTaskStartScheduler+0x5a>
  51804. {
  51805. xReturn = xTimerCreateTimerTask();
  51806. 8015948: f001 f88e bl 8016a68 <xTimerCreateTimerTask>
  51807. 801594c: 6178 str r0, [r7, #20]
  51808. mtCOVERAGE_TEST_MARKER();
  51809. }
  51810. }
  51811. #endif /* configUSE_TIMERS */
  51812. if( xReturn == pdPASS )
  51813. 801594e: 697b ldr r3, [r7, #20]
  51814. 8015950: 2b01 cmp r3, #1
  51815. 8015952: d11b bne.n 801598c <vTaskStartScheduler+0x98>
  51816. __asm volatile
  51817. 8015954: f04f 0350 mov.w r3, #80 @ 0x50
  51818. 8015958: f383 8811 msr BASEPRI, r3
  51819. 801595c: f3bf 8f6f isb sy
  51820. 8015960: f3bf 8f4f dsb sy
  51821. 8015964: 613b str r3, [r7, #16]
  51822. }
  51823. 8015966: bf00 nop
  51824. {
  51825. /* Switch Newlib's _impure_ptr variable to point to the _reent
  51826. structure specific to the task that will run first.
  51827. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  51828. for additional information. */
  51829. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  51830. 8015968: 4b15 ldr r3, [pc, #84] @ (80159c0 <vTaskStartScheduler+0xcc>)
  51831. 801596a: 681b ldr r3, [r3, #0]
  51832. 801596c: 3354 adds r3, #84 @ 0x54
  51833. 801596e: 4a15 ldr r2, [pc, #84] @ (80159c4 <vTaskStartScheduler+0xd0>)
  51834. 8015970: 6013 str r3, [r2, #0]
  51835. }
  51836. #endif /* configUSE_NEWLIB_REENTRANT */
  51837. xNextTaskUnblockTime = portMAX_DELAY;
  51838. 8015972: 4b15 ldr r3, [pc, #84] @ (80159c8 <vTaskStartScheduler+0xd4>)
  51839. 8015974: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  51840. 8015978: 601a str r2, [r3, #0]
  51841. xSchedulerRunning = pdTRUE;
  51842. 801597a: 4b14 ldr r3, [pc, #80] @ (80159cc <vTaskStartScheduler+0xd8>)
  51843. 801597c: 2201 movs r2, #1
  51844. 801597e: 601a str r2, [r3, #0]
  51845. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  51846. 8015980: 4b13 ldr r3, [pc, #76] @ (80159d0 <vTaskStartScheduler+0xdc>)
  51847. 8015982: 2200 movs r2, #0
  51848. 8015984: 601a str r2, [r3, #0]
  51849. traceTASK_SWITCHED_IN();
  51850. /* Setting up the timer tick is hardware specific and thus in the
  51851. portable interface. */
  51852. if( xPortStartScheduler() != pdFALSE )
  51853. 8015986: f001 fd43 bl 8017410 <xPortStartScheduler>
  51854. }
  51855. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  51856. meaning xIdleTaskHandle is not used anywhere else. */
  51857. ( void ) xIdleTaskHandle;
  51858. }
  51859. 801598a: e00f b.n 80159ac <vTaskStartScheduler+0xb8>
  51860. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  51861. 801598c: 697b ldr r3, [r7, #20]
  51862. 801598e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51863. 8015992: d10b bne.n 80159ac <vTaskStartScheduler+0xb8>
  51864. __asm volatile
  51865. 8015994: f04f 0350 mov.w r3, #80 @ 0x50
  51866. 8015998: f383 8811 msr BASEPRI, r3
  51867. 801599c: f3bf 8f6f isb sy
  51868. 80159a0: f3bf 8f4f dsb sy
  51869. 80159a4: 60fb str r3, [r7, #12]
  51870. }
  51871. 80159a6: bf00 nop
  51872. 80159a8: bf00 nop
  51873. 80159aa: e7fd b.n 80159a8 <vTaskStartScheduler+0xb4>
  51874. }
  51875. 80159ac: bf00 nop
  51876. 80159ae: 3718 adds r7, #24
  51877. 80159b0: 46bd mov sp, r7
  51878. 80159b2: bd80 pop {r7, pc}
  51879. 80159b4: 08018b9c .word 0x08018b9c
  51880. 80159b8: 08016071 .word 0x08016071
  51881. 80159bc: 24002b8c .word 0x24002b8c
  51882. 80159c0: 24002694 .word 0x24002694
  51883. 80159c4: 24000054 .word 0x24000054
  51884. 80159c8: 24002b88 .word 0x24002b88
  51885. 80159cc: 24002b74 .word 0x24002b74
  51886. 80159d0: 24002b6c .word 0x24002b6c
  51887. 080159d4 <vTaskSuspendAll>:
  51888. vPortEndScheduler();
  51889. }
  51890. /*----------------------------------------------------------*/
  51891. void vTaskSuspendAll( void )
  51892. {
  51893. 80159d4: b480 push {r7}
  51894. 80159d6: af00 add r7, sp, #0
  51895. do not otherwise exhibit real time behaviour. */
  51896. portSOFTWARE_BARRIER();
  51897. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  51898. is used to allow calls to vTaskSuspendAll() to nest. */
  51899. ++uxSchedulerSuspended;
  51900. 80159d8: 4b04 ldr r3, [pc, #16] @ (80159ec <vTaskSuspendAll+0x18>)
  51901. 80159da: 681b ldr r3, [r3, #0]
  51902. 80159dc: 3301 adds r3, #1
  51903. 80159de: 4a03 ldr r2, [pc, #12] @ (80159ec <vTaskSuspendAll+0x18>)
  51904. 80159e0: 6013 str r3, [r2, #0]
  51905. /* Enforces ordering for ports and optimised compilers that may otherwise place
  51906. the above increment elsewhere. */
  51907. portMEMORY_BARRIER();
  51908. }
  51909. 80159e2: bf00 nop
  51910. 80159e4: 46bd mov sp, r7
  51911. 80159e6: f85d 7b04 ldr.w r7, [sp], #4
  51912. 80159ea: 4770 bx lr
  51913. 80159ec: 24002b90 .word 0x24002b90
  51914. 080159f0 <xTaskResumeAll>:
  51915. #endif /* configUSE_TICKLESS_IDLE */
  51916. /*----------------------------------------------------------*/
  51917. BaseType_t xTaskResumeAll( void )
  51918. {
  51919. 80159f0: b580 push {r7, lr}
  51920. 80159f2: b084 sub sp, #16
  51921. 80159f4: af00 add r7, sp, #0
  51922. TCB_t *pxTCB = NULL;
  51923. 80159f6: 2300 movs r3, #0
  51924. 80159f8: 60fb str r3, [r7, #12]
  51925. BaseType_t xAlreadyYielded = pdFALSE;
  51926. 80159fa: 2300 movs r3, #0
  51927. 80159fc: 60bb str r3, [r7, #8]
  51928. /* If uxSchedulerSuspended is zero then this function does not match a
  51929. previous call to vTaskSuspendAll(). */
  51930. configASSERT( uxSchedulerSuspended );
  51931. 80159fe: 4b42 ldr r3, [pc, #264] @ (8015b08 <xTaskResumeAll+0x118>)
  51932. 8015a00: 681b ldr r3, [r3, #0]
  51933. 8015a02: 2b00 cmp r3, #0
  51934. 8015a04: d10b bne.n 8015a1e <xTaskResumeAll+0x2e>
  51935. __asm volatile
  51936. 8015a06: f04f 0350 mov.w r3, #80 @ 0x50
  51937. 8015a0a: f383 8811 msr BASEPRI, r3
  51938. 8015a0e: f3bf 8f6f isb sy
  51939. 8015a12: f3bf 8f4f dsb sy
  51940. 8015a16: 603b str r3, [r7, #0]
  51941. }
  51942. 8015a18: bf00 nop
  51943. 8015a1a: bf00 nop
  51944. 8015a1c: e7fd b.n 8015a1a <xTaskResumeAll+0x2a>
  51945. /* It is possible that an ISR caused a task to be removed from an event
  51946. list while the scheduler was suspended. If this was the case then the
  51947. removed task will have been added to the xPendingReadyList. Once the
  51948. scheduler has been resumed it is safe to move all the pending ready
  51949. tasks from this list into their appropriate ready list. */
  51950. taskENTER_CRITICAL();
  51951. 8015a1e: f001 fd9b bl 8017558 <vPortEnterCritical>
  51952. {
  51953. --uxSchedulerSuspended;
  51954. 8015a22: 4b39 ldr r3, [pc, #228] @ (8015b08 <xTaskResumeAll+0x118>)
  51955. 8015a24: 681b ldr r3, [r3, #0]
  51956. 8015a26: 3b01 subs r3, #1
  51957. 8015a28: 4a37 ldr r2, [pc, #220] @ (8015b08 <xTaskResumeAll+0x118>)
  51958. 8015a2a: 6013 str r3, [r2, #0]
  51959. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  51960. 8015a2c: 4b36 ldr r3, [pc, #216] @ (8015b08 <xTaskResumeAll+0x118>)
  51961. 8015a2e: 681b ldr r3, [r3, #0]
  51962. 8015a30: 2b00 cmp r3, #0
  51963. 8015a32: d162 bne.n 8015afa <xTaskResumeAll+0x10a>
  51964. {
  51965. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  51966. 8015a34: 4b35 ldr r3, [pc, #212] @ (8015b0c <xTaskResumeAll+0x11c>)
  51967. 8015a36: 681b ldr r3, [r3, #0]
  51968. 8015a38: 2b00 cmp r3, #0
  51969. 8015a3a: d05e beq.n 8015afa <xTaskResumeAll+0x10a>
  51970. {
  51971. /* Move any readied tasks from the pending list into the
  51972. appropriate ready list. */
  51973. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  51974. 8015a3c: e02f b.n 8015a9e <xTaskResumeAll+0xae>
  51975. {
  51976. 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. */
  51977. 8015a3e: 4b34 ldr r3, [pc, #208] @ (8015b10 <xTaskResumeAll+0x120>)
  51978. 8015a40: 68db ldr r3, [r3, #12]
  51979. 8015a42: 68db ldr r3, [r3, #12]
  51980. 8015a44: 60fb str r3, [r7, #12]
  51981. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  51982. 8015a46: 68fb ldr r3, [r7, #12]
  51983. 8015a48: 3318 adds r3, #24
  51984. 8015a4a: 4618 mov r0, r3
  51985. 8015a4c: f7fe fbde bl 801420c <uxListRemove>
  51986. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  51987. 8015a50: 68fb ldr r3, [r7, #12]
  51988. 8015a52: 3304 adds r3, #4
  51989. 8015a54: 4618 mov r0, r3
  51990. 8015a56: f7fe fbd9 bl 801420c <uxListRemove>
  51991. prvAddTaskToReadyList( pxTCB );
  51992. 8015a5a: 68fb ldr r3, [r7, #12]
  51993. 8015a5c: 6ada ldr r2, [r3, #44] @ 0x2c
  51994. 8015a5e: 4b2d ldr r3, [pc, #180] @ (8015b14 <xTaskResumeAll+0x124>)
  51995. 8015a60: 681b ldr r3, [r3, #0]
  51996. 8015a62: 429a cmp r2, r3
  51997. 8015a64: d903 bls.n 8015a6e <xTaskResumeAll+0x7e>
  51998. 8015a66: 68fb ldr r3, [r7, #12]
  51999. 8015a68: 6adb ldr r3, [r3, #44] @ 0x2c
  52000. 8015a6a: 4a2a ldr r2, [pc, #168] @ (8015b14 <xTaskResumeAll+0x124>)
  52001. 8015a6c: 6013 str r3, [r2, #0]
  52002. 8015a6e: 68fb ldr r3, [r7, #12]
  52003. 8015a70: 6ada ldr r2, [r3, #44] @ 0x2c
  52004. 8015a72: 4613 mov r3, r2
  52005. 8015a74: 009b lsls r3, r3, #2
  52006. 8015a76: 4413 add r3, r2
  52007. 8015a78: 009b lsls r3, r3, #2
  52008. 8015a7a: 4a27 ldr r2, [pc, #156] @ (8015b18 <xTaskResumeAll+0x128>)
  52009. 8015a7c: 441a add r2, r3
  52010. 8015a7e: 68fb ldr r3, [r7, #12]
  52011. 8015a80: 3304 adds r3, #4
  52012. 8015a82: 4619 mov r1, r3
  52013. 8015a84: 4610 mov r0, r2
  52014. 8015a86: f7fe fb64 bl 8014152 <vListInsertEnd>
  52015. /* If the moved task has a priority higher than the current
  52016. task then a yield must be performed. */
  52017. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52018. 8015a8a: 68fb ldr r3, [r7, #12]
  52019. 8015a8c: 6ada ldr r2, [r3, #44] @ 0x2c
  52020. 8015a8e: 4b23 ldr r3, [pc, #140] @ (8015b1c <xTaskResumeAll+0x12c>)
  52021. 8015a90: 681b ldr r3, [r3, #0]
  52022. 8015a92: 6adb ldr r3, [r3, #44] @ 0x2c
  52023. 8015a94: 429a cmp r2, r3
  52024. 8015a96: d302 bcc.n 8015a9e <xTaskResumeAll+0xae>
  52025. {
  52026. xYieldPending = pdTRUE;
  52027. 8015a98: 4b21 ldr r3, [pc, #132] @ (8015b20 <xTaskResumeAll+0x130>)
  52028. 8015a9a: 2201 movs r2, #1
  52029. 8015a9c: 601a str r2, [r3, #0]
  52030. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52031. 8015a9e: 4b1c ldr r3, [pc, #112] @ (8015b10 <xTaskResumeAll+0x120>)
  52032. 8015aa0: 681b ldr r3, [r3, #0]
  52033. 8015aa2: 2b00 cmp r3, #0
  52034. 8015aa4: d1cb bne.n 8015a3e <xTaskResumeAll+0x4e>
  52035. {
  52036. mtCOVERAGE_TEST_MARKER();
  52037. }
  52038. }
  52039. if( pxTCB != NULL )
  52040. 8015aa6: 68fb ldr r3, [r7, #12]
  52041. 8015aa8: 2b00 cmp r3, #0
  52042. 8015aaa: d001 beq.n 8015ab0 <xTaskResumeAll+0xc0>
  52043. which may have prevented the next unblock time from being
  52044. re-calculated, in which case re-calculate it now. Mainly
  52045. important for low power tickless implementations, where
  52046. this can prevent an unnecessary exit from low power
  52047. state. */
  52048. prvResetNextTaskUnblockTime();
  52049. 8015aac: f000 fb9c bl 80161e8 <prvResetNextTaskUnblockTime>
  52050. /* If any ticks occurred while the scheduler was suspended then
  52051. they should be processed now. This ensures the tick count does
  52052. not slip, and that any delayed tasks are resumed at the correct
  52053. time. */
  52054. {
  52055. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  52056. 8015ab0: 4b1c ldr r3, [pc, #112] @ (8015b24 <xTaskResumeAll+0x134>)
  52057. 8015ab2: 681b ldr r3, [r3, #0]
  52058. 8015ab4: 607b str r3, [r7, #4]
  52059. if( xPendedCounts > ( TickType_t ) 0U )
  52060. 8015ab6: 687b ldr r3, [r7, #4]
  52061. 8015ab8: 2b00 cmp r3, #0
  52062. 8015aba: d010 beq.n 8015ade <xTaskResumeAll+0xee>
  52063. {
  52064. do
  52065. {
  52066. if( xTaskIncrementTick() != pdFALSE )
  52067. 8015abc: f000 f846 bl 8015b4c <xTaskIncrementTick>
  52068. 8015ac0: 4603 mov r3, r0
  52069. 8015ac2: 2b00 cmp r3, #0
  52070. 8015ac4: d002 beq.n 8015acc <xTaskResumeAll+0xdc>
  52071. {
  52072. xYieldPending = pdTRUE;
  52073. 8015ac6: 4b16 ldr r3, [pc, #88] @ (8015b20 <xTaskResumeAll+0x130>)
  52074. 8015ac8: 2201 movs r2, #1
  52075. 8015aca: 601a str r2, [r3, #0]
  52076. }
  52077. else
  52078. {
  52079. mtCOVERAGE_TEST_MARKER();
  52080. }
  52081. --xPendedCounts;
  52082. 8015acc: 687b ldr r3, [r7, #4]
  52083. 8015ace: 3b01 subs r3, #1
  52084. 8015ad0: 607b str r3, [r7, #4]
  52085. } while( xPendedCounts > ( TickType_t ) 0U );
  52086. 8015ad2: 687b ldr r3, [r7, #4]
  52087. 8015ad4: 2b00 cmp r3, #0
  52088. 8015ad6: d1f1 bne.n 8015abc <xTaskResumeAll+0xcc>
  52089. xPendedTicks = 0;
  52090. 8015ad8: 4b12 ldr r3, [pc, #72] @ (8015b24 <xTaskResumeAll+0x134>)
  52091. 8015ada: 2200 movs r2, #0
  52092. 8015adc: 601a str r2, [r3, #0]
  52093. {
  52094. mtCOVERAGE_TEST_MARKER();
  52095. }
  52096. }
  52097. if( xYieldPending != pdFALSE )
  52098. 8015ade: 4b10 ldr r3, [pc, #64] @ (8015b20 <xTaskResumeAll+0x130>)
  52099. 8015ae0: 681b ldr r3, [r3, #0]
  52100. 8015ae2: 2b00 cmp r3, #0
  52101. 8015ae4: d009 beq.n 8015afa <xTaskResumeAll+0x10a>
  52102. {
  52103. #if( configUSE_PREEMPTION != 0 )
  52104. {
  52105. xAlreadyYielded = pdTRUE;
  52106. 8015ae6: 2301 movs r3, #1
  52107. 8015ae8: 60bb str r3, [r7, #8]
  52108. }
  52109. #endif
  52110. taskYIELD_IF_USING_PREEMPTION();
  52111. 8015aea: 4b0f ldr r3, [pc, #60] @ (8015b28 <xTaskResumeAll+0x138>)
  52112. 8015aec: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52113. 8015af0: 601a str r2, [r3, #0]
  52114. 8015af2: f3bf 8f4f dsb sy
  52115. 8015af6: f3bf 8f6f isb sy
  52116. else
  52117. {
  52118. mtCOVERAGE_TEST_MARKER();
  52119. }
  52120. }
  52121. taskEXIT_CRITICAL();
  52122. 8015afa: f001 fd5f bl 80175bc <vPortExitCritical>
  52123. return xAlreadyYielded;
  52124. 8015afe: 68bb ldr r3, [r7, #8]
  52125. }
  52126. 8015b00: 4618 mov r0, r3
  52127. 8015b02: 3710 adds r7, #16
  52128. 8015b04: 46bd mov sp, r7
  52129. 8015b06: bd80 pop {r7, pc}
  52130. 8015b08: 24002b90 .word 0x24002b90
  52131. 8015b0c: 24002b68 .word 0x24002b68
  52132. 8015b10: 24002b28 .word 0x24002b28
  52133. 8015b14: 24002b70 .word 0x24002b70
  52134. 8015b18: 24002698 .word 0x24002698
  52135. 8015b1c: 24002694 .word 0x24002694
  52136. 8015b20: 24002b7c .word 0x24002b7c
  52137. 8015b24: 24002b78 .word 0x24002b78
  52138. 8015b28: e000ed04 .word 0xe000ed04
  52139. 08015b2c <xTaskGetTickCount>:
  52140. /*-----------------------------------------------------------*/
  52141. TickType_t xTaskGetTickCount( void )
  52142. {
  52143. 8015b2c: b480 push {r7}
  52144. 8015b2e: b083 sub sp, #12
  52145. 8015b30: af00 add r7, sp, #0
  52146. TickType_t xTicks;
  52147. /* Critical section required if running on a 16 bit processor. */
  52148. portTICK_TYPE_ENTER_CRITICAL();
  52149. {
  52150. xTicks = xTickCount;
  52151. 8015b32: 4b05 ldr r3, [pc, #20] @ (8015b48 <xTaskGetTickCount+0x1c>)
  52152. 8015b34: 681b ldr r3, [r3, #0]
  52153. 8015b36: 607b str r3, [r7, #4]
  52154. }
  52155. portTICK_TYPE_EXIT_CRITICAL();
  52156. return xTicks;
  52157. 8015b38: 687b ldr r3, [r7, #4]
  52158. }
  52159. 8015b3a: 4618 mov r0, r3
  52160. 8015b3c: 370c adds r7, #12
  52161. 8015b3e: 46bd mov sp, r7
  52162. 8015b40: f85d 7b04 ldr.w r7, [sp], #4
  52163. 8015b44: 4770 bx lr
  52164. 8015b46: bf00 nop
  52165. 8015b48: 24002b6c .word 0x24002b6c
  52166. 08015b4c <xTaskIncrementTick>:
  52167. #endif /* INCLUDE_xTaskAbortDelay */
  52168. /*----------------------------------------------------------*/
  52169. BaseType_t xTaskIncrementTick( void )
  52170. {
  52171. 8015b4c: b580 push {r7, lr}
  52172. 8015b4e: b086 sub sp, #24
  52173. 8015b50: af00 add r7, sp, #0
  52174. TCB_t * pxTCB;
  52175. TickType_t xItemValue;
  52176. BaseType_t xSwitchRequired = pdFALSE;
  52177. 8015b52: 2300 movs r3, #0
  52178. 8015b54: 617b str r3, [r7, #20]
  52179. /* Called by the portable layer each time a tick interrupt occurs.
  52180. Increments the tick then checks to see if the new tick value will cause any
  52181. tasks to be unblocked. */
  52182. traceTASK_INCREMENT_TICK( xTickCount );
  52183. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52184. 8015b56: 4b4f ldr r3, [pc, #316] @ (8015c94 <xTaskIncrementTick+0x148>)
  52185. 8015b58: 681b ldr r3, [r3, #0]
  52186. 8015b5a: 2b00 cmp r3, #0
  52187. 8015b5c: f040 8090 bne.w 8015c80 <xTaskIncrementTick+0x134>
  52188. {
  52189. /* Minor optimisation. The tick count cannot change in this
  52190. block. */
  52191. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  52192. 8015b60: 4b4d ldr r3, [pc, #308] @ (8015c98 <xTaskIncrementTick+0x14c>)
  52193. 8015b62: 681b ldr r3, [r3, #0]
  52194. 8015b64: 3301 adds r3, #1
  52195. 8015b66: 613b str r3, [r7, #16]
  52196. /* Increment the RTOS tick, switching the delayed and overflowed
  52197. delayed lists if it wraps to 0. */
  52198. xTickCount = xConstTickCount;
  52199. 8015b68: 4a4b ldr r2, [pc, #300] @ (8015c98 <xTaskIncrementTick+0x14c>)
  52200. 8015b6a: 693b ldr r3, [r7, #16]
  52201. 8015b6c: 6013 str r3, [r2, #0]
  52202. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  52203. 8015b6e: 693b ldr r3, [r7, #16]
  52204. 8015b70: 2b00 cmp r3, #0
  52205. 8015b72: d121 bne.n 8015bb8 <xTaskIncrementTick+0x6c>
  52206. {
  52207. taskSWITCH_DELAYED_LISTS();
  52208. 8015b74: 4b49 ldr r3, [pc, #292] @ (8015c9c <xTaskIncrementTick+0x150>)
  52209. 8015b76: 681b ldr r3, [r3, #0]
  52210. 8015b78: 681b ldr r3, [r3, #0]
  52211. 8015b7a: 2b00 cmp r3, #0
  52212. 8015b7c: d00b beq.n 8015b96 <xTaskIncrementTick+0x4a>
  52213. __asm volatile
  52214. 8015b7e: f04f 0350 mov.w r3, #80 @ 0x50
  52215. 8015b82: f383 8811 msr BASEPRI, r3
  52216. 8015b86: f3bf 8f6f isb sy
  52217. 8015b8a: f3bf 8f4f dsb sy
  52218. 8015b8e: 603b str r3, [r7, #0]
  52219. }
  52220. 8015b90: bf00 nop
  52221. 8015b92: bf00 nop
  52222. 8015b94: e7fd b.n 8015b92 <xTaskIncrementTick+0x46>
  52223. 8015b96: 4b41 ldr r3, [pc, #260] @ (8015c9c <xTaskIncrementTick+0x150>)
  52224. 8015b98: 681b ldr r3, [r3, #0]
  52225. 8015b9a: 60fb str r3, [r7, #12]
  52226. 8015b9c: 4b40 ldr r3, [pc, #256] @ (8015ca0 <xTaskIncrementTick+0x154>)
  52227. 8015b9e: 681b ldr r3, [r3, #0]
  52228. 8015ba0: 4a3e ldr r2, [pc, #248] @ (8015c9c <xTaskIncrementTick+0x150>)
  52229. 8015ba2: 6013 str r3, [r2, #0]
  52230. 8015ba4: 4a3e ldr r2, [pc, #248] @ (8015ca0 <xTaskIncrementTick+0x154>)
  52231. 8015ba6: 68fb ldr r3, [r7, #12]
  52232. 8015ba8: 6013 str r3, [r2, #0]
  52233. 8015baa: 4b3e ldr r3, [pc, #248] @ (8015ca4 <xTaskIncrementTick+0x158>)
  52234. 8015bac: 681b ldr r3, [r3, #0]
  52235. 8015bae: 3301 adds r3, #1
  52236. 8015bb0: 4a3c ldr r2, [pc, #240] @ (8015ca4 <xTaskIncrementTick+0x158>)
  52237. 8015bb2: 6013 str r3, [r2, #0]
  52238. 8015bb4: f000 fb18 bl 80161e8 <prvResetNextTaskUnblockTime>
  52239. /* See if this tick has made a timeout expire. Tasks are stored in
  52240. the queue in the order of their wake time - meaning once one task
  52241. has been found whose block time has not expired there is no need to
  52242. look any further down the list. */
  52243. if( xConstTickCount >= xNextTaskUnblockTime )
  52244. 8015bb8: 4b3b ldr r3, [pc, #236] @ (8015ca8 <xTaskIncrementTick+0x15c>)
  52245. 8015bba: 681b ldr r3, [r3, #0]
  52246. 8015bbc: 693a ldr r2, [r7, #16]
  52247. 8015bbe: 429a cmp r2, r3
  52248. 8015bc0: d349 bcc.n 8015c56 <xTaskIncrementTick+0x10a>
  52249. {
  52250. for( ;; )
  52251. {
  52252. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  52253. 8015bc2: 4b36 ldr r3, [pc, #216] @ (8015c9c <xTaskIncrementTick+0x150>)
  52254. 8015bc4: 681b ldr r3, [r3, #0]
  52255. 8015bc6: 681b ldr r3, [r3, #0]
  52256. 8015bc8: 2b00 cmp r3, #0
  52257. 8015bca: d104 bne.n 8015bd6 <xTaskIncrementTick+0x8a>
  52258. /* The delayed list is empty. Set xNextTaskUnblockTime
  52259. to the maximum possible value so it is extremely
  52260. unlikely that the
  52261. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  52262. next time through. */
  52263. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  52264. 8015bcc: 4b36 ldr r3, [pc, #216] @ (8015ca8 <xTaskIncrementTick+0x15c>)
  52265. 8015bce: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52266. 8015bd2: 601a str r2, [r3, #0]
  52267. break;
  52268. 8015bd4: e03f b.n 8015c56 <xTaskIncrementTick+0x10a>
  52269. {
  52270. /* The delayed list is not empty, get the value of the
  52271. item at the head of the delayed list. This is the time
  52272. at which the task at the head of the delayed list must
  52273. be removed from the Blocked state. */
  52274. 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. */
  52275. 8015bd6: 4b31 ldr r3, [pc, #196] @ (8015c9c <xTaskIncrementTick+0x150>)
  52276. 8015bd8: 681b ldr r3, [r3, #0]
  52277. 8015bda: 68db ldr r3, [r3, #12]
  52278. 8015bdc: 68db ldr r3, [r3, #12]
  52279. 8015bde: 60bb str r3, [r7, #8]
  52280. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  52281. 8015be0: 68bb ldr r3, [r7, #8]
  52282. 8015be2: 685b ldr r3, [r3, #4]
  52283. 8015be4: 607b str r3, [r7, #4]
  52284. if( xConstTickCount < xItemValue )
  52285. 8015be6: 693a ldr r2, [r7, #16]
  52286. 8015be8: 687b ldr r3, [r7, #4]
  52287. 8015bea: 429a cmp r2, r3
  52288. 8015bec: d203 bcs.n 8015bf6 <xTaskIncrementTick+0xaa>
  52289. /* It is not time to unblock this item yet, but the
  52290. item value is the time at which the task at the head
  52291. of the blocked list must be removed from the Blocked
  52292. state - so record the item value in
  52293. xNextTaskUnblockTime. */
  52294. xNextTaskUnblockTime = xItemValue;
  52295. 8015bee: 4a2e ldr r2, [pc, #184] @ (8015ca8 <xTaskIncrementTick+0x15c>)
  52296. 8015bf0: 687b ldr r3, [r7, #4]
  52297. 8015bf2: 6013 str r3, [r2, #0]
  52298. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  52299. 8015bf4: e02f b.n 8015c56 <xTaskIncrementTick+0x10a>
  52300. {
  52301. mtCOVERAGE_TEST_MARKER();
  52302. }
  52303. /* It is time to remove the item from the Blocked state. */
  52304. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52305. 8015bf6: 68bb ldr r3, [r7, #8]
  52306. 8015bf8: 3304 adds r3, #4
  52307. 8015bfa: 4618 mov r0, r3
  52308. 8015bfc: f7fe fb06 bl 801420c <uxListRemove>
  52309. /* Is the task waiting on an event also? If so remove
  52310. it from the event list. */
  52311. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  52312. 8015c00: 68bb ldr r3, [r7, #8]
  52313. 8015c02: 6a9b ldr r3, [r3, #40] @ 0x28
  52314. 8015c04: 2b00 cmp r3, #0
  52315. 8015c06: d004 beq.n 8015c12 <xTaskIncrementTick+0xc6>
  52316. {
  52317. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  52318. 8015c08: 68bb ldr r3, [r7, #8]
  52319. 8015c0a: 3318 adds r3, #24
  52320. 8015c0c: 4618 mov r0, r3
  52321. 8015c0e: f7fe fafd bl 801420c <uxListRemove>
  52322. mtCOVERAGE_TEST_MARKER();
  52323. }
  52324. /* Place the unblocked task into the appropriate ready
  52325. list. */
  52326. prvAddTaskToReadyList( pxTCB );
  52327. 8015c12: 68bb ldr r3, [r7, #8]
  52328. 8015c14: 6ada ldr r2, [r3, #44] @ 0x2c
  52329. 8015c16: 4b25 ldr r3, [pc, #148] @ (8015cac <xTaskIncrementTick+0x160>)
  52330. 8015c18: 681b ldr r3, [r3, #0]
  52331. 8015c1a: 429a cmp r2, r3
  52332. 8015c1c: d903 bls.n 8015c26 <xTaskIncrementTick+0xda>
  52333. 8015c1e: 68bb ldr r3, [r7, #8]
  52334. 8015c20: 6adb ldr r3, [r3, #44] @ 0x2c
  52335. 8015c22: 4a22 ldr r2, [pc, #136] @ (8015cac <xTaskIncrementTick+0x160>)
  52336. 8015c24: 6013 str r3, [r2, #0]
  52337. 8015c26: 68bb ldr r3, [r7, #8]
  52338. 8015c28: 6ada ldr r2, [r3, #44] @ 0x2c
  52339. 8015c2a: 4613 mov r3, r2
  52340. 8015c2c: 009b lsls r3, r3, #2
  52341. 8015c2e: 4413 add r3, r2
  52342. 8015c30: 009b lsls r3, r3, #2
  52343. 8015c32: 4a1f ldr r2, [pc, #124] @ (8015cb0 <xTaskIncrementTick+0x164>)
  52344. 8015c34: 441a add r2, r3
  52345. 8015c36: 68bb ldr r3, [r7, #8]
  52346. 8015c38: 3304 adds r3, #4
  52347. 8015c3a: 4619 mov r1, r3
  52348. 8015c3c: 4610 mov r0, r2
  52349. 8015c3e: f7fe fa88 bl 8014152 <vListInsertEnd>
  52350. {
  52351. /* Preemption is on, but a context switch should
  52352. only be performed if the unblocked task has a
  52353. priority that is equal to or higher than the
  52354. currently executing task. */
  52355. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52356. 8015c42: 68bb ldr r3, [r7, #8]
  52357. 8015c44: 6ada ldr r2, [r3, #44] @ 0x2c
  52358. 8015c46: 4b1b ldr r3, [pc, #108] @ (8015cb4 <xTaskIncrementTick+0x168>)
  52359. 8015c48: 681b ldr r3, [r3, #0]
  52360. 8015c4a: 6adb ldr r3, [r3, #44] @ 0x2c
  52361. 8015c4c: 429a cmp r2, r3
  52362. 8015c4e: d3b8 bcc.n 8015bc2 <xTaskIncrementTick+0x76>
  52363. {
  52364. xSwitchRequired = pdTRUE;
  52365. 8015c50: 2301 movs r3, #1
  52366. 8015c52: 617b str r3, [r7, #20]
  52367. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  52368. 8015c54: e7b5 b.n 8015bc2 <xTaskIncrementTick+0x76>
  52369. /* Tasks of equal priority to the currently running task will share
  52370. processing time (time slice) if preemption is on, and the application
  52371. writer has not explicitly turned time slicing off. */
  52372. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  52373. {
  52374. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  52375. 8015c56: 4b17 ldr r3, [pc, #92] @ (8015cb4 <xTaskIncrementTick+0x168>)
  52376. 8015c58: 681b ldr r3, [r3, #0]
  52377. 8015c5a: 6ada ldr r2, [r3, #44] @ 0x2c
  52378. 8015c5c: 4914 ldr r1, [pc, #80] @ (8015cb0 <xTaskIncrementTick+0x164>)
  52379. 8015c5e: 4613 mov r3, r2
  52380. 8015c60: 009b lsls r3, r3, #2
  52381. 8015c62: 4413 add r3, r2
  52382. 8015c64: 009b lsls r3, r3, #2
  52383. 8015c66: 440b add r3, r1
  52384. 8015c68: 681b ldr r3, [r3, #0]
  52385. 8015c6a: 2b01 cmp r3, #1
  52386. 8015c6c: d901 bls.n 8015c72 <xTaskIncrementTick+0x126>
  52387. {
  52388. xSwitchRequired = pdTRUE;
  52389. 8015c6e: 2301 movs r3, #1
  52390. 8015c70: 617b str r3, [r7, #20]
  52391. }
  52392. #endif /* configUSE_TICK_HOOK */
  52393. #if ( configUSE_PREEMPTION == 1 )
  52394. {
  52395. if( xYieldPending != pdFALSE )
  52396. 8015c72: 4b11 ldr r3, [pc, #68] @ (8015cb8 <xTaskIncrementTick+0x16c>)
  52397. 8015c74: 681b ldr r3, [r3, #0]
  52398. 8015c76: 2b00 cmp r3, #0
  52399. 8015c78: d007 beq.n 8015c8a <xTaskIncrementTick+0x13e>
  52400. {
  52401. xSwitchRequired = pdTRUE;
  52402. 8015c7a: 2301 movs r3, #1
  52403. 8015c7c: 617b str r3, [r7, #20]
  52404. 8015c7e: e004 b.n 8015c8a <xTaskIncrementTick+0x13e>
  52405. }
  52406. #endif /* configUSE_PREEMPTION */
  52407. }
  52408. else
  52409. {
  52410. ++xPendedTicks;
  52411. 8015c80: 4b0e ldr r3, [pc, #56] @ (8015cbc <xTaskIncrementTick+0x170>)
  52412. 8015c82: 681b ldr r3, [r3, #0]
  52413. 8015c84: 3301 adds r3, #1
  52414. 8015c86: 4a0d ldr r2, [pc, #52] @ (8015cbc <xTaskIncrementTick+0x170>)
  52415. 8015c88: 6013 str r3, [r2, #0]
  52416. vApplicationTickHook();
  52417. }
  52418. #endif
  52419. }
  52420. return xSwitchRequired;
  52421. 8015c8a: 697b ldr r3, [r7, #20]
  52422. }
  52423. 8015c8c: 4618 mov r0, r3
  52424. 8015c8e: 3718 adds r7, #24
  52425. 8015c90: 46bd mov sp, r7
  52426. 8015c92: bd80 pop {r7, pc}
  52427. 8015c94: 24002b90 .word 0x24002b90
  52428. 8015c98: 24002b6c .word 0x24002b6c
  52429. 8015c9c: 24002b20 .word 0x24002b20
  52430. 8015ca0: 24002b24 .word 0x24002b24
  52431. 8015ca4: 24002b80 .word 0x24002b80
  52432. 8015ca8: 24002b88 .word 0x24002b88
  52433. 8015cac: 24002b70 .word 0x24002b70
  52434. 8015cb0: 24002698 .word 0x24002698
  52435. 8015cb4: 24002694 .word 0x24002694
  52436. 8015cb8: 24002b7c .word 0x24002b7c
  52437. 8015cbc: 24002b78 .word 0x24002b78
  52438. 08015cc0 <vTaskSwitchContext>:
  52439. #endif /* configUSE_APPLICATION_TASK_TAG */
  52440. /*-----------------------------------------------------------*/
  52441. void vTaskSwitchContext( void )
  52442. {
  52443. 8015cc0: b580 push {r7, lr}
  52444. 8015cc2: b084 sub sp, #16
  52445. 8015cc4: af00 add r7, sp, #0
  52446. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  52447. 8015cc6: 4b32 ldr r3, [pc, #200] @ (8015d90 <vTaskSwitchContext+0xd0>)
  52448. 8015cc8: 681b ldr r3, [r3, #0]
  52449. 8015cca: 2b00 cmp r3, #0
  52450. 8015ccc: d003 beq.n 8015cd6 <vTaskSwitchContext+0x16>
  52451. {
  52452. /* The scheduler is currently suspended - do not allow a context
  52453. switch. */
  52454. xYieldPending = pdTRUE;
  52455. 8015cce: 4b31 ldr r3, [pc, #196] @ (8015d94 <vTaskSwitchContext+0xd4>)
  52456. 8015cd0: 2201 movs r2, #1
  52457. 8015cd2: 601a str r2, [r3, #0]
  52458. for additional information. */
  52459. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52460. }
  52461. #endif /* configUSE_NEWLIB_REENTRANT */
  52462. }
  52463. }
  52464. 8015cd4: e058 b.n 8015d88 <vTaskSwitchContext+0xc8>
  52465. xYieldPending = pdFALSE;
  52466. 8015cd6: 4b2f ldr r3, [pc, #188] @ (8015d94 <vTaskSwitchContext+0xd4>)
  52467. 8015cd8: 2200 movs r2, #0
  52468. 8015cda: 601a str r2, [r3, #0]
  52469. taskCHECK_FOR_STACK_OVERFLOW();
  52470. 8015cdc: 4b2e ldr r3, [pc, #184] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52471. 8015cde: 681b ldr r3, [r3, #0]
  52472. 8015ce0: 681a ldr r2, [r3, #0]
  52473. 8015ce2: 4b2d ldr r3, [pc, #180] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52474. 8015ce4: 681b ldr r3, [r3, #0]
  52475. 8015ce6: 6b1b ldr r3, [r3, #48] @ 0x30
  52476. 8015ce8: 429a cmp r2, r3
  52477. 8015cea: d808 bhi.n 8015cfe <vTaskSwitchContext+0x3e>
  52478. 8015cec: 4b2a ldr r3, [pc, #168] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52479. 8015cee: 681a ldr r2, [r3, #0]
  52480. 8015cf0: 4b29 ldr r3, [pc, #164] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52481. 8015cf2: 681b ldr r3, [r3, #0]
  52482. 8015cf4: 3334 adds r3, #52 @ 0x34
  52483. 8015cf6: 4619 mov r1, r3
  52484. 8015cf8: 4610 mov r0, r2
  52485. 8015cfa: f7ea fcb9 bl 8000670 <vApplicationStackOverflowHook>
  52486. 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. */
  52487. 8015cfe: 4b27 ldr r3, [pc, #156] @ (8015d9c <vTaskSwitchContext+0xdc>)
  52488. 8015d00: 681b ldr r3, [r3, #0]
  52489. 8015d02: 60fb str r3, [r7, #12]
  52490. 8015d04: e011 b.n 8015d2a <vTaskSwitchContext+0x6a>
  52491. 8015d06: 68fb ldr r3, [r7, #12]
  52492. 8015d08: 2b00 cmp r3, #0
  52493. 8015d0a: d10b bne.n 8015d24 <vTaskSwitchContext+0x64>
  52494. __asm volatile
  52495. 8015d0c: f04f 0350 mov.w r3, #80 @ 0x50
  52496. 8015d10: f383 8811 msr BASEPRI, r3
  52497. 8015d14: f3bf 8f6f isb sy
  52498. 8015d18: f3bf 8f4f dsb sy
  52499. 8015d1c: 607b str r3, [r7, #4]
  52500. }
  52501. 8015d1e: bf00 nop
  52502. 8015d20: bf00 nop
  52503. 8015d22: e7fd b.n 8015d20 <vTaskSwitchContext+0x60>
  52504. 8015d24: 68fb ldr r3, [r7, #12]
  52505. 8015d26: 3b01 subs r3, #1
  52506. 8015d28: 60fb str r3, [r7, #12]
  52507. 8015d2a: 491d ldr r1, [pc, #116] @ (8015da0 <vTaskSwitchContext+0xe0>)
  52508. 8015d2c: 68fa ldr r2, [r7, #12]
  52509. 8015d2e: 4613 mov r3, r2
  52510. 8015d30: 009b lsls r3, r3, #2
  52511. 8015d32: 4413 add r3, r2
  52512. 8015d34: 009b lsls r3, r3, #2
  52513. 8015d36: 440b add r3, r1
  52514. 8015d38: 681b ldr r3, [r3, #0]
  52515. 8015d3a: 2b00 cmp r3, #0
  52516. 8015d3c: d0e3 beq.n 8015d06 <vTaskSwitchContext+0x46>
  52517. 8015d3e: 68fa ldr r2, [r7, #12]
  52518. 8015d40: 4613 mov r3, r2
  52519. 8015d42: 009b lsls r3, r3, #2
  52520. 8015d44: 4413 add r3, r2
  52521. 8015d46: 009b lsls r3, r3, #2
  52522. 8015d48: 4a15 ldr r2, [pc, #84] @ (8015da0 <vTaskSwitchContext+0xe0>)
  52523. 8015d4a: 4413 add r3, r2
  52524. 8015d4c: 60bb str r3, [r7, #8]
  52525. 8015d4e: 68bb ldr r3, [r7, #8]
  52526. 8015d50: 685b ldr r3, [r3, #4]
  52527. 8015d52: 685a ldr r2, [r3, #4]
  52528. 8015d54: 68bb ldr r3, [r7, #8]
  52529. 8015d56: 605a str r2, [r3, #4]
  52530. 8015d58: 68bb ldr r3, [r7, #8]
  52531. 8015d5a: 685a ldr r2, [r3, #4]
  52532. 8015d5c: 68bb ldr r3, [r7, #8]
  52533. 8015d5e: 3308 adds r3, #8
  52534. 8015d60: 429a cmp r2, r3
  52535. 8015d62: d104 bne.n 8015d6e <vTaskSwitchContext+0xae>
  52536. 8015d64: 68bb ldr r3, [r7, #8]
  52537. 8015d66: 685b ldr r3, [r3, #4]
  52538. 8015d68: 685a ldr r2, [r3, #4]
  52539. 8015d6a: 68bb ldr r3, [r7, #8]
  52540. 8015d6c: 605a str r2, [r3, #4]
  52541. 8015d6e: 68bb ldr r3, [r7, #8]
  52542. 8015d70: 685b ldr r3, [r3, #4]
  52543. 8015d72: 68db ldr r3, [r3, #12]
  52544. 8015d74: 4a08 ldr r2, [pc, #32] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52545. 8015d76: 6013 str r3, [r2, #0]
  52546. 8015d78: 4a08 ldr r2, [pc, #32] @ (8015d9c <vTaskSwitchContext+0xdc>)
  52547. 8015d7a: 68fb ldr r3, [r7, #12]
  52548. 8015d7c: 6013 str r3, [r2, #0]
  52549. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52550. 8015d7e: 4b06 ldr r3, [pc, #24] @ (8015d98 <vTaskSwitchContext+0xd8>)
  52551. 8015d80: 681b ldr r3, [r3, #0]
  52552. 8015d82: 3354 adds r3, #84 @ 0x54
  52553. 8015d84: 4a07 ldr r2, [pc, #28] @ (8015da4 <vTaskSwitchContext+0xe4>)
  52554. 8015d86: 6013 str r3, [r2, #0]
  52555. }
  52556. 8015d88: bf00 nop
  52557. 8015d8a: 3710 adds r7, #16
  52558. 8015d8c: 46bd mov sp, r7
  52559. 8015d8e: bd80 pop {r7, pc}
  52560. 8015d90: 24002b90 .word 0x24002b90
  52561. 8015d94: 24002b7c .word 0x24002b7c
  52562. 8015d98: 24002694 .word 0x24002694
  52563. 8015d9c: 24002b70 .word 0x24002b70
  52564. 8015da0: 24002698 .word 0x24002698
  52565. 8015da4: 24000054 .word 0x24000054
  52566. 08015da8 <vTaskPlaceOnEventList>:
  52567. /*-----------------------------------------------------------*/
  52568. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  52569. {
  52570. 8015da8: b580 push {r7, lr}
  52571. 8015daa: b084 sub sp, #16
  52572. 8015dac: af00 add r7, sp, #0
  52573. 8015dae: 6078 str r0, [r7, #4]
  52574. 8015db0: 6039 str r1, [r7, #0]
  52575. configASSERT( pxEventList );
  52576. 8015db2: 687b ldr r3, [r7, #4]
  52577. 8015db4: 2b00 cmp r3, #0
  52578. 8015db6: d10b bne.n 8015dd0 <vTaskPlaceOnEventList+0x28>
  52579. __asm volatile
  52580. 8015db8: f04f 0350 mov.w r3, #80 @ 0x50
  52581. 8015dbc: f383 8811 msr BASEPRI, r3
  52582. 8015dc0: f3bf 8f6f isb sy
  52583. 8015dc4: f3bf 8f4f dsb sy
  52584. 8015dc8: 60fb str r3, [r7, #12]
  52585. }
  52586. 8015dca: bf00 nop
  52587. 8015dcc: bf00 nop
  52588. 8015dce: e7fd b.n 8015dcc <vTaskPlaceOnEventList+0x24>
  52589. /* Place the event list item of the TCB in the appropriate event list.
  52590. This is placed in the list in priority order so the highest priority task
  52591. is the first to be woken by the event. The queue that contains the event
  52592. list is locked, preventing simultaneous access from interrupts. */
  52593. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  52594. 8015dd0: 4b07 ldr r3, [pc, #28] @ (8015df0 <vTaskPlaceOnEventList+0x48>)
  52595. 8015dd2: 681b ldr r3, [r3, #0]
  52596. 8015dd4: 3318 adds r3, #24
  52597. 8015dd6: 4619 mov r1, r3
  52598. 8015dd8: 6878 ldr r0, [r7, #4]
  52599. 8015dda: f7fe f9de bl 801419a <vListInsert>
  52600. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  52601. 8015dde: 2101 movs r1, #1
  52602. 8015de0: 6838 ldr r0, [r7, #0]
  52603. 8015de2: f000 fded bl 80169c0 <prvAddCurrentTaskToDelayedList>
  52604. }
  52605. 8015de6: bf00 nop
  52606. 8015de8: 3710 adds r7, #16
  52607. 8015dea: 46bd mov sp, r7
  52608. 8015dec: bd80 pop {r7, pc}
  52609. 8015dee: bf00 nop
  52610. 8015df0: 24002694 .word 0x24002694
  52611. 08015df4 <vTaskPlaceOnEventListRestricted>:
  52612. /*-----------------------------------------------------------*/
  52613. #if( configUSE_TIMERS == 1 )
  52614. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  52615. {
  52616. 8015df4: b580 push {r7, lr}
  52617. 8015df6: b086 sub sp, #24
  52618. 8015df8: af00 add r7, sp, #0
  52619. 8015dfa: 60f8 str r0, [r7, #12]
  52620. 8015dfc: 60b9 str r1, [r7, #8]
  52621. 8015dfe: 607a str r2, [r7, #4]
  52622. configASSERT( pxEventList );
  52623. 8015e00: 68fb ldr r3, [r7, #12]
  52624. 8015e02: 2b00 cmp r3, #0
  52625. 8015e04: d10b bne.n 8015e1e <vTaskPlaceOnEventListRestricted+0x2a>
  52626. __asm volatile
  52627. 8015e06: f04f 0350 mov.w r3, #80 @ 0x50
  52628. 8015e0a: f383 8811 msr BASEPRI, r3
  52629. 8015e0e: f3bf 8f6f isb sy
  52630. 8015e12: f3bf 8f4f dsb sy
  52631. 8015e16: 617b str r3, [r7, #20]
  52632. }
  52633. 8015e18: bf00 nop
  52634. 8015e1a: bf00 nop
  52635. 8015e1c: e7fd b.n 8015e1a <vTaskPlaceOnEventListRestricted+0x26>
  52636. /* Place the event list item of the TCB in the appropriate event list.
  52637. In this case it is assume that this is the only task that is going to
  52638. be waiting on this event list, so the faster vListInsertEnd() function
  52639. can be used in place of vListInsert. */
  52640. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  52641. 8015e1e: 4b0a ldr r3, [pc, #40] @ (8015e48 <vTaskPlaceOnEventListRestricted+0x54>)
  52642. 8015e20: 681b ldr r3, [r3, #0]
  52643. 8015e22: 3318 adds r3, #24
  52644. 8015e24: 4619 mov r1, r3
  52645. 8015e26: 68f8 ldr r0, [r7, #12]
  52646. 8015e28: f7fe f993 bl 8014152 <vListInsertEnd>
  52647. /* If the task should block indefinitely then set the block time to a
  52648. value that will be recognised as an indefinite delay inside the
  52649. prvAddCurrentTaskToDelayedList() function. */
  52650. if( xWaitIndefinitely != pdFALSE )
  52651. 8015e2c: 687b ldr r3, [r7, #4]
  52652. 8015e2e: 2b00 cmp r3, #0
  52653. 8015e30: d002 beq.n 8015e38 <vTaskPlaceOnEventListRestricted+0x44>
  52654. {
  52655. xTicksToWait = portMAX_DELAY;
  52656. 8015e32: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52657. 8015e36: 60bb str r3, [r7, #8]
  52658. }
  52659. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  52660. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  52661. 8015e38: 6879 ldr r1, [r7, #4]
  52662. 8015e3a: 68b8 ldr r0, [r7, #8]
  52663. 8015e3c: f000 fdc0 bl 80169c0 <prvAddCurrentTaskToDelayedList>
  52664. }
  52665. 8015e40: bf00 nop
  52666. 8015e42: 3718 adds r7, #24
  52667. 8015e44: 46bd mov sp, r7
  52668. 8015e46: bd80 pop {r7, pc}
  52669. 8015e48: 24002694 .word 0x24002694
  52670. 08015e4c <xTaskRemoveFromEventList>:
  52671. #endif /* configUSE_TIMERS */
  52672. /*-----------------------------------------------------------*/
  52673. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  52674. {
  52675. 8015e4c: b580 push {r7, lr}
  52676. 8015e4e: b086 sub sp, #24
  52677. 8015e50: af00 add r7, sp, #0
  52678. 8015e52: 6078 str r0, [r7, #4]
  52679. get called - the lock count on the queue will get modified instead. This
  52680. means exclusive access to the event list is guaranteed here.
  52681. This function assumes that a check has already been made to ensure that
  52682. pxEventList is not empty. */
  52683. 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. */
  52684. 8015e54: 687b ldr r3, [r7, #4]
  52685. 8015e56: 68db ldr r3, [r3, #12]
  52686. 8015e58: 68db ldr r3, [r3, #12]
  52687. 8015e5a: 613b str r3, [r7, #16]
  52688. configASSERT( pxUnblockedTCB );
  52689. 8015e5c: 693b ldr r3, [r7, #16]
  52690. 8015e5e: 2b00 cmp r3, #0
  52691. 8015e60: d10b bne.n 8015e7a <xTaskRemoveFromEventList+0x2e>
  52692. __asm volatile
  52693. 8015e62: f04f 0350 mov.w r3, #80 @ 0x50
  52694. 8015e66: f383 8811 msr BASEPRI, r3
  52695. 8015e6a: f3bf 8f6f isb sy
  52696. 8015e6e: f3bf 8f4f dsb sy
  52697. 8015e72: 60fb str r3, [r7, #12]
  52698. }
  52699. 8015e74: bf00 nop
  52700. 8015e76: bf00 nop
  52701. 8015e78: e7fd b.n 8015e76 <xTaskRemoveFromEventList+0x2a>
  52702. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  52703. 8015e7a: 693b ldr r3, [r7, #16]
  52704. 8015e7c: 3318 adds r3, #24
  52705. 8015e7e: 4618 mov r0, r3
  52706. 8015e80: f7fe f9c4 bl 801420c <uxListRemove>
  52707. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52708. 8015e84: 4b1d ldr r3, [pc, #116] @ (8015efc <xTaskRemoveFromEventList+0xb0>)
  52709. 8015e86: 681b ldr r3, [r3, #0]
  52710. 8015e88: 2b00 cmp r3, #0
  52711. 8015e8a: d11d bne.n 8015ec8 <xTaskRemoveFromEventList+0x7c>
  52712. {
  52713. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  52714. 8015e8c: 693b ldr r3, [r7, #16]
  52715. 8015e8e: 3304 adds r3, #4
  52716. 8015e90: 4618 mov r0, r3
  52717. 8015e92: f7fe f9bb bl 801420c <uxListRemove>
  52718. prvAddTaskToReadyList( pxUnblockedTCB );
  52719. 8015e96: 693b ldr r3, [r7, #16]
  52720. 8015e98: 6ada ldr r2, [r3, #44] @ 0x2c
  52721. 8015e9a: 4b19 ldr r3, [pc, #100] @ (8015f00 <xTaskRemoveFromEventList+0xb4>)
  52722. 8015e9c: 681b ldr r3, [r3, #0]
  52723. 8015e9e: 429a cmp r2, r3
  52724. 8015ea0: d903 bls.n 8015eaa <xTaskRemoveFromEventList+0x5e>
  52725. 8015ea2: 693b ldr r3, [r7, #16]
  52726. 8015ea4: 6adb ldr r3, [r3, #44] @ 0x2c
  52727. 8015ea6: 4a16 ldr r2, [pc, #88] @ (8015f00 <xTaskRemoveFromEventList+0xb4>)
  52728. 8015ea8: 6013 str r3, [r2, #0]
  52729. 8015eaa: 693b ldr r3, [r7, #16]
  52730. 8015eac: 6ada ldr r2, [r3, #44] @ 0x2c
  52731. 8015eae: 4613 mov r3, r2
  52732. 8015eb0: 009b lsls r3, r3, #2
  52733. 8015eb2: 4413 add r3, r2
  52734. 8015eb4: 009b lsls r3, r3, #2
  52735. 8015eb6: 4a13 ldr r2, [pc, #76] @ (8015f04 <xTaskRemoveFromEventList+0xb8>)
  52736. 8015eb8: 441a add r2, r3
  52737. 8015eba: 693b ldr r3, [r7, #16]
  52738. 8015ebc: 3304 adds r3, #4
  52739. 8015ebe: 4619 mov r1, r3
  52740. 8015ec0: 4610 mov r0, r2
  52741. 8015ec2: f7fe f946 bl 8014152 <vListInsertEnd>
  52742. 8015ec6: e005 b.n 8015ed4 <xTaskRemoveFromEventList+0x88>
  52743. }
  52744. else
  52745. {
  52746. /* The delayed and ready lists cannot be accessed, so hold this task
  52747. pending until the scheduler is resumed. */
  52748. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  52749. 8015ec8: 693b ldr r3, [r7, #16]
  52750. 8015eca: 3318 adds r3, #24
  52751. 8015ecc: 4619 mov r1, r3
  52752. 8015ece: 480e ldr r0, [pc, #56] @ (8015f08 <xTaskRemoveFromEventList+0xbc>)
  52753. 8015ed0: f7fe f93f bl 8014152 <vListInsertEnd>
  52754. }
  52755. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  52756. 8015ed4: 693b ldr r3, [r7, #16]
  52757. 8015ed6: 6ada ldr r2, [r3, #44] @ 0x2c
  52758. 8015ed8: 4b0c ldr r3, [pc, #48] @ (8015f0c <xTaskRemoveFromEventList+0xc0>)
  52759. 8015eda: 681b ldr r3, [r3, #0]
  52760. 8015edc: 6adb ldr r3, [r3, #44] @ 0x2c
  52761. 8015ede: 429a cmp r2, r3
  52762. 8015ee0: d905 bls.n 8015eee <xTaskRemoveFromEventList+0xa2>
  52763. {
  52764. /* Return true if the task removed from the event list has a higher
  52765. priority than the calling task. This allows the calling task to know if
  52766. it should force a context switch now. */
  52767. xReturn = pdTRUE;
  52768. 8015ee2: 2301 movs r3, #1
  52769. 8015ee4: 617b str r3, [r7, #20]
  52770. /* Mark that a yield is pending in case the user is not using the
  52771. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  52772. xYieldPending = pdTRUE;
  52773. 8015ee6: 4b0a ldr r3, [pc, #40] @ (8015f10 <xTaskRemoveFromEventList+0xc4>)
  52774. 8015ee8: 2201 movs r2, #1
  52775. 8015eea: 601a str r2, [r3, #0]
  52776. 8015eec: e001 b.n 8015ef2 <xTaskRemoveFromEventList+0xa6>
  52777. }
  52778. else
  52779. {
  52780. xReturn = pdFALSE;
  52781. 8015eee: 2300 movs r3, #0
  52782. 8015ef0: 617b str r3, [r7, #20]
  52783. }
  52784. return xReturn;
  52785. 8015ef2: 697b ldr r3, [r7, #20]
  52786. }
  52787. 8015ef4: 4618 mov r0, r3
  52788. 8015ef6: 3718 adds r7, #24
  52789. 8015ef8: 46bd mov sp, r7
  52790. 8015efa: bd80 pop {r7, pc}
  52791. 8015efc: 24002b90 .word 0x24002b90
  52792. 8015f00: 24002b70 .word 0x24002b70
  52793. 8015f04: 24002698 .word 0x24002698
  52794. 8015f08: 24002b28 .word 0x24002b28
  52795. 8015f0c: 24002694 .word 0x24002694
  52796. 8015f10: 24002b7c .word 0x24002b7c
  52797. 08015f14 <vTaskSetTimeOutState>:
  52798. }
  52799. }
  52800. /*-----------------------------------------------------------*/
  52801. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  52802. {
  52803. 8015f14: b580 push {r7, lr}
  52804. 8015f16: b084 sub sp, #16
  52805. 8015f18: af00 add r7, sp, #0
  52806. 8015f1a: 6078 str r0, [r7, #4]
  52807. configASSERT( pxTimeOut );
  52808. 8015f1c: 687b ldr r3, [r7, #4]
  52809. 8015f1e: 2b00 cmp r3, #0
  52810. 8015f20: d10b bne.n 8015f3a <vTaskSetTimeOutState+0x26>
  52811. __asm volatile
  52812. 8015f22: f04f 0350 mov.w r3, #80 @ 0x50
  52813. 8015f26: f383 8811 msr BASEPRI, r3
  52814. 8015f2a: f3bf 8f6f isb sy
  52815. 8015f2e: f3bf 8f4f dsb sy
  52816. 8015f32: 60fb str r3, [r7, #12]
  52817. }
  52818. 8015f34: bf00 nop
  52819. 8015f36: bf00 nop
  52820. 8015f38: e7fd b.n 8015f36 <vTaskSetTimeOutState+0x22>
  52821. taskENTER_CRITICAL();
  52822. 8015f3a: f001 fb0d bl 8017558 <vPortEnterCritical>
  52823. {
  52824. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52825. 8015f3e: 4b07 ldr r3, [pc, #28] @ (8015f5c <vTaskSetTimeOutState+0x48>)
  52826. 8015f40: 681a ldr r2, [r3, #0]
  52827. 8015f42: 687b ldr r3, [r7, #4]
  52828. 8015f44: 601a str r2, [r3, #0]
  52829. pxTimeOut->xTimeOnEntering = xTickCount;
  52830. 8015f46: 4b06 ldr r3, [pc, #24] @ (8015f60 <vTaskSetTimeOutState+0x4c>)
  52831. 8015f48: 681a ldr r2, [r3, #0]
  52832. 8015f4a: 687b ldr r3, [r7, #4]
  52833. 8015f4c: 605a str r2, [r3, #4]
  52834. }
  52835. taskEXIT_CRITICAL();
  52836. 8015f4e: f001 fb35 bl 80175bc <vPortExitCritical>
  52837. }
  52838. 8015f52: bf00 nop
  52839. 8015f54: 3710 adds r7, #16
  52840. 8015f56: 46bd mov sp, r7
  52841. 8015f58: bd80 pop {r7, pc}
  52842. 8015f5a: bf00 nop
  52843. 8015f5c: 24002b80 .word 0x24002b80
  52844. 8015f60: 24002b6c .word 0x24002b6c
  52845. 08015f64 <vTaskInternalSetTimeOutState>:
  52846. /*-----------------------------------------------------------*/
  52847. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  52848. {
  52849. 8015f64: b480 push {r7}
  52850. 8015f66: b083 sub sp, #12
  52851. 8015f68: af00 add r7, sp, #0
  52852. 8015f6a: 6078 str r0, [r7, #4]
  52853. /* For internal use only as it does not use a critical section. */
  52854. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52855. 8015f6c: 4b06 ldr r3, [pc, #24] @ (8015f88 <vTaskInternalSetTimeOutState+0x24>)
  52856. 8015f6e: 681a ldr r2, [r3, #0]
  52857. 8015f70: 687b ldr r3, [r7, #4]
  52858. 8015f72: 601a str r2, [r3, #0]
  52859. pxTimeOut->xTimeOnEntering = xTickCount;
  52860. 8015f74: 4b05 ldr r3, [pc, #20] @ (8015f8c <vTaskInternalSetTimeOutState+0x28>)
  52861. 8015f76: 681a ldr r2, [r3, #0]
  52862. 8015f78: 687b ldr r3, [r7, #4]
  52863. 8015f7a: 605a str r2, [r3, #4]
  52864. }
  52865. 8015f7c: bf00 nop
  52866. 8015f7e: 370c adds r7, #12
  52867. 8015f80: 46bd mov sp, r7
  52868. 8015f82: f85d 7b04 ldr.w r7, [sp], #4
  52869. 8015f86: 4770 bx lr
  52870. 8015f88: 24002b80 .word 0x24002b80
  52871. 8015f8c: 24002b6c .word 0x24002b6c
  52872. 08015f90 <xTaskCheckForTimeOut>:
  52873. /*-----------------------------------------------------------*/
  52874. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  52875. {
  52876. 8015f90: b580 push {r7, lr}
  52877. 8015f92: b088 sub sp, #32
  52878. 8015f94: af00 add r7, sp, #0
  52879. 8015f96: 6078 str r0, [r7, #4]
  52880. 8015f98: 6039 str r1, [r7, #0]
  52881. BaseType_t xReturn;
  52882. configASSERT( pxTimeOut );
  52883. 8015f9a: 687b ldr r3, [r7, #4]
  52884. 8015f9c: 2b00 cmp r3, #0
  52885. 8015f9e: d10b bne.n 8015fb8 <xTaskCheckForTimeOut+0x28>
  52886. __asm volatile
  52887. 8015fa0: f04f 0350 mov.w r3, #80 @ 0x50
  52888. 8015fa4: f383 8811 msr BASEPRI, r3
  52889. 8015fa8: f3bf 8f6f isb sy
  52890. 8015fac: f3bf 8f4f dsb sy
  52891. 8015fb0: 613b str r3, [r7, #16]
  52892. }
  52893. 8015fb2: bf00 nop
  52894. 8015fb4: bf00 nop
  52895. 8015fb6: e7fd b.n 8015fb4 <xTaskCheckForTimeOut+0x24>
  52896. configASSERT( pxTicksToWait );
  52897. 8015fb8: 683b ldr r3, [r7, #0]
  52898. 8015fba: 2b00 cmp r3, #0
  52899. 8015fbc: d10b bne.n 8015fd6 <xTaskCheckForTimeOut+0x46>
  52900. __asm volatile
  52901. 8015fbe: f04f 0350 mov.w r3, #80 @ 0x50
  52902. 8015fc2: f383 8811 msr BASEPRI, r3
  52903. 8015fc6: f3bf 8f6f isb sy
  52904. 8015fca: f3bf 8f4f dsb sy
  52905. 8015fce: 60fb str r3, [r7, #12]
  52906. }
  52907. 8015fd0: bf00 nop
  52908. 8015fd2: bf00 nop
  52909. 8015fd4: e7fd b.n 8015fd2 <xTaskCheckForTimeOut+0x42>
  52910. taskENTER_CRITICAL();
  52911. 8015fd6: f001 fabf bl 8017558 <vPortEnterCritical>
  52912. {
  52913. /* Minor optimisation. The tick count cannot change in this block. */
  52914. const TickType_t xConstTickCount = xTickCount;
  52915. 8015fda: 4b1d ldr r3, [pc, #116] @ (8016050 <xTaskCheckForTimeOut+0xc0>)
  52916. 8015fdc: 681b ldr r3, [r3, #0]
  52917. 8015fde: 61bb str r3, [r7, #24]
  52918. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  52919. 8015fe0: 687b ldr r3, [r7, #4]
  52920. 8015fe2: 685b ldr r3, [r3, #4]
  52921. 8015fe4: 69ba ldr r2, [r7, #24]
  52922. 8015fe6: 1ad3 subs r3, r2, r3
  52923. 8015fe8: 617b str r3, [r7, #20]
  52924. }
  52925. else
  52926. #endif
  52927. #if ( INCLUDE_vTaskSuspend == 1 )
  52928. if( *pxTicksToWait == portMAX_DELAY )
  52929. 8015fea: 683b ldr r3, [r7, #0]
  52930. 8015fec: 681b ldr r3, [r3, #0]
  52931. 8015fee: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52932. 8015ff2: d102 bne.n 8015ffa <xTaskCheckForTimeOut+0x6a>
  52933. {
  52934. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  52935. specified is the maximum block time then the task should block
  52936. indefinitely, and therefore never time out. */
  52937. xReturn = pdFALSE;
  52938. 8015ff4: 2300 movs r3, #0
  52939. 8015ff6: 61fb str r3, [r7, #28]
  52940. 8015ff8: e023 b.n 8016042 <xTaskCheckForTimeOut+0xb2>
  52941. }
  52942. else
  52943. #endif
  52944. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  52945. 8015ffa: 687b ldr r3, [r7, #4]
  52946. 8015ffc: 681a ldr r2, [r3, #0]
  52947. 8015ffe: 4b15 ldr r3, [pc, #84] @ (8016054 <xTaskCheckForTimeOut+0xc4>)
  52948. 8016000: 681b ldr r3, [r3, #0]
  52949. 8016002: 429a cmp r2, r3
  52950. 8016004: d007 beq.n 8016016 <xTaskCheckForTimeOut+0x86>
  52951. 8016006: 687b ldr r3, [r7, #4]
  52952. 8016008: 685b ldr r3, [r3, #4]
  52953. 801600a: 69ba ldr r2, [r7, #24]
  52954. 801600c: 429a cmp r2, r3
  52955. 801600e: d302 bcc.n 8016016 <xTaskCheckForTimeOut+0x86>
  52956. /* The tick count is greater than the time at which
  52957. vTaskSetTimeout() was called, but has also overflowed since
  52958. vTaskSetTimeOut() was called. It must have wrapped all the way
  52959. around and gone past again. This passed since vTaskSetTimeout()
  52960. was called. */
  52961. xReturn = pdTRUE;
  52962. 8016010: 2301 movs r3, #1
  52963. 8016012: 61fb str r3, [r7, #28]
  52964. 8016014: e015 b.n 8016042 <xTaskCheckForTimeOut+0xb2>
  52965. }
  52966. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  52967. 8016016: 683b ldr r3, [r7, #0]
  52968. 8016018: 681b ldr r3, [r3, #0]
  52969. 801601a: 697a ldr r2, [r7, #20]
  52970. 801601c: 429a cmp r2, r3
  52971. 801601e: d20b bcs.n 8016038 <xTaskCheckForTimeOut+0xa8>
  52972. {
  52973. /* Not a genuine timeout. Adjust parameters for time remaining. */
  52974. *pxTicksToWait -= xElapsedTime;
  52975. 8016020: 683b ldr r3, [r7, #0]
  52976. 8016022: 681a ldr r2, [r3, #0]
  52977. 8016024: 697b ldr r3, [r7, #20]
  52978. 8016026: 1ad2 subs r2, r2, r3
  52979. 8016028: 683b ldr r3, [r7, #0]
  52980. 801602a: 601a str r2, [r3, #0]
  52981. vTaskInternalSetTimeOutState( pxTimeOut );
  52982. 801602c: 6878 ldr r0, [r7, #4]
  52983. 801602e: f7ff ff99 bl 8015f64 <vTaskInternalSetTimeOutState>
  52984. xReturn = pdFALSE;
  52985. 8016032: 2300 movs r3, #0
  52986. 8016034: 61fb str r3, [r7, #28]
  52987. 8016036: e004 b.n 8016042 <xTaskCheckForTimeOut+0xb2>
  52988. }
  52989. else
  52990. {
  52991. *pxTicksToWait = 0;
  52992. 8016038: 683b ldr r3, [r7, #0]
  52993. 801603a: 2200 movs r2, #0
  52994. 801603c: 601a str r2, [r3, #0]
  52995. xReturn = pdTRUE;
  52996. 801603e: 2301 movs r3, #1
  52997. 8016040: 61fb str r3, [r7, #28]
  52998. }
  52999. }
  53000. taskEXIT_CRITICAL();
  53001. 8016042: f001 fabb bl 80175bc <vPortExitCritical>
  53002. return xReturn;
  53003. 8016046: 69fb ldr r3, [r7, #28]
  53004. }
  53005. 8016048: 4618 mov r0, r3
  53006. 801604a: 3720 adds r7, #32
  53007. 801604c: 46bd mov sp, r7
  53008. 801604e: bd80 pop {r7, pc}
  53009. 8016050: 24002b6c .word 0x24002b6c
  53010. 8016054: 24002b80 .word 0x24002b80
  53011. 08016058 <vTaskMissedYield>:
  53012. /*-----------------------------------------------------------*/
  53013. void vTaskMissedYield( void )
  53014. {
  53015. 8016058: b480 push {r7}
  53016. 801605a: af00 add r7, sp, #0
  53017. xYieldPending = pdTRUE;
  53018. 801605c: 4b03 ldr r3, [pc, #12] @ (801606c <vTaskMissedYield+0x14>)
  53019. 801605e: 2201 movs r2, #1
  53020. 8016060: 601a str r2, [r3, #0]
  53021. }
  53022. 8016062: bf00 nop
  53023. 8016064: 46bd mov sp, r7
  53024. 8016066: f85d 7b04 ldr.w r7, [sp], #4
  53025. 801606a: 4770 bx lr
  53026. 801606c: 24002b7c .word 0x24002b7c
  53027. 08016070 <prvIdleTask>:
  53028. *
  53029. * void prvIdleTask( void *pvParameters );
  53030. *
  53031. */
  53032. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  53033. {
  53034. 8016070: b580 push {r7, lr}
  53035. 8016072: b082 sub sp, #8
  53036. 8016074: af00 add r7, sp, #0
  53037. 8016076: 6078 str r0, [r7, #4]
  53038. for( ;; )
  53039. {
  53040. /* See if any tasks have deleted themselves - if so then the idle task
  53041. is responsible for freeing the deleted task's TCB and stack. */
  53042. prvCheckTasksWaitingTermination();
  53043. 8016078: f000 f852 bl 8016120 <prvCheckTasksWaitingTermination>
  53044. A critical region is not required here as we are just reading from
  53045. the list, and an occasional incorrect value will not matter. If
  53046. the ready list at the idle priority contains more than one task
  53047. then a task other than the idle task is ready to execute. */
  53048. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  53049. 801607c: 4b06 ldr r3, [pc, #24] @ (8016098 <prvIdleTask+0x28>)
  53050. 801607e: 681b ldr r3, [r3, #0]
  53051. 8016080: 2b01 cmp r3, #1
  53052. 8016082: d9f9 bls.n 8016078 <prvIdleTask+0x8>
  53053. {
  53054. taskYIELD();
  53055. 8016084: 4b05 ldr r3, [pc, #20] @ (801609c <prvIdleTask+0x2c>)
  53056. 8016086: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53057. 801608a: 601a str r2, [r3, #0]
  53058. 801608c: f3bf 8f4f dsb sy
  53059. 8016090: f3bf 8f6f isb sy
  53060. prvCheckTasksWaitingTermination();
  53061. 8016094: e7f0 b.n 8016078 <prvIdleTask+0x8>
  53062. 8016096: bf00 nop
  53063. 8016098: 24002698 .word 0x24002698
  53064. 801609c: e000ed04 .word 0xe000ed04
  53065. 080160a0 <prvInitialiseTaskLists>:
  53066. #endif /* portUSING_MPU_WRAPPERS */
  53067. /*-----------------------------------------------------------*/
  53068. static void prvInitialiseTaskLists( void )
  53069. {
  53070. 80160a0: b580 push {r7, lr}
  53071. 80160a2: b082 sub sp, #8
  53072. 80160a4: af00 add r7, sp, #0
  53073. UBaseType_t uxPriority;
  53074. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53075. 80160a6: 2300 movs r3, #0
  53076. 80160a8: 607b str r3, [r7, #4]
  53077. 80160aa: e00c b.n 80160c6 <prvInitialiseTaskLists+0x26>
  53078. {
  53079. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  53080. 80160ac: 687a ldr r2, [r7, #4]
  53081. 80160ae: 4613 mov r3, r2
  53082. 80160b0: 009b lsls r3, r3, #2
  53083. 80160b2: 4413 add r3, r2
  53084. 80160b4: 009b lsls r3, r3, #2
  53085. 80160b6: 4a12 ldr r2, [pc, #72] @ (8016100 <prvInitialiseTaskLists+0x60>)
  53086. 80160b8: 4413 add r3, r2
  53087. 80160ba: 4618 mov r0, r3
  53088. 80160bc: f7fe f81c bl 80140f8 <vListInitialise>
  53089. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53090. 80160c0: 687b ldr r3, [r7, #4]
  53091. 80160c2: 3301 adds r3, #1
  53092. 80160c4: 607b str r3, [r7, #4]
  53093. 80160c6: 687b ldr r3, [r7, #4]
  53094. 80160c8: 2b37 cmp r3, #55 @ 0x37
  53095. 80160ca: d9ef bls.n 80160ac <prvInitialiseTaskLists+0xc>
  53096. }
  53097. vListInitialise( &xDelayedTaskList1 );
  53098. 80160cc: 480d ldr r0, [pc, #52] @ (8016104 <prvInitialiseTaskLists+0x64>)
  53099. 80160ce: f7fe f813 bl 80140f8 <vListInitialise>
  53100. vListInitialise( &xDelayedTaskList2 );
  53101. 80160d2: 480d ldr r0, [pc, #52] @ (8016108 <prvInitialiseTaskLists+0x68>)
  53102. 80160d4: f7fe f810 bl 80140f8 <vListInitialise>
  53103. vListInitialise( &xPendingReadyList );
  53104. 80160d8: 480c ldr r0, [pc, #48] @ (801610c <prvInitialiseTaskLists+0x6c>)
  53105. 80160da: f7fe f80d bl 80140f8 <vListInitialise>
  53106. #if ( INCLUDE_vTaskDelete == 1 )
  53107. {
  53108. vListInitialise( &xTasksWaitingTermination );
  53109. 80160de: 480c ldr r0, [pc, #48] @ (8016110 <prvInitialiseTaskLists+0x70>)
  53110. 80160e0: f7fe f80a bl 80140f8 <vListInitialise>
  53111. }
  53112. #endif /* INCLUDE_vTaskDelete */
  53113. #if ( INCLUDE_vTaskSuspend == 1 )
  53114. {
  53115. vListInitialise( &xSuspendedTaskList );
  53116. 80160e4: 480b ldr r0, [pc, #44] @ (8016114 <prvInitialiseTaskLists+0x74>)
  53117. 80160e6: f7fe f807 bl 80140f8 <vListInitialise>
  53118. }
  53119. #endif /* INCLUDE_vTaskSuspend */
  53120. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  53121. using list2. */
  53122. pxDelayedTaskList = &xDelayedTaskList1;
  53123. 80160ea: 4b0b ldr r3, [pc, #44] @ (8016118 <prvInitialiseTaskLists+0x78>)
  53124. 80160ec: 4a05 ldr r2, [pc, #20] @ (8016104 <prvInitialiseTaskLists+0x64>)
  53125. 80160ee: 601a str r2, [r3, #0]
  53126. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  53127. 80160f0: 4b0a ldr r3, [pc, #40] @ (801611c <prvInitialiseTaskLists+0x7c>)
  53128. 80160f2: 4a05 ldr r2, [pc, #20] @ (8016108 <prvInitialiseTaskLists+0x68>)
  53129. 80160f4: 601a str r2, [r3, #0]
  53130. }
  53131. 80160f6: bf00 nop
  53132. 80160f8: 3708 adds r7, #8
  53133. 80160fa: 46bd mov sp, r7
  53134. 80160fc: bd80 pop {r7, pc}
  53135. 80160fe: bf00 nop
  53136. 8016100: 24002698 .word 0x24002698
  53137. 8016104: 24002af8 .word 0x24002af8
  53138. 8016108: 24002b0c .word 0x24002b0c
  53139. 801610c: 24002b28 .word 0x24002b28
  53140. 8016110: 24002b3c .word 0x24002b3c
  53141. 8016114: 24002b54 .word 0x24002b54
  53142. 8016118: 24002b20 .word 0x24002b20
  53143. 801611c: 24002b24 .word 0x24002b24
  53144. 08016120 <prvCheckTasksWaitingTermination>:
  53145. /*-----------------------------------------------------------*/
  53146. static void prvCheckTasksWaitingTermination( void )
  53147. {
  53148. 8016120: b580 push {r7, lr}
  53149. 8016122: b082 sub sp, #8
  53150. 8016124: af00 add r7, sp, #0
  53151. {
  53152. TCB_t *pxTCB;
  53153. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  53154. being called too often in the idle task. */
  53155. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  53156. 8016126: e019 b.n 801615c <prvCheckTasksWaitingTermination+0x3c>
  53157. {
  53158. taskENTER_CRITICAL();
  53159. 8016128: f001 fa16 bl 8017558 <vPortEnterCritical>
  53160. {
  53161. 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. */
  53162. 801612c: 4b10 ldr r3, [pc, #64] @ (8016170 <prvCheckTasksWaitingTermination+0x50>)
  53163. 801612e: 68db ldr r3, [r3, #12]
  53164. 8016130: 68db ldr r3, [r3, #12]
  53165. 8016132: 607b str r3, [r7, #4]
  53166. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53167. 8016134: 687b ldr r3, [r7, #4]
  53168. 8016136: 3304 adds r3, #4
  53169. 8016138: 4618 mov r0, r3
  53170. 801613a: f7fe f867 bl 801420c <uxListRemove>
  53171. --uxCurrentNumberOfTasks;
  53172. 801613e: 4b0d ldr r3, [pc, #52] @ (8016174 <prvCheckTasksWaitingTermination+0x54>)
  53173. 8016140: 681b ldr r3, [r3, #0]
  53174. 8016142: 3b01 subs r3, #1
  53175. 8016144: 4a0b ldr r2, [pc, #44] @ (8016174 <prvCheckTasksWaitingTermination+0x54>)
  53176. 8016146: 6013 str r3, [r2, #0]
  53177. --uxDeletedTasksWaitingCleanUp;
  53178. 8016148: 4b0b ldr r3, [pc, #44] @ (8016178 <prvCheckTasksWaitingTermination+0x58>)
  53179. 801614a: 681b ldr r3, [r3, #0]
  53180. 801614c: 3b01 subs r3, #1
  53181. 801614e: 4a0a ldr r2, [pc, #40] @ (8016178 <prvCheckTasksWaitingTermination+0x58>)
  53182. 8016150: 6013 str r3, [r2, #0]
  53183. }
  53184. taskEXIT_CRITICAL();
  53185. 8016152: f001 fa33 bl 80175bc <vPortExitCritical>
  53186. prvDeleteTCB( pxTCB );
  53187. 8016156: 6878 ldr r0, [r7, #4]
  53188. 8016158: f000 f810 bl 801617c <prvDeleteTCB>
  53189. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  53190. 801615c: 4b06 ldr r3, [pc, #24] @ (8016178 <prvCheckTasksWaitingTermination+0x58>)
  53191. 801615e: 681b ldr r3, [r3, #0]
  53192. 8016160: 2b00 cmp r3, #0
  53193. 8016162: d1e1 bne.n 8016128 <prvCheckTasksWaitingTermination+0x8>
  53194. }
  53195. }
  53196. #endif /* INCLUDE_vTaskDelete */
  53197. }
  53198. 8016164: bf00 nop
  53199. 8016166: bf00 nop
  53200. 8016168: 3708 adds r7, #8
  53201. 801616a: 46bd mov sp, r7
  53202. 801616c: bd80 pop {r7, pc}
  53203. 801616e: bf00 nop
  53204. 8016170: 24002b3c .word 0x24002b3c
  53205. 8016174: 24002b68 .word 0x24002b68
  53206. 8016178: 24002b50 .word 0x24002b50
  53207. 0801617c <prvDeleteTCB>:
  53208. /*-----------------------------------------------------------*/
  53209. #if ( INCLUDE_vTaskDelete == 1 )
  53210. static void prvDeleteTCB( TCB_t *pxTCB )
  53211. {
  53212. 801617c: b580 push {r7, lr}
  53213. 801617e: b084 sub sp, #16
  53214. 8016180: af00 add r7, sp, #0
  53215. 8016182: 6078 str r0, [r7, #4]
  53216. to the task to free any memory allocated at the application level.
  53217. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  53218. for additional information. */
  53219. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  53220. {
  53221. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  53222. 8016184: 687b ldr r3, [r7, #4]
  53223. 8016186: 3354 adds r3, #84 @ 0x54
  53224. 8016188: 4618 mov r0, r3
  53225. 801618a: f001 fe25 bl 8017dd8 <_reclaim_reent>
  53226. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  53227. {
  53228. /* The task could have been allocated statically or dynamically, so
  53229. check what was statically allocated before trying to free the
  53230. memory. */
  53231. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  53232. 801618e: 687b ldr r3, [r7, #4]
  53233. 8016190: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  53234. 8016194: 2b00 cmp r3, #0
  53235. 8016196: d108 bne.n 80161aa <prvDeleteTCB+0x2e>
  53236. {
  53237. /* Both the stack and TCB were allocated dynamically, so both
  53238. must be freed. */
  53239. vPortFree( pxTCB->pxStack );
  53240. 8016198: 687b ldr r3, [r7, #4]
  53241. 801619a: 6b1b ldr r3, [r3, #48] @ 0x30
  53242. 801619c: 4618 mov r0, r3
  53243. 801619e: f001 fbcb bl 8017938 <vPortFree>
  53244. vPortFree( pxTCB );
  53245. 80161a2: 6878 ldr r0, [r7, #4]
  53246. 80161a4: f001 fbc8 bl 8017938 <vPortFree>
  53247. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  53248. mtCOVERAGE_TEST_MARKER();
  53249. }
  53250. }
  53251. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  53252. }
  53253. 80161a8: e019 b.n 80161de <prvDeleteTCB+0x62>
  53254. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  53255. 80161aa: 687b ldr r3, [r7, #4]
  53256. 80161ac: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  53257. 80161b0: 2b01 cmp r3, #1
  53258. 80161b2: d103 bne.n 80161bc <prvDeleteTCB+0x40>
  53259. vPortFree( pxTCB );
  53260. 80161b4: 6878 ldr r0, [r7, #4]
  53261. 80161b6: f001 fbbf bl 8017938 <vPortFree>
  53262. }
  53263. 80161ba: e010 b.n 80161de <prvDeleteTCB+0x62>
  53264. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  53265. 80161bc: 687b ldr r3, [r7, #4]
  53266. 80161be: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  53267. 80161c2: 2b02 cmp r3, #2
  53268. 80161c4: d00b beq.n 80161de <prvDeleteTCB+0x62>
  53269. __asm volatile
  53270. 80161c6: f04f 0350 mov.w r3, #80 @ 0x50
  53271. 80161ca: f383 8811 msr BASEPRI, r3
  53272. 80161ce: f3bf 8f6f isb sy
  53273. 80161d2: f3bf 8f4f dsb sy
  53274. 80161d6: 60fb str r3, [r7, #12]
  53275. }
  53276. 80161d8: bf00 nop
  53277. 80161da: bf00 nop
  53278. 80161dc: e7fd b.n 80161da <prvDeleteTCB+0x5e>
  53279. }
  53280. 80161de: bf00 nop
  53281. 80161e0: 3710 adds r7, #16
  53282. 80161e2: 46bd mov sp, r7
  53283. 80161e4: bd80 pop {r7, pc}
  53284. ...
  53285. 080161e8 <prvResetNextTaskUnblockTime>:
  53286. #endif /* INCLUDE_vTaskDelete */
  53287. /*-----------------------------------------------------------*/
  53288. static void prvResetNextTaskUnblockTime( void )
  53289. {
  53290. 80161e8: b480 push {r7}
  53291. 80161ea: b083 sub sp, #12
  53292. 80161ec: af00 add r7, sp, #0
  53293. TCB_t *pxTCB;
  53294. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53295. 80161ee: 4b0c ldr r3, [pc, #48] @ (8016220 <prvResetNextTaskUnblockTime+0x38>)
  53296. 80161f0: 681b ldr r3, [r3, #0]
  53297. 80161f2: 681b ldr r3, [r3, #0]
  53298. 80161f4: 2b00 cmp r3, #0
  53299. 80161f6: d104 bne.n 8016202 <prvResetNextTaskUnblockTime+0x1a>
  53300. {
  53301. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  53302. the maximum possible value so it is extremely unlikely that the
  53303. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  53304. there is an item in the delayed list. */
  53305. xNextTaskUnblockTime = portMAX_DELAY;
  53306. 80161f8: 4b0a ldr r3, [pc, #40] @ (8016224 <prvResetNextTaskUnblockTime+0x3c>)
  53307. 80161fa: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  53308. 80161fe: 601a str r2, [r3, #0]
  53309. which the task at the head of the delayed list should be removed
  53310. from the Blocked state. */
  53311. ( 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. */
  53312. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  53313. }
  53314. }
  53315. 8016200: e008 b.n 8016214 <prvResetNextTaskUnblockTime+0x2c>
  53316. ( 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. */
  53317. 8016202: 4b07 ldr r3, [pc, #28] @ (8016220 <prvResetNextTaskUnblockTime+0x38>)
  53318. 8016204: 681b ldr r3, [r3, #0]
  53319. 8016206: 68db ldr r3, [r3, #12]
  53320. 8016208: 68db ldr r3, [r3, #12]
  53321. 801620a: 607b str r3, [r7, #4]
  53322. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  53323. 801620c: 687b ldr r3, [r7, #4]
  53324. 801620e: 685b ldr r3, [r3, #4]
  53325. 8016210: 4a04 ldr r2, [pc, #16] @ (8016224 <prvResetNextTaskUnblockTime+0x3c>)
  53326. 8016212: 6013 str r3, [r2, #0]
  53327. }
  53328. 8016214: bf00 nop
  53329. 8016216: 370c adds r7, #12
  53330. 8016218: 46bd mov sp, r7
  53331. 801621a: f85d 7b04 ldr.w r7, [sp], #4
  53332. 801621e: 4770 bx lr
  53333. 8016220: 24002b20 .word 0x24002b20
  53334. 8016224: 24002b88 .word 0x24002b88
  53335. 08016228 <xTaskGetCurrentTaskHandle>:
  53336. /*-----------------------------------------------------------*/
  53337. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  53338. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  53339. {
  53340. 8016228: b480 push {r7}
  53341. 801622a: b083 sub sp, #12
  53342. 801622c: af00 add r7, sp, #0
  53343. TaskHandle_t xReturn;
  53344. /* A critical section is not required as this is not called from
  53345. an interrupt and the current TCB will always be the same for any
  53346. individual execution thread. */
  53347. xReturn = pxCurrentTCB;
  53348. 801622e: 4b05 ldr r3, [pc, #20] @ (8016244 <xTaskGetCurrentTaskHandle+0x1c>)
  53349. 8016230: 681b ldr r3, [r3, #0]
  53350. 8016232: 607b str r3, [r7, #4]
  53351. return xReturn;
  53352. 8016234: 687b ldr r3, [r7, #4]
  53353. }
  53354. 8016236: 4618 mov r0, r3
  53355. 8016238: 370c adds r7, #12
  53356. 801623a: 46bd mov sp, r7
  53357. 801623c: f85d 7b04 ldr.w r7, [sp], #4
  53358. 8016240: 4770 bx lr
  53359. 8016242: bf00 nop
  53360. 8016244: 24002694 .word 0x24002694
  53361. 08016248 <xTaskGetSchedulerState>:
  53362. /*-----------------------------------------------------------*/
  53363. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  53364. BaseType_t xTaskGetSchedulerState( void )
  53365. {
  53366. 8016248: b480 push {r7}
  53367. 801624a: b083 sub sp, #12
  53368. 801624c: af00 add r7, sp, #0
  53369. BaseType_t xReturn;
  53370. if( xSchedulerRunning == pdFALSE )
  53371. 801624e: 4b0b ldr r3, [pc, #44] @ (801627c <xTaskGetSchedulerState+0x34>)
  53372. 8016250: 681b ldr r3, [r3, #0]
  53373. 8016252: 2b00 cmp r3, #0
  53374. 8016254: d102 bne.n 801625c <xTaskGetSchedulerState+0x14>
  53375. {
  53376. xReturn = taskSCHEDULER_NOT_STARTED;
  53377. 8016256: 2301 movs r3, #1
  53378. 8016258: 607b str r3, [r7, #4]
  53379. 801625a: e008 b.n 801626e <xTaskGetSchedulerState+0x26>
  53380. }
  53381. else
  53382. {
  53383. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53384. 801625c: 4b08 ldr r3, [pc, #32] @ (8016280 <xTaskGetSchedulerState+0x38>)
  53385. 801625e: 681b ldr r3, [r3, #0]
  53386. 8016260: 2b00 cmp r3, #0
  53387. 8016262: d102 bne.n 801626a <xTaskGetSchedulerState+0x22>
  53388. {
  53389. xReturn = taskSCHEDULER_RUNNING;
  53390. 8016264: 2302 movs r3, #2
  53391. 8016266: 607b str r3, [r7, #4]
  53392. 8016268: e001 b.n 801626e <xTaskGetSchedulerState+0x26>
  53393. }
  53394. else
  53395. {
  53396. xReturn = taskSCHEDULER_SUSPENDED;
  53397. 801626a: 2300 movs r3, #0
  53398. 801626c: 607b str r3, [r7, #4]
  53399. }
  53400. }
  53401. return xReturn;
  53402. 801626e: 687b ldr r3, [r7, #4]
  53403. }
  53404. 8016270: 4618 mov r0, r3
  53405. 8016272: 370c adds r7, #12
  53406. 8016274: 46bd mov sp, r7
  53407. 8016276: f85d 7b04 ldr.w r7, [sp], #4
  53408. 801627a: 4770 bx lr
  53409. 801627c: 24002b74 .word 0x24002b74
  53410. 8016280: 24002b90 .word 0x24002b90
  53411. 08016284 <xTaskPriorityInherit>:
  53412. /*-----------------------------------------------------------*/
  53413. #if ( configUSE_MUTEXES == 1 )
  53414. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  53415. {
  53416. 8016284: b580 push {r7, lr}
  53417. 8016286: b084 sub sp, #16
  53418. 8016288: af00 add r7, sp, #0
  53419. 801628a: 6078 str r0, [r7, #4]
  53420. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  53421. 801628c: 687b ldr r3, [r7, #4]
  53422. 801628e: 60bb str r3, [r7, #8]
  53423. BaseType_t xReturn = pdFALSE;
  53424. 8016290: 2300 movs r3, #0
  53425. 8016292: 60fb str r3, [r7, #12]
  53426. /* If the mutex was given back by an interrupt while the queue was
  53427. locked then the mutex holder might now be NULL. _RB_ Is this still
  53428. needed as interrupts can no longer use mutexes? */
  53429. if( pxMutexHolder != NULL )
  53430. 8016294: 687b ldr r3, [r7, #4]
  53431. 8016296: 2b00 cmp r3, #0
  53432. 8016298: d051 beq.n 801633e <xTaskPriorityInherit+0xba>
  53433. {
  53434. /* If the holder of the mutex has a priority below the priority of
  53435. the task attempting to obtain the mutex then it will temporarily
  53436. inherit the priority of the task attempting to obtain the mutex. */
  53437. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  53438. 801629a: 68bb ldr r3, [r7, #8]
  53439. 801629c: 6ada ldr r2, [r3, #44] @ 0x2c
  53440. 801629e: 4b2a ldr r3, [pc, #168] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53441. 80162a0: 681b ldr r3, [r3, #0]
  53442. 80162a2: 6adb ldr r3, [r3, #44] @ 0x2c
  53443. 80162a4: 429a cmp r2, r3
  53444. 80162a6: d241 bcs.n 801632c <xTaskPriorityInherit+0xa8>
  53445. {
  53446. /* Adjust the mutex holder state to account for its new
  53447. priority. Only reset the event list item value if the value is
  53448. not being used for anything else. */
  53449. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  53450. 80162a8: 68bb ldr r3, [r7, #8]
  53451. 80162aa: 699b ldr r3, [r3, #24]
  53452. 80162ac: 2b00 cmp r3, #0
  53453. 80162ae: db06 blt.n 80162be <xTaskPriorityInherit+0x3a>
  53454. {
  53455. 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. */
  53456. 80162b0: 4b25 ldr r3, [pc, #148] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53457. 80162b2: 681b ldr r3, [r3, #0]
  53458. 80162b4: 6adb ldr r3, [r3, #44] @ 0x2c
  53459. 80162b6: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53460. 80162ba: 68bb ldr r3, [r7, #8]
  53461. 80162bc: 619a str r2, [r3, #24]
  53462. mtCOVERAGE_TEST_MARKER();
  53463. }
  53464. /* If the task being modified is in the ready state it will need
  53465. to be moved into a new list. */
  53466. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  53467. 80162be: 68bb ldr r3, [r7, #8]
  53468. 80162c0: 6959 ldr r1, [r3, #20]
  53469. 80162c2: 68bb ldr r3, [r7, #8]
  53470. 80162c4: 6ada ldr r2, [r3, #44] @ 0x2c
  53471. 80162c6: 4613 mov r3, r2
  53472. 80162c8: 009b lsls r3, r3, #2
  53473. 80162ca: 4413 add r3, r2
  53474. 80162cc: 009b lsls r3, r3, #2
  53475. 80162ce: 4a1f ldr r2, [pc, #124] @ (801634c <xTaskPriorityInherit+0xc8>)
  53476. 80162d0: 4413 add r3, r2
  53477. 80162d2: 4299 cmp r1, r3
  53478. 80162d4: d122 bne.n 801631c <xTaskPriorityInherit+0x98>
  53479. {
  53480. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53481. 80162d6: 68bb ldr r3, [r7, #8]
  53482. 80162d8: 3304 adds r3, #4
  53483. 80162da: 4618 mov r0, r3
  53484. 80162dc: f7fd ff96 bl 801420c <uxListRemove>
  53485. {
  53486. mtCOVERAGE_TEST_MARKER();
  53487. }
  53488. /* Inherit the priority before being moved into the new list. */
  53489. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  53490. 80162e0: 4b19 ldr r3, [pc, #100] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53491. 80162e2: 681b ldr r3, [r3, #0]
  53492. 80162e4: 6ada ldr r2, [r3, #44] @ 0x2c
  53493. 80162e6: 68bb ldr r3, [r7, #8]
  53494. 80162e8: 62da str r2, [r3, #44] @ 0x2c
  53495. prvAddTaskToReadyList( pxMutexHolderTCB );
  53496. 80162ea: 68bb ldr r3, [r7, #8]
  53497. 80162ec: 6ada ldr r2, [r3, #44] @ 0x2c
  53498. 80162ee: 4b18 ldr r3, [pc, #96] @ (8016350 <xTaskPriorityInherit+0xcc>)
  53499. 80162f0: 681b ldr r3, [r3, #0]
  53500. 80162f2: 429a cmp r2, r3
  53501. 80162f4: d903 bls.n 80162fe <xTaskPriorityInherit+0x7a>
  53502. 80162f6: 68bb ldr r3, [r7, #8]
  53503. 80162f8: 6adb ldr r3, [r3, #44] @ 0x2c
  53504. 80162fa: 4a15 ldr r2, [pc, #84] @ (8016350 <xTaskPriorityInherit+0xcc>)
  53505. 80162fc: 6013 str r3, [r2, #0]
  53506. 80162fe: 68bb ldr r3, [r7, #8]
  53507. 8016300: 6ada ldr r2, [r3, #44] @ 0x2c
  53508. 8016302: 4613 mov r3, r2
  53509. 8016304: 009b lsls r3, r3, #2
  53510. 8016306: 4413 add r3, r2
  53511. 8016308: 009b lsls r3, r3, #2
  53512. 801630a: 4a10 ldr r2, [pc, #64] @ (801634c <xTaskPriorityInherit+0xc8>)
  53513. 801630c: 441a add r2, r3
  53514. 801630e: 68bb ldr r3, [r7, #8]
  53515. 8016310: 3304 adds r3, #4
  53516. 8016312: 4619 mov r1, r3
  53517. 8016314: 4610 mov r0, r2
  53518. 8016316: f7fd ff1c bl 8014152 <vListInsertEnd>
  53519. 801631a: e004 b.n 8016326 <xTaskPriorityInherit+0xa2>
  53520. }
  53521. else
  53522. {
  53523. /* Just inherit the priority. */
  53524. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  53525. 801631c: 4b0a ldr r3, [pc, #40] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53526. 801631e: 681b ldr r3, [r3, #0]
  53527. 8016320: 6ada ldr r2, [r3, #44] @ 0x2c
  53528. 8016322: 68bb ldr r3, [r7, #8]
  53529. 8016324: 62da str r2, [r3, #44] @ 0x2c
  53530. }
  53531. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  53532. /* Inheritance occurred. */
  53533. xReturn = pdTRUE;
  53534. 8016326: 2301 movs r3, #1
  53535. 8016328: 60fb str r3, [r7, #12]
  53536. 801632a: e008 b.n 801633e <xTaskPriorityInherit+0xba>
  53537. }
  53538. else
  53539. {
  53540. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  53541. 801632c: 68bb ldr r3, [r7, #8]
  53542. 801632e: 6cda ldr r2, [r3, #76] @ 0x4c
  53543. 8016330: 4b05 ldr r3, [pc, #20] @ (8016348 <xTaskPriorityInherit+0xc4>)
  53544. 8016332: 681b ldr r3, [r3, #0]
  53545. 8016334: 6adb ldr r3, [r3, #44] @ 0x2c
  53546. 8016336: 429a cmp r2, r3
  53547. 8016338: d201 bcs.n 801633e <xTaskPriorityInherit+0xba>
  53548. current priority of the mutex holder is not lower than the
  53549. priority of the task attempting to take the mutex.
  53550. Therefore the mutex holder must have already inherited a
  53551. priority, but inheritance would have occurred if that had
  53552. not been the case. */
  53553. xReturn = pdTRUE;
  53554. 801633a: 2301 movs r3, #1
  53555. 801633c: 60fb str r3, [r7, #12]
  53556. else
  53557. {
  53558. mtCOVERAGE_TEST_MARKER();
  53559. }
  53560. return xReturn;
  53561. 801633e: 68fb ldr r3, [r7, #12]
  53562. }
  53563. 8016340: 4618 mov r0, r3
  53564. 8016342: 3710 adds r7, #16
  53565. 8016344: 46bd mov sp, r7
  53566. 8016346: bd80 pop {r7, pc}
  53567. 8016348: 24002694 .word 0x24002694
  53568. 801634c: 24002698 .word 0x24002698
  53569. 8016350: 24002b70 .word 0x24002b70
  53570. 08016354 <xTaskPriorityDisinherit>:
  53571. /*-----------------------------------------------------------*/
  53572. #if ( configUSE_MUTEXES == 1 )
  53573. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  53574. {
  53575. 8016354: b580 push {r7, lr}
  53576. 8016356: b086 sub sp, #24
  53577. 8016358: af00 add r7, sp, #0
  53578. 801635a: 6078 str r0, [r7, #4]
  53579. TCB_t * const pxTCB = pxMutexHolder;
  53580. 801635c: 687b ldr r3, [r7, #4]
  53581. 801635e: 613b str r3, [r7, #16]
  53582. BaseType_t xReturn = pdFALSE;
  53583. 8016360: 2300 movs r3, #0
  53584. 8016362: 617b str r3, [r7, #20]
  53585. if( pxMutexHolder != NULL )
  53586. 8016364: 687b ldr r3, [r7, #4]
  53587. 8016366: 2b00 cmp r3, #0
  53588. 8016368: d058 beq.n 801641c <xTaskPriorityDisinherit+0xc8>
  53589. {
  53590. /* A task can only have an inherited priority if it holds the mutex.
  53591. If the mutex is held by a task then it cannot be given from an
  53592. interrupt, and if a mutex is given by the holding task then it must
  53593. be the running state task. */
  53594. configASSERT( pxTCB == pxCurrentTCB );
  53595. 801636a: 4b2f ldr r3, [pc, #188] @ (8016428 <xTaskPriorityDisinherit+0xd4>)
  53596. 801636c: 681b ldr r3, [r3, #0]
  53597. 801636e: 693a ldr r2, [r7, #16]
  53598. 8016370: 429a cmp r2, r3
  53599. 8016372: d00b beq.n 801638c <xTaskPriorityDisinherit+0x38>
  53600. __asm volatile
  53601. 8016374: f04f 0350 mov.w r3, #80 @ 0x50
  53602. 8016378: f383 8811 msr BASEPRI, r3
  53603. 801637c: f3bf 8f6f isb sy
  53604. 8016380: f3bf 8f4f dsb sy
  53605. 8016384: 60fb str r3, [r7, #12]
  53606. }
  53607. 8016386: bf00 nop
  53608. 8016388: bf00 nop
  53609. 801638a: e7fd b.n 8016388 <xTaskPriorityDisinherit+0x34>
  53610. configASSERT( pxTCB->uxMutexesHeld );
  53611. 801638c: 693b ldr r3, [r7, #16]
  53612. 801638e: 6d1b ldr r3, [r3, #80] @ 0x50
  53613. 8016390: 2b00 cmp r3, #0
  53614. 8016392: d10b bne.n 80163ac <xTaskPriorityDisinherit+0x58>
  53615. __asm volatile
  53616. 8016394: f04f 0350 mov.w r3, #80 @ 0x50
  53617. 8016398: f383 8811 msr BASEPRI, r3
  53618. 801639c: f3bf 8f6f isb sy
  53619. 80163a0: f3bf 8f4f dsb sy
  53620. 80163a4: 60bb str r3, [r7, #8]
  53621. }
  53622. 80163a6: bf00 nop
  53623. 80163a8: bf00 nop
  53624. 80163aa: e7fd b.n 80163a8 <xTaskPriorityDisinherit+0x54>
  53625. ( pxTCB->uxMutexesHeld )--;
  53626. 80163ac: 693b ldr r3, [r7, #16]
  53627. 80163ae: 6d1b ldr r3, [r3, #80] @ 0x50
  53628. 80163b0: 1e5a subs r2, r3, #1
  53629. 80163b2: 693b ldr r3, [r7, #16]
  53630. 80163b4: 651a str r2, [r3, #80] @ 0x50
  53631. /* Has the holder of the mutex inherited the priority of another
  53632. task? */
  53633. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  53634. 80163b6: 693b ldr r3, [r7, #16]
  53635. 80163b8: 6ada ldr r2, [r3, #44] @ 0x2c
  53636. 80163ba: 693b ldr r3, [r7, #16]
  53637. 80163bc: 6cdb ldr r3, [r3, #76] @ 0x4c
  53638. 80163be: 429a cmp r2, r3
  53639. 80163c0: d02c beq.n 801641c <xTaskPriorityDisinherit+0xc8>
  53640. {
  53641. /* Only disinherit if no other mutexes are held. */
  53642. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  53643. 80163c2: 693b ldr r3, [r7, #16]
  53644. 80163c4: 6d1b ldr r3, [r3, #80] @ 0x50
  53645. 80163c6: 2b00 cmp r3, #0
  53646. 80163c8: d128 bne.n 801641c <xTaskPriorityDisinherit+0xc8>
  53647. /* A task can only have an inherited priority if it holds
  53648. the mutex. If the mutex is held by a task then it cannot be
  53649. given from an interrupt, and if a mutex is given by the
  53650. holding task then it must be the running state task. Remove
  53651. the holding task from the ready/delayed list. */
  53652. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53653. 80163ca: 693b ldr r3, [r7, #16]
  53654. 80163cc: 3304 adds r3, #4
  53655. 80163ce: 4618 mov r0, r3
  53656. 80163d0: f7fd ff1c bl 801420c <uxListRemove>
  53657. }
  53658. /* Disinherit the priority before adding the task into the
  53659. new ready list. */
  53660. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  53661. pxTCB->uxPriority = pxTCB->uxBasePriority;
  53662. 80163d4: 693b ldr r3, [r7, #16]
  53663. 80163d6: 6cda ldr r2, [r3, #76] @ 0x4c
  53664. 80163d8: 693b ldr r3, [r7, #16]
  53665. 80163da: 62da str r2, [r3, #44] @ 0x2c
  53666. /* Reset the event list item value. It cannot be in use for
  53667. any other purpose if this task is running, and it must be
  53668. running to give back the mutex. */
  53669. 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. */
  53670. 80163dc: 693b ldr r3, [r7, #16]
  53671. 80163de: 6adb ldr r3, [r3, #44] @ 0x2c
  53672. 80163e0: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53673. 80163e4: 693b ldr r3, [r7, #16]
  53674. 80163e6: 619a str r2, [r3, #24]
  53675. prvAddTaskToReadyList( pxTCB );
  53676. 80163e8: 693b ldr r3, [r7, #16]
  53677. 80163ea: 6ada ldr r2, [r3, #44] @ 0x2c
  53678. 80163ec: 4b0f ldr r3, [pc, #60] @ (801642c <xTaskPriorityDisinherit+0xd8>)
  53679. 80163ee: 681b ldr r3, [r3, #0]
  53680. 80163f0: 429a cmp r2, r3
  53681. 80163f2: d903 bls.n 80163fc <xTaskPriorityDisinherit+0xa8>
  53682. 80163f4: 693b ldr r3, [r7, #16]
  53683. 80163f6: 6adb ldr r3, [r3, #44] @ 0x2c
  53684. 80163f8: 4a0c ldr r2, [pc, #48] @ (801642c <xTaskPriorityDisinherit+0xd8>)
  53685. 80163fa: 6013 str r3, [r2, #0]
  53686. 80163fc: 693b ldr r3, [r7, #16]
  53687. 80163fe: 6ada ldr r2, [r3, #44] @ 0x2c
  53688. 8016400: 4613 mov r3, r2
  53689. 8016402: 009b lsls r3, r3, #2
  53690. 8016404: 4413 add r3, r2
  53691. 8016406: 009b lsls r3, r3, #2
  53692. 8016408: 4a09 ldr r2, [pc, #36] @ (8016430 <xTaskPriorityDisinherit+0xdc>)
  53693. 801640a: 441a add r2, r3
  53694. 801640c: 693b ldr r3, [r7, #16]
  53695. 801640e: 3304 adds r3, #4
  53696. 8016410: 4619 mov r1, r3
  53697. 8016412: 4610 mov r0, r2
  53698. 8016414: f7fd fe9d bl 8014152 <vListInsertEnd>
  53699. in an order different to that in which they were taken.
  53700. If a context switch did not occur when the first mutex was
  53701. returned, even if a task was waiting on it, then a context
  53702. switch should occur when the last mutex is returned whether
  53703. a task is waiting on it or not. */
  53704. xReturn = pdTRUE;
  53705. 8016418: 2301 movs r3, #1
  53706. 801641a: 617b str r3, [r7, #20]
  53707. else
  53708. {
  53709. mtCOVERAGE_TEST_MARKER();
  53710. }
  53711. return xReturn;
  53712. 801641c: 697b ldr r3, [r7, #20]
  53713. }
  53714. 801641e: 4618 mov r0, r3
  53715. 8016420: 3718 adds r7, #24
  53716. 8016422: 46bd mov sp, r7
  53717. 8016424: bd80 pop {r7, pc}
  53718. 8016426: bf00 nop
  53719. 8016428: 24002694 .word 0x24002694
  53720. 801642c: 24002b70 .word 0x24002b70
  53721. 8016430: 24002698 .word 0x24002698
  53722. 08016434 <vTaskPriorityDisinheritAfterTimeout>:
  53723. /*-----------------------------------------------------------*/
  53724. #if ( configUSE_MUTEXES == 1 )
  53725. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  53726. {
  53727. 8016434: b580 push {r7, lr}
  53728. 8016436: b088 sub sp, #32
  53729. 8016438: af00 add r7, sp, #0
  53730. 801643a: 6078 str r0, [r7, #4]
  53731. 801643c: 6039 str r1, [r7, #0]
  53732. TCB_t * const pxTCB = pxMutexHolder;
  53733. 801643e: 687b ldr r3, [r7, #4]
  53734. 8016440: 61bb str r3, [r7, #24]
  53735. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  53736. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  53737. 8016442: 2301 movs r3, #1
  53738. 8016444: 617b str r3, [r7, #20]
  53739. if( pxMutexHolder != NULL )
  53740. 8016446: 687b ldr r3, [r7, #4]
  53741. 8016448: 2b00 cmp r3, #0
  53742. 801644a: d06c beq.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53743. {
  53744. /* If pxMutexHolder is not NULL then the holder must hold at least
  53745. one mutex. */
  53746. configASSERT( pxTCB->uxMutexesHeld );
  53747. 801644c: 69bb ldr r3, [r7, #24]
  53748. 801644e: 6d1b ldr r3, [r3, #80] @ 0x50
  53749. 8016450: 2b00 cmp r3, #0
  53750. 8016452: d10b bne.n 801646c <vTaskPriorityDisinheritAfterTimeout+0x38>
  53751. __asm volatile
  53752. 8016454: f04f 0350 mov.w r3, #80 @ 0x50
  53753. 8016458: f383 8811 msr BASEPRI, r3
  53754. 801645c: f3bf 8f6f isb sy
  53755. 8016460: f3bf 8f4f dsb sy
  53756. 8016464: 60fb str r3, [r7, #12]
  53757. }
  53758. 8016466: bf00 nop
  53759. 8016468: bf00 nop
  53760. 801646a: e7fd b.n 8016468 <vTaskPriorityDisinheritAfterTimeout+0x34>
  53761. /* Determine the priority to which the priority of the task that
  53762. holds the mutex should be set. This will be the greater of the
  53763. holding task's base priority and the priority of the highest
  53764. priority task that is waiting to obtain the mutex. */
  53765. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  53766. 801646c: 69bb ldr r3, [r7, #24]
  53767. 801646e: 6cdb ldr r3, [r3, #76] @ 0x4c
  53768. 8016470: 683a ldr r2, [r7, #0]
  53769. 8016472: 429a cmp r2, r3
  53770. 8016474: d902 bls.n 801647c <vTaskPriorityDisinheritAfterTimeout+0x48>
  53771. {
  53772. uxPriorityToUse = uxHighestPriorityWaitingTask;
  53773. 8016476: 683b ldr r3, [r7, #0]
  53774. 8016478: 61fb str r3, [r7, #28]
  53775. 801647a: e002 b.n 8016482 <vTaskPriorityDisinheritAfterTimeout+0x4e>
  53776. }
  53777. else
  53778. {
  53779. uxPriorityToUse = pxTCB->uxBasePriority;
  53780. 801647c: 69bb ldr r3, [r7, #24]
  53781. 801647e: 6cdb ldr r3, [r3, #76] @ 0x4c
  53782. 8016480: 61fb str r3, [r7, #28]
  53783. }
  53784. /* Does the priority need to change? */
  53785. if( pxTCB->uxPriority != uxPriorityToUse )
  53786. 8016482: 69bb ldr r3, [r7, #24]
  53787. 8016484: 6adb ldr r3, [r3, #44] @ 0x2c
  53788. 8016486: 69fa ldr r2, [r7, #28]
  53789. 8016488: 429a cmp r2, r3
  53790. 801648a: d04c beq.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53791. {
  53792. /* Only disinherit if no other mutexes are held. This is a
  53793. simplification in the priority inheritance implementation. If
  53794. the task that holds the mutex is also holding other mutexes then
  53795. the other mutexes may have caused the priority inheritance. */
  53796. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  53797. 801648c: 69bb ldr r3, [r7, #24]
  53798. 801648e: 6d1b ldr r3, [r3, #80] @ 0x50
  53799. 8016490: 697a ldr r2, [r7, #20]
  53800. 8016492: 429a cmp r2, r3
  53801. 8016494: d147 bne.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53802. {
  53803. /* If a task has timed out because it already holds the
  53804. mutex it was trying to obtain then it cannot of inherited
  53805. its own priority. */
  53806. configASSERT( pxTCB != pxCurrentTCB );
  53807. 8016496: 4b26 ldr r3, [pc, #152] @ (8016530 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  53808. 8016498: 681b ldr r3, [r3, #0]
  53809. 801649a: 69ba ldr r2, [r7, #24]
  53810. 801649c: 429a cmp r2, r3
  53811. 801649e: d10b bne.n 80164b8 <vTaskPriorityDisinheritAfterTimeout+0x84>
  53812. __asm volatile
  53813. 80164a0: f04f 0350 mov.w r3, #80 @ 0x50
  53814. 80164a4: f383 8811 msr BASEPRI, r3
  53815. 80164a8: f3bf 8f6f isb sy
  53816. 80164ac: f3bf 8f4f dsb sy
  53817. 80164b0: 60bb str r3, [r7, #8]
  53818. }
  53819. 80164b2: bf00 nop
  53820. 80164b4: bf00 nop
  53821. 80164b6: e7fd b.n 80164b4 <vTaskPriorityDisinheritAfterTimeout+0x80>
  53822. /* Disinherit the priority, remembering the previous
  53823. priority to facilitate determining the subject task's
  53824. state. */
  53825. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  53826. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  53827. 80164b8: 69bb ldr r3, [r7, #24]
  53828. 80164ba: 6adb ldr r3, [r3, #44] @ 0x2c
  53829. 80164bc: 613b str r3, [r7, #16]
  53830. pxTCB->uxPriority = uxPriorityToUse;
  53831. 80164be: 69bb ldr r3, [r7, #24]
  53832. 80164c0: 69fa ldr r2, [r7, #28]
  53833. 80164c2: 62da str r2, [r3, #44] @ 0x2c
  53834. /* Only reset the event list item value if the value is not
  53835. being used for anything else. */
  53836. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  53837. 80164c4: 69bb ldr r3, [r7, #24]
  53838. 80164c6: 699b ldr r3, [r3, #24]
  53839. 80164c8: 2b00 cmp r3, #0
  53840. 80164ca: db04 blt.n 80164d6 <vTaskPriorityDisinheritAfterTimeout+0xa2>
  53841. {
  53842. 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. */
  53843. 80164cc: 69fb ldr r3, [r7, #28]
  53844. 80164ce: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53845. 80164d2: 69bb ldr r3, [r7, #24]
  53846. 80164d4: 619a str r2, [r3, #24]
  53847. then the task that holds the mutex could be in either the
  53848. Ready, Blocked or Suspended states. Only remove the task
  53849. from its current state list if it is in the Ready state as
  53850. the task's priority is going to change and there is one
  53851. Ready list per priority. */
  53852. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  53853. 80164d6: 69bb ldr r3, [r7, #24]
  53854. 80164d8: 6959 ldr r1, [r3, #20]
  53855. 80164da: 693a ldr r2, [r7, #16]
  53856. 80164dc: 4613 mov r3, r2
  53857. 80164de: 009b lsls r3, r3, #2
  53858. 80164e0: 4413 add r3, r2
  53859. 80164e2: 009b lsls r3, r3, #2
  53860. 80164e4: 4a13 ldr r2, [pc, #76] @ (8016534 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53861. 80164e6: 4413 add r3, r2
  53862. 80164e8: 4299 cmp r1, r3
  53863. 80164ea: d11c bne.n 8016526 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53864. {
  53865. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53866. 80164ec: 69bb ldr r3, [r7, #24]
  53867. 80164ee: 3304 adds r3, #4
  53868. 80164f0: 4618 mov r0, r3
  53869. 80164f2: f7fd fe8b bl 801420c <uxListRemove>
  53870. else
  53871. {
  53872. mtCOVERAGE_TEST_MARKER();
  53873. }
  53874. prvAddTaskToReadyList( pxTCB );
  53875. 80164f6: 69bb ldr r3, [r7, #24]
  53876. 80164f8: 6ada ldr r2, [r3, #44] @ 0x2c
  53877. 80164fa: 4b0f ldr r3, [pc, #60] @ (8016538 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53878. 80164fc: 681b ldr r3, [r3, #0]
  53879. 80164fe: 429a cmp r2, r3
  53880. 8016500: d903 bls.n 801650a <vTaskPriorityDisinheritAfterTimeout+0xd6>
  53881. 8016502: 69bb ldr r3, [r7, #24]
  53882. 8016504: 6adb ldr r3, [r3, #44] @ 0x2c
  53883. 8016506: 4a0c ldr r2, [pc, #48] @ (8016538 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53884. 8016508: 6013 str r3, [r2, #0]
  53885. 801650a: 69bb ldr r3, [r7, #24]
  53886. 801650c: 6ada ldr r2, [r3, #44] @ 0x2c
  53887. 801650e: 4613 mov r3, r2
  53888. 8016510: 009b lsls r3, r3, #2
  53889. 8016512: 4413 add r3, r2
  53890. 8016514: 009b lsls r3, r3, #2
  53891. 8016516: 4a07 ldr r2, [pc, #28] @ (8016534 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53892. 8016518: 441a add r2, r3
  53893. 801651a: 69bb ldr r3, [r7, #24]
  53894. 801651c: 3304 adds r3, #4
  53895. 801651e: 4619 mov r1, r3
  53896. 8016520: 4610 mov r0, r2
  53897. 8016522: f7fd fe16 bl 8014152 <vListInsertEnd>
  53898. }
  53899. else
  53900. {
  53901. mtCOVERAGE_TEST_MARKER();
  53902. }
  53903. }
  53904. 8016526: bf00 nop
  53905. 8016528: 3720 adds r7, #32
  53906. 801652a: 46bd mov sp, r7
  53907. 801652c: bd80 pop {r7, pc}
  53908. 801652e: bf00 nop
  53909. 8016530: 24002694 .word 0x24002694
  53910. 8016534: 24002698 .word 0x24002698
  53911. 8016538: 24002b70 .word 0x24002b70
  53912. 0801653c <pvTaskIncrementMutexHeldCount>:
  53913. /*-----------------------------------------------------------*/
  53914. #if ( configUSE_MUTEXES == 1 )
  53915. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  53916. {
  53917. 801653c: b480 push {r7}
  53918. 801653e: af00 add r7, sp, #0
  53919. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  53920. then pxCurrentTCB will be NULL. */
  53921. if( pxCurrentTCB != NULL )
  53922. 8016540: 4b07 ldr r3, [pc, #28] @ (8016560 <pvTaskIncrementMutexHeldCount+0x24>)
  53923. 8016542: 681b ldr r3, [r3, #0]
  53924. 8016544: 2b00 cmp r3, #0
  53925. 8016546: d004 beq.n 8016552 <pvTaskIncrementMutexHeldCount+0x16>
  53926. {
  53927. ( pxCurrentTCB->uxMutexesHeld )++;
  53928. 8016548: 4b05 ldr r3, [pc, #20] @ (8016560 <pvTaskIncrementMutexHeldCount+0x24>)
  53929. 801654a: 681b ldr r3, [r3, #0]
  53930. 801654c: 6d1a ldr r2, [r3, #80] @ 0x50
  53931. 801654e: 3201 adds r2, #1
  53932. 8016550: 651a str r2, [r3, #80] @ 0x50
  53933. }
  53934. return pxCurrentTCB;
  53935. 8016552: 4b03 ldr r3, [pc, #12] @ (8016560 <pvTaskIncrementMutexHeldCount+0x24>)
  53936. 8016554: 681b ldr r3, [r3, #0]
  53937. }
  53938. 8016556: 4618 mov r0, r3
  53939. 8016558: 46bd mov sp, r7
  53940. 801655a: f85d 7b04 ldr.w r7, [sp], #4
  53941. 801655e: 4770 bx lr
  53942. 8016560: 24002694 .word 0x24002694
  53943. 08016564 <xTaskNotifyWait>:
  53944. /*-----------------------------------------------------------*/
  53945. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53946. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  53947. {
  53948. 8016564: b580 push {r7, lr}
  53949. 8016566: b086 sub sp, #24
  53950. 8016568: af00 add r7, sp, #0
  53951. 801656a: 60f8 str r0, [r7, #12]
  53952. 801656c: 60b9 str r1, [r7, #8]
  53953. 801656e: 607a str r2, [r7, #4]
  53954. 8016570: 603b str r3, [r7, #0]
  53955. BaseType_t xReturn;
  53956. taskENTER_CRITICAL();
  53957. 8016572: f000 fff1 bl 8017558 <vPortEnterCritical>
  53958. {
  53959. /* Only block if a notification is not already pending. */
  53960. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  53961. 8016576: 4b29 ldr r3, [pc, #164] @ (801661c <xTaskNotifyWait+0xb8>)
  53962. 8016578: 681b ldr r3, [r3, #0]
  53963. 801657a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53964. 801657e: b2db uxtb r3, r3
  53965. 8016580: 2b02 cmp r3, #2
  53966. 8016582: d01c beq.n 80165be <xTaskNotifyWait+0x5a>
  53967. {
  53968. /* Clear bits in the task's notification value as bits may get
  53969. set by the notifying task or interrupt. This can be used to
  53970. clear the value to zero. */
  53971. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  53972. 8016584: 4b25 ldr r3, [pc, #148] @ (801661c <xTaskNotifyWait+0xb8>)
  53973. 8016586: 681b ldr r3, [r3, #0]
  53974. 8016588: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  53975. 801658c: 68fa ldr r2, [r7, #12]
  53976. 801658e: 43d2 mvns r2, r2
  53977. 8016590: 400a ands r2, r1
  53978. 8016592: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53979. /* Mark this task as waiting for a notification. */
  53980. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  53981. 8016596: 4b21 ldr r3, [pc, #132] @ (801661c <xTaskNotifyWait+0xb8>)
  53982. 8016598: 681b ldr r3, [r3, #0]
  53983. 801659a: 2201 movs r2, #1
  53984. 801659c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53985. if( xTicksToWait > ( TickType_t ) 0 )
  53986. 80165a0: 683b ldr r3, [r7, #0]
  53987. 80165a2: 2b00 cmp r3, #0
  53988. 80165a4: d00b beq.n 80165be <xTaskNotifyWait+0x5a>
  53989. {
  53990. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53991. 80165a6: 2101 movs r1, #1
  53992. 80165a8: 6838 ldr r0, [r7, #0]
  53993. 80165aa: f000 fa09 bl 80169c0 <prvAddCurrentTaskToDelayedList>
  53994. /* All ports are written to allow a yield in a critical
  53995. section (some will yield immediately, others wait until the
  53996. critical section exits) - but it is not something that
  53997. application code should ever do. */
  53998. portYIELD_WITHIN_API();
  53999. 80165ae: 4b1c ldr r3, [pc, #112] @ (8016620 <xTaskNotifyWait+0xbc>)
  54000. 80165b0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54001. 80165b4: 601a str r2, [r3, #0]
  54002. 80165b6: f3bf 8f4f dsb sy
  54003. 80165ba: f3bf 8f6f isb sy
  54004. else
  54005. {
  54006. mtCOVERAGE_TEST_MARKER();
  54007. }
  54008. }
  54009. taskEXIT_CRITICAL();
  54010. 80165be: f000 fffd bl 80175bc <vPortExitCritical>
  54011. taskENTER_CRITICAL();
  54012. 80165c2: f000 ffc9 bl 8017558 <vPortEnterCritical>
  54013. {
  54014. traceTASK_NOTIFY_WAIT();
  54015. if( pulNotificationValue != NULL )
  54016. 80165c6: 687b ldr r3, [r7, #4]
  54017. 80165c8: 2b00 cmp r3, #0
  54018. 80165ca: d005 beq.n 80165d8 <xTaskNotifyWait+0x74>
  54019. {
  54020. /* Output the current notification value, which may or may not
  54021. have changed. */
  54022. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  54023. 80165cc: 4b13 ldr r3, [pc, #76] @ (801661c <xTaskNotifyWait+0xb8>)
  54024. 80165ce: 681b ldr r3, [r3, #0]
  54025. 80165d0: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54026. 80165d4: 687b ldr r3, [r7, #4]
  54027. 80165d6: 601a str r2, [r3, #0]
  54028. /* If ucNotifyValue is set then either the task never entered the
  54029. blocked state (because a notification was already pending) or the
  54030. task unblocked because of a notification. Otherwise the task
  54031. unblocked because of a timeout. */
  54032. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54033. 80165d8: 4b10 ldr r3, [pc, #64] @ (801661c <xTaskNotifyWait+0xb8>)
  54034. 80165da: 681b ldr r3, [r3, #0]
  54035. 80165dc: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54036. 80165e0: b2db uxtb r3, r3
  54037. 80165e2: 2b02 cmp r3, #2
  54038. 80165e4: d002 beq.n 80165ec <xTaskNotifyWait+0x88>
  54039. {
  54040. /* A notification was not received. */
  54041. xReturn = pdFALSE;
  54042. 80165e6: 2300 movs r3, #0
  54043. 80165e8: 617b str r3, [r7, #20]
  54044. 80165ea: e00a b.n 8016602 <xTaskNotifyWait+0x9e>
  54045. }
  54046. else
  54047. {
  54048. /* A notification was already pending or a notification was
  54049. received while the task was waiting. */
  54050. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  54051. 80165ec: 4b0b ldr r3, [pc, #44] @ (801661c <xTaskNotifyWait+0xb8>)
  54052. 80165ee: 681b ldr r3, [r3, #0]
  54053. 80165f0: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54054. 80165f4: 68ba ldr r2, [r7, #8]
  54055. 80165f6: 43d2 mvns r2, r2
  54056. 80165f8: 400a ands r2, r1
  54057. 80165fa: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54058. xReturn = pdTRUE;
  54059. 80165fe: 2301 movs r3, #1
  54060. 8016600: 617b str r3, [r7, #20]
  54061. }
  54062. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54063. 8016602: 4b06 ldr r3, [pc, #24] @ (801661c <xTaskNotifyWait+0xb8>)
  54064. 8016604: 681b ldr r3, [r3, #0]
  54065. 8016606: 2200 movs r2, #0
  54066. 8016608: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54067. }
  54068. taskEXIT_CRITICAL();
  54069. 801660c: f000 ffd6 bl 80175bc <vPortExitCritical>
  54070. return xReturn;
  54071. 8016610: 697b ldr r3, [r7, #20]
  54072. }
  54073. 8016612: 4618 mov r0, r3
  54074. 8016614: 3718 adds r7, #24
  54075. 8016616: 46bd mov sp, r7
  54076. 8016618: bd80 pop {r7, pc}
  54077. 801661a: bf00 nop
  54078. 801661c: 24002694 .word 0x24002694
  54079. 8016620: e000ed04 .word 0xe000ed04
  54080. 08016624 <xTaskGenericNotify>:
  54081. /*-----------------------------------------------------------*/
  54082. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54083. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  54084. {
  54085. 8016624: b580 push {r7, lr}
  54086. 8016626: b08a sub sp, #40 @ 0x28
  54087. 8016628: af00 add r7, sp, #0
  54088. 801662a: 60f8 str r0, [r7, #12]
  54089. 801662c: 60b9 str r1, [r7, #8]
  54090. 801662e: 603b str r3, [r7, #0]
  54091. 8016630: 4613 mov r3, r2
  54092. 8016632: 71fb strb r3, [r7, #7]
  54093. TCB_t * pxTCB;
  54094. BaseType_t xReturn = pdPASS;
  54095. 8016634: 2301 movs r3, #1
  54096. 8016636: 627b str r3, [r7, #36] @ 0x24
  54097. uint8_t ucOriginalNotifyState;
  54098. configASSERT( xTaskToNotify );
  54099. 8016638: 68fb ldr r3, [r7, #12]
  54100. 801663a: 2b00 cmp r3, #0
  54101. 801663c: d10b bne.n 8016656 <xTaskGenericNotify+0x32>
  54102. __asm volatile
  54103. 801663e: f04f 0350 mov.w r3, #80 @ 0x50
  54104. 8016642: f383 8811 msr BASEPRI, r3
  54105. 8016646: f3bf 8f6f isb sy
  54106. 801664a: f3bf 8f4f dsb sy
  54107. 801664e: 61bb str r3, [r7, #24]
  54108. }
  54109. 8016650: bf00 nop
  54110. 8016652: bf00 nop
  54111. 8016654: e7fd b.n 8016652 <xTaskGenericNotify+0x2e>
  54112. pxTCB = xTaskToNotify;
  54113. 8016656: 68fb ldr r3, [r7, #12]
  54114. 8016658: 623b str r3, [r7, #32]
  54115. taskENTER_CRITICAL();
  54116. 801665a: f000 ff7d bl 8017558 <vPortEnterCritical>
  54117. {
  54118. if( pulPreviousNotificationValue != NULL )
  54119. 801665e: 683b ldr r3, [r7, #0]
  54120. 8016660: 2b00 cmp r3, #0
  54121. 8016662: d004 beq.n 801666e <xTaskGenericNotify+0x4a>
  54122. {
  54123. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  54124. 8016664: 6a3b ldr r3, [r7, #32]
  54125. 8016666: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54126. 801666a: 683b ldr r3, [r7, #0]
  54127. 801666c: 601a str r2, [r3, #0]
  54128. }
  54129. ucOriginalNotifyState = pxTCB->ucNotifyState;
  54130. 801666e: 6a3b ldr r3, [r7, #32]
  54131. 8016670: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54132. 8016674: 77fb strb r3, [r7, #31]
  54133. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  54134. 8016676: 6a3b ldr r3, [r7, #32]
  54135. 8016678: 2202 movs r2, #2
  54136. 801667a: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54137. switch( eAction )
  54138. 801667e: 79fb ldrb r3, [r7, #7]
  54139. 8016680: 2b04 cmp r3, #4
  54140. 8016682: d82e bhi.n 80166e2 <xTaskGenericNotify+0xbe>
  54141. 8016684: a201 add r2, pc, #4 @ (adr r2, 801668c <xTaskGenericNotify+0x68>)
  54142. 8016686: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  54143. 801668a: bf00 nop
  54144. 801668c: 08016707 .word 0x08016707
  54145. 8016690: 080166a1 .word 0x080166a1
  54146. 8016694: 080166b3 .word 0x080166b3
  54147. 8016698: 080166c3 .word 0x080166c3
  54148. 801669c: 080166cd .word 0x080166cd
  54149. {
  54150. case eSetBits :
  54151. pxTCB->ulNotifiedValue |= ulValue;
  54152. 80166a0: 6a3b ldr r3, [r7, #32]
  54153. 80166a2: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54154. 80166a6: 68bb ldr r3, [r7, #8]
  54155. 80166a8: 431a orrs r2, r3
  54156. 80166aa: 6a3b ldr r3, [r7, #32]
  54157. 80166ac: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54158. break;
  54159. 80166b0: e02c b.n 801670c <xTaskGenericNotify+0xe8>
  54160. case eIncrement :
  54161. ( pxTCB->ulNotifiedValue )++;
  54162. 80166b2: 6a3b ldr r3, [r7, #32]
  54163. 80166b4: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54164. 80166b8: 1c5a adds r2, r3, #1
  54165. 80166ba: 6a3b ldr r3, [r7, #32]
  54166. 80166bc: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54167. break;
  54168. 80166c0: e024 b.n 801670c <xTaskGenericNotify+0xe8>
  54169. case eSetValueWithOverwrite :
  54170. pxTCB->ulNotifiedValue = ulValue;
  54171. 80166c2: 6a3b ldr r3, [r7, #32]
  54172. 80166c4: 68ba ldr r2, [r7, #8]
  54173. 80166c6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54174. break;
  54175. 80166ca: e01f b.n 801670c <xTaskGenericNotify+0xe8>
  54176. case eSetValueWithoutOverwrite :
  54177. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  54178. 80166cc: 7ffb ldrb r3, [r7, #31]
  54179. 80166ce: 2b02 cmp r3, #2
  54180. 80166d0: d004 beq.n 80166dc <xTaskGenericNotify+0xb8>
  54181. {
  54182. pxTCB->ulNotifiedValue = ulValue;
  54183. 80166d2: 6a3b ldr r3, [r7, #32]
  54184. 80166d4: 68ba ldr r2, [r7, #8]
  54185. 80166d6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54186. else
  54187. {
  54188. /* The value could not be written to the task. */
  54189. xReturn = pdFAIL;
  54190. }
  54191. break;
  54192. 80166da: e017 b.n 801670c <xTaskGenericNotify+0xe8>
  54193. xReturn = pdFAIL;
  54194. 80166dc: 2300 movs r3, #0
  54195. 80166de: 627b str r3, [r7, #36] @ 0x24
  54196. break;
  54197. 80166e0: e014 b.n 801670c <xTaskGenericNotify+0xe8>
  54198. default:
  54199. /* Should not get here if all enums are handled.
  54200. Artificially force an assert by testing a value the
  54201. compiler can't assume is const. */
  54202. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  54203. 80166e2: 6a3b ldr r3, [r7, #32]
  54204. 80166e4: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54205. 80166e8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54206. 80166ec: d00d beq.n 801670a <xTaskGenericNotify+0xe6>
  54207. __asm volatile
  54208. 80166ee: f04f 0350 mov.w r3, #80 @ 0x50
  54209. 80166f2: f383 8811 msr BASEPRI, r3
  54210. 80166f6: f3bf 8f6f isb sy
  54211. 80166fa: f3bf 8f4f dsb sy
  54212. 80166fe: 617b str r3, [r7, #20]
  54213. }
  54214. 8016700: bf00 nop
  54215. 8016702: bf00 nop
  54216. 8016704: e7fd b.n 8016702 <xTaskGenericNotify+0xde>
  54217. break;
  54218. 8016706: bf00 nop
  54219. 8016708: e000 b.n 801670c <xTaskGenericNotify+0xe8>
  54220. break;
  54221. 801670a: bf00 nop
  54222. traceTASK_NOTIFY();
  54223. /* If the task is in the blocked state specifically to wait for a
  54224. notification then unblock it now. */
  54225. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  54226. 801670c: 7ffb ldrb r3, [r7, #31]
  54227. 801670e: 2b01 cmp r3, #1
  54228. 8016710: d13b bne.n 801678a <xTaskGenericNotify+0x166>
  54229. {
  54230. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54231. 8016712: 6a3b ldr r3, [r7, #32]
  54232. 8016714: 3304 adds r3, #4
  54233. 8016716: 4618 mov r0, r3
  54234. 8016718: f7fd fd78 bl 801420c <uxListRemove>
  54235. prvAddTaskToReadyList( pxTCB );
  54236. 801671c: 6a3b ldr r3, [r7, #32]
  54237. 801671e: 6ada ldr r2, [r3, #44] @ 0x2c
  54238. 8016720: 4b1d ldr r3, [pc, #116] @ (8016798 <xTaskGenericNotify+0x174>)
  54239. 8016722: 681b ldr r3, [r3, #0]
  54240. 8016724: 429a cmp r2, r3
  54241. 8016726: d903 bls.n 8016730 <xTaskGenericNotify+0x10c>
  54242. 8016728: 6a3b ldr r3, [r7, #32]
  54243. 801672a: 6adb ldr r3, [r3, #44] @ 0x2c
  54244. 801672c: 4a1a ldr r2, [pc, #104] @ (8016798 <xTaskGenericNotify+0x174>)
  54245. 801672e: 6013 str r3, [r2, #0]
  54246. 8016730: 6a3b ldr r3, [r7, #32]
  54247. 8016732: 6ada ldr r2, [r3, #44] @ 0x2c
  54248. 8016734: 4613 mov r3, r2
  54249. 8016736: 009b lsls r3, r3, #2
  54250. 8016738: 4413 add r3, r2
  54251. 801673a: 009b lsls r3, r3, #2
  54252. 801673c: 4a17 ldr r2, [pc, #92] @ (801679c <xTaskGenericNotify+0x178>)
  54253. 801673e: 441a add r2, r3
  54254. 8016740: 6a3b ldr r3, [r7, #32]
  54255. 8016742: 3304 adds r3, #4
  54256. 8016744: 4619 mov r1, r3
  54257. 8016746: 4610 mov r0, r2
  54258. 8016748: f7fd fd03 bl 8014152 <vListInsertEnd>
  54259. /* The task should not have been on an event list. */
  54260. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  54261. 801674c: 6a3b ldr r3, [r7, #32]
  54262. 801674e: 6a9b ldr r3, [r3, #40] @ 0x28
  54263. 8016750: 2b00 cmp r3, #0
  54264. 8016752: d00b beq.n 801676c <xTaskGenericNotify+0x148>
  54265. __asm volatile
  54266. 8016754: f04f 0350 mov.w r3, #80 @ 0x50
  54267. 8016758: f383 8811 msr BASEPRI, r3
  54268. 801675c: f3bf 8f6f isb sy
  54269. 8016760: f3bf 8f4f dsb sy
  54270. 8016764: 613b str r3, [r7, #16]
  54271. }
  54272. 8016766: bf00 nop
  54273. 8016768: bf00 nop
  54274. 801676a: e7fd b.n 8016768 <xTaskGenericNotify+0x144>
  54275. earliest possible time. */
  54276. prvResetNextTaskUnblockTime();
  54277. }
  54278. #endif
  54279. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  54280. 801676c: 6a3b ldr r3, [r7, #32]
  54281. 801676e: 6ada ldr r2, [r3, #44] @ 0x2c
  54282. 8016770: 4b0b ldr r3, [pc, #44] @ (80167a0 <xTaskGenericNotify+0x17c>)
  54283. 8016772: 681b ldr r3, [r3, #0]
  54284. 8016774: 6adb ldr r3, [r3, #44] @ 0x2c
  54285. 8016776: 429a cmp r2, r3
  54286. 8016778: d907 bls.n 801678a <xTaskGenericNotify+0x166>
  54287. {
  54288. /* The notified task has a priority above the currently
  54289. executing task so a yield is required. */
  54290. taskYIELD_IF_USING_PREEMPTION();
  54291. 801677a: 4b0a ldr r3, [pc, #40] @ (80167a4 <xTaskGenericNotify+0x180>)
  54292. 801677c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54293. 8016780: 601a str r2, [r3, #0]
  54294. 8016782: f3bf 8f4f dsb sy
  54295. 8016786: f3bf 8f6f isb sy
  54296. else
  54297. {
  54298. mtCOVERAGE_TEST_MARKER();
  54299. }
  54300. }
  54301. taskEXIT_CRITICAL();
  54302. 801678a: f000 ff17 bl 80175bc <vPortExitCritical>
  54303. return xReturn;
  54304. 801678e: 6a7b ldr r3, [r7, #36] @ 0x24
  54305. }
  54306. 8016790: 4618 mov r0, r3
  54307. 8016792: 3728 adds r7, #40 @ 0x28
  54308. 8016794: 46bd mov sp, r7
  54309. 8016796: bd80 pop {r7, pc}
  54310. 8016798: 24002b70 .word 0x24002b70
  54311. 801679c: 24002698 .word 0x24002698
  54312. 80167a0: 24002694 .word 0x24002694
  54313. 80167a4: e000ed04 .word 0xe000ed04
  54314. 080167a8 <xTaskGenericNotifyFromISR>:
  54315. /*-----------------------------------------------------------*/
  54316. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54317. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  54318. {
  54319. 80167a8: b580 push {r7, lr}
  54320. 80167aa: b08e sub sp, #56 @ 0x38
  54321. 80167ac: af00 add r7, sp, #0
  54322. 80167ae: 60f8 str r0, [r7, #12]
  54323. 80167b0: 60b9 str r1, [r7, #8]
  54324. 80167b2: 603b str r3, [r7, #0]
  54325. 80167b4: 4613 mov r3, r2
  54326. 80167b6: 71fb strb r3, [r7, #7]
  54327. TCB_t * pxTCB;
  54328. uint8_t ucOriginalNotifyState;
  54329. BaseType_t xReturn = pdPASS;
  54330. 80167b8: 2301 movs r3, #1
  54331. 80167ba: 637b str r3, [r7, #52] @ 0x34
  54332. UBaseType_t uxSavedInterruptStatus;
  54333. configASSERT( xTaskToNotify );
  54334. 80167bc: 68fb ldr r3, [r7, #12]
  54335. 80167be: 2b00 cmp r3, #0
  54336. 80167c0: d10b bne.n 80167da <xTaskGenericNotifyFromISR+0x32>
  54337. __asm volatile
  54338. 80167c2: f04f 0350 mov.w r3, #80 @ 0x50
  54339. 80167c6: f383 8811 msr BASEPRI, r3
  54340. 80167ca: f3bf 8f6f isb sy
  54341. 80167ce: f3bf 8f4f dsb sy
  54342. 80167d2: 627b str r3, [r7, #36] @ 0x24
  54343. }
  54344. 80167d4: bf00 nop
  54345. 80167d6: bf00 nop
  54346. 80167d8: e7fd b.n 80167d6 <xTaskGenericNotifyFromISR+0x2e>
  54347. below the maximum system call interrupt priority. FreeRTOS maintains a
  54348. separate interrupt safe API to ensure interrupt entry is as fast and as
  54349. simple as possible. More information (albeit Cortex-M specific) is
  54350. provided on the following link:
  54351. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  54352. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  54353. 80167da: f000 ff9d bl 8017718 <vPortValidateInterruptPriority>
  54354. pxTCB = xTaskToNotify;
  54355. 80167de: 68fb ldr r3, [r7, #12]
  54356. 80167e0: 633b str r3, [r7, #48] @ 0x30
  54357. __asm volatile
  54358. 80167e2: f3ef 8211 mrs r2, BASEPRI
  54359. 80167e6: f04f 0350 mov.w r3, #80 @ 0x50
  54360. 80167ea: f383 8811 msr BASEPRI, r3
  54361. 80167ee: f3bf 8f6f isb sy
  54362. 80167f2: f3bf 8f4f dsb sy
  54363. 80167f6: 623a str r2, [r7, #32]
  54364. 80167f8: 61fb str r3, [r7, #28]
  54365. return ulOriginalBASEPRI;
  54366. 80167fa: 6a3b ldr r3, [r7, #32]
  54367. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  54368. 80167fc: 62fb str r3, [r7, #44] @ 0x2c
  54369. {
  54370. if( pulPreviousNotificationValue != NULL )
  54371. 80167fe: 683b ldr r3, [r7, #0]
  54372. 8016800: 2b00 cmp r3, #0
  54373. 8016802: d004 beq.n 801680e <xTaskGenericNotifyFromISR+0x66>
  54374. {
  54375. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  54376. 8016804: 6b3b ldr r3, [r7, #48] @ 0x30
  54377. 8016806: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54378. 801680a: 683b ldr r3, [r7, #0]
  54379. 801680c: 601a str r2, [r3, #0]
  54380. }
  54381. ucOriginalNotifyState = pxTCB->ucNotifyState;
  54382. 801680e: 6b3b ldr r3, [r7, #48] @ 0x30
  54383. 8016810: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54384. 8016814: f887 302b strb.w r3, [r7, #43] @ 0x2b
  54385. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  54386. 8016818: 6b3b ldr r3, [r7, #48] @ 0x30
  54387. 801681a: 2202 movs r2, #2
  54388. 801681c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54389. switch( eAction )
  54390. 8016820: 79fb ldrb r3, [r7, #7]
  54391. 8016822: 2b04 cmp r3, #4
  54392. 8016824: d82e bhi.n 8016884 <xTaskGenericNotifyFromISR+0xdc>
  54393. 8016826: a201 add r2, pc, #4 @ (adr r2, 801682c <xTaskGenericNotifyFromISR+0x84>)
  54394. 8016828: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  54395. 801682c: 080168a9 .word 0x080168a9
  54396. 8016830: 08016841 .word 0x08016841
  54397. 8016834: 08016853 .word 0x08016853
  54398. 8016838: 08016863 .word 0x08016863
  54399. 801683c: 0801686d .word 0x0801686d
  54400. {
  54401. case eSetBits :
  54402. pxTCB->ulNotifiedValue |= ulValue;
  54403. 8016840: 6b3b ldr r3, [r7, #48] @ 0x30
  54404. 8016842: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54405. 8016846: 68bb ldr r3, [r7, #8]
  54406. 8016848: 431a orrs r2, r3
  54407. 801684a: 6b3b ldr r3, [r7, #48] @ 0x30
  54408. 801684c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54409. break;
  54410. 8016850: e02d b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54411. case eIncrement :
  54412. ( pxTCB->ulNotifiedValue )++;
  54413. 8016852: 6b3b ldr r3, [r7, #48] @ 0x30
  54414. 8016854: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54415. 8016858: 1c5a adds r2, r3, #1
  54416. 801685a: 6b3b ldr r3, [r7, #48] @ 0x30
  54417. 801685c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54418. break;
  54419. 8016860: e025 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54420. case eSetValueWithOverwrite :
  54421. pxTCB->ulNotifiedValue = ulValue;
  54422. 8016862: 6b3b ldr r3, [r7, #48] @ 0x30
  54423. 8016864: 68ba ldr r2, [r7, #8]
  54424. 8016866: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54425. break;
  54426. 801686a: e020 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54427. case eSetValueWithoutOverwrite :
  54428. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  54429. 801686c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  54430. 8016870: 2b02 cmp r3, #2
  54431. 8016872: d004 beq.n 801687e <xTaskGenericNotifyFromISR+0xd6>
  54432. {
  54433. pxTCB->ulNotifiedValue = ulValue;
  54434. 8016874: 6b3b ldr r3, [r7, #48] @ 0x30
  54435. 8016876: 68ba ldr r2, [r7, #8]
  54436. 8016878: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54437. else
  54438. {
  54439. /* The value could not be written to the task. */
  54440. xReturn = pdFAIL;
  54441. }
  54442. break;
  54443. 801687c: e017 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54444. xReturn = pdFAIL;
  54445. 801687e: 2300 movs r3, #0
  54446. 8016880: 637b str r3, [r7, #52] @ 0x34
  54447. break;
  54448. 8016882: e014 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54449. default:
  54450. /* Should not get here if all enums are handled.
  54451. Artificially force an assert by testing a value the
  54452. compiler can't assume is const. */
  54453. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  54454. 8016884: 6b3b ldr r3, [r7, #48] @ 0x30
  54455. 8016886: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  54456. 801688a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54457. 801688e: d00d beq.n 80168ac <xTaskGenericNotifyFromISR+0x104>
  54458. __asm volatile
  54459. 8016890: f04f 0350 mov.w r3, #80 @ 0x50
  54460. 8016894: f383 8811 msr BASEPRI, r3
  54461. 8016898: f3bf 8f6f isb sy
  54462. 801689c: f3bf 8f4f dsb sy
  54463. 80168a0: 61bb str r3, [r7, #24]
  54464. }
  54465. 80168a2: bf00 nop
  54466. 80168a4: bf00 nop
  54467. 80168a6: e7fd b.n 80168a4 <xTaskGenericNotifyFromISR+0xfc>
  54468. break;
  54469. 80168a8: bf00 nop
  54470. 80168aa: e000 b.n 80168ae <xTaskGenericNotifyFromISR+0x106>
  54471. break;
  54472. 80168ac: bf00 nop
  54473. traceTASK_NOTIFY_FROM_ISR();
  54474. /* If the task is in the blocked state specifically to wait for a
  54475. notification then unblock it now. */
  54476. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  54477. 80168ae: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  54478. 80168b2: 2b01 cmp r3, #1
  54479. 80168b4: d147 bne.n 8016946 <xTaskGenericNotifyFromISR+0x19e>
  54480. {
  54481. /* The task should not have been on an event list. */
  54482. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  54483. 80168b6: 6b3b ldr r3, [r7, #48] @ 0x30
  54484. 80168b8: 6a9b ldr r3, [r3, #40] @ 0x28
  54485. 80168ba: 2b00 cmp r3, #0
  54486. 80168bc: d00b beq.n 80168d6 <xTaskGenericNotifyFromISR+0x12e>
  54487. __asm volatile
  54488. 80168be: f04f 0350 mov.w r3, #80 @ 0x50
  54489. 80168c2: f383 8811 msr BASEPRI, r3
  54490. 80168c6: f3bf 8f6f isb sy
  54491. 80168ca: f3bf 8f4f dsb sy
  54492. 80168ce: 617b str r3, [r7, #20]
  54493. }
  54494. 80168d0: bf00 nop
  54495. 80168d2: bf00 nop
  54496. 80168d4: e7fd b.n 80168d2 <xTaskGenericNotifyFromISR+0x12a>
  54497. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  54498. 80168d6: 4b21 ldr r3, [pc, #132] @ (801695c <xTaskGenericNotifyFromISR+0x1b4>)
  54499. 80168d8: 681b ldr r3, [r3, #0]
  54500. 80168da: 2b00 cmp r3, #0
  54501. 80168dc: d11d bne.n 801691a <xTaskGenericNotifyFromISR+0x172>
  54502. {
  54503. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54504. 80168de: 6b3b ldr r3, [r7, #48] @ 0x30
  54505. 80168e0: 3304 adds r3, #4
  54506. 80168e2: 4618 mov r0, r3
  54507. 80168e4: f7fd fc92 bl 801420c <uxListRemove>
  54508. prvAddTaskToReadyList( pxTCB );
  54509. 80168e8: 6b3b ldr r3, [r7, #48] @ 0x30
  54510. 80168ea: 6ada ldr r2, [r3, #44] @ 0x2c
  54511. 80168ec: 4b1c ldr r3, [pc, #112] @ (8016960 <xTaskGenericNotifyFromISR+0x1b8>)
  54512. 80168ee: 681b ldr r3, [r3, #0]
  54513. 80168f0: 429a cmp r2, r3
  54514. 80168f2: d903 bls.n 80168fc <xTaskGenericNotifyFromISR+0x154>
  54515. 80168f4: 6b3b ldr r3, [r7, #48] @ 0x30
  54516. 80168f6: 6adb ldr r3, [r3, #44] @ 0x2c
  54517. 80168f8: 4a19 ldr r2, [pc, #100] @ (8016960 <xTaskGenericNotifyFromISR+0x1b8>)
  54518. 80168fa: 6013 str r3, [r2, #0]
  54519. 80168fc: 6b3b ldr r3, [r7, #48] @ 0x30
  54520. 80168fe: 6ada ldr r2, [r3, #44] @ 0x2c
  54521. 8016900: 4613 mov r3, r2
  54522. 8016902: 009b lsls r3, r3, #2
  54523. 8016904: 4413 add r3, r2
  54524. 8016906: 009b lsls r3, r3, #2
  54525. 8016908: 4a16 ldr r2, [pc, #88] @ (8016964 <xTaskGenericNotifyFromISR+0x1bc>)
  54526. 801690a: 441a add r2, r3
  54527. 801690c: 6b3b ldr r3, [r7, #48] @ 0x30
  54528. 801690e: 3304 adds r3, #4
  54529. 8016910: 4619 mov r1, r3
  54530. 8016912: 4610 mov r0, r2
  54531. 8016914: f7fd fc1d bl 8014152 <vListInsertEnd>
  54532. 8016918: e005 b.n 8016926 <xTaskGenericNotifyFromISR+0x17e>
  54533. }
  54534. else
  54535. {
  54536. /* The delayed and ready lists cannot be accessed, so hold
  54537. this task pending until the scheduler is resumed. */
  54538. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  54539. 801691a: 6b3b ldr r3, [r7, #48] @ 0x30
  54540. 801691c: 3318 adds r3, #24
  54541. 801691e: 4619 mov r1, r3
  54542. 8016920: 4811 ldr r0, [pc, #68] @ (8016968 <xTaskGenericNotifyFromISR+0x1c0>)
  54543. 8016922: f7fd fc16 bl 8014152 <vListInsertEnd>
  54544. }
  54545. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  54546. 8016926: 6b3b ldr r3, [r7, #48] @ 0x30
  54547. 8016928: 6ada ldr r2, [r3, #44] @ 0x2c
  54548. 801692a: 4b10 ldr r3, [pc, #64] @ (801696c <xTaskGenericNotifyFromISR+0x1c4>)
  54549. 801692c: 681b ldr r3, [r3, #0]
  54550. 801692e: 6adb ldr r3, [r3, #44] @ 0x2c
  54551. 8016930: 429a cmp r2, r3
  54552. 8016932: d908 bls.n 8016946 <xTaskGenericNotifyFromISR+0x19e>
  54553. {
  54554. /* The notified task has a priority above the currently
  54555. executing task so a yield is required. */
  54556. if( pxHigherPriorityTaskWoken != NULL )
  54557. 8016934: 6c3b ldr r3, [r7, #64] @ 0x40
  54558. 8016936: 2b00 cmp r3, #0
  54559. 8016938: d002 beq.n 8016940 <xTaskGenericNotifyFromISR+0x198>
  54560. {
  54561. *pxHigherPriorityTaskWoken = pdTRUE;
  54562. 801693a: 6c3b ldr r3, [r7, #64] @ 0x40
  54563. 801693c: 2201 movs r2, #1
  54564. 801693e: 601a str r2, [r3, #0]
  54565. }
  54566. /* Mark that a yield is pending in case the user is not
  54567. using the "xHigherPriorityTaskWoken" parameter to an ISR
  54568. safe FreeRTOS function. */
  54569. xYieldPending = pdTRUE;
  54570. 8016940: 4b0b ldr r3, [pc, #44] @ (8016970 <xTaskGenericNotifyFromISR+0x1c8>)
  54571. 8016942: 2201 movs r2, #1
  54572. 8016944: 601a str r2, [r3, #0]
  54573. 8016946: 6afb ldr r3, [r7, #44] @ 0x2c
  54574. 8016948: 613b str r3, [r7, #16]
  54575. __asm volatile
  54576. 801694a: 693b ldr r3, [r7, #16]
  54577. 801694c: f383 8811 msr BASEPRI, r3
  54578. }
  54579. 8016950: bf00 nop
  54580. }
  54581. }
  54582. }
  54583. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  54584. return xReturn;
  54585. 8016952: 6b7b ldr r3, [r7, #52] @ 0x34
  54586. }
  54587. 8016954: 4618 mov r0, r3
  54588. 8016956: 3738 adds r7, #56 @ 0x38
  54589. 8016958: 46bd mov sp, r7
  54590. 801695a: bd80 pop {r7, pc}
  54591. 801695c: 24002b90 .word 0x24002b90
  54592. 8016960: 24002b70 .word 0x24002b70
  54593. 8016964: 24002698 .word 0x24002698
  54594. 8016968: 24002b28 .word 0x24002b28
  54595. 801696c: 24002694 .word 0x24002694
  54596. 8016970: 24002b7c .word 0x24002b7c
  54597. 08016974 <xTaskNotifyStateClear>:
  54598. /*-----------------------------------------------------------*/
  54599. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54600. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  54601. {
  54602. 8016974: b580 push {r7, lr}
  54603. 8016976: b084 sub sp, #16
  54604. 8016978: af00 add r7, sp, #0
  54605. 801697a: 6078 str r0, [r7, #4]
  54606. TCB_t *pxTCB;
  54607. BaseType_t xReturn;
  54608. /* If null is passed in here then it is the calling task that is having
  54609. its notification state cleared. */
  54610. pxTCB = prvGetTCBFromHandle( xTask );
  54611. 801697c: 687b ldr r3, [r7, #4]
  54612. 801697e: 2b00 cmp r3, #0
  54613. 8016980: d102 bne.n 8016988 <xTaskNotifyStateClear+0x14>
  54614. 8016982: 4b0e ldr r3, [pc, #56] @ (80169bc <xTaskNotifyStateClear+0x48>)
  54615. 8016984: 681b ldr r3, [r3, #0]
  54616. 8016986: e000 b.n 801698a <xTaskNotifyStateClear+0x16>
  54617. 8016988: 687b ldr r3, [r7, #4]
  54618. 801698a: 60bb str r3, [r7, #8]
  54619. taskENTER_CRITICAL();
  54620. 801698c: f000 fde4 bl 8017558 <vPortEnterCritical>
  54621. {
  54622. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  54623. 8016990: 68bb ldr r3, [r7, #8]
  54624. 8016992: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54625. 8016996: b2db uxtb r3, r3
  54626. 8016998: 2b02 cmp r3, #2
  54627. 801699a: d106 bne.n 80169aa <xTaskNotifyStateClear+0x36>
  54628. {
  54629. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54630. 801699c: 68bb ldr r3, [r7, #8]
  54631. 801699e: 2200 movs r2, #0
  54632. 80169a0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54633. xReturn = pdPASS;
  54634. 80169a4: 2301 movs r3, #1
  54635. 80169a6: 60fb str r3, [r7, #12]
  54636. 80169a8: e001 b.n 80169ae <xTaskNotifyStateClear+0x3a>
  54637. }
  54638. else
  54639. {
  54640. xReturn = pdFAIL;
  54641. 80169aa: 2300 movs r3, #0
  54642. 80169ac: 60fb str r3, [r7, #12]
  54643. }
  54644. }
  54645. taskEXIT_CRITICAL();
  54646. 80169ae: f000 fe05 bl 80175bc <vPortExitCritical>
  54647. return xReturn;
  54648. 80169b2: 68fb ldr r3, [r7, #12]
  54649. }
  54650. 80169b4: 4618 mov r0, r3
  54651. 80169b6: 3710 adds r7, #16
  54652. 80169b8: 46bd mov sp, r7
  54653. 80169ba: bd80 pop {r7, pc}
  54654. 80169bc: 24002694 .word 0x24002694
  54655. 080169c0 <prvAddCurrentTaskToDelayedList>:
  54656. #endif
  54657. /*-----------------------------------------------------------*/
  54658. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  54659. {
  54660. 80169c0: b580 push {r7, lr}
  54661. 80169c2: b084 sub sp, #16
  54662. 80169c4: af00 add r7, sp, #0
  54663. 80169c6: 6078 str r0, [r7, #4]
  54664. 80169c8: 6039 str r1, [r7, #0]
  54665. TickType_t xTimeToWake;
  54666. const TickType_t xConstTickCount = xTickCount;
  54667. 80169ca: 4b21 ldr r3, [pc, #132] @ (8016a50 <prvAddCurrentTaskToDelayedList+0x90>)
  54668. 80169cc: 681b ldr r3, [r3, #0]
  54669. 80169ce: 60fb str r3, [r7, #12]
  54670. }
  54671. #endif
  54672. /* Remove the task from the ready list before adding it to the blocked list
  54673. as the same list item is used for both lists. */
  54674. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54675. 80169d0: 4b20 ldr r3, [pc, #128] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54676. 80169d2: 681b ldr r3, [r3, #0]
  54677. 80169d4: 3304 adds r3, #4
  54678. 80169d6: 4618 mov r0, r3
  54679. 80169d8: f7fd fc18 bl 801420c <uxListRemove>
  54680. mtCOVERAGE_TEST_MARKER();
  54681. }
  54682. #if ( INCLUDE_vTaskSuspend == 1 )
  54683. {
  54684. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  54685. 80169dc: 687b ldr r3, [r7, #4]
  54686. 80169de: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54687. 80169e2: d10a bne.n 80169fa <prvAddCurrentTaskToDelayedList+0x3a>
  54688. 80169e4: 683b ldr r3, [r7, #0]
  54689. 80169e6: 2b00 cmp r3, #0
  54690. 80169e8: d007 beq.n 80169fa <prvAddCurrentTaskToDelayedList+0x3a>
  54691. {
  54692. /* Add the task to the suspended task list instead of a delayed task
  54693. list to ensure it is not woken by a timing event. It will block
  54694. indefinitely. */
  54695. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54696. 80169ea: 4b1a ldr r3, [pc, #104] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54697. 80169ec: 681b ldr r3, [r3, #0]
  54698. 80169ee: 3304 adds r3, #4
  54699. 80169f0: 4619 mov r1, r3
  54700. 80169f2: 4819 ldr r0, [pc, #100] @ (8016a58 <prvAddCurrentTaskToDelayedList+0x98>)
  54701. 80169f4: f7fd fbad bl 8014152 <vListInsertEnd>
  54702. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  54703. ( void ) xCanBlockIndefinitely;
  54704. }
  54705. #endif /* INCLUDE_vTaskSuspend */
  54706. }
  54707. 80169f8: e026 b.n 8016a48 <prvAddCurrentTaskToDelayedList+0x88>
  54708. xTimeToWake = xConstTickCount + xTicksToWait;
  54709. 80169fa: 68fa ldr r2, [r7, #12]
  54710. 80169fc: 687b ldr r3, [r7, #4]
  54711. 80169fe: 4413 add r3, r2
  54712. 8016a00: 60bb str r3, [r7, #8]
  54713. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  54714. 8016a02: 4b14 ldr r3, [pc, #80] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54715. 8016a04: 681b ldr r3, [r3, #0]
  54716. 8016a06: 68ba ldr r2, [r7, #8]
  54717. 8016a08: 605a str r2, [r3, #4]
  54718. if( xTimeToWake < xConstTickCount )
  54719. 8016a0a: 68ba ldr r2, [r7, #8]
  54720. 8016a0c: 68fb ldr r3, [r7, #12]
  54721. 8016a0e: 429a cmp r2, r3
  54722. 8016a10: d209 bcs.n 8016a26 <prvAddCurrentTaskToDelayedList+0x66>
  54723. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54724. 8016a12: 4b12 ldr r3, [pc, #72] @ (8016a5c <prvAddCurrentTaskToDelayedList+0x9c>)
  54725. 8016a14: 681a ldr r2, [r3, #0]
  54726. 8016a16: 4b0f ldr r3, [pc, #60] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54727. 8016a18: 681b ldr r3, [r3, #0]
  54728. 8016a1a: 3304 adds r3, #4
  54729. 8016a1c: 4619 mov r1, r3
  54730. 8016a1e: 4610 mov r0, r2
  54731. 8016a20: f7fd fbbb bl 801419a <vListInsert>
  54732. }
  54733. 8016a24: e010 b.n 8016a48 <prvAddCurrentTaskToDelayedList+0x88>
  54734. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54735. 8016a26: 4b0e ldr r3, [pc, #56] @ (8016a60 <prvAddCurrentTaskToDelayedList+0xa0>)
  54736. 8016a28: 681a ldr r2, [r3, #0]
  54737. 8016a2a: 4b0a ldr r3, [pc, #40] @ (8016a54 <prvAddCurrentTaskToDelayedList+0x94>)
  54738. 8016a2c: 681b ldr r3, [r3, #0]
  54739. 8016a2e: 3304 adds r3, #4
  54740. 8016a30: 4619 mov r1, r3
  54741. 8016a32: 4610 mov r0, r2
  54742. 8016a34: f7fd fbb1 bl 801419a <vListInsert>
  54743. if( xTimeToWake < xNextTaskUnblockTime )
  54744. 8016a38: 4b0a ldr r3, [pc, #40] @ (8016a64 <prvAddCurrentTaskToDelayedList+0xa4>)
  54745. 8016a3a: 681b ldr r3, [r3, #0]
  54746. 8016a3c: 68ba ldr r2, [r7, #8]
  54747. 8016a3e: 429a cmp r2, r3
  54748. 8016a40: d202 bcs.n 8016a48 <prvAddCurrentTaskToDelayedList+0x88>
  54749. xNextTaskUnblockTime = xTimeToWake;
  54750. 8016a42: 4a08 ldr r2, [pc, #32] @ (8016a64 <prvAddCurrentTaskToDelayedList+0xa4>)
  54751. 8016a44: 68bb ldr r3, [r7, #8]
  54752. 8016a46: 6013 str r3, [r2, #0]
  54753. }
  54754. 8016a48: bf00 nop
  54755. 8016a4a: 3710 adds r7, #16
  54756. 8016a4c: 46bd mov sp, r7
  54757. 8016a4e: bd80 pop {r7, pc}
  54758. 8016a50: 24002b6c .word 0x24002b6c
  54759. 8016a54: 24002694 .word 0x24002694
  54760. 8016a58: 24002b54 .word 0x24002b54
  54761. 8016a5c: 24002b24 .word 0x24002b24
  54762. 8016a60: 24002b20 .word 0x24002b20
  54763. 8016a64: 24002b88 .word 0x24002b88
  54764. 08016a68 <xTimerCreateTimerTask>:
  54765. TimerCallbackFunction_t pxCallbackFunction,
  54766. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  54767. /*-----------------------------------------------------------*/
  54768. BaseType_t xTimerCreateTimerTask( void )
  54769. {
  54770. 8016a68: b580 push {r7, lr}
  54771. 8016a6a: b08a sub sp, #40 @ 0x28
  54772. 8016a6c: af04 add r7, sp, #16
  54773. BaseType_t xReturn = pdFAIL;
  54774. 8016a6e: 2300 movs r3, #0
  54775. 8016a70: 617b str r3, [r7, #20]
  54776. /* This function is called when the scheduler is started if
  54777. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  54778. timer service task has been created/initialised. If timers have already
  54779. been created then the initialisation will already have been performed. */
  54780. prvCheckForValidListAndQueue();
  54781. 8016a72: f000 fbb1 bl 80171d8 <prvCheckForValidListAndQueue>
  54782. if( xTimerQueue != NULL )
  54783. 8016a76: 4b1d ldr r3, [pc, #116] @ (8016aec <xTimerCreateTimerTask+0x84>)
  54784. 8016a78: 681b ldr r3, [r3, #0]
  54785. 8016a7a: 2b00 cmp r3, #0
  54786. 8016a7c: d021 beq.n 8016ac2 <xTimerCreateTimerTask+0x5a>
  54787. {
  54788. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  54789. {
  54790. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  54791. 8016a7e: 2300 movs r3, #0
  54792. 8016a80: 60fb str r3, [r7, #12]
  54793. StackType_t *pxTimerTaskStackBuffer = NULL;
  54794. 8016a82: 2300 movs r3, #0
  54795. 8016a84: 60bb str r3, [r7, #8]
  54796. uint32_t ulTimerTaskStackSize;
  54797. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  54798. 8016a86: 1d3a adds r2, r7, #4
  54799. 8016a88: f107 0108 add.w r1, r7, #8
  54800. 8016a8c: f107 030c add.w r3, r7, #12
  54801. 8016a90: 4618 mov r0, r3
  54802. 8016a92: f7fd fb17 bl 80140c4 <vApplicationGetTimerTaskMemory>
  54803. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  54804. 8016a96: 6879 ldr r1, [r7, #4]
  54805. 8016a98: 68bb ldr r3, [r7, #8]
  54806. 8016a9a: 68fa ldr r2, [r7, #12]
  54807. 8016a9c: 9202 str r2, [sp, #8]
  54808. 8016a9e: 9301 str r3, [sp, #4]
  54809. 8016aa0: 2302 movs r3, #2
  54810. 8016aa2: 9300 str r3, [sp, #0]
  54811. 8016aa4: 2300 movs r3, #0
  54812. 8016aa6: 460a mov r2, r1
  54813. 8016aa8: 4911 ldr r1, [pc, #68] @ (8016af0 <xTimerCreateTimerTask+0x88>)
  54814. 8016aaa: 4812 ldr r0, [pc, #72] @ (8016af4 <xTimerCreateTimerTask+0x8c>)
  54815. 8016aac: f7fe fd2f bl 801550e <xTaskCreateStatic>
  54816. 8016ab0: 4603 mov r3, r0
  54817. 8016ab2: 4a11 ldr r2, [pc, #68] @ (8016af8 <xTimerCreateTimerTask+0x90>)
  54818. 8016ab4: 6013 str r3, [r2, #0]
  54819. NULL,
  54820. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  54821. pxTimerTaskStackBuffer,
  54822. pxTimerTaskTCBBuffer );
  54823. if( xTimerTaskHandle != NULL )
  54824. 8016ab6: 4b10 ldr r3, [pc, #64] @ (8016af8 <xTimerCreateTimerTask+0x90>)
  54825. 8016ab8: 681b ldr r3, [r3, #0]
  54826. 8016aba: 2b00 cmp r3, #0
  54827. 8016abc: d001 beq.n 8016ac2 <xTimerCreateTimerTask+0x5a>
  54828. {
  54829. xReturn = pdPASS;
  54830. 8016abe: 2301 movs r3, #1
  54831. 8016ac0: 617b str r3, [r7, #20]
  54832. else
  54833. {
  54834. mtCOVERAGE_TEST_MARKER();
  54835. }
  54836. configASSERT( xReturn );
  54837. 8016ac2: 697b ldr r3, [r7, #20]
  54838. 8016ac4: 2b00 cmp r3, #0
  54839. 8016ac6: d10b bne.n 8016ae0 <xTimerCreateTimerTask+0x78>
  54840. __asm volatile
  54841. 8016ac8: f04f 0350 mov.w r3, #80 @ 0x50
  54842. 8016acc: f383 8811 msr BASEPRI, r3
  54843. 8016ad0: f3bf 8f6f isb sy
  54844. 8016ad4: f3bf 8f4f dsb sy
  54845. 8016ad8: 613b str r3, [r7, #16]
  54846. }
  54847. 8016ada: bf00 nop
  54848. 8016adc: bf00 nop
  54849. 8016ade: e7fd b.n 8016adc <xTimerCreateTimerTask+0x74>
  54850. return xReturn;
  54851. 8016ae0: 697b ldr r3, [r7, #20]
  54852. }
  54853. 8016ae2: 4618 mov r0, r3
  54854. 8016ae4: 3718 adds r7, #24
  54855. 8016ae6: 46bd mov sp, r7
  54856. 8016ae8: bd80 pop {r7, pc}
  54857. 8016aea: bf00 nop
  54858. 8016aec: 24002bc4 .word 0x24002bc4
  54859. 8016af0: 08018ba4 .word 0x08018ba4
  54860. 8016af4: 08016d71 .word 0x08016d71
  54861. 8016af8: 24002bc8 .word 0x24002bc8
  54862. 08016afc <xTimerCreate>:
  54863. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  54864. const TickType_t xTimerPeriodInTicks,
  54865. const UBaseType_t uxAutoReload,
  54866. void * const pvTimerID,
  54867. TimerCallbackFunction_t pxCallbackFunction )
  54868. {
  54869. 8016afc: b580 push {r7, lr}
  54870. 8016afe: b088 sub sp, #32
  54871. 8016b00: af02 add r7, sp, #8
  54872. 8016b02: 60f8 str r0, [r7, #12]
  54873. 8016b04: 60b9 str r1, [r7, #8]
  54874. 8016b06: 607a str r2, [r7, #4]
  54875. 8016b08: 603b str r3, [r7, #0]
  54876. Timer_t *pxNewTimer;
  54877. 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. */
  54878. 8016b0a: 202c movs r0, #44 @ 0x2c
  54879. 8016b0c: f000 fe46 bl 801779c <pvPortMalloc>
  54880. 8016b10: 6178 str r0, [r7, #20]
  54881. if( pxNewTimer != NULL )
  54882. 8016b12: 697b ldr r3, [r7, #20]
  54883. 8016b14: 2b00 cmp r3, #0
  54884. 8016b16: d00d beq.n 8016b34 <xTimerCreate+0x38>
  54885. {
  54886. /* Status is thus far zero as the timer is not created statically
  54887. and has not been started. The auto-reload bit may get set in
  54888. prvInitialiseNewTimer. */
  54889. pxNewTimer->ucStatus = 0x00;
  54890. 8016b18: 697b ldr r3, [r7, #20]
  54891. 8016b1a: 2200 movs r2, #0
  54892. 8016b1c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54893. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54894. 8016b20: 697b ldr r3, [r7, #20]
  54895. 8016b22: 9301 str r3, [sp, #4]
  54896. 8016b24: 6a3b ldr r3, [r7, #32]
  54897. 8016b26: 9300 str r3, [sp, #0]
  54898. 8016b28: 683b ldr r3, [r7, #0]
  54899. 8016b2a: 687a ldr r2, [r7, #4]
  54900. 8016b2c: 68b9 ldr r1, [r7, #8]
  54901. 8016b2e: 68f8 ldr r0, [r7, #12]
  54902. 8016b30: f000 f845 bl 8016bbe <prvInitialiseNewTimer>
  54903. }
  54904. return pxNewTimer;
  54905. 8016b34: 697b ldr r3, [r7, #20]
  54906. }
  54907. 8016b36: 4618 mov r0, r3
  54908. 8016b38: 3718 adds r7, #24
  54909. 8016b3a: 46bd mov sp, r7
  54910. 8016b3c: bd80 pop {r7, pc}
  54911. 08016b3e <xTimerCreateStatic>:
  54912. const TickType_t xTimerPeriodInTicks,
  54913. const UBaseType_t uxAutoReload,
  54914. void * const pvTimerID,
  54915. TimerCallbackFunction_t pxCallbackFunction,
  54916. StaticTimer_t *pxTimerBuffer )
  54917. {
  54918. 8016b3e: b580 push {r7, lr}
  54919. 8016b40: b08a sub sp, #40 @ 0x28
  54920. 8016b42: af02 add r7, sp, #8
  54921. 8016b44: 60f8 str r0, [r7, #12]
  54922. 8016b46: 60b9 str r1, [r7, #8]
  54923. 8016b48: 607a str r2, [r7, #4]
  54924. 8016b4a: 603b str r3, [r7, #0]
  54925. #if( configASSERT_DEFINED == 1 )
  54926. {
  54927. /* Sanity check that the size of the structure used to declare a
  54928. variable of type StaticTimer_t equals the size of the real timer
  54929. structure. */
  54930. volatile size_t xSize = sizeof( StaticTimer_t );
  54931. 8016b4c: 232c movs r3, #44 @ 0x2c
  54932. 8016b4e: 613b str r3, [r7, #16]
  54933. configASSERT( xSize == sizeof( Timer_t ) );
  54934. 8016b50: 693b ldr r3, [r7, #16]
  54935. 8016b52: 2b2c cmp r3, #44 @ 0x2c
  54936. 8016b54: d00b beq.n 8016b6e <xTimerCreateStatic+0x30>
  54937. __asm volatile
  54938. 8016b56: f04f 0350 mov.w r3, #80 @ 0x50
  54939. 8016b5a: f383 8811 msr BASEPRI, r3
  54940. 8016b5e: f3bf 8f6f isb sy
  54941. 8016b62: f3bf 8f4f dsb sy
  54942. 8016b66: 61bb str r3, [r7, #24]
  54943. }
  54944. 8016b68: bf00 nop
  54945. 8016b6a: bf00 nop
  54946. 8016b6c: e7fd b.n 8016b6a <xTimerCreateStatic+0x2c>
  54947. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  54948. 8016b6e: 693b ldr r3, [r7, #16]
  54949. }
  54950. #endif /* configASSERT_DEFINED */
  54951. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  54952. configASSERT( pxTimerBuffer );
  54953. 8016b70: 6afb ldr r3, [r7, #44] @ 0x2c
  54954. 8016b72: 2b00 cmp r3, #0
  54955. 8016b74: d10b bne.n 8016b8e <xTimerCreateStatic+0x50>
  54956. __asm volatile
  54957. 8016b76: f04f 0350 mov.w r3, #80 @ 0x50
  54958. 8016b7a: f383 8811 msr BASEPRI, r3
  54959. 8016b7e: f3bf 8f6f isb sy
  54960. 8016b82: f3bf 8f4f dsb sy
  54961. 8016b86: 617b str r3, [r7, #20]
  54962. }
  54963. 8016b88: bf00 nop
  54964. 8016b8a: bf00 nop
  54965. 8016b8c: e7fd b.n 8016b8a <xTimerCreateStatic+0x4c>
  54966. 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. */
  54967. 8016b8e: 6afb ldr r3, [r7, #44] @ 0x2c
  54968. 8016b90: 61fb str r3, [r7, #28]
  54969. if( pxNewTimer != NULL )
  54970. 8016b92: 69fb ldr r3, [r7, #28]
  54971. 8016b94: 2b00 cmp r3, #0
  54972. 8016b96: d00d beq.n 8016bb4 <xTimerCreateStatic+0x76>
  54973. {
  54974. /* Timers can be created statically or dynamically so note this
  54975. timer was created statically in case it is later deleted. The
  54976. auto-reload bit may get set in prvInitialiseNewTimer(). */
  54977. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  54978. 8016b98: 69fb ldr r3, [r7, #28]
  54979. 8016b9a: 2202 movs r2, #2
  54980. 8016b9c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54981. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54982. 8016ba0: 69fb ldr r3, [r7, #28]
  54983. 8016ba2: 9301 str r3, [sp, #4]
  54984. 8016ba4: 6abb ldr r3, [r7, #40] @ 0x28
  54985. 8016ba6: 9300 str r3, [sp, #0]
  54986. 8016ba8: 683b ldr r3, [r7, #0]
  54987. 8016baa: 687a ldr r2, [r7, #4]
  54988. 8016bac: 68b9 ldr r1, [r7, #8]
  54989. 8016bae: 68f8 ldr r0, [r7, #12]
  54990. 8016bb0: f000 f805 bl 8016bbe <prvInitialiseNewTimer>
  54991. }
  54992. return pxNewTimer;
  54993. 8016bb4: 69fb ldr r3, [r7, #28]
  54994. }
  54995. 8016bb6: 4618 mov r0, r3
  54996. 8016bb8: 3720 adds r7, #32
  54997. 8016bba: 46bd mov sp, r7
  54998. 8016bbc: bd80 pop {r7, pc}
  54999. 08016bbe <prvInitialiseNewTimer>:
  55000. const TickType_t xTimerPeriodInTicks,
  55001. const UBaseType_t uxAutoReload,
  55002. void * const pvTimerID,
  55003. TimerCallbackFunction_t pxCallbackFunction,
  55004. Timer_t *pxNewTimer )
  55005. {
  55006. 8016bbe: b580 push {r7, lr}
  55007. 8016bc0: b086 sub sp, #24
  55008. 8016bc2: af00 add r7, sp, #0
  55009. 8016bc4: 60f8 str r0, [r7, #12]
  55010. 8016bc6: 60b9 str r1, [r7, #8]
  55011. 8016bc8: 607a str r2, [r7, #4]
  55012. 8016bca: 603b str r3, [r7, #0]
  55013. /* 0 is not a valid value for xTimerPeriodInTicks. */
  55014. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  55015. 8016bcc: 68bb ldr r3, [r7, #8]
  55016. 8016bce: 2b00 cmp r3, #0
  55017. 8016bd0: d10b bne.n 8016bea <prvInitialiseNewTimer+0x2c>
  55018. __asm volatile
  55019. 8016bd2: f04f 0350 mov.w r3, #80 @ 0x50
  55020. 8016bd6: f383 8811 msr BASEPRI, r3
  55021. 8016bda: f3bf 8f6f isb sy
  55022. 8016bde: f3bf 8f4f dsb sy
  55023. 8016be2: 617b str r3, [r7, #20]
  55024. }
  55025. 8016be4: bf00 nop
  55026. 8016be6: bf00 nop
  55027. 8016be8: e7fd b.n 8016be6 <prvInitialiseNewTimer+0x28>
  55028. if( pxNewTimer != NULL )
  55029. 8016bea: 6a7b ldr r3, [r7, #36] @ 0x24
  55030. 8016bec: 2b00 cmp r3, #0
  55031. 8016bee: d01e beq.n 8016c2e <prvInitialiseNewTimer+0x70>
  55032. {
  55033. /* Ensure the infrastructure used by the timer service task has been
  55034. created/initialised. */
  55035. prvCheckForValidListAndQueue();
  55036. 8016bf0: f000 faf2 bl 80171d8 <prvCheckForValidListAndQueue>
  55037. /* Initialise the timer structure members using the function
  55038. parameters. */
  55039. pxNewTimer->pcTimerName = pcTimerName;
  55040. 8016bf4: 6a7b ldr r3, [r7, #36] @ 0x24
  55041. 8016bf6: 68fa ldr r2, [r7, #12]
  55042. 8016bf8: 601a str r2, [r3, #0]
  55043. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  55044. 8016bfa: 6a7b ldr r3, [r7, #36] @ 0x24
  55045. 8016bfc: 68ba ldr r2, [r7, #8]
  55046. 8016bfe: 619a str r2, [r3, #24]
  55047. pxNewTimer->pvTimerID = pvTimerID;
  55048. 8016c00: 6a7b ldr r3, [r7, #36] @ 0x24
  55049. 8016c02: 683a ldr r2, [r7, #0]
  55050. 8016c04: 61da str r2, [r3, #28]
  55051. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  55052. 8016c06: 6a7b ldr r3, [r7, #36] @ 0x24
  55053. 8016c08: 6a3a ldr r2, [r7, #32]
  55054. 8016c0a: 621a str r2, [r3, #32]
  55055. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  55056. 8016c0c: 6a7b ldr r3, [r7, #36] @ 0x24
  55057. 8016c0e: 3304 adds r3, #4
  55058. 8016c10: 4618 mov r0, r3
  55059. 8016c12: f7fd fa91 bl 8014138 <vListInitialiseItem>
  55060. if( uxAutoReload != pdFALSE )
  55061. 8016c16: 687b ldr r3, [r7, #4]
  55062. 8016c18: 2b00 cmp r3, #0
  55063. 8016c1a: d008 beq.n 8016c2e <prvInitialiseNewTimer+0x70>
  55064. {
  55065. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  55066. 8016c1c: 6a7b ldr r3, [r7, #36] @ 0x24
  55067. 8016c1e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55068. 8016c22: f043 0304 orr.w r3, r3, #4
  55069. 8016c26: b2da uxtb r2, r3
  55070. 8016c28: 6a7b ldr r3, [r7, #36] @ 0x24
  55071. 8016c2a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55072. }
  55073. traceTIMER_CREATE( pxNewTimer );
  55074. }
  55075. }
  55076. 8016c2e: bf00 nop
  55077. 8016c30: 3718 adds r7, #24
  55078. 8016c32: 46bd mov sp, r7
  55079. 8016c34: bd80 pop {r7, pc}
  55080. ...
  55081. 08016c38 <xTimerGenericCommand>:
  55082. /*-----------------------------------------------------------*/
  55083. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  55084. {
  55085. 8016c38: b580 push {r7, lr}
  55086. 8016c3a: b08a sub sp, #40 @ 0x28
  55087. 8016c3c: af00 add r7, sp, #0
  55088. 8016c3e: 60f8 str r0, [r7, #12]
  55089. 8016c40: 60b9 str r1, [r7, #8]
  55090. 8016c42: 607a str r2, [r7, #4]
  55091. 8016c44: 603b str r3, [r7, #0]
  55092. BaseType_t xReturn = pdFAIL;
  55093. 8016c46: 2300 movs r3, #0
  55094. 8016c48: 627b str r3, [r7, #36] @ 0x24
  55095. DaemonTaskMessage_t xMessage;
  55096. configASSERT( xTimer );
  55097. 8016c4a: 68fb ldr r3, [r7, #12]
  55098. 8016c4c: 2b00 cmp r3, #0
  55099. 8016c4e: d10b bne.n 8016c68 <xTimerGenericCommand+0x30>
  55100. __asm volatile
  55101. 8016c50: f04f 0350 mov.w r3, #80 @ 0x50
  55102. 8016c54: f383 8811 msr BASEPRI, r3
  55103. 8016c58: f3bf 8f6f isb sy
  55104. 8016c5c: f3bf 8f4f dsb sy
  55105. 8016c60: 623b str r3, [r7, #32]
  55106. }
  55107. 8016c62: bf00 nop
  55108. 8016c64: bf00 nop
  55109. 8016c66: e7fd b.n 8016c64 <xTimerGenericCommand+0x2c>
  55110. /* Send a message to the timer service task to perform a particular action
  55111. on a particular timer definition. */
  55112. if( xTimerQueue != NULL )
  55113. 8016c68: 4b19 ldr r3, [pc, #100] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55114. 8016c6a: 681b ldr r3, [r3, #0]
  55115. 8016c6c: 2b00 cmp r3, #0
  55116. 8016c6e: d02a beq.n 8016cc6 <xTimerGenericCommand+0x8e>
  55117. {
  55118. /* Send a command to the timer service task to start the xTimer timer. */
  55119. xMessage.xMessageID = xCommandID;
  55120. 8016c70: 68bb ldr r3, [r7, #8]
  55121. 8016c72: 613b str r3, [r7, #16]
  55122. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  55123. 8016c74: 687b ldr r3, [r7, #4]
  55124. 8016c76: 617b str r3, [r7, #20]
  55125. xMessage.u.xTimerParameters.pxTimer = xTimer;
  55126. 8016c78: 68fb ldr r3, [r7, #12]
  55127. 8016c7a: 61bb str r3, [r7, #24]
  55128. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  55129. 8016c7c: 68bb ldr r3, [r7, #8]
  55130. 8016c7e: 2b05 cmp r3, #5
  55131. 8016c80: dc18 bgt.n 8016cb4 <xTimerGenericCommand+0x7c>
  55132. {
  55133. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  55134. 8016c82: f7ff fae1 bl 8016248 <xTaskGetSchedulerState>
  55135. 8016c86: 4603 mov r3, r0
  55136. 8016c88: 2b02 cmp r3, #2
  55137. 8016c8a: d109 bne.n 8016ca0 <xTimerGenericCommand+0x68>
  55138. {
  55139. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  55140. 8016c8c: 4b10 ldr r3, [pc, #64] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55141. 8016c8e: 6818 ldr r0, [r3, #0]
  55142. 8016c90: f107 0110 add.w r1, r7, #16
  55143. 8016c94: 2300 movs r3, #0
  55144. 8016c96: 6b3a ldr r2, [r7, #48] @ 0x30
  55145. 8016c98: f7fd fce0 bl 801465c <xQueueGenericSend>
  55146. 8016c9c: 6278 str r0, [r7, #36] @ 0x24
  55147. 8016c9e: e012 b.n 8016cc6 <xTimerGenericCommand+0x8e>
  55148. }
  55149. else
  55150. {
  55151. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  55152. 8016ca0: 4b0b ldr r3, [pc, #44] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55153. 8016ca2: 6818 ldr r0, [r3, #0]
  55154. 8016ca4: f107 0110 add.w r1, r7, #16
  55155. 8016ca8: 2300 movs r3, #0
  55156. 8016caa: 2200 movs r2, #0
  55157. 8016cac: f7fd fcd6 bl 801465c <xQueueGenericSend>
  55158. 8016cb0: 6278 str r0, [r7, #36] @ 0x24
  55159. 8016cb2: e008 b.n 8016cc6 <xTimerGenericCommand+0x8e>
  55160. }
  55161. }
  55162. else
  55163. {
  55164. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  55165. 8016cb4: 4b06 ldr r3, [pc, #24] @ (8016cd0 <xTimerGenericCommand+0x98>)
  55166. 8016cb6: 6818 ldr r0, [r3, #0]
  55167. 8016cb8: f107 0110 add.w r1, r7, #16
  55168. 8016cbc: 2300 movs r3, #0
  55169. 8016cbe: 683a ldr r2, [r7, #0]
  55170. 8016cc0: f7fd fdce bl 8014860 <xQueueGenericSendFromISR>
  55171. 8016cc4: 6278 str r0, [r7, #36] @ 0x24
  55172. else
  55173. {
  55174. mtCOVERAGE_TEST_MARKER();
  55175. }
  55176. return xReturn;
  55177. 8016cc6: 6a7b ldr r3, [r7, #36] @ 0x24
  55178. }
  55179. 8016cc8: 4618 mov r0, r3
  55180. 8016cca: 3728 adds r7, #40 @ 0x28
  55181. 8016ccc: 46bd mov sp, r7
  55182. 8016cce: bd80 pop {r7, pc}
  55183. 8016cd0: 24002bc4 .word 0x24002bc4
  55184. 08016cd4 <prvProcessExpiredTimer>:
  55185. return pxTimer->pcTimerName;
  55186. }
  55187. /*-----------------------------------------------------------*/
  55188. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  55189. {
  55190. 8016cd4: b580 push {r7, lr}
  55191. 8016cd6: b088 sub sp, #32
  55192. 8016cd8: af02 add r7, sp, #8
  55193. 8016cda: 6078 str r0, [r7, #4]
  55194. 8016cdc: 6039 str r1, [r7, #0]
  55195. BaseType_t xResult;
  55196. 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. */
  55197. 8016cde: 4b23 ldr r3, [pc, #140] @ (8016d6c <prvProcessExpiredTimer+0x98>)
  55198. 8016ce0: 681b ldr r3, [r3, #0]
  55199. 8016ce2: 68db ldr r3, [r3, #12]
  55200. 8016ce4: 68db ldr r3, [r3, #12]
  55201. 8016ce6: 617b str r3, [r7, #20]
  55202. /* Remove the timer from the list of active timers. A check has already
  55203. been performed to ensure the list is not empty. */
  55204. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55205. 8016ce8: 697b ldr r3, [r7, #20]
  55206. 8016cea: 3304 adds r3, #4
  55207. 8016cec: 4618 mov r0, r3
  55208. 8016cee: f7fd fa8d bl 801420c <uxListRemove>
  55209. traceTIMER_EXPIRED( pxTimer );
  55210. /* If the timer is an auto-reload timer then calculate the next
  55211. expiry time and re-insert the timer in the list of active timers. */
  55212. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55213. 8016cf2: 697b ldr r3, [r7, #20]
  55214. 8016cf4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55215. 8016cf8: f003 0304 and.w r3, r3, #4
  55216. 8016cfc: 2b00 cmp r3, #0
  55217. 8016cfe: d023 beq.n 8016d48 <prvProcessExpiredTimer+0x74>
  55218. {
  55219. /* The timer is inserted into a list using a time relative to anything
  55220. other than the current time. It will therefore be inserted into the
  55221. correct list relative to the time this task thinks it is now. */
  55222. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  55223. 8016d00: 697b ldr r3, [r7, #20]
  55224. 8016d02: 699a ldr r2, [r3, #24]
  55225. 8016d04: 687b ldr r3, [r7, #4]
  55226. 8016d06: 18d1 adds r1, r2, r3
  55227. 8016d08: 687b ldr r3, [r7, #4]
  55228. 8016d0a: 683a ldr r2, [r7, #0]
  55229. 8016d0c: 6978 ldr r0, [r7, #20]
  55230. 8016d0e: f000 f8d5 bl 8016ebc <prvInsertTimerInActiveList>
  55231. 8016d12: 4603 mov r3, r0
  55232. 8016d14: 2b00 cmp r3, #0
  55233. 8016d16: d020 beq.n 8016d5a <prvProcessExpiredTimer+0x86>
  55234. {
  55235. /* The timer expired before it was added to the active timer
  55236. list. Reload it now. */
  55237. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  55238. 8016d18: 2300 movs r3, #0
  55239. 8016d1a: 9300 str r3, [sp, #0]
  55240. 8016d1c: 2300 movs r3, #0
  55241. 8016d1e: 687a ldr r2, [r7, #4]
  55242. 8016d20: 2100 movs r1, #0
  55243. 8016d22: 6978 ldr r0, [r7, #20]
  55244. 8016d24: f7ff ff88 bl 8016c38 <xTimerGenericCommand>
  55245. 8016d28: 6138 str r0, [r7, #16]
  55246. configASSERT( xResult );
  55247. 8016d2a: 693b ldr r3, [r7, #16]
  55248. 8016d2c: 2b00 cmp r3, #0
  55249. 8016d2e: d114 bne.n 8016d5a <prvProcessExpiredTimer+0x86>
  55250. __asm volatile
  55251. 8016d30: f04f 0350 mov.w r3, #80 @ 0x50
  55252. 8016d34: f383 8811 msr BASEPRI, r3
  55253. 8016d38: f3bf 8f6f isb sy
  55254. 8016d3c: f3bf 8f4f dsb sy
  55255. 8016d40: 60fb str r3, [r7, #12]
  55256. }
  55257. 8016d42: bf00 nop
  55258. 8016d44: bf00 nop
  55259. 8016d46: e7fd b.n 8016d44 <prvProcessExpiredTimer+0x70>
  55260. mtCOVERAGE_TEST_MARKER();
  55261. }
  55262. }
  55263. else
  55264. {
  55265. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55266. 8016d48: 697b ldr r3, [r7, #20]
  55267. 8016d4a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55268. 8016d4e: f023 0301 bic.w r3, r3, #1
  55269. 8016d52: b2da uxtb r2, r3
  55270. 8016d54: 697b ldr r3, [r7, #20]
  55271. 8016d56: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55272. mtCOVERAGE_TEST_MARKER();
  55273. }
  55274. /* Call the timer callback. */
  55275. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55276. 8016d5a: 697b ldr r3, [r7, #20]
  55277. 8016d5c: 6a1b ldr r3, [r3, #32]
  55278. 8016d5e: 6978 ldr r0, [r7, #20]
  55279. 8016d60: 4798 blx r3
  55280. }
  55281. 8016d62: bf00 nop
  55282. 8016d64: 3718 adds r7, #24
  55283. 8016d66: 46bd mov sp, r7
  55284. 8016d68: bd80 pop {r7, pc}
  55285. 8016d6a: bf00 nop
  55286. 8016d6c: 24002bbc .word 0x24002bbc
  55287. 08016d70 <prvTimerTask>:
  55288. /*-----------------------------------------------------------*/
  55289. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  55290. {
  55291. 8016d70: b580 push {r7, lr}
  55292. 8016d72: b084 sub sp, #16
  55293. 8016d74: af00 add r7, sp, #0
  55294. 8016d76: 6078 str r0, [r7, #4]
  55295. for( ;; )
  55296. {
  55297. /* Query the timers list to see if it contains any timers, and if so,
  55298. obtain the time at which the next timer will expire. */
  55299. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  55300. 8016d78: f107 0308 add.w r3, r7, #8
  55301. 8016d7c: 4618 mov r0, r3
  55302. 8016d7e: f000 f859 bl 8016e34 <prvGetNextExpireTime>
  55303. 8016d82: 60f8 str r0, [r7, #12]
  55304. /* If a timer has expired, process it. Otherwise, block this task
  55305. until either a timer does expire, or a command is received. */
  55306. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  55307. 8016d84: 68bb ldr r3, [r7, #8]
  55308. 8016d86: 4619 mov r1, r3
  55309. 8016d88: 68f8 ldr r0, [r7, #12]
  55310. 8016d8a: f000 f805 bl 8016d98 <prvProcessTimerOrBlockTask>
  55311. /* Empty the command queue. */
  55312. prvProcessReceivedCommands();
  55313. 8016d8e: f000 f8d7 bl 8016f40 <prvProcessReceivedCommands>
  55314. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  55315. 8016d92: bf00 nop
  55316. 8016d94: e7f0 b.n 8016d78 <prvTimerTask+0x8>
  55317. ...
  55318. 08016d98 <prvProcessTimerOrBlockTask>:
  55319. }
  55320. }
  55321. /*-----------------------------------------------------------*/
  55322. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  55323. {
  55324. 8016d98: b580 push {r7, lr}
  55325. 8016d9a: b084 sub sp, #16
  55326. 8016d9c: af00 add r7, sp, #0
  55327. 8016d9e: 6078 str r0, [r7, #4]
  55328. 8016da0: 6039 str r1, [r7, #0]
  55329. TickType_t xTimeNow;
  55330. BaseType_t xTimerListsWereSwitched;
  55331. vTaskSuspendAll();
  55332. 8016da2: f7fe fe17 bl 80159d4 <vTaskSuspendAll>
  55333. /* Obtain the time now to make an assessment as to whether the timer
  55334. has expired or not. If obtaining the time causes the lists to switch
  55335. then don't process this timer as any timers that remained in the list
  55336. when the lists were switched will have been processed within the
  55337. prvSampleTimeNow() function. */
  55338. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  55339. 8016da6: f107 0308 add.w r3, r7, #8
  55340. 8016daa: 4618 mov r0, r3
  55341. 8016dac: f000 f866 bl 8016e7c <prvSampleTimeNow>
  55342. 8016db0: 60f8 str r0, [r7, #12]
  55343. if( xTimerListsWereSwitched == pdFALSE )
  55344. 8016db2: 68bb ldr r3, [r7, #8]
  55345. 8016db4: 2b00 cmp r3, #0
  55346. 8016db6: d130 bne.n 8016e1a <prvProcessTimerOrBlockTask+0x82>
  55347. {
  55348. /* The tick count has not overflowed, has the timer expired? */
  55349. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  55350. 8016db8: 683b ldr r3, [r7, #0]
  55351. 8016dba: 2b00 cmp r3, #0
  55352. 8016dbc: d10a bne.n 8016dd4 <prvProcessTimerOrBlockTask+0x3c>
  55353. 8016dbe: 687a ldr r2, [r7, #4]
  55354. 8016dc0: 68fb ldr r3, [r7, #12]
  55355. 8016dc2: 429a cmp r2, r3
  55356. 8016dc4: d806 bhi.n 8016dd4 <prvProcessTimerOrBlockTask+0x3c>
  55357. {
  55358. ( void ) xTaskResumeAll();
  55359. 8016dc6: f7fe fe13 bl 80159f0 <xTaskResumeAll>
  55360. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  55361. 8016dca: 68f9 ldr r1, [r7, #12]
  55362. 8016dcc: 6878 ldr r0, [r7, #4]
  55363. 8016dce: f7ff ff81 bl 8016cd4 <prvProcessExpiredTimer>
  55364. else
  55365. {
  55366. ( void ) xTaskResumeAll();
  55367. }
  55368. }
  55369. }
  55370. 8016dd2: e024 b.n 8016e1e <prvProcessTimerOrBlockTask+0x86>
  55371. if( xListWasEmpty != pdFALSE )
  55372. 8016dd4: 683b ldr r3, [r7, #0]
  55373. 8016dd6: 2b00 cmp r3, #0
  55374. 8016dd8: d008 beq.n 8016dec <prvProcessTimerOrBlockTask+0x54>
  55375. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  55376. 8016dda: 4b13 ldr r3, [pc, #76] @ (8016e28 <prvProcessTimerOrBlockTask+0x90>)
  55377. 8016ddc: 681b ldr r3, [r3, #0]
  55378. 8016dde: 681b ldr r3, [r3, #0]
  55379. 8016de0: 2b00 cmp r3, #0
  55380. 8016de2: d101 bne.n 8016de8 <prvProcessTimerOrBlockTask+0x50>
  55381. 8016de4: 2301 movs r3, #1
  55382. 8016de6: e000 b.n 8016dea <prvProcessTimerOrBlockTask+0x52>
  55383. 8016de8: 2300 movs r3, #0
  55384. 8016dea: 603b str r3, [r7, #0]
  55385. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  55386. 8016dec: 4b0f ldr r3, [pc, #60] @ (8016e2c <prvProcessTimerOrBlockTask+0x94>)
  55387. 8016dee: 6818 ldr r0, [r3, #0]
  55388. 8016df0: 687a ldr r2, [r7, #4]
  55389. 8016df2: 68fb ldr r3, [r7, #12]
  55390. 8016df4: 1ad3 subs r3, r2, r3
  55391. 8016df6: 683a ldr r2, [r7, #0]
  55392. 8016df8: 4619 mov r1, r3
  55393. 8016dfa: f7fe f995 bl 8015128 <vQueueWaitForMessageRestricted>
  55394. if( xTaskResumeAll() == pdFALSE )
  55395. 8016dfe: f7fe fdf7 bl 80159f0 <xTaskResumeAll>
  55396. 8016e02: 4603 mov r3, r0
  55397. 8016e04: 2b00 cmp r3, #0
  55398. 8016e06: d10a bne.n 8016e1e <prvProcessTimerOrBlockTask+0x86>
  55399. portYIELD_WITHIN_API();
  55400. 8016e08: 4b09 ldr r3, [pc, #36] @ (8016e30 <prvProcessTimerOrBlockTask+0x98>)
  55401. 8016e0a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  55402. 8016e0e: 601a str r2, [r3, #0]
  55403. 8016e10: f3bf 8f4f dsb sy
  55404. 8016e14: f3bf 8f6f isb sy
  55405. }
  55406. 8016e18: e001 b.n 8016e1e <prvProcessTimerOrBlockTask+0x86>
  55407. ( void ) xTaskResumeAll();
  55408. 8016e1a: f7fe fde9 bl 80159f0 <xTaskResumeAll>
  55409. }
  55410. 8016e1e: bf00 nop
  55411. 8016e20: 3710 adds r7, #16
  55412. 8016e22: 46bd mov sp, r7
  55413. 8016e24: bd80 pop {r7, pc}
  55414. 8016e26: bf00 nop
  55415. 8016e28: 24002bc0 .word 0x24002bc0
  55416. 8016e2c: 24002bc4 .word 0x24002bc4
  55417. 8016e30: e000ed04 .word 0xe000ed04
  55418. 08016e34 <prvGetNextExpireTime>:
  55419. /*-----------------------------------------------------------*/
  55420. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  55421. {
  55422. 8016e34: b480 push {r7}
  55423. 8016e36: b085 sub sp, #20
  55424. 8016e38: af00 add r7, sp, #0
  55425. 8016e3a: 6078 str r0, [r7, #4]
  55426. the timer with the nearest expiry time will expire. If there are no
  55427. active timers then just set the next expire time to 0. That will cause
  55428. this task to unblock when the tick count overflows, at which point the
  55429. timer lists will be switched and the next expiry time can be
  55430. re-assessed. */
  55431. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  55432. 8016e3c: 4b0e ldr r3, [pc, #56] @ (8016e78 <prvGetNextExpireTime+0x44>)
  55433. 8016e3e: 681b ldr r3, [r3, #0]
  55434. 8016e40: 681b ldr r3, [r3, #0]
  55435. 8016e42: 2b00 cmp r3, #0
  55436. 8016e44: d101 bne.n 8016e4a <prvGetNextExpireTime+0x16>
  55437. 8016e46: 2201 movs r2, #1
  55438. 8016e48: e000 b.n 8016e4c <prvGetNextExpireTime+0x18>
  55439. 8016e4a: 2200 movs r2, #0
  55440. 8016e4c: 687b ldr r3, [r7, #4]
  55441. 8016e4e: 601a str r2, [r3, #0]
  55442. if( *pxListWasEmpty == pdFALSE )
  55443. 8016e50: 687b ldr r3, [r7, #4]
  55444. 8016e52: 681b ldr r3, [r3, #0]
  55445. 8016e54: 2b00 cmp r3, #0
  55446. 8016e56: d105 bne.n 8016e64 <prvGetNextExpireTime+0x30>
  55447. {
  55448. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  55449. 8016e58: 4b07 ldr r3, [pc, #28] @ (8016e78 <prvGetNextExpireTime+0x44>)
  55450. 8016e5a: 681b ldr r3, [r3, #0]
  55451. 8016e5c: 68db ldr r3, [r3, #12]
  55452. 8016e5e: 681b ldr r3, [r3, #0]
  55453. 8016e60: 60fb str r3, [r7, #12]
  55454. 8016e62: e001 b.n 8016e68 <prvGetNextExpireTime+0x34>
  55455. }
  55456. else
  55457. {
  55458. /* Ensure the task unblocks when the tick count rolls over. */
  55459. xNextExpireTime = ( TickType_t ) 0U;
  55460. 8016e64: 2300 movs r3, #0
  55461. 8016e66: 60fb str r3, [r7, #12]
  55462. }
  55463. return xNextExpireTime;
  55464. 8016e68: 68fb ldr r3, [r7, #12]
  55465. }
  55466. 8016e6a: 4618 mov r0, r3
  55467. 8016e6c: 3714 adds r7, #20
  55468. 8016e6e: 46bd mov sp, r7
  55469. 8016e70: f85d 7b04 ldr.w r7, [sp], #4
  55470. 8016e74: 4770 bx lr
  55471. 8016e76: bf00 nop
  55472. 8016e78: 24002bbc .word 0x24002bbc
  55473. 08016e7c <prvSampleTimeNow>:
  55474. /*-----------------------------------------------------------*/
  55475. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  55476. {
  55477. 8016e7c: b580 push {r7, lr}
  55478. 8016e7e: b084 sub sp, #16
  55479. 8016e80: af00 add r7, sp, #0
  55480. 8016e82: 6078 str r0, [r7, #4]
  55481. TickType_t xTimeNow;
  55482. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  55483. xTimeNow = xTaskGetTickCount();
  55484. 8016e84: f7fe fe52 bl 8015b2c <xTaskGetTickCount>
  55485. 8016e88: 60f8 str r0, [r7, #12]
  55486. if( xTimeNow < xLastTime )
  55487. 8016e8a: 4b0b ldr r3, [pc, #44] @ (8016eb8 <prvSampleTimeNow+0x3c>)
  55488. 8016e8c: 681b ldr r3, [r3, #0]
  55489. 8016e8e: 68fa ldr r2, [r7, #12]
  55490. 8016e90: 429a cmp r2, r3
  55491. 8016e92: d205 bcs.n 8016ea0 <prvSampleTimeNow+0x24>
  55492. {
  55493. prvSwitchTimerLists();
  55494. 8016e94: f000 f93a bl 801710c <prvSwitchTimerLists>
  55495. *pxTimerListsWereSwitched = pdTRUE;
  55496. 8016e98: 687b ldr r3, [r7, #4]
  55497. 8016e9a: 2201 movs r2, #1
  55498. 8016e9c: 601a str r2, [r3, #0]
  55499. 8016e9e: e002 b.n 8016ea6 <prvSampleTimeNow+0x2a>
  55500. }
  55501. else
  55502. {
  55503. *pxTimerListsWereSwitched = pdFALSE;
  55504. 8016ea0: 687b ldr r3, [r7, #4]
  55505. 8016ea2: 2200 movs r2, #0
  55506. 8016ea4: 601a str r2, [r3, #0]
  55507. }
  55508. xLastTime = xTimeNow;
  55509. 8016ea6: 4a04 ldr r2, [pc, #16] @ (8016eb8 <prvSampleTimeNow+0x3c>)
  55510. 8016ea8: 68fb ldr r3, [r7, #12]
  55511. 8016eaa: 6013 str r3, [r2, #0]
  55512. return xTimeNow;
  55513. 8016eac: 68fb ldr r3, [r7, #12]
  55514. }
  55515. 8016eae: 4618 mov r0, r3
  55516. 8016eb0: 3710 adds r7, #16
  55517. 8016eb2: 46bd mov sp, r7
  55518. 8016eb4: bd80 pop {r7, pc}
  55519. 8016eb6: bf00 nop
  55520. 8016eb8: 24002bcc .word 0x24002bcc
  55521. 08016ebc <prvInsertTimerInActiveList>:
  55522. /*-----------------------------------------------------------*/
  55523. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  55524. {
  55525. 8016ebc: b580 push {r7, lr}
  55526. 8016ebe: b086 sub sp, #24
  55527. 8016ec0: af00 add r7, sp, #0
  55528. 8016ec2: 60f8 str r0, [r7, #12]
  55529. 8016ec4: 60b9 str r1, [r7, #8]
  55530. 8016ec6: 607a str r2, [r7, #4]
  55531. 8016ec8: 603b str r3, [r7, #0]
  55532. BaseType_t xProcessTimerNow = pdFALSE;
  55533. 8016eca: 2300 movs r3, #0
  55534. 8016ecc: 617b str r3, [r7, #20]
  55535. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  55536. 8016ece: 68fb ldr r3, [r7, #12]
  55537. 8016ed0: 68ba ldr r2, [r7, #8]
  55538. 8016ed2: 605a str r2, [r3, #4]
  55539. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  55540. 8016ed4: 68fb ldr r3, [r7, #12]
  55541. 8016ed6: 68fa ldr r2, [r7, #12]
  55542. 8016ed8: 611a str r2, [r3, #16]
  55543. if( xNextExpiryTime <= xTimeNow )
  55544. 8016eda: 68ba ldr r2, [r7, #8]
  55545. 8016edc: 687b ldr r3, [r7, #4]
  55546. 8016ede: 429a cmp r2, r3
  55547. 8016ee0: d812 bhi.n 8016f08 <prvInsertTimerInActiveList+0x4c>
  55548. {
  55549. /* Has the expiry time elapsed between the command to start/reset a
  55550. timer was issued, and the time the command was processed? */
  55551. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  55552. 8016ee2: 687a ldr r2, [r7, #4]
  55553. 8016ee4: 683b ldr r3, [r7, #0]
  55554. 8016ee6: 1ad2 subs r2, r2, r3
  55555. 8016ee8: 68fb ldr r3, [r7, #12]
  55556. 8016eea: 699b ldr r3, [r3, #24]
  55557. 8016eec: 429a cmp r2, r3
  55558. 8016eee: d302 bcc.n 8016ef6 <prvInsertTimerInActiveList+0x3a>
  55559. {
  55560. /* The time between a command being issued and the command being
  55561. processed actually exceeds the timers period. */
  55562. xProcessTimerNow = pdTRUE;
  55563. 8016ef0: 2301 movs r3, #1
  55564. 8016ef2: 617b str r3, [r7, #20]
  55565. 8016ef4: e01b b.n 8016f2e <prvInsertTimerInActiveList+0x72>
  55566. }
  55567. else
  55568. {
  55569. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  55570. 8016ef6: 4b10 ldr r3, [pc, #64] @ (8016f38 <prvInsertTimerInActiveList+0x7c>)
  55571. 8016ef8: 681a ldr r2, [r3, #0]
  55572. 8016efa: 68fb ldr r3, [r7, #12]
  55573. 8016efc: 3304 adds r3, #4
  55574. 8016efe: 4619 mov r1, r3
  55575. 8016f00: 4610 mov r0, r2
  55576. 8016f02: f7fd f94a bl 801419a <vListInsert>
  55577. 8016f06: e012 b.n 8016f2e <prvInsertTimerInActiveList+0x72>
  55578. }
  55579. }
  55580. else
  55581. {
  55582. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  55583. 8016f08: 687a ldr r2, [r7, #4]
  55584. 8016f0a: 683b ldr r3, [r7, #0]
  55585. 8016f0c: 429a cmp r2, r3
  55586. 8016f0e: d206 bcs.n 8016f1e <prvInsertTimerInActiveList+0x62>
  55587. 8016f10: 68ba ldr r2, [r7, #8]
  55588. 8016f12: 683b ldr r3, [r7, #0]
  55589. 8016f14: 429a cmp r2, r3
  55590. 8016f16: d302 bcc.n 8016f1e <prvInsertTimerInActiveList+0x62>
  55591. {
  55592. /* If, since the command was issued, the tick count has overflowed
  55593. but the expiry time has not, then the timer must have already passed
  55594. its expiry time and should be processed immediately. */
  55595. xProcessTimerNow = pdTRUE;
  55596. 8016f18: 2301 movs r3, #1
  55597. 8016f1a: 617b str r3, [r7, #20]
  55598. 8016f1c: e007 b.n 8016f2e <prvInsertTimerInActiveList+0x72>
  55599. }
  55600. else
  55601. {
  55602. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  55603. 8016f1e: 4b07 ldr r3, [pc, #28] @ (8016f3c <prvInsertTimerInActiveList+0x80>)
  55604. 8016f20: 681a ldr r2, [r3, #0]
  55605. 8016f22: 68fb ldr r3, [r7, #12]
  55606. 8016f24: 3304 adds r3, #4
  55607. 8016f26: 4619 mov r1, r3
  55608. 8016f28: 4610 mov r0, r2
  55609. 8016f2a: f7fd f936 bl 801419a <vListInsert>
  55610. }
  55611. }
  55612. return xProcessTimerNow;
  55613. 8016f2e: 697b ldr r3, [r7, #20]
  55614. }
  55615. 8016f30: 4618 mov r0, r3
  55616. 8016f32: 3718 adds r7, #24
  55617. 8016f34: 46bd mov sp, r7
  55618. 8016f36: bd80 pop {r7, pc}
  55619. 8016f38: 24002bc0 .word 0x24002bc0
  55620. 8016f3c: 24002bbc .word 0x24002bbc
  55621. 08016f40 <prvProcessReceivedCommands>:
  55622. /*-----------------------------------------------------------*/
  55623. static void prvProcessReceivedCommands( void )
  55624. {
  55625. 8016f40: b580 push {r7, lr}
  55626. 8016f42: b08e sub sp, #56 @ 0x38
  55627. 8016f44: af02 add r7, sp, #8
  55628. DaemonTaskMessage_t xMessage;
  55629. Timer_t *pxTimer;
  55630. BaseType_t xTimerListsWereSwitched, xResult;
  55631. TickType_t xTimeNow;
  55632. 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. */
  55633. 8016f46: e0ce b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55634. {
  55635. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  55636. {
  55637. /* Negative commands are pended function calls rather than timer
  55638. commands. */
  55639. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  55640. 8016f48: 687b ldr r3, [r7, #4]
  55641. 8016f4a: 2b00 cmp r3, #0
  55642. 8016f4c: da19 bge.n 8016f82 <prvProcessReceivedCommands+0x42>
  55643. {
  55644. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  55645. 8016f4e: 1d3b adds r3, r7, #4
  55646. 8016f50: 3304 adds r3, #4
  55647. 8016f52: 62fb str r3, [r7, #44] @ 0x2c
  55648. /* The timer uses the xCallbackParameters member to request a
  55649. callback be executed. Check the callback is not NULL. */
  55650. configASSERT( pxCallback );
  55651. 8016f54: 6afb ldr r3, [r7, #44] @ 0x2c
  55652. 8016f56: 2b00 cmp r3, #0
  55653. 8016f58: d10b bne.n 8016f72 <prvProcessReceivedCommands+0x32>
  55654. __asm volatile
  55655. 8016f5a: f04f 0350 mov.w r3, #80 @ 0x50
  55656. 8016f5e: f383 8811 msr BASEPRI, r3
  55657. 8016f62: f3bf 8f6f isb sy
  55658. 8016f66: f3bf 8f4f dsb sy
  55659. 8016f6a: 61fb str r3, [r7, #28]
  55660. }
  55661. 8016f6c: bf00 nop
  55662. 8016f6e: bf00 nop
  55663. 8016f70: e7fd b.n 8016f6e <prvProcessReceivedCommands+0x2e>
  55664. /* Call the function. */
  55665. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  55666. 8016f72: 6afb ldr r3, [r7, #44] @ 0x2c
  55667. 8016f74: 681b ldr r3, [r3, #0]
  55668. 8016f76: 6afa ldr r2, [r7, #44] @ 0x2c
  55669. 8016f78: 6850 ldr r0, [r2, #4]
  55670. 8016f7a: 6afa ldr r2, [r7, #44] @ 0x2c
  55671. 8016f7c: 6892 ldr r2, [r2, #8]
  55672. 8016f7e: 4611 mov r1, r2
  55673. 8016f80: 4798 blx r3
  55674. }
  55675. #endif /* INCLUDE_xTimerPendFunctionCall */
  55676. /* Commands that are positive are timer commands rather than pended
  55677. function calls. */
  55678. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  55679. 8016f82: 687b ldr r3, [r7, #4]
  55680. 8016f84: 2b00 cmp r3, #0
  55681. 8016f86: f2c0 80ae blt.w 80170e6 <prvProcessReceivedCommands+0x1a6>
  55682. {
  55683. /* The messages uses the xTimerParameters member to work on a
  55684. software timer. */
  55685. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  55686. 8016f8a: 68fb ldr r3, [r7, #12]
  55687. 8016f8c: 62bb str r3, [r7, #40] @ 0x28
  55688. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  55689. 8016f8e: 6abb ldr r3, [r7, #40] @ 0x28
  55690. 8016f90: 695b ldr r3, [r3, #20]
  55691. 8016f92: 2b00 cmp r3, #0
  55692. 8016f94: d004 beq.n 8016fa0 <prvProcessReceivedCommands+0x60>
  55693. {
  55694. /* The timer is in a list, remove it. */
  55695. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55696. 8016f96: 6abb ldr r3, [r7, #40] @ 0x28
  55697. 8016f98: 3304 adds r3, #4
  55698. 8016f9a: 4618 mov r0, r3
  55699. 8016f9c: f7fd f936 bl 801420c <uxListRemove>
  55700. it must be present in the function call. prvSampleTimeNow() must be
  55701. called after the message is received from xTimerQueue so there is no
  55702. possibility of a higher priority task adding a message to the message
  55703. queue with a time that is ahead of the timer daemon task (because it
  55704. pre-empted the timer daemon task after the xTimeNow value was set). */
  55705. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  55706. 8016fa0: 463b mov r3, r7
  55707. 8016fa2: 4618 mov r0, r3
  55708. 8016fa4: f7ff ff6a bl 8016e7c <prvSampleTimeNow>
  55709. 8016fa8: 6278 str r0, [r7, #36] @ 0x24
  55710. switch( xMessage.xMessageID )
  55711. 8016faa: 687b ldr r3, [r7, #4]
  55712. 8016fac: 2b09 cmp r3, #9
  55713. 8016fae: f200 8097 bhi.w 80170e0 <prvProcessReceivedCommands+0x1a0>
  55714. 8016fb2: a201 add r2, pc, #4 @ (adr r2, 8016fb8 <prvProcessReceivedCommands+0x78>)
  55715. 8016fb4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55716. 8016fb8: 08016fe1 .word 0x08016fe1
  55717. 8016fbc: 08016fe1 .word 0x08016fe1
  55718. 8016fc0: 08016fe1 .word 0x08016fe1
  55719. 8016fc4: 08017057 .word 0x08017057
  55720. 8016fc8: 0801706b .word 0x0801706b
  55721. 8016fcc: 080170b7 .word 0x080170b7
  55722. 8016fd0: 08016fe1 .word 0x08016fe1
  55723. 8016fd4: 08016fe1 .word 0x08016fe1
  55724. 8016fd8: 08017057 .word 0x08017057
  55725. 8016fdc: 0801706b .word 0x0801706b
  55726. case tmrCOMMAND_START_FROM_ISR :
  55727. case tmrCOMMAND_RESET :
  55728. case tmrCOMMAND_RESET_FROM_ISR :
  55729. case tmrCOMMAND_START_DONT_TRACE :
  55730. /* Start or restart a timer. */
  55731. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55732. 8016fe0: 6abb ldr r3, [r7, #40] @ 0x28
  55733. 8016fe2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55734. 8016fe6: f043 0301 orr.w r3, r3, #1
  55735. 8016fea: b2da uxtb r2, r3
  55736. 8016fec: 6abb ldr r3, [r7, #40] @ 0x28
  55737. 8016fee: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55738. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  55739. 8016ff2: 68ba ldr r2, [r7, #8]
  55740. 8016ff4: 6abb ldr r3, [r7, #40] @ 0x28
  55741. 8016ff6: 699b ldr r3, [r3, #24]
  55742. 8016ff8: 18d1 adds r1, r2, r3
  55743. 8016ffa: 68bb ldr r3, [r7, #8]
  55744. 8016ffc: 6a7a ldr r2, [r7, #36] @ 0x24
  55745. 8016ffe: 6ab8 ldr r0, [r7, #40] @ 0x28
  55746. 8017000: f7ff ff5c bl 8016ebc <prvInsertTimerInActiveList>
  55747. 8017004: 4603 mov r3, r0
  55748. 8017006: 2b00 cmp r3, #0
  55749. 8017008: d06c beq.n 80170e4 <prvProcessReceivedCommands+0x1a4>
  55750. {
  55751. /* The timer expired before it was added to the active
  55752. timer list. Process it now. */
  55753. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55754. 801700a: 6abb ldr r3, [r7, #40] @ 0x28
  55755. 801700c: 6a1b ldr r3, [r3, #32]
  55756. 801700e: 6ab8 ldr r0, [r7, #40] @ 0x28
  55757. 8017010: 4798 blx r3
  55758. traceTIMER_EXPIRED( pxTimer );
  55759. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55760. 8017012: 6abb ldr r3, [r7, #40] @ 0x28
  55761. 8017014: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55762. 8017018: f003 0304 and.w r3, r3, #4
  55763. 801701c: 2b00 cmp r3, #0
  55764. 801701e: d061 beq.n 80170e4 <prvProcessReceivedCommands+0x1a4>
  55765. {
  55766. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  55767. 8017020: 68ba ldr r2, [r7, #8]
  55768. 8017022: 6abb ldr r3, [r7, #40] @ 0x28
  55769. 8017024: 699b ldr r3, [r3, #24]
  55770. 8017026: 441a add r2, r3
  55771. 8017028: 2300 movs r3, #0
  55772. 801702a: 9300 str r3, [sp, #0]
  55773. 801702c: 2300 movs r3, #0
  55774. 801702e: 2100 movs r1, #0
  55775. 8017030: 6ab8 ldr r0, [r7, #40] @ 0x28
  55776. 8017032: f7ff fe01 bl 8016c38 <xTimerGenericCommand>
  55777. 8017036: 6238 str r0, [r7, #32]
  55778. configASSERT( xResult );
  55779. 8017038: 6a3b ldr r3, [r7, #32]
  55780. 801703a: 2b00 cmp r3, #0
  55781. 801703c: d152 bne.n 80170e4 <prvProcessReceivedCommands+0x1a4>
  55782. __asm volatile
  55783. 801703e: f04f 0350 mov.w r3, #80 @ 0x50
  55784. 8017042: f383 8811 msr BASEPRI, r3
  55785. 8017046: f3bf 8f6f isb sy
  55786. 801704a: f3bf 8f4f dsb sy
  55787. 801704e: 61bb str r3, [r7, #24]
  55788. }
  55789. 8017050: bf00 nop
  55790. 8017052: bf00 nop
  55791. 8017054: e7fd b.n 8017052 <prvProcessReceivedCommands+0x112>
  55792. break;
  55793. case tmrCOMMAND_STOP :
  55794. case tmrCOMMAND_STOP_FROM_ISR :
  55795. /* The timer has already been removed from the active list. */
  55796. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55797. 8017056: 6abb ldr r3, [r7, #40] @ 0x28
  55798. 8017058: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55799. 801705c: f023 0301 bic.w r3, r3, #1
  55800. 8017060: b2da uxtb r2, r3
  55801. 8017062: 6abb ldr r3, [r7, #40] @ 0x28
  55802. 8017064: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55803. break;
  55804. 8017068: e03d b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55805. case tmrCOMMAND_CHANGE_PERIOD :
  55806. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  55807. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55808. 801706a: 6abb ldr r3, [r7, #40] @ 0x28
  55809. 801706c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55810. 8017070: f043 0301 orr.w r3, r3, #1
  55811. 8017074: b2da uxtb r2, r3
  55812. 8017076: 6abb ldr r3, [r7, #40] @ 0x28
  55813. 8017078: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55814. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  55815. 801707c: 68ba ldr r2, [r7, #8]
  55816. 801707e: 6abb ldr r3, [r7, #40] @ 0x28
  55817. 8017080: 619a str r2, [r3, #24]
  55818. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  55819. 8017082: 6abb ldr r3, [r7, #40] @ 0x28
  55820. 8017084: 699b ldr r3, [r3, #24]
  55821. 8017086: 2b00 cmp r3, #0
  55822. 8017088: d10b bne.n 80170a2 <prvProcessReceivedCommands+0x162>
  55823. __asm volatile
  55824. 801708a: f04f 0350 mov.w r3, #80 @ 0x50
  55825. 801708e: f383 8811 msr BASEPRI, r3
  55826. 8017092: f3bf 8f6f isb sy
  55827. 8017096: f3bf 8f4f dsb sy
  55828. 801709a: 617b str r3, [r7, #20]
  55829. }
  55830. 801709c: bf00 nop
  55831. 801709e: bf00 nop
  55832. 80170a0: e7fd b.n 801709e <prvProcessReceivedCommands+0x15e>
  55833. be longer or shorter than the old one. The command time is
  55834. therefore set to the current time, and as the period cannot
  55835. be zero the next expiry time can only be in the future,
  55836. meaning (unlike for the xTimerStart() case above) there is
  55837. no fail case that needs to be handled here. */
  55838. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  55839. 80170a2: 6abb ldr r3, [r7, #40] @ 0x28
  55840. 80170a4: 699a ldr r2, [r3, #24]
  55841. 80170a6: 6a7b ldr r3, [r7, #36] @ 0x24
  55842. 80170a8: 18d1 adds r1, r2, r3
  55843. 80170aa: 6a7b ldr r3, [r7, #36] @ 0x24
  55844. 80170ac: 6a7a ldr r2, [r7, #36] @ 0x24
  55845. 80170ae: 6ab8 ldr r0, [r7, #40] @ 0x28
  55846. 80170b0: f7ff ff04 bl 8016ebc <prvInsertTimerInActiveList>
  55847. break;
  55848. 80170b4: e017 b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55849. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  55850. {
  55851. /* The timer has already been removed from the active list,
  55852. just free up the memory if the memory was dynamically
  55853. allocated. */
  55854. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  55855. 80170b6: 6abb ldr r3, [r7, #40] @ 0x28
  55856. 80170b8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55857. 80170bc: f003 0302 and.w r3, r3, #2
  55858. 80170c0: 2b00 cmp r3, #0
  55859. 80170c2: d103 bne.n 80170cc <prvProcessReceivedCommands+0x18c>
  55860. {
  55861. vPortFree( pxTimer );
  55862. 80170c4: 6ab8 ldr r0, [r7, #40] @ 0x28
  55863. 80170c6: f000 fc37 bl 8017938 <vPortFree>
  55864. no need to free the memory - just mark the timer as
  55865. "not active". */
  55866. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55867. }
  55868. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  55869. break;
  55870. 80170ca: e00c b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55871. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55872. 80170cc: 6abb ldr r3, [r7, #40] @ 0x28
  55873. 80170ce: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55874. 80170d2: f023 0301 bic.w r3, r3, #1
  55875. 80170d6: b2da uxtb r2, r3
  55876. 80170d8: 6abb ldr r3, [r7, #40] @ 0x28
  55877. 80170da: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55878. break;
  55879. 80170de: e002 b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55880. default :
  55881. /* Don't expect to get here. */
  55882. break;
  55883. 80170e0: bf00 nop
  55884. 80170e2: e000 b.n 80170e6 <prvProcessReceivedCommands+0x1a6>
  55885. break;
  55886. 80170e4: bf00 nop
  55887. 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. */
  55888. 80170e6: 4b08 ldr r3, [pc, #32] @ (8017108 <prvProcessReceivedCommands+0x1c8>)
  55889. 80170e8: 681b ldr r3, [r3, #0]
  55890. 80170ea: 1d39 adds r1, r7, #4
  55891. 80170ec: 2200 movs r2, #0
  55892. 80170ee: 4618 mov r0, r3
  55893. 80170f0: f7fd fc54 bl 801499c <xQueueReceive>
  55894. 80170f4: 4603 mov r3, r0
  55895. 80170f6: 2b00 cmp r3, #0
  55896. 80170f8: f47f af26 bne.w 8016f48 <prvProcessReceivedCommands+0x8>
  55897. }
  55898. }
  55899. }
  55900. }
  55901. 80170fc: bf00 nop
  55902. 80170fe: bf00 nop
  55903. 8017100: 3730 adds r7, #48 @ 0x30
  55904. 8017102: 46bd mov sp, r7
  55905. 8017104: bd80 pop {r7, pc}
  55906. 8017106: bf00 nop
  55907. 8017108: 24002bc4 .word 0x24002bc4
  55908. 0801710c <prvSwitchTimerLists>:
  55909. /*-----------------------------------------------------------*/
  55910. static void prvSwitchTimerLists( void )
  55911. {
  55912. 801710c: b580 push {r7, lr}
  55913. 801710e: b088 sub sp, #32
  55914. 8017110: af02 add r7, sp, #8
  55915. /* The tick count has overflowed. The timer lists must be switched.
  55916. If there are any timers still referenced from the current timer list
  55917. then they must have expired and should be processed before the lists
  55918. are switched. */
  55919. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  55920. 8017112: e049 b.n 80171a8 <prvSwitchTimerLists+0x9c>
  55921. {
  55922. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  55923. 8017114: 4b2e ldr r3, [pc, #184] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  55924. 8017116: 681b ldr r3, [r3, #0]
  55925. 8017118: 68db ldr r3, [r3, #12]
  55926. 801711a: 681b ldr r3, [r3, #0]
  55927. 801711c: 613b str r3, [r7, #16]
  55928. /* Remove the timer from the list. */
  55929. 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. */
  55930. 801711e: 4b2c ldr r3, [pc, #176] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  55931. 8017120: 681b ldr r3, [r3, #0]
  55932. 8017122: 68db ldr r3, [r3, #12]
  55933. 8017124: 68db ldr r3, [r3, #12]
  55934. 8017126: 60fb str r3, [r7, #12]
  55935. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55936. 8017128: 68fb ldr r3, [r7, #12]
  55937. 801712a: 3304 adds r3, #4
  55938. 801712c: 4618 mov r0, r3
  55939. 801712e: f7fd f86d bl 801420c <uxListRemove>
  55940. traceTIMER_EXPIRED( pxTimer );
  55941. /* Execute its callback, then send a command to restart the timer if
  55942. it is an auto-reload timer. It cannot be restarted here as the lists
  55943. have not yet been switched. */
  55944. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55945. 8017132: 68fb ldr r3, [r7, #12]
  55946. 8017134: 6a1b ldr r3, [r3, #32]
  55947. 8017136: 68f8 ldr r0, [r7, #12]
  55948. 8017138: 4798 blx r3
  55949. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55950. 801713a: 68fb ldr r3, [r7, #12]
  55951. 801713c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55952. 8017140: f003 0304 and.w r3, r3, #4
  55953. 8017144: 2b00 cmp r3, #0
  55954. 8017146: d02f beq.n 80171a8 <prvSwitchTimerLists+0x9c>
  55955. the timer going into the same timer list then it has already expired
  55956. and the timer should be re-inserted into the current list so it is
  55957. processed again within this loop. Otherwise a command should be sent
  55958. to restart the timer to ensure it is only inserted into a list after
  55959. the lists have been swapped. */
  55960. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  55961. 8017148: 68fb ldr r3, [r7, #12]
  55962. 801714a: 699b ldr r3, [r3, #24]
  55963. 801714c: 693a ldr r2, [r7, #16]
  55964. 801714e: 4413 add r3, r2
  55965. 8017150: 60bb str r3, [r7, #8]
  55966. if( xReloadTime > xNextExpireTime )
  55967. 8017152: 68ba ldr r2, [r7, #8]
  55968. 8017154: 693b ldr r3, [r7, #16]
  55969. 8017156: 429a cmp r2, r3
  55970. 8017158: d90e bls.n 8017178 <prvSwitchTimerLists+0x6c>
  55971. {
  55972. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  55973. 801715a: 68fb ldr r3, [r7, #12]
  55974. 801715c: 68ba ldr r2, [r7, #8]
  55975. 801715e: 605a str r2, [r3, #4]
  55976. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  55977. 8017160: 68fb ldr r3, [r7, #12]
  55978. 8017162: 68fa ldr r2, [r7, #12]
  55979. 8017164: 611a str r2, [r3, #16]
  55980. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  55981. 8017166: 4b1a ldr r3, [pc, #104] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  55982. 8017168: 681a ldr r2, [r3, #0]
  55983. 801716a: 68fb ldr r3, [r7, #12]
  55984. 801716c: 3304 adds r3, #4
  55985. 801716e: 4619 mov r1, r3
  55986. 8017170: 4610 mov r0, r2
  55987. 8017172: f7fd f812 bl 801419a <vListInsert>
  55988. 8017176: e017 b.n 80171a8 <prvSwitchTimerLists+0x9c>
  55989. }
  55990. else
  55991. {
  55992. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  55993. 8017178: 2300 movs r3, #0
  55994. 801717a: 9300 str r3, [sp, #0]
  55995. 801717c: 2300 movs r3, #0
  55996. 801717e: 693a ldr r2, [r7, #16]
  55997. 8017180: 2100 movs r1, #0
  55998. 8017182: 68f8 ldr r0, [r7, #12]
  55999. 8017184: f7ff fd58 bl 8016c38 <xTimerGenericCommand>
  56000. 8017188: 6078 str r0, [r7, #4]
  56001. configASSERT( xResult );
  56002. 801718a: 687b ldr r3, [r7, #4]
  56003. 801718c: 2b00 cmp r3, #0
  56004. 801718e: d10b bne.n 80171a8 <prvSwitchTimerLists+0x9c>
  56005. __asm volatile
  56006. 8017190: f04f 0350 mov.w r3, #80 @ 0x50
  56007. 8017194: f383 8811 msr BASEPRI, r3
  56008. 8017198: f3bf 8f6f isb sy
  56009. 801719c: f3bf 8f4f dsb sy
  56010. 80171a0: 603b str r3, [r7, #0]
  56011. }
  56012. 80171a2: bf00 nop
  56013. 80171a4: bf00 nop
  56014. 80171a6: e7fd b.n 80171a4 <prvSwitchTimerLists+0x98>
  56015. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56016. 80171a8: 4b09 ldr r3, [pc, #36] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  56017. 80171aa: 681b ldr r3, [r3, #0]
  56018. 80171ac: 681b ldr r3, [r3, #0]
  56019. 80171ae: 2b00 cmp r3, #0
  56020. 80171b0: d1b0 bne.n 8017114 <prvSwitchTimerLists+0x8>
  56021. {
  56022. mtCOVERAGE_TEST_MARKER();
  56023. }
  56024. }
  56025. pxTemp = pxCurrentTimerList;
  56026. 80171b2: 4b07 ldr r3, [pc, #28] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  56027. 80171b4: 681b ldr r3, [r3, #0]
  56028. 80171b6: 617b str r3, [r7, #20]
  56029. pxCurrentTimerList = pxOverflowTimerList;
  56030. 80171b8: 4b06 ldr r3, [pc, #24] @ (80171d4 <prvSwitchTimerLists+0xc8>)
  56031. 80171ba: 681b ldr r3, [r3, #0]
  56032. 80171bc: 4a04 ldr r2, [pc, #16] @ (80171d0 <prvSwitchTimerLists+0xc4>)
  56033. 80171be: 6013 str r3, [r2, #0]
  56034. pxOverflowTimerList = pxTemp;
  56035. 80171c0: 4a04 ldr r2, [pc, #16] @ (80171d4 <prvSwitchTimerLists+0xc8>)
  56036. 80171c2: 697b ldr r3, [r7, #20]
  56037. 80171c4: 6013 str r3, [r2, #0]
  56038. }
  56039. 80171c6: bf00 nop
  56040. 80171c8: 3718 adds r7, #24
  56041. 80171ca: 46bd mov sp, r7
  56042. 80171cc: bd80 pop {r7, pc}
  56043. 80171ce: bf00 nop
  56044. 80171d0: 24002bbc .word 0x24002bbc
  56045. 80171d4: 24002bc0 .word 0x24002bc0
  56046. 080171d8 <prvCheckForValidListAndQueue>:
  56047. /*-----------------------------------------------------------*/
  56048. static void prvCheckForValidListAndQueue( void )
  56049. {
  56050. 80171d8: b580 push {r7, lr}
  56051. 80171da: b082 sub sp, #8
  56052. 80171dc: af02 add r7, sp, #8
  56053. /* Check that the list from which active timers are referenced, and the
  56054. queue used to communicate with the timer service, have been
  56055. initialised. */
  56056. taskENTER_CRITICAL();
  56057. 80171de: f000 f9bb bl 8017558 <vPortEnterCritical>
  56058. {
  56059. if( xTimerQueue == NULL )
  56060. 80171e2: 4b15 ldr r3, [pc, #84] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56061. 80171e4: 681b ldr r3, [r3, #0]
  56062. 80171e6: 2b00 cmp r3, #0
  56063. 80171e8: d120 bne.n 801722c <prvCheckForValidListAndQueue+0x54>
  56064. {
  56065. vListInitialise( &xActiveTimerList1 );
  56066. 80171ea: 4814 ldr r0, [pc, #80] @ (801723c <prvCheckForValidListAndQueue+0x64>)
  56067. 80171ec: f7fc ff84 bl 80140f8 <vListInitialise>
  56068. vListInitialise( &xActiveTimerList2 );
  56069. 80171f0: 4813 ldr r0, [pc, #76] @ (8017240 <prvCheckForValidListAndQueue+0x68>)
  56070. 80171f2: f7fc ff81 bl 80140f8 <vListInitialise>
  56071. pxCurrentTimerList = &xActiveTimerList1;
  56072. 80171f6: 4b13 ldr r3, [pc, #76] @ (8017244 <prvCheckForValidListAndQueue+0x6c>)
  56073. 80171f8: 4a10 ldr r2, [pc, #64] @ (801723c <prvCheckForValidListAndQueue+0x64>)
  56074. 80171fa: 601a str r2, [r3, #0]
  56075. pxOverflowTimerList = &xActiveTimerList2;
  56076. 80171fc: 4b12 ldr r3, [pc, #72] @ (8017248 <prvCheckForValidListAndQueue+0x70>)
  56077. 80171fe: 4a10 ldr r2, [pc, #64] @ (8017240 <prvCheckForValidListAndQueue+0x68>)
  56078. 8017200: 601a str r2, [r3, #0]
  56079. /* The timer queue is allocated statically in case
  56080. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  56081. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  56082. 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. */
  56083. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  56084. 8017202: 2300 movs r3, #0
  56085. 8017204: 9300 str r3, [sp, #0]
  56086. 8017206: 4b11 ldr r3, [pc, #68] @ (801724c <prvCheckForValidListAndQueue+0x74>)
  56087. 8017208: 4a11 ldr r2, [pc, #68] @ (8017250 <prvCheckForValidListAndQueue+0x78>)
  56088. 801720a: 2110 movs r1, #16
  56089. 801720c: 200a movs r0, #10
  56090. 801720e: f7fd f891 bl 8014334 <xQueueGenericCreateStatic>
  56091. 8017212: 4603 mov r3, r0
  56092. 8017214: 4a08 ldr r2, [pc, #32] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56093. 8017216: 6013 str r3, [r2, #0]
  56094. }
  56095. #endif
  56096. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  56097. {
  56098. if( xTimerQueue != NULL )
  56099. 8017218: 4b07 ldr r3, [pc, #28] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56100. 801721a: 681b ldr r3, [r3, #0]
  56101. 801721c: 2b00 cmp r3, #0
  56102. 801721e: d005 beq.n 801722c <prvCheckForValidListAndQueue+0x54>
  56103. {
  56104. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  56105. 8017220: 4b05 ldr r3, [pc, #20] @ (8017238 <prvCheckForValidListAndQueue+0x60>)
  56106. 8017222: 681b ldr r3, [r3, #0]
  56107. 8017224: 490b ldr r1, [pc, #44] @ (8017254 <prvCheckForValidListAndQueue+0x7c>)
  56108. 8017226: 4618 mov r0, r3
  56109. 8017228: f7fd ff54 bl 80150d4 <vQueueAddToRegistry>
  56110. else
  56111. {
  56112. mtCOVERAGE_TEST_MARKER();
  56113. }
  56114. }
  56115. taskEXIT_CRITICAL();
  56116. 801722c: f000 f9c6 bl 80175bc <vPortExitCritical>
  56117. }
  56118. 8017230: bf00 nop
  56119. 8017232: 46bd mov sp, r7
  56120. 8017234: bd80 pop {r7, pc}
  56121. 8017236: bf00 nop
  56122. 8017238: 24002bc4 .word 0x24002bc4
  56123. 801723c: 24002b94 .word 0x24002b94
  56124. 8017240: 24002ba8 .word 0x24002ba8
  56125. 8017244: 24002bbc .word 0x24002bbc
  56126. 8017248: 24002bc0 .word 0x24002bc0
  56127. 801724c: 24002c70 .word 0x24002c70
  56128. 8017250: 24002bd0 .word 0x24002bd0
  56129. 8017254: 08018bac .word 0x08018bac
  56130. 08017258 <xTimerIsTimerActive>:
  56131. /*-----------------------------------------------------------*/
  56132. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  56133. {
  56134. 8017258: b580 push {r7, lr}
  56135. 801725a: b086 sub sp, #24
  56136. 801725c: af00 add r7, sp, #0
  56137. 801725e: 6078 str r0, [r7, #4]
  56138. BaseType_t xReturn;
  56139. Timer_t *pxTimer = xTimer;
  56140. 8017260: 687b ldr r3, [r7, #4]
  56141. 8017262: 613b str r3, [r7, #16]
  56142. configASSERT( xTimer );
  56143. 8017264: 687b ldr r3, [r7, #4]
  56144. 8017266: 2b00 cmp r3, #0
  56145. 8017268: d10b bne.n 8017282 <xTimerIsTimerActive+0x2a>
  56146. __asm volatile
  56147. 801726a: f04f 0350 mov.w r3, #80 @ 0x50
  56148. 801726e: f383 8811 msr BASEPRI, r3
  56149. 8017272: f3bf 8f6f isb sy
  56150. 8017276: f3bf 8f4f dsb sy
  56151. 801727a: 60fb str r3, [r7, #12]
  56152. }
  56153. 801727c: bf00 nop
  56154. 801727e: bf00 nop
  56155. 8017280: e7fd b.n 801727e <xTimerIsTimerActive+0x26>
  56156. /* Is the timer in the list of active timers? */
  56157. taskENTER_CRITICAL();
  56158. 8017282: f000 f969 bl 8017558 <vPortEnterCritical>
  56159. {
  56160. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  56161. 8017286: 693b ldr r3, [r7, #16]
  56162. 8017288: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56163. 801728c: f003 0301 and.w r3, r3, #1
  56164. 8017290: 2b00 cmp r3, #0
  56165. 8017292: d102 bne.n 801729a <xTimerIsTimerActive+0x42>
  56166. {
  56167. xReturn = pdFALSE;
  56168. 8017294: 2300 movs r3, #0
  56169. 8017296: 617b str r3, [r7, #20]
  56170. 8017298: e001 b.n 801729e <xTimerIsTimerActive+0x46>
  56171. }
  56172. else
  56173. {
  56174. xReturn = pdTRUE;
  56175. 801729a: 2301 movs r3, #1
  56176. 801729c: 617b str r3, [r7, #20]
  56177. }
  56178. }
  56179. taskEXIT_CRITICAL();
  56180. 801729e: f000 f98d bl 80175bc <vPortExitCritical>
  56181. return xReturn;
  56182. 80172a2: 697b ldr r3, [r7, #20]
  56183. } /*lint !e818 Can't be pointer to const due to the typedef. */
  56184. 80172a4: 4618 mov r0, r3
  56185. 80172a6: 3718 adds r7, #24
  56186. 80172a8: 46bd mov sp, r7
  56187. 80172aa: bd80 pop {r7, pc}
  56188. 080172ac <pvTimerGetTimerID>:
  56189. /*-----------------------------------------------------------*/
  56190. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  56191. {
  56192. 80172ac: b580 push {r7, lr}
  56193. 80172ae: b086 sub sp, #24
  56194. 80172b0: af00 add r7, sp, #0
  56195. 80172b2: 6078 str r0, [r7, #4]
  56196. Timer_t * const pxTimer = xTimer;
  56197. 80172b4: 687b ldr r3, [r7, #4]
  56198. 80172b6: 617b str r3, [r7, #20]
  56199. void *pvReturn;
  56200. configASSERT( xTimer );
  56201. 80172b8: 687b ldr r3, [r7, #4]
  56202. 80172ba: 2b00 cmp r3, #0
  56203. 80172bc: d10b bne.n 80172d6 <pvTimerGetTimerID+0x2a>
  56204. __asm volatile
  56205. 80172be: f04f 0350 mov.w r3, #80 @ 0x50
  56206. 80172c2: f383 8811 msr BASEPRI, r3
  56207. 80172c6: f3bf 8f6f isb sy
  56208. 80172ca: f3bf 8f4f dsb sy
  56209. 80172ce: 60fb str r3, [r7, #12]
  56210. }
  56211. 80172d0: bf00 nop
  56212. 80172d2: bf00 nop
  56213. 80172d4: e7fd b.n 80172d2 <pvTimerGetTimerID+0x26>
  56214. taskENTER_CRITICAL();
  56215. 80172d6: f000 f93f bl 8017558 <vPortEnterCritical>
  56216. {
  56217. pvReturn = pxTimer->pvTimerID;
  56218. 80172da: 697b ldr r3, [r7, #20]
  56219. 80172dc: 69db ldr r3, [r3, #28]
  56220. 80172de: 613b str r3, [r7, #16]
  56221. }
  56222. taskEXIT_CRITICAL();
  56223. 80172e0: f000 f96c bl 80175bc <vPortExitCritical>
  56224. return pvReturn;
  56225. 80172e4: 693b ldr r3, [r7, #16]
  56226. }
  56227. 80172e6: 4618 mov r0, r3
  56228. 80172e8: 3718 adds r7, #24
  56229. 80172ea: 46bd mov sp, r7
  56230. 80172ec: bd80 pop {r7, pc}
  56231. ...
  56232. 080172f0 <pxPortInitialiseStack>:
  56233. /*
  56234. * See header file for description.
  56235. */
  56236. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  56237. {
  56238. 80172f0: b480 push {r7}
  56239. 80172f2: b085 sub sp, #20
  56240. 80172f4: af00 add r7, sp, #0
  56241. 80172f6: 60f8 str r0, [r7, #12]
  56242. 80172f8: 60b9 str r1, [r7, #8]
  56243. 80172fa: 607a str r2, [r7, #4]
  56244. /* Simulate the stack frame as it would be created by a context switch
  56245. interrupt. */
  56246. /* Offset added to account for the way the MCU uses the stack on entry/exit
  56247. of interrupts, and to ensure alignment. */
  56248. pxTopOfStack--;
  56249. 80172fc: 68fb ldr r3, [r7, #12]
  56250. 80172fe: 3b04 subs r3, #4
  56251. 8017300: 60fb str r3, [r7, #12]
  56252. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  56253. 8017302: 68fb ldr r3, [r7, #12]
  56254. 8017304: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  56255. 8017308: 601a str r2, [r3, #0]
  56256. pxTopOfStack--;
  56257. 801730a: 68fb ldr r3, [r7, #12]
  56258. 801730c: 3b04 subs r3, #4
  56259. 801730e: 60fb str r3, [r7, #12]
  56260. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  56261. 8017310: 68bb ldr r3, [r7, #8]
  56262. 8017312: f023 0201 bic.w r2, r3, #1
  56263. 8017316: 68fb ldr r3, [r7, #12]
  56264. 8017318: 601a str r2, [r3, #0]
  56265. pxTopOfStack--;
  56266. 801731a: 68fb ldr r3, [r7, #12]
  56267. 801731c: 3b04 subs r3, #4
  56268. 801731e: 60fb str r3, [r7, #12]
  56269. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  56270. 8017320: 4a0c ldr r2, [pc, #48] @ (8017354 <pxPortInitialiseStack+0x64>)
  56271. 8017322: 68fb ldr r3, [r7, #12]
  56272. 8017324: 601a str r2, [r3, #0]
  56273. /* Save code space by skipping register initialisation. */
  56274. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  56275. 8017326: 68fb ldr r3, [r7, #12]
  56276. 8017328: 3b14 subs r3, #20
  56277. 801732a: 60fb str r3, [r7, #12]
  56278. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  56279. 801732c: 687a ldr r2, [r7, #4]
  56280. 801732e: 68fb ldr r3, [r7, #12]
  56281. 8017330: 601a str r2, [r3, #0]
  56282. /* A save method is being used that requires each task to maintain its
  56283. own exec return value. */
  56284. pxTopOfStack--;
  56285. 8017332: 68fb ldr r3, [r7, #12]
  56286. 8017334: 3b04 subs r3, #4
  56287. 8017336: 60fb str r3, [r7, #12]
  56288. *pxTopOfStack = portINITIAL_EXC_RETURN;
  56289. 8017338: 68fb ldr r3, [r7, #12]
  56290. 801733a: f06f 0202 mvn.w r2, #2
  56291. 801733e: 601a str r2, [r3, #0]
  56292. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  56293. 8017340: 68fb ldr r3, [r7, #12]
  56294. 8017342: 3b20 subs r3, #32
  56295. 8017344: 60fb str r3, [r7, #12]
  56296. return pxTopOfStack;
  56297. 8017346: 68fb ldr r3, [r7, #12]
  56298. }
  56299. 8017348: 4618 mov r0, r3
  56300. 801734a: 3714 adds r7, #20
  56301. 801734c: 46bd mov sp, r7
  56302. 801734e: f85d 7b04 ldr.w r7, [sp], #4
  56303. 8017352: 4770 bx lr
  56304. 8017354: 08017359 .word 0x08017359
  56305. 08017358 <prvTaskExitError>:
  56306. /*-----------------------------------------------------------*/
  56307. static void prvTaskExitError( void )
  56308. {
  56309. 8017358: b480 push {r7}
  56310. 801735a: b085 sub sp, #20
  56311. 801735c: af00 add r7, sp, #0
  56312. volatile uint32_t ulDummy = 0;
  56313. 801735e: 2300 movs r3, #0
  56314. 8017360: 607b str r3, [r7, #4]
  56315. its caller as there is nothing to return to. If a task wants to exit it
  56316. should instead call vTaskDelete( NULL ).
  56317. Artificially force an assert() to be triggered if configASSERT() is
  56318. defined, then stop here so application writers can catch the error. */
  56319. configASSERT( uxCriticalNesting == ~0UL );
  56320. 8017362: 4b13 ldr r3, [pc, #76] @ (80173b0 <prvTaskExitError+0x58>)
  56321. 8017364: 681b ldr r3, [r3, #0]
  56322. 8017366: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  56323. 801736a: d00b beq.n 8017384 <prvTaskExitError+0x2c>
  56324. __asm volatile
  56325. 801736c: f04f 0350 mov.w r3, #80 @ 0x50
  56326. 8017370: f383 8811 msr BASEPRI, r3
  56327. 8017374: f3bf 8f6f isb sy
  56328. 8017378: f3bf 8f4f dsb sy
  56329. 801737c: 60fb str r3, [r7, #12]
  56330. }
  56331. 801737e: bf00 nop
  56332. 8017380: bf00 nop
  56333. 8017382: e7fd b.n 8017380 <prvTaskExitError+0x28>
  56334. __asm volatile
  56335. 8017384: f04f 0350 mov.w r3, #80 @ 0x50
  56336. 8017388: f383 8811 msr BASEPRI, r3
  56337. 801738c: f3bf 8f6f isb sy
  56338. 8017390: f3bf 8f4f dsb sy
  56339. 8017394: 60bb str r3, [r7, #8]
  56340. }
  56341. 8017396: bf00 nop
  56342. portDISABLE_INTERRUPTS();
  56343. while( ulDummy == 0 )
  56344. 8017398: bf00 nop
  56345. 801739a: 687b ldr r3, [r7, #4]
  56346. 801739c: 2b00 cmp r3, #0
  56347. 801739e: d0fc beq.n 801739a <prvTaskExitError+0x42>
  56348. about code appearing after this function is called - making ulDummy
  56349. volatile makes the compiler think the function could return and
  56350. therefore not output an 'unreachable code' warning for code that appears
  56351. after it. */
  56352. }
  56353. }
  56354. 80173a0: bf00 nop
  56355. 80173a2: bf00 nop
  56356. 80173a4: 3714 adds r7, #20
  56357. 80173a6: 46bd mov sp, r7
  56358. 80173a8: f85d 7b04 ldr.w r7, [sp], #4
  56359. 80173ac: 4770 bx lr
  56360. 80173ae: bf00 nop
  56361. 80173b0: 24000044 .word 0x24000044
  56362. ...
  56363. 080173c0 <SVC_Handler>:
  56364. /*-----------------------------------------------------------*/
  56365. void vPortSVCHandler( void )
  56366. {
  56367. __asm volatile (
  56368. 80173c0: 4b07 ldr r3, [pc, #28] @ (80173e0 <pxCurrentTCBConst2>)
  56369. 80173c2: 6819 ldr r1, [r3, #0]
  56370. 80173c4: 6808 ldr r0, [r1, #0]
  56371. 80173c6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56372. 80173ca: f380 8809 msr PSP, r0
  56373. 80173ce: f3bf 8f6f isb sy
  56374. 80173d2: f04f 0000 mov.w r0, #0
  56375. 80173d6: f380 8811 msr BASEPRI, r0
  56376. 80173da: 4770 bx lr
  56377. 80173dc: f3af 8000 nop.w
  56378. 080173e0 <pxCurrentTCBConst2>:
  56379. 80173e0: 24002694 .word 0x24002694
  56380. " bx r14 \n"
  56381. " \n"
  56382. " .align 4 \n"
  56383. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  56384. );
  56385. }
  56386. 80173e4: bf00 nop
  56387. 80173e6: bf00 nop
  56388. 080173e8 <prvPortStartFirstTask>:
  56389. {
  56390. /* Start the first task. This also clears the bit that indicates the FPU is
  56391. in use in case the FPU was used before the scheduler was started - which
  56392. would otherwise result in the unnecessary leaving of space in the SVC stack
  56393. for lazy saving of FPU registers. */
  56394. __asm volatile(
  56395. 80173e8: 4808 ldr r0, [pc, #32] @ (801740c <prvPortStartFirstTask+0x24>)
  56396. 80173ea: 6800 ldr r0, [r0, #0]
  56397. 80173ec: 6800 ldr r0, [r0, #0]
  56398. 80173ee: f380 8808 msr MSP, r0
  56399. 80173f2: f04f 0000 mov.w r0, #0
  56400. 80173f6: f380 8814 msr CONTROL, r0
  56401. 80173fa: b662 cpsie i
  56402. 80173fc: b661 cpsie f
  56403. 80173fe: f3bf 8f4f dsb sy
  56404. 8017402: f3bf 8f6f isb sy
  56405. 8017406: df00 svc 0
  56406. 8017408: bf00 nop
  56407. " dsb \n"
  56408. " isb \n"
  56409. " svc 0 \n" /* System call to start first task. */
  56410. " nop \n"
  56411. );
  56412. }
  56413. 801740a: bf00 nop
  56414. 801740c: e000ed08 .word 0xe000ed08
  56415. 08017410 <xPortStartScheduler>:
  56416. /*
  56417. * See header file for description.
  56418. */
  56419. BaseType_t xPortStartScheduler( void )
  56420. {
  56421. 8017410: b580 push {r7, lr}
  56422. 8017412: b086 sub sp, #24
  56423. 8017414: af00 add r7, sp, #0
  56424. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  56425. /* This port can be used on all revisions of the Cortex-M7 core other than
  56426. the r0p1 parts. r0p1 parts should use the port from the
  56427. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  56428. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  56429. 8017416: 4b47 ldr r3, [pc, #284] @ (8017534 <xPortStartScheduler+0x124>)
  56430. 8017418: 681b ldr r3, [r3, #0]
  56431. 801741a: 4a47 ldr r2, [pc, #284] @ (8017538 <xPortStartScheduler+0x128>)
  56432. 801741c: 4293 cmp r3, r2
  56433. 801741e: d10b bne.n 8017438 <xPortStartScheduler+0x28>
  56434. __asm volatile
  56435. 8017420: f04f 0350 mov.w r3, #80 @ 0x50
  56436. 8017424: f383 8811 msr BASEPRI, r3
  56437. 8017428: f3bf 8f6f isb sy
  56438. 801742c: f3bf 8f4f dsb sy
  56439. 8017430: 613b str r3, [r7, #16]
  56440. }
  56441. 8017432: bf00 nop
  56442. 8017434: bf00 nop
  56443. 8017436: e7fd b.n 8017434 <xPortStartScheduler+0x24>
  56444. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  56445. 8017438: 4b3e ldr r3, [pc, #248] @ (8017534 <xPortStartScheduler+0x124>)
  56446. 801743a: 681b ldr r3, [r3, #0]
  56447. 801743c: 4a3f ldr r2, [pc, #252] @ (801753c <xPortStartScheduler+0x12c>)
  56448. 801743e: 4293 cmp r3, r2
  56449. 8017440: d10b bne.n 801745a <xPortStartScheduler+0x4a>
  56450. __asm volatile
  56451. 8017442: f04f 0350 mov.w r3, #80 @ 0x50
  56452. 8017446: f383 8811 msr BASEPRI, r3
  56453. 801744a: f3bf 8f6f isb sy
  56454. 801744e: f3bf 8f4f dsb sy
  56455. 8017452: 60fb str r3, [r7, #12]
  56456. }
  56457. 8017454: bf00 nop
  56458. 8017456: bf00 nop
  56459. 8017458: e7fd b.n 8017456 <xPortStartScheduler+0x46>
  56460. #if( configASSERT_DEFINED == 1 )
  56461. {
  56462. volatile uint32_t ulOriginalPriority;
  56463. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  56464. 801745a: 4b39 ldr r3, [pc, #228] @ (8017540 <xPortStartScheduler+0x130>)
  56465. 801745c: 617b str r3, [r7, #20]
  56466. functions can be called. ISR safe functions are those that end in
  56467. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  56468. ensure interrupt entry is as fast and simple as possible.
  56469. Save the interrupt priority value that is about to be clobbered. */
  56470. ulOriginalPriority = *pucFirstUserPriorityRegister;
  56471. 801745e: 697b ldr r3, [r7, #20]
  56472. 8017460: 781b ldrb r3, [r3, #0]
  56473. 8017462: b2db uxtb r3, r3
  56474. 8017464: 607b str r3, [r7, #4]
  56475. /* Determine the number of priority bits available. First write to all
  56476. possible bits. */
  56477. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  56478. 8017466: 697b ldr r3, [r7, #20]
  56479. 8017468: 22ff movs r2, #255 @ 0xff
  56480. 801746a: 701a strb r2, [r3, #0]
  56481. /* Read the value back to see how many bits stuck. */
  56482. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  56483. 801746c: 697b ldr r3, [r7, #20]
  56484. 801746e: 781b ldrb r3, [r3, #0]
  56485. 8017470: b2db uxtb r3, r3
  56486. 8017472: 70fb strb r3, [r7, #3]
  56487. /* Use the same mask on the maximum system call priority. */
  56488. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  56489. 8017474: 78fb ldrb r3, [r7, #3]
  56490. 8017476: b2db uxtb r3, r3
  56491. 8017478: f003 0350 and.w r3, r3, #80 @ 0x50
  56492. 801747c: b2da uxtb r2, r3
  56493. 801747e: 4b31 ldr r3, [pc, #196] @ (8017544 <xPortStartScheduler+0x134>)
  56494. 8017480: 701a strb r2, [r3, #0]
  56495. /* Calculate the maximum acceptable priority group value for the number
  56496. of bits read back. */
  56497. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  56498. 8017482: 4b31 ldr r3, [pc, #196] @ (8017548 <xPortStartScheduler+0x138>)
  56499. 8017484: 2207 movs r2, #7
  56500. 8017486: 601a str r2, [r3, #0]
  56501. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  56502. 8017488: e009 b.n 801749e <xPortStartScheduler+0x8e>
  56503. {
  56504. ulMaxPRIGROUPValue--;
  56505. 801748a: 4b2f ldr r3, [pc, #188] @ (8017548 <xPortStartScheduler+0x138>)
  56506. 801748c: 681b ldr r3, [r3, #0]
  56507. 801748e: 3b01 subs r3, #1
  56508. 8017490: 4a2d ldr r2, [pc, #180] @ (8017548 <xPortStartScheduler+0x138>)
  56509. 8017492: 6013 str r3, [r2, #0]
  56510. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  56511. 8017494: 78fb ldrb r3, [r7, #3]
  56512. 8017496: b2db uxtb r3, r3
  56513. 8017498: 005b lsls r3, r3, #1
  56514. 801749a: b2db uxtb r3, r3
  56515. 801749c: 70fb strb r3, [r7, #3]
  56516. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  56517. 801749e: 78fb ldrb r3, [r7, #3]
  56518. 80174a0: b2db uxtb r3, r3
  56519. 80174a2: f003 0380 and.w r3, r3, #128 @ 0x80
  56520. 80174a6: 2b80 cmp r3, #128 @ 0x80
  56521. 80174a8: d0ef beq.n 801748a <xPortStartScheduler+0x7a>
  56522. #ifdef configPRIO_BITS
  56523. {
  56524. /* Check the FreeRTOS configuration that defines the number of
  56525. priority bits matches the number of priority bits actually queried
  56526. from the hardware. */
  56527. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  56528. 80174aa: 4b27 ldr r3, [pc, #156] @ (8017548 <xPortStartScheduler+0x138>)
  56529. 80174ac: 681b ldr r3, [r3, #0]
  56530. 80174ae: f1c3 0307 rsb r3, r3, #7
  56531. 80174b2: 2b04 cmp r3, #4
  56532. 80174b4: d00b beq.n 80174ce <xPortStartScheduler+0xbe>
  56533. __asm volatile
  56534. 80174b6: f04f 0350 mov.w r3, #80 @ 0x50
  56535. 80174ba: f383 8811 msr BASEPRI, r3
  56536. 80174be: f3bf 8f6f isb sy
  56537. 80174c2: f3bf 8f4f dsb sy
  56538. 80174c6: 60bb str r3, [r7, #8]
  56539. }
  56540. 80174c8: bf00 nop
  56541. 80174ca: bf00 nop
  56542. 80174cc: e7fd b.n 80174ca <xPortStartScheduler+0xba>
  56543. }
  56544. #endif
  56545. /* Shift the priority group value back to its position within the AIRCR
  56546. register. */
  56547. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  56548. 80174ce: 4b1e ldr r3, [pc, #120] @ (8017548 <xPortStartScheduler+0x138>)
  56549. 80174d0: 681b ldr r3, [r3, #0]
  56550. 80174d2: 021b lsls r3, r3, #8
  56551. 80174d4: 4a1c ldr r2, [pc, #112] @ (8017548 <xPortStartScheduler+0x138>)
  56552. 80174d6: 6013 str r3, [r2, #0]
  56553. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  56554. 80174d8: 4b1b ldr r3, [pc, #108] @ (8017548 <xPortStartScheduler+0x138>)
  56555. 80174da: 681b ldr r3, [r3, #0]
  56556. 80174dc: f403 63e0 and.w r3, r3, #1792 @ 0x700
  56557. 80174e0: 4a19 ldr r2, [pc, #100] @ (8017548 <xPortStartScheduler+0x138>)
  56558. 80174e2: 6013 str r3, [r2, #0]
  56559. /* Restore the clobbered interrupt priority register to its original
  56560. value. */
  56561. *pucFirstUserPriorityRegister = ulOriginalPriority;
  56562. 80174e4: 687b ldr r3, [r7, #4]
  56563. 80174e6: b2da uxtb r2, r3
  56564. 80174e8: 697b ldr r3, [r7, #20]
  56565. 80174ea: 701a strb r2, [r3, #0]
  56566. }
  56567. #endif /* conifgASSERT_DEFINED */
  56568. /* Make PendSV and SysTick the lowest priority interrupts. */
  56569. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  56570. 80174ec: 4b17 ldr r3, [pc, #92] @ (801754c <xPortStartScheduler+0x13c>)
  56571. 80174ee: 681b ldr r3, [r3, #0]
  56572. 80174f0: 4a16 ldr r2, [pc, #88] @ (801754c <xPortStartScheduler+0x13c>)
  56573. 80174f2: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  56574. 80174f6: 6013 str r3, [r2, #0]
  56575. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  56576. 80174f8: 4b14 ldr r3, [pc, #80] @ (801754c <xPortStartScheduler+0x13c>)
  56577. 80174fa: 681b ldr r3, [r3, #0]
  56578. 80174fc: 4a13 ldr r2, [pc, #76] @ (801754c <xPortStartScheduler+0x13c>)
  56579. 80174fe: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  56580. 8017502: 6013 str r3, [r2, #0]
  56581. /* Start the timer that generates the tick ISR. Interrupts are disabled
  56582. here already. */
  56583. vPortSetupTimerInterrupt();
  56584. 8017504: f000 f8da bl 80176bc <vPortSetupTimerInterrupt>
  56585. /* Initialise the critical nesting count ready for the first task. */
  56586. uxCriticalNesting = 0;
  56587. 8017508: 4b11 ldr r3, [pc, #68] @ (8017550 <xPortStartScheduler+0x140>)
  56588. 801750a: 2200 movs r2, #0
  56589. 801750c: 601a str r2, [r3, #0]
  56590. /* Ensure the VFP is enabled - it should be anyway. */
  56591. vPortEnableVFP();
  56592. 801750e: f000 f8f9 bl 8017704 <vPortEnableVFP>
  56593. /* Lazy save always. */
  56594. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  56595. 8017512: 4b10 ldr r3, [pc, #64] @ (8017554 <xPortStartScheduler+0x144>)
  56596. 8017514: 681b ldr r3, [r3, #0]
  56597. 8017516: 4a0f ldr r2, [pc, #60] @ (8017554 <xPortStartScheduler+0x144>)
  56598. 8017518: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  56599. 801751c: 6013 str r3, [r2, #0]
  56600. /* Start the first task. */
  56601. prvPortStartFirstTask();
  56602. 801751e: f7ff ff63 bl 80173e8 <prvPortStartFirstTask>
  56603. exit error function to prevent compiler warnings about a static function
  56604. not being called in the case that the application writer overrides this
  56605. functionality by defining configTASK_RETURN_ADDRESS. Call
  56606. vTaskSwitchContext() so link time optimisation does not remove the
  56607. symbol. */
  56608. vTaskSwitchContext();
  56609. 8017522: f7fe fbcd bl 8015cc0 <vTaskSwitchContext>
  56610. prvTaskExitError();
  56611. 8017526: f7ff ff17 bl 8017358 <prvTaskExitError>
  56612. /* Should not get here! */
  56613. return 0;
  56614. 801752a: 2300 movs r3, #0
  56615. }
  56616. 801752c: 4618 mov r0, r3
  56617. 801752e: 3718 adds r7, #24
  56618. 8017530: 46bd mov sp, r7
  56619. 8017532: bd80 pop {r7, pc}
  56620. 8017534: e000ed00 .word 0xe000ed00
  56621. 8017538: 410fc271 .word 0x410fc271
  56622. 801753c: 410fc270 .word 0x410fc270
  56623. 8017540: e000e400 .word 0xe000e400
  56624. 8017544: 24002cc0 .word 0x24002cc0
  56625. 8017548: 24002cc4 .word 0x24002cc4
  56626. 801754c: e000ed20 .word 0xe000ed20
  56627. 8017550: 24000044 .word 0x24000044
  56628. 8017554: e000ef34 .word 0xe000ef34
  56629. 08017558 <vPortEnterCritical>:
  56630. configASSERT( uxCriticalNesting == 1000UL );
  56631. }
  56632. /*-----------------------------------------------------------*/
  56633. void vPortEnterCritical( void )
  56634. {
  56635. 8017558: b480 push {r7}
  56636. 801755a: b083 sub sp, #12
  56637. 801755c: af00 add r7, sp, #0
  56638. __asm volatile
  56639. 801755e: f04f 0350 mov.w r3, #80 @ 0x50
  56640. 8017562: f383 8811 msr BASEPRI, r3
  56641. 8017566: f3bf 8f6f isb sy
  56642. 801756a: f3bf 8f4f dsb sy
  56643. 801756e: 607b str r3, [r7, #4]
  56644. }
  56645. 8017570: bf00 nop
  56646. portDISABLE_INTERRUPTS();
  56647. uxCriticalNesting++;
  56648. 8017572: 4b10 ldr r3, [pc, #64] @ (80175b4 <vPortEnterCritical+0x5c>)
  56649. 8017574: 681b ldr r3, [r3, #0]
  56650. 8017576: 3301 adds r3, #1
  56651. 8017578: 4a0e ldr r2, [pc, #56] @ (80175b4 <vPortEnterCritical+0x5c>)
  56652. 801757a: 6013 str r3, [r2, #0]
  56653. /* This is not the interrupt safe version of the enter critical function so
  56654. assert() if it is being called from an interrupt context. Only API
  56655. functions that end in "FromISR" can be used in an interrupt. Only assert if
  56656. the critical nesting count is 1 to protect against recursive calls if the
  56657. assert function also uses a critical section. */
  56658. if( uxCriticalNesting == 1 )
  56659. 801757c: 4b0d ldr r3, [pc, #52] @ (80175b4 <vPortEnterCritical+0x5c>)
  56660. 801757e: 681b ldr r3, [r3, #0]
  56661. 8017580: 2b01 cmp r3, #1
  56662. 8017582: d110 bne.n 80175a6 <vPortEnterCritical+0x4e>
  56663. {
  56664. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  56665. 8017584: 4b0c ldr r3, [pc, #48] @ (80175b8 <vPortEnterCritical+0x60>)
  56666. 8017586: 681b ldr r3, [r3, #0]
  56667. 8017588: b2db uxtb r3, r3
  56668. 801758a: 2b00 cmp r3, #0
  56669. 801758c: d00b beq.n 80175a6 <vPortEnterCritical+0x4e>
  56670. __asm volatile
  56671. 801758e: f04f 0350 mov.w r3, #80 @ 0x50
  56672. 8017592: f383 8811 msr BASEPRI, r3
  56673. 8017596: f3bf 8f6f isb sy
  56674. 801759a: f3bf 8f4f dsb sy
  56675. 801759e: 603b str r3, [r7, #0]
  56676. }
  56677. 80175a0: bf00 nop
  56678. 80175a2: bf00 nop
  56679. 80175a4: e7fd b.n 80175a2 <vPortEnterCritical+0x4a>
  56680. }
  56681. }
  56682. 80175a6: bf00 nop
  56683. 80175a8: 370c adds r7, #12
  56684. 80175aa: 46bd mov sp, r7
  56685. 80175ac: f85d 7b04 ldr.w r7, [sp], #4
  56686. 80175b0: 4770 bx lr
  56687. 80175b2: bf00 nop
  56688. 80175b4: 24000044 .word 0x24000044
  56689. 80175b8: e000ed04 .word 0xe000ed04
  56690. 080175bc <vPortExitCritical>:
  56691. /*-----------------------------------------------------------*/
  56692. void vPortExitCritical( void )
  56693. {
  56694. 80175bc: b480 push {r7}
  56695. 80175be: b083 sub sp, #12
  56696. 80175c0: af00 add r7, sp, #0
  56697. configASSERT( uxCriticalNesting );
  56698. 80175c2: 4b12 ldr r3, [pc, #72] @ (801760c <vPortExitCritical+0x50>)
  56699. 80175c4: 681b ldr r3, [r3, #0]
  56700. 80175c6: 2b00 cmp r3, #0
  56701. 80175c8: d10b bne.n 80175e2 <vPortExitCritical+0x26>
  56702. __asm volatile
  56703. 80175ca: f04f 0350 mov.w r3, #80 @ 0x50
  56704. 80175ce: f383 8811 msr BASEPRI, r3
  56705. 80175d2: f3bf 8f6f isb sy
  56706. 80175d6: f3bf 8f4f dsb sy
  56707. 80175da: 607b str r3, [r7, #4]
  56708. }
  56709. 80175dc: bf00 nop
  56710. 80175de: bf00 nop
  56711. 80175e0: e7fd b.n 80175de <vPortExitCritical+0x22>
  56712. uxCriticalNesting--;
  56713. 80175e2: 4b0a ldr r3, [pc, #40] @ (801760c <vPortExitCritical+0x50>)
  56714. 80175e4: 681b ldr r3, [r3, #0]
  56715. 80175e6: 3b01 subs r3, #1
  56716. 80175e8: 4a08 ldr r2, [pc, #32] @ (801760c <vPortExitCritical+0x50>)
  56717. 80175ea: 6013 str r3, [r2, #0]
  56718. if( uxCriticalNesting == 0 )
  56719. 80175ec: 4b07 ldr r3, [pc, #28] @ (801760c <vPortExitCritical+0x50>)
  56720. 80175ee: 681b ldr r3, [r3, #0]
  56721. 80175f0: 2b00 cmp r3, #0
  56722. 80175f2: d105 bne.n 8017600 <vPortExitCritical+0x44>
  56723. 80175f4: 2300 movs r3, #0
  56724. 80175f6: 603b str r3, [r7, #0]
  56725. __asm volatile
  56726. 80175f8: 683b ldr r3, [r7, #0]
  56727. 80175fa: f383 8811 msr BASEPRI, r3
  56728. }
  56729. 80175fe: bf00 nop
  56730. {
  56731. portENABLE_INTERRUPTS();
  56732. }
  56733. }
  56734. 8017600: bf00 nop
  56735. 8017602: 370c adds r7, #12
  56736. 8017604: 46bd mov sp, r7
  56737. 8017606: f85d 7b04 ldr.w r7, [sp], #4
  56738. 801760a: 4770 bx lr
  56739. 801760c: 24000044 .word 0x24000044
  56740. 08017610 <PendSV_Handler>:
  56741. void xPortPendSVHandler( void )
  56742. {
  56743. /* This is a naked function. */
  56744. __asm volatile
  56745. 8017610: f3ef 8009 mrs r0, PSP
  56746. 8017614: f3bf 8f6f isb sy
  56747. 8017618: 4b15 ldr r3, [pc, #84] @ (8017670 <pxCurrentTCBConst>)
  56748. 801761a: 681a ldr r2, [r3, #0]
  56749. 801761c: f01e 0f10 tst.w lr, #16
  56750. 8017620: bf08 it eq
  56751. 8017622: ed20 8a10 vstmdbeq r0!, {s16-s31}
  56752. 8017626: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56753. 801762a: 6010 str r0, [r2, #0]
  56754. 801762c: e92d 0009 stmdb sp!, {r0, r3}
  56755. 8017630: f04f 0050 mov.w r0, #80 @ 0x50
  56756. 8017634: f380 8811 msr BASEPRI, r0
  56757. 8017638: f3bf 8f4f dsb sy
  56758. 801763c: f3bf 8f6f isb sy
  56759. 8017640: f7fe fb3e bl 8015cc0 <vTaskSwitchContext>
  56760. 8017644: f04f 0000 mov.w r0, #0
  56761. 8017648: f380 8811 msr BASEPRI, r0
  56762. 801764c: bc09 pop {r0, r3}
  56763. 801764e: 6819 ldr r1, [r3, #0]
  56764. 8017650: 6808 ldr r0, [r1, #0]
  56765. 8017652: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56766. 8017656: f01e 0f10 tst.w lr, #16
  56767. 801765a: bf08 it eq
  56768. 801765c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  56769. 8017660: f380 8809 msr PSP, r0
  56770. 8017664: f3bf 8f6f isb sy
  56771. 8017668: 4770 bx lr
  56772. 801766a: bf00 nop
  56773. 801766c: f3af 8000 nop.w
  56774. 08017670 <pxCurrentTCBConst>:
  56775. 8017670: 24002694 .word 0x24002694
  56776. " \n"
  56777. " .align 4 \n"
  56778. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  56779. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  56780. );
  56781. }
  56782. 8017674: bf00 nop
  56783. 8017676: bf00 nop
  56784. 08017678 <xPortSysTickHandler>:
  56785. /*-----------------------------------------------------------*/
  56786. void xPortSysTickHandler( void )
  56787. {
  56788. 8017678: b580 push {r7, lr}
  56789. 801767a: b082 sub sp, #8
  56790. 801767c: af00 add r7, sp, #0
  56791. __asm volatile
  56792. 801767e: f04f 0350 mov.w r3, #80 @ 0x50
  56793. 8017682: f383 8811 msr BASEPRI, r3
  56794. 8017686: f3bf 8f6f isb sy
  56795. 801768a: f3bf 8f4f dsb sy
  56796. 801768e: 607b str r3, [r7, #4]
  56797. }
  56798. 8017690: bf00 nop
  56799. save and then restore the interrupt mask value as its value is already
  56800. known. */
  56801. portDISABLE_INTERRUPTS();
  56802. {
  56803. /* Increment the RTOS tick. */
  56804. if( xTaskIncrementTick() != pdFALSE )
  56805. 8017692: f7fe fa5b bl 8015b4c <xTaskIncrementTick>
  56806. 8017696: 4603 mov r3, r0
  56807. 8017698: 2b00 cmp r3, #0
  56808. 801769a: d003 beq.n 80176a4 <xPortSysTickHandler+0x2c>
  56809. {
  56810. /* A context switch is required. Context switching is performed in
  56811. the PendSV interrupt. Pend the PendSV interrupt. */
  56812. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  56813. 801769c: 4b06 ldr r3, [pc, #24] @ (80176b8 <xPortSysTickHandler+0x40>)
  56814. 801769e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56815. 80176a2: 601a str r2, [r3, #0]
  56816. 80176a4: 2300 movs r3, #0
  56817. 80176a6: 603b str r3, [r7, #0]
  56818. __asm volatile
  56819. 80176a8: 683b ldr r3, [r7, #0]
  56820. 80176aa: f383 8811 msr BASEPRI, r3
  56821. }
  56822. 80176ae: bf00 nop
  56823. }
  56824. }
  56825. portENABLE_INTERRUPTS();
  56826. }
  56827. 80176b0: bf00 nop
  56828. 80176b2: 3708 adds r7, #8
  56829. 80176b4: 46bd mov sp, r7
  56830. 80176b6: bd80 pop {r7, pc}
  56831. 80176b8: e000ed04 .word 0xe000ed04
  56832. 080176bc <vPortSetupTimerInterrupt>:
  56833. /*
  56834. * Setup the systick timer to generate the tick interrupts at the required
  56835. * frequency.
  56836. */
  56837. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  56838. {
  56839. 80176bc: b480 push {r7}
  56840. 80176be: af00 add r7, sp, #0
  56841. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  56842. }
  56843. #endif /* configUSE_TICKLESS_IDLE */
  56844. /* Stop and clear the SysTick. */
  56845. portNVIC_SYSTICK_CTRL_REG = 0UL;
  56846. 80176c0: 4b0b ldr r3, [pc, #44] @ (80176f0 <vPortSetupTimerInterrupt+0x34>)
  56847. 80176c2: 2200 movs r2, #0
  56848. 80176c4: 601a str r2, [r3, #0]
  56849. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  56850. 80176c6: 4b0b ldr r3, [pc, #44] @ (80176f4 <vPortSetupTimerInterrupt+0x38>)
  56851. 80176c8: 2200 movs r2, #0
  56852. 80176ca: 601a str r2, [r3, #0]
  56853. /* Configure SysTick to interrupt at the requested rate. */
  56854. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  56855. 80176cc: 4b0a ldr r3, [pc, #40] @ (80176f8 <vPortSetupTimerInterrupt+0x3c>)
  56856. 80176ce: 681b ldr r3, [r3, #0]
  56857. 80176d0: 4a0a ldr r2, [pc, #40] @ (80176fc <vPortSetupTimerInterrupt+0x40>)
  56858. 80176d2: fba2 2303 umull r2, r3, r2, r3
  56859. 80176d6: 099b lsrs r3, r3, #6
  56860. 80176d8: 4a09 ldr r2, [pc, #36] @ (8017700 <vPortSetupTimerInterrupt+0x44>)
  56861. 80176da: 3b01 subs r3, #1
  56862. 80176dc: 6013 str r3, [r2, #0]
  56863. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  56864. 80176de: 4b04 ldr r3, [pc, #16] @ (80176f0 <vPortSetupTimerInterrupt+0x34>)
  56865. 80176e0: 2207 movs r2, #7
  56866. 80176e2: 601a str r2, [r3, #0]
  56867. }
  56868. 80176e4: bf00 nop
  56869. 80176e6: 46bd mov sp, r7
  56870. 80176e8: f85d 7b04 ldr.w r7, [sp], #4
  56871. 80176ec: 4770 bx lr
  56872. 80176ee: bf00 nop
  56873. 80176f0: e000e010 .word 0xe000e010
  56874. 80176f4: e000e018 .word 0xe000e018
  56875. 80176f8: 24000034 .word 0x24000034
  56876. 80176fc: 10624dd3 .word 0x10624dd3
  56877. 8017700: e000e014 .word 0xe000e014
  56878. 08017704 <vPortEnableVFP>:
  56879. /*-----------------------------------------------------------*/
  56880. /* This is a naked function. */
  56881. static void vPortEnableVFP( void )
  56882. {
  56883. __asm volatile
  56884. 8017704: f8df 000c ldr.w r0, [pc, #12] @ 8017714 <vPortEnableVFP+0x10>
  56885. 8017708: 6801 ldr r1, [r0, #0]
  56886. 801770a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  56887. 801770e: 6001 str r1, [r0, #0]
  56888. 8017710: 4770 bx lr
  56889. " \n"
  56890. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  56891. " str r1, [r0] \n"
  56892. " bx r14 "
  56893. );
  56894. }
  56895. 8017712: bf00 nop
  56896. 8017714: e000ed88 .word 0xe000ed88
  56897. 08017718 <vPortValidateInterruptPriority>:
  56898. /*-----------------------------------------------------------*/
  56899. #if( configASSERT_DEFINED == 1 )
  56900. void vPortValidateInterruptPriority( void )
  56901. {
  56902. 8017718: b480 push {r7}
  56903. 801771a: b085 sub sp, #20
  56904. 801771c: af00 add r7, sp, #0
  56905. uint32_t ulCurrentInterrupt;
  56906. uint8_t ucCurrentPriority;
  56907. /* Obtain the number of the currently executing interrupt. */
  56908. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  56909. 801771e: f3ef 8305 mrs r3, IPSR
  56910. 8017722: 60fb str r3, [r7, #12]
  56911. /* Is the interrupt number a user defined interrupt? */
  56912. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  56913. 8017724: 68fb ldr r3, [r7, #12]
  56914. 8017726: 2b0f cmp r3, #15
  56915. 8017728: d915 bls.n 8017756 <vPortValidateInterruptPriority+0x3e>
  56916. {
  56917. /* Look up the interrupt's priority. */
  56918. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  56919. 801772a: 4a18 ldr r2, [pc, #96] @ (801778c <vPortValidateInterruptPriority+0x74>)
  56920. 801772c: 68fb ldr r3, [r7, #12]
  56921. 801772e: 4413 add r3, r2
  56922. 8017730: 781b ldrb r3, [r3, #0]
  56923. 8017732: 72fb strb r3, [r7, #11]
  56924. interrupt entry is as fast and simple as possible.
  56925. The following links provide detailed information:
  56926. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  56927. http://www.freertos.org/FAQHelp.html */
  56928. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  56929. 8017734: 4b16 ldr r3, [pc, #88] @ (8017790 <vPortValidateInterruptPriority+0x78>)
  56930. 8017736: 781b ldrb r3, [r3, #0]
  56931. 8017738: 7afa ldrb r2, [r7, #11]
  56932. 801773a: 429a cmp r2, r3
  56933. 801773c: d20b bcs.n 8017756 <vPortValidateInterruptPriority+0x3e>
  56934. __asm volatile
  56935. 801773e: f04f 0350 mov.w r3, #80 @ 0x50
  56936. 8017742: f383 8811 msr BASEPRI, r3
  56937. 8017746: f3bf 8f6f isb sy
  56938. 801774a: f3bf 8f4f dsb sy
  56939. 801774e: 607b str r3, [r7, #4]
  56940. }
  56941. 8017750: bf00 nop
  56942. 8017752: bf00 nop
  56943. 8017754: e7fd b.n 8017752 <vPortValidateInterruptPriority+0x3a>
  56944. configuration then the correct setting can be achieved on all Cortex-M
  56945. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  56946. scheduler. Note however that some vendor specific peripheral libraries
  56947. assume a non-zero priority group setting, in which cases using a value
  56948. of zero will result in unpredictable behaviour. */
  56949. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  56950. 8017756: 4b0f ldr r3, [pc, #60] @ (8017794 <vPortValidateInterruptPriority+0x7c>)
  56951. 8017758: 681b ldr r3, [r3, #0]
  56952. 801775a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  56953. 801775e: 4b0e ldr r3, [pc, #56] @ (8017798 <vPortValidateInterruptPriority+0x80>)
  56954. 8017760: 681b ldr r3, [r3, #0]
  56955. 8017762: 429a cmp r2, r3
  56956. 8017764: d90b bls.n 801777e <vPortValidateInterruptPriority+0x66>
  56957. __asm volatile
  56958. 8017766: f04f 0350 mov.w r3, #80 @ 0x50
  56959. 801776a: f383 8811 msr BASEPRI, r3
  56960. 801776e: f3bf 8f6f isb sy
  56961. 8017772: f3bf 8f4f dsb sy
  56962. 8017776: 603b str r3, [r7, #0]
  56963. }
  56964. 8017778: bf00 nop
  56965. 801777a: bf00 nop
  56966. 801777c: e7fd b.n 801777a <vPortValidateInterruptPriority+0x62>
  56967. }
  56968. 801777e: bf00 nop
  56969. 8017780: 3714 adds r7, #20
  56970. 8017782: 46bd mov sp, r7
  56971. 8017784: f85d 7b04 ldr.w r7, [sp], #4
  56972. 8017788: 4770 bx lr
  56973. 801778a: bf00 nop
  56974. 801778c: e000e3f0 .word 0xe000e3f0
  56975. 8017790: 24002cc0 .word 0x24002cc0
  56976. 8017794: e000ed0c .word 0xe000ed0c
  56977. 8017798: 24002cc4 .word 0x24002cc4
  56978. 0801779c <pvPortMalloc>:
  56979. static size_t xBlockAllocatedBit = 0;
  56980. /*-----------------------------------------------------------*/
  56981. void *pvPortMalloc( size_t xWantedSize )
  56982. {
  56983. 801779c: b580 push {r7, lr}
  56984. 801779e: b08a sub sp, #40 @ 0x28
  56985. 80177a0: af00 add r7, sp, #0
  56986. 80177a2: 6078 str r0, [r7, #4]
  56987. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  56988. void *pvReturn = NULL;
  56989. 80177a4: 2300 movs r3, #0
  56990. 80177a6: 61fb str r3, [r7, #28]
  56991. vTaskSuspendAll();
  56992. 80177a8: f7fe f914 bl 80159d4 <vTaskSuspendAll>
  56993. {
  56994. /* If this is the first call to malloc then the heap will require
  56995. initialisation to setup the list of free blocks. */
  56996. if( pxEnd == NULL )
  56997. 80177ac: 4b5c ldr r3, [pc, #368] @ (8017920 <pvPortMalloc+0x184>)
  56998. 80177ae: 681b ldr r3, [r3, #0]
  56999. 80177b0: 2b00 cmp r3, #0
  57000. 80177b2: d101 bne.n 80177b8 <pvPortMalloc+0x1c>
  57001. {
  57002. prvHeapInit();
  57003. 80177b4: f000 f924 bl 8017a00 <prvHeapInit>
  57004. /* Check the requested block size is not so large that the top bit is
  57005. set. The top bit of the block size member of the BlockLink_t structure
  57006. is used to determine who owns the block - the application or the
  57007. kernel, so it must be free. */
  57008. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  57009. 80177b8: 4b5a ldr r3, [pc, #360] @ (8017924 <pvPortMalloc+0x188>)
  57010. 80177ba: 681a ldr r2, [r3, #0]
  57011. 80177bc: 687b ldr r3, [r7, #4]
  57012. 80177be: 4013 ands r3, r2
  57013. 80177c0: 2b00 cmp r3, #0
  57014. 80177c2: f040 8095 bne.w 80178f0 <pvPortMalloc+0x154>
  57015. {
  57016. /* The wanted size is increased so it can contain a BlockLink_t
  57017. structure in addition to the requested amount of bytes. */
  57018. if( xWantedSize > 0 )
  57019. 80177c6: 687b ldr r3, [r7, #4]
  57020. 80177c8: 2b00 cmp r3, #0
  57021. 80177ca: d01e beq.n 801780a <pvPortMalloc+0x6e>
  57022. {
  57023. xWantedSize += xHeapStructSize;
  57024. 80177cc: 2208 movs r2, #8
  57025. 80177ce: 687b ldr r3, [r7, #4]
  57026. 80177d0: 4413 add r3, r2
  57027. 80177d2: 607b str r3, [r7, #4]
  57028. /* Ensure that blocks are always aligned to the required number
  57029. of bytes. */
  57030. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  57031. 80177d4: 687b ldr r3, [r7, #4]
  57032. 80177d6: f003 0307 and.w r3, r3, #7
  57033. 80177da: 2b00 cmp r3, #0
  57034. 80177dc: d015 beq.n 801780a <pvPortMalloc+0x6e>
  57035. {
  57036. /* Byte alignment required. */
  57037. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  57038. 80177de: 687b ldr r3, [r7, #4]
  57039. 80177e0: f023 0307 bic.w r3, r3, #7
  57040. 80177e4: 3308 adds r3, #8
  57041. 80177e6: 607b str r3, [r7, #4]
  57042. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  57043. 80177e8: 687b ldr r3, [r7, #4]
  57044. 80177ea: f003 0307 and.w r3, r3, #7
  57045. 80177ee: 2b00 cmp r3, #0
  57046. 80177f0: d00b beq.n 801780a <pvPortMalloc+0x6e>
  57047. __asm volatile
  57048. 80177f2: f04f 0350 mov.w r3, #80 @ 0x50
  57049. 80177f6: f383 8811 msr BASEPRI, r3
  57050. 80177fa: f3bf 8f6f isb sy
  57051. 80177fe: f3bf 8f4f dsb sy
  57052. 8017802: 617b str r3, [r7, #20]
  57053. }
  57054. 8017804: bf00 nop
  57055. 8017806: bf00 nop
  57056. 8017808: e7fd b.n 8017806 <pvPortMalloc+0x6a>
  57057. else
  57058. {
  57059. mtCOVERAGE_TEST_MARKER();
  57060. }
  57061. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  57062. 801780a: 687b ldr r3, [r7, #4]
  57063. 801780c: 2b00 cmp r3, #0
  57064. 801780e: d06f beq.n 80178f0 <pvPortMalloc+0x154>
  57065. 8017810: 4b45 ldr r3, [pc, #276] @ (8017928 <pvPortMalloc+0x18c>)
  57066. 8017812: 681b ldr r3, [r3, #0]
  57067. 8017814: 687a ldr r2, [r7, #4]
  57068. 8017816: 429a cmp r2, r3
  57069. 8017818: d86a bhi.n 80178f0 <pvPortMalloc+0x154>
  57070. {
  57071. /* Traverse the list from the start (lowest address) block until
  57072. one of adequate size is found. */
  57073. pxPreviousBlock = &xStart;
  57074. 801781a: 4b44 ldr r3, [pc, #272] @ (801792c <pvPortMalloc+0x190>)
  57075. 801781c: 623b str r3, [r7, #32]
  57076. pxBlock = xStart.pxNextFreeBlock;
  57077. 801781e: 4b43 ldr r3, [pc, #268] @ (801792c <pvPortMalloc+0x190>)
  57078. 8017820: 681b ldr r3, [r3, #0]
  57079. 8017822: 627b str r3, [r7, #36] @ 0x24
  57080. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57081. 8017824: e004 b.n 8017830 <pvPortMalloc+0x94>
  57082. {
  57083. pxPreviousBlock = pxBlock;
  57084. 8017826: 6a7b ldr r3, [r7, #36] @ 0x24
  57085. 8017828: 623b str r3, [r7, #32]
  57086. pxBlock = pxBlock->pxNextFreeBlock;
  57087. 801782a: 6a7b ldr r3, [r7, #36] @ 0x24
  57088. 801782c: 681b ldr r3, [r3, #0]
  57089. 801782e: 627b str r3, [r7, #36] @ 0x24
  57090. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57091. 8017830: 6a7b ldr r3, [r7, #36] @ 0x24
  57092. 8017832: 685b ldr r3, [r3, #4]
  57093. 8017834: 687a ldr r2, [r7, #4]
  57094. 8017836: 429a cmp r2, r3
  57095. 8017838: d903 bls.n 8017842 <pvPortMalloc+0xa6>
  57096. 801783a: 6a7b ldr r3, [r7, #36] @ 0x24
  57097. 801783c: 681b ldr r3, [r3, #0]
  57098. 801783e: 2b00 cmp r3, #0
  57099. 8017840: d1f1 bne.n 8017826 <pvPortMalloc+0x8a>
  57100. }
  57101. /* If the end marker was reached then a block of adequate size
  57102. was not found. */
  57103. if( pxBlock != pxEnd )
  57104. 8017842: 4b37 ldr r3, [pc, #220] @ (8017920 <pvPortMalloc+0x184>)
  57105. 8017844: 681b ldr r3, [r3, #0]
  57106. 8017846: 6a7a ldr r2, [r7, #36] @ 0x24
  57107. 8017848: 429a cmp r2, r3
  57108. 801784a: d051 beq.n 80178f0 <pvPortMalloc+0x154>
  57109. {
  57110. /* Return the memory space pointed to - jumping over the
  57111. BlockLink_t structure at its start. */
  57112. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  57113. 801784c: 6a3b ldr r3, [r7, #32]
  57114. 801784e: 681b ldr r3, [r3, #0]
  57115. 8017850: 2208 movs r2, #8
  57116. 8017852: 4413 add r3, r2
  57117. 8017854: 61fb str r3, [r7, #28]
  57118. /* This block is being returned for use so must be taken out
  57119. of the list of free blocks. */
  57120. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  57121. 8017856: 6a7b ldr r3, [r7, #36] @ 0x24
  57122. 8017858: 681a ldr r2, [r3, #0]
  57123. 801785a: 6a3b ldr r3, [r7, #32]
  57124. 801785c: 601a str r2, [r3, #0]
  57125. /* If the block is larger than required it can be split into
  57126. two. */
  57127. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  57128. 801785e: 6a7b ldr r3, [r7, #36] @ 0x24
  57129. 8017860: 685a ldr r2, [r3, #4]
  57130. 8017862: 687b ldr r3, [r7, #4]
  57131. 8017864: 1ad2 subs r2, r2, r3
  57132. 8017866: 2308 movs r3, #8
  57133. 8017868: 005b lsls r3, r3, #1
  57134. 801786a: 429a cmp r2, r3
  57135. 801786c: d920 bls.n 80178b0 <pvPortMalloc+0x114>
  57136. {
  57137. /* This block is to be split into two. Create a new
  57138. block following the number of bytes requested. The void
  57139. cast is used to prevent byte alignment warnings from the
  57140. compiler. */
  57141. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  57142. 801786e: 6a7a ldr r2, [r7, #36] @ 0x24
  57143. 8017870: 687b ldr r3, [r7, #4]
  57144. 8017872: 4413 add r3, r2
  57145. 8017874: 61bb str r3, [r7, #24]
  57146. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  57147. 8017876: 69bb ldr r3, [r7, #24]
  57148. 8017878: f003 0307 and.w r3, r3, #7
  57149. 801787c: 2b00 cmp r3, #0
  57150. 801787e: d00b beq.n 8017898 <pvPortMalloc+0xfc>
  57151. __asm volatile
  57152. 8017880: f04f 0350 mov.w r3, #80 @ 0x50
  57153. 8017884: f383 8811 msr BASEPRI, r3
  57154. 8017888: f3bf 8f6f isb sy
  57155. 801788c: f3bf 8f4f dsb sy
  57156. 8017890: 613b str r3, [r7, #16]
  57157. }
  57158. 8017892: bf00 nop
  57159. 8017894: bf00 nop
  57160. 8017896: e7fd b.n 8017894 <pvPortMalloc+0xf8>
  57161. /* Calculate the sizes of two blocks split from the
  57162. single block. */
  57163. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  57164. 8017898: 6a7b ldr r3, [r7, #36] @ 0x24
  57165. 801789a: 685a ldr r2, [r3, #4]
  57166. 801789c: 687b ldr r3, [r7, #4]
  57167. 801789e: 1ad2 subs r2, r2, r3
  57168. 80178a0: 69bb ldr r3, [r7, #24]
  57169. 80178a2: 605a str r2, [r3, #4]
  57170. pxBlock->xBlockSize = xWantedSize;
  57171. 80178a4: 6a7b ldr r3, [r7, #36] @ 0x24
  57172. 80178a6: 687a ldr r2, [r7, #4]
  57173. 80178a8: 605a str r2, [r3, #4]
  57174. /* Insert the new block into the list of free blocks. */
  57175. prvInsertBlockIntoFreeList( pxNewBlockLink );
  57176. 80178aa: 69b8 ldr r0, [r7, #24]
  57177. 80178ac: f000 f90a bl 8017ac4 <prvInsertBlockIntoFreeList>
  57178. else
  57179. {
  57180. mtCOVERAGE_TEST_MARKER();
  57181. }
  57182. xFreeBytesRemaining -= pxBlock->xBlockSize;
  57183. 80178b0: 4b1d ldr r3, [pc, #116] @ (8017928 <pvPortMalloc+0x18c>)
  57184. 80178b2: 681a ldr r2, [r3, #0]
  57185. 80178b4: 6a7b ldr r3, [r7, #36] @ 0x24
  57186. 80178b6: 685b ldr r3, [r3, #4]
  57187. 80178b8: 1ad3 subs r3, r2, r3
  57188. 80178ba: 4a1b ldr r2, [pc, #108] @ (8017928 <pvPortMalloc+0x18c>)
  57189. 80178bc: 6013 str r3, [r2, #0]
  57190. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  57191. 80178be: 4b1a ldr r3, [pc, #104] @ (8017928 <pvPortMalloc+0x18c>)
  57192. 80178c0: 681a ldr r2, [r3, #0]
  57193. 80178c2: 4b1b ldr r3, [pc, #108] @ (8017930 <pvPortMalloc+0x194>)
  57194. 80178c4: 681b ldr r3, [r3, #0]
  57195. 80178c6: 429a cmp r2, r3
  57196. 80178c8: d203 bcs.n 80178d2 <pvPortMalloc+0x136>
  57197. {
  57198. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  57199. 80178ca: 4b17 ldr r3, [pc, #92] @ (8017928 <pvPortMalloc+0x18c>)
  57200. 80178cc: 681b ldr r3, [r3, #0]
  57201. 80178ce: 4a18 ldr r2, [pc, #96] @ (8017930 <pvPortMalloc+0x194>)
  57202. 80178d0: 6013 str r3, [r2, #0]
  57203. mtCOVERAGE_TEST_MARKER();
  57204. }
  57205. /* The block is being returned - it is allocated and owned
  57206. by the application and has no "next" block. */
  57207. pxBlock->xBlockSize |= xBlockAllocatedBit;
  57208. 80178d2: 6a7b ldr r3, [r7, #36] @ 0x24
  57209. 80178d4: 685a ldr r2, [r3, #4]
  57210. 80178d6: 4b13 ldr r3, [pc, #76] @ (8017924 <pvPortMalloc+0x188>)
  57211. 80178d8: 681b ldr r3, [r3, #0]
  57212. 80178da: 431a orrs r2, r3
  57213. 80178dc: 6a7b ldr r3, [r7, #36] @ 0x24
  57214. 80178de: 605a str r2, [r3, #4]
  57215. pxBlock->pxNextFreeBlock = NULL;
  57216. 80178e0: 6a7b ldr r3, [r7, #36] @ 0x24
  57217. 80178e2: 2200 movs r2, #0
  57218. 80178e4: 601a str r2, [r3, #0]
  57219. xNumberOfSuccessfulAllocations++;
  57220. 80178e6: 4b13 ldr r3, [pc, #76] @ (8017934 <pvPortMalloc+0x198>)
  57221. 80178e8: 681b ldr r3, [r3, #0]
  57222. 80178ea: 3301 adds r3, #1
  57223. 80178ec: 4a11 ldr r2, [pc, #68] @ (8017934 <pvPortMalloc+0x198>)
  57224. 80178ee: 6013 str r3, [r2, #0]
  57225. mtCOVERAGE_TEST_MARKER();
  57226. }
  57227. traceMALLOC( pvReturn, xWantedSize );
  57228. }
  57229. ( void ) xTaskResumeAll();
  57230. 80178f0: f7fe f87e bl 80159f0 <xTaskResumeAll>
  57231. mtCOVERAGE_TEST_MARKER();
  57232. }
  57233. }
  57234. #endif
  57235. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  57236. 80178f4: 69fb ldr r3, [r7, #28]
  57237. 80178f6: f003 0307 and.w r3, r3, #7
  57238. 80178fa: 2b00 cmp r3, #0
  57239. 80178fc: d00b beq.n 8017916 <pvPortMalloc+0x17a>
  57240. __asm volatile
  57241. 80178fe: f04f 0350 mov.w r3, #80 @ 0x50
  57242. 8017902: f383 8811 msr BASEPRI, r3
  57243. 8017906: f3bf 8f6f isb sy
  57244. 801790a: f3bf 8f4f dsb sy
  57245. 801790e: 60fb str r3, [r7, #12]
  57246. }
  57247. 8017910: bf00 nop
  57248. 8017912: bf00 nop
  57249. 8017914: e7fd b.n 8017912 <pvPortMalloc+0x176>
  57250. return pvReturn;
  57251. 8017916: 69fb ldr r3, [r7, #28]
  57252. }
  57253. 8017918: 4618 mov r0, r3
  57254. 801791a: 3728 adds r7, #40 @ 0x28
  57255. 801791c: 46bd mov sp, r7
  57256. 801791e: bd80 pop {r7, pc}
  57257. 8017920: 24012cd0 .word 0x24012cd0
  57258. 8017924: 24012ce4 .word 0x24012ce4
  57259. 8017928: 24012cd4 .word 0x24012cd4
  57260. 801792c: 24012cc8 .word 0x24012cc8
  57261. 8017930: 24012cd8 .word 0x24012cd8
  57262. 8017934: 24012cdc .word 0x24012cdc
  57263. 08017938 <vPortFree>:
  57264. /*-----------------------------------------------------------*/
  57265. void vPortFree( void *pv )
  57266. {
  57267. 8017938: b580 push {r7, lr}
  57268. 801793a: b086 sub sp, #24
  57269. 801793c: af00 add r7, sp, #0
  57270. 801793e: 6078 str r0, [r7, #4]
  57271. uint8_t *puc = ( uint8_t * ) pv;
  57272. 8017940: 687b ldr r3, [r7, #4]
  57273. 8017942: 617b str r3, [r7, #20]
  57274. BlockLink_t *pxLink;
  57275. if( pv != NULL )
  57276. 8017944: 687b ldr r3, [r7, #4]
  57277. 8017946: 2b00 cmp r3, #0
  57278. 8017948: d04f beq.n 80179ea <vPortFree+0xb2>
  57279. {
  57280. /* The memory being freed will have an BlockLink_t structure immediately
  57281. before it. */
  57282. puc -= xHeapStructSize;
  57283. 801794a: 2308 movs r3, #8
  57284. 801794c: 425b negs r3, r3
  57285. 801794e: 697a ldr r2, [r7, #20]
  57286. 8017950: 4413 add r3, r2
  57287. 8017952: 617b str r3, [r7, #20]
  57288. /* This casting is to keep the compiler from issuing warnings. */
  57289. pxLink = ( void * ) puc;
  57290. 8017954: 697b ldr r3, [r7, #20]
  57291. 8017956: 613b str r3, [r7, #16]
  57292. /* Check the block is actually allocated. */
  57293. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  57294. 8017958: 693b ldr r3, [r7, #16]
  57295. 801795a: 685a ldr r2, [r3, #4]
  57296. 801795c: 4b25 ldr r3, [pc, #148] @ (80179f4 <vPortFree+0xbc>)
  57297. 801795e: 681b ldr r3, [r3, #0]
  57298. 8017960: 4013 ands r3, r2
  57299. 8017962: 2b00 cmp r3, #0
  57300. 8017964: d10b bne.n 801797e <vPortFree+0x46>
  57301. __asm volatile
  57302. 8017966: f04f 0350 mov.w r3, #80 @ 0x50
  57303. 801796a: f383 8811 msr BASEPRI, r3
  57304. 801796e: f3bf 8f6f isb sy
  57305. 8017972: f3bf 8f4f dsb sy
  57306. 8017976: 60fb str r3, [r7, #12]
  57307. }
  57308. 8017978: bf00 nop
  57309. 801797a: bf00 nop
  57310. 801797c: e7fd b.n 801797a <vPortFree+0x42>
  57311. configASSERT( pxLink->pxNextFreeBlock == NULL );
  57312. 801797e: 693b ldr r3, [r7, #16]
  57313. 8017980: 681b ldr r3, [r3, #0]
  57314. 8017982: 2b00 cmp r3, #0
  57315. 8017984: d00b beq.n 801799e <vPortFree+0x66>
  57316. __asm volatile
  57317. 8017986: f04f 0350 mov.w r3, #80 @ 0x50
  57318. 801798a: f383 8811 msr BASEPRI, r3
  57319. 801798e: f3bf 8f6f isb sy
  57320. 8017992: f3bf 8f4f dsb sy
  57321. 8017996: 60bb str r3, [r7, #8]
  57322. }
  57323. 8017998: bf00 nop
  57324. 801799a: bf00 nop
  57325. 801799c: e7fd b.n 801799a <vPortFree+0x62>
  57326. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  57327. 801799e: 693b ldr r3, [r7, #16]
  57328. 80179a0: 685a ldr r2, [r3, #4]
  57329. 80179a2: 4b14 ldr r3, [pc, #80] @ (80179f4 <vPortFree+0xbc>)
  57330. 80179a4: 681b ldr r3, [r3, #0]
  57331. 80179a6: 4013 ands r3, r2
  57332. 80179a8: 2b00 cmp r3, #0
  57333. 80179aa: d01e beq.n 80179ea <vPortFree+0xb2>
  57334. {
  57335. if( pxLink->pxNextFreeBlock == NULL )
  57336. 80179ac: 693b ldr r3, [r7, #16]
  57337. 80179ae: 681b ldr r3, [r3, #0]
  57338. 80179b0: 2b00 cmp r3, #0
  57339. 80179b2: d11a bne.n 80179ea <vPortFree+0xb2>
  57340. {
  57341. /* The block is being returned to the heap - it is no longer
  57342. allocated. */
  57343. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  57344. 80179b4: 693b ldr r3, [r7, #16]
  57345. 80179b6: 685a ldr r2, [r3, #4]
  57346. 80179b8: 4b0e ldr r3, [pc, #56] @ (80179f4 <vPortFree+0xbc>)
  57347. 80179ba: 681b ldr r3, [r3, #0]
  57348. 80179bc: 43db mvns r3, r3
  57349. 80179be: 401a ands r2, r3
  57350. 80179c0: 693b ldr r3, [r7, #16]
  57351. 80179c2: 605a str r2, [r3, #4]
  57352. vTaskSuspendAll();
  57353. 80179c4: f7fe f806 bl 80159d4 <vTaskSuspendAll>
  57354. {
  57355. /* Add this block to the list of free blocks. */
  57356. xFreeBytesRemaining += pxLink->xBlockSize;
  57357. 80179c8: 693b ldr r3, [r7, #16]
  57358. 80179ca: 685a ldr r2, [r3, #4]
  57359. 80179cc: 4b0a ldr r3, [pc, #40] @ (80179f8 <vPortFree+0xc0>)
  57360. 80179ce: 681b ldr r3, [r3, #0]
  57361. 80179d0: 4413 add r3, r2
  57362. 80179d2: 4a09 ldr r2, [pc, #36] @ (80179f8 <vPortFree+0xc0>)
  57363. 80179d4: 6013 str r3, [r2, #0]
  57364. traceFREE( pv, pxLink->xBlockSize );
  57365. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  57366. 80179d6: 6938 ldr r0, [r7, #16]
  57367. 80179d8: f000 f874 bl 8017ac4 <prvInsertBlockIntoFreeList>
  57368. xNumberOfSuccessfulFrees++;
  57369. 80179dc: 4b07 ldr r3, [pc, #28] @ (80179fc <vPortFree+0xc4>)
  57370. 80179de: 681b ldr r3, [r3, #0]
  57371. 80179e0: 3301 adds r3, #1
  57372. 80179e2: 4a06 ldr r2, [pc, #24] @ (80179fc <vPortFree+0xc4>)
  57373. 80179e4: 6013 str r3, [r2, #0]
  57374. }
  57375. ( void ) xTaskResumeAll();
  57376. 80179e6: f7fe f803 bl 80159f0 <xTaskResumeAll>
  57377. else
  57378. {
  57379. mtCOVERAGE_TEST_MARKER();
  57380. }
  57381. }
  57382. }
  57383. 80179ea: bf00 nop
  57384. 80179ec: 3718 adds r7, #24
  57385. 80179ee: 46bd mov sp, r7
  57386. 80179f0: bd80 pop {r7, pc}
  57387. 80179f2: bf00 nop
  57388. 80179f4: 24012ce4 .word 0x24012ce4
  57389. 80179f8: 24012cd4 .word 0x24012cd4
  57390. 80179fc: 24012ce0 .word 0x24012ce0
  57391. 08017a00 <prvHeapInit>:
  57392. /* This just exists to keep the linker quiet. */
  57393. }
  57394. /*-----------------------------------------------------------*/
  57395. static void prvHeapInit( void )
  57396. {
  57397. 8017a00: b480 push {r7}
  57398. 8017a02: b085 sub sp, #20
  57399. 8017a04: af00 add r7, sp, #0
  57400. BlockLink_t *pxFirstFreeBlock;
  57401. uint8_t *pucAlignedHeap;
  57402. size_t uxAddress;
  57403. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  57404. 8017a06: f44f 3380 mov.w r3, #65536 @ 0x10000
  57405. 8017a0a: 60bb str r3, [r7, #8]
  57406. /* Ensure the heap starts on a correctly aligned boundary. */
  57407. uxAddress = ( size_t ) ucHeap;
  57408. 8017a0c: 4b27 ldr r3, [pc, #156] @ (8017aac <prvHeapInit+0xac>)
  57409. 8017a0e: 60fb str r3, [r7, #12]
  57410. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  57411. 8017a10: 68fb ldr r3, [r7, #12]
  57412. 8017a12: f003 0307 and.w r3, r3, #7
  57413. 8017a16: 2b00 cmp r3, #0
  57414. 8017a18: d00c beq.n 8017a34 <prvHeapInit+0x34>
  57415. {
  57416. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  57417. 8017a1a: 68fb ldr r3, [r7, #12]
  57418. 8017a1c: 3307 adds r3, #7
  57419. 8017a1e: 60fb str r3, [r7, #12]
  57420. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  57421. 8017a20: 68fb ldr r3, [r7, #12]
  57422. 8017a22: f023 0307 bic.w r3, r3, #7
  57423. 8017a26: 60fb str r3, [r7, #12]
  57424. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  57425. 8017a28: 68ba ldr r2, [r7, #8]
  57426. 8017a2a: 68fb ldr r3, [r7, #12]
  57427. 8017a2c: 1ad3 subs r3, r2, r3
  57428. 8017a2e: 4a1f ldr r2, [pc, #124] @ (8017aac <prvHeapInit+0xac>)
  57429. 8017a30: 4413 add r3, r2
  57430. 8017a32: 60bb str r3, [r7, #8]
  57431. }
  57432. pucAlignedHeap = ( uint8_t * ) uxAddress;
  57433. 8017a34: 68fb ldr r3, [r7, #12]
  57434. 8017a36: 607b str r3, [r7, #4]
  57435. /* xStart is used to hold a pointer to the first item in the list of free
  57436. blocks. The void cast is used to prevent compiler warnings. */
  57437. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  57438. 8017a38: 4a1d ldr r2, [pc, #116] @ (8017ab0 <prvHeapInit+0xb0>)
  57439. 8017a3a: 687b ldr r3, [r7, #4]
  57440. 8017a3c: 6013 str r3, [r2, #0]
  57441. xStart.xBlockSize = ( size_t ) 0;
  57442. 8017a3e: 4b1c ldr r3, [pc, #112] @ (8017ab0 <prvHeapInit+0xb0>)
  57443. 8017a40: 2200 movs r2, #0
  57444. 8017a42: 605a str r2, [r3, #4]
  57445. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  57446. at the end of the heap space. */
  57447. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  57448. 8017a44: 687b ldr r3, [r7, #4]
  57449. 8017a46: 68ba ldr r2, [r7, #8]
  57450. 8017a48: 4413 add r3, r2
  57451. 8017a4a: 60fb str r3, [r7, #12]
  57452. uxAddress -= xHeapStructSize;
  57453. 8017a4c: 2208 movs r2, #8
  57454. 8017a4e: 68fb ldr r3, [r7, #12]
  57455. 8017a50: 1a9b subs r3, r3, r2
  57456. 8017a52: 60fb str r3, [r7, #12]
  57457. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  57458. 8017a54: 68fb ldr r3, [r7, #12]
  57459. 8017a56: f023 0307 bic.w r3, r3, #7
  57460. 8017a5a: 60fb str r3, [r7, #12]
  57461. pxEnd = ( void * ) uxAddress;
  57462. 8017a5c: 68fb ldr r3, [r7, #12]
  57463. 8017a5e: 4a15 ldr r2, [pc, #84] @ (8017ab4 <prvHeapInit+0xb4>)
  57464. 8017a60: 6013 str r3, [r2, #0]
  57465. pxEnd->xBlockSize = 0;
  57466. 8017a62: 4b14 ldr r3, [pc, #80] @ (8017ab4 <prvHeapInit+0xb4>)
  57467. 8017a64: 681b ldr r3, [r3, #0]
  57468. 8017a66: 2200 movs r2, #0
  57469. 8017a68: 605a str r2, [r3, #4]
  57470. pxEnd->pxNextFreeBlock = NULL;
  57471. 8017a6a: 4b12 ldr r3, [pc, #72] @ (8017ab4 <prvHeapInit+0xb4>)
  57472. 8017a6c: 681b ldr r3, [r3, #0]
  57473. 8017a6e: 2200 movs r2, #0
  57474. 8017a70: 601a str r2, [r3, #0]
  57475. /* To start with there is a single free block that is sized to take up the
  57476. entire heap space, minus the space taken by pxEnd. */
  57477. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  57478. 8017a72: 687b ldr r3, [r7, #4]
  57479. 8017a74: 603b str r3, [r7, #0]
  57480. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  57481. 8017a76: 683b ldr r3, [r7, #0]
  57482. 8017a78: 68fa ldr r2, [r7, #12]
  57483. 8017a7a: 1ad2 subs r2, r2, r3
  57484. 8017a7c: 683b ldr r3, [r7, #0]
  57485. 8017a7e: 605a str r2, [r3, #4]
  57486. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  57487. 8017a80: 4b0c ldr r3, [pc, #48] @ (8017ab4 <prvHeapInit+0xb4>)
  57488. 8017a82: 681a ldr r2, [r3, #0]
  57489. 8017a84: 683b ldr r3, [r7, #0]
  57490. 8017a86: 601a str r2, [r3, #0]
  57491. /* Only one block exists - and it covers the entire usable heap space. */
  57492. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  57493. 8017a88: 683b ldr r3, [r7, #0]
  57494. 8017a8a: 685b ldr r3, [r3, #4]
  57495. 8017a8c: 4a0a ldr r2, [pc, #40] @ (8017ab8 <prvHeapInit+0xb8>)
  57496. 8017a8e: 6013 str r3, [r2, #0]
  57497. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  57498. 8017a90: 683b ldr r3, [r7, #0]
  57499. 8017a92: 685b ldr r3, [r3, #4]
  57500. 8017a94: 4a09 ldr r2, [pc, #36] @ (8017abc <prvHeapInit+0xbc>)
  57501. 8017a96: 6013 str r3, [r2, #0]
  57502. /* Work out the position of the top bit in a size_t variable. */
  57503. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  57504. 8017a98: 4b09 ldr r3, [pc, #36] @ (8017ac0 <prvHeapInit+0xc0>)
  57505. 8017a9a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  57506. 8017a9e: 601a str r2, [r3, #0]
  57507. }
  57508. 8017aa0: bf00 nop
  57509. 8017aa2: 3714 adds r7, #20
  57510. 8017aa4: 46bd mov sp, r7
  57511. 8017aa6: f85d 7b04 ldr.w r7, [sp], #4
  57512. 8017aaa: 4770 bx lr
  57513. 8017aac: 24002cc8 .word 0x24002cc8
  57514. 8017ab0: 24012cc8 .word 0x24012cc8
  57515. 8017ab4: 24012cd0 .word 0x24012cd0
  57516. 8017ab8: 24012cd8 .word 0x24012cd8
  57517. 8017abc: 24012cd4 .word 0x24012cd4
  57518. 8017ac0: 24012ce4 .word 0x24012ce4
  57519. 08017ac4 <prvInsertBlockIntoFreeList>:
  57520. /*-----------------------------------------------------------*/
  57521. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  57522. {
  57523. 8017ac4: b480 push {r7}
  57524. 8017ac6: b085 sub sp, #20
  57525. 8017ac8: af00 add r7, sp, #0
  57526. 8017aca: 6078 str r0, [r7, #4]
  57527. BlockLink_t *pxIterator;
  57528. uint8_t *puc;
  57529. /* Iterate through the list until a block is found that has a higher address
  57530. than the block being inserted. */
  57531. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  57532. 8017acc: 4b28 ldr r3, [pc, #160] @ (8017b70 <prvInsertBlockIntoFreeList+0xac>)
  57533. 8017ace: 60fb str r3, [r7, #12]
  57534. 8017ad0: e002 b.n 8017ad8 <prvInsertBlockIntoFreeList+0x14>
  57535. 8017ad2: 68fb ldr r3, [r7, #12]
  57536. 8017ad4: 681b ldr r3, [r3, #0]
  57537. 8017ad6: 60fb str r3, [r7, #12]
  57538. 8017ad8: 68fb ldr r3, [r7, #12]
  57539. 8017ada: 681b ldr r3, [r3, #0]
  57540. 8017adc: 687a ldr r2, [r7, #4]
  57541. 8017ade: 429a cmp r2, r3
  57542. 8017ae0: d8f7 bhi.n 8017ad2 <prvInsertBlockIntoFreeList+0xe>
  57543. /* Nothing to do here, just iterate to the right position. */
  57544. }
  57545. /* Do the block being inserted, and the block it is being inserted after
  57546. make a contiguous block of memory? */
  57547. puc = ( uint8_t * ) pxIterator;
  57548. 8017ae2: 68fb ldr r3, [r7, #12]
  57549. 8017ae4: 60bb str r3, [r7, #8]
  57550. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  57551. 8017ae6: 68fb ldr r3, [r7, #12]
  57552. 8017ae8: 685b ldr r3, [r3, #4]
  57553. 8017aea: 68ba ldr r2, [r7, #8]
  57554. 8017aec: 4413 add r3, r2
  57555. 8017aee: 687a ldr r2, [r7, #4]
  57556. 8017af0: 429a cmp r2, r3
  57557. 8017af2: d108 bne.n 8017b06 <prvInsertBlockIntoFreeList+0x42>
  57558. {
  57559. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  57560. 8017af4: 68fb ldr r3, [r7, #12]
  57561. 8017af6: 685a ldr r2, [r3, #4]
  57562. 8017af8: 687b ldr r3, [r7, #4]
  57563. 8017afa: 685b ldr r3, [r3, #4]
  57564. 8017afc: 441a add r2, r3
  57565. 8017afe: 68fb ldr r3, [r7, #12]
  57566. 8017b00: 605a str r2, [r3, #4]
  57567. pxBlockToInsert = pxIterator;
  57568. 8017b02: 68fb ldr r3, [r7, #12]
  57569. 8017b04: 607b str r3, [r7, #4]
  57570. mtCOVERAGE_TEST_MARKER();
  57571. }
  57572. /* Do the block being inserted, and the block it is being inserted before
  57573. make a contiguous block of memory? */
  57574. puc = ( uint8_t * ) pxBlockToInsert;
  57575. 8017b06: 687b ldr r3, [r7, #4]
  57576. 8017b08: 60bb str r3, [r7, #8]
  57577. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  57578. 8017b0a: 687b ldr r3, [r7, #4]
  57579. 8017b0c: 685b ldr r3, [r3, #4]
  57580. 8017b0e: 68ba ldr r2, [r7, #8]
  57581. 8017b10: 441a add r2, r3
  57582. 8017b12: 68fb ldr r3, [r7, #12]
  57583. 8017b14: 681b ldr r3, [r3, #0]
  57584. 8017b16: 429a cmp r2, r3
  57585. 8017b18: d118 bne.n 8017b4c <prvInsertBlockIntoFreeList+0x88>
  57586. {
  57587. if( pxIterator->pxNextFreeBlock != pxEnd )
  57588. 8017b1a: 68fb ldr r3, [r7, #12]
  57589. 8017b1c: 681a ldr r2, [r3, #0]
  57590. 8017b1e: 4b15 ldr r3, [pc, #84] @ (8017b74 <prvInsertBlockIntoFreeList+0xb0>)
  57591. 8017b20: 681b ldr r3, [r3, #0]
  57592. 8017b22: 429a cmp r2, r3
  57593. 8017b24: d00d beq.n 8017b42 <prvInsertBlockIntoFreeList+0x7e>
  57594. {
  57595. /* Form one big block from the two blocks. */
  57596. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  57597. 8017b26: 687b ldr r3, [r7, #4]
  57598. 8017b28: 685a ldr r2, [r3, #4]
  57599. 8017b2a: 68fb ldr r3, [r7, #12]
  57600. 8017b2c: 681b ldr r3, [r3, #0]
  57601. 8017b2e: 685b ldr r3, [r3, #4]
  57602. 8017b30: 441a add r2, r3
  57603. 8017b32: 687b ldr r3, [r7, #4]
  57604. 8017b34: 605a str r2, [r3, #4]
  57605. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  57606. 8017b36: 68fb ldr r3, [r7, #12]
  57607. 8017b38: 681b ldr r3, [r3, #0]
  57608. 8017b3a: 681a ldr r2, [r3, #0]
  57609. 8017b3c: 687b ldr r3, [r7, #4]
  57610. 8017b3e: 601a str r2, [r3, #0]
  57611. 8017b40: e008 b.n 8017b54 <prvInsertBlockIntoFreeList+0x90>
  57612. }
  57613. else
  57614. {
  57615. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  57616. 8017b42: 4b0c ldr r3, [pc, #48] @ (8017b74 <prvInsertBlockIntoFreeList+0xb0>)
  57617. 8017b44: 681a ldr r2, [r3, #0]
  57618. 8017b46: 687b ldr r3, [r7, #4]
  57619. 8017b48: 601a str r2, [r3, #0]
  57620. 8017b4a: e003 b.n 8017b54 <prvInsertBlockIntoFreeList+0x90>
  57621. }
  57622. }
  57623. else
  57624. {
  57625. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  57626. 8017b4c: 68fb ldr r3, [r7, #12]
  57627. 8017b4e: 681a ldr r2, [r3, #0]
  57628. 8017b50: 687b ldr r3, [r7, #4]
  57629. 8017b52: 601a str r2, [r3, #0]
  57630. /* If the block being inserted plugged a gab, so was merged with the block
  57631. before and the block after, then it's pxNextFreeBlock pointer will have
  57632. already been set, and should not be set here as that would make it point
  57633. to itself. */
  57634. if( pxIterator != pxBlockToInsert )
  57635. 8017b54: 68fa ldr r2, [r7, #12]
  57636. 8017b56: 687b ldr r3, [r7, #4]
  57637. 8017b58: 429a cmp r2, r3
  57638. 8017b5a: d002 beq.n 8017b62 <prvInsertBlockIntoFreeList+0x9e>
  57639. {
  57640. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  57641. 8017b5c: 68fb ldr r3, [r7, #12]
  57642. 8017b5e: 687a ldr r2, [r7, #4]
  57643. 8017b60: 601a str r2, [r3, #0]
  57644. }
  57645. else
  57646. {
  57647. mtCOVERAGE_TEST_MARKER();
  57648. }
  57649. }
  57650. 8017b62: bf00 nop
  57651. 8017b64: 3714 adds r7, #20
  57652. 8017b66: 46bd mov sp, r7
  57653. 8017b68: f85d 7b04 ldr.w r7, [sp], #4
  57654. 8017b6c: 4770 bx lr
  57655. 8017b6e: bf00 nop
  57656. 8017b70: 24012cc8 .word 0x24012cc8
  57657. 8017b74: 24012cd0 .word 0x24012cd0
  57658. 08017b78 <std>:
  57659. 8017b78: 2300 movs r3, #0
  57660. 8017b7a: b510 push {r4, lr}
  57661. 8017b7c: 4604 mov r4, r0
  57662. 8017b7e: e9c0 3300 strd r3, r3, [r0]
  57663. 8017b82: e9c0 3304 strd r3, r3, [r0, #16]
  57664. 8017b86: 6083 str r3, [r0, #8]
  57665. 8017b88: 8181 strh r1, [r0, #12]
  57666. 8017b8a: 6643 str r3, [r0, #100] @ 0x64
  57667. 8017b8c: 81c2 strh r2, [r0, #14]
  57668. 8017b8e: 6183 str r3, [r0, #24]
  57669. 8017b90: 4619 mov r1, r3
  57670. 8017b92: 2208 movs r2, #8
  57671. 8017b94: 305c adds r0, #92 @ 0x5c
  57672. 8017b96: f000 f906 bl 8017da6 <memset>
  57673. 8017b9a: 4b0d ldr r3, [pc, #52] @ (8017bd0 <std+0x58>)
  57674. 8017b9c: 6263 str r3, [r4, #36] @ 0x24
  57675. 8017b9e: 4b0d ldr r3, [pc, #52] @ (8017bd4 <std+0x5c>)
  57676. 8017ba0: 62a3 str r3, [r4, #40] @ 0x28
  57677. 8017ba2: 4b0d ldr r3, [pc, #52] @ (8017bd8 <std+0x60>)
  57678. 8017ba4: 62e3 str r3, [r4, #44] @ 0x2c
  57679. 8017ba6: 4b0d ldr r3, [pc, #52] @ (8017bdc <std+0x64>)
  57680. 8017ba8: 6323 str r3, [r4, #48] @ 0x30
  57681. 8017baa: 4b0d ldr r3, [pc, #52] @ (8017be0 <std+0x68>)
  57682. 8017bac: 6224 str r4, [r4, #32]
  57683. 8017bae: 429c cmp r4, r3
  57684. 8017bb0: d006 beq.n 8017bc0 <std+0x48>
  57685. 8017bb2: f103 0268 add.w r2, r3, #104 @ 0x68
  57686. 8017bb6: 4294 cmp r4, r2
  57687. 8017bb8: d002 beq.n 8017bc0 <std+0x48>
  57688. 8017bba: 33d0 adds r3, #208 @ 0xd0
  57689. 8017bbc: 429c cmp r4, r3
  57690. 8017bbe: d105 bne.n 8017bcc <std+0x54>
  57691. 8017bc0: f104 0058 add.w r0, r4, #88 @ 0x58
  57692. 8017bc4: e8bd 4010 ldmia.w sp!, {r4, lr}
  57693. 8017bc8: f000 b9bc b.w 8017f44 <__retarget_lock_init_recursive>
  57694. 8017bcc: bd10 pop {r4, pc}
  57695. 8017bce: bf00 nop
  57696. 8017bd0: 08017d21 .word 0x08017d21
  57697. 8017bd4: 08017d43 .word 0x08017d43
  57698. 8017bd8: 08017d7b .word 0x08017d7b
  57699. 8017bdc: 08017d9f .word 0x08017d9f
  57700. 8017be0: 24012ce8 .word 0x24012ce8
  57701. 08017be4 <stdio_exit_handler>:
  57702. 8017be4: 4a02 ldr r2, [pc, #8] @ (8017bf0 <stdio_exit_handler+0xc>)
  57703. 8017be6: 4903 ldr r1, [pc, #12] @ (8017bf4 <stdio_exit_handler+0x10>)
  57704. 8017be8: 4803 ldr r0, [pc, #12] @ (8017bf8 <stdio_exit_handler+0x14>)
  57705. 8017bea: f000 b869 b.w 8017cc0 <_fwalk_sglue>
  57706. 8017bee: bf00 nop
  57707. 8017bf0: 24000048 .word 0x24000048
  57708. 8017bf4: 08018801 .word 0x08018801
  57709. 8017bf8: 24000058 .word 0x24000058
  57710. 08017bfc <cleanup_stdio>:
  57711. 8017bfc: 6841 ldr r1, [r0, #4]
  57712. 8017bfe: 4b0c ldr r3, [pc, #48] @ (8017c30 <cleanup_stdio+0x34>)
  57713. 8017c00: 4299 cmp r1, r3
  57714. 8017c02: b510 push {r4, lr}
  57715. 8017c04: 4604 mov r4, r0
  57716. 8017c06: d001 beq.n 8017c0c <cleanup_stdio+0x10>
  57717. 8017c08: f000 fdfa bl 8018800 <_fflush_r>
  57718. 8017c0c: 68a1 ldr r1, [r4, #8]
  57719. 8017c0e: 4b09 ldr r3, [pc, #36] @ (8017c34 <cleanup_stdio+0x38>)
  57720. 8017c10: 4299 cmp r1, r3
  57721. 8017c12: d002 beq.n 8017c1a <cleanup_stdio+0x1e>
  57722. 8017c14: 4620 mov r0, r4
  57723. 8017c16: f000 fdf3 bl 8018800 <_fflush_r>
  57724. 8017c1a: 68e1 ldr r1, [r4, #12]
  57725. 8017c1c: 4b06 ldr r3, [pc, #24] @ (8017c38 <cleanup_stdio+0x3c>)
  57726. 8017c1e: 4299 cmp r1, r3
  57727. 8017c20: d004 beq.n 8017c2c <cleanup_stdio+0x30>
  57728. 8017c22: 4620 mov r0, r4
  57729. 8017c24: e8bd 4010 ldmia.w sp!, {r4, lr}
  57730. 8017c28: f000 bdea b.w 8018800 <_fflush_r>
  57731. 8017c2c: bd10 pop {r4, pc}
  57732. 8017c2e: bf00 nop
  57733. 8017c30: 24012ce8 .word 0x24012ce8
  57734. 8017c34: 24012d50 .word 0x24012d50
  57735. 8017c38: 24012db8 .word 0x24012db8
  57736. 08017c3c <global_stdio_init.part.0>:
  57737. 8017c3c: b510 push {r4, lr}
  57738. 8017c3e: 4b0b ldr r3, [pc, #44] @ (8017c6c <global_stdio_init.part.0+0x30>)
  57739. 8017c40: 4c0b ldr r4, [pc, #44] @ (8017c70 <global_stdio_init.part.0+0x34>)
  57740. 8017c42: 4a0c ldr r2, [pc, #48] @ (8017c74 <global_stdio_init.part.0+0x38>)
  57741. 8017c44: 601a str r2, [r3, #0]
  57742. 8017c46: 4620 mov r0, r4
  57743. 8017c48: 2200 movs r2, #0
  57744. 8017c4a: 2104 movs r1, #4
  57745. 8017c4c: f7ff ff94 bl 8017b78 <std>
  57746. 8017c50: f104 0068 add.w r0, r4, #104 @ 0x68
  57747. 8017c54: 2201 movs r2, #1
  57748. 8017c56: 2109 movs r1, #9
  57749. 8017c58: f7ff ff8e bl 8017b78 <std>
  57750. 8017c5c: f104 00d0 add.w r0, r4, #208 @ 0xd0
  57751. 8017c60: 2202 movs r2, #2
  57752. 8017c62: e8bd 4010 ldmia.w sp!, {r4, lr}
  57753. 8017c66: 2112 movs r1, #18
  57754. 8017c68: f7ff bf86 b.w 8017b78 <std>
  57755. 8017c6c: 24012e20 .word 0x24012e20
  57756. 8017c70: 24012ce8 .word 0x24012ce8
  57757. 8017c74: 08017be5 .word 0x08017be5
  57758. 08017c78 <__sfp_lock_acquire>:
  57759. 8017c78: 4801 ldr r0, [pc, #4] @ (8017c80 <__sfp_lock_acquire+0x8>)
  57760. 8017c7a: f000 b964 b.w 8017f46 <__retarget_lock_acquire_recursive>
  57761. 8017c7e: bf00 nop
  57762. 8017c80: 24012e29 .word 0x24012e29
  57763. 08017c84 <__sfp_lock_release>:
  57764. 8017c84: 4801 ldr r0, [pc, #4] @ (8017c8c <__sfp_lock_release+0x8>)
  57765. 8017c86: f000 b95f b.w 8017f48 <__retarget_lock_release_recursive>
  57766. 8017c8a: bf00 nop
  57767. 8017c8c: 24012e29 .word 0x24012e29
  57768. 08017c90 <__sinit>:
  57769. 8017c90: b510 push {r4, lr}
  57770. 8017c92: 4604 mov r4, r0
  57771. 8017c94: f7ff fff0 bl 8017c78 <__sfp_lock_acquire>
  57772. 8017c98: 6a23 ldr r3, [r4, #32]
  57773. 8017c9a: b11b cbz r3, 8017ca4 <__sinit+0x14>
  57774. 8017c9c: e8bd 4010 ldmia.w sp!, {r4, lr}
  57775. 8017ca0: f7ff bff0 b.w 8017c84 <__sfp_lock_release>
  57776. 8017ca4: 4b04 ldr r3, [pc, #16] @ (8017cb8 <__sinit+0x28>)
  57777. 8017ca6: 6223 str r3, [r4, #32]
  57778. 8017ca8: 4b04 ldr r3, [pc, #16] @ (8017cbc <__sinit+0x2c>)
  57779. 8017caa: 681b ldr r3, [r3, #0]
  57780. 8017cac: 2b00 cmp r3, #0
  57781. 8017cae: d1f5 bne.n 8017c9c <__sinit+0xc>
  57782. 8017cb0: f7ff ffc4 bl 8017c3c <global_stdio_init.part.0>
  57783. 8017cb4: e7f2 b.n 8017c9c <__sinit+0xc>
  57784. 8017cb6: bf00 nop
  57785. 8017cb8: 08017bfd .word 0x08017bfd
  57786. 8017cbc: 24012e20 .word 0x24012e20
  57787. 08017cc0 <_fwalk_sglue>:
  57788. 8017cc0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  57789. 8017cc4: 4607 mov r7, r0
  57790. 8017cc6: 4688 mov r8, r1
  57791. 8017cc8: 4614 mov r4, r2
  57792. 8017cca: 2600 movs r6, #0
  57793. 8017ccc: e9d4 9501 ldrd r9, r5, [r4, #4]
  57794. 8017cd0: f1b9 0901 subs.w r9, r9, #1
  57795. 8017cd4: d505 bpl.n 8017ce2 <_fwalk_sglue+0x22>
  57796. 8017cd6: 6824 ldr r4, [r4, #0]
  57797. 8017cd8: 2c00 cmp r4, #0
  57798. 8017cda: d1f7 bne.n 8017ccc <_fwalk_sglue+0xc>
  57799. 8017cdc: 4630 mov r0, r6
  57800. 8017cde: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  57801. 8017ce2: 89ab ldrh r3, [r5, #12]
  57802. 8017ce4: 2b01 cmp r3, #1
  57803. 8017ce6: d907 bls.n 8017cf8 <_fwalk_sglue+0x38>
  57804. 8017ce8: f9b5 300e ldrsh.w r3, [r5, #14]
  57805. 8017cec: 3301 adds r3, #1
  57806. 8017cee: d003 beq.n 8017cf8 <_fwalk_sglue+0x38>
  57807. 8017cf0: 4629 mov r1, r5
  57808. 8017cf2: 4638 mov r0, r7
  57809. 8017cf4: 47c0 blx r8
  57810. 8017cf6: 4306 orrs r6, r0
  57811. 8017cf8: 3568 adds r5, #104 @ 0x68
  57812. 8017cfa: e7e9 b.n 8017cd0 <_fwalk_sglue+0x10>
  57813. 08017cfc <iprintf>:
  57814. 8017cfc: b40f push {r0, r1, r2, r3}
  57815. 8017cfe: b507 push {r0, r1, r2, lr}
  57816. 8017d00: 4906 ldr r1, [pc, #24] @ (8017d1c <iprintf+0x20>)
  57817. 8017d02: ab04 add r3, sp, #16
  57818. 8017d04: 6808 ldr r0, [r1, #0]
  57819. 8017d06: f853 2b04 ldr.w r2, [r3], #4
  57820. 8017d0a: 6881 ldr r1, [r0, #8]
  57821. 8017d0c: 9301 str r3, [sp, #4]
  57822. 8017d0e: f000 fa4d bl 80181ac <_vfiprintf_r>
  57823. 8017d12: b003 add sp, #12
  57824. 8017d14: f85d eb04 ldr.w lr, [sp], #4
  57825. 8017d18: b004 add sp, #16
  57826. 8017d1a: 4770 bx lr
  57827. 8017d1c: 24000054 .word 0x24000054
  57828. 08017d20 <__sread>:
  57829. 8017d20: b510 push {r4, lr}
  57830. 8017d22: 460c mov r4, r1
  57831. 8017d24: f9b1 100e ldrsh.w r1, [r1, #14]
  57832. 8017d28: f000 f8be bl 8017ea8 <_read_r>
  57833. 8017d2c: 2800 cmp r0, #0
  57834. 8017d2e: bfab itete ge
  57835. 8017d30: 6d63 ldrge r3, [r4, #84] @ 0x54
  57836. 8017d32: 89a3 ldrhlt r3, [r4, #12]
  57837. 8017d34: 181b addge r3, r3, r0
  57838. 8017d36: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  57839. 8017d3a: bfac ite ge
  57840. 8017d3c: 6563 strge r3, [r4, #84] @ 0x54
  57841. 8017d3e: 81a3 strhlt r3, [r4, #12]
  57842. 8017d40: bd10 pop {r4, pc}
  57843. 08017d42 <__swrite>:
  57844. 8017d42: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  57845. 8017d46: 461f mov r7, r3
  57846. 8017d48: 898b ldrh r3, [r1, #12]
  57847. 8017d4a: 05db lsls r3, r3, #23
  57848. 8017d4c: 4605 mov r5, r0
  57849. 8017d4e: 460c mov r4, r1
  57850. 8017d50: 4616 mov r6, r2
  57851. 8017d52: d505 bpl.n 8017d60 <__swrite+0x1e>
  57852. 8017d54: f9b1 100e ldrsh.w r1, [r1, #14]
  57853. 8017d58: 2302 movs r3, #2
  57854. 8017d5a: 2200 movs r2, #0
  57855. 8017d5c: f000 f892 bl 8017e84 <_lseek_r>
  57856. 8017d60: 89a3 ldrh r3, [r4, #12]
  57857. 8017d62: f9b4 100e ldrsh.w r1, [r4, #14]
  57858. 8017d66: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  57859. 8017d6a: 81a3 strh r3, [r4, #12]
  57860. 8017d6c: 4632 mov r2, r6
  57861. 8017d6e: 463b mov r3, r7
  57862. 8017d70: 4628 mov r0, r5
  57863. 8017d72: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  57864. 8017d76: f000 b8a9 b.w 8017ecc <_write_r>
  57865. 08017d7a <__sseek>:
  57866. 8017d7a: b510 push {r4, lr}
  57867. 8017d7c: 460c mov r4, r1
  57868. 8017d7e: f9b1 100e ldrsh.w r1, [r1, #14]
  57869. 8017d82: f000 f87f bl 8017e84 <_lseek_r>
  57870. 8017d86: 1c43 adds r3, r0, #1
  57871. 8017d88: 89a3 ldrh r3, [r4, #12]
  57872. 8017d8a: bf15 itete ne
  57873. 8017d8c: 6560 strne r0, [r4, #84] @ 0x54
  57874. 8017d8e: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  57875. 8017d92: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  57876. 8017d96: 81a3 strheq r3, [r4, #12]
  57877. 8017d98: bf18 it ne
  57878. 8017d9a: 81a3 strhne r3, [r4, #12]
  57879. 8017d9c: bd10 pop {r4, pc}
  57880. 08017d9e <__sclose>:
  57881. 8017d9e: f9b1 100e ldrsh.w r1, [r1, #14]
  57882. 8017da2: f000 b809 b.w 8017db8 <_close_r>
  57883. 08017da6 <memset>:
  57884. 8017da6: 4402 add r2, r0
  57885. 8017da8: 4603 mov r3, r0
  57886. 8017daa: 4293 cmp r3, r2
  57887. 8017dac: d100 bne.n 8017db0 <memset+0xa>
  57888. 8017dae: 4770 bx lr
  57889. 8017db0: f803 1b01 strb.w r1, [r3], #1
  57890. 8017db4: e7f9 b.n 8017daa <memset+0x4>
  57891. ...
  57892. 08017db8 <_close_r>:
  57893. 8017db8: b538 push {r3, r4, r5, lr}
  57894. 8017dba: 4d06 ldr r5, [pc, #24] @ (8017dd4 <_close_r+0x1c>)
  57895. 8017dbc: 2300 movs r3, #0
  57896. 8017dbe: 4604 mov r4, r0
  57897. 8017dc0: 4608 mov r0, r1
  57898. 8017dc2: 602b str r3, [r5, #0]
  57899. 8017dc4: f7ec f9cd bl 8004162 <_close>
  57900. 8017dc8: 1c43 adds r3, r0, #1
  57901. 8017dca: d102 bne.n 8017dd2 <_close_r+0x1a>
  57902. 8017dcc: 682b ldr r3, [r5, #0]
  57903. 8017dce: b103 cbz r3, 8017dd2 <_close_r+0x1a>
  57904. 8017dd0: 6023 str r3, [r4, #0]
  57905. 8017dd2: bd38 pop {r3, r4, r5, pc}
  57906. 8017dd4: 24012e24 .word 0x24012e24
  57907. 08017dd8 <_reclaim_reent>:
  57908. 8017dd8: 4b29 ldr r3, [pc, #164] @ (8017e80 <_reclaim_reent+0xa8>)
  57909. 8017dda: 681b ldr r3, [r3, #0]
  57910. 8017ddc: 4283 cmp r3, r0
  57911. 8017dde: b570 push {r4, r5, r6, lr}
  57912. 8017de0: 4604 mov r4, r0
  57913. 8017de2: d04b beq.n 8017e7c <_reclaim_reent+0xa4>
  57914. 8017de4: 69c3 ldr r3, [r0, #28]
  57915. 8017de6: b1ab cbz r3, 8017e14 <_reclaim_reent+0x3c>
  57916. 8017de8: 68db ldr r3, [r3, #12]
  57917. 8017dea: b16b cbz r3, 8017e08 <_reclaim_reent+0x30>
  57918. 8017dec: 2500 movs r5, #0
  57919. 8017dee: 69e3 ldr r3, [r4, #28]
  57920. 8017df0: 68db ldr r3, [r3, #12]
  57921. 8017df2: 5959 ldr r1, [r3, r5]
  57922. 8017df4: 2900 cmp r1, #0
  57923. 8017df6: d13b bne.n 8017e70 <_reclaim_reent+0x98>
  57924. 8017df8: 3504 adds r5, #4
  57925. 8017dfa: 2d80 cmp r5, #128 @ 0x80
  57926. 8017dfc: d1f7 bne.n 8017dee <_reclaim_reent+0x16>
  57927. 8017dfe: 69e3 ldr r3, [r4, #28]
  57928. 8017e00: 4620 mov r0, r4
  57929. 8017e02: 68d9 ldr r1, [r3, #12]
  57930. 8017e04: f000 f8b0 bl 8017f68 <_free_r>
  57931. 8017e08: 69e3 ldr r3, [r4, #28]
  57932. 8017e0a: 6819 ldr r1, [r3, #0]
  57933. 8017e0c: b111 cbz r1, 8017e14 <_reclaim_reent+0x3c>
  57934. 8017e0e: 4620 mov r0, r4
  57935. 8017e10: f000 f8aa bl 8017f68 <_free_r>
  57936. 8017e14: 6961 ldr r1, [r4, #20]
  57937. 8017e16: b111 cbz r1, 8017e1e <_reclaim_reent+0x46>
  57938. 8017e18: 4620 mov r0, r4
  57939. 8017e1a: f000 f8a5 bl 8017f68 <_free_r>
  57940. 8017e1e: 69e1 ldr r1, [r4, #28]
  57941. 8017e20: b111 cbz r1, 8017e28 <_reclaim_reent+0x50>
  57942. 8017e22: 4620 mov r0, r4
  57943. 8017e24: f000 f8a0 bl 8017f68 <_free_r>
  57944. 8017e28: 6b21 ldr r1, [r4, #48] @ 0x30
  57945. 8017e2a: b111 cbz r1, 8017e32 <_reclaim_reent+0x5a>
  57946. 8017e2c: 4620 mov r0, r4
  57947. 8017e2e: f000 f89b bl 8017f68 <_free_r>
  57948. 8017e32: 6b61 ldr r1, [r4, #52] @ 0x34
  57949. 8017e34: b111 cbz r1, 8017e3c <_reclaim_reent+0x64>
  57950. 8017e36: 4620 mov r0, r4
  57951. 8017e38: f000 f896 bl 8017f68 <_free_r>
  57952. 8017e3c: 6ba1 ldr r1, [r4, #56] @ 0x38
  57953. 8017e3e: b111 cbz r1, 8017e46 <_reclaim_reent+0x6e>
  57954. 8017e40: 4620 mov r0, r4
  57955. 8017e42: f000 f891 bl 8017f68 <_free_r>
  57956. 8017e46: 6ca1 ldr r1, [r4, #72] @ 0x48
  57957. 8017e48: b111 cbz r1, 8017e50 <_reclaim_reent+0x78>
  57958. 8017e4a: 4620 mov r0, r4
  57959. 8017e4c: f000 f88c bl 8017f68 <_free_r>
  57960. 8017e50: 6c61 ldr r1, [r4, #68] @ 0x44
  57961. 8017e52: b111 cbz r1, 8017e5a <_reclaim_reent+0x82>
  57962. 8017e54: 4620 mov r0, r4
  57963. 8017e56: f000 f887 bl 8017f68 <_free_r>
  57964. 8017e5a: 6ae1 ldr r1, [r4, #44] @ 0x2c
  57965. 8017e5c: b111 cbz r1, 8017e64 <_reclaim_reent+0x8c>
  57966. 8017e5e: 4620 mov r0, r4
  57967. 8017e60: f000 f882 bl 8017f68 <_free_r>
  57968. 8017e64: 6a23 ldr r3, [r4, #32]
  57969. 8017e66: b14b cbz r3, 8017e7c <_reclaim_reent+0xa4>
  57970. 8017e68: 4620 mov r0, r4
  57971. 8017e6a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  57972. 8017e6e: 4718 bx r3
  57973. 8017e70: 680e ldr r6, [r1, #0]
  57974. 8017e72: 4620 mov r0, r4
  57975. 8017e74: f000 f878 bl 8017f68 <_free_r>
  57976. 8017e78: 4631 mov r1, r6
  57977. 8017e7a: e7bb b.n 8017df4 <_reclaim_reent+0x1c>
  57978. 8017e7c: bd70 pop {r4, r5, r6, pc}
  57979. 8017e7e: bf00 nop
  57980. 8017e80: 24000054 .word 0x24000054
  57981. 08017e84 <_lseek_r>:
  57982. 8017e84: b538 push {r3, r4, r5, lr}
  57983. 8017e86: 4d07 ldr r5, [pc, #28] @ (8017ea4 <_lseek_r+0x20>)
  57984. 8017e88: 4604 mov r4, r0
  57985. 8017e8a: 4608 mov r0, r1
  57986. 8017e8c: 4611 mov r1, r2
  57987. 8017e8e: 2200 movs r2, #0
  57988. 8017e90: 602a str r2, [r5, #0]
  57989. 8017e92: 461a mov r2, r3
  57990. 8017e94: f7ec f98c bl 80041b0 <_lseek>
  57991. 8017e98: 1c43 adds r3, r0, #1
  57992. 8017e9a: d102 bne.n 8017ea2 <_lseek_r+0x1e>
  57993. 8017e9c: 682b ldr r3, [r5, #0]
  57994. 8017e9e: b103 cbz r3, 8017ea2 <_lseek_r+0x1e>
  57995. 8017ea0: 6023 str r3, [r4, #0]
  57996. 8017ea2: bd38 pop {r3, r4, r5, pc}
  57997. 8017ea4: 24012e24 .word 0x24012e24
  57998. 08017ea8 <_read_r>:
  57999. 8017ea8: b538 push {r3, r4, r5, lr}
  58000. 8017eaa: 4d07 ldr r5, [pc, #28] @ (8017ec8 <_read_r+0x20>)
  58001. 8017eac: 4604 mov r4, r0
  58002. 8017eae: 4608 mov r0, r1
  58003. 8017eb0: 4611 mov r1, r2
  58004. 8017eb2: 2200 movs r2, #0
  58005. 8017eb4: 602a str r2, [r5, #0]
  58006. 8017eb6: 461a mov r2, r3
  58007. 8017eb8: f7ec f91a bl 80040f0 <_read>
  58008. 8017ebc: 1c43 adds r3, r0, #1
  58009. 8017ebe: d102 bne.n 8017ec6 <_read_r+0x1e>
  58010. 8017ec0: 682b ldr r3, [r5, #0]
  58011. 8017ec2: b103 cbz r3, 8017ec6 <_read_r+0x1e>
  58012. 8017ec4: 6023 str r3, [r4, #0]
  58013. 8017ec6: bd38 pop {r3, r4, r5, pc}
  58014. 8017ec8: 24012e24 .word 0x24012e24
  58015. 08017ecc <_write_r>:
  58016. 8017ecc: b538 push {r3, r4, r5, lr}
  58017. 8017ece: 4d07 ldr r5, [pc, #28] @ (8017eec <_write_r+0x20>)
  58018. 8017ed0: 4604 mov r4, r0
  58019. 8017ed2: 4608 mov r0, r1
  58020. 8017ed4: 4611 mov r1, r2
  58021. 8017ed6: 2200 movs r2, #0
  58022. 8017ed8: 602a str r2, [r5, #0]
  58023. 8017eda: 461a mov r2, r3
  58024. 8017edc: f7ec f925 bl 800412a <_write>
  58025. 8017ee0: 1c43 adds r3, r0, #1
  58026. 8017ee2: d102 bne.n 8017eea <_write_r+0x1e>
  58027. 8017ee4: 682b ldr r3, [r5, #0]
  58028. 8017ee6: b103 cbz r3, 8017eea <_write_r+0x1e>
  58029. 8017ee8: 6023 str r3, [r4, #0]
  58030. 8017eea: bd38 pop {r3, r4, r5, pc}
  58031. 8017eec: 24012e24 .word 0x24012e24
  58032. 08017ef0 <__errno>:
  58033. 8017ef0: 4b01 ldr r3, [pc, #4] @ (8017ef8 <__errno+0x8>)
  58034. 8017ef2: 6818 ldr r0, [r3, #0]
  58035. 8017ef4: 4770 bx lr
  58036. 8017ef6: bf00 nop
  58037. 8017ef8: 24000054 .word 0x24000054
  58038. 08017efc <__libc_init_array>:
  58039. 8017efc: b570 push {r4, r5, r6, lr}
  58040. 8017efe: 4d0d ldr r5, [pc, #52] @ (8017f34 <__libc_init_array+0x38>)
  58041. 8017f00: 4c0d ldr r4, [pc, #52] @ (8017f38 <__libc_init_array+0x3c>)
  58042. 8017f02: 1b64 subs r4, r4, r5
  58043. 8017f04: 10a4 asrs r4, r4, #2
  58044. 8017f06: 2600 movs r6, #0
  58045. 8017f08: 42a6 cmp r6, r4
  58046. 8017f0a: d109 bne.n 8017f20 <__libc_init_array+0x24>
  58047. 8017f0c: 4d0b ldr r5, [pc, #44] @ (8017f3c <__libc_init_array+0x40>)
  58048. 8017f0e: 4c0c ldr r4, [pc, #48] @ (8017f40 <__libc_init_array+0x44>)
  58049. 8017f10: f000 fdc6 bl 8018aa0 <_init>
  58050. 8017f14: 1b64 subs r4, r4, r5
  58051. 8017f16: 10a4 asrs r4, r4, #2
  58052. 8017f18: 2600 movs r6, #0
  58053. 8017f1a: 42a6 cmp r6, r4
  58054. 8017f1c: d105 bne.n 8017f2a <__libc_init_array+0x2e>
  58055. 8017f1e: bd70 pop {r4, r5, r6, pc}
  58056. 8017f20: f855 3b04 ldr.w r3, [r5], #4
  58057. 8017f24: 4798 blx r3
  58058. 8017f26: 3601 adds r6, #1
  58059. 8017f28: e7ee b.n 8017f08 <__libc_init_array+0xc>
  58060. 8017f2a: f855 3b04 ldr.w r3, [r5], #4
  58061. 8017f2e: 4798 blx r3
  58062. 8017f30: 3601 adds r6, #1
  58063. 8017f32: e7f2 b.n 8017f1a <__libc_init_array+0x1e>
  58064. 8017f34: 08018c94 .word 0x08018c94
  58065. 8017f38: 08018c94 .word 0x08018c94
  58066. 8017f3c: 08018c94 .word 0x08018c94
  58067. 8017f40: 08018c98 .word 0x08018c98
  58068. 08017f44 <__retarget_lock_init_recursive>:
  58069. 8017f44: 4770 bx lr
  58070. 08017f46 <__retarget_lock_acquire_recursive>:
  58071. 8017f46: 4770 bx lr
  58072. 08017f48 <__retarget_lock_release_recursive>:
  58073. 8017f48: 4770 bx lr
  58074. 08017f4a <memcpy>:
  58075. 8017f4a: 440a add r2, r1
  58076. 8017f4c: 4291 cmp r1, r2
  58077. 8017f4e: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  58078. 8017f52: d100 bne.n 8017f56 <memcpy+0xc>
  58079. 8017f54: 4770 bx lr
  58080. 8017f56: b510 push {r4, lr}
  58081. 8017f58: f811 4b01 ldrb.w r4, [r1], #1
  58082. 8017f5c: f803 4f01 strb.w r4, [r3, #1]!
  58083. 8017f60: 4291 cmp r1, r2
  58084. 8017f62: d1f9 bne.n 8017f58 <memcpy+0xe>
  58085. 8017f64: bd10 pop {r4, pc}
  58086. ...
  58087. 08017f68 <_free_r>:
  58088. 8017f68: b538 push {r3, r4, r5, lr}
  58089. 8017f6a: 4605 mov r5, r0
  58090. 8017f6c: 2900 cmp r1, #0
  58091. 8017f6e: d041 beq.n 8017ff4 <_free_r+0x8c>
  58092. 8017f70: f851 3c04 ldr.w r3, [r1, #-4]
  58093. 8017f74: 1f0c subs r4, r1, #4
  58094. 8017f76: 2b00 cmp r3, #0
  58095. 8017f78: bfb8 it lt
  58096. 8017f7a: 18e4 addlt r4, r4, r3
  58097. 8017f7c: f000 f8e0 bl 8018140 <__malloc_lock>
  58098. 8017f80: 4a1d ldr r2, [pc, #116] @ (8017ff8 <_free_r+0x90>)
  58099. 8017f82: 6813 ldr r3, [r2, #0]
  58100. 8017f84: b933 cbnz r3, 8017f94 <_free_r+0x2c>
  58101. 8017f86: 6063 str r3, [r4, #4]
  58102. 8017f88: 6014 str r4, [r2, #0]
  58103. 8017f8a: 4628 mov r0, r5
  58104. 8017f8c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  58105. 8017f90: f000 b8dc b.w 801814c <__malloc_unlock>
  58106. 8017f94: 42a3 cmp r3, r4
  58107. 8017f96: d908 bls.n 8017faa <_free_r+0x42>
  58108. 8017f98: 6820 ldr r0, [r4, #0]
  58109. 8017f9a: 1821 adds r1, r4, r0
  58110. 8017f9c: 428b cmp r3, r1
  58111. 8017f9e: bf01 itttt eq
  58112. 8017fa0: 6819 ldreq r1, [r3, #0]
  58113. 8017fa2: 685b ldreq r3, [r3, #4]
  58114. 8017fa4: 1809 addeq r1, r1, r0
  58115. 8017fa6: 6021 streq r1, [r4, #0]
  58116. 8017fa8: e7ed b.n 8017f86 <_free_r+0x1e>
  58117. 8017faa: 461a mov r2, r3
  58118. 8017fac: 685b ldr r3, [r3, #4]
  58119. 8017fae: b10b cbz r3, 8017fb4 <_free_r+0x4c>
  58120. 8017fb0: 42a3 cmp r3, r4
  58121. 8017fb2: d9fa bls.n 8017faa <_free_r+0x42>
  58122. 8017fb4: 6811 ldr r1, [r2, #0]
  58123. 8017fb6: 1850 adds r0, r2, r1
  58124. 8017fb8: 42a0 cmp r0, r4
  58125. 8017fba: d10b bne.n 8017fd4 <_free_r+0x6c>
  58126. 8017fbc: 6820 ldr r0, [r4, #0]
  58127. 8017fbe: 4401 add r1, r0
  58128. 8017fc0: 1850 adds r0, r2, r1
  58129. 8017fc2: 4283 cmp r3, r0
  58130. 8017fc4: 6011 str r1, [r2, #0]
  58131. 8017fc6: d1e0 bne.n 8017f8a <_free_r+0x22>
  58132. 8017fc8: 6818 ldr r0, [r3, #0]
  58133. 8017fca: 685b ldr r3, [r3, #4]
  58134. 8017fcc: 6053 str r3, [r2, #4]
  58135. 8017fce: 4408 add r0, r1
  58136. 8017fd0: 6010 str r0, [r2, #0]
  58137. 8017fd2: e7da b.n 8017f8a <_free_r+0x22>
  58138. 8017fd4: d902 bls.n 8017fdc <_free_r+0x74>
  58139. 8017fd6: 230c movs r3, #12
  58140. 8017fd8: 602b str r3, [r5, #0]
  58141. 8017fda: e7d6 b.n 8017f8a <_free_r+0x22>
  58142. 8017fdc: 6820 ldr r0, [r4, #0]
  58143. 8017fde: 1821 adds r1, r4, r0
  58144. 8017fe0: 428b cmp r3, r1
  58145. 8017fe2: bf04 itt eq
  58146. 8017fe4: 6819 ldreq r1, [r3, #0]
  58147. 8017fe6: 685b ldreq r3, [r3, #4]
  58148. 8017fe8: 6063 str r3, [r4, #4]
  58149. 8017fea: bf04 itt eq
  58150. 8017fec: 1809 addeq r1, r1, r0
  58151. 8017fee: 6021 streq r1, [r4, #0]
  58152. 8017ff0: 6054 str r4, [r2, #4]
  58153. 8017ff2: e7ca b.n 8017f8a <_free_r+0x22>
  58154. 8017ff4: bd38 pop {r3, r4, r5, pc}
  58155. 8017ff6: bf00 nop
  58156. 8017ff8: 24012e30 .word 0x24012e30
  58157. 08017ffc <sbrk_aligned>:
  58158. 8017ffc: b570 push {r4, r5, r6, lr}
  58159. 8017ffe: 4e0f ldr r6, [pc, #60] @ (801803c <sbrk_aligned+0x40>)
  58160. 8018000: 460c mov r4, r1
  58161. 8018002: 6831 ldr r1, [r6, #0]
  58162. 8018004: 4605 mov r5, r0
  58163. 8018006: b911 cbnz r1, 801800e <sbrk_aligned+0x12>
  58164. 8018008: f000 fcb6 bl 8018978 <_sbrk_r>
  58165. 801800c: 6030 str r0, [r6, #0]
  58166. 801800e: 4621 mov r1, r4
  58167. 8018010: 4628 mov r0, r5
  58168. 8018012: f000 fcb1 bl 8018978 <_sbrk_r>
  58169. 8018016: 1c43 adds r3, r0, #1
  58170. 8018018: d103 bne.n 8018022 <sbrk_aligned+0x26>
  58171. 801801a: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  58172. 801801e: 4620 mov r0, r4
  58173. 8018020: bd70 pop {r4, r5, r6, pc}
  58174. 8018022: 1cc4 adds r4, r0, #3
  58175. 8018024: f024 0403 bic.w r4, r4, #3
  58176. 8018028: 42a0 cmp r0, r4
  58177. 801802a: d0f8 beq.n 801801e <sbrk_aligned+0x22>
  58178. 801802c: 1a21 subs r1, r4, r0
  58179. 801802e: 4628 mov r0, r5
  58180. 8018030: f000 fca2 bl 8018978 <_sbrk_r>
  58181. 8018034: 3001 adds r0, #1
  58182. 8018036: d1f2 bne.n 801801e <sbrk_aligned+0x22>
  58183. 8018038: e7ef b.n 801801a <sbrk_aligned+0x1e>
  58184. 801803a: bf00 nop
  58185. 801803c: 24012e2c .word 0x24012e2c
  58186. 08018040 <_malloc_r>:
  58187. 8018040: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  58188. 8018044: 1ccd adds r5, r1, #3
  58189. 8018046: f025 0503 bic.w r5, r5, #3
  58190. 801804a: 3508 adds r5, #8
  58191. 801804c: 2d0c cmp r5, #12
  58192. 801804e: bf38 it cc
  58193. 8018050: 250c movcc r5, #12
  58194. 8018052: 2d00 cmp r5, #0
  58195. 8018054: 4606 mov r6, r0
  58196. 8018056: db01 blt.n 801805c <_malloc_r+0x1c>
  58197. 8018058: 42a9 cmp r1, r5
  58198. 801805a: d904 bls.n 8018066 <_malloc_r+0x26>
  58199. 801805c: 230c movs r3, #12
  58200. 801805e: 6033 str r3, [r6, #0]
  58201. 8018060: 2000 movs r0, #0
  58202. 8018062: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  58203. 8018066: f8df 80d4 ldr.w r8, [pc, #212] @ 801813c <_malloc_r+0xfc>
  58204. 801806a: f000 f869 bl 8018140 <__malloc_lock>
  58205. 801806e: f8d8 3000 ldr.w r3, [r8]
  58206. 8018072: 461c mov r4, r3
  58207. 8018074: bb44 cbnz r4, 80180c8 <_malloc_r+0x88>
  58208. 8018076: 4629 mov r1, r5
  58209. 8018078: 4630 mov r0, r6
  58210. 801807a: f7ff ffbf bl 8017ffc <sbrk_aligned>
  58211. 801807e: 1c43 adds r3, r0, #1
  58212. 8018080: 4604 mov r4, r0
  58213. 8018082: d158 bne.n 8018136 <_malloc_r+0xf6>
  58214. 8018084: f8d8 4000 ldr.w r4, [r8]
  58215. 8018088: 4627 mov r7, r4
  58216. 801808a: 2f00 cmp r7, #0
  58217. 801808c: d143 bne.n 8018116 <_malloc_r+0xd6>
  58218. 801808e: 2c00 cmp r4, #0
  58219. 8018090: d04b beq.n 801812a <_malloc_r+0xea>
  58220. 8018092: 6823 ldr r3, [r4, #0]
  58221. 8018094: 4639 mov r1, r7
  58222. 8018096: 4630 mov r0, r6
  58223. 8018098: eb04 0903 add.w r9, r4, r3
  58224. 801809c: f000 fc6c bl 8018978 <_sbrk_r>
  58225. 80180a0: 4581 cmp r9, r0
  58226. 80180a2: d142 bne.n 801812a <_malloc_r+0xea>
  58227. 80180a4: 6821 ldr r1, [r4, #0]
  58228. 80180a6: 1a6d subs r5, r5, r1
  58229. 80180a8: 4629 mov r1, r5
  58230. 80180aa: 4630 mov r0, r6
  58231. 80180ac: f7ff ffa6 bl 8017ffc <sbrk_aligned>
  58232. 80180b0: 3001 adds r0, #1
  58233. 80180b2: d03a beq.n 801812a <_malloc_r+0xea>
  58234. 80180b4: 6823 ldr r3, [r4, #0]
  58235. 80180b6: 442b add r3, r5
  58236. 80180b8: 6023 str r3, [r4, #0]
  58237. 80180ba: f8d8 3000 ldr.w r3, [r8]
  58238. 80180be: 685a ldr r2, [r3, #4]
  58239. 80180c0: bb62 cbnz r2, 801811c <_malloc_r+0xdc>
  58240. 80180c2: f8c8 7000 str.w r7, [r8]
  58241. 80180c6: e00f b.n 80180e8 <_malloc_r+0xa8>
  58242. 80180c8: 6822 ldr r2, [r4, #0]
  58243. 80180ca: 1b52 subs r2, r2, r5
  58244. 80180cc: d420 bmi.n 8018110 <_malloc_r+0xd0>
  58245. 80180ce: 2a0b cmp r2, #11
  58246. 80180d0: d917 bls.n 8018102 <_malloc_r+0xc2>
  58247. 80180d2: 1961 adds r1, r4, r5
  58248. 80180d4: 42a3 cmp r3, r4
  58249. 80180d6: 6025 str r5, [r4, #0]
  58250. 80180d8: bf18 it ne
  58251. 80180da: 6059 strne r1, [r3, #4]
  58252. 80180dc: 6863 ldr r3, [r4, #4]
  58253. 80180de: bf08 it eq
  58254. 80180e0: f8c8 1000 streq.w r1, [r8]
  58255. 80180e4: 5162 str r2, [r4, r5]
  58256. 80180e6: 604b str r3, [r1, #4]
  58257. 80180e8: 4630 mov r0, r6
  58258. 80180ea: f000 f82f bl 801814c <__malloc_unlock>
  58259. 80180ee: f104 000b add.w r0, r4, #11
  58260. 80180f2: 1d23 adds r3, r4, #4
  58261. 80180f4: f020 0007 bic.w r0, r0, #7
  58262. 80180f8: 1ac2 subs r2, r0, r3
  58263. 80180fa: bf1c itt ne
  58264. 80180fc: 1a1b subne r3, r3, r0
  58265. 80180fe: 50a3 strne r3, [r4, r2]
  58266. 8018100: e7af b.n 8018062 <_malloc_r+0x22>
  58267. 8018102: 6862 ldr r2, [r4, #4]
  58268. 8018104: 42a3 cmp r3, r4
  58269. 8018106: bf0c ite eq
  58270. 8018108: f8c8 2000 streq.w r2, [r8]
  58271. 801810c: 605a strne r2, [r3, #4]
  58272. 801810e: e7eb b.n 80180e8 <_malloc_r+0xa8>
  58273. 8018110: 4623 mov r3, r4
  58274. 8018112: 6864 ldr r4, [r4, #4]
  58275. 8018114: e7ae b.n 8018074 <_malloc_r+0x34>
  58276. 8018116: 463c mov r4, r7
  58277. 8018118: 687f ldr r7, [r7, #4]
  58278. 801811a: e7b6 b.n 801808a <_malloc_r+0x4a>
  58279. 801811c: 461a mov r2, r3
  58280. 801811e: 685b ldr r3, [r3, #4]
  58281. 8018120: 42a3 cmp r3, r4
  58282. 8018122: d1fb bne.n 801811c <_malloc_r+0xdc>
  58283. 8018124: 2300 movs r3, #0
  58284. 8018126: 6053 str r3, [r2, #4]
  58285. 8018128: e7de b.n 80180e8 <_malloc_r+0xa8>
  58286. 801812a: 230c movs r3, #12
  58287. 801812c: 6033 str r3, [r6, #0]
  58288. 801812e: 4630 mov r0, r6
  58289. 8018130: f000 f80c bl 801814c <__malloc_unlock>
  58290. 8018134: e794 b.n 8018060 <_malloc_r+0x20>
  58291. 8018136: 6005 str r5, [r0, #0]
  58292. 8018138: e7d6 b.n 80180e8 <_malloc_r+0xa8>
  58293. 801813a: bf00 nop
  58294. 801813c: 24012e30 .word 0x24012e30
  58295. 08018140 <__malloc_lock>:
  58296. 8018140: 4801 ldr r0, [pc, #4] @ (8018148 <__malloc_lock+0x8>)
  58297. 8018142: f7ff bf00 b.w 8017f46 <__retarget_lock_acquire_recursive>
  58298. 8018146: bf00 nop
  58299. 8018148: 24012e28 .word 0x24012e28
  58300. 0801814c <__malloc_unlock>:
  58301. 801814c: 4801 ldr r0, [pc, #4] @ (8018154 <__malloc_unlock+0x8>)
  58302. 801814e: f7ff befb b.w 8017f48 <__retarget_lock_release_recursive>
  58303. 8018152: bf00 nop
  58304. 8018154: 24012e28 .word 0x24012e28
  58305. 08018158 <__sfputc_r>:
  58306. 8018158: 6893 ldr r3, [r2, #8]
  58307. 801815a: 3b01 subs r3, #1
  58308. 801815c: 2b00 cmp r3, #0
  58309. 801815e: b410 push {r4}
  58310. 8018160: 6093 str r3, [r2, #8]
  58311. 8018162: da08 bge.n 8018176 <__sfputc_r+0x1e>
  58312. 8018164: 6994 ldr r4, [r2, #24]
  58313. 8018166: 42a3 cmp r3, r4
  58314. 8018168: db01 blt.n 801816e <__sfputc_r+0x16>
  58315. 801816a: 290a cmp r1, #10
  58316. 801816c: d103 bne.n 8018176 <__sfputc_r+0x1e>
  58317. 801816e: f85d 4b04 ldr.w r4, [sp], #4
  58318. 8018172: f000 bb6d b.w 8018850 <__swbuf_r>
  58319. 8018176: 6813 ldr r3, [r2, #0]
  58320. 8018178: 1c58 adds r0, r3, #1
  58321. 801817a: 6010 str r0, [r2, #0]
  58322. 801817c: 7019 strb r1, [r3, #0]
  58323. 801817e: 4608 mov r0, r1
  58324. 8018180: f85d 4b04 ldr.w r4, [sp], #4
  58325. 8018184: 4770 bx lr
  58326. 08018186 <__sfputs_r>:
  58327. 8018186: b5f8 push {r3, r4, r5, r6, r7, lr}
  58328. 8018188: 4606 mov r6, r0
  58329. 801818a: 460f mov r7, r1
  58330. 801818c: 4614 mov r4, r2
  58331. 801818e: 18d5 adds r5, r2, r3
  58332. 8018190: 42ac cmp r4, r5
  58333. 8018192: d101 bne.n 8018198 <__sfputs_r+0x12>
  58334. 8018194: 2000 movs r0, #0
  58335. 8018196: e007 b.n 80181a8 <__sfputs_r+0x22>
  58336. 8018198: f814 1b01 ldrb.w r1, [r4], #1
  58337. 801819c: 463a mov r2, r7
  58338. 801819e: 4630 mov r0, r6
  58339. 80181a0: f7ff ffda bl 8018158 <__sfputc_r>
  58340. 80181a4: 1c43 adds r3, r0, #1
  58341. 80181a6: d1f3 bne.n 8018190 <__sfputs_r+0xa>
  58342. 80181a8: bdf8 pop {r3, r4, r5, r6, r7, pc}
  58343. ...
  58344. 080181ac <_vfiprintf_r>:
  58345. 80181ac: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  58346. 80181b0: 460d mov r5, r1
  58347. 80181b2: b09d sub sp, #116 @ 0x74
  58348. 80181b4: 4614 mov r4, r2
  58349. 80181b6: 4698 mov r8, r3
  58350. 80181b8: 4606 mov r6, r0
  58351. 80181ba: b118 cbz r0, 80181c4 <_vfiprintf_r+0x18>
  58352. 80181bc: 6a03 ldr r3, [r0, #32]
  58353. 80181be: b90b cbnz r3, 80181c4 <_vfiprintf_r+0x18>
  58354. 80181c0: f7ff fd66 bl 8017c90 <__sinit>
  58355. 80181c4: 6e6b ldr r3, [r5, #100] @ 0x64
  58356. 80181c6: 07d9 lsls r1, r3, #31
  58357. 80181c8: d405 bmi.n 80181d6 <_vfiprintf_r+0x2a>
  58358. 80181ca: 89ab ldrh r3, [r5, #12]
  58359. 80181cc: 059a lsls r2, r3, #22
  58360. 80181ce: d402 bmi.n 80181d6 <_vfiprintf_r+0x2a>
  58361. 80181d0: 6da8 ldr r0, [r5, #88] @ 0x58
  58362. 80181d2: f7ff feb8 bl 8017f46 <__retarget_lock_acquire_recursive>
  58363. 80181d6: 89ab ldrh r3, [r5, #12]
  58364. 80181d8: 071b lsls r3, r3, #28
  58365. 80181da: d501 bpl.n 80181e0 <_vfiprintf_r+0x34>
  58366. 80181dc: 692b ldr r3, [r5, #16]
  58367. 80181de: b99b cbnz r3, 8018208 <_vfiprintf_r+0x5c>
  58368. 80181e0: 4629 mov r1, r5
  58369. 80181e2: 4630 mov r0, r6
  58370. 80181e4: f000 fb72 bl 80188cc <__swsetup_r>
  58371. 80181e8: b170 cbz r0, 8018208 <_vfiprintf_r+0x5c>
  58372. 80181ea: 6e6b ldr r3, [r5, #100] @ 0x64
  58373. 80181ec: 07dc lsls r4, r3, #31
  58374. 80181ee: d504 bpl.n 80181fa <_vfiprintf_r+0x4e>
  58375. 80181f0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58376. 80181f4: b01d add sp, #116 @ 0x74
  58377. 80181f6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  58378. 80181fa: 89ab ldrh r3, [r5, #12]
  58379. 80181fc: 0598 lsls r0, r3, #22
  58380. 80181fe: d4f7 bmi.n 80181f0 <_vfiprintf_r+0x44>
  58381. 8018200: 6da8 ldr r0, [r5, #88] @ 0x58
  58382. 8018202: f7ff fea1 bl 8017f48 <__retarget_lock_release_recursive>
  58383. 8018206: e7f3 b.n 80181f0 <_vfiprintf_r+0x44>
  58384. 8018208: 2300 movs r3, #0
  58385. 801820a: 9309 str r3, [sp, #36] @ 0x24
  58386. 801820c: 2320 movs r3, #32
  58387. 801820e: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  58388. 8018212: f8cd 800c str.w r8, [sp, #12]
  58389. 8018216: 2330 movs r3, #48 @ 0x30
  58390. 8018218: f8df 81ac ldr.w r8, [pc, #428] @ 80183c8 <_vfiprintf_r+0x21c>
  58391. 801821c: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  58392. 8018220: f04f 0901 mov.w r9, #1
  58393. 8018224: 4623 mov r3, r4
  58394. 8018226: 469a mov sl, r3
  58395. 8018228: f813 2b01 ldrb.w r2, [r3], #1
  58396. 801822c: b10a cbz r2, 8018232 <_vfiprintf_r+0x86>
  58397. 801822e: 2a25 cmp r2, #37 @ 0x25
  58398. 8018230: d1f9 bne.n 8018226 <_vfiprintf_r+0x7a>
  58399. 8018232: ebba 0b04 subs.w fp, sl, r4
  58400. 8018236: d00b beq.n 8018250 <_vfiprintf_r+0xa4>
  58401. 8018238: 465b mov r3, fp
  58402. 801823a: 4622 mov r2, r4
  58403. 801823c: 4629 mov r1, r5
  58404. 801823e: 4630 mov r0, r6
  58405. 8018240: f7ff ffa1 bl 8018186 <__sfputs_r>
  58406. 8018244: 3001 adds r0, #1
  58407. 8018246: f000 80a7 beq.w 8018398 <_vfiprintf_r+0x1ec>
  58408. 801824a: 9a09 ldr r2, [sp, #36] @ 0x24
  58409. 801824c: 445a add r2, fp
  58410. 801824e: 9209 str r2, [sp, #36] @ 0x24
  58411. 8018250: f89a 3000 ldrb.w r3, [sl]
  58412. 8018254: 2b00 cmp r3, #0
  58413. 8018256: f000 809f beq.w 8018398 <_vfiprintf_r+0x1ec>
  58414. 801825a: 2300 movs r3, #0
  58415. 801825c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  58416. 8018260: e9cd 2305 strd r2, r3, [sp, #20]
  58417. 8018264: f10a 0a01 add.w sl, sl, #1
  58418. 8018268: 9304 str r3, [sp, #16]
  58419. 801826a: 9307 str r3, [sp, #28]
  58420. 801826c: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  58421. 8018270: 931a str r3, [sp, #104] @ 0x68
  58422. 8018272: 4654 mov r4, sl
  58423. 8018274: 2205 movs r2, #5
  58424. 8018276: f814 1b01 ldrb.w r1, [r4], #1
  58425. 801827a: 4853 ldr r0, [pc, #332] @ (80183c8 <_vfiprintf_r+0x21c>)
  58426. 801827c: f7e8 f830 bl 80002e0 <memchr>
  58427. 8018280: 9a04 ldr r2, [sp, #16]
  58428. 8018282: b9d8 cbnz r0, 80182bc <_vfiprintf_r+0x110>
  58429. 8018284: 06d1 lsls r1, r2, #27
  58430. 8018286: bf44 itt mi
  58431. 8018288: 2320 movmi r3, #32
  58432. 801828a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  58433. 801828e: 0713 lsls r3, r2, #28
  58434. 8018290: bf44 itt mi
  58435. 8018292: 232b movmi r3, #43 @ 0x2b
  58436. 8018294: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  58437. 8018298: f89a 3000 ldrb.w r3, [sl]
  58438. 801829c: 2b2a cmp r3, #42 @ 0x2a
  58439. 801829e: d015 beq.n 80182cc <_vfiprintf_r+0x120>
  58440. 80182a0: 9a07 ldr r2, [sp, #28]
  58441. 80182a2: 4654 mov r4, sl
  58442. 80182a4: 2000 movs r0, #0
  58443. 80182a6: f04f 0c0a mov.w ip, #10
  58444. 80182aa: 4621 mov r1, r4
  58445. 80182ac: f811 3b01 ldrb.w r3, [r1], #1
  58446. 80182b0: 3b30 subs r3, #48 @ 0x30
  58447. 80182b2: 2b09 cmp r3, #9
  58448. 80182b4: d94b bls.n 801834e <_vfiprintf_r+0x1a2>
  58449. 80182b6: b1b0 cbz r0, 80182e6 <_vfiprintf_r+0x13a>
  58450. 80182b8: 9207 str r2, [sp, #28]
  58451. 80182ba: e014 b.n 80182e6 <_vfiprintf_r+0x13a>
  58452. 80182bc: eba0 0308 sub.w r3, r0, r8
  58453. 80182c0: fa09 f303 lsl.w r3, r9, r3
  58454. 80182c4: 4313 orrs r3, r2
  58455. 80182c6: 9304 str r3, [sp, #16]
  58456. 80182c8: 46a2 mov sl, r4
  58457. 80182ca: e7d2 b.n 8018272 <_vfiprintf_r+0xc6>
  58458. 80182cc: 9b03 ldr r3, [sp, #12]
  58459. 80182ce: 1d19 adds r1, r3, #4
  58460. 80182d0: 681b ldr r3, [r3, #0]
  58461. 80182d2: 9103 str r1, [sp, #12]
  58462. 80182d4: 2b00 cmp r3, #0
  58463. 80182d6: bfbb ittet lt
  58464. 80182d8: 425b neglt r3, r3
  58465. 80182da: f042 0202 orrlt.w r2, r2, #2
  58466. 80182de: 9307 strge r3, [sp, #28]
  58467. 80182e0: 9307 strlt r3, [sp, #28]
  58468. 80182e2: bfb8 it lt
  58469. 80182e4: 9204 strlt r2, [sp, #16]
  58470. 80182e6: 7823 ldrb r3, [r4, #0]
  58471. 80182e8: 2b2e cmp r3, #46 @ 0x2e
  58472. 80182ea: d10a bne.n 8018302 <_vfiprintf_r+0x156>
  58473. 80182ec: 7863 ldrb r3, [r4, #1]
  58474. 80182ee: 2b2a cmp r3, #42 @ 0x2a
  58475. 80182f0: d132 bne.n 8018358 <_vfiprintf_r+0x1ac>
  58476. 80182f2: 9b03 ldr r3, [sp, #12]
  58477. 80182f4: 1d1a adds r2, r3, #4
  58478. 80182f6: 681b ldr r3, [r3, #0]
  58479. 80182f8: 9203 str r2, [sp, #12]
  58480. 80182fa: ea43 73e3 orr.w r3, r3, r3, asr #31
  58481. 80182fe: 3402 adds r4, #2
  58482. 8018300: 9305 str r3, [sp, #20]
  58483. 8018302: f8df a0d4 ldr.w sl, [pc, #212] @ 80183d8 <_vfiprintf_r+0x22c>
  58484. 8018306: 7821 ldrb r1, [r4, #0]
  58485. 8018308: 2203 movs r2, #3
  58486. 801830a: 4650 mov r0, sl
  58487. 801830c: f7e7 ffe8 bl 80002e0 <memchr>
  58488. 8018310: b138 cbz r0, 8018322 <_vfiprintf_r+0x176>
  58489. 8018312: 9b04 ldr r3, [sp, #16]
  58490. 8018314: eba0 000a sub.w r0, r0, sl
  58491. 8018318: 2240 movs r2, #64 @ 0x40
  58492. 801831a: 4082 lsls r2, r0
  58493. 801831c: 4313 orrs r3, r2
  58494. 801831e: 3401 adds r4, #1
  58495. 8018320: 9304 str r3, [sp, #16]
  58496. 8018322: f814 1b01 ldrb.w r1, [r4], #1
  58497. 8018326: 4829 ldr r0, [pc, #164] @ (80183cc <_vfiprintf_r+0x220>)
  58498. 8018328: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  58499. 801832c: 2206 movs r2, #6
  58500. 801832e: f7e7 ffd7 bl 80002e0 <memchr>
  58501. 8018332: 2800 cmp r0, #0
  58502. 8018334: d03f beq.n 80183b6 <_vfiprintf_r+0x20a>
  58503. 8018336: 4b26 ldr r3, [pc, #152] @ (80183d0 <_vfiprintf_r+0x224>)
  58504. 8018338: bb1b cbnz r3, 8018382 <_vfiprintf_r+0x1d6>
  58505. 801833a: 9b03 ldr r3, [sp, #12]
  58506. 801833c: 3307 adds r3, #7
  58507. 801833e: f023 0307 bic.w r3, r3, #7
  58508. 8018342: 3308 adds r3, #8
  58509. 8018344: 9303 str r3, [sp, #12]
  58510. 8018346: 9b09 ldr r3, [sp, #36] @ 0x24
  58511. 8018348: 443b add r3, r7
  58512. 801834a: 9309 str r3, [sp, #36] @ 0x24
  58513. 801834c: e76a b.n 8018224 <_vfiprintf_r+0x78>
  58514. 801834e: fb0c 3202 mla r2, ip, r2, r3
  58515. 8018352: 460c mov r4, r1
  58516. 8018354: 2001 movs r0, #1
  58517. 8018356: e7a8 b.n 80182aa <_vfiprintf_r+0xfe>
  58518. 8018358: 2300 movs r3, #0
  58519. 801835a: 3401 adds r4, #1
  58520. 801835c: 9305 str r3, [sp, #20]
  58521. 801835e: 4619 mov r1, r3
  58522. 8018360: f04f 0c0a mov.w ip, #10
  58523. 8018364: 4620 mov r0, r4
  58524. 8018366: f810 2b01 ldrb.w r2, [r0], #1
  58525. 801836a: 3a30 subs r2, #48 @ 0x30
  58526. 801836c: 2a09 cmp r2, #9
  58527. 801836e: d903 bls.n 8018378 <_vfiprintf_r+0x1cc>
  58528. 8018370: 2b00 cmp r3, #0
  58529. 8018372: d0c6 beq.n 8018302 <_vfiprintf_r+0x156>
  58530. 8018374: 9105 str r1, [sp, #20]
  58531. 8018376: e7c4 b.n 8018302 <_vfiprintf_r+0x156>
  58532. 8018378: fb0c 2101 mla r1, ip, r1, r2
  58533. 801837c: 4604 mov r4, r0
  58534. 801837e: 2301 movs r3, #1
  58535. 8018380: e7f0 b.n 8018364 <_vfiprintf_r+0x1b8>
  58536. 8018382: ab03 add r3, sp, #12
  58537. 8018384: 9300 str r3, [sp, #0]
  58538. 8018386: 462a mov r2, r5
  58539. 8018388: 4b12 ldr r3, [pc, #72] @ (80183d4 <_vfiprintf_r+0x228>)
  58540. 801838a: a904 add r1, sp, #16
  58541. 801838c: 4630 mov r0, r6
  58542. 801838e: f3af 8000 nop.w
  58543. 8018392: 4607 mov r7, r0
  58544. 8018394: 1c78 adds r0, r7, #1
  58545. 8018396: d1d6 bne.n 8018346 <_vfiprintf_r+0x19a>
  58546. 8018398: 6e6b ldr r3, [r5, #100] @ 0x64
  58547. 801839a: 07d9 lsls r1, r3, #31
  58548. 801839c: d405 bmi.n 80183aa <_vfiprintf_r+0x1fe>
  58549. 801839e: 89ab ldrh r3, [r5, #12]
  58550. 80183a0: 059a lsls r2, r3, #22
  58551. 80183a2: d402 bmi.n 80183aa <_vfiprintf_r+0x1fe>
  58552. 80183a4: 6da8 ldr r0, [r5, #88] @ 0x58
  58553. 80183a6: f7ff fdcf bl 8017f48 <__retarget_lock_release_recursive>
  58554. 80183aa: 89ab ldrh r3, [r5, #12]
  58555. 80183ac: 065b lsls r3, r3, #25
  58556. 80183ae: f53f af1f bmi.w 80181f0 <_vfiprintf_r+0x44>
  58557. 80183b2: 9809 ldr r0, [sp, #36] @ 0x24
  58558. 80183b4: e71e b.n 80181f4 <_vfiprintf_r+0x48>
  58559. 80183b6: ab03 add r3, sp, #12
  58560. 80183b8: 9300 str r3, [sp, #0]
  58561. 80183ba: 462a mov r2, r5
  58562. 80183bc: 4b05 ldr r3, [pc, #20] @ (80183d4 <_vfiprintf_r+0x228>)
  58563. 80183be: a904 add r1, sp, #16
  58564. 80183c0: 4630 mov r0, r6
  58565. 80183c2: f000 f879 bl 80184b8 <_printf_i>
  58566. 80183c6: e7e4 b.n 8018392 <_vfiprintf_r+0x1e6>
  58567. 80183c8: 08018c58 .word 0x08018c58
  58568. 80183cc: 08018c62 .word 0x08018c62
  58569. 80183d0: 00000000 .word 0x00000000
  58570. 80183d4: 08018187 .word 0x08018187
  58571. 80183d8: 08018c5e .word 0x08018c5e
  58572. 080183dc <_printf_common>:
  58573. 80183dc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  58574. 80183e0: 4616 mov r6, r2
  58575. 80183e2: 4698 mov r8, r3
  58576. 80183e4: 688a ldr r2, [r1, #8]
  58577. 80183e6: 690b ldr r3, [r1, #16]
  58578. 80183e8: f8dd 9020 ldr.w r9, [sp, #32]
  58579. 80183ec: 4293 cmp r3, r2
  58580. 80183ee: bfb8 it lt
  58581. 80183f0: 4613 movlt r3, r2
  58582. 80183f2: 6033 str r3, [r6, #0]
  58583. 80183f4: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  58584. 80183f8: 4607 mov r7, r0
  58585. 80183fa: 460c mov r4, r1
  58586. 80183fc: b10a cbz r2, 8018402 <_printf_common+0x26>
  58587. 80183fe: 3301 adds r3, #1
  58588. 8018400: 6033 str r3, [r6, #0]
  58589. 8018402: 6823 ldr r3, [r4, #0]
  58590. 8018404: 0699 lsls r1, r3, #26
  58591. 8018406: bf42 ittt mi
  58592. 8018408: 6833 ldrmi r3, [r6, #0]
  58593. 801840a: 3302 addmi r3, #2
  58594. 801840c: 6033 strmi r3, [r6, #0]
  58595. 801840e: 6825 ldr r5, [r4, #0]
  58596. 8018410: f015 0506 ands.w r5, r5, #6
  58597. 8018414: d106 bne.n 8018424 <_printf_common+0x48>
  58598. 8018416: f104 0a19 add.w sl, r4, #25
  58599. 801841a: 68e3 ldr r3, [r4, #12]
  58600. 801841c: 6832 ldr r2, [r6, #0]
  58601. 801841e: 1a9b subs r3, r3, r2
  58602. 8018420: 42ab cmp r3, r5
  58603. 8018422: dc26 bgt.n 8018472 <_printf_common+0x96>
  58604. 8018424: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  58605. 8018428: 6822 ldr r2, [r4, #0]
  58606. 801842a: 3b00 subs r3, #0
  58607. 801842c: bf18 it ne
  58608. 801842e: 2301 movne r3, #1
  58609. 8018430: 0692 lsls r2, r2, #26
  58610. 8018432: d42b bmi.n 801848c <_printf_common+0xb0>
  58611. 8018434: f104 0243 add.w r2, r4, #67 @ 0x43
  58612. 8018438: 4641 mov r1, r8
  58613. 801843a: 4638 mov r0, r7
  58614. 801843c: 47c8 blx r9
  58615. 801843e: 3001 adds r0, #1
  58616. 8018440: d01e beq.n 8018480 <_printf_common+0xa4>
  58617. 8018442: 6823 ldr r3, [r4, #0]
  58618. 8018444: 6922 ldr r2, [r4, #16]
  58619. 8018446: f003 0306 and.w r3, r3, #6
  58620. 801844a: 2b04 cmp r3, #4
  58621. 801844c: bf02 ittt eq
  58622. 801844e: 68e5 ldreq r5, [r4, #12]
  58623. 8018450: 6833 ldreq r3, [r6, #0]
  58624. 8018452: 1aed subeq r5, r5, r3
  58625. 8018454: 68a3 ldr r3, [r4, #8]
  58626. 8018456: bf0c ite eq
  58627. 8018458: ea25 75e5 biceq.w r5, r5, r5, asr #31
  58628. 801845c: 2500 movne r5, #0
  58629. 801845e: 4293 cmp r3, r2
  58630. 8018460: bfc4 itt gt
  58631. 8018462: 1a9b subgt r3, r3, r2
  58632. 8018464: 18ed addgt r5, r5, r3
  58633. 8018466: 2600 movs r6, #0
  58634. 8018468: 341a adds r4, #26
  58635. 801846a: 42b5 cmp r5, r6
  58636. 801846c: d11a bne.n 80184a4 <_printf_common+0xc8>
  58637. 801846e: 2000 movs r0, #0
  58638. 8018470: e008 b.n 8018484 <_printf_common+0xa8>
  58639. 8018472: 2301 movs r3, #1
  58640. 8018474: 4652 mov r2, sl
  58641. 8018476: 4641 mov r1, r8
  58642. 8018478: 4638 mov r0, r7
  58643. 801847a: 47c8 blx r9
  58644. 801847c: 3001 adds r0, #1
  58645. 801847e: d103 bne.n 8018488 <_printf_common+0xac>
  58646. 8018480: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58647. 8018484: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  58648. 8018488: 3501 adds r5, #1
  58649. 801848a: e7c6 b.n 801841a <_printf_common+0x3e>
  58650. 801848c: 18e1 adds r1, r4, r3
  58651. 801848e: 1c5a adds r2, r3, #1
  58652. 8018490: 2030 movs r0, #48 @ 0x30
  58653. 8018492: f881 0043 strb.w r0, [r1, #67] @ 0x43
  58654. 8018496: 4422 add r2, r4
  58655. 8018498: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  58656. 801849c: f882 1043 strb.w r1, [r2, #67] @ 0x43
  58657. 80184a0: 3302 adds r3, #2
  58658. 80184a2: e7c7 b.n 8018434 <_printf_common+0x58>
  58659. 80184a4: 2301 movs r3, #1
  58660. 80184a6: 4622 mov r2, r4
  58661. 80184a8: 4641 mov r1, r8
  58662. 80184aa: 4638 mov r0, r7
  58663. 80184ac: 47c8 blx r9
  58664. 80184ae: 3001 adds r0, #1
  58665. 80184b0: d0e6 beq.n 8018480 <_printf_common+0xa4>
  58666. 80184b2: 3601 adds r6, #1
  58667. 80184b4: e7d9 b.n 801846a <_printf_common+0x8e>
  58668. ...
  58669. 080184b8 <_printf_i>:
  58670. 80184b8: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  58671. 80184bc: 7e0f ldrb r7, [r1, #24]
  58672. 80184be: 9e0c ldr r6, [sp, #48] @ 0x30
  58673. 80184c0: 2f78 cmp r7, #120 @ 0x78
  58674. 80184c2: 4691 mov r9, r2
  58675. 80184c4: 4680 mov r8, r0
  58676. 80184c6: 460c mov r4, r1
  58677. 80184c8: 469a mov sl, r3
  58678. 80184ca: f101 0243 add.w r2, r1, #67 @ 0x43
  58679. 80184ce: d807 bhi.n 80184e0 <_printf_i+0x28>
  58680. 80184d0: 2f62 cmp r7, #98 @ 0x62
  58681. 80184d2: d80a bhi.n 80184ea <_printf_i+0x32>
  58682. 80184d4: 2f00 cmp r7, #0
  58683. 80184d6: f000 80d2 beq.w 801867e <_printf_i+0x1c6>
  58684. 80184da: 2f58 cmp r7, #88 @ 0x58
  58685. 80184dc: f000 80b9 beq.w 8018652 <_printf_i+0x19a>
  58686. 80184e0: f104 0642 add.w r6, r4, #66 @ 0x42
  58687. 80184e4: f884 7042 strb.w r7, [r4, #66] @ 0x42
  58688. 80184e8: e03a b.n 8018560 <_printf_i+0xa8>
  58689. 80184ea: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  58690. 80184ee: 2b15 cmp r3, #21
  58691. 80184f0: d8f6 bhi.n 80184e0 <_printf_i+0x28>
  58692. 80184f2: a101 add r1, pc, #4 @ (adr r1, 80184f8 <_printf_i+0x40>)
  58693. 80184f4: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  58694. 80184f8: 08018551 .word 0x08018551
  58695. 80184fc: 08018565 .word 0x08018565
  58696. 8018500: 080184e1 .word 0x080184e1
  58697. 8018504: 080184e1 .word 0x080184e1
  58698. 8018508: 080184e1 .word 0x080184e1
  58699. 801850c: 080184e1 .word 0x080184e1
  58700. 8018510: 08018565 .word 0x08018565
  58701. 8018514: 080184e1 .word 0x080184e1
  58702. 8018518: 080184e1 .word 0x080184e1
  58703. 801851c: 080184e1 .word 0x080184e1
  58704. 8018520: 080184e1 .word 0x080184e1
  58705. 8018524: 08018665 .word 0x08018665
  58706. 8018528: 0801858f .word 0x0801858f
  58707. 801852c: 0801861f .word 0x0801861f
  58708. 8018530: 080184e1 .word 0x080184e1
  58709. 8018534: 080184e1 .word 0x080184e1
  58710. 8018538: 08018687 .word 0x08018687
  58711. 801853c: 080184e1 .word 0x080184e1
  58712. 8018540: 0801858f .word 0x0801858f
  58713. 8018544: 080184e1 .word 0x080184e1
  58714. 8018548: 080184e1 .word 0x080184e1
  58715. 801854c: 08018627 .word 0x08018627
  58716. 8018550: 6833 ldr r3, [r6, #0]
  58717. 8018552: 1d1a adds r2, r3, #4
  58718. 8018554: 681b ldr r3, [r3, #0]
  58719. 8018556: 6032 str r2, [r6, #0]
  58720. 8018558: f104 0642 add.w r6, r4, #66 @ 0x42
  58721. 801855c: f884 3042 strb.w r3, [r4, #66] @ 0x42
  58722. 8018560: 2301 movs r3, #1
  58723. 8018562: e09d b.n 80186a0 <_printf_i+0x1e8>
  58724. 8018564: 6833 ldr r3, [r6, #0]
  58725. 8018566: 6820 ldr r0, [r4, #0]
  58726. 8018568: 1d19 adds r1, r3, #4
  58727. 801856a: 6031 str r1, [r6, #0]
  58728. 801856c: 0606 lsls r6, r0, #24
  58729. 801856e: d501 bpl.n 8018574 <_printf_i+0xbc>
  58730. 8018570: 681d ldr r5, [r3, #0]
  58731. 8018572: e003 b.n 801857c <_printf_i+0xc4>
  58732. 8018574: 0645 lsls r5, r0, #25
  58733. 8018576: d5fb bpl.n 8018570 <_printf_i+0xb8>
  58734. 8018578: f9b3 5000 ldrsh.w r5, [r3]
  58735. 801857c: 2d00 cmp r5, #0
  58736. 801857e: da03 bge.n 8018588 <_printf_i+0xd0>
  58737. 8018580: 232d movs r3, #45 @ 0x2d
  58738. 8018582: 426d negs r5, r5
  58739. 8018584: f884 3043 strb.w r3, [r4, #67] @ 0x43
  58740. 8018588: 4859 ldr r0, [pc, #356] @ (80186f0 <_printf_i+0x238>)
  58741. 801858a: 230a movs r3, #10
  58742. 801858c: e011 b.n 80185b2 <_printf_i+0xfa>
  58743. 801858e: 6821 ldr r1, [r4, #0]
  58744. 8018590: 6833 ldr r3, [r6, #0]
  58745. 8018592: 0608 lsls r0, r1, #24
  58746. 8018594: f853 5b04 ldr.w r5, [r3], #4
  58747. 8018598: d402 bmi.n 80185a0 <_printf_i+0xe8>
  58748. 801859a: 0649 lsls r1, r1, #25
  58749. 801859c: bf48 it mi
  58750. 801859e: b2ad uxthmi r5, r5
  58751. 80185a0: 2f6f cmp r7, #111 @ 0x6f
  58752. 80185a2: 4853 ldr r0, [pc, #332] @ (80186f0 <_printf_i+0x238>)
  58753. 80185a4: 6033 str r3, [r6, #0]
  58754. 80185a6: bf14 ite ne
  58755. 80185a8: 230a movne r3, #10
  58756. 80185aa: 2308 moveq r3, #8
  58757. 80185ac: 2100 movs r1, #0
  58758. 80185ae: f884 1043 strb.w r1, [r4, #67] @ 0x43
  58759. 80185b2: 6866 ldr r6, [r4, #4]
  58760. 80185b4: 60a6 str r6, [r4, #8]
  58761. 80185b6: 2e00 cmp r6, #0
  58762. 80185b8: bfa2 ittt ge
  58763. 80185ba: 6821 ldrge r1, [r4, #0]
  58764. 80185bc: f021 0104 bicge.w r1, r1, #4
  58765. 80185c0: 6021 strge r1, [r4, #0]
  58766. 80185c2: b90d cbnz r5, 80185c8 <_printf_i+0x110>
  58767. 80185c4: 2e00 cmp r6, #0
  58768. 80185c6: d04b beq.n 8018660 <_printf_i+0x1a8>
  58769. 80185c8: 4616 mov r6, r2
  58770. 80185ca: fbb5 f1f3 udiv r1, r5, r3
  58771. 80185ce: fb03 5711 mls r7, r3, r1, r5
  58772. 80185d2: 5dc7 ldrb r7, [r0, r7]
  58773. 80185d4: f806 7d01 strb.w r7, [r6, #-1]!
  58774. 80185d8: 462f mov r7, r5
  58775. 80185da: 42bb cmp r3, r7
  58776. 80185dc: 460d mov r5, r1
  58777. 80185de: d9f4 bls.n 80185ca <_printf_i+0x112>
  58778. 80185e0: 2b08 cmp r3, #8
  58779. 80185e2: d10b bne.n 80185fc <_printf_i+0x144>
  58780. 80185e4: 6823 ldr r3, [r4, #0]
  58781. 80185e6: 07df lsls r7, r3, #31
  58782. 80185e8: d508 bpl.n 80185fc <_printf_i+0x144>
  58783. 80185ea: 6923 ldr r3, [r4, #16]
  58784. 80185ec: 6861 ldr r1, [r4, #4]
  58785. 80185ee: 4299 cmp r1, r3
  58786. 80185f0: bfde ittt le
  58787. 80185f2: 2330 movle r3, #48 @ 0x30
  58788. 80185f4: f806 3c01 strble.w r3, [r6, #-1]
  58789. 80185f8: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  58790. 80185fc: 1b92 subs r2, r2, r6
  58791. 80185fe: 6122 str r2, [r4, #16]
  58792. 8018600: f8cd a000 str.w sl, [sp]
  58793. 8018604: 464b mov r3, r9
  58794. 8018606: aa03 add r2, sp, #12
  58795. 8018608: 4621 mov r1, r4
  58796. 801860a: 4640 mov r0, r8
  58797. 801860c: f7ff fee6 bl 80183dc <_printf_common>
  58798. 8018610: 3001 adds r0, #1
  58799. 8018612: d14a bne.n 80186aa <_printf_i+0x1f2>
  58800. 8018614: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58801. 8018618: b004 add sp, #16
  58802. 801861a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  58803. 801861e: 6823 ldr r3, [r4, #0]
  58804. 8018620: f043 0320 orr.w r3, r3, #32
  58805. 8018624: 6023 str r3, [r4, #0]
  58806. 8018626: 4833 ldr r0, [pc, #204] @ (80186f4 <_printf_i+0x23c>)
  58807. 8018628: 2778 movs r7, #120 @ 0x78
  58808. 801862a: f884 7045 strb.w r7, [r4, #69] @ 0x45
  58809. 801862e: 6823 ldr r3, [r4, #0]
  58810. 8018630: 6831 ldr r1, [r6, #0]
  58811. 8018632: 061f lsls r7, r3, #24
  58812. 8018634: f851 5b04 ldr.w r5, [r1], #4
  58813. 8018638: d402 bmi.n 8018640 <_printf_i+0x188>
  58814. 801863a: 065f lsls r7, r3, #25
  58815. 801863c: bf48 it mi
  58816. 801863e: b2ad uxthmi r5, r5
  58817. 8018640: 6031 str r1, [r6, #0]
  58818. 8018642: 07d9 lsls r1, r3, #31
  58819. 8018644: bf44 itt mi
  58820. 8018646: f043 0320 orrmi.w r3, r3, #32
  58821. 801864a: 6023 strmi r3, [r4, #0]
  58822. 801864c: b11d cbz r5, 8018656 <_printf_i+0x19e>
  58823. 801864e: 2310 movs r3, #16
  58824. 8018650: e7ac b.n 80185ac <_printf_i+0xf4>
  58825. 8018652: 4827 ldr r0, [pc, #156] @ (80186f0 <_printf_i+0x238>)
  58826. 8018654: e7e9 b.n 801862a <_printf_i+0x172>
  58827. 8018656: 6823 ldr r3, [r4, #0]
  58828. 8018658: f023 0320 bic.w r3, r3, #32
  58829. 801865c: 6023 str r3, [r4, #0]
  58830. 801865e: e7f6 b.n 801864e <_printf_i+0x196>
  58831. 8018660: 4616 mov r6, r2
  58832. 8018662: e7bd b.n 80185e0 <_printf_i+0x128>
  58833. 8018664: 6833 ldr r3, [r6, #0]
  58834. 8018666: 6825 ldr r5, [r4, #0]
  58835. 8018668: 6961 ldr r1, [r4, #20]
  58836. 801866a: 1d18 adds r0, r3, #4
  58837. 801866c: 6030 str r0, [r6, #0]
  58838. 801866e: 062e lsls r6, r5, #24
  58839. 8018670: 681b ldr r3, [r3, #0]
  58840. 8018672: d501 bpl.n 8018678 <_printf_i+0x1c0>
  58841. 8018674: 6019 str r1, [r3, #0]
  58842. 8018676: e002 b.n 801867e <_printf_i+0x1c6>
  58843. 8018678: 0668 lsls r0, r5, #25
  58844. 801867a: d5fb bpl.n 8018674 <_printf_i+0x1bc>
  58845. 801867c: 8019 strh r1, [r3, #0]
  58846. 801867e: 2300 movs r3, #0
  58847. 8018680: 6123 str r3, [r4, #16]
  58848. 8018682: 4616 mov r6, r2
  58849. 8018684: e7bc b.n 8018600 <_printf_i+0x148>
  58850. 8018686: 6833 ldr r3, [r6, #0]
  58851. 8018688: 1d1a adds r2, r3, #4
  58852. 801868a: 6032 str r2, [r6, #0]
  58853. 801868c: 681e ldr r6, [r3, #0]
  58854. 801868e: 6862 ldr r2, [r4, #4]
  58855. 8018690: 2100 movs r1, #0
  58856. 8018692: 4630 mov r0, r6
  58857. 8018694: f7e7 fe24 bl 80002e0 <memchr>
  58858. 8018698: b108 cbz r0, 801869e <_printf_i+0x1e6>
  58859. 801869a: 1b80 subs r0, r0, r6
  58860. 801869c: 6060 str r0, [r4, #4]
  58861. 801869e: 6863 ldr r3, [r4, #4]
  58862. 80186a0: 6123 str r3, [r4, #16]
  58863. 80186a2: 2300 movs r3, #0
  58864. 80186a4: f884 3043 strb.w r3, [r4, #67] @ 0x43
  58865. 80186a8: e7aa b.n 8018600 <_printf_i+0x148>
  58866. 80186aa: 6923 ldr r3, [r4, #16]
  58867. 80186ac: 4632 mov r2, r6
  58868. 80186ae: 4649 mov r1, r9
  58869. 80186b0: 4640 mov r0, r8
  58870. 80186b2: 47d0 blx sl
  58871. 80186b4: 3001 adds r0, #1
  58872. 80186b6: d0ad beq.n 8018614 <_printf_i+0x15c>
  58873. 80186b8: 6823 ldr r3, [r4, #0]
  58874. 80186ba: 079b lsls r3, r3, #30
  58875. 80186bc: d413 bmi.n 80186e6 <_printf_i+0x22e>
  58876. 80186be: 68e0 ldr r0, [r4, #12]
  58877. 80186c0: 9b03 ldr r3, [sp, #12]
  58878. 80186c2: 4298 cmp r0, r3
  58879. 80186c4: bfb8 it lt
  58880. 80186c6: 4618 movlt r0, r3
  58881. 80186c8: e7a6 b.n 8018618 <_printf_i+0x160>
  58882. 80186ca: 2301 movs r3, #1
  58883. 80186cc: 4632 mov r2, r6
  58884. 80186ce: 4649 mov r1, r9
  58885. 80186d0: 4640 mov r0, r8
  58886. 80186d2: 47d0 blx sl
  58887. 80186d4: 3001 adds r0, #1
  58888. 80186d6: d09d beq.n 8018614 <_printf_i+0x15c>
  58889. 80186d8: 3501 adds r5, #1
  58890. 80186da: 68e3 ldr r3, [r4, #12]
  58891. 80186dc: 9903 ldr r1, [sp, #12]
  58892. 80186de: 1a5b subs r3, r3, r1
  58893. 80186e0: 42ab cmp r3, r5
  58894. 80186e2: dcf2 bgt.n 80186ca <_printf_i+0x212>
  58895. 80186e4: e7eb b.n 80186be <_printf_i+0x206>
  58896. 80186e6: 2500 movs r5, #0
  58897. 80186e8: f104 0619 add.w r6, r4, #25
  58898. 80186ec: e7f5 b.n 80186da <_printf_i+0x222>
  58899. 80186ee: bf00 nop
  58900. 80186f0: 08018c69 .word 0x08018c69
  58901. 80186f4: 08018c7a .word 0x08018c7a
  58902. 080186f8 <__sflush_r>:
  58903. 80186f8: f9b1 200c ldrsh.w r2, [r1, #12]
  58904. 80186fc: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  58905. 8018700: 0716 lsls r6, r2, #28
  58906. 8018702: 4605 mov r5, r0
  58907. 8018704: 460c mov r4, r1
  58908. 8018706: d454 bmi.n 80187b2 <__sflush_r+0xba>
  58909. 8018708: 684b ldr r3, [r1, #4]
  58910. 801870a: 2b00 cmp r3, #0
  58911. 801870c: dc02 bgt.n 8018714 <__sflush_r+0x1c>
  58912. 801870e: 6c0b ldr r3, [r1, #64] @ 0x40
  58913. 8018710: 2b00 cmp r3, #0
  58914. 8018712: dd48 ble.n 80187a6 <__sflush_r+0xae>
  58915. 8018714: 6ae6 ldr r6, [r4, #44] @ 0x2c
  58916. 8018716: 2e00 cmp r6, #0
  58917. 8018718: d045 beq.n 80187a6 <__sflush_r+0xae>
  58918. 801871a: 2300 movs r3, #0
  58919. 801871c: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  58920. 8018720: 682f ldr r7, [r5, #0]
  58921. 8018722: 6a21 ldr r1, [r4, #32]
  58922. 8018724: 602b str r3, [r5, #0]
  58923. 8018726: d030 beq.n 801878a <__sflush_r+0x92>
  58924. 8018728: 6d62 ldr r2, [r4, #84] @ 0x54
  58925. 801872a: 89a3 ldrh r3, [r4, #12]
  58926. 801872c: 0759 lsls r1, r3, #29
  58927. 801872e: d505 bpl.n 801873c <__sflush_r+0x44>
  58928. 8018730: 6863 ldr r3, [r4, #4]
  58929. 8018732: 1ad2 subs r2, r2, r3
  58930. 8018734: 6b63 ldr r3, [r4, #52] @ 0x34
  58931. 8018736: b10b cbz r3, 801873c <__sflush_r+0x44>
  58932. 8018738: 6c23 ldr r3, [r4, #64] @ 0x40
  58933. 801873a: 1ad2 subs r2, r2, r3
  58934. 801873c: 2300 movs r3, #0
  58935. 801873e: 6ae6 ldr r6, [r4, #44] @ 0x2c
  58936. 8018740: 6a21 ldr r1, [r4, #32]
  58937. 8018742: 4628 mov r0, r5
  58938. 8018744: 47b0 blx r6
  58939. 8018746: 1c43 adds r3, r0, #1
  58940. 8018748: 89a3 ldrh r3, [r4, #12]
  58941. 801874a: d106 bne.n 801875a <__sflush_r+0x62>
  58942. 801874c: 6829 ldr r1, [r5, #0]
  58943. 801874e: 291d cmp r1, #29
  58944. 8018750: d82b bhi.n 80187aa <__sflush_r+0xb2>
  58945. 8018752: 4a2a ldr r2, [pc, #168] @ (80187fc <__sflush_r+0x104>)
  58946. 8018754: 410a asrs r2, r1
  58947. 8018756: 07d6 lsls r6, r2, #31
  58948. 8018758: d427 bmi.n 80187aa <__sflush_r+0xb2>
  58949. 801875a: 2200 movs r2, #0
  58950. 801875c: 6062 str r2, [r4, #4]
  58951. 801875e: 04d9 lsls r1, r3, #19
  58952. 8018760: 6922 ldr r2, [r4, #16]
  58953. 8018762: 6022 str r2, [r4, #0]
  58954. 8018764: d504 bpl.n 8018770 <__sflush_r+0x78>
  58955. 8018766: 1c42 adds r2, r0, #1
  58956. 8018768: d101 bne.n 801876e <__sflush_r+0x76>
  58957. 801876a: 682b ldr r3, [r5, #0]
  58958. 801876c: b903 cbnz r3, 8018770 <__sflush_r+0x78>
  58959. 801876e: 6560 str r0, [r4, #84] @ 0x54
  58960. 8018770: 6b61 ldr r1, [r4, #52] @ 0x34
  58961. 8018772: 602f str r7, [r5, #0]
  58962. 8018774: b1b9 cbz r1, 80187a6 <__sflush_r+0xae>
  58963. 8018776: f104 0344 add.w r3, r4, #68 @ 0x44
  58964. 801877a: 4299 cmp r1, r3
  58965. 801877c: d002 beq.n 8018784 <__sflush_r+0x8c>
  58966. 801877e: 4628 mov r0, r5
  58967. 8018780: f7ff fbf2 bl 8017f68 <_free_r>
  58968. 8018784: 2300 movs r3, #0
  58969. 8018786: 6363 str r3, [r4, #52] @ 0x34
  58970. 8018788: e00d b.n 80187a6 <__sflush_r+0xae>
  58971. 801878a: 2301 movs r3, #1
  58972. 801878c: 4628 mov r0, r5
  58973. 801878e: 47b0 blx r6
  58974. 8018790: 4602 mov r2, r0
  58975. 8018792: 1c50 adds r0, r2, #1
  58976. 8018794: d1c9 bne.n 801872a <__sflush_r+0x32>
  58977. 8018796: 682b ldr r3, [r5, #0]
  58978. 8018798: 2b00 cmp r3, #0
  58979. 801879a: d0c6 beq.n 801872a <__sflush_r+0x32>
  58980. 801879c: 2b1d cmp r3, #29
  58981. 801879e: d001 beq.n 80187a4 <__sflush_r+0xac>
  58982. 80187a0: 2b16 cmp r3, #22
  58983. 80187a2: d11e bne.n 80187e2 <__sflush_r+0xea>
  58984. 80187a4: 602f str r7, [r5, #0]
  58985. 80187a6: 2000 movs r0, #0
  58986. 80187a8: e022 b.n 80187f0 <__sflush_r+0xf8>
  58987. 80187aa: f043 0340 orr.w r3, r3, #64 @ 0x40
  58988. 80187ae: b21b sxth r3, r3
  58989. 80187b0: e01b b.n 80187ea <__sflush_r+0xf2>
  58990. 80187b2: 690f ldr r7, [r1, #16]
  58991. 80187b4: 2f00 cmp r7, #0
  58992. 80187b6: d0f6 beq.n 80187a6 <__sflush_r+0xae>
  58993. 80187b8: 0793 lsls r3, r2, #30
  58994. 80187ba: 680e ldr r6, [r1, #0]
  58995. 80187bc: bf08 it eq
  58996. 80187be: 694b ldreq r3, [r1, #20]
  58997. 80187c0: 600f str r7, [r1, #0]
  58998. 80187c2: bf18 it ne
  58999. 80187c4: 2300 movne r3, #0
  59000. 80187c6: eba6 0807 sub.w r8, r6, r7
  59001. 80187ca: 608b str r3, [r1, #8]
  59002. 80187cc: f1b8 0f00 cmp.w r8, #0
  59003. 80187d0: dde9 ble.n 80187a6 <__sflush_r+0xae>
  59004. 80187d2: 6a21 ldr r1, [r4, #32]
  59005. 80187d4: 6aa6 ldr r6, [r4, #40] @ 0x28
  59006. 80187d6: 4643 mov r3, r8
  59007. 80187d8: 463a mov r2, r7
  59008. 80187da: 4628 mov r0, r5
  59009. 80187dc: 47b0 blx r6
  59010. 80187de: 2800 cmp r0, #0
  59011. 80187e0: dc08 bgt.n 80187f4 <__sflush_r+0xfc>
  59012. 80187e2: f9b4 300c ldrsh.w r3, [r4, #12]
  59013. 80187e6: f043 0340 orr.w r3, r3, #64 @ 0x40
  59014. 80187ea: 81a3 strh r3, [r4, #12]
  59015. 80187ec: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  59016. 80187f0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  59017. 80187f4: 4407 add r7, r0
  59018. 80187f6: eba8 0800 sub.w r8, r8, r0
  59019. 80187fa: e7e7 b.n 80187cc <__sflush_r+0xd4>
  59020. 80187fc: dfbffffe .word 0xdfbffffe
  59021. 08018800 <_fflush_r>:
  59022. 8018800: b538 push {r3, r4, r5, lr}
  59023. 8018802: 690b ldr r3, [r1, #16]
  59024. 8018804: 4605 mov r5, r0
  59025. 8018806: 460c mov r4, r1
  59026. 8018808: b913 cbnz r3, 8018810 <_fflush_r+0x10>
  59027. 801880a: 2500 movs r5, #0
  59028. 801880c: 4628 mov r0, r5
  59029. 801880e: bd38 pop {r3, r4, r5, pc}
  59030. 8018810: b118 cbz r0, 801881a <_fflush_r+0x1a>
  59031. 8018812: 6a03 ldr r3, [r0, #32]
  59032. 8018814: b90b cbnz r3, 801881a <_fflush_r+0x1a>
  59033. 8018816: f7ff fa3b bl 8017c90 <__sinit>
  59034. 801881a: f9b4 300c ldrsh.w r3, [r4, #12]
  59035. 801881e: 2b00 cmp r3, #0
  59036. 8018820: d0f3 beq.n 801880a <_fflush_r+0xa>
  59037. 8018822: 6e62 ldr r2, [r4, #100] @ 0x64
  59038. 8018824: 07d0 lsls r0, r2, #31
  59039. 8018826: d404 bmi.n 8018832 <_fflush_r+0x32>
  59040. 8018828: 0599 lsls r1, r3, #22
  59041. 801882a: d402 bmi.n 8018832 <_fflush_r+0x32>
  59042. 801882c: 6da0 ldr r0, [r4, #88] @ 0x58
  59043. 801882e: f7ff fb8a bl 8017f46 <__retarget_lock_acquire_recursive>
  59044. 8018832: 4628 mov r0, r5
  59045. 8018834: 4621 mov r1, r4
  59046. 8018836: f7ff ff5f bl 80186f8 <__sflush_r>
  59047. 801883a: 6e63 ldr r3, [r4, #100] @ 0x64
  59048. 801883c: 07da lsls r2, r3, #31
  59049. 801883e: 4605 mov r5, r0
  59050. 8018840: d4e4 bmi.n 801880c <_fflush_r+0xc>
  59051. 8018842: 89a3 ldrh r3, [r4, #12]
  59052. 8018844: 059b lsls r3, r3, #22
  59053. 8018846: d4e1 bmi.n 801880c <_fflush_r+0xc>
  59054. 8018848: 6da0 ldr r0, [r4, #88] @ 0x58
  59055. 801884a: f7ff fb7d bl 8017f48 <__retarget_lock_release_recursive>
  59056. 801884e: e7dd b.n 801880c <_fflush_r+0xc>
  59057. 08018850 <__swbuf_r>:
  59058. 8018850: b5f8 push {r3, r4, r5, r6, r7, lr}
  59059. 8018852: 460e mov r6, r1
  59060. 8018854: 4614 mov r4, r2
  59061. 8018856: 4605 mov r5, r0
  59062. 8018858: b118 cbz r0, 8018862 <__swbuf_r+0x12>
  59063. 801885a: 6a03 ldr r3, [r0, #32]
  59064. 801885c: b90b cbnz r3, 8018862 <__swbuf_r+0x12>
  59065. 801885e: f7ff fa17 bl 8017c90 <__sinit>
  59066. 8018862: 69a3 ldr r3, [r4, #24]
  59067. 8018864: 60a3 str r3, [r4, #8]
  59068. 8018866: 89a3 ldrh r3, [r4, #12]
  59069. 8018868: 071a lsls r2, r3, #28
  59070. 801886a: d501 bpl.n 8018870 <__swbuf_r+0x20>
  59071. 801886c: 6923 ldr r3, [r4, #16]
  59072. 801886e: b943 cbnz r3, 8018882 <__swbuf_r+0x32>
  59073. 8018870: 4621 mov r1, r4
  59074. 8018872: 4628 mov r0, r5
  59075. 8018874: f000 f82a bl 80188cc <__swsetup_r>
  59076. 8018878: b118 cbz r0, 8018882 <__swbuf_r+0x32>
  59077. 801887a: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  59078. 801887e: 4638 mov r0, r7
  59079. 8018880: bdf8 pop {r3, r4, r5, r6, r7, pc}
  59080. 8018882: 6823 ldr r3, [r4, #0]
  59081. 8018884: 6922 ldr r2, [r4, #16]
  59082. 8018886: 1a98 subs r0, r3, r2
  59083. 8018888: 6963 ldr r3, [r4, #20]
  59084. 801888a: b2f6 uxtb r6, r6
  59085. 801888c: 4283 cmp r3, r0
  59086. 801888e: 4637 mov r7, r6
  59087. 8018890: dc05 bgt.n 801889e <__swbuf_r+0x4e>
  59088. 8018892: 4621 mov r1, r4
  59089. 8018894: 4628 mov r0, r5
  59090. 8018896: f7ff ffb3 bl 8018800 <_fflush_r>
  59091. 801889a: 2800 cmp r0, #0
  59092. 801889c: d1ed bne.n 801887a <__swbuf_r+0x2a>
  59093. 801889e: 68a3 ldr r3, [r4, #8]
  59094. 80188a0: 3b01 subs r3, #1
  59095. 80188a2: 60a3 str r3, [r4, #8]
  59096. 80188a4: 6823 ldr r3, [r4, #0]
  59097. 80188a6: 1c5a adds r2, r3, #1
  59098. 80188a8: 6022 str r2, [r4, #0]
  59099. 80188aa: 701e strb r6, [r3, #0]
  59100. 80188ac: 6962 ldr r2, [r4, #20]
  59101. 80188ae: 1c43 adds r3, r0, #1
  59102. 80188b0: 429a cmp r2, r3
  59103. 80188b2: d004 beq.n 80188be <__swbuf_r+0x6e>
  59104. 80188b4: 89a3 ldrh r3, [r4, #12]
  59105. 80188b6: 07db lsls r3, r3, #31
  59106. 80188b8: d5e1 bpl.n 801887e <__swbuf_r+0x2e>
  59107. 80188ba: 2e0a cmp r6, #10
  59108. 80188bc: d1df bne.n 801887e <__swbuf_r+0x2e>
  59109. 80188be: 4621 mov r1, r4
  59110. 80188c0: 4628 mov r0, r5
  59111. 80188c2: f7ff ff9d bl 8018800 <_fflush_r>
  59112. 80188c6: 2800 cmp r0, #0
  59113. 80188c8: d0d9 beq.n 801887e <__swbuf_r+0x2e>
  59114. 80188ca: e7d6 b.n 801887a <__swbuf_r+0x2a>
  59115. 080188cc <__swsetup_r>:
  59116. 80188cc: b538 push {r3, r4, r5, lr}
  59117. 80188ce: 4b29 ldr r3, [pc, #164] @ (8018974 <__swsetup_r+0xa8>)
  59118. 80188d0: 4605 mov r5, r0
  59119. 80188d2: 6818 ldr r0, [r3, #0]
  59120. 80188d4: 460c mov r4, r1
  59121. 80188d6: b118 cbz r0, 80188e0 <__swsetup_r+0x14>
  59122. 80188d8: 6a03 ldr r3, [r0, #32]
  59123. 80188da: b90b cbnz r3, 80188e0 <__swsetup_r+0x14>
  59124. 80188dc: f7ff f9d8 bl 8017c90 <__sinit>
  59125. 80188e0: f9b4 300c ldrsh.w r3, [r4, #12]
  59126. 80188e4: 0719 lsls r1, r3, #28
  59127. 80188e6: d422 bmi.n 801892e <__swsetup_r+0x62>
  59128. 80188e8: 06da lsls r2, r3, #27
  59129. 80188ea: d407 bmi.n 80188fc <__swsetup_r+0x30>
  59130. 80188ec: 2209 movs r2, #9
  59131. 80188ee: 602a str r2, [r5, #0]
  59132. 80188f0: f043 0340 orr.w r3, r3, #64 @ 0x40
  59133. 80188f4: 81a3 strh r3, [r4, #12]
  59134. 80188f6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  59135. 80188fa: e033 b.n 8018964 <__swsetup_r+0x98>
  59136. 80188fc: 0758 lsls r0, r3, #29
  59137. 80188fe: d512 bpl.n 8018926 <__swsetup_r+0x5a>
  59138. 8018900: 6b61 ldr r1, [r4, #52] @ 0x34
  59139. 8018902: b141 cbz r1, 8018916 <__swsetup_r+0x4a>
  59140. 8018904: f104 0344 add.w r3, r4, #68 @ 0x44
  59141. 8018908: 4299 cmp r1, r3
  59142. 801890a: d002 beq.n 8018912 <__swsetup_r+0x46>
  59143. 801890c: 4628 mov r0, r5
  59144. 801890e: f7ff fb2b bl 8017f68 <_free_r>
  59145. 8018912: 2300 movs r3, #0
  59146. 8018914: 6363 str r3, [r4, #52] @ 0x34
  59147. 8018916: 89a3 ldrh r3, [r4, #12]
  59148. 8018918: f023 0324 bic.w r3, r3, #36 @ 0x24
  59149. 801891c: 81a3 strh r3, [r4, #12]
  59150. 801891e: 2300 movs r3, #0
  59151. 8018920: 6063 str r3, [r4, #4]
  59152. 8018922: 6923 ldr r3, [r4, #16]
  59153. 8018924: 6023 str r3, [r4, #0]
  59154. 8018926: 89a3 ldrh r3, [r4, #12]
  59155. 8018928: f043 0308 orr.w r3, r3, #8
  59156. 801892c: 81a3 strh r3, [r4, #12]
  59157. 801892e: 6923 ldr r3, [r4, #16]
  59158. 8018930: b94b cbnz r3, 8018946 <__swsetup_r+0x7a>
  59159. 8018932: 89a3 ldrh r3, [r4, #12]
  59160. 8018934: f403 7320 and.w r3, r3, #640 @ 0x280
  59161. 8018938: f5b3 7f00 cmp.w r3, #512 @ 0x200
  59162. 801893c: d003 beq.n 8018946 <__swsetup_r+0x7a>
  59163. 801893e: 4621 mov r1, r4
  59164. 8018940: 4628 mov r0, r5
  59165. 8018942: f000 f84f bl 80189e4 <__smakebuf_r>
  59166. 8018946: f9b4 300c ldrsh.w r3, [r4, #12]
  59167. 801894a: f013 0201 ands.w r2, r3, #1
  59168. 801894e: d00a beq.n 8018966 <__swsetup_r+0x9a>
  59169. 8018950: 2200 movs r2, #0
  59170. 8018952: 60a2 str r2, [r4, #8]
  59171. 8018954: 6962 ldr r2, [r4, #20]
  59172. 8018956: 4252 negs r2, r2
  59173. 8018958: 61a2 str r2, [r4, #24]
  59174. 801895a: 6922 ldr r2, [r4, #16]
  59175. 801895c: b942 cbnz r2, 8018970 <__swsetup_r+0xa4>
  59176. 801895e: f013 0080 ands.w r0, r3, #128 @ 0x80
  59177. 8018962: d1c5 bne.n 80188f0 <__swsetup_r+0x24>
  59178. 8018964: bd38 pop {r3, r4, r5, pc}
  59179. 8018966: 0799 lsls r1, r3, #30
  59180. 8018968: bf58 it pl
  59181. 801896a: 6962 ldrpl r2, [r4, #20]
  59182. 801896c: 60a2 str r2, [r4, #8]
  59183. 801896e: e7f4 b.n 801895a <__swsetup_r+0x8e>
  59184. 8018970: 2000 movs r0, #0
  59185. 8018972: e7f7 b.n 8018964 <__swsetup_r+0x98>
  59186. 8018974: 24000054 .word 0x24000054
  59187. 08018978 <_sbrk_r>:
  59188. 8018978: b538 push {r3, r4, r5, lr}
  59189. 801897a: 4d06 ldr r5, [pc, #24] @ (8018994 <_sbrk_r+0x1c>)
  59190. 801897c: 2300 movs r3, #0
  59191. 801897e: 4604 mov r4, r0
  59192. 8018980: 4608 mov r0, r1
  59193. 8018982: 602b str r3, [r5, #0]
  59194. 8018984: f7eb fc22 bl 80041cc <_sbrk>
  59195. 8018988: 1c43 adds r3, r0, #1
  59196. 801898a: d102 bne.n 8018992 <_sbrk_r+0x1a>
  59197. 801898c: 682b ldr r3, [r5, #0]
  59198. 801898e: b103 cbz r3, 8018992 <_sbrk_r+0x1a>
  59199. 8018990: 6023 str r3, [r4, #0]
  59200. 8018992: bd38 pop {r3, r4, r5, pc}
  59201. 8018994: 24012e24 .word 0x24012e24
  59202. 08018998 <__swhatbuf_r>:
  59203. 8018998: b570 push {r4, r5, r6, lr}
  59204. 801899a: 460c mov r4, r1
  59205. 801899c: f9b1 100e ldrsh.w r1, [r1, #14]
  59206. 80189a0: 2900 cmp r1, #0
  59207. 80189a2: b096 sub sp, #88 @ 0x58
  59208. 80189a4: 4615 mov r5, r2
  59209. 80189a6: 461e mov r6, r3
  59210. 80189a8: da0d bge.n 80189c6 <__swhatbuf_r+0x2e>
  59211. 80189aa: 89a3 ldrh r3, [r4, #12]
  59212. 80189ac: f013 0f80 tst.w r3, #128 @ 0x80
  59213. 80189b0: f04f 0100 mov.w r1, #0
  59214. 80189b4: bf14 ite ne
  59215. 80189b6: 2340 movne r3, #64 @ 0x40
  59216. 80189b8: f44f 6380 moveq.w r3, #1024 @ 0x400
  59217. 80189bc: 2000 movs r0, #0
  59218. 80189be: 6031 str r1, [r6, #0]
  59219. 80189c0: 602b str r3, [r5, #0]
  59220. 80189c2: b016 add sp, #88 @ 0x58
  59221. 80189c4: bd70 pop {r4, r5, r6, pc}
  59222. 80189c6: 466a mov r2, sp
  59223. 80189c8: f000 f848 bl 8018a5c <_fstat_r>
  59224. 80189cc: 2800 cmp r0, #0
  59225. 80189ce: dbec blt.n 80189aa <__swhatbuf_r+0x12>
  59226. 80189d0: 9901 ldr r1, [sp, #4]
  59227. 80189d2: f401 4170 and.w r1, r1, #61440 @ 0xf000
  59228. 80189d6: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  59229. 80189da: 4259 negs r1, r3
  59230. 80189dc: 4159 adcs r1, r3
  59231. 80189de: f44f 6380 mov.w r3, #1024 @ 0x400
  59232. 80189e2: e7eb b.n 80189bc <__swhatbuf_r+0x24>
  59233. 080189e4 <__smakebuf_r>:
  59234. 80189e4: 898b ldrh r3, [r1, #12]
  59235. 80189e6: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  59236. 80189e8: 079d lsls r5, r3, #30
  59237. 80189ea: 4606 mov r6, r0
  59238. 80189ec: 460c mov r4, r1
  59239. 80189ee: d507 bpl.n 8018a00 <__smakebuf_r+0x1c>
  59240. 80189f0: f104 0347 add.w r3, r4, #71 @ 0x47
  59241. 80189f4: 6023 str r3, [r4, #0]
  59242. 80189f6: 6123 str r3, [r4, #16]
  59243. 80189f8: 2301 movs r3, #1
  59244. 80189fa: 6163 str r3, [r4, #20]
  59245. 80189fc: b003 add sp, #12
  59246. 80189fe: bdf0 pop {r4, r5, r6, r7, pc}
  59247. 8018a00: ab01 add r3, sp, #4
  59248. 8018a02: 466a mov r2, sp
  59249. 8018a04: f7ff ffc8 bl 8018998 <__swhatbuf_r>
  59250. 8018a08: 9f00 ldr r7, [sp, #0]
  59251. 8018a0a: 4605 mov r5, r0
  59252. 8018a0c: 4639 mov r1, r7
  59253. 8018a0e: 4630 mov r0, r6
  59254. 8018a10: f7ff fb16 bl 8018040 <_malloc_r>
  59255. 8018a14: b948 cbnz r0, 8018a2a <__smakebuf_r+0x46>
  59256. 8018a16: f9b4 300c ldrsh.w r3, [r4, #12]
  59257. 8018a1a: 059a lsls r2, r3, #22
  59258. 8018a1c: d4ee bmi.n 80189fc <__smakebuf_r+0x18>
  59259. 8018a1e: f023 0303 bic.w r3, r3, #3
  59260. 8018a22: f043 0302 orr.w r3, r3, #2
  59261. 8018a26: 81a3 strh r3, [r4, #12]
  59262. 8018a28: e7e2 b.n 80189f0 <__smakebuf_r+0xc>
  59263. 8018a2a: 89a3 ldrh r3, [r4, #12]
  59264. 8018a2c: 6020 str r0, [r4, #0]
  59265. 8018a2e: f043 0380 orr.w r3, r3, #128 @ 0x80
  59266. 8018a32: 81a3 strh r3, [r4, #12]
  59267. 8018a34: 9b01 ldr r3, [sp, #4]
  59268. 8018a36: e9c4 0704 strd r0, r7, [r4, #16]
  59269. 8018a3a: b15b cbz r3, 8018a54 <__smakebuf_r+0x70>
  59270. 8018a3c: f9b4 100e ldrsh.w r1, [r4, #14]
  59271. 8018a40: 4630 mov r0, r6
  59272. 8018a42: f000 f81d bl 8018a80 <_isatty_r>
  59273. 8018a46: b128 cbz r0, 8018a54 <__smakebuf_r+0x70>
  59274. 8018a48: 89a3 ldrh r3, [r4, #12]
  59275. 8018a4a: f023 0303 bic.w r3, r3, #3
  59276. 8018a4e: f043 0301 orr.w r3, r3, #1
  59277. 8018a52: 81a3 strh r3, [r4, #12]
  59278. 8018a54: 89a3 ldrh r3, [r4, #12]
  59279. 8018a56: 431d orrs r5, r3
  59280. 8018a58: 81a5 strh r5, [r4, #12]
  59281. 8018a5a: e7cf b.n 80189fc <__smakebuf_r+0x18>
  59282. 08018a5c <_fstat_r>:
  59283. 8018a5c: b538 push {r3, r4, r5, lr}
  59284. 8018a5e: 4d07 ldr r5, [pc, #28] @ (8018a7c <_fstat_r+0x20>)
  59285. 8018a60: 2300 movs r3, #0
  59286. 8018a62: 4604 mov r4, r0
  59287. 8018a64: 4608 mov r0, r1
  59288. 8018a66: 4611 mov r1, r2
  59289. 8018a68: 602b str r3, [r5, #0]
  59290. 8018a6a: f7eb fb86 bl 800417a <_fstat>
  59291. 8018a6e: 1c43 adds r3, r0, #1
  59292. 8018a70: d102 bne.n 8018a78 <_fstat_r+0x1c>
  59293. 8018a72: 682b ldr r3, [r5, #0]
  59294. 8018a74: b103 cbz r3, 8018a78 <_fstat_r+0x1c>
  59295. 8018a76: 6023 str r3, [r4, #0]
  59296. 8018a78: bd38 pop {r3, r4, r5, pc}
  59297. 8018a7a: bf00 nop
  59298. 8018a7c: 24012e24 .word 0x24012e24
  59299. 08018a80 <_isatty_r>:
  59300. 8018a80: b538 push {r3, r4, r5, lr}
  59301. 8018a82: 4d06 ldr r5, [pc, #24] @ (8018a9c <_isatty_r+0x1c>)
  59302. 8018a84: 2300 movs r3, #0
  59303. 8018a86: 4604 mov r4, r0
  59304. 8018a88: 4608 mov r0, r1
  59305. 8018a8a: 602b str r3, [r5, #0]
  59306. 8018a8c: f7eb fb85 bl 800419a <_isatty>
  59307. 8018a90: 1c43 adds r3, r0, #1
  59308. 8018a92: d102 bne.n 8018a9a <_isatty_r+0x1a>
  59309. 8018a94: 682b ldr r3, [r5, #0]
  59310. 8018a96: b103 cbz r3, 8018a9a <_isatty_r+0x1a>
  59311. 8018a98: 6023 str r3, [r4, #0]
  59312. 8018a9a: bd38 pop {r3, r4, r5, pc}
  59313. 8018a9c: 24012e24 .word 0x24012e24
  59314. 08018aa0 <_init>:
  59315. 8018aa0: b5f8 push {r3, r4, r5, r6, r7, lr}
  59316. 8018aa2: bf00 nop
  59317. 8018aa4: bcf8 pop {r3, r4, r5, r6, r7}
  59318. 8018aa6: bc08 pop {r3}
  59319. 8018aa8: 469e mov lr, r3
  59320. 8018aaa: 4770 bx lr
  59321. 08018aac <_fini>:
  59322. 8018aac: b5f8 push {r3, r4, r5, r6, r7, lr}
  59323. 8018aae: bf00 nop
  59324. 8018ab0: bcf8 pop {r3, r4, r5, r6, r7}
  59325. 8018ab2: bc08 pop {r3}
  59326. 8018ab4: 469e mov lr, r3
  59327. 8018ab6: 4770 bx lr