OZE_Sensor.list 2.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702
  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 000183a0 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000104 08018640 08018640 00019640 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 08018744 08018744 00019744 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 0801874c 0801874c 0001974c 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08018750 08018750 00019750 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000098 24000000 08018754 0001a000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 000130ec 240000a0 080187ec 0001a0a0 2**5
  19. ALLOC
  20. 8 ._user_heap_stack 00000604 2401318c 080187ec 0001a18c 2**0
  21. ALLOC
  22. 9 .ARM.attributes 0000002e 00000000 00000000 0001a098 2**0
  23. CONTENTS, READONLY
  24. 10 .debug_info 0003514c 00000000 00000000 0001a0c6 2**0
  25. CONTENTS, READONLY, DEBUGGING, OCTETS
  26. 11 .debug_abbrev 00006452 00000000 00000000 0004f212 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_aranges 00002478 00000000 00000000 00055668 2**3
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_macro 0003ef10 00000000 00000000 00057ae0 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_line 000317e2 00000000 00000000 000969f0 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 00186a2c 00000000 00000000 000c81d2 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0024ebfe 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c1d 00000000 00000000 0024ec41 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 00009d14 00000000 00000000 00250860 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 0025a574 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: 240000a0 .word 0x240000a0
  58. 80002bc: 00000000 .word 0x00000000
  59. 80002c0: 08018628 .word 0x08018628
  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: 240000a4 .word 0x240000a4
  70. 80002dc: 08018628 .word 0x08018628
  71. 080002e0 <__aeabi_uldivmod>:
  72. 80002e0: b953 cbnz r3, 80002f8 <__aeabi_uldivmod+0x18>
  73. 80002e2: b94a cbnz r2, 80002f8 <__aeabi_uldivmod+0x18>
  74. 80002e4: 2900 cmp r1, #0
  75. 80002e6: bf08 it eq
  76. 80002e8: 2800 cmpeq r0, #0
  77. 80002ea: bf1c itt ne
  78. 80002ec: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff
  79. 80002f0: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff
  80. 80002f4: f000 b96a b.w 80005cc <__aeabi_idiv0>
  81. 80002f8: f1ad 0c08 sub.w ip, sp, #8
  82. 80002fc: e96d ce04 strd ip, lr, [sp, #-16]!
  83. 8000300: f000 f806 bl 8000310 <__udivmoddi4>
  84. 8000304: f8dd e004 ldr.w lr, [sp, #4]
  85. 8000308: e9dd 2302 ldrd r2, r3, [sp, #8]
  86. 800030c: b004 add sp, #16
  87. 800030e: 4770 bx lr
  88. 08000310 <__udivmoddi4>:
  89. 8000310: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  90. 8000314: 9d08 ldr r5, [sp, #32]
  91. 8000316: 460c mov r4, r1
  92. 8000318: 2b00 cmp r3, #0
  93. 800031a: d14e bne.n 80003ba <__udivmoddi4+0xaa>
  94. 800031c: 4694 mov ip, r2
  95. 800031e: 458c cmp ip, r1
  96. 8000320: 4686 mov lr, r0
  97. 8000322: fab2 f282 clz r2, r2
  98. 8000326: d962 bls.n 80003ee <__udivmoddi4+0xde>
  99. 8000328: b14a cbz r2, 800033e <__udivmoddi4+0x2e>
  100. 800032a: f1c2 0320 rsb r3, r2, #32
  101. 800032e: 4091 lsls r1, r2
  102. 8000330: fa20 f303 lsr.w r3, r0, r3
  103. 8000334: fa0c fc02 lsl.w ip, ip, r2
  104. 8000338: 4319 orrs r1, r3
  105. 800033a: fa00 fe02 lsl.w lr, r0, r2
  106. 800033e: ea4f 471c mov.w r7, ip, lsr #16
  107. 8000342: fa1f f68c uxth.w r6, ip
  108. 8000346: fbb1 f4f7 udiv r4, r1, r7
  109. 800034a: ea4f 431e mov.w r3, lr, lsr #16
  110. 800034e: fb07 1114 mls r1, r7, r4, r1
  111. 8000352: ea43 4301 orr.w r3, r3, r1, lsl #16
  112. 8000356: fb04 f106 mul.w r1, r4, r6
  113. 800035a: 4299 cmp r1, r3
  114. 800035c: d90a bls.n 8000374 <__udivmoddi4+0x64>
  115. 800035e: eb1c 0303 adds.w r3, ip, r3
  116. 8000362: f104 30ff add.w r0, r4, #4294967295 @ 0xffffffff
  117. 8000366: f080 8112 bcs.w 800058e <__udivmoddi4+0x27e>
  118. 800036a: 4299 cmp r1, r3
  119. 800036c: f240 810f bls.w 800058e <__udivmoddi4+0x27e>
  120. 8000370: 3c02 subs r4, #2
  121. 8000372: 4463 add r3, ip
  122. 8000374: 1a59 subs r1, r3, r1
  123. 8000376: fa1f f38e uxth.w r3, lr
  124. 800037a: fbb1 f0f7 udiv r0, r1, r7
  125. 800037e: fb07 1110 mls r1, r7, r0, r1
  126. 8000382: ea43 4301 orr.w r3, r3, r1, lsl #16
  127. 8000386: fb00 f606 mul.w r6, r0, r6
  128. 800038a: 429e cmp r6, r3
  129. 800038c: d90a bls.n 80003a4 <__udivmoddi4+0x94>
  130. 800038e: eb1c 0303 adds.w r3, ip, r3
  131. 8000392: f100 31ff add.w r1, r0, #4294967295 @ 0xffffffff
  132. 8000396: f080 80fc bcs.w 8000592 <__udivmoddi4+0x282>
  133. 800039a: 429e cmp r6, r3
  134. 800039c: f240 80f9 bls.w 8000592 <__udivmoddi4+0x282>
  135. 80003a0: 4463 add r3, ip
  136. 80003a2: 3802 subs r0, #2
  137. 80003a4: 1b9b subs r3, r3, r6
  138. 80003a6: ea40 4004 orr.w r0, r0, r4, lsl #16
  139. 80003aa: 2100 movs r1, #0
  140. 80003ac: b11d cbz r5, 80003b6 <__udivmoddi4+0xa6>
  141. 80003ae: 40d3 lsrs r3, r2
  142. 80003b0: 2200 movs r2, #0
  143. 80003b2: e9c5 3200 strd r3, r2, [r5]
  144. 80003b6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  145. 80003ba: 428b cmp r3, r1
  146. 80003bc: d905 bls.n 80003ca <__udivmoddi4+0xba>
  147. 80003be: b10d cbz r5, 80003c4 <__udivmoddi4+0xb4>
  148. 80003c0: e9c5 0100 strd r0, r1, [r5]
  149. 80003c4: 2100 movs r1, #0
  150. 80003c6: 4608 mov r0, r1
  151. 80003c8: e7f5 b.n 80003b6 <__udivmoddi4+0xa6>
  152. 80003ca: fab3 f183 clz r1, r3
  153. 80003ce: 2900 cmp r1, #0
  154. 80003d0: d146 bne.n 8000460 <__udivmoddi4+0x150>
  155. 80003d2: 42a3 cmp r3, r4
  156. 80003d4: d302 bcc.n 80003dc <__udivmoddi4+0xcc>
  157. 80003d6: 4290 cmp r0, r2
  158. 80003d8: f0c0 80f0 bcc.w 80005bc <__udivmoddi4+0x2ac>
  159. 80003dc: 1a86 subs r6, r0, r2
  160. 80003de: eb64 0303 sbc.w r3, r4, r3
  161. 80003e2: 2001 movs r0, #1
  162. 80003e4: 2d00 cmp r5, #0
  163. 80003e6: d0e6 beq.n 80003b6 <__udivmoddi4+0xa6>
  164. 80003e8: e9c5 6300 strd r6, r3, [r5]
  165. 80003ec: e7e3 b.n 80003b6 <__udivmoddi4+0xa6>
  166. 80003ee: 2a00 cmp r2, #0
  167. 80003f0: f040 8090 bne.w 8000514 <__udivmoddi4+0x204>
  168. 80003f4: eba1 040c sub.w r4, r1, ip
  169. 80003f8: ea4f 481c mov.w r8, ip, lsr #16
  170. 80003fc: fa1f f78c uxth.w r7, ip
  171. 8000400: 2101 movs r1, #1
  172. 8000402: fbb4 f6f8 udiv r6, r4, r8
  173. 8000406: ea4f 431e mov.w r3, lr, lsr #16
  174. 800040a: fb08 4416 mls r4, r8, r6, r4
  175. 800040e: ea43 4304 orr.w r3, r3, r4, lsl #16
  176. 8000412: fb07 f006 mul.w r0, r7, r6
  177. 8000416: 4298 cmp r0, r3
  178. 8000418: d908 bls.n 800042c <__udivmoddi4+0x11c>
  179. 800041a: eb1c 0303 adds.w r3, ip, r3
  180. 800041e: f106 34ff add.w r4, r6, #4294967295 @ 0xffffffff
  181. 8000422: d202 bcs.n 800042a <__udivmoddi4+0x11a>
  182. 8000424: 4298 cmp r0, r3
  183. 8000426: f200 80cd bhi.w 80005c4 <__udivmoddi4+0x2b4>
  184. 800042a: 4626 mov r6, r4
  185. 800042c: 1a1c subs r4, r3, r0
  186. 800042e: fa1f f38e uxth.w r3, lr
  187. 8000432: fbb4 f0f8 udiv r0, r4, r8
  188. 8000436: fb08 4410 mls r4, r8, r0, r4
  189. 800043a: ea43 4304 orr.w r3, r3, r4, lsl #16
  190. 800043e: fb00 f707 mul.w r7, r0, r7
  191. 8000442: 429f cmp r7, r3
  192. 8000444: d908 bls.n 8000458 <__udivmoddi4+0x148>
  193. 8000446: eb1c 0303 adds.w r3, ip, r3
  194. 800044a: f100 34ff add.w r4, r0, #4294967295 @ 0xffffffff
  195. 800044e: d202 bcs.n 8000456 <__udivmoddi4+0x146>
  196. 8000450: 429f cmp r7, r3
  197. 8000452: f200 80b0 bhi.w 80005b6 <__udivmoddi4+0x2a6>
  198. 8000456: 4620 mov r0, r4
  199. 8000458: 1bdb subs r3, r3, r7
  200. 800045a: ea40 4006 orr.w r0, r0, r6, lsl #16
  201. 800045e: e7a5 b.n 80003ac <__udivmoddi4+0x9c>
  202. 8000460: f1c1 0620 rsb r6, r1, #32
  203. 8000464: 408b lsls r3, r1
  204. 8000466: fa22 f706 lsr.w r7, r2, r6
  205. 800046a: 431f orrs r7, r3
  206. 800046c: fa20 fc06 lsr.w ip, r0, r6
  207. 8000470: fa04 f301 lsl.w r3, r4, r1
  208. 8000474: ea43 030c orr.w r3, r3, ip
  209. 8000478: 40f4 lsrs r4, r6
  210. 800047a: fa00 f801 lsl.w r8, r0, r1
  211. 800047e: 0c38 lsrs r0, r7, #16
  212. 8000480: ea4f 4913 mov.w r9, r3, lsr #16
  213. 8000484: fbb4 fef0 udiv lr, r4, r0
  214. 8000488: fa1f fc87 uxth.w ip, r7
  215. 800048c: fb00 441e mls r4, r0, lr, r4
  216. 8000490: ea49 4404 orr.w r4, r9, r4, lsl #16
  217. 8000494: fb0e f90c mul.w r9, lr, ip
  218. 8000498: 45a1 cmp r9, r4
  219. 800049a: fa02 f201 lsl.w r2, r2, r1
  220. 800049e: d90a bls.n 80004b6 <__udivmoddi4+0x1a6>
  221. 80004a0: 193c adds r4, r7, r4
  222. 80004a2: f10e 3aff add.w sl, lr, #4294967295 @ 0xffffffff
  223. 80004a6: f080 8084 bcs.w 80005b2 <__udivmoddi4+0x2a2>
  224. 80004aa: 45a1 cmp r9, r4
  225. 80004ac: f240 8081 bls.w 80005b2 <__udivmoddi4+0x2a2>
  226. 80004b0: f1ae 0e02 sub.w lr, lr, #2
  227. 80004b4: 443c add r4, r7
  228. 80004b6: eba4 0409 sub.w r4, r4, r9
  229. 80004ba: fa1f f983 uxth.w r9, r3
  230. 80004be: fbb4 f3f0 udiv r3, r4, r0
  231. 80004c2: fb00 4413 mls r4, r0, r3, r4
  232. 80004c6: ea49 4404 orr.w r4, r9, r4, lsl #16
  233. 80004ca: fb03 fc0c mul.w ip, r3, ip
  234. 80004ce: 45a4 cmp ip, r4
  235. 80004d0: d907 bls.n 80004e2 <__udivmoddi4+0x1d2>
  236. 80004d2: 193c adds r4, r7, r4
  237. 80004d4: f103 30ff add.w r0, r3, #4294967295 @ 0xffffffff
  238. 80004d8: d267 bcs.n 80005aa <__udivmoddi4+0x29a>
  239. 80004da: 45a4 cmp ip, r4
  240. 80004dc: d965 bls.n 80005aa <__udivmoddi4+0x29a>
  241. 80004de: 3b02 subs r3, #2
  242. 80004e0: 443c add r4, r7
  243. 80004e2: ea43 400e orr.w r0, r3, lr, lsl #16
  244. 80004e6: fba0 9302 umull r9, r3, r0, r2
  245. 80004ea: eba4 040c sub.w r4, r4, ip
  246. 80004ee: 429c cmp r4, r3
  247. 80004f0: 46ce mov lr, r9
  248. 80004f2: 469c mov ip, r3
  249. 80004f4: d351 bcc.n 800059a <__udivmoddi4+0x28a>
  250. 80004f6: d04e beq.n 8000596 <__udivmoddi4+0x286>
  251. 80004f8: b155 cbz r5, 8000510 <__udivmoddi4+0x200>
  252. 80004fa: ebb8 030e subs.w r3, r8, lr
  253. 80004fe: eb64 040c sbc.w r4, r4, ip
  254. 8000502: fa04 f606 lsl.w r6, r4, r6
  255. 8000506: 40cb lsrs r3, r1
  256. 8000508: 431e orrs r6, r3
  257. 800050a: 40cc lsrs r4, r1
  258. 800050c: e9c5 6400 strd r6, r4, [r5]
  259. 8000510: 2100 movs r1, #0
  260. 8000512: e750 b.n 80003b6 <__udivmoddi4+0xa6>
  261. 8000514: f1c2 0320 rsb r3, r2, #32
  262. 8000518: fa20 f103 lsr.w r1, r0, r3
  263. 800051c: fa0c fc02 lsl.w ip, ip, r2
  264. 8000520: fa24 f303 lsr.w r3, r4, r3
  265. 8000524: 4094 lsls r4, r2
  266. 8000526: 430c orrs r4, r1
  267. 8000528: ea4f 481c mov.w r8, ip, lsr #16
  268. 800052c: fa00 fe02 lsl.w lr, r0, r2
  269. 8000530: fa1f f78c uxth.w r7, ip
  270. 8000534: fbb3 f0f8 udiv r0, r3, r8
  271. 8000538: fb08 3110 mls r1, r8, r0, r3
  272. 800053c: 0c23 lsrs r3, r4, #16
  273. 800053e: ea43 4301 orr.w r3, r3, r1, lsl #16
  274. 8000542: fb00 f107 mul.w r1, r0, r7
  275. 8000546: 4299 cmp r1, r3
  276. 8000548: d908 bls.n 800055c <__udivmoddi4+0x24c>
  277. 800054a: eb1c 0303 adds.w r3, ip, r3
  278. 800054e: f100 36ff add.w r6, r0, #4294967295 @ 0xffffffff
  279. 8000552: d22c bcs.n 80005ae <__udivmoddi4+0x29e>
  280. 8000554: 4299 cmp r1, r3
  281. 8000556: d92a bls.n 80005ae <__udivmoddi4+0x29e>
  282. 8000558: 3802 subs r0, #2
  283. 800055a: 4463 add r3, ip
  284. 800055c: 1a5b subs r3, r3, r1
  285. 800055e: b2a4 uxth r4, r4
  286. 8000560: fbb3 f1f8 udiv r1, r3, r8
  287. 8000564: fb08 3311 mls r3, r8, r1, r3
  288. 8000568: ea44 4403 orr.w r4, r4, r3, lsl #16
  289. 800056c: fb01 f307 mul.w r3, r1, r7
  290. 8000570: 42a3 cmp r3, r4
  291. 8000572: d908 bls.n 8000586 <__udivmoddi4+0x276>
  292. 8000574: eb1c 0404 adds.w r4, ip, r4
  293. 8000578: f101 36ff add.w r6, r1, #4294967295 @ 0xffffffff
  294. 800057c: d213 bcs.n 80005a6 <__udivmoddi4+0x296>
  295. 800057e: 42a3 cmp r3, r4
  296. 8000580: d911 bls.n 80005a6 <__udivmoddi4+0x296>
  297. 8000582: 3902 subs r1, #2
  298. 8000584: 4464 add r4, ip
  299. 8000586: 1ae4 subs r4, r4, r3
  300. 8000588: ea41 4100 orr.w r1, r1, r0, lsl #16
  301. 800058c: e739 b.n 8000402 <__udivmoddi4+0xf2>
  302. 800058e: 4604 mov r4, r0
  303. 8000590: e6f0 b.n 8000374 <__udivmoddi4+0x64>
  304. 8000592: 4608 mov r0, r1
  305. 8000594: e706 b.n 80003a4 <__udivmoddi4+0x94>
  306. 8000596: 45c8 cmp r8, r9
  307. 8000598: d2ae bcs.n 80004f8 <__udivmoddi4+0x1e8>
  308. 800059a: ebb9 0e02 subs.w lr, r9, r2
  309. 800059e: eb63 0c07 sbc.w ip, r3, r7
  310. 80005a2: 3801 subs r0, #1
  311. 80005a4: e7a8 b.n 80004f8 <__udivmoddi4+0x1e8>
  312. 80005a6: 4631 mov r1, r6
  313. 80005a8: e7ed b.n 8000586 <__udivmoddi4+0x276>
  314. 80005aa: 4603 mov r3, r0
  315. 80005ac: e799 b.n 80004e2 <__udivmoddi4+0x1d2>
  316. 80005ae: 4630 mov r0, r6
  317. 80005b0: e7d4 b.n 800055c <__udivmoddi4+0x24c>
  318. 80005b2: 46d6 mov lr, sl
  319. 80005b4: e77f b.n 80004b6 <__udivmoddi4+0x1a6>
  320. 80005b6: 4463 add r3, ip
  321. 80005b8: 3802 subs r0, #2
  322. 80005ba: e74d b.n 8000458 <__udivmoddi4+0x148>
  323. 80005bc: 4606 mov r6, r0
  324. 80005be: 4623 mov r3, r4
  325. 80005c0: 4608 mov r0, r1
  326. 80005c2: e70f b.n 80003e4 <__udivmoddi4+0xd4>
  327. 80005c4: 3e02 subs r6, #2
  328. 80005c6: 4463 add r3, ip
  329. 80005c8: e730 b.n 800042c <__udivmoddi4+0x11c>
  330. 80005ca: bf00 nop
  331. 080005cc <__aeabi_idiv0>:
  332. 80005cc: 4770 bx lr
  333. 80005ce: bf00 nop
  334. 080005d0 <vApplicationStackOverflowHook>:
  335. /* Hook prototypes */
  336. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName);
  337. /* USER CODE BEGIN 4 */
  338. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName)
  339. {
  340. 80005d0: b480 push {r7}
  341. 80005d2: b083 sub sp, #12
  342. 80005d4: af00 add r7, sp, #0
  343. 80005d6: 6078 str r0, [r7, #4]
  344. 80005d8: 6039 str r1, [r7, #0]
  345. /* Run time stack overflow checking is performed if
  346. configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
  347. called if a stack overflow is detected. */
  348. }
  349. 80005da: bf00 nop
  350. 80005dc: 370c adds r7, #12
  351. 80005de: 46bd mov sp, r7
  352. 80005e0: f85d 7b04 ldr.w r7, [sp], #4
  353. 80005e4: 4770 bx lr
  354. ...
  355. 080005e8 <__NVIC_SystemReset>:
  356. /**
  357. \brief System Reset
  358. \details Initiates a system reset request to reset the MCU.
  359. */
  360. __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void)
  361. {
  362. 80005e8: b480 push {r7}
  363. 80005ea: af00 add r7, sp, #0
  364. \details Acts as a special kind of Data Memory Barrier.
  365. It completes when all explicit memory accesses before this instruction complete.
  366. */
  367. __STATIC_FORCEINLINE void __DSB(void)
  368. {
  369. __ASM volatile ("dsb 0xF":::"memory");
  370. 80005ec: f3bf 8f4f dsb sy
  371. }
  372. 80005f0: bf00 nop
  373. __DSB(); /* Ensure all outstanding memory accesses included
  374. buffered write are completed before reset */
  375. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  376. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  377. 80005f2: 4b06 ldr r3, [pc, #24] @ (800060c <__NVIC_SystemReset+0x24>)
  378. 80005f4: 68db ldr r3, [r3, #12]
  379. 80005f6: f403 62e0 and.w r2, r3, #1792 @ 0x700
  380. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  381. 80005fa: 4904 ldr r1, [pc, #16] @ (800060c <__NVIC_SystemReset+0x24>)
  382. 80005fc: 4b04 ldr r3, [pc, #16] @ (8000610 <__NVIC_SystemReset+0x28>)
  383. 80005fe: 4313 orrs r3, r2
  384. 8000600: 60cb str r3, [r1, #12]
  385. __ASM volatile ("dsb 0xF":::"memory");
  386. 8000602: f3bf 8f4f dsb sy
  387. }
  388. 8000606: bf00 nop
  389. SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */
  390. __DSB(); /* Ensure completion of memory access */
  391. for(;;) /* wait until reset */
  392. {
  393. __NOP();
  394. 8000608: bf00 nop
  395. 800060a: e7fd b.n 8000608 <__NVIC_SystemReset+0x20>
  396. 800060c: e000ed00 .word 0xe000ed00
  397. 8000610: 05fa0004 .word 0x05fa0004
  398. 08000614 <HAL_GPIO_EXTI_Callback>:
  399. #endif
  400. return ch;
  401. }
  402. void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
  403. {
  404. 8000614: b580 push {r7, lr}
  405. 8000616: b084 sub sp, #16
  406. 8000618: af00 add r7, sp, #0
  407. 800061a: 4603 mov r3, r0
  408. 800061c: 80fb strh r3, [r7, #6]
  409. LimiterSwitchData limiterSwitchData = { 0 };
  410. 800061e: 2300 movs r3, #0
  411. 8000620: 60fb str r3, [r7, #12]
  412. limiterSwitchData.gpioPin = GPIO_Pin;
  413. 8000622: 88fb ldrh r3, [r7, #6]
  414. 8000624: 81bb strh r3, [r7, #12]
  415. limiterSwitchData.pinState = HAL_GPIO_ReadPin(GPIOD, GPIO_Pin);
  416. 8000626: 88fb ldrh r3, [r7, #6]
  417. 8000628: 4619 mov r1, r3
  418. 800062a: 4808 ldr r0, [pc, #32] @ (800064c <HAL_GPIO_EXTI_Callback+0x38>)
  419. 800062c: f00a ff7e bl 800b52c <HAL_GPIO_ReadPin>
  420. 8000630: 4603 mov r3, r0
  421. 8000632: 73bb strb r3, [r7, #14]
  422. osMessageQueuePut(limiterSwitchDataQueue, &limiterSwitchData, 0, 0);
  423. 8000634: 4b06 ldr r3, [pc, #24] @ (8000650 <HAL_GPIO_EXTI_Callback+0x3c>)
  424. 8000636: 6818 ldr r0, [r3, #0]
  425. 8000638: f107 010c add.w r1, r7, #12
  426. 800063c: 2300 movs r3, #0
  427. 800063e: 2200 movs r2, #0
  428. 8000640: f014 f834 bl 80146ac <osMessageQueuePut>
  429. }
  430. 8000644: bf00 nop
  431. 8000646: 3710 adds r7, #16
  432. 8000648: 46bd mov sp, r7
  433. 800064a: bd80 pop {r7, pc}
  434. 800064c: 58020c00 .word 0x58020c00
  435. 8000650: 2400080c .word 0x2400080c
  436. 08000654 <main>:
  437. /**
  438. * @brief The application entry point.
  439. * @retval int
  440. */
  441. int main(void)
  442. {
  443. 8000654: b580 push {r7, lr}
  444. 8000656: b084 sub sp, #16
  445. 8000658: af00 add r7, sp, #0
  446. /* USER CODE BEGIN 1 */
  447. /* USER CODE END 1 */
  448. /* MPU Configuration--------------------------------------------------------*/
  449. MPU_Config();
  450. 800065a: f001 fbb1 bl 8001dc0 <MPU_Config>
  451. \details Turns on I-Cache
  452. */
  453. __STATIC_FORCEINLINE void SCB_EnableICache (void)
  454. {
  455. #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
  456. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  457. 800065e: 4b64 ldr r3, [pc, #400] @ (80007f0 <main+0x19c>)
  458. 8000660: 695b ldr r3, [r3, #20]
  459. 8000662: f403 3300 and.w r3, r3, #131072 @ 0x20000
  460. 8000666: 2b00 cmp r3, #0
  461. 8000668: d11b bne.n 80006a2 <main+0x4e>
  462. __ASM volatile ("dsb 0xF":::"memory");
  463. 800066a: f3bf 8f4f dsb sy
  464. }
  465. 800066e: bf00 nop
  466. __ASM volatile ("isb 0xF":::"memory");
  467. 8000670: f3bf 8f6f isb sy
  468. }
  469. 8000674: bf00 nop
  470. __DSB();
  471. __ISB();
  472. SCB->ICIALLU = 0UL; /* invalidate I-Cache */
  473. 8000676: 4b5e ldr r3, [pc, #376] @ (80007f0 <main+0x19c>)
  474. 8000678: 2200 movs r2, #0
  475. 800067a: f8c3 2250 str.w r2, [r3, #592] @ 0x250
  476. __ASM volatile ("dsb 0xF":::"memory");
  477. 800067e: f3bf 8f4f dsb sy
  478. }
  479. 8000682: bf00 nop
  480. __ASM volatile ("isb 0xF":::"memory");
  481. 8000684: f3bf 8f6f isb sy
  482. }
  483. 8000688: bf00 nop
  484. __DSB();
  485. __ISB();
  486. SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */
  487. 800068a: 4b59 ldr r3, [pc, #356] @ (80007f0 <main+0x19c>)
  488. 800068c: 695b ldr r3, [r3, #20]
  489. 800068e: 4a58 ldr r2, [pc, #352] @ (80007f0 <main+0x19c>)
  490. 8000690: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  491. 8000694: 6153 str r3, [r2, #20]
  492. __ASM volatile ("dsb 0xF":::"memory");
  493. 8000696: f3bf 8f4f dsb sy
  494. }
  495. 800069a: bf00 nop
  496. __ASM volatile ("isb 0xF":::"memory");
  497. 800069c: f3bf 8f6f isb sy
  498. }
  499. 80006a0: e000 b.n 80006a4 <main+0x50>
  500. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  501. 80006a2: bf00 nop
  502. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  503. uint32_t ccsidr;
  504. uint32_t sets;
  505. uint32_t ways;
  506. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  507. 80006a4: 4b52 ldr r3, [pc, #328] @ (80007f0 <main+0x19c>)
  508. 80006a6: 695b ldr r3, [r3, #20]
  509. 80006a8: f403 3380 and.w r3, r3, #65536 @ 0x10000
  510. 80006ac: 2b00 cmp r3, #0
  511. 80006ae: d138 bne.n 8000722 <main+0xce>
  512. SCB->CSSELR = 0U; /* select Level 1 data cache */
  513. 80006b0: 4b4f ldr r3, [pc, #316] @ (80007f0 <main+0x19c>)
  514. 80006b2: 2200 movs r2, #0
  515. 80006b4: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  516. __ASM volatile ("dsb 0xF":::"memory");
  517. 80006b8: f3bf 8f4f dsb sy
  518. }
  519. 80006bc: bf00 nop
  520. __DSB();
  521. ccsidr = SCB->CCSIDR;
  522. 80006be: 4b4c ldr r3, [pc, #304] @ (80007f0 <main+0x19c>)
  523. 80006c0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  524. 80006c4: 60fb str r3, [r7, #12]
  525. /* invalidate D-Cache */
  526. sets = (uint32_t)(CCSIDR_SETS(ccsidr));
  527. 80006c6: 68fb ldr r3, [r7, #12]
  528. 80006c8: 0b5b lsrs r3, r3, #13
  529. 80006ca: f3c3 030e ubfx r3, r3, #0, #15
  530. 80006ce: 60bb str r3, [r7, #8]
  531. do {
  532. ways = (uint32_t)(CCSIDR_WAYS(ccsidr));
  533. 80006d0: 68fb ldr r3, [r7, #12]
  534. 80006d2: 08db lsrs r3, r3, #3
  535. 80006d4: f3c3 0309 ubfx r3, r3, #0, #10
  536. 80006d8: 607b str r3, [r7, #4]
  537. do {
  538. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  539. 80006da: 68bb ldr r3, [r7, #8]
  540. 80006dc: 015a lsls r2, r3, #5
  541. 80006de: f643 73e0 movw r3, #16352 @ 0x3fe0
  542. 80006e2: 4013 ands r3, r2
  543. ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) );
  544. 80006e4: 687a ldr r2, [r7, #4]
  545. 80006e6: 0792 lsls r2, r2, #30
  546. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  547. 80006e8: 4941 ldr r1, [pc, #260] @ (80007f0 <main+0x19c>)
  548. 80006ea: 4313 orrs r3, r2
  549. 80006ec: f8c1 3260 str.w r3, [r1, #608] @ 0x260
  550. #if defined ( __CC_ARM )
  551. __schedule_barrier();
  552. #endif
  553. } while (ways-- != 0U);
  554. 80006f0: 687b ldr r3, [r7, #4]
  555. 80006f2: 1e5a subs r2, r3, #1
  556. 80006f4: 607a str r2, [r7, #4]
  557. 80006f6: 2b00 cmp r3, #0
  558. 80006f8: d1ef bne.n 80006da <main+0x86>
  559. } while(sets-- != 0U);
  560. 80006fa: 68bb ldr r3, [r7, #8]
  561. 80006fc: 1e5a subs r2, r3, #1
  562. 80006fe: 60ba str r2, [r7, #8]
  563. 8000700: 2b00 cmp r3, #0
  564. 8000702: d1e5 bne.n 80006d0 <main+0x7c>
  565. __ASM volatile ("dsb 0xF":::"memory");
  566. 8000704: f3bf 8f4f dsb sy
  567. }
  568. 8000708: bf00 nop
  569. __DSB();
  570. SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */
  571. 800070a: 4b39 ldr r3, [pc, #228] @ (80007f0 <main+0x19c>)
  572. 800070c: 695b ldr r3, [r3, #20]
  573. 800070e: 4a38 ldr r2, [pc, #224] @ (80007f0 <main+0x19c>)
  574. 8000710: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  575. 8000714: 6153 str r3, [r2, #20]
  576. __ASM volatile ("dsb 0xF":::"memory");
  577. 8000716: f3bf 8f4f dsb sy
  578. }
  579. 800071a: bf00 nop
  580. __ASM volatile ("isb 0xF":::"memory");
  581. 800071c: f3bf 8f6f isb sy
  582. }
  583. 8000720: e000 b.n 8000724 <main+0xd0>
  584. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  585. 8000722: bf00 nop
  586. SCB_EnableDCache();
  587. /* MCU Configuration--------------------------------------------------------*/
  588. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  589. HAL_Init();
  590. 8000724: f005 fb2a bl 8005d7c <HAL_Init>
  591. /* USER CODE BEGIN Init */
  592. /* USER CODE END Init */
  593. /* Configure the system clock */
  594. SystemClock_Config();
  595. 8000728: f000 f884 bl 8000834 <SystemClock_Config>
  596. /* Configure the peripherals common clocks */
  597. PeriphCommonClock_Config();
  598. 800072c: f000 f900 bl 8000930 <PeriphCommonClock_Config>
  599. /* USER CODE BEGIN SysInit */
  600. /* USER CODE END SysInit */
  601. /* Initialize all configured peripherals */
  602. MX_GPIO_Init();
  603. 8000730: f000 ff88 bl 8001644 <MX_GPIO_Init>
  604. MX_DMA_Init();
  605. 8000734: f000 ff56 bl 80015e4 <MX_DMA_Init>
  606. MX_RNG_Init();
  607. 8000738: f000 fc08 bl 8000f4c <MX_RNG_Init>
  608. MX_USART1_UART_Init();
  609. 800073c: f000 ff02 bl 8001544 <MX_USART1_UART_Init>
  610. MX_ADC1_Init();
  611. 8000740: f000 f926 bl 8000990 <MX_ADC1_Init>
  612. MX_UART8_Init();
  613. 8000744: f000 feb2 bl 80014ac <MX_UART8_Init>
  614. MX_CRC_Init();
  615. 8000748: f000 fb7e bl 8000e48 <MX_CRC_Init>
  616. MX_ADC2_Init();
  617. 800074c: f000 fa0a bl 8000b64 <MX_ADC2_Init>
  618. MX_ADC3_Init();
  619. 8000750: f000 fa9c bl 8000c8c <MX_ADC3_Init>
  620. MX_TIM2_Init();
  621. 8000754: f000 fcac bl 80010b0 <MX_TIM2_Init>
  622. MX_TIM1_Init();
  623. 8000758: f000 fc0e bl 8000f78 <MX_TIM1_Init>
  624. MX_TIM3_Init();
  625. 800075c: f000 fd26 bl 80011ac <MX_TIM3_Init>
  626. MX_DAC1_Init();
  627. 8000760: f000 fb9c bl 8000e9c <MX_DAC1_Init>
  628. MX_COMP1_Init();
  629. 8000764: f000 fb42 bl 8000dec <MX_COMP1_Init>
  630. MX_TIM4_Init();
  631. 8000768: f000 fdcc bl 8001304 <MX_TIM4_Init>
  632. MX_TIM8_Init();
  633. 800076c: f000 fe48 bl 8001400 <MX_TIM8_Init>
  634. #ifdef WATCHDOG_ENABLED
  635. MX_IWDG1_Init();
  636. 8000770: f000 fbd0 bl 8000f14 <MX_IWDG1_Init>
  637. #endif
  638. /* USER CODE BEGIN 2 */
  639. #ifdef WATCHDOG_ENABLED
  640. HAL_IWDG_Refresh(&hiwdg1);
  641. 8000774: 481f ldr r0, [pc, #124] @ (80007f4 <main+0x1a0>)
  642. 8000776: f00a ff8d bl 800b694 <HAL_IWDG_Refresh>
  643. #endif
  644. /* USER CODE END 2 */
  645. /* Init scheduler */
  646. osKernelInitialize();
  647. 800077a: f013 fc27 bl 8013fcc <osKernelInitialize>
  648. /* add semaphores, ... */
  649. /* USER CODE END RTOS_SEMAPHORES */
  650. /* Create the timer(s) */
  651. /* creation of debugLedTimer */
  652. debugLedTimerHandle = osTimerNew(debugLedTimerCallback, osTimerOnce, NULL, &debugLedTimer_attributes);
  653. 800077e: 4b1e ldr r3, [pc, #120] @ (80007f8 <main+0x1a4>)
  654. 8000780: 2200 movs r2, #0
  655. 8000782: 2100 movs r1, #0
  656. 8000784: 481d ldr r0, [pc, #116] @ (80007fc <main+0x1a8>)
  657. 8000786: f013 fd2f bl 80141e8 <osTimerNew>
  658. 800078a: 4603 mov r3, r0
  659. 800078c: 4a1c ldr r2, [pc, #112] @ (8000800 <main+0x1ac>)
  660. 800078e: 6013 str r3, [r2, #0]
  661. /* creation of fanTimer */
  662. fanTimerHandle = osTimerNew(fanTimerCallback, osTimerOnce, NULL, &fanTimer_attributes);
  663. 8000790: 4b1c ldr r3, [pc, #112] @ (8000804 <main+0x1b0>)
  664. 8000792: 2200 movs r2, #0
  665. 8000794: 2100 movs r1, #0
  666. 8000796: 481c ldr r0, [pc, #112] @ (8000808 <main+0x1b4>)
  667. 8000798: f013 fd26 bl 80141e8 <osTimerNew>
  668. 800079c: 4603 mov r3, r0
  669. 800079e: 4a1b ldr r2, [pc, #108] @ (800080c <main+0x1b8>)
  670. 80007a0: 6013 str r3, [r2, #0]
  671. /* creation of motorXTimer */
  672. motorXTimerHandle = osTimerNew(motorXTimerCallback, osTimerPeriodic, NULL, &motorXTimer_attributes);
  673. 80007a2: 4b1b ldr r3, [pc, #108] @ (8000810 <main+0x1bc>)
  674. 80007a4: 2200 movs r2, #0
  675. 80007a6: 2101 movs r1, #1
  676. 80007a8: 481a ldr r0, [pc, #104] @ (8000814 <main+0x1c0>)
  677. 80007aa: f013 fd1d bl 80141e8 <osTimerNew>
  678. 80007ae: 4603 mov r3, r0
  679. 80007b0: 4a19 ldr r2, [pc, #100] @ (8000818 <main+0x1c4>)
  680. 80007b2: 6013 str r3, [r2, #0]
  681. /* creation of motorYTimer */
  682. motorYTimerHandle = osTimerNew(motorYTimerCallback, osTimerPeriodic, NULL, &motorYTimer_attributes);
  683. 80007b4: 4b19 ldr r3, [pc, #100] @ (800081c <main+0x1c8>)
  684. 80007b6: 2200 movs r2, #0
  685. 80007b8: 2101 movs r1, #1
  686. 80007ba: 4819 ldr r0, [pc, #100] @ (8000820 <main+0x1cc>)
  687. 80007bc: f013 fd14 bl 80141e8 <osTimerNew>
  688. 80007c0: 4603 mov r3, r0
  689. 80007c2: 4a18 ldr r2, [pc, #96] @ (8000824 <main+0x1d0>)
  690. 80007c4: 6013 str r3, [r2, #0]
  691. /* add queues, ... */
  692. /* USER CODE END RTOS_QUEUES */
  693. /* Create the thread(s) */
  694. /* creation of defaultTask */
  695. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  696. 80007c6: 4a18 ldr r2, [pc, #96] @ (8000828 <main+0x1d4>)
  697. 80007c8: 2100 movs r1, #0
  698. 80007ca: 4818 ldr r0, [pc, #96] @ (800082c <main+0x1d8>)
  699. 80007cc: f013 fc48 bl 8014060 <osThreadNew>
  700. 80007d0: 4603 mov r3, r0
  701. 80007d2: 4a17 ldr r2, [pc, #92] @ (8000830 <main+0x1dc>)
  702. 80007d4: 6013 str r3, [r2, #0]
  703. /* USER CODE BEGIN RTOS_THREADS */
  704. /* add threads, ... */
  705. #ifdef WATCHDOG_ENABLED
  706. HAL_IWDG_Refresh(&hiwdg1);
  707. 80007d6: 4807 ldr r0, [pc, #28] @ (80007f4 <main+0x1a0>)
  708. 80007d8: f00a ff5c bl 800b694 <HAL_IWDG_Refresh>
  709. #endif
  710. UartTasksInit();
  711. 80007dc: f004 f8f4 bl 80049c8 <UartTasksInit>
  712. #ifdef USER_MOCKS
  713. MockMeasurmetsTaskInit();
  714. #else
  715. MeasTasksInit();
  716. 80007e0: f001 fb7a bl 8001ed8 <MeasTasksInit>
  717. #endif
  718. PositionControlTaskInit();
  719. 80007e4: f002 fdb2 bl 800334c <PositionControlTaskInit>
  720. /* USER CODE BEGIN RTOS_EVENTS */
  721. /* add events, ... */
  722. /* USER CODE END RTOS_EVENTS */
  723. /* Start scheduler */
  724. osKernelStart();
  725. 80007e8: f013 fc14 bl 8014014 <osKernelStart>
  726. /* We should never get here as control is now taken by the scheduler */
  727. /* Infinite loop */
  728. /* USER CODE BEGIN WHILE */
  729. while (1)
  730. 80007ec: bf00 nop
  731. 80007ee: e7fd b.n 80007ec <main+0x198>
  732. 80007f0: e000ed00 .word 0xe000ed00
  733. 80007f4: 24000418 .word 0x24000418
  734. 80007f8: 080186bc .word 0x080186bc
  735. 80007fc: 08001d15 .word 0x08001d15
  736. 8000800: 240006e4 .word 0x240006e4
  737. 8000804: 080186cc .word 0x080186cc
  738. 8000808: 08001d2d .word 0x08001d2d
  739. 800080c: 24000714 .word 0x24000714
  740. 8000810: 080186dc .word 0x080186dc
  741. 8000814: 08001d49 .word 0x08001d49
  742. 8000818: 24000744 .word 0x24000744
  743. 800081c: 080186ec .word 0x080186ec
  744. 8000820: 08001d85 .word 0x08001d85
  745. 8000824: 24000774 .word 0x24000774
  746. 8000828: 08018698 .word 0x08018698
  747. 800082c: 08001b59 .word 0x08001b59
  748. 8000830: 240006e0 .word 0x240006e0
  749. 08000834 <SystemClock_Config>:
  750. /**
  751. * @brief System Clock Configuration
  752. * @retval None
  753. */
  754. void SystemClock_Config(void)
  755. {
  756. 8000834: b580 push {r7, lr}
  757. 8000836: b09c sub sp, #112 @ 0x70
  758. 8000838: af00 add r7, sp, #0
  759. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  760. 800083a: f107 0324 add.w r3, r7, #36 @ 0x24
  761. 800083e: 224c movs r2, #76 @ 0x4c
  762. 8000840: 2100 movs r1, #0
  763. 8000842: 4618 mov r0, r3
  764. 8000844: f017 fd60 bl 8018308 <memset>
  765. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  766. 8000848: 1d3b adds r3, r7, #4
  767. 800084a: 2220 movs r2, #32
  768. 800084c: 2100 movs r1, #0
  769. 800084e: 4618 mov r0, r3
  770. 8000850: f017 fd5a bl 8018308 <memset>
  771. /** Supply configuration update enable
  772. */
  773. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  774. 8000854: 2002 movs r0, #2
  775. 8000856: f00a ffb7 bl 800b7c8 <HAL_PWREx_ConfigSupply>
  776. /** Configure the main internal regulator output voltage
  777. */
  778. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  779. 800085a: 2300 movs r3, #0
  780. 800085c: 603b str r3, [r7, #0]
  781. 800085e: 4b32 ldr r3, [pc, #200] @ (8000928 <SystemClock_Config+0xf4>)
  782. 8000860: 6adb ldr r3, [r3, #44] @ 0x2c
  783. 8000862: 4a31 ldr r2, [pc, #196] @ (8000928 <SystemClock_Config+0xf4>)
  784. 8000864: f023 0301 bic.w r3, r3, #1
  785. 8000868: 62d3 str r3, [r2, #44] @ 0x2c
  786. 800086a: 4b2f ldr r3, [pc, #188] @ (8000928 <SystemClock_Config+0xf4>)
  787. 800086c: 6adb ldr r3, [r3, #44] @ 0x2c
  788. 800086e: f003 0301 and.w r3, r3, #1
  789. 8000872: 603b str r3, [r7, #0]
  790. 8000874: 4b2d ldr r3, [pc, #180] @ (800092c <SystemClock_Config+0xf8>)
  791. 8000876: 699b ldr r3, [r3, #24]
  792. 8000878: 4a2c ldr r2, [pc, #176] @ (800092c <SystemClock_Config+0xf8>)
  793. 800087a: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  794. 800087e: 6193 str r3, [r2, #24]
  795. 8000880: 4b2a ldr r3, [pc, #168] @ (800092c <SystemClock_Config+0xf8>)
  796. 8000882: 699b ldr r3, [r3, #24]
  797. 8000884: f403 4340 and.w r3, r3, #49152 @ 0xc000
  798. 8000888: 603b str r3, [r7, #0]
  799. 800088a: 683b ldr r3, [r7, #0]
  800. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  801. 800088c: bf00 nop
  802. 800088e: 4b27 ldr r3, [pc, #156] @ (800092c <SystemClock_Config+0xf8>)
  803. 8000890: 699b ldr r3, [r3, #24]
  804. 8000892: f403 5300 and.w r3, r3, #8192 @ 0x2000
  805. 8000896: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  806. 800089a: d1f8 bne.n 800088e <SystemClock_Config+0x5a>
  807. /** Initializes the RCC Oscillators according to the specified parameters
  808. * in the RCC_OscInitTypeDef structure.
  809. */
  810. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_LSI
  811. 800089c: 2329 movs r3, #41 @ 0x29
  812. 800089e: 627b str r3, [r7, #36] @ 0x24
  813. |RCC_OSCILLATORTYPE_HSE;
  814. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  815. 80008a0: f44f 3380 mov.w r3, #65536 @ 0x10000
  816. 80008a4: 62bb str r3, [r7, #40] @ 0x28
  817. RCC_OscInitStruct.LSIState = RCC_LSI_ON;
  818. 80008a6: 2301 movs r3, #1
  819. 80008a8: 63bb str r3, [r7, #56] @ 0x38
  820. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  821. 80008aa: 2301 movs r3, #1
  822. 80008ac: 63fb str r3, [r7, #60] @ 0x3c
  823. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  824. 80008ae: 2302 movs r3, #2
  825. 80008b0: 64bb str r3, [r7, #72] @ 0x48
  826. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  827. 80008b2: 2302 movs r3, #2
  828. 80008b4: 64fb str r3, [r7, #76] @ 0x4c
  829. RCC_OscInitStruct.PLL.PLLM = 5;
  830. 80008b6: 2305 movs r3, #5
  831. 80008b8: 653b str r3, [r7, #80] @ 0x50
  832. RCC_OscInitStruct.PLL.PLLN = 160;
  833. 80008ba: 23a0 movs r3, #160 @ 0xa0
  834. 80008bc: 657b str r3, [r7, #84] @ 0x54
  835. RCC_OscInitStruct.PLL.PLLP = 2;
  836. 80008be: 2302 movs r3, #2
  837. 80008c0: 65bb str r3, [r7, #88] @ 0x58
  838. RCC_OscInitStruct.PLL.PLLQ = 2;
  839. 80008c2: 2302 movs r3, #2
  840. 80008c4: 65fb str r3, [r7, #92] @ 0x5c
  841. RCC_OscInitStruct.PLL.PLLR = 2;
  842. 80008c6: 2302 movs r3, #2
  843. 80008c8: 663b str r3, [r7, #96] @ 0x60
  844. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  845. 80008ca: 2308 movs r3, #8
  846. 80008cc: 667b str r3, [r7, #100] @ 0x64
  847. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  848. 80008ce: 2300 movs r3, #0
  849. 80008d0: 66bb str r3, [r7, #104] @ 0x68
  850. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  851. 80008d2: 2300 movs r3, #0
  852. 80008d4: 66fb str r3, [r7, #108] @ 0x6c
  853. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  854. 80008d6: f107 0324 add.w r3, r7, #36 @ 0x24
  855. 80008da: 4618 mov r0, r3
  856. 80008dc: f00b f834 bl 800b948 <HAL_RCC_OscConfig>
  857. 80008e0: 4603 mov r3, r0
  858. 80008e2: 2b00 cmp r3, #0
  859. 80008e4: d001 beq.n 80008ea <SystemClock_Config+0xb6>
  860. {
  861. Error_Handler();
  862. 80008e6: f001 faf1 bl 8001ecc <Error_Handler>
  863. }
  864. /** Initializes the CPU, AHB and APB buses clocks
  865. */
  866. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  867. 80008ea: 233f movs r3, #63 @ 0x3f
  868. 80008ec: 607b str r3, [r7, #4]
  869. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  870. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  871. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  872. 80008ee: 2303 movs r3, #3
  873. 80008f0: 60bb str r3, [r7, #8]
  874. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  875. 80008f2: 2300 movs r3, #0
  876. 80008f4: 60fb str r3, [r7, #12]
  877. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  878. 80008f6: 2308 movs r3, #8
  879. 80008f8: 613b str r3, [r7, #16]
  880. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  881. 80008fa: 2340 movs r3, #64 @ 0x40
  882. 80008fc: 617b str r3, [r7, #20]
  883. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  884. 80008fe: 2340 movs r3, #64 @ 0x40
  885. 8000900: 61bb str r3, [r7, #24]
  886. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  887. 8000902: f44f 6380 mov.w r3, #1024 @ 0x400
  888. 8000906: 61fb str r3, [r7, #28]
  889. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  890. 8000908: 2340 movs r3, #64 @ 0x40
  891. 800090a: 623b str r3, [r7, #32]
  892. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  893. 800090c: 1d3b adds r3, r7, #4
  894. 800090e: 2102 movs r1, #2
  895. 8000910: 4618 mov r0, r3
  896. 8000912: f00b fc73 bl 800c1fc <HAL_RCC_ClockConfig>
  897. 8000916: 4603 mov r3, r0
  898. 8000918: 2b00 cmp r3, #0
  899. 800091a: d001 beq.n 8000920 <SystemClock_Config+0xec>
  900. {
  901. Error_Handler();
  902. 800091c: f001 fad6 bl 8001ecc <Error_Handler>
  903. }
  904. }
  905. 8000920: bf00 nop
  906. 8000922: 3770 adds r7, #112 @ 0x70
  907. 8000924: 46bd mov sp, r7
  908. 8000926: bd80 pop {r7, pc}
  909. 8000928: 58000400 .word 0x58000400
  910. 800092c: 58024800 .word 0x58024800
  911. 08000930 <PeriphCommonClock_Config>:
  912. /**
  913. * @brief Peripherals Common Clock Configuration
  914. * @retval None
  915. */
  916. void PeriphCommonClock_Config(void)
  917. {
  918. 8000930: b580 push {r7, lr}
  919. 8000932: b0b0 sub sp, #192 @ 0xc0
  920. 8000934: af00 add r7, sp, #0
  921. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  922. 8000936: 463b mov r3, r7
  923. 8000938: 22c0 movs r2, #192 @ 0xc0
  924. 800093a: 2100 movs r1, #0
  925. 800093c: 4618 mov r0, r3
  926. 800093e: f017 fce3 bl 8018308 <memset>
  927. /** Initializes the peripherals clock
  928. */
  929. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  930. 8000942: f44f 2200 mov.w r2, #524288 @ 0x80000
  931. 8000946: f04f 0300 mov.w r3, #0
  932. 800094a: e9c7 2300 strd r2, r3, [r7]
  933. PeriphClkInitStruct.PLL2.PLL2M = 5;
  934. 800094e: 2305 movs r3, #5
  935. 8000950: 60bb str r3, [r7, #8]
  936. PeriphClkInitStruct.PLL2.PLL2N = 52;
  937. 8000952: 2334 movs r3, #52 @ 0x34
  938. 8000954: 60fb str r3, [r7, #12]
  939. PeriphClkInitStruct.PLL2.PLL2P = 26;
  940. 8000956: 231a movs r3, #26
  941. 8000958: 613b str r3, [r7, #16]
  942. PeriphClkInitStruct.PLL2.PLL2Q = 2;
  943. 800095a: 2302 movs r3, #2
  944. 800095c: 617b str r3, [r7, #20]
  945. PeriphClkInitStruct.PLL2.PLL2R = 2;
  946. 800095e: 2302 movs r3, #2
  947. 8000960: 61bb str r3, [r7, #24]
  948. PeriphClkInitStruct.PLL2.PLL2RGE = RCC_PLL2VCIRANGE_2;
  949. 8000962: 2380 movs r3, #128 @ 0x80
  950. 8000964: 61fb str r3, [r7, #28]
  951. PeriphClkInitStruct.PLL2.PLL2VCOSEL = RCC_PLL2VCOWIDE;
  952. 8000966: 2300 movs r3, #0
  953. 8000968: 623b str r3, [r7, #32]
  954. PeriphClkInitStruct.PLL2.PLL2FRACN = 0;
  955. 800096a: 2300 movs r3, #0
  956. 800096c: 627b str r3, [r7, #36] @ 0x24
  957. PeriphClkInitStruct.AdcClockSelection = RCC_ADCCLKSOURCE_PLL2;
  958. 800096e: 2300 movs r3, #0
  959. 8000970: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  960. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  961. 8000974: 463b mov r3, r7
  962. 8000976: 4618 mov r0, r3
  963. 8000978: f00c f80e bl 800c998 <HAL_RCCEx_PeriphCLKConfig>
  964. 800097c: 4603 mov r3, r0
  965. 800097e: 2b00 cmp r3, #0
  966. 8000980: d001 beq.n 8000986 <PeriphCommonClock_Config+0x56>
  967. {
  968. Error_Handler();
  969. 8000982: f001 faa3 bl 8001ecc <Error_Handler>
  970. }
  971. }
  972. 8000986: bf00 nop
  973. 8000988: 37c0 adds r7, #192 @ 0xc0
  974. 800098a: 46bd mov sp, r7
  975. 800098c: bd80 pop {r7, pc}
  976. ...
  977. 08000990 <MX_ADC1_Init>:
  978. * @brief ADC1 Initialization Function
  979. * @param None
  980. * @retval None
  981. */
  982. static void MX_ADC1_Init(void)
  983. {
  984. 8000990: b580 push {r7, lr}
  985. 8000992: b08a sub sp, #40 @ 0x28
  986. 8000994: af00 add r7, sp, #0
  987. /* USER CODE BEGIN ADC1_Init 0 */
  988. /* USER CODE END ADC1_Init 0 */
  989. ADC_MultiModeTypeDef multimode = {0};
  990. 8000996: f107 031c add.w r3, r7, #28
  991. 800099a: 2200 movs r2, #0
  992. 800099c: 601a str r2, [r3, #0]
  993. 800099e: 605a str r2, [r3, #4]
  994. 80009a0: 609a str r2, [r3, #8]
  995. ADC_ChannelConfTypeDef sConfig = {0};
  996. 80009a2: 463b mov r3, r7
  997. 80009a4: 2200 movs r2, #0
  998. 80009a6: 601a str r2, [r3, #0]
  999. 80009a8: 605a str r2, [r3, #4]
  1000. 80009aa: 609a str r2, [r3, #8]
  1001. 80009ac: 60da str r2, [r3, #12]
  1002. 80009ae: 611a str r2, [r3, #16]
  1003. 80009b0: 615a str r2, [r3, #20]
  1004. 80009b2: 619a str r2, [r3, #24]
  1005. /* USER CODE END ADC1_Init 1 */
  1006. /** Common config
  1007. */
  1008. hadc1.Instance = ADC1;
  1009. 80009b4: 4b62 ldr r3, [pc, #392] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1010. 80009b6: 4a63 ldr r2, [pc, #396] @ (8000b44 <MX_ADC1_Init+0x1b4>)
  1011. 80009b8: 601a str r2, [r3, #0]
  1012. hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1013. 80009ba: 4b61 ldr r3, [pc, #388] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1014. 80009bc: 2200 movs r2, #0
  1015. 80009be: 605a str r2, [r3, #4]
  1016. hadc1.Init.Resolution = ADC_RESOLUTION_16B;
  1017. 80009c0: 4b5f ldr r3, [pc, #380] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1018. 80009c2: 2200 movs r2, #0
  1019. 80009c4: 609a str r2, [r3, #8]
  1020. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1021. 80009c6: 4b5e ldr r3, [pc, #376] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1022. 80009c8: 2201 movs r2, #1
  1023. 80009ca: 60da str r2, [r3, #12]
  1024. hadc1.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1025. 80009cc: 4b5c ldr r3, [pc, #368] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1026. 80009ce: 2208 movs r2, #8
  1027. 80009d0: 611a str r2, [r3, #16]
  1028. hadc1.Init.LowPowerAutoWait = DISABLE;
  1029. 80009d2: 4b5b ldr r3, [pc, #364] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1030. 80009d4: 2200 movs r2, #0
  1031. 80009d6: 751a strb r2, [r3, #20]
  1032. hadc1.Init.ContinuousConvMode = ENABLE;
  1033. 80009d8: 4b59 ldr r3, [pc, #356] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1034. 80009da: 2201 movs r2, #1
  1035. 80009dc: 755a strb r2, [r3, #21]
  1036. hadc1.Init.NbrOfConversion = 7;
  1037. 80009de: 4b58 ldr r3, [pc, #352] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1038. 80009e0: 2207 movs r2, #7
  1039. 80009e2: 619a str r2, [r3, #24]
  1040. hadc1.Init.DiscontinuousConvMode = DISABLE;
  1041. 80009e4: 4b56 ldr r3, [pc, #344] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1042. 80009e6: 2200 movs r2, #0
  1043. 80009e8: 771a strb r2, [r3, #28]
  1044. hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1045. 80009ea: 4b55 ldr r3, [pc, #340] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1046. 80009ec: f44f 629c mov.w r2, #1248 @ 0x4e0
  1047. 80009f0: 625a str r2, [r3, #36] @ 0x24
  1048. hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1049. 80009f2: 4b53 ldr r3, [pc, #332] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1050. 80009f4: f44f 6280 mov.w r2, #1024 @ 0x400
  1051. 80009f8: 629a str r2, [r3, #40] @ 0x28
  1052. hadc1.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1053. 80009fa: 4b51 ldr r3, [pc, #324] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1054. 80009fc: 2201 movs r2, #1
  1055. 80009fe: 62da str r2, [r3, #44] @ 0x2c
  1056. hadc1.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1057. 8000a00: 4b4f ldr r3, [pc, #316] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1058. 8000a02: 2200 movs r2, #0
  1059. 8000a04: 631a str r2, [r3, #48] @ 0x30
  1060. hadc1.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1061. 8000a06: 4b4e ldr r3, [pc, #312] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1062. 8000a08: 2200 movs r2, #0
  1063. 8000a0a: 635a str r2, [r3, #52] @ 0x34
  1064. hadc1.Init.OversamplingMode = DISABLE;
  1065. 8000a0c: 4b4c ldr r3, [pc, #304] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1066. 8000a0e: 2200 movs r2, #0
  1067. 8000a10: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1068. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  1069. 8000a14: 484a ldr r0, [pc, #296] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1070. 8000a16: f005 fc61 bl 80062dc <HAL_ADC_Init>
  1071. 8000a1a: 4603 mov r3, r0
  1072. 8000a1c: 2b00 cmp r3, #0
  1073. 8000a1e: d001 beq.n 8000a24 <MX_ADC1_Init+0x94>
  1074. {
  1075. Error_Handler();
  1076. 8000a20: f001 fa54 bl 8001ecc <Error_Handler>
  1077. }
  1078. /** Configure the ADC multi-mode
  1079. */
  1080. multimode.Mode = ADC_MODE_INDEPENDENT;
  1081. 8000a24: 2300 movs r3, #0
  1082. 8000a26: 61fb str r3, [r7, #28]
  1083. if (HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode) != HAL_OK)
  1084. 8000a28: f107 031c add.w r3, r7, #28
  1085. 8000a2c: 4619 mov r1, r3
  1086. 8000a2e: 4844 ldr r0, [pc, #272] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1087. 8000a30: f006 fd72 bl 8007518 <HAL_ADCEx_MultiModeConfigChannel>
  1088. 8000a34: 4603 mov r3, r0
  1089. 8000a36: 2b00 cmp r3, #0
  1090. 8000a38: d001 beq.n 8000a3e <MX_ADC1_Init+0xae>
  1091. {
  1092. Error_Handler();
  1093. 8000a3a: f001 fa47 bl 8001ecc <Error_Handler>
  1094. }
  1095. /** Configure Regular Channel
  1096. */
  1097. sConfig.Channel = ADC_CHANNEL_8;
  1098. 8000a3e: 4b42 ldr r3, [pc, #264] @ (8000b48 <MX_ADC1_Init+0x1b8>)
  1099. 8000a40: 603b str r3, [r7, #0]
  1100. sConfig.Rank = ADC_REGULAR_RANK_1;
  1101. 8000a42: 2306 movs r3, #6
  1102. 8000a44: 607b str r3, [r7, #4]
  1103. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1104. 8000a46: 2306 movs r3, #6
  1105. 8000a48: 60bb str r3, [r7, #8]
  1106. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1107. 8000a4a: f240 73ff movw r3, #2047 @ 0x7ff
  1108. 8000a4e: 60fb str r3, [r7, #12]
  1109. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1110. 8000a50: 2304 movs r3, #4
  1111. 8000a52: 613b str r3, [r7, #16]
  1112. sConfig.Offset = 0;
  1113. 8000a54: 2300 movs r3, #0
  1114. 8000a56: 617b str r3, [r7, #20]
  1115. sConfig.OffsetSignedSaturation = DISABLE;
  1116. 8000a58: 2300 movs r3, #0
  1117. 8000a5a: 767b strb r3, [r7, #25]
  1118. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1119. 8000a5c: 463b mov r3, r7
  1120. 8000a5e: 4619 mov r1, r3
  1121. 8000a60: 4837 ldr r0, [pc, #220] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1122. 8000a62: f005 feb5 bl 80067d0 <HAL_ADC_ConfigChannel>
  1123. 8000a66: 4603 mov r3, r0
  1124. 8000a68: 2b00 cmp r3, #0
  1125. 8000a6a: d001 beq.n 8000a70 <MX_ADC1_Init+0xe0>
  1126. {
  1127. Error_Handler();
  1128. 8000a6c: f001 fa2e bl 8001ecc <Error_Handler>
  1129. }
  1130. /** Configure Regular Channel
  1131. */
  1132. sConfig.Channel = ADC_CHANNEL_7;
  1133. 8000a70: 4b36 ldr r3, [pc, #216] @ (8000b4c <MX_ADC1_Init+0x1bc>)
  1134. 8000a72: 603b str r3, [r7, #0]
  1135. sConfig.Rank = ADC_REGULAR_RANK_2;
  1136. 8000a74: 230c movs r3, #12
  1137. 8000a76: 607b str r3, [r7, #4]
  1138. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1139. 8000a78: 463b mov r3, r7
  1140. 8000a7a: 4619 mov r1, r3
  1141. 8000a7c: 4830 ldr r0, [pc, #192] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1142. 8000a7e: f005 fea7 bl 80067d0 <HAL_ADC_ConfigChannel>
  1143. 8000a82: 4603 mov r3, r0
  1144. 8000a84: 2b00 cmp r3, #0
  1145. 8000a86: d001 beq.n 8000a8c <MX_ADC1_Init+0xfc>
  1146. {
  1147. Error_Handler();
  1148. 8000a88: f001 fa20 bl 8001ecc <Error_Handler>
  1149. }
  1150. /** Configure Regular Channel
  1151. */
  1152. sConfig.Channel = ADC_CHANNEL_9;
  1153. 8000a8c: 4b30 ldr r3, [pc, #192] @ (8000b50 <MX_ADC1_Init+0x1c0>)
  1154. 8000a8e: 603b str r3, [r7, #0]
  1155. sConfig.Rank = ADC_REGULAR_RANK_3;
  1156. 8000a90: 2312 movs r3, #18
  1157. 8000a92: 607b str r3, [r7, #4]
  1158. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1159. 8000a94: 463b mov r3, r7
  1160. 8000a96: 4619 mov r1, r3
  1161. 8000a98: 4829 ldr r0, [pc, #164] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1162. 8000a9a: f005 fe99 bl 80067d0 <HAL_ADC_ConfigChannel>
  1163. 8000a9e: 4603 mov r3, r0
  1164. 8000aa0: 2b00 cmp r3, #0
  1165. 8000aa2: d001 beq.n 8000aa8 <MX_ADC1_Init+0x118>
  1166. {
  1167. Error_Handler();
  1168. 8000aa4: f001 fa12 bl 8001ecc <Error_Handler>
  1169. }
  1170. /** Configure Regular Channel
  1171. */
  1172. sConfig.Channel = ADC_CHANNEL_16;
  1173. 8000aa8: 4b2a ldr r3, [pc, #168] @ (8000b54 <MX_ADC1_Init+0x1c4>)
  1174. 8000aaa: 603b str r3, [r7, #0]
  1175. sConfig.Rank = ADC_REGULAR_RANK_4;
  1176. 8000aac: 2318 movs r3, #24
  1177. 8000aae: 607b str r3, [r7, #4]
  1178. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1179. 8000ab0: 463b mov r3, r7
  1180. 8000ab2: 4619 mov r1, r3
  1181. 8000ab4: 4822 ldr r0, [pc, #136] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1182. 8000ab6: f005 fe8b bl 80067d0 <HAL_ADC_ConfigChannel>
  1183. 8000aba: 4603 mov r3, r0
  1184. 8000abc: 2b00 cmp r3, #0
  1185. 8000abe: d001 beq.n 8000ac4 <MX_ADC1_Init+0x134>
  1186. {
  1187. Error_Handler();
  1188. 8000ac0: f001 fa04 bl 8001ecc <Error_Handler>
  1189. }
  1190. /** Configure Regular Channel
  1191. */
  1192. sConfig.Channel = ADC_CHANNEL_17;
  1193. 8000ac4: 4b24 ldr r3, [pc, #144] @ (8000b58 <MX_ADC1_Init+0x1c8>)
  1194. 8000ac6: 603b str r3, [r7, #0]
  1195. sConfig.Rank = ADC_REGULAR_RANK_5;
  1196. 8000ac8: f44f 7380 mov.w r3, #256 @ 0x100
  1197. 8000acc: 607b str r3, [r7, #4]
  1198. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1199. 8000ace: 463b mov r3, r7
  1200. 8000ad0: 4619 mov r1, r3
  1201. 8000ad2: 481b ldr r0, [pc, #108] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1202. 8000ad4: f005 fe7c bl 80067d0 <HAL_ADC_ConfigChannel>
  1203. 8000ad8: 4603 mov r3, r0
  1204. 8000ada: 2b00 cmp r3, #0
  1205. 8000adc: d001 beq.n 8000ae2 <MX_ADC1_Init+0x152>
  1206. {
  1207. Error_Handler();
  1208. 8000ade: f001 f9f5 bl 8001ecc <Error_Handler>
  1209. }
  1210. /** Configure Regular Channel
  1211. */
  1212. sConfig.Channel = ADC_CHANNEL_14;
  1213. 8000ae2: 4b1e ldr r3, [pc, #120] @ (8000b5c <MX_ADC1_Init+0x1cc>)
  1214. 8000ae4: 603b str r3, [r7, #0]
  1215. sConfig.Rank = ADC_REGULAR_RANK_6;
  1216. 8000ae6: f44f 7383 mov.w r3, #262 @ 0x106
  1217. 8000aea: 607b str r3, [r7, #4]
  1218. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1219. 8000aec: 463b mov r3, r7
  1220. 8000aee: 4619 mov r1, r3
  1221. 8000af0: 4813 ldr r0, [pc, #76] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1222. 8000af2: f005 fe6d bl 80067d0 <HAL_ADC_ConfigChannel>
  1223. 8000af6: 4603 mov r3, r0
  1224. 8000af8: 2b00 cmp r3, #0
  1225. 8000afa: d001 beq.n 8000b00 <MX_ADC1_Init+0x170>
  1226. {
  1227. Error_Handler();
  1228. 8000afc: f001 f9e6 bl 8001ecc <Error_Handler>
  1229. }
  1230. /** Configure Regular Channel
  1231. */
  1232. sConfig.Channel = ADC_CHANNEL_15;
  1233. 8000b00: 4b17 ldr r3, [pc, #92] @ (8000b60 <MX_ADC1_Init+0x1d0>)
  1234. 8000b02: 603b str r3, [r7, #0]
  1235. sConfig.Rank = ADC_REGULAR_RANK_7;
  1236. 8000b04: f44f 7386 mov.w r3, #268 @ 0x10c
  1237. 8000b08: 607b str r3, [r7, #4]
  1238. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1239. 8000b0a: 463b mov r3, r7
  1240. 8000b0c: 4619 mov r1, r3
  1241. 8000b0e: 480c ldr r0, [pc, #48] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1242. 8000b10: f005 fe5e bl 80067d0 <HAL_ADC_ConfigChannel>
  1243. 8000b14: 4603 mov r3, r0
  1244. 8000b16: 2b00 cmp r3, #0
  1245. 8000b18: d001 beq.n 8000b1e <MX_ADC1_Init+0x18e>
  1246. {
  1247. Error_Handler();
  1248. 8000b1a: f001 f9d7 bl 8001ecc <Error_Handler>
  1249. }
  1250. /* USER CODE BEGIN ADC1_Init 2 */
  1251. if (HAL_ADCEx_Calibration_Start(&hadc1, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1252. 8000b1e: f240 72ff movw r2, #2047 @ 0x7ff
  1253. 8000b22: f04f 1101 mov.w r1, #65537 @ 0x10001
  1254. 8000b26: 4806 ldr r0, [pc, #24] @ (8000b40 <MX_ADC1_Init+0x1b0>)
  1255. 8000b28: f006 fc92 bl 8007450 <HAL_ADCEx_Calibration_Start>
  1256. 8000b2c: 4603 mov r3, r0
  1257. 8000b2e: 2b00 cmp r3, #0
  1258. 8000b30: d001 beq.n 8000b36 <MX_ADC1_Init+0x1a6>
  1259. {
  1260. Error_Handler();
  1261. 8000b32: f001 f9cb bl 8001ecc <Error_Handler>
  1262. }
  1263. /* USER CODE END ADC1_Init 2 */
  1264. }
  1265. 8000b36: bf00 nop
  1266. 8000b38: 3728 adds r7, #40 @ 0x28
  1267. 8000b3a: 46bd mov sp, r7
  1268. 8000b3c: bd80 pop {r7, pc}
  1269. 8000b3e: bf00 nop
  1270. 8000b40: 24000120 .word 0x24000120
  1271. 8000b44: 40022000 .word 0x40022000
  1272. 8000b48: 21800100 .word 0x21800100
  1273. 8000b4c: 1d500080 .word 0x1d500080
  1274. 8000b50: 25b00200 .word 0x25b00200
  1275. 8000b54: 43210000 .word 0x43210000
  1276. 8000b58: 47520000 .word 0x47520000
  1277. 8000b5c: 3ac04000 .word 0x3ac04000
  1278. 8000b60: 3ef08000 .word 0x3ef08000
  1279. 08000b64 <MX_ADC2_Init>:
  1280. * @brief ADC2 Initialization Function
  1281. * @param None
  1282. * @retval None
  1283. */
  1284. static void MX_ADC2_Init(void)
  1285. {
  1286. 8000b64: b580 push {r7, lr}
  1287. 8000b66: b088 sub sp, #32
  1288. 8000b68: af00 add r7, sp, #0
  1289. /* USER CODE BEGIN ADC2_Init 0 */
  1290. /* USER CODE END ADC2_Init 0 */
  1291. ADC_ChannelConfTypeDef sConfig = {0};
  1292. 8000b6a: 1d3b adds r3, r7, #4
  1293. 8000b6c: 2200 movs r2, #0
  1294. 8000b6e: 601a str r2, [r3, #0]
  1295. 8000b70: 605a str r2, [r3, #4]
  1296. 8000b72: 609a str r2, [r3, #8]
  1297. 8000b74: 60da str r2, [r3, #12]
  1298. 8000b76: 611a str r2, [r3, #16]
  1299. 8000b78: 615a str r2, [r3, #20]
  1300. 8000b7a: 619a str r2, [r3, #24]
  1301. /* USER CODE END ADC2_Init 1 */
  1302. /** Common config
  1303. */
  1304. hadc2.Instance = ADC2;
  1305. 8000b7c: 4b3e ldr r3, [pc, #248] @ (8000c78 <MX_ADC2_Init+0x114>)
  1306. 8000b7e: 4a3f ldr r2, [pc, #252] @ (8000c7c <MX_ADC2_Init+0x118>)
  1307. 8000b80: 601a str r2, [r3, #0]
  1308. hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1309. 8000b82: 4b3d ldr r3, [pc, #244] @ (8000c78 <MX_ADC2_Init+0x114>)
  1310. 8000b84: 2200 movs r2, #0
  1311. 8000b86: 605a str r2, [r3, #4]
  1312. hadc2.Init.Resolution = ADC_RESOLUTION_16B;
  1313. 8000b88: 4b3b ldr r3, [pc, #236] @ (8000c78 <MX_ADC2_Init+0x114>)
  1314. 8000b8a: 2200 movs r2, #0
  1315. 8000b8c: 609a str r2, [r3, #8]
  1316. hadc2.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1317. 8000b8e: 4b3a ldr r3, [pc, #232] @ (8000c78 <MX_ADC2_Init+0x114>)
  1318. 8000b90: 2201 movs r2, #1
  1319. 8000b92: 60da str r2, [r3, #12]
  1320. hadc2.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1321. 8000b94: 4b38 ldr r3, [pc, #224] @ (8000c78 <MX_ADC2_Init+0x114>)
  1322. 8000b96: 2208 movs r2, #8
  1323. 8000b98: 611a str r2, [r3, #16]
  1324. hadc2.Init.LowPowerAutoWait = DISABLE;
  1325. 8000b9a: 4b37 ldr r3, [pc, #220] @ (8000c78 <MX_ADC2_Init+0x114>)
  1326. 8000b9c: 2200 movs r2, #0
  1327. 8000b9e: 751a strb r2, [r3, #20]
  1328. hadc2.Init.ContinuousConvMode = ENABLE;
  1329. 8000ba0: 4b35 ldr r3, [pc, #212] @ (8000c78 <MX_ADC2_Init+0x114>)
  1330. 8000ba2: 2201 movs r2, #1
  1331. 8000ba4: 755a strb r2, [r3, #21]
  1332. hadc2.Init.NbrOfConversion = 3;
  1333. 8000ba6: 4b34 ldr r3, [pc, #208] @ (8000c78 <MX_ADC2_Init+0x114>)
  1334. 8000ba8: 2203 movs r2, #3
  1335. 8000baa: 619a str r2, [r3, #24]
  1336. hadc2.Init.DiscontinuousConvMode = DISABLE;
  1337. 8000bac: 4b32 ldr r3, [pc, #200] @ (8000c78 <MX_ADC2_Init+0x114>)
  1338. 8000bae: 2200 movs r2, #0
  1339. 8000bb0: 771a strb r2, [r3, #28]
  1340. hadc2.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1341. 8000bb2: 4b31 ldr r3, [pc, #196] @ (8000c78 <MX_ADC2_Init+0x114>)
  1342. 8000bb4: f44f 629c mov.w r2, #1248 @ 0x4e0
  1343. 8000bb8: 625a str r2, [r3, #36] @ 0x24
  1344. hadc2.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1345. 8000bba: 4b2f ldr r3, [pc, #188] @ (8000c78 <MX_ADC2_Init+0x114>)
  1346. 8000bbc: f44f 6280 mov.w r2, #1024 @ 0x400
  1347. 8000bc0: 629a str r2, [r3, #40] @ 0x28
  1348. hadc2.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1349. 8000bc2: 4b2d ldr r3, [pc, #180] @ (8000c78 <MX_ADC2_Init+0x114>)
  1350. 8000bc4: 2201 movs r2, #1
  1351. 8000bc6: 62da str r2, [r3, #44] @ 0x2c
  1352. hadc2.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1353. 8000bc8: 4b2b ldr r3, [pc, #172] @ (8000c78 <MX_ADC2_Init+0x114>)
  1354. 8000bca: 2200 movs r2, #0
  1355. 8000bcc: 631a str r2, [r3, #48] @ 0x30
  1356. hadc2.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1357. 8000bce: 4b2a ldr r3, [pc, #168] @ (8000c78 <MX_ADC2_Init+0x114>)
  1358. 8000bd0: 2200 movs r2, #0
  1359. 8000bd2: 635a str r2, [r3, #52] @ 0x34
  1360. hadc2.Init.OversamplingMode = DISABLE;
  1361. 8000bd4: 4b28 ldr r3, [pc, #160] @ (8000c78 <MX_ADC2_Init+0x114>)
  1362. 8000bd6: 2200 movs r2, #0
  1363. 8000bd8: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1364. if (HAL_ADC_Init(&hadc2) != HAL_OK)
  1365. 8000bdc: 4826 ldr r0, [pc, #152] @ (8000c78 <MX_ADC2_Init+0x114>)
  1366. 8000bde: f005 fb7d bl 80062dc <HAL_ADC_Init>
  1367. 8000be2: 4603 mov r3, r0
  1368. 8000be4: 2b00 cmp r3, #0
  1369. 8000be6: d001 beq.n 8000bec <MX_ADC2_Init+0x88>
  1370. {
  1371. Error_Handler();
  1372. 8000be8: f001 f970 bl 8001ecc <Error_Handler>
  1373. }
  1374. /** Configure Regular Channel
  1375. */
  1376. sConfig.Channel = ADC_CHANNEL_3;
  1377. 8000bec: 4b24 ldr r3, [pc, #144] @ (8000c80 <MX_ADC2_Init+0x11c>)
  1378. 8000bee: 607b str r3, [r7, #4]
  1379. sConfig.Rank = ADC_REGULAR_RANK_1;
  1380. 8000bf0: 2306 movs r3, #6
  1381. 8000bf2: 60bb str r3, [r7, #8]
  1382. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1383. 8000bf4: 2306 movs r3, #6
  1384. 8000bf6: 60fb str r3, [r7, #12]
  1385. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1386. 8000bf8: f240 73ff movw r3, #2047 @ 0x7ff
  1387. 8000bfc: 613b str r3, [r7, #16]
  1388. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1389. 8000bfe: 2304 movs r3, #4
  1390. 8000c00: 617b str r3, [r7, #20]
  1391. sConfig.Offset = 0;
  1392. 8000c02: 2300 movs r3, #0
  1393. 8000c04: 61bb str r3, [r7, #24]
  1394. sConfig.OffsetSignedSaturation = DISABLE;
  1395. 8000c06: 2300 movs r3, #0
  1396. 8000c08: 777b strb r3, [r7, #29]
  1397. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1398. 8000c0a: 1d3b adds r3, r7, #4
  1399. 8000c0c: 4619 mov r1, r3
  1400. 8000c0e: 481a ldr r0, [pc, #104] @ (8000c78 <MX_ADC2_Init+0x114>)
  1401. 8000c10: f005 fdde bl 80067d0 <HAL_ADC_ConfigChannel>
  1402. 8000c14: 4603 mov r3, r0
  1403. 8000c16: 2b00 cmp r3, #0
  1404. 8000c18: d001 beq.n 8000c1e <MX_ADC2_Init+0xba>
  1405. {
  1406. Error_Handler();
  1407. 8000c1a: f001 f957 bl 8001ecc <Error_Handler>
  1408. }
  1409. /** Configure Regular Channel
  1410. */
  1411. sConfig.Channel = ADC_CHANNEL_4;
  1412. 8000c1e: 4b19 ldr r3, [pc, #100] @ (8000c84 <MX_ADC2_Init+0x120>)
  1413. 8000c20: 607b str r3, [r7, #4]
  1414. sConfig.Rank = ADC_REGULAR_RANK_2;
  1415. 8000c22: 230c movs r3, #12
  1416. 8000c24: 60bb str r3, [r7, #8]
  1417. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1418. 8000c26: 1d3b adds r3, r7, #4
  1419. 8000c28: 4619 mov r1, r3
  1420. 8000c2a: 4813 ldr r0, [pc, #76] @ (8000c78 <MX_ADC2_Init+0x114>)
  1421. 8000c2c: f005 fdd0 bl 80067d0 <HAL_ADC_ConfigChannel>
  1422. 8000c30: 4603 mov r3, r0
  1423. 8000c32: 2b00 cmp r3, #0
  1424. 8000c34: d001 beq.n 8000c3a <MX_ADC2_Init+0xd6>
  1425. {
  1426. Error_Handler();
  1427. 8000c36: f001 f949 bl 8001ecc <Error_Handler>
  1428. }
  1429. /** Configure Regular Channel
  1430. */
  1431. sConfig.Channel = ADC_CHANNEL_5;
  1432. 8000c3a: 4b13 ldr r3, [pc, #76] @ (8000c88 <MX_ADC2_Init+0x124>)
  1433. 8000c3c: 607b str r3, [r7, #4]
  1434. sConfig.Rank = ADC_REGULAR_RANK_3;
  1435. 8000c3e: 2312 movs r3, #18
  1436. 8000c40: 60bb str r3, [r7, #8]
  1437. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1438. 8000c42: 1d3b adds r3, r7, #4
  1439. 8000c44: 4619 mov r1, r3
  1440. 8000c46: 480c ldr r0, [pc, #48] @ (8000c78 <MX_ADC2_Init+0x114>)
  1441. 8000c48: f005 fdc2 bl 80067d0 <HAL_ADC_ConfigChannel>
  1442. 8000c4c: 4603 mov r3, r0
  1443. 8000c4e: 2b00 cmp r3, #0
  1444. 8000c50: d001 beq.n 8000c56 <MX_ADC2_Init+0xf2>
  1445. {
  1446. Error_Handler();
  1447. 8000c52: f001 f93b bl 8001ecc <Error_Handler>
  1448. }
  1449. /* USER CODE BEGIN ADC2_Init 2 */
  1450. if (HAL_ADCEx_Calibration_Start(&hadc2, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1451. 8000c56: f240 72ff movw r2, #2047 @ 0x7ff
  1452. 8000c5a: f04f 1101 mov.w r1, #65537 @ 0x10001
  1453. 8000c5e: 4806 ldr r0, [pc, #24] @ (8000c78 <MX_ADC2_Init+0x114>)
  1454. 8000c60: f006 fbf6 bl 8007450 <HAL_ADCEx_Calibration_Start>
  1455. 8000c64: 4603 mov r3, r0
  1456. 8000c66: 2b00 cmp r3, #0
  1457. 8000c68: d001 beq.n 8000c6e <MX_ADC2_Init+0x10a>
  1458. {
  1459. Error_Handler();
  1460. 8000c6a: f001 f92f bl 8001ecc <Error_Handler>
  1461. }
  1462. /* USER CODE END ADC2_Init 2 */
  1463. }
  1464. 8000c6e: bf00 nop
  1465. 8000c70: 3720 adds r7, #32
  1466. 8000c72: 46bd mov sp, r7
  1467. 8000c74: bd80 pop {r7, pc}
  1468. 8000c76: bf00 nop
  1469. 8000c78: 24000184 .word 0x24000184
  1470. 8000c7c: 40022100 .word 0x40022100
  1471. 8000c80: 0c900008 .word 0x0c900008
  1472. 8000c84: 10c00010 .word 0x10c00010
  1473. 8000c88: 14f00020 .word 0x14f00020
  1474. 08000c8c <MX_ADC3_Init>:
  1475. * @brief ADC3 Initialization Function
  1476. * @param None
  1477. * @retval None
  1478. */
  1479. static void MX_ADC3_Init(void)
  1480. {
  1481. 8000c8c: b580 push {r7, lr}
  1482. 8000c8e: b088 sub sp, #32
  1483. 8000c90: af00 add r7, sp, #0
  1484. /* USER CODE BEGIN ADC3_Init 0 */
  1485. /* USER CODE END ADC3_Init 0 */
  1486. ADC_ChannelConfTypeDef sConfig = {0};
  1487. 8000c92: 1d3b adds r3, r7, #4
  1488. 8000c94: 2200 movs r2, #0
  1489. 8000c96: 601a str r2, [r3, #0]
  1490. 8000c98: 605a str r2, [r3, #4]
  1491. 8000c9a: 609a str r2, [r3, #8]
  1492. 8000c9c: 60da str r2, [r3, #12]
  1493. 8000c9e: 611a str r2, [r3, #16]
  1494. 8000ca0: 615a str r2, [r3, #20]
  1495. 8000ca2: 619a str r2, [r3, #24]
  1496. /* USER CODE END ADC3_Init 1 */
  1497. /** Common config
  1498. */
  1499. hadc3.Instance = ADC3;
  1500. 8000ca4: 4b4b ldr r3, [pc, #300] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1501. 8000ca6: 4a4c ldr r2, [pc, #304] @ (8000dd8 <MX_ADC3_Init+0x14c>)
  1502. 8000ca8: 601a str r2, [r3, #0]
  1503. hadc3.Init.Resolution = ADC_RESOLUTION_16B;
  1504. 8000caa: 4b4a ldr r3, [pc, #296] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1505. 8000cac: 2200 movs r2, #0
  1506. 8000cae: 609a str r2, [r3, #8]
  1507. hadc3.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1508. 8000cb0: 4b48 ldr r3, [pc, #288] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1509. 8000cb2: 2201 movs r2, #1
  1510. 8000cb4: 60da str r2, [r3, #12]
  1511. hadc3.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1512. 8000cb6: 4b47 ldr r3, [pc, #284] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1513. 8000cb8: 2208 movs r2, #8
  1514. 8000cba: 611a str r2, [r3, #16]
  1515. hadc3.Init.LowPowerAutoWait = DISABLE;
  1516. 8000cbc: 4b45 ldr r3, [pc, #276] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1517. 8000cbe: 2200 movs r2, #0
  1518. 8000cc0: 751a strb r2, [r3, #20]
  1519. hadc3.Init.ContinuousConvMode = ENABLE;
  1520. 8000cc2: 4b44 ldr r3, [pc, #272] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1521. 8000cc4: 2201 movs r2, #1
  1522. 8000cc6: 755a strb r2, [r3, #21]
  1523. hadc3.Init.NbrOfConversion = 5;
  1524. 8000cc8: 4b42 ldr r3, [pc, #264] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1525. 8000cca: 2205 movs r2, #5
  1526. 8000ccc: 619a str r2, [r3, #24]
  1527. hadc3.Init.DiscontinuousConvMode = DISABLE;
  1528. 8000cce: 4b41 ldr r3, [pc, #260] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1529. 8000cd0: 2200 movs r2, #0
  1530. 8000cd2: 771a strb r2, [r3, #28]
  1531. hadc3.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1532. 8000cd4: 4b3f ldr r3, [pc, #252] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1533. 8000cd6: f44f 629c mov.w r2, #1248 @ 0x4e0
  1534. 8000cda: 625a str r2, [r3, #36] @ 0x24
  1535. hadc3.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1536. 8000cdc: 4b3d ldr r3, [pc, #244] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1537. 8000cde: f44f 6280 mov.w r2, #1024 @ 0x400
  1538. 8000ce2: 629a str r2, [r3, #40] @ 0x28
  1539. hadc3.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1540. 8000ce4: 4b3b ldr r3, [pc, #236] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1541. 8000ce6: 2201 movs r2, #1
  1542. 8000ce8: 62da str r2, [r3, #44] @ 0x2c
  1543. hadc3.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1544. 8000cea: 4b3a ldr r3, [pc, #232] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1545. 8000cec: 2200 movs r2, #0
  1546. 8000cee: 631a str r2, [r3, #48] @ 0x30
  1547. hadc3.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1548. 8000cf0: 4b38 ldr r3, [pc, #224] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1549. 8000cf2: 2200 movs r2, #0
  1550. 8000cf4: 635a str r2, [r3, #52] @ 0x34
  1551. hadc3.Init.OversamplingMode = DISABLE;
  1552. 8000cf6: 4b37 ldr r3, [pc, #220] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1553. 8000cf8: 2200 movs r2, #0
  1554. 8000cfa: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1555. if (HAL_ADC_Init(&hadc3) != HAL_OK)
  1556. 8000cfe: 4835 ldr r0, [pc, #212] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1557. 8000d00: f005 faec bl 80062dc <HAL_ADC_Init>
  1558. 8000d04: 4603 mov r3, r0
  1559. 8000d06: 2b00 cmp r3, #0
  1560. 8000d08: d001 beq.n 8000d0e <MX_ADC3_Init+0x82>
  1561. {
  1562. Error_Handler();
  1563. 8000d0a: f001 f8df bl 8001ecc <Error_Handler>
  1564. }
  1565. /** Configure Regular Channel
  1566. */
  1567. sConfig.Channel = ADC_CHANNEL_0;
  1568. 8000d0e: 2301 movs r3, #1
  1569. 8000d10: 607b str r3, [r7, #4]
  1570. sConfig.Rank = ADC_REGULAR_RANK_1;
  1571. 8000d12: 2306 movs r3, #6
  1572. 8000d14: 60bb str r3, [r7, #8]
  1573. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1574. 8000d16: 2306 movs r3, #6
  1575. 8000d18: 60fb str r3, [r7, #12]
  1576. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1577. 8000d1a: f240 73ff movw r3, #2047 @ 0x7ff
  1578. 8000d1e: 613b str r3, [r7, #16]
  1579. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1580. 8000d20: 2304 movs r3, #4
  1581. 8000d22: 617b str r3, [r7, #20]
  1582. sConfig.Offset = 0;
  1583. 8000d24: 2300 movs r3, #0
  1584. 8000d26: 61bb str r3, [r7, #24]
  1585. sConfig.OffsetSignedSaturation = DISABLE;
  1586. 8000d28: 2300 movs r3, #0
  1587. 8000d2a: 777b strb r3, [r7, #29]
  1588. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1589. 8000d2c: 1d3b adds r3, r7, #4
  1590. 8000d2e: 4619 mov r1, r3
  1591. 8000d30: 4828 ldr r0, [pc, #160] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1592. 8000d32: f005 fd4d bl 80067d0 <HAL_ADC_ConfigChannel>
  1593. 8000d36: 4603 mov r3, r0
  1594. 8000d38: 2b00 cmp r3, #0
  1595. 8000d3a: d001 beq.n 8000d40 <MX_ADC3_Init+0xb4>
  1596. {
  1597. Error_Handler();
  1598. 8000d3c: f001 f8c6 bl 8001ecc <Error_Handler>
  1599. }
  1600. /** Configure Regular Channel
  1601. */
  1602. sConfig.Channel = ADC_CHANNEL_1;
  1603. 8000d40: 4b26 ldr r3, [pc, #152] @ (8000ddc <MX_ADC3_Init+0x150>)
  1604. 8000d42: 607b str r3, [r7, #4]
  1605. sConfig.Rank = ADC_REGULAR_RANK_2;
  1606. 8000d44: 230c movs r3, #12
  1607. 8000d46: 60bb str r3, [r7, #8]
  1608. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1609. 8000d48: 1d3b adds r3, r7, #4
  1610. 8000d4a: 4619 mov r1, r3
  1611. 8000d4c: 4821 ldr r0, [pc, #132] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1612. 8000d4e: f005 fd3f bl 80067d0 <HAL_ADC_ConfigChannel>
  1613. 8000d52: 4603 mov r3, r0
  1614. 8000d54: 2b00 cmp r3, #0
  1615. 8000d56: d001 beq.n 8000d5c <MX_ADC3_Init+0xd0>
  1616. {
  1617. Error_Handler();
  1618. 8000d58: f001 f8b8 bl 8001ecc <Error_Handler>
  1619. }
  1620. /** Configure Regular Channel
  1621. */
  1622. sConfig.Channel = ADC_CHANNEL_10;
  1623. 8000d5c: 4b20 ldr r3, [pc, #128] @ (8000de0 <MX_ADC3_Init+0x154>)
  1624. 8000d5e: 607b str r3, [r7, #4]
  1625. sConfig.Rank = ADC_REGULAR_RANK_3;
  1626. 8000d60: 2312 movs r3, #18
  1627. 8000d62: 60bb str r3, [r7, #8]
  1628. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1629. 8000d64: 1d3b adds r3, r7, #4
  1630. 8000d66: 4619 mov r1, r3
  1631. 8000d68: 481a ldr r0, [pc, #104] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1632. 8000d6a: f005 fd31 bl 80067d0 <HAL_ADC_ConfigChannel>
  1633. 8000d6e: 4603 mov r3, r0
  1634. 8000d70: 2b00 cmp r3, #0
  1635. 8000d72: d001 beq.n 8000d78 <MX_ADC3_Init+0xec>
  1636. {
  1637. Error_Handler();
  1638. 8000d74: f001 f8aa bl 8001ecc <Error_Handler>
  1639. }
  1640. /** Configure Regular Channel
  1641. */
  1642. sConfig.Channel = ADC_CHANNEL_11;
  1643. 8000d78: 4b1a ldr r3, [pc, #104] @ (8000de4 <MX_ADC3_Init+0x158>)
  1644. 8000d7a: 607b str r3, [r7, #4]
  1645. sConfig.Rank = ADC_REGULAR_RANK_4;
  1646. 8000d7c: 2318 movs r3, #24
  1647. 8000d7e: 60bb str r3, [r7, #8]
  1648. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1649. 8000d80: 1d3b adds r3, r7, #4
  1650. 8000d82: 4619 mov r1, r3
  1651. 8000d84: 4813 ldr r0, [pc, #76] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1652. 8000d86: f005 fd23 bl 80067d0 <HAL_ADC_ConfigChannel>
  1653. 8000d8a: 4603 mov r3, r0
  1654. 8000d8c: 2b00 cmp r3, #0
  1655. 8000d8e: d001 beq.n 8000d94 <MX_ADC3_Init+0x108>
  1656. {
  1657. Error_Handler();
  1658. 8000d90: f001 f89c bl 8001ecc <Error_Handler>
  1659. }
  1660. /** Configure Regular Channel
  1661. */
  1662. sConfig.Channel = ADC_CHANNEL_VREFINT;
  1663. 8000d94: 4b14 ldr r3, [pc, #80] @ (8000de8 <MX_ADC3_Init+0x15c>)
  1664. 8000d96: 607b str r3, [r7, #4]
  1665. sConfig.Rank = ADC_REGULAR_RANK_5;
  1666. 8000d98: f44f 7380 mov.w r3, #256 @ 0x100
  1667. 8000d9c: 60bb str r3, [r7, #8]
  1668. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1669. 8000d9e: 1d3b adds r3, r7, #4
  1670. 8000da0: 4619 mov r1, r3
  1671. 8000da2: 480c ldr r0, [pc, #48] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1672. 8000da4: f005 fd14 bl 80067d0 <HAL_ADC_ConfigChannel>
  1673. 8000da8: 4603 mov r3, r0
  1674. 8000daa: 2b00 cmp r3, #0
  1675. 8000dac: d001 beq.n 8000db2 <MX_ADC3_Init+0x126>
  1676. {
  1677. Error_Handler();
  1678. 8000dae: f001 f88d bl 8001ecc <Error_Handler>
  1679. }
  1680. /* USER CODE BEGIN ADC3_Init 2 */
  1681. if (HAL_ADCEx_Calibration_Start(&hadc3, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1682. 8000db2: f240 72ff movw r2, #2047 @ 0x7ff
  1683. 8000db6: f04f 1101 mov.w r1, #65537 @ 0x10001
  1684. 8000dba: 4806 ldr r0, [pc, #24] @ (8000dd4 <MX_ADC3_Init+0x148>)
  1685. 8000dbc: f006 fb48 bl 8007450 <HAL_ADCEx_Calibration_Start>
  1686. 8000dc0: 4603 mov r3, r0
  1687. 8000dc2: 2b00 cmp r3, #0
  1688. 8000dc4: d001 beq.n 8000dca <MX_ADC3_Init+0x13e>
  1689. {
  1690. Error_Handler();
  1691. 8000dc6: f001 f881 bl 8001ecc <Error_Handler>
  1692. }
  1693. /* USER CODE END ADC3_Init 2 */
  1694. }
  1695. 8000dca: bf00 nop
  1696. 8000dcc: 3720 adds r7, #32
  1697. 8000dce: 46bd mov sp, r7
  1698. 8000dd0: bd80 pop {r7, pc}
  1699. 8000dd2: bf00 nop
  1700. 8000dd4: 240001e8 .word 0x240001e8
  1701. 8000dd8: 58026000 .word 0x58026000
  1702. 8000ddc: 04300002 .word 0x04300002
  1703. 8000de0: 2a000400 .word 0x2a000400
  1704. 8000de4: 2e300800 .word 0x2e300800
  1705. 8000de8: cfb80000 .word 0xcfb80000
  1706. 08000dec <MX_COMP1_Init>:
  1707. * @brief COMP1 Initialization Function
  1708. * @param None
  1709. * @retval None
  1710. */
  1711. static void MX_COMP1_Init(void)
  1712. {
  1713. 8000dec: b580 push {r7, lr}
  1714. 8000dee: af00 add r7, sp, #0
  1715. /* USER CODE END COMP1_Init 0 */
  1716. /* USER CODE BEGIN COMP1_Init 1 */
  1717. /* USER CODE END COMP1_Init 1 */
  1718. hcomp1.Instance = COMP1;
  1719. 8000df0: 4b12 ldr r3, [pc, #72] @ (8000e3c <MX_COMP1_Init+0x50>)
  1720. 8000df2: 4a13 ldr r2, [pc, #76] @ (8000e40 <MX_COMP1_Init+0x54>)
  1721. 8000df4: 601a str r2, [r3, #0]
  1722. hcomp1.Init.InvertingInput = COMP_INPUT_MINUS_3_4VREFINT;
  1723. 8000df6: 4b11 ldr r3, [pc, #68] @ (8000e3c <MX_COMP1_Init+0x50>)
  1724. 8000df8: 4a12 ldr r2, [pc, #72] @ (8000e44 <MX_COMP1_Init+0x58>)
  1725. 8000dfa: 611a str r2, [r3, #16]
  1726. hcomp1.Init.NonInvertingInput = COMP_INPUT_PLUS_IO2;
  1727. 8000dfc: 4b0f ldr r3, [pc, #60] @ (8000e3c <MX_COMP1_Init+0x50>)
  1728. 8000dfe: f44f 1280 mov.w r2, #1048576 @ 0x100000
  1729. 8000e02: 60da str r2, [r3, #12]
  1730. hcomp1.Init.OutputPol = COMP_OUTPUTPOL_NONINVERTED;
  1731. 8000e04: 4b0d ldr r3, [pc, #52] @ (8000e3c <MX_COMP1_Init+0x50>)
  1732. 8000e06: 2200 movs r2, #0
  1733. 8000e08: 619a str r2, [r3, #24]
  1734. hcomp1.Init.Hysteresis = COMP_HYSTERESIS_NONE;
  1735. 8000e0a: 4b0c ldr r3, [pc, #48] @ (8000e3c <MX_COMP1_Init+0x50>)
  1736. 8000e0c: 2200 movs r2, #0
  1737. 8000e0e: 615a str r2, [r3, #20]
  1738. hcomp1.Init.BlankingSrce = COMP_BLANKINGSRC_NONE;
  1739. 8000e10: 4b0a ldr r3, [pc, #40] @ (8000e3c <MX_COMP1_Init+0x50>)
  1740. 8000e12: 2200 movs r2, #0
  1741. 8000e14: 61da str r2, [r3, #28]
  1742. hcomp1.Init.Mode = COMP_POWERMODE_HIGHSPEED;
  1743. 8000e16: 4b09 ldr r3, [pc, #36] @ (8000e3c <MX_COMP1_Init+0x50>)
  1744. 8000e18: 2200 movs r2, #0
  1745. 8000e1a: 609a str r2, [r3, #8]
  1746. hcomp1.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
  1747. 8000e1c: 4b07 ldr r3, [pc, #28] @ (8000e3c <MX_COMP1_Init+0x50>)
  1748. 8000e1e: 2200 movs r2, #0
  1749. 8000e20: 605a str r2, [r3, #4]
  1750. hcomp1.Init.TriggerMode = COMP_TRIGGERMODE_NONE;
  1751. 8000e22: 4b06 ldr r3, [pc, #24] @ (8000e3c <MX_COMP1_Init+0x50>)
  1752. 8000e24: 2200 movs r2, #0
  1753. 8000e26: 621a str r2, [r3, #32]
  1754. if (HAL_COMP_Init(&hcomp1) != HAL_OK)
  1755. 8000e28: 4804 ldr r0, [pc, #16] @ (8000e3c <MX_COMP1_Init+0x50>)
  1756. 8000e2a: f006 fc53 bl 80076d4 <HAL_COMP_Init>
  1757. 8000e2e: 4603 mov r3, r0
  1758. 8000e30: 2b00 cmp r3, #0
  1759. 8000e32: d001 beq.n 8000e38 <MX_COMP1_Init+0x4c>
  1760. {
  1761. Error_Handler();
  1762. 8000e34: f001 f84a bl 8001ecc <Error_Handler>
  1763. }
  1764. /* USER CODE BEGIN COMP1_Init 2 */
  1765. /* USER CODE END COMP1_Init 2 */
  1766. }
  1767. 8000e38: bf00 nop
  1768. 8000e3a: bd80 pop {r7, pc}
  1769. 8000e3c: 240003b4 .word 0x240003b4
  1770. 8000e40: 5800380c .word 0x5800380c
  1771. 8000e44: 00020006 .word 0x00020006
  1772. 08000e48 <MX_CRC_Init>:
  1773. * @brief CRC Initialization Function
  1774. * @param None
  1775. * @retval None
  1776. */
  1777. static void MX_CRC_Init(void)
  1778. {
  1779. 8000e48: b580 push {r7, lr}
  1780. 8000e4a: af00 add r7, sp, #0
  1781. /* USER CODE END CRC_Init 0 */
  1782. /* USER CODE BEGIN CRC_Init 1 */
  1783. /* USER CODE END CRC_Init 1 */
  1784. hcrc.Instance = CRC;
  1785. 8000e4c: 4b11 ldr r3, [pc, #68] @ (8000e94 <MX_CRC_Init+0x4c>)
  1786. 8000e4e: 4a12 ldr r2, [pc, #72] @ (8000e98 <MX_CRC_Init+0x50>)
  1787. 8000e50: 601a str r2, [r3, #0]
  1788. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  1789. 8000e52: 4b10 ldr r3, [pc, #64] @ (8000e94 <MX_CRC_Init+0x4c>)
  1790. 8000e54: 2201 movs r2, #1
  1791. 8000e56: 711a strb r2, [r3, #4]
  1792. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  1793. 8000e58: 4b0e ldr r3, [pc, #56] @ (8000e94 <MX_CRC_Init+0x4c>)
  1794. 8000e5a: 2200 movs r2, #0
  1795. 8000e5c: 715a strb r2, [r3, #5]
  1796. hcrc.Init.GeneratingPolynomial = 4129;
  1797. 8000e5e: 4b0d ldr r3, [pc, #52] @ (8000e94 <MX_CRC_Init+0x4c>)
  1798. 8000e60: f241 0221 movw r2, #4129 @ 0x1021
  1799. 8000e64: 609a str r2, [r3, #8]
  1800. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  1801. 8000e66: 4b0b ldr r3, [pc, #44] @ (8000e94 <MX_CRC_Init+0x4c>)
  1802. 8000e68: 2208 movs r2, #8
  1803. 8000e6a: 60da str r2, [r3, #12]
  1804. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  1805. 8000e6c: 4b09 ldr r3, [pc, #36] @ (8000e94 <MX_CRC_Init+0x4c>)
  1806. 8000e6e: 2200 movs r2, #0
  1807. 8000e70: 615a str r2, [r3, #20]
  1808. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  1809. 8000e72: 4b08 ldr r3, [pc, #32] @ (8000e94 <MX_CRC_Init+0x4c>)
  1810. 8000e74: 2200 movs r2, #0
  1811. 8000e76: 619a str r2, [r3, #24]
  1812. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  1813. 8000e78: 4b06 ldr r3, [pc, #24] @ (8000e94 <MX_CRC_Init+0x4c>)
  1814. 8000e7a: 2201 movs r2, #1
  1815. 8000e7c: 621a str r2, [r3, #32]
  1816. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  1817. 8000e7e: 4805 ldr r0, [pc, #20] @ (8000e94 <MX_CRC_Init+0x4c>)
  1818. 8000e80: f006 ff12 bl 8007ca8 <HAL_CRC_Init>
  1819. 8000e84: 4603 mov r3, r0
  1820. 8000e86: 2b00 cmp r3, #0
  1821. 8000e88: d001 beq.n 8000e8e <MX_CRC_Init+0x46>
  1822. {
  1823. Error_Handler();
  1824. 8000e8a: f001 f81f bl 8001ecc <Error_Handler>
  1825. }
  1826. /* USER CODE BEGIN CRC_Init 2 */
  1827. /* USER CODE END CRC_Init 2 */
  1828. }
  1829. 8000e8e: bf00 nop
  1830. 8000e90: bd80 pop {r7, pc}
  1831. 8000e92: bf00 nop
  1832. 8000e94: 240003e0 .word 0x240003e0
  1833. 8000e98: 58024c00 .word 0x58024c00
  1834. 08000e9c <MX_DAC1_Init>:
  1835. * @brief DAC1 Initialization Function
  1836. * @param None
  1837. * @retval None
  1838. */
  1839. static void MX_DAC1_Init(void)
  1840. {
  1841. 8000e9c: b580 push {r7, lr}
  1842. 8000e9e: b08a sub sp, #40 @ 0x28
  1843. 8000ea0: af00 add r7, sp, #0
  1844. /* USER CODE BEGIN DAC1_Init 0 */
  1845. /* USER CODE END DAC1_Init 0 */
  1846. DAC_ChannelConfTypeDef sConfig = {0};
  1847. 8000ea2: 1d3b adds r3, r7, #4
  1848. 8000ea4: 2224 movs r2, #36 @ 0x24
  1849. 8000ea6: 2100 movs r1, #0
  1850. 8000ea8: 4618 mov r0, r3
  1851. 8000eaa: f017 fa2d bl 8018308 <memset>
  1852. /* USER CODE END DAC1_Init 1 */
  1853. /** DAC Initialization
  1854. */
  1855. hdac1.Instance = DAC1;
  1856. 8000eae: 4b17 ldr r3, [pc, #92] @ (8000f0c <MX_DAC1_Init+0x70>)
  1857. 8000eb0: 4a17 ldr r2, [pc, #92] @ (8000f10 <MX_DAC1_Init+0x74>)
  1858. 8000eb2: 601a str r2, [r3, #0]
  1859. if (HAL_DAC_Init(&hdac1) != HAL_OK)
  1860. 8000eb4: 4815 ldr r0, [pc, #84] @ (8000f0c <MX_DAC1_Init+0x70>)
  1861. 8000eb6: f007 f8fd bl 80080b4 <HAL_DAC_Init>
  1862. 8000eba: 4603 mov r3, r0
  1863. 8000ebc: 2b00 cmp r3, #0
  1864. 8000ebe: d001 beq.n 8000ec4 <MX_DAC1_Init+0x28>
  1865. {
  1866. Error_Handler();
  1867. 8000ec0: f001 f804 bl 8001ecc <Error_Handler>
  1868. }
  1869. /** DAC channel OUT1 config
  1870. */
  1871. sConfig.DAC_SampleAndHold = DAC_SAMPLEANDHOLD_DISABLE;
  1872. 8000ec4: 2300 movs r3, #0
  1873. 8000ec6: 607b str r3, [r7, #4]
  1874. sConfig.DAC_Trigger = DAC_TRIGGER_NONE;
  1875. 8000ec8: 2300 movs r3, #0
  1876. 8000eca: 60bb str r3, [r7, #8]
  1877. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
  1878. 8000ecc: 2300 movs r3, #0
  1879. 8000ece: 60fb str r3, [r7, #12]
  1880. sConfig.DAC_ConnectOnChipPeripheral = DAC_CHIPCONNECT_DISABLE;
  1881. 8000ed0: 2301 movs r3, #1
  1882. 8000ed2: 613b str r3, [r7, #16]
  1883. sConfig.DAC_UserTrimming = DAC_TRIMMING_FACTORY;
  1884. 8000ed4: 2300 movs r3, #0
  1885. 8000ed6: 617b str r3, [r7, #20]
  1886. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_1) != HAL_OK)
  1887. 8000ed8: 1d3b adds r3, r7, #4
  1888. 8000eda: 2200 movs r2, #0
  1889. 8000edc: 4619 mov r1, r3
  1890. 8000ede: 480b ldr r0, [pc, #44] @ (8000f0c <MX_DAC1_Init+0x70>)
  1891. 8000ee0: f007 f9ec bl 80082bc <HAL_DAC_ConfigChannel>
  1892. 8000ee4: 4603 mov r3, r0
  1893. 8000ee6: 2b00 cmp r3, #0
  1894. 8000ee8: d001 beq.n 8000eee <MX_DAC1_Init+0x52>
  1895. {
  1896. Error_Handler();
  1897. 8000eea: f000 ffef bl 8001ecc <Error_Handler>
  1898. }
  1899. /** DAC channel OUT2 config
  1900. */
  1901. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_2) != HAL_OK)
  1902. 8000eee: 1d3b adds r3, r7, #4
  1903. 8000ef0: 2210 movs r2, #16
  1904. 8000ef2: 4619 mov r1, r3
  1905. 8000ef4: 4805 ldr r0, [pc, #20] @ (8000f0c <MX_DAC1_Init+0x70>)
  1906. 8000ef6: f007 f9e1 bl 80082bc <HAL_DAC_ConfigChannel>
  1907. 8000efa: 4603 mov r3, r0
  1908. 8000efc: 2b00 cmp r3, #0
  1909. 8000efe: d001 beq.n 8000f04 <MX_DAC1_Init+0x68>
  1910. {
  1911. Error_Handler();
  1912. 8000f00: f000 ffe4 bl 8001ecc <Error_Handler>
  1913. }
  1914. /* USER CODE BEGIN DAC1_Init 2 */
  1915. /* USER CODE END DAC1_Init 2 */
  1916. }
  1917. 8000f04: bf00 nop
  1918. 8000f06: 3728 adds r7, #40 @ 0x28
  1919. 8000f08: 46bd mov sp, r7
  1920. 8000f0a: bd80 pop {r7, pc}
  1921. 8000f0c: 24000404 .word 0x24000404
  1922. 8000f10: 40007400 .word 0x40007400
  1923. 08000f14 <MX_IWDG1_Init>:
  1924. * @brief IWDG1 Initialization Function
  1925. * @param None
  1926. * @retval None
  1927. */
  1928. static void MX_IWDG1_Init(void)
  1929. {
  1930. 8000f14: b580 push {r7, lr}
  1931. 8000f16: af00 add r7, sp, #0
  1932. /* USER CODE END IWDG1_Init 0 */
  1933. /* USER CODE BEGIN IWDG1_Init 1 */
  1934. /* USER CODE END IWDG1_Init 1 */
  1935. hiwdg1.Instance = IWDG1;
  1936. 8000f18: 4b0a ldr r3, [pc, #40] @ (8000f44 <MX_IWDG1_Init+0x30>)
  1937. 8000f1a: 4a0b ldr r2, [pc, #44] @ (8000f48 <MX_IWDG1_Init+0x34>)
  1938. 8000f1c: 601a str r2, [r3, #0]
  1939. hiwdg1.Init.Prescaler = IWDG_PRESCALER_64;
  1940. 8000f1e: 4b09 ldr r3, [pc, #36] @ (8000f44 <MX_IWDG1_Init+0x30>)
  1941. 8000f20: 2204 movs r2, #4
  1942. 8000f22: 605a str r2, [r3, #4]
  1943. hiwdg1.Init.Window = 249;
  1944. 8000f24: 4b07 ldr r3, [pc, #28] @ (8000f44 <MX_IWDG1_Init+0x30>)
  1945. 8000f26: 22f9 movs r2, #249 @ 0xf9
  1946. 8000f28: 60da str r2, [r3, #12]
  1947. hiwdg1.Init.Reload = 249;
  1948. 8000f2a: 4b06 ldr r3, [pc, #24] @ (8000f44 <MX_IWDG1_Init+0x30>)
  1949. 8000f2c: 22f9 movs r2, #249 @ 0xf9
  1950. 8000f2e: 609a str r2, [r3, #8]
  1951. if (HAL_IWDG_Init(&hiwdg1) != HAL_OK)
  1952. 8000f30: 4804 ldr r0, [pc, #16] @ (8000f44 <MX_IWDG1_Init+0x30>)
  1953. 8000f32: f00a fb60 bl 800b5f6 <HAL_IWDG_Init>
  1954. 8000f36: 4603 mov r3, r0
  1955. 8000f38: 2b00 cmp r3, #0
  1956. 8000f3a: d001 beq.n 8000f40 <MX_IWDG1_Init+0x2c>
  1957. {
  1958. Error_Handler();
  1959. 8000f3c: f000 ffc6 bl 8001ecc <Error_Handler>
  1960. }
  1961. /* USER CODE BEGIN IWDG1_Init 2 */
  1962. /* USER CODE END IWDG1_Init 2 */
  1963. }
  1964. 8000f40: bf00 nop
  1965. 8000f42: bd80 pop {r7, pc}
  1966. 8000f44: 24000418 .word 0x24000418
  1967. 8000f48: 58004800 .word 0x58004800
  1968. 08000f4c <MX_RNG_Init>:
  1969. * @brief RNG Initialization Function
  1970. * @param None
  1971. * @retval None
  1972. */
  1973. static void MX_RNG_Init(void)
  1974. {
  1975. 8000f4c: b580 push {r7, lr}
  1976. 8000f4e: af00 add r7, sp, #0
  1977. /* USER CODE END RNG_Init 0 */
  1978. /* USER CODE BEGIN RNG_Init 1 */
  1979. /* USER CODE END RNG_Init 1 */
  1980. hrng.Instance = RNG;
  1981. 8000f50: 4b07 ldr r3, [pc, #28] @ (8000f70 <MX_RNG_Init+0x24>)
  1982. 8000f52: 4a08 ldr r2, [pc, #32] @ (8000f74 <MX_RNG_Init+0x28>)
  1983. 8000f54: 601a str r2, [r3, #0]
  1984. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  1985. 8000f56: 4b06 ldr r3, [pc, #24] @ (8000f70 <MX_RNG_Init+0x24>)
  1986. 8000f58: 2200 movs r2, #0
  1987. 8000f5a: 605a str r2, [r3, #4]
  1988. if (HAL_RNG_Init(&hrng) != HAL_OK)
  1989. 8000f5c: 4804 ldr r0, [pc, #16] @ (8000f70 <MX_RNG_Init+0x24>)
  1990. 8000f5e: f00e f9fd bl 800f35c <HAL_RNG_Init>
  1991. 8000f62: 4603 mov r3, r0
  1992. 8000f64: 2b00 cmp r3, #0
  1993. 8000f66: d001 beq.n 8000f6c <MX_RNG_Init+0x20>
  1994. {
  1995. Error_Handler();
  1996. 8000f68: f000 ffb0 bl 8001ecc <Error_Handler>
  1997. }
  1998. /* USER CODE BEGIN RNG_Init 2 */
  1999. /* USER CODE END RNG_Init 2 */
  2000. }
  2001. 8000f6c: bf00 nop
  2002. 8000f6e: bd80 pop {r7, pc}
  2003. 8000f70: 24000428 .word 0x24000428
  2004. 8000f74: 48021800 .word 0x48021800
  2005. 08000f78 <MX_TIM1_Init>:
  2006. * @brief TIM1 Initialization Function
  2007. * @param None
  2008. * @retval None
  2009. */
  2010. static void MX_TIM1_Init(void)
  2011. {
  2012. 8000f78: b5b0 push {r4, r5, r7, lr}
  2013. 8000f7a: b096 sub sp, #88 @ 0x58
  2014. 8000f7c: af00 add r7, sp, #0
  2015. /* USER CODE BEGIN TIM1_Init 0 */
  2016. /* USER CODE END TIM1_Init 0 */
  2017. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2018. 8000f7e: f107 034c add.w r3, r7, #76 @ 0x4c
  2019. 8000f82: 2200 movs r2, #0
  2020. 8000f84: 601a str r2, [r3, #0]
  2021. 8000f86: 605a str r2, [r3, #4]
  2022. 8000f88: 609a str r2, [r3, #8]
  2023. TIM_OC_InitTypeDef sConfigOC = {0};
  2024. 8000f8a: f107 0330 add.w r3, r7, #48 @ 0x30
  2025. 8000f8e: 2200 movs r2, #0
  2026. 8000f90: 601a str r2, [r3, #0]
  2027. 8000f92: 605a str r2, [r3, #4]
  2028. 8000f94: 609a str r2, [r3, #8]
  2029. 8000f96: 60da str r2, [r3, #12]
  2030. 8000f98: 611a str r2, [r3, #16]
  2031. 8000f9a: 615a str r2, [r3, #20]
  2032. 8000f9c: 619a str r2, [r3, #24]
  2033. TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig = {0};
  2034. 8000f9e: 1d3b adds r3, r7, #4
  2035. 8000fa0: 222c movs r2, #44 @ 0x2c
  2036. 8000fa2: 2100 movs r1, #0
  2037. 8000fa4: 4618 mov r0, r3
  2038. 8000fa6: f017 f9af bl 8018308 <memset>
  2039. /* USER CODE BEGIN TIM1_Init 1 */
  2040. /* USER CODE END TIM1_Init 1 */
  2041. htim1.Instance = TIM1;
  2042. 8000faa: 4b3e ldr r3, [pc, #248] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2043. 8000fac: 4a3e ldr r2, [pc, #248] @ (80010a8 <MX_TIM1_Init+0x130>)
  2044. 8000fae: 601a str r2, [r3, #0]
  2045. htim1.Init.Prescaler = 199;
  2046. 8000fb0: 4b3c ldr r3, [pc, #240] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2047. 8000fb2: 22c7 movs r2, #199 @ 0xc7
  2048. 8000fb4: 605a str r2, [r3, #4]
  2049. htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
  2050. 8000fb6: 4b3b ldr r3, [pc, #236] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2051. 8000fb8: 2200 movs r2, #0
  2052. 8000fba: 609a str r2, [r3, #8]
  2053. htim1.Init.Period = 999;
  2054. 8000fbc: 4b39 ldr r3, [pc, #228] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2055. 8000fbe: f240 32e7 movw r2, #999 @ 0x3e7
  2056. 8000fc2: 60da str r2, [r3, #12]
  2057. htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2058. 8000fc4: 4b37 ldr r3, [pc, #220] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2059. 8000fc6: 2200 movs r2, #0
  2060. 8000fc8: 611a str r2, [r3, #16]
  2061. htim1.Init.RepetitionCounter = 0;
  2062. 8000fca: 4b36 ldr r3, [pc, #216] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2063. 8000fcc: 2200 movs r2, #0
  2064. 8000fce: 615a str r2, [r3, #20]
  2065. htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2066. 8000fd0: 4b34 ldr r3, [pc, #208] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2067. 8000fd2: 2280 movs r2, #128 @ 0x80
  2068. 8000fd4: 619a str r2, [r3, #24]
  2069. if (HAL_TIM_PWM_Init(&htim1) != HAL_OK)
  2070. 8000fd6: 4833 ldr r0, [pc, #204] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2071. 8000fd8: f00e fb62 bl 800f6a0 <HAL_TIM_PWM_Init>
  2072. 8000fdc: 4603 mov r3, r0
  2073. 8000fde: 2b00 cmp r3, #0
  2074. 8000fe0: d001 beq.n 8000fe6 <MX_TIM1_Init+0x6e>
  2075. {
  2076. Error_Handler();
  2077. 8000fe2: f000 ff73 bl 8001ecc <Error_Handler>
  2078. }
  2079. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2080. 8000fe6: 2300 movs r3, #0
  2081. 8000fe8: 64fb str r3, [r7, #76] @ 0x4c
  2082. sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET;
  2083. 8000fea: 2300 movs r3, #0
  2084. 8000fec: 653b str r3, [r7, #80] @ 0x50
  2085. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2086. 8000fee: 2300 movs r3, #0
  2087. 8000ff0: 657b str r3, [r7, #84] @ 0x54
  2088. if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
  2089. 8000ff2: f107 034c add.w r3, r7, #76 @ 0x4c
  2090. 8000ff6: 4619 mov r1, r3
  2091. 8000ff8: 482a ldr r0, [pc, #168] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2092. 8000ffa: f010 f8b5 bl 8011168 <HAL_TIMEx_MasterConfigSynchronization>
  2093. 8000ffe: 4603 mov r3, r0
  2094. 8001000: 2b00 cmp r3, #0
  2095. 8001002: d001 beq.n 8001008 <MX_TIM1_Init+0x90>
  2096. {
  2097. Error_Handler();
  2098. 8001004: f000 ff62 bl 8001ecc <Error_Handler>
  2099. }
  2100. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2101. 8001008: 2360 movs r3, #96 @ 0x60
  2102. 800100a: 633b str r3, [r7, #48] @ 0x30
  2103. sConfigOC.Pulse = 99;
  2104. 800100c: 2363 movs r3, #99 @ 0x63
  2105. 800100e: 637b str r3, [r7, #52] @ 0x34
  2106. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2107. 8001010: 2300 movs r3, #0
  2108. 8001012: 63bb str r3, [r7, #56] @ 0x38
  2109. sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH;
  2110. 8001014: 2300 movs r3, #0
  2111. 8001016: 63fb str r3, [r7, #60] @ 0x3c
  2112. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2113. 8001018: 2300 movs r3, #0
  2114. 800101a: 643b str r3, [r7, #64] @ 0x40
  2115. sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET;
  2116. 800101c: 2300 movs r3, #0
  2117. 800101e: 647b str r3, [r7, #68] @ 0x44
  2118. sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET;
  2119. 8001020: 2300 movs r3, #0
  2120. 8001022: 64bb str r3, [r7, #72] @ 0x48
  2121. if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2122. 8001024: f107 0330 add.w r3, r7, #48 @ 0x30
  2123. 8001028: 2204 movs r2, #4
  2124. 800102a: 4619 mov r1, r3
  2125. 800102c: 481d ldr r0, [pc, #116] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2126. 800102e: f00f f889 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  2127. 8001032: 4603 mov r3, r0
  2128. 8001034: 2b00 cmp r3, #0
  2129. 8001036: d001 beq.n 800103c <MX_TIM1_Init+0xc4>
  2130. {
  2131. Error_Handler();
  2132. 8001038: f000 ff48 bl 8001ecc <Error_Handler>
  2133. }
  2134. sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE;
  2135. 800103c: 2300 movs r3, #0
  2136. 800103e: 607b str r3, [r7, #4]
  2137. sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_DISABLE;
  2138. 8001040: 2300 movs r3, #0
  2139. 8001042: 60bb str r3, [r7, #8]
  2140. sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF;
  2141. 8001044: 2300 movs r3, #0
  2142. 8001046: 60fb str r3, [r7, #12]
  2143. sBreakDeadTimeConfig.DeadTime = 0;
  2144. 8001048: 2300 movs r3, #0
  2145. 800104a: 613b str r3, [r7, #16]
  2146. sBreakDeadTimeConfig.BreakState = TIM_BREAK_DISABLE;
  2147. 800104c: 2300 movs r3, #0
  2148. 800104e: 617b str r3, [r7, #20]
  2149. sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH;
  2150. 8001050: f44f 5300 mov.w r3, #8192 @ 0x2000
  2151. 8001054: 61bb str r3, [r7, #24]
  2152. sBreakDeadTimeConfig.BreakFilter = 0;
  2153. 8001056: 2300 movs r3, #0
  2154. 8001058: 61fb str r3, [r7, #28]
  2155. sBreakDeadTimeConfig.Break2State = TIM_BREAK2_DISABLE;
  2156. 800105a: 2300 movs r3, #0
  2157. 800105c: 623b str r3, [r7, #32]
  2158. sBreakDeadTimeConfig.Break2Polarity = TIM_BREAK2POLARITY_HIGH;
  2159. 800105e: f04f 7300 mov.w r3, #33554432 @ 0x2000000
  2160. 8001062: 627b str r3, [r7, #36] @ 0x24
  2161. sBreakDeadTimeConfig.Break2Filter = 0;
  2162. 8001064: 2300 movs r3, #0
  2163. 8001066: 62bb str r3, [r7, #40] @ 0x28
  2164. sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE;
  2165. 8001068: 2300 movs r3, #0
  2166. 800106a: 62fb str r3, [r7, #44] @ 0x2c
  2167. if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK)
  2168. 800106c: 1d3b adds r3, r7, #4
  2169. 800106e: 4619 mov r1, r3
  2170. 8001070: 480c ldr r0, [pc, #48] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2171. 8001072: f010 f907 bl 8011284 <HAL_TIMEx_ConfigBreakDeadTime>
  2172. 8001076: 4603 mov r3, r0
  2173. 8001078: 2b00 cmp r3, #0
  2174. 800107a: d001 beq.n 8001080 <MX_TIM1_Init+0x108>
  2175. {
  2176. Error_Handler();
  2177. 800107c: f000 ff26 bl 8001ecc <Error_Handler>
  2178. }
  2179. /* USER CODE BEGIN TIM1_Init 2 */
  2180. memcpy(&fanTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2181. 8001080: 4b0a ldr r3, [pc, #40] @ (80010ac <MX_TIM1_Init+0x134>)
  2182. 8001082: 461d mov r5, r3
  2183. 8001084: f107 0430 add.w r4, r7, #48 @ 0x30
  2184. 8001088: cc0f ldmia r4!, {r0, r1, r2, r3}
  2185. 800108a: c50f stmia r5!, {r0, r1, r2, r3}
  2186. 800108c: e894 0007 ldmia.w r4, {r0, r1, r2}
  2187. 8001090: e885 0007 stmia.w r5, {r0, r1, r2}
  2188. /* USER CODE END TIM1_Init 2 */
  2189. HAL_TIM_MspPostInit(&htim1);
  2190. 8001094: 4803 ldr r0, [pc, #12] @ (80010a4 <MX_TIM1_Init+0x12c>)
  2191. 8001096: f003 f9c1 bl 800441c <HAL_TIM_MspPostInit>
  2192. }
  2193. 800109a: bf00 nop
  2194. 800109c: 3758 adds r7, #88 @ 0x58
  2195. 800109e: 46bd mov sp, r7
  2196. 80010a0: bdb0 pop {r4, r5, r7, pc}
  2197. 80010a2: bf00 nop
  2198. 80010a4: 2400043c .word 0x2400043c
  2199. 80010a8: 40010000 .word 0x40010000
  2200. 80010ac: 240007a4 .word 0x240007a4
  2201. 080010b0 <MX_TIM2_Init>:
  2202. * @brief TIM2 Initialization Function
  2203. * @param None
  2204. * @retval None
  2205. */
  2206. static void MX_TIM2_Init(void)
  2207. {
  2208. 80010b0: b580 push {r7, lr}
  2209. 80010b2: b08c sub sp, #48 @ 0x30
  2210. 80010b4: af00 add r7, sp, #0
  2211. /* USER CODE BEGIN TIM2_Init 0 */
  2212. /* USER CODE END TIM2_Init 0 */
  2213. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2214. 80010b6: f107 0320 add.w r3, r7, #32
  2215. 80010ba: 2200 movs r2, #0
  2216. 80010bc: 601a str r2, [r3, #0]
  2217. 80010be: 605a str r2, [r3, #4]
  2218. 80010c0: 609a str r2, [r3, #8]
  2219. 80010c2: 60da str r2, [r3, #12]
  2220. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2221. 80010c4: f107 0314 add.w r3, r7, #20
  2222. 80010c8: 2200 movs r2, #0
  2223. 80010ca: 601a str r2, [r3, #0]
  2224. 80010cc: 605a str r2, [r3, #4]
  2225. 80010ce: 609a str r2, [r3, #8]
  2226. TIM_IC_InitTypeDef sConfigIC = {0};
  2227. 80010d0: 1d3b adds r3, r7, #4
  2228. 80010d2: 2200 movs r2, #0
  2229. 80010d4: 601a str r2, [r3, #0]
  2230. 80010d6: 605a str r2, [r3, #4]
  2231. 80010d8: 609a str r2, [r3, #8]
  2232. 80010da: 60da str r2, [r3, #12]
  2233. /* USER CODE BEGIN TIM2_Init 1 */
  2234. /* USER CODE END TIM2_Init 1 */
  2235. htim2.Instance = TIM2;
  2236. 80010dc: 4b32 ldr r3, [pc, #200] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2237. 80010de: f04f 4280 mov.w r2, #1073741824 @ 0x40000000
  2238. 80010e2: 601a str r2, [r3, #0]
  2239. htim2.Init.Prescaler = 9999;
  2240. 80010e4: 4b30 ldr r3, [pc, #192] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2241. 80010e6: f242 720f movw r2, #9999 @ 0x270f
  2242. 80010ea: 605a str r2, [r3, #4]
  2243. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  2244. 80010ec: 4b2e ldr r3, [pc, #184] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2245. 80010ee: 2200 movs r2, #0
  2246. 80010f0: 609a str r2, [r3, #8]
  2247. htim2.Init.Period = 2999;
  2248. 80010f2: 4b2d ldr r3, [pc, #180] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2249. 80010f4: f640 32b7 movw r2, #2999 @ 0xbb7
  2250. 80010f8: 60da str r2, [r3, #12]
  2251. htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2252. 80010fa: 4b2b ldr r3, [pc, #172] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2253. 80010fc: f44f 7280 mov.w r2, #256 @ 0x100
  2254. 8001100: 611a str r2, [r3, #16]
  2255. htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2256. 8001102: 4b29 ldr r3, [pc, #164] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2257. 8001104: 2280 movs r2, #128 @ 0x80
  2258. 8001106: 619a str r2, [r3, #24]
  2259. if (HAL_TIM_Base_Init(&htim2) != HAL_OK)
  2260. 8001108: 4827 ldr r0, [pc, #156] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2261. 800110a: f00e f989 bl 800f420 <HAL_TIM_Base_Init>
  2262. 800110e: 4603 mov r3, r0
  2263. 8001110: 2b00 cmp r3, #0
  2264. 8001112: d001 beq.n 8001118 <MX_TIM2_Init+0x68>
  2265. {
  2266. Error_Handler();
  2267. 8001114: f000 feda bl 8001ecc <Error_Handler>
  2268. }
  2269. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2270. 8001118: f44f 5380 mov.w r3, #4096 @ 0x1000
  2271. 800111c: 623b str r3, [r7, #32]
  2272. if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK)
  2273. 800111e: f107 0320 add.w r3, r7, #32
  2274. 8001122: 4619 mov r1, r3
  2275. 8001124: 4820 ldr r0, [pc, #128] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2276. 8001126: f00f f921 bl 801036c <HAL_TIM_ConfigClockSource>
  2277. 800112a: 4603 mov r3, r0
  2278. 800112c: 2b00 cmp r3, #0
  2279. 800112e: d001 beq.n 8001134 <MX_TIM2_Init+0x84>
  2280. {
  2281. Error_Handler();
  2282. 8001130: f000 fecc bl 8001ecc <Error_Handler>
  2283. }
  2284. if (HAL_TIM_IC_Init(&htim2) != HAL_OK)
  2285. 8001134: 481c ldr r0, [pc, #112] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2286. 8001136: f00e fcaf bl 800fa98 <HAL_TIM_IC_Init>
  2287. 800113a: 4603 mov r3, r0
  2288. 800113c: 2b00 cmp r3, #0
  2289. 800113e: d001 beq.n 8001144 <MX_TIM2_Init+0x94>
  2290. {
  2291. Error_Handler();
  2292. 8001140: f000 fec4 bl 8001ecc <Error_Handler>
  2293. }
  2294. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2295. 8001144: 2320 movs r3, #32
  2296. 8001146: 617b str r3, [r7, #20]
  2297. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_ENABLE;
  2298. 8001148: 2380 movs r3, #128 @ 0x80
  2299. 800114a: 61fb str r3, [r7, #28]
  2300. if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
  2301. 800114c: f107 0314 add.w r3, r7, #20
  2302. 8001150: 4619 mov r1, r3
  2303. 8001152: 4815 ldr r0, [pc, #84] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2304. 8001154: f010 f808 bl 8011168 <HAL_TIMEx_MasterConfigSynchronization>
  2305. 8001158: 4603 mov r3, r0
  2306. 800115a: 2b00 cmp r3, #0
  2307. 800115c: d001 beq.n 8001162 <MX_TIM2_Init+0xb2>
  2308. {
  2309. Error_Handler();
  2310. 800115e: f000 feb5 bl 8001ecc <Error_Handler>
  2311. }
  2312. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING;
  2313. 8001162: 2300 movs r3, #0
  2314. 8001164: 607b str r3, [r7, #4]
  2315. sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI;
  2316. 8001166: 2301 movs r3, #1
  2317. 8001168: 60bb str r3, [r7, #8]
  2318. sConfigIC.ICPrescaler = TIM_ICPSC_DIV1;
  2319. 800116a: 2300 movs r3, #0
  2320. 800116c: 60fb str r3, [r7, #12]
  2321. sConfigIC.ICFilter = 0;
  2322. 800116e: 2300 movs r3, #0
  2323. 8001170: 613b str r3, [r7, #16]
  2324. if (HAL_TIM_IC_ConfigChannel(&htim2, &sConfigIC, TIM_CHANNEL_3) != HAL_OK)
  2325. 8001172: 1d3b adds r3, r7, #4
  2326. 8001174: 2208 movs r2, #8
  2327. 8001176: 4619 mov r1, r3
  2328. 8001178: 480b ldr r0, [pc, #44] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2329. 800117a: f00e ff46 bl 801000a <HAL_TIM_IC_ConfigChannel>
  2330. 800117e: 4603 mov r3, r0
  2331. 8001180: 2b00 cmp r3, #0
  2332. 8001182: d001 beq.n 8001188 <MX_TIM2_Init+0xd8>
  2333. {
  2334. Error_Handler();
  2335. 8001184: f000 fea2 bl 8001ecc <Error_Handler>
  2336. }
  2337. if (HAL_TIM_IC_ConfigChannel(&htim2, &sConfigIC, TIM_CHANNEL_4) != HAL_OK)
  2338. 8001188: 1d3b adds r3, r7, #4
  2339. 800118a: 220c movs r2, #12
  2340. 800118c: 4619 mov r1, r3
  2341. 800118e: 4806 ldr r0, [pc, #24] @ (80011a8 <MX_TIM2_Init+0xf8>)
  2342. 8001190: f00e ff3b bl 801000a <HAL_TIM_IC_ConfigChannel>
  2343. 8001194: 4603 mov r3, r0
  2344. 8001196: 2b00 cmp r3, #0
  2345. 8001198: d001 beq.n 800119e <MX_TIM2_Init+0xee>
  2346. {
  2347. Error_Handler();
  2348. 800119a: f000 fe97 bl 8001ecc <Error_Handler>
  2349. }
  2350. /* USER CODE BEGIN TIM2_Init 2 */
  2351. /* USER CODE END TIM2_Init 2 */
  2352. }
  2353. 800119e: bf00 nop
  2354. 80011a0: 3730 adds r7, #48 @ 0x30
  2355. 80011a2: 46bd mov sp, r7
  2356. 80011a4: bd80 pop {r7, pc}
  2357. 80011a6: bf00 nop
  2358. 80011a8: 24000488 .word 0x24000488
  2359. 080011ac <MX_TIM3_Init>:
  2360. * @brief TIM3 Initialization Function
  2361. * @param None
  2362. * @retval None
  2363. */
  2364. static void MX_TIM3_Init(void)
  2365. {
  2366. 80011ac: b5b0 push {r4, r5, r7, lr}
  2367. 80011ae: b08a sub sp, #40 @ 0x28
  2368. 80011b0: af00 add r7, sp, #0
  2369. /* USER CODE BEGIN TIM3_Init 0 */
  2370. /* USER CODE END TIM3_Init 0 */
  2371. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2372. 80011b2: f107 031c add.w r3, r7, #28
  2373. 80011b6: 2200 movs r2, #0
  2374. 80011b8: 601a str r2, [r3, #0]
  2375. 80011ba: 605a str r2, [r3, #4]
  2376. 80011bc: 609a str r2, [r3, #8]
  2377. TIM_OC_InitTypeDef sConfigOC = {0};
  2378. 80011be: 463b mov r3, r7
  2379. 80011c0: 2200 movs r2, #0
  2380. 80011c2: 601a str r2, [r3, #0]
  2381. 80011c4: 605a str r2, [r3, #4]
  2382. 80011c6: 609a str r2, [r3, #8]
  2383. 80011c8: 60da str r2, [r3, #12]
  2384. 80011ca: 611a str r2, [r3, #16]
  2385. 80011cc: 615a str r2, [r3, #20]
  2386. 80011ce: 619a str r2, [r3, #24]
  2387. /* USER CODE BEGIN TIM3_Init 1 */
  2388. /* USER CODE END TIM3_Init 1 */
  2389. htim3.Instance = TIM3;
  2390. 80011d0: 4b48 ldr r3, [pc, #288] @ (80012f4 <MX_TIM3_Init+0x148>)
  2391. 80011d2: 4a49 ldr r2, [pc, #292] @ (80012f8 <MX_TIM3_Init+0x14c>)
  2392. 80011d4: 601a str r2, [r3, #0]
  2393. htim3.Init.Prescaler = 199;
  2394. 80011d6: 4b47 ldr r3, [pc, #284] @ (80012f4 <MX_TIM3_Init+0x148>)
  2395. 80011d8: 22c7 movs r2, #199 @ 0xc7
  2396. 80011da: 605a str r2, [r3, #4]
  2397. htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  2398. 80011dc: 4b45 ldr r3, [pc, #276] @ (80012f4 <MX_TIM3_Init+0x148>)
  2399. 80011de: 2200 movs r2, #0
  2400. 80011e0: 609a str r2, [r3, #8]
  2401. htim3.Init.Period = 999;
  2402. 80011e2: 4b44 ldr r3, [pc, #272] @ (80012f4 <MX_TIM3_Init+0x148>)
  2403. 80011e4: f240 32e7 movw r2, #999 @ 0x3e7
  2404. 80011e8: 60da str r2, [r3, #12]
  2405. htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2406. 80011ea: 4b42 ldr r3, [pc, #264] @ (80012f4 <MX_TIM3_Init+0x148>)
  2407. 80011ec: 2200 movs r2, #0
  2408. 80011ee: 611a str r2, [r3, #16]
  2409. htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2410. 80011f0: 4b40 ldr r3, [pc, #256] @ (80012f4 <MX_TIM3_Init+0x148>)
  2411. 80011f2: 2280 movs r2, #128 @ 0x80
  2412. 80011f4: 619a str r2, [r3, #24]
  2413. if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
  2414. 80011f6: 483f ldr r0, [pc, #252] @ (80012f4 <MX_TIM3_Init+0x148>)
  2415. 80011f8: f00e fa52 bl 800f6a0 <HAL_TIM_PWM_Init>
  2416. 80011fc: 4603 mov r3, r0
  2417. 80011fe: 2b00 cmp r3, #0
  2418. 8001200: d001 beq.n 8001206 <MX_TIM3_Init+0x5a>
  2419. {
  2420. Error_Handler();
  2421. 8001202: f000 fe63 bl 8001ecc <Error_Handler>
  2422. }
  2423. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2424. 8001206: 2300 movs r3, #0
  2425. 8001208: 61fb str r3, [r7, #28]
  2426. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2427. 800120a: 2300 movs r3, #0
  2428. 800120c: 627b str r3, [r7, #36] @ 0x24
  2429. if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
  2430. 800120e: f107 031c add.w r3, r7, #28
  2431. 8001212: 4619 mov r1, r3
  2432. 8001214: 4837 ldr r0, [pc, #220] @ (80012f4 <MX_TIM3_Init+0x148>)
  2433. 8001216: f00f ffa7 bl 8011168 <HAL_TIMEx_MasterConfigSynchronization>
  2434. 800121a: 4603 mov r3, r0
  2435. 800121c: 2b00 cmp r3, #0
  2436. 800121e: d001 beq.n 8001224 <MX_TIM3_Init+0x78>
  2437. {
  2438. Error_Handler();
  2439. 8001220: f000 fe54 bl 8001ecc <Error_Handler>
  2440. }
  2441. sConfigOC.OCMode = TIM_OCMODE_COMBINED_PWM1;
  2442. 8001224: 4b35 ldr r3, [pc, #212] @ (80012fc <MX_TIM3_Init+0x150>)
  2443. 8001226: 603b str r3, [r7, #0]
  2444. sConfigOC.Pulse = 500;
  2445. 8001228: f44f 73fa mov.w r3, #500 @ 0x1f4
  2446. 800122c: 607b str r3, [r7, #4]
  2447. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2448. 800122e: 2300 movs r3, #0
  2449. 8001230: 60bb str r3, [r7, #8]
  2450. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2451. 8001232: 2300 movs r3, #0
  2452. 8001234: 613b str r3, [r7, #16]
  2453. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK)
  2454. 8001236: 463b mov r3, r7
  2455. 8001238: 2200 movs r2, #0
  2456. 800123a: 4619 mov r1, r3
  2457. 800123c: 482d ldr r0, [pc, #180] @ (80012f4 <MX_TIM3_Init+0x148>)
  2458. 800123e: f00e ff81 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  2459. 8001242: 4603 mov r3, r0
  2460. 8001244: 2b00 cmp r3, #0
  2461. 8001246: d001 beq.n 800124c <MX_TIM3_Init+0xa0>
  2462. {
  2463. Error_Handler();
  2464. 8001248: f000 fe40 bl 8001ecc <Error_Handler>
  2465. }
  2466. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_1);
  2467. 800124c: 4b29 ldr r3, [pc, #164] @ (80012f4 <MX_TIM3_Init+0x148>)
  2468. 800124e: 681b ldr r3, [r3, #0]
  2469. 8001250: 699a ldr r2, [r3, #24]
  2470. 8001252: 4b28 ldr r3, [pc, #160] @ (80012f4 <MX_TIM3_Init+0x148>)
  2471. 8001254: 681b ldr r3, [r3, #0]
  2472. 8001256: f022 0208 bic.w r2, r2, #8
  2473. 800125a: 619a str r2, [r3, #24]
  2474. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2475. 800125c: 2360 movs r3, #96 @ 0x60
  2476. 800125e: 603b str r3, [r7, #0]
  2477. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2478. 8001260: 463b mov r3, r7
  2479. 8001262: 2204 movs r2, #4
  2480. 8001264: 4619 mov r1, r3
  2481. 8001266: 4823 ldr r0, [pc, #140] @ (80012f4 <MX_TIM3_Init+0x148>)
  2482. 8001268: f00e ff6c bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  2483. 800126c: 4603 mov r3, r0
  2484. 800126e: 2b00 cmp r3, #0
  2485. 8001270: d001 beq.n 8001276 <MX_TIM3_Init+0xca>
  2486. {
  2487. Error_Handler();
  2488. 8001272: f000 fe2b bl 8001ecc <Error_Handler>
  2489. }
  2490. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_2);
  2491. 8001276: 4b1f ldr r3, [pc, #124] @ (80012f4 <MX_TIM3_Init+0x148>)
  2492. 8001278: 681b ldr r3, [r3, #0]
  2493. 800127a: 699a ldr r2, [r3, #24]
  2494. 800127c: 4b1d ldr r3, [pc, #116] @ (80012f4 <MX_TIM3_Init+0x148>)
  2495. 800127e: 681b ldr r3, [r3, #0]
  2496. 8001280: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2497. 8001284: 619a str r2, [r3, #24]
  2498. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_3) != HAL_OK)
  2499. 8001286: 463b mov r3, r7
  2500. 8001288: 2208 movs r2, #8
  2501. 800128a: 4619 mov r1, r3
  2502. 800128c: 4819 ldr r0, [pc, #100] @ (80012f4 <MX_TIM3_Init+0x148>)
  2503. 800128e: f00e ff59 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  2504. 8001292: 4603 mov r3, r0
  2505. 8001294: 2b00 cmp r3, #0
  2506. 8001296: d001 beq.n 800129c <MX_TIM3_Init+0xf0>
  2507. {
  2508. Error_Handler();
  2509. 8001298: f000 fe18 bl 8001ecc <Error_Handler>
  2510. }
  2511. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_3);
  2512. 800129c: 4b15 ldr r3, [pc, #84] @ (80012f4 <MX_TIM3_Init+0x148>)
  2513. 800129e: 681b ldr r3, [r3, #0]
  2514. 80012a0: 69da ldr r2, [r3, #28]
  2515. 80012a2: 4b14 ldr r3, [pc, #80] @ (80012f4 <MX_TIM3_Init+0x148>)
  2516. 80012a4: 681b ldr r3, [r3, #0]
  2517. 80012a6: f022 0208 bic.w r2, r2, #8
  2518. 80012aa: 61da str r2, [r3, #28]
  2519. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
  2520. 80012ac: 463b mov r3, r7
  2521. 80012ae: 220c movs r2, #12
  2522. 80012b0: 4619 mov r1, r3
  2523. 80012b2: 4810 ldr r0, [pc, #64] @ (80012f4 <MX_TIM3_Init+0x148>)
  2524. 80012b4: f00e ff46 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  2525. 80012b8: 4603 mov r3, r0
  2526. 80012ba: 2b00 cmp r3, #0
  2527. 80012bc: d001 beq.n 80012c2 <MX_TIM3_Init+0x116>
  2528. {
  2529. Error_Handler();
  2530. 80012be: f000 fe05 bl 8001ecc <Error_Handler>
  2531. }
  2532. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_4);
  2533. 80012c2: 4b0c ldr r3, [pc, #48] @ (80012f4 <MX_TIM3_Init+0x148>)
  2534. 80012c4: 681b ldr r3, [r3, #0]
  2535. 80012c6: 69da ldr r2, [r3, #28]
  2536. 80012c8: 4b0a ldr r3, [pc, #40] @ (80012f4 <MX_TIM3_Init+0x148>)
  2537. 80012ca: 681b ldr r3, [r3, #0]
  2538. 80012cc: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2539. 80012d0: 61da str r2, [r3, #28]
  2540. /* USER CODE BEGIN TIM3_Init 2 */
  2541. memcpy(&motorXYTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2542. 80012d2: 4b0b ldr r3, [pc, #44] @ (8001300 <MX_TIM3_Init+0x154>)
  2543. 80012d4: 461d mov r5, r3
  2544. 80012d6: 463c mov r4, r7
  2545. 80012d8: cc0f ldmia r4!, {r0, r1, r2, r3}
  2546. 80012da: c50f stmia r5!, {r0, r1, r2, r3}
  2547. 80012dc: e894 0007 ldmia.w r4, {r0, r1, r2}
  2548. 80012e0: e885 0007 stmia.w r5, {r0, r1, r2}
  2549. /* USER CODE END TIM3_Init 2 */
  2550. HAL_TIM_MspPostInit(&htim3);
  2551. 80012e4: 4803 ldr r0, [pc, #12] @ (80012f4 <MX_TIM3_Init+0x148>)
  2552. 80012e6: f003 f899 bl 800441c <HAL_TIM_MspPostInit>
  2553. }
  2554. 80012ea: bf00 nop
  2555. 80012ec: 3728 adds r7, #40 @ 0x28
  2556. 80012ee: 46bd mov sp, r7
  2557. 80012f0: bdb0 pop {r4, r5, r7, pc}
  2558. 80012f2: bf00 nop
  2559. 80012f4: 240004d4 .word 0x240004d4
  2560. 80012f8: 40000400 .word 0x40000400
  2561. 80012fc: 00010040 .word 0x00010040
  2562. 8001300: 240007c0 .word 0x240007c0
  2563. 08001304 <MX_TIM4_Init>:
  2564. * @brief TIM4 Initialization Function
  2565. * @param None
  2566. * @retval None
  2567. */
  2568. static void MX_TIM4_Init(void)
  2569. {
  2570. 8001304: b580 push {r7, lr}
  2571. 8001306: b08c sub sp, #48 @ 0x30
  2572. 8001308: af00 add r7, sp, #0
  2573. /* USER CODE BEGIN TIM4_Init 0 */
  2574. /* USER CODE END TIM4_Init 0 */
  2575. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2576. 800130a: f107 0320 add.w r3, r7, #32
  2577. 800130e: 2200 movs r2, #0
  2578. 8001310: 601a str r2, [r3, #0]
  2579. 8001312: 605a str r2, [r3, #4]
  2580. 8001314: 609a str r2, [r3, #8]
  2581. 8001316: 60da str r2, [r3, #12]
  2582. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2583. 8001318: f107 0314 add.w r3, r7, #20
  2584. 800131c: 2200 movs r2, #0
  2585. 800131e: 601a str r2, [r3, #0]
  2586. 8001320: 605a str r2, [r3, #4]
  2587. 8001322: 609a str r2, [r3, #8]
  2588. TIM_IC_InitTypeDef sConfigIC = {0};
  2589. 8001324: 1d3b adds r3, r7, #4
  2590. 8001326: 2200 movs r2, #0
  2591. 8001328: 601a str r2, [r3, #0]
  2592. 800132a: 605a str r2, [r3, #4]
  2593. 800132c: 609a str r2, [r3, #8]
  2594. 800132e: 60da str r2, [r3, #12]
  2595. /* USER CODE BEGIN TIM4_Init 1 */
  2596. /* USER CODE END TIM4_Init 1 */
  2597. htim4.Instance = TIM4;
  2598. 8001330: 4b31 ldr r3, [pc, #196] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2599. 8001332: 4a32 ldr r2, [pc, #200] @ (80013fc <MX_TIM4_Init+0xf8>)
  2600. 8001334: 601a str r2, [r3, #0]
  2601. htim4.Init.Prescaler = 9999;
  2602. 8001336: 4b30 ldr r3, [pc, #192] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2603. 8001338: f242 720f movw r2, #9999 @ 0x270f
  2604. 800133c: 605a str r2, [r3, #4]
  2605. htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
  2606. 800133e: 4b2e ldr r3, [pc, #184] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2607. 8001340: 2200 movs r2, #0
  2608. 8001342: 609a str r2, [r3, #8]
  2609. htim4.Init.Period = 2999;
  2610. 8001344: 4b2c ldr r3, [pc, #176] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2611. 8001346: f640 32b7 movw r2, #2999 @ 0xbb7
  2612. 800134a: 60da str r2, [r3, #12]
  2613. htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2614. 800134c: 4b2a ldr r3, [pc, #168] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2615. 800134e: f44f 7280 mov.w r2, #256 @ 0x100
  2616. 8001352: 611a str r2, [r3, #16]
  2617. htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2618. 8001354: 4b28 ldr r3, [pc, #160] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2619. 8001356: 2280 movs r2, #128 @ 0x80
  2620. 8001358: 619a str r2, [r3, #24]
  2621. if (HAL_TIM_Base_Init(&htim4) != HAL_OK)
  2622. 800135a: 4827 ldr r0, [pc, #156] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2623. 800135c: f00e f860 bl 800f420 <HAL_TIM_Base_Init>
  2624. 8001360: 4603 mov r3, r0
  2625. 8001362: 2b00 cmp r3, #0
  2626. 8001364: d001 beq.n 800136a <MX_TIM4_Init+0x66>
  2627. {
  2628. Error_Handler();
  2629. 8001366: f000 fdb1 bl 8001ecc <Error_Handler>
  2630. }
  2631. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2632. 800136a: f44f 5380 mov.w r3, #4096 @ 0x1000
  2633. 800136e: 623b str r3, [r7, #32]
  2634. if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
  2635. 8001370: f107 0320 add.w r3, r7, #32
  2636. 8001374: 4619 mov r1, r3
  2637. 8001376: 4820 ldr r0, [pc, #128] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2638. 8001378: f00e fff8 bl 801036c <HAL_TIM_ConfigClockSource>
  2639. 800137c: 4603 mov r3, r0
  2640. 800137e: 2b00 cmp r3, #0
  2641. 8001380: d001 beq.n 8001386 <MX_TIM4_Init+0x82>
  2642. {
  2643. Error_Handler();
  2644. 8001382: f000 fda3 bl 8001ecc <Error_Handler>
  2645. }
  2646. if (HAL_TIM_IC_Init(&htim4) != HAL_OK)
  2647. 8001386: 481c ldr r0, [pc, #112] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2648. 8001388: f00e fb86 bl 800fa98 <HAL_TIM_IC_Init>
  2649. 800138c: 4603 mov r3, r0
  2650. 800138e: 2b00 cmp r3, #0
  2651. 8001390: d001 beq.n 8001396 <MX_TIM4_Init+0x92>
  2652. {
  2653. Error_Handler();
  2654. 8001392: f000 fd9b bl 8001ecc <Error_Handler>
  2655. }
  2656. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2657. 8001396: 2300 movs r3, #0
  2658. 8001398: 617b str r3, [r7, #20]
  2659. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2660. 800139a: 2300 movs r3, #0
  2661. 800139c: 61fb str r3, [r7, #28]
  2662. if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK)
  2663. 800139e: f107 0314 add.w r3, r7, #20
  2664. 80013a2: 4619 mov r1, r3
  2665. 80013a4: 4814 ldr r0, [pc, #80] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2666. 80013a6: f00f fedf bl 8011168 <HAL_TIMEx_MasterConfigSynchronization>
  2667. 80013aa: 4603 mov r3, r0
  2668. 80013ac: 2b00 cmp r3, #0
  2669. 80013ae: d001 beq.n 80013b4 <MX_TIM4_Init+0xb0>
  2670. {
  2671. Error_Handler();
  2672. 80013b0: f000 fd8c bl 8001ecc <Error_Handler>
  2673. }
  2674. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING;
  2675. 80013b4: 2300 movs r3, #0
  2676. 80013b6: 607b str r3, [r7, #4]
  2677. sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI;
  2678. 80013b8: 2301 movs r3, #1
  2679. 80013ba: 60bb str r3, [r7, #8]
  2680. sConfigIC.ICPrescaler = TIM_ICPSC_DIV1;
  2681. 80013bc: 2300 movs r3, #0
  2682. 80013be: 60fb str r3, [r7, #12]
  2683. sConfigIC.ICFilter = 0;
  2684. 80013c0: 2300 movs r3, #0
  2685. 80013c2: 613b str r3, [r7, #16]
  2686. if (HAL_TIM_IC_ConfigChannel(&htim4, &sConfigIC, TIM_CHANNEL_3) != HAL_OK)
  2687. 80013c4: 1d3b adds r3, r7, #4
  2688. 80013c6: 2208 movs r2, #8
  2689. 80013c8: 4619 mov r1, r3
  2690. 80013ca: 480b ldr r0, [pc, #44] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2691. 80013cc: f00e fe1d bl 801000a <HAL_TIM_IC_ConfigChannel>
  2692. 80013d0: 4603 mov r3, r0
  2693. 80013d2: 2b00 cmp r3, #0
  2694. 80013d4: d001 beq.n 80013da <MX_TIM4_Init+0xd6>
  2695. {
  2696. Error_Handler();
  2697. 80013d6: f000 fd79 bl 8001ecc <Error_Handler>
  2698. }
  2699. if (HAL_TIM_IC_ConfigChannel(&htim4, &sConfigIC, TIM_CHANNEL_4) != HAL_OK)
  2700. 80013da: 1d3b adds r3, r7, #4
  2701. 80013dc: 220c movs r2, #12
  2702. 80013de: 4619 mov r1, r3
  2703. 80013e0: 4805 ldr r0, [pc, #20] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2704. 80013e2: f00e fe12 bl 801000a <HAL_TIM_IC_ConfigChannel>
  2705. 80013e6: 4603 mov r3, r0
  2706. 80013e8: 2b00 cmp r3, #0
  2707. 80013ea: d001 beq.n 80013f0 <MX_TIM4_Init+0xec>
  2708. {
  2709. Error_Handler();
  2710. 80013ec: f000 fd6e bl 8001ecc <Error_Handler>
  2711. }
  2712. /* USER CODE BEGIN TIM4_Init 2 */
  2713. /* USER CODE END TIM4_Init 2 */
  2714. }
  2715. 80013f0: bf00 nop
  2716. 80013f2: 3730 adds r7, #48 @ 0x30
  2717. 80013f4: 46bd mov sp, r7
  2718. 80013f6: bd80 pop {r7, pc}
  2719. 80013f8: 24000520 .word 0x24000520
  2720. 80013fc: 40000800 .word 0x40000800
  2721. 08001400 <MX_TIM8_Init>:
  2722. * @brief TIM8 Initialization Function
  2723. * @param None
  2724. * @retval None
  2725. */
  2726. static void MX_TIM8_Init(void)
  2727. {
  2728. 8001400: b580 push {r7, lr}
  2729. 8001402: b088 sub sp, #32
  2730. 8001404: af00 add r7, sp, #0
  2731. /* USER CODE BEGIN TIM8_Init 0 */
  2732. /* USER CODE END TIM8_Init 0 */
  2733. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2734. 8001406: f107 0310 add.w r3, r7, #16
  2735. 800140a: 2200 movs r2, #0
  2736. 800140c: 601a str r2, [r3, #0]
  2737. 800140e: 605a str r2, [r3, #4]
  2738. 8001410: 609a str r2, [r3, #8]
  2739. 8001412: 60da str r2, [r3, #12]
  2740. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2741. 8001414: 1d3b adds r3, r7, #4
  2742. 8001416: 2200 movs r2, #0
  2743. 8001418: 601a str r2, [r3, #0]
  2744. 800141a: 605a str r2, [r3, #4]
  2745. 800141c: 609a str r2, [r3, #8]
  2746. /* USER CODE BEGIN TIM8_Init 1 */
  2747. /* USER CODE END TIM8_Init 1 */
  2748. htim8.Instance = TIM8;
  2749. 800141e: 4b21 ldr r3, [pc, #132] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2750. 8001420: 4a21 ldr r2, [pc, #132] @ (80014a8 <MX_TIM8_Init+0xa8>)
  2751. 8001422: 601a str r2, [r3, #0]
  2752. htim8.Init.Prescaler = 9999;
  2753. 8001424: 4b1f ldr r3, [pc, #124] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2754. 8001426: f242 720f movw r2, #9999 @ 0x270f
  2755. 800142a: 605a str r2, [r3, #4]
  2756. htim8.Init.CounterMode = TIM_COUNTERMODE_UP;
  2757. 800142c: 4b1d ldr r3, [pc, #116] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2758. 800142e: 2200 movs r2, #0
  2759. 8001430: 609a str r2, [r3, #8]
  2760. htim8.Init.Period = 999;
  2761. 8001432: 4b1c ldr r3, [pc, #112] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2762. 8001434: f240 32e7 movw r2, #999 @ 0x3e7
  2763. 8001438: 60da str r2, [r3, #12]
  2764. htim8.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2765. 800143a: 4b1a ldr r3, [pc, #104] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2766. 800143c: f44f 7280 mov.w r2, #256 @ 0x100
  2767. 8001440: 611a str r2, [r3, #16]
  2768. htim8.Init.RepetitionCounter = 0;
  2769. 8001442: 4b18 ldr r3, [pc, #96] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2770. 8001444: 2200 movs r2, #0
  2771. 8001446: 615a str r2, [r3, #20]
  2772. htim8.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2773. 8001448: 4b16 ldr r3, [pc, #88] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2774. 800144a: 2280 movs r2, #128 @ 0x80
  2775. 800144c: 619a str r2, [r3, #24]
  2776. if (HAL_TIM_Base_Init(&htim8) != HAL_OK)
  2777. 800144e: 4815 ldr r0, [pc, #84] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2778. 8001450: f00d ffe6 bl 800f420 <HAL_TIM_Base_Init>
  2779. 8001454: 4603 mov r3, r0
  2780. 8001456: 2b00 cmp r3, #0
  2781. 8001458: d001 beq.n 800145e <MX_TIM8_Init+0x5e>
  2782. {
  2783. Error_Handler();
  2784. 800145a: f000 fd37 bl 8001ecc <Error_Handler>
  2785. }
  2786. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2787. 800145e: f44f 5380 mov.w r3, #4096 @ 0x1000
  2788. 8001462: 613b str r3, [r7, #16]
  2789. if (HAL_TIM_ConfigClockSource(&htim8, &sClockSourceConfig) != HAL_OK)
  2790. 8001464: f107 0310 add.w r3, r7, #16
  2791. 8001468: 4619 mov r1, r3
  2792. 800146a: 480e ldr r0, [pc, #56] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2793. 800146c: f00e ff7e bl 801036c <HAL_TIM_ConfigClockSource>
  2794. 8001470: 4603 mov r3, r0
  2795. 8001472: 2b00 cmp r3, #0
  2796. 8001474: d001 beq.n 800147a <MX_TIM8_Init+0x7a>
  2797. {
  2798. Error_Handler();
  2799. 8001476: f000 fd29 bl 8001ecc <Error_Handler>
  2800. }
  2801. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2802. 800147a: 2320 movs r3, #32
  2803. 800147c: 607b str r3, [r7, #4]
  2804. sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET;
  2805. 800147e: 2300 movs r3, #0
  2806. 8001480: 60bb str r3, [r7, #8]
  2807. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_ENABLE;
  2808. 8001482: 2380 movs r3, #128 @ 0x80
  2809. 8001484: 60fb str r3, [r7, #12]
  2810. if (HAL_TIMEx_MasterConfigSynchronization(&htim8, &sMasterConfig) != HAL_OK)
  2811. 8001486: 1d3b adds r3, r7, #4
  2812. 8001488: 4619 mov r1, r3
  2813. 800148a: 4806 ldr r0, [pc, #24] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2814. 800148c: f00f fe6c bl 8011168 <HAL_TIMEx_MasterConfigSynchronization>
  2815. 8001490: 4603 mov r3, r0
  2816. 8001492: 2b00 cmp r3, #0
  2817. 8001494: d001 beq.n 800149a <MX_TIM8_Init+0x9a>
  2818. {
  2819. Error_Handler();
  2820. 8001496: f000 fd19 bl 8001ecc <Error_Handler>
  2821. }
  2822. /* USER CODE BEGIN TIM8_Init 2 */
  2823. /* USER CODE END TIM8_Init 2 */
  2824. }
  2825. 800149a: bf00 nop
  2826. 800149c: 3720 adds r7, #32
  2827. 800149e: 46bd mov sp, r7
  2828. 80014a0: bd80 pop {r7, pc}
  2829. 80014a2: bf00 nop
  2830. 80014a4: 2400056c .word 0x2400056c
  2831. 80014a8: 40010400 .word 0x40010400
  2832. 080014ac <MX_UART8_Init>:
  2833. * @brief UART8 Initialization Function
  2834. * @param None
  2835. * @retval None
  2836. */
  2837. static void MX_UART8_Init(void)
  2838. {
  2839. 80014ac: b580 push {r7, lr}
  2840. 80014ae: af00 add r7, sp, #0
  2841. /* USER CODE END UART8_Init 0 */
  2842. /* USER CODE BEGIN UART8_Init 1 */
  2843. /* USER CODE END UART8_Init 1 */
  2844. huart8.Instance = UART8;
  2845. 80014b0: 4b22 ldr r3, [pc, #136] @ (800153c <MX_UART8_Init+0x90>)
  2846. 80014b2: 4a23 ldr r2, [pc, #140] @ (8001540 <MX_UART8_Init+0x94>)
  2847. 80014b4: 601a str r2, [r3, #0]
  2848. huart8.Init.BaudRate = 115200;
  2849. 80014b6: 4b21 ldr r3, [pc, #132] @ (800153c <MX_UART8_Init+0x90>)
  2850. 80014b8: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  2851. 80014bc: 605a str r2, [r3, #4]
  2852. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  2853. 80014be: 4b1f ldr r3, [pc, #124] @ (800153c <MX_UART8_Init+0x90>)
  2854. 80014c0: 2200 movs r2, #0
  2855. 80014c2: 609a str r2, [r3, #8]
  2856. huart8.Init.StopBits = UART_STOPBITS_1;
  2857. 80014c4: 4b1d ldr r3, [pc, #116] @ (800153c <MX_UART8_Init+0x90>)
  2858. 80014c6: 2200 movs r2, #0
  2859. 80014c8: 60da str r2, [r3, #12]
  2860. huart8.Init.Parity = UART_PARITY_NONE;
  2861. 80014ca: 4b1c ldr r3, [pc, #112] @ (800153c <MX_UART8_Init+0x90>)
  2862. 80014cc: 2200 movs r2, #0
  2863. 80014ce: 611a str r2, [r3, #16]
  2864. huart8.Init.Mode = UART_MODE_TX_RX;
  2865. 80014d0: 4b1a ldr r3, [pc, #104] @ (800153c <MX_UART8_Init+0x90>)
  2866. 80014d2: 220c movs r2, #12
  2867. 80014d4: 615a str r2, [r3, #20]
  2868. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2869. 80014d6: 4b19 ldr r3, [pc, #100] @ (800153c <MX_UART8_Init+0x90>)
  2870. 80014d8: 2200 movs r2, #0
  2871. 80014da: 619a str r2, [r3, #24]
  2872. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  2873. 80014dc: 4b17 ldr r3, [pc, #92] @ (800153c <MX_UART8_Init+0x90>)
  2874. 80014de: 2200 movs r2, #0
  2875. 80014e0: 61da str r2, [r3, #28]
  2876. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  2877. 80014e2: 4b16 ldr r3, [pc, #88] @ (800153c <MX_UART8_Init+0x90>)
  2878. 80014e4: 2200 movs r2, #0
  2879. 80014e6: 621a str r2, [r3, #32]
  2880. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  2881. 80014e8: 4b14 ldr r3, [pc, #80] @ (800153c <MX_UART8_Init+0x90>)
  2882. 80014ea: 2200 movs r2, #0
  2883. 80014ec: 625a str r2, [r3, #36] @ 0x24
  2884. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  2885. 80014ee: 4b13 ldr r3, [pc, #76] @ (800153c <MX_UART8_Init+0x90>)
  2886. 80014f0: 2200 movs r2, #0
  2887. 80014f2: 629a str r2, [r3, #40] @ 0x28
  2888. if (HAL_UART_Init(&huart8) != HAL_OK)
  2889. 80014f4: 4811 ldr r0, [pc, #68] @ (800153c <MX_UART8_Init+0x90>)
  2890. 80014f6: f00f ff61 bl 80113bc <HAL_UART_Init>
  2891. 80014fa: 4603 mov r3, r0
  2892. 80014fc: 2b00 cmp r3, #0
  2893. 80014fe: d001 beq.n 8001504 <MX_UART8_Init+0x58>
  2894. {
  2895. Error_Handler();
  2896. 8001500: f000 fce4 bl 8001ecc <Error_Handler>
  2897. }
  2898. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  2899. 8001504: 2100 movs r1, #0
  2900. 8001506: 480d ldr r0, [pc, #52] @ (800153c <MX_UART8_Init+0x90>)
  2901. 8001508: f012 fc01 bl 8013d0e <HAL_UARTEx_SetTxFifoThreshold>
  2902. 800150c: 4603 mov r3, r0
  2903. 800150e: 2b00 cmp r3, #0
  2904. 8001510: d001 beq.n 8001516 <MX_UART8_Init+0x6a>
  2905. {
  2906. Error_Handler();
  2907. 8001512: f000 fcdb bl 8001ecc <Error_Handler>
  2908. }
  2909. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  2910. 8001516: 2100 movs r1, #0
  2911. 8001518: 4808 ldr r0, [pc, #32] @ (800153c <MX_UART8_Init+0x90>)
  2912. 800151a: f012 fc36 bl 8013d8a <HAL_UARTEx_SetRxFifoThreshold>
  2913. 800151e: 4603 mov r3, r0
  2914. 8001520: 2b00 cmp r3, #0
  2915. 8001522: d001 beq.n 8001528 <MX_UART8_Init+0x7c>
  2916. {
  2917. Error_Handler();
  2918. 8001524: f000 fcd2 bl 8001ecc <Error_Handler>
  2919. }
  2920. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  2921. 8001528: 4804 ldr r0, [pc, #16] @ (800153c <MX_UART8_Init+0x90>)
  2922. 800152a: f012 fbb7 bl 8013c9c <HAL_UARTEx_DisableFifoMode>
  2923. 800152e: 4603 mov r3, r0
  2924. 8001530: 2b00 cmp r3, #0
  2925. 8001532: d001 beq.n 8001538 <MX_UART8_Init+0x8c>
  2926. {
  2927. Error_Handler();
  2928. 8001534: f000 fcca bl 8001ecc <Error_Handler>
  2929. }
  2930. /* USER CODE BEGIN UART8_Init 2 */
  2931. /* USER CODE END UART8_Init 2 */
  2932. }
  2933. 8001538: bf00 nop
  2934. 800153a: bd80 pop {r7, pc}
  2935. 800153c: 240005b8 .word 0x240005b8
  2936. 8001540: 40007c00 .word 0x40007c00
  2937. 08001544 <MX_USART1_UART_Init>:
  2938. * @brief USART1 Initialization Function
  2939. * @param None
  2940. * @retval None
  2941. */
  2942. static void MX_USART1_UART_Init(void)
  2943. {
  2944. 8001544: b580 push {r7, lr}
  2945. 8001546: af00 add r7, sp, #0
  2946. /* USER CODE END USART1_Init 0 */
  2947. /* USER CODE BEGIN USART1_Init 1 */
  2948. /* USER CODE END USART1_Init 1 */
  2949. huart1.Instance = USART1;
  2950. 8001548: 4b24 ldr r3, [pc, #144] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2951. 800154a: 4a25 ldr r2, [pc, #148] @ (80015e0 <MX_USART1_UART_Init+0x9c>)
  2952. 800154c: 601a str r2, [r3, #0]
  2953. huart1.Init.BaudRate = 115200;
  2954. 800154e: 4b23 ldr r3, [pc, #140] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2955. 8001550: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  2956. 8001554: 605a str r2, [r3, #4]
  2957. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  2958. 8001556: 4b21 ldr r3, [pc, #132] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2959. 8001558: 2200 movs r2, #0
  2960. 800155a: 609a str r2, [r3, #8]
  2961. huart1.Init.StopBits = UART_STOPBITS_1;
  2962. 800155c: 4b1f ldr r3, [pc, #124] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2963. 800155e: 2200 movs r2, #0
  2964. 8001560: 60da str r2, [r3, #12]
  2965. huart1.Init.Parity = UART_PARITY_NONE;
  2966. 8001562: 4b1e ldr r3, [pc, #120] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2967. 8001564: 2200 movs r2, #0
  2968. 8001566: 611a str r2, [r3, #16]
  2969. huart1.Init.Mode = UART_MODE_TX_RX;
  2970. 8001568: 4b1c ldr r3, [pc, #112] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2971. 800156a: 220c movs r2, #12
  2972. 800156c: 615a str r2, [r3, #20]
  2973. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2974. 800156e: 4b1b ldr r3, [pc, #108] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2975. 8001570: 2200 movs r2, #0
  2976. 8001572: 619a str r2, [r3, #24]
  2977. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  2978. 8001574: 4b19 ldr r3, [pc, #100] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2979. 8001576: 2200 movs r2, #0
  2980. 8001578: 61da str r2, [r3, #28]
  2981. huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  2982. 800157a: 4b18 ldr r3, [pc, #96] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2983. 800157c: 2200 movs r2, #0
  2984. 800157e: 621a str r2, [r3, #32]
  2985. huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  2986. 8001580: 4b16 ldr r3, [pc, #88] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2987. 8001582: 2200 movs r2, #0
  2988. 8001584: 625a str r2, [r3, #36] @ 0x24
  2989. huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  2990. 8001586: 4b15 ldr r3, [pc, #84] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2991. 8001588: 2201 movs r2, #1
  2992. 800158a: 629a str r2, [r3, #40] @ 0x28
  2993. huart1.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  2994. 800158c: 4b13 ldr r3, [pc, #76] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2995. 800158e: f44f 3200 mov.w r2, #131072 @ 0x20000
  2996. 8001592: 62da str r2, [r3, #44] @ 0x2c
  2997. if (HAL_UART_Init(&huart1) != HAL_OK)
  2998. 8001594: 4811 ldr r0, [pc, #68] @ (80015dc <MX_USART1_UART_Init+0x98>)
  2999. 8001596: f00f ff11 bl 80113bc <HAL_UART_Init>
  3000. 800159a: 4603 mov r3, r0
  3001. 800159c: 2b00 cmp r3, #0
  3002. 800159e: d001 beq.n 80015a4 <MX_USART1_UART_Init+0x60>
  3003. {
  3004. Error_Handler();
  3005. 80015a0: f000 fc94 bl 8001ecc <Error_Handler>
  3006. }
  3007. if (HAL_UARTEx_SetTxFifoThreshold(&huart1, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  3008. 80015a4: 2100 movs r1, #0
  3009. 80015a6: 480d ldr r0, [pc, #52] @ (80015dc <MX_USART1_UART_Init+0x98>)
  3010. 80015a8: f012 fbb1 bl 8013d0e <HAL_UARTEx_SetTxFifoThreshold>
  3011. 80015ac: 4603 mov r3, r0
  3012. 80015ae: 2b00 cmp r3, #0
  3013. 80015b0: d001 beq.n 80015b6 <MX_USART1_UART_Init+0x72>
  3014. {
  3015. Error_Handler();
  3016. 80015b2: f000 fc8b bl 8001ecc <Error_Handler>
  3017. }
  3018. if (HAL_UARTEx_SetRxFifoThreshold(&huart1, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  3019. 80015b6: 2100 movs r1, #0
  3020. 80015b8: 4808 ldr r0, [pc, #32] @ (80015dc <MX_USART1_UART_Init+0x98>)
  3021. 80015ba: f012 fbe6 bl 8013d8a <HAL_UARTEx_SetRxFifoThreshold>
  3022. 80015be: 4603 mov r3, r0
  3023. 80015c0: 2b00 cmp r3, #0
  3024. 80015c2: d001 beq.n 80015c8 <MX_USART1_UART_Init+0x84>
  3025. {
  3026. Error_Handler();
  3027. 80015c4: f000 fc82 bl 8001ecc <Error_Handler>
  3028. }
  3029. if (HAL_UARTEx_DisableFifoMode(&huart1) != HAL_OK)
  3030. 80015c8: 4804 ldr r0, [pc, #16] @ (80015dc <MX_USART1_UART_Init+0x98>)
  3031. 80015ca: f012 fb67 bl 8013c9c <HAL_UARTEx_DisableFifoMode>
  3032. 80015ce: 4603 mov r3, r0
  3033. 80015d0: 2b00 cmp r3, #0
  3034. 80015d2: d001 beq.n 80015d8 <MX_USART1_UART_Init+0x94>
  3035. {
  3036. Error_Handler();
  3037. 80015d4: f000 fc7a bl 8001ecc <Error_Handler>
  3038. }
  3039. /* USER CODE BEGIN USART1_Init 2 */
  3040. /* USER CODE END USART1_Init 2 */
  3041. }
  3042. 80015d8: bf00 nop
  3043. 80015da: bd80 pop {r7, pc}
  3044. 80015dc: 2400064c .word 0x2400064c
  3045. 80015e0: 40011000 .word 0x40011000
  3046. 080015e4 <MX_DMA_Init>:
  3047. /**
  3048. * Enable DMA controller clock
  3049. */
  3050. static void MX_DMA_Init(void)
  3051. {
  3052. 80015e4: b580 push {r7, lr}
  3053. 80015e6: b082 sub sp, #8
  3054. 80015e8: af00 add r7, sp, #0
  3055. /* DMA controller clock enable */
  3056. __HAL_RCC_DMA1_CLK_ENABLE();
  3057. 80015ea: 4b15 ldr r3, [pc, #84] @ (8001640 <MX_DMA_Init+0x5c>)
  3058. 80015ec: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  3059. 80015f0: 4a13 ldr r2, [pc, #76] @ (8001640 <MX_DMA_Init+0x5c>)
  3060. 80015f2: f043 0301 orr.w r3, r3, #1
  3061. 80015f6: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  3062. 80015fa: 4b11 ldr r3, [pc, #68] @ (8001640 <MX_DMA_Init+0x5c>)
  3063. 80015fc: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  3064. 8001600: f003 0301 and.w r3, r3, #1
  3065. 8001604: 607b str r3, [r7, #4]
  3066. 8001606: 687b ldr r3, [r7, #4]
  3067. /* DMA interrupt init */
  3068. /* DMA1_Stream0_IRQn interrupt configuration */
  3069. HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 5, 0);
  3070. 8001608: 2200 movs r2, #0
  3071. 800160a: 2105 movs r1, #5
  3072. 800160c: 200b movs r0, #11
  3073. 800160e: f006 faab bl 8007b68 <HAL_NVIC_SetPriority>
  3074. HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
  3075. 8001612: 200b movs r0, #11
  3076. 8001614: f006 fac2 bl 8007b9c <HAL_NVIC_EnableIRQ>
  3077. /* DMA1_Stream1_IRQn interrupt configuration */
  3078. HAL_NVIC_SetPriority(DMA1_Stream1_IRQn, 5, 0);
  3079. 8001618: 2200 movs r2, #0
  3080. 800161a: 2105 movs r1, #5
  3081. 800161c: 200c movs r0, #12
  3082. 800161e: f006 faa3 bl 8007b68 <HAL_NVIC_SetPriority>
  3083. HAL_NVIC_EnableIRQ(DMA1_Stream1_IRQn);
  3084. 8001622: 200c movs r0, #12
  3085. 8001624: f006 faba bl 8007b9c <HAL_NVIC_EnableIRQ>
  3086. /* DMA1_Stream2_IRQn interrupt configuration */
  3087. HAL_NVIC_SetPriority(DMA1_Stream2_IRQn, 5, 0);
  3088. 8001628: 2200 movs r2, #0
  3089. 800162a: 2105 movs r1, #5
  3090. 800162c: 200d movs r0, #13
  3091. 800162e: f006 fa9b bl 8007b68 <HAL_NVIC_SetPriority>
  3092. HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn);
  3093. 8001632: 200d movs r0, #13
  3094. 8001634: f006 fab2 bl 8007b9c <HAL_NVIC_EnableIRQ>
  3095. }
  3096. 8001638: bf00 nop
  3097. 800163a: 3708 adds r7, #8
  3098. 800163c: 46bd mov sp, r7
  3099. 800163e: bd80 pop {r7, pc}
  3100. 8001640: 58024400 .word 0x58024400
  3101. 08001644 <MX_GPIO_Init>:
  3102. * @brief GPIO Initialization Function
  3103. * @param None
  3104. * @retval None
  3105. */
  3106. static void MX_GPIO_Init(void)
  3107. {
  3108. 8001644: b580 push {r7, lr}
  3109. 8001646: b08c sub sp, #48 @ 0x30
  3110. 8001648: af00 add r7, sp, #0
  3111. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3112. 800164a: f107 031c add.w r3, r7, #28
  3113. 800164e: 2200 movs r2, #0
  3114. 8001650: 601a str r2, [r3, #0]
  3115. 8001652: 605a str r2, [r3, #4]
  3116. 8001654: 609a str r2, [r3, #8]
  3117. 8001656: 60da str r2, [r3, #12]
  3118. 8001658: 611a str r2, [r3, #16]
  3119. /* USER CODE BEGIN MX_GPIO_Init_1 */
  3120. /* USER CODE END MX_GPIO_Init_1 */
  3121. /* GPIO Ports Clock Enable */
  3122. __HAL_RCC_GPIOH_CLK_ENABLE();
  3123. 800165a: 4b58 ldr r3, [pc, #352] @ (80017bc <MX_GPIO_Init+0x178>)
  3124. 800165c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3125. 8001660: 4a56 ldr r2, [pc, #344] @ (80017bc <MX_GPIO_Init+0x178>)
  3126. 8001662: f043 0380 orr.w r3, r3, #128 @ 0x80
  3127. 8001666: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3128. 800166a: 4b54 ldr r3, [pc, #336] @ (80017bc <MX_GPIO_Init+0x178>)
  3129. 800166c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3130. 8001670: f003 0380 and.w r3, r3, #128 @ 0x80
  3131. 8001674: 61bb str r3, [r7, #24]
  3132. 8001676: 69bb ldr r3, [r7, #24]
  3133. __HAL_RCC_GPIOC_CLK_ENABLE();
  3134. 8001678: 4b50 ldr r3, [pc, #320] @ (80017bc <MX_GPIO_Init+0x178>)
  3135. 800167a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3136. 800167e: 4a4f ldr r2, [pc, #316] @ (80017bc <MX_GPIO_Init+0x178>)
  3137. 8001680: f043 0304 orr.w r3, r3, #4
  3138. 8001684: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3139. 8001688: 4b4c ldr r3, [pc, #304] @ (80017bc <MX_GPIO_Init+0x178>)
  3140. 800168a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3141. 800168e: f003 0304 and.w r3, r3, #4
  3142. 8001692: 617b str r3, [r7, #20]
  3143. 8001694: 697b ldr r3, [r7, #20]
  3144. __HAL_RCC_GPIOA_CLK_ENABLE();
  3145. 8001696: 4b49 ldr r3, [pc, #292] @ (80017bc <MX_GPIO_Init+0x178>)
  3146. 8001698: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3147. 800169c: 4a47 ldr r2, [pc, #284] @ (80017bc <MX_GPIO_Init+0x178>)
  3148. 800169e: f043 0301 orr.w r3, r3, #1
  3149. 80016a2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3150. 80016a6: 4b45 ldr r3, [pc, #276] @ (80017bc <MX_GPIO_Init+0x178>)
  3151. 80016a8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3152. 80016ac: f003 0301 and.w r3, r3, #1
  3153. 80016b0: 613b str r3, [r7, #16]
  3154. 80016b2: 693b ldr r3, [r7, #16]
  3155. __HAL_RCC_GPIOB_CLK_ENABLE();
  3156. 80016b4: 4b41 ldr r3, [pc, #260] @ (80017bc <MX_GPIO_Init+0x178>)
  3157. 80016b6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3158. 80016ba: 4a40 ldr r2, [pc, #256] @ (80017bc <MX_GPIO_Init+0x178>)
  3159. 80016bc: f043 0302 orr.w r3, r3, #2
  3160. 80016c0: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3161. 80016c4: 4b3d ldr r3, [pc, #244] @ (80017bc <MX_GPIO_Init+0x178>)
  3162. 80016c6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3163. 80016ca: f003 0302 and.w r3, r3, #2
  3164. 80016ce: 60fb str r3, [r7, #12]
  3165. 80016d0: 68fb ldr r3, [r7, #12]
  3166. __HAL_RCC_GPIOE_CLK_ENABLE();
  3167. 80016d2: 4b3a ldr r3, [pc, #232] @ (80017bc <MX_GPIO_Init+0x178>)
  3168. 80016d4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3169. 80016d8: 4a38 ldr r2, [pc, #224] @ (80017bc <MX_GPIO_Init+0x178>)
  3170. 80016da: f043 0310 orr.w r3, r3, #16
  3171. 80016de: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3172. 80016e2: 4b36 ldr r3, [pc, #216] @ (80017bc <MX_GPIO_Init+0x178>)
  3173. 80016e4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3174. 80016e8: f003 0310 and.w r3, r3, #16
  3175. 80016ec: 60bb str r3, [r7, #8]
  3176. 80016ee: 68bb ldr r3, [r7, #8]
  3177. __HAL_RCC_GPIOD_CLK_ENABLE();
  3178. 80016f0: 4b32 ldr r3, [pc, #200] @ (80017bc <MX_GPIO_Init+0x178>)
  3179. 80016f2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3180. 80016f6: 4a31 ldr r2, [pc, #196] @ (80017bc <MX_GPIO_Init+0x178>)
  3181. 80016f8: f043 0308 orr.w r3, r3, #8
  3182. 80016fc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3183. 8001700: 4b2e ldr r3, [pc, #184] @ (80017bc <MX_GPIO_Init+0x178>)
  3184. 8001702: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3185. 8001706: f003 0308 and.w r3, r3, #8
  3186. 800170a: 607b str r3, [r7, #4]
  3187. 800170c: 687b ldr r3, [r7, #4]
  3188. /*Configure GPIO pin Output Level */
  3189. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3190. 800170e: 2200 movs r2, #0
  3191. 8001710: f24e 7180 movw r1, #59264 @ 0xe780
  3192. 8001714: 482a ldr r0, [pc, #168] @ (80017c0 <MX_GPIO_Init+0x17c>)
  3193. 8001716: f009 ff21 bl 800b55c <HAL_GPIO_WritePin>
  3194. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15, GPIO_PIN_RESET);
  3195. /*Configure GPIO pin Output Level */
  3196. HAL_GPIO_WritePin(GPIOD, GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7, GPIO_PIN_RESET);
  3197. 800171a: 2200 movs r2, #0
  3198. 800171c: 21f0 movs r1, #240 @ 0xf0
  3199. 800171e: 4829 ldr r0, [pc, #164] @ (80017c4 <MX_GPIO_Init+0x180>)
  3200. 8001720: f009 ff1c bl 800b55c <HAL_GPIO_WritePin>
  3201. /*Configure GPIO pins : PE7 PE8 PE9 PE10
  3202. PE13 PE14 PE15 */
  3203. GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3204. 8001724: f24e 7380 movw r3, #59264 @ 0xe780
  3205. 8001728: 61fb str r3, [r7, #28]
  3206. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  3207. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3208. 800172a: 2301 movs r3, #1
  3209. 800172c: 623b str r3, [r7, #32]
  3210. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3211. 800172e: 2300 movs r3, #0
  3212. 8001730: 627b str r3, [r7, #36] @ 0x24
  3213. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3214. 8001732: 2300 movs r3, #0
  3215. 8001734: 62bb str r3, [r7, #40] @ 0x28
  3216. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  3217. 8001736: f107 031c add.w r3, r7, #28
  3218. 800173a: 4619 mov r1, r3
  3219. 800173c: 4820 ldr r0, [pc, #128] @ (80017c0 <MX_GPIO_Init+0x17c>)
  3220. 800173e: f009 fd45 bl 800b1cc <HAL_GPIO_Init>
  3221. /*Configure GPIO pins : PD8 PD9 PD10 PD11
  3222. PD12 PD13 */
  3223. GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
  3224. 8001742: f44f 537c mov.w r3, #16128 @ 0x3f00
  3225. 8001746: 61fb str r3, [r7, #28]
  3226. |GPIO_PIN_12|GPIO_PIN_13;
  3227. GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
  3228. 8001748: f44f 1344 mov.w r3, #3211264 @ 0x310000
  3229. 800174c: 623b str r3, [r7, #32]
  3230. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3231. 800174e: 2300 movs r3, #0
  3232. 8001750: 627b str r3, [r7, #36] @ 0x24
  3233. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3234. 8001752: f107 031c add.w r3, r7, #28
  3235. 8001756: 4619 mov r1, r3
  3236. 8001758: 481a ldr r0, [pc, #104] @ (80017c4 <MX_GPIO_Init+0x180>)
  3237. 800175a: f009 fd37 bl 800b1cc <HAL_GPIO_Init>
  3238. /*Configure GPIO pin : PD3 */
  3239. GPIO_InitStruct.Pin = GPIO_PIN_3;
  3240. 800175e: 2308 movs r3, #8
  3241. 8001760: 61fb str r3, [r7, #28]
  3242. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  3243. 8001762: 2300 movs r3, #0
  3244. 8001764: 623b str r3, [r7, #32]
  3245. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3246. 8001766: 2300 movs r3, #0
  3247. 8001768: 627b str r3, [r7, #36] @ 0x24
  3248. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3249. 800176a: f107 031c add.w r3, r7, #28
  3250. 800176e: 4619 mov r1, r3
  3251. 8001770: 4814 ldr r0, [pc, #80] @ (80017c4 <MX_GPIO_Init+0x180>)
  3252. 8001772: f009 fd2b bl 800b1cc <HAL_GPIO_Init>
  3253. /*Configure GPIO pins : PD4 PD5 PD6 PD7 */
  3254. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
  3255. 8001776: 23f0 movs r3, #240 @ 0xf0
  3256. 8001778: 61fb str r3, [r7, #28]
  3257. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3258. 800177a: 2301 movs r3, #1
  3259. 800177c: 623b str r3, [r7, #32]
  3260. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3261. 800177e: 2300 movs r3, #0
  3262. 8001780: 627b str r3, [r7, #36] @ 0x24
  3263. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3264. 8001782: 2300 movs r3, #0
  3265. 8001784: 62bb str r3, [r7, #40] @ 0x28
  3266. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3267. 8001786: f107 031c add.w r3, r7, #28
  3268. 800178a: 4619 mov r1, r3
  3269. 800178c: 480d ldr r0, [pc, #52] @ (80017c4 <MX_GPIO_Init+0x180>)
  3270. 800178e: f009 fd1d bl 800b1cc <HAL_GPIO_Init>
  3271. /* EXTI interrupt init*/
  3272. HAL_NVIC_SetPriority(EXTI9_5_IRQn, 5, 0);
  3273. 8001792: 2200 movs r2, #0
  3274. 8001794: 2105 movs r1, #5
  3275. 8001796: 2017 movs r0, #23
  3276. 8001798: f006 f9e6 bl 8007b68 <HAL_NVIC_SetPriority>
  3277. HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);
  3278. 800179c: 2017 movs r0, #23
  3279. 800179e: f006 f9fd bl 8007b9c <HAL_NVIC_EnableIRQ>
  3280. HAL_NVIC_SetPriority(EXTI15_10_IRQn, 5, 0);
  3281. 80017a2: 2200 movs r2, #0
  3282. 80017a4: 2105 movs r1, #5
  3283. 80017a6: 2028 movs r0, #40 @ 0x28
  3284. 80017a8: f006 f9de bl 8007b68 <HAL_NVIC_SetPriority>
  3285. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3286. 80017ac: 2028 movs r0, #40 @ 0x28
  3287. 80017ae: f006 f9f5 bl 8007b9c <HAL_NVIC_EnableIRQ>
  3288. /* USER CODE BEGIN MX_GPIO_Init_2 */
  3289. /* USER CODE END MX_GPIO_Init_2 */
  3290. }
  3291. 80017b2: bf00 nop
  3292. 80017b4: 3730 adds r7, #48 @ 0x30
  3293. 80017b6: 46bd mov sp, r7
  3294. 80017b8: bd80 pop {r7, pc}
  3295. 80017ba: bf00 nop
  3296. 80017bc: 58024400 .word 0x58024400
  3297. 80017c0: 58021000 .word 0x58021000
  3298. 80017c4: 58020c00 .word 0x58020c00
  3299. 080017c8 <HAL_ADC_ConvCpltCallback>:
  3300. /* USER CODE BEGIN 4 */
  3301. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
  3302. {
  3303. 80017c8: b580 push {r7, lr}
  3304. 80017ca: b08e sub sp, #56 @ 0x38
  3305. 80017cc: af00 add r7, sp, #0
  3306. 80017ce: 6078 str r0, [r7, #4]
  3307. if(hadc->Instance == ADC1)
  3308. 80017d0: 687b ldr r3, [r7, #4]
  3309. 80017d2: 681b ldr r3, [r3, #0]
  3310. 80017d4: 4a67 ldr r2, [pc, #412] @ (8001974 <HAL_ADC_ConvCpltCallback+0x1ac>)
  3311. 80017d6: 4293 cmp r3, r2
  3312. 80017d8: d13f bne.n 800185a <HAL_ADC_ConvCpltCallback+0x92>
  3313. {
  3314. DbgLEDToggle(DBG_LED4);
  3315. 80017da: 2080 movs r0, #128 @ 0x80
  3316. 80017dc: f001 fba6 bl 8002f2c <DbgLEDToggle>
  3317. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc1Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3318. 80017e0: 4b65 ldr r3, [pc, #404] @ (8001978 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3319. 80017e2: f023 031f bic.w r3, r3, #31
  3320. 80017e6: 637b str r3, [r7, #52] @ 0x34
  3321. 80017e8: 2320 movs r3, #32
  3322. 80017ea: 633b str r3, [r7, #48] @ 0x30
  3323. \param[in] dsize size of memory block (in number of bytes)
  3324. */
  3325. __STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize)
  3326. {
  3327. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  3328. if ( dsize > 0 ) {
  3329. 80017ec: 6b3b ldr r3, [r7, #48] @ 0x30
  3330. 80017ee: 2b00 cmp r3, #0
  3331. 80017f0: dd1d ble.n 800182e <HAL_ADC_ConvCpltCallback+0x66>
  3332. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3333. 80017f2: 6b7b ldr r3, [r7, #52] @ 0x34
  3334. 80017f4: f003 021f and.w r2, r3, #31
  3335. 80017f8: 6b3b ldr r3, [r7, #48] @ 0x30
  3336. 80017fa: 4413 add r3, r2
  3337. 80017fc: 62fb str r3, [r7, #44] @ 0x2c
  3338. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3339. 80017fe: 6b7b ldr r3, [r7, #52] @ 0x34
  3340. 8001800: 62bb str r3, [r7, #40] @ 0x28
  3341. __ASM volatile ("dsb 0xF":::"memory");
  3342. 8001802: f3bf 8f4f dsb sy
  3343. }
  3344. 8001806: bf00 nop
  3345. __DSB();
  3346. do {
  3347. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3348. 8001808: 4a5c ldr r2, [pc, #368] @ (800197c <HAL_ADC_ConvCpltCallback+0x1b4>)
  3349. 800180a: 6abb ldr r3, [r7, #40] @ 0x28
  3350. 800180c: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3351. op_addr += __SCB_DCACHE_LINE_SIZE;
  3352. 8001810: 6abb ldr r3, [r7, #40] @ 0x28
  3353. 8001812: 3320 adds r3, #32
  3354. 8001814: 62bb str r3, [r7, #40] @ 0x28
  3355. op_size -= __SCB_DCACHE_LINE_SIZE;
  3356. 8001816: 6afb ldr r3, [r7, #44] @ 0x2c
  3357. 8001818: 3b20 subs r3, #32
  3358. 800181a: 62fb str r3, [r7, #44] @ 0x2c
  3359. } while ( op_size > 0 );
  3360. 800181c: 6afb ldr r3, [r7, #44] @ 0x2c
  3361. 800181e: 2b00 cmp r3, #0
  3362. 8001820: dcf2 bgt.n 8001808 <HAL_ADC_ConvCpltCallback+0x40>
  3363. __ASM volatile ("dsb 0xF":::"memory");
  3364. 8001822: f3bf 8f4f dsb sy
  3365. }
  3366. 8001826: bf00 nop
  3367. __ASM volatile ("isb 0xF":::"memory");
  3368. 8001828: f3bf 8f6f isb sy
  3369. }
  3370. 800182c: bf00 nop
  3371. __DSB();
  3372. __ISB();
  3373. }
  3374. #endif
  3375. }
  3376. 800182e: bf00 nop
  3377. if(adc1MeasDataQueue != NULL)
  3378. 8001830: 4b53 ldr r3, [pc, #332] @ (8001980 <HAL_ADC_ConvCpltCallback+0x1b8>)
  3379. 8001832: 681b ldr r3, [r3, #0]
  3380. 8001834: 2b00 cmp r3, #0
  3381. 8001836: d006 beq.n 8001846 <HAL_ADC_ConvCpltCallback+0x7e>
  3382. {
  3383. osMessageQueuePut(adc1MeasDataQueue, &adc1Data, 0, 0);
  3384. 8001838: 4b51 ldr r3, [pc, #324] @ (8001980 <HAL_ADC_ConvCpltCallback+0x1b8>)
  3385. 800183a: 6818 ldr r0, [r3, #0]
  3386. 800183c: 2300 movs r3, #0
  3387. 800183e: 2200 movs r2, #0
  3388. 8001840: 494d ldr r1, [pc, #308] @ (8001978 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3389. 8001842: f012 ff33 bl 80146ac <osMessageQueuePut>
  3390. }
  3391. if(HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData) != HAL_OK)
  3392. 8001846: 2207 movs r2, #7
  3393. 8001848: 494b ldr r1, [pc, #300] @ (8001978 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3394. 800184a: 484e ldr r0, [pc, #312] @ (8001984 <HAL_ADC_ConvCpltCallback+0x1bc>)
  3395. 800184c: f004 fee8 bl 8006620 <HAL_ADC_Start_DMA>
  3396. 8001850: 4603 mov r3, r0
  3397. 8001852: 2b00 cmp r3, #0
  3398. 8001854: d001 beq.n 800185a <HAL_ADC_ConvCpltCallback+0x92>
  3399. {
  3400. Error_Handler();
  3401. 8001856: f000 fb39 bl 8001ecc <Error_Handler>
  3402. }
  3403. }
  3404. if(hadc->Instance == ADC2)
  3405. 800185a: 687b ldr r3, [r7, #4]
  3406. 800185c: 681b ldr r3, [r3, #0]
  3407. 800185e: 4a4a ldr r2, [pc, #296] @ (8001988 <HAL_ADC_ConvCpltCallback+0x1c0>)
  3408. 8001860: 4293 cmp r3, r2
  3409. 8001862: d13c bne.n 80018de <HAL_ADC_ConvCpltCallback+0x116>
  3410. {
  3411. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc2Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3412. 8001864: 4b49 ldr r3, [pc, #292] @ (800198c <HAL_ADC_ConvCpltCallback+0x1c4>)
  3413. 8001866: f023 031f bic.w r3, r3, #31
  3414. 800186a: 627b str r3, [r7, #36] @ 0x24
  3415. 800186c: 2320 movs r3, #32
  3416. 800186e: 623b str r3, [r7, #32]
  3417. if ( dsize > 0 ) {
  3418. 8001870: 6a3b ldr r3, [r7, #32]
  3419. 8001872: 2b00 cmp r3, #0
  3420. 8001874: dd1d ble.n 80018b2 <HAL_ADC_ConvCpltCallback+0xea>
  3421. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3422. 8001876: 6a7b ldr r3, [r7, #36] @ 0x24
  3423. 8001878: f003 021f and.w r2, r3, #31
  3424. 800187c: 6a3b ldr r3, [r7, #32]
  3425. 800187e: 4413 add r3, r2
  3426. 8001880: 61fb str r3, [r7, #28]
  3427. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3428. 8001882: 6a7b ldr r3, [r7, #36] @ 0x24
  3429. 8001884: 61bb str r3, [r7, #24]
  3430. __ASM volatile ("dsb 0xF":::"memory");
  3431. 8001886: f3bf 8f4f dsb sy
  3432. }
  3433. 800188a: bf00 nop
  3434. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3435. 800188c: 4a3b ldr r2, [pc, #236] @ (800197c <HAL_ADC_ConvCpltCallback+0x1b4>)
  3436. 800188e: 69bb ldr r3, [r7, #24]
  3437. 8001890: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3438. op_addr += __SCB_DCACHE_LINE_SIZE;
  3439. 8001894: 69bb ldr r3, [r7, #24]
  3440. 8001896: 3320 adds r3, #32
  3441. 8001898: 61bb str r3, [r7, #24]
  3442. op_size -= __SCB_DCACHE_LINE_SIZE;
  3443. 800189a: 69fb ldr r3, [r7, #28]
  3444. 800189c: 3b20 subs r3, #32
  3445. 800189e: 61fb str r3, [r7, #28]
  3446. } while ( op_size > 0 );
  3447. 80018a0: 69fb ldr r3, [r7, #28]
  3448. 80018a2: 2b00 cmp r3, #0
  3449. 80018a4: dcf2 bgt.n 800188c <HAL_ADC_ConvCpltCallback+0xc4>
  3450. __ASM volatile ("dsb 0xF":::"memory");
  3451. 80018a6: f3bf 8f4f dsb sy
  3452. }
  3453. 80018aa: bf00 nop
  3454. __ASM volatile ("isb 0xF":::"memory");
  3455. 80018ac: f3bf 8f6f isb sy
  3456. }
  3457. 80018b0: bf00 nop
  3458. }
  3459. 80018b2: bf00 nop
  3460. if(adc2MeasDataQueue != NULL)
  3461. 80018b4: 4b36 ldr r3, [pc, #216] @ (8001990 <HAL_ADC_ConvCpltCallback+0x1c8>)
  3462. 80018b6: 681b ldr r3, [r3, #0]
  3463. 80018b8: 2b00 cmp r3, #0
  3464. 80018ba: d006 beq.n 80018ca <HAL_ADC_ConvCpltCallback+0x102>
  3465. {
  3466. osMessageQueuePut(adc2MeasDataQueue, &adc2Data, 0, 0);
  3467. 80018bc: 4b34 ldr r3, [pc, #208] @ (8001990 <HAL_ADC_ConvCpltCallback+0x1c8>)
  3468. 80018be: 6818 ldr r0, [r3, #0]
  3469. 80018c0: 2300 movs r3, #0
  3470. 80018c2: 2200 movs r2, #0
  3471. 80018c4: 4931 ldr r1, [pc, #196] @ (800198c <HAL_ADC_ConvCpltCallback+0x1c4>)
  3472. 80018c6: f012 fef1 bl 80146ac <osMessageQueuePut>
  3473. }
  3474. if(HAL_ADC_Start_DMA(&hadc2, (uint32_t *)adc2Data.adcDataBuffer, ADC2LastData) != HAL_OK)
  3475. 80018ca: 2203 movs r2, #3
  3476. 80018cc: 492f ldr r1, [pc, #188] @ (800198c <HAL_ADC_ConvCpltCallback+0x1c4>)
  3477. 80018ce: 4831 ldr r0, [pc, #196] @ (8001994 <HAL_ADC_ConvCpltCallback+0x1cc>)
  3478. 80018d0: f004 fea6 bl 8006620 <HAL_ADC_Start_DMA>
  3479. 80018d4: 4603 mov r3, r0
  3480. 80018d6: 2b00 cmp r3, #0
  3481. 80018d8: d001 beq.n 80018de <HAL_ADC_ConvCpltCallback+0x116>
  3482. {
  3483. Error_Handler();
  3484. 80018da: f000 faf7 bl 8001ecc <Error_Handler>
  3485. }
  3486. }
  3487. if(hadc->Instance == ADC3)
  3488. 80018de: 687b ldr r3, [r7, #4]
  3489. 80018e0: 681b ldr r3, [r3, #0]
  3490. 80018e2: 4a2d ldr r2, [pc, #180] @ (8001998 <HAL_ADC_ConvCpltCallback+0x1d0>)
  3491. 80018e4: 4293 cmp r3, r2
  3492. 80018e6: d13c bne.n 8001962 <HAL_ADC_ConvCpltCallback+0x19a>
  3493. {
  3494. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc3Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3495. 80018e8: 4b2c ldr r3, [pc, #176] @ (800199c <HAL_ADC_ConvCpltCallback+0x1d4>)
  3496. 80018ea: f023 031f bic.w r3, r3, #31
  3497. 80018ee: 617b str r3, [r7, #20]
  3498. 80018f0: 2320 movs r3, #32
  3499. 80018f2: 613b str r3, [r7, #16]
  3500. if ( dsize > 0 ) {
  3501. 80018f4: 693b ldr r3, [r7, #16]
  3502. 80018f6: 2b00 cmp r3, #0
  3503. 80018f8: dd1d ble.n 8001936 <HAL_ADC_ConvCpltCallback+0x16e>
  3504. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3505. 80018fa: 697b ldr r3, [r7, #20]
  3506. 80018fc: f003 021f and.w r2, r3, #31
  3507. 8001900: 693b ldr r3, [r7, #16]
  3508. 8001902: 4413 add r3, r2
  3509. 8001904: 60fb str r3, [r7, #12]
  3510. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3511. 8001906: 697b ldr r3, [r7, #20]
  3512. 8001908: 60bb str r3, [r7, #8]
  3513. __ASM volatile ("dsb 0xF":::"memory");
  3514. 800190a: f3bf 8f4f dsb sy
  3515. }
  3516. 800190e: bf00 nop
  3517. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3518. 8001910: 4a1a ldr r2, [pc, #104] @ (800197c <HAL_ADC_ConvCpltCallback+0x1b4>)
  3519. 8001912: 68bb ldr r3, [r7, #8]
  3520. 8001914: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3521. op_addr += __SCB_DCACHE_LINE_SIZE;
  3522. 8001918: 68bb ldr r3, [r7, #8]
  3523. 800191a: 3320 adds r3, #32
  3524. 800191c: 60bb str r3, [r7, #8]
  3525. op_size -= __SCB_DCACHE_LINE_SIZE;
  3526. 800191e: 68fb ldr r3, [r7, #12]
  3527. 8001920: 3b20 subs r3, #32
  3528. 8001922: 60fb str r3, [r7, #12]
  3529. } while ( op_size > 0 );
  3530. 8001924: 68fb ldr r3, [r7, #12]
  3531. 8001926: 2b00 cmp r3, #0
  3532. 8001928: dcf2 bgt.n 8001910 <HAL_ADC_ConvCpltCallback+0x148>
  3533. __ASM volatile ("dsb 0xF":::"memory");
  3534. 800192a: f3bf 8f4f dsb sy
  3535. }
  3536. 800192e: bf00 nop
  3537. __ASM volatile ("isb 0xF":::"memory");
  3538. 8001930: f3bf 8f6f isb sy
  3539. }
  3540. 8001934: bf00 nop
  3541. }
  3542. 8001936: bf00 nop
  3543. if(adc3MeasDataQueue != NULL)
  3544. 8001938: 4b19 ldr r3, [pc, #100] @ (80019a0 <HAL_ADC_ConvCpltCallback+0x1d8>)
  3545. 800193a: 681b ldr r3, [r3, #0]
  3546. 800193c: 2b00 cmp r3, #0
  3547. 800193e: d006 beq.n 800194e <HAL_ADC_ConvCpltCallback+0x186>
  3548. {
  3549. osMessageQueuePut(adc3MeasDataQueue, &adc3Data, 0, 0);
  3550. 8001940: 4b17 ldr r3, [pc, #92] @ (80019a0 <HAL_ADC_ConvCpltCallback+0x1d8>)
  3551. 8001942: 6818 ldr r0, [r3, #0]
  3552. 8001944: 2300 movs r3, #0
  3553. 8001946: 2200 movs r2, #0
  3554. 8001948: 4914 ldr r1, [pc, #80] @ (800199c <HAL_ADC_ConvCpltCallback+0x1d4>)
  3555. 800194a: f012 feaf bl 80146ac <osMessageQueuePut>
  3556. }
  3557. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData) != HAL_OK)
  3558. 800194e: 2205 movs r2, #5
  3559. 8001950: 4912 ldr r1, [pc, #72] @ (800199c <HAL_ADC_ConvCpltCallback+0x1d4>)
  3560. 8001952: 4814 ldr r0, [pc, #80] @ (80019a4 <HAL_ADC_ConvCpltCallback+0x1dc>)
  3561. 8001954: f004 fe64 bl 8006620 <HAL_ADC_Start_DMA>
  3562. 8001958: 4603 mov r3, r0
  3563. 800195a: 2b00 cmp r3, #0
  3564. 800195c: d001 beq.n 8001962 <HAL_ADC_ConvCpltCallback+0x19a>
  3565. {
  3566. Error_Handler();
  3567. 800195e: f000 fab5 bl 8001ecc <Error_Handler>
  3568. }
  3569. }osTimerStop (debugLedTimerHandle);
  3570. 8001962: 4b11 ldr r3, [pc, #68] @ (80019a8 <HAL_ADC_ConvCpltCallback+0x1e0>)
  3571. 8001964: 681b ldr r3, [r3, #0]
  3572. 8001966: 4618 mov r0, r3
  3573. 8001968: f012 fce8 bl 801433c <osTimerStop>
  3574. }
  3575. 800196c: bf00 nop
  3576. 800196e: 3738 adds r7, #56 @ 0x38
  3577. 8001970: 46bd mov sp, r7
  3578. 8001972: bd80 pop {r7, pc}
  3579. 8001974: 40022000 .word 0x40022000
  3580. 8001978: 240000c0 .word 0x240000c0
  3581. 800197c: e000ed00 .word 0xe000ed00
  3582. 8001980: 24000800 .word 0x24000800
  3583. 8001984: 24000120 .word 0x24000120
  3584. 8001988: 40022100 .word 0x40022100
  3585. 800198c: 240000e0 .word 0x240000e0
  3586. 8001990: 24000804 .word 0x24000804
  3587. 8001994: 24000184 .word 0x24000184
  3588. 8001998: 58026000 .word 0x58026000
  3589. 800199c: 24000100 .word 0x24000100
  3590. 80019a0: 24000808 .word 0x24000808
  3591. 80019a4: 240001e8 .word 0x240001e8
  3592. 80019a8: 240006e4 .word 0x240006e4
  3593. 080019ac <HAL_TIM_IC_CaptureCallback>:
  3594. void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  3595. {
  3596. 80019ac: b580 push {r7, lr}
  3597. 80019ae: b084 sub sp, #16
  3598. 80019b0: af00 add r7, sp, #0
  3599. 80019b2: 6078 str r0, [r7, #4]
  3600. if (htim->Instance == TIM4)
  3601. 80019b4: 687b ldr r3, [r7, #4]
  3602. 80019b6: 681b ldr r3, [r3, #0]
  3603. 80019b8: 4a61 ldr r2, [pc, #388] @ (8001b40 <HAL_TIM_IC_CaptureCallback+0x194>)
  3604. 80019ba: 4293 cmp r3, r2
  3605. 80019bc: d15a bne.n 8001a74 <HAL_TIM_IC_CaptureCallback+0xc8>
  3606. {
  3607. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3608. 80019be: 687b ldr r3, [r7, #4]
  3609. 80019c0: 7f1b ldrb r3, [r3, #28]
  3610. 80019c2: 2b04 cmp r3, #4
  3611. 80019c4: d114 bne.n 80019f0 <HAL_TIM_IC_CaptureCallback+0x44>
  3612. {
  3613. if(encoderXChannelB > 0)
  3614. 80019c6: 4b5f ldr r3, [pc, #380] @ (8001b44 <HAL_TIM_IC_CaptureCallback+0x198>)
  3615. 80019c8: 681b ldr r3, [r3, #0]
  3616. 80019ca: 2b00 cmp r3, #0
  3617. 80019cc: dd08 ble.n 80019e0 <HAL_TIM_IC_CaptureCallback+0x34>
  3618. {
  3619. encoderXChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3620. 80019ce: 2108 movs r1, #8
  3621. 80019d0: 6878 ldr r0, [r7, #4]
  3622. 80019d2: f00e fdc3 bl 801055c <HAL_TIM_ReadCapturedValue>
  3623. 80019d6: 4603 mov r3, r0
  3624. 80019d8: 461a mov r2, r3
  3625. 80019da: 4b5b ldr r3, [pc, #364] @ (8001b48 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3626. 80019dc: 601a str r2, [r3, #0]
  3627. 80019de: e01f b.n 8001a20 <HAL_TIM_IC_CaptureCallback+0x74>
  3628. }
  3629. else
  3630. {
  3631. encoderXChannelA = 1;
  3632. 80019e0: 4b59 ldr r3, [pc, #356] @ (8001b48 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3633. 80019e2: 2201 movs r2, #1
  3634. 80019e4: 601a str r2, [r3, #0]
  3635. __HAL_TIM_SET_COUNTER(htim,0);
  3636. 80019e6: 687b ldr r3, [r7, #4]
  3637. 80019e8: 681b ldr r3, [r3, #0]
  3638. 80019ea: 2200 movs r2, #0
  3639. 80019ec: 625a str r2, [r3, #36] @ 0x24
  3640. 80019ee: e017 b.n 8001a20 <HAL_TIM_IC_CaptureCallback+0x74>
  3641. }
  3642. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3643. 80019f0: 687b ldr r3, [r7, #4]
  3644. 80019f2: 7f1b ldrb r3, [r3, #28]
  3645. 80019f4: 2b08 cmp r3, #8
  3646. 80019f6: d113 bne.n 8001a20 <HAL_TIM_IC_CaptureCallback+0x74>
  3647. {
  3648. if(encoderXChannelA > 0)
  3649. 80019f8: 4b53 ldr r3, [pc, #332] @ (8001b48 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3650. 80019fa: 681b ldr r3, [r3, #0]
  3651. 80019fc: 2b00 cmp r3, #0
  3652. 80019fe: dd08 ble.n 8001a12 <HAL_TIM_IC_CaptureCallback+0x66>
  3653. {
  3654. encoderXChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3655. 8001a00: 210c movs r1, #12
  3656. 8001a02: 6878 ldr r0, [r7, #4]
  3657. 8001a04: f00e fdaa bl 801055c <HAL_TIM_ReadCapturedValue>
  3658. 8001a08: 4603 mov r3, r0
  3659. 8001a0a: 461a mov r2, r3
  3660. 8001a0c: 4b4d ldr r3, [pc, #308] @ (8001b44 <HAL_TIM_IC_CaptureCallback+0x198>)
  3661. 8001a0e: 601a str r2, [r3, #0]
  3662. 8001a10: e006 b.n 8001a20 <HAL_TIM_IC_CaptureCallback+0x74>
  3663. }
  3664. else
  3665. {
  3666. encoderXChannelB = 1;
  3667. 8001a12: 4b4c ldr r3, [pc, #304] @ (8001b44 <HAL_TIM_IC_CaptureCallback+0x198>)
  3668. 8001a14: 2201 movs r2, #1
  3669. 8001a16: 601a str r2, [r3, #0]
  3670. __HAL_TIM_SET_COUNTER(htim,0);
  3671. 8001a18: 687b ldr r3, [r7, #4]
  3672. 8001a1a: 681b ldr r3, [r3, #0]
  3673. 8001a1c: 2200 movs r2, #0
  3674. 8001a1e: 625a str r2, [r3, #36] @ 0x24
  3675. }
  3676. }
  3677. if((encoderXChannelA != 0) && (encoderXChannelB != 0))
  3678. 8001a20: 4b49 ldr r3, [pc, #292] @ (8001b48 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3679. 8001a22: 681b ldr r3, [r3, #0]
  3680. 8001a24: 2b00 cmp r3, #0
  3681. 8001a26: f000 8086 beq.w 8001b36 <HAL_TIM_IC_CaptureCallback+0x18a>
  3682. 8001a2a: 4b46 ldr r3, [pc, #280] @ (8001b44 <HAL_TIM_IC_CaptureCallback+0x198>)
  3683. 8001a2c: 681b ldr r3, [r3, #0]
  3684. 8001a2e: 2b00 cmp r3, #0
  3685. 8001a30: f000 8081 beq.w 8001b36 <HAL_TIM_IC_CaptureCallback+0x18a>
  3686. {
  3687. EncoderData encoderData = { 0 };
  3688. 8001a34: 2300 movs r3, #0
  3689. 8001a36: 81bb strh r3, [r7, #12]
  3690. encoderData.axe = encoderAxeX;
  3691. 8001a38: 2300 movs r3, #0
  3692. 8001a3a: 733b strb r3, [r7, #12]
  3693. encoderData.direction = encoderXChannelA - encoderXChannelB < 0 ? encoderCW : encoderCCW;
  3694. 8001a3c: 4b42 ldr r3, [pc, #264] @ (8001b48 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3695. 8001a3e: 681a ldr r2, [r3, #0]
  3696. 8001a40: 4b40 ldr r3, [pc, #256] @ (8001b44 <HAL_TIM_IC_CaptureCallback+0x198>)
  3697. 8001a42: 681b ldr r3, [r3, #0]
  3698. 8001a44: 1ad3 subs r3, r2, r3
  3699. 8001a46: 43db mvns r3, r3
  3700. 8001a48: 0fdb lsrs r3, r3, #31
  3701. 8001a4a: b2db uxtb r3, r3
  3702. 8001a4c: 737b strb r3, [r7, #13]
  3703. if (encoderData.direction == encoderCCW)
  3704. 8001a4e: 7b7b ldrb r3, [r7, #13]
  3705. 8001a50: 2b01 cmp r3, #1
  3706. 8001a52: d100 bne.n 8001a56 <HAL_TIM_IC_CaptureCallback+0xaa>
  3707. {
  3708. asm("nop;");
  3709. 8001a54: bf00 nop
  3710. }
  3711. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3712. 8001a56: 4b3d ldr r3, [pc, #244] @ (8001b4c <HAL_TIM_IC_CaptureCallback+0x1a0>)
  3713. 8001a58: 6818 ldr r0, [r3, #0]
  3714. 8001a5a: f107 010c add.w r1, r7, #12
  3715. 8001a5e: 2300 movs r3, #0
  3716. 8001a60: 2200 movs r2, #0
  3717. 8001a62: f012 fe23 bl 80146ac <osMessageQueuePut>
  3718. encoderXChannelA = 0;
  3719. 8001a66: 4b38 ldr r3, [pc, #224] @ (8001b48 <HAL_TIM_IC_CaptureCallback+0x19c>)
  3720. 8001a68: 2200 movs r2, #0
  3721. 8001a6a: 601a str r2, [r3, #0]
  3722. encoderXChannelB = 0;
  3723. 8001a6c: 4b35 ldr r3, [pc, #212] @ (8001b44 <HAL_TIM_IC_CaptureCallback+0x198>)
  3724. 8001a6e: 2200 movs r2, #0
  3725. 8001a70: 601a str r2, [r3, #0]
  3726. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3727. encoderYChannelA = 0;
  3728. encoderYChannelB = 0;
  3729. }
  3730. }
  3731. }
  3732. 8001a72: e060 b.n 8001b36 <HAL_TIM_IC_CaptureCallback+0x18a>
  3733. } else if (htim->Instance == TIM2)
  3734. 8001a74: 687b ldr r3, [r7, #4]
  3735. 8001a76: 681b ldr r3, [r3, #0]
  3736. 8001a78: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  3737. 8001a7c: d15b bne.n 8001b36 <HAL_TIM_IC_CaptureCallback+0x18a>
  3738. if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_3)
  3739. 8001a7e: 687b ldr r3, [r7, #4]
  3740. 8001a80: 7f1b ldrb r3, [r3, #28]
  3741. 8001a82: 2b04 cmp r3, #4
  3742. 8001a84: d114 bne.n 8001ab0 <HAL_TIM_IC_CaptureCallback+0x104>
  3743. if(encoderYChannelB > 0)
  3744. 8001a86: 4b32 ldr r3, [pc, #200] @ (8001b50 <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3745. 8001a88: 681b ldr r3, [r3, #0]
  3746. 8001a8a: 2b00 cmp r3, #0
  3747. 8001a8c: dd08 ble.n 8001aa0 <HAL_TIM_IC_CaptureCallback+0xf4>
  3748. encoderYChannelA = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_3);
  3749. 8001a8e: 2108 movs r1, #8
  3750. 8001a90: 6878 ldr r0, [r7, #4]
  3751. 8001a92: f00e fd63 bl 801055c <HAL_TIM_ReadCapturedValue>
  3752. 8001a96: 4603 mov r3, r0
  3753. 8001a98: 461a mov r2, r3
  3754. 8001a9a: 4b2e ldr r3, [pc, #184] @ (8001b54 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3755. 8001a9c: 601a str r2, [r3, #0]
  3756. 8001a9e: e01f b.n 8001ae0 <HAL_TIM_IC_CaptureCallback+0x134>
  3757. encoderYChannelA = 1;
  3758. 8001aa0: 4b2c ldr r3, [pc, #176] @ (8001b54 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3759. 8001aa2: 2201 movs r2, #1
  3760. 8001aa4: 601a str r2, [r3, #0]
  3761. __HAL_TIM_SET_COUNTER(htim,0);
  3762. 8001aa6: 687b ldr r3, [r7, #4]
  3763. 8001aa8: 681b ldr r3, [r3, #0]
  3764. 8001aaa: 2200 movs r2, #0
  3765. 8001aac: 625a str r2, [r3, #36] @ 0x24
  3766. 8001aae: e017 b.n 8001ae0 <HAL_TIM_IC_CaptureCallback+0x134>
  3767. } else if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_4)
  3768. 8001ab0: 687b ldr r3, [r7, #4]
  3769. 8001ab2: 7f1b ldrb r3, [r3, #28]
  3770. 8001ab4: 2b08 cmp r3, #8
  3771. 8001ab6: d113 bne.n 8001ae0 <HAL_TIM_IC_CaptureCallback+0x134>
  3772. if(encoderYChannelA > 0)
  3773. 8001ab8: 4b26 ldr r3, [pc, #152] @ (8001b54 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3774. 8001aba: 681b ldr r3, [r3, #0]
  3775. 8001abc: 2b00 cmp r3, #0
  3776. 8001abe: dd08 ble.n 8001ad2 <HAL_TIM_IC_CaptureCallback+0x126>
  3777. encoderYChannelB = HAL_TIM_ReadCapturedValue(htim, TIM_CHANNEL_4);
  3778. 8001ac0: 210c movs r1, #12
  3779. 8001ac2: 6878 ldr r0, [r7, #4]
  3780. 8001ac4: f00e fd4a bl 801055c <HAL_TIM_ReadCapturedValue>
  3781. 8001ac8: 4603 mov r3, r0
  3782. 8001aca: 461a mov r2, r3
  3783. 8001acc: 4b20 ldr r3, [pc, #128] @ (8001b50 <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3784. 8001ace: 601a str r2, [r3, #0]
  3785. 8001ad0: e006 b.n 8001ae0 <HAL_TIM_IC_CaptureCallback+0x134>
  3786. encoderYChannelB = 1;
  3787. 8001ad2: 4b1f ldr r3, [pc, #124] @ (8001b50 <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3788. 8001ad4: 2201 movs r2, #1
  3789. 8001ad6: 601a str r2, [r3, #0]
  3790. __HAL_TIM_SET_COUNTER(htim,0);
  3791. 8001ad8: 687b ldr r3, [r7, #4]
  3792. 8001ada: 681b ldr r3, [r3, #0]
  3793. 8001adc: 2200 movs r2, #0
  3794. 8001ade: 625a str r2, [r3, #36] @ 0x24
  3795. if((encoderYChannelA != 0) && (encoderYChannelB != 0))
  3796. 8001ae0: 4b1c ldr r3, [pc, #112] @ (8001b54 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3797. 8001ae2: 681b ldr r3, [r3, #0]
  3798. 8001ae4: 2b00 cmp r3, #0
  3799. 8001ae6: d026 beq.n 8001b36 <HAL_TIM_IC_CaptureCallback+0x18a>
  3800. 8001ae8: 4b19 ldr r3, [pc, #100] @ (8001b50 <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3801. 8001aea: 681b ldr r3, [r3, #0]
  3802. 8001aec: 2b00 cmp r3, #0
  3803. 8001aee: d022 beq.n 8001b36 <HAL_TIM_IC_CaptureCallback+0x18a>
  3804. EncoderData encoderData = { 0 };
  3805. 8001af0: 2300 movs r3, #0
  3806. 8001af2: 813b strh r3, [r7, #8]
  3807. encoderData.axe = encoderAxeY;
  3808. 8001af4: 2301 movs r3, #1
  3809. 8001af6: 723b strb r3, [r7, #8]
  3810. encoderData.direction = encoderYChannelA - encoderYChannelB < 0 ? encoderCW : encoderCCW;
  3811. 8001af8: 4b16 ldr r3, [pc, #88] @ (8001b54 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3812. 8001afa: 681a ldr r2, [r3, #0]
  3813. 8001afc: 4b14 ldr r3, [pc, #80] @ (8001b50 <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3814. 8001afe: 681b ldr r3, [r3, #0]
  3815. 8001b00: 1ad3 subs r3, r2, r3
  3816. 8001b02: 43db mvns r3, r3
  3817. 8001b04: 0fdb lsrs r3, r3, #31
  3818. 8001b06: b2db uxtb r3, r3
  3819. 8001b08: 727b strb r3, [r7, #9]
  3820. if (encoderData.direction == encoderCCW)
  3821. 8001b0a: 7a7b ldrb r3, [r7, #9]
  3822. 8001b0c: 2b01 cmp r3, #1
  3823. 8001b0e: d100 bne.n 8001b12 <HAL_TIM_IC_CaptureCallback+0x166>
  3824. asm("nop;");
  3825. 8001b10: bf00 nop
  3826. if (encoderData.direction == encoderCW)
  3827. 8001b12: 7a7b ldrb r3, [r7, #9]
  3828. 8001b14: 2b00 cmp r3, #0
  3829. 8001b16: d100 bne.n 8001b1a <HAL_TIM_IC_CaptureCallback+0x16e>
  3830. asm("nop;");
  3831. 8001b18: bf00 nop
  3832. osMessageQueuePut(encoderDataQueue, &encoderData, 0, 0);
  3833. 8001b1a: 4b0c ldr r3, [pc, #48] @ (8001b4c <HAL_TIM_IC_CaptureCallback+0x1a0>)
  3834. 8001b1c: 6818 ldr r0, [r3, #0]
  3835. 8001b1e: f107 0108 add.w r1, r7, #8
  3836. 8001b22: 2300 movs r3, #0
  3837. 8001b24: 2200 movs r2, #0
  3838. 8001b26: f012 fdc1 bl 80146ac <osMessageQueuePut>
  3839. encoderYChannelA = 0;
  3840. 8001b2a: 4b0a ldr r3, [pc, #40] @ (8001b54 <HAL_TIM_IC_CaptureCallback+0x1a8>)
  3841. 8001b2c: 2200 movs r2, #0
  3842. 8001b2e: 601a str r2, [r3, #0]
  3843. encoderYChannelB = 0;
  3844. 8001b30: 4b07 ldr r3, [pc, #28] @ (8001b50 <HAL_TIM_IC_CaptureCallback+0x1a4>)
  3845. 8001b32: 2200 movs r2, #0
  3846. 8001b34: 601a str r2, [r3, #0]
  3847. }
  3848. 8001b36: bf00 nop
  3849. 8001b38: 3710 adds r7, #16
  3850. 8001b3a: 46bd mov sp, r7
  3851. 8001b3c: bd80 pop {r7, pc}
  3852. 8001b3e: bf00 nop
  3853. 8001b40: 40000800 .word 0x40000800
  3854. 8001b44: 240007e0 .word 0x240007e0
  3855. 8001b48: 240007dc .word 0x240007dc
  3856. 8001b4c: 24000810 .word 0x24000810
  3857. 8001b50: 240007e8 .word 0x240007e8
  3858. 8001b54: 240007e4 .word 0x240007e4
  3859. 08001b58 <StartDefaultTask>:
  3860. * @param argument: Not used
  3861. * @retval None
  3862. */
  3863. /* USER CODE END Header_StartDefaultTask */
  3864. void StartDefaultTask(void *argument)
  3865. {
  3866. 8001b58: b580 push {r7, lr}
  3867. 8001b5a: b082 sub sp, #8
  3868. 8001b5c: af00 add r7, sp, #0
  3869. 8001b5e: 6078 str r0, [r7, #4]
  3870. /* USER CODE BEGIN 5 */
  3871. #ifdef WATCHDOG_ENABLED
  3872. HAL_IWDG_Refresh(&hiwdg1);
  3873. 8001b60: 485e ldr r0, [pc, #376] @ (8001cdc <StartDefaultTask+0x184>)
  3874. 8001b62: f009 fd97 bl 800b694 <HAL_IWDG_Refresh>
  3875. #endif
  3876. SelectCurrentSensorGain(CurrentSensorL1, csGain3);
  3877. 8001b66: 2102 movs r1, #2
  3878. 8001b68: 2000 movs r0, #0
  3879. 8001b6a: f001 f9fd bl 8002f68 <SelectCurrentSensorGain>
  3880. SelectCurrentSensorGain(CurrentSensorL2, csGain3);
  3881. 8001b6e: 2102 movs r1, #2
  3882. 8001b70: 2001 movs r0, #1
  3883. 8001b72: f001 f9f9 bl 8002f68 <SelectCurrentSensorGain>
  3884. SelectCurrentSensorGain(CurrentSensorL3, csGain3);
  3885. 8001b76: 2102 movs r1, #2
  3886. 8001b78: 2002 movs r0, #2
  3887. 8001b7a: f001 f9f5 bl 8002f68 <SelectCurrentSensorGain>
  3888. EnableCurrentSensors();
  3889. 8001b7e: f001 f9e7 bl 8002f50 <EnableCurrentSensors>
  3890. osDelay(pdMS_TO_TICKS(100));
  3891. 8001b82: 2064 movs r0, #100 @ 0x64
  3892. 8001b84: f012 faff bl 8014186 <osDelay>
  3893. #ifdef WATCHDOG_ENABLED
  3894. HAL_IWDG_Refresh(&hiwdg1);
  3895. 8001b88: 4854 ldr r0, [pc, #336] @ (8001cdc <StartDefaultTask+0x184>)
  3896. 8001b8a: f009 fd83 bl 800b694 <HAL_IWDG_Refresh>
  3897. #endif
  3898. if(HAL_TIM_Base_Start(&htim8) != HAL_OK)
  3899. 8001b8e: 4854 ldr r0, [pc, #336] @ (8001ce0 <StartDefaultTask+0x188>)
  3900. 8001b90: f00d fc9e bl 800f4d0 <HAL_TIM_Base_Start>
  3901. 8001b94: 4603 mov r3, r0
  3902. 8001b96: 2b00 cmp r3, #0
  3903. 8001b98: d001 beq.n 8001b9e <StartDefaultTask+0x46>
  3904. {
  3905. Error_Handler();
  3906. 8001b9a: f000 f997 bl 8001ecc <Error_Handler>
  3907. }
  3908. if(HAL_TIM_Base_Start_IT(&htim2) != HAL_OK)
  3909. 8001b9e: 4851 ldr r0, [pc, #324] @ (8001ce4 <StartDefaultTask+0x18c>)
  3910. 8001ba0: f00d fd06 bl 800f5b0 <HAL_TIM_Base_Start_IT>
  3911. 8001ba4: 4603 mov r3, r0
  3912. 8001ba6: 2b00 cmp r3, #0
  3913. 8001ba8: d001 beq.n 8001bae <StartDefaultTask+0x56>
  3914. {
  3915. Error_Handler();
  3916. 8001baa: f000 f98f bl 8001ecc <Error_Handler>
  3917. }
  3918. if(HAL_TIM_Base_Start_IT(&htim4) != HAL_OK)
  3919. 8001bae: 484e ldr r0, [pc, #312] @ (8001ce8 <StartDefaultTask+0x190>)
  3920. 8001bb0: f00d fcfe bl 800f5b0 <HAL_TIM_Base_Start_IT>
  3921. 8001bb4: 4603 mov r3, r0
  3922. 8001bb6: 2b00 cmp r3, #0
  3923. 8001bb8: d001 beq.n 8001bbe <StartDefaultTask+0x66>
  3924. {
  3925. Error_Handler();
  3926. 8001bba: f000 f987 bl 8001ecc <Error_Handler>
  3927. }
  3928. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_3) != HAL_OK)
  3929. 8001bbe: 2108 movs r1, #8
  3930. 8001bc0: 4849 ldr r0, [pc, #292] @ (8001ce8 <StartDefaultTask+0x190>)
  3931. 8001bc2: f00d ffcb bl 800fb5c <HAL_TIM_IC_Start_IT>
  3932. 8001bc6: 4603 mov r3, r0
  3933. 8001bc8: 2b00 cmp r3, #0
  3934. 8001bca: d001 beq.n 8001bd0 <StartDefaultTask+0x78>
  3935. {
  3936. Error_Handler();
  3937. 8001bcc: f000 f97e bl 8001ecc <Error_Handler>
  3938. }
  3939. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_4) != HAL_OK)
  3940. 8001bd0: 210c movs r1, #12
  3941. 8001bd2: 4845 ldr r0, [pc, #276] @ (8001ce8 <StartDefaultTask+0x190>)
  3942. 8001bd4: f00d ffc2 bl 800fb5c <HAL_TIM_IC_Start_IT>
  3943. 8001bd8: 4603 mov r3, r0
  3944. 8001bda: 2b00 cmp r3, #0
  3945. 8001bdc: d001 beq.n 8001be2 <StartDefaultTask+0x8a>
  3946. {
  3947. Error_Handler();
  3948. 8001bde: f000 f975 bl 8001ecc <Error_Handler>
  3949. }
  3950. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_3) != HAL_OK)
  3951. 8001be2: 2108 movs r1, #8
  3952. 8001be4: 483f ldr r0, [pc, #252] @ (8001ce4 <StartDefaultTask+0x18c>)
  3953. 8001be6: f00d ffb9 bl 800fb5c <HAL_TIM_IC_Start_IT>
  3954. 8001bea: 4603 mov r3, r0
  3955. 8001bec: 2b00 cmp r3, #0
  3956. 8001bee: d001 beq.n 8001bf4 <StartDefaultTask+0x9c>
  3957. {
  3958. Error_Handler();
  3959. 8001bf0: f000 f96c bl 8001ecc <Error_Handler>
  3960. }
  3961. if(HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_4) != HAL_OK)
  3962. 8001bf4: 210c movs r1, #12
  3963. 8001bf6: 483b ldr r0, [pc, #236] @ (8001ce4 <StartDefaultTask+0x18c>)
  3964. 8001bf8: f00d ffb0 bl 800fb5c <HAL_TIM_IC_Start_IT>
  3965. 8001bfc: 4603 mov r3, r0
  3966. 8001bfe: 2b00 cmp r3, #0
  3967. 8001c00: d001 beq.n 8001c06 <StartDefaultTask+0xae>
  3968. {
  3969. Error_Handler();
  3970. 8001c02: f000 f963 bl 8001ecc <Error_Handler>
  3971. }
  3972. if(HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData) != HAL_OK)
  3973. 8001c06: 2207 movs r2, #7
  3974. 8001c08: 4938 ldr r1, [pc, #224] @ (8001cec <StartDefaultTask+0x194>)
  3975. 8001c0a: 4839 ldr r0, [pc, #228] @ (8001cf0 <StartDefaultTask+0x198>)
  3976. 8001c0c: f004 fd08 bl 8006620 <HAL_ADC_Start_DMA>
  3977. 8001c10: 4603 mov r3, r0
  3978. 8001c12: 2b00 cmp r3, #0
  3979. 8001c14: d001 beq.n 8001c1a <StartDefaultTask+0xc2>
  3980. {
  3981. Error_Handler();
  3982. 8001c16: f000 f959 bl 8001ecc <Error_Handler>
  3983. }
  3984. if(HAL_ADC_Start_DMA(&hadc2, (uint32_t *)adc2Data.adcDataBuffer, ADC2LastData) != HAL_OK)
  3985. 8001c1a: 2203 movs r2, #3
  3986. 8001c1c: 4935 ldr r1, [pc, #212] @ (8001cf4 <StartDefaultTask+0x19c>)
  3987. 8001c1e: 4836 ldr r0, [pc, #216] @ (8001cf8 <StartDefaultTask+0x1a0>)
  3988. 8001c20: f004 fcfe bl 8006620 <HAL_ADC_Start_DMA>
  3989. 8001c24: 4603 mov r3, r0
  3990. 8001c26: 2b00 cmp r3, #0
  3991. 8001c28: d001 beq.n 8001c2e <StartDefaultTask+0xd6>
  3992. {
  3993. Error_Handler();
  3994. 8001c2a: f000 f94f bl 8001ecc <Error_Handler>
  3995. }
  3996. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData) != HAL_OK)
  3997. 8001c2e: 2205 movs r2, #5
  3998. 8001c30: 4932 ldr r1, [pc, #200] @ (8001cfc <StartDefaultTask+0x1a4>)
  3999. 8001c32: 4833 ldr r0, [pc, #204] @ (8001d00 <StartDefaultTask+0x1a8>)
  4000. 8001c34: f004 fcf4 bl 8006620 <HAL_ADC_Start_DMA>
  4001. 8001c38: 4603 mov r3, r0
  4002. 8001c3a: 2b00 cmp r3, #0
  4003. 8001c3c: d001 beq.n 8001c42 <StartDefaultTask+0xea>
  4004. {
  4005. Error_Handler();
  4006. 8001c3e: f000 f945 bl 8001ecc <Error_Handler>
  4007. }
  4008. HAL_COMP_Start(&hcomp1);
  4009. 8001c42: 4830 ldr r0, [pc, #192] @ (8001d04 <StartDefaultTask+0x1ac>)
  4010. 8001c44: f005 fe70 bl 8007928 <HAL_COMP_Start>
  4011. #ifdef WATCHDOG_ENABLED
  4012. HAL_IWDG_Refresh(&hiwdg1);
  4013. 8001c48: 4824 ldr r0, [pc, #144] @ (8001cdc <StartDefaultTask+0x184>)
  4014. 8001c4a: f009 fd23 bl 800b694 <HAL_IWDG_Refresh>
  4015. #endif
  4016. /* Infinite loop */
  4017. for(;;)
  4018. {
  4019. osDelay(pdMS_TO_TICKS(100));
  4020. 8001c4e: 2064 movs r0, #100 @ 0x64
  4021. 8001c50: f012 fa99 bl 8014186 <osDelay>
  4022. #ifdef WATCHDOG_ENABLED
  4023. HAL_IWDG_Refresh(&hiwdg1);
  4024. 8001c54: 4821 ldr r0, [pc, #132] @ (8001cdc <StartDefaultTask+0x184>)
  4025. 8001c56: f009 fd1d bl 800b694 <HAL_IWDG_Refresh>
  4026. #endif
  4027. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  4028. 8001c5a: 2100 movs r1, #0
  4029. 8001c5c: 482a ldr r0, [pc, #168] @ (8001d08 <StartDefaultTask+0x1b0>)
  4030. 8001c5e: f00e fcdf bl 8010620 <HAL_TIM_GetChannelState>
  4031. 8001c62: 4603 mov r3, r0
  4032. 8001c64: 2b01 cmp r3, #1
  4033. 8001c66: d118 bne.n 8001c9a <StartDefaultTask+0x142>
  4034. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_2) == HAL_TIM_CHANNEL_STATE_READY)
  4035. 8001c68: 2104 movs r1, #4
  4036. 8001c6a: 4827 ldr r0, [pc, #156] @ (8001d08 <StartDefaultTask+0x1b0>)
  4037. 8001c6c: f00e fcd8 bl 8010620 <HAL_TIM_GetChannelState>
  4038. 8001c70: 4603 mov r3, r0
  4039. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  4040. 8001c72: 2b01 cmp r3, #1
  4041. 8001c74: d111 bne.n 8001c9a <StartDefaultTask+0x142>
  4042. {
  4043. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  4044. 8001c76: 4b25 ldr r3, [pc, #148] @ (8001d0c <StartDefaultTask+0x1b4>)
  4045. 8001c78: 681b ldr r3, [r3, #0]
  4046. 8001c7a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4047. 8001c7e: 4618 mov r0, r3
  4048. 8001c80: f012 fc19 bl 80144b6 <osMutexAcquire>
  4049. 8001c84: 4603 mov r3, r0
  4050. 8001c86: 2b00 cmp r3, #0
  4051. 8001c88: d107 bne.n 8001c9a <StartDefaultTask+0x142>
  4052. {
  4053. sensorsInfo.motorXStatus = 0;
  4054. 8001c8a: 4b21 ldr r3, [pc, #132] @ (8001d10 <StartDefaultTask+0x1b8>)
  4055. 8001c8c: 2200 movs r2, #0
  4056. 8001c8e: 751a strb r2, [r3, #20]
  4057. osMutexRelease(sensorsInfoMutex);
  4058. 8001c90: 4b1e ldr r3, [pc, #120] @ (8001d0c <StartDefaultTask+0x1b4>)
  4059. 8001c92: 681b ldr r3, [r3, #0]
  4060. 8001c94: 4618 mov r0, r3
  4061. 8001c96: f012 fc59 bl 801454c <osMutexRelease>
  4062. }
  4063. }
  4064. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  4065. 8001c9a: 2108 movs r1, #8
  4066. 8001c9c: 481a ldr r0, [pc, #104] @ (8001d08 <StartDefaultTask+0x1b0>)
  4067. 8001c9e: f00e fcbf bl 8010620 <HAL_TIM_GetChannelState>
  4068. 8001ca2: 4603 mov r3, r0
  4069. 8001ca4: 2b01 cmp r3, #1
  4070. 8001ca6: d1d2 bne.n 8001c4e <StartDefaultTask+0xf6>
  4071. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_4) == HAL_TIM_CHANNEL_STATE_READY)
  4072. 8001ca8: 210c movs r1, #12
  4073. 8001caa: 4817 ldr r0, [pc, #92] @ (8001d08 <StartDefaultTask+0x1b0>)
  4074. 8001cac: f00e fcb8 bl 8010620 <HAL_TIM_GetChannelState>
  4075. 8001cb0: 4603 mov r3, r0
  4076. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  4077. 8001cb2: 2b01 cmp r3, #1
  4078. 8001cb4: d1cb bne.n 8001c4e <StartDefaultTask+0xf6>
  4079. {
  4080. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  4081. 8001cb6: 4b15 ldr r3, [pc, #84] @ (8001d0c <StartDefaultTask+0x1b4>)
  4082. 8001cb8: 681b ldr r3, [r3, #0]
  4083. 8001cba: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4084. 8001cbe: 4618 mov r0, r3
  4085. 8001cc0: f012 fbf9 bl 80144b6 <osMutexAcquire>
  4086. 8001cc4: 4603 mov r3, r0
  4087. 8001cc6: 2b00 cmp r3, #0
  4088. 8001cc8: d1c1 bne.n 8001c4e <StartDefaultTask+0xf6>
  4089. {
  4090. sensorsInfo.motorYStatus = 0;
  4091. 8001cca: 4b11 ldr r3, [pc, #68] @ (8001d10 <StartDefaultTask+0x1b8>)
  4092. 8001ccc: 2200 movs r2, #0
  4093. 8001cce: 755a strb r2, [r3, #21]
  4094. osMutexRelease(sensorsInfoMutex);
  4095. 8001cd0: 4b0e ldr r3, [pc, #56] @ (8001d0c <StartDefaultTask+0x1b4>)
  4096. 8001cd2: 681b ldr r3, [r3, #0]
  4097. 8001cd4: 4618 mov r0, r3
  4098. 8001cd6: f012 fc39 bl 801454c <osMutexRelease>
  4099. osDelay(pdMS_TO_TICKS(100));
  4100. 8001cda: e7b8 b.n 8001c4e <StartDefaultTask+0xf6>
  4101. 8001cdc: 24000418 .word 0x24000418
  4102. 8001ce0: 2400056c .word 0x2400056c
  4103. 8001ce4: 24000488 .word 0x24000488
  4104. 8001ce8: 24000520 .word 0x24000520
  4105. 8001cec: 240000c0 .word 0x240000c0
  4106. 8001cf0: 24000120 .word 0x24000120
  4107. 8001cf4: 240000e0 .word 0x240000e0
  4108. 8001cf8: 24000184 .word 0x24000184
  4109. 8001cfc: 24000100 .word 0x24000100
  4110. 8001d00: 240001e8 .word 0x240001e8
  4111. 8001d04: 240003b4 .word 0x240003b4
  4112. 8001d08: 240004d4 .word 0x240004d4
  4113. 8001d0c: 2400081c .word 0x2400081c
  4114. 8001d10: 24000860 .word 0x24000860
  4115. 08001d14 <debugLedTimerCallback>:
  4116. /* USER CODE END 5 */
  4117. }
  4118. /* debugLedTimerCallback function */
  4119. void debugLedTimerCallback(void *argument)
  4120. {
  4121. 8001d14: b580 push {r7, lr}
  4122. 8001d16: b082 sub sp, #8
  4123. 8001d18: af00 add r7, sp, #0
  4124. 8001d1a: 6078 str r0, [r7, #4]
  4125. /* USER CODE BEGIN debugLedTimerCallback */
  4126. DbgLEDOff (DBG_LED1);
  4127. 8001d1c: 2010 movs r0, #16
  4128. 8001d1e: f001 f8f3 bl 8002f08 <DbgLEDOff>
  4129. /* USER CODE END debugLedTimerCallback */
  4130. }
  4131. 8001d22: bf00 nop
  4132. 8001d24: 3708 adds r7, #8
  4133. 8001d26: 46bd mov sp, r7
  4134. 8001d28: bd80 pop {r7, pc}
  4135. ...
  4136. 08001d2c <fanTimerCallback>:
  4137. /* fanTimerCallback function */
  4138. void fanTimerCallback(void *argument)
  4139. {
  4140. 8001d2c: b580 push {r7, lr}
  4141. 8001d2e: b082 sub sp, #8
  4142. 8001d30: af00 add r7, sp, #0
  4143. 8001d32: 6078 str r0, [r7, #4]
  4144. /* USER CODE BEGIN fanTimerCallback */
  4145. HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_2);
  4146. 8001d34: 2104 movs r1, #4
  4147. 8001d36: 4803 ldr r0, [pc, #12] @ (8001d44 <fanTimerCallback+0x18>)
  4148. 8001d38: f00d fe18 bl 800f96c <HAL_TIM_PWM_Stop>
  4149. /* USER CODE END fanTimerCallback */
  4150. }
  4151. 8001d3c: bf00 nop
  4152. 8001d3e: 3708 adds r7, #8
  4153. 8001d40: 46bd mov sp, r7
  4154. 8001d42: bd80 pop {r7, pc}
  4155. 8001d44: 2400043c .word 0x2400043c
  4156. 08001d48 <motorXTimerCallback>:
  4157. /* motorXTimerCallback function */
  4158. void motorXTimerCallback(void *argument)
  4159. {
  4160. 8001d48: b580 push {r7, lr}
  4161. 8001d4a: b084 sub sp, #16
  4162. 8001d4c: af02 add r7, sp, #8
  4163. 8001d4e: 6078 str r0, [r7, #4]
  4164. /* USER CODE BEGIN motorXTimerCallback */
  4165. MotorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, HiZ, 0);
  4166. 8001d50: 2300 movs r3, #0
  4167. 8001d52: 9301 str r3, [sp, #4]
  4168. 8001d54: 2300 movs r3, #0
  4169. 8001d56: 9300 str r3, [sp, #0]
  4170. 8001d58: 2304 movs r3, #4
  4171. 8001d5a: 2200 movs r2, #0
  4172. 8001d5c: 4907 ldr r1, [pc, #28] @ (8001d7c <motorXTimerCallback+0x34>)
  4173. 8001d5e: 4808 ldr r0, [pc, #32] @ (8001d80 <motorXTimerCallback+0x38>)
  4174. 8001d60: f001 fa87 bl 8003272 <MotorAction>
  4175. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
  4176. 8001d64: 2100 movs r1, #0
  4177. 8001d66: 4806 ldr r0, [pc, #24] @ (8001d80 <motorXTimerCallback+0x38>)
  4178. 8001d68: f00d fe00 bl 800f96c <HAL_TIM_PWM_Stop>
  4179. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_2);
  4180. 8001d6c: 2104 movs r1, #4
  4181. 8001d6e: 4804 ldr r0, [pc, #16] @ (8001d80 <motorXTimerCallback+0x38>)
  4182. 8001d70: f00d fdfc bl 800f96c <HAL_TIM_PWM_Stop>
  4183. /* USER CODE END motorXTimerCallback */
  4184. }
  4185. 8001d74: bf00 nop
  4186. 8001d76: 3708 adds r7, #8
  4187. 8001d78: 46bd mov sp, r7
  4188. 8001d7a: bd80 pop {r7, pc}
  4189. 8001d7c: 240007c0 .word 0x240007c0
  4190. 8001d80: 240004d4 .word 0x240004d4
  4191. 08001d84 <motorYTimerCallback>:
  4192. /* motorYTimerCallback function */
  4193. void motorYTimerCallback(void *argument)
  4194. {
  4195. 8001d84: b580 push {r7, lr}
  4196. 8001d86: b084 sub sp, #16
  4197. 8001d88: af02 add r7, sp, #8
  4198. 8001d8a: 6078 str r0, [r7, #4]
  4199. /* USER CODE BEGIN motorYTimerCallback */
  4200. MotorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, HiZ, 0);
  4201. 8001d8c: 2300 movs r3, #0
  4202. 8001d8e: 9301 str r3, [sp, #4]
  4203. 8001d90: 2300 movs r3, #0
  4204. 8001d92: 9300 str r3, [sp, #0]
  4205. 8001d94: 230c movs r3, #12
  4206. 8001d96: 2208 movs r2, #8
  4207. 8001d98: 4907 ldr r1, [pc, #28] @ (8001db8 <motorYTimerCallback+0x34>)
  4208. 8001d9a: 4808 ldr r0, [pc, #32] @ (8001dbc <motorYTimerCallback+0x38>)
  4209. 8001d9c: f001 fa69 bl 8003272 <MotorAction>
  4210. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_3);
  4211. 8001da0: 2108 movs r1, #8
  4212. 8001da2: 4806 ldr r0, [pc, #24] @ (8001dbc <motorYTimerCallback+0x38>)
  4213. 8001da4: f00d fde2 bl 800f96c <HAL_TIM_PWM_Stop>
  4214. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_4);
  4215. 8001da8: 210c movs r1, #12
  4216. 8001daa: 4804 ldr r0, [pc, #16] @ (8001dbc <motorYTimerCallback+0x38>)
  4217. 8001dac: f00d fdde bl 800f96c <HAL_TIM_PWM_Stop>
  4218. /* USER CODE END motorYTimerCallback */
  4219. }
  4220. 8001db0: bf00 nop
  4221. 8001db2: 3708 adds r7, #8
  4222. 8001db4: 46bd mov sp, r7
  4223. 8001db6: bd80 pop {r7, pc}
  4224. 8001db8: 240007c0 .word 0x240007c0
  4225. 8001dbc: 240004d4 .word 0x240004d4
  4226. 08001dc0 <MPU_Config>:
  4227. /* MPU Configuration */
  4228. void MPU_Config(void)
  4229. {
  4230. 8001dc0: b580 push {r7, lr}
  4231. 8001dc2: b084 sub sp, #16
  4232. 8001dc4: af00 add r7, sp, #0
  4233. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  4234. 8001dc6: 463b mov r3, r7
  4235. 8001dc8: 2200 movs r2, #0
  4236. 8001dca: 601a str r2, [r3, #0]
  4237. 8001dcc: 605a str r2, [r3, #4]
  4238. 8001dce: 609a str r2, [r3, #8]
  4239. 8001dd0: 60da str r2, [r3, #12]
  4240. /* Disables the MPU */
  4241. HAL_MPU_Disable();
  4242. 8001dd2: f005 fef1 bl 8007bb8 <HAL_MPU_Disable>
  4243. /** Initializes and configures the Region and the memory to be protected
  4244. */
  4245. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  4246. 8001dd6: 2301 movs r3, #1
  4247. 8001dd8: 703b strb r3, [r7, #0]
  4248. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  4249. 8001dda: 2300 movs r3, #0
  4250. 8001ddc: 707b strb r3, [r7, #1]
  4251. MPU_InitStruct.BaseAddress = 0x0;
  4252. 8001dde: 2300 movs r3, #0
  4253. 8001de0: 607b str r3, [r7, #4]
  4254. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  4255. 8001de2: 231f movs r3, #31
  4256. 8001de4: 723b strb r3, [r7, #8]
  4257. MPU_InitStruct.SubRegionDisable = 0x87;
  4258. 8001de6: 2387 movs r3, #135 @ 0x87
  4259. 8001de8: 727b strb r3, [r7, #9]
  4260. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4261. 8001dea: 2300 movs r3, #0
  4262. 8001dec: 72bb strb r3, [r7, #10]
  4263. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  4264. 8001dee: 2300 movs r3, #0
  4265. 8001df0: 72fb strb r3, [r7, #11]
  4266. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  4267. 8001df2: 2301 movs r3, #1
  4268. 8001df4: 733b strb r3, [r7, #12]
  4269. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4270. 8001df6: 2301 movs r3, #1
  4271. 8001df8: 737b strb r3, [r7, #13]
  4272. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  4273. 8001dfa: 2300 movs r3, #0
  4274. 8001dfc: 73bb strb r3, [r7, #14]
  4275. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  4276. 8001dfe: 2300 movs r3, #0
  4277. 8001e00: 73fb strb r3, [r7, #15]
  4278. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4279. 8001e02: 463b mov r3, r7
  4280. 8001e04: 4618 mov r0, r3
  4281. 8001e06: f005 ff0f bl 8007c28 <HAL_MPU_ConfigRegion>
  4282. /** Initializes and configures the Region and the memory to be protected
  4283. */
  4284. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  4285. 8001e0a: 2301 movs r3, #1
  4286. 8001e0c: 707b strb r3, [r7, #1]
  4287. MPU_InitStruct.BaseAddress = 0x24020000;
  4288. 8001e0e: 4b13 ldr r3, [pc, #76] @ (8001e5c <MPU_Config+0x9c>)
  4289. 8001e10: 607b str r3, [r7, #4]
  4290. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  4291. 8001e12: 2310 movs r3, #16
  4292. 8001e14: 723b strb r3, [r7, #8]
  4293. MPU_InitStruct.SubRegionDisable = 0x0;
  4294. 8001e16: 2300 movs r3, #0
  4295. 8001e18: 727b strb r3, [r7, #9]
  4296. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  4297. 8001e1a: 2301 movs r3, #1
  4298. 8001e1c: 72bb strb r3, [r7, #10]
  4299. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  4300. 8001e1e: 2303 movs r3, #3
  4301. 8001e20: 72fb strb r3, [r7, #11]
  4302. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  4303. 8001e22: 2300 movs r3, #0
  4304. 8001e24: 737b strb r3, [r7, #13]
  4305. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4306. 8001e26: 463b mov r3, r7
  4307. 8001e28: 4618 mov r0, r3
  4308. 8001e2a: f005 fefd bl 8007c28 <HAL_MPU_ConfigRegion>
  4309. /** Initializes and configures the Region and the memory to be protected
  4310. */
  4311. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  4312. 8001e2e: 2302 movs r3, #2
  4313. 8001e30: 707b strb r3, [r7, #1]
  4314. MPU_InitStruct.BaseAddress = 0x24040000;
  4315. 8001e32: 4b0b ldr r3, [pc, #44] @ (8001e60 <MPU_Config+0xa0>)
  4316. 8001e34: 607b str r3, [r7, #4]
  4317. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  4318. 8001e36: 2308 movs r3, #8
  4319. 8001e38: 723b strb r3, [r7, #8]
  4320. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  4321. 8001e3a: 2300 movs r3, #0
  4322. 8001e3c: 72bb strb r3, [r7, #10]
  4323. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  4324. 8001e3e: 2301 movs r3, #1
  4325. 8001e40: 737b strb r3, [r7, #13]
  4326. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  4327. 8001e42: 2301 movs r3, #1
  4328. 8001e44: 73fb strb r3, [r7, #15]
  4329. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  4330. 8001e46: 463b mov r3, r7
  4331. 8001e48: 4618 mov r0, r3
  4332. 8001e4a: f005 feed bl 8007c28 <HAL_MPU_ConfigRegion>
  4333. /* Enables the MPU */
  4334. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4335. 8001e4e: 2004 movs r0, #4
  4336. 8001e50: f005 feca bl 8007be8 <HAL_MPU_Enable>
  4337. }
  4338. 8001e54: bf00 nop
  4339. 8001e56: 3710 adds r7, #16
  4340. 8001e58: 46bd mov sp, r7
  4341. 8001e5a: bd80 pop {r7, pc}
  4342. 8001e5c: 24020000 .word 0x24020000
  4343. 8001e60: 24040000 .word 0x24040000
  4344. 08001e64 <HAL_TIM_PeriodElapsedCallback>:
  4345. * a global variable "uwTick" used as application time base.
  4346. * @param htim : TIM handle
  4347. * @retval None
  4348. */
  4349. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  4350. {
  4351. 8001e64: b580 push {r7, lr}
  4352. 8001e66: b082 sub sp, #8
  4353. 8001e68: af00 add r7, sp, #0
  4354. 8001e6a: 6078 str r0, [r7, #4]
  4355. /* USER CODE BEGIN Callback 0 */
  4356. /* USER CODE END Callback 0 */
  4357. if (htim->Instance == TIM6) {
  4358. 8001e6c: 687b ldr r3, [r7, #4]
  4359. 8001e6e: 681b ldr r3, [r3, #0]
  4360. 8001e70: 4a10 ldr r2, [pc, #64] @ (8001eb4 <HAL_TIM_PeriodElapsedCallback+0x50>)
  4361. 8001e72: 4293 cmp r3, r2
  4362. 8001e74: d102 bne.n 8001e7c <HAL_TIM_PeriodElapsedCallback+0x18>
  4363. HAL_IncTick();
  4364. 8001e76: f003 ffbd bl 8005df4 <HAL_IncTick>
  4365. {
  4366. encoderYChannelA = 0;
  4367. encoderYChannelB = 0;
  4368. }
  4369. /* USER CODE END Callback 1 */
  4370. }
  4371. 8001e7a: e016 b.n 8001eaa <HAL_TIM_PeriodElapsedCallback+0x46>
  4372. else if (htim->Instance == TIM4)
  4373. 8001e7c: 687b ldr r3, [r7, #4]
  4374. 8001e7e: 681b ldr r3, [r3, #0]
  4375. 8001e80: 4a0d ldr r2, [pc, #52] @ (8001eb8 <HAL_TIM_PeriodElapsedCallback+0x54>)
  4376. 8001e82: 4293 cmp r3, r2
  4377. 8001e84: d106 bne.n 8001e94 <HAL_TIM_PeriodElapsedCallback+0x30>
  4378. encoderXChannelA = 0;
  4379. 8001e86: 4b0d ldr r3, [pc, #52] @ (8001ebc <HAL_TIM_PeriodElapsedCallback+0x58>)
  4380. 8001e88: 2200 movs r2, #0
  4381. 8001e8a: 601a str r2, [r3, #0]
  4382. encoderXChannelB = 0;
  4383. 8001e8c: 4b0c ldr r3, [pc, #48] @ (8001ec0 <HAL_TIM_PeriodElapsedCallback+0x5c>)
  4384. 8001e8e: 2200 movs r2, #0
  4385. 8001e90: 601a str r2, [r3, #0]
  4386. }
  4387. 8001e92: e00a b.n 8001eaa <HAL_TIM_PeriodElapsedCallback+0x46>
  4388. else if (htim->Instance == TIM2)
  4389. 8001e94: 687b ldr r3, [r7, #4]
  4390. 8001e96: 681b ldr r3, [r3, #0]
  4391. 8001e98: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  4392. 8001e9c: d105 bne.n 8001eaa <HAL_TIM_PeriodElapsedCallback+0x46>
  4393. encoderYChannelA = 0;
  4394. 8001e9e: 4b09 ldr r3, [pc, #36] @ (8001ec4 <HAL_TIM_PeriodElapsedCallback+0x60>)
  4395. 8001ea0: 2200 movs r2, #0
  4396. 8001ea2: 601a str r2, [r3, #0]
  4397. encoderYChannelB = 0;
  4398. 8001ea4: 4b08 ldr r3, [pc, #32] @ (8001ec8 <HAL_TIM_PeriodElapsedCallback+0x64>)
  4399. 8001ea6: 2200 movs r2, #0
  4400. 8001ea8: 601a str r2, [r3, #0]
  4401. }
  4402. 8001eaa: bf00 nop
  4403. 8001eac: 3708 adds r7, #8
  4404. 8001eae: 46bd mov sp, r7
  4405. 8001eb0: bd80 pop {r7, pc}
  4406. 8001eb2: bf00 nop
  4407. 8001eb4: 40001000 .word 0x40001000
  4408. 8001eb8: 40000800 .word 0x40000800
  4409. 8001ebc: 240007dc .word 0x240007dc
  4410. 8001ec0: 240007e0 .word 0x240007e0
  4411. 8001ec4: 240007e4 .word 0x240007e4
  4412. 8001ec8: 240007e8 .word 0x240007e8
  4413. 08001ecc <Error_Handler>:
  4414. /**
  4415. * @brief This function is executed in case of error occurrence.
  4416. * @retval None
  4417. */
  4418. void Error_Handler(void)
  4419. {
  4420. 8001ecc: b580 push {r7, lr}
  4421. 8001ece: af00 add r7, sp, #0
  4422. __ASM volatile ("cpsid i" : : : "memory");
  4423. 8001ed0: b672 cpsid i
  4424. }
  4425. 8001ed2: bf00 nop
  4426. /* USER CODE BEGIN Error_Handler_Debug */
  4427. /* User can add his own implementation to report the HAL error return state */
  4428. __disable_irq();
  4429. NVIC_SystemReset();
  4430. 8001ed4: f7fe fb88 bl 80005e8 <__NVIC_SystemReset>
  4431. 08001ed8 <MeasTasksInit>:
  4432. extern osTimerId_t motorXTimerHandle;
  4433. extern osTimerId_t motorYTimerHandle;
  4434. //extern osMutexId_t positionSettingMutex;
  4435. void MeasTasksInit (void) {
  4436. 8001ed8: b580 push {r7, lr}
  4437. 8001eda: b0ae sub sp, #184 @ 0xb8
  4438. 8001edc: af00 add r7, sp, #0
  4439. vRefmVMutex = osMutexNew (NULL);
  4440. 8001ede: 2000 movs r0, #0
  4441. 8001ee0: f012 fa63 bl 80143aa <osMutexNew>
  4442. 8001ee4: 4603 mov r3, r0
  4443. 8001ee6: 4a58 ldr r2, [pc, #352] @ (8002048 <MeasTasksInit+0x170>)
  4444. 8001ee8: 6013 str r3, [r2, #0]
  4445. resMeasurementsMutex = osMutexNew (NULL);
  4446. 8001eea: 2000 movs r0, #0
  4447. 8001eec: f012 fa5d bl 80143aa <osMutexNew>
  4448. 8001ef0: 4603 mov r3, r0
  4449. 8001ef2: 4a56 ldr r2, [pc, #344] @ (800204c <MeasTasksInit+0x174>)
  4450. 8001ef4: 6013 str r3, [r2, #0]
  4451. sensorsInfoMutex = osMutexNew (NULL);
  4452. 8001ef6: 2000 movs r0, #0
  4453. 8001ef8: f012 fa57 bl 80143aa <osMutexNew>
  4454. 8001efc: 4603 mov r3, r0
  4455. 8001efe: 4a54 ldr r2, [pc, #336] @ (8002050 <MeasTasksInit+0x178>)
  4456. 8001f00: 6013 str r3, [r2, #0]
  4457. ILxRefMutex = osMutexNew (NULL);
  4458. 8001f02: 2000 movs r0, #0
  4459. 8001f04: f012 fa51 bl 80143aa <osMutexNew>
  4460. 8001f08: 4603 mov r3, r0
  4461. 8001f0a: 4a52 ldr r2, [pc, #328] @ (8002054 <MeasTasksInit+0x17c>)
  4462. 8001f0c: 6013 str r3, [r2, #0]
  4463. adc1MeasDataQueue = osMessageQueueNew (8, sizeof (ADC1_Data), NULL);
  4464. 8001f0e: 2200 movs r2, #0
  4465. 8001f10: 2120 movs r1, #32
  4466. 8001f12: 2008 movs r0, #8
  4467. 8001f14: f012 fb57 bl 80145c6 <osMessageQueueNew>
  4468. 8001f18: 4603 mov r3, r0
  4469. 8001f1a: 4a4f ldr r2, [pc, #316] @ (8002058 <MeasTasksInit+0x180>)
  4470. 8001f1c: 6013 str r3, [r2, #0]
  4471. adc2MeasDataQueue = osMessageQueueNew (8, sizeof (ADC2_Data), NULL);
  4472. 8001f1e: 2200 movs r2, #0
  4473. 8001f20: 2120 movs r1, #32
  4474. 8001f22: 2008 movs r0, #8
  4475. 8001f24: f012 fb4f bl 80145c6 <osMessageQueueNew>
  4476. 8001f28: 4603 mov r3, r0
  4477. 8001f2a: 4a4c ldr r2, [pc, #304] @ (800205c <MeasTasksInit+0x184>)
  4478. 8001f2c: 6013 str r3, [r2, #0]
  4479. adc3MeasDataQueue = osMessageQueueNew (8, sizeof (ADC3_Data), NULL);
  4480. 8001f2e: 2200 movs r2, #0
  4481. 8001f30: 2120 movs r1, #32
  4482. 8001f32: 2008 movs r0, #8
  4483. 8001f34: f012 fb47 bl 80145c6 <osMessageQueueNew>
  4484. 8001f38: 4603 mov r3, r0
  4485. 8001f3a: 4a49 ldr r2, [pc, #292] @ (8002060 <MeasTasksInit+0x188>)
  4486. 8001f3c: 6013 str r3, [r2, #0]
  4487. osThreadAttr_t osThreadAttradc1MeasTask = { 0 };
  4488. 8001f3e: f107 0394 add.w r3, r7, #148 @ 0x94
  4489. 8001f42: 2224 movs r2, #36 @ 0x24
  4490. 8001f44: 2100 movs r1, #0
  4491. 8001f46: 4618 mov r0, r3
  4492. 8001f48: f016 f9de bl 8018308 <memset>
  4493. osThreadAttr_t osThreadAttradc2MeasTask = { 0 };
  4494. 8001f4c: f107 0370 add.w r3, r7, #112 @ 0x70
  4495. 8001f50: 2224 movs r2, #36 @ 0x24
  4496. 8001f52: 2100 movs r1, #0
  4497. 8001f54: 4618 mov r0, r3
  4498. 8001f56: f016 f9d7 bl 8018308 <memset>
  4499. osThreadAttr_t osThreadAttradc3MeasTask = { 0 };
  4500. 8001f5a: f107 034c add.w r3, r7, #76 @ 0x4c
  4501. 8001f5e: 2224 movs r2, #36 @ 0x24
  4502. 8001f60: 2100 movs r1, #0
  4503. 8001f62: 4618 mov r0, r3
  4504. 8001f64: f016 f9d0 bl 8018308 <memset>
  4505. osThreadAttradc1MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4506. 8001f68: f44f 6380 mov.w r3, #1024 @ 0x400
  4507. 8001f6c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  4508. osThreadAttradc1MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4509. 8001f70: 2330 movs r3, #48 @ 0x30
  4510. 8001f72: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  4511. osThreadAttradc2MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4512. 8001f76: f44f 6380 mov.w r3, #1024 @ 0x400
  4513. 8001f7a: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  4514. osThreadAttradc2MeasTask.priority = (osPriority_t)osPriorityRealtime;
  4515. 8001f7e: 2330 movs r3, #48 @ 0x30
  4516. 8001f80: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  4517. osThreadAttradc3MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4518. 8001f84: f44f 6380 mov.w r3, #1024 @ 0x400
  4519. 8001f88: 663b str r3, [r7, #96] @ 0x60
  4520. osThreadAttradc3MeasTask.priority = (osPriority_t)osPriorityNormal;
  4521. 8001f8a: 2318 movs r3, #24
  4522. 8001f8c: 667b str r3, [r7, #100] @ 0x64
  4523. adc1MeasTaskHandle = osThreadNew (ADC1MeasTask, NULL, &osThreadAttradc1MeasTask);
  4524. 8001f8e: f107 0394 add.w r3, r7, #148 @ 0x94
  4525. 8001f92: 461a mov r2, r3
  4526. 8001f94: 2100 movs r1, #0
  4527. 8001f96: 4833 ldr r0, [pc, #204] @ (8002064 <MeasTasksInit+0x18c>)
  4528. 8001f98: f012 f862 bl 8014060 <osThreadNew>
  4529. 8001f9c: 4603 mov r3, r0
  4530. 8001f9e: 4a32 ldr r2, [pc, #200] @ (8002068 <MeasTasksInit+0x190>)
  4531. 8001fa0: 6013 str r3, [r2, #0]
  4532. adc2MeasTaskHandle = osThreadNew (ADC2MeasTask, NULL, &osThreadAttradc2MeasTask);
  4533. 8001fa2: f107 0370 add.w r3, r7, #112 @ 0x70
  4534. 8001fa6: 461a mov r2, r3
  4535. 8001fa8: 2100 movs r1, #0
  4536. 8001faa: 4830 ldr r0, [pc, #192] @ (800206c <MeasTasksInit+0x194>)
  4537. 8001fac: f012 f858 bl 8014060 <osThreadNew>
  4538. 8001fb0: 4603 mov r3, r0
  4539. 8001fb2: 4a2f ldr r2, [pc, #188] @ (8002070 <MeasTasksInit+0x198>)
  4540. 8001fb4: 6013 str r3, [r2, #0]
  4541. adc3MeasTaskHandle = osThreadNew (ADC3MeasTask, NULL, &osThreadAttradc3MeasTask);
  4542. 8001fb6: f107 034c add.w r3, r7, #76 @ 0x4c
  4543. 8001fba: 461a mov r2, r3
  4544. 8001fbc: 2100 movs r1, #0
  4545. 8001fbe: 482d ldr r0, [pc, #180] @ (8002074 <MeasTasksInit+0x19c>)
  4546. 8001fc0: f012 f84e bl 8014060 <osThreadNew>
  4547. 8001fc4: 4603 mov r3, r0
  4548. 8001fc6: 4a2c ldr r2, [pc, #176] @ (8002078 <MeasTasksInit+0x1a0>)
  4549. 8001fc8: 6013 str r3, [r2, #0]
  4550. limiterSwitchDataQueue = osMessageQueueNew (8, sizeof (LimiterSwitchData), NULL);
  4551. 8001fca: 2200 movs r2, #0
  4552. 8001fcc: 2104 movs r1, #4
  4553. 8001fce: 2008 movs r0, #8
  4554. 8001fd0: f012 faf9 bl 80145c6 <osMessageQueueNew>
  4555. 8001fd4: 4603 mov r3, r0
  4556. 8001fd6: 4a29 ldr r2, [pc, #164] @ (800207c <MeasTasksInit+0x1a4>)
  4557. 8001fd8: 6013 str r3, [r2, #0]
  4558. osThreadAttr_t osThreadAttradc1LimiterSwitchTask = { 0 };
  4559. 8001fda: f107 0328 add.w r3, r7, #40 @ 0x28
  4560. 8001fde: 2224 movs r2, #36 @ 0x24
  4561. 8001fe0: 2100 movs r1, #0
  4562. 8001fe2: 4618 mov r0, r3
  4563. 8001fe4: f016 f990 bl 8018308 <memset>
  4564. osThreadAttradc1LimiterSwitchTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4565. 8001fe8: f44f 6380 mov.w r3, #1024 @ 0x400
  4566. 8001fec: 63fb str r3, [r7, #60] @ 0x3c
  4567. osThreadAttradc1LimiterSwitchTask.priority = (osPriority_t)osPriorityNormal;
  4568. 8001fee: 2318 movs r3, #24
  4569. 8001ff0: 643b str r3, [r7, #64] @ 0x40
  4570. limiterSwitchTaskHandle = osThreadNew (LimiterSwitchTask, NULL, &osThreadAttradc1LimiterSwitchTask);
  4571. 8001ff2: f107 0328 add.w r3, r7, #40 @ 0x28
  4572. 8001ff6: 461a mov r2, r3
  4573. 8001ff8: 2100 movs r1, #0
  4574. 8001ffa: 4821 ldr r0, [pc, #132] @ (8002080 <MeasTasksInit+0x1a8>)
  4575. 8001ffc: f012 f830 bl 8014060 <osThreadNew>
  4576. 8002000: 4603 mov r3, r0
  4577. 8002002: 4a20 ldr r2, [pc, #128] @ (8002084 <MeasTasksInit+0x1ac>)
  4578. 8002004: 6013 str r3, [r2, #0]
  4579. encoderDataQueue = osMessageQueueNew (16, sizeof (EncoderData), NULL);
  4580. 8002006: 2200 movs r2, #0
  4581. 8002008: 2102 movs r1, #2
  4582. 800200a: 2010 movs r0, #16
  4583. 800200c: f012 fadb bl 80145c6 <osMessageQueueNew>
  4584. 8002010: 4603 mov r3, r0
  4585. 8002012: 4a1d ldr r2, [pc, #116] @ (8002088 <MeasTasksInit+0x1b0>)
  4586. 8002014: 6013 str r3, [r2, #0]
  4587. osThreadAttr_t osThreadAttrEncoderTask = { 0 };
  4588. 8002016: 1d3b adds r3, r7, #4
  4589. 8002018: 2224 movs r2, #36 @ 0x24
  4590. 800201a: 2100 movs r1, #0
  4591. 800201c: 4618 mov r0, r3
  4592. 800201e: f016 f973 bl 8018308 <memset>
  4593. osThreadAttrEncoderTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4594. 8002022: f44f 6380 mov.w r3, #1024 @ 0x400
  4595. 8002026: 61bb str r3, [r7, #24]
  4596. osThreadAttrEncoderTask.priority = (osPriority_t)osPriorityNormal;
  4597. 8002028: 2318 movs r3, #24
  4598. 800202a: 61fb str r3, [r7, #28]
  4599. encoderTaskHandle = osThreadNew (EncoderTask, encoderDataQueue, &osThreadAttrEncoderTask);
  4600. 800202c: 4b16 ldr r3, [pc, #88] @ (8002088 <MeasTasksInit+0x1b0>)
  4601. 800202e: 681b ldr r3, [r3, #0]
  4602. 8002030: 1d3a adds r2, r7, #4
  4603. 8002032: 4619 mov r1, r3
  4604. 8002034: 4815 ldr r0, [pc, #84] @ (800208c <MeasTasksInit+0x1b4>)
  4605. 8002036: f012 f813 bl 8014060 <osThreadNew>
  4606. 800203a: 4603 mov r3, r0
  4607. 800203c: 4a14 ldr r2, [pc, #80] @ (8002090 <MeasTasksInit+0x1b8>)
  4608. 800203e: 6013 str r3, [r2, #0]
  4609. }
  4610. 8002040: bf00 nop
  4611. 8002042: 37b8 adds r7, #184 @ 0xb8
  4612. 8002044: 46bd mov sp, r7
  4613. 8002046: bd80 pop {r7, pc}
  4614. 8002048: 24000814 .word 0x24000814
  4615. 800204c: 24000818 .word 0x24000818
  4616. 8002050: 2400081c .word 0x2400081c
  4617. 8002054: 24000820 .word 0x24000820
  4618. 8002058: 24000800 .word 0x24000800
  4619. 800205c: 24000804 .word 0x24000804
  4620. 8002060: 24000808 .word 0x24000808
  4621. 8002064: 08002099 .word 0x08002099
  4622. 8002068: 240007ec .word 0x240007ec
  4623. 800206c: 08002421 .word 0x08002421
  4624. 8002070: 240007f0 .word 0x240007f0
  4625. 8002074: 08002729 .word 0x08002729
  4626. 8002078: 240007f4 .word 0x240007f4
  4627. 800207c: 2400080c .word 0x2400080c
  4628. 8002080: 08002aa5 .word 0x08002aa5
  4629. 8002084: 240007f8 .word 0x240007f8
  4630. 8002088: 24000810 .word 0x24000810
  4631. 800208c: 08002d81 .word 0x08002d81
  4632. 8002090: 240007fc .word 0x240007fc
  4633. 8002094: 00000000 .word 0x00000000
  4634. 08002098 <ADC1MeasTask>:
  4635. void ADC1MeasTask (void* arg) {
  4636. 8002098: b580 push {r7, lr}
  4637. 800209a: b09a sub sp, #104 @ 0x68
  4638. 800209c: af00 add r7, sp, #0
  4639. 800209e: 6078 str r0, [r7, #4]
  4640. float circBuffer[VOLTAGES_COUNT][CIRC_BUFF_LEN] = { 0 };
  4641. 80020a0: f107 032c add.w r3, r7, #44 @ 0x2c
  4642. 80020a4: 2228 movs r2, #40 @ 0x28
  4643. 80020a6: 2100 movs r1, #0
  4644. 80020a8: 4618 mov r0, r3
  4645. 80020aa: f016 f92d bl 8018308 <memset>
  4646. float rms[VOLTAGES_COUNT] = { 0 };
  4647. 80020ae: f04f 0300 mov.w r3, #0
  4648. 80020b2: 62bb str r3, [r7, #40] @ 0x28
  4649. ;
  4650. ADC1_Data adcData = { 0 };
  4651. 80020b4: f107 0308 add.w r3, r7, #8
  4652. 80020b8: 2220 movs r2, #32
  4653. 80020ba: 2100 movs r1, #0
  4654. 80020bc: 4618 mov r0, r3
  4655. 80020be: f016 f923 bl 8018308 <memset>
  4656. uint32_t circBuffPos = 0;
  4657. 80020c2: 2300 movs r3, #0
  4658. 80020c4: 667b str r3, [r7, #100] @ 0x64
  4659. float gainCorrection = 1.0;
  4660. 80020c6: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  4661. 80020ca: 663b str r3, [r7, #96] @ 0x60
  4662. while (pdTRUE) {
  4663. osMessageQueueGet (adc1MeasDataQueue, &adcData, 0, osWaitForever);
  4664. 80020cc: 4bc8 ldr r3, [pc, #800] @ (80023f0 <ADC1MeasTask+0x358>)
  4665. 80020ce: 6818 ldr r0, [r3, #0]
  4666. 80020d0: f107 0108 add.w r1, r7, #8
  4667. 80020d4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  4668. 80020d8: 2200 movs r2, #0
  4669. 80020da: f012 fb47 bl 801476c <osMessageQueueGet>
  4670. #ifdef GAIN_AUTO_CORRECTION
  4671. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  4672. 80020de: 4bc5 ldr r3, [pc, #788] @ (80023f4 <ADC1MeasTask+0x35c>)
  4673. 80020e0: 681b ldr r3, [r3, #0]
  4674. 80020e2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4675. 80020e6: 4618 mov r0, r3
  4676. 80020e8: f012 f9e5 bl 80144b6 <osMutexAcquire>
  4677. 80020ec: 4603 mov r3, r0
  4678. 80020ee: 2b00 cmp r3, #0
  4679. 80020f0: d10c bne.n 800210c <ADC1MeasTask+0x74>
  4680. gainCorrection = (float)vRefmV;
  4681. 80020f2: 4bc1 ldr r3, [pc, #772] @ (80023f8 <ADC1MeasTask+0x360>)
  4682. 80020f4: 681b ldr r3, [r3, #0]
  4683. 80020f6: ee07 3a90 vmov s15, r3
  4684. 80020fa: eef8 7a67 vcvt.f32.u32 s15, s15
  4685. 80020fe: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4686. osMutexRelease (vRefmVMutex);
  4687. 8002102: 4bbc ldr r3, [pc, #752] @ (80023f4 <ADC1MeasTask+0x35c>)
  4688. 8002104: 681b ldr r3, [r3, #0]
  4689. 8002106: 4618 mov r0, r3
  4690. 8002108: f012 fa20 bl 801454c <osMutexRelease>
  4691. }
  4692. gainCorrection = gainCorrection / EXT_VREF_mV;
  4693. 800210c: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  4694. 8002110: eddf 6aba vldr s13, [pc, #744] @ 80023fc <ADC1MeasTask+0x364>
  4695. 8002114: eec7 7a26 vdiv.f32 s15, s14, s13
  4696. 8002118: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  4697. #endif
  4698. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4699. 800211c: 2300 movs r3, #0
  4700. 800211e: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4701. 8002122: e0e7 b.n 80022f4 <ADC1MeasTask+0x25c>
  4702. float val = adcData.adcDataBuffer[i] * deltaADC * U_CHANNEL_CONST * gainCorrection * U_MeasCorrectionData[i].gain + U_MeasCorrectionData[i].offset;
  4703. 8002124: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4704. 8002128: 005b lsls r3, r3, #1
  4705. 800212a: 3368 adds r3, #104 @ 0x68
  4706. 800212c: 443b add r3, r7
  4707. 800212e: f833 3c60 ldrh.w r3, [r3, #-96]
  4708. 8002132: ee07 3a90 vmov s15, r3
  4709. 8002136: eeb8 7be7 vcvt.f64.s32 d7, s15
  4710. 800213a: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4711. 800213e: ee27 6b06 vmul.f64 d6, d7, d6
  4712. 8002142: ed9f 5ba5 vldr d5, [pc, #660] @ 80023d8 <ADC1MeasTask+0x340>
  4713. 8002146: ee86 7b05 vdiv.f64 d7, d6, d5
  4714. 800214a: ed9f 6ba5 vldr d6, [pc, #660] @ 80023e0 <ADC1MeasTask+0x348>
  4715. 800214e: ee27 6b06 vmul.f64 d6, d7, d6
  4716. 8002152: edd7 7a18 vldr s15, [r7, #96] @ 0x60
  4717. 8002156: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4718. 800215a: ee26 6b07 vmul.f64 d6, d6, d7
  4719. 800215e: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4720. 8002162: 4aa7 ldr r2, [pc, #668] @ (8002400 <ADC1MeasTask+0x368>)
  4721. 8002164: 00db lsls r3, r3, #3
  4722. 8002166: 4413 add r3, r2
  4723. 8002168: edd3 7a00 vldr s15, [r3]
  4724. 800216c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4725. 8002170: ee26 6b07 vmul.f64 d6, d6, d7
  4726. 8002174: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4727. 8002178: 4aa1 ldr r2, [pc, #644] @ (8002400 <ADC1MeasTask+0x368>)
  4728. 800217a: 00db lsls r3, r3, #3
  4729. 800217c: 4413 add r3, r2
  4730. 800217e: 3304 adds r3, #4
  4731. 8002180: edd3 7a00 vldr s15, [r3]
  4732. 8002184: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4733. 8002188: ee36 7b07 vadd.f64 d7, d6, d7
  4734. 800218c: eef7 7bc7 vcvt.f32.f64 s15, d7
  4735. 8002190: edc7 7a15 vstr s15, [r7, #84] @ 0x54
  4736. circBuffer[i][circBuffPos] = val;
  4737. 8002194: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4738. 8002198: 4613 mov r3, r2
  4739. 800219a: 009b lsls r3, r3, #2
  4740. 800219c: 4413 add r3, r2
  4741. 800219e: 005b lsls r3, r3, #1
  4742. 80021a0: 6e7a ldr r2, [r7, #100] @ 0x64
  4743. 80021a2: 4413 add r3, r2
  4744. 80021a4: 009b lsls r3, r3, #2
  4745. 80021a6: 3368 adds r3, #104 @ 0x68
  4746. 80021a8: 443b add r3, r7
  4747. 80021aa: 3b3c subs r3, #60 @ 0x3c
  4748. 80021ac: 6d7a ldr r2, [r7, #84] @ 0x54
  4749. 80021ae: 601a str r2, [r3, #0]
  4750. rms[i] = 0.0;
  4751. 80021b0: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4752. 80021b4: 009b lsls r3, r3, #2
  4753. 80021b6: 3368 adds r3, #104 @ 0x68
  4754. 80021b8: 443b add r3, r7
  4755. 80021ba: 3b40 subs r3, #64 @ 0x40
  4756. 80021bc: f04f 0200 mov.w r2, #0
  4757. 80021c0: 601a str r2, [r3, #0]
  4758. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4759. 80021c2: 2300 movs r3, #0
  4760. 80021c4: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4761. 80021c8: e025 b.n 8002216 <ADC1MeasTask+0x17e>
  4762. rms[i] += circBuffer[i][c];
  4763. 80021ca: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4764. 80021ce: 009b lsls r3, r3, #2
  4765. 80021d0: 3368 adds r3, #104 @ 0x68
  4766. 80021d2: 443b add r3, r7
  4767. 80021d4: 3b40 subs r3, #64 @ 0x40
  4768. 80021d6: ed93 7a00 vldr s14, [r3]
  4769. 80021da: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4770. 80021de: f897 105e ldrb.w r1, [r7, #94] @ 0x5e
  4771. 80021e2: 4613 mov r3, r2
  4772. 80021e4: 009b lsls r3, r3, #2
  4773. 80021e6: 4413 add r3, r2
  4774. 80021e8: 005b lsls r3, r3, #1
  4775. 80021ea: 440b add r3, r1
  4776. 80021ec: 009b lsls r3, r3, #2
  4777. 80021ee: 3368 adds r3, #104 @ 0x68
  4778. 80021f0: 443b add r3, r7
  4779. 80021f2: 3b3c subs r3, #60 @ 0x3c
  4780. 80021f4: edd3 7a00 vldr s15, [r3]
  4781. 80021f8: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4782. 80021fc: ee77 7a27 vadd.f32 s15, s14, s15
  4783. 8002200: 009b lsls r3, r3, #2
  4784. 8002202: 3368 adds r3, #104 @ 0x68
  4785. 8002204: 443b add r3, r7
  4786. 8002206: 3b40 subs r3, #64 @ 0x40
  4787. 8002208: edc3 7a00 vstr s15, [r3]
  4788. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  4789. 800220c: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4790. 8002210: 3301 adds r3, #1
  4791. 8002212: f887 305e strb.w r3, [r7, #94] @ 0x5e
  4792. 8002216: f897 305e ldrb.w r3, [r7, #94] @ 0x5e
  4793. 800221a: 2b09 cmp r3, #9
  4794. 800221c: d9d5 bls.n 80021ca <ADC1MeasTask+0x132>
  4795. }
  4796. rms[i] = rms[i] / CIRC_BUFF_LEN;
  4797. 800221e: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4798. 8002222: 009b lsls r3, r3, #2
  4799. 8002224: 3368 adds r3, #104 @ 0x68
  4800. 8002226: 443b add r3, r7
  4801. 8002228: 3b40 subs r3, #64 @ 0x40
  4802. 800222a: ed93 7a00 vldr s14, [r3]
  4803. 800222e: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4804. 8002232: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4805. 8002236: eec7 7a26 vdiv.f32 s15, s14, s13
  4806. 800223a: 009b lsls r3, r3, #2
  4807. 800223c: 3368 adds r3, #104 @ 0x68
  4808. 800223e: 443b add r3, r7
  4809. 8002240: 3b40 subs r3, #64 @ 0x40
  4810. 8002242: edc3 7a00 vstr s15, [r3]
  4811. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  4812. 8002246: 4b6f ldr r3, [pc, #444] @ (8002404 <ADC1MeasTask+0x36c>)
  4813. 8002248: 681b ldr r3, [r3, #0]
  4814. 800224a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4815. 800224e: 4618 mov r0, r3
  4816. 8002250: f012 f931 bl 80144b6 <osMutexAcquire>
  4817. 8002254: 4603 mov r3, r0
  4818. 8002256: 2b00 cmp r3, #0
  4819. 8002258: d147 bne.n 80022ea <ADC1MeasTask+0x252>
  4820. if (fabs (resMeasurements.voltagePeak[i]) < fabs (val)) {
  4821. 800225a: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4822. 800225e: 4a6a ldr r2, [pc, #424] @ (8002408 <ADC1MeasTask+0x370>)
  4823. 8002260: 3302 adds r3, #2
  4824. 8002262: 009b lsls r3, r3, #2
  4825. 8002264: 4413 add r3, r2
  4826. 8002266: 3304 adds r3, #4
  4827. 8002268: edd3 7a00 vldr s15, [r3]
  4828. 800226c: eeb0 7ae7 vabs.f32 s14, s15
  4829. 8002270: edd7 7a15 vldr s15, [r7, #84] @ 0x54
  4830. 8002274: eef0 7ae7 vabs.f32 s15, s15
  4831. 8002278: eeb4 7ae7 vcmpe.f32 s14, s15
  4832. 800227c: eef1 fa10 vmrs APSR_nzcv, fpscr
  4833. 8002280: d508 bpl.n 8002294 <ADC1MeasTask+0x1fc>
  4834. resMeasurements.voltagePeak[i] = val;
  4835. 8002282: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4836. 8002286: 4a60 ldr r2, [pc, #384] @ (8002408 <ADC1MeasTask+0x370>)
  4837. 8002288: 3302 adds r3, #2
  4838. 800228a: 009b lsls r3, r3, #2
  4839. 800228c: 4413 add r3, r2
  4840. 800228e: 3304 adds r3, #4
  4841. 8002290: 6d7a ldr r2, [r7, #84] @ 0x54
  4842. 8002292: 601a str r2, [r3, #0]
  4843. }
  4844. resMeasurements.voltageRMS[i] = rms[i];
  4845. 8002294: f897 205f ldrb.w r2, [r7, #95] @ 0x5f
  4846. 8002298: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4847. 800229c: 0092 lsls r2, r2, #2
  4848. 800229e: 3268 adds r2, #104 @ 0x68
  4849. 80022a0: 443a add r2, r7
  4850. 80022a2: 3a40 subs r2, #64 @ 0x40
  4851. 80022a4: 6812 ldr r2, [r2, #0]
  4852. 80022a6: 4958 ldr r1, [pc, #352] @ (8002408 <ADC1MeasTask+0x370>)
  4853. 80022a8: 009b lsls r3, r3, #2
  4854. 80022aa: 440b add r3, r1
  4855. 80022ac: 601a str r2, [r3, #0]
  4856. resMeasurements.power[i] = resMeasurements.voltageRMS[i] * resMeasurements.currentRMS[i];
  4857. 80022ae: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4858. 80022b2: 4a55 ldr r2, [pc, #340] @ (8002408 <ADC1MeasTask+0x370>)
  4859. 80022b4: 009b lsls r3, r3, #2
  4860. 80022b6: 4413 add r3, r2
  4861. 80022b8: ed93 7a00 vldr s14, [r3]
  4862. 80022bc: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4863. 80022c0: 4a51 ldr r2, [pc, #324] @ (8002408 <ADC1MeasTask+0x370>)
  4864. 80022c2: 3306 adds r3, #6
  4865. 80022c4: 009b lsls r3, r3, #2
  4866. 80022c6: 4413 add r3, r2
  4867. 80022c8: edd3 7a00 vldr s15, [r3]
  4868. 80022cc: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4869. 80022d0: ee67 7a27 vmul.f32 s15, s14, s15
  4870. 80022d4: 4a4c ldr r2, [pc, #304] @ (8002408 <ADC1MeasTask+0x370>)
  4871. 80022d6: 330c adds r3, #12
  4872. 80022d8: 009b lsls r3, r3, #2
  4873. 80022da: 4413 add r3, r2
  4874. 80022dc: edc3 7a00 vstr s15, [r3]
  4875. osMutexRelease (resMeasurementsMutex);
  4876. 80022e0: 4b48 ldr r3, [pc, #288] @ (8002404 <ADC1MeasTask+0x36c>)
  4877. 80022e2: 681b ldr r3, [r3, #0]
  4878. 80022e4: 4618 mov r0, r3
  4879. 80022e6: f012 f931 bl 801454c <osMutexRelease>
  4880. for (uint8_t i = 0; i < VOLTAGES_COUNT; i++) {
  4881. 80022ea: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4882. 80022ee: 3301 adds r3, #1
  4883. 80022f0: f887 305f strb.w r3, [r7, #95] @ 0x5f
  4884. 80022f4: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  4885. 80022f8: 2b00 cmp r3, #0
  4886. 80022fa: f43f af13 beq.w 8002124 <ADC1MeasTask+0x8c>
  4887. }
  4888. }
  4889. ++circBuffPos;
  4890. 80022fe: 6e7b ldr r3, [r7, #100] @ 0x64
  4891. 8002300: 3301 adds r3, #1
  4892. 8002302: 667b str r3, [r7, #100] @ 0x64
  4893. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  4894. 8002304: 6e7a ldr r2, [r7, #100] @ 0x64
  4895. 8002306: 4b41 ldr r3, [pc, #260] @ (800240c <ADC1MeasTask+0x374>)
  4896. 8002308: fba3 1302 umull r1, r3, r3, r2
  4897. 800230c: 08d9 lsrs r1, r3, #3
  4898. 800230e: 460b mov r3, r1
  4899. 8002310: 009b lsls r3, r3, #2
  4900. 8002312: 440b add r3, r1
  4901. 8002314: 005b lsls r3, r3, #1
  4902. 8002316: 1ad3 subs r3, r2, r3
  4903. 8002318: 667b str r3, [r7, #100] @ 0x64
  4904. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  4905. 800231a: 4b3d ldr r3, [pc, #244] @ (8002410 <ADC1MeasTask+0x378>)
  4906. 800231c: 681b ldr r3, [r3, #0]
  4907. 800231e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4908. 8002322: 4618 mov r0, r3
  4909. 8002324: f012 f8c7 bl 80144b6 <osMutexAcquire>
  4910. 8002328: 4603 mov r3, r0
  4911. 800232a: 2b00 cmp r3, #0
  4912. 800232c: d124 bne.n 8002378 <ADC1MeasTask+0x2e0>
  4913. uint8_t refIdx = 0;
  4914. 800232e: 2300 movs r3, #0
  4915. 8002330: f887 305d strb.w r3, [r7, #93] @ 0x5d
  4916. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  4917. 8002334: 2303 movs r3, #3
  4918. 8002336: f887 305c strb.w r3, [r7, #92] @ 0x5c
  4919. 800233a: e014 b.n 8002366 <ADC1MeasTask+0x2ce>
  4920. ILxRef[refIdx++] = adcData.adcDataBuffer[i];
  4921. 800233c: f897 205c ldrb.w r2, [r7, #92] @ 0x5c
  4922. 8002340: f897 305d ldrb.w r3, [r7, #93] @ 0x5d
  4923. 8002344: 1c59 adds r1, r3, #1
  4924. 8002346: f887 105d strb.w r1, [r7, #93] @ 0x5d
  4925. 800234a: 4619 mov r1, r3
  4926. 800234c: 0053 lsls r3, r2, #1
  4927. 800234e: 3368 adds r3, #104 @ 0x68
  4928. 8002350: 443b add r3, r7
  4929. 8002352: f833 2c60 ldrh.w r2, [r3, #-96]
  4930. 8002356: 4b2f ldr r3, [pc, #188] @ (8002414 <ADC1MeasTask+0x37c>)
  4931. 8002358: f823 2011 strh.w r2, [r3, r1, lsl #1]
  4932. for (uint8_t i = (uint8_t)IL1Ref; i <= (uint8_t)IL3Ref; i++) {
  4933. 800235c: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  4934. 8002360: 3301 adds r3, #1
  4935. 8002362: f887 305c strb.w r3, [r7, #92] @ 0x5c
  4936. 8002366: f897 305c ldrb.w r3, [r7, #92] @ 0x5c
  4937. 800236a: 2b05 cmp r3, #5
  4938. 800236c: d9e6 bls.n 800233c <ADC1MeasTask+0x2a4>
  4939. }
  4940. osMutexRelease (ILxRefMutex);
  4941. 800236e: 4b28 ldr r3, [pc, #160] @ (8002410 <ADC1MeasTask+0x378>)
  4942. 8002370: 681b ldr r3, [r3, #0]
  4943. 8002372: 4618 mov r0, r3
  4944. 8002374: f012 f8ea bl 801454c <osMutexRelease>
  4945. }
  4946. float fanFBVoltage = adcData.adcDataBuffer[FanFB] * deltaADC * -4.35 + 12;
  4947. 8002378: 8abb ldrh r3, [r7, #20]
  4948. 800237a: ee07 3a90 vmov s15, r3
  4949. 800237e: eeb8 7be7 vcvt.f64.s32 d7, s15
  4950. 8002382: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4951. 8002386: ee27 6b06 vmul.f64 d6, d7, d6
  4952. 800238a: ed9f 5b13 vldr d5, [pc, #76] @ 80023d8 <ADC1MeasTask+0x340>
  4953. 800238e: ee86 7b05 vdiv.f64 d7, d6, d5
  4954. 8002392: ed9f 6b15 vldr d6, [pc, #84] @ 80023e8 <ADC1MeasTask+0x350>
  4955. 8002396: ee27 7b06 vmul.f64 d7, d7, d6
  4956. 800239a: eeb2 6b08 vmov.f64 d6, #40 @ 0x41400000 12.0
  4957. 800239e: ee37 7b06 vadd.f64 d7, d7, d6
  4958. 80023a2: eef7 7bc7 vcvt.f32.f64 s15, d7
  4959. 80023a6: edc7 7a16 vstr s15, [r7, #88] @ 0x58
  4960. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  4961. 80023aa: 4b1b ldr r3, [pc, #108] @ (8002418 <ADC1MeasTask+0x380>)
  4962. 80023ac: 681b ldr r3, [r3, #0]
  4963. 80023ae: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4964. 80023b2: 4618 mov r0, r3
  4965. 80023b4: f012 f87f bl 80144b6 <osMutexAcquire>
  4966. 80023b8: 4603 mov r3, r0
  4967. 80023ba: 2b00 cmp r3, #0
  4968. 80023bc: f47f ae86 bne.w 80020cc <ADC1MeasTask+0x34>
  4969. sensorsInfo.fanVoltage = fanFBVoltage;
  4970. 80023c0: 4a16 ldr r2, [pc, #88] @ (800241c <ADC1MeasTask+0x384>)
  4971. 80023c2: 6dbb ldr r3, [r7, #88] @ 0x58
  4972. 80023c4: 6093 str r3, [r2, #8]
  4973. osMutexRelease (sensorsInfoMutex);
  4974. 80023c6: 4b14 ldr r3, [pc, #80] @ (8002418 <ADC1MeasTask+0x380>)
  4975. 80023c8: 681b ldr r3, [r3, #0]
  4976. 80023ca: 4618 mov r0, r3
  4977. 80023cc: f012 f8be bl 801454c <osMutexRelease>
  4978. while (pdTRUE) {
  4979. 80023d0: e67c b.n 80020cc <ADC1MeasTask+0x34>
  4980. 80023d2: bf00 nop
  4981. 80023d4: f3af 8000 nop.w
  4982. 80023d8: 00000000 .word 0x00000000
  4983. 80023dc: 40efffe0 .word 0x40efffe0
  4984. 80023e0: f5c28f5c .word 0xf5c28f5c
  4985. 80023e4: 401e5c28 .word 0x401e5c28
  4986. 80023e8: 66666666 .word 0x66666666
  4987. 80023ec: c0116666 .word 0xc0116666
  4988. 80023f0: 24000800 .word 0x24000800
  4989. 80023f4: 24000814 .word 0x24000814
  4990. 80023f8: 24000030 .word 0x24000030
  4991. 80023fc: 453b8000 .word 0x453b8000
  4992. 8002400: 24000000 .word 0x24000000
  4993. 8002404: 24000818 .word 0x24000818
  4994. 8002408: 24000824 .word 0x24000824
  4995. 800240c: cccccccd .word 0xcccccccd
  4996. 8002410: 24000820 .word 0x24000820
  4997. 8002414: 2400089c .word 0x2400089c
  4998. 8002418: 2400081c .word 0x2400081c
  4999. 800241c: 24000860 .word 0x24000860
  5000. 08002420 <ADC2MeasTask>:
  5001. }
  5002. }
  5003. }
  5004. void ADC2MeasTask (void* arg) {
  5005. 8002420: b580 push {r7, lr}
  5006. 8002422: b09c sub sp, #112 @ 0x70
  5007. 8002424: af00 add r7, sp, #0
  5008. 8002426: 6078 str r0, [r7, #4]
  5009. float circBuffer[CURRENTS_COUNT][CIRC_BUFF_LEN] = { 0 };
  5010. 8002428: f107 0334 add.w r3, r7, #52 @ 0x34
  5011. 800242c: 2228 movs r2, #40 @ 0x28
  5012. 800242e: 2100 movs r1, #0
  5013. 8002430: 4618 mov r0, r3
  5014. 8002432: f015 ff69 bl 8018308 <memset>
  5015. float rms[CURRENTS_COUNT] = { 0 };
  5016. 8002436: f04f 0300 mov.w r3, #0
  5017. 800243a: 633b str r3, [r7, #48] @ 0x30
  5018. ADC2_Data adcData = { 0 };
  5019. 800243c: f107 0310 add.w r3, r7, #16
  5020. 8002440: 2220 movs r2, #32
  5021. 8002442: 2100 movs r1, #0
  5022. 8002444: 4618 mov r0, r3
  5023. 8002446: f015 ff5f bl 8018308 <memset>
  5024. uint32_t circBuffPos = 0;
  5025. 800244a: 2300 movs r3, #0
  5026. 800244c: 66fb str r3, [r7, #108] @ 0x6c
  5027. float gainCorrection = 1.0;
  5028. 800244e: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  5029. 8002452: 66bb str r3, [r7, #104] @ 0x68
  5030. while (pdTRUE) {
  5031. osMessageQueueGet (adc2MeasDataQueue, &adcData, 0, osWaitForever);
  5032. 8002454: 4baa ldr r3, [pc, #680] @ (8002700 <ADC2MeasTask+0x2e0>)
  5033. 8002456: 6818 ldr r0, [r3, #0]
  5034. 8002458: f107 0110 add.w r1, r7, #16
  5035. 800245c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5036. 8002460: 2200 movs r2, #0
  5037. 8002462: f012 f983 bl 801476c <osMessageQueueGet>
  5038. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  5039. 8002466: 4ba7 ldr r3, [pc, #668] @ (8002704 <ADC2MeasTask+0x2e4>)
  5040. 8002468: 681b ldr r3, [r3, #0]
  5041. 800246a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5042. 800246e: 4618 mov r0, r3
  5043. 8002470: f012 f821 bl 80144b6 <osMutexAcquire>
  5044. 8002474: 4603 mov r3, r0
  5045. 8002476: 2b00 cmp r3, #0
  5046. 8002478: d10c bne.n 8002494 <ADC2MeasTask+0x74>
  5047. gainCorrection = (float)vRefmV;
  5048. 800247a: 4ba3 ldr r3, [pc, #652] @ (8002708 <ADC2MeasTask+0x2e8>)
  5049. 800247c: 681b ldr r3, [r3, #0]
  5050. 800247e: ee07 3a90 vmov s15, r3
  5051. 8002482: eef8 7a67 vcvt.f32.u32 s15, s15
  5052. 8002486: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  5053. osMutexRelease (vRefmVMutex);
  5054. 800248a: 4b9e ldr r3, [pc, #632] @ (8002704 <ADC2MeasTask+0x2e4>)
  5055. 800248c: 681b ldr r3, [r3, #0]
  5056. 800248e: 4618 mov r0, r3
  5057. 8002490: f012 f85c bl 801454c <osMutexRelease>
  5058. }
  5059. gainCorrection = gainCorrection / EXT_VREF_mV;
  5060. 8002494: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  5061. 8002498: eddf 6a9c vldr s13, [pc, #624] @ 800270c <ADC2MeasTask+0x2ec>
  5062. 800249c: eec7 7a26 vdiv.f32 s15, s14, s13
  5063. 80024a0: edc7 7a1a vstr s15, [r7, #104] @ 0x68
  5064. float ref[CURRENTS_COUNT] = { 0 };
  5065. 80024a4: f04f 0300 mov.w r3, #0
  5066. 80024a8: 60fb str r3, [r7, #12]
  5067. if (osMutexAcquire (ILxRefMutex, osWaitForever) == osOK) {
  5068. 80024aa: 4b99 ldr r3, [pc, #612] @ (8002710 <ADC2MeasTask+0x2f0>)
  5069. 80024ac: 681b ldr r3, [r3, #0]
  5070. 80024ae: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5071. 80024b2: 4618 mov r0, r3
  5072. 80024b4: f011 ffff bl 80144b6 <osMutexAcquire>
  5073. 80024b8: 4603 mov r3, r0
  5074. 80024ba: 2b00 cmp r3, #0
  5075. 80024bc: d122 bne.n 8002504 <ADC2MeasTask+0xe4>
  5076. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5077. 80024be: 2300 movs r3, #0
  5078. 80024c0: f887 3067 strb.w r3, [r7, #103] @ 0x67
  5079. 80024c4: e015 b.n 80024f2 <ADC2MeasTask+0xd2>
  5080. ref[i] = (float)ILxRef[i];
  5081. 80024c6: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5082. 80024ca: 4a92 ldr r2, [pc, #584] @ (8002714 <ADC2MeasTask+0x2f4>)
  5083. 80024cc: f832 2013 ldrh.w r2, [r2, r3, lsl #1]
  5084. 80024d0: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5085. 80024d4: ee07 2a90 vmov s15, r2
  5086. 80024d8: eef8 7a67 vcvt.f32.u32 s15, s15
  5087. 80024dc: 009b lsls r3, r3, #2
  5088. 80024de: 3370 adds r3, #112 @ 0x70
  5089. 80024e0: 443b add r3, r7
  5090. 80024e2: 3b64 subs r3, #100 @ 0x64
  5091. 80024e4: edc3 7a00 vstr s15, [r3]
  5092. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5093. 80024e8: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5094. 80024ec: 3301 adds r3, #1
  5095. 80024ee: f887 3067 strb.w r3, [r7, #103] @ 0x67
  5096. 80024f2: f897 3067 ldrb.w r3, [r7, #103] @ 0x67
  5097. 80024f6: 2b00 cmp r3, #0
  5098. 80024f8: d0e5 beq.n 80024c6 <ADC2MeasTask+0xa6>
  5099. }
  5100. osMutexRelease (ILxRefMutex);
  5101. 80024fa: 4b85 ldr r3, [pc, #532] @ (8002710 <ADC2MeasTask+0x2f0>)
  5102. 80024fc: 681b ldr r3, [r3, #0]
  5103. 80024fe: 4618 mov r0, r3
  5104. 8002500: f012 f824 bl 801454c <osMutexRelease>
  5105. }
  5106. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5107. 8002504: 2300 movs r3, #0
  5108. 8002506: f887 3066 strb.w r3, [r7, #102] @ 0x66
  5109. 800250a: e0db b.n 80026c4 <ADC2MeasTask+0x2a4>
  5110. float adcVal = (float)adcData.adcDataBuffer[i];
  5111. 800250c: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5112. 8002510: 005b lsls r3, r3, #1
  5113. 8002512: 3370 adds r3, #112 @ 0x70
  5114. 8002514: 443b add r3, r7
  5115. 8002516: f833 3c60 ldrh.w r3, [r3, #-96]
  5116. 800251a: ee07 3a90 vmov s15, r3
  5117. 800251e: eef8 7a67 vcvt.f32.u32 s15, s15
  5118. 8002522: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  5119. float val = (adcVal - ref[i]) * deltaADC * I_CHANNEL_CONST * gainCorrection * I_MeasCorrectionData[i].gain + I_MeasCorrectionData[i].offset;
  5120. 8002526: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5121. 800252a: 009b lsls r3, r3, #2
  5122. 800252c: 3370 adds r3, #112 @ 0x70
  5123. 800252e: 443b add r3, r7
  5124. 8002530: 3b64 subs r3, #100 @ 0x64
  5125. 8002532: edd3 7a00 vldr s15, [r3]
  5126. 8002536: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  5127. 800253a: ee77 7a67 vsub.f32 s15, s14, s15
  5128. 800253e: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5129. 8002542: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5130. 8002546: ee27 6b06 vmul.f64 d6, d7, d6
  5131. 800254a: ed9f 5b69 vldr d5, [pc, #420] @ 80026f0 <ADC2MeasTask+0x2d0>
  5132. 800254e: ee86 7b05 vdiv.f64 d7, d6, d5
  5133. 8002552: ed9f 6b69 vldr d6, [pc, #420] @ 80026f8 <ADC2MeasTask+0x2d8>
  5134. 8002556: ee27 6b06 vmul.f64 d6, d7, d6
  5135. 800255a: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  5136. 800255e: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5137. 8002562: ee26 6b07 vmul.f64 d6, d6, d7
  5138. 8002566: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5139. 800256a: 4a6b ldr r2, [pc, #428] @ (8002718 <ADC2MeasTask+0x2f8>)
  5140. 800256c: 00db lsls r3, r3, #3
  5141. 800256e: 4413 add r3, r2
  5142. 8002570: edd3 7a00 vldr s15, [r3]
  5143. 8002574: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5144. 8002578: ee26 6b07 vmul.f64 d6, d6, d7
  5145. 800257c: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5146. 8002580: 4a65 ldr r2, [pc, #404] @ (8002718 <ADC2MeasTask+0x2f8>)
  5147. 8002582: 00db lsls r3, r3, #3
  5148. 8002584: 4413 add r3, r2
  5149. 8002586: 3304 adds r3, #4
  5150. 8002588: edd3 7a00 vldr s15, [r3]
  5151. 800258c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5152. 8002590: ee36 7b07 vadd.f64 d7, d6, d7
  5153. 8002594: eef7 7bc7 vcvt.f32.f64 s15, d7
  5154. 8002598: edc7 7a17 vstr s15, [r7, #92] @ 0x5c
  5155. circBuffer[i][circBuffPos] = val;
  5156. 800259c: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5157. 80025a0: 4613 mov r3, r2
  5158. 80025a2: 009b lsls r3, r3, #2
  5159. 80025a4: 4413 add r3, r2
  5160. 80025a6: 005b lsls r3, r3, #1
  5161. 80025a8: 6efa ldr r2, [r7, #108] @ 0x6c
  5162. 80025aa: 4413 add r3, r2
  5163. 80025ac: 009b lsls r3, r3, #2
  5164. 80025ae: 3370 adds r3, #112 @ 0x70
  5165. 80025b0: 443b add r3, r7
  5166. 80025b2: 3b3c subs r3, #60 @ 0x3c
  5167. 80025b4: 6dfa ldr r2, [r7, #92] @ 0x5c
  5168. 80025b6: 601a str r2, [r3, #0]
  5169. rms[i] = 0.0;
  5170. 80025b8: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5171. 80025bc: 009b lsls r3, r3, #2
  5172. 80025be: 3370 adds r3, #112 @ 0x70
  5173. 80025c0: 443b add r3, r7
  5174. 80025c2: 3b40 subs r3, #64 @ 0x40
  5175. 80025c4: f04f 0200 mov.w r2, #0
  5176. 80025c8: 601a str r2, [r3, #0]
  5177. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5178. 80025ca: 2300 movs r3, #0
  5179. 80025cc: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5180. 80025d0: e025 b.n 800261e <ADC2MeasTask+0x1fe>
  5181. rms[i] += circBuffer[i][c];
  5182. 80025d2: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5183. 80025d6: 009b lsls r3, r3, #2
  5184. 80025d8: 3370 adds r3, #112 @ 0x70
  5185. 80025da: 443b add r3, r7
  5186. 80025dc: 3b40 subs r3, #64 @ 0x40
  5187. 80025de: ed93 7a00 vldr s14, [r3]
  5188. 80025e2: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5189. 80025e6: f897 1065 ldrb.w r1, [r7, #101] @ 0x65
  5190. 80025ea: 4613 mov r3, r2
  5191. 80025ec: 009b lsls r3, r3, #2
  5192. 80025ee: 4413 add r3, r2
  5193. 80025f0: 005b lsls r3, r3, #1
  5194. 80025f2: 440b add r3, r1
  5195. 80025f4: 009b lsls r3, r3, #2
  5196. 80025f6: 3370 adds r3, #112 @ 0x70
  5197. 80025f8: 443b add r3, r7
  5198. 80025fa: 3b3c subs r3, #60 @ 0x3c
  5199. 80025fc: edd3 7a00 vldr s15, [r3]
  5200. 8002600: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5201. 8002604: ee77 7a27 vadd.f32 s15, s14, s15
  5202. 8002608: 009b lsls r3, r3, #2
  5203. 800260a: 3370 adds r3, #112 @ 0x70
  5204. 800260c: 443b add r3, r7
  5205. 800260e: 3b40 subs r3, #64 @ 0x40
  5206. 8002610: edc3 7a00 vstr s15, [r3]
  5207. for (uint8_t c = 0; c < CIRC_BUFF_LEN; c++) {
  5208. 8002614: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5209. 8002618: 3301 adds r3, #1
  5210. 800261a: f887 3065 strb.w r3, [r7, #101] @ 0x65
  5211. 800261e: f897 3065 ldrb.w r3, [r7, #101] @ 0x65
  5212. 8002622: 2b09 cmp r3, #9
  5213. 8002624: d9d5 bls.n 80025d2 <ADC2MeasTask+0x1b2>
  5214. }
  5215. rms[i] = rms[i] / CIRC_BUFF_LEN;
  5216. 8002626: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5217. 800262a: 009b lsls r3, r3, #2
  5218. 800262c: 3370 adds r3, #112 @ 0x70
  5219. 800262e: 443b add r3, r7
  5220. 8002630: 3b40 subs r3, #64 @ 0x40
  5221. 8002632: ed93 7a00 vldr s14, [r3]
  5222. 8002636: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5223. 800263a: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5224. 800263e: eec7 7a26 vdiv.f32 s15, s14, s13
  5225. 8002642: 009b lsls r3, r3, #2
  5226. 8002644: 3370 adds r3, #112 @ 0x70
  5227. 8002646: 443b add r3, r7
  5228. 8002648: 3b40 subs r3, #64 @ 0x40
  5229. 800264a: edc3 7a00 vstr s15, [r3]
  5230. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  5231. 800264e: 4b33 ldr r3, [pc, #204] @ (800271c <ADC2MeasTask+0x2fc>)
  5232. 8002650: 681b ldr r3, [r3, #0]
  5233. 8002652: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5234. 8002656: 4618 mov r0, r3
  5235. 8002658: f011 ff2d bl 80144b6 <osMutexAcquire>
  5236. 800265c: 4603 mov r3, r0
  5237. 800265e: 2b00 cmp r3, #0
  5238. 8002660: d12b bne.n 80026ba <ADC2MeasTask+0x29a>
  5239. if (resMeasurements.currentPeak[i] < val) {
  5240. 8002662: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5241. 8002666: 4a2e ldr r2, [pc, #184] @ (8002720 <ADC2MeasTask+0x300>)
  5242. 8002668: 3308 adds r3, #8
  5243. 800266a: 009b lsls r3, r3, #2
  5244. 800266c: 4413 add r3, r2
  5245. 800266e: 3304 adds r3, #4
  5246. 8002670: edd3 7a00 vldr s15, [r3]
  5247. 8002674: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  5248. 8002678: eeb4 7ae7 vcmpe.f32 s14, s15
  5249. 800267c: eef1 fa10 vmrs APSR_nzcv, fpscr
  5250. 8002680: dd08 ble.n 8002694 <ADC2MeasTask+0x274>
  5251. resMeasurements.currentPeak[i] = val;
  5252. 8002682: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5253. 8002686: 4a26 ldr r2, [pc, #152] @ (8002720 <ADC2MeasTask+0x300>)
  5254. 8002688: 3308 adds r3, #8
  5255. 800268a: 009b lsls r3, r3, #2
  5256. 800268c: 4413 add r3, r2
  5257. 800268e: 3304 adds r3, #4
  5258. 8002690: 6dfa ldr r2, [r7, #92] @ 0x5c
  5259. 8002692: 601a str r2, [r3, #0]
  5260. }
  5261. resMeasurements.currentRMS[i] = rms[i];
  5262. 8002694: f897 2066 ldrb.w r2, [r7, #102] @ 0x66
  5263. 8002698: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5264. 800269c: 0092 lsls r2, r2, #2
  5265. 800269e: 3270 adds r2, #112 @ 0x70
  5266. 80026a0: 443a add r2, r7
  5267. 80026a2: 3a40 subs r2, #64 @ 0x40
  5268. 80026a4: 6812 ldr r2, [r2, #0]
  5269. 80026a6: 491e ldr r1, [pc, #120] @ (8002720 <ADC2MeasTask+0x300>)
  5270. 80026a8: 3306 adds r3, #6
  5271. 80026aa: 009b lsls r3, r3, #2
  5272. 80026ac: 440b add r3, r1
  5273. 80026ae: 601a str r2, [r3, #0]
  5274. osMutexRelease (resMeasurementsMutex);
  5275. 80026b0: 4b1a ldr r3, [pc, #104] @ (800271c <ADC2MeasTask+0x2fc>)
  5276. 80026b2: 681b ldr r3, [r3, #0]
  5277. 80026b4: 4618 mov r0, r3
  5278. 80026b6: f011 ff49 bl 801454c <osMutexRelease>
  5279. for (uint8_t i = 0; i < CURRENTS_COUNT; i++) {
  5280. 80026ba: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5281. 80026be: 3301 adds r3, #1
  5282. 80026c0: f887 3066 strb.w r3, [r7, #102] @ 0x66
  5283. 80026c4: f897 3066 ldrb.w r3, [r7, #102] @ 0x66
  5284. 80026c8: 2b00 cmp r3, #0
  5285. 80026ca: f43f af1f beq.w 800250c <ADC2MeasTask+0xec>
  5286. }
  5287. }
  5288. ++circBuffPos;
  5289. 80026ce: 6efb ldr r3, [r7, #108] @ 0x6c
  5290. 80026d0: 3301 adds r3, #1
  5291. 80026d2: 66fb str r3, [r7, #108] @ 0x6c
  5292. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5293. 80026d4: 6efa ldr r2, [r7, #108] @ 0x6c
  5294. 80026d6: 4b13 ldr r3, [pc, #76] @ (8002724 <ADC2MeasTask+0x304>)
  5295. 80026d8: fba3 1302 umull r1, r3, r3, r2
  5296. 80026dc: 08d9 lsrs r1, r3, #3
  5297. 80026de: 460b mov r3, r1
  5298. 80026e0: 009b lsls r3, r3, #2
  5299. 80026e2: 440b add r3, r1
  5300. 80026e4: 005b lsls r3, r3, #1
  5301. 80026e6: 1ad3 subs r3, r2, r3
  5302. 80026e8: 66fb str r3, [r7, #108] @ 0x6c
  5303. while (pdTRUE) {
  5304. 80026ea: e6b3 b.n 8002454 <ADC2MeasTask+0x34>
  5305. 80026ec: f3af 8000 nop.w
  5306. 80026f0: 00000000 .word 0x00000000
  5307. 80026f4: 40efffe0 .word 0x40efffe0
  5308. 80026f8: 83e425af .word 0x83e425af
  5309. 80026fc: 401e4d9e .word 0x401e4d9e
  5310. 8002700: 24000804 .word 0x24000804
  5311. 8002704: 24000814 .word 0x24000814
  5312. 8002708: 24000030 .word 0x24000030
  5313. 800270c: 453b8000 .word 0x453b8000
  5314. 8002710: 24000820 .word 0x24000820
  5315. 8002714: 2400089c .word 0x2400089c
  5316. 8002718: 24000018 .word 0x24000018
  5317. 800271c: 24000818 .word 0x24000818
  5318. 8002720: 24000824 .word 0x24000824
  5319. 8002724: cccccccd .word 0xcccccccd
  5320. 08002728 <ADC3MeasTask>:
  5321. }
  5322. }
  5323. void ADC3MeasTask (void* arg) {
  5324. 8002728: b580 push {r7, lr}
  5325. 800272a: b0bc sub sp, #240 @ 0xf0
  5326. 800272c: af00 add r7, sp, #0
  5327. 800272e: 6078 str r0, [r7, #4]
  5328. float motorXSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5329. 8002730: f107 03a4 add.w r3, r7, #164 @ 0xa4
  5330. 8002734: 2228 movs r2, #40 @ 0x28
  5331. 8002736: 2100 movs r1, #0
  5332. 8002738: 4618 mov r0, r3
  5333. 800273a: f015 fde5 bl 8018308 <memset>
  5334. float motorYSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  5335. 800273e: f107 037c add.w r3, r7, #124 @ 0x7c
  5336. 8002742: 2228 movs r2, #40 @ 0x28
  5337. 8002744: 2100 movs r1, #0
  5338. 8002746: 4618 mov r0, r3
  5339. 8002748: f015 fdde bl 8018308 <memset>
  5340. float pvT1CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5341. 800274c: f107 0354 add.w r3, r7, #84 @ 0x54
  5342. 8002750: 2228 movs r2, #40 @ 0x28
  5343. 8002752: 2100 movs r1, #0
  5344. 8002754: 4618 mov r0, r3
  5345. 8002756: f015 fdd7 bl 8018308 <memset>
  5346. float pvT2CircBuffer[CIRC_BUFF_LEN] = { 0 };
  5347. 800275a: f107 032c add.w r3, r7, #44 @ 0x2c
  5348. 800275e: 2228 movs r2, #40 @ 0x28
  5349. 8002760: 2100 movs r1, #0
  5350. 8002762: 4618 mov r0, r3
  5351. 8002764: f015 fdd0 bl 8018308 <memset>
  5352. uint32_t circBuffPos = 0;
  5353. 8002768: 2300 movs r3, #0
  5354. 800276a: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5355. ADC3_Data adcData = { 0 };
  5356. 800276e: f107 030c add.w r3, r7, #12
  5357. 8002772: 2220 movs r2, #32
  5358. 8002774: 2100 movs r1, #0
  5359. 8002776: 4618 mov r0, r3
  5360. 8002778: f015 fdc6 bl 8018308 <memset>
  5361. while (pdTRUE) {
  5362. osMessageQueueGet (adc3MeasDataQueue, &adcData, 0, osWaitForever);
  5363. 800277c: 4bc2 ldr r3, [pc, #776] @ (8002a88 <ADC3MeasTask+0x360>)
  5364. 800277e: 6818 ldr r0, [r3, #0]
  5365. 8002780: f107 010c add.w r1, r7, #12
  5366. 8002784: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5367. 8002788: 2200 movs r2, #0
  5368. 800278a: f011 ffef bl 801476c <osMessageQueueGet>
  5369. uint32_t vRef = __LL_ADC_CALC_VREFANALOG_VOLTAGE (adcData.adcDataBuffer[VrefInt], LL_ADC_RESOLUTION_16B);
  5370. 800278e: 4bbf ldr r3, [pc, #764] @ (8002a8c <ADC3MeasTask+0x364>)
  5371. 8002790: 881b ldrh r3, [r3, #0]
  5372. 8002792: 461a mov r2, r3
  5373. 8002794: f640 43e4 movw r3, #3300 @ 0xce4
  5374. 8002798: fb02 f303 mul.w r3, r2, r3
  5375. 800279c: 8aba ldrh r2, [r7, #20]
  5376. 800279e: fbb3 f3f2 udiv r3, r3, r2
  5377. 80027a2: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  5378. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  5379. 80027a6: 4bba ldr r3, [pc, #744] @ (8002a90 <ADC3MeasTask+0x368>)
  5380. 80027a8: 681b ldr r3, [r3, #0]
  5381. 80027aa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5382. 80027ae: 4618 mov r0, r3
  5383. 80027b0: f011 fe81 bl 80144b6 <osMutexAcquire>
  5384. 80027b4: 4603 mov r3, r0
  5385. 80027b6: 2b00 cmp r3, #0
  5386. 80027b8: d108 bne.n 80027cc <ADC3MeasTask+0xa4>
  5387. vRefmV = vRef;
  5388. 80027ba: 4ab6 ldr r2, [pc, #728] @ (8002a94 <ADC3MeasTask+0x36c>)
  5389. 80027bc: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  5390. 80027c0: 6013 str r3, [r2, #0]
  5391. osMutexRelease (vRefmVMutex);
  5392. 80027c2: 4bb3 ldr r3, [pc, #716] @ (8002a90 <ADC3MeasTask+0x368>)
  5393. 80027c4: 681b ldr r3, [r3, #0]
  5394. 80027c6: 4618 mov r0, r3
  5395. 80027c8: f011 fec0 bl 801454c <osMutexRelease>
  5396. }
  5397. float motorXCurrentSense = adcData.adcDataBuffer[motorXSense] * deltaADC * 10 / 8.33333;
  5398. 80027cc: 8a3b ldrh r3, [r7, #16]
  5399. 80027ce: ee07 3a90 vmov s15, r3
  5400. 80027d2: eeb8 7be7 vcvt.f64.s32 d7, s15
  5401. 80027d6: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5402. 80027da: ee27 6b06 vmul.f64 d6, d7, d6
  5403. 80027de: ed9f 5ba2 vldr d5, [pc, #648] @ 8002a68 <ADC3MeasTask+0x340>
  5404. 80027e2: ee86 7b05 vdiv.f64 d7, d6, d5
  5405. 80027e6: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5406. 80027ea: ee27 6b06 vmul.f64 d6, d7, d6
  5407. 80027ee: ed9f 5ba0 vldr d5, [pc, #640] @ 8002a70 <ADC3MeasTask+0x348>
  5408. 80027f2: ee86 7b05 vdiv.f64 d7, d6, d5
  5409. 80027f6: eef7 7bc7 vcvt.f32.f64 s15, d7
  5410. 80027fa: edc7 7a34 vstr s15, [r7, #208] @ 0xd0
  5411. float motorYCurrentSense = adcData.adcDataBuffer[motorYSense] * deltaADC * 10 / 8.33333;
  5412. 80027fe: 8a7b ldrh r3, [r7, #18]
  5413. 8002800: ee07 3a90 vmov s15, r3
  5414. 8002804: eeb8 7be7 vcvt.f64.s32 d7, s15
  5415. 8002808: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5416. 800280c: ee27 6b06 vmul.f64 d6, d7, d6
  5417. 8002810: ed9f 5b95 vldr d5, [pc, #596] @ 8002a68 <ADC3MeasTask+0x340>
  5418. 8002814: ee86 7b05 vdiv.f64 d7, d6, d5
  5419. 8002818: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  5420. 800281c: ee27 6b06 vmul.f64 d6, d7, d6
  5421. 8002820: ed9f 5b93 vldr d5, [pc, #588] @ 8002a70 <ADC3MeasTask+0x348>
  5422. 8002824: ee86 7b05 vdiv.f64 d7, d6, d5
  5423. 8002828: eef7 7bc7 vcvt.f32.f64 s15, d7
  5424. 800282c: edc7 7a33 vstr s15, [r7, #204] @ 0xcc
  5425. motorXSensCircBuffer[circBuffPos] = motorXCurrentSense;
  5426. 8002830: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5427. 8002834: 009b lsls r3, r3, #2
  5428. 8002836: 33f0 adds r3, #240 @ 0xf0
  5429. 8002838: 443b add r3, r7
  5430. 800283a: 3b4c subs r3, #76 @ 0x4c
  5431. 800283c: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  5432. 8002840: 601a str r2, [r3, #0]
  5433. motorYSensCircBuffer[circBuffPos] = motorYCurrentSense;
  5434. 8002842: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5435. 8002846: 009b lsls r3, r3, #2
  5436. 8002848: 33f0 adds r3, #240 @ 0xf0
  5437. 800284a: 443b add r3, r7
  5438. 800284c: 3b74 subs r3, #116 @ 0x74
  5439. 800284e: f8d7 20cc ldr.w r2, [r7, #204] @ 0xcc
  5440. 8002852: 601a str r2, [r3, #0]
  5441. pvT1CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp1] * deltaADC * 45.33333333 - 63;
  5442. 8002854: 89bb ldrh r3, [r7, #12]
  5443. 8002856: ee07 3a90 vmov s15, r3
  5444. 800285a: eeb8 7be7 vcvt.f64.s32 d7, s15
  5445. 800285e: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5446. 8002862: ee27 6b06 vmul.f64 d6, d7, d6
  5447. 8002866: ed9f 5b80 vldr d5, [pc, #512] @ 8002a68 <ADC3MeasTask+0x340>
  5448. 800286a: ee86 7b05 vdiv.f64 d7, d6, d5
  5449. 800286e: ed9f 6b82 vldr d6, [pc, #520] @ 8002a78 <ADC3MeasTask+0x350>
  5450. 8002872: ee27 7b06 vmul.f64 d7, d7, d6
  5451. 8002876: ed9f 6b82 vldr d6, [pc, #520] @ 8002a80 <ADC3MeasTask+0x358>
  5452. 800287a: ee37 7b46 vsub.f64 d7, d7, d6
  5453. 800287e: eef7 7bc7 vcvt.f32.f64 s15, d7
  5454. 8002882: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5455. 8002886: 009b lsls r3, r3, #2
  5456. 8002888: 33f0 adds r3, #240 @ 0xf0
  5457. 800288a: 443b add r3, r7
  5458. 800288c: 3b9c subs r3, #156 @ 0x9c
  5459. 800288e: edc3 7a00 vstr s15, [r3]
  5460. pvT2CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp2] * deltaADC * 45.33333333 - 63;
  5461. 8002892: 89fb ldrh r3, [r7, #14]
  5462. 8002894: ee07 3a90 vmov s15, r3
  5463. 8002898: eeb8 7be7 vcvt.f64.s32 d7, s15
  5464. 800289c: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  5465. 80028a0: ee27 6b06 vmul.f64 d6, d7, d6
  5466. 80028a4: ed9f 5b70 vldr d5, [pc, #448] @ 8002a68 <ADC3MeasTask+0x340>
  5467. 80028a8: ee86 7b05 vdiv.f64 d7, d6, d5
  5468. 80028ac: ed9f 6b72 vldr d6, [pc, #456] @ 8002a78 <ADC3MeasTask+0x350>
  5469. 80028b0: ee27 7b06 vmul.f64 d7, d7, d6
  5470. 80028b4: ed9f 6b72 vldr d6, [pc, #456] @ 8002a80 <ADC3MeasTask+0x358>
  5471. 80028b8: ee37 7b46 vsub.f64 d7, d7, d6
  5472. 80028bc: eef7 7bc7 vcvt.f32.f64 s15, d7
  5473. 80028c0: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5474. 80028c4: 009b lsls r3, r3, #2
  5475. 80028c6: 33f0 adds r3, #240 @ 0xf0
  5476. 80028c8: 443b add r3, r7
  5477. 80028ca: 3bc4 subs r3, #196 @ 0xc4
  5478. 80028cc: edc3 7a00 vstr s15, [r3]
  5479. float motorXAveCurrent = 0;
  5480. 80028d0: f04f 0300 mov.w r3, #0
  5481. 80028d4: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  5482. float motorYAveCurrent = 0;
  5483. 80028d8: f04f 0300 mov.w r3, #0
  5484. 80028dc: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  5485. float pvT1AveTemp = 0;
  5486. 80028e0: f04f 0300 mov.w r3, #0
  5487. 80028e4: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  5488. float pvT2AveTemp = 0;
  5489. 80028e8: f04f 0300 mov.w r3, #0
  5490. 80028ec: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  5491. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5492. 80028f0: 2300 movs r3, #0
  5493. 80028f2: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5494. 80028f6: e03c b.n 8002972 <ADC3MeasTask+0x24a>
  5495. motorXAveCurrent += motorXSensCircBuffer[i];
  5496. 80028f8: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5497. 80028fc: 009b lsls r3, r3, #2
  5498. 80028fe: 33f0 adds r3, #240 @ 0xf0
  5499. 8002900: 443b add r3, r7
  5500. 8002902: 3b4c subs r3, #76 @ 0x4c
  5501. 8002904: edd3 7a00 vldr s15, [r3]
  5502. 8002908: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5503. 800290c: ee77 7a27 vadd.f32 s15, s14, s15
  5504. 8002910: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5505. motorYAveCurrent += motorYSensCircBuffer[i];
  5506. 8002914: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5507. 8002918: 009b lsls r3, r3, #2
  5508. 800291a: 33f0 adds r3, #240 @ 0xf0
  5509. 800291c: 443b add r3, r7
  5510. 800291e: 3b74 subs r3, #116 @ 0x74
  5511. 8002920: edd3 7a00 vldr s15, [r3]
  5512. 8002924: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5513. 8002928: ee77 7a27 vadd.f32 s15, s14, s15
  5514. 800292c: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5515. #ifdef PV_BOARD
  5516. pvT1AveTemp += pvT1CircBuffer[i];
  5517. 8002930: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5518. 8002934: 009b lsls r3, r3, #2
  5519. 8002936: 33f0 adds r3, #240 @ 0xf0
  5520. 8002938: 443b add r3, r7
  5521. 800293a: 3b9c subs r3, #156 @ 0x9c
  5522. 800293c: edd3 7a00 vldr s15, [r3]
  5523. 8002940: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5524. 8002944: ee77 7a27 vadd.f32 s15, s14, s15
  5525. 8002948: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5526. pvT2AveTemp += pvT2CircBuffer[i];
  5527. 800294c: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5528. 8002950: 009b lsls r3, r3, #2
  5529. 8002952: 33f0 adds r3, #240 @ 0xf0
  5530. 8002954: 443b add r3, r7
  5531. 8002956: 3bc4 subs r3, #196 @ 0xc4
  5532. 8002958: edd3 7a00 vldr s15, [r3]
  5533. 800295c: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5534. 8002960: ee77 7a27 vadd.f32 s15, s14, s15
  5535. 8002964: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5536. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  5537. 8002968: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5538. 800296c: 3301 adds r3, #1
  5539. 800296e: f887 30db strb.w r3, [r7, #219] @ 0xdb
  5540. 8002972: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  5541. 8002976: 2b09 cmp r3, #9
  5542. 8002978: d9be bls.n 80028f8 <ADC3MeasTask+0x1d0>
  5543. #endif
  5544. }
  5545. motorXAveCurrent /= CIRC_BUFF_LEN;
  5546. 800297a: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  5547. 800297e: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5548. 8002982: eec7 7a26 vdiv.f32 s15, s14, s13
  5549. 8002986: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  5550. motorYAveCurrent /= CIRC_BUFF_LEN;
  5551. 800298a: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  5552. 800298e: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5553. 8002992: eec7 7a26 vdiv.f32 s15, s14, s13
  5554. 8002996: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  5555. pvT1AveTemp /= CIRC_BUFF_LEN;
  5556. 800299a: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  5557. 800299e: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5558. 80029a2: eec7 7a26 vdiv.f32 s15, s14, s13
  5559. 80029a6: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  5560. pvT2AveTemp /= CIRC_BUFF_LEN;
  5561. 80029aa: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  5562. 80029ae: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  5563. 80029b2: eec7 7a26 vdiv.f32 s15, s14, s13
  5564. 80029b6: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  5565. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5566. 80029ba: 4b37 ldr r3, [pc, #220] @ (8002a98 <ADC3MeasTask+0x370>)
  5567. 80029bc: 681b ldr r3, [r3, #0]
  5568. 80029be: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5569. 80029c2: 4618 mov r0, r3
  5570. 80029c4: f011 fd77 bl 80144b6 <osMutexAcquire>
  5571. 80029c8: 4603 mov r3, r0
  5572. 80029ca: 2b00 cmp r3, #0
  5573. 80029cc: d138 bne.n 8002a40 <ADC3MeasTask+0x318>
  5574. if (sensorsInfo.motorXStatus == 1) {
  5575. 80029ce: 4b33 ldr r3, [pc, #204] @ (8002a9c <ADC3MeasTask+0x374>)
  5576. 80029d0: 7d1b ldrb r3, [r3, #20]
  5577. 80029d2: 2b01 cmp r3, #1
  5578. 80029d4: d111 bne.n 80029fa <ADC3MeasTask+0x2d2>
  5579. sensorsInfo.motorXAveCurrent = motorXAveCurrent;
  5580. 80029d6: 4a31 ldr r2, [pc, #196] @ (8002a9c <ADC3MeasTask+0x374>)
  5581. 80029d8: f8d7 30e8 ldr.w r3, [r7, #232] @ 0xe8
  5582. 80029dc: 6193 str r3, [r2, #24]
  5583. if (sensorsInfo.motorXPeakCurrent < motorXCurrentSense) {
  5584. 80029de: 4b2f ldr r3, [pc, #188] @ (8002a9c <ADC3MeasTask+0x374>)
  5585. 80029e0: edd3 7a08 vldr s15, [r3, #32]
  5586. 80029e4: ed97 7a34 vldr s14, [r7, #208] @ 0xd0
  5587. 80029e8: eeb4 7ae7 vcmpe.f32 s14, s15
  5588. 80029ec: eef1 fa10 vmrs APSR_nzcv, fpscr
  5589. 80029f0: dd03 ble.n 80029fa <ADC3MeasTask+0x2d2>
  5590. sensorsInfo.motorXPeakCurrent = motorXCurrentSense;
  5591. 80029f2: 4a2a ldr r2, [pc, #168] @ (8002a9c <ADC3MeasTask+0x374>)
  5592. 80029f4: f8d7 30d0 ldr.w r3, [r7, #208] @ 0xd0
  5593. 80029f8: 6213 str r3, [r2, #32]
  5594. }
  5595. }
  5596. if (sensorsInfo.motorYStatus == 1) {
  5597. 80029fa: 4b28 ldr r3, [pc, #160] @ (8002a9c <ADC3MeasTask+0x374>)
  5598. 80029fc: 7d5b ldrb r3, [r3, #21]
  5599. 80029fe: 2b01 cmp r3, #1
  5600. 8002a00: d111 bne.n 8002a26 <ADC3MeasTask+0x2fe>
  5601. sensorsInfo.motorYAveCurrent = motorYAveCurrent;
  5602. 8002a02: 4a26 ldr r2, [pc, #152] @ (8002a9c <ADC3MeasTask+0x374>)
  5603. 8002a04: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  5604. 8002a08: 61d3 str r3, [r2, #28]
  5605. if (sensorsInfo.motorYPeakCurrent < motorYCurrentSense) {
  5606. 8002a0a: 4b24 ldr r3, [pc, #144] @ (8002a9c <ADC3MeasTask+0x374>)
  5607. 8002a0c: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5608. 8002a10: ed97 7a33 vldr s14, [r7, #204] @ 0xcc
  5609. 8002a14: eeb4 7ae7 vcmpe.f32 s14, s15
  5610. 8002a18: eef1 fa10 vmrs APSR_nzcv, fpscr
  5611. 8002a1c: dd03 ble.n 8002a26 <ADC3MeasTask+0x2fe>
  5612. sensorsInfo.motorYPeakCurrent = motorYCurrentSense;
  5613. 8002a1e: 4a1f ldr r2, [pc, #124] @ (8002a9c <ADC3MeasTask+0x374>)
  5614. 8002a20: f8d7 30cc ldr.w r3, [r7, #204] @ 0xcc
  5615. 8002a24: 6253 str r3, [r2, #36] @ 0x24
  5616. }
  5617. }
  5618. sensorsInfo.pvTemperature[0] = pvT1AveTemp;
  5619. 8002a26: 4a1d ldr r2, [pc, #116] @ (8002a9c <ADC3MeasTask+0x374>)
  5620. 8002a28: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  5621. 8002a2c: 6013 str r3, [r2, #0]
  5622. sensorsInfo.pvTemperature[1] = pvT2AveTemp;
  5623. 8002a2e: 4a1b ldr r2, [pc, #108] @ (8002a9c <ADC3MeasTask+0x374>)
  5624. 8002a30: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  5625. 8002a34: 6053 str r3, [r2, #4]
  5626. osMutexRelease (sensorsInfoMutex);
  5627. 8002a36: 4b18 ldr r3, [pc, #96] @ (8002a98 <ADC3MeasTask+0x370>)
  5628. 8002a38: 681b ldr r3, [r3, #0]
  5629. 8002a3a: 4618 mov r0, r3
  5630. 8002a3c: f011 fd86 bl 801454c <osMutexRelease>
  5631. }
  5632. ++circBuffPos;
  5633. 8002a40: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  5634. 8002a44: 3301 adds r3, #1
  5635. 8002a46: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5636. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  5637. 8002a4a: f8d7 20ec ldr.w r2, [r7, #236] @ 0xec
  5638. 8002a4e: 4b14 ldr r3, [pc, #80] @ (8002aa0 <ADC3MeasTask+0x378>)
  5639. 8002a50: fba3 1302 umull r1, r3, r3, r2
  5640. 8002a54: 08d9 lsrs r1, r3, #3
  5641. 8002a56: 460b mov r3, r1
  5642. 8002a58: 009b lsls r3, r3, #2
  5643. 8002a5a: 440b add r3, r1
  5644. 8002a5c: 005b lsls r3, r3, #1
  5645. 8002a5e: 1ad3 subs r3, r2, r3
  5646. 8002a60: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  5647. while (pdTRUE) {
  5648. 8002a64: e68a b.n 800277c <ADC3MeasTask+0x54>
  5649. 8002a66: bf00 nop
  5650. 8002a68: 00000000 .word 0x00000000
  5651. 8002a6c: 40efffe0 .word 0x40efffe0
  5652. 8002a70: 3ad18d26 .word 0x3ad18d26
  5653. 8002a74: 4020aaaa .word 0x4020aaaa
  5654. 8002a78: aaa38226 .word 0xaaa38226
  5655. 8002a7c: 4046aaaa .word 0x4046aaaa
  5656. 8002a80: 00000000 .word 0x00000000
  5657. 8002a84: 404f8000 .word 0x404f8000
  5658. 8002a88: 24000808 .word 0x24000808
  5659. 8002a8c: 1ff1e860 .word 0x1ff1e860
  5660. 8002a90: 24000814 .word 0x24000814
  5661. 8002a94: 24000030 .word 0x24000030
  5662. 8002a98: 2400081c .word 0x2400081c
  5663. 8002a9c: 24000860 .word 0x24000860
  5664. 8002aa0: cccccccd .word 0xcccccccd
  5665. 08002aa4 <LimiterSwitchTask>:
  5666. }
  5667. }
  5668. void LimiterSwitchTask (void* arg) {
  5669. 8002aa4: b580 push {r7, lr}
  5670. 8002aa6: b08a sub sp, #40 @ 0x28
  5671. 8002aa8: af06 add r7, sp, #24
  5672. 8002aaa: 6078 str r0, [r7, #4]
  5673. LimiterSwitchData limiterSwitchData = { 0 };
  5674. 8002aac: 2300 movs r3, #0
  5675. 8002aae: 60bb str r3, [r7, #8]
  5676. limiterSwitchData.gpioPin = GPIO_PIN_8;
  5677. 8002ab0: f44f 7380 mov.w r3, #256 @ 0x100
  5678. 8002ab4: 813b strh r3, [r7, #8]
  5679. for (uint8_t i = 0; i < 6; i++) {
  5680. 8002ab6: 2300 movs r3, #0
  5681. 8002ab8: 73fb strb r3, [r7, #15]
  5682. 8002aba: e02c b.n 8002b16 <LimiterSwitchTask+0x72>
  5683. limiterSwitchData.pinState = HAL_GPIO_ReadPin (GPIOD, limiterSwitchData.gpioPin);
  5684. 8002abc: 893b ldrh r3, [r7, #8]
  5685. 8002abe: 4619 mov r1, r3
  5686. 8002ac0: 48a5 ldr r0, [pc, #660] @ (8002d58 <LimiterSwitchTask+0x2b4>)
  5687. 8002ac2: f008 fd33 bl 800b52c <HAL_GPIO_ReadPin>
  5688. 8002ac6: 4603 mov r3, r0
  5689. 8002ac8: 72bb strb r3, [r7, #10]
  5690. osMessageQueuePut (limiterSwitchDataQueue, &limiterSwitchData, 0, 0);
  5691. 8002aca: 4ba4 ldr r3, [pc, #656] @ (8002d5c <LimiterSwitchTask+0x2b8>)
  5692. 8002acc: 6818 ldr r0, [r3, #0]
  5693. 8002ace: f107 0108 add.w r1, r7, #8
  5694. 8002ad2: 2300 movs r3, #0
  5695. 8002ad4: 2200 movs r2, #0
  5696. 8002ad6: f011 fde9 bl 80146ac <osMessageQueuePut>
  5697. limiterSwitchData.gpioPin = limiterSwitchData.gpioPin << 1;
  5698. 8002ada: 893b ldrh r3, [r7, #8]
  5699. 8002adc: 005b lsls r3, r3, #1
  5700. 8002ade: b29b uxth r3, r3
  5701. 8002ae0: 813b strh r3, [r7, #8]
  5702. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5703. 8002ae2: 4b9f ldr r3, [pc, #636] @ (8002d60 <LimiterSwitchTask+0x2bc>)
  5704. 8002ae4: 681b ldr r3, [r3, #0]
  5705. 8002ae6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5706. 8002aea: 4618 mov r0, r3
  5707. 8002aec: f011 fce3 bl 80144b6 <osMutexAcquire>
  5708. 8002af0: 4603 mov r3, r0
  5709. 8002af2: 2b00 cmp r3, #0
  5710. 8002af4: d10c bne.n 8002b10 <LimiterSwitchTask+0x6c>
  5711. sensorsInfo.positionXWeak = 1;
  5712. 8002af6: 4b9b ldr r3, [pc, #620] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5713. 8002af8: 2201 movs r2, #1
  5714. 8002afa: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5715. sensorsInfo.positionYWeak = 1;
  5716. 8002afe: 4b99 ldr r3, [pc, #612] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5717. 8002b00: 2201 movs r2, #1
  5718. 8002b02: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5719. osMutexRelease (sensorsInfoMutex);
  5720. 8002b06: 4b96 ldr r3, [pc, #600] @ (8002d60 <LimiterSwitchTask+0x2bc>)
  5721. 8002b08: 681b ldr r3, [r3, #0]
  5722. 8002b0a: 4618 mov r0, r3
  5723. 8002b0c: f011 fd1e bl 801454c <osMutexRelease>
  5724. for (uint8_t i = 0; i < 6; i++) {
  5725. 8002b10: 7bfb ldrb r3, [r7, #15]
  5726. 8002b12: 3301 adds r3, #1
  5727. 8002b14: 73fb strb r3, [r7, #15]
  5728. 8002b16: 7bfb ldrb r3, [r7, #15]
  5729. 8002b18: 2b05 cmp r3, #5
  5730. 8002b1a: d9cf bls.n 8002abc <LimiterSwitchTask+0x18>
  5731. }
  5732. }
  5733. while (pdTRUE) {
  5734. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  5735. 8002b1c: 4b8f ldr r3, [pc, #572] @ (8002d5c <LimiterSwitchTask+0x2b8>)
  5736. 8002b1e: 6818 ldr r0, [r3, #0]
  5737. 8002b20: f107 0108 add.w r1, r7, #8
  5738. 8002b24: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5739. 8002b28: 2200 movs r2, #0
  5740. 8002b2a: f011 fe1f bl 801476c <osMessageQueueGet>
  5741. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5742. 8002b2e: 4b8c ldr r3, [pc, #560] @ (8002d60 <LimiterSwitchTask+0x2bc>)
  5743. 8002b30: 681b ldr r3, [r3, #0]
  5744. 8002b32: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5745. 8002b36: 4618 mov r0, r3
  5746. 8002b38: f011 fcbd bl 80144b6 <osMutexAcquire>
  5747. 8002b3c: 4603 mov r3, r0
  5748. 8002b3e: 2b00 cmp r3, #0
  5749. 8002b40: d1ec bne.n 8002b1c <LimiterSwitchTask+0x78>
  5750. switch (limiterSwitchData.gpioPin) {
  5751. 8002b42: 893b ldrh r3, [r7, #8]
  5752. 8002b44: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5753. 8002b48: f000 8094 beq.w 8002c74 <LimiterSwitchTask+0x1d0>
  5754. 8002b4c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5755. 8002b50: f300 80a8 bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5756. 8002b54: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5757. 8002b58: d075 beq.n 8002c46 <LimiterSwitchTask+0x1a2>
  5758. 8002b5a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5759. 8002b5e: f300 80a1 bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5760. 8002b62: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5761. 8002b66: d057 beq.n 8002c18 <LimiterSwitchTask+0x174>
  5762. 8002b68: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5763. 8002b6c: f300 809a bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5764. 8002b70: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5765. 8002b74: d039 beq.n 8002bea <LimiterSwitchTask+0x146>
  5766. 8002b76: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5767. 8002b7a: f300 8093 bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5768. 8002b7e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  5769. 8002b82: d003 beq.n 8002b8c <LimiterSwitchTask+0xe8>
  5770. 8002b84: f5b3 7f00 cmp.w r3, #512 @ 0x200
  5771. 8002b88: d017 beq.n 8002bba <LimiterSwitchTask+0x116>
  5772. {
  5773. sensorsInfo.currentXPosition = 0;
  5774. sensorsInfo.positionXWeak = 0;
  5775. }
  5776. break;
  5777. default: break;
  5778. 8002b8a: e08b b.n 8002ca4 <LimiterSwitchTask+0x200>
  5779. sensorsInfo.limitYSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5780. 8002b8c: 7abb ldrb r3, [r7, #10]
  5781. 8002b8e: 2b01 cmp r3, #1
  5782. 8002b90: bf0c ite eq
  5783. 8002b92: 2301 moveq r3, #1
  5784. 8002b94: 2300 movne r3, #0
  5785. 8002b96: b2db uxtb r3, r3
  5786. 8002b98: 461a mov r2, r3
  5787. 8002b9a: 4b72 ldr r3, [pc, #456] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5788. 8002b9c: f883 202d strb.w r2, [r3, #45] @ 0x2d
  5789. if (sensorsInfo.limitYSwitchCenter == 1)
  5790. 8002ba0: 4b70 ldr r3, [pc, #448] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5791. 8002ba2: f893 302d ldrb.w r3, [r3, #45] @ 0x2d
  5792. 8002ba6: 2b01 cmp r3, #1
  5793. 8002ba8: d17e bne.n 8002ca8 <LimiterSwitchTask+0x204>
  5794. sensorsInfo.currentYPosition = AXE_Y_MIDDLE_VALUE;
  5795. 8002baa: 4b6e ldr r3, [pc, #440] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5796. 8002bac: 4a6e ldr r2, [pc, #440] @ (8002d68 <LimiterSwitchTask+0x2c4>)
  5797. 8002bae: 635a str r2, [r3, #52] @ 0x34
  5798. sensorsInfo.positionYWeak = 0;
  5799. 8002bb0: 4b6c ldr r3, [pc, #432] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5800. 8002bb2: 2200 movs r2, #0
  5801. 8002bb4: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5802. break;
  5803. 8002bb8: e076 b.n 8002ca8 <LimiterSwitchTask+0x204>
  5804. sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5805. 8002bba: 7abb ldrb r3, [r7, #10]
  5806. 8002bbc: 2b01 cmp r3, #1
  5807. 8002bbe: bf0c ite eq
  5808. 8002bc0: 2301 moveq r3, #1
  5809. 8002bc2: 2300 movne r3, #0
  5810. 8002bc4: b2db uxtb r3, r3
  5811. 8002bc6: 461a mov r2, r3
  5812. 8002bc8: 4b66 ldr r3, [pc, #408] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5813. 8002bca: f883 202c strb.w r2, [r3, #44] @ 0x2c
  5814. if (sensorsInfo.limitYSwitchDown == 1)
  5815. 8002bce: 4b65 ldr r3, [pc, #404] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5816. 8002bd0: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5817. 8002bd4: 2b01 cmp r3, #1
  5818. 8002bd6: d169 bne.n 8002cac <LimiterSwitchTask+0x208>
  5819. sensorsInfo.currentYPosition = 0;
  5820. 8002bd8: 4b62 ldr r3, [pc, #392] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5821. 8002bda: f04f 0200 mov.w r2, #0
  5822. 8002bde: 635a str r2, [r3, #52] @ 0x34
  5823. sensorsInfo.positionYWeak = 0;
  5824. 8002be0: 4b60 ldr r3, [pc, #384] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5825. 8002be2: 2200 movs r2, #0
  5826. 8002be4: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5827. break;
  5828. 8002be8: e060 b.n 8002cac <LimiterSwitchTask+0x208>
  5829. sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5830. 8002bea: 7abb ldrb r3, [r7, #10]
  5831. 8002bec: 2b01 cmp r3, #1
  5832. 8002bee: bf0c ite eq
  5833. 8002bf0: 2301 moveq r3, #1
  5834. 8002bf2: 2300 movne r3, #0
  5835. 8002bf4: b2db uxtb r3, r3
  5836. 8002bf6: 461a mov r2, r3
  5837. 8002bf8: 4b5a ldr r3, [pc, #360] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5838. 8002bfa: f883 202a strb.w r2, [r3, #42] @ 0x2a
  5839. if (sensorsInfo.limitXSwitchCenter == 1)
  5840. 8002bfe: 4b59 ldr r3, [pc, #356] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5841. 8002c00: f893 302a ldrb.w r3, [r3, #42] @ 0x2a
  5842. 8002c04: 2b01 cmp r3, #1
  5843. 8002c06: d153 bne.n 8002cb0 <LimiterSwitchTask+0x20c>
  5844. sensorsInfo.currentXPosition = AXE_X_MIDDLE_VALUE;
  5845. 8002c08: 4b56 ldr r3, [pc, #344] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5846. 8002c0a: 4a57 ldr r2, [pc, #348] @ (8002d68 <LimiterSwitchTask+0x2c4>)
  5847. 8002c0c: 631a str r2, [r3, #48] @ 0x30
  5848. sensorsInfo.positionXWeak = 0;
  5849. 8002c0e: 4b55 ldr r3, [pc, #340] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5850. 8002c10: 2200 movs r2, #0
  5851. 8002c12: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5852. break;
  5853. 8002c16: e04b b.n 8002cb0 <LimiterSwitchTask+0x20c>
  5854. sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5855. 8002c18: 7abb ldrb r3, [r7, #10]
  5856. 8002c1a: 2b01 cmp r3, #1
  5857. 8002c1c: bf0c ite eq
  5858. 8002c1e: 2301 moveq r3, #1
  5859. 8002c20: 2300 movne r3, #0
  5860. 8002c22: b2db uxtb r3, r3
  5861. 8002c24: 461a mov r2, r3
  5862. 8002c26: 4b4f ldr r3, [pc, #316] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5863. 8002c28: f883 202b strb.w r2, [r3, #43] @ 0x2b
  5864. if (sensorsInfo.limitYSwitchUp == 1)
  5865. 8002c2c: 4b4d ldr r3, [pc, #308] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5866. 8002c2e: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5867. 8002c32: 2b01 cmp r3, #1
  5868. 8002c34: d13e bne.n 8002cb4 <LimiterSwitchTask+0x210>
  5869. sensorsInfo.currentYPosition = 100;
  5870. 8002c36: 4b4b ldr r3, [pc, #300] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5871. 8002c38: 4a4c ldr r2, [pc, #304] @ (8002d6c <LimiterSwitchTask+0x2c8>)
  5872. 8002c3a: 635a str r2, [r3, #52] @ 0x34
  5873. sensorsInfo.positionYWeak = 0;
  5874. 8002c3c: 4b49 ldr r3, [pc, #292] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5875. 8002c3e: 2200 movs r2, #0
  5876. 8002c40: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5877. break;
  5878. 8002c44: e036 b.n 8002cb4 <LimiterSwitchTask+0x210>
  5879. sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5880. 8002c46: 7abb ldrb r3, [r7, #10]
  5881. 8002c48: 2b01 cmp r3, #1
  5882. 8002c4a: bf0c ite eq
  5883. 8002c4c: 2301 moveq r3, #1
  5884. 8002c4e: 2300 movne r3, #0
  5885. 8002c50: b2db uxtb r3, r3
  5886. 8002c52: 461a mov r2, r3
  5887. 8002c54: 4b43 ldr r3, [pc, #268] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5888. 8002c56: f883 2028 strb.w r2, [r3, #40] @ 0x28
  5889. if (sensorsInfo.limitXSwitchUp == 1)
  5890. 8002c5a: 4b42 ldr r3, [pc, #264] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5891. 8002c5c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5892. 8002c60: 2b01 cmp r3, #1
  5893. 8002c62: d129 bne.n 8002cb8 <LimiterSwitchTask+0x214>
  5894. sensorsInfo.currentXPosition = 100;
  5895. 8002c64: 4b3f ldr r3, [pc, #252] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5896. 8002c66: 4a41 ldr r2, [pc, #260] @ (8002d6c <LimiterSwitchTask+0x2c8>)
  5897. 8002c68: 631a str r2, [r3, #48] @ 0x30
  5898. sensorsInfo.positionXWeak = 0;
  5899. 8002c6a: 4b3e ldr r3, [pc, #248] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5900. 8002c6c: 2200 movs r2, #0
  5901. 8002c6e: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5902. break;
  5903. 8002c72: e021 b.n 8002cb8 <LimiterSwitchTask+0x214>
  5904. sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5905. 8002c74: 7abb ldrb r3, [r7, #10]
  5906. 8002c76: 2b01 cmp r3, #1
  5907. 8002c78: bf0c ite eq
  5908. 8002c7a: 2301 moveq r3, #1
  5909. 8002c7c: 2300 movne r3, #0
  5910. 8002c7e: b2db uxtb r3, r3
  5911. 8002c80: 461a mov r2, r3
  5912. 8002c82: 4b38 ldr r3, [pc, #224] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5913. 8002c84: f883 2029 strb.w r2, [r3, #41] @ 0x29
  5914. if (sensorsInfo.limitXSwitchDown == 1)
  5915. 8002c88: 4b36 ldr r3, [pc, #216] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5916. 8002c8a: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5917. 8002c8e: 2b01 cmp r3, #1
  5918. 8002c90: d114 bne.n 8002cbc <LimiterSwitchTask+0x218>
  5919. sensorsInfo.currentXPosition = 0;
  5920. 8002c92: 4b34 ldr r3, [pc, #208] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5921. 8002c94: f04f 0200 mov.w r2, #0
  5922. 8002c98: 631a str r2, [r3, #48] @ 0x30
  5923. sensorsInfo.positionXWeak = 0;
  5924. 8002c9a: 4b32 ldr r3, [pc, #200] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5925. 8002c9c: 2200 movs r2, #0
  5926. 8002c9e: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5927. break;
  5928. 8002ca2: e00b b.n 8002cbc <LimiterSwitchTask+0x218>
  5929. default: break;
  5930. 8002ca4: bf00 nop
  5931. 8002ca6: e00a b.n 8002cbe <LimiterSwitchTask+0x21a>
  5932. break;
  5933. 8002ca8: bf00 nop
  5934. 8002caa: e008 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5935. break;
  5936. 8002cac: bf00 nop
  5937. 8002cae: e006 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5938. break;
  5939. 8002cb0: bf00 nop
  5940. 8002cb2: e004 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5941. break;
  5942. 8002cb4: bf00 nop
  5943. 8002cb6: e002 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5944. break;
  5945. 8002cb8: bf00 nop
  5946. 8002cba: e000 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5947. break;
  5948. 8002cbc: bf00 nop
  5949. }
  5950. if ((sensorsInfo.limitXSwitchDown == 1) || (sensorsInfo.limitXSwitchUp == 1)) {
  5951. 8002cbe: 4b29 ldr r3, [pc, #164] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5952. 8002cc0: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5953. 8002cc4: 2b01 cmp r3, #1
  5954. 8002cc6: d004 beq.n 8002cd2 <LimiterSwitchTask+0x22e>
  5955. 8002cc8: 4b26 ldr r3, [pc, #152] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5956. 8002cca: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5957. 8002cce: 2b01 cmp r3, #1
  5958. 8002cd0: d118 bne.n 8002d04 <LimiterSwitchTask+0x260>
  5959. sensorsInfo.motorXStatus = MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, 0, 0, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  5960. 8002cd2: 4b27 ldr r3, [pc, #156] @ (8002d70 <LimiterSwitchTask+0x2cc>)
  5961. 8002cd4: 681b ldr r3, [r3, #0]
  5962. 8002cd6: 4a23 ldr r2, [pc, #140] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5963. 8002cd8: f892 2028 ldrb.w r2, [r2, #40] @ 0x28
  5964. 8002cdc: 4921 ldr r1, [pc, #132] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5965. 8002cde: f891 1029 ldrb.w r1, [r1, #41] @ 0x29
  5966. 8002ce2: 9104 str r1, [sp, #16]
  5967. 8002ce4: 9203 str r2, [sp, #12]
  5968. 8002ce6: 2200 movs r2, #0
  5969. 8002ce8: 9202 str r2, [sp, #8]
  5970. 8002cea: 2200 movs r2, #0
  5971. 8002cec: 9201 str r2, [sp, #4]
  5972. 8002cee: 9300 str r3, [sp, #0]
  5973. 8002cf0: 2304 movs r3, #4
  5974. 8002cf2: 2200 movs r2, #0
  5975. 8002cf4: 491f ldr r1, [pc, #124] @ (8002d74 <LimiterSwitchTask+0x2d0>)
  5976. 8002cf6: 4820 ldr r0, [pc, #128] @ (8002d78 <LimiterSwitchTask+0x2d4>)
  5977. 8002cf8: f000 f982 bl 8003000 <MotorControl>
  5978. 8002cfc: 4603 mov r3, r0
  5979. 8002cfe: 461a mov r2, r3
  5980. 8002d00: 4b18 ldr r3, [pc, #96] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5981. 8002d02: 751a strb r2, [r3, #20]
  5982. }
  5983. if ((sensorsInfo.limitYSwitchDown == 1) || (sensorsInfo.limitYSwitchUp == 1)) {
  5984. 8002d04: 4b17 ldr r3, [pc, #92] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5985. 8002d06: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5986. 8002d0a: 2b01 cmp r3, #1
  5987. 8002d0c: d004 beq.n 8002d18 <LimiterSwitchTask+0x274>
  5988. 8002d0e: 4b15 ldr r3, [pc, #84] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5989. 8002d10: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5990. 8002d14: 2b01 cmp r3, #1
  5991. 8002d16: d118 bne.n 8002d4a <LimiterSwitchTask+0x2a6>
  5992. sensorsInfo.motorYStatus = MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, 0, 0, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  5993. 8002d18: 4b18 ldr r3, [pc, #96] @ (8002d7c <LimiterSwitchTask+0x2d8>)
  5994. 8002d1a: 681b ldr r3, [r3, #0]
  5995. 8002d1c: 4a11 ldr r2, [pc, #68] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5996. 8002d1e: f892 202b ldrb.w r2, [r2, #43] @ 0x2b
  5997. 8002d22: 4910 ldr r1, [pc, #64] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5998. 8002d24: f891 102c ldrb.w r1, [r1, #44] @ 0x2c
  5999. 8002d28: 9104 str r1, [sp, #16]
  6000. 8002d2a: 9203 str r2, [sp, #12]
  6001. 8002d2c: 2200 movs r2, #0
  6002. 8002d2e: 9202 str r2, [sp, #8]
  6003. 8002d30: 2200 movs r2, #0
  6004. 8002d32: 9201 str r2, [sp, #4]
  6005. 8002d34: 9300 str r3, [sp, #0]
  6006. 8002d36: 230c movs r3, #12
  6007. 8002d38: 2208 movs r2, #8
  6008. 8002d3a: 490e ldr r1, [pc, #56] @ (8002d74 <LimiterSwitchTask+0x2d0>)
  6009. 8002d3c: 480e ldr r0, [pc, #56] @ (8002d78 <LimiterSwitchTask+0x2d4>)
  6010. 8002d3e: f000 f95f bl 8003000 <MotorControl>
  6011. 8002d42: 4603 mov r3, r0
  6012. 8002d44: 461a mov r2, r3
  6013. 8002d46: 4b07 ldr r3, [pc, #28] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  6014. 8002d48: 755a strb r2, [r3, #21]
  6015. }
  6016. osMutexRelease (sensorsInfoMutex);
  6017. 8002d4a: 4b05 ldr r3, [pc, #20] @ (8002d60 <LimiterSwitchTask+0x2bc>)
  6018. 8002d4c: 681b ldr r3, [r3, #0]
  6019. 8002d4e: 4618 mov r0, r3
  6020. 8002d50: f011 fbfc bl 801454c <osMutexRelease>
  6021. osMessageQueueGet (limiterSwitchDataQueue, &limiterSwitchData, 0, osWaitForever);
  6022. 8002d54: e6e2 b.n 8002b1c <LimiterSwitchTask+0x78>
  6023. 8002d56: bf00 nop
  6024. 8002d58: 58020c00 .word 0x58020c00
  6025. 8002d5c: 2400080c .word 0x2400080c
  6026. 8002d60: 2400081c .word 0x2400081c
  6027. 8002d64: 24000860 .word 0x24000860
  6028. 8002d68: 42480000 .word 0x42480000
  6029. 8002d6c: 42c80000 .word 0x42c80000
  6030. 8002d70: 24000744 .word 0x24000744
  6031. 8002d74: 240007c0 .word 0x240007c0
  6032. 8002d78: 240004d4 .word 0x240004d4
  6033. 8002d7c: 24000774 .word 0x24000774
  6034. 08002d80 <EncoderTask>:
  6035. }
  6036. }
  6037. }
  6038. void EncoderTask (void* arg) {
  6039. 8002d80: b580 push {r7, lr}
  6040. 8002d82: b086 sub sp, #24
  6041. 8002d84: af00 add r7, sp, #0
  6042. 8002d86: 6078 str r0, [r7, #4]
  6043. EncoderData encoderData = { 0 };
  6044. 8002d88: 2300 movs r3, #0
  6045. 8002d8a: 813b strh r3, [r7, #8]
  6046. osMessageQueueId_t encoderQueue = (osMessageQueueId_t)arg;
  6047. 8002d8c: 687b ldr r3, [r7, #4]
  6048. 8002d8e: 617b str r3, [r7, #20]
  6049. while (pdTRUE) {
  6050. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  6051. 8002d90: f107 0108 add.w r1, r7, #8
  6052. 8002d94: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  6053. 8002d98: 2200 movs r2, #0
  6054. 8002d9a: 6978 ldr r0, [r7, #20]
  6055. 8002d9c: f011 fce6 bl 801476c <osMessageQueueGet>
  6056. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  6057. 8002da0: 4b4b ldr r3, [pc, #300] @ (8002ed0 <EncoderTask+0x150>)
  6058. 8002da2: 681b ldr r3, [r3, #0]
  6059. 8002da4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6060. 8002da8: 4618 mov r0, r3
  6061. 8002daa: f011 fb84 bl 80144b6 <osMutexAcquire>
  6062. 8002dae: 4603 mov r3, r0
  6063. 8002db0: 2b00 cmp r3, #0
  6064. 8002db2: d1ed bne.n 8002d90 <EncoderTask+0x10>
  6065. if (encoderData.axe == encoderAxeX) {
  6066. 8002db4: 7a3b ldrb r3, [r7, #8]
  6067. 8002db6: 2b00 cmp r3, #0
  6068. 8002db8: d142 bne.n 8002e40 <EncoderTask+0xc0>
  6069. if (encoderData.direction == encoderCW) {
  6070. 8002dba: 7a7b ldrb r3, [r7, #9]
  6071. 8002dbc: 2b00 cmp r3, #0
  6072. 8002dbe: d10a bne.n 8002dd6 <EncoderTask+0x56>
  6073. sensorsInfo.pvEncoderX += 360.0 / ENCODER_X_IMP_PER_TURN;
  6074. 8002dc0: 4b44 ldr r3, [pc, #272] @ (8002ed4 <EncoderTask+0x154>)
  6075. 8002dc2: edd3 7a03 vldr s15, [r3, #12]
  6076. 8002dc6: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6077. 8002dca: ee77 7a87 vadd.f32 s15, s15, s14
  6078. 8002dce: 4b41 ldr r3, [pc, #260] @ (8002ed4 <EncoderTask+0x154>)
  6079. 8002dd0: edc3 7a03 vstr s15, [r3, #12]
  6080. 8002dd4: e009 b.n 8002dea <EncoderTask+0x6a>
  6081. } else {
  6082. sensorsInfo.pvEncoderX -= 360.0 / ENCODER_X_IMP_PER_TURN;
  6083. 8002dd6: 4b3f ldr r3, [pc, #252] @ (8002ed4 <EncoderTask+0x154>)
  6084. 8002dd8: edd3 7a03 vldr s15, [r3, #12]
  6085. 8002ddc: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6086. 8002de0: ee77 7ac7 vsub.f32 s15, s15, s14
  6087. 8002de4: 4b3b ldr r3, [pc, #236] @ (8002ed4 <EncoderTask+0x154>)
  6088. 8002de6: edc3 7a03 vstr s15, [r3, #12]
  6089. }
  6090. float currentPercentPos = 100 * sensorsInfo.pvEncoderX / MAX_X_AXE_ANGLE;
  6091. 8002dea: 4b3a ldr r3, [pc, #232] @ (8002ed4 <EncoderTask+0x154>)
  6092. 8002dec: edd3 7a03 vldr s15, [r3, #12]
  6093. 8002df0: ed9f 7a39 vldr s14, [pc, #228] @ 8002ed8 <EncoderTask+0x158>
  6094. 8002df4: ee27 7a87 vmul.f32 s14, s15, s14
  6095. 8002df8: eddf 6a38 vldr s13, [pc, #224] @ 8002edc <EncoderTask+0x15c>
  6096. 8002dfc: eec7 7a26 vdiv.f32 s15, s14, s13
  6097. 8002e00: edc7 7a03 vstr s15, [r7, #12]
  6098. currentPercentPos = currentPercentPos < 0 ? 0 : currentPercentPos;
  6099. 8002e04: edd7 7a03 vldr s15, [r7, #12]
  6100. 8002e08: eef5 7ac0 vcmpe.f32 s15, #0.0
  6101. 8002e0c: eef1 fa10 vmrs APSR_nzcv, fpscr
  6102. 8002e10: d502 bpl.n 8002e18 <EncoderTask+0x98>
  6103. 8002e12: f04f 0300 mov.w r3, #0
  6104. 8002e16: e000 b.n 8002e1a <EncoderTask+0x9a>
  6105. 8002e18: 68fb ldr r3, [r7, #12]
  6106. 8002e1a: 60fb str r3, [r7, #12]
  6107. sensorsInfo.currentXPosition = currentPercentPos > 100 ? 100 : currentPercentPos;
  6108. 8002e1c: edd7 7a03 vldr s15, [r7, #12]
  6109. 8002e20: ed9f 7a2d vldr s14, [pc, #180] @ 8002ed8 <EncoderTask+0x158>
  6110. 8002e24: eef4 7ac7 vcmpe.f32 s15, s14
  6111. 8002e28: eef1 fa10 vmrs APSR_nzcv, fpscr
  6112. 8002e2c: dd01 ble.n 8002e32 <EncoderTask+0xb2>
  6113. 8002e2e: 4b2c ldr r3, [pc, #176] @ (8002ee0 <EncoderTask+0x160>)
  6114. 8002e30: e000 b.n 8002e34 <EncoderTask+0xb4>
  6115. 8002e32: 68fb ldr r3, [r7, #12]
  6116. 8002e34: 4a27 ldr r2, [pc, #156] @ (8002ed4 <EncoderTask+0x154>)
  6117. 8002e36: 6313 str r3, [r2, #48] @ 0x30
  6118. DbgLEDToggle(DBG_LED2);
  6119. 8002e38: 2020 movs r0, #32
  6120. 8002e3a: f000 f877 bl 8002f2c <DbgLEDToggle>
  6121. 8002e3e: e041 b.n 8002ec4 <EncoderTask+0x144>
  6122. } else {
  6123. if (encoderData.direction == encoderCW) {
  6124. 8002e40: 7a7b ldrb r3, [r7, #9]
  6125. 8002e42: 2b00 cmp r3, #0
  6126. 8002e44: d10a bne.n 8002e5c <EncoderTask+0xdc>
  6127. sensorsInfo.pvEncoderY += 360.0 / ENCODER_Y_IMP_PER_TURN;
  6128. 8002e46: 4b23 ldr r3, [pc, #140] @ (8002ed4 <EncoderTask+0x154>)
  6129. 8002e48: edd3 7a04 vldr s15, [r3, #16]
  6130. 8002e4c: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6131. 8002e50: ee77 7a87 vadd.f32 s15, s15, s14
  6132. 8002e54: 4b1f ldr r3, [pc, #124] @ (8002ed4 <EncoderTask+0x154>)
  6133. 8002e56: edc3 7a04 vstr s15, [r3, #16]
  6134. 8002e5a: e009 b.n 8002e70 <EncoderTask+0xf0>
  6135. } else {
  6136. sensorsInfo.pvEncoderY -= 360.0 / ENCODER_Y_IMP_PER_TURN;
  6137. 8002e5c: 4b1d ldr r3, [pc, #116] @ (8002ed4 <EncoderTask+0x154>)
  6138. 8002e5e: edd3 7a04 vldr s15, [r3, #16]
  6139. 8002e62: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6140. 8002e66: ee77 7ac7 vsub.f32 s15, s15, s14
  6141. 8002e6a: 4b1a ldr r3, [pc, #104] @ (8002ed4 <EncoderTask+0x154>)
  6142. 8002e6c: edc3 7a04 vstr s15, [r3, #16]
  6143. }
  6144. float currentPercentPos = 100 * sensorsInfo.pvEncoderY / MAX_X_AXE_ANGLE;
  6145. 8002e70: 4b18 ldr r3, [pc, #96] @ (8002ed4 <EncoderTask+0x154>)
  6146. 8002e72: edd3 7a04 vldr s15, [r3, #16]
  6147. 8002e76: ed9f 7a18 vldr s14, [pc, #96] @ 8002ed8 <EncoderTask+0x158>
  6148. 8002e7a: ee27 7a87 vmul.f32 s14, s15, s14
  6149. 8002e7e: eddf 6a17 vldr s13, [pc, #92] @ 8002edc <EncoderTask+0x15c>
  6150. 8002e82: eec7 7a26 vdiv.f32 s15, s14, s13
  6151. 8002e86: edc7 7a04 vstr s15, [r7, #16]
  6152. currentPercentPos = currentPercentPos < 0 ? 0 : currentPercentPos;
  6153. 8002e8a: edd7 7a04 vldr s15, [r7, #16]
  6154. 8002e8e: eef5 7ac0 vcmpe.f32 s15, #0.0
  6155. 8002e92: eef1 fa10 vmrs APSR_nzcv, fpscr
  6156. 8002e96: d502 bpl.n 8002e9e <EncoderTask+0x11e>
  6157. 8002e98: f04f 0300 mov.w r3, #0
  6158. 8002e9c: e000 b.n 8002ea0 <EncoderTask+0x120>
  6159. 8002e9e: 693b ldr r3, [r7, #16]
  6160. 8002ea0: 613b str r3, [r7, #16]
  6161. sensorsInfo.currentXPosition = currentPercentPos > 100 ? 100 : currentPercentPos;
  6162. 8002ea2: edd7 7a04 vldr s15, [r7, #16]
  6163. 8002ea6: ed9f 7a0c vldr s14, [pc, #48] @ 8002ed8 <EncoderTask+0x158>
  6164. 8002eaa: eef4 7ac7 vcmpe.f32 s15, s14
  6165. 8002eae: eef1 fa10 vmrs APSR_nzcv, fpscr
  6166. 8002eb2: dd01 ble.n 8002eb8 <EncoderTask+0x138>
  6167. 8002eb4: 4b0a ldr r3, [pc, #40] @ (8002ee0 <EncoderTask+0x160>)
  6168. 8002eb6: e000 b.n 8002eba <EncoderTask+0x13a>
  6169. 8002eb8: 693b ldr r3, [r7, #16]
  6170. 8002eba: 4a06 ldr r2, [pc, #24] @ (8002ed4 <EncoderTask+0x154>)
  6171. 8002ebc: 6313 str r3, [r2, #48] @ 0x30
  6172. DbgLEDToggle(DBG_LED3);
  6173. 8002ebe: 2040 movs r0, #64 @ 0x40
  6174. 8002ec0: f000 f834 bl 8002f2c <DbgLEDToggle>
  6175. }
  6176. osMutexRelease (sensorsInfoMutex);
  6177. 8002ec4: 4b02 ldr r3, [pc, #8] @ (8002ed0 <EncoderTask+0x150>)
  6178. 8002ec6: 681b ldr r3, [r3, #0]
  6179. 8002ec8: 4618 mov r0, r3
  6180. 8002eca: f011 fb3f bl 801454c <osMutexRelease>
  6181. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  6182. 8002ece: e75f b.n 8002d90 <EncoderTask+0x10>
  6183. 8002ed0: 2400081c .word 0x2400081c
  6184. 8002ed4: 24000860 .word 0x24000860
  6185. 8002ed8: 42c80000 .word 0x42c80000
  6186. 8002edc: 43b40000 .word 0x43b40000
  6187. 8002ee0: 42c80000 .word 0x42c80000
  6188. 08002ee4 <DbgLEDOn>:
  6189. #include <stdlib.h>
  6190. #include "peripherial.h"
  6191. void DbgLEDOn (uint8_t ledNumber) {
  6192. 8002ee4: b580 push {r7, lr}
  6193. 8002ee6: b082 sub sp, #8
  6194. 8002ee8: af00 add r7, sp, #0
  6195. 8002eea: 4603 mov r3, r0
  6196. 8002eec: 71fb strb r3, [r7, #7]
  6197. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_SET);
  6198. 8002eee: 79fb ldrb r3, [r7, #7]
  6199. 8002ef0: b29b uxth r3, r3
  6200. 8002ef2: 2201 movs r2, #1
  6201. 8002ef4: 4619 mov r1, r3
  6202. 8002ef6: 4803 ldr r0, [pc, #12] @ (8002f04 <DbgLEDOn+0x20>)
  6203. 8002ef8: f008 fb30 bl 800b55c <HAL_GPIO_WritePin>
  6204. }
  6205. 8002efc: bf00 nop
  6206. 8002efe: 3708 adds r7, #8
  6207. 8002f00: 46bd mov sp, r7
  6208. 8002f02: bd80 pop {r7, pc}
  6209. 8002f04: 58020c00 .word 0x58020c00
  6210. 08002f08 <DbgLEDOff>:
  6211. void DbgLEDOff (uint8_t ledNumber) {
  6212. 8002f08: b580 push {r7, lr}
  6213. 8002f0a: b082 sub sp, #8
  6214. 8002f0c: af00 add r7, sp, #0
  6215. 8002f0e: 4603 mov r3, r0
  6216. 8002f10: 71fb strb r3, [r7, #7]
  6217. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_RESET);
  6218. 8002f12: 79fb ldrb r3, [r7, #7]
  6219. 8002f14: b29b uxth r3, r3
  6220. 8002f16: 2200 movs r2, #0
  6221. 8002f18: 4619 mov r1, r3
  6222. 8002f1a: 4803 ldr r0, [pc, #12] @ (8002f28 <DbgLEDOff+0x20>)
  6223. 8002f1c: f008 fb1e bl 800b55c <HAL_GPIO_WritePin>
  6224. }
  6225. 8002f20: bf00 nop
  6226. 8002f22: 3708 adds r7, #8
  6227. 8002f24: 46bd mov sp, r7
  6228. 8002f26: bd80 pop {r7, pc}
  6229. 8002f28: 58020c00 .word 0x58020c00
  6230. 08002f2c <DbgLEDToggle>:
  6231. void DbgLEDToggle (uint8_t ledNumber) {
  6232. 8002f2c: b580 push {r7, lr}
  6233. 8002f2e: b082 sub sp, #8
  6234. 8002f30: af00 add r7, sp, #0
  6235. 8002f32: 4603 mov r3, r0
  6236. 8002f34: 71fb strb r3, [r7, #7]
  6237. HAL_GPIO_TogglePin (GPIOD, ledNumber);
  6238. 8002f36: 79fb ldrb r3, [r7, #7]
  6239. 8002f38: b29b uxth r3, r3
  6240. 8002f3a: 4619 mov r1, r3
  6241. 8002f3c: 4803 ldr r0, [pc, #12] @ (8002f4c <DbgLEDToggle+0x20>)
  6242. 8002f3e: f008 fb26 bl 800b58e <HAL_GPIO_TogglePin>
  6243. }
  6244. 8002f42: bf00 nop
  6245. 8002f44: 3708 adds r7, #8
  6246. 8002f46: 46bd mov sp, r7
  6247. 8002f48: bd80 pop {r7, pc}
  6248. 8002f4a: bf00 nop
  6249. 8002f4c: 58020c00 .word 0x58020c00
  6250. 08002f50 <EnableCurrentSensors>:
  6251. void EnableCurrentSensors (void) {
  6252. 8002f50: b580 push {r7, lr}
  6253. 8002f52: af00 add r7, sp, #0
  6254. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_SET);
  6255. 8002f54: 2201 movs r2, #1
  6256. 8002f56: f44f 4100 mov.w r1, #32768 @ 0x8000
  6257. 8002f5a: 4802 ldr r0, [pc, #8] @ (8002f64 <EnableCurrentSensors+0x14>)
  6258. 8002f5c: f008 fafe bl 800b55c <HAL_GPIO_WritePin>
  6259. }
  6260. 8002f60: bf00 nop
  6261. 8002f62: bd80 pop {r7, pc}
  6262. 8002f64: 58021000 .word 0x58021000
  6263. 08002f68 <SelectCurrentSensorGain>:
  6264. void DisableCurrentSensors (void) {
  6265. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_RESET);
  6266. }
  6267. void SelectCurrentSensorGain (CurrentSensor sensor, CurrentSensorGain gain) {
  6268. 8002f68: b580 push {r7, lr}
  6269. 8002f6a: b084 sub sp, #16
  6270. 8002f6c: af00 add r7, sp, #0
  6271. 8002f6e: 4603 mov r3, r0
  6272. 8002f70: 460a mov r2, r1
  6273. 8002f72: 71fb strb r3, [r7, #7]
  6274. 8002f74: 4613 mov r3, r2
  6275. 8002f76: 71bb strb r3, [r7, #6]
  6276. uint8_t gpioOffset = 0;
  6277. 8002f78: 2300 movs r3, #0
  6278. 8002f7a: 73fb strb r3, [r7, #15]
  6279. switch (sensor) {
  6280. 8002f7c: 79fb ldrb r3, [r7, #7]
  6281. 8002f7e: 2b02 cmp r3, #2
  6282. 8002f80: d00c beq.n 8002f9c <SelectCurrentSensorGain+0x34>
  6283. 8002f82: 2b02 cmp r3, #2
  6284. 8002f84: dc0d bgt.n 8002fa2 <SelectCurrentSensorGain+0x3a>
  6285. 8002f86: 2b00 cmp r3, #0
  6286. 8002f88: d002 beq.n 8002f90 <SelectCurrentSensorGain+0x28>
  6287. 8002f8a: 2b01 cmp r3, #1
  6288. 8002f8c: d003 beq.n 8002f96 <SelectCurrentSensorGain+0x2e>
  6289. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6290. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6291. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6292. default: break;
  6293. 8002f8e: e008 b.n 8002fa2 <SelectCurrentSensorGain+0x3a>
  6294. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6295. 8002f90: 2307 movs r3, #7
  6296. 8002f92: 73fb strb r3, [r7, #15]
  6297. 8002f94: e006 b.n 8002fa4 <SelectCurrentSensorGain+0x3c>
  6298. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6299. 8002f96: 2309 movs r3, #9
  6300. 8002f98: 73fb strb r3, [r7, #15]
  6301. 8002f9a: e003 b.n 8002fa4 <SelectCurrentSensorGain+0x3c>
  6302. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6303. 8002f9c: 230d movs r3, #13
  6304. 8002f9e: 73fb strb r3, [r7, #15]
  6305. 8002fa0: e000 b.n 8002fa4 <SelectCurrentSensorGain+0x3c>
  6306. default: break;
  6307. 8002fa2: bf00 nop
  6308. }
  6309. if (gpioOffset > 0) {
  6310. 8002fa4: 7bfb ldrb r3, [r7, #15]
  6311. 8002fa6: 2b00 cmp r3, #0
  6312. 8002fa8: d023 beq.n 8002ff2 <SelectCurrentSensorGain+0x8a>
  6313. uint16_t gain0Gpio = 1 << gpioOffset;
  6314. 8002faa: 7bfb ldrb r3, [r7, #15]
  6315. 8002fac: 2201 movs r2, #1
  6316. 8002fae: fa02 f303 lsl.w r3, r2, r3
  6317. 8002fb2: 81bb strh r3, [r7, #12]
  6318. uint16_t gain1Gpio = 1 << (gpioOffset + 1);
  6319. 8002fb4: 7bfb ldrb r3, [r7, #15]
  6320. 8002fb6: 3301 adds r3, #1
  6321. 8002fb8: 2201 movs r2, #1
  6322. 8002fba: fa02 f303 lsl.w r3, r2, r3
  6323. 8002fbe: 817b strh r3, [r7, #10]
  6324. uint16_t gpioState = ((uint16_t)gain) & 0x0001;
  6325. 8002fc0: 79bb ldrb r3, [r7, #6]
  6326. 8002fc2: b29b uxth r3, r3
  6327. 8002fc4: f003 0301 and.w r3, r3, #1
  6328. 8002fc8: 813b strh r3, [r7, #8]
  6329. HAL_GPIO_WritePin (GPIOE, gain0Gpio, gpioState);
  6330. 8002fca: 893b ldrh r3, [r7, #8]
  6331. 8002fcc: b2da uxtb r2, r3
  6332. 8002fce: 89bb ldrh r3, [r7, #12]
  6333. 8002fd0: 4619 mov r1, r3
  6334. 8002fd2: 480a ldr r0, [pc, #40] @ (8002ffc <SelectCurrentSensorGain+0x94>)
  6335. 8002fd4: f008 fac2 bl 800b55c <HAL_GPIO_WritePin>
  6336. gpioState = (((uint16_t)gain) >> 1) & 0x0001;
  6337. 8002fd8: 79bb ldrb r3, [r7, #6]
  6338. 8002fda: 085b lsrs r3, r3, #1
  6339. 8002fdc: b2db uxtb r3, r3
  6340. 8002fde: f003 0301 and.w r3, r3, #1
  6341. 8002fe2: 813b strh r3, [r7, #8]
  6342. HAL_GPIO_WritePin (GPIOE, gain1Gpio, gpioState);
  6343. 8002fe4: 893b ldrh r3, [r7, #8]
  6344. 8002fe6: b2da uxtb r2, r3
  6345. 8002fe8: 897b ldrh r3, [r7, #10]
  6346. 8002fea: 4619 mov r1, r3
  6347. 8002fec: 4803 ldr r0, [pc, #12] @ (8002ffc <SelectCurrentSensorGain+0x94>)
  6348. 8002fee: f008 fab5 bl 800b55c <HAL_GPIO_WritePin>
  6349. }
  6350. }
  6351. 8002ff2: bf00 nop
  6352. 8002ff4: 3710 adds r7, #16
  6353. 8002ff6: 46bd mov sp, r7
  6354. 8002ff8: bd80 pop {r7, pc}
  6355. 8002ffa: bf00 nop
  6356. 8002ffc: 58021000 .word 0x58021000
  6357. 08003000 <MotorControl>:
  6358. uint8_t
  6359. 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) {
  6360. 8003000: b580 push {r7, lr}
  6361. 8003002: b088 sub sp, #32
  6362. 8003004: af02 add r7, sp, #8
  6363. 8003006: 60f8 str r0, [r7, #12]
  6364. 8003008: 60b9 str r1, [r7, #8]
  6365. 800300a: 4611 mov r1, r2
  6366. 800300c: 461a mov r2, r3
  6367. 800300e: 460b mov r3, r1
  6368. 8003010: 71fb strb r3, [r7, #7]
  6369. 8003012: 4613 mov r3, r2
  6370. 8003014: 71bb strb r3, [r7, #6]
  6371. uint32_t motorStatus = 0;
  6372. 8003016: 2300 movs r3, #0
  6373. 8003018: 617b str r3, [r7, #20]
  6374. MotorDriverState setMotorState = HiZ;
  6375. 800301a: 2300 movs r3, #0
  6376. 800301c: 74fb strb r3, [r7, #19]
  6377. HAL_TIM_PWM_Stop (htim, channel1);
  6378. 800301e: 79fb ldrb r3, [r7, #7]
  6379. 8003020: 4619 mov r1, r3
  6380. 8003022: 68f8 ldr r0, [r7, #12]
  6381. 8003024: f00c fca2 bl 800f96c <HAL_TIM_PWM_Stop>
  6382. HAL_TIM_PWM_Stop (htim, channel2);
  6383. 8003028: 79bb ldrb r3, [r7, #6]
  6384. 800302a: 4619 mov r1, r3
  6385. 800302c: 68f8 ldr r0, [r7, #12]
  6386. 800302e: f00c fc9d bl 800f96c <HAL_TIM_PWM_Stop>
  6387. if (motorTimerPeriod > 0) {
  6388. 8003032: 6abb ldr r3, [r7, #40] @ 0x28
  6389. 8003034: 2b00 cmp r3, #0
  6390. 8003036: f340 808c ble.w 8003152 <MotorControl+0x152>
  6391. if (motorPWMPulse > 0) {
  6392. 800303a: 6a7b ldr r3, [r7, #36] @ 0x24
  6393. 800303c: 2b00 cmp r3, #0
  6394. 800303e: dd2c ble.n 800309a <MotorControl+0x9a>
  6395. // Forward
  6396. if (switchLimiterUpStat == 0) {
  6397. 8003040: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6398. 8003044: 2b00 cmp r3, #0
  6399. 8003046: d11d bne.n 8003084 <MotorControl+0x84>
  6400. setMotorState = Forward;
  6401. 8003048: 2301 movs r3, #1
  6402. 800304a: 74fb strb r3, [r7, #19]
  6403. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6404. 800304c: 79f9 ldrb r1, [r7, #7]
  6405. 800304e: 79b8 ldrb r0, [r7, #6]
  6406. 8003050: 6a7b ldr r3, [r7, #36] @ 0x24
  6407. 8003052: ea83 72e3 eor.w r2, r3, r3, asr #31
  6408. 8003056: eba2 72e3 sub.w r2, r2, r3, asr #31
  6409. 800305a: 4613 mov r3, r2
  6410. 800305c: 009b lsls r3, r3, #2
  6411. 800305e: 4413 add r3, r2
  6412. 8003060: 005b lsls r3, r3, #1
  6413. 8003062: 9301 str r3, [sp, #4]
  6414. 8003064: 7cfb ldrb r3, [r7, #19]
  6415. 8003066: 9300 str r3, [sp, #0]
  6416. 8003068: 4603 mov r3, r0
  6417. 800306a: 460a mov r2, r1
  6418. 800306c: 68b9 ldr r1, [r7, #8]
  6419. 800306e: 68f8 ldr r0, [r7, #12]
  6420. 8003070: f000 f8ff bl 8003272 <MotorAction>
  6421. HAL_TIM_PWM_Start (htim, channel1);
  6422. 8003074: 79fb ldrb r3, [r7, #7]
  6423. 8003076: 4619 mov r1, r3
  6424. 8003078: 68f8 ldr r0, [r7, #12]
  6425. 800307a: f00c fb69 bl 800f750 <HAL_TIM_PWM_Start>
  6426. motorStatus = 1;
  6427. 800307e: 2301 movs r3, #1
  6428. 8003080: 617b str r3, [r7, #20]
  6429. 8003082: e004 b.n 800308e <MotorControl+0x8e>
  6430. } else {
  6431. HAL_TIM_PWM_Stop (htim, channel1);
  6432. 8003084: 79fb ldrb r3, [r7, #7]
  6433. 8003086: 4619 mov r1, r3
  6434. 8003088: 68f8 ldr r0, [r7, #12]
  6435. 800308a: f00c fc6f bl 800f96c <HAL_TIM_PWM_Stop>
  6436. }
  6437. HAL_TIM_PWM_Stop (htim, channel2);
  6438. 800308e: 79bb ldrb r3, [r7, #6]
  6439. 8003090: 4619 mov r1, r3
  6440. 8003092: 68f8 ldr r0, [r7, #12]
  6441. 8003094: f00c fc6a bl 800f96c <HAL_TIM_PWM_Stop>
  6442. 8003098: e051 b.n 800313e <MotorControl+0x13e>
  6443. } else if (motorPWMPulse < 0) {
  6444. 800309a: 6a7b ldr r3, [r7, #36] @ 0x24
  6445. 800309c: 2b00 cmp r3, #0
  6446. 800309e: da2c bge.n 80030fa <MotorControl+0xfa>
  6447. // Reverse
  6448. if (switchLimiterDownStat == 0) {
  6449. 80030a0: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6450. 80030a4: 2b00 cmp r3, #0
  6451. 80030a6: d11d bne.n 80030e4 <MotorControl+0xe4>
  6452. setMotorState = Reverse;
  6453. 80030a8: 2302 movs r3, #2
  6454. 80030aa: 74fb strb r3, [r7, #19]
  6455. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6456. 80030ac: 79f9 ldrb r1, [r7, #7]
  6457. 80030ae: 79b8 ldrb r0, [r7, #6]
  6458. 80030b0: 6a7b ldr r3, [r7, #36] @ 0x24
  6459. 80030b2: ea83 72e3 eor.w r2, r3, r3, asr #31
  6460. 80030b6: eba2 72e3 sub.w r2, r2, r3, asr #31
  6461. 80030ba: 4613 mov r3, r2
  6462. 80030bc: 009b lsls r3, r3, #2
  6463. 80030be: 4413 add r3, r2
  6464. 80030c0: 005b lsls r3, r3, #1
  6465. 80030c2: 9301 str r3, [sp, #4]
  6466. 80030c4: 7cfb ldrb r3, [r7, #19]
  6467. 80030c6: 9300 str r3, [sp, #0]
  6468. 80030c8: 4603 mov r3, r0
  6469. 80030ca: 460a mov r2, r1
  6470. 80030cc: 68b9 ldr r1, [r7, #8]
  6471. 80030ce: 68f8 ldr r0, [r7, #12]
  6472. 80030d0: f000 f8cf bl 8003272 <MotorAction>
  6473. HAL_TIM_PWM_Start (htim, channel2);
  6474. 80030d4: 79bb ldrb r3, [r7, #6]
  6475. 80030d6: 4619 mov r1, r3
  6476. 80030d8: 68f8 ldr r0, [r7, #12]
  6477. 80030da: f00c fb39 bl 800f750 <HAL_TIM_PWM_Start>
  6478. motorStatus = 1;
  6479. 80030de: 2301 movs r3, #1
  6480. 80030e0: 617b str r3, [r7, #20]
  6481. 80030e2: e004 b.n 80030ee <MotorControl+0xee>
  6482. } else {
  6483. HAL_TIM_PWM_Stop (htim, channel2);
  6484. 80030e4: 79bb ldrb r3, [r7, #6]
  6485. 80030e6: 4619 mov r1, r3
  6486. 80030e8: 68f8 ldr r0, [r7, #12]
  6487. 80030ea: f00c fc3f bl 800f96c <HAL_TIM_PWM_Stop>
  6488. }
  6489. HAL_TIM_PWM_Stop (htim, channel1);
  6490. 80030ee: 79fb ldrb r3, [r7, #7]
  6491. 80030f0: 4619 mov r1, r3
  6492. 80030f2: 68f8 ldr r0, [r7, #12]
  6493. 80030f4: f00c fc3a bl 800f96c <HAL_TIM_PWM_Stop>
  6494. 80030f8: e021 b.n 800313e <MotorControl+0x13e>
  6495. } else {
  6496. // Brake
  6497. setMotorState = Brake;
  6498. 80030fa: 2303 movs r3, #3
  6499. 80030fc: 74fb strb r3, [r7, #19]
  6500. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6501. 80030fe: 79f9 ldrb r1, [r7, #7]
  6502. 8003100: 79b8 ldrb r0, [r7, #6]
  6503. 8003102: 6a7b ldr r3, [r7, #36] @ 0x24
  6504. 8003104: ea83 72e3 eor.w r2, r3, r3, asr #31
  6505. 8003108: eba2 72e3 sub.w r2, r2, r3, asr #31
  6506. 800310c: 4613 mov r3, r2
  6507. 800310e: 009b lsls r3, r3, #2
  6508. 8003110: 4413 add r3, r2
  6509. 8003112: 005b lsls r3, r3, #1
  6510. 8003114: 9301 str r3, [sp, #4]
  6511. 8003116: 7cfb ldrb r3, [r7, #19]
  6512. 8003118: 9300 str r3, [sp, #0]
  6513. 800311a: 4603 mov r3, r0
  6514. 800311c: 460a mov r2, r1
  6515. 800311e: 68b9 ldr r1, [r7, #8]
  6516. 8003120: 68f8 ldr r0, [r7, #12]
  6517. 8003122: f000 f8a6 bl 8003272 <MotorAction>
  6518. HAL_TIM_PWM_Start (htim, channel1);
  6519. 8003126: 79fb ldrb r3, [r7, #7]
  6520. 8003128: 4619 mov r1, r3
  6521. 800312a: 68f8 ldr r0, [r7, #12]
  6522. 800312c: f00c fb10 bl 800f750 <HAL_TIM_PWM_Start>
  6523. HAL_TIM_PWM_Start (htim, channel2);
  6524. 8003130: 79bb ldrb r3, [r7, #6]
  6525. 8003132: 4619 mov r1, r3
  6526. 8003134: 68f8 ldr r0, [r7, #12]
  6527. 8003136: f00c fb0b bl 800f750 <HAL_TIM_PWM_Start>
  6528. motorStatus = 0;
  6529. 800313a: 2300 movs r3, #0
  6530. 800313c: 617b str r3, [r7, #20]
  6531. }
  6532. osTimerStart (motorTimerHandle, motorTimerPeriod * 1000);
  6533. 800313e: 6abb ldr r3, [r7, #40] @ 0x28
  6534. 8003140: f44f 727a mov.w r2, #1000 @ 0x3e8
  6535. 8003144: fb02 f303 mul.w r3, r2, r3
  6536. 8003148: 4619 mov r1, r3
  6537. 800314a: 6a38 ldr r0, [r7, #32]
  6538. 800314c: f011 f8c8 bl 80142e0 <osTimerStart>
  6539. 8003150: e089 b.n 8003266 <MotorControl+0x266>
  6540. } else if ((motorTimerPeriod == 0) && (motorPWMPulse == 0)) {
  6541. 8003152: 6abb ldr r3, [r7, #40] @ 0x28
  6542. 8003154: 2b00 cmp r3, #0
  6543. 8003156: d126 bne.n 80031a6 <MotorControl+0x1a6>
  6544. 8003158: 6a7b ldr r3, [r7, #36] @ 0x24
  6545. 800315a: 2b00 cmp r3, #0
  6546. 800315c: d123 bne.n 80031a6 <MotorControl+0x1a6>
  6547. MotorAction (htim, motorTimerConfigOC, channel1, channel2, HiZ, abs (motorPWMPulse) * 10);
  6548. 800315e: 79f9 ldrb r1, [r7, #7]
  6549. 8003160: 79b8 ldrb r0, [r7, #6]
  6550. 8003162: 6a7b ldr r3, [r7, #36] @ 0x24
  6551. 8003164: ea83 72e3 eor.w r2, r3, r3, asr #31
  6552. 8003168: eba2 72e3 sub.w r2, r2, r3, asr #31
  6553. 800316c: 4613 mov r3, r2
  6554. 800316e: 009b lsls r3, r3, #2
  6555. 8003170: 4413 add r3, r2
  6556. 8003172: 005b lsls r3, r3, #1
  6557. 8003174: 9301 str r3, [sp, #4]
  6558. 8003176: 2300 movs r3, #0
  6559. 8003178: 9300 str r3, [sp, #0]
  6560. 800317a: 4603 mov r3, r0
  6561. 800317c: 460a mov r2, r1
  6562. 800317e: 68b9 ldr r1, [r7, #8]
  6563. 8003180: 68f8 ldr r0, [r7, #12]
  6564. 8003182: f000 f876 bl 8003272 <MotorAction>
  6565. HAL_TIM_PWM_Stop (htim, channel1);
  6566. 8003186: 79fb ldrb r3, [r7, #7]
  6567. 8003188: 4619 mov r1, r3
  6568. 800318a: 68f8 ldr r0, [r7, #12]
  6569. 800318c: f00c fbee bl 800f96c <HAL_TIM_PWM_Stop>
  6570. HAL_TIM_PWM_Stop (htim, channel2);
  6571. 8003190: 79bb ldrb r3, [r7, #6]
  6572. 8003192: 4619 mov r1, r3
  6573. 8003194: 68f8 ldr r0, [r7, #12]
  6574. 8003196: f00c fbe9 bl 800f96c <HAL_TIM_PWM_Stop>
  6575. osTimerStop (motorTimerHandle);
  6576. 800319a: 6a38 ldr r0, [r7, #32]
  6577. 800319c: f011 f8ce bl 801433c <osTimerStop>
  6578. motorStatus = 0;
  6579. 80031a0: 2300 movs r3, #0
  6580. 80031a2: 617b str r3, [r7, #20]
  6581. 80031a4: e05f b.n 8003266 <MotorControl+0x266>
  6582. } else if (motorTimerPeriod == -1) {
  6583. 80031a6: 6abb ldr r3, [r7, #40] @ 0x28
  6584. 80031a8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  6585. 80031ac: d15b bne.n 8003266 <MotorControl+0x266>
  6586. if (motorPWMPulse > 0) {
  6587. 80031ae: 6a7b ldr r3, [r7, #36] @ 0x24
  6588. 80031b0: 2b00 cmp r3, #0
  6589. 80031b2: dd2c ble.n 800320e <MotorControl+0x20e>
  6590. // Forward
  6591. if (switchLimiterUpStat == 0) {
  6592. 80031b4: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6593. 80031b8: 2b00 cmp r3, #0
  6594. 80031ba: d11d bne.n 80031f8 <MotorControl+0x1f8>
  6595. setMotorState = Forward;
  6596. 80031bc: 2301 movs r3, #1
  6597. 80031be: 74fb strb r3, [r7, #19]
  6598. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6599. 80031c0: 79f9 ldrb r1, [r7, #7]
  6600. 80031c2: 79b8 ldrb r0, [r7, #6]
  6601. 80031c4: 6a7b ldr r3, [r7, #36] @ 0x24
  6602. 80031c6: ea83 72e3 eor.w r2, r3, r3, asr #31
  6603. 80031ca: eba2 72e3 sub.w r2, r2, r3, asr #31
  6604. 80031ce: 4613 mov r3, r2
  6605. 80031d0: 009b lsls r3, r3, #2
  6606. 80031d2: 4413 add r3, r2
  6607. 80031d4: 005b lsls r3, r3, #1
  6608. 80031d6: 9301 str r3, [sp, #4]
  6609. 80031d8: 7cfb ldrb r3, [r7, #19]
  6610. 80031da: 9300 str r3, [sp, #0]
  6611. 80031dc: 4603 mov r3, r0
  6612. 80031de: 460a mov r2, r1
  6613. 80031e0: 68b9 ldr r1, [r7, #8]
  6614. 80031e2: 68f8 ldr r0, [r7, #12]
  6615. 80031e4: f000 f845 bl 8003272 <MotorAction>
  6616. HAL_TIM_PWM_Start (htim, channel1);
  6617. 80031e8: 79fb ldrb r3, [r7, #7]
  6618. 80031ea: 4619 mov r1, r3
  6619. 80031ec: 68f8 ldr r0, [r7, #12]
  6620. 80031ee: f00c faaf bl 800f750 <HAL_TIM_PWM_Start>
  6621. motorStatus = 1;
  6622. 80031f2: 2301 movs r3, #1
  6623. 80031f4: 617b str r3, [r7, #20]
  6624. 80031f6: e004 b.n 8003202 <MotorControl+0x202>
  6625. } else {
  6626. HAL_TIM_PWM_Stop (htim, channel1);
  6627. 80031f8: 79fb ldrb r3, [r7, #7]
  6628. 80031fa: 4619 mov r1, r3
  6629. 80031fc: 68f8 ldr r0, [r7, #12]
  6630. 80031fe: f00c fbb5 bl 800f96c <HAL_TIM_PWM_Stop>
  6631. }
  6632. HAL_TIM_PWM_Stop (htim, channel2);
  6633. 8003202: 79bb ldrb r3, [r7, #6]
  6634. 8003204: 4619 mov r1, r3
  6635. 8003206: 68f8 ldr r0, [r7, #12]
  6636. 8003208: f00c fbb0 bl 800f96c <HAL_TIM_PWM_Stop>
  6637. 800320c: e02b b.n 8003266 <MotorControl+0x266>
  6638. } else {
  6639. // Reverse
  6640. if (switchLimiterDownStat == 0) {
  6641. 800320e: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6642. 8003212: 2b00 cmp r3, #0
  6643. 8003214: d11d bne.n 8003252 <MotorControl+0x252>
  6644. setMotorState = Reverse;
  6645. 8003216: 2302 movs r3, #2
  6646. 8003218: 74fb strb r3, [r7, #19]
  6647. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6648. 800321a: 79f9 ldrb r1, [r7, #7]
  6649. 800321c: 79b8 ldrb r0, [r7, #6]
  6650. 800321e: 6a7b ldr r3, [r7, #36] @ 0x24
  6651. 8003220: ea83 72e3 eor.w r2, r3, r3, asr #31
  6652. 8003224: eba2 72e3 sub.w r2, r2, r3, asr #31
  6653. 8003228: 4613 mov r3, r2
  6654. 800322a: 009b lsls r3, r3, #2
  6655. 800322c: 4413 add r3, r2
  6656. 800322e: 005b lsls r3, r3, #1
  6657. 8003230: 9301 str r3, [sp, #4]
  6658. 8003232: 7cfb ldrb r3, [r7, #19]
  6659. 8003234: 9300 str r3, [sp, #0]
  6660. 8003236: 4603 mov r3, r0
  6661. 8003238: 460a mov r2, r1
  6662. 800323a: 68b9 ldr r1, [r7, #8]
  6663. 800323c: 68f8 ldr r0, [r7, #12]
  6664. 800323e: f000 f818 bl 8003272 <MotorAction>
  6665. HAL_TIM_PWM_Start (htim, channel2);
  6666. 8003242: 79bb ldrb r3, [r7, #6]
  6667. 8003244: 4619 mov r1, r3
  6668. 8003246: 68f8 ldr r0, [r7, #12]
  6669. 8003248: f00c fa82 bl 800f750 <HAL_TIM_PWM_Start>
  6670. motorStatus = 1;
  6671. 800324c: 2301 movs r3, #1
  6672. 800324e: 617b str r3, [r7, #20]
  6673. 8003250: e004 b.n 800325c <MotorControl+0x25c>
  6674. } else {
  6675. HAL_TIM_PWM_Stop (htim, channel2);
  6676. 8003252: 79bb ldrb r3, [r7, #6]
  6677. 8003254: 4619 mov r1, r3
  6678. 8003256: 68f8 ldr r0, [r7, #12]
  6679. 8003258: f00c fb88 bl 800f96c <HAL_TIM_PWM_Stop>
  6680. }
  6681. HAL_TIM_PWM_Stop (htim, channel1);
  6682. 800325c: 79fb ldrb r3, [r7, #7]
  6683. 800325e: 4619 mov r1, r3
  6684. 8003260: 68f8 ldr r0, [r7, #12]
  6685. 8003262: f00c fb83 bl 800f96c <HAL_TIM_PWM_Stop>
  6686. }
  6687. }
  6688. return motorStatus;
  6689. 8003266: 697b ldr r3, [r7, #20]
  6690. 8003268: b2db uxtb r3, r3
  6691. }
  6692. 800326a: 4618 mov r0, r3
  6693. 800326c: 3718 adds r7, #24
  6694. 800326e: 46bd mov sp, r7
  6695. 8003270: bd80 pop {r7, pc}
  6696. 08003272 <MotorAction>:
  6697. void MotorAction (TIM_HandleTypeDef* tim, TIM_OC_InitTypeDef* timerConf, uint32_t channel1, uint32_t channel2, MotorDriverState setState, uint32_t pulse) {
  6698. 8003272: b580 push {r7, lr}
  6699. 8003274: b084 sub sp, #16
  6700. 8003276: af00 add r7, sp, #0
  6701. 8003278: 60f8 str r0, [r7, #12]
  6702. 800327a: 60b9 str r1, [r7, #8]
  6703. 800327c: 607a str r2, [r7, #4]
  6704. 800327e: 603b str r3, [r7, #0]
  6705. timerConf->Pulse = pulse;
  6706. 8003280: 68bb ldr r3, [r7, #8]
  6707. 8003282: 69fa ldr r2, [r7, #28]
  6708. 8003284: 605a str r2, [r3, #4]
  6709. switch (setState) {
  6710. 8003286: 7e3b ldrb r3, [r7, #24]
  6711. 8003288: 2b02 cmp r3, #2
  6712. 800328a: dc02 bgt.n 8003292 <MotorAction+0x20>
  6713. 800328c: 2b00 cmp r3, #0
  6714. 800328e: da03 bge.n 8003298 <MotorAction+0x26>
  6715. 8003290: e038 b.n 8003304 <MotorAction+0x92>
  6716. 8003292: 2b03 cmp r3, #3
  6717. 8003294: d01b beq.n 80032ce <MotorAction+0x5c>
  6718. 8003296: e035 b.n 8003304 <MotorAction+0x92>
  6719. case Forward:
  6720. case Reverse:
  6721. case HiZ:
  6722. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6723. 8003298: 68bb ldr r3, [r7, #8]
  6724. 800329a: 2200 movs r2, #0
  6725. 800329c: 609a str r2, [r3, #8]
  6726. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6727. 800329e: 687a ldr r2, [r7, #4]
  6728. 80032a0: 68b9 ldr r1, [r7, #8]
  6729. 80032a2: 68f8 ldr r0, [r7, #12]
  6730. 80032a4: f00c ff4e bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  6731. 80032a8: 4603 mov r3, r0
  6732. 80032aa: 2b00 cmp r3, #0
  6733. 80032ac: d001 beq.n 80032b2 <MotorAction+0x40>
  6734. Error_Handler ();
  6735. 80032ae: f7fe fe0d bl 8001ecc <Error_Handler>
  6736. }
  6737. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6738. 80032b2: 68bb ldr r3, [r7, #8]
  6739. 80032b4: 2200 movs r2, #0
  6740. 80032b6: 609a str r2, [r3, #8]
  6741. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6742. 80032b8: 683a ldr r2, [r7, #0]
  6743. 80032ba: 68b9 ldr r1, [r7, #8]
  6744. 80032bc: 68f8 ldr r0, [r7, #12]
  6745. 80032be: f00c ff41 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  6746. 80032c2: 4603 mov r3, r0
  6747. 80032c4: 2b00 cmp r3, #0
  6748. 80032c6: d038 beq.n 800333a <MotorAction+0xc8>
  6749. Error_Handler ();
  6750. 80032c8: f7fe fe00 bl 8001ecc <Error_Handler>
  6751. }
  6752. break;
  6753. 80032cc: e035 b.n 800333a <MotorAction+0xc8>
  6754. case Brake:
  6755. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6756. 80032ce: 68bb ldr r3, [r7, #8]
  6757. 80032d0: 2202 movs r2, #2
  6758. 80032d2: 609a str r2, [r3, #8]
  6759. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6760. 80032d4: 687a ldr r2, [r7, #4]
  6761. 80032d6: 68b9 ldr r1, [r7, #8]
  6762. 80032d8: 68f8 ldr r0, [r7, #12]
  6763. 80032da: f00c ff33 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  6764. 80032de: 4603 mov r3, r0
  6765. 80032e0: 2b00 cmp r3, #0
  6766. 80032e2: d001 beq.n 80032e8 <MotorAction+0x76>
  6767. Error_Handler ();
  6768. 80032e4: f7fe fdf2 bl 8001ecc <Error_Handler>
  6769. }
  6770. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6771. 80032e8: 68bb ldr r3, [r7, #8]
  6772. 80032ea: 2202 movs r2, #2
  6773. 80032ec: 609a str r2, [r3, #8]
  6774. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6775. 80032ee: 683a ldr r2, [r7, #0]
  6776. 80032f0: 68b9 ldr r1, [r7, #8]
  6777. 80032f2: 68f8 ldr r0, [r7, #12]
  6778. 80032f4: f00c ff26 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  6779. 80032f8: 4603 mov r3, r0
  6780. 80032fa: 2b00 cmp r3, #0
  6781. 80032fc: d01f beq.n 800333e <MotorAction+0xcc>
  6782. Error_Handler ();
  6783. 80032fe: f7fe fde5 bl 8001ecc <Error_Handler>
  6784. }
  6785. break;
  6786. 8003302: e01c b.n 800333e <MotorAction+0xcc>
  6787. default:
  6788. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6789. 8003304: 68bb ldr r3, [r7, #8]
  6790. 8003306: 2200 movs r2, #0
  6791. 8003308: 609a str r2, [r3, #8]
  6792. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6793. 800330a: 687a ldr r2, [r7, #4]
  6794. 800330c: 68b9 ldr r1, [r7, #8]
  6795. 800330e: 68f8 ldr r0, [r7, #12]
  6796. 8003310: f00c ff18 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  6797. 8003314: 4603 mov r3, r0
  6798. 8003316: 2b00 cmp r3, #0
  6799. 8003318: d001 beq.n 800331e <MotorAction+0xac>
  6800. Error_Handler ();
  6801. 800331a: f7fe fdd7 bl 8001ecc <Error_Handler>
  6802. }
  6803. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6804. 800331e: 68bb ldr r3, [r7, #8]
  6805. 8003320: 2200 movs r2, #0
  6806. 8003322: 609a str r2, [r3, #8]
  6807. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6808. 8003324: 683a ldr r2, [r7, #0]
  6809. 8003326: 68b9 ldr r1, [r7, #8]
  6810. 8003328: 68f8 ldr r0, [r7, #12]
  6811. 800332a: f00c ff0b bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  6812. 800332e: 4603 mov r3, r0
  6813. 8003330: 2b00 cmp r3, #0
  6814. 8003332: d006 beq.n 8003342 <MotorAction+0xd0>
  6815. Error_Handler ();
  6816. 8003334: f7fe fdca bl 8001ecc <Error_Handler>
  6817. }
  6818. break;
  6819. 8003338: e003 b.n 8003342 <MotorAction+0xd0>
  6820. break;
  6821. 800333a: bf00 nop
  6822. 800333c: e002 b.n 8003344 <MotorAction+0xd2>
  6823. break;
  6824. 800333e: bf00 nop
  6825. 8003340: e000 b.n 8003344 <MotorAction+0xd2>
  6826. break;
  6827. 8003342: bf00 nop
  6828. }
  6829. }
  6830. 8003344: bf00 nop
  6831. 8003346: 3710 adds r7, #16
  6832. 8003348: 46bd mov sp, r7
  6833. 800334a: bd80 pop {r7, pc}
  6834. 0800334c <PositionControlTaskInit>:
  6835. extern osTimerId_t motorXTimerHandle;
  6836. extern osTimerId_t motorYTimerHandle;
  6837. extern TIM_HandleTypeDef htim3;
  6838. extern TIM_OC_InitTypeDef motorXYTimerConfigOC;
  6839. void PositionControlTaskInit (void) {
  6840. 800334c: b580 push {r7, lr}
  6841. 800334e: b08a sub sp, #40 @ 0x28
  6842. 8003350: af00 add r7, sp, #0
  6843. positionSettingMutex = osMutexNew (NULL);
  6844. 8003352: 2000 movs r0, #0
  6845. 8003354: f011 f829 bl 80143aa <osMutexNew>
  6846. 8003358: 4603 mov r3, r0
  6847. 800335a: 4a42 ldr r2, [pc, #264] @ (8003464 <PositionControlTaskInit+0x118>)
  6848. 800335c: 6013 str r3, [r2, #0]
  6849. osThreadAttr_t osThreadAttrPositionControlTask = { 0 };
  6850. 800335e: 1d3b adds r3, r7, #4
  6851. 8003360: 2224 movs r2, #36 @ 0x24
  6852. 8003362: 2100 movs r1, #0
  6853. 8003364: 4618 mov r0, r3
  6854. 8003366: f014 ffcf bl 8018308 <memset>
  6855. osThreadAttrPositionControlTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  6856. 800336a: f44f 6380 mov.w r3, #1024 @ 0x400
  6857. 800336e: 61bb str r3, [r7, #24]
  6858. osThreadAttrPositionControlTask.priority = (osPriority_t)osPriorityNormal;
  6859. 8003370: 2318 movs r3, #24
  6860. 8003372: 61fb str r3, [r7, #28]
  6861. positionXControlTaskInitArg.channel1 = TIM_CHANNEL_1;
  6862. 8003374: 4b3c ldr r3, [pc, #240] @ (8003468 <PositionControlTaskInit+0x11c>)
  6863. 8003376: 2200 movs r2, #0
  6864. 8003378: 721a strb r2, [r3, #8]
  6865. positionXControlTaskInitArg.channel2 = TIM_CHANNEL_2;
  6866. 800337a: 4b3b ldr r3, [pc, #236] @ (8003468 <PositionControlTaskInit+0x11c>)
  6867. 800337c: 2204 movs r2, #4
  6868. 800337e: 725a strb r2, [r3, #9]
  6869. positionXControlTaskInitArg.htim = &htim3;
  6870. 8003380: 4b39 ldr r3, [pc, #228] @ (8003468 <PositionControlTaskInit+0x11c>)
  6871. 8003382: 4a3a ldr r2, [pc, #232] @ (800346c <PositionControlTaskInit+0x120>)
  6872. 8003384: 601a str r2, [r3, #0]
  6873. positionXControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6874. 8003386: 4b38 ldr r3, [pc, #224] @ (8003468 <PositionControlTaskInit+0x11c>)
  6875. 8003388: 4a39 ldr r2, [pc, #228] @ (8003470 <PositionControlTaskInit+0x124>)
  6876. 800338a: 605a str r2, [r3, #4]
  6877. positionXControlTaskInitArg.motorTimerHandle = motorXTimerHandle;
  6878. 800338c: 4b39 ldr r3, [pc, #228] @ (8003474 <PositionControlTaskInit+0x128>)
  6879. 800338e: 681b ldr r3, [r3, #0]
  6880. 8003390: 4a35 ldr r2, [pc, #212] @ (8003468 <PositionControlTaskInit+0x11c>)
  6881. 8003392: 60d3 str r3, [r2, #12]
  6882. positionXControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6883. 8003394: 2200 movs r2, #0
  6884. 8003396: 2104 movs r1, #4
  6885. 8003398: 2010 movs r0, #16
  6886. 800339a: f011 f914 bl 80145c6 <osMessageQueueNew>
  6887. 800339e: 4603 mov r3, r0
  6888. 80033a0: 4a31 ldr r2, [pc, #196] @ (8003468 <PositionControlTaskInit+0x11c>)
  6889. 80033a2: 6113 str r3, [r2, #16]
  6890. positionXControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitXSwitchCenter);
  6891. 80033a4: 4b30 ldr r3, [pc, #192] @ (8003468 <PositionControlTaskInit+0x11c>)
  6892. 80033a6: 4a34 ldr r2, [pc, #208] @ (8003478 <PositionControlTaskInit+0x12c>)
  6893. 80033a8: 61da str r2, [r3, #28]
  6894. positionXControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitXSwitchUp);
  6895. 80033aa: 4b2f ldr r3, [pc, #188] @ (8003468 <PositionControlTaskInit+0x11c>)
  6896. 80033ac: 4a33 ldr r2, [pc, #204] @ (800347c <PositionControlTaskInit+0x130>)
  6897. 80033ae: 615a str r2, [r3, #20]
  6898. positionXControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitXSwitchDown);
  6899. 80033b0: 4b2d ldr r3, [pc, #180] @ (8003468 <PositionControlTaskInit+0x11c>)
  6900. 80033b2: 4a33 ldr r2, [pc, #204] @ (8003480 <PositionControlTaskInit+0x134>)
  6901. 80033b4: 619a str r2, [r3, #24]
  6902. positionXControlTaskInitArg.currentPosition = &(sensorsInfo.currentXPosition);
  6903. 80033b6: 4b2c ldr r3, [pc, #176] @ (8003468 <PositionControlTaskInit+0x11c>)
  6904. 80033b8: 4a32 ldr r2, [pc, #200] @ (8003484 <PositionControlTaskInit+0x138>)
  6905. 80033ba: 621a str r2, [r3, #32]
  6906. positionXControlTaskInitArg.motorStatus = &(sensorsInfo.motorXStatus);
  6907. 80033bc: 4b2a ldr r3, [pc, #168] @ (8003468 <PositionControlTaskInit+0x11c>)
  6908. 80033be: 4a32 ldr r2, [pc, #200] @ (8003488 <PositionControlTaskInit+0x13c>)
  6909. 80033c0: 629a str r2, [r3, #40] @ 0x28
  6910. positionXControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorXPeakCurrent);
  6911. 80033c2: 4b29 ldr r3, [pc, #164] @ (8003468 <PositionControlTaskInit+0x11c>)
  6912. 80033c4: 4a31 ldr r2, [pc, #196] @ (800348c <PositionControlTaskInit+0x140>)
  6913. 80033c6: 62da str r2, [r3, #44] @ 0x2c
  6914. positionXControlTaskInitArg.positionSetting = &positionXSetting;
  6915. 80033c8: 4b27 ldr r3, [pc, #156] @ (8003468 <PositionControlTaskInit+0x11c>)
  6916. 80033ca: 4a31 ldr r2, [pc, #196] @ (8003490 <PositionControlTaskInit+0x144>)
  6917. 80033cc: 625a str r2, [r3, #36] @ 0x24
  6918. positionXControlTaskInitArg.axe = 'X';
  6919. 80033ce: 4b26 ldr r3, [pc, #152] @ (8003468 <PositionControlTaskInit+0x11c>)
  6920. 80033d0: 2258 movs r2, #88 @ 0x58
  6921. 80033d2: f883 2030 strb.w r2, [r3, #48] @ 0x30
  6922. positionYControlTaskInitArg.channel1 = TIM_CHANNEL_3;
  6923. 80033d6: 4b2f ldr r3, [pc, #188] @ (8003494 <PositionControlTaskInit+0x148>)
  6924. 80033d8: 2208 movs r2, #8
  6925. 80033da: 721a strb r2, [r3, #8]
  6926. positionYControlTaskInitArg.channel2 = TIM_CHANNEL_4;
  6927. 80033dc: 4b2d ldr r3, [pc, #180] @ (8003494 <PositionControlTaskInit+0x148>)
  6928. 80033de: 220c movs r2, #12
  6929. 80033e0: 725a strb r2, [r3, #9]
  6930. positionYControlTaskInitArg.htim = &htim3;
  6931. 80033e2: 4b2c ldr r3, [pc, #176] @ (8003494 <PositionControlTaskInit+0x148>)
  6932. 80033e4: 4a21 ldr r2, [pc, #132] @ (800346c <PositionControlTaskInit+0x120>)
  6933. 80033e6: 601a str r2, [r3, #0]
  6934. positionYControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6935. 80033e8: 4b2a ldr r3, [pc, #168] @ (8003494 <PositionControlTaskInit+0x148>)
  6936. 80033ea: 4a21 ldr r2, [pc, #132] @ (8003470 <PositionControlTaskInit+0x124>)
  6937. 80033ec: 605a str r2, [r3, #4]
  6938. positionYControlTaskInitArg.motorTimerHandle = motorYTimerHandle;
  6939. 80033ee: 4b2a ldr r3, [pc, #168] @ (8003498 <PositionControlTaskInit+0x14c>)
  6940. 80033f0: 681b ldr r3, [r3, #0]
  6941. 80033f2: 4a28 ldr r2, [pc, #160] @ (8003494 <PositionControlTaskInit+0x148>)
  6942. 80033f4: 60d3 str r3, [r2, #12]
  6943. positionYControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6944. 80033f6: 2200 movs r2, #0
  6945. 80033f8: 2104 movs r1, #4
  6946. 80033fa: 2010 movs r0, #16
  6947. 80033fc: f011 f8e3 bl 80145c6 <osMessageQueueNew>
  6948. 8003400: 4603 mov r3, r0
  6949. 8003402: 4a24 ldr r2, [pc, #144] @ (8003494 <PositionControlTaskInit+0x148>)
  6950. 8003404: 6113 str r3, [r2, #16]
  6951. positionYControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitYSwitchCenter);
  6952. 8003406: 4b23 ldr r3, [pc, #140] @ (8003494 <PositionControlTaskInit+0x148>)
  6953. 8003408: 4a24 ldr r2, [pc, #144] @ (800349c <PositionControlTaskInit+0x150>)
  6954. 800340a: 61da str r2, [r3, #28]
  6955. positionYControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitYSwitchUp);
  6956. 800340c: 4b21 ldr r3, [pc, #132] @ (8003494 <PositionControlTaskInit+0x148>)
  6957. 800340e: 4a24 ldr r2, [pc, #144] @ (80034a0 <PositionControlTaskInit+0x154>)
  6958. 8003410: 615a str r2, [r3, #20]
  6959. positionYControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitYSwitchDown);
  6960. 8003412: 4b20 ldr r3, [pc, #128] @ (8003494 <PositionControlTaskInit+0x148>)
  6961. 8003414: 4a23 ldr r2, [pc, #140] @ (80034a4 <PositionControlTaskInit+0x158>)
  6962. 8003416: 619a str r2, [r3, #24]
  6963. positionYControlTaskInitArg.currentPosition = &(sensorsInfo.currentYPosition);
  6964. 8003418: 4b1e ldr r3, [pc, #120] @ (8003494 <PositionControlTaskInit+0x148>)
  6965. 800341a: 4a23 ldr r2, [pc, #140] @ (80034a8 <PositionControlTaskInit+0x15c>)
  6966. 800341c: 621a str r2, [r3, #32]
  6967. positionYControlTaskInitArg.motorStatus = &(sensorsInfo.motorYStatus);
  6968. 800341e: 4b1d ldr r3, [pc, #116] @ (8003494 <PositionControlTaskInit+0x148>)
  6969. 8003420: 4a22 ldr r2, [pc, #136] @ (80034ac <PositionControlTaskInit+0x160>)
  6970. 8003422: 629a str r2, [r3, #40] @ 0x28
  6971. positionYControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorYPeakCurrent);
  6972. 8003424: 4b1b ldr r3, [pc, #108] @ (8003494 <PositionControlTaskInit+0x148>)
  6973. 8003426: 4a22 ldr r2, [pc, #136] @ (80034b0 <PositionControlTaskInit+0x164>)
  6974. 8003428: 62da str r2, [r3, #44] @ 0x2c
  6975. positionXControlTaskInitArg.positionSetting = &positionYSetting;
  6976. 800342a: 4b0f ldr r3, [pc, #60] @ (8003468 <PositionControlTaskInit+0x11c>)
  6977. 800342c: 4a21 ldr r2, [pc, #132] @ (80034b4 <PositionControlTaskInit+0x168>)
  6978. 800342e: 625a str r2, [r3, #36] @ 0x24
  6979. positionYControlTaskInitArg.axe = 'Y';
  6980. 8003430: 4b18 ldr r3, [pc, #96] @ (8003494 <PositionControlTaskInit+0x148>)
  6981. 8003432: 2259 movs r2, #89 @ 0x59
  6982. 8003434: f883 2030 strb.w r2, [r3, #48] @ 0x30
  6983. positionXControlTaskHandle = osThreadNew (PositionControlTask, &positionXControlTaskInitArg, &osThreadAttrPositionControlTask);
  6984. 8003438: 1d3b adds r3, r7, #4
  6985. 800343a: 461a mov r2, r3
  6986. 800343c: 490a ldr r1, [pc, #40] @ (8003468 <PositionControlTaskInit+0x11c>)
  6987. 800343e: 481e ldr r0, [pc, #120] @ (80034b8 <PositionControlTaskInit+0x16c>)
  6988. 8003440: f010 fe0e bl 8014060 <osThreadNew>
  6989. 8003444: 4603 mov r3, r0
  6990. 8003446: 4a1d ldr r2, [pc, #116] @ (80034bc <PositionControlTaskInit+0x170>)
  6991. 8003448: 6013 str r3, [r2, #0]
  6992. positionYControlTaskHandle = osThreadNew (PositionControlTask, &positionYControlTaskInitArg, &osThreadAttrPositionControlTask);
  6993. 800344a: 1d3b adds r3, r7, #4
  6994. 800344c: 461a mov r2, r3
  6995. 800344e: 4911 ldr r1, [pc, #68] @ (8003494 <PositionControlTaskInit+0x148>)
  6996. 8003450: 4819 ldr r0, [pc, #100] @ (80034b8 <PositionControlTaskInit+0x16c>)
  6997. 8003452: f010 fe05 bl 8014060 <osThreadNew>
  6998. 8003456: 4603 mov r3, r0
  6999. 8003458: 4a19 ldr r2, [pc, #100] @ (80034c0 <PositionControlTaskInit+0x174>)
  7000. 800345a: 6013 str r3, [r2, #0]
  7001. }
  7002. 800345c: bf00 nop
  7003. 800345e: 3728 adds r7, #40 @ 0x28
  7004. 8003460: 46bd mov sp, r7
  7005. 8003462: bd80 pop {r7, pc}
  7006. 8003464: 240008a8 .word 0x240008a8
  7007. 8003468: 240008b4 .word 0x240008b4
  7008. 800346c: 240004d4 .word 0x240004d4
  7009. 8003470: 240007c0 .word 0x240007c0
  7010. 8003474: 24000744 .word 0x24000744
  7011. 8003478: 2400088a .word 0x2400088a
  7012. 800347c: 24000888 .word 0x24000888
  7013. 8003480: 24000889 .word 0x24000889
  7014. 8003484: 24000890 .word 0x24000890
  7015. 8003488: 24000874 .word 0x24000874
  7016. 800348c: 24000880 .word 0x24000880
  7017. 8003490: 240008a0 .word 0x240008a0
  7018. 8003494: 240008e8 .word 0x240008e8
  7019. 8003498: 24000774 .word 0x24000774
  7020. 800349c: 2400088d .word 0x2400088d
  7021. 80034a0: 2400088b .word 0x2400088b
  7022. 80034a4: 2400088c .word 0x2400088c
  7023. 80034a8: 24000894 .word 0x24000894
  7024. 80034ac: 24000875 .word 0x24000875
  7025. 80034b0: 24000884 .word 0x24000884
  7026. 80034b4: 240008a4 .word 0x240008a4
  7027. 80034b8: 080034c5 .word 0x080034c5
  7028. 80034bc: 240008ac .word 0x240008ac
  7029. 80034c0: 240008b0 .word 0x240008b0
  7030. 080034c4 <PositionControlTask>:
  7031. void PositionControlTask (void* argument) {
  7032. 80034c4: b5f0 push {r4, r5, r6, r7, lr}
  7033. 80034c6: b097 sub sp, #92 @ 0x5c
  7034. 80034c8: af06 add r7, sp, #24
  7035. 80034ca: 6078 str r0, [r7, #4]
  7036. const int32_t PositionControlTaskTimeOut = 100;
  7037. 80034cc: 2364 movs r3, #100 @ 0x64
  7038. 80034ce: 623b str r3, [r7, #32]
  7039. PositionControlTaskInitArg* posCtrlTaskArg = (PositionControlTaskInitArg*)argument;
  7040. 80034d0: 687b ldr r3, [r7, #4]
  7041. 80034d2: 61fb str r3, [r7, #28]
  7042. PositionControlTaskData posCtrlData = { 0 };
  7043. 80034d4: f04f 0300 mov.w r3, #0
  7044. 80034d8: 60bb str r3, [r7, #8]
  7045. uint32_t motorStatus = 0;
  7046. 80034da: 2300 movs r3, #0
  7047. 80034dc: 61bb str r3, [r7, #24]
  7048. osStatus_t queueSatus;
  7049. int32_t pwmValue = MOTOR_START_STOP_PWM_VALUE;
  7050. 80034de: 233c movs r3, #60 @ 0x3c
  7051. 80034e0: 63fb str r3, [r7, #60] @ 0x3c
  7052. int32_t sign = 0;
  7053. 80034e2: 2300 movs r3, #0
  7054. 80034e4: 63bb str r3, [r7, #56] @ 0x38
  7055. MovementPhases movementPhase = idlePhase;
  7056. 80034e6: 2300 movs r3, #0
  7057. 80034e8: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7058. float startPosition = 0;
  7059. 80034ec: f04f 0300 mov.w r3, #0
  7060. 80034f0: 633b str r3, [r7, #48] @ 0x30
  7061. float prevPosition = 0;
  7062. 80034f2: f04f 0300 mov.w r3, #0
  7063. 80034f6: 62fb str r3, [r7, #44] @ 0x2c
  7064. int32_t timeLeftMS = 0;
  7065. 80034f8: 2300 movs r3, #0
  7066. 80034fa: 62bb str r3, [r7, #40] @ 0x28
  7067. int32_t moveCmdTimeoutCounter = 0;
  7068. 80034fc: 2300 movs r3, #0
  7069. 80034fe: 627b str r3, [r7, #36] @ 0x24
  7070. while (pdTRUE) {
  7071. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  7072. 8003500: 69fb ldr r3, [r7, #28]
  7073. 8003502: 6918 ldr r0, [r3, #16]
  7074. 8003504: 6a3b ldr r3, [r7, #32]
  7075. 8003506: f44f 727a mov.w r2, #1000 @ 0x3e8
  7076. 800350a: fb02 f303 mul.w r3, r2, r3
  7077. 800350e: 4a9f ldr r2, [pc, #636] @ (800378c <PositionControlTask+0x2c8>)
  7078. 8003510: fba2 2303 umull r2, r3, r2, r3
  7079. 8003514: 099b lsrs r3, r3, #6
  7080. 8003516: f107 0108 add.w r1, r7, #8
  7081. 800351a: 2200 movs r2, #0
  7082. 800351c: f011 f926 bl 801476c <osMessageQueueGet>
  7083. 8003520: 6178 str r0, [r7, #20]
  7084. if (queueSatus == osOK) {
  7085. 8003522: 697b ldr r3, [r7, #20]
  7086. 8003524: 2b00 cmp r3, #0
  7087. 8003526: d14a bne.n 80035be <PositionControlTask+0xfa>
  7088. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  7089. 8003528: 4b99 ldr r3, [pc, #612] @ (8003790 <PositionControlTask+0x2cc>)
  7090. 800352a: 681b ldr r3, [r3, #0]
  7091. 800352c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7092. 8003530: 4618 mov r0, r3
  7093. 8003532: f010 ffc0 bl 80144b6 <osMutexAcquire>
  7094. 8003536: 4603 mov r3, r0
  7095. 8003538: 2b00 cmp r3, #0
  7096. 800353a: d1e1 bne.n 8003500 <PositionControlTask+0x3c>
  7097. float posDiff = posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition;
  7098. 800353c: ed97 7a02 vldr s14, [r7, #8]
  7099. 8003540: 69fb ldr r3, [r7, #28]
  7100. 8003542: 6a1b ldr r3, [r3, #32]
  7101. 8003544: edd3 7a00 vldr s15, [r3]
  7102. 8003548: ee77 7a67 vsub.f32 s15, s14, s15
  7103. 800354c: edc7 7a03 vstr s15, [r7, #12]
  7104. if (posDiff != 0) {
  7105. 8003550: edd7 7a03 vldr s15, [r7, #12]
  7106. 8003554: eef5 7a40 vcmp.f32 s15, #0.0
  7107. 8003558: eef1 fa10 vmrs APSR_nzcv, fpscr
  7108. 800355c: d016 beq.n 800358c <PositionControlTask+0xc8>
  7109. sign = posDiff > 0 ? 1 : -1;
  7110. 800355e: edd7 7a03 vldr s15, [r7, #12]
  7111. 8003562: eef5 7ac0 vcmpe.f32 s15, #0.0
  7112. 8003566: eef1 fa10 vmrs APSR_nzcv, fpscr
  7113. 800356a: dd01 ble.n 8003570 <PositionControlTask+0xac>
  7114. 800356c: 2301 movs r3, #1
  7115. 800356e: e001 b.n 8003574 <PositionControlTask+0xb0>
  7116. 8003570: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  7117. 8003574: 63bb str r3, [r7, #56] @ 0x38
  7118. startPosition = *posCtrlTaskArg->currentPosition;
  7119. 8003576: 69fb ldr r3, [r7, #28]
  7120. 8003578: 6a1b ldr r3, [r3, #32]
  7121. 800357a: 681b ldr r3, [r3, #0]
  7122. 800357c: 633b str r3, [r7, #48] @ 0x30
  7123. movementPhase = startPhase;
  7124. 800357e: 2301 movs r3, #1
  7125. 8003580: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7126. moveCmdTimeoutCounter = 0;
  7127. 8003584: 2300 movs r3, #0
  7128. 8003586: 627b str r3, [r7, #36] @ 0x24
  7129. timeLeftMS = 0;
  7130. 8003588: 2300 movs r3, #0
  7131. 800358a: 62bb str r3, [r7, #40] @ 0x28
  7132. #ifdef DBG_POSITION
  7133. printf ("Axe %c start phase\n", posCtrlTaskArg->axe);
  7134. #endif
  7135. }
  7136. osMutexRelease (sensorsInfoMutex);
  7137. 800358c: 4b80 ldr r3, [pc, #512] @ (8003790 <PositionControlTask+0x2cc>)
  7138. 800358e: 681b ldr r3, [r3, #0]
  7139. 8003590: 4618 mov r0, r3
  7140. 8003592: f010 ffdb bl 801454c <osMutexRelease>
  7141. if (osMutexAcquire (positionSettingMutex, osWaitForever) == osOK) {
  7142. 8003596: 4b7f ldr r3, [pc, #508] @ (8003794 <PositionControlTask+0x2d0>)
  7143. 8003598: 681b ldr r3, [r3, #0]
  7144. 800359a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7145. 800359e: 4618 mov r0, r3
  7146. 80035a0: f010 ff89 bl 80144b6 <osMutexAcquire>
  7147. 80035a4: 4603 mov r3, r0
  7148. 80035a6: 2b00 cmp r3, #0
  7149. 80035a8: d1aa bne.n 8003500 <PositionControlTask+0x3c>
  7150. *positionXControlTaskInitArg.positionSetting = posCtrlData.positionSettingValue;
  7151. 80035aa: 4b7b ldr r3, [pc, #492] @ (8003798 <PositionControlTask+0x2d4>)
  7152. 80035ac: 6a5b ldr r3, [r3, #36] @ 0x24
  7153. 80035ae: 68ba ldr r2, [r7, #8]
  7154. 80035b0: 601a str r2, [r3, #0]
  7155. osMutexRelease (positionSettingMutex);
  7156. 80035b2: 4b78 ldr r3, [pc, #480] @ (8003794 <PositionControlTask+0x2d0>)
  7157. 80035b4: 681b ldr r3, [r3, #0]
  7158. 80035b6: 4618 mov r0, r3
  7159. 80035b8: f010 ffc8 bl 801454c <osMutexRelease>
  7160. 80035bc: e7a0 b.n 8003500 <PositionControlTask+0x3c>
  7161. }
  7162. }
  7163. } else if (queueSatus == osErrorTimeout) {
  7164. 80035be: 697b ldr r3, [r7, #20]
  7165. 80035c0: f113 0f02 cmn.w r3, #2
  7166. 80035c4: d19c bne.n 8003500 <PositionControlTask+0x3c>
  7167. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  7168. 80035c6: 4b72 ldr r3, [pc, #456] @ (8003790 <PositionControlTask+0x2cc>)
  7169. 80035c8: 681b ldr r3, [r3, #0]
  7170. 80035ca: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7171. 80035ce: 4618 mov r0, r3
  7172. 80035d0: f010 ff71 bl 80144b6 <osMutexAcquire>
  7173. 80035d4: 4603 mov r3, r0
  7174. 80035d6: 2b00 cmp r3, #0
  7175. 80035d8: d192 bne.n 8003500 <PositionControlTask+0x3c>
  7176. if ((*posCtrlTaskArg->motorStatus != 0) || (movementPhase == startPhase)) {
  7177. 80035da: 69fb ldr r3, [r7, #28]
  7178. 80035dc: 6a9b ldr r3, [r3, #40] @ 0x28
  7179. 80035de: 781b ldrb r3, [r3, #0]
  7180. 80035e0: 2b00 cmp r3, #0
  7181. 80035e2: d104 bne.n 80035ee <PositionControlTask+0x12a>
  7182. 80035e4: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7183. 80035e8: 2b01 cmp r3, #1
  7184. 80035ea: f040 81c4 bne.w 8003976 <PositionControlTask+0x4b2>
  7185. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7186. 80035ee: 69fb ldr r3, [r7, #28]
  7187. 80035f0: 699b ldr r3, [r3, #24]
  7188. 80035f2: 781b ldrb r3, [r3, #0]
  7189. 80035f4: 2b01 cmp r3, #1
  7190. 80035f6: d104 bne.n 8003602 <PositionControlTask+0x13e>
  7191. 80035f8: 69fb ldr r3, [r7, #28]
  7192. 80035fa: 695b ldr r3, [r3, #20]
  7193. 80035fc: 781b ldrb r3, [r3, #0]
  7194. 80035fe: 2b01 cmp r3, #1
  7195. 8003600: d009 beq.n 8003616 <PositionControlTask+0x152>
  7196. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7197. 8003602: 69fb ldr r3, [r7, #28]
  7198. 8003604: 695b ldr r3, [r3, #20]
  7199. 8003606: 781b ldrb r3, [r3, #0]
  7200. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7201. 8003608: 2b01 cmp r3, #1
  7202. 800360a: d12a bne.n 8003662 <PositionControlTask+0x19e>
  7203. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7204. 800360c: 69fb ldr r3, [r7, #28]
  7205. 800360e: 69db ldr r3, [r3, #28]
  7206. 8003610: 781b ldrb r3, [r3, #0]
  7207. 8003612: 2b01 cmp r3, #1
  7208. 8003614: d125 bne.n 8003662 <PositionControlTask+0x19e>
  7209. movementPhase = idlePhase;
  7210. 8003616: 2300 movs r3, #0
  7211. 8003618: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7212. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7213. 800361c: 69fb ldr r3, [r7, #28]
  7214. 800361e: 6818 ldr r0, [r3, #0]
  7215. 8003620: 69fb ldr r3, [r7, #28]
  7216. 8003622: 685c ldr r4, [r3, #4]
  7217. 8003624: 69fb ldr r3, [r7, #28]
  7218. 8003626: 7a1d ldrb r5, [r3, #8]
  7219. 8003628: 69fb ldr r3, [r7, #28]
  7220. 800362a: 7a5e ldrb r6, [r3, #9]
  7221. 800362c: 69fb ldr r3, [r7, #28]
  7222. 800362e: 68db ldr r3, [r3, #12]
  7223. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7224. 8003630: 69fa ldr r2, [r7, #28]
  7225. 8003632: 6952 ldr r2, [r2, #20]
  7226. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7227. 8003634: 7812 ldrb r2, [r2, #0]
  7228. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7229. 8003636: 69f9 ldr r1, [r7, #28]
  7230. 8003638: 6989 ldr r1, [r1, #24]
  7231. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7232. 800363a: 7809 ldrb r1, [r1, #0]
  7233. 800363c: 9104 str r1, [sp, #16]
  7234. 800363e: 9203 str r2, [sp, #12]
  7235. 8003640: 2200 movs r2, #0
  7236. 8003642: 9202 str r2, [sp, #8]
  7237. 8003644: 2200 movs r2, #0
  7238. 8003646: 9201 str r2, [sp, #4]
  7239. 8003648: 9300 str r3, [sp, #0]
  7240. 800364a: 4633 mov r3, r6
  7241. 800364c: 462a mov r2, r5
  7242. 800364e: 4621 mov r1, r4
  7243. 8003650: f7ff fcd6 bl 8003000 <MotorControl>
  7244. 8003654: 4603 mov r3, r0
  7245. 8003656: 61bb str r3, [r7, #24]
  7246. *posCtrlTaskArg->motorStatus = motorStatus;
  7247. 8003658: 69fb ldr r3, [r7, #28]
  7248. 800365a: 6a9b ldr r3, [r3, #40] @ 0x28
  7249. 800365c: 69ba ldr r2, [r7, #24]
  7250. 800365e: b2d2 uxtb r2, r2
  7251. 8003660: 701a strb r2, [r3, #0]
  7252. printf ("Axe %c limiters wrong state - idle phase\n", posCtrlTaskArg->axe);
  7253. #endif
  7254. }
  7255. timeLeftMS += PositionControlTaskTimeOut;
  7256. 8003662: 6aba ldr r2, [r7, #40] @ 0x28
  7257. 8003664: 6a3b ldr r3, [r7, #32]
  7258. 8003666: 4413 add r3, r2
  7259. 8003668: 62bb str r3, [r7, #40] @ 0x28
  7260. if (prevPosition == *posCtrlTaskArg->currentPosition) {
  7261. 800366a: 69fb ldr r3, [r7, #28]
  7262. 800366c: 6a1b ldr r3, [r3, #32]
  7263. 800366e: edd3 7a00 vldr s15, [r3]
  7264. 8003672: ed97 7a0b vldr s14, [r7, #44] @ 0x2c
  7265. 8003676: eeb4 7a67 vcmp.f32 s14, s15
  7266. 800367a: eef1 fa10 vmrs APSR_nzcv, fpscr
  7267. 800367e: d104 bne.n 800368a <PositionControlTask+0x1c6>
  7268. moveCmdTimeoutCounter += PositionControlTaskTimeOut;
  7269. 8003680: 6a7a ldr r2, [r7, #36] @ 0x24
  7270. 8003682: 6a3b ldr r3, [r7, #32]
  7271. 8003684: 4413 add r3, r2
  7272. 8003686: 627b str r3, [r7, #36] @ 0x24
  7273. 8003688: e001 b.n 800368e <PositionControlTask+0x1ca>
  7274. } else {
  7275. moveCmdTimeoutCounter = 0;
  7276. 800368a: 2300 movs r3, #0
  7277. 800368c: 627b str r3, [r7, #36] @ 0x24
  7278. }
  7279. prevPosition = *posCtrlTaskArg->currentPosition;
  7280. 800368e: 69fb ldr r3, [r7, #28]
  7281. 8003690: 6a1b ldr r3, [r3, #32]
  7282. 8003692: 681b ldr r3, [r3, #0]
  7283. 8003694: 62fb str r3, [r7, #44] @ 0x2c
  7284. if (moveCmdTimeoutCounter > NO_MOVE_TIMEOUT_MS) {
  7285. 8003696: 6a7b ldr r3, [r7, #36] @ 0x24
  7286. 8003698: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7287. 800369c: dd25 ble.n 80036ea <PositionControlTask+0x226>
  7288. movementPhase = idlePhase;
  7289. 800369e: 2300 movs r3, #0
  7290. 80036a0: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7291. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7292. 80036a4: 69fb ldr r3, [r7, #28]
  7293. 80036a6: 6818 ldr r0, [r3, #0]
  7294. 80036a8: 69fb ldr r3, [r7, #28]
  7295. 80036aa: 685c ldr r4, [r3, #4]
  7296. 80036ac: 69fb ldr r3, [r7, #28]
  7297. 80036ae: 7a1d ldrb r5, [r3, #8]
  7298. 80036b0: 69fb ldr r3, [r7, #28]
  7299. 80036b2: 7a5e ldrb r6, [r3, #9]
  7300. 80036b4: 69fb ldr r3, [r7, #28]
  7301. 80036b6: 68db ldr r3, [r3, #12]
  7302. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7303. 80036b8: 69fa ldr r2, [r7, #28]
  7304. 80036ba: 6952 ldr r2, [r2, #20]
  7305. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7306. 80036bc: 7812 ldrb r2, [r2, #0]
  7307. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7308. 80036be: 69f9 ldr r1, [r7, #28]
  7309. 80036c0: 6989 ldr r1, [r1, #24]
  7310. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7311. 80036c2: 7809 ldrb r1, [r1, #0]
  7312. 80036c4: 9104 str r1, [sp, #16]
  7313. 80036c6: 9203 str r2, [sp, #12]
  7314. 80036c8: 2200 movs r2, #0
  7315. 80036ca: 9202 str r2, [sp, #8]
  7316. 80036cc: 2200 movs r2, #0
  7317. 80036ce: 9201 str r2, [sp, #4]
  7318. 80036d0: 9300 str r3, [sp, #0]
  7319. 80036d2: 4633 mov r3, r6
  7320. 80036d4: 462a mov r2, r5
  7321. 80036d6: 4621 mov r1, r4
  7322. 80036d8: f7ff fc92 bl 8003000 <MotorControl>
  7323. 80036dc: 4603 mov r3, r0
  7324. 80036de: 61bb str r3, [r7, #24]
  7325. *posCtrlTaskArg->motorStatus = motorStatus;
  7326. 80036e0: 69fb ldr r3, [r7, #28]
  7327. 80036e2: 6a9b ldr r3, [r3, #40] @ 0x28
  7328. 80036e4: 69ba ldr r2, [r7, #24]
  7329. 80036e6: b2d2 uxtb r2, r2
  7330. 80036e8: 701a strb r2, [r3, #0]
  7331. #ifdef DBG_POSITION
  7332. printf ("Axe %c no movement idle phase\n", posCtrlTaskArg->axe);
  7333. #endif
  7334. }
  7335. switch (movementPhase) {
  7336. 80036ea: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7337. 80036ee: 3b01 subs r3, #1
  7338. 80036f0: 2b04 cmp r3, #4
  7339. 80036f2: f200 8138 bhi.w 8003966 <PositionControlTask+0x4a2>
  7340. 80036f6: a201 add r2, pc, #4 @ (adr r2, 80036fc <PositionControlTask+0x238>)
  7341. 80036f8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  7342. 80036fc: 08003711 .word 0x08003711
  7343. 8003700: 0800379d .word 0x0800379d
  7344. 8003704: 08003827 .word 0x08003827
  7345. 8003708: 08003875 .word 0x08003875
  7346. 800370c: 080038d7 .word 0x080038d7
  7347. case startPhase:
  7348. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7349. 8003710: 69fb ldr r3, [r7, #28]
  7350. 8003712: 681c ldr r4, [r3, #0]
  7351. 8003714: 69fb ldr r3, [r7, #28]
  7352. 8003716: 685d ldr r5, [r3, #4]
  7353. 8003718: 69fb ldr r3, [r7, #28]
  7354. 800371a: 7a1e ldrb r6, [r3, #8]
  7355. 800371c: 69fb ldr r3, [r7, #28]
  7356. 800371e: f893 c009 ldrb.w ip, [r3, #9]
  7357. 8003722: 69fb ldr r3, [r7, #28]
  7358. 8003724: 68db ldr r3, [r3, #12]
  7359. 8003726: 6bba ldr r2, [r7, #56] @ 0x38
  7360. 8003728: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7361. 800372a: fb01 f202 mul.w r2, r1, r2
  7362. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7363. 800372e: 69f9 ldr r1, [r7, #28]
  7364. 8003730: 6949 ldr r1, [r1, #20]
  7365. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7366. 8003732: 7809 ldrb r1, [r1, #0]
  7367. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7368. 8003734: 69f8 ldr r0, [r7, #28]
  7369. 8003736: 6980 ldr r0, [r0, #24]
  7370. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7371. 8003738: 7800 ldrb r0, [r0, #0]
  7372. 800373a: 9004 str r0, [sp, #16]
  7373. 800373c: 9103 str r1, [sp, #12]
  7374. 800373e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7375. 8003742: 9102 str r1, [sp, #8]
  7376. 8003744: 9201 str r2, [sp, #4]
  7377. 8003746: 9300 str r3, [sp, #0]
  7378. 8003748: 4663 mov r3, ip
  7379. 800374a: 4632 mov r2, r6
  7380. 800374c: 4629 mov r1, r5
  7381. 800374e: 4620 mov r0, r4
  7382. 8003750: f7ff fc56 bl 8003000 <MotorControl>
  7383. 8003754: 4603 mov r3, r0
  7384. 8003756: 61bb str r3, [r7, #24]
  7385. *posCtrlTaskArg->motorStatus = motorStatus;
  7386. 8003758: 69fb ldr r3, [r7, #28]
  7387. 800375a: 6a9b ldr r3, [r3, #40] @ 0x28
  7388. 800375c: 69ba ldr r2, [r7, #24]
  7389. 800375e: b2d2 uxtb r2, r2
  7390. 8003760: 701a strb r2, [r3, #0]
  7391. if (motorStatus == 1) {
  7392. 8003762: 69bb ldr r3, [r7, #24]
  7393. 8003764: 2b01 cmp r3, #1
  7394. 8003766: d10c bne.n 8003782 <PositionControlTask+0x2be>
  7395. *posCtrlTaskArg->motorPeakCurrent = 0.0;
  7396. 8003768: 69fb ldr r3, [r7, #28]
  7397. 800376a: 6adb ldr r3, [r3, #44] @ 0x2c
  7398. 800376c: f04f 0200 mov.w r2, #0
  7399. 8003770: 601a str r2, [r3, #0]
  7400. #ifdef DBG_POSITION
  7401. printf ("Axe %c speed up phase\n", posCtrlTaskArg->axe);
  7402. #endif
  7403. movementPhase = speedUpPhase;
  7404. 8003772: 2302 movs r3, #2
  7405. 8003774: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7406. timeLeftMS = 0;
  7407. 8003778: 2300 movs r3, #0
  7408. 800377a: 62bb str r3, [r7, #40] @ 0x28
  7409. moveCmdTimeoutCounter = 0;
  7410. 800377c: 2300 movs r3, #0
  7411. 800377e: 627b str r3, [r7, #36] @ 0x24
  7412. #ifdef DBG_POSITION
  7413. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7414. #endif
  7415. }
  7416. break;
  7417. 8003780: e0f8 b.n 8003974 <PositionControlTask+0x4b0>
  7418. movementPhase = idlePhase;
  7419. 8003782: 2300 movs r3, #0
  7420. 8003784: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7421. break;
  7422. 8003788: e0f4 b.n 8003974 <PositionControlTask+0x4b0>
  7423. 800378a: bf00 nop
  7424. 800378c: 10624dd3 .word 0x10624dd3
  7425. 8003790: 2400081c .word 0x2400081c
  7426. 8003794: 240008a8 .word 0x240008a8
  7427. 8003798: 240008b4 .word 0x240008b4
  7428. case speedUpPhase:
  7429. if ((abs (*posCtrlTaskArg->currentPosition - startPosition) >= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7430. 800379c: 69fb ldr r3, [r7, #28]
  7431. 800379e: 6a1b ldr r3, [r3, #32]
  7432. 80037a0: ed93 7a00 vldr s14, [r3]
  7433. 80037a4: edd7 7a0c vldr s15, [r7, #48] @ 0x30
  7434. 80037a8: ee77 7a67 vsub.f32 s15, s14, s15
  7435. 80037ac: eefd 7ae7 vcvt.s32.f32 s15, s15
  7436. 80037b0: ee17 3a90 vmov r3, s15
  7437. 80037b4: 2b00 cmp r3, #0
  7438. 80037b6: bfb8 it lt
  7439. 80037b8: 425b neglt r3, r3
  7440. 80037ba: 2b04 cmp r3, #4
  7441. 80037bc: dc04 bgt.n 80037c8 <PositionControlTask+0x304>
  7442. 80037be: 6abb ldr r3, [r7, #40] @ 0x28
  7443. 80037c0: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7444. 80037c4: f2c0 80d1 blt.w 800396a <PositionControlTask+0x4a6>
  7445. pwmValue = MOTOR_HIGH_SPEED_PWM_VALUE;
  7446. 80037c8: 2364 movs r3, #100 @ 0x64
  7447. 80037ca: 63fb str r3, [r7, #60] @ 0x3c
  7448. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7449. 80037cc: 69fb ldr r3, [r7, #28]
  7450. 80037ce: 681c ldr r4, [r3, #0]
  7451. 80037d0: 69fb ldr r3, [r7, #28]
  7452. 80037d2: 685d ldr r5, [r3, #4]
  7453. 80037d4: 69fb ldr r3, [r7, #28]
  7454. 80037d6: 7a1e ldrb r6, [r3, #8]
  7455. 80037d8: 69fb ldr r3, [r7, #28]
  7456. 80037da: f893 c009 ldrb.w ip, [r3, #9]
  7457. 80037de: 69fb ldr r3, [r7, #28]
  7458. 80037e0: 68db ldr r3, [r3, #12]
  7459. 80037e2: 6bba ldr r2, [r7, #56] @ 0x38
  7460. 80037e4: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7461. 80037e6: fb01 f202 mul.w r2, r1, r2
  7462. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7463. 80037ea: 69f9 ldr r1, [r7, #28]
  7464. 80037ec: 6949 ldr r1, [r1, #20]
  7465. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7466. 80037ee: 7809 ldrb r1, [r1, #0]
  7467. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7468. 80037f0: 69f8 ldr r0, [r7, #28]
  7469. 80037f2: 6980 ldr r0, [r0, #24]
  7470. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7471. 80037f4: 7800 ldrb r0, [r0, #0]
  7472. 80037f6: 9004 str r0, [sp, #16]
  7473. 80037f8: 9103 str r1, [sp, #12]
  7474. 80037fa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7475. 80037fe: 9102 str r1, [sp, #8]
  7476. 8003800: 9201 str r2, [sp, #4]
  7477. 8003802: 9300 str r3, [sp, #0]
  7478. 8003804: 4663 mov r3, ip
  7479. 8003806: 4632 mov r2, r6
  7480. 8003808: 4629 mov r1, r5
  7481. 800380a: 4620 mov r0, r4
  7482. 800380c: f7ff fbf8 bl 8003000 <MotorControl>
  7483. 8003810: 4603 mov r3, r0
  7484. 8003812: 61bb str r3, [r7, #24]
  7485. *posCtrlTaskArg->motorStatus = motorStatus;
  7486. 8003814: 69fb ldr r3, [r7, #28]
  7487. 8003816: 6a9b ldr r3, [r3, #40] @ 0x28
  7488. 8003818: 69ba ldr r2, [r7, #24]
  7489. 800381a: b2d2 uxtb r2, r2
  7490. 800381c: 701a strb r2, [r3, #0]
  7491. movementPhase = movePhase;
  7492. 800381e: 2303 movs r3, #3
  7493. 8003820: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7494. #ifdef DBG_POSITION
  7495. printf ("Axe %c move phase\n", posCtrlTaskArg->axe);
  7496. #endif
  7497. }
  7498. break;
  7499. 8003824: e0a1 b.n 800396a <PositionControlTask+0x4a6>
  7500. case movePhase:
  7501. if (abs (*posCtrlTaskArg->currentPosition - *posCtrlTaskArg->positionSetting) <= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) {
  7502. 8003826: 69fb ldr r3, [r7, #28]
  7503. 8003828: 6a1b ldr r3, [r3, #32]
  7504. 800382a: ed93 7a00 vldr s14, [r3]
  7505. 800382e: 69fb ldr r3, [r7, #28]
  7506. 8003830: 6a5b ldr r3, [r3, #36] @ 0x24
  7507. 8003832: edd3 7a00 vldr s15, [r3]
  7508. 8003836: ee77 7a67 vsub.f32 s15, s14, s15
  7509. 800383a: eefd 7ae7 vcvt.s32.f32 s15, s15
  7510. 800383e: ee17 3a90 vmov r3, s15
  7511. 8003842: f113 0f05 cmn.w r3, #5
  7512. 8003846: f2c0 8092 blt.w 800396e <PositionControlTask+0x4aa>
  7513. 800384a: 69fb ldr r3, [r7, #28]
  7514. 800384c: 6a1b ldr r3, [r3, #32]
  7515. 800384e: ed93 7a00 vldr s14, [r3]
  7516. 8003852: 69fb ldr r3, [r7, #28]
  7517. 8003854: 6a5b ldr r3, [r3, #36] @ 0x24
  7518. 8003856: edd3 7a00 vldr s15, [r3]
  7519. 800385a: ee77 7a67 vsub.f32 s15, s14, s15
  7520. 800385e: eefd 7ae7 vcvt.s32.f32 s15, s15
  7521. 8003862: ee17 3a90 vmov r3, s15
  7522. 8003866: 2b05 cmp r3, #5
  7523. 8003868: f300 8081 bgt.w 800396e <PositionControlTask+0x4aa>
  7524. movementPhase = slowDownPhase;
  7525. 800386c: 2304 movs r3, #4
  7526. 800386e: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7527. #ifdef DBG_POSITION
  7528. printf ("Axe %c slow down phase\n", posCtrlTaskArg->axe);
  7529. #endif
  7530. }
  7531. break;
  7532. 8003872: e07c b.n 800396e <PositionControlTask+0x4aa>
  7533. case slowDownPhase:
  7534. pwmValue = MOTOR_START_STOP_PWM_VALUE;
  7535. 8003874: 233c movs r3, #60 @ 0x3c
  7536. 8003876: 63fb str r3, [r7, #60] @ 0x3c
  7537. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7538. 8003878: 69fb ldr r3, [r7, #28]
  7539. 800387a: 681c ldr r4, [r3, #0]
  7540. 800387c: 69fb ldr r3, [r7, #28]
  7541. 800387e: 685d ldr r5, [r3, #4]
  7542. 8003880: 69fb ldr r3, [r7, #28]
  7543. 8003882: 7a1e ldrb r6, [r3, #8]
  7544. 8003884: 69fb ldr r3, [r7, #28]
  7545. 8003886: f893 c009 ldrb.w ip, [r3, #9]
  7546. 800388a: 69fb ldr r3, [r7, #28]
  7547. 800388c: 68db ldr r3, [r3, #12]
  7548. 800388e: 6bba ldr r2, [r7, #56] @ 0x38
  7549. 8003890: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7550. 8003892: fb01 f202 mul.w r2, r1, r2
  7551. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7552. 8003896: 69f9 ldr r1, [r7, #28]
  7553. 8003898: 6949 ldr r1, [r1, #20]
  7554. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7555. 800389a: 7809 ldrb r1, [r1, #0]
  7556. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7557. 800389c: 69f8 ldr r0, [r7, #28]
  7558. 800389e: 6980 ldr r0, [r0, #24]
  7559. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7560. 80038a0: 7800 ldrb r0, [r0, #0]
  7561. 80038a2: 9004 str r0, [sp, #16]
  7562. 80038a4: 9103 str r1, [sp, #12]
  7563. 80038a6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7564. 80038aa: 9102 str r1, [sp, #8]
  7565. 80038ac: 9201 str r2, [sp, #4]
  7566. 80038ae: 9300 str r3, [sp, #0]
  7567. 80038b0: 4663 mov r3, ip
  7568. 80038b2: 4632 mov r2, r6
  7569. 80038b4: 4629 mov r1, r5
  7570. 80038b6: 4620 mov r0, r4
  7571. 80038b8: f7ff fba2 bl 8003000 <MotorControl>
  7572. 80038bc: 4603 mov r3, r0
  7573. 80038be: 61bb str r3, [r7, #24]
  7574. *posCtrlTaskArg->motorStatus = motorStatus;
  7575. 80038c0: 69fb ldr r3, [r7, #28]
  7576. 80038c2: 6a9b ldr r3, [r3, #40] @ 0x28
  7577. 80038c4: 69ba ldr r2, [r7, #24]
  7578. 80038c6: b2d2 uxtb r2, r2
  7579. 80038c8: 701a strb r2, [r3, #0]
  7580. movementPhase = stopPhase;
  7581. 80038ca: 2305 movs r3, #5
  7582. 80038cc: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7583. timeLeftMS = 0;
  7584. 80038d0: 2300 movs r3, #0
  7585. 80038d2: 62bb str r3, [r7, #40] @ 0x28
  7586. #ifdef DBG_POSITION
  7587. printf ("Axe %c stop phase\n", posCtrlTaskArg->axe);
  7588. #endif
  7589. break;
  7590. 80038d4: e04e b.n 8003974 <PositionControlTask+0x4b0>
  7591. case stopPhase:
  7592. float posDiff = sign > 0 ? posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition : *posCtrlTaskArg->currentPosition - posCtrlData.positionSettingValue;
  7593. 80038d6: 6bbb ldr r3, [r7, #56] @ 0x38
  7594. 80038d8: 2b00 cmp r3, #0
  7595. 80038da: dd08 ble.n 80038ee <PositionControlTask+0x42a>
  7596. 80038dc: ed97 7a02 vldr s14, [r7, #8]
  7597. 80038e0: 69fb ldr r3, [r7, #28]
  7598. 80038e2: 6a1b ldr r3, [r3, #32]
  7599. 80038e4: edd3 7a00 vldr s15, [r3]
  7600. 80038e8: ee77 7a67 vsub.f32 s15, s14, s15
  7601. 80038ec: e007 b.n 80038fe <PositionControlTask+0x43a>
  7602. 80038ee: 69fb ldr r3, [r7, #28]
  7603. 80038f0: 6a1b ldr r3, [r3, #32]
  7604. 80038f2: ed93 7a00 vldr s14, [r3]
  7605. 80038f6: edd7 7a02 vldr s15, [r7, #8]
  7606. 80038fa: ee77 7a67 vsub.f32 s15, s14, s15
  7607. 80038fe: edc7 7a04 vstr s15, [r7, #16]
  7608. if ((posDiff <= 0) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7609. 8003902: edd7 7a04 vldr s15, [r7, #16]
  7610. 8003906: eef5 7ac0 vcmpe.f32 s15, #0.0
  7611. 800390a: eef1 fa10 vmrs APSR_nzcv, fpscr
  7612. 800390e: d903 bls.n 8003918 <PositionControlTask+0x454>
  7613. 8003910: 6abb ldr r3, [r7, #40] @ 0x28
  7614. 8003912: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7615. 8003916: db2c blt.n 8003972 <PositionControlTask+0x4ae>
  7616. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7617. 8003918: 69fb ldr r3, [r7, #28]
  7618. 800391a: 6818 ldr r0, [r3, #0]
  7619. 800391c: 69fb ldr r3, [r7, #28]
  7620. 800391e: 685c ldr r4, [r3, #4]
  7621. 8003920: 69fb ldr r3, [r7, #28]
  7622. 8003922: 7a1d ldrb r5, [r3, #8]
  7623. 8003924: 69fb ldr r3, [r7, #28]
  7624. 8003926: 7a5e ldrb r6, [r3, #9]
  7625. 8003928: 69fb ldr r3, [r7, #28]
  7626. 800392a: 68db ldr r3, [r3, #12]
  7627. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7628. 800392c: 69fa ldr r2, [r7, #28]
  7629. 800392e: 6952 ldr r2, [r2, #20]
  7630. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7631. 8003930: 7812 ldrb r2, [r2, #0]
  7632. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7633. 8003932: 69f9 ldr r1, [r7, #28]
  7634. 8003934: 6989 ldr r1, [r1, #24]
  7635. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7636. 8003936: 7809 ldrb r1, [r1, #0]
  7637. 8003938: 9104 str r1, [sp, #16]
  7638. 800393a: 9203 str r2, [sp, #12]
  7639. 800393c: 2200 movs r2, #0
  7640. 800393e: 9202 str r2, [sp, #8]
  7641. 8003940: 2200 movs r2, #0
  7642. 8003942: 9201 str r2, [sp, #4]
  7643. 8003944: 9300 str r3, [sp, #0]
  7644. 8003946: 4633 mov r3, r6
  7645. 8003948: 462a mov r2, r5
  7646. 800394a: 4621 mov r1, r4
  7647. 800394c: f7ff fb58 bl 8003000 <MotorControl>
  7648. 8003950: 4603 mov r3, r0
  7649. 8003952: 61bb str r3, [r7, #24]
  7650. *posCtrlTaskArg->motorStatus = motorStatus;
  7651. 8003954: 69fb ldr r3, [r7, #28]
  7652. 8003956: 6a9b ldr r3, [r3, #40] @ 0x28
  7653. 8003958: 69ba ldr r2, [r7, #24]
  7654. 800395a: b2d2 uxtb r2, r2
  7655. 800395c: 701a strb r2, [r3, #0]
  7656. movementPhase = idlePhase;
  7657. 800395e: 2300 movs r3, #0
  7658. 8003960: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7659. #ifdef DBG_POSITION
  7660. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7661. #endif
  7662. }
  7663. break;
  7664. 8003964: e005 b.n 8003972 <PositionControlTask+0x4ae>
  7665. default: break;
  7666. 8003966: bf00 nop
  7667. 8003968: e011 b.n 800398e <PositionControlTask+0x4ca>
  7668. break;
  7669. 800396a: bf00 nop
  7670. 800396c: e00f b.n 800398e <PositionControlTask+0x4ca>
  7671. break;
  7672. 800396e: bf00 nop
  7673. 8003970: e00d b.n 800398e <PositionControlTask+0x4ca>
  7674. break;
  7675. 8003972: bf00 nop
  7676. switch (movementPhase) {
  7677. 8003974: e00b b.n 800398e <PositionControlTask+0x4ca>
  7678. }
  7679. } else {
  7680. if ((*posCtrlTaskArg->motorStatus == 0) && (movementPhase != idlePhase)) {
  7681. 8003976: 69fb ldr r3, [r7, #28]
  7682. 8003978: 6a9b ldr r3, [r3, #40] @ 0x28
  7683. 800397a: 781b ldrb r3, [r3, #0]
  7684. 800397c: 2b00 cmp r3, #0
  7685. 800397e: d106 bne.n 800398e <PositionControlTask+0x4ca>
  7686. 8003980: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7687. 8003984: 2b00 cmp r3, #0
  7688. 8003986: d002 beq.n 800398e <PositionControlTask+0x4ca>
  7689. movementPhase = idlePhase;
  7690. 8003988: 2300 movs r3, #0
  7691. 800398a: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7692. #ifdef DBG_POSITION
  7693. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7694. #endif
  7695. }
  7696. }
  7697. osMutexRelease (sensorsInfoMutex);
  7698. 800398e: 4b03 ldr r3, [pc, #12] @ (800399c <PositionControlTask+0x4d8>)
  7699. 8003990: 681b ldr r3, [r3, #0]
  7700. 8003992: 4618 mov r0, r3
  7701. 8003994: f010 fdda bl 801454c <osMutexRelease>
  7702. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  7703. 8003998: e5b2 b.n 8003500 <PositionControlTask+0x3c>
  7704. 800399a: bf00 nop
  7705. 800399c: 2400081c .word 0x2400081c
  7706. 080039a0 <WriteDataToBuffer>:
  7707. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7708. }
  7709. *buffPos = newBuffPos;
  7710. }
  7711. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  7712. 80039a0: b480 push {r7}
  7713. 80039a2: b089 sub sp, #36 @ 0x24
  7714. 80039a4: af00 add r7, sp, #0
  7715. 80039a6: 60f8 str r0, [r7, #12]
  7716. 80039a8: 60b9 str r1, [r7, #8]
  7717. 80039aa: 607a str r2, [r7, #4]
  7718. 80039ac: 70fb strb r3, [r7, #3]
  7719. uint32_t* uDataPtr = data;
  7720. 80039ae: 687b ldr r3, [r7, #4]
  7721. 80039b0: 61bb str r3, [r7, #24]
  7722. uint32_t uData = *uDataPtr;
  7723. 80039b2: 69bb ldr r3, [r7, #24]
  7724. 80039b4: 681b ldr r3, [r3, #0]
  7725. 80039b6: 617b str r3, [r7, #20]
  7726. uint8_t i = 0;
  7727. 80039b8: 2300 movs r3, #0
  7728. 80039ba: 77fb strb r3, [r7, #31]
  7729. uint8_t newBuffPos = *buffPos;
  7730. 80039bc: 68bb ldr r3, [r7, #8]
  7731. 80039be: 881b ldrh r3, [r3, #0]
  7732. 80039c0: 77bb strb r3, [r7, #30]
  7733. for (i = 0; i < dataSize; i++) {
  7734. 80039c2: 2300 movs r3, #0
  7735. 80039c4: 77fb strb r3, [r7, #31]
  7736. 80039c6: e00e b.n 80039e6 <WriteDataToBuffer+0x46>
  7737. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7738. 80039c8: 7ffb ldrb r3, [r7, #31]
  7739. 80039ca: 00db lsls r3, r3, #3
  7740. 80039cc: 697a ldr r2, [r7, #20]
  7741. 80039ce: 40da lsrs r2, r3
  7742. 80039d0: 7fbb ldrb r3, [r7, #30]
  7743. 80039d2: 1c59 adds r1, r3, #1
  7744. 80039d4: 77b9 strb r1, [r7, #30]
  7745. 80039d6: 4619 mov r1, r3
  7746. 80039d8: 68fb ldr r3, [r7, #12]
  7747. 80039da: 440b add r3, r1
  7748. 80039dc: b2d2 uxtb r2, r2
  7749. 80039de: 701a strb r2, [r3, #0]
  7750. for (i = 0; i < dataSize; i++) {
  7751. 80039e0: 7ffb ldrb r3, [r7, #31]
  7752. 80039e2: 3301 adds r3, #1
  7753. 80039e4: 77fb strb r3, [r7, #31]
  7754. 80039e6: 7ffa ldrb r2, [r7, #31]
  7755. 80039e8: 78fb ldrb r3, [r7, #3]
  7756. 80039ea: 429a cmp r2, r3
  7757. 80039ec: d3ec bcc.n 80039c8 <WriteDataToBuffer+0x28>
  7758. }
  7759. *buffPos = newBuffPos;
  7760. 80039ee: 7fbb ldrb r3, [r7, #30]
  7761. 80039f0: b29a uxth r2, r3
  7762. 80039f2: 68bb ldr r3, [r7, #8]
  7763. 80039f4: 801a strh r2, [r3, #0]
  7764. }
  7765. 80039f6: bf00 nop
  7766. 80039f8: 3724 adds r7, #36 @ 0x24
  7767. 80039fa: 46bd mov sp, r7
  7768. 80039fc: f85d 7b04 ldr.w r7, [sp], #4
  7769. 8003a00: 4770 bx lr
  7770. 08003a02 <ReadFloatFromBuffer>:
  7771. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  7772. {
  7773. 8003a02: b480 push {r7}
  7774. 8003a04: b087 sub sp, #28
  7775. 8003a06: af00 add r7, sp, #0
  7776. 8003a08: 60f8 str r0, [r7, #12]
  7777. 8003a0a: 60b9 str r1, [r7, #8]
  7778. 8003a0c: 607a str r2, [r7, #4]
  7779. uint32_t* word = (uint32_t *)data;
  7780. 8003a0e: 687b ldr r3, [r7, #4]
  7781. 8003a10: 617b str r3, [r7, #20]
  7782. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7783. 8003a12: 68bb ldr r3, [r7, #8]
  7784. 8003a14: 881b ldrh r3, [r3, #0]
  7785. 8003a16: 3303 adds r3, #3
  7786. 8003a18: 68fa ldr r2, [r7, #12]
  7787. 8003a1a: 4413 add r3, r2
  7788. 8003a1c: 781b ldrb r3, [r3, #0]
  7789. 8003a1e: 061a lsls r2, r3, #24
  7790. 8003a20: 68bb ldr r3, [r7, #8]
  7791. 8003a22: 881b ldrh r3, [r3, #0]
  7792. 8003a24: 3302 adds r3, #2
  7793. 8003a26: 68f9 ldr r1, [r7, #12]
  7794. 8003a28: 440b add r3, r1
  7795. 8003a2a: 781b ldrb r3, [r3, #0]
  7796. 8003a2c: 041b lsls r3, r3, #16
  7797. 8003a2e: 431a orrs r2, r3
  7798. 8003a30: 68bb ldr r3, [r7, #8]
  7799. 8003a32: 881b ldrh r3, [r3, #0]
  7800. 8003a34: 3301 adds r3, #1
  7801. 8003a36: 68f9 ldr r1, [r7, #12]
  7802. 8003a38: 440b add r3, r1
  7803. 8003a3a: 781b ldrb r3, [r3, #0]
  7804. 8003a3c: 021b lsls r3, r3, #8
  7805. 8003a3e: 4313 orrs r3, r2
  7806. 8003a40: 68ba ldr r2, [r7, #8]
  7807. 8003a42: 8812 ldrh r2, [r2, #0]
  7808. 8003a44: 4611 mov r1, r2
  7809. 8003a46: 68fa ldr r2, [r7, #12]
  7810. 8003a48: 440a add r2, r1
  7811. 8003a4a: 7812 ldrb r2, [r2, #0]
  7812. 8003a4c: 4313 orrs r3, r2
  7813. 8003a4e: 461a mov r2, r3
  7814. 8003a50: 697b ldr r3, [r7, #20]
  7815. 8003a52: 601a str r2, [r3, #0]
  7816. *buffPos += sizeof(float);
  7817. 8003a54: 68bb ldr r3, [r7, #8]
  7818. 8003a56: 881b ldrh r3, [r3, #0]
  7819. 8003a58: 3304 adds r3, #4
  7820. 8003a5a: b29a uxth r2, r3
  7821. 8003a5c: 68bb ldr r3, [r7, #8]
  7822. 8003a5e: 801a strh r2, [r3, #0]
  7823. }
  7824. 8003a60: bf00 nop
  7825. 8003a62: 371c adds r7, #28
  7826. 8003a64: 46bd mov sp, r7
  7827. 8003a66: f85d 7b04 ldr.w r7, [sp], #4
  7828. 8003a6a: 4770 bx lr
  7829. 08003a6c <ReadWordFromBufer>:
  7830. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  7831. *buffPos += sizeof(uint16_t);
  7832. }
  7833. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  7834. {
  7835. 8003a6c: b480 push {r7}
  7836. 8003a6e: b085 sub sp, #20
  7837. 8003a70: af00 add r7, sp, #0
  7838. 8003a72: 60f8 str r0, [r7, #12]
  7839. 8003a74: 60b9 str r1, [r7, #8]
  7840. 8003a76: 607a str r2, [r7, #4]
  7841. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7842. 8003a78: 68bb ldr r3, [r7, #8]
  7843. 8003a7a: 881b ldrh r3, [r3, #0]
  7844. 8003a7c: 3303 adds r3, #3
  7845. 8003a7e: 68fa ldr r2, [r7, #12]
  7846. 8003a80: 4413 add r3, r2
  7847. 8003a82: 781b ldrb r3, [r3, #0]
  7848. 8003a84: 061a lsls r2, r3, #24
  7849. 8003a86: 68bb ldr r3, [r7, #8]
  7850. 8003a88: 881b ldrh r3, [r3, #0]
  7851. 8003a8a: 3302 adds r3, #2
  7852. 8003a8c: 68f9 ldr r1, [r7, #12]
  7853. 8003a8e: 440b add r3, r1
  7854. 8003a90: 781b ldrb r3, [r3, #0]
  7855. 8003a92: 041b lsls r3, r3, #16
  7856. 8003a94: 431a orrs r2, r3
  7857. 8003a96: 68bb ldr r3, [r7, #8]
  7858. 8003a98: 881b ldrh r3, [r3, #0]
  7859. 8003a9a: 3301 adds r3, #1
  7860. 8003a9c: 68f9 ldr r1, [r7, #12]
  7861. 8003a9e: 440b add r3, r1
  7862. 8003aa0: 781b ldrb r3, [r3, #0]
  7863. 8003aa2: 021b lsls r3, r3, #8
  7864. 8003aa4: 4313 orrs r3, r2
  7865. 8003aa6: 68ba ldr r2, [r7, #8]
  7866. 8003aa8: 8812 ldrh r2, [r2, #0]
  7867. 8003aaa: 4611 mov r1, r2
  7868. 8003aac: 68fa ldr r2, [r7, #12]
  7869. 8003aae: 440a add r2, r1
  7870. 8003ab0: 7812 ldrb r2, [r2, #0]
  7871. 8003ab2: 4313 orrs r3, r2
  7872. 8003ab4: 461a mov r2, r3
  7873. 8003ab6: 687b ldr r3, [r7, #4]
  7874. 8003ab8: 601a str r2, [r3, #0]
  7875. *buffPos += sizeof(uint32_t);
  7876. 8003aba: 68bb ldr r3, [r7, #8]
  7877. 8003abc: 881b ldrh r3, [r3, #0]
  7878. 8003abe: 3304 adds r3, #4
  7879. 8003ac0: b29a uxth r2, r3
  7880. 8003ac2: 68bb ldr r3, [r7, #8]
  7881. 8003ac4: 801a strh r2, [r3, #0]
  7882. }
  7883. 8003ac6: bf00 nop
  7884. 8003ac8: 3714 adds r7, #20
  7885. 8003aca: 46bd mov sp, r7
  7886. 8003acc: f85d 7b04 ldr.w r7, [sp], #4
  7887. 8003ad0: 4770 bx lr
  7888. ...
  7889. 08003ad4 <PrepareRespFrame>:
  7890. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7891. return txBufferPos;
  7892. }
  7893. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  7894. 8003ad4: b580 push {r7, lr}
  7895. 8003ad6: b084 sub sp, #16
  7896. 8003ad8: af00 add r7, sp, #0
  7897. 8003ada: 6078 str r0, [r7, #4]
  7898. 8003adc: 4608 mov r0, r1
  7899. 8003ade: 4611 mov r1, r2
  7900. 8003ae0: 461a mov r2, r3
  7901. 8003ae2: 4603 mov r3, r0
  7902. 8003ae4: 807b strh r3, [r7, #2]
  7903. 8003ae6: 460b mov r3, r1
  7904. 8003ae8: 707b strb r3, [r7, #1]
  7905. 8003aea: 4613 mov r3, r2
  7906. 8003aec: 703b strb r3, [r7, #0]
  7907. uint16_t crc = 0;
  7908. 8003aee: 2300 movs r3, #0
  7909. 8003af0: 81bb strh r3, [r7, #12]
  7910. uint16_t txBufferPos = 0;
  7911. 8003af2: 2300 movs r3, #0
  7912. 8003af4: 81fb strh r3, [r7, #14]
  7913. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  7914. 8003af6: 787b ldrb r3, [r7, #1]
  7915. 8003af8: b21a sxth r2, r3
  7916. 8003afa: 4b43 ldr r3, [pc, #268] @ (8003c08 <PrepareRespFrame+0x134>)
  7917. 8003afc: 4313 orrs r3, r2
  7918. 8003afe: b21b sxth r3, r3
  7919. 8003b00: 817b strh r3, [r7, #10]
  7920. memset (txBuffer, 0x00, dataLength);
  7921. 8003b02: 8bbb ldrh r3, [r7, #28]
  7922. 8003b04: 461a mov r2, r3
  7923. 8003b06: 2100 movs r1, #0
  7924. 8003b08: 6878 ldr r0, [r7, #4]
  7925. 8003b0a: f014 fbfd bl 8018308 <memset>
  7926. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  7927. 8003b0e: 89fb ldrh r3, [r7, #14]
  7928. 8003b10: 1c5a adds r2, r3, #1
  7929. 8003b12: 81fa strh r2, [r7, #14]
  7930. 8003b14: 461a mov r2, r3
  7931. 8003b16: 687b ldr r3, [r7, #4]
  7932. 8003b18: 4413 add r3, r2
  7933. 8003b1a: 22aa movs r2, #170 @ 0xaa
  7934. 8003b1c: 701a strb r2, [r3, #0]
  7935. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  7936. 8003b1e: 89fb ldrh r3, [r7, #14]
  7937. 8003b20: 1c5a adds r2, r3, #1
  7938. 8003b22: 81fa strh r2, [r7, #14]
  7939. 8003b24: 461a mov r2, r3
  7940. 8003b26: 687b ldr r3, [r7, #4]
  7941. 8003b28: 4413 add r3, r2
  7942. 8003b2a: 887a ldrh r2, [r7, #2]
  7943. 8003b2c: b2d2 uxtb r2, r2
  7944. 8003b2e: 701a strb r2, [r3, #0]
  7945. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  7946. 8003b30: 887b ldrh r3, [r7, #2]
  7947. 8003b32: 0a1b lsrs r3, r3, #8
  7948. 8003b34: b29a uxth r2, r3
  7949. 8003b36: 89fb ldrh r3, [r7, #14]
  7950. 8003b38: 1c59 adds r1, r3, #1
  7951. 8003b3a: 81f9 strh r1, [r7, #14]
  7952. 8003b3c: 4619 mov r1, r3
  7953. 8003b3e: 687b ldr r3, [r7, #4]
  7954. 8003b40: 440b add r3, r1
  7955. 8003b42: b2d2 uxtb r2, r2
  7956. 8003b44: 701a strb r2, [r3, #0]
  7957. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  7958. 8003b46: 89fb ldrh r3, [r7, #14]
  7959. 8003b48: 1c5a adds r2, r3, #1
  7960. 8003b4a: 81fa strh r2, [r7, #14]
  7961. 8003b4c: 461a mov r2, r3
  7962. 8003b4e: 687b ldr r3, [r7, #4]
  7963. 8003b50: 4413 add r3, r2
  7964. 8003b52: 897a ldrh r2, [r7, #10]
  7965. 8003b54: b2d2 uxtb r2, r2
  7966. 8003b56: 701a strb r2, [r3, #0]
  7967. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  7968. 8003b58: 897b ldrh r3, [r7, #10]
  7969. 8003b5a: 0a1b lsrs r3, r3, #8
  7970. 8003b5c: b29a uxth r2, r3
  7971. 8003b5e: 89fb ldrh r3, [r7, #14]
  7972. 8003b60: 1c59 adds r1, r3, #1
  7973. 8003b62: 81f9 strh r1, [r7, #14]
  7974. 8003b64: 4619 mov r1, r3
  7975. 8003b66: 687b ldr r3, [r7, #4]
  7976. 8003b68: 440b add r3, r1
  7977. 8003b6a: b2d2 uxtb r2, r2
  7978. 8003b6c: 701a strb r2, [r3, #0]
  7979. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  7980. 8003b6e: 89fb ldrh r3, [r7, #14]
  7981. 8003b70: 1c5a adds r2, r3, #1
  7982. 8003b72: 81fa strh r2, [r7, #14]
  7983. 8003b74: 461a mov r2, r3
  7984. 8003b76: 687b ldr r3, [r7, #4]
  7985. 8003b78: 4413 add r3, r2
  7986. 8003b7a: 8bba ldrh r2, [r7, #28]
  7987. 8003b7c: b2d2 uxtb r2, r2
  7988. 8003b7e: 701a strb r2, [r3, #0]
  7989. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  7990. 8003b80: 8bbb ldrh r3, [r7, #28]
  7991. 8003b82: 0a1b lsrs r3, r3, #8
  7992. 8003b84: b29a uxth r2, r3
  7993. 8003b86: 89fb ldrh r3, [r7, #14]
  7994. 8003b88: 1c59 adds r1, r3, #1
  7995. 8003b8a: 81f9 strh r1, [r7, #14]
  7996. 8003b8c: 4619 mov r1, r3
  7997. 8003b8e: 687b ldr r3, [r7, #4]
  7998. 8003b90: 440b add r3, r1
  7999. 8003b92: b2d2 uxtb r2, r2
  8000. 8003b94: 701a strb r2, [r3, #0]
  8001. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  8002. 8003b96: 89fb ldrh r3, [r7, #14]
  8003. 8003b98: 1c5a adds r2, r3, #1
  8004. 8003b9a: 81fa strh r2, [r7, #14]
  8005. 8003b9c: 461a mov r2, r3
  8006. 8003b9e: 687b ldr r3, [r7, #4]
  8007. 8003ba0: 4413 add r3, r2
  8008. 8003ba2: 783a ldrb r2, [r7, #0]
  8009. 8003ba4: 701a strb r2, [r3, #0]
  8010. if (dataLength > 0) {
  8011. 8003ba6: 8bbb ldrh r3, [r7, #28]
  8012. 8003ba8: 2b00 cmp r3, #0
  8013. 8003baa: d00b beq.n 8003bc4 <PrepareRespFrame+0xf0>
  8014. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  8015. 8003bac: 89fb ldrh r3, [r7, #14]
  8016. 8003bae: 687a ldr r2, [r7, #4]
  8017. 8003bb0: 4413 add r3, r2
  8018. 8003bb2: 8bba ldrh r2, [r7, #28]
  8019. 8003bb4: 69b9 ldr r1, [r7, #24]
  8020. 8003bb6: 4618 mov r0, r3
  8021. 8003bb8: f014 fc30 bl 801841c <memcpy>
  8022. txBufferPos += dataLength;
  8023. 8003bbc: 89fa ldrh r2, [r7, #14]
  8024. 8003bbe: 8bbb ldrh r3, [r7, #28]
  8025. 8003bc0: 4413 add r3, r2
  8026. 8003bc2: 81fb strh r3, [r7, #14]
  8027. }
  8028. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  8029. 8003bc4: 89fb ldrh r3, [r7, #14]
  8030. 8003bc6: 461a mov r2, r3
  8031. 8003bc8: 6879 ldr r1, [r7, #4]
  8032. 8003bca: 4810 ldr r0, [pc, #64] @ (8003c0c <PrepareRespFrame+0x138>)
  8033. 8003bcc: f004 f8d0 bl 8007d70 <HAL_CRC_Calculate>
  8034. 8003bd0: 4603 mov r3, r0
  8035. 8003bd2: 81bb strh r3, [r7, #12]
  8036. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  8037. 8003bd4: 89fb ldrh r3, [r7, #14]
  8038. 8003bd6: 1c5a adds r2, r3, #1
  8039. 8003bd8: 81fa strh r2, [r7, #14]
  8040. 8003bda: 461a mov r2, r3
  8041. 8003bdc: 687b ldr r3, [r7, #4]
  8042. 8003bde: 4413 add r3, r2
  8043. 8003be0: 89ba ldrh r2, [r7, #12]
  8044. 8003be2: b2d2 uxtb r2, r2
  8045. 8003be4: 701a strb r2, [r3, #0]
  8046. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  8047. 8003be6: 89bb ldrh r3, [r7, #12]
  8048. 8003be8: 0a1b lsrs r3, r3, #8
  8049. 8003bea: b29a uxth r2, r3
  8050. 8003bec: 89fb ldrh r3, [r7, #14]
  8051. 8003bee: 1c59 adds r1, r3, #1
  8052. 8003bf0: 81f9 strh r1, [r7, #14]
  8053. 8003bf2: 4619 mov r1, r3
  8054. 8003bf4: 687b ldr r3, [r7, #4]
  8055. 8003bf6: 440b add r3, r1
  8056. 8003bf8: b2d2 uxtb r2, r2
  8057. 8003bfa: 701a strb r2, [r3, #0]
  8058. return txBufferPos;
  8059. 8003bfc: 89fb ldrh r3, [r7, #14]
  8060. }
  8061. 8003bfe: 4618 mov r0, r3
  8062. 8003c00: 3710 adds r7, #16
  8063. 8003c02: 46bd mov sp, r7
  8064. 8003c04: bd80 pop {r7, pc}
  8065. 8003c06: bf00 nop
  8066. 8003c08: ffff8000 .word 0xffff8000
  8067. 8003c0c: 240003e0 .word 0x240003e0
  8068. 08003c10 <HAL_MspInit>:
  8069. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  8070. /**
  8071. * Initializes the Global MSP.
  8072. */
  8073. void HAL_MspInit(void)
  8074. {
  8075. 8003c10: b580 push {r7, lr}
  8076. 8003c12: b086 sub sp, #24
  8077. 8003c14: af00 add r7, sp, #0
  8078. /* USER CODE BEGIN MspInit 0 */
  8079. /* USER CODE END MspInit 0 */
  8080. PWREx_AVDTypeDef sConfigAVD = {0};
  8081. 8003c16: f107 0310 add.w r3, r7, #16
  8082. 8003c1a: 2200 movs r2, #0
  8083. 8003c1c: 601a str r2, [r3, #0]
  8084. 8003c1e: 605a str r2, [r3, #4]
  8085. PWR_PVDTypeDef sConfigPVD = {0};
  8086. 8003c20: f107 0308 add.w r3, r7, #8
  8087. 8003c24: 2200 movs r2, #0
  8088. 8003c26: 601a str r2, [r3, #0]
  8089. 8003c28: 605a str r2, [r3, #4]
  8090. __HAL_RCC_SYSCFG_CLK_ENABLE();
  8091. 8003c2a: 4b26 ldr r3, [pc, #152] @ (8003cc4 <HAL_MspInit+0xb4>)
  8092. 8003c2c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8093. 8003c30: 4a24 ldr r2, [pc, #144] @ (8003cc4 <HAL_MspInit+0xb4>)
  8094. 8003c32: f043 0302 orr.w r3, r3, #2
  8095. 8003c36: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8096. 8003c3a: 4b22 ldr r3, [pc, #136] @ (8003cc4 <HAL_MspInit+0xb4>)
  8097. 8003c3c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8098. 8003c40: f003 0302 and.w r3, r3, #2
  8099. 8003c44: 607b str r3, [r7, #4]
  8100. 8003c46: 687b ldr r3, [r7, #4]
  8101. /* System interrupt init*/
  8102. /* PendSV_IRQn interrupt configuration */
  8103. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  8104. 8003c48: 2200 movs r2, #0
  8105. 8003c4a: 210f movs r1, #15
  8106. 8003c4c: f06f 0001 mvn.w r0, #1
  8107. 8003c50: f003 ff8a bl 8007b68 <HAL_NVIC_SetPriority>
  8108. /* Peripheral interrupt init */
  8109. /* RCC_IRQn interrupt configuration */
  8110. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  8111. 8003c54: 2200 movs r2, #0
  8112. 8003c56: 2105 movs r1, #5
  8113. 8003c58: 2005 movs r0, #5
  8114. 8003c5a: f003 ff85 bl 8007b68 <HAL_NVIC_SetPriority>
  8115. HAL_NVIC_EnableIRQ(RCC_IRQn);
  8116. 8003c5e: 2005 movs r0, #5
  8117. 8003c60: f003 ff9c bl 8007b9c <HAL_NVIC_EnableIRQ>
  8118. /** AVD Configuration
  8119. */
  8120. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  8121. 8003c64: f44f 23c0 mov.w r3, #393216 @ 0x60000
  8122. 8003c68: 613b str r3, [r7, #16]
  8123. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  8124. 8003c6a: 2300 movs r3, #0
  8125. 8003c6c: 617b str r3, [r7, #20]
  8126. HAL_PWREx_ConfigAVD(&sConfigAVD);
  8127. 8003c6e: f107 0310 add.w r3, r7, #16
  8128. 8003c72: 4618 mov r0, r3
  8129. 8003c74: f007 fde2 bl 800b83c <HAL_PWREx_ConfigAVD>
  8130. /** Enable the AVD Output
  8131. */
  8132. HAL_PWREx_EnableAVD();
  8133. 8003c78: f007 fe56 bl 800b928 <HAL_PWREx_EnableAVD>
  8134. /** PVD Configuration
  8135. */
  8136. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  8137. 8003c7c: 23c0 movs r3, #192 @ 0xc0
  8138. 8003c7e: 60bb str r3, [r7, #8]
  8139. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  8140. 8003c80: 2300 movs r3, #0
  8141. 8003c82: 60fb str r3, [r7, #12]
  8142. HAL_PWR_ConfigPVD(&sConfigPVD);
  8143. 8003c84: f107 0308 add.w r3, r7, #8
  8144. 8003c88: 4618 mov r0, r3
  8145. 8003c8a: f007 fd13 bl 800b6b4 <HAL_PWR_ConfigPVD>
  8146. /** Enable the PVD Output
  8147. */
  8148. HAL_PWR_EnablePVD();
  8149. 8003c8e: f007 fd8b bl 800b7a8 <HAL_PWR_EnablePVD>
  8150. /** Enable the VREF clock
  8151. */
  8152. __HAL_RCC_VREF_CLK_ENABLE();
  8153. 8003c92: 4b0c ldr r3, [pc, #48] @ (8003cc4 <HAL_MspInit+0xb4>)
  8154. 8003c94: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8155. 8003c98: 4a0a ldr r2, [pc, #40] @ (8003cc4 <HAL_MspInit+0xb4>)
  8156. 8003c9a: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  8157. 8003c9e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8158. 8003ca2: 4b08 ldr r3, [pc, #32] @ (8003cc4 <HAL_MspInit+0xb4>)
  8159. 8003ca4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8160. 8003ca8: f403 4300 and.w r3, r3, #32768 @ 0x8000
  8161. 8003cac: 603b str r3, [r7, #0]
  8162. 8003cae: 683b ldr r3, [r7, #0]
  8163. /** Disable the Internal Voltage Reference buffer
  8164. */
  8165. HAL_SYSCFG_DisableVREFBUF();
  8166. 8003cb0: f002 f8e0 bl 8005e74 <HAL_SYSCFG_DisableVREFBUF>
  8167. /** Configure the internal voltage reference buffer high impedance mode
  8168. */
  8169. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  8170. 8003cb4: 2002 movs r0, #2
  8171. 8003cb6: f002 f8c9 bl 8005e4c <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  8172. /* USER CODE BEGIN MspInit 1 */
  8173. /* USER CODE END MspInit 1 */
  8174. }
  8175. 8003cba: bf00 nop
  8176. 8003cbc: 3718 adds r7, #24
  8177. 8003cbe: 46bd mov sp, r7
  8178. 8003cc0: bd80 pop {r7, pc}
  8179. 8003cc2: bf00 nop
  8180. 8003cc4: 58024400 .word 0x58024400
  8181. 08003cc8 <HAL_ADC_MspInit>:
  8182. * This function configures the hardware resources used in this example
  8183. * @param hadc: ADC handle pointer
  8184. * @retval None
  8185. */
  8186. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  8187. {
  8188. 8003cc8: b580 push {r7, lr}
  8189. 8003cca: b092 sub sp, #72 @ 0x48
  8190. 8003ccc: af00 add r7, sp, #0
  8191. 8003cce: 6078 str r0, [r7, #4]
  8192. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8193. 8003cd0: f107 0334 add.w r3, r7, #52 @ 0x34
  8194. 8003cd4: 2200 movs r2, #0
  8195. 8003cd6: 601a str r2, [r3, #0]
  8196. 8003cd8: 605a str r2, [r3, #4]
  8197. 8003cda: 609a str r2, [r3, #8]
  8198. 8003cdc: 60da str r2, [r3, #12]
  8199. 8003cde: 611a str r2, [r3, #16]
  8200. if(hadc->Instance==ADC1)
  8201. 8003ce0: 687b ldr r3, [r7, #4]
  8202. 8003ce2: 681b ldr r3, [r3, #0]
  8203. 8003ce4: 4a9d ldr r2, [pc, #628] @ (8003f5c <HAL_ADC_MspInit+0x294>)
  8204. 8003ce6: 4293 cmp r3, r2
  8205. 8003ce8: f040 8099 bne.w 8003e1e <HAL_ADC_MspInit+0x156>
  8206. {
  8207. /* USER CODE BEGIN ADC1_MspInit 0 */
  8208. /* USER CODE END ADC1_MspInit 0 */
  8209. /* Peripheral clock enable */
  8210. HAL_RCC_ADC12_CLK_ENABLED++;
  8211. 8003cec: 4b9c ldr r3, [pc, #624] @ (8003f60 <HAL_ADC_MspInit+0x298>)
  8212. 8003cee: 681b ldr r3, [r3, #0]
  8213. 8003cf0: 3301 adds r3, #1
  8214. 8003cf2: 4a9b ldr r2, [pc, #620] @ (8003f60 <HAL_ADC_MspInit+0x298>)
  8215. 8003cf4: 6013 str r3, [r2, #0]
  8216. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8217. 8003cf6: 4b9a ldr r3, [pc, #616] @ (8003f60 <HAL_ADC_MspInit+0x298>)
  8218. 8003cf8: 681b ldr r3, [r3, #0]
  8219. 8003cfa: 2b01 cmp r3, #1
  8220. 8003cfc: d10e bne.n 8003d1c <HAL_ADC_MspInit+0x54>
  8221. __HAL_RCC_ADC12_CLK_ENABLE();
  8222. 8003cfe: 4b99 ldr r3, [pc, #612] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8223. 8003d00: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8224. 8003d04: 4a97 ldr r2, [pc, #604] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8225. 8003d06: f043 0320 orr.w r3, r3, #32
  8226. 8003d0a: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8227. 8003d0e: 4b95 ldr r3, [pc, #596] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8228. 8003d10: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8229. 8003d14: f003 0320 and.w r3, r3, #32
  8230. 8003d18: 633b str r3, [r7, #48] @ 0x30
  8231. 8003d1a: 6b3b ldr r3, [r7, #48] @ 0x30
  8232. }
  8233. __HAL_RCC_GPIOA_CLK_ENABLE();
  8234. 8003d1c: 4b91 ldr r3, [pc, #580] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8235. 8003d1e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8236. 8003d22: 4a90 ldr r2, [pc, #576] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8237. 8003d24: f043 0301 orr.w r3, r3, #1
  8238. 8003d28: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8239. 8003d2c: 4b8d ldr r3, [pc, #564] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8240. 8003d2e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8241. 8003d32: f003 0301 and.w r3, r3, #1
  8242. 8003d36: 62fb str r3, [r7, #44] @ 0x2c
  8243. 8003d38: 6afb ldr r3, [r7, #44] @ 0x2c
  8244. __HAL_RCC_GPIOC_CLK_ENABLE();
  8245. 8003d3a: 4b8a ldr r3, [pc, #552] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8246. 8003d3c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8247. 8003d40: 4a88 ldr r2, [pc, #544] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8248. 8003d42: f043 0304 orr.w r3, r3, #4
  8249. 8003d46: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8250. 8003d4a: 4b86 ldr r3, [pc, #536] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8251. 8003d4c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8252. 8003d50: f003 0304 and.w r3, r3, #4
  8253. 8003d54: 62bb str r3, [r7, #40] @ 0x28
  8254. 8003d56: 6abb ldr r3, [r7, #40] @ 0x28
  8255. __HAL_RCC_GPIOB_CLK_ENABLE();
  8256. 8003d58: 4b82 ldr r3, [pc, #520] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8257. 8003d5a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8258. 8003d5e: 4a81 ldr r2, [pc, #516] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8259. 8003d60: f043 0302 orr.w r3, r3, #2
  8260. 8003d64: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8261. 8003d68: 4b7e ldr r3, [pc, #504] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8262. 8003d6a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8263. 8003d6e: f003 0302 and.w r3, r3, #2
  8264. 8003d72: 627b str r3, [r7, #36] @ 0x24
  8265. 8003d74: 6a7b ldr r3, [r7, #36] @ 0x24
  8266. PA3 ------> ADC1_INP15
  8267. PA7 ------> ADC1_INP7
  8268. PC5 ------> ADC1_INP8
  8269. PB0 ------> ADC1_INP9
  8270. */
  8271. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  8272. 8003d76: 238f movs r3, #143 @ 0x8f
  8273. 8003d78: 637b str r3, [r7, #52] @ 0x34
  8274. |GPIO_PIN_7;
  8275. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8276. 8003d7a: 2303 movs r3, #3
  8277. 8003d7c: 63bb str r3, [r7, #56] @ 0x38
  8278. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8279. 8003d7e: 2300 movs r3, #0
  8280. 8003d80: 63fb str r3, [r7, #60] @ 0x3c
  8281. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8282. 8003d82: f107 0334 add.w r3, r7, #52 @ 0x34
  8283. 8003d86: 4619 mov r1, r3
  8284. 8003d88: 4877 ldr r0, [pc, #476] @ (8003f68 <HAL_ADC_MspInit+0x2a0>)
  8285. 8003d8a: f007 fa1f bl 800b1cc <HAL_GPIO_Init>
  8286. GPIO_InitStruct.Pin = GPIO_PIN_5;
  8287. 8003d8e: 2320 movs r3, #32
  8288. 8003d90: 637b str r3, [r7, #52] @ 0x34
  8289. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8290. 8003d92: 2303 movs r3, #3
  8291. 8003d94: 63bb str r3, [r7, #56] @ 0x38
  8292. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8293. 8003d96: 2300 movs r3, #0
  8294. 8003d98: 63fb str r3, [r7, #60] @ 0x3c
  8295. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8296. 8003d9a: f107 0334 add.w r3, r7, #52 @ 0x34
  8297. 8003d9e: 4619 mov r1, r3
  8298. 8003da0: 4872 ldr r0, [pc, #456] @ (8003f6c <HAL_ADC_MspInit+0x2a4>)
  8299. 8003da2: f007 fa13 bl 800b1cc <HAL_GPIO_Init>
  8300. GPIO_InitStruct.Pin = GPIO_PIN_0;
  8301. 8003da6: 2301 movs r3, #1
  8302. 8003da8: 637b str r3, [r7, #52] @ 0x34
  8303. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8304. 8003daa: 2303 movs r3, #3
  8305. 8003dac: 63bb str r3, [r7, #56] @ 0x38
  8306. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8307. 8003dae: 2300 movs r3, #0
  8308. 8003db0: 63fb str r3, [r7, #60] @ 0x3c
  8309. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8310. 8003db2: f107 0334 add.w r3, r7, #52 @ 0x34
  8311. 8003db6: 4619 mov r1, r3
  8312. 8003db8: 486d ldr r0, [pc, #436] @ (8003f70 <HAL_ADC_MspInit+0x2a8>)
  8313. 8003dba: f007 fa07 bl 800b1cc <HAL_GPIO_Init>
  8314. /* ADC1 DMA Init */
  8315. /* ADC1 Init */
  8316. hdma_adc1.Instance = DMA1_Stream0;
  8317. 8003dbe: 4b6d ldr r3, [pc, #436] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8318. 8003dc0: 4a6d ldr r2, [pc, #436] @ (8003f78 <HAL_ADC_MspInit+0x2b0>)
  8319. 8003dc2: 601a str r2, [r3, #0]
  8320. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  8321. 8003dc4: 4b6b ldr r3, [pc, #428] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8322. 8003dc6: 2209 movs r2, #9
  8323. 8003dc8: 605a str r2, [r3, #4]
  8324. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8325. 8003dca: 4b6a ldr r3, [pc, #424] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8326. 8003dcc: 2200 movs r2, #0
  8327. 8003dce: 609a str r2, [r3, #8]
  8328. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  8329. 8003dd0: 4b68 ldr r3, [pc, #416] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8330. 8003dd2: 2200 movs r2, #0
  8331. 8003dd4: 60da str r2, [r3, #12]
  8332. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  8333. 8003dd6: 4b67 ldr r3, [pc, #412] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8334. 8003dd8: f44f 6280 mov.w r2, #1024 @ 0x400
  8335. 8003ddc: 611a str r2, [r3, #16]
  8336. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8337. 8003dde: 4b65 ldr r3, [pc, #404] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8338. 8003de0: f44f 6200 mov.w r2, #2048 @ 0x800
  8339. 8003de4: 615a str r2, [r3, #20]
  8340. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8341. 8003de6: 4b63 ldr r3, [pc, #396] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8342. 8003de8: f44f 5200 mov.w r2, #8192 @ 0x2000
  8343. 8003dec: 619a str r2, [r3, #24]
  8344. hdma_adc1.Init.Mode = DMA_NORMAL;
  8345. 8003dee: 4b61 ldr r3, [pc, #388] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8346. 8003df0: 2200 movs r2, #0
  8347. 8003df2: 61da str r2, [r3, #28]
  8348. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  8349. 8003df4: 4b5f ldr r3, [pc, #380] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8350. 8003df6: 2200 movs r2, #0
  8351. 8003df8: 621a str r2, [r3, #32]
  8352. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8353. 8003dfa: 4b5e ldr r3, [pc, #376] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8354. 8003dfc: 2200 movs r2, #0
  8355. 8003dfe: 625a str r2, [r3, #36] @ 0x24
  8356. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  8357. 8003e00: 485c ldr r0, [pc, #368] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8358. 8003e02: f004 fba7 bl 8008554 <HAL_DMA_Init>
  8359. 8003e06: 4603 mov r3, r0
  8360. 8003e08: 2b00 cmp r3, #0
  8361. 8003e0a: d001 beq.n 8003e10 <HAL_ADC_MspInit+0x148>
  8362. {
  8363. Error_Handler();
  8364. 8003e0c: f7fe f85e bl 8001ecc <Error_Handler>
  8365. }
  8366. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  8367. 8003e10: 687b ldr r3, [r7, #4]
  8368. 8003e12: 4a58 ldr r2, [pc, #352] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8369. 8003e14: 64da str r2, [r3, #76] @ 0x4c
  8370. 8003e16: 4a57 ldr r2, [pc, #348] @ (8003f74 <HAL_ADC_MspInit+0x2ac>)
  8371. 8003e18: 687b ldr r3, [r7, #4]
  8372. 8003e1a: 6393 str r3, [r2, #56] @ 0x38
  8373. /* USER CODE BEGIN ADC3_MspInit 1 */
  8374. /* USER CODE END ADC3_MspInit 1 */
  8375. }
  8376. }
  8377. 8003e1c: e11e b.n 800405c <HAL_ADC_MspInit+0x394>
  8378. else if(hadc->Instance==ADC2)
  8379. 8003e1e: 687b ldr r3, [r7, #4]
  8380. 8003e20: 681b ldr r3, [r3, #0]
  8381. 8003e22: 4a56 ldr r2, [pc, #344] @ (8003f7c <HAL_ADC_MspInit+0x2b4>)
  8382. 8003e24: 4293 cmp r3, r2
  8383. 8003e26: f040 80af bne.w 8003f88 <HAL_ADC_MspInit+0x2c0>
  8384. HAL_RCC_ADC12_CLK_ENABLED++;
  8385. 8003e2a: 4b4d ldr r3, [pc, #308] @ (8003f60 <HAL_ADC_MspInit+0x298>)
  8386. 8003e2c: 681b ldr r3, [r3, #0]
  8387. 8003e2e: 3301 adds r3, #1
  8388. 8003e30: 4a4b ldr r2, [pc, #300] @ (8003f60 <HAL_ADC_MspInit+0x298>)
  8389. 8003e32: 6013 str r3, [r2, #0]
  8390. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8391. 8003e34: 4b4a ldr r3, [pc, #296] @ (8003f60 <HAL_ADC_MspInit+0x298>)
  8392. 8003e36: 681b ldr r3, [r3, #0]
  8393. 8003e38: 2b01 cmp r3, #1
  8394. 8003e3a: d10e bne.n 8003e5a <HAL_ADC_MspInit+0x192>
  8395. __HAL_RCC_ADC12_CLK_ENABLE();
  8396. 8003e3c: 4b49 ldr r3, [pc, #292] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8397. 8003e3e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8398. 8003e42: 4a48 ldr r2, [pc, #288] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8399. 8003e44: f043 0320 orr.w r3, r3, #32
  8400. 8003e48: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8401. 8003e4c: 4b45 ldr r3, [pc, #276] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8402. 8003e4e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8403. 8003e52: f003 0320 and.w r3, r3, #32
  8404. 8003e56: 623b str r3, [r7, #32]
  8405. 8003e58: 6a3b ldr r3, [r7, #32]
  8406. __HAL_RCC_GPIOA_CLK_ENABLE();
  8407. 8003e5a: 4b42 ldr r3, [pc, #264] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8408. 8003e5c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8409. 8003e60: 4a40 ldr r2, [pc, #256] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8410. 8003e62: f043 0301 orr.w r3, r3, #1
  8411. 8003e66: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8412. 8003e6a: 4b3e ldr r3, [pc, #248] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8413. 8003e6c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8414. 8003e70: f003 0301 and.w r3, r3, #1
  8415. 8003e74: 61fb str r3, [r7, #28]
  8416. 8003e76: 69fb ldr r3, [r7, #28]
  8417. __HAL_RCC_GPIOC_CLK_ENABLE();
  8418. 8003e78: 4b3a ldr r3, [pc, #232] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8419. 8003e7a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8420. 8003e7e: 4a39 ldr r2, [pc, #228] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8421. 8003e80: f043 0304 orr.w r3, r3, #4
  8422. 8003e84: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8423. 8003e88: 4b36 ldr r3, [pc, #216] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8424. 8003e8a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8425. 8003e8e: f003 0304 and.w r3, r3, #4
  8426. 8003e92: 61bb str r3, [r7, #24]
  8427. 8003e94: 69bb ldr r3, [r7, #24]
  8428. __HAL_RCC_GPIOB_CLK_ENABLE();
  8429. 8003e96: 4b33 ldr r3, [pc, #204] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8430. 8003e98: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8431. 8003e9c: 4a31 ldr r2, [pc, #196] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8432. 8003e9e: f043 0302 orr.w r3, r3, #2
  8433. 8003ea2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8434. 8003ea6: 4b2f ldr r3, [pc, #188] @ (8003f64 <HAL_ADC_MspInit+0x29c>)
  8435. 8003ea8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8436. 8003eac: f003 0302 and.w r3, r3, #2
  8437. 8003eb0: 617b str r3, [r7, #20]
  8438. 8003eb2: 697b ldr r3, [r7, #20]
  8439. GPIO_InitStruct.Pin = GPIO_PIN_6;
  8440. 8003eb4: 2340 movs r3, #64 @ 0x40
  8441. 8003eb6: 637b str r3, [r7, #52] @ 0x34
  8442. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8443. 8003eb8: 2303 movs r3, #3
  8444. 8003eba: 63bb str r3, [r7, #56] @ 0x38
  8445. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8446. 8003ebc: 2300 movs r3, #0
  8447. 8003ebe: 63fb str r3, [r7, #60] @ 0x3c
  8448. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8449. 8003ec0: f107 0334 add.w r3, r7, #52 @ 0x34
  8450. 8003ec4: 4619 mov r1, r3
  8451. 8003ec6: 4828 ldr r0, [pc, #160] @ (8003f68 <HAL_ADC_MspInit+0x2a0>)
  8452. 8003ec8: f007 f980 bl 800b1cc <HAL_GPIO_Init>
  8453. GPIO_InitStruct.Pin = GPIO_PIN_4;
  8454. 8003ecc: 2310 movs r3, #16
  8455. 8003ece: 637b str r3, [r7, #52] @ 0x34
  8456. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8457. 8003ed0: 2303 movs r3, #3
  8458. 8003ed2: 63bb str r3, [r7, #56] @ 0x38
  8459. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8460. 8003ed4: 2300 movs r3, #0
  8461. 8003ed6: 63fb str r3, [r7, #60] @ 0x3c
  8462. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8463. 8003ed8: f107 0334 add.w r3, r7, #52 @ 0x34
  8464. 8003edc: 4619 mov r1, r3
  8465. 8003ede: 4823 ldr r0, [pc, #140] @ (8003f6c <HAL_ADC_MspInit+0x2a4>)
  8466. 8003ee0: f007 f974 bl 800b1cc <HAL_GPIO_Init>
  8467. GPIO_InitStruct.Pin = GPIO_PIN_1;
  8468. 8003ee4: 2302 movs r3, #2
  8469. 8003ee6: 637b str r3, [r7, #52] @ 0x34
  8470. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8471. 8003ee8: 2303 movs r3, #3
  8472. 8003eea: 63bb str r3, [r7, #56] @ 0x38
  8473. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8474. 8003eec: 2300 movs r3, #0
  8475. 8003eee: 63fb str r3, [r7, #60] @ 0x3c
  8476. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8477. 8003ef0: f107 0334 add.w r3, r7, #52 @ 0x34
  8478. 8003ef4: 4619 mov r1, r3
  8479. 8003ef6: 481e ldr r0, [pc, #120] @ (8003f70 <HAL_ADC_MspInit+0x2a8>)
  8480. 8003ef8: f007 f968 bl 800b1cc <HAL_GPIO_Init>
  8481. hdma_adc2.Instance = DMA1_Stream1;
  8482. 8003efc: 4b20 ldr r3, [pc, #128] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8483. 8003efe: 4a21 ldr r2, [pc, #132] @ (8003f84 <HAL_ADC_MspInit+0x2bc>)
  8484. 8003f00: 601a str r2, [r3, #0]
  8485. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  8486. 8003f02: 4b1f ldr r3, [pc, #124] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8487. 8003f04: 220a movs r2, #10
  8488. 8003f06: 605a str r2, [r3, #4]
  8489. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8490. 8003f08: 4b1d ldr r3, [pc, #116] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8491. 8003f0a: 2200 movs r2, #0
  8492. 8003f0c: 609a str r2, [r3, #8]
  8493. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  8494. 8003f0e: 4b1c ldr r3, [pc, #112] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8495. 8003f10: 2200 movs r2, #0
  8496. 8003f12: 60da str r2, [r3, #12]
  8497. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  8498. 8003f14: 4b1a ldr r3, [pc, #104] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8499. 8003f16: f44f 6280 mov.w r2, #1024 @ 0x400
  8500. 8003f1a: 611a str r2, [r3, #16]
  8501. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8502. 8003f1c: 4b18 ldr r3, [pc, #96] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8503. 8003f1e: f44f 6200 mov.w r2, #2048 @ 0x800
  8504. 8003f22: 615a str r2, [r3, #20]
  8505. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8506. 8003f24: 4b16 ldr r3, [pc, #88] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8507. 8003f26: f44f 5200 mov.w r2, #8192 @ 0x2000
  8508. 8003f2a: 619a str r2, [r3, #24]
  8509. hdma_adc2.Init.Mode = DMA_NORMAL;
  8510. 8003f2c: 4b14 ldr r3, [pc, #80] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8511. 8003f2e: 2200 movs r2, #0
  8512. 8003f30: 61da str r2, [r3, #28]
  8513. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  8514. 8003f32: 4b13 ldr r3, [pc, #76] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8515. 8003f34: 2200 movs r2, #0
  8516. 8003f36: 621a str r2, [r3, #32]
  8517. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8518. 8003f38: 4b11 ldr r3, [pc, #68] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8519. 8003f3a: 2200 movs r2, #0
  8520. 8003f3c: 625a str r2, [r3, #36] @ 0x24
  8521. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  8522. 8003f3e: 4810 ldr r0, [pc, #64] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8523. 8003f40: f004 fb08 bl 8008554 <HAL_DMA_Init>
  8524. 8003f44: 4603 mov r3, r0
  8525. 8003f46: 2b00 cmp r3, #0
  8526. 8003f48: d001 beq.n 8003f4e <HAL_ADC_MspInit+0x286>
  8527. Error_Handler();
  8528. 8003f4a: f7fd ffbf bl 8001ecc <Error_Handler>
  8529. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  8530. 8003f4e: 687b ldr r3, [r7, #4]
  8531. 8003f50: 4a0b ldr r2, [pc, #44] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8532. 8003f52: 64da str r2, [r3, #76] @ 0x4c
  8533. 8003f54: 4a0a ldr r2, [pc, #40] @ (8003f80 <HAL_ADC_MspInit+0x2b8>)
  8534. 8003f56: 687b ldr r3, [r7, #4]
  8535. 8003f58: 6393 str r3, [r2, #56] @ 0x38
  8536. }
  8537. 8003f5a: e07f b.n 800405c <HAL_ADC_MspInit+0x394>
  8538. 8003f5c: 40022000 .word 0x40022000
  8539. 8003f60: 2400091c .word 0x2400091c
  8540. 8003f64: 58024400 .word 0x58024400
  8541. 8003f68: 58020000 .word 0x58020000
  8542. 8003f6c: 58020800 .word 0x58020800
  8543. 8003f70: 58020400 .word 0x58020400
  8544. 8003f74: 2400024c .word 0x2400024c
  8545. 8003f78: 40020010 .word 0x40020010
  8546. 8003f7c: 40022100 .word 0x40022100
  8547. 8003f80: 240002c4 .word 0x240002c4
  8548. 8003f84: 40020028 .word 0x40020028
  8549. else if(hadc->Instance==ADC3)
  8550. 8003f88: 687b ldr r3, [r7, #4]
  8551. 8003f8a: 681b ldr r3, [r3, #0]
  8552. 8003f8c: 4a35 ldr r2, [pc, #212] @ (8004064 <HAL_ADC_MspInit+0x39c>)
  8553. 8003f8e: 4293 cmp r3, r2
  8554. 8003f90: d164 bne.n 800405c <HAL_ADC_MspInit+0x394>
  8555. __HAL_RCC_ADC3_CLK_ENABLE();
  8556. 8003f92: 4b35 ldr r3, [pc, #212] @ (8004068 <HAL_ADC_MspInit+0x3a0>)
  8557. 8003f94: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8558. 8003f98: 4a33 ldr r2, [pc, #204] @ (8004068 <HAL_ADC_MspInit+0x3a0>)
  8559. 8003f9a: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  8560. 8003f9e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8561. 8003fa2: 4b31 ldr r3, [pc, #196] @ (8004068 <HAL_ADC_MspInit+0x3a0>)
  8562. 8003fa4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8563. 8003fa8: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  8564. 8003fac: 613b str r3, [r7, #16]
  8565. 8003fae: 693b ldr r3, [r7, #16]
  8566. __HAL_RCC_GPIOC_CLK_ENABLE();
  8567. 8003fb0: 4b2d ldr r3, [pc, #180] @ (8004068 <HAL_ADC_MspInit+0x3a0>)
  8568. 8003fb2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8569. 8003fb6: 4a2c ldr r2, [pc, #176] @ (8004068 <HAL_ADC_MspInit+0x3a0>)
  8570. 8003fb8: f043 0304 orr.w r3, r3, #4
  8571. 8003fbc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8572. 8003fc0: 4b29 ldr r3, [pc, #164] @ (8004068 <HAL_ADC_MspInit+0x3a0>)
  8573. 8003fc2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8574. 8003fc6: f003 0304 and.w r3, r3, #4
  8575. 8003fca: 60fb str r3, [r7, #12]
  8576. 8003fcc: 68fb ldr r3, [r7, #12]
  8577. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8578. 8003fce: 2303 movs r3, #3
  8579. 8003fd0: 637b str r3, [r7, #52] @ 0x34
  8580. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8581. 8003fd2: 2303 movs r3, #3
  8582. 8003fd4: 63bb str r3, [r7, #56] @ 0x38
  8583. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8584. 8003fd6: 2300 movs r3, #0
  8585. 8003fd8: 63fb str r3, [r7, #60] @ 0x3c
  8586. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8587. 8003fda: f107 0334 add.w r3, r7, #52 @ 0x34
  8588. 8003fde: 4619 mov r1, r3
  8589. 8003fe0: 4822 ldr r0, [pc, #136] @ (800406c <HAL_ADC_MspInit+0x3a4>)
  8590. 8003fe2: f007 f8f3 bl 800b1cc <HAL_GPIO_Init>
  8591. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  8592. 8003fe6: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  8593. 8003fea: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  8594. 8003fee: f001 ff51 bl 8005e94 <HAL_SYSCFG_AnalogSwitchConfig>
  8595. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  8596. 8003ff2: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  8597. 8003ff6: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  8598. 8003ffa: f001 ff4b bl 8005e94 <HAL_SYSCFG_AnalogSwitchConfig>
  8599. hdma_adc3.Instance = DMA1_Stream2;
  8600. 8003ffe: 4b1c ldr r3, [pc, #112] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8601. 8004000: 4a1c ldr r2, [pc, #112] @ (8004074 <HAL_ADC_MspInit+0x3ac>)
  8602. 8004002: 601a str r2, [r3, #0]
  8603. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  8604. 8004004: 4b1a ldr r3, [pc, #104] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8605. 8004006: 2273 movs r2, #115 @ 0x73
  8606. 8004008: 605a str r2, [r3, #4]
  8607. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8608. 800400a: 4b19 ldr r3, [pc, #100] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8609. 800400c: 2200 movs r2, #0
  8610. 800400e: 609a str r2, [r3, #8]
  8611. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  8612. 8004010: 4b17 ldr r3, [pc, #92] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8613. 8004012: 2200 movs r2, #0
  8614. 8004014: 60da str r2, [r3, #12]
  8615. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  8616. 8004016: 4b16 ldr r3, [pc, #88] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8617. 8004018: f44f 6280 mov.w r2, #1024 @ 0x400
  8618. 800401c: 611a str r2, [r3, #16]
  8619. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8620. 800401e: 4b14 ldr r3, [pc, #80] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8621. 8004020: f44f 6200 mov.w r2, #2048 @ 0x800
  8622. 8004024: 615a str r2, [r3, #20]
  8623. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8624. 8004026: 4b12 ldr r3, [pc, #72] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8625. 8004028: f44f 5200 mov.w r2, #8192 @ 0x2000
  8626. 800402c: 619a str r2, [r3, #24]
  8627. hdma_adc3.Init.Mode = DMA_NORMAL;
  8628. 800402e: 4b10 ldr r3, [pc, #64] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8629. 8004030: 2200 movs r2, #0
  8630. 8004032: 61da str r2, [r3, #28]
  8631. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  8632. 8004034: 4b0e ldr r3, [pc, #56] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8633. 8004036: 2200 movs r2, #0
  8634. 8004038: 621a str r2, [r3, #32]
  8635. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8636. 800403a: 4b0d ldr r3, [pc, #52] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8637. 800403c: 2200 movs r2, #0
  8638. 800403e: 625a str r2, [r3, #36] @ 0x24
  8639. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  8640. 8004040: 480b ldr r0, [pc, #44] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8641. 8004042: f004 fa87 bl 8008554 <HAL_DMA_Init>
  8642. 8004046: 4603 mov r3, r0
  8643. 8004048: 2b00 cmp r3, #0
  8644. 800404a: d001 beq.n 8004050 <HAL_ADC_MspInit+0x388>
  8645. Error_Handler();
  8646. 800404c: f7fd ff3e bl 8001ecc <Error_Handler>
  8647. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  8648. 8004050: 687b ldr r3, [r7, #4]
  8649. 8004052: 4a07 ldr r2, [pc, #28] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8650. 8004054: 64da str r2, [r3, #76] @ 0x4c
  8651. 8004056: 4a06 ldr r2, [pc, #24] @ (8004070 <HAL_ADC_MspInit+0x3a8>)
  8652. 8004058: 687b ldr r3, [r7, #4]
  8653. 800405a: 6393 str r3, [r2, #56] @ 0x38
  8654. }
  8655. 800405c: bf00 nop
  8656. 800405e: 3748 adds r7, #72 @ 0x48
  8657. 8004060: 46bd mov sp, r7
  8658. 8004062: bd80 pop {r7, pc}
  8659. 8004064: 58026000 .word 0x58026000
  8660. 8004068: 58024400 .word 0x58024400
  8661. 800406c: 58020800 .word 0x58020800
  8662. 8004070: 2400033c .word 0x2400033c
  8663. 8004074: 40020040 .word 0x40020040
  8664. 08004078 <HAL_COMP_MspInit>:
  8665. * This function configures the hardware resources used in this example
  8666. * @param hcomp: COMP handle pointer
  8667. * @retval None
  8668. */
  8669. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  8670. {
  8671. 8004078: b580 push {r7, lr}
  8672. 800407a: b08a sub sp, #40 @ 0x28
  8673. 800407c: af00 add r7, sp, #0
  8674. 800407e: 6078 str r0, [r7, #4]
  8675. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8676. 8004080: f107 0314 add.w r3, r7, #20
  8677. 8004084: 2200 movs r2, #0
  8678. 8004086: 601a str r2, [r3, #0]
  8679. 8004088: 605a str r2, [r3, #4]
  8680. 800408a: 609a str r2, [r3, #8]
  8681. 800408c: 60da str r2, [r3, #12]
  8682. 800408e: 611a str r2, [r3, #16]
  8683. if(hcomp->Instance==COMP1)
  8684. 8004090: 687b ldr r3, [r7, #4]
  8685. 8004092: 681b ldr r3, [r3, #0]
  8686. 8004094: 4a18 ldr r2, [pc, #96] @ (80040f8 <HAL_COMP_MspInit+0x80>)
  8687. 8004096: 4293 cmp r3, r2
  8688. 8004098: d129 bne.n 80040ee <HAL_COMP_MspInit+0x76>
  8689. {
  8690. /* USER CODE BEGIN COMP1_MspInit 0 */
  8691. /* USER CODE END COMP1_MspInit 0 */
  8692. /* Peripheral clock enable */
  8693. __HAL_RCC_COMP12_CLK_ENABLE();
  8694. 800409a: 4b18 ldr r3, [pc, #96] @ (80040fc <HAL_COMP_MspInit+0x84>)
  8695. 800409c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8696. 80040a0: 4a16 ldr r2, [pc, #88] @ (80040fc <HAL_COMP_MspInit+0x84>)
  8697. 80040a2: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  8698. 80040a6: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8699. 80040aa: 4b14 ldr r3, [pc, #80] @ (80040fc <HAL_COMP_MspInit+0x84>)
  8700. 80040ac: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8701. 80040b0: f403 4380 and.w r3, r3, #16384 @ 0x4000
  8702. 80040b4: 613b str r3, [r7, #16]
  8703. 80040b6: 693b ldr r3, [r7, #16]
  8704. __HAL_RCC_GPIOB_CLK_ENABLE();
  8705. 80040b8: 4b10 ldr r3, [pc, #64] @ (80040fc <HAL_COMP_MspInit+0x84>)
  8706. 80040ba: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8707. 80040be: 4a0f ldr r2, [pc, #60] @ (80040fc <HAL_COMP_MspInit+0x84>)
  8708. 80040c0: f043 0302 orr.w r3, r3, #2
  8709. 80040c4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8710. 80040c8: 4b0c ldr r3, [pc, #48] @ (80040fc <HAL_COMP_MspInit+0x84>)
  8711. 80040ca: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8712. 80040ce: f003 0302 and.w r3, r3, #2
  8713. 80040d2: 60fb str r3, [r7, #12]
  8714. 80040d4: 68fb ldr r3, [r7, #12]
  8715. /**COMP1 GPIO Configuration
  8716. PB2 ------> COMP1_INP
  8717. */
  8718. GPIO_InitStruct.Pin = GPIO_PIN_2;
  8719. 80040d6: 2304 movs r3, #4
  8720. 80040d8: 617b str r3, [r7, #20]
  8721. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8722. 80040da: 2303 movs r3, #3
  8723. 80040dc: 61bb str r3, [r7, #24]
  8724. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8725. 80040de: 2300 movs r3, #0
  8726. 80040e0: 61fb str r3, [r7, #28]
  8727. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8728. 80040e2: f107 0314 add.w r3, r7, #20
  8729. 80040e6: 4619 mov r1, r3
  8730. 80040e8: 4805 ldr r0, [pc, #20] @ (8004100 <HAL_COMP_MspInit+0x88>)
  8731. 80040ea: f007 f86f bl 800b1cc <HAL_GPIO_Init>
  8732. /* USER CODE BEGIN COMP1_MspInit 1 */
  8733. /* USER CODE END COMP1_MspInit 1 */
  8734. }
  8735. }
  8736. 80040ee: bf00 nop
  8737. 80040f0: 3728 adds r7, #40 @ 0x28
  8738. 80040f2: 46bd mov sp, r7
  8739. 80040f4: bd80 pop {r7, pc}
  8740. 80040f6: bf00 nop
  8741. 80040f8: 5800380c .word 0x5800380c
  8742. 80040fc: 58024400 .word 0x58024400
  8743. 8004100: 58020400 .word 0x58020400
  8744. 08004104 <HAL_CRC_MspInit>:
  8745. * This function configures the hardware resources used in this example
  8746. * @param hcrc: CRC handle pointer
  8747. * @retval None
  8748. */
  8749. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  8750. {
  8751. 8004104: b480 push {r7}
  8752. 8004106: b085 sub sp, #20
  8753. 8004108: af00 add r7, sp, #0
  8754. 800410a: 6078 str r0, [r7, #4]
  8755. if(hcrc->Instance==CRC)
  8756. 800410c: 687b ldr r3, [r7, #4]
  8757. 800410e: 681b ldr r3, [r3, #0]
  8758. 8004110: 4a0b ldr r2, [pc, #44] @ (8004140 <HAL_CRC_MspInit+0x3c>)
  8759. 8004112: 4293 cmp r3, r2
  8760. 8004114: d10e bne.n 8004134 <HAL_CRC_MspInit+0x30>
  8761. {
  8762. /* USER CODE BEGIN CRC_MspInit 0 */
  8763. /* USER CODE END CRC_MspInit 0 */
  8764. /* Peripheral clock enable */
  8765. __HAL_RCC_CRC_CLK_ENABLE();
  8766. 8004116: 4b0b ldr r3, [pc, #44] @ (8004144 <HAL_CRC_MspInit+0x40>)
  8767. 8004118: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8768. 800411c: 4a09 ldr r2, [pc, #36] @ (8004144 <HAL_CRC_MspInit+0x40>)
  8769. 800411e: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  8770. 8004122: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8771. 8004126: 4b07 ldr r3, [pc, #28] @ (8004144 <HAL_CRC_MspInit+0x40>)
  8772. 8004128: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8773. 800412c: f403 2300 and.w r3, r3, #524288 @ 0x80000
  8774. 8004130: 60fb str r3, [r7, #12]
  8775. 8004132: 68fb ldr r3, [r7, #12]
  8776. /* USER CODE BEGIN CRC_MspInit 1 */
  8777. /* USER CODE END CRC_MspInit 1 */
  8778. }
  8779. }
  8780. 8004134: bf00 nop
  8781. 8004136: 3714 adds r7, #20
  8782. 8004138: 46bd mov sp, r7
  8783. 800413a: f85d 7b04 ldr.w r7, [sp], #4
  8784. 800413e: 4770 bx lr
  8785. 8004140: 58024c00 .word 0x58024c00
  8786. 8004144: 58024400 .word 0x58024400
  8787. 08004148 <HAL_DAC_MspInit>:
  8788. * This function configures the hardware resources used in this example
  8789. * @param hdac: DAC handle pointer
  8790. * @retval None
  8791. */
  8792. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  8793. {
  8794. 8004148: b580 push {r7, lr}
  8795. 800414a: b08a sub sp, #40 @ 0x28
  8796. 800414c: af00 add r7, sp, #0
  8797. 800414e: 6078 str r0, [r7, #4]
  8798. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8799. 8004150: f107 0314 add.w r3, r7, #20
  8800. 8004154: 2200 movs r2, #0
  8801. 8004156: 601a str r2, [r3, #0]
  8802. 8004158: 605a str r2, [r3, #4]
  8803. 800415a: 609a str r2, [r3, #8]
  8804. 800415c: 60da str r2, [r3, #12]
  8805. 800415e: 611a str r2, [r3, #16]
  8806. if(hdac->Instance==DAC1)
  8807. 8004160: 687b ldr r3, [r7, #4]
  8808. 8004162: 681b ldr r3, [r3, #0]
  8809. 8004164: 4a1c ldr r2, [pc, #112] @ (80041d8 <HAL_DAC_MspInit+0x90>)
  8810. 8004166: 4293 cmp r3, r2
  8811. 8004168: d131 bne.n 80041ce <HAL_DAC_MspInit+0x86>
  8812. {
  8813. /* USER CODE BEGIN DAC1_MspInit 0 */
  8814. /* USER CODE END DAC1_MspInit 0 */
  8815. /* Peripheral clock enable */
  8816. __HAL_RCC_DAC12_CLK_ENABLE();
  8817. 800416a: 4b1c ldr r3, [pc, #112] @ (80041dc <HAL_DAC_MspInit+0x94>)
  8818. 800416c: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8819. 8004170: 4a1a ldr r2, [pc, #104] @ (80041dc <HAL_DAC_MspInit+0x94>)
  8820. 8004172: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  8821. 8004176: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8822. 800417a: 4b18 ldr r3, [pc, #96] @ (80041dc <HAL_DAC_MspInit+0x94>)
  8823. 800417c: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8824. 8004180: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  8825. 8004184: 613b str r3, [r7, #16]
  8826. 8004186: 693b ldr r3, [r7, #16]
  8827. __HAL_RCC_GPIOA_CLK_ENABLE();
  8828. 8004188: 4b14 ldr r3, [pc, #80] @ (80041dc <HAL_DAC_MspInit+0x94>)
  8829. 800418a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8830. 800418e: 4a13 ldr r2, [pc, #76] @ (80041dc <HAL_DAC_MspInit+0x94>)
  8831. 8004190: f043 0301 orr.w r3, r3, #1
  8832. 8004194: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8833. 8004198: 4b10 ldr r3, [pc, #64] @ (80041dc <HAL_DAC_MspInit+0x94>)
  8834. 800419a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8835. 800419e: f003 0301 and.w r3, r3, #1
  8836. 80041a2: 60fb str r3, [r7, #12]
  8837. 80041a4: 68fb ldr r3, [r7, #12]
  8838. /**DAC1 GPIO Configuration
  8839. PA4 ------> DAC1_OUT1
  8840. PA5 ------> DAC1_OUT2
  8841. */
  8842. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  8843. 80041a6: 2330 movs r3, #48 @ 0x30
  8844. 80041a8: 617b str r3, [r7, #20]
  8845. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8846. 80041aa: 2303 movs r3, #3
  8847. 80041ac: 61bb str r3, [r7, #24]
  8848. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8849. 80041ae: 2300 movs r3, #0
  8850. 80041b0: 61fb str r3, [r7, #28]
  8851. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8852. 80041b2: f107 0314 add.w r3, r7, #20
  8853. 80041b6: 4619 mov r1, r3
  8854. 80041b8: 4809 ldr r0, [pc, #36] @ (80041e0 <HAL_DAC_MspInit+0x98>)
  8855. 80041ba: f007 f807 bl 800b1cc <HAL_GPIO_Init>
  8856. /* DAC1 interrupt Init */
  8857. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  8858. 80041be: 2200 movs r2, #0
  8859. 80041c0: 2105 movs r1, #5
  8860. 80041c2: 2036 movs r0, #54 @ 0x36
  8861. 80041c4: f003 fcd0 bl 8007b68 <HAL_NVIC_SetPriority>
  8862. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8863. 80041c8: 2036 movs r0, #54 @ 0x36
  8864. 80041ca: f003 fce7 bl 8007b9c <HAL_NVIC_EnableIRQ>
  8865. /* USER CODE BEGIN DAC1_MspInit 1 */
  8866. /* USER CODE END DAC1_MspInit 1 */
  8867. }
  8868. }
  8869. 80041ce: bf00 nop
  8870. 80041d0: 3728 adds r7, #40 @ 0x28
  8871. 80041d2: 46bd mov sp, r7
  8872. 80041d4: bd80 pop {r7, pc}
  8873. 80041d6: bf00 nop
  8874. 80041d8: 40007400 .word 0x40007400
  8875. 80041dc: 58024400 .word 0x58024400
  8876. 80041e0: 58020000 .word 0x58020000
  8877. 080041e4 <HAL_RNG_MspInit>:
  8878. * This function configures the hardware resources used in this example
  8879. * @param hrng: RNG handle pointer
  8880. * @retval None
  8881. */
  8882. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  8883. {
  8884. 80041e4: b580 push {r7, lr}
  8885. 80041e6: b0b4 sub sp, #208 @ 0xd0
  8886. 80041e8: af00 add r7, sp, #0
  8887. 80041ea: 6078 str r0, [r7, #4]
  8888. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8889. 80041ec: f107 0310 add.w r3, r7, #16
  8890. 80041f0: 22c0 movs r2, #192 @ 0xc0
  8891. 80041f2: 2100 movs r1, #0
  8892. 80041f4: 4618 mov r0, r3
  8893. 80041f6: f014 f887 bl 8018308 <memset>
  8894. if(hrng->Instance==RNG)
  8895. 80041fa: 687b ldr r3, [r7, #4]
  8896. 80041fc: 681b ldr r3, [r3, #0]
  8897. 80041fe: 4a14 ldr r2, [pc, #80] @ (8004250 <HAL_RNG_MspInit+0x6c>)
  8898. 8004200: 4293 cmp r3, r2
  8899. 8004202: d121 bne.n 8004248 <HAL_RNG_MspInit+0x64>
  8900. /* USER CODE END RNG_MspInit 0 */
  8901. /** Initializes the peripherals clock
  8902. */
  8903. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  8904. 8004204: f44f 3200 mov.w r2, #131072 @ 0x20000
  8905. 8004208: f04f 0300 mov.w r3, #0
  8906. 800420c: e9c7 2304 strd r2, r3, [r7, #16]
  8907. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  8908. 8004210: 2300 movs r3, #0
  8909. 8004212: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8910. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8911. 8004216: f107 0310 add.w r3, r7, #16
  8912. 800421a: 4618 mov r0, r3
  8913. 800421c: f008 fbbc bl 800c998 <HAL_RCCEx_PeriphCLKConfig>
  8914. 8004220: 4603 mov r3, r0
  8915. 8004222: 2b00 cmp r3, #0
  8916. 8004224: d001 beq.n 800422a <HAL_RNG_MspInit+0x46>
  8917. {
  8918. Error_Handler();
  8919. 8004226: f7fd fe51 bl 8001ecc <Error_Handler>
  8920. }
  8921. /* Peripheral clock enable */
  8922. __HAL_RCC_RNG_CLK_ENABLE();
  8923. 800422a: 4b0a ldr r3, [pc, #40] @ (8004254 <HAL_RNG_MspInit+0x70>)
  8924. 800422c: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8925. 8004230: 4a08 ldr r2, [pc, #32] @ (8004254 <HAL_RNG_MspInit+0x70>)
  8926. 8004232: f043 0340 orr.w r3, r3, #64 @ 0x40
  8927. 8004236: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  8928. 800423a: 4b06 ldr r3, [pc, #24] @ (8004254 <HAL_RNG_MspInit+0x70>)
  8929. 800423c: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8930. 8004240: f003 0340 and.w r3, r3, #64 @ 0x40
  8931. 8004244: 60fb str r3, [r7, #12]
  8932. 8004246: 68fb ldr r3, [r7, #12]
  8933. /* USER CODE BEGIN RNG_MspInit 1 */
  8934. /* USER CODE END RNG_MspInit 1 */
  8935. }
  8936. }
  8937. 8004248: bf00 nop
  8938. 800424a: 37d0 adds r7, #208 @ 0xd0
  8939. 800424c: 46bd mov sp, r7
  8940. 800424e: bd80 pop {r7, pc}
  8941. 8004250: 48021800 .word 0x48021800
  8942. 8004254: 58024400 .word 0x58024400
  8943. 08004258 <HAL_TIM_PWM_MspInit>:
  8944. * This function configures the hardware resources used in this example
  8945. * @param htim_pwm: TIM_PWM handle pointer
  8946. * @retval None
  8947. */
  8948. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  8949. {
  8950. 8004258: b480 push {r7}
  8951. 800425a: b085 sub sp, #20
  8952. 800425c: af00 add r7, sp, #0
  8953. 800425e: 6078 str r0, [r7, #4]
  8954. if(htim_pwm->Instance==TIM1)
  8955. 8004260: 687b ldr r3, [r7, #4]
  8956. 8004262: 681b ldr r3, [r3, #0]
  8957. 8004264: 4a16 ldr r2, [pc, #88] @ (80042c0 <HAL_TIM_PWM_MspInit+0x68>)
  8958. 8004266: 4293 cmp r3, r2
  8959. 8004268: d10f bne.n 800428a <HAL_TIM_PWM_MspInit+0x32>
  8960. {
  8961. /* USER CODE BEGIN TIM1_MspInit 0 */
  8962. /* USER CODE END TIM1_MspInit 0 */
  8963. /* Peripheral clock enable */
  8964. __HAL_RCC_TIM1_CLK_ENABLE();
  8965. 800426a: 4b16 ldr r3, [pc, #88] @ (80042c4 <HAL_TIM_PWM_MspInit+0x6c>)
  8966. 800426c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8967. 8004270: 4a14 ldr r2, [pc, #80] @ (80042c4 <HAL_TIM_PWM_MspInit+0x6c>)
  8968. 8004272: f043 0301 orr.w r3, r3, #1
  8969. 8004276: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8970. 800427a: 4b12 ldr r3, [pc, #72] @ (80042c4 <HAL_TIM_PWM_MspInit+0x6c>)
  8971. 800427c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8972. 8004280: f003 0301 and.w r3, r3, #1
  8973. 8004284: 60fb str r3, [r7, #12]
  8974. 8004286: 68fb ldr r3, [r7, #12]
  8975. /* USER CODE BEGIN TIM3_MspInit 1 */
  8976. /* USER CODE END TIM3_MspInit 1 */
  8977. }
  8978. }
  8979. 8004288: e013 b.n 80042b2 <HAL_TIM_PWM_MspInit+0x5a>
  8980. else if(htim_pwm->Instance==TIM3)
  8981. 800428a: 687b ldr r3, [r7, #4]
  8982. 800428c: 681b ldr r3, [r3, #0]
  8983. 800428e: 4a0e ldr r2, [pc, #56] @ (80042c8 <HAL_TIM_PWM_MspInit+0x70>)
  8984. 8004290: 4293 cmp r3, r2
  8985. 8004292: d10e bne.n 80042b2 <HAL_TIM_PWM_MspInit+0x5a>
  8986. __HAL_RCC_TIM3_CLK_ENABLE();
  8987. 8004294: 4b0b ldr r3, [pc, #44] @ (80042c4 <HAL_TIM_PWM_MspInit+0x6c>)
  8988. 8004296: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8989. 800429a: 4a0a ldr r2, [pc, #40] @ (80042c4 <HAL_TIM_PWM_MspInit+0x6c>)
  8990. 800429c: f043 0302 orr.w r3, r3, #2
  8991. 80042a0: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8992. 80042a4: 4b07 ldr r3, [pc, #28] @ (80042c4 <HAL_TIM_PWM_MspInit+0x6c>)
  8993. 80042a6: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8994. 80042aa: f003 0302 and.w r3, r3, #2
  8995. 80042ae: 60bb str r3, [r7, #8]
  8996. 80042b0: 68bb ldr r3, [r7, #8]
  8997. }
  8998. 80042b2: bf00 nop
  8999. 80042b4: 3714 adds r7, #20
  9000. 80042b6: 46bd mov sp, r7
  9001. 80042b8: f85d 7b04 ldr.w r7, [sp], #4
  9002. 80042bc: 4770 bx lr
  9003. 80042be: bf00 nop
  9004. 80042c0: 40010000 .word 0x40010000
  9005. 80042c4: 58024400 .word 0x58024400
  9006. 80042c8: 40000400 .word 0x40000400
  9007. 080042cc <HAL_TIM_Base_MspInit>:
  9008. * This function configures the hardware resources used in this example
  9009. * @param htim_base: TIM_Base handle pointer
  9010. * @retval None
  9011. */
  9012. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  9013. {
  9014. 80042cc: b580 push {r7, lr}
  9015. 80042ce: b08c sub sp, #48 @ 0x30
  9016. 80042d0: af00 add r7, sp, #0
  9017. 80042d2: 6078 str r0, [r7, #4]
  9018. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9019. 80042d4: f107 031c add.w r3, r7, #28
  9020. 80042d8: 2200 movs r2, #0
  9021. 80042da: 601a str r2, [r3, #0]
  9022. 80042dc: 605a str r2, [r3, #4]
  9023. 80042de: 609a str r2, [r3, #8]
  9024. 80042e0: 60da str r2, [r3, #12]
  9025. 80042e2: 611a str r2, [r3, #16]
  9026. if(htim_base->Instance==TIM2)
  9027. 80042e4: 687b ldr r3, [r7, #4]
  9028. 80042e6: 681b ldr r3, [r3, #0]
  9029. 80042e8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  9030. 80042ec: d137 bne.n 800435e <HAL_TIM_Base_MspInit+0x92>
  9031. {
  9032. /* USER CODE BEGIN TIM2_MspInit 0 */
  9033. /* USER CODE END TIM2_MspInit 0 */
  9034. /* Peripheral clock enable */
  9035. __HAL_RCC_TIM2_CLK_ENABLE();
  9036. 80042ee: 4b46 ldr r3, [pc, #280] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9037. 80042f0: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9038. 80042f4: 4a44 ldr r2, [pc, #272] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9039. 80042f6: f043 0301 orr.w r3, r3, #1
  9040. 80042fa: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9041. 80042fe: 4b42 ldr r3, [pc, #264] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9042. 8004300: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9043. 8004304: f003 0301 and.w r3, r3, #1
  9044. 8004308: 61bb str r3, [r7, #24]
  9045. 800430a: 69bb ldr r3, [r7, #24]
  9046. __HAL_RCC_GPIOB_CLK_ENABLE();
  9047. 800430c: 4b3e ldr r3, [pc, #248] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9048. 800430e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9049. 8004312: 4a3d ldr r2, [pc, #244] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9050. 8004314: f043 0302 orr.w r3, r3, #2
  9051. 8004318: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9052. 800431c: 4b3a ldr r3, [pc, #232] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9053. 800431e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9054. 8004322: f003 0302 and.w r3, r3, #2
  9055. 8004326: 617b str r3, [r7, #20]
  9056. 8004328: 697b ldr r3, [r7, #20]
  9057. /**TIM2 GPIO Configuration
  9058. PB10 ------> TIM2_CH3
  9059. PB11 ------> TIM2_CH4
  9060. */
  9061. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  9062. 800432a: f44f 6340 mov.w r3, #3072 @ 0xc00
  9063. 800432e: 61fb str r3, [r7, #28]
  9064. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9065. 8004330: 2302 movs r3, #2
  9066. 8004332: 623b str r3, [r7, #32]
  9067. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9068. 8004334: 2300 movs r3, #0
  9069. 8004336: 627b str r3, [r7, #36] @ 0x24
  9070. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9071. 8004338: 2300 movs r3, #0
  9072. 800433a: 62bb str r3, [r7, #40] @ 0x28
  9073. GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
  9074. 800433c: 2301 movs r3, #1
  9075. 800433e: 62fb str r3, [r7, #44] @ 0x2c
  9076. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9077. 8004340: f107 031c add.w r3, r7, #28
  9078. 8004344: 4619 mov r1, r3
  9079. 8004346: 4831 ldr r0, [pc, #196] @ (800440c <HAL_TIM_Base_MspInit+0x140>)
  9080. 8004348: f006 ff40 bl 800b1cc <HAL_GPIO_Init>
  9081. /* TIM2 interrupt Init */
  9082. HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
  9083. 800434c: 2200 movs r2, #0
  9084. 800434e: 2105 movs r1, #5
  9085. 8004350: 201c movs r0, #28
  9086. 8004352: f003 fc09 bl 8007b68 <HAL_NVIC_SetPriority>
  9087. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  9088. 8004356: 201c movs r0, #28
  9089. 8004358: f003 fc20 bl 8007b9c <HAL_NVIC_EnableIRQ>
  9090. /* USER CODE BEGIN TIM8_MspInit 1 */
  9091. /* USER CODE END TIM8_MspInit 1 */
  9092. }
  9093. }
  9094. 800435c: e050 b.n 8004400 <HAL_TIM_Base_MspInit+0x134>
  9095. else if(htim_base->Instance==TIM4)
  9096. 800435e: 687b ldr r3, [r7, #4]
  9097. 8004360: 681b ldr r3, [r3, #0]
  9098. 8004362: 4a2b ldr r2, [pc, #172] @ (8004410 <HAL_TIM_Base_MspInit+0x144>)
  9099. 8004364: 4293 cmp r3, r2
  9100. 8004366: d137 bne.n 80043d8 <HAL_TIM_Base_MspInit+0x10c>
  9101. __HAL_RCC_TIM4_CLK_ENABLE();
  9102. 8004368: 4b27 ldr r3, [pc, #156] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9103. 800436a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9104. 800436e: 4a26 ldr r2, [pc, #152] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9105. 8004370: f043 0304 orr.w r3, r3, #4
  9106. 8004374: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9107. 8004378: 4b23 ldr r3, [pc, #140] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9108. 800437a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9109. 800437e: f003 0304 and.w r3, r3, #4
  9110. 8004382: 613b str r3, [r7, #16]
  9111. 8004384: 693b ldr r3, [r7, #16]
  9112. __HAL_RCC_GPIOD_CLK_ENABLE();
  9113. 8004386: 4b20 ldr r3, [pc, #128] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9114. 8004388: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9115. 800438c: 4a1e ldr r2, [pc, #120] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9116. 800438e: f043 0308 orr.w r3, r3, #8
  9117. 8004392: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9118. 8004396: 4b1c ldr r3, [pc, #112] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9119. 8004398: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9120. 800439c: f003 0308 and.w r3, r3, #8
  9121. 80043a0: 60fb str r3, [r7, #12]
  9122. 80043a2: 68fb ldr r3, [r7, #12]
  9123. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9124. 80043a4: f44f 4340 mov.w r3, #49152 @ 0xc000
  9125. 80043a8: 61fb str r3, [r7, #28]
  9126. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9127. 80043aa: 2302 movs r3, #2
  9128. 80043ac: 623b str r3, [r7, #32]
  9129. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9130. 80043ae: 2300 movs r3, #0
  9131. 80043b0: 627b str r3, [r7, #36] @ 0x24
  9132. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9133. 80043b2: 2300 movs r3, #0
  9134. 80043b4: 62bb str r3, [r7, #40] @ 0x28
  9135. GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
  9136. 80043b6: 2302 movs r3, #2
  9137. 80043b8: 62fb str r3, [r7, #44] @ 0x2c
  9138. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  9139. 80043ba: f107 031c add.w r3, r7, #28
  9140. 80043be: 4619 mov r1, r3
  9141. 80043c0: 4814 ldr r0, [pc, #80] @ (8004414 <HAL_TIM_Base_MspInit+0x148>)
  9142. 80043c2: f006 ff03 bl 800b1cc <HAL_GPIO_Init>
  9143. HAL_NVIC_SetPriority(TIM4_IRQn, 5, 0);
  9144. 80043c6: 2200 movs r2, #0
  9145. 80043c8: 2105 movs r1, #5
  9146. 80043ca: 201e movs r0, #30
  9147. 80043cc: f003 fbcc bl 8007b68 <HAL_NVIC_SetPriority>
  9148. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  9149. 80043d0: 201e movs r0, #30
  9150. 80043d2: f003 fbe3 bl 8007b9c <HAL_NVIC_EnableIRQ>
  9151. }
  9152. 80043d6: e013 b.n 8004400 <HAL_TIM_Base_MspInit+0x134>
  9153. else if(htim_base->Instance==TIM8)
  9154. 80043d8: 687b ldr r3, [r7, #4]
  9155. 80043da: 681b ldr r3, [r3, #0]
  9156. 80043dc: 4a0e ldr r2, [pc, #56] @ (8004418 <HAL_TIM_Base_MspInit+0x14c>)
  9157. 80043de: 4293 cmp r3, r2
  9158. 80043e0: d10e bne.n 8004400 <HAL_TIM_Base_MspInit+0x134>
  9159. __HAL_RCC_TIM8_CLK_ENABLE();
  9160. 80043e2: 4b09 ldr r3, [pc, #36] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9161. 80043e4: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9162. 80043e8: 4a07 ldr r2, [pc, #28] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9163. 80043ea: f043 0302 orr.w r3, r3, #2
  9164. 80043ee: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9165. 80043f2: 4b05 ldr r3, [pc, #20] @ (8004408 <HAL_TIM_Base_MspInit+0x13c>)
  9166. 80043f4: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9167. 80043f8: f003 0302 and.w r3, r3, #2
  9168. 80043fc: 60bb str r3, [r7, #8]
  9169. 80043fe: 68bb ldr r3, [r7, #8]
  9170. }
  9171. 8004400: bf00 nop
  9172. 8004402: 3730 adds r7, #48 @ 0x30
  9173. 8004404: 46bd mov sp, r7
  9174. 8004406: bd80 pop {r7, pc}
  9175. 8004408: 58024400 .word 0x58024400
  9176. 800440c: 58020400 .word 0x58020400
  9177. 8004410: 40000800 .word 0x40000800
  9178. 8004414: 58020c00 .word 0x58020c00
  9179. 8004418: 40010400 .word 0x40010400
  9180. 0800441c <HAL_TIM_MspPostInit>:
  9181. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  9182. {
  9183. 800441c: b580 push {r7, lr}
  9184. 800441e: b08a sub sp, #40 @ 0x28
  9185. 8004420: af00 add r7, sp, #0
  9186. 8004422: 6078 str r0, [r7, #4]
  9187. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9188. 8004424: f107 0314 add.w r3, r7, #20
  9189. 8004428: 2200 movs r2, #0
  9190. 800442a: 601a str r2, [r3, #0]
  9191. 800442c: 605a str r2, [r3, #4]
  9192. 800442e: 609a str r2, [r3, #8]
  9193. 8004430: 60da str r2, [r3, #12]
  9194. 8004432: 611a str r2, [r3, #16]
  9195. if(htim->Instance==TIM1)
  9196. 8004434: 687b ldr r3, [r7, #4]
  9197. 8004436: 681b ldr r3, [r3, #0]
  9198. 8004438: 4a26 ldr r2, [pc, #152] @ (80044d4 <HAL_TIM_MspPostInit+0xb8>)
  9199. 800443a: 4293 cmp r3, r2
  9200. 800443c: d120 bne.n 8004480 <HAL_TIM_MspPostInit+0x64>
  9201. {
  9202. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  9203. /* USER CODE END TIM1_MspPostInit 0 */
  9204. __HAL_RCC_GPIOA_CLK_ENABLE();
  9205. 800443e: 4b26 ldr r3, [pc, #152] @ (80044d8 <HAL_TIM_MspPostInit+0xbc>)
  9206. 8004440: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9207. 8004444: 4a24 ldr r2, [pc, #144] @ (80044d8 <HAL_TIM_MspPostInit+0xbc>)
  9208. 8004446: f043 0301 orr.w r3, r3, #1
  9209. 800444a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9210. 800444e: 4b22 ldr r3, [pc, #136] @ (80044d8 <HAL_TIM_MspPostInit+0xbc>)
  9211. 8004450: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9212. 8004454: f003 0301 and.w r3, r3, #1
  9213. 8004458: 613b str r3, [r7, #16]
  9214. 800445a: 693b ldr r3, [r7, #16]
  9215. /**TIM1 GPIO Configuration
  9216. PA9 ------> TIM1_CH2
  9217. */
  9218. GPIO_InitStruct.Pin = GPIO_PIN_9;
  9219. 800445c: f44f 7300 mov.w r3, #512 @ 0x200
  9220. 8004460: 617b str r3, [r7, #20]
  9221. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9222. 8004462: 2302 movs r3, #2
  9223. 8004464: 61bb str r3, [r7, #24]
  9224. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9225. 8004466: 2300 movs r3, #0
  9226. 8004468: 61fb str r3, [r7, #28]
  9227. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9228. 800446a: 2300 movs r3, #0
  9229. 800446c: 623b str r3, [r7, #32]
  9230. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  9231. 800446e: 2301 movs r3, #1
  9232. 8004470: 627b str r3, [r7, #36] @ 0x24
  9233. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  9234. 8004472: f107 0314 add.w r3, r7, #20
  9235. 8004476: 4619 mov r1, r3
  9236. 8004478: 4818 ldr r0, [pc, #96] @ (80044dc <HAL_TIM_MspPostInit+0xc0>)
  9237. 800447a: f006 fea7 bl 800b1cc <HAL_GPIO_Init>
  9238. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  9239. /* USER CODE END TIM3_MspPostInit 1 */
  9240. }
  9241. }
  9242. 800447e: e024 b.n 80044ca <HAL_TIM_MspPostInit+0xae>
  9243. else if(htim->Instance==TIM3)
  9244. 8004480: 687b ldr r3, [r7, #4]
  9245. 8004482: 681b ldr r3, [r3, #0]
  9246. 8004484: 4a16 ldr r2, [pc, #88] @ (80044e0 <HAL_TIM_MspPostInit+0xc4>)
  9247. 8004486: 4293 cmp r3, r2
  9248. 8004488: d11f bne.n 80044ca <HAL_TIM_MspPostInit+0xae>
  9249. __HAL_RCC_GPIOC_CLK_ENABLE();
  9250. 800448a: 4b13 ldr r3, [pc, #76] @ (80044d8 <HAL_TIM_MspPostInit+0xbc>)
  9251. 800448c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9252. 8004490: 4a11 ldr r2, [pc, #68] @ (80044d8 <HAL_TIM_MspPostInit+0xbc>)
  9253. 8004492: f043 0304 orr.w r3, r3, #4
  9254. 8004496: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9255. 800449a: 4b0f ldr r3, [pc, #60] @ (80044d8 <HAL_TIM_MspPostInit+0xbc>)
  9256. 800449c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9257. 80044a0: f003 0304 and.w r3, r3, #4
  9258. 80044a4: 60fb str r3, [r7, #12]
  9259. 80044a6: 68fb ldr r3, [r7, #12]
  9260. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  9261. 80044a8: f44f 7370 mov.w r3, #960 @ 0x3c0
  9262. 80044ac: 617b str r3, [r7, #20]
  9263. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9264. 80044ae: 2302 movs r3, #2
  9265. 80044b0: 61bb str r3, [r7, #24]
  9266. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9267. 80044b2: 2300 movs r3, #0
  9268. 80044b4: 61fb str r3, [r7, #28]
  9269. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  9270. 80044b6: 2301 movs r3, #1
  9271. 80044b8: 623b str r3, [r7, #32]
  9272. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  9273. 80044ba: 2302 movs r3, #2
  9274. 80044bc: 627b str r3, [r7, #36] @ 0x24
  9275. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  9276. 80044be: f107 0314 add.w r3, r7, #20
  9277. 80044c2: 4619 mov r1, r3
  9278. 80044c4: 4807 ldr r0, [pc, #28] @ (80044e4 <HAL_TIM_MspPostInit+0xc8>)
  9279. 80044c6: f006 fe81 bl 800b1cc <HAL_GPIO_Init>
  9280. }
  9281. 80044ca: bf00 nop
  9282. 80044cc: 3728 adds r7, #40 @ 0x28
  9283. 80044ce: 46bd mov sp, r7
  9284. 80044d0: bd80 pop {r7, pc}
  9285. 80044d2: bf00 nop
  9286. 80044d4: 40010000 .word 0x40010000
  9287. 80044d8: 58024400 .word 0x58024400
  9288. 80044dc: 58020000 .word 0x58020000
  9289. 80044e0: 40000400 .word 0x40000400
  9290. 80044e4: 58020800 .word 0x58020800
  9291. 080044e8 <HAL_UART_MspInit>:
  9292. * This function configures the hardware resources used in this example
  9293. * @param huart: UART handle pointer
  9294. * @retval None
  9295. */
  9296. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  9297. {
  9298. 80044e8: b580 push {r7, lr}
  9299. 80044ea: b0bc sub sp, #240 @ 0xf0
  9300. 80044ec: af00 add r7, sp, #0
  9301. 80044ee: 6078 str r0, [r7, #4]
  9302. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9303. 80044f0: f107 03dc add.w r3, r7, #220 @ 0xdc
  9304. 80044f4: 2200 movs r2, #0
  9305. 80044f6: 601a str r2, [r3, #0]
  9306. 80044f8: 605a str r2, [r3, #4]
  9307. 80044fa: 609a str r2, [r3, #8]
  9308. 80044fc: 60da str r2, [r3, #12]
  9309. 80044fe: 611a str r2, [r3, #16]
  9310. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  9311. 8004500: f107 0318 add.w r3, r7, #24
  9312. 8004504: 22c0 movs r2, #192 @ 0xc0
  9313. 8004506: 2100 movs r1, #0
  9314. 8004508: 4618 mov r0, r3
  9315. 800450a: f013 fefd bl 8018308 <memset>
  9316. if(huart->Instance==UART8)
  9317. 800450e: 687b ldr r3, [r7, #4]
  9318. 8004510: 681b ldr r3, [r3, #0]
  9319. 8004512: 4a55 ldr r2, [pc, #340] @ (8004668 <HAL_UART_MspInit+0x180>)
  9320. 8004514: 4293 cmp r3, r2
  9321. 8004516: d14e bne.n 80045b6 <HAL_UART_MspInit+0xce>
  9322. /* USER CODE END UART8_MspInit 0 */
  9323. /** Initializes the peripherals clock
  9324. */
  9325. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  9326. 8004518: f04f 0202 mov.w r2, #2
  9327. 800451c: f04f 0300 mov.w r3, #0
  9328. 8004520: e9c7 2306 strd r2, r3, [r7, #24]
  9329. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  9330. 8004524: 2300 movs r3, #0
  9331. 8004526: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  9332. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9333. 800452a: f107 0318 add.w r3, r7, #24
  9334. 800452e: 4618 mov r0, r3
  9335. 8004530: f008 fa32 bl 800c998 <HAL_RCCEx_PeriphCLKConfig>
  9336. 8004534: 4603 mov r3, r0
  9337. 8004536: 2b00 cmp r3, #0
  9338. 8004538: d001 beq.n 800453e <HAL_UART_MspInit+0x56>
  9339. {
  9340. Error_Handler();
  9341. 800453a: f7fd fcc7 bl 8001ecc <Error_Handler>
  9342. }
  9343. /* Peripheral clock enable */
  9344. __HAL_RCC_UART8_CLK_ENABLE();
  9345. 800453e: 4b4b ldr r3, [pc, #300] @ (800466c <HAL_UART_MspInit+0x184>)
  9346. 8004540: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9347. 8004544: 4a49 ldr r2, [pc, #292] @ (800466c <HAL_UART_MspInit+0x184>)
  9348. 8004546: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  9349. 800454a: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9350. 800454e: 4b47 ldr r3, [pc, #284] @ (800466c <HAL_UART_MspInit+0x184>)
  9351. 8004550: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9352. 8004554: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  9353. 8004558: 617b str r3, [r7, #20]
  9354. 800455a: 697b ldr r3, [r7, #20]
  9355. __HAL_RCC_GPIOE_CLK_ENABLE();
  9356. 800455c: 4b43 ldr r3, [pc, #268] @ (800466c <HAL_UART_MspInit+0x184>)
  9357. 800455e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9358. 8004562: 4a42 ldr r2, [pc, #264] @ (800466c <HAL_UART_MspInit+0x184>)
  9359. 8004564: f043 0310 orr.w r3, r3, #16
  9360. 8004568: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9361. 800456c: 4b3f ldr r3, [pc, #252] @ (800466c <HAL_UART_MspInit+0x184>)
  9362. 800456e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9363. 8004572: f003 0310 and.w r3, r3, #16
  9364. 8004576: 613b str r3, [r7, #16]
  9365. 8004578: 693b ldr r3, [r7, #16]
  9366. /**UART8 GPIO Configuration
  9367. PE0 ------> UART8_RX
  9368. PE1 ------> UART8_TX
  9369. */
  9370. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  9371. 800457a: 2303 movs r3, #3
  9372. 800457c: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9373. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9374. 8004580: 2302 movs r3, #2
  9375. 8004582: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9376. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9377. 8004586: 2300 movs r3, #0
  9378. 8004588: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9379. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9380. 800458c: 2300 movs r3, #0
  9381. 800458e: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9382. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  9383. 8004592: 2308 movs r3, #8
  9384. 8004594: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9385. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  9386. 8004598: f107 03dc add.w r3, r7, #220 @ 0xdc
  9387. 800459c: 4619 mov r1, r3
  9388. 800459e: 4834 ldr r0, [pc, #208] @ (8004670 <HAL_UART_MspInit+0x188>)
  9389. 80045a0: f006 fe14 bl 800b1cc <HAL_GPIO_Init>
  9390. /* UART8 interrupt Init */
  9391. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  9392. 80045a4: 2200 movs r2, #0
  9393. 80045a6: 2105 movs r1, #5
  9394. 80045a8: 2053 movs r0, #83 @ 0x53
  9395. 80045aa: f003 fadd bl 8007b68 <HAL_NVIC_SetPriority>
  9396. HAL_NVIC_EnableIRQ(UART8_IRQn);
  9397. 80045ae: 2053 movs r0, #83 @ 0x53
  9398. 80045b0: f003 faf4 bl 8007b9c <HAL_NVIC_EnableIRQ>
  9399. /* USER CODE BEGIN USART1_MspInit 1 */
  9400. /* USER CODE END USART1_MspInit 1 */
  9401. }
  9402. }
  9403. 80045b4: e053 b.n 800465e <HAL_UART_MspInit+0x176>
  9404. else if(huart->Instance==USART1)
  9405. 80045b6: 687b ldr r3, [r7, #4]
  9406. 80045b8: 681b ldr r3, [r3, #0]
  9407. 80045ba: 4a2e ldr r2, [pc, #184] @ (8004674 <HAL_UART_MspInit+0x18c>)
  9408. 80045bc: 4293 cmp r3, r2
  9409. 80045be: d14e bne.n 800465e <HAL_UART_MspInit+0x176>
  9410. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  9411. 80045c0: f04f 0201 mov.w r2, #1
  9412. 80045c4: f04f 0300 mov.w r3, #0
  9413. 80045c8: e9c7 2306 strd r2, r3, [r7, #24]
  9414. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  9415. 80045cc: 2300 movs r3, #0
  9416. 80045ce: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  9417. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9418. 80045d2: f107 0318 add.w r3, r7, #24
  9419. 80045d6: 4618 mov r0, r3
  9420. 80045d8: f008 f9de bl 800c998 <HAL_RCCEx_PeriphCLKConfig>
  9421. 80045dc: 4603 mov r3, r0
  9422. 80045de: 2b00 cmp r3, #0
  9423. 80045e0: d001 beq.n 80045e6 <HAL_UART_MspInit+0xfe>
  9424. Error_Handler();
  9425. 80045e2: f7fd fc73 bl 8001ecc <Error_Handler>
  9426. __HAL_RCC_USART1_CLK_ENABLE();
  9427. 80045e6: 4b21 ldr r3, [pc, #132] @ (800466c <HAL_UART_MspInit+0x184>)
  9428. 80045e8: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9429. 80045ec: 4a1f ldr r2, [pc, #124] @ (800466c <HAL_UART_MspInit+0x184>)
  9430. 80045ee: f043 0310 orr.w r3, r3, #16
  9431. 80045f2: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9432. 80045f6: 4b1d ldr r3, [pc, #116] @ (800466c <HAL_UART_MspInit+0x184>)
  9433. 80045f8: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9434. 80045fc: f003 0310 and.w r3, r3, #16
  9435. 8004600: 60fb str r3, [r7, #12]
  9436. 8004602: 68fb ldr r3, [r7, #12]
  9437. __HAL_RCC_GPIOB_CLK_ENABLE();
  9438. 8004604: 4b19 ldr r3, [pc, #100] @ (800466c <HAL_UART_MspInit+0x184>)
  9439. 8004606: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9440. 800460a: 4a18 ldr r2, [pc, #96] @ (800466c <HAL_UART_MspInit+0x184>)
  9441. 800460c: f043 0302 orr.w r3, r3, #2
  9442. 8004610: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9443. 8004614: 4b15 ldr r3, [pc, #84] @ (800466c <HAL_UART_MspInit+0x184>)
  9444. 8004616: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9445. 800461a: f003 0302 and.w r3, r3, #2
  9446. 800461e: 60bb str r3, [r7, #8]
  9447. 8004620: 68bb ldr r3, [r7, #8]
  9448. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9449. 8004622: f44f 4340 mov.w r3, #49152 @ 0xc000
  9450. 8004626: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9451. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9452. 800462a: 2302 movs r3, #2
  9453. 800462c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9454. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9455. 8004630: 2300 movs r3, #0
  9456. 8004632: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9457. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9458. 8004636: 2300 movs r3, #0
  9459. 8004638: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9460. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  9461. 800463c: 2304 movs r3, #4
  9462. 800463e: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9463. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9464. 8004642: f107 03dc add.w r3, r7, #220 @ 0xdc
  9465. 8004646: 4619 mov r1, r3
  9466. 8004648: 480b ldr r0, [pc, #44] @ (8004678 <HAL_UART_MspInit+0x190>)
  9467. 800464a: f006 fdbf bl 800b1cc <HAL_GPIO_Init>
  9468. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  9469. 800464e: 2200 movs r2, #0
  9470. 8004650: 2105 movs r1, #5
  9471. 8004652: 2025 movs r0, #37 @ 0x25
  9472. 8004654: f003 fa88 bl 8007b68 <HAL_NVIC_SetPriority>
  9473. HAL_NVIC_EnableIRQ(USART1_IRQn);
  9474. 8004658: 2025 movs r0, #37 @ 0x25
  9475. 800465a: f003 fa9f bl 8007b9c <HAL_NVIC_EnableIRQ>
  9476. }
  9477. 800465e: bf00 nop
  9478. 8004660: 37f0 adds r7, #240 @ 0xf0
  9479. 8004662: 46bd mov sp, r7
  9480. 8004664: bd80 pop {r7, pc}
  9481. 8004666: bf00 nop
  9482. 8004668: 40007c00 .word 0x40007c00
  9483. 800466c: 58024400 .word 0x58024400
  9484. 8004670: 58021000 .word 0x58021000
  9485. 8004674: 40011000 .word 0x40011000
  9486. 8004678: 58020400 .word 0x58020400
  9487. 0800467c <HAL_InitTick>:
  9488. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  9489. * @param TickPriority: Tick interrupt priority.
  9490. * @retval HAL status
  9491. */
  9492. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  9493. {
  9494. 800467c: b580 push {r7, lr}
  9495. 800467e: b090 sub sp, #64 @ 0x40
  9496. 8004680: af00 add r7, sp, #0
  9497. 8004682: 6078 str r0, [r7, #4]
  9498. uint32_t uwTimclock, uwAPB1Prescaler;
  9499. uint32_t uwPrescalerValue;
  9500. uint32_t pFLatency;
  9501. /*Configure the TIM6 IRQ priority */
  9502. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  9503. 8004684: 687b ldr r3, [r7, #4]
  9504. 8004686: 2b0f cmp r3, #15
  9505. 8004688: d827 bhi.n 80046da <HAL_InitTick+0x5e>
  9506. {
  9507. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  9508. 800468a: 2200 movs r2, #0
  9509. 800468c: 6879 ldr r1, [r7, #4]
  9510. 800468e: 2036 movs r0, #54 @ 0x36
  9511. 8004690: f003 fa6a bl 8007b68 <HAL_NVIC_SetPriority>
  9512. /* Enable the TIM6 global Interrupt */
  9513. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  9514. 8004694: 2036 movs r0, #54 @ 0x36
  9515. 8004696: f003 fa81 bl 8007b9c <HAL_NVIC_EnableIRQ>
  9516. uwTickPrio = TickPriority;
  9517. 800469a: 4a29 ldr r2, [pc, #164] @ (8004740 <HAL_InitTick+0xc4>)
  9518. 800469c: 687b ldr r3, [r7, #4]
  9519. 800469e: 6013 str r3, [r2, #0]
  9520. {
  9521. return HAL_ERROR;
  9522. }
  9523. /* Enable TIM6 clock */
  9524. __HAL_RCC_TIM6_CLK_ENABLE();
  9525. 80046a0: 4b28 ldr r3, [pc, #160] @ (8004744 <HAL_InitTick+0xc8>)
  9526. 80046a2: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9527. 80046a6: 4a27 ldr r2, [pc, #156] @ (8004744 <HAL_InitTick+0xc8>)
  9528. 80046a8: f043 0310 orr.w r3, r3, #16
  9529. 80046ac: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9530. 80046b0: 4b24 ldr r3, [pc, #144] @ (8004744 <HAL_InitTick+0xc8>)
  9531. 80046b2: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9532. 80046b6: f003 0310 and.w r3, r3, #16
  9533. 80046ba: 60fb str r3, [r7, #12]
  9534. 80046bc: 68fb ldr r3, [r7, #12]
  9535. /* Get clock configuration */
  9536. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  9537. 80046be: f107 0210 add.w r2, r7, #16
  9538. 80046c2: f107 0314 add.w r3, r7, #20
  9539. 80046c6: 4611 mov r1, r2
  9540. 80046c8: 4618 mov r0, r3
  9541. 80046ca: f008 f923 bl 800c914 <HAL_RCC_GetClockConfig>
  9542. /* Get APB1 prescaler */
  9543. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  9544. 80046ce: 6abb ldr r3, [r7, #40] @ 0x28
  9545. 80046d0: 63bb str r3, [r7, #56] @ 0x38
  9546. /* Compute TIM6 clock */
  9547. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  9548. 80046d2: 6bbb ldr r3, [r7, #56] @ 0x38
  9549. 80046d4: 2b00 cmp r3, #0
  9550. 80046d6: d106 bne.n 80046e6 <HAL_InitTick+0x6a>
  9551. 80046d8: e001 b.n 80046de <HAL_InitTick+0x62>
  9552. return HAL_ERROR;
  9553. 80046da: 2301 movs r3, #1
  9554. 80046dc: e02b b.n 8004736 <HAL_InitTick+0xba>
  9555. {
  9556. uwTimclock = HAL_RCC_GetPCLK1Freq();
  9557. 80046de: f008 f8ed bl 800c8bc <HAL_RCC_GetPCLK1Freq>
  9558. 80046e2: 63f8 str r0, [r7, #60] @ 0x3c
  9559. 80046e4: e004 b.n 80046f0 <HAL_InitTick+0x74>
  9560. }
  9561. else
  9562. {
  9563. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  9564. 80046e6: f008 f8e9 bl 800c8bc <HAL_RCC_GetPCLK1Freq>
  9565. 80046ea: 4603 mov r3, r0
  9566. 80046ec: 005b lsls r3, r3, #1
  9567. 80046ee: 63fb str r3, [r7, #60] @ 0x3c
  9568. }
  9569. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  9570. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  9571. 80046f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  9572. 80046f2: 4a15 ldr r2, [pc, #84] @ (8004748 <HAL_InitTick+0xcc>)
  9573. 80046f4: fba2 2303 umull r2, r3, r2, r3
  9574. 80046f8: 0c9b lsrs r3, r3, #18
  9575. 80046fa: 3b01 subs r3, #1
  9576. 80046fc: 637b str r3, [r7, #52] @ 0x34
  9577. /* Initialize TIM6 */
  9578. htim6.Instance = TIM6;
  9579. 80046fe: 4b13 ldr r3, [pc, #76] @ (800474c <HAL_InitTick+0xd0>)
  9580. 8004700: 4a13 ldr r2, [pc, #76] @ (8004750 <HAL_InitTick+0xd4>)
  9581. 8004702: 601a str r2, [r3, #0]
  9582. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  9583. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  9584. + ClockDivision = 0
  9585. + Counter direction = Up
  9586. */
  9587. htim6.Init.Period = (1000000U / 1000U) - 1U;
  9588. 8004704: 4b11 ldr r3, [pc, #68] @ (800474c <HAL_InitTick+0xd0>)
  9589. 8004706: f240 32e7 movw r2, #999 @ 0x3e7
  9590. 800470a: 60da str r2, [r3, #12]
  9591. htim6.Init.Prescaler = uwPrescalerValue;
  9592. 800470c: 4a0f ldr r2, [pc, #60] @ (800474c <HAL_InitTick+0xd0>)
  9593. 800470e: 6b7b ldr r3, [r7, #52] @ 0x34
  9594. 8004710: 6053 str r3, [r2, #4]
  9595. htim6.Init.ClockDivision = 0;
  9596. 8004712: 4b0e ldr r3, [pc, #56] @ (800474c <HAL_InitTick+0xd0>)
  9597. 8004714: 2200 movs r2, #0
  9598. 8004716: 611a str r2, [r3, #16]
  9599. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  9600. 8004718: 4b0c ldr r3, [pc, #48] @ (800474c <HAL_InitTick+0xd0>)
  9601. 800471a: 2200 movs r2, #0
  9602. 800471c: 609a str r2, [r3, #8]
  9603. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  9604. 800471e: 480b ldr r0, [pc, #44] @ (800474c <HAL_InitTick+0xd0>)
  9605. 8004720: f00a fe7e bl 800f420 <HAL_TIM_Base_Init>
  9606. 8004724: 4603 mov r3, r0
  9607. 8004726: 2b00 cmp r3, #0
  9608. 8004728: d104 bne.n 8004734 <HAL_InitTick+0xb8>
  9609. {
  9610. /* Start the TIM time Base generation in interrupt mode */
  9611. return HAL_TIM_Base_Start_IT(&htim6);
  9612. 800472a: 4808 ldr r0, [pc, #32] @ (800474c <HAL_InitTick+0xd0>)
  9613. 800472c: f00a ff40 bl 800f5b0 <HAL_TIM_Base_Start_IT>
  9614. 8004730: 4603 mov r3, r0
  9615. 8004732: e000 b.n 8004736 <HAL_InitTick+0xba>
  9616. }
  9617. /* Return function status */
  9618. return HAL_ERROR;
  9619. 8004734: 2301 movs r3, #1
  9620. }
  9621. 8004736: 4618 mov r0, r3
  9622. 8004738: 3740 adds r7, #64 @ 0x40
  9623. 800473a: 46bd mov sp, r7
  9624. 800473c: bd80 pop {r7, pc}
  9625. 800473e: bf00 nop
  9626. 8004740: 2400003c .word 0x2400003c
  9627. 8004744: 58024400 .word 0x58024400
  9628. 8004748: 431bde83 .word 0x431bde83
  9629. 800474c: 24000920 .word 0x24000920
  9630. 8004750: 40001000 .word 0x40001000
  9631. 08004754 <NMI_Handler>:
  9632. /******************************************************************************/
  9633. /**
  9634. * @brief This function handles Non maskable interrupt.
  9635. */
  9636. void NMI_Handler(void)
  9637. {
  9638. 8004754: b480 push {r7}
  9639. 8004756: af00 add r7, sp, #0
  9640. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  9641. /* USER CODE END NonMaskableInt_IRQn 0 */
  9642. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  9643. while (1)
  9644. 8004758: bf00 nop
  9645. 800475a: e7fd b.n 8004758 <NMI_Handler+0x4>
  9646. 0800475c <HardFault_Handler>:
  9647. /**
  9648. * @brief This function handles Hard fault interrupt.
  9649. */
  9650. void HardFault_Handler(void)
  9651. {
  9652. 800475c: b480 push {r7}
  9653. 800475e: af00 add r7, sp, #0
  9654. /* USER CODE BEGIN HardFault_IRQn 0 */
  9655. /* USER CODE END HardFault_IRQn 0 */
  9656. while (1)
  9657. 8004760: bf00 nop
  9658. 8004762: e7fd b.n 8004760 <HardFault_Handler+0x4>
  9659. 08004764 <MemManage_Handler>:
  9660. /**
  9661. * @brief This function handles Memory management fault.
  9662. */
  9663. void MemManage_Handler(void)
  9664. {
  9665. 8004764: b480 push {r7}
  9666. 8004766: af00 add r7, sp, #0
  9667. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  9668. /* USER CODE END MemoryManagement_IRQn 0 */
  9669. while (1)
  9670. 8004768: bf00 nop
  9671. 800476a: e7fd b.n 8004768 <MemManage_Handler+0x4>
  9672. 0800476c <BusFault_Handler>:
  9673. /**
  9674. * @brief This function handles Pre-fetch fault, memory access fault.
  9675. */
  9676. void BusFault_Handler(void)
  9677. {
  9678. 800476c: b480 push {r7}
  9679. 800476e: af00 add r7, sp, #0
  9680. /* USER CODE BEGIN BusFault_IRQn 0 */
  9681. /* USER CODE END BusFault_IRQn 0 */
  9682. while (1)
  9683. 8004770: bf00 nop
  9684. 8004772: e7fd b.n 8004770 <BusFault_Handler+0x4>
  9685. 08004774 <UsageFault_Handler>:
  9686. /**
  9687. * @brief This function handles Undefined instruction or illegal state.
  9688. */
  9689. void UsageFault_Handler(void)
  9690. {
  9691. 8004774: b480 push {r7}
  9692. 8004776: af00 add r7, sp, #0
  9693. /* USER CODE BEGIN UsageFault_IRQn 0 */
  9694. /* USER CODE END UsageFault_IRQn 0 */
  9695. while (1)
  9696. 8004778: bf00 nop
  9697. 800477a: e7fd b.n 8004778 <UsageFault_Handler+0x4>
  9698. 0800477c <DebugMon_Handler>:
  9699. /**
  9700. * @brief This function handles Debug monitor.
  9701. */
  9702. void DebugMon_Handler(void)
  9703. {
  9704. 800477c: b480 push {r7}
  9705. 800477e: af00 add r7, sp, #0
  9706. /* USER CODE END DebugMonitor_IRQn 0 */
  9707. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  9708. /* USER CODE END DebugMonitor_IRQn 1 */
  9709. }
  9710. 8004780: bf00 nop
  9711. 8004782: 46bd mov sp, r7
  9712. 8004784: f85d 7b04 ldr.w r7, [sp], #4
  9713. 8004788: 4770 bx lr
  9714. 0800478a <RCC_IRQHandler>:
  9715. /**
  9716. * @brief This function handles RCC global interrupt.
  9717. */
  9718. void RCC_IRQHandler(void)
  9719. {
  9720. 800478a: b480 push {r7}
  9721. 800478c: af00 add r7, sp, #0
  9722. /* USER CODE END RCC_IRQn 0 */
  9723. /* USER CODE BEGIN RCC_IRQn 1 */
  9724. /* USER CODE END RCC_IRQn 1 */
  9725. }
  9726. 800478e: bf00 nop
  9727. 8004790: 46bd mov sp, r7
  9728. 8004792: f85d 7b04 ldr.w r7, [sp], #4
  9729. 8004796: 4770 bx lr
  9730. 08004798 <DMA1_Stream0_IRQHandler>:
  9731. /**
  9732. * @brief This function handles DMA1 stream0 global interrupt.
  9733. */
  9734. void DMA1_Stream0_IRQHandler(void)
  9735. {
  9736. 8004798: b580 push {r7, lr}
  9737. 800479a: af00 add r7, sp, #0
  9738. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  9739. /* USER CODE END DMA1_Stream0_IRQn 0 */
  9740. HAL_DMA_IRQHandler(&hdma_adc1);
  9741. 800479c: 4802 ldr r0, [pc, #8] @ (80047a8 <DMA1_Stream0_IRQHandler+0x10>)
  9742. 800479e: f005 fa03 bl 8009ba8 <HAL_DMA_IRQHandler>
  9743. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  9744. /* USER CODE END DMA1_Stream0_IRQn 1 */
  9745. }
  9746. 80047a2: bf00 nop
  9747. 80047a4: bd80 pop {r7, pc}
  9748. 80047a6: bf00 nop
  9749. 80047a8: 2400024c .word 0x2400024c
  9750. 080047ac <DMA1_Stream1_IRQHandler>:
  9751. /**
  9752. * @brief This function handles DMA1 stream1 global interrupt.
  9753. */
  9754. void DMA1_Stream1_IRQHandler(void)
  9755. {
  9756. 80047ac: b580 push {r7, lr}
  9757. 80047ae: af00 add r7, sp, #0
  9758. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  9759. /* USER CODE END DMA1_Stream1_IRQn 0 */
  9760. HAL_DMA_IRQHandler(&hdma_adc2);
  9761. 80047b0: 4802 ldr r0, [pc, #8] @ (80047bc <DMA1_Stream1_IRQHandler+0x10>)
  9762. 80047b2: f005 f9f9 bl 8009ba8 <HAL_DMA_IRQHandler>
  9763. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  9764. /* USER CODE END DMA1_Stream1_IRQn 1 */
  9765. }
  9766. 80047b6: bf00 nop
  9767. 80047b8: bd80 pop {r7, pc}
  9768. 80047ba: bf00 nop
  9769. 80047bc: 240002c4 .word 0x240002c4
  9770. 080047c0 <DMA1_Stream2_IRQHandler>:
  9771. /**
  9772. * @brief This function handles DMA1 stream2 global interrupt.
  9773. */
  9774. void DMA1_Stream2_IRQHandler(void)
  9775. {
  9776. 80047c0: b580 push {r7, lr}
  9777. 80047c2: af00 add r7, sp, #0
  9778. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  9779. /* USER CODE END DMA1_Stream2_IRQn 0 */
  9780. HAL_DMA_IRQHandler(&hdma_adc3);
  9781. 80047c4: 4802 ldr r0, [pc, #8] @ (80047d0 <DMA1_Stream2_IRQHandler+0x10>)
  9782. 80047c6: f005 f9ef bl 8009ba8 <HAL_DMA_IRQHandler>
  9783. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  9784. /* USER CODE END DMA1_Stream2_IRQn 1 */
  9785. }
  9786. 80047ca: bf00 nop
  9787. 80047cc: bd80 pop {r7, pc}
  9788. 80047ce: bf00 nop
  9789. 80047d0: 2400033c .word 0x2400033c
  9790. 080047d4 <EXTI9_5_IRQHandler>:
  9791. /**
  9792. * @brief This function handles EXTI line[9:5] interrupts.
  9793. */
  9794. void EXTI9_5_IRQHandler(void)
  9795. {
  9796. 80047d4: b580 push {r7, lr}
  9797. 80047d6: af00 add r7, sp, #0
  9798. /* USER CODE BEGIN EXTI9_5_IRQn 0 */
  9799. /* USER CODE END EXTI9_5_IRQn 0 */
  9800. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
  9801. 80047d8: f44f 7080 mov.w r0, #256 @ 0x100
  9802. 80047dc: f006 fef1 bl 800b5c2 <HAL_GPIO_EXTI_IRQHandler>
  9803. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_9);
  9804. 80047e0: f44f 7000 mov.w r0, #512 @ 0x200
  9805. 80047e4: f006 feed bl 800b5c2 <HAL_GPIO_EXTI_IRQHandler>
  9806. /* USER CODE BEGIN EXTI9_5_IRQn 1 */
  9807. /* USER CODE END EXTI9_5_IRQn 1 */
  9808. }
  9809. 80047e8: bf00 nop
  9810. 80047ea: bd80 pop {r7, pc}
  9811. 080047ec <TIM2_IRQHandler>:
  9812. /**
  9813. * @brief This function handles TIM2 global interrupt.
  9814. */
  9815. void TIM2_IRQHandler(void)
  9816. {
  9817. 80047ec: b580 push {r7, lr}
  9818. 80047ee: af00 add r7, sp, #0
  9819. /* USER CODE BEGIN TIM2_IRQn 0 */
  9820. /* USER CODE END TIM2_IRQn 0 */
  9821. HAL_TIM_IRQHandler(&htim2);
  9822. 80047f0: 4802 ldr r0, [pc, #8] @ (80047fc <TIM2_IRQHandler+0x10>)
  9823. 80047f2: f00b fb03 bl 800fdfc <HAL_TIM_IRQHandler>
  9824. /* USER CODE BEGIN TIM2_IRQn 1 */
  9825. /* USER CODE END TIM2_IRQn 1 */
  9826. }
  9827. 80047f6: bf00 nop
  9828. 80047f8: bd80 pop {r7, pc}
  9829. 80047fa: bf00 nop
  9830. 80047fc: 24000488 .word 0x24000488
  9831. 08004800 <TIM4_IRQHandler>:
  9832. /**
  9833. * @brief This function handles TIM4 global interrupt.
  9834. */
  9835. void TIM4_IRQHandler(void)
  9836. {
  9837. 8004800: b580 push {r7, lr}
  9838. 8004802: af00 add r7, sp, #0
  9839. /* USER CODE BEGIN TIM4_IRQn 0 */
  9840. /* USER CODE END TIM4_IRQn 0 */
  9841. HAL_TIM_IRQHandler(&htim4);
  9842. 8004804: 4802 ldr r0, [pc, #8] @ (8004810 <TIM4_IRQHandler+0x10>)
  9843. 8004806: f00b faf9 bl 800fdfc <HAL_TIM_IRQHandler>
  9844. /* USER CODE BEGIN TIM4_IRQn 1 */
  9845. /* USER CODE END TIM4_IRQn 1 */
  9846. }
  9847. 800480a: bf00 nop
  9848. 800480c: bd80 pop {r7, pc}
  9849. 800480e: bf00 nop
  9850. 8004810: 24000520 .word 0x24000520
  9851. 08004814 <USART1_IRQHandler>:
  9852. /**
  9853. * @brief This function handles USART1 global interrupt.
  9854. */
  9855. void USART1_IRQHandler(void)
  9856. {
  9857. 8004814: b580 push {r7, lr}
  9858. 8004816: af00 add r7, sp, #0
  9859. /* USER CODE BEGIN USART1_IRQn 0 */
  9860. /* USER CODE END USART1_IRQn 0 */
  9861. HAL_UART_IRQHandler(&huart1);
  9862. 8004818: 4802 ldr r0, [pc, #8] @ (8004824 <USART1_IRQHandler+0x10>)
  9863. 800481a: f00c feb3 bl 8011584 <HAL_UART_IRQHandler>
  9864. /* USER CODE BEGIN USART1_IRQn 1 */
  9865. /* USER CODE END USART1_IRQn 1 */
  9866. }
  9867. 800481e: bf00 nop
  9868. 8004820: bd80 pop {r7, pc}
  9869. 8004822: bf00 nop
  9870. 8004824: 2400064c .word 0x2400064c
  9871. 08004828 <EXTI15_10_IRQHandler>:
  9872. /**
  9873. * @brief This function handles EXTI line[15:10] interrupts.
  9874. */
  9875. void EXTI15_10_IRQHandler(void)
  9876. {
  9877. 8004828: b580 push {r7, lr}
  9878. 800482a: af00 add r7, sp, #0
  9879. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  9880. /* USER CODE END EXTI15_10_IRQn 0 */
  9881. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  9882. 800482c: f44f 6080 mov.w r0, #1024 @ 0x400
  9883. 8004830: f006 fec7 bl 800b5c2 <HAL_GPIO_EXTI_IRQHandler>
  9884. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  9885. 8004834: f44f 6000 mov.w r0, #2048 @ 0x800
  9886. 8004838: f006 fec3 bl 800b5c2 <HAL_GPIO_EXTI_IRQHandler>
  9887. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12);
  9888. 800483c: f44f 5080 mov.w r0, #4096 @ 0x1000
  9889. 8004840: f006 febf bl 800b5c2 <HAL_GPIO_EXTI_IRQHandler>
  9890. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  9891. 8004844: f44f 5000 mov.w r0, #8192 @ 0x2000
  9892. 8004848: f006 febb bl 800b5c2 <HAL_GPIO_EXTI_IRQHandler>
  9893. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  9894. /* USER CODE END EXTI15_10_IRQn 1 */
  9895. }
  9896. 800484c: bf00 nop
  9897. 800484e: bd80 pop {r7, pc}
  9898. 08004850 <TIM6_DAC_IRQHandler>:
  9899. /**
  9900. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  9901. */
  9902. void TIM6_DAC_IRQHandler(void)
  9903. {
  9904. 8004850: b580 push {r7, lr}
  9905. 8004852: af00 add r7, sp, #0
  9906. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  9907. /* USER CODE END TIM6_DAC_IRQn 0 */
  9908. if (hdac1.State != HAL_DAC_STATE_RESET) {
  9909. 8004854: 4b06 ldr r3, [pc, #24] @ (8004870 <TIM6_DAC_IRQHandler+0x20>)
  9910. 8004856: 791b ldrb r3, [r3, #4]
  9911. 8004858: b2db uxtb r3, r3
  9912. 800485a: 2b00 cmp r3, #0
  9913. 800485c: d002 beq.n 8004864 <TIM6_DAC_IRQHandler+0x14>
  9914. HAL_DAC_IRQHandler(&hdac1);
  9915. 800485e: 4804 ldr r0, [pc, #16] @ (8004870 <TIM6_DAC_IRQHandler+0x20>)
  9916. 8004860: f003 fca1 bl 80081a6 <HAL_DAC_IRQHandler>
  9917. }
  9918. HAL_TIM_IRQHandler(&htim6);
  9919. 8004864: 4803 ldr r0, [pc, #12] @ (8004874 <TIM6_DAC_IRQHandler+0x24>)
  9920. 8004866: f00b fac9 bl 800fdfc <HAL_TIM_IRQHandler>
  9921. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  9922. /* USER CODE END TIM6_DAC_IRQn 1 */
  9923. }
  9924. 800486a: bf00 nop
  9925. 800486c: bd80 pop {r7, pc}
  9926. 800486e: bf00 nop
  9927. 8004870: 24000404 .word 0x24000404
  9928. 8004874: 24000920 .word 0x24000920
  9929. 08004878 <UART8_IRQHandler>:
  9930. /**
  9931. * @brief This function handles UART8 global interrupt.
  9932. */
  9933. void UART8_IRQHandler(void)
  9934. {
  9935. 8004878: b580 push {r7, lr}
  9936. 800487a: af00 add r7, sp, #0
  9937. /* USER CODE BEGIN UART8_IRQn 0 */
  9938. /* USER CODE END UART8_IRQn 0 */
  9939. HAL_UART_IRQHandler(&huart8);
  9940. 800487c: 4802 ldr r0, [pc, #8] @ (8004888 <UART8_IRQHandler+0x10>)
  9941. 800487e: f00c fe81 bl 8011584 <HAL_UART_IRQHandler>
  9942. /* USER CODE BEGIN UART8_IRQn 1 */
  9943. /* USER CODE END UART8_IRQn 1 */
  9944. }
  9945. 8004882: bf00 nop
  9946. 8004884: bd80 pop {r7, pc}
  9947. 8004886: bf00 nop
  9948. 8004888: 240005b8 .word 0x240005b8
  9949. 0800488c <SystemInit>:
  9950. * configuration.
  9951. * @param None
  9952. * @retval None
  9953. */
  9954. void SystemInit (void)
  9955. {
  9956. 800488c: b480 push {r7}
  9957. 800488e: af00 add r7, sp, #0
  9958. __IO uint32_t tmpreg;
  9959. #endif /* DATA_IN_D2_SRAM */
  9960. /* FPU settings ------------------------------------------------------------*/
  9961. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  9962. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  9963. 8004890: 4b37 ldr r3, [pc, #220] @ (8004970 <SystemInit+0xe4>)
  9964. 8004892: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  9965. 8004896: 4a36 ldr r2, [pc, #216] @ (8004970 <SystemInit+0xe4>)
  9966. 8004898: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  9967. 800489c: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  9968. #endif
  9969. /* Reset the RCC clock configuration to the default reset state ------------*/
  9970. /* Increasing the CPU frequency */
  9971. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9972. 80048a0: 4b34 ldr r3, [pc, #208] @ (8004974 <SystemInit+0xe8>)
  9973. 80048a2: 681b ldr r3, [r3, #0]
  9974. 80048a4: f003 030f and.w r3, r3, #15
  9975. 80048a8: 2b06 cmp r3, #6
  9976. 80048aa: d807 bhi.n 80048bc <SystemInit+0x30>
  9977. {
  9978. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9979. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9980. 80048ac: 4b31 ldr r3, [pc, #196] @ (8004974 <SystemInit+0xe8>)
  9981. 80048ae: 681b ldr r3, [r3, #0]
  9982. 80048b0: f023 030f bic.w r3, r3, #15
  9983. 80048b4: 4a2f ldr r2, [pc, #188] @ (8004974 <SystemInit+0xe8>)
  9984. 80048b6: f043 0307 orr.w r3, r3, #7
  9985. 80048ba: 6013 str r3, [r2, #0]
  9986. }
  9987. /* Set HSION bit */
  9988. RCC->CR |= RCC_CR_HSION;
  9989. 80048bc: 4b2e ldr r3, [pc, #184] @ (8004978 <SystemInit+0xec>)
  9990. 80048be: 681b ldr r3, [r3, #0]
  9991. 80048c0: 4a2d ldr r2, [pc, #180] @ (8004978 <SystemInit+0xec>)
  9992. 80048c2: f043 0301 orr.w r3, r3, #1
  9993. 80048c6: 6013 str r3, [r2, #0]
  9994. /* Reset CFGR register */
  9995. RCC->CFGR = 0x00000000;
  9996. 80048c8: 4b2b ldr r3, [pc, #172] @ (8004978 <SystemInit+0xec>)
  9997. 80048ca: 2200 movs r2, #0
  9998. 80048cc: 611a str r2, [r3, #16]
  9999. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  10000. RCC->CR &= 0xEAF6ED7FU;
  10001. 80048ce: 4b2a ldr r3, [pc, #168] @ (8004978 <SystemInit+0xec>)
  10002. 80048d0: 681a ldr r2, [r3, #0]
  10003. 80048d2: 4929 ldr r1, [pc, #164] @ (8004978 <SystemInit+0xec>)
  10004. 80048d4: 4b29 ldr r3, [pc, #164] @ (800497c <SystemInit+0xf0>)
  10005. 80048d6: 4013 ands r3, r2
  10006. 80048d8: 600b str r3, [r1, #0]
  10007. /* Decreasing the number of wait states because of lower CPU frequency */
  10008. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  10009. 80048da: 4b26 ldr r3, [pc, #152] @ (8004974 <SystemInit+0xe8>)
  10010. 80048dc: 681b ldr r3, [r3, #0]
  10011. 80048de: f003 0308 and.w r3, r3, #8
  10012. 80048e2: 2b00 cmp r3, #0
  10013. 80048e4: d007 beq.n 80048f6 <SystemInit+0x6a>
  10014. {
  10015. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  10016. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  10017. 80048e6: 4b23 ldr r3, [pc, #140] @ (8004974 <SystemInit+0xe8>)
  10018. 80048e8: 681b ldr r3, [r3, #0]
  10019. 80048ea: f023 030f bic.w r3, r3, #15
  10020. 80048ee: 4a21 ldr r2, [pc, #132] @ (8004974 <SystemInit+0xe8>)
  10021. 80048f0: f043 0307 orr.w r3, r3, #7
  10022. 80048f4: 6013 str r3, [r2, #0]
  10023. }
  10024. #if defined(D3_SRAM_BASE)
  10025. /* Reset D1CFGR register */
  10026. RCC->D1CFGR = 0x00000000;
  10027. 80048f6: 4b20 ldr r3, [pc, #128] @ (8004978 <SystemInit+0xec>)
  10028. 80048f8: 2200 movs r2, #0
  10029. 80048fa: 619a str r2, [r3, #24]
  10030. /* Reset D2CFGR register */
  10031. RCC->D2CFGR = 0x00000000;
  10032. 80048fc: 4b1e ldr r3, [pc, #120] @ (8004978 <SystemInit+0xec>)
  10033. 80048fe: 2200 movs r2, #0
  10034. 8004900: 61da str r2, [r3, #28]
  10035. /* Reset D3CFGR register */
  10036. RCC->D3CFGR = 0x00000000;
  10037. 8004902: 4b1d ldr r3, [pc, #116] @ (8004978 <SystemInit+0xec>)
  10038. 8004904: 2200 movs r2, #0
  10039. 8004906: 621a str r2, [r3, #32]
  10040. /* Reset SRDCFGR register */
  10041. RCC->SRDCFGR = 0x00000000;
  10042. #endif
  10043. /* Reset PLLCKSELR register */
  10044. RCC->PLLCKSELR = 0x02020200;
  10045. 8004908: 4b1b ldr r3, [pc, #108] @ (8004978 <SystemInit+0xec>)
  10046. 800490a: 4a1d ldr r2, [pc, #116] @ (8004980 <SystemInit+0xf4>)
  10047. 800490c: 629a str r2, [r3, #40] @ 0x28
  10048. /* Reset PLLCFGR register */
  10049. RCC->PLLCFGR = 0x01FF0000;
  10050. 800490e: 4b1a ldr r3, [pc, #104] @ (8004978 <SystemInit+0xec>)
  10051. 8004910: 4a1c ldr r2, [pc, #112] @ (8004984 <SystemInit+0xf8>)
  10052. 8004912: 62da str r2, [r3, #44] @ 0x2c
  10053. /* Reset PLL1DIVR register */
  10054. RCC->PLL1DIVR = 0x01010280;
  10055. 8004914: 4b18 ldr r3, [pc, #96] @ (8004978 <SystemInit+0xec>)
  10056. 8004916: 4a1c ldr r2, [pc, #112] @ (8004988 <SystemInit+0xfc>)
  10057. 8004918: 631a str r2, [r3, #48] @ 0x30
  10058. /* Reset PLL1FRACR register */
  10059. RCC->PLL1FRACR = 0x00000000;
  10060. 800491a: 4b17 ldr r3, [pc, #92] @ (8004978 <SystemInit+0xec>)
  10061. 800491c: 2200 movs r2, #0
  10062. 800491e: 635a str r2, [r3, #52] @ 0x34
  10063. /* Reset PLL2DIVR register */
  10064. RCC->PLL2DIVR = 0x01010280;
  10065. 8004920: 4b15 ldr r3, [pc, #84] @ (8004978 <SystemInit+0xec>)
  10066. 8004922: 4a19 ldr r2, [pc, #100] @ (8004988 <SystemInit+0xfc>)
  10067. 8004924: 639a str r2, [r3, #56] @ 0x38
  10068. /* Reset PLL2FRACR register */
  10069. RCC->PLL2FRACR = 0x00000000;
  10070. 8004926: 4b14 ldr r3, [pc, #80] @ (8004978 <SystemInit+0xec>)
  10071. 8004928: 2200 movs r2, #0
  10072. 800492a: 63da str r2, [r3, #60] @ 0x3c
  10073. /* Reset PLL3DIVR register */
  10074. RCC->PLL3DIVR = 0x01010280;
  10075. 800492c: 4b12 ldr r3, [pc, #72] @ (8004978 <SystemInit+0xec>)
  10076. 800492e: 4a16 ldr r2, [pc, #88] @ (8004988 <SystemInit+0xfc>)
  10077. 8004930: 641a str r2, [r3, #64] @ 0x40
  10078. /* Reset PLL3FRACR register */
  10079. RCC->PLL3FRACR = 0x00000000;
  10080. 8004932: 4b11 ldr r3, [pc, #68] @ (8004978 <SystemInit+0xec>)
  10081. 8004934: 2200 movs r2, #0
  10082. 8004936: 645a str r2, [r3, #68] @ 0x44
  10083. /* Reset HSEBYP bit */
  10084. RCC->CR &= 0xFFFBFFFFU;
  10085. 8004938: 4b0f ldr r3, [pc, #60] @ (8004978 <SystemInit+0xec>)
  10086. 800493a: 681b ldr r3, [r3, #0]
  10087. 800493c: 4a0e ldr r2, [pc, #56] @ (8004978 <SystemInit+0xec>)
  10088. 800493e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  10089. 8004942: 6013 str r3, [r2, #0]
  10090. /* Disable all interrupts */
  10091. RCC->CIER = 0x00000000;
  10092. 8004944: 4b0c ldr r3, [pc, #48] @ (8004978 <SystemInit+0xec>)
  10093. 8004946: 2200 movs r2, #0
  10094. 8004948: 661a str r2, [r3, #96] @ 0x60
  10095. #if (STM32H7_DEV_ID == 0x450UL)
  10096. /* dual core CM7 or single core line */
  10097. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  10098. 800494a: 4b10 ldr r3, [pc, #64] @ (800498c <SystemInit+0x100>)
  10099. 800494c: 681a ldr r2, [r3, #0]
  10100. 800494e: 4b10 ldr r3, [pc, #64] @ (8004990 <SystemInit+0x104>)
  10101. 8004950: 4013 ands r3, r2
  10102. 8004952: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  10103. 8004956: d202 bcs.n 800495e <SystemInit+0xd2>
  10104. {
  10105. /* if stm32h7 revY*/
  10106. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  10107. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  10108. 8004958: 4b0e ldr r3, [pc, #56] @ (8004994 <SystemInit+0x108>)
  10109. 800495a: 2201 movs r2, #1
  10110. 800495c: 601a str r2, [r3, #0]
  10111. /*
  10112. * Disable the FMC bank1 (enabled after reset).
  10113. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  10114. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  10115. */
  10116. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  10117. 800495e: 4b0e ldr r3, [pc, #56] @ (8004998 <SystemInit+0x10c>)
  10118. 8004960: f243 02d2 movw r2, #12498 @ 0x30d2
  10119. 8004964: 601a str r2, [r3, #0]
  10120. #if defined(USER_VECT_TAB_ADDRESS)
  10121. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  10122. #endif /* USER_VECT_TAB_ADDRESS */
  10123. #endif /*DUAL_CORE && CORE_CM4*/
  10124. }
  10125. 8004966: bf00 nop
  10126. 8004968: 46bd mov sp, r7
  10127. 800496a: f85d 7b04 ldr.w r7, [sp], #4
  10128. 800496e: 4770 bx lr
  10129. 8004970: e000ed00 .word 0xe000ed00
  10130. 8004974: 52002000 .word 0x52002000
  10131. 8004978: 58024400 .word 0x58024400
  10132. 800497c: eaf6ed7f .word 0xeaf6ed7f
  10133. 8004980: 02020200 .word 0x02020200
  10134. 8004984: 01ff0000 .word 0x01ff0000
  10135. 8004988: 01010280 .word 0x01010280
  10136. 800498c: 5c001000 .word 0x5c001000
  10137. 8004990: ffff0000 .word 0xffff0000
  10138. 8004994: 51008108 .word 0x51008108
  10139. 8004998: 52004000 .word 0x52004000
  10140. 0800499c <__NVIC_SystemReset>:
  10141. {
  10142. 800499c: b480 push {r7}
  10143. 800499e: af00 add r7, sp, #0
  10144. __ASM volatile ("dsb 0xF":::"memory");
  10145. 80049a0: f3bf 8f4f dsb sy
  10146. }
  10147. 80049a4: bf00 nop
  10148. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  10149. 80049a6: 4b06 ldr r3, [pc, #24] @ (80049c0 <__NVIC_SystemReset+0x24>)
  10150. 80049a8: 68db ldr r3, [r3, #12]
  10151. 80049aa: f403 62e0 and.w r2, r3, #1792 @ 0x700
  10152. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  10153. 80049ae: 4904 ldr r1, [pc, #16] @ (80049c0 <__NVIC_SystemReset+0x24>)
  10154. 80049b0: 4b04 ldr r3, [pc, #16] @ (80049c4 <__NVIC_SystemReset+0x28>)
  10155. 80049b2: 4313 orrs r3, r2
  10156. 80049b4: 60cb str r3, [r1, #12]
  10157. __ASM volatile ("dsb 0xF":::"memory");
  10158. 80049b6: f3bf 8f4f dsb sy
  10159. }
  10160. 80049ba: bf00 nop
  10161. __NOP();
  10162. 80049bc: bf00 nop
  10163. 80049be: e7fd b.n 80049bc <__NVIC_SystemReset+0x20>
  10164. 80049c0: e000ed00 .word 0xe000ed00
  10165. 80049c4: 05fa0004 .word 0x05fa0004
  10166. 080049c8 <UartTasksInit>:
  10167. uint8_t outputDataBuffer[OUTPUT_DATA_BUFF_SIZE];
  10168. uint16_t outputDataBufferPos = 0;
  10169. extern RNG_HandleTypeDef hrng;
  10170. void UartTasksInit (void) {
  10171. 80049c8: b580 push {r7, lr}
  10172. 80049ca: af00 add r7, sp, #0
  10173. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  10174. 80049cc: 4b24 ldr r3, [pc, #144] @ (8004a60 <UartTasksInit+0x98>)
  10175. 80049ce: 4a25 ldr r2, [pc, #148] @ (8004a64 <UartTasksInit+0x9c>)
  10176. 80049d0: 601a str r2, [r3, #0]
  10177. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  10178. 80049d2: 4b23 ldr r3, [pc, #140] @ (8004a60 <UartTasksInit+0x98>)
  10179. 80049d4: f44f 7280 mov.w r2, #256 @ 0x100
  10180. 80049d8: 809a strh r2, [r3, #4]
  10181. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  10182. 80049da: 4b21 ldr r3, [pc, #132] @ (8004a60 <UartTasksInit+0x98>)
  10183. 80049dc: 4a22 ldr r2, [pc, #136] @ (8004a68 <UartTasksInit+0xa0>)
  10184. 80049de: 609a str r2, [r3, #8]
  10185. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  10186. 80049e0: 4b1f ldr r3, [pc, #124] @ (8004a60 <UartTasksInit+0x98>)
  10187. 80049e2: f44f 7280 mov.w r2, #256 @ 0x100
  10188. 80049e6: 809a strh r2, [r3, #4]
  10189. uart1TaskData.frameData = uart1TaskFrameData;
  10190. 80049e8: 4b1d ldr r3, [pc, #116] @ (8004a60 <UartTasksInit+0x98>)
  10191. 80049ea: 4a20 ldr r2, [pc, #128] @ (8004a6c <UartTasksInit+0xa4>)
  10192. 80049ec: 611a str r2, [r3, #16]
  10193. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  10194. 80049ee: 4b1c ldr r3, [pc, #112] @ (8004a60 <UartTasksInit+0x98>)
  10195. 80049f0: f44f 7280 mov.w r2, #256 @ 0x100
  10196. 80049f4: 829a strh r2, [r3, #20]
  10197. uart1TaskData.huart = &huart1;
  10198. 80049f6: 4b1a ldr r3, [pc, #104] @ (8004a60 <UartTasksInit+0x98>)
  10199. 80049f8: 4a1d ldr r2, [pc, #116] @ (8004a70 <UartTasksInit+0xa8>)
  10200. 80049fa: 631a str r2, [r3, #48] @ 0x30
  10201. uart1TaskData.uartNumber = 1;
  10202. 80049fc: 4b18 ldr r3, [pc, #96] @ (8004a60 <UartTasksInit+0x98>)
  10203. 80049fe: 2201 movs r2, #1
  10204. 8004a00: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10205. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  10206. 8004a04: 4b16 ldr r3, [pc, #88] @ (8004a60 <UartTasksInit+0x98>)
  10207. 8004a06: 4a1b ldr r2, [pc, #108] @ (8004a74 <UartTasksInit+0xac>)
  10208. 8004a08: 629a str r2, [r3, #40] @ 0x28
  10209. uart1TaskData.processRxDataMsgBuffer = NULL;
  10210. 8004a0a: 4b15 ldr r3, [pc, #84] @ (8004a60 <UartTasksInit+0x98>)
  10211. 8004a0c: 2200 movs r2, #0
  10212. 8004a0e: 625a str r2, [r3, #36] @ 0x24
  10213. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  10214. 8004a10: 4b19 ldr r3, [pc, #100] @ (8004a78 <UartTasksInit+0xb0>)
  10215. 8004a12: 4a1a ldr r2, [pc, #104] @ (8004a7c <UartTasksInit+0xb4>)
  10216. 8004a14: 601a str r2, [r3, #0]
  10217. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  10218. 8004a16: 4b18 ldr r3, [pc, #96] @ (8004a78 <UartTasksInit+0xb0>)
  10219. 8004a18: f44f 7280 mov.w r2, #256 @ 0x100
  10220. 8004a1c: 809a strh r2, [r3, #4]
  10221. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  10222. 8004a1e: 4b16 ldr r3, [pc, #88] @ (8004a78 <UartTasksInit+0xb0>)
  10223. 8004a20: 4a17 ldr r2, [pc, #92] @ (8004a80 <UartTasksInit+0xb8>)
  10224. 8004a22: 609a str r2, [r3, #8]
  10225. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  10226. 8004a24: 4b14 ldr r3, [pc, #80] @ (8004a78 <UartTasksInit+0xb0>)
  10227. 8004a26: f44f 7280 mov.w r2, #256 @ 0x100
  10228. 8004a2a: 809a strh r2, [r3, #4]
  10229. uart8TaskData.frameData = uart8TaskFrameData;
  10230. 8004a2c: 4b12 ldr r3, [pc, #72] @ (8004a78 <UartTasksInit+0xb0>)
  10231. 8004a2e: 4a15 ldr r2, [pc, #84] @ (8004a84 <UartTasksInit+0xbc>)
  10232. 8004a30: 611a str r2, [r3, #16]
  10233. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  10234. 8004a32: 4b11 ldr r3, [pc, #68] @ (8004a78 <UartTasksInit+0xb0>)
  10235. 8004a34: f44f 7280 mov.w r2, #256 @ 0x100
  10236. 8004a38: 829a strh r2, [r3, #20]
  10237. uart8TaskData.huart = &huart8;
  10238. 8004a3a: 4b0f ldr r3, [pc, #60] @ (8004a78 <UartTasksInit+0xb0>)
  10239. 8004a3c: 4a12 ldr r2, [pc, #72] @ (8004a88 <UartTasksInit+0xc0>)
  10240. 8004a3e: 631a str r2, [r3, #48] @ 0x30
  10241. uart8TaskData.uartNumber = 8;
  10242. 8004a40: 4b0d ldr r3, [pc, #52] @ (8004a78 <UartTasksInit+0xb0>)
  10243. 8004a42: 2208 movs r2, #8
  10244. 8004a44: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10245. uart8TaskData.processDataCb = Uart8ReceivedDataProcessCallback;
  10246. 8004a48: 4b0b ldr r3, [pc, #44] @ (8004a78 <UartTasksInit+0xb0>)
  10247. 8004a4a: 4a10 ldr r2, [pc, #64] @ (8004a8c <UartTasksInit+0xc4>)
  10248. 8004a4c: 629a str r2, [r3, #40] @ 0x28
  10249. uart8TaskData.processRxDataMsgBuffer = NULL;
  10250. 8004a4e: 4b0a ldr r3, [pc, #40] @ (8004a78 <UartTasksInit+0xb0>)
  10251. 8004a50: 2200 movs r2, #0
  10252. 8004a52: 625a str r2, [r3, #36] @ 0x24
  10253. #ifdef USE_UART8_INSTEAD_UART1
  10254. UartTaskCreate (&uart8TaskData);
  10255. #else
  10256. UartTaskCreate (&uart1TaskData);
  10257. 8004a54: 4802 ldr r0, [pc, #8] @ (8004a60 <UartTasksInit+0x98>)
  10258. 8004a56: f000 f81b bl 8004a90 <UartTaskCreate>
  10259. #endif
  10260. }
  10261. 8004a5a: bf00 nop
  10262. 8004a5c: bd80 pop {r7, pc}
  10263. 8004a5e: bf00 nop
  10264. 8004a60: 24000f6c .word 0x24000f6c
  10265. 8004a64: 2400096c .word 0x2400096c
  10266. 8004a68: 24000a6c .word 0x24000a6c
  10267. 8004a6c: 24000b6c .word 0x24000b6c
  10268. 8004a70: 2400064c .word 0x2400064c
  10269. 8004a74: 08005139 .word 0x08005139
  10270. 8004a78: 24000fa4 .word 0x24000fa4
  10271. 8004a7c: 24000c6c .word 0x24000c6c
  10272. 8004a80: 24000d6c .word 0x24000d6c
  10273. 8004a84: 24000e6c .word 0x24000e6c
  10274. 8004a88: 240005b8 .word 0x240005b8
  10275. 8004a8c: 0800511d .word 0x0800511d
  10276. 08004a90 <UartTaskCreate>:
  10277. void UartTaskCreate (UartTaskData* uartTaskData) {
  10278. 8004a90: b580 push {r7, lr}
  10279. 8004a92: b08c sub sp, #48 @ 0x30
  10280. 8004a94: af00 add r7, sp, #0
  10281. 8004a96: 6078 str r0, [r7, #4]
  10282. osThreadAttr_t osThreadAttrRxUart = { 0 };
  10283. 8004a98: f107 030c add.w r3, r7, #12
  10284. 8004a9c: 2224 movs r2, #36 @ 0x24
  10285. 8004a9e: 2100 movs r1, #0
  10286. 8004aa0: 4618 mov r0, r3
  10287. 8004aa2: f013 fc31 bl 8018308 <memset>
  10288. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  10289. 8004aa6: f44f 6380 mov.w r3, #1024 @ 0x400
  10290. 8004aaa: 623b str r3, [r7, #32]
  10291. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  10292. 8004aac: 2328 movs r3, #40 @ 0x28
  10293. 8004aae: 627b str r3, [r7, #36] @ 0x24
  10294. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  10295. 8004ab0: f107 030c add.w r3, r7, #12
  10296. 8004ab4: 461a mov r2, r3
  10297. 8004ab6: 6879 ldr r1, [r7, #4]
  10298. 8004ab8: 4804 ldr r0, [pc, #16] @ (8004acc <UartTaskCreate+0x3c>)
  10299. 8004aba: f00f fad1 bl 8014060 <osThreadNew>
  10300. 8004abe: 4602 mov r2, r0
  10301. 8004ac0: 687b ldr r3, [r7, #4]
  10302. 8004ac2: 619a str r2, [r3, #24]
  10303. }
  10304. 8004ac4: bf00 nop
  10305. 8004ac6: 3730 adds r7, #48 @ 0x30
  10306. 8004ac8: 46bd mov sp, r7
  10307. 8004aca: bd80 pop {r7, pc}
  10308. 8004acc: 08004be5 .word 0x08004be5
  10309. 08004ad0 <HAL_UART_RxCpltCallback>:
  10310. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  10311. 8004ad0: b480 push {r7}
  10312. 8004ad2: b083 sub sp, #12
  10313. 8004ad4: af00 add r7, sp, #0
  10314. 8004ad6: 6078 str r0, [r7, #4]
  10315. }
  10316. 8004ad8: bf00 nop
  10317. 8004ada: 370c adds r7, #12
  10318. 8004adc: 46bd mov sp, r7
  10319. 8004ade: f85d 7b04 ldr.w r7, [sp], #4
  10320. 8004ae2: 4770 bx lr
  10321. 08004ae4 <HAL_UARTEx_RxEventCallback>:
  10322. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  10323. 8004ae4: b580 push {r7, lr}
  10324. 8004ae6: b082 sub sp, #8
  10325. 8004ae8: af00 add r7, sp, #0
  10326. 8004aea: 6078 str r0, [r7, #4]
  10327. 8004aec: 460b mov r3, r1
  10328. 8004aee: 807b strh r3, [r7, #2]
  10329. if (huart->Instance == USART1) {
  10330. 8004af0: 687b ldr r3, [r7, #4]
  10331. 8004af2: 681b ldr r3, [r3, #0]
  10332. 8004af4: 4a0c ldr r2, [pc, #48] @ (8004b28 <HAL_UARTEx_RxEventCallback+0x44>)
  10333. 8004af6: 4293 cmp r3, r2
  10334. 8004af8: d106 bne.n 8004b08 <HAL_UARTEx_RxEventCallback+0x24>
  10335. HandleUartRxCallback (&uart1TaskData, huart, Size);
  10336. 8004afa: 887b ldrh r3, [r7, #2]
  10337. 8004afc: 461a mov r2, r3
  10338. 8004afe: 6879 ldr r1, [r7, #4]
  10339. 8004b00: 480a ldr r0, [pc, #40] @ (8004b2c <HAL_UARTEx_RxEventCallback+0x48>)
  10340. 8004b02: f000 f823 bl 8004b4c <HandleUartRxCallback>
  10341. } else if (huart->Instance == UART8) {
  10342. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10343. }
  10344. }
  10345. 8004b06: e00a b.n 8004b1e <HAL_UARTEx_RxEventCallback+0x3a>
  10346. } else if (huart->Instance == UART8) {
  10347. 8004b08: 687b ldr r3, [r7, #4]
  10348. 8004b0a: 681b ldr r3, [r3, #0]
  10349. 8004b0c: 4a08 ldr r2, [pc, #32] @ (8004b30 <HAL_UARTEx_RxEventCallback+0x4c>)
  10350. 8004b0e: 4293 cmp r3, r2
  10351. 8004b10: d105 bne.n 8004b1e <HAL_UARTEx_RxEventCallback+0x3a>
  10352. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10353. 8004b12: 887b ldrh r3, [r7, #2]
  10354. 8004b14: 461a mov r2, r3
  10355. 8004b16: 6879 ldr r1, [r7, #4]
  10356. 8004b18: 4806 ldr r0, [pc, #24] @ (8004b34 <HAL_UARTEx_RxEventCallback+0x50>)
  10357. 8004b1a: f000 f817 bl 8004b4c <HandleUartRxCallback>
  10358. }
  10359. 8004b1e: bf00 nop
  10360. 8004b20: 3708 adds r7, #8
  10361. 8004b22: 46bd mov sp, r7
  10362. 8004b24: bd80 pop {r7, pc}
  10363. 8004b26: bf00 nop
  10364. 8004b28: 40011000 .word 0x40011000
  10365. 8004b2c: 24000f6c .word 0x24000f6c
  10366. 8004b30: 40007c00 .word 0x40007c00
  10367. 8004b34: 24000fa4 .word 0x24000fa4
  10368. 08004b38 <HAL_UART_TxCpltCallback>:
  10369. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  10370. 8004b38: b480 push {r7}
  10371. 8004b3a: b083 sub sp, #12
  10372. 8004b3c: af00 add r7, sp, #0
  10373. 8004b3e: 6078 str r0, [r7, #4]
  10374. if (huart->Instance == UART8) {
  10375. }
  10376. }
  10377. 8004b40: bf00 nop
  10378. 8004b42: 370c adds r7, #12
  10379. 8004b44: 46bd mov sp, r7
  10380. 8004b46: f85d 7b04 ldr.w r7, [sp], #4
  10381. 8004b4a: 4770 bx lr
  10382. 08004b4c <HandleUartRxCallback>:
  10383. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  10384. 8004b4c: b580 push {r7, lr}
  10385. 8004b4e: b088 sub sp, #32
  10386. 8004b50: af02 add r7, sp, #8
  10387. 8004b52: 60f8 str r0, [r7, #12]
  10388. 8004b54: 60b9 str r1, [r7, #8]
  10389. 8004b56: 4613 mov r3, r2
  10390. 8004b58: 80fb strh r3, [r7, #6]
  10391. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  10392. 8004b5a: 2300 movs r3, #0
  10393. 8004b5c: 617b str r3, [r7, #20]
  10394. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10395. 8004b5e: 68fb ldr r3, [r7, #12]
  10396. 8004b60: 6a1b ldr r3, [r3, #32]
  10397. 8004b62: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10398. 8004b66: 4618 mov r0, r3
  10399. 8004b68: f00f fca5 bl 80144b6 <osMutexAcquire>
  10400. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  10401. 8004b6c: 68fb ldr r3, [r7, #12]
  10402. 8004b6e: 691b ldr r3, [r3, #16]
  10403. 8004b70: 68fa ldr r2, [r7, #12]
  10404. 8004b72: 8ad2 ldrh r2, [r2, #22]
  10405. 8004b74: 1898 adds r0, r3, r2
  10406. 8004b76: 68fb ldr r3, [r7, #12]
  10407. 8004b78: 681b ldr r3, [r3, #0]
  10408. 8004b7a: 88fa ldrh r2, [r7, #6]
  10409. 8004b7c: 4619 mov r1, r3
  10410. 8004b7e: f013 fc4d bl 801841c <memcpy>
  10411. uartTaskData->frameBytesCount += Size;
  10412. 8004b82: 68fb ldr r3, [r7, #12]
  10413. 8004b84: 8ada ldrh r2, [r3, #22]
  10414. 8004b86: 88fb ldrh r3, [r7, #6]
  10415. 8004b88: 4413 add r3, r2
  10416. 8004b8a: b29a uxth r2, r3
  10417. 8004b8c: 68fb ldr r3, [r7, #12]
  10418. 8004b8e: 82da strh r2, [r3, #22]
  10419. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10420. 8004b90: 68fb ldr r3, [r7, #12]
  10421. 8004b92: 6a1b ldr r3, [r3, #32]
  10422. 8004b94: 4618 mov r0, r3
  10423. 8004b96: f00f fcd9 bl 801454c <osMutexRelease>
  10424. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  10425. 8004b9a: 68fb ldr r3, [r7, #12]
  10426. 8004b9c: 6998 ldr r0, [r3, #24]
  10427. 8004b9e: 88f9 ldrh r1, [r7, #6]
  10428. 8004ba0: f107 0314 add.w r3, r7, #20
  10429. 8004ba4: 9300 str r3, [sp, #0]
  10430. 8004ba6: 2300 movs r3, #0
  10431. 8004ba8: 2203 movs r2, #3
  10432. 8004baa: f012 f9c9 bl 8016f40 <xTaskGenericNotifyFromISR>
  10433. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10434. 8004bae: 68fb ldr r3, [r7, #12]
  10435. 8004bb0: 6b18 ldr r0, [r3, #48] @ 0x30
  10436. 8004bb2: 68fb ldr r3, [r7, #12]
  10437. 8004bb4: 6819 ldr r1, [r3, #0]
  10438. 8004bb6: 68fb ldr r3, [r7, #12]
  10439. 8004bb8: 889b ldrh r3, [r3, #4]
  10440. 8004bba: 461a mov r2, r3
  10441. 8004bbc: f00f f923 bl 8013e06 <HAL_UARTEx_ReceiveToIdle_IT>
  10442. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  10443. 8004bc0: 697b ldr r3, [r7, #20]
  10444. 8004bc2: 2b00 cmp r3, #0
  10445. 8004bc4: d007 beq.n 8004bd6 <HandleUartRxCallback+0x8a>
  10446. 8004bc6: 4b06 ldr r3, [pc, #24] @ (8004be0 <HandleUartRxCallback+0x94>)
  10447. 8004bc8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  10448. 8004bcc: 601a str r2, [r3, #0]
  10449. 8004bce: f3bf 8f4f dsb sy
  10450. 8004bd2: f3bf 8f6f isb sy
  10451. }
  10452. 8004bd6: bf00 nop
  10453. 8004bd8: 3718 adds r7, #24
  10454. 8004bda: 46bd mov sp, r7
  10455. 8004bdc: bd80 pop {r7, pc}
  10456. 8004bde: bf00 nop
  10457. 8004be0: e000ed04 .word 0xe000ed04
  10458. 08004be4 <UartRxTask>:
  10459. void UartRxTask (void* argument) {
  10460. 8004be4: b580 push {r7, lr}
  10461. 8004be6: b0d2 sub sp, #328 @ 0x148
  10462. 8004be8: af02 add r7, sp, #8
  10463. 8004bea: f507 73a0 add.w r3, r7, #320 @ 0x140
  10464. 8004bee: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10465. 8004bf2: 6018 str r0, [r3, #0]
  10466. UartTaskData* uartTaskData = (UartTaskData*)argument;
  10467. 8004bf4: f507 73a0 add.w r3, r7, #320 @ 0x140
  10468. 8004bf8: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10469. 8004bfc: 681b ldr r3, [r3, #0]
  10470. 8004bfe: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  10471. SerialProtocolFrameData spFrameData = { 0 };
  10472. 8004c02: f507 73a0 add.w r3, r7, #320 @ 0x140
  10473. 8004c06: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10474. 8004c0a: 4618 mov r0, r3
  10475. 8004c0c: f44f 7386 mov.w r3, #268 @ 0x10c
  10476. 8004c10: 461a mov r2, r3
  10477. 8004c12: 2100 movs r1, #0
  10478. 8004c14: f013 fb78 bl 8018308 <memset>
  10479. uint32_t bytesRec = 0;
  10480. 8004c18: f507 73a0 add.w r3, r7, #320 @ 0x140
  10481. 8004c1c: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10482. 8004c20: 2200 movs r2, #0
  10483. 8004c22: 601a str r2, [r3, #0]
  10484. uint32_t crc = 0;
  10485. 8004c24: 2300 movs r3, #0
  10486. 8004c26: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  10487. uint16_t frameCommandRaw = 0x0000;
  10488. 8004c2a: 2300 movs r3, #0
  10489. 8004c2c: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10490. uint16_t frameBytesCount = 0;
  10491. 8004c30: 2300 movs r3, #0
  10492. 8004c32: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10493. uint16_t frameCrc = 0;
  10494. 8004c36: 2300 movs r3, #0
  10495. 8004c38: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10496. uint16_t frameTotalLength = 0;
  10497. 8004c3c: 2300 movs r3, #0
  10498. 8004c3e: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10499. uint16_t dataToSend = 0;
  10500. 8004c42: 2300 movs r3, #0
  10501. 8004c44: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10502. portBASE_TYPE crcPass = pdFAIL;
  10503. 8004c48: 2300 movs r3, #0
  10504. 8004c4a: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10505. portBASE_TYPE proceed = pdFALSE;
  10506. 8004c4e: 2300 movs r3, #0
  10507. 8004c50: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10508. portBASE_TYPE frameTimeout = pdFAIL;
  10509. 8004c54: 2300 movs r3, #0
  10510. 8004c56: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10511. enum SerialReceiverStates receverState = srWaitForHeader;
  10512. 8004c5a: 2300 movs r3, #0
  10513. 8004c5c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10514. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  10515. 8004c60: 2000 movs r0, #0
  10516. 8004c62: f00f fba2 bl 80143aa <osMutexNew>
  10517. 8004c66: 4602 mov r2, r0
  10518. 8004c68: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10519. 8004c6c: 621a str r2, [r3, #32]
  10520. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10521. 8004c6e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10522. 8004c72: 6b18 ldr r0, [r3, #48] @ 0x30
  10523. 8004c74: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10524. 8004c78: 6819 ldr r1, [r3, #0]
  10525. 8004c7a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10526. 8004c7e: 889b ldrh r3, [r3, #4]
  10527. 8004c80: 461a mov r2, r3
  10528. 8004c82: f00f f8c0 bl 8013e06 <HAL_UARTEx_ReceiveToIdle_IT>
  10529. while (pdTRUE) {
  10530. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10531. 8004c86: f107 020c add.w r2, r7, #12
  10532. 8004c8a: f44f 63fa mov.w r3, #2000 @ 0x7d0
  10533. 8004c8e: 2100 movs r1, #0
  10534. 8004c90: 2000 movs r0, #0
  10535. 8004c92: f012 f833 bl 8016cfc <xTaskNotifyWait>
  10536. 8004c96: 4603 mov r3, r0
  10537. 8004c98: 2b00 cmp r3, #0
  10538. 8004c9a: bf0c ite eq
  10539. 8004c9c: 2301 moveq r3, #1
  10540. 8004c9e: 2300 movne r3, #0
  10541. 8004ca0: b2db uxtb r3, r3
  10542. 8004ca2: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10543. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10544. 8004ca6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10545. 8004caa: 6a1b ldr r3, [r3, #32]
  10546. 8004cac: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10547. 8004cb0: 4618 mov r0, r3
  10548. 8004cb2: f00f fc00 bl 80144b6 <osMutexAcquire>
  10549. frameBytesCount = uartTaskData->frameBytesCount;
  10550. 8004cb6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10551. 8004cba: 8adb ldrh r3, [r3, #22]
  10552. 8004cbc: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10553. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10554. 8004cc0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10555. 8004cc4: 6a1b ldr r3, [r3, #32]
  10556. 8004cc6: 4618 mov r0, r3
  10557. 8004cc8: f00f fc40 bl 801454c <osMutexRelease>
  10558. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  10559. 8004ccc: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10560. 8004cd0: 2b01 cmp r3, #1
  10561. 8004cd2: d10a bne.n 8004cea <UartRxTask+0x106>
  10562. 8004cd4: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10563. 8004cd8: 2b00 cmp r3, #0
  10564. 8004cda: d006 beq.n 8004cea <UartRxTask+0x106>
  10565. receverState = srFail;
  10566. 8004cdc: 2304 movs r3, #4
  10567. 8004cde: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10568. proceed = pdTRUE;
  10569. 8004ce2: 2301 movs r3, #1
  10570. 8004ce4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10571. 8004ce8: e01b b.n 8004d22 <UartRxTask+0x13e>
  10572. } else {
  10573. if (frameTimeout == pdFALSE) {
  10574. 8004cea: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10575. 8004cee: 2b00 cmp r3, #0
  10576. 8004cf0: d103 bne.n 8004cfa <UartRxTask+0x116>
  10577. proceed = pdTRUE;
  10578. 8004cf2: 2301 movs r3, #1
  10579. 8004cf4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10580. 8004cf8: e206 b.n 8005108 <UartRxTask+0x524>
  10581. #ifdef SERIAL_PROTOCOL_DBG
  10582. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  10583. #endif
  10584. } else {
  10585. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  10586. 8004cfa: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10587. 8004cfe: 6b1b ldr r3, [r3, #48] @ 0x30
  10588. 8004d00: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  10589. 8004d04: 2b20 cmp r3, #32
  10590. 8004d06: f040 81ff bne.w 8005108 <UartRxTask+0x524>
  10591. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10592. 8004d0a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10593. 8004d0e: 6b18 ldr r0, [r3, #48] @ 0x30
  10594. 8004d10: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10595. 8004d14: 6819 ldr r1, [r3, #0]
  10596. 8004d16: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10597. 8004d1a: 889b ldrh r3, [r3, #4]
  10598. 8004d1c: 461a mov r2, r3
  10599. 8004d1e: f00f f872 bl 8013e06 <HAL_UARTEx_ReceiveToIdle_IT>
  10600. }
  10601. }
  10602. }
  10603. while (proceed) {
  10604. 8004d22: e1f1 b.n 8005108 <UartRxTask+0x524>
  10605. switch (receverState) {
  10606. 8004d24: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  10607. 8004d28: 2b04 cmp r3, #4
  10608. 8004d2a: f200 81c8 bhi.w 80050be <UartRxTask+0x4da>
  10609. 8004d2e: a201 add r2, pc, #4 @ (adr r2, 8004d34 <UartRxTask+0x150>)
  10610. 8004d30: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10611. 8004d34: 08004d49 .word 0x08004d49
  10612. 8004d38: 08004eab .word 0x08004eab
  10613. 8004d3c: 08004e8f .word 0x08004e8f
  10614. 8004d40: 08004f3b .word 0x08004f3b
  10615. 8004d44: 08004fe7 .word 0x08004fe7
  10616. case srWaitForHeader:
  10617. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10618. 8004d48: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10619. 8004d4c: 6a1b ldr r3, [r3, #32]
  10620. 8004d4e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10621. 8004d52: 4618 mov r0, r3
  10622. 8004d54: f00f fbaf bl 80144b6 <osMutexAcquire>
  10623. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  10624. 8004d58: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10625. 8004d5c: 691b ldr r3, [r3, #16]
  10626. 8004d5e: 781b ldrb r3, [r3, #0]
  10627. 8004d60: 2baa cmp r3, #170 @ 0xaa
  10628. 8004d62: f040 8082 bne.w 8004e6a <UartRxTask+0x286>
  10629. if (frameBytesCount > FRAME_ID_LENGTH) {
  10630. 8004d66: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10631. 8004d6a: 2b02 cmp r3, #2
  10632. 8004d6c: d914 bls.n 8004d98 <UartRxTask+0x1b4>
  10633. spFrameData.frameHeader.frameId =
  10634. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  10635. 8004d6e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10636. 8004d72: 691b ldr r3, [r3, #16]
  10637. 8004d74: 3302 adds r3, #2
  10638. 8004d76: 781b ldrb r3, [r3, #0]
  10639. 8004d78: 021b lsls r3, r3, #8
  10640. 8004d7a: b21a sxth r2, r3
  10641. 8004d7c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10642. 8004d80: 691b ldr r3, [r3, #16]
  10643. 8004d82: 3301 adds r3, #1
  10644. 8004d84: 781b ldrb r3, [r3, #0]
  10645. 8004d86: b21b sxth r3, r3
  10646. 8004d88: 4313 orrs r3, r2
  10647. 8004d8a: b21b sxth r3, r3
  10648. 8004d8c: b29a uxth r2, r3
  10649. spFrameData.frameHeader.frameId =
  10650. 8004d8e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10651. 8004d92: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10652. 8004d96: 801a strh r2, [r3, #0]
  10653. }
  10654. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  10655. 8004d98: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10656. 8004d9c: 2b04 cmp r3, #4
  10657. 8004d9e: d923 bls.n 8004de8 <UartRxTask+0x204>
  10658. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  10659. 8004da0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10660. 8004da4: 691b ldr r3, [r3, #16]
  10661. 8004da6: 3304 adds r3, #4
  10662. 8004da8: 781b ldrb r3, [r3, #0]
  10663. 8004daa: 021b lsls r3, r3, #8
  10664. 8004dac: b21a sxth r2, r3
  10665. 8004dae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10666. 8004db2: 691b ldr r3, [r3, #16]
  10667. 8004db4: 3303 adds r3, #3
  10668. 8004db6: 781b ldrb r3, [r3, #0]
  10669. 8004db8: b21b sxth r3, r3
  10670. 8004dba: 4313 orrs r3, r2
  10671. 8004dbc: b21b sxth r3, r3
  10672. 8004dbe: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10673. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  10674. 8004dc2: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  10675. 8004dc6: b2da uxtb r2, r3
  10676. 8004dc8: f507 73a0 add.w r3, r7, #320 @ 0x140
  10677. 8004dcc: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10678. 8004dd0: 709a strb r2, [r3, #2]
  10679. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  10680. 8004dd2: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  10681. 8004dd6: 13db asrs r3, r3, #15
  10682. 8004dd8: b21b sxth r3, r3
  10683. 8004dda: f003 0201 and.w r2, r3, #1
  10684. 8004dde: f507 73a0 add.w r3, r7, #320 @ 0x140
  10685. 8004de2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10686. 8004de6: 609a str r2, [r3, #8]
  10687. }
  10688. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  10689. 8004de8: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10690. 8004dec: 2b05 cmp r3, #5
  10691. 8004dee: d913 bls.n 8004e18 <UartRxTask+0x234>
  10692. 8004df0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10693. 8004df4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10694. 8004df8: 789b ldrb r3, [r3, #2]
  10695. 8004dfa: f403 4300 and.w r3, r3, #32768 @ 0x8000
  10696. 8004dfe: 2b00 cmp r3, #0
  10697. 8004e00: d00a beq.n 8004e18 <UartRxTask+0x234>
  10698. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  10699. 8004e02: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10700. 8004e06: 691b ldr r3, [r3, #16]
  10701. 8004e08: 3305 adds r3, #5
  10702. 8004e0a: 781b ldrb r3, [r3, #0]
  10703. 8004e0c: b25a sxtb r2, r3
  10704. 8004e0e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10705. 8004e12: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10706. 8004e16: 70da strb r2, [r3, #3]
  10707. }
  10708. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  10709. 8004e18: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10710. 8004e1c: 2b07 cmp r3, #7
  10711. 8004e1e: d920 bls.n 8004e62 <UartRxTask+0x27e>
  10712. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  10713. 8004e20: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10714. 8004e24: 691b ldr r3, [r3, #16]
  10715. 8004e26: 3306 adds r3, #6
  10716. 8004e28: 781b ldrb r3, [r3, #0]
  10717. 8004e2a: 021b lsls r3, r3, #8
  10718. 8004e2c: b21a sxth r2, r3
  10719. 8004e2e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10720. 8004e32: 691b ldr r3, [r3, #16]
  10721. 8004e34: 3305 adds r3, #5
  10722. 8004e36: 781b ldrb r3, [r3, #0]
  10723. 8004e38: b21b sxth r3, r3
  10724. 8004e3a: 4313 orrs r3, r2
  10725. 8004e3c: b21b sxth r3, r3
  10726. 8004e3e: b29a uxth r2, r3
  10727. 8004e40: f507 73a0 add.w r3, r7, #320 @ 0x140
  10728. 8004e44: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10729. 8004e48: 809a strh r2, [r3, #4]
  10730. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  10731. 8004e4a: f507 73a0 add.w r3, r7, #320 @ 0x140
  10732. 8004e4e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10733. 8004e52: 889b ldrh r3, [r3, #4]
  10734. 8004e54: 330a adds r3, #10
  10735. 8004e56: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10736. receverState = srRecieveData;
  10737. 8004e5a: 2302 movs r3, #2
  10738. 8004e5c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10739. 8004e60: e00e b.n 8004e80 <UartRxTask+0x29c>
  10740. } else {
  10741. proceed = pdFALSE;
  10742. 8004e62: 2300 movs r3, #0
  10743. 8004e64: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10744. 8004e68: e00a b.n 8004e80 <UartRxTask+0x29c>
  10745. }
  10746. } else {
  10747. if (frameBytesCount > 0) {
  10748. 8004e6a: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10749. 8004e6e: 2b00 cmp r3, #0
  10750. 8004e70: d003 beq.n 8004e7a <UartRxTask+0x296>
  10751. receverState = srFail;
  10752. 8004e72: 2304 movs r3, #4
  10753. 8004e74: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10754. 8004e78: e002 b.n 8004e80 <UartRxTask+0x29c>
  10755. } else {
  10756. proceed = pdFALSE;
  10757. 8004e7a: 2300 movs r3, #0
  10758. 8004e7c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10759. }
  10760. }
  10761. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10762. 8004e80: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10763. 8004e84: 6a1b ldr r3, [r3, #32]
  10764. 8004e86: 4618 mov r0, r3
  10765. 8004e88: f00f fb60 bl 801454c <osMutexRelease>
  10766. break;
  10767. 8004e8c: e13c b.n 8005108 <UartRxTask+0x524>
  10768. case srRecieveData:
  10769. if (frameBytesCount >= frameTotalLength) {
  10770. 8004e8e: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  10771. 8004e92: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10772. 8004e96: 429a cmp r2, r3
  10773. 8004e98: d303 bcc.n 8004ea2 <UartRxTask+0x2be>
  10774. receverState = srCheckCrc;
  10775. 8004e9a: 2301 movs r3, #1
  10776. 8004e9c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10777. } else {
  10778. proceed = pdFALSE;
  10779. }
  10780. break;
  10781. 8004ea0: e132 b.n 8005108 <UartRxTask+0x524>
  10782. proceed = pdFALSE;
  10783. 8004ea2: 2300 movs r3, #0
  10784. 8004ea4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10785. break;
  10786. 8004ea8: e12e b.n 8005108 <UartRxTask+0x524>
  10787. case srCheckCrc:
  10788. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10789. 8004eaa: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10790. 8004eae: 6a1b ldr r3, [r3, #32]
  10791. 8004eb0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10792. 8004eb4: 4618 mov r0, r3
  10793. 8004eb6: f00f fafe bl 80144b6 <osMutexAcquire>
  10794. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  10795. 8004eba: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10796. 8004ebe: 691a ldr r2, [r3, #16]
  10797. 8004ec0: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10798. 8004ec4: 3b01 subs r3, #1
  10799. 8004ec6: 4413 add r3, r2
  10800. 8004ec8: 781b ldrb r3, [r3, #0]
  10801. 8004eca: 021b lsls r3, r3, #8
  10802. 8004ecc: b21a sxth r2, r3
  10803. 8004ece: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10804. 8004ed2: 6919 ldr r1, [r3, #16]
  10805. 8004ed4: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10806. 8004ed8: 3b02 subs r3, #2
  10807. 8004eda: 440b add r3, r1
  10808. 8004edc: 781b ldrb r3, [r3, #0]
  10809. 8004ede: b21b sxth r3, r3
  10810. 8004ee0: 4313 orrs r3, r2
  10811. 8004ee2: b21b sxth r3, r3
  10812. 8004ee4: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10813. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  10814. 8004ee8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10815. 8004eec: 6919 ldr r1, [r3, #16]
  10816. 8004eee: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10817. 8004ef2: 3b02 subs r3, #2
  10818. 8004ef4: 461a mov r2, r3
  10819. 8004ef6: 4887 ldr r0, [pc, #540] @ (8005114 <UartRxTask+0x530>)
  10820. 8004ef8: f002 ff3a bl 8007d70 <HAL_CRC_Calculate>
  10821. 8004efc: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  10822. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10823. 8004f00: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10824. 8004f04: 6a1b ldr r3, [r3, #32]
  10825. 8004f06: 4618 mov r0, r3
  10826. 8004f08: f00f fb20 bl 801454c <osMutexRelease>
  10827. crcPass = frameCrc == crc;
  10828. 8004f0c: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  10829. 8004f10: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  10830. 8004f14: 429a cmp r2, r3
  10831. 8004f16: bf0c ite eq
  10832. 8004f18: 2301 moveq r3, #1
  10833. 8004f1a: 2300 movne r3, #0
  10834. 8004f1c: b2db uxtb r3, r3
  10835. 8004f1e: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10836. if (crcPass) {
  10837. 8004f22: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10838. 8004f26: 2b00 cmp r3, #0
  10839. 8004f28: d003 beq.n 8004f32 <UartRxTask+0x34e>
  10840. #ifdef SERIAL_PROTOCOL_DBG
  10841. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  10842. #endif
  10843. receverState = srExecuteCmd;
  10844. 8004f2a: 2303 movs r3, #3
  10845. 8004f2c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10846. } else {
  10847. receverState = srFail;
  10848. }
  10849. break;
  10850. 8004f30: e0ea b.n 8005108 <UartRxTask+0x524>
  10851. receverState = srFail;
  10852. 8004f32: 2304 movs r3, #4
  10853. 8004f34: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10854. break;
  10855. 8004f38: e0e6 b.n 8005108 <UartRxTask+0x524>
  10856. case srExecuteCmd:
  10857. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  10858. 8004f3a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10859. 8004f3e: 6a9b ldr r3, [r3, #40] @ 0x28
  10860. 8004f40: 2b00 cmp r3, #0
  10861. 8004f42: d104 bne.n 8004f4e <UartRxTask+0x36a>
  10862. 8004f44: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10863. 8004f48: 6a5b ldr r3, [r3, #36] @ 0x24
  10864. 8004f4a: 2b00 cmp r3, #0
  10865. 8004f4c: d01e beq.n 8004f8c <UartRxTask+0x3a8>
  10866. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10867. 8004f4e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10868. 8004f52: 6a1b ldr r3, [r3, #32]
  10869. 8004f54: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10870. 8004f58: 4618 mov r0, r3
  10871. 8004f5a: f00f faac bl 80144b6 <osMutexAcquire>
  10872. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10873. 8004f5e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10874. 8004f62: 691b ldr r3, [r3, #16]
  10875. 8004f64: f103 0108 add.w r1, r3, #8
  10876. 8004f68: f507 73a0 add.w r3, r7, #320 @ 0x140
  10877. 8004f6c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10878. 8004f70: 889b ldrh r3, [r3, #4]
  10879. 8004f72: 461a mov r2, r3
  10880. 8004f74: f107 0310 add.w r3, r7, #16
  10881. 8004f78: 330c adds r3, #12
  10882. 8004f7a: 4618 mov r0, r3
  10883. 8004f7c: f013 fa4e bl 801841c <memcpy>
  10884. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10885. 8004f80: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10886. 8004f84: 6a1b ldr r3, [r3, #32]
  10887. 8004f86: 4618 mov r0, r3
  10888. 8004f88: f00f fae0 bl 801454c <osMutexRelease>
  10889. }
  10890. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10891. 8004f8c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10892. 8004f90: 6a5b ldr r3, [r3, #36] @ 0x24
  10893. 8004f92: 2b00 cmp r3, #0
  10894. 8004f94: d015 beq.n 8004fc2 <UartRxTask+0x3de>
  10895. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  10896. 8004f96: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10897. 8004f9a: 6a58 ldr r0, [r3, #36] @ 0x24
  10898. 8004f9c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10899. 8004fa0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10900. 8004fa4: 889b ldrh r3, [r3, #4]
  10901. 8004fa6: f103 020c add.w r2, r3, #12
  10902. 8004faa: f107 0110 add.w r1, r7, #16
  10903. 8004fae: 23c8 movs r3, #200 @ 0xc8
  10904. 8004fb0: f010 fcee bl 8015990 <xStreamBufferSend>
  10905. 8004fb4: 4603 mov r3, r0
  10906. 8004fb6: 2b00 cmp r3, #0
  10907. 8004fb8: d103 bne.n 8004fc2 <UartRxTask+0x3de>
  10908. receverState = srFail;
  10909. 8004fba: 2304 movs r3, #4
  10910. 8004fbc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10911. break;
  10912. 8004fc0: e0a2 b.n 8005108 <UartRxTask+0x524>
  10913. }
  10914. }
  10915. if (uartTaskData->processDataCb != NULL) {
  10916. 8004fc2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10917. 8004fc6: 6a9b ldr r3, [r3, #40] @ 0x28
  10918. 8004fc8: 2b00 cmp r3, #0
  10919. 8004fca: d008 beq.n 8004fde <UartRxTask+0x3fa>
  10920. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10921. 8004fcc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10922. 8004fd0: 6a9b ldr r3, [r3, #40] @ 0x28
  10923. 8004fd2: f107 0210 add.w r2, r7, #16
  10924. 8004fd6: 4611 mov r1, r2
  10925. 8004fd8: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10926. 8004fdc: 4798 blx r3
  10927. }
  10928. receverState = srFinish;
  10929. 8004fde: 2305 movs r3, #5
  10930. 8004fe0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10931. break;
  10932. 8004fe4: e090 b.n 8005108 <UartRxTask+0x524>
  10933. case srFail:
  10934. dataToSend = 0;
  10935. 8004fe6: 2300 movs r3, #0
  10936. 8004fe8: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10937. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10938. 8004fec: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10939. 8004ff0: 2b01 cmp r3, #1
  10940. 8004ff2: d11c bne.n 800502e <UartRxTask+0x44a>
  10941. 8004ff4: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10942. 8004ff8: 2b02 cmp r3, #2
  10943. 8004ffa: d918 bls.n 800502e <UartRxTask+0x44a>
  10944. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10945. 8004ffc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10946. 8005000: 6898 ldr r0, [r3, #8]
  10947. 8005002: f507 73a0 add.w r3, r7, #320 @ 0x140
  10948. 8005006: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10949. 800500a: 8819 ldrh r1, [r3, #0]
  10950. 800500c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10951. 8005010: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10952. 8005014: 789a ldrb r2, [r3, #2]
  10953. 8005016: 2300 movs r3, #0
  10954. 8005018: 9301 str r3, [sp, #4]
  10955. 800501a: 2300 movs r3, #0
  10956. 800501c: 9300 str r3, [sp, #0]
  10957. 800501e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10958. 8005022: f7fe fd57 bl 8003ad4 <PrepareRespFrame>
  10959. 8005026: 4603 mov r3, r0
  10960. 8005028: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10961. 800502c: e034 b.n 8005098 <UartRxTask+0x4b4>
  10962. #ifdef SERIAL_PROTOCOL_DBG
  10963. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  10964. #endif
  10965. } else if (!crcPass) {
  10966. 800502e: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10967. 8005032: 2b00 cmp r3, #0
  10968. 8005034: d118 bne.n 8005068 <UartRxTask+0x484>
  10969. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  10970. 8005036: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10971. 800503a: 6898 ldr r0, [r3, #8]
  10972. 800503c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10973. 8005040: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10974. 8005044: 8819 ldrh r1, [r3, #0]
  10975. 8005046: f507 73a0 add.w r3, r7, #320 @ 0x140
  10976. 800504a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10977. 800504e: 789a ldrb r2, [r3, #2]
  10978. 8005050: 2300 movs r3, #0
  10979. 8005052: 9301 str r3, [sp, #4]
  10980. 8005054: 2300 movs r3, #0
  10981. 8005056: 9300 str r3, [sp, #0]
  10982. 8005058: f06f 0301 mvn.w r3, #1
  10983. 800505c: f7fe fd3a bl 8003ad4 <PrepareRespFrame>
  10984. 8005060: 4603 mov r3, r0
  10985. 8005062: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10986. 8005066: e017 b.n 8005098 <UartRxTask+0x4b4>
  10987. #ifdef SERIAL_PROTOCOL_DBG
  10988. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  10989. #endif
  10990. } else {
  10991. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  10992. 8005068: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10993. 800506c: 6898 ldr r0, [r3, #8]
  10994. 800506e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10995. 8005072: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10996. 8005076: 8819 ldrh r1, [r3, #0]
  10997. 8005078: f507 73a0 add.w r3, r7, #320 @ 0x140
  10998. 800507c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10999. 8005080: 789a ldrb r2, [r3, #2]
  11000. 8005082: 2300 movs r3, #0
  11001. 8005084: 9301 str r3, [sp, #4]
  11002. 8005086: 2300 movs r3, #0
  11003. 8005088: 9300 str r3, [sp, #0]
  11004. 800508a: f06f 0303 mvn.w r3, #3
  11005. 800508e: f7fe fd21 bl 8003ad4 <PrepareRespFrame>
  11006. 8005092: 4603 mov r3, r0
  11007. 8005094: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  11008. }
  11009. if (dataToSend > 0) {
  11010. 8005098: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  11011. 800509c: 2b00 cmp r3, #0
  11012. 800509e: d00a beq.n 80050b6 <UartRxTask+0x4d2>
  11013. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11014. 80050a0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11015. 80050a4: 6b18 ldr r0, [r3, #48] @ 0x30
  11016. 80050a6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11017. 80050aa: 689b ldr r3, [r3, #8]
  11018. 80050ac: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  11019. 80050b0: 4619 mov r1, r3
  11020. 80050b2: f00c f9d3 bl 801145c <HAL_UART_Transmit_IT>
  11021. }
  11022. #ifdef SERIAL_PROTOCOL_DBG
  11023. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  11024. #endif
  11025. receverState = srFinish;
  11026. 80050b6: 2305 movs r3, #5
  11027. 80050b8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11028. break;
  11029. 80050bc: e024 b.n 8005108 <UartRxTask+0x524>
  11030. case srFinish:
  11031. default:
  11032. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  11033. 80050be: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11034. 80050c2: 6a1b ldr r3, [r3, #32]
  11035. 80050c4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11036. 80050c8: 4618 mov r0, r3
  11037. 80050ca: f00f f9f4 bl 80144b6 <osMutexAcquire>
  11038. uartTaskData->frameBytesCount = 0;
  11039. 80050ce: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11040. 80050d2: 2200 movs r2, #0
  11041. 80050d4: 82da strh r2, [r3, #22]
  11042. osMutexRelease (uartTaskData->rxDataBufferMutex);
  11043. 80050d6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11044. 80050da: 6a1b ldr r3, [r3, #32]
  11045. 80050dc: 4618 mov r0, r3
  11046. 80050de: f00f fa35 bl 801454c <osMutexRelease>
  11047. spFrameData.frameHeader.frameCommand = spUnknown;
  11048. 80050e2: f507 73a0 add.w r3, r7, #320 @ 0x140
  11049. 80050e6: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11050. 80050ea: 2212 movs r2, #18
  11051. 80050ec: 709a strb r2, [r3, #2]
  11052. frameTotalLength = 0;
  11053. 80050ee: 2300 movs r3, #0
  11054. 80050f0: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  11055. outputDataBufferPos = 0;
  11056. 80050f4: 4b08 ldr r3, [pc, #32] @ (8005118 <UartRxTask+0x534>)
  11057. 80050f6: 2200 movs r2, #0
  11058. 80050f8: 801a strh r2, [r3, #0]
  11059. receverState = srWaitForHeader;
  11060. 80050fa: 2300 movs r3, #0
  11061. 80050fc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11062. proceed = pdFALSE;
  11063. 8005100: 2300 movs r3, #0
  11064. 8005102: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  11065. break;
  11066. 8005106: bf00 nop
  11067. while (proceed) {
  11068. 8005108: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  11069. 800510c: 2b00 cmp r3, #0
  11070. 800510e: f47f ae09 bne.w 8004d24 <UartRxTask+0x140>
  11071. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  11072. 8005112: e5b8 b.n 8004c86 <UartRxTask+0xa2>
  11073. 8005114: 240003e0 .word 0x240003e0
  11074. 8005118: 2400105c .word 0x2400105c
  11075. 0800511c <Uart8ReceivedDataProcessCallback>:
  11076. }
  11077. }
  11078. }
  11079. }
  11080. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11081. 800511c: b580 push {r7, lr}
  11082. 800511e: b082 sub sp, #8
  11083. 8005120: af00 add r7, sp, #0
  11084. 8005122: 6078 str r0, [r7, #4]
  11085. 8005124: 6039 str r1, [r7, #0]
  11086. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  11087. 8005126: 6839 ldr r1, [r7, #0]
  11088. 8005128: 6878 ldr r0, [r7, #4]
  11089. 800512a: f000 f805 bl 8005138 <Uart1ReceivedDataProcessCallback>
  11090. }
  11091. 800512e: bf00 nop
  11092. 8005130: 3708 adds r7, #8
  11093. 8005132: 46bd mov sp, r7
  11094. 8005134: bd80 pop {r7, pc}
  11095. ...
  11096. 08005138 <Uart1ReceivedDataProcessCallback>:
  11097. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11098. 8005138: b590 push {r4, r7, lr}
  11099. 800513a: b0ad sub sp, #180 @ 0xb4
  11100. 800513c: af06 add r7, sp, #24
  11101. 800513e: 6078 str r0, [r7, #4]
  11102. 8005140: 6039 str r1, [r7, #0]
  11103. UartTaskData* uartTaskData = (UartTaskData*)arg;
  11104. 8005142: 687b ldr r3, [r7, #4]
  11105. 8005144: 677b str r3, [r7, #116] @ 0x74
  11106. uint16_t dataToSend = 0;
  11107. 8005146: 2300 movs r3, #0
  11108. 8005148: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  11109. outputDataBufferPos = 0;
  11110. 800514c: 4b64 ldr r3, [pc, #400] @ (80052e0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11111. 800514e: 2200 movs r2, #0
  11112. 8005150: 801a strh r2, [r3, #0]
  11113. uint16_t inputDataBufferPos = 0;
  11114. 8005152: 2300 movs r3, #0
  11115. 8005154: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  11116. SerialProtocolRespStatus respStatus = spUnknownCommand;
  11117. 8005158: 23fd movs r3, #253 @ 0xfd
  11118. 800515a: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11119. switch (spFrameData->frameHeader.frameCommand) {
  11120. 800515e: 683b ldr r3, [r7, #0]
  11121. 8005160: 789b ldrb r3, [r3, #2]
  11122. 8005162: 2b11 cmp r3, #17
  11123. 8005164: f200 85a2 bhi.w 8005cac <Uart1ReceivedDataProcessCallback+0xb74>
  11124. 8005168: a201 add r2, pc, #4 @ (adr r2, 8005170 <Uart1ReceivedDataProcessCallback+0x38>)
  11125. 800516a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  11126. 800516e: bf00 nop
  11127. 8005170: 080051b9 .word 0x080051b9
  11128. 8005174: 080052f1 .word 0x080052f1
  11129. 8005178: 0800546b .word 0x0800546b
  11130. 800517c: 080055a1 .word 0x080055a1
  11131. 8005180: 08005643 .word 0x08005643
  11132. 8005184: 08005761 .word 0x08005761
  11133. 8005188: 080057b7 .word 0x080057b7
  11134. 800518c: 080056e5 .word 0x080056e5
  11135. 8005190: 0800580d .word 0x0800580d
  11136. 8005194: 080058ad .word 0x080058ad
  11137. 8005198: 080058f9 .word 0x080058f9
  11138. 800519c: 08005945 .word 0x08005945
  11139. 80051a0: 080059a7 .word 0x080059a7
  11140. 80051a4: 08005a0b .word 0x08005a0b
  11141. 80051a8: 08005a6d .word 0x08005a6d
  11142. 80051ac: 08005ad1 .word 0x08005ad1
  11143. 80051b0: 08005ad9 .word 0x08005ad9
  11144. 80051b4: 08005bdd .word 0x08005bdd
  11145. case spGetElectricalMeasurments:
  11146. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11147. 80051b8: 4b4a ldr r3, [pc, #296] @ (80052e4 <Uart1ReceivedDataProcessCallback+0x1ac>)
  11148. 80051ba: 681b ldr r3, [r3, #0]
  11149. 80051bc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11150. 80051c0: 4618 mov r0, r3
  11151. 80051c2: f00f f978 bl 80144b6 <osMutexAcquire>
  11152. 80051c6: 4603 mov r3, r0
  11153. 80051c8: 2b00 cmp r3, #0
  11154. 80051ca: f040 8083 bne.w 80052d4 <Uart1ReceivedDataProcessCallback+0x19c>
  11155. for (int i = 0; i < 3; i++) {
  11156. 80051ce: 2300 movs r3, #0
  11157. 80051d0: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11158. 80051d4: e00e b.n 80051f4 <Uart1ReceivedDataProcessCallback+0xbc>
  11159. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  11160. 80051d6: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11161. 80051da: 009b lsls r3, r3, #2
  11162. 80051dc: 4a42 ldr r2, [pc, #264] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11163. 80051de: 441a add r2, r3
  11164. 80051e0: 2304 movs r3, #4
  11165. 80051e2: 493f ldr r1, [pc, #252] @ (80052e0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11166. 80051e4: 4841 ldr r0, [pc, #260] @ (80052ec <Uart1ReceivedDataProcessCallback+0x1b4>)
  11167. 80051e6: f7fe fbdb bl 80039a0 <WriteDataToBuffer>
  11168. for (int i = 0; i < 3; i++) {
  11169. 80051ea: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11170. 80051ee: 3301 adds r3, #1
  11171. 80051f0: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11172. 80051f4: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11173. 80051f8: 2b02 cmp r3, #2
  11174. 80051fa: ddec ble.n 80051d6 <Uart1ReceivedDataProcessCallback+0x9e>
  11175. }
  11176. for (int i = 0; i < 3; i++) {
  11177. 80051fc: 2300 movs r3, #0
  11178. 80051fe: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11179. 8005202: e010 b.n 8005226 <Uart1ReceivedDataProcessCallback+0xee>
  11180. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  11181. 8005204: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11182. 8005208: 3302 adds r3, #2
  11183. 800520a: 009b lsls r3, r3, #2
  11184. 800520c: 4a36 ldr r2, [pc, #216] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11185. 800520e: 4413 add r3, r2
  11186. 8005210: 1d1a adds r2, r3, #4
  11187. 8005212: 2304 movs r3, #4
  11188. 8005214: 4932 ldr r1, [pc, #200] @ (80052e0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11189. 8005216: 4835 ldr r0, [pc, #212] @ (80052ec <Uart1ReceivedDataProcessCallback+0x1b4>)
  11190. 8005218: f7fe fbc2 bl 80039a0 <WriteDataToBuffer>
  11191. for (int i = 0; i < 3; i++) {
  11192. 800521c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11193. 8005220: 3301 adds r3, #1
  11194. 8005222: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11195. 8005226: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11196. 800522a: 2b02 cmp r3, #2
  11197. 800522c: ddea ble.n 8005204 <Uart1ReceivedDataProcessCallback+0xcc>
  11198. }
  11199. for (int i = 0; i < 3; i++) {
  11200. 800522e: 2300 movs r3, #0
  11201. 8005230: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11202. 8005234: e00f b.n 8005256 <Uart1ReceivedDataProcessCallback+0x11e>
  11203. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  11204. 8005236: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11205. 800523a: 3306 adds r3, #6
  11206. 800523c: 009b lsls r3, r3, #2
  11207. 800523e: 4a2a ldr r2, [pc, #168] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11208. 8005240: 441a add r2, r3
  11209. 8005242: 2304 movs r3, #4
  11210. 8005244: 4926 ldr r1, [pc, #152] @ (80052e0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11211. 8005246: 4829 ldr r0, [pc, #164] @ (80052ec <Uart1ReceivedDataProcessCallback+0x1b4>)
  11212. 8005248: f7fe fbaa bl 80039a0 <WriteDataToBuffer>
  11213. for (int i = 0; i < 3; i++) {
  11214. 800524c: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11215. 8005250: 3301 adds r3, #1
  11216. 8005252: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11217. 8005256: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11218. 800525a: 2b02 cmp r3, #2
  11219. 800525c: ddeb ble.n 8005236 <Uart1ReceivedDataProcessCallback+0xfe>
  11220. }
  11221. for (int i = 0; i < 3; i++) {
  11222. 800525e: 2300 movs r3, #0
  11223. 8005260: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11224. 8005264: e010 b.n 8005288 <Uart1ReceivedDataProcessCallback+0x150>
  11225. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  11226. 8005266: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11227. 800526a: 3308 adds r3, #8
  11228. 800526c: 009b lsls r3, r3, #2
  11229. 800526e: 4a1e ldr r2, [pc, #120] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11230. 8005270: 4413 add r3, r2
  11231. 8005272: 1d1a adds r2, r3, #4
  11232. 8005274: 2304 movs r3, #4
  11233. 8005276: 491a ldr r1, [pc, #104] @ (80052e0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11234. 8005278: 481c ldr r0, [pc, #112] @ (80052ec <Uart1ReceivedDataProcessCallback+0x1b4>)
  11235. 800527a: f7fe fb91 bl 80039a0 <WriteDataToBuffer>
  11236. for (int i = 0; i < 3; i++) {
  11237. 800527e: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11238. 8005282: 3301 adds r3, #1
  11239. 8005284: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11240. 8005288: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11241. 800528c: 2b02 cmp r3, #2
  11242. 800528e: ddea ble.n 8005266 <Uart1ReceivedDataProcessCallback+0x12e>
  11243. }
  11244. for (int i = 0; i < 3; i++) {
  11245. 8005290: 2300 movs r3, #0
  11246. 8005292: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11247. 8005296: e00f b.n 80052b8 <Uart1ReceivedDataProcessCallback+0x180>
  11248. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  11249. 8005298: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11250. 800529c: 330c adds r3, #12
  11251. 800529e: 009b lsls r3, r3, #2
  11252. 80052a0: 4a11 ldr r2, [pc, #68] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11253. 80052a2: 441a add r2, r3
  11254. 80052a4: 2304 movs r3, #4
  11255. 80052a6: 490e ldr r1, [pc, #56] @ (80052e0 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11256. 80052a8: 4810 ldr r0, [pc, #64] @ (80052ec <Uart1ReceivedDataProcessCallback+0x1b4>)
  11257. 80052aa: f7fe fb79 bl 80039a0 <WriteDataToBuffer>
  11258. for (int i = 0; i < 3; i++) {
  11259. 80052ae: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11260. 80052b2: 3301 adds r3, #1
  11261. 80052b4: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11262. 80052b8: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11263. 80052bc: 2b02 cmp r3, #2
  11264. 80052be: ddeb ble.n 8005298 <Uart1ReceivedDataProcessCallback+0x160>
  11265. }
  11266. osMutexRelease (resMeasurementsMutex);
  11267. 80052c0: 4b08 ldr r3, [pc, #32] @ (80052e4 <Uart1ReceivedDataProcessCallback+0x1ac>)
  11268. 80052c2: 681b ldr r3, [r3, #0]
  11269. 80052c4: 4618 mov r0, r3
  11270. 80052c6: f00f f941 bl 801454c <osMutexRelease>
  11271. respStatus = spOK;
  11272. 80052ca: 2300 movs r3, #0
  11273. 80052cc: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11274. } else {
  11275. respStatus = spInternalError;
  11276. }
  11277. break;
  11278. 80052d0: f000 bcf3 b.w 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11279. respStatus = spInternalError;
  11280. 80052d4: 23fc movs r3, #252 @ 0xfc
  11281. 80052d6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11282. break;
  11283. 80052da: f000 bcee b.w 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11284. 80052de: bf00 nop
  11285. 80052e0: 2400105c .word 0x2400105c
  11286. 80052e4: 24000818 .word 0x24000818
  11287. 80052e8: 24000824 .word 0x24000824
  11288. 80052ec: 24000fdc .word 0x24000fdc
  11289. case spGetSensorMeasurments:
  11290. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11291. 80052f0: 4b8d ldr r3, [pc, #564] @ (8005528 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11292. 80052f2: 681b ldr r3, [r3, #0]
  11293. 80052f4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11294. 80052f8: 4618 mov r0, r3
  11295. 80052fa: f00f f8dc bl 80144b6 <osMutexAcquire>
  11296. 80052fe: 4603 mov r3, r0
  11297. 8005300: 2b00 cmp r3, #0
  11298. 8005302: f040 80ad bne.w 8005460 <Uart1ReceivedDataProcessCallback+0x328>
  11299. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  11300. 8005306: 2304 movs r3, #4
  11301. 8005308: 4a88 ldr r2, [pc, #544] @ (800552c <Uart1ReceivedDataProcessCallback+0x3f4>)
  11302. 800530a: 4989 ldr r1, [pc, #548] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11303. 800530c: 4889 ldr r0, [pc, #548] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11304. 800530e: f7fe fb47 bl 80039a0 <WriteDataToBuffer>
  11305. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  11306. 8005312: 2304 movs r3, #4
  11307. 8005314: 4a88 ldr r2, [pc, #544] @ (8005538 <Uart1ReceivedDataProcessCallback+0x400>)
  11308. 8005316: 4986 ldr r1, [pc, #536] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11309. 8005318: 4886 ldr r0, [pc, #536] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11310. 800531a: f7fe fb41 bl 80039a0 <WriteDataToBuffer>
  11311. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  11312. 800531e: 2304 movs r3, #4
  11313. 8005320: 4a86 ldr r2, [pc, #536] @ (800553c <Uart1ReceivedDataProcessCallback+0x404>)
  11314. 8005322: 4983 ldr r1, [pc, #524] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11315. 8005324: 4883 ldr r0, [pc, #524] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11316. 8005326: f7fe fb3b bl 80039a0 <WriteDataToBuffer>
  11317. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  11318. 800532a: 2304 movs r3, #4
  11319. 800532c: 4a84 ldr r2, [pc, #528] @ (8005540 <Uart1ReceivedDataProcessCallback+0x408>)
  11320. 800532e: 4980 ldr r1, [pc, #512] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11321. 8005330: 4880 ldr r0, [pc, #512] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11322. 8005332: f7fe fb35 bl 80039a0 <WriteDataToBuffer>
  11323. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  11324. 8005336: 2304 movs r3, #4
  11325. 8005338: 4a82 ldr r2, [pc, #520] @ (8005544 <Uart1ReceivedDataProcessCallback+0x40c>)
  11326. 800533a: 497d ldr r1, [pc, #500] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11327. 800533c: 487d ldr r0, [pc, #500] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11328. 800533e: f7fe fb2f bl 80039a0 <WriteDataToBuffer>
  11329. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  11330. 8005342: 2301 movs r3, #1
  11331. 8005344: 4a80 ldr r2, [pc, #512] @ (8005548 <Uart1ReceivedDataProcessCallback+0x410>)
  11332. 8005346: 497a ldr r1, [pc, #488] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11333. 8005348: 487a ldr r0, [pc, #488] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11334. 800534a: f7fe fb29 bl 80039a0 <WriteDataToBuffer>
  11335. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  11336. 800534e: 2301 movs r3, #1
  11337. 8005350: 4a7e ldr r2, [pc, #504] @ (800554c <Uart1ReceivedDataProcessCallback+0x414>)
  11338. 8005352: 4977 ldr r1, [pc, #476] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11339. 8005354: 4877 ldr r0, [pc, #476] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11340. 8005356: f7fe fb23 bl 80039a0 <WriteDataToBuffer>
  11341. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  11342. 800535a: 2304 movs r3, #4
  11343. 800535c: 4a7c ldr r2, [pc, #496] @ (8005550 <Uart1ReceivedDataProcessCallback+0x418>)
  11344. 800535e: 4974 ldr r1, [pc, #464] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11345. 8005360: 4874 ldr r0, [pc, #464] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11346. 8005362: f7fe fb1d bl 80039a0 <WriteDataToBuffer>
  11347. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  11348. 8005366: 2304 movs r3, #4
  11349. 8005368: 4a7a ldr r2, [pc, #488] @ (8005554 <Uart1ReceivedDataProcessCallback+0x41c>)
  11350. 800536a: 4971 ldr r1, [pc, #452] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11351. 800536c: 4871 ldr r0, [pc, #452] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11352. 800536e: f7fe fb17 bl 80039a0 <WriteDataToBuffer>
  11353. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  11354. 8005372: 2304 movs r3, #4
  11355. 8005374: 4a78 ldr r2, [pc, #480] @ (8005558 <Uart1ReceivedDataProcessCallback+0x420>)
  11356. 8005376: 496e ldr r1, [pc, #440] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11357. 8005378: 486e ldr r0, [pc, #440] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11358. 800537a: f7fe fb11 bl 80039a0 <WriteDataToBuffer>
  11359. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  11360. 800537e: 2304 movs r3, #4
  11361. 8005380: 4a76 ldr r2, [pc, #472] @ (800555c <Uart1ReceivedDataProcessCallback+0x424>)
  11362. 8005382: 496b ldr r1, [pc, #428] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11363. 8005384: 486b ldr r0, [pc, #428] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11364. 8005386: f7fe fb0b bl 80039a0 <WriteDataToBuffer>
  11365. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  11366. 800538a: 2301 movs r3, #1
  11367. 800538c: 4a74 ldr r2, [pc, #464] @ (8005560 <Uart1ReceivedDataProcessCallback+0x428>)
  11368. 800538e: 4968 ldr r1, [pc, #416] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11369. 8005390: 4868 ldr r0, [pc, #416] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11370. 8005392: f7fe fb05 bl 80039a0 <WriteDataToBuffer>
  11371. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  11372. 8005396: 2301 movs r3, #1
  11373. 8005398: 4a72 ldr r2, [pc, #456] @ (8005564 <Uart1ReceivedDataProcessCallback+0x42c>)
  11374. 800539a: 4965 ldr r1, [pc, #404] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11375. 800539c: 4865 ldr r0, [pc, #404] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11376. 800539e: f7fe faff bl 80039a0 <WriteDataToBuffer>
  11377. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  11378. 80053a2: 2301 movs r3, #1
  11379. 80053a4: 4a70 ldr r2, [pc, #448] @ (8005568 <Uart1ReceivedDataProcessCallback+0x430>)
  11380. 80053a6: 4962 ldr r1, [pc, #392] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11381. 80053a8: 4862 ldr r0, [pc, #392] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11382. 80053aa: f7fe faf9 bl 80039a0 <WriteDataToBuffer>
  11383. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  11384. 80053ae: 2301 movs r3, #1
  11385. 80053b0: 4a6e ldr r2, [pc, #440] @ (800556c <Uart1ReceivedDataProcessCallback+0x434>)
  11386. 80053b2: 495f ldr r1, [pc, #380] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11387. 80053b4: 485f ldr r0, [pc, #380] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11388. 80053b6: f7fe faf3 bl 80039a0 <WriteDataToBuffer>
  11389. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  11390. 80053ba: 2301 movs r3, #1
  11391. 80053bc: 4a6c ldr r2, [pc, #432] @ (8005570 <Uart1ReceivedDataProcessCallback+0x438>)
  11392. 80053be: 495c ldr r1, [pc, #368] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11393. 80053c0: 485c ldr r0, [pc, #368] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11394. 80053c2: f7fe faed bl 80039a0 <WriteDataToBuffer>
  11395. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  11396. 80053c6: 2301 movs r3, #1
  11397. 80053c8: 4a6a ldr r2, [pc, #424] @ (8005574 <Uart1ReceivedDataProcessCallback+0x43c>)
  11398. 80053ca: 4959 ldr r1, [pc, #356] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11399. 80053cc: 4859 ldr r0, [pc, #356] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11400. 80053ce: f7fe fae7 bl 80039a0 <WriteDataToBuffer>
  11401. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  11402. 80053d2: 4869 ldr r0, [pc, #420] @ (8005578 <Uart1ReceivedDataProcessCallback+0x440>)
  11403. 80053d4: f002 faf2 bl 80079bc <HAL_COMP_GetOutputLevel>
  11404. 80053d8: 4603 mov r3, r0
  11405. 80053da: 2b01 cmp r3, #1
  11406. 80053dc: bf0c ite eq
  11407. 80053de: 2301 moveq r3, #1
  11408. 80053e0: 2300 movne r3, #0
  11409. 80053e2: b2db uxtb r3, r3
  11410. 80053e4: f887 3047 strb.w r3, [r7, #71] @ 0x47
  11411. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  11412. 80053e8: f897 3047 ldrb.w r3, [r7, #71] @ 0x47
  11413. 80053ec: 005c lsls r4, r3, #1
  11414. 80053ee: 2108 movs r1, #8
  11415. 80053f0: 4862 ldr r0, [pc, #392] @ (800557c <Uart1ReceivedDataProcessCallback+0x444>)
  11416. 80053f2: f006 f89b bl 800b52c <HAL_GPIO_ReadPin>
  11417. 80053f6: 4603 mov r3, r0
  11418. 80053f8: 4323 orrs r3, r4
  11419. 80053fa: f003 0301 and.w r3, r3, #1
  11420. 80053fe: 2b00 cmp r3, #0
  11421. 8005400: bf0c ite eq
  11422. 8005402: 2301 moveq r3, #1
  11423. 8005404: 2300 movne r3, #0
  11424. 8005406: b2db uxtb r3, r3
  11425. 8005408: 461a mov r2, r3
  11426. 800540a: 4b48 ldr r3, [pc, #288] @ (800552c <Uart1ReceivedDataProcessCallback+0x3f4>)
  11427. 800540c: f883 202e strb.w r2, [r3, #46] @ 0x2e
  11428. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  11429. 8005410: 2301 movs r3, #1
  11430. 8005412: 4a5b ldr r2, [pc, #364] @ (8005580 <Uart1ReceivedDataProcessCallback+0x448>)
  11431. 8005414: 4946 ldr r1, [pc, #280] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11432. 8005416: 4847 ldr r0, [pc, #284] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11433. 8005418: f7fe fac2 bl 80039a0 <WriteDataToBuffer>
  11434. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentXPosition, sizeof (float));
  11435. 800541c: 2304 movs r3, #4
  11436. 800541e: 4a59 ldr r2, [pc, #356] @ (8005584 <Uart1ReceivedDataProcessCallback+0x44c>)
  11437. 8005420: 4943 ldr r1, [pc, #268] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11438. 8005422: 4844 ldr r0, [pc, #272] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11439. 8005424: f7fe fabc bl 80039a0 <WriteDataToBuffer>
  11440. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentYPosition, sizeof (float));
  11441. 8005428: 2304 movs r3, #4
  11442. 800542a: 4a57 ldr r2, [pc, #348] @ (8005588 <Uart1ReceivedDataProcessCallback+0x450>)
  11443. 800542c: 4940 ldr r1, [pc, #256] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11444. 800542e: 4841 ldr r0, [pc, #260] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11445. 8005430: f7fe fab6 bl 80039a0 <WriteDataToBuffer>
  11446. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionXWeak, sizeof (uint8_t));
  11447. 8005434: 2301 movs r3, #1
  11448. 8005436: 4a55 ldr r2, [pc, #340] @ (800558c <Uart1ReceivedDataProcessCallback+0x454>)
  11449. 8005438: 493d ldr r1, [pc, #244] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11450. 800543a: 483e ldr r0, [pc, #248] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11451. 800543c: f7fe fab0 bl 80039a0 <WriteDataToBuffer>
  11452. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionYWeak, sizeof (uint8_t));
  11453. 8005440: 2301 movs r3, #1
  11454. 8005442: 4a53 ldr r2, [pc, #332] @ (8005590 <Uart1ReceivedDataProcessCallback+0x458>)
  11455. 8005444: 493a ldr r1, [pc, #232] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11456. 8005446: 483b ldr r0, [pc, #236] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3fc>)
  11457. 8005448: f7fe faaa bl 80039a0 <WriteDataToBuffer>
  11458. osMutexRelease (sensorsInfoMutex);
  11459. 800544c: 4b36 ldr r3, [pc, #216] @ (8005528 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11460. 800544e: 681b ldr r3, [r3, #0]
  11461. 8005450: 4618 mov r0, r3
  11462. 8005452: f00f f87b bl 801454c <osMutexRelease>
  11463. respStatus = spOK;
  11464. 8005456: 2300 movs r3, #0
  11465. 8005458: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11466. } else {
  11467. respStatus = spInternalError;
  11468. }
  11469. break;
  11470. 800545c: f000 bc2d b.w 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11471. respStatus = spInternalError;
  11472. 8005460: 23fc movs r3, #252 @ 0xfc
  11473. 8005462: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11474. break;
  11475. 8005466: f000 bc28 b.w 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11476. case spSetFanSpeed:
  11477. osTimerStop (fanTimerHandle);
  11478. 800546a: 4b4a ldr r3, [pc, #296] @ (8005594 <Uart1ReceivedDataProcessCallback+0x45c>)
  11479. 800546c: 681b ldr r3, [r3, #0]
  11480. 800546e: 4618 mov r0, r3
  11481. 8005470: f00e ff64 bl 801433c <osTimerStop>
  11482. int32_t fanTimerPeriod = 0;
  11483. 8005474: 2300 movs r3, #0
  11484. 8005476: 643b str r3, [r7, #64] @ 0x40
  11485. uint32_t pulse = 0;
  11486. 8005478: 2300 movs r3, #0
  11487. 800547a: 63fb str r3, [r7, #60] @ 0x3c
  11488. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  11489. 800547c: 683b ldr r3, [r7, #0]
  11490. 800547e: 330c adds r3, #12
  11491. 8005480: f107 023c add.w r2, r7, #60 @ 0x3c
  11492. 8005484: f107 0144 add.w r1, r7, #68 @ 0x44
  11493. 8005488: 4618 mov r0, r3
  11494. 800548a: f7fe faef bl 8003a6c <ReadWordFromBufer>
  11495. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  11496. 800548e: 683b ldr r3, [r7, #0]
  11497. 8005490: 330c adds r3, #12
  11498. 8005492: f107 0240 add.w r2, r7, #64 @ 0x40
  11499. 8005496: f107 0144 add.w r1, r7, #68 @ 0x44
  11500. 800549a: 4618 mov r0, r3
  11501. 800549c: f7fe fae6 bl 8003a6c <ReadWordFromBufer>
  11502. fanTimerConfigOC.Pulse = pulse * 10;
  11503. 80054a0: 6bfa ldr r2, [r7, #60] @ 0x3c
  11504. 80054a2: 4613 mov r3, r2
  11505. 80054a4: 009b lsls r3, r3, #2
  11506. 80054a6: 4413 add r3, r2
  11507. 80054a8: 005b lsls r3, r3, #1
  11508. 80054aa: 461a mov r2, r3
  11509. 80054ac: 4b3a ldr r3, [pc, #232] @ (8005598 <Uart1ReceivedDataProcessCallback+0x460>)
  11510. 80054ae: 605a str r2, [r3, #4]
  11511. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  11512. 80054b0: 2204 movs r2, #4
  11513. 80054b2: 4939 ldr r1, [pc, #228] @ (8005598 <Uart1ReceivedDataProcessCallback+0x460>)
  11514. 80054b4: 4839 ldr r0, [pc, #228] @ (800559c <Uart1ReceivedDataProcessCallback+0x464>)
  11515. 80054b6: f00a fe45 bl 8010144 <HAL_TIM_PWM_ConfigChannel>
  11516. 80054ba: 4603 mov r3, r0
  11517. 80054bc: 2b00 cmp r3, #0
  11518. 80054be: d001 beq.n 80054c4 <Uart1ReceivedDataProcessCallback+0x38c>
  11519. Error_Handler ();
  11520. 80054c0: f7fc fd04 bl 8001ecc <Error_Handler>
  11521. }
  11522. if (fanTimerPeriod > 0) {
  11523. 80054c4: 6c3b ldr r3, [r7, #64] @ 0x40
  11524. 80054c6: 2b00 cmp r3, #0
  11525. 80054c8: dd0f ble.n 80054ea <Uart1ReceivedDataProcessCallback+0x3b2>
  11526. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  11527. 80054ca: 4b32 ldr r3, [pc, #200] @ (8005594 <Uart1ReceivedDataProcessCallback+0x45c>)
  11528. 80054cc: 681a ldr r2, [r3, #0]
  11529. 80054ce: 6c3b ldr r3, [r7, #64] @ 0x40
  11530. 80054d0: f44f 717a mov.w r1, #1000 @ 0x3e8
  11531. 80054d4: fb01 f303 mul.w r3, r1, r3
  11532. 80054d8: 4619 mov r1, r3
  11533. 80054da: 4610 mov r0, r2
  11534. 80054dc: f00e ff00 bl 80142e0 <osTimerStart>
  11535. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11536. 80054e0: 2104 movs r1, #4
  11537. 80054e2: 482e ldr r0, [pc, #184] @ (800559c <Uart1ReceivedDataProcessCallback+0x464>)
  11538. 80054e4: f00a f934 bl 800f750 <HAL_TIM_PWM_Start>
  11539. 80054e8: e019 b.n 800551e <Uart1ReceivedDataProcessCallback+0x3e6>
  11540. } else if (fanTimerPeriod == 0) {
  11541. 80054ea: 6c3b ldr r3, [r7, #64] @ 0x40
  11542. 80054ec: 2b00 cmp r3, #0
  11543. 80054ee: d109 bne.n 8005504 <Uart1ReceivedDataProcessCallback+0x3cc>
  11544. osTimerStop (fanTimerHandle);
  11545. 80054f0: 4b28 ldr r3, [pc, #160] @ (8005594 <Uart1ReceivedDataProcessCallback+0x45c>)
  11546. 80054f2: 681b ldr r3, [r3, #0]
  11547. 80054f4: 4618 mov r0, r3
  11548. 80054f6: f00e ff21 bl 801433c <osTimerStop>
  11549. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  11550. 80054fa: 2104 movs r1, #4
  11551. 80054fc: 4827 ldr r0, [pc, #156] @ (800559c <Uart1ReceivedDataProcessCallback+0x464>)
  11552. 80054fe: f00a fa35 bl 800f96c <HAL_TIM_PWM_Stop>
  11553. 8005502: e00c b.n 800551e <Uart1ReceivedDataProcessCallback+0x3e6>
  11554. } else if (fanTimerPeriod == -1) {
  11555. 8005504: 6c3b ldr r3, [r7, #64] @ 0x40
  11556. 8005506: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11557. 800550a: d108 bne.n 800551e <Uart1ReceivedDataProcessCallback+0x3e6>
  11558. osTimerStop (fanTimerHandle);
  11559. 800550c: 4b21 ldr r3, [pc, #132] @ (8005594 <Uart1ReceivedDataProcessCallback+0x45c>)
  11560. 800550e: 681b ldr r3, [r3, #0]
  11561. 8005510: 4618 mov r0, r3
  11562. 8005512: f00e ff13 bl 801433c <osTimerStop>
  11563. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11564. 8005516: 2104 movs r1, #4
  11565. 8005518: 4820 ldr r0, [pc, #128] @ (800559c <Uart1ReceivedDataProcessCallback+0x464>)
  11566. 800551a: f00a f919 bl 800f750 <HAL_TIM_PWM_Start>
  11567. }
  11568. respStatus = spOK;
  11569. 800551e: 2300 movs r3, #0
  11570. 8005520: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11571. break;
  11572. 8005524: e3c9 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11573. 8005526: bf00 nop
  11574. 8005528: 2400081c .word 0x2400081c
  11575. 800552c: 24000860 .word 0x24000860
  11576. 8005530: 2400105c .word 0x2400105c
  11577. 8005534: 24000fdc .word 0x24000fdc
  11578. 8005538: 24000864 .word 0x24000864
  11579. 800553c: 24000868 .word 0x24000868
  11580. 8005540: 2400086c .word 0x2400086c
  11581. 8005544: 24000870 .word 0x24000870
  11582. 8005548: 24000874 .word 0x24000874
  11583. 800554c: 24000875 .word 0x24000875
  11584. 8005550: 24000878 .word 0x24000878
  11585. 8005554: 2400087c .word 0x2400087c
  11586. 8005558: 24000880 .word 0x24000880
  11587. 800555c: 24000884 .word 0x24000884
  11588. 8005560: 24000888 .word 0x24000888
  11589. 8005564: 24000889 .word 0x24000889
  11590. 8005568: 2400088a .word 0x2400088a
  11591. 800556c: 2400088b .word 0x2400088b
  11592. 8005570: 2400088c .word 0x2400088c
  11593. 8005574: 2400088d .word 0x2400088d
  11594. 8005578: 240003b4 .word 0x240003b4
  11595. 800557c: 58020c00 .word 0x58020c00
  11596. 8005580: 2400088e .word 0x2400088e
  11597. 8005584: 24000890 .word 0x24000890
  11598. 8005588: 24000894 .word 0x24000894
  11599. 800558c: 24000898 .word 0x24000898
  11600. 8005590: 24000899 .word 0x24000899
  11601. 8005594: 24000714 .word 0x24000714
  11602. 8005598: 240007a4 .word 0x240007a4
  11603. 800559c: 2400043c .word 0x2400043c
  11604. case spSetMotorXOn:
  11605. int32_t motorXPWMPulse = 0;
  11606. 80055a0: 2300 movs r3, #0
  11607. 80055a2: 63bb str r3, [r7, #56] @ 0x38
  11608. int32_t motorXTimerPeriod = 0;
  11609. 80055a4: 2300 movs r3, #0
  11610. 80055a6: 637b str r3, [r7, #52] @ 0x34
  11611. uint32_t motorXStatus = 0;
  11612. 80055a8: 2300 movs r3, #0
  11613. 80055aa: 64bb str r3, [r7, #72] @ 0x48
  11614. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  11615. 80055ac: 683b ldr r3, [r7, #0]
  11616. 80055ae: 330c adds r3, #12
  11617. 80055b0: f107 0238 add.w r2, r7, #56 @ 0x38
  11618. 80055b4: f107 0144 add.w r1, r7, #68 @ 0x44
  11619. 80055b8: 4618 mov r0, r3
  11620. 80055ba: f7fe fa57 bl 8003a6c <ReadWordFromBufer>
  11621. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  11622. 80055be: 683b ldr r3, [r7, #0]
  11623. 80055c0: 330c adds r3, #12
  11624. 80055c2: f107 0234 add.w r2, r7, #52 @ 0x34
  11625. 80055c6: f107 0144 add.w r1, r7, #68 @ 0x44
  11626. 80055ca: 4618 mov r0, r3
  11627. 80055cc: f7fe fa4e bl 8003a6c <ReadWordFromBufer>
  11628. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11629. 80055d0: 4bab ldr r3, [pc, #684] @ (8005880 <Uart1ReceivedDataProcessCallback+0x748>)
  11630. 80055d2: 681b ldr r3, [r3, #0]
  11631. 80055d4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11632. 80055d8: 4618 mov r0, r3
  11633. 80055da: f00e ff6c bl 80144b6 <osMutexAcquire>
  11634. 80055de: 4603 mov r3, r0
  11635. 80055e0: 2b00 cmp r3, #0
  11636. 80055e2: d12a bne.n 800563a <Uart1ReceivedDataProcessCallback+0x502>
  11637. motorXStatus =
  11638. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  11639. 80055e4: 4ba7 ldr r3, [pc, #668] @ (8005884 <Uart1ReceivedDataProcessCallback+0x74c>)
  11640. 80055e6: 681b ldr r3, [r3, #0]
  11641. 80055e8: 6bba ldr r2, [r7, #56] @ 0x38
  11642. 80055ea: 6b79 ldr r1, [r7, #52] @ 0x34
  11643. 80055ec: 48a6 ldr r0, [pc, #664] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11644. 80055ee: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  11645. 80055f2: 4ca5 ldr r4, [pc, #660] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11646. 80055f4: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  11647. 80055f8: 9404 str r4, [sp, #16]
  11648. 80055fa: 9003 str r0, [sp, #12]
  11649. 80055fc: 9102 str r1, [sp, #8]
  11650. 80055fe: 9201 str r2, [sp, #4]
  11651. 8005600: 9300 str r3, [sp, #0]
  11652. 8005602: 2304 movs r3, #4
  11653. 8005604: 2200 movs r2, #0
  11654. 8005606: 49a1 ldr r1, [pc, #644] @ (800588c <Uart1ReceivedDataProcessCallback+0x754>)
  11655. 8005608: 48a1 ldr r0, [pc, #644] @ (8005890 <Uart1ReceivedDataProcessCallback+0x758>)
  11656. 800560a: f7fd fcf9 bl 8003000 <MotorControl>
  11657. 800560e: 4603 mov r3, r0
  11658. motorXStatus =
  11659. 8005610: 64bb str r3, [r7, #72] @ 0x48
  11660. sensorsInfo.motorXStatus = motorXStatus;
  11661. 8005612: 6cbb ldr r3, [r7, #72] @ 0x48
  11662. 8005614: b2da uxtb r2, r3
  11663. 8005616: 4b9c ldr r3, [pc, #624] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11664. 8005618: 751a strb r2, [r3, #20]
  11665. if (motorXStatus == 1) {
  11666. 800561a: 6cbb ldr r3, [r7, #72] @ 0x48
  11667. 800561c: 2b01 cmp r3, #1
  11668. 800561e: d103 bne.n 8005628 <Uart1ReceivedDataProcessCallback+0x4f0>
  11669. sensorsInfo.motorXPeakCurrent = 0.0;
  11670. 8005620: 4b99 ldr r3, [pc, #612] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11671. 8005622: f04f 0200 mov.w r2, #0
  11672. 8005626: 621a str r2, [r3, #32]
  11673. }
  11674. osMutexRelease (sensorsInfoMutex);
  11675. 8005628: 4b95 ldr r3, [pc, #596] @ (8005880 <Uart1ReceivedDataProcessCallback+0x748>)
  11676. 800562a: 681b ldr r3, [r3, #0]
  11677. 800562c: 4618 mov r0, r3
  11678. 800562e: f00e ff8d bl 801454c <osMutexRelease>
  11679. respStatus = spOK;
  11680. 8005632: 2300 movs r3, #0
  11681. 8005634: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11682. } else {
  11683. respStatus = spInternalError;
  11684. }
  11685. break;
  11686. 8005638: e33f b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11687. respStatus = spInternalError;
  11688. 800563a: 23fc movs r3, #252 @ 0xfc
  11689. 800563c: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11690. break;
  11691. 8005640: e33b b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11692. case spSetMotorYOn:
  11693. int32_t motorYPWMPulse = 0;
  11694. 8005642: 2300 movs r3, #0
  11695. 8005644: 633b str r3, [r7, #48] @ 0x30
  11696. int32_t motorYTimerPeriod = 0;
  11697. 8005646: 2300 movs r3, #0
  11698. 8005648: 62fb str r3, [r7, #44] @ 0x2c
  11699. uint32_t motorYStatus = 0;
  11700. 800564a: 2300 movs r3, #0
  11701. 800564c: 64fb str r3, [r7, #76] @ 0x4c
  11702. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  11703. 800564e: 683b ldr r3, [r7, #0]
  11704. 8005650: 330c adds r3, #12
  11705. 8005652: f107 0230 add.w r2, r7, #48 @ 0x30
  11706. 8005656: f107 0144 add.w r1, r7, #68 @ 0x44
  11707. 800565a: 4618 mov r0, r3
  11708. 800565c: f7fe fa06 bl 8003a6c <ReadWordFromBufer>
  11709. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  11710. 8005660: 683b ldr r3, [r7, #0]
  11711. 8005662: 330c adds r3, #12
  11712. 8005664: f107 022c add.w r2, r7, #44 @ 0x2c
  11713. 8005668: f107 0144 add.w r1, r7, #68 @ 0x44
  11714. 800566c: 4618 mov r0, r3
  11715. 800566e: f7fe f9fd bl 8003a6c <ReadWordFromBufer>
  11716. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11717. 8005672: 4b83 ldr r3, [pc, #524] @ (8005880 <Uart1ReceivedDataProcessCallback+0x748>)
  11718. 8005674: 681b ldr r3, [r3, #0]
  11719. 8005676: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11720. 800567a: 4618 mov r0, r3
  11721. 800567c: f00e ff1b bl 80144b6 <osMutexAcquire>
  11722. 8005680: 4603 mov r3, r0
  11723. 8005682: 2b00 cmp r3, #0
  11724. 8005684: d12a bne.n 80056dc <Uart1ReceivedDataProcessCallback+0x5a4>
  11725. motorYStatus =
  11726. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  11727. 8005686: 4b83 ldr r3, [pc, #524] @ (8005894 <Uart1ReceivedDataProcessCallback+0x75c>)
  11728. 8005688: 681b ldr r3, [r3, #0]
  11729. 800568a: 6b3a ldr r2, [r7, #48] @ 0x30
  11730. 800568c: 6af9 ldr r1, [r7, #44] @ 0x2c
  11731. 800568e: 487e ldr r0, [pc, #504] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11732. 8005690: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  11733. 8005694: 4c7c ldr r4, [pc, #496] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11734. 8005696: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  11735. 800569a: 9404 str r4, [sp, #16]
  11736. 800569c: 9003 str r0, [sp, #12]
  11737. 800569e: 9102 str r1, [sp, #8]
  11738. 80056a0: 9201 str r2, [sp, #4]
  11739. 80056a2: 9300 str r3, [sp, #0]
  11740. 80056a4: 230c movs r3, #12
  11741. 80056a6: 2208 movs r2, #8
  11742. 80056a8: 4978 ldr r1, [pc, #480] @ (800588c <Uart1ReceivedDataProcessCallback+0x754>)
  11743. 80056aa: 4879 ldr r0, [pc, #484] @ (8005890 <Uart1ReceivedDataProcessCallback+0x758>)
  11744. 80056ac: f7fd fca8 bl 8003000 <MotorControl>
  11745. 80056b0: 4603 mov r3, r0
  11746. motorYStatus =
  11747. 80056b2: 64fb str r3, [r7, #76] @ 0x4c
  11748. sensorsInfo.motorYStatus = motorYStatus;
  11749. 80056b4: 6cfb ldr r3, [r7, #76] @ 0x4c
  11750. 80056b6: b2da uxtb r2, r3
  11751. 80056b8: 4b73 ldr r3, [pc, #460] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11752. 80056ba: 755a strb r2, [r3, #21]
  11753. if (motorYStatus == 1) {
  11754. 80056bc: 6cfb ldr r3, [r7, #76] @ 0x4c
  11755. 80056be: 2b01 cmp r3, #1
  11756. 80056c0: d103 bne.n 80056ca <Uart1ReceivedDataProcessCallback+0x592>
  11757. sensorsInfo.motorYPeakCurrent = 0.0;
  11758. 80056c2: 4b71 ldr r3, [pc, #452] @ (8005888 <Uart1ReceivedDataProcessCallback+0x750>)
  11759. 80056c4: f04f 0200 mov.w r2, #0
  11760. 80056c8: 625a str r2, [r3, #36] @ 0x24
  11761. }
  11762. osMutexRelease (sensorsInfoMutex);
  11763. 80056ca: 4b6d ldr r3, [pc, #436] @ (8005880 <Uart1ReceivedDataProcessCallback+0x748>)
  11764. 80056cc: 681b ldr r3, [r3, #0]
  11765. 80056ce: 4618 mov r0, r3
  11766. 80056d0: f00e ff3c bl 801454c <osMutexRelease>
  11767. respStatus = spOK;
  11768. 80056d4: 2300 movs r3, #0
  11769. 80056d6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11770. } else {
  11771. respStatus = spInternalError;
  11772. }
  11773. break;
  11774. 80056da: e2ee b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11775. respStatus = spInternalError;
  11776. 80056dc: 23fc movs r3, #252 @ 0xfc
  11777. 80056de: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11778. break;
  11779. 80056e2: e2ea b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11780. case spSetDiodeOn:
  11781. osTimerStop (debugLedTimerHandle);
  11782. 80056e4: 4b6c ldr r3, [pc, #432] @ (8005898 <Uart1ReceivedDataProcessCallback+0x760>)
  11783. 80056e6: 681b ldr r3, [r3, #0]
  11784. 80056e8: 4618 mov r0, r3
  11785. 80056ea: f00e fe27 bl 801433c <osTimerStop>
  11786. int32_t dbgLedTimerPeriod = 0;
  11787. 80056ee: 2300 movs r3, #0
  11788. 80056f0: 62bb str r3, [r7, #40] @ 0x28
  11789. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  11790. 80056f2: 683b ldr r3, [r7, #0]
  11791. 80056f4: 330c adds r3, #12
  11792. 80056f6: f107 0228 add.w r2, r7, #40 @ 0x28
  11793. 80056fa: f107 0144 add.w r1, r7, #68 @ 0x44
  11794. 80056fe: 4618 mov r0, r3
  11795. 8005700: f7fe f9b4 bl 8003a6c <ReadWordFromBufer>
  11796. if (dbgLedTimerPeriod > 0) {
  11797. 8005704: 6abb ldr r3, [r7, #40] @ 0x28
  11798. 8005706: 2b00 cmp r3, #0
  11799. 8005708: dd0e ble.n 8005728 <Uart1ReceivedDataProcessCallback+0x5f0>
  11800. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  11801. 800570a: 4b63 ldr r3, [pc, #396] @ (8005898 <Uart1ReceivedDataProcessCallback+0x760>)
  11802. 800570c: 681a ldr r2, [r3, #0]
  11803. 800570e: 6abb ldr r3, [r7, #40] @ 0x28
  11804. 8005710: f44f 717a mov.w r1, #1000 @ 0x3e8
  11805. 8005714: fb01 f303 mul.w r3, r1, r3
  11806. 8005718: 4619 mov r1, r3
  11807. 800571a: 4610 mov r0, r2
  11808. 800571c: f00e fde0 bl 80142e0 <osTimerStart>
  11809. DbgLEDOn (DBG_LED1);
  11810. 8005720: 2010 movs r0, #16
  11811. 8005722: f7fd fbdf bl 8002ee4 <DbgLEDOn>
  11812. 8005726: e017 b.n 8005758 <Uart1ReceivedDataProcessCallback+0x620>
  11813. } else if (dbgLedTimerPeriod == 0) {
  11814. 8005728: 6abb ldr r3, [r7, #40] @ 0x28
  11815. 800572a: 2b00 cmp r3, #0
  11816. 800572c: d108 bne.n 8005740 <Uart1ReceivedDataProcessCallback+0x608>
  11817. osTimerStop (debugLedTimerHandle);
  11818. 800572e: 4b5a ldr r3, [pc, #360] @ (8005898 <Uart1ReceivedDataProcessCallback+0x760>)
  11819. 8005730: 681b ldr r3, [r3, #0]
  11820. 8005732: 4618 mov r0, r3
  11821. 8005734: f00e fe02 bl 801433c <osTimerStop>
  11822. DbgLEDOff (DBG_LED1);
  11823. 8005738: 2010 movs r0, #16
  11824. 800573a: f7fd fbe5 bl 8002f08 <DbgLEDOff>
  11825. 800573e: e00b b.n 8005758 <Uart1ReceivedDataProcessCallback+0x620>
  11826. } else if (dbgLedTimerPeriod == -1) {
  11827. 8005740: 6abb ldr r3, [r7, #40] @ 0x28
  11828. 8005742: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11829. 8005746: d107 bne.n 8005758 <Uart1ReceivedDataProcessCallback+0x620>
  11830. osTimerStop (debugLedTimerHandle);
  11831. 8005748: 4b53 ldr r3, [pc, #332] @ (8005898 <Uart1ReceivedDataProcessCallback+0x760>)
  11832. 800574a: 681b ldr r3, [r3, #0]
  11833. 800574c: 4618 mov r0, r3
  11834. 800574e: f00e fdf5 bl 801433c <osTimerStop>
  11835. DbgLEDOn (DBG_LED1);
  11836. 8005752: 2010 movs r0, #16
  11837. 8005754: f7fd fbc6 bl 8002ee4 <DbgLEDOn>
  11838. }
  11839. respStatus = spOK;
  11840. 8005758: 2300 movs r3, #0
  11841. 800575a: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11842. break;
  11843. 800575e: e2ac b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11844. case spSetmotorXMaxCurrent:
  11845. float motorXMaxCurrent = 0;
  11846. 8005760: f04f 0300 mov.w r3, #0
  11847. 8005764: 627b str r3, [r7, #36] @ 0x24
  11848. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  11849. 8005766: 683b ldr r3, [r7, #0]
  11850. 8005768: 330c adds r3, #12
  11851. 800576a: f107 0224 add.w r2, r7, #36 @ 0x24
  11852. 800576e: f107 0144 add.w r1, r7, #68 @ 0x44
  11853. 8005772: 4618 mov r0, r3
  11854. 8005774: f7fe f97a bl 8003a6c <ReadWordFromBufer>
  11855. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  11856. 8005778: edd7 7a09 vldr s15, [r7, #36] @ 0x24
  11857. 800577c: ed9f 7a47 vldr s14, [pc, #284] @ 800589c <Uart1ReceivedDataProcessCallback+0x764>
  11858. 8005780: ee67 7a87 vmul.f32 s15, s15, s14
  11859. 8005784: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11860. 8005788: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11861. 800578c: ee86 7b05 vdiv.f64 d7, d6, d5
  11862. 8005790: eefc 7bc7 vcvt.u32.f64 s15, d7
  11863. 8005794: ee17 3a90 vmov r3, s15
  11864. 8005798: 653b str r3, [r7, #80] @ 0x50
  11865. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  11866. 800579a: 6d3b ldr r3, [r7, #80] @ 0x50
  11867. 800579c: 2200 movs r2, #0
  11868. 800579e: 2100 movs r1, #0
  11869. 80057a0: 483f ldr r0, [pc, #252] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x768>)
  11870. 80057a2: f002 fd56 bl 8008252 <HAL_DAC_SetValue>
  11871. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  11872. 80057a6: 2100 movs r1, #0
  11873. 80057a8: 483d ldr r0, [pc, #244] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x768>)
  11874. 80057aa: f002 fca5 bl 80080f8 <HAL_DAC_Start>
  11875. respStatus = spOK;
  11876. 80057ae: 2300 movs r3, #0
  11877. 80057b0: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11878. break;
  11879. 80057b4: e281 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11880. case spSetmotorYMaxCurrent:
  11881. float motorYMaxCurrent = 0;
  11882. 80057b6: f04f 0300 mov.w r3, #0
  11883. 80057ba: 623b str r3, [r7, #32]
  11884. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  11885. 80057bc: 683b ldr r3, [r7, #0]
  11886. 80057be: 330c adds r3, #12
  11887. 80057c0: f107 0220 add.w r2, r7, #32
  11888. 80057c4: f107 0144 add.w r1, r7, #68 @ 0x44
  11889. 80057c8: 4618 mov r0, r3
  11890. 80057ca: f7fe f94f bl 8003a6c <ReadWordFromBufer>
  11891. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  11892. 80057ce: edd7 7a08 vldr s15, [r7, #32]
  11893. 80057d2: ed9f 7a32 vldr s14, [pc, #200] @ 800589c <Uart1ReceivedDataProcessCallback+0x764>
  11894. 80057d6: ee67 7a87 vmul.f32 s15, s15, s14
  11895. 80057da: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11896. 80057de: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11897. 80057e2: ee86 7b05 vdiv.f64 d7, d6, d5
  11898. 80057e6: eefc 7bc7 vcvt.u32.f64 s15, d7
  11899. 80057ea: ee17 3a90 vmov r3, s15
  11900. 80057ee: 657b str r3, [r7, #84] @ 0x54
  11901. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  11902. 80057f0: 6d7b ldr r3, [r7, #84] @ 0x54
  11903. 80057f2: 2200 movs r2, #0
  11904. 80057f4: 2110 movs r1, #16
  11905. 80057f6: 482a ldr r0, [pc, #168] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x768>)
  11906. 80057f8: f002 fd2b bl 8008252 <HAL_DAC_SetValue>
  11907. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  11908. 80057fc: 2110 movs r1, #16
  11909. 80057fe: 4828 ldr r0, [pc, #160] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x768>)
  11910. 8005800: f002 fc7a bl 80080f8 <HAL_DAC_Start>
  11911. respStatus = spOK;
  11912. 8005804: 2300 movs r3, #0
  11913. 8005806: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11914. break;
  11915. 800580a: e256 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11916. case spClearPeakMeasurments:
  11917. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11918. 800580c: 4b25 ldr r3, [pc, #148] @ (80058a4 <Uart1ReceivedDataProcessCallback+0x76c>)
  11919. 800580e: 681b ldr r3, [r3, #0]
  11920. 8005810: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11921. 8005814: 4618 mov r0, r3
  11922. 8005816: f00e fe4e bl 80144b6 <osMutexAcquire>
  11923. 800581a: 4603 mov r3, r0
  11924. 800581c: 2b00 cmp r3, #0
  11925. 800581e: d12a bne.n 8005876 <Uart1ReceivedDataProcessCallback+0x73e>
  11926. for (int i = 0; i < 3; i++) {
  11927. 8005820: 2300 movs r3, #0
  11928. 8005822: 67fb str r3, [r7, #124] @ 0x7c
  11929. 8005824: e01b b.n 800585e <Uart1ReceivedDataProcessCallback+0x726>
  11930. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  11931. 8005826: 4a20 ldr r2, [pc, #128] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x770>)
  11932. 8005828: 6ffb ldr r3, [r7, #124] @ 0x7c
  11933. 800582a: 009b lsls r3, r3, #2
  11934. 800582c: 4413 add r3, r2
  11935. 800582e: 681a ldr r2, [r3, #0]
  11936. 8005830: 491d ldr r1, [pc, #116] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x770>)
  11937. 8005832: 6ffb ldr r3, [r7, #124] @ 0x7c
  11938. 8005834: 3302 adds r3, #2
  11939. 8005836: 009b lsls r3, r3, #2
  11940. 8005838: 440b add r3, r1
  11941. 800583a: 3304 adds r3, #4
  11942. 800583c: 601a str r2, [r3, #0]
  11943. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  11944. 800583e: 4a1a ldr r2, [pc, #104] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x770>)
  11945. 8005840: 6ffb ldr r3, [r7, #124] @ 0x7c
  11946. 8005842: 3306 adds r3, #6
  11947. 8005844: 009b lsls r3, r3, #2
  11948. 8005846: 4413 add r3, r2
  11949. 8005848: 681a ldr r2, [r3, #0]
  11950. 800584a: 4917 ldr r1, [pc, #92] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x770>)
  11951. 800584c: 6ffb ldr r3, [r7, #124] @ 0x7c
  11952. 800584e: 3308 adds r3, #8
  11953. 8005850: 009b lsls r3, r3, #2
  11954. 8005852: 440b add r3, r1
  11955. 8005854: 3304 adds r3, #4
  11956. 8005856: 601a str r2, [r3, #0]
  11957. for (int i = 0; i < 3; i++) {
  11958. 8005858: 6ffb ldr r3, [r7, #124] @ 0x7c
  11959. 800585a: 3301 adds r3, #1
  11960. 800585c: 67fb str r3, [r7, #124] @ 0x7c
  11961. 800585e: 6ffb ldr r3, [r7, #124] @ 0x7c
  11962. 8005860: 2b02 cmp r3, #2
  11963. 8005862: dde0 ble.n 8005826 <Uart1ReceivedDataProcessCallback+0x6ee>
  11964. }
  11965. osMutexRelease (resMeasurementsMutex);
  11966. 8005864: 4b0f ldr r3, [pc, #60] @ (80058a4 <Uart1ReceivedDataProcessCallback+0x76c>)
  11967. 8005866: 681b ldr r3, [r3, #0]
  11968. 8005868: 4618 mov r0, r3
  11969. 800586a: f00e fe6f bl 801454c <osMutexRelease>
  11970. respStatus = spOK;
  11971. 800586e: 2300 movs r3, #0
  11972. 8005870: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11973. } else {
  11974. respStatus = spInternalError;
  11975. }
  11976. break;
  11977. 8005874: e221 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11978. respStatus = spInternalError;
  11979. 8005876: 23fc movs r3, #252 @ 0xfc
  11980. 8005878: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11981. break;
  11982. 800587c: e21d b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  11983. 800587e: bf00 nop
  11984. 8005880: 2400081c .word 0x2400081c
  11985. 8005884: 24000744 .word 0x24000744
  11986. 8005888: 24000860 .word 0x24000860
  11987. 800588c: 240007c0 .word 0x240007c0
  11988. 8005890: 240004d4 .word 0x240004d4
  11989. 8005894: 24000774 .word 0x24000774
  11990. 8005898: 240006e4 .word 0x240006e4
  11991. 800589c: 457ff000 .word 0x457ff000
  11992. 80058a0: 24000404 .word 0x24000404
  11993. 80058a4: 24000818 .word 0x24000818
  11994. 80058a8: 24000824 .word 0x24000824
  11995. case spSetEncoderXValue:
  11996. float enocoderXValue = 0;
  11997. 80058ac: f04f 0300 mov.w r3, #0
  11998. 80058b0: 61fb str r3, [r7, #28]
  11999. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  12000. 80058b2: 683b ldr r3, [r7, #0]
  12001. 80058b4: 330c adds r3, #12
  12002. 80058b6: f107 021c add.w r2, r7, #28
  12003. 80058ba: f107 0144 add.w r1, r7, #68 @ 0x44
  12004. 80058be: 4618 mov r0, r3
  12005. 80058c0: f7fe f8d4 bl 8003a6c <ReadWordFromBufer>
  12006. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  12007. 80058c4: 4bbc ldr r3, [pc, #752] @ (8005bb8 <Uart1ReceivedDataProcessCallback+0xa80>)
  12008. 80058c6: 681b ldr r3, [r3, #0]
  12009. 80058c8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12010. 80058cc: 4618 mov r0, r3
  12011. 80058ce: f00e fdf2 bl 80144b6 <osMutexAcquire>
  12012. 80058d2: 4603 mov r3, r0
  12013. 80058d4: 2b00 cmp r3, #0
  12014. 80058d6: d10b bne.n 80058f0 <Uart1ReceivedDataProcessCallback+0x7b8>
  12015. sensorsInfo.pvEncoderX = enocoderXValue;
  12016. 80058d8: 69fb ldr r3, [r7, #28]
  12017. 80058da: 4ab8 ldr r2, [pc, #736] @ (8005bbc <Uart1ReceivedDataProcessCallback+0xa84>)
  12018. 80058dc: 60d3 str r3, [r2, #12]
  12019. osMutexRelease (sensorsInfoMutex);
  12020. 80058de: 4bb6 ldr r3, [pc, #728] @ (8005bb8 <Uart1ReceivedDataProcessCallback+0xa80>)
  12021. 80058e0: 681b ldr r3, [r3, #0]
  12022. 80058e2: 4618 mov r0, r3
  12023. 80058e4: f00e fe32 bl 801454c <osMutexRelease>
  12024. respStatus = spOK;
  12025. 80058e8: 2300 movs r3, #0
  12026. 80058ea: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12027. } else {
  12028. respStatus = spInternalError;
  12029. }
  12030. break;
  12031. 80058ee: e1e4 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12032. respStatus = spInternalError;
  12033. 80058f0: 23fc movs r3, #252 @ 0xfc
  12034. 80058f2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12035. break;
  12036. 80058f6: e1e0 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12037. case spSetEncoderYValue:
  12038. float enocoderYValue = 0;
  12039. 80058f8: f04f 0300 mov.w r3, #0
  12040. 80058fc: 61bb str r3, [r7, #24]
  12041. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  12042. 80058fe: 683b ldr r3, [r7, #0]
  12043. 8005900: 330c adds r3, #12
  12044. 8005902: f107 0218 add.w r2, r7, #24
  12045. 8005906: f107 0144 add.w r1, r7, #68 @ 0x44
  12046. 800590a: 4618 mov r0, r3
  12047. 800590c: f7fe f8ae bl 8003a6c <ReadWordFromBufer>
  12048. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  12049. 8005910: 4ba9 ldr r3, [pc, #676] @ (8005bb8 <Uart1ReceivedDataProcessCallback+0xa80>)
  12050. 8005912: 681b ldr r3, [r3, #0]
  12051. 8005914: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12052. 8005918: 4618 mov r0, r3
  12053. 800591a: f00e fdcc bl 80144b6 <osMutexAcquire>
  12054. 800591e: 4603 mov r3, r0
  12055. 8005920: 2b00 cmp r3, #0
  12056. 8005922: d10b bne.n 800593c <Uart1ReceivedDataProcessCallback+0x804>
  12057. sensorsInfo.pvEncoderY = enocoderYValue;
  12058. 8005924: 69bb ldr r3, [r7, #24]
  12059. 8005926: 4aa5 ldr r2, [pc, #660] @ (8005bbc <Uart1ReceivedDataProcessCallback+0xa84>)
  12060. 8005928: 6113 str r3, [r2, #16]
  12061. osMutexRelease (sensorsInfoMutex);
  12062. 800592a: 4ba3 ldr r3, [pc, #652] @ (8005bb8 <Uart1ReceivedDataProcessCallback+0xa80>)
  12063. 800592c: 681b ldr r3, [r3, #0]
  12064. 800592e: 4618 mov r0, r3
  12065. 8005930: f00e fe0c bl 801454c <osMutexRelease>
  12066. respStatus = spOK;
  12067. 8005934: 2300 movs r3, #0
  12068. 8005936: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12069. } else {
  12070. respStatus = spInternalError;
  12071. }
  12072. break;
  12073. 800593a: e1be b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12074. respStatus = spInternalError;
  12075. 800593c: 23fc movs r3, #252 @ 0xfc
  12076. 800593e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12077. break;
  12078. 8005942: e1ba b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12079. case spSetVoltageMeasGains:
  12080. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12081. 8005944: 4b9e ldr r3, [pc, #632] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12082. 8005946: 681b ldr r3, [r3, #0]
  12083. 8005948: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12084. 800594c: 4618 mov r0, r3
  12085. 800594e: f00e fdb2 bl 80144b6 <osMutexAcquire>
  12086. 8005952: 4603 mov r3, r0
  12087. 8005954: 2b00 cmp r3, #0
  12088. 8005956: d122 bne.n 800599e <Uart1ReceivedDataProcessCallback+0x866>
  12089. for (uint8_t i = 0; i < 3; i++) {
  12090. 8005958: 2300 movs r3, #0
  12091. 800595a: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12092. 800595e: e011 b.n 8005984 <Uart1ReceivedDataProcessCallback+0x84c>
  12093. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  12094. 8005960: 683b ldr r3, [r7, #0]
  12095. 8005962: f103 000c add.w r0, r3, #12
  12096. 8005966: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12097. 800596a: 00db lsls r3, r3, #3
  12098. 800596c: 4a95 ldr r2, [pc, #596] @ (8005bc4 <Uart1ReceivedDataProcessCallback+0xa8c>)
  12099. 800596e: 441a add r2, r3
  12100. 8005970: f107 0344 add.w r3, r7, #68 @ 0x44
  12101. 8005974: 4619 mov r1, r3
  12102. 8005976: f7fe f879 bl 8003a6c <ReadWordFromBufer>
  12103. for (uint8_t i = 0; i < 3; i++) {
  12104. 800597a: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12105. 800597e: 3301 adds r3, #1
  12106. 8005980: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12107. 8005984: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12108. 8005988: 2b02 cmp r3, #2
  12109. 800598a: d9e9 bls.n 8005960 <Uart1ReceivedDataProcessCallback+0x828>
  12110. }
  12111. osMutexRelease (resMeasurementsMutex);
  12112. 800598c: 4b8c ldr r3, [pc, #560] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12113. 800598e: 681b ldr r3, [r3, #0]
  12114. 8005990: 4618 mov r0, r3
  12115. 8005992: f00e fddb bl 801454c <osMutexRelease>
  12116. respStatus = spOK;
  12117. 8005996: 2300 movs r3, #0
  12118. 8005998: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12119. } else {
  12120. respStatus = spInternalError;
  12121. }
  12122. break;
  12123. 800599c: e18d b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12124. respStatus = spInternalError;
  12125. 800599e: 23fc movs r3, #252 @ 0xfc
  12126. 80059a0: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12127. break;
  12128. 80059a4: e189 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12129. case spSetVoltageMeasOffsets:
  12130. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12131. 80059a6: 4b86 ldr r3, [pc, #536] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12132. 80059a8: 681b ldr r3, [r3, #0]
  12133. 80059aa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12134. 80059ae: 4618 mov r0, r3
  12135. 80059b0: f00e fd81 bl 80144b6 <osMutexAcquire>
  12136. 80059b4: 4603 mov r3, r0
  12137. 80059b6: 2b00 cmp r3, #0
  12138. 80059b8: d123 bne.n 8005a02 <Uart1ReceivedDataProcessCallback+0x8ca>
  12139. for (uint8_t i = 0; i < 3; i++) {
  12140. 80059ba: 2300 movs r3, #0
  12141. 80059bc: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12142. 80059c0: e012 b.n 80059e8 <Uart1ReceivedDataProcessCallback+0x8b0>
  12143. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  12144. 80059c2: 683b ldr r3, [r7, #0]
  12145. 80059c4: f103 000c add.w r0, r3, #12
  12146. 80059c8: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12147. 80059cc: 00db lsls r3, r3, #3
  12148. 80059ce: 4a7d ldr r2, [pc, #500] @ (8005bc4 <Uart1ReceivedDataProcessCallback+0xa8c>)
  12149. 80059d0: 4413 add r3, r2
  12150. 80059d2: 1d1a adds r2, r3, #4
  12151. 80059d4: f107 0344 add.w r3, r7, #68 @ 0x44
  12152. 80059d8: 4619 mov r1, r3
  12153. 80059da: f7fe f847 bl 8003a6c <ReadWordFromBufer>
  12154. for (uint8_t i = 0; i < 3; i++) {
  12155. 80059de: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12156. 80059e2: 3301 adds r3, #1
  12157. 80059e4: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12158. 80059e8: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12159. 80059ec: 2b02 cmp r3, #2
  12160. 80059ee: d9e8 bls.n 80059c2 <Uart1ReceivedDataProcessCallback+0x88a>
  12161. }
  12162. osMutexRelease (resMeasurementsMutex);
  12163. 80059f0: 4b73 ldr r3, [pc, #460] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12164. 80059f2: 681b ldr r3, [r3, #0]
  12165. 80059f4: 4618 mov r0, r3
  12166. 80059f6: f00e fda9 bl 801454c <osMutexRelease>
  12167. respStatus = spOK;
  12168. 80059fa: 2300 movs r3, #0
  12169. 80059fc: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12170. } else {
  12171. respStatus = spInternalError;
  12172. }
  12173. break;
  12174. 8005a00: e15b b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12175. respStatus = spInternalError;
  12176. 8005a02: 23fc movs r3, #252 @ 0xfc
  12177. 8005a04: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12178. break;
  12179. 8005a08: e157 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12180. case spSetCurrentMeasGains:
  12181. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12182. 8005a0a: 4b6d ldr r3, [pc, #436] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12183. 8005a0c: 681b ldr r3, [r3, #0]
  12184. 8005a0e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12185. 8005a12: 4618 mov r0, r3
  12186. 8005a14: f00e fd4f bl 80144b6 <osMutexAcquire>
  12187. 8005a18: 4603 mov r3, r0
  12188. 8005a1a: 2b00 cmp r3, #0
  12189. 8005a1c: d122 bne.n 8005a64 <Uart1ReceivedDataProcessCallback+0x92c>
  12190. for (uint8_t i = 0; i < 3; i++) {
  12191. 8005a1e: 2300 movs r3, #0
  12192. 8005a20: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12193. 8005a24: e011 b.n 8005a4a <Uart1ReceivedDataProcessCallback+0x912>
  12194. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  12195. 8005a26: 683b ldr r3, [r7, #0]
  12196. 8005a28: f103 000c add.w r0, r3, #12
  12197. 8005a2c: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12198. 8005a30: 00db lsls r3, r3, #3
  12199. 8005a32: 4a65 ldr r2, [pc, #404] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa90>)
  12200. 8005a34: 441a add r2, r3
  12201. 8005a36: f107 0344 add.w r3, r7, #68 @ 0x44
  12202. 8005a3a: 4619 mov r1, r3
  12203. 8005a3c: f7fe f816 bl 8003a6c <ReadWordFromBufer>
  12204. for (uint8_t i = 0; i < 3; i++) {
  12205. 8005a40: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12206. 8005a44: 3301 adds r3, #1
  12207. 8005a46: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12208. 8005a4a: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12209. 8005a4e: 2b02 cmp r3, #2
  12210. 8005a50: d9e9 bls.n 8005a26 <Uart1ReceivedDataProcessCallback+0x8ee>
  12211. }
  12212. osMutexRelease (resMeasurementsMutex);
  12213. 8005a52: 4b5b ldr r3, [pc, #364] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12214. 8005a54: 681b ldr r3, [r3, #0]
  12215. 8005a56: 4618 mov r0, r3
  12216. 8005a58: f00e fd78 bl 801454c <osMutexRelease>
  12217. respStatus = spOK;
  12218. 8005a5c: 2300 movs r3, #0
  12219. 8005a5e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12220. } else {
  12221. respStatus = spInternalError;
  12222. }
  12223. break;
  12224. 8005a62: e12a b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12225. respStatus = spInternalError;
  12226. 8005a64: 23fc movs r3, #252 @ 0xfc
  12227. 8005a66: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12228. break;
  12229. 8005a6a: e126 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12230. case spSetCurrentMeasOffsets:
  12231. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12232. 8005a6c: 4b54 ldr r3, [pc, #336] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12233. 8005a6e: 681b ldr r3, [r3, #0]
  12234. 8005a70: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12235. 8005a74: 4618 mov r0, r3
  12236. 8005a76: f00e fd1e bl 80144b6 <osMutexAcquire>
  12237. 8005a7a: 4603 mov r3, r0
  12238. 8005a7c: 2b00 cmp r3, #0
  12239. 8005a7e: d123 bne.n 8005ac8 <Uart1ReceivedDataProcessCallback+0x990>
  12240. for (uint8_t i = 0; i < 3; i++) {
  12241. 8005a80: 2300 movs r3, #0
  12242. 8005a82: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12243. 8005a86: e012 b.n 8005aae <Uart1ReceivedDataProcessCallback+0x976>
  12244. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  12245. 8005a88: 683b ldr r3, [r7, #0]
  12246. 8005a8a: f103 000c add.w r0, r3, #12
  12247. 8005a8e: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12248. 8005a92: 00db lsls r3, r3, #3
  12249. 8005a94: 4a4c ldr r2, [pc, #304] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa90>)
  12250. 8005a96: 4413 add r3, r2
  12251. 8005a98: 1d1a adds r2, r3, #4
  12252. 8005a9a: f107 0344 add.w r3, r7, #68 @ 0x44
  12253. 8005a9e: 4619 mov r1, r3
  12254. 8005aa0: f7fd ffe4 bl 8003a6c <ReadWordFromBufer>
  12255. for (uint8_t i = 0; i < 3; i++) {
  12256. 8005aa4: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12257. 8005aa8: 3301 adds r3, #1
  12258. 8005aaa: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12259. 8005aae: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12260. 8005ab2: 2b02 cmp r3, #2
  12261. 8005ab4: d9e8 bls.n 8005a88 <Uart1ReceivedDataProcessCallback+0x950>
  12262. }
  12263. osMutexRelease (resMeasurementsMutex);
  12264. 8005ab6: 4b42 ldr r3, [pc, #264] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa88>)
  12265. 8005ab8: 681b ldr r3, [r3, #0]
  12266. 8005aba: 4618 mov r0, r3
  12267. 8005abc: f00e fd46 bl 801454c <osMutexRelease>
  12268. respStatus = spOK;
  12269. 8005ac0: 2300 movs r3, #0
  12270. 8005ac2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12271. } else {
  12272. respStatus = spInternalError;
  12273. }
  12274. break;
  12275. 8005ac6: e0f8 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12276. respStatus = spInternalError;
  12277. 8005ac8: 23fc movs r3, #252 @ 0xfc
  12278. 8005aca: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12279. break;
  12280. 8005ace: e0f4 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12281. __ASM volatile ("cpsid i" : : : "memory");
  12282. 8005ad0: b672 cpsid i
  12283. }
  12284. 8005ad2: bf00 nop
  12285. case spResetSystem:
  12286. __disable_irq();
  12287. NVIC_SystemReset();
  12288. 8005ad4: f7fe ff62 bl 800499c <__NVIC_SystemReset>
  12289. break;
  12290. case spSetPositonX:
  12291. PositionControlTaskData posXData = { 0 };
  12292. 8005ad8: f04f 0300 mov.w r3, #0
  12293. 8005adc: 617b str r3, [r7, #20]
  12294. if (positionXControlTaskInitArg.positionSettingQueue != NULL)
  12295. 8005ade: 4b3b ldr r3, [pc, #236] @ (8005bcc <Uart1ReceivedDataProcessCallback+0xa94>)
  12296. 8005ae0: 691b ldr r3, [r3, #16]
  12297. 8005ae2: 2b00 cmp r3, #0
  12298. 8005ae4: f000 80e6 beq.w 8005cb4 <Uart1ReceivedDataProcessCallback+0xb7c>
  12299. {
  12300. float posXPercent = 0;
  12301. 8005ae8: f04f 0300 mov.w r3, #0
  12302. 8005aec: 60fb str r3, [r7, #12]
  12303. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posXPercent);
  12304. 8005aee: 683b ldr r3, [r7, #0]
  12305. 8005af0: 330c adds r3, #12
  12306. 8005af2: f107 020c add.w r2, r7, #12
  12307. 8005af6: f107 0144 add.w r1, r7, #68 @ 0x44
  12308. 8005afa: 4618 mov r0, r3
  12309. 8005afc: f7fd ff81 bl 8003a02 <ReadFloatFromBuffer>
  12310. float posXDegress = MAX_X_AXE_ANGLE * posXPercent * 0.01;
  12311. 8005b00: edd7 7a03 vldr s15, [r7, #12]
  12312. 8005b04: ed9f 7a32 vldr s14, [pc, #200] @ 8005bd0 <Uart1ReceivedDataProcessCallback+0xa98>
  12313. 8005b08: ee67 7a87 vmul.f32 s15, s15, s14
  12314. 8005b0c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12315. 8005b10: ed9f 6b27 vldr d6, [pc, #156] @ 8005bb0 <Uart1ReceivedDataProcessCallback+0xa78>
  12316. 8005b14: ee27 7b06 vmul.f64 d7, d7, d6
  12317. 8005b18: eef7 7bc7 vcvt.f32.f64 s15, d7
  12318. 8005b1c: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  12319. float angleDelta = 360 / ENCODER_X_IMP_PER_TURN;
  12320. 8005b20: 4b2c ldr r3, [pc, #176] @ (8005bd4 <Uart1ReceivedDataProcessCallback+0xa9c>)
  12321. 8005b22: 65fb str r3, [r7, #92] @ 0x5c
  12322. float rest = fmodf(posXDegress, angleDelta);
  12323. 8005b24: edd7 0a17 vldr s1, [r7, #92] @ 0x5c
  12324. 8005b28: ed97 0a18 vldr s0, [r7, #96] @ 0x60
  12325. 8005b2c: f012 fcda bl 80184e4 <fmodf>
  12326. 8005b30: ed87 0a16 vstr s0, [r7, #88] @ 0x58
  12327. if ( rest > (angleDelta/2))
  12328. 8005b34: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  12329. 8005b38: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12330. 8005b3c: eec7 7a26 vdiv.f32 s15, s14, s13
  12331. 8005b40: ed97 7a16 vldr s14, [r7, #88] @ 0x58
  12332. 8005b44: eeb4 7ae7 vcmpe.f32 s14, s15
  12333. 8005b48: eef1 fa10 vmrs APSR_nzcv, fpscr
  12334. 8005b4c: dd14 ble.n 8005b78 <Uart1ReceivedDataProcessCallback+0xa40>
  12335. {
  12336. posXData.positionSettingValue = 100 * (posXDegress - rest + angleDelta) / MAX_X_AXE_ANGLE;
  12337. 8005b4e: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12338. 8005b52: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12339. 8005b56: ee37 7a67 vsub.f32 s14, s14, s15
  12340. 8005b5a: edd7 7a17 vldr s15, [r7, #92] @ 0x5c
  12341. 8005b5e: ee77 7a27 vadd.f32 s15, s14, s15
  12342. 8005b62: ed9f 7a1d vldr s14, [pc, #116] @ 8005bd8 <Uart1ReceivedDataProcessCallback+0xaa0>
  12343. 8005b66: ee27 7a87 vmul.f32 s14, s15, s14
  12344. 8005b6a: eddf 6a19 vldr s13, [pc, #100] @ 8005bd0 <Uart1ReceivedDataProcessCallback+0xa98>
  12345. 8005b6e: eec7 7a26 vdiv.f32 s15, s14, s13
  12346. 8005b72: edc7 7a05 vstr s15, [r7, #20]
  12347. 8005b76: e00f b.n 8005b98 <Uart1ReceivedDataProcessCallback+0xa60>
  12348. }
  12349. else
  12350. {
  12351. posXData.positionSettingValue = 100 * (posXDegress - rest) / MAX_X_AXE_ANGLE;
  12352. 8005b78: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12353. 8005b7c: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12354. 8005b80: ee77 7a67 vsub.f32 s15, s14, s15
  12355. 8005b84: ed9f 7a14 vldr s14, [pc, #80] @ 8005bd8 <Uart1ReceivedDataProcessCallback+0xaa0>
  12356. 8005b88: ee27 7a87 vmul.f32 s14, s15, s14
  12357. 8005b8c: eddf 6a10 vldr s13, [pc, #64] @ 8005bd0 <Uart1ReceivedDataProcessCallback+0xa98>
  12358. 8005b90: eec7 7a26 vdiv.f32 s15, s14, s13
  12359. 8005b94: edc7 7a05 vstr s15, [r7, #20]
  12360. }
  12361. osMessageQueuePut(positionXControlTaskInitArg.positionSettingQueue, &posXData, 0, 0);
  12362. 8005b98: 4b0c ldr r3, [pc, #48] @ (8005bcc <Uart1ReceivedDataProcessCallback+0xa94>)
  12363. 8005b9a: 6918 ldr r0, [r3, #16]
  12364. 8005b9c: f107 0114 add.w r1, r7, #20
  12365. 8005ba0: 2300 movs r3, #0
  12366. 8005ba2: 2200 movs r2, #0
  12367. 8005ba4: f00e fd82 bl 80146ac <osMessageQueuePut>
  12368. }
  12369. break;
  12370. 8005ba8: e084 b.n 8005cb4 <Uart1ReceivedDataProcessCallback+0xb7c>
  12371. 8005baa: bf00 nop
  12372. 8005bac: f3af 8000 nop.w
  12373. 8005bb0: 47ae147b .word 0x47ae147b
  12374. 8005bb4: 3f847ae1 .word 0x3f847ae1
  12375. 8005bb8: 2400081c .word 0x2400081c
  12376. 8005bbc: 24000860 .word 0x24000860
  12377. 8005bc0: 24000818 .word 0x24000818
  12378. 8005bc4: 24000000 .word 0x24000000
  12379. 8005bc8: 24000018 .word 0x24000018
  12380. 8005bcc: 240008b4 .word 0x240008b4
  12381. 8005bd0: 43b40000 .word 0x43b40000
  12382. 8005bd4: 41900000 .word 0x41900000
  12383. 8005bd8: 42c80000 .word 0x42c80000
  12384. case spSetPositonY:
  12385. PositionControlTaskData posYData = { 0 };
  12386. 8005bdc: f04f 0300 mov.w r3, #0
  12387. 8005be0: 613b str r3, [r7, #16]
  12388. if (positionYControlTaskInitArg.positionSettingQueue != NULL)
  12389. 8005be2: 4b4b ldr r3, [pc, #300] @ (8005d10 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12390. 8005be4: 691b ldr r3, [r3, #16]
  12391. 8005be6: 2b00 cmp r3, #0
  12392. 8005be8: d066 beq.n 8005cb8 <Uart1ReceivedDataProcessCallback+0xb80>
  12393. {
  12394. float posYPercent = 0;
  12395. 8005bea: f04f 0300 mov.w r3, #0
  12396. 8005bee: 60bb str r3, [r7, #8]
  12397. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posYPercent);
  12398. 8005bf0: 683b ldr r3, [r7, #0]
  12399. 8005bf2: 330c adds r3, #12
  12400. 8005bf4: f107 0208 add.w r2, r7, #8
  12401. 8005bf8: f107 0144 add.w r1, r7, #68 @ 0x44
  12402. 8005bfc: 4618 mov r0, r3
  12403. 8005bfe: f7fd ff00 bl 8003a02 <ReadFloatFromBuffer>
  12404. float posYDegress = MAX_Y_AXE_ANGLE * posYPercent * 0.01;
  12405. 8005c02: edd7 7a02 vldr s15, [r7, #8]
  12406. 8005c06: ed9f 7a43 vldr s14, [pc, #268] @ 8005d14 <Uart1ReceivedDataProcessCallback+0xbdc>
  12407. 8005c0a: ee67 7a87 vmul.f32 s15, s15, s14
  12408. 8005c0e: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12409. 8005c12: ed9f 6b3d vldr d6, [pc, #244] @ 8005d08 <Uart1ReceivedDataProcessCallback+0xbd0>
  12410. 8005c16: ee27 7b06 vmul.f64 d7, d7, d6
  12411. 8005c1a: eef7 7bc7 vcvt.f32.f64 s15, d7
  12412. 8005c1e: edc7 7a1b vstr s15, [r7, #108] @ 0x6c
  12413. float angleDelta = 360 / ENCODER_Y_IMP_PER_TURN;
  12414. 8005c22: 4b3d ldr r3, [pc, #244] @ (8005d18 <Uart1ReceivedDataProcessCallback+0xbe0>)
  12415. 8005c24: 66bb str r3, [r7, #104] @ 0x68
  12416. float rest = fmodf(posYDegress, angleDelta);
  12417. 8005c26: edd7 0a1a vldr s1, [r7, #104] @ 0x68
  12418. 8005c2a: ed97 0a1b vldr s0, [r7, #108] @ 0x6c
  12419. 8005c2e: f012 fc59 bl 80184e4 <fmodf>
  12420. 8005c32: ed87 0a19 vstr s0, [r7, #100] @ 0x64
  12421. if ( rest > (angleDelta/2))
  12422. 8005c36: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  12423. 8005c3a: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12424. 8005c3e: eec7 7a26 vdiv.f32 s15, s14, s13
  12425. 8005c42: ed97 7a19 vldr s14, [r7, #100] @ 0x64
  12426. 8005c46: eeb4 7ae7 vcmpe.f32 s14, s15
  12427. 8005c4a: eef1 fa10 vmrs APSR_nzcv, fpscr
  12428. 8005c4e: dd14 ble.n 8005c7a <Uart1ReceivedDataProcessCallback+0xb42>
  12429. {
  12430. posYData.positionSettingValue = 100 * (posYDegress - rest + angleDelta) / MAX_Y_AXE_ANGLE;
  12431. 8005c50: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12432. 8005c54: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12433. 8005c58: ee37 7a67 vsub.f32 s14, s14, s15
  12434. 8005c5c: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  12435. 8005c60: ee77 7a27 vadd.f32 s15, s14, s15
  12436. 8005c64: ed9f 7a2d vldr s14, [pc, #180] @ 8005d1c <Uart1ReceivedDataProcessCallback+0xbe4>
  12437. 8005c68: ee27 7a87 vmul.f32 s14, s15, s14
  12438. 8005c6c: eddf 6a29 vldr s13, [pc, #164] @ 8005d14 <Uart1ReceivedDataProcessCallback+0xbdc>
  12439. 8005c70: eec7 7a26 vdiv.f32 s15, s14, s13
  12440. 8005c74: edc7 7a04 vstr s15, [r7, #16]
  12441. 8005c78: e00f b.n 8005c9a <Uart1ReceivedDataProcessCallback+0xb62>
  12442. }
  12443. else
  12444. {
  12445. posYData.positionSettingValue = 100 * (posYDegress - rest) / MAX_Y_AXE_ANGLE;
  12446. 8005c7a: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12447. 8005c7e: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12448. 8005c82: ee77 7a67 vsub.f32 s15, s14, s15
  12449. 8005c86: ed9f 7a25 vldr s14, [pc, #148] @ 8005d1c <Uart1ReceivedDataProcessCallback+0xbe4>
  12450. 8005c8a: ee27 7a87 vmul.f32 s14, s15, s14
  12451. 8005c8e: eddf 6a21 vldr s13, [pc, #132] @ 8005d14 <Uart1ReceivedDataProcessCallback+0xbdc>
  12452. 8005c92: eec7 7a26 vdiv.f32 s15, s14, s13
  12453. 8005c96: edc7 7a04 vstr s15, [r7, #16]
  12454. }
  12455. osMessageQueuePut(positionYControlTaskInitArg.positionSettingQueue, &posYData, 0, 0);
  12456. 8005c9a: 4b1d ldr r3, [pc, #116] @ (8005d10 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12457. 8005c9c: 6918 ldr r0, [r3, #16]
  12458. 8005c9e: f107 0110 add.w r1, r7, #16
  12459. 8005ca2: 2300 movs r3, #0
  12460. 8005ca4: 2200 movs r2, #0
  12461. 8005ca6: f00e fd01 bl 80146ac <osMessageQueuePut>
  12462. }
  12463. break;
  12464. 8005caa: e005 b.n 8005cb8 <Uart1ReceivedDataProcessCallback+0xb80>
  12465. default: respStatus = spUnknownCommand; break;
  12466. 8005cac: 23fd movs r3, #253 @ 0xfd
  12467. 8005cae: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12468. 8005cb2: e002 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12469. break;
  12470. 8005cb4: bf00 nop
  12471. 8005cb6: e000 b.n 8005cba <Uart1ReceivedDataProcessCallback+0xb82>
  12472. break;
  12473. 8005cb8: bf00 nop
  12474. }
  12475. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  12476. 8005cba: 6f7b ldr r3, [r7, #116] @ 0x74
  12477. 8005cbc: 6898 ldr r0, [r3, #8]
  12478. 8005cbe: 683b ldr r3, [r7, #0]
  12479. 8005cc0: 8819 ldrh r1, [r3, #0]
  12480. 8005cc2: 683b ldr r3, [r7, #0]
  12481. 8005cc4: 789a ldrb r2, [r3, #2]
  12482. 8005cc6: 4b16 ldr r3, [pc, #88] @ (8005d20 <Uart1ReceivedDataProcessCallback+0xbe8>)
  12483. 8005cc8: 881b ldrh r3, [r3, #0]
  12484. 8005cca: f997 4097 ldrsb.w r4, [r7, #151] @ 0x97
  12485. 8005cce: 9301 str r3, [sp, #4]
  12486. 8005cd0: 4b14 ldr r3, [pc, #80] @ (8005d24 <Uart1ReceivedDataProcessCallback+0xbec>)
  12487. 8005cd2: 9300 str r3, [sp, #0]
  12488. 8005cd4: 4623 mov r3, r4
  12489. 8005cd6: f7fd fefd bl 8003ad4 <PrepareRespFrame>
  12490. 8005cda: 4603 mov r3, r0
  12491. 8005cdc: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  12492. if (dataToSend > 0) {
  12493. 8005ce0: f8b7 3072 ldrh.w r3, [r7, #114] @ 0x72
  12494. 8005ce4: 2b00 cmp r3, #0
  12495. 8005ce6: d008 beq.n 8005cfa <Uart1ReceivedDataProcessCallback+0xbc2>
  12496. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  12497. 8005ce8: 6f7b ldr r3, [r7, #116] @ 0x74
  12498. 8005cea: 6b18 ldr r0, [r3, #48] @ 0x30
  12499. 8005cec: 6f7b ldr r3, [r7, #116] @ 0x74
  12500. 8005cee: 689b ldr r3, [r3, #8]
  12501. 8005cf0: f8b7 2072 ldrh.w r2, [r7, #114] @ 0x72
  12502. 8005cf4: 4619 mov r1, r3
  12503. 8005cf6: f00b fbb1 bl 801145c <HAL_UART_Transmit_IT>
  12504. }
  12505. #ifdef SERIAL_PROTOCOL_DBG
  12506. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  12507. #endif
  12508. }
  12509. 8005cfa: bf00 nop
  12510. 8005cfc: 379c adds r7, #156 @ 0x9c
  12511. 8005cfe: 46bd mov sp, r7
  12512. 8005d00: bd90 pop {r4, r7, pc}
  12513. 8005d02: bf00 nop
  12514. 8005d04: f3af 8000 nop.w
  12515. 8005d08: 47ae147b .word 0x47ae147b
  12516. 8005d0c: 3f847ae1 .word 0x3f847ae1
  12517. 8005d10: 240008e8 .word 0x240008e8
  12518. 8005d14: 43b40000 .word 0x43b40000
  12519. 8005d18: 41900000 .word 0x41900000
  12520. 8005d1c: 42c80000 .word 0x42c80000
  12521. 8005d20: 2400105c .word 0x2400105c
  12522. 8005d24: 24000fdc .word 0x24000fdc
  12523. 08005d28 <Reset_Handler>:
  12524. .section .text.Reset_Handler
  12525. .weak Reset_Handler
  12526. .type Reset_Handler, %function
  12527. Reset_Handler:
  12528. ldr sp, =_estack /* set stack pointer */
  12529. 8005d28: f8df d034 ldr.w sp, [pc, #52] @ 8005d60 <LoopFillZerobss+0xe>
  12530. /* Call the clock system initialization function.*/
  12531. bl SystemInit
  12532. 8005d2c: f7fe fdae bl 800488c <SystemInit>
  12533. /* Copy the data segment initializers from flash to SRAM */
  12534. ldr r0, =_sdata
  12535. 8005d30: 480c ldr r0, [pc, #48] @ (8005d64 <LoopFillZerobss+0x12>)
  12536. ldr r1, =_edata
  12537. 8005d32: 490d ldr r1, [pc, #52] @ (8005d68 <LoopFillZerobss+0x16>)
  12538. ldr r2, =_sidata
  12539. 8005d34: 4a0d ldr r2, [pc, #52] @ (8005d6c <LoopFillZerobss+0x1a>)
  12540. movs r3, #0
  12541. 8005d36: 2300 movs r3, #0
  12542. b LoopCopyDataInit
  12543. 8005d38: e002 b.n 8005d40 <LoopCopyDataInit>
  12544. 08005d3a <CopyDataInit>:
  12545. CopyDataInit:
  12546. ldr r4, [r2, r3]
  12547. 8005d3a: 58d4 ldr r4, [r2, r3]
  12548. str r4, [r0, r3]
  12549. 8005d3c: 50c4 str r4, [r0, r3]
  12550. adds r3, r3, #4
  12551. 8005d3e: 3304 adds r3, #4
  12552. 08005d40 <LoopCopyDataInit>:
  12553. LoopCopyDataInit:
  12554. adds r4, r0, r3
  12555. 8005d40: 18c4 adds r4, r0, r3
  12556. cmp r4, r1
  12557. 8005d42: 428c cmp r4, r1
  12558. bcc CopyDataInit
  12559. 8005d44: d3f9 bcc.n 8005d3a <CopyDataInit>
  12560. /* Zero fill the bss segment. */
  12561. ldr r2, =_sbss
  12562. 8005d46: 4a0a ldr r2, [pc, #40] @ (8005d70 <LoopFillZerobss+0x1e>)
  12563. ldr r4, =_ebss
  12564. 8005d48: 4c0a ldr r4, [pc, #40] @ (8005d74 <LoopFillZerobss+0x22>)
  12565. movs r3, #0
  12566. 8005d4a: 2300 movs r3, #0
  12567. b LoopFillZerobss
  12568. 8005d4c: e001 b.n 8005d52 <LoopFillZerobss>
  12569. 08005d4e <FillZerobss>:
  12570. FillZerobss:
  12571. str r3, [r2]
  12572. 8005d4e: 6013 str r3, [r2, #0]
  12573. adds r2, r2, #4
  12574. 8005d50: 3204 adds r2, #4
  12575. 08005d52 <LoopFillZerobss>:
  12576. LoopFillZerobss:
  12577. cmp r2, r4
  12578. 8005d52: 42a2 cmp r2, r4
  12579. bcc FillZerobss
  12580. 8005d54: d3fb bcc.n 8005d4e <FillZerobss>
  12581. /* Call static constructors */
  12582. bl __libc_init_array
  12583. 8005d56: f012 fb3b bl 80183d0 <__libc_init_array>
  12584. /* Call the application's entry point.*/
  12585. bl main
  12586. 8005d5a: f7fa fc7b bl 8000654 <main>
  12587. bx lr
  12588. 8005d5e: 4770 bx lr
  12589. ldr sp, =_estack /* set stack pointer */
  12590. 8005d60: 24060000 .word 0x24060000
  12591. ldr r0, =_sdata
  12592. 8005d64: 24000000 .word 0x24000000
  12593. ldr r1, =_edata
  12594. 8005d68: 24000098 .word 0x24000098
  12595. ldr r2, =_sidata
  12596. 8005d6c: 08018754 .word 0x08018754
  12597. ldr r2, =_sbss
  12598. 8005d70: 240000a0 .word 0x240000a0
  12599. ldr r4, =_ebss
  12600. 8005d74: 2401318c .word 0x2401318c
  12601. 08005d78 <ADC3_IRQHandler>:
  12602. * @retval None
  12603. */
  12604. .section .text.Default_Handler,"ax",%progbits
  12605. Default_Handler:
  12606. Infinite_Loop:
  12607. b Infinite_Loop
  12608. 8005d78: e7fe b.n 8005d78 <ADC3_IRQHandler>
  12609. ...
  12610. 08005d7c <HAL_Init>:
  12611. * need to ensure that the SysTick time base is always set to 1 millisecond
  12612. * to have correct HAL operation.
  12613. * @retval HAL status
  12614. */
  12615. HAL_StatusTypeDef HAL_Init(void)
  12616. {
  12617. 8005d7c: b580 push {r7, lr}
  12618. 8005d7e: b082 sub sp, #8
  12619. 8005d80: af00 add r7, sp, #0
  12620. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  12621. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  12622. #endif /* DUAL_CORE && CORE_CM4 */
  12623. /* Set Interrupt Group Priority */
  12624. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  12625. 8005d82: 2003 movs r0, #3
  12626. 8005d84: f001 fee5 bl 8007b52 <HAL_NVIC_SetPriorityGrouping>
  12627. /* Update the SystemCoreClock global variable */
  12628. #if defined(RCC_D1CFGR_D1CPRE)
  12629. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  12630. 8005d88: f006 fbee bl 800c568 <HAL_RCC_GetSysClockFreq>
  12631. 8005d8c: 4602 mov r2, r0
  12632. 8005d8e: 4b15 ldr r3, [pc, #84] @ (8005de4 <HAL_Init+0x68>)
  12633. 8005d90: 699b ldr r3, [r3, #24]
  12634. 8005d92: 0a1b lsrs r3, r3, #8
  12635. 8005d94: f003 030f and.w r3, r3, #15
  12636. 8005d98: 4913 ldr r1, [pc, #76] @ (8005de8 <HAL_Init+0x6c>)
  12637. 8005d9a: 5ccb ldrb r3, [r1, r3]
  12638. 8005d9c: f003 031f and.w r3, r3, #31
  12639. 8005da0: fa22 f303 lsr.w r3, r2, r3
  12640. 8005da4: 607b str r3, [r7, #4]
  12641. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  12642. #endif
  12643. /* Update the SystemD2Clock global variable */
  12644. #if defined(RCC_D1CFGR_HPRE)
  12645. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  12646. 8005da6: 4b0f ldr r3, [pc, #60] @ (8005de4 <HAL_Init+0x68>)
  12647. 8005da8: 699b ldr r3, [r3, #24]
  12648. 8005daa: f003 030f and.w r3, r3, #15
  12649. 8005dae: 4a0e ldr r2, [pc, #56] @ (8005de8 <HAL_Init+0x6c>)
  12650. 8005db0: 5cd3 ldrb r3, [r2, r3]
  12651. 8005db2: f003 031f and.w r3, r3, #31
  12652. 8005db6: 687a ldr r2, [r7, #4]
  12653. 8005db8: fa22 f303 lsr.w r3, r2, r3
  12654. 8005dbc: 4a0b ldr r2, [pc, #44] @ (8005dec <HAL_Init+0x70>)
  12655. 8005dbe: 6013 str r3, [r2, #0]
  12656. #endif
  12657. #if defined(DUAL_CORE) && defined(CORE_CM4)
  12658. SystemCoreClock = SystemD2Clock;
  12659. #else
  12660. SystemCoreClock = common_system_clock;
  12661. 8005dc0: 4a0b ldr r2, [pc, #44] @ (8005df0 <HAL_Init+0x74>)
  12662. 8005dc2: 687b ldr r3, [r7, #4]
  12663. 8005dc4: 6013 str r3, [r2, #0]
  12664. #endif /* DUAL_CORE && CORE_CM4 */
  12665. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  12666. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  12667. 8005dc6: 2005 movs r0, #5
  12668. 8005dc8: f7fe fc58 bl 800467c <HAL_InitTick>
  12669. 8005dcc: 4603 mov r3, r0
  12670. 8005dce: 2b00 cmp r3, #0
  12671. 8005dd0: d001 beq.n 8005dd6 <HAL_Init+0x5a>
  12672. {
  12673. return HAL_ERROR;
  12674. 8005dd2: 2301 movs r3, #1
  12675. 8005dd4: e002 b.n 8005ddc <HAL_Init+0x60>
  12676. }
  12677. /* Init the low level hardware */
  12678. HAL_MspInit();
  12679. 8005dd6: f7fd ff1b bl 8003c10 <HAL_MspInit>
  12680. /* Return function status */
  12681. return HAL_OK;
  12682. 8005dda: 2300 movs r3, #0
  12683. }
  12684. 8005ddc: 4618 mov r0, r3
  12685. 8005dde: 3708 adds r7, #8
  12686. 8005de0: 46bd mov sp, r7
  12687. 8005de2: bd80 pop {r7, pc}
  12688. 8005de4: 58024400 .word 0x58024400
  12689. 8005de8: 080186fc .word 0x080186fc
  12690. 8005dec: 24000038 .word 0x24000038
  12691. 8005df0: 24000034 .word 0x24000034
  12692. 08005df4 <HAL_IncTick>:
  12693. * @note This function is declared as __weak to be overwritten in case of other
  12694. * implementations in user file.
  12695. * @retval None
  12696. */
  12697. __weak void HAL_IncTick(void)
  12698. {
  12699. 8005df4: b480 push {r7}
  12700. 8005df6: af00 add r7, sp, #0
  12701. uwTick += (uint32_t)uwTickFreq;
  12702. 8005df8: 4b06 ldr r3, [pc, #24] @ (8005e14 <HAL_IncTick+0x20>)
  12703. 8005dfa: 781b ldrb r3, [r3, #0]
  12704. 8005dfc: 461a mov r2, r3
  12705. 8005dfe: 4b06 ldr r3, [pc, #24] @ (8005e18 <HAL_IncTick+0x24>)
  12706. 8005e00: 681b ldr r3, [r3, #0]
  12707. 8005e02: 4413 add r3, r2
  12708. 8005e04: 4a04 ldr r2, [pc, #16] @ (8005e18 <HAL_IncTick+0x24>)
  12709. 8005e06: 6013 str r3, [r2, #0]
  12710. }
  12711. 8005e08: bf00 nop
  12712. 8005e0a: 46bd mov sp, r7
  12713. 8005e0c: f85d 7b04 ldr.w r7, [sp], #4
  12714. 8005e10: 4770 bx lr
  12715. 8005e12: bf00 nop
  12716. 8005e14: 24000040 .word 0x24000040
  12717. 8005e18: 24001060 .word 0x24001060
  12718. 08005e1c <HAL_GetTick>:
  12719. * @note This function is declared as __weak to be overwritten in case of other
  12720. * implementations in user file.
  12721. * @retval tick value
  12722. */
  12723. __weak uint32_t HAL_GetTick(void)
  12724. {
  12725. 8005e1c: b480 push {r7}
  12726. 8005e1e: af00 add r7, sp, #0
  12727. return uwTick;
  12728. 8005e20: 4b03 ldr r3, [pc, #12] @ (8005e30 <HAL_GetTick+0x14>)
  12729. 8005e22: 681b ldr r3, [r3, #0]
  12730. }
  12731. 8005e24: 4618 mov r0, r3
  12732. 8005e26: 46bd mov sp, r7
  12733. 8005e28: f85d 7b04 ldr.w r7, [sp], #4
  12734. 8005e2c: 4770 bx lr
  12735. 8005e2e: bf00 nop
  12736. 8005e30: 24001060 .word 0x24001060
  12737. 08005e34 <HAL_GetREVID>:
  12738. /**
  12739. * @brief Returns the device revision identifier.
  12740. * @retval Device revision identifier
  12741. */
  12742. uint32_t HAL_GetREVID(void)
  12743. {
  12744. 8005e34: b480 push {r7}
  12745. 8005e36: af00 add r7, sp, #0
  12746. return((DBGMCU->IDCODE) >> 16);
  12747. 8005e38: 4b03 ldr r3, [pc, #12] @ (8005e48 <HAL_GetREVID+0x14>)
  12748. 8005e3a: 681b ldr r3, [r3, #0]
  12749. 8005e3c: 0c1b lsrs r3, r3, #16
  12750. }
  12751. 8005e3e: 4618 mov r0, r3
  12752. 8005e40: 46bd mov sp, r7
  12753. 8005e42: f85d 7b04 ldr.w r7, [sp], #4
  12754. 8005e46: 4770 bx lr
  12755. 8005e48: 5c001000 .word 0x5c001000
  12756. 08005e4c <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  12757. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  12758. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  12759. * @retval None
  12760. */
  12761. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  12762. {
  12763. 8005e4c: b480 push {r7}
  12764. 8005e4e: b083 sub sp, #12
  12765. 8005e50: af00 add r7, sp, #0
  12766. 8005e52: 6078 str r0, [r7, #4]
  12767. /* Check the parameters */
  12768. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  12769. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  12770. 8005e54: 4b06 ldr r3, [pc, #24] @ (8005e70 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12771. 8005e56: 681b ldr r3, [r3, #0]
  12772. 8005e58: f023 0202 bic.w r2, r3, #2
  12773. 8005e5c: 4904 ldr r1, [pc, #16] @ (8005e70 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12774. 8005e5e: 687b ldr r3, [r7, #4]
  12775. 8005e60: 4313 orrs r3, r2
  12776. 8005e62: 600b str r3, [r1, #0]
  12777. }
  12778. 8005e64: bf00 nop
  12779. 8005e66: 370c adds r7, #12
  12780. 8005e68: 46bd mov sp, r7
  12781. 8005e6a: f85d 7b04 ldr.w r7, [sp], #4
  12782. 8005e6e: 4770 bx lr
  12783. 8005e70: 58003c00 .word 0x58003c00
  12784. 08005e74 <HAL_SYSCFG_DisableVREFBUF>:
  12785. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  12786. *
  12787. * @retval None
  12788. */
  12789. void HAL_SYSCFG_DisableVREFBUF(void)
  12790. {
  12791. 8005e74: b480 push {r7}
  12792. 8005e76: af00 add r7, sp, #0
  12793. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  12794. 8005e78: 4b05 ldr r3, [pc, #20] @ (8005e90 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12795. 8005e7a: 681b ldr r3, [r3, #0]
  12796. 8005e7c: 4a04 ldr r2, [pc, #16] @ (8005e90 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12797. 8005e7e: f023 0301 bic.w r3, r3, #1
  12798. 8005e82: 6013 str r3, [r2, #0]
  12799. }
  12800. 8005e84: bf00 nop
  12801. 8005e86: 46bd mov sp, r7
  12802. 8005e88: f85d 7b04 ldr.w r7, [sp], #4
  12803. 8005e8c: 4770 bx lr
  12804. 8005e8e: bf00 nop
  12805. 8005e90: 58003c00 .word 0x58003c00
  12806. 08005e94 <HAL_SYSCFG_AnalogSwitchConfig>:
  12807. * @arg SYSCFG_SWITCH_PC3_CLOSE
  12808. * @retval None
  12809. */
  12810. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  12811. {
  12812. 8005e94: b480 push {r7}
  12813. 8005e96: b083 sub sp, #12
  12814. 8005e98: af00 add r7, sp, #0
  12815. 8005e9a: 6078 str r0, [r7, #4]
  12816. 8005e9c: 6039 str r1, [r7, #0]
  12817. /* Check the parameter */
  12818. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  12819. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  12820. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  12821. 8005e9e: 4b07 ldr r3, [pc, #28] @ (8005ebc <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12822. 8005ea0: 685a ldr r2, [r3, #4]
  12823. 8005ea2: 687b ldr r3, [r7, #4]
  12824. 8005ea4: 43db mvns r3, r3
  12825. 8005ea6: 401a ands r2, r3
  12826. 8005ea8: 4904 ldr r1, [pc, #16] @ (8005ebc <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12827. 8005eaa: 683b ldr r3, [r7, #0]
  12828. 8005eac: 4313 orrs r3, r2
  12829. 8005eae: 604b str r3, [r1, #4]
  12830. }
  12831. 8005eb0: bf00 nop
  12832. 8005eb2: 370c adds r7, #12
  12833. 8005eb4: 46bd mov sp, r7
  12834. 8005eb6: f85d 7b04 ldr.w r7, [sp], #4
  12835. 8005eba: 4770 bx lr
  12836. 8005ebc: 58000400 .word 0x58000400
  12837. 08005ec0 <LL_ADC_SetCommonClock>:
  12838. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  12839. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  12840. * @retval None
  12841. */
  12842. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  12843. {
  12844. 8005ec0: b480 push {r7}
  12845. 8005ec2: b083 sub sp, #12
  12846. 8005ec4: af00 add r7, sp, #0
  12847. 8005ec6: 6078 str r0, [r7, #4]
  12848. 8005ec8: 6039 str r1, [r7, #0]
  12849. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  12850. 8005eca: 687b ldr r3, [r7, #4]
  12851. 8005ecc: 689b ldr r3, [r3, #8]
  12852. 8005ece: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  12853. 8005ed2: 683b ldr r3, [r7, #0]
  12854. 8005ed4: 431a orrs r2, r3
  12855. 8005ed6: 687b ldr r3, [r7, #4]
  12856. 8005ed8: 609a str r2, [r3, #8]
  12857. }
  12858. 8005eda: bf00 nop
  12859. 8005edc: 370c adds r7, #12
  12860. 8005ede: 46bd mov sp, r7
  12861. 8005ee0: f85d 7b04 ldr.w r7, [sp], #4
  12862. 8005ee4: 4770 bx lr
  12863. 08005ee6 <LL_ADC_SetCommonPathInternalCh>:
  12864. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12865. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12866. * @retval None
  12867. */
  12868. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  12869. {
  12870. 8005ee6: b480 push {r7}
  12871. 8005ee8: b083 sub sp, #12
  12872. 8005eea: af00 add r7, sp, #0
  12873. 8005eec: 6078 str r0, [r7, #4]
  12874. 8005eee: 6039 str r1, [r7, #0]
  12875. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  12876. 8005ef0: 687b ldr r3, [r7, #4]
  12877. 8005ef2: 689b ldr r3, [r3, #8]
  12878. 8005ef4: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  12879. 8005ef8: 683b ldr r3, [r7, #0]
  12880. 8005efa: 431a orrs r2, r3
  12881. 8005efc: 687b ldr r3, [r7, #4]
  12882. 8005efe: 609a str r2, [r3, #8]
  12883. }
  12884. 8005f00: bf00 nop
  12885. 8005f02: 370c adds r7, #12
  12886. 8005f04: 46bd mov sp, r7
  12887. 8005f06: f85d 7b04 ldr.w r7, [sp], #4
  12888. 8005f0a: 4770 bx lr
  12889. 08005f0c <LL_ADC_GetCommonPathInternalCh>:
  12890. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  12891. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12892. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12893. */
  12894. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  12895. {
  12896. 8005f0c: b480 push {r7}
  12897. 8005f0e: b083 sub sp, #12
  12898. 8005f10: af00 add r7, sp, #0
  12899. 8005f12: 6078 str r0, [r7, #4]
  12900. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  12901. 8005f14: 687b ldr r3, [r7, #4]
  12902. 8005f16: 689b ldr r3, [r3, #8]
  12903. 8005f18: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  12904. }
  12905. 8005f1c: 4618 mov r0, r3
  12906. 8005f1e: 370c adds r7, #12
  12907. 8005f20: 46bd mov sp, r7
  12908. 8005f22: f85d 7b04 ldr.w r7, [sp], #4
  12909. 8005f26: 4770 bx lr
  12910. 08005f28 <LL_ADC_SetOffset>:
  12911. * Other channels are slow channels (conversion rate: refer to reference manual).
  12912. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  12913. * @retval None
  12914. */
  12915. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  12916. {
  12917. 8005f28: b480 push {r7}
  12918. 8005f2a: b087 sub sp, #28
  12919. 8005f2c: af00 add r7, sp, #0
  12920. 8005f2e: 60f8 str r0, [r7, #12]
  12921. 8005f30: 60b9 str r1, [r7, #8]
  12922. 8005f32: 607a str r2, [r7, #4]
  12923. 8005f34: 603b str r3, [r7, #0]
  12924. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  12925. 8005f36: 68fb ldr r3, [r7, #12]
  12926. 8005f38: 3360 adds r3, #96 @ 0x60
  12927. 8005f3a: 461a mov r2, r3
  12928. 8005f3c: 68bb ldr r3, [r7, #8]
  12929. 8005f3e: 009b lsls r3, r3, #2
  12930. 8005f40: 4413 add r3, r2
  12931. 8005f42: 617b str r3, [r7, #20]
  12932. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12933. }
  12934. else
  12935. #endif /* ADC_VER_V5_V90 */
  12936. {
  12937. MODIFY_REG(*preg,
  12938. 8005f44: 697b ldr r3, [r7, #20]
  12939. 8005f46: 681b ldr r3, [r3, #0]
  12940. 8005f48: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  12941. 8005f4c: 687b ldr r3, [r7, #4]
  12942. 8005f4e: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  12943. 8005f52: 683b ldr r3, [r7, #0]
  12944. 8005f54: 430b orrs r3, r1
  12945. 8005f56: 431a orrs r2, r3
  12946. 8005f58: 697b ldr r3, [r7, #20]
  12947. 8005f5a: 601a str r2, [r3, #0]
  12948. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  12949. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12950. }
  12951. }
  12952. 8005f5c: bf00 nop
  12953. 8005f5e: 371c adds r7, #28
  12954. 8005f60: 46bd mov sp, r7
  12955. 8005f62: f85d 7b04 ldr.w r7, [sp], #4
  12956. 8005f66: 4770 bx lr
  12957. 08005f68 <LL_ADC_SetDataRightShift>:
  12958. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  12959. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  12960. * @retval Returned None
  12961. */
  12962. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  12963. {
  12964. 8005f68: b480 push {r7}
  12965. 8005f6a: b085 sub sp, #20
  12966. 8005f6c: af00 add r7, sp, #0
  12967. 8005f6e: 60f8 str r0, [r7, #12]
  12968. 8005f70: 60b9 str r1, [r7, #8]
  12969. 8005f72: 607a str r2, [r7, #4]
  12970. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  12971. 8005f74: 68fb ldr r3, [r7, #12]
  12972. 8005f76: 691b ldr r3, [r3, #16]
  12973. 8005f78: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  12974. 8005f7c: 68bb ldr r3, [r7, #8]
  12975. 8005f7e: f003 031f and.w r3, r3, #31
  12976. 8005f82: 6879 ldr r1, [r7, #4]
  12977. 8005f84: fa01 f303 lsl.w r3, r1, r3
  12978. 8005f88: 431a orrs r2, r3
  12979. 8005f8a: 68fb ldr r3, [r7, #12]
  12980. 8005f8c: 611a str r2, [r3, #16]
  12981. }
  12982. 8005f8e: bf00 nop
  12983. 8005f90: 3714 adds r7, #20
  12984. 8005f92: 46bd mov sp, r7
  12985. 8005f94: f85d 7b04 ldr.w r7, [sp], #4
  12986. 8005f98: 4770 bx lr
  12987. 08005f9a <LL_ADC_SetOffsetSignedSaturation>:
  12988. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  12989. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  12990. * @retval Returned None
  12991. */
  12992. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  12993. {
  12994. 8005f9a: b480 push {r7}
  12995. 8005f9c: b087 sub sp, #28
  12996. 8005f9e: af00 add r7, sp, #0
  12997. 8005fa0: 60f8 str r0, [r7, #12]
  12998. 8005fa2: 60b9 str r1, [r7, #8]
  12999. 8005fa4: 607a str r2, [r7, #4]
  13000. /* Function not available on this instance */
  13001. }
  13002. else
  13003. #endif /* ADC_VER_V5_V90 */
  13004. {
  13005. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  13006. 8005fa6: 68fb ldr r3, [r7, #12]
  13007. 8005fa8: 3360 adds r3, #96 @ 0x60
  13008. 8005faa: 461a mov r2, r3
  13009. 8005fac: 68bb ldr r3, [r7, #8]
  13010. 8005fae: 009b lsls r3, r3, #2
  13011. 8005fb0: 4413 add r3, r2
  13012. 8005fb2: 617b str r3, [r7, #20]
  13013. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  13014. 8005fb4: 697b ldr r3, [r7, #20]
  13015. 8005fb6: 681b ldr r3, [r3, #0]
  13016. 8005fb8: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  13017. 8005fbc: 687b ldr r3, [r7, #4]
  13018. 8005fbe: 431a orrs r2, r3
  13019. 8005fc0: 697b ldr r3, [r7, #20]
  13020. 8005fc2: 601a str r2, [r3, #0]
  13021. }
  13022. }
  13023. 8005fc4: bf00 nop
  13024. 8005fc6: 371c adds r7, #28
  13025. 8005fc8: 46bd mov sp, r7
  13026. 8005fca: f85d 7b04 ldr.w r7, [sp], #4
  13027. 8005fce: 4770 bx lr
  13028. 08005fd0 <LL_ADC_REG_IsTriggerSourceSWStart>:
  13029. * @param ADCx ADC instance
  13030. * @retval Value "0" if trigger source external trigger
  13031. * Value "1" if trigger source SW start.
  13032. */
  13033. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  13034. {
  13035. 8005fd0: b480 push {r7}
  13036. 8005fd2: b083 sub sp, #12
  13037. 8005fd4: af00 add r7, sp, #0
  13038. 8005fd6: 6078 str r0, [r7, #4]
  13039. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  13040. 8005fd8: 687b ldr r3, [r7, #4]
  13041. 8005fda: 68db ldr r3, [r3, #12]
  13042. 8005fdc: f403 6340 and.w r3, r3, #3072 @ 0xc00
  13043. 8005fe0: 2b00 cmp r3, #0
  13044. 8005fe2: d101 bne.n 8005fe8 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  13045. 8005fe4: 2301 movs r3, #1
  13046. 8005fe6: e000 b.n 8005fea <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  13047. 8005fe8: 2300 movs r3, #0
  13048. }
  13049. 8005fea: 4618 mov r0, r3
  13050. 8005fec: 370c adds r7, #12
  13051. 8005fee: 46bd mov sp, r7
  13052. 8005ff0: f85d 7b04 ldr.w r7, [sp], #4
  13053. 8005ff4: 4770 bx lr
  13054. 08005ff6 <LL_ADC_REG_SetSequencerRanks>:
  13055. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  13056. * Other channels are slow channels (conversion rate: refer to reference manual).
  13057. * @retval None
  13058. */
  13059. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  13060. {
  13061. 8005ff6: b480 push {r7}
  13062. 8005ff8: b087 sub sp, #28
  13063. 8005ffa: af00 add r7, sp, #0
  13064. 8005ffc: 60f8 str r0, [r7, #12]
  13065. 8005ffe: 60b9 str r1, [r7, #8]
  13066. 8006000: 607a str r2, [r7, #4]
  13067. /* Set bits with content of parameter "Channel" with bits position */
  13068. /* in register and register position depending on parameter "Rank". */
  13069. /* Parameters "Rank" and "Channel" are used with masks because containing */
  13070. /* other bits reserved for other purpose. */
  13071. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  13072. 8006002: 68fb ldr r3, [r7, #12]
  13073. 8006004: 3330 adds r3, #48 @ 0x30
  13074. 8006006: 461a mov r2, r3
  13075. 8006008: 68bb ldr r3, [r7, #8]
  13076. 800600a: 0a1b lsrs r3, r3, #8
  13077. 800600c: 009b lsls r3, r3, #2
  13078. 800600e: f003 030c and.w r3, r3, #12
  13079. 8006012: 4413 add r3, r2
  13080. 8006014: 617b str r3, [r7, #20]
  13081. MODIFY_REG(*preg,
  13082. 8006016: 697b ldr r3, [r7, #20]
  13083. 8006018: 681a ldr r2, [r3, #0]
  13084. 800601a: 68bb ldr r3, [r7, #8]
  13085. 800601c: f003 031f and.w r3, r3, #31
  13086. 8006020: 211f movs r1, #31
  13087. 8006022: fa01 f303 lsl.w r3, r1, r3
  13088. 8006026: 43db mvns r3, r3
  13089. 8006028: 401a ands r2, r3
  13090. 800602a: 687b ldr r3, [r7, #4]
  13091. 800602c: 0e9b lsrs r3, r3, #26
  13092. 800602e: f003 011f and.w r1, r3, #31
  13093. 8006032: 68bb ldr r3, [r7, #8]
  13094. 8006034: f003 031f and.w r3, r3, #31
  13095. 8006038: fa01 f303 lsl.w r3, r1, r3
  13096. 800603c: 431a orrs r2, r3
  13097. 800603e: 697b ldr r3, [r7, #20]
  13098. 8006040: 601a str r2, [r3, #0]
  13099. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  13100. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  13101. }
  13102. 8006042: bf00 nop
  13103. 8006044: 371c adds r7, #28
  13104. 8006046: 46bd mov sp, r7
  13105. 8006048: f85d 7b04 ldr.w r7, [sp], #4
  13106. 800604c: 4770 bx lr
  13107. 0800604e <LL_ADC_REG_SetDataTransferMode>:
  13108. * @param ADCx ADC instance
  13109. * @param DataTransferMode Select Data Management configuration
  13110. * @retval None
  13111. */
  13112. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  13113. {
  13114. 800604e: b480 push {r7}
  13115. 8006050: b083 sub sp, #12
  13116. 8006052: af00 add r7, sp, #0
  13117. 8006054: 6078 str r0, [r7, #4]
  13118. 8006056: 6039 str r1, [r7, #0]
  13119. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  13120. 8006058: 687b ldr r3, [r7, #4]
  13121. 800605a: 68db ldr r3, [r3, #12]
  13122. 800605c: f023 0203 bic.w r2, r3, #3
  13123. 8006060: 683b ldr r3, [r7, #0]
  13124. 8006062: 431a orrs r2, r3
  13125. 8006064: 687b ldr r3, [r7, #4]
  13126. 8006066: 60da str r2, [r3, #12]
  13127. }
  13128. 8006068: bf00 nop
  13129. 800606a: 370c adds r7, #12
  13130. 800606c: 46bd mov sp, r7
  13131. 800606e: f85d 7b04 ldr.w r7, [sp], #4
  13132. 8006072: 4770 bx lr
  13133. 08006074 <LL_ADC_SetChannelSamplingTime>:
  13134. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  13135. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  13136. * @retval None
  13137. */
  13138. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  13139. {
  13140. 8006074: b480 push {r7}
  13141. 8006076: b087 sub sp, #28
  13142. 8006078: af00 add r7, sp, #0
  13143. 800607a: 60f8 str r0, [r7, #12]
  13144. 800607c: 60b9 str r1, [r7, #8]
  13145. 800607e: 607a str r2, [r7, #4]
  13146. /* Set bits with content of parameter "SamplingTime" with bits position */
  13147. /* in register and register position depending on parameter "Channel". */
  13148. /* Parameter "Channel" is used with masks because containing */
  13149. /* other bits reserved for other purpose. */
  13150. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  13151. 8006080: 68fb ldr r3, [r7, #12]
  13152. 8006082: 3314 adds r3, #20
  13153. 8006084: 461a mov r2, r3
  13154. 8006086: 68bb ldr r3, [r7, #8]
  13155. 8006088: 0e5b lsrs r3, r3, #25
  13156. 800608a: 009b lsls r3, r3, #2
  13157. 800608c: f003 0304 and.w r3, r3, #4
  13158. 8006090: 4413 add r3, r2
  13159. 8006092: 617b str r3, [r7, #20]
  13160. MODIFY_REG(*preg,
  13161. 8006094: 697b ldr r3, [r7, #20]
  13162. 8006096: 681a ldr r2, [r3, #0]
  13163. 8006098: 68bb ldr r3, [r7, #8]
  13164. 800609a: 0d1b lsrs r3, r3, #20
  13165. 800609c: f003 031f and.w r3, r3, #31
  13166. 80060a0: 2107 movs r1, #7
  13167. 80060a2: fa01 f303 lsl.w r3, r1, r3
  13168. 80060a6: 43db mvns r3, r3
  13169. 80060a8: 401a ands r2, r3
  13170. 80060aa: 68bb ldr r3, [r7, #8]
  13171. 80060ac: 0d1b lsrs r3, r3, #20
  13172. 80060ae: f003 031f and.w r3, r3, #31
  13173. 80060b2: 6879 ldr r1, [r7, #4]
  13174. 80060b4: fa01 f303 lsl.w r3, r1, r3
  13175. 80060b8: 431a orrs r2, r3
  13176. 80060ba: 697b ldr r3, [r7, #20]
  13177. 80060bc: 601a str r2, [r3, #0]
  13178. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  13179. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  13180. }
  13181. 80060be: bf00 nop
  13182. 80060c0: 371c adds r7, #28
  13183. 80060c2: 46bd mov sp, r7
  13184. 80060c4: f85d 7b04 ldr.w r7, [sp], #4
  13185. 80060c8: 4770 bx lr
  13186. ...
  13187. 080060cc <LL_ADC_SetChannelSingleDiff>:
  13188. * @arg @ref LL_ADC_SINGLE_ENDED
  13189. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  13190. * @retval None
  13191. */
  13192. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  13193. {
  13194. 80060cc: b480 push {r7}
  13195. 80060ce: b085 sub sp, #20
  13196. 80060d0: af00 add r7, sp, #0
  13197. 80060d2: 60f8 str r0, [r7, #12]
  13198. 80060d4: 60b9 str r1, [r7, #8]
  13199. 80060d6: 607a str r2, [r7, #4]
  13200. }
  13201. #else /* ADC_VER_V5_V90 */
  13202. /* Bits of channels in single or differential mode are set only for */
  13203. /* differential mode (for single mode, mask of bits allowed to be set is */
  13204. /* shifted out of range of bits of channels in single or differential mode. */
  13205. MODIFY_REG(ADCx->DIFSEL,
  13206. 80060d8: 68fb ldr r3, [r7, #12]
  13207. 80060da: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  13208. 80060de: 68bb ldr r3, [r7, #8]
  13209. 80060e0: f3c3 0313 ubfx r3, r3, #0, #20
  13210. 80060e4: 43db mvns r3, r3
  13211. 80060e6: 401a ands r2, r3
  13212. 80060e8: 687b ldr r3, [r7, #4]
  13213. 80060ea: f003 0318 and.w r3, r3, #24
  13214. 80060ee: 4908 ldr r1, [pc, #32] @ (8006110 <LL_ADC_SetChannelSingleDiff+0x44>)
  13215. 80060f0: 40d9 lsrs r1, r3
  13216. 80060f2: 68bb ldr r3, [r7, #8]
  13217. 80060f4: 400b ands r3, r1
  13218. 80060f6: f3c3 0313 ubfx r3, r3, #0, #20
  13219. 80060fa: 431a orrs r2, r3
  13220. 80060fc: 68fb ldr r3, [r7, #12]
  13221. 80060fe: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  13222. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  13223. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  13224. #endif /* ADC_VER_V5_V90 */
  13225. }
  13226. 8006102: bf00 nop
  13227. 8006104: 3714 adds r7, #20
  13228. 8006106: 46bd mov sp, r7
  13229. 8006108: f85d 7b04 ldr.w r7, [sp], #4
  13230. 800610c: 4770 bx lr
  13231. 800610e: bf00 nop
  13232. 8006110: 000fffff .word 0x000fffff
  13233. 08006114 <LL_ADC_GetMultimode>:
  13234. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  13235. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  13236. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  13237. */
  13238. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  13239. {
  13240. 8006114: b480 push {r7}
  13241. 8006116: b083 sub sp, #12
  13242. 8006118: af00 add r7, sp, #0
  13243. 800611a: 6078 str r0, [r7, #4]
  13244. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  13245. 800611c: 687b ldr r3, [r7, #4]
  13246. 800611e: 689b ldr r3, [r3, #8]
  13247. 8006120: f003 031f and.w r3, r3, #31
  13248. }
  13249. 8006124: 4618 mov r0, r3
  13250. 8006126: 370c adds r7, #12
  13251. 8006128: 46bd mov sp, r7
  13252. 800612a: f85d 7b04 ldr.w r7, [sp], #4
  13253. 800612e: 4770 bx lr
  13254. 08006130 <LL_ADC_DisableDeepPowerDown>:
  13255. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  13256. * @param ADCx ADC instance
  13257. * @retval None
  13258. */
  13259. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  13260. {
  13261. 8006130: b480 push {r7}
  13262. 8006132: b083 sub sp, #12
  13263. 8006134: af00 add r7, sp, #0
  13264. 8006136: 6078 str r0, [r7, #4]
  13265. /* Note: Write register with some additional bits forced to state reset */
  13266. /* instead of modifying only the selected bit for this function, */
  13267. /* to not interfere with bits with HW property "rs". */
  13268. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  13269. 8006138: 687b ldr r3, [r7, #4]
  13270. 800613a: 689a ldr r2, [r3, #8]
  13271. 800613c: 4b04 ldr r3, [pc, #16] @ (8006150 <LL_ADC_DisableDeepPowerDown+0x20>)
  13272. 800613e: 4013 ands r3, r2
  13273. 8006140: 687a ldr r2, [r7, #4]
  13274. 8006142: 6093 str r3, [r2, #8]
  13275. }
  13276. 8006144: bf00 nop
  13277. 8006146: 370c adds r7, #12
  13278. 8006148: 46bd mov sp, r7
  13279. 800614a: f85d 7b04 ldr.w r7, [sp], #4
  13280. 800614e: 4770 bx lr
  13281. 8006150: 5fffffc0 .word 0x5fffffc0
  13282. 08006154 <LL_ADC_IsDeepPowerDownEnabled>:
  13283. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  13284. * @param ADCx ADC instance
  13285. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  13286. */
  13287. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  13288. {
  13289. 8006154: b480 push {r7}
  13290. 8006156: b083 sub sp, #12
  13291. 8006158: af00 add r7, sp, #0
  13292. 800615a: 6078 str r0, [r7, #4]
  13293. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  13294. 800615c: 687b ldr r3, [r7, #4]
  13295. 800615e: 689b ldr r3, [r3, #8]
  13296. 8006160: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  13297. 8006164: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  13298. 8006168: d101 bne.n 800616e <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  13299. 800616a: 2301 movs r3, #1
  13300. 800616c: e000 b.n 8006170 <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  13301. 800616e: 2300 movs r3, #0
  13302. }
  13303. 8006170: 4618 mov r0, r3
  13304. 8006172: 370c adds r7, #12
  13305. 8006174: 46bd mov sp, r7
  13306. 8006176: f85d 7b04 ldr.w r7, [sp], #4
  13307. 800617a: 4770 bx lr
  13308. 0800617c <LL_ADC_EnableInternalRegulator>:
  13309. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  13310. * @param ADCx ADC instance
  13311. * @retval None
  13312. */
  13313. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  13314. {
  13315. 800617c: b480 push {r7}
  13316. 800617e: b083 sub sp, #12
  13317. 8006180: af00 add r7, sp, #0
  13318. 8006182: 6078 str r0, [r7, #4]
  13319. /* Note: Write register with some additional bits forced to state reset */
  13320. /* instead of modifying only the selected bit for this function, */
  13321. /* to not interfere with bits with HW property "rs". */
  13322. MODIFY_REG(ADCx->CR,
  13323. 8006184: 687b ldr r3, [r7, #4]
  13324. 8006186: 689a ldr r2, [r3, #8]
  13325. 8006188: 4b05 ldr r3, [pc, #20] @ (80061a0 <LL_ADC_EnableInternalRegulator+0x24>)
  13326. 800618a: 4013 ands r3, r2
  13327. 800618c: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  13328. 8006190: 687b ldr r3, [r7, #4]
  13329. 8006192: 609a str r2, [r3, #8]
  13330. ADC_CR_BITS_PROPERTY_RS,
  13331. ADC_CR_ADVREGEN);
  13332. }
  13333. 8006194: bf00 nop
  13334. 8006196: 370c adds r7, #12
  13335. 8006198: 46bd mov sp, r7
  13336. 800619a: f85d 7b04 ldr.w r7, [sp], #4
  13337. 800619e: 4770 bx lr
  13338. 80061a0: 6fffffc0 .word 0x6fffffc0
  13339. 080061a4 <LL_ADC_IsInternalRegulatorEnabled>:
  13340. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  13341. * @param ADCx ADC instance
  13342. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  13343. */
  13344. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  13345. {
  13346. 80061a4: b480 push {r7}
  13347. 80061a6: b083 sub sp, #12
  13348. 80061a8: af00 add r7, sp, #0
  13349. 80061aa: 6078 str r0, [r7, #4]
  13350. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  13351. 80061ac: 687b ldr r3, [r7, #4]
  13352. 80061ae: 689b ldr r3, [r3, #8]
  13353. 80061b0: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  13354. 80061b4: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13355. 80061b8: d101 bne.n 80061be <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  13356. 80061ba: 2301 movs r3, #1
  13357. 80061bc: e000 b.n 80061c0 <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  13358. 80061be: 2300 movs r3, #0
  13359. }
  13360. 80061c0: 4618 mov r0, r3
  13361. 80061c2: 370c adds r7, #12
  13362. 80061c4: 46bd mov sp, r7
  13363. 80061c6: f85d 7b04 ldr.w r7, [sp], #4
  13364. 80061ca: 4770 bx lr
  13365. 080061cc <LL_ADC_Enable>:
  13366. * @rmtoll CR ADEN LL_ADC_Enable
  13367. * @param ADCx ADC instance
  13368. * @retval None
  13369. */
  13370. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  13371. {
  13372. 80061cc: b480 push {r7}
  13373. 80061ce: b083 sub sp, #12
  13374. 80061d0: af00 add r7, sp, #0
  13375. 80061d2: 6078 str r0, [r7, #4]
  13376. /* Note: Write register with some additional bits forced to state reset */
  13377. /* instead of modifying only the selected bit for this function, */
  13378. /* to not interfere with bits with HW property "rs". */
  13379. MODIFY_REG(ADCx->CR,
  13380. 80061d4: 687b ldr r3, [r7, #4]
  13381. 80061d6: 689a ldr r2, [r3, #8]
  13382. 80061d8: 4b05 ldr r3, [pc, #20] @ (80061f0 <LL_ADC_Enable+0x24>)
  13383. 80061da: 4013 ands r3, r2
  13384. 80061dc: f043 0201 orr.w r2, r3, #1
  13385. 80061e0: 687b ldr r3, [r7, #4]
  13386. 80061e2: 609a str r2, [r3, #8]
  13387. ADC_CR_BITS_PROPERTY_RS,
  13388. ADC_CR_ADEN);
  13389. }
  13390. 80061e4: bf00 nop
  13391. 80061e6: 370c adds r7, #12
  13392. 80061e8: 46bd mov sp, r7
  13393. 80061ea: f85d 7b04 ldr.w r7, [sp], #4
  13394. 80061ee: 4770 bx lr
  13395. 80061f0: 7fffffc0 .word 0x7fffffc0
  13396. 080061f4 <LL_ADC_Disable>:
  13397. * @rmtoll CR ADDIS LL_ADC_Disable
  13398. * @param ADCx ADC instance
  13399. * @retval None
  13400. */
  13401. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  13402. {
  13403. 80061f4: b480 push {r7}
  13404. 80061f6: b083 sub sp, #12
  13405. 80061f8: af00 add r7, sp, #0
  13406. 80061fa: 6078 str r0, [r7, #4]
  13407. /* Note: Write register with some additional bits forced to state reset */
  13408. /* instead of modifying only the selected bit for this function, */
  13409. /* to not interfere with bits with HW property "rs". */
  13410. MODIFY_REG(ADCx->CR,
  13411. 80061fc: 687b ldr r3, [r7, #4]
  13412. 80061fe: 689a ldr r2, [r3, #8]
  13413. 8006200: 4b05 ldr r3, [pc, #20] @ (8006218 <LL_ADC_Disable+0x24>)
  13414. 8006202: 4013 ands r3, r2
  13415. 8006204: f043 0202 orr.w r2, r3, #2
  13416. 8006208: 687b ldr r3, [r7, #4]
  13417. 800620a: 609a str r2, [r3, #8]
  13418. ADC_CR_BITS_PROPERTY_RS,
  13419. ADC_CR_ADDIS);
  13420. }
  13421. 800620c: bf00 nop
  13422. 800620e: 370c adds r7, #12
  13423. 8006210: 46bd mov sp, r7
  13424. 8006212: f85d 7b04 ldr.w r7, [sp], #4
  13425. 8006216: 4770 bx lr
  13426. 8006218: 7fffffc0 .word 0x7fffffc0
  13427. 0800621c <LL_ADC_IsEnabled>:
  13428. * @rmtoll CR ADEN LL_ADC_IsEnabled
  13429. * @param ADCx ADC instance
  13430. * @retval 0: ADC is disabled, 1: ADC is enabled.
  13431. */
  13432. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  13433. {
  13434. 800621c: b480 push {r7}
  13435. 800621e: b083 sub sp, #12
  13436. 8006220: af00 add r7, sp, #0
  13437. 8006222: 6078 str r0, [r7, #4]
  13438. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  13439. 8006224: 687b ldr r3, [r7, #4]
  13440. 8006226: 689b ldr r3, [r3, #8]
  13441. 8006228: f003 0301 and.w r3, r3, #1
  13442. 800622c: 2b01 cmp r3, #1
  13443. 800622e: d101 bne.n 8006234 <LL_ADC_IsEnabled+0x18>
  13444. 8006230: 2301 movs r3, #1
  13445. 8006232: e000 b.n 8006236 <LL_ADC_IsEnabled+0x1a>
  13446. 8006234: 2300 movs r3, #0
  13447. }
  13448. 8006236: 4618 mov r0, r3
  13449. 8006238: 370c adds r7, #12
  13450. 800623a: 46bd mov sp, r7
  13451. 800623c: f85d 7b04 ldr.w r7, [sp], #4
  13452. 8006240: 4770 bx lr
  13453. 08006242 <LL_ADC_IsDisableOngoing>:
  13454. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  13455. * @param ADCx ADC instance
  13456. * @retval 0: no ADC disable command on going.
  13457. */
  13458. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  13459. {
  13460. 8006242: b480 push {r7}
  13461. 8006244: b083 sub sp, #12
  13462. 8006246: af00 add r7, sp, #0
  13463. 8006248: 6078 str r0, [r7, #4]
  13464. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  13465. 800624a: 687b ldr r3, [r7, #4]
  13466. 800624c: 689b ldr r3, [r3, #8]
  13467. 800624e: f003 0302 and.w r3, r3, #2
  13468. 8006252: 2b02 cmp r3, #2
  13469. 8006254: d101 bne.n 800625a <LL_ADC_IsDisableOngoing+0x18>
  13470. 8006256: 2301 movs r3, #1
  13471. 8006258: e000 b.n 800625c <LL_ADC_IsDisableOngoing+0x1a>
  13472. 800625a: 2300 movs r3, #0
  13473. }
  13474. 800625c: 4618 mov r0, r3
  13475. 800625e: 370c adds r7, #12
  13476. 8006260: 46bd mov sp, r7
  13477. 8006262: f85d 7b04 ldr.w r7, [sp], #4
  13478. 8006266: 4770 bx lr
  13479. 08006268 <LL_ADC_REG_StartConversion>:
  13480. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  13481. * @param ADCx ADC instance
  13482. * @retval None
  13483. */
  13484. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  13485. {
  13486. 8006268: b480 push {r7}
  13487. 800626a: b083 sub sp, #12
  13488. 800626c: af00 add r7, sp, #0
  13489. 800626e: 6078 str r0, [r7, #4]
  13490. /* Note: Write register with some additional bits forced to state reset */
  13491. /* instead of modifying only the selected bit for this function, */
  13492. /* to not interfere with bits with HW property "rs". */
  13493. MODIFY_REG(ADCx->CR,
  13494. 8006270: 687b ldr r3, [r7, #4]
  13495. 8006272: 689a ldr r2, [r3, #8]
  13496. 8006274: 4b05 ldr r3, [pc, #20] @ (800628c <LL_ADC_REG_StartConversion+0x24>)
  13497. 8006276: 4013 ands r3, r2
  13498. 8006278: f043 0204 orr.w r2, r3, #4
  13499. 800627c: 687b ldr r3, [r7, #4]
  13500. 800627e: 609a str r2, [r3, #8]
  13501. ADC_CR_BITS_PROPERTY_RS,
  13502. ADC_CR_ADSTART);
  13503. }
  13504. 8006280: bf00 nop
  13505. 8006282: 370c adds r7, #12
  13506. 8006284: 46bd mov sp, r7
  13507. 8006286: f85d 7b04 ldr.w r7, [sp], #4
  13508. 800628a: 4770 bx lr
  13509. 800628c: 7fffffc0 .word 0x7fffffc0
  13510. 08006290 <LL_ADC_REG_IsConversionOngoing>:
  13511. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  13512. * @param ADCx ADC instance
  13513. * @retval 0: no conversion is on going on ADC group regular.
  13514. */
  13515. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  13516. {
  13517. 8006290: b480 push {r7}
  13518. 8006292: b083 sub sp, #12
  13519. 8006294: af00 add r7, sp, #0
  13520. 8006296: 6078 str r0, [r7, #4]
  13521. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  13522. 8006298: 687b ldr r3, [r7, #4]
  13523. 800629a: 689b ldr r3, [r3, #8]
  13524. 800629c: f003 0304 and.w r3, r3, #4
  13525. 80062a0: 2b04 cmp r3, #4
  13526. 80062a2: d101 bne.n 80062a8 <LL_ADC_REG_IsConversionOngoing+0x18>
  13527. 80062a4: 2301 movs r3, #1
  13528. 80062a6: e000 b.n 80062aa <LL_ADC_REG_IsConversionOngoing+0x1a>
  13529. 80062a8: 2300 movs r3, #0
  13530. }
  13531. 80062aa: 4618 mov r0, r3
  13532. 80062ac: 370c adds r7, #12
  13533. 80062ae: 46bd mov sp, r7
  13534. 80062b0: f85d 7b04 ldr.w r7, [sp], #4
  13535. 80062b4: 4770 bx lr
  13536. 080062b6 <LL_ADC_INJ_IsConversionOngoing>:
  13537. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  13538. * @param ADCx ADC instance
  13539. * @retval 0: no conversion is on going on ADC group injected.
  13540. */
  13541. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  13542. {
  13543. 80062b6: b480 push {r7}
  13544. 80062b8: b083 sub sp, #12
  13545. 80062ba: af00 add r7, sp, #0
  13546. 80062bc: 6078 str r0, [r7, #4]
  13547. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  13548. 80062be: 687b ldr r3, [r7, #4]
  13549. 80062c0: 689b ldr r3, [r3, #8]
  13550. 80062c2: f003 0308 and.w r3, r3, #8
  13551. 80062c6: 2b08 cmp r3, #8
  13552. 80062c8: d101 bne.n 80062ce <LL_ADC_INJ_IsConversionOngoing+0x18>
  13553. 80062ca: 2301 movs r3, #1
  13554. 80062cc: e000 b.n 80062d0 <LL_ADC_INJ_IsConversionOngoing+0x1a>
  13555. 80062ce: 2300 movs r3, #0
  13556. }
  13557. 80062d0: 4618 mov r0, r3
  13558. 80062d2: 370c adds r7, #12
  13559. 80062d4: 46bd mov sp, r7
  13560. 80062d6: f85d 7b04 ldr.w r7, [sp], #4
  13561. 80062da: 4770 bx lr
  13562. 080062dc <HAL_ADC_Init>:
  13563. * without disabling the other ADCs.
  13564. * @param hadc ADC handle
  13565. * @retval HAL status
  13566. */
  13567. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  13568. {
  13569. 80062dc: b590 push {r4, r7, lr}
  13570. 80062de: b089 sub sp, #36 @ 0x24
  13571. 80062e0: af00 add r7, sp, #0
  13572. 80062e2: 6078 str r0, [r7, #4]
  13573. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13574. 80062e4: 2300 movs r3, #0
  13575. 80062e6: 77fb strb r3, [r7, #31]
  13576. uint32_t tmpCFGR;
  13577. uint32_t tmp_adc_reg_is_conversion_on_going;
  13578. __IO uint32_t wait_loop_index = 0UL;
  13579. 80062e8: 2300 movs r3, #0
  13580. 80062ea: 60bb str r3, [r7, #8]
  13581. uint32_t tmp_adc_is_conversion_on_going_regular;
  13582. uint32_t tmp_adc_is_conversion_on_going_injected;
  13583. /* Check ADC handle */
  13584. if (hadc == NULL)
  13585. 80062ec: 687b ldr r3, [r7, #4]
  13586. 80062ee: 2b00 cmp r3, #0
  13587. 80062f0: d101 bne.n 80062f6 <HAL_ADC_Init+0x1a>
  13588. {
  13589. return HAL_ERROR;
  13590. 80062f2: 2301 movs r3, #1
  13591. 80062f4: e18f b.n 8006616 <HAL_ADC_Init+0x33a>
  13592. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  13593. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  13594. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  13595. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  13596. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  13597. 80062f6: 687b ldr r3, [r7, #4]
  13598. 80062f8: 68db ldr r3, [r3, #12]
  13599. 80062fa: 2b00 cmp r3, #0
  13600. /* DISCEN and CONT bits cannot be set at the same time */
  13601. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  13602. /* Actions performed only if ADC is coming from state reset: */
  13603. /* - Initialization of ADC MSP */
  13604. if (hadc->State == HAL_ADC_STATE_RESET)
  13605. 80062fc: 687b ldr r3, [r7, #4]
  13606. 80062fe: 6d5b ldr r3, [r3, #84] @ 0x54
  13607. 8006300: 2b00 cmp r3, #0
  13608. 8006302: d109 bne.n 8006318 <HAL_ADC_Init+0x3c>
  13609. /* Init the low level hardware */
  13610. hadc->MspInitCallback(hadc);
  13611. #else
  13612. /* Init the low level hardware */
  13613. HAL_ADC_MspInit(hadc);
  13614. 8006304: 6878 ldr r0, [r7, #4]
  13615. 8006306: f7fd fcdf bl 8003cc8 <HAL_ADC_MspInit>
  13616. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  13617. /* Set ADC error code to none */
  13618. ADC_CLEAR_ERRORCODE(hadc);
  13619. 800630a: 687b ldr r3, [r7, #4]
  13620. 800630c: 2200 movs r2, #0
  13621. 800630e: 659a str r2, [r3, #88] @ 0x58
  13622. /* Initialize Lock */
  13623. hadc->Lock = HAL_UNLOCKED;
  13624. 8006310: 687b ldr r3, [r7, #4]
  13625. 8006312: 2200 movs r2, #0
  13626. 8006314: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13627. }
  13628. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  13629. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  13630. 8006318: 687b ldr r3, [r7, #4]
  13631. 800631a: 681b ldr r3, [r3, #0]
  13632. 800631c: 4618 mov r0, r3
  13633. 800631e: f7ff ff19 bl 8006154 <LL_ADC_IsDeepPowerDownEnabled>
  13634. 8006322: 4603 mov r3, r0
  13635. 8006324: 2b00 cmp r3, #0
  13636. 8006326: d004 beq.n 8006332 <HAL_ADC_Init+0x56>
  13637. {
  13638. /* Disable ADC deep power down mode */
  13639. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  13640. 8006328: 687b ldr r3, [r7, #4]
  13641. 800632a: 681b ldr r3, [r3, #0]
  13642. 800632c: 4618 mov r0, r3
  13643. 800632e: f7ff feff bl 8006130 <LL_ADC_DisableDeepPowerDown>
  13644. /* System was in deep power down mode, calibration must
  13645. be relaunched or a previously saved calibration factor
  13646. re-applied once the ADC voltage regulator is enabled */
  13647. }
  13648. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13649. 8006332: 687b ldr r3, [r7, #4]
  13650. 8006334: 681b ldr r3, [r3, #0]
  13651. 8006336: 4618 mov r0, r3
  13652. 8006338: f7ff ff34 bl 80061a4 <LL_ADC_IsInternalRegulatorEnabled>
  13653. 800633c: 4603 mov r3, r0
  13654. 800633e: 2b00 cmp r3, #0
  13655. 8006340: d114 bne.n 800636c <HAL_ADC_Init+0x90>
  13656. {
  13657. /* Enable ADC internal voltage regulator */
  13658. LL_ADC_EnableInternalRegulator(hadc->Instance);
  13659. 8006342: 687b ldr r3, [r7, #4]
  13660. 8006344: 681b ldr r3, [r3, #0]
  13661. 8006346: 4618 mov r0, r3
  13662. 8006348: f7ff ff18 bl 800617c <LL_ADC_EnableInternalRegulator>
  13663. /* Note: Variable divided by 2 to compensate partially */
  13664. /* CPU processing cycles, scaling in us split to not */
  13665. /* exceed 32 bits register capacity and handle low frequency. */
  13666. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  13667. 800634c: 4b87 ldr r3, [pc, #540] @ (800656c <HAL_ADC_Init+0x290>)
  13668. 800634e: 681b ldr r3, [r3, #0]
  13669. 8006350: 099b lsrs r3, r3, #6
  13670. 8006352: 4a87 ldr r2, [pc, #540] @ (8006570 <HAL_ADC_Init+0x294>)
  13671. 8006354: fba2 2303 umull r2, r3, r2, r3
  13672. 8006358: 099b lsrs r3, r3, #6
  13673. 800635a: 3301 adds r3, #1
  13674. 800635c: 60bb str r3, [r7, #8]
  13675. while (wait_loop_index != 0UL)
  13676. 800635e: e002 b.n 8006366 <HAL_ADC_Init+0x8a>
  13677. {
  13678. wait_loop_index--;
  13679. 8006360: 68bb ldr r3, [r7, #8]
  13680. 8006362: 3b01 subs r3, #1
  13681. 8006364: 60bb str r3, [r7, #8]
  13682. while (wait_loop_index != 0UL)
  13683. 8006366: 68bb ldr r3, [r7, #8]
  13684. 8006368: 2b00 cmp r3, #0
  13685. 800636a: d1f9 bne.n 8006360 <HAL_ADC_Init+0x84>
  13686. }
  13687. /* Verification that ADC voltage regulator is correctly enabled, whether */
  13688. /* or not ADC is coming from state reset (if any potential problem of */
  13689. /* clocking, voltage regulator would not be enabled). */
  13690. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13691. 800636c: 687b ldr r3, [r7, #4]
  13692. 800636e: 681b ldr r3, [r3, #0]
  13693. 8006370: 4618 mov r0, r3
  13694. 8006372: f7ff ff17 bl 80061a4 <LL_ADC_IsInternalRegulatorEnabled>
  13695. 8006376: 4603 mov r3, r0
  13696. 8006378: 2b00 cmp r3, #0
  13697. 800637a: d10d bne.n 8006398 <HAL_ADC_Init+0xbc>
  13698. {
  13699. /* Update ADC state machine to error */
  13700. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  13701. 800637c: 687b ldr r3, [r7, #4]
  13702. 800637e: 6d5b ldr r3, [r3, #84] @ 0x54
  13703. 8006380: f043 0210 orr.w r2, r3, #16
  13704. 8006384: 687b ldr r3, [r7, #4]
  13705. 8006386: 655a str r2, [r3, #84] @ 0x54
  13706. /* Set ADC error code to ADC peripheral internal error */
  13707. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  13708. 8006388: 687b ldr r3, [r7, #4]
  13709. 800638a: 6d9b ldr r3, [r3, #88] @ 0x58
  13710. 800638c: f043 0201 orr.w r2, r3, #1
  13711. 8006390: 687b ldr r3, [r7, #4]
  13712. 8006392: 659a str r2, [r3, #88] @ 0x58
  13713. tmp_hal_status = HAL_ERROR;
  13714. 8006394: 2301 movs r3, #1
  13715. 8006396: 77fb strb r3, [r7, #31]
  13716. /* Configuration of ADC parameters if previous preliminary actions are */
  13717. /* correctly completed and if there is no conversion on going on regular */
  13718. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  13719. /* called to update a parameter on the fly). */
  13720. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13721. 8006398: 687b ldr r3, [r7, #4]
  13722. 800639a: 681b ldr r3, [r3, #0]
  13723. 800639c: 4618 mov r0, r3
  13724. 800639e: f7ff ff77 bl 8006290 <LL_ADC_REG_IsConversionOngoing>
  13725. 80063a2: 6178 str r0, [r7, #20]
  13726. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  13727. 80063a4: 687b ldr r3, [r7, #4]
  13728. 80063a6: 6d5b ldr r3, [r3, #84] @ 0x54
  13729. 80063a8: f003 0310 and.w r3, r3, #16
  13730. 80063ac: 2b00 cmp r3, #0
  13731. 80063ae: f040 8129 bne.w 8006604 <HAL_ADC_Init+0x328>
  13732. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  13733. 80063b2: 697b ldr r3, [r7, #20]
  13734. 80063b4: 2b00 cmp r3, #0
  13735. 80063b6: f040 8125 bne.w 8006604 <HAL_ADC_Init+0x328>
  13736. )
  13737. {
  13738. /* Set ADC state */
  13739. ADC_STATE_CLR_SET(hadc->State,
  13740. 80063ba: 687b ldr r3, [r7, #4]
  13741. 80063bc: 6d5b ldr r3, [r3, #84] @ 0x54
  13742. 80063be: f423 7381 bic.w r3, r3, #258 @ 0x102
  13743. 80063c2: f043 0202 orr.w r2, r3, #2
  13744. 80063c6: 687b ldr r3, [r7, #4]
  13745. 80063c8: 655a str r2, [r3, #84] @ 0x54
  13746. /* Configuration of common ADC parameters */
  13747. /* Parameters update conditioned to ADC state: */
  13748. /* Parameters that can be updated only when ADC is disabled: */
  13749. /* - clock configuration */
  13750. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13751. 80063ca: 687b ldr r3, [r7, #4]
  13752. 80063cc: 681b ldr r3, [r3, #0]
  13753. 80063ce: 4618 mov r0, r3
  13754. 80063d0: f7ff ff24 bl 800621c <LL_ADC_IsEnabled>
  13755. 80063d4: 4603 mov r3, r0
  13756. 80063d6: 2b00 cmp r3, #0
  13757. 80063d8: d136 bne.n 8006448 <HAL_ADC_Init+0x16c>
  13758. {
  13759. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  13760. 80063da: 687b ldr r3, [r7, #4]
  13761. 80063dc: 681b ldr r3, [r3, #0]
  13762. 80063de: 4a65 ldr r2, [pc, #404] @ (8006574 <HAL_ADC_Init+0x298>)
  13763. 80063e0: 4293 cmp r3, r2
  13764. 80063e2: d004 beq.n 80063ee <HAL_ADC_Init+0x112>
  13765. 80063e4: 687b ldr r3, [r7, #4]
  13766. 80063e6: 681b ldr r3, [r3, #0]
  13767. 80063e8: 4a63 ldr r2, [pc, #396] @ (8006578 <HAL_ADC_Init+0x29c>)
  13768. 80063ea: 4293 cmp r3, r2
  13769. 80063ec: d10e bne.n 800640c <HAL_ADC_Init+0x130>
  13770. 80063ee: 4861 ldr r0, [pc, #388] @ (8006574 <HAL_ADC_Init+0x298>)
  13771. 80063f0: f7ff ff14 bl 800621c <LL_ADC_IsEnabled>
  13772. 80063f4: 4604 mov r4, r0
  13773. 80063f6: 4860 ldr r0, [pc, #384] @ (8006578 <HAL_ADC_Init+0x29c>)
  13774. 80063f8: f7ff ff10 bl 800621c <LL_ADC_IsEnabled>
  13775. 80063fc: 4603 mov r3, r0
  13776. 80063fe: 4323 orrs r3, r4
  13777. 8006400: 2b00 cmp r3, #0
  13778. 8006402: bf0c ite eq
  13779. 8006404: 2301 moveq r3, #1
  13780. 8006406: 2300 movne r3, #0
  13781. 8006408: b2db uxtb r3, r3
  13782. 800640a: e008 b.n 800641e <HAL_ADC_Init+0x142>
  13783. 800640c: 485b ldr r0, [pc, #364] @ (800657c <HAL_ADC_Init+0x2a0>)
  13784. 800640e: f7ff ff05 bl 800621c <LL_ADC_IsEnabled>
  13785. 8006412: 4603 mov r3, r0
  13786. 8006414: 2b00 cmp r3, #0
  13787. 8006416: bf0c ite eq
  13788. 8006418: 2301 moveq r3, #1
  13789. 800641a: 2300 movne r3, #0
  13790. 800641c: b2db uxtb r3, r3
  13791. 800641e: 2b00 cmp r3, #0
  13792. 8006420: d012 beq.n 8006448 <HAL_ADC_Init+0x16c>
  13793. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  13794. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  13795. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  13796. /* (set into HAL_ADC_ConfigChannel() or */
  13797. /* HAL_ADCEx_InjectedConfigChannel() ) */
  13798. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  13799. 8006422: 687b ldr r3, [r7, #4]
  13800. 8006424: 681b ldr r3, [r3, #0]
  13801. 8006426: 4a53 ldr r2, [pc, #332] @ (8006574 <HAL_ADC_Init+0x298>)
  13802. 8006428: 4293 cmp r3, r2
  13803. 800642a: d004 beq.n 8006436 <HAL_ADC_Init+0x15a>
  13804. 800642c: 687b ldr r3, [r7, #4]
  13805. 800642e: 681b ldr r3, [r3, #0]
  13806. 8006430: 4a51 ldr r2, [pc, #324] @ (8006578 <HAL_ADC_Init+0x29c>)
  13807. 8006432: 4293 cmp r3, r2
  13808. 8006434: d101 bne.n 800643a <HAL_ADC_Init+0x15e>
  13809. 8006436: 4a52 ldr r2, [pc, #328] @ (8006580 <HAL_ADC_Init+0x2a4>)
  13810. 8006438: e000 b.n 800643c <HAL_ADC_Init+0x160>
  13811. 800643a: 4a52 ldr r2, [pc, #328] @ (8006584 <HAL_ADC_Init+0x2a8>)
  13812. 800643c: 687b ldr r3, [r7, #4]
  13813. 800643e: 685b ldr r3, [r3, #4]
  13814. 8006440: 4619 mov r1, r3
  13815. 8006442: 4610 mov r0, r2
  13816. 8006444: f7ff fd3c bl 8005ec0 <LL_ADC_SetCommonClock>
  13817. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13818. }
  13819. #else
  13820. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  13821. 8006448: f7ff fcf4 bl 8005e34 <HAL_GetREVID>
  13822. 800644c: 4603 mov r3, r0
  13823. 800644e: f241 0203 movw r2, #4099 @ 0x1003
  13824. 8006452: 4293 cmp r3, r2
  13825. 8006454: d914 bls.n 8006480 <HAL_ADC_Init+0x1a4>
  13826. 8006456: 687b ldr r3, [r7, #4]
  13827. 8006458: 689b ldr r3, [r3, #8]
  13828. 800645a: 2b10 cmp r3, #16
  13829. 800645c: d110 bne.n 8006480 <HAL_ADC_Init+0x1a4>
  13830. {
  13831. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  13832. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13833. 800645e: 687b ldr r3, [r7, #4]
  13834. 8006460: 7d5b ldrb r3, [r3, #21]
  13835. 8006462: 035a lsls r2, r3, #13
  13836. hadc->Init.Overrun |
  13837. 8006464: 687b ldr r3, [r7, #4]
  13838. 8006466: 6b1b ldr r3, [r3, #48] @ 0x30
  13839. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13840. 8006468: 431a orrs r2, r3
  13841. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13842. 800646a: 687b ldr r3, [r7, #4]
  13843. 800646c: 689b ldr r3, [r3, #8]
  13844. hadc->Init.Overrun |
  13845. 800646e: 431a orrs r2, r3
  13846. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13847. 8006470: 687b ldr r3, [r7, #4]
  13848. 8006472: 7f1b ldrb r3, [r3, #28]
  13849. 8006474: 041b lsls r3, r3, #16
  13850. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13851. 8006476: 4313 orrs r3, r2
  13852. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13853. 8006478: f043 030c orr.w r3, r3, #12
  13854. 800647c: 61bb str r3, [r7, #24]
  13855. 800647e: e00d b.n 800649c <HAL_ADC_Init+0x1c0>
  13856. }
  13857. else
  13858. {
  13859. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13860. 8006480: 687b ldr r3, [r7, #4]
  13861. 8006482: 7d5b ldrb r3, [r3, #21]
  13862. 8006484: 035a lsls r2, r3, #13
  13863. hadc->Init.Overrun |
  13864. 8006486: 687b ldr r3, [r7, #4]
  13865. 8006488: 6b1b ldr r3, [r3, #48] @ 0x30
  13866. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13867. 800648a: 431a orrs r2, r3
  13868. hadc->Init.Resolution |
  13869. 800648c: 687b ldr r3, [r7, #4]
  13870. 800648e: 689b ldr r3, [r3, #8]
  13871. hadc->Init.Overrun |
  13872. 8006490: 431a orrs r2, r3
  13873. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13874. 8006492: 687b ldr r3, [r7, #4]
  13875. 8006494: 7f1b ldrb r3, [r3, #28]
  13876. 8006496: 041b lsls r3, r3, #16
  13877. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13878. 8006498: 4313 orrs r3, r2
  13879. 800649a: 61bb str r3, [r7, #24]
  13880. }
  13881. #endif /* ADC_VER_V5_3 */
  13882. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  13883. 800649c: 687b ldr r3, [r7, #4]
  13884. 800649e: 7f1b ldrb r3, [r3, #28]
  13885. 80064a0: 2b01 cmp r3, #1
  13886. 80064a2: d106 bne.n 80064b2 <HAL_ADC_Init+0x1d6>
  13887. {
  13888. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  13889. 80064a4: 687b ldr r3, [r7, #4]
  13890. 80064a6: 6a1b ldr r3, [r3, #32]
  13891. 80064a8: 3b01 subs r3, #1
  13892. 80064aa: 045b lsls r3, r3, #17
  13893. 80064ac: 69ba ldr r2, [r7, #24]
  13894. 80064ae: 4313 orrs r3, r2
  13895. 80064b0: 61bb str r3, [r7, #24]
  13896. /* Enable external trigger if trigger selection is different of software */
  13897. /* start. */
  13898. /* Note: This configuration keeps the hardware feature of parameter */
  13899. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  13900. /* software start. */
  13901. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  13902. 80064b2: 687b ldr r3, [r7, #4]
  13903. 80064b4: 6a5b ldr r3, [r3, #36] @ 0x24
  13904. 80064b6: 2b00 cmp r3, #0
  13905. 80064b8: d009 beq.n 80064ce <HAL_ADC_Init+0x1f2>
  13906. {
  13907. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13908. 80064ba: 687b ldr r3, [r7, #4]
  13909. 80064bc: 6a5b ldr r3, [r3, #36] @ 0x24
  13910. 80064be: f403 7278 and.w r2, r3, #992 @ 0x3e0
  13911. | hadc->Init.ExternalTrigConvEdge
  13912. 80064c2: 687b ldr r3, [r7, #4]
  13913. 80064c4: 6a9b ldr r3, [r3, #40] @ 0x28
  13914. 80064c6: 4313 orrs r3, r2
  13915. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13916. 80064c8: 69ba ldr r2, [r7, #24]
  13917. 80064ca: 4313 orrs r3, r2
  13918. 80064cc: 61bb str r3, [r7, #24]
  13919. /* Update Configuration Register CFGR */
  13920. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13921. }
  13922. #else
  13923. /* Update Configuration Register CFGR */
  13924. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13925. 80064ce: 687b ldr r3, [r7, #4]
  13926. 80064d0: 681b ldr r3, [r3, #0]
  13927. 80064d2: 68da ldr r2, [r3, #12]
  13928. 80064d4: 4b2c ldr r3, [pc, #176] @ (8006588 <HAL_ADC_Init+0x2ac>)
  13929. 80064d6: 4013 ands r3, r2
  13930. 80064d8: 687a ldr r2, [r7, #4]
  13931. 80064da: 6812 ldr r2, [r2, #0]
  13932. 80064dc: 69b9 ldr r1, [r7, #24]
  13933. 80064de: 430b orrs r3, r1
  13934. 80064e0: 60d3 str r3, [r2, #12]
  13935. /* Parameters that can be updated when ADC is disabled or enabled without */
  13936. /* conversion on going on regular and injected groups: */
  13937. /* - Conversion data management Init.ConversionDataManagement */
  13938. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  13939. /* - Oversampling parameters Init.Oversampling */
  13940. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13941. 80064e2: 687b ldr r3, [r7, #4]
  13942. 80064e4: 681b ldr r3, [r3, #0]
  13943. 80064e6: 4618 mov r0, r3
  13944. 80064e8: f7ff fed2 bl 8006290 <LL_ADC_REG_IsConversionOngoing>
  13945. 80064ec: 6138 str r0, [r7, #16]
  13946. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13947. 80064ee: 687b ldr r3, [r7, #4]
  13948. 80064f0: 681b ldr r3, [r3, #0]
  13949. 80064f2: 4618 mov r0, r3
  13950. 80064f4: f7ff fedf bl 80062b6 <LL_ADC_INJ_IsConversionOngoing>
  13951. 80064f8: 60f8 str r0, [r7, #12]
  13952. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13953. 80064fa: 693b ldr r3, [r7, #16]
  13954. 80064fc: 2b00 cmp r3, #0
  13955. 80064fe: d15f bne.n 80065c0 <HAL_ADC_Init+0x2e4>
  13956. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13957. 8006500: 68fb ldr r3, [r7, #12]
  13958. 8006502: 2b00 cmp r3, #0
  13959. 8006504: d15c bne.n 80065c0 <HAL_ADC_Init+0x2e4>
  13960. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13961. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13962. }
  13963. #else
  13964. tmpCFGR = (
  13965. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13966. 8006506: 687b ldr r3, [r7, #4]
  13967. 8006508: 7d1b ldrb r3, [r3, #20]
  13968. 800650a: 039a lsls r2, r3, #14
  13969. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13970. 800650c: 687b ldr r3, [r7, #4]
  13971. 800650e: 6adb ldr r3, [r3, #44] @ 0x2c
  13972. tmpCFGR = (
  13973. 8006510: 4313 orrs r3, r2
  13974. 8006512: 61bb str r3, [r7, #24]
  13975. #endif
  13976. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  13977. 8006514: 687b ldr r3, [r7, #4]
  13978. 8006516: 681b ldr r3, [r3, #0]
  13979. 8006518: 68da ldr r2, [r3, #12]
  13980. 800651a: 4b1c ldr r3, [pc, #112] @ (800658c <HAL_ADC_Init+0x2b0>)
  13981. 800651c: 4013 ands r3, r2
  13982. 800651e: 687a ldr r2, [r7, #4]
  13983. 8006520: 6812 ldr r2, [r2, #0]
  13984. 8006522: 69b9 ldr r1, [r7, #24]
  13985. 8006524: 430b orrs r3, r1
  13986. 8006526: 60d3 str r3, [r2, #12]
  13987. if (hadc->Init.OversamplingMode == ENABLE)
  13988. 8006528: 687b ldr r3, [r7, #4]
  13989. 800652a: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  13990. 800652e: 2b01 cmp r3, #1
  13991. 8006530: d130 bne.n 8006594 <HAL_ADC_Init+0x2b8>
  13992. #endif
  13993. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  13994. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  13995. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  13996. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  13997. 8006532: 687b ldr r3, [r7, #4]
  13998. 8006534: 6a5b ldr r3, [r3, #36] @ 0x24
  13999. 8006536: 2b00 cmp r3, #0
  14000. /* - Oversampling Ratio */
  14001. /* - Right bit shift */
  14002. /* - Left bit shift */
  14003. /* - Triggered mode */
  14004. /* - Oversampling mode (continued/resumed) */
  14005. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  14006. 8006538: 687b ldr r3, [r7, #4]
  14007. 800653a: 681b ldr r3, [r3, #0]
  14008. 800653c: 691a ldr r2, [r3, #16]
  14009. 800653e: 4b14 ldr r3, [pc, #80] @ (8006590 <HAL_ADC_Init+0x2b4>)
  14010. 8006540: 4013 ands r3, r2
  14011. 8006542: 687a ldr r2, [r7, #4]
  14012. 8006544: 6bd2 ldr r2, [r2, #60] @ 0x3c
  14013. 8006546: 3a01 subs r2, #1
  14014. 8006548: 0411 lsls r1, r2, #16
  14015. 800654a: 687a ldr r2, [r7, #4]
  14016. 800654c: 6c12 ldr r2, [r2, #64] @ 0x40
  14017. 800654e: 4311 orrs r1, r2
  14018. 8006550: 687a ldr r2, [r7, #4]
  14019. 8006552: 6c52 ldr r2, [r2, #68] @ 0x44
  14020. 8006554: 4311 orrs r1, r2
  14021. 8006556: 687a ldr r2, [r7, #4]
  14022. 8006558: 6c92 ldr r2, [r2, #72] @ 0x48
  14023. 800655a: 430a orrs r2, r1
  14024. 800655c: 431a orrs r2, r3
  14025. 800655e: 687b ldr r3, [r7, #4]
  14026. 8006560: 681b ldr r3, [r3, #0]
  14027. 8006562: f042 0201 orr.w r2, r2, #1
  14028. 8006566: 611a str r2, [r3, #16]
  14029. 8006568: e01c b.n 80065a4 <HAL_ADC_Init+0x2c8>
  14030. 800656a: bf00 nop
  14031. 800656c: 24000034 .word 0x24000034
  14032. 8006570: 053e2d63 .word 0x053e2d63
  14033. 8006574: 40022000 .word 0x40022000
  14034. 8006578: 40022100 .word 0x40022100
  14035. 800657c: 58026000 .word 0x58026000
  14036. 8006580: 40022300 .word 0x40022300
  14037. 8006584: 58026300 .word 0x58026300
  14038. 8006588: fff0c003 .word 0xfff0c003
  14039. 800658c: ffffbffc .word 0xffffbffc
  14040. 8006590: fc00f81e .word 0xfc00f81e
  14041. }
  14042. else
  14043. {
  14044. /* Disable ADC oversampling scope on ADC group regular */
  14045. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  14046. 8006594: 687b ldr r3, [r7, #4]
  14047. 8006596: 681b ldr r3, [r3, #0]
  14048. 8006598: 691a ldr r2, [r3, #16]
  14049. 800659a: 687b ldr r3, [r7, #4]
  14050. 800659c: 681b ldr r3, [r3, #0]
  14051. 800659e: f022 0201 bic.w r2, r2, #1
  14052. 80065a2: 611a str r2, [r3, #16]
  14053. }
  14054. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  14055. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  14056. 80065a4: 687b ldr r3, [r7, #4]
  14057. 80065a6: 681b ldr r3, [r3, #0]
  14058. 80065a8: 691b ldr r3, [r3, #16]
  14059. 80065aa: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  14060. 80065ae: 687b ldr r3, [r7, #4]
  14061. 80065b0: 6b5a ldr r2, [r3, #52] @ 0x34
  14062. 80065b2: 687b ldr r3, [r7, #4]
  14063. 80065b4: 681b ldr r3, [r3, #0]
  14064. 80065b6: 430a orrs r2, r1
  14065. 80065b8: 611a str r2, [r3, #16]
  14066. /* Configure the BOOST Mode */
  14067. ADC_ConfigureBoostMode(hadc);
  14068. }
  14069. #else
  14070. /* Configure the BOOST Mode */
  14071. ADC_ConfigureBoostMode(hadc);
  14072. 80065ba: 6878 ldr r0, [r7, #4]
  14073. 80065bc: f000 fde2 bl 8007184 <ADC_ConfigureBoostMode>
  14074. /* Note: Scan mode is not present by hardware on this device, but */
  14075. /* emulated by software for alignment over all STM32 devices. */
  14076. /* - if scan mode is enabled, regular channels sequence length is set to */
  14077. /* parameter "NbrOfConversion". */
  14078. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  14079. 80065c0: 687b ldr r3, [r7, #4]
  14080. 80065c2: 68db ldr r3, [r3, #12]
  14081. 80065c4: 2b01 cmp r3, #1
  14082. 80065c6: d10c bne.n 80065e2 <HAL_ADC_Init+0x306>
  14083. {
  14084. /* Set number of ranks in regular group sequencer */
  14085. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  14086. 80065c8: 687b ldr r3, [r7, #4]
  14087. 80065ca: 681b ldr r3, [r3, #0]
  14088. 80065cc: 6b1b ldr r3, [r3, #48] @ 0x30
  14089. 80065ce: f023 010f bic.w r1, r3, #15
  14090. 80065d2: 687b ldr r3, [r7, #4]
  14091. 80065d4: 699b ldr r3, [r3, #24]
  14092. 80065d6: 1e5a subs r2, r3, #1
  14093. 80065d8: 687b ldr r3, [r7, #4]
  14094. 80065da: 681b ldr r3, [r3, #0]
  14095. 80065dc: 430a orrs r2, r1
  14096. 80065de: 631a str r2, [r3, #48] @ 0x30
  14097. 80065e0: e007 b.n 80065f2 <HAL_ADC_Init+0x316>
  14098. }
  14099. else
  14100. {
  14101. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  14102. 80065e2: 687b ldr r3, [r7, #4]
  14103. 80065e4: 681b ldr r3, [r3, #0]
  14104. 80065e6: 6b1a ldr r2, [r3, #48] @ 0x30
  14105. 80065e8: 687b ldr r3, [r7, #4]
  14106. 80065ea: 681b ldr r3, [r3, #0]
  14107. 80065ec: f022 020f bic.w r2, r2, #15
  14108. 80065f0: 631a str r2, [r3, #48] @ 0x30
  14109. }
  14110. /* Initialize the ADC state */
  14111. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  14112. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  14113. 80065f2: 687b ldr r3, [r7, #4]
  14114. 80065f4: 6d5b ldr r3, [r3, #84] @ 0x54
  14115. 80065f6: f023 0303 bic.w r3, r3, #3
  14116. 80065fa: f043 0201 orr.w r2, r3, #1
  14117. 80065fe: 687b ldr r3, [r7, #4]
  14118. 8006600: 655a str r2, [r3, #84] @ 0x54
  14119. 8006602: e007 b.n 8006614 <HAL_ADC_Init+0x338>
  14120. }
  14121. else
  14122. {
  14123. /* Update ADC state machine to error */
  14124. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14125. 8006604: 687b ldr r3, [r7, #4]
  14126. 8006606: 6d5b ldr r3, [r3, #84] @ 0x54
  14127. 8006608: f043 0210 orr.w r2, r3, #16
  14128. 800660c: 687b ldr r3, [r7, #4]
  14129. 800660e: 655a str r2, [r3, #84] @ 0x54
  14130. tmp_hal_status = HAL_ERROR;
  14131. 8006610: 2301 movs r3, #1
  14132. 8006612: 77fb strb r3, [r7, #31]
  14133. }
  14134. /* Return function status */
  14135. return tmp_hal_status;
  14136. 8006614: 7ffb ldrb r3, [r7, #31]
  14137. }
  14138. 8006616: 4618 mov r0, r3
  14139. 8006618: 3724 adds r7, #36 @ 0x24
  14140. 800661a: 46bd mov sp, r7
  14141. 800661c: bd90 pop {r4, r7, pc}
  14142. 800661e: bf00 nop
  14143. 08006620 <HAL_ADC_Start_DMA>:
  14144. * @param pData Destination Buffer address.
  14145. * @param Length Number of data to be transferred from ADC peripheral to memory
  14146. * @retval HAL status.
  14147. */
  14148. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  14149. {
  14150. 8006620: b580 push {r7, lr}
  14151. 8006622: b086 sub sp, #24
  14152. 8006624: af00 add r7, sp, #0
  14153. 8006626: 60f8 str r0, [r7, #12]
  14154. 8006628: 60b9 str r1, [r7, #8]
  14155. 800662a: 607a str r2, [r7, #4]
  14156. HAL_StatusTypeDef tmp_hal_status;
  14157. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14158. 800662c: 68fb ldr r3, [r7, #12]
  14159. 800662e: 681b ldr r3, [r3, #0]
  14160. 8006630: 4a55 ldr r2, [pc, #340] @ (8006788 <HAL_ADC_Start_DMA+0x168>)
  14161. 8006632: 4293 cmp r3, r2
  14162. 8006634: d004 beq.n 8006640 <HAL_ADC_Start_DMA+0x20>
  14163. 8006636: 68fb ldr r3, [r7, #12]
  14164. 8006638: 681b ldr r3, [r3, #0]
  14165. 800663a: 4a54 ldr r2, [pc, #336] @ (800678c <HAL_ADC_Start_DMA+0x16c>)
  14166. 800663c: 4293 cmp r3, r2
  14167. 800663e: d101 bne.n 8006644 <HAL_ADC_Start_DMA+0x24>
  14168. 8006640: 4b53 ldr r3, [pc, #332] @ (8006790 <HAL_ADC_Start_DMA+0x170>)
  14169. 8006642: e000 b.n 8006646 <HAL_ADC_Start_DMA+0x26>
  14170. 8006644: 4b53 ldr r3, [pc, #332] @ (8006794 <HAL_ADC_Start_DMA+0x174>)
  14171. 8006646: 4618 mov r0, r3
  14172. 8006648: f7ff fd64 bl 8006114 <LL_ADC_GetMultimode>
  14173. 800664c: 6138 str r0, [r7, #16]
  14174. /* Check the parameters */
  14175. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  14176. /* Perform ADC enable and conversion start if no conversion is on going */
  14177. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14178. 800664e: 68fb ldr r3, [r7, #12]
  14179. 8006650: 681b ldr r3, [r3, #0]
  14180. 8006652: 4618 mov r0, r3
  14181. 8006654: f7ff fe1c bl 8006290 <LL_ADC_REG_IsConversionOngoing>
  14182. 8006658: 4603 mov r3, r0
  14183. 800665a: 2b00 cmp r3, #0
  14184. 800665c: f040 808c bne.w 8006778 <HAL_ADC_Start_DMA+0x158>
  14185. {
  14186. /* Process locked */
  14187. __HAL_LOCK(hadc);
  14188. 8006660: 68fb ldr r3, [r7, #12]
  14189. 8006662: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14190. 8006666: 2b01 cmp r3, #1
  14191. 8006668: d101 bne.n 800666e <HAL_ADC_Start_DMA+0x4e>
  14192. 800666a: 2302 movs r3, #2
  14193. 800666c: e087 b.n 800677e <HAL_ADC_Start_DMA+0x15e>
  14194. 800666e: 68fb ldr r3, [r7, #12]
  14195. 8006670: 2201 movs r2, #1
  14196. 8006672: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14197. /* Ensure that multimode regular conversions are not enabled. */
  14198. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  14199. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14200. 8006676: 693b ldr r3, [r7, #16]
  14201. 8006678: 2b00 cmp r3, #0
  14202. 800667a: d005 beq.n 8006688 <HAL_ADC_Start_DMA+0x68>
  14203. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  14204. 800667c: 693b ldr r3, [r7, #16]
  14205. 800667e: 2b05 cmp r3, #5
  14206. 8006680: d002 beq.n 8006688 <HAL_ADC_Start_DMA+0x68>
  14207. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  14208. 8006682: 693b ldr r3, [r7, #16]
  14209. 8006684: 2b09 cmp r3, #9
  14210. 8006686: d170 bne.n 800676a <HAL_ADC_Start_DMA+0x14a>
  14211. )
  14212. {
  14213. /* Enable the ADC peripheral */
  14214. tmp_hal_status = ADC_Enable(hadc);
  14215. 8006688: 68f8 ldr r0, [r7, #12]
  14216. 800668a: f000 fbfd bl 8006e88 <ADC_Enable>
  14217. 800668e: 4603 mov r3, r0
  14218. 8006690: 75fb strb r3, [r7, #23]
  14219. /* Start conversion if ADC is effectively enabled */
  14220. if (tmp_hal_status == HAL_OK)
  14221. 8006692: 7dfb ldrb r3, [r7, #23]
  14222. 8006694: 2b00 cmp r3, #0
  14223. 8006696: d163 bne.n 8006760 <HAL_ADC_Start_DMA+0x140>
  14224. {
  14225. /* Set ADC state */
  14226. /* - Clear state bitfield related to regular group conversion results */
  14227. /* - Set state bitfield related to regular operation */
  14228. ADC_STATE_CLR_SET(hadc->State,
  14229. 8006698: 68fb ldr r3, [r7, #12]
  14230. 800669a: 6d5a ldr r2, [r3, #84] @ 0x54
  14231. 800669c: 4b3e ldr r3, [pc, #248] @ (8006798 <HAL_ADC_Start_DMA+0x178>)
  14232. 800669e: 4013 ands r3, r2
  14233. 80066a0: f443 7280 orr.w r2, r3, #256 @ 0x100
  14234. 80066a4: 68fb ldr r3, [r7, #12]
  14235. 80066a6: 655a str r2, [r3, #84] @ 0x54
  14236. HAL_ADC_STATE_REG_BUSY);
  14237. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  14238. - if ADC instance is master or if multimode feature is not available
  14239. - if multimode setting is disabled (ADC instance slave in independent mode) */
  14240. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14241. 80066a8: 68fb ldr r3, [r7, #12]
  14242. 80066aa: 681b ldr r3, [r3, #0]
  14243. 80066ac: 4a37 ldr r2, [pc, #220] @ (800678c <HAL_ADC_Start_DMA+0x16c>)
  14244. 80066ae: 4293 cmp r3, r2
  14245. 80066b0: d002 beq.n 80066b8 <HAL_ADC_Start_DMA+0x98>
  14246. 80066b2: 68fb ldr r3, [r7, #12]
  14247. 80066b4: 681b ldr r3, [r3, #0]
  14248. 80066b6: e000 b.n 80066ba <HAL_ADC_Start_DMA+0x9a>
  14249. 80066b8: 4b33 ldr r3, [pc, #204] @ (8006788 <HAL_ADC_Start_DMA+0x168>)
  14250. 80066ba: 68fa ldr r2, [r7, #12]
  14251. 80066bc: 6812 ldr r2, [r2, #0]
  14252. 80066be: 4293 cmp r3, r2
  14253. 80066c0: d002 beq.n 80066c8 <HAL_ADC_Start_DMA+0xa8>
  14254. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14255. 80066c2: 693b ldr r3, [r7, #16]
  14256. 80066c4: 2b00 cmp r3, #0
  14257. 80066c6: d105 bne.n 80066d4 <HAL_ADC_Start_DMA+0xb4>
  14258. )
  14259. {
  14260. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  14261. 80066c8: 68fb ldr r3, [r7, #12]
  14262. 80066ca: 6d5b ldr r3, [r3, #84] @ 0x54
  14263. 80066cc: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  14264. 80066d0: 68fb ldr r3, [r7, #12]
  14265. 80066d2: 655a str r2, [r3, #84] @ 0x54
  14266. }
  14267. /* Check if a conversion is on going on ADC group injected */
  14268. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  14269. 80066d4: 68fb ldr r3, [r7, #12]
  14270. 80066d6: 6d5b ldr r3, [r3, #84] @ 0x54
  14271. 80066d8: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14272. 80066dc: 2b00 cmp r3, #0
  14273. 80066de: d006 beq.n 80066ee <HAL_ADC_Start_DMA+0xce>
  14274. {
  14275. /* Reset ADC error code fields related to regular conversions only */
  14276. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  14277. 80066e0: 68fb ldr r3, [r7, #12]
  14278. 80066e2: 6d9b ldr r3, [r3, #88] @ 0x58
  14279. 80066e4: f023 0206 bic.w r2, r3, #6
  14280. 80066e8: 68fb ldr r3, [r7, #12]
  14281. 80066ea: 659a str r2, [r3, #88] @ 0x58
  14282. 80066ec: e002 b.n 80066f4 <HAL_ADC_Start_DMA+0xd4>
  14283. }
  14284. else
  14285. {
  14286. /* Reset all ADC error code fields */
  14287. ADC_CLEAR_ERRORCODE(hadc);
  14288. 80066ee: 68fb ldr r3, [r7, #12]
  14289. 80066f0: 2200 movs r2, #0
  14290. 80066f2: 659a str r2, [r3, #88] @ 0x58
  14291. }
  14292. /* Set the DMA transfer complete callback */
  14293. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  14294. 80066f4: 68fb ldr r3, [r7, #12]
  14295. 80066f6: 6cdb ldr r3, [r3, #76] @ 0x4c
  14296. 80066f8: 4a28 ldr r2, [pc, #160] @ (800679c <HAL_ADC_Start_DMA+0x17c>)
  14297. 80066fa: 63da str r2, [r3, #60] @ 0x3c
  14298. /* Set the DMA half transfer complete callback */
  14299. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  14300. 80066fc: 68fb ldr r3, [r7, #12]
  14301. 80066fe: 6cdb ldr r3, [r3, #76] @ 0x4c
  14302. 8006700: 4a27 ldr r2, [pc, #156] @ (80067a0 <HAL_ADC_Start_DMA+0x180>)
  14303. 8006702: 641a str r2, [r3, #64] @ 0x40
  14304. /* Set the DMA error callback */
  14305. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  14306. 8006704: 68fb ldr r3, [r7, #12]
  14307. 8006706: 6cdb ldr r3, [r3, #76] @ 0x4c
  14308. 8006708: 4a26 ldr r2, [pc, #152] @ (80067a4 <HAL_ADC_Start_DMA+0x184>)
  14309. 800670a: 64da str r2, [r3, #76] @ 0x4c
  14310. /* ADC start (in case of SW start): */
  14311. /* Clear regular group conversion flag and overrun flag */
  14312. /* (To ensure of no unknown state from potential previous ADC */
  14313. /* operations) */
  14314. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  14315. 800670c: 68fb ldr r3, [r7, #12]
  14316. 800670e: 681b ldr r3, [r3, #0]
  14317. 8006710: 221c movs r2, #28
  14318. 8006712: 601a str r2, [r3, #0]
  14319. /* Process unlocked */
  14320. /* Unlock before starting ADC conversions: in case of potential */
  14321. /* interruption, to let the process to ADC IRQ Handler. */
  14322. __HAL_UNLOCK(hadc);
  14323. 8006714: 68fb ldr r3, [r7, #12]
  14324. 8006716: 2200 movs r2, #0
  14325. 8006718: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14326. /* With DMA, overrun event is always considered as an error even if
  14327. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  14328. ADC_IT_OVR is enabled. */
  14329. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  14330. 800671c: 68fb ldr r3, [r7, #12]
  14331. 800671e: 681b ldr r3, [r3, #0]
  14332. 8006720: 685a ldr r2, [r3, #4]
  14333. 8006722: 68fb ldr r3, [r7, #12]
  14334. 8006724: 681b ldr r3, [r3, #0]
  14335. 8006726: f042 0210 orr.w r2, r2, #16
  14336. 800672a: 605a str r2, [r3, #4]
  14337. {
  14338. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  14339. }
  14340. #else
  14341. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  14342. 800672c: 68fb ldr r3, [r7, #12]
  14343. 800672e: 681a ldr r2, [r3, #0]
  14344. 8006730: 68fb ldr r3, [r7, #12]
  14345. 8006732: 6adb ldr r3, [r3, #44] @ 0x2c
  14346. 8006734: 4619 mov r1, r3
  14347. 8006736: 4610 mov r0, r2
  14348. 8006738: f7ff fc89 bl 800604e <LL_ADC_REG_SetDataTransferMode>
  14349. #endif
  14350. /* Start the DMA channel */
  14351. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  14352. 800673c: 68fb ldr r3, [r7, #12]
  14353. 800673e: 6cd8 ldr r0, [r3, #76] @ 0x4c
  14354. 8006740: 68fb ldr r3, [r7, #12]
  14355. 8006742: 681b ldr r3, [r3, #0]
  14356. 8006744: 3340 adds r3, #64 @ 0x40
  14357. 8006746: 4619 mov r1, r3
  14358. 8006748: 68ba ldr r2, [r7, #8]
  14359. 800674a: 687b ldr r3, [r7, #4]
  14360. 800674c: f002 fa5e bl 8008c0c <HAL_DMA_Start_IT>
  14361. 8006750: 4603 mov r3, r0
  14362. 8006752: 75fb strb r3, [r7, #23]
  14363. /* Enable conversion of regular group. */
  14364. /* If software start has been selected, conversion starts immediately. */
  14365. /* If external trigger has been selected, conversion will start at next */
  14366. /* trigger event. */
  14367. /* Start ADC group regular conversion */
  14368. LL_ADC_REG_StartConversion(hadc->Instance);
  14369. 8006754: 68fb ldr r3, [r7, #12]
  14370. 8006756: 681b ldr r3, [r3, #0]
  14371. 8006758: 4618 mov r0, r3
  14372. 800675a: f7ff fd85 bl 8006268 <LL_ADC_REG_StartConversion>
  14373. if (tmp_hal_status == HAL_OK)
  14374. 800675e: e00d b.n 800677c <HAL_ADC_Start_DMA+0x15c>
  14375. }
  14376. else
  14377. {
  14378. /* Process unlocked */
  14379. __HAL_UNLOCK(hadc);
  14380. 8006760: 68fb ldr r3, [r7, #12]
  14381. 8006762: 2200 movs r2, #0
  14382. 8006764: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14383. if (tmp_hal_status == HAL_OK)
  14384. 8006768: e008 b.n 800677c <HAL_ADC_Start_DMA+0x15c>
  14385. }
  14386. }
  14387. else
  14388. {
  14389. tmp_hal_status = HAL_ERROR;
  14390. 800676a: 2301 movs r3, #1
  14391. 800676c: 75fb strb r3, [r7, #23]
  14392. /* Process unlocked */
  14393. __HAL_UNLOCK(hadc);
  14394. 800676e: 68fb ldr r3, [r7, #12]
  14395. 8006770: 2200 movs r2, #0
  14396. 8006772: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14397. 8006776: e001 b.n 800677c <HAL_ADC_Start_DMA+0x15c>
  14398. }
  14399. }
  14400. else
  14401. {
  14402. tmp_hal_status = HAL_BUSY;
  14403. 8006778: 2302 movs r3, #2
  14404. 800677a: 75fb strb r3, [r7, #23]
  14405. }
  14406. /* Return function status */
  14407. return tmp_hal_status;
  14408. 800677c: 7dfb ldrb r3, [r7, #23]
  14409. }
  14410. 800677e: 4618 mov r0, r3
  14411. 8006780: 3718 adds r7, #24
  14412. 8006782: 46bd mov sp, r7
  14413. 8006784: bd80 pop {r7, pc}
  14414. 8006786: bf00 nop
  14415. 8006788: 40022000 .word 0x40022000
  14416. 800678c: 40022100 .word 0x40022100
  14417. 8006790: 40022300 .word 0x40022300
  14418. 8006794: 58026300 .word 0x58026300
  14419. 8006798: fffff0fe .word 0xfffff0fe
  14420. 800679c: 0800705b .word 0x0800705b
  14421. 80067a0: 08007133 .word 0x08007133
  14422. 80067a4: 0800714f .word 0x0800714f
  14423. 080067a8 <HAL_ADC_ConvHalfCpltCallback>:
  14424. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  14425. * @param hadc ADC handle
  14426. * @retval None
  14427. */
  14428. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  14429. {
  14430. 80067a8: b480 push {r7}
  14431. 80067aa: b083 sub sp, #12
  14432. 80067ac: af00 add r7, sp, #0
  14433. 80067ae: 6078 str r0, [r7, #4]
  14434. UNUSED(hadc);
  14435. /* NOTE : This function should not be modified. When the callback is needed,
  14436. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  14437. */
  14438. }
  14439. 80067b0: bf00 nop
  14440. 80067b2: 370c adds r7, #12
  14441. 80067b4: 46bd mov sp, r7
  14442. 80067b6: f85d 7b04 ldr.w r7, [sp], #4
  14443. 80067ba: 4770 bx lr
  14444. 080067bc <HAL_ADC_ErrorCallback>:
  14445. * (this function is also clearing overrun flag)
  14446. * @param hadc ADC handle
  14447. * @retval None
  14448. */
  14449. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  14450. {
  14451. 80067bc: b480 push {r7}
  14452. 80067be: b083 sub sp, #12
  14453. 80067c0: af00 add r7, sp, #0
  14454. 80067c2: 6078 str r0, [r7, #4]
  14455. UNUSED(hadc);
  14456. /* NOTE : This function should not be modified. When the callback is needed,
  14457. function HAL_ADC_ErrorCallback must be implemented in the user file.
  14458. */
  14459. }
  14460. 80067c4: bf00 nop
  14461. 80067c6: 370c adds r7, #12
  14462. 80067c8: 46bd mov sp, r7
  14463. 80067ca: f85d 7b04 ldr.w r7, [sp], #4
  14464. 80067ce: 4770 bx lr
  14465. 080067d0 <HAL_ADC_ConfigChannel>:
  14466. * @param hadc ADC handle
  14467. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  14468. * @retval HAL status
  14469. */
  14470. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  14471. {
  14472. 80067d0: b590 push {r4, r7, lr}
  14473. 80067d2: b0a1 sub sp, #132 @ 0x84
  14474. 80067d4: af00 add r7, sp, #0
  14475. 80067d6: 6078 str r0, [r7, #4]
  14476. 80067d8: 6039 str r1, [r7, #0]
  14477. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  14478. 80067da: 2300 movs r3, #0
  14479. 80067dc: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14480. uint32_t tmpOffsetShifted;
  14481. uint32_t tmp_config_internal_channel;
  14482. __IO uint32_t wait_loop_index = 0;
  14483. 80067e0: 2300 movs r3, #0
  14484. 80067e2: 60bb str r3, [r7, #8]
  14485. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  14486. ignored (considered as reset) */
  14487. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  14488. /* Verification of channel number */
  14489. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  14490. 80067e4: 683b ldr r3, [r7, #0]
  14491. 80067e6: 68db ldr r3, [r3, #12]
  14492. 80067e8: 4a65 ldr r2, [pc, #404] @ (8006980 <HAL_ADC_ConfigChannel+0x1b0>)
  14493. 80067ea: 4293 cmp r3, r2
  14494. }
  14495. #endif
  14496. }
  14497. /* Process locked */
  14498. __HAL_LOCK(hadc);
  14499. 80067ec: 687b ldr r3, [r7, #4]
  14500. 80067ee: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14501. 80067f2: 2b01 cmp r3, #1
  14502. 80067f4: d101 bne.n 80067fa <HAL_ADC_ConfigChannel+0x2a>
  14503. 80067f6: 2302 movs r3, #2
  14504. 80067f8: e32e b.n 8006e58 <HAL_ADC_ConfigChannel+0x688>
  14505. 80067fa: 687b ldr r3, [r7, #4]
  14506. 80067fc: 2201 movs r2, #1
  14507. 80067fe: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14508. /* Parameters update conditioned to ADC state: */
  14509. /* Parameters that can be updated when ADC is disabled or enabled without */
  14510. /* conversion on going on regular group: */
  14511. /* - Channel number */
  14512. /* - Channel rank */
  14513. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14514. 8006802: 687b ldr r3, [r7, #4]
  14515. 8006804: 681b ldr r3, [r3, #0]
  14516. 8006806: 4618 mov r0, r3
  14517. 8006808: f7ff fd42 bl 8006290 <LL_ADC_REG_IsConversionOngoing>
  14518. 800680c: 4603 mov r3, r0
  14519. 800680e: 2b00 cmp r3, #0
  14520. 8006810: f040 8313 bne.w 8006e3a <HAL_ADC_ConfigChannel+0x66a>
  14521. {
  14522. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  14523. 8006814: 683b ldr r3, [r7, #0]
  14524. 8006816: 681b ldr r3, [r3, #0]
  14525. 8006818: 2b00 cmp r3, #0
  14526. 800681a: db2c blt.n 8006876 <HAL_ADC_ConfigChannel+0xa6>
  14527. /* ADC channels preselection */
  14528. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14529. }
  14530. #else
  14531. /* ADC channels preselection */
  14532. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14533. 800681c: 683b ldr r3, [r7, #0]
  14534. 800681e: 681b ldr r3, [r3, #0]
  14535. 8006820: f3c3 0313 ubfx r3, r3, #0, #20
  14536. 8006824: 2b00 cmp r3, #0
  14537. 8006826: d108 bne.n 800683a <HAL_ADC_ConfigChannel+0x6a>
  14538. 8006828: 683b ldr r3, [r7, #0]
  14539. 800682a: 681b ldr r3, [r3, #0]
  14540. 800682c: 0e9b lsrs r3, r3, #26
  14541. 800682e: f003 031f and.w r3, r3, #31
  14542. 8006832: 2201 movs r2, #1
  14543. 8006834: fa02 f303 lsl.w r3, r2, r3
  14544. 8006838: e016 b.n 8006868 <HAL_ADC_ConfigChannel+0x98>
  14545. 800683a: 683b ldr r3, [r7, #0]
  14546. 800683c: 681b ldr r3, [r3, #0]
  14547. 800683e: 667b str r3, [r7, #100] @ 0x64
  14548. uint32_t result;
  14549. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  14550. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  14551. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  14552. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14553. 8006840: 6e7b ldr r3, [r7, #100] @ 0x64
  14554. 8006842: fa93 f3a3 rbit r3, r3
  14555. 8006846: 663b str r3, [r7, #96] @ 0x60
  14556. result |= value & 1U;
  14557. s--;
  14558. }
  14559. result <<= s; /* shift when v's highest bits are zero */
  14560. #endif
  14561. return result;
  14562. 8006848: 6e3b ldr r3, [r7, #96] @ 0x60
  14563. 800684a: 66bb str r3, [r7, #104] @ 0x68
  14564. optimisations using the logic "value was passed to __builtin_clz, so it
  14565. is non-zero".
  14566. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  14567. single CLZ instruction.
  14568. */
  14569. if (value == 0U)
  14570. 800684c: 6ebb ldr r3, [r7, #104] @ 0x68
  14571. 800684e: 2b00 cmp r3, #0
  14572. 8006850: d101 bne.n 8006856 <HAL_ADC_ConfigChannel+0x86>
  14573. {
  14574. return 32U;
  14575. 8006852: 2320 movs r3, #32
  14576. 8006854: e003 b.n 800685e <HAL_ADC_ConfigChannel+0x8e>
  14577. }
  14578. return __builtin_clz(value);
  14579. 8006856: 6ebb ldr r3, [r7, #104] @ 0x68
  14580. 8006858: fab3 f383 clz r3, r3
  14581. 800685c: b2db uxtb r3, r3
  14582. 800685e: f003 031f and.w r3, r3, #31
  14583. 8006862: 2201 movs r2, #1
  14584. 8006864: fa02 f303 lsl.w r3, r2, r3
  14585. 8006868: 687a ldr r2, [r7, #4]
  14586. 800686a: 6812 ldr r2, [r2, #0]
  14587. 800686c: 69d1 ldr r1, [r2, #28]
  14588. 800686e: 687a ldr r2, [r7, #4]
  14589. 8006870: 6812 ldr r2, [r2, #0]
  14590. 8006872: 430b orrs r3, r1
  14591. 8006874: 61d3 str r3, [r2, #28]
  14592. #endif /* ADC_VER_V5_V90 */
  14593. }
  14594. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  14595. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  14596. 8006876: 687b ldr r3, [r7, #4]
  14597. 8006878: 6818 ldr r0, [r3, #0]
  14598. 800687a: 683b ldr r3, [r7, #0]
  14599. 800687c: 6859 ldr r1, [r3, #4]
  14600. 800687e: 683b ldr r3, [r7, #0]
  14601. 8006880: 681b ldr r3, [r3, #0]
  14602. 8006882: 461a mov r2, r3
  14603. 8006884: f7ff fbb7 bl 8005ff6 <LL_ADC_REG_SetSequencerRanks>
  14604. /* Parameters update conditioned to ADC state: */
  14605. /* Parameters that can be updated when ADC is disabled or enabled without */
  14606. /* conversion on going on regular group: */
  14607. /* - Channel sampling time */
  14608. /* - Channel offset */
  14609. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  14610. 8006888: 687b ldr r3, [r7, #4]
  14611. 800688a: 681b ldr r3, [r3, #0]
  14612. 800688c: 4618 mov r0, r3
  14613. 800688e: f7ff fcff bl 8006290 <LL_ADC_REG_IsConversionOngoing>
  14614. 8006892: 67b8 str r0, [r7, #120] @ 0x78
  14615. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  14616. 8006894: 687b ldr r3, [r7, #4]
  14617. 8006896: 681b ldr r3, [r3, #0]
  14618. 8006898: 4618 mov r0, r3
  14619. 800689a: f7ff fd0c bl 80062b6 <LL_ADC_INJ_IsConversionOngoing>
  14620. 800689e: 6778 str r0, [r7, #116] @ 0x74
  14621. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  14622. 80068a0: 6fbb ldr r3, [r7, #120] @ 0x78
  14623. 80068a2: 2b00 cmp r3, #0
  14624. 80068a4: f040 80b8 bne.w 8006a18 <HAL_ADC_ConfigChannel+0x248>
  14625. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  14626. 80068a8: 6f7b ldr r3, [r7, #116] @ 0x74
  14627. 80068aa: 2b00 cmp r3, #0
  14628. 80068ac: f040 80b4 bne.w 8006a18 <HAL_ADC_ConfigChannel+0x248>
  14629. )
  14630. {
  14631. /* Set sampling time of the selected ADC channel */
  14632. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  14633. 80068b0: 687b ldr r3, [r7, #4]
  14634. 80068b2: 6818 ldr r0, [r3, #0]
  14635. 80068b4: 683b ldr r3, [r7, #0]
  14636. 80068b6: 6819 ldr r1, [r3, #0]
  14637. 80068b8: 683b ldr r3, [r7, #0]
  14638. 80068ba: 689b ldr r3, [r3, #8]
  14639. 80068bc: 461a mov r2, r3
  14640. 80068be: f7ff fbd9 bl 8006074 <LL_ADC_SetChannelSamplingTime>
  14641. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14642. }
  14643. else
  14644. #endif /* ADC_VER_V5_V90 */
  14645. {
  14646. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14647. 80068c2: 4b30 ldr r3, [pc, #192] @ (8006984 <HAL_ADC_ConfigChannel+0x1b4>)
  14648. 80068c4: 681b ldr r3, [r3, #0]
  14649. 80068c6: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  14650. 80068ca: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  14651. 80068ce: d10b bne.n 80068e8 <HAL_ADC_ConfigChannel+0x118>
  14652. 80068d0: 683b ldr r3, [r7, #0]
  14653. 80068d2: 695a ldr r2, [r3, #20]
  14654. 80068d4: 687b ldr r3, [r7, #4]
  14655. 80068d6: 681b ldr r3, [r3, #0]
  14656. 80068d8: 68db ldr r3, [r3, #12]
  14657. 80068da: 089b lsrs r3, r3, #2
  14658. 80068dc: f003 0307 and.w r3, r3, #7
  14659. 80068e0: 005b lsls r3, r3, #1
  14660. 80068e2: fa02 f303 lsl.w r3, r2, r3
  14661. 80068e6: e01d b.n 8006924 <HAL_ADC_ConfigChannel+0x154>
  14662. 80068e8: 687b ldr r3, [r7, #4]
  14663. 80068ea: 681b ldr r3, [r3, #0]
  14664. 80068ec: 68db ldr r3, [r3, #12]
  14665. 80068ee: f003 0310 and.w r3, r3, #16
  14666. 80068f2: 2b00 cmp r3, #0
  14667. 80068f4: d10b bne.n 800690e <HAL_ADC_ConfigChannel+0x13e>
  14668. 80068f6: 683b ldr r3, [r7, #0]
  14669. 80068f8: 695a ldr r2, [r3, #20]
  14670. 80068fa: 687b ldr r3, [r7, #4]
  14671. 80068fc: 681b ldr r3, [r3, #0]
  14672. 80068fe: 68db ldr r3, [r3, #12]
  14673. 8006900: 089b lsrs r3, r3, #2
  14674. 8006902: f003 0307 and.w r3, r3, #7
  14675. 8006906: 005b lsls r3, r3, #1
  14676. 8006908: fa02 f303 lsl.w r3, r2, r3
  14677. 800690c: e00a b.n 8006924 <HAL_ADC_ConfigChannel+0x154>
  14678. 800690e: 683b ldr r3, [r7, #0]
  14679. 8006910: 695a ldr r2, [r3, #20]
  14680. 8006912: 687b ldr r3, [r7, #4]
  14681. 8006914: 681b ldr r3, [r3, #0]
  14682. 8006916: 68db ldr r3, [r3, #12]
  14683. 8006918: 089b lsrs r3, r3, #2
  14684. 800691a: f003 0304 and.w r3, r3, #4
  14685. 800691e: 005b lsls r3, r3, #1
  14686. 8006920: fa02 f303 lsl.w r3, r2, r3
  14687. 8006924: 673b str r3, [r7, #112] @ 0x70
  14688. }
  14689. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  14690. 8006926: 683b ldr r3, [r7, #0]
  14691. 8006928: 691b ldr r3, [r3, #16]
  14692. 800692a: 2b04 cmp r3, #4
  14693. 800692c: d02c beq.n 8006988 <HAL_ADC_ConfigChannel+0x1b8>
  14694. {
  14695. /* Set ADC selected offset number */
  14696. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  14697. 800692e: 687b ldr r3, [r7, #4]
  14698. 8006930: 6818 ldr r0, [r3, #0]
  14699. 8006932: 683b ldr r3, [r7, #0]
  14700. 8006934: 6919 ldr r1, [r3, #16]
  14701. 8006936: 683b ldr r3, [r7, #0]
  14702. 8006938: 681a ldr r2, [r3, #0]
  14703. 800693a: 6f3b ldr r3, [r7, #112] @ 0x70
  14704. 800693c: f7ff faf4 bl 8005f28 <LL_ADC_SetOffset>
  14705. else
  14706. #endif /* ADC_VER_V5_V90 */
  14707. {
  14708. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  14709. /* Set ADC selected offset signed saturation */
  14710. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  14711. 8006940: 687b ldr r3, [r7, #4]
  14712. 8006942: 6818 ldr r0, [r3, #0]
  14713. 8006944: 683b ldr r3, [r7, #0]
  14714. 8006946: 6919 ldr r1, [r3, #16]
  14715. 8006948: 683b ldr r3, [r7, #0]
  14716. 800694a: 7e5b ldrb r3, [r3, #25]
  14717. 800694c: 2b01 cmp r3, #1
  14718. 800694e: d102 bne.n 8006956 <HAL_ADC_ConfigChannel+0x186>
  14719. 8006950: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  14720. 8006954: e000 b.n 8006958 <HAL_ADC_ConfigChannel+0x188>
  14721. 8006956: 2300 movs r3, #0
  14722. 8006958: 461a mov r2, r3
  14723. 800695a: f7ff fb1e bl 8005f9a <LL_ADC_SetOffsetSignedSaturation>
  14724. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  14725. /* Set ADC selected offset right shift */
  14726. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  14727. 800695e: 687b ldr r3, [r7, #4]
  14728. 8006960: 6818 ldr r0, [r3, #0]
  14729. 8006962: 683b ldr r3, [r7, #0]
  14730. 8006964: 6919 ldr r1, [r3, #16]
  14731. 8006966: 683b ldr r3, [r7, #0]
  14732. 8006968: 7e1b ldrb r3, [r3, #24]
  14733. 800696a: 2b01 cmp r3, #1
  14734. 800696c: d102 bne.n 8006974 <HAL_ADC_ConfigChannel+0x1a4>
  14735. 800696e: f44f 6300 mov.w r3, #2048 @ 0x800
  14736. 8006972: e000 b.n 8006976 <HAL_ADC_ConfigChannel+0x1a6>
  14737. 8006974: 2300 movs r3, #0
  14738. 8006976: 461a mov r2, r3
  14739. 8006978: f7ff faf6 bl 8005f68 <LL_ADC_SetDataRightShift>
  14740. 800697c: e04c b.n 8006a18 <HAL_ADC_ConfigChannel+0x248>
  14741. 800697e: bf00 nop
  14742. 8006980: 47ff0000 .word 0x47ff0000
  14743. 8006984: 5c001000 .word 0x5c001000
  14744. }
  14745. }
  14746. else
  14747. #endif /* ADC_VER_V5_V90 */
  14748. {
  14749. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14750. 8006988: 687b ldr r3, [r7, #4]
  14751. 800698a: 681b ldr r3, [r3, #0]
  14752. 800698c: 6e1b ldr r3, [r3, #96] @ 0x60
  14753. 800698e: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14754. 8006992: 683b ldr r3, [r7, #0]
  14755. 8006994: 681b ldr r3, [r3, #0]
  14756. 8006996: 069b lsls r3, r3, #26
  14757. 8006998: 429a cmp r2, r3
  14758. 800699a: d107 bne.n 80069ac <HAL_ADC_ConfigChannel+0x1dc>
  14759. {
  14760. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  14761. 800699c: 687b ldr r3, [r7, #4]
  14762. 800699e: 681b ldr r3, [r3, #0]
  14763. 80069a0: 6e1a ldr r2, [r3, #96] @ 0x60
  14764. 80069a2: 687b ldr r3, [r7, #4]
  14765. 80069a4: 681b ldr r3, [r3, #0]
  14766. 80069a6: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14767. 80069aa: 661a str r2, [r3, #96] @ 0x60
  14768. }
  14769. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14770. 80069ac: 687b ldr r3, [r7, #4]
  14771. 80069ae: 681b ldr r3, [r3, #0]
  14772. 80069b0: 6e5b ldr r3, [r3, #100] @ 0x64
  14773. 80069b2: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14774. 80069b6: 683b ldr r3, [r7, #0]
  14775. 80069b8: 681b ldr r3, [r3, #0]
  14776. 80069ba: 069b lsls r3, r3, #26
  14777. 80069bc: 429a cmp r2, r3
  14778. 80069be: d107 bne.n 80069d0 <HAL_ADC_ConfigChannel+0x200>
  14779. {
  14780. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  14781. 80069c0: 687b ldr r3, [r7, #4]
  14782. 80069c2: 681b ldr r3, [r3, #0]
  14783. 80069c4: 6e5a ldr r2, [r3, #100] @ 0x64
  14784. 80069c6: 687b ldr r3, [r7, #4]
  14785. 80069c8: 681b ldr r3, [r3, #0]
  14786. 80069ca: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14787. 80069ce: 665a str r2, [r3, #100] @ 0x64
  14788. }
  14789. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14790. 80069d0: 687b ldr r3, [r7, #4]
  14791. 80069d2: 681b ldr r3, [r3, #0]
  14792. 80069d4: 6e9b ldr r3, [r3, #104] @ 0x68
  14793. 80069d6: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14794. 80069da: 683b ldr r3, [r7, #0]
  14795. 80069dc: 681b ldr r3, [r3, #0]
  14796. 80069de: 069b lsls r3, r3, #26
  14797. 80069e0: 429a cmp r2, r3
  14798. 80069e2: d107 bne.n 80069f4 <HAL_ADC_ConfigChannel+0x224>
  14799. {
  14800. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  14801. 80069e4: 687b ldr r3, [r7, #4]
  14802. 80069e6: 681b ldr r3, [r3, #0]
  14803. 80069e8: 6e9a ldr r2, [r3, #104] @ 0x68
  14804. 80069ea: 687b ldr r3, [r7, #4]
  14805. 80069ec: 681b ldr r3, [r3, #0]
  14806. 80069ee: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14807. 80069f2: 669a str r2, [r3, #104] @ 0x68
  14808. }
  14809. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14810. 80069f4: 687b ldr r3, [r7, #4]
  14811. 80069f6: 681b ldr r3, [r3, #0]
  14812. 80069f8: 6edb ldr r3, [r3, #108] @ 0x6c
  14813. 80069fa: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14814. 80069fe: 683b ldr r3, [r7, #0]
  14815. 8006a00: 681b ldr r3, [r3, #0]
  14816. 8006a02: 069b lsls r3, r3, #26
  14817. 8006a04: 429a cmp r2, r3
  14818. 8006a06: d107 bne.n 8006a18 <HAL_ADC_ConfigChannel+0x248>
  14819. {
  14820. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  14821. 8006a08: 687b ldr r3, [r7, #4]
  14822. 8006a0a: 681b ldr r3, [r3, #0]
  14823. 8006a0c: 6eda ldr r2, [r3, #108] @ 0x6c
  14824. 8006a0e: 687b ldr r3, [r7, #4]
  14825. 8006a10: 681b ldr r3, [r3, #0]
  14826. 8006a12: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14827. 8006a16: 66da str r2, [r3, #108] @ 0x6c
  14828. /* Parameters update conditioned to ADC state: */
  14829. /* Parameters that can be updated only when ADC is disabled: */
  14830. /* - Single or differential mode */
  14831. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  14832. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14833. 8006a18: 687b ldr r3, [r7, #4]
  14834. 8006a1a: 681b ldr r3, [r3, #0]
  14835. 8006a1c: 4618 mov r0, r3
  14836. 8006a1e: f7ff fbfd bl 800621c <LL_ADC_IsEnabled>
  14837. 8006a22: 4603 mov r3, r0
  14838. 8006a24: 2b00 cmp r3, #0
  14839. 8006a26: f040 8211 bne.w 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  14840. {
  14841. /* Set mode single-ended or differential input of the selected ADC channel */
  14842. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  14843. 8006a2a: 687b ldr r3, [r7, #4]
  14844. 8006a2c: 6818 ldr r0, [r3, #0]
  14845. 8006a2e: 683b ldr r3, [r7, #0]
  14846. 8006a30: 6819 ldr r1, [r3, #0]
  14847. 8006a32: 683b ldr r3, [r7, #0]
  14848. 8006a34: 68db ldr r3, [r3, #12]
  14849. 8006a36: 461a mov r2, r3
  14850. 8006a38: f7ff fb48 bl 80060cc <LL_ADC_SetChannelSingleDiff>
  14851. /* Configuration of differential mode */
  14852. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  14853. 8006a3c: 683b ldr r3, [r7, #0]
  14854. 8006a3e: 68db ldr r3, [r3, #12]
  14855. 8006a40: 4aa1 ldr r2, [pc, #644] @ (8006cc8 <HAL_ADC_ConfigChannel+0x4f8>)
  14856. 8006a42: 4293 cmp r3, r2
  14857. 8006a44: f040 812e bne.w 8006ca4 <HAL_ADC_ConfigChannel+0x4d4>
  14858. {
  14859. /* Set sampling time of the selected ADC channel */
  14860. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  14861. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14862. 8006a48: 687b ldr r3, [r7, #4]
  14863. 8006a4a: 6818 ldr r0, [r3, #0]
  14864. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14865. 8006a4c: 683b ldr r3, [r7, #0]
  14866. 8006a4e: 681b ldr r3, [r3, #0]
  14867. 8006a50: f3c3 0313 ubfx r3, r3, #0, #20
  14868. 8006a54: 2b00 cmp r3, #0
  14869. 8006a56: d10b bne.n 8006a70 <HAL_ADC_ConfigChannel+0x2a0>
  14870. 8006a58: 683b ldr r3, [r7, #0]
  14871. 8006a5a: 681b ldr r3, [r3, #0]
  14872. 8006a5c: 0e9b lsrs r3, r3, #26
  14873. 8006a5e: 3301 adds r3, #1
  14874. 8006a60: f003 031f and.w r3, r3, #31
  14875. 8006a64: 2b09 cmp r3, #9
  14876. 8006a66: bf94 ite ls
  14877. 8006a68: 2301 movls r3, #1
  14878. 8006a6a: 2300 movhi r3, #0
  14879. 8006a6c: b2db uxtb r3, r3
  14880. 8006a6e: e019 b.n 8006aa4 <HAL_ADC_ConfigChannel+0x2d4>
  14881. 8006a70: 683b ldr r3, [r7, #0]
  14882. 8006a72: 681b ldr r3, [r3, #0]
  14883. 8006a74: 65bb str r3, [r7, #88] @ 0x58
  14884. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14885. 8006a76: 6dbb ldr r3, [r7, #88] @ 0x58
  14886. 8006a78: fa93 f3a3 rbit r3, r3
  14887. 8006a7c: 657b str r3, [r7, #84] @ 0x54
  14888. return result;
  14889. 8006a7e: 6d7b ldr r3, [r7, #84] @ 0x54
  14890. 8006a80: 65fb str r3, [r7, #92] @ 0x5c
  14891. if (value == 0U)
  14892. 8006a82: 6dfb ldr r3, [r7, #92] @ 0x5c
  14893. 8006a84: 2b00 cmp r3, #0
  14894. 8006a86: d101 bne.n 8006a8c <HAL_ADC_ConfigChannel+0x2bc>
  14895. return 32U;
  14896. 8006a88: 2320 movs r3, #32
  14897. 8006a8a: e003 b.n 8006a94 <HAL_ADC_ConfigChannel+0x2c4>
  14898. return __builtin_clz(value);
  14899. 8006a8c: 6dfb ldr r3, [r7, #92] @ 0x5c
  14900. 8006a8e: fab3 f383 clz r3, r3
  14901. 8006a92: b2db uxtb r3, r3
  14902. 8006a94: 3301 adds r3, #1
  14903. 8006a96: f003 031f and.w r3, r3, #31
  14904. 8006a9a: 2b09 cmp r3, #9
  14905. 8006a9c: bf94 ite ls
  14906. 8006a9e: 2301 movls r3, #1
  14907. 8006aa0: 2300 movhi r3, #0
  14908. 8006aa2: b2db uxtb r3, r3
  14909. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14910. 8006aa4: 2b00 cmp r3, #0
  14911. 8006aa6: d079 beq.n 8006b9c <HAL_ADC_ConfigChannel+0x3cc>
  14912. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14913. 8006aa8: 683b ldr r3, [r7, #0]
  14914. 8006aaa: 681b ldr r3, [r3, #0]
  14915. 8006aac: f3c3 0313 ubfx r3, r3, #0, #20
  14916. 8006ab0: 2b00 cmp r3, #0
  14917. 8006ab2: d107 bne.n 8006ac4 <HAL_ADC_ConfigChannel+0x2f4>
  14918. 8006ab4: 683b ldr r3, [r7, #0]
  14919. 8006ab6: 681b ldr r3, [r3, #0]
  14920. 8006ab8: 0e9b lsrs r3, r3, #26
  14921. 8006aba: 3301 adds r3, #1
  14922. 8006abc: 069b lsls r3, r3, #26
  14923. 8006abe: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14924. 8006ac2: e015 b.n 8006af0 <HAL_ADC_ConfigChannel+0x320>
  14925. 8006ac4: 683b ldr r3, [r7, #0]
  14926. 8006ac6: 681b ldr r3, [r3, #0]
  14927. 8006ac8: 64fb str r3, [r7, #76] @ 0x4c
  14928. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14929. 8006aca: 6cfb ldr r3, [r7, #76] @ 0x4c
  14930. 8006acc: fa93 f3a3 rbit r3, r3
  14931. 8006ad0: 64bb str r3, [r7, #72] @ 0x48
  14932. return result;
  14933. 8006ad2: 6cbb ldr r3, [r7, #72] @ 0x48
  14934. 8006ad4: 653b str r3, [r7, #80] @ 0x50
  14935. if (value == 0U)
  14936. 8006ad6: 6d3b ldr r3, [r7, #80] @ 0x50
  14937. 8006ad8: 2b00 cmp r3, #0
  14938. 8006ada: d101 bne.n 8006ae0 <HAL_ADC_ConfigChannel+0x310>
  14939. return 32U;
  14940. 8006adc: 2320 movs r3, #32
  14941. 8006ade: e003 b.n 8006ae8 <HAL_ADC_ConfigChannel+0x318>
  14942. return __builtin_clz(value);
  14943. 8006ae0: 6d3b ldr r3, [r7, #80] @ 0x50
  14944. 8006ae2: fab3 f383 clz r3, r3
  14945. 8006ae6: b2db uxtb r3, r3
  14946. 8006ae8: 3301 adds r3, #1
  14947. 8006aea: 069b lsls r3, r3, #26
  14948. 8006aec: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14949. 8006af0: 683b ldr r3, [r7, #0]
  14950. 8006af2: 681b ldr r3, [r3, #0]
  14951. 8006af4: f3c3 0313 ubfx r3, r3, #0, #20
  14952. 8006af8: 2b00 cmp r3, #0
  14953. 8006afa: d109 bne.n 8006b10 <HAL_ADC_ConfigChannel+0x340>
  14954. 8006afc: 683b ldr r3, [r7, #0]
  14955. 8006afe: 681b ldr r3, [r3, #0]
  14956. 8006b00: 0e9b lsrs r3, r3, #26
  14957. 8006b02: 3301 adds r3, #1
  14958. 8006b04: f003 031f and.w r3, r3, #31
  14959. 8006b08: 2101 movs r1, #1
  14960. 8006b0a: fa01 f303 lsl.w r3, r1, r3
  14961. 8006b0e: e017 b.n 8006b40 <HAL_ADC_ConfigChannel+0x370>
  14962. 8006b10: 683b ldr r3, [r7, #0]
  14963. 8006b12: 681b ldr r3, [r3, #0]
  14964. 8006b14: 643b str r3, [r7, #64] @ 0x40
  14965. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14966. 8006b16: 6c3b ldr r3, [r7, #64] @ 0x40
  14967. 8006b18: fa93 f3a3 rbit r3, r3
  14968. 8006b1c: 63fb str r3, [r7, #60] @ 0x3c
  14969. return result;
  14970. 8006b1e: 6bfb ldr r3, [r7, #60] @ 0x3c
  14971. 8006b20: 647b str r3, [r7, #68] @ 0x44
  14972. if (value == 0U)
  14973. 8006b22: 6c7b ldr r3, [r7, #68] @ 0x44
  14974. 8006b24: 2b00 cmp r3, #0
  14975. 8006b26: d101 bne.n 8006b2c <HAL_ADC_ConfigChannel+0x35c>
  14976. return 32U;
  14977. 8006b28: 2320 movs r3, #32
  14978. 8006b2a: e003 b.n 8006b34 <HAL_ADC_ConfigChannel+0x364>
  14979. return __builtin_clz(value);
  14980. 8006b2c: 6c7b ldr r3, [r7, #68] @ 0x44
  14981. 8006b2e: fab3 f383 clz r3, r3
  14982. 8006b32: b2db uxtb r3, r3
  14983. 8006b34: 3301 adds r3, #1
  14984. 8006b36: f003 031f and.w r3, r3, #31
  14985. 8006b3a: 2101 movs r1, #1
  14986. 8006b3c: fa01 f303 lsl.w r3, r1, r3
  14987. 8006b40: ea42 0103 orr.w r1, r2, r3
  14988. 8006b44: 683b ldr r3, [r7, #0]
  14989. 8006b46: 681b ldr r3, [r3, #0]
  14990. 8006b48: f3c3 0313 ubfx r3, r3, #0, #20
  14991. 8006b4c: 2b00 cmp r3, #0
  14992. 8006b4e: d10a bne.n 8006b66 <HAL_ADC_ConfigChannel+0x396>
  14993. 8006b50: 683b ldr r3, [r7, #0]
  14994. 8006b52: 681b ldr r3, [r3, #0]
  14995. 8006b54: 0e9b lsrs r3, r3, #26
  14996. 8006b56: 3301 adds r3, #1
  14997. 8006b58: f003 021f and.w r2, r3, #31
  14998. 8006b5c: 4613 mov r3, r2
  14999. 8006b5e: 005b lsls r3, r3, #1
  15000. 8006b60: 4413 add r3, r2
  15001. 8006b62: 051b lsls r3, r3, #20
  15002. 8006b64: e018 b.n 8006b98 <HAL_ADC_ConfigChannel+0x3c8>
  15003. 8006b66: 683b ldr r3, [r7, #0]
  15004. 8006b68: 681b ldr r3, [r3, #0]
  15005. 8006b6a: 637b str r3, [r7, #52] @ 0x34
  15006. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15007. 8006b6c: 6b7b ldr r3, [r7, #52] @ 0x34
  15008. 8006b6e: fa93 f3a3 rbit r3, r3
  15009. 8006b72: 633b str r3, [r7, #48] @ 0x30
  15010. return result;
  15011. 8006b74: 6b3b ldr r3, [r7, #48] @ 0x30
  15012. 8006b76: 63bb str r3, [r7, #56] @ 0x38
  15013. if (value == 0U)
  15014. 8006b78: 6bbb ldr r3, [r7, #56] @ 0x38
  15015. 8006b7a: 2b00 cmp r3, #0
  15016. 8006b7c: d101 bne.n 8006b82 <HAL_ADC_ConfigChannel+0x3b2>
  15017. return 32U;
  15018. 8006b7e: 2320 movs r3, #32
  15019. 8006b80: e003 b.n 8006b8a <HAL_ADC_ConfigChannel+0x3ba>
  15020. return __builtin_clz(value);
  15021. 8006b82: 6bbb ldr r3, [r7, #56] @ 0x38
  15022. 8006b84: fab3 f383 clz r3, r3
  15023. 8006b88: b2db uxtb r3, r3
  15024. 8006b8a: 3301 adds r3, #1
  15025. 8006b8c: f003 021f and.w r2, r3, #31
  15026. 8006b90: 4613 mov r3, r2
  15027. 8006b92: 005b lsls r3, r3, #1
  15028. 8006b94: 4413 add r3, r2
  15029. 8006b96: 051b lsls r3, r3, #20
  15030. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15031. 8006b98: 430b orrs r3, r1
  15032. 8006b9a: e07e b.n 8006c9a <HAL_ADC_ConfigChannel+0x4ca>
  15033. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  15034. 8006b9c: 683b ldr r3, [r7, #0]
  15035. 8006b9e: 681b ldr r3, [r3, #0]
  15036. 8006ba0: f3c3 0313 ubfx r3, r3, #0, #20
  15037. 8006ba4: 2b00 cmp r3, #0
  15038. 8006ba6: d107 bne.n 8006bb8 <HAL_ADC_ConfigChannel+0x3e8>
  15039. 8006ba8: 683b ldr r3, [r7, #0]
  15040. 8006baa: 681b ldr r3, [r3, #0]
  15041. 8006bac: 0e9b lsrs r3, r3, #26
  15042. 8006bae: 3301 adds r3, #1
  15043. 8006bb0: 069b lsls r3, r3, #26
  15044. 8006bb2: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15045. 8006bb6: e015 b.n 8006be4 <HAL_ADC_ConfigChannel+0x414>
  15046. 8006bb8: 683b ldr r3, [r7, #0]
  15047. 8006bba: 681b ldr r3, [r3, #0]
  15048. 8006bbc: 62bb str r3, [r7, #40] @ 0x28
  15049. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15050. 8006bbe: 6abb ldr r3, [r7, #40] @ 0x28
  15051. 8006bc0: fa93 f3a3 rbit r3, r3
  15052. 8006bc4: 627b str r3, [r7, #36] @ 0x24
  15053. return result;
  15054. 8006bc6: 6a7b ldr r3, [r7, #36] @ 0x24
  15055. 8006bc8: 62fb str r3, [r7, #44] @ 0x2c
  15056. if (value == 0U)
  15057. 8006bca: 6afb ldr r3, [r7, #44] @ 0x2c
  15058. 8006bcc: 2b00 cmp r3, #0
  15059. 8006bce: d101 bne.n 8006bd4 <HAL_ADC_ConfigChannel+0x404>
  15060. return 32U;
  15061. 8006bd0: 2320 movs r3, #32
  15062. 8006bd2: e003 b.n 8006bdc <HAL_ADC_ConfigChannel+0x40c>
  15063. return __builtin_clz(value);
  15064. 8006bd4: 6afb ldr r3, [r7, #44] @ 0x2c
  15065. 8006bd6: fab3 f383 clz r3, r3
  15066. 8006bda: b2db uxtb r3, r3
  15067. 8006bdc: 3301 adds r3, #1
  15068. 8006bde: 069b lsls r3, r3, #26
  15069. 8006be0: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15070. 8006be4: 683b ldr r3, [r7, #0]
  15071. 8006be6: 681b ldr r3, [r3, #0]
  15072. 8006be8: f3c3 0313 ubfx r3, r3, #0, #20
  15073. 8006bec: 2b00 cmp r3, #0
  15074. 8006bee: d109 bne.n 8006c04 <HAL_ADC_ConfigChannel+0x434>
  15075. 8006bf0: 683b ldr r3, [r7, #0]
  15076. 8006bf2: 681b ldr r3, [r3, #0]
  15077. 8006bf4: 0e9b lsrs r3, r3, #26
  15078. 8006bf6: 3301 adds r3, #1
  15079. 8006bf8: f003 031f and.w r3, r3, #31
  15080. 8006bfc: 2101 movs r1, #1
  15081. 8006bfe: fa01 f303 lsl.w r3, r1, r3
  15082. 8006c02: e017 b.n 8006c34 <HAL_ADC_ConfigChannel+0x464>
  15083. 8006c04: 683b ldr r3, [r7, #0]
  15084. 8006c06: 681b ldr r3, [r3, #0]
  15085. 8006c08: 61fb str r3, [r7, #28]
  15086. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15087. 8006c0a: 69fb ldr r3, [r7, #28]
  15088. 8006c0c: fa93 f3a3 rbit r3, r3
  15089. 8006c10: 61bb str r3, [r7, #24]
  15090. return result;
  15091. 8006c12: 69bb ldr r3, [r7, #24]
  15092. 8006c14: 623b str r3, [r7, #32]
  15093. if (value == 0U)
  15094. 8006c16: 6a3b ldr r3, [r7, #32]
  15095. 8006c18: 2b00 cmp r3, #0
  15096. 8006c1a: d101 bne.n 8006c20 <HAL_ADC_ConfigChannel+0x450>
  15097. return 32U;
  15098. 8006c1c: 2320 movs r3, #32
  15099. 8006c1e: e003 b.n 8006c28 <HAL_ADC_ConfigChannel+0x458>
  15100. return __builtin_clz(value);
  15101. 8006c20: 6a3b ldr r3, [r7, #32]
  15102. 8006c22: fab3 f383 clz r3, r3
  15103. 8006c26: b2db uxtb r3, r3
  15104. 8006c28: 3301 adds r3, #1
  15105. 8006c2a: f003 031f and.w r3, r3, #31
  15106. 8006c2e: 2101 movs r1, #1
  15107. 8006c30: fa01 f303 lsl.w r3, r1, r3
  15108. 8006c34: ea42 0103 orr.w r1, r2, r3
  15109. 8006c38: 683b ldr r3, [r7, #0]
  15110. 8006c3a: 681b ldr r3, [r3, #0]
  15111. 8006c3c: f3c3 0313 ubfx r3, r3, #0, #20
  15112. 8006c40: 2b00 cmp r3, #0
  15113. 8006c42: d10d bne.n 8006c60 <HAL_ADC_ConfigChannel+0x490>
  15114. 8006c44: 683b ldr r3, [r7, #0]
  15115. 8006c46: 681b ldr r3, [r3, #0]
  15116. 8006c48: 0e9b lsrs r3, r3, #26
  15117. 8006c4a: 3301 adds r3, #1
  15118. 8006c4c: f003 021f and.w r2, r3, #31
  15119. 8006c50: 4613 mov r3, r2
  15120. 8006c52: 005b lsls r3, r3, #1
  15121. 8006c54: 4413 add r3, r2
  15122. 8006c56: 3b1e subs r3, #30
  15123. 8006c58: 051b lsls r3, r3, #20
  15124. 8006c5a: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15125. 8006c5e: e01b b.n 8006c98 <HAL_ADC_ConfigChannel+0x4c8>
  15126. 8006c60: 683b ldr r3, [r7, #0]
  15127. 8006c62: 681b ldr r3, [r3, #0]
  15128. 8006c64: 613b str r3, [r7, #16]
  15129. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15130. 8006c66: 693b ldr r3, [r7, #16]
  15131. 8006c68: fa93 f3a3 rbit r3, r3
  15132. 8006c6c: 60fb str r3, [r7, #12]
  15133. return result;
  15134. 8006c6e: 68fb ldr r3, [r7, #12]
  15135. 8006c70: 617b str r3, [r7, #20]
  15136. if (value == 0U)
  15137. 8006c72: 697b ldr r3, [r7, #20]
  15138. 8006c74: 2b00 cmp r3, #0
  15139. 8006c76: d101 bne.n 8006c7c <HAL_ADC_ConfigChannel+0x4ac>
  15140. return 32U;
  15141. 8006c78: 2320 movs r3, #32
  15142. 8006c7a: e003 b.n 8006c84 <HAL_ADC_ConfigChannel+0x4b4>
  15143. return __builtin_clz(value);
  15144. 8006c7c: 697b ldr r3, [r7, #20]
  15145. 8006c7e: fab3 f383 clz r3, r3
  15146. 8006c82: b2db uxtb r3, r3
  15147. 8006c84: 3301 adds r3, #1
  15148. 8006c86: f003 021f and.w r2, r3, #31
  15149. 8006c8a: 4613 mov r3, r2
  15150. 8006c8c: 005b lsls r3, r3, #1
  15151. 8006c8e: 4413 add r3, r2
  15152. 8006c90: 3b1e subs r3, #30
  15153. 8006c92: 051b lsls r3, r3, #20
  15154. 8006c94: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15155. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15156. 8006c98: 430b orrs r3, r1
  15157. 8006c9a: 683a ldr r2, [r7, #0]
  15158. 8006c9c: 6892 ldr r2, [r2, #8]
  15159. 8006c9e: 4619 mov r1, r3
  15160. 8006ca0: f7ff f9e8 bl 8006074 <LL_ADC_SetChannelSamplingTime>
  15161. /* If internal channel selected, enable dedicated internal buffers and */
  15162. /* paths. */
  15163. /* Note: these internal measurement paths can be disabled using */
  15164. /* HAL_ADC_DeInit(). */
  15165. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  15166. 8006ca4: 683b ldr r3, [r7, #0]
  15167. 8006ca6: 681b ldr r3, [r3, #0]
  15168. 8006ca8: 2b00 cmp r3, #0
  15169. 8006caa: f280 80cf bge.w 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15170. {
  15171. /* Configuration of common ADC parameters */
  15172. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15173. 8006cae: 687b ldr r3, [r7, #4]
  15174. 8006cb0: 681b ldr r3, [r3, #0]
  15175. 8006cb2: 4a06 ldr r2, [pc, #24] @ (8006ccc <HAL_ADC_ConfigChannel+0x4fc>)
  15176. 8006cb4: 4293 cmp r3, r2
  15177. 8006cb6: d004 beq.n 8006cc2 <HAL_ADC_ConfigChannel+0x4f2>
  15178. 8006cb8: 687b ldr r3, [r7, #4]
  15179. 8006cba: 681b ldr r3, [r3, #0]
  15180. 8006cbc: 4a04 ldr r2, [pc, #16] @ (8006cd0 <HAL_ADC_ConfigChannel+0x500>)
  15181. 8006cbe: 4293 cmp r3, r2
  15182. 8006cc0: d10a bne.n 8006cd8 <HAL_ADC_ConfigChannel+0x508>
  15183. 8006cc2: 4b04 ldr r3, [pc, #16] @ (8006cd4 <HAL_ADC_ConfigChannel+0x504>)
  15184. 8006cc4: e009 b.n 8006cda <HAL_ADC_ConfigChannel+0x50a>
  15185. 8006cc6: bf00 nop
  15186. 8006cc8: 47ff0000 .word 0x47ff0000
  15187. 8006ccc: 40022000 .word 0x40022000
  15188. 8006cd0: 40022100 .word 0x40022100
  15189. 8006cd4: 40022300 .word 0x40022300
  15190. 8006cd8: 4b61 ldr r3, [pc, #388] @ (8006e60 <HAL_ADC_ConfigChannel+0x690>)
  15191. 8006cda: 4618 mov r0, r3
  15192. 8006cdc: f7ff f916 bl 8005f0c <LL_ADC_GetCommonPathInternalCh>
  15193. 8006ce0: 66f8 str r0, [r7, #108] @ 0x6c
  15194. /* Software is allowed to change common parameters only when all ADCs */
  15195. /* of the common group are disabled. */
  15196. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15197. 8006ce2: 687b ldr r3, [r7, #4]
  15198. 8006ce4: 681b ldr r3, [r3, #0]
  15199. 8006ce6: 4a5f ldr r2, [pc, #380] @ (8006e64 <HAL_ADC_ConfigChannel+0x694>)
  15200. 8006ce8: 4293 cmp r3, r2
  15201. 8006cea: d004 beq.n 8006cf6 <HAL_ADC_ConfigChannel+0x526>
  15202. 8006cec: 687b ldr r3, [r7, #4]
  15203. 8006cee: 681b ldr r3, [r3, #0]
  15204. 8006cf0: 4a5d ldr r2, [pc, #372] @ (8006e68 <HAL_ADC_ConfigChannel+0x698>)
  15205. 8006cf2: 4293 cmp r3, r2
  15206. 8006cf4: d10e bne.n 8006d14 <HAL_ADC_ConfigChannel+0x544>
  15207. 8006cf6: 485b ldr r0, [pc, #364] @ (8006e64 <HAL_ADC_ConfigChannel+0x694>)
  15208. 8006cf8: f7ff fa90 bl 800621c <LL_ADC_IsEnabled>
  15209. 8006cfc: 4604 mov r4, r0
  15210. 8006cfe: 485a ldr r0, [pc, #360] @ (8006e68 <HAL_ADC_ConfigChannel+0x698>)
  15211. 8006d00: f7ff fa8c bl 800621c <LL_ADC_IsEnabled>
  15212. 8006d04: 4603 mov r3, r0
  15213. 8006d06: 4323 orrs r3, r4
  15214. 8006d08: 2b00 cmp r3, #0
  15215. 8006d0a: bf0c ite eq
  15216. 8006d0c: 2301 moveq r3, #1
  15217. 8006d0e: 2300 movne r3, #0
  15218. 8006d10: b2db uxtb r3, r3
  15219. 8006d12: e008 b.n 8006d26 <HAL_ADC_ConfigChannel+0x556>
  15220. 8006d14: 4855 ldr r0, [pc, #340] @ (8006e6c <HAL_ADC_ConfigChannel+0x69c>)
  15221. 8006d16: f7ff fa81 bl 800621c <LL_ADC_IsEnabled>
  15222. 8006d1a: 4603 mov r3, r0
  15223. 8006d1c: 2b00 cmp r3, #0
  15224. 8006d1e: bf0c ite eq
  15225. 8006d20: 2301 moveq r3, #1
  15226. 8006d22: 2300 movne r3, #0
  15227. 8006d24: b2db uxtb r3, r3
  15228. 8006d26: 2b00 cmp r3, #0
  15229. 8006d28: d07d beq.n 8006e26 <HAL_ADC_ConfigChannel+0x656>
  15230. {
  15231. /* If the requested internal measurement path has already been enabled, */
  15232. /* bypass the configuration processing. */
  15233. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  15234. 8006d2a: 683b ldr r3, [r7, #0]
  15235. 8006d2c: 681b ldr r3, [r3, #0]
  15236. 8006d2e: 4a50 ldr r2, [pc, #320] @ (8006e70 <HAL_ADC_ConfigChannel+0x6a0>)
  15237. 8006d30: 4293 cmp r3, r2
  15238. 8006d32: d130 bne.n 8006d96 <HAL_ADC_ConfigChannel+0x5c6>
  15239. 8006d34: 6efb ldr r3, [r7, #108] @ 0x6c
  15240. 8006d36: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  15241. 8006d3a: 2b00 cmp r3, #0
  15242. 8006d3c: d12b bne.n 8006d96 <HAL_ADC_ConfigChannel+0x5c6>
  15243. {
  15244. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15245. 8006d3e: 687b ldr r3, [r7, #4]
  15246. 8006d40: 681b ldr r3, [r3, #0]
  15247. 8006d42: 4a4a ldr r2, [pc, #296] @ (8006e6c <HAL_ADC_ConfigChannel+0x69c>)
  15248. 8006d44: 4293 cmp r3, r2
  15249. 8006d46: f040 8081 bne.w 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15250. {
  15251. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  15252. 8006d4a: 687b ldr r3, [r7, #4]
  15253. 8006d4c: 681b ldr r3, [r3, #0]
  15254. 8006d4e: 4a45 ldr r2, [pc, #276] @ (8006e64 <HAL_ADC_ConfigChannel+0x694>)
  15255. 8006d50: 4293 cmp r3, r2
  15256. 8006d52: d004 beq.n 8006d5e <HAL_ADC_ConfigChannel+0x58e>
  15257. 8006d54: 687b ldr r3, [r7, #4]
  15258. 8006d56: 681b ldr r3, [r3, #0]
  15259. 8006d58: 4a43 ldr r2, [pc, #268] @ (8006e68 <HAL_ADC_ConfigChannel+0x698>)
  15260. 8006d5a: 4293 cmp r3, r2
  15261. 8006d5c: d101 bne.n 8006d62 <HAL_ADC_ConfigChannel+0x592>
  15262. 8006d5e: 4a45 ldr r2, [pc, #276] @ (8006e74 <HAL_ADC_ConfigChannel+0x6a4>)
  15263. 8006d60: e000 b.n 8006d64 <HAL_ADC_ConfigChannel+0x594>
  15264. 8006d62: 4a3f ldr r2, [pc, #252] @ (8006e60 <HAL_ADC_ConfigChannel+0x690>)
  15265. 8006d64: 6efb ldr r3, [r7, #108] @ 0x6c
  15266. 8006d66: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  15267. 8006d6a: 4619 mov r1, r3
  15268. 8006d6c: 4610 mov r0, r2
  15269. 8006d6e: f7ff f8ba bl 8005ee6 <LL_ADC_SetCommonPathInternalCh>
  15270. /* Delay for temperature sensor stabilization time */
  15271. /* Wait loop initialization and execution */
  15272. /* Note: Variable divided by 2 to compensate partially */
  15273. /* CPU processing cycles, scaling in us split to not */
  15274. /* exceed 32 bits register capacity and handle low frequency. */
  15275. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15276. 8006d72: 4b41 ldr r3, [pc, #260] @ (8006e78 <HAL_ADC_ConfigChannel+0x6a8>)
  15277. 8006d74: 681b ldr r3, [r3, #0]
  15278. 8006d76: 099b lsrs r3, r3, #6
  15279. 8006d78: 4a40 ldr r2, [pc, #256] @ (8006e7c <HAL_ADC_ConfigChannel+0x6ac>)
  15280. 8006d7a: fba2 2303 umull r2, r3, r2, r3
  15281. 8006d7e: 099b lsrs r3, r3, #6
  15282. 8006d80: 3301 adds r3, #1
  15283. 8006d82: 005b lsls r3, r3, #1
  15284. 8006d84: 60bb str r3, [r7, #8]
  15285. while (wait_loop_index != 0UL)
  15286. 8006d86: e002 b.n 8006d8e <HAL_ADC_ConfigChannel+0x5be>
  15287. {
  15288. wait_loop_index--;
  15289. 8006d88: 68bb ldr r3, [r7, #8]
  15290. 8006d8a: 3b01 subs r3, #1
  15291. 8006d8c: 60bb str r3, [r7, #8]
  15292. while (wait_loop_index != 0UL)
  15293. 8006d8e: 68bb ldr r3, [r7, #8]
  15294. 8006d90: 2b00 cmp r3, #0
  15295. 8006d92: d1f9 bne.n 8006d88 <HAL_ADC_ConfigChannel+0x5b8>
  15296. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15297. 8006d94: e05a b.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15298. }
  15299. }
  15300. }
  15301. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  15302. 8006d96: 683b ldr r3, [r7, #0]
  15303. 8006d98: 681b ldr r3, [r3, #0]
  15304. 8006d9a: 4a39 ldr r2, [pc, #228] @ (8006e80 <HAL_ADC_ConfigChannel+0x6b0>)
  15305. 8006d9c: 4293 cmp r3, r2
  15306. 8006d9e: d11e bne.n 8006dde <HAL_ADC_ConfigChannel+0x60e>
  15307. 8006da0: 6efb ldr r3, [r7, #108] @ 0x6c
  15308. 8006da2: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  15309. 8006da6: 2b00 cmp r3, #0
  15310. 8006da8: d119 bne.n 8006dde <HAL_ADC_ConfigChannel+0x60e>
  15311. {
  15312. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15313. 8006daa: 687b ldr r3, [r7, #4]
  15314. 8006dac: 681b ldr r3, [r3, #0]
  15315. 8006dae: 4a2f ldr r2, [pc, #188] @ (8006e6c <HAL_ADC_ConfigChannel+0x69c>)
  15316. 8006db0: 4293 cmp r3, r2
  15317. 8006db2: d14b bne.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15318. {
  15319. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  15320. 8006db4: 687b ldr r3, [r7, #4]
  15321. 8006db6: 681b ldr r3, [r3, #0]
  15322. 8006db8: 4a2a ldr r2, [pc, #168] @ (8006e64 <HAL_ADC_ConfigChannel+0x694>)
  15323. 8006dba: 4293 cmp r3, r2
  15324. 8006dbc: d004 beq.n 8006dc8 <HAL_ADC_ConfigChannel+0x5f8>
  15325. 8006dbe: 687b ldr r3, [r7, #4]
  15326. 8006dc0: 681b ldr r3, [r3, #0]
  15327. 8006dc2: 4a29 ldr r2, [pc, #164] @ (8006e68 <HAL_ADC_ConfigChannel+0x698>)
  15328. 8006dc4: 4293 cmp r3, r2
  15329. 8006dc6: d101 bne.n 8006dcc <HAL_ADC_ConfigChannel+0x5fc>
  15330. 8006dc8: 4a2a ldr r2, [pc, #168] @ (8006e74 <HAL_ADC_ConfigChannel+0x6a4>)
  15331. 8006dca: e000 b.n 8006dce <HAL_ADC_ConfigChannel+0x5fe>
  15332. 8006dcc: 4a24 ldr r2, [pc, #144] @ (8006e60 <HAL_ADC_ConfigChannel+0x690>)
  15333. 8006dce: 6efb ldr r3, [r7, #108] @ 0x6c
  15334. 8006dd0: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  15335. 8006dd4: 4619 mov r1, r3
  15336. 8006dd6: 4610 mov r0, r2
  15337. 8006dd8: f7ff f885 bl 8005ee6 <LL_ADC_SetCommonPathInternalCh>
  15338. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15339. 8006ddc: e036 b.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15340. }
  15341. }
  15342. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  15343. 8006dde: 683b ldr r3, [r7, #0]
  15344. 8006de0: 681b ldr r3, [r3, #0]
  15345. 8006de2: 4a28 ldr r2, [pc, #160] @ (8006e84 <HAL_ADC_ConfigChannel+0x6b4>)
  15346. 8006de4: 4293 cmp r3, r2
  15347. 8006de6: d131 bne.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15348. 8006de8: 6efb ldr r3, [r7, #108] @ 0x6c
  15349. 8006dea: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  15350. 8006dee: 2b00 cmp r3, #0
  15351. 8006df0: d12c bne.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15352. {
  15353. if (ADC_VREFINT_INSTANCE(hadc))
  15354. 8006df2: 687b ldr r3, [r7, #4]
  15355. 8006df4: 681b ldr r3, [r3, #0]
  15356. 8006df6: 4a1d ldr r2, [pc, #116] @ (8006e6c <HAL_ADC_ConfigChannel+0x69c>)
  15357. 8006df8: 4293 cmp r3, r2
  15358. 8006dfa: d127 bne.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15359. {
  15360. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  15361. 8006dfc: 687b ldr r3, [r7, #4]
  15362. 8006dfe: 681b ldr r3, [r3, #0]
  15363. 8006e00: 4a18 ldr r2, [pc, #96] @ (8006e64 <HAL_ADC_ConfigChannel+0x694>)
  15364. 8006e02: 4293 cmp r3, r2
  15365. 8006e04: d004 beq.n 8006e10 <HAL_ADC_ConfigChannel+0x640>
  15366. 8006e06: 687b ldr r3, [r7, #4]
  15367. 8006e08: 681b ldr r3, [r3, #0]
  15368. 8006e0a: 4a17 ldr r2, [pc, #92] @ (8006e68 <HAL_ADC_ConfigChannel+0x698>)
  15369. 8006e0c: 4293 cmp r3, r2
  15370. 8006e0e: d101 bne.n 8006e14 <HAL_ADC_ConfigChannel+0x644>
  15371. 8006e10: 4a18 ldr r2, [pc, #96] @ (8006e74 <HAL_ADC_ConfigChannel+0x6a4>)
  15372. 8006e12: e000 b.n 8006e16 <HAL_ADC_ConfigChannel+0x646>
  15373. 8006e14: 4a12 ldr r2, [pc, #72] @ (8006e60 <HAL_ADC_ConfigChannel+0x690>)
  15374. 8006e16: 6efb ldr r3, [r7, #108] @ 0x6c
  15375. 8006e18: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  15376. 8006e1c: 4619 mov r1, r3
  15377. 8006e1e: 4610 mov r0, r2
  15378. 8006e20: f7ff f861 bl 8005ee6 <LL_ADC_SetCommonPathInternalCh>
  15379. 8006e24: e012 b.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15380. /* enabled and other ADC of the common group are enabled, internal */
  15381. /* measurement paths cannot be enabled. */
  15382. else
  15383. {
  15384. /* Update ADC state machine to error */
  15385. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15386. 8006e26: 687b ldr r3, [r7, #4]
  15387. 8006e28: 6d5b ldr r3, [r3, #84] @ 0x54
  15388. 8006e2a: f043 0220 orr.w r2, r3, #32
  15389. 8006e2e: 687b ldr r3, [r7, #4]
  15390. 8006e30: 655a str r2, [r3, #84] @ 0x54
  15391. tmp_hal_status = HAL_ERROR;
  15392. 8006e32: 2301 movs r3, #1
  15393. 8006e34: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15394. 8006e38: e008 b.n 8006e4c <HAL_ADC_ConfigChannel+0x67c>
  15395. /* channel could be done on neither of the channel configuration structure */
  15396. /* parameters. */
  15397. else
  15398. {
  15399. /* Update ADC state machine to error */
  15400. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15401. 8006e3a: 687b ldr r3, [r7, #4]
  15402. 8006e3c: 6d5b ldr r3, [r3, #84] @ 0x54
  15403. 8006e3e: f043 0220 orr.w r2, r3, #32
  15404. 8006e42: 687b ldr r3, [r7, #4]
  15405. 8006e44: 655a str r2, [r3, #84] @ 0x54
  15406. tmp_hal_status = HAL_ERROR;
  15407. 8006e46: 2301 movs r3, #1
  15408. 8006e48: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15409. }
  15410. /* Process unlocked */
  15411. __HAL_UNLOCK(hadc);
  15412. 8006e4c: 687b ldr r3, [r7, #4]
  15413. 8006e4e: 2200 movs r2, #0
  15414. 8006e50: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15415. /* Return function status */
  15416. return tmp_hal_status;
  15417. 8006e54: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  15418. }
  15419. 8006e58: 4618 mov r0, r3
  15420. 8006e5a: 3784 adds r7, #132 @ 0x84
  15421. 8006e5c: 46bd mov sp, r7
  15422. 8006e5e: bd90 pop {r4, r7, pc}
  15423. 8006e60: 58026300 .word 0x58026300
  15424. 8006e64: 40022000 .word 0x40022000
  15425. 8006e68: 40022100 .word 0x40022100
  15426. 8006e6c: 58026000 .word 0x58026000
  15427. 8006e70: cb840000 .word 0xcb840000
  15428. 8006e74: 40022300 .word 0x40022300
  15429. 8006e78: 24000034 .word 0x24000034
  15430. 8006e7c: 053e2d63 .word 0x053e2d63
  15431. 8006e80: c7520000 .word 0xc7520000
  15432. 8006e84: cfb80000 .word 0xcfb80000
  15433. 08006e88 <ADC_Enable>:
  15434. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  15435. * @param hadc ADC handle
  15436. * @retval HAL status.
  15437. */
  15438. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  15439. {
  15440. 8006e88: b580 push {r7, lr}
  15441. 8006e8a: b084 sub sp, #16
  15442. 8006e8c: af00 add r7, sp, #0
  15443. 8006e8e: 6078 str r0, [r7, #4]
  15444. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  15445. /* enabling phase not yet completed: flag ADC ready not yet set). */
  15446. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  15447. /* causes: ADC clock not running, ...). */
  15448. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15449. 8006e90: 687b ldr r3, [r7, #4]
  15450. 8006e92: 681b ldr r3, [r3, #0]
  15451. 8006e94: 4618 mov r0, r3
  15452. 8006e96: f7ff f9c1 bl 800621c <LL_ADC_IsEnabled>
  15453. 8006e9a: 4603 mov r3, r0
  15454. 8006e9c: 2b00 cmp r3, #0
  15455. 8006e9e: d16e bne.n 8006f7e <ADC_Enable+0xf6>
  15456. {
  15457. /* Check if conditions to enable the ADC are fulfilled */
  15458. 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)
  15459. 8006ea0: 687b ldr r3, [r7, #4]
  15460. 8006ea2: 681b ldr r3, [r3, #0]
  15461. 8006ea4: 689a ldr r2, [r3, #8]
  15462. 8006ea6: 4b38 ldr r3, [pc, #224] @ (8006f88 <ADC_Enable+0x100>)
  15463. 8006ea8: 4013 ands r3, r2
  15464. 8006eaa: 2b00 cmp r3, #0
  15465. 8006eac: d00d beq.n 8006eca <ADC_Enable+0x42>
  15466. {
  15467. /* Update ADC state machine to error */
  15468. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15469. 8006eae: 687b ldr r3, [r7, #4]
  15470. 8006eb0: 6d5b ldr r3, [r3, #84] @ 0x54
  15471. 8006eb2: f043 0210 orr.w r2, r3, #16
  15472. 8006eb6: 687b ldr r3, [r7, #4]
  15473. 8006eb8: 655a str r2, [r3, #84] @ 0x54
  15474. /* Set ADC error code to ADC peripheral internal error */
  15475. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15476. 8006eba: 687b ldr r3, [r7, #4]
  15477. 8006ebc: 6d9b ldr r3, [r3, #88] @ 0x58
  15478. 8006ebe: f043 0201 orr.w r2, r3, #1
  15479. 8006ec2: 687b ldr r3, [r7, #4]
  15480. 8006ec4: 659a str r2, [r3, #88] @ 0x58
  15481. return HAL_ERROR;
  15482. 8006ec6: 2301 movs r3, #1
  15483. 8006ec8: e05a b.n 8006f80 <ADC_Enable+0xf8>
  15484. }
  15485. /* Enable the ADC peripheral */
  15486. LL_ADC_Enable(hadc->Instance);
  15487. 8006eca: 687b ldr r3, [r7, #4]
  15488. 8006ecc: 681b ldr r3, [r3, #0]
  15489. 8006ece: 4618 mov r0, r3
  15490. 8006ed0: f7ff f97c bl 80061cc <LL_ADC_Enable>
  15491. /* Wait for ADC effectively enabled */
  15492. tickstart = HAL_GetTick();
  15493. 8006ed4: f7fe ffa2 bl 8005e1c <HAL_GetTick>
  15494. 8006ed8: 60f8 str r0, [r7, #12]
  15495. /* Poll for ADC ready flag raised except case of multimode enabled
  15496. and ADC slave selected. */
  15497. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15498. 8006eda: 687b ldr r3, [r7, #4]
  15499. 8006edc: 681b ldr r3, [r3, #0]
  15500. 8006ede: 4a2b ldr r2, [pc, #172] @ (8006f8c <ADC_Enable+0x104>)
  15501. 8006ee0: 4293 cmp r3, r2
  15502. 8006ee2: d004 beq.n 8006eee <ADC_Enable+0x66>
  15503. 8006ee4: 687b ldr r3, [r7, #4]
  15504. 8006ee6: 681b ldr r3, [r3, #0]
  15505. 8006ee8: 4a29 ldr r2, [pc, #164] @ (8006f90 <ADC_Enable+0x108>)
  15506. 8006eea: 4293 cmp r3, r2
  15507. 8006eec: d101 bne.n 8006ef2 <ADC_Enable+0x6a>
  15508. 8006eee: 4b29 ldr r3, [pc, #164] @ (8006f94 <ADC_Enable+0x10c>)
  15509. 8006ef0: e000 b.n 8006ef4 <ADC_Enable+0x6c>
  15510. 8006ef2: 4b29 ldr r3, [pc, #164] @ (8006f98 <ADC_Enable+0x110>)
  15511. 8006ef4: 4618 mov r0, r3
  15512. 8006ef6: f7ff f90d bl 8006114 <LL_ADC_GetMultimode>
  15513. 8006efa: 60b8 str r0, [r7, #8]
  15514. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  15515. 8006efc: 687b ldr r3, [r7, #4]
  15516. 8006efe: 681b ldr r3, [r3, #0]
  15517. 8006f00: 4a23 ldr r2, [pc, #140] @ (8006f90 <ADC_Enable+0x108>)
  15518. 8006f02: 4293 cmp r3, r2
  15519. 8006f04: d002 beq.n 8006f0c <ADC_Enable+0x84>
  15520. 8006f06: 687b ldr r3, [r7, #4]
  15521. 8006f08: 681b ldr r3, [r3, #0]
  15522. 8006f0a: e000 b.n 8006f0e <ADC_Enable+0x86>
  15523. 8006f0c: 4b1f ldr r3, [pc, #124] @ (8006f8c <ADC_Enable+0x104>)
  15524. 8006f0e: 687a ldr r2, [r7, #4]
  15525. 8006f10: 6812 ldr r2, [r2, #0]
  15526. 8006f12: 4293 cmp r3, r2
  15527. 8006f14: d02c beq.n 8006f70 <ADC_Enable+0xe8>
  15528. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  15529. 8006f16: 68bb ldr r3, [r7, #8]
  15530. 8006f18: 2b00 cmp r3, #0
  15531. 8006f1a: d130 bne.n 8006f7e <ADC_Enable+0xf6>
  15532. )
  15533. {
  15534. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15535. 8006f1c: e028 b.n 8006f70 <ADC_Enable+0xe8>
  15536. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  15537. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  15538. 4 ADC clock cycle duration */
  15539. /* Note: Test of ADC enabled required due to hardware constraint to */
  15540. /* not enable ADC if already enabled. */
  15541. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15542. 8006f1e: 687b ldr r3, [r7, #4]
  15543. 8006f20: 681b ldr r3, [r3, #0]
  15544. 8006f22: 4618 mov r0, r3
  15545. 8006f24: f7ff f97a bl 800621c <LL_ADC_IsEnabled>
  15546. 8006f28: 4603 mov r3, r0
  15547. 8006f2a: 2b00 cmp r3, #0
  15548. 8006f2c: d104 bne.n 8006f38 <ADC_Enable+0xb0>
  15549. {
  15550. LL_ADC_Enable(hadc->Instance);
  15551. 8006f2e: 687b ldr r3, [r7, #4]
  15552. 8006f30: 681b ldr r3, [r3, #0]
  15553. 8006f32: 4618 mov r0, r3
  15554. 8006f34: f7ff f94a bl 80061cc <LL_ADC_Enable>
  15555. }
  15556. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  15557. 8006f38: f7fe ff70 bl 8005e1c <HAL_GetTick>
  15558. 8006f3c: 4602 mov r2, r0
  15559. 8006f3e: 68fb ldr r3, [r7, #12]
  15560. 8006f40: 1ad3 subs r3, r2, r3
  15561. 8006f42: 2b02 cmp r3, #2
  15562. 8006f44: d914 bls.n 8006f70 <ADC_Enable+0xe8>
  15563. {
  15564. /* New check to avoid false timeout detection in case of preemption */
  15565. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15566. 8006f46: 687b ldr r3, [r7, #4]
  15567. 8006f48: 681b ldr r3, [r3, #0]
  15568. 8006f4a: 681b ldr r3, [r3, #0]
  15569. 8006f4c: f003 0301 and.w r3, r3, #1
  15570. 8006f50: 2b01 cmp r3, #1
  15571. 8006f52: d00d beq.n 8006f70 <ADC_Enable+0xe8>
  15572. {
  15573. /* Update ADC state machine to error */
  15574. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15575. 8006f54: 687b ldr r3, [r7, #4]
  15576. 8006f56: 6d5b ldr r3, [r3, #84] @ 0x54
  15577. 8006f58: f043 0210 orr.w r2, r3, #16
  15578. 8006f5c: 687b ldr r3, [r7, #4]
  15579. 8006f5e: 655a str r2, [r3, #84] @ 0x54
  15580. /* Set ADC error code to ADC peripheral internal error */
  15581. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15582. 8006f60: 687b ldr r3, [r7, #4]
  15583. 8006f62: 6d9b ldr r3, [r3, #88] @ 0x58
  15584. 8006f64: f043 0201 orr.w r2, r3, #1
  15585. 8006f68: 687b ldr r3, [r7, #4]
  15586. 8006f6a: 659a str r2, [r3, #88] @ 0x58
  15587. return HAL_ERROR;
  15588. 8006f6c: 2301 movs r3, #1
  15589. 8006f6e: e007 b.n 8006f80 <ADC_Enable+0xf8>
  15590. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15591. 8006f70: 687b ldr r3, [r7, #4]
  15592. 8006f72: 681b ldr r3, [r3, #0]
  15593. 8006f74: 681b ldr r3, [r3, #0]
  15594. 8006f76: f003 0301 and.w r3, r3, #1
  15595. 8006f7a: 2b01 cmp r3, #1
  15596. 8006f7c: d1cf bne.n 8006f1e <ADC_Enable+0x96>
  15597. }
  15598. }
  15599. }
  15600. /* Return HAL status */
  15601. return HAL_OK;
  15602. 8006f7e: 2300 movs r3, #0
  15603. }
  15604. 8006f80: 4618 mov r0, r3
  15605. 8006f82: 3710 adds r7, #16
  15606. 8006f84: 46bd mov sp, r7
  15607. 8006f86: bd80 pop {r7, pc}
  15608. 8006f88: 8000003f .word 0x8000003f
  15609. 8006f8c: 40022000 .word 0x40022000
  15610. 8006f90: 40022100 .word 0x40022100
  15611. 8006f94: 40022300 .word 0x40022300
  15612. 8006f98: 58026300 .word 0x58026300
  15613. 08006f9c <ADC_Disable>:
  15614. * stopped.
  15615. * @param hadc ADC handle
  15616. * @retval HAL status.
  15617. */
  15618. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  15619. {
  15620. 8006f9c: b580 push {r7, lr}
  15621. 8006f9e: b084 sub sp, #16
  15622. 8006fa0: af00 add r7, sp, #0
  15623. 8006fa2: 6078 str r0, [r7, #4]
  15624. uint32_t tickstart;
  15625. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  15626. 8006fa4: 687b ldr r3, [r7, #4]
  15627. 8006fa6: 681b ldr r3, [r3, #0]
  15628. 8006fa8: 4618 mov r0, r3
  15629. 8006faa: f7ff f94a bl 8006242 <LL_ADC_IsDisableOngoing>
  15630. 8006fae: 60f8 str r0, [r7, #12]
  15631. /* Verification if ADC is not already disabled: */
  15632. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  15633. /* disabled. */
  15634. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  15635. 8006fb0: 687b ldr r3, [r7, #4]
  15636. 8006fb2: 681b ldr r3, [r3, #0]
  15637. 8006fb4: 4618 mov r0, r3
  15638. 8006fb6: f7ff f931 bl 800621c <LL_ADC_IsEnabled>
  15639. 8006fba: 4603 mov r3, r0
  15640. 8006fbc: 2b00 cmp r3, #0
  15641. 8006fbe: d047 beq.n 8007050 <ADC_Disable+0xb4>
  15642. && (tmp_adc_is_disable_on_going == 0UL)
  15643. 8006fc0: 68fb ldr r3, [r7, #12]
  15644. 8006fc2: 2b00 cmp r3, #0
  15645. 8006fc4: d144 bne.n 8007050 <ADC_Disable+0xb4>
  15646. )
  15647. {
  15648. /* Check if conditions to disable the ADC are fulfilled */
  15649. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  15650. 8006fc6: 687b ldr r3, [r7, #4]
  15651. 8006fc8: 681b ldr r3, [r3, #0]
  15652. 8006fca: 689b ldr r3, [r3, #8]
  15653. 8006fcc: f003 030d and.w r3, r3, #13
  15654. 8006fd0: 2b01 cmp r3, #1
  15655. 8006fd2: d10c bne.n 8006fee <ADC_Disable+0x52>
  15656. {
  15657. /* Disable the ADC peripheral */
  15658. LL_ADC_Disable(hadc->Instance);
  15659. 8006fd4: 687b ldr r3, [r7, #4]
  15660. 8006fd6: 681b ldr r3, [r3, #0]
  15661. 8006fd8: 4618 mov r0, r3
  15662. 8006fda: f7ff f90b bl 80061f4 <LL_ADC_Disable>
  15663. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  15664. 8006fde: 687b ldr r3, [r7, #4]
  15665. 8006fe0: 681b ldr r3, [r3, #0]
  15666. 8006fe2: 2203 movs r2, #3
  15667. 8006fe4: 601a str r2, [r3, #0]
  15668. return HAL_ERROR;
  15669. }
  15670. /* Wait for ADC effectively disabled */
  15671. /* Get tick count */
  15672. tickstart = HAL_GetTick();
  15673. 8006fe6: f7fe ff19 bl 8005e1c <HAL_GetTick>
  15674. 8006fea: 60b8 str r0, [r7, #8]
  15675. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15676. 8006fec: e029 b.n 8007042 <ADC_Disable+0xa6>
  15677. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15678. 8006fee: 687b ldr r3, [r7, #4]
  15679. 8006ff0: 6d5b ldr r3, [r3, #84] @ 0x54
  15680. 8006ff2: f043 0210 orr.w r2, r3, #16
  15681. 8006ff6: 687b ldr r3, [r7, #4]
  15682. 8006ff8: 655a str r2, [r3, #84] @ 0x54
  15683. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15684. 8006ffa: 687b ldr r3, [r7, #4]
  15685. 8006ffc: 6d9b ldr r3, [r3, #88] @ 0x58
  15686. 8006ffe: f043 0201 orr.w r2, r3, #1
  15687. 8007002: 687b ldr r3, [r7, #4]
  15688. 8007004: 659a str r2, [r3, #88] @ 0x58
  15689. return HAL_ERROR;
  15690. 8007006: 2301 movs r3, #1
  15691. 8007008: e023 b.n 8007052 <ADC_Disable+0xb6>
  15692. {
  15693. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  15694. 800700a: f7fe ff07 bl 8005e1c <HAL_GetTick>
  15695. 800700e: 4602 mov r2, r0
  15696. 8007010: 68bb ldr r3, [r7, #8]
  15697. 8007012: 1ad3 subs r3, r2, r3
  15698. 8007014: 2b02 cmp r3, #2
  15699. 8007016: d914 bls.n 8007042 <ADC_Disable+0xa6>
  15700. {
  15701. /* New check to avoid false timeout detection in case of preemption */
  15702. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15703. 8007018: 687b ldr r3, [r7, #4]
  15704. 800701a: 681b ldr r3, [r3, #0]
  15705. 800701c: 689b ldr r3, [r3, #8]
  15706. 800701e: f003 0301 and.w r3, r3, #1
  15707. 8007022: 2b00 cmp r3, #0
  15708. 8007024: d00d beq.n 8007042 <ADC_Disable+0xa6>
  15709. {
  15710. /* Update ADC state machine to error */
  15711. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15712. 8007026: 687b ldr r3, [r7, #4]
  15713. 8007028: 6d5b ldr r3, [r3, #84] @ 0x54
  15714. 800702a: f043 0210 orr.w r2, r3, #16
  15715. 800702e: 687b ldr r3, [r7, #4]
  15716. 8007030: 655a str r2, [r3, #84] @ 0x54
  15717. /* Set ADC error code to ADC peripheral internal error */
  15718. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15719. 8007032: 687b ldr r3, [r7, #4]
  15720. 8007034: 6d9b ldr r3, [r3, #88] @ 0x58
  15721. 8007036: f043 0201 orr.w r2, r3, #1
  15722. 800703a: 687b ldr r3, [r7, #4]
  15723. 800703c: 659a str r2, [r3, #88] @ 0x58
  15724. return HAL_ERROR;
  15725. 800703e: 2301 movs r3, #1
  15726. 8007040: e007 b.n 8007052 <ADC_Disable+0xb6>
  15727. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15728. 8007042: 687b ldr r3, [r7, #4]
  15729. 8007044: 681b ldr r3, [r3, #0]
  15730. 8007046: 689b ldr r3, [r3, #8]
  15731. 8007048: f003 0301 and.w r3, r3, #1
  15732. 800704c: 2b00 cmp r3, #0
  15733. 800704e: d1dc bne.n 800700a <ADC_Disable+0x6e>
  15734. }
  15735. }
  15736. }
  15737. /* Return HAL status */
  15738. return HAL_OK;
  15739. 8007050: 2300 movs r3, #0
  15740. }
  15741. 8007052: 4618 mov r0, r3
  15742. 8007054: 3710 adds r7, #16
  15743. 8007056: 46bd mov sp, r7
  15744. 8007058: bd80 pop {r7, pc}
  15745. 0800705a <ADC_DMAConvCplt>:
  15746. * @brief DMA transfer complete callback.
  15747. * @param hdma pointer to DMA handle.
  15748. * @retval None
  15749. */
  15750. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  15751. {
  15752. 800705a: b580 push {r7, lr}
  15753. 800705c: b084 sub sp, #16
  15754. 800705e: af00 add r7, sp, #0
  15755. 8007060: 6078 str r0, [r7, #4]
  15756. /* Retrieve ADC handle corresponding to current DMA handle */
  15757. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15758. 8007062: 687b ldr r3, [r7, #4]
  15759. 8007064: 6b9b ldr r3, [r3, #56] @ 0x38
  15760. 8007066: 60fb str r3, [r7, #12]
  15761. /* Update state machine on conversion status if not in error state */
  15762. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  15763. 8007068: 68fb ldr r3, [r7, #12]
  15764. 800706a: 6d5b ldr r3, [r3, #84] @ 0x54
  15765. 800706c: f003 0350 and.w r3, r3, #80 @ 0x50
  15766. 8007070: 2b00 cmp r3, #0
  15767. 8007072: d14b bne.n 800710c <ADC_DMAConvCplt+0xb2>
  15768. {
  15769. /* Set ADC state */
  15770. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  15771. 8007074: 68fb ldr r3, [r7, #12]
  15772. 8007076: 6d5b ldr r3, [r3, #84] @ 0x54
  15773. 8007078: f443 7200 orr.w r2, r3, #512 @ 0x200
  15774. 800707c: 68fb ldr r3, [r7, #12]
  15775. 800707e: 655a str r2, [r3, #84] @ 0x54
  15776. /* Determine whether any further conversion upcoming on group regular */
  15777. /* by external trigger, continuous mode or scan sequence on going */
  15778. /* to disable interruption. */
  15779. /* Is it the end of the regular sequence ? */
  15780. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  15781. 8007080: 68fb ldr r3, [r7, #12]
  15782. 8007082: 681b ldr r3, [r3, #0]
  15783. 8007084: 681b ldr r3, [r3, #0]
  15784. 8007086: f003 0308 and.w r3, r3, #8
  15785. 800708a: 2b00 cmp r3, #0
  15786. 800708c: d021 beq.n 80070d2 <ADC_DMAConvCplt+0x78>
  15787. {
  15788. /* Are conversions software-triggered ? */
  15789. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  15790. 800708e: 68fb ldr r3, [r7, #12]
  15791. 8007090: 681b ldr r3, [r3, #0]
  15792. 8007092: 4618 mov r0, r3
  15793. 8007094: f7fe ff9c bl 8005fd0 <LL_ADC_REG_IsTriggerSourceSWStart>
  15794. 8007098: 4603 mov r3, r0
  15795. 800709a: 2b00 cmp r3, #0
  15796. 800709c: d032 beq.n 8007104 <ADC_DMAConvCplt+0xaa>
  15797. {
  15798. /* Is CONT bit set ? */
  15799. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  15800. 800709e: 68fb ldr r3, [r7, #12]
  15801. 80070a0: 681b ldr r3, [r3, #0]
  15802. 80070a2: 68db ldr r3, [r3, #12]
  15803. 80070a4: f403 5300 and.w r3, r3, #8192 @ 0x2000
  15804. 80070a8: 2b00 cmp r3, #0
  15805. 80070aa: d12b bne.n 8007104 <ADC_DMAConvCplt+0xaa>
  15806. {
  15807. /* CONT bit is not set, no more conversions expected */
  15808. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15809. 80070ac: 68fb ldr r3, [r7, #12]
  15810. 80070ae: 6d5b ldr r3, [r3, #84] @ 0x54
  15811. 80070b0: f423 7280 bic.w r2, r3, #256 @ 0x100
  15812. 80070b4: 68fb ldr r3, [r7, #12]
  15813. 80070b6: 655a str r2, [r3, #84] @ 0x54
  15814. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15815. 80070b8: 68fb ldr r3, [r7, #12]
  15816. 80070ba: 6d5b ldr r3, [r3, #84] @ 0x54
  15817. 80070bc: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15818. 80070c0: 2b00 cmp r3, #0
  15819. 80070c2: d11f bne.n 8007104 <ADC_DMAConvCplt+0xaa>
  15820. {
  15821. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15822. 80070c4: 68fb ldr r3, [r7, #12]
  15823. 80070c6: 6d5b ldr r3, [r3, #84] @ 0x54
  15824. 80070c8: f043 0201 orr.w r2, r3, #1
  15825. 80070cc: 68fb ldr r3, [r7, #12]
  15826. 80070ce: 655a str r2, [r3, #84] @ 0x54
  15827. 80070d0: e018 b.n 8007104 <ADC_DMAConvCplt+0xaa>
  15828. }
  15829. else
  15830. {
  15831. /* DMA End of Transfer interrupt was triggered but conversions sequence
  15832. is not over. If DMACFG is set to 0, conversions are stopped. */
  15833. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  15834. 80070d2: 68fb ldr r3, [r7, #12]
  15835. 80070d4: 681b ldr r3, [r3, #0]
  15836. 80070d6: 68db ldr r3, [r3, #12]
  15837. 80070d8: f003 0303 and.w r3, r3, #3
  15838. 80070dc: 2b00 cmp r3, #0
  15839. 80070de: d111 bne.n 8007104 <ADC_DMAConvCplt+0xaa>
  15840. {
  15841. /* DMACFG bit is not set, conversions are stopped. */
  15842. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15843. 80070e0: 68fb ldr r3, [r7, #12]
  15844. 80070e2: 6d5b ldr r3, [r3, #84] @ 0x54
  15845. 80070e4: f423 7280 bic.w r2, r3, #256 @ 0x100
  15846. 80070e8: 68fb ldr r3, [r7, #12]
  15847. 80070ea: 655a str r2, [r3, #84] @ 0x54
  15848. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15849. 80070ec: 68fb ldr r3, [r7, #12]
  15850. 80070ee: 6d5b ldr r3, [r3, #84] @ 0x54
  15851. 80070f0: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15852. 80070f4: 2b00 cmp r3, #0
  15853. 80070f6: d105 bne.n 8007104 <ADC_DMAConvCplt+0xaa>
  15854. {
  15855. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15856. 80070f8: 68fb ldr r3, [r7, #12]
  15857. 80070fa: 6d5b ldr r3, [r3, #84] @ 0x54
  15858. 80070fc: f043 0201 orr.w r2, r3, #1
  15859. 8007100: 68fb ldr r3, [r7, #12]
  15860. 8007102: 655a str r2, [r3, #84] @ 0x54
  15861. /* Conversion complete callback */
  15862. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15863. hadc->ConvCpltCallback(hadc);
  15864. #else
  15865. HAL_ADC_ConvCpltCallback(hadc);
  15866. 8007104: 68f8 ldr r0, [r7, #12]
  15867. 8007106: f7fa fb5f bl 80017c8 <HAL_ADC_ConvCpltCallback>
  15868. {
  15869. /* Call ADC DMA error callback */
  15870. hadc->DMA_Handle->XferErrorCallback(hdma);
  15871. }
  15872. }
  15873. }
  15874. 800710a: e00e b.n 800712a <ADC_DMAConvCplt+0xd0>
  15875. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  15876. 800710c: 68fb ldr r3, [r7, #12]
  15877. 800710e: 6d5b ldr r3, [r3, #84] @ 0x54
  15878. 8007110: f003 0310 and.w r3, r3, #16
  15879. 8007114: 2b00 cmp r3, #0
  15880. 8007116: d003 beq.n 8007120 <ADC_DMAConvCplt+0xc6>
  15881. HAL_ADC_ErrorCallback(hadc);
  15882. 8007118: 68f8 ldr r0, [r7, #12]
  15883. 800711a: f7ff fb4f bl 80067bc <HAL_ADC_ErrorCallback>
  15884. }
  15885. 800711e: e004 b.n 800712a <ADC_DMAConvCplt+0xd0>
  15886. hadc->DMA_Handle->XferErrorCallback(hdma);
  15887. 8007120: 68fb ldr r3, [r7, #12]
  15888. 8007122: 6cdb ldr r3, [r3, #76] @ 0x4c
  15889. 8007124: 6cdb ldr r3, [r3, #76] @ 0x4c
  15890. 8007126: 6878 ldr r0, [r7, #4]
  15891. 8007128: 4798 blx r3
  15892. }
  15893. 800712a: bf00 nop
  15894. 800712c: 3710 adds r7, #16
  15895. 800712e: 46bd mov sp, r7
  15896. 8007130: bd80 pop {r7, pc}
  15897. 08007132 <ADC_DMAHalfConvCplt>:
  15898. * @brief DMA half transfer complete callback.
  15899. * @param hdma pointer to DMA handle.
  15900. * @retval None
  15901. */
  15902. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  15903. {
  15904. 8007132: b580 push {r7, lr}
  15905. 8007134: b084 sub sp, #16
  15906. 8007136: af00 add r7, sp, #0
  15907. 8007138: 6078 str r0, [r7, #4]
  15908. /* Retrieve ADC handle corresponding to current DMA handle */
  15909. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15910. 800713a: 687b ldr r3, [r7, #4]
  15911. 800713c: 6b9b ldr r3, [r3, #56] @ 0x38
  15912. 800713e: 60fb str r3, [r7, #12]
  15913. /* Half conversion callback */
  15914. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15915. hadc->ConvHalfCpltCallback(hadc);
  15916. #else
  15917. HAL_ADC_ConvHalfCpltCallback(hadc);
  15918. 8007140: 68f8 ldr r0, [r7, #12]
  15919. 8007142: f7ff fb31 bl 80067a8 <HAL_ADC_ConvHalfCpltCallback>
  15920. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15921. }
  15922. 8007146: bf00 nop
  15923. 8007148: 3710 adds r7, #16
  15924. 800714a: 46bd mov sp, r7
  15925. 800714c: bd80 pop {r7, pc}
  15926. 0800714e <ADC_DMAError>:
  15927. * @brief DMA error callback.
  15928. * @param hdma pointer to DMA handle.
  15929. * @retval None
  15930. */
  15931. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  15932. {
  15933. 800714e: b580 push {r7, lr}
  15934. 8007150: b084 sub sp, #16
  15935. 8007152: af00 add r7, sp, #0
  15936. 8007154: 6078 str r0, [r7, #4]
  15937. /* Retrieve ADC handle corresponding to current DMA handle */
  15938. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15939. 8007156: 687b ldr r3, [r7, #4]
  15940. 8007158: 6b9b ldr r3, [r3, #56] @ 0x38
  15941. 800715a: 60fb str r3, [r7, #12]
  15942. /* Set ADC state */
  15943. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  15944. 800715c: 68fb ldr r3, [r7, #12]
  15945. 800715e: 6d5b ldr r3, [r3, #84] @ 0x54
  15946. 8007160: f043 0240 orr.w r2, r3, #64 @ 0x40
  15947. 8007164: 68fb ldr r3, [r7, #12]
  15948. 8007166: 655a str r2, [r3, #84] @ 0x54
  15949. /* Set ADC error code to DMA error */
  15950. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  15951. 8007168: 68fb ldr r3, [r7, #12]
  15952. 800716a: 6d9b ldr r3, [r3, #88] @ 0x58
  15953. 800716c: f043 0204 orr.w r2, r3, #4
  15954. 8007170: 68fb ldr r3, [r7, #12]
  15955. 8007172: 659a str r2, [r3, #88] @ 0x58
  15956. /* Error callback */
  15957. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15958. hadc->ErrorCallback(hadc);
  15959. #else
  15960. HAL_ADC_ErrorCallback(hadc);
  15961. 8007174: 68f8 ldr r0, [r7, #12]
  15962. 8007176: f7ff fb21 bl 80067bc <HAL_ADC_ErrorCallback>
  15963. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15964. }
  15965. 800717a: bf00 nop
  15966. 800717c: 3710 adds r7, #16
  15967. 800717e: 46bd mov sp, r7
  15968. 8007180: bd80 pop {r7, pc}
  15969. ...
  15970. 08007184 <ADC_ConfigureBoostMode>:
  15971. * stopped.
  15972. * @param hadc ADC handle
  15973. * @retval None.
  15974. */
  15975. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  15976. {
  15977. 8007184: b580 push {r7, lr}
  15978. 8007186: b084 sub sp, #16
  15979. 8007188: af00 add r7, sp, #0
  15980. 800718a: 6078 str r0, [r7, #4]
  15981. uint32_t freq;
  15982. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  15983. 800718c: 687b ldr r3, [r7, #4]
  15984. 800718e: 681b ldr r3, [r3, #0]
  15985. 8007190: 4a7a ldr r2, [pc, #488] @ (800737c <ADC_ConfigureBoostMode+0x1f8>)
  15986. 8007192: 4293 cmp r3, r2
  15987. 8007194: d004 beq.n 80071a0 <ADC_ConfigureBoostMode+0x1c>
  15988. 8007196: 687b ldr r3, [r7, #4]
  15989. 8007198: 681b ldr r3, [r3, #0]
  15990. 800719a: 4a79 ldr r2, [pc, #484] @ (8007380 <ADC_ConfigureBoostMode+0x1fc>)
  15991. 800719c: 4293 cmp r3, r2
  15992. 800719e: d109 bne.n 80071b4 <ADC_ConfigureBoostMode+0x30>
  15993. 80071a0: 4b78 ldr r3, [pc, #480] @ (8007384 <ADC_ConfigureBoostMode+0x200>)
  15994. 80071a2: 689b ldr r3, [r3, #8]
  15995. 80071a4: f403 3340 and.w r3, r3, #196608 @ 0x30000
  15996. 80071a8: 2b00 cmp r3, #0
  15997. 80071aa: bf14 ite ne
  15998. 80071ac: 2301 movne r3, #1
  15999. 80071ae: 2300 moveq r3, #0
  16000. 80071b0: b2db uxtb r3, r3
  16001. 80071b2: e008 b.n 80071c6 <ADC_ConfigureBoostMode+0x42>
  16002. 80071b4: 4b74 ldr r3, [pc, #464] @ (8007388 <ADC_ConfigureBoostMode+0x204>)
  16003. 80071b6: 689b ldr r3, [r3, #8]
  16004. 80071b8: f403 3340 and.w r3, r3, #196608 @ 0x30000
  16005. 80071bc: 2b00 cmp r3, #0
  16006. 80071be: bf14 ite ne
  16007. 80071c0: 2301 movne r3, #1
  16008. 80071c2: 2300 moveq r3, #0
  16009. 80071c4: b2db uxtb r3, r3
  16010. 80071c6: 2b00 cmp r3, #0
  16011. 80071c8: d01c beq.n 8007204 <ADC_ConfigureBoostMode+0x80>
  16012. {
  16013. freq = HAL_RCC_GetHCLKFreq();
  16014. 80071ca: f005 fb47 bl 800c85c <HAL_RCC_GetHCLKFreq>
  16015. 80071ce: 60f8 str r0, [r7, #12]
  16016. switch (hadc->Init.ClockPrescaler)
  16017. 80071d0: 687b ldr r3, [r7, #4]
  16018. 80071d2: 685b ldr r3, [r3, #4]
  16019. 80071d4: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16020. 80071d8: d010 beq.n 80071fc <ADC_ConfigureBoostMode+0x78>
  16021. 80071da: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16022. 80071de: d873 bhi.n 80072c8 <ADC_ConfigureBoostMode+0x144>
  16023. 80071e0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  16024. 80071e4: d002 beq.n 80071ec <ADC_ConfigureBoostMode+0x68>
  16025. 80071e6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  16026. 80071ea: d16d bne.n 80072c8 <ADC_ConfigureBoostMode+0x144>
  16027. {
  16028. case ADC_CLOCK_SYNC_PCLK_DIV1:
  16029. case ADC_CLOCK_SYNC_PCLK_DIV2:
  16030. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  16031. 80071ec: 687b ldr r3, [r7, #4]
  16032. 80071ee: 685b ldr r3, [r3, #4]
  16033. 80071f0: 0c1b lsrs r3, r3, #16
  16034. 80071f2: 68fa ldr r2, [r7, #12]
  16035. 80071f4: fbb2 f3f3 udiv r3, r2, r3
  16036. 80071f8: 60fb str r3, [r7, #12]
  16037. break;
  16038. 80071fa: e068 b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16039. case ADC_CLOCK_SYNC_PCLK_DIV4:
  16040. freq /= 4UL;
  16041. 80071fc: 68fb ldr r3, [r7, #12]
  16042. 80071fe: 089b lsrs r3, r3, #2
  16043. 8007200: 60fb str r3, [r7, #12]
  16044. break;
  16045. 8007202: e064 b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16046. break;
  16047. }
  16048. }
  16049. else
  16050. {
  16051. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  16052. 8007204: f44f 2000 mov.w r0, #524288 @ 0x80000
  16053. 8007208: f04f 0100 mov.w r1, #0
  16054. 800720c: f006 fdb2 bl 800dd74 <HAL_RCCEx_GetPeriphCLKFreq>
  16055. 8007210: 60f8 str r0, [r7, #12]
  16056. switch (hadc->Init.ClockPrescaler)
  16057. 8007212: 687b ldr r3, [r7, #4]
  16058. 8007214: 685b ldr r3, [r3, #4]
  16059. 8007216: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16060. 800721a: d051 beq.n 80072c0 <ADC_ConfigureBoostMode+0x13c>
  16061. 800721c: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16062. 8007220: d854 bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16063. 8007222: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16064. 8007226: d047 beq.n 80072b8 <ADC_ConfigureBoostMode+0x134>
  16065. 8007228: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16066. 800722c: d84e bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16067. 800722e: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16068. 8007232: d03d beq.n 80072b0 <ADC_ConfigureBoostMode+0x12c>
  16069. 8007234: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16070. 8007238: d848 bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16071. 800723a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16072. 800723e: d033 beq.n 80072a8 <ADC_ConfigureBoostMode+0x124>
  16073. 8007240: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16074. 8007244: d842 bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16075. 8007246: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16076. 800724a: d029 beq.n 80072a0 <ADC_ConfigureBoostMode+0x11c>
  16077. 800724c: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16078. 8007250: d83c bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16079. 8007252: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16080. 8007256: d01a beq.n 800728e <ADC_ConfigureBoostMode+0x10a>
  16081. 8007258: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16082. 800725c: d836 bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16083. 800725e: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16084. 8007262: d014 beq.n 800728e <ADC_ConfigureBoostMode+0x10a>
  16085. 8007264: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16086. 8007268: d830 bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16087. 800726a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16088. 800726e: d00e beq.n 800728e <ADC_ConfigureBoostMode+0x10a>
  16089. 8007270: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16090. 8007274: d82a bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16091. 8007276: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16092. 800727a: d008 beq.n 800728e <ADC_ConfigureBoostMode+0x10a>
  16093. 800727c: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16094. 8007280: d824 bhi.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16095. 8007282: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  16096. 8007286: d002 beq.n 800728e <ADC_ConfigureBoostMode+0x10a>
  16097. 8007288: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  16098. 800728c: d11e bne.n 80072cc <ADC_ConfigureBoostMode+0x148>
  16099. case ADC_CLOCK_ASYNC_DIV4:
  16100. case ADC_CLOCK_ASYNC_DIV6:
  16101. case ADC_CLOCK_ASYNC_DIV8:
  16102. case ADC_CLOCK_ASYNC_DIV10:
  16103. case ADC_CLOCK_ASYNC_DIV12:
  16104. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  16105. 800728e: 687b ldr r3, [r7, #4]
  16106. 8007290: 685b ldr r3, [r3, #4]
  16107. 8007292: 0c9b lsrs r3, r3, #18
  16108. 8007294: 005b lsls r3, r3, #1
  16109. 8007296: 68fa ldr r2, [r7, #12]
  16110. 8007298: fbb2 f3f3 udiv r3, r2, r3
  16111. 800729c: 60fb str r3, [r7, #12]
  16112. break;
  16113. 800729e: e016 b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16114. case ADC_CLOCK_ASYNC_DIV16:
  16115. freq /= 16UL;
  16116. 80072a0: 68fb ldr r3, [r7, #12]
  16117. 80072a2: 091b lsrs r3, r3, #4
  16118. 80072a4: 60fb str r3, [r7, #12]
  16119. break;
  16120. 80072a6: e012 b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16121. case ADC_CLOCK_ASYNC_DIV32:
  16122. freq /= 32UL;
  16123. 80072a8: 68fb ldr r3, [r7, #12]
  16124. 80072aa: 095b lsrs r3, r3, #5
  16125. 80072ac: 60fb str r3, [r7, #12]
  16126. break;
  16127. 80072ae: e00e b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16128. case ADC_CLOCK_ASYNC_DIV64:
  16129. freq /= 64UL;
  16130. 80072b0: 68fb ldr r3, [r7, #12]
  16131. 80072b2: 099b lsrs r3, r3, #6
  16132. 80072b4: 60fb str r3, [r7, #12]
  16133. break;
  16134. 80072b6: e00a b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16135. case ADC_CLOCK_ASYNC_DIV128:
  16136. freq /= 128UL;
  16137. 80072b8: 68fb ldr r3, [r7, #12]
  16138. 80072ba: 09db lsrs r3, r3, #7
  16139. 80072bc: 60fb str r3, [r7, #12]
  16140. break;
  16141. 80072be: e006 b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16142. case ADC_CLOCK_ASYNC_DIV256:
  16143. freq /= 256UL;
  16144. 80072c0: 68fb ldr r3, [r7, #12]
  16145. 80072c2: 0a1b lsrs r3, r3, #8
  16146. 80072c4: 60fb str r3, [r7, #12]
  16147. break;
  16148. 80072c6: e002 b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16149. break;
  16150. 80072c8: bf00 nop
  16151. 80072ca: e000 b.n 80072ce <ADC_ConfigureBoostMode+0x14a>
  16152. default:
  16153. break;
  16154. 80072cc: bf00 nop
  16155. else /* if(freq > 25000000UL) */
  16156. {
  16157. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16158. }
  16159. #else
  16160. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  16161. 80072ce: f7fe fdb1 bl 8005e34 <HAL_GetREVID>
  16162. 80072d2: 4603 mov r3, r0
  16163. 80072d4: f241 0203 movw r2, #4099 @ 0x1003
  16164. 80072d8: 4293 cmp r3, r2
  16165. 80072da: d815 bhi.n 8007308 <ADC_ConfigureBoostMode+0x184>
  16166. {
  16167. if (freq > 20000000UL)
  16168. 80072dc: 68fb ldr r3, [r7, #12]
  16169. 80072de: 4a2b ldr r2, [pc, #172] @ (800738c <ADC_ConfigureBoostMode+0x208>)
  16170. 80072e0: 4293 cmp r3, r2
  16171. 80072e2: d908 bls.n 80072f6 <ADC_ConfigureBoostMode+0x172>
  16172. {
  16173. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16174. 80072e4: 687b ldr r3, [r7, #4]
  16175. 80072e6: 681b ldr r3, [r3, #0]
  16176. 80072e8: 689a ldr r2, [r3, #8]
  16177. 80072ea: 687b ldr r3, [r7, #4]
  16178. 80072ec: 681b ldr r3, [r3, #0]
  16179. 80072ee: f442 7280 orr.w r2, r2, #256 @ 0x100
  16180. 80072f2: 609a str r2, [r3, #8]
  16181. {
  16182. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16183. }
  16184. }
  16185. #endif /* ADC_VER_V5_3 */
  16186. }
  16187. 80072f4: e03e b.n 8007374 <ADC_ConfigureBoostMode+0x1f0>
  16188. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16189. 80072f6: 687b ldr r3, [r7, #4]
  16190. 80072f8: 681b ldr r3, [r3, #0]
  16191. 80072fa: 689a ldr r2, [r3, #8]
  16192. 80072fc: 687b ldr r3, [r7, #4]
  16193. 80072fe: 681b ldr r3, [r3, #0]
  16194. 8007300: f422 7280 bic.w r2, r2, #256 @ 0x100
  16195. 8007304: 609a str r2, [r3, #8]
  16196. }
  16197. 8007306: e035 b.n 8007374 <ADC_ConfigureBoostMode+0x1f0>
  16198. freq /= 2U; /* divider by 2 for Rev.V */
  16199. 8007308: 68fb ldr r3, [r7, #12]
  16200. 800730a: 085b lsrs r3, r3, #1
  16201. 800730c: 60fb str r3, [r7, #12]
  16202. if (freq <= 6250000UL)
  16203. 800730e: 68fb ldr r3, [r7, #12]
  16204. 8007310: 4a1f ldr r2, [pc, #124] @ (8007390 <ADC_ConfigureBoostMode+0x20c>)
  16205. 8007312: 4293 cmp r3, r2
  16206. 8007314: d808 bhi.n 8007328 <ADC_ConfigureBoostMode+0x1a4>
  16207. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  16208. 8007316: 687b ldr r3, [r7, #4]
  16209. 8007318: 681b ldr r3, [r3, #0]
  16210. 800731a: 689a ldr r2, [r3, #8]
  16211. 800731c: 687b ldr r3, [r7, #4]
  16212. 800731e: 681b ldr r3, [r3, #0]
  16213. 8007320: f422 7240 bic.w r2, r2, #768 @ 0x300
  16214. 8007324: 609a str r2, [r3, #8]
  16215. }
  16216. 8007326: e025 b.n 8007374 <ADC_ConfigureBoostMode+0x1f0>
  16217. else if (freq <= 12500000UL)
  16218. 8007328: 68fb ldr r3, [r7, #12]
  16219. 800732a: 4a1a ldr r2, [pc, #104] @ (8007394 <ADC_ConfigureBoostMode+0x210>)
  16220. 800732c: 4293 cmp r3, r2
  16221. 800732e: d80a bhi.n 8007346 <ADC_ConfigureBoostMode+0x1c2>
  16222. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  16223. 8007330: 687b ldr r3, [r7, #4]
  16224. 8007332: 681b ldr r3, [r3, #0]
  16225. 8007334: 689b ldr r3, [r3, #8]
  16226. 8007336: f423 7240 bic.w r2, r3, #768 @ 0x300
  16227. 800733a: 687b ldr r3, [r7, #4]
  16228. 800733c: 681b ldr r3, [r3, #0]
  16229. 800733e: f442 7280 orr.w r2, r2, #256 @ 0x100
  16230. 8007342: 609a str r2, [r3, #8]
  16231. }
  16232. 8007344: e016 b.n 8007374 <ADC_ConfigureBoostMode+0x1f0>
  16233. else if (freq <= 25000000UL)
  16234. 8007346: 68fb ldr r3, [r7, #12]
  16235. 8007348: 4a13 ldr r2, [pc, #76] @ (8007398 <ADC_ConfigureBoostMode+0x214>)
  16236. 800734a: 4293 cmp r3, r2
  16237. 800734c: d80a bhi.n 8007364 <ADC_ConfigureBoostMode+0x1e0>
  16238. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  16239. 800734e: 687b ldr r3, [r7, #4]
  16240. 8007350: 681b ldr r3, [r3, #0]
  16241. 8007352: 689b ldr r3, [r3, #8]
  16242. 8007354: f423 7240 bic.w r2, r3, #768 @ 0x300
  16243. 8007358: 687b ldr r3, [r7, #4]
  16244. 800735a: 681b ldr r3, [r3, #0]
  16245. 800735c: f442 7200 orr.w r2, r2, #512 @ 0x200
  16246. 8007360: 609a str r2, [r3, #8]
  16247. }
  16248. 8007362: e007 b.n 8007374 <ADC_ConfigureBoostMode+0x1f0>
  16249. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16250. 8007364: 687b ldr r3, [r7, #4]
  16251. 8007366: 681b ldr r3, [r3, #0]
  16252. 8007368: 689a ldr r2, [r3, #8]
  16253. 800736a: 687b ldr r3, [r7, #4]
  16254. 800736c: 681b ldr r3, [r3, #0]
  16255. 800736e: f442 7240 orr.w r2, r2, #768 @ 0x300
  16256. 8007372: 609a str r2, [r3, #8]
  16257. }
  16258. 8007374: bf00 nop
  16259. 8007376: 3710 adds r7, #16
  16260. 8007378: 46bd mov sp, r7
  16261. 800737a: bd80 pop {r7, pc}
  16262. 800737c: 40022000 .word 0x40022000
  16263. 8007380: 40022100 .word 0x40022100
  16264. 8007384: 40022300 .word 0x40022300
  16265. 8007388: 58026300 .word 0x58026300
  16266. 800738c: 01312d00 .word 0x01312d00
  16267. 8007390: 005f5e10 .word 0x005f5e10
  16268. 8007394: 00bebc20 .word 0x00bebc20
  16269. 8007398: 017d7840 .word 0x017d7840
  16270. 0800739c <LL_ADC_IsEnabled>:
  16271. {
  16272. 800739c: b480 push {r7}
  16273. 800739e: b083 sub sp, #12
  16274. 80073a0: af00 add r7, sp, #0
  16275. 80073a2: 6078 str r0, [r7, #4]
  16276. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  16277. 80073a4: 687b ldr r3, [r7, #4]
  16278. 80073a6: 689b ldr r3, [r3, #8]
  16279. 80073a8: f003 0301 and.w r3, r3, #1
  16280. 80073ac: 2b01 cmp r3, #1
  16281. 80073ae: d101 bne.n 80073b4 <LL_ADC_IsEnabled+0x18>
  16282. 80073b0: 2301 movs r3, #1
  16283. 80073b2: e000 b.n 80073b6 <LL_ADC_IsEnabled+0x1a>
  16284. 80073b4: 2300 movs r3, #0
  16285. }
  16286. 80073b6: 4618 mov r0, r3
  16287. 80073b8: 370c adds r7, #12
  16288. 80073ba: 46bd mov sp, r7
  16289. 80073bc: f85d 7b04 ldr.w r7, [sp], #4
  16290. 80073c0: 4770 bx lr
  16291. ...
  16292. 080073c4 <LL_ADC_StartCalibration>:
  16293. {
  16294. 80073c4: b480 push {r7}
  16295. 80073c6: b085 sub sp, #20
  16296. 80073c8: af00 add r7, sp, #0
  16297. 80073ca: 60f8 str r0, [r7, #12]
  16298. 80073cc: 60b9 str r1, [r7, #8]
  16299. 80073ce: 607a str r2, [r7, #4]
  16300. MODIFY_REG(ADCx->CR,
  16301. 80073d0: 68fb ldr r3, [r7, #12]
  16302. 80073d2: 689a ldr r2, [r3, #8]
  16303. 80073d4: 4b09 ldr r3, [pc, #36] @ (80073fc <LL_ADC_StartCalibration+0x38>)
  16304. 80073d6: 4013 ands r3, r2
  16305. 80073d8: 68ba ldr r2, [r7, #8]
  16306. 80073da: f402 3180 and.w r1, r2, #65536 @ 0x10000
  16307. 80073de: 687a ldr r2, [r7, #4]
  16308. 80073e0: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  16309. 80073e4: 430a orrs r2, r1
  16310. 80073e6: 4313 orrs r3, r2
  16311. 80073e8: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  16312. 80073ec: 68fb ldr r3, [r7, #12]
  16313. 80073ee: 609a str r2, [r3, #8]
  16314. }
  16315. 80073f0: bf00 nop
  16316. 80073f2: 3714 adds r7, #20
  16317. 80073f4: 46bd mov sp, r7
  16318. 80073f6: f85d 7b04 ldr.w r7, [sp], #4
  16319. 80073fa: 4770 bx lr
  16320. 80073fc: 3ffeffc0 .word 0x3ffeffc0
  16321. 08007400 <LL_ADC_IsCalibrationOnGoing>:
  16322. {
  16323. 8007400: b480 push {r7}
  16324. 8007402: b083 sub sp, #12
  16325. 8007404: af00 add r7, sp, #0
  16326. 8007406: 6078 str r0, [r7, #4]
  16327. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  16328. 8007408: 687b ldr r3, [r7, #4]
  16329. 800740a: 689b ldr r3, [r3, #8]
  16330. 800740c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16331. 8007410: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16332. 8007414: d101 bne.n 800741a <LL_ADC_IsCalibrationOnGoing+0x1a>
  16333. 8007416: 2301 movs r3, #1
  16334. 8007418: e000 b.n 800741c <LL_ADC_IsCalibrationOnGoing+0x1c>
  16335. 800741a: 2300 movs r3, #0
  16336. }
  16337. 800741c: 4618 mov r0, r3
  16338. 800741e: 370c adds r7, #12
  16339. 8007420: 46bd mov sp, r7
  16340. 8007422: f85d 7b04 ldr.w r7, [sp], #4
  16341. 8007426: 4770 bx lr
  16342. 08007428 <LL_ADC_REG_IsConversionOngoing>:
  16343. {
  16344. 8007428: b480 push {r7}
  16345. 800742a: b083 sub sp, #12
  16346. 800742c: af00 add r7, sp, #0
  16347. 800742e: 6078 str r0, [r7, #4]
  16348. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  16349. 8007430: 687b ldr r3, [r7, #4]
  16350. 8007432: 689b ldr r3, [r3, #8]
  16351. 8007434: f003 0304 and.w r3, r3, #4
  16352. 8007438: 2b04 cmp r3, #4
  16353. 800743a: d101 bne.n 8007440 <LL_ADC_REG_IsConversionOngoing+0x18>
  16354. 800743c: 2301 movs r3, #1
  16355. 800743e: e000 b.n 8007442 <LL_ADC_REG_IsConversionOngoing+0x1a>
  16356. 8007440: 2300 movs r3, #0
  16357. }
  16358. 8007442: 4618 mov r0, r3
  16359. 8007444: 370c adds r7, #12
  16360. 8007446: 46bd mov sp, r7
  16361. 8007448: f85d 7b04 ldr.w r7, [sp], #4
  16362. 800744c: 4770 bx lr
  16363. ...
  16364. 08007450 <HAL_ADCEx_Calibration_Start>:
  16365. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  16366. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  16367. * @retval HAL status
  16368. */
  16369. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  16370. {
  16371. 8007450: b580 push {r7, lr}
  16372. 8007452: b086 sub sp, #24
  16373. 8007454: af00 add r7, sp, #0
  16374. 8007456: 60f8 str r0, [r7, #12]
  16375. 8007458: 60b9 str r1, [r7, #8]
  16376. 800745a: 607a str r2, [r7, #4]
  16377. HAL_StatusTypeDef tmp_hal_status;
  16378. __IO uint32_t wait_loop_index = 0UL;
  16379. 800745c: 2300 movs r3, #0
  16380. 800745e: 613b str r3, [r7, #16]
  16381. /* Check the parameters */
  16382. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  16383. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  16384. /* Process locked */
  16385. __HAL_LOCK(hadc);
  16386. 8007460: 68fb ldr r3, [r7, #12]
  16387. 8007462: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16388. 8007466: 2b01 cmp r3, #1
  16389. 8007468: d101 bne.n 800746e <HAL_ADCEx_Calibration_Start+0x1e>
  16390. 800746a: 2302 movs r3, #2
  16391. 800746c: e04c b.n 8007508 <HAL_ADCEx_Calibration_Start+0xb8>
  16392. 800746e: 68fb ldr r3, [r7, #12]
  16393. 8007470: 2201 movs r2, #1
  16394. 8007472: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16395. /* Calibration prerequisite: ADC must be disabled. */
  16396. /* Disable the ADC (if not already disabled) */
  16397. tmp_hal_status = ADC_Disable(hadc);
  16398. 8007476: 68f8 ldr r0, [r7, #12]
  16399. 8007478: f7ff fd90 bl 8006f9c <ADC_Disable>
  16400. 800747c: 4603 mov r3, r0
  16401. 800747e: 75fb strb r3, [r7, #23]
  16402. /* Check if ADC is effectively disabled */
  16403. if (tmp_hal_status == HAL_OK)
  16404. 8007480: 7dfb ldrb r3, [r7, #23]
  16405. 8007482: 2b00 cmp r3, #0
  16406. 8007484: d135 bne.n 80074f2 <HAL_ADCEx_Calibration_Start+0xa2>
  16407. {
  16408. /* Set ADC state */
  16409. ADC_STATE_CLR_SET(hadc->State,
  16410. 8007486: 68fb ldr r3, [r7, #12]
  16411. 8007488: 6d5a ldr r2, [r3, #84] @ 0x54
  16412. 800748a: 4b21 ldr r3, [pc, #132] @ (8007510 <HAL_ADCEx_Calibration_Start+0xc0>)
  16413. 800748c: 4013 ands r3, r2
  16414. 800748e: f043 0202 orr.w r2, r3, #2
  16415. 8007492: 68fb ldr r3, [r7, #12]
  16416. 8007494: 655a str r2, [r3, #84] @ 0x54
  16417. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  16418. HAL_ADC_STATE_BUSY_INTERNAL);
  16419. /* Start ADC calibration in mode single-ended or differential */
  16420. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  16421. 8007496: 68fb ldr r3, [r7, #12]
  16422. 8007498: 681b ldr r3, [r3, #0]
  16423. 800749a: 687a ldr r2, [r7, #4]
  16424. 800749c: 68b9 ldr r1, [r7, #8]
  16425. 800749e: 4618 mov r0, r3
  16426. 80074a0: f7ff ff90 bl 80073c4 <LL_ADC_StartCalibration>
  16427. /* Wait for calibration completion */
  16428. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16429. 80074a4: e014 b.n 80074d0 <HAL_ADCEx_Calibration_Start+0x80>
  16430. {
  16431. wait_loop_index++;
  16432. 80074a6: 693b ldr r3, [r7, #16]
  16433. 80074a8: 3301 adds r3, #1
  16434. 80074aa: 613b str r3, [r7, #16]
  16435. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  16436. 80074ac: 693b ldr r3, [r7, #16]
  16437. 80074ae: 4a19 ldr r2, [pc, #100] @ (8007514 <HAL_ADCEx_Calibration_Start+0xc4>)
  16438. 80074b0: 4293 cmp r3, r2
  16439. 80074b2: d30d bcc.n 80074d0 <HAL_ADCEx_Calibration_Start+0x80>
  16440. {
  16441. /* Update ADC state machine to error */
  16442. ADC_STATE_CLR_SET(hadc->State,
  16443. 80074b4: 68fb ldr r3, [r7, #12]
  16444. 80074b6: 6d5b ldr r3, [r3, #84] @ 0x54
  16445. 80074b8: f023 0312 bic.w r3, r3, #18
  16446. 80074bc: f043 0210 orr.w r2, r3, #16
  16447. 80074c0: 68fb ldr r3, [r7, #12]
  16448. 80074c2: 655a str r2, [r3, #84] @ 0x54
  16449. HAL_ADC_STATE_BUSY_INTERNAL,
  16450. HAL_ADC_STATE_ERROR_INTERNAL);
  16451. /* Process unlocked */
  16452. __HAL_UNLOCK(hadc);
  16453. 80074c4: 68fb ldr r3, [r7, #12]
  16454. 80074c6: 2200 movs r2, #0
  16455. 80074c8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16456. return HAL_ERROR;
  16457. 80074cc: 2301 movs r3, #1
  16458. 80074ce: e01b b.n 8007508 <HAL_ADCEx_Calibration_Start+0xb8>
  16459. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16460. 80074d0: 68fb ldr r3, [r7, #12]
  16461. 80074d2: 681b ldr r3, [r3, #0]
  16462. 80074d4: 4618 mov r0, r3
  16463. 80074d6: f7ff ff93 bl 8007400 <LL_ADC_IsCalibrationOnGoing>
  16464. 80074da: 4603 mov r3, r0
  16465. 80074dc: 2b00 cmp r3, #0
  16466. 80074de: d1e2 bne.n 80074a6 <HAL_ADCEx_Calibration_Start+0x56>
  16467. }
  16468. }
  16469. /* Set ADC state */
  16470. ADC_STATE_CLR_SET(hadc->State,
  16471. 80074e0: 68fb ldr r3, [r7, #12]
  16472. 80074e2: 6d5b ldr r3, [r3, #84] @ 0x54
  16473. 80074e4: f023 0303 bic.w r3, r3, #3
  16474. 80074e8: f043 0201 orr.w r2, r3, #1
  16475. 80074ec: 68fb ldr r3, [r7, #12]
  16476. 80074ee: 655a str r2, [r3, #84] @ 0x54
  16477. 80074f0: e005 b.n 80074fe <HAL_ADCEx_Calibration_Start+0xae>
  16478. HAL_ADC_STATE_BUSY_INTERNAL,
  16479. HAL_ADC_STATE_READY);
  16480. }
  16481. else
  16482. {
  16483. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  16484. 80074f2: 68fb ldr r3, [r7, #12]
  16485. 80074f4: 6d5b ldr r3, [r3, #84] @ 0x54
  16486. 80074f6: f043 0210 orr.w r2, r3, #16
  16487. 80074fa: 68fb ldr r3, [r7, #12]
  16488. 80074fc: 655a str r2, [r3, #84] @ 0x54
  16489. /* Note: No need to update variable "tmp_hal_status" here: already set */
  16490. /* to state "HAL_ERROR" by function disabling the ADC. */
  16491. }
  16492. /* Process unlocked */
  16493. __HAL_UNLOCK(hadc);
  16494. 80074fe: 68fb ldr r3, [r7, #12]
  16495. 8007500: 2200 movs r2, #0
  16496. 8007502: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16497. /* Return function status */
  16498. return tmp_hal_status;
  16499. 8007506: 7dfb ldrb r3, [r7, #23]
  16500. }
  16501. 8007508: 4618 mov r0, r3
  16502. 800750a: 3718 adds r7, #24
  16503. 800750c: 46bd mov sp, r7
  16504. 800750e: bd80 pop {r7, pc}
  16505. 8007510: ffffeefd .word 0xffffeefd
  16506. 8007514: 25c3f800 .word 0x25c3f800
  16507. 08007518 <HAL_ADCEx_MultiModeConfigChannel>:
  16508. * @param hadc Master ADC handle
  16509. * @param multimode Structure of ADC multimode configuration
  16510. * @retval HAL status
  16511. */
  16512. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  16513. {
  16514. 8007518: b590 push {r4, r7, lr}
  16515. 800751a: b09f sub sp, #124 @ 0x7c
  16516. 800751c: af00 add r7, sp, #0
  16517. 800751e: 6078 str r0, [r7, #4]
  16518. 8007520: 6039 str r1, [r7, #0]
  16519. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  16520. 8007522: 2300 movs r3, #0
  16521. 8007524: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16522. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  16523. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  16524. }
  16525. /* Process locked */
  16526. __HAL_LOCK(hadc);
  16527. 8007528: 687b ldr r3, [r7, #4]
  16528. 800752a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16529. 800752e: 2b01 cmp r3, #1
  16530. 8007530: d101 bne.n 8007536 <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  16531. 8007532: 2302 movs r3, #2
  16532. 8007534: e0be b.n 80076b4 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16533. 8007536: 687b ldr r3, [r7, #4]
  16534. 8007538: 2201 movs r2, #1
  16535. 800753a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16536. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  16537. 800753e: 2300 movs r3, #0
  16538. 8007540: 65fb str r3, [r7, #92] @ 0x5c
  16539. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  16540. 8007542: 2300 movs r3, #0
  16541. 8007544: 663b str r3, [r7, #96] @ 0x60
  16542. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  16543. 8007546: 687b ldr r3, [r7, #4]
  16544. 8007548: 681b ldr r3, [r3, #0]
  16545. 800754a: 4a5c ldr r2, [pc, #368] @ (80076bc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16546. 800754c: 4293 cmp r3, r2
  16547. 800754e: d102 bne.n 8007556 <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  16548. 8007550: 4b5b ldr r3, [pc, #364] @ (80076c0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16549. 8007552: 60bb str r3, [r7, #8]
  16550. 8007554: e001 b.n 800755a <HAL_ADCEx_MultiModeConfigChannel+0x42>
  16551. 8007556: 2300 movs r3, #0
  16552. 8007558: 60bb str r3, [r7, #8]
  16553. if (tmphadcSlave.Instance == NULL)
  16554. 800755a: 68bb ldr r3, [r7, #8]
  16555. 800755c: 2b00 cmp r3, #0
  16556. 800755e: d10b bne.n 8007578 <HAL_ADCEx_MultiModeConfigChannel+0x60>
  16557. {
  16558. /* Update ADC state machine to error */
  16559. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16560. 8007560: 687b ldr r3, [r7, #4]
  16561. 8007562: 6d5b ldr r3, [r3, #84] @ 0x54
  16562. 8007564: f043 0220 orr.w r2, r3, #32
  16563. 8007568: 687b ldr r3, [r7, #4]
  16564. 800756a: 655a str r2, [r3, #84] @ 0x54
  16565. /* Process unlocked */
  16566. __HAL_UNLOCK(hadc);
  16567. 800756c: 687b ldr r3, [r7, #4]
  16568. 800756e: 2200 movs r2, #0
  16569. 8007570: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16570. return HAL_ERROR;
  16571. 8007574: 2301 movs r3, #1
  16572. 8007576: e09d b.n 80076b4 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16573. /* Parameters update conditioned to ADC state: */
  16574. /* Parameters that can be updated when ADC is disabled or enabled without */
  16575. /* conversion on going on regular group: */
  16576. /* - Multimode DATA Format configuration */
  16577. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  16578. 8007578: 68bb ldr r3, [r7, #8]
  16579. 800757a: 4618 mov r0, r3
  16580. 800757c: f7ff ff54 bl 8007428 <LL_ADC_REG_IsConversionOngoing>
  16581. 8007580: 6738 str r0, [r7, #112] @ 0x70
  16582. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  16583. 8007582: 687b ldr r3, [r7, #4]
  16584. 8007584: 681b ldr r3, [r3, #0]
  16585. 8007586: 4618 mov r0, r3
  16586. 8007588: f7ff ff4e bl 8007428 <LL_ADC_REG_IsConversionOngoing>
  16587. 800758c: 4603 mov r3, r0
  16588. 800758e: 2b00 cmp r3, #0
  16589. 8007590: d17f bne.n 8007692 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16590. && (tmphadcSlave_conversion_on_going == 0UL))
  16591. 8007592: 6f3b ldr r3, [r7, #112] @ 0x70
  16592. 8007594: 2b00 cmp r3, #0
  16593. 8007596: d17c bne.n 8007692 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16594. {
  16595. /* Pointer to the common control register */
  16596. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  16597. 8007598: 687b ldr r3, [r7, #4]
  16598. 800759a: 681b ldr r3, [r3, #0]
  16599. 800759c: 4a47 ldr r2, [pc, #284] @ (80076bc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16600. 800759e: 4293 cmp r3, r2
  16601. 80075a0: d004 beq.n 80075ac <HAL_ADCEx_MultiModeConfigChannel+0x94>
  16602. 80075a2: 687b ldr r3, [r7, #4]
  16603. 80075a4: 681b ldr r3, [r3, #0]
  16604. 80075a6: 4a46 ldr r2, [pc, #280] @ (80076c0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16605. 80075a8: 4293 cmp r3, r2
  16606. 80075aa: d101 bne.n 80075b0 <HAL_ADCEx_MultiModeConfigChannel+0x98>
  16607. 80075ac: 4b45 ldr r3, [pc, #276] @ (80076c4 <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  16608. 80075ae: e000 b.n 80075b2 <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  16609. 80075b0: 4b45 ldr r3, [pc, #276] @ (80076c8 <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  16610. 80075b2: 66fb str r3, [r7, #108] @ 0x6c
  16611. /* If multimode is selected, configure all multimode parameters. */
  16612. /* Otherwise, reset multimode parameters (can be used in case of */
  16613. /* transition from multimode to independent mode). */
  16614. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16615. 80075b4: 683b ldr r3, [r7, #0]
  16616. 80075b6: 681b ldr r3, [r3, #0]
  16617. 80075b8: 2b00 cmp r3, #0
  16618. 80075ba: d039 beq.n 8007630 <HAL_ADCEx_MultiModeConfigChannel+0x118>
  16619. {
  16620. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  16621. 80075bc: 6efb ldr r3, [r7, #108] @ 0x6c
  16622. 80075be: 689b ldr r3, [r3, #8]
  16623. 80075c0: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16624. 80075c4: 683b ldr r3, [r7, #0]
  16625. 80075c6: 685b ldr r3, [r3, #4]
  16626. 80075c8: 431a orrs r2, r3
  16627. 80075ca: 6efb ldr r3, [r7, #108] @ 0x6c
  16628. 80075cc: 609a str r2, [r3, #8]
  16629. /* from 1 to 8 clock cycles for 12 bits */
  16630. /* from 1 to 6 clock cycles for 10 and 8 bits */
  16631. /* If a higher delay is selected, it will be clipped to maximum delay */
  16632. /* range */
  16633. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16634. 80075ce: 687b ldr r3, [r7, #4]
  16635. 80075d0: 681b ldr r3, [r3, #0]
  16636. 80075d2: 4a3a ldr r2, [pc, #232] @ (80076bc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16637. 80075d4: 4293 cmp r3, r2
  16638. 80075d6: d004 beq.n 80075e2 <HAL_ADCEx_MultiModeConfigChannel+0xca>
  16639. 80075d8: 687b ldr r3, [r7, #4]
  16640. 80075da: 681b ldr r3, [r3, #0]
  16641. 80075dc: 4a38 ldr r2, [pc, #224] @ (80076c0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16642. 80075de: 4293 cmp r3, r2
  16643. 80075e0: d10e bne.n 8007600 <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  16644. 80075e2: 4836 ldr r0, [pc, #216] @ (80076bc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16645. 80075e4: f7ff feda bl 800739c <LL_ADC_IsEnabled>
  16646. 80075e8: 4604 mov r4, r0
  16647. 80075ea: 4835 ldr r0, [pc, #212] @ (80076c0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16648. 80075ec: f7ff fed6 bl 800739c <LL_ADC_IsEnabled>
  16649. 80075f0: 4603 mov r3, r0
  16650. 80075f2: 4323 orrs r3, r4
  16651. 80075f4: 2b00 cmp r3, #0
  16652. 80075f6: bf0c ite eq
  16653. 80075f8: 2301 moveq r3, #1
  16654. 80075fa: 2300 movne r3, #0
  16655. 80075fc: b2db uxtb r3, r3
  16656. 80075fe: e008 b.n 8007612 <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  16657. 8007600: 4832 ldr r0, [pc, #200] @ (80076cc <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16658. 8007602: f7ff fecb bl 800739c <LL_ADC_IsEnabled>
  16659. 8007606: 4603 mov r3, r0
  16660. 8007608: 2b00 cmp r3, #0
  16661. 800760a: bf0c ite eq
  16662. 800760c: 2301 moveq r3, #1
  16663. 800760e: 2300 movne r3, #0
  16664. 8007610: b2db uxtb r3, r3
  16665. 8007612: 2b00 cmp r3, #0
  16666. 8007614: d047 beq.n 80076a6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16667. {
  16668. MODIFY_REG(tmpADC_Common->CCR,
  16669. 8007616: 6efb ldr r3, [r7, #108] @ 0x6c
  16670. 8007618: 689a ldr r2, [r3, #8]
  16671. 800761a: 4b2d ldr r3, [pc, #180] @ (80076d0 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16672. 800761c: 4013 ands r3, r2
  16673. 800761e: 683a ldr r2, [r7, #0]
  16674. 8007620: 6811 ldr r1, [r2, #0]
  16675. 8007622: 683a ldr r2, [r7, #0]
  16676. 8007624: 6892 ldr r2, [r2, #8]
  16677. 8007626: 430a orrs r2, r1
  16678. 8007628: 431a orrs r2, r3
  16679. 800762a: 6efb ldr r3, [r7, #108] @ 0x6c
  16680. 800762c: 609a str r2, [r3, #8]
  16681. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16682. 800762e: e03a b.n 80076a6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16683. );
  16684. }
  16685. }
  16686. else /* ADC_MODE_INDEPENDENT */
  16687. {
  16688. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  16689. 8007630: 6efb ldr r3, [r7, #108] @ 0x6c
  16690. 8007632: 689b ldr r3, [r3, #8]
  16691. 8007634: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16692. 8007638: 6efb ldr r3, [r7, #108] @ 0x6c
  16693. 800763a: 609a str r2, [r3, #8]
  16694. /* Parameters that can be updated only when ADC is disabled: */
  16695. /* - Multimode mode selection */
  16696. /* - Multimode delay */
  16697. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16698. 800763c: 687b ldr r3, [r7, #4]
  16699. 800763e: 681b ldr r3, [r3, #0]
  16700. 8007640: 4a1e ldr r2, [pc, #120] @ (80076bc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16701. 8007642: 4293 cmp r3, r2
  16702. 8007644: d004 beq.n 8007650 <HAL_ADCEx_MultiModeConfigChannel+0x138>
  16703. 8007646: 687b ldr r3, [r7, #4]
  16704. 8007648: 681b ldr r3, [r3, #0]
  16705. 800764a: 4a1d ldr r2, [pc, #116] @ (80076c0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16706. 800764c: 4293 cmp r3, r2
  16707. 800764e: d10e bne.n 800766e <HAL_ADCEx_MultiModeConfigChannel+0x156>
  16708. 8007650: 481a ldr r0, [pc, #104] @ (80076bc <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16709. 8007652: f7ff fea3 bl 800739c <LL_ADC_IsEnabled>
  16710. 8007656: 4604 mov r4, r0
  16711. 8007658: 4819 ldr r0, [pc, #100] @ (80076c0 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16712. 800765a: f7ff fe9f bl 800739c <LL_ADC_IsEnabled>
  16713. 800765e: 4603 mov r3, r0
  16714. 8007660: 4323 orrs r3, r4
  16715. 8007662: 2b00 cmp r3, #0
  16716. 8007664: bf0c ite eq
  16717. 8007666: 2301 moveq r3, #1
  16718. 8007668: 2300 movne r3, #0
  16719. 800766a: b2db uxtb r3, r3
  16720. 800766c: e008 b.n 8007680 <HAL_ADCEx_MultiModeConfigChannel+0x168>
  16721. 800766e: 4817 ldr r0, [pc, #92] @ (80076cc <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16722. 8007670: f7ff fe94 bl 800739c <LL_ADC_IsEnabled>
  16723. 8007674: 4603 mov r3, r0
  16724. 8007676: 2b00 cmp r3, #0
  16725. 8007678: bf0c ite eq
  16726. 800767a: 2301 moveq r3, #1
  16727. 800767c: 2300 movne r3, #0
  16728. 800767e: b2db uxtb r3, r3
  16729. 8007680: 2b00 cmp r3, #0
  16730. 8007682: d010 beq.n 80076a6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16731. {
  16732. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  16733. 8007684: 6efb ldr r3, [r7, #108] @ 0x6c
  16734. 8007686: 689a ldr r2, [r3, #8]
  16735. 8007688: 4b11 ldr r3, [pc, #68] @ (80076d0 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16736. 800768a: 4013 ands r3, r2
  16737. 800768c: 6efa ldr r2, [r7, #108] @ 0x6c
  16738. 800768e: 6093 str r3, [r2, #8]
  16739. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16740. 8007690: e009 b.n 80076a6 <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16741. /* If one of the ADC sharing the same common group is enabled, no update */
  16742. /* could be done on neither of the multimode structure parameters. */
  16743. else
  16744. {
  16745. /* Update ADC state machine to error */
  16746. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16747. 8007692: 687b ldr r3, [r7, #4]
  16748. 8007694: 6d5b ldr r3, [r3, #84] @ 0x54
  16749. 8007696: f043 0220 orr.w r2, r3, #32
  16750. 800769a: 687b ldr r3, [r7, #4]
  16751. 800769c: 655a str r2, [r3, #84] @ 0x54
  16752. tmp_hal_status = HAL_ERROR;
  16753. 800769e: 2301 movs r3, #1
  16754. 80076a0: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16755. 80076a4: e000 b.n 80076a8 <HAL_ADCEx_MultiModeConfigChannel+0x190>
  16756. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16757. 80076a6: bf00 nop
  16758. }
  16759. /* Process unlocked */
  16760. __HAL_UNLOCK(hadc);
  16761. 80076a8: 687b ldr r3, [r7, #4]
  16762. 80076aa: 2200 movs r2, #0
  16763. 80076ac: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16764. /* Return function status */
  16765. return tmp_hal_status;
  16766. 80076b0: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  16767. }
  16768. 80076b4: 4618 mov r0, r3
  16769. 80076b6: 377c adds r7, #124 @ 0x7c
  16770. 80076b8: 46bd mov sp, r7
  16771. 80076ba: bd90 pop {r4, r7, pc}
  16772. 80076bc: 40022000 .word 0x40022000
  16773. 80076c0: 40022100 .word 0x40022100
  16774. 80076c4: 40022300 .word 0x40022300
  16775. 80076c8: 58026300 .word 0x58026300
  16776. 80076cc: 58026000 .word 0x58026000
  16777. 80076d0: fffff0e0 .word 0xfffff0e0
  16778. 080076d4 <HAL_COMP_Init>:
  16779. * To unlock the configuration, perform a system reset.
  16780. * @param hcomp COMP handle
  16781. * @retval HAL status
  16782. */
  16783. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  16784. {
  16785. 80076d4: b580 push {r7, lr}
  16786. 80076d6: b088 sub sp, #32
  16787. 80076d8: af00 add r7, sp, #0
  16788. 80076da: 6078 str r0, [r7, #4]
  16789. uint32_t tmp_csr ;
  16790. uint32_t exti_line ;
  16791. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  16792. __IO uint32_t wait_loop_index = 0UL;
  16793. 80076dc: 2300 movs r3, #0
  16794. 80076de: 60fb str r3, [r7, #12]
  16795. HAL_StatusTypeDef status = HAL_OK;
  16796. 80076e0: 2300 movs r3, #0
  16797. 80076e2: 77fb strb r3, [r7, #31]
  16798. /* Check the COMP handle allocation and lock status */
  16799. if(hcomp == NULL)
  16800. 80076e4: 687b ldr r3, [r7, #4]
  16801. 80076e6: 2b00 cmp r3, #0
  16802. 80076e8: d102 bne.n 80076f0 <HAL_COMP_Init+0x1c>
  16803. {
  16804. status = HAL_ERROR;
  16805. 80076ea: 2301 movs r3, #1
  16806. 80076ec: 77fb strb r3, [r7, #31]
  16807. 80076ee: e10e b.n 800790e <HAL_COMP_Init+0x23a>
  16808. }
  16809. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16810. 80076f0: 687b ldr r3, [r7, #4]
  16811. 80076f2: 681b ldr r3, [r3, #0]
  16812. 80076f4: 681b ldr r3, [r3, #0]
  16813. 80076f6: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16814. 80076fa: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16815. 80076fe: d102 bne.n 8007706 <HAL_COMP_Init+0x32>
  16816. {
  16817. status = HAL_ERROR;
  16818. 8007700: 2301 movs r3, #1
  16819. 8007702: 77fb strb r3, [r7, #31]
  16820. 8007704: e103 b.n 800790e <HAL_COMP_Init+0x23a>
  16821. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  16822. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  16823. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  16824. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  16825. if(hcomp->State == HAL_COMP_STATE_RESET)
  16826. 8007706: 687b ldr r3, [r7, #4]
  16827. 8007708: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16828. 800770c: b2db uxtb r3, r3
  16829. 800770e: 2b00 cmp r3, #0
  16830. 8007710: d109 bne.n 8007726 <HAL_COMP_Init+0x52>
  16831. {
  16832. /* Allocate lock resource and initialize it */
  16833. hcomp->Lock = HAL_UNLOCKED;
  16834. 8007712: 687b ldr r3, [r7, #4]
  16835. 8007714: 2200 movs r2, #0
  16836. 8007716: f883 2024 strb.w r2, [r3, #36] @ 0x24
  16837. /* Set COMP error code to none */
  16838. COMP_CLEAR_ERRORCODE(hcomp);
  16839. 800771a: 687b ldr r3, [r7, #4]
  16840. 800771c: 2200 movs r2, #0
  16841. 800771e: 629a str r2, [r3, #40] @ 0x28
  16842. /* Init the low level hardware */
  16843. hcomp->MspInitCallback(hcomp);
  16844. #else
  16845. /* Init the low level hardware */
  16846. HAL_COMP_MspInit(hcomp);
  16847. 8007720: 6878 ldr r0, [r7, #4]
  16848. 8007722: f7fc fca9 bl 8004078 <HAL_COMP_MspInit>
  16849. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  16850. }
  16851. /* Memorize voltage scaler state before initialization */
  16852. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  16853. 8007726: 687b ldr r3, [r7, #4]
  16854. 8007728: 681b ldr r3, [r3, #0]
  16855. 800772a: 681b ldr r3, [r3, #0]
  16856. 800772c: f003 0304 and.w r3, r3, #4
  16857. 8007730: 61bb str r3, [r7, #24]
  16858. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  16859. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  16860. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  16861. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  16862. tmp_csr = (hcomp->Init.InvertingInput | \
  16863. 8007732: 687b ldr r3, [r7, #4]
  16864. 8007734: 691a ldr r2, [r3, #16]
  16865. hcomp->Init.NonInvertingInput | \
  16866. 8007736: 687b ldr r3, [r7, #4]
  16867. 8007738: 68db ldr r3, [r3, #12]
  16868. tmp_csr = (hcomp->Init.InvertingInput | \
  16869. 800773a: 431a orrs r2, r3
  16870. hcomp->Init.BlankingSrce | \
  16871. 800773c: 687b ldr r3, [r7, #4]
  16872. 800773e: 69db ldr r3, [r3, #28]
  16873. hcomp->Init.NonInvertingInput | \
  16874. 8007740: 431a orrs r2, r3
  16875. hcomp->Init.Hysteresis | \
  16876. 8007742: 687b ldr r3, [r7, #4]
  16877. 8007744: 695b ldr r3, [r3, #20]
  16878. hcomp->Init.BlankingSrce | \
  16879. 8007746: 431a orrs r2, r3
  16880. hcomp->Init.OutputPol | \
  16881. 8007748: 687b ldr r3, [r7, #4]
  16882. 800774a: 699b ldr r3, [r3, #24]
  16883. hcomp->Init.Hysteresis | \
  16884. 800774c: 431a orrs r2, r3
  16885. hcomp->Init.Mode );
  16886. 800774e: 687b ldr r3, [r7, #4]
  16887. 8007750: 689b ldr r3, [r3, #8]
  16888. tmp_csr = (hcomp->Init.InvertingInput | \
  16889. 8007752: 4313 orrs r3, r2
  16890. 8007754: 617b str r3, [r7, #20]
  16891. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  16892. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  16893. tmp_csr
  16894. );
  16895. #else
  16896. MODIFY_REG(hcomp->Instance->CFGR,
  16897. 8007756: 687b ldr r3, [r7, #4]
  16898. 8007758: 681b ldr r3, [r3, #0]
  16899. 800775a: 681a ldr r2, [r3, #0]
  16900. 800775c: 4b6e ldr r3, [pc, #440] @ (8007918 <HAL_COMP_Init+0x244>)
  16901. 800775e: 4013 ands r3, r2
  16902. 8007760: 687a ldr r2, [r7, #4]
  16903. 8007762: 6812 ldr r2, [r2, #0]
  16904. 8007764: 6979 ldr r1, [r7, #20]
  16905. 8007766: 430b orrs r3, r1
  16906. 8007768: 6013 str r3, [r2, #0]
  16907. #endif
  16908. /* Set window mode */
  16909. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  16910. /* instances. Therefore, this function can update another COMP */
  16911. /* instance that the one currently selected. */
  16912. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  16913. 800776a: 687b ldr r3, [r7, #4]
  16914. 800776c: 685b ldr r3, [r3, #4]
  16915. 800776e: 2b10 cmp r3, #16
  16916. 8007770: d108 bne.n 8007784 <HAL_COMP_Init+0xb0>
  16917. {
  16918. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16919. 8007772: 687b ldr r3, [r7, #4]
  16920. 8007774: 681b ldr r3, [r3, #0]
  16921. 8007776: 681a ldr r2, [r3, #0]
  16922. 8007778: 687b ldr r3, [r7, #4]
  16923. 800777a: 681b ldr r3, [r3, #0]
  16924. 800777c: f042 0210 orr.w r2, r2, #16
  16925. 8007780: 601a str r2, [r3, #0]
  16926. 8007782: e007 b.n 8007794 <HAL_COMP_Init+0xc0>
  16927. }
  16928. else
  16929. {
  16930. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16931. 8007784: 687b ldr r3, [r7, #4]
  16932. 8007786: 681b ldr r3, [r3, #0]
  16933. 8007788: 681a ldr r2, [r3, #0]
  16934. 800778a: 687b ldr r3, [r7, #4]
  16935. 800778c: 681b ldr r3, [r3, #0]
  16936. 800778e: f022 0210 bic.w r2, r2, #16
  16937. 8007792: 601a str r2, [r3, #0]
  16938. }
  16939. /* Delay for COMP scaler bridge voltage stabilization */
  16940. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  16941. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  16942. 8007794: 687b ldr r3, [r7, #4]
  16943. 8007796: 681b ldr r3, [r3, #0]
  16944. 8007798: 681b ldr r3, [r3, #0]
  16945. 800779a: f003 0304 and.w r3, r3, #4
  16946. 800779e: 2b00 cmp r3, #0
  16947. 80077a0: d016 beq.n 80077d0 <HAL_COMP_Init+0xfc>
  16948. 80077a2: 69bb ldr r3, [r7, #24]
  16949. 80077a4: 2b00 cmp r3, #0
  16950. 80077a6: d013 beq.n 80077d0 <HAL_COMP_Init+0xfc>
  16951. {
  16952. /* Wait loop initialization and execution */
  16953. /* Note: Variable divided by 2 to compensate partially */
  16954. /* CPU processing cycles.*/
  16955. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  16956. 80077a8: 4b5c ldr r3, [pc, #368] @ (800791c <HAL_COMP_Init+0x248>)
  16957. 80077aa: 681b ldr r3, [r3, #0]
  16958. 80077ac: 099b lsrs r3, r3, #6
  16959. 80077ae: 4a5c ldr r2, [pc, #368] @ (8007920 <HAL_COMP_Init+0x24c>)
  16960. 80077b0: fba2 2303 umull r2, r3, r2, r3
  16961. 80077b4: 099b lsrs r3, r3, #6
  16962. 80077b6: 1c5a adds r2, r3, #1
  16963. 80077b8: 4613 mov r3, r2
  16964. 80077ba: 009b lsls r3, r3, #2
  16965. 80077bc: 4413 add r3, r2
  16966. 80077be: 009b lsls r3, r3, #2
  16967. 80077c0: 60fb str r3, [r7, #12]
  16968. while(wait_loop_index != 0UL)
  16969. 80077c2: e002 b.n 80077ca <HAL_COMP_Init+0xf6>
  16970. {
  16971. wait_loop_index --;
  16972. 80077c4: 68fb ldr r3, [r7, #12]
  16973. 80077c6: 3b01 subs r3, #1
  16974. 80077c8: 60fb str r3, [r7, #12]
  16975. while(wait_loop_index != 0UL)
  16976. 80077ca: 68fb ldr r3, [r7, #12]
  16977. 80077cc: 2b00 cmp r3, #0
  16978. 80077ce: d1f9 bne.n 80077c4 <HAL_COMP_Init+0xf0>
  16979. }
  16980. }
  16981. /* Get the EXTI line corresponding to the selected COMP instance */
  16982. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  16983. 80077d0: 687b ldr r3, [r7, #4]
  16984. 80077d2: 681b ldr r3, [r3, #0]
  16985. 80077d4: 4a53 ldr r2, [pc, #332] @ (8007924 <HAL_COMP_Init+0x250>)
  16986. 80077d6: 4293 cmp r3, r2
  16987. 80077d8: d102 bne.n 80077e0 <HAL_COMP_Init+0x10c>
  16988. 80077da: f44f 1380 mov.w r3, #1048576 @ 0x100000
  16989. 80077de: e001 b.n 80077e4 <HAL_COMP_Init+0x110>
  16990. 80077e0: f44f 1300 mov.w r3, #2097152 @ 0x200000
  16991. 80077e4: 613b str r3, [r7, #16]
  16992. /* Manage EXTI settings */
  16993. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  16994. 80077e6: 687b ldr r3, [r7, #4]
  16995. 80077e8: 6a1b ldr r3, [r3, #32]
  16996. 80077ea: f003 0303 and.w r3, r3, #3
  16997. 80077ee: 2b00 cmp r3, #0
  16998. 80077f0: d06d beq.n 80078ce <HAL_COMP_Init+0x1fa>
  16999. {
  17000. /* Configure EXTI rising edge */
  17001. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  17002. 80077f2: 687b ldr r3, [r7, #4]
  17003. 80077f4: 6a1b ldr r3, [r3, #32]
  17004. 80077f6: f003 0310 and.w r3, r3, #16
  17005. 80077fa: 2b00 cmp r3, #0
  17006. 80077fc: d008 beq.n 8007810 <HAL_COMP_Init+0x13c>
  17007. {
  17008. SET_BIT(EXTI->RTSR1, exti_line);
  17009. 80077fe: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17010. 8007802: 681a ldr r2, [r3, #0]
  17011. 8007804: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17012. 8007808: 693b ldr r3, [r7, #16]
  17013. 800780a: 4313 orrs r3, r2
  17014. 800780c: 600b str r3, [r1, #0]
  17015. 800780e: e008 b.n 8007822 <HAL_COMP_Init+0x14e>
  17016. }
  17017. else
  17018. {
  17019. CLEAR_BIT(EXTI->RTSR1, exti_line);
  17020. 8007810: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17021. 8007814: 681a ldr r2, [r3, #0]
  17022. 8007816: 693b ldr r3, [r7, #16]
  17023. 8007818: 43db mvns r3, r3
  17024. 800781a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17025. 800781e: 4013 ands r3, r2
  17026. 8007820: 600b str r3, [r1, #0]
  17027. }
  17028. /* Configure EXTI falling edge */
  17029. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  17030. 8007822: 687b ldr r3, [r7, #4]
  17031. 8007824: 6a1b ldr r3, [r3, #32]
  17032. 8007826: f003 0320 and.w r3, r3, #32
  17033. 800782a: 2b00 cmp r3, #0
  17034. 800782c: d008 beq.n 8007840 <HAL_COMP_Init+0x16c>
  17035. {
  17036. SET_BIT(EXTI->FTSR1, exti_line);
  17037. 800782e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17038. 8007832: 685a ldr r2, [r3, #4]
  17039. 8007834: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17040. 8007838: 693b ldr r3, [r7, #16]
  17041. 800783a: 4313 orrs r3, r2
  17042. 800783c: 604b str r3, [r1, #4]
  17043. 800783e: e008 b.n 8007852 <HAL_COMP_Init+0x17e>
  17044. }
  17045. else
  17046. {
  17047. CLEAR_BIT(EXTI->FTSR1, exti_line);
  17048. 8007840: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17049. 8007844: 685a ldr r2, [r3, #4]
  17050. 8007846: 693b ldr r3, [r7, #16]
  17051. 8007848: 43db mvns r3, r3
  17052. 800784a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17053. 800784e: 4013 ands r3, r2
  17054. 8007850: 604b str r3, [r1, #4]
  17055. }
  17056. #if !defined (CORE_CM4)
  17057. /* Clear COMP EXTI pending bit (if any) */
  17058. WRITE_REG(EXTI->PR1, exti_line);
  17059. 8007852: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  17060. 8007856: 693b ldr r3, [r7, #16]
  17061. 8007858: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  17062. /* Configure EXTI event mode */
  17063. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  17064. 800785c: 687b ldr r3, [r7, #4]
  17065. 800785e: 6a1b ldr r3, [r3, #32]
  17066. 8007860: f003 0302 and.w r3, r3, #2
  17067. 8007864: 2b00 cmp r3, #0
  17068. 8007866: d00a beq.n 800787e <HAL_COMP_Init+0x1aa>
  17069. {
  17070. SET_BIT(EXTI->EMR1, exti_line);
  17071. 8007868: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17072. 800786c: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17073. 8007870: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17074. 8007874: 693b ldr r3, [r7, #16]
  17075. 8007876: 4313 orrs r3, r2
  17076. 8007878: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17077. 800787c: e00a b.n 8007894 <HAL_COMP_Init+0x1c0>
  17078. }
  17079. else
  17080. {
  17081. CLEAR_BIT(EXTI->EMR1, exti_line);
  17082. 800787e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17083. 8007882: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17084. 8007886: 693b ldr r3, [r7, #16]
  17085. 8007888: 43db mvns r3, r3
  17086. 800788a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17087. 800788e: 4013 ands r3, r2
  17088. 8007890: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17089. }
  17090. /* Configure EXTI interrupt mode */
  17091. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  17092. 8007894: 687b ldr r3, [r7, #4]
  17093. 8007896: 6a1b ldr r3, [r3, #32]
  17094. 8007898: f003 0301 and.w r3, r3, #1
  17095. 800789c: 2b00 cmp r3, #0
  17096. 800789e: d00a beq.n 80078b6 <HAL_COMP_Init+0x1e2>
  17097. {
  17098. SET_BIT(EXTI->IMR1, exti_line);
  17099. 80078a0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17100. 80078a4: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17101. 80078a8: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17102. 80078ac: 693b ldr r3, [r7, #16]
  17103. 80078ae: 4313 orrs r3, r2
  17104. 80078b0: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17105. 80078b4: e021 b.n 80078fa <HAL_COMP_Init+0x226>
  17106. }
  17107. else
  17108. {
  17109. CLEAR_BIT(EXTI->IMR1, exti_line);
  17110. 80078b6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17111. 80078ba: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17112. 80078be: 693b ldr r3, [r7, #16]
  17113. 80078c0: 43db mvns r3, r3
  17114. 80078c2: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17115. 80078c6: 4013 ands r3, r2
  17116. 80078c8: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17117. 80078cc: e015 b.n 80078fa <HAL_COMP_Init+0x226>
  17118. }
  17119. }
  17120. else
  17121. {
  17122. /* Disable EXTI event mode */
  17123. CLEAR_BIT(EXTI->EMR1, exti_line);
  17124. 80078ce: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17125. 80078d2: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17126. 80078d6: 693b ldr r3, [r7, #16]
  17127. 80078d8: 43db mvns r3, r3
  17128. 80078da: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17129. 80078de: 4013 ands r3, r2
  17130. 80078e0: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17131. /* Disable EXTI interrupt mode */
  17132. CLEAR_BIT(EXTI->IMR1, exti_line);
  17133. 80078e4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17134. 80078e8: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17135. 80078ec: 693b ldr r3, [r7, #16]
  17136. 80078ee: 43db mvns r3, r3
  17137. 80078f0: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17138. 80078f4: 4013 ands r3, r2
  17139. 80078f6: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17140. }
  17141. #endif
  17142. /* Set HAL COMP handle state */
  17143. /* Note: Transition from state reset to state ready, */
  17144. /* otherwise (coming from state ready or busy) no state update. */
  17145. if (hcomp->State == HAL_COMP_STATE_RESET)
  17146. 80078fa: 687b ldr r3, [r7, #4]
  17147. 80078fc: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17148. 8007900: b2db uxtb r3, r3
  17149. 8007902: 2b00 cmp r3, #0
  17150. 8007904: d103 bne.n 800790e <HAL_COMP_Init+0x23a>
  17151. {
  17152. hcomp->State = HAL_COMP_STATE_READY;
  17153. 8007906: 687b ldr r3, [r7, #4]
  17154. 8007908: 2201 movs r2, #1
  17155. 800790a: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17156. }
  17157. }
  17158. return status;
  17159. 800790e: 7ffb ldrb r3, [r7, #31]
  17160. }
  17161. 8007910: 4618 mov r0, r3
  17162. 8007912: 3720 adds r7, #32
  17163. 8007914: 46bd mov sp, r7
  17164. 8007916: bd80 pop {r7, pc}
  17165. 8007918: f0e8cce1 .word 0xf0e8cce1
  17166. 800791c: 24000034 .word 0x24000034
  17167. 8007920: 053e2d63 .word 0x053e2d63
  17168. 8007924: 5800380c .word 0x5800380c
  17169. 08007928 <HAL_COMP_Start>:
  17170. * @brief Start the comparator.
  17171. * @param hcomp COMP handle
  17172. * @retval HAL status
  17173. */
  17174. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  17175. {
  17176. 8007928: b480 push {r7}
  17177. 800792a: b085 sub sp, #20
  17178. 800792c: af00 add r7, sp, #0
  17179. 800792e: 6078 str r0, [r7, #4]
  17180. __IO uint32_t wait_loop_index = 0UL;
  17181. 8007930: 2300 movs r3, #0
  17182. 8007932: 60bb str r3, [r7, #8]
  17183. HAL_StatusTypeDef status = HAL_OK;
  17184. 8007934: 2300 movs r3, #0
  17185. 8007936: 73fb strb r3, [r7, #15]
  17186. /* Check the COMP handle allocation and lock status */
  17187. if(hcomp == NULL)
  17188. 8007938: 687b ldr r3, [r7, #4]
  17189. 800793a: 2b00 cmp r3, #0
  17190. 800793c: d102 bne.n 8007944 <HAL_COMP_Start+0x1c>
  17191. {
  17192. status = HAL_ERROR;
  17193. 800793e: 2301 movs r3, #1
  17194. 8007940: 73fb strb r3, [r7, #15]
  17195. 8007942: e030 b.n 80079a6 <HAL_COMP_Start+0x7e>
  17196. }
  17197. else if(__HAL_COMP_IS_LOCKED(hcomp))
  17198. 8007944: 687b ldr r3, [r7, #4]
  17199. 8007946: 681b ldr r3, [r3, #0]
  17200. 8007948: 681b ldr r3, [r3, #0]
  17201. 800794a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  17202. 800794e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  17203. 8007952: d102 bne.n 800795a <HAL_COMP_Start+0x32>
  17204. {
  17205. status = HAL_ERROR;
  17206. 8007954: 2301 movs r3, #1
  17207. 8007956: 73fb strb r3, [r7, #15]
  17208. 8007958: e025 b.n 80079a6 <HAL_COMP_Start+0x7e>
  17209. else
  17210. {
  17211. /* Check the parameter */
  17212. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17213. if(hcomp->State == HAL_COMP_STATE_READY)
  17214. 800795a: 687b ldr r3, [r7, #4]
  17215. 800795c: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17216. 8007960: b2db uxtb r3, r3
  17217. 8007962: 2b01 cmp r3, #1
  17218. 8007964: d11d bne.n 80079a2 <HAL_COMP_Start+0x7a>
  17219. {
  17220. /* Enable the selected comparator */
  17221. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  17222. 8007966: 687b ldr r3, [r7, #4]
  17223. 8007968: 681b ldr r3, [r3, #0]
  17224. 800796a: 681a ldr r2, [r3, #0]
  17225. 800796c: 687b ldr r3, [r7, #4]
  17226. 800796e: 681b ldr r3, [r3, #0]
  17227. 8007970: f042 0201 orr.w r2, r2, #1
  17228. 8007974: 601a str r2, [r3, #0]
  17229. /* Set HAL COMP handle state */
  17230. hcomp->State = HAL_COMP_STATE_BUSY;
  17231. 8007976: 687b ldr r3, [r7, #4]
  17232. 8007978: 2202 movs r2, #2
  17233. 800797a: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17234. /* Delay for COMP startup time */
  17235. /* Wait loop initialization and execution */
  17236. /* Note: Variable divided by 2 to compensate partially */
  17237. /* CPU processing cycles. */
  17238. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  17239. 800797e: 4b0d ldr r3, [pc, #52] @ (80079b4 <HAL_COMP_Start+0x8c>)
  17240. 8007980: 681b ldr r3, [r3, #0]
  17241. 8007982: 099b lsrs r3, r3, #6
  17242. 8007984: 4a0c ldr r2, [pc, #48] @ (80079b8 <HAL_COMP_Start+0x90>)
  17243. 8007986: fba2 2303 umull r2, r3, r2, r3
  17244. 800798a: 099b lsrs r3, r3, #6
  17245. 800798c: 3301 adds r3, #1
  17246. 800798e: 00db lsls r3, r3, #3
  17247. 8007990: 60bb str r3, [r7, #8]
  17248. while(wait_loop_index != 0UL)
  17249. 8007992: e002 b.n 800799a <HAL_COMP_Start+0x72>
  17250. {
  17251. wait_loop_index--;
  17252. 8007994: 68bb ldr r3, [r7, #8]
  17253. 8007996: 3b01 subs r3, #1
  17254. 8007998: 60bb str r3, [r7, #8]
  17255. while(wait_loop_index != 0UL)
  17256. 800799a: 68bb ldr r3, [r7, #8]
  17257. 800799c: 2b00 cmp r3, #0
  17258. 800799e: d1f9 bne.n 8007994 <HAL_COMP_Start+0x6c>
  17259. 80079a0: e001 b.n 80079a6 <HAL_COMP_Start+0x7e>
  17260. }
  17261. }
  17262. else
  17263. {
  17264. status = HAL_ERROR;
  17265. 80079a2: 2301 movs r3, #1
  17266. 80079a4: 73fb strb r3, [r7, #15]
  17267. }
  17268. }
  17269. return status;
  17270. 80079a6: 7bfb ldrb r3, [r7, #15]
  17271. }
  17272. 80079a8: 4618 mov r0, r3
  17273. 80079aa: 3714 adds r7, #20
  17274. 80079ac: 46bd mov sp, r7
  17275. 80079ae: f85d 7b04 ldr.w r7, [sp], #4
  17276. 80079b2: 4770 bx lr
  17277. 80079b4: 24000034 .word 0x24000034
  17278. 80079b8: 053e2d63 .word 0x053e2d63
  17279. 080079bc <HAL_COMP_GetOutputLevel>:
  17280. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  17281. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  17282. *
  17283. */
  17284. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  17285. {
  17286. 80079bc: b480 push {r7}
  17287. 80079be: b083 sub sp, #12
  17288. 80079c0: af00 add r7, sp, #0
  17289. 80079c2: 6078 str r0, [r7, #4]
  17290. /* Check the parameter */
  17291. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17292. if (hcomp->Instance == COMP1)
  17293. 80079c4: 687b ldr r3, [r7, #4]
  17294. 80079c6: 681b ldr r3, [r3, #0]
  17295. 80079c8: 4a09 ldr r2, [pc, #36] @ (80079f0 <HAL_COMP_GetOutputLevel+0x34>)
  17296. 80079ca: 4293 cmp r3, r2
  17297. 80079cc: d104 bne.n 80079d8 <HAL_COMP_GetOutputLevel+0x1c>
  17298. {
  17299. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  17300. 80079ce: 4b09 ldr r3, [pc, #36] @ (80079f4 <HAL_COMP_GetOutputLevel+0x38>)
  17301. 80079d0: 681b ldr r3, [r3, #0]
  17302. 80079d2: f003 0301 and.w r3, r3, #1
  17303. 80079d6: e004 b.n 80079e2 <HAL_COMP_GetOutputLevel+0x26>
  17304. }
  17305. else
  17306. {
  17307. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  17308. 80079d8: 4b06 ldr r3, [pc, #24] @ (80079f4 <HAL_COMP_GetOutputLevel+0x38>)
  17309. 80079da: 681b ldr r3, [r3, #0]
  17310. 80079dc: 085b lsrs r3, r3, #1
  17311. 80079de: f003 0301 and.w r3, r3, #1
  17312. }
  17313. }
  17314. 80079e2: 4618 mov r0, r3
  17315. 80079e4: 370c adds r7, #12
  17316. 80079e6: 46bd mov sp, r7
  17317. 80079e8: f85d 7b04 ldr.w r7, [sp], #4
  17318. 80079ec: 4770 bx lr
  17319. 80079ee: bf00 nop
  17320. 80079f0: 5800380c .word 0x5800380c
  17321. 80079f4: 58003800 .word 0x58003800
  17322. 080079f8 <__NVIC_SetPriorityGrouping>:
  17323. {
  17324. 80079f8: b480 push {r7}
  17325. 80079fa: b085 sub sp, #20
  17326. 80079fc: af00 add r7, sp, #0
  17327. 80079fe: 6078 str r0, [r7, #4]
  17328. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17329. 8007a00: 687b ldr r3, [r7, #4]
  17330. 8007a02: f003 0307 and.w r3, r3, #7
  17331. 8007a06: 60fb str r3, [r7, #12]
  17332. reg_value = SCB->AIRCR; /* read old register configuration */
  17333. 8007a08: 4b0b ldr r3, [pc, #44] @ (8007a38 <__NVIC_SetPriorityGrouping+0x40>)
  17334. 8007a0a: 68db ldr r3, [r3, #12]
  17335. 8007a0c: 60bb str r3, [r7, #8]
  17336. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  17337. 8007a0e: 68ba ldr r2, [r7, #8]
  17338. 8007a10: f64f 03ff movw r3, #63743 @ 0xf8ff
  17339. 8007a14: 4013 ands r3, r2
  17340. 8007a16: 60bb str r3, [r7, #8]
  17341. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  17342. 8007a18: 68fb ldr r3, [r7, #12]
  17343. 8007a1a: 021a lsls r2, r3, #8
  17344. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  17345. 8007a1c: 68bb ldr r3, [r7, #8]
  17346. 8007a1e: 431a orrs r2, r3
  17347. reg_value = (reg_value |
  17348. 8007a20: 4b06 ldr r3, [pc, #24] @ (8007a3c <__NVIC_SetPriorityGrouping+0x44>)
  17349. 8007a22: 4313 orrs r3, r2
  17350. 8007a24: 60bb str r3, [r7, #8]
  17351. SCB->AIRCR = reg_value;
  17352. 8007a26: 4a04 ldr r2, [pc, #16] @ (8007a38 <__NVIC_SetPriorityGrouping+0x40>)
  17353. 8007a28: 68bb ldr r3, [r7, #8]
  17354. 8007a2a: 60d3 str r3, [r2, #12]
  17355. }
  17356. 8007a2c: bf00 nop
  17357. 8007a2e: 3714 adds r7, #20
  17358. 8007a30: 46bd mov sp, r7
  17359. 8007a32: f85d 7b04 ldr.w r7, [sp], #4
  17360. 8007a36: 4770 bx lr
  17361. 8007a38: e000ed00 .word 0xe000ed00
  17362. 8007a3c: 05fa0000 .word 0x05fa0000
  17363. 08007a40 <__NVIC_GetPriorityGrouping>:
  17364. {
  17365. 8007a40: b480 push {r7}
  17366. 8007a42: af00 add r7, sp, #0
  17367. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  17368. 8007a44: 4b04 ldr r3, [pc, #16] @ (8007a58 <__NVIC_GetPriorityGrouping+0x18>)
  17369. 8007a46: 68db ldr r3, [r3, #12]
  17370. 8007a48: 0a1b lsrs r3, r3, #8
  17371. 8007a4a: f003 0307 and.w r3, r3, #7
  17372. }
  17373. 8007a4e: 4618 mov r0, r3
  17374. 8007a50: 46bd mov sp, r7
  17375. 8007a52: f85d 7b04 ldr.w r7, [sp], #4
  17376. 8007a56: 4770 bx lr
  17377. 8007a58: e000ed00 .word 0xe000ed00
  17378. 08007a5c <__NVIC_EnableIRQ>:
  17379. {
  17380. 8007a5c: b480 push {r7}
  17381. 8007a5e: b083 sub sp, #12
  17382. 8007a60: af00 add r7, sp, #0
  17383. 8007a62: 4603 mov r3, r0
  17384. 8007a64: 80fb strh r3, [r7, #6]
  17385. if ((int32_t)(IRQn) >= 0)
  17386. 8007a66: f9b7 3006 ldrsh.w r3, [r7, #6]
  17387. 8007a6a: 2b00 cmp r3, #0
  17388. 8007a6c: db0b blt.n 8007a86 <__NVIC_EnableIRQ+0x2a>
  17389. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  17390. 8007a6e: 88fb ldrh r3, [r7, #6]
  17391. 8007a70: f003 021f and.w r2, r3, #31
  17392. 8007a74: 4907 ldr r1, [pc, #28] @ (8007a94 <__NVIC_EnableIRQ+0x38>)
  17393. 8007a76: f9b7 3006 ldrsh.w r3, [r7, #6]
  17394. 8007a7a: 095b lsrs r3, r3, #5
  17395. 8007a7c: 2001 movs r0, #1
  17396. 8007a7e: fa00 f202 lsl.w r2, r0, r2
  17397. 8007a82: f841 2023 str.w r2, [r1, r3, lsl #2]
  17398. }
  17399. 8007a86: bf00 nop
  17400. 8007a88: 370c adds r7, #12
  17401. 8007a8a: 46bd mov sp, r7
  17402. 8007a8c: f85d 7b04 ldr.w r7, [sp], #4
  17403. 8007a90: 4770 bx lr
  17404. 8007a92: bf00 nop
  17405. 8007a94: e000e100 .word 0xe000e100
  17406. 08007a98 <__NVIC_SetPriority>:
  17407. {
  17408. 8007a98: b480 push {r7}
  17409. 8007a9a: b083 sub sp, #12
  17410. 8007a9c: af00 add r7, sp, #0
  17411. 8007a9e: 4603 mov r3, r0
  17412. 8007aa0: 6039 str r1, [r7, #0]
  17413. 8007aa2: 80fb strh r3, [r7, #6]
  17414. if ((int32_t)(IRQn) >= 0)
  17415. 8007aa4: f9b7 3006 ldrsh.w r3, [r7, #6]
  17416. 8007aa8: 2b00 cmp r3, #0
  17417. 8007aaa: db0a blt.n 8007ac2 <__NVIC_SetPriority+0x2a>
  17418. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17419. 8007aac: 683b ldr r3, [r7, #0]
  17420. 8007aae: b2da uxtb r2, r3
  17421. 8007ab0: 490c ldr r1, [pc, #48] @ (8007ae4 <__NVIC_SetPriority+0x4c>)
  17422. 8007ab2: f9b7 3006 ldrsh.w r3, [r7, #6]
  17423. 8007ab6: 0112 lsls r2, r2, #4
  17424. 8007ab8: b2d2 uxtb r2, r2
  17425. 8007aba: 440b add r3, r1
  17426. 8007abc: f883 2300 strb.w r2, [r3, #768] @ 0x300
  17427. }
  17428. 8007ac0: e00a b.n 8007ad8 <__NVIC_SetPriority+0x40>
  17429. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17430. 8007ac2: 683b ldr r3, [r7, #0]
  17431. 8007ac4: b2da uxtb r2, r3
  17432. 8007ac6: 4908 ldr r1, [pc, #32] @ (8007ae8 <__NVIC_SetPriority+0x50>)
  17433. 8007ac8: 88fb ldrh r3, [r7, #6]
  17434. 8007aca: f003 030f and.w r3, r3, #15
  17435. 8007ace: 3b04 subs r3, #4
  17436. 8007ad0: 0112 lsls r2, r2, #4
  17437. 8007ad2: b2d2 uxtb r2, r2
  17438. 8007ad4: 440b add r3, r1
  17439. 8007ad6: 761a strb r2, [r3, #24]
  17440. }
  17441. 8007ad8: bf00 nop
  17442. 8007ada: 370c adds r7, #12
  17443. 8007adc: 46bd mov sp, r7
  17444. 8007ade: f85d 7b04 ldr.w r7, [sp], #4
  17445. 8007ae2: 4770 bx lr
  17446. 8007ae4: e000e100 .word 0xe000e100
  17447. 8007ae8: e000ed00 .word 0xe000ed00
  17448. 08007aec <NVIC_EncodePriority>:
  17449. {
  17450. 8007aec: b480 push {r7}
  17451. 8007aee: b089 sub sp, #36 @ 0x24
  17452. 8007af0: af00 add r7, sp, #0
  17453. 8007af2: 60f8 str r0, [r7, #12]
  17454. 8007af4: 60b9 str r1, [r7, #8]
  17455. 8007af6: 607a str r2, [r7, #4]
  17456. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17457. 8007af8: 68fb ldr r3, [r7, #12]
  17458. 8007afa: f003 0307 and.w r3, r3, #7
  17459. 8007afe: 61fb str r3, [r7, #28]
  17460. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  17461. 8007b00: 69fb ldr r3, [r7, #28]
  17462. 8007b02: f1c3 0307 rsb r3, r3, #7
  17463. 8007b06: 2b04 cmp r3, #4
  17464. 8007b08: bf28 it cs
  17465. 8007b0a: 2304 movcs r3, #4
  17466. 8007b0c: 61bb str r3, [r7, #24]
  17467. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  17468. 8007b0e: 69fb ldr r3, [r7, #28]
  17469. 8007b10: 3304 adds r3, #4
  17470. 8007b12: 2b06 cmp r3, #6
  17471. 8007b14: d902 bls.n 8007b1c <NVIC_EncodePriority+0x30>
  17472. 8007b16: 69fb ldr r3, [r7, #28]
  17473. 8007b18: 3b03 subs r3, #3
  17474. 8007b1a: e000 b.n 8007b1e <NVIC_EncodePriority+0x32>
  17475. 8007b1c: 2300 movs r3, #0
  17476. 8007b1e: 617b str r3, [r7, #20]
  17477. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17478. 8007b20: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17479. 8007b24: 69bb ldr r3, [r7, #24]
  17480. 8007b26: fa02 f303 lsl.w r3, r2, r3
  17481. 8007b2a: 43da mvns r2, r3
  17482. 8007b2c: 68bb ldr r3, [r7, #8]
  17483. 8007b2e: 401a ands r2, r3
  17484. 8007b30: 697b ldr r3, [r7, #20]
  17485. 8007b32: 409a lsls r2, r3
  17486. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  17487. 8007b34: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  17488. 8007b38: 697b ldr r3, [r7, #20]
  17489. 8007b3a: fa01 f303 lsl.w r3, r1, r3
  17490. 8007b3e: 43d9 mvns r1, r3
  17491. 8007b40: 687b ldr r3, [r7, #4]
  17492. 8007b42: 400b ands r3, r1
  17493. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17494. 8007b44: 4313 orrs r3, r2
  17495. }
  17496. 8007b46: 4618 mov r0, r3
  17497. 8007b48: 3724 adds r7, #36 @ 0x24
  17498. 8007b4a: 46bd mov sp, r7
  17499. 8007b4c: f85d 7b04 ldr.w r7, [sp], #4
  17500. 8007b50: 4770 bx lr
  17501. 08007b52 <HAL_NVIC_SetPriorityGrouping>:
  17502. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  17503. * The pending IRQ priority will be managed only by the subpriority.
  17504. * @retval None
  17505. */
  17506. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  17507. {
  17508. 8007b52: b580 push {r7, lr}
  17509. 8007b54: b082 sub sp, #8
  17510. 8007b56: af00 add r7, sp, #0
  17511. 8007b58: 6078 str r0, [r7, #4]
  17512. /* Check the parameters */
  17513. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  17514. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  17515. NVIC_SetPriorityGrouping(PriorityGroup);
  17516. 8007b5a: 6878 ldr r0, [r7, #4]
  17517. 8007b5c: f7ff ff4c bl 80079f8 <__NVIC_SetPriorityGrouping>
  17518. }
  17519. 8007b60: bf00 nop
  17520. 8007b62: 3708 adds r7, #8
  17521. 8007b64: 46bd mov sp, r7
  17522. 8007b66: bd80 pop {r7, pc}
  17523. 08007b68 <HAL_NVIC_SetPriority>:
  17524. * This parameter can be a value between 0 and 15
  17525. * A lower priority value indicates a higher priority.
  17526. * @retval None
  17527. */
  17528. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  17529. {
  17530. 8007b68: b580 push {r7, lr}
  17531. 8007b6a: b086 sub sp, #24
  17532. 8007b6c: af00 add r7, sp, #0
  17533. 8007b6e: 4603 mov r3, r0
  17534. 8007b70: 60b9 str r1, [r7, #8]
  17535. 8007b72: 607a str r2, [r7, #4]
  17536. 8007b74: 81fb strh r3, [r7, #14]
  17537. /* Check the parameters */
  17538. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  17539. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  17540. prioritygroup = NVIC_GetPriorityGrouping();
  17541. 8007b76: f7ff ff63 bl 8007a40 <__NVIC_GetPriorityGrouping>
  17542. 8007b7a: 6178 str r0, [r7, #20]
  17543. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  17544. 8007b7c: 687a ldr r2, [r7, #4]
  17545. 8007b7e: 68b9 ldr r1, [r7, #8]
  17546. 8007b80: 6978 ldr r0, [r7, #20]
  17547. 8007b82: f7ff ffb3 bl 8007aec <NVIC_EncodePriority>
  17548. 8007b86: 4602 mov r2, r0
  17549. 8007b88: f9b7 300e ldrsh.w r3, [r7, #14]
  17550. 8007b8c: 4611 mov r1, r2
  17551. 8007b8e: 4618 mov r0, r3
  17552. 8007b90: f7ff ff82 bl 8007a98 <__NVIC_SetPriority>
  17553. }
  17554. 8007b94: bf00 nop
  17555. 8007b96: 3718 adds r7, #24
  17556. 8007b98: 46bd mov sp, r7
  17557. 8007b9a: bd80 pop {r7, pc}
  17558. 08007b9c <HAL_NVIC_EnableIRQ>:
  17559. * This parameter can be an enumerator of IRQn_Type enumeration
  17560. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  17561. * @retval None
  17562. */
  17563. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  17564. {
  17565. 8007b9c: b580 push {r7, lr}
  17566. 8007b9e: b082 sub sp, #8
  17567. 8007ba0: af00 add r7, sp, #0
  17568. 8007ba2: 4603 mov r3, r0
  17569. 8007ba4: 80fb strh r3, [r7, #6]
  17570. /* Check the parameters */
  17571. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  17572. /* Enable interrupt */
  17573. NVIC_EnableIRQ(IRQn);
  17574. 8007ba6: f9b7 3006 ldrsh.w r3, [r7, #6]
  17575. 8007baa: 4618 mov r0, r3
  17576. 8007bac: f7ff ff56 bl 8007a5c <__NVIC_EnableIRQ>
  17577. }
  17578. 8007bb0: bf00 nop
  17579. 8007bb2: 3708 adds r7, #8
  17580. 8007bb4: 46bd mov sp, r7
  17581. 8007bb6: bd80 pop {r7, pc}
  17582. 08007bb8 <HAL_MPU_Disable>:
  17583. /**
  17584. * @brief Disables the MPU
  17585. * @retval None
  17586. */
  17587. void HAL_MPU_Disable(void)
  17588. {
  17589. 8007bb8: b480 push {r7}
  17590. 8007bba: af00 add r7, sp, #0
  17591. __ASM volatile ("dmb 0xF":::"memory");
  17592. 8007bbc: f3bf 8f5f dmb sy
  17593. }
  17594. 8007bc0: bf00 nop
  17595. /* Make sure outstanding transfers are done */
  17596. __DMB();
  17597. /* Disable fault exceptions */
  17598. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  17599. 8007bc2: 4b07 ldr r3, [pc, #28] @ (8007be0 <HAL_MPU_Disable+0x28>)
  17600. 8007bc4: 6a5b ldr r3, [r3, #36] @ 0x24
  17601. 8007bc6: 4a06 ldr r2, [pc, #24] @ (8007be0 <HAL_MPU_Disable+0x28>)
  17602. 8007bc8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  17603. 8007bcc: 6253 str r3, [r2, #36] @ 0x24
  17604. /* Disable the MPU and clear the control register*/
  17605. MPU->CTRL = 0;
  17606. 8007bce: 4b05 ldr r3, [pc, #20] @ (8007be4 <HAL_MPU_Disable+0x2c>)
  17607. 8007bd0: 2200 movs r2, #0
  17608. 8007bd2: 605a str r2, [r3, #4]
  17609. }
  17610. 8007bd4: bf00 nop
  17611. 8007bd6: 46bd mov sp, r7
  17612. 8007bd8: f85d 7b04 ldr.w r7, [sp], #4
  17613. 8007bdc: 4770 bx lr
  17614. 8007bde: bf00 nop
  17615. 8007be0: e000ed00 .word 0xe000ed00
  17616. 8007be4: e000ed90 .word 0xe000ed90
  17617. 08007be8 <HAL_MPU_Enable>:
  17618. * @arg MPU_PRIVILEGED_DEFAULT
  17619. * @arg MPU_HFNMI_PRIVDEF
  17620. * @retval None
  17621. */
  17622. void HAL_MPU_Enable(uint32_t MPU_Control)
  17623. {
  17624. 8007be8: b480 push {r7}
  17625. 8007bea: b083 sub sp, #12
  17626. 8007bec: af00 add r7, sp, #0
  17627. 8007bee: 6078 str r0, [r7, #4]
  17628. /* Enable the MPU */
  17629. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  17630. 8007bf0: 4a0b ldr r2, [pc, #44] @ (8007c20 <HAL_MPU_Enable+0x38>)
  17631. 8007bf2: 687b ldr r3, [r7, #4]
  17632. 8007bf4: f043 0301 orr.w r3, r3, #1
  17633. 8007bf8: 6053 str r3, [r2, #4]
  17634. /* Enable fault exceptions */
  17635. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  17636. 8007bfa: 4b0a ldr r3, [pc, #40] @ (8007c24 <HAL_MPU_Enable+0x3c>)
  17637. 8007bfc: 6a5b ldr r3, [r3, #36] @ 0x24
  17638. 8007bfe: 4a09 ldr r2, [pc, #36] @ (8007c24 <HAL_MPU_Enable+0x3c>)
  17639. 8007c00: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  17640. 8007c04: 6253 str r3, [r2, #36] @ 0x24
  17641. __ASM volatile ("dsb 0xF":::"memory");
  17642. 8007c06: f3bf 8f4f dsb sy
  17643. }
  17644. 8007c0a: bf00 nop
  17645. __ASM volatile ("isb 0xF":::"memory");
  17646. 8007c0c: f3bf 8f6f isb sy
  17647. }
  17648. 8007c10: bf00 nop
  17649. /* Ensure MPU setting take effects */
  17650. __DSB();
  17651. __ISB();
  17652. }
  17653. 8007c12: bf00 nop
  17654. 8007c14: 370c adds r7, #12
  17655. 8007c16: 46bd mov sp, r7
  17656. 8007c18: f85d 7b04 ldr.w r7, [sp], #4
  17657. 8007c1c: 4770 bx lr
  17658. 8007c1e: bf00 nop
  17659. 8007c20: e000ed90 .word 0xe000ed90
  17660. 8007c24: e000ed00 .word 0xe000ed00
  17661. 08007c28 <HAL_MPU_ConfigRegion>:
  17662. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  17663. * the initialization and configuration information.
  17664. * @retval None
  17665. */
  17666. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  17667. {
  17668. 8007c28: b480 push {r7}
  17669. 8007c2a: b083 sub sp, #12
  17670. 8007c2c: af00 add r7, sp, #0
  17671. 8007c2e: 6078 str r0, [r7, #4]
  17672. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  17673. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  17674. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  17675. /* Set the Region number */
  17676. MPU->RNR = MPU_Init->Number;
  17677. 8007c30: 687b ldr r3, [r7, #4]
  17678. 8007c32: 785a ldrb r2, [r3, #1]
  17679. 8007c34: 4b1b ldr r3, [pc, #108] @ (8007ca4 <HAL_MPU_ConfigRegion+0x7c>)
  17680. 8007c36: 609a str r2, [r3, #8]
  17681. /* Disable the Region */
  17682. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  17683. 8007c38: 4b1a ldr r3, [pc, #104] @ (8007ca4 <HAL_MPU_ConfigRegion+0x7c>)
  17684. 8007c3a: 691b ldr r3, [r3, #16]
  17685. 8007c3c: 4a19 ldr r2, [pc, #100] @ (8007ca4 <HAL_MPU_ConfigRegion+0x7c>)
  17686. 8007c3e: f023 0301 bic.w r3, r3, #1
  17687. 8007c42: 6113 str r3, [r2, #16]
  17688. /* Apply configuration */
  17689. MPU->RBAR = MPU_Init->BaseAddress;
  17690. 8007c44: 4a17 ldr r2, [pc, #92] @ (8007ca4 <HAL_MPU_ConfigRegion+0x7c>)
  17691. 8007c46: 687b ldr r3, [r7, #4]
  17692. 8007c48: 685b ldr r3, [r3, #4]
  17693. 8007c4a: 60d3 str r3, [r2, #12]
  17694. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17695. 8007c4c: 687b ldr r3, [r7, #4]
  17696. 8007c4e: 7b1b ldrb r3, [r3, #12]
  17697. 8007c50: 071a lsls r2, r3, #28
  17698. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17699. 8007c52: 687b ldr r3, [r7, #4]
  17700. 8007c54: 7adb ldrb r3, [r3, #11]
  17701. 8007c56: 061b lsls r3, r3, #24
  17702. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17703. 8007c58: 431a orrs r2, r3
  17704. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17705. 8007c5a: 687b ldr r3, [r7, #4]
  17706. 8007c5c: 7a9b ldrb r3, [r3, #10]
  17707. 8007c5e: 04db lsls r3, r3, #19
  17708. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17709. 8007c60: 431a orrs r2, r3
  17710. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17711. 8007c62: 687b ldr r3, [r7, #4]
  17712. 8007c64: 7b5b ldrb r3, [r3, #13]
  17713. 8007c66: 049b lsls r3, r3, #18
  17714. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17715. 8007c68: 431a orrs r2, r3
  17716. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17717. 8007c6a: 687b ldr r3, [r7, #4]
  17718. 8007c6c: 7b9b ldrb r3, [r3, #14]
  17719. 8007c6e: 045b lsls r3, r3, #17
  17720. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17721. 8007c70: 431a orrs r2, r3
  17722. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17723. 8007c72: 687b ldr r3, [r7, #4]
  17724. 8007c74: 7bdb ldrb r3, [r3, #15]
  17725. 8007c76: 041b lsls r3, r3, #16
  17726. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17727. 8007c78: 431a orrs r2, r3
  17728. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17729. 8007c7a: 687b ldr r3, [r7, #4]
  17730. 8007c7c: 7a5b ldrb r3, [r3, #9]
  17731. 8007c7e: 021b lsls r3, r3, #8
  17732. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17733. 8007c80: 431a orrs r2, r3
  17734. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17735. 8007c82: 687b ldr r3, [r7, #4]
  17736. 8007c84: 7a1b ldrb r3, [r3, #8]
  17737. 8007c86: 005b lsls r3, r3, #1
  17738. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17739. 8007c88: 4313 orrs r3, r2
  17740. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  17741. 8007c8a: 687a ldr r2, [r7, #4]
  17742. 8007c8c: 7812 ldrb r2, [r2, #0]
  17743. 8007c8e: 4611 mov r1, r2
  17744. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17745. 8007c90: 4a04 ldr r2, [pc, #16] @ (8007ca4 <HAL_MPU_ConfigRegion+0x7c>)
  17746. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17747. 8007c92: 430b orrs r3, r1
  17748. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17749. 8007c94: 6113 str r3, [r2, #16]
  17750. }
  17751. 8007c96: bf00 nop
  17752. 8007c98: 370c adds r7, #12
  17753. 8007c9a: 46bd mov sp, r7
  17754. 8007c9c: f85d 7b04 ldr.w r7, [sp], #4
  17755. 8007ca0: 4770 bx lr
  17756. 8007ca2: bf00 nop
  17757. 8007ca4: e000ed90 .word 0xe000ed90
  17758. 08007ca8 <HAL_CRC_Init>:
  17759. * parameters in the CRC_InitTypeDef and create the associated handle.
  17760. * @param hcrc CRC handle
  17761. * @retval HAL status
  17762. */
  17763. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  17764. {
  17765. 8007ca8: b580 push {r7, lr}
  17766. 8007caa: b082 sub sp, #8
  17767. 8007cac: af00 add r7, sp, #0
  17768. 8007cae: 6078 str r0, [r7, #4]
  17769. /* Check the CRC handle allocation */
  17770. if (hcrc == NULL)
  17771. 8007cb0: 687b ldr r3, [r7, #4]
  17772. 8007cb2: 2b00 cmp r3, #0
  17773. 8007cb4: d101 bne.n 8007cba <HAL_CRC_Init+0x12>
  17774. {
  17775. return HAL_ERROR;
  17776. 8007cb6: 2301 movs r3, #1
  17777. 8007cb8: e054 b.n 8007d64 <HAL_CRC_Init+0xbc>
  17778. }
  17779. /* Check the parameters */
  17780. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  17781. if (hcrc->State == HAL_CRC_STATE_RESET)
  17782. 8007cba: 687b ldr r3, [r7, #4]
  17783. 8007cbc: 7f5b ldrb r3, [r3, #29]
  17784. 8007cbe: b2db uxtb r3, r3
  17785. 8007cc0: 2b00 cmp r3, #0
  17786. 8007cc2: d105 bne.n 8007cd0 <HAL_CRC_Init+0x28>
  17787. {
  17788. /* Allocate lock resource and initialize it */
  17789. hcrc->Lock = HAL_UNLOCKED;
  17790. 8007cc4: 687b ldr r3, [r7, #4]
  17791. 8007cc6: 2200 movs r2, #0
  17792. 8007cc8: 771a strb r2, [r3, #28]
  17793. /* Init the low level hardware */
  17794. HAL_CRC_MspInit(hcrc);
  17795. 8007cca: 6878 ldr r0, [r7, #4]
  17796. 8007ccc: f7fc fa1a bl 8004104 <HAL_CRC_MspInit>
  17797. }
  17798. hcrc->State = HAL_CRC_STATE_BUSY;
  17799. 8007cd0: 687b ldr r3, [r7, #4]
  17800. 8007cd2: 2202 movs r2, #2
  17801. 8007cd4: 775a strb r2, [r3, #29]
  17802. /* check whether or not non-default generating polynomial has been
  17803. * picked up by user */
  17804. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  17805. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  17806. 8007cd6: 687b ldr r3, [r7, #4]
  17807. 8007cd8: 791b ldrb r3, [r3, #4]
  17808. 8007cda: 2b00 cmp r3, #0
  17809. 8007cdc: d10c bne.n 8007cf8 <HAL_CRC_Init+0x50>
  17810. {
  17811. /* initialize peripheral with default generating polynomial */
  17812. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  17813. 8007cde: 687b ldr r3, [r7, #4]
  17814. 8007ce0: 681b ldr r3, [r3, #0]
  17815. 8007ce2: 4a22 ldr r2, [pc, #136] @ (8007d6c <HAL_CRC_Init+0xc4>)
  17816. 8007ce4: 615a str r2, [r3, #20]
  17817. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  17818. 8007ce6: 687b ldr r3, [r7, #4]
  17819. 8007ce8: 681b ldr r3, [r3, #0]
  17820. 8007cea: 689a ldr r2, [r3, #8]
  17821. 8007cec: 687b ldr r3, [r7, #4]
  17822. 8007cee: 681b ldr r3, [r3, #0]
  17823. 8007cf0: f022 0218 bic.w r2, r2, #24
  17824. 8007cf4: 609a str r2, [r3, #8]
  17825. 8007cf6: e00c b.n 8007d12 <HAL_CRC_Init+0x6a>
  17826. }
  17827. else
  17828. {
  17829. /* initialize CRC peripheral with generating polynomial defined by user */
  17830. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  17831. 8007cf8: 687b ldr r3, [r7, #4]
  17832. 8007cfa: 6899 ldr r1, [r3, #8]
  17833. 8007cfc: 687b ldr r3, [r7, #4]
  17834. 8007cfe: 68db ldr r3, [r3, #12]
  17835. 8007d00: 461a mov r2, r3
  17836. 8007d02: 6878 ldr r0, [r7, #4]
  17837. 8007d04: f000 f948 bl 8007f98 <HAL_CRCEx_Polynomial_Set>
  17838. 8007d08: 4603 mov r3, r0
  17839. 8007d0a: 2b00 cmp r3, #0
  17840. 8007d0c: d001 beq.n 8007d12 <HAL_CRC_Init+0x6a>
  17841. {
  17842. return HAL_ERROR;
  17843. 8007d0e: 2301 movs r3, #1
  17844. 8007d10: e028 b.n 8007d64 <HAL_CRC_Init+0xbc>
  17845. }
  17846. /* check whether or not non-default CRC initial value has been
  17847. * picked up by user */
  17848. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  17849. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  17850. 8007d12: 687b ldr r3, [r7, #4]
  17851. 8007d14: 795b ldrb r3, [r3, #5]
  17852. 8007d16: 2b00 cmp r3, #0
  17853. 8007d18: d105 bne.n 8007d26 <HAL_CRC_Init+0x7e>
  17854. {
  17855. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  17856. 8007d1a: 687b ldr r3, [r7, #4]
  17857. 8007d1c: 681b ldr r3, [r3, #0]
  17858. 8007d1e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17859. 8007d22: 611a str r2, [r3, #16]
  17860. 8007d24: e004 b.n 8007d30 <HAL_CRC_Init+0x88>
  17861. }
  17862. else
  17863. {
  17864. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  17865. 8007d26: 687b ldr r3, [r7, #4]
  17866. 8007d28: 681b ldr r3, [r3, #0]
  17867. 8007d2a: 687a ldr r2, [r7, #4]
  17868. 8007d2c: 6912 ldr r2, [r2, #16]
  17869. 8007d2e: 611a str r2, [r3, #16]
  17870. }
  17871. /* set input data inversion mode */
  17872. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  17873. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  17874. 8007d30: 687b ldr r3, [r7, #4]
  17875. 8007d32: 681b ldr r3, [r3, #0]
  17876. 8007d34: 689b ldr r3, [r3, #8]
  17877. 8007d36: f023 0160 bic.w r1, r3, #96 @ 0x60
  17878. 8007d3a: 687b ldr r3, [r7, #4]
  17879. 8007d3c: 695a ldr r2, [r3, #20]
  17880. 8007d3e: 687b ldr r3, [r7, #4]
  17881. 8007d40: 681b ldr r3, [r3, #0]
  17882. 8007d42: 430a orrs r2, r1
  17883. 8007d44: 609a str r2, [r3, #8]
  17884. /* set output data inversion mode */
  17885. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  17886. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  17887. 8007d46: 687b ldr r3, [r7, #4]
  17888. 8007d48: 681b ldr r3, [r3, #0]
  17889. 8007d4a: 689b ldr r3, [r3, #8]
  17890. 8007d4c: f023 0180 bic.w r1, r3, #128 @ 0x80
  17891. 8007d50: 687b ldr r3, [r7, #4]
  17892. 8007d52: 699a ldr r2, [r3, #24]
  17893. 8007d54: 687b ldr r3, [r7, #4]
  17894. 8007d56: 681b ldr r3, [r3, #0]
  17895. 8007d58: 430a orrs r2, r1
  17896. 8007d5a: 609a str r2, [r3, #8]
  17897. /* makes sure the input data format (bytes, halfwords or words stream)
  17898. * is properly specified by user */
  17899. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  17900. /* Change CRC peripheral state */
  17901. hcrc->State = HAL_CRC_STATE_READY;
  17902. 8007d5c: 687b ldr r3, [r7, #4]
  17903. 8007d5e: 2201 movs r2, #1
  17904. 8007d60: 775a strb r2, [r3, #29]
  17905. /* Return function status */
  17906. return HAL_OK;
  17907. 8007d62: 2300 movs r3, #0
  17908. }
  17909. 8007d64: 4618 mov r0, r3
  17910. 8007d66: 3708 adds r7, #8
  17911. 8007d68: 46bd mov sp, r7
  17912. 8007d6a: bd80 pop {r7, pc}
  17913. 8007d6c: 04c11db7 .word 0x04c11db7
  17914. 08007d70 <HAL_CRC_Calculate>:
  17915. * and the API will internally adjust its input data processing based on the
  17916. * handle field hcrc->InputDataFormat.
  17917. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17918. */
  17919. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  17920. {
  17921. 8007d70: b580 push {r7, lr}
  17922. 8007d72: b086 sub sp, #24
  17923. 8007d74: af00 add r7, sp, #0
  17924. 8007d76: 60f8 str r0, [r7, #12]
  17925. 8007d78: 60b9 str r1, [r7, #8]
  17926. 8007d7a: 607a str r2, [r7, #4]
  17927. uint32_t index; /* CRC input data buffer index */
  17928. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  17929. 8007d7c: 2300 movs r3, #0
  17930. 8007d7e: 613b str r3, [r7, #16]
  17931. /* Change CRC peripheral state */
  17932. hcrc->State = HAL_CRC_STATE_BUSY;
  17933. 8007d80: 68fb ldr r3, [r7, #12]
  17934. 8007d82: 2202 movs r2, #2
  17935. 8007d84: 775a strb r2, [r3, #29]
  17936. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  17937. * written in hcrc->Instance->DR) */
  17938. __HAL_CRC_DR_RESET(hcrc);
  17939. 8007d86: 68fb ldr r3, [r7, #12]
  17940. 8007d88: 681b ldr r3, [r3, #0]
  17941. 8007d8a: 689a ldr r2, [r3, #8]
  17942. 8007d8c: 68fb ldr r3, [r7, #12]
  17943. 8007d8e: 681b ldr r3, [r3, #0]
  17944. 8007d90: f042 0201 orr.w r2, r2, #1
  17945. 8007d94: 609a str r2, [r3, #8]
  17946. switch (hcrc->InputDataFormat)
  17947. 8007d96: 68fb ldr r3, [r7, #12]
  17948. 8007d98: 6a1b ldr r3, [r3, #32]
  17949. 8007d9a: 2b03 cmp r3, #3
  17950. 8007d9c: d006 beq.n 8007dac <HAL_CRC_Calculate+0x3c>
  17951. 8007d9e: 2b03 cmp r3, #3
  17952. 8007da0: d829 bhi.n 8007df6 <HAL_CRC_Calculate+0x86>
  17953. 8007da2: 2b01 cmp r3, #1
  17954. 8007da4: d019 beq.n 8007dda <HAL_CRC_Calculate+0x6a>
  17955. 8007da6: 2b02 cmp r3, #2
  17956. 8007da8: d01e beq.n 8007de8 <HAL_CRC_Calculate+0x78>
  17957. /* Specific 16-bit input data handling */
  17958. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  17959. break;
  17960. default:
  17961. break;
  17962. 8007daa: e024 b.n 8007df6 <HAL_CRC_Calculate+0x86>
  17963. for (index = 0U; index < BufferLength; index++)
  17964. 8007dac: 2300 movs r3, #0
  17965. 8007dae: 617b str r3, [r7, #20]
  17966. 8007db0: e00a b.n 8007dc8 <HAL_CRC_Calculate+0x58>
  17967. hcrc->Instance->DR = pBuffer[index];
  17968. 8007db2: 697b ldr r3, [r7, #20]
  17969. 8007db4: 009b lsls r3, r3, #2
  17970. 8007db6: 68ba ldr r2, [r7, #8]
  17971. 8007db8: 441a add r2, r3
  17972. 8007dba: 68fb ldr r3, [r7, #12]
  17973. 8007dbc: 681b ldr r3, [r3, #0]
  17974. 8007dbe: 6812 ldr r2, [r2, #0]
  17975. 8007dc0: 601a str r2, [r3, #0]
  17976. for (index = 0U; index < BufferLength; index++)
  17977. 8007dc2: 697b ldr r3, [r7, #20]
  17978. 8007dc4: 3301 adds r3, #1
  17979. 8007dc6: 617b str r3, [r7, #20]
  17980. 8007dc8: 697a ldr r2, [r7, #20]
  17981. 8007dca: 687b ldr r3, [r7, #4]
  17982. 8007dcc: 429a cmp r2, r3
  17983. 8007dce: d3f0 bcc.n 8007db2 <HAL_CRC_Calculate+0x42>
  17984. temp = hcrc->Instance->DR;
  17985. 8007dd0: 68fb ldr r3, [r7, #12]
  17986. 8007dd2: 681b ldr r3, [r3, #0]
  17987. 8007dd4: 681b ldr r3, [r3, #0]
  17988. 8007dd6: 613b str r3, [r7, #16]
  17989. break;
  17990. 8007dd8: e00e b.n 8007df8 <HAL_CRC_Calculate+0x88>
  17991. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  17992. 8007dda: 687a ldr r2, [r7, #4]
  17993. 8007ddc: 68b9 ldr r1, [r7, #8]
  17994. 8007dde: 68f8 ldr r0, [r7, #12]
  17995. 8007de0: f000 f812 bl 8007e08 <CRC_Handle_8>
  17996. 8007de4: 6138 str r0, [r7, #16]
  17997. break;
  17998. 8007de6: e007 b.n 8007df8 <HAL_CRC_Calculate+0x88>
  17999. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  18000. 8007de8: 687a ldr r2, [r7, #4]
  18001. 8007dea: 68b9 ldr r1, [r7, #8]
  18002. 8007dec: 68f8 ldr r0, [r7, #12]
  18003. 8007dee: f000 f899 bl 8007f24 <CRC_Handle_16>
  18004. 8007df2: 6138 str r0, [r7, #16]
  18005. break;
  18006. 8007df4: e000 b.n 8007df8 <HAL_CRC_Calculate+0x88>
  18007. break;
  18008. 8007df6: bf00 nop
  18009. }
  18010. /* Change CRC peripheral state */
  18011. hcrc->State = HAL_CRC_STATE_READY;
  18012. 8007df8: 68fb ldr r3, [r7, #12]
  18013. 8007dfa: 2201 movs r2, #1
  18014. 8007dfc: 775a strb r2, [r3, #29]
  18015. /* Return the CRC computed value */
  18016. return temp;
  18017. 8007dfe: 693b ldr r3, [r7, #16]
  18018. }
  18019. 8007e00: 4618 mov r0, r3
  18020. 8007e02: 3718 adds r7, #24
  18021. 8007e04: 46bd mov sp, r7
  18022. 8007e06: bd80 pop {r7, pc}
  18023. 08007e08 <CRC_Handle_8>:
  18024. * @param pBuffer pointer to the input data buffer
  18025. * @param BufferLength input data buffer length
  18026. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18027. */
  18028. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  18029. {
  18030. 8007e08: b480 push {r7}
  18031. 8007e0a: b089 sub sp, #36 @ 0x24
  18032. 8007e0c: af00 add r7, sp, #0
  18033. 8007e0e: 60f8 str r0, [r7, #12]
  18034. 8007e10: 60b9 str r1, [r7, #8]
  18035. 8007e12: 607a str r2, [r7, #4]
  18036. __IO uint16_t *pReg;
  18037. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  18038. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  18039. * handling by the peripheral */
  18040. for (i = 0U; i < (BufferLength / 4U); i++)
  18041. 8007e14: 2300 movs r3, #0
  18042. 8007e16: 61fb str r3, [r7, #28]
  18043. 8007e18: e023 b.n 8007e62 <CRC_Handle_8+0x5a>
  18044. {
  18045. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18046. 8007e1a: 69fb ldr r3, [r7, #28]
  18047. 8007e1c: 009b lsls r3, r3, #2
  18048. 8007e1e: 68ba ldr r2, [r7, #8]
  18049. 8007e20: 4413 add r3, r2
  18050. 8007e22: 781b ldrb r3, [r3, #0]
  18051. 8007e24: 061a lsls r2, r3, #24
  18052. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18053. 8007e26: 69fb ldr r3, [r7, #28]
  18054. 8007e28: 009b lsls r3, r3, #2
  18055. 8007e2a: 3301 adds r3, #1
  18056. 8007e2c: 68b9 ldr r1, [r7, #8]
  18057. 8007e2e: 440b add r3, r1
  18058. 8007e30: 781b ldrb r3, [r3, #0]
  18059. 8007e32: 041b lsls r3, r3, #16
  18060. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18061. 8007e34: 431a orrs r2, r3
  18062. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18063. 8007e36: 69fb ldr r3, [r7, #28]
  18064. 8007e38: 009b lsls r3, r3, #2
  18065. 8007e3a: 3302 adds r3, #2
  18066. 8007e3c: 68b9 ldr r1, [r7, #8]
  18067. 8007e3e: 440b add r3, r1
  18068. 8007e40: 781b ldrb r3, [r3, #0]
  18069. 8007e42: 021b lsls r3, r3, #8
  18070. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18071. 8007e44: 431a orrs r2, r3
  18072. (uint32_t)pBuffer[(4U * i) + 3U];
  18073. 8007e46: 69fb ldr r3, [r7, #28]
  18074. 8007e48: 009b lsls r3, r3, #2
  18075. 8007e4a: 3303 adds r3, #3
  18076. 8007e4c: 68b9 ldr r1, [r7, #8]
  18077. 8007e4e: 440b add r3, r1
  18078. 8007e50: 781b ldrb r3, [r3, #0]
  18079. 8007e52: 4619 mov r1, r3
  18080. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18081. 8007e54: 68fb ldr r3, [r7, #12]
  18082. 8007e56: 681b ldr r3, [r3, #0]
  18083. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18084. 8007e58: 430a orrs r2, r1
  18085. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18086. 8007e5a: 601a str r2, [r3, #0]
  18087. for (i = 0U; i < (BufferLength / 4U); i++)
  18088. 8007e5c: 69fb ldr r3, [r7, #28]
  18089. 8007e5e: 3301 adds r3, #1
  18090. 8007e60: 61fb str r3, [r7, #28]
  18091. 8007e62: 687b ldr r3, [r7, #4]
  18092. 8007e64: 089b lsrs r3, r3, #2
  18093. 8007e66: 69fa ldr r2, [r7, #28]
  18094. 8007e68: 429a cmp r2, r3
  18095. 8007e6a: d3d6 bcc.n 8007e1a <CRC_Handle_8+0x12>
  18096. }
  18097. /* last bytes specific handling */
  18098. if ((BufferLength % 4U) != 0U)
  18099. 8007e6c: 687b ldr r3, [r7, #4]
  18100. 8007e6e: f003 0303 and.w r3, r3, #3
  18101. 8007e72: 2b00 cmp r3, #0
  18102. 8007e74: d04d beq.n 8007f12 <CRC_Handle_8+0x10a>
  18103. {
  18104. if ((BufferLength % 4U) == 1U)
  18105. 8007e76: 687b ldr r3, [r7, #4]
  18106. 8007e78: f003 0303 and.w r3, r3, #3
  18107. 8007e7c: 2b01 cmp r3, #1
  18108. 8007e7e: d107 bne.n 8007e90 <CRC_Handle_8+0x88>
  18109. {
  18110. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  18111. 8007e80: 69fb ldr r3, [r7, #28]
  18112. 8007e82: 009b lsls r3, r3, #2
  18113. 8007e84: 68ba ldr r2, [r7, #8]
  18114. 8007e86: 4413 add r3, r2
  18115. 8007e88: 68fa ldr r2, [r7, #12]
  18116. 8007e8a: 6812 ldr r2, [r2, #0]
  18117. 8007e8c: 781b ldrb r3, [r3, #0]
  18118. 8007e8e: 7013 strb r3, [r2, #0]
  18119. }
  18120. if ((BufferLength % 4U) == 2U)
  18121. 8007e90: 687b ldr r3, [r7, #4]
  18122. 8007e92: f003 0303 and.w r3, r3, #3
  18123. 8007e96: 2b02 cmp r3, #2
  18124. 8007e98: d116 bne.n 8007ec8 <CRC_Handle_8+0xc0>
  18125. {
  18126. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18127. 8007e9a: 69fb ldr r3, [r7, #28]
  18128. 8007e9c: 009b lsls r3, r3, #2
  18129. 8007e9e: 68ba ldr r2, [r7, #8]
  18130. 8007ea0: 4413 add r3, r2
  18131. 8007ea2: 781b ldrb r3, [r3, #0]
  18132. 8007ea4: 021b lsls r3, r3, #8
  18133. 8007ea6: b21a sxth r2, r3
  18134. 8007ea8: 69fb ldr r3, [r7, #28]
  18135. 8007eaa: 009b lsls r3, r3, #2
  18136. 8007eac: 3301 adds r3, #1
  18137. 8007eae: 68b9 ldr r1, [r7, #8]
  18138. 8007eb0: 440b add r3, r1
  18139. 8007eb2: 781b ldrb r3, [r3, #0]
  18140. 8007eb4: b21b sxth r3, r3
  18141. 8007eb6: 4313 orrs r3, r2
  18142. 8007eb8: b21b sxth r3, r3
  18143. 8007eba: 837b strh r3, [r7, #26]
  18144. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18145. 8007ebc: 68fb ldr r3, [r7, #12]
  18146. 8007ebe: 681b ldr r3, [r3, #0]
  18147. 8007ec0: 617b str r3, [r7, #20]
  18148. *pReg = data;
  18149. 8007ec2: 697b ldr r3, [r7, #20]
  18150. 8007ec4: 8b7a ldrh r2, [r7, #26]
  18151. 8007ec6: 801a strh r2, [r3, #0]
  18152. }
  18153. if ((BufferLength % 4U) == 3U)
  18154. 8007ec8: 687b ldr r3, [r7, #4]
  18155. 8007eca: f003 0303 and.w r3, r3, #3
  18156. 8007ece: 2b03 cmp r3, #3
  18157. 8007ed0: d11f bne.n 8007f12 <CRC_Handle_8+0x10a>
  18158. {
  18159. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18160. 8007ed2: 69fb ldr r3, [r7, #28]
  18161. 8007ed4: 009b lsls r3, r3, #2
  18162. 8007ed6: 68ba ldr r2, [r7, #8]
  18163. 8007ed8: 4413 add r3, r2
  18164. 8007eda: 781b ldrb r3, [r3, #0]
  18165. 8007edc: 021b lsls r3, r3, #8
  18166. 8007ede: b21a sxth r2, r3
  18167. 8007ee0: 69fb ldr r3, [r7, #28]
  18168. 8007ee2: 009b lsls r3, r3, #2
  18169. 8007ee4: 3301 adds r3, #1
  18170. 8007ee6: 68b9 ldr r1, [r7, #8]
  18171. 8007ee8: 440b add r3, r1
  18172. 8007eea: 781b ldrb r3, [r3, #0]
  18173. 8007eec: b21b sxth r3, r3
  18174. 8007eee: 4313 orrs r3, r2
  18175. 8007ef0: b21b sxth r3, r3
  18176. 8007ef2: 837b strh r3, [r7, #26]
  18177. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18178. 8007ef4: 68fb ldr r3, [r7, #12]
  18179. 8007ef6: 681b ldr r3, [r3, #0]
  18180. 8007ef8: 617b str r3, [r7, #20]
  18181. *pReg = data;
  18182. 8007efa: 697b ldr r3, [r7, #20]
  18183. 8007efc: 8b7a ldrh r2, [r7, #26]
  18184. 8007efe: 801a strh r2, [r3, #0]
  18185. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  18186. 8007f00: 69fb ldr r3, [r7, #28]
  18187. 8007f02: 009b lsls r3, r3, #2
  18188. 8007f04: 3302 adds r3, #2
  18189. 8007f06: 68ba ldr r2, [r7, #8]
  18190. 8007f08: 4413 add r3, r2
  18191. 8007f0a: 68fa ldr r2, [r7, #12]
  18192. 8007f0c: 6812 ldr r2, [r2, #0]
  18193. 8007f0e: 781b ldrb r3, [r3, #0]
  18194. 8007f10: 7013 strb r3, [r2, #0]
  18195. }
  18196. }
  18197. /* Return the CRC computed value */
  18198. return hcrc->Instance->DR;
  18199. 8007f12: 68fb ldr r3, [r7, #12]
  18200. 8007f14: 681b ldr r3, [r3, #0]
  18201. 8007f16: 681b ldr r3, [r3, #0]
  18202. }
  18203. 8007f18: 4618 mov r0, r3
  18204. 8007f1a: 3724 adds r7, #36 @ 0x24
  18205. 8007f1c: 46bd mov sp, r7
  18206. 8007f1e: f85d 7b04 ldr.w r7, [sp], #4
  18207. 8007f22: 4770 bx lr
  18208. 08007f24 <CRC_Handle_16>:
  18209. * @param pBuffer pointer to the input data buffer
  18210. * @param BufferLength input data buffer length
  18211. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18212. */
  18213. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  18214. {
  18215. 8007f24: b480 push {r7}
  18216. 8007f26: b087 sub sp, #28
  18217. 8007f28: af00 add r7, sp, #0
  18218. 8007f2a: 60f8 str r0, [r7, #12]
  18219. 8007f2c: 60b9 str r1, [r7, #8]
  18220. 8007f2e: 607a str r2, [r7, #4]
  18221. __IO uint16_t *pReg;
  18222. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  18223. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  18224. * a correct type handling by the peripheral */
  18225. for (i = 0U; i < (BufferLength / 2U); i++)
  18226. 8007f30: 2300 movs r3, #0
  18227. 8007f32: 617b str r3, [r7, #20]
  18228. 8007f34: e013 b.n 8007f5e <CRC_Handle_16+0x3a>
  18229. {
  18230. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  18231. 8007f36: 697b ldr r3, [r7, #20]
  18232. 8007f38: 009b lsls r3, r3, #2
  18233. 8007f3a: 68ba ldr r2, [r7, #8]
  18234. 8007f3c: 4413 add r3, r2
  18235. 8007f3e: 881b ldrh r3, [r3, #0]
  18236. 8007f40: 041a lsls r2, r3, #16
  18237. 8007f42: 697b ldr r3, [r7, #20]
  18238. 8007f44: 009b lsls r3, r3, #2
  18239. 8007f46: 3302 adds r3, #2
  18240. 8007f48: 68b9 ldr r1, [r7, #8]
  18241. 8007f4a: 440b add r3, r1
  18242. 8007f4c: 881b ldrh r3, [r3, #0]
  18243. 8007f4e: 4619 mov r1, r3
  18244. 8007f50: 68fb ldr r3, [r7, #12]
  18245. 8007f52: 681b ldr r3, [r3, #0]
  18246. 8007f54: 430a orrs r2, r1
  18247. 8007f56: 601a str r2, [r3, #0]
  18248. for (i = 0U; i < (BufferLength / 2U); i++)
  18249. 8007f58: 697b ldr r3, [r7, #20]
  18250. 8007f5a: 3301 adds r3, #1
  18251. 8007f5c: 617b str r3, [r7, #20]
  18252. 8007f5e: 687b ldr r3, [r7, #4]
  18253. 8007f60: 085b lsrs r3, r3, #1
  18254. 8007f62: 697a ldr r2, [r7, #20]
  18255. 8007f64: 429a cmp r2, r3
  18256. 8007f66: d3e6 bcc.n 8007f36 <CRC_Handle_16+0x12>
  18257. }
  18258. if ((BufferLength % 2U) != 0U)
  18259. 8007f68: 687b ldr r3, [r7, #4]
  18260. 8007f6a: f003 0301 and.w r3, r3, #1
  18261. 8007f6e: 2b00 cmp r3, #0
  18262. 8007f70: d009 beq.n 8007f86 <CRC_Handle_16+0x62>
  18263. {
  18264. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18265. 8007f72: 68fb ldr r3, [r7, #12]
  18266. 8007f74: 681b ldr r3, [r3, #0]
  18267. 8007f76: 613b str r3, [r7, #16]
  18268. *pReg = pBuffer[2U * i];
  18269. 8007f78: 697b ldr r3, [r7, #20]
  18270. 8007f7a: 009b lsls r3, r3, #2
  18271. 8007f7c: 68ba ldr r2, [r7, #8]
  18272. 8007f7e: 4413 add r3, r2
  18273. 8007f80: 881a ldrh r2, [r3, #0]
  18274. 8007f82: 693b ldr r3, [r7, #16]
  18275. 8007f84: 801a strh r2, [r3, #0]
  18276. }
  18277. /* Return the CRC computed value */
  18278. return hcrc->Instance->DR;
  18279. 8007f86: 68fb ldr r3, [r7, #12]
  18280. 8007f88: 681b ldr r3, [r3, #0]
  18281. 8007f8a: 681b ldr r3, [r3, #0]
  18282. }
  18283. 8007f8c: 4618 mov r0, r3
  18284. 8007f8e: 371c adds r7, #28
  18285. 8007f90: 46bd mov sp, r7
  18286. 8007f92: f85d 7b04 ldr.w r7, [sp], #4
  18287. 8007f96: 4770 bx lr
  18288. 08007f98 <HAL_CRCEx_Polynomial_Set>:
  18289. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  18290. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  18291. * @retval HAL status
  18292. */
  18293. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  18294. {
  18295. 8007f98: b480 push {r7}
  18296. 8007f9a: b087 sub sp, #28
  18297. 8007f9c: af00 add r7, sp, #0
  18298. 8007f9e: 60f8 str r0, [r7, #12]
  18299. 8007fa0: 60b9 str r1, [r7, #8]
  18300. 8007fa2: 607a str r2, [r7, #4]
  18301. HAL_StatusTypeDef status = HAL_OK;
  18302. 8007fa4: 2300 movs r3, #0
  18303. 8007fa6: 75fb strb r3, [r7, #23]
  18304. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  18305. 8007fa8: 231f movs r3, #31
  18306. 8007faa: 613b str r3, [r7, #16]
  18307. /* Check the parameters */
  18308. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  18309. /* Ensure that the generating polynomial is odd */
  18310. if ((Pol & (uint32_t)(0x1U)) == 0U)
  18311. 8007fac: 68bb ldr r3, [r7, #8]
  18312. 8007fae: f003 0301 and.w r3, r3, #1
  18313. 8007fb2: 2b00 cmp r3, #0
  18314. 8007fb4: d102 bne.n 8007fbc <HAL_CRCEx_Polynomial_Set+0x24>
  18315. {
  18316. status = HAL_ERROR;
  18317. 8007fb6: 2301 movs r3, #1
  18318. 8007fb8: 75fb strb r3, [r7, #23]
  18319. 8007fba: e063 b.n 8008084 <HAL_CRCEx_Polynomial_Set+0xec>
  18320. * definition. HAL_ERROR is reported if Pol degree is
  18321. * larger than that indicated by PolyLength.
  18322. * Look for MSB position: msb will contain the degree of
  18323. * the second to the largest polynomial member. E.g., for
  18324. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  18325. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  18326. 8007fbc: bf00 nop
  18327. 8007fbe: 693b ldr r3, [r7, #16]
  18328. 8007fc0: 1e5a subs r2, r3, #1
  18329. 8007fc2: 613a str r2, [r7, #16]
  18330. 8007fc4: 2b00 cmp r3, #0
  18331. 8007fc6: d009 beq.n 8007fdc <HAL_CRCEx_Polynomial_Set+0x44>
  18332. 8007fc8: 693b ldr r3, [r7, #16]
  18333. 8007fca: f003 031f and.w r3, r3, #31
  18334. 8007fce: 68ba ldr r2, [r7, #8]
  18335. 8007fd0: fa22 f303 lsr.w r3, r2, r3
  18336. 8007fd4: f003 0301 and.w r3, r3, #1
  18337. 8007fd8: 2b00 cmp r3, #0
  18338. 8007fda: d0f0 beq.n 8007fbe <HAL_CRCEx_Polynomial_Set+0x26>
  18339. {
  18340. }
  18341. switch (PolyLength)
  18342. 8007fdc: 687b ldr r3, [r7, #4]
  18343. 8007fde: 2b18 cmp r3, #24
  18344. 8007fe0: d846 bhi.n 8008070 <HAL_CRCEx_Polynomial_Set+0xd8>
  18345. 8007fe2: a201 add r2, pc, #4 @ (adr r2, 8007fe8 <HAL_CRCEx_Polynomial_Set+0x50>)
  18346. 8007fe4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  18347. 8007fe8: 08008077 .word 0x08008077
  18348. 8007fec: 08008071 .word 0x08008071
  18349. 8007ff0: 08008071 .word 0x08008071
  18350. 8007ff4: 08008071 .word 0x08008071
  18351. 8007ff8: 08008071 .word 0x08008071
  18352. 8007ffc: 08008071 .word 0x08008071
  18353. 8008000: 08008071 .word 0x08008071
  18354. 8008004: 08008071 .word 0x08008071
  18355. 8008008: 08008065 .word 0x08008065
  18356. 800800c: 08008071 .word 0x08008071
  18357. 8008010: 08008071 .word 0x08008071
  18358. 8008014: 08008071 .word 0x08008071
  18359. 8008018: 08008071 .word 0x08008071
  18360. 800801c: 08008071 .word 0x08008071
  18361. 8008020: 08008071 .word 0x08008071
  18362. 8008024: 08008071 .word 0x08008071
  18363. 8008028: 08008059 .word 0x08008059
  18364. 800802c: 08008071 .word 0x08008071
  18365. 8008030: 08008071 .word 0x08008071
  18366. 8008034: 08008071 .word 0x08008071
  18367. 8008038: 08008071 .word 0x08008071
  18368. 800803c: 08008071 .word 0x08008071
  18369. 8008040: 08008071 .word 0x08008071
  18370. 8008044: 08008071 .word 0x08008071
  18371. 8008048: 0800804d .word 0x0800804d
  18372. {
  18373. case CRC_POLYLENGTH_7B:
  18374. if (msb >= HAL_CRC_LENGTH_7B)
  18375. 800804c: 693b ldr r3, [r7, #16]
  18376. 800804e: 2b06 cmp r3, #6
  18377. 8008050: d913 bls.n 800807a <HAL_CRCEx_Polynomial_Set+0xe2>
  18378. {
  18379. status = HAL_ERROR;
  18380. 8008052: 2301 movs r3, #1
  18381. 8008054: 75fb strb r3, [r7, #23]
  18382. }
  18383. break;
  18384. 8008056: e010 b.n 800807a <HAL_CRCEx_Polynomial_Set+0xe2>
  18385. case CRC_POLYLENGTH_8B:
  18386. if (msb >= HAL_CRC_LENGTH_8B)
  18387. 8008058: 693b ldr r3, [r7, #16]
  18388. 800805a: 2b07 cmp r3, #7
  18389. 800805c: d90f bls.n 800807e <HAL_CRCEx_Polynomial_Set+0xe6>
  18390. {
  18391. status = HAL_ERROR;
  18392. 800805e: 2301 movs r3, #1
  18393. 8008060: 75fb strb r3, [r7, #23]
  18394. }
  18395. break;
  18396. 8008062: e00c b.n 800807e <HAL_CRCEx_Polynomial_Set+0xe6>
  18397. case CRC_POLYLENGTH_16B:
  18398. if (msb >= HAL_CRC_LENGTH_16B)
  18399. 8008064: 693b ldr r3, [r7, #16]
  18400. 8008066: 2b0f cmp r3, #15
  18401. 8008068: d90b bls.n 8008082 <HAL_CRCEx_Polynomial_Set+0xea>
  18402. {
  18403. status = HAL_ERROR;
  18404. 800806a: 2301 movs r3, #1
  18405. 800806c: 75fb strb r3, [r7, #23]
  18406. }
  18407. break;
  18408. 800806e: e008 b.n 8008082 <HAL_CRCEx_Polynomial_Set+0xea>
  18409. case CRC_POLYLENGTH_32B:
  18410. /* no polynomial definition vs. polynomial length issue possible */
  18411. break;
  18412. default:
  18413. status = HAL_ERROR;
  18414. 8008070: 2301 movs r3, #1
  18415. 8008072: 75fb strb r3, [r7, #23]
  18416. break;
  18417. 8008074: e006 b.n 8008084 <HAL_CRCEx_Polynomial_Set+0xec>
  18418. break;
  18419. 8008076: bf00 nop
  18420. 8008078: e004 b.n 8008084 <HAL_CRCEx_Polynomial_Set+0xec>
  18421. break;
  18422. 800807a: bf00 nop
  18423. 800807c: e002 b.n 8008084 <HAL_CRCEx_Polynomial_Set+0xec>
  18424. break;
  18425. 800807e: bf00 nop
  18426. 8008080: e000 b.n 8008084 <HAL_CRCEx_Polynomial_Set+0xec>
  18427. break;
  18428. 8008082: bf00 nop
  18429. }
  18430. }
  18431. if (status == HAL_OK)
  18432. 8008084: 7dfb ldrb r3, [r7, #23]
  18433. 8008086: 2b00 cmp r3, #0
  18434. 8008088: d10d bne.n 80080a6 <HAL_CRCEx_Polynomial_Set+0x10e>
  18435. {
  18436. /* set generating polynomial */
  18437. WRITE_REG(hcrc->Instance->POL, Pol);
  18438. 800808a: 68fb ldr r3, [r7, #12]
  18439. 800808c: 681b ldr r3, [r3, #0]
  18440. 800808e: 68ba ldr r2, [r7, #8]
  18441. 8008090: 615a str r2, [r3, #20]
  18442. /* set generating polynomial size */
  18443. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  18444. 8008092: 68fb ldr r3, [r7, #12]
  18445. 8008094: 681b ldr r3, [r3, #0]
  18446. 8008096: 689b ldr r3, [r3, #8]
  18447. 8008098: f023 0118 bic.w r1, r3, #24
  18448. 800809c: 68fb ldr r3, [r7, #12]
  18449. 800809e: 681b ldr r3, [r3, #0]
  18450. 80080a0: 687a ldr r2, [r7, #4]
  18451. 80080a2: 430a orrs r2, r1
  18452. 80080a4: 609a str r2, [r3, #8]
  18453. }
  18454. /* Return function status */
  18455. return status;
  18456. 80080a6: 7dfb ldrb r3, [r7, #23]
  18457. }
  18458. 80080a8: 4618 mov r0, r3
  18459. 80080aa: 371c adds r7, #28
  18460. 80080ac: 46bd mov sp, r7
  18461. 80080ae: f85d 7b04 ldr.w r7, [sp], #4
  18462. 80080b2: 4770 bx lr
  18463. 080080b4 <HAL_DAC_Init>:
  18464. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18465. * the configuration information for the specified DAC.
  18466. * @retval HAL status
  18467. */
  18468. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  18469. {
  18470. 80080b4: b580 push {r7, lr}
  18471. 80080b6: b082 sub sp, #8
  18472. 80080b8: af00 add r7, sp, #0
  18473. 80080ba: 6078 str r0, [r7, #4]
  18474. /* Check the DAC peripheral handle */
  18475. if (hdac == NULL)
  18476. 80080bc: 687b ldr r3, [r7, #4]
  18477. 80080be: 2b00 cmp r3, #0
  18478. 80080c0: d101 bne.n 80080c6 <HAL_DAC_Init+0x12>
  18479. {
  18480. return HAL_ERROR;
  18481. 80080c2: 2301 movs r3, #1
  18482. 80080c4: e014 b.n 80080f0 <HAL_DAC_Init+0x3c>
  18483. }
  18484. /* Check the parameters */
  18485. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  18486. if (hdac->State == HAL_DAC_STATE_RESET)
  18487. 80080c6: 687b ldr r3, [r7, #4]
  18488. 80080c8: 791b ldrb r3, [r3, #4]
  18489. 80080ca: b2db uxtb r3, r3
  18490. 80080cc: 2b00 cmp r3, #0
  18491. 80080ce: d105 bne.n 80080dc <HAL_DAC_Init+0x28>
  18492. hdac->MspInitCallback = HAL_DAC_MspInit;
  18493. }
  18494. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18495. /* Allocate lock resource and initialize it */
  18496. hdac->Lock = HAL_UNLOCKED;
  18497. 80080d0: 687b ldr r3, [r7, #4]
  18498. 80080d2: 2200 movs r2, #0
  18499. 80080d4: 715a strb r2, [r3, #5]
  18500. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18501. /* Init the low level hardware */
  18502. hdac->MspInitCallback(hdac);
  18503. #else
  18504. /* Init the low level hardware */
  18505. HAL_DAC_MspInit(hdac);
  18506. 80080d6: 6878 ldr r0, [r7, #4]
  18507. 80080d8: f7fc f836 bl 8004148 <HAL_DAC_MspInit>
  18508. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18509. }
  18510. /* Initialize the DAC state*/
  18511. hdac->State = HAL_DAC_STATE_BUSY;
  18512. 80080dc: 687b ldr r3, [r7, #4]
  18513. 80080de: 2202 movs r2, #2
  18514. 80080e0: 711a strb r2, [r3, #4]
  18515. /* Set DAC error code to none */
  18516. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  18517. 80080e2: 687b ldr r3, [r7, #4]
  18518. 80080e4: 2200 movs r2, #0
  18519. 80080e6: 611a str r2, [r3, #16]
  18520. /* Initialize the DAC state*/
  18521. hdac->State = HAL_DAC_STATE_READY;
  18522. 80080e8: 687b ldr r3, [r7, #4]
  18523. 80080ea: 2201 movs r2, #1
  18524. 80080ec: 711a strb r2, [r3, #4]
  18525. /* Return function status */
  18526. return HAL_OK;
  18527. 80080ee: 2300 movs r3, #0
  18528. }
  18529. 80080f0: 4618 mov r0, r3
  18530. 80080f2: 3708 adds r7, #8
  18531. 80080f4: 46bd mov sp, r7
  18532. 80080f6: bd80 pop {r7, pc}
  18533. 080080f8 <HAL_DAC_Start>:
  18534. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  18535. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18536. * @retval HAL status
  18537. */
  18538. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  18539. {
  18540. 80080f8: b480 push {r7}
  18541. 80080fa: b083 sub sp, #12
  18542. 80080fc: af00 add r7, sp, #0
  18543. 80080fe: 6078 str r0, [r7, #4]
  18544. 8008100: 6039 str r1, [r7, #0]
  18545. /* Check the DAC peripheral handle */
  18546. if (hdac == NULL)
  18547. 8008102: 687b ldr r3, [r7, #4]
  18548. 8008104: 2b00 cmp r3, #0
  18549. 8008106: d101 bne.n 800810c <HAL_DAC_Start+0x14>
  18550. {
  18551. return HAL_ERROR;
  18552. 8008108: 2301 movs r3, #1
  18553. 800810a: e046 b.n 800819a <HAL_DAC_Start+0xa2>
  18554. /* Check the parameters */
  18555. assert_param(IS_DAC_CHANNEL(Channel));
  18556. /* Process locked */
  18557. __HAL_LOCK(hdac);
  18558. 800810c: 687b ldr r3, [r7, #4]
  18559. 800810e: 795b ldrb r3, [r3, #5]
  18560. 8008110: 2b01 cmp r3, #1
  18561. 8008112: d101 bne.n 8008118 <HAL_DAC_Start+0x20>
  18562. 8008114: 2302 movs r3, #2
  18563. 8008116: e040 b.n 800819a <HAL_DAC_Start+0xa2>
  18564. 8008118: 687b ldr r3, [r7, #4]
  18565. 800811a: 2201 movs r2, #1
  18566. 800811c: 715a strb r2, [r3, #5]
  18567. /* Change DAC state */
  18568. hdac->State = HAL_DAC_STATE_BUSY;
  18569. 800811e: 687b ldr r3, [r7, #4]
  18570. 8008120: 2202 movs r2, #2
  18571. 8008122: 711a strb r2, [r3, #4]
  18572. /* Enable the Peripheral */
  18573. __HAL_DAC_ENABLE(hdac, Channel);
  18574. 8008124: 687b ldr r3, [r7, #4]
  18575. 8008126: 681b ldr r3, [r3, #0]
  18576. 8008128: 6819 ldr r1, [r3, #0]
  18577. 800812a: 683b ldr r3, [r7, #0]
  18578. 800812c: f003 0310 and.w r3, r3, #16
  18579. 8008130: 2201 movs r2, #1
  18580. 8008132: 409a lsls r2, r3
  18581. 8008134: 687b ldr r3, [r7, #4]
  18582. 8008136: 681b ldr r3, [r3, #0]
  18583. 8008138: 430a orrs r2, r1
  18584. 800813a: 601a str r2, [r3, #0]
  18585. if (Channel == DAC_CHANNEL_1)
  18586. 800813c: 683b ldr r3, [r7, #0]
  18587. 800813e: 2b00 cmp r3, #0
  18588. 8008140: d10f bne.n 8008162 <HAL_DAC_Start+0x6a>
  18589. {
  18590. /* Check if software trigger enabled */
  18591. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  18592. 8008142: 687b ldr r3, [r7, #4]
  18593. 8008144: 681b ldr r3, [r3, #0]
  18594. 8008146: 681b ldr r3, [r3, #0]
  18595. 8008148: f003 033e and.w r3, r3, #62 @ 0x3e
  18596. 800814c: 2b02 cmp r3, #2
  18597. 800814e: d11d bne.n 800818c <HAL_DAC_Start+0x94>
  18598. {
  18599. /* Enable the selected DAC software conversion */
  18600. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  18601. 8008150: 687b ldr r3, [r7, #4]
  18602. 8008152: 681b ldr r3, [r3, #0]
  18603. 8008154: 685a ldr r2, [r3, #4]
  18604. 8008156: 687b ldr r3, [r7, #4]
  18605. 8008158: 681b ldr r3, [r3, #0]
  18606. 800815a: f042 0201 orr.w r2, r2, #1
  18607. 800815e: 605a str r2, [r3, #4]
  18608. 8008160: e014 b.n 800818c <HAL_DAC_Start+0x94>
  18609. }
  18610. else
  18611. {
  18612. /* Check if software trigger enabled */
  18613. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  18614. 8008162: 687b ldr r3, [r7, #4]
  18615. 8008164: 681b ldr r3, [r3, #0]
  18616. 8008166: 681b ldr r3, [r3, #0]
  18617. 8008168: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  18618. 800816c: 683b ldr r3, [r7, #0]
  18619. 800816e: f003 0310 and.w r3, r3, #16
  18620. 8008172: 2102 movs r1, #2
  18621. 8008174: fa01 f303 lsl.w r3, r1, r3
  18622. 8008178: 429a cmp r2, r3
  18623. 800817a: d107 bne.n 800818c <HAL_DAC_Start+0x94>
  18624. {
  18625. /* Enable the selected DAC software conversion*/
  18626. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  18627. 800817c: 687b ldr r3, [r7, #4]
  18628. 800817e: 681b ldr r3, [r3, #0]
  18629. 8008180: 685a ldr r2, [r3, #4]
  18630. 8008182: 687b ldr r3, [r7, #4]
  18631. 8008184: 681b ldr r3, [r3, #0]
  18632. 8008186: f042 0202 orr.w r2, r2, #2
  18633. 800818a: 605a str r2, [r3, #4]
  18634. }
  18635. }
  18636. /* Change DAC state */
  18637. hdac->State = HAL_DAC_STATE_READY;
  18638. 800818c: 687b ldr r3, [r7, #4]
  18639. 800818e: 2201 movs r2, #1
  18640. 8008190: 711a strb r2, [r3, #4]
  18641. /* Process unlocked */
  18642. __HAL_UNLOCK(hdac);
  18643. 8008192: 687b ldr r3, [r7, #4]
  18644. 8008194: 2200 movs r2, #0
  18645. 8008196: 715a strb r2, [r3, #5]
  18646. /* Return function status */
  18647. return HAL_OK;
  18648. 8008198: 2300 movs r3, #0
  18649. }
  18650. 800819a: 4618 mov r0, r3
  18651. 800819c: 370c adds r7, #12
  18652. 800819e: 46bd mov sp, r7
  18653. 80081a0: f85d 7b04 ldr.w r7, [sp], #4
  18654. 80081a4: 4770 bx lr
  18655. 080081a6 <HAL_DAC_IRQHandler>:
  18656. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18657. * the configuration information for the specified DAC.
  18658. * @retval None
  18659. */
  18660. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  18661. {
  18662. 80081a6: b580 push {r7, lr}
  18663. 80081a8: b084 sub sp, #16
  18664. 80081aa: af00 add r7, sp, #0
  18665. 80081ac: 6078 str r0, [r7, #4]
  18666. uint32_t itsource = hdac->Instance->CR;
  18667. 80081ae: 687b ldr r3, [r7, #4]
  18668. 80081b0: 681b ldr r3, [r3, #0]
  18669. 80081b2: 681b ldr r3, [r3, #0]
  18670. 80081b4: 60fb str r3, [r7, #12]
  18671. uint32_t itflag = hdac->Instance->SR;
  18672. 80081b6: 687b ldr r3, [r7, #4]
  18673. 80081b8: 681b ldr r3, [r3, #0]
  18674. 80081ba: 6b5b ldr r3, [r3, #52] @ 0x34
  18675. 80081bc: 60bb str r3, [r7, #8]
  18676. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  18677. 80081be: 68fb ldr r3, [r7, #12]
  18678. 80081c0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18679. 80081c4: 2b00 cmp r3, #0
  18680. 80081c6: d01d beq.n 8008204 <HAL_DAC_IRQHandler+0x5e>
  18681. {
  18682. /* Check underrun flag of DAC channel 1 */
  18683. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  18684. 80081c8: 68bb ldr r3, [r7, #8]
  18685. 80081ca: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18686. 80081ce: 2b00 cmp r3, #0
  18687. 80081d0: d018 beq.n 8008204 <HAL_DAC_IRQHandler+0x5e>
  18688. {
  18689. /* Change DAC state to error state */
  18690. hdac->State = HAL_DAC_STATE_ERROR;
  18691. 80081d2: 687b ldr r3, [r7, #4]
  18692. 80081d4: 2204 movs r2, #4
  18693. 80081d6: 711a strb r2, [r3, #4]
  18694. /* Set DAC error code to channel1 DMA underrun error */
  18695. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  18696. 80081d8: 687b ldr r3, [r7, #4]
  18697. 80081da: 691b ldr r3, [r3, #16]
  18698. 80081dc: f043 0201 orr.w r2, r3, #1
  18699. 80081e0: 687b ldr r3, [r7, #4]
  18700. 80081e2: 611a str r2, [r3, #16]
  18701. /* Clear the underrun flag */
  18702. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  18703. 80081e4: 687b ldr r3, [r7, #4]
  18704. 80081e6: 681b ldr r3, [r3, #0]
  18705. 80081e8: f44f 5200 mov.w r2, #8192 @ 0x2000
  18706. 80081ec: 635a str r2, [r3, #52] @ 0x34
  18707. /* Disable the selected DAC channel1 DMA request */
  18708. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  18709. 80081ee: 687b ldr r3, [r7, #4]
  18710. 80081f0: 681b ldr r3, [r3, #0]
  18711. 80081f2: 681a ldr r2, [r3, #0]
  18712. 80081f4: 687b ldr r3, [r7, #4]
  18713. 80081f6: 681b ldr r3, [r3, #0]
  18714. 80081f8: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  18715. 80081fc: 601a str r2, [r3, #0]
  18716. /* Error callback */
  18717. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18718. hdac->DMAUnderrunCallbackCh1(hdac);
  18719. #else
  18720. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  18721. 80081fe: 6878 ldr r0, [r7, #4]
  18722. 8008200: f000 f851 bl 80082a6 <HAL_DAC_DMAUnderrunCallbackCh1>
  18723. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18724. }
  18725. }
  18726. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  18727. 8008204: 68fb ldr r3, [r7, #12]
  18728. 8008206: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18729. 800820a: 2b00 cmp r3, #0
  18730. 800820c: d01d beq.n 800824a <HAL_DAC_IRQHandler+0xa4>
  18731. {
  18732. /* Check underrun flag of DAC channel 2 */
  18733. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  18734. 800820e: 68bb ldr r3, [r7, #8]
  18735. 8008210: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18736. 8008214: 2b00 cmp r3, #0
  18737. 8008216: d018 beq.n 800824a <HAL_DAC_IRQHandler+0xa4>
  18738. {
  18739. /* Change DAC state to error state */
  18740. hdac->State = HAL_DAC_STATE_ERROR;
  18741. 8008218: 687b ldr r3, [r7, #4]
  18742. 800821a: 2204 movs r2, #4
  18743. 800821c: 711a strb r2, [r3, #4]
  18744. /* Set DAC error code to channel2 DMA underrun error */
  18745. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  18746. 800821e: 687b ldr r3, [r7, #4]
  18747. 8008220: 691b ldr r3, [r3, #16]
  18748. 8008222: f043 0202 orr.w r2, r3, #2
  18749. 8008226: 687b ldr r3, [r7, #4]
  18750. 8008228: 611a str r2, [r3, #16]
  18751. /* Clear the underrun flag */
  18752. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  18753. 800822a: 687b ldr r3, [r7, #4]
  18754. 800822c: 681b ldr r3, [r3, #0]
  18755. 800822e: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  18756. 8008232: 635a str r2, [r3, #52] @ 0x34
  18757. /* Disable the selected DAC channel2 DMA request */
  18758. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  18759. 8008234: 687b ldr r3, [r7, #4]
  18760. 8008236: 681b ldr r3, [r3, #0]
  18761. 8008238: 681a ldr r2, [r3, #0]
  18762. 800823a: 687b ldr r3, [r7, #4]
  18763. 800823c: 681b ldr r3, [r3, #0]
  18764. 800823e: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  18765. 8008242: 601a str r2, [r3, #0]
  18766. /* Error callback */
  18767. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18768. hdac->DMAUnderrunCallbackCh2(hdac);
  18769. #else
  18770. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  18771. 8008244: 6878 ldr r0, [r7, #4]
  18772. 8008246: f000 f97b bl 8008540 <HAL_DACEx_DMAUnderrunCallbackCh2>
  18773. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18774. }
  18775. }
  18776. }
  18777. 800824a: bf00 nop
  18778. 800824c: 3710 adds r7, #16
  18779. 800824e: 46bd mov sp, r7
  18780. 8008250: bd80 pop {r7, pc}
  18781. 08008252 <HAL_DAC_SetValue>:
  18782. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  18783. * @param Data Data to be loaded in the selected data holding register.
  18784. * @retval HAL status
  18785. */
  18786. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  18787. {
  18788. 8008252: b480 push {r7}
  18789. 8008254: b087 sub sp, #28
  18790. 8008256: af00 add r7, sp, #0
  18791. 8008258: 60f8 str r0, [r7, #12]
  18792. 800825a: 60b9 str r1, [r7, #8]
  18793. 800825c: 607a str r2, [r7, #4]
  18794. 800825e: 603b str r3, [r7, #0]
  18795. __IO uint32_t tmp = 0UL;
  18796. 8008260: 2300 movs r3, #0
  18797. 8008262: 617b str r3, [r7, #20]
  18798. /* Check the DAC peripheral handle */
  18799. if (hdac == NULL)
  18800. 8008264: 68fb ldr r3, [r7, #12]
  18801. 8008266: 2b00 cmp r3, #0
  18802. 8008268: d101 bne.n 800826e <HAL_DAC_SetValue+0x1c>
  18803. {
  18804. return HAL_ERROR;
  18805. 800826a: 2301 movs r3, #1
  18806. 800826c: e015 b.n 800829a <HAL_DAC_SetValue+0x48>
  18807. /* Check the parameters */
  18808. assert_param(IS_DAC_CHANNEL(Channel));
  18809. assert_param(IS_DAC_ALIGN(Alignment));
  18810. assert_param(IS_DAC_DATA(Data));
  18811. tmp = (uint32_t)hdac->Instance;
  18812. 800826e: 68fb ldr r3, [r7, #12]
  18813. 8008270: 681b ldr r3, [r3, #0]
  18814. 8008272: 617b str r3, [r7, #20]
  18815. if (Channel == DAC_CHANNEL_1)
  18816. 8008274: 68bb ldr r3, [r7, #8]
  18817. 8008276: 2b00 cmp r3, #0
  18818. 8008278: d105 bne.n 8008286 <HAL_DAC_SetValue+0x34>
  18819. {
  18820. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  18821. 800827a: 697a ldr r2, [r7, #20]
  18822. 800827c: 687b ldr r3, [r7, #4]
  18823. 800827e: 4413 add r3, r2
  18824. 8008280: 3308 adds r3, #8
  18825. 8008282: 617b str r3, [r7, #20]
  18826. 8008284: e004 b.n 8008290 <HAL_DAC_SetValue+0x3e>
  18827. }
  18828. else
  18829. {
  18830. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  18831. 8008286: 697a ldr r2, [r7, #20]
  18832. 8008288: 687b ldr r3, [r7, #4]
  18833. 800828a: 4413 add r3, r2
  18834. 800828c: 3314 adds r3, #20
  18835. 800828e: 617b str r3, [r7, #20]
  18836. }
  18837. /* Set the DAC channel selected data holding register */
  18838. *(__IO uint32_t *) tmp = Data;
  18839. 8008290: 697b ldr r3, [r7, #20]
  18840. 8008292: 461a mov r2, r3
  18841. 8008294: 683b ldr r3, [r7, #0]
  18842. 8008296: 6013 str r3, [r2, #0]
  18843. /* Return function status */
  18844. return HAL_OK;
  18845. 8008298: 2300 movs r3, #0
  18846. }
  18847. 800829a: 4618 mov r0, r3
  18848. 800829c: 371c adds r7, #28
  18849. 800829e: 46bd mov sp, r7
  18850. 80082a0: f85d 7b04 ldr.w r7, [sp], #4
  18851. 80082a4: 4770 bx lr
  18852. 080082a6 <HAL_DAC_DMAUnderrunCallbackCh1>:
  18853. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18854. * the configuration information for the specified DAC.
  18855. * @retval None
  18856. */
  18857. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  18858. {
  18859. 80082a6: b480 push {r7}
  18860. 80082a8: b083 sub sp, #12
  18861. 80082aa: af00 add r7, sp, #0
  18862. 80082ac: 6078 str r0, [r7, #4]
  18863. UNUSED(hdac);
  18864. /* NOTE : This function should not be modified, when the callback is needed,
  18865. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  18866. */
  18867. }
  18868. 80082ae: bf00 nop
  18869. 80082b0: 370c adds r7, #12
  18870. 80082b2: 46bd mov sp, r7
  18871. 80082b4: f85d 7b04 ldr.w r7, [sp], #4
  18872. 80082b8: 4770 bx lr
  18873. ...
  18874. 080082bc <HAL_DAC_ConfigChannel>:
  18875. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18876. * @retval HAL status
  18877. */
  18878. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  18879. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  18880. {
  18881. 80082bc: b580 push {r7, lr}
  18882. 80082be: b08a sub sp, #40 @ 0x28
  18883. 80082c0: af00 add r7, sp, #0
  18884. 80082c2: 60f8 str r0, [r7, #12]
  18885. 80082c4: 60b9 str r1, [r7, #8]
  18886. 80082c6: 607a str r2, [r7, #4]
  18887. HAL_StatusTypeDef status = HAL_OK;
  18888. 80082c8: 2300 movs r3, #0
  18889. 80082ca: f887 3023 strb.w r3, [r7, #35] @ 0x23
  18890. uint32_t tmpreg2;
  18891. uint32_t tickstart;
  18892. uint32_t connectOnChip;
  18893. /* Check the DAC peripheral handle and channel configuration struct */
  18894. if ((hdac == NULL) || (sConfig == NULL))
  18895. 80082ce: 68fb ldr r3, [r7, #12]
  18896. 80082d0: 2b00 cmp r3, #0
  18897. 80082d2: d002 beq.n 80082da <HAL_DAC_ConfigChannel+0x1e>
  18898. 80082d4: 68bb ldr r3, [r7, #8]
  18899. 80082d6: 2b00 cmp r3, #0
  18900. 80082d8: d101 bne.n 80082de <HAL_DAC_ConfigChannel+0x22>
  18901. {
  18902. return HAL_ERROR;
  18903. 80082da: 2301 movs r3, #1
  18904. 80082dc: e12a b.n 8008534 <HAL_DAC_ConfigChannel+0x278>
  18905. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  18906. }
  18907. assert_param(IS_DAC_CHANNEL(Channel));
  18908. /* Process locked */
  18909. __HAL_LOCK(hdac);
  18910. 80082de: 68fb ldr r3, [r7, #12]
  18911. 80082e0: 795b ldrb r3, [r3, #5]
  18912. 80082e2: 2b01 cmp r3, #1
  18913. 80082e4: d101 bne.n 80082ea <HAL_DAC_ConfigChannel+0x2e>
  18914. 80082e6: 2302 movs r3, #2
  18915. 80082e8: e124 b.n 8008534 <HAL_DAC_ConfigChannel+0x278>
  18916. 80082ea: 68fb ldr r3, [r7, #12]
  18917. 80082ec: 2201 movs r2, #1
  18918. 80082ee: 715a strb r2, [r3, #5]
  18919. /* Change DAC state */
  18920. hdac->State = HAL_DAC_STATE_BUSY;
  18921. 80082f0: 68fb ldr r3, [r7, #12]
  18922. 80082f2: 2202 movs r2, #2
  18923. 80082f4: 711a strb r2, [r3, #4]
  18924. /* Sample and hold configuration */
  18925. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  18926. 80082f6: 68bb ldr r3, [r7, #8]
  18927. 80082f8: 681b ldr r3, [r3, #0]
  18928. 80082fa: 2b04 cmp r3, #4
  18929. 80082fc: d17a bne.n 80083f4 <HAL_DAC_ConfigChannel+0x138>
  18930. {
  18931. /* Get timeout */
  18932. tickstart = HAL_GetTick();
  18933. 80082fe: f7fd fd8d bl 8005e1c <HAL_GetTick>
  18934. 8008302: 61f8 str r0, [r7, #28]
  18935. if (Channel == DAC_CHANNEL_1)
  18936. 8008304: 687b ldr r3, [r7, #4]
  18937. 8008306: 2b00 cmp r3, #0
  18938. 8008308: d13d bne.n 8008386 <HAL_DAC_ConfigChannel+0xca>
  18939. {
  18940. /* SHSR1 can be written when BWST1 is cleared */
  18941. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18942. 800830a: e018 b.n 800833e <HAL_DAC_ConfigChannel+0x82>
  18943. {
  18944. /* Check for the Timeout */
  18945. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  18946. 800830c: f7fd fd86 bl 8005e1c <HAL_GetTick>
  18947. 8008310: 4602 mov r2, r0
  18948. 8008312: 69fb ldr r3, [r7, #28]
  18949. 8008314: 1ad3 subs r3, r2, r3
  18950. 8008316: 2b01 cmp r3, #1
  18951. 8008318: d911 bls.n 800833e <HAL_DAC_ConfigChannel+0x82>
  18952. {
  18953. /* New check to avoid false timeout detection in case of preemption */
  18954. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18955. 800831a: 68fb ldr r3, [r7, #12]
  18956. 800831c: 681b ldr r3, [r3, #0]
  18957. 800831e: 6b5a ldr r2, [r3, #52] @ 0x34
  18958. 8008320: 4b86 ldr r3, [pc, #536] @ (800853c <HAL_DAC_ConfigChannel+0x280>)
  18959. 8008322: 4013 ands r3, r2
  18960. 8008324: 2b00 cmp r3, #0
  18961. 8008326: d00a beq.n 800833e <HAL_DAC_ConfigChannel+0x82>
  18962. {
  18963. /* Update error code */
  18964. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  18965. 8008328: 68fb ldr r3, [r7, #12]
  18966. 800832a: 691b ldr r3, [r3, #16]
  18967. 800832c: f043 0208 orr.w r2, r3, #8
  18968. 8008330: 68fb ldr r3, [r7, #12]
  18969. 8008332: 611a str r2, [r3, #16]
  18970. /* Change the DMA state */
  18971. hdac->State = HAL_DAC_STATE_TIMEOUT;
  18972. 8008334: 68fb ldr r3, [r7, #12]
  18973. 8008336: 2203 movs r2, #3
  18974. 8008338: 711a strb r2, [r3, #4]
  18975. return HAL_TIMEOUT;
  18976. 800833a: 2303 movs r3, #3
  18977. 800833c: e0fa b.n 8008534 <HAL_DAC_ConfigChannel+0x278>
  18978. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18979. 800833e: 68fb ldr r3, [r7, #12]
  18980. 8008340: 681b ldr r3, [r3, #0]
  18981. 8008342: 6b5a ldr r2, [r3, #52] @ 0x34
  18982. 8008344: 4b7d ldr r3, [pc, #500] @ (800853c <HAL_DAC_ConfigChannel+0x280>)
  18983. 8008346: 4013 ands r3, r2
  18984. 8008348: 2b00 cmp r3, #0
  18985. 800834a: d1df bne.n 800830c <HAL_DAC_ConfigChannel+0x50>
  18986. }
  18987. }
  18988. }
  18989. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  18990. 800834c: 68fb ldr r3, [r7, #12]
  18991. 800834e: 681b ldr r3, [r3, #0]
  18992. 8008350: 68ba ldr r2, [r7, #8]
  18993. 8008352: 6992 ldr r2, [r2, #24]
  18994. 8008354: 641a str r2, [r3, #64] @ 0x40
  18995. 8008356: e020 b.n 800839a <HAL_DAC_ConfigChannel+0xde>
  18996. {
  18997. /* SHSR2 can be written when BWST2 is cleared */
  18998. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  18999. {
  19000. /* Check for the Timeout */
  19001. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  19002. 8008358: f7fd fd60 bl 8005e1c <HAL_GetTick>
  19003. 800835c: 4602 mov r2, r0
  19004. 800835e: 69fb ldr r3, [r7, #28]
  19005. 8008360: 1ad3 subs r3, r2, r3
  19006. 8008362: 2b01 cmp r3, #1
  19007. 8008364: d90f bls.n 8008386 <HAL_DAC_ConfigChannel+0xca>
  19008. {
  19009. /* New check to avoid false timeout detection in case of preemption */
  19010. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19011. 8008366: 68fb ldr r3, [r7, #12]
  19012. 8008368: 681b ldr r3, [r3, #0]
  19013. 800836a: 6b5b ldr r3, [r3, #52] @ 0x34
  19014. 800836c: 2b00 cmp r3, #0
  19015. 800836e: da0a bge.n 8008386 <HAL_DAC_ConfigChannel+0xca>
  19016. {
  19017. /* Update error code */
  19018. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  19019. 8008370: 68fb ldr r3, [r7, #12]
  19020. 8008372: 691b ldr r3, [r3, #16]
  19021. 8008374: f043 0208 orr.w r2, r3, #8
  19022. 8008378: 68fb ldr r3, [r7, #12]
  19023. 800837a: 611a str r2, [r3, #16]
  19024. /* Change the DMA state */
  19025. hdac->State = HAL_DAC_STATE_TIMEOUT;
  19026. 800837c: 68fb ldr r3, [r7, #12]
  19027. 800837e: 2203 movs r2, #3
  19028. 8008380: 711a strb r2, [r3, #4]
  19029. return HAL_TIMEOUT;
  19030. 8008382: 2303 movs r3, #3
  19031. 8008384: e0d6 b.n 8008534 <HAL_DAC_ConfigChannel+0x278>
  19032. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19033. 8008386: 68fb ldr r3, [r7, #12]
  19034. 8008388: 681b ldr r3, [r3, #0]
  19035. 800838a: 6b5b ldr r3, [r3, #52] @ 0x34
  19036. 800838c: 2b00 cmp r3, #0
  19037. 800838e: dbe3 blt.n 8008358 <HAL_DAC_ConfigChannel+0x9c>
  19038. }
  19039. }
  19040. }
  19041. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  19042. 8008390: 68fb ldr r3, [r7, #12]
  19043. 8008392: 681b ldr r3, [r3, #0]
  19044. 8008394: 68ba ldr r2, [r7, #8]
  19045. 8008396: 6992 ldr r2, [r2, #24]
  19046. 8008398: 645a str r2, [r3, #68] @ 0x44
  19047. }
  19048. /* HoldTime */
  19049. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  19050. 800839a: 68fb ldr r3, [r7, #12]
  19051. 800839c: 681b ldr r3, [r3, #0]
  19052. 800839e: 6c9a ldr r2, [r3, #72] @ 0x48
  19053. 80083a0: 687b ldr r3, [r7, #4]
  19054. 80083a2: f003 0310 and.w r3, r3, #16
  19055. 80083a6: f240 31ff movw r1, #1023 @ 0x3ff
  19056. 80083aa: fa01 f303 lsl.w r3, r1, r3
  19057. 80083ae: 43db mvns r3, r3
  19058. 80083b0: ea02 0103 and.w r1, r2, r3
  19059. 80083b4: 68bb ldr r3, [r7, #8]
  19060. 80083b6: 69da ldr r2, [r3, #28]
  19061. 80083b8: 687b ldr r3, [r7, #4]
  19062. 80083ba: f003 0310 and.w r3, r3, #16
  19063. 80083be: 409a lsls r2, r3
  19064. 80083c0: 68fb ldr r3, [r7, #12]
  19065. 80083c2: 681b ldr r3, [r3, #0]
  19066. 80083c4: 430a orrs r2, r1
  19067. 80083c6: 649a str r2, [r3, #72] @ 0x48
  19068. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  19069. /* RefreshTime */
  19070. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  19071. 80083c8: 68fb ldr r3, [r7, #12]
  19072. 80083ca: 681b ldr r3, [r3, #0]
  19073. 80083cc: 6cda ldr r2, [r3, #76] @ 0x4c
  19074. 80083ce: 687b ldr r3, [r7, #4]
  19075. 80083d0: f003 0310 and.w r3, r3, #16
  19076. 80083d4: 21ff movs r1, #255 @ 0xff
  19077. 80083d6: fa01 f303 lsl.w r3, r1, r3
  19078. 80083da: 43db mvns r3, r3
  19079. 80083dc: ea02 0103 and.w r1, r2, r3
  19080. 80083e0: 68bb ldr r3, [r7, #8]
  19081. 80083e2: 6a1a ldr r2, [r3, #32]
  19082. 80083e4: 687b ldr r3, [r7, #4]
  19083. 80083e6: f003 0310 and.w r3, r3, #16
  19084. 80083ea: 409a lsls r2, r3
  19085. 80083ec: 68fb ldr r3, [r7, #12]
  19086. 80083ee: 681b ldr r3, [r3, #0]
  19087. 80083f0: 430a orrs r2, r1
  19088. 80083f2: 64da str r2, [r3, #76] @ 0x4c
  19089. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  19090. }
  19091. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  19092. 80083f4: 68bb ldr r3, [r7, #8]
  19093. 80083f6: 691b ldr r3, [r3, #16]
  19094. 80083f8: 2b01 cmp r3, #1
  19095. 80083fa: d11d bne.n 8008438 <HAL_DAC_ConfigChannel+0x17c>
  19096. /* USER TRIMMING */
  19097. {
  19098. /* Get the DAC CCR value */
  19099. tmpreg1 = hdac->Instance->CCR;
  19100. 80083fc: 68fb ldr r3, [r7, #12]
  19101. 80083fe: 681b ldr r3, [r3, #0]
  19102. 8008400: 6b9b ldr r3, [r3, #56] @ 0x38
  19103. 8008402: 61bb str r3, [r7, #24]
  19104. /* Clear trimming value */
  19105. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  19106. 8008404: 687b ldr r3, [r7, #4]
  19107. 8008406: f003 0310 and.w r3, r3, #16
  19108. 800840a: 221f movs r2, #31
  19109. 800840c: fa02 f303 lsl.w r3, r2, r3
  19110. 8008410: 43db mvns r3, r3
  19111. 8008412: 69ba ldr r2, [r7, #24]
  19112. 8008414: 4013 ands r3, r2
  19113. 8008416: 61bb str r3, [r7, #24]
  19114. /* Configure for the selected trimming offset */
  19115. tmpreg2 = sConfig->DAC_TrimmingValue;
  19116. 8008418: 68bb ldr r3, [r7, #8]
  19117. 800841a: 695b ldr r3, [r3, #20]
  19118. 800841c: 617b str r3, [r7, #20]
  19119. /* Calculate CCR register value depending on DAC_Channel */
  19120. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19121. 800841e: 687b ldr r3, [r7, #4]
  19122. 8008420: f003 0310 and.w r3, r3, #16
  19123. 8008424: 697a ldr r2, [r7, #20]
  19124. 8008426: fa02 f303 lsl.w r3, r2, r3
  19125. 800842a: 69ba ldr r2, [r7, #24]
  19126. 800842c: 4313 orrs r3, r2
  19127. 800842e: 61bb str r3, [r7, #24]
  19128. /* Write to DAC CCR */
  19129. hdac->Instance->CCR = tmpreg1;
  19130. 8008430: 68fb ldr r3, [r7, #12]
  19131. 8008432: 681b ldr r3, [r3, #0]
  19132. 8008434: 69ba ldr r2, [r7, #24]
  19133. 8008436: 639a str r2, [r3, #56] @ 0x38
  19134. }
  19135. /* else factory trimming is used (factory setting are available at reset)*/
  19136. /* SW Nothing has nothing to do */
  19137. /* Get the DAC MCR value */
  19138. tmpreg1 = hdac->Instance->MCR;
  19139. 8008438: 68fb ldr r3, [r7, #12]
  19140. 800843a: 681b ldr r3, [r3, #0]
  19141. 800843c: 6bdb ldr r3, [r3, #60] @ 0x3c
  19142. 800843e: 61bb str r3, [r7, #24]
  19143. /* Clear DAC_MCR_MODEx bits */
  19144. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  19145. 8008440: 687b ldr r3, [r7, #4]
  19146. 8008442: f003 0310 and.w r3, r3, #16
  19147. 8008446: 2207 movs r2, #7
  19148. 8008448: fa02 f303 lsl.w r3, r2, r3
  19149. 800844c: 43db mvns r3, r3
  19150. 800844e: 69ba ldr r2, [r7, #24]
  19151. 8008450: 4013 ands r3, r2
  19152. 8008452: 61bb str r3, [r7, #24]
  19153. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  19154. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  19155. 8008454: 68bb ldr r3, [r7, #8]
  19156. 8008456: 68db ldr r3, [r3, #12]
  19157. 8008458: 2b01 cmp r3, #1
  19158. 800845a: d102 bne.n 8008462 <HAL_DAC_ConfigChannel+0x1a6>
  19159. {
  19160. connectOnChip = 0x00000000UL;
  19161. 800845c: 2300 movs r3, #0
  19162. 800845e: 627b str r3, [r7, #36] @ 0x24
  19163. 8008460: e00f b.n 8008482 <HAL_DAC_ConfigChannel+0x1c6>
  19164. }
  19165. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  19166. 8008462: 68bb ldr r3, [r7, #8]
  19167. 8008464: 68db ldr r3, [r3, #12]
  19168. 8008466: 2b02 cmp r3, #2
  19169. 8008468: d102 bne.n 8008470 <HAL_DAC_ConfigChannel+0x1b4>
  19170. {
  19171. connectOnChip = DAC_MCR_MODE1_0;
  19172. 800846a: 2301 movs r3, #1
  19173. 800846c: 627b str r3, [r7, #36] @ 0x24
  19174. 800846e: e008 b.n 8008482 <HAL_DAC_ConfigChannel+0x1c6>
  19175. }
  19176. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  19177. {
  19178. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  19179. 8008470: 68bb ldr r3, [r7, #8]
  19180. 8008472: 689b ldr r3, [r3, #8]
  19181. 8008474: 2b00 cmp r3, #0
  19182. 8008476: d102 bne.n 800847e <HAL_DAC_ConfigChannel+0x1c2>
  19183. {
  19184. connectOnChip = DAC_MCR_MODE1_0;
  19185. 8008478: 2301 movs r3, #1
  19186. 800847a: 627b str r3, [r7, #36] @ 0x24
  19187. 800847c: e001 b.n 8008482 <HAL_DAC_ConfigChannel+0x1c6>
  19188. }
  19189. else
  19190. {
  19191. connectOnChip = 0x00000000UL;
  19192. 800847e: 2300 movs r3, #0
  19193. 8008480: 627b str r3, [r7, #36] @ 0x24
  19194. }
  19195. }
  19196. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  19197. 8008482: 68bb ldr r3, [r7, #8]
  19198. 8008484: 681a ldr r2, [r3, #0]
  19199. 8008486: 68bb ldr r3, [r7, #8]
  19200. 8008488: 689b ldr r3, [r3, #8]
  19201. 800848a: 4313 orrs r3, r2
  19202. 800848c: 6a7a ldr r2, [r7, #36] @ 0x24
  19203. 800848e: 4313 orrs r3, r2
  19204. 8008490: 617b str r3, [r7, #20]
  19205. /* Calculate MCR register value depending on DAC_Channel */
  19206. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19207. 8008492: 687b ldr r3, [r7, #4]
  19208. 8008494: f003 0310 and.w r3, r3, #16
  19209. 8008498: 697a ldr r2, [r7, #20]
  19210. 800849a: fa02 f303 lsl.w r3, r2, r3
  19211. 800849e: 69ba ldr r2, [r7, #24]
  19212. 80084a0: 4313 orrs r3, r2
  19213. 80084a2: 61bb str r3, [r7, #24]
  19214. /* Write to DAC MCR */
  19215. hdac->Instance->MCR = tmpreg1;
  19216. 80084a4: 68fb ldr r3, [r7, #12]
  19217. 80084a6: 681b ldr r3, [r3, #0]
  19218. 80084a8: 69ba ldr r2, [r7, #24]
  19219. 80084aa: 63da str r2, [r3, #60] @ 0x3c
  19220. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  19221. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  19222. 80084ac: 68fb ldr r3, [r7, #12]
  19223. 80084ae: 681b ldr r3, [r3, #0]
  19224. 80084b0: 6819 ldr r1, [r3, #0]
  19225. 80084b2: 687b ldr r3, [r7, #4]
  19226. 80084b4: f003 0310 and.w r3, r3, #16
  19227. 80084b8: f44f 4280 mov.w r2, #16384 @ 0x4000
  19228. 80084bc: fa02 f303 lsl.w r3, r2, r3
  19229. 80084c0: 43da mvns r2, r3
  19230. 80084c2: 68fb ldr r3, [r7, #12]
  19231. 80084c4: 681b ldr r3, [r3, #0]
  19232. 80084c6: 400a ands r2, r1
  19233. 80084c8: 601a str r2, [r3, #0]
  19234. /* Get the DAC CR value */
  19235. tmpreg1 = hdac->Instance->CR;
  19236. 80084ca: 68fb ldr r3, [r7, #12]
  19237. 80084cc: 681b ldr r3, [r3, #0]
  19238. 80084ce: 681b ldr r3, [r3, #0]
  19239. 80084d0: 61bb str r3, [r7, #24]
  19240. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  19241. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  19242. 80084d2: 687b ldr r3, [r7, #4]
  19243. 80084d4: f003 0310 and.w r3, r3, #16
  19244. 80084d8: f640 72fe movw r2, #4094 @ 0xffe
  19245. 80084dc: fa02 f303 lsl.w r3, r2, r3
  19246. 80084e0: 43db mvns r3, r3
  19247. 80084e2: 69ba ldr r2, [r7, #24]
  19248. 80084e4: 4013 ands r3, r2
  19249. 80084e6: 61bb str r3, [r7, #24]
  19250. /* Configure for the selected DAC channel: trigger */
  19251. /* Set TSELx and TENx bits according to DAC_Trigger value */
  19252. tmpreg2 = sConfig->DAC_Trigger;
  19253. 80084e8: 68bb ldr r3, [r7, #8]
  19254. 80084ea: 685b ldr r3, [r3, #4]
  19255. 80084ec: 617b str r3, [r7, #20]
  19256. /* Calculate CR register value depending on DAC_Channel */
  19257. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19258. 80084ee: 687b ldr r3, [r7, #4]
  19259. 80084f0: f003 0310 and.w r3, r3, #16
  19260. 80084f4: 697a ldr r2, [r7, #20]
  19261. 80084f6: fa02 f303 lsl.w r3, r2, r3
  19262. 80084fa: 69ba ldr r2, [r7, #24]
  19263. 80084fc: 4313 orrs r3, r2
  19264. 80084fe: 61bb str r3, [r7, #24]
  19265. /* Write to DAC CR */
  19266. hdac->Instance->CR = tmpreg1;
  19267. 8008500: 68fb ldr r3, [r7, #12]
  19268. 8008502: 681b ldr r3, [r3, #0]
  19269. 8008504: 69ba ldr r2, [r7, #24]
  19270. 8008506: 601a str r2, [r3, #0]
  19271. /* Disable wave generation */
  19272. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  19273. 8008508: 68fb ldr r3, [r7, #12]
  19274. 800850a: 681b ldr r3, [r3, #0]
  19275. 800850c: 6819 ldr r1, [r3, #0]
  19276. 800850e: 687b ldr r3, [r7, #4]
  19277. 8008510: f003 0310 and.w r3, r3, #16
  19278. 8008514: 22c0 movs r2, #192 @ 0xc0
  19279. 8008516: fa02 f303 lsl.w r3, r2, r3
  19280. 800851a: 43da mvns r2, r3
  19281. 800851c: 68fb ldr r3, [r7, #12]
  19282. 800851e: 681b ldr r3, [r3, #0]
  19283. 8008520: 400a ands r2, r1
  19284. 8008522: 601a str r2, [r3, #0]
  19285. /* Change DAC state */
  19286. hdac->State = HAL_DAC_STATE_READY;
  19287. 8008524: 68fb ldr r3, [r7, #12]
  19288. 8008526: 2201 movs r2, #1
  19289. 8008528: 711a strb r2, [r3, #4]
  19290. /* Process unlocked */
  19291. __HAL_UNLOCK(hdac);
  19292. 800852a: 68fb ldr r3, [r7, #12]
  19293. 800852c: 2200 movs r2, #0
  19294. 800852e: 715a strb r2, [r3, #5]
  19295. /* Return function status */
  19296. return status;
  19297. 8008530: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  19298. }
  19299. 8008534: 4618 mov r0, r3
  19300. 8008536: 3728 adds r7, #40 @ 0x28
  19301. 8008538: 46bd mov sp, r7
  19302. 800853a: bd80 pop {r7, pc}
  19303. 800853c: 20008000 .word 0x20008000
  19304. 08008540 <HAL_DACEx_DMAUnderrunCallbackCh2>:
  19305. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  19306. * the configuration information for the specified DAC.
  19307. * @retval None
  19308. */
  19309. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  19310. {
  19311. 8008540: b480 push {r7}
  19312. 8008542: b083 sub sp, #12
  19313. 8008544: af00 add r7, sp, #0
  19314. 8008546: 6078 str r0, [r7, #4]
  19315. UNUSED(hdac);
  19316. /* NOTE : This function should not be modified, when the callback is needed,
  19317. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  19318. */
  19319. }
  19320. 8008548: bf00 nop
  19321. 800854a: 370c adds r7, #12
  19322. 800854c: 46bd mov sp, r7
  19323. 800854e: f85d 7b04 ldr.w r7, [sp], #4
  19324. 8008552: 4770 bx lr
  19325. 08008554 <HAL_DMA_Init>:
  19326. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  19327. * the configuration information for the specified DMA Stream.
  19328. * @retval HAL status
  19329. */
  19330. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  19331. {
  19332. 8008554: b580 push {r7, lr}
  19333. 8008556: b086 sub sp, #24
  19334. 8008558: af00 add r7, sp, #0
  19335. 800855a: 6078 str r0, [r7, #4]
  19336. uint32_t registerValue;
  19337. uint32_t tickstart = HAL_GetTick();
  19338. 800855c: f7fd fc5e bl 8005e1c <HAL_GetTick>
  19339. 8008560: 6138 str r0, [r7, #16]
  19340. DMA_Base_Registers *regs_dma;
  19341. BDMA_Base_Registers *regs_bdma;
  19342. /* Check the DMA peripheral handle */
  19343. if(hdma == NULL)
  19344. 8008562: 687b ldr r3, [r7, #4]
  19345. 8008564: 2b00 cmp r3, #0
  19346. 8008566: d101 bne.n 800856c <HAL_DMA_Init+0x18>
  19347. {
  19348. return HAL_ERROR;
  19349. 8008568: 2301 movs r3, #1
  19350. 800856a: e316 b.n 8008b9a <HAL_DMA_Init+0x646>
  19351. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  19352. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  19353. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  19354. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  19355. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19356. 800856c: 687b ldr r3, [r7, #4]
  19357. 800856e: 681b ldr r3, [r3, #0]
  19358. 8008570: 4a66 ldr r2, [pc, #408] @ (800870c <HAL_DMA_Init+0x1b8>)
  19359. 8008572: 4293 cmp r3, r2
  19360. 8008574: d04a beq.n 800860c <HAL_DMA_Init+0xb8>
  19361. 8008576: 687b ldr r3, [r7, #4]
  19362. 8008578: 681b ldr r3, [r3, #0]
  19363. 800857a: 4a65 ldr r2, [pc, #404] @ (8008710 <HAL_DMA_Init+0x1bc>)
  19364. 800857c: 4293 cmp r3, r2
  19365. 800857e: d045 beq.n 800860c <HAL_DMA_Init+0xb8>
  19366. 8008580: 687b ldr r3, [r7, #4]
  19367. 8008582: 681b ldr r3, [r3, #0]
  19368. 8008584: 4a63 ldr r2, [pc, #396] @ (8008714 <HAL_DMA_Init+0x1c0>)
  19369. 8008586: 4293 cmp r3, r2
  19370. 8008588: d040 beq.n 800860c <HAL_DMA_Init+0xb8>
  19371. 800858a: 687b ldr r3, [r7, #4]
  19372. 800858c: 681b ldr r3, [r3, #0]
  19373. 800858e: 4a62 ldr r2, [pc, #392] @ (8008718 <HAL_DMA_Init+0x1c4>)
  19374. 8008590: 4293 cmp r3, r2
  19375. 8008592: d03b beq.n 800860c <HAL_DMA_Init+0xb8>
  19376. 8008594: 687b ldr r3, [r7, #4]
  19377. 8008596: 681b ldr r3, [r3, #0]
  19378. 8008598: 4a60 ldr r2, [pc, #384] @ (800871c <HAL_DMA_Init+0x1c8>)
  19379. 800859a: 4293 cmp r3, r2
  19380. 800859c: d036 beq.n 800860c <HAL_DMA_Init+0xb8>
  19381. 800859e: 687b ldr r3, [r7, #4]
  19382. 80085a0: 681b ldr r3, [r3, #0]
  19383. 80085a2: 4a5f ldr r2, [pc, #380] @ (8008720 <HAL_DMA_Init+0x1cc>)
  19384. 80085a4: 4293 cmp r3, r2
  19385. 80085a6: d031 beq.n 800860c <HAL_DMA_Init+0xb8>
  19386. 80085a8: 687b ldr r3, [r7, #4]
  19387. 80085aa: 681b ldr r3, [r3, #0]
  19388. 80085ac: 4a5d ldr r2, [pc, #372] @ (8008724 <HAL_DMA_Init+0x1d0>)
  19389. 80085ae: 4293 cmp r3, r2
  19390. 80085b0: d02c beq.n 800860c <HAL_DMA_Init+0xb8>
  19391. 80085b2: 687b ldr r3, [r7, #4]
  19392. 80085b4: 681b ldr r3, [r3, #0]
  19393. 80085b6: 4a5c ldr r2, [pc, #368] @ (8008728 <HAL_DMA_Init+0x1d4>)
  19394. 80085b8: 4293 cmp r3, r2
  19395. 80085ba: d027 beq.n 800860c <HAL_DMA_Init+0xb8>
  19396. 80085bc: 687b ldr r3, [r7, #4]
  19397. 80085be: 681b ldr r3, [r3, #0]
  19398. 80085c0: 4a5a ldr r2, [pc, #360] @ (800872c <HAL_DMA_Init+0x1d8>)
  19399. 80085c2: 4293 cmp r3, r2
  19400. 80085c4: d022 beq.n 800860c <HAL_DMA_Init+0xb8>
  19401. 80085c6: 687b ldr r3, [r7, #4]
  19402. 80085c8: 681b ldr r3, [r3, #0]
  19403. 80085ca: 4a59 ldr r2, [pc, #356] @ (8008730 <HAL_DMA_Init+0x1dc>)
  19404. 80085cc: 4293 cmp r3, r2
  19405. 80085ce: d01d beq.n 800860c <HAL_DMA_Init+0xb8>
  19406. 80085d0: 687b ldr r3, [r7, #4]
  19407. 80085d2: 681b ldr r3, [r3, #0]
  19408. 80085d4: 4a57 ldr r2, [pc, #348] @ (8008734 <HAL_DMA_Init+0x1e0>)
  19409. 80085d6: 4293 cmp r3, r2
  19410. 80085d8: d018 beq.n 800860c <HAL_DMA_Init+0xb8>
  19411. 80085da: 687b ldr r3, [r7, #4]
  19412. 80085dc: 681b ldr r3, [r3, #0]
  19413. 80085de: 4a56 ldr r2, [pc, #344] @ (8008738 <HAL_DMA_Init+0x1e4>)
  19414. 80085e0: 4293 cmp r3, r2
  19415. 80085e2: d013 beq.n 800860c <HAL_DMA_Init+0xb8>
  19416. 80085e4: 687b ldr r3, [r7, #4]
  19417. 80085e6: 681b ldr r3, [r3, #0]
  19418. 80085e8: 4a54 ldr r2, [pc, #336] @ (800873c <HAL_DMA_Init+0x1e8>)
  19419. 80085ea: 4293 cmp r3, r2
  19420. 80085ec: d00e beq.n 800860c <HAL_DMA_Init+0xb8>
  19421. 80085ee: 687b ldr r3, [r7, #4]
  19422. 80085f0: 681b ldr r3, [r3, #0]
  19423. 80085f2: 4a53 ldr r2, [pc, #332] @ (8008740 <HAL_DMA_Init+0x1ec>)
  19424. 80085f4: 4293 cmp r3, r2
  19425. 80085f6: d009 beq.n 800860c <HAL_DMA_Init+0xb8>
  19426. 80085f8: 687b ldr r3, [r7, #4]
  19427. 80085fa: 681b ldr r3, [r3, #0]
  19428. 80085fc: 4a51 ldr r2, [pc, #324] @ (8008744 <HAL_DMA_Init+0x1f0>)
  19429. 80085fe: 4293 cmp r3, r2
  19430. 8008600: d004 beq.n 800860c <HAL_DMA_Init+0xb8>
  19431. 8008602: 687b ldr r3, [r7, #4]
  19432. 8008604: 681b ldr r3, [r3, #0]
  19433. 8008606: 4a50 ldr r2, [pc, #320] @ (8008748 <HAL_DMA_Init+0x1f4>)
  19434. 8008608: 4293 cmp r3, r2
  19435. 800860a: d101 bne.n 8008610 <HAL_DMA_Init+0xbc>
  19436. 800860c: 2301 movs r3, #1
  19437. 800860e: e000 b.n 8008612 <HAL_DMA_Init+0xbe>
  19438. 8008610: 2300 movs r3, #0
  19439. 8008612: 2b00 cmp r3, #0
  19440. 8008614: f000 813b beq.w 800888e <HAL_DMA_Init+0x33a>
  19441. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  19442. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  19443. }
  19444. /* Change DMA peripheral state */
  19445. hdma->State = HAL_DMA_STATE_BUSY;
  19446. 8008618: 687b ldr r3, [r7, #4]
  19447. 800861a: 2202 movs r2, #2
  19448. 800861c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19449. /* Allocate lock resource */
  19450. __HAL_UNLOCK(hdma);
  19451. 8008620: 687b ldr r3, [r7, #4]
  19452. 8008622: 2200 movs r2, #0
  19453. 8008624: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19454. /* Disable the peripheral */
  19455. __HAL_DMA_DISABLE(hdma);
  19456. 8008628: 687b ldr r3, [r7, #4]
  19457. 800862a: 681b ldr r3, [r3, #0]
  19458. 800862c: 4a37 ldr r2, [pc, #220] @ (800870c <HAL_DMA_Init+0x1b8>)
  19459. 800862e: 4293 cmp r3, r2
  19460. 8008630: d04a beq.n 80086c8 <HAL_DMA_Init+0x174>
  19461. 8008632: 687b ldr r3, [r7, #4]
  19462. 8008634: 681b ldr r3, [r3, #0]
  19463. 8008636: 4a36 ldr r2, [pc, #216] @ (8008710 <HAL_DMA_Init+0x1bc>)
  19464. 8008638: 4293 cmp r3, r2
  19465. 800863a: d045 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19466. 800863c: 687b ldr r3, [r7, #4]
  19467. 800863e: 681b ldr r3, [r3, #0]
  19468. 8008640: 4a34 ldr r2, [pc, #208] @ (8008714 <HAL_DMA_Init+0x1c0>)
  19469. 8008642: 4293 cmp r3, r2
  19470. 8008644: d040 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19471. 8008646: 687b ldr r3, [r7, #4]
  19472. 8008648: 681b ldr r3, [r3, #0]
  19473. 800864a: 4a33 ldr r2, [pc, #204] @ (8008718 <HAL_DMA_Init+0x1c4>)
  19474. 800864c: 4293 cmp r3, r2
  19475. 800864e: d03b beq.n 80086c8 <HAL_DMA_Init+0x174>
  19476. 8008650: 687b ldr r3, [r7, #4]
  19477. 8008652: 681b ldr r3, [r3, #0]
  19478. 8008654: 4a31 ldr r2, [pc, #196] @ (800871c <HAL_DMA_Init+0x1c8>)
  19479. 8008656: 4293 cmp r3, r2
  19480. 8008658: d036 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19481. 800865a: 687b ldr r3, [r7, #4]
  19482. 800865c: 681b ldr r3, [r3, #0]
  19483. 800865e: 4a30 ldr r2, [pc, #192] @ (8008720 <HAL_DMA_Init+0x1cc>)
  19484. 8008660: 4293 cmp r3, r2
  19485. 8008662: d031 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19486. 8008664: 687b ldr r3, [r7, #4]
  19487. 8008666: 681b ldr r3, [r3, #0]
  19488. 8008668: 4a2e ldr r2, [pc, #184] @ (8008724 <HAL_DMA_Init+0x1d0>)
  19489. 800866a: 4293 cmp r3, r2
  19490. 800866c: d02c beq.n 80086c8 <HAL_DMA_Init+0x174>
  19491. 800866e: 687b ldr r3, [r7, #4]
  19492. 8008670: 681b ldr r3, [r3, #0]
  19493. 8008672: 4a2d ldr r2, [pc, #180] @ (8008728 <HAL_DMA_Init+0x1d4>)
  19494. 8008674: 4293 cmp r3, r2
  19495. 8008676: d027 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19496. 8008678: 687b ldr r3, [r7, #4]
  19497. 800867a: 681b ldr r3, [r3, #0]
  19498. 800867c: 4a2b ldr r2, [pc, #172] @ (800872c <HAL_DMA_Init+0x1d8>)
  19499. 800867e: 4293 cmp r3, r2
  19500. 8008680: d022 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19501. 8008682: 687b ldr r3, [r7, #4]
  19502. 8008684: 681b ldr r3, [r3, #0]
  19503. 8008686: 4a2a ldr r2, [pc, #168] @ (8008730 <HAL_DMA_Init+0x1dc>)
  19504. 8008688: 4293 cmp r3, r2
  19505. 800868a: d01d beq.n 80086c8 <HAL_DMA_Init+0x174>
  19506. 800868c: 687b ldr r3, [r7, #4]
  19507. 800868e: 681b ldr r3, [r3, #0]
  19508. 8008690: 4a28 ldr r2, [pc, #160] @ (8008734 <HAL_DMA_Init+0x1e0>)
  19509. 8008692: 4293 cmp r3, r2
  19510. 8008694: d018 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19511. 8008696: 687b ldr r3, [r7, #4]
  19512. 8008698: 681b ldr r3, [r3, #0]
  19513. 800869a: 4a27 ldr r2, [pc, #156] @ (8008738 <HAL_DMA_Init+0x1e4>)
  19514. 800869c: 4293 cmp r3, r2
  19515. 800869e: d013 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19516. 80086a0: 687b ldr r3, [r7, #4]
  19517. 80086a2: 681b ldr r3, [r3, #0]
  19518. 80086a4: 4a25 ldr r2, [pc, #148] @ (800873c <HAL_DMA_Init+0x1e8>)
  19519. 80086a6: 4293 cmp r3, r2
  19520. 80086a8: d00e beq.n 80086c8 <HAL_DMA_Init+0x174>
  19521. 80086aa: 687b ldr r3, [r7, #4]
  19522. 80086ac: 681b ldr r3, [r3, #0]
  19523. 80086ae: 4a24 ldr r2, [pc, #144] @ (8008740 <HAL_DMA_Init+0x1ec>)
  19524. 80086b0: 4293 cmp r3, r2
  19525. 80086b2: d009 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19526. 80086b4: 687b ldr r3, [r7, #4]
  19527. 80086b6: 681b ldr r3, [r3, #0]
  19528. 80086b8: 4a22 ldr r2, [pc, #136] @ (8008744 <HAL_DMA_Init+0x1f0>)
  19529. 80086ba: 4293 cmp r3, r2
  19530. 80086bc: d004 beq.n 80086c8 <HAL_DMA_Init+0x174>
  19531. 80086be: 687b ldr r3, [r7, #4]
  19532. 80086c0: 681b ldr r3, [r3, #0]
  19533. 80086c2: 4a21 ldr r2, [pc, #132] @ (8008748 <HAL_DMA_Init+0x1f4>)
  19534. 80086c4: 4293 cmp r3, r2
  19535. 80086c6: d108 bne.n 80086da <HAL_DMA_Init+0x186>
  19536. 80086c8: 687b ldr r3, [r7, #4]
  19537. 80086ca: 681b ldr r3, [r3, #0]
  19538. 80086cc: 681a ldr r2, [r3, #0]
  19539. 80086ce: 687b ldr r3, [r7, #4]
  19540. 80086d0: 681b ldr r3, [r3, #0]
  19541. 80086d2: f022 0201 bic.w r2, r2, #1
  19542. 80086d6: 601a str r2, [r3, #0]
  19543. 80086d8: e007 b.n 80086ea <HAL_DMA_Init+0x196>
  19544. 80086da: 687b ldr r3, [r7, #4]
  19545. 80086dc: 681b ldr r3, [r3, #0]
  19546. 80086de: 681a ldr r2, [r3, #0]
  19547. 80086e0: 687b ldr r3, [r7, #4]
  19548. 80086e2: 681b ldr r3, [r3, #0]
  19549. 80086e4: f022 0201 bic.w r2, r2, #1
  19550. 80086e8: 601a str r2, [r3, #0]
  19551. /* Check if the DMA Stream is effectively disabled */
  19552. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19553. 80086ea: e02f b.n 800874c <HAL_DMA_Init+0x1f8>
  19554. {
  19555. /* Check for the Timeout */
  19556. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  19557. 80086ec: f7fd fb96 bl 8005e1c <HAL_GetTick>
  19558. 80086f0: 4602 mov r2, r0
  19559. 80086f2: 693b ldr r3, [r7, #16]
  19560. 80086f4: 1ad3 subs r3, r2, r3
  19561. 80086f6: 2b05 cmp r3, #5
  19562. 80086f8: d928 bls.n 800874c <HAL_DMA_Init+0x1f8>
  19563. {
  19564. /* Update error code */
  19565. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  19566. 80086fa: 687b ldr r3, [r7, #4]
  19567. 80086fc: 2220 movs r2, #32
  19568. 80086fe: 655a str r2, [r3, #84] @ 0x54
  19569. /* Change the DMA state */
  19570. hdma->State = HAL_DMA_STATE_ERROR;
  19571. 8008700: 687b ldr r3, [r7, #4]
  19572. 8008702: 2203 movs r2, #3
  19573. 8008704: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19574. return HAL_ERROR;
  19575. 8008708: 2301 movs r3, #1
  19576. 800870a: e246 b.n 8008b9a <HAL_DMA_Init+0x646>
  19577. 800870c: 40020010 .word 0x40020010
  19578. 8008710: 40020028 .word 0x40020028
  19579. 8008714: 40020040 .word 0x40020040
  19580. 8008718: 40020058 .word 0x40020058
  19581. 800871c: 40020070 .word 0x40020070
  19582. 8008720: 40020088 .word 0x40020088
  19583. 8008724: 400200a0 .word 0x400200a0
  19584. 8008728: 400200b8 .word 0x400200b8
  19585. 800872c: 40020410 .word 0x40020410
  19586. 8008730: 40020428 .word 0x40020428
  19587. 8008734: 40020440 .word 0x40020440
  19588. 8008738: 40020458 .word 0x40020458
  19589. 800873c: 40020470 .word 0x40020470
  19590. 8008740: 40020488 .word 0x40020488
  19591. 8008744: 400204a0 .word 0x400204a0
  19592. 8008748: 400204b8 .word 0x400204b8
  19593. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19594. 800874c: 687b ldr r3, [r7, #4]
  19595. 800874e: 681b ldr r3, [r3, #0]
  19596. 8008750: 681b ldr r3, [r3, #0]
  19597. 8008752: f003 0301 and.w r3, r3, #1
  19598. 8008756: 2b00 cmp r3, #0
  19599. 8008758: d1c8 bne.n 80086ec <HAL_DMA_Init+0x198>
  19600. }
  19601. }
  19602. /* Get the CR register value */
  19603. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  19604. 800875a: 687b ldr r3, [r7, #4]
  19605. 800875c: 681b ldr r3, [r3, #0]
  19606. 800875e: 681b ldr r3, [r3, #0]
  19607. 8008760: 617b str r3, [r7, #20]
  19608. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  19609. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  19610. 8008762: 697a ldr r2, [r7, #20]
  19611. 8008764: 4b83 ldr r3, [pc, #524] @ (8008974 <HAL_DMA_Init+0x420>)
  19612. 8008766: 4013 ands r3, r2
  19613. 8008768: 617b str r3, [r7, #20]
  19614. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  19615. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  19616. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  19617. /* Prepare the DMA Stream configuration */
  19618. registerValue |= hdma->Init.Direction |
  19619. 800876a: 687b ldr r3, [r7, #4]
  19620. 800876c: 689a ldr r2, [r3, #8]
  19621. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19622. 800876e: 687b ldr r3, [r7, #4]
  19623. 8008770: 68db ldr r3, [r3, #12]
  19624. registerValue |= hdma->Init.Direction |
  19625. 8008772: 431a orrs r2, r3
  19626. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19627. 8008774: 687b ldr r3, [r7, #4]
  19628. 8008776: 691b ldr r3, [r3, #16]
  19629. 8008778: 431a orrs r2, r3
  19630. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19631. 800877a: 687b ldr r3, [r7, #4]
  19632. 800877c: 695b ldr r3, [r3, #20]
  19633. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19634. 800877e: 431a orrs r2, r3
  19635. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19636. 8008780: 687b ldr r3, [r7, #4]
  19637. 8008782: 699b ldr r3, [r3, #24]
  19638. 8008784: 431a orrs r2, r3
  19639. hdma->Init.Mode | hdma->Init.Priority;
  19640. 8008786: 687b ldr r3, [r7, #4]
  19641. 8008788: 69db ldr r3, [r3, #28]
  19642. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19643. 800878a: 431a orrs r2, r3
  19644. hdma->Init.Mode | hdma->Init.Priority;
  19645. 800878c: 687b ldr r3, [r7, #4]
  19646. 800878e: 6a1b ldr r3, [r3, #32]
  19647. 8008790: 4313 orrs r3, r2
  19648. registerValue |= hdma->Init.Direction |
  19649. 8008792: 697a ldr r2, [r7, #20]
  19650. 8008794: 4313 orrs r3, r2
  19651. 8008796: 617b str r3, [r7, #20]
  19652. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  19653. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19654. 8008798: 687b ldr r3, [r7, #4]
  19655. 800879a: 6a5b ldr r3, [r3, #36] @ 0x24
  19656. 800879c: 2b04 cmp r3, #4
  19657. 800879e: d107 bne.n 80087b0 <HAL_DMA_Init+0x25c>
  19658. {
  19659. /* Get memory burst and peripheral burst */
  19660. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  19661. 80087a0: 687b ldr r3, [r7, #4]
  19662. 80087a2: 6ada ldr r2, [r3, #44] @ 0x2c
  19663. 80087a4: 687b ldr r3, [r7, #4]
  19664. 80087a6: 6b1b ldr r3, [r3, #48] @ 0x30
  19665. 80087a8: 4313 orrs r3, r2
  19666. 80087aa: 697a ldr r2, [r7, #20]
  19667. 80087ac: 4313 orrs r3, r2
  19668. 80087ae: 617b str r3, [r7, #20]
  19669. }
  19670. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  19671. lock when transferring data to/from USART/UART */
  19672. #if (STM32H7_DEV_ID == 0x450UL)
  19673. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  19674. 80087b0: 4b71 ldr r3, [pc, #452] @ (8008978 <HAL_DMA_Init+0x424>)
  19675. 80087b2: 681a ldr r2, [r3, #0]
  19676. 80087b4: 4b71 ldr r3, [pc, #452] @ (800897c <HAL_DMA_Init+0x428>)
  19677. 80087b6: 4013 ands r3, r2
  19678. 80087b8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  19679. 80087bc: d328 bcc.n 8008810 <HAL_DMA_Init+0x2bc>
  19680. {
  19681. #endif /* STM32H7_DEV_ID == 0x450UL */
  19682. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  19683. 80087be: 687b ldr r3, [r7, #4]
  19684. 80087c0: 685b ldr r3, [r3, #4]
  19685. 80087c2: 2b28 cmp r3, #40 @ 0x28
  19686. 80087c4: d903 bls.n 80087ce <HAL_DMA_Init+0x27a>
  19687. 80087c6: 687b ldr r3, [r7, #4]
  19688. 80087c8: 685b ldr r3, [r3, #4]
  19689. 80087ca: 2b2e cmp r3, #46 @ 0x2e
  19690. 80087cc: d917 bls.n 80087fe <HAL_DMA_Init+0x2aa>
  19691. 80087ce: 687b ldr r3, [r7, #4]
  19692. 80087d0: 685b ldr r3, [r3, #4]
  19693. 80087d2: 2b3e cmp r3, #62 @ 0x3e
  19694. 80087d4: d903 bls.n 80087de <HAL_DMA_Init+0x28a>
  19695. 80087d6: 687b ldr r3, [r7, #4]
  19696. 80087d8: 685b ldr r3, [r3, #4]
  19697. 80087da: 2b42 cmp r3, #66 @ 0x42
  19698. 80087dc: d90f bls.n 80087fe <HAL_DMA_Init+0x2aa>
  19699. 80087de: 687b ldr r3, [r7, #4]
  19700. 80087e0: 685b ldr r3, [r3, #4]
  19701. 80087e2: 2b46 cmp r3, #70 @ 0x46
  19702. 80087e4: d903 bls.n 80087ee <HAL_DMA_Init+0x29a>
  19703. 80087e6: 687b ldr r3, [r7, #4]
  19704. 80087e8: 685b ldr r3, [r3, #4]
  19705. 80087ea: 2b48 cmp r3, #72 @ 0x48
  19706. 80087ec: d907 bls.n 80087fe <HAL_DMA_Init+0x2aa>
  19707. 80087ee: 687b ldr r3, [r7, #4]
  19708. 80087f0: 685b ldr r3, [r3, #4]
  19709. 80087f2: 2b4e cmp r3, #78 @ 0x4e
  19710. 80087f4: d905 bls.n 8008802 <HAL_DMA_Init+0x2ae>
  19711. 80087f6: 687b ldr r3, [r7, #4]
  19712. 80087f8: 685b ldr r3, [r3, #4]
  19713. 80087fa: 2b52 cmp r3, #82 @ 0x52
  19714. 80087fc: d801 bhi.n 8008802 <HAL_DMA_Init+0x2ae>
  19715. 80087fe: 2301 movs r3, #1
  19716. 8008800: e000 b.n 8008804 <HAL_DMA_Init+0x2b0>
  19717. 8008802: 2300 movs r3, #0
  19718. 8008804: 2b00 cmp r3, #0
  19719. 8008806: d003 beq.n 8008810 <HAL_DMA_Init+0x2bc>
  19720. {
  19721. registerValue |= DMA_SxCR_TRBUFF;
  19722. 8008808: 697b ldr r3, [r7, #20]
  19723. 800880a: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  19724. 800880e: 617b str r3, [r7, #20]
  19725. #if (STM32H7_DEV_ID == 0x450UL)
  19726. }
  19727. #endif /* STM32H7_DEV_ID == 0x450UL */
  19728. /* Write to DMA Stream CR register */
  19729. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  19730. 8008810: 687b ldr r3, [r7, #4]
  19731. 8008812: 681b ldr r3, [r3, #0]
  19732. 8008814: 697a ldr r2, [r7, #20]
  19733. 8008816: 601a str r2, [r3, #0]
  19734. /* Get the FCR register value */
  19735. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  19736. 8008818: 687b ldr r3, [r7, #4]
  19737. 800881a: 681b ldr r3, [r3, #0]
  19738. 800881c: 695b ldr r3, [r3, #20]
  19739. 800881e: 617b str r3, [r7, #20]
  19740. /* Clear Direct mode and FIFO threshold bits */
  19741. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  19742. 8008820: 697b ldr r3, [r7, #20]
  19743. 8008822: f023 0307 bic.w r3, r3, #7
  19744. 8008826: 617b str r3, [r7, #20]
  19745. /* Prepare the DMA Stream FIFO configuration */
  19746. registerValue |= hdma->Init.FIFOMode;
  19747. 8008828: 687b ldr r3, [r7, #4]
  19748. 800882a: 6a5b ldr r3, [r3, #36] @ 0x24
  19749. 800882c: 697a ldr r2, [r7, #20]
  19750. 800882e: 4313 orrs r3, r2
  19751. 8008830: 617b str r3, [r7, #20]
  19752. /* the FIFO threshold is not used when the FIFO mode is disabled */
  19753. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19754. 8008832: 687b ldr r3, [r7, #4]
  19755. 8008834: 6a5b ldr r3, [r3, #36] @ 0x24
  19756. 8008836: 2b04 cmp r3, #4
  19757. 8008838: d117 bne.n 800886a <HAL_DMA_Init+0x316>
  19758. {
  19759. /* Get the FIFO threshold */
  19760. registerValue |= hdma->Init.FIFOThreshold;
  19761. 800883a: 687b ldr r3, [r7, #4]
  19762. 800883c: 6a9b ldr r3, [r3, #40] @ 0x28
  19763. 800883e: 697a ldr r2, [r7, #20]
  19764. 8008840: 4313 orrs r3, r2
  19765. 8008842: 617b str r3, [r7, #20]
  19766. /* Check compatibility between FIFO threshold level and size of the memory burst */
  19767. /* for INCR4, INCR8, INCR16 */
  19768. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  19769. 8008844: 687b ldr r3, [r7, #4]
  19770. 8008846: 6adb ldr r3, [r3, #44] @ 0x2c
  19771. 8008848: 2b00 cmp r3, #0
  19772. 800884a: d00e beq.n 800886a <HAL_DMA_Init+0x316>
  19773. {
  19774. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  19775. 800884c: 6878 ldr r0, [r7, #4]
  19776. 800884e: f002 fb33 bl 800aeb8 <DMA_CheckFifoParam>
  19777. 8008852: 4603 mov r3, r0
  19778. 8008854: 2b00 cmp r3, #0
  19779. 8008856: d008 beq.n 800886a <HAL_DMA_Init+0x316>
  19780. {
  19781. /* Update error code */
  19782. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  19783. 8008858: 687b ldr r3, [r7, #4]
  19784. 800885a: 2240 movs r2, #64 @ 0x40
  19785. 800885c: 655a str r2, [r3, #84] @ 0x54
  19786. /* Change the DMA state */
  19787. hdma->State = HAL_DMA_STATE_READY;
  19788. 800885e: 687b ldr r3, [r7, #4]
  19789. 8008860: 2201 movs r2, #1
  19790. 8008862: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19791. return HAL_ERROR;
  19792. 8008866: 2301 movs r3, #1
  19793. 8008868: e197 b.n 8008b9a <HAL_DMA_Init+0x646>
  19794. }
  19795. }
  19796. }
  19797. /* Write to DMA Stream FCR */
  19798. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  19799. 800886a: 687b ldr r3, [r7, #4]
  19800. 800886c: 681b ldr r3, [r3, #0]
  19801. 800886e: 697a ldr r2, [r7, #20]
  19802. 8008870: 615a str r2, [r3, #20]
  19803. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  19804. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  19805. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  19806. 8008872: 6878 ldr r0, [r7, #4]
  19807. 8008874: f002 fa6e bl 800ad54 <DMA_CalcBaseAndBitshift>
  19808. 8008878: 4603 mov r3, r0
  19809. 800887a: 60bb str r3, [r7, #8]
  19810. /* Clear all interrupt flags */
  19811. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  19812. 800887c: 687b ldr r3, [r7, #4]
  19813. 800887e: 6ddb ldr r3, [r3, #92] @ 0x5c
  19814. 8008880: f003 031f and.w r3, r3, #31
  19815. 8008884: 223f movs r2, #63 @ 0x3f
  19816. 8008886: 409a lsls r2, r3
  19817. 8008888: 68bb ldr r3, [r7, #8]
  19818. 800888a: 609a str r2, [r3, #8]
  19819. 800888c: e0cd b.n 8008a2a <HAL_DMA_Init+0x4d6>
  19820. }
  19821. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  19822. 800888e: 687b ldr r3, [r7, #4]
  19823. 8008890: 681b ldr r3, [r3, #0]
  19824. 8008892: 4a3b ldr r2, [pc, #236] @ (8008980 <HAL_DMA_Init+0x42c>)
  19825. 8008894: 4293 cmp r3, r2
  19826. 8008896: d022 beq.n 80088de <HAL_DMA_Init+0x38a>
  19827. 8008898: 687b ldr r3, [r7, #4]
  19828. 800889a: 681b ldr r3, [r3, #0]
  19829. 800889c: 4a39 ldr r2, [pc, #228] @ (8008984 <HAL_DMA_Init+0x430>)
  19830. 800889e: 4293 cmp r3, r2
  19831. 80088a0: d01d beq.n 80088de <HAL_DMA_Init+0x38a>
  19832. 80088a2: 687b ldr r3, [r7, #4]
  19833. 80088a4: 681b ldr r3, [r3, #0]
  19834. 80088a6: 4a38 ldr r2, [pc, #224] @ (8008988 <HAL_DMA_Init+0x434>)
  19835. 80088a8: 4293 cmp r3, r2
  19836. 80088aa: d018 beq.n 80088de <HAL_DMA_Init+0x38a>
  19837. 80088ac: 687b ldr r3, [r7, #4]
  19838. 80088ae: 681b ldr r3, [r3, #0]
  19839. 80088b0: 4a36 ldr r2, [pc, #216] @ (800898c <HAL_DMA_Init+0x438>)
  19840. 80088b2: 4293 cmp r3, r2
  19841. 80088b4: d013 beq.n 80088de <HAL_DMA_Init+0x38a>
  19842. 80088b6: 687b ldr r3, [r7, #4]
  19843. 80088b8: 681b ldr r3, [r3, #0]
  19844. 80088ba: 4a35 ldr r2, [pc, #212] @ (8008990 <HAL_DMA_Init+0x43c>)
  19845. 80088bc: 4293 cmp r3, r2
  19846. 80088be: d00e beq.n 80088de <HAL_DMA_Init+0x38a>
  19847. 80088c0: 687b ldr r3, [r7, #4]
  19848. 80088c2: 681b ldr r3, [r3, #0]
  19849. 80088c4: 4a33 ldr r2, [pc, #204] @ (8008994 <HAL_DMA_Init+0x440>)
  19850. 80088c6: 4293 cmp r3, r2
  19851. 80088c8: d009 beq.n 80088de <HAL_DMA_Init+0x38a>
  19852. 80088ca: 687b ldr r3, [r7, #4]
  19853. 80088cc: 681b ldr r3, [r3, #0]
  19854. 80088ce: 4a32 ldr r2, [pc, #200] @ (8008998 <HAL_DMA_Init+0x444>)
  19855. 80088d0: 4293 cmp r3, r2
  19856. 80088d2: d004 beq.n 80088de <HAL_DMA_Init+0x38a>
  19857. 80088d4: 687b ldr r3, [r7, #4]
  19858. 80088d6: 681b ldr r3, [r3, #0]
  19859. 80088d8: 4a30 ldr r2, [pc, #192] @ (800899c <HAL_DMA_Init+0x448>)
  19860. 80088da: 4293 cmp r3, r2
  19861. 80088dc: d101 bne.n 80088e2 <HAL_DMA_Init+0x38e>
  19862. 80088de: 2301 movs r3, #1
  19863. 80088e0: e000 b.n 80088e4 <HAL_DMA_Init+0x390>
  19864. 80088e2: 2300 movs r3, #0
  19865. 80088e4: 2b00 cmp r3, #0
  19866. 80088e6: f000 8097 beq.w 8008a18 <HAL_DMA_Init+0x4c4>
  19867. {
  19868. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  19869. 80088ea: 687b ldr r3, [r7, #4]
  19870. 80088ec: 681b ldr r3, [r3, #0]
  19871. 80088ee: 4a24 ldr r2, [pc, #144] @ (8008980 <HAL_DMA_Init+0x42c>)
  19872. 80088f0: 4293 cmp r3, r2
  19873. 80088f2: d021 beq.n 8008938 <HAL_DMA_Init+0x3e4>
  19874. 80088f4: 687b ldr r3, [r7, #4]
  19875. 80088f6: 681b ldr r3, [r3, #0]
  19876. 80088f8: 4a22 ldr r2, [pc, #136] @ (8008984 <HAL_DMA_Init+0x430>)
  19877. 80088fa: 4293 cmp r3, r2
  19878. 80088fc: d01c beq.n 8008938 <HAL_DMA_Init+0x3e4>
  19879. 80088fe: 687b ldr r3, [r7, #4]
  19880. 8008900: 681b ldr r3, [r3, #0]
  19881. 8008902: 4a21 ldr r2, [pc, #132] @ (8008988 <HAL_DMA_Init+0x434>)
  19882. 8008904: 4293 cmp r3, r2
  19883. 8008906: d017 beq.n 8008938 <HAL_DMA_Init+0x3e4>
  19884. 8008908: 687b ldr r3, [r7, #4]
  19885. 800890a: 681b ldr r3, [r3, #0]
  19886. 800890c: 4a1f ldr r2, [pc, #124] @ (800898c <HAL_DMA_Init+0x438>)
  19887. 800890e: 4293 cmp r3, r2
  19888. 8008910: d012 beq.n 8008938 <HAL_DMA_Init+0x3e4>
  19889. 8008912: 687b ldr r3, [r7, #4]
  19890. 8008914: 681b ldr r3, [r3, #0]
  19891. 8008916: 4a1e ldr r2, [pc, #120] @ (8008990 <HAL_DMA_Init+0x43c>)
  19892. 8008918: 4293 cmp r3, r2
  19893. 800891a: d00d beq.n 8008938 <HAL_DMA_Init+0x3e4>
  19894. 800891c: 687b ldr r3, [r7, #4]
  19895. 800891e: 681b ldr r3, [r3, #0]
  19896. 8008920: 4a1c ldr r2, [pc, #112] @ (8008994 <HAL_DMA_Init+0x440>)
  19897. 8008922: 4293 cmp r3, r2
  19898. 8008924: d008 beq.n 8008938 <HAL_DMA_Init+0x3e4>
  19899. 8008926: 687b ldr r3, [r7, #4]
  19900. 8008928: 681b ldr r3, [r3, #0]
  19901. 800892a: 4a1b ldr r2, [pc, #108] @ (8008998 <HAL_DMA_Init+0x444>)
  19902. 800892c: 4293 cmp r3, r2
  19903. 800892e: d003 beq.n 8008938 <HAL_DMA_Init+0x3e4>
  19904. 8008930: 687b ldr r3, [r7, #4]
  19905. 8008932: 681b ldr r3, [r3, #0]
  19906. 8008934: 4a19 ldr r2, [pc, #100] @ (800899c <HAL_DMA_Init+0x448>)
  19907. 8008936: 4293 cmp r3, r2
  19908. /* Check the request parameter */
  19909. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  19910. }
  19911. /* Change DMA peripheral state */
  19912. hdma->State = HAL_DMA_STATE_BUSY;
  19913. 8008938: 687b ldr r3, [r7, #4]
  19914. 800893a: 2202 movs r2, #2
  19915. 800893c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19916. /* Allocate lock resource */
  19917. __HAL_UNLOCK(hdma);
  19918. 8008940: 687b ldr r3, [r7, #4]
  19919. 8008942: 2200 movs r2, #0
  19920. 8008944: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19921. /* Get the CR register value */
  19922. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  19923. 8008948: 687b ldr r3, [r7, #4]
  19924. 800894a: 681b ldr r3, [r3, #0]
  19925. 800894c: 681b ldr r3, [r3, #0]
  19926. 800894e: 617b str r3, [r7, #20]
  19927. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  19928. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  19929. 8008950: 697a ldr r2, [r7, #20]
  19930. 8008952: 4b13 ldr r3, [pc, #76] @ (80089a0 <HAL_DMA_Init+0x44c>)
  19931. 8008954: 4013 ands r3, r2
  19932. 8008956: 617b str r3, [r7, #20]
  19933. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  19934. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  19935. BDMA_CCR_CT));
  19936. /* Prepare the DMA Channel configuration */
  19937. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19938. 8008958: 687b ldr r3, [r7, #4]
  19939. 800895a: 689b ldr r3, [r3, #8]
  19940. 800895c: 2b40 cmp r3, #64 @ 0x40
  19941. 800895e: d021 beq.n 80089a4 <HAL_DMA_Init+0x450>
  19942. 8008960: 687b ldr r3, [r7, #4]
  19943. 8008962: 689b ldr r3, [r3, #8]
  19944. 8008964: 2b80 cmp r3, #128 @ 0x80
  19945. 8008966: d102 bne.n 800896e <HAL_DMA_Init+0x41a>
  19946. 8008968: f44f 4380 mov.w r3, #16384 @ 0x4000
  19947. 800896c: e01b b.n 80089a6 <HAL_DMA_Init+0x452>
  19948. 800896e: 2300 movs r3, #0
  19949. 8008970: e019 b.n 80089a6 <HAL_DMA_Init+0x452>
  19950. 8008972: bf00 nop
  19951. 8008974: fe10803f .word 0xfe10803f
  19952. 8008978: 5c001000 .word 0x5c001000
  19953. 800897c: ffff0000 .word 0xffff0000
  19954. 8008980: 58025408 .word 0x58025408
  19955. 8008984: 5802541c .word 0x5802541c
  19956. 8008988: 58025430 .word 0x58025430
  19957. 800898c: 58025444 .word 0x58025444
  19958. 8008990: 58025458 .word 0x58025458
  19959. 8008994: 5802546c .word 0x5802546c
  19960. 8008998: 58025480 .word 0x58025480
  19961. 800899c: 58025494 .word 0x58025494
  19962. 80089a0: fffe000f .word 0xfffe000f
  19963. 80089a4: 2310 movs r3, #16
  19964. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19965. 80089a6: 687a ldr r2, [r7, #4]
  19966. 80089a8: 68d2 ldr r2, [r2, #12]
  19967. 80089aa: 08d2 lsrs r2, r2, #3
  19968. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19969. 80089ac: 431a orrs r2, r3
  19970. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19971. 80089ae: 687b ldr r3, [r7, #4]
  19972. 80089b0: 691b ldr r3, [r3, #16]
  19973. 80089b2: 08db lsrs r3, r3, #3
  19974. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19975. 80089b4: 431a orrs r2, r3
  19976. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19977. 80089b6: 687b ldr r3, [r7, #4]
  19978. 80089b8: 695b ldr r3, [r3, #20]
  19979. 80089ba: 08db lsrs r3, r3, #3
  19980. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19981. 80089bc: 431a orrs r2, r3
  19982. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19983. 80089be: 687b ldr r3, [r7, #4]
  19984. 80089c0: 699b ldr r3, [r3, #24]
  19985. 80089c2: 08db lsrs r3, r3, #3
  19986. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19987. 80089c4: 431a orrs r2, r3
  19988. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  19989. 80089c6: 687b ldr r3, [r7, #4]
  19990. 80089c8: 69db ldr r3, [r3, #28]
  19991. 80089ca: 08db lsrs r3, r3, #3
  19992. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19993. 80089cc: 431a orrs r2, r3
  19994. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  19995. 80089ce: 687b ldr r3, [r7, #4]
  19996. 80089d0: 6a1b ldr r3, [r3, #32]
  19997. 80089d2: 091b lsrs r3, r3, #4
  19998. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  19999. 80089d4: 4313 orrs r3, r2
  20000. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  20001. 80089d6: 697a ldr r2, [r7, #20]
  20002. 80089d8: 4313 orrs r3, r2
  20003. 80089da: 617b str r3, [r7, #20]
  20004. /* Write to DMA Channel CR register */
  20005. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  20006. 80089dc: 687b ldr r3, [r7, #4]
  20007. 80089de: 681b ldr r3, [r3, #0]
  20008. 80089e0: 697a ldr r2, [r7, #20]
  20009. 80089e2: 601a str r2, [r3, #0]
  20010. /* calculation of the channel index */
  20011. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  20012. 80089e4: 687b ldr r3, [r7, #4]
  20013. 80089e6: 681b ldr r3, [r3, #0]
  20014. 80089e8: 461a mov r2, r3
  20015. 80089ea: 4b6e ldr r3, [pc, #440] @ (8008ba4 <HAL_DMA_Init+0x650>)
  20016. 80089ec: 4413 add r3, r2
  20017. 80089ee: 4a6e ldr r2, [pc, #440] @ (8008ba8 <HAL_DMA_Init+0x654>)
  20018. 80089f0: fba2 2303 umull r2, r3, r2, r3
  20019. 80089f4: 091b lsrs r3, r3, #4
  20020. 80089f6: 009a lsls r2, r3, #2
  20021. 80089f8: 687b ldr r3, [r7, #4]
  20022. 80089fa: 65da str r2, [r3, #92] @ 0x5c
  20023. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  20024. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  20025. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  20026. 80089fc: 6878 ldr r0, [r7, #4]
  20027. 80089fe: f002 f9a9 bl 800ad54 <DMA_CalcBaseAndBitshift>
  20028. 8008a02: 4603 mov r3, r0
  20029. 8008a04: 60fb str r3, [r7, #12]
  20030. /* Clear all interrupt flags */
  20031. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20032. 8008a06: 687b ldr r3, [r7, #4]
  20033. 8008a08: 6ddb ldr r3, [r3, #92] @ 0x5c
  20034. 8008a0a: f003 031f and.w r3, r3, #31
  20035. 8008a0e: 2201 movs r2, #1
  20036. 8008a10: 409a lsls r2, r3
  20037. 8008a12: 68fb ldr r3, [r7, #12]
  20038. 8008a14: 605a str r2, [r3, #4]
  20039. 8008a16: e008 b.n 8008a2a <HAL_DMA_Init+0x4d6>
  20040. }
  20041. else
  20042. {
  20043. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  20044. 8008a18: 687b ldr r3, [r7, #4]
  20045. 8008a1a: 2240 movs r2, #64 @ 0x40
  20046. 8008a1c: 655a str r2, [r3, #84] @ 0x54
  20047. hdma->State = HAL_DMA_STATE_ERROR;
  20048. 8008a1e: 687b ldr r3, [r7, #4]
  20049. 8008a20: 2203 movs r2, #3
  20050. 8008a22: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20051. return HAL_ERROR;
  20052. 8008a26: 2301 movs r3, #1
  20053. 8008a28: e0b7 b.n 8008b9a <HAL_DMA_Init+0x646>
  20054. }
  20055. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20056. 8008a2a: 687b ldr r3, [r7, #4]
  20057. 8008a2c: 681b ldr r3, [r3, #0]
  20058. 8008a2e: 4a5f ldr r2, [pc, #380] @ (8008bac <HAL_DMA_Init+0x658>)
  20059. 8008a30: 4293 cmp r3, r2
  20060. 8008a32: d072 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20061. 8008a34: 687b ldr r3, [r7, #4]
  20062. 8008a36: 681b ldr r3, [r3, #0]
  20063. 8008a38: 4a5d ldr r2, [pc, #372] @ (8008bb0 <HAL_DMA_Init+0x65c>)
  20064. 8008a3a: 4293 cmp r3, r2
  20065. 8008a3c: d06d beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20066. 8008a3e: 687b ldr r3, [r7, #4]
  20067. 8008a40: 681b ldr r3, [r3, #0]
  20068. 8008a42: 4a5c ldr r2, [pc, #368] @ (8008bb4 <HAL_DMA_Init+0x660>)
  20069. 8008a44: 4293 cmp r3, r2
  20070. 8008a46: d068 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20071. 8008a48: 687b ldr r3, [r7, #4]
  20072. 8008a4a: 681b ldr r3, [r3, #0]
  20073. 8008a4c: 4a5a ldr r2, [pc, #360] @ (8008bb8 <HAL_DMA_Init+0x664>)
  20074. 8008a4e: 4293 cmp r3, r2
  20075. 8008a50: d063 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20076. 8008a52: 687b ldr r3, [r7, #4]
  20077. 8008a54: 681b ldr r3, [r3, #0]
  20078. 8008a56: 4a59 ldr r2, [pc, #356] @ (8008bbc <HAL_DMA_Init+0x668>)
  20079. 8008a58: 4293 cmp r3, r2
  20080. 8008a5a: d05e beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20081. 8008a5c: 687b ldr r3, [r7, #4]
  20082. 8008a5e: 681b ldr r3, [r3, #0]
  20083. 8008a60: 4a57 ldr r2, [pc, #348] @ (8008bc0 <HAL_DMA_Init+0x66c>)
  20084. 8008a62: 4293 cmp r3, r2
  20085. 8008a64: d059 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20086. 8008a66: 687b ldr r3, [r7, #4]
  20087. 8008a68: 681b ldr r3, [r3, #0]
  20088. 8008a6a: 4a56 ldr r2, [pc, #344] @ (8008bc4 <HAL_DMA_Init+0x670>)
  20089. 8008a6c: 4293 cmp r3, r2
  20090. 8008a6e: d054 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20091. 8008a70: 687b ldr r3, [r7, #4]
  20092. 8008a72: 681b ldr r3, [r3, #0]
  20093. 8008a74: 4a54 ldr r2, [pc, #336] @ (8008bc8 <HAL_DMA_Init+0x674>)
  20094. 8008a76: 4293 cmp r3, r2
  20095. 8008a78: d04f beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20096. 8008a7a: 687b ldr r3, [r7, #4]
  20097. 8008a7c: 681b ldr r3, [r3, #0]
  20098. 8008a7e: 4a53 ldr r2, [pc, #332] @ (8008bcc <HAL_DMA_Init+0x678>)
  20099. 8008a80: 4293 cmp r3, r2
  20100. 8008a82: d04a beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20101. 8008a84: 687b ldr r3, [r7, #4]
  20102. 8008a86: 681b ldr r3, [r3, #0]
  20103. 8008a88: 4a51 ldr r2, [pc, #324] @ (8008bd0 <HAL_DMA_Init+0x67c>)
  20104. 8008a8a: 4293 cmp r3, r2
  20105. 8008a8c: d045 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20106. 8008a8e: 687b ldr r3, [r7, #4]
  20107. 8008a90: 681b ldr r3, [r3, #0]
  20108. 8008a92: 4a50 ldr r2, [pc, #320] @ (8008bd4 <HAL_DMA_Init+0x680>)
  20109. 8008a94: 4293 cmp r3, r2
  20110. 8008a96: d040 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20111. 8008a98: 687b ldr r3, [r7, #4]
  20112. 8008a9a: 681b ldr r3, [r3, #0]
  20113. 8008a9c: 4a4e ldr r2, [pc, #312] @ (8008bd8 <HAL_DMA_Init+0x684>)
  20114. 8008a9e: 4293 cmp r3, r2
  20115. 8008aa0: d03b beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20116. 8008aa2: 687b ldr r3, [r7, #4]
  20117. 8008aa4: 681b ldr r3, [r3, #0]
  20118. 8008aa6: 4a4d ldr r2, [pc, #308] @ (8008bdc <HAL_DMA_Init+0x688>)
  20119. 8008aa8: 4293 cmp r3, r2
  20120. 8008aaa: d036 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20121. 8008aac: 687b ldr r3, [r7, #4]
  20122. 8008aae: 681b ldr r3, [r3, #0]
  20123. 8008ab0: 4a4b ldr r2, [pc, #300] @ (8008be0 <HAL_DMA_Init+0x68c>)
  20124. 8008ab2: 4293 cmp r3, r2
  20125. 8008ab4: d031 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20126. 8008ab6: 687b ldr r3, [r7, #4]
  20127. 8008ab8: 681b ldr r3, [r3, #0]
  20128. 8008aba: 4a4a ldr r2, [pc, #296] @ (8008be4 <HAL_DMA_Init+0x690>)
  20129. 8008abc: 4293 cmp r3, r2
  20130. 8008abe: d02c beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20131. 8008ac0: 687b ldr r3, [r7, #4]
  20132. 8008ac2: 681b ldr r3, [r3, #0]
  20133. 8008ac4: 4a48 ldr r2, [pc, #288] @ (8008be8 <HAL_DMA_Init+0x694>)
  20134. 8008ac6: 4293 cmp r3, r2
  20135. 8008ac8: d027 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20136. 8008aca: 687b ldr r3, [r7, #4]
  20137. 8008acc: 681b ldr r3, [r3, #0]
  20138. 8008ace: 4a47 ldr r2, [pc, #284] @ (8008bec <HAL_DMA_Init+0x698>)
  20139. 8008ad0: 4293 cmp r3, r2
  20140. 8008ad2: d022 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20141. 8008ad4: 687b ldr r3, [r7, #4]
  20142. 8008ad6: 681b ldr r3, [r3, #0]
  20143. 8008ad8: 4a45 ldr r2, [pc, #276] @ (8008bf0 <HAL_DMA_Init+0x69c>)
  20144. 8008ada: 4293 cmp r3, r2
  20145. 8008adc: d01d beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20146. 8008ade: 687b ldr r3, [r7, #4]
  20147. 8008ae0: 681b ldr r3, [r3, #0]
  20148. 8008ae2: 4a44 ldr r2, [pc, #272] @ (8008bf4 <HAL_DMA_Init+0x6a0>)
  20149. 8008ae4: 4293 cmp r3, r2
  20150. 8008ae6: d018 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20151. 8008ae8: 687b ldr r3, [r7, #4]
  20152. 8008aea: 681b ldr r3, [r3, #0]
  20153. 8008aec: 4a42 ldr r2, [pc, #264] @ (8008bf8 <HAL_DMA_Init+0x6a4>)
  20154. 8008aee: 4293 cmp r3, r2
  20155. 8008af0: d013 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20156. 8008af2: 687b ldr r3, [r7, #4]
  20157. 8008af4: 681b ldr r3, [r3, #0]
  20158. 8008af6: 4a41 ldr r2, [pc, #260] @ (8008bfc <HAL_DMA_Init+0x6a8>)
  20159. 8008af8: 4293 cmp r3, r2
  20160. 8008afa: d00e beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20161. 8008afc: 687b ldr r3, [r7, #4]
  20162. 8008afe: 681b ldr r3, [r3, #0]
  20163. 8008b00: 4a3f ldr r2, [pc, #252] @ (8008c00 <HAL_DMA_Init+0x6ac>)
  20164. 8008b02: 4293 cmp r3, r2
  20165. 8008b04: d009 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20166. 8008b06: 687b ldr r3, [r7, #4]
  20167. 8008b08: 681b ldr r3, [r3, #0]
  20168. 8008b0a: 4a3e ldr r2, [pc, #248] @ (8008c04 <HAL_DMA_Init+0x6b0>)
  20169. 8008b0c: 4293 cmp r3, r2
  20170. 8008b0e: d004 beq.n 8008b1a <HAL_DMA_Init+0x5c6>
  20171. 8008b10: 687b ldr r3, [r7, #4]
  20172. 8008b12: 681b ldr r3, [r3, #0]
  20173. 8008b14: 4a3c ldr r2, [pc, #240] @ (8008c08 <HAL_DMA_Init+0x6b4>)
  20174. 8008b16: 4293 cmp r3, r2
  20175. 8008b18: d101 bne.n 8008b1e <HAL_DMA_Init+0x5ca>
  20176. 8008b1a: 2301 movs r3, #1
  20177. 8008b1c: e000 b.n 8008b20 <HAL_DMA_Init+0x5cc>
  20178. 8008b1e: 2300 movs r3, #0
  20179. 8008b20: 2b00 cmp r3, #0
  20180. 8008b22: d032 beq.n 8008b8a <HAL_DMA_Init+0x636>
  20181. {
  20182. /* Initialize parameters for DMAMUX channel :
  20183. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  20184. */
  20185. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  20186. 8008b24: 6878 ldr r0, [r7, #4]
  20187. 8008b26: f002 fa43 bl 800afb0 <DMA_CalcDMAMUXChannelBaseAndMask>
  20188. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  20189. 8008b2a: 687b ldr r3, [r7, #4]
  20190. 8008b2c: 689b ldr r3, [r3, #8]
  20191. 8008b2e: 2b80 cmp r3, #128 @ 0x80
  20192. 8008b30: d102 bne.n 8008b38 <HAL_DMA_Init+0x5e4>
  20193. {
  20194. /* if memory to memory force the request to 0*/
  20195. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  20196. 8008b32: 687b ldr r3, [r7, #4]
  20197. 8008b34: 2200 movs r2, #0
  20198. 8008b36: 605a str r2, [r3, #4]
  20199. }
  20200. /* Set peripheral request to DMAMUX channel */
  20201. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  20202. 8008b38: 687b ldr r3, [r7, #4]
  20203. 8008b3a: 685a ldr r2, [r3, #4]
  20204. 8008b3c: 687b ldr r3, [r7, #4]
  20205. 8008b3e: 6e1b ldr r3, [r3, #96] @ 0x60
  20206. 8008b40: b2d2 uxtb r2, r2
  20207. 8008b42: 601a str r2, [r3, #0]
  20208. /* Clear the DMAMUX synchro overrun flag */
  20209. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20210. 8008b44: 687b ldr r3, [r7, #4]
  20211. 8008b46: 6e5b ldr r3, [r3, #100] @ 0x64
  20212. 8008b48: 687a ldr r2, [r7, #4]
  20213. 8008b4a: 6e92 ldr r2, [r2, #104] @ 0x68
  20214. 8008b4c: 605a str r2, [r3, #4]
  20215. /* Initialize parameters for DMAMUX request generator :
  20216. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  20217. */
  20218. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  20219. 8008b4e: 687b ldr r3, [r7, #4]
  20220. 8008b50: 685b ldr r3, [r3, #4]
  20221. 8008b52: 2b00 cmp r3, #0
  20222. 8008b54: d010 beq.n 8008b78 <HAL_DMA_Init+0x624>
  20223. 8008b56: 687b ldr r3, [r7, #4]
  20224. 8008b58: 685b ldr r3, [r3, #4]
  20225. 8008b5a: 2b08 cmp r3, #8
  20226. 8008b5c: d80c bhi.n 8008b78 <HAL_DMA_Init+0x624>
  20227. {
  20228. /* Initialize parameters for DMAMUX request generator :
  20229. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  20230. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  20231. 8008b5e: 6878 ldr r0, [r7, #4]
  20232. 8008b60: f002 fac0 bl 800b0e4 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  20233. /* Reset the DMAMUX request generator register */
  20234. hdma->DMAmuxRequestGen->RGCR = 0U;
  20235. 8008b64: 687b ldr r3, [r7, #4]
  20236. 8008b66: 6edb ldr r3, [r3, #108] @ 0x6c
  20237. 8008b68: 2200 movs r2, #0
  20238. 8008b6a: 601a str r2, [r3, #0]
  20239. /* Clear the DMAMUX request generator overrun flag */
  20240. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  20241. 8008b6c: 687b ldr r3, [r7, #4]
  20242. 8008b6e: 6f1b ldr r3, [r3, #112] @ 0x70
  20243. 8008b70: 687a ldr r2, [r7, #4]
  20244. 8008b72: 6f52 ldr r2, [r2, #116] @ 0x74
  20245. 8008b74: 605a str r2, [r3, #4]
  20246. 8008b76: e008 b.n 8008b8a <HAL_DMA_Init+0x636>
  20247. }
  20248. else
  20249. {
  20250. hdma->DMAmuxRequestGen = 0U;
  20251. 8008b78: 687b ldr r3, [r7, #4]
  20252. 8008b7a: 2200 movs r2, #0
  20253. 8008b7c: 66da str r2, [r3, #108] @ 0x6c
  20254. hdma->DMAmuxRequestGenStatus = 0U;
  20255. 8008b7e: 687b ldr r3, [r7, #4]
  20256. 8008b80: 2200 movs r2, #0
  20257. 8008b82: 671a str r2, [r3, #112] @ 0x70
  20258. hdma->DMAmuxRequestGenStatusMask = 0U;
  20259. 8008b84: 687b ldr r3, [r7, #4]
  20260. 8008b86: 2200 movs r2, #0
  20261. 8008b88: 675a str r2, [r3, #116] @ 0x74
  20262. }
  20263. }
  20264. /* Initialize the error code */
  20265. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20266. 8008b8a: 687b ldr r3, [r7, #4]
  20267. 8008b8c: 2200 movs r2, #0
  20268. 8008b8e: 655a str r2, [r3, #84] @ 0x54
  20269. /* Initialize the DMA state */
  20270. hdma->State = HAL_DMA_STATE_READY;
  20271. 8008b90: 687b ldr r3, [r7, #4]
  20272. 8008b92: 2201 movs r2, #1
  20273. 8008b94: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20274. return HAL_OK;
  20275. 8008b98: 2300 movs r3, #0
  20276. }
  20277. 8008b9a: 4618 mov r0, r3
  20278. 8008b9c: 3718 adds r7, #24
  20279. 8008b9e: 46bd mov sp, r7
  20280. 8008ba0: bd80 pop {r7, pc}
  20281. 8008ba2: bf00 nop
  20282. 8008ba4: a7fdabf8 .word 0xa7fdabf8
  20283. 8008ba8: cccccccd .word 0xcccccccd
  20284. 8008bac: 40020010 .word 0x40020010
  20285. 8008bb0: 40020028 .word 0x40020028
  20286. 8008bb4: 40020040 .word 0x40020040
  20287. 8008bb8: 40020058 .word 0x40020058
  20288. 8008bbc: 40020070 .word 0x40020070
  20289. 8008bc0: 40020088 .word 0x40020088
  20290. 8008bc4: 400200a0 .word 0x400200a0
  20291. 8008bc8: 400200b8 .word 0x400200b8
  20292. 8008bcc: 40020410 .word 0x40020410
  20293. 8008bd0: 40020428 .word 0x40020428
  20294. 8008bd4: 40020440 .word 0x40020440
  20295. 8008bd8: 40020458 .word 0x40020458
  20296. 8008bdc: 40020470 .word 0x40020470
  20297. 8008be0: 40020488 .word 0x40020488
  20298. 8008be4: 400204a0 .word 0x400204a0
  20299. 8008be8: 400204b8 .word 0x400204b8
  20300. 8008bec: 58025408 .word 0x58025408
  20301. 8008bf0: 5802541c .word 0x5802541c
  20302. 8008bf4: 58025430 .word 0x58025430
  20303. 8008bf8: 58025444 .word 0x58025444
  20304. 8008bfc: 58025458 .word 0x58025458
  20305. 8008c00: 5802546c .word 0x5802546c
  20306. 8008c04: 58025480 .word 0x58025480
  20307. 8008c08: 58025494 .word 0x58025494
  20308. 08008c0c <HAL_DMA_Start_IT>:
  20309. * @param DstAddress: The destination memory Buffer address
  20310. * @param DataLength: The length of data to be transferred from source to destination
  20311. * @retval HAL status
  20312. */
  20313. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  20314. {
  20315. 8008c0c: b580 push {r7, lr}
  20316. 8008c0e: b086 sub sp, #24
  20317. 8008c10: af00 add r7, sp, #0
  20318. 8008c12: 60f8 str r0, [r7, #12]
  20319. 8008c14: 60b9 str r1, [r7, #8]
  20320. 8008c16: 607a str r2, [r7, #4]
  20321. 8008c18: 603b str r3, [r7, #0]
  20322. HAL_StatusTypeDef status = HAL_OK;
  20323. 8008c1a: 2300 movs r3, #0
  20324. 8008c1c: 75fb strb r3, [r7, #23]
  20325. /* Check the parameters */
  20326. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  20327. /* Check the DMA peripheral handle */
  20328. if(hdma == NULL)
  20329. 8008c1e: 68fb ldr r3, [r7, #12]
  20330. 8008c20: 2b00 cmp r3, #0
  20331. 8008c22: d101 bne.n 8008c28 <HAL_DMA_Start_IT+0x1c>
  20332. {
  20333. return HAL_ERROR;
  20334. 8008c24: 2301 movs r3, #1
  20335. 8008c26: e226 b.n 8009076 <HAL_DMA_Start_IT+0x46a>
  20336. }
  20337. /* Process locked */
  20338. __HAL_LOCK(hdma);
  20339. 8008c28: 68fb ldr r3, [r7, #12]
  20340. 8008c2a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  20341. 8008c2e: 2b01 cmp r3, #1
  20342. 8008c30: d101 bne.n 8008c36 <HAL_DMA_Start_IT+0x2a>
  20343. 8008c32: 2302 movs r3, #2
  20344. 8008c34: e21f b.n 8009076 <HAL_DMA_Start_IT+0x46a>
  20345. 8008c36: 68fb ldr r3, [r7, #12]
  20346. 8008c38: 2201 movs r2, #1
  20347. 8008c3a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20348. if(HAL_DMA_STATE_READY == hdma->State)
  20349. 8008c3e: 68fb ldr r3, [r7, #12]
  20350. 8008c40: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20351. 8008c44: b2db uxtb r3, r3
  20352. 8008c46: 2b01 cmp r3, #1
  20353. 8008c48: f040 820a bne.w 8009060 <HAL_DMA_Start_IT+0x454>
  20354. {
  20355. /* Change DMA peripheral state */
  20356. hdma->State = HAL_DMA_STATE_BUSY;
  20357. 8008c4c: 68fb ldr r3, [r7, #12]
  20358. 8008c4e: 2202 movs r2, #2
  20359. 8008c50: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20360. /* Initialize the error code */
  20361. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20362. 8008c54: 68fb ldr r3, [r7, #12]
  20363. 8008c56: 2200 movs r2, #0
  20364. 8008c58: 655a str r2, [r3, #84] @ 0x54
  20365. /* Disable the peripheral */
  20366. __HAL_DMA_DISABLE(hdma);
  20367. 8008c5a: 68fb ldr r3, [r7, #12]
  20368. 8008c5c: 681b ldr r3, [r3, #0]
  20369. 8008c5e: 4a68 ldr r2, [pc, #416] @ (8008e00 <HAL_DMA_Start_IT+0x1f4>)
  20370. 8008c60: 4293 cmp r3, r2
  20371. 8008c62: d04a beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20372. 8008c64: 68fb ldr r3, [r7, #12]
  20373. 8008c66: 681b ldr r3, [r3, #0]
  20374. 8008c68: 4a66 ldr r2, [pc, #408] @ (8008e04 <HAL_DMA_Start_IT+0x1f8>)
  20375. 8008c6a: 4293 cmp r3, r2
  20376. 8008c6c: d045 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20377. 8008c6e: 68fb ldr r3, [r7, #12]
  20378. 8008c70: 681b ldr r3, [r3, #0]
  20379. 8008c72: 4a65 ldr r2, [pc, #404] @ (8008e08 <HAL_DMA_Start_IT+0x1fc>)
  20380. 8008c74: 4293 cmp r3, r2
  20381. 8008c76: d040 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20382. 8008c78: 68fb ldr r3, [r7, #12]
  20383. 8008c7a: 681b ldr r3, [r3, #0]
  20384. 8008c7c: 4a63 ldr r2, [pc, #396] @ (8008e0c <HAL_DMA_Start_IT+0x200>)
  20385. 8008c7e: 4293 cmp r3, r2
  20386. 8008c80: d03b beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20387. 8008c82: 68fb ldr r3, [r7, #12]
  20388. 8008c84: 681b ldr r3, [r3, #0]
  20389. 8008c86: 4a62 ldr r2, [pc, #392] @ (8008e10 <HAL_DMA_Start_IT+0x204>)
  20390. 8008c88: 4293 cmp r3, r2
  20391. 8008c8a: d036 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20392. 8008c8c: 68fb ldr r3, [r7, #12]
  20393. 8008c8e: 681b ldr r3, [r3, #0]
  20394. 8008c90: 4a60 ldr r2, [pc, #384] @ (8008e14 <HAL_DMA_Start_IT+0x208>)
  20395. 8008c92: 4293 cmp r3, r2
  20396. 8008c94: d031 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20397. 8008c96: 68fb ldr r3, [r7, #12]
  20398. 8008c98: 681b ldr r3, [r3, #0]
  20399. 8008c9a: 4a5f ldr r2, [pc, #380] @ (8008e18 <HAL_DMA_Start_IT+0x20c>)
  20400. 8008c9c: 4293 cmp r3, r2
  20401. 8008c9e: d02c beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20402. 8008ca0: 68fb ldr r3, [r7, #12]
  20403. 8008ca2: 681b ldr r3, [r3, #0]
  20404. 8008ca4: 4a5d ldr r2, [pc, #372] @ (8008e1c <HAL_DMA_Start_IT+0x210>)
  20405. 8008ca6: 4293 cmp r3, r2
  20406. 8008ca8: d027 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20407. 8008caa: 68fb ldr r3, [r7, #12]
  20408. 8008cac: 681b ldr r3, [r3, #0]
  20409. 8008cae: 4a5c ldr r2, [pc, #368] @ (8008e20 <HAL_DMA_Start_IT+0x214>)
  20410. 8008cb0: 4293 cmp r3, r2
  20411. 8008cb2: d022 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20412. 8008cb4: 68fb ldr r3, [r7, #12]
  20413. 8008cb6: 681b ldr r3, [r3, #0]
  20414. 8008cb8: 4a5a ldr r2, [pc, #360] @ (8008e24 <HAL_DMA_Start_IT+0x218>)
  20415. 8008cba: 4293 cmp r3, r2
  20416. 8008cbc: d01d beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20417. 8008cbe: 68fb ldr r3, [r7, #12]
  20418. 8008cc0: 681b ldr r3, [r3, #0]
  20419. 8008cc2: 4a59 ldr r2, [pc, #356] @ (8008e28 <HAL_DMA_Start_IT+0x21c>)
  20420. 8008cc4: 4293 cmp r3, r2
  20421. 8008cc6: d018 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20422. 8008cc8: 68fb ldr r3, [r7, #12]
  20423. 8008cca: 681b ldr r3, [r3, #0]
  20424. 8008ccc: 4a57 ldr r2, [pc, #348] @ (8008e2c <HAL_DMA_Start_IT+0x220>)
  20425. 8008cce: 4293 cmp r3, r2
  20426. 8008cd0: d013 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20427. 8008cd2: 68fb ldr r3, [r7, #12]
  20428. 8008cd4: 681b ldr r3, [r3, #0]
  20429. 8008cd6: 4a56 ldr r2, [pc, #344] @ (8008e30 <HAL_DMA_Start_IT+0x224>)
  20430. 8008cd8: 4293 cmp r3, r2
  20431. 8008cda: d00e beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20432. 8008cdc: 68fb ldr r3, [r7, #12]
  20433. 8008cde: 681b ldr r3, [r3, #0]
  20434. 8008ce0: 4a54 ldr r2, [pc, #336] @ (8008e34 <HAL_DMA_Start_IT+0x228>)
  20435. 8008ce2: 4293 cmp r3, r2
  20436. 8008ce4: d009 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20437. 8008ce6: 68fb ldr r3, [r7, #12]
  20438. 8008ce8: 681b ldr r3, [r3, #0]
  20439. 8008cea: 4a53 ldr r2, [pc, #332] @ (8008e38 <HAL_DMA_Start_IT+0x22c>)
  20440. 8008cec: 4293 cmp r3, r2
  20441. 8008cee: d004 beq.n 8008cfa <HAL_DMA_Start_IT+0xee>
  20442. 8008cf0: 68fb ldr r3, [r7, #12]
  20443. 8008cf2: 681b ldr r3, [r3, #0]
  20444. 8008cf4: 4a51 ldr r2, [pc, #324] @ (8008e3c <HAL_DMA_Start_IT+0x230>)
  20445. 8008cf6: 4293 cmp r3, r2
  20446. 8008cf8: d108 bne.n 8008d0c <HAL_DMA_Start_IT+0x100>
  20447. 8008cfa: 68fb ldr r3, [r7, #12]
  20448. 8008cfc: 681b ldr r3, [r3, #0]
  20449. 8008cfe: 681a ldr r2, [r3, #0]
  20450. 8008d00: 68fb ldr r3, [r7, #12]
  20451. 8008d02: 681b ldr r3, [r3, #0]
  20452. 8008d04: f022 0201 bic.w r2, r2, #1
  20453. 8008d08: 601a str r2, [r3, #0]
  20454. 8008d0a: e007 b.n 8008d1c <HAL_DMA_Start_IT+0x110>
  20455. 8008d0c: 68fb ldr r3, [r7, #12]
  20456. 8008d0e: 681b ldr r3, [r3, #0]
  20457. 8008d10: 681a ldr r2, [r3, #0]
  20458. 8008d12: 68fb ldr r3, [r7, #12]
  20459. 8008d14: 681b ldr r3, [r3, #0]
  20460. 8008d16: f022 0201 bic.w r2, r2, #1
  20461. 8008d1a: 601a str r2, [r3, #0]
  20462. /* Configure the source, destination address and the data length */
  20463. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  20464. 8008d1c: 683b ldr r3, [r7, #0]
  20465. 8008d1e: 687a ldr r2, [r7, #4]
  20466. 8008d20: 68b9 ldr r1, [r7, #8]
  20467. 8008d22: 68f8 ldr r0, [r7, #12]
  20468. 8008d24: f001 fe6a bl 800a9fc <DMA_SetConfig>
  20469. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20470. 8008d28: 68fb ldr r3, [r7, #12]
  20471. 8008d2a: 681b ldr r3, [r3, #0]
  20472. 8008d2c: 4a34 ldr r2, [pc, #208] @ (8008e00 <HAL_DMA_Start_IT+0x1f4>)
  20473. 8008d2e: 4293 cmp r3, r2
  20474. 8008d30: d04a beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20475. 8008d32: 68fb ldr r3, [r7, #12]
  20476. 8008d34: 681b ldr r3, [r3, #0]
  20477. 8008d36: 4a33 ldr r2, [pc, #204] @ (8008e04 <HAL_DMA_Start_IT+0x1f8>)
  20478. 8008d38: 4293 cmp r3, r2
  20479. 8008d3a: d045 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20480. 8008d3c: 68fb ldr r3, [r7, #12]
  20481. 8008d3e: 681b ldr r3, [r3, #0]
  20482. 8008d40: 4a31 ldr r2, [pc, #196] @ (8008e08 <HAL_DMA_Start_IT+0x1fc>)
  20483. 8008d42: 4293 cmp r3, r2
  20484. 8008d44: d040 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20485. 8008d46: 68fb ldr r3, [r7, #12]
  20486. 8008d48: 681b ldr r3, [r3, #0]
  20487. 8008d4a: 4a30 ldr r2, [pc, #192] @ (8008e0c <HAL_DMA_Start_IT+0x200>)
  20488. 8008d4c: 4293 cmp r3, r2
  20489. 8008d4e: d03b beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20490. 8008d50: 68fb ldr r3, [r7, #12]
  20491. 8008d52: 681b ldr r3, [r3, #0]
  20492. 8008d54: 4a2e ldr r2, [pc, #184] @ (8008e10 <HAL_DMA_Start_IT+0x204>)
  20493. 8008d56: 4293 cmp r3, r2
  20494. 8008d58: d036 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20495. 8008d5a: 68fb ldr r3, [r7, #12]
  20496. 8008d5c: 681b ldr r3, [r3, #0]
  20497. 8008d5e: 4a2d ldr r2, [pc, #180] @ (8008e14 <HAL_DMA_Start_IT+0x208>)
  20498. 8008d60: 4293 cmp r3, r2
  20499. 8008d62: d031 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20500. 8008d64: 68fb ldr r3, [r7, #12]
  20501. 8008d66: 681b ldr r3, [r3, #0]
  20502. 8008d68: 4a2b ldr r2, [pc, #172] @ (8008e18 <HAL_DMA_Start_IT+0x20c>)
  20503. 8008d6a: 4293 cmp r3, r2
  20504. 8008d6c: d02c beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20505. 8008d6e: 68fb ldr r3, [r7, #12]
  20506. 8008d70: 681b ldr r3, [r3, #0]
  20507. 8008d72: 4a2a ldr r2, [pc, #168] @ (8008e1c <HAL_DMA_Start_IT+0x210>)
  20508. 8008d74: 4293 cmp r3, r2
  20509. 8008d76: d027 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20510. 8008d78: 68fb ldr r3, [r7, #12]
  20511. 8008d7a: 681b ldr r3, [r3, #0]
  20512. 8008d7c: 4a28 ldr r2, [pc, #160] @ (8008e20 <HAL_DMA_Start_IT+0x214>)
  20513. 8008d7e: 4293 cmp r3, r2
  20514. 8008d80: d022 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20515. 8008d82: 68fb ldr r3, [r7, #12]
  20516. 8008d84: 681b ldr r3, [r3, #0]
  20517. 8008d86: 4a27 ldr r2, [pc, #156] @ (8008e24 <HAL_DMA_Start_IT+0x218>)
  20518. 8008d88: 4293 cmp r3, r2
  20519. 8008d8a: d01d beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20520. 8008d8c: 68fb ldr r3, [r7, #12]
  20521. 8008d8e: 681b ldr r3, [r3, #0]
  20522. 8008d90: 4a25 ldr r2, [pc, #148] @ (8008e28 <HAL_DMA_Start_IT+0x21c>)
  20523. 8008d92: 4293 cmp r3, r2
  20524. 8008d94: d018 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20525. 8008d96: 68fb ldr r3, [r7, #12]
  20526. 8008d98: 681b ldr r3, [r3, #0]
  20527. 8008d9a: 4a24 ldr r2, [pc, #144] @ (8008e2c <HAL_DMA_Start_IT+0x220>)
  20528. 8008d9c: 4293 cmp r3, r2
  20529. 8008d9e: d013 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20530. 8008da0: 68fb ldr r3, [r7, #12]
  20531. 8008da2: 681b ldr r3, [r3, #0]
  20532. 8008da4: 4a22 ldr r2, [pc, #136] @ (8008e30 <HAL_DMA_Start_IT+0x224>)
  20533. 8008da6: 4293 cmp r3, r2
  20534. 8008da8: d00e beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20535. 8008daa: 68fb ldr r3, [r7, #12]
  20536. 8008dac: 681b ldr r3, [r3, #0]
  20537. 8008dae: 4a21 ldr r2, [pc, #132] @ (8008e34 <HAL_DMA_Start_IT+0x228>)
  20538. 8008db0: 4293 cmp r3, r2
  20539. 8008db2: d009 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20540. 8008db4: 68fb ldr r3, [r7, #12]
  20541. 8008db6: 681b ldr r3, [r3, #0]
  20542. 8008db8: 4a1f ldr r2, [pc, #124] @ (8008e38 <HAL_DMA_Start_IT+0x22c>)
  20543. 8008dba: 4293 cmp r3, r2
  20544. 8008dbc: d004 beq.n 8008dc8 <HAL_DMA_Start_IT+0x1bc>
  20545. 8008dbe: 68fb ldr r3, [r7, #12]
  20546. 8008dc0: 681b ldr r3, [r3, #0]
  20547. 8008dc2: 4a1e ldr r2, [pc, #120] @ (8008e3c <HAL_DMA_Start_IT+0x230>)
  20548. 8008dc4: 4293 cmp r3, r2
  20549. 8008dc6: d101 bne.n 8008dcc <HAL_DMA_Start_IT+0x1c0>
  20550. 8008dc8: 2301 movs r3, #1
  20551. 8008dca: e000 b.n 8008dce <HAL_DMA_Start_IT+0x1c2>
  20552. 8008dcc: 2300 movs r3, #0
  20553. 8008dce: 2b00 cmp r3, #0
  20554. 8008dd0: d036 beq.n 8008e40 <HAL_DMA_Start_IT+0x234>
  20555. {
  20556. /* Enable Common interrupts*/
  20557. 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));
  20558. 8008dd2: 68fb ldr r3, [r7, #12]
  20559. 8008dd4: 681b ldr r3, [r3, #0]
  20560. 8008dd6: 681b ldr r3, [r3, #0]
  20561. 8008dd8: f023 021e bic.w r2, r3, #30
  20562. 8008ddc: 68fb ldr r3, [r7, #12]
  20563. 8008dde: 681b ldr r3, [r3, #0]
  20564. 8008de0: f042 0216 orr.w r2, r2, #22
  20565. 8008de4: 601a str r2, [r3, #0]
  20566. if(hdma->XferHalfCpltCallback != NULL)
  20567. 8008de6: 68fb ldr r3, [r7, #12]
  20568. 8008de8: 6c1b ldr r3, [r3, #64] @ 0x40
  20569. 8008dea: 2b00 cmp r3, #0
  20570. 8008dec: d03e beq.n 8008e6c <HAL_DMA_Start_IT+0x260>
  20571. {
  20572. /* Enable Half Transfer IT if corresponding Callback is set */
  20573. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  20574. 8008dee: 68fb ldr r3, [r7, #12]
  20575. 8008df0: 681b ldr r3, [r3, #0]
  20576. 8008df2: 681a ldr r2, [r3, #0]
  20577. 8008df4: 68fb ldr r3, [r7, #12]
  20578. 8008df6: 681b ldr r3, [r3, #0]
  20579. 8008df8: f042 0208 orr.w r2, r2, #8
  20580. 8008dfc: 601a str r2, [r3, #0]
  20581. 8008dfe: e035 b.n 8008e6c <HAL_DMA_Start_IT+0x260>
  20582. 8008e00: 40020010 .word 0x40020010
  20583. 8008e04: 40020028 .word 0x40020028
  20584. 8008e08: 40020040 .word 0x40020040
  20585. 8008e0c: 40020058 .word 0x40020058
  20586. 8008e10: 40020070 .word 0x40020070
  20587. 8008e14: 40020088 .word 0x40020088
  20588. 8008e18: 400200a0 .word 0x400200a0
  20589. 8008e1c: 400200b8 .word 0x400200b8
  20590. 8008e20: 40020410 .word 0x40020410
  20591. 8008e24: 40020428 .word 0x40020428
  20592. 8008e28: 40020440 .word 0x40020440
  20593. 8008e2c: 40020458 .word 0x40020458
  20594. 8008e30: 40020470 .word 0x40020470
  20595. 8008e34: 40020488 .word 0x40020488
  20596. 8008e38: 400204a0 .word 0x400204a0
  20597. 8008e3c: 400204b8 .word 0x400204b8
  20598. }
  20599. }
  20600. else /* BDMA channel */
  20601. {
  20602. /* Enable Common interrupts */
  20603. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  20604. 8008e40: 68fb ldr r3, [r7, #12]
  20605. 8008e42: 681b ldr r3, [r3, #0]
  20606. 8008e44: 681b ldr r3, [r3, #0]
  20607. 8008e46: f023 020e bic.w r2, r3, #14
  20608. 8008e4a: 68fb ldr r3, [r7, #12]
  20609. 8008e4c: 681b ldr r3, [r3, #0]
  20610. 8008e4e: f042 020a orr.w r2, r2, #10
  20611. 8008e52: 601a str r2, [r3, #0]
  20612. if(hdma->XferHalfCpltCallback != NULL)
  20613. 8008e54: 68fb ldr r3, [r7, #12]
  20614. 8008e56: 6c1b ldr r3, [r3, #64] @ 0x40
  20615. 8008e58: 2b00 cmp r3, #0
  20616. 8008e5a: d007 beq.n 8008e6c <HAL_DMA_Start_IT+0x260>
  20617. {
  20618. /*Enable Half Transfer IT if corresponding Callback is set */
  20619. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  20620. 8008e5c: 68fb ldr r3, [r7, #12]
  20621. 8008e5e: 681b ldr r3, [r3, #0]
  20622. 8008e60: 681a ldr r2, [r3, #0]
  20623. 8008e62: 68fb ldr r3, [r7, #12]
  20624. 8008e64: 681b ldr r3, [r3, #0]
  20625. 8008e66: f042 0204 orr.w r2, r2, #4
  20626. 8008e6a: 601a str r2, [r3, #0]
  20627. }
  20628. }
  20629. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20630. 8008e6c: 68fb ldr r3, [r7, #12]
  20631. 8008e6e: 681b ldr r3, [r3, #0]
  20632. 8008e70: 4a83 ldr r2, [pc, #524] @ (8009080 <HAL_DMA_Start_IT+0x474>)
  20633. 8008e72: 4293 cmp r3, r2
  20634. 8008e74: d072 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20635. 8008e76: 68fb ldr r3, [r7, #12]
  20636. 8008e78: 681b ldr r3, [r3, #0]
  20637. 8008e7a: 4a82 ldr r2, [pc, #520] @ (8009084 <HAL_DMA_Start_IT+0x478>)
  20638. 8008e7c: 4293 cmp r3, r2
  20639. 8008e7e: d06d beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20640. 8008e80: 68fb ldr r3, [r7, #12]
  20641. 8008e82: 681b ldr r3, [r3, #0]
  20642. 8008e84: 4a80 ldr r2, [pc, #512] @ (8009088 <HAL_DMA_Start_IT+0x47c>)
  20643. 8008e86: 4293 cmp r3, r2
  20644. 8008e88: d068 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20645. 8008e8a: 68fb ldr r3, [r7, #12]
  20646. 8008e8c: 681b ldr r3, [r3, #0]
  20647. 8008e8e: 4a7f ldr r2, [pc, #508] @ (800908c <HAL_DMA_Start_IT+0x480>)
  20648. 8008e90: 4293 cmp r3, r2
  20649. 8008e92: d063 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20650. 8008e94: 68fb ldr r3, [r7, #12]
  20651. 8008e96: 681b ldr r3, [r3, #0]
  20652. 8008e98: 4a7d ldr r2, [pc, #500] @ (8009090 <HAL_DMA_Start_IT+0x484>)
  20653. 8008e9a: 4293 cmp r3, r2
  20654. 8008e9c: d05e beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20655. 8008e9e: 68fb ldr r3, [r7, #12]
  20656. 8008ea0: 681b ldr r3, [r3, #0]
  20657. 8008ea2: 4a7c ldr r2, [pc, #496] @ (8009094 <HAL_DMA_Start_IT+0x488>)
  20658. 8008ea4: 4293 cmp r3, r2
  20659. 8008ea6: d059 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20660. 8008ea8: 68fb ldr r3, [r7, #12]
  20661. 8008eaa: 681b ldr r3, [r3, #0]
  20662. 8008eac: 4a7a ldr r2, [pc, #488] @ (8009098 <HAL_DMA_Start_IT+0x48c>)
  20663. 8008eae: 4293 cmp r3, r2
  20664. 8008eb0: d054 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20665. 8008eb2: 68fb ldr r3, [r7, #12]
  20666. 8008eb4: 681b ldr r3, [r3, #0]
  20667. 8008eb6: 4a79 ldr r2, [pc, #484] @ (800909c <HAL_DMA_Start_IT+0x490>)
  20668. 8008eb8: 4293 cmp r3, r2
  20669. 8008eba: d04f beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20670. 8008ebc: 68fb ldr r3, [r7, #12]
  20671. 8008ebe: 681b ldr r3, [r3, #0]
  20672. 8008ec0: 4a77 ldr r2, [pc, #476] @ (80090a0 <HAL_DMA_Start_IT+0x494>)
  20673. 8008ec2: 4293 cmp r3, r2
  20674. 8008ec4: d04a beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20675. 8008ec6: 68fb ldr r3, [r7, #12]
  20676. 8008ec8: 681b ldr r3, [r3, #0]
  20677. 8008eca: 4a76 ldr r2, [pc, #472] @ (80090a4 <HAL_DMA_Start_IT+0x498>)
  20678. 8008ecc: 4293 cmp r3, r2
  20679. 8008ece: d045 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20680. 8008ed0: 68fb ldr r3, [r7, #12]
  20681. 8008ed2: 681b ldr r3, [r3, #0]
  20682. 8008ed4: 4a74 ldr r2, [pc, #464] @ (80090a8 <HAL_DMA_Start_IT+0x49c>)
  20683. 8008ed6: 4293 cmp r3, r2
  20684. 8008ed8: d040 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20685. 8008eda: 68fb ldr r3, [r7, #12]
  20686. 8008edc: 681b ldr r3, [r3, #0]
  20687. 8008ede: 4a73 ldr r2, [pc, #460] @ (80090ac <HAL_DMA_Start_IT+0x4a0>)
  20688. 8008ee0: 4293 cmp r3, r2
  20689. 8008ee2: d03b beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20690. 8008ee4: 68fb ldr r3, [r7, #12]
  20691. 8008ee6: 681b ldr r3, [r3, #0]
  20692. 8008ee8: 4a71 ldr r2, [pc, #452] @ (80090b0 <HAL_DMA_Start_IT+0x4a4>)
  20693. 8008eea: 4293 cmp r3, r2
  20694. 8008eec: d036 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20695. 8008eee: 68fb ldr r3, [r7, #12]
  20696. 8008ef0: 681b ldr r3, [r3, #0]
  20697. 8008ef2: 4a70 ldr r2, [pc, #448] @ (80090b4 <HAL_DMA_Start_IT+0x4a8>)
  20698. 8008ef4: 4293 cmp r3, r2
  20699. 8008ef6: d031 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20700. 8008ef8: 68fb ldr r3, [r7, #12]
  20701. 8008efa: 681b ldr r3, [r3, #0]
  20702. 8008efc: 4a6e ldr r2, [pc, #440] @ (80090b8 <HAL_DMA_Start_IT+0x4ac>)
  20703. 8008efe: 4293 cmp r3, r2
  20704. 8008f00: d02c beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20705. 8008f02: 68fb ldr r3, [r7, #12]
  20706. 8008f04: 681b ldr r3, [r3, #0]
  20707. 8008f06: 4a6d ldr r2, [pc, #436] @ (80090bc <HAL_DMA_Start_IT+0x4b0>)
  20708. 8008f08: 4293 cmp r3, r2
  20709. 8008f0a: d027 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20710. 8008f0c: 68fb ldr r3, [r7, #12]
  20711. 8008f0e: 681b ldr r3, [r3, #0]
  20712. 8008f10: 4a6b ldr r2, [pc, #428] @ (80090c0 <HAL_DMA_Start_IT+0x4b4>)
  20713. 8008f12: 4293 cmp r3, r2
  20714. 8008f14: d022 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20715. 8008f16: 68fb ldr r3, [r7, #12]
  20716. 8008f18: 681b ldr r3, [r3, #0]
  20717. 8008f1a: 4a6a ldr r2, [pc, #424] @ (80090c4 <HAL_DMA_Start_IT+0x4b8>)
  20718. 8008f1c: 4293 cmp r3, r2
  20719. 8008f1e: d01d beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20720. 8008f20: 68fb ldr r3, [r7, #12]
  20721. 8008f22: 681b ldr r3, [r3, #0]
  20722. 8008f24: 4a68 ldr r2, [pc, #416] @ (80090c8 <HAL_DMA_Start_IT+0x4bc>)
  20723. 8008f26: 4293 cmp r3, r2
  20724. 8008f28: d018 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20725. 8008f2a: 68fb ldr r3, [r7, #12]
  20726. 8008f2c: 681b ldr r3, [r3, #0]
  20727. 8008f2e: 4a67 ldr r2, [pc, #412] @ (80090cc <HAL_DMA_Start_IT+0x4c0>)
  20728. 8008f30: 4293 cmp r3, r2
  20729. 8008f32: d013 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20730. 8008f34: 68fb ldr r3, [r7, #12]
  20731. 8008f36: 681b ldr r3, [r3, #0]
  20732. 8008f38: 4a65 ldr r2, [pc, #404] @ (80090d0 <HAL_DMA_Start_IT+0x4c4>)
  20733. 8008f3a: 4293 cmp r3, r2
  20734. 8008f3c: d00e beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20735. 8008f3e: 68fb ldr r3, [r7, #12]
  20736. 8008f40: 681b ldr r3, [r3, #0]
  20737. 8008f42: 4a64 ldr r2, [pc, #400] @ (80090d4 <HAL_DMA_Start_IT+0x4c8>)
  20738. 8008f44: 4293 cmp r3, r2
  20739. 8008f46: d009 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20740. 8008f48: 68fb ldr r3, [r7, #12]
  20741. 8008f4a: 681b ldr r3, [r3, #0]
  20742. 8008f4c: 4a62 ldr r2, [pc, #392] @ (80090d8 <HAL_DMA_Start_IT+0x4cc>)
  20743. 8008f4e: 4293 cmp r3, r2
  20744. 8008f50: d004 beq.n 8008f5c <HAL_DMA_Start_IT+0x350>
  20745. 8008f52: 68fb ldr r3, [r7, #12]
  20746. 8008f54: 681b ldr r3, [r3, #0]
  20747. 8008f56: 4a61 ldr r2, [pc, #388] @ (80090dc <HAL_DMA_Start_IT+0x4d0>)
  20748. 8008f58: 4293 cmp r3, r2
  20749. 8008f5a: d101 bne.n 8008f60 <HAL_DMA_Start_IT+0x354>
  20750. 8008f5c: 2301 movs r3, #1
  20751. 8008f5e: e000 b.n 8008f62 <HAL_DMA_Start_IT+0x356>
  20752. 8008f60: 2300 movs r3, #0
  20753. 8008f62: 2b00 cmp r3, #0
  20754. 8008f64: d01a beq.n 8008f9c <HAL_DMA_Start_IT+0x390>
  20755. {
  20756. /* Check if DMAMUX Synchronization is enabled */
  20757. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  20758. 8008f66: 68fb ldr r3, [r7, #12]
  20759. 8008f68: 6e1b ldr r3, [r3, #96] @ 0x60
  20760. 8008f6a: 681b ldr r3, [r3, #0]
  20761. 8008f6c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  20762. 8008f70: 2b00 cmp r3, #0
  20763. 8008f72: d007 beq.n 8008f84 <HAL_DMA_Start_IT+0x378>
  20764. {
  20765. /* Enable DMAMUX sync overrun IT*/
  20766. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  20767. 8008f74: 68fb ldr r3, [r7, #12]
  20768. 8008f76: 6e1b ldr r3, [r3, #96] @ 0x60
  20769. 8008f78: 681a ldr r2, [r3, #0]
  20770. 8008f7a: 68fb ldr r3, [r7, #12]
  20771. 8008f7c: 6e1b ldr r3, [r3, #96] @ 0x60
  20772. 8008f7e: f442 7280 orr.w r2, r2, #256 @ 0x100
  20773. 8008f82: 601a str r2, [r3, #0]
  20774. }
  20775. if(hdma->DMAmuxRequestGen != 0U)
  20776. 8008f84: 68fb ldr r3, [r7, #12]
  20777. 8008f86: 6edb ldr r3, [r3, #108] @ 0x6c
  20778. 8008f88: 2b00 cmp r3, #0
  20779. 8008f8a: d007 beq.n 8008f9c <HAL_DMA_Start_IT+0x390>
  20780. {
  20781. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  20782. /* enable the request gen overrun IT */
  20783. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  20784. 8008f8c: 68fb ldr r3, [r7, #12]
  20785. 8008f8e: 6edb ldr r3, [r3, #108] @ 0x6c
  20786. 8008f90: 681a ldr r2, [r3, #0]
  20787. 8008f92: 68fb ldr r3, [r7, #12]
  20788. 8008f94: 6edb ldr r3, [r3, #108] @ 0x6c
  20789. 8008f96: f442 7280 orr.w r2, r2, #256 @ 0x100
  20790. 8008f9a: 601a str r2, [r3, #0]
  20791. }
  20792. }
  20793. /* Enable the Peripheral */
  20794. __HAL_DMA_ENABLE(hdma);
  20795. 8008f9c: 68fb ldr r3, [r7, #12]
  20796. 8008f9e: 681b ldr r3, [r3, #0]
  20797. 8008fa0: 4a37 ldr r2, [pc, #220] @ (8009080 <HAL_DMA_Start_IT+0x474>)
  20798. 8008fa2: 4293 cmp r3, r2
  20799. 8008fa4: d04a beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20800. 8008fa6: 68fb ldr r3, [r7, #12]
  20801. 8008fa8: 681b ldr r3, [r3, #0]
  20802. 8008faa: 4a36 ldr r2, [pc, #216] @ (8009084 <HAL_DMA_Start_IT+0x478>)
  20803. 8008fac: 4293 cmp r3, r2
  20804. 8008fae: d045 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20805. 8008fb0: 68fb ldr r3, [r7, #12]
  20806. 8008fb2: 681b ldr r3, [r3, #0]
  20807. 8008fb4: 4a34 ldr r2, [pc, #208] @ (8009088 <HAL_DMA_Start_IT+0x47c>)
  20808. 8008fb6: 4293 cmp r3, r2
  20809. 8008fb8: d040 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20810. 8008fba: 68fb ldr r3, [r7, #12]
  20811. 8008fbc: 681b ldr r3, [r3, #0]
  20812. 8008fbe: 4a33 ldr r2, [pc, #204] @ (800908c <HAL_DMA_Start_IT+0x480>)
  20813. 8008fc0: 4293 cmp r3, r2
  20814. 8008fc2: d03b beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20815. 8008fc4: 68fb ldr r3, [r7, #12]
  20816. 8008fc6: 681b ldr r3, [r3, #0]
  20817. 8008fc8: 4a31 ldr r2, [pc, #196] @ (8009090 <HAL_DMA_Start_IT+0x484>)
  20818. 8008fca: 4293 cmp r3, r2
  20819. 8008fcc: d036 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20820. 8008fce: 68fb ldr r3, [r7, #12]
  20821. 8008fd0: 681b ldr r3, [r3, #0]
  20822. 8008fd2: 4a30 ldr r2, [pc, #192] @ (8009094 <HAL_DMA_Start_IT+0x488>)
  20823. 8008fd4: 4293 cmp r3, r2
  20824. 8008fd6: d031 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20825. 8008fd8: 68fb ldr r3, [r7, #12]
  20826. 8008fda: 681b ldr r3, [r3, #0]
  20827. 8008fdc: 4a2e ldr r2, [pc, #184] @ (8009098 <HAL_DMA_Start_IT+0x48c>)
  20828. 8008fde: 4293 cmp r3, r2
  20829. 8008fe0: d02c beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20830. 8008fe2: 68fb ldr r3, [r7, #12]
  20831. 8008fe4: 681b ldr r3, [r3, #0]
  20832. 8008fe6: 4a2d ldr r2, [pc, #180] @ (800909c <HAL_DMA_Start_IT+0x490>)
  20833. 8008fe8: 4293 cmp r3, r2
  20834. 8008fea: d027 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20835. 8008fec: 68fb ldr r3, [r7, #12]
  20836. 8008fee: 681b ldr r3, [r3, #0]
  20837. 8008ff0: 4a2b ldr r2, [pc, #172] @ (80090a0 <HAL_DMA_Start_IT+0x494>)
  20838. 8008ff2: 4293 cmp r3, r2
  20839. 8008ff4: d022 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20840. 8008ff6: 68fb ldr r3, [r7, #12]
  20841. 8008ff8: 681b ldr r3, [r3, #0]
  20842. 8008ffa: 4a2a ldr r2, [pc, #168] @ (80090a4 <HAL_DMA_Start_IT+0x498>)
  20843. 8008ffc: 4293 cmp r3, r2
  20844. 8008ffe: d01d beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20845. 8009000: 68fb ldr r3, [r7, #12]
  20846. 8009002: 681b ldr r3, [r3, #0]
  20847. 8009004: 4a28 ldr r2, [pc, #160] @ (80090a8 <HAL_DMA_Start_IT+0x49c>)
  20848. 8009006: 4293 cmp r3, r2
  20849. 8009008: d018 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20850. 800900a: 68fb ldr r3, [r7, #12]
  20851. 800900c: 681b ldr r3, [r3, #0]
  20852. 800900e: 4a27 ldr r2, [pc, #156] @ (80090ac <HAL_DMA_Start_IT+0x4a0>)
  20853. 8009010: 4293 cmp r3, r2
  20854. 8009012: d013 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20855. 8009014: 68fb ldr r3, [r7, #12]
  20856. 8009016: 681b ldr r3, [r3, #0]
  20857. 8009018: 4a25 ldr r2, [pc, #148] @ (80090b0 <HAL_DMA_Start_IT+0x4a4>)
  20858. 800901a: 4293 cmp r3, r2
  20859. 800901c: d00e beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20860. 800901e: 68fb ldr r3, [r7, #12]
  20861. 8009020: 681b ldr r3, [r3, #0]
  20862. 8009022: 4a24 ldr r2, [pc, #144] @ (80090b4 <HAL_DMA_Start_IT+0x4a8>)
  20863. 8009024: 4293 cmp r3, r2
  20864. 8009026: d009 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20865. 8009028: 68fb ldr r3, [r7, #12]
  20866. 800902a: 681b ldr r3, [r3, #0]
  20867. 800902c: 4a22 ldr r2, [pc, #136] @ (80090b8 <HAL_DMA_Start_IT+0x4ac>)
  20868. 800902e: 4293 cmp r3, r2
  20869. 8009030: d004 beq.n 800903c <HAL_DMA_Start_IT+0x430>
  20870. 8009032: 68fb ldr r3, [r7, #12]
  20871. 8009034: 681b ldr r3, [r3, #0]
  20872. 8009036: 4a21 ldr r2, [pc, #132] @ (80090bc <HAL_DMA_Start_IT+0x4b0>)
  20873. 8009038: 4293 cmp r3, r2
  20874. 800903a: d108 bne.n 800904e <HAL_DMA_Start_IT+0x442>
  20875. 800903c: 68fb ldr r3, [r7, #12]
  20876. 800903e: 681b ldr r3, [r3, #0]
  20877. 8009040: 681a ldr r2, [r3, #0]
  20878. 8009042: 68fb ldr r3, [r7, #12]
  20879. 8009044: 681b ldr r3, [r3, #0]
  20880. 8009046: f042 0201 orr.w r2, r2, #1
  20881. 800904a: 601a str r2, [r3, #0]
  20882. 800904c: e012 b.n 8009074 <HAL_DMA_Start_IT+0x468>
  20883. 800904e: 68fb ldr r3, [r7, #12]
  20884. 8009050: 681b ldr r3, [r3, #0]
  20885. 8009052: 681a ldr r2, [r3, #0]
  20886. 8009054: 68fb ldr r3, [r7, #12]
  20887. 8009056: 681b ldr r3, [r3, #0]
  20888. 8009058: f042 0201 orr.w r2, r2, #1
  20889. 800905c: 601a str r2, [r3, #0]
  20890. 800905e: e009 b.n 8009074 <HAL_DMA_Start_IT+0x468>
  20891. }
  20892. else
  20893. {
  20894. /* Set the error code to busy */
  20895. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  20896. 8009060: 68fb ldr r3, [r7, #12]
  20897. 8009062: f44f 6200 mov.w r2, #2048 @ 0x800
  20898. 8009066: 655a str r2, [r3, #84] @ 0x54
  20899. /* Process unlocked */
  20900. __HAL_UNLOCK(hdma);
  20901. 8009068: 68fb ldr r3, [r7, #12]
  20902. 800906a: 2200 movs r2, #0
  20903. 800906c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20904. /* Return error status */
  20905. status = HAL_ERROR;
  20906. 8009070: 2301 movs r3, #1
  20907. 8009072: 75fb strb r3, [r7, #23]
  20908. }
  20909. return status;
  20910. 8009074: 7dfb ldrb r3, [r7, #23]
  20911. }
  20912. 8009076: 4618 mov r0, r3
  20913. 8009078: 3718 adds r7, #24
  20914. 800907a: 46bd mov sp, r7
  20915. 800907c: bd80 pop {r7, pc}
  20916. 800907e: bf00 nop
  20917. 8009080: 40020010 .word 0x40020010
  20918. 8009084: 40020028 .word 0x40020028
  20919. 8009088: 40020040 .word 0x40020040
  20920. 800908c: 40020058 .word 0x40020058
  20921. 8009090: 40020070 .word 0x40020070
  20922. 8009094: 40020088 .word 0x40020088
  20923. 8009098: 400200a0 .word 0x400200a0
  20924. 800909c: 400200b8 .word 0x400200b8
  20925. 80090a0: 40020410 .word 0x40020410
  20926. 80090a4: 40020428 .word 0x40020428
  20927. 80090a8: 40020440 .word 0x40020440
  20928. 80090ac: 40020458 .word 0x40020458
  20929. 80090b0: 40020470 .word 0x40020470
  20930. 80090b4: 40020488 .word 0x40020488
  20931. 80090b8: 400204a0 .word 0x400204a0
  20932. 80090bc: 400204b8 .word 0x400204b8
  20933. 80090c0: 58025408 .word 0x58025408
  20934. 80090c4: 5802541c .word 0x5802541c
  20935. 80090c8: 58025430 .word 0x58025430
  20936. 80090cc: 58025444 .word 0x58025444
  20937. 80090d0: 58025458 .word 0x58025458
  20938. 80090d4: 5802546c .word 0x5802546c
  20939. 80090d8: 58025480 .word 0x58025480
  20940. 80090dc: 58025494 .word 0x58025494
  20941. 080090e0 <HAL_DMA_Abort>:
  20942. * and the Stream will be effectively disabled only after the transfer of
  20943. * this single data is finished.
  20944. * @retval HAL status
  20945. */
  20946. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  20947. {
  20948. 80090e0: b580 push {r7, lr}
  20949. 80090e2: b086 sub sp, #24
  20950. 80090e4: af00 add r7, sp, #0
  20951. 80090e6: 6078 str r0, [r7, #4]
  20952. /* calculate DMA base and stream number */
  20953. DMA_Base_Registers *regs_dma;
  20954. BDMA_Base_Registers *regs_bdma;
  20955. const __IO uint32_t *enableRegister;
  20956. uint32_t tickstart = HAL_GetTick();
  20957. 80090e8: f7fc fe98 bl 8005e1c <HAL_GetTick>
  20958. 80090ec: 6138 str r0, [r7, #16]
  20959. /* Check the DMA peripheral handle */
  20960. if(hdma == NULL)
  20961. 80090ee: 687b ldr r3, [r7, #4]
  20962. 80090f0: 2b00 cmp r3, #0
  20963. 80090f2: d101 bne.n 80090f8 <HAL_DMA_Abort+0x18>
  20964. {
  20965. return HAL_ERROR;
  20966. 80090f4: 2301 movs r3, #1
  20967. 80090f6: e2dc b.n 80096b2 <HAL_DMA_Abort+0x5d2>
  20968. }
  20969. /* Check the DMA peripheral state */
  20970. if(hdma->State != HAL_DMA_STATE_BUSY)
  20971. 80090f8: 687b ldr r3, [r7, #4]
  20972. 80090fa: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20973. 80090fe: b2db uxtb r3, r3
  20974. 8009100: 2b02 cmp r3, #2
  20975. 8009102: d008 beq.n 8009116 <HAL_DMA_Abort+0x36>
  20976. {
  20977. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  20978. 8009104: 687b ldr r3, [r7, #4]
  20979. 8009106: 2280 movs r2, #128 @ 0x80
  20980. 8009108: 655a str r2, [r3, #84] @ 0x54
  20981. /* Process Unlocked */
  20982. __HAL_UNLOCK(hdma);
  20983. 800910a: 687b ldr r3, [r7, #4]
  20984. 800910c: 2200 movs r2, #0
  20985. 800910e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20986. return HAL_ERROR;
  20987. 8009112: 2301 movs r3, #1
  20988. 8009114: e2cd b.n 80096b2 <HAL_DMA_Abort+0x5d2>
  20989. }
  20990. else
  20991. {
  20992. /* Disable all the transfer interrupts */
  20993. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20994. 8009116: 687b ldr r3, [r7, #4]
  20995. 8009118: 681b ldr r3, [r3, #0]
  20996. 800911a: 4a76 ldr r2, [pc, #472] @ (80092f4 <HAL_DMA_Abort+0x214>)
  20997. 800911c: 4293 cmp r3, r2
  20998. 800911e: d04a beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  20999. 8009120: 687b ldr r3, [r7, #4]
  21000. 8009122: 681b ldr r3, [r3, #0]
  21001. 8009124: 4a74 ldr r2, [pc, #464] @ (80092f8 <HAL_DMA_Abort+0x218>)
  21002. 8009126: 4293 cmp r3, r2
  21003. 8009128: d045 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21004. 800912a: 687b ldr r3, [r7, #4]
  21005. 800912c: 681b ldr r3, [r3, #0]
  21006. 800912e: 4a73 ldr r2, [pc, #460] @ (80092fc <HAL_DMA_Abort+0x21c>)
  21007. 8009130: 4293 cmp r3, r2
  21008. 8009132: d040 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21009. 8009134: 687b ldr r3, [r7, #4]
  21010. 8009136: 681b ldr r3, [r3, #0]
  21011. 8009138: 4a71 ldr r2, [pc, #452] @ (8009300 <HAL_DMA_Abort+0x220>)
  21012. 800913a: 4293 cmp r3, r2
  21013. 800913c: d03b beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21014. 800913e: 687b ldr r3, [r7, #4]
  21015. 8009140: 681b ldr r3, [r3, #0]
  21016. 8009142: 4a70 ldr r2, [pc, #448] @ (8009304 <HAL_DMA_Abort+0x224>)
  21017. 8009144: 4293 cmp r3, r2
  21018. 8009146: d036 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21019. 8009148: 687b ldr r3, [r7, #4]
  21020. 800914a: 681b ldr r3, [r3, #0]
  21021. 800914c: 4a6e ldr r2, [pc, #440] @ (8009308 <HAL_DMA_Abort+0x228>)
  21022. 800914e: 4293 cmp r3, r2
  21023. 8009150: d031 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21024. 8009152: 687b ldr r3, [r7, #4]
  21025. 8009154: 681b ldr r3, [r3, #0]
  21026. 8009156: 4a6d ldr r2, [pc, #436] @ (800930c <HAL_DMA_Abort+0x22c>)
  21027. 8009158: 4293 cmp r3, r2
  21028. 800915a: d02c beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21029. 800915c: 687b ldr r3, [r7, #4]
  21030. 800915e: 681b ldr r3, [r3, #0]
  21031. 8009160: 4a6b ldr r2, [pc, #428] @ (8009310 <HAL_DMA_Abort+0x230>)
  21032. 8009162: 4293 cmp r3, r2
  21033. 8009164: d027 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21034. 8009166: 687b ldr r3, [r7, #4]
  21035. 8009168: 681b ldr r3, [r3, #0]
  21036. 800916a: 4a6a ldr r2, [pc, #424] @ (8009314 <HAL_DMA_Abort+0x234>)
  21037. 800916c: 4293 cmp r3, r2
  21038. 800916e: d022 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21039. 8009170: 687b ldr r3, [r7, #4]
  21040. 8009172: 681b ldr r3, [r3, #0]
  21041. 8009174: 4a68 ldr r2, [pc, #416] @ (8009318 <HAL_DMA_Abort+0x238>)
  21042. 8009176: 4293 cmp r3, r2
  21043. 8009178: d01d beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21044. 800917a: 687b ldr r3, [r7, #4]
  21045. 800917c: 681b ldr r3, [r3, #0]
  21046. 800917e: 4a67 ldr r2, [pc, #412] @ (800931c <HAL_DMA_Abort+0x23c>)
  21047. 8009180: 4293 cmp r3, r2
  21048. 8009182: d018 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21049. 8009184: 687b ldr r3, [r7, #4]
  21050. 8009186: 681b ldr r3, [r3, #0]
  21051. 8009188: 4a65 ldr r2, [pc, #404] @ (8009320 <HAL_DMA_Abort+0x240>)
  21052. 800918a: 4293 cmp r3, r2
  21053. 800918c: d013 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21054. 800918e: 687b ldr r3, [r7, #4]
  21055. 8009190: 681b ldr r3, [r3, #0]
  21056. 8009192: 4a64 ldr r2, [pc, #400] @ (8009324 <HAL_DMA_Abort+0x244>)
  21057. 8009194: 4293 cmp r3, r2
  21058. 8009196: d00e beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21059. 8009198: 687b ldr r3, [r7, #4]
  21060. 800919a: 681b ldr r3, [r3, #0]
  21061. 800919c: 4a62 ldr r2, [pc, #392] @ (8009328 <HAL_DMA_Abort+0x248>)
  21062. 800919e: 4293 cmp r3, r2
  21063. 80091a0: d009 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21064. 80091a2: 687b ldr r3, [r7, #4]
  21065. 80091a4: 681b ldr r3, [r3, #0]
  21066. 80091a6: 4a61 ldr r2, [pc, #388] @ (800932c <HAL_DMA_Abort+0x24c>)
  21067. 80091a8: 4293 cmp r3, r2
  21068. 80091aa: d004 beq.n 80091b6 <HAL_DMA_Abort+0xd6>
  21069. 80091ac: 687b ldr r3, [r7, #4]
  21070. 80091ae: 681b ldr r3, [r3, #0]
  21071. 80091b0: 4a5f ldr r2, [pc, #380] @ (8009330 <HAL_DMA_Abort+0x250>)
  21072. 80091b2: 4293 cmp r3, r2
  21073. 80091b4: d101 bne.n 80091ba <HAL_DMA_Abort+0xda>
  21074. 80091b6: 2301 movs r3, #1
  21075. 80091b8: e000 b.n 80091bc <HAL_DMA_Abort+0xdc>
  21076. 80091ba: 2300 movs r3, #0
  21077. 80091bc: 2b00 cmp r3, #0
  21078. 80091be: d013 beq.n 80091e8 <HAL_DMA_Abort+0x108>
  21079. {
  21080. /* Disable DMA All Interrupts */
  21081. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  21082. 80091c0: 687b ldr r3, [r7, #4]
  21083. 80091c2: 681b ldr r3, [r3, #0]
  21084. 80091c4: 681a ldr r2, [r3, #0]
  21085. 80091c6: 687b ldr r3, [r7, #4]
  21086. 80091c8: 681b ldr r3, [r3, #0]
  21087. 80091ca: f022 021e bic.w r2, r2, #30
  21088. 80091ce: 601a str r2, [r3, #0]
  21089. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  21090. 80091d0: 687b ldr r3, [r7, #4]
  21091. 80091d2: 681b ldr r3, [r3, #0]
  21092. 80091d4: 695a ldr r2, [r3, #20]
  21093. 80091d6: 687b ldr r3, [r7, #4]
  21094. 80091d8: 681b ldr r3, [r3, #0]
  21095. 80091da: f022 0280 bic.w r2, r2, #128 @ 0x80
  21096. 80091de: 615a str r2, [r3, #20]
  21097. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  21098. 80091e0: 687b ldr r3, [r7, #4]
  21099. 80091e2: 681b ldr r3, [r3, #0]
  21100. 80091e4: 617b str r3, [r7, #20]
  21101. 80091e6: e00a b.n 80091fe <HAL_DMA_Abort+0x11e>
  21102. }
  21103. else /* BDMA channel */
  21104. {
  21105. /* Disable DMA All Interrupts */
  21106. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  21107. 80091e8: 687b ldr r3, [r7, #4]
  21108. 80091ea: 681b ldr r3, [r3, #0]
  21109. 80091ec: 681a ldr r2, [r3, #0]
  21110. 80091ee: 687b ldr r3, [r7, #4]
  21111. 80091f0: 681b ldr r3, [r3, #0]
  21112. 80091f2: f022 020e bic.w r2, r2, #14
  21113. 80091f6: 601a str r2, [r3, #0]
  21114. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  21115. 80091f8: 687b ldr r3, [r7, #4]
  21116. 80091fa: 681b ldr r3, [r3, #0]
  21117. 80091fc: 617b str r3, [r7, #20]
  21118. }
  21119. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21120. 80091fe: 687b ldr r3, [r7, #4]
  21121. 8009200: 681b ldr r3, [r3, #0]
  21122. 8009202: 4a3c ldr r2, [pc, #240] @ (80092f4 <HAL_DMA_Abort+0x214>)
  21123. 8009204: 4293 cmp r3, r2
  21124. 8009206: d072 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21125. 8009208: 687b ldr r3, [r7, #4]
  21126. 800920a: 681b ldr r3, [r3, #0]
  21127. 800920c: 4a3a ldr r2, [pc, #232] @ (80092f8 <HAL_DMA_Abort+0x218>)
  21128. 800920e: 4293 cmp r3, r2
  21129. 8009210: d06d beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21130. 8009212: 687b ldr r3, [r7, #4]
  21131. 8009214: 681b ldr r3, [r3, #0]
  21132. 8009216: 4a39 ldr r2, [pc, #228] @ (80092fc <HAL_DMA_Abort+0x21c>)
  21133. 8009218: 4293 cmp r3, r2
  21134. 800921a: d068 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21135. 800921c: 687b ldr r3, [r7, #4]
  21136. 800921e: 681b ldr r3, [r3, #0]
  21137. 8009220: 4a37 ldr r2, [pc, #220] @ (8009300 <HAL_DMA_Abort+0x220>)
  21138. 8009222: 4293 cmp r3, r2
  21139. 8009224: d063 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21140. 8009226: 687b ldr r3, [r7, #4]
  21141. 8009228: 681b ldr r3, [r3, #0]
  21142. 800922a: 4a36 ldr r2, [pc, #216] @ (8009304 <HAL_DMA_Abort+0x224>)
  21143. 800922c: 4293 cmp r3, r2
  21144. 800922e: d05e beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21145. 8009230: 687b ldr r3, [r7, #4]
  21146. 8009232: 681b ldr r3, [r3, #0]
  21147. 8009234: 4a34 ldr r2, [pc, #208] @ (8009308 <HAL_DMA_Abort+0x228>)
  21148. 8009236: 4293 cmp r3, r2
  21149. 8009238: d059 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21150. 800923a: 687b ldr r3, [r7, #4]
  21151. 800923c: 681b ldr r3, [r3, #0]
  21152. 800923e: 4a33 ldr r2, [pc, #204] @ (800930c <HAL_DMA_Abort+0x22c>)
  21153. 8009240: 4293 cmp r3, r2
  21154. 8009242: d054 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21155. 8009244: 687b ldr r3, [r7, #4]
  21156. 8009246: 681b ldr r3, [r3, #0]
  21157. 8009248: 4a31 ldr r2, [pc, #196] @ (8009310 <HAL_DMA_Abort+0x230>)
  21158. 800924a: 4293 cmp r3, r2
  21159. 800924c: d04f beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21160. 800924e: 687b ldr r3, [r7, #4]
  21161. 8009250: 681b ldr r3, [r3, #0]
  21162. 8009252: 4a30 ldr r2, [pc, #192] @ (8009314 <HAL_DMA_Abort+0x234>)
  21163. 8009254: 4293 cmp r3, r2
  21164. 8009256: d04a beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21165. 8009258: 687b ldr r3, [r7, #4]
  21166. 800925a: 681b ldr r3, [r3, #0]
  21167. 800925c: 4a2e ldr r2, [pc, #184] @ (8009318 <HAL_DMA_Abort+0x238>)
  21168. 800925e: 4293 cmp r3, r2
  21169. 8009260: d045 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21170. 8009262: 687b ldr r3, [r7, #4]
  21171. 8009264: 681b ldr r3, [r3, #0]
  21172. 8009266: 4a2d ldr r2, [pc, #180] @ (800931c <HAL_DMA_Abort+0x23c>)
  21173. 8009268: 4293 cmp r3, r2
  21174. 800926a: d040 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21175. 800926c: 687b ldr r3, [r7, #4]
  21176. 800926e: 681b ldr r3, [r3, #0]
  21177. 8009270: 4a2b ldr r2, [pc, #172] @ (8009320 <HAL_DMA_Abort+0x240>)
  21178. 8009272: 4293 cmp r3, r2
  21179. 8009274: d03b beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21180. 8009276: 687b ldr r3, [r7, #4]
  21181. 8009278: 681b ldr r3, [r3, #0]
  21182. 800927a: 4a2a ldr r2, [pc, #168] @ (8009324 <HAL_DMA_Abort+0x244>)
  21183. 800927c: 4293 cmp r3, r2
  21184. 800927e: d036 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21185. 8009280: 687b ldr r3, [r7, #4]
  21186. 8009282: 681b ldr r3, [r3, #0]
  21187. 8009284: 4a28 ldr r2, [pc, #160] @ (8009328 <HAL_DMA_Abort+0x248>)
  21188. 8009286: 4293 cmp r3, r2
  21189. 8009288: d031 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21190. 800928a: 687b ldr r3, [r7, #4]
  21191. 800928c: 681b ldr r3, [r3, #0]
  21192. 800928e: 4a27 ldr r2, [pc, #156] @ (800932c <HAL_DMA_Abort+0x24c>)
  21193. 8009290: 4293 cmp r3, r2
  21194. 8009292: d02c beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21195. 8009294: 687b ldr r3, [r7, #4]
  21196. 8009296: 681b ldr r3, [r3, #0]
  21197. 8009298: 4a25 ldr r2, [pc, #148] @ (8009330 <HAL_DMA_Abort+0x250>)
  21198. 800929a: 4293 cmp r3, r2
  21199. 800929c: d027 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21200. 800929e: 687b ldr r3, [r7, #4]
  21201. 80092a0: 681b ldr r3, [r3, #0]
  21202. 80092a2: 4a24 ldr r2, [pc, #144] @ (8009334 <HAL_DMA_Abort+0x254>)
  21203. 80092a4: 4293 cmp r3, r2
  21204. 80092a6: d022 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21205. 80092a8: 687b ldr r3, [r7, #4]
  21206. 80092aa: 681b ldr r3, [r3, #0]
  21207. 80092ac: 4a22 ldr r2, [pc, #136] @ (8009338 <HAL_DMA_Abort+0x258>)
  21208. 80092ae: 4293 cmp r3, r2
  21209. 80092b0: d01d beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21210. 80092b2: 687b ldr r3, [r7, #4]
  21211. 80092b4: 681b ldr r3, [r3, #0]
  21212. 80092b6: 4a21 ldr r2, [pc, #132] @ (800933c <HAL_DMA_Abort+0x25c>)
  21213. 80092b8: 4293 cmp r3, r2
  21214. 80092ba: d018 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21215. 80092bc: 687b ldr r3, [r7, #4]
  21216. 80092be: 681b ldr r3, [r3, #0]
  21217. 80092c0: 4a1f ldr r2, [pc, #124] @ (8009340 <HAL_DMA_Abort+0x260>)
  21218. 80092c2: 4293 cmp r3, r2
  21219. 80092c4: d013 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21220. 80092c6: 687b ldr r3, [r7, #4]
  21221. 80092c8: 681b ldr r3, [r3, #0]
  21222. 80092ca: 4a1e ldr r2, [pc, #120] @ (8009344 <HAL_DMA_Abort+0x264>)
  21223. 80092cc: 4293 cmp r3, r2
  21224. 80092ce: d00e beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21225. 80092d0: 687b ldr r3, [r7, #4]
  21226. 80092d2: 681b ldr r3, [r3, #0]
  21227. 80092d4: 4a1c ldr r2, [pc, #112] @ (8009348 <HAL_DMA_Abort+0x268>)
  21228. 80092d6: 4293 cmp r3, r2
  21229. 80092d8: d009 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21230. 80092da: 687b ldr r3, [r7, #4]
  21231. 80092dc: 681b ldr r3, [r3, #0]
  21232. 80092de: 4a1b ldr r2, [pc, #108] @ (800934c <HAL_DMA_Abort+0x26c>)
  21233. 80092e0: 4293 cmp r3, r2
  21234. 80092e2: d004 beq.n 80092ee <HAL_DMA_Abort+0x20e>
  21235. 80092e4: 687b ldr r3, [r7, #4]
  21236. 80092e6: 681b ldr r3, [r3, #0]
  21237. 80092e8: 4a19 ldr r2, [pc, #100] @ (8009350 <HAL_DMA_Abort+0x270>)
  21238. 80092ea: 4293 cmp r3, r2
  21239. 80092ec: d132 bne.n 8009354 <HAL_DMA_Abort+0x274>
  21240. 80092ee: 2301 movs r3, #1
  21241. 80092f0: e031 b.n 8009356 <HAL_DMA_Abort+0x276>
  21242. 80092f2: bf00 nop
  21243. 80092f4: 40020010 .word 0x40020010
  21244. 80092f8: 40020028 .word 0x40020028
  21245. 80092fc: 40020040 .word 0x40020040
  21246. 8009300: 40020058 .word 0x40020058
  21247. 8009304: 40020070 .word 0x40020070
  21248. 8009308: 40020088 .word 0x40020088
  21249. 800930c: 400200a0 .word 0x400200a0
  21250. 8009310: 400200b8 .word 0x400200b8
  21251. 8009314: 40020410 .word 0x40020410
  21252. 8009318: 40020428 .word 0x40020428
  21253. 800931c: 40020440 .word 0x40020440
  21254. 8009320: 40020458 .word 0x40020458
  21255. 8009324: 40020470 .word 0x40020470
  21256. 8009328: 40020488 .word 0x40020488
  21257. 800932c: 400204a0 .word 0x400204a0
  21258. 8009330: 400204b8 .word 0x400204b8
  21259. 8009334: 58025408 .word 0x58025408
  21260. 8009338: 5802541c .word 0x5802541c
  21261. 800933c: 58025430 .word 0x58025430
  21262. 8009340: 58025444 .word 0x58025444
  21263. 8009344: 58025458 .word 0x58025458
  21264. 8009348: 5802546c .word 0x5802546c
  21265. 800934c: 58025480 .word 0x58025480
  21266. 8009350: 58025494 .word 0x58025494
  21267. 8009354: 2300 movs r3, #0
  21268. 8009356: 2b00 cmp r3, #0
  21269. 8009358: d007 beq.n 800936a <HAL_DMA_Abort+0x28a>
  21270. {
  21271. /* disable the DMAMUX sync overrun IT */
  21272. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  21273. 800935a: 687b ldr r3, [r7, #4]
  21274. 800935c: 6e1b ldr r3, [r3, #96] @ 0x60
  21275. 800935e: 681a ldr r2, [r3, #0]
  21276. 8009360: 687b ldr r3, [r7, #4]
  21277. 8009362: 6e1b ldr r3, [r3, #96] @ 0x60
  21278. 8009364: f422 7280 bic.w r2, r2, #256 @ 0x100
  21279. 8009368: 601a str r2, [r3, #0]
  21280. }
  21281. /* Disable the stream */
  21282. __HAL_DMA_DISABLE(hdma);
  21283. 800936a: 687b ldr r3, [r7, #4]
  21284. 800936c: 681b ldr r3, [r3, #0]
  21285. 800936e: 4a6d ldr r2, [pc, #436] @ (8009524 <HAL_DMA_Abort+0x444>)
  21286. 8009370: 4293 cmp r3, r2
  21287. 8009372: d04a beq.n 800940a <HAL_DMA_Abort+0x32a>
  21288. 8009374: 687b ldr r3, [r7, #4]
  21289. 8009376: 681b ldr r3, [r3, #0]
  21290. 8009378: 4a6b ldr r2, [pc, #428] @ (8009528 <HAL_DMA_Abort+0x448>)
  21291. 800937a: 4293 cmp r3, r2
  21292. 800937c: d045 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21293. 800937e: 687b ldr r3, [r7, #4]
  21294. 8009380: 681b ldr r3, [r3, #0]
  21295. 8009382: 4a6a ldr r2, [pc, #424] @ (800952c <HAL_DMA_Abort+0x44c>)
  21296. 8009384: 4293 cmp r3, r2
  21297. 8009386: d040 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21298. 8009388: 687b ldr r3, [r7, #4]
  21299. 800938a: 681b ldr r3, [r3, #0]
  21300. 800938c: 4a68 ldr r2, [pc, #416] @ (8009530 <HAL_DMA_Abort+0x450>)
  21301. 800938e: 4293 cmp r3, r2
  21302. 8009390: d03b beq.n 800940a <HAL_DMA_Abort+0x32a>
  21303. 8009392: 687b ldr r3, [r7, #4]
  21304. 8009394: 681b ldr r3, [r3, #0]
  21305. 8009396: 4a67 ldr r2, [pc, #412] @ (8009534 <HAL_DMA_Abort+0x454>)
  21306. 8009398: 4293 cmp r3, r2
  21307. 800939a: d036 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21308. 800939c: 687b ldr r3, [r7, #4]
  21309. 800939e: 681b ldr r3, [r3, #0]
  21310. 80093a0: 4a65 ldr r2, [pc, #404] @ (8009538 <HAL_DMA_Abort+0x458>)
  21311. 80093a2: 4293 cmp r3, r2
  21312. 80093a4: d031 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21313. 80093a6: 687b ldr r3, [r7, #4]
  21314. 80093a8: 681b ldr r3, [r3, #0]
  21315. 80093aa: 4a64 ldr r2, [pc, #400] @ (800953c <HAL_DMA_Abort+0x45c>)
  21316. 80093ac: 4293 cmp r3, r2
  21317. 80093ae: d02c beq.n 800940a <HAL_DMA_Abort+0x32a>
  21318. 80093b0: 687b ldr r3, [r7, #4]
  21319. 80093b2: 681b ldr r3, [r3, #0]
  21320. 80093b4: 4a62 ldr r2, [pc, #392] @ (8009540 <HAL_DMA_Abort+0x460>)
  21321. 80093b6: 4293 cmp r3, r2
  21322. 80093b8: d027 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21323. 80093ba: 687b ldr r3, [r7, #4]
  21324. 80093bc: 681b ldr r3, [r3, #0]
  21325. 80093be: 4a61 ldr r2, [pc, #388] @ (8009544 <HAL_DMA_Abort+0x464>)
  21326. 80093c0: 4293 cmp r3, r2
  21327. 80093c2: d022 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21328. 80093c4: 687b ldr r3, [r7, #4]
  21329. 80093c6: 681b ldr r3, [r3, #0]
  21330. 80093c8: 4a5f ldr r2, [pc, #380] @ (8009548 <HAL_DMA_Abort+0x468>)
  21331. 80093ca: 4293 cmp r3, r2
  21332. 80093cc: d01d beq.n 800940a <HAL_DMA_Abort+0x32a>
  21333. 80093ce: 687b ldr r3, [r7, #4]
  21334. 80093d0: 681b ldr r3, [r3, #0]
  21335. 80093d2: 4a5e ldr r2, [pc, #376] @ (800954c <HAL_DMA_Abort+0x46c>)
  21336. 80093d4: 4293 cmp r3, r2
  21337. 80093d6: d018 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21338. 80093d8: 687b ldr r3, [r7, #4]
  21339. 80093da: 681b ldr r3, [r3, #0]
  21340. 80093dc: 4a5c ldr r2, [pc, #368] @ (8009550 <HAL_DMA_Abort+0x470>)
  21341. 80093de: 4293 cmp r3, r2
  21342. 80093e0: d013 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21343. 80093e2: 687b ldr r3, [r7, #4]
  21344. 80093e4: 681b ldr r3, [r3, #0]
  21345. 80093e6: 4a5b ldr r2, [pc, #364] @ (8009554 <HAL_DMA_Abort+0x474>)
  21346. 80093e8: 4293 cmp r3, r2
  21347. 80093ea: d00e beq.n 800940a <HAL_DMA_Abort+0x32a>
  21348. 80093ec: 687b ldr r3, [r7, #4]
  21349. 80093ee: 681b ldr r3, [r3, #0]
  21350. 80093f0: 4a59 ldr r2, [pc, #356] @ (8009558 <HAL_DMA_Abort+0x478>)
  21351. 80093f2: 4293 cmp r3, r2
  21352. 80093f4: d009 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21353. 80093f6: 687b ldr r3, [r7, #4]
  21354. 80093f8: 681b ldr r3, [r3, #0]
  21355. 80093fa: 4a58 ldr r2, [pc, #352] @ (800955c <HAL_DMA_Abort+0x47c>)
  21356. 80093fc: 4293 cmp r3, r2
  21357. 80093fe: d004 beq.n 800940a <HAL_DMA_Abort+0x32a>
  21358. 8009400: 687b ldr r3, [r7, #4]
  21359. 8009402: 681b ldr r3, [r3, #0]
  21360. 8009404: 4a56 ldr r2, [pc, #344] @ (8009560 <HAL_DMA_Abort+0x480>)
  21361. 8009406: 4293 cmp r3, r2
  21362. 8009408: d108 bne.n 800941c <HAL_DMA_Abort+0x33c>
  21363. 800940a: 687b ldr r3, [r7, #4]
  21364. 800940c: 681b ldr r3, [r3, #0]
  21365. 800940e: 681a ldr r2, [r3, #0]
  21366. 8009410: 687b ldr r3, [r7, #4]
  21367. 8009412: 681b ldr r3, [r3, #0]
  21368. 8009414: f022 0201 bic.w r2, r2, #1
  21369. 8009418: 601a str r2, [r3, #0]
  21370. 800941a: e007 b.n 800942c <HAL_DMA_Abort+0x34c>
  21371. 800941c: 687b ldr r3, [r7, #4]
  21372. 800941e: 681b ldr r3, [r3, #0]
  21373. 8009420: 681a ldr r2, [r3, #0]
  21374. 8009422: 687b ldr r3, [r7, #4]
  21375. 8009424: 681b ldr r3, [r3, #0]
  21376. 8009426: f022 0201 bic.w r2, r2, #1
  21377. 800942a: 601a str r2, [r3, #0]
  21378. /* Check if the DMA Stream is effectively disabled */
  21379. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21380. 800942c: e013 b.n 8009456 <HAL_DMA_Abort+0x376>
  21381. {
  21382. /* Check for the Timeout */
  21383. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  21384. 800942e: f7fc fcf5 bl 8005e1c <HAL_GetTick>
  21385. 8009432: 4602 mov r2, r0
  21386. 8009434: 693b ldr r3, [r7, #16]
  21387. 8009436: 1ad3 subs r3, r2, r3
  21388. 8009438: 2b05 cmp r3, #5
  21389. 800943a: d90c bls.n 8009456 <HAL_DMA_Abort+0x376>
  21390. {
  21391. /* Update error code */
  21392. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  21393. 800943c: 687b ldr r3, [r7, #4]
  21394. 800943e: 2220 movs r2, #32
  21395. 8009440: 655a str r2, [r3, #84] @ 0x54
  21396. /* Change the DMA state */
  21397. hdma->State = HAL_DMA_STATE_ERROR;
  21398. 8009442: 687b ldr r3, [r7, #4]
  21399. 8009444: 2203 movs r2, #3
  21400. 8009446: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21401. /* Process Unlocked */
  21402. __HAL_UNLOCK(hdma);
  21403. 800944a: 687b ldr r3, [r7, #4]
  21404. 800944c: 2200 movs r2, #0
  21405. 800944e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21406. return HAL_ERROR;
  21407. 8009452: 2301 movs r3, #1
  21408. 8009454: e12d b.n 80096b2 <HAL_DMA_Abort+0x5d2>
  21409. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21410. 8009456: 697b ldr r3, [r7, #20]
  21411. 8009458: 681b ldr r3, [r3, #0]
  21412. 800945a: f003 0301 and.w r3, r3, #1
  21413. 800945e: 2b00 cmp r3, #0
  21414. 8009460: d1e5 bne.n 800942e <HAL_DMA_Abort+0x34e>
  21415. }
  21416. }
  21417. /* Clear all interrupt flags at correct offset within the register */
  21418. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21419. 8009462: 687b ldr r3, [r7, #4]
  21420. 8009464: 681b ldr r3, [r3, #0]
  21421. 8009466: 4a2f ldr r2, [pc, #188] @ (8009524 <HAL_DMA_Abort+0x444>)
  21422. 8009468: 4293 cmp r3, r2
  21423. 800946a: d04a beq.n 8009502 <HAL_DMA_Abort+0x422>
  21424. 800946c: 687b ldr r3, [r7, #4]
  21425. 800946e: 681b ldr r3, [r3, #0]
  21426. 8009470: 4a2d ldr r2, [pc, #180] @ (8009528 <HAL_DMA_Abort+0x448>)
  21427. 8009472: 4293 cmp r3, r2
  21428. 8009474: d045 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21429. 8009476: 687b ldr r3, [r7, #4]
  21430. 8009478: 681b ldr r3, [r3, #0]
  21431. 800947a: 4a2c ldr r2, [pc, #176] @ (800952c <HAL_DMA_Abort+0x44c>)
  21432. 800947c: 4293 cmp r3, r2
  21433. 800947e: d040 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21434. 8009480: 687b ldr r3, [r7, #4]
  21435. 8009482: 681b ldr r3, [r3, #0]
  21436. 8009484: 4a2a ldr r2, [pc, #168] @ (8009530 <HAL_DMA_Abort+0x450>)
  21437. 8009486: 4293 cmp r3, r2
  21438. 8009488: d03b beq.n 8009502 <HAL_DMA_Abort+0x422>
  21439. 800948a: 687b ldr r3, [r7, #4]
  21440. 800948c: 681b ldr r3, [r3, #0]
  21441. 800948e: 4a29 ldr r2, [pc, #164] @ (8009534 <HAL_DMA_Abort+0x454>)
  21442. 8009490: 4293 cmp r3, r2
  21443. 8009492: d036 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21444. 8009494: 687b ldr r3, [r7, #4]
  21445. 8009496: 681b ldr r3, [r3, #0]
  21446. 8009498: 4a27 ldr r2, [pc, #156] @ (8009538 <HAL_DMA_Abort+0x458>)
  21447. 800949a: 4293 cmp r3, r2
  21448. 800949c: d031 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21449. 800949e: 687b ldr r3, [r7, #4]
  21450. 80094a0: 681b ldr r3, [r3, #0]
  21451. 80094a2: 4a26 ldr r2, [pc, #152] @ (800953c <HAL_DMA_Abort+0x45c>)
  21452. 80094a4: 4293 cmp r3, r2
  21453. 80094a6: d02c beq.n 8009502 <HAL_DMA_Abort+0x422>
  21454. 80094a8: 687b ldr r3, [r7, #4]
  21455. 80094aa: 681b ldr r3, [r3, #0]
  21456. 80094ac: 4a24 ldr r2, [pc, #144] @ (8009540 <HAL_DMA_Abort+0x460>)
  21457. 80094ae: 4293 cmp r3, r2
  21458. 80094b0: d027 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21459. 80094b2: 687b ldr r3, [r7, #4]
  21460. 80094b4: 681b ldr r3, [r3, #0]
  21461. 80094b6: 4a23 ldr r2, [pc, #140] @ (8009544 <HAL_DMA_Abort+0x464>)
  21462. 80094b8: 4293 cmp r3, r2
  21463. 80094ba: d022 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21464. 80094bc: 687b ldr r3, [r7, #4]
  21465. 80094be: 681b ldr r3, [r3, #0]
  21466. 80094c0: 4a21 ldr r2, [pc, #132] @ (8009548 <HAL_DMA_Abort+0x468>)
  21467. 80094c2: 4293 cmp r3, r2
  21468. 80094c4: d01d beq.n 8009502 <HAL_DMA_Abort+0x422>
  21469. 80094c6: 687b ldr r3, [r7, #4]
  21470. 80094c8: 681b ldr r3, [r3, #0]
  21471. 80094ca: 4a20 ldr r2, [pc, #128] @ (800954c <HAL_DMA_Abort+0x46c>)
  21472. 80094cc: 4293 cmp r3, r2
  21473. 80094ce: d018 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21474. 80094d0: 687b ldr r3, [r7, #4]
  21475. 80094d2: 681b ldr r3, [r3, #0]
  21476. 80094d4: 4a1e ldr r2, [pc, #120] @ (8009550 <HAL_DMA_Abort+0x470>)
  21477. 80094d6: 4293 cmp r3, r2
  21478. 80094d8: d013 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21479. 80094da: 687b ldr r3, [r7, #4]
  21480. 80094dc: 681b ldr r3, [r3, #0]
  21481. 80094de: 4a1d ldr r2, [pc, #116] @ (8009554 <HAL_DMA_Abort+0x474>)
  21482. 80094e0: 4293 cmp r3, r2
  21483. 80094e2: d00e beq.n 8009502 <HAL_DMA_Abort+0x422>
  21484. 80094e4: 687b ldr r3, [r7, #4]
  21485. 80094e6: 681b ldr r3, [r3, #0]
  21486. 80094e8: 4a1b ldr r2, [pc, #108] @ (8009558 <HAL_DMA_Abort+0x478>)
  21487. 80094ea: 4293 cmp r3, r2
  21488. 80094ec: d009 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21489. 80094ee: 687b ldr r3, [r7, #4]
  21490. 80094f0: 681b ldr r3, [r3, #0]
  21491. 80094f2: 4a1a ldr r2, [pc, #104] @ (800955c <HAL_DMA_Abort+0x47c>)
  21492. 80094f4: 4293 cmp r3, r2
  21493. 80094f6: d004 beq.n 8009502 <HAL_DMA_Abort+0x422>
  21494. 80094f8: 687b ldr r3, [r7, #4]
  21495. 80094fa: 681b ldr r3, [r3, #0]
  21496. 80094fc: 4a18 ldr r2, [pc, #96] @ (8009560 <HAL_DMA_Abort+0x480>)
  21497. 80094fe: 4293 cmp r3, r2
  21498. 8009500: d101 bne.n 8009506 <HAL_DMA_Abort+0x426>
  21499. 8009502: 2301 movs r3, #1
  21500. 8009504: e000 b.n 8009508 <HAL_DMA_Abort+0x428>
  21501. 8009506: 2300 movs r3, #0
  21502. 8009508: 2b00 cmp r3, #0
  21503. 800950a: d02b beq.n 8009564 <HAL_DMA_Abort+0x484>
  21504. {
  21505. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21506. 800950c: 687b ldr r3, [r7, #4]
  21507. 800950e: 6d9b ldr r3, [r3, #88] @ 0x58
  21508. 8009510: 60bb str r3, [r7, #8]
  21509. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  21510. 8009512: 687b ldr r3, [r7, #4]
  21511. 8009514: 6ddb ldr r3, [r3, #92] @ 0x5c
  21512. 8009516: f003 031f and.w r3, r3, #31
  21513. 800951a: 223f movs r2, #63 @ 0x3f
  21514. 800951c: 409a lsls r2, r3
  21515. 800951e: 68bb ldr r3, [r7, #8]
  21516. 8009520: 609a str r2, [r3, #8]
  21517. 8009522: e02a b.n 800957a <HAL_DMA_Abort+0x49a>
  21518. 8009524: 40020010 .word 0x40020010
  21519. 8009528: 40020028 .word 0x40020028
  21520. 800952c: 40020040 .word 0x40020040
  21521. 8009530: 40020058 .word 0x40020058
  21522. 8009534: 40020070 .word 0x40020070
  21523. 8009538: 40020088 .word 0x40020088
  21524. 800953c: 400200a0 .word 0x400200a0
  21525. 8009540: 400200b8 .word 0x400200b8
  21526. 8009544: 40020410 .word 0x40020410
  21527. 8009548: 40020428 .word 0x40020428
  21528. 800954c: 40020440 .word 0x40020440
  21529. 8009550: 40020458 .word 0x40020458
  21530. 8009554: 40020470 .word 0x40020470
  21531. 8009558: 40020488 .word 0x40020488
  21532. 800955c: 400204a0 .word 0x400204a0
  21533. 8009560: 400204b8 .word 0x400204b8
  21534. }
  21535. else /* BDMA channel */
  21536. {
  21537. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21538. 8009564: 687b ldr r3, [r7, #4]
  21539. 8009566: 6d9b ldr r3, [r3, #88] @ 0x58
  21540. 8009568: 60fb str r3, [r7, #12]
  21541. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21542. 800956a: 687b ldr r3, [r7, #4]
  21543. 800956c: 6ddb ldr r3, [r3, #92] @ 0x5c
  21544. 800956e: f003 031f and.w r3, r3, #31
  21545. 8009572: 2201 movs r2, #1
  21546. 8009574: 409a lsls r2, r3
  21547. 8009576: 68fb ldr r3, [r7, #12]
  21548. 8009578: 605a str r2, [r3, #4]
  21549. }
  21550. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21551. 800957a: 687b ldr r3, [r7, #4]
  21552. 800957c: 681b ldr r3, [r3, #0]
  21553. 800957e: 4a4f ldr r2, [pc, #316] @ (80096bc <HAL_DMA_Abort+0x5dc>)
  21554. 8009580: 4293 cmp r3, r2
  21555. 8009582: d072 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21556. 8009584: 687b ldr r3, [r7, #4]
  21557. 8009586: 681b ldr r3, [r3, #0]
  21558. 8009588: 4a4d ldr r2, [pc, #308] @ (80096c0 <HAL_DMA_Abort+0x5e0>)
  21559. 800958a: 4293 cmp r3, r2
  21560. 800958c: d06d beq.n 800966a <HAL_DMA_Abort+0x58a>
  21561. 800958e: 687b ldr r3, [r7, #4]
  21562. 8009590: 681b ldr r3, [r3, #0]
  21563. 8009592: 4a4c ldr r2, [pc, #304] @ (80096c4 <HAL_DMA_Abort+0x5e4>)
  21564. 8009594: 4293 cmp r3, r2
  21565. 8009596: d068 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21566. 8009598: 687b ldr r3, [r7, #4]
  21567. 800959a: 681b ldr r3, [r3, #0]
  21568. 800959c: 4a4a ldr r2, [pc, #296] @ (80096c8 <HAL_DMA_Abort+0x5e8>)
  21569. 800959e: 4293 cmp r3, r2
  21570. 80095a0: d063 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21571. 80095a2: 687b ldr r3, [r7, #4]
  21572. 80095a4: 681b ldr r3, [r3, #0]
  21573. 80095a6: 4a49 ldr r2, [pc, #292] @ (80096cc <HAL_DMA_Abort+0x5ec>)
  21574. 80095a8: 4293 cmp r3, r2
  21575. 80095aa: d05e beq.n 800966a <HAL_DMA_Abort+0x58a>
  21576. 80095ac: 687b ldr r3, [r7, #4]
  21577. 80095ae: 681b ldr r3, [r3, #0]
  21578. 80095b0: 4a47 ldr r2, [pc, #284] @ (80096d0 <HAL_DMA_Abort+0x5f0>)
  21579. 80095b2: 4293 cmp r3, r2
  21580. 80095b4: d059 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21581. 80095b6: 687b ldr r3, [r7, #4]
  21582. 80095b8: 681b ldr r3, [r3, #0]
  21583. 80095ba: 4a46 ldr r2, [pc, #280] @ (80096d4 <HAL_DMA_Abort+0x5f4>)
  21584. 80095bc: 4293 cmp r3, r2
  21585. 80095be: d054 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21586. 80095c0: 687b ldr r3, [r7, #4]
  21587. 80095c2: 681b ldr r3, [r3, #0]
  21588. 80095c4: 4a44 ldr r2, [pc, #272] @ (80096d8 <HAL_DMA_Abort+0x5f8>)
  21589. 80095c6: 4293 cmp r3, r2
  21590. 80095c8: d04f beq.n 800966a <HAL_DMA_Abort+0x58a>
  21591. 80095ca: 687b ldr r3, [r7, #4]
  21592. 80095cc: 681b ldr r3, [r3, #0]
  21593. 80095ce: 4a43 ldr r2, [pc, #268] @ (80096dc <HAL_DMA_Abort+0x5fc>)
  21594. 80095d0: 4293 cmp r3, r2
  21595. 80095d2: d04a beq.n 800966a <HAL_DMA_Abort+0x58a>
  21596. 80095d4: 687b ldr r3, [r7, #4]
  21597. 80095d6: 681b ldr r3, [r3, #0]
  21598. 80095d8: 4a41 ldr r2, [pc, #260] @ (80096e0 <HAL_DMA_Abort+0x600>)
  21599. 80095da: 4293 cmp r3, r2
  21600. 80095dc: d045 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21601. 80095de: 687b ldr r3, [r7, #4]
  21602. 80095e0: 681b ldr r3, [r3, #0]
  21603. 80095e2: 4a40 ldr r2, [pc, #256] @ (80096e4 <HAL_DMA_Abort+0x604>)
  21604. 80095e4: 4293 cmp r3, r2
  21605. 80095e6: d040 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21606. 80095e8: 687b ldr r3, [r7, #4]
  21607. 80095ea: 681b ldr r3, [r3, #0]
  21608. 80095ec: 4a3e ldr r2, [pc, #248] @ (80096e8 <HAL_DMA_Abort+0x608>)
  21609. 80095ee: 4293 cmp r3, r2
  21610. 80095f0: d03b beq.n 800966a <HAL_DMA_Abort+0x58a>
  21611. 80095f2: 687b ldr r3, [r7, #4]
  21612. 80095f4: 681b ldr r3, [r3, #0]
  21613. 80095f6: 4a3d ldr r2, [pc, #244] @ (80096ec <HAL_DMA_Abort+0x60c>)
  21614. 80095f8: 4293 cmp r3, r2
  21615. 80095fa: d036 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21616. 80095fc: 687b ldr r3, [r7, #4]
  21617. 80095fe: 681b ldr r3, [r3, #0]
  21618. 8009600: 4a3b ldr r2, [pc, #236] @ (80096f0 <HAL_DMA_Abort+0x610>)
  21619. 8009602: 4293 cmp r3, r2
  21620. 8009604: d031 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21621. 8009606: 687b ldr r3, [r7, #4]
  21622. 8009608: 681b ldr r3, [r3, #0]
  21623. 800960a: 4a3a ldr r2, [pc, #232] @ (80096f4 <HAL_DMA_Abort+0x614>)
  21624. 800960c: 4293 cmp r3, r2
  21625. 800960e: d02c beq.n 800966a <HAL_DMA_Abort+0x58a>
  21626. 8009610: 687b ldr r3, [r7, #4]
  21627. 8009612: 681b ldr r3, [r3, #0]
  21628. 8009614: 4a38 ldr r2, [pc, #224] @ (80096f8 <HAL_DMA_Abort+0x618>)
  21629. 8009616: 4293 cmp r3, r2
  21630. 8009618: d027 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21631. 800961a: 687b ldr r3, [r7, #4]
  21632. 800961c: 681b ldr r3, [r3, #0]
  21633. 800961e: 4a37 ldr r2, [pc, #220] @ (80096fc <HAL_DMA_Abort+0x61c>)
  21634. 8009620: 4293 cmp r3, r2
  21635. 8009622: d022 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21636. 8009624: 687b ldr r3, [r7, #4]
  21637. 8009626: 681b ldr r3, [r3, #0]
  21638. 8009628: 4a35 ldr r2, [pc, #212] @ (8009700 <HAL_DMA_Abort+0x620>)
  21639. 800962a: 4293 cmp r3, r2
  21640. 800962c: d01d beq.n 800966a <HAL_DMA_Abort+0x58a>
  21641. 800962e: 687b ldr r3, [r7, #4]
  21642. 8009630: 681b ldr r3, [r3, #0]
  21643. 8009632: 4a34 ldr r2, [pc, #208] @ (8009704 <HAL_DMA_Abort+0x624>)
  21644. 8009634: 4293 cmp r3, r2
  21645. 8009636: d018 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21646. 8009638: 687b ldr r3, [r7, #4]
  21647. 800963a: 681b ldr r3, [r3, #0]
  21648. 800963c: 4a32 ldr r2, [pc, #200] @ (8009708 <HAL_DMA_Abort+0x628>)
  21649. 800963e: 4293 cmp r3, r2
  21650. 8009640: d013 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21651. 8009642: 687b ldr r3, [r7, #4]
  21652. 8009644: 681b ldr r3, [r3, #0]
  21653. 8009646: 4a31 ldr r2, [pc, #196] @ (800970c <HAL_DMA_Abort+0x62c>)
  21654. 8009648: 4293 cmp r3, r2
  21655. 800964a: d00e beq.n 800966a <HAL_DMA_Abort+0x58a>
  21656. 800964c: 687b ldr r3, [r7, #4]
  21657. 800964e: 681b ldr r3, [r3, #0]
  21658. 8009650: 4a2f ldr r2, [pc, #188] @ (8009710 <HAL_DMA_Abort+0x630>)
  21659. 8009652: 4293 cmp r3, r2
  21660. 8009654: d009 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21661. 8009656: 687b ldr r3, [r7, #4]
  21662. 8009658: 681b ldr r3, [r3, #0]
  21663. 800965a: 4a2e ldr r2, [pc, #184] @ (8009714 <HAL_DMA_Abort+0x634>)
  21664. 800965c: 4293 cmp r3, r2
  21665. 800965e: d004 beq.n 800966a <HAL_DMA_Abort+0x58a>
  21666. 8009660: 687b ldr r3, [r7, #4]
  21667. 8009662: 681b ldr r3, [r3, #0]
  21668. 8009664: 4a2c ldr r2, [pc, #176] @ (8009718 <HAL_DMA_Abort+0x638>)
  21669. 8009666: 4293 cmp r3, r2
  21670. 8009668: d101 bne.n 800966e <HAL_DMA_Abort+0x58e>
  21671. 800966a: 2301 movs r3, #1
  21672. 800966c: e000 b.n 8009670 <HAL_DMA_Abort+0x590>
  21673. 800966e: 2300 movs r3, #0
  21674. 8009670: 2b00 cmp r3, #0
  21675. 8009672: d015 beq.n 80096a0 <HAL_DMA_Abort+0x5c0>
  21676. {
  21677. /* Clear the DMAMUX synchro overrun flag */
  21678. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21679. 8009674: 687b ldr r3, [r7, #4]
  21680. 8009676: 6e5b ldr r3, [r3, #100] @ 0x64
  21681. 8009678: 687a ldr r2, [r7, #4]
  21682. 800967a: 6e92 ldr r2, [r2, #104] @ 0x68
  21683. 800967c: 605a str r2, [r3, #4]
  21684. if(hdma->DMAmuxRequestGen != 0U)
  21685. 800967e: 687b ldr r3, [r7, #4]
  21686. 8009680: 6edb ldr r3, [r3, #108] @ 0x6c
  21687. 8009682: 2b00 cmp r3, #0
  21688. 8009684: d00c beq.n 80096a0 <HAL_DMA_Abort+0x5c0>
  21689. {
  21690. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  21691. /* disable the request gen overrun IT */
  21692. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21693. 8009686: 687b ldr r3, [r7, #4]
  21694. 8009688: 6edb ldr r3, [r3, #108] @ 0x6c
  21695. 800968a: 681a ldr r2, [r3, #0]
  21696. 800968c: 687b ldr r3, [r7, #4]
  21697. 800968e: 6edb ldr r3, [r3, #108] @ 0x6c
  21698. 8009690: f422 7280 bic.w r2, r2, #256 @ 0x100
  21699. 8009694: 601a str r2, [r3, #0]
  21700. /* Clear the DMAMUX request generator overrun flag */
  21701. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21702. 8009696: 687b ldr r3, [r7, #4]
  21703. 8009698: 6f1b ldr r3, [r3, #112] @ 0x70
  21704. 800969a: 687a ldr r2, [r7, #4]
  21705. 800969c: 6f52 ldr r2, [r2, #116] @ 0x74
  21706. 800969e: 605a str r2, [r3, #4]
  21707. }
  21708. }
  21709. /* Change the DMA state */
  21710. hdma->State = HAL_DMA_STATE_READY;
  21711. 80096a0: 687b ldr r3, [r7, #4]
  21712. 80096a2: 2201 movs r2, #1
  21713. 80096a4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21714. /* Process Unlocked */
  21715. __HAL_UNLOCK(hdma);
  21716. 80096a8: 687b ldr r3, [r7, #4]
  21717. 80096aa: 2200 movs r2, #0
  21718. 80096ac: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21719. }
  21720. return HAL_OK;
  21721. 80096b0: 2300 movs r3, #0
  21722. }
  21723. 80096b2: 4618 mov r0, r3
  21724. 80096b4: 3718 adds r7, #24
  21725. 80096b6: 46bd mov sp, r7
  21726. 80096b8: bd80 pop {r7, pc}
  21727. 80096ba: bf00 nop
  21728. 80096bc: 40020010 .word 0x40020010
  21729. 80096c0: 40020028 .word 0x40020028
  21730. 80096c4: 40020040 .word 0x40020040
  21731. 80096c8: 40020058 .word 0x40020058
  21732. 80096cc: 40020070 .word 0x40020070
  21733. 80096d0: 40020088 .word 0x40020088
  21734. 80096d4: 400200a0 .word 0x400200a0
  21735. 80096d8: 400200b8 .word 0x400200b8
  21736. 80096dc: 40020410 .word 0x40020410
  21737. 80096e0: 40020428 .word 0x40020428
  21738. 80096e4: 40020440 .word 0x40020440
  21739. 80096e8: 40020458 .word 0x40020458
  21740. 80096ec: 40020470 .word 0x40020470
  21741. 80096f0: 40020488 .word 0x40020488
  21742. 80096f4: 400204a0 .word 0x400204a0
  21743. 80096f8: 400204b8 .word 0x400204b8
  21744. 80096fc: 58025408 .word 0x58025408
  21745. 8009700: 5802541c .word 0x5802541c
  21746. 8009704: 58025430 .word 0x58025430
  21747. 8009708: 58025444 .word 0x58025444
  21748. 800970c: 58025458 .word 0x58025458
  21749. 8009710: 5802546c .word 0x5802546c
  21750. 8009714: 58025480 .word 0x58025480
  21751. 8009718: 58025494 .word 0x58025494
  21752. 0800971c <HAL_DMA_Abort_IT>:
  21753. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  21754. * the configuration information for the specified DMA Stream.
  21755. * @retval HAL status
  21756. */
  21757. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  21758. {
  21759. 800971c: b580 push {r7, lr}
  21760. 800971e: b084 sub sp, #16
  21761. 8009720: af00 add r7, sp, #0
  21762. 8009722: 6078 str r0, [r7, #4]
  21763. BDMA_Base_Registers *regs_bdma;
  21764. /* Check the DMA peripheral handle */
  21765. if(hdma == NULL)
  21766. 8009724: 687b ldr r3, [r7, #4]
  21767. 8009726: 2b00 cmp r3, #0
  21768. 8009728: d101 bne.n 800972e <HAL_DMA_Abort_IT+0x12>
  21769. {
  21770. return HAL_ERROR;
  21771. 800972a: 2301 movs r3, #1
  21772. 800972c: e237 b.n 8009b9e <HAL_DMA_Abort_IT+0x482>
  21773. }
  21774. if(hdma->State != HAL_DMA_STATE_BUSY)
  21775. 800972e: 687b ldr r3, [r7, #4]
  21776. 8009730: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  21777. 8009734: b2db uxtb r3, r3
  21778. 8009736: 2b02 cmp r3, #2
  21779. 8009738: d004 beq.n 8009744 <HAL_DMA_Abort_IT+0x28>
  21780. {
  21781. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  21782. 800973a: 687b ldr r3, [r7, #4]
  21783. 800973c: 2280 movs r2, #128 @ 0x80
  21784. 800973e: 655a str r2, [r3, #84] @ 0x54
  21785. return HAL_ERROR;
  21786. 8009740: 2301 movs r3, #1
  21787. 8009742: e22c b.n 8009b9e <HAL_DMA_Abort_IT+0x482>
  21788. }
  21789. else
  21790. {
  21791. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21792. 8009744: 687b ldr r3, [r7, #4]
  21793. 8009746: 681b ldr r3, [r3, #0]
  21794. 8009748: 4a5c ldr r2, [pc, #368] @ (80098bc <HAL_DMA_Abort_IT+0x1a0>)
  21795. 800974a: 4293 cmp r3, r2
  21796. 800974c: d04a beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21797. 800974e: 687b ldr r3, [r7, #4]
  21798. 8009750: 681b ldr r3, [r3, #0]
  21799. 8009752: 4a5b ldr r2, [pc, #364] @ (80098c0 <HAL_DMA_Abort_IT+0x1a4>)
  21800. 8009754: 4293 cmp r3, r2
  21801. 8009756: d045 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21802. 8009758: 687b ldr r3, [r7, #4]
  21803. 800975a: 681b ldr r3, [r3, #0]
  21804. 800975c: 4a59 ldr r2, [pc, #356] @ (80098c4 <HAL_DMA_Abort_IT+0x1a8>)
  21805. 800975e: 4293 cmp r3, r2
  21806. 8009760: d040 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21807. 8009762: 687b ldr r3, [r7, #4]
  21808. 8009764: 681b ldr r3, [r3, #0]
  21809. 8009766: 4a58 ldr r2, [pc, #352] @ (80098c8 <HAL_DMA_Abort_IT+0x1ac>)
  21810. 8009768: 4293 cmp r3, r2
  21811. 800976a: d03b beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21812. 800976c: 687b ldr r3, [r7, #4]
  21813. 800976e: 681b ldr r3, [r3, #0]
  21814. 8009770: 4a56 ldr r2, [pc, #344] @ (80098cc <HAL_DMA_Abort_IT+0x1b0>)
  21815. 8009772: 4293 cmp r3, r2
  21816. 8009774: d036 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21817. 8009776: 687b ldr r3, [r7, #4]
  21818. 8009778: 681b ldr r3, [r3, #0]
  21819. 800977a: 4a55 ldr r2, [pc, #340] @ (80098d0 <HAL_DMA_Abort_IT+0x1b4>)
  21820. 800977c: 4293 cmp r3, r2
  21821. 800977e: d031 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21822. 8009780: 687b ldr r3, [r7, #4]
  21823. 8009782: 681b ldr r3, [r3, #0]
  21824. 8009784: 4a53 ldr r2, [pc, #332] @ (80098d4 <HAL_DMA_Abort_IT+0x1b8>)
  21825. 8009786: 4293 cmp r3, r2
  21826. 8009788: d02c beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21827. 800978a: 687b ldr r3, [r7, #4]
  21828. 800978c: 681b ldr r3, [r3, #0]
  21829. 800978e: 4a52 ldr r2, [pc, #328] @ (80098d8 <HAL_DMA_Abort_IT+0x1bc>)
  21830. 8009790: 4293 cmp r3, r2
  21831. 8009792: d027 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21832. 8009794: 687b ldr r3, [r7, #4]
  21833. 8009796: 681b ldr r3, [r3, #0]
  21834. 8009798: 4a50 ldr r2, [pc, #320] @ (80098dc <HAL_DMA_Abort_IT+0x1c0>)
  21835. 800979a: 4293 cmp r3, r2
  21836. 800979c: d022 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21837. 800979e: 687b ldr r3, [r7, #4]
  21838. 80097a0: 681b ldr r3, [r3, #0]
  21839. 80097a2: 4a4f ldr r2, [pc, #316] @ (80098e0 <HAL_DMA_Abort_IT+0x1c4>)
  21840. 80097a4: 4293 cmp r3, r2
  21841. 80097a6: d01d beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21842. 80097a8: 687b ldr r3, [r7, #4]
  21843. 80097aa: 681b ldr r3, [r3, #0]
  21844. 80097ac: 4a4d ldr r2, [pc, #308] @ (80098e4 <HAL_DMA_Abort_IT+0x1c8>)
  21845. 80097ae: 4293 cmp r3, r2
  21846. 80097b0: d018 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21847. 80097b2: 687b ldr r3, [r7, #4]
  21848. 80097b4: 681b ldr r3, [r3, #0]
  21849. 80097b6: 4a4c ldr r2, [pc, #304] @ (80098e8 <HAL_DMA_Abort_IT+0x1cc>)
  21850. 80097b8: 4293 cmp r3, r2
  21851. 80097ba: d013 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21852. 80097bc: 687b ldr r3, [r7, #4]
  21853. 80097be: 681b ldr r3, [r3, #0]
  21854. 80097c0: 4a4a ldr r2, [pc, #296] @ (80098ec <HAL_DMA_Abort_IT+0x1d0>)
  21855. 80097c2: 4293 cmp r3, r2
  21856. 80097c4: d00e beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21857. 80097c6: 687b ldr r3, [r7, #4]
  21858. 80097c8: 681b ldr r3, [r3, #0]
  21859. 80097ca: 4a49 ldr r2, [pc, #292] @ (80098f0 <HAL_DMA_Abort_IT+0x1d4>)
  21860. 80097cc: 4293 cmp r3, r2
  21861. 80097ce: d009 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21862. 80097d0: 687b ldr r3, [r7, #4]
  21863. 80097d2: 681b ldr r3, [r3, #0]
  21864. 80097d4: 4a47 ldr r2, [pc, #284] @ (80098f4 <HAL_DMA_Abort_IT+0x1d8>)
  21865. 80097d6: 4293 cmp r3, r2
  21866. 80097d8: d004 beq.n 80097e4 <HAL_DMA_Abort_IT+0xc8>
  21867. 80097da: 687b ldr r3, [r7, #4]
  21868. 80097dc: 681b ldr r3, [r3, #0]
  21869. 80097de: 4a46 ldr r2, [pc, #280] @ (80098f8 <HAL_DMA_Abort_IT+0x1dc>)
  21870. 80097e0: 4293 cmp r3, r2
  21871. 80097e2: d101 bne.n 80097e8 <HAL_DMA_Abort_IT+0xcc>
  21872. 80097e4: 2301 movs r3, #1
  21873. 80097e6: e000 b.n 80097ea <HAL_DMA_Abort_IT+0xce>
  21874. 80097e8: 2300 movs r3, #0
  21875. 80097ea: 2b00 cmp r3, #0
  21876. 80097ec: f000 8086 beq.w 80098fc <HAL_DMA_Abort_IT+0x1e0>
  21877. {
  21878. /* Set Abort State */
  21879. hdma->State = HAL_DMA_STATE_ABORT;
  21880. 80097f0: 687b ldr r3, [r7, #4]
  21881. 80097f2: 2204 movs r2, #4
  21882. 80097f4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21883. /* Disable the stream */
  21884. __HAL_DMA_DISABLE(hdma);
  21885. 80097f8: 687b ldr r3, [r7, #4]
  21886. 80097fa: 681b ldr r3, [r3, #0]
  21887. 80097fc: 4a2f ldr r2, [pc, #188] @ (80098bc <HAL_DMA_Abort_IT+0x1a0>)
  21888. 80097fe: 4293 cmp r3, r2
  21889. 8009800: d04a beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21890. 8009802: 687b ldr r3, [r7, #4]
  21891. 8009804: 681b ldr r3, [r3, #0]
  21892. 8009806: 4a2e ldr r2, [pc, #184] @ (80098c0 <HAL_DMA_Abort_IT+0x1a4>)
  21893. 8009808: 4293 cmp r3, r2
  21894. 800980a: d045 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21895. 800980c: 687b ldr r3, [r7, #4]
  21896. 800980e: 681b ldr r3, [r3, #0]
  21897. 8009810: 4a2c ldr r2, [pc, #176] @ (80098c4 <HAL_DMA_Abort_IT+0x1a8>)
  21898. 8009812: 4293 cmp r3, r2
  21899. 8009814: d040 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21900. 8009816: 687b ldr r3, [r7, #4]
  21901. 8009818: 681b ldr r3, [r3, #0]
  21902. 800981a: 4a2b ldr r2, [pc, #172] @ (80098c8 <HAL_DMA_Abort_IT+0x1ac>)
  21903. 800981c: 4293 cmp r3, r2
  21904. 800981e: d03b beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21905. 8009820: 687b ldr r3, [r7, #4]
  21906. 8009822: 681b ldr r3, [r3, #0]
  21907. 8009824: 4a29 ldr r2, [pc, #164] @ (80098cc <HAL_DMA_Abort_IT+0x1b0>)
  21908. 8009826: 4293 cmp r3, r2
  21909. 8009828: d036 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21910. 800982a: 687b ldr r3, [r7, #4]
  21911. 800982c: 681b ldr r3, [r3, #0]
  21912. 800982e: 4a28 ldr r2, [pc, #160] @ (80098d0 <HAL_DMA_Abort_IT+0x1b4>)
  21913. 8009830: 4293 cmp r3, r2
  21914. 8009832: d031 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21915. 8009834: 687b ldr r3, [r7, #4]
  21916. 8009836: 681b ldr r3, [r3, #0]
  21917. 8009838: 4a26 ldr r2, [pc, #152] @ (80098d4 <HAL_DMA_Abort_IT+0x1b8>)
  21918. 800983a: 4293 cmp r3, r2
  21919. 800983c: d02c beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21920. 800983e: 687b ldr r3, [r7, #4]
  21921. 8009840: 681b ldr r3, [r3, #0]
  21922. 8009842: 4a25 ldr r2, [pc, #148] @ (80098d8 <HAL_DMA_Abort_IT+0x1bc>)
  21923. 8009844: 4293 cmp r3, r2
  21924. 8009846: d027 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21925. 8009848: 687b ldr r3, [r7, #4]
  21926. 800984a: 681b ldr r3, [r3, #0]
  21927. 800984c: 4a23 ldr r2, [pc, #140] @ (80098dc <HAL_DMA_Abort_IT+0x1c0>)
  21928. 800984e: 4293 cmp r3, r2
  21929. 8009850: d022 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21930. 8009852: 687b ldr r3, [r7, #4]
  21931. 8009854: 681b ldr r3, [r3, #0]
  21932. 8009856: 4a22 ldr r2, [pc, #136] @ (80098e0 <HAL_DMA_Abort_IT+0x1c4>)
  21933. 8009858: 4293 cmp r3, r2
  21934. 800985a: d01d beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21935. 800985c: 687b ldr r3, [r7, #4]
  21936. 800985e: 681b ldr r3, [r3, #0]
  21937. 8009860: 4a20 ldr r2, [pc, #128] @ (80098e4 <HAL_DMA_Abort_IT+0x1c8>)
  21938. 8009862: 4293 cmp r3, r2
  21939. 8009864: d018 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21940. 8009866: 687b ldr r3, [r7, #4]
  21941. 8009868: 681b ldr r3, [r3, #0]
  21942. 800986a: 4a1f ldr r2, [pc, #124] @ (80098e8 <HAL_DMA_Abort_IT+0x1cc>)
  21943. 800986c: 4293 cmp r3, r2
  21944. 800986e: d013 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21945. 8009870: 687b ldr r3, [r7, #4]
  21946. 8009872: 681b ldr r3, [r3, #0]
  21947. 8009874: 4a1d ldr r2, [pc, #116] @ (80098ec <HAL_DMA_Abort_IT+0x1d0>)
  21948. 8009876: 4293 cmp r3, r2
  21949. 8009878: d00e beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21950. 800987a: 687b ldr r3, [r7, #4]
  21951. 800987c: 681b ldr r3, [r3, #0]
  21952. 800987e: 4a1c ldr r2, [pc, #112] @ (80098f0 <HAL_DMA_Abort_IT+0x1d4>)
  21953. 8009880: 4293 cmp r3, r2
  21954. 8009882: d009 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21955. 8009884: 687b ldr r3, [r7, #4]
  21956. 8009886: 681b ldr r3, [r3, #0]
  21957. 8009888: 4a1a ldr r2, [pc, #104] @ (80098f4 <HAL_DMA_Abort_IT+0x1d8>)
  21958. 800988a: 4293 cmp r3, r2
  21959. 800988c: d004 beq.n 8009898 <HAL_DMA_Abort_IT+0x17c>
  21960. 800988e: 687b ldr r3, [r7, #4]
  21961. 8009890: 681b ldr r3, [r3, #0]
  21962. 8009892: 4a19 ldr r2, [pc, #100] @ (80098f8 <HAL_DMA_Abort_IT+0x1dc>)
  21963. 8009894: 4293 cmp r3, r2
  21964. 8009896: d108 bne.n 80098aa <HAL_DMA_Abort_IT+0x18e>
  21965. 8009898: 687b ldr r3, [r7, #4]
  21966. 800989a: 681b ldr r3, [r3, #0]
  21967. 800989c: 681a ldr r2, [r3, #0]
  21968. 800989e: 687b ldr r3, [r7, #4]
  21969. 80098a0: 681b ldr r3, [r3, #0]
  21970. 80098a2: f022 0201 bic.w r2, r2, #1
  21971. 80098a6: 601a str r2, [r3, #0]
  21972. 80098a8: e178 b.n 8009b9c <HAL_DMA_Abort_IT+0x480>
  21973. 80098aa: 687b ldr r3, [r7, #4]
  21974. 80098ac: 681b ldr r3, [r3, #0]
  21975. 80098ae: 681a ldr r2, [r3, #0]
  21976. 80098b0: 687b ldr r3, [r7, #4]
  21977. 80098b2: 681b ldr r3, [r3, #0]
  21978. 80098b4: f022 0201 bic.w r2, r2, #1
  21979. 80098b8: 601a str r2, [r3, #0]
  21980. 80098ba: e16f b.n 8009b9c <HAL_DMA_Abort_IT+0x480>
  21981. 80098bc: 40020010 .word 0x40020010
  21982. 80098c0: 40020028 .word 0x40020028
  21983. 80098c4: 40020040 .word 0x40020040
  21984. 80098c8: 40020058 .word 0x40020058
  21985. 80098cc: 40020070 .word 0x40020070
  21986. 80098d0: 40020088 .word 0x40020088
  21987. 80098d4: 400200a0 .word 0x400200a0
  21988. 80098d8: 400200b8 .word 0x400200b8
  21989. 80098dc: 40020410 .word 0x40020410
  21990. 80098e0: 40020428 .word 0x40020428
  21991. 80098e4: 40020440 .word 0x40020440
  21992. 80098e8: 40020458 .word 0x40020458
  21993. 80098ec: 40020470 .word 0x40020470
  21994. 80098f0: 40020488 .word 0x40020488
  21995. 80098f4: 400204a0 .word 0x400204a0
  21996. 80098f8: 400204b8 .word 0x400204b8
  21997. }
  21998. else /* BDMA channel */
  21999. {
  22000. /* Disable DMA All Interrupts */
  22001. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  22002. 80098fc: 687b ldr r3, [r7, #4]
  22003. 80098fe: 681b ldr r3, [r3, #0]
  22004. 8009900: 681a ldr r2, [r3, #0]
  22005. 8009902: 687b ldr r3, [r7, #4]
  22006. 8009904: 681b ldr r3, [r3, #0]
  22007. 8009906: f022 020e bic.w r2, r2, #14
  22008. 800990a: 601a str r2, [r3, #0]
  22009. /* Disable the channel */
  22010. __HAL_DMA_DISABLE(hdma);
  22011. 800990c: 687b ldr r3, [r7, #4]
  22012. 800990e: 681b ldr r3, [r3, #0]
  22013. 8009910: 4a6c ldr r2, [pc, #432] @ (8009ac4 <HAL_DMA_Abort_IT+0x3a8>)
  22014. 8009912: 4293 cmp r3, r2
  22015. 8009914: d04a beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22016. 8009916: 687b ldr r3, [r7, #4]
  22017. 8009918: 681b ldr r3, [r3, #0]
  22018. 800991a: 4a6b ldr r2, [pc, #428] @ (8009ac8 <HAL_DMA_Abort_IT+0x3ac>)
  22019. 800991c: 4293 cmp r3, r2
  22020. 800991e: d045 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22021. 8009920: 687b ldr r3, [r7, #4]
  22022. 8009922: 681b ldr r3, [r3, #0]
  22023. 8009924: 4a69 ldr r2, [pc, #420] @ (8009acc <HAL_DMA_Abort_IT+0x3b0>)
  22024. 8009926: 4293 cmp r3, r2
  22025. 8009928: d040 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22026. 800992a: 687b ldr r3, [r7, #4]
  22027. 800992c: 681b ldr r3, [r3, #0]
  22028. 800992e: 4a68 ldr r2, [pc, #416] @ (8009ad0 <HAL_DMA_Abort_IT+0x3b4>)
  22029. 8009930: 4293 cmp r3, r2
  22030. 8009932: d03b beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22031. 8009934: 687b ldr r3, [r7, #4]
  22032. 8009936: 681b ldr r3, [r3, #0]
  22033. 8009938: 4a66 ldr r2, [pc, #408] @ (8009ad4 <HAL_DMA_Abort_IT+0x3b8>)
  22034. 800993a: 4293 cmp r3, r2
  22035. 800993c: d036 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22036. 800993e: 687b ldr r3, [r7, #4]
  22037. 8009940: 681b ldr r3, [r3, #0]
  22038. 8009942: 4a65 ldr r2, [pc, #404] @ (8009ad8 <HAL_DMA_Abort_IT+0x3bc>)
  22039. 8009944: 4293 cmp r3, r2
  22040. 8009946: d031 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22041. 8009948: 687b ldr r3, [r7, #4]
  22042. 800994a: 681b ldr r3, [r3, #0]
  22043. 800994c: 4a63 ldr r2, [pc, #396] @ (8009adc <HAL_DMA_Abort_IT+0x3c0>)
  22044. 800994e: 4293 cmp r3, r2
  22045. 8009950: d02c beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22046. 8009952: 687b ldr r3, [r7, #4]
  22047. 8009954: 681b ldr r3, [r3, #0]
  22048. 8009956: 4a62 ldr r2, [pc, #392] @ (8009ae0 <HAL_DMA_Abort_IT+0x3c4>)
  22049. 8009958: 4293 cmp r3, r2
  22050. 800995a: d027 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22051. 800995c: 687b ldr r3, [r7, #4]
  22052. 800995e: 681b ldr r3, [r3, #0]
  22053. 8009960: 4a60 ldr r2, [pc, #384] @ (8009ae4 <HAL_DMA_Abort_IT+0x3c8>)
  22054. 8009962: 4293 cmp r3, r2
  22055. 8009964: d022 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22056. 8009966: 687b ldr r3, [r7, #4]
  22057. 8009968: 681b ldr r3, [r3, #0]
  22058. 800996a: 4a5f ldr r2, [pc, #380] @ (8009ae8 <HAL_DMA_Abort_IT+0x3cc>)
  22059. 800996c: 4293 cmp r3, r2
  22060. 800996e: d01d beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22061. 8009970: 687b ldr r3, [r7, #4]
  22062. 8009972: 681b ldr r3, [r3, #0]
  22063. 8009974: 4a5d ldr r2, [pc, #372] @ (8009aec <HAL_DMA_Abort_IT+0x3d0>)
  22064. 8009976: 4293 cmp r3, r2
  22065. 8009978: d018 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22066. 800997a: 687b ldr r3, [r7, #4]
  22067. 800997c: 681b ldr r3, [r3, #0]
  22068. 800997e: 4a5c ldr r2, [pc, #368] @ (8009af0 <HAL_DMA_Abort_IT+0x3d4>)
  22069. 8009980: 4293 cmp r3, r2
  22070. 8009982: d013 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22071. 8009984: 687b ldr r3, [r7, #4]
  22072. 8009986: 681b ldr r3, [r3, #0]
  22073. 8009988: 4a5a ldr r2, [pc, #360] @ (8009af4 <HAL_DMA_Abort_IT+0x3d8>)
  22074. 800998a: 4293 cmp r3, r2
  22075. 800998c: d00e beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22076. 800998e: 687b ldr r3, [r7, #4]
  22077. 8009990: 681b ldr r3, [r3, #0]
  22078. 8009992: 4a59 ldr r2, [pc, #356] @ (8009af8 <HAL_DMA_Abort_IT+0x3dc>)
  22079. 8009994: 4293 cmp r3, r2
  22080. 8009996: d009 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22081. 8009998: 687b ldr r3, [r7, #4]
  22082. 800999a: 681b ldr r3, [r3, #0]
  22083. 800999c: 4a57 ldr r2, [pc, #348] @ (8009afc <HAL_DMA_Abort_IT+0x3e0>)
  22084. 800999e: 4293 cmp r3, r2
  22085. 80099a0: d004 beq.n 80099ac <HAL_DMA_Abort_IT+0x290>
  22086. 80099a2: 687b ldr r3, [r7, #4]
  22087. 80099a4: 681b ldr r3, [r3, #0]
  22088. 80099a6: 4a56 ldr r2, [pc, #344] @ (8009b00 <HAL_DMA_Abort_IT+0x3e4>)
  22089. 80099a8: 4293 cmp r3, r2
  22090. 80099aa: d108 bne.n 80099be <HAL_DMA_Abort_IT+0x2a2>
  22091. 80099ac: 687b ldr r3, [r7, #4]
  22092. 80099ae: 681b ldr r3, [r3, #0]
  22093. 80099b0: 681a ldr r2, [r3, #0]
  22094. 80099b2: 687b ldr r3, [r7, #4]
  22095. 80099b4: 681b ldr r3, [r3, #0]
  22096. 80099b6: f022 0201 bic.w r2, r2, #1
  22097. 80099ba: 601a str r2, [r3, #0]
  22098. 80099bc: e007 b.n 80099ce <HAL_DMA_Abort_IT+0x2b2>
  22099. 80099be: 687b ldr r3, [r7, #4]
  22100. 80099c0: 681b ldr r3, [r3, #0]
  22101. 80099c2: 681a ldr r2, [r3, #0]
  22102. 80099c4: 687b ldr r3, [r7, #4]
  22103. 80099c6: 681b ldr r3, [r3, #0]
  22104. 80099c8: f022 0201 bic.w r2, r2, #1
  22105. 80099cc: 601a str r2, [r3, #0]
  22106. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  22107. 80099ce: 687b ldr r3, [r7, #4]
  22108. 80099d0: 681b ldr r3, [r3, #0]
  22109. 80099d2: 4a3c ldr r2, [pc, #240] @ (8009ac4 <HAL_DMA_Abort_IT+0x3a8>)
  22110. 80099d4: 4293 cmp r3, r2
  22111. 80099d6: d072 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22112. 80099d8: 687b ldr r3, [r7, #4]
  22113. 80099da: 681b ldr r3, [r3, #0]
  22114. 80099dc: 4a3a ldr r2, [pc, #232] @ (8009ac8 <HAL_DMA_Abort_IT+0x3ac>)
  22115. 80099de: 4293 cmp r3, r2
  22116. 80099e0: d06d beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22117. 80099e2: 687b ldr r3, [r7, #4]
  22118. 80099e4: 681b ldr r3, [r3, #0]
  22119. 80099e6: 4a39 ldr r2, [pc, #228] @ (8009acc <HAL_DMA_Abort_IT+0x3b0>)
  22120. 80099e8: 4293 cmp r3, r2
  22121. 80099ea: d068 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22122. 80099ec: 687b ldr r3, [r7, #4]
  22123. 80099ee: 681b ldr r3, [r3, #0]
  22124. 80099f0: 4a37 ldr r2, [pc, #220] @ (8009ad0 <HAL_DMA_Abort_IT+0x3b4>)
  22125. 80099f2: 4293 cmp r3, r2
  22126. 80099f4: d063 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22127. 80099f6: 687b ldr r3, [r7, #4]
  22128. 80099f8: 681b ldr r3, [r3, #0]
  22129. 80099fa: 4a36 ldr r2, [pc, #216] @ (8009ad4 <HAL_DMA_Abort_IT+0x3b8>)
  22130. 80099fc: 4293 cmp r3, r2
  22131. 80099fe: d05e beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22132. 8009a00: 687b ldr r3, [r7, #4]
  22133. 8009a02: 681b ldr r3, [r3, #0]
  22134. 8009a04: 4a34 ldr r2, [pc, #208] @ (8009ad8 <HAL_DMA_Abort_IT+0x3bc>)
  22135. 8009a06: 4293 cmp r3, r2
  22136. 8009a08: d059 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22137. 8009a0a: 687b ldr r3, [r7, #4]
  22138. 8009a0c: 681b ldr r3, [r3, #0]
  22139. 8009a0e: 4a33 ldr r2, [pc, #204] @ (8009adc <HAL_DMA_Abort_IT+0x3c0>)
  22140. 8009a10: 4293 cmp r3, r2
  22141. 8009a12: d054 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22142. 8009a14: 687b ldr r3, [r7, #4]
  22143. 8009a16: 681b ldr r3, [r3, #0]
  22144. 8009a18: 4a31 ldr r2, [pc, #196] @ (8009ae0 <HAL_DMA_Abort_IT+0x3c4>)
  22145. 8009a1a: 4293 cmp r3, r2
  22146. 8009a1c: d04f beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22147. 8009a1e: 687b ldr r3, [r7, #4]
  22148. 8009a20: 681b ldr r3, [r3, #0]
  22149. 8009a22: 4a30 ldr r2, [pc, #192] @ (8009ae4 <HAL_DMA_Abort_IT+0x3c8>)
  22150. 8009a24: 4293 cmp r3, r2
  22151. 8009a26: d04a beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22152. 8009a28: 687b ldr r3, [r7, #4]
  22153. 8009a2a: 681b ldr r3, [r3, #0]
  22154. 8009a2c: 4a2e ldr r2, [pc, #184] @ (8009ae8 <HAL_DMA_Abort_IT+0x3cc>)
  22155. 8009a2e: 4293 cmp r3, r2
  22156. 8009a30: d045 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22157. 8009a32: 687b ldr r3, [r7, #4]
  22158. 8009a34: 681b ldr r3, [r3, #0]
  22159. 8009a36: 4a2d ldr r2, [pc, #180] @ (8009aec <HAL_DMA_Abort_IT+0x3d0>)
  22160. 8009a38: 4293 cmp r3, r2
  22161. 8009a3a: d040 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22162. 8009a3c: 687b ldr r3, [r7, #4]
  22163. 8009a3e: 681b ldr r3, [r3, #0]
  22164. 8009a40: 4a2b ldr r2, [pc, #172] @ (8009af0 <HAL_DMA_Abort_IT+0x3d4>)
  22165. 8009a42: 4293 cmp r3, r2
  22166. 8009a44: d03b beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22167. 8009a46: 687b ldr r3, [r7, #4]
  22168. 8009a48: 681b ldr r3, [r3, #0]
  22169. 8009a4a: 4a2a ldr r2, [pc, #168] @ (8009af4 <HAL_DMA_Abort_IT+0x3d8>)
  22170. 8009a4c: 4293 cmp r3, r2
  22171. 8009a4e: d036 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22172. 8009a50: 687b ldr r3, [r7, #4]
  22173. 8009a52: 681b ldr r3, [r3, #0]
  22174. 8009a54: 4a28 ldr r2, [pc, #160] @ (8009af8 <HAL_DMA_Abort_IT+0x3dc>)
  22175. 8009a56: 4293 cmp r3, r2
  22176. 8009a58: d031 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22177. 8009a5a: 687b ldr r3, [r7, #4]
  22178. 8009a5c: 681b ldr r3, [r3, #0]
  22179. 8009a5e: 4a27 ldr r2, [pc, #156] @ (8009afc <HAL_DMA_Abort_IT+0x3e0>)
  22180. 8009a60: 4293 cmp r3, r2
  22181. 8009a62: d02c beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22182. 8009a64: 687b ldr r3, [r7, #4]
  22183. 8009a66: 681b ldr r3, [r3, #0]
  22184. 8009a68: 4a25 ldr r2, [pc, #148] @ (8009b00 <HAL_DMA_Abort_IT+0x3e4>)
  22185. 8009a6a: 4293 cmp r3, r2
  22186. 8009a6c: d027 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22187. 8009a6e: 687b ldr r3, [r7, #4]
  22188. 8009a70: 681b ldr r3, [r3, #0]
  22189. 8009a72: 4a24 ldr r2, [pc, #144] @ (8009b04 <HAL_DMA_Abort_IT+0x3e8>)
  22190. 8009a74: 4293 cmp r3, r2
  22191. 8009a76: d022 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22192. 8009a78: 687b ldr r3, [r7, #4]
  22193. 8009a7a: 681b ldr r3, [r3, #0]
  22194. 8009a7c: 4a22 ldr r2, [pc, #136] @ (8009b08 <HAL_DMA_Abort_IT+0x3ec>)
  22195. 8009a7e: 4293 cmp r3, r2
  22196. 8009a80: d01d beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22197. 8009a82: 687b ldr r3, [r7, #4]
  22198. 8009a84: 681b ldr r3, [r3, #0]
  22199. 8009a86: 4a21 ldr r2, [pc, #132] @ (8009b0c <HAL_DMA_Abort_IT+0x3f0>)
  22200. 8009a88: 4293 cmp r3, r2
  22201. 8009a8a: d018 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22202. 8009a8c: 687b ldr r3, [r7, #4]
  22203. 8009a8e: 681b ldr r3, [r3, #0]
  22204. 8009a90: 4a1f ldr r2, [pc, #124] @ (8009b10 <HAL_DMA_Abort_IT+0x3f4>)
  22205. 8009a92: 4293 cmp r3, r2
  22206. 8009a94: d013 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22207. 8009a96: 687b ldr r3, [r7, #4]
  22208. 8009a98: 681b ldr r3, [r3, #0]
  22209. 8009a9a: 4a1e ldr r2, [pc, #120] @ (8009b14 <HAL_DMA_Abort_IT+0x3f8>)
  22210. 8009a9c: 4293 cmp r3, r2
  22211. 8009a9e: d00e beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22212. 8009aa0: 687b ldr r3, [r7, #4]
  22213. 8009aa2: 681b ldr r3, [r3, #0]
  22214. 8009aa4: 4a1c ldr r2, [pc, #112] @ (8009b18 <HAL_DMA_Abort_IT+0x3fc>)
  22215. 8009aa6: 4293 cmp r3, r2
  22216. 8009aa8: d009 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22217. 8009aaa: 687b ldr r3, [r7, #4]
  22218. 8009aac: 681b ldr r3, [r3, #0]
  22219. 8009aae: 4a1b ldr r2, [pc, #108] @ (8009b1c <HAL_DMA_Abort_IT+0x400>)
  22220. 8009ab0: 4293 cmp r3, r2
  22221. 8009ab2: d004 beq.n 8009abe <HAL_DMA_Abort_IT+0x3a2>
  22222. 8009ab4: 687b ldr r3, [r7, #4]
  22223. 8009ab6: 681b ldr r3, [r3, #0]
  22224. 8009ab8: 4a19 ldr r2, [pc, #100] @ (8009b20 <HAL_DMA_Abort_IT+0x404>)
  22225. 8009aba: 4293 cmp r3, r2
  22226. 8009abc: d132 bne.n 8009b24 <HAL_DMA_Abort_IT+0x408>
  22227. 8009abe: 2301 movs r3, #1
  22228. 8009ac0: e031 b.n 8009b26 <HAL_DMA_Abort_IT+0x40a>
  22229. 8009ac2: bf00 nop
  22230. 8009ac4: 40020010 .word 0x40020010
  22231. 8009ac8: 40020028 .word 0x40020028
  22232. 8009acc: 40020040 .word 0x40020040
  22233. 8009ad0: 40020058 .word 0x40020058
  22234. 8009ad4: 40020070 .word 0x40020070
  22235. 8009ad8: 40020088 .word 0x40020088
  22236. 8009adc: 400200a0 .word 0x400200a0
  22237. 8009ae0: 400200b8 .word 0x400200b8
  22238. 8009ae4: 40020410 .word 0x40020410
  22239. 8009ae8: 40020428 .word 0x40020428
  22240. 8009aec: 40020440 .word 0x40020440
  22241. 8009af0: 40020458 .word 0x40020458
  22242. 8009af4: 40020470 .word 0x40020470
  22243. 8009af8: 40020488 .word 0x40020488
  22244. 8009afc: 400204a0 .word 0x400204a0
  22245. 8009b00: 400204b8 .word 0x400204b8
  22246. 8009b04: 58025408 .word 0x58025408
  22247. 8009b08: 5802541c .word 0x5802541c
  22248. 8009b0c: 58025430 .word 0x58025430
  22249. 8009b10: 58025444 .word 0x58025444
  22250. 8009b14: 58025458 .word 0x58025458
  22251. 8009b18: 5802546c .word 0x5802546c
  22252. 8009b1c: 58025480 .word 0x58025480
  22253. 8009b20: 58025494 .word 0x58025494
  22254. 8009b24: 2300 movs r3, #0
  22255. 8009b26: 2b00 cmp r3, #0
  22256. 8009b28: d028 beq.n 8009b7c <HAL_DMA_Abort_IT+0x460>
  22257. {
  22258. /* disable the DMAMUX sync overrun IT */
  22259. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  22260. 8009b2a: 687b ldr r3, [r7, #4]
  22261. 8009b2c: 6e1b ldr r3, [r3, #96] @ 0x60
  22262. 8009b2e: 681a ldr r2, [r3, #0]
  22263. 8009b30: 687b ldr r3, [r7, #4]
  22264. 8009b32: 6e1b ldr r3, [r3, #96] @ 0x60
  22265. 8009b34: f422 7280 bic.w r2, r2, #256 @ 0x100
  22266. 8009b38: 601a str r2, [r3, #0]
  22267. /* Clear all flags */
  22268. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22269. 8009b3a: 687b ldr r3, [r7, #4]
  22270. 8009b3c: 6d9b ldr r3, [r3, #88] @ 0x58
  22271. 8009b3e: 60fb str r3, [r7, #12]
  22272. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  22273. 8009b40: 687b ldr r3, [r7, #4]
  22274. 8009b42: 6ddb ldr r3, [r3, #92] @ 0x5c
  22275. 8009b44: f003 031f and.w r3, r3, #31
  22276. 8009b48: 2201 movs r2, #1
  22277. 8009b4a: 409a lsls r2, r3
  22278. 8009b4c: 68fb ldr r3, [r7, #12]
  22279. 8009b4e: 605a str r2, [r3, #4]
  22280. /* Clear the DMAMUX synchro overrun flag */
  22281. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  22282. 8009b50: 687b ldr r3, [r7, #4]
  22283. 8009b52: 6e5b ldr r3, [r3, #100] @ 0x64
  22284. 8009b54: 687a ldr r2, [r7, #4]
  22285. 8009b56: 6e92 ldr r2, [r2, #104] @ 0x68
  22286. 8009b58: 605a str r2, [r3, #4]
  22287. if(hdma->DMAmuxRequestGen != 0U)
  22288. 8009b5a: 687b ldr r3, [r7, #4]
  22289. 8009b5c: 6edb ldr r3, [r3, #108] @ 0x6c
  22290. 8009b5e: 2b00 cmp r3, #0
  22291. 8009b60: d00c beq.n 8009b7c <HAL_DMA_Abort_IT+0x460>
  22292. {
  22293. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  22294. /* disable the request gen overrun IT */
  22295. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  22296. 8009b62: 687b ldr r3, [r7, #4]
  22297. 8009b64: 6edb ldr r3, [r3, #108] @ 0x6c
  22298. 8009b66: 681a ldr r2, [r3, #0]
  22299. 8009b68: 687b ldr r3, [r7, #4]
  22300. 8009b6a: 6edb ldr r3, [r3, #108] @ 0x6c
  22301. 8009b6c: f422 7280 bic.w r2, r2, #256 @ 0x100
  22302. 8009b70: 601a str r2, [r3, #0]
  22303. /* Clear the DMAMUX request generator overrun flag */
  22304. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  22305. 8009b72: 687b ldr r3, [r7, #4]
  22306. 8009b74: 6f1b ldr r3, [r3, #112] @ 0x70
  22307. 8009b76: 687a ldr r2, [r7, #4]
  22308. 8009b78: 6f52 ldr r2, [r2, #116] @ 0x74
  22309. 8009b7a: 605a str r2, [r3, #4]
  22310. }
  22311. }
  22312. /* Change the DMA state */
  22313. hdma->State = HAL_DMA_STATE_READY;
  22314. 8009b7c: 687b ldr r3, [r7, #4]
  22315. 8009b7e: 2201 movs r2, #1
  22316. 8009b80: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22317. /* Process Unlocked */
  22318. __HAL_UNLOCK(hdma);
  22319. 8009b84: 687b ldr r3, [r7, #4]
  22320. 8009b86: 2200 movs r2, #0
  22321. 8009b88: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22322. /* Call User Abort callback */
  22323. if(hdma->XferAbortCallback != NULL)
  22324. 8009b8c: 687b ldr r3, [r7, #4]
  22325. 8009b8e: 6d1b ldr r3, [r3, #80] @ 0x50
  22326. 8009b90: 2b00 cmp r3, #0
  22327. 8009b92: d003 beq.n 8009b9c <HAL_DMA_Abort_IT+0x480>
  22328. {
  22329. hdma->XferAbortCallback(hdma);
  22330. 8009b94: 687b ldr r3, [r7, #4]
  22331. 8009b96: 6d1b ldr r3, [r3, #80] @ 0x50
  22332. 8009b98: 6878 ldr r0, [r7, #4]
  22333. 8009b9a: 4798 blx r3
  22334. }
  22335. }
  22336. }
  22337. return HAL_OK;
  22338. 8009b9c: 2300 movs r3, #0
  22339. }
  22340. 8009b9e: 4618 mov r0, r3
  22341. 8009ba0: 3710 adds r7, #16
  22342. 8009ba2: 46bd mov sp, r7
  22343. 8009ba4: bd80 pop {r7, pc}
  22344. 8009ba6: bf00 nop
  22345. 08009ba8 <HAL_DMA_IRQHandler>:
  22346. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  22347. * the configuration information for the specified DMA Stream.
  22348. * @retval None
  22349. */
  22350. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  22351. {
  22352. 8009ba8: b580 push {r7, lr}
  22353. 8009baa: b08a sub sp, #40 @ 0x28
  22354. 8009bac: af00 add r7, sp, #0
  22355. 8009bae: 6078 str r0, [r7, #4]
  22356. uint32_t tmpisr_dma, tmpisr_bdma;
  22357. uint32_t ccr_reg;
  22358. __IO uint32_t count = 0U;
  22359. 8009bb0: 2300 movs r3, #0
  22360. 8009bb2: 60fb str r3, [r7, #12]
  22361. uint32_t timeout = SystemCoreClock / 9600U;
  22362. 8009bb4: 4b67 ldr r3, [pc, #412] @ (8009d54 <HAL_DMA_IRQHandler+0x1ac>)
  22363. 8009bb6: 681b ldr r3, [r3, #0]
  22364. 8009bb8: 4a67 ldr r2, [pc, #412] @ (8009d58 <HAL_DMA_IRQHandler+0x1b0>)
  22365. 8009bba: fba2 2303 umull r2, r3, r2, r3
  22366. 8009bbe: 0a9b lsrs r3, r3, #10
  22367. 8009bc0: 627b str r3, [r7, #36] @ 0x24
  22368. /* calculate DMA base and stream number */
  22369. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  22370. 8009bc2: 687b ldr r3, [r7, #4]
  22371. 8009bc4: 6d9b ldr r3, [r3, #88] @ 0x58
  22372. 8009bc6: 623b str r3, [r7, #32]
  22373. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22374. 8009bc8: 687b ldr r3, [r7, #4]
  22375. 8009bca: 6d9b ldr r3, [r3, #88] @ 0x58
  22376. 8009bcc: 61fb str r3, [r7, #28]
  22377. tmpisr_dma = regs_dma->ISR;
  22378. 8009bce: 6a3b ldr r3, [r7, #32]
  22379. 8009bd0: 681b ldr r3, [r3, #0]
  22380. 8009bd2: 61bb str r3, [r7, #24]
  22381. tmpisr_bdma = regs_bdma->ISR;
  22382. 8009bd4: 69fb ldr r3, [r7, #28]
  22383. 8009bd6: 681b ldr r3, [r3, #0]
  22384. 8009bd8: 617b str r3, [r7, #20]
  22385. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  22386. 8009bda: 687b ldr r3, [r7, #4]
  22387. 8009bdc: 681b ldr r3, [r3, #0]
  22388. 8009bde: 4a5f ldr r2, [pc, #380] @ (8009d5c <HAL_DMA_IRQHandler+0x1b4>)
  22389. 8009be0: 4293 cmp r3, r2
  22390. 8009be2: d04a beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22391. 8009be4: 687b ldr r3, [r7, #4]
  22392. 8009be6: 681b ldr r3, [r3, #0]
  22393. 8009be8: 4a5d ldr r2, [pc, #372] @ (8009d60 <HAL_DMA_IRQHandler+0x1b8>)
  22394. 8009bea: 4293 cmp r3, r2
  22395. 8009bec: d045 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22396. 8009bee: 687b ldr r3, [r7, #4]
  22397. 8009bf0: 681b ldr r3, [r3, #0]
  22398. 8009bf2: 4a5c ldr r2, [pc, #368] @ (8009d64 <HAL_DMA_IRQHandler+0x1bc>)
  22399. 8009bf4: 4293 cmp r3, r2
  22400. 8009bf6: d040 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22401. 8009bf8: 687b ldr r3, [r7, #4]
  22402. 8009bfa: 681b ldr r3, [r3, #0]
  22403. 8009bfc: 4a5a ldr r2, [pc, #360] @ (8009d68 <HAL_DMA_IRQHandler+0x1c0>)
  22404. 8009bfe: 4293 cmp r3, r2
  22405. 8009c00: d03b beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22406. 8009c02: 687b ldr r3, [r7, #4]
  22407. 8009c04: 681b ldr r3, [r3, #0]
  22408. 8009c06: 4a59 ldr r2, [pc, #356] @ (8009d6c <HAL_DMA_IRQHandler+0x1c4>)
  22409. 8009c08: 4293 cmp r3, r2
  22410. 8009c0a: d036 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22411. 8009c0c: 687b ldr r3, [r7, #4]
  22412. 8009c0e: 681b ldr r3, [r3, #0]
  22413. 8009c10: 4a57 ldr r2, [pc, #348] @ (8009d70 <HAL_DMA_IRQHandler+0x1c8>)
  22414. 8009c12: 4293 cmp r3, r2
  22415. 8009c14: d031 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22416. 8009c16: 687b ldr r3, [r7, #4]
  22417. 8009c18: 681b ldr r3, [r3, #0]
  22418. 8009c1a: 4a56 ldr r2, [pc, #344] @ (8009d74 <HAL_DMA_IRQHandler+0x1cc>)
  22419. 8009c1c: 4293 cmp r3, r2
  22420. 8009c1e: d02c beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22421. 8009c20: 687b ldr r3, [r7, #4]
  22422. 8009c22: 681b ldr r3, [r3, #0]
  22423. 8009c24: 4a54 ldr r2, [pc, #336] @ (8009d78 <HAL_DMA_IRQHandler+0x1d0>)
  22424. 8009c26: 4293 cmp r3, r2
  22425. 8009c28: d027 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22426. 8009c2a: 687b ldr r3, [r7, #4]
  22427. 8009c2c: 681b ldr r3, [r3, #0]
  22428. 8009c2e: 4a53 ldr r2, [pc, #332] @ (8009d7c <HAL_DMA_IRQHandler+0x1d4>)
  22429. 8009c30: 4293 cmp r3, r2
  22430. 8009c32: d022 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22431. 8009c34: 687b ldr r3, [r7, #4]
  22432. 8009c36: 681b ldr r3, [r3, #0]
  22433. 8009c38: 4a51 ldr r2, [pc, #324] @ (8009d80 <HAL_DMA_IRQHandler+0x1d8>)
  22434. 8009c3a: 4293 cmp r3, r2
  22435. 8009c3c: d01d beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22436. 8009c3e: 687b ldr r3, [r7, #4]
  22437. 8009c40: 681b ldr r3, [r3, #0]
  22438. 8009c42: 4a50 ldr r2, [pc, #320] @ (8009d84 <HAL_DMA_IRQHandler+0x1dc>)
  22439. 8009c44: 4293 cmp r3, r2
  22440. 8009c46: d018 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22441. 8009c48: 687b ldr r3, [r7, #4]
  22442. 8009c4a: 681b ldr r3, [r3, #0]
  22443. 8009c4c: 4a4e ldr r2, [pc, #312] @ (8009d88 <HAL_DMA_IRQHandler+0x1e0>)
  22444. 8009c4e: 4293 cmp r3, r2
  22445. 8009c50: d013 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22446. 8009c52: 687b ldr r3, [r7, #4]
  22447. 8009c54: 681b ldr r3, [r3, #0]
  22448. 8009c56: 4a4d ldr r2, [pc, #308] @ (8009d8c <HAL_DMA_IRQHandler+0x1e4>)
  22449. 8009c58: 4293 cmp r3, r2
  22450. 8009c5a: d00e beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22451. 8009c5c: 687b ldr r3, [r7, #4]
  22452. 8009c5e: 681b ldr r3, [r3, #0]
  22453. 8009c60: 4a4b ldr r2, [pc, #300] @ (8009d90 <HAL_DMA_IRQHandler+0x1e8>)
  22454. 8009c62: 4293 cmp r3, r2
  22455. 8009c64: d009 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22456. 8009c66: 687b ldr r3, [r7, #4]
  22457. 8009c68: 681b ldr r3, [r3, #0]
  22458. 8009c6a: 4a4a ldr r2, [pc, #296] @ (8009d94 <HAL_DMA_IRQHandler+0x1ec>)
  22459. 8009c6c: 4293 cmp r3, r2
  22460. 8009c6e: d004 beq.n 8009c7a <HAL_DMA_IRQHandler+0xd2>
  22461. 8009c70: 687b ldr r3, [r7, #4]
  22462. 8009c72: 681b ldr r3, [r3, #0]
  22463. 8009c74: 4a48 ldr r2, [pc, #288] @ (8009d98 <HAL_DMA_IRQHandler+0x1f0>)
  22464. 8009c76: 4293 cmp r3, r2
  22465. 8009c78: d101 bne.n 8009c7e <HAL_DMA_IRQHandler+0xd6>
  22466. 8009c7a: 2301 movs r3, #1
  22467. 8009c7c: e000 b.n 8009c80 <HAL_DMA_IRQHandler+0xd8>
  22468. 8009c7e: 2300 movs r3, #0
  22469. 8009c80: 2b00 cmp r3, #0
  22470. 8009c82: f000 842b beq.w 800a4dc <HAL_DMA_IRQHandler+0x934>
  22471. {
  22472. /* Transfer Error Interrupt management ***************************************/
  22473. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22474. 8009c86: 687b ldr r3, [r7, #4]
  22475. 8009c88: 6ddb ldr r3, [r3, #92] @ 0x5c
  22476. 8009c8a: f003 031f and.w r3, r3, #31
  22477. 8009c8e: 2208 movs r2, #8
  22478. 8009c90: 409a lsls r2, r3
  22479. 8009c92: 69bb ldr r3, [r7, #24]
  22480. 8009c94: 4013 ands r3, r2
  22481. 8009c96: 2b00 cmp r3, #0
  22482. 8009c98: f000 80a2 beq.w 8009de0 <HAL_DMA_IRQHandler+0x238>
  22483. {
  22484. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  22485. 8009c9c: 687b ldr r3, [r7, #4]
  22486. 8009c9e: 681b ldr r3, [r3, #0]
  22487. 8009ca0: 4a2e ldr r2, [pc, #184] @ (8009d5c <HAL_DMA_IRQHandler+0x1b4>)
  22488. 8009ca2: 4293 cmp r3, r2
  22489. 8009ca4: d04a beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22490. 8009ca6: 687b ldr r3, [r7, #4]
  22491. 8009ca8: 681b ldr r3, [r3, #0]
  22492. 8009caa: 4a2d ldr r2, [pc, #180] @ (8009d60 <HAL_DMA_IRQHandler+0x1b8>)
  22493. 8009cac: 4293 cmp r3, r2
  22494. 8009cae: d045 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22495. 8009cb0: 687b ldr r3, [r7, #4]
  22496. 8009cb2: 681b ldr r3, [r3, #0]
  22497. 8009cb4: 4a2b ldr r2, [pc, #172] @ (8009d64 <HAL_DMA_IRQHandler+0x1bc>)
  22498. 8009cb6: 4293 cmp r3, r2
  22499. 8009cb8: d040 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22500. 8009cba: 687b ldr r3, [r7, #4]
  22501. 8009cbc: 681b ldr r3, [r3, #0]
  22502. 8009cbe: 4a2a ldr r2, [pc, #168] @ (8009d68 <HAL_DMA_IRQHandler+0x1c0>)
  22503. 8009cc0: 4293 cmp r3, r2
  22504. 8009cc2: d03b beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22505. 8009cc4: 687b ldr r3, [r7, #4]
  22506. 8009cc6: 681b ldr r3, [r3, #0]
  22507. 8009cc8: 4a28 ldr r2, [pc, #160] @ (8009d6c <HAL_DMA_IRQHandler+0x1c4>)
  22508. 8009cca: 4293 cmp r3, r2
  22509. 8009ccc: d036 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22510. 8009cce: 687b ldr r3, [r7, #4]
  22511. 8009cd0: 681b ldr r3, [r3, #0]
  22512. 8009cd2: 4a27 ldr r2, [pc, #156] @ (8009d70 <HAL_DMA_IRQHandler+0x1c8>)
  22513. 8009cd4: 4293 cmp r3, r2
  22514. 8009cd6: d031 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22515. 8009cd8: 687b ldr r3, [r7, #4]
  22516. 8009cda: 681b ldr r3, [r3, #0]
  22517. 8009cdc: 4a25 ldr r2, [pc, #148] @ (8009d74 <HAL_DMA_IRQHandler+0x1cc>)
  22518. 8009cde: 4293 cmp r3, r2
  22519. 8009ce0: d02c beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22520. 8009ce2: 687b ldr r3, [r7, #4]
  22521. 8009ce4: 681b ldr r3, [r3, #0]
  22522. 8009ce6: 4a24 ldr r2, [pc, #144] @ (8009d78 <HAL_DMA_IRQHandler+0x1d0>)
  22523. 8009ce8: 4293 cmp r3, r2
  22524. 8009cea: d027 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22525. 8009cec: 687b ldr r3, [r7, #4]
  22526. 8009cee: 681b ldr r3, [r3, #0]
  22527. 8009cf0: 4a22 ldr r2, [pc, #136] @ (8009d7c <HAL_DMA_IRQHandler+0x1d4>)
  22528. 8009cf2: 4293 cmp r3, r2
  22529. 8009cf4: d022 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22530. 8009cf6: 687b ldr r3, [r7, #4]
  22531. 8009cf8: 681b ldr r3, [r3, #0]
  22532. 8009cfa: 4a21 ldr r2, [pc, #132] @ (8009d80 <HAL_DMA_IRQHandler+0x1d8>)
  22533. 8009cfc: 4293 cmp r3, r2
  22534. 8009cfe: d01d beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22535. 8009d00: 687b ldr r3, [r7, #4]
  22536. 8009d02: 681b ldr r3, [r3, #0]
  22537. 8009d04: 4a1f ldr r2, [pc, #124] @ (8009d84 <HAL_DMA_IRQHandler+0x1dc>)
  22538. 8009d06: 4293 cmp r3, r2
  22539. 8009d08: d018 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22540. 8009d0a: 687b ldr r3, [r7, #4]
  22541. 8009d0c: 681b ldr r3, [r3, #0]
  22542. 8009d0e: 4a1e ldr r2, [pc, #120] @ (8009d88 <HAL_DMA_IRQHandler+0x1e0>)
  22543. 8009d10: 4293 cmp r3, r2
  22544. 8009d12: d013 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22545. 8009d14: 687b ldr r3, [r7, #4]
  22546. 8009d16: 681b ldr r3, [r3, #0]
  22547. 8009d18: 4a1c ldr r2, [pc, #112] @ (8009d8c <HAL_DMA_IRQHandler+0x1e4>)
  22548. 8009d1a: 4293 cmp r3, r2
  22549. 8009d1c: d00e beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22550. 8009d1e: 687b ldr r3, [r7, #4]
  22551. 8009d20: 681b ldr r3, [r3, #0]
  22552. 8009d22: 4a1b ldr r2, [pc, #108] @ (8009d90 <HAL_DMA_IRQHandler+0x1e8>)
  22553. 8009d24: 4293 cmp r3, r2
  22554. 8009d26: d009 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22555. 8009d28: 687b ldr r3, [r7, #4]
  22556. 8009d2a: 681b ldr r3, [r3, #0]
  22557. 8009d2c: 4a19 ldr r2, [pc, #100] @ (8009d94 <HAL_DMA_IRQHandler+0x1ec>)
  22558. 8009d2e: 4293 cmp r3, r2
  22559. 8009d30: d004 beq.n 8009d3c <HAL_DMA_IRQHandler+0x194>
  22560. 8009d32: 687b ldr r3, [r7, #4]
  22561. 8009d34: 681b ldr r3, [r3, #0]
  22562. 8009d36: 4a18 ldr r2, [pc, #96] @ (8009d98 <HAL_DMA_IRQHandler+0x1f0>)
  22563. 8009d38: 4293 cmp r3, r2
  22564. 8009d3a: d12f bne.n 8009d9c <HAL_DMA_IRQHandler+0x1f4>
  22565. 8009d3c: 687b ldr r3, [r7, #4]
  22566. 8009d3e: 681b ldr r3, [r3, #0]
  22567. 8009d40: 681b ldr r3, [r3, #0]
  22568. 8009d42: f003 0304 and.w r3, r3, #4
  22569. 8009d46: 2b00 cmp r3, #0
  22570. 8009d48: bf14 ite ne
  22571. 8009d4a: 2301 movne r3, #1
  22572. 8009d4c: 2300 moveq r3, #0
  22573. 8009d4e: b2db uxtb r3, r3
  22574. 8009d50: e02e b.n 8009db0 <HAL_DMA_IRQHandler+0x208>
  22575. 8009d52: bf00 nop
  22576. 8009d54: 24000034 .word 0x24000034
  22577. 8009d58: 1b4e81b5 .word 0x1b4e81b5
  22578. 8009d5c: 40020010 .word 0x40020010
  22579. 8009d60: 40020028 .word 0x40020028
  22580. 8009d64: 40020040 .word 0x40020040
  22581. 8009d68: 40020058 .word 0x40020058
  22582. 8009d6c: 40020070 .word 0x40020070
  22583. 8009d70: 40020088 .word 0x40020088
  22584. 8009d74: 400200a0 .word 0x400200a0
  22585. 8009d78: 400200b8 .word 0x400200b8
  22586. 8009d7c: 40020410 .word 0x40020410
  22587. 8009d80: 40020428 .word 0x40020428
  22588. 8009d84: 40020440 .word 0x40020440
  22589. 8009d88: 40020458 .word 0x40020458
  22590. 8009d8c: 40020470 .word 0x40020470
  22591. 8009d90: 40020488 .word 0x40020488
  22592. 8009d94: 400204a0 .word 0x400204a0
  22593. 8009d98: 400204b8 .word 0x400204b8
  22594. 8009d9c: 687b ldr r3, [r7, #4]
  22595. 8009d9e: 681b ldr r3, [r3, #0]
  22596. 8009da0: 681b ldr r3, [r3, #0]
  22597. 8009da2: f003 0308 and.w r3, r3, #8
  22598. 8009da6: 2b00 cmp r3, #0
  22599. 8009da8: bf14 ite ne
  22600. 8009daa: 2301 movne r3, #1
  22601. 8009dac: 2300 moveq r3, #0
  22602. 8009dae: b2db uxtb r3, r3
  22603. 8009db0: 2b00 cmp r3, #0
  22604. 8009db2: d015 beq.n 8009de0 <HAL_DMA_IRQHandler+0x238>
  22605. {
  22606. /* Disable the transfer error interrupt */
  22607. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  22608. 8009db4: 687b ldr r3, [r7, #4]
  22609. 8009db6: 681b ldr r3, [r3, #0]
  22610. 8009db8: 681a ldr r2, [r3, #0]
  22611. 8009dba: 687b ldr r3, [r7, #4]
  22612. 8009dbc: 681b ldr r3, [r3, #0]
  22613. 8009dbe: f022 0204 bic.w r2, r2, #4
  22614. 8009dc2: 601a str r2, [r3, #0]
  22615. /* Clear the transfer error flag */
  22616. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22617. 8009dc4: 687b ldr r3, [r7, #4]
  22618. 8009dc6: 6ddb ldr r3, [r3, #92] @ 0x5c
  22619. 8009dc8: f003 031f and.w r3, r3, #31
  22620. 8009dcc: 2208 movs r2, #8
  22621. 8009dce: 409a lsls r2, r3
  22622. 8009dd0: 6a3b ldr r3, [r7, #32]
  22623. 8009dd2: 609a str r2, [r3, #8]
  22624. /* Update error code */
  22625. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  22626. 8009dd4: 687b ldr r3, [r7, #4]
  22627. 8009dd6: 6d5b ldr r3, [r3, #84] @ 0x54
  22628. 8009dd8: f043 0201 orr.w r2, r3, #1
  22629. 8009ddc: 687b ldr r3, [r7, #4]
  22630. 8009dde: 655a str r2, [r3, #84] @ 0x54
  22631. }
  22632. }
  22633. /* FIFO Error Interrupt management ******************************************/
  22634. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22635. 8009de0: 687b ldr r3, [r7, #4]
  22636. 8009de2: 6ddb ldr r3, [r3, #92] @ 0x5c
  22637. 8009de4: f003 031f and.w r3, r3, #31
  22638. 8009de8: 69ba ldr r2, [r7, #24]
  22639. 8009dea: fa22 f303 lsr.w r3, r2, r3
  22640. 8009dee: f003 0301 and.w r3, r3, #1
  22641. 8009df2: 2b00 cmp r3, #0
  22642. 8009df4: d06e beq.n 8009ed4 <HAL_DMA_IRQHandler+0x32c>
  22643. {
  22644. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  22645. 8009df6: 687b ldr r3, [r7, #4]
  22646. 8009df8: 681b ldr r3, [r3, #0]
  22647. 8009dfa: 4a69 ldr r2, [pc, #420] @ (8009fa0 <HAL_DMA_IRQHandler+0x3f8>)
  22648. 8009dfc: 4293 cmp r3, r2
  22649. 8009dfe: d04a beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22650. 8009e00: 687b ldr r3, [r7, #4]
  22651. 8009e02: 681b ldr r3, [r3, #0]
  22652. 8009e04: 4a67 ldr r2, [pc, #412] @ (8009fa4 <HAL_DMA_IRQHandler+0x3fc>)
  22653. 8009e06: 4293 cmp r3, r2
  22654. 8009e08: d045 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22655. 8009e0a: 687b ldr r3, [r7, #4]
  22656. 8009e0c: 681b ldr r3, [r3, #0]
  22657. 8009e0e: 4a66 ldr r2, [pc, #408] @ (8009fa8 <HAL_DMA_IRQHandler+0x400>)
  22658. 8009e10: 4293 cmp r3, r2
  22659. 8009e12: d040 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22660. 8009e14: 687b ldr r3, [r7, #4]
  22661. 8009e16: 681b ldr r3, [r3, #0]
  22662. 8009e18: 4a64 ldr r2, [pc, #400] @ (8009fac <HAL_DMA_IRQHandler+0x404>)
  22663. 8009e1a: 4293 cmp r3, r2
  22664. 8009e1c: d03b beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22665. 8009e1e: 687b ldr r3, [r7, #4]
  22666. 8009e20: 681b ldr r3, [r3, #0]
  22667. 8009e22: 4a63 ldr r2, [pc, #396] @ (8009fb0 <HAL_DMA_IRQHandler+0x408>)
  22668. 8009e24: 4293 cmp r3, r2
  22669. 8009e26: d036 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22670. 8009e28: 687b ldr r3, [r7, #4]
  22671. 8009e2a: 681b ldr r3, [r3, #0]
  22672. 8009e2c: 4a61 ldr r2, [pc, #388] @ (8009fb4 <HAL_DMA_IRQHandler+0x40c>)
  22673. 8009e2e: 4293 cmp r3, r2
  22674. 8009e30: d031 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22675. 8009e32: 687b ldr r3, [r7, #4]
  22676. 8009e34: 681b ldr r3, [r3, #0]
  22677. 8009e36: 4a60 ldr r2, [pc, #384] @ (8009fb8 <HAL_DMA_IRQHandler+0x410>)
  22678. 8009e38: 4293 cmp r3, r2
  22679. 8009e3a: d02c beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22680. 8009e3c: 687b ldr r3, [r7, #4]
  22681. 8009e3e: 681b ldr r3, [r3, #0]
  22682. 8009e40: 4a5e ldr r2, [pc, #376] @ (8009fbc <HAL_DMA_IRQHandler+0x414>)
  22683. 8009e42: 4293 cmp r3, r2
  22684. 8009e44: d027 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22685. 8009e46: 687b ldr r3, [r7, #4]
  22686. 8009e48: 681b ldr r3, [r3, #0]
  22687. 8009e4a: 4a5d ldr r2, [pc, #372] @ (8009fc0 <HAL_DMA_IRQHandler+0x418>)
  22688. 8009e4c: 4293 cmp r3, r2
  22689. 8009e4e: d022 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22690. 8009e50: 687b ldr r3, [r7, #4]
  22691. 8009e52: 681b ldr r3, [r3, #0]
  22692. 8009e54: 4a5b ldr r2, [pc, #364] @ (8009fc4 <HAL_DMA_IRQHandler+0x41c>)
  22693. 8009e56: 4293 cmp r3, r2
  22694. 8009e58: d01d beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22695. 8009e5a: 687b ldr r3, [r7, #4]
  22696. 8009e5c: 681b ldr r3, [r3, #0]
  22697. 8009e5e: 4a5a ldr r2, [pc, #360] @ (8009fc8 <HAL_DMA_IRQHandler+0x420>)
  22698. 8009e60: 4293 cmp r3, r2
  22699. 8009e62: d018 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22700. 8009e64: 687b ldr r3, [r7, #4]
  22701. 8009e66: 681b ldr r3, [r3, #0]
  22702. 8009e68: 4a58 ldr r2, [pc, #352] @ (8009fcc <HAL_DMA_IRQHandler+0x424>)
  22703. 8009e6a: 4293 cmp r3, r2
  22704. 8009e6c: d013 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22705. 8009e6e: 687b ldr r3, [r7, #4]
  22706. 8009e70: 681b ldr r3, [r3, #0]
  22707. 8009e72: 4a57 ldr r2, [pc, #348] @ (8009fd0 <HAL_DMA_IRQHandler+0x428>)
  22708. 8009e74: 4293 cmp r3, r2
  22709. 8009e76: d00e beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22710. 8009e78: 687b ldr r3, [r7, #4]
  22711. 8009e7a: 681b ldr r3, [r3, #0]
  22712. 8009e7c: 4a55 ldr r2, [pc, #340] @ (8009fd4 <HAL_DMA_IRQHandler+0x42c>)
  22713. 8009e7e: 4293 cmp r3, r2
  22714. 8009e80: d009 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22715. 8009e82: 687b ldr r3, [r7, #4]
  22716. 8009e84: 681b ldr r3, [r3, #0]
  22717. 8009e86: 4a54 ldr r2, [pc, #336] @ (8009fd8 <HAL_DMA_IRQHandler+0x430>)
  22718. 8009e88: 4293 cmp r3, r2
  22719. 8009e8a: d004 beq.n 8009e96 <HAL_DMA_IRQHandler+0x2ee>
  22720. 8009e8c: 687b ldr r3, [r7, #4]
  22721. 8009e8e: 681b ldr r3, [r3, #0]
  22722. 8009e90: 4a52 ldr r2, [pc, #328] @ (8009fdc <HAL_DMA_IRQHandler+0x434>)
  22723. 8009e92: 4293 cmp r3, r2
  22724. 8009e94: d10a bne.n 8009eac <HAL_DMA_IRQHandler+0x304>
  22725. 8009e96: 687b ldr r3, [r7, #4]
  22726. 8009e98: 681b ldr r3, [r3, #0]
  22727. 8009e9a: 695b ldr r3, [r3, #20]
  22728. 8009e9c: f003 0380 and.w r3, r3, #128 @ 0x80
  22729. 8009ea0: 2b00 cmp r3, #0
  22730. 8009ea2: bf14 ite ne
  22731. 8009ea4: 2301 movne r3, #1
  22732. 8009ea6: 2300 moveq r3, #0
  22733. 8009ea8: b2db uxtb r3, r3
  22734. 8009eaa: e003 b.n 8009eb4 <HAL_DMA_IRQHandler+0x30c>
  22735. 8009eac: 687b ldr r3, [r7, #4]
  22736. 8009eae: 681b ldr r3, [r3, #0]
  22737. 8009eb0: 681b ldr r3, [r3, #0]
  22738. 8009eb2: 2300 movs r3, #0
  22739. 8009eb4: 2b00 cmp r3, #0
  22740. 8009eb6: d00d beq.n 8009ed4 <HAL_DMA_IRQHandler+0x32c>
  22741. {
  22742. /* Clear the FIFO error flag */
  22743. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22744. 8009eb8: 687b ldr r3, [r7, #4]
  22745. 8009eba: 6ddb ldr r3, [r3, #92] @ 0x5c
  22746. 8009ebc: f003 031f and.w r3, r3, #31
  22747. 8009ec0: 2201 movs r2, #1
  22748. 8009ec2: 409a lsls r2, r3
  22749. 8009ec4: 6a3b ldr r3, [r7, #32]
  22750. 8009ec6: 609a str r2, [r3, #8]
  22751. /* Update error code */
  22752. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  22753. 8009ec8: 687b ldr r3, [r7, #4]
  22754. 8009eca: 6d5b ldr r3, [r3, #84] @ 0x54
  22755. 8009ecc: f043 0202 orr.w r2, r3, #2
  22756. 8009ed0: 687b ldr r3, [r7, #4]
  22757. 8009ed2: 655a str r2, [r3, #84] @ 0x54
  22758. }
  22759. }
  22760. /* Direct Mode Error Interrupt management ***********************************/
  22761. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22762. 8009ed4: 687b ldr r3, [r7, #4]
  22763. 8009ed6: 6ddb ldr r3, [r3, #92] @ 0x5c
  22764. 8009ed8: f003 031f and.w r3, r3, #31
  22765. 8009edc: 2204 movs r2, #4
  22766. 8009ede: 409a lsls r2, r3
  22767. 8009ee0: 69bb ldr r3, [r7, #24]
  22768. 8009ee2: 4013 ands r3, r2
  22769. 8009ee4: 2b00 cmp r3, #0
  22770. 8009ee6: f000 808f beq.w 800a008 <HAL_DMA_IRQHandler+0x460>
  22771. {
  22772. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  22773. 8009eea: 687b ldr r3, [r7, #4]
  22774. 8009eec: 681b ldr r3, [r3, #0]
  22775. 8009eee: 4a2c ldr r2, [pc, #176] @ (8009fa0 <HAL_DMA_IRQHandler+0x3f8>)
  22776. 8009ef0: 4293 cmp r3, r2
  22777. 8009ef2: d04a beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22778. 8009ef4: 687b ldr r3, [r7, #4]
  22779. 8009ef6: 681b ldr r3, [r3, #0]
  22780. 8009ef8: 4a2a ldr r2, [pc, #168] @ (8009fa4 <HAL_DMA_IRQHandler+0x3fc>)
  22781. 8009efa: 4293 cmp r3, r2
  22782. 8009efc: d045 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22783. 8009efe: 687b ldr r3, [r7, #4]
  22784. 8009f00: 681b ldr r3, [r3, #0]
  22785. 8009f02: 4a29 ldr r2, [pc, #164] @ (8009fa8 <HAL_DMA_IRQHandler+0x400>)
  22786. 8009f04: 4293 cmp r3, r2
  22787. 8009f06: d040 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22788. 8009f08: 687b ldr r3, [r7, #4]
  22789. 8009f0a: 681b ldr r3, [r3, #0]
  22790. 8009f0c: 4a27 ldr r2, [pc, #156] @ (8009fac <HAL_DMA_IRQHandler+0x404>)
  22791. 8009f0e: 4293 cmp r3, r2
  22792. 8009f10: d03b beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22793. 8009f12: 687b ldr r3, [r7, #4]
  22794. 8009f14: 681b ldr r3, [r3, #0]
  22795. 8009f16: 4a26 ldr r2, [pc, #152] @ (8009fb0 <HAL_DMA_IRQHandler+0x408>)
  22796. 8009f18: 4293 cmp r3, r2
  22797. 8009f1a: d036 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22798. 8009f1c: 687b ldr r3, [r7, #4]
  22799. 8009f1e: 681b ldr r3, [r3, #0]
  22800. 8009f20: 4a24 ldr r2, [pc, #144] @ (8009fb4 <HAL_DMA_IRQHandler+0x40c>)
  22801. 8009f22: 4293 cmp r3, r2
  22802. 8009f24: d031 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22803. 8009f26: 687b ldr r3, [r7, #4]
  22804. 8009f28: 681b ldr r3, [r3, #0]
  22805. 8009f2a: 4a23 ldr r2, [pc, #140] @ (8009fb8 <HAL_DMA_IRQHandler+0x410>)
  22806. 8009f2c: 4293 cmp r3, r2
  22807. 8009f2e: d02c beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22808. 8009f30: 687b ldr r3, [r7, #4]
  22809. 8009f32: 681b ldr r3, [r3, #0]
  22810. 8009f34: 4a21 ldr r2, [pc, #132] @ (8009fbc <HAL_DMA_IRQHandler+0x414>)
  22811. 8009f36: 4293 cmp r3, r2
  22812. 8009f38: d027 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22813. 8009f3a: 687b ldr r3, [r7, #4]
  22814. 8009f3c: 681b ldr r3, [r3, #0]
  22815. 8009f3e: 4a20 ldr r2, [pc, #128] @ (8009fc0 <HAL_DMA_IRQHandler+0x418>)
  22816. 8009f40: 4293 cmp r3, r2
  22817. 8009f42: d022 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22818. 8009f44: 687b ldr r3, [r7, #4]
  22819. 8009f46: 681b ldr r3, [r3, #0]
  22820. 8009f48: 4a1e ldr r2, [pc, #120] @ (8009fc4 <HAL_DMA_IRQHandler+0x41c>)
  22821. 8009f4a: 4293 cmp r3, r2
  22822. 8009f4c: d01d beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22823. 8009f4e: 687b ldr r3, [r7, #4]
  22824. 8009f50: 681b ldr r3, [r3, #0]
  22825. 8009f52: 4a1d ldr r2, [pc, #116] @ (8009fc8 <HAL_DMA_IRQHandler+0x420>)
  22826. 8009f54: 4293 cmp r3, r2
  22827. 8009f56: d018 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22828. 8009f58: 687b ldr r3, [r7, #4]
  22829. 8009f5a: 681b ldr r3, [r3, #0]
  22830. 8009f5c: 4a1b ldr r2, [pc, #108] @ (8009fcc <HAL_DMA_IRQHandler+0x424>)
  22831. 8009f5e: 4293 cmp r3, r2
  22832. 8009f60: d013 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22833. 8009f62: 687b ldr r3, [r7, #4]
  22834. 8009f64: 681b ldr r3, [r3, #0]
  22835. 8009f66: 4a1a ldr r2, [pc, #104] @ (8009fd0 <HAL_DMA_IRQHandler+0x428>)
  22836. 8009f68: 4293 cmp r3, r2
  22837. 8009f6a: d00e beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22838. 8009f6c: 687b ldr r3, [r7, #4]
  22839. 8009f6e: 681b ldr r3, [r3, #0]
  22840. 8009f70: 4a18 ldr r2, [pc, #96] @ (8009fd4 <HAL_DMA_IRQHandler+0x42c>)
  22841. 8009f72: 4293 cmp r3, r2
  22842. 8009f74: d009 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22843. 8009f76: 687b ldr r3, [r7, #4]
  22844. 8009f78: 681b ldr r3, [r3, #0]
  22845. 8009f7a: 4a17 ldr r2, [pc, #92] @ (8009fd8 <HAL_DMA_IRQHandler+0x430>)
  22846. 8009f7c: 4293 cmp r3, r2
  22847. 8009f7e: d004 beq.n 8009f8a <HAL_DMA_IRQHandler+0x3e2>
  22848. 8009f80: 687b ldr r3, [r7, #4]
  22849. 8009f82: 681b ldr r3, [r3, #0]
  22850. 8009f84: 4a15 ldr r2, [pc, #84] @ (8009fdc <HAL_DMA_IRQHandler+0x434>)
  22851. 8009f86: 4293 cmp r3, r2
  22852. 8009f88: d12a bne.n 8009fe0 <HAL_DMA_IRQHandler+0x438>
  22853. 8009f8a: 687b ldr r3, [r7, #4]
  22854. 8009f8c: 681b ldr r3, [r3, #0]
  22855. 8009f8e: 681b ldr r3, [r3, #0]
  22856. 8009f90: f003 0302 and.w r3, r3, #2
  22857. 8009f94: 2b00 cmp r3, #0
  22858. 8009f96: bf14 ite ne
  22859. 8009f98: 2301 movne r3, #1
  22860. 8009f9a: 2300 moveq r3, #0
  22861. 8009f9c: b2db uxtb r3, r3
  22862. 8009f9e: e023 b.n 8009fe8 <HAL_DMA_IRQHandler+0x440>
  22863. 8009fa0: 40020010 .word 0x40020010
  22864. 8009fa4: 40020028 .word 0x40020028
  22865. 8009fa8: 40020040 .word 0x40020040
  22866. 8009fac: 40020058 .word 0x40020058
  22867. 8009fb0: 40020070 .word 0x40020070
  22868. 8009fb4: 40020088 .word 0x40020088
  22869. 8009fb8: 400200a0 .word 0x400200a0
  22870. 8009fbc: 400200b8 .word 0x400200b8
  22871. 8009fc0: 40020410 .word 0x40020410
  22872. 8009fc4: 40020428 .word 0x40020428
  22873. 8009fc8: 40020440 .word 0x40020440
  22874. 8009fcc: 40020458 .word 0x40020458
  22875. 8009fd0: 40020470 .word 0x40020470
  22876. 8009fd4: 40020488 .word 0x40020488
  22877. 8009fd8: 400204a0 .word 0x400204a0
  22878. 8009fdc: 400204b8 .word 0x400204b8
  22879. 8009fe0: 687b ldr r3, [r7, #4]
  22880. 8009fe2: 681b ldr r3, [r3, #0]
  22881. 8009fe4: 681b ldr r3, [r3, #0]
  22882. 8009fe6: 2300 movs r3, #0
  22883. 8009fe8: 2b00 cmp r3, #0
  22884. 8009fea: d00d beq.n 800a008 <HAL_DMA_IRQHandler+0x460>
  22885. {
  22886. /* Clear the direct mode error flag */
  22887. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22888. 8009fec: 687b ldr r3, [r7, #4]
  22889. 8009fee: 6ddb ldr r3, [r3, #92] @ 0x5c
  22890. 8009ff0: f003 031f and.w r3, r3, #31
  22891. 8009ff4: 2204 movs r2, #4
  22892. 8009ff6: 409a lsls r2, r3
  22893. 8009ff8: 6a3b ldr r3, [r7, #32]
  22894. 8009ffa: 609a str r2, [r3, #8]
  22895. /* Update error code */
  22896. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  22897. 8009ffc: 687b ldr r3, [r7, #4]
  22898. 8009ffe: 6d5b ldr r3, [r3, #84] @ 0x54
  22899. 800a000: f043 0204 orr.w r2, r3, #4
  22900. 800a004: 687b ldr r3, [r7, #4]
  22901. 800a006: 655a str r2, [r3, #84] @ 0x54
  22902. }
  22903. }
  22904. /* Half Transfer Complete Interrupt management ******************************/
  22905. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22906. 800a008: 687b ldr r3, [r7, #4]
  22907. 800a00a: 6ddb ldr r3, [r3, #92] @ 0x5c
  22908. 800a00c: f003 031f and.w r3, r3, #31
  22909. 800a010: 2210 movs r2, #16
  22910. 800a012: 409a lsls r2, r3
  22911. 800a014: 69bb ldr r3, [r7, #24]
  22912. 800a016: 4013 ands r3, r2
  22913. 800a018: 2b00 cmp r3, #0
  22914. 800a01a: f000 80a6 beq.w 800a16a <HAL_DMA_IRQHandler+0x5c2>
  22915. {
  22916. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  22917. 800a01e: 687b ldr r3, [r7, #4]
  22918. 800a020: 681b ldr r3, [r3, #0]
  22919. 800a022: 4a85 ldr r2, [pc, #532] @ (800a238 <HAL_DMA_IRQHandler+0x690>)
  22920. 800a024: 4293 cmp r3, r2
  22921. 800a026: d04a beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22922. 800a028: 687b ldr r3, [r7, #4]
  22923. 800a02a: 681b ldr r3, [r3, #0]
  22924. 800a02c: 4a83 ldr r2, [pc, #524] @ (800a23c <HAL_DMA_IRQHandler+0x694>)
  22925. 800a02e: 4293 cmp r3, r2
  22926. 800a030: d045 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22927. 800a032: 687b ldr r3, [r7, #4]
  22928. 800a034: 681b ldr r3, [r3, #0]
  22929. 800a036: 4a82 ldr r2, [pc, #520] @ (800a240 <HAL_DMA_IRQHandler+0x698>)
  22930. 800a038: 4293 cmp r3, r2
  22931. 800a03a: d040 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22932. 800a03c: 687b ldr r3, [r7, #4]
  22933. 800a03e: 681b ldr r3, [r3, #0]
  22934. 800a040: 4a80 ldr r2, [pc, #512] @ (800a244 <HAL_DMA_IRQHandler+0x69c>)
  22935. 800a042: 4293 cmp r3, r2
  22936. 800a044: d03b beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22937. 800a046: 687b ldr r3, [r7, #4]
  22938. 800a048: 681b ldr r3, [r3, #0]
  22939. 800a04a: 4a7f ldr r2, [pc, #508] @ (800a248 <HAL_DMA_IRQHandler+0x6a0>)
  22940. 800a04c: 4293 cmp r3, r2
  22941. 800a04e: d036 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22942. 800a050: 687b ldr r3, [r7, #4]
  22943. 800a052: 681b ldr r3, [r3, #0]
  22944. 800a054: 4a7d ldr r2, [pc, #500] @ (800a24c <HAL_DMA_IRQHandler+0x6a4>)
  22945. 800a056: 4293 cmp r3, r2
  22946. 800a058: d031 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22947. 800a05a: 687b ldr r3, [r7, #4]
  22948. 800a05c: 681b ldr r3, [r3, #0]
  22949. 800a05e: 4a7c ldr r2, [pc, #496] @ (800a250 <HAL_DMA_IRQHandler+0x6a8>)
  22950. 800a060: 4293 cmp r3, r2
  22951. 800a062: d02c beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22952. 800a064: 687b ldr r3, [r7, #4]
  22953. 800a066: 681b ldr r3, [r3, #0]
  22954. 800a068: 4a7a ldr r2, [pc, #488] @ (800a254 <HAL_DMA_IRQHandler+0x6ac>)
  22955. 800a06a: 4293 cmp r3, r2
  22956. 800a06c: d027 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22957. 800a06e: 687b ldr r3, [r7, #4]
  22958. 800a070: 681b ldr r3, [r3, #0]
  22959. 800a072: 4a79 ldr r2, [pc, #484] @ (800a258 <HAL_DMA_IRQHandler+0x6b0>)
  22960. 800a074: 4293 cmp r3, r2
  22961. 800a076: d022 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22962. 800a078: 687b ldr r3, [r7, #4]
  22963. 800a07a: 681b ldr r3, [r3, #0]
  22964. 800a07c: 4a77 ldr r2, [pc, #476] @ (800a25c <HAL_DMA_IRQHandler+0x6b4>)
  22965. 800a07e: 4293 cmp r3, r2
  22966. 800a080: d01d beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22967. 800a082: 687b ldr r3, [r7, #4]
  22968. 800a084: 681b ldr r3, [r3, #0]
  22969. 800a086: 4a76 ldr r2, [pc, #472] @ (800a260 <HAL_DMA_IRQHandler+0x6b8>)
  22970. 800a088: 4293 cmp r3, r2
  22971. 800a08a: d018 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22972. 800a08c: 687b ldr r3, [r7, #4]
  22973. 800a08e: 681b ldr r3, [r3, #0]
  22974. 800a090: 4a74 ldr r2, [pc, #464] @ (800a264 <HAL_DMA_IRQHandler+0x6bc>)
  22975. 800a092: 4293 cmp r3, r2
  22976. 800a094: d013 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22977. 800a096: 687b ldr r3, [r7, #4]
  22978. 800a098: 681b ldr r3, [r3, #0]
  22979. 800a09a: 4a73 ldr r2, [pc, #460] @ (800a268 <HAL_DMA_IRQHandler+0x6c0>)
  22980. 800a09c: 4293 cmp r3, r2
  22981. 800a09e: d00e beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22982. 800a0a0: 687b ldr r3, [r7, #4]
  22983. 800a0a2: 681b ldr r3, [r3, #0]
  22984. 800a0a4: 4a71 ldr r2, [pc, #452] @ (800a26c <HAL_DMA_IRQHandler+0x6c4>)
  22985. 800a0a6: 4293 cmp r3, r2
  22986. 800a0a8: d009 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22987. 800a0aa: 687b ldr r3, [r7, #4]
  22988. 800a0ac: 681b ldr r3, [r3, #0]
  22989. 800a0ae: 4a70 ldr r2, [pc, #448] @ (800a270 <HAL_DMA_IRQHandler+0x6c8>)
  22990. 800a0b0: 4293 cmp r3, r2
  22991. 800a0b2: d004 beq.n 800a0be <HAL_DMA_IRQHandler+0x516>
  22992. 800a0b4: 687b ldr r3, [r7, #4]
  22993. 800a0b6: 681b ldr r3, [r3, #0]
  22994. 800a0b8: 4a6e ldr r2, [pc, #440] @ (800a274 <HAL_DMA_IRQHandler+0x6cc>)
  22995. 800a0ba: 4293 cmp r3, r2
  22996. 800a0bc: d10a bne.n 800a0d4 <HAL_DMA_IRQHandler+0x52c>
  22997. 800a0be: 687b ldr r3, [r7, #4]
  22998. 800a0c0: 681b ldr r3, [r3, #0]
  22999. 800a0c2: 681b ldr r3, [r3, #0]
  23000. 800a0c4: f003 0308 and.w r3, r3, #8
  23001. 800a0c8: 2b00 cmp r3, #0
  23002. 800a0ca: bf14 ite ne
  23003. 800a0cc: 2301 movne r3, #1
  23004. 800a0ce: 2300 moveq r3, #0
  23005. 800a0d0: b2db uxtb r3, r3
  23006. 800a0d2: e009 b.n 800a0e8 <HAL_DMA_IRQHandler+0x540>
  23007. 800a0d4: 687b ldr r3, [r7, #4]
  23008. 800a0d6: 681b ldr r3, [r3, #0]
  23009. 800a0d8: 681b ldr r3, [r3, #0]
  23010. 800a0da: f003 0304 and.w r3, r3, #4
  23011. 800a0de: 2b00 cmp r3, #0
  23012. 800a0e0: bf14 ite ne
  23013. 800a0e2: 2301 movne r3, #1
  23014. 800a0e4: 2300 moveq r3, #0
  23015. 800a0e6: b2db uxtb r3, r3
  23016. 800a0e8: 2b00 cmp r3, #0
  23017. 800a0ea: d03e beq.n 800a16a <HAL_DMA_IRQHandler+0x5c2>
  23018. {
  23019. /* Clear the half transfer complete flag */
  23020. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  23021. 800a0ec: 687b ldr r3, [r7, #4]
  23022. 800a0ee: 6ddb ldr r3, [r3, #92] @ 0x5c
  23023. 800a0f0: f003 031f and.w r3, r3, #31
  23024. 800a0f4: 2210 movs r2, #16
  23025. 800a0f6: 409a lsls r2, r3
  23026. 800a0f8: 6a3b ldr r3, [r7, #32]
  23027. 800a0fa: 609a str r2, [r3, #8]
  23028. /* Multi_Buffering mode enabled */
  23029. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23030. 800a0fc: 687b ldr r3, [r7, #4]
  23031. 800a0fe: 681b ldr r3, [r3, #0]
  23032. 800a100: 681b ldr r3, [r3, #0]
  23033. 800a102: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23034. 800a106: 2b00 cmp r3, #0
  23035. 800a108: d018 beq.n 800a13c <HAL_DMA_IRQHandler+0x594>
  23036. {
  23037. /* Current memory buffer used is Memory 0 */
  23038. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23039. 800a10a: 687b ldr r3, [r7, #4]
  23040. 800a10c: 681b ldr r3, [r3, #0]
  23041. 800a10e: 681b ldr r3, [r3, #0]
  23042. 800a110: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23043. 800a114: 2b00 cmp r3, #0
  23044. 800a116: d108 bne.n 800a12a <HAL_DMA_IRQHandler+0x582>
  23045. {
  23046. if(hdma->XferHalfCpltCallback != NULL)
  23047. 800a118: 687b ldr r3, [r7, #4]
  23048. 800a11a: 6c1b ldr r3, [r3, #64] @ 0x40
  23049. 800a11c: 2b00 cmp r3, #0
  23050. 800a11e: d024 beq.n 800a16a <HAL_DMA_IRQHandler+0x5c2>
  23051. {
  23052. /* Half transfer callback */
  23053. hdma->XferHalfCpltCallback(hdma);
  23054. 800a120: 687b ldr r3, [r7, #4]
  23055. 800a122: 6c1b ldr r3, [r3, #64] @ 0x40
  23056. 800a124: 6878 ldr r0, [r7, #4]
  23057. 800a126: 4798 blx r3
  23058. 800a128: e01f b.n 800a16a <HAL_DMA_IRQHandler+0x5c2>
  23059. }
  23060. }
  23061. /* Current memory buffer used is Memory 1 */
  23062. else
  23063. {
  23064. if(hdma->XferM1HalfCpltCallback != NULL)
  23065. 800a12a: 687b ldr r3, [r7, #4]
  23066. 800a12c: 6c9b ldr r3, [r3, #72] @ 0x48
  23067. 800a12e: 2b00 cmp r3, #0
  23068. 800a130: d01b beq.n 800a16a <HAL_DMA_IRQHandler+0x5c2>
  23069. {
  23070. /* Half transfer callback */
  23071. hdma->XferM1HalfCpltCallback(hdma);
  23072. 800a132: 687b ldr r3, [r7, #4]
  23073. 800a134: 6c9b ldr r3, [r3, #72] @ 0x48
  23074. 800a136: 6878 ldr r0, [r7, #4]
  23075. 800a138: 4798 blx r3
  23076. 800a13a: e016 b.n 800a16a <HAL_DMA_IRQHandler+0x5c2>
  23077. }
  23078. }
  23079. else
  23080. {
  23081. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  23082. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23083. 800a13c: 687b ldr r3, [r7, #4]
  23084. 800a13e: 681b ldr r3, [r3, #0]
  23085. 800a140: 681b ldr r3, [r3, #0]
  23086. 800a142: f403 7380 and.w r3, r3, #256 @ 0x100
  23087. 800a146: 2b00 cmp r3, #0
  23088. 800a148: d107 bne.n 800a15a <HAL_DMA_IRQHandler+0x5b2>
  23089. {
  23090. /* Disable the half transfer interrupt */
  23091. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23092. 800a14a: 687b ldr r3, [r7, #4]
  23093. 800a14c: 681b ldr r3, [r3, #0]
  23094. 800a14e: 681a ldr r2, [r3, #0]
  23095. 800a150: 687b ldr r3, [r7, #4]
  23096. 800a152: 681b ldr r3, [r3, #0]
  23097. 800a154: f022 0208 bic.w r2, r2, #8
  23098. 800a158: 601a str r2, [r3, #0]
  23099. }
  23100. if(hdma->XferHalfCpltCallback != NULL)
  23101. 800a15a: 687b ldr r3, [r7, #4]
  23102. 800a15c: 6c1b ldr r3, [r3, #64] @ 0x40
  23103. 800a15e: 2b00 cmp r3, #0
  23104. 800a160: d003 beq.n 800a16a <HAL_DMA_IRQHandler+0x5c2>
  23105. {
  23106. /* Half transfer callback */
  23107. hdma->XferHalfCpltCallback(hdma);
  23108. 800a162: 687b ldr r3, [r7, #4]
  23109. 800a164: 6c1b ldr r3, [r3, #64] @ 0x40
  23110. 800a166: 6878 ldr r0, [r7, #4]
  23111. 800a168: 4798 blx r3
  23112. }
  23113. }
  23114. }
  23115. }
  23116. /* Transfer Complete Interrupt management ***********************************/
  23117. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  23118. 800a16a: 687b ldr r3, [r7, #4]
  23119. 800a16c: 6ddb ldr r3, [r3, #92] @ 0x5c
  23120. 800a16e: f003 031f and.w r3, r3, #31
  23121. 800a172: 2220 movs r2, #32
  23122. 800a174: 409a lsls r2, r3
  23123. 800a176: 69bb ldr r3, [r7, #24]
  23124. 800a178: 4013 ands r3, r2
  23125. 800a17a: 2b00 cmp r3, #0
  23126. 800a17c: f000 8110 beq.w 800a3a0 <HAL_DMA_IRQHandler+0x7f8>
  23127. {
  23128. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  23129. 800a180: 687b ldr r3, [r7, #4]
  23130. 800a182: 681b ldr r3, [r3, #0]
  23131. 800a184: 4a2c ldr r2, [pc, #176] @ (800a238 <HAL_DMA_IRQHandler+0x690>)
  23132. 800a186: 4293 cmp r3, r2
  23133. 800a188: d04a beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23134. 800a18a: 687b ldr r3, [r7, #4]
  23135. 800a18c: 681b ldr r3, [r3, #0]
  23136. 800a18e: 4a2b ldr r2, [pc, #172] @ (800a23c <HAL_DMA_IRQHandler+0x694>)
  23137. 800a190: 4293 cmp r3, r2
  23138. 800a192: d045 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23139. 800a194: 687b ldr r3, [r7, #4]
  23140. 800a196: 681b ldr r3, [r3, #0]
  23141. 800a198: 4a29 ldr r2, [pc, #164] @ (800a240 <HAL_DMA_IRQHandler+0x698>)
  23142. 800a19a: 4293 cmp r3, r2
  23143. 800a19c: d040 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23144. 800a19e: 687b ldr r3, [r7, #4]
  23145. 800a1a0: 681b ldr r3, [r3, #0]
  23146. 800a1a2: 4a28 ldr r2, [pc, #160] @ (800a244 <HAL_DMA_IRQHandler+0x69c>)
  23147. 800a1a4: 4293 cmp r3, r2
  23148. 800a1a6: d03b beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23149. 800a1a8: 687b ldr r3, [r7, #4]
  23150. 800a1aa: 681b ldr r3, [r3, #0]
  23151. 800a1ac: 4a26 ldr r2, [pc, #152] @ (800a248 <HAL_DMA_IRQHandler+0x6a0>)
  23152. 800a1ae: 4293 cmp r3, r2
  23153. 800a1b0: d036 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23154. 800a1b2: 687b ldr r3, [r7, #4]
  23155. 800a1b4: 681b ldr r3, [r3, #0]
  23156. 800a1b6: 4a25 ldr r2, [pc, #148] @ (800a24c <HAL_DMA_IRQHandler+0x6a4>)
  23157. 800a1b8: 4293 cmp r3, r2
  23158. 800a1ba: d031 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23159. 800a1bc: 687b ldr r3, [r7, #4]
  23160. 800a1be: 681b ldr r3, [r3, #0]
  23161. 800a1c0: 4a23 ldr r2, [pc, #140] @ (800a250 <HAL_DMA_IRQHandler+0x6a8>)
  23162. 800a1c2: 4293 cmp r3, r2
  23163. 800a1c4: d02c beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23164. 800a1c6: 687b ldr r3, [r7, #4]
  23165. 800a1c8: 681b ldr r3, [r3, #0]
  23166. 800a1ca: 4a22 ldr r2, [pc, #136] @ (800a254 <HAL_DMA_IRQHandler+0x6ac>)
  23167. 800a1cc: 4293 cmp r3, r2
  23168. 800a1ce: d027 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23169. 800a1d0: 687b ldr r3, [r7, #4]
  23170. 800a1d2: 681b ldr r3, [r3, #0]
  23171. 800a1d4: 4a20 ldr r2, [pc, #128] @ (800a258 <HAL_DMA_IRQHandler+0x6b0>)
  23172. 800a1d6: 4293 cmp r3, r2
  23173. 800a1d8: d022 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23174. 800a1da: 687b ldr r3, [r7, #4]
  23175. 800a1dc: 681b ldr r3, [r3, #0]
  23176. 800a1de: 4a1f ldr r2, [pc, #124] @ (800a25c <HAL_DMA_IRQHandler+0x6b4>)
  23177. 800a1e0: 4293 cmp r3, r2
  23178. 800a1e2: d01d beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23179. 800a1e4: 687b ldr r3, [r7, #4]
  23180. 800a1e6: 681b ldr r3, [r3, #0]
  23181. 800a1e8: 4a1d ldr r2, [pc, #116] @ (800a260 <HAL_DMA_IRQHandler+0x6b8>)
  23182. 800a1ea: 4293 cmp r3, r2
  23183. 800a1ec: d018 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23184. 800a1ee: 687b ldr r3, [r7, #4]
  23185. 800a1f0: 681b ldr r3, [r3, #0]
  23186. 800a1f2: 4a1c ldr r2, [pc, #112] @ (800a264 <HAL_DMA_IRQHandler+0x6bc>)
  23187. 800a1f4: 4293 cmp r3, r2
  23188. 800a1f6: d013 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23189. 800a1f8: 687b ldr r3, [r7, #4]
  23190. 800a1fa: 681b ldr r3, [r3, #0]
  23191. 800a1fc: 4a1a ldr r2, [pc, #104] @ (800a268 <HAL_DMA_IRQHandler+0x6c0>)
  23192. 800a1fe: 4293 cmp r3, r2
  23193. 800a200: d00e beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23194. 800a202: 687b ldr r3, [r7, #4]
  23195. 800a204: 681b ldr r3, [r3, #0]
  23196. 800a206: 4a19 ldr r2, [pc, #100] @ (800a26c <HAL_DMA_IRQHandler+0x6c4>)
  23197. 800a208: 4293 cmp r3, r2
  23198. 800a20a: d009 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23199. 800a20c: 687b ldr r3, [r7, #4]
  23200. 800a20e: 681b ldr r3, [r3, #0]
  23201. 800a210: 4a17 ldr r2, [pc, #92] @ (800a270 <HAL_DMA_IRQHandler+0x6c8>)
  23202. 800a212: 4293 cmp r3, r2
  23203. 800a214: d004 beq.n 800a220 <HAL_DMA_IRQHandler+0x678>
  23204. 800a216: 687b ldr r3, [r7, #4]
  23205. 800a218: 681b ldr r3, [r3, #0]
  23206. 800a21a: 4a16 ldr r2, [pc, #88] @ (800a274 <HAL_DMA_IRQHandler+0x6cc>)
  23207. 800a21c: 4293 cmp r3, r2
  23208. 800a21e: d12b bne.n 800a278 <HAL_DMA_IRQHandler+0x6d0>
  23209. 800a220: 687b ldr r3, [r7, #4]
  23210. 800a222: 681b ldr r3, [r3, #0]
  23211. 800a224: 681b ldr r3, [r3, #0]
  23212. 800a226: f003 0310 and.w r3, r3, #16
  23213. 800a22a: 2b00 cmp r3, #0
  23214. 800a22c: bf14 ite ne
  23215. 800a22e: 2301 movne r3, #1
  23216. 800a230: 2300 moveq r3, #0
  23217. 800a232: b2db uxtb r3, r3
  23218. 800a234: e02a b.n 800a28c <HAL_DMA_IRQHandler+0x6e4>
  23219. 800a236: bf00 nop
  23220. 800a238: 40020010 .word 0x40020010
  23221. 800a23c: 40020028 .word 0x40020028
  23222. 800a240: 40020040 .word 0x40020040
  23223. 800a244: 40020058 .word 0x40020058
  23224. 800a248: 40020070 .word 0x40020070
  23225. 800a24c: 40020088 .word 0x40020088
  23226. 800a250: 400200a0 .word 0x400200a0
  23227. 800a254: 400200b8 .word 0x400200b8
  23228. 800a258: 40020410 .word 0x40020410
  23229. 800a25c: 40020428 .word 0x40020428
  23230. 800a260: 40020440 .word 0x40020440
  23231. 800a264: 40020458 .word 0x40020458
  23232. 800a268: 40020470 .word 0x40020470
  23233. 800a26c: 40020488 .word 0x40020488
  23234. 800a270: 400204a0 .word 0x400204a0
  23235. 800a274: 400204b8 .word 0x400204b8
  23236. 800a278: 687b ldr r3, [r7, #4]
  23237. 800a27a: 681b ldr r3, [r3, #0]
  23238. 800a27c: 681b ldr r3, [r3, #0]
  23239. 800a27e: f003 0302 and.w r3, r3, #2
  23240. 800a282: 2b00 cmp r3, #0
  23241. 800a284: bf14 ite ne
  23242. 800a286: 2301 movne r3, #1
  23243. 800a288: 2300 moveq r3, #0
  23244. 800a28a: b2db uxtb r3, r3
  23245. 800a28c: 2b00 cmp r3, #0
  23246. 800a28e: f000 8087 beq.w 800a3a0 <HAL_DMA_IRQHandler+0x7f8>
  23247. {
  23248. /* Clear the transfer complete flag */
  23249. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  23250. 800a292: 687b ldr r3, [r7, #4]
  23251. 800a294: 6ddb ldr r3, [r3, #92] @ 0x5c
  23252. 800a296: f003 031f and.w r3, r3, #31
  23253. 800a29a: 2220 movs r2, #32
  23254. 800a29c: 409a lsls r2, r3
  23255. 800a29e: 6a3b ldr r3, [r7, #32]
  23256. 800a2a0: 609a str r2, [r3, #8]
  23257. if(HAL_DMA_STATE_ABORT == hdma->State)
  23258. 800a2a2: 687b ldr r3, [r7, #4]
  23259. 800a2a4: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  23260. 800a2a8: b2db uxtb r3, r3
  23261. 800a2aa: 2b04 cmp r3, #4
  23262. 800a2ac: d139 bne.n 800a322 <HAL_DMA_IRQHandler+0x77a>
  23263. {
  23264. /* Disable all the transfer interrupts */
  23265. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  23266. 800a2ae: 687b ldr r3, [r7, #4]
  23267. 800a2b0: 681b ldr r3, [r3, #0]
  23268. 800a2b2: 681a ldr r2, [r3, #0]
  23269. 800a2b4: 687b ldr r3, [r7, #4]
  23270. 800a2b6: 681b ldr r3, [r3, #0]
  23271. 800a2b8: f022 0216 bic.w r2, r2, #22
  23272. 800a2bc: 601a str r2, [r3, #0]
  23273. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  23274. 800a2be: 687b ldr r3, [r7, #4]
  23275. 800a2c0: 681b ldr r3, [r3, #0]
  23276. 800a2c2: 695a ldr r2, [r3, #20]
  23277. 800a2c4: 687b ldr r3, [r7, #4]
  23278. 800a2c6: 681b ldr r3, [r3, #0]
  23279. 800a2c8: f022 0280 bic.w r2, r2, #128 @ 0x80
  23280. 800a2cc: 615a str r2, [r3, #20]
  23281. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  23282. 800a2ce: 687b ldr r3, [r7, #4]
  23283. 800a2d0: 6c1b ldr r3, [r3, #64] @ 0x40
  23284. 800a2d2: 2b00 cmp r3, #0
  23285. 800a2d4: d103 bne.n 800a2de <HAL_DMA_IRQHandler+0x736>
  23286. 800a2d6: 687b ldr r3, [r7, #4]
  23287. 800a2d8: 6c9b ldr r3, [r3, #72] @ 0x48
  23288. 800a2da: 2b00 cmp r3, #0
  23289. 800a2dc: d007 beq.n 800a2ee <HAL_DMA_IRQHandler+0x746>
  23290. {
  23291. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23292. 800a2de: 687b ldr r3, [r7, #4]
  23293. 800a2e0: 681b ldr r3, [r3, #0]
  23294. 800a2e2: 681a ldr r2, [r3, #0]
  23295. 800a2e4: 687b ldr r3, [r7, #4]
  23296. 800a2e6: 681b ldr r3, [r3, #0]
  23297. 800a2e8: f022 0208 bic.w r2, r2, #8
  23298. 800a2ec: 601a str r2, [r3, #0]
  23299. }
  23300. /* Clear all interrupt flags at correct offset within the register */
  23301. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  23302. 800a2ee: 687b ldr r3, [r7, #4]
  23303. 800a2f0: 6ddb ldr r3, [r3, #92] @ 0x5c
  23304. 800a2f2: f003 031f and.w r3, r3, #31
  23305. 800a2f6: 223f movs r2, #63 @ 0x3f
  23306. 800a2f8: 409a lsls r2, r3
  23307. 800a2fa: 6a3b ldr r3, [r7, #32]
  23308. 800a2fc: 609a str r2, [r3, #8]
  23309. /* Change the DMA state */
  23310. hdma->State = HAL_DMA_STATE_READY;
  23311. 800a2fe: 687b ldr r3, [r7, #4]
  23312. 800a300: 2201 movs r2, #1
  23313. 800a302: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23314. /* Process Unlocked */
  23315. __HAL_UNLOCK(hdma);
  23316. 800a306: 687b ldr r3, [r7, #4]
  23317. 800a308: 2200 movs r2, #0
  23318. 800a30a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23319. if(hdma->XferAbortCallback != NULL)
  23320. 800a30e: 687b ldr r3, [r7, #4]
  23321. 800a310: 6d1b ldr r3, [r3, #80] @ 0x50
  23322. 800a312: 2b00 cmp r3, #0
  23323. 800a314: f000 834a beq.w 800a9ac <HAL_DMA_IRQHandler+0xe04>
  23324. {
  23325. hdma->XferAbortCallback(hdma);
  23326. 800a318: 687b ldr r3, [r7, #4]
  23327. 800a31a: 6d1b ldr r3, [r3, #80] @ 0x50
  23328. 800a31c: 6878 ldr r0, [r7, #4]
  23329. 800a31e: 4798 blx r3
  23330. }
  23331. return;
  23332. 800a320: e344 b.n 800a9ac <HAL_DMA_IRQHandler+0xe04>
  23333. }
  23334. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23335. 800a322: 687b ldr r3, [r7, #4]
  23336. 800a324: 681b ldr r3, [r3, #0]
  23337. 800a326: 681b ldr r3, [r3, #0]
  23338. 800a328: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23339. 800a32c: 2b00 cmp r3, #0
  23340. 800a32e: d018 beq.n 800a362 <HAL_DMA_IRQHandler+0x7ba>
  23341. {
  23342. /* Current memory buffer used is Memory 0 */
  23343. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23344. 800a330: 687b ldr r3, [r7, #4]
  23345. 800a332: 681b ldr r3, [r3, #0]
  23346. 800a334: 681b ldr r3, [r3, #0]
  23347. 800a336: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23348. 800a33a: 2b00 cmp r3, #0
  23349. 800a33c: d108 bne.n 800a350 <HAL_DMA_IRQHandler+0x7a8>
  23350. {
  23351. if(hdma->XferM1CpltCallback != NULL)
  23352. 800a33e: 687b ldr r3, [r7, #4]
  23353. 800a340: 6c5b ldr r3, [r3, #68] @ 0x44
  23354. 800a342: 2b00 cmp r3, #0
  23355. 800a344: d02c beq.n 800a3a0 <HAL_DMA_IRQHandler+0x7f8>
  23356. {
  23357. /* Transfer complete Callback for memory1 */
  23358. hdma->XferM1CpltCallback(hdma);
  23359. 800a346: 687b ldr r3, [r7, #4]
  23360. 800a348: 6c5b ldr r3, [r3, #68] @ 0x44
  23361. 800a34a: 6878 ldr r0, [r7, #4]
  23362. 800a34c: 4798 blx r3
  23363. 800a34e: e027 b.n 800a3a0 <HAL_DMA_IRQHandler+0x7f8>
  23364. }
  23365. }
  23366. /* Current memory buffer used is Memory 1 */
  23367. else
  23368. {
  23369. if(hdma->XferCpltCallback != NULL)
  23370. 800a350: 687b ldr r3, [r7, #4]
  23371. 800a352: 6bdb ldr r3, [r3, #60] @ 0x3c
  23372. 800a354: 2b00 cmp r3, #0
  23373. 800a356: d023 beq.n 800a3a0 <HAL_DMA_IRQHandler+0x7f8>
  23374. {
  23375. /* Transfer complete Callback for memory0 */
  23376. hdma->XferCpltCallback(hdma);
  23377. 800a358: 687b ldr r3, [r7, #4]
  23378. 800a35a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23379. 800a35c: 6878 ldr r0, [r7, #4]
  23380. 800a35e: 4798 blx r3
  23381. 800a360: e01e b.n 800a3a0 <HAL_DMA_IRQHandler+0x7f8>
  23382. }
  23383. }
  23384. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  23385. else
  23386. {
  23387. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23388. 800a362: 687b ldr r3, [r7, #4]
  23389. 800a364: 681b ldr r3, [r3, #0]
  23390. 800a366: 681b ldr r3, [r3, #0]
  23391. 800a368: f403 7380 and.w r3, r3, #256 @ 0x100
  23392. 800a36c: 2b00 cmp r3, #0
  23393. 800a36e: d10f bne.n 800a390 <HAL_DMA_IRQHandler+0x7e8>
  23394. {
  23395. /* Disable the transfer complete interrupt */
  23396. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  23397. 800a370: 687b ldr r3, [r7, #4]
  23398. 800a372: 681b ldr r3, [r3, #0]
  23399. 800a374: 681a ldr r2, [r3, #0]
  23400. 800a376: 687b ldr r3, [r7, #4]
  23401. 800a378: 681b ldr r3, [r3, #0]
  23402. 800a37a: f022 0210 bic.w r2, r2, #16
  23403. 800a37e: 601a str r2, [r3, #0]
  23404. /* Change the DMA state */
  23405. hdma->State = HAL_DMA_STATE_READY;
  23406. 800a380: 687b ldr r3, [r7, #4]
  23407. 800a382: 2201 movs r2, #1
  23408. 800a384: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23409. /* Process Unlocked */
  23410. __HAL_UNLOCK(hdma);
  23411. 800a388: 687b ldr r3, [r7, #4]
  23412. 800a38a: 2200 movs r2, #0
  23413. 800a38c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23414. }
  23415. if(hdma->XferCpltCallback != NULL)
  23416. 800a390: 687b ldr r3, [r7, #4]
  23417. 800a392: 6bdb ldr r3, [r3, #60] @ 0x3c
  23418. 800a394: 2b00 cmp r3, #0
  23419. 800a396: d003 beq.n 800a3a0 <HAL_DMA_IRQHandler+0x7f8>
  23420. {
  23421. /* Transfer complete callback */
  23422. hdma->XferCpltCallback(hdma);
  23423. 800a398: 687b ldr r3, [r7, #4]
  23424. 800a39a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23425. 800a39c: 6878 ldr r0, [r7, #4]
  23426. 800a39e: 4798 blx r3
  23427. }
  23428. }
  23429. }
  23430. /* manage error case */
  23431. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  23432. 800a3a0: 687b ldr r3, [r7, #4]
  23433. 800a3a2: 6d5b ldr r3, [r3, #84] @ 0x54
  23434. 800a3a4: 2b00 cmp r3, #0
  23435. 800a3a6: f000 8306 beq.w 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  23436. {
  23437. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  23438. 800a3aa: 687b ldr r3, [r7, #4]
  23439. 800a3ac: 6d5b ldr r3, [r3, #84] @ 0x54
  23440. 800a3ae: f003 0301 and.w r3, r3, #1
  23441. 800a3b2: 2b00 cmp r3, #0
  23442. 800a3b4: f000 8088 beq.w 800a4c8 <HAL_DMA_IRQHandler+0x920>
  23443. {
  23444. hdma->State = HAL_DMA_STATE_ABORT;
  23445. 800a3b8: 687b ldr r3, [r7, #4]
  23446. 800a3ba: 2204 movs r2, #4
  23447. 800a3bc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23448. /* Disable the stream */
  23449. __HAL_DMA_DISABLE(hdma);
  23450. 800a3c0: 687b ldr r3, [r7, #4]
  23451. 800a3c2: 681b ldr r3, [r3, #0]
  23452. 800a3c4: 4a7a ldr r2, [pc, #488] @ (800a5b0 <HAL_DMA_IRQHandler+0xa08>)
  23453. 800a3c6: 4293 cmp r3, r2
  23454. 800a3c8: d04a beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23455. 800a3ca: 687b ldr r3, [r7, #4]
  23456. 800a3cc: 681b ldr r3, [r3, #0]
  23457. 800a3ce: 4a79 ldr r2, [pc, #484] @ (800a5b4 <HAL_DMA_IRQHandler+0xa0c>)
  23458. 800a3d0: 4293 cmp r3, r2
  23459. 800a3d2: d045 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23460. 800a3d4: 687b ldr r3, [r7, #4]
  23461. 800a3d6: 681b ldr r3, [r3, #0]
  23462. 800a3d8: 4a77 ldr r2, [pc, #476] @ (800a5b8 <HAL_DMA_IRQHandler+0xa10>)
  23463. 800a3da: 4293 cmp r3, r2
  23464. 800a3dc: d040 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23465. 800a3de: 687b ldr r3, [r7, #4]
  23466. 800a3e0: 681b ldr r3, [r3, #0]
  23467. 800a3e2: 4a76 ldr r2, [pc, #472] @ (800a5bc <HAL_DMA_IRQHandler+0xa14>)
  23468. 800a3e4: 4293 cmp r3, r2
  23469. 800a3e6: d03b beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23470. 800a3e8: 687b ldr r3, [r7, #4]
  23471. 800a3ea: 681b ldr r3, [r3, #0]
  23472. 800a3ec: 4a74 ldr r2, [pc, #464] @ (800a5c0 <HAL_DMA_IRQHandler+0xa18>)
  23473. 800a3ee: 4293 cmp r3, r2
  23474. 800a3f0: d036 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23475. 800a3f2: 687b ldr r3, [r7, #4]
  23476. 800a3f4: 681b ldr r3, [r3, #0]
  23477. 800a3f6: 4a73 ldr r2, [pc, #460] @ (800a5c4 <HAL_DMA_IRQHandler+0xa1c>)
  23478. 800a3f8: 4293 cmp r3, r2
  23479. 800a3fa: d031 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23480. 800a3fc: 687b ldr r3, [r7, #4]
  23481. 800a3fe: 681b ldr r3, [r3, #0]
  23482. 800a400: 4a71 ldr r2, [pc, #452] @ (800a5c8 <HAL_DMA_IRQHandler+0xa20>)
  23483. 800a402: 4293 cmp r3, r2
  23484. 800a404: d02c beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23485. 800a406: 687b ldr r3, [r7, #4]
  23486. 800a408: 681b ldr r3, [r3, #0]
  23487. 800a40a: 4a70 ldr r2, [pc, #448] @ (800a5cc <HAL_DMA_IRQHandler+0xa24>)
  23488. 800a40c: 4293 cmp r3, r2
  23489. 800a40e: d027 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23490. 800a410: 687b ldr r3, [r7, #4]
  23491. 800a412: 681b ldr r3, [r3, #0]
  23492. 800a414: 4a6e ldr r2, [pc, #440] @ (800a5d0 <HAL_DMA_IRQHandler+0xa28>)
  23493. 800a416: 4293 cmp r3, r2
  23494. 800a418: d022 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23495. 800a41a: 687b ldr r3, [r7, #4]
  23496. 800a41c: 681b ldr r3, [r3, #0]
  23497. 800a41e: 4a6d ldr r2, [pc, #436] @ (800a5d4 <HAL_DMA_IRQHandler+0xa2c>)
  23498. 800a420: 4293 cmp r3, r2
  23499. 800a422: d01d beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23500. 800a424: 687b ldr r3, [r7, #4]
  23501. 800a426: 681b ldr r3, [r3, #0]
  23502. 800a428: 4a6b ldr r2, [pc, #428] @ (800a5d8 <HAL_DMA_IRQHandler+0xa30>)
  23503. 800a42a: 4293 cmp r3, r2
  23504. 800a42c: d018 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23505. 800a42e: 687b ldr r3, [r7, #4]
  23506. 800a430: 681b ldr r3, [r3, #0]
  23507. 800a432: 4a6a ldr r2, [pc, #424] @ (800a5dc <HAL_DMA_IRQHandler+0xa34>)
  23508. 800a434: 4293 cmp r3, r2
  23509. 800a436: d013 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23510. 800a438: 687b ldr r3, [r7, #4]
  23511. 800a43a: 681b ldr r3, [r3, #0]
  23512. 800a43c: 4a68 ldr r2, [pc, #416] @ (800a5e0 <HAL_DMA_IRQHandler+0xa38>)
  23513. 800a43e: 4293 cmp r3, r2
  23514. 800a440: d00e beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23515. 800a442: 687b ldr r3, [r7, #4]
  23516. 800a444: 681b ldr r3, [r3, #0]
  23517. 800a446: 4a67 ldr r2, [pc, #412] @ (800a5e4 <HAL_DMA_IRQHandler+0xa3c>)
  23518. 800a448: 4293 cmp r3, r2
  23519. 800a44a: d009 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23520. 800a44c: 687b ldr r3, [r7, #4]
  23521. 800a44e: 681b ldr r3, [r3, #0]
  23522. 800a450: 4a65 ldr r2, [pc, #404] @ (800a5e8 <HAL_DMA_IRQHandler+0xa40>)
  23523. 800a452: 4293 cmp r3, r2
  23524. 800a454: d004 beq.n 800a460 <HAL_DMA_IRQHandler+0x8b8>
  23525. 800a456: 687b ldr r3, [r7, #4]
  23526. 800a458: 681b ldr r3, [r3, #0]
  23527. 800a45a: 4a64 ldr r2, [pc, #400] @ (800a5ec <HAL_DMA_IRQHandler+0xa44>)
  23528. 800a45c: 4293 cmp r3, r2
  23529. 800a45e: d108 bne.n 800a472 <HAL_DMA_IRQHandler+0x8ca>
  23530. 800a460: 687b ldr r3, [r7, #4]
  23531. 800a462: 681b ldr r3, [r3, #0]
  23532. 800a464: 681a ldr r2, [r3, #0]
  23533. 800a466: 687b ldr r3, [r7, #4]
  23534. 800a468: 681b ldr r3, [r3, #0]
  23535. 800a46a: f022 0201 bic.w r2, r2, #1
  23536. 800a46e: 601a str r2, [r3, #0]
  23537. 800a470: e007 b.n 800a482 <HAL_DMA_IRQHandler+0x8da>
  23538. 800a472: 687b ldr r3, [r7, #4]
  23539. 800a474: 681b ldr r3, [r3, #0]
  23540. 800a476: 681a ldr r2, [r3, #0]
  23541. 800a478: 687b ldr r3, [r7, #4]
  23542. 800a47a: 681b ldr r3, [r3, #0]
  23543. 800a47c: f022 0201 bic.w r2, r2, #1
  23544. 800a480: 601a str r2, [r3, #0]
  23545. do
  23546. {
  23547. if (++count > timeout)
  23548. 800a482: 68fb ldr r3, [r7, #12]
  23549. 800a484: 3301 adds r3, #1
  23550. 800a486: 60fb str r3, [r7, #12]
  23551. 800a488: 6a7a ldr r2, [r7, #36] @ 0x24
  23552. 800a48a: 429a cmp r2, r3
  23553. 800a48c: d307 bcc.n 800a49e <HAL_DMA_IRQHandler+0x8f6>
  23554. {
  23555. break;
  23556. }
  23557. }
  23558. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  23559. 800a48e: 687b ldr r3, [r7, #4]
  23560. 800a490: 681b ldr r3, [r3, #0]
  23561. 800a492: 681b ldr r3, [r3, #0]
  23562. 800a494: f003 0301 and.w r3, r3, #1
  23563. 800a498: 2b00 cmp r3, #0
  23564. 800a49a: d1f2 bne.n 800a482 <HAL_DMA_IRQHandler+0x8da>
  23565. 800a49c: e000 b.n 800a4a0 <HAL_DMA_IRQHandler+0x8f8>
  23566. break;
  23567. 800a49e: bf00 nop
  23568. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  23569. 800a4a0: 687b ldr r3, [r7, #4]
  23570. 800a4a2: 681b ldr r3, [r3, #0]
  23571. 800a4a4: 681b ldr r3, [r3, #0]
  23572. 800a4a6: f003 0301 and.w r3, r3, #1
  23573. 800a4aa: 2b00 cmp r3, #0
  23574. 800a4ac: d004 beq.n 800a4b8 <HAL_DMA_IRQHandler+0x910>
  23575. {
  23576. /* Change the DMA state to error if DMA disable fails */
  23577. hdma->State = HAL_DMA_STATE_ERROR;
  23578. 800a4ae: 687b ldr r3, [r7, #4]
  23579. 800a4b0: 2203 movs r2, #3
  23580. 800a4b2: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23581. 800a4b6: e003 b.n 800a4c0 <HAL_DMA_IRQHandler+0x918>
  23582. }
  23583. else
  23584. {
  23585. /* Change the DMA state to Ready if DMA disable success */
  23586. hdma->State = HAL_DMA_STATE_READY;
  23587. 800a4b8: 687b ldr r3, [r7, #4]
  23588. 800a4ba: 2201 movs r2, #1
  23589. 800a4bc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23590. }
  23591. /* Process Unlocked */
  23592. __HAL_UNLOCK(hdma);
  23593. 800a4c0: 687b ldr r3, [r7, #4]
  23594. 800a4c2: 2200 movs r2, #0
  23595. 800a4c4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23596. }
  23597. if(hdma->XferErrorCallback != NULL)
  23598. 800a4c8: 687b ldr r3, [r7, #4]
  23599. 800a4ca: 6cdb ldr r3, [r3, #76] @ 0x4c
  23600. 800a4cc: 2b00 cmp r3, #0
  23601. 800a4ce: f000 8272 beq.w 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  23602. {
  23603. /* Transfer error callback */
  23604. hdma->XferErrorCallback(hdma);
  23605. 800a4d2: 687b ldr r3, [r7, #4]
  23606. 800a4d4: 6cdb ldr r3, [r3, #76] @ 0x4c
  23607. 800a4d6: 6878 ldr r0, [r7, #4]
  23608. 800a4d8: 4798 blx r3
  23609. 800a4da: e26c b.n 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  23610. }
  23611. }
  23612. }
  23613. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23614. 800a4dc: 687b ldr r3, [r7, #4]
  23615. 800a4de: 681b ldr r3, [r3, #0]
  23616. 800a4e0: 4a43 ldr r2, [pc, #268] @ (800a5f0 <HAL_DMA_IRQHandler+0xa48>)
  23617. 800a4e2: 4293 cmp r3, r2
  23618. 800a4e4: d022 beq.n 800a52c <HAL_DMA_IRQHandler+0x984>
  23619. 800a4e6: 687b ldr r3, [r7, #4]
  23620. 800a4e8: 681b ldr r3, [r3, #0]
  23621. 800a4ea: 4a42 ldr r2, [pc, #264] @ (800a5f4 <HAL_DMA_IRQHandler+0xa4c>)
  23622. 800a4ec: 4293 cmp r3, r2
  23623. 800a4ee: d01d beq.n 800a52c <HAL_DMA_IRQHandler+0x984>
  23624. 800a4f0: 687b ldr r3, [r7, #4]
  23625. 800a4f2: 681b ldr r3, [r3, #0]
  23626. 800a4f4: 4a40 ldr r2, [pc, #256] @ (800a5f8 <HAL_DMA_IRQHandler+0xa50>)
  23627. 800a4f6: 4293 cmp r3, r2
  23628. 800a4f8: d018 beq.n 800a52c <HAL_DMA_IRQHandler+0x984>
  23629. 800a4fa: 687b ldr r3, [r7, #4]
  23630. 800a4fc: 681b ldr r3, [r3, #0]
  23631. 800a4fe: 4a3f ldr r2, [pc, #252] @ (800a5fc <HAL_DMA_IRQHandler+0xa54>)
  23632. 800a500: 4293 cmp r3, r2
  23633. 800a502: d013 beq.n 800a52c <HAL_DMA_IRQHandler+0x984>
  23634. 800a504: 687b ldr r3, [r7, #4]
  23635. 800a506: 681b ldr r3, [r3, #0]
  23636. 800a508: 4a3d ldr r2, [pc, #244] @ (800a600 <HAL_DMA_IRQHandler+0xa58>)
  23637. 800a50a: 4293 cmp r3, r2
  23638. 800a50c: d00e beq.n 800a52c <HAL_DMA_IRQHandler+0x984>
  23639. 800a50e: 687b ldr r3, [r7, #4]
  23640. 800a510: 681b ldr r3, [r3, #0]
  23641. 800a512: 4a3c ldr r2, [pc, #240] @ (800a604 <HAL_DMA_IRQHandler+0xa5c>)
  23642. 800a514: 4293 cmp r3, r2
  23643. 800a516: d009 beq.n 800a52c <HAL_DMA_IRQHandler+0x984>
  23644. 800a518: 687b ldr r3, [r7, #4]
  23645. 800a51a: 681b ldr r3, [r3, #0]
  23646. 800a51c: 4a3a ldr r2, [pc, #232] @ (800a608 <HAL_DMA_IRQHandler+0xa60>)
  23647. 800a51e: 4293 cmp r3, r2
  23648. 800a520: d004 beq.n 800a52c <HAL_DMA_IRQHandler+0x984>
  23649. 800a522: 687b ldr r3, [r7, #4]
  23650. 800a524: 681b ldr r3, [r3, #0]
  23651. 800a526: 4a39 ldr r2, [pc, #228] @ (800a60c <HAL_DMA_IRQHandler+0xa64>)
  23652. 800a528: 4293 cmp r3, r2
  23653. 800a52a: d101 bne.n 800a530 <HAL_DMA_IRQHandler+0x988>
  23654. 800a52c: 2301 movs r3, #1
  23655. 800a52e: e000 b.n 800a532 <HAL_DMA_IRQHandler+0x98a>
  23656. 800a530: 2300 movs r3, #0
  23657. 800a532: 2b00 cmp r3, #0
  23658. 800a534: f000 823f beq.w 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  23659. {
  23660. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  23661. 800a538: 687b ldr r3, [r7, #4]
  23662. 800a53a: 681b ldr r3, [r3, #0]
  23663. 800a53c: 681b ldr r3, [r3, #0]
  23664. 800a53e: 613b str r3, [r7, #16]
  23665. /* Half Transfer Complete Interrupt management ******************************/
  23666. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  23667. 800a540: 687b ldr r3, [r7, #4]
  23668. 800a542: 6ddb ldr r3, [r3, #92] @ 0x5c
  23669. 800a544: f003 031f and.w r3, r3, #31
  23670. 800a548: 2204 movs r2, #4
  23671. 800a54a: 409a lsls r2, r3
  23672. 800a54c: 697b ldr r3, [r7, #20]
  23673. 800a54e: 4013 ands r3, r2
  23674. 800a550: 2b00 cmp r3, #0
  23675. 800a552: f000 80cd beq.w 800a6f0 <HAL_DMA_IRQHandler+0xb48>
  23676. 800a556: 693b ldr r3, [r7, #16]
  23677. 800a558: f003 0304 and.w r3, r3, #4
  23678. 800a55c: 2b00 cmp r3, #0
  23679. 800a55e: f000 80c7 beq.w 800a6f0 <HAL_DMA_IRQHandler+0xb48>
  23680. {
  23681. /* Clear the half transfer complete flag */
  23682. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  23683. 800a562: 687b ldr r3, [r7, #4]
  23684. 800a564: 6ddb ldr r3, [r3, #92] @ 0x5c
  23685. 800a566: f003 031f and.w r3, r3, #31
  23686. 800a56a: 2204 movs r2, #4
  23687. 800a56c: 409a lsls r2, r3
  23688. 800a56e: 69fb ldr r3, [r7, #28]
  23689. 800a570: 605a str r2, [r3, #4]
  23690. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23691. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23692. 800a572: 693b ldr r3, [r7, #16]
  23693. 800a574: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23694. 800a578: 2b00 cmp r3, #0
  23695. 800a57a: d049 beq.n 800a610 <HAL_DMA_IRQHandler+0xa68>
  23696. {
  23697. /* Current memory buffer used is Memory 0 */
  23698. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23699. 800a57c: 693b ldr r3, [r7, #16]
  23700. 800a57e: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23701. 800a582: 2b00 cmp r3, #0
  23702. 800a584: d109 bne.n 800a59a <HAL_DMA_IRQHandler+0x9f2>
  23703. {
  23704. if(hdma->XferM1HalfCpltCallback != NULL)
  23705. 800a586: 687b ldr r3, [r7, #4]
  23706. 800a588: 6c9b ldr r3, [r3, #72] @ 0x48
  23707. 800a58a: 2b00 cmp r3, #0
  23708. 800a58c: f000 8210 beq.w 800a9b0 <HAL_DMA_IRQHandler+0xe08>
  23709. {
  23710. /* Half transfer Callback for Memory 1 */
  23711. hdma->XferM1HalfCpltCallback(hdma);
  23712. 800a590: 687b ldr r3, [r7, #4]
  23713. 800a592: 6c9b ldr r3, [r3, #72] @ 0x48
  23714. 800a594: 6878 ldr r0, [r7, #4]
  23715. 800a596: 4798 blx r3
  23716. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23717. 800a598: e20a b.n 800a9b0 <HAL_DMA_IRQHandler+0xe08>
  23718. }
  23719. }
  23720. /* Current memory buffer used is Memory 1 */
  23721. else
  23722. {
  23723. if(hdma->XferHalfCpltCallback != NULL)
  23724. 800a59a: 687b ldr r3, [r7, #4]
  23725. 800a59c: 6c1b ldr r3, [r3, #64] @ 0x40
  23726. 800a59e: 2b00 cmp r3, #0
  23727. 800a5a0: f000 8206 beq.w 800a9b0 <HAL_DMA_IRQHandler+0xe08>
  23728. {
  23729. /* Half transfer Callback for Memory 0 */
  23730. hdma->XferHalfCpltCallback(hdma);
  23731. 800a5a4: 687b ldr r3, [r7, #4]
  23732. 800a5a6: 6c1b ldr r3, [r3, #64] @ 0x40
  23733. 800a5a8: 6878 ldr r0, [r7, #4]
  23734. 800a5aa: 4798 blx r3
  23735. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23736. 800a5ac: e200 b.n 800a9b0 <HAL_DMA_IRQHandler+0xe08>
  23737. 800a5ae: bf00 nop
  23738. 800a5b0: 40020010 .word 0x40020010
  23739. 800a5b4: 40020028 .word 0x40020028
  23740. 800a5b8: 40020040 .word 0x40020040
  23741. 800a5bc: 40020058 .word 0x40020058
  23742. 800a5c0: 40020070 .word 0x40020070
  23743. 800a5c4: 40020088 .word 0x40020088
  23744. 800a5c8: 400200a0 .word 0x400200a0
  23745. 800a5cc: 400200b8 .word 0x400200b8
  23746. 800a5d0: 40020410 .word 0x40020410
  23747. 800a5d4: 40020428 .word 0x40020428
  23748. 800a5d8: 40020440 .word 0x40020440
  23749. 800a5dc: 40020458 .word 0x40020458
  23750. 800a5e0: 40020470 .word 0x40020470
  23751. 800a5e4: 40020488 .word 0x40020488
  23752. 800a5e8: 400204a0 .word 0x400204a0
  23753. 800a5ec: 400204b8 .word 0x400204b8
  23754. 800a5f0: 58025408 .word 0x58025408
  23755. 800a5f4: 5802541c .word 0x5802541c
  23756. 800a5f8: 58025430 .word 0x58025430
  23757. 800a5fc: 58025444 .word 0x58025444
  23758. 800a600: 58025458 .word 0x58025458
  23759. 800a604: 5802546c .word 0x5802546c
  23760. 800a608: 58025480 .word 0x58025480
  23761. 800a60c: 58025494 .word 0x58025494
  23762. }
  23763. }
  23764. }
  23765. else
  23766. {
  23767. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23768. 800a610: 693b ldr r3, [r7, #16]
  23769. 800a612: f003 0320 and.w r3, r3, #32
  23770. 800a616: 2b00 cmp r3, #0
  23771. 800a618: d160 bne.n 800a6dc <HAL_DMA_IRQHandler+0xb34>
  23772. {
  23773. /* Disable the half transfer interrupt */
  23774. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  23775. 800a61a: 687b ldr r3, [r7, #4]
  23776. 800a61c: 681b ldr r3, [r3, #0]
  23777. 800a61e: 4a7f ldr r2, [pc, #508] @ (800a81c <HAL_DMA_IRQHandler+0xc74>)
  23778. 800a620: 4293 cmp r3, r2
  23779. 800a622: d04a beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23780. 800a624: 687b ldr r3, [r7, #4]
  23781. 800a626: 681b ldr r3, [r3, #0]
  23782. 800a628: 4a7d ldr r2, [pc, #500] @ (800a820 <HAL_DMA_IRQHandler+0xc78>)
  23783. 800a62a: 4293 cmp r3, r2
  23784. 800a62c: d045 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23785. 800a62e: 687b ldr r3, [r7, #4]
  23786. 800a630: 681b ldr r3, [r3, #0]
  23787. 800a632: 4a7c ldr r2, [pc, #496] @ (800a824 <HAL_DMA_IRQHandler+0xc7c>)
  23788. 800a634: 4293 cmp r3, r2
  23789. 800a636: d040 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23790. 800a638: 687b ldr r3, [r7, #4]
  23791. 800a63a: 681b ldr r3, [r3, #0]
  23792. 800a63c: 4a7a ldr r2, [pc, #488] @ (800a828 <HAL_DMA_IRQHandler+0xc80>)
  23793. 800a63e: 4293 cmp r3, r2
  23794. 800a640: d03b beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23795. 800a642: 687b ldr r3, [r7, #4]
  23796. 800a644: 681b ldr r3, [r3, #0]
  23797. 800a646: 4a79 ldr r2, [pc, #484] @ (800a82c <HAL_DMA_IRQHandler+0xc84>)
  23798. 800a648: 4293 cmp r3, r2
  23799. 800a64a: d036 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23800. 800a64c: 687b ldr r3, [r7, #4]
  23801. 800a64e: 681b ldr r3, [r3, #0]
  23802. 800a650: 4a77 ldr r2, [pc, #476] @ (800a830 <HAL_DMA_IRQHandler+0xc88>)
  23803. 800a652: 4293 cmp r3, r2
  23804. 800a654: d031 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23805. 800a656: 687b ldr r3, [r7, #4]
  23806. 800a658: 681b ldr r3, [r3, #0]
  23807. 800a65a: 4a76 ldr r2, [pc, #472] @ (800a834 <HAL_DMA_IRQHandler+0xc8c>)
  23808. 800a65c: 4293 cmp r3, r2
  23809. 800a65e: d02c beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23810. 800a660: 687b ldr r3, [r7, #4]
  23811. 800a662: 681b ldr r3, [r3, #0]
  23812. 800a664: 4a74 ldr r2, [pc, #464] @ (800a838 <HAL_DMA_IRQHandler+0xc90>)
  23813. 800a666: 4293 cmp r3, r2
  23814. 800a668: d027 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23815. 800a66a: 687b ldr r3, [r7, #4]
  23816. 800a66c: 681b ldr r3, [r3, #0]
  23817. 800a66e: 4a73 ldr r2, [pc, #460] @ (800a83c <HAL_DMA_IRQHandler+0xc94>)
  23818. 800a670: 4293 cmp r3, r2
  23819. 800a672: d022 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23820. 800a674: 687b ldr r3, [r7, #4]
  23821. 800a676: 681b ldr r3, [r3, #0]
  23822. 800a678: 4a71 ldr r2, [pc, #452] @ (800a840 <HAL_DMA_IRQHandler+0xc98>)
  23823. 800a67a: 4293 cmp r3, r2
  23824. 800a67c: d01d beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23825. 800a67e: 687b ldr r3, [r7, #4]
  23826. 800a680: 681b ldr r3, [r3, #0]
  23827. 800a682: 4a70 ldr r2, [pc, #448] @ (800a844 <HAL_DMA_IRQHandler+0xc9c>)
  23828. 800a684: 4293 cmp r3, r2
  23829. 800a686: d018 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23830. 800a688: 687b ldr r3, [r7, #4]
  23831. 800a68a: 681b ldr r3, [r3, #0]
  23832. 800a68c: 4a6e ldr r2, [pc, #440] @ (800a848 <HAL_DMA_IRQHandler+0xca0>)
  23833. 800a68e: 4293 cmp r3, r2
  23834. 800a690: d013 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23835. 800a692: 687b ldr r3, [r7, #4]
  23836. 800a694: 681b ldr r3, [r3, #0]
  23837. 800a696: 4a6d ldr r2, [pc, #436] @ (800a84c <HAL_DMA_IRQHandler+0xca4>)
  23838. 800a698: 4293 cmp r3, r2
  23839. 800a69a: d00e beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23840. 800a69c: 687b ldr r3, [r7, #4]
  23841. 800a69e: 681b ldr r3, [r3, #0]
  23842. 800a6a0: 4a6b ldr r2, [pc, #428] @ (800a850 <HAL_DMA_IRQHandler+0xca8>)
  23843. 800a6a2: 4293 cmp r3, r2
  23844. 800a6a4: d009 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23845. 800a6a6: 687b ldr r3, [r7, #4]
  23846. 800a6a8: 681b ldr r3, [r3, #0]
  23847. 800a6aa: 4a6a ldr r2, [pc, #424] @ (800a854 <HAL_DMA_IRQHandler+0xcac>)
  23848. 800a6ac: 4293 cmp r3, r2
  23849. 800a6ae: d004 beq.n 800a6ba <HAL_DMA_IRQHandler+0xb12>
  23850. 800a6b0: 687b ldr r3, [r7, #4]
  23851. 800a6b2: 681b ldr r3, [r3, #0]
  23852. 800a6b4: 4a68 ldr r2, [pc, #416] @ (800a858 <HAL_DMA_IRQHandler+0xcb0>)
  23853. 800a6b6: 4293 cmp r3, r2
  23854. 800a6b8: d108 bne.n 800a6cc <HAL_DMA_IRQHandler+0xb24>
  23855. 800a6ba: 687b ldr r3, [r7, #4]
  23856. 800a6bc: 681b ldr r3, [r3, #0]
  23857. 800a6be: 681a ldr r2, [r3, #0]
  23858. 800a6c0: 687b ldr r3, [r7, #4]
  23859. 800a6c2: 681b ldr r3, [r3, #0]
  23860. 800a6c4: f022 0208 bic.w r2, r2, #8
  23861. 800a6c8: 601a str r2, [r3, #0]
  23862. 800a6ca: e007 b.n 800a6dc <HAL_DMA_IRQHandler+0xb34>
  23863. 800a6cc: 687b ldr r3, [r7, #4]
  23864. 800a6ce: 681b ldr r3, [r3, #0]
  23865. 800a6d0: 681a ldr r2, [r3, #0]
  23866. 800a6d2: 687b ldr r3, [r7, #4]
  23867. 800a6d4: 681b ldr r3, [r3, #0]
  23868. 800a6d6: f022 0204 bic.w r2, r2, #4
  23869. 800a6da: 601a str r2, [r3, #0]
  23870. }
  23871. /* DMA peripheral state is not updated in Half Transfer */
  23872. /* but in Transfer Complete case */
  23873. if(hdma->XferHalfCpltCallback != NULL)
  23874. 800a6dc: 687b ldr r3, [r7, #4]
  23875. 800a6de: 6c1b ldr r3, [r3, #64] @ 0x40
  23876. 800a6e0: 2b00 cmp r3, #0
  23877. 800a6e2: f000 8165 beq.w 800a9b0 <HAL_DMA_IRQHandler+0xe08>
  23878. {
  23879. /* Half transfer callback */
  23880. hdma->XferHalfCpltCallback(hdma);
  23881. 800a6e6: 687b ldr r3, [r7, #4]
  23882. 800a6e8: 6c1b ldr r3, [r3, #64] @ 0x40
  23883. 800a6ea: 6878 ldr r0, [r7, #4]
  23884. 800a6ec: 4798 blx r3
  23885. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23886. 800a6ee: e15f b.n 800a9b0 <HAL_DMA_IRQHandler+0xe08>
  23887. }
  23888. }
  23889. }
  23890. /* Transfer Complete Interrupt management ***********************************/
  23891. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  23892. 800a6f0: 687b ldr r3, [r7, #4]
  23893. 800a6f2: 6ddb ldr r3, [r3, #92] @ 0x5c
  23894. 800a6f4: f003 031f and.w r3, r3, #31
  23895. 800a6f8: 2202 movs r2, #2
  23896. 800a6fa: 409a lsls r2, r3
  23897. 800a6fc: 697b ldr r3, [r7, #20]
  23898. 800a6fe: 4013 ands r3, r2
  23899. 800a700: 2b00 cmp r3, #0
  23900. 800a702: f000 80c5 beq.w 800a890 <HAL_DMA_IRQHandler+0xce8>
  23901. 800a706: 693b ldr r3, [r7, #16]
  23902. 800a708: f003 0302 and.w r3, r3, #2
  23903. 800a70c: 2b00 cmp r3, #0
  23904. 800a70e: f000 80bf beq.w 800a890 <HAL_DMA_IRQHandler+0xce8>
  23905. {
  23906. /* Clear the transfer complete flag */
  23907. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  23908. 800a712: 687b ldr r3, [r7, #4]
  23909. 800a714: 6ddb ldr r3, [r3, #92] @ 0x5c
  23910. 800a716: f003 031f and.w r3, r3, #31
  23911. 800a71a: 2202 movs r2, #2
  23912. 800a71c: 409a lsls r2, r3
  23913. 800a71e: 69fb ldr r3, [r7, #28]
  23914. 800a720: 605a str r2, [r3, #4]
  23915. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23916. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23917. 800a722: 693b ldr r3, [r7, #16]
  23918. 800a724: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23919. 800a728: 2b00 cmp r3, #0
  23920. 800a72a: d018 beq.n 800a75e <HAL_DMA_IRQHandler+0xbb6>
  23921. {
  23922. /* Current memory buffer used is Memory 0 */
  23923. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23924. 800a72c: 693b ldr r3, [r7, #16]
  23925. 800a72e: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23926. 800a732: 2b00 cmp r3, #0
  23927. 800a734: d109 bne.n 800a74a <HAL_DMA_IRQHandler+0xba2>
  23928. {
  23929. if(hdma->XferM1CpltCallback != NULL)
  23930. 800a736: 687b ldr r3, [r7, #4]
  23931. 800a738: 6c5b ldr r3, [r3, #68] @ 0x44
  23932. 800a73a: 2b00 cmp r3, #0
  23933. 800a73c: f000 813a beq.w 800a9b4 <HAL_DMA_IRQHandler+0xe0c>
  23934. {
  23935. /* Transfer complete Callback for Memory 1 */
  23936. hdma->XferM1CpltCallback(hdma);
  23937. 800a740: 687b ldr r3, [r7, #4]
  23938. 800a742: 6c5b ldr r3, [r3, #68] @ 0x44
  23939. 800a744: 6878 ldr r0, [r7, #4]
  23940. 800a746: 4798 blx r3
  23941. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23942. 800a748: e134 b.n 800a9b4 <HAL_DMA_IRQHandler+0xe0c>
  23943. }
  23944. }
  23945. /* Current memory buffer used is Memory 1 */
  23946. else
  23947. {
  23948. if(hdma->XferCpltCallback != NULL)
  23949. 800a74a: 687b ldr r3, [r7, #4]
  23950. 800a74c: 6bdb ldr r3, [r3, #60] @ 0x3c
  23951. 800a74e: 2b00 cmp r3, #0
  23952. 800a750: f000 8130 beq.w 800a9b4 <HAL_DMA_IRQHandler+0xe0c>
  23953. {
  23954. /* Transfer complete Callback for Memory 0 */
  23955. hdma->XferCpltCallback(hdma);
  23956. 800a754: 687b ldr r3, [r7, #4]
  23957. 800a756: 6bdb ldr r3, [r3, #60] @ 0x3c
  23958. 800a758: 6878 ldr r0, [r7, #4]
  23959. 800a75a: 4798 blx r3
  23960. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23961. 800a75c: e12a b.n 800a9b4 <HAL_DMA_IRQHandler+0xe0c>
  23962. }
  23963. }
  23964. }
  23965. else
  23966. {
  23967. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23968. 800a75e: 693b ldr r3, [r7, #16]
  23969. 800a760: f003 0320 and.w r3, r3, #32
  23970. 800a764: 2b00 cmp r3, #0
  23971. 800a766: f040 8089 bne.w 800a87c <HAL_DMA_IRQHandler+0xcd4>
  23972. {
  23973. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  23974. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  23975. 800a76a: 687b ldr r3, [r7, #4]
  23976. 800a76c: 681b ldr r3, [r3, #0]
  23977. 800a76e: 4a2b ldr r2, [pc, #172] @ (800a81c <HAL_DMA_IRQHandler+0xc74>)
  23978. 800a770: 4293 cmp r3, r2
  23979. 800a772: d04a beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  23980. 800a774: 687b ldr r3, [r7, #4]
  23981. 800a776: 681b ldr r3, [r3, #0]
  23982. 800a778: 4a29 ldr r2, [pc, #164] @ (800a820 <HAL_DMA_IRQHandler+0xc78>)
  23983. 800a77a: 4293 cmp r3, r2
  23984. 800a77c: d045 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  23985. 800a77e: 687b ldr r3, [r7, #4]
  23986. 800a780: 681b ldr r3, [r3, #0]
  23987. 800a782: 4a28 ldr r2, [pc, #160] @ (800a824 <HAL_DMA_IRQHandler+0xc7c>)
  23988. 800a784: 4293 cmp r3, r2
  23989. 800a786: d040 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  23990. 800a788: 687b ldr r3, [r7, #4]
  23991. 800a78a: 681b ldr r3, [r3, #0]
  23992. 800a78c: 4a26 ldr r2, [pc, #152] @ (800a828 <HAL_DMA_IRQHandler+0xc80>)
  23993. 800a78e: 4293 cmp r3, r2
  23994. 800a790: d03b beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  23995. 800a792: 687b ldr r3, [r7, #4]
  23996. 800a794: 681b ldr r3, [r3, #0]
  23997. 800a796: 4a25 ldr r2, [pc, #148] @ (800a82c <HAL_DMA_IRQHandler+0xc84>)
  23998. 800a798: 4293 cmp r3, r2
  23999. 800a79a: d036 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24000. 800a79c: 687b ldr r3, [r7, #4]
  24001. 800a79e: 681b ldr r3, [r3, #0]
  24002. 800a7a0: 4a23 ldr r2, [pc, #140] @ (800a830 <HAL_DMA_IRQHandler+0xc88>)
  24003. 800a7a2: 4293 cmp r3, r2
  24004. 800a7a4: d031 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24005. 800a7a6: 687b ldr r3, [r7, #4]
  24006. 800a7a8: 681b ldr r3, [r3, #0]
  24007. 800a7aa: 4a22 ldr r2, [pc, #136] @ (800a834 <HAL_DMA_IRQHandler+0xc8c>)
  24008. 800a7ac: 4293 cmp r3, r2
  24009. 800a7ae: d02c beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24010. 800a7b0: 687b ldr r3, [r7, #4]
  24011. 800a7b2: 681b ldr r3, [r3, #0]
  24012. 800a7b4: 4a20 ldr r2, [pc, #128] @ (800a838 <HAL_DMA_IRQHandler+0xc90>)
  24013. 800a7b6: 4293 cmp r3, r2
  24014. 800a7b8: d027 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24015. 800a7ba: 687b ldr r3, [r7, #4]
  24016. 800a7bc: 681b ldr r3, [r3, #0]
  24017. 800a7be: 4a1f ldr r2, [pc, #124] @ (800a83c <HAL_DMA_IRQHandler+0xc94>)
  24018. 800a7c0: 4293 cmp r3, r2
  24019. 800a7c2: d022 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24020. 800a7c4: 687b ldr r3, [r7, #4]
  24021. 800a7c6: 681b ldr r3, [r3, #0]
  24022. 800a7c8: 4a1d ldr r2, [pc, #116] @ (800a840 <HAL_DMA_IRQHandler+0xc98>)
  24023. 800a7ca: 4293 cmp r3, r2
  24024. 800a7cc: d01d beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24025. 800a7ce: 687b ldr r3, [r7, #4]
  24026. 800a7d0: 681b ldr r3, [r3, #0]
  24027. 800a7d2: 4a1c ldr r2, [pc, #112] @ (800a844 <HAL_DMA_IRQHandler+0xc9c>)
  24028. 800a7d4: 4293 cmp r3, r2
  24029. 800a7d6: d018 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24030. 800a7d8: 687b ldr r3, [r7, #4]
  24031. 800a7da: 681b ldr r3, [r3, #0]
  24032. 800a7dc: 4a1a ldr r2, [pc, #104] @ (800a848 <HAL_DMA_IRQHandler+0xca0>)
  24033. 800a7de: 4293 cmp r3, r2
  24034. 800a7e0: d013 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24035. 800a7e2: 687b ldr r3, [r7, #4]
  24036. 800a7e4: 681b ldr r3, [r3, #0]
  24037. 800a7e6: 4a19 ldr r2, [pc, #100] @ (800a84c <HAL_DMA_IRQHandler+0xca4>)
  24038. 800a7e8: 4293 cmp r3, r2
  24039. 800a7ea: d00e beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24040. 800a7ec: 687b ldr r3, [r7, #4]
  24041. 800a7ee: 681b ldr r3, [r3, #0]
  24042. 800a7f0: 4a17 ldr r2, [pc, #92] @ (800a850 <HAL_DMA_IRQHandler+0xca8>)
  24043. 800a7f2: 4293 cmp r3, r2
  24044. 800a7f4: d009 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24045. 800a7f6: 687b ldr r3, [r7, #4]
  24046. 800a7f8: 681b ldr r3, [r3, #0]
  24047. 800a7fa: 4a16 ldr r2, [pc, #88] @ (800a854 <HAL_DMA_IRQHandler+0xcac>)
  24048. 800a7fc: 4293 cmp r3, r2
  24049. 800a7fe: d004 beq.n 800a80a <HAL_DMA_IRQHandler+0xc62>
  24050. 800a800: 687b ldr r3, [r7, #4]
  24051. 800a802: 681b ldr r3, [r3, #0]
  24052. 800a804: 4a14 ldr r2, [pc, #80] @ (800a858 <HAL_DMA_IRQHandler+0xcb0>)
  24053. 800a806: 4293 cmp r3, r2
  24054. 800a808: d128 bne.n 800a85c <HAL_DMA_IRQHandler+0xcb4>
  24055. 800a80a: 687b ldr r3, [r7, #4]
  24056. 800a80c: 681b ldr r3, [r3, #0]
  24057. 800a80e: 681a ldr r2, [r3, #0]
  24058. 800a810: 687b ldr r3, [r7, #4]
  24059. 800a812: 681b ldr r3, [r3, #0]
  24060. 800a814: f022 0214 bic.w r2, r2, #20
  24061. 800a818: 601a str r2, [r3, #0]
  24062. 800a81a: e027 b.n 800a86c <HAL_DMA_IRQHandler+0xcc4>
  24063. 800a81c: 40020010 .word 0x40020010
  24064. 800a820: 40020028 .word 0x40020028
  24065. 800a824: 40020040 .word 0x40020040
  24066. 800a828: 40020058 .word 0x40020058
  24067. 800a82c: 40020070 .word 0x40020070
  24068. 800a830: 40020088 .word 0x40020088
  24069. 800a834: 400200a0 .word 0x400200a0
  24070. 800a838: 400200b8 .word 0x400200b8
  24071. 800a83c: 40020410 .word 0x40020410
  24072. 800a840: 40020428 .word 0x40020428
  24073. 800a844: 40020440 .word 0x40020440
  24074. 800a848: 40020458 .word 0x40020458
  24075. 800a84c: 40020470 .word 0x40020470
  24076. 800a850: 40020488 .word 0x40020488
  24077. 800a854: 400204a0 .word 0x400204a0
  24078. 800a858: 400204b8 .word 0x400204b8
  24079. 800a85c: 687b ldr r3, [r7, #4]
  24080. 800a85e: 681b ldr r3, [r3, #0]
  24081. 800a860: 681a ldr r2, [r3, #0]
  24082. 800a862: 687b ldr r3, [r7, #4]
  24083. 800a864: 681b ldr r3, [r3, #0]
  24084. 800a866: f022 020a bic.w r2, r2, #10
  24085. 800a86a: 601a str r2, [r3, #0]
  24086. /* Change the DMA state */
  24087. hdma->State = HAL_DMA_STATE_READY;
  24088. 800a86c: 687b ldr r3, [r7, #4]
  24089. 800a86e: 2201 movs r2, #1
  24090. 800a870: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24091. /* Process Unlocked */
  24092. __HAL_UNLOCK(hdma);
  24093. 800a874: 687b ldr r3, [r7, #4]
  24094. 800a876: 2200 movs r2, #0
  24095. 800a878: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24096. }
  24097. if(hdma->XferCpltCallback != NULL)
  24098. 800a87c: 687b ldr r3, [r7, #4]
  24099. 800a87e: 6bdb ldr r3, [r3, #60] @ 0x3c
  24100. 800a880: 2b00 cmp r3, #0
  24101. 800a882: f000 8097 beq.w 800a9b4 <HAL_DMA_IRQHandler+0xe0c>
  24102. {
  24103. /* Transfer complete callback */
  24104. hdma->XferCpltCallback(hdma);
  24105. 800a886: 687b ldr r3, [r7, #4]
  24106. 800a888: 6bdb ldr r3, [r3, #60] @ 0x3c
  24107. 800a88a: 6878 ldr r0, [r7, #4]
  24108. 800a88c: 4798 blx r3
  24109. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24110. 800a88e: e091 b.n 800a9b4 <HAL_DMA_IRQHandler+0xe0c>
  24111. }
  24112. }
  24113. }
  24114. /* Transfer Error Interrupt management **************************************/
  24115. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  24116. 800a890: 687b ldr r3, [r7, #4]
  24117. 800a892: 6ddb ldr r3, [r3, #92] @ 0x5c
  24118. 800a894: f003 031f and.w r3, r3, #31
  24119. 800a898: 2208 movs r2, #8
  24120. 800a89a: 409a lsls r2, r3
  24121. 800a89c: 697b ldr r3, [r7, #20]
  24122. 800a89e: 4013 ands r3, r2
  24123. 800a8a0: 2b00 cmp r3, #0
  24124. 800a8a2: f000 8088 beq.w 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  24125. 800a8a6: 693b ldr r3, [r7, #16]
  24126. 800a8a8: f003 0308 and.w r3, r3, #8
  24127. 800a8ac: 2b00 cmp r3, #0
  24128. 800a8ae: f000 8082 beq.w 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  24129. {
  24130. /* When a DMA transfer error occurs */
  24131. /* A hardware clear of its EN bits is performed */
  24132. /* Disable ALL DMA IT */
  24133. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  24134. 800a8b2: 687b ldr r3, [r7, #4]
  24135. 800a8b4: 681b ldr r3, [r3, #0]
  24136. 800a8b6: 4a41 ldr r2, [pc, #260] @ (800a9bc <HAL_DMA_IRQHandler+0xe14>)
  24137. 800a8b8: 4293 cmp r3, r2
  24138. 800a8ba: d04a beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24139. 800a8bc: 687b ldr r3, [r7, #4]
  24140. 800a8be: 681b ldr r3, [r3, #0]
  24141. 800a8c0: 4a3f ldr r2, [pc, #252] @ (800a9c0 <HAL_DMA_IRQHandler+0xe18>)
  24142. 800a8c2: 4293 cmp r3, r2
  24143. 800a8c4: d045 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24144. 800a8c6: 687b ldr r3, [r7, #4]
  24145. 800a8c8: 681b ldr r3, [r3, #0]
  24146. 800a8ca: 4a3e ldr r2, [pc, #248] @ (800a9c4 <HAL_DMA_IRQHandler+0xe1c>)
  24147. 800a8cc: 4293 cmp r3, r2
  24148. 800a8ce: d040 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24149. 800a8d0: 687b ldr r3, [r7, #4]
  24150. 800a8d2: 681b ldr r3, [r3, #0]
  24151. 800a8d4: 4a3c ldr r2, [pc, #240] @ (800a9c8 <HAL_DMA_IRQHandler+0xe20>)
  24152. 800a8d6: 4293 cmp r3, r2
  24153. 800a8d8: d03b beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24154. 800a8da: 687b ldr r3, [r7, #4]
  24155. 800a8dc: 681b ldr r3, [r3, #0]
  24156. 800a8de: 4a3b ldr r2, [pc, #236] @ (800a9cc <HAL_DMA_IRQHandler+0xe24>)
  24157. 800a8e0: 4293 cmp r3, r2
  24158. 800a8e2: d036 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24159. 800a8e4: 687b ldr r3, [r7, #4]
  24160. 800a8e6: 681b ldr r3, [r3, #0]
  24161. 800a8e8: 4a39 ldr r2, [pc, #228] @ (800a9d0 <HAL_DMA_IRQHandler+0xe28>)
  24162. 800a8ea: 4293 cmp r3, r2
  24163. 800a8ec: d031 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24164. 800a8ee: 687b ldr r3, [r7, #4]
  24165. 800a8f0: 681b ldr r3, [r3, #0]
  24166. 800a8f2: 4a38 ldr r2, [pc, #224] @ (800a9d4 <HAL_DMA_IRQHandler+0xe2c>)
  24167. 800a8f4: 4293 cmp r3, r2
  24168. 800a8f6: d02c beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24169. 800a8f8: 687b ldr r3, [r7, #4]
  24170. 800a8fa: 681b ldr r3, [r3, #0]
  24171. 800a8fc: 4a36 ldr r2, [pc, #216] @ (800a9d8 <HAL_DMA_IRQHandler+0xe30>)
  24172. 800a8fe: 4293 cmp r3, r2
  24173. 800a900: d027 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24174. 800a902: 687b ldr r3, [r7, #4]
  24175. 800a904: 681b ldr r3, [r3, #0]
  24176. 800a906: 4a35 ldr r2, [pc, #212] @ (800a9dc <HAL_DMA_IRQHandler+0xe34>)
  24177. 800a908: 4293 cmp r3, r2
  24178. 800a90a: d022 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24179. 800a90c: 687b ldr r3, [r7, #4]
  24180. 800a90e: 681b ldr r3, [r3, #0]
  24181. 800a910: 4a33 ldr r2, [pc, #204] @ (800a9e0 <HAL_DMA_IRQHandler+0xe38>)
  24182. 800a912: 4293 cmp r3, r2
  24183. 800a914: d01d beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24184. 800a916: 687b ldr r3, [r7, #4]
  24185. 800a918: 681b ldr r3, [r3, #0]
  24186. 800a91a: 4a32 ldr r2, [pc, #200] @ (800a9e4 <HAL_DMA_IRQHandler+0xe3c>)
  24187. 800a91c: 4293 cmp r3, r2
  24188. 800a91e: d018 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24189. 800a920: 687b ldr r3, [r7, #4]
  24190. 800a922: 681b ldr r3, [r3, #0]
  24191. 800a924: 4a30 ldr r2, [pc, #192] @ (800a9e8 <HAL_DMA_IRQHandler+0xe40>)
  24192. 800a926: 4293 cmp r3, r2
  24193. 800a928: d013 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24194. 800a92a: 687b ldr r3, [r7, #4]
  24195. 800a92c: 681b ldr r3, [r3, #0]
  24196. 800a92e: 4a2f ldr r2, [pc, #188] @ (800a9ec <HAL_DMA_IRQHandler+0xe44>)
  24197. 800a930: 4293 cmp r3, r2
  24198. 800a932: d00e beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24199. 800a934: 687b ldr r3, [r7, #4]
  24200. 800a936: 681b ldr r3, [r3, #0]
  24201. 800a938: 4a2d ldr r2, [pc, #180] @ (800a9f0 <HAL_DMA_IRQHandler+0xe48>)
  24202. 800a93a: 4293 cmp r3, r2
  24203. 800a93c: d009 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24204. 800a93e: 687b ldr r3, [r7, #4]
  24205. 800a940: 681b ldr r3, [r3, #0]
  24206. 800a942: 4a2c ldr r2, [pc, #176] @ (800a9f4 <HAL_DMA_IRQHandler+0xe4c>)
  24207. 800a944: 4293 cmp r3, r2
  24208. 800a946: d004 beq.n 800a952 <HAL_DMA_IRQHandler+0xdaa>
  24209. 800a948: 687b ldr r3, [r7, #4]
  24210. 800a94a: 681b ldr r3, [r3, #0]
  24211. 800a94c: 4a2a ldr r2, [pc, #168] @ (800a9f8 <HAL_DMA_IRQHandler+0xe50>)
  24212. 800a94e: 4293 cmp r3, r2
  24213. 800a950: d108 bne.n 800a964 <HAL_DMA_IRQHandler+0xdbc>
  24214. 800a952: 687b ldr r3, [r7, #4]
  24215. 800a954: 681b ldr r3, [r3, #0]
  24216. 800a956: 681a ldr r2, [r3, #0]
  24217. 800a958: 687b ldr r3, [r7, #4]
  24218. 800a95a: 681b ldr r3, [r3, #0]
  24219. 800a95c: f022 021c bic.w r2, r2, #28
  24220. 800a960: 601a str r2, [r3, #0]
  24221. 800a962: e007 b.n 800a974 <HAL_DMA_IRQHandler+0xdcc>
  24222. 800a964: 687b ldr r3, [r7, #4]
  24223. 800a966: 681b ldr r3, [r3, #0]
  24224. 800a968: 681a ldr r2, [r3, #0]
  24225. 800a96a: 687b ldr r3, [r7, #4]
  24226. 800a96c: 681b ldr r3, [r3, #0]
  24227. 800a96e: f022 020e bic.w r2, r2, #14
  24228. 800a972: 601a str r2, [r3, #0]
  24229. /* Clear all flags */
  24230. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24231. 800a974: 687b ldr r3, [r7, #4]
  24232. 800a976: 6ddb ldr r3, [r3, #92] @ 0x5c
  24233. 800a978: f003 031f and.w r3, r3, #31
  24234. 800a97c: 2201 movs r2, #1
  24235. 800a97e: 409a lsls r2, r3
  24236. 800a980: 69fb ldr r3, [r7, #28]
  24237. 800a982: 605a str r2, [r3, #4]
  24238. /* Update error code */
  24239. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  24240. 800a984: 687b ldr r3, [r7, #4]
  24241. 800a986: 2201 movs r2, #1
  24242. 800a988: 655a str r2, [r3, #84] @ 0x54
  24243. /* Change the DMA state */
  24244. hdma->State = HAL_DMA_STATE_READY;
  24245. 800a98a: 687b ldr r3, [r7, #4]
  24246. 800a98c: 2201 movs r2, #1
  24247. 800a98e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24248. /* Process Unlocked */
  24249. __HAL_UNLOCK(hdma);
  24250. 800a992: 687b ldr r3, [r7, #4]
  24251. 800a994: 2200 movs r2, #0
  24252. 800a996: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24253. if (hdma->XferErrorCallback != NULL)
  24254. 800a99a: 687b ldr r3, [r7, #4]
  24255. 800a99c: 6cdb ldr r3, [r3, #76] @ 0x4c
  24256. 800a99e: 2b00 cmp r3, #0
  24257. 800a9a0: d009 beq.n 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  24258. {
  24259. /* Transfer error callback */
  24260. hdma->XferErrorCallback(hdma);
  24261. 800a9a2: 687b ldr r3, [r7, #4]
  24262. 800a9a4: 6cdb ldr r3, [r3, #76] @ 0x4c
  24263. 800a9a6: 6878 ldr r0, [r7, #4]
  24264. 800a9a8: 4798 blx r3
  24265. 800a9aa: e004 b.n 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  24266. return;
  24267. 800a9ac: bf00 nop
  24268. 800a9ae: e002 b.n 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  24269. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24270. 800a9b0: bf00 nop
  24271. 800a9b2: e000 b.n 800a9b6 <HAL_DMA_IRQHandler+0xe0e>
  24272. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24273. 800a9b4: bf00 nop
  24274. }
  24275. else
  24276. {
  24277. /* Nothing To Do */
  24278. }
  24279. }
  24280. 800a9b6: 3728 adds r7, #40 @ 0x28
  24281. 800a9b8: 46bd mov sp, r7
  24282. 800a9ba: bd80 pop {r7, pc}
  24283. 800a9bc: 40020010 .word 0x40020010
  24284. 800a9c0: 40020028 .word 0x40020028
  24285. 800a9c4: 40020040 .word 0x40020040
  24286. 800a9c8: 40020058 .word 0x40020058
  24287. 800a9cc: 40020070 .word 0x40020070
  24288. 800a9d0: 40020088 .word 0x40020088
  24289. 800a9d4: 400200a0 .word 0x400200a0
  24290. 800a9d8: 400200b8 .word 0x400200b8
  24291. 800a9dc: 40020410 .word 0x40020410
  24292. 800a9e0: 40020428 .word 0x40020428
  24293. 800a9e4: 40020440 .word 0x40020440
  24294. 800a9e8: 40020458 .word 0x40020458
  24295. 800a9ec: 40020470 .word 0x40020470
  24296. 800a9f0: 40020488 .word 0x40020488
  24297. 800a9f4: 400204a0 .word 0x400204a0
  24298. 800a9f8: 400204b8 .word 0x400204b8
  24299. 0800a9fc <DMA_SetConfig>:
  24300. * @param DstAddress: The destination memory Buffer address
  24301. * @param DataLength: The length of data to be transferred from source to destination
  24302. * @retval None
  24303. */
  24304. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  24305. {
  24306. 800a9fc: b480 push {r7}
  24307. 800a9fe: b087 sub sp, #28
  24308. 800aa00: af00 add r7, sp, #0
  24309. 800aa02: 60f8 str r0, [r7, #12]
  24310. 800aa04: 60b9 str r1, [r7, #8]
  24311. 800aa06: 607a str r2, [r7, #4]
  24312. 800aa08: 603b str r3, [r7, #0]
  24313. /* calculate DMA base and stream number */
  24314. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  24315. 800aa0a: 68fb ldr r3, [r7, #12]
  24316. 800aa0c: 6d9b ldr r3, [r3, #88] @ 0x58
  24317. 800aa0e: 617b str r3, [r7, #20]
  24318. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  24319. 800aa10: 68fb ldr r3, [r7, #12]
  24320. 800aa12: 6d9b ldr r3, [r3, #88] @ 0x58
  24321. 800aa14: 613b str r3, [r7, #16]
  24322. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  24323. 800aa16: 68fb ldr r3, [r7, #12]
  24324. 800aa18: 681b ldr r3, [r3, #0]
  24325. 800aa1a: 4a7f ldr r2, [pc, #508] @ (800ac18 <DMA_SetConfig+0x21c>)
  24326. 800aa1c: 4293 cmp r3, r2
  24327. 800aa1e: d072 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24328. 800aa20: 68fb ldr r3, [r7, #12]
  24329. 800aa22: 681b ldr r3, [r3, #0]
  24330. 800aa24: 4a7d ldr r2, [pc, #500] @ (800ac1c <DMA_SetConfig+0x220>)
  24331. 800aa26: 4293 cmp r3, r2
  24332. 800aa28: d06d beq.n 800ab06 <DMA_SetConfig+0x10a>
  24333. 800aa2a: 68fb ldr r3, [r7, #12]
  24334. 800aa2c: 681b ldr r3, [r3, #0]
  24335. 800aa2e: 4a7c ldr r2, [pc, #496] @ (800ac20 <DMA_SetConfig+0x224>)
  24336. 800aa30: 4293 cmp r3, r2
  24337. 800aa32: d068 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24338. 800aa34: 68fb ldr r3, [r7, #12]
  24339. 800aa36: 681b ldr r3, [r3, #0]
  24340. 800aa38: 4a7a ldr r2, [pc, #488] @ (800ac24 <DMA_SetConfig+0x228>)
  24341. 800aa3a: 4293 cmp r3, r2
  24342. 800aa3c: d063 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24343. 800aa3e: 68fb ldr r3, [r7, #12]
  24344. 800aa40: 681b ldr r3, [r3, #0]
  24345. 800aa42: 4a79 ldr r2, [pc, #484] @ (800ac28 <DMA_SetConfig+0x22c>)
  24346. 800aa44: 4293 cmp r3, r2
  24347. 800aa46: d05e beq.n 800ab06 <DMA_SetConfig+0x10a>
  24348. 800aa48: 68fb ldr r3, [r7, #12]
  24349. 800aa4a: 681b ldr r3, [r3, #0]
  24350. 800aa4c: 4a77 ldr r2, [pc, #476] @ (800ac2c <DMA_SetConfig+0x230>)
  24351. 800aa4e: 4293 cmp r3, r2
  24352. 800aa50: d059 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24353. 800aa52: 68fb ldr r3, [r7, #12]
  24354. 800aa54: 681b ldr r3, [r3, #0]
  24355. 800aa56: 4a76 ldr r2, [pc, #472] @ (800ac30 <DMA_SetConfig+0x234>)
  24356. 800aa58: 4293 cmp r3, r2
  24357. 800aa5a: d054 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24358. 800aa5c: 68fb ldr r3, [r7, #12]
  24359. 800aa5e: 681b ldr r3, [r3, #0]
  24360. 800aa60: 4a74 ldr r2, [pc, #464] @ (800ac34 <DMA_SetConfig+0x238>)
  24361. 800aa62: 4293 cmp r3, r2
  24362. 800aa64: d04f beq.n 800ab06 <DMA_SetConfig+0x10a>
  24363. 800aa66: 68fb ldr r3, [r7, #12]
  24364. 800aa68: 681b ldr r3, [r3, #0]
  24365. 800aa6a: 4a73 ldr r2, [pc, #460] @ (800ac38 <DMA_SetConfig+0x23c>)
  24366. 800aa6c: 4293 cmp r3, r2
  24367. 800aa6e: d04a beq.n 800ab06 <DMA_SetConfig+0x10a>
  24368. 800aa70: 68fb ldr r3, [r7, #12]
  24369. 800aa72: 681b ldr r3, [r3, #0]
  24370. 800aa74: 4a71 ldr r2, [pc, #452] @ (800ac3c <DMA_SetConfig+0x240>)
  24371. 800aa76: 4293 cmp r3, r2
  24372. 800aa78: d045 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24373. 800aa7a: 68fb ldr r3, [r7, #12]
  24374. 800aa7c: 681b ldr r3, [r3, #0]
  24375. 800aa7e: 4a70 ldr r2, [pc, #448] @ (800ac40 <DMA_SetConfig+0x244>)
  24376. 800aa80: 4293 cmp r3, r2
  24377. 800aa82: d040 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24378. 800aa84: 68fb ldr r3, [r7, #12]
  24379. 800aa86: 681b ldr r3, [r3, #0]
  24380. 800aa88: 4a6e ldr r2, [pc, #440] @ (800ac44 <DMA_SetConfig+0x248>)
  24381. 800aa8a: 4293 cmp r3, r2
  24382. 800aa8c: d03b beq.n 800ab06 <DMA_SetConfig+0x10a>
  24383. 800aa8e: 68fb ldr r3, [r7, #12]
  24384. 800aa90: 681b ldr r3, [r3, #0]
  24385. 800aa92: 4a6d ldr r2, [pc, #436] @ (800ac48 <DMA_SetConfig+0x24c>)
  24386. 800aa94: 4293 cmp r3, r2
  24387. 800aa96: d036 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24388. 800aa98: 68fb ldr r3, [r7, #12]
  24389. 800aa9a: 681b ldr r3, [r3, #0]
  24390. 800aa9c: 4a6b ldr r2, [pc, #428] @ (800ac4c <DMA_SetConfig+0x250>)
  24391. 800aa9e: 4293 cmp r3, r2
  24392. 800aaa0: d031 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24393. 800aaa2: 68fb ldr r3, [r7, #12]
  24394. 800aaa4: 681b ldr r3, [r3, #0]
  24395. 800aaa6: 4a6a ldr r2, [pc, #424] @ (800ac50 <DMA_SetConfig+0x254>)
  24396. 800aaa8: 4293 cmp r3, r2
  24397. 800aaaa: d02c beq.n 800ab06 <DMA_SetConfig+0x10a>
  24398. 800aaac: 68fb ldr r3, [r7, #12]
  24399. 800aaae: 681b ldr r3, [r3, #0]
  24400. 800aab0: 4a68 ldr r2, [pc, #416] @ (800ac54 <DMA_SetConfig+0x258>)
  24401. 800aab2: 4293 cmp r3, r2
  24402. 800aab4: d027 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24403. 800aab6: 68fb ldr r3, [r7, #12]
  24404. 800aab8: 681b ldr r3, [r3, #0]
  24405. 800aaba: 4a67 ldr r2, [pc, #412] @ (800ac58 <DMA_SetConfig+0x25c>)
  24406. 800aabc: 4293 cmp r3, r2
  24407. 800aabe: d022 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24408. 800aac0: 68fb ldr r3, [r7, #12]
  24409. 800aac2: 681b ldr r3, [r3, #0]
  24410. 800aac4: 4a65 ldr r2, [pc, #404] @ (800ac5c <DMA_SetConfig+0x260>)
  24411. 800aac6: 4293 cmp r3, r2
  24412. 800aac8: d01d beq.n 800ab06 <DMA_SetConfig+0x10a>
  24413. 800aaca: 68fb ldr r3, [r7, #12]
  24414. 800aacc: 681b ldr r3, [r3, #0]
  24415. 800aace: 4a64 ldr r2, [pc, #400] @ (800ac60 <DMA_SetConfig+0x264>)
  24416. 800aad0: 4293 cmp r3, r2
  24417. 800aad2: d018 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24418. 800aad4: 68fb ldr r3, [r7, #12]
  24419. 800aad6: 681b ldr r3, [r3, #0]
  24420. 800aad8: 4a62 ldr r2, [pc, #392] @ (800ac64 <DMA_SetConfig+0x268>)
  24421. 800aada: 4293 cmp r3, r2
  24422. 800aadc: d013 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24423. 800aade: 68fb ldr r3, [r7, #12]
  24424. 800aae0: 681b ldr r3, [r3, #0]
  24425. 800aae2: 4a61 ldr r2, [pc, #388] @ (800ac68 <DMA_SetConfig+0x26c>)
  24426. 800aae4: 4293 cmp r3, r2
  24427. 800aae6: d00e beq.n 800ab06 <DMA_SetConfig+0x10a>
  24428. 800aae8: 68fb ldr r3, [r7, #12]
  24429. 800aaea: 681b ldr r3, [r3, #0]
  24430. 800aaec: 4a5f ldr r2, [pc, #380] @ (800ac6c <DMA_SetConfig+0x270>)
  24431. 800aaee: 4293 cmp r3, r2
  24432. 800aaf0: d009 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24433. 800aaf2: 68fb ldr r3, [r7, #12]
  24434. 800aaf4: 681b ldr r3, [r3, #0]
  24435. 800aaf6: 4a5e ldr r2, [pc, #376] @ (800ac70 <DMA_SetConfig+0x274>)
  24436. 800aaf8: 4293 cmp r3, r2
  24437. 800aafa: d004 beq.n 800ab06 <DMA_SetConfig+0x10a>
  24438. 800aafc: 68fb ldr r3, [r7, #12]
  24439. 800aafe: 681b ldr r3, [r3, #0]
  24440. 800ab00: 4a5c ldr r2, [pc, #368] @ (800ac74 <DMA_SetConfig+0x278>)
  24441. 800ab02: 4293 cmp r3, r2
  24442. 800ab04: d101 bne.n 800ab0a <DMA_SetConfig+0x10e>
  24443. 800ab06: 2301 movs r3, #1
  24444. 800ab08: e000 b.n 800ab0c <DMA_SetConfig+0x110>
  24445. 800ab0a: 2300 movs r3, #0
  24446. 800ab0c: 2b00 cmp r3, #0
  24447. 800ab0e: d00d beq.n 800ab2c <DMA_SetConfig+0x130>
  24448. {
  24449. /* Clear the DMAMUX synchro overrun flag */
  24450. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  24451. 800ab10: 68fb ldr r3, [r7, #12]
  24452. 800ab12: 6e5b ldr r3, [r3, #100] @ 0x64
  24453. 800ab14: 68fa ldr r2, [r7, #12]
  24454. 800ab16: 6e92 ldr r2, [r2, #104] @ 0x68
  24455. 800ab18: 605a str r2, [r3, #4]
  24456. if(hdma->DMAmuxRequestGen != 0U)
  24457. 800ab1a: 68fb ldr r3, [r7, #12]
  24458. 800ab1c: 6edb ldr r3, [r3, #108] @ 0x6c
  24459. 800ab1e: 2b00 cmp r3, #0
  24460. 800ab20: d004 beq.n 800ab2c <DMA_SetConfig+0x130>
  24461. {
  24462. /* Clear the DMAMUX request generator overrun flag */
  24463. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  24464. 800ab22: 68fb ldr r3, [r7, #12]
  24465. 800ab24: 6f1b ldr r3, [r3, #112] @ 0x70
  24466. 800ab26: 68fa ldr r2, [r7, #12]
  24467. 800ab28: 6f52 ldr r2, [r2, #116] @ 0x74
  24468. 800ab2a: 605a str r2, [r3, #4]
  24469. }
  24470. }
  24471. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24472. 800ab2c: 68fb ldr r3, [r7, #12]
  24473. 800ab2e: 681b ldr r3, [r3, #0]
  24474. 800ab30: 4a39 ldr r2, [pc, #228] @ (800ac18 <DMA_SetConfig+0x21c>)
  24475. 800ab32: 4293 cmp r3, r2
  24476. 800ab34: d04a beq.n 800abcc <DMA_SetConfig+0x1d0>
  24477. 800ab36: 68fb ldr r3, [r7, #12]
  24478. 800ab38: 681b ldr r3, [r3, #0]
  24479. 800ab3a: 4a38 ldr r2, [pc, #224] @ (800ac1c <DMA_SetConfig+0x220>)
  24480. 800ab3c: 4293 cmp r3, r2
  24481. 800ab3e: d045 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24482. 800ab40: 68fb ldr r3, [r7, #12]
  24483. 800ab42: 681b ldr r3, [r3, #0]
  24484. 800ab44: 4a36 ldr r2, [pc, #216] @ (800ac20 <DMA_SetConfig+0x224>)
  24485. 800ab46: 4293 cmp r3, r2
  24486. 800ab48: d040 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24487. 800ab4a: 68fb ldr r3, [r7, #12]
  24488. 800ab4c: 681b ldr r3, [r3, #0]
  24489. 800ab4e: 4a35 ldr r2, [pc, #212] @ (800ac24 <DMA_SetConfig+0x228>)
  24490. 800ab50: 4293 cmp r3, r2
  24491. 800ab52: d03b beq.n 800abcc <DMA_SetConfig+0x1d0>
  24492. 800ab54: 68fb ldr r3, [r7, #12]
  24493. 800ab56: 681b ldr r3, [r3, #0]
  24494. 800ab58: 4a33 ldr r2, [pc, #204] @ (800ac28 <DMA_SetConfig+0x22c>)
  24495. 800ab5a: 4293 cmp r3, r2
  24496. 800ab5c: d036 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24497. 800ab5e: 68fb ldr r3, [r7, #12]
  24498. 800ab60: 681b ldr r3, [r3, #0]
  24499. 800ab62: 4a32 ldr r2, [pc, #200] @ (800ac2c <DMA_SetConfig+0x230>)
  24500. 800ab64: 4293 cmp r3, r2
  24501. 800ab66: d031 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24502. 800ab68: 68fb ldr r3, [r7, #12]
  24503. 800ab6a: 681b ldr r3, [r3, #0]
  24504. 800ab6c: 4a30 ldr r2, [pc, #192] @ (800ac30 <DMA_SetConfig+0x234>)
  24505. 800ab6e: 4293 cmp r3, r2
  24506. 800ab70: d02c beq.n 800abcc <DMA_SetConfig+0x1d0>
  24507. 800ab72: 68fb ldr r3, [r7, #12]
  24508. 800ab74: 681b ldr r3, [r3, #0]
  24509. 800ab76: 4a2f ldr r2, [pc, #188] @ (800ac34 <DMA_SetConfig+0x238>)
  24510. 800ab78: 4293 cmp r3, r2
  24511. 800ab7a: d027 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24512. 800ab7c: 68fb ldr r3, [r7, #12]
  24513. 800ab7e: 681b ldr r3, [r3, #0]
  24514. 800ab80: 4a2d ldr r2, [pc, #180] @ (800ac38 <DMA_SetConfig+0x23c>)
  24515. 800ab82: 4293 cmp r3, r2
  24516. 800ab84: d022 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24517. 800ab86: 68fb ldr r3, [r7, #12]
  24518. 800ab88: 681b ldr r3, [r3, #0]
  24519. 800ab8a: 4a2c ldr r2, [pc, #176] @ (800ac3c <DMA_SetConfig+0x240>)
  24520. 800ab8c: 4293 cmp r3, r2
  24521. 800ab8e: d01d beq.n 800abcc <DMA_SetConfig+0x1d0>
  24522. 800ab90: 68fb ldr r3, [r7, #12]
  24523. 800ab92: 681b ldr r3, [r3, #0]
  24524. 800ab94: 4a2a ldr r2, [pc, #168] @ (800ac40 <DMA_SetConfig+0x244>)
  24525. 800ab96: 4293 cmp r3, r2
  24526. 800ab98: d018 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24527. 800ab9a: 68fb ldr r3, [r7, #12]
  24528. 800ab9c: 681b ldr r3, [r3, #0]
  24529. 800ab9e: 4a29 ldr r2, [pc, #164] @ (800ac44 <DMA_SetConfig+0x248>)
  24530. 800aba0: 4293 cmp r3, r2
  24531. 800aba2: d013 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24532. 800aba4: 68fb ldr r3, [r7, #12]
  24533. 800aba6: 681b ldr r3, [r3, #0]
  24534. 800aba8: 4a27 ldr r2, [pc, #156] @ (800ac48 <DMA_SetConfig+0x24c>)
  24535. 800abaa: 4293 cmp r3, r2
  24536. 800abac: d00e beq.n 800abcc <DMA_SetConfig+0x1d0>
  24537. 800abae: 68fb ldr r3, [r7, #12]
  24538. 800abb0: 681b ldr r3, [r3, #0]
  24539. 800abb2: 4a26 ldr r2, [pc, #152] @ (800ac4c <DMA_SetConfig+0x250>)
  24540. 800abb4: 4293 cmp r3, r2
  24541. 800abb6: d009 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24542. 800abb8: 68fb ldr r3, [r7, #12]
  24543. 800abba: 681b ldr r3, [r3, #0]
  24544. 800abbc: 4a24 ldr r2, [pc, #144] @ (800ac50 <DMA_SetConfig+0x254>)
  24545. 800abbe: 4293 cmp r3, r2
  24546. 800abc0: d004 beq.n 800abcc <DMA_SetConfig+0x1d0>
  24547. 800abc2: 68fb ldr r3, [r7, #12]
  24548. 800abc4: 681b ldr r3, [r3, #0]
  24549. 800abc6: 4a23 ldr r2, [pc, #140] @ (800ac54 <DMA_SetConfig+0x258>)
  24550. 800abc8: 4293 cmp r3, r2
  24551. 800abca: d101 bne.n 800abd0 <DMA_SetConfig+0x1d4>
  24552. 800abcc: 2301 movs r3, #1
  24553. 800abce: e000 b.n 800abd2 <DMA_SetConfig+0x1d6>
  24554. 800abd0: 2300 movs r3, #0
  24555. 800abd2: 2b00 cmp r3, #0
  24556. 800abd4: d059 beq.n 800ac8a <DMA_SetConfig+0x28e>
  24557. {
  24558. /* Clear all interrupt flags at correct offset within the register */
  24559. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  24560. 800abd6: 68fb ldr r3, [r7, #12]
  24561. 800abd8: 6ddb ldr r3, [r3, #92] @ 0x5c
  24562. 800abda: f003 031f and.w r3, r3, #31
  24563. 800abde: 223f movs r2, #63 @ 0x3f
  24564. 800abe0: 409a lsls r2, r3
  24565. 800abe2: 697b ldr r3, [r7, #20]
  24566. 800abe4: 609a str r2, [r3, #8]
  24567. /* Clear DBM bit */
  24568. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  24569. 800abe6: 68fb ldr r3, [r7, #12]
  24570. 800abe8: 681b ldr r3, [r3, #0]
  24571. 800abea: 681a ldr r2, [r3, #0]
  24572. 800abec: 68fb ldr r3, [r7, #12]
  24573. 800abee: 681b ldr r3, [r3, #0]
  24574. 800abf0: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  24575. 800abf4: 601a str r2, [r3, #0]
  24576. /* Configure DMA Stream data length */
  24577. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  24578. 800abf6: 68fb ldr r3, [r7, #12]
  24579. 800abf8: 681b ldr r3, [r3, #0]
  24580. 800abfa: 683a ldr r2, [r7, #0]
  24581. 800abfc: 605a str r2, [r3, #4]
  24582. /* Peripheral to Memory */
  24583. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24584. 800abfe: 68fb ldr r3, [r7, #12]
  24585. 800ac00: 689b ldr r3, [r3, #8]
  24586. 800ac02: 2b40 cmp r3, #64 @ 0x40
  24587. 800ac04: d138 bne.n 800ac78 <DMA_SetConfig+0x27c>
  24588. {
  24589. /* Configure DMA Stream destination address */
  24590. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  24591. 800ac06: 68fb ldr r3, [r7, #12]
  24592. 800ac08: 681b ldr r3, [r3, #0]
  24593. 800ac0a: 687a ldr r2, [r7, #4]
  24594. 800ac0c: 609a str r2, [r3, #8]
  24595. /* Configure DMA Stream source address */
  24596. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  24597. 800ac0e: 68fb ldr r3, [r7, #12]
  24598. 800ac10: 681b ldr r3, [r3, #0]
  24599. 800ac12: 68ba ldr r2, [r7, #8]
  24600. 800ac14: 60da str r2, [r3, #12]
  24601. }
  24602. else
  24603. {
  24604. /* Nothing To Do */
  24605. }
  24606. }
  24607. 800ac16: e086 b.n 800ad26 <DMA_SetConfig+0x32a>
  24608. 800ac18: 40020010 .word 0x40020010
  24609. 800ac1c: 40020028 .word 0x40020028
  24610. 800ac20: 40020040 .word 0x40020040
  24611. 800ac24: 40020058 .word 0x40020058
  24612. 800ac28: 40020070 .word 0x40020070
  24613. 800ac2c: 40020088 .word 0x40020088
  24614. 800ac30: 400200a0 .word 0x400200a0
  24615. 800ac34: 400200b8 .word 0x400200b8
  24616. 800ac38: 40020410 .word 0x40020410
  24617. 800ac3c: 40020428 .word 0x40020428
  24618. 800ac40: 40020440 .word 0x40020440
  24619. 800ac44: 40020458 .word 0x40020458
  24620. 800ac48: 40020470 .word 0x40020470
  24621. 800ac4c: 40020488 .word 0x40020488
  24622. 800ac50: 400204a0 .word 0x400204a0
  24623. 800ac54: 400204b8 .word 0x400204b8
  24624. 800ac58: 58025408 .word 0x58025408
  24625. 800ac5c: 5802541c .word 0x5802541c
  24626. 800ac60: 58025430 .word 0x58025430
  24627. 800ac64: 58025444 .word 0x58025444
  24628. 800ac68: 58025458 .word 0x58025458
  24629. 800ac6c: 5802546c .word 0x5802546c
  24630. 800ac70: 58025480 .word 0x58025480
  24631. 800ac74: 58025494 .word 0x58025494
  24632. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  24633. 800ac78: 68fb ldr r3, [r7, #12]
  24634. 800ac7a: 681b ldr r3, [r3, #0]
  24635. 800ac7c: 68ba ldr r2, [r7, #8]
  24636. 800ac7e: 609a str r2, [r3, #8]
  24637. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  24638. 800ac80: 68fb ldr r3, [r7, #12]
  24639. 800ac82: 681b ldr r3, [r3, #0]
  24640. 800ac84: 687a ldr r2, [r7, #4]
  24641. 800ac86: 60da str r2, [r3, #12]
  24642. }
  24643. 800ac88: e04d b.n 800ad26 <DMA_SetConfig+0x32a>
  24644. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  24645. 800ac8a: 68fb ldr r3, [r7, #12]
  24646. 800ac8c: 681b ldr r3, [r3, #0]
  24647. 800ac8e: 4a29 ldr r2, [pc, #164] @ (800ad34 <DMA_SetConfig+0x338>)
  24648. 800ac90: 4293 cmp r3, r2
  24649. 800ac92: d022 beq.n 800acda <DMA_SetConfig+0x2de>
  24650. 800ac94: 68fb ldr r3, [r7, #12]
  24651. 800ac96: 681b ldr r3, [r3, #0]
  24652. 800ac98: 4a27 ldr r2, [pc, #156] @ (800ad38 <DMA_SetConfig+0x33c>)
  24653. 800ac9a: 4293 cmp r3, r2
  24654. 800ac9c: d01d beq.n 800acda <DMA_SetConfig+0x2de>
  24655. 800ac9e: 68fb ldr r3, [r7, #12]
  24656. 800aca0: 681b ldr r3, [r3, #0]
  24657. 800aca2: 4a26 ldr r2, [pc, #152] @ (800ad3c <DMA_SetConfig+0x340>)
  24658. 800aca4: 4293 cmp r3, r2
  24659. 800aca6: d018 beq.n 800acda <DMA_SetConfig+0x2de>
  24660. 800aca8: 68fb ldr r3, [r7, #12]
  24661. 800acaa: 681b ldr r3, [r3, #0]
  24662. 800acac: 4a24 ldr r2, [pc, #144] @ (800ad40 <DMA_SetConfig+0x344>)
  24663. 800acae: 4293 cmp r3, r2
  24664. 800acb0: d013 beq.n 800acda <DMA_SetConfig+0x2de>
  24665. 800acb2: 68fb ldr r3, [r7, #12]
  24666. 800acb4: 681b ldr r3, [r3, #0]
  24667. 800acb6: 4a23 ldr r2, [pc, #140] @ (800ad44 <DMA_SetConfig+0x348>)
  24668. 800acb8: 4293 cmp r3, r2
  24669. 800acba: d00e beq.n 800acda <DMA_SetConfig+0x2de>
  24670. 800acbc: 68fb ldr r3, [r7, #12]
  24671. 800acbe: 681b ldr r3, [r3, #0]
  24672. 800acc0: 4a21 ldr r2, [pc, #132] @ (800ad48 <DMA_SetConfig+0x34c>)
  24673. 800acc2: 4293 cmp r3, r2
  24674. 800acc4: d009 beq.n 800acda <DMA_SetConfig+0x2de>
  24675. 800acc6: 68fb ldr r3, [r7, #12]
  24676. 800acc8: 681b ldr r3, [r3, #0]
  24677. 800acca: 4a20 ldr r2, [pc, #128] @ (800ad4c <DMA_SetConfig+0x350>)
  24678. 800accc: 4293 cmp r3, r2
  24679. 800acce: d004 beq.n 800acda <DMA_SetConfig+0x2de>
  24680. 800acd0: 68fb ldr r3, [r7, #12]
  24681. 800acd2: 681b ldr r3, [r3, #0]
  24682. 800acd4: 4a1e ldr r2, [pc, #120] @ (800ad50 <DMA_SetConfig+0x354>)
  24683. 800acd6: 4293 cmp r3, r2
  24684. 800acd8: d101 bne.n 800acde <DMA_SetConfig+0x2e2>
  24685. 800acda: 2301 movs r3, #1
  24686. 800acdc: e000 b.n 800ace0 <DMA_SetConfig+0x2e4>
  24687. 800acde: 2300 movs r3, #0
  24688. 800ace0: 2b00 cmp r3, #0
  24689. 800ace2: d020 beq.n 800ad26 <DMA_SetConfig+0x32a>
  24690. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24691. 800ace4: 68fb ldr r3, [r7, #12]
  24692. 800ace6: 6ddb ldr r3, [r3, #92] @ 0x5c
  24693. 800ace8: f003 031f and.w r3, r3, #31
  24694. 800acec: 2201 movs r2, #1
  24695. 800acee: 409a lsls r2, r3
  24696. 800acf0: 693b ldr r3, [r7, #16]
  24697. 800acf2: 605a str r2, [r3, #4]
  24698. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  24699. 800acf4: 68fb ldr r3, [r7, #12]
  24700. 800acf6: 681b ldr r3, [r3, #0]
  24701. 800acf8: 683a ldr r2, [r7, #0]
  24702. 800acfa: 605a str r2, [r3, #4]
  24703. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24704. 800acfc: 68fb ldr r3, [r7, #12]
  24705. 800acfe: 689b ldr r3, [r3, #8]
  24706. 800ad00: 2b40 cmp r3, #64 @ 0x40
  24707. 800ad02: d108 bne.n 800ad16 <DMA_SetConfig+0x31a>
  24708. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  24709. 800ad04: 68fb ldr r3, [r7, #12]
  24710. 800ad06: 681b ldr r3, [r3, #0]
  24711. 800ad08: 687a ldr r2, [r7, #4]
  24712. 800ad0a: 609a str r2, [r3, #8]
  24713. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  24714. 800ad0c: 68fb ldr r3, [r7, #12]
  24715. 800ad0e: 681b ldr r3, [r3, #0]
  24716. 800ad10: 68ba ldr r2, [r7, #8]
  24717. 800ad12: 60da str r2, [r3, #12]
  24718. }
  24719. 800ad14: e007 b.n 800ad26 <DMA_SetConfig+0x32a>
  24720. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  24721. 800ad16: 68fb ldr r3, [r7, #12]
  24722. 800ad18: 681b ldr r3, [r3, #0]
  24723. 800ad1a: 68ba ldr r2, [r7, #8]
  24724. 800ad1c: 609a str r2, [r3, #8]
  24725. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  24726. 800ad1e: 68fb ldr r3, [r7, #12]
  24727. 800ad20: 681b ldr r3, [r3, #0]
  24728. 800ad22: 687a ldr r2, [r7, #4]
  24729. 800ad24: 60da str r2, [r3, #12]
  24730. }
  24731. 800ad26: bf00 nop
  24732. 800ad28: 371c adds r7, #28
  24733. 800ad2a: 46bd mov sp, r7
  24734. 800ad2c: f85d 7b04 ldr.w r7, [sp], #4
  24735. 800ad30: 4770 bx lr
  24736. 800ad32: bf00 nop
  24737. 800ad34: 58025408 .word 0x58025408
  24738. 800ad38: 5802541c .word 0x5802541c
  24739. 800ad3c: 58025430 .word 0x58025430
  24740. 800ad40: 58025444 .word 0x58025444
  24741. 800ad44: 58025458 .word 0x58025458
  24742. 800ad48: 5802546c .word 0x5802546c
  24743. 800ad4c: 58025480 .word 0x58025480
  24744. 800ad50: 58025494 .word 0x58025494
  24745. 0800ad54 <DMA_CalcBaseAndBitshift>:
  24746. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24747. * the configuration information for the specified DMA Stream.
  24748. * @retval Stream base address
  24749. */
  24750. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  24751. {
  24752. 800ad54: b480 push {r7}
  24753. 800ad56: b085 sub sp, #20
  24754. 800ad58: af00 add r7, sp, #0
  24755. 800ad5a: 6078 str r0, [r7, #4]
  24756. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24757. 800ad5c: 687b ldr r3, [r7, #4]
  24758. 800ad5e: 681b ldr r3, [r3, #0]
  24759. 800ad60: 4a42 ldr r2, [pc, #264] @ (800ae6c <DMA_CalcBaseAndBitshift+0x118>)
  24760. 800ad62: 4293 cmp r3, r2
  24761. 800ad64: d04a beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24762. 800ad66: 687b ldr r3, [r7, #4]
  24763. 800ad68: 681b ldr r3, [r3, #0]
  24764. 800ad6a: 4a41 ldr r2, [pc, #260] @ (800ae70 <DMA_CalcBaseAndBitshift+0x11c>)
  24765. 800ad6c: 4293 cmp r3, r2
  24766. 800ad6e: d045 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24767. 800ad70: 687b ldr r3, [r7, #4]
  24768. 800ad72: 681b ldr r3, [r3, #0]
  24769. 800ad74: 4a3f ldr r2, [pc, #252] @ (800ae74 <DMA_CalcBaseAndBitshift+0x120>)
  24770. 800ad76: 4293 cmp r3, r2
  24771. 800ad78: d040 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24772. 800ad7a: 687b ldr r3, [r7, #4]
  24773. 800ad7c: 681b ldr r3, [r3, #0]
  24774. 800ad7e: 4a3e ldr r2, [pc, #248] @ (800ae78 <DMA_CalcBaseAndBitshift+0x124>)
  24775. 800ad80: 4293 cmp r3, r2
  24776. 800ad82: d03b beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24777. 800ad84: 687b ldr r3, [r7, #4]
  24778. 800ad86: 681b ldr r3, [r3, #0]
  24779. 800ad88: 4a3c ldr r2, [pc, #240] @ (800ae7c <DMA_CalcBaseAndBitshift+0x128>)
  24780. 800ad8a: 4293 cmp r3, r2
  24781. 800ad8c: d036 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24782. 800ad8e: 687b ldr r3, [r7, #4]
  24783. 800ad90: 681b ldr r3, [r3, #0]
  24784. 800ad92: 4a3b ldr r2, [pc, #236] @ (800ae80 <DMA_CalcBaseAndBitshift+0x12c>)
  24785. 800ad94: 4293 cmp r3, r2
  24786. 800ad96: d031 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24787. 800ad98: 687b ldr r3, [r7, #4]
  24788. 800ad9a: 681b ldr r3, [r3, #0]
  24789. 800ad9c: 4a39 ldr r2, [pc, #228] @ (800ae84 <DMA_CalcBaseAndBitshift+0x130>)
  24790. 800ad9e: 4293 cmp r3, r2
  24791. 800ada0: d02c beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24792. 800ada2: 687b ldr r3, [r7, #4]
  24793. 800ada4: 681b ldr r3, [r3, #0]
  24794. 800ada6: 4a38 ldr r2, [pc, #224] @ (800ae88 <DMA_CalcBaseAndBitshift+0x134>)
  24795. 800ada8: 4293 cmp r3, r2
  24796. 800adaa: d027 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24797. 800adac: 687b ldr r3, [r7, #4]
  24798. 800adae: 681b ldr r3, [r3, #0]
  24799. 800adb0: 4a36 ldr r2, [pc, #216] @ (800ae8c <DMA_CalcBaseAndBitshift+0x138>)
  24800. 800adb2: 4293 cmp r3, r2
  24801. 800adb4: d022 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24802. 800adb6: 687b ldr r3, [r7, #4]
  24803. 800adb8: 681b ldr r3, [r3, #0]
  24804. 800adba: 4a35 ldr r2, [pc, #212] @ (800ae90 <DMA_CalcBaseAndBitshift+0x13c>)
  24805. 800adbc: 4293 cmp r3, r2
  24806. 800adbe: d01d beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24807. 800adc0: 687b ldr r3, [r7, #4]
  24808. 800adc2: 681b ldr r3, [r3, #0]
  24809. 800adc4: 4a33 ldr r2, [pc, #204] @ (800ae94 <DMA_CalcBaseAndBitshift+0x140>)
  24810. 800adc6: 4293 cmp r3, r2
  24811. 800adc8: d018 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24812. 800adca: 687b ldr r3, [r7, #4]
  24813. 800adcc: 681b ldr r3, [r3, #0]
  24814. 800adce: 4a32 ldr r2, [pc, #200] @ (800ae98 <DMA_CalcBaseAndBitshift+0x144>)
  24815. 800add0: 4293 cmp r3, r2
  24816. 800add2: d013 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24817. 800add4: 687b ldr r3, [r7, #4]
  24818. 800add6: 681b ldr r3, [r3, #0]
  24819. 800add8: 4a30 ldr r2, [pc, #192] @ (800ae9c <DMA_CalcBaseAndBitshift+0x148>)
  24820. 800adda: 4293 cmp r3, r2
  24821. 800addc: d00e beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24822. 800adde: 687b ldr r3, [r7, #4]
  24823. 800ade0: 681b ldr r3, [r3, #0]
  24824. 800ade2: 4a2f ldr r2, [pc, #188] @ (800aea0 <DMA_CalcBaseAndBitshift+0x14c>)
  24825. 800ade4: 4293 cmp r3, r2
  24826. 800ade6: d009 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24827. 800ade8: 687b ldr r3, [r7, #4]
  24828. 800adea: 681b ldr r3, [r3, #0]
  24829. 800adec: 4a2d ldr r2, [pc, #180] @ (800aea4 <DMA_CalcBaseAndBitshift+0x150>)
  24830. 800adee: 4293 cmp r3, r2
  24831. 800adf0: d004 beq.n 800adfc <DMA_CalcBaseAndBitshift+0xa8>
  24832. 800adf2: 687b ldr r3, [r7, #4]
  24833. 800adf4: 681b ldr r3, [r3, #0]
  24834. 800adf6: 4a2c ldr r2, [pc, #176] @ (800aea8 <DMA_CalcBaseAndBitshift+0x154>)
  24835. 800adf8: 4293 cmp r3, r2
  24836. 800adfa: d101 bne.n 800ae00 <DMA_CalcBaseAndBitshift+0xac>
  24837. 800adfc: 2301 movs r3, #1
  24838. 800adfe: e000 b.n 800ae02 <DMA_CalcBaseAndBitshift+0xae>
  24839. 800ae00: 2300 movs r3, #0
  24840. 800ae02: 2b00 cmp r3, #0
  24841. 800ae04: d024 beq.n 800ae50 <DMA_CalcBaseAndBitshift+0xfc>
  24842. {
  24843. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24844. 800ae06: 687b ldr r3, [r7, #4]
  24845. 800ae08: 681b ldr r3, [r3, #0]
  24846. 800ae0a: b2db uxtb r3, r3
  24847. 800ae0c: 3b10 subs r3, #16
  24848. 800ae0e: 4a27 ldr r2, [pc, #156] @ (800aeac <DMA_CalcBaseAndBitshift+0x158>)
  24849. 800ae10: fba2 2303 umull r2, r3, r2, r3
  24850. 800ae14: 091b lsrs r3, r3, #4
  24851. 800ae16: 60fb str r3, [r7, #12]
  24852. /* lookup table for necessary bitshift of flags within status registers */
  24853. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  24854. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  24855. 800ae18: 68fb ldr r3, [r7, #12]
  24856. 800ae1a: f003 0307 and.w r3, r3, #7
  24857. 800ae1e: 4a24 ldr r2, [pc, #144] @ (800aeb0 <DMA_CalcBaseAndBitshift+0x15c>)
  24858. 800ae20: 5cd3 ldrb r3, [r2, r3]
  24859. 800ae22: 461a mov r2, r3
  24860. 800ae24: 687b ldr r3, [r7, #4]
  24861. 800ae26: 65da str r2, [r3, #92] @ 0x5c
  24862. if (stream_number > 3U)
  24863. 800ae28: 68fb ldr r3, [r7, #12]
  24864. 800ae2a: 2b03 cmp r3, #3
  24865. 800ae2c: d908 bls.n 800ae40 <DMA_CalcBaseAndBitshift+0xec>
  24866. {
  24867. /* return pointer to HISR and HIFCR */
  24868. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  24869. 800ae2e: 687b ldr r3, [r7, #4]
  24870. 800ae30: 681b ldr r3, [r3, #0]
  24871. 800ae32: 461a mov r2, r3
  24872. 800ae34: 4b1f ldr r3, [pc, #124] @ (800aeb4 <DMA_CalcBaseAndBitshift+0x160>)
  24873. 800ae36: 4013 ands r3, r2
  24874. 800ae38: 1d1a adds r2, r3, #4
  24875. 800ae3a: 687b ldr r3, [r7, #4]
  24876. 800ae3c: 659a str r2, [r3, #88] @ 0x58
  24877. 800ae3e: e00d b.n 800ae5c <DMA_CalcBaseAndBitshift+0x108>
  24878. }
  24879. else
  24880. {
  24881. /* return pointer to LISR and LIFCR */
  24882. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  24883. 800ae40: 687b ldr r3, [r7, #4]
  24884. 800ae42: 681b ldr r3, [r3, #0]
  24885. 800ae44: 461a mov r2, r3
  24886. 800ae46: 4b1b ldr r3, [pc, #108] @ (800aeb4 <DMA_CalcBaseAndBitshift+0x160>)
  24887. 800ae48: 4013 ands r3, r2
  24888. 800ae4a: 687a ldr r2, [r7, #4]
  24889. 800ae4c: 6593 str r3, [r2, #88] @ 0x58
  24890. 800ae4e: e005 b.n 800ae5c <DMA_CalcBaseAndBitshift+0x108>
  24891. }
  24892. }
  24893. else /* BDMA instance(s) */
  24894. {
  24895. /* return pointer to ISR and IFCR */
  24896. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  24897. 800ae50: 687b ldr r3, [r7, #4]
  24898. 800ae52: 681b ldr r3, [r3, #0]
  24899. 800ae54: f023 02ff bic.w r2, r3, #255 @ 0xff
  24900. 800ae58: 687b ldr r3, [r7, #4]
  24901. 800ae5a: 659a str r2, [r3, #88] @ 0x58
  24902. }
  24903. return hdma->StreamBaseAddress;
  24904. 800ae5c: 687b ldr r3, [r7, #4]
  24905. 800ae5e: 6d9b ldr r3, [r3, #88] @ 0x58
  24906. }
  24907. 800ae60: 4618 mov r0, r3
  24908. 800ae62: 3714 adds r7, #20
  24909. 800ae64: 46bd mov sp, r7
  24910. 800ae66: f85d 7b04 ldr.w r7, [sp], #4
  24911. 800ae6a: 4770 bx lr
  24912. 800ae6c: 40020010 .word 0x40020010
  24913. 800ae70: 40020028 .word 0x40020028
  24914. 800ae74: 40020040 .word 0x40020040
  24915. 800ae78: 40020058 .word 0x40020058
  24916. 800ae7c: 40020070 .word 0x40020070
  24917. 800ae80: 40020088 .word 0x40020088
  24918. 800ae84: 400200a0 .word 0x400200a0
  24919. 800ae88: 400200b8 .word 0x400200b8
  24920. 800ae8c: 40020410 .word 0x40020410
  24921. 800ae90: 40020428 .word 0x40020428
  24922. 800ae94: 40020440 .word 0x40020440
  24923. 800ae98: 40020458 .word 0x40020458
  24924. 800ae9c: 40020470 .word 0x40020470
  24925. 800aea0: 40020488 .word 0x40020488
  24926. 800aea4: 400204a0 .word 0x400204a0
  24927. 800aea8: 400204b8 .word 0x400204b8
  24928. 800aeac: aaaaaaab .word 0xaaaaaaab
  24929. 800aeb0: 0801870c .word 0x0801870c
  24930. 800aeb4: fffffc00 .word 0xfffffc00
  24931. 0800aeb8 <DMA_CheckFifoParam>:
  24932. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24933. * the configuration information for the specified DMA Stream.
  24934. * @retval HAL status
  24935. */
  24936. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  24937. {
  24938. 800aeb8: b480 push {r7}
  24939. 800aeba: b085 sub sp, #20
  24940. 800aebc: af00 add r7, sp, #0
  24941. 800aebe: 6078 str r0, [r7, #4]
  24942. HAL_StatusTypeDef status = HAL_OK;
  24943. 800aec0: 2300 movs r3, #0
  24944. 800aec2: 73fb strb r3, [r7, #15]
  24945. /* Memory Data size equal to Byte */
  24946. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  24947. 800aec4: 687b ldr r3, [r7, #4]
  24948. 800aec6: 699b ldr r3, [r3, #24]
  24949. 800aec8: 2b00 cmp r3, #0
  24950. 800aeca: d120 bne.n 800af0e <DMA_CheckFifoParam+0x56>
  24951. {
  24952. switch (hdma->Init.FIFOThreshold)
  24953. 800aecc: 687b ldr r3, [r7, #4]
  24954. 800aece: 6a9b ldr r3, [r3, #40] @ 0x28
  24955. 800aed0: 2b03 cmp r3, #3
  24956. 800aed2: d858 bhi.n 800af86 <DMA_CheckFifoParam+0xce>
  24957. 800aed4: a201 add r2, pc, #4 @ (adr r2, 800aedc <DMA_CheckFifoParam+0x24>)
  24958. 800aed6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24959. 800aeda: bf00 nop
  24960. 800aedc: 0800aeed .word 0x0800aeed
  24961. 800aee0: 0800aeff .word 0x0800aeff
  24962. 800aee4: 0800aeed .word 0x0800aeed
  24963. 800aee8: 0800af87 .word 0x0800af87
  24964. {
  24965. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  24966. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  24967. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24968. 800aeec: 687b ldr r3, [r7, #4]
  24969. 800aeee: 6adb ldr r3, [r3, #44] @ 0x2c
  24970. 800aef0: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24971. 800aef4: 2b00 cmp r3, #0
  24972. 800aef6: d048 beq.n 800af8a <DMA_CheckFifoParam+0xd2>
  24973. {
  24974. status = HAL_ERROR;
  24975. 800aef8: 2301 movs r3, #1
  24976. 800aefa: 73fb strb r3, [r7, #15]
  24977. }
  24978. break;
  24979. 800aefc: e045 b.n 800af8a <DMA_CheckFifoParam+0xd2>
  24980. case DMA_FIFO_THRESHOLD_HALFFULL:
  24981. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  24982. 800aefe: 687b ldr r3, [r7, #4]
  24983. 800af00: 6adb ldr r3, [r3, #44] @ 0x2c
  24984. 800af02: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  24985. 800af06: d142 bne.n 800af8e <DMA_CheckFifoParam+0xd6>
  24986. {
  24987. status = HAL_ERROR;
  24988. 800af08: 2301 movs r3, #1
  24989. 800af0a: 73fb strb r3, [r7, #15]
  24990. }
  24991. break;
  24992. 800af0c: e03f b.n 800af8e <DMA_CheckFifoParam+0xd6>
  24993. break;
  24994. }
  24995. }
  24996. /* Memory Data size equal to Half-Word */
  24997. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  24998. 800af0e: 687b ldr r3, [r7, #4]
  24999. 800af10: 699b ldr r3, [r3, #24]
  25000. 800af12: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25001. 800af16: d123 bne.n 800af60 <DMA_CheckFifoParam+0xa8>
  25002. {
  25003. switch (hdma->Init.FIFOThreshold)
  25004. 800af18: 687b ldr r3, [r7, #4]
  25005. 800af1a: 6a9b ldr r3, [r3, #40] @ 0x28
  25006. 800af1c: 2b03 cmp r3, #3
  25007. 800af1e: d838 bhi.n 800af92 <DMA_CheckFifoParam+0xda>
  25008. 800af20: a201 add r2, pc, #4 @ (adr r2, 800af28 <DMA_CheckFifoParam+0x70>)
  25009. 800af22: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25010. 800af26: bf00 nop
  25011. 800af28: 0800af39 .word 0x0800af39
  25012. 800af2c: 0800af3f .word 0x0800af3f
  25013. 800af30: 0800af39 .word 0x0800af39
  25014. 800af34: 0800af51 .word 0x0800af51
  25015. {
  25016. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  25017. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  25018. status = HAL_ERROR;
  25019. 800af38: 2301 movs r3, #1
  25020. 800af3a: 73fb strb r3, [r7, #15]
  25021. break;
  25022. 800af3c: e030 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25023. case DMA_FIFO_THRESHOLD_HALFFULL:
  25024. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25025. 800af3e: 687b ldr r3, [r7, #4]
  25026. 800af40: 6adb ldr r3, [r3, #44] @ 0x2c
  25027. 800af42: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25028. 800af46: 2b00 cmp r3, #0
  25029. 800af48: d025 beq.n 800af96 <DMA_CheckFifoParam+0xde>
  25030. {
  25031. status = HAL_ERROR;
  25032. 800af4a: 2301 movs r3, #1
  25033. 800af4c: 73fb strb r3, [r7, #15]
  25034. }
  25035. break;
  25036. 800af4e: e022 b.n 800af96 <DMA_CheckFifoParam+0xde>
  25037. case DMA_FIFO_THRESHOLD_FULL:
  25038. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  25039. 800af50: 687b ldr r3, [r7, #4]
  25040. 800af52: 6adb ldr r3, [r3, #44] @ 0x2c
  25041. 800af54: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  25042. 800af58: d11f bne.n 800af9a <DMA_CheckFifoParam+0xe2>
  25043. {
  25044. status = HAL_ERROR;
  25045. 800af5a: 2301 movs r3, #1
  25046. 800af5c: 73fb strb r3, [r7, #15]
  25047. }
  25048. break;
  25049. 800af5e: e01c b.n 800af9a <DMA_CheckFifoParam+0xe2>
  25050. }
  25051. /* Memory Data size equal to Word */
  25052. else
  25053. {
  25054. switch (hdma->Init.FIFOThreshold)
  25055. 800af60: 687b ldr r3, [r7, #4]
  25056. 800af62: 6a9b ldr r3, [r3, #40] @ 0x28
  25057. 800af64: 2b02 cmp r3, #2
  25058. 800af66: d902 bls.n 800af6e <DMA_CheckFifoParam+0xb6>
  25059. 800af68: 2b03 cmp r3, #3
  25060. 800af6a: d003 beq.n 800af74 <DMA_CheckFifoParam+0xbc>
  25061. status = HAL_ERROR;
  25062. }
  25063. break;
  25064. default:
  25065. break;
  25066. 800af6c: e018 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25067. status = HAL_ERROR;
  25068. 800af6e: 2301 movs r3, #1
  25069. 800af70: 73fb strb r3, [r7, #15]
  25070. break;
  25071. 800af72: e015 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25072. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25073. 800af74: 687b ldr r3, [r7, #4]
  25074. 800af76: 6adb ldr r3, [r3, #44] @ 0x2c
  25075. 800af78: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25076. 800af7c: 2b00 cmp r3, #0
  25077. 800af7e: d00e beq.n 800af9e <DMA_CheckFifoParam+0xe6>
  25078. status = HAL_ERROR;
  25079. 800af80: 2301 movs r3, #1
  25080. 800af82: 73fb strb r3, [r7, #15]
  25081. break;
  25082. 800af84: e00b b.n 800af9e <DMA_CheckFifoParam+0xe6>
  25083. break;
  25084. 800af86: bf00 nop
  25085. 800af88: e00a b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25086. break;
  25087. 800af8a: bf00 nop
  25088. 800af8c: e008 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25089. break;
  25090. 800af8e: bf00 nop
  25091. 800af90: e006 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25092. break;
  25093. 800af92: bf00 nop
  25094. 800af94: e004 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25095. break;
  25096. 800af96: bf00 nop
  25097. 800af98: e002 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25098. break;
  25099. 800af9a: bf00 nop
  25100. 800af9c: e000 b.n 800afa0 <DMA_CheckFifoParam+0xe8>
  25101. break;
  25102. 800af9e: bf00 nop
  25103. }
  25104. }
  25105. return status;
  25106. 800afa0: 7bfb ldrb r3, [r7, #15]
  25107. }
  25108. 800afa2: 4618 mov r0, r3
  25109. 800afa4: 3714 adds r7, #20
  25110. 800afa6: 46bd mov sp, r7
  25111. 800afa8: f85d 7b04 ldr.w r7, [sp], #4
  25112. 800afac: 4770 bx lr
  25113. 800afae: bf00 nop
  25114. 0800afb0 <DMA_CalcDMAMUXChannelBaseAndMask>:
  25115. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25116. * the configuration information for the specified DMA Stream.
  25117. * @retval HAL status
  25118. */
  25119. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  25120. {
  25121. 800afb0: b480 push {r7}
  25122. 800afb2: b085 sub sp, #20
  25123. 800afb4: af00 add r7, sp, #0
  25124. 800afb6: 6078 str r0, [r7, #4]
  25125. uint32_t stream_number;
  25126. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  25127. 800afb8: 687b ldr r3, [r7, #4]
  25128. 800afba: 681b ldr r3, [r3, #0]
  25129. 800afbc: 60bb str r3, [r7, #8]
  25130. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25131. 800afbe: 687b ldr r3, [r7, #4]
  25132. 800afc0: 681b ldr r3, [r3, #0]
  25133. 800afc2: 4a38 ldr r2, [pc, #224] @ (800b0a4 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  25134. 800afc4: 4293 cmp r3, r2
  25135. 800afc6: d022 beq.n 800b00e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25136. 800afc8: 687b ldr r3, [r7, #4]
  25137. 800afca: 681b ldr r3, [r3, #0]
  25138. 800afcc: 4a36 ldr r2, [pc, #216] @ (800b0a8 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  25139. 800afce: 4293 cmp r3, r2
  25140. 800afd0: d01d beq.n 800b00e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25141. 800afd2: 687b ldr r3, [r7, #4]
  25142. 800afd4: 681b ldr r3, [r3, #0]
  25143. 800afd6: 4a35 ldr r2, [pc, #212] @ (800b0ac <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  25144. 800afd8: 4293 cmp r3, r2
  25145. 800afda: d018 beq.n 800b00e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25146. 800afdc: 687b ldr r3, [r7, #4]
  25147. 800afde: 681b ldr r3, [r3, #0]
  25148. 800afe0: 4a33 ldr r2, [pc, #204] @ (800b0b0 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  25149. 800afe2: 4293 cmp r3, r2
  25150. 800afe4: d013 beq.n 800b00e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25151. 800afe6: 687b ldr r3, [r7, #4]
  25152. 800afe8: 681b ldr r3, [r3, #0]
  25153. 800afea: 4a32 ldr r2, [pc, #200] @ (800b0b4 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  25154. 800afec: 4293 cmp r3, r2
  25155. 800afee: d00e beq.n 800b00e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25156. 800aff0: 687b ldr r3, [r7, #4]
  25157. 800aff2: 681b ldr r3, [r3, #0]
  25158. 800aff4: 4a30 ldr r2, [pc, #192] @ (800b0b8 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  25159. 800aff6: 4293 cmp r3, r2
  25160. 800aff8: d009 beq.n 800b00e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25161. 800affa: 687b ldr r3, [r7, #4]
  25162. 800affc: 681b ldr r3, [r3, #0]
  25163. 800affe: 4a2f ldr r2, [pc, #188] @ (800b0bc <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  25164. 800b000: 4293 cmp r3, r2
  25165. 800b002: d004 beq.n 800b00e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25166. 800b004: 687b ldr r3, [r7, #4]
  25167. 800b006: 681b ldr r3, [r3, #0]
  25168. 800b008: 4a2d ldr r2, [pc, #180] @ (800b0c0 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  25169. 800b00a: 4293 cmp r3, r2
  25170. 800b00c: d101 bne.n 800b012 <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  25171. 800b00e: 2301 movs r3, #1
  25172. 800b010: e000 b.n 800b014 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  25173. 800b012: 2300 movs r3, #0
  25174. 800b014: 2b00 cmp r3, #0
  25175. 800b016: d01a beq.n 800b04e <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  25176. {
  25177. /* BDMA Channels are connected to DMAMUX2 channels */
  25178. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  25179. 800b018: 687b ldr r3, [r7, #4]
  25180. 800b01a: 681b ldr r3, [r3, #0]
  25181. 800b01c: b2db uxtb r3, r3
  25182. 800b01e: 3b08 subs r3, #8
  25183. 800b020: 4a28 ldr r2, [pc, #160] @ (800b0c4 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  25184. 800b022: fba2 2303 umull r2, r3, r2, r3
  25185. 800b026: 091b lsrs r3, r3, #4
  25186. 800b028: 60fb str r3, [r7, #12]
  25187. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  25188. 800b02a: 68fa ldr r2, [r7, #12]
  25189. 800b02c: 4b26 ldr r3, [pc, #152] @ (800b0c8 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  25190. 800b02e: 4413 add r3, r2
  25191. 800b030: 009b lsls r3, r3, #2
  25192. 800b032: 461a mov r2, r3
  25193. 800b034: 687b ldr r3, [r7, #4]
  25194. 800b036: 661a str r2, [r3, #96] @ 0x60
  25195. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  25196. 800b038: 687b ldr r3, [r7, #4]
  25197. 800b03a: 4a24 ldr r2, [pc, #144] @ (800b0cc <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  25198. 800b03c: 665a str r2, [r3, #100] @ 0x64
  25199. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25200. 800b03e: 68fb ldr r3, [r7, #12]
  25201. 800b040: f003 031f and.w r3, r3, #31
  25202. 800b044: 2201 movs r2, #1
  25203. 800b046: 409a lsls r2, r3
  25204. 800b048: 687b ldr r3, [r7, #4]
  25205. 800b04a: 669a str r2, [r3, #104] @ 0x68
  25206. }
  25207. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25208. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25209. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25210. }
  25211. }
  25212. 800b04c: e024 b.n 800b098 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  25213. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  25214. 800b04e: 687b ldr r3, [r7, #4]
  25215. 800b050: 681b ldr r3, [r3, #0]
  25216. 800b052: b2db uxtb r3, r3
  25217. 800b054: 3b10 subs r3, #16
  25218. 800b056: 4a1e ldr r2, [pc, #120] @ (800b0d0 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  25219. 800b058: fba2 2303 umull r2, r3, r2, r3
  25220. 800b05c: 091b lsrs r3, r3, #4
  25221. 800b05e: 60fb str r3, [r7, #12]
  25222. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  25223. 800b060: 68bb ldr r3, [r7, #8]
  25224. 800b062: 4a1c ldr r2, [pc, #112] @ (800b0d4 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  25225. 800b064: 4293 cmp r3, r2
  25226. 800b066: d806 bhi.n 800b076 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25227. 800b068: 68bb ldr r3, [r7, #8]
  25228. 800b06a: 4a1b ldr r2, [pc, #108] @ (800b0d8 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  25229. 800b06c: 4293 cmp r3, r2
  25230. 800b06e: d902 bls.n 800b076 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25231. stream_number += 8U;
  25232. 800b070: 68fb ldr r3, [r7, #12]
  25233. 800b072: 3308 adds r3, #8
  25234. 800b074: 60fb str r3, [r7, #12]
  25235. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25236. 800b076: 68fa ldr r2, [r7, #12]
  25237. 800b078: 4b18 ldr r3, [pc, #96] @ (800b0dc <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  25238. 800b07a: 4413 add r3, r2
  25239. 800b07c: 009b lsls r3, r3, #2
  25240. 800b07e: 461a mov r2, r3
  25241. 800b080: 687b ldr r3, [r7, #4]
  25242. 800b082: 661a str r2, [r3, #96] @ 0x60
  25243. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25244. 800b084: 687b ldr r3, [r7, #4]
  25245. 800b086: 4a16 ldr r2, [pc, #88] @ (800b0e0 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  25246. 800b088: 665a str r2, [r3, #100] @ 0x64
  25247. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25248. 800b08a: 68fb ldr r3, [r7, #12]
  25249. 800b08c: f003 031f and.w r3, r3, #31
  25250. 800b090: 2201 movs r2, #1
  25251. 800b092: 409a lsls r2, r3
  25252. 800b094: 687b ldr r3, [r7, #4]
  25253. 800b096: 669a str r2, [r3, #104] @ 0x68
  25254. }
  25255. 800b098: bf00 nop
  25256. 800b09a: 3714 adds r7, #20
  25257. 800b09c: 46bd mov sp, r7
  25258. 800b09e: f85d 7b04 ldr.w r7, [sp], #4
  25259. 800b0a2: 4770 bx lr
  25260. 800b0a4: 58025408 .word 0x58025408
  25261. 800b0a8: 5802541c .word 0x5802541c
  25262. 800b0ac: 58025430 .word 0x58025430
  25263. 800b0b0: 58025444 .word 0x58025444
  25264. 800b0b4: 58025458 .word 0x58025458
  25265. 800b0b8: 5802546c .word 0x5802546c
  25266. 800b0bc: 58025480 .word 0x58025480
  25267. 800b0c0: 58025494 .word 0x58025494
  25268. 800b0c4: cccccccd .word 0xcccccccd
  25269. 800b0c8: 16009600 .word 0x16009600
  25270. 800b0cc: 58025880 .word 0x58025880
  25271. 800b0d0: aaaaaaab .word 0xaaaaaaab
  25272. 800b0d4: 400204b8 .word 0x400204b8
  25273. 800b0d8: 4002040f .word 0x4002040f
  25274. 800b0dc: 10008200 .word 0x10008200
  25275. 800b0e0: 40020880 .word 0x40020880
  25276. 0800b0e4 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  25277. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25278. * the configuration information for the specified DMA Stream.
  25279. * @retval HAL status
  25280. */
  25281. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  25282. {
  25283. 800b0e4: b480 push {r7}
  25284. 800b0e6: b085 sub sp, #20
  25285. 800b0e8: af00 add r7, sp, #0
  25286. 800b0ea: 6078 str r0, [r7, #4]
  25287. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  25288. 800b0ec: 687b ldr r3, [r7, #4]
  25289. 800b0ee: 685b ldr r3, [r3, #4]
  25290. 800b0f0: b2db uxtb r3, r3
  25291. 800b0f2: 60fb str r3, [r7, #12]
  25292. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  25293. 800b0f4: 68fb ldr r3, [r7, #12]
  25294. 800b0f6: 2b00 cmp r3, #0
  25295. 800b0f8: d04a beq.n 800b190 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25296. 800b0fa: 68fb ldr r3, [r7, #12]
  25297. 800b0fc: 2b08 cmp r3, #8
  25298. 800b0fe: d847 bhi.n 800b190 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25299. {
  25300. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25301. 800b100: 687b ldr r3, [r7, #4]
  25302. 800b102: 681b ldr r3, [r3, #0]
  25303. 800b104: 4a25 ldr r2, [pc, #148] @ (800b19c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  25304. 800b106: 4293 cmp r3, r2
  25305. 800b108: d022 beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25306. 800b10a: 687b ldr r3, [r7, #4]
  25307. 800b10c: 681b ldr r3, [r3, #0]
  25308. 800b10e: 4a24 ldr r2, [pc, #144] @ (800b1a0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  25309. 800b110: 4293 cmp r3, r2
  25310. 800b112: d01d beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25311. 800b114: 687b ldr r3, [r7, #4]
  25312. 800b116: 681b ldr r3, [r3, #0]
  25313. 800b118: 4a22 ldr r2, [pc, #136] @ (800b1a4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  25314. 800b11a: 4293 cmp r3, r2
  25315. 800b11c: d018 beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25316. 800b11e: 687b ldr r3, [r7, #4]
  25317. 800b120: 681b ldr r3, [r3, #0]
  25318. 800b122: 4a21 ldr r2, [pc, #132] @ (800b1a8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  25319. 800b124: 4293 cmp r3, r2
  25320. 800b126: d013 beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25321. 800b128: 687b ldr r3, [r7, #4]
  25322. 800b12a: 681b ldr r3, [r3, #0]
  25323. 800b12c: 4a1f ldr r2, [pc, #124] @ (800b1ac <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  25324. 800b12e: 4293 cmp r3, r2
  25325. 800b130: d00e beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25326. 800b132: 687b ldr r3, [r7, #4]
  25327. 800b134: 681b ldr r3, [r3, #0]
  25328. 800b136: 4a1e ldr r2, [pc, #120] @ (800b1b0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  25329. 800b138: 4293 cmp r3, r2
  25330. 800b13a: d009 beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25331. 800b13c: 687b ldr r3, [r7, #4]
  25332. 800b13e: 681b ldr r3, [r3, #0]
  25333. 800b140: 4a1c ldr r2, [pc, #112] @ (800b1b4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  25334. 800b142: 4293 cmp r3, r2
  25335. 800b144: d004 beq.n 800b150 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25336. 800b146: 687b ldr r3, [r7, #4]
  25337. 800b148: 681b ldr r3, [r3, #0]
  25338. 800b14a: 4a1b ldr r2, [pc, #108] @ (800b1b8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  25339. 800b14c: 4293 cmp r3, r2
  25340. 800b14e: d101 bne.n 800b154 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  25341. 800b150: 2301 movs r3, #1
  25342. 800b152: e000 b.n 800b156 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  25343. 800b154: 2300 movs r3, #0
  25344. 800b156: 2b00 cmp r3, #0
  25345. 800b158: d00a beq.n 800b170 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  25346. {
  25347. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  25348. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  25349. 800b15a: 68fa ldr r2, [r7, #12]
  25350. 800b15c: 4b17 ldr r3, [pc, #92] @ (800b1bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  25351. 800b15e: 4413 add r3, r2
  25352. 800b160: 009b lsls r3, r3, #2
  25353. 800b162: 461a mov r2, r3
  25354. 800b164: 687b ldr r3, [r7, #4]
  25355. 800b166: 66da str r2, [r3, #108] @ 0x6c
  25356. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  25357. 800b168: 687b ldr r3, [r7, #4]
  25358. 800b16a: 4a15 ldr r2, [pc, #84] @ (800b1c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  25359. 800b16c: 671a str r2, [r3, #112] @ 0x70
  25360. 800b16e: e009 b.n 800b184 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  25361. }
  25362. else
  25363. {
  25364. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  25365. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  25366. 800b170: 68fa ldr r2, [r7, #12]
  25367. 800b172: 4b14 ldr r3, [pc, #80] @ (800b1c4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  25368. 800b174: 4413 add r3, r2
  25369. 800b176: 009b lsls r3, r3, #2
  25370. 800b178: 461a mov r2, r3
  25371. 800b17a: 687b ldr r3, [r7, #4]
  25372. 800b17c: 66da str r2, [r3, #108] @ 0x6c
  25373. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  25374. 800b17e: 687b ldr r3, [r7, #4]
  25375. 800b180: 4a11 ldr r2, [pc, #68] @ (800b1c8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  25376. 800b182: 671a str r2, [r3, #112] @ 0x70
  25377. }
  25378. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  25379. 800b184: 68fb ldr r3, [r7, #12]
  25380. 800b186: 3b01 subs r3, #1
  25381. 800b188: 2201 movs r2, #1
  25382. 800b18a: 409a lsls r2, r3
  25383. 800b18c: 687b ldr r3, [r7, #4]
  25384. 800b18e: 675a str r2, [r3, #116] @ 0x74
  25385. }
  25386. }
  25387. 800b190: bf00 nop
  25388. 800b192: 3714 adds r7, #20
  25389. 800b194: 46bd mov sp, r7
  25390. 800b196: f85d 7b04 ldr.w r7, [sp], #4
  25391. 800b19a: 4770 bx lr
  25392. 800b19c: 58025408 .word 0x58025408
  25393. 800b1a0: 5802541c .word 0x5802541c
  25394. 800b1a4: 58025430 .word 0x58025430
  25395. 800b1a8: 58025444 .word 0x58025444
  25396. 800b1ac: 58025458 .word 0x58025458
  25397. 800b1b0: 5802546c .word 0x5802546c
  25398. 800b1b4: 58025480 .word 0x58025480
  25399. 800b1b8: 58025494 .word 0x58025494
  25400. 800b1bc: 1600963f .word 0x1600963f
  25401. 800b1c0: 58025940 .word 0x58025940
  25402. 800b1c4: 1000823f .word 0x1000823f
  25403. 800b1c8: 40020940 .word 0x40020940
  25404. 0800b1cc <HAL_GPIO_Init>:
  25405. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  25406. * the configuration information for the specified GPIO peripheral.
  25407. * @retval None
  25408. */
  25409. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  25410. {
  25411. 800b1cc: b480 push {r7}
  25412. 800b1ce: b089 sub sp, #36 @ 0x24
  25413. 800b1d0: af00 add r7, sp, #0
  25414. 800b1d2: 6078 str r0, [r7, #4]
  25415. 800b1d4: 6039 str r1, [r7, #0]
  25416. uint32_t position = 0x00U;
  25417. 800b1d6: 2300 movs r3, #0
  25418. 800b1d8: 61fb str r3, [r7, #28]
  25419. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  25420. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25421. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  25422. #else
  25423. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  25424. 800b1da: 4b89 ldr r3, [pc, #548] @ (800b400 <HAL_GPIO_Init+0x234>)
  25425. 800b1dc: 617b str r3, [r7, #20]
  25426. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  25427. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  25428. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  25429. /* Configure the port pins */
  25430. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25431. 800b1de: e194 b.n 800b50a <HAL_GPIO_Init+0x33e>
  25432. {
  25433. /* Get current io position */
  25434. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  25435. 800b1e0: 683b ldr r3, [r7, #0]
  25436. 800b1e2: 681a ldr r2, [r3, #0]
  25437. 800b1e4: 2101 movs r1, #1
  25438. 800b1e6: 69fb ldr r3, [r7, #28]
  25439. 800b1e8: fa01 f303 lsl.w r3, r1, r3
  25440. 800b1ec: 4013 ands r3, r2
  25441. 800b1ee: 613b str r3, [r7, #16]
  25442. if (iocurrent != 0x00U)
  25443. 800b1f0: 693b ldr r3, [r7, #16]
  25444. 800b1f2: 2b00 cmp r3, #0
  25445. 800b1f4: f000 8186 beq.w 800b504 <HAL_GPIO_Init+0x338>
  25446. {
  25447. /*--------------------- GPIO Mode Configuration ------------------------*/
  25448. /* In case of Output or Alternate function mode selection */
  25449. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  25450. 800b1f8: 683b ldr r3, [r7, #0]
  25451. 800b1fa: 685b ldr r3, [r3, #4]
  25452. 800b1fc: f003 0303 and.w r3, r3, #3
  25453. 800b200: 2b01 cmp r3, #1
  25454. 800b202: d005 beq.n 800b210 <HAL_GPIO_Init+0x44>
  25455. 800b204: 683b ldr r3, [r7, #0]
  25456. 800b206: 685b ldr r3, [r3, #4]
  25457. 800b208: f003 0303 and.w r3, r3, #3
  25458. 800b20c: 2b02 cmp r3, #2
  25459. 800b20e: d130 bne.n 800b272 <HAL_GPIO_Init+0xa6>
  25460. {
  25461. /* Check the Speed parameter */
  25462. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  25463. /* Configure the IO Speed */
  25464. temp = GPIOx->OSPEEDR;
  25465. 800b210: 687b ldr r3, [r7, #4]
  25466. 800b212: 689b ldr r3, [r3, #8]
  25467. 800b214: 61bb str r3, [r7, #24]
  25468. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  25469. 800b216: 69fb ldr r3, [r7, #28]
  25470. 800b218: 005b lsls r3, r3, #1
  25471. 800b21a: 2203 movs r2, #3
  25472. 800b21c: fa02 f303 lsl.w r3, r2, r3
  25473. 800b220: 43db mvns r3, r3
  25474. 800b222: 69ba ldr r2, [r7, #24]
  25475. 800b224: 4013 ands r3, r2
  25476. 800b226: 61bb str r3, [r7, #24]
  25477. temp |= (GPIO_Init->Speed << (position * 2U));
  25478. 800b228: 683b ldr r3, [r7, #0]
  25479. 800b22a: 68da ldr r2, [r3, #12]
  25480. 800b22c: 69fb ldr r3, [r7, #28]
  25481. 800b22e: 005b lsls r3, r3, #1
  25482. 800b230: fa02 f303 lsl.w r3, r2, r3
  25483. 800b234: 69ba ldr r2, [r7, #24]
  25484. 800b236: 4313 orrs r3, r2
  25485. 800b238: 61bb str r3, [r7, #24]
  25486. GPIOx->OSPEEDR = temp;
  25487. 800b23a: 687b ldr r3, [r7, #4]
  25488. 800b23c: 69ba ldr r2, [r7, #24]
  25489. 800b23e: 609a str r2, [r3, #8]
  25490. /* Configure the IO Output Type */
  25491. temp = GPIOx->OTYPER;
  25492. 800b240: 687b ldr r3, [r7, #4]
  25493. 800b242: 685b ldr r3, [r3, #4]
  25494. 800b244: 61bb str r3, [r7, #24]
  25495. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  25496. 800b246: 2201 movs r2, #1
  25497. 800b248: 69fb ldr r3, [r7, #28]
  25498. 800b24a: fa02 f303 lsl.w r3, r2, r3
  25499. 800b24e: 43db mvns r3, r3
  25500. 800b250: 69ba ldr r2, [r7, #24]
  25501. 800b252: 4013 ands r3, r2
  25502. 800b254: 61bb str r3, [r7, #24]
  25503. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  25504. 800b256: 683b ldr r3, [r7, #0]
  25505. 800b258: 685b ldr r3, [r3, #4]
  25506. 800b25a: 091b lsrs r3, r3, #4
  25507. 800b25c: f003 0201 and.w r2, r3, #1
  25508. 800b260: 69fb ldr r3, [r7, #28]
  25509. 800b262: fa02 f303 lsl.w r3, r2, r3
  25510. 800b266: 69ba ldr r2, [r7, #24]
  25511. 800b268: 4313 orrs r3, r2
  25512. 800b26a: 61bb str r3, [r7, #24]
  25513. GPIOx->OTYPER = temp;
  25514. 800b26c: 687b ldr r3, [r7, #4]
  25515. 800b26e: 69ba ldr r2, [r7, #24]
  25516. 800b270: 605a str r2, [r3, #4]
  25517. }
  25518. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  25519. 800b272: 683b ldr r3, [r7, #0]
  25520. 800b274: 685b ldr r3, [r3, #4]
  25521. 800b276: f003 0303 and.w r3, r3, #3
  25522. 800b27a: 2b03 cmp r3, #3
  25523. 800b27c: d017 beq.n 800b2ae <HAL_GPIO_Init+0xe2>
  25524. {
  25525. /* Check the Pull parameter */
  25526. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  25527. /* Activate the Pull-up or Pull down resistor for the current IO */
  25528. temp = GPIOx->PUPDR;
  25529. 800b27e: 687b ldr r3, [r7, #4]
  25530. 800b280: 68db ldr r3, [r3, #12]
  25531. 800b282: 61bb str r3, [r7, #24]
  25532. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  25533. 800b284: 69fb ldr r3, [r7, #28]
  25534. 800b286: 005b lsls r3, r3, #1
  25535. 800b288: 2203 movs r2, #3
  25536. 800b28a: fa02 f303 lsl.w r3, r2, r3
  25537. 800b28e: 43db mvns r3, r3
  25538. 800b290: 69ba ldr r2, [r7, #24]
  25539. 800b292: 4013 ands r3, r2
  25540. 800b294: 61bb str r3, [r7, #24]
  25541. temp |= ((GPIO_Init->Pull) << (position * 2U));
  25542. 800b296: 683b ldr r3, [r7, #0]
  25543. 800b298: 689a ldr r2, [r3, #8]
  25544. 800b29a: 69fb ldr r3, [r7, #28]
  25545. 800b29c: 005b lsls r3, r3, #1
  25546. 800b29e: fa02 f303 lsl.w r3, r2, r3
  25547. 800b2a2: 69ba ldr r2, [r7, #24]
  25548. 800b2a4: 4313 orrs r3, r2
  25549. 800b2a6: 61bb str r3, [r7, #24]
  25550. GPIOx->PUPDR = temp;
  25551. 800b2a8: 687b ldr r3, [r7, #4]
  25552. 800b2aa: 69ba ldr r2, [r7, #24]
  25553. 800b2ac: 60da str r2, [r3, #12]
  25554. }
  25555. /* In case of Alternate function mode selection */
  25556. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  25557. 800b2ae: 683b ldr r3, [r7, #0]
  25558. 800b2b0: 685b ldr r3, [r3, #4]
  25559. 800b2b2: f003 0303 and.w r3, r3, #3
  25560. 800b2b6: 2b02 cmp r3, #2
  25561. 800b2b8: d123 bne.n 800b302 <HAL_GPIO_Init+0x136>
  25562. /* Check the Alternate function parameters */
  25563. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  25564. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  25565. /* Configure Alternate function mapped with the current IO */
  25566. temp = GPIOx->AFR[position >> 3U];
  25567. 800b2ba: 69fb ldr r3, [r7, #28]
  25568. 800b2bc: 08da lsrs r2, r3, #3
  25569. 800b2be: 687b ldr r3, [r7, #4]
  25570. 800b2c0: 3208 adds r2, #8
  25571. 800b2c2: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  25572. 800b2c6: 61bb str r3, [r7, #24]
  25573. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  25574. 800b2c8: 69fb ldr r3, [r7, #28]
  25575. 800b2ca: f003 0307 and.w r3, r3, #7
  25576. 800b2ce: 009b lsls r3, r3, #2
  25577. 800b2d0: 220f movs r2, #15
  25578. 800b2d2: fa02 f303 lsl.w r3, r2, r3
  25579. 800b2d6: 43db mvns r3, r3
  25580. 800b2d8: 69ba ldr r2, [r7, #24]
  25581. 800b2da: 4013 ands r3, r2
  25582. 800b2dc: 61bb str r3, [r7, #24]
  25583. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  25584. 800b2de: 683b ldr r3, [r7, #0]
  25585. 800b2e0: 691a ldr r2, [r3, #16]
  25586. 800b2e2: 69fb ldr r3, [r7, #28]
  25587. 800b2e4: f003 0307 and.w r3, r3, #7
  25588. 800b2e8: 009b lsls r3, r3, #2
  25589. 800b2ea: fa02 f303 lsl.w r3, r2, r3
  25590. 800b2ee: 69ba ldr r2, [r7, #24]
  25591. 800b2f0: 4313 orrs r3, r2
  25592. 800b2f2: 61bb str r3, [r7, #24]
  25593. GPIOx->AFR[position >> 3U] = temp;
  25594. 800b2f4: 69fb ldr r3, [r7, #28]
  25595. 800b2f6: 08da lsrs r2, r3, #3
  25596. 800b2f8: 687b ldr r3, [r7, #4]
  25597. 800b2fa: 3208 adds r2, #8
  25598. 800b2fc: 69b9 ldr r1, [r7, #24]
  25599. 800b2fe: f843 1022 str.w r1, [r3, r2, lsl #2]
  25600. }
  25601. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  25602. temp = GPIOx->MODER;
  25603. 800b302: 687b ldr r3, [r7, #4]
  25604. 800b304: 681b ldr r3, [r3, #0]
  25605. 800b306: 61bb str r3, [r7, #24]
  25606. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  25607. 800b308: 69fb ldr r3, [r7, #28]
  25608. 800b30a: 005b lsls r3, r3, #1
  25609. 800b30c: 2203 movs r2, #3
  25610. 800b30e: fa02 f303 lsl.w r3, r2, r3
  25611. 800b312: 43db mvns r3, r3
  25612. 800b314: 69ba ldr r2, [r7, #24]
  25613. 800b316: 4013 ands r3, r2
  25614. 800b318: 61bb str r3, [r7, #24]
  25615. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  25616. 800b31a: 683b ldr r3, [r7, #0]
  25617. 800b31c: 685b ldr r3, [r3, #4]
  25618. 800b31e: f003 0203 and.w r2, r3, #3
  25619. 800b322: 69fb ldr r3, [r7, #28]
  25620. 800b324: 005b lsls r3, r3, #1
  25621. 800b326: fa02 f303 lsl.w r3, r2, r3
  25622. 800b32a: 69ba ldr r2, [r7, #24]
  25623. 800b32c: 4313 orrs r3, r2
  25624. 800b32e: 61bb str r3, [r7, #24]
  25625. GPIOx->MODER = temp;
  25626. 800b330: 687b ldr r3, [r7, #4]
  25627. 800b332: 69ba ldr r2, [r7, #24]
  25628. 800b334: 601a str r2, [r3, #0]
  25629. /*--------------------- EXTI Mode Configuration ------------------------*/
  25630. /* Configure the External Interrupt or event for the current IO */
  25631. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  25632. 800b336: 683b ldr r3, [r7, #0]
  25633. 800b338: 685b ldr r3, [r3, #4]
  25634. 800b33a: f403 3340 and.w r3, r3, #196608 @ 0x30000
  25635. 800b33e: 2b00 cmp r3, #0
  25636. 800b340: f000 80e0 beq.w 800b504 <HAL_GPIO_Init+0x338>
  25637. {
  25638. /* Enable SYSCFG Clock */
  25639. __HAL_RCC_SYSCFG_CLK_ENABLE();
  25640. 800b344: 4b2f ldr r3, [pc, #188] @ (800b404 <HAL_GPIO_Init+0x238>)
  25641. 800b346: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25642. 800b34a: 4a2e ldr r2, [pc, #184] @ (800b404 <HAL_GPIO_Init+0x238>)
  25643. 800b34c: f043 0302 orr.w r3, r3, #2
  25644. 800b350: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  25645. 800b354: 4b2b ldr r3, [pc, #172] @ (800b404 <HAL_GPIO_Init+0x238>)
  25646. 800b356: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25647. 800b35a: f003 0302 and.w r3, r3, #2
  25648. 800b35e: 60fb str r3, [r7, #12]
  25649. 800b360: 68fb ldr r3, [r7, #12]
  25650. temp = SYSCFG->EXTICR[position >> 2U];
  25651. 800b362: 4a29 ldr r2, [pc, #164] @ (800b408 <HAL_GPIO_Init+0x23c>)
  25652. 800b364: 69fb ldr r3, [r7, #28]
  25653. 800b366: 089b lsrs r3, r3, #2
  25654. 800b368: 3302 adds r3, #2
  25655. 800b36a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  25656. 800b36e: 61bb str r3, [r7, #24]
  25657. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  25658. 800b370: 69fb ldr r3, [r7, #28]
  25659. 800b372: f003 0303 and.w r3, r3, #3
  25660. 800b376: 009b lsls r3, r3, #2
  25661. 800b378: 220f movs r2, #15
  25662. 800b37a: fa02 f303 lsl.w r3, r2, r3
  25663. 800b37e: 43db mvns r3, r3
  25664. 800b380: 69ba ldr r2, [r7, #24]
  25665. 800b382: 4013 ands r3, r2
  25666. 800b384: 61bb str r3, [r7, #24]
  25667. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  25668. 800b386: 687b ldr r3, [r7, #4]
  25669. 800b388: 4a20 ldr r2, [pc, #128] @ (800b40c <HAL_GPIO_Init+0x240>)
  25670. 800b38a: 4293 cmp r3, r2
  25671. 800b38c: d052 beq.n 800b434 <HAL_GPIO_Init+0x268>
  25672. 800b38e: 687b ldr r3, [r7, #4]
  25673. 800b390: 4a1f ldr r2, [pc, #124] @ (800b410 <HAL_GPIO_Init+0x244>)
  25674. 800b392: 4293 cmp r3, r2
  25675. 800b394: d031 beq.n 800b3fa <HAL_GPIO_Init+0x22e>
  25676. 800b396: 687b ldr r3, [r7, #4]
  25677. 800b398: 4a1e ldr r2, [pc, #120] @ (800b414 <HAL_GPIO_Init+0x248>)
  25678. 800b39a: 4293 cmp r3, r2
  25679. 800b39c: d02b beq.n 800b3f6 <HAL_GPIO_Init+0x22a>
  25680. 800b39e: 687b ldr r3, [r7, #4]
  25681. 800b3a0: 4a1d ldr r2, [pc, #116] @ (800b418 <HAL_GPIO_Init+0x24c>)
  25682. 800b3a2: 4293 cmp r3, r2
  25683. 800b3a4: d025 beq.n 800b3f2 <HAL_GPIO_Init+0x226>
  25684. 800b3a6: 687b ldr r3, [r7, #4]
  25685. 800b3a8: 4a1c ldr r2, [pc, #112] @ (800b41c <HAL_GPIO_Init+0x250>)
  25686. 800b3aa: 4293 cmp r3, r2
  25687. 800b3ac: d01f beq.n 800b3ee <HAL_GPIO_Init+0x222>
  25688. 800b3ae: 687b ldr r3, [r7, #4]
  25689. 800b3b0: 4a1b ldr r2, [pc, #108] @ (800b420 <HAL_GPIO_Init+0x254>)
  25690. 800b3b2: 4293 cmp r3, r2
  25691. 800b3b4: d019 beq.n 800b3ea <HAL_GPIO_Init+0x21e>
  25692. 800b3b6: 687b ldr r3, [r7, #4]
  25693. 800b3b8: 4a1a ldr r2, [pc, #104] @ (800b424 <HAL_GPIO_Init+0x258>)
  25694. 800b3ba: 4293 cmp r3, r2
  25695. 800b3bc: d013 beq.n 800b3e6 <HAL_GPIO_Init+0x21a>
  25696. 800b3be: 687b ldr r3, [r7, #4]
  25697. 800b3c0: 4a19 ldr r2, [pc, #100] @ (800b428 <HAL_GPIO_Init+0x25c>)
  25698. 800b3c2: 4293 cmp r3, r2
  25699. 800b3c4: d00d beq.n 800b3e2 <HAL_GPIO_Init+0x216>
  25700. 800b3c6: 687b ldr r3, [r7, #4]
  25701. 800b3c8: 4a18 ldr r2, [pc, #96] @ (800b42c <HAL_GPIO_Init+0x260>)
  25702. 800b3ca: 4293 cmp r3, r2
  25703. 800b3cc: d007 beq.n 800b3de <HAL_GPIO_Init+0x212>
  25704. 800b3ce: 687b ldr r3, [r7, #4]
  25705. 800b3d0: 4a17 ldr r2, [pc, #92] @ (800b430 <HAL_GPIO_Init+0x264>)
  25706. 800b3d2: 4293 cmp r3, r2
  25707. 800b3d4: d101 bne.n 800b3da <HAL_GPIO_Init+0x20e>
  25708. 800b3d6: 2309 movs r3, #9
  25709. 800b3d8: e02d b.n 800b436 <HAL_GPIO_Init+0x26a>
  25710. 800b3da: 230a movs r3, #10
  25711. 800b3dc: e02b b.n 800b436 <HAL_GPIO_Init+0x26a>
  25712. 800b3de: 2308 movs r3, #8
  25713. 800b3e0: e029 b.n 800b436 <HAL_GPIO_Init+0x26a>
  25714. 800b3e2: 2307 movs r3, #7
  25715. 800b3e4: e027 b.n 800b436 <HAL_GPIO_Init+0x26a>
  25716. 800b3e6: 2306 movs r3, #6
  25717. 800b3e8: e025 b.n 800b436 <HAL_GPIO_Init+0x26a>
  25718. 800b3ea: 2305 movs r3, #5
  25719. 800b3ec: e023 b.n 800b436 <HAL_GPIO_Init+0x26a>
  25720. 800b3ee: 2304 movs r3, #4
  25721. 800b3f0: e021 b.n 800b436 <HAL_GPIO_Init+0x26a>
  25722. 800b3f2: 2303 movs r3, #3
  25723. 800b3f4: e01f b.n 800b436 <HAL_GPIO_Init+0x26a>
  25724. 800b3f6: 2302 movs r3, #2
  25725. 800b3f8: e01d b.n 800b436 <HAL_GPIO_Init+0x26a>
  25726. 800b3fa: 2301 movs r3, #1
  25727. 800b3fc: e01b b.n 800b436 <HAL_GPIO_Init+0x26a>
  25728. 800b3fe: bf00 nop
  25729. 800b400: 58000080 .word 0x58000080
  25730. 800b404: 58024400 .word 0x58024400
  25731. 800b408: 58000400 .word 0x58000400
  25732. 800b40c: 58020000 .word 0x58020000
  25733. 800b410: 58020400 .word 0x58020400
  25734. 800b414: 58020800 .word 0x58020800
  25735. 800b418: 58020c00 .word 0x58020c00
  25736. 800b41c: 58021000 .word 0x58021000
  25737. 800b420: 58021400 .word 0x58021400
  25738. 800b424: 58021800 .word 0x58021800
  25739. 800b428: 58021c00 .word 0x58021c00
  25740. 800b42c: 58022000 .word 0x58022000
  25741. 800b430: 58022400 .word 0x58022400
  25742. 800b434: 2300 movs r3, #0
  25743. 800b436: 69fa ldr r2, [r7, #28]
  25744. 800b438: f002 0203 and.w r2, r2, #3
  25745. 800b43c: 0092 lsls r2, r2, #2
  25746. 800b43e: 4093 lsls r3, r2
  25747. 800b440: 69ba ldr r2, [r7, #24]
  25748. 800b442: 4313 orrs r3, r2
  25749. 800b444: 61bb str r3, [r7, #24]
  25750. SYSCFG->EXTICR[position >> 2U] = temp;
  25751. 800b446: 4938 ldr r1, [pc, #224] @ (800b528 <HAL_GPIO_Init+0x35c>)
  25752. 800b448: 69fb ldr r3, [r7, #28]
  25753. 800b44a: 089b lsrs r3, r3, #2
  25754. 800b44c: 3302 adds r3, #2
  25755. 800b44e: 69ba ldr r2, [r7, #24]
  25756. 800b450: f841 2023 str.w r2, [r1, r3, lsl #2]
  25757. /* Clear Rising Falling edge configuration */
  25758. temp = EXTI->RTSR1;
  25759. 800b454: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25760. 800b458: 681b ldr r3, [r3, #0]
  25761. 800b45a: 61bb str r3, [r7, #24]
  25762. temp &= ~(iocurrent);
  25763. 800b45c: 693b ldr r3, [r7, #16]
  25764. 800b45e: 43db mvns r3, r3
  25765. 800b460: 69ba ldr r2, [r7, #24]
  25766. 800b462: 4013 ands r3, r2
  25767. 800b464: 61bb str r3, [r7, #24]
  25768. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  25769. 800b466: 683b ldr r3, [r7, #0]
  25770. 800b468: 685b ldr r3, [r3, #4]
  25771. 800b46a: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  25772. 800b46e: 2b00 cmp r3, #0
  25773. 800b470: d003 beq.n 800b47a <HAL_GPIO_Init+0x2ae>
  25774. {
  25775. temp |= iocurrent;
  25776. 800b472: 69ba ldr r2, [r7, #24]
  25777. 800b474: 693b ldr r3, [r7, #16]
  25778. 800b476: 4313 orrs r3, r2
  25779. 800b478: 61bb str r3, [r7, #24]
  25780. }
  25781. EXTI->RTSR1 = temp;
  25782. 800b47a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25783. 800b47e: 69bb ldr r3, [r7, #24]
  25784. 800b480: 6013 str r3, [r2, #0]
  25785. temp = EXTI->FTSR1;
  25786. 800b482: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25787. 800b486: 685b ldr r3, [r3, #4]
  25788. 800b488: 61bb str r3, [r7, #24]
  25789. temp &= ~(iocurrent);
  25790. 800b48a: 693b ldr r3, [r7, #16]
  25791. 800b48c: 43db mvns r3, r3
  25792. 800b48e: 69ba ldr r2, [r7, #24]
  25793. 800b490: 4013 ands r3, r2
  25794. 800b492: 61bb str r3, [r7, #24]
  25795. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  25796. 800b494: 683b ldr r3, [r7, #0]
  25797. 800b496: 685b ldr r3, [r3, #4]
  25798. 800b498: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  25799. 800b49c: 2b00 cmp r3, #0
  25800. 800b49e: d003 beq.n 800b4a8 <HAL_GPIO_Init+0x2dc>
  25801. {
  25802. temp |= iocurrent;
  25803. 800b4a0: 69ba ldr r2, [r7, #24]
  25804. 800b4a2: 693b ldr r3, [r7, #16]
  25805. 800b4a4: 4313 orrs r3, r2
  25806. 800b4a6: 61bb str r3, [r7, #24]
  25807. }
  25808. EXTI->FTSR1 = temp;
  25809. 800b4a8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25810. 800b4ac: 69bb ldr r3, [r7, #24]
  25811. 800b4ae: 6053 str r3, [r2, #4]
  25812. temp = EXTI_CurrentCPU->EMR1;
  25813. 800b4b0: 697b ldr r3, [r7, #20]
  25814. 800b4b2: 685b ldr r3, [r3, #4]
  25815. 800b4b4: 61bb str r3, [r7, #24]
  25816. temp &= ~(iocurrent);
  25817. 800b4b6: 693b ldr r3, [r7, #16]
  25818. 800b4b8: 43db mvns r3, r3
  25819. 800b4ba: 69ba ldr r2, [r7, #24]
  25820. 800b4bc: 4013 ands r3, r2
  25821. 800b4be: 61bb str r3, [r7, #24]
  25822. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  25823. 800b4c0: 683b ldr r3, [r7, #0]
  25824. 800b4c2: 685b ldr r3, [r3, #4]
  25825. 800b4c4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25826. 800b4c8: 2b00 cmp r3, #0
  25827. 800b4ca: d003 beq.n 800b4d4 <HAL_GPIO_Init+0x308>
  25828. {
  25829. temp |= iocurrent;
  25830. 800b4cc: 69ba ldr r2, [r7, #24]
  25831. 800b4ce: 693b ldr r3, [r7, #16]
  25832. 800b4d0: 4313 orrs r3, r2
  25833. 800b4d2: 61bb str r3, [r7, #24]
  25834. }
  25835. EXTI_CurrentCPU->EMR1 = temp;
  25836. 800b4d4: 697b ldr r3, [r7, #20]
  25837. 800b4d6: 69ba ldr r2, [r7, #24]
  25838. 800b4d8: 605a str r2, [r3, #4]
  25839. /* Clear EXTI line configuration */
  25840. temp = EXTI_CurrentCPU->IMR1;
  25841. 800b4da: 697b ldr r3, [r7, #20]
  25842. 800b4dc: 681b ldr r3, [r3, #0]
  25843. 800b4de: 61bb str r3, [r7, #24]
  25844. temp &= ~(iocurrent);
  25845. 800b4e0: 693b ldr r3, [r7, #16]
  25846. 800b4e2: 43db mvns r3, r3
  25847. 800b4e4: 69ba ldr r2, [r7, #24]
  25848. 800b4e6: 4013 ands r3, r2
  25849. 800b4e8: 61bb str r3, [r7, #24]
  25850. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  25851. 800b4ea: 683b ldr r3, [r7, #0]
  25852. 800b4ec: 685b ldr r3, [r3, #4]
  25853. 800b4ee: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25854. 800b4f2: 2b00 cmp r3, #0
  25855. 800b4f4: d003 beq.n 800b4fe <HAL_GPIO_Init+0x332>
  25856. {
  25857. temp |= iocurrent;
  25858. 800b4f6: 69ba ldr r2, [r7, #24]
  25859. 800b4f8: 693b ldr r3, [r7, #16]
  25860. 800b4fa: 4313 orrs r3, r2
  25861. 800b4fc: 61bb str r3, [r7, #24]
  25862. }
  25863. EXTI_CurrentCPU->IMR1 = temp;
  25864. 800b4fe: 697b ldr r3, [r7, #20]
  25865. 800b500: 69ba ldr r2, [r7, #24]
  25866. 800b502: 601a str r2, [r3, #0]
  25867. }
  25868. }
  25869. position++;
  25870. 800b504: 69fb ldr r3, [r7, #28]
  25871. 800b506: 3301 adds r3, #1
  25872. 800b508: 61fb str r3, [r7, #28]
  25873. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25874. 800b50a: 683b ldr r3, [r7, #0]
  25875. 800b50c: 681a ldr r2, [r3, #0]
  25876. 800b50e: 69fb ldr r3, [r7, #28]
  25877. 800b510: fa22 f303 lsr.w r3, r2, r3
  25878. 800b514: 2b00 cmp r3, #0
  25879. 800b516: f47f ae63 bne.w 800b1e0 <HAL_GPIO_Init+0x14>
  25880. }
  25881. }
  25882. 800b51a: bf00 nop
  25883. 800b51c: bf00 nop
  25884. 800b51e: 3724 adds r7, #36 @ 0x24
  25885. 800b520: 46bd mov sp, r7
  25886. 800b522: f85d 7b04 ldr.w r7, [sp], #4
  25887. 800b526: 4770 bx lr
  25888. 800b528: 58000400 .word 0x58000400
  25889. 0800b52c <HAL_GPIO_ReadPin>:
  25890. * @param GPIO_Pin: specifies the port bit to read.
  25891. * This parameter can be GPIO_PIN_x where x can be (0..15).
  25892. * @retval The input port pin value.
  25893. */
  25894. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25895. {
  25896. 800b52c: b480 push {r7}
  25897. 800b52e: b085 sub sp, #20
  25898. 800b530: af00 add r7, sp, #0
  25899. 800b532: 6078 str r0, [r7, #4]
  25900. 800b534: 460b mov r3, r1
  25901. 800b536: 807b strh r3, [r7, #2]
  25902. GPIO_PinState bitstatus;
  25903. /* Check the parameters */
  25904. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25905. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  25906. 800b538: 687b ldr r3, [r7, #4]
  25907. 800b53a: 691a ldr r2, [r3, #16]
  25908. 800b53c: 887b ldrh r3, [r7, #2]
  25909. 800b53e: 4013 ands r3, r2
  25910. 800b540: 2b00 cmp r3, #0
  25911. 800b542: d002 beq.n 800b54a <HAL_GPIO_ReadPin+0x1e>
  25912. {
  25913. bitstatus = GPIO_PIN_SET;
  25914. 800b544: 2301 movs r3, #1
  25915. 800b546: 73fb strb r3, [r7, #15]
  25916. 800b548: e001 b.n 800b54e <HAL_GPIO_ReadPin+0x22>
  25917. }
  25918. else
  25919. {
  25920. bitstatus = GPIO_PIN_RESET;
  25921. 800b54a: 2300 movs r3, #0
  25922. 800b54c: 73fb strb r3, [r7, #15]
  25923. }
  25924. return bitstatus;
  25925. 800b54e: 7bfb ldrb r3, [r7, #15]
  25926. }
  25927. 800b550: 4618 mov r0, r3
  25928. 800b552: 3714 adds r7, #20
  25929. 800b554: 46bd mov sp, r7
  25930. 800b556: f85d 7b04 ldr.w r7, [sp], #4
  25931. 800b55a: 4770 bx lr
  25932. 0800b55c <HAL_GPIO_WritePin>:
  25933. * @arg GPIO_PIN_RESET: to clear the port pin
  25934. * @arg GPIO_PIN_SET: to set the port pin
  25935. * @retval None
  25936. */
  25937. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  25938. {
  25939. 800b55c: b480 push {r7}
  25940. 800b55e: b083 sub sp, #12
  25941. 800b560: af00 add r7, sp, #0
  25942. 800b562: 6078 str r0, [r7, #4]
  25943. 800b564: 460b mov r3, r1
  25944. 800b566: 807b strh r3, [r7, #2]
  25945. 800b568: 4613 mov r3, r2
  25946. 800b56a: 707b strb r3, [r7, #1]
  25947. /* Check the parameters */
  25948. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25949. assert_param(IS_GPIO_PIN_ACTION(PinState));
  25950. if (PinState != GPIO_PIN_RESET)
  25951. 800b56c: 787b ldrb r3, [r7, #1]
  25952. 800b56e: 2b00 cmp r3, #0
  25953. 800b570: d003 beq.n 800b57a <HAL_GPIO_WritePin+0x1e>
  25954. {
  25955. GPIOx->BSRR = GPIO_Pin;
  25956. 800b572: 887a ldrh r2, [r7, #2]
  25957. 800b574: 687b ldr r3, [r7, #4]
  25958. 800b576: 619a str r2, [r3, #24]
  25959. }
  25960. else
  25961. {
  25962. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25963. }
  25964. }
  25965. 800b578: e003 b.n 800b582 <HAL_GPIO_WritePin+0x26>
  25966. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25967. 800b57a: 887b ldrh r3, [r7, #2]
  25968. 800b57c: 041a lsls r2, r3, #16
  25969. 800b57e: 687b ldr r3, [r7, #4]
  25970. 800b580: 619a str r2, [r3, #24]
  25971. }
  25972. 800b582: bf00 nop
  25973. 800b584: 370c adds r7, #12
  25974. 800b586: 46bd mov sp, r7
  25975. 800b588: f85d 7b04 ldr.w r7, [sp], #4
  25976. 800b58c: 4770 bx lr
  25977. 0800b58e <HAL_GPIO_TogglePin>:
  25978. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  25979. * @param GPIO_Pin: Specifies the pins to be toggled.
  25980. * @retval None
  25981. */
  25982. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25983. {
  25984. 800b58e: b480 push {r7}
  25985. 800b590: b085 sub sp, #20
  25986. 800b592: af00 add r7, sp, #0
  25987. 800b594: 6078 str r0, [r7, #4]
  25988. 800b596: 460b mov r3, r1
  25989. 800b598: 807b strh r3, [r7, #2]
  25990. /* Check the parameters */
  25991. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25992. /* get current Output Data Register value */
  25993. odr = GPIOx->ODR;
  25994. 800b59a: 687b ldr r3, [r7, #4]
  25995. 800b59c: 695b ldr r3, [r3, #20]
  25996. 800b59e: 60fb str r3, [r7, #12]
  25997. /* Set selected pins that were at low level, and reset ones that were high */
  25998. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  25999. 800b5a0: 887a ldrh r2, [r7, #2]
  26000. 800b5a2: 68fb ldr r3, [r7, #12]
  26001. 800b5a4: 4013 ands r3, r2
  26002. 800b5a6: 041a lsls r2, r3, #16
  26003. 800b5a8: 68fb ldr r3, [r7, #12]
  26004. 800b5aa: 43d9 mvns r1, r3
  26005. 800b5ac: 887b ldrh r3, [r7, #2]
  26006. 800b5ae: 400b ands r3, r1
  26007. 800b5b0: 431a orrs r2, r3
  26008. 800b5b2: 687b ldr r3, [r7, #4]
  26009. 800b5b4: 619a str r2, [r3, #24]
  26010. }
  26011. 800b5b6: bf00 nop
  26012. 800b5b8: 3714 adds r7, #20
  26013. 800b5ba: 46bd mov sp, r7
  26014. 800b5bc: f85d 7b04 ldr.w r7, [sp], #4
  26015. 800b5c0: 4770 bx lr
  26016. 0800b5c2 <HAL_GPIO_EXTI_IRQHandler>:
  26017. * @brief Handle EXTI interrupt request.
  26018. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  26019. * @retval None
  26020. */
  26021. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  26022. {
  26023. 800b5c2: b580 push {r7, lr}
  26024. 800b5c4: b082 sub sp, #8
  26025. 800b5c6: af00 add r7, sp, #0
  26026. 800b5c8: 4603 mov r3, r0
  26027. 800b5ca: 80fb strh r3, [r7, #6]
  26028. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  26029. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26030. }
  26031. #else
  26032. /* EXTI line interrupt detected */
  26033. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  26034. 800b5cc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26035. 800b5d0: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  26036. 800b5d4: 88fb ldrh r3, [r7, #6]
  26037. 800b5d6: 4013 ands r3, r2
  26038. 800b5d8: 2b00 cmp r3, #0
  26039. 800b5da: d008 beq.n 800b5ee <HAL_GPIO_EXTI_IRQHandler+0x2c>
  26040. {
  26041. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  26042. 800b5dc: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26043. 800b5e0: 88fb ldrh r3, [r7, #6]
  26044. 800b5e2: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  26045. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26046. 800b5e6: 88fb ldrh r3, [r7, #6]
  26047. 800b5e8: 4618 mov r0, r3
  26048. 800b5ea: f7f5 f813 bl 8000614 <HAL_GPIO_EXTI_Callback>
  26049. }
  26050. #endif
  26051. }
  26052. 800b5ee: bf00 nop
  26053. 800b5f0: 3708 adds r7, #8
  26054. 800b5f2: 46bd mov sp, r7
  26055. 800b5f4: bd80 pop {r7, pc}
  26056. 0800b5f6 <HAL_IWDG_Init>:
  26057. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26058. * the configuration information for the specified IWDG module.
  26059. * @retval HAL status
  26060. */
  26061. HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
  26062. {
  26063. 800b5f6: b580 push {r7, lr}
  26064. 800b5f8: b084 sub sp, #16
  26065. 800b5fa: af00 add r7, sp, #0
  26066. 800b5fc: 6078 str r0, [r7, #4]
  26067. uint32_t tickstart;
  26068. /* Check the IWDG handle allocation */
  26069. if (hiwdg == NULL)
  26070. 800b5fe: 687b ldr r3, [r7, #4]
  26071. 800b600: 2b00 cmp r3, #0
  26072. 800b602: d101 bne.n 800b608 <HAL_IWDG_Init+0x12>
  26073. {
  26074. return HAL_ERROR;
  26075. 800b604: 2301 movs r3, #1
  26076. 800b606: e041 b.n 800b68c <HAL_IWDG_Init+0x96>
  26077. assert_param(IS_IWDG_PRESCALER(hiwdg->Init.Prescaler));
  26078. assert_param(IS_IWDG_RELOAD(hiwdg->Init.Reload));
  26079. assert_param(IS_IWDG_WINDOW(hiwdg->Init.Window));
  26080. /* Enable IWDG. LSI is turned on automatically */
  26081. __HAL_IWDG_START(hiwdg);
  26082. 800b608: 687b ldr r3, [r7, #4]
  26083. 800b60a: 681b ldr r3, [r3, #0]
  26084. 800b60c: f64c 42cc movw r2, #52428 @ 0xcccc
  26085. 800b610: 601a str r2, [r3, #0]
  26086. /* Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers by writing
  26087. 0x5555 in KR */
  26088. IWDG_ENABLE_WRITE_ACCESS(hiwdg);
  26089. 800b612: 687b ldr r3, [r7, #4]
  26090. 800b614: 681b ldr r3, [r3, #0]
  26091. 800b616: f245 5255 movw r2, #21845 @ 0x5555
  26092. 800b61a: 601a str r2, [r3, #0]
  26093. /* Write to IWDG registers the Prescaler & Reload values to work with */
  26094. hiwdg->Instance->PR = hiwdg->Init.Prescaler;
  26095. 800b61c: 687b ldr r3, [r7, #4]
  26096. 800b61e: 681b ldr r3, [r3, #0]
  26097. 800b620: 687a ldr r2, [r7, #4]
  26098. 800b622: 6852 ldr r2, [r2, #4]
  26099. 800b624: 605a str r2, [r3, #4]
  26100. hiwdg->Instance->RLR = hiwdg->Init.Reload;
  26101. 800b626: 687b ldr r3, [r7, #4]
  26102. 800b628: 681b ldr r3, [r3, #0]
  26103. 800b62a: 687a ldr r2, [r7, #4]
  26104. 800b62c: 6892 ldr r2, [r2, #8]
  26105. 800b62e: 609a str r2, [r3, #8]
  26106. /* Check pending flag, if previous update not done, return timeout */
  26107. tickstart = HAL_GetTick();
  26108. 800b630: f7fa fbf4 bl 8005e1c <HAL_GetTick>
  26109. 800b634: 60f8 str r0, [r7, #12]
  26110. /* Wait for register to be updated */
  26111. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26112. 800b636: e00f b.n 800b658 <HAL_IWDG_Init+0x62>
  26113. {
  26114. if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT)
  26115. 800b638: f7fa fbf0 bl 8005e1c <HAL_GetTick>
  26116. 800b63c: 4602 mov r2, r0
  26117. 800b63e: 68fb ldr r3, [r7, #12]
  26118. 800b640: 1ad3 subs r3, r2, r3
  26119. 800b642: 2b31 cmp r3, #49 @ 0x31
  26120. 800b644: d908 bls.n 800b658 <HAL_IWDG_Init+0x62>
  26121. {
  26122. if ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26123. 800b646: 687b ldr r3, [r7, #4]
  26124. 800b648: 681b ldr r3, [r3, #0]
  26125. 800b64a: 68db ldr r3, [r3, #12]
  26126. 800b64c: f003 0307 and.w r3, r3, #7
  26127. 800b650: 2b00 cmp r3, #0
  26128. 800b652: d001 beq.n 800b658 <HAL_IWDG_Init+0x62>
  26129. {
  26130. return HAL_TIMEOUT;
  26131. 800b654: 2303 movs r3, #3
  26132. 800b656: e019 b.n 800b68c <HAL_IWDG_Init+0x96>
  26133. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26134. 800b658: 687b ldr r3, [r7, #4]
  26135. 800b65a: 681b ldr r3, [r3, #0]
  26136. 800b65c: 68db ldr r3, [r3, #12]
  26137. 800b65e: f003 0307 and.w r3, r3, #7
  26138. 800b662: 2b00 cmp r3, #0
  26139. 800b664: d1e8 bne.n 800b638 <HAL_IWDG_Init+0x42>
  26140. }
  26141. }
  26142. /* If window parameter is different than current value, modify window
  26143. register */
  26144. if (hiwdg->Instance->WINR != hiwdg->Init.Window)
  26145. 800b666: 687b ldr r3, [r7, #4]
  26146. 800b668: 681b ldr r3, [r3, #0]
  26147. 800b66a: 691a ldr r2, [r3, #16]
  26148. 800b66c: 687b ldr r3, [r7, #4]
  26149. 800b66e: 68db ldr r3, [r3, #12]
  26150. 800b670: 429a cmp r2, r3
  26151. 800b672: d005 beq.n 800b680 <HAL_IWDG_Init+0x8a>
  26152. {
  26153. /* Write to IWDG WINR the IWDG_Window value to compare with. In any case,
  26154. even if window feature is disabled, Watchdog will be reloaded by writing
  26155. windows register */
  26156. hiwdg->Instance->WINR = hiwdg->Init.Window;
  26157. 800b674: 687b ldr r3, [r7, #4]
  26158. 800b676: 681b ldr r3, [r3, #0]
  26159. 800b678: 687a ldr r2, [r7, #4]
  26160. 800b67a: 68d2 ldr r2, [r2, #12]
  26161. 800b67c: 611a str r2, [r3, #16]
  26162. 800b67e: e004 b.n 800b68a <HAL_IWDG_Init+0x94>
  26163. }
  26164. else
  26165. {
  26166. /* Reload IWDG counter with value defined in the reload register */
  26167. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26168. 800b680: 687b ldr r3, [r7, #4]
  26169. 800b682: 681b ldr r3, [r3, #0]
  26170. 800b684: f64a 22aa movw r2, #43690 @ 0xaaaa
  26171. 800b688: 601a str r2, [r3, #0]
  26172. }
  26173. /* Return function status */
  26174. return HAL_OK;
  26175. 800b68a: 2300 movs r3, #0
  26176. }
  26177. 800b68c: 4618 mov r0, r3
  26178. 800b68e: 3710 adds r7, #16
  26179. 800b690: 46bd mov sp, r7
  26180. 800b692: bd80 pop {r7, pc}
  26181. 0800b694 <HAL_IWDG_Refresh>:
  26182. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26183. * the configuration information for the specified IWDG module.
  26184. * @retval HAL status
  26185. */
  26186. HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
  26187. {
  26188. 800b694: b480 push {r7}
  26189. 800b696: b083 sub sp, #12
  26190. 800b698: af00 add r7, sp, #0
  26191. 800b69a: 6078 str r0, [r7, #4]
  26192. /* Reload IWDG counter with value defined in the reload register */
  26193. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26194. 800b69c: 687b ldr r3, [r7, #4]
  26195. 800b69e: 681b ldr r3, [r3, #0]
  26196. 800b6a0: f64a 22aa movw r2, #43690 @ 0xaaaa
  26197. 800b6a4: 601a str r2, [r3, #0]
  26198. /* Return function status */
  26199. return HAL_OK;
  26200. 800b6a6: 2300 movs r3, #0
  26201. }
  26202. 800b6a8: 4618 mov r0, r3
  26203. 800b6aa: 370c adds r7, #12
  26204. 800b6ac: 46bd mov sp, r7
  26205. 800b6ae: f85d 7b04 ldr.w r7, [sp], #4
  26206. 800b6b2: 4770 bx lr
  26207. 0800b6b4 <HAL_PWR_ConfigPVD>:
  26208. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26209. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  26210. * @retval None.
  26211. */
  26212. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  26213. {
  26214. 800b6b4: b480 push {r7}
  26215. 800b6b6: b083 sub sp, #12
  26216. 800b6b8: af00 add r7, sp, #0
  26217. 800b6ba: 6078 str r0, [r7, #4]
  26218. /* Check the PVD configuration parameter */
  26219. if (sConfigPVD == NULL)
  26220. 800b6bc: 687b ldr r3, [r7, #4]
  26221. 800b6be: 2b00 cmp r3, #0
  26222. 800b6c0: d069 beq.n 800b796 <HAL_PWR_ConfigPVD+0xe2>
  26223. /* Check the parameters */
  26224. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  26225. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  26226. /* Set PLS[7:5] bits according to PVDLevel value */
  26227. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  26228. 800b6c2: 4b38 ldr r3, [pc, #224] @ (800b7a4 <HAL_PWR_ConfigPVD+0xf0>)
  26229. 800b6c4: 681b ldr r3, [r3, #0]
  26230. 800b6c6: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  26231. 800b6ca: 687b ldr r3, [r7, #4]
  26232. 800b6cc: 681b ldr r3, [r3, #0]
  26233. 800b6ce: 4935 ldr r1, [pc, #212] @ (800b7a4 <HAL_PWR_ConfigPVD+0xf0>)
  26234. 800b6d0: 4313 orrs r3, r2
  26235. 800b6d2: 600b str r3, [r1, #0]
  26236. /* Clear previous config */
  26237. #if !defined (DUAL_CORE)
  26238. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  26239. 800b6d4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26240. 800b6d8: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26241. 800b6dc: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26242. 800b6e0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26243. 800b6e4: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26244. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  26245. 800b6e8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26246. 800b6ec: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26247. 800b6f0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26248. 800b6f4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26249. 800b6f8: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26250. #endif /* !defined (DUAL_CORE) */
  26251. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  26252. 800b6fc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26253. 800b700: 681b ldr r3, [r3, #0]
  26254. 800b702: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26255. 800b706: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26256. 800b70a: 6013 str r3, [r2, #0]
  26257. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  26258. 800b70c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26259. 800b710: 685b ldr r3, [r3, #4]
  26260. 800b712: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26261. 800b716: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26262. 800b71a: 6053 str r3, [r2, #4]
  26263. #if !defined (DUAL_CORE)
  26264. /* Interrupt mode configuration */
  26265. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  26266. 800b71c: 687b ldr r3, [r7, #4]
  26267. 800b71e: 685b ldr r3, [r3, #4]
  26268. 800b720: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26269. 800b724: 2b00 cmp r3, #0
  26270. 800b726: d009 beq.n 800b73c <HAL_PWR_ConfigPVD+0x88>
  26271. {
  26272. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  26273. 800b728: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26274. 800b72c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26275. 800b730: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26276. 800b734: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26277. 800b738: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26278. }
  26279. /* Event mode configuration */
  26280. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  26281. 800b73c: 687b ldr r3, [r7, #4]
  26282. 800b73e: 685b ldr r3, [r3, #4]
  26283. 800b740: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26284. 800b744: 2b00 cmp r3, #0
  26285. 800b746: d009 beq.n 800b75c <HAL_PWR_ConfigPVD+0xa8>
  26286. {
  26287. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  26288. 800b748: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26289. 800b74c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26290. 800b750: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26291. 800b754: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26292. 800b758: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26293. }
  26294. #endif /* !defined (DUAL_CORE) */
  26295. /* Rising edge configuration */
  26296. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  26297. 800b75c: 687b ldr r3, [r7, #4]
  26298. 800b75e: 685b ldr r3, [r3, #4]
  26299. 800b760: f003 0301 and.w r3, r3, #1
  26300. 800b764: 2b00 cmp r3, #0
  26301. 800b766: d007 beq.n 800b778 <HAL_PWR_ConfigPVD+0xc4>
  26302. {
  26303. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  26304. 800b768: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26305. 800b76c: 681b ldr r3, [r3, #0]
  26306. 800b76e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26307. 800b772: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26308. 800b776: 6013 str r3, [r2, #0]
  26309. }
  26310. /* Falling edge configuration */
  26311. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  26312. 800b778: 687b ldr r3, [r7, #4]
  26313. 800b77a: 685b ldr r3, [r3, #4]
  26314. 800b77c: f003 0302 and.w r3, r3, #2
  26315. 800b780: 2b00 cmp r3, #0
  26316. 800b782: d009 beq.n 800b798 <HAL_PWR_ConfigPVD+0xe4>
  26317. {
  26318. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  26319. 800b784: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26320. 800b788: 685b ldr r3, [r3, #4]
  26321. 800b78a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26322. 800b78e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26323. 800b792: 6053 str r3, [r2, #4]
  26324. 800b794: e000 b.n 800b798 <HAL_PWR_ConfigPVD+0xe4>
  26325. return;
  26326. 800b796: bf00 nop
  26327. }
  26328. }
  26329. 800b798: 370c adds r7, #12
  26330. 800b79a: 46bd mov sp, r7
  26331. 800b79c: f85d 7b04 ldr.w r7, [sp], #4
  26332. 800b7a0: 4770 bx lr
  26333. 800b7a2: bf00 nop
  26334. 800b7a4: 58024800 .word 0x58024800
  26335. 0800b7a8 <HAL_PWR_EnablePVD>:
  26336. /**
  26337. * @brief Enable the Programmable Voltage Detector (PVD).
  26338. * @retval None.
  26339. */
  26340. void HAL_PWR_EnablePVD (void)
  26341. {
  26342. 800b7a8: b480 push {r7}
  26343. 800b7aa: af00 add r7, sp, #0
  26344. /* Enable the power voltage detector */
  26345. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  26346. 800b7ac: 4b05 ldr r3, [pc, #20] @ (800b7c4 <HAL_PWR_EnablePVD+0x1c>)
  26347. 800b7ae: 681b ldr r3, [r3, #0]
  26348. 800b7b0: 4a04 ldr r2, [pc, #16] @ (800b7c4 <HAL_PWR_EnablePVD+0x1c>)
  26349. 800b7b2: f043 0310 orr.w r3, r3, #16
  26350. 800b7b6: 6013 str r3, [r2, #0]
  26351. }
  26352. 800b7b8: bf00 nop
  26353. 800b7ba: 46bd mov sp, r7
  26354. 800b7bc: f85d 7b04 ldr.w r7, [sp], #4
  26355. 800b7c0: 4770 bx lr
  26356. 800b7c2: bf00 nop
  26357. 800b7c4: 58024800 .word 0x58024800
  26358. 0800b7c8 <HAL_PWREx_ConfigSupply>:
  26359. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  26360. * regulator.
  26361. * @retval HAL status.
  26362. */
  26363. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  26364. {
  26365. 800b7c8: b580 push {r7, lr}
  26366. 800b7ca: b084 sub sp, #16
  26367. 800b7cc: af00 add r7, sp, #0
  26368. 800b7ce: 6078 str r0, [r7, #4]
  26369. /* Check the parameters */
  26370. assert_param (IS_PWR_SUPPLY (SupplySource));
  26371. /* Check if supply source was configured */
  26372. #if defined (PWR_FLAG_SCUEN)
  26373. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  26374. 800b7d0: 4b19 ldr r3, [pc, #100] @ (800b838 <HAL_PWREx_ConfigSupply+0x70>)
  26375. 800b7d2: 68db ldr r3, [r3, #12]
  26376. 800b7d4: f003 0304 and.w r3, r3, #4
  26377. 800b7d8: 2b04 cmp r3, #4
  26378. 800b7da: d00a beq.n 800b7f2 <HAL_PWREx_ConfigSupply+0x2a>
  26379. #else
  26380. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  26381. #endif /* defined (PWR_FLAG_SCUEN) */
  26382. {
  26383. /* Check supply configuration */
  26384. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  26385. 800b7dc: 4b16 ldr r3, [pc, #88] @ (800b838 <HAL_PWREx_ConfigSupply+0x70>)
  26386. 800b7de: 68db ldr r3, [r3, #12]
  26387. 800b7e0: f003 0307 and.w r3, r3, #7
  26388. 800b7e4: 687a ldr r2, [r7, #4]
  26389. 800b7e6: 429a cmp r2, r3
  26390. 800b7e8: d001 beq.n 800b7ee <HAL_PWREx_ConfigSupply+0x26>
  26391. {
  26392. /* Supply configuration update locked, can't apply a new supply config */
  26393. return HAL_ERROR;
  26394. 800b7ea: 2301 movs r3, #1
  26395. 800b7ec: e01f b.n 800b82e <HAL_PWREx_ConfigSupply+0x66>
  26396. else
  26397. {
  26398. /* Supply configuration update locked, but new supply configuration
  26399. matches with old supply configuration : nothing to do
  26400. */
  26401. return HAL_OK;
  26402. 800b7ee: 2300 movs r3, #0
  26403. 800b7f0: e01d b.n 800b82e <HAL_PWREx_ConfigSupply+0x66>
  26404. }
  26405. }
  26406. /* Set the power supply configuration */
  26407. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  26408. 800b7f2: 4b11 ldr r3, [pc, #68] @ (800b838 <HAL_PWREx_ConfigSupply+0x70>)
  26409. 800b7f4: 68db ldr r3, [r3, #12]
  26410. 800b7f6: f023 0207 bic.w r2, r3, #7
  26411. 800b7fa: 490f ldr r1, [pc, #60] @ (800b838 <HAL_PWREx_ConfigSupply+0x70>)
  26412. 800b7fc: 687b ldr r3, [r7, #4]
  26413. 800b7fe: 4313 orrs r3, r2
  26414. 800b800: 60cb str r3, [r1, #12]
  26415. /* Get tick */
  26416. tickstart = HAL_GetTick ();
  26417. 800b802: f7fa fb0b bl 8005e1c <HAL_GetTick>
  26418. 800b806: 60f8 str r0, [r7, #12]
  26419. /* Wait till voltage level flag is set */
  26420. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26421. 800b808: e009 b.n 800b81e <HAL_PWREx_ConfigSupply+0x56>
  26422. {
  26423. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  26424. 800b80a: f7fa fb07 bl 8005e1c <HAL_GetTick>
  26425. 800b80e: 4602 mov r2, r0
  26426. 800b810: 68fb ldr r3, [r7, #12]
  26427. 800b812: 1ad3 subs r3, r2, r3
  26428. 800b814: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  26429. 800b818: d901 bls.n 800b81e <HAL_PWREx_ConfigSupply+0x56>
  26430. {
  26431. return HAL_ERROR;
  26432. 800b81a: 2301 movs r3, #1
  26433. 800b81c: e007 b.n 800b82e <HAL_PWREx_ConfigSupply+0x66>
  26434. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26435. 800b81e: 4b06 ldr r3, [pc, #24] @ (800b838 <HAL_PWREx_ConfigSupply+0x70>)
  26436. 800b820: 685b ldr r3, [r3, #4]
  26437. 800b822: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26438. 800b826: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26439. 800b82a: d1ee bne.n 800b80a <HAL_PWREx_ConfigSupply+0x42>
  26440. }
  26441. }
  26442. }
  26443. #endif /* defined (SMPS) */
  26444. return HAL_OK;
  26445. 800b82c: 2300 movs r3, #0
  26446. }
  26447. 800b82e: 4618 mov r0, r3
  26448. 800b830: 3710 adds r7, #16
  26449. 800b832: 46bd mov sp, r7
  26450. 800b834: bd80 pop {r7, pc}
  26451. 800b836: bf00 nop
  26452. 800b838: 58024800 .word 0x58024800
  26453. 0800b83c <HAL_PWREx_ConfigAVD>:
  26454. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26455. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  26456. * @retval None.
  26457. */
  26458. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  26459. {
  26460. 800b83c: b480 push {r7}
  26461. 800b83e: b083 sub sp, #12
  26462. 800b840: af00 add r7, sp, #0
  26463. 800b842: 6078 str r0, [r7, #4]
  26464. /* Check the parameters */
  26465. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  26466. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  26467. /* Set the ALS[18:17] bits according to AVDLevel value */
  26468. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  26469. 800b844: 4b37 ldr r3, [pc, #220] @ (800b924 <HAL_PWREx_ConfigAVD+0xe8>)
  26470. 800b846: 681b ldr r3, [r3, #0]
  26471. 800b848: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  26472. 800b84c: 687b ldr r3, [r7, #4]
  26473. 800b84e: 681b ldr r3, [r3, #0]
  26474. 800b850: 4934 ldr r1, [pc, #208] @ (800b924 <HAL_PWREx_ConfigAVD+0xe8>)
  26475. 800b852: 4313 orrs r3, r2
  26476. 800b854: 600b str r3, [r1, #0]
  26477. /* Clear any previous config */
  26478. #if !defined (DUAL_CORE)
  26479. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  26480. 800b856: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26481. 800b85a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26482. 800b85e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26483. 800b862: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26484. 800b866: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26485. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  26486. 800b86a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26487. 800b86e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26488. 800b872: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26489. 800b876: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26490. 800b87a: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26491. #endif /* !defined (DUAL_CORE) */
  26492. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  26493. 800b87e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26494. 800b882: 681b ldr r3, [r3, #0]
  26495. 800b884: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26496. 800b888: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26497. 800b88c: 6013 str r3, [r2, #0]
  26498. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  26499. 800b88e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26500. 800b892: 685b ldr r3, [r3, #4]
  26501. 800b894: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26502. 800b898: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26503. 800b89c: 6053 str r3, [r2, #4]
  26504. #if !defined (DUAL_CORE)
  26505. /* Configure the interrupt mode */
  26506. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  26507. 800b89e: 687b ldr r3, [r7, #4]
  26508. 800b8a0: 685b ldr r3, [r3, #4]
  26509. 800b8a2: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26510. 800b8a6: 2b00 cmp r3, #0
  26511. 800b8a8: d009 beq.n 800b8be <HAL_PWREx_ConfigAVD+0x82>
  26512. {
  26513. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  26514. 800b8aa: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26515. 800b8ae: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26516. 800b8b2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26517. 800b8b6: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26518. 800b8ba: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26519. }
  26520. /* Configure the event mode */
  26521. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  26522. 800b8be: 687b ldr r3, [r7, #4]
  26523. 800b8c0: 685b ldr r3, [r3, #4]
  26524. 800b8c2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26525. 800b8c6: 2b00 cmp r3, #0
  26526. 800b8c8: d009 beq.n 800b8de <HAL_PWREx_ConfigAVD+0xa2>
  26527. {
  26528. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  26529. 800b8ca: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26530. 800b8ce: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26531. 800b8d2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26532. 800b8d6: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26533. 800b8da: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26534. }
  26535. #endif /* !defined (DUAL_CORE) */
  26536. /* Rising edge configuration */
  26537. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  26538. 800b8de: 687b ldr r3, [r7, #4]
  26539. 800b8e0: 685b ldr r3, [r3, #4]
  26540. 800b8e2: f003 0301 and.w r3, r3, #1
  26541. 800b8e6: 2b00 cmp r3, #0
  26542. 800b8e8: d007 beq.n 800b8fa <HAL_PWREx_ConfigAVD+0xbe>
  26543. {
  26544. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  26545. 800b8ea: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26546. 800b8ee: 681b ldr r3, [r3, #0]
  26547. 800b8f0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26548. 800b8f4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26549. 800b8f8: 6013 str r3, [r2, #0]
  26550. }
  26551. /* Falling edge configuration */
  26552. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  26553. 800b8fa: 687b ldr r3, [r7, #4]
  26554. 800b8fc: 685b ldr r3, [r3, #4]
  26555. 800b8fe: f003 0302 and.w r3, r3, #2
  26556. 800b902: 2b00 cmp r3, #0
  26557. 800b904: d007 beq.n 800b916 <HAL_PWREx_ConfigAVD+0xda>
  26558. {
  26559. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  26560. 800b906: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26561. 800b90a: 685b ldr r3, [r3, #4]
  26562. 800b90c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26563. 800b910: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26564. 800b914: 6053 str r3, [r2, #4]
  26565. }
  26566. }
  26567. 800b916: bf00 nop
  26568. 800b918: 370c adds r7, #12
  26569. 800b91a: 46bd mov sp, r7
  26570. 800b91c: f85d 7b04 ldr.w r7, [sp], #4
  26571. 800b920: 4770 bx lr
  26572. 800b922: bf00 nop
  26573. 800b924: 58024800 .word 0x58024800
  26574. 0800b928 <HAL_PWREx_EnableAVD>:
  26575. /**
  26576. * @brief Enable the Analog Voltage Detector (AVD).
  26577. * @retval None.
  26578. */
  26579. void HAL_PWREx_EnableAVD (void)
  26580. {
  26581. 800b928: b480 push {r7}
  26582. 800b92a: af00 add r7, sp, #0
  26583. /* Enable the Analog Voltage Detector */
  26584. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  26585. 800b92c: 4b05 ldr r3, [pc, #20] @ (800b944 <HAL_PWREx_EnableAVD+0x1c>)
  26586. 800b92e: 681b ldr r3, [r3, #0]
  26587. 800b930: 4a04 ldr r2, [pc, #16] @ (800b944 <HAL_PWREx_EnableAVD+0x1c>)
  26588. 800b932: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26589. 800b936: 6013 str r3, [r2, #0]
  26590. }
  26591. 800b938: bf00 nop
  26592. 800b93a: 46bd mov sp, r7
  26593. 800b93c: f85d 7b04 ldr.w r7, [sp], #4
  26594. 800b940: 4770 bx lr
  26595. 800b942: bf00 nop
  26596. 800b944: 58024800 .word 0x58024800
  26597. 0800b948 <HAL_RCC_OscConfig>:
  26598. * supported by this function. User should request a transition to HSE Off
  26599. * first and then HSE On or HSE Bypass.
  26600. * @retval HAL status
  26601. */
  26602. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  26603. {
  26604. 800b948: b580 push {r7, lr}
  26605. 800b94a: b08c sub sp, #48 @ 0x30
  26606. 800b94c: af00 add r7, sp, #0
  26607. 800b94e: 6078 str r0, [r7, #4]
  26608. uint32_t tickstart;
  26609. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  26610. /* Check Null pointer */
  26611. if (RCC_OscInitStruct == NULL)
  26612. 800b950: 687b ldr r3, [r7, #4]
  26613. 800b952: 2b00 cmp r3, #0
  26614. 800b954: d102 bne.n 800b95c <HAL_RCC_OscConfig+0x14>
  26615. {
  26616. return HAL_ERROR;
  26617. 800b956: 2301 movs r3, #1
  26618. 800b958: f000 bc48 b.w 800c1ec <HAL_RCC_OscConfig+0x8a4>
  26619. }
  26620. /* Check the parameters */
  26621. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  26622. /*------------------------------- HSE Configuration ------------------------*/
  26623. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  26624. 800b95c: 687b ldr r3, [r7, #4]
  26625. 800b95e: 681b ldr r3, [r3, #0]
  26626. 800b960: f003 0301 and.w r3, r3, #1
  26627. 800b964: 2b00 cmp r3, #0
  26628. 800b966: f000 8088 beq.w 800ba7a <HAL_RCC_OscConfig+0x132>
  26629. {
  26630. /* Check the parameters */
  26631. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  26632. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26633. 800b96a: 4b99 ldr r3, [pc, #612] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26634. 800b96c: 691b ldr r3, [r3, #16]
  26635. 800b96e: f003 0338 and.w r3, r3, #56 @ 0x38
  26636. 800b972: 62fb str r3, [r7, #44] @ 0x2c
  26637. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26638. 800b974: 4b96 ldr r3, [pc, #600] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26639. 800b976: 6a9b ldr r3, [r3, #40] @ 0x28
  26640. 800b978: 62bb str r3, [r7, #40] @ 0x28
  26641. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  26642. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  26643. 800b97a: 6afb ldr r3, [r7, #44] @ 0x2c
  26644. 800b97c: 2b10 cmp r3, #16
  26645. 800b97e: d007 beq.n 800b990 <HAL_RCC_OscConfig+0x48>
  26646. 800b980: 6afb ldr r3, [r7, #44] @ 0x2c
  26647. 800b982: 2b18 cmp r3, #24
  26648. 800b984: d111 bne.n 800b9aa <HAL_RCC_OscConfig+0x62>
  26649. 800b986: 6abb ldr r3, [r7, #40] @ 0x28
  26650. 800b988: f003 0303 and.w r3, r3, #3
  26651. 800b98c: 2b02 cmp r3, #2
  26652. 800b98e: d10c bne.n 800b9aa <HAL_RCC_OscConfig+0x62>
  26653. {
  26654. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26655. 800b990: 4b8f ldr r3, [pc, #572] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26656. 800b992: 681b ldr r3, [r3, #0]
  26657. 800b994: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26658. 800b998: 2b00 cmp r3, #0
  26659. 800b99a: d06d beq.n 800ba78 <HAL_RCC_OscConfig+0x130>
  26660. 800b99c: 687b ldr r3, [r7, #4]
  26661. 800b99e: 685b ldr r3, [r3, #4]
  26662. 800b9a0: 2b00 cmp r3, #0
  26663. 800b9a2: d169 bne.n 800ba78 <HAL_RCC_OscConfig+0x130>
  26664. {
  26665. return HAL_ERROR;
  26666. 800b9a4: 2301 movs r3, #1
  26667. 800b9a6: f000 bc21 b.w 800c1ec <HAL_RCC_OscConfig+0x8a4>
  26668. }
  26669. }
  26670. else
  26671. {
  26672. /* Set the new HSE configuration ---------------------------------------*/
  26673. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  26674. 800b9aa: 687b ldr r3, [r7, #4]
  26675. 800b9ac: 685b ldr r3, [r3, #4]
  26676. 800b9ae: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26677. 800b9b2: d106 bne.n 800b9c2 <HAL_RCC_OscConfig+0x7a>
  26678. 800b9b4: 4b86 ldr r3, [pc, #536] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26679. 800b9b6: 681b ldr r3, [r3, #0]
  26680. 800b9b8: 4a85 ldr r2, [pc, #532] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26681. 800b9ba: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26682. 800b9be: 6013 str r3, [r2, #0]
  26683. 800b9c0: e02e b.n 800ba20 <HAL_RCC_OscConfig+0xd8>
  26684. 800b9c2: 687b ldr r3, [r7, #4]
  26685. 800b9c4: 685b ldr r3, [r3, #4]
  26686. 800b9c6: 2b00 cmp r3, #0
  26687. 800b9c8: d10c bne.n 800b9e4 <HAL_RCC_OscConfig+0x9c>
  26688. 800b9ca: 4b81 ldr r3, [pc, #516] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26689. 800b9cc: 681b ldr r3, [r3, #0]
  26690. 800b9ce: 4a80 ldr r2, [pc, #512] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26691. 800b9d0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26692. 800b9d4: 6013 str r3, [r2, #0]
  26693. 800b9d6: 4b7e ldr r3, [pc, #504] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26694. 800b9d8: 681b ldr r3, [r3, #0]
  26695. 800b9da: 4a7d ldr r2, [pc, #500] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26696. 800b9dc: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26697. 800b9e0: 6013 str r3, [r2, #0]
  26698. 800b9e2: e01d b.n 800ba20 <HAL_RCC_OscConfig+0xd8>
  26699. 800b9e4: 687b ldr r3, [r7, #4]
  26700. 800b9e6: 685b ldr r3, [r3, #4]
  26701. 800b9e8: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  26702. 800b9ec: d10c bne.n 800ba08 <HAL_RCC_OscConfig+0xc0>
  26703. 800b9ee: 4b78 ldr r3, [pc, #480] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26704. 800b9f0: 681b ldr r3, [r3, #0]
  26705. 800b9f2: 4a77 ldr r2, [pc, #476] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26706. 800b9f4: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26707. 800b9f8: 6013 str r3, [r2, #0]
  26708. 800b9fa: 4b75 ldr r3, [pc, #468] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26709. 800b9fc: 681b ldr r3, [r3, #0]
  26710. 800b9fe: 4a74 ldr r2, [pc, #464] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26711. 800ba00: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26712. 800ba04: 6013 str r3, [r2, #0]
  26713. 800ba06: e00b b.n 800ba20 <HAL_RCC_OscConfig+0xd8>
  26714. 800ba08: 4b71 ldr r3, [pc, #452] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26715. 800ba0a: 681b ldr r3, [r3, #0]
  26716. 800ba0c: 4a70 ldr r2, [pc, #448] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26717. 800ba0e: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26718. 800ba12: 6013 str r3, [r2, #0]
  26719. 800ba14: 4b6e ldr r3, [pc, #440] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26720. 800ba16: 681b ldr r3, [r3, #0]
  26721. 800ba18: 4a6d ldr r2, [pc, #436] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26722. 800ba1a: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26723. 800ba1e: 6013 str r3, [r2, #0]
  26724. /* Check the HSE State */
  26725. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  26726. 800ba20: 687b ldr r3, [r7, #4]
  26727. 800ba22: 685b ldr r3, [r3, #4]
  26728. 800ba24: 2b00 cmp r3, #0
  26729. 800ba26: d013 beq.n 800ba50 <HAL_RCC_OscConfig+0x108>
  26730. {
  26731. /* Get Start Tick*/
  26732. tickstart = HAL_GetTick();
  26733. 800ba28: f7fa f9f8 bl 8005e1c <HAL_GetTick>
  26734. 800ba2c: 6278 str r0, [r7, #36] @ 0x24
  26735. /* Wait till HSE is ready */
  26736. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26737. 800ba2e: e008 b.n 800ba42 <HAL_RCC_OscConfig+0xfa>
  26738. {
  26739. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26740. 800ba30: f7fa f9f4 bl 8005e1c <HAL_GetTick>
  26741. 800ba34: 4602 mov r2, r0
  26742. 800ba36: 6a7b ldr r3, [r7, #36] @ 0x24
  26743. 800ba38: 1ad3 subs r3, r2, r3
  26744. 800ba3a: 2b64 cmp r3, #100 @ 0x64
  26745. 800ba3c: d901 bls.n 800ba42 <HAL_RCC_OscConfig+0xfa>
  26746. {
  26747. return HAL_TIMEOUT;
  26748. 800ba3e: 2303 movs r3, #3
  26749. 800ba40: e3d4 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  26750. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26751. 800ba42: 4b63 ldr r3, [pc, #396] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26752. 800ba44: 681b ldr r3, [r3, #0]
  26753. 800ba46: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26754. 800ba4a: 2b00 cmp r3, #0
  26755. 800ba4c: d0f0 beq.n 800ba30 <HAL_RCC_OscConfig+0xe8>
  26756. 800ba4e: e014 b.n 800ba7a <HAL_RCC_OscConfig+0x132>
  26757. }
  26758. }
  26759. else
  26760. {
  26761. /* Get Start Tick*/
  26762. tickstart = HAL_GetTick();
  26763. 800ba50: f7fa f9e4 bl 8005e1c <HAL_GetTick>
  26764. 800ba54: 6278 str r0, [r7, #36] @ 0x24
  26765. /* Wait till HSE is disabled */
  26766. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26767. 800ba56: e008 b.n 800ba6a <HAL_RCC_OscConfig+0x122>
  26768. {
  26769. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26770. 800ba58: f7fa f9e0 bl 8005e1c <HAL_GetTick>
  26771. 800ba5c: 4602 mov r2, r0
  26772. 800ba5e: 6a7b ldr r3, [r7, #36] @ 0x24
  26773. 800ba60: 1ad3 subs r3, r2, r3
  26774. 800ba62: 2b64 cmp r3, #100 @ 0x64
  26775. 800ba64: d901 bls.n 800ba6a <HAL_RCC_OscConfig+0x122>
  26776. {
  26777. return HAL_TIMEOUT;
  26778. 800ba66: 2303 movs r3, #3
  26779. 800ba68: e3c0 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  26780. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26781. 800ba6a: 4b59 ldr r3, [pc, #356] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26782. 800ba6c: 681b ldr r3, [r3, #0]
  26783. 800ba6e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26784. 800ba72: 2b00 cmp r3, #0
  26785. 800ba74: d1f0 bne.n 800ba58 <HAL_RCC_OscConfig+0x110>
  26786. 800ba76: e000 b.n 800ba7a <HAL_RCC_OscConfig+0x132>
  26787. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26788. 800ba78: bf00 nop
  26789. }
  26790. }
  26791. }
  26792. }
  26793. /*----------------------------- HSI Configuration --------------------------*/
  26794. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  26795. 800ba7a: 687b ldr r3, [r7, #4]
  26796. 800ba7c: 681b ldr r3, [r3, #0]
  26797. 800ba7e: f003 0302 and.w r3, r3, #2
  26798. 800ba82: 2b00 cmp r3, #0
  26799. 800ba84: f000 80ca beq.w 800bc1c <HAL_RCC_OscConfig+0x2d4>
  26800. /* Check the parameters */
  26801. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  26802. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  26803. /* When the HSI is used as system clock it will not be disabled */
  26804. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26805. 800ba88: 4b51 ldr r3, [pc, #324] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26806. 800ba8a: 691b ldr r3, [r3, #16]
  26807. 800ba8c: f003 0338 and.w r3, r3, #56 @ 0x38
  26808. 800ba90: 623b str r3, [r7, #32]
  26809. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26810. 800ba92: 4b4f ldr r3, [pc, #316] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26811. 800ba94: 6a9b ldr r3, [r3, #40] @ 0x28
  26812. 800ba96: 61fb str r3, [r7, #28]
  26813. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  26814. 800ba98: 6a3b ldr r3, [r7, #32]
  26815. 800ba9a: 2b00 cmp r3, #0
  26816. 800ba9c: d007 beq.n 800baae <HAL_RCC_OscConfig+0x166>
  26817. 800ba9e: 6a3b ldr r3, [r7, #32]
  26818. 800baa0: 2b18 cmp r3, #24
  26819. 800baa2: d156 bne.n 800bb52 <HAL_RCC_OscConfig+0x20a>
  26820. 800baa4: 69fb ldr r3, [r7, #28]
  26821. 800baa6: f003 0303 and.w r3, r3, #3
  26822. 800baaa: 2b00 cmp r3, #0
  26823. 800baac: d151 bne.n 800bb52 <HAL_RCC_OscConfig+0x20a>
  26824. {
  26825. /* When HSI is used as system clock it will not be disabled */
  26826. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26827. 800baae: 4b48 ldr r3, [pc, #288] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26828. 800bab0: 681b ldr r3, [r3, #0]
  26829. 800bab2: f003 0304 and.w r3, r3, #4
  26830. 800bab6: 2b00 cmp r3, #0
  26831. 800bab8: d005 beq.n 800bac6 <HAL_RCC_OscConfig+0x17e>
  26832. 800baba: 687b ldr r3, [r7, #4]
  26833. 800babc: 68db ldr r3, [r3, #12]
  26834. 800babe: 2b00 cmp r3, #0
  26835. 800bac0: d101 bne.n 800bac6 <HAL_RCC_OscConfig+0x17e>
  26836. {
  26837. return HAL_ERROR;
  26838. 800bac2: 2301 movs r3, #1
  26839. 800bac4: e392 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  26840. }
  26841. /* Otherwise, only HSI division and calibration are allowed */
  26842. else
  26843. {
  26844. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  26845. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26846. 800bac6: 4b42 ldr r3, [pc, #264] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26847. 800bac8: 681b ldr r3, [r3, #0]
  26848. 800baca: f023 0219 bic.w r2, r3, #25
  26849. 800bace: 687b ldr r3, [r7, #4]
  26850. 800bad0: 68db ldr r3, [r3, #12]
  26851. 800bad2: 493f ldr r1, [pc, #252] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26852. 800bad4: 4313 orrs r3, r2
  26853. 800bad6: 600b str r3, [r1, #0]
  26854. /* Get Start Tick*/
  26855. tickstart = HAL_GetTick();
  26856. 800bad8: f7fa f9a0 bl 8005e1c <HAL_GetTick>
  26857. 800badc: 6278 str r0, [r7, #36] @ 0x24
  26858. /* Wait till HSI is ready */
  26859. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26860. 800bade: e008 b.n 800baf2 <HAL_RCC_OscConfig+0x1aa>
  26861. {
  26862. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26863. 800bae0: f7fa f99c bl 8005e1c <HAL_GetTick>
  26864. 800bae4: 4602 mov r2, r0
  26865. 800bae6: 6a7b ldr r3, [r7, #36] @ 0x24
  26866. 800bae8: 1ad3 subs r3, r2, r3
  26867. 800baea: 2b02 cmp r3, #2
  26868. 800baec: d901 bls.n 800baf2 <HAL_RCC_OscConfig+0x1aa>
  26869. {
  26870. return HAL_TIMEOUT;
  26871. 800baee: 2303 movs r3, #3
  26872. 800baf0: e37c b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  26873. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26874. 800baf2: 4b37 ldr r3, [pc, #220] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26875. 800baf4: 681b ldr r3, [r3, #0]
  26876. 800baf6: f003 0304 and.w r3, r3, #4
  26877. 800bafa: 2b00 cmp r3, #0
  26878. 800bafc: d0f0 beq.n 800bae0 <HAL_RCC_OscConfig+0x198>
  26879. }
  26880. }
  26881. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26882. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26883. 800bafe: f7fa f999 bl 8005e34 <HAL_GetREVID>
  26884. 800bb02: 4603 mov r3, r0
  26885. 800bb04: f241 0203 movw r2, #4099 @ 0x1003
  26886. 800bb08: 4293 cmp r3, r2
  26887. 800bb0a: d817 bhi.n 800bb3c <HAL_RCC_OscConfig+0x1f4>
  26888. 800bb0c: 687b ldr r3, [r7, #4]
  26889. 800bb0e: 691b ldr r3, [r3, #16]
  26890. 800bb10: 2b40 cmp r3, #64 @ 0x40
  26891. 800bb12: d108 bne.n 800bb26 <HAL_RCC_OscConfig+0x1de>
  26892. 800bb14: 4b2e ldr r3, [pc, #184] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26893. 800bb16: 685b ldr r3, [r3, #4]
  26894. 800bb18: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26895. 800bb1c: 4a2c ldr r2, [pc, #176] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26896. 800bb1e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26897. 800bb22: 6053 str r3, [r2, #4]
  26898. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26899. 800bb24: e07a b.n 800bc1c <HAL_RCC_OscConfig+0x2d4>
  26900. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26901. 800bb26: 4b2a ldr r3, [pc, #168] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26902. 800bb28: 685b ldr r3, [r3, #4]
  26903. 800bb2a: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26904. 800bb2e: 687b ldr r3, [r7, #4]
  26905. 800bb30: 691b ldr r3, [r3, #16]
  26906. 800bb32: 031b lsls r3, r3, #12
  26907. 800bb34: 4926 ldr r1, [pc, #152] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26908. 800bb36: 4313 orrs r3, r2
  26909. 800bb38: 604b str r3, [r1, #4]
  26910. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26911. 800bb3a: e06f b.n 800bc1c <HAL_RCC_OscConfig+0x2d4>
  26912. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26913. 800bb3c: 4b24 ldr r3, [pc, #144] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26914. 800bb3e: 685b ldr r3, [r3, #4]
  26915. 800bb40: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  26916. 800bb44: 687b ldr r3, [r7, #4]
  26917. 800bb46: 691b ldr r3, [r3, #16]
  26918. 800bb48: 061b lsls r3, r3, #24
  26919. 800bb4a: 4921 ldr r1, [pc, #132] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26920. 800bb4c: 4313 orrs r3, r2
  26921. 800bb4e: 604b str r3, [r1, #4]
  26922. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26923. 800bb50: e064 b.n 800bc1c <HAL_RCC_OscConfig+0x2d4>
  26924. }
  26925. else
  26926. {
  26927. /* Check the HSI State */
  26928. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  26929. 800bb52: 687b ldr r3, [r7, #4]
  26930. 800bb54: 68db ldr r3, [r3, #12]
  26931. 800bb56: 2b00 cmp r3, #0
  26932. 800bb58: d047 beq.n 800bbea <HAL_RCC_OscConfig+0x2a2>
  26933. {
  26934. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  26935. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26936. 800bb5a: 4b1d ldr r3, [pc, #116] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26937. 800bb5c: 681b ldr r3, [r3, #0]
  26938. 800bb5e: f023 0219 bic.w r2, r3, #25
  26939. 800bb62: 687b ldr r3, [r7, #4]
  26940. 800bb64: 68db ldr r3, [r3, #12]
  26941. 800bb66: 491a ldr r1, [pc, #104] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26942. 800bb68: 4313 orrs r3, r2
  26943. 800bb6a: 600b str r3, [r1, #0]
  26944. /* Get Start Tick*/
  26945. tickstart = HAL_GetTick();
  26946. 800bb6c: f7fa f956 bl 8005e1c <HAL_GetTick>
  26947. 800bb70: 6278 str r0, [r7, #36] @ 0x24
  26948. /* Wait till HSI is ready */
  26949. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26950. 800bb72: e008 b.n 800bb86 <HAL_RCC_OscConfig+0x23e>
  26951. {
  26952. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26953. 800bb74: f7fa f952 bl 8005e1c <HAL_GetTick>
  26954. 800bb78: 4602 mov r2, r0
  26955. 800bb7a: 6a7b ldr r3, [r7, #36] @ 0x24
  26956. 800bb7c: 1ad3 subs r3, r2, r3
  26957. 800bb7e: 2b02 cmp r3, #2
  26958. 800bb80: d901 bls.n 800bb86 <HAL_RCC_OscConfig+0x23e>
  26959. {
  26960. return HAL_TIMEOUT;
  26961. 800bb82: 2303 movs r3, #3
  26962. 800bb84: e332 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  26963. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26964. 800bb86: 4b12 ldr r3, [pc, #72] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26965. 800bb88: 681b ldr r3, [r3, #0]
  26966. 800bb8a: f003 0304 and.w r3, r3, #4
  26967. 800bb8e: 2b00 cmp r3, #0
  26968. 800bb90: d0f0 beq.n 800bb74 <HAL_RCC_OscConfig+0x22c>
  26969. }
  26970. }
  26971. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26972. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26973. 800bb92: f7fa f94f bl 8005e34 <HAL_GetREVID>
  26974. 800bb96: 4603 mov r3, r0
  26975. 800bb98: f241 0203 movw r2, #4099 @ 0x1003
  26976. 800bb9c: 4293 cmp r3, r2
  26977. 800bb9e: d819 bhi.n 800bbd4 <HAL_RCC_OscConfig+0x28c>
  26978. 800bba0: 687b ldr r3, [r7, #4]
  26979. 800bba2: 691b ldr r3, [r3, #16]
  26980. 800bba4: 2b40 cmp r3, #64 @ 0x40
  26981. 800bba6: d108 bne.n 800bbba <HAL_RCC_OscConfig+0x272>
  26982. 800bba8: 4b09 ldr r3, [pc, #36] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26983. 800bbaa: 685b ldr r3, [r3, #4]
  26984. 800bbac: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26985. 800bbb0: 4a07 ldr r2, [pc, #28] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26986. 800bbb2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26987. 800bbb6: 6053 str r3, [r2, #4]
  26988. 800bbb8: e030 b.n 800bc1c <HAL_RCC_OscConfig+0x2d4>
  26989. 800bbba: 4b05 ldr r3, [pc, #20] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26990. 800bbbc: 685b ldr r3, [r3, #4]
  26991. 800bbbe: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26992. 800bbc2: 687b ldr r3, [r7, #4]
  26993. 800bbc4: 691b ldr r3, [r3, #16]
  26994. 800bbc6: 031b lsls r3, r3, #12
  26995. 800bbc8: 4901 ldr r1, [pc, #4] @ (800bbd0 <HAL_RCC_OscConfig+0x288>)
  26996. 800bbca: 4313 orrs r3, r2
  26997. 800bbcc: 604b str r3, [r1, #4]
  26998. 800bbce: e025 b.n 800bc1c <HAL_RCC_OscConfig+0x2d4>
  26999. 800bbd0: 58024400 .word 0x58024400
  27000. 800bbd4: 4b9a ldr r3, [pc, #616] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27001. 800bbd6: 685b ldr r3, [r3, #4]
  27002. 800bbd8: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  27003. 800bbdc: 687b ldr r3, [r7, #4]
  27004. 800bbde: 691b ldr r3, [r3, #16]
  27005. 800bbe0: 061b lsls r3, r3, #24
  27006. 800bbe2: 4997 ldr r1, [pc, #604] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27007. 800bbe4: 4313 orrs r3, r2
  27008. 800bbe6: 604b str r3, [r1, #4]
  27009. 800bbe8: e018 b.n 800bc1c <HAL_RCC_OscConfig+0x2d4>
  27010. }
  27011. else
  27012. {
  27013. /* Disable the Internal High Speed oscillator (HSI). */
  27014. __HAL_RCC_HSI_DISABLE();
  27015. 800bbea: 4b95 ldr r3, [pc, #596] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27016. 800bbec: 681b ldr r3, [r3, #0]
  27017. 800bbee: 4a94 ldr r2, [pc, #592] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27018. 800bbf0: f023 0301 bic.w r3, r3, #1
  27019. 800bbf4: 6013 str r3, [r2, #0]
  27020. /* Get Start Tick*/
  27021. tickstart = HAL_GetTick();
  27022. 800bbf6: f7fa f911 bl 8005e1c <HAL_GetTick>
  27023. 800bbfa: 6278 str r0, [r7, #36] @ 0x24
  27024. /* Wait till HSI is disabled */
  27025. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27026. 800bbfc: e008 b.n 800bc10 <HAL_RCC_OscConfig+0x2c8>
  27027. {
  27028. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  27029. 800bbfe: f7fa f90d bl 8005e1c <HAL_GetTick>
  27030. 800bc02: 4602 mov r2, r0
  27031. 800bc04: 6a7b ldr r3, [r7, #36] @ 0x24
  27032. 800bc06: 1ad3 subs r3, r2, r3
  27033. 800bc08: 2b02 cmp r3, #2
  27034. 800bc0a: d901 bls.n 800bc10 <HAL_RCC_OscConfig+0x2c8>
  27035. {
  27036. return HAL_TIMEOUT;
  27037. 800bc0c: 2303 movs r3, #3
  27038. 800bc0e: e2ed b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27039. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27040. 800bc10: 4b8b ldr r3, [pc, #556] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27041. 800bc12: 681b ldr r3, [r3, #0]
  27042. 800bc14: f003 0304 and.w r3, r3, #4
  27043. 800bc18: 2b00 cmp r3, #0
  27044. 800bc1a: d1f0 bne.n 800bbfe <HAL_RCC_OscConfig+0x2b6>
  27045. }
  27046. }
  27047. }
  27048. }
  27049. /*----------------------------- CSI Configuration --------------------------*/
  27050. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  27051. 800bc1c: 687b ldr r3, [r7, #4]
  27052. 800bc1e: 681b ldr r3, [r3, #0]
  27053. 800bc20: f003 0310 and.w r3, r3, #16
  27054. 800bc24: 2b00 cmp r3, #0
  27055. 800bc26: f000 80a9 beq.w 800bd7c <HAL_RCC_OscConfig+0x434>
  27056. /* Check the parameters */
  27057. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  27058. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  27059. /* When the CSI is used as system clock it will not disabled */
  27060. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  27061. 800bc2a: 4b85 ldr r3, [pc, #532] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27062. 800bc2c: 691b ldr r3, [r3, #16]
  27063. 800bc2e: f003 0338 and.w r3, r3, #56 @ 0x38
  27064. 800bc32: 61bb str r3, [r7, #24]
  27065. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  27066. 800bc34: 4b82 ldr r3, [pc, #520] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27067. 800bc36: 6a9b ldr r3, [r3, #40] @ 0x28
  27068. 800bc38: 617b str r3, [r7, #20]
  27069. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  27070. 800bc3a: 69bb ldr r3, [r7, #24]
  27071. 800bc3c: 2b08 cmp r3, #8
  27072. 800bc3e: d007 beq.n 800bc50 <HAL_RCC_OscConfig+0x308>
  27073. 800bc40: 69bb ldr r3, [r7, #24]
  27074. 800bc42: 2b18 cmp r3, #24
  27075. 800bc44: d13a bne.n 800bcbc <HAL_RCC_OscConfig+0x374>
  27076. 800bc46: 697b ldr r3, [r7, #20]
  27077. 800bc48: f003 0303 and.w r3, r3, #3
  27078. 800bc4c: 2b01 cmp r3, #1
  27079. 800bc4e: d135 bne.n 800bcbc <HAL_RCC_OscConfig+0x374>
  27080. {
  27081. /* When CSI is used as system clock it will not disabled */
  27082. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27083. 800bc50: 4b7b ldr r3, [pc, #492] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27084. 800bc52: 681b ldr r3, [r3, #0]
  27085. 800bc54: f403 7380 and.w r3, r3, #256 @ 0x100
  27086. 800bc58: 2b00 cmp r3, #0
  27087. 800bc5a: d005 beq.n 800bc68 <HAL_RCC_OscConfig+0x320>
  27088. 800bc5c: 687b ldr r3, [r7, #4]
  27089. 800bc5e: 69db ldr r3, [r3, #28]
  27090. 800bc60: 2b80 cmp r3, #128 @ 0x80
  27091. 800bc62: d001 beq.n 800bc68 <HAL_RCC_OscConfig+0x320>
  27092. {
  27093. return HAL_ERROR;
  27094. 800bc64: 2301 movs r3, #1
  27095. 800bc66: e2c1 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27096. }
  27097. /* Otherwise, just the calibration is allowed */
  27098. else
  27099. {
  27100. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27101. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27102. 800bc68: f7fa f8e4 bl 8005e34 <HAL_GetREVID>
  27103. 800bc6c: 4603 mov r3, r0
  27104. 800bc6e: f241 0203 movw r2, #4099 @ 0x1003
  27105. 800bc72: 4293 cmp r3, r2
  27106. 800bc74: d817 bhi.n 800bca6 <HAL_RCC_OscConfig+0x35e>
  27107. 800bc76: 687b ldr r3, [r7, #4]
  27108. 800bc78: 6a1b ldr r3, [r3, #32]
  27109. 800bc7a: 2b20 cmp r3, #32
  27110. 800bc7c: d108 bne.n 800bc90 <HAL_RCC_OscConfig+0x348>
  27111. 800bc7e: 4b70 ldr r3, [pc, #448] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27112. 800bc80: 685b ldr r3, [r3, #4]
  27113. 800bc82: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27114. 800bc86: 4a6e ldr r2, [pc, #440] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27115. 800bc88: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27116. 800bc8c: 6053 str r3, [r2, #4]
  27117. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27118. 800bc8e: e075 b.n 800bd7c <HAL_RCC_OscConfig+0x434>
  27119. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27120. 800bc90: 4b6b ldr r3, [pc, #428] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27121. 800bc92: 685b ldr r3, [r3, #4]
  27122. 800bc94: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27123. 800bc98: 687b ldr r3, [r7, #4]
  27124. 800bc9a: 6a1b ldr r3, [r3, #32]
  27125. 800bc9c: 069b lsls r3, r3, #26
  27126. 800bc9e: 4968 ldr r1, [pc, #416] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27127. 800bca0: 4313 orrs r3, r2
  27128. 800bca2: 604b str r3, [r1, #4]
  27129. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27130. 800bca4: e06a b.n 800bd7c <HAL_RCC_OscConfig+0x434>
  27131. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27132. 800bca6: 4b66 ldr r3, [pc, #408] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27133. 800bca8: 68db ldr r3, [r3, #12]
  27134. 800bcaa: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27135. 800bcae: 687b ldr r3, [r7, #4]
  27136. 800bcb0: 6a1b ldr r3, [r3, #32]
  27137. 800bcb2: 061b lsls r3, r3, #24
  27138. 800bcb4: 4962 ldr r1, [pc, #392] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27139. 800bcb6: 4313 orrs r3, r2
  27140. 800bcb8: 60cb str r3, [r1, #12]
  27141. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27142. 800bcba: e05f b.n 800bd7c <HAL_RCC_OscConfig+0x434>
  27143. }
  27144. }
  27145. else
  27146. {
  27147. /* Check the CSI State */
  27148. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  27149. 800bcbc: 687b ldr r3, [r7, #4]
  27150. 800bcbe: 69db ldr r3, [r3, #28]
  27151. 800bcc0: 2b00 cmp r3, #0
  27152. 800bcc2: d042 beq.n 800bd4a <HAL_RCC_OscConfig+0x402>
  27153. {
  27154. /* Enable the Internal High Speed oscillator (CSI). */
  27155. __HAL_RCC_CSI_ENABLE();
  27156. 800bcc4: 4b5e ldr r3, [pc, #376] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27157. 800bcc6: 681b ldr r3, [r3, #0]
  27158. 800bcc8: 4a5d ldr r2, [pc, #372] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27159. 800bcca: f043 0380 orr.w r3, r3, #128 @ 0x80
  27160. 800bcce: 6013 str r3, [r2, #0]
  27161. /* Get Start Tick*/
  27162. tickstart = HAL_GetTick();
  27163. 800bcd0: f7fa f8a4 bl 8005e1c <HAL_GetTick>
  27164. 800bcd4: 6278 str r0, [r7, #36] @ 0x24
  27165. /* Wait till CSI is ready */
  27166. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27167. 800bcd6: e008 b.n 800bcea <HAL_RCC_OscConfig+0x3a2>
  27168. {
  27169. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27170. 800bcd8: f7fa f8a0 bl 8005e1c <HAL_GetTick>
  27171. 800bcdc: 4602 mov r2, r0
  27172. 800bcde: 6a7b ldr r3, [r7, #36] @ 0x24
  27173. 800bce0: 1ad3 subs r3, r2, r3
  27174. 800bce2: 2b02 cmp r3, #2
  27175. 800bce4: d901 bls.n 800bcea <HAL_RCC_OscConfig+0x3a2>
  27176. {
  27177. return HAL_TIMEOUT;
  27178. 800bce6: 2303 movs r3, #3
  27179. 800bce8: e280 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27180. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27181. 800bcea: 4b55 ldr r3, [pc, #340] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27182. 800bcec: 681b ldr r3, [r3, #0]
  27183. 800bcee: f403 7380 and.w r3, r3, #256 @ 0x100
  27184. 800bcf2: 2b00 cmp r3, #0
  27185. 800bcf4: d0f0 beq.n 800bcd8 <HAL_RCC_OscConfig+0x390>
  27186. }
  27187. }
  27188. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27189. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27190. 800bcf6: f7fa f89d bl 8005e34 <HAL_GetREVID>
  27191. 800bcfa: 4603 mov r3, r0
  27192. 800bcfc: f241 0203 movw r2, #4099 @ 0x1003
  27193. 800bd00: 4293 cmp r3, r2
  27194. 800bd02: d817 bhi.n 800bd34 <HAL_RCC_OscConfig+0x3ec>
  27195. 800bd04: 687b ldr r3, [r7, #4]
  27196. 800bd06: 6a1b ldr r3, [r3, #32]
  27197. 800bd08: 2b20 cmp r3, #32
  27198. 800bd0a: d108 bne.n 800bd1e <HAL_RCC_OscConfig+0x3d6>
  27199. 800bd0c: 4b4c ldr r3, [pc, #304] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27200. 800bd0e: 685b ldr r3, [r3, #4]
  27201. 800bd10: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27202. 800bd14: 4a4a ldr r2, [pc, #296] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27203. 800bd16: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27204. 800bd1a: 6053 str r3, [r2, #4]
  27205. 800bd1c: e02e b.n 800bd7c <HAL_RCC_OscConfig+0x434>
  27206. 800bd1e: 4b48 ldr r3, [pc, #288] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27207. 800bd20: 685b ldr r3, [r3, #4]
  27208. 800bd22: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27209. 800bd26: 687b ldr r3, [r7, #4]
  27210. 800bd28: 6a1b ldr r3, [r3, #32]
  27211. 800bd2a: 069b lsls r3, r3, #26
  27212. 800bd2c: 4944 ldr r1, [pc, #272] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27213. 800bd2e: 4313 orrs r3, r2
  27214. 800bd30: 604b str r3, [r1, #4]
  27215. 800bd32: e023 b.n 800bd7c <HAL_RCC_OscConfig+0x434>
  27216. 800bd34: 4b42 ldr r3, [pc, #264] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27217. 800bd36: 68db ldr r3, [r3, #12]
  27218. 800bd38: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27219. 800bd3c: 687b ldr r3, [r7, #4]
  27220. 800bd3e: 6a1b ldr r3, [r3, #32]
  27221. 800bd40: 061b lsls r3, r3, #24
  27222. 800bd42: 493f ldr r1, [pc, #252] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27223. 800bd44: 4313 orrs r3, r2
  27224. 800bd46: 60cb str r3, [r1, #12]
  27225. 800bd48: e018 b.n 800bd7c <HAL_RCC_OscConfig+0x434>
  27226. }
  27227. else
  27228. {
  27229. /* Disable the Internal High Speed oscillator (CSI). */
  27230. __HAL_RCC_CSI_DISABLE();
  27231. 800bd4a: 4b3d ldr r3, [pc, #244] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27232. 800bd4c: 681b ldr r3, [r3, #0]
  27233. 800bd4e: 4a3c ldr r2, [pc, #240] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27234. 800bd50: f023 0380 bic.w r3, r3, #128 @ 0x80
  27235. 800bd54: 6013 str r3, [r2, #0]
  27236. /* Get Start Tick*/
  27237. tickstart = HAL_GetTick();
  27238. 800bd56: f7fa f861 bl 8005e1c <HAL_GetTick>
  27239. 800bd5a: 6278 str r0, [r7, #36] @ 0x24
  27240. /* Wait till CSI is disabled */
  27241. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27242. 800bd5c: e008 b.n 800bd70 <HAL_RCC_OscConfig+0x428>
  27243. {
  27244. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27245. 800bd5e: f7fa f85d bl 8005e1c <HAL_GetTick>
  27246. 800bd62: 4602 mov r2, r0
  27247. 800bd64: 6a7b ldr r3, [r7, #36] @ 0x24
  27248. 800bd66: 1ad3 subs r3, r2, r3
  27249. 800bd68: 2b02 cmp r3, #2
  27250. 800bd6a: d901 bls.n 800bd70 <HAL_RCC_OscConfig+0x428>
  27251. {
  27252. return HAL_TIMEOUT;
  27253. 800bd6c: 2303 movs r3, #3
  27254. 800bd6e: e23d b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27255. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27256. 800bd70: 4b33 ldr r3, [pc, #204] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27257. 800bd72: 681b ldr r3, [r3, #0]
  27258. 800bd74: f403 7380 and.w r3, r3, #256 @ 0x100
  27259. 800bd78: 2b00 cmp r3, #0
  27260. 800bd7a: d1f0 bne.n 800bd5e <HAL_RCC_OscConfig+0x416>
  27261. }
  27262. }
  27263. }
  27264. }
  27265. /*------------------------------ LSI Configuration -------------------------*/
  27266. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  27267. 800bd7c: 687b ldr r3, [r7, #4]
  27268. 800bd7e: 681b ldr r3, [r3, #0]
  27269. 800bd80: f003 0308 and.w r3, r3, #8
  27270. 800bd84: 2b00 cmp r3, #0
  27271. 800bd86: d036 beq.n 800bdf6 <HAL_RCC_OscConfig+0x4ae>
  27272. {
  27273. /* Check the parameters */
  27274. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  27275. /* Check the LSI State */
  27276. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  27277. 800bd88: 687b ldr r3, [r7, #4]
  27278. 800bd8a: 695b ldr r3, [r3, #20]
  27279. 800bd8c: 2b00 cmp r3, #0
  27280. 800bd8e: d019 beq.n 800bdc4 <HAL_RCC_OscConfig+0x47c>
  27281. {
  27282. /* Enable the Internal Low Speed oscillator (LSI). */
  27283. __HAL_RCC_LSI_ENABLE();
  27284. 800bd90: 4b2b ldr r3, [pc, #172] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27285. 800bd92: 6f5b ldr r3, [r3, #116] @ 0x74
  27286. 800bd94: 4a2a ldr r2, [pc, #168] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27287. 800bd96: f043 0301 orr.w r3, r3, #1
  27288. 800bd9a: 6753 str r3, [r2, #116] @ 0x74
  27289. /* Get Start Tick*/
  27290. tickstart = HAL_GetTick();
  27291. 800bd9c: f7fa f83e bl 8005e1c <HAL_GetTick>
  27292. 800bda0: 6278 str r0, [r7, #36] @ 0x24
  27293. /* Wait till LSI is ready */
  27294. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27295. 800bda2: e008 b.n 800bdb6 <HAL_RCC_OscConfig+0x46e>
  27296. {
  27297. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27298. 800bda4: f7fa f83a bl 8005e1c <HAL_GetTick>
  27299. 800bda8: 4602 mov r2, r0
  27300. 800bdaa: 6a7b ldr r3, [r7, #36] @ 0x24
  27301. 800bdac: 1ad3 subs r3, r2, r3
  27302. 800bdae: 2b02 cmp r3, #2
  27303. 800bdb0: d901 bls.n 800bdb6 <HAL_RCC_OscConfig+0x46e>
  27304. {
  27305. return HAL_TIMEOUT;
  27306. 800bdb2: 2303 movs r3, #3
  27307. 800bdb4: e21a b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27308. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27309. 800bdb6: 4b22 ldr r3, [pc, #136] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27310. 800bdb8: 6f5b ldr r3, [r3, #116] @ 0x74
  27311. 800bdba: f003 0302 and.w r3, r3, #2
  27312. 800bdbe: 2b00 cmp r3, #0
  27313. 800bdc0: d0f0 beq.n 800bda4 <HAL_RCC_OscConfig+0x45c>
  27314. 800bdc2: e018 b.n 800bdf6 <HAL_RCC_OscConfig+0x4ae>
  27315. }
  27316. }
  27317. else
  27318. {
  27319. /* Disable the Internal Low Speed oscillator (LSI). */
  27320. __HAL_RCC_LSI_DISABLE();
  27321. 800bdc4: 4b1e ldr r3, [pc, #120] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27322. 800bdc6: 6f5b ldr r3, [r3, #116] @ 0x74
  27323. 800bdc8: 4a1d ldr r2, [pc, #116] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27324. 800bdca: f023 0301 bic.w r3, r3, #1
  27325. 800bdce: 6753 str r3, [r2, #116] @ 0x74
  27326. /* Get Start Tick*/
  27327. tickstart = HAL_GetTick();
  27328. 800bdd0: f7fa f824 bl 8005e1c <HAL_GetTick>
  27329. 800bdd4: 6278 str r0, [r7, #36] @ 0x24
  27330. /* Wait till LSI is ready */
  27331. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27332. 800bdd6: e008 b.n 800bdea <HAL_RCC_OscConfig+0x4a2>
  27333. {
  27334. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27335. 800bdd8: f7fa f820 bl 8005e1c <HAL_GetTick>
  27336. 800bddc: 4602 mov r2, r0
  27337. 800bdde: 6a7b ldr r3, [r7, #36] @ 0x24
  27338. 800bde0: 1ad3 subs r3, r2, r3
  27339. 800bde2: 2b02 cmp r3, #2
  27340. 800bde4: d901 bls.n 800bdea <HAL_RCC_OscConfig+0x4a2>
  27341. {
  27342. return HAL_TIMEOUT;
  27343. 800bde6: 2303 movs r3, #3
  27344. 800bde8: e200 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27345. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27346. 800bdea: 4b15 ldr r3, [pc, #84] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27347. 800bdec: 6f5b ldr r3, [r3, #116] @ 0x74
  27348. 800bdee: f003 0302 and.w r3, r3, #2
  27349. 800bdf2: 2b00 cmp r3, #0
  27350. 800bdf4: d1f0 bne.n 800bdd8 <HAL_RCC_OscConfig+0x490>
  27351. }
  27352. }
  27353. }
  27354. /*------------------------------ HSI48 Configuration -------------------------*/
  27355. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  27356. 800bdf6: 687b ldr r3, [r7, #4]
  27357. 800bdf8: 681b ldr r3, [r3, #0]
  27358. 800bdfa: f003 0320 and.w r3, r3, #32
  27359. 800bdfe: 2b00 cmp r3, #0
  27360. 800be00: d039 beq.n 800be76 <HAL_RCC_OscConfig+0x52e>
  27361. {
  27362. /* Check the parameters */
  27363. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  27364. /* Check the HSI48 State */
  27365. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  27366. 800be02: 687b ldr r3, [r7, #4]
  27367. 800be04: 699b ldr r3, [r3, #24]
  27368. 800be06: 2b00 cmp r3, #0
  27369. 800be08: d01c beq.n 800be44 <HAL_RCC_OscConfig+0x4fc>
  27370. {
  27371. /* Enable the Internal Low Speed oscillator (HSI48). */
  27372. __HAL_RCC_HSI48_ENABLE();
  27373. 800be0a: 4b0d ldr r3, [pc, #52] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27374. 800be0c: 681b ldr r3, [r3, #0]
  27375. 800be0e: 4a0c ldr r2, [pc, #48] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27376. 800be10: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  27377. 800be14: 6013 str r3, [r2, #0]
  27378. /* Get time-out */
  27379. tickstart = HAL_GetTick();
  27380. 800be16: f7fa f801 bl 8005e1c <HAL_GetTick>
  27381. 800be1a: 6278 str r0, [r7, #36] @ 0x24
  27382. /* Wait till HSI48 is ready */
  27383. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27384. 800be1c: e008 b.n 800be30 <HAL_RCC_OscConfig+0x4e8>
  27385. {
  27386. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27387. 800be1e: f7f9 fffd bl 8005e1c <HAL_GetTick>
  27388. 800be22: 4602 mov r2, r0
  27389. 800be24: 6a7b ldr r3, [r7, #36] @ 0x24
  27390. 800be26: 1ad3 subs r3, r2, r3
  27391. 800be28: 2b02 cmp r3, #2
  27392. 800be2a: d901 bls.n 800be30 <HAL_RCC_OscConfig+0x4e8>
  27393. {
  27394. return HAL_TIMEOUT;
  27395. 800be2c: 2303 movs r3, #3
  27396. 800be2e: e1dd b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27397. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27398. 800be30: 4b03 ldr r3, [pc, #12] @ (800be40 <HAL_RCC_OscConfig+0x4f8>)
  27399. 800be32: 681b ldr r3, [r3, #0]
  27400. 800be34: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27401. 800be38: 2b00 cmp r3, #0
  27402. 800be3a: d0f0 beq.n 800be1e <HAL_RCC_OscConfig+0x4d6>
  27403. 800be3c: e01b b.n 800be76 <HAL_RCC_OscConfig+0x52e>
  27404. 800be3e: bf00 nop
  27405. 800be40: 58024400 .word 0x58024400
  27406. }
  27407. }
  27408. else
  27409. {
  27410. /* Disable the Internal Low Speed oscillator (HSI48). */
  27411. __HAL_RCC_HSI48_DISABLE();
  27412. 800be44: 4b9b ldr r3, [pc, #620] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27413. 800be46: 681b ldr r3, [r3, #0]
  27414. 800be48: 4a9a ldr r2, [pc, #616] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27415. 800be4a: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  27416. 800be4e: 6013 str r3, [r2, #0]
  27417. /* Get time-out */
  27418. tickstart = HAL_GetTick();
  27419. 800be50: f7f9 ffe4 bl 8005e1c <HAL_GetTick>
  27420. 800be54: 6278 str r0, [r7, #36] @ 0x24
  27421. /* Wait till HSI48 is ready */
  27422. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27423. 800be56: e008 b.n 800be6a <HAL_RCC_OscConfig+0x522>
  27424. {
  27425. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27426. 800be58: f7f9 ffe0 bl 8005e1c <HAL_GetTick>
  27427. 800be5c: 4602 mov r2, r0
  27428. 800be5e: 6a7b ldr r3, [r7, #36] @ 0x24
  27429. 800be60: 1ad3 subs r3, r2, r3
  27430. 800be62: 2b02 cmp r3, #2
  27431. 800be64: d901 bls.n 800be6a <HAL_RCC_OscConfig+0x522>
  27432. {
  27433. return HAL_TIMEOUT;
  27434. 800be66: 2303 movs r3, #3
  27435. 800be68: e1c0 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27436. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27437. 800be6a: 4b92 ldr r3, [pc, #584] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27438. 800be6c: 681b ldr r3, [r3, #0]
  27439. 800be6e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27440. 800be72: 2b00 cmp r3, #0
  27441. 800be74: d1f0 bne.n 800be58 <HAL_RCC_OscConfig+0x510>
  27442. }
  27443. }
  27444. }
  27445. }
  27446. /*------------------------------ LSE Configuration -------------------------*/
  27447. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  27448. 800be76: 687b ldr r3, [r7, #4]
  27449. 800be78: 681b ldr r3, [r3, #0]
  27450. 800be7a: f003 0304 and.w r3, r3, #4
  27451. 800be7e: 2b00 cmp r3, #0
  27452. 800be80: f000 8081 beq.w 800bf86 <HAL_RCC_OscConfig+0x63e>
  27453. {
  27454. /* Check the parameters */
  27455. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  27456. /* Enable write access to Backup domain */
  27457. PWR->CR1 |= PWR_CR1_DBP;
  27458. 800be84: 4b8c ldr r3, [pc, #560] @ (800c0b8 <HAL_RCC_OscConfig+0x770>)
  27459. 800be86: 681b ldr r3, [r3, #0]
  27460. 800be88: 4a8b ldr r2, [pc, #556] @ (800c0b8 <HAL_RCC_OscConfig+0x770>)
  27461. 800be8a: f443 7380 orr.w r3, r3, #256 @ 0x100
  27462. 800be8e: 6013 str r3, [r2, #0]
  27463. /* Wait for Backup domain Write protection disable */
  27464. tickstart = HAL_GetTick();
  27465. 800be90: f7f9 ffc4 bl 8005e1c <HAL_GetTick>
  27466. 800be94: 6278 str r0, [r7, #36] @ 0x24
  27467. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27468. 800be96: e008 b.n 800beaa <HAL_RCC_OscConfig+0x562>
  27469. {
  27470. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  27471. 800be98: f7f9 ffc0 bl 8005e1c <HAL_GetTick>
  27472. 800be9c: 4602 mov r2, r0
  27473. 800be9e: 6a7b ldr r3, [r7, #36] @ 0x24
  27474. 800bea0: 1ad3 subs r3, r2, r3
  27475. 800bea2: 2b64 cmp r3, #100 @ 0x64
  27476. 800bea4: d901 bls.n 800beaa <HAL_RCC_OscConfig+0x562>
  27477. {
  27478. return HAL_TIMEOUT;
  27479. 800bea6: 2303 movs r3, #3
  27480. 800bea8: e1a0 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27481. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27482. 800beaa: 4b83 ldr r3, [pc, #524] @ (800c0b8 <HAL_RCC_OscConfig+0x770>)
  27483. 800beac: 681b ldr r3, [r3, #0]
  27484. 800beae: f403 7380 and.w r3, r3, #256 @ 0x100
  27485. 800beb2: 2b00 cmp r3, #0
  27486. 800beb4: d0f0 beq.n 800be98 <HAL_RCC_OscConfig+0x550>
  27487. }
  27488. }
  27489. /* Set the new LSE configuration -----------------------------------------*/
  27490. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  27491. 800beb6: 687b ldr r3, [r7, #4]
  27492. 800beb8: 689b ldr r3, [r3, #8]
  27493. 800beba: 2b01 cmp r3, #1
  27494. 800bebc: d106 bne.n 800becc <HAL_RCC_OscConfig+0x584>
  27495. 800bebe: 4b7d ldr r3, [pc, #500] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27496. 800bec0: 6f1b ldr r3, [r3, #112] @ 0x70
  27497. 800bec2: 4a7c ldr r2, [pc, #496] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27498. 800bec4: f043 0301 orr.w r3, r3, #1
  27499. 800bec8: 6713 str r3, [r2, #112] @ 0x70
  27500. 800beca: e02d b.n 800bf28 <HAL_RCC_OscConfig+0x5e0>
  27501. 800becc: 687b ldr r3, [r7, #4]
  27502. 800bece: 689b ldr r3, [r3, #8]
  27503. 800bed0: 2b00 cmp r3, #0
  27504. 800bed2: d10c bne.n 800beee <HAL_RCC_OscConfig+0x5a6>
  27505. 800bed4: 4b77 ldr r3, [pc, #476] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27506. 800bed6: 6f1b ldr r3, [r3, #112] @ 0x70
  27507. 800bed8: 4a76 ldr r2, [pc, #472] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27508. 800beda: f023 0301 bic.w r3, r3, #1
  27509. 800bede: 6713 str r3, [r2, #112] @ 0x70
  27510. 800bee0: 4b74 ldr r3, [pc, #464] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27511. 800bee2: 6f1b ldr r3, [r3, #112] @ 0x70
  27512. 800bee4: 4a73 ldr r2, [pc, #460] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27513. 800bee6: f023 0304 bic.w r3, r3, #4
  27514. 800beea: 6713 str r3, [r2, #112] @ 0x70
  27515. 800beec: e01c b.n 800bf28 <HAL_RCC_OscConfig+0x5e0>
  27516. 800beee: 687b ldr r3, [r7, #4]
  27517. 800bef0: 689b ldr r3, [r3, #8]
  27518. 800bef2: 2b05 cmp r3, #5
  27519. 800bef4: d10c bne.n 800bf10 <HAL_RCC_OscConfig+0x5c8>
  27520. 800bef6: 4b6f ldr r3, [pc, #444] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27521. 800bef8: 6f1b ldr r3, [r3, #112] @ 0x70
  27522. 800befa: 4a6e ldr r2, [pc, #440] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27523. 800befc: f043 0304 orr.w r3, r3, #4
  27524. 800bf00: 6713 str r3, [r2, #112] @ 0x70
  27525. 800bf02: 4b6c ldr r3, [pc, #432] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27526. 800bf04: 6f1b ldr r3, [r3, #112] @ 0x70
  27527. 800bf06: 4a6b ldr r2, [pc, #428] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27528. 800bf08: f043 0301 orr.w r3, r3, #1
  27529. 800bf0c: 6713 str r3, [r2, #112] @ 0x70
  27530. 800bf0e: e00b b.n 800bf28 <HAL_RCC_OscConfig+0x5e0>
  27531. 800bf10: 4b68 ldr r3, [pc, #416] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27532. 800bf12: 6f1b ldr r3, [r3, #112] @ 0x70
  27533. 800bf14: 4a67 ldr r2, [pc, #412] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27534. 800bf16: f023 0301 bic.w r3, r3, #1
  27535. 800bf1a: 6713 str r3, [r2, #112] @ 0x70
  27536. 800bf1c: 4b65 ldr r3, [pc, #404] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27537. 800bf1e: 6f1b ldr r3, [r3, #112] @ 0x70
  27538. 800bf20: 4a64 ldr r2, [pc, #400] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27539. 800bf22: f023 0304 bic.w r3, r3, #4
  27540. 800bf26: 6713 str r3, [r2, #112] @ 0x70
  27541. /* Check the LSE State */
  27542. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  27543. 800bf28: 687b ldr r3, [r7, #4]
  27544. 800bf2a: 689b ldr r3, [r3, #8]
  27545. 800bf2c: 2b00 cmp r3, #0
  27546. 800bf2e: d015 beq.n 800bf5c <HAL_RCC_OscConfig+0x614>
  27547. {
  27548. /* Get Start Tick*/
  27549. tickstart = HAL_GetTick();
  27550. 800bf30: f7f9 ff74 bl 8005e1c <HAL_GetTick>
  27551. 800bf34: 6278 str r0, [r7, #36] @ 0x24
  27552. /* Wait till LSE is ready */
  27553. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27554. 800bf36: e00a b.n 800bf4e <HAL_RCC_OscConfig+0x606>
  27555. {
  27556. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27557. 800bf38: f7f9 ff70 bl 8005e1c <HAL_GetTick>
  27558. 800bf3c: 4602 mov r2, r0
  27559. 800bf3e: 6a7b ldr r3, [r7, #36] @ 0x24
  27560. 800bf40: 1ad3 subs r3, r2, r3
  27561. 800bf42: f241 3288 movw r2, #5000 @ 0x1388
  27562. 800bf46: 4293 cmp r3, r2
  27563. 800bf48: d901 bls.n 800bf4e <HAL_RCC_OscConfig+0x606>
  27564. {
  27565. return HAL_TIMEOUT;
  27566. 800bf4a: 2303 movs r3, #3
  27567. 800bf4c: e14e b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27568. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27569. 800bf4e: 4b59 ldr r3, [pc, #356] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27570. 800bf50: 6f1b ldr r3, [r3, #112] @ 0x70
  27571. 800bf52: f003 0302 and.w r3, r3, #2
  27572. 800bf56: 2b00 cmp r3, #0
  27573. 800bf58: d0ee beq.n 800bf38 <HAL_RCC_OscConfig+0x5f0>
  27574. 800bf5a: e014 b.n 800bf86 <HAL_RCC_OscConfig+0x63e>
  27575. }
  27576. }
  27577. else
  27578. {
  27579. /* Get Start Tick*/
  27580. tickstart = HAL_GetTick();
  27581. 800bf5c: f7f9 ff5e bl 8005e1c <HAL_GetTick>
  27582. 800bf60: 6278 str r0, [r7, #36] @ 0x24
  27583. /* Wait till LSE is disabled */
  27584. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27585. 800bf62: e00a b.n 800bf7a <HAL_RCC_OscConfig+0x632>
  27586. {
  27587. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27588. 800bf64: f7f9 ff5a bl 8005e1c <HAL_GetTick>
  27589. 800bf68: 4602 mov r2, r0
  27590. 800bf6a: 6a7b ldr r3, [r7, #36] @ 0x24
  27591. 800bf6c: 1ad3 subs r3, r2, r3
  27592. 800bf6e: f241 3288 movw r2, #5000 @ 0x1388
  27593. 800bf72: 4293 cmp r3, r2
  27594. 800bf74: d901 bls.n 800bf7a <HAL_RCC_OscConfig+0x632>
  27595. {
  27596. return HAL_TIMEOUT;
  27597. 800bf76: 2303 movs r3, #3
  27598. 800bf78: e138 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27599. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27600. 800bf7a: 4b4e ldr r3, [pc, #312] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27601. 800bf7c: 6f1b ldr r3, [r3, #112] @ 0x70
  27602. 800bf7e: f003 0302 and.w r3, r3, #2
  27603. 800bf82: 2b00 cmp r3, #0
  27604. 800bf84: d1ee bne.n 800bf64 <HAL_RCC_OscConfig+0x61c>
  27605. }
  27606. }
  27607. /*-------------------------------- PLL Configuration -----------------------*/
  27608. /* Check the parameters */
  27609. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  27610. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  27611. 800bf86: 687b ldr r3, [r7, #4]
  27612. 800bf88: 6a5b ldr r3, [r3, #36] @ 0x24
  27613. 800bf8a: 2b00 cmp r3, #0
  27614. 800bf8c: f000 812d beq.w 800c1ea <HAL_RCC_OscConfig+0x8a2>
  27615. {
  27616. /* Check if the PLL is used as system clock or not */
  27617. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  27618. 800bf90: 4b48 ldr r3, [pc, #288] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27619. 800bf92: 691b ldr r3, [r3, #16]
  27620. 800bf94: f003 0338 and.w r3, r3, #56 @ 0x38
  27621. 800bf98: 2b18 cmp r3, #24
  27622. 800bf9a: f000 80bd beq.w 800c118 <HAL_RCC_OscConfig+0x7d0>
  27623. {
  27624. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  27625. 800bf9e: 687b ldr r3, [r7, #4]
  27626. 800bfa0: 6a5b ldr r3, [r3, #36] @ 0x24
  27627. 800bfa2: 2b02 cmp r3, #2
  27628. 800bfa4: f040 809e bne.w 800c0e4 <HAL_RCC_OscConfig+0x79c>
  27629. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  27630. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  27631. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27632. /* Disable the main PLL. */
  27633. __HAL_RCC_PLL_DISABLE();
  27634. 800bfa8: 4b42 ldr r3, [pc, #264] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27635. 800bfaa: 681b ldr r3, [r3, #0]
  27636. 800bfac: 4a41 ldr r2, [pc, #260] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27637. 800bfae: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27638. 800bfb2: 6013 str r3, [r2, #0]
  27639. /* Get Start Tick*/
  27640. tickstart = HAL_GetTick();
  27641. 800bfb4: f7f9 ff32 bl 8005e1c <HAL_GetTick>
  27642. 800bfb8: 6278 str r0, [r7, #36] @ 0x24
  27643. /* Wait till PLL is disabled */
  27644. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27645. 800bfba: e008 b.n 800bfce <HAL_RCC_OscConfig+0x686>
  27646. {
  27647. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27648. 800bfbc: f7f9 ff2e bl 8005e1c <HAL_GetTick>
  27649. 800bfc0: 4602 mov r2, r0
  27650. 800bfc2: 6a7b ldr r3, [r7, #36] @ 0x24
  27651. 800bfc4: 1ad3 subs r3, r2, r3
  27652. 800bfc6: 2b02 cmp r3, #2
  27653. 800bfc8: d901 bls.n 800bfce <HAL_RCC_OscConfig+0x686>
  27654. {
  27655. return HAL_TIMEOUT;
  27656. 800bfca: 2303 movs r3, #3
  27657. 800bfcc: e10e b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27658. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27659. 800bfce: 4b39 ldr r3, [pc, #228] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27660. 800bfd0: 681b ldr r3, [r3, #0]
  27661. 800bfd2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27662. 800bfd6: 2b00 cmp r3, #0
  27663. 800bfd8: d1f0 bne.n 800bfbc <HAL_RCC_OscConfig+0x674>
  27664. }
  27665. }
  27666. /* Configure the main PLL clock source, multiplication and division factors. */
  27667. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  27668. 800bfda: 4b36 ldr r3, [pc, #216] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27669. 800bfdc: 6a9a ldr r2, [r3, #40] @ 0x28
  27670. 800bfde: 4b37 ldr r3, [pc, #220] @ (800c0bc <HAL_RCC_OscConfig+0x774>)
  27671. 800bfe0: 4013 ands r3, r2
  27672. 800bfe2: 687a ldr r2, [r7, #4]
  27673. 800bfe4: 6a91 ldr r1, [r2, #40] @ 0x28
  27674. 800bfe6: 687a ldr r2, [r7, #4]
  27675. 800bfe8: 6ad2 ldr r2, [r2, #44] @ 0x2c
  27676. 800bfea: 0112 lsls r2, r2, #4
  27677. 800bfec: 430a orrs r2, r1
  27678. 800bfee: 4931 ldr r1, [pc, #196] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27679. 800bff0: 4313 orrs r3, r2
  27680. 800bff2: 628b str r3, [r1, #40] @ 0x28
  27681. 800bff4: 687b ldr r3, [r7, #4]
  27682. 800bff6: 6b1b ldr r3, [r3, #48] @ 0x30
  27683. 800bff8: 3b01 subs r3, #1
  27684. 800bffa: f3c3 0208 ubfx r2, r3, #0, #9
  27685. 800bffe: 687b ldr r3, [r7, #4]
  27686. 800c000: 6b5b ldr r3, [r3, #52] @ 0x34
  27687. 800c002: 3b01 subs r3, #1
  27688. 800c004: 025b lsls r3, r3, #9
  27689. 800c006: b29b uxth r3, r3
  27690. 800c008: 431a orrs r2, r3
  27691. 800c00a: 687b ldr r3, [r7, #4]
  27692. 800c00c: 6b9b ldr r3, [r3, #56] @ 0x38
  27693. 800c00e: 3b01 subs r3, #1
  27694. 800c010: 041b lsls r3, r3, #16
  27695. 800c012: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  27696. 800c016: 431a orrs r2, r3
  27697. 800c018: 687b ldr r3, [r7, #4]
  27698. 800c01a: 6bdb ldr r3, [r3, #60] @ 0x3c
  27699. 800c01c: 3b01 subs r3, #1
  27700. 800c01e: 061b lsls r3, r3, #24
  27701. 800c020: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  27702. 800c024: 4923 ldr r1, [pc, #140] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27703. 800c026: 4313 orrs r3, r2
  27704. 800c028: 630b str r3, [r1, #48] @ 0x30
  27705. RCC_OscInitStruct->PLL.PLLP,
  27706. RCC_OscInitStruct->PLL.PLLQ,
  27707. RCC_OscInitStruct->PLL.PLLR);
  27708. /* Disable PLLFRACN . */
  27709. __HAL_RCC_PLLFRACN_DISABLE();
  27710. 800c02a: 4b22 ldr r3, [pc, #136] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27711. 800c02c: 6adb ldr r3, [r3, #44] @ 0x2c
  27712. 800c02e: 4a21 ldr r2, [pc, #132] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27713. 800c030: f023 0301 bic.w r3, r3, #1
  27714. 800c034: 62d3 str r3, [r2, #44] @ 0x2c
  27715. /* Configure PLL PLL1FRACN */
  27716. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27717. 800c036: 4b1f ldr r3, [pc, #124] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27718. 800c038: 6b5a ldr r2, [r3, #52] @ 0x34
  27719. 800c03a: 4b21 ldr r3, [pc, #132] @ (800c0c0 <HAL_RCC_OscConfig+0x778>)
  27720. 800c03c: 4013 ands r3, r2
  27721. 800c03e: 687a ldr r2, [r7, #4]
  27722. 800c040: 6c92 ldr r2, [r2, #72] @ 0x48
  27723. 800c042: 00d2 lsls r2, r2, #3
  27724. 800c044: 491b ldr r1, [pc, #108] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27725. 800c046: 4313 orrs r3, r2
  27726. 800c048: 634b str r3, [r1, #52] @ 0x34
  27727. /* Select PLL1 input reference frequency range: VCI */
  27728. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  27729. 800c04a: 4b1a ldr r3, [pc, #104] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27730. 800c04c: 6adb ldr r3, [r3, #44] @ 0x2c
  27731. 800c04e: f023 020c bic.w r2, r3, #12
  27732. 800c052: 687b ldr r3, [r7, #4]
  27733. 800c054: 6c1b ldr r3, [r3, #64] @ 0x40
  27734. 800c056: 4917 ldr r1, [pc, #92] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27735. 800c058: 4313 orrs r3, r2
  27736. 800c05a: 62cb str r3, [r1, #44] @ 0x2c
  27737. /* Select PLL1 output frequency range : VCO */
  27738. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  27739. 800c05c: 4b15 ldr r3, [pc, #84] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27740. 800c05e: 6adb ldr r3, [r3, #44] @ 0x2c
  27741. 800c060: f023 0202 bic.w r2, r3, #2
  27742. 800c064: 687b ldr r3, [r7, #4]
  27743. 800c066: 6c5b ldr r3, [r3, #68] @ 0x44
  27744. 800c068: 4912 ldr r1, [pc, #72] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27745. 800c06a: 4313 orrs r3, r2
  27746. 800c06c: 62cb str r3, [r1, #44] @ 0x2c
  27747. /* Enable PLL System Clock output. */
  27748. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  27749. 800c06e: 4b11 ldr r3, [pc, #68] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27750. 800c070: 6adb ldr r3, [r3, #44] @ 0x2c
  27751. 800c072: 4a10 ldr r2, [pc, #64] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27752. 800c074: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  27753. 800c078: 62d3 str r3, [r2, #44] @ 0x2c
  27754. /* Enable PLL1Q Clock output. */
  27755. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27756. 800c07a: 4b0e ldr r3, [pc, #56] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27757. 800c07c: 6adb ldr r3, [r3, #44] @ 0x2c
  27758. 800c07e: 4a0d ldr r2, [pc, #52] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27759. 800c080: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27760. 800c084: 62d3 str r3, [r2, #44] @ 0x2c
  27761. /* Enable PLL1R Clock output. */
  27762. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  27763. 800c086: 4b0b ldr r3, [pc, #44] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27764. 800c088: 6adb ldr r3, [r3, #44] @ 0x2c
  27765. 800c08a: 4a0a ldr r2, [pc, #40] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27766. 800c08c: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  27767. 800c090: 62d3 str r3, [r2, #44] @ 0x2c
  27768. /* Enable PLL1FRACN . */
  27769. __HAL_RCC_PLLFRACN_ENABLE();
  27770. 800c092: 4b08 ldr r3, [pc, #32] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27771. 800c094: 6adb ldr r3, [r3, #44] @ 0x2c
  27772. 800c096: 4a07 ldr r2, [pc, #28] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27773. 800c098: f043 0301 orr.w r3, r3, #1
  27774. 800c09c: 62d3 str r3, [r2, #44] @ 0x2c
  27775. /* Enable the main PLL. */
  27776. __HAL_RCC_PLL_ENABLE();
  27777. 800c09e: 4b05 ldr r3, [pc, #20] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27778. 800c0a0: 681b ldr r3, [r3, #0]
  27779. 800c0a2: 4a04 ldr r2, [pc, #16] @ (800c0b4 <HAL_RCC_OscConfig+0x76c>)
  27780. 800c0a4: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  27781. 800c0a8: 6013 str r3, [r2, #0]
  27782. /* Get Start Tick*/
  27783. tickstart = HAL_GetTick();
  27784. 800c0aa: f7f9 feb7 bl 8005e1c <HAL_GetTick>
  27785. 800c0ae: 6278 str r0, [r7, #36] @ 0x24
  27786. /* Wait till PLL is ready */
  27787. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27788. 800c0b0: e011 b.n 800c0d6 <HAL_RCC_OscConfig+0x78e>
  27789. 800c0b2: bf00 nop
  27790. 800c0b4: 58024400 .word 0x58024400
  27791. 800c0b8: 58024800 .word 0x58024800
  27792. 800c0bc: fffffc0c .word 0xfffffc0c
  27793. 800c0c0: ffff0007 .word 0xffff0007
  27794. {
  27795. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27796. 800c0c4: f7f9 feaa bl 8005e1c <HAL_GetTick>
  27797. 800c0c8: 4602 mov r2, r0
  27798. 800c0ca: 6a7b ldr r3, [r7, #36] @ 0x24
  27799. 800c0cc: 1ad3 subs r3, r2, r3
  27800. 800c0ce: 2b02 cmp r3, #2
  27801. 800c0d0: d901 bls.n 800c0d6 <HAL_RCC_OscConfig+0x78e>
  27802. {
  27803. return HAL_TIMEOUT;
  27804. 800c0d2: 2303 movs r3, #3
  27805. 800c0d4: e08a b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27806. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27807. 800c0d6: 4b47 ldr r3, [pc, #284] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27808. 800c0d8: 681b ldr r3, [r3, #0]
  27809. 800c0da: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27810. 800c0de: 2b00 cmp r3, #0
  27811. 800c0e0: d0f0 beq.n 800c0c4 <HAL_RCC_OscConfig+0x77c>
  27812. 800c0e2: e082 b.n 800c1ea <HAL_RCC_OscConfig+0x8a2>
  27813. }
  27814. }
  27815. else
  27816. {
  27817. /* Disable the main PLL. */
  27818. __HAL_RCC_PLL_DISABLE();
  27819. 800c0e4: 4b43 ldr r3, [pc, #268] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27820. 800c0e6: 681b ldr r3, [r3, #0]
  27821. 800c0e8: 4a42 ldr r2, [pc, #264] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27822. 800c0ea: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27823. 800c0ee: 6013 str r3, [r2, #0]
  27824. /* Get Start Tick*/
  27825. tickstart = HAL_GetTick();
  27826. 800c0f0: f7f9 fe94 bl 8005e1c <HAL_GetTick>
  27827. 800c0f4: 6278 str r0, [r7, #36] @ 0x24
  27828. /* Wait till PLL is disabled */
  27829. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27830. 800c0f6: e008 b.n 800c10a <HAL_RCC_OscConfig+0x7c2>
  27831. {
  27832. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27833. 800c0f8: f7f9 fe90 bl 8005e1c <HAL_GetTick>
  27834. 800c0fc: 4602 mov r2, r0
  27835. 800c0fe: 6a7b ldr r3, [r7, #36] @ 0x24
  27836. 800c100: 1ad3 subs r3, r2, r3
  27837. 800c102: 2b02 cmp r3, #2
  27838. 800c104: d901 bls.n 800c10a <HAL_RCC_OscConfig+0x7c2>
  27839. {
  27840. return HAL_TIMEOUT;
  27841. 800c106: 2303 movs r3, #3
  27842. 800c108: e070 b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27843. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27844. 800c10a: 4b3a ldr r3, [pc, #232] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27845. 800c10c: 681b ldr r3, [r3, #0]
  27846. 800c10e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27847. 800c112: 2b00 cmp r3, #0
  27848. 800c114: d1f0 bne.n 800c0f8 <HAL_RCC_OscConfig+0x7b0>
  27849. 800c116: e068 b.n 800c1ea <HAL_RCC_OscConfig+0x8a2>
  27850. }
  27851. }
  27852. else
  27853. {
  27854. /* Do not return HAL_ERROR if request repeats the current configuration */
  27855. temp1_pllckcfg = RCC->PLLCKSELR;
  27856. 800c118: 4b36 ldr r3, [pc, #216] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27857. 800c11a: 6a9b ldr r3, [r3, #40] @ 0x28
  27858. 800c11c: 613b str r3, [r7, #16]
  27859. temp2_pllckcfg = RCC->PLL1DIVR;
  27860. 800c11e: 4b35 ldr r3, [pc, #212] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27861. 800c120: 6b1b ldr r3, [r3, #48] @ 0x30
  27862. 800c122: 60fb str r3, [r7, #12]
  27863. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27864. 800c124: 687b ldr r3, [r7, #4]
  27865. 800c126: 6a5b ldr r3, [r3, #36] @ 0x24
  27866. 800c128: 2b01 cmp r3, #1
  27867. 800c12a: d031 beq.n 800c190 <HAL_RCC_OscConfig+0x848>
  27868. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27869. 800c12c: 693b ldr r3, [r7, #16]
  27870. 800c12e: f003 0203 and.w r2, r3, #3
  27871. 800c132: 687b ldr r3, [r7, #4]
  27872. 800c134: 6a9b ldr r3, [r3, #40] @ 0x28
  27873. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27874. 800c136: 429a cmp r2, r3
  27875. 800c138: d12a bne.n 800c190 <HAL_RCC_OscConfig+0x848>
  27876. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27877. 800c13a: 693b ldr r3, [r7, #16]
  27878. 800c13c: 091b lsrs r3, r3, #4
  27879. 800c13e: f003 023f and.w r2, r3, #63 @ 0x3f
  27880. 800c142: 687b ldr r3, [r7, #4]
  27881. 800c144: 6adb ldr r3, [r3, #44] @ 0x2c
  27882. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27883. 800c146: 429a cmp r2, r3
  27884. 800c148: d122 bne.n 800c190 <HAL_RCC_OscConfig+0x848>
  27885. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27886. 800c14a: 68fb ldr r3, [r7, #12]
  27887. 800c14c: f3c3 0208 ubfx r2, r3, #0, #9
  27888. 800c150: 687b ldr r3, [r7, #4]
  27889. 800c152: 6b1b ldr r3, [r3, #48] @ 0x30
  27890. 800c154: 3b01 subs r3, #1
  27891. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27892. 800c156: 429a cmp r2, r3
  27893. 800c158: d11a bne.n 800c190 <HAL_RCC_OscConfig+0x848>
  27894. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27895. 800c15a: 68fb ldr r3, [r7, #12]
  27896. 800c15c: 0a5b lsrs r3, r3, #9
  27897. 800c15e: f003 027f and.w r2, r3, #127 @ 0x7f
  27898. 800c162: 687b ldr r3, [r7, #4]
  27899. 800c164: 6b5b ldr r3, [r3, #52] @ 0x34
  27900. 800c166: 3b01 subs r3, #1
  27901. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27902. 800c168: 429a cmp r2, r3
  27903. 800c16a: d111 bne.n 800c190 <HAL_RCC_OscConfig+0x848>
  27904. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27905. 800c16c: 68fb ldr r3, [r7, #12]
  27906. 800c16e: 0c1b lsrs r3, r3, #16
  27907. 800c170: f003 027f and.w r2, r3, #127 @ 0x7f
  27908. 800c174: 687b ldr r3, [r7, #4]
  27909. 800c176: 6b9b ldr r3, [r3, #56] @ 0x38
  27910. 800c178: 3b01 subs r3, #1
  27911. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27912. 800c17a: 429a cmp r2, r3
  27913. 800c17c: d108 bne.n 800c190 <HAL_RCC_OscConfig+0x848>
  27914. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  27915. 800c17e: 68fb ldr r3, [r7, #12]
  27916. 800c180: 0e1b lsrs r3, r3, #24
  27917. 800c182: f003 027f and.w r2, r3, #127 @ 0x7f
  27918. 800c186: 687b ldr r3, [r7, #4]
  27919. 800c188: 6bdb ldr r3, [r3, #60] @ 0x3c
  27920. 800c18a: 3b01 subs r3, #1
  27921. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27922. 800c18c: 429a cmp r2, r3
  27923. 800c18e: d001 beq.n 800c194 <HAL_RCC_OscConfig+0x84c>
  27924. {
  27925. return HAL_ERROR;
  27926. 800c190: 2301 movs r3, #1
  27927. 800c192: e02b b.n 800c1ec <HAL_RCC_OscConfig+0x8a4>
  27928. }
  27929. else
  27930. {
  27931. /* Check if only fractional part needs to be updated */
  27932. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  27933. 800c194: 4b17 ldr r3, [pc, #92] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27934. 800c196: 6b5b ldr r3, [r3, #52] @ 0x34
  27935. 800c198: 08db lsrs r3, r3, #3
  27936. 800c19a: f3c3 030c ubfx r3, r3, #0, #13
  27937. 800c19e: 613b str r3, [r7, #16]
  27938. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  27939. 800c1a0: 687b ldr r3, [r7, #4]
  27940. 800c1a2: 6c9b ldr r3, [r3, #72] @ 0x48
  27941. 800c1a4: 693a ldr r2, [r7, #16]
  27942. 800c1a6: 429a cmp r2, r3
  27943. 800c1a8: d01f beq.n 800c1ea <HAL_RCC_OscConfig+0x8a2>
  27944. {
  27945. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27946. /* Disable PLL1FRACEN */
  27947. __HAL_RCC_PLLFRACN_DISABLE();
  27948. 800c1aa: 4b12 ldr r3, [pc, #72] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27949. 800c1ac: 6adb ldr r3, [r3, #44] @ 0x2c
  27950. 800c1ae: 4a11 ldr r2, [pc, #68] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27951. 800c1b0: f023 0301 bic.w r3, r3, #1
  27952. 800c1b4: 62d3 str r3, [r2, #44] @ 0x2c
  27953. /* Get Start Tick*/
  27954. tickstart = HAL_GetTick();
  27955. 800c1b6: f7f9 fe31 bl 8005e1c <HAL_GetTick>
  27956. 800c1ba: 6278 str r0, [r7, #36] @ 0x24
  27957. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  27958. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  27959. 800c1bc: bf00 nop
  27960. 800c1be: f7f9 fe2d bl 8005e1c <HAL_GetTick>
  27961. 800c1c2: 4602 mov r2, r0
  27962. 800c1c4: 6a7b ldr r3, [r7, #36] @ 0x24
  27963. 800c1c6: 4293 cmp r3, r2
  27964. 800c1c8: d0f9 beq.n 800c1be <HAL_RCC_OscConfig+0x876>
  27965. {
  27966. }
  27967. /* Configure PLL1 PLL1FRACN */
  27968. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27969. 800c1ca: 4b0a ldr r3, [pc, #40] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27970. 800c1cc: 6b5a ldr r2, [r3, #52] @ 0x34
  27971. 800c1ce: 4b0a ldr r3, [pc, #40] @ (800c1f8 <HAL_RCC_OscConfig+0x8b0>)
  27972. 800c1d0: 4013 ands r3, r2
  27973. 800c1d2: 687a ldr r2, [r7, #4]
  27974. 800c1d4: 6c92 ldr r2, [r2, #72] @ 0x48
  27975. 800c1d6: 00d2 lsls r2, r2, #3
  27976. 800c1d8: 4906 ldr r1, [pc, #24] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27977. 800c1da: 4313 orrs r3, r2
  27978. 800c1dc: 634b str r3, [r1, #52] @ 0x34
  27979. /* Enable PLL1FRACEN to latch new value. */
  27980. __HAL_RCC_PLLFRACN_ENABLE();
  27981. 800c1de: 4b05 ldr r3, [pc, #20] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27982. 800c1e0: 6adb ldr r3, [r3, #44] @ 0x2c
  27983. 800c1e2: 4a04 ldr r2, [pc, #16] @ (800c1f4 <HAL_RCC_OscConfig+0x8ac>)
  27984. 800c1e4: f043 0301 orr.w r3, r3, #1
  27985. 800c1e8: 62d3 str r3, [r2, #44] @ 0x2c
  27986. }
  27987. }
  27988. }
  27989. }
  27990. return HAL_OK;
  27991. 800c1ea: 2300 movs r3, #0
  27992. }
  27993. 800c1ec: 4618 mov r0, r3
  27994. 800c1ee: 3730 adds r7, #48 @ 0x30
  27995. 800c1f0: 46bd mov sp, r7
  27996. 800c1f2: bd80 pop {r7, pc}
  27997. 800c1f4: 58024400 .word 0x58024400
  27998. 800c1f8: ffff0007 .word 0xffff0007
  27999. 0800c1fc <HAL_RCC_ClockConfig>:
  28000. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  28001. * (for more details refer to section above "Initialization/de-initialization functions")
  28002. * @retval None
  28003. */
  28004. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  28005. {
  28006. 800c1fc: b580 push {r7, lr}
  28007. 800c1fe: b086 sub sp, #24
  28008. 800c200: af00 add r7, sp, #0
  28009. 800c202: 6078 str r0, [r7, #4]
  28010. 800c204: 6039 str r1, [r7, #0]
  28011. HAL_StatusTypeDef halstatus;
  28012. uint32_t tickstart;
  28013. uint32_t common_system_clock;
  28014. /* Check Null pointer */
  28015. if (RCC_ClkInitStruct == NULL)
  28016. 800c206: 687b ldr r3, [r7, #4]
  28017. 800c208: 2b00 cmp r3, #0
  28018. 800c20a: d101 bne.n 800c210 <HAL_RCC_ClockConfig+0x14>
  28019. {
  28020. return HAL_ERROR;
  28021. 800c20c: 2301 movs r3, #1
  28022. 800c20e: e19c b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28023. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  28024. must be correctly programmed according to the frequency of the CPU clock
  28025. (HCLK) and the supply voltage of the device. */
  28026. /* Increasing the CPU frequency */
  28027. if (FLatency > __HAL_FLASH_GET_LATENCY())
  28028. 800c210: 4b8a ldr r3, [pc, #552] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28029. 800c212: 681b ldr r3, [r3, #0]
  28030. 800c214: f003 030f and.w r3, r3, #15
  28031. 800c218: 683a ldr r2, [r7, #0]
  28032. 800c21a: 429a cmp r2, r3
  28033. 800c21c: d910 bls.n 800c240 <HAL_RCC_ClockConfig+0x44>
  28034. {
  28035. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28036. __HAL_FLASH_SET_LATENCY(FLatency);
  28037. 800c21e: 4b87 ldr r3, [pc, #540] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28038. 800c220: 681b ldr r3, [r3, #0]
  28039. 800c222: f023 020f bic.w r2, r3, #15
  28040. 800c226: 4985 ldr r1, [pc, #532] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28041. 800c228: 683b ldr r3, [r7, #0]
  28042. 800c22a: 4313 orrs r3, r2
  28043. 800c22c: 600b str r3, [r1, #0]
  28044. /* Check that the new number of wait states is taken into account to access the Flash
  28045. memory by reading the FLASH_ACR register */
  28046. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28047. 800c22e: 4b83 ldr r3, [pc, #524] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28048. 800c230: 681b ldr r3, [r3, #0]
  28049. 800c232: f003 030f and.w r3, r3, #15
  28050. 800c236: 683a ldr r2, [r7, #0]
  28051. 800c238: 429a cmp r2, r3
  28052. 800c23a: d001 beq.n 800c240 <HAL_RCC_ClockConfig+0x44>
  28053. {
  28054. return HAL_ERROR;
  28055. 800c23c: 2301 movs r3, #1
  28056. 800c23e: e184 b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28057. }
  28058. /* Increasing the BUS frequency divider */
  28059. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  28060. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28061. 800c240: 687b ldr r3, [r7, #4]
  28062. 800c242: 681b ldr r3, [r3, #0]
  28063. 800c244: f003 0304 and.w r3, r3, #4
  28064. 800c248: 2b00 cmp r3, #0
  28065. 800c24a: d010 beq.n 800c26e <HAL_RCC_ClockConfig+0x72>
  28066. {
  28067. #if defined (RCC_D1CFGR_D1PPRE)
  28068. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28069. 800c24c: 687b ldr r3, [r7, #4]
  28070. 800c24e: 691a ldr r2, [r3, #16]
  28071. 800c250: 4b7b ldr r3, [pc, #492] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28072. 800c252: 699b ldr r3, [r3, #24]
  28073. 800c254: f003 0370 and.w r3, r3, #112 @ 0x70
  28074. 800c258: 429a cmp r2, r3
  28075. 800c25a: d908 bls.n 800c26e <HAL_RCC_ClockConfig+0x72>
  28076. {
  28077. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28078. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28079. 800c25c: 4b78 ldr r3, [pc, #480] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28080. 800c25e: 699b ldr r3, [r3, #24]
  28081. 800c260: f023 0270 bic.w r2, r3, #112 @ 0x70
  28082. 800c264: 687b ldr r3, [r7, #4]
  28083. 800c266: 691b ldr r3, [r3, #16]
  28084. 800c268: 4975 ldr r1, [pc, #468] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28085. 800c26a: 4313 orrs r3, r2
  28086. 800c26c: 618b str r3, [r1, #24]
  28087. }
  28088. #endif
  28089. }
  28090. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28091. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28092. 800c26e: 687b ldr r3, [r7, #4]
  28093. 800c270: 681b ldr r3, [r3, #0]
  28094. 800c272: f003 0308 and.w r3, r3, #8
  28095. 800c276: 2b00 cmp r3, #0
  28096. 800c278: d010 beq.n 800c29c <HAL_RCC_ClockConfig+0xa0>
  28097. {
  28098. #if defined (RCC_D2CFGR_D2PPRE1)
  28099. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28100. 800c27a: 687b ldr r3, [r7, #4]
  28101. 800c27c: 695a ldr r2, [r3, #20]
  28102. 800c27e: 4b70 ldr r3, [pc, #448] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28103. 800c280: 69db ldr r3, [r3, #28]
  28104. 800c282: f003 0370 and.w r3, r3, #112 @ 0x70
  28105. 800c286: 429a cmp r2, r3
  28106. 800c288: d908 bls.n 800c29c <HAL_RCC_ClockConfig+0xa0>
  28107. {
  28108. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28109. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28110. 800c28a: 4b6d ldr r3, [pc, #436] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28111. 800c28c: 69db ldr r3, [r3, #28]
  28112. 800c28e: f023 0270 bic.w r2, r3, #112 @ 0x70
  28113. 800c292: 687b ldr r3, [r7, #4]
  28114. 800c294: 695b ldr r3, [r3, #20]
  28115. 800c296: 496a ldr r1, [pc, #424] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28116. 800c298: 4313 orrs r3, r2
  28117. 800c29a: 61cb str r3, [r1, #28]
  28118. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28119. }
  28120. #endif
  28121. }
  28122. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28123. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28124. 800c29c: 687b ldr r3, [r7, #4]
  28125. 800c29e: 681b ldr r3, [r3, #0]
  28126. 800c2a0: f003 0310 and.w r3, r3, #16
  28127. 800c2a4: 2b00 cmp r3, #0
  28128. 800c2a6: d010 beq.n 800c2ca <HAL_RCC_ClockConfig+0xce>
  28129. {
  28130. #if defined(RCC_D2CFGR_D2PPRE2)
  28131. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28132. 800c2a8: 687b ldr r3, [r7, #4]
  28133. 800c2aa: 699a ldr r2, [r3, #24]
  28134. 800c2ac: 4b64 ldr r3, [pc, #400] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28135. 800c2ae: 69db ldr r3, [r3, #28]
  28136. 800c2b0: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28137. 800c2b4: 429a cmp r2, r3
  28138. 800c2b6: d908 bls.n 800c2ca <HAL_RCC_ClockConfig+0xce>
  28139. {
  28140. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28141. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28142. 800c2b8: 4b61 ldr r3, [pc, #388] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28143. 800c2ba: 69db ldr r3, [r3, #28]
  28144. 800c2bc: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28145. 800c2c0: 687b ldr r3, [r7, #4]
  28146. 800c2c2: 699b ldr r3, [r3, #24]
  28147. 800c2c4: 495e ldr r1, [pc, #376] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28148. 800c2c6: 4313 orrs r3, r2
  28149. 800c2c8: 61cb str r3, [r1, #28]
  28150. }
  28151. #endif
  28152. }
  28153. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  28154. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28155. 800c2ca: 687b ldr r3, [r7, #4]
  28156. 800c2cc: 681b ldr r3, [r3, #0]
  28157. 800c2ce: f003 0320 and.w r3, r3, #32
  28158. 800c2d2: 2b00 cmp r3, #0
  28159. 800c2d4: d010 beq.n 800c2f8 <HAL_RCC_ClockConfig+0xfc>
  28160. {
  28161. #if defined(RCC_D3CFGR_D3PPRE)
  28162. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28163. 800c2d6: 687b ldr r3, [r7, #4]
  28164. 800c2d8: 69da ldr r2, [r3, #28]
  28165. 800c2da: 4b59 ldr r3, [pc, #356] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28166. 800c2dc: 6a1b ldr r3, [r3, #32]
  28167. 800c2de: f003 0370 and.w r3, r3, #112 @ 0x70
  28168. 800c2e2: 429a cmp r2, r3
  28169. 800c2e4: d908 bls.n 800c2f8 <HAL_RCC_ClockConfig+0xfc>
  28170. {
  28171. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28172. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28173. 800c2e6: 4b56 ldr r3, [pc, #344] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28174. 800c2e8: 6a1b ldr r3, [r3, #32]
  28175. 800c2ea: f023 0270 bic.w r2, r3, #112 @ 0x70
  28176. 800c2ee: 687b ldr r3, [r7, #4]
  28177. 800c2f0: 69db ldr r3, [r3, #28]
  28178. 800c2f2: 4953 ldr r1, [pc, #332] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28179. 800c2f4: 4313 orrs r3, r2
  28180. 800c2f6: 620b str r3, [r1, #32]
  28181. }
  28182. #endif
  28183. }
  28184. /*-------------------------- HCLK Configuration --------------------------*/
  28185. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28186. 800c2f8: 687b ldr r3, [r7, #4]
  28187. 800c2fa: 681b ldr r3, [r3, #0]
  28188. 800c2fc: f003 0302 and.w r3, r3, #2
  28189. 800c300: 2b00 cmp r3, #0
  28190. 800c302: d010 beq.n 800c326 <HAL_RCC_ClockConfig+0x12a>
  28191. {
  28192. #if defined (RCC_D1CFGR_HPRE)
  28193. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28194. 800c304: 687b ldr r3, [r7, #4]
  28195. 800c306: 68da ldr r2, [r3, #12]
  28196. 800c308: 4b4d ldr r3, [pc, #308] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28197. 800c30a: 699b ldr r3, [r3, #24]
  28198. 800c30c: f003 030f and.w r3, r3, #15
  28199. 800c310: 429a cmp r2, r3
  28200. 800c312: d908 bls.n 800c326 <HAL_RCC_ClockConfig+0x12a>
  28201. {
  28202. /* Set the new HCLK clock divider */
  28203. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28204. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28205. 800c314: 4b4a ldr r3, [pc, #296] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28206. 800c316: 699b ldr r3, [r3, #24]
  28207. 800c318: f023 020f bic.w r2, r3, #15
  28208. 800c31c: 687b ldr r3, [r7, #4]
  28209. 800c31e: 68db ldr r3, [r3, #12]
  28210. 800c320: 4947 ldr r1, [pc, #284] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28211. 800c322: 4313 orrs r3, r2
  28212. 800c324: 618b str r3, [r1, #24]
  28213. }
  28214. #endif
  28215. }
  28216. /*------------------------- SYSCLK Configuration -------------------------*/
  28217. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  28218. 800c326: 687b ldr r3, [r7, #4]
  28219. 800c328: 681b ldr r3, [r3, #0]
  28220. 800c32a: f003 0301 and.w r3, r3, #1
  28221. 800c32e: 2b00 cmp r3, #0
  28222. 800c330: d055 beq.n 800c3de <HAL_RCC_ClockConfig+0x1e2>
  28223. {
  28224. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  28225. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  28226. #if defined(RCC_D1CFGR_D1CPRE)
  28227. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28228. 800c332: 4b43 ldr r3, [pc, #268] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28229. 800c334: 699b ldr r3, [r3, #24]
  28230. 800c336: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  28231. 800c33a: 687b ldr r3, [r7, #4]
  28232. 800c33c: 689b ldr r3, [r3, #8]
  28233. 800c33e: 4940 ldr r1, [pc, #256] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28234. 800c340: 4313 orrs r3, r2
  28235. 800c342: 618b str r3, [r1, #24]
  28236. #else
  28237. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28238. #endif
  28239. /* HSE is selected as System Clock Source */
  28240. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  28241. 800c344: 687b ldr r3, [r7, #4]
  28242. 800c346: 685b ldr r3, [r3, #4]
  28243. 800c348: 2b02 cmp r3, #2
  28244. 800c34a: d107 bne.n 800c35c <HAL_RCC_ClockConfig+0x160>
  28245. {
  28246. /* Check the HSE ready flag */
  28247. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  28248. 800c34c: 4b3c ldr r3, [pc, #240] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28249. 800c34e: 681b ldr r3, [r3, #0]
  28250. 800c350: f403 3300 and.w r3, r3, #131072 @ 0x20000
  28251. 800c354: 2b00 cmp r3, #0
  28252. 800c356: d121 bne.n 800c39c <HAL_RCC_ClockConfig+0x1a0>
  28253. {
  28254. return HAL_ERROR;
  28255. 800c358: 2301 movs r3, #1
  28256. 800c35a: e0f6 b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28257. }
  28258. }
  28259. /* PLL is selected as System Clock Source */
  28260. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  28261. 800c35c: 687b ldr r3, [r7, #4]
  28262. 800c35e: 685b ldr r3, [r3, #4]
  28263. 800c360: 2b03 cmp r3, #3
  28264. 800c362: d107 bne.n 800c374 <HAL_RCC_ClockConfig+0x178>
  28265. {
  28266. /* Check the PLL ready flag */
  28267. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  28268. 800c364: 4b36 ldr r3, [pc, #216] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28269. 800c366: 681b ldr r3, [r3, #0]
  28270. 800c368: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  28271. 800c36c: 2b00 cmp r3, #0
  28272. 800c36e: d115 bne.n 800c39c <HAL_RCC_ClockConfig+0x1a0>
  28273. {
  28274. return HAL_ERROR;
  28275. 800c370: 2301 movs r3, #1
  28276. 800c372: e0ea b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28277. }
  28278. }
  28279. /* CSI is selected as System Clock Source */
  28280. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  28281. 800c374: 687b ldr r3, [r7, #4]
  28282. 800c376: 685b ldr r3, [r3, #4]
  28283. 800c378: 2b01 cmp r3, #1
  28284. 800c37a: d107 bne.n 800c38c <HAL_RCC_ClockConfig+0x190>
  28285. {
  28286. /* Check the PLL ready flag */
  28287. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  28288. 800c37c: 4b30 ldr r3, [pc, #192] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28289. 800c37e: 681b ldr r3, [r3, #0]
  28290. 800c380: f403 7380 and.w r3, r3, #256 @ 0x100
  28291. 800c384: 2b00 cmp r3, #0
  28292. 800c386: d109 bne.n 800c39c <HAL_RCC_ClockConfig+0x1a0>
  28293. {
  28294. return HAL_ERROR;
  28295. 800c388: 2301 movs r3, #1
  28296. 800c38a: e0de b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28297. }
  28298. /* HSI is selected as System Clock Source */
  28299. else
  28300. {
  28301. /* Check the HSI ready flag */
  28302. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  28303. 800c38c: 4b2c ldr r3, [pc, #176] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28304. 800c38e: 681b ldr r3, [r3, #0]
  28305. 800c390: f003 0304 and.w r3, r3, #4
  28306. 800c394: 2b00 cmp r3, #0
  28307. 800c396: d101 bne.n 800c39c <HAL_RCC_ClockConfig+0x1a0>
  28308. {
  28309. return HAL_ERROR;
  28310. 800c398: 2301 movs r3, #1
  28311. 800c39a: e0d6 b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28312. }
  28313. }
  28314. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  28315. 800c39c: 4b28 ldr r3, [pc, #160] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28316. 800c39e: 691b ldr r3, [r3, #16]
  28317. 800c3a0: f023 0207 bic.w r2, r3, #7
  28318. 800c3a4: 687b ldr r3, [r7, #4]
  28319. 800c3a6: 685b ldr r3, [r3, #4]
  28320. 800c3a8: 4925 ldr r1, [pc, #148] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28321. 800c3aa: 4313 orrs r3, r2
  28322. 800c3ac: 610b str r3, [r1, #16]
  28323. /* Get Start Tick*/
  28324. tickstart = HAL_GetTick();
  28325. 800c3ae: f7f9 fd35 bl 8005e1c <HAL_GetTick>
  28326. 800c3b2: 6178 str r0, [r7, #20]
  28327. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28328. 800c3b4: e00a b.n 800c3cc <HAL_RCC_ClockConfig+0x1d0>
  28329. {
  28330. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  28331. 800c3b6: f7f9 fd31 bl 8005e1c <HAL_GetTick>
  28332. 800c3ba: 4602 mov r2, r0
  28333. 800c3bc: 697b ldr r3, [r7, #20]
  28334. 800c3be: 1ad3 subs r3, r2, r3
  28335. 800c3c0: f241 3288 movw r2, #5000 @ 0x1388
  28336. 800c3c4: 4293 cmp r3, r2
  28337. 800c3c6: d901 bls.n 800c3cc <HAL_RCC_ClockConfig+0x1d0>
  28338. {
  28339. return HAL_TIMEOUT;
  28340. 800c3c8: 2303 movs r3, #3
  28341. 800c3ca: e0be b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28342. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28343. 800c3cc: 4b1c ldr r3, [pc, #112] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28344. 800c3ce: 691b ldr r3, [r3, #16]
  28345. 800c3d0: f003 0238 and.w r2, r3, #56 @ 0x38
  28346. 800c3d4: 687b ldr r3, [r7, #4]
  28347. 800c3d6: 685b ldr r3, [r3, #4]
  28348. 800c3d8: 00db lsls r3, r3, #3
  28349. 800c3da: 429a cmp r2, r3
  28350. 800c3dc: d1eb bne.n 800c3b6 <HAL_RCC_ClockConfig+0x1ba>
  28351. }
  28352. /* Decreasing the BUS frequency divider */
  28353. /*-------------------------- HCLK Configuration --------------------------*/
  28354. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28355. 800c3de: 687b ldr r3, [r7, #4]
  28356. 800c3e0: 681b ldr r3, [r3, #0]
  28357. 800c3e2: f003 0302 and.w r3, r3, #2
  28358. 800c3e6: 2b00 cmp r3, #0
  28359. 800c3e8: d010 beq.n 800c40c <HAL_RCC_ClockConfig+0x210>
  28360. {
  28361. #if defined(RCC_D1CFGR_HPRE)
  28362. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28363. 800c3ea: 687b ldr r3, [r7, #4]
  28364. 800c3ec: 68da ldr r2, [r3, #12]
  28365. 800c3ee: 4b14 ldr r3, [pc, #80] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28366. 800c3f0: 699b ldr r3, [r3, #24]
  28367. 800c3f2: f003 030f and.w r3, r3, #15
  28368. 800c3f6: 429a cmp r2, r3
  28369. 800c3f8: d208 bcs.n 800c40c <HAL_RCC_ClockConfig+0x210>
  28370. {
  28371. /* Set the new HCLK clock divider */
  28372. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28373. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28374. 800c3fa: 4b11 ldr r3, [pc, #68] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28375. 800c3fc: 699b ldr r3, [r3, #24]
  28376. 800c3fe: f023 020f bic.w r2, r3, #15
  28377. 800c402: 687b ldr r3, [r7, #4]
  28378. 800c404: 68db ldr r3, [r3, #12]
  28379. 800c406: 490e ldr r1, [pc, #56] @ (800c440 <HAL_RCC_ClockConfig+0x244>)
  28380. 800c408: 4313 orrs r3, r2
  28381. 800c40a: 618b str r3, [r1, #24]
  28382. }
  28383. #endif
  28384. }
  28385. /* Decreasing the number of wait states because of lower CPU frequency */
  28386. if (FLatency < __HAL_FLASH_GET_LATENCY())
  28387. 800c40c: 4b0b ldr r3, [pc, #44] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28388. 800c40e: 681b ldr r3, [r3, #0]
  28389. 800c410: f003 030f and.w r3, r3, #15
  28390. 800c414: 683a ldr r2, [r7, #0]
  28391. 800c416: 429a cmp r2, r3
  28392. 800c418: d214 bcs.n 800c444 <HAL_RCC_ClockConfig+0x248>
  28393. {
  28394. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28395. __HAL_FLASH_SET_LATENCY(FLatency);
  28396. 800c41a: 4b08 ldr r3, [pc, #32] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28397. 800c41c: 681b ldr r3, [r3, #0]
  28398. 800c41e: f023 020f bic.w r2, r3, #15
  28399. 800c422: 4906 ldr r1, [pc, #24] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28400. 800c424: 683b ldr r3, [r7, #0]
  28401. 800c426: 4313 orrs r3, r2
  28402. 800c428: 600b str r3, [r1, #0]
  28403. /* Check that the new number of wait states is taken into account to access the Flash
  28404. memory by reading the FLASH_ACR register */
  28405. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28406. 800c42a: 4b04 ldr r3, [pc, #16] @ (800c43c <HAL_RCC_ClockConfig+0x240>)
  28407. 800c42c: 681b ldr r3, [r3, #0]
  28408. 800c42e: f003 030f and.w r3, r3, #15
  28409. 800c432: 683a ldr r2, [r7, #0]
  28410. 800c434: 429a cmp r2, r3
  28411. 800c436: d005 beq.n 800c444 <HAL_RCC_ClockConfig+0x248>
  28412. {
  28413. return HAL_ERROR;
  28414. 800c438: 2301 movs r3, #1
  28415. 800c43a: e086 b.n 800c54a <HAL_RCC_ClockConfig+0x34e>
  28416. 800c43c: 52002000 .word 0x52002000
  28417. 800c440: 58024400 .word 0x58024400
  28418. }
  28419. }
  28420. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  28421. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28422. 800c444: 687b ldr r3, [r7, #4]
  28423. 800c446: 681b ldr r3, [r3, #0]
  28424. 800c448: f003 0304 and.w r3, r3, #4
  28425. 800c44c: 2b00 cmp r3, #0
  28426. 800c44e: d010 beq.n 800c472 <HAL_RCC_ClockConfig+0x276>
  28427. {
  28428. #if defined(RCC_D1CFGR_D1PPRE)
  28429. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28430. 800c450: 687b ldr r3, [r7, #4]
  28431. 800c452: 691a ldr r2, [r3, #16]
  28432. 800c454: 4b3f ldr r3, [pc, #252] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28433. 800c456: 699b ldr r3, [r3, #24]
  28434. 800c458: f003 0370 and.w r3, r3, #112 @ 0x70
  28435. 800c45c: 429a cmp r2, r3
  28436. 800c45e: d208 bcs.n 800c472 <HAL_RCC_ClockConfig+0x276>
  28437. {
  28438. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28439. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28440. 800c460: 4b3c ldr r3, [pc, #240] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28441. 800c462: 699b ldr r3, [r3, #24]
  28442. 800c464: f023 0270 bic.w r2, r3, #112 @ 0x70
  28443. 800c468: 687b ldr r3, [r7, #4]
  28444. 800c46a: 691b ldr r3, [r3, #16]
  28445. 800c46c: 4939 ldr r1, [pc, #228] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28446. 800c46e: 4313 orrs r3, r2
  28447. 800c470: 618b str r3, [r1, #24]
  28448. }
  28449. #endif
  28450. }
  28451. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28452. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28453. 800c472: 687b ldr r3, [r7, #4]
  28454. 800c474: 681b ldr r3, [r3, #0]
  28455. 800c476: f003 0308 and.w r3, r3, #8
  28456. 800c47a: 2b00 cmp r3, #0
  28457. 800c47c: d010 beq.n 800c4a0 <HAL_RCC_ClockConfig+0x2a4>
  28458. {
  28459. #if defined(RCC_D2CFGR_D2PPRE1)
  28460. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28461. 800c47e: 687b ldr r3, [r7, #4]
  28462. 800c480: 695a ldr r2, [r3, #20]
  28463. 800c482: 4b34 ldr r3, [pc, #208] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28464. 800c484: 69db ldr r3, [r3, #28]
  28465. 800c486: f003 0370 and.w r3, r3, #112 @ 0x70
  28466. 800c48a: 429a cmp r2, r3
  28467. 800c48c: d208 bcs.n 800c4a0 <HAL_RCC_ClockConfig+0x2a4>
  28468. {
  28469. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28470. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28471. 800c48e: 4b31 ldr r3, [pc, #196] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28472. 800c490: 69db ldr r3, [r3, #28]
  28473. 800c492: f023 0270 bic.w r2, r3, #112 @ 0x70
  28474. 800c496: 687b ldr r3, [r7, #4]
  28475. 800c498: 695b ldr r3, [r3, #20]
  28476. 800c49a: 492e ldr r1, [pc, #184] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28477. 800c49c: 4313 orrs r3, r2
  28478. 800c49e: 61cb str r3, [r1, #28]
  28479. }
  28480. #endif
  28481. }
  28482. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28483. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28484. 800c4a0: 687b ldr r3, [r7, #4]
  28485. 800c4a2: 681b ldr r3, [r3, #0]
  28486. 800c4a4: f003 0310 and.w r3, r3, #16
  28487. 800c4a8: 2b00 cmp r3, #0
  28488. 800c4aa: d010 beq.n 800c4ce <HAL_RCC_ClockConfig+0x2d2>
  28489. {
  28490. #if defined (RCC_D2CFGR_D2PPRE2)
  28491. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28492. 800c4ac: 687b ldr r3, [r7, #4]
  28493. 800c4ae: 699a ldr r2, [r3, #24]
  28494. 800c4b0: 4b28 ldr r3, [pc, #160] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28495. 800c4b2: 69db ldr r3, [r3, #28]
  28496. 800c4b4: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28497. 800c4b8: 429a cmp r2, r3
  28498. 800c4ba: d208 bcs.n 800c4ce <HAL_RCC_ClockConfig+0x2d2>
  28499. {
  28500. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28501. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28502. 800c4bc: 4b25 ldr r3, [pc, #148] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28503. 800c4be: 69db ldr r3, [r3, #28]
  28504. 800c4c0: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28505. 800c4c4: 687b ldr r3, [r7, #4]
  28506. 800c4c6: 699b ldr r3, [r3, #24]
  28507. 800c4c8: 4922 ldr r1, [pc, #136] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28508. 800c4ca: 4313 orrs r3, r2
  28509. 800c4cc: 61cb str r3, [r1, #28]
  28510. }
  28511. #endif
  28512. }
  28513. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  28514. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28515. 800c4ce: 687b ldr r3, [r7, #4]
  28516. 800c4d0: 681b ldr r3, [r3, #0]
  28517. 800c4d2: f003 0320 and.w r3, r3, #32
  28518. 800c4d6: 2b00 cmp r3, #0
  28519. 800c4d8: d010 beq.n 800c4fc <HAL_RCC_ClockConfig+0x300>
  28520. {
  28521. #if defined(RCC_D3CFGR_D3PPRE)
  28522. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28523. 800c4da: 687b ldr r3, [r7, #4]
  28524. 800c4dc: 69da ldr r2, [r3, #28]
  28525. 800c4de: 4b1d ldr r3, [pc, #116] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28526. 800c4e0: 6a1b ldr r3, [r3, #32]
  28527. 800c4e2: f003 0370 and.w r3, r3, #112 @ 0x70
  28528. 800c4e6: 429a cmp r2, r3
  28529. 800c4e8: d208 bcs.n 800c4fc <HAL_RCC_ClockConfig+0x300>
  28530. {
  28531. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28532. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28533. 800c4ea: 4b1a ldr r3, [pc, #104] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28534. 800c4ec: 6a1b ldr r3, [r3, #32]
  28535. 800c4ee: f023 0270 bic.w r2, r3, #112 @ 0x70
  28536. 800c4f2: 687b ldr r3, [r7, #4]
  28537. 800c4f4: 69db ldr r3, [r3, #28]
  28538. 800c4f6: 4917 ldr r1, [pc, #92] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28539. 800c4f8: 4313 orrs r3, r2
  28540. 800c4fa: 620b str r3, [r1, #32]
  28541. #endif
  28542. }
  28543. /* Update the SystemCoreClock global variable */
  28544. #if defined(RCC_D1CFGR_D1CPRE)
  28545. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  28546. 800c4fc: f000 f834 bl 800c568 <HAL_RCC_GetSysClockFreq>
  28547. 800c500: 4602 mov r2, r0
  28548. 800c502: 4b14 ldr r3, [pc, #80] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28549. 800c504: 699b ldr r3, [r3, #24]
  28550. 800c506: 0a1b lsrs r3, r3, #8
  28551. 800c508: f003 030f and.w r3, r3, #15
  28552. 800c50c: 4912 ldr r1, [pc, #72] @ (800c558 <HAL_RCC_ClockConfig+0x35c>)
  28553. 800c50e: 5ccb ldrb r3, [r1, r3]
  28554. 800c510: f003 031f and.w r3, r3, #31
  28555. 800c514: fa22 f303 lsr.w r3, r2, r3
  28556. 800c518: 613b str r3, [r7, #16]
  28557. #else
  28558. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  28559. #endif
  28560. #if defined(RCC_D1CFGR_HPRE)
  28561. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28562. 800c51a: 4b0e ldr r3, [pc, #56] @ (800c554 <HAL_RCC_ClockConfig+0x358>)
  28563. 800c51c: 699b ldr r3, [r3, #24]
  28564. 800c51e: f003 030f and.w r3, r3, #15
  28565. 800c522: 4a0d ldr r2, [pc, #52] @ (800c558 <HAL_RCC_ClockConfig+0x35c>)
  28566. 800c524: 5cd3 ldrb r3, [r2, r3]
  28567. 800c526: f003 031f and.w r3, r3, #31
  28568. 800c52a: 693a ldr r2, [r7, #16]
  28569. 800c52c: fa22 f303 lsr.w r3, r2, r3
  28570. 800c530: 4a0a ldr r2, [pc, #40] @ (800c55c <HAL_RCC_ClockConfig+0x360>)
  28571. 800c532: 6013 str r3, [r2, #0]
  28572. #endif
  28573. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28574. SystemCoreClock = SystemD2Clock;
  28575. #else
  28576. SystemCoreClock = common_system_clock;
  28577. 800c534: 4a0a ldr r2, [pc, #40] @ (800c560 <HAL_RCC_ClockConfig+0x364>)
  28578. 800c536: 693b ldr r3, [r7, #16]
  28579. 800c538: 6013 str r3, [r2, #0]
  28580. #endif /* DUAL_CORE && CORE_CM4 */
  28581. /* Configure the source of time base considering new system clocks settings*/
  28582. halstatus = HAL_InitTick(uwTickPrio);
  28583. 800c53a: 4b0a ldr r3, [pc, #40] @ (800c564 <HAL_RCC_ClockConfig+0x368>)
  28584. 800c53c: 681b ldr r3, [r3, #0]
  28585. 800c53e: 4618 mov r0, r3
  28586. 800c540: f7f8 f89c bl 800467c <HAL_InitTick>
  28587. 800c544: 4603 mov r3, r0
  28588. 800c546: 73fb strb r3, [r7, #15]
  28589. return halstatus;
  28590. 800c548: 7bfb ldrb r3, [r7, #15]
  28591. }
  28592. 800c54a: 4618 mov r0, r3
  28593. 800c54c: 3718 adds r7, #24
  28594. 800c54e: 46bd mov sp, r7
  28595. 800c550: bd80 pop {r7, pc}
  28596. 800c552: bf00 nop
  28597. 800c554: 58024400 .word 0x58024400
  28598. 800c558: 080186fc .word 0x080186fc
  28599. 800c55c: 24000038 .word 0x24000038
  28600. 800c560: 24000034 .word 0x24000034
  28601. 800c564: 2400003c .word 0x2400003c
  28602. 0800c568 <HAL_RCC_GetSysClockFreq>:
  28603. *
  28604. *
  28605. * @retval SYSCLK frequency
  28606. */
  28607. uint32_t HAL_RCC_GetSysClockFreq(void)
  28608. {
  28609. 800c568: b480 push {r7}
  28610. 800c56a: b089 sub sp, #36 @ 0x24
  28611. 800c56c: af00 add r7, sp, #0
  28612. float_t fracn1, pllvco;
  28613. uint32_t sysclockfreq;
  28614. /* Get SYSCLK source -------------------------------------------------------*/
  28615. switch (RCC->CFGR & RCC_CFGR_SWS)
  28616. 800c56e: 4bb3 ldr r3, [pc, #716] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28617. 800c570: 691b ldr r3, [r3, #16]
  28618. 800c572: f003 0338 and.w r3, r3, #56 @ 0x38
  28619. 800c576: 2b18 cmp r3, #24
  28620. 800c578: f200 8155 bhi.w 800c826 <HAL_RCC_GetSysClockFreq+0x2be>
  28621. 800c57c: a201 add r2, pc, #4 @ (adr r2, 800c584 <HAL_RCC_GetSysClockFreq+0x1c>)
  28622. 800c57e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28623. 800c582: bf00 nop
  28624. 800c584: 0800c5e9 .word 0x0800c5e9
  28625. 800c588: 0800c827 .word 0x0800c827
  28626. 800c58c: 0800c827 .word 0x0800c827
  28627. 800c590: 0800c827 .word 0x0800c827
  28628. 800c594: 0800c827 .word 0x0800c827
  28629. 800c598: 0800c827 .word 0x0800c827
  28630. 800c59c: 0800c827 .word 0x0800c827
  28631. 800c5a0: 0800c827 .word 0x0800c827
  28632. 800c5a4: 0800c60f .word 0x0800c60f
  28633. 800c5a8: 0800c827 .word 0x0800c827
  28634. 800c5ac: 0800c827 .word 0x0800c827
  28635. 800c5b0: 0800c827 .word 0x0800c827
  28636. 800c5b4: 0800c827 .word 0x0800c827
  28637. 800c5b8: 0800c827 .word 0x0800c827
  28638. 800c5bc: 0800c827 .word 0x0800c827
  28639. 800c5c0: 0800c827 .word 0x0800c827
  28640. 800c5c4: 0800c615 .word 0x0800c615
  28641. 800c5c8: 0800c827 .word 0x0800c827
  28642. 800c5cc: 0800c827 .word 0x0800c827
  28643. 800c5d0: 0800c827 .word 0x0800c827
  28644. 800c5d4: 0800c827 .word 0x0800c827
  28645. 800c5d8: 0800c827 .word 0x0800c827
  28646. 800c5dc: 0800c827 .word 0x0800c827
  28647. 800c5e0: 0800c827 .word 0x0800c827
  28648. 800c5e4: 0800c61b .word 0x0800c61b
  28649. {
  28650. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  28651. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28652. 800c5e8: 4b94 ldr r3, [pc, #592] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28653. 800c5ea: 681b ldr r3, [r3, #0]
  28654. 800c5ec: f003 0320 and.w r3, r3, #32
  28655. 800c5f0: 2b00 cmp r3, #0
  28656. 800c5f2: d009 beq.n 800c608 <HAL_RCC_GetSysClockFreq+0xa0>
  28657. {
  28658. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28659. 800c5f4: 4b91 ldr r3, [pc, #580] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28660. 800c5f6: 681b ldr r3, [r3, #0]
  28661. 800c5f8: 08db lsrs r3, r3, #3
  28662. 800c5fa: f003 0303 and.w r3, r3, #3
  28663. 800c5fe: 4a90 ldr r2, [pc, #576] @ (800c840 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28664. 800c600: fa22 f303 lsr.w r3, r2, r3
  28665. 800c604: 61bb str r3, [r7, #24]
  28666. else
  28667. {
  28668. sysclockfreq = (uint32_t) HSI_VALUE;
  28669. }
  28670. break;
  28671. 800c606: e111 b.n 800c82c <HAL_RCC_GetSysClockFreq+0x2c4>
  28672. sysclockfreq = (uint32_t) HSI_VALUE;
  28673. 800c608: 4b8d ldr r3, [pc, #564] @ (800c840 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28674. 800c60a: 61bb str r3, [r7, #24]
  28675. break;
  28676. 800c60c: e10e b.n 800c82c <HAL_RCC_GetSysClockFreq+0x2c4>
  28677. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  28678. sysclockfreq = CSI_VALUE;
  28679. 800c60e: 4b8d ldr r3, [pc, #564] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2dc>)
  28680. 800c610: 61bb str r3, [r7, #24]
  28681. break;
  28682. 800c612: e10b b.n 800c82c <HAL_RCC_GetSysClockFreq+0x2c4>
  28683. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  28684. sysclockfreq = HSE_VALUE;
  28685. 800c614: 4b8c ldr r3, [pc, #560] @ (800c848 <HAL_RCC_GetSysClockFreq+0x2e0>)
  28686. 800c616: 61bb str r3, [r7, #24]
  28687. break;
  28688. 800c618: e108 b.n 800c82c <HAL_RCC_GetSysClockFreq+0x2c4>
  28689. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  28690. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  28691. SYSCLK = PLL_VCO / PLLR
  28692. */
  28693. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28694. 800c61a: 4b88 ldr r3, [pc, #544] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28695. 800c61c: 6a9b ldr r3, [r3, #40] @ 0x28
  28696. 800c61e: f003 0303 and.w r3, r3, #3
  28697. 800c622: 617b str r3, [r7, #20]
  28698. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  28699. 800c624: 4b85 ldr r3, [pc, #532] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28700. 800c626: 6a9b ldr r3, [r3, #40] @ 0x28
  28701. 800c628: 091b lsrs r3, r3, #4
  28702. 800c62a: f003 033f and.w r3, r3, #63 @ 0x3f
  28703. 800c62e: 613b str r3, [r7, #16]
  28704. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  28705. 800c630: 4b82 ldr r3, [pc, #520] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28706. 800c632: 6adb ldr r3, [r3, #44] @ 0x2c
  28707. 800c634: f003 0301 and.w r3, r3, #1
  28708. 800c638: 60fb str r3, [r7, #12]
  28709. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  28710. 800c63a: 4b80 ldr r3, [pc, #512] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28711. 800c63c: 6b5b ldr r3, [r3, #52] @ 0x34
  28712. 800c63e: 08db lsrs r3, r3, #3
  28713. 800c640: f3c3 030c ubfx r3, r3, #0, #13
  28714. 800c644: 68fa ldr r2, [r7, #12]
  28715. 800c646: fb02 f303 mul.w r3, r2, r3
  28716. 800c64a: ee07 3a90 vmov s15, r3
  28717. 800c64e: eef8 7a67 vcvt.f32.u32 s15, s15
  28718. 800c652: edc7 7a02 vstr s15, [r7, #8]
  28719. if (pllm != 0U)
  28720. 800c656: 693b ldr r3, [r7, #16]
  28721. 800c658: 2b00 cmp r3, #0
  28722. 800c65a: f000 80e1 beq.w 800c820 <HAL_RCC_GetSysClockFreq+0x2b8>
  28723. 800c65e: 697b ldr r3, [r7, #20]
  28724. 800c660: 2b02 cmp r3, #2
  28725. 800c662: f000 8083 beq.w 800c76c <HAL_RCC_GetSysClockFreq+0x204>
  28726. 800c666: 697b ldr r3, [r7, #20]
  28727. 800c668: 2b02 cmp r3, #2
  28728. 800c66a: f200 80a1 bhi.w 800c7b0 <HAL_RCC_GetSysClockFreq+0x248>
  28729. 800c66e: 697b ldr r3, [r7, #20]
  28730. 800c670: 2b00 cmp r3, #0
  28731. 800c672: d003 beq.n 800c67c <HAL_RCC_GetSysClockFreq+0x114>
  28732. 800c674: 697b ldr r3, [r7, #20]
  28733. 800c676: 2b01 cmp r3, #1
  28734. 800c678: d056 beq.n 800c728 <HAL_RCC_GetSysClockFreq+0x1c0>
  28735. 800c67a: e099 b.n 800c7b0 <HAL_RCC_GetSysClockFreq+0x248>
  28736. {
  28737. switch (pllsource)
  28738. {
  28739. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28740. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28741. 800c67c: 4b6f ldr r3, [pc, #444] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28742. 800c67e: 681b ldr r3, [r3, #0]
  28743. 800c680: f003 0320 and.w r3, r3, #32
  28744. 800c684: 2b00 cmp r3, #0
  28745. 800c686: d02d beq.n 800c6e4 <HAL_RCC_GetSysClockFreq+0x17c>
  28746. {
  28747. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28748. 800c688: 4b6c ldr r3, [pc, #432] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28749. 800c68a: 681b ldr r3, [r3, #0]
  28750. 800c68c: 08db lsrs r3, r3, #3
  28751. 800c68e: f003 0303 and.w r3, r3, #3
  28752. 800c692: 4a6b ldr r2, [pc, #428] @ (800c840 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28753. 800c694: fa22 f303 lsr.w r3, r2, r3
  28754. 800c698: 607b str r3, [r7, #4]
  28755. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28756. 800c69a: 687b ldr r3, [r7, #4]
  28757. 800c69c: ee07 3a90 vmov s15, r3
  28758. 800c6a0: eef8 6a67 vcvt.f32.u32 s13, s15
  28759. 800c6a4: 693b ldr r3, [r7, #16]
  28760. 800c6a6: ee07 3a90 vmov s15, r3
  28761. 800c6aa: eef8 7a67 vcvt.f32.u32 s15, s15
  28762. 800c6ae: ee86 7aa7 vdiv.f32 s14, s13, s15
  28763. 800c6b2: 4b62 ldr r3, [pc, #392] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28764. 800c6b4: 6b1b ldr r3, [r3, #48] @ 0x30
  28765. 800c6b6: f3c3 0308 ubfx r3, r3, #0, #9
  28766. 800c6ba: ee07 3a90 vmov s15, r3
  28767. 800c6be: eef8 6a67 vcvt.f32.u32 s13, s15
  28768. 800c6c2: ed97 6a02 vldr s12, [r7, #8]
  28769. 800c6c6: eddf 5a61 vldr s11, [pc, #388] @ 800c84c <HAL_RCC_GetSysClockFreq+0x2e4>
  28770. 800c6ca: eec6 7a25 vdiv.f32 s15, s12, s11
  28771. 800c6ce: ee76 7aa7 vadd.f32 s15, s13, s15
  28772. 800c6d2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28773. 800c6d6: ee77 7aa6 vadd.f32 s15, s15, s13
  28774. 800c6da: ee67 7a27 vmul.f32 s15, s14, s15
  28775. 800c6de: edc7 7a07 vstr s15, [r7, #28]
  28776. }
  28777. else
  28778. {
  28779. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28780. }
  28781. break;
  28782. 800c6e2: e087 b.n 800c7f4 <HAL_RCC_GetSysClockFreq+0x28c>
  28783. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28784. 800c6e4: 693b ldr r3, [r7, #16]
  28785. 800c6e6: ee07 3a90 vmov s15, r3
  28786. 800c6ea: eef8 7a67 vcvt.f32.u32 s15, s15
  28787. 800c6ee: eddf 6a58 vldr s13, [pc, #352] @ 800c850 <HAL_RCC_GetSysClockFreq+0x2e8>
  28788. 800c6f2: ee86 7aa7 vdiv.f32 s14, s13, s15
  28789. 800c6f6: 4b51 ldr r3, [pc, #324] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28790. 800c6f8: 6b1b ldr r3, [r3, #48] @ 0x30
  28791. 800c6fa: f3c3 0308 ubfx r3, r3, #0, #9
  28792. 800c6fe: ee07 3a90 vmov s15, r3
  28793. 800c702: eef8 6a67 vcvt.f32.u32 s13, s15
  28794. 800c706: ed97 6a02 vldr s12, [r7, #8]
  28795. 800c70a: eddf 5a50 vldr s11, [pc, #320] @ 800c84c <HAL_RCC_GetSysClockFreq+0x2e4>
  28796. 800c70e: eec6 7a25 vdiv.f32 s15, s12, s11
  28797. 800c712: ee76 7aa7 vadd.f32 s15, s13, s15
  28798. 800c716: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28799. 800c71a: ee77 7aa6 vadd.f32 s15, s15, s13
  28800. 800c71e: ee67 7a27 vmul.f32 s15, s14, s15
  28801. 800c722: edc7 7a07 vstr s15, [r7, #28]
  28802. break;
  28803. 800c726: e065 b.n 800c7f4 <HAL_RCC_GetSysClockFreq+0x28c>
  28804. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28805. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28806. 800c728: 693b ldr r3, [r7, #16]
  28807. 800c72a: ee07 3a90 vmov s15, r3
  28808. 800c72e: eef8 7a67 vcvt.f32.u32 s15, s15
  28809. 800c732: eddf 6a48 vldr s13, [pc, #288] @ 800c854 <HAL_RCC_GetSysClockFreq+0x2ec>
  28810. 800c736: ee86 7aa7 vdiv.f32 s14, s13, s15
  28811. 800c73a: 4b40 ldr r3, [pc, #256] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28812. 800c73c: 6b1b ldr r3, [r3, #48] @ 0x30
  28813. 800c73e: f3c3 0308 ubfx r3, r3, #0, #9
  28814. 800c742: ee07 3a90 vmov s15, r3
  28815. 800c746: eef8 6a67 vcvt.f32.u32 s13, s15
  28816. 800c74a: ed97 6a02 vldr s12, [r7, #8]
  28817. 800c74e: eddf 5a3f vldr s11, [pc, #252] @ 800c84c <HAL_RCC_GetSysClockFreq+0x2e4>
  28818. 800c752: eec6 7a25 vdiv.f32 s15, s12, s11
  28819. 800c756: ee76 7aa7 vadd.f32 s15, s13, s15
  28820. 800c75a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28821. 800c75e: ee77 7aa6 vadd.f32 s15, s15, s13
  28822. 800c762: ee67 7a27 vmul.f32 s15, s14, s15
  28823. 800c766: edc7 7a07 vstr s15, [r7, #28]
  28824. break;
  28825. 800c76a: e043 b.n 800c7f4 <HAL_RCC_GetSysClockFreq+0x28c>
  28826. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28827. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28828. 800c76c: 693b ldr r3, [r7, #16]
  28829. 800c76e: ee07 3a90 vmov s15, r3
  28830. 800c772: eef8 7a67 vcvt.f32.u32 s15, s15
  28831. 800c776: eddf 6a38 vldr s13, [pc, #224] @ 800c858 <HAL_RCC_GetSysClockFreq+0x2f0>
  28832. 800c77a: ee86 7aa7 vdiv.f32 s14, s13, s15
  28833. 800c77e: 4b2f ldr r3, [pc, #188] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28834. 800c780: 6b1b ldr r3, [r3, #48] @ 0x30
  28835. 800c782: f3c3 0308 ubfx r3, r3, #0, #9
  28836. 800c786: ee07 3a90 vmov s15, r3
  28837. 800c78a: eef8 6a67 vcvt.f32.u32 s13, s15
  28838. 800c78e: ed97 6a02 vldr s12, [r7, #8]
  28839. 800c792: eddf 5a2e vldr s11, [pc, #184] @ 800c84c <HAL_RCC_GetSysClockFreq+0x2e4>
  28840. 800c796: eec6 7a25 vdiv.f32 s15, s12, s11
  28841. 800c79a: ee76 7aa7 vadd.f32 s15, s13, s15
  28842. 800c79e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28843. 800c7a2: ee77 7aa6 vadd.f32 s15, s15, s13
  28844. 800c7a6: ee67 7a27 vmul.f32 s15, s14, s15
  28845. 800c7aa: edc7 7a07 vstr s15, [r7, #28]
  28846. break;
  28847. 800c7ae: e021 b.n 800c7f4 <HAL_RCC_GetSysClockFreq+0x28c>
  28848. default:
  28849. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28850. 800c7b0: 693b ldr r3, [r7, #16]
  28851. 800c7b2: ee07 3a90 vmov s15, r3
  28852. 800c7b6: eef8 7a67 vcvt.f32.u32 s15, s15
  28853. 800c7ba: eddf 6a26 vldr s13, [pc, #152] @ 800c854 <HAL_RCC_GetSysClockFreq+0x2ec>
  28854. 800c7be: ee86 7aa7 vdiv.f32 s14, s13, s15
  28855. 800c7c2: 4b1e ldr r3, [pc, #120] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28856. 800c7c4: 6b1b ldr r3, [r3, #48] @ 0x30
  28857. 800c7c6: f3c3 0308 ubfx r3, r3, #0, #9
  28858. 800c7ca: ee07 3a90 vmov s15, r3
  28859. 800c7ce: eef8 6a67 vcvt.f32.u32 s13, s15
  28860. 800c7d2: ed97 6a02 vldr s12, [r7, #8]
  28861. 800c7d6: eddf 5a1d vldr s11, [pc, #116] @ 800c84c <HAL_RCC_GetSysClockFreq+0x2e4>
  28862. 800c7da: eec6 7a25 vdiv.f32 s15, s12, s11
  28863. 800c7de: ee76 7aa7 vadd.f32 s15, s13, s15
  28864. 800c7e2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28865. 800c7e6: ee77 7aa6 vadd.f32 s15, s15, s13
  28866. 800c7ea: ee67 7a27 vmul.f32 s15, s14, s15
  28867. 800c7ee: edc7 7a07 vstr s15, [r7, #28]
  28868. break;
  28869. 800c7f2: bf00 nop
  28870. }
  28871. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  28872. 800c7f4: 4b11 ldr r3, [pc, #68] @ (800c83c <HAL_RCC_GetSysClockFreq+0x2d4>)
  28873. 800c7f6: 6b1b ldr r3, [r3, #48] @ 0x30
  28874. 800c7f8: 0a5b lsrs r3, r3, #9
  28875. 800c7fa: f003 037f and.w r3, r3, #127 @ 0x7f
  28876. 800c7fe: 3301 adds r3, #1
  28877. 800c800: 603b str r3, [r7, #0]
  28878. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  28879. 800c802: 683b ldr r3, [r7, #0]
  28880. 800c804: ee07 3a90 vmov s15, r3
  28881. 800c808: eeb8 7a67 vcvt.f32.u32 s14, s15
  28882. 800c80c: edd7 6a07 vldr s13, [r7, #28]
  28883. 800c810: eec6 7a87 vdiv.f32 s15, s13, s14
  28884. 800c814: eefc 7ae7 vcvt.u32.f32 s15, s15
  28885. 800c818: ee17 3a90 vmov r3, s15
  28886. 800c81c: 61bb str r3, [r7, #24]
  28887. }
  28888. else
  28889. {
  28890. sysclockfreq = 0U;
  28891. }
  28892. break;
  28893. 800c81e: e005 b.n 800c82c <HAL_RCC_GetSysClockFreq+0x2c4>
  28894. sysclockfreq = 0U;
  28895. 800c820: 2300 movs r3, #0
  28896. 800c822: 61bb str r3, [r7, #24]
  28897. break;
  28898. 800c824: e002 b.n 800c82c <HAL_RCC_GetSysClockFreq+0x2c4>
  28899. default:
  28900. sysclockfreq = CSI_VALUE;
  28901. 800c826: 4b07 ldr r3, [pc, #28] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2dc>)
  28902. 800c828: 61bb str r3, [r7, #24]
  28903. break;
  28904. 800c82a: bf00 nop
  28905. }
  28906. return sysclockfreq;
  28907. 800c82c: 69bb ldr r3, [r7, #24]
  28908. }
  28909. 800c82e: 4618 mov r0, r3
  28910. 800c830: 3724 adds r7, #36 @ 0x24
  28911. 800c832: 46bd mov sp, r7
  28912. 800c834: f85d 7b04 ldr.w r7, [sp], #4
  28913. 800c838: 4770 bx lr
  28914. 800c83a: bf00 nop
  28915. 800c83c: 58024400 .word 0x58024400
  28916. 800c840: 03d09000 .word 0x03d09000
  28917. 800c844: 003d0900 .word 0x003d0900
  28918. 800c848: 017d7840 .word 0x017d7840
  28919. 800c84c: 46000000 .word 0x46000000
  28920. 800c850: 4c742400 .word 0x4c742400
  28921. 800c854: 4a742400 .word 0x4a742400
  28922. 800c858: 4bbebc20 .word 0x4bbebc20
  28923. 0800c85c <HAL_RCC_GetHCLKFreq>:
  28924. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  28925. * and updated within this function
  28926. * @retval HCLK frequency
  28927. */
  28928. uint32_t HAL_RCC_GetHCLKFreq(void)
  28929. {
  28930. 800c85c: b580 push {r7, lr}
  28931. 800c85e: b082 sub sp, #8
  28932. 800c860: af00 add r7, sp, #0
  28933. uint32_t common_system_clock;
  28934. #if defined(RCC_D1CFGR_D1CPRE)
  28935. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  28936. 800c862: f7ff fe81 bl 800c568 <HAL_RCC_GetSysClockFreq>
  28937. 800c866: 4602 mov r2, r0
  28938. 800c868: 4b10 ldr r3, [pc, #64] @ (800c8ac <HAL_RCC_GetHCLKFreq+0x50>)
  28939. 800c86a: 699b ldr r3, [r3, #24]
  28940. 800c86c: 0a1b lsrs r3, r3, #8
  28941. 800c86e: f003 030f and.w r3, r3, #15
  28942. 800c872: 490f ldr r1, [pc, #60] @ (800c8b0 <HAL_RCC_GetHCLKFreq+0x54>)
  28943. 800c874: 5ccb ldrb r3, [r1, r3]
  28944. 800c876: f003 031f and.w r3, r3, #31
  28945. 800c87a: fa22 f303 lsr.w r3, r2, r3
  28946. 800c87e: 607b str r3, [r7, #4]
  28947. #else
  28948. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  28949. #endif
  28950. #if defined(RCC_D1CFGR_HPRE)
  28951. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28952. 800c880: 4b0a ldr r3, [pc, #40] @ (800c8ac <HAL_RCC_GetHCLKFreq+0x50>)
  28953. 800c882: 699b ldr r3, [r3, #24]
  28954. 800c884: f003 030f and.w r3, r3, #15
  28955. 800c888: 4a09 ldr r2, [pc, #36] @ (800c8b0 <HAL_RCC_GetHCLKFreq+0x54>)
  28956. 800c88a: 5cd3 ldrb r3, [r2, r3]
  28957. 800c88c: f003 031f and.w r3, r3, #31
  28958. 800c890: 687a ldr r2, [r7, #4]
  28959. 800c892: fa22 f303 lsr.w r3, r2, r3
  28960. 800c896: 4a07 ldr r2, [pc, #28] @ (800c8b4 <HAL_RCC_GetHCLKFreq+0x58>)
  28961. 800c898: 6013 str r3, [r2, #0]
  28962. #endif
  28963. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28964. SystemCoreClock = SystemD2Clock;
  28965. #else
  28966. SystemCoreClock = common_system_clock;
  28967. 800c89a: 4a07 ldr r2, [pc, #28] @ (800c8b8 <HAL_RCC_GetHCLKFreq+0x5c>)
  28968. 800c89c: 687b ldr r3, [r7, #4]
  28969. 800c89e: 6013 str r3, [r2, #0]
  28970. #endif /* DUAL_CORE && CORE_CM4 */
  28971. return SystemD2Clock;
  28972. 800c8a0: 4b04 ldr r3, [pc, #16] @ (800c8b4 <HAL_RCC_GetHCLKFreq+0x58>)
  28973. 800c8a2: 681b ldr r3, [r3, #0]
  28974. }
  28975. 800c8a4: 4618 mov r0, r3
  28976. 800c8a6: 3708 adds r7, #8
  28977. 800c8a8: 46bd mov sp, r7
  28978. 800c8aa: bd80 pop {r7, pc}
  28979. 800c8ac: 58024400 .word 0x58024400
  28980. 800c8b0: 080186fc .word 0x080186fc
  28981. 800c8b4: 24000038 .word 0x24000038
  28982. 800c8b8: 24000034 .word 0x24000034
  28983. 0800c8bc <HAL_RCC_GetPCLK1Freq>:
  28984. * @note Each time PCLK1 changes, this function must be called to update the
  28985. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  28986. * @retval PCLK1 frequency
  28987. */
  28988. uint32_t HAL_RCC_GetPCLK1Freq(void)
  28989. {
  28990. 800c8bc: b580 push {r7, lr}
  28991. 800c8be: af00 add r7, sp, #0
  28992. #if defined (RCC_D2CFGR_D2PPRE1)
  28993. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  28994. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  28995. 800c8c0: f7ff ffcc bl 800c85c <HAL_RCC_GetHCLKFreq>
  28996. 800c8c4: 4602 mov r2, r0
  28997. 800c8c6: 4b06 ldr r3, [pc, #24] @ (800c8e0 <HAL_RCC_GetPCLK1Freq+0x24>)
  28998. 800c8c8: 69db ldr r3, [r3, #28]
  28999. 800c8ca: 091b lsrs r3, r3, #4
  29000. 800c8cc: f003 0307 and.w r3, r3, #7
  29001. 800c8d0: 4904 ldr r1, [pc, #16] @ (800c8e4 <HAL_RCC_GetPCLK1Freq+0x28>)
  29002. 800c8d2: 5ccb ldrb r3, [r1, r3]
  29003. 800c8d4: f003 031f and.w r3, r3, #31
  29004. 800c8d8: fa22 f303 lsr.w r3, r2, r3
  29005. #else
  29006. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29007. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  29008. #endif
  29009. }
  29010. 800c8dc: 4618 mov r0, r3
  29011. 800c8de: bd80 pop {r7, pc}
  29012. 800c8e0: 58024400 .word 0x58024400
  29013. 800c8e4: 080186fc .word 0x080186fc
  29014. 0800c8e8 <HAL_RCC_GetPCLK2Freq>:
  29015. * @note Each time PCLK2 changes, this function must be called to update the
  29016. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  29017. * @retval PCLK1 frequency
  29018. */
  29019. uint32_t HAL_RCC_GetPCLK2Freq(void)
  29020. {
  29021. 800c8e8: b580 push {r7, lr}
  29022. 800c8ea: af00 add r7, sp, #0
  29023. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29024. #if defined(RCC_D2CFGR_D2PPRE2)
  29025. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  29026. 800c8ec: f7ff ffb6 bl 800c85c <HAL_RCC_GetHCLKFreq>
  29027. 800c8f0: 4602 mov r2, r0
  29028. 800c8f2: 4b06 ldr r3, [pc, #24] @ (800c90c <HAL_RCC_GetPCLK2Freq+0x24>)
  29029. 800c8f4: 69db ldr r3, [r3, #28]
  29030. 800c8f6: 0a1b lsrs r3, r3, #8
  29031. 800c8f8: f003 0307 and.w r3, r3, #7
  29032. 800c8fc: 4904 ldr r1, [pc, #16] @ (800c910 <HAL_RCC_GetPCLK2Freq+0x28>)
  29033. 800c8fe: 5ccb ldrb r3, [r1, r3]
  29034. 800c900: f003 031f and.w r3, r3, #31
  29035. 800c904: fa22 f303 lsr.w r3, r2, r3
  29036. #else
  29037. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  29038. #endif
  29039. }
  29040. 800c908: 4618 mov r0, r3
  29041. 800c90a: bd80 pop {r7, pc}
  29042. 800c90c: 58024400 .word 0x58024400
  29043. 800c910: 080186fc .word 0x080186fc
  29044. 0800c914 <HAL_RCC_GetClockConfig>:
  29045. * will be configured.
  29046. * @param pFLatency: Pointer on the Flash Latency.
  29047. * @retval None
  29048. */
  29049. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  29050. {
  29051. 800c914: b480 push {r7}
  29052. 800c916: b083 sub sp, #12
  29053. 800c918: af00 add r7, sp, #0
  29054. 800c91a: 6078 str r0, [r7, #4]
  29055. 800c91c: 6039 str r1, [r7, #0]
  29056. /* Set all possible values for the Clock type parameter --------------------*/
  29057. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  29058. 800c91e: 687b ldr r3, [r7, #4]
  29059. 800c920: 223f movs r2, #63 @ 0x3f
  29060. 800c922: 601a str r2, [r3, #0]
  29061. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  29062. /* Get the SYSCLK configuration --------------------------------------------*/
  29063. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  29064. 800c924: 4b1a ldr r3, [pc, #104] @ (800c990 <HAL_RCC_GetClockConfig+0x7c>)
  29065. 800c926: 691b ldr r3, [r3, #16]
  29066. 800c928: f003 0207 and.w r2, r3, #7
  29067. 800c92c: 687b ldr r3, [r7, #4]
  29068. 800c92e: 605a str r2, [r3, #4]
  29069. #if defined(RCC_D1CFGR_D1CPRE)
  29070. /* Get the SYSCLK configuration ----------------------------------------------*/
  29071. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  29072. 800c930: 4b17 ldr r3, [pc, #92] @ (800c990 <HAL_RCC_GetClockConfig+0x7c>)
  29073. 800c932: 699b ldr r3, [r3, #24]
  29074. 800c934: f403 6270 and.w r2, r3, #3840 @ 0xf00
  29075. 800c938: 687b ldr r3, [r7, #4]
  29076. 800c93a: 609a str r2, [r3, #8]
  29077. /* Get the D1HCLK configuration ----------------------------------------------*/
  29078. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  29079. 800c93c: 4b14 ldr r3, [pc, #80] @ (800c990 <HAL_RCC_GetClockConfig+0x7c>)
  29080. 800c93e: 699b ldr r3, [r3, #24]
  29081. 800c940: f003 020f and.w r2, r3, #15
  29082. 800c944: 687b ldr r3, [r7, #4]
  29083. 800c946: 60da str r2, [r3, #12]
  29084. /* Get the APB3 configuration ----------------------------------------------*/
  29085. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  29086. 800c948: 4b11 ldr r3, [pc, #68] @ (800c990 <HAL_RCC_GetClockConfig+0x7c>)
  29087. 800c94a: 699b ldr r3, [r3, #24]
  29088. 800c94c: f003 0270 and.w r2, r3, #112 @ 0x70
  29089. 800c950: 687b ldr r3, [r7, #4]
  29090. 800c952: 611a str r2, [r3, #16]
  29091. /* Get the APB1 configuration ----------------------------------------------*/
  29092. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  29093. 800c954: 4b0e ldr r3, [pc, #56] @ (800c990 <HAL_RCC_GetClockConfig+0x7c>)
  29094. 800c956: 69db ldr r3, [r3, #28]
  29095. 800c958: f003 0270 and.w r2, r3, #112 @ 0x70
  29096. 800c95c: 687b ldr r3, [r7, #4]
  29097. 800c95e: 615a str r2, [r3, #20]
  29098. /* Get the APB2 configuration ----------------------------------------------*/
  29099. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  29100. 800c960: 4b0b ldr r3, [pc, #44] @ (800c990 <HAL_RCC_GetClockConfig+0x7c>)
  29101. 800c962: 69db ldr r3, [r3, #28]
  29102. 800c964: f403 62e0 and.w r2, r3, #1792 @ 0x700
  29103. 800c968: 687b ldr r3, [r7, #4]
  29104. 800c96a: 619a str r2, [r3, #24]
  29105. /* Get the APB4 configuration ----------------------------------------------*/
  29106. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  29107. 800c96c: 4b08 ldr r3, [pc, #32] @ (800c990 <HAL_RCC_GetClockConfig+0x7c>)
  29108. 800c96e: 6a1b ldr r3, [r3, #32]
  29109. 800c970: f003 0270 and.w r2, r3, #112 @ 0x70
  29110. 800c974: 687b ldr r3, [r7, #4]
  29111. 800c976: 61da str r2, [r3, #28]
  29112. /* Get the APB4 configuration ----------------------------------------------*/
  29113. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  29114. #endif
  29115. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  29116. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  29117. 800c978: 4b06 ldr r3, [pc, #24] @ (800c994 <HAL_RCC_GetClockConfig+0x80>)
  29118. 800c97a: 681b ldr r3, [r3, #0]
  29119. 800c97c: f003 020f and.w r2, r3, #15
  29120. 800c980: 683b ldr r3, [r7, #0]
  29121. 800c982: 601a str r2, [r3, #0]
  29122. }
  29123. 800c984: bf00 nop
  29124. 800c986: 370c adds r7, #12
  29125. 800c988: 46bd mov sp, r7
  29126. 800c98a: f85d 7b04 ldr.w r7, [sp], #4
  29127. 800c98e: 4770 bx lr
  29128. 800c990: 58024400 .word 0x58024400
  29129. 800c994: 52002000 .word 0x52002000
  29130. 0800c998 <HAL_RCCEx_PeriphCLKConfig>:
  29131. * (*) : Available on some STM32H7 lines only.
  29132. *
  29133. * @retval HAL status
  29134. */
  29135. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  29136. {
  29137. 800c998: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  29138. 800c99c: b0c8 sub sp, #288 @ 0x120
  29139. 800c99e: af00 add r7, sp, #0
  29140. 800c9a0: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  29141. uint32_t tmpreg;
  29142. uint32_t tickstart;
  29143. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  29144. 800c9a4: 2300 movs r3, #0
  29145. 800c9a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29146. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  29147. 800c9aa: 2300 movs r3, #0
  29148. 800c9ac: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29149. /*---------------------------- SPDIFRX configuration -------------------------------*/
  29150. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  29151. 800c9b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29152. 800c9b4: e9d3 2300 ldrd r2, r3, [r3]
  29153. 800c9b8: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  29154. 800c9bc: 2500 movs r5, #0
  29155. 800c9be: ea54 0305 orrs.w r3, r4, r5
  29156. 800c9c2: d049 beq.n 800ca58 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29157. {
  29158. switch (PeriphClkInit->SpdifrxClockSelection)
  29159. 800c9c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29160. 800c9c8: 6e9b ldr r3, [r3, #104] @ 0x68
  29161. 800c9ca: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29162. 800c9ce: d02f beq.n 800ca30 <HAL_RCCEx_PeriphCLKConfig+0x98>
  29163. 800c9d0: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29164. 800c9d4: d828 bhi.n 800ca28 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29165. 800c9d6: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29166. 800c9da: d01a beq.n 800ca12 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  29167. 800c9dc: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29168. 800c9e0: d822 bhi.n 800ca28 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29169. 800c9e2: 2b00 cmp r3, #0
  29170. 800c9e4: d003 beq.n 800c9ee <HAL_RCCEx_PeriphCLKConfig+0x56>
  29171. 800c9e6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  29172. 800c9ea: d007 beq.n 800c9fc <HAL_RCCEx_PeriphCLKConfig+0x64>
  29173. 800c9ec: e01c b.n 800ca28 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29174. {
  29175. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  29176. /* Enable PLL1Q Clock output generated form System PLL . */
  29177. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29178. 800c9ee: 4bb8 ldr r3, [pc, #736] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29179. 800c9f0: 6adb ldr r3, [r3, #44] @ 0x2c
  29180. 800c9f2: 4ab7 ldr r2, [pc, #732] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29181. 800c9f4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29182. 800c9f8: 62d3 str r3, [r2, #44] @ 0x2c
  29183. /* SPDIFRX clock source configuration done later after clock selection check */
  29184. break;
  29185. 800c9fa: e01a b.n 800ca32 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29186. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  29187. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29188. 800c9fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29189. 800ca00: 3308 adds r3, #8
  29190. 800ca02: 2102 movs r1, #2
  29191. 800ca04: 4618 mov r0, r3
  29192. 800ca06: f002 fb45 bl 800f094 <RCCEx_PLL2_Config>
  29193. 800ca0a: 4603 mov r3, r0
  29194. 800ca0c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29195. /* SPDIFRX clock source configuration done later after clock selection check */
  29196. break;
  29197. 800ca10: e00f b.n 800ca32 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29198. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  29199. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29200. 800ca12: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29201. 800ca16: 3328 adds r3, #40 @ 0x28
  29202. 800ca18: 2102 movs r1, #2
  29203. 800ca1a: 4618 mov r0, r3
  29204. 800ca1c: f002 fbec bl 800f1f8 <RCCEx_PLL3_Config>
  29205. 800ca20: 4603 mov r3, r0
  29206. 800ca22: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29207. /* SPDIFRX clock source configuration done later after clock selection check */
  29208. break;
  29209. 800ca26: e004 b.n 800ca32 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29210. /* Internal OSC clock is used as source of SPDIFRX clock*/
  29211. /* SPDIFRX clock source configuration done later after clock selection check */
  29212. break;
  29213. default:
  29214. ret = HAL_ERROR;
  29215. 800ca28: 2301 movs r3, #1
  29216. 800ca2a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29217. break;
  29218. 800ca2e: e000 b.n 800ca32 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29219. break;
  29220. 800ca30: bf00 nop
  29221. }
  29222. if (ret == HAL_OK)
  29223. 800ca32: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29224. 800ca36: 2b00 cmp r3, #0
  29225. 800ca38: d10a bne.n 800ca50 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  29226. {
  29227. /* Set the source of SPDIFRX clock*/
  29228. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  29229. 800ca3a: 4ba5 ldr r3, [pc, #660] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29230. 800ca3c: 6d1b ldr r3, [r3, #80] @ 0x50
  29231. 800ca3e: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  29232. 800ca42: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29233. 800ca46: 6e9b ldr r3, [r3, #104] @ 0x68
  29234. 800ca48: 4aa1 ldr r2, [pc, #644] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29235. 800ca4a: 430b orrs r3, r1
  29236. 800ca4c: 6513 str r3, [r2, #80] @ 0x50
  29237. 800ca4e: e003 b.n 800ca58 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29238. }
  29239. else
  29240. {
  29241. /* set overall return value */
  29242. status = ret;
  29243. 800ca50: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29244. 800ca54: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29245. }
  29246. }
  29247. /*---------------------------- SAI1 configuration -------------------------------*/
  29248. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  29249. 800ca58: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29250. 800ca5c: e9d3 2300 ldrd r2, r3, [r3]
  29251. 800ca60: f402 7880 and.w r8, r2, #256 @ 0x100
  29252. 800ca64: f04f 0900 mov.w r9, #0
  29253. 800ca68: ea58 0309 orrs.w r3, r8, r9
  29254. 800ca6c: d047 beq.n 800cafe <HAL_RCCEx_PeriphCLKConfig+0x166>
  29255. {
  29256. switch (PeriphClkInit->Sai1ClockSelection)
  29257. 800ca6e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29258. 800ca72: 6d9b ldr r3, [r3, #88] @ 0x58
  29259. 800ca74: 2b04 cmp r3, #4
  29260. 800ca76: d82a bhi.n 800cace <HAL_RCCEx_PeriphCLKConfig+0x136>
  29261. 800ca78: a201 add r2, pc, #4 @ (adr r2, 800ca80 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  29262. 800ca7a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29263. 800ca7e: bf00 nop
  29264. 800ca80: 0800ca95 .word 0x0800ca95
  29265. 800ca84: 0800caa3 .word 0x0800caa3
  29266. 800ca88: 0800cab9 .word 0x0800cab9
  29267. 800ca8c: 0800cad7 .word 0x0800cad7
  29268. 800ca90: 0800cad7 .word 0x0800cad7
  29269. {
  29270. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  29271. /* Enable SAI Clock output generated form System PLL . */
  29272. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29273. 800ca94: 4b8e ldr r3, [pc, #568] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29274. 800ca96: 6adb ldr r3, [r3, #44] @ 0x2c
  29275. 800ca98: 4a8d ldr r2, [pc, #564] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29276. 800ca9a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29277. 800ca9e: 62d3 str r3, [r2, #44] @ 0x2c
  29278. /* SAI1 clock source configuration done later after clock selection check */
  29279. break;
  29280. 800caa0: e01a b.n 800cad8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29281. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  29282. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29283. 800caa2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29284. 800caa6: 3308 adds r3, #8
  29285. 800caa8: 2100 movs r1, #0
  29286. 800caaa: 4618 mov r0, r3
  29287. 800caac: f002 faf2 bl 800f094 <RCCEx_PLL2_Config>
  29288. 800cab0: 4603 mov r3, r0
  29289. 800cab2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29290. /* SAI1 clock source configuration done later after clock selection check */
  29291. break;
  29292. 800cab6: e00f b.n 800cad8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29293. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  29294. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29295. 800cab8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29296. 800cabc: 3328 adds r3, #40 @ 0x28
  29297. 800cabe: 2100 movs r1, #0
  29298. 800cac0: 4618 mov r0, r3
  29299. 800cac2: f002 fb99 bl 800f1f8 <RCCEx_PLL3_Config>
  29300. 800cac6: 4603 mov r3, r0
  29301. 800cac8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29302. /* SAI1 clock source configuration done later after clock selection check */
  29303. break;
  29304. 800cacc: e004 b.n 800cad8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29305. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  29306. /* SAI1 clock source configuration done later after clock selection check */
  29307. break;
  29308. default:
  29309. ret = HAL_ERROR;
  29310. 800cace: 2301 movs r3, #1
  29311. 800cad0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29312. break;
  29313. 800cad4: e000 b.n 800cad8 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29314. break;
  29315. 800cad6: bf00 nop
  29316. }
  29317. if (ret == HAL_OK)
  29318. 800cad8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29319. 800cadc: 2b00 cmp r3, #0
  29320. 800cade: d10a bne.n 800caf6 <HAL_RCCEx_PeriphCLKConfig+0x15e>
  29321. {
  29322. /* Set the source of SAI1 clock*/
  29323. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  29324. 800cae0: 4b7b ldr r3, [pc, #492] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29325. 800cae2: 6d1b ldr r3, [r3, #80] @ 0x50
  29326. 800cae4: f023 0107 bic.w r1, r3, #7
  29327. 800cae8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29328. 800caec: 6d9b ldr r3, [r3, #88] @ 0x58
  29329. 800caee: 4a78 ldr r2, [pc, #480] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29330. 800caf0: 430b orrs r3, r1
  29331. 800caf2: 6513 str r3, [r2, #80] @ 0x50
  29332. 800caf4: e003 b.n 800cafe <HAL_RCCEx_PeriphCLKConfig+0x166>
  29333. }
  29334. else
  29335. {
  29336. /* set overall return value */
  29337. status = ret;
  29338. 800caf6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29339. 800cafa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29340. }
  29341. }
  29342. #if defined(SAI3)
  29343. /*---------------------------- SAI2/3 configuration -------------------------------*/
  29344. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  29345. 800cafe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29346. 800cb02: e9d3 2300 ldrd r2, r3, [r3]
  29347. 800cb06: f402 7a00 and.w sl, r2, #512 @ 0x200
  29348. 800cb0a: f04f 0b00 mov.w fp, #0
  29349. 800cb0e: ea5a 030b orrs.w r3, sl, fp
  29350. 800cb12: d04c beq.n 800cbae <HAL_RCCEx_PeriphCLKConfig+0x216>
  29351. {
  29352. switch (PeriphClkInit->Sai23ClockSelection)
  29353. 800cb14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29354. 800cb18: 6ddb ldr r3, [r3, #92] @ 0x5c
  29355. 800cb1a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29356. 800cb1e: d030 beq.n 800cb82 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  29357. 800cb20: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29358. 800cb24: d829 bhi.n 800cb7a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29359. 800cb26: 2bc0 cmp r3, #192 @ 0xc0
  29360. 800cb28: d02d beq.n 800cb86 <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  29361. 800cb2a: 2bc0 cmp r3, #192 @ 0xc0
  29362. 800cb2c: d825 bhi.n 800cb7a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29363. 800cb2e: 2b80 cmp r3, #128 @ 0x80
  29364. 800cb30: d018 beq.n 800cb64 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  29365. 800cb32: 2b80 cmp r3, #128 @ 0x80
  29366. 800cb34: d821 bhi.n 800cb7a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29367. 800cb36: 2b00 cmp r3, #0
  29368. 800cb38: d002 beq.n 800cb40 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  29369. 800cb3a: 2b40 cmp r3, #64 @ 0x40
  29370. 800cb3c: d007 beq.n 800cb4e <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  29371. 800cb3e: e01c b.n 800cb7a <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29372. {
  29373. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  29374. /* Enable SAI Clock output generated form System PLL . */
  29375. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29376. 800cb40: 4b63 ldr r3, [pc, #396] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29377. 800cb42: 6adb ldr r3, [r3, #44] @ 0x2c
  29378. 800cb44: 4a62 ldr r2, [pc, #392] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29379. 800cb46: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29380. 800cb4a: 62d3 str r3, [r2, #44] @ 0x2c
  29381. /* SAI2/3 clock source configuration done later after clock selection check */
  29382. break;
  29383. 800cb4c: e01c b.n 800cb88 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29384. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  29385. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29386. 800cb4e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29387. 800cb52: 3308 adds r3, #8
  29388. 800cb54: 2100 movs r1, #0
  29389. 800cb56: 4618 mov r0, r3
  29390. 800cb58: f002 fa9c bl 800f094 <RCCEx_PLL2_Config>
  29391. 800cb5c: 4603 mov r3, r0
  29392. 800cb5e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29393. /* SAI2/3 clock source configuration done later after clock selection check */
  29394. break;
  29395. 800cb62: e011 b.n 800cb88 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29396. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  29397. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29398. 800cb64: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29399. 800cb68: 3328 adds r3, #40 @ 0x28
  29400. 800cb6a: 2100 movs r1, #0
  29401. 800cb6c: 4618 mov r0, r3
  29402. 800cb6e: f002 fb43 bl 800f1f8 <RCCEx_PLL3_Config>
  29403. 800cb72: 4603 mov r3, r0
  29404. 800cb74: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29405. /* SAI2/3 clock source configuration done later after clock selection check */
  29406. break;
  29407. 800cb78: e006 b.n 800cb88 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29408. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  29409. /* SAI2/3 clock source configuration done later after clock selection check */
  29410. break;
  29411. default:
  29412. ret = HAL_ERROR;
  29413. 800cb7a: 2301 movs r3, #1
  29414. 800cb7c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29415. break;
  29416. 800cb80: e002 b.n 800cb88 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29417. break;
  29418. 800cb82: bf00 nop
  29419. 800cb84: e000 b.n 800cb88 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29420. break;
  29421. 800cb86: bf00 nop
  29422. }
  29423. if (ret == HAL_OK)
  29424. 800cb88: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29425. 800cb8c: 2b00 cmp r3, #0
  29426. 800cb8e: d10a bne.n 800cba6 <HAL_RCCEx_PeriphCLKConfig+0x20e>
  29427. {
  29428. /* Set the source of SAI2/3 clock*/
  29429. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  29430. 800cb90: 4b4f ldr r3, [pc, #316] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29431. 800cb92: 6d1b ldr r3, [r3, #80] @ 0x50
  29432. 800cb94: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  29433. 800cb98: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29434. 800cb9c: 6ddb ldr r3, [r3, #92] @ 0x5c
  29435. 800cb9e: 4a4c ldr r2, [pc, #304] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29436. 800cba0: 430b orrs r3, r1
  29437. 800cba2: 6513 str r3, [r2, #80] @ 0x50
  29438. 800cba4: e003 b.n 800cbae <HAL_RCCEx_PeriphCLKConfig+0x216>
  29439. }
  29440. else
  29441. {
  29442. /* set overall return value */
  29443. status = ret;
  29444. 800cba6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29445. 800cbaa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29446. }
  29447. #endif /*SAI2B*/
  29448. #if defined(SAI4)
  29449. /*---------------------------- SAI4A configuration -------------------------------*/
  29450. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  29451. 800cbae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29452. 800cbb2: e9d3 2300 ldrd r2, r3, [r3]
  29453. 800cbb6: f402 6380 and.w r3, r2, #1024 @ 0x400
  29454. 800cbba: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  29455. 800cbbe: 2300 movs r3, #0
  29456. 800cbc0: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  29457. 800cbc4: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  29458. 800cbc8: 460b mov r3, r1
  29459. 800cbca: 4313 orrs r3, r2
  29460. 800cbcc: d053 beq.n 800cc76 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29461. {
  29462. switch (PeriphClkInit->Sai4AClockSelection)
  29463. 800cbce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29464. 800cbd2: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29465. 800cbd6: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29466. 800cbda: d035 beq.n 800cc48 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  29467. 800cbdc: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29468. 800cbe0: d82e bhi.n 800cc40 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29469. 800cbe2: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29470. 800cbe6: d031 beq.n 800cc4c <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  29471. 800cbe8: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29472. 800cbec: d828 bhi.n 800cc40 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29473. 800cbee: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29474. 800cbf2: d01a beq.n 800cc2a <HAL_RCCEx_PeriphCLKConfig+0x292>
  29475. 800cbf4: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29476. 800cbf8: d822 bhi.n 800cc40 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29477. 800cbfa: 2b00 cmp r3, #0
  29478. 800cbfc: d003 beq.n 800cc06 <HAL_RCCEx_PeriphCLKConfig+0x26e>
  29479. 800cbfe: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29480. 800cc02: d007 beq.n 800cc14 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  29481. 800cc04: e01c b.n 800cc40 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29482. {
  29483. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29484. /* Enable SAI Clock output generated form System PLL . */
  29485. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29486. 800cc06: 4b32 ldr r3, [pc, #200] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29487. 800cc08: 6adb ldr r3, [r3, #44] @ 0x2c
  29488. 800cc0a: 4a31 ldr r2, [pc, #196] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29489. 800cc0c: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29490. 800cc10: 62d3 str r3, [r2, #44] @ 0x2c
  29491. /* SAI1 clock source configuration done later after clock selection check */
  29492. break;
  29493. 800cc12: e01c b.n 800cc4e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29494. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29495. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29496. 800cc14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29497. 800cc18: 3308 adds r3, #8
  29498. 800cc1a: 2100 movs r1, #0
  29499. 800cc1c: 4618 mov r0, r3
  29500. 800cc1e: f002 fa39 bl 800f094 <RCCEx_PLL2_Config>
  29501. 800cc22: 4603 mov r3, r0
  29502. 800cc24: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29503. /* SAI2 clock source configuration done later after clock selection check */
  29504. break;
  29505. 800cc28: e011 b.n 800cc4e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29506. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29507. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29508. 800cc2a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29509. 800cc2e: 3328 adds r3, #40 @ 0x28
  29510. 800cc30: 2100 movs r1, #0
  29511. 800cc32: 4618 mov r0, r3
  29512. 800cc34: f002 fae0 bl 800f1f8 <RCCEx_PLL3_Config>
  29513. 800cc38: 4603 mov r3, r0
  29514. 800cc3a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29515. /* SAI1 clock source configuration done later after clock selection check */
  29516. break;
  29517. 800cc3e: e006 b.n 800cc4e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29518. /* SAI4A clock source configuration done later after clock selection check */
  29519. break;
  29520. #endif /* RCC_VER_3_0 */
  29521. default:
  29522. ret = HAL_ERROR;
  29523. 800cc40: 2301 movs r3, #1
  29524. 800cc42: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29525. break;
  29526. 800cc46: e002 b.n 800cc4e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29527. break;
  29528. 800cc48: bf00 nop
  29529. 800cc4a: e000 b.n 800cc4e <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29530. break;
  29531. 800cc4c: bf00 nop
  29532. }
  29533. if (ret == HAL_OK)
  29534. 800cc4e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29535. 800cc52: 2b00 cmp r3, #0
  29536. 800cc54: d10b bne.n 800cc6e <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  29537. {
  29538. /* Set the source of SAI4A clock*/
  29539. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  29540. 800cc56: 4b1e ldr r3, [pc, #120] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29541. 800cc58: 6d9b ldr r3, [r3, #88] @ 0x58
  29542. 800cc5a: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  29543. 800cc5e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29544. 800cc62: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29545. 800cc66: 4a1a ldr r2, [pc, #104] @ (800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29546. 800cc68: 430b orrs r3, r1
  29547. 800cc6a: 6593 str r3, [r2, #88] @ 0x58
  29548. 800cc6c: e003 b.n 800cc76 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29549. }
  29550. else
  29551. {
  29552. /* set overall return value */
  29553. status = ret;
  29554. 800cc6e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29555. 800cc72: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29556. }
  29557. }
  29558. /*---------------------------- SAI4B configuration -------------------------------*/
  29559. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  29560. 800cc76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29561. 800cc7a: e9d3 2300 ldrd r2, r3, [r3]
  29562. 800cc7e: f402 6300 and.w r3, r2, #2048 @ 0x800
  29563. 800cc82: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  29564. 800cc86: 2300 movs r3, #0
  29565. 800cc88: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  29566. 800cc8c: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  29567. 800cc90: 460b mov r3, r1
  29568. 800cc92: 4313 orrs r3, r2
  29569. 800cc94: d056 beq.n 800cd44 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29570. {
  29571. switch (PeriphClkInit->Sai4BClockSelection)
  29572. 800cc96: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29573. 800cc9a: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29574. 800cc9e: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29575. 800cca2: d038 beq.n 800cd16 <HAL_RCCEx_PeriphCLKConfig+0x37e>
  29576. 800cca4: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29577. 800cca8: d831 bhi.n 800cd0e <HAL_RCCEx_PeriphCLKConfig+0x376>
  29578. 800ccaa: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29579. 800ccae: d034 beq.n 800cd1a <HAL_RCCEx_PeriphCLKConfig+0x382>
  29580. 800ccb0: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29581. 800ccb4: d82b bhi.n 800cd0e <HAL_RCCEx_PeriphCLKConfig+0x376>
  29582. 800ccb6: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29583. 800ccba: d01d beq.n 800ccf8 <HAL_RCCEx_PeriphCLKConfig+0x360>
  29584. 800ccbc: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29585. 800ccc0: d825 bhi.n 800cd0e <HAL_RCCEx_PeriphCLKConfig+0x376>
  29586. 800ccc2: 2b00 cmp r3, #0
  29587. 800ccc4: d006 beq.n 800ccd4 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  29588. 800ccc6: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  29589. 800ccca: d00a beq.n 800cce2 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  29590. 800cccc: e01f b.n 800cd0e <HAL_RCCEx_PeriphCLKConfig+0x376>
  29591. 800ccce: bf00 nop
  29592. 800ccd0: 58024400 .word 0x58024400
  29593. {
  29594. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29595. /* Enable SAI Clock output generated form System PLL . */
  29596. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29597. 800ccd4: 4ba2 ldr r3, [pc, #648] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29598. 800ccd6: 6adb ldr r3, [r3, #44] @ 0x2c
  29599. 800ccd8: 4aa1 ldr r2, [pc, #644] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29600. 800ccda: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29601. 800ccde: 62d3 str r3, [r2, #44] @ 0x2c
  29602. /* SAI1 clock source configuration done later after clock selection check */
  29603. break;
  29604. 800cce0: e01c b.n 800cd1c <HAL_RCCEx_PeriphCLKConfig+0x384>
  29605. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29606. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29607. 800cce2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29608. 800cce6: 3308 adds r3, #8
  29609. 800cce8: 2100 movs r1, #0
  29610. 800ccea: 4618 mov r0, r3
  29611. 800ccec: f002 f9d2 bl 800f094 <RCCEx_PLL2_Config>
  29612. 800ccf0: 4603 mov r3, r0
  29613. 800ccf2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29614. /* SAI2 clock source configuration done later after clock selection check */
  29615. break;
  29616. 800ccf6: e011 b.n 800cd1c <HAL_RCCEx_PeriphCLKConfig+0x384>
  29617. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29618. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29619. 800ccf8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29620. 800ccfc: 3328 adds r3, #40 @ 0x28
  29621. 800ccfe: 2100 movs r1, #0
  29622. 800cd00: 4618 mov r0, r3
  29623. 800cd02: f002 fa79 bl 800f1f8 <RCCEx_PLL3_Config>
  29624. 800cd06: 4603 mov r3, r0
  29625. 800cd08: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29626. /* SAI1 clock source configuration done later after clock selection check */
  29627. break;
  29628. 800cd0c: e006 b.n 800cd1c <HAL_RCCEx_PeriphCLKConfig+0x384>
  29629. /* SAI4B clock source configuration done later after clock selection check */
  29630. break;
  29631. #endif /* RCC_VER_3_0 */
  29632. default:
  29633. ret = HAL_ERROR;
  29634. 800cd0e: 2301 movs r3, #1
  29635. 800cd10: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29636. break;
  29637. 800cd14: e002 b.n 800cd1c <HAL_RCCEx_PeriphCLKConfig+0x384>
  29638. break;
  29639. 800cd16: bf00 nop
  29640. 800cd18: e000 b.n 800cd1c <HAL_RCCEx_PeriphCLKConfig+0x384>
  29641. break;
  29642. 800cd1a: bf00 nop
  29643. }
  29644. if (ret == HAL_OK)
  29645. 800cd1c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29646. 800cd20: 2b00 cmp r3, #0
  29647. 800cd22: d10b bne.n 800cd3c <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  29648. {
  29649. /* Set the source of SAI4B clock*/
  29650. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  29651. 800cd24: 4b8e ldr r3, [pc, #568] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29652. 800cd26: 6d9b ldr r3, [r3, #88] @ 0x58
  29653. 800cd28: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  29654. 800cd2c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29655. 800cd30: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29656. 800cd34: 4a8a ldr r2, [pc, #552] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29657. 800cd36: 430b orrs r3, r1
  29658. 800cd38: 6593 str r3, [r2, #88] @ 0x58
  29659. 800cd3a: e003 b.n 800cd44 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29660. }
  29661. else
  29662. {
  29663. /* set overall return value */
  29664. status = ret;
  29665. 800cd3c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29666. 800cd40: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29667. }
  29668. #endif /*SAI4*/
  29669. #if defined(QUADSPI)
  29670. /*---------------------------- QSPI configuration -------------------------------*/
  29671. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  29672. 800cd44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29673. 800cd48: e9d3 2300 ldrd r2, r3, [r3]
  29674. 800cd4c: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  29675. 800cd50: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  29676. 800cd54: 2300 movs r3, #0
  29677. 800cd56: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  29678. 800cd5a: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  29679. 800cd5e: 460b mov r3, r1
  29680. 800cd60: 4313 orrs r3, r2
  29681. 800cd62: d03a beq.n 800cdda <HAL_RCCEx_PeriphCLKConfig+0x442>
  29682. {
  29683. switch (PeriphClkInit->QspiClockSelection)
  29684. 800cd64: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29685. 800cd68: 6cdb ldr r3, [r3, #76] @ 0x4c
  29686. 800cd6a: 2b30 cmp r3, #48 @ 0x30
  29687. 800cd6c: d01f beq.n 800cdae <HAL_RCCEx_PeriphCLKConfig+0x416>
  29688. 800cd6e: 2b30 cmp r3, #48 @ 0x30
  29689. 800cd70: d819 bhi.n 800cda6 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29690. 800cd72: 2b20 cmp r3, #32
  29691. 800cd74: d00c beq.n 800cd90 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  29692. 800cd76: 2b20 cmp r3, #32
  29693. 800cd78: d815 bhi.n 800cda6 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29694. 800cd7a: 2b00 cmp r3, #0
  29695. 800cd7c: d019 beq.n 800cdb2 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  29696. 800cd7e: 2b10 cmp r3, #16
  29697. 800cd80: d111 bne.n 800cda6 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29698. {
  29699. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  29700. /* Enable QSPI Clock output generated form System PLL . */
  29701. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29702. 800cd82: 4b77 ldr r3, [pc, #476] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29703. 800cd84: 6adb ldr r3, [r3, #44] @ 0x2c
  29704. 800cd86: 4a76 ldr r2, [pc, #472] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29705. 800cd88: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29706. 800cd8c: 62d3 str r3, [r2, #44] @ 0x2c
  29707. /* QSPI clock source configuration done later after clock selection check */
  29708. break;
  29709. 800cd8e: e011 b.n 800cdb4 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29710. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  29711. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29712. 800cd90: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29713. 800cd94: 3308 adds r3, #8
  29714. 800cd96: 2102 movs r1, #2
  29715. 800cd98: 4618 mov r0, r3
  29716. 800cd9a: f002 f97b bl 800f094 <RCCEx_PLL2_Config>
  29717. 800cd9e: 4603 mov r3, r0
  29718. 800cda0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29719. /* QSPI clock source configuration done later after clock selection check */
  29720. break;
  29721. 800cda4: e006 b.n 800cdb4 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29722. case RCC_QSPICLKSOURCE_D1HCLK:
  29723. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  29724. break;
  29725. default:
  29726. ret = HAL_ERROR;
  29727. 800cda6: 2301 movs r3, #1
  29728. 800cda8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29729. break;
  29730. 800cdac: e002 b.n 800cdb4 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29731. break;
  29732. 800cdae: bf00 nop
  29733. 800cdb0: e000 b.n 800cdb4 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29734. break;
  29735. 800cdb2: bf00 nop
  29736. }
  29737. if (ret == HAL_OK)
  29738. 800cdb4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29739. 800cdb8: 2b00 cmp r3, #0
  29740. 800cdba: d10a bne.n 800cdd2 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  29741. {
  29742. /* Set the source of QSPI clock*/
  29743. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  29744. 800cdbc: 4b68 ldr r3, [pc, #416] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29745. 800cdbe: 6cdb ldr r3, [r3, #76] @ 0x4c
  29746. 800cdc0: f023 0130 bic.w r1, r3, #48 @ 0x30
  29747. 800cdc4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29748. 800cdc8: 6cdb ldr r3, [r3, #76] @ 0x4c
  29749. 800cdca: 4a65 ldr r2, [pc, #404] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29750. 800cdcc: 430b orrs r3, r1
  29751. 800cdce: 64d3 str r3, [r2, #76] @ 0x4c
  29752. 800cdd0: e003 b.n 800cdda <HAL_RCCEx_PeriphCLKConfig+0x442>
  29753. }
  29754. else
  29755. {
  29756. /* set overall return value */
  29757. status = ret;
  29758. 800cdd2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29759. 800cdd6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29760. }
  29761. }
  29762. #endif /*OCTOSPI*/
  29763. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  29764. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  29765. 800cdda: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29766. 800cdde: e9d3 2300 ldrd r2, r3, [r3]
  29767. 800cde2: f402 5380 and.w r3, r2, #4096 @ 0x1000
  29768. 800cde6: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  29769. 800cdea: 2300 movs r3, #0
  29770. 800cdec: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  29771. 800cdf0: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  29772. 800cdf4: 460b mov r3, r1
  29773. 800cdf6: 4313 orrs r3, r2
  29774. 800cdf8: d051 beq.n 800ce9e <HAL_RCCEx_PeriphCLKConfig+0x506>
  29775. {
  29776. switch (PeriphClkInit->Spi123ClockSelection)
  29777. 800cdfa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29778. 800cdfe: 6e1b ldr r3, [r3, #96] @ 0x60
  29779. 800ce00: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29780. 800ce04: d035 beq.n 800ce72 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  29781. 800ce06: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29782. 800ce0a: d82e bhi.n 800ce6a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29783. 800ce0c: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29784. 800ce10: d031 beq.n 800ce76 <HAL_RCCEx_PeriphCLKConfig+0x4de>
  29785. 800ce12: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29786. 800ce16: d828 bhi.n 800ce6a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29787. 800ce18: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29788. 800ce1c: d01a beq.n 800ce54 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  29789. 800ce1e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29790. 800ce22: d822 bhi.n 800ce6a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29791. 800ce24: 2b00 cmp r3, #0
  29792. 800ce26: d003 beq.n 800ce30 <HAL_RCCEx_PeriphCLKConfig+0x498>
  29793. 800ce28: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29794. 800ce2c: d007 beq.n 800ce3e <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  29795. 800ce2e: e01c b.n 800ce6a <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29796. {
  29797. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  29798. /* Enable SPI Clock output generated form System PLL . */
  29799. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29800. 800ce30: 4b4b ldr r3, [pc, #300] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29801. 800ce32: 6adb ldr r3, [r3, #44] @ 0x2c
  29802. 800ce34: 4a4a ldr r2, [pc, #296] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29803. 800ce36: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29804. 800ce3a: 62d3 str r3, [r2, #44] @ 0x2c
  29805. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29806. break;
  29807. 800ce3c: e01c b.n 800ce78 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29808. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  29809. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29810. 800ce3e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29811. 800ce42: 3308 adds r3, #8
  29812. 800ce44: 2100 movs r1, #0
  29813. 800ce46: 4618 mov r0, r3
  29814. 800ce48: f002 f924 bl 800f094 <RCCEx_PLL2_Config>
  29815. 800ce4c: 4603 mov r3, r0
  29816. 800ce4e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29817. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29818. break;
  29819. 800ce52: e011 b.n 800ce78 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29820. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  29821. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29822. 800ce54: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29823. 800ce58: 3328 adds r3, #40 @ 0x28
  29824. 800ce5a: 2100 movs r1, #0
  29825. 800ce5c: 4618 mov r0, r3
  29826. 800ce5e: f002 f9cb bl 800f1f8 <RCCEx_PLL3_Config>
  29827. 800ce62: 4603 mov r3, r0
  29828. 800ce64: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29829. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29830. break;
  29831. 800ce68: e006 b.n 800ce78 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29832. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  29833. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29834. break;
  29835. default:
  29836. ret = HAL_ERROR;
  29837. 800ce6a: 2301 movs r3, #1
  29838. 800ce6c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29839. break;
  29840. 800ce70: e002 b.n 800ce78 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29841. break;
  29842. 800ce72: bf00 nop
  29843. 800ce74: e000 b.n 800ce78 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29844. break;
  29845. 800ce76: bf00 nop
  29846. }
  29847. if (ret == HAL_OK)
  29848. 800ce78: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29849. 800ce7c: 2b00 cmp r3, #0
  29850. 800ce7e: d10a bne.n 800ce96 <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  29851. {
  29852. /* Set the source of SPI1/2/3 clock*/
  29853. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  29854. 800ce80: 4b37 ldr r3, [pc, #220] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29855. 800ce82: 6d1b ldr r3, [r3, #80] @ 0x50
  29856. 800ce84: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  29857. 800ce88: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29858. 800ce8c: 6e1b ldr r3, [r3, #96] @ 0x60
  29859. 800ce8e: 4a34 ldr r2, [pc, #208] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29860. 800ce90: 430b orrs r3, r1
  29861. 800ce92: 6513 str r3, [r2, #80] @ 0x50
  29862. 800ce94: e003 b.n 800ce9e <HAL_RCCEx_PeriphCLKConfig+0x506>
  29863. }
  29864. else
  29865. {
  29866. /* set overall return value */
  29867. status = ret;
  29868. 800ce96: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29869. 800ce9a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29870. }
  29871. }
  29872. /*---------------------------- SPI4/5 configuration -------------------------------*/
  29873. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  29874. 800ce9e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29875. 800cea2: e9d3 2300 ldrd r2, r3, [r3]
  29876. 800cea6: f402 5300 and.w r3, r2, #8192 @ 0x2000
  29877. 800ceaa: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  29878. 800ceae: 2300 movs r3, #0
  29879. 800ceb0: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  29880. 800ceb4: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  29881. 800ceb8: 460b mov r3, r1
  29882. 800ceba: 4313 orrs r3, r2
  29883. 800cebc: d056 beq.n 800cf6c <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29884. {
  29885. switch (PeriphClkInit->Spi45ClockSelection)
  29886. 800cebe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29887. 800cec2: 6e5b ldr r3, [r3, #100] @ 0x64
  29888. 800cec4: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29889. 800cec8: d033 beq.n 800cf32 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  29890. 800ceca: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29891. 800cece: d82c bhi.n 800cf2a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29892. 800ced0: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29893. 800ced4: d02f beq.n 800cf36 <HAL_RCCEx_PeriphCLKConfig+0x59e>
  29894. 800ced6: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29895. 800ceda: d826 bhi.n 800cf2a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29896. 800cedc: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29897. 800cee0: d02b beq.n 800cf3a <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  29898. 800cee2: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29899. 800cee6: d820 bhi.n 800cf2a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29900. 800cee8: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29901. 800ceec: d012 beq.n 800cf14 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  29902. 800ceee: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29903. 800cef2: d81a bhi.n 800cf2a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29904. 800cef4: 2b00 cmp r3, #0
  29905. 800cef6: d022 beq.n 800cf3e <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  29906. 800cef8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29907. 800cefc: d115 bne.n 800cf2a <HAL_RCCEx_PeriphCLKConfig+0x592>
  29908. /* SPI4/5 clock source configuration done later after clock selection check */
  29909. break;
  29910. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  29911. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29912. 800cefe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29913. 800cf02: 3308 adds r3, #8
  29914. 800cf04: 2101 movs r1, #1
  29915. 800cf06: 4618 mov r0, r3
  29916. 800cf08: f002 f8c4 bl 800f094 <RCCEx_PLL2_Config>
  29917. 800cf0c: 4603 mov r3, r0
  29918. 800cf0e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29919. /* SPI4/5 clock source configuration done later after clock selection check */
  29920. break;
  29921. 800cf12: e015 b.n 800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29922. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  29923. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29924. 800cf14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29925. 800cf18: 3328 adds r3, #40 @ 0x28
  29926. 800cf1a: 2101 movs r1, #1
  29927. 800cf1c: 4618 mov r0, r3
  29928. 800cf1e: f002 f96b bl 800f1f8 <RCCEx_PLL3_Config>
  29929. 800cf22: 4603 mov r3, r0
  29930. 800cf24: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29931. /* SPI4/5 clock source configuration done later after clock selection check */
  29932. break;
  29933. 800cf28: e00a b.n 800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29934. /* HSE, oscillator is used as source of SPI4/5 clock */
  29935. /* SPI4/5 clock source configuration done later after clock selection check */
  29936. break;
  29937. default:
  29938. ret = HAL_ERROR;
  29939. 800cf2a: 2301 movs r3, #1
  29940. 800cf2c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29941. break;
  29942. 800cf30: e006 b.n 800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29943. break;
  29944. 800cf32: bf00 nop
  29945. 800cf34: e004 b.n 800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29946. break;
  29947. 800cf36: bf00 nop
  29948. 800cf38: e002 b.n 800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29949. break;
  29950. 800cf3a: bf00 nop
  29951. 800cf3c: e000 b.n 800cf40 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29952. break;
  29953. 800cf3e: bf00 nop
  29954. }
  29955. if (ret == HAL_OK)
  29956. 800cf40: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29957. 800cf44: 2b00 cmp r3, #0
  29958. 800cf46: d10d bne.n 800cf64 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  29959. {
  29960. /* Set the source of SPI4/5 clock*/
  29961. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  29962. 800cf48: 4b05 ldr r3, [pc, #20] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29963. 800cf4a: 6d1b ldr r3, [r3, #80] @ 0x50
  29964. 800cf4c: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  29965. 800cf50: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29966. 800cf54: 6e5b ldr r3, [r3, #100] @ 0x64
  29967. 800cf56: 4a02 ldr r2, [pc, #8] @ (800cf60 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29968. 800cf58: 430b orrs r3, r1
  29969. 800cf5a: 6513 str r3, [r2, #80] @ 0x50
  29970. 800cf5c: e006 b.n 800cf6c <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29971. 800cf5e: bf00 nop
  29972. 800cf60: 58024400 .word 0x58024400
  29973. }
  29974. else
  29975. {
  29976. /* set overall return value */
  29977. status = ret;
  29978. 800cf64: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29979. 800cf68: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29980. }
  29981. }
  29982. /*---------------------------- SPI6 configuration -------------------------------*/
  29983. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  29984. 800cf6c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29985. 800cf70: e9d3 2300 ldrd r2, r3, [r3]
  29986. 800cf74: f402 4380 and.w r3, r2, #16384 @ 0x4000
  29987. 800cf78: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  29988. 800cf7c: 2300 movs r3, #0
  29989. 800cf7e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  29990. 800cf82: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  29991. 800cf86: 460b mov r3, r1
  29992. 800cf88: 4313 orrs r3, r2
  29993. 800cf8a: d055 beq.n 800d038 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  29994. {
  29995. switch (PeriphClkInit->Spi6ClockSelection)
  29996. 800cf8c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29997. 800cf90: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  29998. 800cf94: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29999. 800cf98: d033 beq.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  30000. 800cf9a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30001. 800cf9e: d82c bhi.n 800cffa <HAL_RCCEx_PeriphCLKConfig+0x662>
  30002. 800cfa0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30003. 800cfa4: d02f beq.n 800d006 <HAL_RCCEx_PeriphCLKConfig+0x66e>
  30004. 800cfa6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30005. 800cfaa: d826 bhi.n 800cffa <HAL_RCCEx_PeriphCLKConfig+0x662>
  30006. 800cfac: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30007. 800cfb0: d02b beq.n 800d00a <HAL_RCCEx_PeriphCLKConfig+0x672>
  30008. 800cfb2: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30009. 800cfb6: d820 bhi.n 800cffa <HAL_RCCEx_PeriphCLKConfig+0x662>
  30010. 800cfb8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30011. 800cfbc: d012 beq.n 800cfe4 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  30012. 800cfbe: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30013. 800cfc2: d81a bhi.n 800cffa <HAL_RCCEx_PeriphCLKConfig+0x662>
  30014. 800cfc4: 2b00 cmp r3, #0
  30015. 800cfc6: d022 beq.n 800d00e <HAL_RCCEx_PeriphCLKConfig+0x676>
  30016. 800cfc8: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30017. 800cfcc: d115 bne.n 800cffa <HAL_RCCEx_PeriphCLKConfig+0x662>
  30018. /* SPI6 clock source configuration done later after clock selection check */
  30019. break;
  30020. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  30021. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30022. 800cfce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30023. 800cfd2: 3308 adds r3, #8
  30024. 800cfd4: 2101 movs r1, #1
  30025. 800cfd6: 4618 mov r0, r3
  30026. 800cfd8: f002 f85c bl 800f094 <RCCEx_PLL2_Config>
  30027. 800cfdc: 4603 mov r3, r0
  30028. 800cfde: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30029. /* SPI6 clock source configuration done later after clock selection check */
  30030. break;
  30031. 800cfe2: e015 b.n 800d010 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30032. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  30033. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30034. 800cfe4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30035. 800cfe8: 3328 adds r3, #40 @ 0x28
  30036. 800cfea: 2101 movs r1, #1
  30037. 800cfec: 4618 mov r0, r3
  30038. 800cfee: f002 f903 bl 800f1f8 <RCCEx_PLL3_Config>
  30039. 800cff2: 4603 mov r3, r0
  30040. 800cff4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30041. /* SPI6 clock source configuration done later after clock selection check */
  30042. break;
  30043. 800cff8: e00a b.n 800d010 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30044. /* SPI6 clock source configuration done later after clock selection check */
  30045. break;
  30046. #endif
  30047. default:
  30048. ret = HAL_ERROR;
  30049. 800cffa: 2301 movs r3, #1
  30050. 800cffc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30051. break;
  30052. 800d000: e006 b.n 800d010 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30053. break;
  30054. 800d002: bf00 nop
  30055. 800d004: e004 b.n 800d010 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30056. break;
  30057. 800d006: bf00 nop
  30058. 800d008: e002 b.n 800d010 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30059. break;
  30060. 800d00a: bf00 nop
  30061. 800d00c: e000 b.n 800d010 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30062. break;
  30063. 800d00e: bf00 nop
  30064. }
  30065. if (ret == HAL_OK)
  30066. 800d010: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30067. 800d014: 2b00 cmp r3, #0
  30068. 800d016: d10b bne.n 800d030 <HAL_RCCEx_PeriphCLKConfig+0x698>
  30069. {
  30070. /* Set the source of SPI6 clock*/
  30071. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  30072. 800d018: 4ba3 ldr r3, [pc, #652] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30073. 800d01a: 6d9b ldr r3, [r3, #88] @ 0x58
  30074. 800d01c: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30075. 800d020: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30076. 800d024: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  30077. 800d028: 4a9f ldr r2, [pc, #636] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30078. 800d02a: 430b orrs r3, r1
  30079. 800d02c: 6593 str r3, [r2, #88] @ 0x58
  30080. 800d02e: e003 b.n 800d038 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  30081. }
  30082. else
  30083. {
  30084. /* set overall return value */
  30085. status = ret;
  30086. 800d030: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30087. 800d034: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30088. }
  30089. #endif /*DSI*/
  30090. #if defined(FDCAN1) || defined(FDCAN2)
  30091. /*---------------------------- FDCAN configuration -------------------------------*/
  30092. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  30093. 800d038: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30094. 800d03c: e9d3 2300 ldrd r2, r3, [r3]
  30095. 800d040: f402 4300 and.w r3, r2, #32768 @ 0x8000
  30096. 800d044: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  30097. 800d048: 2300 movs r3, #0
  30098. 800d04a: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  30099. 800d04e: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  30100. 800d052: 460b mov r3, r1
  30101. 800d054: 4313 orrs r3, r2
  30102. 800d056: d037 beq.n 800d0c8 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30103. {
  30104. switch (PeriphClkInit->FdcanClockSelection)
  30105. 800d058: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30106. 800d05c: 6f1b ldr r3, [r3, #112] @ 0x70
  30107. 800d05e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30108. 800d062: d00e beq.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  30109. 800d064: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30110. 800d068: d816 bhi.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30111. 800d06a: 2b00 cmp r3, #0
  30112. 800d06c: d018 beq.n 800d0a0 <HAL_RCCEx_PeriphCLKConfig+0x708>
  30113. 800d06e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30114. 800d072: d111 bne.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30115. {
  30116. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  30117. /* Enable FDCAN Clock output generated form System PLL . */
  30118. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30119. 800d074: 4b8c ldr r3, [pc, #560] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30120. 800d076: 6adb ldr r3, [r3, #44] @ 0x2c
  30121. 800d078: 4a8b ldr r2, [pc, #556] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30122. 800d07a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30123. 800d07e: 62d3 str r3, [r2, #44] @ 0x2c
  30124. /* FDCAN clock source configuration done later after clock selection check */
  30125. break;
  30126. 800d080: e00f b.n 800d0a2 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30127. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  30128. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30129. 800d082: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30130. 800d086: 3308 adds r3, #8
  30131. 800d088: 2101 movs r1, #1
  30132. 800d08a: 4618 mov r0, r3
  30133. 800d08c: f002 f802 bl 800f094 <RCCEx_PLL2_Config>
  30134. 800d090: 4603 mov r3, r0
  30135. 800d092: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30136. /* FDCAN clock source configuration done later after clock selection check */
  30137. break;
  30138. 800d096: e004 b.n 800d0a2 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30139. /* HSE is used as clock source for FDCAN*/
  30140. /* FDCAN clock source configuration done later after clock selection check */
  30141. break;
  30142. default:
  30143. ret = HAL_ERROR;
  30144. 800d098: 2301 movs r3, #1
  30145. 800d09a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30146. break;
  30147. 800d09e: e000 b.n 800d0a2 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30148. break;
  30149. 800d0a0: bf00 nop
  30150. }
  30151. if (ret == HAL_OK)
  30152. 800d0a2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30153. 800d0a6: 2b00 cmp r3, #0
  30154. 800d0a8: d10a bne.n 800d0c0 <HAL_RCCEx_PeriphCLKConfig+0x728>
  30155. {
  30156. /* Set the source of FDCAN clock*/
  30157. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  30158. 800d0aa: 4b7f ldr r3, [pc, #508] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30159. 800d0ac: 6d1b ldr r3, [r3, #80] @ 0x50
  30160. 800d0ae: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  30161. 800d0b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30162. 800d0b6: 6f1b ldr r3, [r3, #112] @ 0x70
  30163. 800d0b8: 4a7b ldr r2, [pc, #492] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30164. 800d0ba: 430b orrs r3, r1
  30165. 800d0bc: 6513 str r3, [r2, #80] @ 0x50
  30166. 800d0be: e003 b.n 800d0c8 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30167. }
  30168. else
  30169. {
  30170. /* set overall return value */
  30171. status = ret;
  30172. 800d0c0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30173. 800d0c4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30174. }
  30175. }
  30176. #endif /*FDCAN1 || FDCAN2*/
  30177. /*---------------------------- FMC configuration -------------------------------*/
  30178. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  30179. 800d0c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30180. 800d0cc: e9d3 2300 ldrd r2, r3, [r3]
  30181. 800d0d0: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  30182. 800d0d4: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  30183. 800d0d8: 2300 movs r3, #0
  30184. 800d0da: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  30185. 800d0de: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  30186. 800d0e2: 460b mov r3, r1
  30187. 800d0e4: 4313 orrs r3, r2
  30188. 800d0e6: d039 beq.n 800d15c <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30189. {
  30190. switch (PeriphClkInit->FmcClockSelection)
  30191. 800d0e8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30192. 800d0ec: 6c9b ldr r3, [r3, #72] @ 0x48
  30193. 800d0ee: 2b03 cmp r3, #3
  30194. 800d0f0: d81c bhi.n 800d12c <HAL_RCCEx_PeriphCLKConfig+0x794>
  30195. 800d0f2: a201 add r2, pc, #4 @ (adr r2, 800d0f8 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  30196. 800d0f4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30197. 800d0f8: 0800d135 .word 0x0800d135
  30198. 800d0fc: 0800d109 .word 0x0800d109
  30199. 800d100: 0800d117 .word 0x0800d117
  30200. 800d104: 0800d135 .word 0x0800d135
  30201. {
  30202. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  30203. /* Enable FMC Clock output generated form System PLL . */
  30204. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30205. 800d108: 4b67 ldr r3, [pc, #412] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30206. 800d10a: 6adb ldr r3, [r3, #44] @ 0x2c
  30207. 800d10c: 4a66 ldr r2, [pc, #408] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30208. 800d10e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30209. 800d112: 62d3 str r3, [r2, #44] @ 0x2c
  30210. /* FMC clock source configuration done later after clock selection check */
  30211. break;
  30212. 800d114: e00f b.n 800d136 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30213. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  30214. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30215. 800d116: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30216. 800d11a: 3308 adds r3, #8
  30217. 800d11c: 2102 movs r1, #2
  30218. 800d11e: 4618 mov r0, r3
  30219. 800d120: f001 ffb8 bl 800f094 <RCCEx_PLL2_Config>
  30220. 800d124: 4603 mov r3, r0
  30221. 800d126: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30222. /* FMC clock source configuration done later after clock selection check */
  30223. break;
  30224. 800d12a: e004 b.n 800d136 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30225. case RCC_FMCCLKSOURCE_HCLK:
  30226. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  30227. break;
  30228. default:
  30229. ret = HAL_ERROR;
  30230. 800d12c: 2301 movs r3, #1
  30231. 800d12e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30232. break;
  30233. 800d132: e000 b.n 800d136 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30234. break;
  30235. 800d134: bf00 nop
  30236. }
  30237. if (ret == HAL_OK)
  30238. 800d136: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30239. 800d13a: 2b00 cmp r3, #0
  30240. 800d13c: d10a bne.n 800d154 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  30241. {
  30242. /* Set the source of FMC clock*/
  30243. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  30244. 800d13e: 4b5a ldr r3, [pc, #360] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30245. 800d140: 6cdb ldr r3, [r3, #76] @ 0x4c
  30246. 800d142: f023 0103 bic.w r1, r3, #3
  30247. 800d146: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30248. 800d14a: 6c9b ldr r3, [r3, #72] @ 0x48
  30249. 800d14c: 4a56 ldr r2, [pc, #344] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30250. 800d14e: 430b orrs r3, r1
  30251. 800d150: 64d3 str r3, [r2, #76] @ 0x4c
  30252. 800d152: e003 b.n 800d15c <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30253. }
  30254. else
  30255. {
  30256. /* set overall return value */
  30257. status = ret;
  30258. 800d154: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30259. 800d158: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30260. }
  30261. }
  30262. /*---------------------------- RTC configuration -------------------------------*/
  30263. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  30264. 800d15c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30265. 800d160: e9d3 2300 ldrd r2, r3, [r3]
  30266. 800d164: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  30267. 800d168: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  30268. 800d16c: 2300 movs r3, #0
  30269. 800d16e: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  30270. 800d172: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  30271. 800d176: 460b mov r3, r1
  30272. 800d178: 4313 orrs r3, r2
  30273. 800d17a: f000 809f beq.w 800d2bc <HAL_RCCEx_PeriphCLKConfig+0x924>
  30274. {
  30275. /* check for RTC Parameters used to output RTCCLK */
  30276. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  30277. /* Enable write access to Backup domain */
  30278. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  30279. 800d17e: 4b4b ldr r3, [pc, #300] @ (800d2ac <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30280. 800d180: 681b ldr r3, [r3, #0]
  30281. 800d182: 4a4a ldr r2, [pc, #296] @ (800d2ac <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30282. 800d184: f443 7380 orr.w r3, r3, #256 @ 0x100
  30283. 800d188: 6013 str r3, [r2, #0]
  30284. /* Wait for Backup domain Write protection disable */
  30285. tickstart = HAL_GetTick();
  30286. 800d18a: f7f8 fe47 bl 8005e1c <HAL_GetTick>
  30287. 800d18e: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30288. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30289. 800d192: e00b b.n 800d1ac <HAL_RCCEx_PeriphCLKConfig+0x814>
  30290. {
  30291. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  30292. 800d194: f7f8 fe42 bl 8005e1c <HAL_GetTick>
  30293. 800d198: 4602 mov r2, r0
  30294. 800d19a: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30295. 800d19e: 1ad3 subs r3, r2, r3
  30296. 800d1a0: 2b64 cmp r3, #100 @ 0x64
  30297. 800d1a2: d903 bls.n 800d1ac <HAL_RCCEx_PeriphCLKConfig+0x814>
  30298. {
  30299. ret = HAL_TIMEOUT;
  30300. 800d1a4: 2303 movs r3, #3
  30301. 800d1a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30302. break;
  30303. 800d1aa: e005 b.n 800d1b8 <HAL_RCCEx_PeriphCLKConfig+0x820>
  30304. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30305. 800d1ac: 4b3f ldr r3, [pc, #252] @ (800d2ac <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30306. 800d1ae: 681b ldr r3, [r3, #0]
  30307. 800d1b0: f403 7380 and.w r3, r3, #256 @ 0x100
  30308. 800d1b4: 2b00 cmp r3, #0
  30309. 800d1b6: d0ed beq.n 800d194 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  30310. }
  30311. }
  30312. if (ret == HAL_OK)
  30313. 800d1b8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30314. 800d1bc: 2b00 cmp r3, #0
  30315. 800d1be: d179 bne.n 800d2b4 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  30316. {
  30317. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  30318. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  30319. 800d1c0: 4b39 ldr r3, [pc, #228] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30320. 800d1c2: 6f1a ldr r2, [r3, #112] @ 0x70
  30321. 800d1c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30322. 800d1c8: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30323. 800d1cc: 4053 eors r3, r2
  30324. 800d1ce: f403 7340 and.w r3, r3, #768 @ 0x300
  30325. 800d1d2: 2b00 cmp r3, #0
  30326. 800d1d4: d015 beq.n 800d202 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  30327. {
  30328. /* Store the content of BDCR register before the reset of Backup Domain */
  30329. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  30330. 800d1d6: 4b34 ldr r3, [pc, #208] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30331. 800d1d8: 6f1b ldr r3, [r3, #112] @ 0x70
  30332. 800d1da: f423 7340 bic.w r3, r3, #768 @ 0x300
  30333. 800d1de: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  30334. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  30335. __HAL_RCC_BACKUPRESET_FORCE();
  30336. 800d1e2: 4b31 ldr r3, [pc, #196] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30337. 800d1e4: 6f1b ldr r3, [r3, #112] @ 0x70
  30338. 800d1e6: 4a30 ldr r2, [pc, #192] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30339. 800d1e8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  30340. 800d1ec: 6713 str r3, [r2, #112] @ 0x70
  30341. __HAL_RCC_BACKUPRESET_RELEASE();
  30342. 800d1ee: 4b2e ldr r3, [pc, #184] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30343. 800d1f0: 6f1b ldr r3, [r3, #112] @ 0x70
  30344. 800d1f2: 4a2d ldr r2, [pc, #180] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30345. 800d1f4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  30346. 800d1f8: 6713 str r3, [r2, #112] @ 0x70
  30347. /* Restore the Content of BDCR register */
  30348. RCC->BDCR = tmpreg;
  30349. 800d1fa: 4a2b ldr r2, [pc, #172] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30350. 800d1fc: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  30351. 800d200: 6713 str r3, [r2, #112] @ 0x70
  30352. }
  30353. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  30354. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  30355. 800d202: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30356. 800d206: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30357. 800d20a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30358. 800d20e: d118 bne.n 800d242 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30359. {
  30360. /* Get Start Tick*/
  30361. tickstart = HAL_GetTick();
  30362. 800d210: f7f8 fe04 bl 8005e1c <HAL_GetTick>
  30363. 800d214: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30364. /* Wait till LSE is ready */
  30365. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30366. 800d218: e00d b.n 800d236 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30367. {
  30368. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  30369. 800d21a: f7f8 fdff bl 8005e1c <HAL_GetTick>
  30370. 800d21e: 4602 mov r2, r0
  30371. 800d220: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30372. 800d224: 1ad2 subs r2, r2, r3
  30373. 800d226: f241 3388 movw r3, #5000 @ 0x1388
  30374. 800d22a: 429a cmp r2, r3
  30375. 800d22c: d903 bls.n 800d236 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30376. {
  30377. ret = HAL_TIMEOUT;
  30378. 800d22e: 2303 movs r3, #3
  30379. 800d230: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30380. break;
  30381. 800d234: e005 b.n 800d242 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30382. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30383. 800d236: 4b1c ldr r3, [pc, #112] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30384. 800d238: 6f1b ldr r3, [r3, #112] @ 0x70
  30385. 800d23a: f003 0302 and.w r3, r3, #2
  30386. 800d23e: 2b00 cmp r3, #0
  30387. 800d240: d0eb beq.n 800d21a <HAL_RCCEx_PeriphCLKConfig+0x882>
  30388. }
  30389. }
  30390. }
  30391. if (ret == HAL_OK)
  30392. 800d242: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30393. 800d246: 2b00 cmp r3, #0
  30394. 800d248: d129 bne.n 800d29e <HAL_RCCEx_PeriphCLKConfig+0x906>
  30395. {
  30396. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  30397. 800d24a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30398. 800d24e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30399. 800d252: f403 7340 and.w r3, r3, #768 @ 0x300
  30400. 800d256: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30401. 800d25a: d10e bne.n 800d27a <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  30402. 800d25c: 4b12 ldr r3, [pc, #72] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30403. 800d25e: 691b ldr r3, [r3, #16]
  30404. 800d260: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  30405. 800d264: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30406. 800d268: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30407. 800d26c: 091a lsrs r2, r3, #4
  30408. 800d26e: 4b10 ldr r3, [pc, #64] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  30409. 800d270: 4013 ands r3, r2
  30410. 800d272: 4a0d ldr r2, [pc, #52] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30411. 800d274: 430b orrs r3, r1
  30412. 800d276: 6113 str r3, [r2, #16]
  30413. 800d278: e005 b.n 800d286 <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  30414. 800d27a: 4b0b ldr r3, [pc, #44] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30415. 800d27c: 691b ldr r3, [r3, #16]
  30416. 800d27e: 4a0a ldr r2, [pc, #40] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30417. 800d280: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  30418. 800d284: 6113 str r3, [r2, #16]
  30419. 800d286: 4b08 ldr r3, [pc, #32] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30420. 800d288: 6f19 ldr r1, [r3, #112] @ 0x70
  30421. 800d28a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30422. 800d28e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30423. 800d292: f3c3 030b ubfx r3, r3, #0, #12
  30424. 800d296: 4a04 ldr r2, [pc, #16] @ (800d2a8 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30425. 800d298: 430b orrs r3, r1
  30426. 800d29a: 6713 str r3, [r2, #112] @ 0x70
  30427. 800d29c: e00e b.n 800d2bc <HAL_RCCEx_PeriphCLKConfig+0x924>
  30428. }
  30429. else
  30430. {
  30431. /* set overall return value */
  30432. status = ret;
  30433. 800d29e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30434. 800d2a2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30435. 800d2a6: e009 b.n 800d2bc <HAL_RCCEx_PeriphCLKConfig+0x924>
  30436. 800d2a8: 58024400 .word 0x58024400
  30437. 800d2ac: 58024800 .word 0x58024800
  30438. 800d2b0: 00ffffcf .word 0x00ffffcf
  30439. }
  30440. }
  30441. else
  30442. {
  30443. /* set overall return value */
  30444. status = ret;
  30445. 800d2b4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30446. 800d2b8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30447. }
  30448. }
  30449. /*-------------------------- USART1/6 configuration --------------------------*/
  30450. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  30451. 800d2bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30452. 800d2c0: e9d3 2300 ldrd r2, r3, [r3]
  30453. 800d2c4: f002 0301 and.w r3, r2, #1
  30454. 800d2c8: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  30455. 800d2cc: 2300 movs r3, #0
  30456. 800d2ce: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  30457. 800d2d2: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  30458. 800d2d6: 460b mov r3, r1
  30459. 800d2d8: 4313 orrs r3, r2
  30460. 800d2da: f000 8089 beq.w 800d3f0 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30461. {
  30462. switch (PeriphClkInit->Usart16ClockSelection)
  30463. 800d2de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30464. 800d2e2: 6fdb ldr r3, [r3, #124] @ 0x7c
  30465. 800d2e4: 2b28 cmp r3, #40 @ 0x28
  30466. 800d2e6: d86b bhi.n 800d3c0 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  30467. 800d2e8: a201 add r2, pc, #4 @ (adr r2, 800d2f0 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  30468. 800d2ea: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30469. 800d2ee: bf00 nop
  30470. 800d2f0: 0800d3c9 .word 0x0800d3c9
  30471. 800d2f4: 0800d3c1 .word 0x0800d3c1
  30472. 800d2f8: 0800d3c1 .word 0x0800d3c1
  30473. 800d2fc: 0800d3c1 .word 0x0800d3c1
  30474. 800d300: 0800d3c1 .word 0x0800d3c1
  30475. 800d304: 0800d3c1 .word 0x0800d3c1
  30476. 800d308: 0800d3c1 .word 0x0800d3c1
  30477. 800d30c: 0800d3c1 .word 0x0800d3c1
  30478. 800d310: 0800d395 .word 0x0800d395
  30479. 800d314: 0800d3c1 .word 0x0800d3c1
  30480. 800d318: 0800d3c1 .word 0x0800d3c1
  30481. 800d31c: 0800d3c1 .word 0x0800d3c1
  30482. 800d320: 0800d3c1 .word 0x0800d3c1
  30483. 800d324: 0800d3c1 .word 0x0800d3c1
  30484. 800d328: 0800d3c1 .word 0x0800d3c1
  30485. 800d32c: 0800d3c1 .word 0x0800d3c1
  30486. 800d330: 0800d3ab .word 0x0800d3ab
  30487. 800d334: 0800d3c1 .word 0x0800d3c1
  30488. 800d338: 0800d3c1 .word 0x0800d3c1
  30489. 800d33c: 0800d3c1 .word 0x0800d3c1
  30490. 800d340: 0800d3c1 .word 0x0800d3c1
  30491. 800d344: 0800d3c1 .word 0x0800d3c1
  30492. 800d348: 0800d3c1 .word 0x0800d3c1
  30493. 800d34c: 0800d3c1 .word 0x0800d3c1
  30494. 800d350: 0800d3c9 .word 0x0800d3c9
  30495. 800d354: 0800d3c1 .word 0x0800d3c1
  30496. 800d358: 0800d3c1 .word 0x0800d3c1
  30497. 800d35c: 0800d3c1 .word 0x0800d3c1
  30498. 800d360: 0800d3c1 .word 0x0800d3c1
  30499. 800d364: 0800d3c1 .word 0x0800d3c1
  30500. 800d368: 0800d3c1 .word 0x0800d3c1
  30501. 800d36c: 0800d3c1 .word 0x0800d3c1
  30502. 800d370: 0800d3c9 .word 0x0800d3c9
  30503. 800d374: 0800d3c1 .word 0x0800d3c1
  30504. 800d378: 0800d3c1 .word 0x0800d3c1
  30505. 800d37c: 0800d3c1 .word 0x0800d3c1
  30506. 800d380: 0800d3c1 .word 0x0800d3c1
  30507. 800d384: 0800d3c1 .word 0x0800d3c1
  30508. 800d388: 0800d3c1 .word 0x0800d3c1
  30509. 800d38c: 0800d3c1 .word 0x0800d3c1
  30510. 800d390: 0800d3c9 .word 0x0800d3c9
  30511. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  30512. /* USART1/6 clock source configuration done later after clock selection check */
  30513. break;
  30514. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  30515. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30516. 800d394: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30517. 800d398: 3308 adds r3, #8
  30518. 800d39a: 2101 movs r1, #1
  30519. 800d39c: 4618 mov r0, r3
  30520. 800d39e: f001 fe79 bl 800f094 <RCCEx_PLL2_Config>
  30521. 800d3a2: 4603 mov r3, r0
  30522. 800d3a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30523. /* USART1/6 clock source configuration done later after clock selection check */
  30524. break;
  30525. 800d3a8: e00f b.n 800d3ca <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30526. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  30527. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30528. 800d3aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30529. 800d3ae: 3328 adds r3, #40 @ 0x28
  30530. 800d3b0: 2101 movs r1, #1
  30531. 800d3b2: 4618 mov r0, r3
  30532. 800d3b4: f001 ff20 bl 800f1f8 <RCCEx_PLL3_Config>
  30533. 800d3b8: 4603 mov r3, r0
  30534. 800d3ba: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30535. /* USART1/6 clock source configuration done later after clock selection check */
  30536. break;
  30537. 800d3be: e004 b.n 800d3ca <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30538. /* LSE, oscillator is used as source of USART1/6 clock */
  30539. /* USART1/6 clock source configuration done later after clock selection check */
  30540. break;
  30541. default:
  30542. ret = HAL_ERROR;
  30543. 800d3c0: 2301 movs r3, #1
  30544. 800d3c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30545. break;
  30546. 800d3c6: e000 b.n 800d3ca <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30547. break;
  30548. 800d3c8: bf00 nop
  30549. }
  30550. if (ret == HAL_OK)
  30551. 800d3ca: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30552. 800d3ce: 2b00 cmp r3, #0
  30553. 800d3d0: d10a bne.n 800d3e8 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  30554. {
  30555. /* Set the source of USART1/6 clock */
  30556. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  30557. 800d3d2: 4bbf ldr r3, [pc, #764] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30558. 800d3d4: 6d5b ldr r3, [r3, #84] @ 0x54
  30559. 800d3d6: f023 0138 bic.w r1, r3, #56 @ 0x38
  30560. 800d3da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30561. 800d3de: 6fdb ldr r3, [r3, #124] @ 0x7c
  30562. 800d3e0: 4abb ldr r2, [pc, #748] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30563. 800d3e2: 430b orrs r3, r1
  30564. 800d3e4: 6553 str r3, [r2, #84] @ 0x54
  30565. 800d3e6: e003 b.n 800d3f0 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30566. }
  30567. else
  30568. {
  30569. /* set overall return value */
  30570. status = ret;
  30571. 800d3e8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30572. 800d3ec: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30573. }
  30574. }
  30575. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  30576. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  30577. 800d3f0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30578. 800d3f4: e9d3 2300 ldrd r2, r3, [r3]
  30579. 800d3f8: f002 0302 and.w r3, r2, #2
  30580. 800d3fc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  30581. 800d400: 2300 movs r3, #0
  30582. 800d402: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  30583. 800d406: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  30584. 800d40a: 460b mov r3, r1
  30585. 800d40c: 4313 orrs r3, r2
  30586. 800d40e: d041 beq.n 800d494 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30587. {
  30588. switch (PeriphClkInit->Usart234578ClockSelection)
  30589. 800d410: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30590. 800d414: 6f9b ldr r3, [r3, #120] @ 0x78
  30591. 800d416: 2b05 cmp r3, #5
  30592. 800d418: d824 bhi.n 800d464 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  30593. 800d41a: a201 add r2, pc, #4 @ (adr r2, 800d420 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  30594. 800d41c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30595. 800d420: 0800d46d .word 0x0800d46d
  30596. 800d424: 0800d439 .word 0x0800d439
  30597. 800d428: 0800d44f .word 0x0800d44f
  30598. 800d42c: 0800d46d .word 0x0800d46d
  30599. 800d430: 0800d46d .word 0x0800d46d
  30600. 800d434: 0800d46d .word 0x0800d46d
  30601. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  30602. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30603. break;
  30604. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  30605. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30606. 800d438: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30607. 800d43c: 3308 adds r3, #8
  30608. 800d43e: 2101 movs r1, #1
  30609. 800d440: 4618 mov r0, r3
  30610. 800d442: f001 fe27 bl 800f094 <RCCEx_PLL2_Config>
  30611. 800d446: 4603 mov r3, r0
  30612. 800d448: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30613. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30614. break;
  30615. 800d44c: e00f b.n 800d46e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30616. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  30617. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30618. 800d44e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30619. 800d452: 3328 adds r3, #40 @ 0x28
  30620. 800d454: 2101 movs r1, #1
  30621. 800d456: 4618 mov r0, r3
  30622. 800d458: f001 fece bl 800f1f8 <RCCEx_PLL3_Config>
  30623. 800d45c: 4603 mov r3, r0
  30624. 800d45e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30625. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30626. break;
  30627. 800d462: e004 b.n 800d46e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30628. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  30629. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30630. break;
  30631. default:
  30632. ret = HAL_ERROR;
  30633. 800d464: 2301 movs r3, #1
  30634. 800d466: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30635. break;
  30636. 800d46a: e000 b.n 800d46e <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30637. break;
  30638. 800d46c: bf00 nop
  30639. }
  30640. if (ret == HAL_OK)
  30641. 800d46e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30642. 800d472: 2b00 cmp r3, #0
  30643. 800d474: d10a bne.n 800d48c <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  30644. {
  30645. /* Set the source of USART2/3/4/5/7/8 clock */
  30646. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  30647. 800d476: 4b96 ldr r3, [pc, #600] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30648. 800d478: 6d5b ldr r3, [r3, #84] @ 0x54
  30649. 800d47a: f023 0107 bic.w r1, r3, #7
  30650. 800d47e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30651. 800d482: 6f9b ldr r3, [r3, #120] @ 0x78
  30652. 800d484: 4a92 ldr r2, [pc, #584] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30653. 800d486: 430b orrs r3, r1
  30654. 800d488: 6553 str r3, [r2, #84] @ 0x54
  30655. 800d48a: e003 b.n 800d494 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30656. }
  30657. else
  30658. {
  30659. /* set overall return value */
  30660. status = ret;
  30661. 800d48c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30662. 800d490: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30663. }
  30664. }
  30665. /*-------------------------- LPUART1 Configuration -------------------------*/
  30666. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  30667. 800d494: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30668. 800d498: e9d3 2300 ldrd r2, r3, [r3]
  30669. 800d49c: f002 0304 and.w r3, r2, #4
  30670. 800d4a0: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  30671. 800d4a4: 2300 movs r3, #0
  30672. 800d4a6: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  30673. 800d4aa: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  30674. 800d4ae: 460b mov r3, r1
  30675. 800d4b0: 4313 orrs r3, r2
  30676. 800d4b2: d044 beq.n 800d53e <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30677. {
  30678. switch (PeriphClkInit->Lpuart1ClockSelection)
  30679. 800d4b4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30680. 800d4b8: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30681. 800d4bc: 2b05 cmp r3, #5
  30682. 800d4be: d825 bhi.n 800d50c <HAL_RCCEx_PeriphCLKConfig+0xb74>
  30683. 800d4c0: a201 add r2, pc, #4 @ (adr r2, 800d4c8 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  30684. 800d4c2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30685. 800d4c6: bf00 nop
  30686. 800d4c8: 0800d515 .word 0x0800d515
  30687. 800d4cc: 0800d4e1 .word 0x0800d4e1
  30688. 800d4d0: 0800d4f7 .word 0x0800d4f7
  30689. 800d4d4: 0800d515 .word 0x0800d515
  30690. 800d4d8: 0800d515 .word 0x0800d515
  30691. 800d4dc: 0800d515 .word 0x0800d515
  30692. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  30693. /* LPUART1 clock source configuration done later after clock selection check */
  30694. break;
  30695. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  30696. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30697. 800d4e0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30698. 800d4e4: 3308 adds r3, #8
  30699. 800d4e6: 2101 movs r1, #1
  30700. 800d4e8: 4618 mov r0, r3
  30701. 800d4ea: f001 fdd3 bl 800f094 <RCCEx_PLL2_Config>
  30702. 800d4ee: 4603 mov r3, r0
  30703. 800d4f0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30704. /* LPUART1 clock source configuration done later after clock selection check */
  30705. break;
  30706. 800d4f4: e00f b.n 800d516 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30707. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  30708. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30709. 800d4f6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30710. 800d4fa: 3328 adds r3, #40 @ 0x28
  30711. 800d4fc: 2101 movs r1, #1
  30712. 800d4fe: 4618 mov r0, r3
  30713. 800d500: f001 fe7a bl 800f1f8 <RCCEx_PLL3_Config>
  30714. 800d504: 4603 mov r3, r0
  30715. 800d506: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30716. /* LPUART1 clock source configuration done later after clock selection check */
  30717. break;
  30718. 800d50a: e004 b.n 800d516 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30719. /* LSE, oscillator is used as source of LPUART1 clock */
  30720. /* LPUART1 clock source configuration done later after clock selection check */
  30721. break;
  30722. default:
  30723. ret = HAL_ERROR;
  30724. 800d50c: 2301 movs r3, #1
  30725. 800d50e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30726. break;
  30727. 800d512: e000 b.n 800d516 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30728. break;
  30729. 800d514: bf00 nop
  30730. }
  30731. if (ret == HAL_OK)
  30732. 800d516: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30733. 800d51a: 2b00 cmp r3, #0
  30734. 800d51c: d10b bne.n 800d536 <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  30735. {
  30736. /* Set the source of LPUART1 clock */
  30737. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  30738. 800d51e: 4b6c ldr r3, [pc, #432] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30739. 800d520: 6d9b ldr r3, [r3, #88] @ 0x58
  30740. 800d522: f023 0107 bic.w r1, r3, #7
  30741. 800d526: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30742. 800d52a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30743. 800d52e: 4a68 ldr r2, [pc, #416] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30744. 800d530: 430b orrs r3, r1
  30745. 800d532: 6593 str r3, [r2, #88] @ 0x58
  30746. 800d534: e003 b.n 800d53e <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30747. }
  30748. else
  30749. {
  30750. /* set overall return value */
  30751. status = ret;
  30752. 800d536: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30753. 800d53a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30754. }
  30755. }
  30756. /*---------------------------- LPTIM1 configuration -------------------------------*/
  30757. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  30758. 800d53e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30759. 800d542: e9d3 2300 ldrd r2, r3, [r3]
  30760. 800d546: f002 0320 and.w r3, r2, #32
  30761. 800d54a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  30762. 800d54e: 2300 movs r3, #0
  30763. 800d550: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  30764. 800d554: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  30765. 800d558: 460b mov r3, r1
  30766. 800d55a: 4313 orrs r3, r2
  30767. 800d55c: d055 beq.n 800d60a <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30768. {
  30769. switch (PeriphClkInit->Lptim1ClockSelection)
  30770. 800d55e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30771. 800d562: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30772. 800d566: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30773. 800d56a: d033 beq.n 800d5d4 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  30774. 800d56c: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30775. 800d570: d82c bhi.n 800d5cc <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30776. 800d572: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30777. 800d576: d02f beq.n 800d5d8 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  30778. 800d578: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30779. 800d57c: d826 bhi.n 800d5cc <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30780. 800d57e: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30781. 800d582: d02b beq.n 800d5dc <HAL_RCCEx_PeriphCLKConfig+0xc44>
  30782. 800d584: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30783. 800d588: d820 bhi.n 800d5cc <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30784. 800d58a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30785. 800d58e: d012 beq.n 800d5b6 <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  30786. 800d590: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30787. 800d594: d81a bhi.n 800d5cc <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30788. 800d596: 2b00 cmp r3, #0
  30789. 800d598: d022 beq.n 800d5e0 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  30790. 800d59a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30791. 800d59e: d115 bne.n 800d5cc <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30792. /* LPTIM1 clock source configuration done later after clock selection check */
  30793. break;
  30794. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  30795. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30796. 800d5a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30797. 800d5a4: 3308 adds r3, #8
  30798. 800d5a6: 2100 movs r1, #0
  30799. 800d5a8: 4618 mov r0, r3
  30800. 800d5aa: f001 fd73 bl 800f094 <RCCEx_PLL2_Config>
  30801. 800d5ae: 4603 mov r3, r0
  30802. 800d5b0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30803. /* LPTIM1 clock source configuration done later after clock selection check */
  30804. break;
  30805. 800d5b4: e015 b.n 800d5e2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30806. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  30807. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30808. 800d5b6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30809. 800d5ba: 3328 adds r3, #40 @ 0x28
  30810. 800d5bc: 2102 movs r1, #2
  30811. 800d5be: 4618 mov r0, r3
  30812. 800d5c0: f001 fe1a bl 800f1f8 <RCCEx_PLL3_Config>
  30813. 800d5c4: 4603 mov r3, r0
  30814. 800d5c6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30815. /* LPTIM1 clock source configuration done later after clock selection check */
  30816. break;
  30817. 800d5ca: e00a b.n 800d5e2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30818. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  30819. /* LPTIM1 clock source configuration done later after clock selection check */
  30820. break;
  30821. default:
  30822. ret = HAL_ERROR;
  30823. 800d5cc: 2301 movs r3, #1
  30824. 800d5ce: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30825. break;
  30826. 800d5d2: e006 b.n 800d5e2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30827. break;
  30828. 800d5d4: bf00 nop
  30829. 800d5d6: e004 b.n 800d5e2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30830. break;
  30831. 800d5d8: bf00 nop
  30832. 800d5da: e002 b.n 800d5e2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30833. break;
  30834. 800d5dc: bf00 nop
  30835. 800d5de: e000 b.n 800d5e2 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30836. break;
  30837. 800d5e0: bf00 nop
  30838. }
  30839. if (ret == HAL_OK)
  30840. 800d5e2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30841. 800d5e6: 2b00 cmp r3, #0
  30842. 800d5e8: d10b bne.n 800d602 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  30843. {
  30844. /* Set the source of LPTIM1 clock*/
  30845. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  30846. 800d5ea: 4b39 ldr r3, [pc, #228] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30847. 800d5ec: 6d5b ldr r3, [r3, #84] @ 0x54
  30848. 800d5ee: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30849. 800d5f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30850. 800d5f6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30851. 800d5fa: 4a35 ldr r2, [pc, #212] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30852. 800d5fc: 430b orrs r3, r1
  30853. 800d5fe: 6553 str r3, [r2, #84] @ 0x54
  30854. 800d600: e003 b.n 800d60a <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30855. }
  30856. else
  30857. {
  30858. /* set overall return value */
  30859. status = ret;
  30860. 800d602: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30861. 800d606: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30862. }
  30863. }
  30864. /*---------------------------- LPTIM2 configuration -------------------------------*/
  30865. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  30866. 800d60a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30867. 800d60e: e9d3 2300 ldrd r2, r3, [r3]
  30868. 800d612: f002 0340 and.w r3, r2, #64 @ 0x40
  30869. 800d616: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  30870. 800d61a: 2300 movs r3, #0
  30871. 800d61c: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  30872. 800d620: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  30873. 800d624: 460b mov r3, r1
  30874. 800d626: 4313 orrs r3, r2
  30875. 800d628: d058 beq.n 800d6dc <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30876. {
  30877. switch (PeriphClkInit->Lptim2ClockSelection)
  30878. 800d62a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30879. 800d62e: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30880. 800d632: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30881. 800d636: d033 beq.n 800d6a0 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  30882. 800d638: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30883. 800d63c: d82c bhi.n 800d698 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30884. 800d63e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30885. 800d642: d02f beq.n 800d6a4 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  30886. 800d644: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30887. 800d648: d826 bhi.n 800d698 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30888. 800d64a: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30889. 800d64e: d02b beq.n 800d6a8 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  30890. 800d650: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30891. 800d654: d820 bhi.n 800d698 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30892. 800d656: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30893. 800d65a: d012 beq.n 800d682 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  30894. 800d65c: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30895. 800d660: d81a bhi.n 800d698 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30896. 800d662: 2b00 cmp r3, #0
  30897. 800d664: d022 beq.n 800d6ac <HAL_RCCEx_PeriphCLKConfig+0xd14>
  30898. 800d666: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  30899. 800d66a: d115 bne.n 800d698 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30900. /* LPTIM2 clock source configuration done later after clock selection check */
  30901. break;
  30902. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  30903. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30904. 800d66c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30905. 800d670: 3308 adds r3, #8
  30906. 800d672: 2100 movs r1, #0
  30907. 800d674: 4618 mov r0, r3
  30908. 800d676: f001 fd0d bl 800f094 <RCCEx_PLL2_Config>
  30909. 800d67a: 4603 mov r3, r0
  30910. 800d67c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30911. /* LPTIM2 clock source configuration done later after clock selection check */
  30912. break;
  30913. 800d680: e015 b.n 800d6ae <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30914. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  30915. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30916. 800d682: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30917. 800d686: 3328 adds r3, #40 @ 0x28
  30918. 800d688: 2102 movs r1, #2
  30919. 800d68a: 4618 mov r0, r3
  30920. 800d68c: f001 fdb4 bl 800f1f8 <RCCEx_PLL3_Config>
  30921. 800d690: 4603 mov r3, r0
  30922. 800d692: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30923. /* LPTIM2 clock source configuration done later after clock selection check */
  30924. break;
  30925. 800d696: e00a b.n 800d6ae <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30926. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  30927. /* LPTIM2 clock source configuration done later after clock selection check */
  30928. break;
  30929. default:
  30930. ret = HAL_ERROR;
  30931. 800d698: 2301 movs r3, #1
  30932. 800d69a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30933. break;
  30934. 800d69e: e006 b.n 800d6ae <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30935. break;
  30936. 800d6a0: bf00 nop
  30937. 800d6a2: e004 b.n 800d6ae <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30938. break;
  30939. 800d6a4: bf00 nop
  30940. 800d6a6: e002 b.n 800d6ae <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30941. break;
  30942. 800d6a8: bf00 nop
  30943. 800d6aa: e000 b.n 800d6ae <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30944. break;
  30945. 800d6ac: bf00 nop
  30946. }
  30947. if (ret == HAL_OK)
  30948. 800d6ae: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30949. 800d6b2: 2b00 cmp r3, #0
  30950. 800d6b4: d10e bne.n 800d6d4 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  30951. {
  30952. /* Set the source of LPTIM2 clock*/
  30953. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  30954. 800d6b6: 4b06 ldr r3, [pc, #24] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30955. 800d6b8: 6d9b ldr r3, [r3, #88] @ 0x58
  30956. 800d6ba: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  30957. 800d6be: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30958. 800d6c2: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30959. 800d6c6: 4a02 ldr r2, [pc, #8] @ (800d6d0 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30960. 800d6c8: 430b orrs r3, r1
  30961. 800d6ca: 6593 str r3, [r2, #88] @ 0x58
  30962. 800d6cc: e006 b.n 800d6dc <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30963. 800d6ce: bf00 nop
  30964. 800d6d0: 58024400 .word 0x58024400
  30965. }
  30966. else
  30967. {
  30968. /* set overall return value */
  30969. status = ret;
  30970. 800d6d4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30971. 800d6d8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30972. }
  30973. }
  30974. /*---------------------------- LPTIM345 configuration -------------------------------*/
  30975. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  30976. 800d6dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30977. 800d6e0: e9d3 2300 ldrd r2, r3, [r3]
  30978. 800d6e4: f002 0380 and.w r3, r2, #128 @ 0x80
  30979. 800d6e8: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  30980. 800d6ec: 2300 movs r3, #0
  30981. 800d6ee: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  30982. 800d6f2: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  30983. 800d6f6: 460b mov r3, r1
  30984. 800d6f8: 4313 orrs r3, r2
  30985. 800d6fa: d055 beq.n 800d7a8 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  30986. {
  30987. switch (PeriphClkInit->Lptim345ClockSelection)
  30988. 800d6fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30989. 800d700: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  30990. 800d704: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30991. 800d708: d033 beq.n 800d772 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  30992. 800d70a: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30993. 800d70e: d82c bhi.n 800d76a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30994. 800d710: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  30995. 800d714: d02f beq.n 800d776 <HAL_RCCEx_PeriphCLKConfig+0xdde>
  30996. 800d716: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  30997. 800d71a: d826 bhi.n 800d76a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30998. 800d71c: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  30999. 800d720: d02b beq.n 800d77a <HAL_RCCEx_PeriphCLKConfig+0xde2>
  31000. 800d722: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  31001. 800d726: d820 bhi.n 800d76a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31002. 800d728: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31003. 800d72c: d012 beq.n 800d754 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  31004. 800d72e: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31005. 800d732: d81a bhi.n 800d76a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31006. 800d734: 2b00 cmp r3, #0
  31007. 800d736: d022 beq.n 800d77e <HAL_RCCEx_PeriphCLKConfig+0xde6>
  31008. 800d738: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31009. 800d73c: d115 bne.n 800d76a <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31010. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  31011. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31012. break;
  31013. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  31014. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31015. 800d73e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31016. 800d742: 3308 adds r3, #8
  31017. 800d744: 2100 movs r1, #0
  31018. 800d746: 4618 mov r0, r3
  31019. 800d748: f001 fca4 bl 800f094 <RCCEx_PLL2_Config>
  31020. 800d74c: 4603 mov r3, r0
  31021. 800d74e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31022. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31023. break;
  31024. 800d752: e015 b.n 800d780 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31025. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  31026. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31027. 800d754: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31028. 800d758: 3328 adds r3, #40 @ 0x28
  31029. 800d75a: 2102 movs r1, #2
  31030. 800d75c: 4618 mov r0, r3
  31031. 800d75e: f001 fd4b bl 800f1f8 <RCCEx_PLL3_Config>
  31032. 800d762: 4603 mov r3, r0
  31033. 800d764: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31034. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31035. break;
  31036. 800d768: e00a b.n 800d780 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31037. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  31038. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31039. break;
  31040. default:
  31041. ret = HAL_ERROR;
  31042. 800d76a: 2301 movs r3, #1
  31043. 800d76c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31044. break;
  31045. 800d770: e006 b.n 800d780 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31046. break;
  31047. 800d772: bf00 nop
  31048. 800d774: e004 b.n 800d780 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31049. break;
  31050. 800d776: bf00 nop
  31051. 800d778: e002 b.n 800d780 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31052. break;
  31053. 800d77a: bf00 nop
  31054. 800d77c: e000 b.n 800d780 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31055. break;
  31056. 800d77e: bf00 nop
  31057. }
  31058. if (ret == HAL_OK)
  31059. 800d780: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31060. 800d784: 2b00 cmp r3, #0
  31061. 800d786: d10b bne.n 800d7a0 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  31062. {
  31063. /* Set the source of LPTIM3/4/5 clock */
  31064. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  31065. 800d788: 4bbb ldr r3, [pc, #748] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31066. 800d78a: 6d9b ldr r3, [r3, #88] @ 0x58
  31067. 800d78c: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  31068. 800d790: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31069. 800d794: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  31070. 800d798: 4ab7 ldr r2, [pc, #732] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31071. 800d79a: 430b orrs r3, r1
  31072. 800d79c: 6593 str r3, [r2, #88] @ 0x58
  31073. 800d79e: e003 b.n 800d7a8 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  31074. }
  31075. else
  31076. {
  31077. /* set overall return value */
  31078. status = ret;
  31079. 800d7a0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31080. 800d7a4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31081. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  31082. }
  31083. #else
  31084. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  31085. 800d7a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31086. 800d7ac: e9d3 2300 ldrd r2, r3, [r3]
  31087. 800d7b0: f002 0308 and.w r3, r2, #8
  31088. 800d7b4: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  31089. 800d7b8: 2300 movs r3, #0
  31090. 800d7ba: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  31091. 800d7be: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  31092. 800d7c2: 460b mov r3, r1
  31093. 800d7c4: 4313 orrs r3, r2
  31094. 800d7c6: d01e beq.n 800d806 <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  31095. {
  31096. /* Check the parameters */
  31097. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  31098. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  31099. 800d7c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31100. 800d7cc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31101. 800d7d0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31102. 800d7d4: d10c bne.n 800d7f0 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31103. {
  31104. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31105. 800d7d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31106. 800d7da: 3328 adds r3, #40 @ 0x28
  31107. 800d7dc: 2102 movs r1, #2
  31108. 800d7de: 4618 mov r0, r3
  31109. 800d7e0: f001 fd0a bl 800f1f8 <RCCEx_PLL3_Config>
  31110. 800d7e4: 4603 mov r3, r0
  31111. 800d7e6: 2b00 cmp r3, #0
  31112. 800d7e8: d002 beq.n 800d7f0 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31113. {
  31114. status = HAL_ERROR;
  31115. 800d7ea: 2301 movs r3, #1
  31116. 800d7ec: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31117. }
  31118. }
  31119. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  31120. 800d7f0: 4ba1 ldr r3, [pc, #644] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31121. 800d7f2: 6d5b ldr r3, [r3, #84] @ 0x54
  31122. 800d7f4: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  31123. 800d7f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31124. 800d7fc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31125. 800d800: 4a9d ldr r2, [pc, #628] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31126. 800d802: 430b orrs r3, r1
  31127. 800d804: 6553 str r3, [r2, #84] @ 0x54
  31128. }
  31129. #endif /* I2C5 */
  31130. /*------------------------------ I2C4 Configuration ------------------------*/
  31131. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  31132. 800d806: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31133. 800d80a: e9d3 2300 ldrd r2, r3, [r3]
  31134. 800d80e: f002 0310 and.w r3, r2, #16
  31135. 800d812: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  31136. 800d816: 2300 movs r3, #0
  31137. 800d818: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  31138. 800d81c: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  31139. 800d820: 460b mov r3, r1
  31140. 800d822: 4313 orrs r3, r2
  31141. 800d824: d01e beq.n 800d864 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  31142. {
  31143. /* Check the parameters */
  31144. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  31145. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  31146. 800d826: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31147. 800d82a: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31148. 800d82e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31149. 800d832: d10c bne.n 800d84e <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31150. {
  31151. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31152. 800d834: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31153. 800d838: 3328 adds r3, #40 @ 0x28
  31154. 800d83a: 2102 movs r1, #2
  31155. 800d83c: 4618 mov r0, r3
  31156. 800d83e: f001 fcdb bl 800f1f8 <RCCEx_PLL3_Config>
  31157. 800d842: 4603 mov r3, r0
  31158. 800d844: 2b00 cmp r3, #0
  31159. 800d846: d002 beq.n 800d84e <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31160. {
  31161. status = HAL_ERROR;
  31162. 800d848: 2301 movs r3, #1
  31163. 800d84a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31164. }
  31165. }
  31166. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  31167. 800d84e: 4b8a ldr r3, [pc, #552] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31168. 800d850: 6d9b ldr r3, [r3, #88] @ 0x58
  31169. 800d852: f423 7140 bic.w r1, r3, #768 @ 0x300
  31170. 800d856: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31171. 800d85a: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31172. 800d85e: 4a86 ldr r2, [pc, #536] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31173. 800d860: 430b orrs r3, r1
  31174. 800d862: 6593 str r3, [r2, #88] @ 0x58
  31175. }
  31176. /*---------------------------- ADC configuration -------------------------------*/
  31177. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  31178. 800d864: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31179. 800d868: e9d3 2300 ldrd r2, r3, [r3]
  31180. 800d86c: f402 2300 and.w r3, r2, #524288 @ 0x80000
  31181. 800d870: 67bb str r3, [r7, #120] @ 0x78
  31182. 800d872: 2300 movs r3, #0
  31183. 800d874: 67fb str r3, [r7, #124] @ 0x7c
  31184. 800d876: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  31185. 800d87a: 460b mov r3, r1
  31186. 800d87c: 4313 orrs r3, r2
  31187. 800d87e: d03e beq.n 800d8fe <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31188. {
  31189. switch (PeriphClkInit->AdcClockSelection)
  31190. 800d880: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31191. 800d884: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31192. 800d888: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31193. 800d88c: d022 beq.n 800d8d4 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  31194. 800d88e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31195. 800d892: d81b bhi.n 800d8cc <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31196. 800d894: 2b00 cmp r3, #0
  31197. 800d896: d003 beq.n 800d8a0 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  31198. 800d898: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31199. 800d89c: d00b beq.n 800d8b6 <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  31200. 800d89e: e015 b.n 800d8cc <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31201. {
  31202. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  31203. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31204. 800d8a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31205. 800d8a4: 3308 adds r3, #8
  31206. 800d8a6: 2100 movs r1, #0
  31207. 800d8a8: 4618 mov r0, r3
  31208. 800d8aa: f001 fbf3 bl 800f094 <RCCEx_PLL2_Config>
  31209. 800d8ae: 4603 mov r3, r0
  31210. 800d8b0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31211. /* ADC clock source configuration done later after clock selection check */
  31212. break;
  31213. 800d8b4: e00f b.n 800d8d6 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31214. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  31215. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31216. 800d8b6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31217. 800d8ba: 3328 adds r3, #40 @ 0x28
  31218. 800d8bc: 2102 movs r1, #2
  31219. 800d8be: 4618 mov r0, r3
  31220. 800d8c0: f001 fc9a bl 800f1f8 <RCCEx_PLL3_Config>
  31221. 800d8c4: 4603 mov r3, r0
  31222. 800d8c6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31223. /* ADC clock source configuration done later after clock selection check */
  31224. break;
  31225. 800d8ca: e004 b.n 800d8d6 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31226. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  31227. /* ADC clock source configuration done later after clock selection check */
  31228. break;
  31229. default:
  31230. ret = HAL_ERROR;
  31231. 800d8cc: 2301 movs r3, #1
  31232. 800d8ce: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31233. break;
  31234. 800d8d2: e000 b.n 800d8d6 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31235. break;
  31236. 800d8d4: bf00 nop
  31237. }
  31238. if (ret == HAL_OK)
  31239. 800d8d6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31240. 800d8da: 2b00 cmp r3, #0
  31241. 800d8dc: d10b bne.n 800d8f6 <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  31242. {
  31243. /* Set the source of ADC clock*/
  31244. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  31245. 800d8de: 4b66 ldr r3, [pc, #408] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31246. 800d8e0: 6d9b ldr r3, [r3, #88] @ 0x58
  31247. 800d8e2: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  31248. 800d8e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31249. 800d8ea: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31250. 800d8ee: 4a62 ldr r2, [pc, #392] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31251. 800d8f0: 430b orrs r3, r1
  31252. 800d8f2: 6593 str r3, [r2, #88] @ 0x58
  31253. 800d8f4: e003 b.n 800d8fe <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31254. }
  31255. else
  31256. {
  31257. /* set overall return value */
  31258. status = ret;
  31259. 800d8f6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31260. 800d8fa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31261. }
  31262. }
  31263. /*------------------------------ USB Configuration -------------------------*/
  31264. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  31265. 800d8fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31266. 800d902: e9d3 2300 ldrd r2, r3, [r3]
  31267. 800d906: f402 2380 and.w r3, r2, #262144 @ 0x40000
  31268. 800d90a: 673b str r3, [r7, #112] @ 0x70
  31269. 800d90c: 2300 movs r3, #0
  31270. 800d90e: 677b str r3, [r7, #116] @ 0x74
  31271. 800d910: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  31272. 800d914: 460b mov r3, r1
  31273. 800d916: 4313 orrs r3, r2
  31274. 800d918: d03b beq.n 800d992 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31275. {
  31276. switch (PeriphClkInit->UsbClockSelection)
  31277. 800d91a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31278. 800d91e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31279. 800d922: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31280. 800d926: d01f beq.n 800d968 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  31281. 800d928: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31282. 800d92c: d818 bhi.n 800d960 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31283. 800d92e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  31284. 800d932: d003 beq.n 800d93c <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  31285. 800d934: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  31286. 800d938: d007 beq.n 800d94a <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  31287. 800d93a: e011 b.n 800d960 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31288. {
  31289. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  31290. /* Enable USB Clock output generated form System USB . */
  31291. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31292. 800d93c: 4b4e ldr r3, [pc, #312] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31293. 800d93e: 6adb ldr r3, [r3, #44] @ 0x2c
  31294. 800d940: 4a4d ldr r2, [pc, #308] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31295. 800d942: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31296. 800d946: 62d3 str r3, [r2, #44] @ 0x2c
  31297. /* USB clock source configuration done later after clock selection check */
  31298. break;
  31299. 800d948: e00f b.n 800d96a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31300. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  31301. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31302. 800d94a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31303. 800d94e: 3328 adds r3, #40 @ 0x28
  31304. 800d950: 2101 movs r1, #1
  31305. 800d952: 4618 mov r0, r3
  31306. 800d954: f001 fc50 bl 800f1f8 <RCCEx_PLL3_Config>
  31307. 800d958: 4603 mov r3, r0
  31308. 800d95a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31309. /* USB clock source configuration done later after clock selection check */
  31310. break;
  31311. 800d95e: e004 b.n 800d96a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31312. /* HSI48 oscillator is used as source of USB clock */
  31313. /* USB clock source configuration done later after clock selection check */
  31314. break;
  31315. default:
  31316. ret = HAL_ERROR;
  31317. 800d960: 2301 movs r3, #1
  31318. 800d962: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31319. break;
  31320. 800d966: e000 b.n 800d96a <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31321. break;
  31322. 800d968: bf00 nop
  31323. }
  31324. if (ret == HAL_OK)
  31325. 800d96a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31326. 800d96e: 2b00 cmp r3, #0
  31327. 800d970: d10b bne.n 800d98a <HAL_RCCEx_PeriphCLKConfig+0xff2>
  31328. {
  31329. /* Set the source of USB clock*/
  31330. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  31331. 800d972: 4b41 ldr r3, [pc, #260] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31332. 800d974: 6d5b ldr r3, [r3, #84] @ 0x54
  31333. 800d976: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  31334. 800d97a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31335. 800d97e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31336. 800d982: 4a3d ldr r2, [pc, #244] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31337. 800d984: 430b orrs r3, r1
  31338. 800d986: 6553 str r3, [r2, #84] @ 0x54
  31339. 800d988: e003 b.n 800d992 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31340. }
  31341. else
  31342. {
  31343. /* set overall return value */
  31344. status = ret;
  31345. 800d98a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31346. 800d98e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31347. }
  31348. }
  31349. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  31350. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  31351. 800d992: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31352. 800d996: e9d3 2300 ldrd r2, r3, [r3]
  31353. 800d99a: f402 3380 and.w r3, r2, #65536 @ 0x10000
  31354. 800d99e: 66bb str r3, [r7, #104] @ 0x68
  31355. 800d9a0: 2300 movs r3, #0
  31356. 800d9a2: 66fb str r3, [r7, #108] @ 0x6c
  31357. 800d9a4: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  31358. 800d9a8: 460b mov r3, r1
  31359. 800d9aa: 4313 orrs r3, r2
  31360. 800d9ac: d031 beq.n 800da12 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31361. {
  31362. /* Check the parameters */
  31363. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  31364. switch (PeriphClkInit->SdmmcClockSelection)
  31365. 800d9ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31366. 800d9b2: 6d1b ldr r3, [r3, #80] @ 0x50
  31367. 800d9b4: 2b00 cmp r3, #0
  31368. 800d9b6: d003 beq.n 800d9c0 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  31369. 800d9b8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31370. 800d9bc: d007 beq.n 800d9ce <HAL_RCCEx_PeriphCLKConfig+0x1036>
  31371. 800d9be: e011 b.n 800d9e4 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  31372. {
  31373. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  31374. /* Enable SDMMC Clock output generated form System PLL . */
  31375. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31376. 800d9c0: 4b2d ldr r3, [pc, #180] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31377. 800d9c2: 6adb ldr r3, [r3, #44] @ 0x2c
  31378. 800d9c4: 4a2c ldr r2, [pc, #176] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31379. 800d9c6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31380. 800d9ca: 62d3 str r3, [r2, #44] @ 0x2c
  31381. /* SDMMC clock source configuration done later after clock selection check */
  31382. break;
  31383. 800d9cc: e00e b.n 800d9ec <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31384. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  31385. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31386. 800d9ce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31387. 800d9d2: 3308 adds r3, #8
  31388. 800d9d4: 2102 movs r1, #2
  31389. 800d9d6: 4618 mov r0, r3
  31390. 800d9d8: f001 fb5c bl 800f094 <RCCEx_PLL2_Config>
  31391. 800d9dc: 4603 mov r3, r0
  31392. 800d9de: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31393. /* SDMMC clock source configuration done later after clock selection check */
  31394. break;
  31395. 800d9e2: e003 b.n 800d9ec <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31396. default:
  31397. ret = HAL_ERROR;
  31398. 800d9e4: 2301 movs r3, #1
  31399. 800d9e6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31400. break;
  31401. 800d9ea: bf00 nop
  31402. }
  31403. if (ret == HAL_OK)
  31404. 800d9ec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31405. 800d9f0: 2b00 cmp r3, #0
  31406. 800d9f2: d10a bne.n 800da0a <HAL_RCCEx_PeriphCLKConfig+0x1072>
  31407. {
  31408. /* Set the source of SDMMC clock*/
  31409. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  31410. 800d9f4: 4b20 ldr r3, [pc, #128] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31411. 800d9f6: 6cdb ldr r3, [r3, #76] @ 0x4c
  31412. 800d9f8: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  31413. 800d9fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31414. 800da00: 6d1b ldr r3, [r3, #80] @ 0x50
  31415. 800da02: 4a1d ldr r2, [pc, #116] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31416. 800da04: 430b orrs r3, r1
  31417. 800da06: 64d3 str r3, [r2, #76] @ 0x4c
  31418. 800da08: e003 b.n 800da12 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31419. }
  31420. else
  31421. {
  31422. /* set overall return value */
  31423. status = ret;
  31424. 800da0a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31425. 800da0e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31426. }
  31427. }
  31428. #endif /* LTDC */
  31429. /*------------------------------ RNG Configuration -------------------------*/
  31430. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  31431. 800da12: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31432. 800da16: e9d3 2300 ldrd r2, r3, [r3]
  31433. 800da1a: f402 3300 and.w r3, r2, #131072 @ 0x20000
  31434. 800da1e: 663b str r3, [r7, #96] @ 0x60
  31435. 800da20: 2300 movs r3, #0
  31436. 800da22: 667b str r3, [r7, #100] @ 0x64
  31437. 800da24: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  31438. 800da28: 460b mov r3, r1
  31439. 800da2a: 4313 orrs r3, r2
  31440. 800da2c: d03b beq.n 800daa6 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31441. {
  31442. switch (PeriphClkInit->RngClockSelection)
  31443. 800da2e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31444. 800da32: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31445. 800da36: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31446. 800da3a: d018 beq.n 800da6e <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  31447. 800da3c: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31448. 800da40: d811 bhi.n 800da66 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31449. 800da42: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31450. 800da46: d014 beq.n 800da72 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  31451. 800da48: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31452. 800da4c: d80b bhi.n 800da66 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31453. 800da4e: 2b00 cmp r3, #0
  31454. 800da50: d014 beq.n 800da7c <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  31455. 800da52: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31456. 800da56: d106 bne.n 800da66 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31457. {
  31458. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  31459. /* Enable RNG Clock output generated form System RNG . */
  31460. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31461. 800da58: 4b07 ldr r3, [pc, #28] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31462. 800da5a: 6adb ldr r3, [r3, #44] @ 0x2c
  31463. 800da5c: 4a06 ldr r2, [pc, #24] @ (800da78 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31464. 800da5e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31465. 800da62: 62d3 str r3, [r2, #44] @ 0x2c
  31466. /* RNG clock source configuration done later after clock selection check */
  31467. break;
  31468. 800da64: e00b b.n 800da7e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31469. /* HSI48 oscillator is used as source of RNG clock */
  31470. /* RNG clock source configuration done later after clock selection check */
  31471. break;
  31472. default:
  31473. ret = HAL_ERROR;
  31474. 800da66: 2301 movs r3, #1
  31475. 800da68: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31476. break;
  31477. 800da6c: e007 b.n 800da7e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31478. break;
  31479. 800da6e: bf00 nop
  31480. 800da70: e005 b.n 800da7e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31481. break;
  31482. 800da72: bf00 nop
  31483. 800da74: e003 b.n 800da7e <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31484. 800da76: bf00 nop
  31485. 800da78: 58024400 .word 0x58024400
  31486. break;
  31487. 800da7c: bf00 nop
  31488. }
  31489. if (ret == HAL_OK)
  31490. 800da7e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31491. 800da82: 2b00 cmp r3, #0
  31492. 800da84: d10b bne.n 800da9e <HAL_RCCEx_PeriphCLKConfig+0x1106>
  31493. {
  31494. /* Set the source of RNG clock*/
  31495. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  31496. 800da86: 4bba ldr r3, [pc, #744] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31497. 800da88: 6d5b ldr r3, [r3, #84] @ 0x54
  31498. 800da8a: f423 7140 bic.w r1, r3, #768 @ 0x300
  31499. 800da8e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31500. 800da92: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31501. 800da96: 4ab6 ldr r2, [pc, #728] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31502. 800da98: 430b orrs r3, r1
  31503. 800da9a: 6553 str r3, [r2, #84] @ 0x54
  31504. 800da9c: e003 b.n 800daa6 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31505. }
  31506. else
  31507. {
  31508. /* set overall return value */
  31509. status = ret;
  31510. 800da9e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31511. 800daa2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31512. }
  31513. }
  31514. /*------------------------------ SWPMI1 Configuration ------------------------*/
  31515. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  31516. 800daa6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31517. 800daaa: e9d3 2300 ldrd r2, r3, [r3]
  31518. 800daae: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  31519. 800dab2: 65bb str r3, [r7, #88] @ 0x58
  31520. 800dab4: 2300 movs r3, #0
  31521. 800dab6: 65fb str r3, [r7, #92] @ 0x5c
  31522. 800dab8: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  31523. 800dabc: 460b mov r3, r1
  31524. 800dabe: 4313 orrs r3, r2
  31525. 800dac0: d009 beq.n 800dad6 <HAL_RCCEx_PeriphCLKConfig+0x113e>
  31526. {
  31527. /* Check the parameters */
  31528. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  31529. /* Configure the SWPMI1 interface clock source */
  31530. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  31531. 800dac2: 4bab ldr r3, [pc, #684] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31532. 800dac4: 6d1b ldr r3, [r3, #80] @ 0x50
  31533. 800dac6: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  31534. 800daca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31535. 800dace: 6f5b ldr r3, [r3, #116] @ 0x74
  31536. 800dad0: 4aa7 ldr r2, [pc, #668] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31537. 800dad2: 430b orrs r3, r1
  31538. 800dad4: 6513 str r3, [r2, #80] @ 0x50
  31539. }
  31540. #if defined(HRTIM1)
  31541. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  31542. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  31543. 800dad6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31544. 800dada: e9d3 2300 ldrd r2, r3, [r3]
  31545. 800dade: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  31546. 800dae2: 653b str r3, [r7, #80] @ 0x50
  31547. 800dae4: 2300 movs r3, #0
  31548. 800dae6: 657b str r3, [r7, #84] @ 0x54
  31549. 800dae8: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  31550. 800daec: 460b mov r3, r1
  31551. 800daee: 4313 orrs r3, r2
  31552. 800daf0: d00a beq.n 800db08 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  31553. {
  31554. /* Check the parameters */
  31555. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  31556. /* Configure the HRTIM1 clock source */
  31557. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  31558. 800daf2: 4b9f ldr r3, [pc, #636] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31559. 800daf4: 691b ldr r3, [r3, #16]
  31560. 800daf6: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  31561. 800dafa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31562. 800dafe: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  31563. 800db02: 4a9b ldr r2, [pc, #620] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31564. 800db04: 430b orrs r3, r1
  31565. 800db06: 6113 str r3, [r2, #16]
  31566. }
  31567. #endif /*HRTIM1*/
  31568. /*------------------------------ DFSDM1 Configuration ------------------------*/
  31569. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  31570. 800db08: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31571. 800db0c: e9d3 2300 ldrd r2, r3, [r3]
  31572. 800db10: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  31573. 800db14: 64bb str r3, [r7, #72] @ 0x48
  31574. 800db16: 2300 movs r3, #0
  31575. 800db18: 64fb str r3, [r7, #76] @ 0x4c
  31576. 800db1a: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  31577. 800db1e: 460b mov r3, r1
  31578. 800db20: 4313 orrs r3, r2
  31579. 800db22: d009 beq.n 800db38 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  31580. {
  31581. /* Check the parameters */
  31582. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  31583. /* Configure the DFSDM1 interface clock source */
  31584. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  31585. 800db24: 4b92 ldr r3, [pc, #584] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31586. 800db26: 6d1b ldr r3, [r3, #80] @ 0x50
  31587. 800db28: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  31588. 800db2c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31589. 800db30: 6edb ldr r3, [r3, #108] @ 0x6c
  31590. 800db32: 4a8f ldr r2, [pc, #572] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31591. 800db34: 430b orrs r3, r1
  31592. 800db36: 6513 str r3, [r2, #80] @ 0x50
  31593. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  31594. }
  31595. #endif /* DFSDM2 */
  31596. /*------------------------------------ TIM configuration --------------------------------------*/
  31597. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  31598. 800db38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31599. 800db3c: e9d3 2300 ldrd r2, r3, [r3]
  31600. 800db40: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  31601. 800db44: 643b str r3, [r7, #64] @ 0x40
  31602. 800db46: 2300 movs r3, #0
  31603. 800db48: 647b str r3, [r7, #68] @ 0x44
  31604. 800db4a: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  31605. 800db4e: 460b mov r3, r1
  31606. 800db50: 4313 orrs r3, r2
  31607. 800db52: d00e beq.n 800db72 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  31608. {
  31609. /* Check the parameters */
  31610. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  31611. /* Configure Timer Prescaler */
  31612. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  31613. 800db54: 4b86 ldr r3, [pc, #536] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31614. 800db56: 691b ldr r3, [r3, #16]
  31615. 800db58: 4a85 ldr r2, [pc, #532] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31616. 800db5a: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  31617. 800db5e: 6113 str r3, [r2, #16]
  31618. 800db60: 4b83 ldr r3, [pc, #524] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31619. 800db62: 6919 ldr r1, [r3, #16]
  31620. 800db64: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31621. 800db68: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  31622. 800db6c: 4a80 ldr r2, [pc, #512] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31623. 800db6e: 430b orrs r3, r1
  31624. 800db70: 6113 str r3, [r2, #16]
  31625. }
  31626. /*------------------------------------ CKPER configuration --------------------------------------*/
  31627. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  31628. 800db72: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31629. 800db76: e9d3 2300 ldrd r2, r3, [r3]
  31630. 800db7a: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  31631. 800db7e: 63bb str r3, [r7, #56] @ 0x38
  31632. 800db80: 2300 movs r3, #0
  31633. 800db82: 63fb str r3, [r7, #60] @ 0x3c
  31634. 800db84: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  31635. 800db88: 460b mov r3, r1
  31636. 800db8a: 4313 orrs r3, r2
  31637. 800db8c: d009 beq.n 800dba2 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  31638. {
  31639. /* Check the parameters */
  31640. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  31641. /* Configure the CKPER clock source */
  31642. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  31643. 800db8e: 4b78 ldr r3, [pc, #480] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31644. 800db90: 6cdb ldr r3, [r3, #76] @ 0x4c
  31645. 800db92: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  31646. 800db96: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31647. 800db9a: 6d5b ldr r3, [r3, #84] @ 0x54
  31648. 800db9c: 4a74 ldr r2, [pc, #464] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31649. 800db9e: 430b orrs r3, r1
  31650. 800dba0: 64d3 str r3, [r2, #76] @ 0x4c
  31651. }
  31652. /*------------------------------ CEC Configuration ------------------------*/
  31653. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  31654. 800dba2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31655. 800dba6: e9d3 2300 ldrd r2, r3, [r3]
  31656. 800dbaa: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  31657. 800dbae: 633b str r3, [r7, #48] @ 0x30
  31658. 800dbb0: 2300 movs r3, #0
  31659. 800dbb2: 637b str r3, [r7, #52] @ 0x34
  31660. 800dbb4: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  31661. 800dbb8: 460b mov r3, r1
  31662. 800dbba: 4313 orrs r3, r2
  31663. 800dbbc: d00a beq.n 800dbd4 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  31664. {
  31665. /* Check the parameters */
  31666. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  31667. /* Configure the CEC interface clock source */
  31668. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  31669. 800dbbe: 4b6c ldr r3, [pc, #432] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31670. 800dbc0: 6d5b ldr r3, [r3, #84] @ 0x54
  31671. 800dbc2: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  31672. 800dbc6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31673. 800dbca: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  31674. 800dbce: 4a68 ldr r2, [pc, #416] @ (800dd70 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31675. 800dbd0: 430b orrs r3, r1
  31676. 800dbd2: 6553 str r3, [r2, #84] @ 0x54
  31677. }
  31678. /*---------------------------- PLL2 configuration -------------------------------*/
  31679. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  31680. 800dbd4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31681. 800dbd8: e9d3 2300 ldrd r2, r3, [r3]
  31682. 800dbdc: 2100 movs r1, #0
  31683. 800dbde: 62b9 str r1, [r7, #40] @ 0x28
  31684. 800dbe0: f003 0301 and.w r3, r3, #1
  31685. 800dbe4: 62fb str r3, [r7, #44] @ 0x2c
  31686. 800dbe6: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  31687. 800dbea: 460b mov r3, r1
  31688. 800dbec: 4313 orrs r3, r2
  31689. 800dbee: d011 beq.n 800dc14 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31690. {
  31691. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31692. 800dbf0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31693. 800dbf4: 3308 adds r3, #8
  31694. 800dbf6: 2100 movs r1, #0
  31695. 800dbf8: 4618 mov r0, r3
  31696. 800dbfa: f001 fa4b bl 800f094 <RCCEx_PLL2_Config>
  31697. 800dbfe: 4603 mov r3, r0
  31698. 800dc00: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31699. if (ret == HAL_OK)
  31700. 800dc04: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31701. 800dc08: 2b00 cmp r3, #0
  31702. 800dc0a: d003 beq.n 800dc14 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31703. /*Nothing to do*/
  31704. }
  31705. else
  31706. {
  31707. /* set overall return value */
  31708. status = ret;
  31709. 800dc0c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31710. 800dc10: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31711. }
  31712. }
  31713. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  31714. 800dc14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31715. 800dc18: e9d3 2300 ldrd r2, r3, [r3]
  31716. 800dc1c: 2100 movs r1, #0
  31717. 800dc1e: 6239 str r1, [r7, #32]
  31718. 800dc20: f003 0302 and.w r3, r3, #2
  31719. 800dc24: 627b str r3, [r7, #36] @ 0x24
  31720. 800dc26: e9d7 1208 ldrd r1, r2, [r7, #32]
  31721. 800dc2a: 460b mov r3, r1
  31722. 800dc2c: 4313 orrs r3, r2
  31723. 800dc2e: d011 beq.n 800dc54 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31724. {
  31725. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  31726. 800dc30: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31727. 800dc34: 3308 adds r3, #8
  31728. 800dc36: 2101 movs r1, #1
  31729. 800dc38: 4618 mov r0, r3
  31730. 800dc3a: f001 fa2b bl 800f094 <RCCEx_PLL2_Config>
  31731. 800dc3e: 4603 mov r3, r0
  31732. 800dc40: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31733. if (ret == HAL_OK)
  31734. 800dc44: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31735. 800dc48: 2b00 cmp r3, #0
  31736. 800dc4a: d003 beq.n 800dc54 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31737. /*Nothing to do*/
  31738. }
  31739. else
  31740. {
  31741. /* set overall return value */
  31742. status = ret;
  31743. 800dc4c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31744. 800dc50: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31745. }
  31746. }
  31747. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  31748. 800dc54: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31749. 800dc58: e9d3 2300 ldrd r2, r3, [r3]
  31750. 800dc5c: 2100 movs r1, #0
  31751. 800dc5e: 61b9 str r1, [r7, #24]
  31752. 800dc60: f003 0304 and.w r3, r3, #4
  31753. 800dc64: 61fb str r3, [r7, #28]
  31754. 800dc66: e9d7 1206 ldrd r1, r2, [r7, #24]
  31755. 800dc6a: 460b mov r3, r1
  31756. 800dc6c: 4313 orrs r3, r2
  31757. 800dc6e: d011 beq.n 800dc94 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31758. {
  31759. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31760. 800dc70: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31761. 800dc74: 3308 adds r3, #8
  31762. 800dc76: 2102 movs r1, #2
  31763. 800dc78: 4618 mov r0, r3
  31764. 800dc7a: f001 fa0b bl 800f094 <RCCEx_PLL2_Config>
  31765. 800dc7e: 4603 mov r3, r0
  31766. 800dc80: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31767. if (ret == HAL_OK)
  31768. 800dc84: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31769. 800dc88: 2b00 cmp r3, #0
  31770. 800dc8a: d003 beq.n 800dc94 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31771. /*Nothing to do*/
  31772. }
  31773. else
  31774. {
  31775. /* set overall return value */
  31776. status = ret;
  31777. 800dc8c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31778. 800dc90: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31779. }
  31780. }
  31781. /*---------------------------- PLL3 configuration -------------------------------*/
  31782. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  31783. 800dc94: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31784. 800dc98: e9d3 2300 ldrd r2, r3, [r3]
  31785. 800dc9c: 2100 movs r1, #0
  31786. 800dc9e: 6139 str r1, [r7, #16]
  31787. 800dca0: f003 0308 and.w r3, r3, #8
  31788. 800dca4: 617b str r3, [r7, #20]
  31789. 800dca6: e9d7 1204 ldrd r1, r2, [r7, #16]
  31790. 800dcaa: 460b mov r3, r1
  31791. 800dcac: 4313 orrs r3, r2
  31792. 800dcae: d011 beq.n 800dcd4 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31793. {
  31794. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  31795. 800dcb0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31796. 800dcb4: 3328 adds r3, #40 @ 0x28
  31797. 800dcb6: 2100 movs r1, #0
  31798. 800dcb8: 4618 mov r0, r3
  31799. 800dcba: f001 fa9d bl 800f1f8 <RCCEx_PLL3_Config>
  31800. 800dcbe: 4603 mov r3, r0
  31801. 800dcc0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31802. if (ret == HAL_OK)
  31803. 800dcc4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31804. 800dcc8: 2b00 cmp r3, #0
  31805. 800dcca: d003 beq.n 800dcd4 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31806. /*Nothing to do*/
  31807. }
  31808. else
  31809. {
  31810. /* set overall return value */
  31811. status = ret;
  31812. 800dccc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31813. 800dcd0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31814. }
  31815. }
  31816. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  31817. 800dcd4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31818. 800dcd8: e9d3 2300 ldrd r2, r3, [r3]
  31819. 800dcdc: 2100 movs r1, #0
  31820. 800dcde: 60b9 str r1, [r7, #8]
  31821. 800dce0: f003 0310 and.w r3, r3, #16
  31822. 800dce4: 60fb str r3, [r7, #12]
  31823. 800dce6: e9d7 1202 ldrd r1, r2, [r7, #8]
  31824. 800dcea: 460b mov r3, r1
  31825. 800dcec: 4313 orrs r3, r2
  31826. 800dcee: d011 beq.n 800dd14 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31827. {
  31828. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31829. 800dcf0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31830. 800dcf4: 3328 adds r3, #40 @ 0x28
  31831. 800dcf6: 2101 movs r1, #1
  31832. 800dcf8: 4618 mov r0, r3
  31833. 800dcfa: f001 fa7d bl 800f1f8 <RCCEx_PLL3_Config>
  31834. 800dcfe: 4603 mov r3, r0
  31835. 800dd00: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31836. if (ret == HAL_OK)
  31837. 800dd04: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31838. 800dd08: 2b00 cmp r3, #0
  31839. 800dd0a: d003 beq.n 800dd14 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31840. /*Nothing to do*/
  31841. }
  31842. else
  31843. {
  31844. /* set overall return value */
  31845. status = ret;
  31846. 800dd0c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31847. 800dd10: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31848. }
  31849. }
  31850. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  31851. 800dd14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31852. 800dd18: e9d3 2300 ldrd r2, r3, [r3]
  31853. 800dd1c: 2100 movs r1, #0
  31854. 800dd1e: 6039 str r1, [r7, #0]
  31855. 800dd20: f003 0320 and.w r3, r3, #32
  31856. 800dd24: 607b str r3, [r7, #4]
  31857. 800dd26: e9d7 1200 ldrd r1, r2, [r7]
  31858. 800dd2a: 460b mov r3, r1
  31859. 800dd2c: 4313 orrs r3, r2
  31860. 800dd2e: d011 beq.n 800dd54 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31861. {
  31862. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31863. 800dd30: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31864. 800dd34: 3328 adds r3, #40 @ 0x28
  31865. 800dd36: 2102 movs r1, #2
  31866. 800dd38: 4618 mov r0, r3
  31867. 800dd3a: f001 fa5d bl 800f1f8 <RCCEx_PLL3_Config>
  31868. 800dd3e: 4603 mov r3, r0
  31869. 800dd40: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31870. if (ret == HAL_OK)
  31871. 800dd44: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31872. 800dd48: 2b00 cmp r3, #0
  31873. 800dd4a: d003 beq.n 800dd54 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31874. /*Nothing to do*/
  31875. }
  31876. else
  31877. {
  31878. /* set overall return value */
  31879. status = ret;
  31880. 800dd4c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31881. 800dd50: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31882. }
  31883. }
  31884. if (status == HAL_OK)
  31885. 800dd54: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  31886. 800dd58: 2b00 cmp r3, #0
  31887. 800dd5a: d101 bne.n 800dd60 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  31888. {
  31889. return HAL_OK;
  31890. 800dd5c: 2300 movs r3, #0
  31891. 800dd5e: e000 b.n 800dd62 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  31892. }
  31893. return HAL_ERROR;
  31894. 800dd60: 2301 movs r3, #1
  31895. }
  31896. 800dd62: 4618 mov r0, r3
  31897. 800dd64: f507 7790 add.w r7, r7, #288 @ 0x120
  31898. 800dd68: 46bd mov sp, r7
  31899. 800dd6a: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  31900. 800dd6e: bf00 nop
  31901. 800dd70: 58024400 .word 0x58024400
  31902. 0800dd74 <HAL_RCCEx_GetPeriphCLKFreq>:
  31903. * @retval Frequency in KHz
  31904. *
  31905. * (*) : Available on some STM32H7 lines only.
  31906. */
  31907. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  31908. {
  31909. 800dd74: b580 push {r7, lr}
  31910. 800dd76: b090 sub sp, #64 @ 0x40
  31911. 800dd78: af00 add r7, sp, #0
  31912. 800dd7a: e9c7 0100 strd r0, r1, [r7]
  31913. /* This variable is used to store the SAI and CKP clock source */
  31914. uint32_t saiclocksource;
  31915. uint32_t ckpclocksource;
  31916. uint32_t srcclk;
  31917. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  31918. 800dd7e: e9d7 2300 ldrd r2, r3, [r7]
  31919. 800dd82: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  31920. 800dd86: 430b orrs r3, r1
  31921. 800dd88: f040 8094 bne.w 800deb4 <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  31922. {
  31923. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  31924. 800dd8c: 4b9e ldr r3, [pc, #632] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31925. 800dd8e: 6d1b ldr r3, [r3, #80] @ 0x50
  31926. 800dd90: f003 0307 and.w r3, r3, #7
  31927. 800dd94: 633b str r3, [r7, #48] @ 0x30
  31928. switch (saiclocksource)
  31929. 800dd96: 6b3b ldr r3, [r7, #48] @ 0x30
  31930. 800dd98: 2b04 cmp r3, #4
  31931. 800dd9a: f200 8087 bhi.w 800deac <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  31932. 800dd9e: a201 add r2, pc, #4 @ (adr r2, 800dda4 <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  31933. 800dda0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31934. 800dda4: 0800ddb9 .word 0x0800ddb9
  31935. 800dda8: 0800dde1 .word 0x0800dde1
  31936. 800ddac: 0800de09 .word 0x0800de09
  31937. 800ddb0: 0800dea5 .word 0x0800dea5
  31938. 800ddb4: 0800de31 .word 0x0800de31
  31939. {
  31940. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  31941. {
  31942. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31943. 800ddb8: 4b93 ldr r3, [pc, #588] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31944. 800ddba: 681b ldr r3, [r3, #0]
  31945. 800ddbc: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31946. 800ddc0: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31947. 800ddc4: d108 bne.n 800ddd8 <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  31948. {
  31949. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31950. 800ddc6: f107 0324 add.w r3, r7, #36 @ 0x24
  31951. 800ddca: 4618 mov r0, r3
  31952. 800ddcc: f001 f810 bl 800edf0 <HAL_RCCEx_GetPLL1ClockFreq>
  31953. frequency = pll1_clocks.PLL1_Q_Frequency;
  31954. 800ddd0: 6abb ldr r3, [r7, #40] @ 0x28
  31955. 800ddd2: 63fb str r3, [r7, #60] @ 0x3c
  31956. }
  31957. else
  31958. {
  31959. frequency = 0;
  31960. }
  31961. break;
  31962. 800ddd4: f000 bd45 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31963. frequency = 0;
  31964. 800ddd8: 2300 movs r3, #0
  31965. 800ddda: 63fb str r3, [r7, #60] @ 0x3c
  31966. break;
  31967. 800dddc: f000 bd41 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31968. }
  31969. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  31970. {
  31971. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31972. 800dde0: 4b89 ldr r3, [pc, #548] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31973. 800dde2: 681b ldr r3, [r3, #0]
  31974. 800dde4: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31975. 800dde8: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31976. 800ddec: d108 bne.n 800de00 <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  31977. {
  31978. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31979. 800ddee: f107 0318 add.w r3, r7, #24
  31980. 800ddf2: 4618 mov r0, r3
  31981. 800ddf4: f000 fd54 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  31982. frequency = pll2_clocks.PLL2_P_Frequency;
  31983. 800ddf8: 69bb ldr r3, [r7, #24]
  31984. 800ddfa: 63fb str r3, [r7, #60] @ 0x3c
  31985. }
  31986. else
  31987. {
  31988. frequency = 0;
  31989. }
  31990. break;
  31991. 800ddfc: f000 bd31 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31992. frequency = 0;
  31993. 800de00: 2300 movs r3, #0
  31994. 800de02: 63fb str r3, [r7, #60] @ 0x3c
  31995. break;
  31996. 800de04: f000 bd2d b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31997. }
  31998. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  31999. {
  32000. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32001. 800de08: 4b7f ldr r3, [pc, #508] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32002. 800de0a: 681b ldr r3, [r3, #0]
  32003. 800de0c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32004. 800de10: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32005. 800de14: d108 bne.n 800de28 <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  32006. {
  32007. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32008. 800de16: f107 030c add.w r3, r7, #12
  32009. 800de1a: 4618 mov r0, r3
  32010. 800de1c: f000 fe94 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  32011. frequency = pll3_clocks.PLL3_P_Frequency;
  32012. 800de20: 68fb ldr r3, [r7, #12]
  32013. 800de22: 63fb str r3, [r7, #60] @ 0x3c
  32014. }
  32015. else
  32016. {
  32017. frequency = 0;
  32018. }
  32019. break;
  32020. 800de24: f000 bd1d b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32021. frequency = 0;
  32022. 800de28: 2300 movs r3, #0
  32023. 800de2a: 63fb str r3, [r7, #60] @ 0x3c
  32024. break;
  32025. 800de2c: f000 bd19 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32026. }
  32027. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  32028. {
  32029. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32030. 800de30: 4b75 ldr r3, [pc, #468] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32031. 800de32: 6cdb ldr r3, [r3, #76] @ 0x4c
  32032. 800de34: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32033. 800de38: 637b str r3, [r7, #52] @ 0x34
  32034. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32035. 800de3a: 4b73 ldr r3, [pc, #460] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32036. 800de3c: 681b ldr r3, [r3, #0]
  32037. 800de3e: f003 0304 and.w r3, r3, #4
  32038. 800de42: 2b04 cmp r3, #4
  32039. 800de44: d10c bne.n 800de60 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32040. 800de46: 6b7b ldr r3, [r7, #52] @ 0x34
  32041. 800de48: 2b00 cmp r3, #0
  32042. 800de4a: d109 bne.n 800de60 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32043. {
  32044. /* In Case the CKPER Source is HSI */
  32045. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32046. 800de4c: 4b6e ldr r3, [pc, #440] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32047. 800de4e: 681b ldr r3, [r3, #0]
  32048. 800de50: 08db lsrs r3, r3, #3
  32049. 800de52: f003 0303 and.w r3, r3, #3
  32050. 800de56: 4a6d ldr r2, [pc, #436] @ (800e00c <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32051. 800de58: fa22 f303 lsr.w r3, r2, r3
  32052. 800de5c: 63fb str r3, [r7, #60] @ 0x3c
  32053. 800de5e: e01f b.n 800dea0 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32054. }
  32055. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32056. 800de60: 4b69 ldr r3, [pc, #420] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32057. 800de62: 681b ldr r3, [r3, #0]
  32058. 800de64: f403 7380 and.w r3, r3, #256 @ 0x100
  32059. 800de68: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32060. 800de6c: d106 bne.n 800de7c <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32061. 800de6e: 6b7b ldr r3, [r7, #52] @ 0x34
  32062. 800de70: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32063. 800de74: d102 bne.n 800de7c <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32064. {
  32065. /* In Case the CKPER Source is CSI */
  32066. frequency = CSI_VALUE;
  32067. 800de76: 4b66 ldr r3, [pc, #408] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32068. 800de78: 63fb str r3, [r7, #60] @ 0x3c
  32069. 800de7a: e011 b.n 800dea0 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32070. }
  32071. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32072. 800de7c: 4b62 ldr r3, [pc, #392] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32073. 800de7e: 681b ldr r3, [r3, #0]
  32074. 800de80: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32075. 800de84: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32076. 800de88: d106 bne.n 800de98 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32077. 800de8a: 6b7b ldr r3, [r7, #52] @ 0x34
  32078. 800de8c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32079. 800de90: d102 bne.n 800de98 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32080. {
  32081. /* In Case the CKPER Source is HSE */
  32082. frequency = HSE_VALUE;
  32083. 800de92: 4b60 ldr r3, [pc, #384] @ (800e014 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32084. 800de94: 63fb str r3, [r7, #60] @ 0x3c
  32085. 800de96: e003 b.n 800dea0 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32086. }
  32087. else
  32088. {
  32089. /* In Case the CKPER is disabled*/
  32090. frequency = 0;
  32091. 800de98: 2300 movs r3, #0
  32092. 800de9a: 63fb str r3, [r7, #60] @ 0x3c
  32093. }
  32094. break;
  32095. 800de9c: f000 bce1 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32096. 800dea0: f000 bcdf b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32097. }
  32098. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  32099. {
  32100. frequency = EXTERNAL_CLOCK_VALUE;
  32101. 800dea4: 4b5c ldr r3, [pc, #368] @ (800e018 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32102. 800dea6: 63fb str r3, [r7, #60] @ 0x3c
  32103. break;
  32104. 800dea8: f000 bcdb b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32105. }
  32106. default :
  32107. {
  32108. frequency = 0;
  32109. 800deac: 2300 movs r3, #0
  32110. 800deae: 63fb str r3, [r7, #60] @ 0x3c
  32111. break;
  32112. 800deb0: f000 bcd7 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32113. }
  32114. }
  32115. }
  32116. #if defined(SAI3)
  32117. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  32118. 800deb4: e9d7 2300 ldrd r2, r3, [r7]
  32119. 800deb8: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  32120. 800debc: 430b orrs r3, r1
  32121. 800debe: f040 80ad bne.w 800e01c <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  32122. {
  32123. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  32124. 800dec2: 4b51 ldr r3, [pc, #324] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32125. 800dec4: 6d1b ldr r3, [r3, #80] @ 0x50
  32126. 800dec6: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  32127. 800deca: 633b str r3, [r7, #48] @ 0x30
  32128. switch (saiclocksource)
  32129. 800decc: 6b3b ldr r3, [r7, #48] @ 0x30
  32130. 800dece: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32131. 800ded2: d056 beq.n 800df82 <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  32132. 800ded4: 6b3b ldr r3, [r7, #48] @ 0x30
  32133. 800ded6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32134. 800deda: f200 8090 bhi.w 800dffe <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32135. 800dede: 6b3b ldr r3, [r7, #48] @ 0x30
  32136. 800dee0: 2bc0 cmp r3, #192 @ 0xc0
  32137. 800dee2: f000 8088 beq.w 800dff6 <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  32138. 800dee6: 6b3b ldr r3, [r7, #48] @ 0x30
  32139. 800dee8: 2bc0 cmp r3, #192 @ 0xc0
  32140. 800deea: f200 8088 bhi.w 800dffe <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32141. 800deee: 6b3b ldr r3, [r7, #48] @ 0x30
  32142. 800def0: 2b80 cmp r3, #128 @ 0x80
  32143. 800def2: d032 beq.n 800df5a <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  32144. 800def4: 6b3b ldr r3, [r7, #48] @ 0x30
  32145. 800def6: 2b80 cmp r3, #128 @ 0x80
  32146. 800def8: f200 8081 bhi.w 800dffe <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32147. 800defc: 6b3b ldr r3, [r7, #48] @ 0x30
  32148. 800defe: 2b00 cmp r3, #0
  32149. 800df00: d003 beq.n 800df0a <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  32150. 800df02: 6b3b ldr r3, [r7, #48] @ 0x30
  32151. 800df04: 2b40 cmp r3, #64 @ 0x40
  32152. 800df06: d014 beq.n 800df32 <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  32153. 800df08: e079 b.n 800dffe <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32154. {
  32155. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  32156. {
  32157. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32158. 800df0a: 4b3f ldr r3, [pc, #252] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32159. 800df0c: 681b ldr r3, [r3, #0]
  32160. 800df0e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32161. 800df12: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32162. 800df16: d108 bne.n 800df2a <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  32163. {
  32164. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32165. 800df18: f107 0324 add.w r3, r7, #36 @ 0x24
  32166. 800df1c: 4618 mov r0, r3
  32167. 800df1e: f000 ff67 bl 800edf0 <HAL_RCCEx_GetPLL1ClockFreq>
  32168. frequency = pll1_clocks.PLL1_Q_Frequency;
  32169. 800df22: 6abb ldr r3, [r7, #40] @ 0x28
  32170. 800df24: 63fb str r3, [r7, #60] @ 0x3c
  32171. }
  32172. else
  32173. {
  32174. frequency = 0;
  32175. }
  32176. break;
  32177. 800df26: f000 bc9c b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32178. frequency = 0;
  32179. 800df2a: 2300 movs r3, #0
  32180. 800df2c: 63fb str r3, [r7, #60] @ 0x3c
  32181. break;
  32182. 800df2e: f000 bc98 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32183. }
  32184. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  32185. {
  32186. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32187. 800df32: 4b35 ldr r3, [pc, #212] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32188. 800df34: 681b ldr r3, [r3, #0]
  32189. 800df36: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32190. 800df3a: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32191. 800df3e: d108 bne.n 800df52 <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  32192. {
  32193. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32194. 800df40: f107 0318 add.w r3, r7, #24
  32195. 800df44: 4618 mov r0, r3
  32196. 800df46: f000 fcab bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  32197. frequency = pll2_clocks.PLL2_P_Frequency;
  32198. 800df4a: 69bb ldr r3, [r7, #24]
  32199. 800df4c: 63fb str r3, [r7, #60] @ 0x3c
  32200. }
  32201. else
  32202. {
  32203. frequency = 0;
  32204. }
  32205. break;
  32206. 800df4e: f000 bc88 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32207. frequency = 0;
  32208. 800df52: 2300 movs r3, #0
  32209. 800df54: 63fb str r3, [r7, #60] @ 0x3c
  32210. break;
  32211. 800df56: f000 bc84 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32212. }
  32213. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  32214. {
  32215. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32216. 800df5a: 4b2b ldr r3, [pc, #172] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32217. 800df5c: 681b ldr r3, [r3, #0]
  32218. 800df5e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32219. 800df62: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32220. 800df66: d108 bne.n 800df7a <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  32221. {
  32222. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32223. 800df68: f107 030c add.w r3, r7, #12
  32224. 800df6c: 4618 mov r0, r3
  32225. 800df6e: f000 fdeb bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  32226. frequency = pll3_clocks.PLL3_P_Frequency;
  32227. 800df72: 68fb ldr r3, [r7, #12]
  32228. 800df74: 63fb str r3, [r7, #60] @ 0x3c
  32229. }
  32230. else
  32231. {
  32232. frequency = 0;
  32233. }
  32234. break;
  32235. 800df76: f000 bc74 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32236. frequency = 0;
  32237. 800df7a: 2300 movs r3, #0
  32238. 800df7c: 63fb str r3, [r7, #60] @ 0x3c
  32239. break;
  32240. 800df7e: f000 bc70 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32241. }
  32242. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  32243. {
  32244. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32245. 800df82: 4b21 ldr r3, [pc, #132] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32246. 800df84: 6cdb ldr r3, [r3, #76] @ 0x4c
  32247. 800df86: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32248. 800df8a: 637b str r3, [r7, #52] @ 0x34
  32249. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32250. 800df8c: 4b1e ldr r3, [pc, #120] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32251. 800df8e: 681b ldr r3, [r3, #0]
  32252. 800df90: f003 0304 and.w r3, r3, #4
  32253. 800df94: 2b04 cmp r3, #4
  32254. 800df96: d10c bne.n 800dfb2 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32255. 800df98: 6b7b ldr r3, [r7, #52] @ 0x34
  32256. 800df9a: 2b00 cmp r3, #0
  32257. 800df9c: d109 bne.n 800dfb2 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32258. {
  32259. /* In Case the CKPER Source is HSI */
  32260. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32261. 800df9e: 4b1a ldr r3, [pc, #104] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32262. 800dfa0: 681b ldr r3, [r3, #0]
  32263. 800dfa2: 08db lsrs r3, r3, #3
  32264. 800dfa4: f003 0303 and.w r3, r3, #3
  32265. 800dfa8: 4a18 ldr r2, [pc, #96] @ (800e00c <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32266. 800dfaa: fa22 f303 lsr.w r3, r2, r3
  32267. 800dfae: 63fb str r3, [r7, #60] @ 0x3c
  32268. 800dfb0: e01f b.n 800dff2 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32269. }
  32270. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32271. 800dfb2: 4b15 ldr r3, [pc, #84] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32272. 800dfb4: 681b ldr r3, [r3, #0]
  32273. 800dfb6: f403 7380 and.w r3, r3, #256 @ 0x100
  32274. 800dfba: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32275. 800dfbe: d106 bne.n 800dfce <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32276. 800dfc0: 6b7b ldr r3, [r7, #52] @ 0x34
  32277. 800dfc2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32278. 800dfc6: d102 bne.n 800dfce <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32279. {
  32280. /* In Case the CKPER Source is CSI */
  32281. frequency = CSI_VALUE;
  32282. 800dfc8: 4b11 ldr r3, [pc, #68] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32283. 800dfca: 63fb str r3, [r7, #60] @ 0x3c
  32284. 800dfcc: e011 b.n 800dff2 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32285. }
  32286. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32287. 800dfce: 4b0e ldr r3, [pc, #56] @ (800e008 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32288. 800dfd0: 681b ldr r3, [r3, #0]
  32289. 800dfd2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32290. 800dfd6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32291. 800dfda: d106 bne.n 800dfea <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32292. 800dfdc: 6b7b ldr r3, [r7, #52] @ 0x34
  32293. 800dfde: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32294. 800dfe2: d102 bne.n 800dfea <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32295. {
  32296. /* In Case the CKPER Source is HSE */
  32297. frequency = HSE_VALUE;
  32298. 800dfe4: 4b0b ldr r3, [pc, #44] @ (800e014 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32299. 800dfe6: 63fb str r3, [r7, #60] @ 0x3c
  32300. 800dfe8: e003 b.n 800dff2 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32301. }
  32302. else
  32303. {
  32304. /* In Case the CKPER is disabled*/
  32305. frequency = 0;
  32306. 800dfea: 2300 movs r3, #0
  32307. 800dfec: 63fb str r3, [r7, #60] @ 0x3c
  32308. }
  32309. break;
  32310. 800dfee: f000 bc38 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32311. 800dff2: f000 bc36 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32312. }
  32313. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  32314. {
  32315. frequency = EXTERNAL_CLOCK_VALUE;
  32316. 800dff6: 4b08 ldr r3, [pc, #32] @ (800e018 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32317. 800dff8: 63fb str r3, [r7, #60] @ 0x3c
  32318. break;
  32319. 800dffa: f000 bc32 b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32320. }
  32321. default :
  32322. {
  32323. frequency = 0;
  32324. 800dffe: 2300 movs r3, #0
  32325. 800e000: 63fb str r3, [r7, #60] @ 0x3c
  32326. break;
  32327. 800e002: f000 bc2e b.w 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32328. 800e006: bf00 nop
  32329. 800e008: 58024400 .word 0x58024400
  32330. 800e00c: 03d09000 .word 0x03d09000
  32331. 800e010: 003d0900 .word 0x003d0900
  32332. 800e014: 017d7840 .word 0x017d7840
  32333. 800e018: 00bb8000 .word 0x00bb8000
  32334. }
  32335. }
  32336. #endif
  32337. #if defined(SAI4)
  32338. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  32339. 800e01c: e9d7 2300 ldrd r2, r3, [r7]
  32340. 800e020: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  32341. 800e024: 430b orrs r3, r1
  32342. 800e026: f040 809c bne.w 800e162 <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  32343. {
  32344. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  32345. 800e02a: 4b9e ldr r3, [pc, #632] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32346. 800e02c: 6d9b ldr r3, [r3, #88] @ 0x58
  32347. 800e02e: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  32348. 800e032: 633b str r3, [r7, #48] @ 0x30
  32349. switch (saiclocksource)
  32350. 800e034: 6b3b ldr r3, [r7, #48] @ 0x30
  32351. 800e036: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32352. 800e03a: d054 beq.n 800e0e6 <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  32353. 800e03c: 6b3b ldr r3, [r7, #48] @ 0x30
  32354. 800e03e: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32355. 800e042: f200 808b bhi.w 800e15c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32356. 800e046: 6b3b ldr r3, [r7, #48] @ 0x30
  32357. 800e048: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32358. 800e04c: f000 8083 beq.w 800e156 <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  32359. 800e050: 6b3b ldr r3, [r7, #48] @ 0x30
  32360. 800e052: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32361. 800e056: f200 8081 bhi.w 800e15c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32362. 800e05a: 6b3b ldr r3, [r7, #48] @ 0x30
  32363. 800e05c: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32364. 800e060: d02f beq.n 800e0c2 <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  32365. 800e062: 6b3b ldr r3, [r7, #48] @ 0x30
  32366. 800e064: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32367. 800e068: d878 bhi.n 800e15c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32368. 800e06a: 6b3b ldr r3, [r7, #48] @ 0x30
  32369. 800e06c: 2b00 cmp r3, #0
  32370. 800e06e: d004 beq.n 800e07a <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  32371. 800e070: 6b3b ldr r3, [r7, #48] @ 0x30
  32372. 800e072: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  32373. 800e076: d012 beq.n 800e09e <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  32374. 800e078: e070 b.n 800e15c <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32375. {
  32376. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  32377. {
  32378. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32379. 800e07a: 4b8a ldr r3, [pc, #552] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32380. 800e07c: 681b ldr r3, [r3, #0]
  32381. 800e07e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32382. 800e082: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32383. 800e086: d107 bne.n 800e098 <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  32384. {
  32385. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32386. 800e088: f107 0324 add.w r3, r7, #36 @ 0x24
  32387. 800e08c: 4618 mov r0, r3
  32388. 800e08e: f000 feaf bl 800edf0 <HAL_RCCEx_GetPLL1ClockFreq>
  32389. frequency = pll1_clocks.PLL1_Q_Frequency;
  32390. 800e092: 6abb ldr r3, [r7, #40] @ 0x28
  32391. 800e094: 63fb str r3, [r7, #60] @ 0x3c
  32392. }
  32393. else
  32394. {
  32395. frequency = 0;
  32396. }
  32397. break;
  32398. 800e096: e3e4 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32399. frequency = 0;
  32400. 800e098: 2300 movs r3, #0
  32401. 800e09a: 63fb str r3, [r7, #60] @ 0x3c
  32402. break;
  32403. 800e09c: e3e1 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32404. }
  32405. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  32406. {
  32407. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32408. 800e09e: 4b81 ldr r3, [pc, #516] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32409. 800e0a0: 681b ldr r3, [r3, #0]
  32410. 800e0a2: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32411. 800e0a6: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32412. 800e0aa: d107 bne.n 800e0bc <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  32413. {
  32414. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32415. 800e0ac: f107 0318 add.w r3, r7, #24
  32416. 800e0b0: 4618 mov r0, r3
  32417. 800e0b2: f000 fbf5 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  32418. frequency = pll2_clocks.PLL2_P_Frequency;
  32419. 800e0b6: 69bb ldr r3, [r7, #24]
  32420. 800e0b8: 63fb str r3, [r7, #60] @ 0x3c
  32421. }
  32422. else
  32423. {
  32424. frequency = 0;
  32425. }
  32426. break;
  32427. 800e0ba: e3d2 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32428. frequency = 0;
  32429. 800e0bc: 2300 movs r3, #0
  32430. 800e0be: 63fb str r3, [r7, #60] @ 0x3c
  32431. break;
  32432. 800e0c0: e3cf b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32433. }
  32434. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  32435. {
  32436. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32437. 800e0c2: 4b78 ldr r3, [pc, #480] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32438. 800e0c4: 681b ldr r3, [r3, #0]
  32439. 800e0c6: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32440. 800e0ca: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32441. 800e0ce: d107 bne.n 800e0e0 <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  32442. {
  32443. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32444. 800e0d0: f107 030c add.w r3, r7, #12
  32445. 800e0d4: 4618 mov r0, r3
  32446. 800e0d6: f000 fd37 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  32447. frequency = pll3_clocks.PLL3_P_Frequency;
  32448. 800e0da: 68fb ldr r3, [r7, #12]
  32449. 800e0dc: 63fb str r3, [r7, #60] @ 0x3c
  32450. }
  32451. else
  32452. {
  32453. frequency = 0;
  32454. }
  32455. break;
  32456. 800e0de: e3c0 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32457. frequency = 0;
  32458. 800e0e0: 2300 movs r3, #0
  32459. 800e0e2: 63fb str r3, [r7, #60] @ 0x3c
  32460. break;
  32461. 800e0e4: e3bd b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32462. }
  32463. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  32464. {
  32465. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32466. 800e0e6: 4b6f ldr r3, [pc, #444] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32467. 800e0e8: 6cdb ldr r3, [r3, #76] @ 0x4c
  32468. 800e0ea: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32469. 800e0ee: 637b str r3, [r7, #52] @ 0x34
  32470. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32471. 800e0f0: 4b6c ldr r3, [pc, #432] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32472. 800e0f2: 681b ldr r3, [r3, #0]
  32473. 800e0f4: f003 0304 and.w r3, r3, #4
  32474. 800e0f8: 2b04 cmp r3, #4
  32475. 800e0fa: d10c bne.n 800e116 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32476. 800e0fc: 6b7b ldr r3, [r7, #52] @ 0x34
  32477. 800e0fe: 2b00 cmp r3, #0
  32478. 800e100: d109 bne.n 800e116 <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32479. {
  32480. /* In Case the CKPER Source is HSI */
  32481. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32482. 800e102: 4b68 ldr r3, [pc, #416] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32483. 800e104: 681b ldr r3, [r3, #0]
  32484. 800e106: 08db lsrs r3, r3, #3
  32485. 800e108: f003 0303 and.w r3, r3, #3
  32486. 800e10c: 4a66 ldr r2, [pc, #408] @ (800e2a8 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32487. 800e10e: fa22 f303 lsr.w r3, r2, r3
  32488. 800e112: 63fb str r3, [r7, #60] @ 0x3c
  32489. 800e114: e01e b.n 800e154 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32490. }
  32491. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32492. 800e116: 4b63 ldr r3, [pc, #396] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32493. 800e118: 681b ldr r3, [r3, #0]
  32494. 800e11a: f403 7380 and.w r3, r3, #256 @ 0x100
  32495. 800e11e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32496. 800e122: d106 bne.n 800e132 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32497. 800e124: 6b7b ldr r3, [r7, #52] @ 0x34
  32498. 800e126: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32499. 800e12a: d102 bne.n 800e132 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32500. {
  32501. /* In Case the CKPER Source is CSI */
  32502. frequency = CSI_VALUE;
  32503. 800e12c: 4b5f ldr r3, [pc, #380] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32504. 800e12e: 63fb str r3, [r7, #60] @ 0x3c
  32505. 800e130: e010 b.n 800e154 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32506. }
  32507. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32508. 800e132: 4b5c ldr r3, [pc, #368] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32509. 800e134: 681b ldr r3, [r3, #0]
  32510. 800e136: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32511. 800e13a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32512. 800e13e: d106 bne.n 800e14e <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32513. 800e140: 6b7b ldr r3, [r7, #52] @ 0x34
  32514. 800e142: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32515. 800e146: d102 bne.n 800e14e <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32516. {
  32517. /* In Case the CKPER Source is HSE */
  32518. frequency = HSE_VALUE;
  32519. 800e148: 4b59 ldr r3, [pc, #356] @ (800e2b0 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32520. 800e14a: 63fb str r3, [r7, #60] @ 0x3c
  32521. 800e14c: e002 b.n 800e154 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32522. }
  32523. else
  32524. {
  32525. /* In Case the CKPER is disabled*/
  32526. frequency = 0;
  32527. 800e14e: 2300 movs r3, #0
  32528. 800e150: 63fb str r3, [r7, #60] @ 0x3c
  32529. }
  32530. break;
  32531. 800e152: e386 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32532. 800e154: e385 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32533. }
  32534. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  32535. {
  32536. frequency = EXTERNAL_CLOCK_VALUE;
  32537. 800e156: 4b57 ldr r3, [pc, #348] @ (800e2b4 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32538. 800e158: 63fb str r3, [r7, #60] @ 0x3c
  32539. break;
  32540. 800e15a: e382 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32541. }
  32542. default :
  32543. {
  32544. frequency = 0;
  32545. 800e15c: 2300 movs r3, #0
  32546. 800e15e: 63fb str r3, [r7, #60] @ 0x3c
  32547. break;
  32548. 800e160: e37f b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32549. }
  32550. }
  32551. }
  32552. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  32553. 800e162: e9d7 2300 ldrd r2, r3, [r7]
  32554. 800e166: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  32555. 800e16a: 430b orrs r3, r1
  32556. 800e16c: f040 80a7 bne.w 800e2be <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  32557. {
  32558. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  32559. 800e170: 4b4c ldr r3, [pc, #304] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32560. 800e172: 6d9b ldr r3, [r3, #88] @ 0x58
  32561. 800e174: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  32562. 800e178: 633b str r3, [r7, #48] @ 0x30
  32563. switch (saiclocksource)
  32564. 800e17a: 6b3b ldr r3, [r7, #48] @ 0x30
  32565. 800e17c: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32566. 800e180: d055 beq.n 800e22e <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  32567. 800e182: 6b3b ldr r3, [r7, #48] @ 0x30
  32568. 800e184: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32569. 800e188: f200 8096 bhi.w 800e2b8 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32570. 800e18c: 6b3b ldr r3, [r7, #48] @ 0x30
  32571. 800e18e: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32572. 800e192: f000 8084 beq.w 800e29e <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  32573. 800e196: 6b3b ldr r3, [r7, #48] @ 0x30
  32574. 800e198: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32575. 800e19c: f200 808c bhi.w 800e2b8 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32576. 800e1a0: 6b3b ldr r3, [r7, #48] @ 0x30
  32577. 800e1a2: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32578. 800e1a6: d030 beq.n 800e20a <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  32579. 800e1a8: 6b3b ldr r3, [r7, #48] @ 0x30
  32580. 800e1aa: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32581. 800e1ae: f200 8083 bhi.w 800e2b8 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32582. 800e1b2: 6b3b ldr r3, [r7, #48] @ 0x30
  32583. 800e1b4: 2b00 cmp r3, #0
  32584. 800e1b6: d004 beq.n 800e1c2 <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  32585. 800e1b8: 6b3b ldr r3, [r7, #48] @ 0x30
  32586. 800e1ba: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  32587. 800e1be: d012 beq.n 800e1e6 <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  32588. 800e1c0: e07a b.n 800e2b8 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32589. {
  32590. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  32591. {
  32592. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32593. 800e1c2: 4b38 ldr r3, [pc, #224] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32594. 800e1c4: 681b ldr r3, [r3, #0]
  32595. 800e1c6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32596. 800e1ca: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32597. 800e1ce: d107 bne.n 800e1e0 <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  32598. {
  32599. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32600. 800e1d0: f107 0324 add.w r3, r7, #36 @ 0x24
  32601. 800e1d4: 4618 mov r0, r3
  32602. 800e1d6: f000 fe0b bl 800edf0 <HAL_RCCEx_GetPLL1ClockFreq>
  32603. frequency = pll1_clocks.PLL1_Q_Frequency;
  32604. 800e1da: 6abb ldr r3, [r7, #40] @ 0x28
  32605. 800e1dc: 63fb str r3, [r7, #60] @ 0x3c
  32606. }
  32607. else
  32608. {
  32609. frequency = 0;
  32610. }
  32611. break;
  32612. 800e1de: e340 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32613. frequency = 0;
  32614. 800e1e0: 2300 movs r3, #0
  32615. 800e1e2: 63fb str r3, [r7, #60] @ 0x3c
  32616. break;
  32617. 800e1e4: e33d b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32618. }
  32619. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  32620. {
  32621. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32622. 800e1e6: 4b2f ldr r3, [pc, #188] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32623. 800e1e8: 681b ldr r3, [r3, #0]
  32624. 800e1ea: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32625. 800e1ee: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32626. 800e1f2: d107 bne.n 800e204 <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  32627. {
  32628. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32629. 800e1f4: f107 0318 add.w r3, r7, #24
  32630. 800e1f8: 4618 mov r0, r3
  32631. 800e1fa: f000 fb51 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  32632. frequency = pll2_clocks.PLL2_P_Frequency;
  32633. 800e1fe: 69bb ldr r3, [r7, #24]
  32634. 800e200: 63fb str r3, [r7, #60] @ 0x3c
  32635. }
  32636. else
  32637. {
  32638. frequency = 0;
  32639. }
  32640. break;
  32641. 800e202: e32e b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32642. frequency = 0;
  32643. 800e204: 2300 movs r3, #0
  32644. 800e206: 63fb str r3, [r7, #60] @ 0x3c
  32645. break;
  32646. 800e208: e32b b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32647. }
  32648. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  32649. {
  32650. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32651. 800e20a: 4b26 ldr r3, [pc, #152] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32652. 800e20c: 681b ldr r3, [r3, #0]
  32653. 800e20e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32654. 800e212: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32655. 800e216: d107 bne.n 800e228 <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  32656. {
  32657. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32658. 800e218: f107 030c add.w r3, r7, #12
  32659. 800e21c: 4618 mov r0, r3
  32660. 800e21e: f000 fc93 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  32661. frequency = pll3_clocks.PLL3_P_Frequency;
  32662. 800e222: 68fb ldr r3, [r7, #12]
  32663. 800e224: 63fb str r3, [r7, #60] @ 0x3c
  32664. }
  32665. else
  32666. {
  32667. frequency = 0;
  32668. }
  32669. break;
  32670. 800e226: e31c b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32671. frequency = 0;
  32672. 800e228: 2300 movs r3, #0
  32673. 800e22a: 63fb str r3, [r7, #60] @ 0x3c
  32674. break;
  32675. 800e22c: e319 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32676. }
  32677. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  32678. {
  32679. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32680. 800e22e: 4b1d ldr r3, [pc, #116] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32681. 800e230: 6cdb ldr r3, [r3, #76] @ 0x4c
  32682. 800e232: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32683. 800e236: 637b str r3, [r7, #52] @ 0x34
  32684. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32685. 800e238: 4b1a ldr r3, [pc, #104] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32686. 800e23a: 681b ldr r3, [r3, #0]
  32687. 800e23c: f003 0304 and.w r3, r3, #4
  32688. 800e240: 2b04 cmp r3, #4
  32689. 800e242: d10c bne.n 800e25e <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32690. 800e244: 6b7b ldr r3, [r7, #52] @ 0x34
  32691. 800e246: 2b00 cmp r3, #0
  32692. 800e248: d109 bne.n 800e25e <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32693. {
  32694. /* In Case the CKPER Source is HSI */
  32695. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32696. 800e24a: 4b16 ldr r3, [pc, #88] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32697. 800e24c: 681b ldr r3, [r3, #0]
  32698. 800e24e: 08db lsrs r3, r3, #3
  32699. 800e250: f003 0303 and.w r3, r3, #3
  32700. 800e254: 4a14 ldr r2, [pc, #80] @ (800e2a8 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32701. 800e256: fa22 f303 lsr.w r3, r2, r3
  32702. 800e25a: 63fb str r3, [r7, #60] @ 0x3c
  32703. 800e25c: e01e b.n 800e29c <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32704. }
  32705. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32706. 800e25e: 4b11 ldr r3, [pc, #68] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32707. 800e260: 681b ldr r3, [r3, #0]
  32708. 800e262: f403 7380 and.w r3, r3, #256 @ 0x100
  32709. 800e266: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32710. 800e26a: d106 bne.n 800e27a <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32711. 800e26c: 6b7b ldr r3, [r7, #52] @ 0x34
  32712. 800e26e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32713. 800e272: d102 bne.n 800e27a <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32714. {
  32715. /* In Case the CKPER Source is CSI */
  32716. frequency = CSI_VALUE;
  32717. 800e274: 4b0d ldr r3, [pc, #52] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32718. 800e276: 63fb str r3, [r7, #60] @ 0x3c
  32719. 800e278: e010 b.n 800e29c <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32720. }
  32721. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32722. 800e27a: 4b0a ldr r3, [pc, #40] @ (800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32723. 800e27c: 681b ldr r3, [r3, #0]
  32724. 800e27e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32725. 800e282: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32726. 800e286: d106 bne.n 800e296 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32727. 800e288: 6b7b ldr r3, [r7, #52] @ 0x34
  32728. 800e28a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32729. 800e28e: d102 bne.n 800e296 <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32730. {
  32731. /* In Case the CKPER Source is HSE */
  32732. frequency = HSE_VALUE;
  32733. 800e290: 4b07 ldr r3, [pc, #28] @ (800e2b0 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32734. 800e292: 63fb str r3, [r7, #60] @ 0x3c
  32735. 800e294: e002 b.n 800e29c <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32736. }
  32737. else
  32738. {
  32739. /* In Case the CKPER is disabled*/
  32740. frequency = 0;
  32741. 800e296: 2300 movs r3, #0
  32742. 800e298: 63fb str r3, [r7, #60] @ 0x3c
  32743. }
  32744. break;
  32745. 800e29a: e2e2 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32746. 800e29c: e2e1 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32747. }
  32748. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  32749. {
  32750. frequency = EXTERNAL_CLOCK_VALUE;
  32751. 800e29e: 4b05 ldr r3, [pc, #20] @ (800e2b4 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32752. 800e2a0: 63fb str r3, [r7, #60] @ 0x3c
  32753. break;
  32754. 800e2a2: e2de b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32755. 800e2a4: 58024400 .word 0x58024400
  32756. 800e2a8: 03d09000 .word 0x03d09000
  32757. 800e2ac: 003d0900 .word 0x003d0900
  32758. 800e2b0: 017d7840 .word 0x017d7840
  32759. 800e2b4: 00bb8000 .word 0x00bb8000
  32760. }
  32761. default :
  32762. {
  32763. frequency = 0;
  32764. 800e2b8: 2300 movs r3, #0
  32765. 800e2ba: 63fb str r3, [r7, #60] @ 0x3c
  32766. break;
  32767. 800e2bc: e2d1 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32768. }
  32769. }
  32770. }
  32771. #endif /*SAI4*/
  32772. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  32773. 800e2be: e9d7 2300 ldrd r2, r3, [r7]
  32774. 800e2c2: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  32775. 800e2c6: 430b orrs r3, r1
  32776. 800e2c8: f040 809c bne.w 800e404 <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  32777. {
  32778. /* Get SPI1/2/3 clock source */
  32779. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  32780. 800e2cc: 4b93 ldr r3, [pc, #588] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32781. 800e2ce: 6d1b ldr r3, [r3, #80] @ 0x50
  32782. 800e2d0: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  32783. 800e2d4: 63bb str r3, [r7, #56] @ 0x38
  32784. switch (srcclk)
  32785. 800e2d6: 6bbb ldr r3, [r7, #56] @ 0x38
  32786. 800e2d8: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32787. 800e2dc: d054 beq.n 800e388 <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  32788. 800e2de: 6bbb ldr r3, [r7, #56] @ 0x38
  32789. 800e2e0: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32790. 800e2e4: f200 808b bhi.w 800e3fe <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32791. 800e2e8: 6bbb ldr r3, [r7, #56] @ 0x38
  32792. 800e2ea: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32793. 800e2ee: f000 8083 beq.w 800e3f8 <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  32794. 800e2f2: 6bbb ldr r3, [r7, #56] @ 0x38
  32795. 800e2f4: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32796. 800e2f8: f200 8081 bhi.w 800e3fe <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32797. 800e2fc: 6bbb ldr r3, [r7, #56] @ 0x38
  32798. 800e2fe: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32799. 800e302: d02f beq.n 800e364 <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  32800. 800e304: 6bbb ldr r3, [r7, #56] @ 0x38
  32801. 800e306: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32802. 800e30a: d878 bhi.n 800e3fe <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32803. 800e30c: 6bbb ldr r3, [r7, #56] @ 0x38
  32804. 800e30e: 2b00 cmp r3, #0
  32805. 800e310: d004 beq.n 800e31c <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  32806. 800e312: 6bbb ldr r3, [r7, #56] @ 0x38
  32807. 800e314: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32808. 800e318: d012 beq.n 800e340 <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  32809. 800e31a: e070 b.n 800e3fe <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32810. {
  32811. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  32812. {
  32813. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32814. 800e31c: 4b7f ldr r3, [pc, #508] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32815. 800e31e: 681b ldr r3, [r3, #0]
  32816. 800e320: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32817. 800e324: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32818. 800e328: d107 bne.n 800e33a <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  32819. {
  32820. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32821. 800e32a: f107 0324 add.w r3, r7, #36 @ 0x24
  32822. 800e32e: 4618 mov r0, r3
  32823. 800e330: f000 fd5e bl 800edf0 <HAL_RCCEx_GetPLL1ClockFreq>
  32824. frequency = pll1_clocks.PLL1_Q_Frequency;
  32825. 800e334: 6abb ldr r3, [r7, #40] @ 0x28
  32826. 800e336: 63fb str r3, [r7, #60] @ 0x3c
  32827. }
  32828. else
  32829. {
  32830. frequency = 0;
  32831. }
  32832. break;
  32833. 800e338: e293 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32834. frequency = 0;
  32835. 800e33a: 2300 movs r3, #0
  32836. 800e33c: 63fb str r3, [r7, #60] @ 0x3c
  32837. break;
  32838. 800e33e: e290 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32839. }
  32840. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  32841. {
  32842. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32843. 800e340: 4b76 ldr r3, [pc, #472] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32844. 800e342: 681b ldr r3, [r3, #0]
  32845. 800e344: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32846. 800e348: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32847. 800e34c: d107 bne.n 800e35e <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  32848. {
  32849. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32850. 800e34e: f107 0318 add.w r3, r7, #24
  32851. 800e352: 4618 mov r0, r3
  32852. 800e354: f000 faa4 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  32853. frequency = pll2_clocks.PLL2_P_Frequency;
  32854. 800e358: 69bb ldr r3, [r7, #24]
  32855. 800e35a: 63fb str r3, [r7, #60] @ 0x3c
  32856. }
  32857. else
  32858. {
  32859. frequency = 0;
  32860. }
  32861. break;
  32862. 800e35c: e281 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32863. frequency = 0;
  32864. 800e35e: 2300 movs r3, #0
  32865. 800e360: 63fb str r3, [r7, #60] @ 0x3c
  32866. break;
  32867. 800e362: e27e b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32868. }
  32869. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  32870. {
  32871. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32872. 800e364: 4b6d ldr r3, [pc, #436] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32873. 800e366: 681b ldr r3, [r3, #0]
  32874. 800e368: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32875. 800e36c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32876. 800e370: d107 bne.n 800e382 <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  32877. {
  32878. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32879. 800e372: f107 030c add.w r3, r7, #12
  32880. 800e376: 4618 mov r0, r3
  32881. 800e378: f000 fbe6 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  32882. frequency = pll3_clocks.PLL3_P_Frequency;
  32883. 800e37c: 68fb ldr r3, [r7, #12]
  32884. 800e37e: 63fb str r3, [r7, #60] @ 0x3c
  32885. }
  32886. else
  32887. {
  32888. frequency = 0;
  32889. }
  32890. break;
  32891. 800e380: e26f b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32892. frequency = 0;
  32893. 800e382: 2300 movs r3, #0
  32894. 800e384: 63fb str r3, [r7, #60] @ 0x3c
  32895. break;
  32896. 800e386: e26c b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32897. }
  32898. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  32899. {
  32900. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32901. 800e388: 4b64 ldr r3, [pc, #400] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32902. 800e38a: 6cdb ldr r3, [r3, #76] @ 0x4c
  32903. 800e38c: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32904. 800e390: 637b str r3, [r7, #52] @ 0x34
  32905. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32906. 800e392: 4b62 ldr r3, [pc, #392] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32907. 800e394: 681b ldr r3, [r3, #0]
  32908. 800e396: f003 0304 and.w r3, r3, #4
  32909. 800e39a: 2b04 cmp r3, #4
  32910. 800e39c: d10c bne.n 800e3b8 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32911. 800e39e: 6b7b ldr r3, [r7, #52] @ 0x34
  32912. 800e3a0: 2b00 cmp r3, #0
  32913. 800e3a2: d109 bne.n 800e3b8 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32914. {
  32915. /* In Case the CKPER Source is HSI */
  32916. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32917. 800e3a4: 4b5d ldr r3, [pc, #372] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32918. 800e3a6: 681b ldr r3, [r3, #0]
  32919. 800e3a8: 08db lsrs r3, r3, #3
  32920. 800e3aa: f003 0303 and.w r3, r3, #3
  32921. 800e3ae: 4a5c ldr r2, [pc, #368] @ (800e520 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32922. 800e3b0: fa22 f303 lsr.w r3, r2, r3
  32923. 800e3b4: 63fb str r3, [r7, #60] @ 0x3c
  32924. 800e3b6: e01e b.n 800e3f6 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32925. }
  32926. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32927. 800e3b8: 4b58 ldr r3, [pc, #352] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32928. 800e3ba: 681b ldr r3, [r3, #0]
  32929. 800e3bc: f403 7380 and.w r3, r3, #256 @ 0x100
  32930. 800e3c0: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32931. 800e3c4: d106 bne.n 800e3d4 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32932. 800e3c6: 6b7b ldr r3, [r7, #52] @ 0x34
  32933. 800e3c8: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32934. 800e3cc: d102 bne.n 800e3d4 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32935. {
  32936. /* In Case the CKPER Source is CSI */
  32937. frequency = CSI_VALUE;
  32938. 800e3ce: 4b55 ldr r3, [pc, #340] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32939. 800e3d0: 63fb str r3, [r7, #60] @ 0x3c
  32940. 800e3d2: e010 b.n 800e3f6 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32941. }
  32942. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32943. 800e3d4: 4b51 ldr r3, [pc, #324] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32944. 800e3d6: 681b ldr r3, [r3, #0]
  32945. 800e3d8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32946. 800e3dc: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32947. 800e3e0: d106 bne.n 800e3f0 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32948. 800e3e2: 6b7b ldr r3, [r7, #52] @ 0x34
  32949. 800e3e4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32950. 800e3e8: d102 bne.n 800e3f0 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32951. {
  32952. /* In Case the CKPER Source is HSE */
  32953. frequency = HSE_VALUE;
  32954. 800e3ea: 4b4f ldr r3, [pc, #316] @ (800e528 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  32955. 800e3ec: 63fb str r3, [r7, #60] @ 0x3c
  32956. 800e3ee: e002 b.n 800e3f6 <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32957. }
  32958. else
  32959. {
  32960. /* In Case the CKPER is disabled*/
  32961. frequency = 0;
  32962. 800e3f0: 2300 movs r3, #0
  32963. 800e3f2: 63fb str r3, [r7, #60] @ 0x3c
  32964. }
  32965. break;
  32966. 800e3f4: e235 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32967. 800e3f6: e234 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32968. }
  32969. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  32970. {
  32971. frequency = EXTERNAL_CLOCK_VALUE;
  32972. 800e3f8: 4b4c ldr r3, [pc, #304] @ (800e52c <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  32973. 800e3fa: 63fb str r3, [r7, #60] @ 0x3c
  32974. break;
  32975. 800e3fc: e231 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32976. }
  32977. default :
  32978. {
  32979. frequency = 0;
  32980. 800e3fe: 2300 movs r3, #0
  32981. 800e400: 63fb str r3, [r7, #60] @ 0x3c
  32982. break;
  32983. 800e402: e22e b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32984. }
  32985. }
  32986. }
  32987. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  32988. 800e404: e9d7 2300 ldrd r2, r3, [r7]
  32989. 800e408: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  32990. 800e40c: 430b orrs r3, r1
  32991. 800e40e: f040 808f bne.w 800e530 <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  32992. {
  32993. /* Get SPI45 clock source */
  32994. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  32995. 800e412: 4b42 ldr r3, [pc, #264] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32996. 800e414: 6d1b ldr r3, [r3, #80] @ 0x50
  32997. 800e416: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  32998. 800e41a: 63bb str r3, [r7, #56] @ 0x38
  32999. switch (srcclk)
  33000. 800e41c: 6bbb ldr r3, [r7, #56] @ 0x38
  33001. 800e41e: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  33002. 800e422: d06b beq.n 800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  33003. 800e424: 6bbb ldr r3, [r7, #56] @ 0x38
  33004. 800e426: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  33005. 800e42a: d874 bhi.n 800e516 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33006. 800e42c: 6bbb ldr r3, [r7, #56] @ 0x38
  33007. 800e42e: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  33008. 800e432: d056 beq.n 800e4e2 <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  33009. 800e434: 6bbb ldr r3, [r7, #56] @ 0x38
  33010. 800e436: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  33011. 800e43a: d86c bhi.n 800e516 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33012. 800e43c: 6bbb ldr r3, [r7, #56] @ 0x38
  33013. 800e43e: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33014. 800e442: d03b beq.n 800e4bc <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  33015. 800e444: 6bbb ldr r3, [r7, #56] @ 0x38
  33016. 800e446: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33017. 800e44a: d864 bhi.n 800e516 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33018. 800e44c: 6bbb ldr r3, [r7, #56] @ 0x38
  33019. 800e44e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33020. 800e452: d021 beq.n 800e498 <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  33021. 800e454: 6bbb ldr r3, [r7, #56] @ 0x38
  33022. 800e456: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33023. 800e45a: d85c bhi.n 800e516 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33024. 800e45c: 6bbb ldr r3, [r7, #56] @ 0x38
  33025. 800e45e: 2b00 cmp r3, #0
  33026. 800e460: d004 beq.n 800e46c <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  33027. 800e462: 6bbb ldr r3, [r7, #56] @ 0x38
  33028. 800e464: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33029. 800e468: d004 beq.n 800e474 <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  33030. 800e46a: e054 b.n 800e516 <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33031. {
  33032. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  33033. {
  33034. frequency = HAL_RCC_GetPCLK1Freq();
  33035. 800e46c: f7fe fa26 bl 800c8bc <HAL_RCC_GetPCLK1Freq>
  33036. 800e470: 63f8 str r0, [r7, #60] @ 0x3c
  33037. break;
  33038. 800e472: e1f6 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33039. }
  33040. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  33041. {
  33042. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33043. 800e474: 4b29 ldr r3, [pc, #164] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33044. 800e476: 681b ldr r3, [r3, #0]
  33045. 800e478: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33046. 800e47c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33047. 800e480: d107 bne.n 800e492 <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  33048. {
  33049. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33050. 800e482: f107 0318 add.w r3, r7, #24
  33051. 800e486: 4618 mov r0, r3
  33052. 800e488: f000 fa0a bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  33053. frequency = pll2_clocks.PLL2_Q_Frequency;
  33054. 800e48c: 69fb ldr r3, [r7, #28]
  33055. 800e48e: 63fb str r3, [r7, #60] @ 0x3c
  33056. }
  33057. else
  33058. {
  33059. frequency = 0;
  33060. }
  33061. break;
  33062. 800e490: e1e7 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33063. frequency = 0;
  33064. 800e492: 2300 movs r3, #0
  33065. 800e494: 63fb str r3, [r7, #60] @ 0x3c
  33066. break;
  33067. 800e496: e1e4 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33068. }
  33069. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  33070. {
  33071. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33072. 800e498: 4b20 ldr r3, [pc, #128] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33073. 800e49a: 681b ldr r3, [r3, #0]
  33074. 800e49c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33075. 800e4a0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33076. 800e4a4: d107 bne.n 800e4b6 <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  33077. {
  33078. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33079. 800e4a6: f107 030c add.w r3, r7, #12
  33080. 800e4aa: 4618 mov r0, r3
  33081. 800e4ac: f000 fb4c bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  33082. frequency = pll3_clocks.PLL3_Q_Frequency;
  33083. 800e4b0: 693b ldr r3, [r7, #16]
  33084. 800e4b2: 63fb str r3, [r7, #60] @ 0x3c
  33085. }
  33086. else
  33087. {
  33088. frequency = 0;
  33089. }
  33090. break;
  33091. 800e4b4: e1d5 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33092. frequency = 0;
  33093. 800e4b6: 2300 movs r3, #0
  33094. 800e4b8: 63fb str r3, [r7, #60] @ 0x3c
  33095. break;
  33096. 800e4ba: e1d2 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33097. }
  33098. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  33099. {
  33100. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33101. 800e4bc: 4b17 ldr r3, [pc, #92] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33102. 800e4be: 681b ldr r3, [r3, #0]
  33103. 800e4c0: f003 0304 and.w r3, r3, #4
  33104. 800e4c4: 2b04 cmp r3, #4
  33105. 800e4c6: d109 bne.n 800e4dc <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  33106. {
  33107. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33108. 800e4c8: 4b14 ldr r3, [pc, #80] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33109. 800e4ca: 681b ldr r3, [r3, #0]
  33110. 800e4cc: 08db lsrs r3, r3, #3
  33111. 800e4ce: f003 0303 and.w r3, r3, #3
  33112. 800e4d2: 4a13 ldr r2, [pc, #76] @ (800e520 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  33113. 800e4d4: fa22 f303 lsr.w r3, r2, r3
  33114. 800e4d8: 63fb str r3, [r7, #60] @ 0x3c
  33115. }
  33116. else
  33117. {
  33118. frequency = 0;
  33119. }
  33120. break;
  33121. 800e4da: e1c2 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33122. frequency = 0;
  33123. 800e4dc: 2300 movs r3, #0
  33124. 800e4de: 63fb str r3, [r7, #60] @ 0x3c
  33125. break;
  33126. 800e4e0: e1bf b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33127. }
  33128. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  33129. {
  33130. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33131. 800e4e2: 4b0e ldr r3, [pc, #56] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33132. 800e4e4: 681b ldr r3, [r3, #0]
  33133. 800e4e6: f403 7380 and.w r3, r3, #256 @ 0x100
  33134. 800e4ea: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33135. 800e4ee: d102 bne.n 800e4f6 <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  33136. {
  33137. frequency = CSI_VALUE;
  33138. 800e4f0: 4b0c ldr r3, [pc, #48] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  33139. 800e4f2: 63fb str r3, [r7, #60] @ 0x3c
  33140. }
  33141. else
  33142. {
  33143. frequency = 0;
  33144. }
  33145. break;
  33146. 800e4f4: e1b5 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33147. frequency = 0;
  33148. 800e4f6: 2300 movs r3, #0
  33149. 800e4f8: 63fb str r3, [r7, #60] @ 0x3c
  33150. break;
  33151. 800e4fa: e1b2 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33152. }
  33153. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  33154. {
  33155. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33156. 800e4fc: 4b07 ldr r3, [pc, #28] @ (800e51c <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33157. 800e4fe: 681b ldr r3, [r3, #0]
  33158. 800e500: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33159. 800e504: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33160. 800e508: d102 bne.n 800e510 <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  33161. {
  33162. frequency = HSE_VALUE;
  33163. 800e50a: 4b07 ldr r3, [pc, #28] @ (800e528 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  33164. 800e50c: 63fb str r3, [r7, #60] @ 0x3c
  33165. }
  33166. else
  33167. {
  33168. frequency = 0;
  33169. }
  33170. break;
  33171. 800e50e: e1a8 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33172. frequency = 0;
  33173. 800e510: 2300 movs r3, #0
  33174. 800e512: 63fb str r3, [r7, #60] @ 0x3c
  33175. break;
  33176. 800e514: e1a5 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33177. }
  33178. default :
  33179. {
  33180. frequency = 0;
  33181. 800e516: 2300 movs r3, #0
  33182. 800e518: 63fb str r3, [r7, #60] @ 0x3c
  33183. break;
  33184. 800e51a: e1a2 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33185. 800e51c: 58024400 .word 0x58024400
  33186. 800e520: 03d09000 .word 0x03d09000
  33187. 800e524: 003d0900 .word 0x003d0900
  33188. 800e528: 017d7840 .word 0x017d7840
  33189. 800e52c: 00bb8000 .word 0x00bb8000
  33190. }
  33191. }
  33192. }
  33193. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  33194. 800e530: e9d7 2300 ldrd r2, r3, [r7]
  33195. 800e534: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  33196. 800e538: 430b orrs r3, r1
  33197. 800e53a: d173 bne.n 800e624 <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  33198. {
  33199. /* Get ADC clock source */
  33200. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  33201. 800e53c: 4b9c ldr r3, [pc, #624] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33202. 800e53e: 6d9b ldr r3, [r3, #88] @ 0x58
  33203. 800e540: f403 3340 and.w r3, r3, #196608 @ 0x30000
  33204. 800e544: 63bb str r3, [r7, #56] @ 0x38
  33205. switch (srcclk)
  33206. 800e546: 6bbb ldr r3, [r7, #56] @ 0x38
  33207. 800e548: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33208. 800e54c: d02f beq.n 800e5ae <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  33209. 800e54e: 6bbb ldr r3, [r7, #56] @ 0x38
  33210. 800e550: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33211. 800e554: d863 bhi.n 800e61e <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33212. 800e556: 6bbb ldr r3, [r7, #56] @ 0x38
  33213. 800e558: 2b00 cmp r3, #0
  33214. 800e55a: d004 beq.n 800e566 <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  33215. 800e55c: 6bbb ldr r3, [r7, #56] @ 0x38
  33216. 800e55e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33217. 800e562: d012 beq.n 800e58a <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  33218. 800e564: e05b b.n 800e61e <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33219. {
  33220. case RCC_ADCCLKSOURCE_PLL2:
  33221. {
  33222. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33223. 800e566: 4b92 ldr r3, [pc, #584] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33224. 800e568: 681b ldr r3, [r3, #0]
  33225. 800e56a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33226. 800e56e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33227. 800e572: d107 bne.n 800e584 <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  33228. {
  33229. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33230. 800e574: f107 0318 add.w r3, r7, #24
  33231. 800e578: 4618 mov r0, r3
  33232. 800e57a: f000 f991 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  33233. frequency = pll2_clocks.PLL2_P_Frequency;
  33234. 800e57e: 69bb ldr r3, [r7, #24]
  33235. 800e580: 63fb str r3, [r7, #60] @ 0x3c
  33236. }
  33237. else
  33238. {
  33239. frequency = 0;
  33240. }
  33241. break;
  33242. 800e582: e16e b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33243. frequency = 0;
  33244. 800e584: 2300 movs r3, #0
  33245. 800e586: 63fb str r3, [r7, #60] @ 0x3c
  33246. break;
  33247. 800e588: e16b b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33248. }
  33249. case RCC_ADCCLKSOURCE_PLL3:
  33250. {
  33251. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33252. 800e58a: 4b89 ldr r3, [pc, #548] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33253. 800e58c: 681b ldr r3, [r3, #0]
  33254. 800e58e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33255. 800e592: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33256. 800e596: d107 bne.n 800e5a8 <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  33257. {
  33258. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33259. 800e598: f107 030c add.w r3, r7, #12
  33260. 800e59c: 4618 mov r0, r3
  33261. 800e59e: f000 fad3 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  33262. frequency = pll3_clocks.PLL3_R_Frequency;
  33263. 800e5a2: 697b ldr r3, [r7, #20]
  33264. 800e5a4: 63fb str r3, [r7, #60] @ 0x3c
  33265. }
  33266. else
  33267. {
  33268. frequency = 0;
  33269. }
  33270. break;
  33271. 800e5a6: e15c b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33272. frequency = 0;
  33273. 800e5a8: 2300 movs r3, #0
  33274. 800e5aa: 63fb str r3, [r7, #60] @ 0x3c
  33275. break;
  33276. 800e5ac: e159 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33277. }
  33278. case RCC_ADCCLKSOURCE_CLKP:
  33279. {
  33280. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  33281. 800e5ae: 4b80 ldr r3, [pc, #512] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33282. 800e5b0: 6cdb ldr r3, [r3, #76] @ 0x4c
  33283. 800e5b2: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33284. 800e5b6: 637b str r3, [r7, #52] @ 0x34
  33285. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  33286. 800e5b8: 4b7d ldr r3, [pc, #500] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33287. 800e5ba: 681b ldr r3, [r3, #0]
  33288. 800e5bc: f003 0304 and.w r3, r3, #4
  33289. 800e5c0: 2b04 cmp r3, #4
  33290. 800e5c2: d10c bne.n 800e5de <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33291. 800e5c4: 6b7b ldr r3, [r7, #52] @ 0x34
  33292. 800e5c6: 2b00 cmp r3, #0
  33293. 800e5c8: d109 bne.n 800e5de <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33294. {
  33295. /* In Case the CKPER Source is HSI */
  33296. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33297. 800e5ca: 4b79 ldr r3, [pc, #484] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33298. 800e5cc: 681b ldr r3, [r3, #0]
  33299. 800e5ce: 08db lsrs r3, r3, #3
  33300. 800e5d0: f003 0303 and.w r3, r3, #3
  33301. 800e5d4: 4a77 ldr r2, [pc, #476] @ (800e7b4 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33302. 800e5d6: fa22 f303 lsr.w r3, r2, r3
  33303. 800e5da: 63fb str r3, [r7, #60] @ 0x3c
  33304. 800e5dc: e01e b.n 800e61c <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33305. }
  33306. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  33307. 800e5de: 4b74 ldr r3, [pc, #464] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33308. 800e5e0: 681b ldr r3, [r3, #0]
  33309. 800e5e2: f403 7380 and.w r3, r3, #256 @ 0x100
  33310. 800e5e6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33311. 800e5ea: d106 bne.n 800e5fa <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33312. 800e5ec: 6b7b ldr r3, [r7, #52] @ 0x34
  33313. 800e5ee: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33314. 800e5f2: d102 bne.n 800e5fa <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33315. {
  33316. /* In Case the CKPER Source is CSI */
  33317. frequency = CSI_VALUE;
  33318. 800e5f4: 4b70 ldr r3, [pc, #448] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33319. 800e5f6: 63fb str r3, [r7, #60] @ 0x3c
  33320. 800e5f8: e010 b.n 800e61c <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33321. }
  33322. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  33323. 800e5fa: 4b6d ldr r3, [pc, #436] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33324. 800e5fc: 681b ldr r3, [r3, #0]
  33325. 800e5fe: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33326. 800e602: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33327. 800e606: d106 bne.n 800e616 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33328. 800e608: 6b7b ldr r3, [r7, #52] @ 0x34
  33329. 800e60a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33330. 800e60e: d102 bne.n 800e616 <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33331. {
  33332. /* In Case the CKPER Source is HSE */
  33333. frequency = HSE_VALUE;
  33334. 800e610: 4b6a ldr r3, [pc, #424] @ (800e7bc <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33335. 800e612: 63fb str r3, [r7, #60] @ 0x3c
  33336. 800e614: e002 b.n 800e61c <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33337. }
  33338. else
  33339. {
  33340. /* In Case the CKPER is disabled*/
  33341. frequency = 0;
  33342. 800e616: 2300 movs r3, #0
  33343. 800e618: 63fb str r3, [r7, #60] @ 0x3c
  33344. }
  33345. break;
  33346. 800e61a: e122 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33347. 800e61c: e121 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33348. }
  33349. default :
  33350. {
  33351. frequency = 0;
  33352. 800e61e: 2300 movs r3, #0
  33353. 800e620: 63fb str r3, [r7, #60] @ 0x3c
  33354. break;
  33355. 800e622: e11e b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33356. }
  33357. }
  33358. }
  33359. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  33360. 800e624: e9d7 2300 ldrd r2, r3, [r7]
  33361. 800e628: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  33362. 800e62c: 430b orrs r3, r1
  33363. 800e62e: d133 bne.n 800e698 <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  33364. {
  33365. /* Get SDMMC clock source */
  33366. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  33367. 800e630: 4b5f ldr r3, [pc, #380] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33368. 800e632: 6cdb ldr r3, [r3, #76] @ 0x4c
  33369. 800e634: f403 3380 and.w r3, r3, #65536 @ 0x10000
  33370. 800e638: 63bb str r3, [r7, #56] @ 0x38
  33371. switch (srcclk)
  33372. 800e63a: 6bbb ldr r3, [r7, #56] @ 0x38
  33373. 800e63c: 2b00 cmp r3, #0
  33374. 800e63e: d004 beq.n 800e64a <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  33375. 800e640: 6bbb ldr r3, [r7, #56] @ 0x38
  33376. 800e642: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33377. 800e646: d012 beq.n 800e66e <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  33378. 800e648: e023 b.n 800e692 <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  33379. {
  33380. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  33381. {
  33382. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33383. 800e64a: 4b59 ldr r3, [pc, #356] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33384. 800e64c: 681b ldr r3, [r3, #0]
  33385. 800e64e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33386. 800e652: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33387. 800e656: d107 bne.n 800e668 <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  33388. {
  33389. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33390. 800e658: f107 0324 add.w r3, r7, #36 @ 0x24
  33391. 800e65c: 4618 mov r0, r3
  33392. 800e65e: f000 fbc7 bl 800edf0 <HAL_RCCEx_GetPLL1ClockFreq>
  33393. frequency = pll1_clocks.PLL1_Q_Frequency;
  33394. 800e662: 6abb ldr r3, [r7, #40] @ 0x28
  33395. 800e664: 63fb str r3, [r7, #60] @ 0x3c
  33396. }
  33397. else
  33398. {
  33399. frequency = 0;
  33400. }
  33401. break;
  33402. 800e666: e0fc b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33403. frequency = 0;
  33404. 800e668: 2300 movs r3, #0
  33405. 800e66a: 63fb str r3, [r7, #60] @ 0x3c
  33406. break;
  33407. 800e66c: e0f9 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33408. }
  33409. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  33410. {
  33411. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33412. 800e66e: 4b50 ldr r3, [pc, #320] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33413. 800e670: 681b ldr r3, [r3, #0]
  33414. 800e672: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33415. 800e676: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33416. 800e67a: d107 bne.n 800e68c <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  33417. {
  33418. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33419. 800e67c: f107 0318 add.w r3, r7, #24
  33420. 800e680: 4618 mov r0, r3
  33421. 800e682: f000 f90d bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  33422. frequency = pll2_clocks.PLL2_R_Frequency;
  33423. 800e686: 6a3b ldr r3, [r7, #32]
  33424. 800e688: 63fb str r3, [r7, #60] @ 0x3c
  33425. }
  33426. else
  33427. {
  33428. frequency = 0;
  33429. }
  33430. break;
  33431. 800e68a: e0ea b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33432. frequency = 0;
  33433. 800e68c: 2300 movs r3, #0
  33434. 800e68e: 63fb str r3, [r7, #60] @ 0x3c
  33435. break;
  33436. 800e690: e0e7 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33437. }
  33438. default :
  33439. {
  33440. frequency = 0;
  33441. 800e692: 2300 movs r3, #0
  33442. 800e694: 63fb str r3, [r7, #60] @ 0x3c
  33443. break;
  33444. 800e696: e0e4 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33445. }
  33446. }
  33447. }
  33448. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  33449. 800e698: e9d7 2300 ldrd r2, r3, [r7]
  33450. 800e69c: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  33451. 800e6a0: 430b orrs r3, r1
  33452. 800e6a2: f040 808d bne.w 800e7c0 <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  33453. {
  33454. /* Get SPI6 clock source */
  33455. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  33456. 800e6a6: 4b42 ldr r3, [pc, #264] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33457. 800e6a8: 6d9b ldr r3, [r3, #88] @ 0x58
  33458. 800e6aa: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  33459. 800e6ae: 63bb str r3, [r7, #56] @ 0x38
  33460. switch (srcclk)
  33461. 800e6b0: 6bbb ldr r3, [r7, #56] @ 0x38
  33462. 800e6b2: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33463. 800e6b6: d06b beq.n 800e790 <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  33464. 800e6b8: 6bbb ldr r3, [r7, #56] @ 0x38
  33465. 800e6ba: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33466. 800e6be: d874 bhi.n 800e7aa <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33467. 800e6c0: 6bbb ldr r3, [r7, #56] @ 0x38
  33468. 800e6c2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33469. 800e6c6: d056 beq.n 800e776 <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  33470. 800e6c8: 6bbb ldr r3, [r7, #56] @ 0x38
  33471. 800e6ca: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33472. 800e6ce: d86c bhi.n 800e7aa <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33473. 800e6d0: 6bbb ldr r3, [r7, #56] @ 0x38
  33474. 800e6d2: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33475. 800e6d6: d03b beq.n 800e750 <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  33476. 800e6d8: 6bbb ldr r3, [r7, #56] @ 0x38
  33477. 800e6da: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33478. 800e6de: d864 bhi.n 800e7aa <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33479. 800e6e0: 6bbb ldr r3, [r7, #56] @ 0x38
  33480. 800e6e2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33481. 800e6e6: d021 beq.n 800e72c <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  33482. 800e6e8: 6bbb ldr r3, [r7, #56] @ 0x38
  33483. 800e6ea: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33484. 800e6ee: d85c bhi.n 800e7aa <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33485. 800e6f0: 6bbb ldr r3, [r7, #56] @ 0x38
  33486. 800e6f2: 2b00 cmp r3, #0
  33487. 800e6f4: d004 beq.n 800e700 <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  33488. 800e6f6: 6bbb ldr r3, [r7, #56] @ 0x38
  33489. 800e6f8: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33490. 800e6fc: d004 beq.n 800e708 <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  33491. 800e6fe: e054 b.n 800e7aa <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33492. {
  33493. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  33494. {
  33495. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  33496. 800e700: f000 f8b8 bl 800e874 <HAL_RCCEx_GetD3PCLK1Freq>
  33497. 800e704: 63f8 str r0, [r7, #60] @ 0x3c
  33498. break;
  33499. 800e706: e0ac b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33500. }
  33501. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  33502. {
  33503. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33504. 800e708: 4b29 ldr r3, [pc, #164] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33505. 800e70a: 681b ldr r3, [r3, #0]
  33506. 800e70c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33507. 800e710: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33508. 800e714: d107 bne.n 800e726 <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  33509. {
  33510. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33511. 800e716: f107 0318 add.w r3, r7, #24
  33512. 800e71a: 4618 mov r0, r3
  33513. 800e71c: f000 f8c0 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  33514. frequency = pll2_clocks.PLL2_Q_Frequency;
  33515. 800e720: 69fb ldr r3, [r7, #28]
  33516. 800e722: 63fb str r3, [r7, #60] @ 0x3c
  33517. }
  33518. else
  33519. {
  33520. frequency = 0;
  33521. }
  33522. break;
  33523. 800e724: e09d b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33524. frequency = 0;
  33525. 800e726: 2300 movs r3, #0
  33526. 800e728: 63fb str r3, [r7, #60] @ 0x3c
  33527. break;
  33528. 800e72a: e09a b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33529. }
  33530. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  33531. {
  33532. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33533. 800e72c: 4b20 ldr r3, [pc, #128] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33534. 800e72e: 681b ldr r3, [r3, #0]
  33535. 800e730: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33536. 800e734: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33537. 800e738: d107 bne.n 800e74a <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  33538. {
  33539. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33540. 800e73a: f107 030c add.w r3, r7, #12
  33541. 800e73e: 4618 mov r0, r3
  33542. 800e740: f000 fa02 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  33543. frequency = pll3_clocks.PLL3_Q_Frequency;
  33544. 800e744: 693b ldr r3, [r7, #16]
  33545. 800e746: 63fb str r3, [r7, #60] @ 0x3c
  33546. }
  33547. else
  33548. {
  33549. frequency = 0;
  33550. }
  33551. break;
  33552. 800e748: e08b b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33553. frequency = 0;
  33554. 800e74a: 2300 movs r3, #0
  33555. 800e74c: 63fb str r3, [r7, #60] @ 0x3c
  33556. break;
  33557. 800e74e: e088 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33558. }
  33559. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  33560. {
  33561. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33562. 800e750: 4b17 ldr r3, [pc, #92] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33563. 800e752: 681b ldr r3, [r3, #0]
  33564. 800e754: f003 0304 and.w r3, r3, #4
  33565. 800e758: 2b04 cmp r3, #4
  33566. 800e75a: d109 bne.n 800e770 <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  33567. {
  33568. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33569. 800e75c: 4b14 ldr r3, [pc, #80] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33570. 800e75e: 681b ldr r3, [r3, #0]
  33571. 800e760: 08db lsrs r3, r3, #3
  33572. 800e762: f003 0303 and.w r3, r3, #3
  33573. 800e766: 4a13 ldr r2, [pc, #76] @ (800e7b4 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33574. 800e768: fa22 f303 lsr.w r3, r2, r3
  33575. 800e76c: 63fb str r3, [r7, #60] @ 0x3c
  33576. }
  33577. else
  33578. {
  33579. frequency = 0;
  33580. }
  33581. break;
  33582. 800e76e: e078 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33583. frequency = 0;
  33584. 800e770: 2300 movs r3, #0
  33585. 800e772: 63fb str r3, [r7, #60] @ 0x3c
  33586. break;
  33587. 800e774: e075 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33588. }
  33589. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  33590. {
  33591. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33592. 800e776: 4b0e ldr r3, [pc, #56] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33593. 800e778: 681b ldr r3, [r3, #0]
  33594. 800e77a: f403 7380 and.w r3, r3, #256 @ 0x100
  33595. 800e77e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33596. 800e782: d102 bne.n 800e78a <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  33597. {
  33598. frequency = CSI_VALUE;
  33599. 800e784: 4b0c ldr r3, [pc, #48] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33600. 800e786: 63fb str r3, [r7, #60] @ 0x3c
  33601. }
  33602. else
  33603. {
  33604. frequency = 0;
  33605. }
  33606. break;
  33607. 800e788: e06b b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33608. frequency = 0;
  33609. 800e78a: 2300 movs r3, #0
  33610. 800e78c: 63fb str r3, [r7, #60] @ 0x3c
  33611. break;
  33612. 800e78e: e068 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33613. }
  33614. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  33615. {
  33616. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33617. 800e790: 4b07 ldr r3, [pc, #28] @ (800e7b0 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33618. 800e792: 681b ldr r3, [r3, #0]
  33619. 800e794: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33620. 800e798: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33621. 800e79c: d102 bne.n 800e7a4 <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  33622. {
  33623. frequency = HSE_VALUE;
  33624. 800e79e: 4b07 ldr r3, [pc, #28] @ (800e7bc <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33625. 800e7a0: 63fb str r3, [r7, #60] @ 0x3c
  33626. }
  33627. else
  33628. {
  33629. frequency = 0;
  33630. }
  33631. break;
  33632. 800e7a2: e05e b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33633. frequency = 0;
  33634. 800e7a4: 2300 movs r3, #0
  33635. 800e7a6: 63fb str r3, [r7, #60] @ 0x3c
  33636. break;
  33637. 800e7a8: e05b b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33638. break;
  33639. }
  33640. #endif /* RCC_SPI6CLKSOURCE_PIN */
  33641. default :
  33642. {
  33643. frequency = 0;
  33644. 800e7aa: 2300 movs r3, #0
  33645. 800e7ac: 63fb str r3, [r7, #60] @ 0x3c
  33646. break;
  33647. 800e7ae: e058 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33648. 800e7b0: 58024400 .word 0x58024400
  33649. 800e7b4: 03d09000 .word 0x03d09000
  33650. 800e7b8: 003d0900 .word 0x003d0900
  33651. 800e7bc: 017d7840 .word 0x017d7840
  33652. }
  33653. }
  33654. }
  33655. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  33656. 800e7c0: e9d7 2300 ldrd r2, r3, [r7]
  33657. 800e7c4: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  33658. 800e7c8: 430b orrs r3, r1
  33659. 800e7ca: d148 bne.n 800e85e <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  33660. {
  33661. /* Get FDCAN clock source */
  33662. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  33663. 800e7cc: 4b27 ldr r3, [pc, #156] @ (800e86c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33664. 800e7ce: 6d1b ldr r3, [r3, #80] @ 0x50
  33665. 800e7d0: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33666. 800e7d4: 63bb str r3, [r7, #56] @ 0x38
  33667. switch (srcclk)
  33668. 800e7d6: 6bbb ldr r3, [r7, #56] @ 0x38
  33669. 800e7d8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33670. 800e7dc: d02a beq.n 800e834 <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  33671. 800e7de: 6bbb ldr r3, [r7, #56] @ 0x38
  33672. 800e7e0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33673. 800e7e4: d838 bhi.n 800e858 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33674. 800e7e6: 6bbb ldr r3, [r7, #56] @ 0x38
  33675. 800e7e8: 2b00 cmp r3, #0
  33676. 800e7ea: d004 beq.n 800e7f6 <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  33677. 800e7ec: 6bbb ldr r3, [r7, #56] @ 0x38
  33678. 800e7ee: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33679. 800e7f2: d00d beq.n 800e810 <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  33680. 800e7f4: e030 b.n 800e858 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33681. {
  33682. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  33683. {
  33684. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33685. 800e7f6: 4b1d ldr r3, [pc, #116] @ (800e86c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33686. 800e7f8: 681b ldr r3, [r3, #0]
  33687. 800e7fa: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33688. 800e7fe: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33689. 800e802: d102 bne.n 800e80a <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  33690. {
  33691. frequency = HSE_VALUE;
  33692. 800e804: 4b1a ldr r3, [pc, #104] @ (800e870 <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  33693. 800e806: 63fb str r3, [r7, #60] @ 0x3c
  33694. }
  33695. else
  33696. {
  33697. frequency = 0;
  33698. }
  33699. break;
  33700. 800e808: e02b b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33701. frequency = 0;
  33702. 800e80a: 2300 movs r3, #0
  33703. 800e80c: 63fb str r3, [r7, #60] @ 0x3c
  33704. break;
  33705. 800e80e: e028 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33706. }
  33707. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  33708. {
  33709. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33710. 800e810: 4b16 ldr r3, [pc, #88] @ (800e86c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33711. 800e812: 681b ldr r3, [r3, #0]
  33712. 800e814: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33713. 800e818: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33714. 800e81c: d107 bne.n 800e82e <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  33715. {
  33716. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33717. 800e81e: f107 0324 add.w r3, r7, #36 @ 0x24
  33718. 800e822: 4618 mov r0, r3
  33719. 800e824: f000 fae4 bl 800edf0 <HAL_RCCEx_GetPLL1ClockFreq>
  33720. frequency = pll1_clocks.PLL1_Q_Frequency;
  33721. 800e828: 6abb ldr r3, [r7, #40] @ 0x28
  33722. 800e82a: 63fb str r3, [r7, #60] @ 0x3c
  33723. }
  33724. else
  33725. {
  33726. frequency = 0;
  33727. }
  33728. break;
  33729. 800e82c: e019 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33730. frequency = 0;
  33731. 800e82e: 2300 movs r3, #0
  33732. 800e830: 63fb str r3, [r7, #60] @ 0x3c
  33733. break;
  33734. 800e832: e016 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33735. }
  33736. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  33737. {
  33738. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33739. 800e834: 4b0d ldr r3, [pc, #52] @ (800e86c <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33740. 800e836: 681b ldr r3, [r3, #0]
  33741. 800e838: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33742. 800e83c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33743. 800e840: d107 bne.n 800e852 <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  33744. {
  33745. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33746. 800e842: f107 0318 add.w r3, r7, #24
  33747. 800e846: 4618 mov r0, r3
  33748. 800e848: f000 f82a bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  33749. frequency = pll2_clocks.PLL2_Q_Frequency;
  33750. 800e84c: 69fb ldr r3, [r7, #28]
  33751. 800e84e: 63fb str r3, [r7, #60] @ 0x3c
  33752. }
  33753. else
  33754. {
  33755. frequency = 0;
  33756. }
  33757. break;
  33758. 800e850: e007 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33759. frequency = 0;
  33760. 800e852: 2300 movs r3, #0
  33761. 800e854: 63fb str r3, [r7, #60] @ 0x3c
  33762. break;
  33763. 800e856: e004 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33764. }
  33765. default :
  33766. {
  33767. frequency = 0;
  33768. 800e858: 2300 movs r3, #0
  33769. 800e85a: 63fb str r3, [r7, #60] @ 0x3c
  33770. break;
  33771. 800e85c: e001 b.n 800e862 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33772. }
  33773. }
  33774. }
  33775. else
  33776. {
  33777. frequency = 0;
  33778. 800e85e: 2300 movs r3, #0
  33779. 800e860: 63fb str r3, [r7, #60] @ 0x3c
  33780. }
  33781. return frequency;
  33782. 800e862: 6bfb ldr r3, [r7, #60] @ 0x3c
  33783. }
  33784. 800e864: 4618 mov r0, r3
  33785. 800e866: 3740 adds r7, #64 @ 0x40
  33786. 800e868: 46bd mov sp, r7
  33787. 800e86a: bd80 pop {r7, pc}
  33788. 800e86c: 58024400 .word 0x58024400
  33789. 800e870: 017d7840 .word 0x017d7840
  33790. 0800e874 <HAL_RCCEx_GetD3PCLK1Freq>:
  33791. * @note Each time D3PCLK1 changes, this function must be called to update the
  33792. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  33793. * @retval D3PCLK1 frequency
  33794. */
  33795. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  33796. {
  33797. 800e874: b580 push {r7, lr}
  33798. 800e876: af00 add r7, sp, #0
  33799. #if defined(RCC_D3CFGR_D3PPRE)
  33800. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33801. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  33802. 800e878: f7fd fff0 bl 800c85c <HAL_RCC_GetHCLKFreq>
  33803. 800e87c: 4602 mov r2, r0
  33804. 800e87e: 4b06 ldr r3, [pc, #24] @ (800e898 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  33805. 800e880: 6a1b ldr r3, [r3, #32]
  33806. 800e882: 091b lsrs r3, r3, #4
  33807. 800e884: f003 0307 and.w r3, r3, #7
  33808. 800e888: 4904 ldr r1, [pc, #16] @ (800e89c <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  33809. 800e88a: 5ccb ldrb r3, [r1, r3]
  33810. 800e88c: f003 031f and.w r3, r3, #31
  33811. 800e890: fa22 f303 lsr.w r3, r2, r3
  33812. #else
  33813. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33814. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  33815. #endif
  33816. }
  33817. 800e894: 4618 mov r0, r3
  33818. 800e896: bd80 pop {r7, pc}
  33819. 800e898: 58024400 .word 0x58024400
  33820. 800e89c: 080186fc .word 0x080186fc
  33821. 0800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>:
  33822. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  33823. * @param PLL2_Clocks structure.
  33824. * @retval None
  33825. */
  33826. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  33827. {
  33828. 800e8a0: b480 push {r7}
  33829. 800e8a2: b089 sub sp, #36 @ 0x24
  33830. 800e8a4: af00 add r7, sp, #0
  33831. 800e8a6: 6078 str r0, [r7, #4]
  33832. float_t fracn2, pll2vco;
  33833. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  33834. PLL2xCLK = PLL2_VCO / PLL2x
  33835. */
  33836. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33837. 800e8a8: 4ba1 ldr r3, [pc, #644] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33838. 800e8aa: 6a9b ldr r3, [r3, #40] @ 0x28
  33839. 800e8ac: f003 0303 and.w r3, r3, #3
  33840. 800e8b0: 61bb str r3, [r7, #24]
  33841. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  33842. 800e8b2: 4b9f ldr r3, [pc, #636] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33843. 800e8b4: 6a9b ldr r3, [r3, #40] @ 0x28
  33844. 800e8b6: 0b1b lsrs r3, r3, #12
  33845. 800e8b8: f003 033f and.w r3, r3, #63 @ 0x3f
  33846. 800e8bc: 617b str r3, [r7, #20]
  33847. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  33848. 800e8be: 4b9c ldr r3, [pc, #624] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33849. 800e8c0: 6adb ldr r3, [r3, #44] @ 0x2c
  33850. 800e8c2: 091b lsrs r3, r3, #4
  33851. 800e8c4: f003 0301 and.w r3, r3, #1
  33852. 800e8c8: 613b str r3, [r7, #16]
  33853. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  33854. 800e8ca: 4b99 ldr r3, [pc, #612] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33855. 800e8cc: 6bdb ldr r3, [r3, #60] @ 0x3c
  33856. 800e8ce: 08db lsrs r3, r3, #3
  33857. 800e8d0: f3c3 030c ubfx r3, r3, #0, #13
  33858. 800e8d4: 693a ldr r2, [r7, #16]
  33859. 800e8d6: fb02 f303 mul.w r3, r2, r3
  33860. 800e8da: ee07 3a90 vmov s15, r3
  33861. 800e8de: eef8 7a67 vcvt.f32.u32 s15, s15
  33862. 800e8e2: edc7 7a03 vstr s15, [r7, #12]
  33863. if (pll2m != 0U)
  33864. 800e8e6: 697b ldr r3, [r7, #20]
  33865. 800e8e8: 2b00 cmp r3, #0
  33866. 800e8ea: f000 8111 beq.w 800eb10 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  33867. {
  33868. switch (pllsource)
  33869. 800e8ee: 69bb ldr r3, [r7, #24]
  33870. 800e8f0: 2b02 cmp r3, #2
  33871. 800e8f2: f000 8083 beq.w 800e9fc <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  33872. 800e8f6: 69bb ldr r3, [r7, #24]
  33873. 800e8f8: 2b02 cmp r3, #2
  33874. 800e8fa: f200 80a1 bhi.w 800ea40 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33875. 800e8fe: 69bb ldr r3, [r7, #24]
  33876. 800e900: 2b00 cmp r3, #0
  33877. 800e902: d003 beq.n 800e90c <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  33878. 800e904: 69bb ldr r3, [r7, #24]
  33879. 800e906: 2b01 cmp r3, #1
  33880. 800e908: d056 beq.n 800e9b8 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  33881. 800e90a: e099 b.n 800ea40 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33882. {
  33883. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33884. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33885. 800e90c: 4b88 ldr r3, [pc, #544] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33886. 800e90e: 681b ldr r3, [r3, #0]
  33887. 800e910: f003 0320 and.w r3, r3, #32
  33888. 800e914: 2b00 cmp r3, #0
  33889. 800e916: d02d beq.n 800e974 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  33890. {
  33891. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33892. 800e918: 4b85 ldr r3, [pc, #532] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33893. 800e91a: 681b ldr r3, [r3, #0]
  33894. 800e91c: 08db lsrs r3, r3, #3
  33895. 800e91e: f003 0303 and.w r3, r3, #3
  33896. 800e922: 4a84 ldr r2, [pc, #528] @ (800eb34 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  33897. 800e924: fa22 f303 lsr.w r3, r2, r3
  33898. 800e928: 60bb str r3, [r7, #8]
  33899. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33900. 800e92a: 68bb ldr r3, [r7, #8]
  33901. 800e92c: ee07 3a90 vmov s15, r3
  33902. 800e930: eef8 6a67 vcvt.f32.u32 s13, s15
  33903. 800e934: 697b ldr r3, [r7, #20]
  33904. 800e936: ee07 3a90 vmov s15, r3
  33905. 800e93a: eef8 7a67 vcvt.f32.u32 s15, s15
  33906. 800e93e: ee86 7aa7 vdiv.f32 s14, s13, s15
  33907. 800e942: 4b7b ldr r3, [pc, #492] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33908. 800e944: 6b9b ldr r3, [r3, #56] @ 0x38
  33909. 800e946: f3c3 0308 ubfx r3, r3, #0, #9
  33910. 800e94a: ee07 3a90 vmov s15, r3
  33911. 800e94e: eef8 6a67 vcvt.f32.u32 s13, s15
  33912. 800e952: ed97 6a03 vldr s12, [r7, #12]
  33913. 800e956: eddf 5a78 vldr s11, [pc, #480] @ 800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33914. 800e95a: eec6 7a25 vdiv.f32 s15, s12, s11
  33915. 800e95e: ee76 7aa7 vadd.f32 s15, s13, s15
  33916. 800e962: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33917. 800e966: ee77 7aa6 vadd.f32 s15, s15, s13
  33918. 800e96a: ee67 7a27 vmul.f32 s15, s14, s15
  33919. 800e96e: edc7 7a07 vstr s15, [r7, #28]
  33920. }
  33921. else
  33922. {
  33923. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33924. }
  33925. break;
  33926. 800e972: e087 b.n 800ea84 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33927. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33928. 800e974: 697b ldr r3, [r7, #20]
  33929. 800e976: ee07 3a90 vmov s15, r3
  33930. 800e97a: eef8 7a67 vcvt.f32.u32 s15, s15
  33931. 800e97e: eddf 6a6f vldr s13, [pc, #444] @ 800eb3c <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  33932. 800e982: ee86 7aa7 vdiv.f32 s14, s13, s15
  33933. 800e986: 4b6a ldr r3, [pc, #424] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33934. 800e988: 6b9b ldr r3, [r3, #56] @ 0x38
  33935. 800e98a: f3c3 0308 ubfx r3, r3, #0, #9
  33936. 800e98e: ee07 3a90 vmov s15, r3
  33937. 800e992: eef8 6a67 vcvt.f32.u32 s13, s15
  33938. 800e996: ed97 6a03 vldr s12, [r7, #12]
  33939. 800e99a: eddf 5a67 vldr s11, [pc, #412] @ 800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33940. 800e99e: eec6 7a25 vdiv.f32 s15, s12, s11
  33941. 800e9a2: ee76 7aa7 vadd.f32 s15, s13, s15
  33942. 800e9a6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33943. 800e9aa: ee77 7aa6 vadd.f32 s15, s15, s13
  33944. 800e9ae: ee67 7a27 vmul.f32 s15, s14, s15
  33945. 800e9b2: edc7 7a07 vstr s15, [r7, #28]
  33946. break;
  33947. 800e9b6: e065 b.n 800ea84 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33948. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33949. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33950. 800e9b8: 697b ldr r3, [r7, #20]
  33951. 800e9ba: ee07 3a90 vmov s15, r3
  33952. 800e9be: eef8 7a67 vcvt.f32.u32 s15, s15
  33953. 800e9c2: eddf 6a5f vldr s13, [pc, #380] @ 800eb40 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  33954. 800e9c6: ee86 7aa7 vdiv.f32 s14, s13, s15
  33955. 800e9ca: 4b59 ldr r3, [pc, #356] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33956. 800e9cc: 6b9b ldr r3, [r3, #56] @ 0x38
  33957. 800e9ce: f3c3 0308 ubfx r3, r3, #0, #9
  33958. 800e9d2: ee07 3a90 vmov s15, r3
  33959. 800e9d6: eef8 6a67 vcvt.f32.u32 s13, s15
  33960. 800e9da: ed97 6a03 vldr s12, [r7, #12]
  33961. 800e9de: eddf 5a56 vldr s11, [pc, #344] @ 800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33962. 800e9e2: eec6 7a25 vdiv.f32 s15, s12, s11
  33963. 800e9e6: ee76 7aa7 vadd.f32 s15, s13, s15
  33964. 800e9ea: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33965. 800e9ee: ee77 7aa6 vadd.f32 s15, s15, s13
  33966. 800e9f2: ee67 7a27 vmul.f32 s15, s14, s15
  33967. 800e9f6: edc7 7a07 vstr s15, [r7, #28]
  33968. break;
  33969. 800e9fa: e043 b.n 800ea84 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33970. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33971. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33972. 800e9fc: 697b ldr r3, [r7, #20]
  33973. 800e9fe: ee07 3a90 vmov s15, r3
  33974. 800ea02: eef8 7a67 vcvt.f32.u32 s15, s15
  33975. 800ea06: eddf 6a4f vldr s13, [pc, #316] @ 800eb44 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  33976. 800ea0a: ee86 7aa7 vdiv.f32 s14, s13, s15
  33977. 800ea0e: 4b48 ldr r3, [pc, #288] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33978. 800ea10: 6b9b ldr r3, [r3, #56] @ 0x38
  33979. 800ea12: f3c3 0308 ubfx r3, r3, #0, #9
  33980. 800ea16: ee07 3a90 vmov s15, r3
  33981. 800ea1a: eef8 6a67 vcvt.f32.u32 s13, s15
  33982. 800ea1e: ed97 6a03 vldr s12, [r7, #12]
  33983. 800ea22: eddf 5a45 vldr s11, [pc, #276] @ 800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33984. 800ea26: eec6 7a25 vdiv.f32 s15, s12, s11
  33985. 800ea2a: ee76 7aa7 vadd.f32 s15, s13, s15
  33986. 800ea2e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33987. 800ea32: ee77 7aa6 vadd.f32 s15, s15, s13
  33988. 800ea36: ee67 7a27 vmul.f32 s15, s14, s15
  33989. 800ea3a: edc7 7a07 vstr s15, [r7, #28]
  33990. break;
  33991. 800ea3e: e021 b.n 800ea84 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33992. default:
  33993. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33994. 800ea40: 697b ldr r3, [r7, #20]
  33995. 800ea42: ee07 3a90 vmov s15, r3
  33996. 800ea46: eef8 7a67 vcvt.f32.u32 s15, s15
  33997. 800ea4a: eddf 6a3d vldr s13, [pc, #244] @ 800eb40 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  33998. 800ea4e: ee86 7aa7 vdiv.f32 s14, s13, s15
  33999. 800ea52: 4b37 ldr r3, [pc, #220] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34000. 800ea54: 6b9b ldr r3, [r3, #56] @ 0x38
  34001. 800ea56: f3c3 0308 ubfx r3, r3, #0, #9
  34002. 800ea5a: ee07 3a90 vmov s15, r3
  34003. 800ea5e: eef8 6a67 vcvt.f32.u32 s13, s15
  34004. 800ea62: ed97 6a03 vldr s12, [r7, #12]
  34005. 800ea66: eddf 5a34 vldr s11, [pc, #208] @ 800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  34006. 800ea6a: eec6 7a25 vdiv.f32 s15, s12, s11
  34007. 800ea6e: ee76 7aa7 vadd.f32 s15, s13, s15
  34008. 800ea72: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34009. 800ea76: ee77 7aa6 vadd.f32 s15, s15, s13
  34010. 800ea7a: ee67 7a27 vmul.f32 s15, s14, s15
  34011. 800ea7e: edc7 7a07 vstr s15, [r7, #28]
  34012. break;
  34013. 800ea82: bf00 nop
  34014. }
  34015. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  34016. 800ea84: 4b2a ldr r3, [pc, #168] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34017. 800ea86: 6b9b ldr r3, [r3, #56] @ 0x38
  34018. 800ea88: 0a5b lsrs r3, r3, #9
  34019. 800ea8a: f003 037f and.w r3, r3, #127 @ 0x7f
  34020. 800ea8e: ee07 3a90 vmov s15, r3
  34021. 800ea92: eef8 7a67 vcvt.f32.u32 s15, s15
  34022. 800ea96: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34023. 800ea9a: ee37 7a87 vadd.f32 s14, s15, s14
  34024. 800ea9e: edd7 6a07 vldr s13, [r7, #28]
  34025. 800eaa2: eec6 7a87 vdiv.f32 s15, s13, s14
  34026. 800eaa6: eefc 7ae7 vcvt.u32.f32 s15, s15
  34027. 800eaaa: ee17 2a90 vmov r2, s15
  34028. 800eaae: 687b ldr r3, [r7, #4]
  34029. 800eab0: 601a str r2, [r3, #0]
  34030. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  34031. 800eab2: 4b1f ldr r3, [pc, #124] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34032. 800eab4: 6b9b ldr r3, [r3, #56] @ 0x38
  34033. 800eab6: 0c1b lsrs r3, r3, #16
  34034. 800eab8: f003 037f and.w r3, r3, #127 @ 0x7f
  34035. 800eabc: ee07 3a90 vmov s15, r3
  34036. 800eac0: eef8 7a67 vcvt.f32.u32 s15, s15
  34037. 800eac4: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34038. 800eac8: ee37 7a87 vadd.f32 s14, s15, s14
  34039. 800eacc: edd7 6a07 vldr s13, [r7, #28]
  34040. 800ead0: eec6 7a87 vdiv.f32 s15, s13, s14
  34041. 800ead4: eefc 7ae7 vcvt.u32.f32 s15, s15
  34042. 800ead8: ee17 2a90 vmov r2, s15
  34043. 800eadc: 687b ldr r3, [r7, #4]
  34044. 800eade: 605a str r2, [r3, #4]
  34045. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  34046. 800eae0: 4b13 ldr r3, [pc, #76] @ (800eb30 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34047. 800eae2: 6b9b ldr r3, [r3, #56] @ 0x38
  34048. 800eae4: 0e1b lsrs r3, r3, #24
  34049. 800eae6: f003 037f and.w r3, r3, #127 @ 0x7f
  34050. 800eaea: ee07 3a90 vmov s15, r3
  34051. 800eaee: eef8 7a67 vcvt.f32.u32 s15, s15
  34052. 800eaf2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34053. 800eaf6: ee37 7a87 vadd.f32 s14, s15, s14
  34054. 800eafa: edd7 6a07 vldr s13, [r7, #28]
  34055. 800eafe: eec6 7a87 vdiv.f32 s15, s13, s14
  34056. 800eb02: eefc 7ae7 vcvt.u32.f32 s15, s15
  34057. 800eb06: ee17 2a90 vmov r2, s15
  34058. 800eb0a: 687b ldr r3, [r7, #4]
  34059. 800eb0c: 609a str r2, [r3, #8]
  34060. {
  34061. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34062. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34063. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34064. }
  34065. }
  34066. 800eb0e: e008 b.n 800eb22 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  34067. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34068. 800eb10: 687b ldr r3, [r7, #4]
  34069. 800eb12: 2200 movs r2, #0
  34070. 800eb14: 601a str r2, [r3, #0]
  34071. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34072. 800eb16: 687b ldr r3, [r7, #4]
  34073. 800eb18: 2200 movs r2, #0
  34074. 800eb1a: 605a str r2, [r3, #4]
  34075. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34076. 800eb1c: 687b ldr r3, [r7, #4]
  34077. 800eb1e: 2200 movs r2, #0
  34078. 800eb20: 609a str r2, [r3, #8]
  34079. }
  34080. 800eb22: bf00 nop
  34081. 800eb24: 3724 adds r7, #36 @ 0x24
  34082. 800eb26: 46bd mov sp, r7
  34083. 800eb28: f85d 7b04 ldr.w r7, [sp], #4
  34084. 800eb2c: 4770 bx lr
  34085. 800eb2e: bf00 nop
  34086. 800eb30: 58024400 .word 0x58024400
  34087. 800eb34: 03d09000 .word 0x03d09000
  34088. 800eb38: 46000000 .word 0x46000000
  34089. 800eb3c: 4c742400 .word 0x4c742400
  34090. 800eb40: 4a742400 .word 0x4a742400
  34091. 800eb44: 4bbebc20 .word 0x4bbebc20
  34092. 0800eb48 <HAL_RCCEx_GetPLL3ClockFreq>:
  34093. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  34094. * @param PLL3_Clocks structure.
  34095. * @retval None
  34096. */
  34097. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  34098. {
  34099. 800eb48: b480 push {r7}
  34100. 800eb4a: b089 sub sp, #36 @ 0x24
  34101. 800eb4c: af00 add r7, sp, #0
  34102. 800eb4e: 6078 str r0, [r7, #4]
  34103. float_t fracn3, pll3vco;
  34104. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  34105. PLL3xCLK = PLL3_VCO / PLLxR
  34106. */
  34107. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34108. 800eb50: 4ba1 ldr r3, [pc, #644] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34109. 800eb52: 6a9b ldr r3, [r3, #40] @ 0x28
  34110. 800eb54: f003 0303 and.w r3, r3, #3
  34111. 800eb58: 61bb str r3, [r7, #24]
  34112. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  34113. 800eb5a: 4b9f ldr r3, [pc, #636] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34114. 800eb5c: 6a9b ldr r3, [r3, #40] @ 0x28
  34115. 800eb5e: 0d1b lsrs r3, r3, #20
  34116. 800eb60: f003 033f and.w r3, r3, #63 @ 0x3f
  34117. 800eb64: 617b str r3, [r7, #20]
  34118. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  34119. 800eb66: 4b9c ldr r3, [pc, #624] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34120. 800eb68: 6adb ldr r3, [r3, #44] @ 0x2c
  34121. 800eb6a: 0a1b lsrs r3, r3, #8
  34122. 800eb6c: f003 0301 and.w r3, r3, #1
  34123. 800eb70: 613b str r3, [r7, #16]
  34124. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  34125. 800eb72: 4b99 ldr r3, [pc, #612] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34126. 800eb74: 6c5b ldr r3, [r3, #68] @ 0x44
  34127. 800eb76: 08db lsrs r3, r3, #3
  34128. 800eb78: f3c3 030c ubfx r3, r3, #0, #13
  34129. 800eb7c: 693a ldr r2, [r7, #16]
  34130. 800eb7e: fb02 f303 mul.w r3, r2, r3
  34131. 800eb82: ee07 3a90 vmov s15, r3
  34132. 800eb86: eef8 7a67 vcvt.f32.u32 s15, s15
  34133. 800eb8a: edc7 7a03 vstr s15, [r7, #12]
  34134. if (pll3m != 0U)
  34135. 800eb8e: 697b ldr r3, [r7, #20]
  34136. 800eb90: 2b00 cmp r3, #0
  34137. 800eb92: f000 8111 beq.w 800edb8 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  34138. {
  34139. switch (pllsource)
  34140. 800eb96: 69bb ldr r3, [r7, #24]
  34141. 800eb98: 2b02 cmp r3, #2
  34142. 800eb9a: f000 8083 beq.w 800eca4 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  34143. 800eb9e: 69bb ldr r3, [r7, #24]
  34144. 800eba0: 2b02 cmp r3, #2
  34145. 800eba2: f200 80a1 bhi.w 800ece8 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34146. 800eba6: 69bb ldr r3, [r7, #24]
  34147. 800eba8: 2b00 cmp r3, #0
  34148. 800ebaa: d003 beq.n 800ebb4 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  34149. 800ebac: 69bb ldr r3, [r7, #24]
  34150. 800ebae: 2b01 cmp r3, #1
  34151. 800ebb0: d056 beq.n 800ec60 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  34152. 800ebb2: e099 b.n 800ece8 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34153. {
  34154. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34155. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34156. 800ebb4: 4b88 ldr r3, [pc, #544] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34157. 800ebb6: 681b ldr r3, [r3, #0]
  34158. 800ebb8: f003 0320 and.w r3, r3, #32
  34159. 800ebbc: 2b00 cmp r3, #0
  34160. 800ebbe: d02d beq.n 800ec1c <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  34161. {
  34162. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34163. 800ebc0: 4b85 ldr r3, [pc, #532] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34164. 800ebc2: 681b ldr r3, [r3, #0]
  34165. 800ebc4: 08db lsrs r3, r3, #3
  34166. 800ebc6: f003 0303 and.w r3, r3, #3
  34167. 800ebca: 4a84 ldr r2, [pc, #528] @ (800eddc <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  34168. 800ebcc: fa22 f303 lsr.w r3, r2, r3
  34169. 800ebd0: 60bb str r3, [r7, #8]
  34170. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34171. 800ebd2: 68bb ldr r3, [r7, #8]
  34172. 800ebd4: ee07 3a90 vmov s15, r3
  34173. 800ebd8: eef8 6a67 vcvt.f32.u32 s13, s15
  34174. 800ebdc: 697b ldr r3, [r7, #20]
  34175. 800ebde: ee07 3a90 vmov s15, r3
  34176. 800ebe2: eef8 7a67 vcvt.f32.u32 s15, s15
  34177. 800ebe6: ee86 7aa7 vdiv.f32 s14, s13, s15
  34178. 800ebea: 4b7b ldr r3, [pc, #492] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34179. 800ebec: 6c1b ldr r3, [r3, #64] @ 0x40
  34180. 800ebee: f3c3 0308 ubfx r3, r3, #0, #9
  34181. 800ebf2: ee07 3a90 vmov s15, r3
  34182. 800ebf6: eef8 6a67 vcvt.f32.u32 s13, s15
  34183. 800ebfa: ed97 6a03 vldr s12, [r7, #12]
  34184. 800ebfe: eddf 5a78 vldr s11, [pc, #480] @ 800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34185. 800ec02: eec6 7a25 vdiv.f32 s15, s12, s11
  34186. 800ec06: ee76 7aa7 vadd.f32 s15, s13, s15
  34187. 800ec0a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34188. 800ec0e: ee77 7aa6 vadd.f32 s15, s15, s13
  34189. 800ec12: ee67 7a27 vmul.f32 s15, s14, s15
  34190. 800ec16: edc7 7a07 vstr s15, [r7, #28]
  34191. }
  34192. else
  34193. {
  34194. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34195. }
  34196. break;
  34197. 800ec1a: e087 b.n 800ed2c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34198. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34199. 800ec1c: 697b ldr r3, [r7, #20]
  34200. 800ec1e: ee07 3a90 vmov s15, r3
  34201. 800ec22: eef8 7a67 vcvt.f32.u32 s15, s15
  34202. 800ec26: eddf 6a6f vldr s13, [pc, #444] @ 800ede4 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  34203. 800ec2a: ee86 7aa7 vdiv.f32 s14, s13, s15
  34204. 800ec2e: 4b6a ldr r3, [pc, #424] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34205. 800ec30: 6c1b ldr r3, [r3, #64] @ 0x40
  34206. 800ec32: f3c3 0308 ubfx r3, r3, #0, #9
  34207. 800ec36: ee07 3a90 vmov s15, r3
  34208. 800ec3a: eef8 6a67 vcvt.f32.u32 s13, s15
  34209. 800ec3e: ed97 6a03 vldr s12, [r7, #12]
  34210. 800ec42: eddf 5a67 vldr s11, [pc, #412] @ 800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34211. 800ec46: eec6 7a25 vdiv.f32 s15, s12, s11
  34212. 800ec4a: ee76 7aa7 vadd.f32 s15, s13, s15
  34213. 800ec4e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34214. 800ec52: ee77 7aa6 vadd.f32 s15, s15, s13
  34215. 800ec56: ee67 7a27 vmul.f32 s15, s14, s15
  34216. 800ec5a: edc7 7a07 vstr s15, [r7, #28]
  34217. break;
  34218. 800ec5e: e065 b.n 800ed2c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34219. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34220. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34221. 800ec60: 697b ldr r3, [r7, #20]
  34222. 800ec62: ee07 3a90 vmov s15, r3
  34223. 800ec66: eef8 7a67 vcvt.f32.u32 s15, s15
  34224. 800ec6a: eddf 6a5f vldr s13, [pc, #380] @ 800ede8 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34225. 800ec6e: ee86 7aa7 vdiv.f32 s14, s13, s15
  34226. 800ec72: 4b59 ldr r3, [pc, #356] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34227. 800ec74: 6c1b ldr r3, [r3, #64] @ 0x40
  34228. 800ec76: f3c3 0308 ubfx r3, r3, #0, #9
  34229. 800ec7a: ee07 3a90 vmov s15, r3
  34230. 800ec7e: eef8 6a67 vcvt.f32.u32 s13, s15
  34231. 800ec82: ed97 6a03 vldr s12, [r7, #12]
  34232. 800ec86: eddf 5a56 vldr s11, [pc, #344] @ 800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34233. 800ec8a: eec6 7a25 vdiv.f32 s15, s12, s11
  34234. 800ec8e: ee76 7aa7 vadd.f32 s15, s13, s15
  34235. 800ec92: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34236. 800ec96: ee77 7aa6 vadd.f32 s15, s15, s13
  34237. 800ec9a: ee67 7a27 vmul.f32 s15, s14, s15
  34238. 800ec9e: edc7 7a07 vstr s15, [r7, #28]
  34239. break;
  34240. 800eca2: e043 b.n 800ed2c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34241. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34242. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34243. 800eca4: 697b ldr r3, [r7, #20]
  34244. 800eca6: ee07 3a90 vmov s15, r3
  34245. 800ecaa: eef8 7a67 vcvt.f32.u32 s15, s15
  34246. 800ecae: eddf 6a4f vldr s13, [pc, #316] @ 800edec <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  34247. 800ecb2: ee86 7aa7 vdiv.f32 s14, s13, s15
  34248. 800ecb6: 4b48 ldr r3, [pc, #288] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34249. 800ecb8: 6c1b ldr r3, [r3, #64] @ 0x40
  34250. 800ecba: f3c3 0308 ubfx r3, r3, #0, #9
  34251. 800ecbe: ee07 3a90 vmov s15, r3
  34252. 800ecc2: eef8 6a67 vcvt.f32.u32 s13, s15
  34253. 800ecc6: ed97 6a03 vldr s12, [r7, #12]
  34254. 800ecca: eddf 5a45 vldr s11, [pc, #276] @ 800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34255. 800ecce: eec6 7a25 vdiv.f32 s15, s12, s11
  34256. 800ecd2: ee76 7aa7 vadd.f32 s15, s13, s15
  34257. 800ecd6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34258. 800ecda: ee77 7aa6 vadd.f32 s15, s15, s13
  34259. 800ecde: ee67 7a27 vmul.f32 s15, s14, s15
  34260. 800ece2: edc7 7a07 vstr s15, [r7, #28]
  34261. break;
  34262. 800ece6: e021 b.n 800ed2c <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34263. default:
  34264. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34265. 800ece8: 697b ldr r3, [r7, #20]
  34266. 800ecea: ee07 3a90 vmov s15, r3
  34267. 800ecee: eef8 7a67 vcvt.f32.u32 s15, s15
  34268. 800ecf2: eddf 6a3d vldr s13, [pc, #244] @ 800ede8 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34269. 800ecf6: ee86 7aa7 vdiv.f32 s14, s13, s15
  34270. 800ecfa: 4b37 ldr r3, [pc, #220] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34271. 800ecfc: 6c1b ldr r3, [r3, #64] @ 0x40
  34272. 800ecfe: f3c3 0308 ubfx r3, r3, #0, #9
  34273. 800ed02: ee07 3a90 vmov s15, r3
  34274. 800ed06: eef8 6a67 vcvt.f32.u32 s13, s15
  34275. 800ed0a: ed97 6a03 vldr s12, [r7, #12]
  34276. 800ed0e: eddf 5a34 vldr s11, [pc, #208] @ 800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34277. 800ed12: eec6 7a25 vdiv.f32 s15, s12, s11
  34278. 800ed16: ee76 7aa7 vadd.f32 s15, s13, s15
  34279. 800ed1a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34280. 800ed1e: ee77 7aa6 vadd.f32 s15, s15, s13
  34281. 800ed22: ee67 7a27 vmul.f32 s15, s14, s15
  34282. 800ed26: edc7 7a07 vstr s15, [r7, #28]
  34283. break;
  34284. 800ed2a: bf00 nop
  34285. }
  34286. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  34287. 800ed2c: 4b2a ldr r3, [pc, #168] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34288. 800ed2e: 6c1b ldr r3, [r3, #64] @ 0x40
  34289. 800ed30: 0a5b lsrs r3, r3, #9
  34290. 800ed32: f003 037f and.w r3, r3, #127 @ 0x7f
  34291. 800ed36: ee07 3a90 vmov s15, r3
  34292. 800ed3a: eef8 7a67 vcvt.f32.u32 s15, s15
  34293. 800ed3e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34294. 800ed42: ee37 7a87 vadd.f32 s14, s15, s14
  34295. 800ed46: edd7 6a07 vldr s13, [r7, #28]
  34296. 800ed4a: eec6 7a87 vdiv.f32 s15, s13, s14
  34297. 800ed4e: eefc 7ae7 vcvt.u32.f32 s15, s15
  34298. 800ed52: ee17 2a90 vmov r2, s15
  34299. 800ed56: 687b ldr r3, [r7, #4]
  34300. 800ed58: 601a str r2, [r3, #0]
  34301. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  34302. 800ed5a: 4b1f ldr r3, [pc, #124] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34303. 800ed5c: 6c1b ldr r3, [r3, #64] @ 0x40
  34304. 800ed5e: 0c1b lsrs r3, r3, #16
  34305. 800ed60: f003 037f and.w r3, r3, #127 @ 0x7f
  34306. 800ed64: ee07 3a90 vmov s15, r3
  34307. 800ed68: eef8 7a67 vcvt.f32.u32 s15, s15
  34308. 800ed6c: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34309. 800ed70: ee37 7a87 vadd.f32 s14, s15, s14
  34310. 800ed74: edd7 6a07 vldr s13, [r7, #28]
  34311. 800ed78: eec6 7a87 vdiv.f32 s15, s13, s14
  34312. 800ed7c: eefc 7ae7 vcvt.u32.f32 s15, s15
  34313. 800ed80: ee17 2a90 vmov r2, s15
  34314. 800ed84: 687b ldr r3, [r7, #4]
  34315. 800ed86: 605a str r2, [r3, #4]
  34316. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  34317. 800ed88: 4b13 ldr r3, [pc, #76] @ (800edd8 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34318. 800ed8a: 6c1b ldr r3, [r3, #64] @ 0x40
  34319. 800ed8c: 0e1b lsrs r3, r3, #24
  34320. 800ed8e: f003 037f and.w r3, r3, #127 @ 0x7f
  34321. 800ed92: ee07 3a90 vmov s15, r3
  34322. 800ed96: eef8 7a67 vcvt.f32.u32 s15, s15
  34323. 800ed9a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34324. 800ed9e: ee37 7a87 vadd.f32 s14, s15, s14
  34325. 800eda2: edd7 6a07 vldr s13, [r7, #28]
  34326. 800eda6: eec6 7a87 vdiv.f32 s15, s13, s14
  34327. 800edaa: eefc 7ae7 vcvt.u32.f32 s15, s15
  34328. 800edae: ee17 2a90 vmov r2, s15
  34329. 800edb2: 687b ldr r3, [r7, #4]
  34330. 800edb4: 609a str r2, [r3, #8]
  34331. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34332. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34333. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34334. }
  34335. }
  34336. 800edb6: e008 b.n 800edca <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  34337. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34338. 800edb8: 687b ldr r3, [r7, #4]
  34339. 800edba: 2200 movs r2, #0
  34340. 800edbc: 601a str r2, [r3, #0]
  34341. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34342. 800edbe: 687b ldr r3, [r7, #4]
  34343. 800edc0: 2200 movs r2, #0
  34344. 800edc2: 605a str r2, [r3, #4]
  34345. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34346. 800edc4: 687b ldr r3, [r7, #4]
  34347. 800edc6: 2200 movs r2, #0
  34348. 800edc8: 609a str r2, [r3, #8]
  34349. }
  34350. 800edca: bf00 nop
  34351. 800edcc: 3724 adds r7, #36 @ 0x24
  34352. 800edce: 46bd mov sp, r7
  34353. 800edd0: f85d 7b04 ldr.w r7, [sp], #4
  34354. 800edd4: 4770 bx lr
  34355. 800edd6: bf00 nop
  34356. 800edd8: 58024400 .word 0x58024400
  34357. 800eddc: 03d09000 .word 0x03d09000
  34358. 800ede0: 46000000 .word 0x46000000
  34359. 800ede4: 4c742400 .word 0x4c742400
  34360. 800ede8: 4a742400 .word 0x4a742400
  34361. 800edec: 4bbebc20 .word 0x4bbebc20
  34362. 0800edf0 <HAL_RCCEx_GetPLL1ClockFreq>:
  34363. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  34364. * @param PLL1_Clocks structure.
  34365. * @retval None
  34366. */
  34367. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  34368. {
  34369. 800edf0: b480 push {r7}
  34370. 800edf2: b089 sub sp, #36 @ 0x24
  34371. 800edf4: af00 add r7, sp, #0
  34372. 800edf6: 6078 str r0, [r7, #4]
  34373. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  34374. float_t fracn1, pll1vco;
  34375. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34376. 800edf8: 4ba0 ldr r3, [pc, #640] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34377. 800edfa: 6a9b ldr r3, [r3, #40] @ 0x28
  34378. 800edfc: f003 0303 and.w r3, r3, #3
  34379. 800ee00: 61bb str r3, [r7, #24]
  34380. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  34381. 800ee02: 4b9e ldr r3, [pc, #632] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34382. 800ee04: 6a9b ldr r3, [r3, #40] @ 0x28
  34383. 800ee06: 091b lsrs r3, r3, #4
  34384. 800ee08: f003 033f and.w r3, r3, #63 @ 0x3f
  34385. 800ee0c: 617b str r3, [r7, #20]
  34386. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  34387. 800ee0e: 4b9b ldr r3, [pc, #620] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34388. 800ee10: 6adb ldr r3, [r3, #44] @ 0x2c
  34389. 800ee12: f003 0301 and.w r3, r3, #1
  34390. 800ee16: 613b str r3, [r7, #16]
  34391. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  34392. 800ee18: 4b98 ldr r3, [pc, #608] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34393. 800ee1a: 6b5b ldr r3, [r3, #52] @ 0x34
  34394. 800ee1c: 08db lsrs r3, r3, #3
  34395. 800ee1e: f3c3 030c ubfx r3, r3, #0, #13
  34396. 800ee22: 693a ldr r2, [r7, #16]
  34397. 800ee24: fb02 f303 mul.w r3, r2, r3
  34398. 800ee28: ee07 3a90 vmov s15, r3
  34399. 800ee2c: eef8 7a67 vcvt.f32.u32 s15, s15
  34400. 800ee30: edc7 7a03 vstr s15, [r7, #12]
  34401. if (pll1m != 0U)
  34402. 800ee34: 697b ldr r3, [r7, #20]
  34403. 800ee36: 2b00 cmp r3, #0
  34404. 800ee38: f000 8111 beq.w 800f05e <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  34405. {
  34406. switch (pllsource)
  34407. 800ee3c: 69bb ldr r3, [r7, #24]
  34408. 800ee3e: 2b02 cmp r3, #2
  34409. 800ee40: f000 8083 beq.w 800ef4a <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  34410. 800ee44: 69bb ldr r3, [r7, #24]
  34411. 800ee46: 2b02 cmp r3, #2
  34412. 800ee48: f200 80a1 bhi.w 800ef8e <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34413. 800ee4c: 69bb ldr r3, [r7, #24]
  34414. 800ee4e: 2b00 cmp r3, #0
  34415. 800ee50: d003 beq.n 800ee5a <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  34416. 800ee52: 69bb ldr r3, [r7, #24]
  34417. 800ee54: 2b01 cmp r3, #1
  34418. 800ee56: d056 beq.n 800ef06 <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  34419. 800ee58: e099 b.n 800ef8e <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34420. {
  34421. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34422. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34423. 800ee5a: 4b88 ldr r3, [pc, #544] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34424. 800ee5c: 681b ldr r3, [r3, #0]
  34425. 800ee5e: f003 0320 and.w r3, r3, #32
  34426. 800ee62: 2b00 cmp r3, #0
  34427. 800ee64: d02d beq.n 800eec2 <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  34428. {
  34429. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34430. 800ee66: 4b85 ldr r3, [pc, #532] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34431. 800ee68: 681b ldr r3, [r3, #0]
  34432. 800ee6a: 08db lsrs r3, r3, #3
  34433. 800ee6c: f003 0303 and.w r3, r3, #3
  34434. 800ee70: 4a83 ldr r2, [pc, #524] @ (800f080 <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  34435. 800ee72: fa22 f303 lsr.w r3, r2, r3
  34436. 800ee76: 60bb str r3, [r7, #8]
  34437. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34438. 800ee78: 68bb ldr r3, [r7, #8]
  34439. 800ee7a: ee07 3a90 vmov s15, r3
  34440. 800ee7e: eef8 6a67 vcvt.f32.u32 s13, s15
  34441. 800ee82: 697b ldr r3, [r7, #20]
  34442. 800ee84: ee07 3a90 vmov s15, r3
  34443. 800ee88: eef8 7a67 vcvt.f32.u32 s15, s15
  34444. 800ee8c: ee86 7aa7 vdiv.f32 s14, s13, s15
  34445. 800ee90: 4b7a ldr r3, [pc, #488] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34446. 800ee92: 6b1b ldr r3, [r3, #48] @ 0x30
  34447. 800ee94: f3c3 0308 ubfx r3, r3, #0, #9
  34448. 800ee98: ee07 3a90 vmov s15, r3
  34449. 800ee9c: eef8 6a67 vcvt.f32.u32 s13, s15
  34450. 800eea0: ed97 6a03 vldr s12, [r7, #12]
  34451. 800eea4: eddf 5a77 vldr s11, [pc, #476] @ 800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34452. 800eea8: eec6 7a25 vdiv.f32 s15, s12, s11
  34453. 800eeac: ee76 7aa7 vadd.f32 s15, s13, s15
  34454. 800eeb0: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34455. 800eeb4: ee77 7aa6 vadd.f32 s15, s15, s13
  34456. 800eeb8: ee67 7a27 vmul.f32 s15, s14, s15
  34457. 800eebc: edc7 7a07 vstr s15, [r7, #28]
  34458. }
  34459. else
  34460. {
  34461. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34462. }
  34463. break;
  34464. 800eec0: e087 b.n 800efd2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34465. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34466. 800eec2: 697b ldr r3, [r7, #20]
  34467. 800eec4: ee07 3a90 vmov s15, r3
  34468. 800eec8: eef8 7a67 vcvt.f32.u32 s15, s15
  34469. 800eecc: eddf 6a6e vldr s13, [pc, #440] @ 800f088 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34470. 800eed0: ee86 7aa7 vdiv.f32 s14, s13, s15
  34471. 800eed4: 4b69 ldr r3, [pc, #420] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34472. 800eed6: 6b1b ldr r3, [r3, #48] @ 0x30
  34473. 800eed8: f3c3 0308 ubfx r3, r3, #0, #9
  34474. 800eedc: ee07 3a90 vmov s15, r3
  34475. 800eee0: eef8 6a67 vcvt.f32.u32 s13, s15
  34476. 800eee4: ed97 6a03 vldr s12, [r7, #12]
  34477. 800eee8: eddf 5a66 vldr s11, [pc, #408] @ 800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34478. 800eeec: eec6 7a25 vdiv.f32 s15, s12, s11
  34479. 800eef0: ee76 7aa7 vadd.f32 s15, s13, s15
  34480. 800eef4: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34481. 800eef8: ee77 7aa6 vadd.f32 s15, s15, s13
  34482. 800eefc: ee67 7a27 vmul.f32 s15, s14, s15
  34483. 800ef00: edc7 7a07 vstr s15, [r7, #28]
  34484. break;
  34485. 800ef04: e065 b.n 800efd2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34486. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34487. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34488. 800ef06: 697b ldr r3, [r7, #20]
  34489. 800ef08: ee07 3a90 vmov s15, r3
  34490. 800ef0c: eef8 7a67 vcvt.f32.u32 s15, s15
  34491. 800ef10: eddf 6a5e vldr s13, [pc, #376] @ 800f08c <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  34492. 800ef14: ee86 7aa7 vdiv.f32 s14, s13, s15
  34493. 800ef18: 4b58 ldr r3, [pc, #352] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34494. 800ef1a: 6b1b ldr r3, [r3, #48] @ 0x30
  34495. 800ef1c: f3c3 0308 ubfx r3, r3, #0, #9
  34496. 800ef20: ee07 3a90 vmov s15, r3
  34497. 800ef24: eef8 6a67 vcvt.f32.u32 s13, s15
  34498. 800ef28: ed97 6a03 vldr s12, [r7, #12]
  34499. 800ef2c: eddf 5a55 vldr s11, [pc, #340] @ 800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34500. 800ef30: eec6 7a25 vdiv.f32 s15, s12, s11
  34501. 800ef34: ee76 7aa7 vadd.f32 s15, s13, s15
  34502. 800ef38: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34503. 800ef3c: ee77 7aa6 vadd.f32 s15, s15, s13
  34504. 800ef40: ee67 7a27 vmul.f32 s15, s14, s15
  34505. 800ef44: edc7 7a07 vstr s15, [r7, #28]
  34506. break;
  34507. 800ef48: e043 b.n 800efd2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34508. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34509. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34510. 800ef4a: 697b ldr r3, [r7, #20]
  34511. 800ef4c: ee07 3a90 vmov s15, r3
  34512. 800ef50: eef8 7a67 vcvt.f32.u32 s15, s15
  34513. 800ef54: eddf 6a4e vldr s13, [pc, #312] @ 800f090 <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  34514. 800ef58: ee86 7aa7 vdiv.f32 s14, s13, s15
  34515. 800ef5c: 4b47 ldr r3, [pc, #284] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34516. 800ef5e: 6b1b ldr r3, [r3, #48] @ 0x30
  34517. 800ef60: f3c3 0308 ubfx r3, r3, #0, #9
  34518. 800ef64: ee07 3a90 vmov s15, r3
  34519. 800ef68: eef8 6a67 vcvt.f32.u32 s13, s15
  34520. 800ef6c: ed97 6a03 vldr s12, [r7, #12]
  34521. 800ef70: eddf 5a44 vldr s11, [pc, #272] @ 800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34522. 800ef74: eec6 7a25 vdiv.f32 s15, s12, s11
  34523. 800ef78: ee76 7aa7 vadd.f32 s15, s13, s15
  34524. 800ef7c: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34525. 800ef80: ee77 7aa6 vadd.f32 s15, s15, s13
  34526. 800ef84: ee67 7a27 vmul.f32 s15, s14, s15
  34527. 800ef88: edc7 7a07 vstr s15, [r7, #28]
  34528. break;
  34529. 800ef8c: e021 b.n 800efd2 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34530. default:
  34531. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34532. 800ef8e: 697b ldr r3, [r7, #20]
  34533. 800ef90: ee07 3a90 vmov s15, r3
  34534. 800ef94: eef8 7a67 vcvt.f32.u32 s15, s15
  34535. 800ef98: eddf 6a3b vldr s13, [pc, #236] @ 800f088 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34536. 800ef9c: ee86 7aa7 vdiv.f32 s14, s13, s15
  34537. 800efa0: 4b36 ldr r3, [pc, #216] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34538. 800efa2: 6b1b ldr r3, [r3, #48] @ 0x30
  34539. 800efa4: f3c3 0308 ubfx r3, r3, #0, #9
  34540. 800efa8: ee07 3a90 vmov s15, r3
  34541. 800efac: eef8 6a67 vcvt.f32.u32 s13, s15
  34542. 800efb0: ed97 6a03 vldr s12, [r7, #12]
  34543. 800efb4: eddf 5a33 vldr s11, [pc, #204] @ 800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34544. 800efb8: eec6 7a25 vdiv.f32 s15, s12, s11
  34545. 800efbc: ee76 7aa7 vadd.f32 s15, s13, s15
  34546. 800efc0: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34547. 800efc4: ee77 7aa6 vadd.f32 s15, s15, s13
  34548. 800efc8: ee67 7a27 vmul.f32 s15, s14, s15
  34549. 800efcc: edc7 7a07 vstr s15, [r7, #28]
  34550. break;
  34551. 800efd0: bf00 nop
  34552. }
  34553. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  34554. 800efd2: 4b2a ldr r3, [pc, #168] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34555. 800efd4: 6b1b ldr r3, [r3, #48] @ 0x30
  34556. 800efd6: 0a5b lsrs r3, r3, #9
  34557. 800efd8: f003 037f and.w r3, r3, #127 @ 0x7f
  34558. 800efdc: ee07 3a90 vmov s15, r3
  34559. 800efe0: eef8 7a67 vcvt.f32.u32 s15, s15
  34560. 800efe4: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34561. 800efe8: ee37 7a87 vadd.f32 s14, s15, s14
  34562. 800efec: edd7 6a07 vldr s13, [r7, #28]
  34563. 800eff0: eec6 7a87 vdiv.f32 s15, s13, s14
  34564. 800eff4: eefc 7ae7 vcvt.u32.f32 s15, s15
  34565. 800eff8: ee17 2a90 vmov r2, s15
  34566. 800effc: 687b ldr r3, [r7, #4]
  34567. 800effe: 601a str r2, [r3, #0]
  34568. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  34569. 800f000: 4b1e ldr r3, [pc, #120] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34570. 800f002: 6b1b ldr r3, [r3, #48] @ 0x30
  34571. 800f004: 0c1b lsrs r3, r3, #16
  34572. 800f006: f003 037f and.w r3, r3, #127 @ 0x7f
  34573. 800f00a: ee07 3a90 vmov s15, r3
  34574. 800f00e: eef8 7a67 vcvt.f32.u32 s15, s15
  34575. 800f012: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34576. 800f016: ee37 7a87 vadd.f32 s14, s15, s14
  34577. 800f01a: edd7 6a07 vldr s13, [r7, #28]
  34578. 800f01e: eec6 7a87 vdiv.f32 s15, s13, s14
  34579. 800f022: eefc 7ae7 vcvt.u32.f32 s15, s15
  34580. 800f026: ee17 2a90 vmov r2, s15
  34581. 800f02a: 687b ldr r3, [r7, #4]
  34582. 800f02c: 605a str r2, [r3, #4]
  34583. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  34584. 800f02e: 4b13 ldr r3, [pc, #76] @ (800f07c <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34585. 800f030: 6b1b ldr r3, [r3, #48] @ 0x30
  34586. 800f032: 0e1b lsrs r3, r3, #24
  34587. 800f034: f003 037f and.w r3, r3, #127 @ 0x7f
  34588. 800f038: ee07 3a90 vmov s15, r3
  34589. 800f03c: eef8 7a67 vcvt.f32.u32 s15, s15
  34590. 800f040: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34591. 800f044: ee37 7a87 vadd.f32 s14, s15, s14
  34592. 800f048: edd7 6a07 vldr s13, [r7, #28]
  34593. 800f04c: eec6 7a87 vdiv.f32 s15, s13, s14
  34594. 800f050: eefc 7ae7 vcvt.u32.f32 s15, s15
  34595. 800f054: ee17 2a90 vmov r2, s15
  34596. 800f058: 687b ldr r3, [r7, #4]
  34597. 800f05a: 609a str r2, [r3, #8]
  34598. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34599. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34600. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34601. }
  34602. }
  34603. 800f05c: e008 b.n 800f070 <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  34604. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34605. 800f05e: 687b ldr r3, [r7, #4]
  34606. 800f060: 2200 movs r2, #0
  34607. 800f062: 601a str r2, [r3, #0]
  34608. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34609. 800f064: 687b ldr r3, [r7, #4]
  34610. 800f066: 2200 movs r2, #0
  34611. 800f068: 605a str r2, [r3, #4]
  34612. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34613. 800f06a: 687b ldr r3, [r7, #4]
  34614. 800f06c: 2200 movs r2, #0
  34615. 800f06e: 609a str r2, [r3, #8]
  34616. }
  34617. 800f070: bf00 nop
  34618. 800f072: 3724 adds r7, #36 @ 0x24
  34619. 800f074: 46bd mov sp, r7
  34620. 800f076: f85d 7b04 ldr.w r7, [sp], #4
  34621. 800f07a: 4770 bx lr
  34622. 800f07c: 58024400 .word 0x58024400
  34623. 800f080: 03d09000 .word 0x03d09000
  34624. 800f084: 46000000 .word 0x46000000
  34625. 800f088: 4c742400 .word 0x4c742400
  34626. 800f08c: 4a742400 .word 0x4a742400
  34627. 800f090: 4bbebc20 .word 0x4bbebc20
  34628. 0800f094 <RCCEx_PLL2_Config>:
  34629. * @note PLL2 is temporary disabled to apply new parameters
  34630. *
  34631. * @retval HAL status
  34632. */
  34633. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  34634. {
  34635. 800f094: b580 push {r7, lr}
  34636. 800f096: b084 sub sp, #16
  34637. 800f098: af00 add r7, sp, #0
  34638. 800f09a: 6078 str r0, [r7, #4]
  34639. 800f09c: 6039 str r1, [r7, #0]
  34640. uint32_t tickstart;
  34641. HAL_StatusTypeDef status = HAL_OK;
  34642. 800f09e: 2300 movs r3, #0
  34643. 800f0a0: 73fb strb r3, [r7, #15]
  34644. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  34645. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  34646. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  34647. /* Check that PLL2 OSC clock source is already set */
  34648. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34649. 800f0a2: 4b53 ldr r3, [pc, #332] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34650. 800f0a4: 6a9b ldr r3, [r3, #40] @ 0x28
  34651. 800f0a6: f003 0303 and.w r3, r3, #3
  34652. 800f0aa: 2b03 cmp r3, #3
  34653. 800f0ac: d101 bne.n 800f0b2 <RCCEx_PLL2_Config+0x1e>
  34654. {
  34655. return HAL_ERROR;
  34656. 800f0ae: 2301 movs r3, #1
  34657. 800f0b0: e099 b.n 800f1e6 <RCCEx_PLL2_Config+0x152>
  34658. else
  34659. {
  34660. /* Disable PLL2. */
  34661. __HAL_RCC_PLL2_DISABLE();
  34662. 800f0b2: 4b4f ldr r3, [pc, #316] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34663. 800f0b4: 681b ldr r3, [r3, #0]
  34664. 800f0b6: 4a4e ldr r2, [pc, #312] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34665. 800f0b8: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34666. 800f0bc: 6013 str r3, [r2, #0]
  34667. /* Get Start Tick*/
  34668. tickstart = HAL_GetTick();
  34669. 800f0be: f7f6 fead bl 8005e1c <HAL_GetTick>
  34670. 800f0c2: 60b8 str r0, [r7, #8]
  34671. /* Wait till PLL is disabled */
  34672. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34673. 800f0c4: e008 b.n 800f0d8 <RCCEx_PLL2_Config+0x44>
  34674. {
  34675. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34676. 800f0c6: f7f6 fea9 bl 8005e1c <HAL_GetTick>
  34677. 800f0ca: 4602 mov r2, r0
  34678. 800f0cc: 68bb ldr r3, [r7, #8]
  34679. 800f0ce: 1ad3 subs r3, r2, r3
  34680. 800f0d0: 2b02 cmp r3, #2
  34681. 800f0d2: d901 bls.n 800f0d8 <RCCEx_PLL2_Config+0x44>
  34682. {
  34683. return HAL_TIMEOUT;
  34684. 800f0d4: 2303 movs r3, #3
  34685. 800f0d6: e086 b.n 800f1e6 <RCCEx_PLL2_Config+0x152>
  34686. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34687. 800f0d8: 4b45 ldr r3, [pc, #276] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34688. 800f0da: 681b ldr r3, [r3, #0]
  34689. 800f0dc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34690. 800f0e0: 2b00 cmp r3, #0
  34691. 800f0e2: d1f0 bne.n 800f0c6 <RCCEx_PLL2_Config+0x32>
  34692. }
  34693. }
  34694. /* Configure PLL2 multiplication and division factors. */
  34695. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  34696. 800f0e4: 4b42 ldr r3, [pc, #264] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34697. 800f0e6: 6a9b ldr r3, [r3, #40] @ 0x28
  34698. 800f0e8: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  34699. 800f0ec: 687b ldr r3, [r7, #4]
  34700. 800f0ee: 681b ldr r3, [r3, #0]
  34701. 800f0f0: 031b lsls r3, r3, #12
  34702. 800f0f2: 493f ldr r1, [pc, #252] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34703. 800f0f4: 4313 orrs r3, r2
  34704. 800f0f6: 628b str r3, [r1, #40] @ 0x28
  34705. 800f0f8: 687b ldr r3, [r7, #4]
  34706. 800f0fa: 685b ldr r3, [r3, #4]
  34707. 800f0fc: 3b01 subs r3, #1
  34708. 800f0fe: f3c3 0208 ubfx r2, r3, #0, #9
  34709. 800f102: 687b ldr r3, [r7, #4]
  34710. 800f104: 689b ldr r3, [r3, #8]
  34711. 800f106: 3b01 subs r3, #1
  34712. 800f108: 025b lsls r3, r3, #9
  34713. 800f10a: b29b uxth r3, r3
  34714. 800f10c: 431a orrs r2, r3
  34715. 800f10e: 687b ldr r3, [r7, #4]
  34716. 800f110: 68db ldr r3, [r3, #12]
  34717. 800f112: 3b01 subs r3, #1
  34718. 800f114: 041b lsls r3, r3, #16
  34719. 800f116: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34720. 800f11a: 431a orrs r2, r3
  34721. 800f11c: 687b ldr r3, [r7, #4]
  34722. 800f11e: 691b ldr r3, [r3, #16]
  34723. 800f120: 3b01 subs r3, #1
  34724. 800f122: 061b lsls r3, r3, #24
  34725. 800f124: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34726. 800f128: 4931 ldr r1, [pc, #196] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34727. 800f12a: 4313 orrs r3, r2
  34728. 800f12c: 638b str r3, [r1, #56] @ 0x38
  34729. pll2->PLL2P,
  34730. pll2->PLL2Q,
  34731. pll2->PLL2R);
  34732. /* Select PLL2 input reference frequency range: VCI */
  34733. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  34734. 800f12e: 4b30 ldr r3, [pc, #192] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34735. 800f130: 6adb ldr r3, [r3, #44] @ 0x2c
  34736. 800f132: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  34737. 800f136: 687b ldr r3, [r7, #4]
  34738. 800f138: 695b ldr r3, [r3, #20]
  34739. 800f13a: 492d ldr r1, [pc, #180] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34740. 800f13c: 4313 orrs r3, r2
  34741. 800f13e: 62cb str r3, [r1, #44] @ 0x2c
  34742. /* Select PLL2 output frequency range : VCO */
  34743. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  34744. 800f140: 4b2b ldr r3, [pc, #172] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34745. 800f142: 6adb ldr r3, [r3, #44] @ 0x2c
  34746. 800f144: f023 0220 bic.w r2, r3, #32
  34747. 800f148: 687b ldr r3, [r7, #4]
  34748. 800f14a: 699b ldr r3, [r3, #24]
  34749. 800f14c: 4928 ldr r1, [pc, #160] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34750. 800f14e: 4313 orrs r3, r2
  34751. 800f150: 62cb str r3, [r1, #44] @ 0x2c
  34752. /* Disable PLL2FRACN . */
  34753. __HAL_RCC_PLL2FRACN_DISABLE();
  34754. 800f152: 4b27 ldr r3, [pc, #156] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34755. 800f154: 6adb ldr r3, [r3, #44] @ 0x2c
  34756. 800f156: 4a26 ldr r2, [pc, #152] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34757. 800f158: f023 0310 bic.w r3, r3, #16
  34758. 800f15c: 62d3 str r3, [r2, #44] @ 0x2c
  34759. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  34760. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  34761. 800f15e: 4b24 ldr r3, [pc, #144] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34762. 800f160: 6bda ldr r2, [r3, #60] @ 0x3c
  34763. 800f162: 4b24 ldr r3, [pc, #144] @ (800f1f4 <RCCEx_PLL2_Config+0x160>)
  34764. 800f164: 4013 ands r3, r2
  34765. 800f166: 687a ldr r2, [r7, #4]
  34766. 800f168: 69d2 ldr r2, [r2, #28]
  34767. 800f16a: 00d2 lsls r2, r2, #3
  34768. 800f16c: 4920 ldr r1, [pc, #128] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34769. 800f16e: 4313 orrs r3, r2
  34770. 800f170: 63cb str r3, [r1, #60] @ 0x3c
  34771. /* Enable PLL2FRACN . */
  34772. __HAL_RCC_PLL2FRACN_ENABLE();
  34773. 800f172: 4b1f ldr r3, [pc, #124] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34774. 800f174: 6adb ldr r3, [r3, #44] @ 0x2c
  34775. 800f176: 4a1e ldr r2, [pc, #120] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34776. 800f178: f043 0310 orr.w r3, r3, #16
  34777. 800f17c: 62d3 str r3, [r2, #44] @ 0x2c
  34778. /* Enable the PLL2 clock output */
  34779. if (Divider == DIVIDER_P_UPDATE)
  34780. 800f17e: 683b ldr r3, [r7, #0]
  34781. 800f180: 2b00 cmp r3, #0
  34782. 800f182: d106 bne.n 800f192 <RCCEx_PLL2_Config+0xfe>
  34783. {
  34784. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  34785. 800f184: 4b1a ldr r3, [pc, #104] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34786. 800f186: 6adb ldr r3, [r3, #44] @ 0x2c
  34787. 800f188: 4a19 ldr r2, [pc, #100] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34788. 800f18a: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  34789. 800f18e: 62d3 str r3, [r2, #44] @ 0x2c
  34790. 800f190: e00f b.n 800f1b2 <RCCEx_PLL2_Config+0x11e>
  34791. }
  34792. else if (Divider == DIVIDER_Q_UPDATE)
  34793. 800f192: 683b ldr r3, [r7, #0]
  34794. 800f194: 2b01 cmp r3, #1
  34795. 800f196: d106 bne.n 800f1a6 <RCCEx_PLL2_Config+0x112>
  34796. {
  34797. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  34798. 800f198: 4b15 ldr r3, [pc, #84] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34799. 800f19a: 6adb ldr r3, [r3, #44] @ 0x2c
  34800. 800f19c: 4a14 ldr r2, [pc, #80] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34801. 800f19e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  34802. 800f1a2: 62d3 str r3, [r2, #44] @ 0x2c
  34803. 800f1a4: e005 b.n 800f1b2 <RCCEx_PLL2_Config+0x11e>
  34804. }
  34805. else
  34806. {
  34807. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  34808. 800f1a6: 4b12 ldr r3, [pc, #72] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34809. 800f1a8: 6adb ldr r3, [r3, #44] @ 0x2c
  34810. 800f1aa: 4a11 ldr r2, [pc, #68] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34811. 800f1ac: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  34812. 800f1b0: 62d3 str r3, [r2, #44] @ 0x2c
  34813. }
  34814. /* Enable PLL2. */
  34815. __HAL_RCC_PLL2_ENABLE();
  34816. 800f1b2: 4b0f ldr r3, [pc, #60] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34817. 800f1b4: 681b ldr r3, [r3, #0]
  34818. 800f1b6: 4a0e ldr r2, [pc, #56] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34819. 800f1b8: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  34820. 800f1bc: 6013 str r3, [r2, #0]
  34821. /* Get Start Tick*/
  34822. tickstart = HAL_GetTick();
  34823. 800f1be: f7f6 fe2d bl 8005e1c <HAL_GetTick>
  34824. 800f1c2: 60b8 str r0, [r7, #8]
  34825. /* Wait till PLL2 is ready */
  34826. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34827. 800f1c4: e008 b.n 800f1d8 <RCCEx_PLL2_Config+0x144>
  34828. {
  34829. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34830. 800f1c6: f7f6 fe29 bl 8005e1c <HAL_GetTick>
  34831. 800f1ca: 4602 mov r2, r0
  34832. 800f1cc: 68bb ldr r3, [r7, #8]
  34833. 800f1ce: 1ad3 subs r3, r2, r3
  34834. 800f1d0: 2b02 cmp r3, #2
  34835. 800f1d2: d901 bls.n 800f1d8 <RCCEx_PLL2_Config+0x144>
  34836. {
  34837. return HAL_TIMEOUT;
  34838. 800f1d4: 2303 movs r3, #3
  34839. 800f1d6: e006 b.n 800f1e6 <RCCEx_PLL2_Config+0x152>
  34840. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34841. 800f1d8: 4b05 ldr r3, [pc, #20] @ (800f1f0 <RCCEx_PLL2_Config+0x15c>)
  34842. 800f1da: 681b ldr r3, [r3, #0]
  34843. 800f1dc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34844. 800f1e0: 2b00 cmp r3, #0
  34845. 800f1e2: d0f0 beq.n 800f1c6 <RCCEx_PLL2_Config+0x132>
  34846. }
  34847. }
  34848. return status;
  34849. 800f1e4: 7bfb ldrb r3, [r7, #15]
  34850. }
  34851. 800f1e6: 4618 mov r0, r3
  34852. 800f1e8: 3710 adds r7, #16
  34853. 800f1ea: 46bd mov sp, r7
  34854. 800f1ec: bd80 pop {r7, pc}
  34855. 800f1ee: bf00 nop
  34856. 800f1f0: 58024400 .word 0x58024400
  34857. 800f1f4: ffff0007 .word 0xffff0007
  34858. 0800f1f8 <RCCEx_PLL3_Config>:
  34859. * @note PLL3 is temporary disabled to apply new parameters
  34860. *
  34861. * @retval HAL status
  34862. */
  34863. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  34864. {
  34865. 800f1f8: b580 push {r7, lr}
  34866. 800f1fa: b084 sub sp, #16
  34867. 800f1fc: af00 add r7, sp, #0
  34868. 800f1fe: 6078 str r0, [r7, #4]
  34869. 800f200: 6039 str r1, [r7, #0]
  34870. uint32_t tickstart;
  34871. HAL_StatusTypeDef status = HAL_OK;
  34872. 800f202: 2300 movs r3, #0
  34873. 800f204: 73fb strb r3, [r7, #15]
  34874. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  34875. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  34876. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  34877. /* Check that PLL3 OSC clock source is already set */
  34878. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34879. 800f206: 4b53 ldr r3, [pc, #332] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34880. 800f208: 6a9b ldr r3, [r3, #40] @ 0x28
  34881. 800f20a: f003 0303 and.w r3, r3, #3
  34882. 800f20e: 2b03 cmp r3, #3
  34883. 800f210: d101 bne.n 800f216 <RCCEx_PLL3_Config+0x1e>
  34884. {
  34885. return HAL_ERROR;
  34886. 800f212: 2301 movs r3, #1
  34887. 800f214: e099 b.n 800f34a <RCCEx_PLL3_Config+0x152>
  34888. else
  34889. {
  34890. /* Disable PLL3. */
  34891. __HAL_RCC_PLL3_DISABLE();
  34892. 800f216: 4b4f ldr r3, [pc, #316] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34893. 800f218: 681b ldr r3, [r3, #0]
  34894. 800f21a: 4a4e ldr r2, [pc, #312] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34895. 800f21c: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34896. 800f220: 6013 str r3, [r2, #0]
  34897. /* Get Start Tick*/
  34898. tickstart = HAL_GetTick();
  34899. 800f222: f7f6 fdfb bl 8005e1c <HAL_GetTick>
  34900. 800f226: 60b8 str r0, [r7, #8]
  34901. /* Wait till PLL3 is ready */
  34902. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34903. 800f228: e008 b.n 800f23c <RCCEx_PLL3_Config+0x44>
  34904. {
  34905. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  34906. 800f22a: f7f6 fdf7 bl 8005e1c <HAL_GetTick>
  34907. 800f22e: 4602 mov r2, r0
  34908. 800f230: 68bb ldr r3, [r7, #8]
  34909. 800f232: 1ad3 subs r3, r2, r3
  34910. 800f234: 2b02 cmp r3, #2
  34911. 800f236: d901 bls.n 800f23c <RCCEx_PLL3_Config+0x44>
  34912. {
  34913. return HAL_TIMEOUT;
  34914. 800f238: 2303 movs r3, #3
  34915. 800f23a: e086 b.n 800f34a <RCCEx_PLL3_Config+0x152>
  34916. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34917. 800f23c: 4b45 ldr r3, [pc, #276] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34918. 800f23e: 681b ldr r3, [r3, #0]
  34919. 800f240: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34920. 800f244: 2b00 cmp r3, #0
  34921. 800f246: d1f0 bne.n 800f22a <RCCEx_PLL3_Config+0x32>
  34922. }
  34923. }
  34924. /* Configure the PLL3 multiplication and division factors. */
  34925. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  34926. 800f248: 4b42 ldr r3, [pc, #264] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34927. 800f24a: 6a9b ldr r3, [r3, #40] @ 0x28
  34928. 800f24c: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  34929. 800f250: 687b ldr r3, [r7, #4]
  34930. 800f252: 681b ldr r3, [r3, #0]
  34931. 800f254: 051b lsls r3, r3, #20
  34932. 800f256: 493f ldr r1, [pc, #252] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34933. 800f258: 4313 orrs r3, r2
  34934. 800f25a: 628b str r3, [r1, #40] @ 0x28
  34935. 800f25c: 687b ldr r3, [r7, #4]
  34936. 800f25e: 685b ldr r3, [r3, #4]
  34937. 800f260: 3b01 subs r3, #1
  34938. 800f262: f3c3 0208 ubfx r2, r3, #0, #9
  34939. 800f266: 687b ldr r3, [r7, #4]
  34940. 800f268: 689b ldr r3, [r3, #8]
  34941. 800f26a: 3b01 subs r3, #1
  34942. 800f26c: 025b lsls r3, r3, #9
  34943. 800f26e: b29b uxth r3, r3
  34944. 800f270: 431a orrs r2, r3
  34945. 800f272: 687b ldr r3, [r7, #4]
  34946. 800f274: 68db ldr r3, [r3, #12]
  34947. 800f276: 3b01 subs r3, #1
  34948. 800f278: 041b lsls r3, r3, #16
  34949. 800f27a: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34950. 800f27e: 431a orrs r2, r3
  34951. 800f280: 687b ldr r3, [r7, #4]
  34952. 800f282: 691b ldr r3, [r3, #16]
  34953. 800f284: 3b01 subs r3, #1
  34954. 800f286: 061b lsls r3, r3, #24
  34955. 800f288: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34956. 800f28c: 4931 ldr r1, [pc, #196] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34957. 800f28e: 4313 orrs r3, r2
  34958. 800f290: 640b str r3, [r1, #64] @ 0x40
  34959. pll3->PLL3P,
  34960. pll3->PLL3Q,
  34961. pll3->PLL3R);
  34962. /* Select PLL3 input reference frequency range: VCI */
  34963. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  34964. 800f292: 4b30 ldr r3, [pc, #192] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34965. 800f294: 6adb ldr r3, [r3, #44] @ 0x2c
  34966. 800f296: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  34967. 800f29a: 687b ldr r3, [r7, #4]
  34968. 800f29c: 695b ldr r3, [r3, #20]
  34969. 800f29e: 492d ldr r1, [pc, #180] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34970. 800f2a0: 4313 orrs r3, r2
  34971. 800f2a2: 62cb str r3, [r1, #44] @ 0x2c
  34972. /* Select PLL3 output frequency range : VCO */
  34973. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  34974. 800f2a4: 4b2b ldr r3, [pc, #172] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34975. 800f2a6: 6adb ldr r3, [r3, #44] @ 0x2c
  34976. 800f2a8: f423 7200 bic.w r2, r3, #512 @ 0x200
  34977. 800f2ac: 687b ldr r3, [r7, #4]
  34978. 800f2ae: 699b ldr r3, [r3, #24]
  34979. 800f2b0: 4928 ldr r1, [pc, #160] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34980. 800f2b2: 4313 orrs r3, r2
  34981. 800f2b4: 62cb str r3, [r1, #44] @ 0x2c
  34982. /* Disable PLL3FRACN . */
  34983. __HAL_RCC_PLL3FRACN_DISABLE();
  34984. 800f2b6: 4b27 ldr r3, [pc, #156] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34985. 800f2b8: 6adb ldr r3, [r3, #44] @ 0x2c
  34986. 800f2ba: 4a26 ldr r2, [pc, #152] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34987. 800f2bc: f423 7380 bic.w r3, r3, #256 @ 0x100
  34988. 800f2c0: 62d3 str r3, [r2, #44] @ 0x2c
  34989. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  34990. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  34991. 800f2c2: 4b24 ldr r3, [pc, #144] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34992. 800f2c4: 6c5a ldr r2, [r3, #68] @ 0x44
  34993. 800f2c6: 4b24 ldr r3, [pc, #144] @ (800f358 <RCCEx_PLL3_Config+0x160>)
  34994. 800f2c8: 4013 ands r3, r2
  34995. 800f2ca: 687a ldr r2, [r7, #4]
  34996. 800f2cc: 69d2 ldr r2, [r2, #28]
  34997. 800f2ce: 00d2 lsls r2, r2, #3
  34998. 800f2d0: 4920 ldr r1, [pc, #128] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  34999. 800f2d2: 4313 orrs r3, r2
  35000. 800f2d4: 644b str r3, [r1, #68] @ 0x44
  35001. /* Enable PLL3FRACN . */
  35002. __HAL_RCC_PLL3FRACN_ENABLE();
  35003. 800f2d6: 4b1f ldr r3, [pc, #124] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35004. 800f2d8: 6adb ldr r3, [r3, #44] @ 0x2c
  35005. 800f2da: 4a1e ldr r2, [pc, #120] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35006. 800f2dc: f443 7380 orr.w r3, r3, #256 @ 0x100
  35007. 800f2e0: 62d3 str r3, [r2, #44] @ 0x2c
  35008. /* Enable the PLL3 clock output */
  35009. if (Divider == DIVIDER_P_UPDATE)
  35010. 800f2e2: 683b ldr r3, [r7, #0]
  35011. 800f2e4: 2b00 cmp r3, #0
  35012. 800f2e6: d106 bne.n 800f2f6 <RCCEx_PLL3_Config+0xfe>
  35013. {
  35014. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  35015. 800f2e8: 4b1a ldr r3, [pc, #104] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35016. 800f2ea: 6adb ldr r3, [r3, #44] @ 0x2c
  35017. 800f2ec: 4a19 ldr r2, [pc, #100] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35018. 800f2ee: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  35019. 800f2f2: 62d3 str r3, [r2, #44] @ 0x2c
  35020. 800f2f4: e00f b.n 800f316 <RCCEx_PLL3_Config+0x11e>
  35021. }
  35022. else if (Divider == DIVIDER_Q_UPDATE)
  35023. 800f2f6: 683b ldr r3, [r7, #0]
  35024. 800f2f8: 2b01 cmp r3, #1
  35025. 800f2fa: d106 bne.n 800f30a <RCCEx_PLL3_Config+0x112>
  35026. {
  35027. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  35028. 800f2fc: 4b15 ldr r3, [pc, #84] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35029. 800f2fe: 6adb ldr r3, [r3, #44] @ 0x2c
  35030. 800f300: 4a14 ldr r2, [pc, #80] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35031. 800f302: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  35032. 800f306: 62d3 str r3, [r2, #44] @ 0x2c
  35033. 800f308: e005 b.n 800f316 <RCCEx_PLL3_Config+0x11e>
  35034. }
  35035. else
  35036. {
  35037. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  35038. 800f30a: 4b12 ldr r3, [pc, #72] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35039. 800f30c: 6adb ldr r3, [r3, #44] @ 0x2c
  35040. 800f30e: 4a11 ldr r2, [pc, #68] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35041. 800f310: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  35042. 800f314: 62d3 str r3, [r2, #44] @ 0x2c
  35043. }
  35044. /* Enable PLL3. */
  35045. __HAL_RCC_PLL3_ENABLE();
  35046. 800f316: 4b0f ldr r3, [pc, #60] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35047. 800f318: 681b ldr r3, [r3, #0]
  35048. 800f31a: 4a0e ldr r2, [pc, #56] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35049. 800f31c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  35050. 800f320: 6013 str r3, [r2, #0]
  35051. /* Get Start Tick*/
  35052. tickstart = HAL_GetTick();
  35053. 800f322: f7f6 fd7b bl 8005e1c <HAL_GetTick>
  35054. 800f326: 60b8 str r0, [r7, #8]
  35055. /* Wait till PLL3 is ready */
  35056. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35057. 800f328: e008 b.n 800f33c <RCCEx_PLL3_Config+0x144>
  35058. {
  35059. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  35060. 800f32a: f7f6 fd77 bl 8005e1c <HAL_GetTick>
  35061. 800f32e: 4602 mov r2, r0
  35062. 800f330: 68bb ldr r3, [r7, #8]
  35063. 800f332: 1ad3 subs r3, r2, r3
  35064. 800f334: 2b02 cmp r3, #2
  35065. 800f336: d901 bls.n 800f33c <RCCEx_PLL3_Config+0x144>
  35066. {
  35067. return HAL_TIMEOUT;
  35068. 800f338: 2303 movs r3, #3
  35069. 800f33a: e006 b.n 800f34a <RCCEx_PLL3_Config+0x152>
  35070. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35071. 800f33c: 4b05 ldr r3, [pc, #20] @ (800f354 <RCCEx_PLL3_Config+0x15c>)
  35072. 800f33e: 681b ldr r3, [r3, #0]
  35073. 800f340: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  35074. 800f344: 2b00 cmp r3, #0
  35075. 800f346: d0f0 beq.n 800f32a <RCCEx_PLL3_Config+0x132>
  35076. }
  35077. }
  35078. return status;
  35079. 800f348: 7bfb ldrb r3, [r7, #15]
  35080. }
  35081. 800f34a: 4618 mov r0, r3
  35082. 800f34c: 3710 adds r7, #16
  35083. 800f34e: 46bd mov sp, r7
  35084. 800f350: bd80 pop {r7, pc}
  35085. 800f352: bf00 nop
  35086. 800f354: 58024400 .word 0x58024400
  35087. 800f358: ffff0007 .word 0xffff0007
  35088. 0800f35c <HAL_RNG_Init>:
  35089. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  35090. * the configuration information for RNG.
  35091. * @retval HAL status
  35092. */
  35093. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  35094. {
  35095. 800f35c: b580 push {r7, lr}
  35096. 800f35e: b084 sub sp, #16
  35097. 800f360: af00 add r7, sp, #0
  35098. 800f362: 6078 str r0, [r7, #4]
  35099. uint32_t tickstart;
  35100. /* Check the RNG handle allocation */
  35101. if (hrng == NULL)
  35102. 800f364: 687b ldr r3, [r7, #4]
  35103. 800f366: 2b00 cmp r3, #0
  35104. 800f368: d101 bne.n 800f36e <HAL_RNG_Init+0x12>
  35105. {
  35106. return HAL_ERROR;
  35107. 800f36a: 2301 movs r3, #1
  35108. 800f36c: e054 b.n 800f418 <HAL_RNG_Init+0xbc>
  35109. /* Init the low level hardware */
  35110. hrng->MspInitCallback(hrng);
  35111. }
  35112. #else
  35113. if (hrng->State == HAL_RNG_STATE_RESET)
  35114. 800f36e: 687b ldr r3, [r7, #4]
  35115. 800f370: 7a5b ldrb r3, [r3, #9]
  35116. 800f372: b2db uxtb r3, r3
  35117. 800f374: 2b00 cmp r3, #0
  35118. 800f376: d105 bne.n 800f384 <HAL_RNG_Init+0x28>
  35119. {
  35120. /* Allocate lock resource and initialize it */
  35121. hrng->Lock = HAL_UNLOCKED;
  35122. 800f378: 687b ldr r3, [r7, #4]
  35123. 800f37a: 2200 movs r2, #0
  35124. 800f37c: 721a strb r2, [r3, #8]
  35125. /* Init the low level hardware */
  35126. HAL_RNG_MspInit(hrng);
  35127. 800f37e: 6878 ldr r0, [r7, #4]
  35128. 800f380: f7f4 ff30 bl 80041e4 <HAL_RNG_MspInit>
  35129. }
  35130. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  35131. /* Change RNG peripheral state */
  35132. hrng->State = HAL_RNG_STATE_BUSY;
  35133. 800f384: 687b ldr r3, [r7, #4]
  35134. 800f386: 2202 movs r2, #2
  35135. 800f388: 725a strb r2, [r3, #9]
  35136. }
  35137. }
  35138. }
  35139. #else
  35140. /* Clock Error Detection Configuration */
  35141. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  35142. 800f38a: 687b ldr r3, [r7, #4]
  35143. 800f38c: 681b ldr r3, [r3, #0]
  35144. 800f38e: 681b ldr r3, [r3, #0]
  35145. 800f390: f023 0120 bic.w r1, r3, #32
  35146. 800f394: 687b ldr r3, [r7, #4]
  35147. 800f396: 685a ldr r2, [r3, #4]
  35148. 800f398: 687b ldr r3, [r7, #4]
  35149. 800f39a: 681b ldr r3, [r3, #0]
  35150. 800f39c: 430a orrs r2, r1
  35151. 800f39e: 601a str r2, [r3, #0]
  35152. #endif /* RNG_CR_CONDRST */
  35153. /* Enable the RNG Peripheral */
  35154. __HAL_RNG_ENABLE(hrng);
  35155. 800f3a0: 687b ldr r3, [r7, #4]
  35156. 800f3a2: 681b ldr r3, [r3, #0]
  35157. 800f3a4: 681a ldr r2, [r3, #0]
  35158. 800f3a6: 687b ldr r3, [r7, #4]
  35159. 800f3a8: 681b ldr r3, [r3, #0]
  35160. 800f3aa: f042 0204 orr.w r2, r2, #4
  35161. 800f3ae: 601a str r2, [r3, #0]
  35162. /* verify that no seed error */
  35163. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  35164. 800f3b0: 687b ldr r3, [r7, #4]
  35165. 800f3b2: 681b ldr r3, [r3, #0]
  35166. 800f3b4: 685b ldr r3, [r3, #4]
  35167. 800f3b6: f003 0340 and.w r3, r3, #64 @ 0x40
  35168. 800f3ba: 2b40 cmp r3, #64 @ 0x40
  35169. 800f3bc: d104 bne.n 800f3c8 <HAL_RNG_Init+0x6c>
  35170. {
  35171. hrng->State = HAL_RNG_STATE_ERROR;
  35172. 800f3be: 687b ldr r3, [r7, #4]
  35173. 800f3c0: 2204 movs r2, #4
  35174. 800f3c2: 725a strb r2, [r3, #9]
  35175. return HAL_ERROR;
  35176. 800f3c4: 2301 movs r3, #1
  35177. 800f3c6: e027 b.n 800f418 <HAL_RNG_Init+0xbc>
  35178. }
  35179. /* Get tick */
  35180. tickstart = HAL_GetTick();
  35181. 800f3c8: f7f6 fd28 bl 8005e1c <HAL_GetTick>
  35182. 800f3cc: 60f8 str r0, [r7, #12]
  35183. /* Check if data register contains valid random data */
  35184. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35185. 800f3ce: e015 b.n 800f3fc <HAL_RNG_Init+0xa0>
  35186. {
  35187. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  35188. 800f3d0: f7f6 fd24 bl 8005e1c <HAL_GetTick>
  35189. 800f3d4: 4602 mov r2, r0
  35190. 800f3d6: 68fb ldr r3, [r7, #12]
  35191. 800f3d8: 1ad3 subs r3, r2, r3
  35192. 800f3da: 2b02 cmp r3, #2
  35193. 800f3dc: d90e bls.n 800f3fc <HAL_RNG_Init+0xa0>
  35194. {
  35195. /* New check to avoid false timeout detection in case of preemption */
  35196. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35197. 800f3de: 687b ldr r3, [r7, #4]
  35198. 800f3e0: 681b ldr r3, [r3, #0]
  35199. 800f3e2: 685b ldr r3, [r3, #4]
  35200. 800f3e4: f003 0304 and.w r3, r3, #4
  35201. 800f3e8: 2b04 cmp r3, #4
  35202. 800f3ea: d107 bne.n 800f3fc <HAL_RNG_Init+0xa0>
  35203. {
  35204. hrng->State = HAL_RNG_STATE_ERROR;
  35205. 800f3ec: 687b ldr r3, [r7, #4]
  35206. 800f3ee: 2204 movs r2, #4
  35207. 800f3f0: 725a strb r2, [r3, #9]
  35208. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  35209. 800f3f2: 687b ldr r3, [r7, #4]
  35210. 800f3f4: 2202 movs r2, #2
  35211. 800f3f6: 60da str r2, [r3, #12]
  35212. return HAL_ERROR;
  35213. 800f3f8: 2301 movs r3, #1
  35214. 800f3fa: e00d b.n 800f418 <HAL_RNG_Init+0xbc>
  35215. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35216. 800f3fc: 687b ldr r3, [r7, #4]
  35217. 800f3fe: 681b ldr r3, [r3, #0]
  35218. 800f400: 685b ldr r3, [r3, #4]
  35219. 800f402: f003 0304 and.w r3, r3, #4
  35220. 800f406: 2b04 cmp r3, #4
  35221. 800f408: d0e2 beq.n 800f3d0 <HAL_RNG_Init+0x74>
  35222. }
  35223. }
  35224. }
  35225. /* Initialize the RNG state */
  35226. hrng->State = HAL_RNG_STATE_READY;
  35227. 800f40a: 687b ldr r3, [r7, #4]
  35228. 800f40c: 2201 movs r2, #1
  35229. 800f40e: 725a strb r2, [r3, #9]
  35230. /* Initialise the error code */
  35231. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  35232. 800f410: 687b ldr r3, [r7, #4]
  35233. 800f412: 2200 movs r2, #0
  35234. 800f414: 60da str r2, [r3, #12]
  35235. /* Return function status */
  35236. return HAL_OK;
  35237. 800f416: 2300 movs r3, #0
  35238. }
  35239. 800f418: 4618 mov r0, r3
  35240. 800f41a: 3710 adds r7, #16
  35241. 800f41c: 46bd mov sp, r7
  35242. 800f41e: bd80 pop {r7, pc}
  35243. 0800f420 <HAL_TIM_Base_Init>:
  35244. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  35245. * @param htim TIM Base handle
  35246. * @retval HAL status
  35247. */
  35248. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  35249. {
  35250. 800f420: b580 push {r7, lr}
  35251. 800f422: b082 sub sp, #8
  35252. 800f424: af00 add r7, sp, #0
  35253. 800f426: 6078 str r0, [r7, #4]
  35254. /* Check the TIM handle allocation */
  35255. if (htim == NULL)
  35256. 800f428: 687b ldr r3, [r7, #4]
  35257. 800f42a: 2b00 cmp r3, #0
  35258. 800f42c: d101 bne.n 800f432 <HAL_TIM_Base_Init+0x12>
  35259. {
  35260. return HAL_ERROR;
  35261. 800f42e: 2301 movs r3, #1
  35262. 800f430: e049 b.n 800f4c6 <HAL_TIM_Base_Init+0xa6>
  35263. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35264. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35265. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35266. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35267. if (htim->State == HAL_TIM_STATE_RESET)
  35268. 800f432: 687b ldr r3, [r7, #4]
  35269. 800f434: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35270. 800f438: b2db uxtb r3, r3
  35271. 800f43a: 2b00 cmp r3, #0
  35272. 800f43c: d106 bne.n 800f44c <HAL_TIM_Base_Init+0x2c>
  35273. {
  35274. /* Allocate lock resource and initialize it */
  35275. htim->Lock = HAL_UNLOCKED;
  35276. 800f43e: 687b ldr r3, [r7, #4]
  35277. 800f440: 2200 movs r2, #0
  35278. 800f442: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35279. }
  35280. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35281. htim->Base_MspInitCallback(htim);
  35282. #else
  35283. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35284. HAL_TIM_Base_MspInit(htim);
  35285. 800f446: 6878 ldr r0, [r7, #4]
  35286. 800f448: f7f4 ff40 bl 80042cc <HAL_TIM_Base_MspInit>
  35287. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35288. }
  35289. /* Set the TIM state */
  35290. htim->State = HAL_TIM_STATE_BUSY;
  35291. 800f44c: 687b ldr r3, [r7, #4]
  35292. 800f44e: 2202 movs r2, #2
  35293. 800f450: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35294. /* Set the Time Base configuration */
  35295. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35296. 800f454: 687b ldr r3, [r7, #4]
  35297. 800f456: 681a ldr r2, [r3, #0]
  35298. 800f458: 687b ldr r3, [r7, #4]
  35299. 800f45a: 3304 adds r3, #4
  35300. 800f45c: 4619 mov r1, r3
  35301. 800f45e: 4610 mov r0, r2
  35302. 800f460: f001 f918 bl 8010694 <TIM_Base_SetConfig>
  35303. /* Initialize the DMA burst operation state */
  35304. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35305. 800f464: 687b ldr r3, [r7, #4]
  35306. 800f466: 2201 movs r2, #1
  35307. 800f468: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35308. /* Initialize the TIM channels state */
  35309. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35310. 800f46c: 687b ldr r3, [r7, #4]
  35311. 800f46e: 2201 movs r2, #1
  35312. 800f470: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35313. 800f474: 687b ldr r3, [r7, #4]
  35314. 800f476: 2201 movs r2, #1
  35315. 800f478: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35316. 800f47c: 687b ldr r3, [r7, #4]
  35317. 800f47e: 2201 movs r2, #1
  35318. 800f480: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35319. 800f484: 687b ldr r3, [r7, #4]
  35320. 800f486: 2201 movs r2, #1
  35321. 800f488: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35322. 800f48c: 687b ldr r3, [r7, #4]
  35323. 800f48e: 2201 movs r2, #1
  35324. 800f490: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35325. 800f494: 687b ldr r3, [r7, #4]
  35326. 800f496: 2201 movs r2, #1
  35327. 800f498: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35328. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35329. 800f49c: 687b ldr r3, [r7, #4]
  35330. 800f49e: 2201 movs r2, #1
  35331. 800f4a0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35332. 800f4a4: 687b ldr r3, [r7, #4]
  35333. 800f4a6: 2201 movs r2, #1
  35334. 800f4a8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35335. 800f4ac: 687b ldr r3, [r7, #4]
  35336. 800f4ae: 2201 movs r2, #1
  35337. 800f4b0: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35338. 800f4b4: 687b ldr r3, [r7, #4]
  35339. 800f4b6: 2201 movs r2, #1
  35340. 800f4b8: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35341. /* Initialize the TIM state*/
  35342. htim->State = HAL_TIM_STATE_READY;
  35343. 800f4bc: 687b ldr r3, [r7, #4]
  35344. 800f4be: 2201 movs r2, #1
  35345. 800f4c0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35346. return HAL_OK;
  35347. 800f4c4: 2300 movs r3, #0
  35348. }
  35349. 800f4c6: 4618 mov r0, r3
  35350. 800f4c8: 3708 adds r7, #8
  35351. 800f4ca: 46bd mov sp, r7
  35352. 800f4cc: bd80 pop {r7, pc}
  35353. ...
  35354. 0800f4d0 <HAL_TIM_Base_Start>:
  35355. * @brief Starts the TIM Base generation.
  35356. * @param htim TIM Base handle
  35357. * @retval HAL status
  35358. */
  35359. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  35360. {
  35361. 800f4d0: b480 push {r7}
  35362. 800f4d2: b085 sub sp, #20
  35363. 800f4d4: af00 add r7, sp, #0
  35364. 800f4d6: 6078 str r0, [r7, #4]
  35365. /* Check the parameters */
  35366. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35367. /* Check the TIM state */
  35368. if (htim->State != HAL_TIM_STATE_READY)
  35369. 800f4d8: 687b ldr r3, [r7, #4]
  35370. 800f4da: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35371. 800f4de: b2db uxtb r3, r3
  35372. 800f4e0: 2b01 cmp r3, #1
  35373. 800f4e2: d001 beq.n 800f4e8 <HAL_TIM_Base_Start+0x18>
  35374. {
  35375. return HAL_ERROR;
  35376. 800f4e4: 2301 movs r3, #1
  35377. 800f4e6: e04c b.n 800f582 <HAL_TIM_Base_Start+0xb2>
  35378. }
  35379. /* Set the TIM state */
  35380. htim->State = HAL_TIM_STATE_BUSY;
  35381. 800f4e8: 687b ldr r3, [r7, #4]
  35382. 800f4ea: 2202 movs r2, #2
  35383. 800f4ec: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35384. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35385. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35386. 800f4f0: 687b ldr r3, [r7, #4]
  35387. 800f4f2: 681b ldr r3, [r3, #0]
  35388. 800f4f4: 4a26 ldr r2, [pc, #152] @ (800f590 <HAL_TIM_Base_Start+0xc0>)
  35389. 800f4f6: 4293 cmp r3, r2
  35390. 800f4f8: d022 beq.n 800f540 <HAL_TIM_Base_Start+0x70>
  35391. 800f4fa: 687b ldr r3, [r7, #4]
  35392. 800f4fc: 681b ldr r3, [r3, #0]
  35393. 800f4fe: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35394. 800f502: d01d beq.n 800f540 <HAL_TIM_Base_Start+0x70>
  35395. 800f504: 687b ldr r3, [r7, #4]
  35396. 800f506: 681b ldr r3, [r3, #0]
  35397. 800f508: 4a22 ldr r2, [pc, #136] @ (800f594 <HAL_TIM_Base_Start+0xc4>)
  35398. 800f50a: 4293 cmp r3, r2
  35399. 800f50c: d018 beq.n 800f540 <HAL_TIM_Base_Start+0x70>
  35400. 800f50e: 687b ldr r3, [r7, #4]
  35401. 800f510: 681b ldr r3, [r3, #0]
  35402. 800f512: 4a21 ldr r2, [pc, #132] @ (800f598 <HAL_TIM_Base_Start+0xc8>)
  35403. 800f514: 4293 cmp r3, r2
  35404. 800f516: d013 beq.n 800f540 <HAL_TIM_Base_Start+0x70>
  35405. 800f518: 687b ldr r3, [r7, #4]
  35406. 800f51a: 681b ldr r3, [r3, #0]
  35407. 800f51c: 4a1f ldr r2, [pc, #124] @ (800f59c <HAL_TIM_Base_Start+0xcc>)
  35408. 800f51e: 4293 cmp r3, r2
  35409. 800f520: d00e beq.n 800f540 <HAL_TIM_Base_Start+0x70>
  35410. 800f522: 687b ldr r3, [r7, #4]
  35411. 800f524: 681b ldr r3, [r3, #0]
  35412. 800f526: 4a1e ldr r2, [pc, #120] @ (800f5a0 <HAL_TIM_Base_Start+0xd0>)
  35413. 800f528: 4293 cmp r3, r2
  35414. 800f52a: d009 beq.n 800f540 <HAL_TIM_Base_Start+0x70>
  35415. 800f52c: 687b ldr r3, [r7, #4]
  35416. 800f52e: 681b ldr r3, [r3, #0]
  35417. 800f530: 4a1c ldr r2, [pc, #112] @ (800f5a4 <HAL_TIM_Base_Start+0xd4>)
  35418. 800f532: 4293 cmp r3, r2
  35419. 800f534: d004 beq.n 800f540 <HAL_TIM_Base_Start+0x70>
  35420. 800f536: 687b ldr r3, [r7, #4]
  35421. 800f538: 681b ldr r3, [r3, #0]
  35422. 800f53a: 4a1b ldr r2, [pc, #108] @ (800f5a8 <HAL_TIM_Base_Start+0xd8>)
  35423. 800f53c: 4293 cmp r3, r2
  35424. 800f53e: d115 bne.n 800f56c <HAL_TIM_Base_Start+0x9c>
  35425. {
  35426. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35427. 800f540: 687b ldr r3, [r7, #4]
  35428. 800f542: 681b ldr r3, [r3, #0]
  35429. 800f544: 689a ldr r2, [r3, #8]
  35430. 800f546: 4b19 ldr r3, [pc, #100] @ (800f5ac <HAL_TIM_Base_Start+0xdc>)
  35431. 800f548: 4013 ands r3, r2
  35432. 800f54a: 60fb str r3, [r7, #12]
  35433. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35434. 800f54c: 68fb ldr r3, [r7, #12]
  35435. 800f54e: 2b06 cmp r3, #6
  35436. 800f550: d015 beq.n 800f57e <HAL_TIM_Base_Start+0xae>
  35437. 800f552: 68fb ldr r3, [r7, #12]
  35438. 800f554: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35439. 800f558: d011 beq.n 800f57e <HAL_TIM_Base_Start+0xae>
  35440. {
  35441. __HAL_TIM_ENABLE(htim);
  35442. 800f55a: 687b ldr r3, [r7, #4]
  35443. 800f55c: 681b ldr r3, [r3, #0]
  35444. 800f55e: 681a ldr r2, [r3, #0]
  35445. 800f560: 687b ldr r3, [r7, #4]
  35446. 800f562: 681b ldr r3, [r3, #0]
  35447. 800f564: f042 0201 orr.w r2, r2, #1
  35448. 800f568: 601a str r2, [r3, #0]
  35449. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35450. 800f56a: e008 b.n 800f57e <HAL_TIM_Base_Start+0xae>
  35451. }
  35452. }
  35453. else
  35454. {
  35455. __HAL_TIM_ENABLE(htim);
  35456. 800f56c: 687b ldr r3, [r7, #4]
  35457. 800f56e: 681b ldr r3, [r3, #0]
  35458. 800f570: 681a ldr r2, [r3, #0]
  35459. 800f572: 687b ldr r3, [r7, #4]
  35460. 800f574: 681b ldr r3, [r3, #0]
  35461. 800f576: f042 0201 orr.w r2, r2, #1
  35462. 800f57a: 601a str r2, [r3, #0]
  35463. 800f57c: e000 b.n 800f580 <HAL_TIM_Base_Start+0xb0>
  35464. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35465. 800f57e: bf00 nop
  35466. }
  35467. /* Return function status */
  35468. return HAL_OK;
  35469. 800f580: 2300 movs r3, #0
  35470. }
  35471. 800f582: 4618 mov r0, r3
  35472. 800f584: 3714 adds r7, #20
  35473. 800f586: 46bd mov sp, r7
  35474. 800f588: f85d 7b04 ldr.w r7, [sp], #4
  35475. 800f58c: 4770 bx lr
  35476. 800f58e: bf00 nop
  35477. 800f590: 40010000 .word 0x40010000
  35478. 800f594: 40000400 .word 0x40000400
  35479. 800f598: 40000800 .word 0x40000800
  35480. 800f59c: 40000c00 .word 0x40000c00
  35481. 800f5a0: 40010400 .word 0x40010400
  35482. 800f5a4: 40001800 .word 0x40001800
  35483. 800f5a8: 40014000 .word 0x40014000
  35484. 800f5ac: 00010007 .word 0x00010007
  35485. 0800f5b0 <HAL_TIM_Base_Start_IT>:
  35486. * @brief Starts the TIM Base generation in interrupt mode.
  35487. * @param htim TIM Base handle
  35488. * @retval HAL status
  35489. */
  35490. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  35491. {
  35492. 800f5b0: b480 push {r7}
  35493. 800f5b2: b085 sub sp, #20
  35494. 800f5b4: af00 add r7, sp, #0
  35495. 800f5b6: 6078 str r0, [r7, #4]
  35496. /* Check the parameters */
  35497. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35498. /* Check the TIM state */
  35499. if (htim->State != HAL_TIM_STATE_READY)
  35500. 800f5b8: 687b ldr r3, [r7, #4]
  35501. 800f5ba: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35502. 800f5be: b2db uxtb r3, r3
  35503. 800f5c0: 2b01 cmp r3, #1
  35504. 800f5c2: d001 beq.n 800f5c8 <HAL_TIM_Base_Start_IT+0x18>
  35505. {
  35506. return HAL_ERROR;
  35507. 800f5c4: 2301 movs r3, #1
  35508. 800f5c6: e054 b.n 800f672 <HAL_TIM_Base_Start_IT+0xc2>
  35509. }
  35510. /* Set the TIM state */
  35511. htim->State = HAL_TIM_STATE_BUSY;
  35512. 800f5c8: 687b ldr r3, [r7, #4]
  35513. 800f5ca: 2202 movs r2, #2
  35514. 800f5cc: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35515. /* Enable the TIM Update interrupt */
  35516. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  35517. 800f5d0: 687b ldr r3, [r7, #4]
  35518. 800f5d2: 681b ldr r3, [r3, #0]
  35519. 800f5d4: 68da ldr r2, [r3, #12]
  35520. 800f5d6: 687b ldr r3, [r7, #4]
  35521. 800f5d8: 681b ldr r3, [r3, #0]
  35522. 800f5da: f042 0201 orr.w r2, r2, #1
  35523. 800f5de: 60da str r2, [r3, #12]
  35524. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35525. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35526. 800f5e0: 687b ldr r3, [r7, #4]
  35527. 800f5e2: 681b ldr r3, [r3, #0]
  35528. 800f5e4: 4a26 ldr r2, [pc, #152] @ (800f680 <HAL_TIM_Base_Start_IT+0xd0>)
  35529. 800f5e6: 4293 cmp r3, r2
  35530. 800f5e8: d022 beq.n 800f630 <HAL_TIM_Base_Start_IT+0x80>
  35531. 800f5ea: 687b ldr r3, [r7, #4]
  35532. 800f5ec: 681b ldr r3, [r3, #0]
  35533. 800f5ee: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35534. 800f5f2: d01d beq.n 800f630 <HAL_TIM_Base_Start_IT+0x80>
  35535. 800f5f4: 687b ldr r3, [r7, #4]
  35536. 800f5f6: 681b ldr r3, [r3, #0]
  35537. 800f5f8: 4a22 ldr r2, [pc, #136] @ (800f684 <HAL_TIM_Base_Start_IT+0xd4>)
  35538. 800f5fa: 4293 cmp r3, r2
  35539. 800f5fc: d018 beq.n 800f630 <HAL_TIM_Base_Start_IT+0x80>
  35540. 800f5fe: 687b ldr r3, [r7, #4]
  35541. 800f600: 681b ldr r3, [r3, #0]
  35542. 800f602: 4a21 ldr r2, [pc, #132] @ (800f688 <HAL_TIM_Base_Start_IT+0xd8>)
  35543. 800f604: 4293 cmp r3, r2
  35544. 800f606: d013 beq.n 800f630 <HAL_TIM_Base_Start_IT+0x80>
  35545. 800f608: 687b ldr r3, [r7, #4]
  35546. 800f60a: 681b ldr r3, [r3, #0]
  35547. 800f60c: 4a1f ldr r2, [pc, #124] @ (800f68c <HAL_TIM_Base_Start_IT+0xdc>)
  35548. 800f60e: 4293 cmp r3, r2
  35549. 800f610: d00e beq.n 800f630 <HAL_TIM_Base_Start_IT+0x80>
  35550. 800f612: 687b ldr r3, [r7, #4]
  35551. 800f614: 681b ldr r3, [r3, #0]
  35552. 800f616: 4a1e ldr r2, [pc, #120] @ (800f690 <HAL_TIM_Base_Start_IT+0xe0>)
  35553. 800f618: 4293 cmp r3, r2
  35554. 800f61a: d009 beq.n 800f630 <HAL_TIM_Base_Start_IT+0x80>
  35555. 800f61c: 687b ldr r3, [r7, #4]
  35556. 800f61e: 681b ldr r3, [r3, #0]
  35557. 800f620: 4a1c ldr r2, [pc, #112] @ (800f694 <HAL_TIM_Base_Start_IT+0xe4>)
  35558. 800f622: 4293 cmp r3, r2
  35559. 800f624: d004 beq.n 800f630 <HAL_TIM_Base_Start_IT+0x80>
  35560. 800f626: 687b ldr r3, [r7, #4]
  35561. 800f628: 681b ldr r3, [r3, #0]
  35562. 800f62a: 4a1b ldr r2, [pc, #108] @ (800f698 <HAL_TIM_Base_Start_IT+0xe8>)
  35563. 800f62c: 4293 cmp r3, r2
  35564. 800f62e: d115 bne.n 800f65c <HAL_TIM_Base_Start_IT+0xac>
  35565. {
  35566. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35567. 800f630: 687b ldr r3, [r7, #4]
  35568. 800f632: 681b ldr r3, [r3, #0]
  35569. 800f634: 689a ldr r2, [r3, #8]
  35570. 800f636: 4b19 ldr r3, [pc, #100] @ (800f69c <HAL_TIM_Base_Start_IT+0xec>)
  35571. 800f638: 4013 ands r3, r2
  35572. 800f63a: 60fb str r3, [r7, #12]
  35573. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35574. 800f63c: 68fb ldr r3, [r7, #12]
  35575. 800f63e: 2b06 cmp r3, #6
  35576. 800f640: d015 beq.n 800f66e <HAL_TIM_Base_Start_IT+0xbe>
  35577. 800f642: 68fb ldr r3, [r7, #12]
  35578. 800f644: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35579. 800f648: d011 beq.n 800f66e <HAL_TIM_Base_Start_IT+0xbe>
  35580. {
  35581. __HAL_TIM_ENABLE(htim);
  35582. 800f64a: 687b ldr r3, [r7, #4]
  35583. 800f64c: 681b ldr r3, [r3, #0]
  35584. 800f64e: 681a ldr r2, [r3, #0]
  35585. 800f650: 687b ldr r3, [r7, #4]
  35586. 800f652: 681b ldr r3, [r3, #0]
  35587. 800f654: f042 0201 orr.w r2, r2, #1
  35588. 800f658: 601a str r2, [r3, #0]
  35589. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35590. 800f65a: e008 b.n 800f66e <HAL_TIM_Base_Start_IT+0xbe>
  35591. }
  35592. }
  35593. else
  35594. {
  35595. __HAL_TIM_ENABLE(htim);
  35596. 800f65c: 687b ldr r3, [r7, #4]
  35597. 800f65e: 681b ldr r3, [r3, #0]
  35598. 800f660: 681a ldr r2, [r3, #0]
  35599. 800f662: 687b ldr r3, [r7, #4]
  35600. 800f664: 681b ldr r3, [r3, #0]
  35601. 800f666: f042 0201 orr.w r2, r2, #1
  35602. 800f66a: 601a str r2, [r3, #0]
  35603. 800f66c: e000 b.n 800f670 <HAL_TIM_Base_Start_IT+0xc0>
  35604. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35605. 800f66e: bf00 nop
  35606. }
  35607. /* Return function status */
  35608. return HAL_OK;
  35609. 800f670: 2300 movs r3, #0
  35610. }
  35611. 800f672: 4618 mov r0, r3
  35612. 800f674: 3714 adds r7, #20
  35613. 800f676: 46bd mov sp, r7
  35614. 800f678: f85d 7b04 ldr.w r7, [sp], #4
  35615. 800f67c: 4770 bx lr
  35616. 800f67e: bf00 nop
  35617. 800f680: 40010000 .word 0x40010000
  35618. 800f684: 40000400 .word 0x40000400
  35619. 800f688: 40000800 .word 0x40000800
  35620. 800f68c: 40000c00 .word 0x40000c00
  35621. 800f690: 40010400 .word 0x40010400
  35622. 800f694: 40001800 .word 0x40001800
  35623. 800f698: 40014000 .word 0x40014000
  35624. 800f69c: 00010007 .word 0x00010007
  35625. 0800f6a0 <HAL_TIM_PWM_Init>:
  35626. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  35627. * @param htim TIM PWM handle
  35628. * @retval HAL status
  35629. */
  35630. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  35631. {
  35632. 800f6a0: b580 push {r7, lr}
  35633. 800f6a2: b082 sub sp, #8
  35634. 800f6a4: af00 add r7, sp, #0
  35635. 800f6a6: 6078 str r0, [r7, #4]
  35636. /* Check the TIM handle allocation */
  35637. if (htim == NULL)
  35638. 800f6a8: 687b ldr r3, [r7, #4]
  35639. 800f6aa: 2b00 cmp r3, #0
  35640. 800f6ac: d101 bne.n 800f6b2 <HAL_TIM_PWM_Init+0x12>
  35641. {
  35642. return HAL_ERROR;
  35643. 800f6ae: 2301 movs r3, #1
  35644. 800f6b0: e049 b.n 800f746 <HAL_TIM_PWM_Init+0xa6>
  35645. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35646. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35647. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35648. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35649. if (htim->State == HAL_TIM_STATE_RESET)
  35650. 800f6b2: 687b ldr r3, [r7, #4]
  35651. 800f6b4: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35652. 800f6b8: b2db uxtb r3, r3
  35653. 800f6ba: 2b00 cmp r3, #0
  35654. 800f6bc: d106 bne.n 800f6cc <HAL_TIM_PWM_Init+0x2c>
  35655. {
  35656. /* Allocate lock resource and initialize it */
  35657. htim->Lock = HAL_UNLOCKED;
  35658. 800f6be: 687b ldr r3, [r7, #4]
  35659. 800f6c0: 2200 movs r2, #0
  35660. 800f6c2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35661. }
  35662. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35663. htim->PWM_MspInitCallback(htim);
  35664. #else
  35665. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  35666. HAL_TIM_PWM_MspInit(htim);
  35667. 800f6c6: 6878 ldr r0, [r7, #4]
  35668. 800f6c8: f7f4 fdc6 bl 8004258 <HAL_TIM_PWM_MspInit>
  35669. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35670. }
  35671. /* Set the TIM state */
  35672. htim->State = HAL_TIM_STATE_BUSY;
  35673. 800f6cc: 687b ldr r3, [r7, #4]
  35674. 800f6ce: 2202 movs r2, #2
  35675. 800f6d0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35676. /* Init the base time for the PWM */
  35677. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35678. 800f6d4: 687b ldr r3, [r7, #4]
  35679. 800f6d6: 681a ldr r2, [r3, #0]
  35680. 800f6d8: 687b ldr r3, [r7, #4]
  35681. 800f6da: 3304 adds r3, #4
  35682. 800f6dc: 4619 mov r1, r3
  35683. 800f6de: 4610 mov r0, r2
  35684. 800f6e0: f000 ffd8 bl 8010694 <TIM_Base_SetConfig>
  35685. /* Initialize the DMA burst operation state */
  35686. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35687. 800f6e4: 687b ldr r3, [r7, #4]
  35688. 800f6e6: 2201 movs r2, #1
  35689. 800f6e8: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35690. /* Initialize the TIM channels state */
  35691. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35692. 800f6ec: 687b ldr r3, [r7, #4]
  35693. 800f6ee: 2201 movs r2, #1
  35694. 800f6f0: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35695. 800f6f4: 687b ldr r3, [r7, #4]
  35696. 800f6f6: 2201 movs r2, #1
  35697. 800f6f8: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35698. 800f6fc: 687b ldr r3, [r7, #4]
  35699. 800f6fe: 2201 movs r2, #1
  35700. 800f700: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35701. 800f704: 687b ldr r3, [r7, #4]
  35702. 800f706: 2201 movs r2, #1
  35703. 800f708: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35704. 800f70c: 687b ldr r3, [r7, #4]
  35705. 800f70e: 2201 movs r2, #1
  35706. 800f710: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35707. 800f714: 687b ldr r3, [r7, #4]
  35708. 800f716: 2201 movs r2, #1
  35709. 800f718: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35710. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35711. 800f71c: 687b ldr r3, [r7, #4]
  35712. 800f71e: 2201 movs r2, #1
  35713. 800f720: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35714. 800f724: 687b ldr r3, [r7, #4]
  35715. 800f726: 2201 movs r2, #1
  35716. 800f728: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35717. 800f72c: 687b ldr r3, [r7, #4]
  35718. 800f72e: 2201 movs r2, #1
  35719. 800f730: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35720. 800f734: 687b ldr r3, [r7, #4]
  35721. 800f736: 2201 movs r2, #1
  35722. 800f738: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35723. /* Initialize the TIM state*/
  35724. htim->State = HAL_TIM_STATE_READY;
  35725. 800f73c: 687b ldr r3, [r7, #4]
  35726. 800f73e: 2201 movs r2, #1
  35727. 800f740: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35728. return HAL_OK;
  35729. 800f744: 2300 movs r3, #0
  35730. }
  35731. 800f746: 4618 mov r0, r3
  35732. 800f748: 3708 adds r7, #8
  35733. 800f74a: 46bd mov sp, r7
  35734. 800f74c: bd80 pop {r7, pc}
  35735. ...
  35736. 0800f750 <HAL_TIM_PWM_Start>:
  35737. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  35738. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  35739. * @retval HAL status
  35740. */
  35741. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  35742. {
  35743. 800f750: b580 push {r7, lr}
  35744. 800f752: b084 sub sp, #16
  35745. 800f754: af00 add r7, sp, #0
  35746. 800f756: 6078 str r0, [r7, #4]
  35747. 800f758: 6039 str r1, [r7, #0]
  35748. /* Check the parameters */
  35749. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  35750. /* Check the TIM channel state */
  35751. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  35752. 800f75a: 683b ldr r3, [r7, #0]
  35753. 800f75c: 2b00 cmp r3, #0
  35754. 800f75e: d109 bne.n 800f774 <HAL_TIM_PWM_Start+0x24>
  35755. 800f760: 687b ldr r3, [r7, #4]
  35756. 800f762: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  35757. 800f766: b2db uxtb r3, r3
  35758. 800f768: 2b01 cmp r3, #1
  35759. 800f76a: bf14 ite ne
  35760. 800f76c: 2301 movne r3, #1
  35761. 800f76e: 2300 moveq r3, #0
  35762. 800f770: b2db uxtb r3, r3
  35763. 800f772: e03c b.n 800f7ee <HAL_TIM_PWM_Start+0x9e>
  35764. 800f774: 683b ldr r3, [r7, #0]
  35765. 800f776: 2b04 cmp r3, #4
  35766. 800f778: d109 bne.n 800f78e <HAL_TIM_PWM_Start+0x3e>
  35767. 800f77a: 687b ldr r3, [r7, #4]
  35768. 800f77c: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  35769. 800f780: b2db uxtb r3, r3
  35770. 800f782: 2b01 cmp r3, #1
  35771. 800f784: bf14 ite ne
  35772. 800f786: 2301 movne r3, #1
  35773. 800f788: 2300 moveq r3, #0
  35774. 800f78a: b2db uxtb r3, r3
  35775. 800f78c: e02f b.n 800f7ee <HAL_TIM_PWM_Start+0x9e>
  35776. 800f78e: 683b ldr r3, [r7, #0]
  35777. 800f790: 2b08 cmp r3, #8
  35778. 800f792: d109 bne.n 800f7a8 <HAL_TIM_PWM_Start+0x58>
  35779. 800f794: 687b ldr r3, [r7, #4]
  35780. 800f796: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  35781. 800f79a: b2db uxtb r3, r3
  35782. 800f79c: 2b01 cmp r3, #1
  35783. 800f79e: bf14 ite ne
  35784. 800f7a0: 2301 movne r3, #1
  35785. 800f7a2: 2300 moveq r3, #0
  35786. 800f7a4: b2db uxtb r3, r3
  35787. 800f7a6: e022 b.n 800f7ee <HAL_TIM_PWM_Start+0x9e>
  35788. 800f7a8: 683b ldr r3, [r7, #0]
  35789. 800f7aa: 2b0c cmp r3, #12
  35790. 800f7ac: d109 bne.n 800f7c2 <HAL_TIM_PWM_Start+0x72>
  35791. 800f7ae: 687b ldr r3, [r7, #4]
  35792. 800f7b0: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  35793. 800f7b4: b2db uxtb r3, r3
  35794. 800f7b6: 2b01 cmp r3, #1
  35795. 800f7b8: bf14 ite ne
  35796. 800f7ba: 2301 movne r3, #1
  35797. 800f7bc: 2300 moveq r3, #0
  35798. 800f7be: b2db uxtb r3, r3
  35799. 800f7c0: e015 b.n 800f7ee <HAL_TIM_PWM_Start+0x9e>
  35800. 800f7c2: 683b ldr r3, [r7, #0]
  35801. 800f7c4: 2b10 cmp r3, #16
  35802. 800f7c6: d109 bne.n 800f7dc <HAL_TIM_PWM_Start+0x8c>
  35803. 800f7c8: 687b ldr r3, [r7, #4]
  35804. 800f7ca: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  35805. 800f7ce: b2db uxtb r3, r3
  35806. 800f7d0: 2b01 cmp r3, #1
  35807. 800f7d2: bf14 ite ne
  35808. 800f7d4: 2301 movne r3, #1
  35809. 800f7d6: 2300 moveq r3, #0
  35810. 800f7d8: b2db uxtb r3, r3
  35811. 800f7da: e008 b.n 800f7ee <HAL_TIM_PWM_Start+0x9e>
  35812. 800f7dc: 687b ldr r3, [r7, #4]
  35813. 800f7de: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  35814. 800f7e2: b2db uxtb r3, r3
  35815. 800f7e4: 2b01 cmp r3, #1
  35816. 800f7e6: bf14 ite ne
  35817. 800f7e8: 2301 movne r3, #1
  35818. 800f7ea: 2300 moveq r3, #0
  35819. 800f7ec: b2db uxtb r3, r3
  35820. 800f7ee: 2b00 cmp r3, #0
  35821. 800f7f0: d001 beq.n 800f7f6 <HAL_TIM_PWM_Start+0xa6>
  35822. {
  35823. return HAL_ERROR;
  35824. 800f7f2: 2301 movs r3, #1
  35825. 800f7f4: e0a1 b.n 800f93a <HAL_TIM_PWM_Start+0x1ea>
  35826. }
  35827. /* Set the TIM channel state */
  35828. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35829. 800f7f6: 683b ldr r3, [r7, #0]
  35830. 800f7f8: 2b00 cmp r3, #0
  35831. 800f7fa: d104 bne.n 800f806 <HAL_TIM_PWM_Start+0xb6>
  35832. 800f7fc: 687b ldr r3, [r7, #4]
  35833. 800f7fe: 2202 movs r2, #2
  35834. 800f800: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35835. 800f804: e023 b.n 800f84e <HAL_TIM_PWM_Start+0xfe>
  35836. 800f806: 683b ldr r3, [r7, #0]
  35837. 800f808: 2b04 cmp r3, #4
  35838. 800f80a: d104 bne.n 800f816 <HAL_TIM_PWM_Start+0xc6>
  35839. 800f80c: 687b ldr r3, [r7, #4]
  35840. 800f80e: 2202 movs r2, #2
  35841. 800f810: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35842. 800f814: e01b b.n 800f84e <HAL_TIM_PWM_Start+0xfe>
  35843. 800f816: 683b ldr r3, [r7, #0]
  35844. 800f818: 2b08 cmp r3, #8
  35845. 800f81a: d104 bne.n 800f826 <HAL_TIM_PWM_Start+0xd6>
  35846. 800f81c: 687b ldr r3, [r7, #4]
  35847. 800f81e: 2202 movs r2, #2
  35848. 800f820: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35849. 800f824: e013 b.n 800f84e <HAL_TIM_PWM_Start+0xfe>
  35850. 800f826: 683b ldr r3, [r7, #0]
  35851. 800f828: 2b0c cmp r3, #12
  35852. 800f82a: d104 bne.n 800f836 <HAL_TIM_PWM_Start+0xe6>
  35853. 800f82c: 687b ldr r3, [r7, #4]
  35854. 800f82e: 2202 movs r2, #2
  35855. 800f830: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35856. 800f834: e00b b.n 800f84e <HAL_TIM_PWM_Start+0xfe>
  35857. 800f836: 683b ldr r3, [r7, #0]
  35858. 800f838: 2b10 cmp r3, #16
  35859. 800f83a: d104 bne.n 800f846 <HAL_TIM_PWM_Start+0xf6>
  35860. 800f83c: 687b ldr r3, [r7, #4]
  35861. 800f83e: 2202 movs r2, #2
  35862. 800f840: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35863. 800f844: e003 b.n 800f84e <HAL_TIM_PWM_Start+0xfe>
  35864. 800f846: 687b ldr r3, [r7, #4]
  35865. 800f848: 2202 movs r2, #2
  35866. 800f84a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35867. /* Enable the Capture compare channel */
  35868. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35869. 800f84e: 687b ldr r3, [r7, #4]
  35870. 800f850: 681b ldr r3, [r3, #0]
  35871. 800f852: 2201 movs r2, #1
  35872. 800f854: 6839 ldr r1, [r7, #0]
  35873. 800f856: 4618 mov r0, r3
  35874. 800f858: f001 fc60 bl 801111c <TIM_CCxChannelCmd>
  35875. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  35876. 800f85c: 687b ldr r3, [r7, #4]
  35877. 800f85e: 681b ldr r3, [r3, #0]
  35878. 800f860: 4a38 ldr r2, [pc, #224] @ (800f944 <HAL_TIM_PWM_Start+0x1f4>)
  35879. 800f862: 4293 cmp r3, r2
  35880. 800f864: d013 beq.n 800f88e <HAL_TIM_PWM_Start+0x13e>
  35881. 800f866: 687b ldr r3, [r7, #4]
  35882. 800f868: 681b ldr r3, [r3, #0]
  35883. 800f86a: 4a37 ldr r2, [pc, #220] @ (800f948 <HAL_TIM_PWM_Start+0x1f8>)
  35884. 800f86c: 4293 cmp r3, r2
  35885. 800f86e: d00e beq.n 800f88e <HAL_TIM_PWM_Start+0x13e>
  35886. 800f870: 687b ldr r3, [r7, #4]
  35887. 800f872: 681b ldr r3, [r3, #0]
  35888. 800f874: 4a35 ldr r2, [pc, #212] @ (800f94c <HAL_TIM_PWM_Start+0x1fc>)
  35889. 800f876: 4293 cmp r3, r2
  35890. 800f878: d009 beq.n 800f88e <HAL_TIM_PWM_Start+0x13e>
  35891. 800f87a: 687b ldr r3, [r7, #4]
  35892. 800f87c: 681b ldr r3, [r3, #0]
  35893. 800f87e: 4a34 ldr r2, [pc, #208] @ (800f950 <HAL_TIM_PWM_Start+0x200>)
  35894. 800f880: 4293 cmp r3, r2
  35895. 800f882: d004 beq.n 800f88e <HAL_TIM_PWM_Start+0x13e>
  35896. 800f884: 687b ldr r3, [r7, #4]
  35897. 800f886: 681b ldr r3, [r3, #0]
  35898. 800f888: 4a32 ldr r2, [pc, #200] @ (800f954 <HAL_TIM_PWM_Start+0x204>)
  35899. 800f88a: 4293 cmp r3, r2
  35900. 800f88c: d101 bne.n 800f892 <HAL_TIM_PWM_Start+0x142>
  35901. 800f88e: 2301 movs r3, #1
  35902. 800f890: e000 b.n 800f894 <HAL_TIM_PWM_Start+0x144>
  35903. 800f892: 2300 movs r3, #0
  35904. 800f894: 2b00 cmp r3, #0
  35905. 800f896: d007 beq.n 800f8a8 <HAL_TIM_PWM_Start+0x158>
  35906. {
  35907. /* Enable the main output */
  35908. __HAL_TIM_MOE_ENABLE(htim);
  35909. 800f898: 687b ldr r3, [r7, #4]
  35910. 800f89a: 681b ldr r3, [r3, #0]
  35911. 800f89c: 6c5a ldr r2, [r3, #68] @ 0x44
  35912. 800f89e: 687b ldr r3, [r7, #4]
  35913. 800f8a0: 681b ldr r3, [r3, #0]
  35914. 800f8a2: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  35915. 800f8a6: 645a str r2, [r3, #68] @ 0x44
  35916. }
  35917. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35918. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35919. 800f8a8: 687b ldr r3, [r7, #4]
  35920. 800f8aa: 681b ldr r3, [r3, #0]
  35921. 800f8ac: 4a25 ldr r2, [pc, #148] @ (800f944 <HAL_TIM_PWM_Start+0x1f4>)
  35922. 800f8ae: 4293 cmp r3, r2
  35923. 800f8b0: d022 beq.n 800f8f8 <HAL_TIM_PWM_Start+0x1a8>
  35924. 800f8b2: 687b ldr r3, [r7, #4]
  35925. 800f8b4: 681b ldr r3, [r3, #0]
  35926. 800f8b6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35927. 800f8ba: d01d beq.n 800f8f8 <HAL_TIM_PWM_Start+0x1a8>
  35928. 800f8bc: 687b ldr r3, [r7, #4]
  35929. 800f8be: 681b ldr r3, [r3, #0]
  35930. 800f8c0: 4a25 ldr r2, [pc, #148] @ (800f958 <HAL_TIM_PWM_Start+0x208>)
  35931. 800f8c2: 4293 cmp r3, r2
  35932. 800f8c4: d018 beq.n 800f8f8 <HAL_TIM_PWM_Start+0x1a8>
  35933. 800f8c6: 687b ldr r3, [r7, #4]
  35934. 800f8c8: 681b ldr r3, [r3, #0]
  35935. 800f8ca: 4a24 ldr r2, [pc, #144] @ (800f95c <HAL_TIM_PWM_Start+0x20c>)
  35936. 800f8cc: 4293 cmp r3, r2
  35937. 800f8ce: d013 beq.n 800f8f8 <HAL_TIM_PWM_Start+0x1a8>
  35938. 800f8d0: 687b ldr r3, [r7, #4]
  35939. 800f8d2: 681b ldr r3, [r3, #0]
  35940. 800f8d4: 4a22 ldr r2, [pc, #136] @ (800f960 <HAL_TIM_PWM_Start+0x210>)
  35941. 800f8d6: 4293 cmp r3, r2
  35942. 800f8d8: d00e beq.n 800f8f8 <HAL_TIM_PWM_Start+0x1a8>
  35943. 800f8da: 687b ldr r3, [r7, #4]
  35944. 800f8dc: 681b ldr r3, [r3, #0]
  35945. 800f8de: 4a1a ldr r2, [pc, #104] @ (800f948 <HAL_TIM_PWM_Start+0x1f8>)
  35946. 800f8e0: 4293 cmp r3, r2
  35947. 800f8e2: d009 beq.n 800f8f8 <HAL_TIM_PWM_Start+0x1a8>
  35948. 800f8e4: 687b ldr r3, [r7, #4]
  35949. 800f8e6: 681b ldr r3, [r3, #0]
  35950. 800f8e8: 4a1e ldr r2, [pc, #120] @ (800f964 <HAL_TIM_PWM_Start+0x214>)
  35951. 800f8ea: 4293 cmp r3, r2
  35952. 800f8ec: d004 beq.n 800f8f8 <HAL_TIM_PWM_Start+0x1a8>
  35953. 800f8ee: 687b ldr r3, [r7, #4]
  35954. 800f8f0: 681b ldr r3, [r3, #0]
  35955. 800f8f2: 4a16 ldr r2, [pc, #88] @ (800f94c <HAL_TIM_PWM_Start+0x1fc>)
  35956. 800f8f4: 4293 cmp r3, r2
  35957. 800f8f6: d115 bne.n 800f924 <HAL_TIM_PWM_Start+0x1d4>
  35958. {
  35959. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35960. 800f8f8: 687b ldr r3, [r7, #4]
  35961. 800f8fa: 681b ldr r3, [r3, #0]
  35962. 800f8fc: 689a ldr r2, [r3, #8]
  35963. 800f8fe: 4b1a ldr r3, [pc, #104] @ (800f968 <HAL_TIM_PWM_Start+0x218>)
  35964. 800f900: 4013 ands r3, r2
  35965. 800f902: 60fb str r3, [r7, #12]
  35966. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35967. 800f904: 68fb ldr r3, [r7, #12]
  35968. 800f906: 2b06 cmp r3, #6
  35969. 800f908: d015 beq.n 800f936 <HAL_TIM_PWM_Start+0x1e6>
  35970. 800f90a: 68fb ldr r3, [r7, #12]
  35971. 800f90c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35972. 800f910: d011 beq.n 800f936 <HAL_TIM_PWM_Start+0x1e6>
  35973. {
  35974. __HAL_TIM_ENABLE(htim);
  35975. 800f912: 687b ldr r3, [r7, #4]
  35976. 800f914: 681b ldr r3, [r3, #0]
  35977. 800f916: 681a ldr r2, [r3, #0]
  35978. 800f918: 687b ldr r3, [r7, #4]
  35979. 800f91a: 681b ldr r3, [r3, #0]
  35980. 800f91c: f042 0201 orr.w r2, r2, #1
  35981. 800f920: 601a str r2, [r3, #0]
  35982. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35983. 800f922: e008 b.n 800f936 <HAL_TIM_PWM_Start+0x1e6>
  35984. }
  35985. }
  35986. else
  35987. {
  35988. __HAL_TIM_ENABLE(htim);
  35989. 800f924: 687b ldr r3, [r7, #4]
  35990. 800f926: 681b ldr r3, [r3, #0]
  35991. 800f928: 681a ldr r2, [r3, #0]
  35992. 800f92a: 687b ldr r3, [r7, #4]
  35993. 800f92c: 681b ldr r3, [r3, #0]
  35994. 800f92e: f042 0201 orr.w r2, r2, #1
  35995. 800f932: 601a str r2, [r3, #0]
  35996. 800f934: e000 b.n 800f938 <HAL_TIM_PWM_Start+0x1e8>
  35997. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35998. 800f936: bf00 nop
  35999. }
  36000. /* Return function status */
  36001. return HAL_OK;
  36002. 800f938: 2300 movs r3, #0
  36003. }
  36004. 800f93a: 4618 mov r0, r3
  36005. 800f93c: 3710 adds r7, #16
  36006. 800f93e: 46bd mov sp, r7
  36007. 800f940: bd80 pop {r7, pc}
  36008. 800f942: bf00 nop
  36009. 800f944: 40010000 .word 0x40010000
  36010. 800f948: 40010400 .word 0x40010400
  36011. 800f94c: 40014000 .word 0x40014000
  36012. 800f950: 40014400 .word 0x40014400
  36013. 800f954: 40014800 .word 0x40014800
  36014. 800f958: 40000400 .word 0x40000400
  36015. 800f95c: 40000800 .word 0x40000800
  36016. 800f960: 40000c00 .word 0x40000c00
  36017. 800f964: 40001800 .word 0x40001800
  36018. 800f968: 00010007 .word 0x00010007
  36019. 0800f96c <HAL_TIM_PWM_Stop>:
  36020. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  36021. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  36022. * @retval HAL status
  36023. */
  36024. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  36025. {
  36026. 800f96c: b580 push {r7, lr}
  36027. 800f96e: b082 sub sp, #8
  36028. 800f970: af00 add r7, sp, #0
  36029. 800f972: 6078 str r0, [r7, #4]
  36030. 800f974: 6039 str r1, [r7, #0]
  36031. /* Check the parameters */
  36032. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  36033. /* Disable the Capture compare channel */
  36034. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  36035. 800f976: 687b ldr r3, [r7, #4]
  36036. 800f978: 681b ldr r3, [r3, #0]
  36037. 800f97a: 2200 movs r2, #0
  36038. 800f97c: 6839 ldr r1, [r7, #0]
  36039. 800f97e: 4618 mov r0, r3
  36040. 800f980: f001 fbcc bl 801111c <TIM_CCxChannelCmd>
  36041. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  36042. 800f984: 687b ldr r3, [r7, #4]
  36043. 800f986: 681b ldr r3, [r3, #0]
  36044. 800f988: 4a3e ldr r2, [pc, #248] @ (800fa84 <HAL_TIM_PWM_Stop+0x118>)
  36045. 800f98a: 4293 cmp r3, r2
  36046. 800f98c: d013 beq.n 800f9b6 <HAL_TIM_PWM_Stop+0x4a>
  36047. 800f98e: 687b ldr r3, [r7, #4]
  36048. 800f990: 681b ldr r3, [r3, #0]
  36049. 800f992: 4a3d ldr r2, [pc, #244] @ (800fa88 <HAL_TIM_PWM_Stop+0x11c>)
  36050. 800f994: 4293 cmp r3, r2
  36051. 800f996: d00e beq.n 800f9b6 <HAL_TIM_PWM_Stop+0x4a>
  36052. 800f998: 687b ldr r3, [r7, #4]
  36053. 800f99a: 681b ldr r3, [r3, #0]
  36054. 800f99c: 4a3b ldr r2, [pc, #236] @ (800fa8c <HAL_TIM_PWM_Stop+0x120>)
  36055. 800f99e: 4293 cmp r3, r2
  36056. 800f9a0: d009 beq.n 800f9b6 <HAL_TIM_PWM_Stop+0x4a>
  36057. 800f9a2: 687b ldr r3, [r7, #4]
  36058. 800f9a4: 681b ldr r3, [r3, #0]
  36059. 800f9a6: 4a3a ldr r2, [pc, #232] @ (800fa90 <HAL_TIM_PWM_Stop+0x124>)
  36060. 800f9a8: 4293 cmp r3, r2
  36061. 800f9aa: d004 beq.n 800f9b6 <HAL_TIM_PWM_Stop+0x4a>
  36062. 800f9ac: 687b ldr r3, [r7, #4]
  36063. 800f9ae: 681b ldr r3, [r3, #0]
  36064. 800f9b0: 4a38 ldr r2, [pc, #224] @ (800fa94 <HAL_TIM_PWM_Stop+0x128>)
  36065. 800f9b2: 4293 cmp r3, r2
  36066. 800f9b4: d101 bne.n 800f9ba <HAL_TIM_PWM_Stop+0x4e>
  36067. 800f9b6: 2301 movs r3, #1
  36068. 800f9b8: e000 b.n 800f9bc <HAL_TIM_PWM_Stop+0x50>
  36069. 800f9ba: 2300 movs r3, #0
  36070. 800f9bc: 2b00 cmp r3, #0
  36071. 800f9be: d017 beq.n 800f9f0 <HAL_TIM_PWM_Stop+0x84>
  36072. {
  36073. /* Disable the Main Output */
  36074. __HAL_TIM_MOE_DISABLE(htim);
  36075. 800f9c0: 687b ldr r3, [r7, #4]
  36076. 800f9c2: 681b ldr r3, [r3, #0]
  36077. 800f9c4: 6a1a ldr r2, [r3, #32]
  36078. 800f9c6: f241 1311 movw r3, #4369 @ 0x1111
  36079. 800f9ca: 4013 ands r3, r2
  36080. 800f9cc: 2b00 cmp r3, #0
  36081. 800f9ce: d10f bne.n 800f9f0 <HAL_TIM_PWM_Stop+0x84>
  36082. 800f9d0: 687b ldr r3, [r7, #4]
  36083. 800f9d2: 681b ldr r3, [r3, #0]
  36084. 800f9d4: 6a1a ldr r2, [r3, #32]
  36085. 800f9d6: f240 4344 movw r3, #1092 @ 0x444
  36086. 800f9da: 4013 ands r3, r2
  36087. 800f9dc: 2b00 cmp r3, #0
  36088. 800f9de: d107 bne.n 800f9f0 <HAL_TIM_PWM_Stop+0x84>
  36089. 800f9e0: 687b ldr r3, [r7, #4]
  36090. 800f9e2: 681b ldr r3, [r3, #0]
  36091. 800f9e4: 6c5a ldr r2, [r3, #68] @ 0x44
  36092. 800f9e6: 687b ldr r3, [r7, #4]
  36093. 800f9e8: 681b ldr r3, [r3, #0]
  36094. 800f9ea: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  36095. 800f9ee: 645a str r2, [r3, #68] @ 0x44
  36096. }
  36097. /* Disable the Peripheral */
  36098. __HAL_TIM_DISABLE(htim);
  36099. 800f9f0: 687b ldr r3, [r7, #4]
  36100. 800f9f2: 681b ldr r3, [r3, #0]
  36101. 800f9f4: 6a1a ldr r2, [r3, #32]
  36102. 800f9f6: f241 1311 movw r3, #4369 @ 0x1111
  36103. 800f9fa: 4013 ands r3, r2
  36104. 800f9fc: 2b00 cmp r3, #0
  36105. 800f9fe: d10f bne.n 800fa20 <HAL_TIM_PWM_Stop+0xb4>
  36106. 800fa00: 687b ldr r3, [r7, #4]
  36107. 800fa02: 681b ldr r3, [r3, #0]
  36108. 800fa04: 6a1a ldr r2, [r3, #32]
  36109. 800fa06: f240 4344 movw r3, #1092 @ 0x444
  36110. 800fa0a: 4013 ands r3, r2
  36111. 800fa0c: 2b00 cmp r3, #0
  36112. 800fa0e: d107 bne.n 800fa20 <HAL_TIM_PWM_Stop+0xb4>
  36113. 800fa10: 687b ldr r3, [r7, #4]
  36114. 800fa12: 681b ldr r3, [r3, #0]
  36115. 800fa14: 681a ldr r2, [r3, #0]
  36116. 800fa16: 687b ldr r3, [r7, #4]
  36117. 800fa18: 681b ldr r3, [r3, #0]
  36118. 800fa1a: f022 0201 bic.w r2, r2, #1
  36119. 800fa1e: 601a str r2, [r3, #0]
  36120. /* Set the TIM channel state */
  36121. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  36122. 800fa20: 683b ldr r3, [r7, #0]
  36123. 800fa22: 2b00 cmp r3, #0
  36124. 800fa24: d104 bne.n 800fa30 <HAL_TIM_PWM_Stop+0xc4>
  36125. 800fa26: 687b ldr r3, [r7, #4]
  36126. 800fa28: 2201 movs r2, #1
  36127. 800fa2a: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36128. 800fa2e: e023 b.n 800fa78 <HAL_TIM_PWM_Stop+0x10c>
  36129. 800fa30: 683b ldr r3, [r7, #0]
  36130. 800fa32: 2b04 cmp r3, #4
  36131. 800fa34: d104 bne.n 800fa40 <HAL_TIM_PWM_Stop+0xd4>
  36132. 800fa36: 687b ldr r3, [r7, #4]
  36133. 800fa38: 2201 movs r2, #1
  36134. 800fa3a: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36135. 800fa3e: e01b b.n 800fa78 <HAL_TIM_PWM_Stop+0x10c>
  36136. 800fa40: 683b ldr r3, [r7, #0]
  36137. 800fa42: 2b08 cmp r3, #8
  36138. 800fa44: d104 bne.n 800fa50 <HAL_TIM_PWM_Stop+0xe4>
  36139. 800fa46: 687b ldr r3, [r7, #4]
  36140. 800fa48: 2201 movs r2, #1
  36141. 800fa4a: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36142. 800fa4e: e013 b.n 800fa78 <HAL_TIM_PWM_Stop+0x10c>
  36143. 800fa50: 683b ldr r3, [r7, #0]
  36144. 800fa52: 2b0c cmp r3, #12
  36145. 800fa54: d104 bne.n 800fa60 <HAL_TIM_PWM_Stop+0xf4>
  36146. 800fa56: 687b ldr r3, [r7, #4]
  36147. 800fa58: 2201 movs r2, #1
  36148. 800fa5a: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36149. 800fa5e: e00b b.n 800fa78 <HAL_TIM_PWM_Stop+0x10c>
  36150. 800fa60: 683b ldr r3, [r7, #0]
  36151. 800fa62: 2b10 cmp r3, #16
  36152. 800fa64: d104 bne.n 800fa70 <HAL_TIM_PWM_Stop+0x104>
  36153. 800fa66: 687b ldr r3, [r7, #4]
  36154. 800fa68: 2201 movs r2, #1
  36155. 800fa6a: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36156. 800fa6e: e003 b.n 800fa78 <HAL_TIM_PWM_Stop+0x10c>
  36157. 800fa70: 687b ldr r3, [r7, #4]
  36158. 800fa72: 2201 movs r2, #1
  36159. 800fa74: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36160. /* Return function status */
  36161. return HAL_OK;
  36162. 800fa78: 2300 movs r3, #0
  36163. }
  36164. 800fa7a: 4618 mov r0, r3
  36165. 800fa7c: 3708 adds r7, #8
  36166. 800fa7e: 46bd mov sp, r7
  36167. 800fa80: bd80 pop {r7, pc}
  36168. 800fa82: bf00 nop
  36169. 800fa84: 40010000 .word 0x40010000
  36170. 800fa88: 40010400 .word 0x40010400
  36171. 800fa8c: 40014000 .word 0x40014000
  36172. 800fa90: 40014400 .word 0x40014400
  36173. 800fa94: 40014800 .word 0x40014800
  36174. 0800fa98 <HAL_TIM_IC_Init>:
  36175. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  36176. * @param htim TIM Input Capture handle
  36177. * @retval HAL status
  36178. */
  36179. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  36180. {
  36181. 800fa98: b580 push {r7, lr}
  36182. 800fa9a: b082 sub sp, #8
  36183. 800fa9c: af00 add r7, sp, #0
  36184. 800fa9e: 6078 str r0, [r7, #4]
  36185. /* Check the TIM handle allocation */
  36186. if (htim == NULL)
  36187. 800faa0: 687b ldr r3, [r7, #4]
  36188. 800faa2: 2b00 cmp r3, #0
  36189. 800faa4: d101 bne.n 800faaa <HAL_TIM_IC_Init+0x12>
  36190. {
  36191. return HAL_ERROR;
  36192. 800faa6: 2301 movs r3, #1
  36193. 800faa8: e049 b.n 800fb3e <HAL_TIM_IC_Init+0xa6>
  36194. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  36195. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  36196. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  36197. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  36198. if (htim->State == HAL_TIM_STATE_RESET)
  36199. 800faaa: 687b ldr r3, [r7, #4]
  36200. 800faac: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  36201. 800fab0: b2db uxtb r3, r3
  36202. 800fab2: 2b00 cmp r3, #0
  36203. 800fab4: d106 bne.n 800fac4 <HAL_TIM_IC_Init+0x2c>
  36204. {
  36205. /* Allocate lock resource and initialize it */
  36206. htim->Lock = HAL_UNLOCKED;
  36207. 800fab6: 687b ldr r3, [r7, #4]
  36208. 800fab8: 2200 movs r2, #0
  36209. 800faba: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36210. }
  36211. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  36212. htim->IC_MspInitCallback(htim);
  36213. #else
  36214. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  36215. HAL_TIM_IC_MspInit(htim);
  36216. 800fabe: 6878 ldr r0, [r7, #4]
  36217. 800fac0: f000 f841 bl 800fb46 <HAL_TIM_IC_MspInit>
  36218. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36219. }
  36220. /* Set the TIM state */
  36221. htim->State = HAL_TIM_STATE_BUSY;
  36222. 800fac4: 687b ldr r3, [r7, #4]
  36223. 800fac6: 2202 movs r2, #2
  36224. 800fac8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36225. /* Init the base time for the input capture */
  36226. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  36227. 800facc: 687b ldr r3, [r7, #4]
  36228. 800face: 681a ldr r2, [r3, #0]
  36229. 800fad0: 687b ldr r3, [r7, #4]
  36230. 800fad2: 3304 adds r3, #4
  36231. 800fad4: 4619 mov r1, r3
  36232. 800fad6: 4610 mov r0, r2
  36233. 800fad8: f000 fddc bl 8010694 <TIM_Base_SetConfig>
  36234. /* Initialize the DMA burst operation state */
  36235. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  36236. 800fadc: 687b ldr r3, [r7, #4]
  36237. 800fade: 2201 movs r2, #1
  36238. 800fae0: f883 2048 strb.w r2, [r3, #72] @ 0x48
  36239. /* Initialize the TIM channels state */
  36240. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36241. 800fae4: 687b ldr r3, [r7, #4]
  36242. 800fae6: 2201 movs r2, #1
  36243. 800fae8: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36244. 800faec: 687b ldr r3, [r7, #4]
  36245. 800faee: 2201 movs r2, #1
  36246. 800faf0: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36247. 800faf4: 687b ldr r3, [r7, #4]
  36248. 800faf6: 2201 movs r2, #1
  36249. 800faf8: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36250. 800fafc: 687b ldr r3, [r7, #4]
  36251. 800fafe: 2201 movs r2, #1
  36252. 800fb00: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36253. 800fb04: 687b ldr r3, [r7, #4]
  36254. 800fb06: 2201 movs r2, #1
  36255. 800fb08: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36256. 800fb0c: 687b ldr r3, [r7, #4]
  36257. 800fb0e: 2201 movs r2, #1
  36258. 800fb10: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36259. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36260. 800fb14: 687b ldr r3, [r7, #4]
  36261. 800fb16: 2201 movs r2, #1
  36262. 800fb18: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36263. 800fb1c: 687b ldr r3, [r7, #4]
  36264. 800fb1e: 2201 movs r2, #1
  36265. 800fb20: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36266. 800fb24: 687b ldr r3, [r7, #4]
  36267. 800fb26: 2201 movs r2, #1
  36268. 800fb28: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36269. 800fb2c: 687b ldr r3, [r7, #4]
  36270. 800fb2e: 2201 movs r2, #1
  36271. 800fb30: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36272. /* Initialize the TIM state*/
  36273. htim->State = HAL_TIM_STATE_READY;
  36274. 800fb34: 687b ldr r3, [r7, #4]
  36275. 800fb36: 2201 movs r2, #1
  36276. 800fb38: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36277. return HAL_OK;
  36278. 800fb3c: 2300 movs r3, #0
  36279. }
  36280. 800fb3e: 4618 mov r0, r3
  36281. 800fb40: 3708 adds r7, #8
  36282. 800fb42: 46bd mov sp, r7
  36283. 800fb44: bd80 pop {r7, pc}
  36284. 0800fb46 <HAL_TIM_IC_MspInit>:
  36285. * @brief Initializes the TIM Input Capture MSP.
  36286. * @param htim TIM Input Capture handle
  36287. * @retval None
  36288. */
  36289. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  36290. {
  36291. 800fb46: b480 push {r7}
  36292. 800fb48: b083 sub sp, #12
  36293. 800fb4a: af00 add r7, sp, #0
  36294. 800fb4c: 6078 str r0, [r7, #4]
  36295. UNUSED(htim);
  36296. /* NOTE : This function should not be modified, when the callback is needed,
  36297. the HAL_TIM_IC_MspInit could be implemented in the user file
  36298. */
  36299. }
  36300. 800fb4e: bf00 nop
  36301. 800fb50: 370c adds r7, #12
  36302. 800fb52: 46bd mov sp, r7
  36303. 800fb54: f85d 7b04 ldr.w r7, [sp], #4
  36304. 800fb58: 4770 bx lr
  36305. ...
  36306. 0800fb5c <HAL_TIM_IC_Start_IT>:
  36307. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  36308. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  36309. * @retval HAL status
  36310. */
  36311. HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
  36312. {
  36313. 800fb5c: b580 push {r7, lr}
  36314. 800fb5e: b084 sub sp, #16
  36315. 800fb60: af00 add r7, sp, #0
  36316. 800fb62: 6078 str r0, [r7, #4]
  36317. 800fb64: 6039 str r1, [r7, #0]
  36318. HAL_StatusTypeDef status = HAL_OK;
  36319. 800fb66: 2300 movs r3, #0
  36320. 800fb68: 73fb strb r3, [r7, #15]
  36321. uint32_t tmpsmcr;
  36322. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  36323. 800fb6a: 683b ldr r3, [r7, #0]
  36324. 800fb6c: 2b00 cmp r3, #0
  36325. 800fb6e: d104 bne.n 800fb7a <HAL_TIM_IC_Start_IT+0x1e>
  36326. 800fb70: 687b ldr r3, [r7, #4]
  36327. 800fb72: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  36328. 800fb76: b2db uxtb r3, r3
  36329. 800fb78: e023 b.n 800fbc2 <HAL_TIM_IC_Start_IT+0x66>
  36330. 800fb7a: 683b ldr r3, [r7, #0]
  36331. 800fb7c: 2b04 cmp r3, #4
  36332. 800fb7e: d104 bne.n 800fb8a <HAL_TIM_IC_Start_IT+0x2e>
  36333. 800fb80: 687b ldr r3, [r7, #4]
  36334. 800fb82: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  36335. 800fb86: b2db uxtb r3, r3
  36336. 800fb88: e01b b.n 800fbc2 <HAL_TIM_IC_Start_IT+0x66>
  36337. 800fb8a: 683b ldr r3, [r7, #0]
  36338. 800fb8c: 2b08 cmp r3, #8
  36339. 800fb8e: d104 bne.n 800fb9a <HAL_TIM_IC_Start_IT+0x3e>
  36340. 800fb90: 687b ldr r3, [r7, #4]
  36341. 800fb92: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  36342. 800fb96: b2db uxtb r3, r3
  36343. 800fb98: e013 b.n 800fbc2 <HAL_TIM_IC_Start_IT+0x66>
  36344. 800fb9a: 683b ldr r3, [r7, #0]
  36345. 800fb9c: 2b0c cmp r3, #12
  36346. 800fb9e: d104 bne.n 800fbaa <HAL_TIM_IC_Start_IT+0x4e>
  36347. 800fba0: 687b ldr r3, [r7, #4]
  36348. 800fba2: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  36349. 800fba6: b2db uxtb r3, r3
  36350. 800fba8: e00b b.n 800fbc2 <HAL_TIM_IC_Start_IT+0x66>
  36351. 800fbaa: 683b ldr r3, [r7, #0]
  36352. 800fbac: 2b10 cmp r3, #16
  36353. 800fbae: d104 bne.n 800fbba <HAL_TIM_IC_Start_IT+0x5e>
  36354. 800fbb0: 687b ldr r3, [r7, #4]
  36355. 800fbb2: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  36356. 800fbb6: b2db uxtb r3, r3
  36357. 800fbb8: e003 b.n 800fbc2 <HAL_TIM_IC_Start_IT+0x66>
  36358. 800fbba: 687b ldr r3, [r7, #4]
  36359. 800fbbc: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  36360. 800fbc0: b2db uxtb r3, r3
  36361. 800fbc2: 73bb strb r3, [r7, #14]
  36362. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  36363. 800fbc4: 683b ldr r3, [r7, #0]
  36364. 800fbc6: 2b00 cmp r3, #0
  36365. 800fbc8: d104 bne.n 800fbd4 <HAL_TIM_IC_Start_IT+0x78>
  36366. 800fbca: 687b ldr r3, [r7, #4]
  36367. 800fbcc: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  36368. 800fbd0: b2db uxtb r3, r3
  36369. 800fbd2: e013 b.n 800fbfc <HAL_TIM_IC_Start_IT+0xa0>
  36370. 800fbd4: 683b ldr r3, [r7, #0]
  36371. 800fbd6: 2b04 cmp r3, #4
  36372. 800fbd8: d104 bne.n 800fbe4 <HAL_TIM_IC_Start_IT+0x88>
  36373. 800fbda: 687b ldr r3, [r7, #4]
  36374. 800fbdc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  36375. 800fbe0: b2db uxtb r3, r3
  36376. 800fbe2: e00b b.n 800fbfc <HAL_TIM_IC_Start_IT+0xa0>
  36377. 800fbe4: 683b ldr r3, [r7, #0]
  36378. 800fbe6: 2b08 cmp r3, #8
  36379. 800fbe8: d104 bne.n 800fbf4 <HAL_TIM_IC_Start_IT+0x98>
  36380. 800fbea: 687b ldr r3, [r7, #4]
  36381. 800fbec: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  36382. 800fbf0: b2db uxtb r3, r3
  36383. 800fbf2: e003 b.n 800fbfc <HAL_TIM_IC_Start_IT+0xa0>
  36384. 800fbf4: 687b ldr r3, [r7, #4]
  36385. 800fbf6: f893 3047 ldrb.w r3, [r3, #71] @ 0x47
  36386. 800fbfa: b2db uxtb r3, r3
  36387. 800fbfc: 737b strb r3, [r7, #13]
  36388. /* Check the parameters */
  36389. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  36390. /* Check the TIM channel state */
  36391. if ((channel_state != HAL_TIM_CHANNEL_STATE_READY)
  36392. 800fbfe: 7bbb ldrb r3, [r7, #14]
  36393. 800fc00: 2b01 cmp r3, #1
  36394. 800fc02: d102 bne.n 800fc0a <HAL_TIM_IC_Start_IT+0xae>
  36395. || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY))
  36396. 800fc04: 7b7b ldrb r3, [r7, #13]
  36397. 800fc06: 2b01 cmp r3, #1
  36398. 800fc08: d001 beq.n 800fc0e <HAL_TIM_IC_Start_IT+0xb2>
  36399. {
  36400. return HAL_ERROR;
  36401. 800fc0a: 2301 movs r3, #1
  36402. 800fc0c: e0e2 b.n 800fdd4 <HAL_TIM_IC_Start_IT+0x278>
  36403. }
  36404. /* Set the TIM channel state */
  36405. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36406. 800fc0e: 683b ldr r3, [r7, #0]
  36407. 800fc10: 2b00 cmp r3, #0
  36408. 800fc12: d104 bne.n 800fc1e <HAL_TIM_IC_Start_IT+0xc2>
  36409. 800fc14: 687b ldr r3, [r7, #4]
  36410. 800fc16: 2202 movs r2, #2
  36411. 800fc18: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36412. 800fc1c: e023 b.n 800fc66 <HAL_TIM_IC_Start_IT+0x10a>
  36413. 800fc1e: 683b ldr r3, [r7, #0]
  36414. 800fc20: 2b04 cmp r3, #4
  36415. 800fc22: d104 bne.n 800fc2e <HAL_TIM_IC_Start_IT+0xd2>
  36416. 800fc24: 687b ldr r3, [r7, #4]
  36417. 800fc26: 2202 movs r2, #2
  36418. 800fc28: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36419. 800fc2c: e01b b.n 800fc66 <HAL_TIM_IC_Start_IT+0x10a>
  36420. 800fc2e: 683b ldr r3, [r7, #0]
  36421. 800fc30: 2b08 cmp r3, #8
  36422. 800fc32: d104 bne.n 800fc3e <HAL_TIM_IC_Start_IT+0xe2>
  36423. 800fc34: 687b ldr r3, [r7, #4]
  36424. 800fc36: 2202 movs r2, #2
  36425. 800fc38: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36426. 800fc3c: e013 b.n 800fc66 <HAL_TIM_IC_Start_IT+0x10a>
  36427. 800fc3e: 683b ldr r3, [r7, #0]
  36428. 800fc40: 2b0c cmp r3, #12
  36429. 800fc42: d104 bne.n 800fc4e <HAL_TIM_IC_Start_IT+0xf2>
  36430. 800fc44: 687b ldr r3, [r7, #4]
  36431. 800fc46: 2202 movs r2, #2
  36432. 800fc48: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36433. 800fc4c: e00b b.n 800fc66 <HAL_TIM_IC_Start_IT+0x10a>
  36434. 800fc4e: 683b ldr r3, [r7, #0]
  36435. 800fc50: 2b10 cmp r3, #16
  36436. 800fc52: d104 bne.n 800fc5e <HAL_TIM_IC_Start_IT+0x102>
  36437. 800fc54: 687b ldr r3, [r7, #4]
  36438. 800fc56: 2202 movs r2, #2
  36439. 800fc58: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36440. 800fc5c: e003 b.n 800fc66 <HAL_TIM_IC_Start_IT+0x10a>
  36441. 800fc5e: 687b ldr r3, [r7, #4]
  36442. 800fc60: 2202 movs r2, #2
  36443. 800fc62: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36444. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36445. 800fc66: 683b ldr r3, [r7, #0]
  36446. 800fc68: 2b00 cmp r3, #0
  36447. 800fc6a: d104 bne.n 800fc76 <HAL_TIM_IC_Start_IT+0x11a>
  36448. 800fc6c: 687b ldr r3, [r7, #4]
  36449. 800fc6e: 2202 movs r2, #2
  36450. 800fc70: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36451. 800fc74: e013 b.n 800fc9e <HAL_TIM_IC_Start_IT+0x142>
  36452. 800fc76: 683b ldr r3, [r7, #0]
  36453. 800fc78: 2b04 cmp r3, #4
  36454. 800fc7a: d104 bne.n 800fc86 <HAL_TIM_IC_Start_IT+0x12a>
  36455. 800fc7c: 687b ldr r3, [r7, #4]
  36456. 800fc7e: 2202 movs r2, #2
  36457. 800fc80: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36458. 800fc84: e00b b.n 800fc9e <HAL_TIM_IC_Start_IT+0x142>
  36459. 800fc86: 683b ldr r3, [r7, #0]
  36460. 800fc88: 2b08 cmp r3, #8
  36461. 800fc8a: d104 bne.n 800fc96 <HAL_TIM_IC_Start_IT+0x13a>
  36462. 800fc8c: 687b ldr r3, [r7, #4]
  36463. 800fc8e: 2202 movs r2, #2
  36464. 800fc90: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36465. 800fc94: e003 b.n 800fc9e <HAL_TIM_IC_Start_IT+0x142>
  36466. 800fc96: 687b ldr r3, [r7, #4]
  36467. 800fc98: 2202 movs r2, #2
  36468. 800fc9a: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36469. switch (Channel)
  36470. 800fc9e: 683b ldr r3, [r7, #0]
  36471. 800fca0: 2b0c cmp r3, #12
  36472. 800fca2: d841 bhi.n 800fd28 <HAL_TIM_IC_Start_IT+0x1cc>
  36473. 800fca4: a201 add r2, pc, #4 @ (adr r2, 800fcac <HAL_TIM_IC_Start_IT+0x150>)
  36474. 800fca6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36475. 800fcaa: bf00 nop
  36476. 800fcac: 0800fce1 .word 0x0800fce1
  36477. 800fcb0: 0800fd29 .word 0x0800fd29
  36478. 800fcb4: 0800fd29 .word 0x0800fd29
  36479. 800fcb8: 0800fd29 .word 0x0800fd29
  36480. 800fcbc: 0800fcf3 .word 0x0800fcf3
  36481. 800fcc0: 0800fd29 .word 0x0800fd29
  36482. 800fcc4: 0800fd29 .word 0x0800fd29
  36483. 800fcc8: 0800fd29 .word 0x0800fd29
  36484. 800fccc: 0800fd05 .word 0x0800fd05
  36485. 800fcd0: 0800fd29 .word 0x0800fd29
  36486. 800fcd4: 0800fd29 .word 0x0800fd29
  36487. 800fcd8: 0800fd29 .word 0x0800fd29
  36488. 800fcdc: 0800fd17 .word 0x0800fd17
  36489. {
  36490. case TIM_CHANNEL_1:
  36491. {
  36492. /* Enable the TIM Capture/Compare 1 interrupt */
  36493. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
  36494. 800fce0: 687b ldr r3, [r7, #4]
  36495. 800fce2: 681b ldr r3, [r3, #0]
  36496. 800fce4: 68da ldr r2, [r3, #12]
  36497. 800fce6: 687b ldr r3, [r7, #4]
  36498. 800fce8: 681b ldr r3, [r3, #0]
  36499. 800fcea: f042 0202 orr.w r2, r2, #2
  36500. 800fcee: 60da str r2, [r3, #12]
  36501. break;
  36502. 800fcf0: e01d b.n 800fd2e <HAL_TIM_IC_Start_IT+0x1d2>
  36503. }
  36504. case TIM_CHANNEL_2:
  36505. {
  36506. /* Enable the TIM Capture/Compare 2 interrupt */
  36507. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
  36508. 800fcf2: 687b ldr r3, [r7, #4]
  36509. 800fcf4: 681b ldr r3, [r3, #0]
  36510. 800fcf6: 68da ldr r2, [r3, #12]
  36511. 800fcf8: 687b ldr r3, [r7, #4]
  36512. 800fcfa: 681b ldr r3, [r3, #0]
  36513. 800fcfc: f042 0204 orr.w r2, r2, #4
  36514. 800fd00: 60da str r2, [r3, #12]
  36515. break;
  36516. 800fd02: e014 b.n 800fd2e <HAL_TIM_IC_Start_IT+0x1d2>
  36517. }
  36518. case TIM_CHANNEL_3:
  36519. {
  36520. /* Enable the TIM Capture/Compare 3 interrupt */
  36521. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3);
  36522. 800fd04: 687b ldr r3, [r7, #4]
  36523. 800fd06: 681b ldr r3, [r3, #0]
  36524. 800fd08: 68da ldr r2, [r3, #12]
  36525. 800fd0a: 687b ldr r3, [r7, #4]
  36526. 800fd0c: 681b ldr r3, [r3, #0]
  36527. 800fd0e: f042 0208 orr.w r2, r2, #8
  36528. 800fd12: 60da str r2, [r3, #12]
  36529. break;
  36530. 800fd14: e00b b.n 800fd2e <HAL_TIM_IC_Start_IT+0x1d2>
  36531. }
  36532. case TIM_CHANNEL_4:
  36533. {
  36534. /* Enable the TIM Capture/Compare 4 interrupt */
  36535. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4);
  36536. 800fd16: 687b ldr r3, [r7, #4]
  36537. 800fd18: 681b ldr r3, [r3, #0]
  36538. 800fd1a: 68da ldr r2, [r3, #12]
  36539. 800fd1c: 687b ldr r3, [r7, #4]
  36540. 800fd1e: 681b ldr r3, [r3, #0]
  36541. 800fd20: f042 0210 orr.w r2, r2, #16
  36542. 800fd24: 60da str r2, [r3, #12]
  36543. break;
  36544. 800fd26: e002 b.n 800fd2e <HAL_TIM_IC_Start_IT+0x1d2>
  36545. }
  36546. default:
  36547. status = HAL_ERROR;
  36548. 800fd28: 2301 movs r3, #1
  36549. 800fd2a: 73fb strb r3, [r7, #15]
  36550. break;
  36551. 800fd2c: bf00 nop
  36552. }
  36553. if (status == HAL_OK)
  36554. 800fd2e: 7bfb ldrb r3, [r7, #15]
  36555. 800fd30: 2b00 cmp r3, #0
  36556. 800fd32: d14e bne.n 800fdd2 <HAL_TIM_IC_Start_IT+0x276>
  36557. {
  36558. /* Enable the Input Capture channel */
  36559. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  36560. 800fd34: 687b ldr r3, [r7, #4]
  36561. 800fd36: 681b ldr r3, [r3, #0]
  36562. 800fd38: 2201 movs r2, #1
  36563. 800fd3a: 6839 ldr r1, [r7, #0]
  36564. 800fd3c: 4618 mov r0, r3
  36565. 800fd3e: f001 f9ed bl 801111c <TIM_CCxChannelCmd>
  36566. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  36567. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  36568. 800fd42: 687b ldr r3, [r7, #4]
  36569. 800fd44: 681b ldr r3, [r3, #0]
  36570. 800fd46: 4a25 ldr r2, [pc, #148] @ (800fddc <HAL_TIM_IC_Start_IT+0x280>)
  36571. 800fd48: 4293 cmp r3, r2
  36572. 800fd4a: d022 beq.n 800fd92 <HAL_TIM_IC_Start_IT+0x236>
  36573. 800fd4c: 687b ldr r3, [r7, #4]
  36574. 800fd4e: 681b ldr r3, [r3, #0]
  36575. 800fd50: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  36576. 800fd54: d01d beq.n 800fd92 <HAL_TIM_IC_Start_IT+0x236>
  36577. 800fd56: 687b ldr r3, [r7, #4]
  36578. 800fd58: 681b ldr r3, [r3, #0]
  36579. 800fd5a: 4a21 ldr r2, [pc, #132] @ (800fde0 <HAL_TIM_IC_Start_IT+0x284>)
  36580. 800fd5c: 4293 cmp r3, r2
  36581. 800fd5e: d018 beq.n 800fd92 <HAL_TIM_IC_Start_IT+0x236>
  36582. 800fd60: 687b ldr r3, [r7, #4]
  36583. 800fd62: 681b ldr r3, [r3, #0]
  36584. 800fd64: 4a1f ldr r2, [pc, #124] @ (800fde4 <HAL_TIM_IC_Start_IT+0x288>)
  36585. 800fd66: 4293 cmp r3, r2
  36586. 800fd68: d013 beq.n 800fd92 <HAL_TIM_IC_Start_IT+0x236>
  36587. 800fd6a: 687b ldr r3, [r7, #4]
  36588. 800fd6c: 681b ldr r3, [r3, #0]
  36589. 800fd6e: 4a1e ldr r2, [pc, #120] @ (800fde8 <HAL_TIM_IC_Start_IT+0x28c>)
  36590. 800fd70: 4293 cmp r3, r2
  36591. 800fd72: d00e beq.n 800fd92 <HAL_TIM_IC_Start_IT+0x236>
  36592. 800fd74: 687b ldr r3, [r7, #4]
  36593. 800fd76: 681b ldr r3, [r3, #0]
  36594. 800fd78: 4a1c ldr r2, [pc, #112] @ (800fdec <HAL_TIM_IC_Start_IT+0x290>)
  36595. 800fd7a: 4293 cmp r3, r2
  36596. 800fd7c: d009 beq.n 800fd92 <HAL_TIM_IC_Start_IT+0x236>
  36597. 800fd7e: 687b ldr r3, [r7, #4]
  36598. 800fd80: 681b ldr r3, [r3, #0]
  36599. 800fd82: 4a1b ldr r2, [pc, #108] @ (800fdf0 <HAL_TIM_IC_Start_IT+0x294>)
  36600. 800fd84: 4293 cmp r3, r2
  36601. 800fd86: d004 beq.n 800fd92 <HAL_TIM_IC_Start_IT+0x236>
  36602. 800fd88: 687b ldr r3, [r7, #4]
  36603. 800fd8a: 681b ldr r3, [r3, #0]
  36604. 800fd8c: 4a19 ldr r2, [pc, #100] @ (800fdf4 <HAL_TIM_IC_Start_IT+0x298>)
  36605. 800fd8e: 4293 cmp r3, r2
  36606. 800fd90: d115 bne.n 800fdbe <HAL_TIM_IC_Start_IT+0x262>
  36607. {
  36608. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  36609. 800fd92: 687b ldr r3, [r7, #4]
  36610. 800fd94: 681b ldr r3, [r3, #0]
  36611. 800fd96: 689a ldr r2, [r3, #8]
  36612. 800fd98: 4b17 ldr r3, [pc, #92] @ (800fdf8 <HAL_TIM_IC_Start_IT+0x29c>)
  36613. 800fd9a: 4013 ands r3, r2
  36614. 800fd9c: 60bb str r3, [r7, #8]
  36615. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36616. 800fd9e: 68bb ldr r3, [r7, #8]
  36617. 800fda0: 2b06 cmp r3, #6
  36618. 800fda2: d015 beq.n 800fdd0 <HAL_TIM_IC_Start_IT+0x274>
  36619. 800fda4: 68bb ldr r3, [r7, #8]
  36620. 800fda6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  36621. 800fdaa: d011 beq.n 800fdd0 <HAL_TIM_IC_Start_IT+0x274>
  36622. {
  36623. __HAL_TIM_ENABLE(htim);
  36624. 800fdac: 687b ldr r3, [r7, #4]
  36625. 800fdae: 681b ldr r3, [r3, #0]
  36626. 800fdb0: 681a ldr r2, [r3, #0]
  36627. 800fdb2: 687b ldr r3, [r7, #4]
  36628. 800fdb4: 681b ldr r3, [r3, #0]
  36629. 800fdb6: f042 0201 orr.w r2, r2, #1
  36630. 800fdba: 601a str r2, [r3, #0]
  36631. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36632. 800fdbc: e008 b.n 800fdd0 <HAL_TIM_IC_Start_IT+0x274>
  36633. }
  36634. }
  36635. else
  36636. {
  36637. __HAL_TIM_ENABLE(htim);
  36638. 800fdbe: 687b ldr r3, [r7, #4]
  36639. 800fdc0: 681b ldr r3, [r3, #0]
  36640. 800fdc2: 681a ldr r2, [r3, #0]
  36641. 800fdc4: 687b ldr r3, [r7, #4]
  36642. 800fdc6: 681b ldr r3, [r3, #0]
  36643. 800fdc8: f042 0201 orr.w r2, r2, #1
  36644. 800fdcc: 601a str r2, [r3, #0]
  36645. 800fdce: e000 b.n 800fdd2 <HAL_TIM_IC_Start_IT+0x276>
  36646. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36647. 800fdd0: bf00 nop
  36648. }
  36649. }
  36650. /* Return function status */
  36651. return status;
  36652. 800fdd2: 7bfb ldrb r3, [r7, #15]
  36653. }
  36654. 800fdd4: 4618 mov r0, r3
  36655. 800fdd6: 3710 adds r7, #16
  36656. 800fdd8: 46bd mov sp, r7
  36657. 800fdda: bd80 pop {r7, pc}
  36658. 800fddc: 40010000 .word 0x40010000
  36659. 800fde0: 40000400 .word 0x40000400
  36660. 800fde4: 40000800 .word 0x40000800
  36661. 800fde8: 40000c00 .word 0x40000c00
  36662. 800fdec: 40010400 .word 0x40010400
  36663. 800fdf0: 40001800 .word 0x40001800
  36664. 800fdf4: 40014000 .word 0x40014000
  36665. 800fdf8: 00010007 .word 0x00010007
  36666. 0800fdfc <HAL_TIM_IRQHandler>:
  36667. * @brief This function handles TIM interrupts requests.
  36668. * @param htim TIM handle
  36669. * @retval None
  36670. */
  36671. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  36672. {
  36673. 800fdfc: b580 push {r7, lr}
  36674. 800fdfe: b084 sub sp, #16
  36675. 800fe00: af00 add r7, sp, #0
  36676. 800fe02: 6078 str r0, [r7, #4]
  36677. uint32_t itsource = htim->Instance->DIER;
  36678. 800fe04: 687b ldr r3, [r7, #4]
  36679. 800fe06: 681b ldr r3, [r3, #0]
  36680. 800fe08: 68db ldr r3, [r3, #12]
  36681. 800fe0a: 60fb str r3, [r7, #12]
  36682. uint32_t itflag = htim->Instance->SR;
  36683. 800fe0c: 687b ldr r3, [r7, #4]
  36684. 800fe0e: 681b ldr r3, [r3, #0]
  36685. 800fe10: 691b ldr r3, [r3, #16]
  36686. 800fe12: 60bb str r3, [r7, #8]
  36687. /* Capture compare 1 event */
  36688. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  36689. 800fe14: 68bb ldr r3, [r7, #8]
  36690. 800fe16: f003 0302 and.w r3, r3, #2
  36691. 800fe1a: 2b00 cmp r3, #0
  36692. 800fe1c: d020 beq.n 800fe60 <HAL_TIM_IRQHandler+0x64>
  36693. {
  36694. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  36695. 800fe1e: 68fb ldr r3, [r7, #12]
  36696. 800fe20: f003 0302 and.w r3, r3, #2
  36697. 800fe24: 2b00 cmp r3, #0
  36698. 800fe26: d01b beq.n 800fe60 <HAL_TIM_IRQHandler+0x64>
  36699. {
  36700. {
  36701. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  36702. 800fe28: 687b ldr r3, [r7, #4]
  36703. 800fe2a: 681b ldr r3, [r3, #0]
  36704. 800fe2c: f06f 0202 mvn.w r2, #2
  36705. 800fe30: 611a str r2, [r3, #16]
  36706. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  36707. 800fe32: 687b ldr r3, [r7, #4]
  36708. 800fe34: 2201 movs r2, #1
  36709. 800fe36: 771a strb r2, [r3, #28]
  36710. /* Input capture event */
  36711. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  36712. 800fe38: 687b ldr r3, [r7, #4]
  36713. 800fe3a: 681b ldr r3, [r3, #0]
  36714. 800fe3c: 699b ldr r3, [r3, #24]
  36715. 800fe3e: f003 0303 and.w r3, r3, #3
  36716. 800fe42: 2b00 cmp r3, #0
  36717. 800fe44: d003 beq.n 800fe4e <HAL_TIM_IRQHandler+0x52>
  36718. {
  36719. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36720. htim->IC_CaptureCallback(htim);
  36721. #else
  36722. HAL_TIM_IC_CaptureCallback(htim);
  36723. 800fe46: 6878 ldr r0, [r7, #4]
  36724. 800fe48: f7f1 fdb0 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36725. 800fe4c: e005 b.n 800fe5a <HAL_TIM_IRQHandler+0x5e>
  36726. {
  36727. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36728. htim->OC_DelayElapsedCallback(htim);
  36729. htim->PWM_PulseFinishedCallback(htim);
  36730. #else
  36731. HAL_TIM_OC_DelayElapsedCallback(htim);
  36732. 800fe4e: 6878 ldr r0, [r7, #4]
  36733. 800fe50: f000 fbc8 bl 80105e4 <HAL_TIM_OC_DelayElapsedCallback>
  36734. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36735. 800fe54: 6878 ldr r0, [r7, #4]
  36736. 800fe56: f000 fbcf bl 80105f8 <HAL_TIM_PWM_PulseFinishedCallback>
  36737. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36738. }
  36739. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36740. 800fe5a: 687b ldr r3, [r7, #4]
  36741. 800fe5c: 2200 movs r2, #0
  36742. 800fe5e: 771a strb r2, [r3, #28]
  36743. }
  36744. }
  36745. }
  36746. /* Capture compare 2 event */
  36747. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  36748. 800fe60: 68bb ldr r3, [r7, #8]
  36749. 800fe62: f003 0304 and.w r3, r3, #4
  36750. 800fe66: 2b00 cmp r3, #0
  36751. 800fe68: d020 beq.n 800feac <HAL_TIM_IRQHandler+0xb0>
  36752. {
  36753. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  36754. 800fe6a: 68fb ldr r3, [r7, #12]
  36755. 800fe6c: f003 0304 and.w r3, r3, #4
  36756. 800fe70: 2b00 cmp r3, #0
  36757. 800fe72: d01b beq.n 800feac <HAL_TIM_IRQHandler+0xb0>
  36758. {
  36759. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  36760. 800fe74: 687b ldr r3, [r7, #4]
  36761. 800fe76: 681b ldr r3, [r3, #0]
  36762. 800fe78: f06f 0204 mvn.w r2, #4
  36763. 800fe7c: 611a str r2, [r3, #16]
  36764. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  36765. 800fe7e: 687b ldr r3, [r7, #4]
  36766. 800fe80: 2202 movs r2, #2
  36767. 800fe82: 771a strb r2, [r3, #28]
  36768. /* Input capture event */
  36769. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  36770. 800fe84: 687b ldr r3, [r7, #4]
  36771. 800fe86: 681b ldr r3, [r3, #0]
  36772. 800fe88: 699b ldr r3, [r3, #24]
  36773. 800fe8a: f403 7340 and.w r3, r3, #768 @ 0x300
  36774. 800fe8e: 2b00 cmp r3, #0
  36775. 800fe90: d003 beq.n 800fe9a <HAL_TIM_IRQHandler+0x9e>
  36776. {
  36777. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36778. htim->IC_CaptureCallback(htim);
  36779. #else
  36780. HAL_TIM_IC_CaptureCallback(htim);
  36781. 800fe92: 6878 ldr r0, [r7, #4]
  36782. 800fe94: f7f1 fd8a bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36783. 800fe98: e005 b.n 800fea6 <HAL_TIM_IRQHandler+0xaa>
  36784. {
  36785. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36786. htim->OC_DelayElapsedCallback(htim);
  36787. htim->PWM_PulseFinishedCallback(htim);
  36788. #else
  36789. HAL_TIM_OC_DelayElapsedCallback(htim);
  36790. 800fe9a: 6878 ldr r0, [r7, #4]
  36791. 800fe9c: f000 fba2 bl 80105e4 <HAL_TIM_OC_DelayElapsedCallback>
  36792. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36793. 800fea0: 6878 ldr r0, [r7, #4]
  36794. 800fea2: f000 fba9 bl 80105f8 <HAL_TIM_PWM_PulseFinishedCallback>
  36795. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36796. }
  36797. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36798. 800fea6: 687b ldr r3, [r7, #4]
  36799. 800fea8: 2200 movs r2, #0
  36800. 800feaa: 771a strb r2, [r3, #28]
  36801. }
  36802. }
  36803. /* Capture compare 3 event */
  36804. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  36805. 800feac: 68bb ldr r3, [r7, #8]
  36806. 800feae: f003 0308 and.w r3, r3, #8
  36807. 800feb2: 2b00 cmp r3, #0
  36808. 800feb4: d020 beq.n 800fef8 <HAL_TIM_IRQHandler+0xfc>
  36809. {
  36810. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  36811. 800feb6: 68fb ldr r3, [r7, #12]
  36812. 800feb8: f003 0308 and.w r3, r3, #8
  36813. 800febc: 2b00 cmp r3, #0
  36814. 800febe: d01b beq.n 800fef8 <HAL_TIM_IRQHandler+0xfc>
  36815. {
  36816. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  36817. 800fec0: 687b ldr r3, [r7, #4]
  36818. 800fec2: 681b ldr r3, [r3, #0]
  36819. 800fec4: f06f 0208 mvn.w r2, #8
  36820. 800fec8: 611a str r2, [r3, #16]
  36821. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  36822. 800feca: 687b ldr r3, [r7, #4]
  36823. 800fecc: 2204 movs r2, #4
  36824. 800fece: 771a strb r2, [r3, #28]
  36825. /* Input capture event */
  36826. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  36827. 800fed0: 687b ldr r3, [r7, #4]
  36828. 800fed2: 681b ldr r3, [r3, #0]
  36829. 800fed4: 69db ldr r3, [r3, #28]
  36830. 800fed6: f003 0303 and.w r3, r3, #3
  36831. 800feda: 2b00 cmp r3, #0
  36832. 800fedc: d003 beq.n 800fee6 <HAL_TIM_IRQHandler+0xea>
  36833. {
  36834. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36835. htim->IC_CaptureCallback(htim);
  36836. #else
  36837. HAL_TIM_IC_CaptureCallback(htim);
  36838. 800fede: 6878 ldr r0, [r7, #4]
  36839. 800fee0: f7f1 fd64 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36840. 800fee4: e005 b.n 800fef2 <HAL_TIM_IRQHandler+0xf6>
  36841. {
  36842. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36843. htim->OC_DelayElapsedCallback(htim);
  36844. htim->PWM_PulseFinishedCallback(htim);
  36845. #else
  36846. HAL_TIM_OC_DelayElapsedCallback(htim);
  36847. 800fee6: 6878 ldr r0, [r7, #4]
  36848. 800fee8: f000 fb7c bl 80105e4 <HAL_TIM_OC_DelayElapsedCallback>
  36849. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36850. 800feec: 6878 ldr r0, [r7, #4]
  36851. 800feee: f000 fb83 bl 80105f8 <HAL_TIM_PWM_PulseFinishedCallback>
  36852. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36853. }
  36854. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36855. 800fef2: 687b ldr r3, [r7, #4]
  36856. 800fef4: 2200 movs r2, #0
  36857. 800fef6: 771a strb r2, [r3, #28]
  36858. }
  36859. }
  36860. /* Capture compare 4 event */
  36861. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  36862. 800fef8: 68bb ldr r3, [r7, #8]
  36863. 800fefa: f003 0310 and.w r3, r3, #16
  36864. 800fefe: 2b00 cmp r3, #0
  36865. 800ff00: d020 beq.n 800ff44 <HAL_TIM_IRQHandler+0x148>
  36866. {
  36867. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  36868. 800ff02: 68fb ldr r3, [r7, #12]
  36869. 800ff04: f003 0310 and.w r3, r3, #16
  36870. 800ff08: 2b00 cmp r3, #0
  36871. 800ff0a: d01b beq.n 800ff44 <HAL_TIM_IRQHandler+0x148>
  36872. {
  36873. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  36874. 800ff0c: 687b ldr r3, [r7, #4]
  36875. 800ff0e: 681b ldr r3, [r3, #0]
  36876. 800ff10: f06f 0210 mvn.w r2, #16
  36877. 800ff14: 611a str r2, [r3, #16]
  36878. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  36879. 800ff16: 687b ldr r3, [r7, #4]
  36880. 800ff18: 2208 movs r2, #8
  36881. 800ff1a: 771a strb r2, [r3, #28]
  36882. /* Input capture event */
  36883. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  36884. 800ff1c: 687b ldr r3, [r7, #4]
  36885. 800ff1e: 681b ldr r3, [r3, #0]
  36886. 800ff20: 69db ldr r3, [r3, #28]
  36887. 800ff22: f403 7340 and.w r3, r3, #768 @ 0x300
  36888. 800ff26: 2b00 cmp r3, #0
  36889. 800ff28: d003 beq.n 800ff32 <HAL_TIM_IRQHandler+0x136>
  36890. {
  36891. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36892. htim->IC_CaptureCallback(htim);
  36893. #else
  36894. HAL_TIM_IC_CaptureCallback(htim);
  36895. 800ff2a: 6878 ldr r0, [r7, #4]
  36896. 800ff2c: f7f1 fd3e bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36897. 800ff30: e005 b.n 800ff3e <HAL_TIM_IRQHandler+0x142>
  36898. {
  36899. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36900. htim->OC_DelayElapsedCallback(htim);
  36901. htim->PWM_PulseFinishedCallback(htim);
  36902. #else
  36903. HAL_TIM_OC_DelayElapsedCallback(htim);
  36904. 800ff32: 6878 ldr r0, [r7, #4]
  36905. 800ff34: f000 fb56 bl 80105e4 <HAL_TIM_OC_DelayElapsedCallback>
  36906. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36907. 800ff38: 6878 ldr r0, [r7, #4]
  36908. 800ff3a: f000 fb5d bl 80105f8 <HAL_TIM_PWM_PulseFinishedCallback>
  36909. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36910. }
  36911. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36912. 800ff3e: 687b ldr r3, [r7, #4]
  36913. 800ff40: 2200 movs r2, #0
  36914. 800ff42: 771a strb r2, [r3, #28]
  36915. }
  36916. }
  36917. /* TIM Update event */
  36918. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  36919. 800ff44: 68bb ldr r3, [r7, #8]
  36920. 800ff46: f003 0301 and.w r3, r3, #1
  36921. 800ff4a: 2b00 cmp r3, #0
  36922. 800ff4c: d00c beq.n 800ff68 <HAL_TIM_IRQHandler+0x16c>
  36923. {
  36924. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  36925. 800ff4e: 68fb ldr r3, [r7, #12]
  36926. 800ff50: f003 0301 and.w r3, r3, #1
  36927. 800ff54: 2b00 cmp r3, #0
  36928. 800ff56: d007 beq.n 800ff68 <HAL_TIM_IRQHandler+0x16c>
  36929. {
  36930. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  36931. 800ff58: 687b ldr r3, [r7, #4]
  36932. 800ff5a: 681b ldr r3, [r3, #0]
  36933. 800ff5c: f06f 0201 mvn.w r2, #1
  36934. 800ff60: 611a str r2, [r3, #16]
  36935. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36936. htim->PeriodElapsedCallback(htim);
  36937. #else
  36938. HAL_TIM_PeriodElapsedCallback(htim);
  36939. 800ff62: 6878 ldr r0, [r7, #4]
  36940. 800ff64: f7f1 ff7e bl 8001e64 <HAL_TIM_PeriodElapsedCallback>
  36941. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36942. }
  36943. }
  36944. /* TIM Break input event */
  36945. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36946. 800ff68: 68bb ldr r3, [r7, #8]
  36947. 800ff6a: f003 0380 and.w r3, r3, #128 @ 0x80
  36948. 800ff6e: 2b00 cmp r3, #0
  36949. 800ff70: d104 bne.n 800ff7c <HAL_TIM_IRQHandler+0x180>
  36950. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  36951. 800ff72: 68bb ldr r3, [r7, #8]
  36952. 800ff74: f403 5300 and.w r3, r3, #8192 @ 0x2000
  36953. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36954. 800ff78: 2b00 cmp r3, #0
  36955. 800ff7a: d00c beq.n 800ff96 <HAL_TIM_IRQHandler+0x19a>
  36956. {
  36957. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36958. 800ff7c: 68fb ldr r3, [r7, #12]
  36959. 800ff7e: f003 0380 and.w r3, r3, #128 @ 0x80
  36960. 800ff82: 2b00 cmp r3, #0
  36961. 800ff84: d007 beq.n 800ff96 <HAL_TIM_IRQHandler+0x19a>
  36962. {
  36963. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  36964. 800ff86: 687b ldr r3, [r7, #4]
  36965. 800ff88: 681b ldr r3, [r3, #0]
  36966. 800ff8a: f46f 5202 mvn.w r2, #8320 @ 0x2080
  36967. 800ff8e: 611a str r2, [r3, #16]
  36968. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36969. htim->BreakCallback(htim);
  36970. #else
  36971. HAL_TIMEx_BreakCallback(htim);
  36972. 800ff90: 6878 ldr r0, [r7, #4]
  36973. 800ff92: f001 f9ff bl 8011394 <HAL_TIMEx_BreakCallback>
  36974. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36975. }
  36976. }
  36977. /* TIM Break2 input event */
  36978. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  36979. 800ff96: 68bb ldr r3, [r7, #8]
  36980. 800ff98: f403 7380 and.w r3, r3, #256 @ 0x100
  36981. 800ff9c: 2b00 cmp r3, #0
  36982. 800ff9e: d00c beq.n 800ffba <HAL_TIM_IRQHandler+0x1be>
  36983. {
  36984. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36985. 800ffa0: 68fb ldr r3, [r7, #12]
  36986. 800ffa2: f003 0380 and.w r3, r3, #128 @ 0x80
  36987. 800ffa6: 2b00 cmp r3, #0
  36988. 800ffa8: d007 beq.n 800ffba <HAL_TIM_IRQHandler+0x1be>
  36989. {
  36990. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  36991. 800ffaa: 687b ldr r3, [r7, #4]
  36992. 800ffac: 681b ldr r3, [r3, #0]
  36993. 800ffae: f46f 7280 mvn.w r2, #256 @ 0x100
  36994. 800ffb2: 611a str r2, [r3, #16]
  36995. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36996. htim->Break2Callback(htim);
  36997. #else
  36998. HAL_TIMEx_Break2Callback(htim);
  36999. 800ffb4: 6878 ldr r0, [r7, #4]
  37000. 800ffb6: f001 f9f7 bl 80113a8 <HAL_TIMEx_Break2Callback>
  37001. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37002. }
  37003. }
  37004. /* TIM Trigger detection event */
  37005. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  37006. 800ffba: 68bb ldr r3, [r7, #8]
  37007. 800ffbc: f003 0340 and.w r3, r3, #64 @ 0x40
  37008. 800ffc0: 2b00 cmp r3, #0
  37009. 800ffc2: d00c beq.n 800ffde <HAL_TIM_IRQHandler+0x1e2>
  37010. {
  37011. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  37012. 800ffc4: 68fb ldr r3, [r7, #12]
  37013. 800ffc6: f003 0340 and.w r3, r3, #64 @ 0x40
  37014. 800ffca: 2b00 cmp r3, #0
  37015. 800ffcc: d007 beq.n 800ffde <HAL_TIM_IRQHandler+0x1e2>
  37016. {
  37017. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  37018. 800ffce: 687b ldr r3, [r7, #4]
  37019. 800ffd0: 681b ldr r3, [r3, #0]
  37020. 800ffd2: f06f 0240 mvn.w r2, #64 @ 0x40
  37021. 800ffd6: 611a str r2, [r3, #16]
  37022. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37023. htim->TriggerCallback(htim);
  37024. #else
  37025. HAL_TIM_TriggerCallback(htim);
  37026. 800ffd8: 6878 ldr r0, [r7, #4]
  37027. 800ffda: f000 fb17 bl 801060c <HAL_TIM_TriggerCallback>
  37028. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37029. }
  37030. }
  37031. /* TIM commutation event */
  37032. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  37033. 800ffde: 68bb ldr r3, [r7, #8]
  37034. 800ffe0: f003 0320 and.w r3, r3, #32
  37035. 800ffe4: 2b00 cmp r3, #0
  37036. 800ffe6: d00c beq.n 8010002 <HAL_TIM_IRQHandler+0x206>
  37037. {
  37038. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  37039. 800ffe8: 68fb ldr r3, [r7, #12]
  37040. 800ffea: f003 0320 and.w r3, r3, #32
  37041. 800ffee: 2b00 cmp r3, #0
  37042. 800fff0: d007 beq.n 8010002 <HAL_TIM_IRQHandler+0x206>
  37043. {
  37044. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  37045. 800fff2: 687b ldr r3, [r7, #4]
  37046. 800fff4: 681b ldr r3, [r3, #0]
  37047. 800fff6: f06f 0220 mvn.w r2, #32
  37048. 800fffa: 611a str r2, [r3, #16]
  37049. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37050. htim->CommutationCallback(htim);
  37051. #else
  37052. HAL_TIMEx_CommutCallback(htim);
  37053. 800fffc: 6878 ldr r0, [r7, #4]
  37054. 800fffe: f001 f9bf bl 8011380 <HAL_TIMEx_CommutCallback>
  37055. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37056. }
  37057. }
  37058. }
  37059. 8010002: bf00 nop
  37060. 8010004: 3710 adds r7, #16
  37061. 8010006: 46bd mov sp, r7
  37062. 8010008: bd80 pop {r7, pc}
  37063. 0801000a <HAL_TIM_IC_ConfigChannel>:
  37064. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37065. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37066. * @retval HAL status
  37067. */
  37068. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  37069. {
  37070. 801000a: b580 push {r7, lr}
  37071. 801000c: b086 sub sp, #24
  37072. 801000e: af00 add r7, sp, #0
  37073. 8010010: 60f8 str r0, [r7, #12]
  37074. 8010012: 60b9 str r1, [r7, #8]
  37075. 8010014: 607a str r2, [r7, #4]
  37076. HAL_StatusTypeDef status = HAL_OK;
  37077. 8010016: 2300 movs r3, #0
  37078. 8010018: 75fb strb r3, [r7, #23]
  37079. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  37080. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  37081. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  37082. /* Process Locked */
  37083. __HAL_LOCK(htim);
  37084. 801001a: 68fb ldr r3, [r7, #12]
  37085. 801001c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37086. 8010020: 2b01 cmp r3, #1
  37087. 8010022: d101 bne.n 8010028 <HAL_TIM_IC_ConfigChannel+0x1e>
  37088. 8010024: 2302 movs r3, #2
  37089. 8010026: e088 b.n 801013a <HAL_TIM_IC_ConfigChannel+0x130>
  37090. 8010028: 68fb ldr r3, [r7, #12]
  37091. 801002a: 2201 movs r2, #1
  37092. 801002c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37093. if (Channel == TIM_CHANNEL_1)
  37094. 8010030: 687b ldr r3, [r7, #4]
  37095. 8010032: 2b00 cmp r3, #0
  37096. 8010034: d11b bne.n 801006e <HAL_TIM_IC_ConfigChannel+0x64>
  37097. {
  37098. /* TI1 Configuration */
  37099. TIM_TI1_SetConfig(htim->Instance,
  37100. 8010036: 68fb ldr r3, [r7, #12]
  37101. 8010038: 6818 ldr r0, [r3, #0]
  37102. sConfig->ICPolarity,
  37103. 801003a: 68bb ldr r3, [r7, #8]
  37104. 801003c: 6819 ldr r1, [r3, #0]
  37105. sConfig->ICSelection,
  37106. 801003e: 68bb ldr r3, [r7, #8]
  37107. 8010040: 685a ldr r2, [r3, #4]
  37108. sConfig->ICFilter);
  37109. 8010042: 68bb ldr r3, [r7, #8]
  37110. 8010044: 68db ldr r3, [r3, #12]
  37111. TIM_TI1_SetConfig(htim->Instance,
  37112. 8010046: f000 fea1 bl 8010d8c <TIM_TI1_SetConfig>
  37113. /* Reset the IC1PSC Bits */
  37114. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  37115. 801004a: 68fb ldr r3, [r7, #12]
  37116. 801004c: 681b ldr r3, [r3, #0]
  37117. 801004e: 699a ldr r2, [r3, #24]
  37118. 8010050: 68fb ldr r3, [r7, #12]
  37119. 8010052: 681b ldr r3, [r3, #0]
  37120. 8010054: f022 020c bic.w r2, r2, #12
  37121. 8010058: 619a str r2, [r3, #24]
  37122. /* Set the IC1PSC value */
  37123. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  37124. 801005a: 68fb ldr r3, [r7, #12]
  37125. 801005c: 681b ldr r3, [r3, #0]
  37126. 801005e: 6999 ldr r1, [r3, #24]
  37127. 8010060: 68bb ldr r3, [r7, #8]
  37128. 8010062: 689a ldr r2, [r3, #8]
  37129. 8010064: 68fb ldr r3, [r7, #12]
  37130. 8010066: 681b ldr r3, [r3, #0]
  37131. 8010068: 430a orrs r2, r1
  37132. 801006a: 619a str r2, [r3, #24]
  37133. 801006c: e060 b.n 8010130 <HAL_TIM_IC_ConfigChannel+0x126>
  37134. }
  37135. else if (Channel == TIM_CHANNEL_2)
  37136. 801006e: 687b ldr r3, [r7, #4]
  37137. 8010070: 2b04 cmp r3, #4
  37138. 8010072: d11c bne.n 80100ae <HAL_TIM_IC_ConfigChannel+0xa4>
  37139. {
  37140. /* TI2 Configuration */
  37141. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37142. TIM_TI2_SetConfig(htim->Instance,
  37143. 8010074: 68fb ldr r3, [r7, #12]
  37144. 8010076: 6818 ldr r0, [r3, #0]
  37145. sConfig->ICPolarity,
  37146. 8010078: 68bb ldr r3, [r7, #8]
  37147. 801007a: 6819 ldr r1, [r3, #0]
  37148. sConfig->ICSelection,
  37149. 801007c: 68bb ldr r3, [r7, #8]
  37150. 801007e: 685a ldr r2, [r3, #4]
  37151. sConfig->ICFilter);
  37152. 8010080: 68bb ldr r3, [r7, #8]
  37153. 8010082: 68db ldr r3, [r3, #12]
  37154. TIM_TI2_SetConfig(htim->Instance,
  37155. 8010084: f000 ff25 bl 8010ed2 <TIM_TI2_SetConfig>
  37156. /* Reset the IC2PSC Bits */
  37157. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  37158. 8010088: 68fb ldr r3, [r7, #12]
  37159. 801008a: 681b ldr r3, [r3, #0]
  37160. 801008c: 699a ldr r2, [r3, #24]
  37161. 801008e: 68fb ldr r3, [r7, #12]
  37162. 8010090: 681b ldr r3, [r3, #0]
  37163. 8010092: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37164. 8010096: 619a str r2, [r3, #24]
  37165. /* Set the IC2PSC value */
  37166. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  37167. 8010098: 68fb ldr r3, [r7, #12]
  37168. 801009a: 681b ldr r3, [r3, #0]
  37169. 801009c: 6999 ldr r1, [r3, #24]
  37170. 801009e: 68bb ldr r3, [r7, #8]
  37171. 80100a0: 689b ldr r3, [r3, #8]
  37172. 80100a2: 021a lsls r2, r3, #8
  37173. 80100a4: 68fb ldr r3, [r7, #12]
  37174. 80100a6: 681b ldr r3, [r3, #0]
  37175. 80100a8: 430a orrs r2, r1
  37176. 80100aa: 619a str r2, [r3, #24]
  37177. 80100ac: e040 b.n 8010130 <HAL_TIM_IC_ConfigChannel+0x126>
  37178. }
  37179. else if (Channel == TIM_CHANNEL_3)
  37180. 80100ae: 687b ldr r3, [r7, #4]
  37181. 80100b0: 2b08 cmp r3, #8
  37182. 80100b2: d11b bne.n 80100ec <HAL_TIM_IC_ConfigChannel+0xe2>
  37183. {
  37184. /* TI3 Configuration */
  37185. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37186. TIM_TI3_SetConfig(htim->Instance,
  37187. 80100b4: 68fb ldr r3, [r7, #12]
  37188. 80100b6: 6818 ldr r0, [r3, #0]
  37189. sConfig->ICPolarity,
  37190. 80100b8: 68bb ldr r3, [r7, #8]
  37191. 80100ba: 6819 ldr r1, [r3, #0]
  37192. sConfig->ICSelection,
  37193. 80100bc: 68bb ldr r3, [r7, #8]
  37194. 80100be: 685a ldr r2, [r3, #4]
  37195. sConfig->ICFilter);
  37196. 80100c0: 68bb ldr r3, [r7, #8]
  37197. 80100c2: 68db ldr r3, [r3, #12]
  37198. TIM_TI3_SetConfig(htim->Instance,
  37199. 80100c4: f000 ff72 bl 8010fac <TIM_TI3_SetConfig>
  37200. /* Reset the IC3PSC Bits */
  37201. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  37202. 80100c8: 68fb ldr r3, [r7, #12]
  37203. 80100ca: 681b ldr r3, [r3, #0]
  37204. 80100cc: 69da ldr r2, [r3, #28]
  37205. 80100ce: 68fb ldr r3, [r7, #12]
  37206. 80100d0: 681b ldr r3, [r3, #0]
  37207. 80100d2: f022 020c bic.w r2, r2, #12
  37208. 80100d6: 61da str r2, [r3, #28]
  37209. /* Set the IC3PSC value */
  37210. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  37211. 80100d8: 68fb ldr r3, [r7, #12]
  37212. 80100da: 681b ldr r3, [r3, #0]
  37213. 80100dc: 69d9 ldr r1, [r3, #28]
  37214. 80100de: 68bb ldr r3, [r7, #8]
  37215. 80100e0: 689a ldr r2, [r3, #8]
  37216. 80100e2: 68fb ldr r3, [r7, #12]
  37217. 80100e4: 681b ldr r3, [r3, #0]
  37218. 80100e6: 430a orrs r2, r1
  37219. 80100e8: 61da str r2, [r3, #28]
  37220. 80100ea: e021 b.n 8010130 <HAL_TIM_IC_ConfigChannel+0x126>
  37221. }
  37222. else if (Channel == TIM_CHANNEL_4)
  37223. 80100ec: 687b ldr r3, [r7, #4]
  37224. 80100ee: 2b0c cmp r3, #12
  37225. 80100f0: d11c bne.n 801012c <HAL_TIM_IC_ConfigChannel+0x122>
  37226. {
  37227. /* TI4 Configuration */
  37228. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37229. TIM_TI4_SetConfig(htim->Instance,
  37230. 80100f2: 68fb ldr r3, [r7, #12]
  37231. 80100f4: 6818 ldr r0, [r3, #0]
  37232. sConfig->ICPolarity,
  37233. 80100f6: 68bb ldr r3, [r7, #8]
  37234. 80100f8: 6819 ldr r1, [r3, #0]
  37235. sConfig->ICSelection,
  37236. 80100fa: 68bb ldr r3, [r7, #8]
  37237. 80100fc: 685a ldr r2, [r3, #4]
  37238. sConfig->ICFilter);
  37239. 80100fe: 68bb ldr r3, [r7, #8]
  37240. 8010100: 68db ldr r3, [r3, #12]
  37241. TIM_TI4_SetConfig(htim->Instance,
  37242. 8010102: f000 ff8f bl 8011024 <TIM_TI4_SetConfig>
  37243. /* Reset the IC4PSC Bits */
  37244. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  37245. 8010106: 68fb ldr r3, [r7, #12]
  37246. 8010108: 681b ldr r3, [r3, #0]
  37247. 801010a: 69da ldr r2, [r3, #28]
  37248. 801010c: 68fb ldr r3, [r7, #12]
  37249. 801010e: 681b ldr r3, [r3, #0]
  37250. 8010110: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37251. 8010114: 61da str r2, [r3, #28]
  37252. /* Set the IC4PSC value */
  37253. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  37254. 8010116: 68fb ldr r3, [r7, #12]
  37255. 8010118: 681b ldr r3, [r3, #0]
  37256. 801011a: 69d9 ldr r1, [r3, #28]
  37257. 801011c: 68bb ldr r3, [r7, #8]
  37258. 801011e: 689b ldr r3, [r3, #8]
  37259. 8010120: 021a lsls r2, r3, #8
  37260. 8010122: 68fb ldr r3, [r7, #12]
  37261. 8010124: 681b ldr r3, [r3, #0]
  37262. 8010126: 430a orrs r2, r1
  37263. 8010128: 61da str r2, [r3, #28]
  37264. 801012a: e001 b.n 8010130 <HAL_TIM_IC_ConfigChannel+0x126>
  37265. }
  37266. else
  37267. {
  37268. status = HAL_ERROR;
  37269. 801012c: 2301 movs r3, #1
  37270. 801012e: 75fb strb r3, [r7, #23]
  37271. }
  37272. __HAL_UNLOCK(htim);
  37273. 8010130: 68fb ldr r3, [r7, #12]
  37274. 8010132: 2200 movs r2, #0
  37275. 8010134: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37276. return status;
  37277. 8010138: 7dfb ldrb r3, [r7, #23]
  37278. }
  37279. 801013a: 4618 mov r0, r3
  37280. 801013c: 3718 adds r7, #24
  37281. 801013e: 46bd mov sp, r7
  37282. 8010140: bd80 pop {r7, pc}
  37283. ...
  37284. 08010144 <HAL_TIM_PWM_ConfigChannel>:
  37285. * @retval HAL status
  37286. */
  37287. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  37288. const TIM_OC_InitTypeDef *sConfig,
  37289. uint32_t Channel)
  37290. {
  37291. 8010144: b580 push {r7, lr}
  37292. 8010146: b086 sub sp, #24
  37293. 8010148: af00 add r7, sp, #0
  37294. 801014a: 60f8 str r0, [r7, #12]
  37295. 801014c: 60b9 str r1, [r7, #8]
  37296. 801014e: 607a str r2, [r7, #4]
  37297. HAL_StatusTypeDef status = HAL_OK;
  37298. 8010150: 2300 movs r3, #0
  37299. 8010152: 75fb strb r3, [r7, #23]
  37300. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  37301. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  37302. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  37303. /* Process Locked */
  37304. __HAL_LOCK(htim);
  37305. 8010154: 68fb ldr r3, [r7, #12]
  37306. 8010156: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37307. 801015a: 2b01 cmp r3, #1
  37308. 801015c: d101 bne.n 8010162 <HAL_TIM_PWM_ConfigChannel+0x1e>
  37309. 801015e: 2302 movs r3, #2
  37310. 8010160: e0ff b.n 8010362 <HAL_TIM_PWM_ConfigChannel+0x21e>
  37311. 8010162: 68fb ldr r3, [r7, #12]
  37312. 8010164: 2201 movs r2, #1
  37313. 8010166: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37314. switch (Channel)
  37315. 801016a: 687b ldr r3, [r7, #4]
  37316. 801016c: 2b14 cmp r3, #20
  37317. 801016e: f200 80f0 bhi.w 8010352 <HAL_TIM_PWM_ConfigChannel+0x20e>
  37318. 8010172: a201 add r2, pc, #4 @ (adr r2, 8010178 <HAL_TIM_PWM_ConfigChannel+0x34>)
  37319. 8010174: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37320. 8010178: 080101cd .word 0x080101cd
  37321. 801017c: 08010353 .word 0x08010353
  37322. 8010180: 08010353 .word 0x08010353
  37323. 8010184: 08010353 .word 0x08010353
  37324. 8010188: 0801020d .word 0x0801020d
  37325. 801018c: 08010353 .word 0x08010353
  37326. 8010190: 08010353 .word 0x08010353
  37327. 8010194: 08010353 .word 0x08010353
  37328. 8010198: 0801024f .word 0x0801024f
  37329. 801019c: 08010353 .word 0x08010353
  37330. 80101a0: 08010353 .word 0x08010353
  37331. 80101a4: 08010353 .word 0x08010353
  37332. 80101a8: 0801028f .word 0x0801028f
  37333. 80101ac: 08010353 .word 0x08010353
  37334. 80101b0: 08010353 .word 0x08010353
  37335. 80101b4: 08010353 .word 0x08010353
  37336. 80101b8: 080102d1 .word 0x080102d1
  37337. 80101bc: 08010353 .word 0x08010353
  37338. 80101c0: 08010353 .word 0x08010353
  37339. 80101c4: 08010353 .word 0x08010353
  37340. 80101c8: 08010311 .word 0x08010311
  37341. {
  37342. /* Check the parameters */
  37343. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37344. /* Configure the Channel 1 in PWM mode */
  37345. TIM_OC1_SetConfig(htim->Instance, sConfig);
  37346. 80101cc: 68fb ldr r3, [r7, #12]
  37347. 80101ce: 681b ldr r3, [r3, #0]
  37348. 80101d0: 68b9 ldr r1, [r7, #8]
  37349. 80101d2: 4618 mov r0, r3
  37350. 80101d4: f000 fb04 bl 80107e0 <TIM_OC1_SetConfig>
  37351. /* Set the Preload enable bit for channel1 */
  37352. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  37353. 80101d8: 68fb ldr r3, [r7, #12]
  37354. 80101da: 681b ldr r3, [r3, #0]
  37355. 80101dc: 699a ldr r2, [r3, #24]
  37356. 80101de: 68fb ldr r3, [r7, #12]
  37357. 80101e0: 681b ldr r3, [r3, #0]
  37358. 80101e2: f042 0208 orr.w r2, r2, #8
  37359. 80101e6: 619a str r2, [r3, #24]
  37360. /* Configure the Output Fast mode */
  37361. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  37362. 80101e8: 68fb ldr r3, [r7, #12]
  37363. 80101ea: 681b ldr r3, [r3, #0]
  37364. 80101ec: 699a ldr r2, [r3, #24]
  37365. 80101ee: 68fb ldr r3, [r7, #12]
  37366. 80101f0: 681b ldr r3, [r3, #0]
  37367. 80101f2: f022 0204 bic.w r2, r2, #4
  37368. 80101f6: 619a str r2, [r3, #24]
  37369. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  37370. 80101f8: 68fb ldr r3, [r7, #12]
  37371. 80101fa: 681b ldr r3, [r3, #0]
  37372. 80101fc: 6999 ldr r1, [r3, #24]
  37373. 80101fe: 68bb ldr r3, [r7, #8]
  37374. 8010200: 691a ldr r2, [r3, #16]
  37375. 8010202: 68fb ldr r3, [r7, #12]
  37376. 8010204: 681b ldr r3, [r3, #0]
  37377. 8010206: 430a orrs r2, r1
  37378. 8010208: 619a str r2, [r3, #24]
  37379. break;
  37380. 801020a: e0a5 b.n 8010358 <HAL_TIM_PWM_ConfigChannel+0x214>
  37381. {
  37382. /* Check the parameters */
  37383. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37384. /* Configure the Channel 2 in PWM mode */
  37385. TIM_OC2_SetConfig(htim->Instance, sConfig);
  37386. 801020c: 68fb ldr r3, [r7, #12]
  37387. 801020e: 681b ldr r3, [r3, #0]
  37388. 8010210: 68b9 ldr r1, [r7, #8]
  37389. 8010212: 4618 mov r0, r3
  37390. 8010214: f000 fb74 bl 8010900 <TIM_OC2_SetConfig>
  37391. /* Set the Preload enable bit for channel2 */
  37392. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  37393. 8010218: 68fb ldr r3, [r7, #12]
  37394. 801021a: 681b ldr r3, [r3, #0]
  37395. 801021c: 699a ldr r2, [r3, #24]
  37396. 801021e: 68fb ldr r3, [r7, #12]
  37397. 8010220: 681b ldr r3, [r3, #0]
  37398. 8010222: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37399. 8010226: 619a str r2, [r3, #24]
  37400. /* Configure the Output Fast mode */
  37401. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  37402. 8010228: 68fb ldr r3, [r7, #12]
  37403. 801022a: 681b ldr r3, [r3, #0]
  37404. 801022c: 699a ldr r2, [r3, #24]
  37405. 801022e: 68fb ldr r3, [r7, #12]
  37406. 8010230: 681b ldr r3, [r3, #0]
  37407. 8010232: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37408. 8010236: 619a str r2, [r3, #24]
  37409. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  37410. 8010238: 68fb ldr r3, [r7, #12]
  37411. 801023a: 681b ldr r3, [r3, #0]
  37412. 801023c: 6999 ldr r1, [r3, #24]
  37413. 801023e: 68bb ldr r3, [r7, #8]
  37414. 8010240: 691b ldr r3, [r3, #16]
  37415. 8010242: 021a lsls r2, r3, #8
  37416. 8010244: 68fb ldr r3, [r7, #12]
  37417. 8010246: 681b ldr r3, [r3, #0]
  37418. 8010248: 430a orrs r2, r1
  37419. 801024a: 619a str r2, [r3, #24]
  37420. break;
  37421. 801024c: e084 b.n 8010358 <HAL_TIM_PWM_ConfigChannel+0x214>
  37422. {
  37423. /* Check the parameters */
  37424. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37425. /* Configure the Channel 3 in PWM mode */
  37426. TIM_OC3_SetConfig(htim->Instance, sConfig);
  37427. 801024e: 68fb ldr r3, [r7, #12]
  37428. 8010250: 681b ldr r3, [r3, #0]
  37429. 8010252: 68b9 ldr r1, [r7, #8]
  37430. 8010254: 4618 mov r0, r3
  37431. 8010256: f000 fbdd bl 8010a14 <TIM_OC3_SetConfig>
  37432. /* Set the Preload enable bit for channel3 */
  37433. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  37434. 801025a: 68fb ldr r3, [r7, #12]
  37435. 801025c: 681b ldr r3, [r3, #0]
  37436. 801025e: 69da ldr r2, [r3, #28]
  37437. 8010260: 68fb ldr r3, [r7, #12]
  37438. 8010262: 681b ldr r3, [r3, #0]
  37439. 8010264: f042 0208 orr.w r2, r2, #8
  37440. 8010268: 61da str r2, [r3, #28]
  37441. /* Configure the Output Fast mode */
  37442. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  37443. 801026a: 68fb ldr r3, [r7, #12]
  37444. 801026c: 681b ldr r3, [r3, #0]
  37445. 801026e: 69da ldr r2, [r3, #28]
  37446. 8010270: 68fb ldr r3, [r7, #12]
  37447. 8010272: 681b ldr r3, [r3, #0]
  37448. 8010274: f022 0204 bic.w r2, r2, #4
  37449. 8010278: 61da str r2, [r3, #28]
  37450. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  37451. 801027a: 68fb ldr r3, [r7, #12]
  37452. 801027c: 681b ldr r3, [r3, #0]
  37453. 801027e: 69d9 ldr r1, [r3, #28]
  37454. 8010280: 68bb ldr r3, [r7, #8]
  37455. 8010282: 691a ldr r2, [r3, #16]
  37456. 8010284: 68fb ldr r3, [r7, #12]
  37457. 8010286: 681b ldr r3, [r3, #0]
  37458. 8010288: 430a orrs r2, r1
  37459. 801028a: 61da str r2, [r3, #28]
  37460. break;
  37461. 801028c: e064 b.n 8010358 <HAL_TIM_PWM_ConfigChannel+0x214>
  37462. {
  37463. /* Check the parameters */
  37464. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37465. /* Configure the Channel 4 in PWM mode */
  37466. TIM_OC4_SetConfig(htim->Instance, sConfig);
  37467. 801028e: 68fb ldr r3, [r7, #12]
  37468. 8010290: 681b ldr r3, [r3, #0]
  37469. 8010292: 68b9 ldr r1, [r7, #8]
  37470. 8010294: 4618 mov r0, r3
  37471. 8010296: f000 fc45 bl 8010b24 <TIM_OC4_SetConfig>
  37472. /* Set the Preload enable bit for channel4 */
  37473. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  37474. 801029a: 68fb ldr r3, [r7, #12]
  37475. 801029c: 681b ldr r3, [r3, #0]
  37476. 801029e: 69da ldr r2, [r3, #28]
  37477. 80102a0: 68fb ldr r3, [r7, #12]
  37478. 80102a2: 681b ldr r3, [r3, #0]
  37479. 80102a4: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37480. 80102a8: 61da str r2, [r3, #28]
  37481. /* Configure the Output Fast mode */
  37482. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  37483. 80102aa: 68fb ldr r3, [r7, #12]
  37484. 80102ac: 681b ldr r3, [r3, #0]
  37485. 80102ae: 69da ldr r2, [r3, #28]
  37486. 80102b0: 68fb ldr r3, [r7, #12]
  37487. 80102b2: 681b ldr r3, [r3, #0]
  37488. 80102b4: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37489. 80102b8: 61da str r2, [r3, #28]
  37490. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  37491. 80102ba: 68fb ldr r3, [r7, #12]
  37492. 80102bc: 681b ldr r3, [r3, #0]
  37493. 80102be: 69d9 ldr r1, [r3, #28]
  37494. 80102c0: 68bb ldr r3, [r7, #8]
  37495. 80102c2: 691b ldr r3, [r3, #16]
  37496. 80102c4: 021a lsls r2, r3, #8
  37497. 80102c6: 68fb ldr r3, [r7, #12]
  37498. 80102c8: 681b ldr r3, [r3, #0]
  37499. 80102ca: 430a orrs r2, r1
  37500. 80102cc: 61da str r2, [r3, #28]
  37501. break;
  37502. 80102ce: e043 b.n 8010358 <HAL_TIM_PWM_ConfigChannel+0x214>
  37503. {
  37504. /* Check the parameters */
  37505. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  37506. /* Configure the Channel 5 in PWM mode */
  37507. TIM_OC5_SetConfig(htim->Instance, sConfig);
  37508. 80102d0: 68fb ldr r3, [r7, #12]
  37509. 80102d2: 681b ldr r3, [r3, #0]
  37510. 80102d4: 68b9 ldr r1, [r7, #8]
  37511. 80102d6: 4618 mov r0, r3
  37512. 80102d8: f000 fc8e bl 8010bf8 <TIM_OC5_SetConfig>
  37513. /* Set the Preload enable bit for channel5*/
  37514. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  37515. 80102dc: 68fb ldr r3, [r7, #12]
  37516. 80102de: 681b ldr r3, [r3, #0]
  37517. 80102e0: 6d5a ldr r2, [r3, #84] @ 0x54
  37518. 80102e2: 68fb ldr r3, [r7, #12]
  37519. 80102e4: 681b ldr r3, [r3, #0]
  37520. 80102e6: f042 0208 orr.w r2, r2, #8
  37521. 80102ea: 655a str r2, [r3, #84] @ 0x54
  37522. /* Configure the Output Fast mode */
  37523. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  37524. 80102ec: 68fb ldr r3, [r7, #12]
  37525. 80102ee: 681b ldr r3, [r3, #0]
  37526. 80102f0: 6d5a ldr r2, [r3, #84] @ 0x54
  37527. 80102f2: 68fb ldr r3, [r7, #12]
  37528. 80102f4: 681b ldr r3, [r3, #0]
  37529. 80102f6: f022 0204 bic.w r2, r2, #4
  37530. 80102fa: 655a str r2, [r3, #84] @ 0x54
  37531. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  37532. 80102fc: 68fb ldr r3, [r7, #12]
  37533. 80102fe: 681b ldr r3, [r3, #0]
  37534. 8010300: 6d59 ldr r1, [r3, #84] @ 0x54
  37535. 8010302: 68bb ldr r3, [r7, #8]
  37536. 8010304: 691a ldr r2, [r3, #16]
  37537. 8010306: 68fb ldr r3, [r7, #12]
  37538. 8010308: 681b ldr r3, [r3, #0]
  37539. 801030a: 430a orrs r2, r1
  37540. 801030c: 655a str r2, [r3, #84] @ 0x54
  37541. break;
  37542. 801030e: e023 b.n 8010358 <HAL_TIM_PWM_ConfigChannel+0x214>
  37543. {
  37544. /* Check the parameters */
  37545. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  37546. /* Configure the Channel 6 in PWM mode */
  37547. TIM_OC6_SetConfig(htim->Instance, sConfig);
  37548. 8010310: 68fb ldr r3, [r7, #12]
  37549. 8010312: 681b ldr r3, [r3, #0]
  37550. 8010314: 68b9 ldr r1, [r7, #8]
  37551. 8010316: 4618 mov r0, r3
  37552. 8010318: f000 fcd2 bl 8010cc0 <TIM_OC6_SetConfig>
  37553. /* Set the Preload enable bit for channel6 */
  37554. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  37555. 801031c: 68fb ldr r3, [r7, #12]
  37556. 801031e: 681b ldr r3, [r3, #0]
  37557. 8010320: 6d5a ldr r2, [r3, #84] @ 0x54
  37558. 8010322: 68fb ldr r3, [r7, #12]
  37559. 8010324: 681b ldr r3, [r3, #0]
  37560. 8010326: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37561. 801032a: 655a str r2, [r3, #84] @ 0x54
  37562. /* Configure the Output Fast mode */
  37563. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  37564. 801032c: 68fb ldr r3, [r7, #12]
  37565. 801032e: 681b ldr r3, [r3, #0]
  37566. 8010330: 6d5a ldr r2, [r3, #84] @ 0x54
  37567. 8010332: 68fb ldr r3, [r7, #12]
  37568. 8010334: 681b ldr r3, [r3, #0]
  37569. 8010336: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37570. 801033a: 655a str r2, [r3, #84] @ 0x54
  37571. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  37572. 801033c: 68fb ldr r3, [r7, #12]
  37573. 801033e: 681b ldr r3, [r3, #0]
  37574. 8010340: 6d59 ldr r1, [r3, #84] @ 0x54
  37575. 8010342: 68bb ldr r3, [r7, #8]
  37576. 8010344: 691b ldr r3, [r3, #16]
  37577. 8010346: 021a lsls r2, r3, #8
  37578. 8010348: 68fb ldr r3, [r7, #12]
  37579. 801034a: 681b ldr r3, [r3, #0]
  37580. 801034c: 430a orrs r2, r1
  37581. 801034e: 655a str r2, [r3, #84] @ 0x54
  37582. break;
  37583. 8010350: e002 b.n 8010358 <HAL_TIM_PWM_ConfigChannel+0x214>
  37584. }
  37585. default:
  37586. status = HAL_ERROR;
  37587. 8010352: 2301 movs r3, #1
  37588. 8010354: 75fb strb r3, [r7, #23]
  37589. break;
  37590. 8010356: bf00 nop
  37591. }
  37592. __HAL_UNLOCK(htim);
  37593. 8010358: 68fb ldr r3, [r7, #12]
  37594. 801035a: 2200 movs r2, #0
  37595. 801035c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37596. return status;
  37597. 8010360: 7dfb ldrb r3, [r7, #23]
  37598. }
  37599. 8010362: 4618 mov r0, r3
  37600. 8010364: 3718 adds r7, #24
  37601. 8010366: 46bd mov sp, r7
  37602. 8010368: bd80 pop {r7, pc}
  37603. 801036a: bf00 nop
  37604. 0801036c <HAL_TIM_ConfigClockSource>:
  37605. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  37606. * contains the clock source information for the TIM peripheral.
  37607. * @retval HAL status
  37608. */
  37609. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  37610. {
  37611. 801036c: b580 push {r7, lr}
  37612. 801036e: b084 sub sp, #16
  37613. 8010370: af00 add r7, sp, #0
  37614. 8010372: 6078 str r0, [r7, #4]
  37615. 8010374: 6039 str r1, [r7, #0]
  37616. HAL_StatusTypeDef status = HAL_OK;
  37617. 8010376: 2300 movs r3, #0
  37618. 8010378: 73fb strb r3, [r7, #15]
  37619. uint32_t tmpsmcr;
  37620. /* Process Locked */
  37621. __HAL_LOCK(htim);
  37622. 801037a: 687b ldr r3, [r7, #4]
  37623. 801037c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37624. 8010380: 2b01 cmp r3, #1
  37625. 8010382: d101 bne.n 8010388 <HAL_TIM_ConfigClockSource+0x1c>
  37626. 8010384: 2302 movs r3, #2
  37627. 8010386: e0dc b.n 8010542 <HAL_TIM_ConfigClockSource+0x1d6>
  37628. 8010388: 687b ldr r3, [r7, #4]
  37629. 801038a: 2201 movs r2, #1
  37630. 801038c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37631. htim->State = HAL_TIM_STATE_BUSY;
  37632. 8010390: 687b ldr r3, [r7, #4]
  37633. 8010392: 2202 movs r2, #2
  37634. 8010394: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37635. /* Check the parameters */
  37636. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  37637. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  37638. tmpsmcr = htim->Instance->SMCR;
  37639. 8010398: 687b ldr r3, [r7, #4]
  37640. 801039a: 681b ldr r3, [r3, #0]
  37641. 801039c: 689b ldr r3, [r3, #8]
  37642. 801039e: 60bb str r3, [r7, #8]
  37643. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  37644. 80103a0: 68ba ldr r2, [r7, #8]
  37645. 80103a2: 4b6a ldr r3, [pc, #424] @ (801054c <HAL_TIM_ConfigClockSource+0x1e0>)
  37646. 80103a4: 4013 ands r3, r2
  37647. 80103a6: 60bb str r3, [r7, #8]
  37648. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  37649. 80103a8: 68bb ldr r3, [r7, #8]
  37650. 80103aa: f423 437f bic.w r3, r3, #65280 @ 0xff00
  37651. 80103ae: 60bb str r3, [r7, #8]
  37652. htim->Instance->SMCR = tmpsmcr;
  37653. 80103b0: 687b ldr r3, [r7, #4]
  37654. 80103b2: 681b ldr r3, [r3, #0]
  37655. 80103b4: 68ba ldr r2, [r7, #8]
  37656. 80103b6: 609a str r2, [r3, #8]
  37657. switch (sClockSourceConfig->ClockSource)
  37658. 80103b8: 683b ldr r3, [r7, #0]
  37659. 80103ba: 681b ldr r3, [r3, #0]
  37660. 80103bc: 4a64 ldr r2, [pc, #400] @ (8010550 <HAL_TIM_ConfigClockSource+0x1e4>)
  37661. 80103be: 4293 cmp r3, r2
  37662. 80103c0: f000 80a9 beq.w 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37663. 80103c4: 4a62 ldr r2, [pc, #392] @ (8010550 <HAL_TIM_ConfigClockSource+0x1e4>)
  37664. 80103c6: 4293 cmp r3, r2
  37665. 80103c8: f200 80ae bhi.w 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37666. 80103cc: 4a61 ldr r2, [pc, #388] @ (8010554 <HAL_TIM_ConfigClockSource+0x1e8>)
  37667. 80103ce: 4293 cmp r3, r2
  37668. 80103d0: f000 80a1 beq.w 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37669. 80103d4: 4a5f ldr r2, [pc, #380] @ (8010554 <HAL_TIM_ConfigClockSource+0x1e8>)
  37670. 80103d6: 4293 cmp r3, r2
  37671. 80103d8: f200 80a6 bhi.w 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37672. 80103dc: 4a5e ldr r2, [pc, #376] @ (8010558 <HAL_TIM_ConfigClockSource+0x1ec>)
  37673. 80103de: 4293 cmp r3, r2
  37674. 80103e0: f000 8099 beq.w 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37675. 80103e4: 4a5c ldr r2, [pc, #368] @ (8010558 <HAL_TIM_ConfigClockSource+0x1ec>)
  37676. 80103e6: 4293 cmp r3, r2
  37677. 80103e8: f200 809e bhi.w 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37678. 80103ec: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37679. 80103f0: f000 8091 beq.w 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37680. 80103f4: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37681. 80103f8: f200 8096 bhi.w 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37682. 80103fc: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37683. 8010400: f000 8089 beq.w 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37684. 8010404: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37685. 8010408: f200 808e bhi.w 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37686. 801040c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37687. 8010410: d03e beq.n 8010490 <HAL_TIM_ConfigClockSource+0x124>
  37688. 8010412: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37689. 8010416: f200 8087 bhi.w 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37690. 801041a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37691. 801041e: f000 8086 beq.w 801052e <HAL_TIM_ConfigClockSource+0x1c2>
  37692. 8010422: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37693. 8010426: d87f bhi.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37694. 8010428: 2b70 cmp r3, #112 @ 0x70
  37695. 801042a: d01a beq.n 8010462 <HAL_TIM_ConfigClockSource+0xf6>
  37696. 801042c: 2b70 cmp r3, #112 @ 0x70
  37697. 801042e: d87b bhi.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37698. 8010430: 2b60 cmp r3, #96 @ 0x60
  37699. 8010432: d050 beq.n 80104d6 <HAL_TIM_ConfigClockSource+0x16a>
  37700. 8010434: 2b60 cmp r3, #96 @ 0x60
  37701. 8010436: d877 bhi.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37702. 8010438: 2b50 cmp r3, #80 @ 0x50
  37703. 801043a: d03c beq.n 80104b6 <HAL_TIM_ConfigClockSource+0x14a>
  37704. 801043c: 2b50 cmp r3, #80 @ 0x50
  37705. 801043e: d873 bhi.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37706. 8010440: 2b40 cmp r3, #64 @ 0x40
  37707. 8010442: d058 beq.n 80104f6 <HAL_TIM_ConfigClockSource+0x18a>
  37708. 8010444: 2b40 cmp r3, #64 @ 0x40
  37709. 8010446: d86f bhi.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37710. 8010448: 2b30 cmp r3, #48 @ 0x30
  37711. 801044a: d064 beq.n 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37712. 801044c: 2b30 cmp r3, #48 @ 0x30
  37713. 801044e: d86b bhi.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37714. 8010450: 2b20 cmp r3, #32
  37715. 8010452: d060 beq.n 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37716. 8010454: 2b20 cmp r3, #32
  37717. 8010456: d867 bhi.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37718. 8010458: 2b00 cmp r3, #0
  37719. 801045a: d05c beq.n 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37720. 801045c: 2b10 cmp r3, #16
  37721. 801045e: d05a beq.n 8010516 <HAL_TIM_ConfigClockSource+0x1aa>
  37722. 8010460: e062 b.n 8010528 <HAL_TIM_ConfigClockSource+0x1bc>
  37723. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37724. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37725. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37726. /* Configure the ETR Clock source */
  37727. TIM_ETR_SetConfig(htim->Instance,
  37728. 8010462: 687b ldr r3, [r7, #4]
  37729. 8010464: 6818 ldr r0, [r3, #0]
  37730. sClockSourceConfig->ClockPrescaler,
  37731. 8010466: 683b ldr r3, [r7, #0]
  37732. 8010468: 6899 ldr r1, [r3, #8]
  37733. sClockSourceConfig->ClockPolarity,
  37734. 801046a: 683b ldr r3, [r7, #0]
  37735. 801046c: 685a ldr r2, [r3, #4]
  37736. sClockSourceConfig->ClockFilter);
  37737. 801046e: 683b ldr r3, [r7, #0]
  37738. 8010470: 68db ldr r3, [r3, #12]
  37739. TIM_ETR_SetConfig(htim->Instance,
  37740. 8010472: f000 fe33 bl 80110dc <TIM_ETR_SetConfig>
  37741. /* Select the External clock mode1 and the ETRF trigger */
  37742. tmpsmcr = htim->Instance->SMCR;
  37743. 8010476: 687b ldr r3, [r7, #4]
  37744. 8010478: 681b ldr r3, [r3, #0]
  37745. 801047a: 689b ldr r3, [r3, #8]
  37746. 801047c: 60bb str r3, [r7, #8]
  37747. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  37748. 801047e: 68bb ldr r3, [r7, #8]
  37749. 8010480: f043 0377 orr.w r3, r3, #119 @ 0x77
  37750. 8010484: 60bb str r3, [r7, #8]
  37751. /* Write to TIMx SMCR */
  37752. htim->Instance->SMCR = tmpsmcr;
  37753. 8010486: 687b ldr r3, [r7, #4]
  37754. 8010488: 681b ldr r3, [r3, #0]
  37755. 801048a: 68ba ldr r2, [r7, #8]
  37756. 801048c: 609a str r2, [r3, #8]
  37757. break;
  37758. 801048e: e04f b.n 8010530 <HAL_TIM_ConfigClockSource+0x1c4>
  37759. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37760. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37761. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37762. /* Configure the ETR Clock source */
  37763. TIM_ETR_SetConfig(htim->Instance,
  37764. 8010490: 687b ldr r3, [r7, #4]
  37765. 8010492: 6818 ldr r0, [r3, #0]
  37766. sClockSourceConfig->ClockPrescaler,
  37767. 8010494: 683b ldr r3, [r7, #0]
  37768. 8010496: 6899 ldr r1, [r3, #8]
  37769. sClockSourceConfig->ClockPolarity,
  37770. 8010498: 683b ldr r3, [r7, #0]
  37771. 801049a: 685a ldr r2, [r3, #4]
  37772. sClockSourceConfig->ClockFilter);
  37773. 801049c: 683b ldr r3, [r7, #0]
  37774. 801049e: 68db ldr r3, [r3, #12]
  37775. TIM_ETR_SetConfig(htim->Instance,
  37776. 80104a0: f000 fe1c bl 80110dc <TIM_ETR_SetConfig>
  37777. /* Enable the External clock mode2 */
  37778. htim->Instance->SMCR |= TIM_SMCR_ECE;
  37779. 80104a4: 687b ldr r3, [r7, #4]
  37780. 80104a6: 681b ldr r3, [r3, #0]
  37781. 80104a8: 689a ldr r2, [r3, #8]
  37782. 80104aa: 687b ldr r3, [r7, #4]
  37783. 80104ac: 681b ldr r3, [r3, #0]
  37784. 80104ae: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  37785. 80104b2: 609a str r2, [r3, #8]
  37786. break;
  37787. 80104b4: e03c b.n 8010530 <HAL_TIM_ConfigClockSource+0x1c4>
  37788. /* Check TI1 input conditioning related parameters */
  37789. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37790. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37791. TIM_TI1_ConfigInputStage(htim->Instance,
  37792. 80104b6: 687b ldr r3, [r7, #4]
  37793. 80104b8: 6818 ldr r0, [r3, #0]
  37794. sClockSourceConfig->ClockPolarity,
  37795. 80104ba: 683b ldr r3, [r7, #0]
  37796. 80104bc: 6859 ldr r1, [r3, #4]
  37797. sClockSourceConfig->ClockFilter);
  37798. 80104be: 683b ldr r3, [r7, #0]
  37799. 80104c0: 68db ldr r3, [r3, #12]
  37800. TIM_TI1_ConfigInputStage(htim->Instance,
  37801. 80104c2: 461a mov r2, r3
  37802. 80104c4: f000 fcd6 bl 8010e74 <TIM_TI1_ConfigInputStage>
  37803. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  37804. 80104c8: 687b ldr r3, [r7, #4]
  37805. 80104ca: 681b ldr r3, [r3, #0]
  37806. 80104cc: 2150 movs r1, #80 @ 0x50
  37807. 80104ce: 4618 mov r0, r3
  37808. 80104d0: f000 fde6 bl 80110a0 <TIM_ITRx_SetConfig>
  37809. break;
  37810. 80104d4: e02c b.n 8010530 <HAL_TIM_ConfigClockSource+0x1c4>
  37811. /* Check TI2 input conditioning related parameters */
  37812. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37813. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37814. TIM_TI2_ConfigInputStage(htim->Instance,
  37815. 80104d6: 687b ldr r3, [r7, #4]
  37816. 80104d8: 6818 ldr r0, [r3, #0]
  37817. sClockSourceConfig->ClockPolarity,
  37818. 80104da: 683b ldr r3, [r7, #0]
  37819. 80104dc: 6859 ldr r1, [r3, #4]
  37820. sClockSourceConfig->ClockFilter);
  37821. 80104de: 683b ldr r3, [r7, #0]
  37822. 80104e0: 68db ldr r3, [r3, #12]
  37823. TIM_TI2_ConfigInputStage(htim->Instance,
  37824. 80104e2: 461a mov r2, r3
  37825. 80104e4: f000 fd32 bl 8010f4c <TIM_TI2_ConfigInputStage>
  37826. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  37827. 80104e8: 687b ldr r3, [r7, #4]
  37828. 80104ea: 681b ldr r3, [r3, #0]
  37829. 80104ec: 2160 movs r1, #96 @ 0x60
  37830. 80104ee: 4618 mov r0, r3
  37831. 80104f0: f000 fdd6 bl 80110a0 <TIM_ITRx_SetConfig>
  37832. break;
  37833. 80104f4: e01c b.n 8010530 <HAL_TIM_ConfigClockSource+0x1c4>
  37834. /* Check TI1 input conditioning related parameters */
  37835. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37836. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37837. TIM_TI1_ConfigInputStage(htim->Instance,
  37838. 80104f6: 687b ldr r3, [r7, #4]
  37839. 80104f8: 6818 ldr r0, [r3, #0]
  37840. sClockSourceConfig->ClockPolarity,
  37841. 80104fa: 683b ldr r3, [r7, #0]
  37842. 80104fc: 6859 ldr r1, [r3, #4]
  37843. sClockSourceConfig->ClockFilter);
  37844. 80104fe: 683b ldr r3, [r7, #0]
  37845. 8010500: 68db ldr r3, [r3, #12]
  37846. TIM_TI1_ConfigInputStage(htim->Instance,
  37847. 8010502: 461a mov r2, r3
  37848. 8010504: f000 fcb6 bl 8010e74 <TIM_TI1_ConfigInputStage>
  37849. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  37850. 8010508: 687b ldr r3, [r7, #4]
  37851. 801050a: 681b ldr r3, [r3, #0]
  37852. 801050c: 2140 movs r1, #64 @ 0x40
  37853. 801050e: 4618 mov r0, r3
  37854. 8010510: f000 fdc6 bl 80110a0 <TIM_ITRx_SetConfig>
  37855. break;
  37856. 8010514: e00c b.n 8010530 <HAL_TIM_ConfigClockSource+0x1c4>
  37857. case TIM_CLOCKSOURCE_ITR8:
  37858. {
  37859. /* Check whether or not the timer instance supports internal trigger input */
  37860. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  37861. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  37862. 8010516: 687b ldr r3, [r7, #4]
  37863. 8010518: 681a ldr r2, [r3, #0]
  37864. 801051a: 683b ldr r3, [r7, #0]
  37865. 801051c: 681b ldr r3, [r3, #0]
  37866. 801051e: 4619 mov r1, r3
  37867. 8010520: 4610 mov r0, r2
  37868. 8010522: f000 fdbd bl 80110a0 <TIM_ITRx_SetConfig>
  37869. break;
  37870. 8010526: e003 b.n 8010530 <HAL_TIM_ConfigClockSource+0x1c4>
  37871. }
  37872. default:
  37873. status = HAL_ERROR;
  37874. 8010528: 2301 movs r3, #1
  37875. 801052a: 73fb strb r3, [r7, #15]
  37876. break;
  37877. 801052c: e000 b.n 8010530 <HAL_TIM_ConfigClockSource+0x1c4>
  37878. break;
  37879. 801052e: bf00 nop
  37880. }
  37881. htim->State = HAL_TIM_STATE_READY;
  37882. 8010530: 687b ldr r3, [r7, #4]
  37883. 8010532: 2201 movs r2, #1
  37884. 8010534: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37885. __HAL_UNLOCK(htim);
  37886. 8010538: 687b ldr r3, [r7, #4]
  37887. 801053a: 2200 movs r2, #0
  37888. 801053c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37889. return status;
  37890. 8010540: 7bfb ldrb r3, [r7, #15]
  37891. }
  37892. 8010542: 4618 mov r0, r3
  37893. 8010544: 3710 adds r7, #16
  37894. 8010546: 46bd mov sp, r7
  37895. 8010548: bd80 pop {r7, pc}
  37896. 801054a: bf00 nop
  37897. 801054c: ffceff88 .word 0xffceff88
  37898. 8010550: 00100040 .word 0x00100040
  37899. 8010554: 00100030 .word 0x00100030
  37900. 8010558: 00100020 .word 0x00100020
  37901. 0801055c <HAL_TIM_ReadCapturedValue>:
  37902. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37903. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37904. * @retval Captured value
  37905. */
  37906. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  37907. {
  37908. 801055c: b480 push {r7}
  37909. 801055e: b085 sub sp, #20
  37910. 8010560: af00 add r7, sp, #0
  37911. 8010562: 6078 str r0, [r7, #4]
  37912. 8010564: 6039 str r1, [r7, #0]
  37913. uint32_t tmpreg = 0U;
  37914. 8010566: 2300 movs r3, #0
  37915. 8010568: 60fb str r3, [r7, #12]
  37916. switch (Channel)
  37917. 801056a: 683b ldr r3, [r7, #0]
  37918. 801056c: 2b0c cmp r3, #12
  37919. 801056e: d831 bhi.n 80105d4 <HAL_TIM_ReadCapturedValue+0x78>
  37920. 8010570: a201 add r2, pc, #4 @ (adr r2, 8010578 <HAL_TIM_ReadCapturedValue+0x1c>)
  37921. 8010572: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37922. 8010576: bf00 nop
  37923. 8010578: 080105ad .word 0x080105ad
  37924. 801057c: 080105d5 .word 0x080105d5
  37925. 8010580: 080105d5 .word 0x080105d5
  37926. 8010584: 080105d5 .word 0x080105d5
  37927. 8010588: 080105b7 .word 0x080105b7
  37928. 801058c: 080105d5 .word 0x080105d5
  37929. 8010590: 080105d5 .word 0x080105d5
  37930. 8010594: 080105d5 .word 0x080105d5
  37931. 8010598: 080105c1 .word 0x080105c1
  37932. 801059c: 080105d5 .word 0x080105d5
  37933. 80105a0: 080105d5 .word 0x080105d5
  37934. 80105a4: 080105d5 .word 0x080105d5
  37935. 80105a8: 080105cb .word 0x080105cb
  37936. {
  37937. /* Check the parameters */
  37938. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37939. /* Return the capture 1 value */
  37940. tmpreg = htim->Instance->CCR1;
  37941. 80105ac: 687b ldr r3, [r7, #4]
  37942. 80105ae: 681b ldr r3, [r3, #0]
  37943. 80105b0: 6b5b ldr r3, [r3, #52] @ 0x34
  37944. 80105b2: 60fb str r3, [r7, #12]
  37945. break;
  37946. 80105b4: e00f b.n 80105d6 <HAL_TIM_ReadCapturedValue+0x7a>
  37947. {
  37948. /* Check the parameters */
  37949. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37950. /* Return the capture 2 value */
  37951. tmpreg = htim->Instance->CCR2;
  37952. 80105b6: 687b ldr r3, [r7, #4]
  37953. 80105b8: 681b ldr r3, [r3, #0]
  37954. 80105ba: 6b9b ldr r3, [r3, #56] @ 0x38
  37955. 80105bc: 60fb str r3, [r7, #12]
  37956. break;
  37957. 80105be: e00a b.n 80105d6 <HAL_TIM_ReadCapturedValue+0x7a>
  37958. {
  37959. /* Check the parameters */
  37960. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37961. /* Return the capture 3 value */
  37962. tmpreg = htim->Instance->CCR3;
  37963. 80105c0: 687b ldr r3, [r7, #4]
  37964. 80105c2: 681b ldr r3, [r3, #0]
  37965. 80105c4: 6bdb ldr r3, [r3, #60] @ 0x3c
  37966. 80105c6: 60fb str r3, [r7, #12]
  37967. break;
  37968. 80105c8: e005 b.n 80105d6 <HAL_TIM_ReadCapturedValue+0x7a>
  37969. {
  37970. /* Check the parameters */
  37971. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37972. /* Return the capture 4 value */
  37973. tmpreg = htim->Instance->CCR4;
  37974. 80105ca: 687b ldr r3, [r7, #4]
  37975. 80105cc: 681b ldr r3, [r3, #0]
  37976. 80105ce: 6c1b ldr r3, [r3, #64] @ 0x40
  37977. 80105d0: 60fb str r3, [r7, #12]
  37978. break;
  37979. 80105d2: e000 b.n 80105d6 <HAL_TIM_ReadCapturedValue+0x7a>
  37980. }
  37981. default:
  37982. break;
  37983. 80105d4: bf00 nop
  37984. }
  37985. return tmpreg;
  37986. 80105d6: 68fb ldr r3, [r7, #12]
  37987. }
  37988. 80105d8: 4618 mov r0, r3
  37989. 80105da: 3714 adds r7, #20
  37990. 80105dc: 46bd mov sp, r7
  37991. 80105de: f85d 7b04 ldr.w r7, [sp], #4
  37992. 80105e2: 4770 bx lr
  37993. 080105e4 <HAL_TIM_OC_DelayElapsedCallback>:
  37994. * @brief Output Compare callback in non-blocking mode
  37995. * @param htim TIM OC handle
  37996. * @retval None
  37997. */
  37998. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  37999. {
  38000. 80105e4: b480 push {r7}
  38001. 80105e6: b083 sub sp, #12
  38002. 80105e8: af00 add r7, sp, #0
  38003. 80105ea: 6078 str r0, [r7, #4]
  38004. UNUSED(htim);
  38005. /* NOTE : This function should not be modified, when the callback is needed,
  38006. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  38007. */
  38008. }
  38009. 80105ec: bf00 nop
  38010. 80105ee: 370c adds r7, #12
  38011. 80105f0: 46bd mov sp, r7
  38012. 80105f2: f85d 7b04 ldr.w r7, [sp], #4
  38013. 80105f6: 4770 bx lr
  38014. 080105f8 <HAL_TIM_PWM_PulseFinishedCallback>:
  38015. * @brief PWM Pulse finished callback in non-blocking mode
  38016. * @param htim TIM handle
  38017. * @retval None
  38018. */
  38019. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  38020. {
  38021. 80105f8: b480 push {r7}
  38022. 80105fa: b083 sub sp, #12
  38023. 80105fc: af00 add r7, sp, #0
  38024. 80105fe: 6078 str r0, [r7, #4]
  38025. UNUSED(htim);
  38026. /* NOTE : This function should not be modified, when the callback is needed,
  38027. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  38028. */
  38029. }
  38030. 8010600: bf00 nop
  38031. 8010602: 370c adds r7, #12
  38032. 8010604: 46bd mov sp, r7
  38033. 8010606: f85d 7b04 ldr.w r7, [sp], #4
  38034. 801060a: 4770 bx lr
  38035. 0801060c <HAL_TIM_TriggerCallback>:
  38036. * @brief Hall Trigger detection callback in non-blocking mode
  38037. * @param htim TIM handle
  38038. * @retval None
  38039. */
  38040. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  38041. {
  38042. 801060c: b480 push {r7}
  38043. 801060e: b083 sub sp, #12
  38044. 8010610: af00 add r7, sp, #0
  38045. 8010612: 6078 str r0, [r7, #4]
  38046. UNUSED(htim);
  38047. /* NOTE : This function should not be modified, when the callback is needed,
  38048. the HAL_TIM_TriggerCallback could be implemented in the user file
  38049. */
  38050. }
  38051. 8010614: bf00 nop
  38052. 8010616: 370c adds r7, #12
  38053. 8010618: 46bd mov sp, r7
  38054. 801061a: f85d 7b04 ldr.w r7, [sp], #4
  38055. 801061e: 4770 bx lr
  38056. 08010620 <HAL_TIM_GetChannelState>:
  38057. * @arg TIM_CHANNEL_5: TIM Channel 5
  38058. * @arg TIM_CHANNEL_6: TIM Channel 6
  38059. * @retval TIM Channel state
  38060. */
  38061. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  38062. {
  38063. 8010620: b480 push {r7}
  38064. 8010622: b085 sub sp, #20
  38065. 8010624: af00 add r7, sp, #0
  38066. 8010626: 6078 str r0, [r7, #4]
  38067. 8010628: 6039 str r1, [r7, #0]
  38068. HAL_TIM_ChannelStateTypeDef channel_state;
  38069. /* Check the parameters */
  38070. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  38071. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  38072. 801062a: 683b ldr r3, [r7, #0]
  38073. 801062c: 2b00 cmp r3, #0
  38074. 801062e: d104 bne.n 801063a <HAL_TIM_GetChannelState+0x1a>
  38075. 8010630: 687b ldr r3, [r7, #4]
  38076. 8010632: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  38077. 8010636: b2db uxtb r3, r3
  38078. 8010638: e023 b.n 8010682 <HAL_TIM_GetChannelState+0x62>
  38079. 801063a: 683b ldr r3, [r7, #0]
  38080. 801063c: 2b04 cmp r3, #4
  38081. 801063e: d104 bne.n 801064a <HAL_TIM_GetChannelState+0x2a>
  38082. 8010640: 687b ldr r3, [r7, #4]
  38083. 8010642: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  38084. 8010646: b2db uxtb r3, r3
  38085. 8010648: e01b b.n 8010682 <HAL_TIM_GetChannelState+0x62>
  38086. 801064a: 683b ldr r3, [r7, #0]
  38087. 801064c: 2b08 cmp r3, #8
  38088. 801064e: d104 bne.n 801065a <HAL_TIM_GetChannelState+0x3a>
  38089. 8010650: 687b ldr r3, [r7, #4]
  38090. 8010652: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  38091. 8010656: b2db uxtb r3, r3
  38092. 8010658: e013 b.n 8010682 <HAL_TIM_GetChannelState+0x62>
  38093. 801065a: 683b ldr r3, [r7, #0]
  38094. 801065c: 2b0c cmp r3, #12
  38095. 801065e: d104 bne.n 801066a <HAL_TIM_GetChannelState+0x4a>
  38096. 8010660: 687b ldr r3, [r7, #4]
  38097. 8010662: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  38098. 8010666: b2db uxtb r3, r3
  38099. 8010668: e00b b.n 8010682 <HAL_TIM_GetChannelState+0x62>
  38100. 801066a: 683b ldr r3, [r7, #0]
  38101. 801066c: 2b10 cmp r3, #16
  38102. 801066e: d104 bne.n 801067a <HAL_TIM_GetChannelState+0x5a>
  38103. 8010670: 687b ldr r3, [r7, #4]
  38104. 8010672: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  38105. 8010676: b2db uxtb r3, r3
  38106. 8010678: e003 b.n 8010682 <HAL_TIM_GetChannelState+0x62>
  38107. 801067a: 687b ldr r3, [r7, #4]
  38108. 801067c: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  38109. 8010680: b2db uxtb r3, r3
  38110. 8010682: 73fb strb r3, [r7, #15]
  38111. return channel_state;
  38112. 8010684: 7bfb ldrb r3, [r7, #15]
  38113. }
  38114. 8010686: 4618 mov r0, r3
  38115. 8010688: 3714 adds r7, #20
  38116. 801068a: 46bd mov sp, r7
  38117. 801068c: f85d 7b04 ldr.w r7, [sp], #4
  38118. 8010690: 4770 bx lr
  38119. ...
  38120. 08010694 <TIM_Base_SetConfig>:
  38121. * @param TIMx TIM peripheral
  38122. * @param Structure TIM Base configuration structure
  38123. * @retval None
  38124. */
  38125. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  38126. {
  38127. 8010694: b480 push {r7}
  38128. 8010696: b085 sub sp, #20
  38129. 8010698: af00 add r7, sp, #0
  38130. 801069a: 6078 str r0, [r7, #4]
  38131. 801069c: 6039 str r1, [r7, #0]
  38132. uint32_t tmpcr1;
  38133. tmpcr1 = TIMx->CR1;
  38134. 801069e: 687b ldr r3, [r7, #4]
  38135. 80106a0: 681b ldr r3, [r3, #0]
  38136. 80106a2: 60fb str r3, [r7, #12]
  38137. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  38138. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  38139. 80106a4: 687b ldr r3, [r7, #4]
  38140. 80106a6: 4a46 ldr r2, [pc, #280] @ (80107c0 <TIM_Base_SetConfig+0x12c>)
  38141. 80106a8: 4293 cmp r3, r2
  38142. 80106aa: d013 beq.n 80106d4 <TIM_Base_SetConfig+0x40>
  38143. 80106ac: 687b ldr r3, [r7, #4]
  38144. 80106ae: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38145. 80106b2: d00f beq.n 80106d4 <TIM_Base_SetConfig+0x40>
  38146. 80106b4: 687b ldr r3, [r7, #4]
  38147. 80106b6: 4a43 ldr r2, [pc, #268] @ (80107c4 <TIM_Base_SetConfig+0x130>)
  38148. 80106b8: 4293 cmp r3, r2
  38149. 80106ba: d00b beq.n 80106d4 <TIM_Base_SetConfig+0x40>
  38150. 80106bc: 687b ldr r3, [r7, #4]
  38151. 80106be: 4a42 ldr r2, [pc, #264] @ (80107c8 <TIM_Base_SetConfig+0x134>)
  38152. 80106c0: 4293 cmp r3, r2
  38153. 80106c2: d007 beq.n 80106d4 <TIM_Base_SetConfig+0x40>
  38154. 80106c4: 687b ldr r3, [r7, #4]
  38155. 80106c6: 4a41 ldr r2, [pc, #260] @ (80107cc <TIM_Base_SetConfig+0x138>)
  38156. 80106c8: 4293 cmp r3, r2
  38157. 80106ca: d003 beq.n 80106d4 <TIM_Base_SetConfig+0x40>
  38158. 80106cc: 687b ldr r3, [r7, #4]
  38159. 80106ce: 4a40 ldr r2, [pc, #256] @ (80107d0 <TIM_Base_SetConfig+0x13c>)
  38160. 80106d0: 4293 cmp r3, r2
  38161. 80106d2: d108 bne.n 80106e6 <TIM_Base_SetConfig+0x52>
  38162. {
  38163. /* Select the Counter Mode */
  38164. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  38165. 80106d4: 68fb ldr r3, [r7, #12]
  38166. 80106d6: f023 0370 bic.w r3, r3, #112 @ 0x70
  38167. 80106da: 60fb str r3, [r7, #12]
  38168. tmpcr1 |= Structure->CounterMode;
  38169. 80106dc: 683b ldr r3, [r7, #0]
  38170. 80106de: 685b ldr r3, [r3, #4]
  38171. 80106e0: 68fa ldr r2, [r7, #12]
  38172. 80106e2: 4313 orrs r3, r2
  38173. 80106e4: 60fb str r3, [r7, #12]
  38174. }
  38175. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  38176. 80106e6: 687b ldr r3, [r7, #4]
  38177. 80106e8: 4a35 ldr r2, [pc, #212] @ (80107c0 <TIM_Base_SetConfig+0x12c>)
  38178. 80106ea: 4293 cmp r3, r2
  38179. 80106ec: d01f beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38180. 80106ee: 687b ldr r3, [r7, #4]
  38181. 80106f0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38182. 80106f4: d01b beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38183. 80106f6: 687b ldr r3, [r7, #4]
  38184. 80106f8: 4a32 ldr r2, [pc, #200] @ (80107c4 <TIM_Base_SetConfig+0x130>)
  38185. 80106fa: 4293 cmp r3, r2
  38186. 80106fc: d017 beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38187. 80106fe: 687b ldr r3, [r7, #4]
  38188. 8010700: 4a31 ldr r2, [pc, #196] @ (80107c8 <TIM_Base_SetConfig+0x134>)
  38189. 8010702: 4293 cmp r3, r2
  38190. 8010704: d013 beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38191. 8010706: 687b ldr r3, [r7, #4]
  38192. 8010708: 4a30 ldr r2, [pc, #192] @ (80107cc <TIM_Base_SetConfig+0x138>)
  38193. 801070a: 4293 cmp r3, r2
  38194. 801070c: d00f beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38195. 801070e: 687b ldr r3, [r7, #4]
  38196. 8010710: 4a2f ldr r2, [pc, #188] @ (80107d0 <TIM_Base_SetConfig+0x13c>)
  38197. 8010712: 4293 cmp r3, r2
  38198. 8010714: d00b beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38199. 8010716: 687b ldr r3, [r7, #4]
  38200. 8010718: 4a2e ldr r2, [pc, #184] @ (80107d4 <TIM_Base_SetConfig+0x140>)
  38201. 801071a: 4293 cmp r3, r2
  38202. 801071c: d007 beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38203. 801071e: 687b ldr r3, [r7, #4]
  38204. 8010720: 4a2d ldr r2, [pc, #180] @ (80107d8 <TIM_Base_SetConfig+0x144>)
  38205. 8010722: 4293 cmp r3, r2
  38206. 8010724: d003 beq.n 801072e <TIM_Base_SetConfig+0x9a>
  38207. 8010726: 687b ldr r3, [r7, #4]
  38208. 8010728: 4a2c ldr r2, [pc, #176] @ (80107dc <TIM_Base_SetConfig+0x148>)
  38209. 801072a: 4293 cmp r3, r2
  38210. 801072c: d108 bne.n 8010740 <TIM_Base_SetConfig+0xac>
  38211. {
  38212. /* Set the clock division */
  38213. tmpcr1 &= ~TIM_CR1_CKD;
  38214. 801072e: 68fb ldr r3, [r7, #12]
  38215. 8010730: f423 7340 bic.w r3, r3, #768 @ 0x300
  38216. 8010734: 60fb str r3, [r7, #12]
  38217. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  38218. 8010736: 683b ldr r3, [r7, #0]
  38219. 8010738: 68db ldr r3, [r3, #12]
  38220. 801073a: 68fa ldr r2, [r7, #12]
  38221. 801073c: 4313 orrs r3, r2
  38222. 801073e: 60fb str r3, [r7, #12]
  38223. }
  38224. /* Set the auto-reload preload */
  38225. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  38226. 8010740: 68fb ldr r3, [r7, #12]
  38227. 8010742: f023 0280 bic.w r2, r3, #128 @ 0x80
  38228. 8010746: 683b ldr r3, [r7, #0]
  38229. 8010748: 695b ldr r3, [r3, #20]
  38230. 801074a: 4313 orrs r3, r2
  38231. 801074c: 60fb str r3, [r7, #12]
  38232. TIMx->CR1 = tmpcr1;
  38233. 801074e: 687b ldr r3, [r7, #4]
  38234. 8010750: 68fa ldr r2, [r7, #12]
  38235. 8010752: 601a str r2, [r3, #0]
  38236. /* Set the Autoreload value */
  38237. TIMx->ARR = (uint32_t)Structure->Period ;
  38238. 8010754: 683b ldr r3, [r7, #0]
  38239. 8010756: 689a ldr r2, [r3, #8]
  38240. 8010758: 687b ldr r3, [r7, #4]
  38241. 801075a: 62da str r2, [r3, #44] @ 0x2c
  38242. /* Set the Prescaler value */
  38243. TIMx->PSC = Structure->Prescaler;
  38244. 801075c: 683b ldr r3, [r7, #0]
  38245. 801075e: 681a ldr r2, [r3, #0]
  38246. 8010760: 687b ldr r3, [r7, #4]
  38247. 8010762: 629a str r2, [r3, #40] @ 0x28
  38248. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  38249. 8010764: 687b ldr r3, [r7, #4]
  38250. 8010766: 4a16 ldr r2, [pc, #88] @ (80107c0 <TIM_Base_SetConfig+0x12c>)
  38251. 8010768: 4293 cmp r3, r2
  38252. 801076a: d00f beq.n 801078c <TIM_Base_SetConfig+0xf8>
  38253. 801076c: 687b ldr r3, [r7, #4]
  38254. 801076e: 4a18 ldr r2, [pc, #96] @ (80107d0 <TIM_Base_SetConfig+0x13c>)
  38255. 8010770: 4293 cmp r3, r2
  38256. 8010772: d00b beq.n 801078c <TIM_Base_SetConfig+0xf8>
  38257. 8010774: 687b ldr r3, [r7, #4]
  38258. 8010776: 4a17 ldr r2, [pc, #92] @ (80107d4 <TIM_Base_SetConfig+0x140>)
  38259. 8010778: 4293 cmp r3, r2
  38260. 801077a: d007 beq.n 801078c <TIM_Base_SetConfig+0xf8>
  38261. 801077c: 687b ldr r3, [r7, #4]
  38262. 801077e: 4a16 ldr r2, [pc, #88] @ (80107d8 <TIM_Base_SetConfig+0x144>)
  38263. 8010780: 4293 cmp r3, r2
  38264. 8010782: d003 beq.n 801078c <TIM_Base_SetConfig+0xf8>
  38265. 8010784: 687b ldr r3, [r7, #4]
  38266. 8010786: 4a15 ldr r2, [pc, #84] @ (80107dc <TIM_Base_SetConfig+0x148>)
  38267. 8010788: 4293 cmp r3, r2
  38268. 801078a: d103 bne.n 8010794 <TIM_Base_SetConfig+0x100>
  38269. {
  38270. /* Set the Repetition Counter value */
  38271. TIMx->RCR = Structure->RepetitionCounter;
  38272. 801078c: 683b ldr r3, [r7, #0]
  38273. 801078e: 691a ldr r2, [r3, #16]
  38274. 8010790: 687b ldr r3, [r7, #4]
  38275. 8010792: 631a str r2, [r3, #48] @ 0x30
  38276. }
  38277. /* Generate an update event to reload the Prescaler
  38278. and the repetition counter (only for advanced timer) value immediately */
  38279. TIMx->EGR = TIM_EGR_UG;
  38280. 8010794: 687b ldr r3, [r7, #4]
  38281. 8010796: 2201 movs r2, #1
  38282. 8010798: 615a str r2, [r3, #20]
  38283. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  38284. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  38285. 801079a: 687b ldr r3, [r7, #4]
  38286. 801079c: 691b ldr r3, [r3, #16]
  38287. 801079e: f003 0301 and.w r3, r3, #1
  38288. 80107a2: 2b01 cmp r3, #1
  38289. 80107a4: d105 bne.n 80107b2 <TIM_Base_SetConfig+0x11e>
  38290. {
  38291. /* Clear the update flag */
  38292. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  38293. 80107a6: 687b ldr r3, [r7, #4]
  38294. 80107a8: 691b ldr r3, [r3, #16]
  38295. 80107aa: f023 0201 bic.w r2, r3, #1
  38296. 80107ae: 687b ldr r3, [r7, #4]
  38297. 80107b0: 611a str r2, [r3, #16]
  38298. }
  38299. }
  38300. 80107b2: bf00 nop
  38301. 80107b4: 3714 adds r7, #20
  38302. 80107b6: 46bd mov sp, r7
  38303. 80107b8: f85d 7b04 ldr.w r7, [sp], #4
  38304. 80107bc: 4770 bx lr
  38305. 80107be: bf00 nop
  38306. 80107c0: 40010000 .word 0x40010000
  38307. 80107c4: 40000400 .word 0x40000400
  38308. 80107c8: 40000800 .word 0x40000800
  38309. 80107cc: 40000c00 .word 0x40000c00
  38310. 80107d0: 40010400 .word 0x40010400
  38311. 80107d4: 40014000 .word 0x40014000
  38312. 80107d8: 40014400 .word 0x40014400
  38313. 80107dc: 40014800 .word 0x40014800
  38314. 080107e0 <TIM_OC1_SetConfig>:
  38315. * @param TIMx to select the TIM peripheral
  38316. * @param OC_Config The output configuration structure
  38317. * @retval None
  38318. */
  38319. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38320. {
  38321. 80107e0: b480 push {r7}
  38322. 80107e2: b087 sub sp, #28
  38323. 80107e4: af00 add r7, sp, #0
  38324. 80107e6: 6078 str r0, [r7, #4]
  38325. 80107e8: 6039 str r1, [r7, #0]
  38326. uint32_t tmpccmrx;
  38327. uint32_t tmpccer;
  38328. uint32_t tmpcr2;
  38329. /* Get the TIMx CCER register value */
  38330. tmpccer = TIMx->CCER;
  38331. 80107ea: 687b ldr r3, [r7, #4]
  38332. 80107ec: 6a1b ldr r3, [r3, #32]
  38333. 80107ee: 617b str r3, [r7, #20]
  38334. /* Disable the Channel 1: Reset the CC1E Bit */
  38335. TIMx->CCER &= ~TIM_CCER_CC1E;
  38336. 80107f0: 687b ldr r3, [r7, #4]
  38337. 80107f2: 6a1b ldr r3, [r3, #32]
  38338. 80107f4: f023 0201 bic.w r2, r3, #1
  38339. 80107f8: 687b ldr r3, [r7, #4]
  38340. 80107fa: 621a str r2, [r3, #32]
  38341. /* Get the TIMx CR2 register value */
  38342. tmpcr2 = TIMx->CR2;
  38343. 80107fc: 687b ldr r3, [r7, #4]
  38344. 80107fe: 685b ldr r3, [r3, #4]
  38345. 8010800: 613b str r3, [r7, #16]
  38346. /* Get the TIMx CCMR1 register value */
  38347. tmpccmrx = TIMx->CCMR1;
  38348. 8010802: 687b ldr r3, [r7, #4]
  38349. 8010804: 699b ldr r3, [r3, #24]
  38350. 8010806: 60fb str r3, [r7, #12]
  38351. /* Reset the Output Compare Mode Bits */
  38352. tmpccmrx &= ~TIM_CCMR1_OC1M;
  38353. 8010808: 68fa ldr r2, [r7, #12]
  38354. 801080a: 4b37 ldr r3, [pc, #220] @ (80108e8 <TIM_OC1_SetConfig+0x108>)
  38355. 801080c: 4013 ands r3, r2
  38356. 801080e: 60fb str r3, [r7, #12]
  38357. tmpccmrx &= ~TIM_CCMR1_CC1S;
  38358. 8010810: 68fb ldr r3, [r7, #12]
  38359. 8010812: f023 0303 bic.w r3, r3, #3
  38360. 8010816: 60fb str r3, [r7, #12]
  38361. /* Select the Output Compare Mode */
  38362. tmpccmrx |= OC_Config->OCMode;
  38363. 8010818: 683b ldr r3, [r7, #0]
  38364. 801081a: 681b ldr r3, [r3, #0]
  38365. 801081c: 68fa ldr r2, [r7, #12]
  38366. 801081e: 4313 orrs r3, r2
  38367. 8010820: 60fb str r3, [r7, #12]
  38368. /* Reset the Output Polarity level */
  38369. tmpccer &= ~TIM_CCER_CC1P;
  38370. 8010822: 697b ldr r3, [r7, #20]
  38371. 8010824: f023 0302 bic.w r3, r3, #2
  38372. 8010828: 617b str r3, [r7, #20]
  38373. /* Set the Output Compare Polarity */
  38374. tmpccer |= OC_Config->OCPolarity;
  38375. 801082a: 683b ldr r3, [r7, #0]
  38376. 801082c: 689b ldr r3, [r3, #8]
  38377. 801082e: 697a ldr r2, [r7, #20]
  38378. 8010830: 4313 orrs r3, r2
  38379. 8010832: 617b str r3, [r7, #20]
  38380. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  38381. 8010834: 687b ldr r3, [r7, #4]
  38382. 8010836: 4a2d ldr r2, [pc, #180] @ (80108ec <TIM_OC1_SetConfig+0x10c>)
  38383. 8010838: 4293 cmp r3, r2
  38384. 801083a: d00f beq.n 801085c <TIM_OC1_SetConfig+0x7c>
  38385. 801083c: 687b ldr r3, [r7, #4]
  38386. 801083e: 4a2c ldr r2, [pc, #176] @ (80108f0 <TIM_OC1_SetConfig+0x110>)
  38387. 8010840: 4293 cmp r3, r2
  38388. 8010842: d00b beq.n 801085c <TIM_OC1_SetConfig+0x7c>
  38389. 8010844: 687b ldr r3, [r7, #4]
  38390. 8010846: 4a2b ldr r2, [pc, #172] @ (80108f4 <TIM_OC1_SetConfig+0x114>)
  38391. 8010848: 4293 cmp r3, r2
  38392. 801084a: d007 beq.n 801085c <TIM_OC1_SetConfig+0x7c>
  38393. 801084c: 687b ldr r3, [r7, #4]
  38394. 801084e: 4a2a ldr r2, [pc, #168] @ (80108f8 <TIM_OC1_SetConfig+0x118>)
  38395. 8010850: 4293 cmp r3, r2
  38396. 8010852: d003 beq.n 801085c <TIM_OC1_SetConfig+0x7c>
  38397. 8010854: 687b ldr r3, [r7, #4]
  38398. 8010856: 4a29 ldr r2, [pc, #164] @ (80108fc <TIM_OC1_SetConfig+0x11c>)
  38399. 8010858: 4293 cmp r3, r2
  38400. 801085a: d10c bne.n 8010876 <TIM_OC1_SetConfig+0x96>
  38401. {
  38402. /* Check parameters */
  38403. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38404. /* Reset the Output N Polarity level */
  38405. tmpccer &= ~TIM_CCER_CC1NP;
  38406. 801085c: 697b ldr r3, [r7, #20]
  38407. 801085e: f023 0308 bic.w r3, r3, #8
  38408. 8010862: 617b str r3, [r7, #20]
  38409. /* Set the Output N Polarity */
  38410. tmpccer |= OC_Config->OCNPolarity;
  38411. 8010864: 683b ldr r3, [r7, #0]
  38412. 8010866: 68db ldr r3, [r3, #12]
  38413. 8010868: 697a ldr r2, [r7, #20]
  38414. 801086a: 4313 orrs r3, r2
  38415. 801086c: 617b str r3, [r7, #20]
  38416. /* Reset the Output N State */
  38417. tmpccer &= ~TIM_CCER_CC1NE;
  38418. 801086e: 697b ldr r3, [r7, #20]
  38419. 8010870: f023 0304 bic.w r3, r3, #4
  38420. 8010874: 617b str r3, [r7, #20]
  38421. }
  38422. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38423. 8010876: 687b ldr r3, [r7, #4]
  38424. 8010878: 4a1c ldr r2, [pc, #112] @ (80108ec <TIM_OC1_SetConfig+0x10c>)
  38425. 801087a: 4293 cmp r3, r2
  38426. 801087c: d00f beq.n 801089e <TIM_OC1_SetConfig+0xbe>
  38427. 801087e: 687b ldr r3, [r7, #4]
  38428. 8010880: 4a1b ldr r2, [pc, #108] @ (80108f0 <TIM_OC1_SetConfig+0x110>)
  38429. 8010882: 4293 cmp r3, r2
  38430. 8010884: d00b beq.n 801089e <TIM_OC1_SetConfig+0xbe>
  38431. 8010886: 687b ldr r3, [r7, #4]
  38432. 8010888: 4a1a ldr r2, [pc, #104] @ (80108f4 <TIM_OC1_SetConfig+0x114>)
  38433. 801088a: 4293 cmp r3, r2
  38434. 801088c: d007 beq.n 801089e <TIM_OC1_SetConfig+0xbe>
  38435. 801088e: 687b ldr r3, [r7, #4]
  38436. 8010890: 4a19 ldr r2, [pc, #100] @ (80108f8 <TIM_OC1_SetConfig+0x118>)
  38437. 8010892: 4293 cmp r3, r2
  38438. 8010894: d003 beq.n 801089e <TIM_OC1_SetConfig+0xbe>
  38439. 8010896: 687b ldr r3, [r7, #4]
  38440. 8010898: 4a18 ldr r2, [pc, #96] @ (80108fc <TIM_OC1_SetConfig+0x11c>)
  38441. 801089a: 4293 cmp r3, r2
  38442. 801089c: d111 bne.n 80108c2 <TIM_OC1_SetConfig+0xe2>
  38443. /* Check parameters */
  38444. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38445. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38446. /* Reset the Output Compare and Output Compare N IDLE State */
  38447. tmpcr2 &= ~TIM_CR2_OIS1;
  38448. 801089e: 693b ldr r3, [r7, #16]
  38449. 80108a0: f423 7380 bic.w r3, r3, #256 @ 0x100
  38450. 80108a4: 613b str r3, [r7, #16]
  38451. tmpcr2 &= ~TIM_CR2_OIS1N;
  38452. 80108a6: 693b ldr r3, [r7, #16]
  38453. 80108a8: f423 7300 bic.w r3, r3, #512 @ 0x200
  38454. 80108ac: 613b str r3, [r7, #16]
  38455. /* Set the Output Idle state */
  38456. tmpcr2 |= OC_Config->OCIdleState;
  38457. 80108ae: 683b ldr r3, [r7, #0]
  38458. 80108b0: 695b ldr r3, [r3, #20]
  38459. 80108b2: 693a ldr r2, [r7, #16]
  38460. 80108b4: 4313 orrs r3, r2
  38461. 80108b6: 613b str r3, [r7, #16]
  38462. /* Set the Output N Idle state */
  38463. tmpcr2 |= OC_Config->OCNIdleState;
  38464. 80108b8: 683b ldr r3, [r7, #0]
  38465. 80108ba: 699b ldr r3, [r3, #24]
  38466. 80108bc: 693a ldr r2, [r7, #16]
  38467. 80108be: 4313 orrs r3, r2
  38468. 80108c0: 613b str r3, [r7, #16]
  38469. }
  38470. /* Write to TIMx CR2 */
  38471. TIMx->CR2 = tmpcr2;
  38472. 80108c2: 687b ldr r3, [r7, #4]
  38473. 80108c4: 693a ldr r2, [r7, #16]
  38474. 80108c6: 605a str r2, [r3, #4]
  38475. /* Write to TIMx CCMR1 */
  38476. TIMx->CCMR1 = tmpccmrx;
  38477. 80108c8: 687b ldr r3, [r7, #4]
  38478. 80108ca: 68fa ldr r2, [r7, #12]
  38479. 80108cc: 619a str r2, [r3, #24]
  38480. /* Set the Capture Compare Register value */
  38481. TIMx->CCR1 = OC_Config->Pulse;
  38482. 80108ce: 683b ldr r3, [r7, #0]
  38483. 80108d0: 685a ldr r2, [r3, #4]
  38484. 80108d2: 687b ldr r3, [r7, #4]
  38485. 80108d4: 635a str r2, [r3, #52] @ 0x34
  38486. /* Write to TIMx CCER */
  38487. TIMx->CCER = tmpccer;
  38488. 80108d6: 687b ldr r3, [r7, #4]
  38489. 80108d8: 697a ldr r2, [r7, #20]
  38490. 80108da: 621a str r2, [r3, #32]
  38491. }
  38492. 80108dc: bf00 nop
  38493. 80108de: 371c adds r7, #28
  38494. 80108e0: 46bd mov sp, r7
  38495. 80108e2: f85d 7b04 ldr.w r7, [sp], #4
  38496. 80108e6: 4770 bx lr
  38497. 80108e8: fffeff8f .word 0xfffeff8f
  38498. 80108ec: 40010000 .word 0x40010000
  38499. 80108f0: 40010400 .word 0x40010400
  38500. 80108f4: 40014000 .word 0x40014000
  38501. 80108f8: 40014400 .word 0x40014400
  38502. 80108fc: 40014800 .word 0x40014800
  38503. 08010900 <TIM_OC2_SetConfig>:
  38504. * @param TIMx to select the TIM peripheral
  38505. * @param OC_Config The output configuration structure
  38506. * @retval None
  38507. */
  38508. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38509. {
  38510. 8010900: b480 push {r7}
  38511. 8010902: b087 sub sp, #28
  38512. 8010904: af00 add r7, sp, #0
  38513. 8010906: 6078 str r0, [r7, #4]
  38514. 8010908: 6039 str r1, [r7, #0]
  38515. uint32_t tmpccmrx;
  38516. uint32_t tmpccer;
  38517. uint32_t tmpcr2;
  38518. /* Get the TIMx CCER register value */
  38519. tmpccer = TIMx->CCER;
  38520. 801090a: 687b ldr r3, [r7, #4]
  38521. 801090c: 6a1b ldr r3, [r3, #32]
  38522. 801090e: 617b str r3, [r7, #20]
  38523. /* Disable the Channel 2: Reset the CC2E Bit */
  38524. TIMx->CCER &= ~TIM_CCER_CC2E;
  38525. 8010910: 687b ldr r3, [r7, #4]
  38526. 8010912: 6a1b ldr r3, [r3, #32]
  38527. 8010914: f023 0210 bic.w r2, r3, #16
  38528. 8010918: 687b ldr r3, [r7, #4]
  38529. 801091a: 621a str r2, [r3, #32]
  38530. /* Get the TIMx CR2 register value */
  38531. tmpcr2 = TIMx->CR2;
  38532. 801091c: 687b ldr r3, [r7, #4]
  38533. 801091e: 685b ldr r3, [r3, #4]
  38534. 8010920: 613b str r3, [r7, #16]
  38535. /* Get the TIMx CCMR1 register value */
  38536. tmpccmrx = TIMx->CCMR1;
  38537. 8010922: 687b ldr r3, [r7, #4]
  38538. 8010924: 699b ldr r3, [r3, #24]
  38539. 8010926: 60fb str r3, [r7, #12]
  38540. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38541. tmpccmrx &= ~TIM_CCMR1_OC2M;
  38542. 8010928: 68fa ldr r2, [r7, #12]
  38543. 801092a: 4b34 ldr r3, [pc, #208] @ (80109fc <TIM_OC2_SetConfig+0xfc>)
  38544. 801092c: 4013 ands r3, r2
  38545. 801092e: 60fb str r3, [r7, #12]
  38546. tmpccmrx &= ~TIM_CCMR1_CC2S;
  38547. 8010930: 68fb ldr r3, [r7, #12]
  38548. 8010932: f423 7340 bic.w r3, r3, #768 @ 0x300
  38549. 8010936: 60fb str r3, [r7, #12]
  38550. /* Select the Output Compare Mode */
  38551. tmpccmrx |= (OC_Config->OCMode << 8U);
  38552. 8010938: 683b ldr r3, [r7, #0]
  38553. 801093a: 681b ldr r3, [r3, #0]
  38554. 801093c: 021b lsls r3, r3, #8
  38555. 801093e: 68fa ldr r2, [r7, #12]
  38556. 8010940: 4313 orrs r3, r2
  38557. 8010942: 60fb str r3, [r7, #12]
  38558. /* Reset the Output Polarity level */
  38559. tmpccer &= ~TIM_CCER_CC2P;
  38560. 8010944: 697b ldr r3, [r7, #20]
  38561. 8010946: f023 0320 bic.w r3, r3, #32
  38562. 801094a: 617b str r3, [r7, #20]
  38563. /* Set the Output Compare Polarity */
  38564. tmpccer |= (OC_Config->OCPolarity << 4U);
  38565. 801094c: 683b ldr r3, [r7, #0]
  38566. 801094e: 689b ldr r3, [r3, #8]
  38567. 8010950: 011b lsls r3, r3, #4
  38568. 8010952: 697a ldr r2, [r7, #20]
  38569. 8010954: 4313 orrs r3, r2
  38570. 8010956: 617b str r3, [r7, #20]
  38571. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  38572. 8010958: 687b ldr r3, [r7, #4]
  38573. 801095a: 4a29 ldr r2, [pc, #164] @ (8010a00 <TIM_OC2_SetConfig+0x100>)
  38574. 801095c: 4293 cmp r3, r2
  38575. 801095e: d003 beq.n 8010968 <TIM_OC2_SetConfig+0x68>
  38576. 8010960: 687b ldr r3, [r7, #4]
  38577. 8010962: 4a28 ldr r2, [pc, #160] @ (8010a04 <TIM_OC2_SetConfig+0x104>)
  38578. 8010964: 4293 cmp r3, r2
  38579. 8010966: d10d bne.n 8010984 <TIM_OC2_SetConfig+0x84>
  38580. {
  38581. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38582. /* Reset the Output N Polarity level */
  38583. tmpccer &= ~TIM_CCER_CC2NP;
  38584. 8010968: 697b ldr r3, [r7, #20]
  38585. 801096a: f023 0380 bic.w r3, r3, #128 @ 0x80
  38586. 801096e: 617b str r3, [r7, #20]
  38587. /* Set the Output N Polarity */
  38588. tmpccer |= (OC_Config->OCNPolarity << 4U);
  38589. 8010970: 683b ldr r3, [r7, #0]
  38590. 8010972: 68db ldr r3, [r3, #12]
  38591. 8010974: 011b lsls r3, r3, #4
  38592. 8010976: 697a ldr r2, [r7, #20]
  38593. 8010978: 4313 orrs r3, r2
  38594. 801097a: 617b str r3, [r7, #20]
  38595. /* Reset the Output N State */
  38596. tmpccer &= ~TIM_CCER_CC2NE;
  38597. 801097c: 697b ldr r3, [r7, #20]
  38598. 801097e: f023 0340 bic.w r3, r3, #64 @ 0x40
  38599. 8010982: 617b str r3, [r7, #20]
  38600. }
  38601. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38602. 8010984: 687b ldr r3, [r7, #4]
  38603. 8010986: 4a1e ldr r2, [pc, #120] @ (8010a00 <TIM_OC2_SetConfig+0x100>)
  38604. 8010988: 4293 cmp r3, r2
  38605. 801098a: d00f beq.n 80109ac <TIM_OC2_SetConfig+0xac>
  38606. 801098c: 687b ldr r3, [r7, #4]
  38607. 801098e: 4a1d ldr r2, [pc, #116] @ (8010a04 <TIM_OC2_SetConfig+0x104>)
  38608. 8010990: 4293 cmp r3, r2
  38609. 8010992: d00b beq.n 80109ac <TIM_OC2_SetConfig+0xac>
  38610. 8010994: 687b ldr r3, [r7, #4]
  38611. 8010996: 4a1c ldr r2, [pc, #112] @ (8010a08 <TIM_OC2_SetConfig+0x108>)
  38612. 8010998: 4293 cmp r3, r2
  38613. 801099a: d007 beq.n 80109ac <TIM_OC2_SetConfig+0xac>
  38614. 801099c: 687b ldr r3, [r7, #4]
  38615. 801099e: 4a1b ldr r2, [pc, #108] @ (8010a0c <TIM_OC2_SetConfig+0x10c>)
  38616. 80109a0: 4293 cmp r3, r2
  38617. 80109a2: d003 beq.n 80109ac <TIM_OC2_SetConfig+0xac>
  38618. 80109a4: 687b ldr r3, [r7, #4]
  38619. 80109a6: 4a1a ldr r2, [pc, #104] @ (8010a10 <TIM_OC2_SetConfig+0x110>)
  38620. 80109a8: 4293 cmp r3, r2
  38621. 80109aa: d113 bne.n 80109d4 <TIM_OC2_SetConfig+0xd4>
  38622. /* Check parameters */
  38623. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38624. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38625. /* Reset the Output Compare and Output Compare N IDLE State */
  38626. tmpcr2 &= ~TIM_CR2_OIS2;
  38627. 80109ac: 693b ldr r3, [r7, #16]
  38628. 80109ae: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38629. 80109b2: 613b str r3, [r7, #16]
  38630. tmpcr2 &= ~TIM_CR2_OIS2N;
  38631. 80109b4: 693b ldr r3, [r7, #16]
  38632. 80109b6: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38633. 80109ba: 613b str r3, [r7, #16]
  38634. /* Set the Output Idle state */
  38635. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  38636. 80109bc: 683b ldr r3, [r7, #0]
  38637. 80109be: 695b ldr r3, [r3, #20]
  38638. 80109c0: 009b lsls r3, r3, #2
  38639. 80109c2: 693a ldr r2, [r7, #16]
  38640. 80109c4: 4313 orrs r3, r2
  38641. 80109c6: 613b str r3, [r7, #16]
  38642. /* Set the Output N Idle state */
  38643. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  38644. 80109c8: 683b ldr r3, [r7, #0]
  38645. 80109ca: 699b ldr r3, [r3, #24]
  38646. 80109cc: 009b lsls r3, r3, #2
  38647. 80109ce: 693a ldr r2, [r7, #16]
  38648. 80109d0: 4313 orrs r3, r2
  38649. 80109d2: 613b str r3, [r7, #16]
  38650. }
  38651. /* Write to TIMx CR2 */
  38652. TIMx->CR2 = tmpcr2;
  38653. 80109d4: 687b ldr r3, [r7, #4]
  38654. 80109d6: 693a ldr r2, [r7, #16]
  38655. 80109d8: 605a str r2, [r3, #4]
  38656. /* Write to TIMx CCMR1 */
  38657. TIMx->CCMR1 = tmpccmrx;
  38658. 80109da: 687b ldr r3, [r7, #4]
  38659. 80109dc: 68fa ldr r2, [r7, #12]
  38660. 80109de: 619a str r2, [r3, #24]
  38661. /* Set the Capture Compare Register value */
  38662. TIMx->CCR2 = OC_Config->Pulse;
  38663. 80109e0: 683b ldr r3, [r7, #0]
  38664. 80109e2: 685a ldr r2, [r3, #4]
  38665. 80109e4: 687b ldr r3, [r7, #4]
  38666. 80109e6: 639a str r2, [r3, #56] @ 0x38
  38667. /* Write to TIMx CCER */
  38668. TIMx->CCER = tmpccer;
  38669. 80109e8: 687b ldr r3, [r7, #4]
  38670. 80109ea: 697a ldr r2, [r7, #20]
  38671. 80109ec: 621a str r2, [r3, #32]
  38672. }
  38673. 80109ee: bf00 nop
  38674. 80109f0: 371c adds r7, #28
  38675. 80109f2: 46bd mov sp, r7
  38676. 80109f4: f85d 7b04 ldr.w r7, [sp], #4
  38677. 80109f8: 4770 bx lr
  38678. 80109fa: bf00 nop
  38679. 80109fc: feff8fff .word 0xfeff8fff
  38680. 8010a00: 40010000 .word 0x40010000
  38681. 8010a04: 40010400 .word 0x40010400
  38682. 8010a08: 40014000 .word 0x40014000
  38683. 8010a0c: 40014400 .word 0x40014400
  38684. 8010a10: 40014800 .word 0x40014800
  38685. 08010a14 <TIM_OC3_SetConfig>:
  38686. * @param TIMx to select the TIM peripheral
  38687. * @param OC_Config The output configuration structure
  38688. * @retval None
  38689. */
  38690. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38691. {
  38692. 8010a14: b480 push {r7}
  38693. 8010a16: b087 sub sp, #28
  38694. 8010a18: af00 add r7, sp, #0
  38695. 8010a1a: 6078 str r0, [r7, #4]
  38696. 8010a1c: 6039 str r1, [r7, #0]
  38697. uint32_t tmpccmrx;
  38698. uint32_t tmpccer;
  38699. uint32_t tmpcr2;
  38700. /* Get the TIMx CCER register value */
  38701. tmpccer = TIMx->CCER;
  38702. 8010a1e: 687b ldr r3, [r7, #4]
  38703. 8010a20: 6a1b ldr r3, [r3, #32]
  38704. 8010a22: 617b str r3, [r7, #20]
  38705. /* Disable the Channel 3: Reset the CC2E Bit */
  38706. TIMx->CCER &= ~TIM_CCER_CC3E;
  38707. 8010a24: 687b ldr r3, [r7, #4]
  38708. 8010a26: 6a1b ldr r3, [r3, #32]
  38709. 8010a28: f423 7280 bic.w r2, r3, #256 @ 0x100
  38710. 8010a2c: 687b ldr r3, [r7, #4]
  38711. 8010a2e: 621a str r2, [r3, #32]
  38712. /* Get the TIMx CR2 register value */
  38713. tmpcr2 = TIMx->CR2;
  38714. 8010a30: 687b ldr r3, [r7, #4]
  38715. 8010a32: 685b ldr r3, [r3, #4]
  38716. 8010a34: 613b str r3, [r7, #16]
  38717. /* Get the TIMx CCMR2 register value */
  38718. tmpccmrx = TIMx->CCMR2;
  38719. 8010a36: 687b ldr r3, [r7, #4]
  38720. 8010a38: 69db ldr r3, [r3, #28]
  38721. 8010a3a: 60fb str r3, [r7, #12]
  38722. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38723. tmpccmrx &= ~TIM_CCMR2_OC3M;
  38724. 8010a3c: 68fa ldr r2, [r7, #12]
  38725. 8010a3e: 4b33 ldr r3, [pc, #204] @ (8010b0c <TIM_OC3_SetConfig+0xf8>)
  38726. 8010a40: 4013 ands r3, r2
  38727. 8010a42: 60fb str r3, [r7, #12]
  38728. tmpccmrx &= ~TIM_CCMR2_CC3S;
  38729. 8010a44: 68fb ldr r3, [r7, #12]
  38730. 8010a46: f023 0303 bic.w r3, r3, #3
  38731. 8010a4a: 60fb str r3, [r7, #12]
  38732. /* Select the Output Compare Mode */
  38733. tmpccmrx |= OC_Config->OCMode;
  38734. 8010a4c: 683b ldr r3, [r7, #0]
  38735. 8010a4e: 681b ldr r3, [r3, #0]
  38736. 8010a50: 68fa ldr r2, [r7, #12]
  38737. 8010a52: 4313 orrs r3, r2
  38738. 8010a54: 60fb str r3, [r7, #12]
  38739. /* Reset the Output Polarity level */
  38740. tmpccer &= ~TIM_CCER_CC3P;
  38741. 8010a56: 697b ldr r3, [r7, #20]
  38742. 8010a58: f423 7300 bic.w r3, r3, #512 @ 0x200
  38743. 8010a5c: 617b str r3, [r7, #20]
  38744. /* Set the Output Compare Polarity */
  38745. tmpccer |= (OC_Config->OCPolarity << 8U);
  38746. 8010a5e: 683b ldr r3, [r7, #0]
  38747. 8010a60: 689b ldr r3, [r3, #8]
  38748. 8010a62: 021b lsls r3, r3, #8
  38749. 8010a64: 697a ldr r2, [r7, #20]
  38750. 8010a66: 4313 orrs r3, r2
  38751. 8010a68: 617b str r3, [r7, #20]
  38752. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  38753. 8010a6a: 687b ldr r3, [r7, #4]
  38754. 8010a6c: 4a28 ldr r2, [pc, #160] @ (8010b10 <TIM_OC3_SetConfig+0xfc>)
  38755. 8010a6e: 4293 cmp r3, r2
  38756. 8010a70: d003 beq.n 8010a7a <TIM_OC3_SetConfig+0x66>
  38757. 8010a72: 687b ldr r3, [r7, #4]
  38758. 8010a74: 4a27 ldr r2, [pc, #156] @ (8010b14 <TIM_OC3_SetConfig+0x100>)
  38759. 8010a76: 4293 cmp r3, r2
  38760. 8010a78: d10d bne.n 8010a96 <TIM_OC3_SetConfig+0x82>
  38761. {
  38762. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38763. /* Reset the Output N Polarity level */
  38764. tmpccer &= ~TIM_CCER_CC3NP;
  38765. 8010a7a: 697b ldr r3, [r7, #20]
  38766. 8010a7c: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38767. 8010a80: 617b str r3, [r7, #20]
  38768. /* Set the Output N Polarity */
  38769. tmpccer |= (OC_Config->OCNPolarity << 8U);
  38770. 8010a82: 683b ldr r3, [r7, #0]
  38771. 8010a84: 68db ldr r3, [r3, #12]
  38772. 8010a86: 021b lsls r3, r3, #8
  38773. 8010a88: 697a ldr r2, [r7, #20]
  38774. 8010a8a: 4313 orrs r3, r2
  38775. 8010a8c: 617b str r3, [r7, #20]
  38776. /* Reset the Output N State */
  38777. tmpccer &= ~TIM_CCER_CC3NE;
  38778. 8010a8e: 697b ldr r3, [r7, #20]
  38779. 8010a90: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38780. 8010a94: 617b str r3, [r7, #20]
  38781. }
  38782. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38783. 8010a96: 687b ldr r3, [r7, #4]
  38784. 8010a98: 4a1d ldr r2, [pc, #116] @ (8010b10 <TIM_OC3_SetConfig+0xfc>)
  38785. 8010a9a: 4293 cmp r3, r2
  38786. 8010a9c: d00f beq.n 8010abe <TIM_OC3_SetConfig+0xaa>
  38787. 8010a9e: 687b ldr r3, [r7, #4]
  38788. 8010aa0: 4a1c ldr r2, [pc, #112] @ (8010b14 <TIM_OC3_SetConfig+0x100>)
  38789. 8010aa2: 4293 cmp r3, r2
  38790. 8010aa4: d00b beq.n 8010abe <TIM_OC3_SetConfig+0xaa>
  38791. 8010aa6: 687b ldr r3, [r7, #4]
  38792. 8010aa8: 4a1b ldr r2, [pc, #108] @ (8010b18 <TIM_OC3_SetConfig+0x104>)
  38793. 8010aaa: 4293 cmp r3, r2
  38794. 8010aac: d007 beq.n 8010abe <TIM_OC3_SetConfig+0xaa>
  38795. 8010aae: 687b ldr r3, [r7, #4]
  38796. 8010ab0: 4a1a ldr r2, [pc, #104] @ (8010b1c <TIM_OC3_SetConfig+0x108>)
  38797. 8010ab2: 4293 cmp r3, r2
  38798. 8010ab4: d003 beq.n 8010abe <TIM_OC3_SetConfig+0xaa>
  38799. 8010ab6: 687b ldr r3, [r7, #4]
  38800. 8010ab8: 4a19 ldr r2, [pc, #100] @ (8010b20 <TIM_OC3_SetConfig+0x10c>)
  38801. 8010aba: 4293 cmp r3, r2
  38802. 8010abc: d113 bne.n 8010ae6 <TIM_OC3_SetConfig+0xd2>
  38803. /* Check parameters */
  38804. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38805. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38806. /* Reset the Output Compare and Output Compare N IDLE State */
  38807. tmpcr2 &= ~TIM_CR2_OIS3;
  38808. 8010abe: 693b ldr r3, [r7, #16]
  38809. 8010ac0: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  38810. 8010ac4: 613b str r3, [r7, #16]
  38811. tmpcr2 &= ~TIM_CR2_OIS3N;
  38812. 8010ac6: 693b ldr r3, [r7, #16]
  38813. 8010ac8: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38814. 8010acc: 613b str r3, [r7, #16]
  38815. /* Set the Output Idle state */
  38816. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  38817. 8010ace: 683b ldr r3, [r7, #0]
  38818. 8010ad0: 695b ldr r3, [r3, #20]
  38819. 8010ad2: 011b lsls r3, r3, #4
  38820. 8010ad4: 693a ldr r2, [r7, #16]
  38821. 8010ad6: 4313 orrs r3, r2
  38822. 8010ad8: 613b str r3, [r7, #16]
  38823. /* Set the Output N Idle state */
  38824. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  38825. 8010ada: 683b ldr r3, [r7, #0]
  38826. 8010adc: 699b ldr r3, [r3, #24]
  38827. 8010ade: 011b lsls r3, r3, #4
  38828. 8010ae0: 693a ldr r2, [r7, #16]
  38829. 8010ae2: 4313 orrs r3, r2
  38830. 8010ae4: 613b str r3, [r7, #16]
  38831. }
  38832. /* Write to TIMx CR2 */
  38833. TIMx->CR2 = tmpcr2;
  38834. 8010ae6: 687b ldr r3, [r7, #4]
  38835. 8010ae8: 693a ldr r2, [r7, #16]
  38836. 8010aea: 605a str r2, [r3, #4]
  38837. /* Write to TIMx CCMR2 */
  38838. TIMx->CCMR2 = tmpccmrx;
  38839. 8010aec: 687b ldr r3, [r7, #4]
  38840. 8010aee: 68fa ldr r2, [r7, #12]
  38841. 8010af0: 61da str r2, [r3, #28]
  38842. /* Set the Capture Compare Register value */
  38843. TIMx->CCR3 = OC_Config->Pulse;
  38844. 8010af2: 683b ldr r3, [r7, #0]
  38845. 8010af4: 685a ldr r2, [r3, #4]
  38846. 8010af6: 687b ldr r3, [r7, #4]
  38847. 8010af8: 63da str r2, [r3, #60] @ 0x3c
  38848. /* Write to TIMx CCER */
  38849. TIMx->CCER = tmpccer;
  38850. 8010afa: 687b ldr r3, [r7, #4]
  38851. 8010afc: 697a ldr r2, [r7, #20]
  38852. 8010afe: 621a str r2, [r3, #32]
  38853. }
  38854. 8010b00: bf00 nop
  38855. 8010b02: 371c adds r7, #28
  38856. 8010b04: 46bd mov sp, r7
  38857. 8010b06: f85d 7b04 ldr.w r7, [sp], #4
  38858. 8010b0a: 4770 bx lr
  38859. 8010b0c: fffeff8f .word 0xfffeff8f
  38860. 8010b10: 40010000 .word 0x40010000
  38861. 8010b14: 40010400 .word 0x40010400
  38862. 8010b18: 40014000 .word 0x40014000
  38863. 8010b1c: 40014400 .word 0x40014400
  38864. 8010b20: 40014800 .word 0x40014800
  38865. 08010b24 <TIM_OC4_SetConfig>:
  38866. * @param TIMx to select the TIM peripheral
  38867. * @param OC_Config The output configuration structure
  38868. * @retval None
  38869. */
  38870. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38871. {
  38872. 8010b24: b480 push {r7}
  38873. 8010b26: b087 sub sp, #28
  38874. 8010b28: af00 add r7, sp, #0
  38875. 8010b2a: 6078 str r0, [r7, #4]
  38876. 8010b2c: 6039 str r1, [r7, #0]
  38877. uint32_t tmpccmrx;
  38878. uint32_t tmpccer;
  38879. uint32_t tmpcr2;
  38880. /* Get the TIMx CCER register value */
  38881. tmpccer = TIMx->CCER;
  38882. 8010b2e: 687b ldr r3, [r7, #4]
  38883. 8010b30: 6a1b ldr r3, [r3, #32]
  38884. 8010b32: 613b str r3, [r7, #16]
  38885. /* Disable the Channel 4: Reset the CC4E Bit */
  38886. TIMx->CCER &= ~TIM_CCER_CC4E;
  38887. 8010b34: 687b ldr r3, [r7, #4]
  38888. 8010b36: 6a1b ldr r3, [r3, #32]
  38889. 8010b38: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38890. 8010b3c: 687b ldr r3, [r7, #4]
  38891. 8010b3e: 621a str r2, [r3, #32]
  38892. /* Get the TIMx CR2 register value */
  38893. tmpcr2 = TIMx->CR2;
  38894. 8010b40: 687b ldr r3, [r7, #4]
  38895. 8010b42: 685b ldr r3, [r3, #4]
  38896. 8010b44: 617b str r3, [r7, #20]
  38897. /* Get the TIMx CCMR2 register value */
  38898. tmpccmrx = TIMx->CCMR2;
  38899. 8010b46: 687b ldr r3, [r7, #4]
  38900. 8010b48: 69db ldr r3, [r3, #28]
  38901. 8010b4a: 60fb str r3, [r7, #12]
  38902. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38903. tmpccmrx &= ~TIM_CCMR2_OC4M;
  38904. 8010b4c: 68fa ldr r2, [r7, #12]
  38905. 8010b4e: 4b24 ldr r3, [pc, #144] @ (8010be0 <TIM_OC4_SetConfig+0xbc>)
  38906. 8010b50: 4013 ands r3, r2
  38907. 8010b52: 60fb str r3, [r7, #12]
  38908. tmpccmrx &= ~TIM_CCMR2_CC4S;
  38909. 8010b54: 68fb ldr r3, [r7, #12]
  38910. 8010b56: f423 7340 bic.w r3, r3, #768 @ 0x300
  38911. 8010b5a: 60fb str r3, [r7, #12]
  38912. /* Select the Output Compare Mode */
  38913. tmpccmrx |= (OC_Config->OCMode << 8U);
  38914. 8010b5c: 683b ldr r3, [r7, #0]
  38915. 8010b5e: 681b ldr r3, [r3, #0]
  38916. 8010b60: 021b lsls r3, r3, #8
  38917. 8010b62: 68fa ldr r2, [r7, #12]
  38918. 8010b64: 4313 orrs r3, r2
  38919. 8010b66: 60fb str r3, [r7, #12]
  38920. /* Reset the Output Polarity level */
  38921. tmpccer &= ~TIM_CCER_CC4P;
  38922. 8010b68: 693b ldr r3, [r7, #16]
  38923. 8010b6a: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38924. 8010b6e: 613b str r3, [r7, #16]
  38925. /* Set the Output Compare Polarity */
  38926. tmpccer |= (OC_Config->OCPolarity << 12U);
  38927. 8010b70: 683b ldr r3, [r7, #0]
  38928. 8010b72: 689b ldr r3, [r3, #8]
  38929. 8010b74: 031b lsls r3, r3, #12
  38930. 8010b76: 693a ldr r2, [r7, #16]
  38931. 8010b78: 4313 orrs r3, r2
  38932. 8010b7a: 613b str r3, [r7, #16]
  38933. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38934. 8010b7c: 687b ldr r3, [r7, #4]
  38935. 8010b7e: 4a19 ldr r2, [pc, #100] @ (8010be4 <TIM_OC4_SetConfig+0xc0>)
  38936. 8010b80: 4293 cmp r3, r2
  38937. 8010b82: d00f beq.n 8010ba4 <TIM_OC4_SetConfig+0x80>
  38938. 8010b84: 687b ldr r3, [r7, #4]
  38939. 8010b86: 4a18 ldr r2, [pc, #96] @ (8010be8 <TIM_OC4_SetConfig+0xc4>)
  38940. 8010b88: 4293 cmp r3, r2
  38941. 8010b8a: d00b beq.n 8010ba4 <TIM_OC4_SetConfig+0x80>
  38942. 8010b8c: 687b ldr r3, [r7, #4]
  38943. 8010b8e: 4a17 ldr r2, [pc, #92] @ (8010bec <TIM_OC4_SetConfig+0xc8>)
  38944. 8010b90: 4293 cmp r3, r2
  38945. 8010b92: d007 beq.n 8010ba4 <TIM_OC4_SetConfig+0x80>
  38946. 8010b94: 687b ldr r3, [r7, #4]
  38947. 8010b96: 4a16 ldr r2, [pc, #88] @ (8010bf0 <TIM_OC4_SetConfig+0xcc>)
  38948. 8010b98: 4293 cmp r3, r2
  38949. 8010b9a: d003 beq.n 8010ba4 <TIM_OC4_SetConfig+0x80>
  38950. 8010b9c: 687b ldr r3, [r7, #4]
  38951. 8010b9e: 4a15 ldr r2, [pc, #84] @ (8010bf4 <TIM_OC4_SetConfig+0xd0>)
  38952. 8010ba0: 4293 cmp r3, r2
  38953. 8010ba2: d109 bne.n 8010bb8 <TIM_OC4_SetConfig+0x94>
  38954. {
  38955. /* Check parameters */
  38956. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38957. /* Reset the Output Compare IDLE State */
  38958. tmpcr2 &= ~TIM_CR2_OIS4;
  38959. 8010ba4: 697b ldr r3, [r7, #20]
  38960. 8010ba6: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  38961. 8010baa: 617b str r3, [r7, #20]
  38962. /* Set the Output Idle state */
  38963. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  38964. 8010bac: 683b ldr r3, [r7, #0]
  38965. 8010bae: 695b ldr r3, [r3, #20]
  38966. 8010bb0: 019b lsls r3, r3, #6
  38967. 8010bb2: 697a ldr r2, [r7, #20]
  38968. 8010bb4: 4313 orrs r3, r2
  38969. 8010bb6: 617b str r3, [r7, #20]
  38970. }
  38971. /* Write to TIMx CR2 */
  38972. TIMx->CR2 = tmpcr2;
  38973. 8010bb8: 687b ldr r3, [r7, #4]
  38974. 8010bba: 697a ldr r2, [r7, #20]
  38975. 8010bbc: 605a str r2, [r3, #4]
  38976. /* Write to TIMx CCMR2 */
  38977. TIMx->CCMR2 = tmpccmrx;
  38978. 8010bbe: 687b ldr r3, [r7, #4]
  38979. 8010bc0: 68fa ldr r2, [r7, #12]
  38980. 8010bc2: 61da str r2, [r3, #28]
  38981. /* Set the Capture Compare Register value */
  38982. TIMx->CCR4 = OC_Config->Pulse;
  38983. 8010bc4: 683b ldr r3, [r7, #0]
  38984. 8010bc6: 685a ldr r2, [r3, #4]
  38985. 8010bc8: 687b ldr r3, [r7, #4]
  38986. 8010bca: 641a str r2, [r3, #64] @ 0x40
  38987. /* Write to TIMx CCER */
  38988. TIMx->CCER = tmpccer;
  38989. 8010bcc: 687b ldr r3, [r7, #4]
  38990. 8010bce: 693a ldr r2, [r7, #16]
  38991. 8010bd0: 621a str r2, [r3, #32]
  38992. }
  38993. 8010bd2: bf00 nop
  38994. 8010bd4: 371c adds r7, #28
  38995. 8010bd6: 46bd mov sp, r7
  38996. 8010bd8: f85d 7b04 ldr.w r7, [sp], #4
  38997. 8010bdc: 4770 bx lr
  38998. 8010bde: bf00 nop
  38999. 8010be0: feff8fff .word 0xfeff8fff
  39000. 8010be4: 40010000 .word 0x40010000
  39001. 8010be8: 40010400 .word 0x40010400
  39002. 8010bec: 40014000 .word 0x40014000
  39003. 8010bf0: 40014400 .word 0x40014400
  39004. 8010bf4: 40014800 .word 0x40014800
  39005. 08010bf8 <TIM_OC5_SetConfig>:
  39006. * @param OC_Config The output configuration structure
  39007. * @retval None
  39008. */
  39009. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  39010. const TIM_OC_InitTypeDef *OC_Config)
  39011. {
  39012. 8010bf8: b480 push {r7}
  39013. 8010bfa: b087 sub sp, #28
  39014. 8010bfc: af00 add r7, sp, #0
  39015. 8010bfe: 6078 str r0, [r7, #4]
  39016. 8010c00: 6039 str r1, [r7, #0]
  39017. uint32_t tmpccmrx;
  39018. uint32_t tmpccer;
  39019. uint32_t tmpcr2;
  39020. /* Get the TIMx CCER register value */
  39021. tmpccer = TIMx->CCER;
  39022. 8010c02: 687b ldr r3, [r7, #4]
  39023. 8010c04: 6a1b ldr r3, [r3, #32]
  39024. 8010c06: 613b str r3, [r7, #16]
  39025. /* Disable the output: Reset the CCxE Bit */
  39026. TIMx->CCER &= ~TIM_CCER_CC5E;
  39027. 8010c08: 687b ldr r3, [r7, #4]
  39028. 8010c0a: 6a1b ldr r3, [r3, #32]
  39029. 8010c0c: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  39030. 8010c10: 687b ldr r3, [r7, #4]
  39031. 8010c12: 621a str r2, [r3, #32]
  39032. /* Get the TIMx CR2 register value */
  39033. tmpcr2 = TIMx->CR2;
  39034. 8010c14: 687b ldr r3, [r7, #4]
  39035. 8010c16: 685b ldr r3, [r3, #4]
  39036. 8010c18: 617b str r3, [r7, #20]
  39037. /* Get the TIMx CCMR1 register value */
  39038. tmpccmrx = TIMx->CCMR3;
  39039. 8010c1a: 687b ldr r3, [r7, #4]
  39040. 8010c1c: 6d5b ldr r3, [r3, #84] @ 0x54
  39041. 8010c1e: 60fb str r3, [r7, #12]
  39042. /* Reset the Output Compare Mode Bits */
  39043. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  39044. 8010c20: 68fa ldr r2, [r7, #12]
  39045. 8010c22: 4b21 ldr r3, [pc, #132] @ (8010ca8 <TIM_OC5_SetConfig+0xb0>)
  39046. 8010c24: 4013 ands r3, r2
  39047. 8010c26: 60fb str r3, [r7, #12]
  39048. /* Select the Output Compare Mode */
  39049. tmpccmrx |= OC_Config->OCMode;
  39050. 8010c28: 683b ldr r3, [r7, #0]
  39051. 8010c2a: 681b ldr r3, [r3, #0]
  39052. 8010c2c: 68fa ldr r2, [r7, #12]
  39053. 8010c2e: 4313 orrs r3, r2
  39054. 8010c30: 60fb str r3, [r7, #12]
  39055. /* Reset the Output Polarity level */
  39056. tmpccer &= ~TIM_CCER_CC5P;
  39057. 8010c32: 693b ldr r3, [r7, #16]
  39058. 8010c34: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  39059. 8010c38: 613b str r3, [r7, #16]
  39060. /* Set the Output Compare Polarity */
  39061. tmpccer |= (OC_Config->OCPolarity << 16U);
  39062. 8010c3a: 683b ldr r3, [r7, #0]
  39063. 8010c3c: 689b ldr r3, [r3, #8]
  39064. 8010c3e: 041b lsls r3, r3, #16
  39065. 8010c40: 693a ldr r2, [r7, #16]
  39066. 8010c42: 4313 orrs r3, r2
  39067. 8010c44: 613b str r3, [r7, #16]
  39068. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39069. 8010c46: 687b ldr r3, [r7, #4]
  39070. 8010c48: 4a18 ldr r2, [pc, #96] @ (8010cac <TIM_OC5_SetConfig+0xb4>)
  39071. 8010c4a: 4293 cmp r3, r2
  39072. 8010c4c: d00f beq.n 8010c6e <TIM_OC5_SetConfig+0x76>
  39073. 8010c4e: 687b ldr r3, [r7, #4]
  39074. 8010c50: 4a17 ldr r2, [pc, #92] @ (8010cb0 <TIM_OC5_SetConfig+0xb8>)
  39075. 8010c52: 4293 cmp r3, r2
  39076. 8010c54: d00b beq.n 8010c6e <TIM_OC5_SetConfig+0x76>
  39077. 8010c56: 687b ldr r3, [r7, #4]
  39078. 8010c58: 4a16 ldr r2, [pc, #88] @ (8010cb4 <TIM_OC5_SetConfig+0xbc>)
  39079. 8010c5a: 4293 cmp r3, r2
  39080. 8010c5c: d007 beq.n 8010c6e <TIM_OC5_SetConfig+0x76>
  39081. 8010c5e: 687b ldr r3, [r7, #4]
  39082. 8010c60: 4a15 ldr r2, [pc, #84] @ (8010cb8 <TIM_OC5_SetConfig+0xc0>)
  39083. 8010c62: 4293 cmp r3, r2
  39084. 8010c64: d003 beq.n 8010c6e <TIM_OC5_SetConfig+0x76>
  39085. 8010c66: 687b ldr r3, [r7, #4]
  39086. 8010c68: 4a14 ldr r2, [pc, #80] @ (8010cbc <TIM_OC5_SetConfig+0xc4>)
  39087. 8010c6a: 4293 cmp r3, r2
  39088. 8010c6c: d109 bne.n 8010c82 <TIM_OC5_SetConfig+0x8a>
  39089. {
  39090. /* Reset the Output Compare IDLE State */
  39091. tmpcr2 &= ~TIM_CR2_OIS5;
  39092. 8010c6e: 697b ldr r3, [r7, #20]
  39093. 8010c70: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  39094. 8010c74: 617b str r3, [r7, #20]
  39095. /* Set the Output Idle state */
  39096. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  39097. 8010c76: 683b ldr r3, [r7, #0]
  39098. 8010c78: 695b ldr r3, [r3, #20]
  39099. 8010c7a: 021b lsls r3, r3, #8
  39100. 8010c7c: 697a ldr r2, [r7, #20]
  39101. 8010c7e: 4313 orrs r3, r2
  39102. 8010c80: 617b str r3, [r7, #20]
  39103. }
  39104. /* Write to TIMx CR2 */
  39105. TIMx->CR2 = tmpcr2;
  39106. 8010c82: 687b ldr r3, [r7, #4]
  39107. 8010c84: 697a ldr r2, [r7, #20]
  39108. 8010c86: 605a str r2, [r3, #4]
  39109. /* Write to TIMx CCMR3 */
  39110. TIMx->CCMR3 = tmpccmrx;
  39111. 8010c88: 687b ldr r3, [r7, #4]
  39112. 8010c8a: 68fa ldr r2, [r7, #12]
  39113. 8010c8c: 655a str r2, [r3, #84] @ 0x54
  39114. /* Set the Capture Compare Register value */
  39115. TIMx->CCR5 = OC_Config->Pulse;
  39116. 8010c8e: 683b ldr r3, [r7, #0]
  39117. 8010c90: 685a ldr r2, [r3, #4]
  39118. 8010c92: 687b ldr r3, [r7, #4]
  39119. 8010c94: 659a str r2, [r3, #88] @ 0x58
  39120. /* Write to TIMx CCER */
  39121. TIMx->CCER = tmpccer;
  39122. 8010c96: 687b ldr r3, [r7, #4]
  39123. 8010c98: 693a ldr r2, [r7, #16]
  39124. 8010c9a: 621a str r2, [r3, #32]
  39125. }
  39126. 8010c9c: bf00 nop
  39127. 8010c9e: 371c adds r7, #28
  39128. 8010ca0: 46bd mov sp, r7
  39129. 8010ca2: f85d 7b04 ldr.w r7, [sp], #4
  39130. 8010ca6: 4770 bx lr
  39131. 8010ca8: fffeff8f .word 0xfffeff8f
  39132. 8010cac: 40010000 .word 0x40010000
  39133. 8010cb0: 40010400 .word 0x40010400
  39134. 8010cb4: 40014000 .word 0x40014000
  39135. 8010cb8: 40014400 .word 0x40014400
  39136. 8010cbc: 40014800 .word 0x40014800
  39137. 08010cc0 <TIM_OC6_SetConfig>:
  39138. * @param OC_Config The output configuration structure
  39139. * @retval None
  39140. */
  39141. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  39142. const TIM_OC_InitTypeDef *OC_Config)
  39143. {
  39144. 8010cc0: b480 push {r7}
  39145. 8010cc2: b087 sub sp, #28
  39146. 8010cc4: af00 add r7, sp, #0
  39147. 8010cc6: 6078 str r0, [r7, #4]
  39148. 8010cc8: 6039 str r1, [r7, #0]
  39149. uint32_t tmpccmrx;
  39150. uint32_t tmpccer;
  39151. uint32_t tmpcr2;
  39152. /* Get the TIMx CCER register value */
  39153. tmpccer = TIMx->CCER;
  39154. 8010cca: 687b ldr r3, [r7, #4]
  39155. 8010ccc: 6a1b ldr r3, [r3, #32]
  39156. 8010cce: 613b str r3, [r7, #16]
  39157. /* Disable the output: Reset the CCxE Bit */
  39158. TIMx->CCER &= ~TIM_CCER_CC6E;
  39159. 8010cd0: 687b ldr r3, [r7, #4]
  39160. 8010cd2: 6a1b ldr r3, [r3, #32]
  39161. 8010cd4: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  39162. 8010cd8: 687b ldr r3, [r7, #4]
  39163. 8010cda: 621a str r2, [r3, #32]
  39164. /* Get the TIMx CR2 register value */
  39165. tmpcr2 = TIMx->CR2;
  39166. 8010cdc: 687b ldr r3, [r7, #4]
  39167. 8010cde: 685b ldr r3, [r3, #4]
  39168. 8010ce0: 617b str r3, [r7, #20]
  39169. /* Get the TIMx CCMR1 register value */
  39170. tmpccmrx = TIMx->CCMR3;
  39171. 8010ce2: 687b ldr r3, [r7, #4]
  39172. 8010ce4: 6d5b ldr r3, [r3, #84] @ 0x54
  39173. 8010ce6: 60fb str r3, [r7, #12]
  39174. /* Reset the Output Compare Mode Bits */
  39175. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  39176. 8010ce8: 68fa ldr r2, [r7, #12]
  39177. 8010cea: 4b22 ldr r3, [pc, #136] @ (8010d74 <TIM_OC6_SetConfig+0xb4>)
  39178. 8010cec: 4013 ands r3, r2
  39179. 8010cee: 60fb str r3, [r7, #12]
  39180. /* Select the Output Compare Mode */
  39181. tmpccmrx |= (OC_Config->OCMode << 8U);
  39182. 8010cf0: 683b ldr r3, [r7, #0]
  39183. 8010cf2: 681b ldr r3, [r3, #0]
  39184. 8010cf4: 021b lsls r3, r3, #8
  39185. 8010cf6: 68fa ldr r2, [r7, #12]
  39186. 8010cf8: 4313 orrs r3, r2
  39187. 8010cfa: 60fb str r3, [r7, #12]
  39188. /* Reset the Output Polarity level */
  39189. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  39190. 8010cfc: 693b ldr r3, [r7, #16]
  39191. 8010cfe: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  39192. 8010d02: 613b str r3, [r7, #16]
  39193. /* Set the Output Compare Polarity */
  39194. tmpccer |= (OC_Config->OCPolarity << 20U);
  39195. 8010d04: 683b ldr r3, [r7, #0]
  39196. 8010d06: 689b ldr r3, [r3, #8]
  39197. 8010d08: 051b lsls r3, r3, #20
  39198. 8010d0a: 693a ldr r2, [r7, #16]
  39199. 8010d0c: 4313 orrs r3, r2
  39200. 8010d0e: 613b str r3, [r7, #16]
  39201. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39202. 8010d10: 687b ldr r3, [r7, #4]
  39203. 8010d12: 4a19 ldr r2, [pc, #100] @ (8010d78 <TIM_OC6_SetConfig+0xb8>)
  39204. 8010d14: 4293 cmp r3, r2
  39205. 8010d16: d00f beq.n 8010d38 <TIM_OC6_SetConfig+0x78>
  39206. 8010d18: 687b ldr r3, [r7, #4]
  39207. 8010d1a: 4a18 ldr r2, [pc, #96] @ (8010d7c <TIM_OC6_SetConfig+0xbc>)
  39208. 8010d1c: 4293 cmp r3, r2
  39209. 8010d1e: d00b beq.n 8010d38 <TIM_OC6_SetConfig+0x78>
  39210. 8010d20: 687b ldr r3, [r7, #4]
  39211. 8010d22: 4a17 ldr r2, [pc, #92] @ (8010d80 <TIM_OC6_SetConfig+0xc0>)
  39212. 8010d24: 4293 cmp r3, r2
  39213. 8010d26: d007 beq.n 8010d38 <TIM_OC6_SetConfig+0x78>
  39214. 8010d28: 687b ldr r3, [r7, #4]
  39215. 8010d2a: 4a16 ldr r2, [pc, #88] @ (8010d84 <TIM_OC6_SetConfig+0xc4>)
  39216. 8010d2c: 4293 cmp r3, r2
  39217. 8010d2e: d003 beq.n 8010d38 <TIM_OC6_SetConfig+0x78>
  39218. 8010d30: 687b ldr r3, [r7, #4]
  39219. 8010d32: 4a15 ldr r2, [pc, #84] @ (8010d88 <TIM_OC6_SetConfig+0xc8>)
  39220. 8010d34: 4293 cmp r3, r2
  39221. 8010d36: d109 bne.n 8010d4c <TIM_OC6_SetConfig+0x8c>
  39222. {
  39223. /* Reset the Output Compare IDLE State */
  39224. tmpcr2 &= ~TIM_CR2_OIS6;
  39225. 8010d38: 697b ldr r3, [r7, #20]
  39226. 8010d3a: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  39227. 8010d3e: 617b str r3, [r7, #20]
  39228. /* Set the Output Idle state */
  39229. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  39230. 8010d40: 683b ldr r3, [r7, #0]
  39231. 8010d42: 695b ldr r3, [r3, #20]
  39232. 8010d44: 029b lsls r3, r3, #10
  39233. 8010d46: 697a ldr r2, [r7, #20]
  39234. 8010d48: 4313 orrs r3, r2
  39235. 8010d4a: 617b str r3, [r7, #20]
  39236. }
  39237. /* Write to TIMx CR2 */
  39238. TIMx->CR2 = tmpcr2;
  39239. 8010d4c: 687b ldr r3, [r7, #4]
  39240. 8010d4e: 697a ldr r2, [r7, #20]
  39241. 8010d50: 605a str r2, [r3, #4]
  39242. /* Write to TIMx CCMR3 */
  39243. TIMx->CCMR3 = tmpccmrx;
  39244. 8010d52: 687b ldr r3, [r7, #4]
  39245. 8010d54: 68fa ldr r2, [r7, #12]
  39246. 8010d56: 655a str r2, [r3, #84] @ 0x54
  39247. /* Set the Capture Compare Register value */
  39248. TIMx->CCR6 = OC_Config->Pulse;
  39249. 8010d58: 683b ldr r3, [r7, #0]
  39250. 8010d5a: 685a ldr r2, [r3, #4]
  39251. 8010d5c: 687b ldr r3, [r7, #4]
  39252. 8010d5e: 65da str r2, [r3, #92] @ 0x5c
  39253. /* Write to TIMx CCER */
  39254. TIMx->CCER = tmpccer;
  39255. 8010d60: 687b ldr r3, [r7, #4]
  39256. 8010d62: 693a ldr r2, [r7, #16]
  39257. 8010d64: 621a str r2, [r3, #32]
  39258. }
  39259. 8010d66: bf00 nop
  39260. 8010d68: 371c adds r7, #28
  39261. 8010d6a: 46bd mov sp, r7
  39262. 8010d6c: f85d 7b04 ldr.w r7, [sp], #4
  39263. 8010d70: 4770 bx lr
  39264. 8010d72: bf00 nop
  39265. 8010d74: feff8fff .word 0xfeff8fff
  39266. 8010d78: 40010000 .word 0x40010000
  39267. 8010d7c: 40010400 .word 0x40010400
  39268. 8010d80: 40014000 .word 0x40014000
  39269. 8010d84: 40014400 .word 0x40014400
  39270. 8010d88: 40014800 .word 0x40014800
  39271. 08010d8c <TIM_TI1_SetConfig>:
  39272. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  39273. * protected against un-initialized filter and polarity values.
  39274. */
  39275. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39276. uint32_t TIM_ICFilter)
  39277. {
  39278. 8010d8c: b480 push {r7}
  39279. 8010d8e: b087 sub sp, #28
  39280. 8010d90: af00 add r7, sp, #0
  39281. 8010d92: 60f8 str r0, [r7, #12]
  39282. 8010d94: 60b9 str r1, [r7, #8]
  39283. 8010d96: 607a str r2, [r7, #4]
  39284. 8010d98: 603b str r3, [r7, #0]
  39285. uint32_t tmpccmr1;
  39286. uint32_t tmpccer;
  39287. /* Disable the Channel 1: Reset the CC1E Bit */
  39288. tmpccer = TIMx->CCER;
  39289. 8010d9a: 68fb ldr r3, [r7, #12]
  39290. 8010d9c: 6a1b ldr r3, [r3, #32]
  39291. 8010d9e: 613b str r3, [r7, #16]
  39292. TIMx->CCER &= ~TIM_CCER_CC1E;
  39293. 8010da0: 68fb ldr r3, [r7, #12]
  39294. 8010da2: 6a1b ldr r3, [r3, #32]
  39295. 8010da4: f023 0201 bic.w r2, r3, #1
  39296. 8010da8: 68fb ldr r3, [r7, #12]
  39297. 8010daa: 621a str r2, [r3, #32]
  39298. tmpccmr1 = TIMx->CCMR1;
  39299. 8010dac: 68fb ldr r3, [r7, #12]
  39300. 8010dae: 699b ldr r3, [r3, #24]
  39301. 8010db0: 617b str r3, [r7, #20]
  39302. /* Select the Input */
  39303. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  39304. 8010db2: 68fb ldr r3, [r7, #12]
  39305. 8010db4: 4a28 ldr r2, [pc, #160] @ (8010e58 <TIM_TI1_SetConfig+0xcc>)
  39306. 8010db6: 4293 cmp r3, r2
  39307. 8010db8: d01b beq.n 8010df2 <TIM_TI1_SetConfig+0x66>
  39308. 8010dba: 68fb ldr r3, [r7, #12]
  39309. 8010dbc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  39310. 8010dc0: d017 beq.n 8010df2 <TIM_TI1_SetConfig+0x66>
  39311. 8010dc2: 68fb ldr r3, [r7, #12]
  39312. 8010dc4: 4a25 ldr r2, [pc, #148] @ (8010e5c <TIM_TI1_SetConfig+0xd0>)
  39313. 8010dc6: 4293 cmp r3, r2
  39314. 8010dc8: d013 beq.n 8010df2 <TIM_TI1_SetConfig+0x66>
  39315. 8010dca: 68fb ldr r3, [r7, #12]
  39316. 8010dcc: 4a24 ldr r2, [pc, #144] @ (8010e60 <TIM_TI1_SetConfig+0xd4>)
  39317. 8010dce: 4293 cmp r3, r2
  39318. 8010dd0: d00f beq.n 8010df2 <TIM_TI1_SetConfig+0x66>
  39319. 8010dd2: 68fb ldr r3, [r7, #12]
  39320. 8010dd4: 4a23 ldr r2, [pc, #140] @ (8010e64 <TIM_TI1_SetConfig+0xd8>)
  39321. 8010dd6: 4293 cmp r3, r2
  39322. 8010dd8: d00b beq.n 8010df2 <TIM_TI1_SetConfig+0x66>
  39323. 8010dda: 68fb ldr r3, [r7, #12]
  39324. 8010ddc: 4a22 ldr r2, [pc, #136] @ (8010e68 <TIM_TI1_SetConfig+0xdc>)
  39325. 8010dde: 4293 cmp r3, r2
  39326. 8010de0: d007 beq.n 8010df2 <TIM_TI1_SetConfig+0x66>
  39327. 8010de2: 68fb ldr r3, [r7, #12]
  39328. 8010de4: 4a21 ldr r2, [pc, #132] @ (8010e6c <TIM_TI1_SetConfig+0xe0>)
  39329. 8010de6: 4293 cmp r3, r2
  39330. 8010de8: d003 beq.n 8010df2 <TIM_TI1_SetConfig+0x66>
  39331. 8010dea: 68fb ldr r3, [r7, #12]
  39332. 8010dec: 4a20 ldr r2, [pc, #128] @ (8010e70 <TIM_TI1_SetConfig+0xe4>)
  39333. 8010dee: 4293 cmp r3, r2
  39334. 8010df0: d101 bne.n 8010df6 <TIM_TI1_SetConfig+0x6a>
  39335. 8010df2: 2301 movs r3, #1
  39336. 8010df4: e000 b.n 8010df8 <TIM_TI1_SetConfig+0x6c>
  39337. 8010df6: 2300 movs r3, #0
  39338. 8010df8: 2b00 cmp r3, #0
  39339. 8010dfa: d008 beq.n 8010e0e <TIM_TI1_SetConfig+0x82>
  39340. {
  39341. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  39342. 8010dfc: 697b ldr r3, [r7, #20]
  39343. 8010dfe: f023 0303 bic.w r3, r3, #3
  39344. 8010e02: 617b str r3, [r7, #20]
  39345. tmpccmr1 |= TIM_ICSelection;
  39346. 8010e04: 697a ldr r2, [r7, #20]
  39347. 8010e06: 687b ldr r3, [r7, #4]
  39348. 8010e08: 4313 orrs r3, r2
  39349. 8010e0a: 617b str r3, [r7, #20]
  39350. 8010e0c: e003 b.n 8010e16 <TIM_TI1_SetConfig+0x8a>
  39351. }
  39352. else
  39353. {
  39354. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  39355. 8010e0e: 697b ldr r3, [r7, #20]
  39356. 8010e10: f043 0301 orr.w r3, r3, #1
  39357. 8010e14: 617b str r3, [r7, #20]
  39358. }
  39359. /* Set the filter */
  39360. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39361. 8010e16: 697b ldr r3, [r7, #20]
  39362. 8010e18: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39363. 8010e1c: 617b str r3, [r7, #20]
  39364. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  39365. 8010e1e: 683b ldr r3, [r7, #0]
  39366. 8010e20: 011b lsls r3, r3, #4
  39367. 8010e22: b2db uxtb r3, r3
  39368. 8010e24: 697a ldr r2, [r7, #20]
  39369. 8010e26: 4313 orrs r3, r2
  39370. 8010e28: 617b str r3, [r7, #20]
  39371. /* Select the Polarity and set the CC1E Bit */
  39372. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39373. 8010e2a: 693b ldr r3, [r7, #16]
  39374. 8010e2c: f023 030a bic.w r3, r3, #10
  39375. 8010e30: 613b str r3, [r7, #16]
  39376. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  39377. 8010e32: 68bb ldr r3, [r7, #8]
  39378. 8010e34: f003 030a and.w r3, r3, #10
  39379. 8010e38: 693a ldr r2, [r7, #16]
  39380. 8010e3a: 4313 orrs r3, r2
  39381. 8010e3c: 613b str r3, [r7, #16]
  39382. /* Write to TIMx CCMR1 and CCER registers */
  39383. TIMx->CCMR1 = tmpccmr1;
  39384. 8010e3e: 68fb ldr r3, [r7, #12]
  39385. 8010e40: 697a ldr r2, [r7, #20]
  39386. 8010e42: 619a str r2, [r3, #24]
  39387. TIMx->CCER = tmpccer;
  39388. 8010e44: 68fb ldr r3, [r7, #12]
  39389. 8010e46: 693a ldr r2, [r7, #16]
  39390. 8010e48: 621a str r2, [r3, #32]
  39391. }
  39392. 8010e4a: bf00 nop
  39393. 8010e4c: 371c adds r7, #28
  39394. 8010e4e: 46bd mov sp, r7
  39395. 8010e50: f85d 7b04 ldr.w r7, [sp], #4
  39396. 8010e54: 4770 bx lr
  39397. 8010e56: bf00 nop
  39398. 8010e58: 40010000 .word 0x40010000
  39399. 8010e5c: 40000400 .word 0x40000400
  39400. 8010e60: 40000800 .word 0x40000800
  39401. 8010e64: 40000c00 .word 0x40000c00
  39402. 8010e68: 40010400 .word 0x40010400
  39403. 8010e6c: 40001800 .word 0x40001800
  39404. 8010e70: 40014000 .word 0x40014000
  39405. 08010e74 <TIM_TI1_ConfigInputStage>:
  39406. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39407. * This parameter must be a value between 0x00 and 0x0F.
  39408. * @retval None
  39409. */
  39410. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39411. {
  39412. 8010e74: b480 push {r7}
  39413. 8010e76: b087 sub sp, #28
  39414. 8010e78: af00 add r7, sp, #0
  39415. 8010e7a: 60f8 str r0, [r7, #12]
  39416. 8010e7c: 60b9 str r1, [r7, #8]
  39417. 8010e7e: 607a str r2, [r7, #4]
  39418. uint32_t tmpccmr1;
  39419. uint32_t tmpccer;
  39420. /* Disable the Channel 1: Reset the CC1E Bit */
  39421. tmpccer = TIMx->CCER;
  39422. 8010e80: 68fb ldr r3, [r7, #12]
  39423. 8010e82: 6a1b ldr r3, [r3, #32]
  39424. 8010e84: 617b str r3, [r7, #20]
  39425. TIMx->CCER &= ~TIM_CCER_CC1E;
  39426. 8010e86: 68fb ldr r3, [r7, #12]
  39427. 8010e88: 6a1b ldr r3, [r3, #32]
  39428. 8010e8a: f023 0201 bic.w r2, r3, #1
  39429. 8010e8e: 68fb ldr r3, [r7, #12]
  39430. 8010e90: 621a str r2, [r3, #32]
  39431. tmpccmr1 = TIMx->CCMR1;
  39432. 8010e92: 68fb ldr r3, [r7, #12]
  39433. 8010e94: 699b ldr r3, [r3, #24]
  39434. 8010e96: 613b str r3, [r7, #16]
  39435. /* Set the filter */
  39436. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39437. 8010e98: 693b ldr r3, [r7, #16]
  39438. 8010e9a: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39439. 8010e9e: 613b str r3, [r7, #16]
  39440. tmpccmr1 |= (TIM_ICFilter << 4U);
  39441. 8010ea0: 687b ldr r3, [r7, #4]
  39442. 8010ea2: 011b lsls r3, r3, #4
  39443. 8010ea4: 693a ldr r2, [r7, #16]
  39444. 8010ea6: 4313 orrs r3, r2
  39445. 8010ea8: 613b str r3, [r7, #16]
  39446. /* Select the Polarity and set the CC1E Bit */
  39447. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39448. 8010eaa: 697b ldr r3, [r7, #20]
  39449. 8010eac: f023 030a bic.w r3, r3, #10
  39450. 8010eb0: 617b str r3, [r7, #20]
  39451. tmpccer |= TIM_ICPolarity;
  39452. 8010eb2: 697a ldr r2, [r7, #20]
  39453. 8010eb4: 68bb ldr r3, [r7, #8]
  39454. 8010eb6: 4313 orrs r3, r2
  39455. 8010eb8: 617b str r3, [r7, #20]
  39456. /* Write to TIMx CCMR1 and CCER registers */
  39457. TIMx->CCMR1 = tmpccmr1;
  39458. 8010eba: 68fb ldr r3, [r7, #12]
  39459. 8010ebc: 693a ldr r2, [r7, #16]
  39460. 8010ebe: 619a str r2, [r3, #24]
  39461. TIMx->CCER = tmpccer;
  39462. 8010ec0: 68fb ldr r3, [r7, #12]
  39463. 8010ec2: 697a ldr r2, [r7, #20]
  39464. 8010ec4: 621a str r2, [r3, #32]
  39465. }
  39466. 8010ec6: bf00 nop
  39467. 8010ec8: 371c adds r7, #28
  39468. 8010eca: 46bd mov sp, r7
  39469. 8010ecc: f85d 7b04 ldr.w r7, [sp], #4
  39470. 8010ed0: 4770 bx lr
  39471. 08010ed2 <TIM_TI2_SetConfig>:
  39472. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  39473. * protected against un-initialized filter and polarity values.
  39474. */
  39475. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39476. uint32_t TIM_ICFilter)
  39477. {
  39478. 8010ed2: b480 push {r7}
  39479. 8010ed4: b087 sub sp, #28
  39480. 8010ed6: af00 add r7, sp, #0
  39481. 8010ed8: 60f8 str r0, [r7, #12]
  39482. 8010eda: 60b9 str r1, [r7, #8]
  39483. 8010edc: 607a str r2, [r7, #4]
  39484. 8010ede: 603b str r3, [r7, #0]
  39485. uint32_t tmpccmr1;
  39486. uint32_t tmpccer;
  39487. /* Disable the Channel 2: Reset the CC2E Bit */
  39488. tmpccer = TIMx->CCER;
  39489. 8010ee0: 68fb ldr r3, [r7, #12]
  39490. 8010ee2: 6a1b ldr r3, [r3, #32]
  39491. 8010ee4: 617b str r3, [r7, #20]
  39492. TIMx->CCER &= ~TIM_CCER_CC2E;
  39493. 8010ee6: 68fb ldr r3, [r7, #12]
  39494. 8010ee8: 6a1b ldr r3, [r3, #32]
  39495. 8010eea: f023 0210 bic.w r2, r3, #16
  39496. 8010eee: 68fb ldr r3, [r7, #12]
  39497. 8010ef0: 621a str r2, [r3, #32]
  39498. tmpccmr1 = TIMx->CCMR1;
  39499. 8010ef2: 68fb ldr r3, [r7, #12]
  39500. 8010ef4: 699b ldr r3, [r3, #24]
  39501. 8010ef6: 613b str r3, [r7, #16]
  39502. /* Select the Input */
  39503. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  39504. 8010ef8: 693b ldr r3, [r7, #16]
  39505. 8010efa: f423 7340 bic.w r3, r3, #768 @ 0x300
  39506. 8010efe: 613b str r3, [r7, #16]
  39507. tmpccmr1 |= (TIM_ICSelection << 8U);
  39508. 8010f00: 687b ldr r3, [r7, #4]
  39509. 8010f02: 021b lsls r3, r3, #8
  39510. 8010f04: 693a ldr r2, [r7, #16]
  39511. 8010f06: 4313 orrs r3, r2
  39512. 8010f08: 613b str r3, [r7, #16]
  39513. /* Set the filter */
  39514. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39515. 8010f0a: 693b ldr r3, [r7, #16]
  39516. 8010f0c: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39517. 8010f10: 613b str r3, [r7, #16]
  39518. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  39519. 8010f12: 683b ldr r3, [r7, #0]
  39520. 8010f14: 031b lsls r3, r3, #12
  39521. 8010f16: b29b uxth r3, r3
  39522. 8010f18: 693a ldr r2, [r7, #16]
  39523. 8010f1a: 4313 orrs r3, r2
  39524. 8010f1c: 613b str r3, [r7, #16]
  39525. /* Select the Polarity and set the CC2E Bit */
  39526. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39527. 8010f1e: 697b ldr r3, [r7, #20]
  39528. 8010f20: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39529. 8010f24: 617b str r3, [r7, #20]
  39530. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  39531. 8010f26: 68bb ldr r3, [r7, #8]
  39532. 8010f28: 011b lsls r3, r3, #4
  39533. 8010f2a: f003 03a0 and.w r3, r3, #160 @ 0xa0
  39534. 8010f2e: 697a ldr r2, [r7, #20]
  39535. 8010f30: 4313 orrs r3, r2
  39536. 8010f32: 617b str r3, [r7, #20]
  39537. /* Write to TIMx CCMR1 and CCER registers */
  39538. TIMx->CCMR1 = tmpccmr1 ;
  39539. 8010f34: 68fb ldr r3, [r7, #12]
  39540. 8010f36: 693a ldr r2, [r7, #16]
  39541. 8010f38: 619a str r2, [r3, #24]
  39542. TIMx->CCER = tmpccer;
  39543. 8010f3a: 68fb ldr r3, [r7, #12]
  39544. 8010f3c: 697a ldr r2, [r7, #20]
  39545. 8010f3e: 621a str r2, [r3, #32]
  39546. }
  39547. 8010f40: bf00 nop
  39548. 8010f42: 371c adds r7, #28
  39549. 8010f44: 46bd mov sp, r7
  39550. 8010f46: f85d 7b04 ldr.w r7, [sp], #4
  39551. 8010f4a: 4770 bx lr
  39552. 08010f4c <TIM_TI2_ConfigInputStage>:
  39553. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39554. * This parameter must be a value between 0x00 and 0x0F.
  39555. * @retval None
  39556. */
  39557. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39558. {
  39559. 8010f4c: b480 push {r7}
  39560. 8010f4e: b087 sub sp, #28
  39561. 8010f50: af00 add r7, sp, #0
  39562. 8010f52: 60f8 str r0, [r7, #12]
  39563. 8010f54: 60b9 str r1, [r7, #8]
  39564. 8010f56: 607a str r2, [r7, #4]
  39565. uint32_t tmpccmr1;
  39566. uint32_t tmpccer;
  39567. /* Disable the Channel 2: Reset the CC2E Bit */
  39568. tmpccer = TIMx->CCER;
  39569. 8010f58: 68fb ldr r3, [r7, #12]
  39570. 8010f5a: 6a1b ldr r3, [r3, #32]
  39571. 8010f5c: 617b str r3, [r7, #20]
  39572. TIMx->CCER &= ~TIM_CCER_CC2E;
  39573. 8010f5e: 68fb ldr r3, [r7, #12]
  39574. 8010f60: 6a1b ldr r3, [r3, #32]
  39575. 8010f62: f023 0210 bic.w r2, r3, #16
  39576. 8010f66: 68fb ldr r3, [r7, #12]
  39577. 8010f68: 621a str r2, [r3, #32]
  39578. tmpccmr1 = TIMx->CCMR1;
  39579. 8010f6a: 68fb ldr r3, [r7, #12]
  39580. 8010f6c: 699b ldr r3, [r3, #24]
  39581. 8010f6e: 613b str r3, [r7, #16]
  39582. /* Set the filter */
  39583. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39584. 8010f70: 693b ldr r3, [r7, #16]
  39585. 8010f72: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39586. 8010f76: 613b str r3, [r7, #16]
  39587. tmpccmr1 |= (TIM_ICFilter << 12U);
  39588. 8010f78: 687b ldr r3, [r7, #4]
  39589. 8010f7a: 031b lsls r3, r3, #12
  39590. 8010f7c: 693a ldr r2, [r7, #16]
  39591. 8010f7e: 4313 orrs r3, r2
  39592. 8010f80: 613b str r3, [r7, #16]
  39593. /* Select the Polarity and set the CC2E Bit */
  39594. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39595. 8010f82: 697b ldr r3, [r7, #20]
  39596. 8010f84: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39597. 8010f88: 617b str r3, [r7, #20]
  39598. tmpccer |= (TIM_ICPolarity << 4U);
  39599. 8010f8a: 68bb ldr r3, [r7, #8]
  39600. 8010f8c: 011b lsls r3, r3, #4
  39601. 8010f8e: 697a ldr r2, [r7, #20]
  39602. 8010f90: 4313 orrs r3, r2
  39603. 8010f92: 617b str r3, [r7, #20]
  39604. /* Write to TIMx CCMR1 and CCER registers */
  39605. TIMx->CCMR1 = tmpccmr1 ;
  39606. 8010f94: 68fb ldr r3, [r7, #12]
  39607. 8010f96: 693a ldr r2, [r7, #16]
  39608. 8010f98: 619a str r2, [r3, #24]
  39609. TIMx->CCER = tmpccer;
  39610. 8010f9a: 68fb ldr r3, [r7, #12]
  39611. 8010f9c: 697a ldr r2, [r7, #20]
  39612. 8010f9e: 621a str r2, [r3, #32]
  39613. }
  39614. 8010fa0: bf00 nop
  39615. 8010fa2: 371c adds r7, #28
  39616. 8010fa4: 46bd mov sp, r7
  39617. 8010fa6: f85d 7b04 ldr.w r7, [sp], #4
  39618. 8010faa: 4770 bx lr
  39619. 08010fac <TIM_TI3_SetConfig>:
  39620. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  39621. * protected against un-initialized filter and polarity values.
  39622. */
  39623. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39624. uint32_t TIM_ICFilter)
  39625. {
  39626. 8010fac: b480 push {r7}
  39627. 8010fae: b087 sub sp, #28
  39628. 8010fb0: af00 add r7, sp, #0
  39629. 8010fb2: 60f8 str r0, [r7, #12]
  39630. 8010fb4: 60b9 str r1, [r7, #8]
  39631. 8010fb6: 607a str r2, [r7, #4]
  39632. 8010fb8: 603b str r3, [r7, #0]
  39633. uint32_t tmpccmr2;
  39634. uint32_t tmpccer;
  39635. /* Disable the Channel 3: Reset the CC3E Bit */
  39636. tmpccer = TIMx->CCER;
  39637. 8010fba: 68fb ldr r3, [r7, #12]
  39638. 8010fbc: 6a1b ldr r3, [r3, #32]
  39639. 8010fbe: 617b str r3, [r7, #20]
  39640. TIMx->CCER &= ~TIM_CCER_CC3E;
  39641. 8010fc0: 68fb ldr r3, [r7, #12]
  39642. 8010fc2: 6a1b ldr r3, [r3, #32]
  39643. 8010fc4: f423 7280 bic.w r2, r3, #256 @ 0x100
  39644. 8010fc8: 68fb ldr r3, [r7, #12]
  39645. 8010fca: 621a str r2, [r3, #32]
  39646. tmpccmr2 = TIMx->CCMR2;
  39647. 8010fcc: 68fb ldr r3, [r7, #12]
  39648. 8010fce: 69db ldr r3, [r3, #28]
  39649. 8010fd0: 613b str r3, [r7, #16]
  39650. /* Select the Input */
  39651. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  39652. 8010fd2: 693b ldr r3, [r7, #16]
  39653. 8010fd4: f023 0303 bic.w r3, r3, #3
  39654. 8010fd8: 613b str r3, [r7, #16]
  39655. tmpccmr2 |= TIM_ICSelection;
  39656. 8010fda: 693a ldr r2, [r7, #16]
  39657. 8010fdc: 687b ldr r3, [r7, #4]
  39658. 8010fde: 4313 orrs r3, r2
  39659. 8010fe0: 613b str r3, [r7, #16]
  39660. /* Set the filter */
  39661. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  39662. 8010fe2: 693b ldr r3, [r7, #16]
  39663. 8010fe4: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39664. 8010fe8: 613b str r3, [r7, #16]
  39665. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  39666. 8010fea: 683b ldr r3, [r7, #0]
  39667. 8010fec: 011b lsls r3, r3, #4
  39668. 8010fee: b2db uxtb r3, r3
  39669. 8010ff0: 693a ldr r2, [r7, #16]
  39670. 8010ff2: 4313 orrs r3, r2
  39671. 8010ff4: 613b str r3, [r7, #16]
  39672. /* Select the Polarity and set the CC3E Bit */
  39673. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  39674. 8010ff6: 697b ldr r3, [r7, #20]
  39675. 8010ff8: f423 6320 bic.w r3, r3, #2560 @ 0xa00
  39676. 8010ffc: 617b str r3, [r7, #20]
  39677. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  39678. 8010ffe: 68bb ldr r3, [r7, #8]
  39679. 8011000: 021b lsls r3, r3, #8
  39680. 8011002: f403 6320 and.w r3, r3, #2560 @ 0xa00
  39681. 8011006: 697a ldr r2, [r7, #20]
  39682. 8011008: 4313 orrs r3, r2
  39683. 801100a: 617b str r3, [r7, #20]
  39684. /* Write to TIMx CCMR2 and CCER registers */
  39685. TIMx->CCMR2 = tmpccmr2;
  39686. 801100c: 68fb ldr r3, [r7, #12]
  39687. 801100e: 693a ldr r2, [r7, #16]
  39688. 8011010: 61da str r2, [r3, #28]
  39689. TIMx->CCER = tmpccer;
  39690. 8011012: 68fb ldr r3, [r7, #12]
  39691. 8011014: 697a ldr r2, [r7, #20]
  39692. 8011016: 621a str r2, [r3, #32]
  39693. }
  39694. 8011018: bf00 nop
  39695. 801101a: 371c adds r7, #28
  39696. 801101c: 46bd mov sp, r7
  39697. 801101e: f85d 7b04 ldr.w r7, [sp], #4
  39698. 8011022: 4770 bx lr
  39699. 08011024 <TIM_TI4_SetConfig>:
  39700. * protected against un-initialized filter and polarity values.
  39701. * @retval None
  39702. */
  39703. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39704. uint32_t TIM_ICFilter)
  39705. {
  39706. 8011024: b480 push {r7}
  39707. 8011026: b087 sub sp, #28
  39708. 8011028: af00 add r7, sp, #0
  39709. 801102a: 60f8 str r0, [r7, #12]
  39710. 801102c: 60b9 str r1, [r7, #8]
  39711. 801102e: 607a str r2, [r7, #4]
  39712. 8011030: 603b str r3, [r7, #0]
  39713. uint32_t tmpccmr2;
  39714. uint32_t tmpccer;
  39715. /* Disable the Channel 4: Reset the CC4E Bit */
  39716. tmpccer = TIMx->CCER;
  39717. 8011032: 68fb ldr r3, [r7, #12]
  39718. 8011034: 6a1b ldr r3, [r3, #32]
  39719. 8011036: 617b str r3, [r7, #20]
  39720. TIMx->CCER &= ~TIM_CCER_CC4E;
  39721. 8011038: 68fb ldr r3, [r7, #12]
  39722. 801103a: 6a1b ldr r3, [r3, #32]
  39723. 801103c: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  39724. 8011040: 68fb ldr r3, [r7, #12]
  39725. 8011042: 621a str r2, [r3, #32]
  39726. tmpccmr2 = TIMx->CCMR2;
  39727. 8011044: 68fb ldr r3, [r7, #12]
  39728. 8011046: 69db ldr r3, [r3, #28]
  39729. 8011048: 613b str r3, [r7, #16]
  39730. /* Select the Input */
  39731. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  39732. 801104a: 693b ldr r3, [r7, #16]
  39733. 801104c: f423 7340 bic.w r3, r3, #768 @ 0x300
  39734. 8011050: 613b str r3, [r7, #16]
  39735. tmpccmr2 |= (TIM_ICSelection << 8U);
  39736. 8011052: 687b ldr r3, [r7, #4]
  39737. 8011054: 021b lsls r3, r3, #8
  39738. 8011056: 693a ldr r2, [r7, #16]
  39739. 8011058: 4313 orrs r3, r2
  39740. 801105a: 613b str r3, [r7, #16]
  39741. /* Set the filter */
  39742. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  39743. 801105c: 693b ldr r3, [r7, #16]
  39744. 801105e: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39745. 8011062: 613b str r3, [r7, #16]
  39746. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  39747. 8011064: 683b ldr r3, [r7, #0]
  39748. 8011066: 031b lsls r3, r3, #12
  39749. 8011068: b29b uxth r3, r3
  39750. 801106a: 693a ldr r2, [r7, #16]
  39751. 801106c: 4313 orrs r3, r2
  39752. 801106e: 613b str r3, [r7, #16]
  39753. /* Select the Polarity and set the CC4E Bit */
  39754. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  39755. 8011070: 697b ldr r3, [r7, #20]
  39756. 8011072: f423 4320 bic.w r3, r3, #40960 @ 0xa000
  39757. 8011076: 617b str r3, [r7, #20]
  39758. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  39759. 8011078: 68bb ldr r3, [r7, #8]
  39760. 801107a: 031b lsls r3, r3, #12
  39761. 801107c: f403 4320 and.w r3, r3, #40960 @ 0xa000
  39762. 8011080: 697a ldr r2, [r7, #20]
  39763. 8011082: 4313 orrs r3, r2
  39764. 8011084: 617b str r3, [r7, #20]
  39765. /* Write to TIMx CCMR2 and CCER registers */
  39766. TIMx->CCMR2 = tmpccmr2;
  39767. 8011086: 68fb ldr r3, [r7, #12]
  39768. 8011088: 693a ldr r2, [r7, #16]
  39769. 801108a: 61da str r2, [r3, #28]
  39770. TIMx->CCER = tmpccer ;
  39771. 801108c: 68fb ldr r3, [r7, #12]
  39772. 801108e: 697a ldr r2, [r7, #20]
  39773. 8011090: 621a str r2, [r3, #32]
  39774. }
  39775. 8011092: bf00 nop
  39776. 8011094: 371c adds r7, #28
  39777. 8011096: 46bd mov sp, r7
  39778. 8011098: f85d 7b04 ldr.w r7, [sp], #4
  39779. 801109c: 4770 bx lr
  39780. ...
  39781. 080110a0 <TIM_ITRx_SetConfig>:
  39782. * (*) Value not defined in all devices.
  39783. *
  39784. * @retval None
  39785. */
  39786. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  39787. {
  39788. 80110a0: b480 push {r7}
  39789. 80110a2: b085 sub sp, #20
  39790. 80110a4: af00 add r7, sp, #0
  39791. 80110a6: 6078 str r0, [r7, #4]
  39792. 80110a8: 6039 str r1, [r7, #0]
  39793. uint32_t tmpsmcr;
  39794. /* Get the TIMx SMCR register value */
  39795. tmpsmcr = TIMx->SMCR;
  39796. 80110aa: 687b ldr r3, [r7, #4]
  39797. 80110ac: 689b ldr r3, [r3, #8]
  39798. 80110ae: 60fb str r3, [r7, #12]
  39799. /* Reset the TS Bits */
  39800. tmpsmcr &= ~TIM_SMCR_TS;
  39801. 80110b0: 68fa ldr r2, [r7, #12]
  39802. 80110b2: 4b09 ldr r3, [pc, #36] @ (80110d8 <TIM_ITRx_SetConfig+0x38>)
  39803. 80110b4: 4013 ands r3, r2
  39804. 80110b6: 60fb str r3, [r7, #12]
  39805. /* Set the Input Trigger source and the slave mode*/
  39806. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  39807. 80110b8: 683a ldr r2, [r7, #0]
  39808. 80110ba: 68fb ldr r3, [r7, #12]
  39809. 80110bc: 4313 orrs r3, r2
  39810. 80110be: f043 0307 orr.w r3, r3, #7
  39811. 80110c2: 60fb str r3, [r7, #12]
  39812. /* Write to TIMx SMCR */
  39813. TIMx->SMCR = tmpsmcr;
  39814. 80110c4: 687b ldr r3, [r7, #4]
  39815. 80110c6: 68fa ldr r2, [r7, #12]
  39816. 80110c8: 609a str r2, [r3, #8]
  39817. }
  39818. 80110ca: bf00 nop
  39819. 80110cc: 3714 adds r7, #20
  39820. 80110ce: 46bd mov sp, r7
  39821. 80110d0: f85d 7b04 ldr.w r7, [sp], #4
  39822. 80110d4: 4770 bx lr
  39823. 80110d6: bf00 nop
  39824. 80110d8: ffcfff8f .word 0xffcfff8f
  39825. 080110dc <TIM_ETR_SetConfig>:
  39826. * This parameter must be a value between 0x00 and 0x0F
  39827. * @retval None
  39828. */
  39829. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  39830. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  39831. {
  39832. 80110dc: b480 push {r7}
  39833. 80110de: b087 sub sp, #28
  39834. 80110e0: af00 add r7, sp, #0
  39835. 80110e2: 60f8 str r0, [r7, #12]
  39836. 80110e4: 60b9 str r1, [r7, #8]
  39837. 80110e6: 607a str r2, [r7, #4]
  39838. 80110e8: 603b str r3, [r7, #0]
  39839. uint32_t tmpsmcr;
  39840. tmpsmcr = TIMx->SMCR;
  39841. 80110ea: 68fb ldr r3, [r7, #12]
  39842. 80110ec: 689b ldr r3, [r3, #8]
  39843. 80110ee: 617b str r3, [r7, #20]
  39844. /* Reset the ETR Bits */
  39845. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  39846. 80110f0: 697b ldr r3, [r7, #20]
  39847. 80110f2: f423 437f bic.w r3, r3, #65280 @ 0xff00
  39848. 80110f6: 617b str r3, [r7, #20]
  39849. /* Set the Prescaler, the Filter value and the Polarity */
  39850. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  39851. 80110f8: 683b ldr r3, [r7, #0]
  39852. 80110fa: 021a lsls r2, r3, #8
  39853. 80110fc: 687b ldr r3, [r7, #4]
  39854. 80110fe: 431a orrs r2, r3
  39855. 8011100: 68bb ldr r3, [r7, #8]
  39856. 8011102: 4313 orrs r3, r2
  39857. 8011104: 697a ldr r2, [r7, #20]
  39858. 8011106: 4313 orrs r3, r2
  39859. 8011108: 617b str r3, [r7, #20]
  39860. /* Write to TIMx SMCR */
  39861. TIMx->SMCR = tmpsmcr;
  39862. 801110a: 68fb ldr r3, [r7, #12]
  39863. 801110c: 697a ldr r2, [r7, #20]
  39864. 801110e: 609a str r2, [r3, #8]
  39865. }
  39866. 8011110: bf00 nop
  39867. 8011112: 371c adds r7, #28
  39868. 8011114: 46bd mov sp, r7
  39869. 8011116: f85d 7b04 ldr.w r7, [sp], #4
  39870. 801111a: 4770 bx lr
  39871. 0801111c <TIM_CCxChannelCmd>:
  39872. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  39873. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  39874. * @retval None
  39875. */
  39876. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  39877. {
  39878. 801111c: b480 push {r7}
  39879. 801111e: b087 sub sp, #28
  39880. 8011120: af00 add r7, sp, #0
  39881. 8011122: 60f8 str r0, [r7, #12]
  39882. 8011124: 60b9 str r1, [r7, #8]
  39883. 8011126: 607a str r2, [r7, #4]
  39884. /* Check the parameters */
  39885. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  39886. assert_param(IS_TIM_CHANNELS(Channel));
  39887. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  39888. 8011128: 68bb ldr r3, [r7, #8]
  39889. 801112a: f003 031f and.w r3, r3, #31
  39890. 801112e: 2201 movs r2, #1
  39891. 8011130: fa02 f303 lsl.w r3, r2, r3
  39892. 8011134: 617b str r3, [r7, #20]
  39893. /* Reset the CCxE Bit */
  39894. TIMx->CCER &= ~tmp;
  39895. 8011136: 68fb ldr r3, [r7, #12]
  39896. 8011138: 6a1a ldr r2, [r3, #32]
  39897. 801113a: 697b ldr r3, [r7, #20]
  39898. 801113c: 43db mvns r3, r3
  39899. 801113e: 401a ands r2, r3
  39900. 8011140: 68fb ldr r3, [r7, #12]
  39901. 8011142: 621a str r2, [r3, #32]
  39902. /* Set or reset the CCxE Bit */
  39903. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  39904. 8011144: 68fb ldr r3, [r7, #12]
  39905. 8011146: 6a1a ldr r2, [r3, #32]
  39906. 8011148: 68bb ldr r3, [r7, #8]
  39907. 801114a: f003 031f and.w r3, r3, #31
  39908. 801114e: 6879 ldr r1, [r7, #4]
  39909. 8011150: fa01 f303 lsl.w r3, r1, r3
  39910. 8011154: 431a orrs r2, r3
  39911. 8011156: 68fb ldr r3, [r7, #12]
  39912. 8011158: 621a str r2, [r3, #32]
  39913. }
  39914. 801115a: bf00 nop
  39915. 801115c: 371c adds r7, #28
  39916. 801115e: 46bd mov sp, r7
  39917. 8011160: f85d 7b04 ldr.w r7, [sp], #4
  39918. 8011164: 4770 bx lr
  39919. ...
  39920. 08011168 <HAL_TIMEx_MasterConfigSynchronization>:
  39921. * mode.
  39922. * @retval HAL status
  39923. */
  39924. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  39925. const TIM_MasterConfigTypeDef *sMasterConfig)
  39926. {
  39927. 8011168: b480 push {r7}
  39928. 801116a: b085 sub sp, #20
  39929. 801116c: af00 add r7, sp, #0
  39930. 801116e: 6078 str r0, [r7, #4]
  39931. 8011170: 6039 str r1, [r7, #0]
  39932. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  39933. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  39934. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  39935. /* Check input state */
  39936. __HAL_LOCK(htim);
  39937. 8011172: 687b ldr r3, [r7, #4]
  39938. 8011174: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  39939. 8011178: 2b01 cmp r3, #1
  39940. 801117a: d101 bne.n 8011180 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  39941. 801117c: 2302 movs r3, #2
  39942. 801117e: e06d b.n 801125c <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  39943. 8011180: 687b ldr r3, [r7, #4]
  39944. 8011182: 2201 movs r2, #1
  39945. 8011184: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39946. /* Change the handler state */
  39947. htim->State = HAL_TIM_STATE_BUSY;
  39948. 8011188: 687b ldr r3, [r7, #4]
  39949. 801118a: 2202 movs r2, #2
  39950. 801118c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  39951. /* Get the TIMx CR2 register value */
  39952. tmpcr2 = htim->Instance->CR2;
  39953. 8011190: 687b ldr r3, [r7, #4]
  39954. 8011192: 681b ldr r3, [r3, #0]
  39955. 8011194: 685b ldr r3, [r3, #4]
  39956. 8011196: 60fb str r3, [r7, #12]
  39957. /* Get the TIMx SMCR register value */
  39958. tmpsmcr = htim->Instance->SMCR;
  39959. 8011198: 687b ldr r3, [r7, #4]
  39960. 801119a: 681b ldr r3, [r3, #0]
  39961. 801119c: 689b ldr r3, [r3, #8]
  39962. 801119e: 60bb str r3, [r7, #8]
  39963. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  39964. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  39965. 80111a0: 687b ldr r3, [r7, #4]
  39966. 80111a2: 681b ldr r3, [r3, #0]
  39967. 80111a4: 4a30 ldr r2, [pc, #192] @ (8011268 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  39968. 80111a6: 4293 cmp r3, r2
  39969. 80111a8: d004 beq.n 80111b4 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  39970. 80111aa: 687b ldr r3, [r7, #4]
  39971. 80111ac: 681b ldr r3, [r3, #0]
  39972. 80111ae: 4a2f ldr r2, [pc, #188] @ (801126c <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  39973. 80111b0: 4293 cmp r3, r2
  39974. 80111b2: d108 bne.n 80111c6 <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  39975. {
  39976. /* Check the parameters */
  39977. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  39978. /* Clear the MMS2 bits */
  39979. tmpcr2 &= ~TIM_CR2_MMS2;
  39980. 80111b4: 68fb ldr r3, [r7, #12]
  39981. 80111b6: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  39982. 80111ba: 60fb str r3, [r7, #12]
  39983. /* Select the TRGO2 source*/
  39984. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  39985. 80111bc: 683b ldr r3, [r7, #0]
  39986. 80111be: 685b ldr r3, [r3, #4]
  39987. 80111c0: 68fa ldr r2, [r7, #12]
  39988. 80111c2: 4313 orrs r3, r2
  39989. 80111c4: 60fb str r3, [r7, #12]
  39990. }
  39991. /* Reset the MMS Bits */
  39992. tmpcr2 &= ~TIM_CR2_MMS;
  39993. 80111c6: 68fb ldr r3, [r7, #12]
  39994. 80111c8: f023 0370 bic.w r3, r3, #112 @ 0x70
  39995. 80111cc: 60fb str r3, [r7, #12]
  39996. /* Select the TRGO source */
  39997. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  39998. 80111ce: 683b ldr r3, [r7, #0]
  39999. 80111d0: 681b ldr r3, [r3, #0]
  40000. 80111d2: 68fa ldr r2, [r7, #12]
  40001. 80111d4: 4313 orrs r3, r2
  40002. 80111d6: 60fb str r3, [r7, #12]
  40003. /* Update TIMx CR2 */
  40004. htim->Instance->CR2 = tmpcr2;
  40005. 80111d8: 687b ldr r3, [r7, #4]
  40006. 80111da: 681b ldr r3, [r3, #0]
  40007. 80111dc: 68fa ldr r2, [r7, #12]
  40008. 80111de: 605a str r2, [r3, #4]
  40009. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  40010. 80111e0: 687b ldr r3, [r7, #4]
  40011. 80111e2: 681b ldr r3, [r3, #0]
  40012. 80111e4: 4a20 ldr r2, [pc, #128] @ (8011268 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  40013. 80111e6: 4293 cmp r3, r2
  40014. 80111e8: d022 beq.n 8011230 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40015. 80111ea: 687b ldr r3, [r7, #4]
  40016. 80111ec: 681b ldr r3, [r3, #0]
  40017. 80111ee: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  40018. 80111f2: d01d beq.n 8011230 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40019. 80111f4: 687b ldr r3, [r7, #4]
  40020. 80111f6: 681b ldr r3, [r3, #0]
  40021. 80111f8: 4a1d ldr r2, [pc, #116] @ (8011270 <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  40022. 80111fa: 4293 cmp r3, r2
  40023. 80111fc: d018 beq.n 8011230 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40024. 80111fe: 687b ldr r3, [r7, #4]
  40025. 8011200: 681b ldr r3, [r3, #0]
  40026. 8011202: 4a1c ldr r2, [pc, #112] @ (8011274 <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  40027. 8011204: 4293 cmp r3, r2
  40028. 8011206: d013 beq.n 8011230 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40029. 8011208: 687b ldr r3, [r7, #4]
  40030. 801120a: 681b ldr r3, [r3, #0]
  40031. 801120c: 4a1a ldr r2, [pc, #104] @ (8011278 <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  40032. 801120e: 4293 cmp r3, r2
  40033. 8011210: d00e beq.n 8011230 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40034. 8011212: 687b ldr r3, [r7, #4]
  40035. 8011214: 681b ldr r3, [r3, #0]
  40036. 8011216: 4a15 ldr r2, [pc, #84] @ (801126c <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  40037. 8011218: 4293 cmp r3, r2
  40038. 801121a: d009 beq.n 8011230 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40039. 801121c: 687b ldr r3, [r7, #4]
  40040. 801121e: 681b ldr r3, [r3, #0]
  40041. 8011220: 4a16 ldr r2, [pc, #88] @ (801127c <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  40042. 8011222: 4293 cmp r3, r2
  40043. 8011224: d004 beq.n 8011230 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40044. 8011226: 687b ldr r3, [r7, #4]
  40045. 8011228: 681b ldr r3, [r3, #0]
  40046. 801122a: 4a15 ldr r2, [pc, #84] @ (8011280 <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  40047. 801122c: 4293 cmp r3, r2
  40048. 801122e: d10c bne.n 801124a <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  40049. {
  40050. /* Reset the MSM Bit */
  40051. tmpsmcr &= ~TIM_SMCR_MSM;
  40052. 8011230: 68bb ldr r3, [r7, #8]
  40053. 8011232: f023 0380 bic.w r3, r3, #128 @ 0x80
  40054. 8011236: 60bb str r3, [r7, #8]
  40055. /* Set master mode */
  40056. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  40057. 8011238: 683b ldr r3, [r7, #0]
  40058. 801123a: 689b ldr r3, [r3, #8]
  40059. 801123c: 68ba ldr r2, [r7, #8]
  40060. 801123e: 4313 orrs r3, r2
  40061. 8011240: 60bb str r3, [r7, #8]
  40062. /* Update TIMx SMCR */
  40063. htim->Instance->SMCR = tmpsmcr;
  40064. 8011242: 687b ldr r3, [r7, #4]
  40065. 8011244: 681b ldr r3, [r3, #0]
  40066. 8011246: 68ba ldr r2, [r7, #8]
  40067. 8011248: 609a str r2, [r3, #8]
  40068. }
  40069. /* Change the htim state */
  40070. htim->State = HAL_TIM_STATE_READY;
  40071. 801124a: 687b ldr r3, [r7, #4]
  40072. 801124c: 2201 movs r2, #1
  40073. 801124e: f883 203d strb.w r2, [r3, #61] @ 0x3d
  40074. __HAL_UNLOCK(htim);
  40075. 8011252: 687b ldr r3, [r7, #4]
  40076. 8011254: 2200 movs r2, #0
  40077. 8011256: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40078. return HAL_OK;
  40079. 801125a: 2300 movs r3, #0
  40080. }
  40081. 801125c: 4618 mov r0, r3
  40082. 801125e: 3714 adds r7, #20
  40083. 8011260: 46bd mov sp, r7
  40084. 8011262: f85d 7b04 ldr.w r7, [sp], #4
  40085. 8011266: 4770 bx lr
  40086. 8011268: 40010000 .word 0x40010000
  40087. 801126c: 40010400 .word 0x40010400
  40088. 8011270: 40000400 .word 0x40000400
  40089. 8011274: 40000800 .word 0x40000800
  40090. 8011278: 40000c00 .word 0x40000c00
  40091. 801127c: 40001800 .word 0x40001800
  40092. 8011280: 40014000 .word 0x40014000
  40093. 08011284 <HAL_TIMEx_ConfigBreakDeadTime>:
  40094. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  40095. * @retval HAL status
  40096. */
  40097. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  40098. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  40099. {
  40100. 8011284: b480 push {r7}
  40101. 8011286: b085 sub sp, #20
  40102. 8011288: af00 add r7, sp, #0
  40103. 801128a: 6078 str r0, [r7, #4]
  40104. 801128c: 6039 str r1, [r7, #0]
  40105. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  40106. uint32_t tmpbdtr = 0U;
  40107. 801128e: 2300 movs r3, #0
  40108. 8011290: 60fb str r3, [r7, #12]
  40109. #if defined(TIM_BDTR_BKBID)
  40110. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  40111. #endif /* TIM_BDTR_BKBID */
  40112. /* Check input state */
  40113. __HAL_LOCK(htim);
  40114. 8011292: 687b ldr r3, [r7, #4]
  40115. 8011294: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  40116. 8011298: 2b01 cmp r3, #1
  40117. 801129a: d101 bne.n 80112a0 <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  40118. 801129c: 2302 movs r3, #2
  40119. 801129e: e065 b.n 801136c <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  40120. 80112a0: 687b ldr r3, [r7, #4]
  40121. 80112a2: 2201 movs r2, #1
  40122. 80112a4: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40123. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  40124. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  40125. /* Set the BDTR bits */
  40126. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  40127. 80112a8: 68fb ldr r3, [r7, #12]
  40128. 80112aa: f023 02ff bic.w r2, r3, #255 @ 0xff
  40129. 80112ae: 683b ldr r3, [r7, #0]
  40130. 80112b0: 68db ldr r3, [r3, #12]
  40131. 80112b2: 4313 orrs r3, r2
  40132. 80112b4: 60fb str r3, [r7, #12]
  40133. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  40134. 80112b6: 68fb ldr r3, [r7, #12]
  40135. 80112b8: f423 7240 bic.w r2, r3, #768 @ 0x300
  40136. 80112bc: 683b ldr r3, [r7, #0]
  40137. 80112be: 689b ldr r3, [r3, #8]
  40138. 80112c0: 4313 orrs r3, r2
  40139. 80112c2: 60fb str r3, [r7, #12]
  40140. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  40141. 80112c4: 68fb ldr r3, [r7, #12]
  40142. 80112c6: f423 6280 bic.w r2, r3, #1024 @ 0x400
  40143. 80112ca: 683b ldr r3, [r7, #0]
  40144. 80112cc: 685b ldr r3, [r3, #4]
  40145. 80112ce: 4313 orrs r3, r2
  40146. 80112d0: 60fb str r3, [r7, #12]
  40147. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  40148. 80112d2: 68fb ldr r3, [r7, #12]
  40149. 80112d4: f423 6200 bic.w r2, r3, #2048 @ 0x800
  40150. 80112d8: 683b ldr r3, [r7, #0]
  40151. 80112da: 681b ldr r3, [r3, #0]
  40152. 80112dc: 4313 orrs r3, r2
  40153. 80112de: 60fb str r3, [r7, #12]
  40154. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  40155. 80112e0: 68fb ldr r3, [r7, #12]
  40156. 80112e2: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  40157. 80112e6: 683b ldr r3, [r7, #0]
  40158. 80112e8: 691b ldr r3, [r3, #16]
  40159. 80112ea: 4313 orrs r3, r2
  40160. 80112ec: 60fb str r3, [r7, #12]
  40161. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  40162. 80112ee: 68fb ldr r3, [r7, #12]
  40163. 80112f0: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  40164. 80112f4: 683b ldr r3, [r7, #0]
  40165. 80112f6: 695b ldr r3, [r3, #20]
  40166. 80112f8: 4313 orrs r3, r2
  40167. 80112fa: 60fb str r3, [r7, #12]
  40168. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  40169. 80112fc: 68fb ldr r3, [r7, #12]
  40170. 80112fe: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  40171. 8011302: 683b ldr r3, [r7, #0]
  40172. 8011304: 6a9b ldr r3, [r3, #40] @ 0x28
  40173. 8011306: 4313 orrs r3, r2
  40174. 8011308: 60fb str r3, [r7, #12]
  40175. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  40176. 801130a: 68fb ldr r3, [r7, #12]
  40177. 801130c: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  40178. 8011310: 683b ldr r3, [r7, #0]
  40179. 8011312: 699b ldr r3, [r3, #24]
  40180. 8011314: 041b lsls r3, r3, #16
  40181. 8011316: 4313 orrs r3, r2
  40182. 8011318: 60fb str r3, [r7, #12]
  40183. #if defined(TIM_BDTR_BKBID)
  40184. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  40185. #endif /* TIM_BDTR_BKBID */
  40186. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  40187. 801131a: 687b ldr r3, [r7, #4]
  40188. 801131c: 681b ldr r3, [r3, #0]
  40189. 801131e: 4a16 ldr r2, [pc, #88] @ (8011378 <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  40190. 8011320: 4293 cmp r3, r2
  40191. 8011322: d004 beq.n 801132e <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  40192. 8011324: 687b ldr r3, [r7, #4]
  40193. 8011326: 681b ldr r3, [r3, #0]
  40194. 8011328: 4a14 ldr r2, [pc, #80] @ (801137c <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  40195. 801132a: 4293 cmp r3, r2
  40196. 801132c: d115 bne.n 801135a <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  40197. #if defined(TIM_BDTR_BKBID)
  40198. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  40199. #endif /* TIM_BDTR_BKBID */
  40200. /* Set the BREAK2 input related BDTR bits */
  40201. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  40202. 801132e: 68fb ldr r3, [r7, #12]
  40203. 8011330: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  40204. 8011334: 683b ldr r3, [r7, #0]
  40205. 8011336: 6a5b ldr r3, [r3, #36] @ 0x24
  40206. 8011338: 051b lsls r3, r3, #20
  40207. 801133a: 4313 orrs r3, r2
  40208. 801133c: 60fb str r3, [r7, #12]
  40209. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  40210. 801133e: 68fb ldr r3, [r7, #12]
  40211. 8011340: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  40212. 8011344: 683b ldr r3, [r7, #0]
  40213. 8011346: 69db ldr r3, [r3, #28]
  40214. 8011348: 4313 orrs r3, r2
  40215. 801134a: 60fb str r3, [r7, #12]
  40216. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  40217. 801134c: 68fb ldr r3, [r7, #12]
  40218. 801134e: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  40219. 8011352: 683b ldr r3, [r7, #0]
  40220. 8011354: 6a1b ldr r3, [r3, #32]
  40221. 8011356: 4313 orrs r3, r2
  40222. 8011358: 60fb str r3, [r7, #12]
  40223. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  40224. #endif /* TIM_BDTR_BKBID */
  40225. }
  40226. /* Set TIMx_BDTR */
  40227. htim->Instance->BDTR = tmpbdtr;
  40228. 801135a: 687b ldr r3, [r7, #4]
  40229. 801135c: 681b ldr r3, [r3, #0]
  40230. 801135e: 68fa ldr r2, [r7, #12]
  40231. 8011360: 645a str r2, [r3, #68] @ 0x44
  40232. __HAL_UNLOCK(htim);
  40233. 8011362: 687b ldr r3, [r7, #4]
  40234. 8011364: 2200 movs r2, #0
  40235. 8011366: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40236. return HAL_OK;
  40237. 801136a: 2300 movs r3, #0
  40238. }
  40239. 801136c: 4618 mov r0, r3
  40240. 801136e: 3714 adds r7, #20
  40241. 8011370: 46bd mov sp, r7
  40242. 8011372: f85d 7b04 ldr.w r7, [sp], #4
  40243. 8011376: 4770 bx lr
  40244. 8011378: 40010000 .word 0x40010000
  40245. 801137c: 40010400 .word 0x40010400
  40246. 08011380 <HAL_TIMEx_CommutCallback>:
  40247. * @brief Commutation callback in non-blocking mode
  40248. * @param htim TIM handle
  40249. * @retval None
  40250. */
  40251. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  40252. {
  40253. 8011380: b480 push {r7}
  40254. 8011382: b083 sub sp, #12
  40255. 8011384: af00 add r7, sp, #0
  40256. 8011386: 6078 str r0, [r7, #4]
  40257. UNUSED(htim);
  40258. /* NOTE : This function should not be modified, when the callback is needed,
  40259. the HAL_TIMEx_CommutCallback could be implemented in the user file
  40260. */
  40261. }
  40262. 8011388: bf00 nop
  40263. 801138a: 370c adds r7, #12
  40264. 801138c: 46bd mov sp, r7
  40265. 801138e: f85d 7b04 ldr.w r7, [sp], #4
  40266. 8011392: 4770 bx lr
  40267. 08011394 <HAL_TIMEx_BreakCallback>:
  40268. * @brief Break detection callback in non-blocking mode
  40269. * @param htim TIM handle
  40270. * @retval None
  40271. */
  40272. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  40273. {
  40274. 8011394: b480 push {r7}
  40275. 8011396: b083 sub sp, #12
  40276. 8011398: af00 add r7, sp, #0
  40277. 801139a: 6078 str r0, [r7, #4]
  40278. UNUSED(htim);
  40279. /* NOTE : This function should not be modified, when the callback is needed,
  40280. the HAL_TIMEx_BreakCallback could be implemented in the user file
  40281. */
  40282. }
  40283. 801139c: bf00 nop
  40284. 801139e: 370c adds r7, #12
  40285. 80113a0: 46bd mov sp, r7
  40286. 80113a2: f85d 7b04 ldr.w r7, [sp], #4
  40287. 80113a6: 4770 bx lr
  40288. 080113a8 <HAL_TIMEx_Break2Callback>:
  40289. * @brief Break2 detection callback in non blocking mode
  40290. * @param htim: TIM handle
  40291. * @retval None
  40292. */
  40293. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  40294. {
  40295. 80113a8: b480 push {r7}
  40296. 80113aa: b083 sub sp, #12
  40297. 80113ac: af00 add r7, sp, #0
  40298. 80113ae: 6078 str r0, [r7, #4]
  40299. UNUSED(htim);
  40300. /* NOTE : This function Should not be modified, when the callback is needed,
  40301. the HAL_TIMEx_Break2Callback could be implemented in the user file
  40302. */
  40303. }
  40304. 80113b0: bf00 nop
  40305. 80113b2: 370c adds r7, #12
  40306. 80113b4: 46bd mov sp, r7
  40307. 80113b6: f85d 7b04 ldr.w r7, [sp], #4
  40308. 80113ba: 4770 bx lr
  40309. 080113bc <HAL_UART_Init>:
  40310. * parameters in the UART_InitTypeDef and initialize the associated handle.
  40311. * @param huart UART handle.
  40312. * @retval HAL status
  40313. */
  40314. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  40315. {
  40316. 80113bc: b580 push {r7, lr}
  40317. 80113be: b082 sub sp, #8
  40318. 80113c0: af00 add r7, sp, #0
  40319. 80113c2: 6078 str r0, [r7, #4]
  40320. /* Check the UART handle allocation */
  40321. if (huart == NULL)
  40322. 80113c4: 687b ldr r3, [r7, #4]
  40323. 80113c6: 2b00 cmp r3, #0
  40324. 80113c8: d101 bne.n 80113ce <HAL_UART_Init+0x12>
  40325. {
  40326. return HAL_ERROR;
  40327. 80113ca: 2301 movs r3, #1
  40328. 80113cc: e042 b.n 8011454 <HAL_UART_Init+0x98>
  40329. {
  40330. /* Check the parameters */
  40331. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  40332. }
  40333. if (huart->gState == HAL_UART_STATE_RESET)
  40334. 80113ce: 687b ldr r3, [r7, #4]
  40335. 80113d0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40336. 80113d4: 2b00 cmp r3, #0
  40337. 80113d6: d106 bne.n 80113e6 <HAL_UART_Init+0x2a>
  40338. {
  40339. /* Allocate lock resource and initialize it */
  40340. huart->Lock = HAL_UNLOCKED;
  40341. 80113d8: 687b ldr r3, [r7, #4]
  40342. 80113da: 2200 movs r2, #0
  40343. 80113dc: f883 2084 strb.w r2, [r3, #132] @ 0x84
  40344. /* Init the low level hardware */
  40345. huart->MspInitCallback(huart);
  40346. #else
  40347. /* Init the low level hardware : GPIO, CLOCK */
  40348. HAL_UART_MspInit(huart);
  40349. 80113e0: 6878 ldr r0, [r7, #4]
  40350. 80113e2: f7f3 f881 bl 80044e8 <HAL_UART_MspInit>
  40351. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40352. }
  40353. huart->gState = HAL_UART_STATE_BUSY;
  40354. 80113e6: 687b ldr r3, [r7, #4]
  40355. 80113e8: 2224 movs r2, #36 @ 0x24
  40356. 80113ea: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40357. __HAL_UART_DISABLE(huart);
  40358. 80113ee: 687b ldr r3, [r7, #4]
  40359. 80113f0: 681b ldr r3, [r3, #0]
  40360. 80113f2: 681a ldr r2, [r3, #0]
  40361. 80113f4: 687b ldr r3, [r7, #4]
  40362. 80113f6: 681b ldr r3, [r3, #0]
  40363. 80113f8: f022 0201 bic.w r2, r2, #1
  40364. 80113fc: 601a str r2, [r3, #0]
  40365. /* Perform advanced settings configuration */
  40366. /* For some items, configuration requires to be done prior TE and RE bits are set */
  40367. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  40368. 80113fe: 687b ldr r3, [r7, #4]
  40369. 8011400: 6a9b ldr r3, [r3, #40] @ 0x28
  40370. 8011402: 2b00 cmp r3, #0
  40371. 8011404: d002 beq.n 801140c <HAL_UART_Init+0x50>
  40372. {
  40373. UART_AdvFeatureConfig(huart);
  40374. 8011406: 6878 ldr r0, [r7, #4]
  40375. 8011408: f001 f9e8 bl 80127dc <UART_AdvFeatureConfig>
  40376. }
  40377. /* Set the UART Communication parameters */
  40378. if (UART_SetConfig(huart) == HAL_ERROR)
  40379. 801140c: 6878 ldr r0, [r7, #4]
  40380. 801140e: f000 fc7d bl 8011d0c <UART_SetConfig>
  40381. 8011412: 4603 mov r3, r0
  40382. 8011414: 2b01 cmp r3, #1
  40383. 8011416: d101 bne.n 801141c <HAL_UART_Init+0x60>
  40384. {
  40385. return HAL_ERROR;
  40386. 8011418: 2301 movs r3, #1
  40387. 801141a: e01b b.n 8011454 <HAL_UART_Init+0x98>
  40388. }
  40389. /* In asynchronous mode, the following bits must be kept cleared:
  40390. - LINEN and CLKEN bits in the USART_CR2 register,
  40391. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  40392. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  40393. 801141c: 687b ldr r3, [r7, #4]
  40394. 801141e: 681b ldr r3, [r3, #0]
  40395. 8011420: 685a ldr r2, [r3, #4]
  40396. 8011422: 687b ldr r3, [r7, #4]
  40397. 8011424: 681b ldr r3, [r3, #0]
  40398. 8011426: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  40399. 801142a: 605a str r2, [r3, #4]
  40400. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  40401. 801142c: 687b ldr r3, [r7, #4]
  40402. 801142e: 681b ldr r3, [r3, #0]
  40403. 8011430: 689a ldr r2, [r3, #8]
  40404. 8011432: 687b ldr r3, [r7, #4]
  40405. 8011434: 681b ldr r3, [r3, #0]
  40406. 8011436: f022 022a bic.w r2, r2, #42 @ 0x2a
  40407. 801143a: 609a str r2, [r3, #8]
  40408. __HAL_UART_ENABLE(huart);
  40409. 801143c: 687b ldr r3, [r7, #4]
  40410. 801143e: 681b ldr r3, [r3, #0]
  40411. 8011440: 681a ldr r2, [r3, #0]
  40412. 8011442: 687b ldr r3, [r7, #4]
  40413. 8011444: 681b ldr r3, [r3, #0]
  40414. 8011446: f042 0201 orr.w r2, r2, #1
  40415. 801144a: 601a str r2, [r3, #0]
  40416. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  40417. return (UART_CheckIdleState(huart));
  40418. 801144c: 6878 ldr r0, [r7, #4]
  40419. 801144e: f001 fa67 bl 8012920 <UART_CheckIdleState>
  40420. 8011452: 4603 mov r3, r0
  40421. }
  40422. 8011454: 4618 mov r0, r3
  40423. 8011456: 3708 adds r7, #8
  40424. 8011458: 46bd mov sp, r7
  40425. 801145a: bd80 pop {r7, pc}
  40426. 0801145c <HAL_UART_Transmit_IT>:
  40427. * @param pData Pointer to data buffer (u8 or u16 data elements).
  40428. * @param Size Amount of data elements (u8 or u16) to be sent.
  40429. * @retval HAL status
  40430. */
  40431. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  40432. {
  40433. 801145c: b480 push {r7}
  40434. 801145e: b091 sub sp, #68 @ 0x44
  40435. 8011460: af00 add r7, sp, #0
  40436. 8011462: 60f8 str r0, [r7, #12]
  40437. 8011464: 60b9 str r1, [r7, #8]
  40438. 8011466: 4613 mov r3, r2
  40439. 8011468: 80fb strh r3, [r7, #6]
  40440. /* Check that a Tx process is not already ongoing */
  40441. if (huart->gState == HAL_UART_STATE_READY)
  40442. 801146a: 68fb ldr r3, [r7, #12]
  40443. 801146c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40444. 8011470: 2b20 cmp r3, #32
  40445. 8011472: d178 bne.n 8011566 <HAL_UART_Transmit_IT+0x10a>
  40446. {
  40447. if ((pData == NULL) || (Size == 0U))
  40448. 8011474: 68bb ldr r3, [r7, #8]
  40449. 8011476: 2b00 cmp r3, #0
  40450. 8011478: d002 beq.n 8011480 <HAL_UART_Transmit_IT+0x24>
  40451. 801147a: 88fb ldrh r3, [r7, #6]
  40452. 801147c: 2b00 cmp r3, #0
  40453. 801147e: d101 bne.n 8011484 <HAL_UART_Transmit_IT+0x28>
  40454. {
  40455. return HAL_ERROR;
  40456. 8011480: 2301 movs r3, #1
  40457. 8011482: e071 b.n 8011568 <HAL_UART_Transmit_IT+0x10c>
  40458. }
  40459. huart->pTxBuffPtr = pData;
  40460. 8011484: 68fb ldr r3, [r7, #12]
  40461. 8011486: 68ba ldr r2, [r7, #8]
  40462. 8011488: 651a str r2, [r3, #80] @ 0x50
  40463. huart->TxXferSize = Size;
  40464. 801148a: 68fb ldr r3, [r7, #12]
  40465. 801148c: 88fa ldrh r2, [r7, #6]
  40466. 801148e: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  40467. huart->TxXferCount = Size;
  40468. 8011492: 68fb ldr r3, [r7, #12]
  40469. 8011494: 88fa ldrh r2, [r7, #6]
  40470. 8011496: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  40471. huart->TxISR = NULL;
  40472. 801149a: 68fb ldr r3, [r7, #12]
  40473. 801149c: 2200 movs r2, #0
  40474. 801149e: 679a str r2, [r3, #120] @ 0x78
  40475. huart->ErrorCode = HAL_UART_ERROR_NONE;
  40476. 80114a0: 68fb ldr r3, [r7, #12]
  40477. 80114a2: 2200 movs r2, #0
  40478. 80114a4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40479. huart->gState = HAL_UART_STATE_BUSY_TX;
  40480. 80114a8: 68fb ldr r3, [r7, #12]
  40481. 80114aa: 2221 movs r2, #33 @ 0x21
  40482. 80114ac: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40483. /* Configure Tx interrupt processing */
  40484. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  40485. 80114b0: 68fb ldr r3, [r7, #12]
  40486. 80114b2: 6e5b ldr r3, [r3, #100] @ 0x64
  40487. 80114b4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  40488. 80114b8: d12a bne.n 8011510 <HAL_UART_Transmit_IT+0xb4>
  40489. {
  40490. /* Set the Tx ISR function pointer according to the data word length */
  40491. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40492. 80114ba: 68fb ldr r3, [r7, #12]
  40493. 80114bc: 689b ldr r3, [r3, #8]
  40494. 80114be: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40495. 80114c2: d107 bne.n 80114d4 <HAL_UART_Transmit_IT+0x78>
  40496. 80114c4: 68fb ldr r3, [r7, #12]
  40497. 80114c6: 691b ldr r3, [r3, #16]
  40498. 80114c8: 2b00 cmp r3, #0
  40499. 80114ca: d103 bne.n 80114d4 <HAL_UART_Transmit_IT+0x78>
  40500. {
  40501. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  40502. 80114cc: 68fb ldr r3, [r7, #12]
  40503. 80114ce: 4a29 ldr r2, [pc, #164] @ (8011574 <HAL_UART_Transmit_IT+0x118>)
  40504. 80114d0: 679a str r2, [r3, #120] @ 0x78
  40505. 80114d2: e002 b.n 80114da <HAL_UART_Transmit_IT+0x7e>
  40506. }
  40507. else
  40508. {
  40509. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  40510. 80114d4: 68fb ldr r3, [r7, #12]
  40511. 80114d6: 4a28 ldr r2, [pc, #160] @ (8011578 <HAL_UART_Transmit_IT+0x11c>)
  40512. 80114d8: 679a str r2, [r3, #120] @ 0x78
  40513. }
  40514. /* Enable the TX FIFO threshold interrupt */
  40515. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  40516. 80114da: 68fb ldr r3, [r7, #12]
  40517. 80114dc: 681b ldr r3, [r3, #0]
  40518. 80114de: 3308 adds r3, #8
  40519. 80114e0: 62bb str r3, [r7, #40] @ 0x28
  40520. */
  40521. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  40522. {
  40523. uint32_t result;
  40524. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40525. 80114e2: 6abb ldr r3, [r7, #40] @ 0x28
  40526. 80114e4: e853 3f00 ldrex r3, [r3]
  40527. 80114e8: 627b str r3, [r7, #36] @ 0x24
  40528. return(result);
  40529. 80114ea: 6a7b ldr r3, [r7, #36] @ 0x24
  40530. 80114ec: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  40531. 80114f0: 63bb str r3, [r7, #56] @ 0x38
  40532. 80114f2: 68fb ldr r3, [r7, #12]
  40533. 80114f4: 681b ldr r3, [r3, #0]
  40534. 80114f6: 3308 adds r3, #8
  40535. 80114f8: 6bba ldr r2, [r7, #56] @ 0x38
  40536. 80114fa: 637a str r2, [r7, #52] @ 0x34
  40537. 80114fc: 633b str r3, [r7, #48] @ 0x30
  40538. */
  40539. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  40540. {
  40541. uint32_t result;
  40542. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40543. 80114fe: 6b39 ldr r1, [r7, #48] @ 0x30
  40544. 8011500: 6b7a ldr r2, [r7, #52] @ 0x34
  40545. 8011502: e841 2300 strex r3, r2, [r1]
  40546. 8011506: 62fb str r3, [r7, #44] @ 0x2c
  40547. return(result);
  40548. 8011508: 6afb ldr r3, [r7, #44] @ 0x2c
  40549. 801150a: 2b00 cmp r3, #0
  40550. 801150c: d1e5 bne.n 80114da <HAL_UART_Transmit_IT+0x7e>
  40551. 801150e: e028 b.n 8011562 <HAL_UART_Transmit_IT+0x106>
  40552. }
  40553. else
  40554. {
  40555. /* Set the Tx ISR function pointer according to the data word length */
  40556. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40557. 8011510: 68fb ldr r3, [r7, #12]
  40558. 8011512: 689b ldr r3, [r3, #8]
  40559. 8011514: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40560. 8011518: d107 bne.n 801152a <HAL_UART_Transmit_IT+0xce>
  40561. 801151a: 68fb ldr r3, [r7, #12]
  40562. 801151c: 691b ldr r3, [r3, #16]
  40563. 801151e: 2b00 cmp r3, #0
  40564. 8011520: d103 bne.n 801152a <HAL_UART_Transmit_IT+0xce>
  40565. {
  40566. huart->TxISR = UART_TxISR_16BIT;
  40567. 8011522: 68fb ldr r3, [r7, #12]
  40568. 8011524: 4a15 ldr r2, [pc, #84] @ (801157c <HAL_UART_Transmit_IT+0x120>)
  40569. 8011526: 679a str r2, [r3, #120] @ 0x78
  40570. 8011528: e002 b.n 8011530 <HAL_UART_Transmit_IT+0xd4>
  40571. }
  40572. else
  40573. {
  40574. huart->TxISR = UART_TxISR_8BIT;
  40575. 801152a: 68fb ldr r3, [r7, #12]
  40576. 801152c: 4a14 ldr r2, [pc, #80] @ (8011580 <HAL_UART_Transmit_IT+0x124>)
  40577. 801152e: 679a str r2, [r3, #120] @ 0x78
  40578. }
  40579. /* Enable the Transmit Data Register Empty interrupt */
  40580. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  40581. 8011530: 68fb ldr r3, [r7, #12]
  40582. 8011532: 681b ldr r3, [r3, #0]
  40583. 8011534: 617b str r3, [r7, #20]
  40584. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40585. 8011536: 697b ldr r3, [r7, #20]
  40586. 8011538: e853 3f00 ldrex r3, [r3]
  40587. 801153c: 613b str r3, [r7, #16]
  40588. return(result);
  40589. 801153e: 693b ldr r3, [r7, #16]
  40590. 8011540: f043 0380 orr.w r3, r3, #128 @ 0x80
  40591. 8011544: 63fb str r3, [r7, #60] @ 0x3c
  40592. 8011546: 68fb ldr r3, [r7, #12]
  40593. 8011548: 681b ldr r3, [r3, #0]
  40594. 801154a: 461a mov r2, r3
  40595. 801154c: 6bfb ldr r3, [r7, #60] @ 0x3c
  40596. 801154e: 623b str r3, [r7, #32]
  40597. 8011550: 61fa str r2, [r7, #28]
  40598. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40599. 8011552: 69f9 ldr r1, [r7, #28]
  40600. 8011554: 6a3a ldr r2, [r7, #32]
  40601. 8011556: e841 2300 strex r3, r2, [r1]
  40602. 801155a: 61bb str r3, [r7, #24]
  40603. return(result);
  40604. 801155c: 69bb ldr r3, [r7, #24]
  40605. 801155e: 2b00 cmp r3, #0
  40606. 8011560: d1e6 bne.n 8011530 <HAL_UART_Transmit_IT+0xd4>
  40607. }
  40608. return HAL_OK;
  40609. 8011562: 2300 movs r3, #0
  40610. 8011564: e000 b.n 8011568 <HAL_UART_Transmit_IT+0x10c>
  40611. }
  40612. else
  40613. {
  40614. return HAL_BUSY;
  40615. 8011566: 2302 movs r3, #2
  40616. }
  40617. }
  40618. 8011568: 4618 mov r0, r3
  40619. 801156a: 3744 adds r7, #68 @ 0x44
  40620. 801156c: 46bd mov sp, r7
  40621. 801156e: f85d 7b04 ldr.w r7, [sp], #4
  40622. 8011572: 4770 bx lr
  40623. 8011574: 080130e7 .word 0x080130e7
  40624. 8011578: 08013007 .word 0x08013007
  40625. 801157c: 08012f45 .word 0x08012f45
  40626. 8011580: 08012e8d .word 0x08012e8d
  40627. 08011584 <HAL_UART_IRQHandler>:
  40628. * @brief Handle UART interrupt request.
  40629. * @param huart UART handle.
  40630. * @retval None
  40631. */
  40632. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  40633. {
  40634. 8011584: b580 push {r7, lr}
  40635. 8011586: b0ba sub sp, #232 @ 0xe8
  40636. 8011588: af00 add r7, sp, #0
  40637. 801158a: 6078 str r0, [r7, #4]
  40638. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  40639. 801158c: 687b ldr r3, [r7, #4]
  40640. 801158e: 681b ldr r3, [r3, #0]
  40641. 8011590: 69db ldr r3, [r3, #28]
  40642. 8011592: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  40643. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  40644. 8011596: 687b ldr r3, [r7, #4]
  40645. 8011598: 681b ldr r3, [r3, #0]
  40646. 801159a: 681b ldr r3, [r3, #0]
  40647. 801159c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  40648. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  40649. 80115a0: 687b ldr r3, [r7, #4]
  40650. 80115a2: 681b ldr r3, [r3, #0]
  40651. 80115a4: 689b ldr r3, [r3, #8]
  40652. 80115a6: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  40653. uint32_t errorflags;
  40654. uint32_t errorcode;
  40655. /* If no error occurs */
  40656. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  40657. 80115aa: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  40658. 80115ae: f640 030f movw r3, #2063 @ 0x80f
  40659. 80115b2: 4013 ands r3, r2
  40660. 80115b4: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  40661. if (errorflags == 0U)
  40662. 80115b8: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40663. 80115bc: 2b00 cmp r3, #0
  40664. 80115be: d11b bne.n 80115f8 <HAL_UART_IRQHandler+0x74>
  40665. {
  40666. /* UART in mode Receiver ---------------------------------------------------*/
  40667. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40668. 80115c0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40669. 80115c4: f003 0320 and.w r3, r3, #32
  40670. 80115c8: 2b00 cmp r3, #0
  40671. 80115ca: d015 beq.n 80115f8 <HAL_UART_IRQHandler+0x74>
  40672. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40673. 80115cc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40674. 80115d0: f003 0320 and.w r3, r3, #32
  40675. 80115d4: 2b00 cmp r3, #0
  40676. 80115d6: d105 bne.n 80115e4 <HAL_UART_IRQHandler+0x60>
  40677. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40678. 80115d8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40679. 80115dc: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40680. 80115e0: 2b00 cmp r3, #0
  40681. 80115e2: d009 beq.n 80115f8 <HAL_UART_IRQHandler+0x74>
  40682. {
  40683. if (huart->RxISR != NULL)
  40684. 80115e4: 687b ldr r3, [r7, #4]
  40685. 80115e6: 6f5b ldr r3, [r3, #116] @ 0x74
  40686. 80115e8: 2b00 cmp r3, #0
  40687. 80115ea: f000 8377 beq.w 8011cdc <HAL_UART_IRQHandler+0x758>
  40688. {
  40689. huart->RxISR(huart);
  40690. 80115ee: 687b ldr r3, [r7, #4]
  40691. 80115f0: 6f5b ldr r3, [r3, #116] @ 0x74
  40692. 80115f2: 6878 ldr r0, [r7, #4]
  40693. 80115f4: 4798 blx r3
  40694. }
  40695. return;
  40696. 80115f6: e371 b.n 8011cdc <HAL_UART_IRQHandler+0x758>
  40697. }
  40698. }
  40699. /* If some errors occur */
  40700. if ((errorflags != 0U)
  40701. 80115f8: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40702. 80115fc: 2b00 cmp r3, #0
  40703. 80115fe: f000 8123 beq.w 8011848 <HAL_UART_IRQHandler+0x2c4>
  40704. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  40705. 8011602: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40706. 8011606: 4b8d ldr r3, [pc, #564] @ (801183c <HAL_UART_IRQHandler+0x2b8>)
  40707. 8011608: 4013 ands r3, r2
  40708. 801160a: 2b00 cmp r3, #0
  40709. 801160c: d106 bne.n 801161c <HAL_UART_IRQHandler+0x98>
  40710. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  40711. 801160e: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  40712. 8011612: 4b8b ldr r3, [pc, #556] @ (8011840 <HAL_UART_IRQHandler+0x2bc>)
  40713. 8011614: 4013 ands r3, r2
  40714. 8011616: 2b00 cmp r3, #0
  40715. 8011618: f000 8116 beq.w 8011848 <HAL_UART_IRQHandler+0x2c4>
  40716. {
  40717. /* UART parity error interrupt occurred -------------------------------------*/
  40718. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  40719. 801161c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40720. 8011620: f003 0301 and.w r3, r3, #1
  40721. 8011624: 2b00 cmp r3, #0
  40722. 8011626: d011 beq.n 801164c <HAL_UART_IRQHandler+0xc8>
  40723. 8011628: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40724. 801162c: f403 7380 and.w r3, r3, #256 @ 0x100
  40725. 8011630: 2b00 cmp r3, #0
  40726. 8011632: d00b beq.n 801164c <HAL_UART_IRQHandler+0xc8>
  40727. {
  40728. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  40729. 8011634: 687b ldr r3, [r7, #4]
  40730. 8011636: 681b ldr r3, [r3, #0]
  40731. 8011638: 2201 movs r2, #1
  40732. 801163a: 621a str r2, [r3, #32]
  40733. huart->ErrorCode |= HAL_UART_ERROR_PE;
  40734. 801163c: 687b ldr r3, [r7, #4]
  40735. 801163e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40736. 8011642: f043 0201 orr.w r2, r3, #1
  40737. 8011646: 687b ldr r3, [r7, #4]
  40738. 8011648: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40739. }
  40740. /* UART frame error interrupt occurred --------------------------------------*/
  40741. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40742. 801164c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40743. 8011650: f003 0302 and.w r3, r3, #2
  40744. 8011654: 2b00 cmp r3, #0
  40745. 8011656: d011 beq.n 801167c <HAL_UART_IRQHandler+0xf8>
  40746. 8011658: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40747. 801165c: f003 0301 and.w r3, r3, #1
  40748. 8011660: 2b00 cmp r3, #0
  40749. 8011662: d00b beq.n 801167c <HAL_UART_IRQHandler+0xf8>
  40750. {
  40751. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  40752. 8011664: 687b ldr r3, [r7, #4]
  40753. 8011666: 681b ldr r3, [r3, #0]
  40754. 8011668: 2202 movs r2, #2
  40755. 801166a: 621a str r2, [r3, #32]
  40756. huart->ErrorCode |= HAL_UART_ERROR_FE;
  40757. 801166c: 687b ldr r3, [r7, #4]
  40758. 801166e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40759. 8011672: f043 0204 orr.w r2, r3, #4
  40760. 8011676: 687b ldr r3, [r7, #4]
  40761. 8011678: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40762. }
  40763. /* UART noise error interrupt occurred --------------------------------------*/
  40764. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40765. 801167c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40766. 8011680: f003 0304 and.w r3, r3, #4
  40767. 8011684: 2b00 cmp r3, #0
  40768. 8011686: d011 beq.n 80116ac <HAL_UART_IRQHandler+0x128>
  40769. 8011688: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40770. 801168c: f003 0301 and.w r3, r3, #1
  40771. 8011690: 2b00 cmp r3, #0
  40772. 8011692: d00b beq.n 80116ac <HAL_UART_IRQHandler+0x128>
  40773. {
  40774. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  40775. 8011694: 687b ldr r3, [r7, #4]
  40776. 8011696: 681b ldr r3, [r3, #0]
  40777. 8011698: 2204 movs r2, #4
  40778. 801169a: 621a str r2, [r3, #32]
  40779. huart->ErrorCode |= HAL_UART_ERROR_NE;
  40780. 801169c: 687b ldr r3, [r7, #4]
  40781. 801169e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40782. 80116a2: f043 0202 orr.w r2, r3, #2
  40783. 80116a6: 687b ldr r3, [r7, #4]
  40784. 80116a8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40785. }
  40786. /* UART Over-Run interrupt occurred -----------------------------------------*/
  40787. if (((isrflags & USART_ISR_ORE) != 0U)
  40788. 80116ac: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40789. 80116b0: f003 0308 and.w r3, r3, #8
  40790. 80116b4: 2b00 cmp r3, #0
  40791. 80116b6: d017 beq.n 80116e8 <HAL_UART_IRQHandler+0x164>
  40792. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40793. 80116b8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40794. 80116bc: f003 0320 and.w r3, r3, #32
  40795. 80116c0: 2b00 cmp r3, #0
  40796. 80116c2: d105 bne.n 80116d0 <HAL_UART_IRQHandler+0x14c>
  40797. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  40798. 80116c4: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40799. 80116c8: 4b5c ldr r3, [pc, #368] @ (801183c <HAL_UART_IRQHandler+0x2b8>)
  40800. 80116ca: 4013 ands r3, r2
  40801. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40802. 80116cc: 2b00 cmp r3, #0
  40803. 80116ce: d00b beq.n 80116e8 <HAL_UART_IRQHandler+0x164>
  40804. {
  40805. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  40806. 80116d0: 687b ldr r3, [r7, #4]
  40807. 80116d2: 681b ldr r3, [r3, #0]
  40808. 80116d4: 2208 movs r2, #8
  40809. 80116d6: 621a str r2, [r3, #32]
  40810. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  40811. 80116d8: 687b ldr r3, [r7, #4]
  40812. 80116da: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40813. 80116de: f043 0208 orr.w r2, r3, #8
  40814. 80116e2: 687b ldr r3, [r7, #4]
  40815. 80116e4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40816. }
  40817. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  40818. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  40819. 80116e8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40820. 80116ec: f403 6300 and.w r3, r3, #2048 @ 0x800
  40821. 80116f0: 2b00 cmp r3, #0
  40822. 80116f2: d012 beq.n 801171a <HAL_UART_IRQHandler+0x196>
  40823. 80116f4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40824. 80116f8: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  40825. 80116fc: 2b00 cmp r3, #0
  40826. 80116fe: d00c beq.n 801171a <HAL_UART_IRQHandler+0x196>
  40827. {
  40828. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  40829. 8011700: 687b ldr r3, [r7, #4]
  40830. 8011702: 681b ldr r3, [r3, #0]
  40831. 8011704: f44f 6200 mov.w r2, #2048 @ 0x800
  40832. 8011708: 621a str r2, [r3, #32]
  40833. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  40834. 801170a: 687b ldr r3, [r7, #4]
  40835. 801170c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40836. 8011710: f043 0220 orr.w r2, r3, #32
  40837. 8011714: 687b ldr r3, [r7, #4]
  40838. 8011716: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40839. }
  40840. /* Call UART Error Call back function if need be ----------------------------*/
  40841. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  40842. 801171a: 687b ldr r3, [r7, #4]
  40843. 801171c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40844. 8011720: 2b00 cmp r3, #0
  40845. 8011722: f000 82dd beq.w 8011ce0 <HAL_UART_IRQHandler+0x75c>
  40846. {
  40847. /* UART in mode Receiver --------------------------------------------------*/
  40848. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40849. 8011726: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40850. 801172a: f003 0320 and.w r3, r3, #32
  40851. 801172e: 2b00 cmp r3, #0
  40852. 8011730: d013 beq.n 801175a <HAL_UART_IRQHandler+0x1d6>
  40853. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40854. 8011732: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40855. 8011736: f003 0320 and.w r3, r3, #32
  40856. 801173a: 2b00 cmp r3, #0
  40857. 801173c: d105 bne.n 801174a <HAL_UART_IRQHandler+0x1c6>
  40858. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40859. 801173e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40860. 8011742: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40861. 8011746: 2b00 cmp r3, #0
  40862. 8011748: d007 beq.n 801175a <HAL_UART_IRQHandler+0x1d6>
  40863. {
  40864. if (huart->RxISR != NULL)
  40865. 801174a: 687b ldr r3, [r7, #4]
  40866. 801174c: 6f5b ldr r3, [r3, #116] @ 0x74
  40867. 801174e: 2b00 cmp r3, #0
  40868. 8011750: d003 beq.n 801175a <HAL_UART_IRQHandler+0x1d6>
  40869. {
  40870. huart->RxISR(huart);
  40871. 8011752: 687b ldr r3, [r7, #4]
  40872. 8011754: 6f5b ldr r3, [r3, #116] @ 0x74
  40873. 8011756: 6878 ldr r0, [r7, #4]
  40874. 8011758: 4798 blx r3
  40875. /* If Error is to be considered as blocking :
  40876. - Receiver Timeout error in Reception
  40877. - Overrun error in Reception
  40878. - any error occurs in DMA mode reception
  40879. */
  40880. errorcode = huart->ErrorCode;
  40881. 801175a: 687b ldr r3, [r7, #4]
  40882. 801175c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40883. 8011760: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  40884. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40885. 8011764: 687b ldr r3, [r7, #4]
  40886. 8011766: 681b ldr r3, [r3, #0]
  40887. 8011768: 689b ldr r3, [r3, #8]
  40888. 801176a: f003 0340 and.w r3, r3, #64 @ 0x40
  40889. 801176e: 2b40 cmp r3, #64 @ 0x40
  40890. 8011770: d005 beq.n 801177e <HAL_UART_IRQHandler+0x1fa>
  40891. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  40892. 8011772: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  40893. 8011776: f003 0328 and.w r3, r3, #40 @ 0x28
  40894. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40895. 801177a: 2b00 cmp r3, #0
  40896. 801177c: d054 beq.n 8011828 <HAL_UART_IRQHandler+0x2a4>
  40897. {
  40898. /* Blocking error : transfer is aborted
  40899. Set the UART state ready to be able to start again the process,
  40900. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  40901. UART_EndRxTransfer(huart);
  40902. 801177e: 6878 ldr r0, [r7, #4]
  40903. 8011780: f001 fb08 bl 8012d94 <UART_EndRxTransfer>
  40904. /* Abort the UART DMA Rx channel if enabled */
  40905. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40906. 8011784: 687b ldr r3, [r7, #4]
  40907. 8011786: 681b ldr r3, [r3, #0]
  40908. 8011788: 689b ldr r3, [r3, #8]
  40909. 801178a: f003 0340 and.w r3, r3, #64 @ 0x40
  40910. 801178e: 2b40 cmp r3, #64 @ 0x40
  40911. 8011790: d146 bne.n 8011820 <HAL_UART_IRQHandler+0x29c>
  40912. {
  40913. /* Disable the UART DMA Rx request if enabled */
  40914. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40915. 8011792: 687b ldr r3, [r7, #4]
  40916. 8011794: 681b ldr r3, [r3, #0]
  40917. 8011796: 3308 adds r3, #8
  40918. 8011798: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  40919. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40920. 801179c: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  40921. 80117a0: e853 3f00 ldrex r3, [r3]
  40922. 80117a4: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  40923. return(result);
  40924. 80117a8: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  40925. 80117ac: f023 0340 bic.w r3, r3, #64 @ 0x40
  40926. 80117b0: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  40927. 80117b4: 687b ldr r3, [r7, #4]
  40928. 80117b6: 681b ldr r3, [r3, #0]
  40929. 80117b8: 3308 adds r3, #8
  40930. 80117ba: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  40931. 80117be: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  40932. 80117c2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  40933. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40934. 80117c6: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  40935. 80117ca: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  40936. 80117ce: e841 2300 strex r3, r2, [r1]
  40937. 80117d2: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  40938. return(result);
  40939. 80117d6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  40940. 80117da: 2b00 cmp r3, #0
  40941. 80117dc: d1d9 bne.n 8011792 <HAL_UART_IRQHandler+0x20e>
  40942. /* Abort the UART DMA Rx channel */
  40943. if (huart->hdmarx != NULL)
  40944. 80117de: 687b ldr r3, [r7, #4]
  40945. 80117e0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40946. 80117e4: 2b00 cmp r3, #0
  40947. 80117e6: d017 beq.n 8011818 <HAL_UART_IRQHandler+0x294>
  40948. {
  40949. /* Set the UART DMA Abort callback :
  40950. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  40951. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  40952. 80117e8: 687b ldr r3, [r7, #4]
  40953. 80117ea: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40954. 80117ee: 4a15 ldr r2, [pc, #84] @ (8011844 <HAL_UART_IRQHandler+0x2c0>)
  40955. 80117f0: 651a str r2, [r3, #80] @ 0x50
  40956. /* Abort DMA RX */
  40957. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  40958. 80117f2: 687b ldr r3, [r7, #4]
  40959. 80117f4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40960. 80117f8: 4618 mov r0, r3
  40961. 80117fa: f7f7 ff8f bl 800971c <HAL_DMA_Abort_IT>
  40962. 80117fe: 4603 mov r3, r0
  40963. 8011800: 2b00 cmp r3, #0
  40964. 8011802: d019 beq.n 8011838 <HAL_UART_IRQHandler+0x2b4>
  40965. {
  40966. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  40967. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  40968. 8011804: 687b ldr r3, [r7, #4]
  40969. 8011806: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40970. 801180a: 6d1b ldr r3, [r3, #80] @ 0x50
  40971. 801180c: 687a ldr r2, [r7, #4]
  40972. 801180e: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  40973. 8011812: 4610 mov r0, r2
  40974. 8011814: 4798 blx r3
  40975. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40976. 8011816: e00f b.n 8011838 <HAL_UART_IRQHandler+0x2b4>
  40977. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40978. /*Call registered error callback*/
  40979. huart->ErrorCallback(huart);
  40980. #else
  40981. /*Call legacy weak error callback*/
  40982. HAL_UART_ErrorCallback(huart);
  40983. 8011818: 6878 ldr r0, [r7, #4]
  40984. 801181a: f000 fa6d bl 8011cf8 <HAL_UART_ErrorCallback>
  40985. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40986. 801181e: e00b b.n 8011838 <HAL_UART_IRQHandler+0x2b4>
  40987. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40988. /*Call registered error callback*/
  40989. huart->ErrorCallback(huart);
  40990. #else
  40991. /*Call legacy weak error callback*/
  40992. HAL_UART_ErrorCallback(huart);
  40993. 8011820: 6878 ldr r0, [r7, #4]
  40994. 8011822: f000 fa69 bl 8011cf8 <HAL_UART_ErrorCallback>
  40995. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40996. 8011826: e007 b.n 8011838 <HAL_UART_IRQHandler+0x2b4>
  40997. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40998. /*Call registered error callback*/
  40999. huart->ErrorCallback(huart);
  41000. #else
  41001. /*Call legacy weak error callback*/
  41002. HAL_UART_ErrorCallback(huart);
  41003. 8011828: 6878 ldr r0, [r7, #4]
  41004. 801182a: f000 fa65 bl 8011cf8 <HAL_UART_ErrorCallback>
  41005. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41006. huart->ErrorCode = HAL_UART_ERROR_NONE;
  41007. 801182e: 687b ldr r3, [r7, #4]
  41008. 8011830: 2200 movs r2, #0
  41009. 8011832: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41010. }
  41011. }
  41012. return;
  41013. 8011836: e253 b.n 8011ce0 <HAL_UART_IRQHandler+0x75c>
  41014. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41015. 8011838: bf00 nop
  41016. return;
  41017. 801183a: e251 b.n 8011ce0 <HAL_UART_IRQHandler+0x75c>
  41018. 801183c: 10000001 .word 0x10000001
  41019. 8011840: 04000120 .word 0x04000120
  41020. 8011844: 08012e61 .word 0x08012e61
  41021. } /* End if some error occurs */
  41022. /* Check current reception Mode :
  41023. If Reception till IDLE event has been selected : */
  41024. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  41025. 8011848: 687b ldr r3, [r7, #4]
  41026. 801184a: 6edb ldr r3, [r3, #108] @ 0x6c
  41027. 801184c: 2b01 cmp r3, #1
  41028. 801184e: f040 81e7 bne.w 8011c20 <HAL_UART_IRQHandler+0x69c>
  41029. && ((isrflags & USART_ISR_IDLE) != 0U)
  41030. 8011852: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41031. 8011856: f003 0310 and.w r3, r3, #16
  41032. 801185a: 2b00 cmp r3, #0
  41033. 801185c: f000 81e0 beq.w 8011c20 <HAL_UART_IRQHandler+0x69c>
  41034. && ((cr1its & USART_ISR_IDLE) != 0U))
  41035. 8011860: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41036. 8011864: f003 0310 and.w r3, r3, #16
  41037. 8011868: 2b00 cmp r3, #0
  41038. 801186a: f000 81d9 beq.w 8011c20 <HAL_UART_IRQHandler+0x69c>
  41039. {
  41040. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  41041. 801186e: 687b ldr r3, [r7, #4]
  41042. 8011870: 681b ldr r3, [r3, #0]
  41043. 8011872: 2210 movs r2, #16
  41044. 8011874: 621a str r2, [r3, #32]
  41045. /* Check if DMA mode is enabled in UART */
  41046. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41047. 8011876: 687b ldr r3, [r7, #4]
  41048. 8011878: 681b ldr r3, [r3, #0]
  41049. 801187a: 689b ldr r3, [r3, #8]
  41050. 801187c: f003 0340 and.w r3, r3, #64 @ 0x40
  41051. 8011880: 2b40 cmp r3, #64 @ 0x40
  41052. 8011882: f040 8151 bne.w 8011b28 <HAL_UART_IRQHandler+0x5a4>
  41053. {
  41054. /* DMA mode enabled */
  41055. /* Check received length : If all expected data are received, do nothing,
  41056. (DMA cplt callback will be called).
  41057. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41058. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  41059. 8011886: 687b ldr r3, [r7, #4]
  41060. 8011888: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41061. 801188c: 681b ldr r3, [r3, #0]
  41062. 801188e: 4a96 ldr r2, [pc, #600] @ (8011ae8 <HAL_UART_IRQHandler+0x564>)
  41063. 8011890: 4293 cmp r3, r2
  41064. 8011892: d068 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41065. 8011894: 687b ldr r3, [r7, #4]
  41066. 8011896: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41067. 801189a: 681b ldr r3, [r3, #0]
  41068. 801189c: 4a93 ldr r2, [pc, #588] @ (8011aec <HAL_UART_IRQHandler+0x568>)
  41069. 801189e: 4293 cmp r3, r2
  41070. 80118a0: d061 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41071. 80118a2: 687b ldr r3, [r7, #4]
  41072. 80118a4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41073. 80118a8: 681b ldr r3, [r3, #0]
  41074. 80118aa: 4a91 ldr r2, [pc, #580] @ (8011af0 <HAL_UART_IRQHandler+0x56c>)
  41075. 80118ac: 4293 cmp r3, r2
  41076. 80118ae: d05a beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41077. 80118b0: 687b ldr r3, [r7, #4]
  41078. 80118b2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41079. 80118b6: 681b ldr r3, [r3, #0]
  41080. 80118b8: 4a8e ldr r2, [pc, #568] @ (8011af4 <HAL_UART_IRQHandler+0x570>)
  41081. 80118ba: 4293 cmp r3, r2
  41082. 80118bc: d053 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41083. 80118be: 687b ldr r3, [r7, #4]
  41084. 80118c0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41085. 80118c4: 681b ldr r3, [r3, #0]
  41086. 80118c6: 4a8c ldr r2, [pc, #560] @ (8011af8 <HAL_UART_IRQHandler+0x574>)
  41087. 80118c8: 4293 cmp r3, r2
  41088. 80118ca: d04c beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41089. 80118cc: 687b ldr r3, [r7, #4]
  41090. 80118ce: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41091. 80118d2: 681b ldr r3, [r3, #0]
  41092. 80118d4: 4a89 ldr r2, [pc, #548] @ (8011afc <HAL_UART_IRQHandler+0x578>)
  41093. 80118d6: 4293 cmp r3, r2
  41094. 80118d8: d045 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41095. 80118da: 687b ldr r3, [r7, #4]
  41096. 80118dc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41097. 80118e0: 681b ldr r3, [r3, #0]
  41098. 80118e2: 4a87 ldr r2, [pc, #540] @ (8011b00 <HAL_UART_IRQHandler+0x57c>)
  41099. 80118e4: 4293 cmp r3, r2
  41100. 80118e6: d03e beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41101. 80118e8: 687b ldr r3, [r7, #4]
  41102. 80118ea: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41103. 80118ee: 681b ldr r3, [r3, #0]
  41104. 80118f0: 4a84 ldr r2, [pc, #528] @ (8011b04 <HAL_UART_IRQHandler+0x580>)
  41105. 80118f2: 4293 cmp r3, r2
  41106. 80118f4: d037 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41107. 80118f6: 687b ldr r3, [r7, #4]
  41108. 80118f8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41109. 80118fc: 681b ldr r3, [r3, #0]
  41110. 80118fe: 4a82 ldr r2, [pc, #520] @ (8011b08 <HAL_UART_IRQHandler+0x584>)
  41111. 8011900: 4293 cmp r3, r2
  41112. 8011902: d030 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41113. 8011904: 687b ldr r3, [r7, #4]
  41114. 8011906: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41115. 801190a: 681b ldr r3, [r3, #0]
  41116. 801190c: 4a7f ldr r2, [pc, #508] @ (8011b0c <HAL_UART_IRQHandler+0x588>)
  41117. 801190e: 4293 cmp r3, r2
  41118. 8011910: d029 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41119. 8011912: 687b ldr r3, [r7, #4]
  41120. 8011914: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41121. 8011918: 681b ldr r3, [r3, #0]
  41122. 801191a: 4a7d ldr r2, [pc, #500] @ (8011b10 <HAL_UART_IRQHandler+0x58c>)
  41123. 801191c: 4293 cmp r3, r2
  41124. 801191e: d022 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41125. 8011920: 687b ldr r3, [r7, #4]
  41126. 8011922: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41127. 8011926: 681b ldr r3, [r3, #0]
  41128. 8011928: 4a7a ldr r2, [pc, #488] @ (8011b14 <HAL_UART_IRQHandler+0x590>)
  41129. 801192a: 4293 cmp r3, r2
  41130. 801192c: d01b beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41131. 801192e: 687b ldr r3, [r7, #4]
  41132. 8011930: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41133. 8011934: 681b ldr r3, [r3, #0]
  41134. 8011936: 4a78 ldr r2, [pc, #480] @ (8011b18 <HAL_UART_IRQHandler+0x594>)
  41135. 8011938: 4293 cmp r3, r2
  41136. 801193a: d014 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41137. 801193c: 687b ldr r3, [r7, #4]
  41138. 801193e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41139. 8011942: 681b ldr r3, [r3, #0]
  41140. 8011944: 4a75 ldr r2, [pc, #468] @ (8011b1c <HAL_UART_IRQHandler+0x598>)
  41141. 8011946: 4293 cmp r3, r2
  41142. 8011948: d00d beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41143. 801194a: 687b ldr r3, [r7, #4]
  41144. 801194c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41145. 8011950: 681b ldr r3, [r3, #0]
  41146. 8011952: 4a73 ldr r2, [pc, #460] @ (8011b20 <HAL_UART_IRQHandler+0x59c>)
  41147. 8011954: 4293 cmp r3, r2
  41148. 8011956: d006 beq.n 8011966 <HAL_UART_IRQHandler+0x3e2>
  41149. 8011958: 687b ldr r3, [r7, #4]
  41150. 801195a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41151. 801195e: 681b ldr r3, [r3, #0]
  41152. 8011960: 4a70 ldr r2, [pc, #448] @ (8011b24 <HAL_UART_IRQHandler+0x5a0>)
  41153. 8011962: 4293 cmp r3, r2
  41154. 8011964: d106 bne.n 8011974 <HAL_UART_IRQHandler+0x3f0>
  41155. 8011966: 687b ldr r3, [r7, #4]
  41156. 8011968: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41157. 801196c: 681b ldr r3, [r3, #0]
  41158. 801196e: 685b ldr r3, [r3, #4]
  41159. 8011970: b29b uxth r3, r3
  41160. 8011972: e005 b.n 8011980 <HAL_UART_IRQHandler+0x3fc>
  41161. 8011974: 687b ldr r3, [r7, #4]
  41162. 8011976: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41163. 801197a: 681b ldr r3, [r3, #0]
  41164. 801197c: 685b ldr r3, [r3, #4]
  41165. 801197e: b29b uxth r3, r3
  41166. 8011980: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  41167. if ((nb_remaining_rx_data > 0U)
  41168. 8011984: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  41169. 8011988: 2b00 cmp r3, #0
  41170. 801198a: f000 81ab beq.w 8011ce4 <HAL_UART_IRQHandler+0x760>
  41171. && (nb_remaining_rx_data < huart->RxXferSize))
  41172. 801198e: 687b ldr r3, [r7, #4]
  41173. 8011990: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  41174. 8011994: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41175. 8011998: 429a cmp r2, r3
  41176. 801199a: f080 81a3 bcs.w 8011ce4 <HAL_UART_IRQHandler+0x760>
  41177. {
  41178. /* Reception is not complete */
  41179. huart->RxXferCount = nb_remaining_rx_data;
  41180. 801199e: 687b ldr r3, [r7, #4]
  41181. 80119a0: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41182. 80119a4: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  41183. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  41184. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  41185. 80119a8: 687b ldr r3, [r7, #4]
  41186. 80119aa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41187. 80119ae: 69db ldr r3, [r3, #28]
  41188. 80119b0: f5b3 7f80 cmp.w r3, #256 @ 0x100
  41189. 80119b4: f000 8087 beq.w 8011ac6 <HAL_UART_IRQHandler+0x542>
  41190. {
  41191. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  41192. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  41193. 80119b8: 687b ldr r3, [r7, #4]
  41194. 80119ba: 681b ldr r3, [r3, #0]
  41195. 80119bc: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  41196. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41197. 80119c0: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  41198. 80119c4: e853 3f00 ldrex r3, [r3]
  41199. 80119c8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  41200. return(result);
  41201. 80119cc: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  41202. 80119d0: f423 7380 bic.w r3, r3, #256 @ 0x100
  41203. 80119d4: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  41204. 80119d8: 687b ldr r3, [r7, #4]
  41205. 80119da: 681b ldr r3, [r3, #0]
  41206. 80119dc: 461a mov r2, r3
  41207. 80119de: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  41208. 80119e2: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  41209. 80119e6: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  41210. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41211. 80119ea: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  41212. 80119ee: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  41213. 80119f2: e841 2300 strex r3, r2, [r1]
  41214. 80119f6: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  41215. return(result);
  41216. 80119fa: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  41217. 80119fe: 2b00 cmp r3, #0
  41218. 8011a00: d1da bne.n 80119b8 <HAL_UART_IRQHandler+0x434>
  41219. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  41220. 8011a02: 687b ldr r3, [r7, #4]
  41221. 8011a04: 681b ldr r3, [r3, #0]
  41222. 8011a06: 3308 adds r3, #8
  41223. 8011a08: 677b str r3, [r7, #116] @ 0x74
  41224. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41225. 8011a0a: 6f7b ldr r3, [r7, #116] @ 0x74
  41226. 8011a0c: e853 3f00 ldrex r3, [r3]
  41227. 8011a10: 673b str r3, [r7, #112] @ 0x70
  41228. return(result);
  41229. 8011a12: 6f3b ldr r3, [r7, #112] @ 0x70
  41230. 8011a14: f023 0301 bic.w r3, r3, #1
  41231. 8011a18: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  41232. 8011a1c: 687b ldr r3, [r7, #4]
  41233. 8011a1e: 681b ldr r3, [r3, #0]
  41234. 8011a20: 3308 adds r3, #8
  41235. 8011a22: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  41236. 8011a26: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  41237. 8011a2a: 67fb str r3, [r7, #124] @ 0x7c
  41238. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41239. 8011a2c: 6ff9 ldr r1, [r7, #124] @ 0x7c
  41240. 8011a2e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  41241. 8011a32: e841 2300 strex r3, r2, [r1]
  41242. 8011a36: 67bb str r3, [r7, #120] @ 0x78
  41243. return(result);
  41244. 8011a38: 6fbb ldr r3, [r7, #120] @ 0x78
  41245. 8011a3a: 2b00 cmp r3, #0
  41246. 8011a3c: d1e1 bne.n 8011a02 <HAL_UART_IRQHandler+0x47e>
  41247. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  41248. in the UART CR3 register */
  41249. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  41250. 8011a3e: 687b ldr r3, [r7, #4]
  41251. 8011a40: 681b ldr r3, [r3, #0]
  41252. 8011a42: 3308 adds r3, #8
  41253. 8011a44: 663b str r3, [r7, #96] @ 0x60
  41254. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41255. 8011a46: 6e3b ldr r3, [r7, #96] @ 0x60
  41256. 8011a48: e853 3f00 ldrex r3, [r3]
  41257. 8011a4c: 65fb str r3, [r7, #92] @ 0x5c
  41258. return(result);
  41259. 8011a4e: 6dfb ldr r3, [r7, #92] @ 0x5c
  41260. 8011a50: f023 0340 bic.w r3, r3, #64 @ 0x40
  41261. 8011a54: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  41262. 8011a58: 687b ldr r3, [r7, #4]
  41263. 8011a5a: 681b ldr r3, [r3, #0]
  41264. 8011a5c: 3308 adds r3, #8
  41265. 8011a5e: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  41266. 8011a62: 66fa str r2, [r7, #108] @ 0x6c
  41267. 8011a64: 66bb str r3, [r7, #104] @ 0x68
  41268. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41269. 8011a66: 6eb9 ldr r1, [r7, #104] @ 0x68
  41270. 8011a68: 6efa ldr r2, [r7, #108] @ 0x6c
  41271. 8011a6a: e841 2300 strex r3, r2, [r1]
  41272. 8011a6e: 667b str r3, [r7, #100] @ 0x64
  41273. return(result);
  41274. 8011a70: 6e7b ldr r3, [r7, #100] @ 0x64
  41275. 8011a72: 2b00 cmp r3, #0
  41276. 8011a74: d1e3 bne.n 8011a3e <HAL_UART_IRQHandler+0x4ba>
  41277. /* At end of Rx process, restore huart->RxState to Ready */
  41278. huart->RxState = HAL_UART_STATE_READY;
  41279. 8011a76: 687b ldr r3, [r7, #4]
  41280. 8011a78: 2220 movs r2, #32
  41281. 8011a7a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41282. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41283. 8011a7e: 687b ldr r3, [r7, #4]
  41284. 8011a80: 2200 movs r2, #0
  41285. 8011a82: 66da str r2, [r3, #108] @ 0x6c
  41286. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41287. 8011a84: 687b ldr r3, [r7, #4]
  41288. 8011a86: 681b ldr r3, [r3, #0]
  41289. 8011a88: 64fb str r3, [r7, #76] @ 0x4c
  41290. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41291. 8011a8a: 6cfb ldr r3, [r7, #76] @ 0x4c
  41292. 8011a8c: e853 3f00 ldrex r3, [r3]
  41293. 8011a90: 64bb str r3, [r7, #72] @ 0x48
  41294. return(result);
  41295. 8011a92: 6cbb ldr r3, [r7, #72] @ 0x48
  41296. 8011a94: f023 0310 bic.w r3, r3, #16
  41297. 8011a98: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  41298. 8011a9c: 687b ldr r3, [r7, #4]
  41299. 8011a9e: 681b ldr r3, [r3, #0]
  41300. 8011aa0: 461a mov r2, r3
  41301. 8011aa2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  41302. 8011aa6: 65bb str r3, [r7, #88] @ 0x58
  41303. 8011aa8: 657a str r2, [r7, #84] @ 0x54
  41304. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41305. 8011aaa: 6d79 ldr r1, [r7, #84] @ 0x54
  41306. 8011aac: 6dba ldr r2, [r7, #88] @ 0x58
  41307. 8011aae: e841 2300 strex r3, r2, [r1]
  41308. 8011ab2: 653b str r3, [r7, #80] @ 0x50
  41309. return(result);
  41310. 8011ab4: 6d3b ldr r3, [r7, #80] @ 0x50
  41311. 8011ab6: 2b00 cmp r3, #0
  41312. 8011ab8: d1e4 bne.n 8011a84 <HAL_UART_IRQHandler+0x500>
  41313. /* Last bytes received, so no need as the abort is immediate */
  41314. (void)HAL_DMA_Abort(huart->hdmarx);
  41315. 8011aba: 687b ldr r3, [r7, #4]
  41316. 8011abc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41317. 8011ac0: 4618 mov r0, r3
  41318. 8011ac2: f7f7 fb0d bl 80090e0 <HAL_DMA_Abort>
  41319. }
  41320. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41321. In this case, Rx Event type is Idle Event */
  41322. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41323. 8011ac6: 687b ldr r3, [r7, #4]
  41324. 8011ac8: 2202 movs r2, #2
  41325. 8011aca: 671a str r2, [r3, #112] @ 0x70
  41326. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41327. /*Call registered Rx Event callback*/
  41328. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41329. #else
  41330. /*Call legacy weak Rx Event callback*/
  41331. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41332. 8011acc: 687b ldr r3, [r7, #4]
  41333. 8011ace: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41334. 8011ad2: 687b ldr r3, [r7, #4]
  41335. 8011ad4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41336. 8011ad8: b29b uxth r3, r3
  41337. 8011ada: 1ad3 subs r3, r2, r3
  41338. 8011adc: b29b uxth r3, r3
  41339. 8011ade: 4619 mov r1, r3
  41340. 8011ae0: 6878 ldr r0, [r7, #4]
  41341. 8011ae2: f7f2 ffff bl 8004ae4 <HAL_UARTEx_RxEventCallback>
  41342. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41343. }
  41344. return;
  41345. 8011ae6: e0fd b.n 8011ce4 <HAL_UART_IRQHandler+0x760>
  41346. 8011ae8: 40020010 .word 0x40020010
  41347. 8011aec: 40020028 .word 0x40020028
  41348. 8011af0: 40020040 .word 0x40020040
  41349. 8011af4: 40020058 .word 0x40020058
  41350. 8011af8: 40020070 .word 0x40020070
  41351. 8011afc: 40020088 .word 0x40020088
  41352. 8011b00: 400200a0 .word 0x400200a0
  41353. 8011b04: 400200b8 .word 0x400200b8
  41354. 8011b08: 40020410 .word 0x40020410
  41355. 8011b0c: 40020428 .word 0x40020428
  41356. 8011b10: 40020440 .word 0x40020440
  41357. 8011b14: 40020458 .word 0x40020458
  41358. 8011b18: 40020470 .word 0x40020470
  41359. 8011b1c: 40020488 .word 0x40020488
  41360. 8011b20: 400204a0 .word 0x400204a0
  41361. 8011b24: 400204b8 .word 0x400204b8
  41362. else
  41363. {
  41364. /* DMA mode not enabled */
  41365. /* Check received length : If all expected data are received, do nothing.
  41366. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41367. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  41368. 8011b28: 687b ldr r3, [r7, #4]
  41369. 8011b2a: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41370. 8011b2e: 687b ldr r3, [r7, #4]
  41371. 8011b30: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41372. 8011b34: b29b uxth r3, r3
  41373. 8011b36: 1ad3 subs r3, r2, r3
  41374. 8011b38: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  41375. if ((huart->RxXferCount > 0U)
  41376. 8011b3c: 687b ldr r3, [r7, #4]
  41377. 8011b3e: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41378. 8011b42: b29b uxth r3, r3
  41379. 8011b44: 2b00 cmp r3, #0
  41380. 8011b46: f000 80cf beq.w 8011ce8 <HAL_UART_IRQHandler+0x764>
  41381. && (nb_rx_data > 0U))
  41382. 8011b4a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41383. 8011b4e: 2b00 cmp r3, #0
  41384. 8011b50: f000 80ca beq.w 8011ce8 <HAL_UART_IRQHandler+0x764>
  41385. {
  41386. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  41387. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  41388. 8011b54: 687b ldr r3, [r7, #4]
  41389. 8011b56: 681b ldr r3, [r3, #0]
  41390. 8011b58: 63bb str r3, [r7, #56] @ 0x38
  41391. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41392. 8011b5a: 6bbb ldr r3, [r7, #56] @ 0x38
  41393. 8011b5c: e853 3f00 ldrex r3, [r3]
  41394. 8011b60: 637b str r3, [r7, #52] @ 0x34
  41395. return(result);
  41396. 8011b62: 6b7b ldr r3, [r7, #52] @ 0x34
  41397. 8011b64: f423 7390 bic.w r3, r3, #288 @ 0x120
  41398. 8011b68: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  41399. 8011b6c: 687b ldr r3, [r7, #4]
  41400. 8011b6e: 681b ldr r3, [r3, #0]
  41401. 8011b70: 461a mov r2, r3
  41402. 8011b72: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  41403. 8011b76: 647b str r3, [r7, #68] @ 0x44
  41404. 8011b78: 643a str r2, [r7, #64] @ 0x40
  41405. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41406. 8011b7a: 6c39 ldr r1, [r7, #64] @ 0x40
  41407. 8011b7c: 6c7a ldr r2, [r7, #68] @ 0x44
  41408. 8011b7e: e841 2300 strex r3, r2, [r1]
  41409. 8011b82: 63fb str r3, [r7, #60] @ 0x3c
  41410. return(result);
  41411. 8011b84: 6bfb ldr r3, [r7, #60] @ 0x3c
  41412. 8011b86: 2b00 cmp r3, #0
  41413. 8011b88: d1e4 bne.n 8011b54 <HAL_UART_IRQHandler+0x5d0>
  41414. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  41415. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  41416. 8011b8a: 687b ldr r3, [r7, #4]
  41417. 8011b8c: 681b ldr r3, [r3, #0]
  41418. 8011b8e: 3308 adds r3, #8
  41419. 8011b90: 627b str r3, [r7, #36] @ 0x24
  41420. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41421. 8011b92: 6a7b ldr r3, [r7, #36] @ 0x24
  41422. 8011b94: e853 3f00 ldrex r3, [r3]
  41423. 8011b98: 623b str r3, [r7, #32]
  41424. return(result);
  41425. 8011b9a: 6a3a ldr r2, [r7, #32]
  41426. 8011b9c: 4b55 ldr r3, [pc, #340] @ (8011cf4 <HAL_UART_IRQHandler+0x770>)
  41427. 8011b9e: 4013 ands r3, r2
  41428. 8011ba0: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  41429. 8011ba4: 687b ldr r3, [r7, #4]
  41430. 8011ba6: 681b ldr r3, [r3, #0]
  41431. 8011ba8: 3308 adds r3, #8
  41432. 8011baa: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  41433. 8011bae: 633a str r2, [r7, #48] @ 0x30
  41434. 8011bb0: 62fb str r3, [r7, #44] @ 0x2c
  41435. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41436. 8011bb2: 6af9 ldr r1, [r7, #44] @ 0x2c
  41437. 8011bb4: 6b3a ldr r2, [r7, #48] @ 0x30
  41438. 8011bb6: e841 2300 strex r3, r2, [r1]
  41439. 8011bba: 62bb str r3, [r7, #40] @ 0x28
  41440. return(result);
  41441. 8011bbc: 6abb ldr r3, [r7, #40] @ 0x28
  41442. 8011bbe: 2b00 cmp r3, #0
  41443. 8011bc0: d1e3 bne.n 8011b8a <HAL_UART_IRQHandler+0x606>
  41444. /* Rx process is completed, restore huart->RxState to Ready */
  41445. huart->RxState = HAL_UART_STATE_READY;
  41446. 8011bc2: 687b ldr r3, [r7, #4]
  41447. 8011bc4: 2220 movs r2, #32
  41448. 8011bc6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41449. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41450. 8011bca: 687b ldr r3, [r7, #4]
  41451. 8011bcc: 2200 movs r2, #0
  41452. 8011bce: 66da str r2, [r3, #108] @ 0x6c
  41453. /* Clear RxISR function pointer */
  41454. huart->RxISR = NULL;
  41455. 8011bd0: 687b ldr r3, [r7, #4]
  41456. 8011bd2: 2200 movs r2, #0
  41457. 8011bd4: 675a str r2, [r3, #116] @ 0x74
  41458. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41459. 8011bd6: 687b ldr r3, [r7, #4]
  41460. 8011bd8: 681b ldr r3, [r3, #0]
  41461. 8011bda: 613b str r3, [r7, #16]
  41462. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41463. 8011bdc: 693b ldr r3, [r7, #16]
  41464. 8011bde: e853 3f00 ldrex r3, [r3]
  41465. 8011be2: 60fb str r3, [r7, #12]
  41466. return(result);
  41467. 8011be4: 68fb ldr r3, [r7, #12]
  41468. 8011be6: f023 0310 bic.w r3, r3, #16
  41469. 8011bea: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  41470. 8011bee: 687b ldr r3, [r7, #4]
  41471. 8011bf0: 681b ldr r3, [r3, #0]
  41472. 8011bf2: 461a mov r2, r3
  41473. 8011bf4: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  41474. 8011bf8: 61fb str r3, [r7, #28]
  41475. 8011bfa: 61ba str r2, [r7, #24]
  41476. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41477. 8011bfc: 69b9 ldr r1, [r7, #24]
  41478. 8011bfe: 69fa ldr r2, [r7, #28]
  41479. 8011c00: e841 2300 strex r3, r2, [r1]
  41480. 8011c04: 617b str r3, [r7, #20]
  41481. return(result);
  41482. 8011c06: 697b ldr r3, [r7, #20]
  41483. 8011c08: 2b00 cmp r3, #0
  41484. 8011c0a: d1e4 bne.n 8011bd6 <HAL_UART_IRQHandler+0x652>
  41485. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41486. In this case, Rx Event type is Idle Event */
  41487. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41488. 8011c0c: 687b ldr r3, [r7, #4]
  41489. 8011c0e: 2202 movs r2, #2
  41490. 8011c10: 671a str r2, [r3, #112] @ 0x70
  41491. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41492. /*Call registered Rx complete callback*/
  41493. huart->RxEventCallback(huart, nb_rx_data);
  41494. #else
  41495. /*Call legacy weak Rx Event callback*/
  41496. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  41497. 8011c12: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41498. 8011c16: 4619 mov r1, r3
  41499. 8011c18: 6878 ldr r0, [r7, #4]
  41500. 8011c1a: f7f2 ff63 bl 8004ae4 <HAL_UARTEx_RxEventCallback>
  41501. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41502. }
  41503. return;
  41504. 8011c1e: e063 b.n 8011ce8 <HAL_UART_IRQHandler+0x764>
  41505. }
  41506. }
  41507. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  41508. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  41509. 8011c20: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41510. 8011c24: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  41511. 8011c28: 2b00 cmp r3, #0
  41512. 8011c2a: d00e beq.n 8011c4a <HAL_UART_IRQHandler+0x6c6>
  41513. 8011c2c: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41514. 8011c30: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  41515. 8011c34: 2b00 cmp r3, #0
  41516. 8011c36: d008 beq.n 8011c4a <HAL_UART_IRQHandler+0x6c6>
  41517. {
  41518. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  41519. 8011c38: 687b ldr r3, [r7, #4]
  41520. 8011c3a: 681b ldr r3, [r3, #0]
  41521. 8011c3c: f44f 1280 mov.w r2, #1048576 @ 0x100000
  41522. 8011c40: 621a str r2, [r3, #32]
  41523. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41524. /* Call registered Wakeup Callback */
  41525. huart->WakeupCallback(huart);
  41526. #else
  41527. /* Call legacy weak Wakeup Callback */
  41528. HAL_UARTEx_WakeupCallback(huart);
  41529. 8011c42: 6878 ldr r0, [r7, #4]
  41530. 8011c44: f002 f80c bl 8013c60 <HAL_UARTEx_WakeupCallback>
  41531. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41532. return;
  41533. 8011c48: e051 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41534. }
  41535. /* UART in mode Transmitter ------------------------------------------------*/
  41536. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  41537. 8011c4a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41538. 8011c4e: f003 0380 and.w r3, r3, #128 @ 0x80
  41539. 8011c52: 2b00 cmp r3, #0
  41540. 8011c54: d014 beq.n 8011c80 <HAL_UART_IRQHandler+0x6fc>
  41541. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  41542. 8011c56: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41543. 8011c5a: f003 0380 and.w r3, r3, #128 @ 0x80
  41544. 8011c5e: 2b00 cmp r3, #0
  41545. 8011c60: d105 bne.n 8011c6e <HAL_UART_IRQHandler+0x6ea>
  41546. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  41547. 8011c62: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41548. 8011c66: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41549. 8011c6a: 2b00 cmp r3, #0
  41550. 8011c6c: d008 beq.n 8011c80 <HAL_UART_IRQHandler+0x6fc>
  41551. {
  41552. if (huart->TxISR != NULL)
  41553. 8011c6e: 687b ldr r3, [r7, #4]
  41554. 8011c70: 6f9b ldr r3, [r3, #120] @ 0x78
  41555. 8011c72: 2b00 cmp r3, #0
  41556. 8011c74: d03a beq.n 8011cec <HAL_UART_IRQHandler+0x768>
  41557. {
  41558. huart->TxISR(huart);
  41559. 8011c76: 687b ldr r3, [r7, #4]
  41560. 8011c78: 6f9b ldr r3, [r3, #120] @ 0x78
  41561. 8011c7a: 6878 ldr r0, [r7, #4]
  41562. 8011c7c: 4798 blx r3
  41563. }
  41564. return;
  41565. 8011c7e: e035 b.n 8011cec <HAL_UART_IRQHandler+0x768>
  41566. }
  41567. /* UART in mode Transmitter (transmission end) -----------------------------*/
  41568. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  41569. 8011c80: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41570. 8011c84: f003 0340 and.w r3, r3, #64 @ 0x40
  41571. 8011c88: 2b00 cmp r3, #0
  41572. 8011c8a: d009 beq.n 8011ca0 <HAL_UART_IRQHandler+0x71c>
  41573. 8011c8c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41574. 8011c90: f003 0340 and.w r3, r3, #64 @ 0x40
  41575. 8011c94: 2b00 cmp r3, #0
  41576. 8011c96: d003 beq.n 8011ca0 <HAL_UART_IRQHandler+0x71c>
  41577. {
  41578. UART_EndTransmit_IT(huart);
  41579. 8011c98: 6878 ldr r0, [r7, #4]
  41580. 8011c9a: f001 fa99 bl 80131d0 <UART_EndTransmit_IT>
  41581. return;
  41582. 8011c9e: e026 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41583. }
  41584. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  41585. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  41586. 8011ca0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41587. 8011ca4: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41588. 8011ca8: 2b00 cmp r3, #0
  41589. 8011caa: d009 beq.n 8011cc0 <HAL_UART_IRQHandler+0x73c>
  41590. 8011cac: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41591. 8011cb0: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  41592. 8011cb4: 2b00 cmp r3, #0
  41593. 8011cb6: d003 beq.n 8011cc0 <HAL_UART_IRQHandler+0x73c>
  41594. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41595. /* Call registered Tx Fifo Empty Callback */
  41596. huart->TxFifoEmptyCallback(huart);
  41597. #else
  41598. /* Call legacy weak Tx Fifo Empty Callback */
  41599. HAL_UARTEx_TxFifoEmptyCallback(huart);
  41600. 8011cb8: 6878 ldr r0, [r7, #4]
  41601. 8011cba: f001 ffe5 bl 8013c88 <HAL_UARTEx_TxFifoEmptyCallback>
  41602. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41603. return;
  41604. 8011cbe: e016 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41605. }
  41606. /* UART RX Fifo Full occurred ----------------------------------------------*/
  41607. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  41608. 8011cc0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41609. 8011cc4: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  41610. 8011cc8: 2b00 cmp r3, #0
  41611. 8011cca: d010 beq.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41612. 8011ccc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41613. 8011cd0: 2b00 cmp r3, #0
  41614. 8011cd2: da0c bge.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41615. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41616. /* Call registered Rx Fifo Full Callback */
  41617. huart->RxFifoFullCallback(huart);
  41618. #else
  41619. /* Call legacy weak Rx Fifo Full Callback */
  41620. HAL_UARTEx_RxFifoFullCallback(huart);
  41621. 8011cd4: 6878 ldr r0, [r7, #4]
  41622. 8011cd6: f001 ffcd bl 8013c74 <HAL_UARTEx_RxFifoFullCallback>
  41623. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41624. return;
  41625. 8011cda: e008 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41626. return;
  41627. 8011cdc: bf00 nop
  41628. 8011cde: e006 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41629. return;
  41630. 8011ce0: bf00 nop
  41631. 8011ce2: e004 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41632. return;
  41633. 8011ce4: bf00 nop
  41634. 8011ce6: e002 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41635. return;
  41636. 8011ce8: bf00 nop
  41637. 8011cea: e000 b.n 8011cee <HAL_UART_IRQHandler+0x76a>
  41638. return;
  41639. 8011cec: bf00 nop
  41640. }
  41641. }
  41642. 8011cee: 37e8 adds r7, #232 @ 0xe8
  41643. 8011cf0: 46bd mov sp, r7
  41644. 8011cf2: bd80 pop {r7, pc}
  41645. 8011cf4: effffffe .word 0xeffffffe
  41646. 08011cf8 <HAL_UART_ErrorCallback>:
  41647. * @brief UART error callback.
  41648. * @param huart UART handle.
  41649. * @retval None
  41650. */
  41651. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  41652. {
  41653. 8011cf8: b480 push {r7}
  41654. 8011cfa: b083 sub sp, #12
  41655. 8011cfc: af00 add r7, sp, #0
  41656. 8011cfe: 6078 str r0, [r7, #4]
  41657. UNUSED(huart);
  41658. /* NOTE : This function should not be modified, when the callback is needed,
  41659. the HAL_UART_ErrorCallback can be implemented in the user file.
  41660. */
  41661. }
  41662. 8011d00: bf00 nop
  41663. 8011d02: 370c adds r7, #12
  41664. 8011d04: 46bd mov sp, r7
  41665. 8011d06: f85d 7b04 ldr.w r7, [sp], #4
  41666. 8011d0a: 4770 bx lr
  41667. 08011d0c <UART_SetConfig>:
  41668. * @brief Configure the UART peripheral.
  41669. * @param huart UART handle.
  41670. * @retval HAL status
  41671. */
  41672. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  41673. {
  41674. 8011d0c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  41675. 8011d10: b092 sub sp, #72 @ 0x48
  41676. 8011d12: af00 add r7, sp, #0
  41677. 8011d14: 6178 str r0, [r7, #20]
  41678. uint32_t tmpreg;
  41679. uint16_t brrtemp;
  41680. UART_ClockSourceTypeDef clocksource;
  41681. uint32_t usartdiv;
  41682. HAL_StatusTypeDef ret = HAL_OK;
  41683. 8011d16: 2300 movs r3, #0
  41684. 8011d18: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41685. * the UART Word Length, Parity, Mode and oversampling:
  41686. * set the M bits according to huart->Init.WordLength value
  41687. * set PCE and PS bits according to huart->Init.Parity value
  41688. * set TE and RE bits according to huart->Init.Mode value
  41689. * set OVER8 bit according to huart->Init.OverSampling value */
  41690. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  41691. 8011d1c: 697b ldr r3, [r7, #20]
  41692. 8011d1e: 689a ldr r2, [r3, #8]
  41693. 8011d20: 697b ldr r3, [r7, #20]
  41694. 8011d22: 691b ldr r3, [r3, #16]
  41695. 8011d24: 431a orrs r2, r3
  41696. 8011d26: 697b ldr r3, [r7, #20]
  41697. 8011d28: 695b ldr r3, [r3, #20]
  41698. 8011d2a: 431a orrs r2, r3
  41699. 8011d2c: 697b ldr r3, [r7, #20]
  41700. 8011d2e: 69db ldr r3, [r3, #28]
  41701. 8011d30: 4313 orrs r3, r2
  41702. 8011d32: 647b str r3, [r7, #68] @ 0x44
  41703. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  41704. 8011d34: 697b ldr r3, [r7, #20]
  41705. 8011d36: 681b ldr r3, [r3, #0]
  41706. 8011d38: 681a ldr r2, [r3, #0]
  41707. 8011d3a: 4bbe ldr r3, [pc, #760] @ (8012034 <UART_SetConfig+0x328>)
  41708. 8011d3c: 4013 ands r3, r2
  41709. 8011d3e: 697a ldr r2, [r7, #20]
  41710. 8011d40: 6812 ldr r2, [r2, #0]
  41711. 8011d42: 6c79 ldr r1, [r7, #68] @ 0x44
  41712. 8011d44: 430b orrs r3, r1
  41713. 8011d46: 6013 str r3, [r2, #0]
  41714. /*-------------------------- USART CR2 Configuration -----------------------*/
  41715. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  41716. * to huart->Init.StopBits value */
  41717. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  41718. 8011d48: 697b ldr r3, [r7, #20]
  41719. 8011d4a: 681b ldr r3, [r3, #0]
  41720. 8011d4c: 685b ldr r3, [r3, #4]
  41721. 8011d4e: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  41722. 8011d52: 697b ldr r3, [r7, #20]
  41723. 8011d54: 68da ldr r2, [r3, #12]
  41724. 8011d56: 697b ldr r3, [r7, #20]
  41725. 8011d58: 681b ldr r3, [r3, #0]
  41726. 8011d5a: 430a orrs r2, r1
  41727. 8011d5c: 605a str r2, [r3, #4]
  41728. /* Configure
  41729. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  41730. * to huart->Init.HwFlowCtl value
  41731. * - one-bit sampling method versus three samples' majority rule according
  41732. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  41733. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  41734. 8011d5e: 697b ldr r3, [r7, #20]
  41735. 8011d60: 699b ldr r3, [r3, #24]
  41736. 8011d62: 647b str r3, [r7, #68] @ 0x44
  41737. if (!(UART_INSTANCE_LOWPOWER(huart)))
  41738. 8011d64: 697b ldr r3, [r7, #20]
  41739. 8011d66: 681b ldr r3, [r3, #0]
  41740. 8011d68: 4ab3 ldr r2, [pc, #716] @ (8012038 <UART_SetConfig+0x32c>)
  41741. 8011d6a: 4293 cmp r3, r2
  41742. 8011d6c: d004 beq.n 8011d78 <UART_SetConfig+0x6c>
  41743. {
  41744. tmpreg |= huart->Init.OneBitSampling;
  41745. 8011d6e: 697b ldr r3, [r7, #20]
  41746. 8011d70: 6a1b ldr r3, [r3, #32]
  41747. 8011d72: 6c7a ldr r2, [r7, #68] @ 0x44
  41748. 8011d74: 4313 orrs r3, r2
  41749. 8011d76: 647b str r3, [r7, #68] @ 0x44
  41750. }
  41751. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  41752. 8011d78: 697b ldr r3, [r7, #20]
  41753. 8011d7a: 681b ldr r3, [r3, #0]
  41754. 8011d7c: 689a ldr r2, [r3, #8]
  41755. 8011d7e: 4baf ldr r3, [pc, #700] @ (801203c <UART_SetConfig+0x330>)
  41756. 8011d80: 4013 ands r3, r2
  41757. 8011d82: 697a ldr r2, [r7, #20]
  41758. 8011d84: 6812 ldr r2, [r2, #0]
  41759. 8011d86: 6c79 ldr r1, [r7, #68] @ 0x44
  41760. 8011d88: 430b orrs r3, r1
  41761. 8011d8a: 6093 str r3, [r2, #8]
  41762. /*-------------------------- USART PRESC Configuration -----------------------*/
  41763. /* Configure
  41764. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  41765. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  41766. 8011d8c: 697b ldr r3, [r7, #20]
  41767. 8011d8e: 681b ldr r3, [r3, #0]
  41768. 8011d90: 6adb ldr r3, [r3, #44] @ 0x2c
  41769. 8011d92: f023 010f bic.w r1, r3, #15
  41770. 8011d96: 697b ldr r3, [r7, #20]
  41771. 8011d98: 6a5a ldr r2, [r3, #36] @ 0x24
  41772. 8011d9a: 697b ldr r3, [r7, #20]
  41773. 8011d9c: 681b ldr r3, [r3, #0]
  41774. 8011d9e: 430a orrs r2, r1
  41775. 8011da0: 62da str r2, [r3, #44] @ 0x2c
  41776. /*-------------------------- USART BRR Configuration -----------------------*/
  41777. UART_GETCLOCKSOURCE(huart, clocksource);
  41778. 8011da2: 697b ldr r3, [r7, #20]
  41779. 8011da4: 681b ldr r3, [r3, #0]
  41780. 8011da6: 4aa6 ldr r2, [pc, #664] @ (8012040 <UART_SetConfig+0x334>)
  41781. 8011da8: 4293 cmp r3, r2
  41782. 8011daa: d177 bne.n 8011e9c <UART_SetConfig+0x190>
  41783. 8011dac: 4ba5 ldr r3, [pc, #660] @ (8012044 <UART_SetConfig+0x338>)
  41784. 8011dae: 6d5b ldr r3, [r3, #84] @ 0x54
  41785. 8011db0: f003 0338 and.w r3, r3, #56 @ 0x38
  41786. 8011db4: 2b28 cmp r3, #40 @ 0x28
  41787. 8011db6: d86d bhi.n 8011e94 <UART_SetConfig+0x188>
  41788. 8011db8: a201 add r2, pc, #4 @ (adr r2, 8011dc0 <UART_SetConfig+0xb4>)
  41789. 8011dba: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41790. 8011dbe: bf00 nop
  41791. 8011dc0: 08011e65 .word 0x08011e65
  41792. 8011dc4: 08011e95 .word 0x08011e95
  41793. 8011dc8: 08011e95 .word 0x08011e95
  41794. 8011dcc: 08011e95 .word 0x08011e95
  41795. 8011dd0: 08011e95 .word 0x08011e95
  41796. 8011dd4: 08011e95 .word 0x08011e95
  41797. 8011dd8: 08011e95 .word 0x08011e95
  41798. 8011ddc: 08011e95 .word 0x08011e95
  41799. 8011de0: 08011e6d .word 0x08011e6d
  41800. 8011de4: 08011e95 .word 0x08011e95
  41801. 8011de8: 08011e95 .word 0x08011e95
  41802. 8011dec: 08011e95 .word 0x08011e95
  41803. 8011df0: 08011e95 .word 0x08011e95
  41804. 8011df4: 08011e95 .word 0x08011e95
  41805. 8011df8: 08011e95 .word 0x08011e95
  41806. 8011dfc: 08011e95 .word 0x08011e95
  41807. 8011e00: 08011e75 .word 0x08011e75
  41808. 8011e04: 08011e95 .word 0x08011e95
  41809. 8011e08: 08011e95 .word 0x08011e95
  41810. 8011e0c: 08011e95 .word 0x08011e95
  41811. 8011e10: 08011e95 .word 0x08011e95
  41812. 8011e14: 08011e95 .word 0x08011e95
  41813. 8011e18: 08011e95 .word 0x08011e95
  41814. 8011e1c: 08011e95 .word 0x08011e95
  41815. 8011e20: 08011e7d .word 0x08011e7d
  41816. 8011e24: 08011e95 .word 0x08011e95
  41817. 8011e28: 08011e95 .word 0x08011e95
  41818. 8011e2c: 08011e95 .word 0x08011e95
  41819. 8011e30: 08011e95 .word 0x08011e95
  41820. 8011e34: 08011e95 .word 0x08011e95
  41821. 8011e38: 08011e95 .word 0x08011e95
  41822. 8011e3c: 08011e95 .word 0x08011e95
  41823. 8011e40: 08011e85 .word 0x08011e85
  41824. 8011e44: 08011e95 .word 0x08011e95
  41825. 8011e48: 08011e95 .word 0x08011e95
  41826. 8011e4c: 08011e95 .word 0x08011e95
  41827. 8011e50: 08011e95 .word 0x08011e95
  41828. 8011e54: 08011e95 .word 0x08011e95
  41829. 8011e58: 08011e95 .word 0x08011e95
  41830. 8011e5c: 08011e95 .word 0x08011e95
  41831. 8011e60: 08011e8d .word 0x08011e8d
  41832. 8011e64: 2301 movs r3, #1
  41833. 8011e66: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41834. 8011e6a: e222 b.n 80122b2 <UART_SetConfig+0x5a6>
  41835. 8011e6c: 2304 movs r3, #4
  41836. 8011e6e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41837. 8011e72: e21e b.n 80122b2 <UART_SetConfig+0x5a6>
  41838. 8011e74: 2308 movs r3, #8
  41839. 8011e76: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41840. 8011e7a: e21a b.n 80122b2 <UART_SetConfig+0x5a6>
  41841. 8011e7c: 2310 movs r3, #16
  41842. 8011e7e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41843. 8011e82: e216 b.n 80122b2 <UART_SetConfig+0x5a6>
  41844. 8011e84: 2320 movs r3, #32
  41845. 8011e86: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41846. 8011e8a: e212 b.n 80122b2 <UART_SetConfig+0x5a6>
  41847. 8011e8c: 2340 movs r3, #64 @ 0x40
  41848. 8011e8e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41849. 8011e92: e20e b.n 80122b2 <UART_SetConfig+0x5a6>
  41850. 8011e94: 2380 movs r3, #128 @ 0x80
  41851. 8011e96: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41852. 8011e9a: e20a b.n 80122b2 <UART_SetConfig+0x5a6>
  41853. 8011e9c: 697b ldr r3, [r7, #20]
  41854. 8011e9e: 681b ldr r3, [r3, #0]
  41855. 8011ea0: 4a69 ldr r2, [pc, #420] @ (8012048 <UART_SetConfig+0x33c>)
  41856. 8011ea2: 4293 cmp r3, r2
  41857. 8011ea4: d130 bne.n 8011f08 <UART_SetConfig+0x1fc>
  41858. 8011ea6: 4b67 ldr r3, [pc, #412] @ (8012044 <UART_SetConfig+0x338>)
  41859. 8011ea8: 6d5b ldr r3, [r3, #84] @ 0x54
  41860. 8011eaa: f003 0307 and.w r3, r3, #7
  41861. 8011eae: 2b05 cmp r3, #5
  41862. 8011eb0: d826 bhi.n 8011f00 <UART_SetConfig+0x1f4>
  41863. 8011eb2: a201 add r2, pc, #4 @ (adr r2, 8011eb8 <UART_SetConfig+0x1ac>)
  41864. 8011eb4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41865. 8011eb8: 08011ed1 .word 0x08011ed1
  41866. 8011ebc: 08011ed9 .word 0x08011ed9
  41867. 8011ec0: 08011ee1 .word 0x08011ee1
  41868. 8011ec4: 08011ee9 .word 0x08011ee9
  41869. 8011ec8: 08011ef1 .word 0x08011ef1
  41870. 8011ecc: 08011ef9 .word 0x08011ef9
  41871. 8011ed0: 2300 movs r3, #0
  41872. 8011ed2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41873. 8011ed6: e1ec b.n 80122b2 <UART_SetConfig+0x5a6>
  41874. 8011ed8: 2304 movs r3, #4
  41875. 8011eda: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41876. 8011ede: e1e8 b.n 80122b2 <UART_SetConfig+0x5a6>
  41877. 8011ee0: 2308 movs r3, #8
  41878. 8011ee2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41879. 8011ee6: e1e4 b.n 80122b2 <UART_SetConfig+0x5a6>
  41880. 8011ee8: 2310 movs r3, #16
  41881. 8011eea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41882. 8011eee: e1e0 b.n 80122b2 <UART_SetConfig+0x5a6>
  41883. 8011ef0: 2320 movs r3, #32
  41884. 8011ef2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41885. 8011ef6: e1dc b.n 80122b2 <UART_SetConfig+0x5a6>
  41886. 8011ef8: 2340 movs r3, #64 @ 0x40
  41887. 8011efa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41888. 8011efe: e1d8 b.n 80122b2 <UART_SetConfig+0x5a6>
  41889. 8011f00: 2380 movs r3, #128 @ 0x80
  41890. 8011f02: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41891. 8011f06: e1d4 b.n 80122b2 <UART_SetConfig+0x5a6>
  41892. 8011f08: 697b ldr r3, [r7, #20]
  41893. 8011f0a: 681b ldr r3, [r3, #0]
  41894. 8011f0c: 4a4f ldr r2, [pc, #316] @ (801204c <UART_SetConfig+0x340>)
  41895. 8011f0e: 4293 cmp r3, r2
  41896. 8011f10: d130 bne.n 8011f74 <UART_SetConfig+0x268>
  41897. 8011f12: 4b4c ldr r3, [pc, #304] @ (8012044 <UART_SetConfig+0x338>)
  41898. 8011f14: 6d5b ldr r3, [r3, #84] @ 0x54
  41899. 8011f16: f003 0307 and.w r3, r3, #7
  41900. 8011f1a: 2b05 cmp r3, #5
  41901. 8011f1c: d826 bhi.n 8011f6c <UART_SetConfig+0x260>
  41902. 8011f1e: a201 add r2, pc, #4 @ (adr r2, 8011f24 <UART_SetConfig+0x218>)
  41903. 8011f20: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41904. 8011f24: 08011f3d .word 0x08011f3d
  41905. 8011f28: 08011f45 .word 0x08011f45
  41906. 8011f2c: 08011f4d .word 0x08011f4d
  41907. 8011f30: 08011f55 .word 0x08011f55
  41908. 8011f34: 08011f5d .word 0x08011f5d
  41909. 8011f38: 08011f65 .word 0x08011f65
  41910. 8011f3c: 2300 movs r3, #0
  41911. 8011f3e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41912. 8011f42: e1b6 b.n 80122b2 <UART_SetConfig+0x5a6>
  41913. 8011f44: 2304 movs r3, #4
  41914. 8011f46: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41915. 8011f4a: e1b2 b.n 80122b2 <UART_SetConfig+0x5a6>
  41916. 8011f4c: 2308 movs r3, #8
  41917. 8011f4e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41918. 8011f52: e1ae b.n 80122b2 <UART_SetConfig+0x5a6>
  41919. 8011f54: 2310 movs r3, #16
  41920. 8011f56: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41921. 8011f5a: e1aa b.n 80122b2 <UART_SetConfig+0x5a6>
  41922. 8011f5c: 2320 movs r3, #32
  41923. 8011f5e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41924. 8011f62: e1a6 b.n 80122b2 <UART_SetConfig+0x5a6>
  41925. 8011f64: 2340 movs r3, #64 @ 0x40
  41926. 8011f66: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41927. 8011f6a: e1a2 b.n 80122b2 <UART_SetConfig+0x5a6>
  41928. 8011f6c: 2380 movs r3, #128 @ 0x80
  41929. 8011f6e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41930. 8011f72: e19e b.n 80122b2 <UART_SetConfig+0x5a6>
  41931. 8011f74: 697b ldr r3, [r7, #20]
  41932. 8011f76: 681b ldr r3, [r3, #0]
  41933. 8011f78: 4a35 ldr r2, [pc, #212] @ (8012050 <UART_SetConfig+0x344>)
  41934. 8011f7a: 4293 cmp r3, r2
  41935. 8011f7c: d130 bne.n 8011fe0 <UART_SetConfig+0x2d4>
  41936. 8011f7e: 4b31 ldr r3, [pc, #196] @ (8012044 <UART_SetConfig+0x338>)
  41937. 8011f80: 6d5b ldr r3, [r3, #84] @ 0x54
  41938. 8011f82: f003 0307 and.w r3, r3, #7
  41939. 8011f86: 2b05 cmp r3, #5
  41940. 8011f88: d826 bhi.n 8011fd8 <UART_SetConfig+0x2cc>
  41941. 8011f8a: a201 add r2, pc, #4 @ (adr r2, 8011f90 <UART_SetConfig+0x284>)
  41942. 8011f8c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41943. 8011f90: 08011fa9 .word 0x08011fa9
  41944. 8011f94: 08011fb1 .word 0x08011fb1
  41945. 8011f98: 08011fb9 .word 0x08011fb9
  41946. 8011f9c: 08011fc1 .word 0x08011fc1
  41947. 8011fa0: 08011fc9 .word 0x08011fc9
  41948. 8011fa4: 08011fd1 .word 0x08011fd1
  41949. 8011fa8: 2300 movs r3, #0
  41950. 8011faa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41951. 8011fae: e180 b.n 80122b2 <UART_SetConfig+0x5a6>
  41952. 8011fb0: 2304 movs r3, #4
  41953. 8011fb2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41954. 8011fb6: e17c b.n 80122b2 <UART_SetConfig+0x5a6>
  41955. 8011fb8: 2308 movs r3, #8
  41956. 8011fba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41957. 8011fbe: e178 b.n 80122b2 <UART_SetConfig+0x5a6>
  41958. 8011fc0: 2310 movs r3, #16
  41959. 8011fc2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41960. 8011fc6: e174 b.n 80122b2 <UART_SetConfig+0x5a6>
  41961. 8011fc8: 2320 movs r3, #32
  41962. 8011fca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41963. 8011fce: e170 b.n 80122b2 <UART_SetConfig+0x5a6>
  41964. 8011fd0: 2340 movs r3, #64 @ 0x40
  41965. 8011fd2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41966. 8011fd6: e16c b.n 80122b2 <UART_SetConfig+0x5a6>
  41967. 8011fd8: 2380 movs r3, #128 @ 0x80
  41968. 8011fda: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41969. 8011fde: e168 b.n 80122b2 <UART_SetConfig+0x5a6>
  41970. 8011fe0: 697b ldr r3, [r7, #20]
  41971. 8011fe2: 681b ldr r3, [r3, #0]
  41972. 8011fe4: 4a1b ldr r2, [pc, #108] @ (8012054 <UART_SetConfig+0x348>)
  41973. 8011fe6: 4293 cmp r3, r2
  41974. 8011fe8: d142 bne.n 8012070 <UART_SetConfig+0x364>
  41975. 8011fea: 4b16 ldr r3, [pc, #88] @ (8012044 <UART_SetConfig+0x338>)
  41976. 8011fec: 6d5b ldr r3, [r3, #84] @ 0x54
  41977. 8011fee: f003 0307 and.w r3, r3, #7
  41978. 8011ff2: 2b05 cmp r3, #5
  41979. 8011ff4: d838 bhi.n 8012068 <UART_SetConfig+0x35c>
  41980. 8011ff6: a201 add r2, pc, #4 @ (adr r2, 8011ffc <UART_SetConfig+0x2f0>)
  41981. 8011ff8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41982. 8011ffc: 08012015 .word 0x08012015
  41983. 8012000: 0801201d .word 0x0801201d
  41984. 8012004: 08012025 .word 0x08012025
  41985. 8012008: 0801202d .word 0x0801202d
  41986. 801200c: 08012059 .word 0x08012059
  41987. 8012010: 08012061 .word 0x08012061
  41988. 8012014: 2300 movs r3, #0
  41989. 8012016: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41990. 801201a: e14a b.n 80122b2 <UART_SetConfig+0x5a6>
  41991. 801201c: 2304 movs r3, #4
  41992. 801201e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41993. 8012022: e146 b.n 80122b2 <UART_SetConfig+0x5a6>
  41994. 8012024: 2308 movs r3, #8
  41995. 8012026: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41996. 801202a: e142 b.n 80122b2 <UART_SetConfig+0x5a6>
  41997. 801202c: 2310 movs r3, #16
  41998. 801202e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41999. 8012032: e13e b.n 80122b2 <UART_SetConfig+0x5a6>
  42000. 8012034: cfff69f3 .word 0xcfff69f3
  42001. 8012038: 58000c00 .word 0x58000c00
  42002. 801203c: 11fff4ff .word 0x11fff4ff
  42003. 8012040: 40011000 .word 0x40011000
  42004. 8012044: 58024400 .word 0x58024400
  42005. 8012048: 40004400 .word 0x40004400
  42006. 801204c: 40004800 .word 0x40004800
  42007. 8012050: 40004c00 .word 0x40004c00
  42008. 8012054: 40005000 .word 0x40005000
  42009. 8012058: 2320 movs r3, #32
  42010. 801205a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42011. 801205e: e128 b.n 80122b2 <UART_SetConfig+0x5a6>
  42012. 8012060: 2340 movs r3, #64 @ 0x40
  42013. 8012062: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42014. 8012066: e124 b.n 80122b2 <UART_SetConfig+0x5a6>
  42015. 8012068: 2380 movs r3, #128 @ 0x80
  42016. 801206a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42017. 801206e: e120 b.n 80122b2 <UART_SetConfig+0x5a6>
  42018. 8012070: 697b ldr r3, [r7, #20]
  42019. 8012072: 681b ldr r3, [r3, #0]
  42020. 8012074: 4acb ldr r2, [pc, #812] @ (80123a4 <UART_SetConfig+0x698>)
  42021. 8012076: 4293 cmp r3, r2
  42022. 8012078: d176 bne.n 8012168 <UART_SetConfig+0x45c>
  42023. 801207a: 4bcb ldr r3, [pc, #812] @ (80123a8 <UART_SetConfig+0x69c>)
  42024. 801207c: 6d5b ldr r3, [r3, #84] @ 0x54
  42025. 801207e: f003 0338 and.w r3, r3, #56 @ 0x38
  42026. 8012082: 2b28 cmp r3, #40 @ 0x28
  42027. 8012084: d86c bhi.n 8012160 <UART_SetConfig+0x454>
  42028. 8012086: a201 add r2, pc, #4 @ (adr r2, 801208c <UART_SetConfig+0x380>)
  42029. 8012088: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42030. 801208c: 08012131 .word 0x08012131
  42031. 8012090: 08012161 .word 0x08012161
  42032. 8012094: 08012161 .word 0x08012161
  42033. 8012098: 08012161 .word 0x08012161
  42034. 801209c: 08012161 .word 0x08012161
  42035. 80120a0: 08012161 .word 0x08012161
  42036. 80120a4: 08012161 .word 0x08012161
  42037. 80120a8: 08012161 .word 0x08012161
  42038. 80120ac: 08012139 .word 0x08012139
  42039. 80120b0: 08012161 .word 0x08012161
  42040. 80120b4: 08012161 .word 0x08012161
  42041. 80120b8: 08012161 .word 0x08012161
  42042. 80120bc: 08012161 .word 0x08012161
  42043. 80120c0: 08012161 .word 0x08012161
  42044. 80120c4: 08012161 .word 0x08012161
  42045. 80120c8: 08012161 .word 0x08012161
  42046. 80120cc: 08012141 .word 0x08012141
  42047. 80120d0: 08012161 .word 0x08012161
  42048. 80120d4: 08012161 .word 0x08012161
  42049. 80120d8: 08012161 .word 0x08012161
  42050. 80120dc: 08012161 .word 0x08012161
  42051. 80120e0: 08012161 .word 0x08012161
  42052. 80120e4: 08012161 .word 0x08012161
  42053. 80120e8: 08012161 .word 0x08012161
  42054. 80120ec: 08012149 .word 0x08012149
  42055. 80120f0: 08012161 .word 0x08012161
  42056. 80120f4: 08012161 .word 0x08012161
  42057. 80120f8: 08012161 .word 0x08012161
  42058. 80120fc: 08012161 .word 0x08012161
  42059. 8012100: 08012161 .word 0x08012161
  42060. 8012104: 08012161 .word 0x08012161
  42061. 8012108: 08012161 .word 0x08012161
  42062. 801210c: 08012151 .word 0x08012151
  42063. 8012110: 08012161 .word 0x08012161
  42064. 8012114: 08012161 .word 0x08012161
  42065. 8012118: 08012161 .word 0x08012161
  42066. 801211c: 08012161 .word 0x08012161
  42067. 8012120: 08012161 .word 0x08012161
  42068. 8012124: 08012161 .word 0x08012161
  42069. 8012128: 08012161 .word 0x08012161
  42070. 801212c: 08012159 .word 0x08012159
  42071. 8012130: 2301 movs r3, #1
  42072. 8012132: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42073. 8012136: e0bc b.n 80122b2 <UART_SetConfig+0x5a6>
  42074. 8012138: 2304 movs r3, #4
  42075. 801213a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42076. 801213e: e0b8 b.n 80122b2 <UART_SetConfig+0x5a6>
  42077. 8012140: 2308 movs r3, #8
  42078. 8012142: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42079. 8012146: e0b4 b.n 80122b2 <UART_SetConfig+0x5a6>
  42080. 8012148: 2310 movs r3, #16
  42081. 801214a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42082. 801214e: e0b0 b.n 80122b2 <UART_SetConfig+0x5a6>
  42083. 8012150: 2320 movs r3, #32
  42084. 8012152: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42085. 8012156: e0ac b.n 80122b2 <UART_SetConfig+0x5a6>
  42086. 8012158: 2340 movs r3, #64 @ 0x40
  42087. 801215a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42088. 801215e: e0a8 b.n 80122b2 <UART_SetConfig+0x5a6>
  42089. 8012160: 2380 movs r3, #128 @ 0x80
  42090. 8012162: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42091. 8012166: e0a4 b.n 80122b2 <UART_SetConfig+0x5a6>
  42092. 8012168: 697b ldr r3, [r7, #20]
  42093. 801216a: 681b ldr r3, [r3, #0]
  42094. 801216c: 4a8f ldr r2, [pc, #572] @ (80123ac <UART_SetConfig+0x6a0>)
  42095. 801216e: 4293 cmp r3, r2
  42096. 8012170: d130 bne.n 80121d4 <UART_SetConfig+0x4c8>
  42097. 8012172: 4b8d ldr r3, [pc, #564] @ (80123a8 <UART_SetConfig+0x69c>)
  42098. 8012174: 6d5b ldr r3, [r3, #84] @ 0x54
  42099. 8012176: f003 0307 and.w r3, r3, #7
  42100. 801217a: 2b05 cmp r3, #5
  42101. 801217c: d826 bhi.n 80121cc <UART_SetConfig+0x4c0>
  42102. 801217e: a201 add r2, pc, #4 @ (adr r2, 8012184 <UART_SetConfig+0x478>)
  42103. 8012180: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42104. 8012184: 0801219d .word 0x0801219d
  42105. 8012188: 080121a5 .word 0x080121a5
  42106. 801218c: 080121ad .word 0x080121ad
  42107. 8012190: 080121b5 .word 0x080121b5
  42108. 8012194: 080121bd .word 0x080121bd
  42109. 8012198: 080121c5 .word 0x080121c5
  42110. 801219c: 2300 movs r3, #0
  42111. 801219e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42112. 80121a2: e086 b.n 80122b2 <UART_SetConfig+0x5a6>
  42113. 80121a4: 2304 movs r3, #4
  42114. 80121a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42115. 80121aa: e082 b.n 80122b2 <UART_SetConfig+0x5a6>
  42116. 80121ac: 2308 movs r3, #8
  42117. 80121ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42118. 80121b2: e07e b.n 80122b2 <UART_SetConfig+0x5a6>
  42119. 80121b4: 2310 movs r3, #16
  42120. 80121b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42121. 80121ba: e07a b.n 80122b2 <UART_SetConfig+0x5a6>
  42122. 80121bc: 2320 movs r3, #32
  42123. 80121be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42124. 80121c2: e076 b.n 80122b2 <UART_SetConfig+0x5a6>
  42125. 80121c4: 2340 movs r3, #64 @ 0x40
  42126. 80121c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42127. 80121ca: e072 b.n 80122b2 <UART_SetConfig+0x5a6>
  42128. 80121cc: 2380 movs r3, #128 @ 0x80
  42129. 80121ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42130. 80121d2: e06e b.n 80122b2 <UART_SetConfig+0x5a6>
  42131. 80121d4: 697b ldr r3, [r7, #20]
  42132. 80121d6: 681b ldr r3, [r3, #0]
  42133. 80121d8: 4a75 ldr r2, [pc, #468] @ (80123b0 <UART_SetConfig+0x6a4>)
  42134. 80121da: 4293 cmp r3, r2
  42135. 80121dc: d130 bne.n 8012240 <UART_SetConfig+0x534>
  42136. 80121de: 4b72 ldr r3, [pc, #456] @ (80123a8 <UART_SetConfig+0x69c>)
  42137. 80121e0: 6d5b ldr r3, [r3, #84] @ 0x54
  42138. 80121e2: f003 0307 and.w r3, r3, #7
  42139. 80121e6: 2b05 cmp r3, #5
  42140. 80121e8: d826 bhi.n 8012238 <UART_SetConfig+0x52c>
  42141. 80121ea: a201 add r2, pc, #4 @ (adr r2, 80121f0 <UART_SetConfig+0x4e4>)
  42142. 80121ec: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42143. 80121f0: 08012209 .word 0x08012209
  42144. 80121f4: 08012211 .word 0x08012211
  42145. 80121f8: 08012219 .word 0x08012219
  42146. 80121fc: 08012221 .word 0x08012221
  42147. 8012200: 08012229 .word 0x08012229
  42148. 8012204: 08012231 .word 0x08012231
  42149. 8012208: 2300 movs r3, #0
  42150. 801220a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42151. 801220e: e050 b.n 80122b2 <UART_SetConfig+0x5a6>
  42152. 8012210: 2304 movs r3, #4
  42153. 8012212: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42154. 8012216: e04c b.n 80122b2 <UART_SetConfig+0x5a6>
  42155. 8012218: 2308 movs r3, #8
  42156. 801221a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42157. 801221e: e048 b.n 80122b2 <UART_SetConfig+0x5a6>
  42158. 8012220: 2310 movs r3, #16
  42159. 8012222: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42160. 8012226: e044 b.n 80122b2 <UART_SetConfig+0x5a6>
  42161. 8012228: 2320 movs r3, #32
  42162. 801222a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42163. 801222e: e040 b.n 80122b2 <UART_SetConfig+0x5a6>
  42164. 8012230: 2340 movs r3, #64 @ 0x40
  42165. 8012232: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42166. 8012236: e03c b.n 80122b2 <UART_SetConfig+0x5a6>
  42167. 8012238: 2380 movs r3, #128 @ 0x80
  42168. 801223a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42169. 801223e: e038 b.n 80122b2 <UART_SetConfig+0x5a6>
  42170. 8012240: 697b ldr r3, [r7, #20]
  42171. 8012242: 681b ldr r3, [r3, #0]
  42172. 8012244: 4a5b ldr r2, [pc, #364] @ (80123b4 <UART_SetConfig+0x6a8>)
  42173. 8012246: 4293 cmp r3, r2
  42174. 8012248: d130 bne.n 80122ac <UART_SetConfig+0x5a0>
  42175. 801224a: 4b57 ldr r3, [pc, #348] @ (80123a8 <UART_SetConfig+0x69c>)
  42176. 801224c: 6d9b ldr r3, [r3, #88] @ 0x58
  42177. 801224e: f003 0307 and.w r3, r3, #7
  42178. 8012252: 2b05 cmp r3, #5
  42179. 8012254: d826 bhi.n 80122a4 <UART_SetConfig+0x598>
  42180. 8012256: a201 add r2, pc, #4 @ (adr r2, 801225c <UART_SetConfig+0x550>)
  42181. 8012258: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42182. 801225c: 08012275 .word 0x08012275
  42183. 8012260: 0801227d .word 0x0801227d
  42184. 8012264: 08012285 .word 0x08012285
  42185. 8012268: 0801228d .word 0x0801228d
  42186. 801226c: 08012295 .word 0x08012295
  42187. 8012270: 0801229d .word 0x0801229d
  42188. 8012274: 2302 movs r3, #2
  42189. 8012276: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42190. 801227a: e01a b.n 80122b2 <UART_SetConfig+0x5a6>
  42191. 801227c: 2304 movs r3, #4
  42192. 801227e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42193. 8012282: e016 b.n 80122b2 <UART_SetConfig+0x5a6>
  42194. 8012284: 2308 movs r3, #8
  42195. 8012286: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42196. 801228a: e012 b.n 80122b2 <UART_SetConfig+0x5a6>
  42197. 801228c: 2310 movs r3, #16
  42198. 801228e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42199. 8012292: e00e b.n 80122b2 <UART_SetConfig+0x5a6>
  42200. 8012294: 2320 movs r3, #32
  42201. 8012296: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42202. 801229a: e00a b.n 80122b2 <UART_SetConfig+0x5a6>
  42203. 801229c: 2340 movs r3, #64 @ 0x40
  42204. 801229e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42205. 80122a2: e006 b.n 80122b2 <UART_SetConfig+0x5a6>
  42206. 80122a4: 2380 movs r3, #128 @ 0x80
  42207. 80122a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42208. 80122aa: e002 b.n 80122b2 <UART_SetConfig+0x5a6>
  42209. 80122ac: 2380 movs r3, #128 @ 0x80
  42210. 80122ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42211. /* Check LPUART instance */
  42212. if (UART_INSTANCE_LOWPOWER(huart))
  42213. 80122b2: 697b ldr r3, [r7, #20]
  42214. 80122b4: 681b ldr r3, [r3, #0]
  42215. 80122b6: 4a3f ldr r2, [pc, #252] @ (80123b4 <UART_SetConfig+0x6a8>)
  42216. 80122b8: 4293 cmp r3, r2
  42217. 80122ba: f040 80f8 bne.w 80124ae <UART_SetConfig+0x7a2>
  42218. {
  42219. /* Retrieve frequency clock */
  42220. switch (clocksource)
  42221. 80122be: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42222. 80122c2: 2b20 cmp r3, #32
  42223. 80122c4: dc46 bgt.n 8012354 <UART_SetConfig+0x648>
  42224. 80122c6: 2b02 cmp r3, #2
  42225. 80122c8: f2c0 8082 blt.w 80123d0 <UART_SetConfig+0x6c4>
  42226. 80122cc: 3b02 subs r3, #2
  42227. 80122ce: 2b1e cmp r3, #30
  42228. 80122d0: d87e bhi.n 80123d0 <UART_SetConfig+0x6c4>
  42229. 80122d2: a201 add r2, pc, #4 @ (adr r2, 80122d8 <UART_SetConfig+0x5cc>)
  42230. 80122d4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42231. 80122d8: 0801235b .word 0x0801235b
  42232. 80122dc: 080123d1 .word 0x080123d1
  42233. 80122e0: 08012363 .word 0x08012363
  42234. 80122e4: 080123d1 .word 0x080123d1
  42235. 80122e8: 080123d1 .word 0x080123d1
  42236. 80122ec: 080123d1 .word 0x080123d1
  42237. 80122f0: 08012373 .word 0x08012373
  42238. 80122f4: 080123d1 .word 0x080123d1
  42239. 80122f8: 080123d1 .word 0x080123d1
  42240. 80122fc: 080123d1 .word 0x080123d1
  42241. 8012300: 080123d1 .word 0x080123d1
  42242. 8012304: 080123d1 .word 0x080123d1
  42243. 8012308: 080123d1 .word 0x080123d1
  42244. 801230c: 080123d1 .word 0x080123d1
  42245. 8012310: 08012383 .word 0x08012383
  42246. 8012314: 080123d1 .word 0x080123d1
  42247. 8012318: 080123d1 .word 0x080123d1
  42248. 801231c: 080123d1 .word 0x080123d1
  42249. 8012320: 080123d1 .word 0x080123d1
  42250. 8012324: 080123d1 .word 0x080123d1
  42251. 8012328: 080123d1 .word 0x080123d1
  42252. 801232c: 080123d1 .word 0x080123d1
  42253. 8012330: 080123d1 .word 0x080123d1
  42254. 8012334: 080123d1 .word 0x080123d1
  42255. 8012338: 080123d1 .word 0x080123d1
  42256. 801233c: 080123d1 .word 0x080123d1
  42257. 8012340: 080123d1 .word 0x080123d1
  42258. 8012344: 080123d1 .word 0x080123d1
  42259. 8012348: 080123d1 .word 0x080123d1
  42260. 801234c: 080123d1 .word 0x080123d1
  42261. 8012350: 080123c3 .word 0x080123c3
  42262. 8012354: 2b40 cmp r3, #64 @ 0x40
  42263. 8012356: d037 beq.n 80123c8 <UART_SetConfig+0x6bc>
  42264. 8012358: e03a b.n 80123d0 <UART_SetConfig+0x6c4>
  42265. {
  42266. case UART_CLOCKSOURCE_D3PCLK1:
  42267. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  42268. 801235a: f7fc fa8b bl 800e874 <HAL_RCCEx_GetD3PCLK1Freq>
  42269. 801235e: 63f8 str r0, [r7, #60] @ 0x3c
  42270. break;
  42271. 8012360: e03c b.n 80123dc <UART_SetConfig+0x6d0>
  42272. case UART_CLOCKSOURCE_PLL2:
  42273. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42274. 8012362: f107 0324 add.w r3, r7, #36 @ 0x24
  42275. 8012366: 4618 mov r0, r3
  42276. 8012368: f7fc fa9a bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  42277. pclk = pll2_clocks.PLL2_Q_Frequency;
  42278. 801236c: 6abb ldr r3, [r7, #40] @ 0x28
  42279. 801236e: 63fb str r3, [r7, #60] @ 0x3c
  42280. break;
  42281. 8012370: e034 b.n 80123dc <UART_SetConfig+0x6d0>
  42282. case UART_CLOCKSOURCE_PLL3:
  42283. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42284. 8012372: f107 0318 add.w r3, r7, #24
  42285. 8012376: 4618 mov r0, r3
  42286. 8012378: f7fc fbe6 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  42287. pclk = pll3_clocks.PLL3_Q_Frequency;
  42288. 801237c: 69fb ldr r3, [r7, #28]
  42289. 801237e: 63fb str r3, [r7, #60] @ 0x3c
  42290. break;
  42291. 8012380: e02c b.n 80123dc <UART_SetConfig+0x6d0>
  42292. case UART_CLOCKSOURCE_HSI:
  42293. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42294. 8012382: 4b09 ldr r3, [pc, #36] @ (80123a8 <UART_SetConfig+0x69c>)
  42295. 8012384: 681b ldr r3, [r3, #0]
  42296. 8012386: f003 0320 and.w r3, r3, #32
  42297. 801238a: 2b00 cmp r3, #0
  42298. 801238c: d016 beq.n 80123bc <UART_SetConfig+0x6b0>
  42299. {
  42300. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42301. 801238e: 4b06 ldr r3, [pc, #24] @ (80123a8 <UART_SetConfig+0x69c>)
  42302. 8012390: 681b ldr r3, [r3, #0]
  42303. 8012392: 08db lsrs r3, r3, #3
  42304. 8012394: f003 0303 and.w r3, r3, #3
  42305. 8012398: 4a07 ldr r2, [pc, #28] @ (80123b8 <UART_SetConfig+0x6ac>)
  42306. 801239a: fa22 f303 lsr.w r3, r2, r3
  42307. 801239e: 63fb str r3, [r7, #60] @ 0x3c
  42308. }
  42309. else
  42310. {
  42311. pclk = (uint32_t) HSI_VALUE;
  42312. }
  42313. break;
  42314. 80123a0: e01c b.n 80123dc <UART_SetConfig+0x6d0>
  42315. 80123a2: bf00 nop
  42316. 80123a4: 40011400 .word 0x40011400
  42317. 80123a8: 58024400 .word 0x58024400
  42318. 80123ac: 40007800 .word 0x40007800
  42319. 80123b0: 40007c00 .word 0x40007c00
  42320. 80123b4: 58000c00 .word 0x58000c00
  42321. 80123b8: 03d09000 .word 0x03d09000
  42322. pclk = (uint32_t) HSI_VALUE;
  42323. 80123bc: 4b9d ldr r3, [pc, #628] @ (8012634 <UART_SetConfig+0x928>)
  42324. 80123be: 63fb str r3, [r7, #60] @ 0x3c
  42325. break;
  42326. 80123c0: e00c b.n 80123dc <UART_SetConfig+0x6d0>
  42327. case UART_CLOCKSOURCE_CSI:
  42328. pclk = (uint32_t) CSI_VALUE;
  42329. 80123c2: 4b9d ldr r3, [pc, #628] @ (8012638 <UART_SetConfig+0x92c>)
  42330. 80123c4: 63fb str r3, [r7, #60] @ 0x3c
  42331. break;
  42332. 80123c6: e009 b.n 80123dc <UART_SetConfig+0x6d0>
  42333. case UART_CLOCKSOURCE_LSE:
  42334. pclk = (uint32_t) LSE_VALUE;
  42335. 80123c8: f44f 4300 mov.w r3, #32768 @ 0x8000
  42336. 80123cc: 63fb str r3, [r7, #60] @ 0x3c
  42337. break;
  42338. 80123ce: e005 b.n 80123dc <UART_SetConfig+0x6d0>
  42339. default:
  42340. pclk = 0U;
  42341. 80123d0: 2300 movs r3, #0
  42342. 80123d2: 63fb str r3, [r7, #60] @ 0x3c
  42343. ret = HAL_ERROR;
  42344. 80123d4: 2301 movs r3, #1
  42345. 80123d6: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42346. break;
  42347. 80123da: bf00 nop
  42348. }
  42349. /* If proper clock source reported */
  42350. if (pclk != 0U)
  42351. 80123dc: 6bfb ldr r3, [r7, #60] @ 0x3c
  42352. 80123de: 2b00 cmp r3, #0
  42353. 80123e0: f000 81de beq.w 80127a0 <UART_SetConfig+0xa94>
  42354. {
  42355. /* Compute clock after Prescaler */
  42356. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  42357. 80123e4: 697b ldr r3, [r7, #20]
  42358. 80123e6: 6a5b ldr r3, [r3, #36] @ 0x24
  42359. 80123e8: 4a94 ldr r2, [pc, #592] @ (801263c <UART_SetConfig+0x930>)
  42360. 80123ea: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42361. 80123ee: 461a mov r2, r3
  42362. 80123f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  42363. 80123f2: fbb3 f3f2 udiv r3, r3, r2
  42364. 80123f6: 633b str r3, [r7, #48] @ 0x30
  42365. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  42366. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42367. 80123f8: 697b ldr r3, [r7, #20]
  42368. 80123fa: 685a ldr r2, [r3, #4]
  42369. 80123fc: 4613 mov r3, r2
  42370. 80123fe: 005b lsls r3, r3, #1
  42371. 8012400: 4413 add r3, r2
  42372. 8012402: 6b3a ldr r2, [r7, #48] @ 0x30
  42373. 8012404: 429a cmp r2, r3
  42374. 8012406: d305 bcc.n 8012414 <UART_SetConfig+0x708>
  42375. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  42376. 8012408: 697b ldr r3, [r7, #20]
  42377. 801240a: 685b ldr r3, [r3, #4]
  42378. 801240c: 031b lsls r3, r3, #12
  42379. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42380. 801240e: 6b3a ldr r2, [r7, #48] @ 0x30
  42381. 8012410: 429a cmp r2, r3
  42382. 8012412: d903 bls.n 801241c <UART_SetConfig+0x710>
  42383. {
  42384. ret = HAL_ERROR;
  42385. 8012414: 2301 movs r3, #1
  42386. 8012416: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42387. 801241a: e1c1 b.n 80127a0 <UART_SetConfig+0xa94>
  42388. }
  42389. else
  42390. {
  42391. /* Check computed UsartDiv value is in allocated range
  42392. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  42393. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42394. 801241c: 6bfb ldr r3, [r7, #60] @ 0x3c
  42395. 801241e: 2200 movs r2, #0
  42396. 8012420: 60bb str r3, [r7, #8]
  42397. 8012422: 60fa str r2, [r7, #12]
  42398. 8012424: 697b ldr r3, [r7, #20]
  42399. 8012426: 6a5b ldr r3, [r3, #36] @ 0x24
  42400. 8012428: 4a84 ldr r2, [pc, #528] @ (801263c <UART_SetConfig+0x930>)
  42401. 801242a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42402. 801242e: b29b uxth r3, r3
  42403. 8012430: 2200 movs r2, #0
  42404. 8012432: 603b str r3, [r7, #0]
  42405. 8012434: 607a str r2, [r7, #4]
  42406. 8012436: e9d7 2300 ldrd r2, r3, [r7]
  42407. 801243a: e9d7 0102 ldrd r0, r1, [r7, #8]
  42408. 801243e: f7ed ff4f bl 80002e0 <__aeabi_uldivmod>
  42409. 8012442: 4602 mov r2, r0
  42410. 8012444: 460b mov r3, r1
  42411. 8012446: 4610 mov r0, r2
  42412. 8012448: 4619 mov r1, r3
  42413. 801244a: f04f 0200 mov.w r2, #0
  42414. 801244e: f04f 0300 mov.w r3, #0
  42415. 8012452: 020b lsls r3, r1, #8
  42416. 8012454: ea43 6310 orr.w r3, r3, r0, lsr #24
  42417. 8012458: 0202 lsls r2, r0, #8
  42418. 801245a: 6979 ldr r1, [r7, #20]
  42419. 801245c: 6849 ldr r1, [r1, #4]
  42420. 801245e: 0849 lsrs r1, r1, #1
  42421. 8012460: 2000 movs r0, #0
  42422. 8012462: 460c mov r4, r1
  42423. 8012464: 4605 mov r5, r0
  42424. 8012466: eb12 0804 adds.w r8, r2, r4
  42425. 801246a: eb43 0905 adc.w r9, r3, r5
  42426. 801246e: 697b ldr r3, [r7, #20]
  42427. 8012470: 685b ldr r3, [r3, #4]
  42428. 8012472: 2200 movs r2, #0
  42429. 8012474: 469a mov sl, r3
  42430. 8012476: 4693 mov fp, r2
  42431. 8012478: 4652 mov r2, sl
  42432. 801247a: 465b mov r3, fp
  42433. 801247c: 4640 mov r0, r8
  42434. 801247e: 4649 mov r1, r9
  42435. 8012480: f7ed ff2e bl 80002e0 <__aeabi_uldivmod>
  42436. 8012484: 4602 mov r2, r0
  42437. 8012486: 460b mov r3, r1
  42438. 8012488: 4613 mov r3, r2
  42439. 801248a: 63bb str r3, [r7, #56] @ 0x38
  42440. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  42441. 801248c: 6bbb ldr r3, [r7, #56] @ 0x38
  42442. 801248e: f5b3 7f40 cmp.w r3, #768 @ 0x300
  42443. 8012492: d308 bcc.n 80124a6 <UART_SetConfig+0x79a>
  42444. 8012494: 6bbb ldr r3, [r7, #56] @ 0x38
  42445. 8012496: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  42446. 801249a: d204 bcs.n 80124a6 <UART_SetConfig+0x79a>
  42447. {
  42448. huart->Instance->BRR = usartdiv;
  42449. 801249c: 697b ldr r3, [r7, #20]
  42450. 801249e: 681b ldr r3, [r3, #0]
  42451. 80124a0: 6bba ldr r2, [r7, #56] @ 0x38
  42452. 80124a2: 60da str r2, [r3, #12]
  42453. 80124a4: e17c b.n 80127a0 <UART_SetConfig+0xa94>
  42454. }
  42455. else
  42456. {
  42457. ret = HAL_ERROR;
  42458. 80124a6: 2301 movs r3, #1
  42459. 80124a8: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42460. 80124ac: e178 b.n 80127a0 <UART_SetConfig+0xa94>
  42461. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  42462. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  42463. } /* if (pclk != 0) */
  42464. }
  42465. /* Check UART Over Sampling to set Baud Rate Register */
  42466. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  42467. 80124ae: 697b ldr r3, [r7, #20]
  42468. 80124b0: 69db ldr r3, [r3, #28]
  42469. 80124b2: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  42470. 80124b6: f040 80c5 bne.w 8012644 <UART_SetConfig+0x938>
  42471. {
  42472. switch (clocksource)
  42473. 80124ba: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42474. 80124be: 2b20 cmp r3, #32
  42475. 80124c0: dc48 bgt.n 8012554 <UART_SetConfig+0x848>
  42476. 80124c2: 2b00 cmp r3, #0
  42477. 80124c4: db7b blt.n 80125be <UART_SetConfig+0x8b2>
  42478. 80124c6: 2b20 cmp r3, #32
  42479. 80124c8: d879 bhi.n 80125be <UART_SetConfig+0x8b2>
  42480. 80124ca: a201 add r2, pc, #4 @ (adr r2, 80124d0 <UART_SetConfig+0x7c4>)
  42481. 80124cc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42482. 80124d0: 0801255b .word 0x0801255b
  42483. 80124d4: 08012563 .word 0x08012563
  42484. 80124d8: 080125bf .word 0x080125bf
  42485. 80124dc: 080125bf .word 0x080125bf
  42486. 80124e0: 0801256b .word 0x0801256b
  42487. 80124e4: 080125bf .word 0x080125bf
  42488. 80124e8: 080125bf .word 0x080125bf
  42489. 80124ec: 080125bf .word 0x080125bf
  42490. 80124f0: 0801257b .word 0x0801257b
  42491. 80124f4: 080125bf .word 0x080125bf
  42492. 80124f8: 080125bf .word 0x080125bf
  42493. 80124fc: 080125bf .word 0x080125bf
  42494. 8012500: 080125bf .word 0x080125bf
  42495. 8012504: 080125bf .word 0x080125bf
  42496. 8012508: 080125bf .word 0x080125bf
  42497. 801250c: 080125bf .word 0x080125bf
  42498. 8012510: 0801258b .word 0x0801258b
  42499. 8012514: 080125bf .word 0x080125bf
  42500. 8012518: 080125bf .word 0x080125bf
  42501. 801251c: 080125bf .word 0x080125bf
  42502. 8012520: 080125bf .word 0x080125bf
  42503. 8012524: 080125bf .word 0x080125bf
  42504. 8012528: 080125bf .word 0x080125bf
  42505. 801252c: 080125bf .word 0x080125bf
  42506. 8012530: 080125bf .word 0x080125bf
  42507. 8012534: 080125bf .word 0x080125bf
  42508. 8012538: 080125bf .word 0x080125bf
  42509. 801253c: 080125bf .word 0x080125bf
  42510. 8012540: 080125bf .word 0x080125bf
  42511. 8012544: 080125bf .word 0x080125bf
  42512. 8012548: 080125bf .word 0x080125bf
  42513. 801254c: 080125bf .word 0x080125bf
  42514. 8012550: 080125b1 .word 0x080125b1
  42515. 8012554: 2b40 cmp r3, #64 @ 0x40
  42516. 8012556: d02e beq.n 80125b6 <UART_SetConfig+0x8aa>
  42517. 8012558: e031 b.n 80125be <UART_SetConfig+0x8b2>
  42518. {
  42519. case UART_CLOCKSOURCE_D2PCLK1:
  42520. pclk = HAL_RCC_GetPCLK1Freq();
  42521. 801255a: f7fa f9af bl 800c8bc <HAL_RCC_GetPCLK1Freq>
  42522. 801255e: 63f8 str r0, [r7, #60] @ 0x3c
  42523. break;
  42524. 8012560: e033 b.n 80125ca <UART_SetConfig+0x8be>
  42525. case UART_CLOCKSOURCE_D2PCLK2:
  42526. pclk = HAL_RCC_GetPCLK2Freq();
  42527. 8012562: f7fa f9c1 bl 800c8e8 <HAL_RCC_GetPCLK2Freq>
  42528. 8012566: 63f8 str r0, [r7, #60] @ 0x3c
  42529. break;
  42530. 8012568: e02f b.n 80125ca <UART_SetConfig+0x8be>
  42531. case UART_CLOCKSOURCE_PLL2:
  42532. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42533. 801256a: f107 0324 add.w r3, r7, #36 @ 0x24
  42534. 801256e: 4618 mov r0, r3
  42535. 8012570: f7fc f996 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  42536. pclk = pll2_clocks.PLL2_Q_Frequency;
  42537. 8012574: 6abb ldr r3, [r7, #40] @ 0x28
  42538. 8012576: 63fb str r3, [r7, #60] @ 0x3c
  42539. break;
  42540. 8012578: e027 b.n 80125ca <UART_SetConfig+0x8be>
  42541. case UART_CLOCKSOURCE_PLL3:
  42542. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42543. 801257a: f107 0318 add.w r3, r7, #24
  42544. 801257e: 4618 mov r0, r3
  42545. 8012580: f7fc fae2 bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  42546. pclk = pll3_clocks.PLL3_Q_Frequency;
  42547. 8012584: 69fb ldr r3, [r7, #28]
  42548. 8012586: 63fb str r3, [r7, #60] @ 0x3c
  42549. break;
  42550. 8012588: e01f b.n 80125ca <UART_SetConfig+0x8be>
  42551. case UART_CLOCKSOURCE_HSI:
  42552. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42553. 801258a: 4b2d ldr r3, [pc, #180] @ (8012640 <UART_SetConfig+0x934>)
  42554. 801258c: 681b ldr r3, [r3, #0]
  42555. 801258e: f003 0320 and.w r3, r3, #32
  42556. 8012592: 2b00 cmp r3, #0
  42557. 8012594: d009 beq.n 80125aa <UART_SetConfig+0x89e>
  42558. {
  42559. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42560. 8012596: 4b2a ldr r3, [pc, #168] @ (8012640 <UART_SetConfig+0x934>)
  42561. 8012598: 681b ldr r3, [r3, #0]
  42562. 801259a: 08db lsrs r3, r3, #3
  42563. 801259c: f003 0303 and.w r3, r3, #3
  42564. 80125a0: 4a24 ldr r2, [pc, #144] @ (8012634 <UART_SetConfig+0x928>)
  42565. 80125a2: fa22 f303 lsr.w r3, r2, r3
  42566. 80125a6: 63fb str r3, [r7, #60] @ 0x3c
  42567. }
  42568. else
  42569. {
  42570. pclk = (uint32_t) HSI_VALUE;
  42571. }
  42572. break;
  42573. 80125a8: e00f b.n 80125ca <UART_SetConfig+0x8be>
  42574. pclk = (uint32_t) HSI_VALUE;
  42575. 80125aa: 4b22 ldr r3, [pc, #136] @ (8012634 <UART_SetConfig+0x928>)
  42576. 80125ac: 63fb str r3, [r7, #60] @ 0x3c
  42577. break;
  42578. 80125ae: e00c b.n 80125ca <UART_SetConfig+0x8be>
  42579. case UART_CLOCKSOURCE_CSI:
  42580. pclk = (uint32_t) CSI_VALUE;
  42581. 80125b0: 4b21 ldr r3, [pc, #132] @ (8012638 <UART_SetConfig+0x92c>)
  42582. 80125b2: 63fb str r3, [r7, #60] @ 0x3c
  42583. break;
  42584. 80125b4: e009 b.n 80125ca <UART_SetConfig+0x8be>
  42585. case UART_CLOCKSOURCE_LSE:
  42586. pclk = (uint32_t) LSE_VALUE;
  42587. 80125b6: f44f 4300 mov.w r3, #32768 @ 0x8000
  42588. 80125ba: 63fb str r3, [r7, #60] @ 0x3c
  42589. break;
  42590. 80125bc: e005 b.n 80125ca <UART_SetConfig+0x8be>
  42591. default:
  42592. pclk = 0U;
  42593. 80125be: 2300 movs r3, #0
  42594. 80125c0: 63fb str r3, [r7, #60] @ 0x3c
  42595. ret = HAL_ERROR;
  42596. 80125c2: 2301 movs r3, #1
  42597. 80125c4: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42598. break;
  42599. 80125c8: bf00 nop
  42600. }
  42601. /* USARTDIV must be greater than or equal to 0d16 */
  42602. if (pclk != 0U)
  42603. 80125ca: 6bfb ldr r3, [r7, #60] @ 0x3c
  42604. 80125cc: 2b00 cmp r3, #0
  42605. 80125ce: f000 80e7 beq.w 80127a0 <UART_SetConfig+0xa94>
  42606. {
  42607. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42608. 80125d2: 697b ldr r3, [r7, #20]
  42609. 80125d4: 6a5b ldr r3, [r3, #36] @ 0x24
  42610. 80125d6: 4a19 ldr r2, [pc, #100] @ (801263c <UART_SetConfig+0x930>)
  42611. 80125d8: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42612. 80125dc: 461a mov r2, r3
  42613. 80125de: 6bfb ldr r3, [r7, #60] @ 0x3c
  42614. 80125e0: fbb3 f3f2 udiv r3, r3, r2
  42615. 80125e4: 005a lsls r2, r3, #1
  42616. 80125e6: 697b ldr r3, [r7, #20]
  42617. 80125e8: 685b ldr r3, [r3, #4]
  42618. 80125ea: 085b lsrs r3, r3, #1
  42619. 80125ec: 441a add r2, r3
  42620. 80125ee: 697b ldr r3, [r7, #20]
  42621. 80125f0: 685b ldr r3, [r3, #4]
  42622. 80125f2: fbb2 f3f3 udiv r3, r2, r3
  42623. 80125f6: 63bb str r3, [r7, #56] @ 0x38
  42624. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42625. 80125f8: 6bbb ldr r3, [r7, #56] @ 0x38
  42626. 80125fa: 2b0f cmp r3, #15
  42627. 80125fc: d916 bls.n 801262c <UART_SetConfig+0x920>
  42628. 80125fe: 6bbb ldr r3, [r7, #56] @ 0x38
  42629. 8012600: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42630. 8012604: d212 bcs.n 801262c <UART_SetConfig+0x920>
  42631. {
  42632. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  42633. 8012606: 6bbb ldr r3, [r7, #56] @ 0x38
  42634. 8012608: b29b uxth r3, r3
  42635. 801260a: f023 030f bic.w r3, r3, #15
  42636. 801260e: 86fb strh r3, [r7, #54] @ 0x36
  42637. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  42638. 8012610: 6bbb ldr r3, [r7, #56] @ 0x38
  42639. 8012612: 085b lsrs r3, r3, #1
  42640. 8012614: b29b uxth r3, r3
  42641. 8012616: f003 0307 and.w r3, r3, #7
  42642. 801261a: b29a uxth r2, r3
  42643. 801261c: 8efb ldrh r3, [r7, #54] @ 0x36
  42644. 801261e: 4313 orrs r3, r2
  42645. 8012620: 86fb strh r3, [r7, #54] @ 0x36
  42646. huart->Instance->BRR = brrtemp;
  42647. 8012622: 697b ldr r3, [r7, #20]
  42648. 8012624: 681b ldr r3, [r3, #0]
  42649. 8012626: 8efa ldrh r2, [r7, #54] @ 0x36
  42650. 8012628: 60da str r2, [r3, #12]
  42651. 801262a: e0b9 b.n 80127a0 <UART_SetConfig+0xa94>
  42652. }
  42653. else
  42654. {
  42655. ret = HAL_ERROR;
  42656. 801262c: 2301 movs r3, #1
  42657. 801262e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42658. 8012632: e0b5 b.n 80127a0 <UART_SetConfig+0xa94>
  42659. 8012634: 03d09000 .word 0x03d09000
  42660. 8012638: 003d0900 .word 0x003d0900
  42661. 801263c: 08018714 .word 0x08018714
  42662. 8012640: 58024400 .word 0x58024400
  42663. }
  42664. }
  42665. }
  42666. else
  42667. {
  42668. switch (clocksource)
  42669. 8012644: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42670. 8012648: 2b20 cmp r3, #32
  42671. 801264a: dc49 bgt.n 80126e0 <UART_SetConfig+0x9d4>
  42672. 801264c: 2b00 cmp r3, #0
  42673. 801264e: db7c blt.n 801274a <UART_SetConfig+0xa3e>
  42674. 8012650: 2b20 cmp r3, #32
  42675. 8012652: d87a bhi.n 801274a <UART_SetConfig+0xa3e>
  42676. 8012654: a201 add r2, pc, #4 @ (adr r2, 801265c <UART_SetConfig+0x950>)
  42677. 8012656: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42678. 801265a: bf00 nop
  42679. 801265c: 080126e7 .word 0x080126e7
  42680. 8012660: 080126ef .word 0x080126ef
  42681. 8012664: 0801274b .word 0x0801274b
  42682. 8012668: 0801274b .word 0x0801274b
  42683. 801266c: 080126f7 .word 0x080126f7
  42684. 8012670: 0801274b .word 0x0801274b
  42685. 8012674: 0801274b .word 0x0801274b
  42686. 8012678: 0801274b .word 0x0801274b
  42687. 801267c: 08012707 .word 0x08012707
  42688. 8012680: 0801274b .word 0x0801274b
  42689. 8012684: 0801274b .word 0x0801274b
  42690. 8012688: 0801274b .word 0x0801274b
  42691. 801268c: 0801274b .word 0x0801274b
  42692. 8012690: 0801274b .word 0x0801274b
  42693. 8012694: 0801274b .word 0x0801274b
  42694. 8012698: 0801274b .word 0x0801274b
  42695. 801269c: 08012717 .word 0x08012717
  42696. 80126a0: 0801274b .word 0x0801274b
  42697. 80126a4: 0801274b .word 0x0801274b
  42698. 80126a8: 0801274b .word 0x0801274b
  42699. 80126ac: 0801274b .word 0x0801274b
  42700. 80126b0: 0801274b .word 0x0801274b
  42701. 80126b4: 0801274b .word 0x0801274b
  42702. 80126b8: 0801274b .word 0x0801274b
  42703. 80126bc: 0801274b .word 0x0801274b
  42704. 80126c0: 0801274b .word 0x0801274b
  42705. 80126c4: 0801274b .word 0x0801274b
  42706. 80126c8: 0801274b .word 0x0801274b
  42707. 80126cc: 0801274b .word 0x0801274b
  42708. 80126d0: 0801274b .word 0x0801274b
  42709. 80126d4: 0801274b .word 0x0801274b
  42710. 80126d8: 0801274b .word 0x0801274b
  42711. 80126dc: 0801273d .word 0x0801273d
  42712. 80126e0: 2b40 cmp r3, #64 @ 0x40
  42713. 80126e2: d02e beq.n 8012742 <UART_SetConfig+0xa36>
  42714. 80126e4: e031 b.n 801274a <UART_SetConfig+0xa3e>
  42715. {
  42716. case UART_CLOCKSOURCE_D2PCLK1:
  42717. pclk = HAL_RCC_GetPCLK1Freq();
  42718. 80126e6: f7fa f8e9 bl 800c8bc <HAL_RCC_GetPCLK1Freq>
  42719. 80126ea: 63f8 str r0, [r7, #60] @ 0x3c
  42720. break;
  42721. 80126ec: e033 b.n 8012756 <UART_SetConfig+0xa4a>
  42722. case UART_CLOCKSOURCE_D2PCLK2:
  42723. pclk = HAL_RCC_GetPCLK2Freq();
  42724. 80126ee: f7fa f8fb bl 800c8e8 <HAL_RCC_GetPCLK2Freq>
  42725. 80126f2: 63f8 str r0, [r7, #60] @ 0x3c
  42726. break;
  42727. 80126f4: e02f b.n 8012756 <UART_SetConfig+0xa4a>
  42728. case UART_CLOCKSOURCE_PLL2:
  42729. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42730. 80126f6: f107 0324 add.w r3, r7, #36 @ 0x24
  42731. 80126fa: 4618 mov r0, r3
  42732. 80126fc: f7fc f8d0 bl 800e8a0 <HAL_RCCEx_GetPLL2ClockFreq>
  42733. pclk = pll2_clocks.PLL2_Q_Frequency;
  42734. 8012700: 6abb ldr r3, [r7, #40] @ 0x28
  42735. 8012702: 63fb str r3, [r7, #60] @ 0x3c
  42736. break;
  42737. 8012704: e027 b.n 8012756 <UART_SetConfig+0xa4a>
  42738. case UART_CLOCKSOURCE_PLL3:
  42739. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42740. 8012706: f107 0318 add.w r3, r7, #24
  42741. 801270a: 4618 mov r0, r3
  42742. 801270c: f7fc fa1c bl 800eb48 <HAL_RCCEx_GetPLL3ClockFreq>
  42743. pclk = pll3_clocks.PLL3_Q_Frequency;
  42744. 8012710: 69fb ldr r3, [r7, #28]
  42745. 8012712: 63fb str r3, [r7, #60] @ 0x3c
  42746. break;
  42747. 8012714: e01f b.n 8012756 <UART_SetConfig+0xa4a>
  42748. case UART_CLOCKSOURCE_HSI:
  42749. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42750. 8012716: 4b2d ldr r3, [pc, #180] @ (80127cc <UART_SetConfig+0xac0>)
  42751. 8012718: 681b ldr r3, [r3, #0]
  42752. 801271a: f003 0320 and.w r3, r3, #32
  42753. 801271e: 2b00 cmp r3, #0
  42754. 8012720: d009 beq.n 8012736 <UART_SetConfig+0xa2a>
  42755. {
  42756. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42757. 8012722: 4b2a ldr r3, [pc, #168] @ (80127cc <UART_SetConfig+0xac0>)
  42758. 8012724: 681b ldr r3, [r3, #0]
  42759. 8012726: 08db lsrs r3, r3, #3
  42760. 8012728: f003 0303 and.w r3, r3, #3
  42761. 801272c: 4a28 ldr r2, [pc, #160] @ (80127d0 <UART_SetConfig+0xac4>)
  42762. 801272e: fa22 f303 lsr.w r3, r2, r3
  42763. 8012732: 63fb str r3, [r7, #60] @ 0x3c
  42764. }
  42765. else
  42766. {
  42767. pclk = (uint32_t) HSI_VALUE;
  42768. }
  42769. break;
  42770. 8012734: e00f b.n 8012756 <UART_SetConfig+0xa4a>
  42771. pclk = (uint32_t) HSI_VALUE;
  42772. 8012736: 4b26 ldr r3, [pc, #152] @ (80127d0 <UART_SetConfig+0xac4>)
  42773. 8012738: 63fb str r3, [r7, #60] @ 0x3c
  42774. break;
  42775. 801273a: e00c b.n 8012756 <UART_SetConfig+0xa4a>
  42776. case UART_CLOCKSOURCE_CSI:
  42777. pclk = (uint32_t) CSI_VALUE;
  42778. 801273c: 4b25 ldr r3, [pc, #148] @ (80127d4 <UART_SetConfig+0xac8>)
  42779. 801273e: 63fb str r3, [r7, #60] @ 0x3c
  42780. break;
  42781. 8012740: e009 b.n 8012756 <UART_SetConfig+0xa4a>
  42782. case UART_CLOCKSOURCE_LSE:
  42783. pclk = (uint32_t) LSE_VALUE;
  42784. 8012742: f44f 4300 mov.w r3, #32768 @ 0x8000
  42785. 8012746: 63fb str r3, [r7, #60] @ 0x3c
  42786. break;
  42787. 8012748: e005 b.n 8012756 <UART_SetConfig+0xa4a>
  42788. default:
  42789. pclk = 0U;
  42790. 801274a: 2300 movs r3, #0
  42791. 801274c: 63fb str r3, [r7, #60] @ 0x3c
  42792. ret = HAL_ERROR;
  42793. 801274e: 2301 movs r3, #1
  42794. 8012750: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42795. break;
  42796. 8012754: bf00 nop
  42797. }
  42798. if (pclk != 0U)
  42799. 8012756: 6bfb ldr r3, [r7, #60] @ 0x3c
  42800. 8012758: 2b00 cmp r3, #0
  42801. 801275a: d021 beq.n 80127a0 <UART_SetConfig+0xa94>
  42802. {
  42803. /* USARTDIV must be greater than or equal to 0d16 */
  42804. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42805. 801275c: 697b ldr r3, [r7, #20]
  42806. 801275e: 6a5b ldr r3, [r3, #36] @ 0x24
  42807. 8012760: 4a1d ldr r2, [pc, #116] @ (80127d8 <UART_SetConfig+0xacc>)
  42808. 8012762: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42809. 8012766: 461a mov r2, r3
  42810. 8012768: 6bfb ldr r3, [r7, #60] @ 0x3c
  42811. 801276a: fbb3 f2f2 udiv r2, r3, r2
  42812. 801276e: 697b ldr r3, [r7, #20]
  42813. 8012770: 685b ldr r3, [r3, #4]
  42814. 8012772: 085b lsrs r3, r3, #1
  42815. 8012774: 441a add r2, r3
  42816. 8012776: 697b ldr r3, [r7, #20]
  42817. 8012778: 685b ldr r3, [r3, #4]
  42818. 801277a: fbb2 f3f3 udiv r3, r2, r3
  42819. 801277e: 63bb str r3, [r7, #56] @ 0x38
  42820. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42821. 8012780: 6bbb ldr r3, [r7, #56] @ 0x38
  42822. 8012782: 2b0f cmp r3, #15
  42823. 8012784: d909 bls.n 801279a <UART_SetConfig+0xa8e>
  42824. 8012786: 6bbb ldr r3, [r7, #56] @ 0x38
  42825. 8012788: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42826. 801278c: d205 bcs.n 801279a <UART_SetConfig+0xa8e>
  42827. {
  42828. huart->Instance->BRR = (uint16_t)usartdiv;
  42829. 801278e: 6bbb ldr r3, [r7, #56] @ 0x38
  42830. 8012790: b29a uxth r2, r3
  42831. 8012792: 697b ldr r3, [r7, #20]
  42832. 8012794: 681b ldr r3, [r3, #0]
  42833. 8012796: 60da str r2, [r3, #12]
  42834. 8012798: e002 b.n 80127a0 <UART_SetConfig+0xa94>
  42835. }
  42836. else
  42837. {
  42838. ret = HAL_ERROR;
  42839. 801279a: 2301 movs r3, #1
  42840. 801279c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42841. }
  42842. }
  42843. }
  42844. /* Initialize the number of data to process during RX/TX ISR execution */
  42845. huart->NbTxDataToProcess = 1;
  42846. 80127a0: 697b ldr r3, [r7, #20]
  42847. 80127a2: 2201 movs r2, #1
  42848. 80127a4: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  42849. huart->NbRxDataToProcess = 1;
  42850. 80127a8: 697b ldr r3, [r7, #20]
  42851. 80127aa: 2201 movs r2, #1
  42852. 80127ac: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  42853. /* Clear ISR function pointers */
  42854. huart->RxISR = NULL;
  42855. 80127b0: 697b ldr r3, [r7, #20]
  42856. 80127b2: 2200 movs r2, #0
  42857. 80127b4: 675a str r2, [r3, #116] @ 0x74
  42858. huart->TxISR = NULL;
  42859. 80127b6: 697b ldr r3, [r7, #20]
  42860. 80127b8: 2200 movs r2, #0
  42861. 80127ba: 679a str r2, [r3, #120] @ 0x78
  42862. return ret;
  42863. 80127bc: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  42864. }
  42865. 80127c0: 4618 mov r0, r3
  42866. 80127c2: 3748 adds r7, #72 @ 0x48
  42867. 80127c4: 46bd mov sp, r7
  42868. 80127c6: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  42869. 80127ca: bf00 nop
  42870. 80127cc: 58024400 .word 0x58024400
  42871. 80127d0: 03d09000 .word 0x03d09000
  42872. 80127d4: 003d0900 .word 0x003d0900
  42873. 80127d8: 08018714 .word 0x08018714
  42874. 080127dc <UART_AdvFeatureConfig>:
  42875. * @brief Configure the UART peripheral advanced features.
  42876. * @param huart UART handle.
  42877. * @retval None
  42878. */
  42879. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  42880. {
  42881. 80127dc: b480 push {r7}
  42882. 80127de: b083 sub sp, #12
  42883. 80127e0: af00 add r7, sp, #0
  42884. 80127e2: 6078 str r0, [r7, #4]
  42885. /* Check whether the set of advanced features to configure is properly set */
  42886. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  42887. /* if required, configure RX/TX pins swap */
  42888. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  42889. 80127e4: 687b ldr r3, [r7, #4]
  42890. 80127e6: 6a9b ldr r3, [r3, #40] @ 0x28
  42891. 80127e8: f003 0308 and.w r3, r3, #8
  42892. 80127ec: 2b00 cmp r3, #0
  42893. 80127ee: d00a beq.n 8012806 <UART_AdvFeatureConfig+0x2a>
  42894. {
  42895. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  42896. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  42897. 80127f0: 687b ldr r3, [r7, #4]
  42898. 80127f2: 681b ldr r3, [r3, #0]
  42899. 80127f4: 685b ldr r3, [r3, #4]
  42900. 80127f6: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  42901. 80127fa: 687b ldr r3, [r7, #4]
  42902. 80127fc: 6b9a ldr r2, [r3, #56] @ 0x38
  42903. 80127fe: 687b ldr r3, [r7, #4]
  42904. 8012800: 681b ldr r3, [r3, #0]
  42905. 8012802: 430a orrs r2, r1
  42906. 8012804: 605a str r2, [r3, #4]
  42907. }
  42908. /* if required, configure TX pin active level inversion */
  42909. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  42910. 8012806: 687b ldr r3, [r7, #4]
  42911. 8012808: 6a9b ldr r3, [r3, #40] @ 0x28
  42912. 801280a: f003 0301 and.w r3, r3, #1
  42913. 801280e: 2b00 cmp r3, #0
  42914. 8012810: d00a beq.n 8012828 <UART_AdvFeatureConfig+0x4c>
  42915. {
  42916. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  42917. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  42918. 8012812: 687b ldr r3, [r7, #4]
  42919. 8012814: 681b ldr r3, [r3, #0]
  42920. 8012816: 685b ldr r3, [r3, #4]
  42921. 8012818: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  42922. 801281c: 687b ldr r3, [r7, #4]
  42923. 801281e: 6ada ldr r2, [r3, #44] @ 0x2c
  42924. 8012820: 687b ldr r3, [r7, #4]
  42925. 8012822: 681b ldr r3, [r3, #0]
  42926. 8012824: 430a orrs r2, r1
  42927. 8012826: 605a str r2, [r3, #4]
  42928. }
  42929. /* if required, configure RX pin active level inversion */
  42930. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  42931. 8012828: 687b ldr r3, [r7, #4]
  42932. 801282a: 6a9b ldr r3, [r3, #40] @ 0x28
  42933. 801282c: f003 0302 and.w r3, r3, #2
  42934. 8012830: 2b00 cmp r3, #0
  42935. 8012832: d00a beq.n 801284a <UART_AdvFeatureConfig+0x6e>
  42936. {
  42937. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  42938. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  42939. 8012834: 687b ldr r3, [r7, #4]
  42940. 8012836: 681b ldr r3, [r3, #0]
  42941. 8012838: 685b ldr r3, [r3, #4]
  42942. 801283a: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  42943. 801283e: 687b ldr r3, [r7, #4]
  42944. 8012840: 6b1a ldr r2, [r3, #48] @ 0x30
  42945. 8012842: 687b ldr r3, [r7, #4]
  42946. 8012844: 681b ldr r3, [r3, #0]
  42947. 8012846: 430a orrs r2, r1
  42948. 8012848: 605a str r2, [r3, #4]
  42949. }
  42950. /* if required, configure data inversion */
  42951. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  42952. 801284a: 687b ldr r3, [r7, #4]
  42953. 801284c: 6a9b ldr r3, [r3, #40] @ 0x28
  42954. 801284e: f003 0304 and.w r3, r3, #4
  42955. 8012852: 2b00 cmp r3, #0
  42956. 8012854: d00a beq.n 801286c <UART_AdvFeatureConfig+0x90>
  42957. {
  42958. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  42959. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  42960. 8012856: 687b ldr r3, [r7, #4]
  42961. 8012858: 681b ldr r3, [r3, #0]
  42962. 801285a: 685b ldr r3, [r3, #4]
  42963. 801285c: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  42964. 8012860: 687b ldr r3, [r7, #4]
  42965. 8012862: 6b5a ldr r2, [r3, #52] @ 0x34
  42966. 8012864: 687b ldr r3, [r7, #4]
  42967. 8012866: 681b ldr r3, [r3, #0]
  42968. 8012868: 430a orrs r2, r1
  42969. 801286a: 605a str r2, [r3, #4]
  42970. }
  42971. /* if required, configure RX overrun detection disabling */
  42972. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  42973. 801286c: 687b ldr r3, [r7, #4]
  42974. 801286e: 6a9b ldr r3, [r3, #40] @ 0x28
  42975. 8012870: f003 0310 and.w r3, r3, #16
  42976. 8012874: 2b00 cmp r3, #0
  42977. 8012876: d00a beq.n 801288e <UART_AdvFeatureConfig+0xb2>
  42978. {
  42979. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  42980. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  42981. 8012878: 687b ldr r3, [r7, #4]
  42982. 801287a: 681b ldr r3, [r3, #0]
  42983. 801287c: 689b ldr r3, [r3, #8]
  42984. 801287e: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  42985. 8012882: 687b ldr r3, [r7, #4]
  42986. 8012884: 6bda ldr r2, [r3, #60] @ 0x3c
  42987. 8012886: 687b ldr r3, [r7, #4]
  42988. 8012888: 681b ldr r3, [r3, #0]
  42989. 801288a: 430a orrs r2, r1
  42990. 801288c: 609a str r2, [r3, #8]
  42991. }
  42992. /* if required, configure DMA disabling on reception error */
  42993. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  42994. 801288e: 687b ldr r3, [r7, #4]
  42995. 8012890: 6a9b ldr r3, [r3, #40] @ 0x28
  42996. 8012892: f003 0320 and.w r3, r3, #32
  42997. 8012896: 2b00 cmp r3, #0
  42998. 8012898: d00a beq.n 80128b0 <UART_AdvFeatureConfig+0xd4>
  42999. {
  43000. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  43001. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  43002. 801289a: 687b ldr r3, [r7, #4]
  43003. 801289c: 681b ldr r3, [r3, #0]
  43004. 801289e: 689b ldr r3, [r3, #8]
  43005. 80128a0: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  43006. 80128a4: 687b ldr r3, [r7, #4]
  43007. 80128a6: 6c1a ldr r2, [r3, #64] @ 0x40
  43008. 80128a8: 687b ldr r3, [r7, #4]
  43009. 80128aa: 681b ldr r3, [r3, #0]
  43010. 80128ac: 430a orrs r2, r1
  43011. 80128ae: 609a str r2, [r3, #8]
  43012. }
  43013. /* if required, configure auto Baud rate detection scheme */
  43014. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  43015. 80128b0: 687b ldr r3, [r7, #4]
  43016. 80128b2: 6a9b ldr r3, [r3, #40] @ 0x28
  43017. 80128b4: f003 0340 and.w r3, r3, #64 @ 0x40
  43018. 80128b8: 2b00 cmp r3, #0
  43019. 80128ba: d01a beq.n 80128f2 <UART_AdvFeatureConfig+0x116>
  43020. {
  43021. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  43022. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  43023. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  43024. 80128bc: 687b ldr r3, [r7, #4]
  43025. 80128be: 681b ldr r3, [r3, #0]
  43026. 80128c0: 685b ldr r3, [r3, #4]
  43027. 80128c2: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  43028. 80128c6: 687b ldr r3, [r7, #4]
  43029. 80128c8: 6c5a ldr r2, [r3, #68] @ 0x44
  43030. 80128ca: 687b ldr r3, [r7, #4]
  43031. 80128cc: 681b ldr r3, [r3, #0]
  43032. 80128ce: 430a orrs r2, r1
  43033. 80128d0: 605a str r2, [r3, #4]
  43034. /* set auto Baudrate detection parameters if detection is enabled */
  43035. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  43036. 80128d2: 687b ldr r3, [r7, #4]
  43037. 80128d4: 6c5b ldr r3, [r3, #68] @ 0x44
  43038. 80128d6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  43039. 80128da: d10a bne.n 80128f2 <UART_AdvFeatureConfig+0x116>
  43040. {
  43041. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  43042. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  43043. 80128dc: 687b ldr r3, [r7, #4]
  43044. 80128de: 681b ldr r3, [r3, #0]
  43045. 80128e0: 685b ldr r3, [r3, #4]
  43046. 80128e2: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  43047. 80128e6: 687b ldr r3, [r7, #4]
  43048. 80128e8: 6c9a ldr r2, [r3, #72] @ 0x48
  43049. 80128ea: 687b ldr r3, [r7, #4]
  43050. 80128ec: 681b ldr r3, [r3, #0]
  43051. 80128ee: 430a orrs r2, r1
  43052. 80128f0: 605a str r2, [r3, #4]
  43053. }
  43054. }
  43055. /* if required, configure MSB first on communication line */
  43056. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  43057. 80128f2: 687b ldr r3, [r7, #4]
  43058. 80128f4: 6a9b ldr r3, [r3, #40] @ 0x28
  43059. 80128f6: f003 0380 and.w r3, r3, #128 @ 0x80
  43060. 80128fa: 2b00 cmp r3, #0
  43061. 80128fc: d00a beq.n 8012914 <UART_AdvFeatureConfig+0x138>
  43062. {
  43063. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  43064. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  43065. 80128fe: 687b ldr r3, [r7, #4]
  43066. 8012900: 681b ldr r3, [r3, #0]
  43067. 8012902: 685b ldr r3, [r3, #4]
  43068. 8012904: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  43069. 8012908: 687b ldr r3, [r7, #4]
  43070. 801290a: 6cda ldr r2, [r3, #76] @ 0x4c
  43071. 801290c: 687b ldr r3, [r7, #4]
  43072. 801290e: 681b ldr r3, [r3, #0]
  43073. 8012910: 430a orrs r2, r1
  43074. 8012912: 605a str r2, [r3, #4]
  43075. }
  43076. }
  43077. 8012914: bf00 nop
  43078. 8012916: 370c adds r7, #12
  43079. 8012918: 46bd mov sp, r7
  43080. 801291a: f85d 7b04 ldr.w r7, [sp], #4
  43081. 801291e: 4770 bx lr
  43082. 08012920 <UART_CheckIdleState>:
  43083. * @brief Check the UART Idle State.
  43084. * @param huart UART handle.
  43085. * @retval HAL status
  43086. */
  43087. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  43088. {
  43089. 8012920: b580 push {r7, lr}
  43090. 8012922: b098 sub sp, #96 @ 0x60
  43091. 8012924: af02 add r7, sp, #8
  43092. 8012926: 6078 str r0, [r7, #4]
  43093. uint32_t tickstart;
  43094. /* Initialize the UART ErrorCode */
  43095. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43096. 8012928: 687b ldr r3, [r7, #4]
  43097. 801292a: 2200 movs r2, #0
  43098. 801292c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43099. /* Init tickstart for timeout management */
  43100. tickstart = HAL_GetTick();
  43101. 8012930: f7f3 fa74 bl 8005e1c <HAL_GetTick>
  43102. 8012934: 6578 str r0, [r7, #84] @ 0x54
  43103. /* Check if the Transmitter is enabled */
  43104. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  43105. 8012936: 687b ldr r3, [r7, #4]
  43106. 8012938: 681b ldr r3, [r3, #0]
  43107. 801293a: 681b ldr r3, [r3, #0]
  43108. 801293c: f003 0308 and.w r3, r3, #8
  43109. 8012940: 2b08 cmp r3, #8
  43110. 8012942: d12f bne.n 80129a4 <UART_CheckIdleState+0x84>
  43111. {
  43112. /* Wait until TEACK flag is set */
  43113. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43114. 8012944: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43115. 8012948: 9300 str r3, [sp, #0]
  43116. 801294a: 6d7b ldr r3, [r7, #84] @ 0x54
  43117. 801294c: 2200 movs r2, #0
  43118. 801294e: f44f 1100 mov.w r1, #2097152 @ 0x200000
  43119. 8012952: 6878 ldr r0, [r7, #4]
  43120. 8012954: f000 f88e bl 8012a74 <UART_WaitOnFlagUntilTimeout>
  43121. 8012958: 4603 mov r3, r0
  43122. 801295a: 2b00 cmp r3, #0
  43123. 801295c: d022 beq.n 80129a4 <UART_CheckIdleState+0x84>
  43124. {
  43125. /* Disable TXE interrupt for the interrupt process */
  43126. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  43127. 801295e: 687b ldr r3, [r7, #4]
  43128. 8012960: 681b ldr r3, [r3, #0]
  43129. 8012962: 63bb str r3, [r7, #56] @ 0x38
  43130. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43131. 8012964: 6bbb ldr r3, [r7, #56] @ 0x38
  43132. 8012966: e853 3f00 ldrex r3, [r3]
  43133. 801296a: 637b str r3, [r7, #52] @ 0x34
  43134. return(result);
  43135. 801296c: 6b7b ldr r3, [r7, #52] @ 0x34
  43136. 801296e: f023 0380 bic.w r3, r3, #128 @ 0x80
  43137. 8012972: 653b str r3, [r7, #80] @ 0x50
  43138. 8012974: 687b ldr r3, [r7, #4]
  43139. 8012976: 681b ldr r3, [r3, #0]
  43140. 8012978: 461a mov r2, r3
  43141. 801297a: 6d3b ldr r3, [r7, #80] @ 0x50
  43142. 801297c: 647b str r3, [r7, #68] @ 0x44
  43143. 801297e: 643a str r2, [r7, #64] @ 0x40
  43144. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43145. 8012980: 6c39 ldr r1, [r7, #64] @ 0x40
  43146. 8012982: 6c7a ldr r2, [r7, #68] @ 0x44
  43147. 8012984: e841 2300 strex r3, r2, [r1]
  43148. 8012988: 63fb str r3, [r7, #60] @ 0x3c
  43149. return(result);
  43150. 801298a: 6bfb ldr r3, [r7, #60] @ 0x3c
  43151. 801298c: 2b00 cmp r3, #0
  43152. 801298e: d1e6 bne.n 801295e <UART_CheckIdleState+0x3e>
  43153. huart->gState = HAL_UART_STATE_READY;
  43154. 8012990: 687b ldr r3, [r7, #4]
  43155. 8012992: 2220 movs r2, #32
  43156. 8012994: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43157. __HAL_UNLOCK(huart);
  43158. 8012998: 687b ldr r3, [r7, #4]
  43159. 801299a: 2200 movs r2, #0
  43160. 801299c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43161. /* Timeout occurred */
  43162. return HAL_TIMEOUT;
  43163. 80129a0: 2303 movs r3, #3
  43164. 80129a2: e063 b.n 8012a6c <UART_CheckIdleState+0x14c>
  43165. }
  43166. }
  43167. /* Check if the Receiver is enabled */
  43168. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  43169. 80129a4: 687b ldr r3, [r7, #4]
  43170. 80129a6: 681b ldr r3, [r3, #0]
  43171. 80129a8: 681b ldr r3, [r3, #0]
  43172. 80129aa: f003 0304 and.w r3, r3, #4
  43173. 80129ae: 2b04 cmp r3, #4
  43174. 80129b0: d149 bne.n 8012a46 <UART_CheckIdleState+0x126>
  43175. {
  43176. /* Wait until REACK flag is set */
  43177. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43178. 80129b2: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43179. 80129b6: 9300 str r3, [sp, #0]
  43180. 80129b8: 6d7b ldr r3, [r7, #84] @ 0x54
  43181. 80129ba: 2200 movs r2, #0
  43182. 80129bc: f44f 0180 mov.w r1, #4194304 @ 0x400000
  43183. 80129c0: 6878 ldr r0, [r7, #4]
  43184. 80129c2: f000 f857 bl 8012a74 <UART_WaitOnFlagUntilTimeout>
  43185. 80129c6: 4603 mov r3, r0
  43186. 80129c8: 2b00 cmp r3, #0
  43187. 80129ca: d03c beq.n 8012a46 <UART_CheckIdleState+0x126>
  43188. {
  43189. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  43190. interrupts for the interrupt process */
  43191. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43192. 80129cc: 687b ldr r3, [r7, #4]
  43193. 80129ce: 681b ldr r3, [r3, #0]
  43194. 80129d0: 627b str r3, [r7, #36] @ 0x24
  43195. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43196. 80129d2: 6a7b ldr r3, [r7, #36] @ 0x24
  43197. 80129d4: e853 3f00 ldrex r3, [r3]
  43198. 80129d8: 623b str r3, [r7, #32]
  43199. return(result);
  43200. 80129da: 6a3b ldr r3, [r7, #32]
  43201. 80129dc: f423 7390 bic.w r3, r3, #288 @ 0x120
  43202. 80129e0: 64fb str r3, [r7, #76] @ 0x4c
  43203. 80129e2: 687b ldr r3, [r7, #4]
  43204. 80129e4: 681b ldr r3, [r3, #0]
  43205. 80129e6: 461a mov r2, r3
  43206. 80129e8: 6cfb ldr r3, [r7, #76] @ 0x4c
  43207. 80129ea: 633b str r3, [r7, #48] @ 0x30
  43208. 80129ec: 62fa str r2, [r7, #44] @ 0x2c
  43209. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43210. 80129ee: 6af9 ldr r1, [r7, #44] @ 0x2c
  43211. 80129f0: 6b3a ldr r2, [r7, #48] @ 0x30
  43212. 80129f2: e841 2300 strex r3, r2, [r1]
  43213. 80129f6: 62bb str r3, [r7, #40] @ 0x28
  43214. return(result);
  43215. 80129f8: 6abb ldr r3, [r7, #40] @ 0x28
  43216. 80129fa: 2b00 cmp r3, #0
  43217. 80129fc: d1e6 bne.n 80129cc <UART_CheckIdleState+0xac>
  43218. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43219. 80129fe: 687b ldr r3, [r7, #4]
  43220. 8012a00: 681b ldr r3, [r3, #0]
  43221. 8012a02: 3308 adds r3, #8
  43222. 8012a04: 613b str r3, [r7, #16]
  43223. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43224. 8012a06: 693b ldr r3, [r7, #16]
  43225. 8012a08: e853 3f00 ldrex r3, [r3]
  43226. 8012a0c: 60fb str r3, [r7, #12]
  43227. return(result);
  43228. 8012a0e: 68fb ldr r3, [r7, #12]
  43229. 8012a10: f023 0301 bic.w r3, r3, #1
  43230. 8012a14: 64bb str r3, [r7, #72] @ 0x48
  43231. 8012a16: 687b ldr r3, [r7, #4]
  43232. 8012a18: 681b ldr r3, [r3, #0]
  43233. 8012a1a: 3308 adds r3, #8
  43234. 8012a1c: 6cba ldr r2, [r7, #72] @ 0x48
  43235. 8012a1e: 61fa str r2, [r7, #28]
  43236. 8012a20: 61bb str r3, [r7, #24]
  43237. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43238. 8012a22: 69b9 ldr r1, [r7, #24]
  43239. 8012a24: 69fa ldr r2, [r7, #28]
  43240. 8012a26: e841 2300 strex r3, r2, [r1]
  43241. 8012a2a: 617b str r3, [r7, #20]
  43242. return(result);
  43243. 8012a2c: 697b ldr r3, [r7, #20]
  43244. 8012a2e: 2b00 cmp r3, #0
  43245. 8012a30: d1e5 bne.n 80129fe <UART_CheckIdleState+0xde>
  43246. huart->RxState = HAL_UART_STATE_READY;
  43247. 8012a32: 687b ldr r3, [r7, #4]
  43248. 8012a34: 2220 movs r2, #32
  43249. 8012a36: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43250. __HAL_UNLOCK(huart);
  43251. 8012a3a: 687b ldr r3, [r7, #4]
  43252. 8012a3c: 2200 movs r2, #0
  43253. 8012a3e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43254. /* Timeout occurred */
  43255. return HAL_TIMEOUT;
  43256. 8012a42: 2303 movs r3, #3
  43257. 8012a44: e012 b.n 8012a6c <UART_CheckIdleState+0x14c>
  43258. }
  43259. }
  43260. /* Initialize the UART State */
  43261. huart->gState = HAL_UART_STATE_READY;
  43262. 8012a46: 687b ldr r3, [r7, #4]
  43263. 8012a48: 2220 movs r2, #32
  43264. 8012a4a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43265. huart->RxState = HAL_UART_STATE_READY;
  43266. 8012a4e: 687b ldr r3, [r7, #4]
  43267. 8012a50: 2220 movs r2, #32
  43268. 8012a52: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43269. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43270. 8012a56: 687b ldr r3, [r7, #4]
  43271. 8012a58: 2200 movs r2, #0
  43272. 8012a5a: 66da str r2, [r3, #108] @ 0x6c
  43273. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43274. 8012a5c: 687b ldr r3, [r7, #4]
  43275. 8012a5e: 2200 movs r2, #0
  43276. 8012a60: 671a str r2, [r3, #112] @ 0x70
  43277. __HAL_UNLOCK(huart);
  43278. 8012a62: 687b ldr r3, [r7, #4]
  43279. 8012a64: 2200 movs r2, #0
  43280. 8012a66: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43281. return HAL_OK;
  43282. 8012a6a: 2300 movs r3, #0
  43283. }
  43284. 8012a6c: 4618 mov r0, r3
  43285. 8012a6e: 3758 adds r7, #88 @ 0x58
  43286. 8012a70: 46bd mov sp, r7
  43287. 8012a72: bd80 pop {r7, pc}
  43288. 08012a74 <UART_WaitOnFlagUntilTimeout>:
  43289. * @param Timeout Timeout duration
  43290. * @retval HAL status
  43291. */
  43292. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  43293. uint32_t Tickstart, uint32_t Timeout)
  43294. {
  43295. 8012a74: b580 push {r7, lr}
  43296. 8012a76: b084 sub sp, #16
  43297. 8012a78: af00 add r7, sp, #0
  43298. 8012a7a: 60f8 str r0, [r7, #12]
  43299. 8012a7c: 60b9 str r1, [r7, #8]
  43300. 8012a7e: 603b str r3, [r7, #0]
  43301. 8012a80: 4613 mov r3, r2
  43302. 8012a82: 71fb strb r3, [r7, #7]
  43303. /* Wait until flag is set */
  43304. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43305. 8012a84: e04f b.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xb2>
  43306. {
  43307. /* Check for the Timeout */
  43308. if (Timeout != HAL_MAX_DELAY)
  43309. 8012a86: 69bb ldr r3, [r7, #24]
  43310. 8012a88: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43311. 8012a8c: d04b beq.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xb2>
  43312. {
  43313. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  43314. 8012a8e: f7f3 f9c5 bl 8005e1c <HAL_GetTick>
  43315. 8012a92: 4602 mov r2, r0
  43316. 8012a94: 683b ldr r3, [r7, #0]
  43317. 8012a96: 1ad3 subs r3, r2, r3
  43318. 8012a98: 69ba ldr r2, [r7, #24]
  43319. 8012a9a: 429a cmp r2, r3
  43320. 8012a9c: d302 bcc.n 8012aa4 <UART_WaitOnFlagUntilTimeout+0x30>
  43321. 8012a9e: 69bb ldr r3, [r7, #24]
  43322. 8012aa0: 2b00 cmp r3, #0
  43323. 8012aa2: d101 bne.n 8012aa8 <UART_WaitOnFlagUntilTimeout+0x34>
  43324. {
  43325. return HAL_TIMEOUT;
  43326. 8012aa4: 2303 movs r3, #3
  43327. 8012aa6: e04e b.n 8012b46 <UART_WaitOnFlagUntilTimeout+0xd2>
  43328. }
  43329. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  43330. 8012aa8: 68fb ldr r3, [r7, #12]
  43331. 8012aaa: 681b ldr r3, [r3, #0]
  43332. 8012aac: 681b ldr r3, [r3, #0]
  43333. 8012aae: f003 0304 and.w r3, r3, #4
  43334. 8012ab2: 2b00 cmp r3, #0
  43335. 8012ab4: d037 beq.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xb2>
  43336. 8012ab6: 68bb ldr r3, [r7, #8]
  43337. 8012ab8: 2b80 cmp r3, #128 @ 0x80
  43338. 8012aba: d034 beq.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xb2>
  43339. 8012abc: 68bb ldr r3, [r7, #8]
  43340. 8012abe: 2b40 cmp r3, #64 @ 0x40
  43341. 8012ac0: d031 beq.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xb2>
  43342. {
  43343. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  43344. 8012ac2: 68fb ldr r3, [r7, #12]
  43345. 8012ac4: 681b ldr r3, [r3, #0]
  43346. 8012ac6: 69db ldr r3, [r3, #28]
  43347. 8012ac8: f003 0308 and.w r3, r3, #8
  43348. 8012acc: 2b08 cmp r3, #8
  43349. 8012ace: d110 bne.n 8012af2 <UART_WaitOnFlagUntilTimeout+0x7e>
  43350. {
  43351. /* Clear Overrun Error flag*/
  43352. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  43353. 8012ad0: 68fb ldr r3, [r7, #12]
  43354. 8012ad2: 681b ldr r3, [r3, #0]
  43355. 8012ad4: 2208 movs r2, #8
  43356. 8012ad6: 621a str r2, [r3, #32]
  43357. /* Blocking error : transfer is aborted
  43358. Set the UART state ready to be able to start again the process,
  43359. Disable Rx Interrupts if ongoing */
  43360. UART_EndRxTransfer(huart);
  43361. 8012ad8: 68f8 ldr r0, [r7, #12]
  43362. 8012ada: f000 f95b bl 8012d94 <UART_EndRxTransfer>
  43363. huart->ErrorCode = HAL_UART_ERROR_ORE;
  43364. 8012ade: 68fb ldr r3, [r7, #12]
  43365. 8012ae0: 2208 movs r2, #8
  43366. 8012ae2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43367. /* Process Unlocked */
  43368. __HAL_UNLOCK(huart);
  43369. 8012ae6: 68fb ldr r3, [r7, #12]
  43370. 8012ae8: 2200 movs r2, #0
  43371. 8012aea: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43372. return HAL_ERROR;
  43373. 8012aee: 2301 movs r3, #1
  43374. 8012af0: e029 b.n 8012b46 <UART_WaitOnFlagUntilTimeout+0xd2>
  43375. }
  43376. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  43377. 8012af2: 68fb ldr r3, [r7, #12]
  43378. 8012af4: 681b ldr r3, [r3, #0]
  43379. 8012af6: 69db ldr r3, [r3, #28]
  43380. 8012af8: f403 6300 and.w r3, r3, #2048 @ 0x800
  43381. 8012afc: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  43382. 8012b00: d111 bne.n 8012b26 <UART_WaitOnFlagUntilTimeout+0xb2>
  43383. {
  43384. /* Clear Receiver Timeout flag*/
  43385. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  43386. 8012b02: 68fb ldr r3, [r7, #12]
  43387. 8012b04: 681b ldr r3, [r3, #0]
  43388. 8012b06: f44f 6200 mov.w r2, #2048 @ 0x800
  43389. 8012b0a: 621a str r2, [r3, #32]
  43390. /* Blocking error : transfer is aborted
  43391. Set the UART state ready to be able to start again the process,
  43392. Disable Rx Interrupts if ongoing */
  43393. UART_EndRxTransfer(huart);
  43394. 8012b0c: 68f8 ldr r0, [r7, #12]
  43395. 8012b0e: f000 f941 bl 8012d94 <UART_EndRxTransfer>
  43396. huart->ErrorCode = HAL_UART_ERROR_RTO;
  43397. 8012b12: 68fb ldr r3, [r7, #12]
  43398. 8012b14: 2220 movs r2, #32
  43399. 8012b16: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43400. /* Process Unlocked */
  43401. __HAL_UNLOCK(huart);
  43402. 8012b1a: 68fb ldr r3, [r7, #12]
  43403. 8012b1c: 2200 movs r2, #0
  43404. 8012b1e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43405. return HAL_TIMEOUT;
  43406. 8012b22: 2303 movs r3, #3
  43407. 8012b24: e00f b.n 8012b46 <UART_WaitOnFlagUntilTimeout+0xd2>
  43408. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43409. 8012b26: 68fb ldr r3, [r7, #12]
  43410. 8012b28: 681b ldr r3, [r3, #0]
  43411. 8012b2a: 69da ldr r2, [r3, #28]
  43412. 8012b2c: 68bb ldr r3, [r7, #8]
  43413. 8012b2e: 4013 ands r3, r2
  43414. 8012b30: 68ba ldr r2, [r7, #8]
  43415. 8012b32: 429a cmp r2, r3
  43416. 8012b34: bf0c ite eq
  43417. 8012b36: 2301 moveq r3, #1
  43418. 8012b38: 2300 movne r3, #0
  43419. 8012b3a: b2db uxtb r3, r3
  43420. 8012b3c: 461a mov r2, r3
  43421. 8012b3e: 79fb ldrb r3, [r7, #7]
  43422. 8012b40: 429a cmp r2, r3
  43423. 8012b42: d0a0 beq.n 8012a86 <UART_WaitOnFlagUntilTimeout+0x12>
  43424. }
  43425. }
  43426. }
  43427. }
  43428. return HAL_OK;
  43429. 8012b44: 2300 movs r3, #0
  43430. }
  43431. 8012b46: 4618 mov r0, r3
  43432. 8012b48: 3710 adds r7, #16
  43433. 8012b4a: 46bd mov sp, r7
  43434. 8012b4c: bd80 pop {r7, pc}
  43435. ...
  43436. 08012b50 <UART_Start_Receive_IT>:
  43437. * @param pData Pointer to data buffer (u8 or u16 data elements).
  43438. * @param Size Amount of data elements (u8 or u16) to be received.
  43439. * @retval HAL status
  43440. */
  43441. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  43442. {
  43443. 8012b50: b480 push {r7}
  43444. 8012b52: b0a3 sub sp, #140 @ 0x8c
  43445. 8012b54: af00 add r7, sp, #0
  43446. 8012b56: 60f8 str r0, [r7, #12]
  43447. 8012b58: 60b9 str r1, [r7, #8]
  43448. 8012b5a: 4613 mov r3, r2
  43449. 8012b5c: 80fb strh r3, [r7, #6]
  43450. huart->pRxBuffPtr = pData;
  43451. 8012b5e: 68fb ldr r3, [r7, #12]
  43452. 8012b60: 68ba ldr r2, [r7, #8]
  43453. 8012b62: 659a str r2, [r3, #88] @ 0x58
  43454. huart->RxXferSize = Size;
  43455. 8012b64: 68fb ldr r3, [r7, #12]
  43456. 8012b66: 88fa ldrh r2, [r7, #6]
  43457. 8012b68: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  43458. huart->RxXferCount = Size;
  43459. 8012b6c: 68fb ldr r3, [r7, #12]
  43460. 8012b6e: 88fa ldrh r2, [r7, #6]
  43461. 8012b70: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43462. huart->RxISR = NULL;
  43463. 8012b74: 68fb ldr r3, [r7, #12]
  43464. 8012b76: 2200 movs r2, #0
  43465. 8012b78: 675a str r2, [r3, #116] @ 0x74
  43466. /* Computation of UART mask to apply to RDR register */
  43467. UART_MASK_COMPUTATION(huart);
  43468. 8012b7a: 68fb ldr r3, [r7, #12]
  43469. 8012b7c: 689b ldr r3, [r3, #8]
  43470. 8012b7e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43471. 8012b82: d10e bne.n 8012ba2 <UART_Start_Receive_IT+0x52>
  43472. 8012b84: 68fb ldr r3, [r7, #12]
  43473. 8012b86: 691b ldr r3, [r3, #16]
  43474. 8012b88: 2b00 cmp r3, #0
  43475. 8012b8a: d105 bne.n 8012b98 <UART_Start_Receive_IT+0x48>
  43476. 8012b8c: 68fb ldr r3, [r7, #12]
  43477. 8012b8e: f240 12ff movw r2, #511 @ 0x1ff
  43478. 8012b92: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43479. 8012b96: e02d b.n 8012bf4 <UART_Start_Receive_IT+0xa4>
  43480. 8012b98: 68fb ldr r3, [r7, #12]
  43481. 8012b9a: 22ff movs r2, #255 @ 0xff
  43482. 8012b9c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43483. 8012ba0: e028 b.n 8012bf4 <UART_Start_Receive_IT+0xa4>
  43484. 8012ba2: 68fb ldr r3, [r7, #12]
  43485. 8012ba4: 689b ldr r3, [r3, #8]
  43486. 8012ba6: 2b00 cmp r3, #0
  43487. 8012ba8: d10d bne.n 8012bc6 <UART_Start_Receive_IT+0x76>
  43488. 8012baa: 68fb ldr r3, [r7, #12]
  43489. 8012bac: 691b ldr r3, [r3, #16]
  43490. 8012bae: 2b00 cmp r3, #0
  43491. 8012bb0: d104 bne.n 8012bbc <UART_Start_Receive_IT+0x6c>
  43492. 8012bb2: 68fb ldr r3, [r7, #12]
  43493. 8012bb4: 22ff movs r2, #255 @ 0xff
  43494. 8012bb6: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43495. 8012bba: e01b b.n 8012bf4 <UART_Start_Receive_IT+0xa4>
  43496. 8012bbc: 68fb ldr r3, [r7, #12]
  43497. 8012bbe: 227f movs r2, #127 @ 0x7f
  43498. 8012bc0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43499. 8012bc4: e016 b.n 8012bf4 <UART_Start_Receive_IT+0xa4>
  43500. 8012bc6: 68fb ldr r3, [r7, #12]
  43501. 8012bc8: 689b ldr r3, [r3, #8]
  43502. 8012bca: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  43503. 8012bce: d10d bne.n 8012bec <UART_Start_Receive_IT+0x9c>
  43504. 8012bd0: 68fb ldr r3, [r7, #12]
  43505. 8012bd2: 691b ldr r3, [r3, #16]
  43506. 8012bd4: 2b00 cmp r3, #0
  43507. 8012bd6: d104 bne.n 8012be2 <UART_Start_Receive_IT+0x92>
  43508. 8012bd8: 68fb ldr r3, [r7, #12]
  43509. 8012bda: 227f movs r2, #127 @ 0x7f
  43510. 8012bdc: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43511. 8012be0: e008 b.n 8012bf4 <UART_Start_Receive_IT+0xa4>
  43512. 8012be2: 68fb ldr r3, [r7, #12]
  43513. 8012be4: 223f movs r2, #63 @ 0x3f
  43514. 8012be6: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43515. 8012bea: e003 b.n 8012bf4 <UART_Start_Receive_IT+0xa4>
  43516. 8012bec: 68fb ldr r3, [r7, #12]
  43517. 8012bee: 2200 movs r2, #0
  43518. 8012bf0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43519. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43520. 8012bf4: 68fb ldr r3, [r7, #12]
  43521. 8012bf6: 2200 movs r2, #0
  43522. 8012bf8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43523. huart->RxState = HAL_UART_STATE_BUSY_RX;
  43524. 8012bfc: 68fb ldr r3, [r7, #12]
  43525. 8012bfe: 2222 movs r2, #34 @ 0x22
  43526. 8012c00: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43527. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43528. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43529. 8012c04: 68fb ldr r3, [r7, #12]
  43530. 8012c06: 681b ldr r3, [r3, #0]
  43531. 8012c08: 3308 adds r3, #8
  43532. 8012c0a: 667b str r3, [r7, #100] @ 0x64
  43533. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43534. 8012c0c: 6e7b ldr r3, [r7, #100] @ 0x64
  43535. 8012c0e: e853 3f00 ldrex r3, [r3]
  43536. 8012c12: 663b str r3, [r7, #96] @ 0x60
  43537. return(result);
  43538. 8012c14: 6e3b ldr r3, [r7, #96] @ 0x60
  43539. 8012c16: f043 0301 orr.w r3, r3, #1
  43540. 8012c1a: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  43541. 8012c1e: 68fb ldr r3, [r7, #12]
  43542. 8012c20: 681b ldr r3, [r3, #0]
  43543. 8012c22: 3308 adds r3, #8
  43544. 8012c24: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  43545. 8012c28: 673a str r2, [r7, #112] @ 0x70
  43546. 8012c2a: 66fb str r3, [r7, #108] @ 0x6c
  43547. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43548. 8012c2c: 6ef9 ldr r1, [r7, #108] @ 0x6c
  43549. 8012c2e: 6f3a ldr r2, [r7, #112] @ 0x70
  43550. 8012c30: e841 2300 strex r3, r2, [r1]
  43551. 8012c34: 66bb str r3, [r7, #104] @ 0x68
  43552. return(result);
  43553. 8012c36: 6ebb ldr r3, [r7, #104] @ 0x68
  43554. 8012c38: 2b00 cmp r3, #0
  43555. 8012c3a: d1e3 bne.n 8012c04 <UART_Start_Receive_IT+0xb4>
  43556. /* Configure Rx interrupt processing */
  43557. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  43558. 8012c3c: 68fb ldr r3, [r7, #12]
  43559. 8012c3e: 6e5b ldr r3, [r3, #100] @ 0x64
  43560. 8012c40: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  43561. 8012c44: d14f bne.n 8012ce6 <UART_Start_Receive_IT+0x196>
  43562. 8012c46: 68fb ldr r3, [r7, #12]
  43563. 8012c48: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  43564. 8012c4c: 88fa ldrh r2, [r7, #6]
  43565. 8012c4e: 429a cmp r2, r3
  43566. 8012c50: d349 bcc.n 8012ce6 <UART_Start_Receive_IT+0x196>
  43567. {
  43568. /* Set the Rx ISR function pointer according to the data word length */
  43569. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43570. 8012c52: 68fb ldr r3, [r7, #12]
  43571. 8012c54: 689b ldr r3, [r3, #8]
  43572. 8012c56: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43573. 8012c5a: d107 bne.n 8012c6c <UART_Start_Receive_IT+0x11c>
  43574. 8012c5c: 68fb ldr r3, [r7, #12]
  43575. 8012c5e: 691b ldr r3, [r3, #16]
  43576. 8012c60: 2b00 cmp r3, #0
  43577. 8012c62: d103 bne.n 8012c6c <UART_Start_Receive_IT+0x11c>
  43578. {
  43579. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  43580. 8012c64: 68fb ldr r3, [r7, #12]
  43581. 8012c66: 4a47 ldr r2, [pc, #284] @ (8012d84 <UART_Start_Receive_IT+0x234>)
  43582. 8012c68: 675a str r2, [r3, #116] @ 0x74
  43583. 8012c6a: e002 b.n 8012c72 <UART_Start_Receive_IT+0x122>
  43584. }
  43585. else
  43586. {
  43587. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  43588. 8012c6c: 68fb ldr r3, [r7, #12]
  43589. 8012c6e: 4a46 ldr r2, [pc, #280] @ (8012d88 <UART_Start_Receive_IT+0x238>)
  43590. 8012c70: 675a str r2, [r3, #116] @ 0x74
  43591. }
  43592. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  43593. if (huart->Init.Parity != UART_PARITY_NONE)
  43594. 8012c72: 68fb ldr r3, [r7, #12]
  43595. 8012c74: 691b ldr r3, [r3, #16]
  43596. 8012c76: 2b00 cmp r3, #0
  43597. 8012c78: d01a beq.n 8012cb0 <UART_Start_Receive_IT+0x160>
  43598. {
  43599. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  43600. 8012c7a: 68fb ldr r3, [r7, #12]
  43601. 8012c7c: 681b ldr r3, [r3, #0]
  43602. 8012c7e: 653b str r3, [r7, #80] @ 0x50
  43603. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43604. 8012c80: 6d3b ldr r3, [r7, #80] @ 0x50
  43605. 8012c82: e853 3f00 ldrex r3, [r3]
  43606. 8012c86: 64fb str r3, [r7, #76] @ 0x4c
  43607. return(result);
  43608. 8012c88: 6cfb ldr r3, [r7, #76] @ 0x4c
  43609. 8012c8a: f443 7380 orr.w r3, r3, #256 @ 0x100
  43610. 8012c8e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  43611. 8012c92: 68fb ldr r3, [r7, #12]
  43612. 8012c94: 681b ldr r3, [r3, #0]
  43613. 8012c96: 461a mov r2, r3
  43614. 8012c98: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  43615. 8012c9c: 65fb str r3, [r7, #92] @ 0x5c
  43616. 8012c9e: 65ba str r2, [r7, #88] @ 0x58
  43617. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43618. 8012ca0: 6db9 ldr r1, [r7, #88] @ 0x58
  43619. 8012ca2: 6dfa ldr r2, [r7, #92] @ 0x5c
  43620. 8012ca4: e841 2300 strex r3, r2, [r1]
  43621. 8012ca8: 657b str r3, [r7, #84] @ 0x54
  43622. return(result);
  43623. 8012caa: 6d7b ldr r3, [r7, #84] @ 0x54
  43624. 8012cac: 2b00 cmp r3, #0
  43625. 8012cae: d1e4 bne.n 8012c7a <UART_Start_Receive_IT+0x12a>
  43626. }
  43627. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  43628. 8012cb0: 68fb ldr r3, [r7, #12]
  43629. 8012cb2: 681b ldr r3, [r3, #0]
  43630. 8012cb4: 3308 adds r3, #8
  43631. 8012cb6: 63fb str r3, [r7, #60] @ 0x3c
  43632. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43633. 8012cb8: 6bfb ldr r3, [r7, #60] @ 0x3c
  43634. 8012cba: e853 3f00 ldrex r3, [r3]
  43635. 8012cbe: 63bb str r3, [r7, #56] @ 0x38
  43636. return(result);
  43637. 8012cc0: 6bbb ldr r3, [r7, #56] @ 0x38
  43638. 8012cc2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  43639. 8012cc6: 67fb str r3, [r7, #124] @ 0x7c
  43640. 8012cc8: 68fb ldr r3, [r7, #12]
  43641. 8012cca: 681b ldr r3, [r3, #0]
  43642. 8012ccc: 3308 adds r3, #8
  43643. 8012cce: 6ffa ldr r2, [r7, #124] @ 0x7c
  43644. 8012cd0: 64ba str r2, [r7, #72] @ 0x48
  43645. 8012cd2: 647b str r3, [r7, #68] @ 0x44
  43646. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43647. 8012cd4: 6c79 ldr r1, [r7, #68] @ 0x44
  43648. 8012cd6: 6cba ldr r2, [r7, #72] @ 0x48
  43649. 8012cd8: e841 2300 strex r3, r2, [r1]
  43650. 8012cdc: 643b str r3, [r7, #64] @ 0x40
  43651. return(result);
  43652. 8012cde: 6c3b ldr r3, [r7, #64] @ 0x40
  43653. 8012ce0: 2b00 cmp r3, #0
  43654. 8012ce2: d1e5 bne.n 8012cb0 <UART_Start_Receive_IT+0x160>
  43655. 8012ce4: e046 b.n 8012d74 <UART_Start_Receive_IT+0x224>
  43656. }
  43657. else
  43658. {
  43659. /* Set the Rx ISR function pointer according to the data word length */
  43660. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43661. 8012ce6: 68fb ldr r3, [r7, #12]
  43662. 8012ce8: 689b ldr r3, [r3, #8]
  43663. 8012cea: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43664. 8012cee: d107 bne.n 8012d00 <UART_Start_Receive_IT+0x1b0>
  43665. 8012cf0: 68fb ldr r3, [r7, #12]
  43666. 8012cf2: 691b ldr r3, [r3, #16]
  43667. 8012cf4: 2b00 cmp r3, #0
  43668. 8012cf6: d103 bne.n 8012d00 <UART_Start_Receive_IT+0x1b0>
  43669. {
  43670. huart->RxISR = UART_RxISR_16BIT;
  43671. 8012cf8: 68fb ldr r3, [r7, #12]
  43672. 8012cfa: 4a24 ldr r2, [pc, #144] @ (8012d8c <UART_Start_Receive_IT+0x23c>)
  43673. 8012cfc: 675a str r2, [r3, #116] @ 0x74
  43674. 8012cfe: e002 b.n 8012d06 <UART_Start_Receive_IT+0x1b6>
  43675. }
  43676. else
  43677. {
  43678. huart->RxISR = UART_RxISR_8BIT;
  43679. 8012d00: 68fb ldr r3, [r7, #12]
  43680. 8012d02: 4a23 ldr r2, [pc, #140] @ (8012d90 <UART_Start_Receive_IT+0x240>)
  43681. 8012d04: 675a str r2, [r3, #116] @ 0x74
  43682. }
  43683. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  43684. if (huart->Init.Parity != UART_PARITY_NONE)
  43685. 8012d06: 68fb ldr r3, [r7, #12]
  43686. 8012d08: 691b ldr r3, [r3, #16]
  43687. 8012d0a: 2b00 cmp r3, #0
  43688. 8012d0c: d019 beq.n 8012d42 <UART_Start_Receive_IT+0x1f2>
  43689. {
  43690. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  43691. 8012d0e: 68fb ldr r3, [r7, #12]
  43692. 8012d10: 681b ldr r3, [r3, #0]
  43693. 8012d12: 62bb str r3, [r7, #40] @ 0x28
  43694. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43695. 8012d14: 6abb ldr r3, [r7, #40] @ 0x28
  43696. 8012d16: e853 3f00 ldrex r3, [r3]
  43697. 8012d1a: 627b str r3, [r7, #36] @ 0x24
  43698. return(result);
  43699. 8012d1c: 6a7b ldr r3, [r7, #36] @ 0x24
  43700. 8012d1e: f443 7390 orr.w r3, r3, #288 @ 0x120
  43701. 8012d22: 677b str r3, [r7, #116] @ 0x74
  43702. 8012d24: 68fb ldr r3, [r7, #12]
  43703. 8012d26: 681b ldr r3, [r3, #0]
  43704. 8012d28: 461a mov r2, r3
  43705. 8012d2a: 6f7b ldr r3, [r7, #116] @ 0x74
  43706. 8012d2c: 637b str r3, [r7, #52] @ 0x34
  43707. 8012d2e: 633a str r2, [r7, #48] @ 0x30
  43708. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43709. 8012d30: 6b39 ldr r1, [r7, #48] @ 0x30
  43710. 8012d32: 6b7a ldr r2, [r7, #52] @ 0x34
  43711. 8012d34: e841 2300 strex r3, r2, [r1]
  43712. 8012d38: 62fb str r3, [r7, #44] @ 0x2c
  43713. return(result);
  43714. 8012d3a: 6afb ldr r3, [r7, #44] @ 0x2c
  43715. 8012d3c: 2b00 cmp r3, #0
  43716. 8012d3e: d1e6 bne.n 8012d0e <UART_Start_Receive_IT+0x1be>
  43717. 8012d40: e018 b.n 8012d74 <UART_Start_Receive_IT+0x224>
  43718. }
  43719. else
  43720. {
  43721. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  43722. 8012d42: 68fb ldr r3, [r7, #12]
  43723. 8012d44: 681b ldr r3, [r3, #0]
  43724. 8012d46: 617b str r3, [r7, #20]
  43725. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43726. 8012d48: 697b ldr r3, [r7, #20]
  43727. 8012d4a: e853 3f00 ldrex r3, [r3]
  43728. 8012d4e: 613b str r3, [r7, #16]
  43729. return(result);
  43730. 8012d50: 693b ldr r3, [r7, #16]
  43731. 8012d52: f043 0320 orr.w r3, r3, #32
  43732. 8012d56: 67bb str r3, [r7, #120] @ 0x78
  43733. 8012d58: 68fb ldr r3, [r7, #12]
  43734. 8012d5a: 681b ldr r3, [r3, #0]
  43735. 8012d5c: 461a mov r2, r3
  43736. 8012d5e: 6fbb ldr r3, [r7, #120] @ 0x78
  43737. 8012d60: 623b str r3, [r7, #32]
  43738. 8012d62: 61fa str r2, [r7, #28]
  43739. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43740. 8012d64: 69f9 ldr r1, [r7, #28]
  43741. 8012d66: 6a3a ldr r2, [r7, #32]
  43742. 8012d68: e841 2300 strex r3, r2, [r1]
  43743. 8012d6c: 61bb str r3, [r7, #24]
  43744. return(result);
  43745. 8012d6e: 69bb ldr r3, [r7, #24]
  43746. 8012d70: 2b00 cmp r3, #0
  43747. 8012d72: d1e6 bne.n 8012d42 <UART_Start_Receive_IT+0x1f2>
  43748. }
  43749. }
  43750. return HAL_OK;
  43751. 8012d74: 2300 movs r3, #0
  43752. }
  43753. 8012d76: 4618 mov r0, r3
  43754. 8012d78: 378c adds r7, #140 @ 0x8c
  43755. 8012d7a: 46bd mov sp, r7
  43756. 8012d7c: f85d 7b04 ldr.w r7, [sp], #4
  43757. 8012d80: 4770 bx lr
  43758. 8012d82: bf00 nop
  43759. 8012d84: 080138f9 .word 0x080138f9
  43760. 8012d88: 08013599 .word 0x08013599
  43761. 8012d8c: 080133e1 .word 0x080133e1
  43762. 8012d90: 08013229 .word 0x08013229
  43763. 08012d94 <UART_EndRxTransfer>:
  43764. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  43765. * @param huart UART handle.
  43766. * @retval None
  43767. */
  43768. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  43769. {
  43770. 8012d94: b480 push {r7}
  43771. 8012d96: b095 sub sp, #84 @ 0x54
  43772. 8012d98: af00 add r7, sp, #0
  43773. 8012d9a: 6078 str r0, [r7, #4]
  43774. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  43775. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43776. 8012d9c: 687b ldr r3, [r7, #4]
  43777. 8012d9e: 681b ldr r3, [r3, #0]
  43778. 8012da0: 637b str r3, [r7, #52] @ 0x34
  43779. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43780. 8012da2: 6b7b ldr r3, [r7, #52] @ 0x34
  43781. 8012da4: e853 3f00 ldrex r3, [r3]
  43782. 8012da8: 633b str r3, [r7, #48] @ 0x30
  43783. return(result);
  43784. 8012daa: 6b3b ldr r3, [r7, #48] @ 0x30
  43785. 8012dac: f423 7390 bic.w r3, r3, #288 @ 0x120
  43786. 8012db0: 64fb str r3, [r7, #76] @ 0x4c
  43787. 8012db2: 687b ldr r3, [r7, #4]
  43788. 8012db4: 681b ldr r3, [r3, #0]
  43789. 8012db6: 461a mov r2, r3
  43790. 8012db8: 6cfb ldr r3, [r7, #76] @ 0x4c
  43791. 8012dba: 643b str r3, [r7, #64] @ 0x40
  43792. 8012dbc: 63fa str r2, [r7, #60] @ 0x3c
  43793. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43794. 8012dbe: 6bf9 ldr r1, [r7, #60] @ 0x3c
  43795. 8012dc0: 6c3a ldr r2, [r7, #64] @ 0x40
  43796. 8012dc2: e841 2300 strex r3, r2, [r1]
  43797. 8012dc6: 63bb str r3, [r7, #56] @ 0x38
  43798. return(result);
  43799. 8012dc8: 6bbb ldr r3, [r7, #56] @ 0x38
  43800. 8012dca: 2b00 cmp r3, #0
  43801. 8012dcc: d1e6 bne.n 8012d9c <UART_EndRxTransfer+0x8>
  43802. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  43803. 8012dce: 687b ldr r3, [r7, #4]
  43804. 8012dd0: 681b ldr r3, [r3, #0]
  43805. 8012dd2: 3308 adds r3, #8
  43806. 8012dd4: 623b str r3, [r7, #32]
  43807. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43808. 8012dd6: 6a3b ldr r3, [r7, #32]
  43809. 8012dd8: e853 3f00 ldrex r3, [r3]
  43810. 8012ddc: 61fb str r3, [r7, #28]
  43811. return(result);
  43812. 8012dde: 69fa ldr r2, [r7, #28]
  43813. 8012de0: 4b1e ldr r3, [pc, #120] @ (8012e5c <UART_EndRxTransfer+0xc8>)
  43814. 8012de2: 4013 ands r3, r2
  43815. 8012de4: 64bb str r3, [r7, #72] @ 0x48
  43816. 8012de6: 687b ldr r3, [r7, #4]
  43817. 8012de8: 681b ldr r3, [r3, #0]
  43818. 8012dea: 3308 adds r3, #8
  43819. 8012dec: 6cba ldr r2, [r7, #72] @ 0x48
  43820. 8012dee: 62fa str r2, [r7, #44] @ 0x2c
  43821. 8012df0: 62bb str r3, [r7, #40] @ 0x28
  43822. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43823. 8012df2: 6ab9 ldr r1, [r7, #40] @ 0x28
  43824. 8012df4: 6afa ldr r2, [r7, #44] @ 0x2c
  43825. 8012df6: e841 2300 strex r3, r2, [r1]
  43826. 8012dfa: 627b str r3, [r7, #36] @ 0x24
  43827. return(result);
  43828. 8012dfc: 6a7b ldr r3, [r7, #36] @ 0x24
  43829. 8012dfe: 2b00 cmp r3, #0
  43830. 8012e00: d1e5 bne.n 8012dce <UART_EndRxTransfer+0x3a>
  43831. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  43832. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43833. 8012e02: 687b ldr r3, [r7, #4]
  43834. 8012e04: 6edb ldr r3, [r3, #108] @ 0x6c
  43835. 8012e06: 2b01 cmp r3, #1
  43836. 8012e08: d118 bne.n 8012e3c <UART_EndRxTransfer+0xa8>
  43837. {
  43838. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43839. 8012e0a: 687b ldr r3, [r7, #4]
  43840. 8012e0c: 681b ldr r3, [r3, #0]
  43841. 8012e0e: 60fb str r3, [r7, #12]
  43842. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43843. 8012e10: 68fb ldr r3, [r7, #12]
  43844. 8012e12: e853 3f00 ldrex r3, [r3]
  43845. 8012e16: 60bb str r3, [r7, #8]
  43846. return(result);
  43847. 8012e18: 68bb ldr r3, [r7, #8]
  43848. 8012e1a: f023 0310 bic.w r3, r3, #16
  43849. 8012e1e: 647b str r3, [r7, #68] @ 0x44
  43850. 8012e20: 687b ldr r3, [r7, #4]
  43851. 8012e22: 681b ldr r3, [r3, #0]
  43852. 8012e24: 461a mov r2, r3
  43853. 8012e26: 6c7b ldr r3, [r7, #68] @ 0x44
  43854. 8012e28: 61bb str r3, [r7, #24]
  43855. 8012e2a: 617a str r2, [r7, #20]
  43856. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43857. 8012e2c: 6979 ldr r1, [r7, #20]
  43858. 8012e2e: 69ba ldr r2, [r7, #24]
  43859. 8012e30: e841 2300 strex r3, r2, [r1]
  43860. 8012e34: 613b str r3, [r7, #16]
  43861. return(result);
  43862. 8012e36: 693b ldr r3, [r7, #16]
  43863. 8012e38: 2b00 cmp r3, #0
  43864. 8012e3a: d1e6 bne.n 8012e0a <UART_EndRxTransfer+0x76>
  43865. }
  43866. /* At end of Rx process, restore huart->RxState to Ready */
  43867. huart->RxState = HAL_UART_STATE_READY;
  43868. 8012e3c: 687b ldr r3, [r7, #4]
  43869. 8012e3e: 2220 movs r2, #32
  43870. 8012e40: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43871. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43872. 8012e44: 687b ldr r3, [r7, #4]
  43873. 8012e46: 2200 movs r2, #0
  43874. 8012e48: 66da str r2, [r3, #108] @ 0x6c
  43875. /* Reset RxIsr function pointer */
  43876. huart->RxISR = NULL;
  43877. 8012e4a: 687b ldr r3, [r7, #4]
  43878. 8012e4c: 2200 movs r2, #0
  43879. 8012e4e: 675a str r2, [r3, #116] @ 0x74
  43880. }
  43881. 8012e50: bf00 nop
  43882. 8012e52: 3754 adds r7, #84 @ 0x54
  43883. 8012e54: 46bd mov sp, r7
  43884. 8012e56: f85d 7b04 ldr.w r7, [sp], #4
  43885. 8012e5a: 4770 bx lr
  43886. 8012e5c: effffffe .word 0xeffffffe
  43887. 08012e60 <UART_DMAAbortOnError>:
  43888. * (To be called at end of DMA Abort procedure following error occurrence).
  43889. * @param hdma DMA handle.
  43890. * @retval None
  43891. */
  43892. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  43893. {
  43894. 8012e60: b580 push {r7, lr}
  43895. 8012e62: b084 sub sp, #16
  43896. 8012e64: af00 add r7, sp, #0
  43897. 8012e66: 6078 str r0, [r7, #4]
  43898. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  43899. 8012e68: 687b ldr r3, [r7, #4]
  43900. 8012e6a: 6b9b ldr r3, [r3, #56] @ 0x38
  43901. 8012e6c: 60fb str r3, [r7, #12]
  43902. huart->RxXferCount = 0U;
  43903. 8012e6e: 68fb ldr r3, [r7, #12]
  43904. 8012e70: 2200 movs r2, #0
  43905. 8012e72: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43906. huart->TxXferCount = 0U;
  43907. 8012e76: 68fb ldr r3, [r7, #12]
  43908. 8012e78: 2200 movs r2, #0
  43909. 8012e7a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43910. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43911. /*Call registered error callback*/
  43912. huart->ErrorCallback(huart);
  43913. #else
  43914. /*Call legacy weak error callback*/
  43915. HAL_UART_ErrorCallback(huart);
  43916. 8012e7e: 68f8 ldr r0, [r7, #12]
  43917. 8012e80: f7fe ff3a bl 8011cf8 <HAL_UART_ErrorCallback>
  43918. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43919. }
  43920. 8012e84: bf00 nop
  43921. 8012e86: 3710 adds r7, #16
  43922. 8012e88: 46bd mov sp, r7
  43923. 8012e8a: bd80 pop {r7, pc}
  43924. 08012e8c <UART_TxISR_8BIT>:
  43925. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43926. * @param huart UART handle.
  43927. * @retval None
  43928. */
  43929. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  43930. {
  43931. 8012e8c: b480 push {r7}
  43932. 8012e8e: b08f sub sp, #60 @ 0x3c
  43933. 8012e90: af00 add r7, sp, #0
  43934. 8012e92: 6078 str r0, [r7, #4]
  43935. /* Check that a Tx process is ongoing */
  43936. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43937. 8012e94: 687b ldr r3, [r7, #4]
  43938. 8012e96: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43939. 8012e9a: 2b21 cmp r3, #33 @ 0x21
  43940. 8012e9c: d14c bne.n 8012f38 <UART_TxISR_8BIT+0xac>
  43941. {
  43942. if (huart->TxXferCount == 0U)
  43943. 8012e9e: 687b ldr r3, [r7, #4]
  43944. 8012ea0: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43945. 8012ea4: b29b uxth r3, r3
  43946. 8012ea6: 2b00 cmp r3, #0
  43947. 8012ea8: d132 bne.n 8012f10 <UART_TxISR_8BIT+0x84>
  43948. {
  43949. /* Disable the UART Transmit Data Register Empty Interrupt */
  43950. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  43951. 8012eaa: 687b ldr r3, [r7, #4]
  43952. 8012eac: 681b ldr r3, [r3, #0]
  43953. 8012eae: 623b str r3, [r7, #32]
  43954. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43955. 8012eb0: 6a3b ldr r3, [r7, #32]
  43956. 8012eb2: e853 3f00 ldrex r3, [r3]
  43957. 8012eb6: 61fb str r3, [r7, #28]
  43958. return(result);
  43959. 8012eb8: 69fb ldr r3, [r7, #28]
  43960. 8012eba: f023 0380 bic.w r3, r3, #128 @ 0x80
  43961. 8012ebe: 637b str r3, [r7, #52] @ 0x34
  43962. 8012ec0: 687b ldr r3, [r7, #4]
  43963. 8012ec2: 681b ldr r3, [r3, #0]
  43964. 8012ec4: 461a mov r2, r3
  43965. 8012ec6: 6b7b ldr r3, [r7, #52] @ 0x34
  43966. 8012ec8: 62fb str r3, [r7, #44] @ 0x2c
  43967. 8012eca: 62ba str r2, [r7, #40] @ 0x28
  43968. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43969. 8012ecc: 6ab9 ldr r1, [r7, #40] @ 0x28
  43970. 8012ece: 6afa ldr r2, [r7, #44] @ 0x2c
  43971. 8012ed0: e841 2300 strex r3, r2, [r1]
  43972. 8012ed4: 627b str r3, [r7, #36] @ 0x24
  43973. return(result);
  43974. 8012ed6: 6a7b ldr r3, [r7, #36] @ 0x24
  43975. 8012ed8: 2b00 cmp r3, #0
  43976. 8012eda: d1e6 bne.n 8012eaa <UART_TxISR_8BIT+0x1e>
  43977. /* Enable the UART Transmit Complete Interrupt */
  43978. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43979. 8012edc: 687b ldr r3, [r7, #4]
  43980. 8012ede: 681b ldr r3, [r3, #0]
  43981. 8012ee0: 60fb str r3, [r7, #12]
  43982. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43983. 8012ee2: 68fb ldr r3, [r7, #12]
  43984. 8012ee4: e853 3f00 ldrex r3, [r3]
  43985. 8012ee8: 60bb str r3, [r7, #8]
  43986. return(result);
  43987. 8012eea: 68bb ldr r3, [r7, #8]
  43988. 8012eec: f043 0340 orr.w r3, r3, #64 @ 0x40
  43989. 8012ef0: 633b str r3, [r7, #48] @ 0x30
  43990. 8012ef2: 687b ldr r3, [r7, #4]
  43991. 8012ef4: 681b ldr r3, [r3, #0]
  43992. 8012ef6: 461a mov r2, r3
  43993. 8012ef8: 6b3b ldr r3, [r7, #48] @ 0x30
  43994. 8012efa: 61bb str r3, [r7, #24]
  43995. 8012efc: 617a str r2, [r7, #20]
  43996. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43997. 8012efe: 6979 ldr r1, [r7, #20]
  43998. 8012f00: 69ba ldr r2, [r7, #24]
  43999. 8012f02: e841 2300 strex r3, r2, [r1]
  44000. 8012f06: 613b str r3, [r7, #16]
  44001. return(result);
  44002. 8012f08: 693b ldr r3, [r7, #16]
  44003. 8012f0a: 2b00 cmp r3, #0
  44004. 8012f0c: d1e6 bne.n 8012edc <UART_TxISR_8BIT+0x50>
  44005. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44006. huart->pTxBuffPtr++;
  44007. huart->TxXferCount--;
  44008. }
  44009. }
  44010. }
  44011. 8012f0e: e013 b.n 8012f38 <UART_TxISR_8BIT+0xac>
  44012. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44013. 8012f10: 687b ldr r3, [r7, #4]
  44014. 8012f12: 6d1b ldr r3, [r3, #80] @ 0x50
  44015. 8012f14: 781a ldrb r2, [r3, #0]
  44016. 8012f16: 687b ldr r3, [r7, #4]
  44017. 8012f18: 681b ldr r3, [r3, #0]
  44018. 8012f1a: 629a str r2, [r3, #40] @ 0x28
  44019. huart->pTxBuffPtr++;
  44020. 8012f1c: 687b ldr r3, [r7, #4]
  44021. 8012f1e: 6d1b ldr r3, [r3, #80] @ 0x50
  44022. 8012f20: 1c5a adds r2, r3, #1
  44023. 8012f22: 687b ldr r3, [r7, #4]
  44024. 8012f24: 651a str r2, [r3, #80] @ 0x50
  44025. huart->TxXferCount--;
  44026. 8012f26: 687b ldr r3, [r7, #4]
  44027. 8012f28: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44028. 8012f2c: b29b uxth r3, r3
  44029. 8012f2e: 3b01 subs r3, #1
  44030. 8012f30: b29a uxth r2, r3
  44031. 8012f32: 687b ldr r3, [r7, #4]
  44032. 8012f34: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44033. }
  44034. 8012f38: bf00 nop
  44035. 8012f3a: 373c adds r7, #60 @ 0x3c
  44036. 8012f3c: 46bd mov sp, r7
  44037. 8012f3e: f85d 7b04 ldr.w r7, [sp], #4
  44038. 8012f42: 4770 bx lr
  44039. 08012f44 <UART_TxISR_16BIT>:
  44040. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44041. * @param huart UART handle.
  44042. * @retval None
  44043. */
  44044. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  44045. {
  44046. 8012f44: b480 push {r7}
  44047. 8012f46: b091 sub sp, #68 @ 0x44
  44048. 8012f48: af00 add r7, sp, #0
  44049. 8012f4a: 6078 str r0, [r7, #4]
  44050. const uint16_t *tmp;
  44051. /* Check that a Tx process is ongoing */
  44052. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44053. 8012f4c: 687b ldr r3, [r7, #4]
  44054. 8012f4e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44055. 8012f52: 2b21 cmp r3, #33 @ 0x21
  44056. 8012f54: d151 bne.n 8012ffa <UART_TxISR_16BIT+0xb6>
  44057. {
  44058. if (huart->TxXferCount == 0U)
  44059. 8012f56: 687b ldr r3, [r7, #4]
  44060. 8012f58: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44061. 8012f5c: b29b uxth r3, r3
  44062. 8012f5e: 2b00 cmp r3, #0
  44063. 8012f60: d132 bne.n 8012fc8 <UART_TxISR_16BIT+0x84>
  44064. {
  44065. /* Disable the UART Transmit Data Register Empty Interrupt */
  44066. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  44067. 8012f62: 687b ldr r3, [r7, #4]
  44068. 8012f64: 681b ldr r3, [r3, #0]
  44069. 8012f66: 627b str r3, [r7, #36] @ 0x24
  44070. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44071. 8012f68: 6a7b ldr r3, [r7, #36] @ 0x24
  44072. 8012f6a: e853 3f00 ldrex r3, [r3]
  44073. 8012f6e: 623b str r3, [r7, #32]
  44074. return(result);
  44075. 8012f70: 6a3b ldr r3, [r7, #32]
  44076. 8012f72: f023 0380 bic.w r3, r3, #128 @ 0x80
  44077. 8012f76: 63bb str r3, [r7, #56] @ 0x38
  44078. 8012f78: 687b ldr r3, [r7, #4]
  44079. 8012f7a: 681b ldr r3, [r3, #0]
  44080. 8012f7c: 461a mov r2, r3
  44081. 8012f7e: 6bbb ldr r3, [r7, #56] @ 0x38
  44082. 8012f80: 633b str r3, [r7, #48] @ 0x30
  44083. 8012f82: 62fa str r2, [r7, #44] @ 0x2c
  44084. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44085. 8012f84: 6af9 ldr r1, [r7, #44] @ 0x2c
  44086. 8012f86: 6b3a ldr r2, [r7, #48] @ 0x30
  44087. 8012f88: e841 2300 strex r3, r2, [r1]
  44088. 8012f8c: 62bb str r3, [r7, #40] @ 0x28
  44089. return(result);
  44090. 8012f8e: 6abb ldr r3, [r7, #40] @ 0x28
  44091. 8012f90: 2b00 cmp r3, #0
  44092. 8012f92: d1e6 bne.n 8012f62 <UART_TxISR_16BIT+0x1e>
  44093. /* Enable the UART Transmit Complete Interrupt */
  44094. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44095. 8012f94: 687b ldr r3, [r7, #4]
  44096. 8012f96: 681b ldr r3, [r3, #0]
  44097. 8012f98: 613b str r3, [r7, #16]
  44098. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44099. 8012f9a: 693b ldr r3, [r7, #16]
  44100. 8012f9c: e853 3f00 ldrex r3, [r3]
  44101. 8012fa0: 60fb str r3, [r7, #12]
  44102. return(result);
  44103. 8012fa2: 68fb ldr r3, [r7, #12]
  44104. 8012fa4: f043 0340 orr.w r3, r3, #64 @ 0x40
  44105. 8012fa8: 637b str r3, [r7, #52] @ 0x34
  44106. 8012faa: 687b ldr r3, [r7, #4]
  44107. 8012fac: 681b ldr r3, [r3, #0]
  44108. 8012fae: 461a mov r2, r3
  44109. 8012fb0: 6b7b ldr r3, [r7, #52] @ 0x34
  44110. 8012fb2: 61fb str r3, [r7, #28]
  44111. 8012fb4: 61ba str r2, [r7, #24]
  44112. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44113. 8012fb6: 69b9 ldr r1, [r7, #24]
  44114. 8012fb8: 69fa ldr r2, [r7, #28]
  44115. 8012fba: e841 2300 strex r3, r2, [r1]
  44116. 8012fbe: 617b str r3, [r7, #20]
  44117. return(result);
  44118. 8012fc0: 697b ldr r3, [r7, #20]
  44119. 8012fc2: 2b00 cmp r3, #0
  44120. 8012fc4: d1e6 bne.n 8012f94 <UART_TxISR_16BIT+0x50>
  44121. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44122. huart->pTxBuffPtr += 2U;
  44123. huart->TxXferCount--;
  44124. }
  44125. }
  44126. }
  44127. 8012fc6: e018 b.n 8012ffa <UART_TxISR_16BIT+0xb6>
  44128. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44129. 8012fc8: 687b ldr r3, [r7, #4]
  44130. 8012fca: 6d1b ldr r3, [r3, #80] @ 0x50
  44131. 8012fcc: 63fb str r3, [r7, #60] @ 0x3c
  44132. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44133. 8012fce: 6bfb ldr r3, [r7, #60] @ 0x3c
  44134. 8012fd0: 881b ldrh r3, [r3, #0]
  44135. 8012fd2: 461a mov r2, r3
  44136. 8012fd4: 687b ldr r3, [r7, #4]
  44137. 8012fd6: 681b ldr r3, [r3, #0]
  44138. 8012fd8: f3c2 0208 ubfx r2, r2, #0, #9
  44139. 8012fdc: 629a str r2, [r3, #40] @ 0x28
  44140. huart->pTxBuffPtr += 2U;
  44141. 8012fde: 687b ldr r3, [r7, #4]
  44142. 8012fe0: 6d1b ldr r3, [r3, #80] @ 0x50
  44143. 8012fe2: 1c9a adds r2, r3, #2
  44144. 8012fe4: 687b ldr r3, [r7, #4]
  44145. 8012fe6: 651a str r2, [r3, #80] @ 0x50
  44146. huart->TxXferCount--;
  44147. 8012fe8: 687b ldr r3, [r7, #4]
  44148. 8012fea: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44149. 8012fee: b29b uxth r3, r3
  44150. 8012ff0: 3b01 subs r3, #1
  44151. 8012ff2: b29a uxth r2, r3
  44152. 8012ff4: 687b ldr r3, [r7, #4]
  44153. 8012ff6: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44154. }
  44155. 8012ffa: bf00 nop
  44156. 8012ffc: 3744 adds r7, #68 @ 0x44
  44157. 8012ffe: 46bd mov sp, r7
  44158. 8013000: f85d 7b04 ldr.w r7, [sp], #4
  44159. 8013004: 4770 bx lr
  44160. 08013006 <UART_TxISR_8BIT_FIFOEN>:
  44161. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44162. * @param huart UART handle.
  44163. * @retval None
  44164. */
  44165. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  44166. {
  44167. 8013006: b480 push {r7}
  44168. 8013008: b091 sub sp, #68 @ 0x44
  44169. 801300a: af00 add r7, sp, #0
  44170. 801300c: 6078 str r0, [r7, #4]
  44171. uint16_t nb_tx_data;
  44172. /* Check that a Tx process is ongoing */
  44173. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44174. 801300e: 687b ldr r3, [r7, #4]
  44175. 8013010: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44176. 8013014: 2b21 cmp r3, #33 @ 0x21
  44177. 8013016: d160 bne.n 80130da <UART_TxISR_8BIT_FIFOEN+0xd4>
  44178. {
  44179. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44180. 8013018: 687b ldr r3, [r7, #4]
  44181. 801301a: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44182. 801301e: 87fb strh r3, [r7, #62] @ 0x3e
  44183. 8013020: e057 b.n 80130d2 <UART_TxISR_8BIT_FIFOEN+0xcc>
  44184. {
  44185. if (huart->TxXferCount == 0U)
  44186. 8013022: 687b ldr r3, [r7, #4]
  44187. 8013024: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44188. 8013028: b29b uxth r3, r3
  44189. 801302a: 2b00 cmp r3, #0
  44190. 801302c: d133 bne.n 8013096 <UART_TxISR_8BIT_FIFOEN+0x90>
  44191. {
  44192. /* Disable the TX FIFO threshold interrupt */
  44193. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44194. 801302e: 687b ldr r3, [r7, #4]
  44195. 8013030: 681b ldr r3, [r3, #0]
  44196. 8013032: 3308 adds r3, #8
  44197. 8013034: 627b str r3, [r7, #36] @ 0x24
  44198. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44199. 8013036: 6a7b ldr r3, [r7, #36] @ 0x24
  44200. 8013038: e853 3f00 ldrex r3, [r3]
  44201. 801303c: 623b str r3, [r7, #32]
  44202. return(result);
  44203. 801303e: 6a3b ldr r3, [r7, #32]
  44204. 8013040: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44205. 8013044: 63bb str r3, [r7, #56] @ 0x38
  44206. 8013046: 687b ldr r3, [r7, #4]
  44207. 8013048: 681b ldr r3, [r3, #0]
  44208. 801304a: 3308 adds r3, #8
  44209. 801304c: 6bba ldr r2, [r7, #56] @ 0x38
  44210. 801304e: 633a str r2, [r7, #48] @ 0x30
  44211. 8013050: 62fb str r3, [r7, #44] @ 0x2c
  44212. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44213. 8013052: 6af9 ldr r1, [r7, #44] @ 0x2c
  44214. 8013054: 6b3a ldr r2, [r7, #48] @ 0x30
  44215. 8013056: e841 2300 strex r3, r2, [r1]
  44216. 801305a: 62bb str r3, [r7, #40] @ 0x28
  44217. return(result);
  44218. 801305c: 6abb ldr r3, [r7, #40] @ 0x28
  44219. 801305e: 2b00 cmp r3, #0
  44220. 8013060: d1e5 bne.n 801302e <UART_TxISR_8BIT_FIFOEN+0x28>
  44221. /* Enable the UART Transmit Complete Interrupt */
  44222. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44223. 8013062: 687b ldr r3, [r7, #4]
  44224. 8013064: 681b ldr r3, [r3, #0]
  44225. 8013066: 613b str r3, [r7, #16]
  44226. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44227. 8013068: 693b ldr r3, [r7, #16]
  44228. 801306a: e853 3f00 ldrex r3, [r3]
  44229. 801306e: 60fb str r3, [r7, #12]
  44230. return(result);
  44231. 8013070: 68fb ldr r3, [r7, #12]
  44232. 8013072: f043 0340 orr.w r3, r3, #64 @ 0x40
  44233. 8013076: 637b str r3, [r7, #52] @ 0x34
  44234. 8013078: 687b ldr r3, [r7, #4]
  44235. 801307a: 681b ldr r3, [r3, #0]
  44236. 801307c: 461a mov r2, r3
  44237. 801307e: 6b7b ldr r3, [r7, #52] @ 0x34
  44238. 8013080: 61fb str r3, [r7, #28]
  44239. 8013082: 61ba str r2, [r7, #24]
  44240. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44241. 8013084: 69b9 ldr r1, [r7, #24]
  44242. 8013086: 69fa ldr r2, [r7, #28]
  44243. 8013088: e841 2300 strex r3, r2, [r1]
  44244. 801308c: 617b str r3, [r7, #20]
  44245. return(result);
  44246. 801308e: 697b ldr r3, [r7, #20]
  44247. 8013090: 2b00 cmp r3, #0
  44248. 8013092: d1e6 bne.n 8013062 <UART_TxISR_8BIT_FIFOEN+0x5c>
  44249. break; /* force exit loop */
  44250. 8013094: e021 b.n 80130da <UART_TxISR_8BIT_FIFOEN+0xd4>
  44251. }
  44252. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44253. 8013096: 687b ldr r3, [r7, #4]
  44254. 8013098: 681b ldr r3, [r3, #0]
  44255. 801309a: 69db ldr r3, [r3, #28]
  44256. 801309c: f003 0380 and.w r3, r3, #128 @ 0x80
  44257. 80130a0: 2b00 cmp r3, #0
  44258. 80130a2: d013 beq.n 80130cc <UART_TxISR_8BIT_FIFOEN+0xc6>
  44259. {
  44260. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44261. 80130a4: 687b ldr r3, [r7, #4]
  44262. 80130a6: 6d1b ldr r3, [r3, #80] @ 0x50
  44263. 80130a8: 781a ldrb r2, [r3, #0]
  44264. 80130aa: 687b ldr r3, [r7, #4]
  44265. 80130ac: 681b ldr r3, [r3, #0]
  44266. 80130ae: 629a str r2, [r3, #40] @ 0x28
  44267. huart->pTxBuffPtr++;
  44268. 80130b0: 687b ldr r3, [r7, #4]
  44269. 80130b2: 6d1b ldr r3, [r3, #80] @ 0x50
  44270. 80130b4: 1c5a adds r2, r3, #1
  44271. 80130b6: 687b ldr r3, [r7, #4]
  44272. 80130b8: 651a str r2, [r3, #80] @ 0x50
  44273. huart->TxXferCount--;
  44274. 80130ba: 687b ldr r3, [r7, #4]
  44275. 80130bc: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44276. 80130c0: b29b uxth r3, r3
  44277. 80130c2: 3b01 subs r3, #1
  44278. 80130c4: b29a uxth r2, r3
  44279. 80130c6: 687b ldr r3, [r7, #4]
  44280. 80130c8: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44281. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44282. 80130cc: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44283. 80130ce: 3b01 subs r3, #1
  44284. 80130d0: 87fb strh r3, [r7, #62] @ 0x3e
  44285. 80130d2: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44286. 80130d4: 2b00 cmp r3, #0
  44287. 80130d6: d1a4 bne.n 8013022 <UART_TxISR_8BIT_FIFOEN+0x1c>
  44288. {
  44289. /* Nothing to do */
  44290. }
  44291. }
  44292. }
  44293. }
  44294. 80130d8: e7ff b.n 80130da <UART_TxISR_8BIT_FIFOEN+0xd4>
  44295. 80130da: bf00 nop
  44296. 80130dc: 3744 adds r7, #68 @ 0x44
  44297. 80130de: 46bd mov sp, r7
  44298. 80130e0: f85d 7b04 ldr.w r7, [sp], #4
  44299. 80130e4: 4770 bx lr
  44300. 080130e6 <UART_TxISR_16BIT_FIFOEN>:
  44301. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44302. * @param huart UART handle.
  44303. * @retval None
  44304. */
  44305. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  44306. {
  44307. 80130e6: b480 push {r7}
  44308. 80130e8: b091 sub sp, #68 @ 0x44
  44309. 80130ea: af00 add r7, sp, #0
  44310. 80130ec: 6078 str r0, [r7, #4]
  44311. const uint16_t *tmp;
  44312. uint16_t nb_tx_data;
  44313. /* Check that a Tx process is ongoing */
  44314. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44315. 80130ee: 687b ldr r3, [r7, #4]
  44316. 80130f0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44317. 80130f4: 2b21 cmp r3, #33 @ 0x21
  44318. 80130f6: d165 bne.n 80131c4 <UART_TxISR_16BIT_FIFOEN+0xde>
  44319. {
  44320. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44321. 80130f8: 687b ldr r3, [r7, #4]
  44322. 80130fa: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44323. 80130fe: 87fb strh r3, [r7, #62] @ 0x3e
  44324. 8013100: e05c b.n 80131bc <UART_TxISR_16BIT_FIFOEN+0xd6>
  44325. {
  44326. if (huart->TxXferCount == 0U)
  44327. 8013102: 687b ldr r3, [r7, #4]
  44328. 8013104: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44329. 8013108: b29b uxth r3, r3
  44330. 801310a: 2b00 cmp r3, #0
  44331. 801310c: d133 bne.n 8013176 <UART_TxISR_16BIT_FIFOEN+0x90>
  44332. {
  44333. /* Disable the TX FIFO threshold interrupt */
  44334. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44335. 801310e: 687b ldr r3, [r7, #4]
  44336. 8013110: 681b ldr r3, [r3, #0]
  44337. 8013112: 3308 adds r3, #8
  44338. 8013114: 623b str r3, [r7, #32]
  44339. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44340. 8013116: 6a3b ldr r3, [r7, #32]
  44341. 8013118: e853 3f00 ldrex r3, [r3]
  44342. 801311c: 61fb str r3, [r7, #28]
  44343. return(result);
  44344. 801311e: 69fb ldr r3, [r7, #28]
  44345. 8013120: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44346. 8013124: 637b str r3, [r7, #52] @ 0x34
  44347. 8013126: 687b ldr r3, [r7, #4]
  44348. 8013128: 681b ldr r3, [r3, #0]
  44349. 801312a: 3308 adds r3, #8
  44350. 801312c: 6b7a ldr r2, [r7, #52] @ 0x34
  44351. 801312e: 62fa str r2, [r7, #44] @ 0x2c
  44352. 8013130: 62bb str r3, [r7, #40] @ 0x28
  44353. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44354. 8013132: 6ab9 ldr r1, [r7, #40] @ 0x28
  44355. 8013134: 6afa ldr r2, [r7, #44] @ 0x2c
  44356. 8013136: e841 2300 strex r3, r2, [r1]
  44357. 801313a: 627b str r3, [r7, #36] @ 0x24
  44358. return(result);
  44359. 801313c: 6a7b ldr r3, [r7, #36] @ 0x24
  44360. 801313e: 2b00 cmp r3, #0
  44361. 8013140: d1e5 bne.n 801310e <UART_TxISR_16BIT_FIFOEN+0x28>
  44362. /* Enable the UART Transmit Complete Interrupt */
  44363. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44364. 8013142: 687b ldr r3, [r7, #4]
  44365. 8013144: 681b ldr r3, [r3, #0]
  44366. 8013146: 60fb str r3, [r7, #12]
  44367. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44368. 8013148: 68fb ldr r3, [r7, #12]
  44369. 801314a: e853 3f00 ldrex r3, [r3]
  44370. 801314e: 60bb str r3, [r7, #8]
  44371. return(result);
  44372. 8013150: 68bb ldr r3, [r7, #8]
  44373. 8013152: f043 0340 orr.w r3, r3, #64 @ 0x40
  44374. 8013156: 633b str r3, [r7, #48] @ 0x30
  44375. 8013158: 687b ldr r3, [r7, #4]
  44376. 801315a: 681b ldr r3, [r3, #0]
  44377. 801315c: 461a mov r2, r3
  44378. 801315e: 6b3b ldr r3, [r7, #48] @ 0x30
  44379. 8013160: 61bb str r3, [r7, #24]
  44380. 8013162: 617a str r2, [r7, #20]
  44381. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44382. 8013164: 6979 ldr r1, [r7, #20]
  44383. 8013166: 69ba ldr r2, [r7, #24]
  44384. 8013168: e841 2300 strex r3, r2, [r1]
  44385. 801316c: 613b str r3, [r7, #16]
  44386. return(result);
  44387. 801316e: 693b ldr r3, [r7, #16]
  44388. 8013170: 2b00 cmp r3, #0
  44389. 8013172: d1e6 bne.n 8013142 <UART_TxISR_16BIT_FIFOEN+0x5c>
  44390. break; /* force exit loop */
  44391. 8013174: e026 b.n 80131c4 <UART_TxISR_16BIT_FIFOEN+0xde>
  44392. }
  44393. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44394. 8013176: 687b ldr r3, [r7, #4]
  44395. 8013178: 681b ldr r3, [r3, #0]
  44396. 801317a: 69db ldr r3, [r3, #28]
  44397. 801317c: f003 0380 and.w r3, r3, #128 @ 0x80
  44398. 8013180: 2b00 cmp r3, #0
  44399. 8013182: d018 beq.n 80131b6 <UART_TxISR_16BIT_FIFOEN+0xd0>
  44400. {
  44401. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44402. 8013184: 687b ldr r3, [r7, #4]
  44403. 8013186: 6d1b ldr r3, [r3, #80] @ 0x50
  44404. 8013188: 63bb str r3, [r7, #56] @ 0x38
  44405. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44406. 801318a: 6bbb ldr r3, [r7, #56] @ 0x38
  44407. 801318c: 881b ldrh r3, [r3, #0]
  44408. 801318e: 461a mov r2, r3
  44409. 8013190: 687b ldr r3, [r7, #4]
  44410. 8013192: 681b ldr r3, [r3, #0]
  44411. 8013194: f3c2 0208 ubfx r2, r2, #0, #9
  44412. 8013198: 629a str r2, [r3, #40] @ 0x28
  44413. huart->pTxBuffPtr += 2U;
  44414. 801319a: 687b ldr r3, [r7, #4]
  44415. 801319c: 6d1b ldr r3, [r3, #80] @ 0x50
  44416. 801319e: 1c9a adds r2, r3, #2
  44417. 80131a0: 687b ldr r3, [r7, #4]
  44418. 80131a2: 651a str r2, [r3, #80] @ 0x50
  44419. huart->TxXferCount--;
  44420. 80131a4: 687b ldr r3, [r7, #4]
  44421. 80131a6: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44422. 80131aa: b29b uxth r3, r3
  44423. 80131ac: 3b01 subs r3, #1
  44424. 80131ae: b29a uxth r2, r3
  44425. 80131b0: 687b ldr r3, [r7, #4]
  44426. 80131b2: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44427. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44428. 80131b6: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44429. 80131b8: 3b01 subs r3, #1
  44430. 80131ba: 87fb strh r3, [r7, #62] @ 0x3e
  44431. 80131bc: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44432. 80131be: 2b00 cmp r3, #0
  44433. 80131c0: d19f bne.n 8013102 <UART_TxISR_16BIT_FIFOEN+0x1c>
  44434. {
  44435. /* Nothing to do */
  44436. }
  44437. }
  44438. }
  44439. }
  44440. 80131c2: e7ff b.n 80131c4 <UART_TxISR_16BIT_FIFOEN+0xde>
  44441. 80131c4: bf00 nop
  44442. 80131c6: 3744 adds r7, #68 @ 0x44
  44443. 80131c8: 46bd mov sp, r7
  44444. 80131ca: f85d 7b04 ldr.w r7, [sp], #4
  44445. 80131ce: 4770 bx lr
  44446. 080131d0 <UART_EndTransmit_IT>:
  44447. * @param huart pointer to a UART_HandleTypeDef structure that contains
  44448. * the configuration information for the specified UART module.
  44449. * @retval None
  44450. */
  44451. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  44452. {
  44453. 80131d0: b580 push {r7, lr}
  44454. 80131d2: b088 sub sp, #32
  44455. 80131d4: af00 add r7, sp, #0
  44456. 80131d6: 6078 str r0, [r7, #4]
  44457. /* Disable the UART Transmit Complete Interrupt */
  44458. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44459. 80131d8: 687b ldr r3, [r7, #4]
  44460. 80131da: 681b ldr r3, [r3, #0]
  44461. 80131dc: 60fb str r3, [r7, #12]
  44462. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44463. 80131de: 68fb ldr r3, [r7, #12]
  44464. 80131e0: e853 3f00 ldrex r3, [r3]
  44465. 80131e4: 60bb str r3, [r7, #8]
  44466. return(result);
  44467. 80131e6: 68bb ldr r3, [r7, #8]
  44468. 80131e8: f023 0340 bic.w r3, r3, #64 @ 0x40
  44469. 80131ec: 61fb str r3, [r7, #28]
  44470. 80131ee: 687b ldr r3, [r7, #4]
  44471. 80131f0: 681b ldr r3, [r3, #0]
  44472. 80131f2: 461a mov r2, r3
  44473. 80131f4: 69fb ldr r3, [r7, #28]
  44474. 80131f6: 61bb str r3, [r7, #24]
  44475. 80131f8: 617a str r2, [r7, #20]
  44476. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44477. 80131fa: 6979 ldr r1, [r7, #20]
  44478. 80131fc: 69ba ldr r2, [r7, #24]
  44479. 80131fe: e841 2300 strex r3, r2, [r1]
  44480. 8013202: 613b str r3, [r7, #16]
  44481. return(result);
  44482. 8013204: 693b ldr r3, [r7, #16]
  44483. 8013206: 2b00 cmp r3, #0
  44484. 8013208: d1e6 bne.n 80131d8 <UART_EndTransmit_IT+0x8>
  44485. /* Tx process is ended, restore huart->gState to Ready */
  44486. huart->gState = HAL_UART_STATE_READY;
  44487. 801320a: 687b ldr r3, [r7, #4]
  44488. 801320c: 2220 movs r2, #32
  44489. 801320e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44490. /* Cleat TxISR function pointer */
  44491. huart->TxISR = NULL;
  44492. 8013212: 687b ldr r3, [r7, #4]
  44493. 8013214: 2200 movs r2, #0
  44494. 8013216: 679a str r2, [r3, #120] @ 0x78
  44495. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44496. /*Call registered Tx complete callback*/
  44497. huart->TxCpltCallback(huart);
  44498. #else
  44499. /*Call legacy weak Tx complete callback*/
  44500. HAL_UART_TxCpltCallback(huart);
  44501. 8013218: 6878 ldr r0, [r7, #4]
  44502. 801321a: f7f1 fc8d bl 8004b38 <HAL_UART_TxCpltCallback>
  44503. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44504. }
  44505. 801321e: bf00 nop
  44506. 8013220: 3720 adds r7, #32
  44507. 8013222: 46bd mov sp, r7
  44508. 8013224: bd80 pop {r7, pc}
  44509. ...
  44510. 08013228 <UART_RxISR_8BIT>:
  44511. * @brief RX interrupt handler for 7 or 8 bits data word length .
  44512. * @param huart UART handle.
  44513. * @retval None
  44514. */
  44515. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  44516. {
  44517. 8013228: b580 push {r7, lr}
  44518. 801322a: b09c sub sp, #112 @ 0x70
  44519. 801322c: af00 add r7, sp, #0
  44520. 801322e: 6078 str r0, [r7, #4]
  44521. uint16_t uhMask = huart->Mask;
  44522. 8013230: 687b ldr r3, [r7, #4]
  44523. 8013232: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44524. 8013236: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44525. uint16_t uhdata;
  44526. /* Check that a Rx process is ongoing */
  44527. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44528. 801323a: 687b ldr r3, [r7, #4]
  44529. 801323c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44530. 8013240: 2b22 cmp r3, #34 @ 0x22
  44531. 8013242: f040 80be bne.w 80133c2 <UART_RxISR_8BIT+0x19a>
  44532. {
  44533. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44534. 8013246: 687b ldr r3, [r7, #4]
  44535. 8013248: 681b ldr r3, [r3, #0]
  44536. 801324a: 6a5b ldr r3, [r3, #36] @ 0x24
  44537. 801324c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44538. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  44539. 8013250: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  44540. 8013254: b2d9 uxtb r1, r3
  44541. 8013256: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44542. 801325a: b2da uxtb r2, r3
  44543. 801325c: 687b ldr r3, [r7, #4]
  44544. 801325e: 6d9b ldr r3, [r3, #88] @ 0x58
  44545. 8013260: 400a ands r2, r1
  44546. 8013262: b2d2 uxtb r2, r2
  44547. 8013264: 701a strb r2, [r3, #0]
  44548. huart->pRxBuffPtr++;
  44549. 8013266: 687b ldr r3, [r7, #4]
  44550. 8013268: 6d9b ldr r3, [r3, #88] @ 0x58
  44551. 801326a: 1c5a adds r2, r3, #1
  44552. 801326c: 687b ldr r3, [r7, #4]
  44553. 801326e: 659a str r2, [r3, #88] @ 0x58
  44554. huart->RxXferCount--;
  44555. 8013270: 687b ldr r3, [r7, #4]
  44556. 8013272: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44557. 8013276: b29b uxth r3, r3
  44558. 8013278: 3b01 subs r3, #1
  44559. 801327a: b29a uxth r2, r3
  44560. 801327c: 687b ldr r3, [r7, #4]
  44561. 801327e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44562. if (huart->RxXferCount == 0U)
  44563. 8013282: 687b ldr r3, [r7, #4]
  44564. 8013284: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44565. 8013288: b29b uxth r3, r3
  44566. 801328a: 2b00 cmp r3, #0
  44567. 801328c: f040 80a1 bne.w 80133d2 <UART_RxISR_8BIT+0x1aa>
  44568. {
  44569. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  44570. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44571. 8013290: 687b ldr r3, [r7, #4]
  44572. 8013292: 681b ldr r3, [r3, #0]
  44573. 8013294: 64fb str r3, [r7, #76] @ 0x4c
  44574. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44575. 8013296: 6cfb ldr r3, [r7, #76] @ 0x4c
  44576. 8013298: e853 3f00 ldrex r3, [r3]
  44577. 801329c: 64bb str r3, [r7, #72] @ 0x48
  44578. return(result);
  44579. 801329e: 6cbb ldr r3, [r7, #72] @ 0x48
  44580. 80132a0: f423 7390 bic.w r3, r3, #288 @ 0x120
  44581. 80132a4: 66bb str r3, [r7, #104] @ 0x68
  44582. 80132a6: 687b ldr r3, [r7, #4]
  44583. 80132a8: 681b ldr r3, [r3, #0]
  44584. 80132aa: 461a mov r2, r3
  44585. 80132ac: 6ebb ldr r3, [r7, #104] @ 0x68
  44586. 80132ae: 65bb str r3, [r7, #88] @ 0x58
  44587. 80132b0: 657a str r2, [r7, #84] @ 0x54
  44588. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44589. 80132b2: 6d79 ldr r1, [r7, #84] @ 0x54
  44590. 80132b4: 6dba ldr r2, [r7, #88] @ 0x58
  44591. 80132b6: e841 2300 strex r3, r2, [r1]
  44592. 80132ba: 653b str r3, [r7, #80] @ 0x50
  44593. return(result);
  44594. 80132bc: 6d3b ldr r3, [r7, #80] @ 0x50
  44595. 80132be: 2b00 cmp r3, #0
  44596. 80132c0: d1e6 bne.n 8013290 <UART_RxISR_8BIT+0x68>
  44597. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44598. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44599. 80132c2: 687b ldr r3, [r7, #4]
  44600. 80132c4: 681b ldr r3, [r3, #0]
  44601. 80132c6: 3308 adds r3, #8
  44602. 80132c8: 63bb str r3, [r7, #56] @ 0x38
  44603. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44604. 80132ca: 6bbb ldr r3, [r7, #56] @ 0x38
  44605. 80132cc: e853 3f00 ldrex r3, [r3]
  44606. 80132d0: 637b str r3, [r7, #52] @ 0x34
  44607. return(result);
  44608. 80132d2: 6b7b ldr r3, [r7, #52] @ 0x34
  44609. 80132d4: f023 0301 bic.w r3, r3, #1
  44610. 80132d8: 667b str r3, [r7, #100] @ 0x64
  44611. 80132da: 687b ldr r3, [r7, #4]
  44612. 80132dc: 681b ldr r3, [r3, #0]
  44613. 80132de: 3308 adds r3, #8
  44614. 80132e0: 6e7a ldr r2, [r7, #100] @ 0x64
  44615. 80132e2: 647a str r2, [r7, #68] @ 0x44
  44616. 80132e4: 643b str r3, [r7, #64] @ 0x40
  44617. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44618. 80132e6: 6c39 ldr r1, [r7, #64] @ 0x40
  44619. 80132e8: 6c7a ldr r2, [r7, #68] @ 0x44
  44620. 80132ea: e841 2300 strex r3, r2, [r1]
  44621. 80132ee: 63fb str r3, [r7, #60] @ 0x3c
  44622. return(result);
  44623. 80132f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  44624. 80132f2: 2b00 cmp r3, #0
  44625. 80132f4: d1e5 bne.n 80132c2 <UART_RxISR_8BIT+0x9a>
  44626. /* Rx process is completed, restore huart->RxState to Ready */
  44627. huart->RxState = HAL_UART_STATE_READY;
  44628. 80132f6: 687b ldr r3, [r7, #4]
  44629. 80132f8: 2220 movs r2, #32
  44630. 80132fa: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44631. /* Clear RxISR function pointer */
  44632. huart->RxISR = NULL;
  44633. 80132fe: 687b ldr r3, [r7, #4]
  44634. 8013300: 2200 movs r2, #0
  44635. 8013302: 675a str r2, [r3, #116] @ 0x74
  44636. /* Initialize type of RxEvent to Transfer Complete */
  44637. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44638. 8013304: 687b ldr r3, [r7, #4]
  44639. 8013306: 2200 movs r2, #0
  44640. 8013308: 671a str r2, [r3, #112] @ 0x70
  44641. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44642. 801330a: 687b ldr r3, [r7, #4]
  44643. 801330c: 681b ldr r3, [r3, #0]
  44644. 801330e: 4a33 ldr r2, [pc, #204] @ (80133dc <UART_RxISR_8BIT+0x1b4>)
  44645. 8013310: 4293 cmp r3, r2
  44646. 8013312: d01f beq.n 8013354 <UART_RxISR_8BIT+0x12c>
  44647. {
  44648. /* Check that USART RTOEN bit is set */
  44649. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44650. 8013314: 687b ldr r3, [r7, #4]
  44651. 8013316: 681b ldr r3, [r3, #0]
  44652. 8013318: 685b ldr r3, [r3, #4]
  44653. 801331a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44654. 801331e: 2b00 cmp r3, #0
  44655. 8013320: d018 beq.n 8013354 <UART_RxISR_8BIT+0x12c>
  44656. {
  44657. /* Enable the UART Receiver Timeout Interrupt */
  44658. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44659. 8013322: 687b ldr r3, [r7, #4]
  44660. 8013324: 681b ldr r3, [r3, #0]
  44661. 8013326: 627b str r3, [r7, #36] @ 0x24
  44662. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44663. 8013328: 6a7b ldr r3, [r7, #36] @ 0x24
  44664. 801332a: e853 3f00 ldrex r3, [r3]
  44665. 801332e: 623b str r3, [r7, #32]
  44666. return(result);
  44667. 8013330: 6a3b ldr r3, [r7, #32]
  44668. 8013332: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44669. 8013336: 663b str r3, [r7, #96] @ 0x60
  44670. 8013338: 687b ldr r3, [r7, #4]
  44671. 801333a: 681b ldr r3, [r3, #0]
  44672. 801333c: 461a mov r2, r3
  44673. 801333e: 6e3b ldr r3, [r7, #96] @ 0x60
  44674. 8013340: 633b str r3, [r7, #48] @ 0x30
  44675. 8013342: 62fa str r2, [r7, #44] @ 0x2c
  44676. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44677. 8013344: 6af9 ldr r1, [r7, #44] @ 0x2c
  44678. 8013346: 6b3a ldr r2, [r7, #48] @ 0x30
  44679. 8013348: e841 2300 strex r3, r2, [r1]
  44680. 801334c: 62bb str r3, [r7, #40] @ 0x28
  44681. return(result);
  44682. 801334e: 6abb ldr r3, [r7, #40] @ 0x28
  44683. 8013350: 2b00 cmp r3, #0
  44684. 8013352: d1e6 bne.n 8013322 <UART_RxISR_8BIT+0xfa>
  44685. }
  44686. }
  44687. /* Check current reception Mode :
  44688. If Reception till IDLE event has been selected : */
  44689. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44690. 8013354: 687b ldr r3, [r7, #4]
  44691. 8013356: 6edb ldr r3, [r3, #108] @ 0x6c
  44692. 8013358: 2b01 cmp r3, #1
  44693. 801335a: d12e bne.n 80133ba <UART_RxISR_8BIT+0x192>
  44694. {
  44695. /* Set reception type to Standard */
  44696. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44697. 801335c: 687b ldr r3, [r7, #4]
  44698. 801335e: 2200 movs r2, #0
  44699. 8013360: 66da str r2, [r3, #108] @ 0x6c
  44700. /* Disable IDLE interrupt */
  44701. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44702. 8013362: 687b ldr r3, [r7, #4]
  44703. 8013364: 681b ldr r3, [r3, #0]
  44704. 8013366: 613b str r3, [r7, #16]
  44705. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44706. 8013368: 693b ldr r3, [r7, #16]
  44707. 801336a: e853 3f00 ldrex r3, [r3]
  44708. 801336e: 60fb str r3, [r7, #12]
  44709. return(result);
  44710. 8013370: 68fb ldr r3, [r7, #12]
  44711. 8013372: f023 0310 bic.w r3, r3, #16
  44712. 8013376: 65fb str r3, [r7, #92] @ 0x5c
  44713. 8013378: 687b ldr r3, [r7, #4]
  44714. 801337a: 681b ldr r3, [r3, #0]
  44715. 801337c: 461a mov r2, r3
  44716. 801337e: 6dfb ldr r3, [r7, #92] @ 0x5c
  44717. 8013380: 61fb str r3, [r7, #28]
  44718. 8013382: 61ba str r2, [r7, #24]
  44719. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44720. 8013384: 69b9 ldr r1, [r7, #24]
  44721. 8013386: 69fa ldr r2, [r7, #28]
  44722. 8013388: e841 2300 strex r3, r2, [r1]
  44723. 801338c: 617b str r3, [r7, #20]
  44724. return(result);
  44725. 801338e: 697b ldr r3, [r7, #20]
  44726. 8013390: 2b00 cmp r3, #0
  44727. 8013392: d1e6 bne.n 8013362 <UART_RxISR_8BIT+0x13a>
  44728. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44729. 8013394: 687b ldr r3, [r7, #4]
  44730. 8013396: 681b ldr r3, [r3, #0]
  44731. 8013398: 69db ldr r3, [r3, #28]
  44732. 801339a: f003 0310 and.w r3, r3, #16
  44733. 801339e: 2b10 cmp r3, #16
  44734. 80133a0: d103 bne.n 80133aa <UART_RxISR_8BIT+0x182>
  44735. {
  44736. /* Clear IDLE Flag */
  44737. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44738. 80133a2: 687b ldr r3, [r7, #4]
  44739. 80133a4: 681b ldr r3, [r3, #0]
  44740. 80133a6: 2210 movs r2, #16
  44741. 80133a8: 621a str r2, [r3, #32]
  44742. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44743. /*Call registered Rx Event callback*/
  44744. huart->RxEventCallback(huart, huart->RxXferSize);
  44745. #else
  44746. /*Call legacy weak Rx Event callback*/
  44747. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44748. 80133aa: 687b ldr r3, [r7, #4]
  44749. 80133ac: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44750. 80133b0: 4619 mov r1, r3
  44751. 80133b2: 6878 ldr r0, [r7, #4]
  44752. 80133b4: f7f1 fb96 bl 8004ae4 <HAL_UARTEx_RxEventCallback>
  44753. else
  44754. {
  44755. /* Clear RXNE interrupt flag */
  44756. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44757. }
  44758. }
  44759. 80133b8: e00b b.n 80133d2 <UART_RxISR_8BIT+0x1aa>
  44760. HAL_UART_RxCpltCallback(huart);
  44761. 80133ba: 6878 ldr r0, [r7, #4]
  44762. 80133bc: f7f1 fb88 bl 8004ad0 <HAL_UART_RxCpltCallback>
  44763. }
  44764. 80133c0: e007 b.n 80133d2 <UART_RxISR_8BIT+0x1aa>
  44765. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44766. 80133c2: 687b ldr r3, [r7, #4]
  44767. 80133c4: 681b ldr r3, [r3, #0]
  44768. 80133c6: 699a ldr r2, [r3, #24]
  44769. 80133c8: 687b ldr r3, [r7, #4]
  44770. 80133ca: 681b ldr r3, [r3, #0]
  44771. 80133cc: f042 0208 orr.w r2, r2, #8
  44772. 80133d0: 619a str r2, [r3, #24]
  44773. }
  44774. 80133d2: bf00 nop
  44775. 80133d4: 3770 adds r7, #112 @ 0x70
  44776. 80133d6: 46bd mov sp, r7
  44777. 80133d8: bd80 pop {r7, pc}
  44778. 80133da: bf00 nop
  44779. 80133dc: 58000c00 .word 0x58000c00
  44780. 080133e0 <UART_RxISR_16BIT>:
  44781. * interruptions have been enabled by HAL_UART_Receive_IT()
  44782. * @param huart UART handle.
  44783. * @retval None
  44784. */
  44785. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  44786. {
  44787. 80133e0: b580 push {r7, lr}
  44788. 80133e2: b09c sub sp, #112 @ 0x70
  44789. 80133e4: af00 add r7, sp, #0
  44790. 80133e6: 6078 str r0, [r7, #4]
  44791. uint16_t *tmp;
  44792. uint16_t uhMask = huart->Mask;
  44793. 80133e8: 687b ldr r3, [r7, #4]
  44794. 80133ea: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44795. 80133ee: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44796. uint16_t uhdata;
  44797. /* Check that a Rx process is ongoing */
  44798. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44799. 80133f2: 687b ldr r3, [r7, #4]
  44800. 80133f4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44801. 80133f8: 2b22 cmp r3, #34 @ 0x22
  44802. 80133fa: f040 80be bne.w 801357a <UART_RxISR_16BIT+0x19a>
  44803. {
  44804. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44805. 80133fe: 687b ldr r3, [r7, #4]
  44806. 8013400: 681b ldr r3, [r3, #0]
  44807. 8013402: 6a5b ldr r3, [r3, #36] @ 0x24
  44808. 8013404: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44809. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44810. 8013408: 687b ldr r3, [r7, #4]
  44811. 801340a: 6d9b ldr r3, [r3, #88] @ 0x58
  44812. 801340c: 66bb str r3, [r7, #104] @ 0x68
  44813. *tmp = (uint16_t)(uhdata & uhMask);
  44814. 801340e: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  44815. 8013412: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44816. 8013416: 4013 ands r3, r2
  44817. 8013418: b29a uxth r2, r3
  44818. 801341a: 6ebb ldr r3, [r7, #104] @ 0x68
  44819. 801341c: 801a strh r2, [r3, #0]
  44820. huart->pRxBuffPtr += 2U;
  44821. 801341e: 687b ldr r3, [r7, #4]
  44822. 8013420: 6d9b ldr r3, [r3, #88] @ 0x58
  44823. 8013422: 1c9a adds r2, r3, #2
  44824. 8013424: 687b ldr r3, [r7, #4]
  44825. 8013426: 659a str r2, [r3, #88] @ 0x58
  44826. huart->RxXferCount--;
  44827. 8013428: 687b ldr r3, [r7, #4]
  44828. 801342a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44829. 801342e: b29b uxth r3, r3
  44830. 8013430: 3b01 subs r3, #1
  44831. 8013432: b29a uxth r2, r3
  44832. 8013434: 687b ldr r3, [r7, #4]
  44833. 8013436: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44834. if (huart->RxXferCount == 0U)
  44835. 801343a: 687b ldr r3, [r7, #4]
  44836. 801343c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44837. 8013440: b29b uxth r3, r3
  44838. 8013442: 2b00 cmp r3, #0
  44839. 8013444: f040 80a1 bne.w 801358a <UART_RxISR_16BIT+0x1aa>
  44840. {
  44841. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  44842. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44843. 8013448: 687b ldr r3, [r7, #4]
  44844. 801344a: 681b ldr r3, [r3, #0]
  44845. 801344c: 64bb str r3, [r7, #72] @ 0x48
  44846. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44847. 801344e: 6cbb ldr r3, [r7, #72] @ 0x48
  44848. 8013450: e853 3f00 ldrex r3, [r3]
  44849. 8013454: 647b str r3, [r7, #68] @ 0x44
  44850. return(result);
  44851. 8013456: 6c7b ldr r3, [r7, #68] @ 0x44
  44852. 8013458: f423 7390 bic.w r3, r3, #288 @ 0x120
  44853. 801345c: 667b str r3, [r7, #100] @ 0x64
  44854. 801345e: 687b ldr r3, [r7, #4]
  44855. 8013460: 681b ldr r3, [r3, #0]
  44856. 8013462: 461a mov r2, r3
  44857. 8013464: 6e7b ldr r3, [r7, #100] @ 0x64
  44858. 8013466: 657b str r3, [r7, #84] @ 0x54
  44859. 8013468: 653a str r2, [r7, #80] @ 0x50
  44860. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44861. 801346a: 6d39 ldr r1, [r7, #80] @ 0x50
  44862. 801346c: 6d7a ldr r2, [r7, #84] @ 0x54
  44863. 801346e: e841 2300 strex r3, r2, [r1]
  44864. 8013472: 64fb str r3, [r7, #76] @ 0x4c
  44865. return(result);
  44866. 8013474: 6cfb ldr r3, [r7, #76] @ 0x4c
  44867. 8013476: 2b00 cmp r3, #0
  44868. 8013478: d1e6 bne.n 8013448 <UART_RxISR_16BIT+0x68>
  44869. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44870. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44871. 801347a: 687b ldr r3, [r7, #4]
  44872. 801347c: 681b ldr r3, [r3, #0]
  44873. 801347e: 3308 adds r3, #8
  44874. 8013480: 637b str r3, [r7, #52] @ 0x34
  44875. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44876. 8013482: 6b7b ldr r3, [r7, #52] @ 0x34
  44877. 8013484: e853 3f00 ldrex r3, [r3]
  44878. 8013488: 633b str r3, [r7, #48] @ 0x30
  44879. return(result);
  44880. 801348a: 6b3b ldr r3, [r7, #48] @ 0x30
  44881. 801348c: f023 0301 bic.w r3, r3, #1
  44882. 8013490: 663b str r3, [r7, #96] @ 0x60
  44883. 8013492: 687b ldr r3, [r7, #4]
  44884. 8013494: 681b ldr r3, [r3, #0]
  44885. 8013496: 3308 adds r3, #8
  44886. 8013498: 6e3a ldr r2, [r7, #96] @ 0x60
  44887. 801349a: 643a str r2, [r7, #64] @ 0x40
  44888. 801349c: 63fb str r3, [r7, #60] @ 0x3c
  44889. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44890. 801349e: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44891. 80134a0: 6c3a ldr r2, [r7, #64] @ 0x40
  44892. 80134a2: e841 2300 strex r3, r2, [r1]
  44893. 80134a6: 63bb str r3, [r7, #56] @ 0x38
  44894. return(result);
  44895. 80134a8: 6bbb ldr r3, [r7, #56] @ 0x38
  44896. 80134aa: 2b00 cmp r3, #0
  44897. 80134ac: d1e5 bne.n 801347a <UART_RxISR_16BIT+0x9a>
  44898. /* Rx process is completed, restore huart->RxState to Ready */
  44899. huart->RxState = HAL_UART_STATE_READY;
  44900. 80134ae: 687b ldr r3, [r7, #4]
  44901. 80134b0: 2220 movs r2, #32
  44902. 80134b2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44903. /* Clear RxISR function pointer */
  44904. huart->RxISR = NULL;
  44905. 80134b6: 687b ldr r3, [r7, #4]
  44906. 80134b8: 2200 movs r2, #0
  44907. 80134ba: 675a str r2, [r3, #116] @ 0x74
  44908. /* Initialize type of RxEvent to Transfer Complete */
  44909. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44910. 80134bc: 687b ldr r3, [r7, #4]
  44911. 80134be: 2200 movs r2, #0
  44912. 80134c0: 671a str r2, [r3, #112] @ 0x70
  44913. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44914. 80134c2: 687b ldr r3, [r7, #4]
  44915. 80134c4: 681b ldr r3, [r3, #0]
  44916. 80134c6: 4a33 ldr r2, [pc, #204] @ (8013594 <UART_RxISR_16BIT+0x1b4>)
  44917. 80134c8: 4293 cmp r3, r2
  44918. 80134ca: d01f beq.n 801350c <UART_RxISR_16BIT+0x12c>
  44919. {
  44920. /* Check that USART RTOEN bit is set */
  44921. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44922. 80134cc: 687b ldr r3, [r7, #4]
  44923. 80134ce: 681b ldr r3, [r3, #0]
  44924. 80134d0: 685b ldr r3, [r3, #4]
  44925. 80134d2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44926. 80134d6: 2b00 cmp r3, #0
  44927. 80134d8: d018 beq.n 801350c <UART_RxISR_16BIT+0x12c>
  44928. {
  44929. /* Enable the UART Receiver Timeout Interrupt */
  44930. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44931. 80134da: 687b ldr r3, [r7, #4]
  44932. 80134dc: 681b ldr r3, [r3, #0]
  44933. 80134de: 623b str r3, [r7, #32]
  44934. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44935. 80134e0: 6a3b ldr r3, [r7, #32]
  44936. 80134e2: e853 3f00 ldrex r3, [r3]
  44937. 80134e6: 61fb str r3, [r7, #28]
  44938. return(result);
  44939. 80134e8: 69fb ldr r3, [r7, #28]
  44940. 80134ea: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44941. 80134ee: 65fb str r3, [r7, #92] @ 0x5c
  44942. 80134f0: 687b ldr r3, [r7, #4]
  44943. 80134f2: 681b ldr r3, [r3, #0]
  44944. 80134f4: 461a mov r2, r3
  44945. 80134f6: 6dfb ldr r3, [r7, #92] @ 0x5c
  44946. 80134f8: 62fb str r3, [r7, #44] @ 0x2c
  44947. 80134fa: 62ba str r2, [r7, #40] @ 0x28
  44948. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44949. 80134fc: 6ab9 ldr r1, [r7, #40] @ 0x28
  44950. 80134fe: 6afa ldr r2, [r7, #44] @ 0x2c
  44951. 8013500: e841 2300 strex r3, r2, [r1]
  44952. 8013504: 627b str r3, [r7, #36] @ 0x24
  44953. return(result);
  44954. 8013506: 6a7b ldr r3, [r7, #36] @ 0x24
  44955. 8013508: 2b00 cmp r3, #0
  44956. 801350a: d1e6 bne.n 80134da <UART_RxISR_16BIT+0xfa>
  44957. }
  44958. }
  44959. /* Check current reception Mode :
  44960. If Reception till IDLE event has been selected : */
  44961. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44962. 801350c: 687b ldr r3, [r7, #4]
  44963. 801350e: 6edb ldr r3, [r3, #108] @ 0x6c
  44964. 8013510: 2b01 cmp r3, #1
  44965. 8013512: d12e bne.n 8013572 <UART_RxISR_16BIT+0x192>
  44966. {
  44967. /* Set reception type to Standard */
  44968. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44969. 8013514: 687b ldr r3, [r7, #4]
  44970. 8013516: 2200 movs r2, #0
  44971. 8013518: 66da str r2, [r3, #108] @ 0x6c
  44972. /* Disable IDLE interrupt */
  44973. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44974. 801351a: 687b ldr r3, [r7, #4]
  44975. 801351c: 681b ldr r3, [r3, #0]
  44976. 801351e: 60fb str r3, [r7, #12]
  44977. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44978. 8013520: 68fb ldr r3, [r7, #12]
  44979. 8013522: e853 3f00 ldrex r3, [r3]
  44980. 8013526: 60bb str r3, [r7, #8]
  44981. return(result);
  44982. 8013528: 68bb ldr r3, [r7, #8]
  44983. 801352a: f023 0310 bic.w r3, r3, #16
  44984. 801352e: 65bb str r3, [r7, #88] @ 0x58
  44985. 8013530: 687b ldr r3, [r7, #4]
  44986. 8013532: 681b ldr r3, [r3, #0]
  44987. 8013534: 461a mov r2, r3
  44988. 8013536: 6dbb ldr r3, [r7, #88] @ 0x58
  44989. 8013538: 61bb str r3, [r7, #24]
  44990. 801353a: 617a str r2, [r7, #20]
  44991. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44992. 801353c: 6979 ldr r1, [r7, #20]
  44993. 801353e: 69ba ldr r2, [r7, #24]
  44994. 8013540: e841 2300 strex r3, r2, [r1]
  44995. 8013544: 613b str r3, [r7, #16]
  44996. return(result);
  44997. 8013546: 693b ldr r3, [r7, #16]
  44998. 8013548: 2b00 cmp r3, #0
  44999. 801354a: d1e6 bne.n 801351a <UART_RxISR_16BIT+0x13a>
  45000. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45001. 801354c: 687b ldr r3, [r7, #4]
  45002. 801354e: 681b ldr r3, [r3, #0]
  45003. 8013550: 69db ldr r3, [r3, #28]
  45004. 8013552: f003 0310 and.w r3, r3, #16
  45005. 8013556: 2b10 cmp r3, #16
  45006. 8013558: d103 bne.n 8013562 <UART_RxISR_16BIT+0x182>
  45007. {
  45008. /* Clear IDLE Flag */
  45009. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45010. 801355a: 687b ldr r3, [r7, #4]
  45011. 801355c: 681b ldr r3, [r3, #0]
  45012. 801355e: 2210 movs r2, #16
  45013. 8013560: 621a str r2, [r3, #32]
  45014. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45015. /*Call registered Rx Event callback*/
  45016. huart->RxEventCallback(huart, huart->RxXferSize);
  45017. #else
  45018. /*Call legacy weak Rx Event callback*/
  45019. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45020. 8013562: 687b ldr r3, [r7, #4]
  45021. 8013564: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45022. 8013568: 4619 mov r1, r3
  45023. 801356a: 6878 ldr r0, [r7, #4]
  45024. 801356c: f7f1 faba bl 8004ae4 <HAL_UARTEx_RxEventCallback>
  45025. else
  45026. {
  45027. /* Clear RXNE interrupt flag */
  45028. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45029. }
  45030. }
  45031. 8013570: e00b b.n 801358a <UART_RxISR_16BIT+0x1aa>
  45032. HAL_UART_RxCpltCallback(huart);
  45033. 8013572: 6878 ldr r0, [r7, #4]
  45034. 8013574: f7f1 faac bl 8004ad0 <HAL_UART_RxCpltCallback>
  45035. }
  45036. 8013578: e007 b.n 801358a <UART_RxISR_16BIT+0x1aa>
  45037. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45038. 801357a: 687b ldr r3, [r7, #4]
  45039. 801357c: 681b ldr r3, [r3, #0]
  45040. 801357e: 699a ldr r2, [r3, #24]
  45041. 8013580: 687b ldr r3, [r7, #4]
  45042. 8013582: 681b ldr r3, [r3, #0]
  45043. 8013584: f042 0208 orr.w r2, r2, #8
  45044. 8013588: 619a str r2, [r3, #24]
  45045. }
  45046. 801358a: bf00 nop
  45047. 801358c: 3770 adds r7, #112 @ 0x70
  45048. 801358e: 46bd mov sp, r7
  45049. 8013590: bd80 pop {r7, pc}
  45050. 8013592: bf00 nop
  45051. 8013594: 58000c00 .word 0x58000c00
  45052. 08013598 <UART_RxISR_8BIT_FIFOEN>:
  45053. * interruptions have been enabled by HAL_UART_Receive_IT()
  45054. * @param huart UART handle.
  45055. * @retval None
  45056. */
  45057. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  45058. {
  45059. 8013598: b580 push {r7, lr}
  45060. 801359a: b0ac sub sp, #176 @ 0xb0
  45061. 801359c: af00 add r7, sp, #0
  45062. 801359e: 6078 str r0, [r7, #4]
  45063. uint16_t uhMask = huart->Mask;
  45064. 80135a0: 687b ldr r3, [r7, #4]
  45065. 80135a2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45066. 80135a6: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  45067. uint16_t uhdata;
  45068. uint16_t nb_rx_data;
  45069. uint16_t rxdatacount;
  45070. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45071. 80135aa: 687b ldr r3, [r7, #4]
  45072. 80135ac: 681b ldr r3, [r3, #0]
  45073. 80135ae: 69db ldr r3, [r3, #28]
  45074. 80135b0: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45075. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45076. 80135b4: 687b ldr r3, [r7, #4]
  45077. 80135b6: 681b ldr r3, [r3, #0]
  45078. 80135b8: 681b ldr r3, [r3, #0]
  45079. 80135ba: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  45080. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45081. 80135be: 687b ldr r3, [r7, #4]
  45082. 80135c0: 681b ldr r3, [r3, #0]
  45083. 80135c2: 689b ldr r3, [r3, #8]
  45084. 80135c4: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45085. /* Check that a Rx process is ongoing */
  45086. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45087. 80135c8: 687b ldr r3, [r7, #4]
  45088. 80135ca: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45089. 80135ce: 2b22 cmp r3, #34 @ 0x22
  45090. 80135d0: f040 8180 bne.w 80138d4 <UART_RxISR_8BIT_FIFOEN+0x33c>
  45091. {
  45092. nb_rx_data = huart->NbRxDataToProcess;
  45093. 80135d4: 687b ldr r3, [r7, #4]
  45094. 80135d6: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45095. 80135da: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  45096. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45097. 80135de: e123 b.n 8013828 <UART_RxISR_8BIT_FIFOEN+0x290>
  45098. {
  45099. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45100. 80135e0: 687b ldr r3, [r7, #4]
  45101. 80135e2: 681b ldr r3, [r3, #0]
  45102. 80135e4: 6a5b ldr r3, [r3, #36] @ 0x24
  45103. 80135e6: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  45104. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  45105. 80135ea: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  45106. 80135ee: b2d9 uxtb r1, r3
  45107. 80135f0: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  45108. 80135f4: b2da uxtb r2, r3
  45109. 80135f6: 687b ldr r3, [r7, #4]
  45110. 80135f8: 6d9b ldr r3, [r3, #88] @ 0x58
  45111. 80135fa: 400a ands r2, r1
  45112. 80135fc: b2d2 uxtb r2, r2
  45113. 80135fe: 701a strb r2, [r3, #0]
  45114. huart->pRxBuffPtr++;
  45115. 8013600: 687b ldr r3, [r7, #4]
  45116. 8013602: 6d9b ldr r3, [r3, #88] @ 0x58
  45117. 8013604: 1c5a adds r2, r3, #1
  45118. 8013606: 687b ldr r3, [r7, #4]
  45119. 8013608: 659a str r2, [r3, #88] @ 0x58
  45120. huart->RxXferCount--;
  45121. 801360a: 687b ldr r3, [r7, #4]
  45122. 801360c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45123. 8013610: b29b uxth r3, r3
  45124. 8013612: 3b01 subs r3, #1
  45125. 8013614: b29a uxth r2, r3
  45126. 8013616: 687b ldr r3, [r7, #4]
  45127. 8013618: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45128. isrflags = READ_REG(huart->Instance->ISR);
  45129. 801361c: 687b ldr r3, [r7, #4]
  45130. 801361e: 681b ldr r3, [r3, #0]
  45131. 8013620: 69db ldr r3, [r3, #28]
  45132. 8013622: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45133. /* If some non blocking errors occurred */
  45134. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45135. 8013626: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45136. 801362a: f003 0307 and.w r3, r3, #7
  45137. 801362e: 2b00 cmp r3, #0
  45138. 8013630: d053 beq.n 80136da <UART_RxISR_8BIT_FIFOEN+0x142>
  45139. {
  45140. /* UART parity error interrupt occurred -------------------------------------*/
  45141. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45142. 8013632: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45143. 8013636: f003 0301 and.w r3, r3, #1
  45144. 801363a: 2b00 cmp r3, #0
  45145. 801363c: d011 beq.n 8013662 <UART_RxISR_8BIT_FIFOEN+0xca>
  45146. 801363e: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  45147. 8013642: f403 7380 and.w r3, r3, #256 @ 0x100
  45148. 8013646: 2b00 cmp r3, #0
  45149. 8013648: d00b beq.n 8013662 <UART_RxISR_8BIT_FIFOEN+0xca>
  45150. {
  45151. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45152. 801364a: 687b ldr r3, [r7, #4]
  45153. 801364c: 681b ldr r3, [r3, #0]
  45154. 801364e: 2201 movs r2, #1
  45155. 8013650: 621a str r2, [r3, #32]
  45156. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45157. 8013652: 687b ldr r3, [r7, #4]
  45158. 8013654: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45159. 8013658: f043 0201 orr.w r2, r3, #1
  45160. 801365c: 687b ldr r3, [r7, #4]
  45161. 801365e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45162. }
  45163. /* UART frame error interrupt occurred --------------------------------------*/
  45164. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45165. 8013662: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45166. 8013666: f003 0302 and.w r3, r3, #2
  45167. 801366a: 2b00 cmp r3, #0
  45168. 801366c: d011 beq.n 8013692 <UART_RxISR_8BIT_FIFOEN+0xfa>
  45169. 801366e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45170. 8013672: f003 0301 and.w r3, r3, #1
  45171. 8013676: 2b00 cmp r3, #0
  45172. 8013678: d00b beq.n 8013692 <UART_RxISR_8BIT_FIFOEN+0xfa>
  45173. {
  45174. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45175. 801367a: 687b ldr r3, [r7, #4]
  45176. 801367c: 681b ldr r3, [r3, #0]
  45177. 801367e: 2202 movs r2, #2
  45178. 8013680: 621a str r2, [r3, #32]
  45179. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45180. 8013682: 687b ldr r3, [r7, #4]
  45181. 8013684: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45182. 8013688: f043 0204 orr.w r2, r3, #4
  45183. 801368c: 687b ldr r3, [r7, #4]
  45184. 801368e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45185. }
  45186. /* UART noise error interrupt occurred --------------------------------------*/
  45187. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45188. 8013692: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45189. 8013696: f003 0304 and.w r3, r3, #4
  45190. 801369a: 2b00 cmp r3, #0
  45191. 801369c: d011 beq.n 80136c2 <UART_RxISR_8BIT_FIFOEN+0x12a>
  45192. 801369e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45193. 80136a2: f003 0301 and.w r3, r3, #1
  45194. 80136a6: 2b00 cmp r3, #0
  45195. 80136a8: d00b beq.n 80136c2 <UART_RxISR_8BIT_FIFOEN+0x12a>
  45196. {
  45197. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45198. 80136aa: 687b ldr r3, [r7, #4]
  45199. 80136ac: 681b ldr r3, [r3, #0]
  45200. 80136ae: 2204 movs r2, #4
  45201. 80136b0: 621a str r2, [r3, #32]
  45202. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45203. 80136b2: 687b ldr r3, [r7, #4]
  45204. 80136b4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45205. 80136b8: f043 0202 orr.w r2, r3, #2
  45206. 80136bc: 687b ldr r3, [r7, #4]
  45207. 80136be: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45208. }
  45209. /* Call UART Error Call back function if need be ----------------------------*/
  45210. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45211. 80136c2: 687b ldr r3, [r7, #4]
  45212. 80136c4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45213. 80136c8: 2b00 cmp r3, #0
  45214. 80136ca: d006 beq.n 80136da <UART_RxISR_8BIT_FIFOEN+0x142>
  45215. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45216. /*Call registered error callback*/
  45217. huart->ErrorCallback(huart);
  45218. #else
  45219. /*Call legacy weak error callback*/
  45220. HAL_UART_ErrorCallback(huart);
  45221. 80136cc: 6878 ldr r0, [r7, #4]
  45222. 80136ce: f7fe fb13 bl 8011cf8 <HAL_UART_ErrorCallback>
  45223. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45224. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45225. 80136d2: 687b ldr r3, [r7, #4]
  45226. 80136d4: 2200 movs r2, #0
  45227. 80136d6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45228. }
  45229. }
  45230. if (huart->RxXferCount == 0U)
  45231. 80136da: 687b ldr r3, [r7, #4]
  45232. 80136dc: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45233. 80136e0: b29b uxth r3, r3
  45234. 80136e2: 2b00 cmp r3, #0
  45235. 80136e4: f040 80a0 bne.w 8013828 <UART_RxISR_8BIT_FIFOEN+0x290>
  45236. {
  45237. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45238. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45239. 80136e8: 687b ldr r3, [r7, #4]
  45240. 80136ea: 681b ldr r3, [r3, #0]
  45241. 80136ec: 673b str r3, [r7, #112] @ 0x70
  45242. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45243. 80136ee: 6f3b ldr r3, [r7, #112] @ 0x70
  45244. 80136f0: e853 3f00 ldrex r3, [r3]
  45245. 80136f4: 66fb str r3, [r7, #108] @ 0x6c
  45246. return(result);
  45247. 80136f6: 6efb ldr r3, [r7, #108] @ 0x6c
  45248. 80136f8: f423 7380 bic.w r3, r3, #256 @ 0x100
  45249. 80136fc: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45250. 8013700: 687b ldr r3, [r7, #4]
  45251. 8013702: 681b ldr r3, [r3, #0]
  45252. 8013704: 461a mov r2, r3
  45253. 8013706: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  45254. 801370a: 67fb str r3, [r7, #124] @ 0x7c
  45255. 801370c: 67ba str r2, [r7, #120] @ 0x78
  45256. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45257. 801370e: 6fb9 ldr r1, [r7, #120] @ 0x78
  45258. 8013710: 6ffa ldr r2, [r7, #124] @ 0x7c
  45259. 8013712: e841 2300 strex r3, r2, [r1]
  45260. 8013716: 677b str r3, [r7, #116] @ 0x74
  45261. return(result);
  45262. 8013718: 6f7b ldr r3, [r7, #116] @ 0x74
  45263. 801371a: 2b00 cmp r3, #0
  45264. 801371c: d1e4 bne.n 80136e8 <UART_RxISR_8BIT_FIFOEN+0x150>
  45265. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45266. and RX FIFO Threshold interrupt */
  45267. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45268. 801371e: 687b ldr r3, [r7, #4]
  45269. 8013720: 681b ldr r3, [r3, #0]
  45270. 8013722: 3308 adds r3, #8
  45271. 8013724: 65fb str r3, [r7, #92] @ 0x5c
  45272. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45273. 8013726: 6dfb ldr r3, [r7, #92] @ 0x5c
  45274. 8013728: e853 3f00 ldrex r3, [r3]
  45275. 801372c: 65bb str r3, [r7, #88] @ 0x58
  45276. return(result);
  45277. 801372e: 6dba ldr r2, [r7, #88] @ 0x58
  45278. 8013730: 4b6e ldr r3, [pc, #440] @ (80138ec <UART_RxISR_8BIT_FIFOEN+0x354>)
  45279. 8013732: 4013 ands r3, r2
  45280. 8013734: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45281. 8013738: 687b ldr r3, [r7, #4]
  45282. 801373a: 681b ldr r3, [r3, #0]
  45283. 801373c: 3308 adds r3, #8
  45284. 801373e: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  45285. 8013742: 66ba str r2, [r7, #104] @ 0x68
  45286. 8013744: 667b str r3, [r7, #100] @ 0x64
  45287. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45288. 8013746: 6e79 ldr r1, [r7, #100] @ 0x64
  45289. 8013748: 6eba ldr r2, [r7, #104] @ 0x68
  45290. 801374a: e841 2300 strex r3, r2, [r1]
  45291. 801374e: 663b str r3, [r7, #96] @ 0x60
  45292. return(result);
  45293. 8013750: 6e3b ldr r3, [r7, #96] @ 0x60
  45294. 8013752: 2b00 cmp r3, #0
  45295. 8013754: d1e3 bne.n 801371e <UART_RxISR_8BIT_FIFOEN+0x186>
  45296. /* Rx process is completed, restore huart->RxState to Ready */
  45297. huart->RxState = HAL_UART_STATE_READY;
  45298. 8013756: 687b ldr r3, [r7, #4]
  45299. 8013758: 2220 movs r2, #32
  45300. 801375a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45301. /* Clear RxISR function pointer */
  45302. huart->RxISR = NULL;
  45303. 801375e: 687b ldr r3, [r7, #4]
  45304. 8013760: 2200 movs r2, #0
  45305. 8013762: 675a str r2, [r3, #116] @ 0x74
  45306. /* Initialize type of RxEvent to Transfer Complete */
  45307. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45308. 8013764: 687b ldr r3, [r7, #4]
  45309. 8013766: 2200 movs r2, #0
  45310. 8013768: 671a str r2, [r3, #112] @ 0x70
  45311. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45312. 801376a: 687b ldr r3, [r7, #4]
  45313. 801376c: 681b ldr r3, [r3, #0]
  45314. 801376e: 4a60 ldr r2, [pc, #384] @ (80138f0 <UART_RxISR_8BIT_FIFOEN+0x358>)
  45315. 8013770: 4293 cmp r3, r2
  45316. 8013772: d021 beq.n 80137b8 <UART_RxISR_8BIT_FIFOEN+0x220>
  45317. {
  45318. /* Check that USART RTOEN bit is set */
  45319. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45320. 8013774: 687b ldr r3, [r7, #4]
  45321. 8013776: 681b ldr r3, [r3, #0]
  45322. 8013778: 685b ldr r3, [r3, #4]
  45323. 801377a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45324. 801377e: 2b00 cmp r3, #0
  45325. 8013780: d01a beq.n 80137b8 <UART_RxISR_8BIT_FIFOEN+0x220>
  45326. {
  45327. /* Enable the UART Receiver Timeout Interrupt */
  45328. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45329. 8013782: 687b ldr r3, [r7, #4]
  45330. 8013784: 681b ldr r3, [r3, #0]
  45331. 8013786: 64bb str r3, [r7, #72] @ 0x48
  45332. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45333. 8013788: 6cbb ldr r3, [r7, #72] @ 0x48
  45334. 801378a: e853 3f00 ldrex r3, [r3]
  45335. 801378e: 647b str r3, [r7, #68] @ 0x44
  45336. return(result);
  45337. 8013790: 6c7b ldr r3, [r7, #68] @ 0x44
  45338. 8013792: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45339. 8013796: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45340. 801379a: 687b ldr r3, [r7, #4]
  45341. 801379c: 681b ldr r3, [r3, #0]
  45342. 801379e: 461a mov r2, r3
  45343. 80137a0: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45344. 80137a4: 657b str r3, [r7, #84] @ 0x54
  45345. 80137a6: 653a str r2, [r7, #80] @ 0x50
  45346. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45347. 80137a8: 6d39 ldr r1, [r7, #80] @ 0x50
  45348. 80137aa: 6d7a ldr r2, [r7, #84] @ 0x54
  45349. 80137ac: e841 2300 strex r3, r2, [r1]
  45350. 80137b0: 64fb str r3, [r7, #76] @ 0x4c
  45351. return(result);
  45352. 80137b2: 6cfb ldr r3, [r7, #76] @ 0x4c
  45353. 80137b4: 2b00 cmp r3, #0
  45354. 80137b6: d1e4 bne.n 8013782 <UART_RxISR_8BIT_FIFOEN+0x1ea>
  45355. }
  45356. }
  45357. /* Check current reception Mode :
  45358. If Reception till IDLE event has been selected : */
  45359. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45360. 80137b8: 687b ldr r3, [r7, #4]
  45361. 80137ba: 6edb ldr r3, [r3, #108] @ 0x6c
  45362. 80137bc: 2b01 cmp r3, #1
  45363. 80137be: d130 bne.n 8013822 <UART_RxISR_8BIT_FIFOEN+0x28a>
  45364. {
  45365. /* Set reception type to Standard */
  45366. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45367. 80137c0: 687b ldr r3, [r7, #4]
  45368. 80137c2: 2200 movs r2, #0
  45369. 80137c4: 66da str r2, [r3, #108] @ 0x6c
  45370. /* Disable IDLE interrupt */
  45371. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45372. 80137c6: 687b ldr r3, [r7, #4]
  45373. 80137c8: 681b ldr r3, [r3, #0]
  45374. 80137ca: 637b str r3, [r7, #52] @ 0x34
  45375. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45376. 80137cc: 6b7b ldr r3, [r7, #52] @ 0x34
  45377. 80137ce: e853 3f00 ldrex r3, [r3]
  45378. 80137d2: 633b str r3, [r7, #48] @ 0x30
  45379. return(result);
  45380. 80137d4: 6b3b ldr r3, [r7, #48] @ 0x30
  45381. 80137d6: f023 0310 bic.w r3, r3, #16
  45382. 80137da: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  45383. 80137de: 687b ldr r3, [r7, #4]
  45384. 80137e0: 681b ldr r3, [r3, #0]
  45385. 80137e2: 461a mov r2, r3
  45386. 80137e4: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  45387. 80137e8: 643b str r3, [r7, #64] @ 0x40
  45388. 80137ea: 63fa str r2, [r7, #60] @ 0x3c
  45389. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45390. 80137ec: 6bf9 ldr r1, [r7, #60] @ 0x3c
  45391. 80137ee: 6c3a ldr r2, [r7, #64] @ 0x40
  45392. 80137f0: e841 2300 strex r3, r2, [r1]
  45393. 80137f4: 63bb str r3, [r7, #56] @ 0x38
  45394. return(result);
  45395. 80137f6: 6bbb ldr r3, [r7, #56] @ 0x38
  45396. 80137f8: 2b00 cmp r3, #0
  45397. 80137fa: d1e4 bne.n 80137c6 <UART_RxISR_8BIT_FIFOEN+0x22e>
  45398. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45399. 80137fc: 687b ldr r3, [r7, #4]
  45400. 80137fe: 681b ldr r3, [r3, #0]
  45401. 8013800: 69db ldr r3, [r3, #28]
  45402. 8013802: f003 0310 and.w r3, r3, #16
  45403. 8013806: 2b10 cmp r3, #16
  45404. 8013808: d103 bne.n 8013812 <UART_RxISR_8BIT_FIFOEN+0x27a>
  45405. {
  45406. /* Clear IDLE Flag */
  45407. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45408. 801380a: 687b ldr r3, [r7, #4]
  45409. 801380c: 681b ldr r3, [r3, #0]
  45410. 801380e: 2210 movs r2, #16
  45411. 8013810: 621a str r2, [r3, #32]
  45412. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45413. /*Call registered Rx Event callback*/
  45414. huart->RxEventCallback(huart, huart->RxXferSize);
  45415. #else
  45416. /*Call legacy weak Rx Event callback*/
  45417. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45418. 8013812: 687b ldr r3, [r7, #4]
  45419. 8013814: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45420. 8013818: 4619 mov r1, r3
  45421. 801381a: 6878 ldr r0, [r7, #4]
  45422. 801381c: f7f1 f962 bl 8004ae4 <HAL_UARTEx_RxEventCallback>
  45423. 8013820: e002 b.n 8013828 <UART_RxISR_8BIT_FIFOEN+0x290>
  45424. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45425. /*Call registered Rx complete callback*/
  45426. huart->RxCpltCallback(huart);
  45427. #else
  45428. /*Call legacy weak Rx complete callback*/
  45429. HAL_UART_RxCpltCallback(huart);
  45430. 8013822: 6878 ldr r0, [r7, #4]
  45431. 8013824: f7f1 f954 bl 8004ad0 <HAL_UART_RxCpltCallback>
  45432. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45433. 8013828: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  45434. 801382c: 2b00 cmp r3, #0
  45435. 801382e: d006 beq.n 801383e <UART_RxISR_8BIT_FIFOEN+0x2a6>
  45436. 8013830: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45437. 8013834: f003 0320 and.w r3, r3, #32
  45438. 8013838: 2b00 cmp r3, #0
  45439. 801383a: f47f aed1 bne.w 80135e0 <UART_RxISR_8BIT_FIFOEN+0x48>
  45440. /* When remaining number of bytes to receive is less than the RX FIFO
  45441. threshold, next incoming frames are processed as if FIFO mode was
  45442. disabled (i.e. one interrupt per received frame).
  45443. */
  45444. rxdatacount = huart->RxXferCount;
  45445. 801383e: 687b ldr r3, [r7, #4]
  45446. 8013840: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45447. 8013844: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  45448. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45449. 8013848: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  45450. 801384c: 2b00 cmp r3, #0
  45451. 801384e: d049 beq.n 80138e4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  45452. 8013850: 687b ldr r3, [r7, #4]
  45453. 8013852: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45454. 8013856: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  45455. 801385a: 429a cmp r2, r3
  45456. 801385c: d242 bcs.n 80138e4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  45457. {
  45458. /* Disable the UART RXFT interrupt*/
  45459. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45460. 801385e: 687b ldr r3, [r7, #4]
  45461. 8013860: 681b ldr r3, [r3, #0]
  45462. 8013862: 3308 adds r3, #8
  45463. 8013864: 623b str r3, [r7, #32]
  45464. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45465. 8013866: 6a3b ldr r3, [r7, #32]
  45466. 8013868: e853 3f00 ldrex r3, [r3]
  45467. 801386c: 61fb str r3, [r7, #28]
  45468. return(result);
  45469. 801386e: 69fb ldr r3, [r7, #28]
  45470. 8013870: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45471. 8013874: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45472. 8013878: 687b ldr r3, [r7, #4]
  45473. 801387a: 681b ldr r3, [r3, #0]
  45474. 801387c: 3308 adds r3, #8
  45475. 801387e: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  45476. 8013882: 62fa str r2, [r7, #44] @ 0x2c
  45477. 8013884: 62bb str r3, [r7, #40] @ 0x28
  45478. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45479. 8013886: 6ab9 ldr r1, [r7, #40] @ 0x28
  45480. 8013888: 6afa ldr r2, [r7, #44] @ 0x2c
  45481. 801388a: e841 2300 strex r3, r2, [r1]
  45482. 801388e: 627b str r3, [r7, #36] @ 0x24
  45483. return(result);
  45484. 8013890: 6a7b ldr r3, [r7, #36] @ 0x24
  45485. 8013892: 2b00 cmp r3, #0
  45486. 8013894: d1e3 bne.n 801385e <UART_RxISR_8BIT_FIFOEN+0x2c6>
  45487. /* Update the RxISR function pointer */
  45488. huart->RxISR = UART_RxISR_8BIT;
  45489. 8013896: 687b ldr r3, [r7, #4]
  45490. 8013898: 4a16 ldr r2, [pc, #88] @ (80138f4 <UART_RxISR_8BIT_FIFOEN+0x35c>)
  45491. 801389a: 675a str r2, [r3, #116] @ 0x74
  45492. /* Enable the UART Data Register Not Empty interrupt */
  45493. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45494. 801389c: 687b ldr r3, [r7, #4]
  45495. 801389e: 681b ldr r3, [r3, #0]
  45496. 80138a0: 60fb str r3, [r7, #12]
  45497. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45498. 80138a2: 68fb ldr r3, [r7, #12]
  45499. 80138a4: e853 3f00 ldrex r3, [r3]
  45500. 80138a8: 60bb str r3, [r7, #8]
  45501. return(result);
  45502. 80138aa: 68bb ldr r3, [r7, #8]
  45503. 80138ac: f043 0320 orr.w r3, r3, #32
  45504. 80138b0: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45505. 80138b4: 687b ldr r3, [r7, #4]
  45506. 80138b6: 681b ldr r3, [r3, #0]
  45507. 80138b8: 461a mov r2, r3
  45508. 80138ba: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  45509. 80138be: 61bb str r3, [r7, #24]
  45510. 80138c0: 617a str r2, [r7, #20]
  45511. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45512. 80138c2: 6979 ldr r1, [r7, #20]
  45513. 80138c4: 69ba ldr r2, [r7, #24]
  45514. 80138c6: e841 2300 strex r3, r2, [r1]
  45515. 80138ca: 613b str r3, [r7, #16]
  45516. return(result);
  45517. 80138cc: 693b ldr r3, [r7, #16]
  45518. 80138ce: 2b00 cmp r3, #0
  45519. 80138d0: d1e4 bne.n 801389c <UART_RxISR_8BIT_FIFOEN+0x304>
  45520. else
  45521. {
  45522. /* Clear RXNE interrupt flag */
  45523. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45524. }
  45525. }
  45526. 80138d2: e007 b.n 80138e4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  45527. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45528. 80138d4: 687b ldr r3, [r7, #4]
  45529. 80138d6: 681b ldr r3, [r3, #0]
  45530. 80138d8: 699a ldr r2, [r3, #24]
  45531. 80138da: 687b ldr r3, [r7, #4]
  45532. 80138dc: 681b ldr r3, [r3, #0]
  45533. 80138de: f042 0208 orr.w r2, r2, #8
  45534. 80138e2: 619a str r2, [r3, #24]
  45535. }
  45536. 80138e4: bf00 nop
  45537. 80138e6: 37b0 adds r7, #176 @ 0xb0
  45538. 80138e8: 46bd mov sp, r7
  45539. 80138ea: bd80 pop {r7, pc}
  45540. 80138ec: effffffe .word 0xeffffffe
  45541. 80138f0: 58000c00 .word 0x58000c00
  45542. 80138f4: 08013229 .word 0x08013229
  45543. 080138f8 <UART_RxISR_16BIT_FIFOEN>:
  45544. * interruptions have been enabled by HAL_UART_Receive_IT()
  45545. * @param huart UART handle.
  45546. * @retval None
  45547. */
  45548. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  45549. {
  45550. 80138f8: b580 push {r7, lr}
  45551. 80138fa: b0ae sub sp, #184 @ 0xb8
  45552. 80138fc: af00 add r7, sp, #0
  45553. 80138fe: 6078 str r0, [r7, #4]
  45554. uint16_t *tmp;
  45555. uint16_t uhMask = huart->Mask;
  45556. 8013900: 687b ldr r3, [r7, #4]
  45557. 8013902: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45558. 8013906: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  45559. uint16_t uhdata;
  45560. uint16_t nb_rx_data;
  45561. uint16_t rxdatacount;
  45562. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45563. 801390a: 687b ldr r3, [r7, #4]
  45564. 801390c: 681b ldr r3, [r3, #0]
  45565. 801390e: 69db ldr r3, [r3, #28]
  45566. 8013910: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45567. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45568. 8013914: 687b ldr r3, [r7, #4]
  45569. 8013916: 681b ldr r3, [r3, #0]
  45570. 8013918: 681b ldr r3, [r3, #0]
  45571. 801391a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45572. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45573. 801391e: 687b ldr r3, [r7, #4]
  45574. 8013920: 681b ldr r3, [r3, #0]
  45575. 8013922: 689b ldr r3, [r3, #8]
  45576. 8013924: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  45577. /* Check that a Rx process is ongoing */
  45578. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45579. 8013928: 687b ldr r3, [r7, #4]
  45580. 801392a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45581. 801392e: 2b22 cmp r3, #34 @ 0x22
  45582. 8013930: f040 8184 bne.w 8013c3c <UART_RxISR_16BIT_FIFOEN+0x344>
  45583. {
  45584. nb_rx_data = huart->NbRxDataToProcess;
  45585. 8013934: 687b ldr r3, [r7, #4]
  45586. 8013936: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45587. 801393a: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  45588. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45589. 801393e: e127 b.n 8013b90 <UART_RxISR_16BIT_FIFOEN+0x298>
  45590. {
  45591. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45592. 8013940: 687b ldr r3, [r7, #4]
  45593. 8013942: 681b ldr r3, [r3, #0]
  45594. 8013944: 6a5b ldr r3, [r3, #36] @ 0x24
  45595. 8013946: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  45596. tmp = (uint16_t *) huart->pRxBuffPtr ;
  45597. 801394a: 687b ldr r3, [r7, #4]
  45598. 801394c: 6d9b ldr r3, [r3, #88] @ 0x58
  45599. 801394e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45600. *tmp = (uint16_t)(uhdata & uhMask);
  45601. 8013952: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  45602. 8013956: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  45603. 801395a: 4013 ands r3, r2
  45604. 801395c: b29a uxth r2, r3
  45605. 801395e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45606. 8013962: 801a strh r2, [r3, #0]
  45607. huart->pRxBuffPtr += 2U;
  45608. 8013964: 687b ldr r3, [r7, #4]
  45609. 8013966: 6d9b ldr r3, [r3, #88] @ 0x58
  45610. 8013968: 1c9a adds r2, r3, #2
  45611. 801396a: 687b ldr r3, [r7, #4]
  45612. 801396c: 659a str r2, [r3, #88] @ 0x58
  45613. huart->RxXferCount--;
  45614. 801396e: 687b ldr r3, [r7, #4]
  45615. 8013970: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45616. 8013974: b29b uxth r3, r3
  45617. 8013976: 3b01 subs r3, #1
  45618. 8013978: b29a uxth r2, r3
  45619. 801397a: 687b ldr r3, [r7, #4]
  45620. 801397c: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45621. isrflags = READ_REG(huart->Instance->ISR);
  45622. 8013980: 687b ldr r3, [r7, #4]
  45623. 8013982: 681b ldr r3, [r3, #0]
  45624. 8013984: 69db ldr r3, [r3, #28]
  45625. 8013986: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45626. /* If some non blocking errors occurred */
  45627. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45628. 801398a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45629. 801398e: f003 0307 and.w r3, r3, #7
  45630. 8013992: 2b00 cmp r3, #0
  45631. 8013994: d053 beq.n 8013a3e <UART_RxISR_16BIT_FIFOEN+0x146>
  45632. {
  45633. /* UART parity error interrupt occurred -------------------------------------*/
  45634. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45635. 8013996: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45636. 801399a: f003 0301 and.w r3, r3, #1
  45637. 801399e: 2b00 cmp r3, #0
  45638. 80139a0: d011 beq.n 80139c6 <UART_RxISR_16BIT_FIFOEN+0xce>
  45639. 80139a2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45640. 80139a6: f403 7380 and.w r3, r3, #256 @ 0x100
  45641. 80139aa: 2b00 cmp r3, #0
  45642. 80139ac: d00b beq.n 80139c6 <UART_RxISR_16BIT_FIFOEN+0xce>
  45643. {
  45644. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45645. 80139ae: 687b ldr r3, [r7, #4]
  45646. 80139b0: 681b ldr r3, [r3, #0]
  45647. 80139b2: 2201 movs r2, #1
  45648. 80139b4: 621a str r2, [r3, #32]
  45649. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45650. 80139b6: 687b ldr r3, [r7, #4]
  45651. 80139b8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45652. 80139bc: f043 0201 orr.w r2, r3, #1
  45653. 80139c0: 687b ldr r3, [r7, #4]
  45654. 80139c2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45655. }
  45656. /* UART frame error interrupt occurred --------------------------------------*/
  45657. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45658. 80139c6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45659. 80139ca: f003 0302 and.w r3, r3, #2
  45660. 80139ce: 2b00 cmp r3, #0
  45661. 80139d0: d011 beq.n 80139f6 <UART_RxISR_16BIT_FIFOEN+0xfe>
  45662. 80139d2: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45663. 80139d6: f003 0301 and.w r3, r3, #1
  45664. 80139da: 2b00 cmp r3, #0
  45665. 80139dc: d00b beq.n 80139f6 <UART_RxISR_16BIT_FIFOEN+0xfe>
  45666. {
  45667. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45668. 80139de: 687b ldr r3, [r7, #4]
  45669. 80139e0: 681b ldr r3, [r3, #0]
  45670. 80139e2: 2202 movs r2, #2
  45671. 80139e4: 621a str r2, [r3, #32]
  45672. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45673. 80139e6: 687b ldr r3, [r7, #4]
  45674. 80139e8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45675. 80139ec: f043 0204 orr.w r2, r3, #4
  45676. 80139f0: 687b ldr r3, [r7, #4]
  45677. 80139f2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45678. }
  45679. /* UART noise error interrupt occurred --------------------------------------*/
  45680. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45681. 80139f6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45682. 80139fa: f003 0304 and.w r3, r3, #4
  45683. 80139fe: 2b00 cmp r3, #0
  45684. 8013a00: d011 beq.n 8013a26 <UART_RxISR_16BIT_FIFOEN+0x12e>
  45685. 8013a02: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45686. 8013a06: f003 0301 and.w r3, r3, #1
  45687. 8013a0a: 2b00 cmp r3, #0
  45688. 8013a0c: d00b beq.n 8013a26 <UART_RxISR_16BIT_FIFOEN+0x12e>
  45689. {
  45690. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45691. 8013a0e: 687b ldr r3, [r7, #4]
  45692. 8013a10: 681b ldr r3, [r3, #0]
  45693. 8013a12: 2204 movs r2, #4
  45694. 8013a14: 621a str r2, [r3, #32]
  45695. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45696. 8013a16: 687b ldr r3, [r7, #4]
  45697. 8013a18: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45698. 8013a1c: f043 0202 orr.w r2, r3, #2
  45699. 8013a20: 687b ldr r3, [r7, #4]
  45700. 8013a22: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45701. }
  45702. /* Call UART Error Call back function if need be ----------------------------*/
  45703. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45704. 8013a26: 687b ldr r3, [r7, #4]
  45705. 8013a28: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45706. 8013a2c: 2b00 cmp r3, #0
  45707. 8013a2e: d006 beq.n 8013a3e <UART_RxISR_16BIT_FIFOEN+0x146>
  45708. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45709. /*Call registered error callback*/
  45710. huart->ErrorCallback(huart);
  45711. #else
  45712. /*Call legacy weak error callback*/
  45713. HAL_UART_ErrorCallback(huart);
  45714. 8013a30: 6878 ldr r0, [r7, #4]
  45715. 8013a32: f7fe f961 bl 8011cf8 <HAL_UART_ErrorCallback>
  45716. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45717. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45718. 8013a36: 687b ldr r3, [r7, #4]
  45719. 8013a38: 2200 movs r2, #0
  45720. 8013a3a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45721. }
  45722. }
  45723. if (huart->RxXferCount == 0U)
  45724. 8013a3e: 687b ldr r3, [r7, #4]
  45725. 8013a40: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45726. 8013a44: b29b uxth r3, r3
  45727. 8013a46: 2b00 cmp r3, #0
  45728. 8013a48: f040 80a2 bne.w 8013b90 <UART_RxISR_16BIT_FIFOEN+0x298>
  45729. {
  45730. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45731. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45732. 8013a4c: 687b ldr r3, [r7, #4]
  45733. 8013a4e: 681b ldr r3, [r3, #0]
  45734. 8013a50: 677b str r3, [r7, #116] @ 0x74
  45735. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45736. 8013a52: 6f7b ldr r3, [r7, #116] @ 0x74
  45737. 8013a54: e853 3f00 ldrex r3, [r3]
  45738. 8013a58: 673b str r3, [r7, #112] @ 0x70
  45739. return(result);
  45740. 8013a5a: 6f3b ldr r3, [r7, #112] @ 0x70
  45741. 8013a5c: f423 7380 bic.w r3, r3, #256 @ 0x100
  45742. 8013a60: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  45743. 8013a64: 687b ldr r3, [r7, #4]
  45744. 8013a66: 681b ldr r3, [r3, #0]
  45745. 8013a68: 461a mov r2, r3
  45746. 8013a6a: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  45747. 8013a6e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45748. 8013a72: 67fa str r2, [r7, #124] @ 0x7c
  45749. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45750. 8013a74: 6ff9 ldr r1, [r7, #124] @ 0x7c
  45751. 8013a76: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  45752. 8013a7a: e841 2300 strex r3, r2, [r1]
  45753. 8013a7e: 67bb str r3, [r7, #120] @ 0x78
  45754. return(result);
  45755. 8013a80: 6fbb ldr r3, [r7, #120] @ 0x78
  45756. 8013a82: 2b00 cmp r3, #0
  45757. 8013a84: d1e2 bne.n 8013a4c <UART_RxISR_16BIT_FIFOEN+0x154>
  45758. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45759. and RX FIFO Threshold interrupt */
  45760. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45761. 8013a86: 687b ldr r3, [r7, #4]
  45762. 8013a88: 681b ldr r3, [r3, #0]
  45763. 8013a8a: 3308 adds r3, #8
  45764. 8013a8c: 663b str r3, [r7, #96] @ 0x60
  45765. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45766. 8013a8e: 6e3b ldr r3, [r7, #96] @ 0x60
  45767. 8013a90: e853 3f00 ldrex r3, [r3]
  45768. 8013a94: 65fb str r3, [r7, #92] @ 0x5c
  45769. return(result);
  45770. 8013a96: 6dfa ldr r2, [r7, #92] @ 0x5c
  45771. 8013a98: 4b6e ldr r3, [pc, #440] @ (8013c54 <UART_RxISR_16BIT_FIFOEN+0x35c>)
  45772. 8013a9a: 4013 ands r3, r2
  45773. 8013a9c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45774. 8013aa0: 687b ldr r3, [r7, #4]
  45775. 8013aa2: 681b ldr r3, [r3, #0]
  45776. 8013aa4: 3308 adds r3, #8
  45777. 8013aa6: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  45778. 8013aaa: 66fa str r2, [r7, #108] @ 0x6c
  45779. 8013aac: 66bb str r3, [r7, #104] @ 0x68
  45780. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45781. 8013aae: 6eb9 ldr r1, [r7, #104] @ 0x68
  45782. 8013ab0: 6efa ldr r2, [r7, #108] @ 0x6c
  45783. 8013ab2: e841 2300 strex r3, r2, [r1]
  45784. 8013ab6: 667b str r3, [r7, #100] @ 0x64
  45785. return(result);
  45786. 8013ab8: 6e7b ldr r3, [r7, #100] @ 0x64
  45787. 8013aba: 2b00 cmp r3, #0
  45788. 8013abc: d1e3 bne.n 8013a86 <UART_RxISR_16BIT_FIFOEN+0x18e>
  45789. /* Rx process is completed, restore huart->RxState to Ready */
  45790. huart->RxState = HAL_UART_STATE_READY;
  45791. 8013abe: 687b ldr r3, [r7, #4]
  45792. 8013ac0: 2220 movs r2, #32
  45793. 8013ac2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45794. /* Clear RxISR function pointer */
  45795. huart->RxISR = NULL;
  45796. 8013ac6: 687b ldr r3, [r7, #4]
  45797. 8013ac8: 2200 movs r2, #0
  45798. 8013aca: 675a str r2, [r3, #116] @ 0x74
  45799. /* Initialize type of RxEvent to Transfer Complete */
  45800. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45801. 8013acc: 687b ldr r3, [r7, #4]
  45802. 8013ace: 2200 movs r2, #0
  45803. 8013ad0: 671a str r2, [r3, #112] @ 0x70
  45804. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45805. 8013ad2: 687b ldr r3, [r7, #4]
  45806. 8013ad4: 681b ldr r3, [r3, #0]
  45807. 8013ad6: 4a60 ldr r2, [pc, #384] @ (8013c58 <UART_RxISR_16BIT_FIFOEN+0x360>)
  45808. 8013ad8: 4293 cmp r3, r2
  45809. 8013ada: d021 beq.n 8013b20 <UART_RxISR_16BIT_FIFOEN+0x228>
  45810. {
  45811. /* Check that USART RTOEN bit is set */
  45812. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45813. 8013adc: 687b ldr r3, [r7, #4]
  45814. 8013ade: 681b ldr r3, [r3, #0]
  45815. 8013ae0: 685b ldr r3, [r3, #4]
  45816. 8013ae2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45817. 8013ae6: 2b00 cmp r3, #0
  45818. 8013ae8: d01a beq.n 8013b20 <UART_RxISR_16BIT_FIFOEN+0x228>
  45819. {
  45820. /* Enable the UART Receiver Timeout Interrupt */
  45821. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45822. 8013aea: 687b ldr r3, [r7, #4]
  45823. 8013aec: 681b ldr r3, [r3, #0]
  45824. 8013aee: 64fb str r3, [r7, #76] @ 0x4c
  45825. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45826. 8013af0: 6cfb ldr r3, [r7, #76] @ 0x4c
  45827. 8013af2: e853 3f00 ldrex r3, [r3]
  45828. 8013af6: 64bb str r3, [r7, #72] @ 0x48
  45829. return(result);
  45830. 8013af8: 6cbb ldr r3, [r7, #72] @ 0x48
  45831. 8013afa: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45832. 8013afe: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45833. 8013b02: 687b ldr r3, [r7, #4]
  45834. 8013b04: 681b ldr r3, [r3, #0]
  45835. 8013b06: 461a mov r2, r3
  45836. 8013b08: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  45837. 8013b0c: 65bb str r3, [r7, #88] @ 0x58
  45838. 8013b0e: 657a str r2, [r7, #84] @ 0x54
  45839. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45840. 8013b10: 6d79 ldr r1, [r7, #84] @ 0x54
  45841. 8013b12: 6dba ldr r2, [r7, #88] @ 0x58
  45842. 8013b14: e841 2300 strex r3, r2, [r1]
  45843. 8013b18: 653b str r3, [r7, #80] @ 0x50
  45844. return(result);
  45845. 8013b1a: 6d3b ldr r3, [r7, #80] @ 0x50
  45846. 8013b1c: 2b00 cmp r3, #0
  45847. 8013b1e: d1e4 bne.n 8013aea <UART_RxISR_16BIT_FIFOEN+0x1f2>
  45848. }
  45849. }
  45850. /* Check current reception Mode :
  45851. If Reception till IDLE event has been selected : */
  45852. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45853. 8013b20: 687b ldr r3, [r7, #4]
  45854. 8013b22: 6edb ldr r3, [r3, #108] @ 0x6c
  45855. 8013b24: 2b01 cmp r3, #1
  45856. 8013b26: d130 bne.n 8013b8a <UART_RxISR_16BIT_FIFOEN+0x292>
  45857. {
  45858. /* Set reception type to Standard */
  45859. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45860. 8013b28: 687b ldr r3, [r7, #4]
  45861. 8013b2a: 2200 movs r2, #0
  45862. 8013b2c: 66da str r2, [r3, #108] @ 0x6c
  45863. /* Disable IDLE interrupt */
  45864. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45865. 8013b2e: 687b ldr r3, [r7, #4]
  45866. 8013b30: 681b ldr r3, [r3, #0]
  45867. 8013b32: 63bb str r3, [r7, #56] @ 0x38
  45868. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45869. 8013b34: 6bbb ldr r3, [r7, #56] @ 0x38
  45870. 8013b36: e853 3f00 ldrex r3, [r3]
  45871. 8013b3a: 637b str r3, [r7, #52] @ 0x34
  45872. return(result);
  45873. 8013b3c: 6b7b ldr r3, [r7, #52] @ 0x34
  45874. 8013b3e: f023 0310 bic.w r3, r3, #16
  45875. 8013b42: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45876. 8013b46: 687b ldr r3, [r7, #4]
  45877. 8013b48: 681b ldr r3, [r3, #0]
  45878. 8013b4a: 461a mov r2, r3
  45879. 8013b4c: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45880. 8013b50: 647b str r3, [r7, #68] @ 0x44
  45881. 8013b52: 643a str r2, [r7, #64] @ 0x40
  45882. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45883. 8013b54: 6c39 ldr r1, [r7, #64] @ 0x40
  45884. 8013b56: 6c7a ldr r2, [r7, #68] @ 0x44
  45885. 8013b58: e841 2300 strex r3, r2, [r1]
  45886. 8013b5c: 63fb str r3, [r7, #60] @ 0x3c
  45887. return(result);
  45888. 8013b5e: 6bfb ldr r3, [r7, #60] @ 0x3c
  45889. 8013b60: 2b00 cmp r3, #0
  45890. 8013b62: d1e4 bne.n 8013b2e <UART_RxISR_16BIT_FIFOEN+0x236>
  45891. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45892. 8013b64: 687b ldr r3, [r7, #4]
  45893. 8013b66: 681b ldr r3, [r3, #0]
  45894. 8013b68: 69db ldr r3, [r3, #28]
  45895. 8013b6a: f003 0310 and.w r3, r3, #16
  45896. 8013b6e: 2b10 cmp r3, #16
  45897. 8013b70: d103 bne.n 8013b7a <UART_RxISR_16BIT_FIFOEN+0x282>
  45898. {
  45899. /* Clear IDLE Flag */
  45900. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45901. 8013b72: 687b ldr r3, [r7, #4]
  45902. 8013b74: 681b ldr r3, [r3, #0]
  45903. 8013b76: 2210 movs r2, #16
  45904. 8013b78: 621a str r2, [r3, #32]
  45905. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45906. /*Call registered Rx Event callback*/
  45907. huart->RxEventCallback(huart, huart->RxXferSize);
  45908. #else
  45909. /*Call legacy weak Rx Event callback*/
  45910. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45911. 8013b7a: 687b ldr r3, [r7, #4]
  45912. 8013b7c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45913. 8013b80: 4619 mov r1, r3
  45914. 8013b82: 6878 ldr r0, [r7, #4]
  45915. 8013b84: f7f0 ffae bl 8004ae4 <HAL_UARTEx_RxEventCallback>
  45916. 8013b88: e002 b.n 8013b90 <UART_RxISR_16BIT_FIFOEN+0x298>
  45917. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45918. /*Call registered Rx complete callback*/
  45919. huart->RxCpltCallback(huart);
  45920. #else
  45921. /*Call legacy weak Rx complete callback*/
  45922. HAL_UART_RxCpltCallback(huart);
  45923. 8013b8a: 6878 ldr r0, [r7, #4]
  45924. 8013b8c: f7f0 ffa0 bl 8004ad0 <HAL_UART_RxCpltCallback>
  45925. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45926. 8013b90: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  45927. 8013b94: 2b00 cmp r3, #0
  45928. 8013b96: d006 beq.n 8013ba6 <UART_RxISR_16BIT_FIFOEN+0x2ae>
  45929. 8013b98: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45930. 8013b9c: f003 0320 and.w r3, r3, #32
  45931. 8013ba0: 2b00 cmp r3, #0
  45932. 8013ba2: f47f aecd bne.w 8013940 <UART_RxISR_16BIT_FIFOEN+0x48>
  45933. /* When remaining number of bytes to receive is less than the RX FIFO
  45934. threshold, next incoming frames are processed as if FIFO mode was
  45935. disabled (i.e. one interrupt per received frame).
  45936. */
  45937. rxdatacount = huart->RxXferCount;
  45938. 8013ba6: 687b ldr r3, [r7, #4]
  45939. 8013ba8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45940. 8013bac: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  45941. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45942. 8013bb0: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  45943. 8013bb4: 2b00 cmp r3, #0
  45944. 8013bb6: d049 beq.n 8013c4c <UART_RxISR_16BIT_FIFOEN+0x354>
  45945. 8013bb8: 687b ldr r3, [r7, #4]
  45946. 8013bba: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45947. 8013bbe: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  45948. 8013bc2: 429a cmp r2, r3
  45949. 8013bc4: d242 bcs.n 8013c4c <UART_RxISR_16BIT_FIFOEN+0x354>
  45950. {
  45951. /* Disable the UART RXFT interrupt*/
  45952. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45953. 8013bc6: 687b ldr r3, [r7, #4]
  45954. 8013bc8: 681b ldr r3, [r3, #0]
  45955. 8013bca: 3308 adds r3, #8
  45956. 8013bcc: 627b str r3, [r7, #36] @ 0x24
  45957. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45958. 8013bce: 6a7b ldr r3, [r7, #36] @ 0x24
  45959. 8013bd0: e853 3f00 ldrex r3, [r3]
  45960. 8013bd4: 623b str r3, [r7, #32]
  45961. return(result);
  45962. 8013bd6: 6a3b ldr r3, [r7, #32]
  45963. 8013bd8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45964. 8013bdc: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  45965. 8013be0: 687b ldr r3, [r7, #4]
  45966. 8013be2: 681b ldr r3, [r3, #0]
  45967. 8013be4: 3308 adds r3, #8
  45968. 8013be6: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  45969. 8013bea: 633a str r2, [r7, #48] @ 0x30
  45970. 8013bec: 62fb str r3, [r7, #44] @ 0x2c
  45971. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45972. 8013bee: 6af9 ldr r1, [r7, #44] @ 0x2c
  45973. 8013bf0: 6b3a ldr r2, [r7, #48] @ 0x30
  45974. 8013bf2: e841 2300 strex r3, r2, [r1]
  45975. 8013bf6: 62bb str r3, [r7, #40] @ 0x28
  45976. return(result);
  45977. 8013bf8: 6abb ldr r3, [r7, #40] @ 0x28
  45978. 8013bfa: 2b00 cmp r3, #0
  45979. 8013bfc: d1e3 bne.n 8013bc6 <UART_RxISR_16BIT_FIFOEN+0x2ce>
  45980. /* Update the RxISR function pointer */
  45981. huart->RxISR = UART_RxISR_16BIT;
  45982. 8013bfe: 687b ldr r3, [r7, #4]
  45983. 8013c00: 4a16 ldr r2, [pc, #88] @ (8013c5c <UART_RxISR_16BIT_FIFOEN+0x364>)
  45984. 8013c02: 675a str r2, [r3, #116] @ 0x74
  45985. /* Enable the UART Data Register Not Empty interrupt */
  45986. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45987. 8013c04: 687b ldr r3, [r7, #4]
  45988. 8013c06: 681b ldr r3, [r3, #0]
  45989. 8013c08: 613b str r3, [r7, #16]
  45990. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45991. 8013c0a: 693b ldr r3, [r7, #16]
  45992. 8013c0c: e853 3f00 ldrex r3, [r3]
  45993. 8013c10: 60fb str r3, [r7, #12]
  45994. return(result);
  45995. 8013c12: 68fb ldr r3, [r7, #12]
  45996. 8013c14: f043 0320 orr.w r3, r3, #32
  45997. 8013c18: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45998. 8013c1c: 687b ldr r3, [r7, #4]
  45999. 8013c1e: 681b ldr r3, [r3, #0]
  46000. 8013c20: 461a mov r2, r3
  46001. 8013c22: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  46002. 8013c26: 61fb str r3, [r7, #28]
  46003. 8013c28: 61ba str r2, [r7, #24]
  46004. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46005. 8013c2a: 69b9 ldr r1, [r7, #24]
  46006. 8013c2c: 69fa ldr r2, [r7, #28]
  46007. 8013c2e: e841 2300 strex r3, r2, [r1]
  46008. 8013c32: 617b str r3, [r7, #20]
  46009. return(result);
  46010. 8013c34: 697b ldr r3, [r7, #20]
  46011. 8013c36: 2b00 cmp r3, #0
  46012. 8013c38: d1e4 bne.n 8013c04 <UART_RxISR_16BIT_FIFOEN+0x30c>
  46013. else
  46014. {
  46015. /* Clear RXNE interrupt flag */
  46016. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46017. }
  46018. }
  46019. 8013c3a: e007 b.n 8013c4c <UART_RxISR_16BIT_FIFOEN+0x354>
  46020. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46021. 8013c3c: 687b ldr r3, [r7, #4]
  46022. 8013c3e: 681b ldr r3, [r3, #0]
  46023. 8013c40: 699a ldr r2, [r3, #24]
  46024. 8013c42: 687b ldr r3, [r7, #4]
  46025. 8013c44: 681b ldr r3, [r3, #0]
  46026. 8013c46: f042 0208 orr.w r2, r2, #8
  46027. 8013c4a: 619a str r2, [r3, #24]
  46028. }
  46029. 8013c4c: bf00 nop
  46030. 8013c4e: 37b8 adds r7, #184 @ 0xb8
  46031. 8013c50: 46bd mov sp, r7
  46032. 8013c52: bd80 pop {r7, pc}
  46033. 8013c54: effffffe .word 0xeffffffe
  46034. 8013c58: 58000c00 .word 0x58000c00
  46035. 8013c5c: 080133e1 .word 0x080133e1
  46036. 08013c60 <HAL_UARTEx_WakeupCallback>:
  46037. * @brief UART wakeup from Stop mode callback.
  46038. * @param huart UART handle.
  46039. * @retval None
  46040. */
  46041. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  46042. {
  46043. 8013c60: b480 push {r7}
  46044. 8013c62: b083 sub sp, #12
  46045. 8013c64: af00 add r7, sp, #0
  46046. 8013c66: 6078 str r0, [r7, #4]
  46047. UNUSED(huart);
  46048. /* NOTE : This function should not be modified, when the callback is needed,
  46049. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  46050. */
  46051. }
  46052. 8013c68: bf00 nop
  46053. 8013c6a: 370c adds r7, #12
  46054. 8013c6c: 46bd mov sp, r7
  46055. 8013c6e: f85d 7b04 ldr.w r7, [sp], #4
  46056. 8013c72: 4770 bx lr
  46057. 08013c74 <HAL_UARTEx_RxFifoFullCallback>:
  46058. * @brief UART RX Fifo full callback.
  46059. * @param huart UART handle.
  46060. * @retval None
  46061. */
  46062. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  46063. {
  46064. 8013c74: b480 push {r7}
  46065. 8013c76: b083 sub sp, #12
  46066. 8013c78: af00 add r7, sp, #0
  46067. 8013c7a: 6078 str r0, [r7, #4]
  46068. UNUSED(huart);
  46069. /* NOTE : This function should not be modified, when the callback is needed,
  46070. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  46071. */
  46072. }
  46073. 8013c7c: bf00 nop
  46074. 8013c7e: 370c adds r7, #12
  46075. 8013c80: 46bd mov sp, r7
  46076. 8013c82: f85d 7b04 ldr.w r7, [sp], #4
  46077. 8013c86: 4770 bx lr
  46078. 08013c88 <HAL_UARTEx_TxFifoEmptyCallback>:
  46079. * @brief UART TX Fifo empty callback.
  46080. * @param huart UART handle.
  46081. * @retval None
  46082. */
  46083. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  46084. {
  46085. 8013c88: b480 push {r7}
  46086. 8013c8a: b083 sub sp, #12
  46087. 8013c8c: af00 add r7, sp, #0
  46088. 8013c8e: 6078 str r0, [r7, #4]
  46089. UNUSED(huart);
  46090. /* NOTE : This function should not be modified, when the callback is needed,
  46091. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  46092. */
  46093. }
  46094. 8013c90: bf00 nop
  46095. 8013c92: 370c adds r7, #12
  46096. 8013c94: 46bd mov sp, r7
  46097. 8013c96: f85d 7b04 ldr.w r7, [sp], #4
  46098. 8013c9a: 4770 bx lr
  46099. 08013c9c <HAL_UARTEx_DisableFifoMode>:
  46100. * @brief Disable the FIFO mode.
  46101. * @param huart UART handle.
  46102. * @retval HAL status
  46103. */
  46104. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  46105. {
  46106. 8013c9c: b480 push {r7}
  46107. 8013c9e: b085 sub sp, #20
  46108. 8013ca0: af00 add r7, sp, #0
  46109. 8013ca2: 6078 str r0, [r7, #4]
  46110. /* Check parameters */
  46111. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46112. /* Process Locked */
  46113. __HAL_LOCK(huart);
  46114. 8013ca4: 687b ldr r3, [r7, #4]
  46115. 8013ca6: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46116. 8013caa: 2b01 cmp r3, #1
  46117. 8013cac: d101 bne.n 8013cb2 <HAL_UARTEx_DisableFifoMode+0x16>
  46118. 8013cae: 2302 movs r3, #2
  46119. 8013cb0: e027 b.n 8013d02 <HAL_UARTEx_DisableFifoMode+0x66>
  46120. 8013cb2: 687b ldr r3, [r7, #4]
  46121. 8013cb4: 2201 movs r2, #1
  46122. 8013cb6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46123. huart->gState = HAL_UART_STATE_BUSY;
  46124. 8013cba: 687b ldr r3, [r7, #4]
  46125. 8013cbc: 2224 movs r2, #36 @ 0x24
  46126. 8013cbe: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46127. /* Save actual UART configuration */
  46128. tmpcr1 = READ_REG(huart->Instance->CR1);
  46129. 8013cc2: 687b ldr r3, [r7, #4]
  46130. 8013cc4: 681b ldr r3, [r3, #0]
  46131. 8013cc6: 681b ldr r3, [r3, #0]
  46132. 8013cc8: 60fb str r3, [r7, #12]
  46133. /* Disable UART */
  46134. __HAL_UART_DISABLE(huart);
  46135. 8013cca: 687b ldr r3, [r7, #4]
  46136. 8013ccc: 681b ldr r3, [r3, #0]
  46137. 8013cce: 681a ldr r2, [r3, #0]
  46138. 8013cd0: 687b ldr r3, [r7, #4]
  46139. 8013cd2: 681b ldr r3, [r3, #0]
  46140. 8013cd4: f022 0201 bic.w r2, r2, #1
  46141. 8013cd8: 601a str r2, [r3, #0]
  46142. /* Enable FIFO mode */
  46143. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  46144. 8013cda: 68fb ldr r3, [r7, #12]
  46145. 8013cdc: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  46146. 8013ce0: 60fb str r3, [r7, #12]
  46147. huart->FifoMode = UART_FIFOMODE_DISABLE;
  46148. 8013ce2: 687b ldr r3, [r7, #4]
  46149. 8013ce4: 2200 movs r2, #0
  46150. 8013ce6: 665a str r2, [r3, #100] @ 0x64
  46151. /* Restore UART configuration */
  46152. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46153. 8013ce8: 687b ldr r3, [r7, #4]
  46154. 8013cea: 681b ldr r3, [r3, #0]
  46155. 8013cec: 68fa ldr r2, [r7, #12]
  46156. 8013cee: 601a str r2, [r3, #0]
  46157. huart->gState = HAL_UART_STATE_READY;
  46158. 8013cf0: 687b ldr r3, [r7, #4]
  46159. 8013cf2: 2220 movs r2, #32
  46160. 8013cf4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46161. /* Process Unlocked */
  46162. __HAL_UNLOCK(huart);
  46163. 8013cf8: 687b ldr r3, [r7, #4]
  46164. 8013cfa: 2200 movs r2, #0
  46165. 8013cfc: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46166. return HAL_OK;
  46167. 8013d00: 2300 movs r3, #0
  46168. }
  46169. 8013d02: 4618 mov r0, r3
  46170. 8013d04: 3714 adds r7, #20
  46171. 8013d06: 46bd mov sp, r7
  46172. 8013d08: f85d 7b04 ldr.w r7, [sp], #4
  46173. 8013d0c: 4770 bx lr
  46174. 08013d0e <HAL_UARTEx_SetTxFifoThreshold>:
  46175. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  46176. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  46177. * @retval HAL status
  46178. */
  46179. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46180. {
  46181. 8013d0e: b580 push {r7, lr}
  46182. 8013d10: b084 sub sp, #16
  46183. 8013d12: af00 add r7, sp, #0
  46184. 8013d14: 6078 str r0, [r7, #4]
  46185. 8013d16: 6039 str r1, [r7, #0]
  46186. /* Check parameters */
  46187. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46188. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  46189. /* Process Locked */
  46190. __HAL_LOCK(huart);
  46191. 8013d18: 687b ldr r3, [r7, #4]
  46192. 8013d1a: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46193. 8013d1e: 2b01 cmp r3, #1
  46194. 8013d20: d101 bne.n 8013d26 <HAL_UARTEx_SetTxFifoThreshold+0x18>
  46195. 8013d22: 2302 movs r3, #2
  46196. 8013d24: e02d b.n 8013d82 <HAL_UARTEx_SetTxFifoThreshold+0x74>
  46197. 8013d26: 687b ldr r3, [r7, #4]
  46198. 8013d28: 2201 movs r2, #1
  46199. 8013d2a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46200. huart->gState = HAL_UART_STATE_BUSY;
  46201. 8013d2e: 687b ldr r3, [r7, #4]
  46202. 8013d30: 2224 movs r2, #36 @ 0x24
  46203. 8013d32: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46204. /* Save actual UART configuration */
  46205. tmpcr1 = READ_REG(huart->Instance->CR1);
  46206. 8013d36: 687b ldr r3, [r7, #4]
  46207. 8013d38: 681b ldr r3, [r3, #0]
  46208. 8013d3a: 681b ldr r3, [r3, #0]
  46209. 8013d3c: 60fb str r3, [r7, #12]
  46210. /* Disable UART */
  46211. __HAL_UART_DISABLE(huart);
  46212. 8013d3e: 687b ldr r3, [r7, #4]
  46213. 8013d40: 681b ldr r3, [r3, #0]
  46214. 8013d42: 681a ldr r2, [r3, #0]
  46215. 8013d44: 687b ldr r3, [r7, #4]
  46216. 8013d46: 681b ldr r3, [r3, #0]
  46217. 8013d48: f022 0201 bic.w r2, r2, #1
  46218. 8013d4c: 601a str r2, [r3, #0]
  46219. /* Update TX threshold configuration */
  46220. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  46221. 8013d4e: 687b ldr r3, [r7, #4]
  46222. 8013d50: 681b ldr r3, [r3, #0]
  46223. 8013d52: 689b ldr r3, [r3, #8]
  46224. 8013d54: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  46225. 8013d58: 687b ldr r3, [r7, #4]
  46226. 8013d5a: 681b ldr r3, [r3, #0]
  46227. 8013d5c: 683a ldr r2, [r7, #0]
  46228. 8013d5e: 430a orrs r2, r1
  46229. 8013d60: 609a str r2, [r3, #8]
  46230. /* Determine the number of data to process during RX/TX ISR execution */
  46231. UARTEx_SetNbDataToProcess(huart);
  46232. 8013d62: 6878 ldr r0, [r7, #4]
  46233. 8013d64: f000 f8a0 bl 8013ea8 <UARTEx_SetNbDataToProcess>
  46234. /* Restore UART configuration */
  46235. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46236. 8013d68: 687b ldr r3, [r7, #4]
  46237. 8013d6a: 681b ldr r3, [r3, #0]
  46238. 8013d6c: 68fa ldr r2, [r7, #12]
  46239. 8013d6e: 601a str r2, [r3, #0]
  46240. huart->gState = HAL_UART_STATE_READY;
  46241. 8013d70: 687b ldr r3, [r7, #4]
  46242. 8013d72: 2220 movs r2, #32
  46243. 8013d74: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46244. /* Process Unlocked */
  46245. __HAL_UNLOCK(huart);
  46246. 8013d78: 687b ldr r3, [r7, #4]
  46247. 8013d7a: 2200 movs r2, #0
  46248. 8013d7c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46249. return HAL_OK;
  46250. 8013d80: 2300 movs r3, #0
  46251. }
  46252. 8013d82: 4618 mov r0, r3
  46253. 8013d84: 3710 adds r7, #16
  46254. 8013d86: 46bd mov sp, r7
  46255. 8013d88: bd80 pop {r7, pc}
  46256. 08013d8a <HAL_UARTEx_SetRxFifoThreshold>:
  46257. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  46258. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  46259. * @retval HAL status
  46260. */
  46261. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46262. {
  46263. 8013d8a: b580 push {r7, lr}
  46264. 8013d8c: b084 sub sp, #16
  46265. 8013d8e: af00 add r7, sp, #0
  46266. 8013d90: 6078 str r0, [r7, #4]
  46267. 8013d92: 6039 str r1, [r7, #0]
  46268. /* Check the parameters */
  46269. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46270. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  46271. /* Process Locked */
  46272. __HAL_LOCK(huart);
  46273. 8013d94: 687b ldr r3, [r7, #4]
  46274. 8013d96: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46275. 8013d9a: 2b01 cmp r3, #1
  46276. 8013d9c: d101 bne.n 8013da2 <HAL_UARTEx_SetRxFifoThreshold+0x18>
  46277. 8013d9e: 2302 movs r3, #2
  46278. 8013da0: e02d b.n 8013dfe <HAL_UARTEx_SetRxFifoThreshold+0x74>
  46279. 8013da2: 687b ldr r3, [r7, #4]
  46280. 8013da4: 2201 movs r2, #1
  46281. 8013da6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46282. huart->gState = HAL_UART_STATE_BUSY;
  46283. 8013daa: 687b ldr r3, [r7, #4]
  46284. 8013dac: 2224 movs r2, #36 @ 0x24
  46285. 8013dae: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46286. /* Save actual UART configuration */
  46287. tmpcr1 = READ_REG(huart->Instance->CR1);
  46288. 8013db2: 687b ldr r3, [r7, #4]
  46289. 8013db4: 681b ldr r3, [r3, #0]
  46290. 8013db6: 681b ldr r3, [r3, #0]
  46291. 8013db8: 60fb str r3, [r7, #12]
  46292. /* Disable UART */
  46293. __HAL_UART_DISABLE(huart);
  46294. 8013dba: 687b ldr r3, [r7, #4]
  46295. 8013dbc: 681b ldr r3, [r3, #0]
  46296. 8013dbe: 681a ldr r2, [r3, #0]
  46297. 8013dc0: 687b ldr r3, [r7, #4]
  46298. 8013dc2: 681b ldr r3, [r3, #0]
  46299. 8013dc4: f022 0201 bic.w r2, r2, #1
  46300. 8013dc8: 601a str r2, [r3, #0]
  46301. /* Update RX threshold configuration */
  46302. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  46303. 8013dca: 687b ldr r3, [r7, #4]
  46304. 8013dcc: 681b ldr r3, [r3, #0]
  46305. 8013dce: 689b ldr r3, [r3, #8]
  46306. 8013dd0: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  46307. 8013dd4: 687b ldr r3, [r7, #4]
  46308. 8013dd6: 681b ldr r3, [r3, #0]
  46309. 8013dd8: 683a ldr r2, [r7, #0]
  46310. 8013dda: 430a orrs r2, r1
  46311. 8013ddc: 609a str r2, [r3, #8]
  46312. /* Determine the number of data to process during RX/TX ISR execution */
  46313. UARTEx_SetNbDataToProcess(huart);
  46314. 8013dde: 6878 ldr r0, [r7, #4]
  46315. 8013de0: f000 f862 bl 8013ea8 <UARTEx_SetNbDataToProcess>
  46316. /* Restore UART configuration */
  46317. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46318. 8013de4: 687b ldr r3, [r7, #4]
  46319. 8013de6: 681b ldr r3, [r3, #0]
  46320. 8013de8: 68fa ldr r2, [r7, #12]
  46321. 8013dea: 601a str r2, [r3, #0]
  46322. huart->gState = HAL_UART_STATE_READY;
  46323. 8013dec: 687b ldr r3, [r7, #4]
  46324. 8013dee: 2220 movs r2, #32
  46325. 8013df0: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46326. /* Process Unlocked */
  46327. __HAL_UNLOCK(huart);
  46328. 8013df4: 687b ldr r3, [r7, #4]
  46329. 8013df6: 2200 movs r2, #0
  46330. 8013df8: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46331. return HAL_OK;
  46332. 8013dfc: 2300 movs r3, #0
  46333. }
  46334. 8013dfe: 4618 mov r0, r3
  46335. 8013e00: 3710 adds r7, #16
  46336. 8013e02: 46bd mov sp, r7
  46337. 8013e04: bd80 pop {r7, pc}
  46338. 08013e06 <HAL_UARTEx_ReceiveToIdle_IT>:
  46339. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  46340. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  46341. * @retval HAL status
  46342. */
  46343. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  46344. {
  46345. 8013e06: b580 push {r7, lr}
  46346. 8013e08: b08c sub sp, #48 @ 0x30
  46347. 8013e0a: af00 add r7, sp, #0
  46348. 8013e0c: 60f8 str r0, [r7, #12]
  46349. 8013e0e: 60b9 str r1, [r7, #8]
  46350. 8013e10: 4613 mov r3, r2
  46351. 8013e12: 80fb strh r3, [r7, #6]
  46352. HAL_StatusTypeDef status = HAL_OK;
  46353. 8013e14: 2300 movs r3, #0
  46354. 8013e16: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46355. /* Check that a Rx process is not already ongoing */
  46356. if (huart->RxState == HAL_UART_STATE_READY)
  46357. 8013e1a: 68fb ldr r3, [r7, #12]
  46358. 8013e1c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  46359. 8013e20: 2b20 cmp r3, #32
  46360. 8013e22: d13b bne.n 8013e9c <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  46361. {
  46362. if ((pData == NULL) || (Size == 0U))
  46363. 8013e24: 68bb ldr r3, [r7, #8]
  46364. 8013e26: 2b00 cmp r3, #0
  46365. 8013e28: d002 beq.n 8013e30 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  46366. 8013e2a: 88fb ldrh r3, [r7, #6]
  46367. 8013e2c: 2b00 cmp r3, #0
  46368. 8013e2e: d101 bne.n 8013e34 <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  46369. {
  46370. return HAL_ERROR;
  46371. 8013e30: 2301 movs r3, #1
  46372. 8013e32: e034 b.n 8013e9e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46373. }
  46374. /* Set Reception type to reception till IDLE Event*/
  46375. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  46376. 8013e34: 68fb ldr r3, [r7, #12]
  46377. 8013e36: 2201 movs r2, #1
  46378. 8013e38: 66da str r2, [r3, #108] @ 0x6c
  46379. huart->RxEventType = HAL_UART_RXEVENT_TC;
  46380. 8013e3a: 68fb ldr r3, [r7, #12]
  46381. 8013e3c: 2200 movs r2, #0
  46382. 8013e3e: 671a str r2, [r3, #112] @ 0x70
  46383. (void)UART_Start_Receive_IT(huart, pData, Size);
  46384. 8013e40: 88fb ldrh r3, [r7, #6]
  46385. 8013e42: 461a mov r2, r3
  46386. 8013e44: 68b9 ldr r1, [r7, #8]
  46387. 8013e46: 68f8 ldr r0, [r7, #12]
  46388. 8013e48: f7fe fe82 bl 8012b50 <UART_Start_Receive_IT>
  46389. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  46390. 8013e4c: 68fb ldr r3, [r7, #12]
  46391. 8013e4e: 6edb ldr r3, [r3, #108] @ 0x6c
  46392. 8013e50: 2b01 cmp r3, #1
  46393. 8013e52: d11d bne.n 8013e90 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  46394. {
  46395. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  46396. 8013e54: 68fb ldr r3, [r7, #12]
  46397. 8013e56: 681b ldr r3, [r3, #0]
  46398. 8013e58: 2210 movs r2, #16
  46399. 8013e5a: 621a str r2, [r3, #32]
  46400. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  46401. 8013e5c: 68fb ldr r3, [r7, #12]
  46402. 8013e5e: 681b ldr r3, [r3, #0]
  46403. 8013e60: 61bb str r3, [r7, #24]
  46404. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  46405. 8013e62: 69bb ldr r3, [r7, #24]
  46406. 8013e64: e853 3f00 ldrex r3, [r3]
  46407. 8013e68: 617b str r3, [r7, #20]
  46408. return(result);
  46409. 8013e6a: 697b ldr r3, [r7, #20]
  46410. 8013e6c: f043 0310 orr.w r3, r3, #16
  46411. 8013e70: 62bb str r3, [r7, #40] @ 0x28
  46412. 8013e72: 68fb ldr r3, [r7, #12]
  46413. 8013e74: 681b ldr r3, [r3, #0]
  46414. 8013e76: 461a mov r2, r3
  46415. 8013e78: 6abb ldr r3, [r7, #40] @ 0x28
  46416. 8013e7a: 627b str r3, [r7, #36] @ 0x24
  46417. 8013e7c: 623a str r2, [r7, #32]
  46418. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46419. 8013e7e: 6a39 ldr r1, [r7, #32]
  46420. 8013e80: 6a7a ldr r2, [r7, #36] @ 0x24
  46421. 8013e82: e841 2300 strex r3, r2, [r1]
  46422. 8013e86: 61fb str r3, [r7, #28]
  46423. return(result);
  46424. 8013e88: 69fb ldr r3, [r7, #28]
  46425. 8013e8a: 2b00 cmp r3, #0
  46426. 8013e8c: d1e6 bne.n 8013e5c <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  46427. 8013e8e: e002 b.n 8013e96 <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  46428. {
  46429. /* In case of errors already pending when reception is started,
  46430. Interrupts may have already been raised and lead to reception abortion.
  46431. (Overrun error for instance).
  46432. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  46433. status = HAL_ERROR;
  46434. 8013e90: 2301 movs r3, #1
  46435. 8013e92: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46436. }
  46437. return status;
  46438. 8013e96: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  46439. 8013e9a: e000 b.n 8013e9e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46440. }
  46441. else
  46442. {
  46443. return HAL_BUSY;
  46444. 8013e9c: 2302 movs r3, #2
  46445. }
  46446. }
  46447. 8013e9e: 4618 mov r0, r3
  46448. 8013ea0: 3730 adds r7, #48 @ 0x30
  46449. 8013ea2: 46bd mov sp, r7
  46450. 8013ea4: bd80 pop {r7, pc}
  46451. ...
  46452. 08013ea8 <UARTEx_SetNbDataToProcess>:
  46453. * the UART configuration registers.
  46454. * @param huart UART handle.
  46455. * @retval None
  46456. */
  46457. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  46458. {
  46459. 8013ea8: b480 push {r7}
  46460. 8013eaa: b085 sub sp, #20
  46461. 8013eac: af00 add r7, sp, #0
  46462. 8013eae: 6078 str r0, [r7, #4]
  46463. uint8_t rx_fifo_threshold;
  46464. uint8_t tx_fifo_threshold;
  46465. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  46466. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  46467. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  46468. 8013eb0: 687b ldr r3, [r7, #4]
  46469. 8013eb2: 6e5b ldr r3, [r3, #100] @ 0x64
  46470. 8013eb4: 2b00 cmp r3, #0
  46471. 8013eb6: d108 bne.n 8013eca <UARTEx_SetNbDataToProcess+0x22>
  46472. {
  46473. huart->NbTxDataToProcess = 1U;
  46474. 8013eb8: 687b ldr r3, [r7, #4]
  46475. 8013eba: 2201 movs r2, #1
  46476. 8013ebc: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46477. huart->NbRxDataToProcess = 1U;
  46478. 8013ec0: 687b ldr r3, [r7, #4]
  46479. 8013ec2: 2201 movs r2, #1
  46480. 8013ec4: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46481. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46482. (uint16_t)denominator[tx_fifo_threshold];
  46483. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46484. (uint16_t)denominator[rx_fifo_threshold];
  46485. }
  46486. }
  46487. 8013ec8: e031 b.n 8013f2e <UARTEx_SetNbDataToProcess+0x86>
  46488. rx_fifo_depth = RX_FIFO_DEPTH;
  46489. 8013eca: 2310 movs r3, #16
  46490. 8013ecc: 73fb strb r3, [r7, #15]
  46491. tx_fifo_depth = TX_FIFO_DEPTH;
  46492. 8013ece: 2310 movs r3, #16
  46493. 8013ed0: 73bb strb r3, [r7, #14]
  46494. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  46495. 8013ed2: 687b ldr r3, [r7, #4]
  46496. 8013ed4: 681b ldr r3, [r3, #0]
  46497. 8013ed6: 689b ldr r3, [r3, #8]
  46498. 8013ed8: 0e5b lsrs r3, r3, #25
  46499. 8013eda: b2db uxtb r3, r3
  46500. 8013edc: f003 0307 and.w r3, r3, #7
  46501. 8013ee0: 737b strb r3, [r7, #13]
  46502. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  46503. 8013ee2: 687b ldr r3, [r7, #4]
  46504. 8013ee4: 681b ldr r3, [r3, #0]
  46505. 8013ee6: 689b ldr r3, [r3, #8]
  46506. 8013ee8: 0f5b lsrs r3, r3, #29
  46507. 8013eea: b2db uxtb r3, r3
  46508. 8013eec: f003 0307 and.w r3, r3, #7
  46509. 8013ef0: 733b strb r3, [r7, #12]
  46510. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46511. 8013ef2: 7bbb ldrb r3, [r7, #14]
  46512. 8013ef4: 7b3a ldrb r2, [r7, #12]
  46513. 8013ef6: 4911 ldr r1, [pc, #68] @ (8013f3c <UARTEx_SetNbDataToProcess+0x94>)
  46514. 8013ef8: 5c8a ldrb r2, [r1, r2]
  46515. 8013efa: fb02 f303 mul.w r3, r2, r3
  46516. (uint16_t)denominator[tx_fifo_threshold];
  46517. 8013efe: 7b3a ldrb r2, [r7, #12]
  46518. 8013f00: 490f ldr r1, [pc, #60] @ (8013f40 <UARTEx_SetNbDataToProcess+0x98>)
  46519. 8013f02: 5c8a ldrb r2, [r1, r2]
  46520. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46521. 8013f04: fb93 f3f2 sdiv r3, r3, r2
  46522. 8013f08: b29a uxth r2, r3
  46523. 8013f0a: 687b ldr r3, [r7, #4]
  46524. 8013f0c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46525. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46526. 8013f10: 7bfb ldrb r3, [r7, #15]
  46527. 8013f12: 7b7a ldrb r2, [r7, #13]
  46528. 8013f14: 4909 ldr r1, [pc, #36] @ (8013f3c <UARTEx_SetNbDataToProcess+0x94>)
  46529. 8013f16: 5c8a ldrb r2, [r1, r2]
  46530. 8013f18: fb02 f303 mul.w r3, r2, r3
  46531. (uint16_t)denominator[rx_fifo_threshold];
  46532. 8013f1c: 7b7a ldrb r2, [r7, #13]
  46533. 8013f1e: 4908 ldr r1, [pc, #32] @ (8013f40 <UARTEx_SetNbDataToProcess+0x98>)
  46534. 8013f20: 5c8a ldrb r2, [r1, r2]
  46535. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46536. 8013f22: fb93 f3f2 sdiv r3, r3, r2
  46537. 8013f26: b29a uxth r2, r3
  46538. 8013f28: 687b ldr r3, [r7, #4]
  46539. 8013f2a: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46540. }
  46541. 8013f2e: bf00 nop
  46542. 8013f30: 3714 adds r7, #20
  46543. 8013f32: 46bd mov sp, r7
  46544. 8013f34: f85d 7b04 ldr.w r7, [sp], #4
  46545. 8013f38: 4770 bx lr
  46546. 8013f3a: bf00 nop
  46547. 8013f3c: 0801872c .word 0x0801872c
  46548. 8013f40: 08018734 .word 0x08018734
  46549. 08013f44 <__NVIC_SetPriority>:
  46550. {
  46551. 8013f44: b480 push {r7}
  46552. 8013f46: b083 sub sp, #12
  46553. 8013f48: af00 add r7, sp, #0
  46554. 8013f4a: 4603 mov r3, r0
  46555. 8013f4c: 6039 str r1, [r7, #0]
  46556. 8013f4e: 80fb strh r3, [r7, #6]
  46557. if ((int32_t)(IRQn) >= 0)
  46558. 8013f50: f9b7 3006 ldrsh.w r3, [r7, #6]
  46559. 8013f54: 2b00 cmp r3, #0
  46560. 8013f56: db0a blt.n 8013f6e <__NVIC_SetPriority+0x2a>
  46561. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46562. 8013f58: 683b ldr r3, [r7, #0]
  46563. 8013f5a: b2da uxtb r2, r3
  46564. 8013f5c: 490c ldr r1, [pc, #48] @ (8013f90 <__NVIC_SetPriority+0x4c>)
  46565. 8013f5e: f9b7 3006 ldrsh.w r3, [r7, #6]
  46566. 8013f62: 0112 lsls r2, r2, #4
  46567. 8013f64: b2d2 uxtb r2, r2
  46568. 8013f66: 440b add r3, r1
  46569. 8013f68: f883 2300 strb.w r2, [r3, #768] @ 0x300
  46570. }
  46571. 8013f6c: e00a b.n 8013f84 <__NVIC_SetPriority+0x40>
  46572. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46573. 8013f6e: 683b ldr r3, [r7, #0]
  46574. 8013f70: b2da uxtb r2, r3
  46575. 8013f72: 4908 ldr r1, [pc, #32] @ (8013f94 <__NVIC_SetPriority+0x50>)
  46576. 8013f74: 88fb ldrh r3, [r7, #6]
  46577. 8013f76: f003 030f and.w r3, r3, #15
  46578. 8013f7a: 3b04 subs r3, #4
  46579. 8013f7c: 0112 lsls r2, r2, #4
  46580. 8013f7e: b2d2 uxtb r2, r2
  46581. 8013f80: 440b add r3, r1
  46582. 8013f82: 761a strb r2, [r3, #24]
  46583. }
  46584. 8013f84: bf00 nop
  46585. 8013f86: 370c adds r7, #12
  46586. 8013f88: 46bd mov sp, r7
  46587. 8013f8a: f85d 7b04 ldr.w r7, [sp], #4
  46588. 8013f8e: 4770 bx lr
  46589. 8013f90: e000e100 .word 0xe000e100
  46590. 8013f94: e000ed00 .word 0xe000ed00
  46591. 08013f98 <SysTick_Handler>:
  46592. /*
  46593. SysTick handler implementation that also clears overflow flag.
  46594. */
  46595. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  46596. void SysTick_Handler (void) {
  46597. 8013f98: b580 push {r7, lr}
  46598. 8013f9a: af00 add r7, sp, #0
  46599. /* Clear overflow flag */
  46600. SysTick->CTRL;
  46601. 8013f9c: 4b05 ldr r3, [pc, #20] @ (8013fb4 <SysTick_Handler+0x1c>)
  46602. 8013f9e: 681b ldr r3, [r3, #0]
  46603. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  46604. 8013fa0: f002 fd1e bl 80169e0 <xTaskGetSchedulerState>
  46605. 8013fa4: 4603 mov r3, r0
  46606. 8013fa6: 2b01 cmp r3, #1
  46607. 8013fa8: d001 beq.n 8013fae <SysTick_Handler+0x16>
  46608. /* Call tick handler */
  46609. xPortSysTickHandler();
  46610. 8013faa: f003 ff2d bl 8017e08 <xPortSysTickHandler>
  46611. }
  46612. }
  46613. 8013fae: bf00 nop
  46614. 8013fb0: bd80 pop {r7, pc}
  46615. 8013fb2: bf00 nop
  46616. 8013fb4: e000e010 .word 0xe000e010
  46617. 08013fb8 <SVC_Setup>:
  46618. #endif /* SysTick */
  46619. /*
  46620. Setup SVC to reset value.
  46621. */
  46622. __STATIC_INLINE void SVC_Setup (void) {
  46623. 8013fb8: b580 push {r7, lr}
  46624. 8013fba: af00 add r7, sp, #0
  46625. #if (__ARM_ARCH_7A__ == 0U)
  46626. /* Service Call interrupt might be configured before kernel start */
  46627. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  46628. /* causes a Hard Fault. */
  46629. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  46630. 8013fbc: 2100 movs r1, #0
  46631. 8013fbe: f06f 0004 mvn.w r0, #4
  46632. 8013fc2: f7ff ffbf bl 8013f44 <__NVIC_SetPriority>
  46633. #endif
  46634. }
  46635. 8013fc6: bf00 nop
  46636. 8013fc8: bd80 pop {r7, pc}
  46637. ...
  46638. 08013fcc <osKernelInitialize>:
  46639. static uint32_t OS_Tick_GetOverflow (void);
  46640. /* Get OS Tick interval */
  46641. static uint32_t OS_Tick_GetInterval (void);
  46642. /*---------------------------------------------------------------------------*/
  46643. osStatus_t osKernelInitialize (void) {
  46644. 8013fcc: b480 push {r7}
  46645. 8013fce: b083 sub sp, #12
  46646. 8013fd0: af00 add r7, sp, #0
  46647. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46648. 8013fd2: f3ef 8305 mrs r3, IPSR
  46649. 8013fd6: 603b str r3, [r7, #0]
  46650. return(result);
  46651. 8013fd8: 683b ldr r3, [r7, #0]
  46652. osStatus_t stat;
  46653. if (IS_IRQ()) {
  46654. 8013fda: 2b00 cmp r3, #0
  46655. 8013fdc: d003 beq.n 8013fe6 <osKernelInitialize+0x1a>
  46656. stat = osErrorISR;
  46657. 8013fde: f06f 0305 mvn.w r3, #5
  46658. 8013fe2: 607b str r3, [r7, #4]
  46659. 8013fe4: e00c b.n 8014000 <osKernelInitialize+0x34>
  46660. }
  46661. else {
  46662. if (KernelState == osKernelInactive) {
  46663. 8013fe6: 4b0a ldr r3, [pc, #40] @ (8014010 <osKernelInitialize+0x44>)
  46664. 8013fe8: 681b ldr r3, [r3, #0]
  46665. 8013fea: 2b00 cmp r3, #0
  46666. 8013fec: d105 bne.n 8013ffa <osKernelInitialize+0x2e>
  46667. EvrFreeRTOSSetup(0U);
  46668. #endif
  46669. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  46670. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  46671. #endif
  46672. KernelState = osKernelReady;
  46673. 8013fee: 4b08 ldr r3, [pc, #32] @ (8014010 <osKernelInitialize+0x44>)
  46674. 8013ff0: 2201 movs r2, #1
  46675. 8013ff2: 601a str r2, [r3, #0]
  46676. stat = osOK;
  46677. 8013ff4: 2300 movs r3, #0
  46678. 8013ff6: 607b str r3, [r7, #4]
  46679. 8013ff8: e002 b.n 8014000 <osKernelInitialize+0x34>
  46680. } else {
  46681. stat = osError;
  46682. 8013ffa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46683. 8013ffe: 607b str r3, [r7, #4]
  46684. }
  46685. }
  46686. return (stat);
  46687. 8014000: 687b ldr r3, [r7, #4]
  46688. }
  46689. 8014002: 4618 mov r0, r3
  46690. 8014004: 370c adds r7, #12
  46691. 8014006: 46bd mov sp, r7
  46692. 8014008: f85d 7b04 ldr.w r7, [sp], #4
  46693. 801400c: 4770 bx lr
  46694. 801400e: bf00 nop
  46695. 8014010: 24001064 .word 0x24001064
  46696. 08014014 <osKernelStart>:
  46697. }
  46698. return (state);
  46699. }
  46700. osStatus_t osKernelStart (void) {
  46701. 8014014: b580 push {r7, lr}
  46702. 8014016: b082 sub sp, #8
  46703. 8014018: af00 add r7, sp, #0
  46704. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46705. 801401a: f3ef 8305 mrs r3, IPSR
  46706. 801401e: 603b str r3, [r7, #0]
  46707. return(result);
  46708. 8014020: 683b ldr r3, [r7, #0]
  46709. osStatus_t stat;
  46710. if (IS_IRQ()) {
  46711. 8014022: 2b00 cmp r3, #0
  46712. 8014024: d003 beq.n 801402e <osKernelStart+0x1a>
  46713. stat = osErrorISR;
  46714. 8014026: f06f 0305 mvn.w r3, #5
  46715. 801402a: 607b str r3, [r7, #4]
  46716. 801402c: e010 b.n 8014050 <osKernelStart+0x3c>
  46717. }
  46718. else {
  46719. if (KernelState == osKernelReady) {
  46720. 801402e: 4b0b ldr r3, [pc, #44] @ (801405c <osKernelStart+0x48>)
  46721. 8014030: 681b ldr r3, [r3, #0]
  46722. 8014032: 2b01 cmp r3, #1
  46723. 8014034: d109 bne.n 801404a <osKernelStart+0x36>
  46724. /* Ensure SVC priority is at the reset value */
  46725. SVC_Setup();
  46726. 8014036: f7ff ffbf bl 8013fb8 <SVC_Setup>
  46727. /* Change state to enable IRQ masking check */
  46728. KernelState = osKernelRunning;
  46729. 801403a: 4b08 ldr r3, [pc, #32] @ (801405c <osKernelStart+0x48>)
  46730. 801403c: 2202 movs r2, #2
  46731. 801403e: 601a str r2, [r3, #0]
  46732. /* Start the kernel scheduler */
  46733. vTaskStartScheduler();
  46734. 8014040: f002 f824 bl 801608c <vTaskStartScheduler>
  46735. stat = osOK;
  46736. 8014044: 2300 movs r3, #0
  46737. 8014046: 607b str r3, [r7, #4]
  46738. 8014048: e002 b.n 8014050 <osKernelStart+0x3c>
  46739. } else {
  46740. stat = osError;
  46741. 801404a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46742. 801404e: 607b str r3, [r7, #4]
  46743. }
  46744. }
  46745. return (stat);
  46746. 8014050: 687b ldr r3, [r7, #4]
  46747. }
  46748. 8014052: 4618 mov r0, r3
  46749. 8014054: 3708 adds r7, #8
  46750. 8014056: 46bd mov sp, r7
  46751. 8014058: bd80 pop {r7, pc}
  46752. 801405a: bf00 nop
  46753. 801405c: 24001064 .word 0x24001064
  46754. 08014060 <osThreadNew>:
  46755. return (configCPU_CLOCK_HZ);
  46756. }
  46757. /*---------------------------------------------------------------------------*/
  46758. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  46759. 8014060: b580 push {r7, lr}
  46760. 8014062: b08e sub sp, #56 @ 0x38
  46761. 8014064: af04 add r7, sp, #16
  46762. 8014066: 60f8 str r0, [r7, #12]
  46763. 8014068: 60b9 str r1, [r7, #8]
  46764. 801406a: 607a str r2, [r7, #4]
  46765. uint32_t stack;
  46766. TaskHandle_t hTask;
  46767. UBaseType_t prio;
  46768. int32_t mem;
  46769. hTask = NULL;
  46770. 801406c: 2300 movs r3, #0
  46771. 801406e: 613b str r3, [r7, #16]
  46772. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46773. 8014070: f3ef 8305 mrs r3, IPSR
  46774. 8014074: 617b str r3, [r7, #20]
  46775. return(result);
  46776. 8014076: 697b ldr r3, [r7, #20]
  46777. if (!IS_IRQ() && (func != NULL)) {
  46778. 8014078: 2b00 cmp r3, #0
  46779. 801407a: d17f bne.n 801417c <osThreadNew+0x11c>
  46780. 801407c: 68fb ldr r3, [r7, #12]
  46781. 801407e: 2b00 cmp r3, #0
  46782. 8014080: d07c beq.n 801417c <osThreadNew+0x11c>
  46783. stack = configMINIMAL_STACK_SIZE;
  46784. 8014082: f44f 7300 mov.w r3, #512 @ 0x200
  46785. 8014086: 623b str r3, [r7, #32]
  46786. prio = (UBaseType_t)osPriorityNormal;
  46787. 8014088: 2318 movs r3, #24
  46788. 801408a: 61fb str r3, [r7, #28]
  46789. name = NULL;
  46790. 801408c: 2300 movs r3, #0
  46791. 801408e: 627b str r3, [r7, #36] @ 0x24
  46792. mem = -1;
  46793. 8014090: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46794. 8014094: 61bb str r3, [r7, #24]
  46795. if (attr != NULL) {
  46796. 8014096: 687b ldr r3, [r7, #4]
  46797. 8014098: 2b00 cmp r3, #0
  46798. 801409a: d045 beq.n 8014128 <osThreadNew+0xc8>
  46799. if (attr->name != NULL) {
  46800. 801409c: 687b ldr r3, [r7, #4]
  46801. 801409e: 681b ldr r3, [r3, #0]
  46802. 80140a0: 2b00 cmp r3, #0
  46803. 80140a2: d002 beq.n 80140aa <osThreadNew+0x4a>
  46804. name = attr->name;
  46805. 80140a4: 687b ldr r3, [r7, #4]
  46806. 80140a6: 681b ldr r3, [r3, #0]
  46807. 80140a8: 627b str r3, [r7, #36] @ 0x24
  46808. }
  46809. if (attr->priority != osPriorityNone) {
  46810. 80140aa: 687b ldr r3, [r7, #4]
  46811. 80140ac: 699b ldr r3, [r3, #24]
  46812. 80140ae: 2b00 cmp r3, #0
  46813. 80140b0: d002 beq.n 80140b8 <osThreadNew+0x58>
  46814. prio = (UBaseType_t)attr->priority;
  46815. 80140b2: 687b ldr r3, [r7, #4]
  46816. 80140b4: 699b ldr r3, [r3, #24]
  46817. 80140b6: 61fb str r3, [r7, #28]
  46818. }
  46819. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  46820. 80140b8: 69fb ldr r3, [r7, #28]
  46821. 80140ba: 2b00 cmp r3, #0
  46822. 80140bc: d008 beq.n 80140d0 <osThreadNew+0x70>
  46823. 80140be: 69fb ldr r3, [r7, #28]
  46824. 80140c0: 2b38 cmp r3, #56 @ 0x38
  46825. 80140c2: d805 bhi.n 80140d0 <osThreadNew+0x70>
  46826. 80140c4: 687b ldr r3, [r7, #4]
  46827. 80140c6: 685b ldr r3, [r3, #4]
  46828. 80140c8: f003 0301 and.w r3, r3, #1
  46829. 80140cc: 2b00 cmp r3, #0
  46830. 80140ce: d001 beq.n 80140d4 <osThreadNew+0x74>
  46831. return (NULL);
  46832. 80140d0: 2300 movs r3, #0
  46833. 80140d2: e054 b.n 801417e <osThreadNew+0x11e>
  46834. }
  46835. if (attr->stack_size > 0U) {
  46836. 80140d4: 687b ldr r3, [r7, #4]
  46837. 80140d6: 695b ldr r3, [r3, #20]
  46838. 80140d8: 2b00 cmp r3, #0
  46839. 80140da: d003 beq.n 80140e4 <osThreadNew+0x84>
  46840. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  46841. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  46842. stack = attr->stack_size / sizeof(StackType_t);
  46843. 80140dc: 687b ldr r3, [r7, #4]
  46844. 80140de: 695b ldr r3, [r3, #20]
  46845. 80140e0: 089b lsrs r3, r3, #2
  46846. 80140e2: 623b str r3, [r7, #32]
  46847. }
  46848. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46849. 80140e4: 687b ldr r3, [r7, #4]
  46850. 80140e6: 689b ldr r3, [r3, #8]
  46851. 80140e8: 2b00 cmp r3, #0
  46852. 80140ea: d00e beq.n 801410a <osThreadNew+0xaa>
  46853. 80140ec: 687b ldr r3, [r7, #4]
  46854. 80140ee: 68db ldr r3, [r3, #12]
  46855. 80140f0: 2ba7 cmp r3, #167 @ 0xa7
  46856. 80140f2: d90a bls.n 801410a <osThreadNew+0xaa>
  46857. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46858. 80140f4: 687b ldr r3, [r7, #4]
  46859. 80140f6: 691b ldr r3, [r3, #16]
  46860. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46861. 80140f8: 2b00 cmp r3, #0
  46862. 80140fa: d006 beq.n 801410a <osThreadNew+0xaa>
  46863. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46864. 80140fc: 687b ldr r3, [r7, #4]
  46865. 80140fe: 695b ldr r3, [r3, #20]
  46866. 8014100: 2b00 cmp r3, #0
  46867. 8014102: d002 beq.n 801410a <osThreadNew+0xaa>
  46868. mem = 1;
  46869. 8014104: 2301 movs r3, #1
  46870. 8014106: 61bb str r3, [r7, #24]
  46871. 8014108: e010 b.n 801412c <osThreadNew+0xcc>
  46872. }
  46873. else {
  46874. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  46875. 801410a: 687b ldr r3, [r7, #4]
  46876. 801410c: 689b ldr r3, [r3, #8]
  46877. 801410e: 2b00 cmp r3, #0
  46878. 8014110: d10c bne.n 801412c <osThreadNew+0xcc>
  46879. 8014112: 687b ldr r3, [r7, #4]
  46880. 8014114: 68db ldr r3, [r3, #12]
  46881. 8014116: 2b00 cmp r3, #0
  46882. 8014118: d108 bne.n 801412c <osThreadNew+0xcc>
  46883. 801411a: 687b ldr r3, [r7, #4]
  46884. 801411c: 691b ldr r3, [r3, #16]
  46885. 801411e: 2b00 cmp r3, #0
  46886. 8014120: d104 bne.n 801412c <osThreadNew+0xcc>
  46887. mem = 0;
  46888. 8014122: 2300 movs r3, #0
  46889. 8014124: 61bb str r3, [r7, #24]
  46890. 8014126: e001 b.n 801412c <osThreadNew+0xcc>
  46891. }
  46892. }
  46893. }
  46894. else {
  46895. mem = 0;
  46896. 8014128: 2300 movs r3, #0
  46897. 801412a: 61bb str r3, [r7, #24]
  46898. }
  46899. if (mem == 1) {
  46900. 801412c: 69bb ldr r3, [r7, #24]
  46901. 801412e: 2b01 cmp r3, #1
  46902. 8014130: d110 bne.n 8014154 <osThreadNew+0xf4>
  46903. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46904. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46905. 8014132: 687b ldr r3, [r7, #4]
  46906. 8014134: 691b ldr r3, [r3, #16]
  46907. (StaticTask_t *)attr->cb_mem);
  46908. 8014136: 687a ldr r2, [r7, #4]
  46909. 8014138: 6892 ldr r2, [r2, #8]
  46910. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46911. 801413a: 9202 str r2, [sp, #8]
  46912. 801413c: 9301 str r3, [sp, #4]
  46913. 801413e: 69fb ldr r3, [r7, #28]
  46914. 8014140: 9300 str r3, [sp, #0]
  46915. 8014142: 68bb ldr r3, [r7, #8]
  46916. 8014144: 6a3a ldr r2, [r7, #32]
  46917. 8014146: 6a79 ldr r1, [r7, #36] @ 0x24
  46918. 8014148: 68f8 ldr r0, [r7, #12]
  46919. 801414a: f001 fdac bl 8015ca6 <xTaskCreateStatic>
  46920. 801414e: 4603 mov r3, r0
  46921. 8014150: 613b str r3, [r7, #16]
  46922. 8014152: e013 b.n 801417c <osThreadNew+0x11c>
  46923. #endif
  46924. }
  46925. else {
  46926. if (mem == 0) {
  46927. 8014154: 69bb ldr r3, [r7, #24]
  46928. 8014156: 2b00 cmp r3, #0
  46929. 8014158: d110 bne.n 801417c <osThreadNew+0x11c>
  46930. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46931. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  46932. 801415a: 6a3b ldr r3, [r7, #32]
  46933. 801415c: b29a uxth r2, r3
  46934. 801415e: f107 0310 add.w r3, r7, #16
  46935. 8014162: 9301 str r3, [sp, #4]
  46936. 8014164: 69fb ldr r3, [r7, #28]
  46937. 8014166: 9300 str r3, [sp, #0]
  46938. 8014168: 68bb ldr r3, [r7, #8]
  46939. 801416a: 6a79 ldr r1, [r7, #36] @ 0x24
  46940. 801416c: 68f8 ldr r0, [r7, #12]
  46941. 801416e: f001 fdfa bl 8015d66 <xTaskCreate>
  46942. 8014172: 4603 mov r3, r0
  46943. 8014174: 2b01 cmp r3, #1
  46944. 8014176: d001 beq.n 801417c <osThreadNew+0x11c>
  46945. hTask = NULL;
  46946. 8014178: 2300 movs r3, #0
  46947. 801417a: 613b str r3, [r7, #16]
  46948. #endif
  46949. }
  46950. }
  46951. }
  46952. return ((osThreadId_t)hTask);
  46953. 801417c: 693b ldr r3, [r7, #16]
  46954. }
  46955. 801417e: 4618 mov r0, r3
  46956. 8014180: 3728 adds r7, #40 @ 0x28
  46957. 8014182: 46bd mov sp, r7
  46958. 8014184: bd80 pop {r7, pc}
  46959. 08014186 <osDelay>:
  46960. /* Return flags before clearing */
  46961. return (rflags);
  46962. }
  46963. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  46964. osStatus_t osDelay (uint32_t ticks) {
  46965. 8014186: b580 push {r7, lr}
  46966. 8014188: b084 sub sp, #16
  46967. 801418a: af00 add r7, sp, #0
  46968. 801418c: 6078 str r0, [r7, #4]
  46969. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46970. 801418e: f3ef 8305 mrs r3, IPSR
  46971. 8014192: 60bb str r3, [r7, #8]
  46972. return(result);
  46973. 8014194: 68bb ldr r3, [r7, #8]
  46974. osStatus_t stat;
  46975. if (IS_IRQ()) {
  46976. 8014196: 2b00 cmp r3, #0
  46977. 8014198: d003 beq.n 80141a2 <osDelay+0x1c>
  46978. stat = osErrorISR;
  46979. 801419a: f06f 0305 mvn.w r3, #5
  46980. 801419e: 60fb str r3, [r7, #12]
  46981. 80141a0: e007 b.n 80141b2 <osDelay+0x2c>
  46982. }
  46983. else {
  46984. stat = osOK;
  46985. 80141a2: 2300 movs r3, #0
  46986. 80141a4: 60fb str r3, [r7, #12]
  46987. if (ticks != 0U) {
  46988. 80141a6: 687b ldr r3, [r7, #4]
  46989. 80141a8: 2b00 cmp r3, #0
  46990. 80141aa: d002 beq.n 80141b2 <osDelay+0x2c>
  46991. vTaskDelay(ticks);
  46992. 80141ac: 6878 ldr r0, [r7, #4]
  46993. 80141ae: f001 ff37 bl 8016020 <vTaskDelay>
  46994. }
  46995. }
  46996. return (stat);
  46997. 80141b2: 68fb ldr r3, [r7, #12]
  46998. }
  46999. 80141b4: 4618 mov r0, r3
  47000. 80141b6: 3710 adds r7, #16
  47001. 80141b8: 46bd mov sp, r7
  47002. 80141ba: bd80 pop {r7, pc}
  47003. 080141bc <TimerCallback>:
  47004. }
  47005. /*---------------------------------------------------------------------------*/
  47006. #if (configUSE_OS2_TIMER == 1)
  47007. static void TimerCallback (TimerHandle_t hTimer) {
  47008. 80141bc: b580 push {r7, lr}
  47009. 80141be: b084 sub sp, #16
  47010. 80141c0: af00 add r7, sp, #0
  47011. 80141c2: 6078 str r0, [r7, #4]
  47012. TimerCallback_t *callb;
  47013. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  47014. 80141c4: 6878 ldr r0, [r7, #4]
  47015. 80141c6: f003 fc3d bl 8017a44 <pvTimerGetTimerID>
  47016. 80141ca: 60f8 str r0, [r7, #12]
  47017. if (callb != NULL) {
  47018. 80141cc: 68fb ldr r3, [r7, #12]
  47019. 80141ce: 2b00 cmp r3, #0
  47020. 80141d0: d005 beq.n 80141de <TimerCallback+0x22>
  47021. callb->func (callb->arg);
  47022. 80141d2: 68fb ldr r3, [r7, #12]
  47023. 80141d4: 681b ldr r3, [r3, #0]
  47024. 80141d6: 68fa ldr r2, [r7, #12]
  47025. 80141d8: 6852 ldr r2, [r2, #4]
  47026. 80141da: 4610 mov r0, r2
  47027. 80141dc: 4798 blx r3
  47028. }
  47029. }
  47030. 80141de: bf00 nop
  47031. 80141e0: 3710 adds r7, #16
  47032. 80141e2: 46bd mov sp, r7
  47033. 80141e4: bd80 pop {r7, pc}
  47034. ...
  47035. 080141e8 <osTimerNew>:
  47036. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  47037. 80141e8: b580 push {r7, lr}
  47038. 80141ea: b08c sub sp, #48 @ 0x30
  47039. 80141ec: af02 add r7, sp, #8
  47040. 80141ee: 60f8 str r0, [r7, #12]
  47041. 80141f0: 607a str r2, [r7, #4]
  47042. 80141f2: 603b str r3, [r7, #0]
  47043. 80141f4: 460b mov r3, r1
  47044. 80141f6: 72fb strb r3, [r7, #11]
  47045. TimerHandle_t hTimer;
  47046. TimerCallback_t *callb;
  47047. UBaseType_t reload;
  47048. int32_t mem;
  47049. hTimer = NULL;
  47050. 80141f8: 2300 movs r3, #0
  47051. 80141fa: 623b str r3, [r7, #32]
  47052. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47053. 80141fc: f3ef 8305 mrs r3, IPSR
  47054. 8014200: 613b str r3, [r7, #16]
  47055. return(result);
  47056. 8014202: 693b ldr r3, [r7, #16]
  47057. if (!IS_IRQ() && (func != NULL)) {
  47058. 8014204: 2b00 cmp r3, #0
  47059. 8014206: d163 bne.n 80142d0 <osTimerNew+0xe8>
  47060. 8014208: 68fb ldr r3, [r7, #12]
  47061. 801420a: 2b00 cmp r3, #0
  47062. 801420c: d060 beq.n 80142d0 <osTimerNew+0xe8>
  47063. /* Allocate memory to store callback function and argument */
  47064. callb = pvPortMalloc (sizeof(TimerCallback_t));
  47065. 801420e: 2008 movs r0, #8
  47066. 8014210: f003 fe8c bl 8017f2c <pvPortMalloc>
  47067. 8014214: 6178 str r0, [r7, #20]
  47068. if (callb != NULL) {
  47069. 8014216: 697b ldr r3, [r7, #20]
  47070. 8014218: 2b00 cmp r3, #0
  47071. 801421a: d059 beq.n 80142d0 <osTimerNew+0xe8>
  47072. callb->func = func;
  47073. 801421c: 697b ldr r3, [r7, #20]
  47074. 801421e: 68fa ldr r2, [r7, #12]
  47075. 8014220: 601a str r2, [r3, #0]
  47076. callb->arg = argument;
  47077. 8014222: 697b ldr r3, [r7, #20]
  47078. 8014224: 687a ldr r2, [r7, #4]
  47079. 8014226: 605a str r2, [r3, #4]
  47080. if (type == osTimerOnce) {
  47081. 8014228: 7afb ldrb r3, [r7, #11]
  47082. 801422a: 2b00 cmp r3, #0
  47083. 801422c: d102 bne.n 8014234 <osTimerNew+0x4c>
  47084. reload = pdFALSE;
  47085. 801422e: 2300 movs r3, #0
  47086. 8014230: 61fb str r3, [r7, #28]
  47087. 8014232: e001 b.n 8014238 <osTimerNew+0x50>
  47088. } else {
  47089. reload = pdTRUE;
  47090. 8014234: 2301 movs r3, #1
  47091. 8014236: 61fb str r3, [r7, #28]
  47092. }
  47093. mem = -1;
  47094. 8014238: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47095. 801423c: 61bb str r3, [r7, #24]
  47096. name = NULL;
  47097. 801423e: 2300 movs r3, #0
  47098. 8014240: 627b str r3, [r7, #36] @ 0x24
  47099. if (attr != NULL) {
  47100. 8014242: 683b ldr r3, [r7, #0]
  47101. 8014244: 2b00 cmp r3, #0
  47102. 8014246: d01c beq.n 8014282 <osTimerNew+0x9a>
  47103. if (attr->name != NULL) {
  47104. 8014248: 683b ldr r3, [r7, #0]
  47105. 801424a: 681b ldr r3, [r3, #0]
  47106. 801424c: 2b00 cmp r3, #0
  47107. 801424e: d002 beq.n 8014256 <osTimerNew+0x6e>
  47108. name = attr->name;
  47109. 8014250: 683b ldr r3, [r7, #0]
  47110. 8014252: 681b ldr r3, [r3, #0]
  47111. 8014254: 627b str r3, [r7, #36] @ 0x24
  47112. }
  47113. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  47114. 8014256: 683b ldr r3, [r7, #0]
  47115. 8014258: 689b ldr r3, [r3, #8]
  47116. 801425a: 2b00 cmp r3, #0
  47117. 801425c: d006 beq.n 801426c <osTimerNew+0x84>
  47118. 801425e: 683b ldr r3, [r7, #0]
  47119. 8014260: 68db ldr r3, [r3, #12]
  47120. 8014262: 2b2b cmp r3, #43 @ 0x2b
  47121. 8014264: d902 bls.n 801426c <osTimerNew+0x84>
  47122. mem = 1;
  47123. 8014266: 2301 movs r3, #1
  47124. 8014268: 61bb str r3, [r7, #24]
  47125. 801426a: e00c b.n 8014286 <osTimerNew+0x9e>
  47126. }
  47127. else {
  47128. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47129. 801426c: 683b ldr r3, [r7, #0]
  47130. 801426e: 689b ldr r3, [r3, #8]
  47131. 8014270: 2b00 cmp r3, #0
  47132. 8014272: d108 bne.n 8014286 <osTimerNew+0x9e>
  47133. 8014274: 683b ldr r3, [r7, #0]
  47134. 8014276: 68db ldr r3, [r3, #12]
  47135. 8014278: 2b00 cmp r3, #0
  47136. 801427a: d104 bne.n 8014286 <osTimerNew+0x9e>
  47137. mem = 0;
  47138. 801427c: 2300 movs r3, #0
  47139. 801427e: 61bb str r3, [r7, #24]
  47140. 8014280: e001 b.n 8014286 <osTimerNew+0x9e>
  47141. }
  47142. }
  47143. }
  47144. else {
  47145. mem = 0;
  47146. 8014282: 2300 movs r3, #0
  47147. 8014284: 61bb str r3, [r7, #24]
  47148. }
  47149. if (mem == 1) {
  47150. 8014286: 69bb ldr r3, [r7, #24]
  47151. 8014288: 2b01 cmp r3, #1
  47152. 801428a: d10c bne.n 80142a6 <osTimerNew+0xbe>
  47153. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47154. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  47155. 801428c: 683b ldr r3, [r7, #0]
  47156. 801428e: 689b ldr r3, [r3, #8]
  47157. 8014290: 9301 str r3, [sp, #4]
  47158. 8014292: 4b12 ldr r3, [pc, #72] @ (80142dc <osTimerNew+0xf4>)
  47159. 8014294: 9300 str r3, [sp, #0]
  47160. 8014296: 697b ldr r3, [r7, #20]
  47161. 8014298: 69fa ldr r2, [r7, #28]
  47162. 801429a: 2101 movs r1, #1
  47163. 801429c: 6a78 ldr r0, [r7, #36] @ 0x24
  47164. 801429e: f003 f81a bl 80172d6 <xTimerCreateStatic>
  47165. 80142a2: 6238 str r0, [r7, #32]
  47166. 80142a4: e00b b.n 80142be <osTimerNew+0xd6>
  47167. #endif
  47168. }
  47169. else {
  47170. if (mem == 0) {
  47171. 80142a6: 69bb ldr r3, [r7, #24]
  47172. 80142a8: 2b00 cmp r3, #0
  47173. 80142aa: d108 bne.n 80142be <osTimerNew+0xd6>
  47174. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47175. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  47176. 80142ac: 4b0b ldr r3, [pc, #44] @ (80142dc <osTimerNew+0xf4>)
  47177. 80142ae: 9300 str r3, [sp, #0]
  47178. 80142b0: 697b ldr r3, [r7, #20]
  47179. 80142b2: 69fa ldr r2, [r7, #28]
  47180. 80142b4: 2101 movs r1, #1
  47181. 80142b6: 6a78 ldr r0, [r7, #36] @ 0x24
  47182. 80142b8: f002 ffec bl 8017294 <xTimerCreate>
  47183. 80142bc: 6238 str r0, [r7, #32]
  47184. #endif
  47185. }
  47186. }
  47187. if ((hTimer == NULL) && (callb != NULL)) {
  47188. 80142be: 6a3b ldr r3, [r7, #32]
  47189. 80142c0: 2b00 cmp r3, #0
  47190. 80142c2: d105 bne.n 80142d0 <osTimerNew+0xe8>
  47191. 80142c4: 697b ldr r3, [r7, #20]
  47192. 80142c6: 2b00 cmp r3, #0
  47193. 80142c8: d002 beq.n 80142d0 <osTimerNew+0xe8>
  47194. vPortFree (callb);
  47195. 80142ca: 6978 ldr r0, [r7, #20]
  47196. 80142cc: f003 fefc bl 80180c8 <vPortFree>
  47197. }
  47198. }
  47199. }
  47200. return ((osTimerId_t)hTimer);
  47201. 80142d0: 6a3b ldr r3, [r7, #32]
  47202. }
  47203. 80142d2: 4618 mov r0, r3
  47204. 80142d4: 3728 adds r7, #40 @ 0x28
  47205. 80142d6: 46bd mov sp, r7
  47206. 80142d8: bd80 pop {r7, pc}
  47207. 80142da: bf00 nop
  47208. 80142dc: 080141bd .word 0x080141bd
  47209. 080142e0 <osTimerStart>:
  47210. }
  47211. return (p);
  47212. }
  47213. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  47214. 80142e0: b580 push {r7, lr}
  47215. 80142e2: b088 sub sp, #32
  47216. 80142e4: af02 add r7, sp, #8
  47217. 80142e6: 6078 str r0, [r7, #4]
  47218. 80142e8: 6039 str r1, [r7, #0]
  47219. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47220. 80142ea: 687b ldr r3, [r7, #4]
  47221. 80142ec: 613b str r3, [r7, #16]
  47222. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47223. 80142ee: f3ef 8305 mrs r3, IPSR
  47224. 80142f2: 60fb str r3, [r7, #12]
  47225. return(result);
  47226. 80142f4: 68fb ldr r3, [r7, #12]
  47227. osStatus_t stat;
  47228. if (IS_IRQ()) {
  47229. 80142f6: 2b00 cmp r3, #0
  47230. 80142f8: d003 beq.n 8014302 <osTimerStart+0x22>
  47231. stat = osErrorISR;
  47232. 80142fa: f06f 0305 mvn.w r3, #5
  47233. 80142fe: 617b str r3, [r7, #20]
  47234. 8014300: e017 b.n 8014332 <osTimerStart+0x52>
  47235. }
  47236. else if (hTimer == NULL) {
  47237. 8014302: 693b ldr r3, [r7, #16]
  47238. 8014304: 2b00 cmp r3, #0
  47239. 8014306: d103 bne.n 8014310 <osTimerStart+0x30>
  47240. stat = osErrorParameter;
  47241. 8014308: f06f 0303 mvn.w r3, #3
  47242. 801430c: 617b str r3, [r7, #20]
  47243. 801430e: e010 b.n 8014332 <osTimerStart+0x52>
  47244. }
  47245. else {
  47246. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  47247. 8014310: 2300 movs r3, #0
  47248. 8014312: 9300 str r3, [sp, #0]
  47249. 8014314: 2300 movs r3, #0
  47250. 8014316: 683a ldr r2, [r7, #0]
  47251. 8014318: 2104 movs r1, #4
  47252. 801431a: 6938 ldr r0, [r7, #16]
  47253. 801431c: f003 f858 bl 80173d0 <xTimerGenericCommand>
  47254. 8014320: 4603 mov r3, r0
  47255. 8014322: 2b01 cmp r3, #1
  47256. 8014324: d102 bne.n 801432c <osTimerStart+0x4c>
  47257. stat = osOK;
  47258. 8014326: 2300 movs r3, #0
  47259. 8014328: 617b str r3, [r7, #20]
  47260. 801432a: e002 b.n 8014332 <osTimerStart+0x52>
  47261. } else {
  47262. stat = osErrorResource;
  47263. 801432c: f06f 0302 mvn.w r3, #2
  47264. 8014330: 617b str r3, [r7, #20]
  47265. }
  47266. }
  47267. return (stat);
  47268. 8014332: 697b ldr r3, [r7, #20]
  47269. }
  47270. 8014334: 4618 mov r0, r3
  47271. 8014336: 3718 adds r7, #24
  47272. 8014338: 46bd mov sp, r7
  47273. 801433a: bd80 pop {r7, pc}
  47274. 0801433c <osTimerStop>:
  47275. osStatus_t osTimerStop (osTimerId_t timer_id) {
  47276. 801433c: b580 push {r7, lr}
  47277. 801433e: b088 sub sp, #32
  47278. 8014340: af02 add r7, sp, #8
  47279. 8014342: 6078 str r0, [r7, #4]
  47280. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47281. 8014344: 687b ldr r3, [r7, #4]
  47282. 8014346: 613b str r3, [r7, #16]
  47283. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47284. 8014348: f3ef 8305 mrs r3, IPSR
  47285. 801434c: 60fb str r3, [r7, #12]
  47286. return(result);
  47287. 801434e: 68fb ldr r3, [r7, #12]
  47288. osStatus_t stat;
  47289. if (IS_IRQ()) {
  47290. 8014350: 2b00 cmp r3, #0
  47291. 8014352: d003 beq.n 801435c <osTimerStop+0x20>
  47292. stat = osErrorISR;
  47293. 8014354: f06f 0305 mvn.w r3, #5
  47294. 8014358: 617b str r3, [r7, #20]
  47295. 801435a: e021 b.n 80143a0 <osTimerStop+0x64>
  47296. }
  47297. else if (hTimer == NULL) {
  47298. 801435c: 693b ldr r3, [r7, #16]
  47299. 801435e: 2b00 cmp r3, #0
  47300. 8014360: d103 bne.n 801436a <osTimerStop+0x2e>
  47301. stat = osErrorParameter;
  47302. 8014362: f06f 0303 mvn.w r3, #3
  47303. 8014366: 617b str r3, [r7, #20]
  47304. 8014368: e01a b.n 80143a0 <osTimerStop+0x64>
  47305. }
  47306. else {
  47307. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  47308. 801436a: 6938 ldr r0, [r7, #16]
  47309. 801436c: f003 fb40 bl 80179f0 <xTimerIsTimerActive>
  47310. 8014370: 4603 mov r3, r0
  47311. 8014372: 2b00 cmp r3, #0
  47312. 8014374: d103 bne.n 801437e <osTimerStop+0x42>
  47313. stat = osErrorResource;
  47314. 8014376: f06f 0302 mvn.w r3, #2
  47315. 801437a: 617b str r3, [r7, #20]
  47316. 801437c: e010 b.n 80143a0 <osTimerStop+0x64>
  47317. }
  47318. else {
  47319. if (xTimerStop (hTimer, 0) == pdPASS) {
  47320. 801437e: 2300 movs r3, #0
  47321. 8014380: 9300 str r3, [sp, #0]
  47322. 8014382: 2300 movs r3, #0
  47323. 8014384: 2200 movs r2, #0
  47324. 8014386: 2103 movs r1, #3
  47325. 8014388: 6938 ldr r0, [r7, #16]
  47326. 801438a: f003 f821 bl 80173d0 <xTimerGenericCommand>
  47327. 801438e: 4603 mov r3, r0
  47328. 8014390: 2b01 cmp r3, #1
  47329. 8014392: d102 bne.n 801439a <osTimerStop+0x5e>
  47330. stat = osOK;
  47331. 8014394: 2300 movs r3, #0
  47332. 8014396: 617b str r3, [r7, #20]
  47333. 8014398: e002 b.n 80143a0 <osTimerStop+0x64>
  47334. } else {
  47335. stat = osError;
  47336. 801439a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47337. 801439e: 617b str r3, [r7, #20]
  47338. }
  47339. }
  47340. }
  47341. return (stat);
  47342. 80143a0: 697b ldr r3, [r7, #20]
  47343. }
  47344. 80143a2: 4618 mov r0, r3
  47345. 80143a4: 3718 adds r7, #24
  47346. 80143a6: 46bd mov sp, r7
  47347. 80143a8: bd80 pop {r7, pc}
  47348. 080143aa <osMutexNew>:
  47349. }
  47350. /*---------------------------------------------------------------------------*/
  47351. #if (configUSE_OS2_MUTEX == 1)
  47352. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  47353. 80143aa: b580 push {r7, lr}
  47354. 80143ac: b088 sub sp, #32
  47355. 80143ae: af00 add r7, sp, #0
  47356. 80143b0: 6078 str r0, [r7, #4]
  47357. int32_t mem;
  47358. #if (configQUEUE_REGISTRY_SIZE > 0)
  47359. const char *name;
  47360. #endif
  47361. hMutex = NULL;
  47362. 80143b2: 2300 movs r3, #0
  47363. 80143b4: 61fb str r3, [r7, #28]
  47364. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47365. 80143b6: f3ef 8305 mrs r3, IPSR
  47366. 80143ba: 60bb str r3, [r7, #8]
  47367. return(result);
  47368. 80143bc: 68bb ldr r3, [r7, #8]
  47369. if (!IS_IRQ()) {
  47370. 80143be: 2b00 cmp r3, #0
  47371. 80143c0: d174 bne.n 80144ac <osMutexNew+0x102>
  47372. if (attr != NULL) {
  47373. 80143c2: 687b ldr r3, [r7, #4]
  47374. 80143c4: 2b00 cmp r3, #0
  47375. 80143c6: d003 beq.n 80143d0 <osMutexNew+0x26>
  47376. type = attr->attr_bits;
  47377. 80143c8: 687b ldr r3, [r7, #4]
  47378. 80143ca: 685b ldr r3, [r3, #4]
  47379. 80143cc: 61bb str r3, [r7, #24]
  47380. 80143ce: e001 b.n 80143d4 <osMutexNew+0x2a>
  47381. } else {
  47382. type = 0U;
  47383. 80143d0: 2300 movs r3, #0
  47384. 80143d2: 61bb str r3, [r7, #24]
  47385. }
  47386. if ((type & osMutexRecursive) == osMutexRecursive) {
  47387. 80143d4: 69bb ldr r3, [r7, #24]
  47388. 80143d6: f003 0301 and.w r3, r3, #1
  47389. 80143da: 2b00 cmp r3, #0
  47390. 80143dc: d002 beq.n 80143e4 <osMutexNew+0x3a>
  47391. rmtx = 1U;
  47392. 80143de: 2301 movs r3, #1
  47393. 80143e0: 617b str r3, [r7, #20]
  47394. 80143e2: e001 b.n 80143e8 <osMutexNew+0x3e>
  47395. } else {
  47396. rmtx = 0U;
  47397. 80143e4: 2300 movs r3, #0
  47398. 80143e6: 617b str r3, [r7, #20]
  47399. }
  47400. if ((type & osMutexRobust) != osMutexRobust) {
  47401. 80143e8: 69bb ldr r3, [r7, #24]
  47402. 80143ea: f003 0308 and.w r3, r3, #8
  47403. 80143ee: 2b00 cmp r3, #0
  47404. 80143f0: d15c bne.n 80144ac <osMutexNew+0x102>
  47405. mem = -1;
  47406. 80143f2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47407. 80143f6: 613b str r3, [r7, #16]
  47408. if (attr != NULL) {
  47409. 80143f8: 687b ldr r3, [r7, #4]
  47410. 80143fa: 2b00 cmp r3, #0
  47411. 80143fc: d015 beq.n 801442a <osMutexNew+0x80>
  47412. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  47413. 80143fe: 687b ldr r3, [r7, #4]
  47414. 8014400: 689b ldr r3, [r3, #8]
  47415. 8014402: 2b00 cmp r3, #0
  47416. 8014404: d006 beq.n 8014414 <osMutexNew+0x6a>
  47417. 8014406: 687b ldr r3, [r7, #4]
  47418. 8014408: 68db ldr r3, [r3, #12]
  47419. 801440a: 2b4f cmp r3, #79 @ 0x4f
  47420. 801440c: d902 bls.n 8014414 <osMutexNew+0x6a>
  47421. mem = 1;
  47422. 801440e: 2301 movs r3, #1
  47423. 8014410: 613b str r3, [r7, #16]
  47424. 8014412: e00c b.n 801442e <osMutexNew+0x84>
  47425. }
  47426. else {
  47427. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47428. 8014414: 687b ldr r3, [r7, #4]
  47429. 8014416: 689b ldr r3, [r3, #8]
  47430. 8014418: 2b00 cmp r3, #0
  47431. 801441a: d108 bne.n 801442e <osMutexNew+0x84>
  47432. 801441c: 687b ldr r3, [r7, #4]
  47433. 801441e: 68db ldr r3, [r3, #12]
  47434. 8014420: 2b00 cmp r3, #0
  47435. 8014422: d104 bne.n 801442e <osMutexNew+0x84>
  47436. mem = 0;
  47437. 8014424: 2300 movs r3, #0
  47438. 8014426: 613b str r3, [r7, #16]
  47439. 8014428: e001 b.n 801442e <osMutexNew+0x84>
  47440. }
  47441. }
  47442. }
  47443. else {
  47444. mem = 0;
  47445. 801442a: 2300 movs r3, #0
  47446. 801442c: 613b str r3, [r7, #16]
  47447. }
  47448. if (mem == 1) {
  47449. 801442e: 693b ldr r3, [r7, #16]
  47450. 8014430: 2b01 cmp r3, #1
  47451. 8014432: d112 bne.n 801445a <osMutexNew+0xb0>
  47452. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47453. if (rmtx != 0U) {
  47454. 8014434: 697b ldr r3, [r7, #20]
  47455. 8014436: 2b00 cmp r3, #0
  47456. 8014438: d007 beq.n 801444a <osMutexNew+0xa0>
  47457. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47458. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  47459. 801443a: 687b ldr r3, [r7, #4]
  47460. 801443c: 689b ldr r3, [r3, #8]
  47461. 801443e: 4619 mov r1, r3
  47462. 8014440: 2004 movs r0, #4
  47463. 8014442: f000 fc50 bl 8014ce6 <xQueueCreateMutexStatic>
  47464. 8014446: 61f8 str r0, [r7, #28]
  47465. 8014448: e016 b.n 8014478 <osMutexNew+0xce>
  47466. #endif
  47467. }
  47468. else {
  47469. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  47470. 801444a: 687b ldr r3, [r7, #4]
  47471. 801444c: 689b ldr r3, [r3, #8]
  47472. 801444e: 4619 mov r1, r3
  47473. 8014450: 2001 movs r0, #1
  47474. 8014452: f000 fc48 bl 8014ce6 <xQueueCreateMutexStatic>
  47475. 8014456: 61f8 str r0, [r7, #28]
  47476. 8014458: e00e b.n 8014478 <osMutexNew+0xce>
  47477. }
  47478. #endif
  47479. }
  47480. else {
  47481. if (mem == 0) {
  47482. 801445a: 693b ldr r3, [r7, #16]
  47483. 801445c: 2b00 cmp r3, #0
  47484. 801445e: d10b bne.n 8014478 <osMutexNew+0xce>
  47485. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47486. if (rmtx != 0U) {
  47487. 8014460: 697b ldr r3, [r7, #20]
  47488. 8014462: 2b00 cmp r3, #0
  47489. 8014464: d004 beq.n 8014470 <osMutexNew+0xc6>
  47490. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47491. hMutex = xSemaphoreCreateRecursiveMutex ();
  47492. 8014466: 2004 movs r0, #4
  47493. 8014468: f000 fc25 bl 8014cb6 <xQueueCreateMutex>
  47494. 801446c: 61f8 str r0, [r7, #28]
  47495. 801446e: e003 b.n 8014478 <osMutexNew+0xce>
  47496. #endif
  47497. } else {
  47498. hMutex = xSemaphoreCreateMutex ();
  47499. 8014470: 2001 movs r0, #1
  47500. 8014472: f000 fc20 bl 8014cb6 <xQueueCreateMutex>
  47501. 8014476: 61f8 str r0, [r7, #28]
  47502. #endif
  47503. }
  47504. }
  47505. #if (configQUEUE_REGISTRY_SIZE > 0)
  47506. if (hMutex != NULL) {
  47507. 8014478: 69fb ldr r3, [r7, #28]
  47508. 801447a: 2b00 cmp r3, #0
  47509. 801447c: d00c beq.n 8014498 <osMutexNew+0xee>
  47510. if (attr != NULL) {
  47511. 801447e: 687b ldr r3, [r7, #4]
  47512. 8014480: 2b00 cmp r3, #0
  47513. 8014482: d003 beq.n 801448c <osMutexNew+0xe2>
  47514. name = attr->name;
  47515. 8014484: 687b ldr r3, [r7, #4]
  47516. 8014486: 681b ldr r3, [r3, #0]
  47517. 8014488: 60fb str r3, [r7, #12]
  47518. 801448a: e001 b.n 8014490 <osMutexNew+0xe6>
  47519. } else {
  47520. name = NULL;
  47521. 801448c: 2300 movs r3, #0
  47522. 801448e: 60fb str r3, [r7, #12]
  47523. }
  47524. vQueueAddToRegistry (hMutex, name);
  47525. 8014490: 68f9 ldr r1, [r7, #12]
  47526. 8014492: 69f8 ldr r0, [r7, #28]
  47527. 8014494: f001 f9ea bl 801586c <vQueueAddToRegistry>
  47528. }
  47529. #endif
  47530. if ((hMutex != NULL) && (rmtx != 0U)) {
  47531. 8014498: 69fb ldr r3, [r7, #28]
  47532. 801449a: 2b00 cmp r3, #0
  47533. 801449c: d006 beq.n 80144ac <osMutexNew+0x102>
  47534. 801449e: 697b ldr r3, [r7, #20]
  47535. 80144a0: 2b00 cmp r3, #0
  47536. 80144a2: d003 beq.n 80144ac <osMutexNew+0x102>
  47537. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  47538. 80144a4: 69fb ldr r3, [r7, #28]
  47539. 80144a6: f043 0301 orr.w r3, r3, #1
  47540. 80144aa: 61fb str r3, [r7, #28]
  47541. }
  47542. }
  47543. }
  47544. return ((osMutexId_t)hMutex);
  47545. 80144ac: 69fb ldr r3, [r7, #28]
  47546. }
  47547. 80144ae: 4618 mov r0, r3
  47548. 80144b0: 3720 adds r7, #32
  47549. 80144b2: 46bd mov sp, r7
  47550. 80144b4: bd80 pop {r7, pc}
  47551. 080144b6 <osMutexAcquire>:
  47552. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  47553. 80144b6: b580 push {r7, lr}
  47554. 80144b8: b086 sub sp, #24
  47555. 80144ba: af00 add r7, sp, #0
  47556. 80144bc: 6078 str r0, [r7, #4]
  47557. 80144be: 6039 str r1, [r7, #0]
  47558. SemaphoreHandle_t hMutex;
  47559. osStatus_t stat;
  47560. uint32_t rmtx;
  47561. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47562. 80144c0: 687b ldr r3, [r7, #4]
  47563. 80144c2: f023 0301 bic.w r3, r3, #1
  47564. 80144c6: 613b str r3, [r7, #16]
  47565. rmtx = (uint32_t)mutex_id & 1U;
  47566. 80144c8: 687b ldr r3, [r7, #4]
  47567. 80144ca: f003 0301 and.w r3, r3, #1
  47568. 80144ce: 60fb str r3, [r7, #12]
  47569. stat = osOK;
  47570. 80144d0: 2300 movs r3, #0
  47571. 80144d2: 617b str r3, [r7, #20]
  47572. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47573. 80144d4: f3ef 8305 mrs r3, IPSR
  47574. 80144d8: 60bb str r3, [r7, #8]
  47575. return(result);
  47576. 80144da: 68bb ldr r3, [r7, #8]
  47577. if (IS_IRQ()) {
  47578. 80144dc: 2b00 cmp r3, #0
  47579. 80144de: d003 beq.n 80144e8 <osMutexAcquire+0x32>
  47580. stat = osErrorISR;
  47581. 80144e0: f06f 0305 mvn.w r3, #5
  47582. 80144e4: 617b str r3, [r7, #20]
  47583. 80144e6: e02c b.n 8014542 <osMutexAcquire+0x8c>
  47584. }
  47585. else if (hMutex == NULL) {
  47586. 80144e8: 693b ldr r3, [r7, #16]
  47587. 80144ea: 2b00 cmp r3, #0
  47588. 80144ec: d103 bne.n 80144f6 <osMutexAcquire+0x40>
  47589. stat = osErrorParameter;
  47590. 80144ee: f06f 0303 mvn.w r3, #3
  47591. 80144f2: 617b str r3, [r7, #20]
  47592. 80144f4: e025 b.n 8014542 <osMutexAcquire+0x8c>
  47593. }
  47594. else {
  47595. if (rmtx != 0U) {
  47596. 80144f6: 68fb ldr r3, [r7, #12]
  47597. 80144f8: 2b00 cmp r3, #0
  47598. 80144fa: d011 beq.n 8014520 <osMutexAcquire+0x6a>
  47599. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47600. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  47601. 80144fc: 6839 ldr r1, [r7, #0]
  47602. 80144fe: 6938 ldr r0, [r7, #16]
  47603. 8014500: f000 fc41 bl 8014d86 <xQueueTakeMutexRecursive>
  47604. 8014504: 4603 mov r3, r0
  47605. 8014506: 2b01 cmp r3, #1
  47606. 8014508: d01b beq.n 8014542 <osMutexAcquire+0x8c>
  47607. if (timeout != 0U) {
  47608. 801450a: 683b ldr r3, [r7, #0]
  47609. 801450c: 2b00 cmp r3, #0
  47610. 801450e: d003 beq.n 8014518 <osMutexAcquire+0x62>
  47611. stat = osErrorTimeout;
  47612. 8014510: f06f 0301 mvn.w r3, #1
  47613. 8014514: 617b str r3, [r7, #20]
  47614. 8014516: e014 b.n 8014542 <osMutexAcquire+0x8c>
  47615. } else {
  47616. stat = osErrorResource;
  47617. 8014518: f06f 0302 mvn.w r3, #2
  47618. 801451c: 617b str r3, [r7, #20]
  47619. 801451e: e010 b.n 8014542 <osMutexAcquire+0x8c>
  47620. }
  47621. }
  47622. #endif
  47623. }
  47624. else {
  47625. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  47626. 8014520: 6839 ldr r1, [r7, #0]
  47627. 8014522: 6938 ldr r0, [r7, #16]
  47628. 8014524: f000 fee8 bl 80152f8 <xQueueSemaphoreTake>
  47629. 8014528: 4603 mov r3, r0
  47630. 801452a: 2b01 cmp r3, #1
  47631. 801452c: d009 beq.n 8014542 <osMutexAcquire+0x8c>
  47632. if (timeout != 0U) {
  47633. 801452e: 683b ldr r3, [r7, #0]
  47634. 8014530: 2b00 cmp r3, #0
  47635. 8014532: d003 beq.n 801453c <osMutexAcquire+0x86>
  47636. stat = osErrorTimeout;
  47637. 8014534: f06f 0301 mvn.w r3, #1
  47638. 8014538: 617b str r3, [r7, #20]
  47639. 801453a: e002 b.n 8014542 <osMutexAcquire+0x8c>
  47640. } else {
  47641. stat = osErrorResource;
  47642. 801453c: f06f 0302 mvn.w r3, #2
  47643. 8014540: 617b str r3, [r7, #20]
  47644. }
  47645. }
  47646. }
  47647. }
  47648. return (stat);
  47649. 8014542: 697b ldr r3, [r7, #20]
  47650. }
  47651. 8014544: 4618 mov r0, r3
  47652. 8014546: 3718 adds r7, #24
  47653. 8014548: 46bd mov sp, r7
  47654. 801454a: bd80 pop {r7, pc}
  47655. 0801454c <osMutexRelease>:
  47656. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  47657. 801454c: b580 push {r7, lr}
  47658. 801454e: b086 sub sp, #24
  47659. 8014550: af00 add r7, sp, #0
  47660. 8014552: 6078 str r0, [r7, #4]
  47661. SemaphoreHandle_t hMutex;
  47662. osStatus_t stat;
  47663. uint32_t rmtx;
  47664. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47665. 8014554: 687b ldr r3, [r7, #4]
  47666. 8014556: f023 0301 bic.w r3, r3, #1
  47667. 801455a: 613b str r3, [r7, #16]
  47668. rmtx = (uint32_t)mutex_id & 1U;
  47669. 801455c: 687b ldr r3, [r7, #4]
  47670. 801455e: f003 0301 and.w r3, r3, #1
  47671. 8014562: 60fb str r3, [r7, #12]
  47672. stat = osOK;
  47673. 8014564: 2300 movs r3, #0
  47674. 8014566: 617b str r3, [r7, #20]
  47675. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47676. 8014568: f3ef 8305 mrs r3, IPSR
  47677. 801456c: 60bb str r3, [r7, #8]
  47678. return(result);
  47679. 801456e: 68bb ldr r3, [r7, #8]
  47680. if (IS_IRQ()) {
  47681. 8014570: 2b00 cmp r3, #0
  47682. 8014572: d003 beq.n 801457c <osMutexRelease+0x30>
  47683. stat = osErrorISR;
  47684. 8014574: f06f 0305 mvn.w r3, #5
  47685. 8014578: 617b str r3, [r7, #20]
  47686. 801457a: e01f b.n 80145bc <osMutexRelease+0x70>
  47687. }
  47688. else if (hMutex == NULL) {
  47689. 801457c: 693b ldr r3, [r7, #16]
  47690. 801457e: 2b00 cmp r3, #0
  47691. 8014580: d103 bne.n 801458a <osMutexRelease+0x3e>
  47692. stat = osErrorParameter;
  47693. 8014582: f06f 0303 mvn.w r3, #3
  47694. 8014586: 617b str r3, [r7, #20]
  47695. 8014588: e018 b.n 80145bc <osMutexRelease+0x70>
  47696. }
  47697. else {
  47698. if (rmtx != 0U) {
  47699. 801458a: 68fb ldr r3, [r7, #12]
  47700. 801458c: 2b00 cmp r3, #0
  47701. 801458e: d009 beq.n 80145a4 <osMutexRelease+0x58>
  47702. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47703. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  47704. 8014590: 6938 ldr r0, [r7, #16]
  47705. 8014592: f000 fbc3 bl 8014d1c <xQueueGiveMutexRecursive>
  47706. 8014596: 4603 mov r3, r0
  47707. 8014598: 2b01 cmp r3, #1
  47708. 801459a: d00f beq.n 80145bc <osMutexRelease+0x70>
  47709. stat = osErrorResource;
  47710. 801459c: f06f 0302 mvn.w r3, #2
  47711. 80145a0: 617b str r3, [r7, #20]
  47712. 80145a2: e00b b.n 80145bc <osMutexRelease+0x70>
  47713. }
  47714. #endif
  47715. }
  47716. else {
  47717. if (xSemaphoreGive (hMutex) != pdPASS) {
  47718. 80145a4: 2300 movs r3, #0
  47719. 80145a6: 2200 movs r2, #0
  47720. 80145a8: 2100 movs r1, #0
  47721. 80145aa: 6938 ldr r0, [r7, #16]
  47722. 80145ac: f000 fc22 bl 8014df4 <xQueueGenericSend>
  47723. 80145b0: 4603 mov r3, r0
  47724. 80145b2: 2b01 cmp r3, #1
  47725. 80145b4: d002 beq.n 80145bc <osMutexRelease+0x70>
  47726. stat = osErrorResource;
  47727. 80145b6: f06f 0302 mvn.w r3, #2
  47728. 80145ba: 617b str r3, [r7, #20]
  47729. }
  47730. }
  47731. }
  47732. return (stat);
  47733. 80145bc: 697b ldr r3, [r7, #20]
  47734. }
  47735. 80145be: 4618 mov r0, r3
  47736. 80145c0: 3718 adds r7, #24
  47737. 80145c2: 46bd mov sp, r7
  47738. 80145c4: bd80 pop {r7, pc}
  47739. 080145c6 <osMessageQueueNew>:
  47740. return (stat);
  47741. }
  47742. /*---------------------------------------------------------------------------*/
  47743. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  47744. 80145c6: b580 push {r7, lr}
  47745. 80145c8: b08a sub sp, #40 @ 0x28
  47746. 80145ca: af02 add r7, sp, #8
  47747. 80145cc: 60f8 str r0, [r7, #12]
  47748. 80145ce: 60b9 str r1, [r7, #8]
  47749. 80145d0: 607a str r2, [r7, #4]
  47750. int32_t mem;
  47751. #if (configQUEUE_REGISTRY_SIZE > 0)
  47752. const char *name;
  47753. #endif
  47754. hQueue = NULL;
  47755. 80145d2: 2300 movs r3, #0
  47756. 80145d4: 61fb str r3, [r7, #28]
  47757. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47758. 80145d6: f3ef 8305 mrs r3, IPSR
  47759. 80145da: 613b str r3, [r7, #16]
  47760. return(result);
  47761. 80145dc: 693b ldr r3, [r7, #16]
  47762. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  47763. 80145de: 2b00 cmp r3, #0
  47764. 80145e0: d15f bne.n 80146a2 <osMessageQueueNew+0xdc>
  47765. 80145e2: 68fb ldr r3, [r7, #12]
  47766. 80145e4: 2b00 cmp r3, #0
  47767. 80145e6: d05c beq.n 80146a2 <osMessageQueueNew+0xdc>
  47768. 80145e8: 68bb ldr r3, [r7, #8]
  47769. 80145ea: 2b00 cmp r3, #0
  47770. 80145ec: d059 beq.n 80146a2 <osMessageQueueNew+0xdc>
  47771. mem = -1;
  47772. 80145ee: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47773. 80145f2: 61bb str r3, [r7, #24]
  47774. if (attr != NULL) {
  47775. 80145f4: 687b ldr r3, [r7, #4]
  47776. 80145f6: 2b00 cmp r3, #0
  47777. 80145f8: d029 beq.n 801464e <osMessageQueueNew+0x88>
  47778. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47779. 80145fa: 687b ldr r3, [r7, #4]
  47780. 80145fc: 689b ldr r3, [r3, #8]
  47781. 80145fe: 2b00 cmp r3, #0
  47782. 8014600: d012 beq.n 8014628 <osMessageQueueNew+0x62>
  47783. 8014602: 687b ldr r3, [r7, #4]
  47784. 8014604: 68db ldr r3, [r3, #12]
  47785. 8014606: 2b4f cmp r3, #79 @ 0x4f
  47786. 8014608: d90e bls.n 8014628 <osMessageQueueNew+0x62>
  47787. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47788. 801460a: 687b ldr r3, [r7, #4]
  47789. 801460c: 691b ldr r3, [r3, #16]
  47790. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47791. 801460e: 2b00 cmp r3, #0
  47792. 8014610: d00a beq.n 8014628 <osMessageQueueNew+0x62>
  47793. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47794. 8014612: 687b ldr r3, [r7, #4]
  47795. 8014614: 695a ldr r2, [r3, #20]
  47796. 8014616: 68fb ldr r3, [r7, #12]
  47797. 8014618: 68b9 ldr r1, [r7, #8]
  47798. 801461a: fb01 f303 mul.w r3, r1, r3
  47799. 801461e: 429a cmp r2, r3
  47800. 8014620: d302 bcc.n 8014628 <osMessageQueueNew+0x62>
  47801. mem = 1;
  47802. 8014622: 2301 movs r3, #1
  47803. 8014624: 61bb str r3, [r7, #24]
  47804. 8014626: e014 b.n 8014652 <osMessageQueueNew+0x8c>
  47805. }
  47806. else {
  47807. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47808. 8014628: 687b ldr r3, [r7, #4]
  47809. 801462a: 689b ldr r3, [r3, #8]
  47810. 801462c: 2b00 cmp r3, #0
  47811. 801462e: d110 bne.n 8014652 <osMessageQueueNew+0x8c>
  47812. 8014630: 687b ldr r3, [r7, #4]
  47813. 8014632: 68db ldr r3, [r3, #12]
  47814. 8014634: 2b00 cmp r3, #0
  47815. 8014636: d10c bne.n 8014652 <osMessageQueueNew+0x8c>
  47816. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47817. 8014638: 687b ldr r3, [r7, #4]
  47818. 801463a: 691b ldr r3, [r3, #16]
  47819. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47820. 801463c: 2b00 cmp r3, #0
  47821. 801463e: d108 bne.n 8014652 <osMessageQueueNew+0x8c>
  47822. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47823. 8014640: 687b ldr r3, [r7, #4]
  47824. 8014642: 695b ldr r3, [r3, #20]
  47825. 8014644: 2b00 cmp r3, #0
  47826. 8014646: d104 bne.n 8014652 <osMessageQueueNew+0x8c>
  47827. mem = 0;
  47828. 8014648: 2300 movs r3, #0
  47829. 801464a: 61bb str r3, [r7, #24]
  47830. 801464c: e001 b.n 8014652 <osMessageQueueNew+0x8c>
  47831. }
  47832. }
  47833. }
  47834. else {
  47835. mem = 0;
  47836. 801464e: 2300 movs r3, #0
  47837. 8014650: 61bb str r3, [r7, #24]
  47838. }
  47839. if (mem == 1) {
  47840. 8014652: 69bb ldr r3, [r7, #24]
  47841. 8014654: 2b01 cmp r3, #1
  47842. 8014656: d10b bne.n 8014670 <osMessageQueueNew+0xaa>
  47843. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47844. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  47845. 8014658: 687b ldr r3, [r7, #4]
  47846. 801465a: 691a ldr r2, [r3, #16]
  47847. 801465c: 687b ldr r3, [r7, #4]
  47848. 801465e: 689b ldr r3, [r3, #8]
  47849. 8014660: 2100 movs r1, #0
  47850. 8014662: 9100 str r1, [sp, #0]
  47851. 8014664: 68b9 ldr r1, [r7, #8]
  47852. 8014666: 68f8 ldr r0, [r7, #12]
  47853. 8014668: f000 fa30 bl 8014acc <xQueueGenericCreateStatic>
  47854. 801466c: 61f8 str r0, [r7, #28]
  47855. 801466e: e008 b.n 8014682 <osMessageQueueNew+0xbc>
  47856. #endif
  47857. }
  47858. else {
  47859. if (mem == 0) {
  47860. 8014670: 69bb ldr r3, [r7, #24]
  47861. 8014672: 2b00 cmp r3, #0
  47862. 8014674: d105 bne.n 8014682 <osMessageQueueNew+0xbc>
  47863. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47864. hQueue = xQueueCreate (msg_count, msg_size);
  47865. 8014676: 2200 movs r2, #0
  47866. 8014678: 68b9 ldr r1, [r7, #8]
  47867. 801467a: 68f8 ldr r0, [r7, #12]
  47868. 801467c: f000 faa3 bl 8014bc6 <xQueueGenericCreate>
  47869. 8014680: 61f8 str r0, [r7, #28]
  47870. #endif
  47871. }
  47872. }
  47873. #if (configQUEUE_REGISTRY_SIZE > 0)
  47874. if (hQueue != NULL) {
  47875. 8014682: 69fb ldr r3, [r7, #28]
  47876. 8014684: 2b00 cmp r3, #0
  47877. 8014686: d00c beq.n 80146a2 <osMessageQueueNew+0xdc>
  47878. if (attr != NULL) {
  47879. 8014688: 687b ldr r3, [r7, #4]
  47880. 801468a: 2b00 cmp r3, #0
  47881. 801468c: d003 beq.n 8014696 <osMessageQueueNew+0xd0>
  47882. name = attr->name;
  47883. 801468e: 687b ldr r3, [r7, #4]
  47884. 8014690: 681b ldr r3, [r3, #0]
  47885. 8014692: 617b str r3, [r7, #20]
  47886. 8014694: e001 b.n 801469a <osMessageQueueNew+0xd4>
  47887. } else {
  47888. name = NULL;
  47889. 8014696: 2300 movs r3, #0
  47890. 8014698: 617b str r3, [r7, #20]
  47891. }
  47892. vQueueAddToRegistry (hQueue, name);
  47893. 801469a: 6979 ldr r1, [r7, #20]
  47894. 801469c: 69f8 ldr r0, [r7, #28]
  47895. 801469e: f001 f8e5 bl 801586c <vQueueAddToRegistry>
  47896. }
  47897. #endif
  47898. }
  47899. return ((osMessageQueueId_t)hQueue);
  47900. 80146a2: 69fb ldr r3, [r7, #28]
  47901. }
  47902. 80146a4: 4618 mov r0, r3
  47903. 80146a6: 3720 adds r7, #32
  47904. 80146a8: 46bd mov sp, r7
  47905. 80146aa: bd80 pop {r7, pc}
  47906. 080146ac <osMessageQueuePut>:
  47907. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  47908. 80146ac: b580 push {r7, lr}
  47909. 80146ae: b088 sub sp, #32
  47910. 80146b0: af00 add r7, sp, #0
  47911. 80146b2: 60f8 str r0, [r7, #12]
  47912. 80146b4: 60b9 str r1, [r7, #8]
  47913. 80146b6: 603b str r3, [r7, #0]
  47914. 80146b8: 4613 mov r3, r2
  47915. 80146ba: 71fb strb r3, [r7, #7]
  47916. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47917. 80146bc: 68fb ldr r3, [r7, #12]
  47918. 80146be: 61bb str r3, [r7, #24]
  47919. osStatus_t stat;
  47920. BaseType_t yield;
  47921. (void)msg_prio; /* Message priority is ignored */
  47922. stat = osOK;
  47923. 80146c0: 2300 movs r3, #0
  47924. 80146c2: 61fb str r3, [r7, #28]
  47925. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47926. 80146c4: f3ef 8305 mrs r3, IPSR
  47927. 80146c8: 617b str r3, [r7, #20]
  47928. return(result);
  47929. 80146ca: 697b ldr r3, [r7, #20]
  47930. if (IS_IRQ()) {
  47931. 80146cc: 2b00 cmp r3, #0
  47932. 80146ce: d028 beq.n 8014722 <osMessageQueuePut+0x76>
  47933. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47934. 80146d0: 69bb ldr r3, [r7, #24]
  47935. 80146d2: 2b00 cmp r3, #0
  47936. 80146d4: d005 beq.n 80146e2 <osMessageQueuePut+0x36>
  47937. 80146d6: 68bb ldr r3, [r7, #8]
  47938. 80146d8: 2b00 cmp r3, #0
  47939. 80146da: d002 beq.n 80146e2 <osMessageQueuePut+0x36>
  47940. 80146dc: 683b ldr r3, [r7, #0]
  47941. 80146de: 2b00 cmp r3, #0
  47942. 80146e0: d003 beq.n 80146ea <osMessageQueuePut+0x3e>
  47943. stat = osErrorParameter;
  47944. 80146e2: f06f 0303 mvn.w r3, #3
  47945. 80146e6: 61fb str r3, [r7, #28]
  47946. 80146e8: e038 b.n 801475c <osMessageQueuePut+0xb0>
  47947. }
  47948. else {
  47949. yield = pdFALSE;
  47950. 80146ea: 2300 movs r3, #0
  47951. 80146ec: 613b str r3, [r7, #16]
  47952. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  47953. 80146ee: f107 0210 add.w r2, r7, #16
  47954. 80146f2: 2300 movs r3, #0
  47955. 80146f4: 68b9 ldr r1, [r7, #8]
  47956. 80146f6: 69b8 ldr r0, [r7, #24]
  47957. 80146f8: f000 fc7e bl 8014ff8 <xQueueGenericSendFromISR>
  47958. 80146fc: 4603 mov r3, r0
  47959. 80146fe: 2b01 cmp r3, #1
  47960. 8014700: d003 beq.n 801470a <osMessageQueuePut+0x5e>
  47961. stat = osErrorResource;
  47962. 8014702: f06f 0302 mvn.w r3, #2
  47963. 8014706: 61fb str r3, [r7, #28]
  47964. 8014708: e028 b.n 801475c <osMessageQueuePut+0xb0>
  47965. } else {
  47966. portYIELD_FROM_ISR (yield);
  47967. 801470a: 693b ldr r3, [r7, #16]
  47968. 801470c: 2b00 cmp r3, #0
  47969. 801470e: d025 beq.n 801475c <osMessageQueuePut+0xb0>
  47970. 8014710: 4b15 ldr r3, [pc, #84] @ (8014768 <osMessageQueuePut+0xbc>)
  47971. 8014712: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47972. 8014716: 601a str r2, [r3, #0]
  47973. 8014718: f3bf 8f4f dsb sy
  47974. 801471c: f3bf 8f6f isb sy
  47975. 8014720: e01c b.n 801475c <osMessageQueuePut+0xb0>
  47976. }
  47977. }
  47978. }
  47979. else {
  47980. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  47981. 8014722: 69bb ldr r3, [r7, #24]
  47982. 8014724: 2b00 cmp r3, #0
  47983. 8014726: d002 beq.n 801472e <osMessageQueuePut+0x82>
  47984. 8014728: 68bb ldr r3, [r7, #8]
  47985. 801472a: 2b00 cmp r3, #0
  47986. 801472c: d103 bne.n 8014736 <osMessageQueuePut+0x8a>
  47987. stat = osErrorParameter;
  47988. 801472e: f06f 0303 mvn.w r3, #3
  47989. 8014732: 61fb str r3, [r7, #28]
  47990. 8014734: e012 b.n 801475c <osMessageQueuePut+0xb0>
  47991. }
  47992. else {
  47993. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  47994. 8014736: 2300 movs r3, #0
  47995. 8014738: 683a ldr r2, [r7, #0]
  47996. 801473a: 68b9 ldr r1, [r7, #8]
  47997. 801473c: 69b8 ldr r0, [r7, #24]
  47998. 801473e: f000 fb59 bl 8014df4 <xQueueGenericSend>
  47999. 8014742: 4603 mov r3, r0
  48000. 8014744: 2b01 cmp r3, #1
  48001. 8014746: d009 beq.n 801475c <osMessageQueuePut+0xb0>
  48002. if (timeout != 0U) {
  48003. 8014748: 683b ldr r3, [r7, #0]
  48004. 801474a: 2b00 cmp r3, #0
  48005. 801474c: d003 beq.n 8014756 <osMessageQueuePut+0xaa>
  48006. stat = osErrorTimeout;
  48007. 801474e: f06f 0301 mvn.w r3, #1
  48008. 8014752: 61fb str r3, [r7, #28]
  48009. 8014754: e002 b.n 801475c <osMessageQueuePut+0xb0>
  48010. } else {
  48011. stat = osErrorResource;
  48012. 8014756: f06f 0302 mvn.w r3, #2
  48013. 801475a: 61fb str r3, [r7, #28]
  48014. }
  48015. }
  48016. }
  48017. }
  48018. return (stat);
  48019. 801475c: 69fb ldr r3, [r7, #28]
  48020. }
  48021. 801475e: 4618 mov r0, r3
  48022. 8014760: 3720 adds r7, #32
  48023. 8014762: 46bd mov sp, r7
  48024. 8014764: bd80 pop {r7, pc}
  48025. 8014766: bf00 nop
  48026. 8014768: e000ed04 .word 0xe000ed04
  48027. 0801476c <osMessageQueueGet>:
  48028. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  48029. 801476c: b580 push {r7, lr}
  48030. 801476e: b088 sub sp, #32
  48031. 8014770: af00 add r7, sp, #0
  48032. 8014772: 60f8 str r0, [r7, #12]
  48033. 8014774: 60b9 str r1, [r7, #8]
  48034. 8014776: 607a str r2, [r7, #4]
  48035. 8014778: 603b str r3, [r7, #0]
  48036. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  48037. 801477a: 68fb ldr r3, [r7, #12]
  48038. 801477c: 61bb str r3, [r7, #24]
  48039. osStatus_t stat;
  48040. BaseType_t yield;
  48041. (void)msg_prio; /* Message priority is ignored */
  48042. stat = osOK;
  48043. 801477e: 2300 movs r3, #0
  48044. 8014780: 61fb str r3, [r7, #28]
  48045. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  48046. 8014782: f3ef 8305 mrs r3, IPSR
  48047. 8014786: 617b str r3, [r7, #20]
  48048. return(result);
  48049. 8014788: 697b ldr r3, [r7, #20]
  48050. if (IS_IRQ()) {
  48051. 801478a: 2b00 cmp r3, #0
  48052. 801478c: d028 beq.n 80147e0 <osMessageQueueGet+0x74>
  48053. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  48054. 801478e: 69bb ldr r3, [r7, #24]
  48055. 8014790: 2b00 cmp r3, #0
  48056. 8014792: d005 beq.n 80147a0 <osMessageQueueGet+0x34>
  48057. 8014794: 68bb ldr r3, [r7, #8]
  48058. 8014796: 2b00 cmp r3, #0
  48059. 8014798: d002 beq.n 80147a0 <osMessageQueueGet+0x34>
  48060. 801479a: 683b ldr r3, [r7, #0]
  48061. 801479c: 2b00 cmp r3, #0
  48062. 801479e: d003 beq.n 80147a8 <osMessageQueueGet+0x3c>
  48063. stat = osErrorParameter;
  48064. 80147a0: f06f 0303 mvn.w r3, #3
  48065. 80147a4: 61fb str r3, [r7, #28]
  48066. 80147a6: e037 b.n 8014818 <osMessageQueueGet+0xac>
  48067. }
  48068. else {
  48069. yield = pdFALSE;
  48070. 80147a8: 2300 movs r3, #0
  48071. 80147aa: 613b str r3, [r7, #16]
  48072. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  48073. 80147ac: f107 0310 add.w r3, r7, #16
  48074. 80147b0: 461a mov r2, r3
  48075. 80147b2: 68b9 ldr r1, [r7, #8]
  48076. 80147b4: 69b8 ldr r0, [r7, #24]
  48077. 80147b6: f000 feaf bl 8015518 <xQueueReceiveFromISR>
  48078. 80147ba: 4603 mov r3, r0
  48079. 80147bc: 2b01 cmp r3, #1
  48080. 80147be: d003 beq.n 80147c8 <osMessageQueueGet+0x5c>
  48081. stat = osErrorResource;
  48082. 80147c0: f06f 0302 mvn.w r3, #2
  48083. 80147c4: 61fb str r3, [r7, #28]
  48084. 80147c6: e027 b.n 8014818 <osMessageQueueGet+0xac>
  48085. } else {
  48086. portYIELD_FROM_ISR (yield);
  48087. 80147c8: 693b ldr r3, [r7, #16]
  48088. 80147ca: 2b00 cmp r3, #0
  48089. 80147cc: d024 beq.n 8014818 <osMessageQueueGet+0xac>
  48090. 80147ce: 4b15 ldr r3, [pc, #84] @ (8014824 <osMessageQueueGet+0xb8>)
  48091. 80147d0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48092. 80147d4: 601a str r2, [r3, #0]
  48093. 80147d6: f3bf 8f4f dsb sy
  48094. 80147da: f3bf 8f6f isb sy
  48095. 80147de: e01b b.n 8014818 <osMessageQueueGet+0xac>
  48096. }
  48097. }
  48098. }
  48099. else {
  48100. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  48101. 80147e0: 69bb ldr r3, [r7, #24]
  48102. 80147e2: 2b00 cmp r3, #0
  48103. 80147e4: d002 beq.n 80147ec <osMessageQueueGet+0x80>
  48104. 80147e6: 68bb ldr r3, [r7, #8]
  48105. 80147e8: 2b00 cmp r3, #0
  48106. 80147ea: d103 bne.n 80147f4 <osMessageQueueGet+0x88>
  48107. stat = osErrorParameter;
  48108. 80147ec: f06f 0303 mvn.w r3, #3
  48109. 80147f0: 61fb str r3, [r7, #28]
  48110. 80147f2: e011 b.n 8014818 <osMessageQueueGet+0xac>
  48111. }
  48112. else {
  48113. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  48114. 80147f4: 683a ldr r2, [r7, #0]
  48115. 80147f6: 68b9 ldr r1, [r7, #8]
  48116. 80147f8: 69b8 ldr r0, [r7, #24]
  48117. 80147fa: f000 fc9b bl 8015134 <xQueueReceive>
  48118. 80147fe: 4603 mov r3, r0
  48119. 8014800: 2b01 cmp r3, #1
  48120. 8014802: d009 beq.n 8014818 <osMessageQueueGet+0xac>
  48121. if (timeout != 0U) {
  48122. 8014804: 683b ldr r3, [r7, #0]
  48123. 8014806: 2b00 cmp r3, #0
  48124. 8014808: d003 beq.n 8014812 <osMessageQueueGet+0xa6>
  48125. stat = osErrorTimeout;
  48126. 801480a: f06f 0301 mvn.w r3, #1
  48127. 801480e: 61fb str r3, [r7, #28]
  48128. 8014810: e002 b.n 8014818 <osMessageQueueGet+0xac>
  48129. } else {
  48130. stat = osErrorResource;
  48131. 8014812: f06f 0302 mvn.w r3, #2
  48132. 8014816: 61fb str r3, [r7, #28]
  48133. }
  48134. }
  48135. }
  48136. }
  48137. return (stat);
  48138. 8014818: 69fb ldr r3, [r7, #28]
  48139. }
  48140. 801481a: 4618 mov r0, r3
  48141. 801481c: 3720 adds r7, #32
  48142. 801481e: 46bd mov sp, r7
  48143. 8014820: bd80 pop {r7, pc}
  48144. 8014822: bf00 nop
  48145. 8014824: e000ed04 .word 0xe000ed04
  48146. 08014828 <vApplicationGetIdleTaskMemory>:
  48147. /*
  48148. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48149. equals to 1 and is required for static memory allocation support.
  48150. */
  48151. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  48152. 8014828: b480 push {r7}
  48153. 801482a: b085 sub sp, #20
  48154. 801482c: af00 add r7, sp, #0
  48155. 801482e: 60f8 str r0, [r7, #12]
  48156. 8014830: 60b9 str r1, [r7, #8]
  48157. 8014832: 607a str r2, [r7, #4]
  48158. /* Idle task control block and stack */
  48159. static StaticTask_t Idle_TCB;
  48160. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  48161. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  48162. 8014834: 68fb ldr r3, [r7, #12]
  48163. 8014836: 4a07 ldr r2, [pc, #28] @ (8014854 <vApplicationGetIdleTaskMemory+0x2c>)
  48164. 8014838: 601a str r2, [r3, #0]
  48165. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  48166. 801483a: 68bb ldr r3, [r7, #8]
  48167. 801483c: 4a06 ldr r2, [pc, #24] @ (8014858 <vApplicationGetIdleTaskMemory+0x30>)
  48168. 801483e: 601a str r2, [r3, #0]
  48169. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  48170. 8014840: 687b ldr r3, [r7, #4]
  48171. 8014842: f44f 7200 mov.w r2, #512 @ 0x200
  48172. 8014846: 601a str r2, [r3, #0]
  48173. }
  48174. 8014848: bf00 nop
  48175. 801484a: 3714 adds r7, #20
  48176. 801484c: 46bd mov sp, r7
  48177. 801484e: f85d 7b04 ldr.w r7, [sp], #4
  48178. 8014852: 4770 bx lr
  48179. 8014854: 24001068 .word 0x24001068
  48180. 8014858: 24001110 .word 0x24001110
  48181. 0801485c <vApplicationGetTimerTaskMemory>:
  48182. /*
  48183. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48184. equals to 1 and is required for static memory allocation support.
  48185. */
  48186. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  48187. 801485c: b480 push {r7}
  48188. 801485e: b085 sub sp, #20
  48189. 8014860: af00 add r7, sp, #0
  48190. 8014862: 60f8 str r0, [r7, #12]
  48191. 8014864: 60b9 str r1, [r7, #8]
  48192. 8014866: 607a str r2, [r7, #4]
  48193. /* Timer task control block and stack */
  48194. static StaticTask_t Timer_TCB;
  48195. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  48196. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  48197. 8014868: 68fb ldr r3, [r7, #12]
  48198. 801486a: 4a07 ldr r2, [pc, #28] @ (8014888 <vApplicationGetTimerTaskMemory+0x2c>)
  48199. 801486c: 601a str r2, [r3, #0]
  48200. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  48201. 801486e: 68bb ldr r3, [r7, #8]
  48202. 8014870: 4a06 ldr r2, [pc, #24] @ (801488c <vApplicationGetTimerTaskMemory+0x30>)
  48203. 8014872: 601a str r2, [r3, #0]
  48204. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  48205. 8014874: 687b ldr r3, [r7, #4]
  48206. 8014876: f44f 6280 mov.w r2, #1024 @ 0x400
  48207. 801487a: 601a str r2, [r3, #0]
  48208. }
  48209. 801487c: bf00 nop
  48210. 801487e: 3714 adds r7, #20
  48211. 8014880: 46bd mov sp, r7
  48212. 8014882: f85d 7b04 ldr.w r7, [sp], #4
  48213. 8014886: 4770 bx lr
  48214. 8014888: 24001910 .word 0x24001910
  48215. 801488c: 240019b8 .word 0x240019b8
  48216. 08014890 <vListInitialise>:
  48217. /*-----------------------------------------------------------
  48218. * PUBLIC LIST API documented in list.h
  48219. *----------------------------------------------------------*/
  48220. void vListInitialise( List_t * const pxList )
  48221. {
  48222. 8014890: b480 push {r7}
  48223. 8014892: b083 sub sp, #12
  48224. 8014894: af00 add r7, sp, #0
  48225. 8014896: 6078 str r0, [r7, #4]
  48226. /* The list structure contains a list item which is used to mark the
  48227. end of the list. To initialise the list the list end is inserted
  48228. as the only list entry. */
  48229. 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. */
  48230. 8014898: 687b ldr r3, [r7, #4]
  48231. 801489a: f103 0208 add.w r2, r3, #8
  48232. 801489e: 687b ldr r3, [r7, #4]
  48233. 80148a0: 605a str r2, [r3, #4]
  48234. /* The list end value is the highest possible value in the list to
  48235. ensure it remains at the end of the list. */
  48236. pxList->xListEnd.xItemValue = portMAX_DELAY;
  48237. 80148a2: 687b ldr r3, [r7, #4]
  48238. 80148a4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  48239. 80148a8: 609a str r2, [r3, #8]
  48240. /* The list end next and previous pointers point to itself so we know
  48241. when the list is empty. */
  48242. 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. */
  48243. 80148aa: 687b ldr r3, [r7, #4]
  48244. 80148ac: f103 0208 add.w r2, r3, #8
  48245. 80148b0: 687b ldr r3, [r7, #4]
  48246. 80148b2: 60da str r2, [r3, #12]
  48247. 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. */
  48248. 80148b4: 687b ldr r3, [r7, #4]
  48249. 80148b6: f103 0208 add.w r2, r3, #8
  48250. 80148ba: 687b ldr r3, [r7, #4]
  48251. 80148bc: 611a str r2, [r3, #16]
  48252. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  48253. 80148be: 687b ldr r3, [r7, #4]
  48254. 80148c0: 2200 movs r2, #0
  48255. 80148c2: 601a str r2, [r3, #0]
  48256. /* Write known values into the list if
  48257. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48258. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  48259. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  48260. }
  48261. 80148c4: bf00 nop
  48262. 80148c6: 370c adds r7, #12
  48263. 80148c8: 46bd mov sp, r7
  48264. 80148ca: f85d 7b04 ldr.w r7, [sp], #4
  48265. 80148ce: 4770 bx lr
  48266. 080148d0 <vListInitialiseItem>:
  48267. /*-----------------------------------------------------------*/
  48268. void vListInitialiseItem( ListItem_t * const pxItem )
  48269. {
  48270. 80148d0: b480 push {r7}
  48271. 80148d2: b083 sub sp, #12
  48272. 80148d4: af00 add r7, sp, #0
  48273. 80148d6: 6078 str r0, [r7, #4]
  48274. /* Make sure the list item is not recorded as being on a list. */
  48275. pxItem->pxContainer = NULL;
  48276. 80148d8: 687b ldr r3, [r7, #4]
  48277. 80148da: 2200 movs r2, #0
  48278. 80148dc: 611a str r2, [r3, #16]
  48279. /* Write known values into the list item if
  48280. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48281. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48282. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48283. }
  48284. 80148de: bf00 nop
  48285. 80148e0: 370c adds r7, #12
  48286. 80148e2: 46bd mov sp, r7
  48287. 80148e4: f85d 7b04 ldr.w r7, [sp], #4
  48288. 80148e8: 4770 bx lr
  48289. 080148ea <vListInsertEnd>:
  48290. /*-----------------------------------------------------------*/
  48291. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  48292. {
  48293. 80148ea: b480 push {r7}
  48294. 80148ec: b085 sub sp, #20
  48295. 80148ee: af00 add r7, sp, #0
  48296. 80148f0: 6078 str r0, [r7, #4]
  48297. 80148f2: 6039 str r1, [r7, #0]
  48298. ListItem_t * const pxIndex = pxList->pxIndex;
  48299. 80148f4: 687b ldr r3, [r7, #4]
  48300. 80148f6: 685b ldr r3, [r3, #4]
  48301. 80148f8: 60fb str r3, [r7, #12]
  48302. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  48303. /* Insert a new list item into pxList, but rather than sort the list,
  48304. makes the new list item the last item to be removed by a call to
  48305. listGET_OWNER_OF_NEXT_ENTRY(). */
  48306. pxNewListItem->pxNext = pxIndex;
  48307. 80148fa: 683b ldr r3, [r7, #0]
  48308. 80148fc: 68fa ldr r2, [r7, #12]
  48309. 80148fe: 605a str r2, [r3, #4]
  48310. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  48311. 8014900: 68fb ldr r3, [r7, #12]
  48312. 8014902: 689a ldr r2, [r3, #8]
  48313. 8014904: 683b ldr r3, [r7, #0]
  48314. 8014906: 609a str r2, [r3, #8]
  48315. /* Only used during decision coverage testing. */
  48316. mtCOVERAGE_TEST_DELAY();
  48317. pxIndex->pxPrevious->pxNext = pxNewListItem;
  48318. 8014908: 68fb ldr r3, [r7, #12]
  48319. 801490a: 689b ldr r3, [r3, #8]
  48320. 801490c: 683a ldr r2, [r7, #0]
  48321. 801490e: 605a str r2, [r3, #4]
  48322. pxIndex->pxPrevious = pxNewListItem;
  48323. 8014910: 68fb ldr r3, [r7, #12]
  48324. 8014912: 683a ldr r2, [r7, #0]
  48325. 8014914: 609a str r2, [r3, #8]
  48326. /* Remember which list the item is in. */
  48327. pxNewListItem->pxContainer = pxList;
  48328. 8014916: 683b ldr r3, [r7, #0]
  48329. 8014918: 687a ldr r2, [r7, #4]
  48330. 801491a: 611a str r2, [r3, #16]
  48331. ( pxList->uxNumberOfItems )++;
  48332. 801491c: 687b ldr r3, [r7, #4]
  48333. 801491e: 681b ldr r3, [r3, #0]
  48334. 8014920: 1c5a adds r2, r3, #1
  48335. 8014922: 687b ldr r3, [r7, #4]
  48336. 8014924: 601a str r2, [r3, #0]
  48337. }
  48338. 8014926: bf00 nop
  48339. 8014928: 3714 adds r7, #20
  48340. 801492a: 46bd mov sp, r7
  48341. 801492c: f85d 7b04 ldr.w r7, [sp], #4
  48342. 8014930: 4770 bx lr
  48343. 08014932 <vListInsert>:
  48344. /*-----------------------------------------------------------*/
  48345. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  48346. {
  48347. 8014932: b480 push {r7}
  48348. 8014934: b085 sub sp, #20
  48349. 8014936: af00 add r7, sp, #0
  48350. 8014938: 6078 str r0, [r7, #4]
  48351. 801493a: 6039 str r1, [r7, #0]
  48352. ListItem_t *pxIterator;
  48353. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  48354. 801493c: 683b ldr r3, [r7, #0]
  48355. 801493e: 681b ldr r3, [r3, #0]
  48356. 8014940: 60bb str r3, [r7, #8]
  48357. new list item should be placed after it. This ensures that TCBs which are
  48358. stored in ready lists (all of which have the same xItemValue value) get a
  48359. share of the CPU. However, if the xItemValue is the same as the back marker
  48360. the iteration loop below will not end. Therefore the value is checked
  48361. first, and the algorithm slightly modified if necessary. */
  48362. if( xValueOfInsertion == portMAX_DELAY )
  48363. 8014942: 68bb ldr r3, [r7, #8]
  48364. 8014944: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48365. 8014948: d103 bne.n 8014952 <vListInsert+0x20>
  48366. {
  48367. pxIterator = pxList->xListEnd.pxPrevious;
  48368. 801494a: 687b ldr r3, [r7, #4]
  48369. 801494c: 691b ldr r3, [r3, #16]
  48370. 801494e: 60fb str r3, [r7, #12]
  48371. 8014950: e00c b.n 801496c <vListInsert+0x3a>
  48372. 4) Using a queue or semaphore before it has been initialised or
  48373. before the scheduler has been started (are interrupts firing
  48374. before vTaskStartScheduler() has been called?).
  48375. **********************************************************************/
  48376. 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. */
  48377. 8014952: 687b ldr r3, [r7, #4]
  48378. 8014954: 3308 adds r3, #8
  48379. 8014956: 60fb str r3, [r7, #12]
  48380. 8014958: e002 b.n 8014960 <vListInsert+0x2e>
  48381. 801495a: 68fb ldr r3, [r7, #12]
  48382. 801495c: 685b ldr r3, [r3, #4]
  48383. 801495e: 60fb str r3, [r7, #12]
  48384. 8014960: 68fb ldr r3, [r7, #12]
  48385. 8014962: 685b ldr r3, [r3, #4]
  48386. 8014964: 681b ldr r3, [r3, #0]
  48387. 8014966: 68ba ldr r2, [r7, #8]
  48388. 8014968: 429a cmp r2, r3
  48389. 801496a: d2f6 bcs.n 801495a <vListInsert+0x28>
  48390. /* There is nothing to do here, just iterating to the wanted
  48391. insertion position. */
  48392. }
  48393. }
  48394. pxNewListItem->pxNext = pxIterator->pxNext;
  48395. 801496c: 68fb ldr r3, [r7, #12]
  48396. 801496e: 685a ldr r2, [r3, #4]
  48397. 8014970: 683b ldr r3, [r7, #0]
  48398. 8014972: 605a str r2, [r3, #4]
  48399. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  48400. 8014974: 683b ldr r3, [r7, #0]
  48401. 8014976: 685b ldr r3, [r3, #4]
  48402. 8014978: 683a ldr r2, [r7, #0]
  48403. 801497a: 609a str r2, [r3, #8]
  48404. pxNewListItem->pxPrevious = pxIterator;
  48405. 801497c: 683b ldr r3, [r7, #0]
  48406. 801497e: 68fa ldr r2, [r7, #12]
  48407. 8014980: 609a str r2, [r3, #8]
  48408. pxIterator->pxNext = pxNewListItem;
  48409. 8014982: 68fb ldr r3, [r7, #12]
  48410. 8014984: 683a ldr r2, [r7, #0]
  48411. 8014986: 605a str r2, [r3, #4]
  48412. /* Remember which list the item is in. This allows fast removal of the
  48413. item later. */
  48414. pxNewListItem->pxContainer = pxList;
  48415. 8014988: 683b ldr r3, [r7, #0]
  48416. 801498a: 687a ldr r2, [r7, #4]
  48417. 801498c: 611a str r2, [r3, #16]
  48418. ( pxList->uxNumberOfItems )++;
  48419. 801498e: 687b ldr r3, [r7, #4]
  48420. 8014990: 681b ldr r3, [r3, #0]
  48421. 8014992: 1c5a adds r2, r3, #1
  48422. 8014994: 687b ldr r3, [r7, #4]
  48423. 8014996: 601a str r2, [r3, #0]
  48424. }
  48425. 8014998: bf00 nop
  48426. 801499a: 3714 adds r7, #20
  48427. 801499c: 46bd mov sp, r7
  48428. 801499e: f85d 7b04 ldr.w r7, [sp], #4
  48429. 80149a2: 4770 bx lr
  48430. 080149a4 <uxListRemove>:
  48431. /*-----------------------------------------------------------*/
  48432. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  48433. {
  48434. 80149a4: b480 push {r7}
  48435. 80149a6: b085 sub sp, #20
  48436. 80149a8: af00 add r7, sp, #0
  48437. 80149aa: 6078 str r0, [r7, #4]
  48438. /* The list item knows which list it is in. Obtain the list from the list
  48439. item. */
  48440. List_t * const pxList = pxItemToRemove->pxContainer;
  48441. 80149ac: 687b ldr r3, [r7, #4]
  48442. 80149ae: 691b ldr r3, [r3, #16]
  48443. 80149b0: 60fb str r3, [r7, #12]
  48444. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  48445. 80149b2: 687b ldr r3, [r7, #4]
  48446. 80149b4: 685b ldr r3, [r3, #4]
  48447. 80149b6: 687a ldr r2, [r7, #4]
  48448. 80149b8: 6892 ldr r2, [r2, #8]
  48449. 80149ba: 609a str r2, [r3, #8]
  48450. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  48451. 80149bc: 687b ldr r3, [r7, #4]
  48452. 80149be: 689b ldr r3, [r3, #8]
  48453. 80149c0: 687a ldr r2, [r7, #4]
  48454. 80149c2: 6852 ldr r2, [r2, #4]
  48455. 80149c4: 605a str r2, [r3, #4]
  48456. /* Only used during decision coverage testing. */
  48457. mtCOVERAGE_TEST_DELAY();
  48458. /* Make sure the index is left pointing to a valid item. */
  48459. if( pxList->pxIndex == pxItemToRemove )
  48460. 80149c6: 68fb ldr r3, [r7, #12]
  48461. 80149c8: 685b ldr r3, [r3, #4]
  48462. 80149ca: 687a ldr r2, [r7, #4]
  48463. 80149cc: 429a cmp r2, r3
  48464. 80149ce: d103 bne.n 80149d8 <uxListRemove+0x34>
  48465. {
  48466. pxList->pxIndex = pxItemToRemove->pxPrevious;
  48467. 80149d0: 687b ldr r3, [r7, #4]
  48468. 80149d2: 689a ldr r2, [r3, #8]
  48469. 80149d4: 68fb ldr r3, [r7, #12]
  48470. 80149d6: 605a str r2, [r3, #4]
  48471. else
  48472. {
  48473. mtCOVERAGE_TEST_MARKER();
  48474. }
  48475. pxItemToRemove->pxContainer = NULL;
  48476. 80149d8: 687b ldr r3, [r7, #4]
  48477. 80149da: 2200 movs r2, #0
  48478. 80149dc: 611a str r2, [r3, #16]
  48479. ( pxList->uxNumberOfItems )--;
  48480. 80149de: 68fb ldr r3, [r7, #12]
  48481. 80149e0: 681b ldr r3, [r3, #0]
  48482. 80149e2: 1e5a subs r2, r3, #1
  48483. 80149e4: 68fb ldr r3, [r7, #12]
  48484. 80149e6: 601a str r2, [r3, #0]
  48485. return pxList->uxNumberOfItems;
  48486. 80149e8: 68fb ldr r3, [r7, #12]
  48487. 80149ea: 681b ldr r3, [r3, #0]
  48488. }
  48489. 80149ec: 4618 mov r0, r3
  48490. 80149ee: 3714 adds r7, #20
  48491. 80149f0: 46bd mov sp, r7
  48492. 80149f2: f85d 7b04 ldr.w r7, [sp], #4
  48493. 80149f6: 4770 bx lr
  48494. 080149f8 <xQueueGenericReset>:
  48495. } \
  48496. taskEXIT_CRITICAL()
  48497. /*-----------------------------------------------------------*/
  48498. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  48499. {
  48500. 80149f8: b580 push {r7, lr}
  48501. 80149fa: b084 sub sp, #16
  48502. 80149fc: af00 add r7, sp, #0
  48503. 80149fe: 6078 str r0, [r7, #4]
  48504. 8014a00: 6039 str r1, [r7, #0]
  48505. Queue_t * const pxQueue = xQueue;
  48506. 8014a02: 687b ldr r3, [r7, #4]
  48507. 8014a04: 60fb str r3, [r7, #12]
  48508. configASSERT( pxQueue );
  48509. 8014a06: 68fb ldr r3, [r7, #12]
  48510. 8014a08: 2b00 cmp r3, #0
  48511. 8014a0a: d10b bne.n 8014a24 <xQueueGenericReset+0x2c>
  48512. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  48513. {
  48514. uint32_t ulNewBASEPRI;
  48515. __asm volatile
  48516. 8014a0c: f04f 0350 mov.w r3, #80 @ 0x50
  48517. 8014a10: f383 8811 msr BASEPRI, r3
  48518. 8014a14: f3bf 8f6f isb sy
  48519. 8014a18: f3bf 8f4f dsb sy
  48520. 8014a1c: 60bb str r3, [r7, #8]
  48521. " msr basepri, %0 \n" \
  48522. " isb \n" \
  48523. " dsb \n" \
  48524. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48525. );
  48526. }
  48527. 8014a1e: bf00 nop
  48528. 8014a20: bf00 nop
  48529. 8014a22: e7fd b.n 8014a20 <xQueueGenericReset+0x28>
  48530. taskENTER_CRITICAL();
  48531. 8014a24: f003 f960 bl 8017ce8 <vPortEnterCritical>
  48532. {
  48533. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48534. 8014a28: 68fb ldr r3, [r7, #12]
  48535. 8014a2a: 681a ldr r2, [r3, #0]
  48536. 8014a2c: 68fb ldr r3, [r7, #12]
  48537. 8014a2e: 6bdb ldr r3, [r3, #60] @ 0x3c
  48538. 8014a30: 68f9 ldr r1, [r7, #12]
  48539. 8014a32: 6c09 ldr r1, [r1, #64] @ 0x40
  48540. 8014a34: fb01 f303 mul.w r3, r1, r3
  48541. 8014a38: 441a add r2, r3
  48542. 8014a3a: 68fb ldr r3, [r7, #12]
  48543. 8014a3c: 609a str r2, [r3, #8]
  48544. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  48545. 8014a3e: 68fb ldr r3, [r7, #12]
  48546. 8014a40: 2200 movs r2, #0
  48547. 8014a42: 639a str r2, [r3, #56] @ 0x38
  48548. pxQueue->pcWriteTo = pxQueue->pcHead;
  48549. 8014a44: 68fb ldr r3, [r7, #12]
  48550. 8014a46: 681a ldr r2, [r3, #0]
  48551. 8014a48: 68fb ldr r3, [r7, #12]
  48552. 8014a4a: 605a str r2, [r3, #4]
  48553. 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. */
  48554. 8014a4c: 68fb ldr r3, [r7, #12]
  48555. 8014a4e: 681a ldr r2, [r3, #0]
  48556. 8014a50: 68fb ldr r3, [r7, #12]
  48557. 8014a52: 6bdb ldr r3, [r3, #60] @ 0x3c
  48558. 8014a54: 3b01 subs r3, #1
  48559. 8014a56: 68f9 ldr r1, [r7, #12]
  48560. 8014a58: 6c09 ldr r1, [r1, #64] @ 0x40
  48561. 8014a5a: fb01 f303 mul.w r3, r1, r3
  48562. 8014a5e: 441a add r2, r3
  48563. 8014a60: 68fb ldr r3, [r7, #12]
  48564. 8014a62: 60da str r2, [r3, #12]
  48565. pxQueue->cRxLock = queueUNLOCKED;
  48566. 8014a64: 68fb ldr r3, [r7, #12]
  48567. 8014a66: 22ff movs r2, #255 @ 0xff
  48568. 8014a68: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48569. pxQueue->cTxLock = queueUNLOCKED;
  48570. 8014a6c: 68fb ldr r3, [r7, #12]
  48571. 8014a6e: 22ff movs r2, #255 @ 0xff
  48572. 8014a70: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48573. if( xNewQueue == pdFALSE )
  48574. 8014a74: 683b ldr r3, [r7, #0]
  48575. 8014a76: 2b00 cmp r3, #0
  48576. 8014a78: d114 bne.n 8014aa4 <xQueueGenericReset+0xac>
  48577. /* If there are tasks blocked waiting to read from the queue, then
  48578. the tasks will remain blocked as after this function exits the queue
  48579. will still be empty. If there are tasks blocked waiting to write to
  48580. the queue, then one should be unblocked as after this function exits
  48581. it will be possible to write to it. */
  48582. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48583. 8014a7a: 68fb ldr r3, [r7, #12]
  48584. 8014a7c: 691b ldr r3, [r3, #16]
  48585. 8014a7e: 2b00 cmp r3, #0
  48586. 8014a80: d01a beq.n 8014ab8 <xQueueGenericReset+0xc0>
  48587. {
  48588. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48589. 8014a82: 68fb ldr r3, [r7, #12]
  48590. 8014a84: 3310 adds r3, #16
  48591. 8014a86: 4618 mov r0, r3
  48592. 8014a88: f001 fdac bl 80165e4 <xTaskRemoveFromEventList>
  48593. 8014a8c: 4603 mov r3, r0
  48594. 8014a8e: 2b00 cmp r3, #0
  48595. 8014a90: d012 beq.n 8014ab8 <xQueueGenericReset+0xc0>
  48596. {
  48597. queueYIELD_IF_USING_PREEMPTION();
  48598. 8014a92: 4b0d ldr r3, [pc, #52] @ (8014ac8 <xQueueGenericReset+0xd0>)
  48599. 8014a94: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48600. 8014a98: 601a str r2, [r3, #0]
  48601. 8014a9a: f3bf 8f4f dsb sy
  48602. 8014a9e: f3bf 8f6f isb sy
  48603. 8014aa2: e009 b.n 8014ab8 <xQueueGenericReset+0xc0>
  48604. }
  48605. }
  48606. else
  48607. {
  48608. /* Ensure the event queues start in the correct state. */
  48609. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  48610. 8014aa4: 68fb ldr r3, [r7, #12]
  48611. 8014aa6: 3310 adds r3, #16
  48612. 8014aa8: 4618 mov r0, r3
  48613. 8014aaa: f7ff fef1 bl 8014890 <vListInitialise>
  48614. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  48615. 8014aae: 68fb ldr r3, [r7, #12]
  48616. 8014ab0: 3324 adds r3, #36 @ 0x24
  48617. 8014ab2: 4618 mov r0, r3
  48618. 8014ab4: f7ff feec bl 8014890 <vListInitialise>
  48619. }
  48620. }
  48621. taskEXIT_CRITICAL();
  48622. 8014ab8: f003 f948 bl 8017d4c <vPortExitCritical>
  48623. /* A value is returned for calling semantic consistency with previous
  48624. versions. */
  48625. return pdPASS;
  48626. 8014abc: 2301 movs r3, #1
  48627. }
  48628. 8014abe: 4618 mov r0, r3
  48629. 8014ac0: 3710 adds r7, #16
  48630. 8014ac2: 46bd mov sp, r7
  48631. 8014ac4: bd80 pop {r7, pc}
  48632. 8014ac6: bf00 nop
  48633. 8014ac8: e000ed04 .word 0xe000ed04
  48634. 08014acc <xQueueGenericCreateStatic>:
  48635. /*-----------------------------------------------------------*/
  48636. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48637. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  48638. {
  48639. 8014acc: b580 push {r7, lr}
  48640. 8014ace: b08e sub sp, #56 @ 0x38
  48641. 8014ad0: af02 add r7, sp, #8
  48642. 8014ad2: 60f8 str r0, [r7, #12]
  48643. 8014ad4: 60b9 str r1, [r7, #8]
  48644. 8014ad6: 607a str r2, [r7, #4]
  48645. 8014ad8: 603b str r3, [r7, #0]
  48646. Queue_t *pxNewQueue;
  48647. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48648. 8014ada: 68fb ldr r3, [r7, #12]
  48649. 8014adc: 2b00 cmp r3, #0
  48650. 8014ade: d10b bne.n 8014af8 <xQueueGenericCreateStatic+0x2c>
  48651. __asm volatile
  48652. 8014ae0: f04f 0350 mov.w r3, #80 @ 0x50
  48653. 8014ae4: f383 8811 msr BASEPRI, r3
  48654. 8014ae8: f3bf 8f6f isb sy
  48655. 8014aec: f3bf 8f4f dsb sy
  48656. 8014af0: 62bb str r3, [r7, #40] @ 0x28
  48657. }
  48658. 8014af2: bf00 nop
  48659. 8014af4: bf00 nop
  48660. 8014af6: e7fd b.n 8014af4 <xQueueGenericCreateStatic+0x28>
  48661. /* The StaticQueue_t structure and the queue storage area must be
  48662. supplied. */
  48663. configASSERT( pxStaticQueue != NULL );
  48664. 8014af8: 683b ldr r3, [r7, #0]
  48665. 8014afa: 2b00 cmp r3, #0
  48666. 8014afc: d10b bne.n 8014b16 <xQueueGenericCreateStatic+0x4a>
  48667. __asm volatile
  48668. 8014afe: f04f 0350 mov.w r3, #80 @ 0x50
  48669. 8014b02: f383 8811 msr BASEPRI, r3
  48670. 8014b06: f3bf 8f6f isb sy
  48671. 8014b0a: f3bf 8f4f dsb sy
  48672. 8014b0e: 627b str r3, [r7, #36] @ 0x24
  48673. }
  48674. 8014b10: bf00 nop
  48675. 8014b12: bf00 nop
  48676. 8014b14: e7fd b.n 8014b12 <xQueueGenericCreateStatic+0x46>
  48677. /* A queue storage area should be provided if the item size is not 0, and
  48678. should not be provided if the item size is 0. */
  48679. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  48680. 8014b16: 687b ldr r3, [r7, #4]
  48681. 8014b18: 2b00 cmp r3, #0
  48682. 8014b1a: d002 beq.n 8014b22 <xQueueGenericCreateStatic+0x56>
  48683. 8014b1c: 68bb ldr r3, [r7, #8]
  48684. 8014b1e: 2b00 cmp r3, #0
  48685. 8014b20: d001 beq.n 8014b26 <xQueueGenericCreateStatic+0x5a>
  48686. 8014b22: 2301 movs r3, #1
  48687. 8014b24: e000 b.n 8014b28 <xQueueGenericCreateStatic+0x5c>
  48688. 8014b26: 2300 movs r3, #0
  48689. 8014b28: 2b00 cmp r3, #0
  48690. 8014b2a: d10b bne.n 8014b44 <xQueueGenericCreateStatic+0x78>
  48691. __asm volatile
  48692. 8014b2c: f04f 0350 mov.w r3, #80 @ 0x50
  48693. 8014b30: f383 8811 msr BASEPRI, r3
  48694. 8014b34: f3bf 8f6f isb sy
  48695. 8014b38: f3bf 8f4f dsb sy
  48696. 8014b3c: 623b str r3, [r7, #32]
  48697. }
  48698. 8014b3e: bf00 nop
  48699. 8014b40: bf00 nop
  48700. 8014b42: e7fd b.n 8014b40 <xQueueGenericCreateStatic+0x74>
  48701. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  48702. 8014b44: 687b ldr r3, [r7, #4]
  48703. 8014b46: 2b00 cmp r3, #0
  48704. 8014b48: d102 bne.n 8014b50 <xQueueGenericCreateStatic+0x84>
  48705. 8014b4a: 68bb ldr r3, [r7, #8]
  48706. 8014b4c: 2b00 cmp r3, #0
  48707. 8014b4e: d101 bne.n 8014b54 <xQueueGenericCreateStatic+0x88>
  48708. 8014b50: 2301 movs r3, #1
  48709. 8014b52: e000 b.n 8014b56 <xQueueGenericCreateStatic+0x8a>
  48710. 8014b54: 2300 movs r3, #0
  48711. 8014b56: 2b00 cmp r3, #0
  48712. 8014b58: d10b bne.n 8014b72 <xQueueGenericCreateStatic+0xa6>
  48713. __asm volatile
  48714. 8014b5a: f04f 0350 mov.w r3, #80 @ 0x50
  48715. 8014b5e: f383 8811 msr BASEPRI, r3
  48716. 8014b62: f3bf 8f6f isb sy
  48717. 8014b66: f3bf 8f4f dsb sy
  48718. 8014b6a: 61fb str r3, [r7, #28]
  48719. }
  48720. 8014b6c: bf00 nop
  48721. 8014b6e: bf00 nop
  48722. 8014b70: e7fd b.n 8014b6e <xQueueGenericCreateStatic+0xa2>
  48723. #if( configASSERT_DEFINED == 1 )
  48724. {
  48725. /* Sanity check that the size of the structure used to declare a
  48726. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  48727. the real queue and semaphore structures. */
  48728. volatile size_t xSize = sizeof( StaticQueue_t );
  48729. 8014b72: 2350 movs r3, #80 @ 0x50
  48730. 8014b74: 617b str r3, [r7, #20]
  48731. configASSERT( xSize == sizeof( Queue_t ) );
  48732. 8014b76: 697b ldr r3, [r7, #20]
  48733. 8014b78: 2b50 cmp r3, #80 @ 0x50
  48734. 8014b7a: d00b beq.n 8014b94 <xQueueGenericCreateStatic+0xc8>
  48735. __asm volatile
  48736. 8014b7c: f04f 0350 mov.w r3, #80 @ 0x50
  48737. 8014b80: f383 8811 msr BASEPRI, r3
  48738. 8014b84: f3bf 8f6f isb sy
  48739. 8014b88: f3bf 8f4f dsb sy
  48740. 8014b8c: 61bb str r3, [r7, #24]
  48741. }
  48742. 8014b8e: bf00 nop
  48743. 8014b90: bf00 nop
  48744. 8014b92: e7fd b.n 8014b90 <xQueueGenericCreateStatic+0xc4>
  48745. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  48746. 8014b94: 697b ldr r3, [r7, #20]
  48747. #endif /* configASSERT_DEFINED */
  48748. /* The address of a statically allocated queue was passed in, use it.
  48749. The address of a statically allocated storage area was also passed in
  48750. but is already set. */
  48751. 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. */
  48752. 8014b96: 683b ldr r3, [r7, #0]
  48753. 8014b98: 62fb str r3, [r7, #44] @ 0x2c
  48754. if( pxNewQueue != NULL )
  48755. 8014b9a: 6afb ldr r3, [r7, #44] @ 0x2c
  48756. 8014b9c: 2b00 cmp r3, #0
  48757. 8014b9e: d00d beq.n 8014bbc <xQueueGenericCreateStatic+0xf0>
  48758. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48759. {
  48760. /* Queues can be allocated wither statically or dynamically, so
  48761. note this queue was allocated statically in case the queue is
  48762. later deleted. */
  48763. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  48764. 8014ba0: 6afb ldr r3, [r7, #44] @ 0x2c
  48765. 8014ba2: 2201 movs r2, #1
  48766. 8014ba4: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48767. }
  48768. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  48769. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48770. 8014ba8: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  48771. 8014bac: 6afb ldr r3, [r7, #44] @ 0x2c
  48772. 8014bae: 9300 str r3, [sp, #0]
  48773. 8014bb0: 4613 mov r3, r2
  48774. 8014bb2: 687a ldr r2, [r7, #4]
  48775. 8014bb4: 68b9 ldr r1, [r7, #8]
  48776. 8014bb6: 68f8 ldr r0, [r7, #12]
  48777. 8014bb8: f000 f840 bl 8014c3c <prvInitialiseNewQueue>
  48778. {
  48779. traceQUEUE_CREATE_FAILED( ucQueueType );
  48780. mtCOVERAGE_TEST_MARKER();
  48781. }
  48782. return pxNewQueue;
  48783. 8014bbc: 6afb ldr r3, [r7, #44] @ 0x2c
  48784. }
  48785. 8014bbe: 4618 mov r0, r3
  48786. 8014bc0: 3730 adds r7, #48 @ 0x30
  48787. 8014bc2: 46bd mov sp, r7
  48788. 8014bc4: bd80 pop {r7, pc}
  48789. 08014bc6 <xQueueGenericCreate>:
  48790. /*-----------------------------------------------------------*/
  48791. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48792. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  48793. {
  48794. 8014bc6: b580 push {r7, lr}
  48795. 8014bc8: b08a sub sp, #40 @ 0x28
  48796. 8014bca: af02 add r7, sp, #8
  48797. 8014bcc: 60f8 str r0, [r7, #12]
  48798. 8014bce: 60b9 str r1, [r7, #8]
  48799. 8014bd0: 4613 mov r3, r2
  48800. 8014bd2: 71fb strb r3, [r7, #7]
  48801. Queue_t *pxNewQueue;
  48802. size_t xQueueSizeInBytes;
  48803. uint8_t *pucQueueStorage;
  48804. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48805. 8014bd4: 68fb ldr r3, [r7, #12]
  48806. 8014bd6: 2b00 cmp r3, #0
  48807. 8014bd8: d10b bne.n 8014bf2 <xQueueGenericCreate+0x2c>
  48808. __asm volatile
  48809. 8014bda: f04f 0350 mov.w r3, #80 @ 0x50
  48810. 8014bde: f383 8811 msr BASEPRI, r3
  48811. 8014be2: f3bf 8f6f isb sy
  48812. 8014be6: f3bf 8f4f dsb sy
  48813. 8014bea: 613b str r3, [r7, #16]
  48814. }
  48815. 8014bec: bf00 nop
  48816. 8014bee: bf00 nop
  48817. 8014bf0: e7fd b.n 8014bee <xQueueGenericCreate+0x28>
  48818. /* Allocate enough space to hold the maximum number of items that
  48819. can be in the queue at any time. It is valid for uxItemSize to be
  48820. zero in the case the queue is used as a semaphore. */
  48821. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  48822. 8014bf2: 68fb ldr r3, [r7, #12]
  48823. 8014bf4: 68ba ldr r2, [r7, #8]
  48824. 8014bf6: fb02 f303 mul.w r3, r2, r3
  48825. 8014bfa: 61fb str r3, [r7, #28]
  48826. alignment requirements of the Queue_t structure - which in this case
  48827. is an int8_t *. Therefore, whenever the stack alignment requirements
  48828. are greater than or equal to the pointer to char requirements the cast
  48829. is safe. In other cases alignment requirements are not strict (one or
  48830. two bytes). */
  48831. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  48832. 8014bfc: 69fb ldr r3, [r7, #28]
  48833. 8014bfe: 3350 adds r3, #80 @ 0x50
  48834. 8014c00: 4618 mov r0, r3
  48835. 8014c02: f003 f993 bl 8017f2c <pvPortMalloc>
  48836. 8014c06: 61b8 str r0, [r7, #24]
  48837. if( pxNewQueue != NULL )
  48838. 8014c08: 69bb ldr r3, [r7, #24]
  48839. 8014c0a: 2b00 cmp r3, #0
  48840. 8014c0c: d011 beq.n 8014c32 <xQueueGenericCreate+0x6c>
  48841. {
  48842. /* Jump past the queue structure to find the location of the queue
  48843. storage area. */
  48844. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  48845. 8014c0e: 69bb ldr r3, [r7, #24]
  48846. 8014c10: 617b str r3, [r7, #20]
  48847. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48848. 8014c12: 697b ldr r3, [r7, #20]
  48849. 8014c14: 3350 adds r3, #80 @ 0x50
  48850. 8014c16: 617b str r3, [r7, #20]
  48851. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48852. {
  48853. /* Queues can be created either statically or dynamically, so
  48854. note this task was created dynamically in case it is later
  48855. deleted. */
  48856. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  48857. 8014c18: 69bb ldr r3, [r7, #24]
  48858. 8014c1a: 2200 movs r2, #0
  48859. 8014c1c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48860. }
  48861. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48862. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48863. 8014c20: 79fa ldrb r2, [r7, #7]
  48864. 8014c22: 69bb ldr r3, [r7, #24]
  48865. 8014c24: 9300 str r3, [sp, #0]
  48866. 8014c26: 4613 mov r3, r2
  48867. 8014c28: 697a ldr r2, [r7, #20]
  48868. 8014c2a: 68b9 ldr r1, [r7, #8]
  48869. 8014c2c: 68f8 ldr r0, [r7, #12]
  48870. 8014c2e: f000 f805 bl 8014c3c <prvInitialiseNewQueue>
  48871. {
  48872. traceQUEUE_CREATE_FAILED( ucQueueType );
  48873. mtCOVERAGE_TEST_MARKER();
  48874. }
  48875. return pxNewQueue;
  48876. 8014c32: 69bb ldr r3, [r7, #24]
  48877. }
  48878. 8014c34: 4618 mov r0, r3
  48879. 8014c36: 3720 adds r7, #32
  48880. 8014c38: 46bd mov sp, r7
  48881. 8014c3a: bd80 pop {r7, pc}
  48882. 08014c3c <prvInitialiseNewQueue>:
  48883. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48884. /*-----------------------------------------------------------*/
  48885. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  48886. {
  48887. 8014c3c: b580 push {r7, lr}
  48888. 8014c3e: b084 sub sp, #16
  48889. 8014c40: af00 add r7, sp, #0
  48890. 8014c42: 60f8 str r0, [r7, #12]
  48891. 8014c44: 60b9 str r1, [r7, #8]
  48892. 8014c46: 607a str r2, [r7, #4]
  48893. 8014c48: 70fb strb r3, [r7, #3]
  48894. /* Remove compiler warnings about unused parameters should
  48895. configUSE_TRACE_FACILITY not be set to 1. */
  48896. ( void ) ucQueueType;
  48897. if( uxItemSize == ( UBaseType_t ) 0 )
  48898. 8014c4a: 68bb ldr r3, [r7, #8]
  48899. 8014c4c: 2b00 cmp r3, #0
  48900. 8014c4e: d103 bne.n 8014c58 <prvInitialiseNewQueue+0x1c>
  48901. {
  48902. /* No RAM was allocated for the queue storage area, but PC head cannot
  48903. be set to NULL because NULL is used as a key to say the queue is used as
  48904. a mutex. Therefore just set pcHead to point to the queue as a benign
  48905. value that is known to be within the memory map. */
  48906. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  48907. 8014c50: 69bb ldr r3, [r7, #24]
  48908. 8014c52: 69ba ldr r2, [r7, #24]
  48909. 8014c54: 601a str r2, [r3, #0]
  48910. 8014c56: e002 b.n 8014c5e <prvInitialiseNewQueue+0x22>
  48911. }
  48912. else
  48913. {
  48914. /* Set the head to the start of the queue storage area. */
  48915. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  48916. 8014c58: 69bb ldr r3, [r7, #24]
  48917. 8014c5a: 687a ldr r2, [r7, #4]
  48918. 8014c5c: 601a str r2, [r3, #0]
  48919. }
  48920. /* Initialise the queue members as described where the queue type is
  48921. defined. */
  48922. pxNewQueue->uxLength = uxQueueLength;
  48923. 8014c5e: 69bb ldr r3, [r7, #24]
  48924. 8014c60: 68fa ldr r2, [r7, #12]
  48925. 8014c62: 63da str r2, [r3, #60] @ 0x3c
  48926. pxNewQueue->uxItemSize = uxItemSize;
  48927. 8014c64: 69bb ldr r3, [r7, #24]
  48928. 8014c66: 68ba ldr r2, [r7, #8]
  48929. 8014c68: 641a str r2, [r3, #64] @ 0x40
  48930. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  48931. 8014c6a: 2101 movs r1, #1
  48932. 8014c6c: 69b8 ldr r0, [r7, #24]
  48933. 8014c6e: f7ff fec3 bl 80149f8 <xQueueGenericReset>
  48934. #if ( configUSE_TRACE_FACILITY == 1 )
  48935. {
  48936. pxNewQueue->ucQueueType = ucQueueType;
  48937. 8014c72: 69bb ldr r3, [r7, #24]
  48938. 8014c74: 78fa ldrb r2, [r7, #3]
  48939. 8014c76: f883 204c strb.w r2, [r3, #76] @ 0x4c
  48940. pxNewQueue->pxQueueSetContainer = NULL;
  48941. }
  48942. #endif /* configUSE_QUEUE_SETS */
  48943. traceQUEUE_CREATE( pxNewQueue );
  48944. }
  48945. 8014c7a: bf00 nop
  48946. 8014c7c: 3710 adds r7, #16
  48947. 8014c7e: 46bd mov sp, r7
  48948. 8014c80: bd80 pop {r7, pc}
  48949. 08014c82 <prvInitialiseMutex>:
  48950. /*-----------------------------------------------------------*/
  48951. #if( configUSE_MUTEXES == 1 )
  48952. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  48953. {
  48954. 8014c82: b580 push {r7, lr}
  48955. 8014c84: b082 sub sp, #8
  48956. 8014c86: af00 add r7, sp, #0
  48957. 8014c88: 6078 str r0, [r7, #4]
  48958. if( pxNewQueue != NULL )
  48959. 8014c8a: 687b ldr r3, [r7, #4]
  48960. 8014c8c: 2b00 cmp r3, #0
  48961. 8014c8e: d00e beq.n 8014cae <prvInitialiseMutex+0x2c>
  48962. {
  48963. /* The queue create function will set all the queue structure members
  48964. correctly for a generic queue, but this function is creating a
  48965. mutex. Overwrite those members that need to be set differently -
  48966. in particular the information required for priority inheritance. */
  48967. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  48968. 8014c90: 687b ldr r3, [r7, #4]
  48969. 8014c92: 2200 movs r2, #0
  48970. 8014c94: 609a str r2, [r3, #8]
  48971. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  48972. 8014c96: 687b ldr r3, [r7, #4]
  48973. 8014c98: 2200 movs r2, #0
  48974. 8014c9a: 601a str r2, [r3, #0]
  48975. /* In case this is a recursive mutex. */
  48976. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  48977. 8014c9c: 687b ldr r3, [r7, #4]
  48978. 8014c9e: 2200 movs r2, #0
  48979. 8014ca0: 60da str r2, [r3, #12]
  48980. traceCREATE_MUTEX( pxNewQueue );
  48981. /* Start with the semaphore in the expected state. */
  48982. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  48983. 8014ca2: 2300 movs r3, #0
  48984. 8014ca4: 2200 movs r2, #0
  48985. 8014ca6: 2100 movs r1, #0
  48986. 8014ca8: 6878 ldr r0, [r7, #4]
  48987. 8014caa: f000 f8a3 bl 8014df4 <xQueueGenericSend>
  48988. }
  48989. else
  48990. {
  48991. traceCREATE_MUTEX_FAILED();
  48992. }
  48993. }
  48994. 8014cae: bf00 nop
  48995. 8014cb0: 3708 adds r7, #8
  48996. 8014cb2: 46bd mov sp, r7
  48997. 8014cb4: bd80 pop {r7, pc}
  48998. 08014cb6 <xQueueCreateMutex>:
  48999. /*-----------------------------------------------------------*/
  49000. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  49001. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  49002. {
  49003. 8014cb6: b580 push {r7, lr}
  49004. 8014cb8: b086 sub sp, #24
  49005. 8014cba: af00 add r7, sp, #0
  49006. 8014cbc: 4603 mov r3, r0
  49007. 8014cbe: 71fb strb r3, [r7, #7]
  49008. QueueHandle_t xNewQueue;
  49009. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49010. 8014cc0: 2301 movs r3, #1
  49011. 8014cc2: 617b str r3, [r7, #20]
  49012. 8014cc4: 2300 movs r3, #0
  49013. 8014cc6: 613b str r3, [r7, #16]
  49014. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  49015. 8014cc8: 79fb ldrb r3, [r7, #7]
  49016. 8014cca: 461a mov r2, r3
  49017. 8014ccc: 6939 ldr r1, [r7, #16]
  49018. 8014cce: 6978 ldr r0, [r7, #20]
  49019. 8014cd0: f7ff ff79 bl 8014bc6 <xQueueGenericCreate>
  49020. 8014cd4: 60f8 str r0, [r7, #12]
  49021. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49022. 8014cd6: 68f8 ldr r0, [r7, #12]
  49023. 8014cd8: f7ff ffd3 bl 8014c82 <prvInitialiseMutex>
  49024. return xNewQueue;
  49025. 8014cdc: 68fb ldr r3, [r7, #12]
  49026. }
  49027. 8014cde: 4618 mov r0, r3
  49028. 8014ce0: 3718 adds r7, #24
  49029. 8014ce2: 46bd mov sp, r7
  49030. 8014ce4: bd80 pop {r7, pc}
  49031. 08014ce6 <xQueueCreateMutexStatic>:
  49032. /*-----------------------------------------------------------*/
  49033. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  49034. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  49035. {
  49036. 8014ce6: b580 push {r7, lr}
  49037. 8014ce8: b088 sub sp, #32
  49038. 8014cea: af02 add r7, sp, #8
  49039. 8014cec: 4603 mov r3, r0
  49040. 8014cee: 6039 str r1, [r7, #0]
  49041. 8014cf0: 71fb strb r3, [r7, #7]
  49042. QueueHandle_t xNewQueue;
  49043. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49044. 8014cf2: 2301 movs r3, #1
  49045. 8014cf4: 617b str r3, [r7, #20]
  49046. 8014cf6: 2300 movs r3, #0
  49047. 8014cf8: 613b str r3, [r7, #16]
  49048. /* Prevent compiler warnings about unused parameters if
  49049. configUSE_TRACE_FACILITY does not equal 1. */
  49050. ( void ) ucQueueType;
  49051. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  49052. 8014cfa: 79fb ldrb r3, [r7, #7]
  49053. 8014cfc: 9300 str r3, [sp, #0]
  49054. 8014cfe: 683b ldr r3, [r7, #0]
  49055. 8014d00: 2200 movs r2, #0
  49056. 8014d02: 6939 ldr r1, [r7, #16]
  49057. 8014d04: 6978 ldr r0, [r7, #20]
  49058. 8014d06: f7ff fee1 bl 8014acc <xQueueGenericCreateStatic>
  49059. 8014d0a: 60f8 str r0, [r7, #12]
  49060. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49061. 8014d0c: 68f8 ldr r0, [r7, #12]
  49062. 8014d0e: f7ff ffb8 bl 8014c82 <prvInitialiseMutex>
  49063. return xNewQueue;
  49064. 8014d12: 68fb ldr r3, [r7, #12]
  49065. }
  49066. 8014d14: 4618 mov r0, r3
  49067. 8014d16: 3718 adds r7, #24
  49068. 8014d18: 46bd mov sp, r7
  49069. 8014d1a: bd80 pop {r7, pc}
  49070. 08014d1c <xQueueGiveMutexRecursive>:
  49071. /*-----------------------------------------------------------*/
  49072. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49073. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  49074. {
  49075. 8014d1c: b590 push {r4, r7, lr}
  49076. 8014d1e: b087 sub sp, #28
  49077. 8014d20: af00 add r7, sp, #0
  49078. 8014d22: 6078 str r0, [r7, #4]
  49079. BaseType_t xReturn;
  49080. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49081. 8014d24: 687b ldr r3, [r7, #4]
  49082. 8014d26: 613b str r3, [r7, #16]
  49083. configASSERT( pxMutex );
  49084. 8014d28: 693b ldr r3, [r7, #16]
  49085. 8014d2a: 2b00 cmp r3, #0
  49086. 8014d2c: d10b bne.n 8014d46 <xQueueGiveMutexRecursive+0x2a>
  49087. __asm volatile
  49088. 8014d2e: f04f 0350 mov.w r3, #80 @ 0x50
  49089. 8014d32: f383 8811 msr BASEPRI, r3
  49090. 8014d36: f3bf 8f6f isb sy
  49091. 8014d3a: f3bf 8f4f dsb sy
  49092. 8014d3e: 60fb str r3, [r7, #12]
  49093. }
  49094. 8014d40: bf00 nop
  49095. 8014d42: bf00 nop
  49096. 8014d44: e7fd b.n 8014d42 <xQueueGiveMutexRecursive+0x26>
  49097. change outside of this task. If this task does not hold the mutex then
  49098. pxMutexHolder can never coincidentally equal the tasks handle, and as
  49099. this is the only condition we are interested in it does not matter if
  49100. pxMutexHolder is accessed simultaneously by another task. Therefore no
  49101. mutual exclusion is required to test the pxMutexHolder variable. */
  49102. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49103. 8014d46: 693b ldr r3, [r7, #16]
  49104. 8014d48: 689c ldr r4, [r3, #8]
  49105. 8014d4a: f001 fe39 bl 80169c0 <xTaskGetCurrentTaskHandle>
  49106. 8014d4e: 4603 mov r3, r0
  49107. 8014d50: 429c cmp r4, r3
  49108. 8014d52: d111 bne.n 8014d78 <xQueueGiveMutexRecursive+0x5c>
  49109. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  49110. the task handle, therefore no underflow check is required. Also,
  49111. uxRecursiveCallCount is only modified by the mutex holder, and as
  49112. there can only be one, no mutual exclusion is required to modify the
  49113. uxRecursiveCallCount member. */
  49114. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  49115. 8014d54: 693b ldr r3, [r7, #16]
  49116. 8014d56: 68db ldr r3, [r3, #12]
  49117. 8014d58: 1e5a subs r2, r3, #1
  49118. 8014d5a: 693b ldr r3, [r7, #16]
  49119. 8014d5c: 60da str r2, [r3, #12]
  49120. /* Has the recursive call count unwound to 0? */
  49121. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  49122. 8014d5e: 693b ldr r3, [r7, #16]
  49123. 8014d60: 68db ldr r3, [r3, #12]
  49124. 8014d62: 2b00 cmp r3, #0
  49125. 8014d64: d105 bne.n 8014d72 <xQueueGiveMutexRecursive+0x56>
  49126. {
  49127. /* Return the mutex. This will automatically unblock any other
  49128. task that might be waiting to access the mutex. */
  49129. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  49130. 8014d66: 2300 movs r3, #0
  49131. 8014d68: 2200 movs r2, #0
  49132. 8014d6a: 2100 movs r1, #0
  49133. 8014d6c: 6938 ldr r0, [r7, #16]
  49134. 8014d6e: f000 f841 bl 8014df4 <xQueueGenericSend>
  49135. else
  49136. {
  49137. mtCOVERAGE_TEST_MARKER();
  49138. }
  49139. xReturn = pdPASS;
  49140. 8014d72: 2301 movs r3, #1
  49141. 8014d74: 617b str r3, [r7, #20]
  49142. 8014d76: e001 b.n 8014d7c <xQueueGiveMutexRecursive+0x60>
  49143. }
  49144. else
  49145. {
  49146. /* The mutex cannot be given because the calling task is not the
  49147. holder. */
  49148. xReturn = pdFAIL;
  49149. 8014d78: 2300 movs r3, #0
  49150. 8014d7a: 617b str r3, [r7, #20]
  49151. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49152. }
  49153. return xReturn;
  49154. 8014d7c: 697b ldr r3, [r7, #20]
  49155. }
  49156. 8014d7e: 4618 mov r0, r3
  49157. 8014d80: 371c adds r7, #28
  49158. 8014d82: 46bd mov sp, r7
  49159. 8014d84: bd90 pop {r4, r7, pc}
  49160. 08014d86 <xQueueTakeMutexRecursive>:
  49161. /*-----------------------------------------------------------*/
  49162. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49163. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  49164. {
  49165. 8014d86: b590 push {r4, r7, lr}
  49166. 8014d88: b087 sub sp, #28
  49167. 8014d8a: af00 add r7, sp, #0
  49168. 8014d8c: 6078 str r0, [r7, #4]
  49169. 8014d8e: 6039 str r1, [r7, #0]
  49170. BaseType_t xReturn;
  49171. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49172. 8014d90: 687b ldr r3, [r7, #4]
  49173. 8014d92: 613b str r3, [r7, #16]
  49174. configASSERT( pxMutex );
  49175. 8014d94: 693b ldr r3, [r7, #16]
  49176. 8014d96: 2b00 cmp r3, #0
  49177. 8014d98: d10b bne.n 8014db2 <xQueueTakeMutexRecursive+0x2c>
  49178. __asm volatile
  49179. 8014d9a: f04f 0350 mov.w r3, #80 @ 0x50
  49180. 8014d9e: f383 8811 msr BASEPRI, r3
  49181. 8014da2: f3bf 8f6f isb sy
  49182. 8014da6: f3bf 8f4f dsb sy
  49183. 8014daa: 60fb str r3, [r7, #12]
  49184. }
  49185. 8014dac: bf00 nop
  49186. 8014dae: bf00 nop
  49187. 8014db0: e7fd b.n 8014dae <xQueueTakeMutexRecursive+0x28>
  49188. /* Comments regarding mutual exclusion as per those within
  49189. xQueueGiveMutexRecursive(). */
  49190. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  49191. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49192. 8014db2: 693b ldr r3, [r7, #16]
  49193. 8014db4: 689c ldr r4, [r3, #8]
  49194. 8014db6: f001 fe03 bl 80169c0 <xTaskGetCurrentTaskHandle>
  49195. 8014dba: 4603 mov r3, r0
  49196. 8014dbc: 429c cmp r4, r3
  49197. 8014dbe: d107 bne.n 8014dd0 <xQueueTakeMutexRecursive+0x4a>
  49198. {
  49199. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49200. 8014dc0: 693b ldr r3, [r7, #16]
  49201. 8014dc2: 68db ldr r3, [r3, #12]
  49202. 8014dc4: 1c5a adds r2, r3, #1
  49203. 8014dc6: 693b ldr r3, [r7, #16]
  49204. 8014dc8: 60da str r2, [r3, #12]
  49205. xReturn = pdPASS;
  49206. 8014dca: 2301 movs r3, #1
  49207. 8014dcc: 617b str r3, [r7, #20]
  49208. 8014dce: e00c b.n 8014dea <xQueueTakeMutexRecursive+0x64>
  49209. }
  49210. else
  49211. {
  49212. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  49213. 8014dd0: 6839 ldr r1, [r7, #0]
  49214. 8014dd2: 6938 ldr r0, [r7, #16]
  49215. 8014dd4: f000 fa90 bl 80152f8 <xQueueSemaphoreTake>
  49216. 8014dd8: 6178 str r0, [r7, #20]
  49217. /* pdPASS will only be returned if the mutex was successfully
  49218. obtained. The calling task may have entered the Blocked state
  49219. before reaching here. */
  49220. if( xReturn != pdFAIL )
  49221. 8014dda: 697b ldr r3, [r7, #20]
  49222. 8014ddc: 2b00 cmp r3, #0
  49223. 8014dde: d004 beq.n 8014dea <xQueueTakeMutexRecursive+0x64>
  49224. {
  49225. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49226. 8014de0: 693b ldr r3, [r7, #16]
  49227. 8014de2: 68db ldr r3, [r3, #12]
  49228. 8014de4: 1c5a adds r2, r3, #1
  49229. 8014de6: 693b ldr r3, [r7, #16]
  49230. 8014de8: 60da str r2, [r3, #12]
  49231. {
  49232. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49233. }
  49234. }
  49235. return xReturn;
  49236. 8014dea: 697b ldr r3, [r7, #20]
  49237. }
  49238. 8014dec: 4618 mov r0, r3
  49239. 8014dee: 371c adds r7, #28
  49240. 8014df0: 46bd mov sp, r7
  49241. 8014df2: bd90 pop {r4, r7, pc}
  49242. 08014df4 <xQueueGenericSend>:
  49243. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  49244. /*-----------------------------------------------------------*/
  49245. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  49246. {
  49247. 8014df4: b580 push {r7, lr}
  49248. 8014df6: b08e sub sp, #56 @ 0x38
  49249. 8014df8: af00 add r7, sp, #0
  49250. 8014dfa: 60f8 str r0, [r7, #12]
  49251. 8014dfc: 60b9 str r1, [r7, #8]
  49252. 8014dfe: 607a str r2, [r7, #4]
  49253. 8014e00: 603b str r3, [r7, #0]
  49254. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  49255. 8014e02: 2300 movs r3, #0
  49256. 8014e04: 637b str r3, [r7, #52] @ 0x34
  49257. TimeOut_t xTimeOut;
  49258. Queue_t * const pxQueue = xQueue;
  49259. 8014e06: 68fb ldr r3, [r7, #12]
  49260. 8014e08: 633b str r3, [r7, #48] @ 0x30
  49261. configASSERT( pxQueue );
  49262. 8014e0a: 6b3b ldr r3, [r7, #48] @ 0x30
  49263. 8014e0c: 2b00 cmp r3, #0
  49264. 8014e0e: d10b bne.n 8014e28 <xQueueGenericSend+0x34>
  49265. __asm volatile
  49266. 8014e10: f04f 0350 mov.w r3, #80 @ 0x50
  49267. 8014e14: f383 8811 msr BASEPRI, r3
  49268. 8014e18: f3bf 8f6f isb sy
  49269. 8014e1c: f3bf 8f4f dsb sy
  49270. 8014e20: 62bb str r3, [r7, #40] @ 0x28
  49271. }
  49272. 8014e22: bf00 nop
  49273. 8014e24: bf00 nop
  49274. 8014e26: e7fd b.n 8014e24 <xQueueGenericSend+0x30>
  49275. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49276. 8014e28: 68bb ldr r3, [r7, #8]
  49277. 8014e2a: 2b00 cmp r3, #0
  49278. 8014e2c: d103 bne.n 8014e36 <xQueueGenericSend+0x42>
  49279. 8014e2e: 6b3b ldr r3, [r7, #48] @ 0x30
  49280. 8014e30: 6c1b ldr r3, [r3, #64] @ 0x40
  49281. 8014e32: 2b00 cmp r3, #0
  49282. 8014e34: d101 bne.n 8014e3a <xQueueGenericSend+0x46>
  49283. 8014e36: 2301 movs r3, #1
  49284. 8014e38: e000 b.n 8014e3c <xQueueGenericSend+0x48>
  49285. 8014e3a: 2300 movs r3, #0
  49286. 8014e3c: 2b00 cmp r3, #0
  49287. 8014e3e: d10b bne.n 8014e58 <xQueueGenericSend+0x64>
  49288. __asm volatile
  49289. 8014e40: f04f 0350 mov.w r3, #80 @ 0x50
  49290. 8014e44: f383 8811 msr BASEPRI, r3
  49291. 8014e48: f3bf 8f6f isb sy
  49292. 8014e4c: f3bf 8f4f dsb sy
  49293. 8014e50: 627b str r3, [r7, #36] @ 0x24
  49294. }
  49295. 8014e52: bf00 nop
  49296. 8014e54: bf00 nop
  49297. 8014e56: e7fd b.n 8014e54 <xQueueGenericSend+0x60>
  49298. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49299. 8014e58: 683b ldr r3, [r7, #0]
  49300. 8014e5a: 2b02 cmp r3, #2
  49301. 8014e5c: d103 bne.n 8014e66 <xQueueGenericSend+0x72>
  49302. 8014e5e: 6b3b ldr r3, [r7, #48] @ 0x30
  49303. 8014e60: 6bdb ldr r3, [r3, #60] @ 0x3c
  49304. 8014e62: 2b01 cmp r3, #1
  49305. 8014e64: d101 bne.n 8014e6a <xQueueGenericSend+0x76>
  49306. 8014e66: 2301 movs r3, #1
  49307. 8014e68: e000 b.n 8014e6c <xQueueGenericSend+0x78>
  49308. 8014e6a: 2300 movs r3, #0
  49309. 8014e6c: 2b00 cmp r3, #0
  49310. 8014e6e: d10b bne.n 8014e88 <xQueueGenericSend+0x94>
  49311. __asm volatile
  49312. 8014e70: f04f 0350 mov.w r3, #80 @ 0x50
  49313. 8014e74: f383 8811 msr BASEPRI, r3
  49314. 8014e78: f3bf 8f6f isb sy
  49315. 8014e7c: f3bf 8f4f dsb sy
  49316. 8014e80: 623b str r3, [r7, #32]
  49317. }
  49318. 8014e82: bf00 nop
  49319. 8014e84: bf00 nop
  49320. 8014e86: e7fd b.n 8014e84 <xQueueGenericSend+0x90>
  49321. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49322. {
  49323. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49324. 8014e88: f001 fdaa bl 80169e0 <xTaskGetSchedulerState>
  49325. 8014e8c: 4603 mov r3, r0
  49326. 8014e8e: 2b00 cmp r3, #0
  49327. 8014e90: d102 bne.n 8014e98 <xQueueGenericSend+0xa4>
  49328. 8014e92: 687b ldr r3, [r7, #4]
  49329. 8014e94: 2b00 cmp r3, #0
  49330. 8014e96: d101 bne.n 8014e9c <xQueueGenericSend+0xa8>
  49331. 8014e98: 2301 movs r3, #1
  49332. 8014e9a: e000 b.n 8014e9e <xQueueGenericSend+0xaa>
  49333. 8014e9c: 2300 movs r3, #0
  49334. 8014e9e: 2b00 cmp r3, #0
  49335. 8014ea0: d10b bne.n 8014eba <xQueueGenericSend+0xc6>
  49336. __asm volatile
  49337. 8014ea2: f04f 0350 mov.w r3, #80 @ 0x50
  49338. 8014ea6: f383 8811 msr BASEPRI, r3
  49339. 8014eaa: f3bf 8f6f isb sy
  49340. 8014eae: f3bf 8f4f dsb sy
  49341. 8014eb2: 61fb str r3, [r7, #28]
  49342. }
  49343. 8014eb4: bf00 nop
  49344. 8014eb6: bf00 nop
  49345. 8014eb8: e7fd b.n 8014eb6 <xQueueGenericSend+0xc2>
  49346. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49347. allow return statements within the function itself. This is done in the
  49348. interest of execution time efficiency. */
  49349. for( ;; )
  49350. {
  49351. taskENTER_CRITICAL();
  49352. 8014eba: f002 ff15 bl 8017ce8 <vPortEnterCritical>
  49353. {
  49354. /* Is there room on the queue now? The running task must be the
  49355. highest priority task wanting to access the queue. If the head item
  49356. in the queue is to be overwritten then it does not matter if the
  49357. queue is full. */
  49358. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49359. 8014ebe: 6b3b ldr r3, [r7, #48] @ 0x30
  49360. 8014ec0: 6b9a ldr r2, [r3, #56] @ 0x38
  49361. 8014ec2: 6b3b ldr r3, [r7, #48] @ 0x30
  49362. 8014ec4: 6bdb ldr r3, [r3, #60] @ 0x3c
  49363. 8014ec6: 429a cmp r2, r3
  49364. 8014ec8: d302 bcc.n 8014ed0 <xQueueGenericSend+0xdc>
  49365. 8014eca: 683b ldr r3, [r7, #0]
  49366. 8014ecc: 2b02 cmp r3, #2
  49367. 8014ece: d129 bne.n 8014f24 <xQueueGenericSend+0x130>
  49368. }
  49369. }
  49370. }
  49371. #else /* configUSE_QUEUE_SETS */
  49372. {
  49373. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49374. 8014ed0: 683a ldr r2, [r7, #0]
  49375. 8014ed2: 68b9 ldr r1, [r7, #8]
  49376. 8014ed4: 6b38 ldr r0, [r7, #48] @ 0x30
  49377. 8014ed6: f000 fbb9 bl 801564c <prvCopyDataToQueue>
  49378. 8014eda: 62f8 str r0, [r7, #44] @ 0x2c
  49379. /* If there was a task waiting for data to arrive on the
  49380. queue then unblock it now. */
  49381. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49382. 8014edc: 6b3b ldr r3, [r7, #48] @ 0x30
  49383. 8014ede: 6a5b ldr r3, [r3, #36] @ 0x24
  49384. 8014ee0: 2b00 cmp r3, #0
  49385. 8014ee2: d010 beq.n 8014f06 <xQueueGenericSend+0x112>
  49386. {
  49387. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49388. 8014ee4: 6b3b ldr r3, [r7, #48] @ 0x30
  49389. 8014ee6: 3324 adds r3, #36 @ 0x24
  49390. 8014ee8: 4618 mov r0, r3
  49391. 8014eea: f001 fb7b bl 80165e4 <xTaskRemoveFromEventList>
  49392. 8014eee: 4603 mov r3, r0
  49393. 8014ef0: 2b00 cmp r3, #0
  49394. 8014ef2: d013 beq.n 8014f1c <xQueueGenericSend+0x128>
  49395. {
  49396. /* The unblocked task has a priority higher than
  49397. our own so yield immediately. Yes it is ok to do
  49398. this from within the critical section - the kernel
  49399. takes care of that. */
  49400. queueYIELD_IF_USING_PREEMPTION();
  49401. 8014ef4: 4b3f ldr r3, [pc, #252] @ (8014ff4 <xQueueGenericSend+0x200>)
  49402. 8014ef6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49403. 8014efa: 601a str r2, [r3, #0]
  49404. 8014efc: f3bf 8f4f dsb sy
  49405. 8014f00: f3bf 8f6f isb sy
  49406. 8014f04: e00a b.n 8014f1c <xQueueGenericSend+0x128>
  49407. else
  49408. {
  49409. mtCOVERAGE_TEST_MARKER();
  49410. }
  49411. }
  49412. else if( xYieldRequired != pdFALSE )
  49413. 8014f06: 6afb ldr r3, [r7, #44] @ 0x2c
  49414. 8014f08: 2b00 cmp r3, #0
  49415. 8014f0a: d007 beq.n 8014f1c <xQueueGenericSend+0x128>
  49416. {
  49417. /* This path is a special case that will only get
  49418. executed if the task was holding multiple mutexes and
  49419. the mutexes were given back in an order that is
  49420. different to that in which they were taken. */
  49421. queueYIELD_IF_USING_PREEMPTION();
  49422. 8014f0c: 4b39 ldr r3, [pc, #228] @ (8014ff4 <xQueueGenericSend+0x200>)
  49423. 8014f0e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49424. 8014f12: 601a str r2, [r3, #0]
  49425. 8014f14: f3bf 8f4f dsb sy
  49426. 8014f18: f3bf 8f6f isb sy
  49427. mtCOVERAGE_TEST_MARKER();
  49428. }
  49429. }
  49430. #endif /* configUSE_QUEUE_SETS */
  49431. taskEXIT_CRITICAL();
  49432. 8014f1c: f002 ff16 bl 8017d4c <vPortExitCritical>
  49433. return pdPASS;
  49434. 8014f20: 2301 movs r3, #1
  49435. 8014f22: e063 b.n 8014fec <xQueueGenericSend+0x1f8>
  49436. }
  49437. else
  49438. {
  49439. if( xTicksToWait == ( TickType_t ) 0 )
  49440. 8014f24: 687b ldr r3, [r7, #4]
  49441. 8014f26: 2b00 cmp r3, #0
  49442. 8014f28: d103 bne.n 8014f32 <xQueueGenericSend+0x13e>
  49443. {
  49444. /* The queue was full and no block time is specified (or
  49445. the block time has expired) so leave now. */
  49446. taskEXIT_CRITICAL();
  49447. 8014f2a: f002 ff0f bl 8017d4c <vPortExitCritical>
  49448. /* Return to the original privilege level before exiting
  49449. the function. */
  49450. traceQUEUE_SEND_FAILED( pxQueue );
  49451. return errQUEUE_FULL;
  49452. 8014f2e: 2300 movs r3, #0
  49453. 8014f30: e05c b.n 8014fec <xQueueGenericSend+0x1f8>
  49454. }
  49455. else if( xEntryTimeSet == pdFALSE )
  49456. 8014f32: 6b7b ldr r3, [r7, #52] @ 0x34
  49457. 8014f34: 2b00 cmp r3, #0
  49458. 8014f36: d106 bne.n 8014f46 <xQueueGenericSend+0x152>
  49459. {
  49460. /* The queue was full and a block time was specified so
  49461. configure the timeout structure. */
  49462. vTaskInternalSetTimeOutState( &xTimeOut );
  49463. 8014f38: f107 0314 add.w r3, r7, #20
  49464. 8014f3c: 4618 mov r0, r3
  49465. 8014f3e: f001 fbdd bl 80166fc <vTaskInternalSetTimeOutState>
  49466. xEntryTimeSet = pdTRUE;
  49467. 8014f42: 2301 movs r3, #1
  49468. 8014f44: 637b str r3, [r7, #52] @ 0x34
  49469. /* Entry time was already set. */
  49470. mtCOVERAGE_TEST_MARKER();
  49471. }
  49472. }
  49473. }
  49474. taskEXIT_CRITICAL();
  49475. 8014f46: f002 ff01 bl 8017d4c <vPortExitCritical>
  49476. /* Interrupts and other tasks can send to and receive from the queue
  49477. now the critical section has been exited. */
  49478. vTaskSuspendAll();
  49479. 8014f4a: f001 f90f bl 801616c <vTaskSuspendAll>
  49480. prvLockQueue( pxQueue );
  49481. 8014f4e: f002 fecb bl 8017ce8 <vPortEnterCritical>
  49482. 8014f52: 6b3b ldr r3, [r7, #48] @ 0x30
  49483. 8014f54: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49484. 8014f58: b25b sxtb r3, r3
  49485. 8014f5a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49486. 8014f5e: d103 bne.n 8014f68 <xQueueGenericSend+0x174>
  49487. 8014f60: 6b3b ldr r3, [r7, #48] @ 0x30
  49488. 8014f62: 2200 movs r2, #0
  49489. 8014f64: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49490. 8014f68: 6b3b ldr r3, [r7, #48] @ 0x30
  49491. 8014f6a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49492. 8014f6e: b25b sxtb r3, r3
  49493. 8014f70: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49494. 8014f74: d103 bne.n 8014f7e <xQueueGenericSend+0x18a>
  49495. 8014f76: 6b3b ldr r3, [r7, #48] @ 0x30
  49496. 8014f78: 2200 movs r2, #0
  49497. 8014f7a: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49498. 8014f7e: f002 fee5 bl 8017d4c <vPortExitCritical>
  49499. /* Update the timeout state to see if it has expired yet. */
  49500. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49501. 8014f82: 1d3a adds r2, r7, #4
  49502. 8014f84: f107 0314 add.w r3, r7, #20
  49503. 8014f88: 4611 mov r1, r2
  49504. 8014f8a: 4618 mov r0, r3
  49505. 8014f8c: f001 fbcc bl 8016728 <xTaskCheckForTimeOut>
  49506. 8014f90: 4603 mov r3, r0
  49507. 8014f92: 2b00 cmp r3, #0
  49508. 8014f94: d124 bne.n 8014fe0 <xQueueGenericSend+0x1ec>
  49509. {
  49510. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  49511. 8014f96: 6b38 ldr r0, [r7, #48] @ 0x30
  49512. 8014f98: f000 fc50 bl 801583c <prvIsQueueFull>
  49513. 8014f9c: 4603 mov r3, r0
  49514. 8014f9e: 2b00 cmp r3, #0
  49515. 8014fa0: d018 beq.n 8014fd4 <xQueueGenericSend+0x1e0>
  49516. {
  49517. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  49518. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  49519. 8014fa2: 6b3b ldr r3, [r7, #48] @ 0x30
  49520. 8014fa4: 3310 adds r3, #16
  49521. 8014fa6: 687a ldr r2, [r7, #4]
  49522. 8014fa8: 4611 mov r1, r2
  49523. 8014faa: 4618 mov r0, r3
  49524. 8014fac: f001 fac8 bl 8016540 <vTaskPlaceOnEventList>
  49525. /* Unlocking the queue means queue events can effect the
  49526. event list. It is possible that interrupts occurring now
  49527. remove this task from the event list again - but as the
  49528. scheduler is suspended the task will go onto the pending
  49529. ready last instead of the actual ready list. */
  49530. prvUnlockQueue( pxQueue );
  49531. 8014fb0: 6b38 ldr r0, [r7, #48] @ 0x30
  49532. 8014fb2: f000 fbdb bl 801576c <prvUnlockQueue>
  49533. /* Resuming the scheduler will move tasks from the pending
  49534. ready list into the ready list - so it is feasible that this
  49535. task is already in a ready list before it yields - in which
  49536. case the yield will not cause a context switch unless there
  49537. is also a higher priority task in the pending ready list. */
  49538. if( xTaskResumeAll() == pdFALSE )
  49539. 8014fb6: f001 f8e7 bl 8016188 <xTaskResumeAll>
  49540. 8014fba: 4603 mov r3, r0
  49541. 8014fbc: 2b00 cmp r3, #0
  49542. 8014fbe: f47f af7c bne.w 8014eba <xQueueGenericSend+0xc6>
  49543. {
  49544. portYIELD_WITHIN_API();
  49545. 8014fc2: 4b0c ldr r3, [pc, #48] @ (8014ff4 <xQueueGenericSend+0x200>)
  49546. 8014fc4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49547. 8014fc8: 601a str r2, [r3, #0]
  49548. 8014fca: f3bf 8f4f dsb sy
  49549. 8014fce: f3bf 8f6f isb sy
  49550. 8014fd2: e772 b.n 8014eba <xQueueGenericSend+0xc6>
  49551. }
  49552. }
  49553. else
  49554. {
  49555. /* Try again. */
  49556. prvUnlockQueue( pxQueue );
  49557. 8014fd4: 6b38 ldr r0, [r7, #48] @ 0x30
  49558. 8014fd6: f000 fbc9 bl 801576c <prvUnlockQueue>
  49559. ( void ) xTaskResumeAll();
  49560. 8014fda: f001 f8d5 bl 8016188 <xTaskResumeAll>
  49561. 8014fde: e76c b.n 8014eba <xQueueGenericSend+0xc6>
  49562. }
  49563. }
  49564. else
  49565. {
  49566. /* The timeout has expired. */
  49567. prvUnlockQueue( pxQueue );
  49568. 8014fe0: 6b38 ldr r0, [r7, #48] @ 0x30
  49569. 8014fe2: f000 fbc3 bl 801576c <prvUnlockQueue>
  49570. ( void ) xTaskResumeAll();
  49571. 8014fe6: f001 f8cf bl 8016188 <xTaskResumeAll>
  49572. traceQUEUE_SEND_FAILED( pxQueue );
  49573. return errQUEUE_FULL;
  49574. 8014fea: 2300 movs r3, #0
  49575. }
  49576. } /*lint -restore */
  49577. }
  49578. 8014fec: 4618 mov r0, r3
  49579. 8014fee: 3738 adds r7, #56 @ 0x38
  49580. 8014ff0: 46bd mov sp, r7
  49581. 8014ff2: bd80 pop {r7, pc}
  49582. 8014ff4: e000ed04 .word 0xe000ed04
  49583. 08014ff8 <xQueueGenericSendFromISR>:
  49584. /*-----------------------------------------------------------*/
  49585. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  49586. {
  49587. 8014ff8: b580 push {r7, lr}
  49588. 8014ffa: b090 sub sp, #64 @ 0x40
  49589. 8014ffc: af00 add r7, sp, #0
  49590. 8014ffe: 60f8 str r0, [r7, #12]
  49591. 8015000: 60b9 str r1, [r7, #8]
  49592. 8015002: 607a str r2, [r7, #4]
  49593. 8015004: 603b str r3, [r7, #0]
  49594. BaseType_t xReturn;
  49595. UBaseType_t uxSavedInterruptStatus;
  49596. Queue_t * const pxQueue = xQueue;
  49597. 8015006: 68fb ldr r3, [r7, #12]
  49598. 8015008: 63bb str r3, [r7, #56] @ 0x38
  49599. configASSERT( pxQueue );
  49600. 801500a: 6bbb ldr r3, [r7, #56] @ 0x38
  49601. 801500c: 2b00 cmp r3, #0
  49602. 801500e: d10b bne.n 8015028 <xQueueGenericSendFromISR+0x30>
  49603. __asm volatile
  49604. 8015010: f04f 0350 mov.w r3, #80 @ 0x50
  49605. 8015014: f383 8811 msr BASEPRI, r3
  49606. 8015018: f3bf 8f6f isb sy
  49607. 801501c: f3bf 8f4f dsb sy
  49608. 8015020: 62bb str r3, [r7, #40] @ 0x28
  49609. }
  49610. 8015022: bf00 nop
  49611. 8015024: bf00 nop
  49612. 8015026: e7fd b.n 8015024 <xQueueGenericSendFromISR+0x2c>
  49613. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49614. 8015028: 68bb ldr r3, [r7, #8]
  49615. 801502a: 2b00 cmp r3, #0
  49616. 801502c: d103 bne.n 8015036 <xQueueGenericSendFromISR+0x3e>
  49617. 801502e: 6bbb ldr r3, [r7, #56] @ 0x38
  49618. 8015030: 6c1b ldr r3, [r3, #64] @ 0x40
  49619. 8015032: 2b00 cmp r3, #0
  49620. 8015034: d101 bne.n 801503a <xQueueGenericSendFromISR+0x42>
  49621. 8015036: 2301 movs r3, #1
  49622. 8015038: e000 b.n 801503c <xQueueGenericSendFromISR+0x44>
  49623. 801503a: 2300 movs r3, #0
  49624. 801503c: 2b00 cmp r3, #0
  49625. 801503e: d10b bne.n 8015058 <xQueueGenericSendFromISR+0x60>
  49626. __asm volatile
  49627. 8015040: f04f 0350 mov.w r3, #80 @ 0x50
  49628. 8015044: f383 8811 msr BASEPRI, r3
  49629. 8015048: f3bf 8f6f isb sy
  49630. 801504c: f3bf 8f4f dsb sy
  49631. 8015050: 627b str r3, [r7, #36] @ 0x24
  49632. }
  49633. 8015052: bf00 nop
  49634. 8015054: bf00 nop
  49635. 8015056: e7fd b.n 8015054 <xQueueGenericSendFromISR+0x5c>
  49636. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49637. 8015058: 683b ldr r3, [r7, #0]
  49638. 801505a: 2b02 cmp r3, #2
  49639. 801505c: d103 bne.n 8015066 <xQueueGenericSendFromISR+0x6e>
  49640. 801505e: 6bbb ldr r3, [r7, #56] @ 0x38
  49641. 8015060: 6bdb ldr r3, [r3, #60] @ 0x3c
  49642. 8015062: 2b01 cmp r3, #1
  49643. 8015064: d101 bne.n 801506a <xQueueGenericSendFromISR+0x72>
  49644. 8015066: 2301 movs r3, #1
  49645. 8015068: e000 b.n 801506c <xQueueGenericSendFromISR+0x74>
  49646. 801506a: 2300 movs r3, #0
  49647. 801506c: 2b00 cmp r3, #0
  49648. 801506e: d10b bne.n 8015088 <xQueueGenericSendFromISR+0x90>
  49649. __asm volatile
  49650. 8015070: f04f 0350 mov.w r3, #80 @ 0x50
  49651. 8015074: f383 8811 msr BASEPRI, r3
  49652. 8015078: f3bf 8f6f isb sy
  49653. 801507c: f3bf 8f4f dsb sy
  49654. 8015080: 623b str r3, [r7, #32]
  49655. }
  49656. 8015082: bf00 nop
  49657. 8015084: bf00 nop
  49658. 8015086: e7fd b.n 8015084 <xQueueGenericSendFromISR+0x8c>
  49659. that have been assigned a priority at or (logically) below the maximum
  49660. system call interrupt priority. FreeRTOS maintains a separate interrupt
  49661. safe API to ensure interrupt entry is as fast and as simple as possible.
  49662. More information (albeit Cortex-M specific) is provided on the following
  49663. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49664. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49665. 8015088: f002 ff0e bl 8017ea8 <vPortValidateInterruptPriority>
  49666. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  49667. {
  49668. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  49669. __asm volatile
  49670. 801508c: f3ef 8211 mrs r2, BASEPRI
  49671. 8015090: f04f 0350 mov.w r3, #80 @ 0x50
  49672. 8015094: f383 8811 msr BASEPRI, r3
  49673. 8015098: f3bf 8f6f isb sy
  49674. 801509c: f3bf 8f4f dsb sy
  49675. 80150a0: 61fa str r2, [r7, #28]
  49676. 80150a2: 61bb str r3, [r7, #24]
  49677. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  49678. );
  49679. /* This return will not be reached but is necessary to prevent compiler
  49680. warnings. */
  49681. return ulOriginalBASEPRI;
  49682. 80150a4: 69fb ldr r3, [r7, #28]
  49683. /* Similar to xQueueGenericSend, except without blocking if there is no room
  49684. in the queue. Also don't directly wake a task that was blocked on a queue
  49685. read, instead return a flag to say whether a context switch is required or
  49686. not (i.e. has a task with a higher priority than us been woken by this
  49687. post). */
  49688. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49689. 80150a6: 637b str r3, [r7, #52] @ 0x34
  49690. {
  49691. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49692. 80150a8: 6bbb ldr r3, [r7, #56] @ 0x38
  49693. 80150aa: 6b9a ldr r2, [r3, #56] @ 0x38
  49694. 80150ac: 6bbb ldr r3, [r7, #56] @ 0x38
  49695. 80150ae: 6bdb ldr r3, [r3, #60] @ 0x3c
  49696. 80150b0: 429a cmp r2, r3
  49697. 80150b2: d302 bcc.n 80150ba <xQueueGenericSendFromISR+0xc2>
  49698. 80150b4: 683b ldr r3, [r7, #0]
  49699. 80150b6: 2b02 cmp r3, #2
  49700. 80150b8: d12f bne.n 801511a <xQueueGenericSendFromISR+0x122>
  49701. {
  49702. const int8_t cTxLock = pxQueue->cTxLock;
  49703. 80150ba: 6bbb ldr r3, [r7, #56] @ 0x38
  49704. 80150bc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49705. 80150c0: f887 3033 strb.w r3, [r7, #51] @ 0x33
  49706. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  49707. 80150c4: 6bbb ldr r3, [r7, #56] @ 0x38
  49708. 80150c6: 6b9b ldr r3, [r3, #56] @ 0x38
  49709. 80150c8: 62fb str r3, [r7, #44] @ 0x2c
  49710. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  49711. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  49712. in a task disinheriting a priority and prvCopyDataToQueue() can be
  49713. called here even though the disinherit function does not check if
  49714. the scheduler is suspended before accessing the ready lists. */
  49715. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49716. 80150ca: 683a ldr r2, [r7, #0]
  49717. 80150cc: 68b9 ldr r1, [r7, #8]
  49718. 80150ce: 6bb8 ldr r0, [r7, #56] @ 0x38
  49719. 80150d0: f000 fabc bl 801564c <prvCopyDataToQueue>
  49720. /* The event list is not altered if the queue is locked. This will
  49721. be done when the queue is unlocked later. */
  49722. if( cTxLock == queueUNLOCKED )
  49723. 80150d4: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  49724. 80150d8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49725. 80150dc: d112 bne.n 8015104 <xQueueGenericSendFromISR+0x10c>
  49726. }
  49727. }
  49728. }
  49729. #else /* configUSE_QUEUE_SETS */
  49730. {
  49731. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49732. 80150de: 6bbb ldr r3, [r7, #56] @ 0x38
  49733. 80150e0: 6a5b ldr r3, [r3, #36] @ 0x24
  49734. 80150e2: 2b00 cmp r3, #0
  49735. 80150e4: d016 beq.n 8015114 <xQueueGenericSendFromISR+0x11c>
  49736. {
  49737. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49738. 80150e6: 6bbb ldr r3, [r7, #56] @ 0x38
  49739. 80150e8: 3324 adds r3, #36 @ 0x24
  49740. 80150ea: 4618 mov r0, r3
  49741. 80150ec: f001 fa7a bl 80165e4 <xTaskRemoveFromEventList>
  49742. 80150f0: 4603 mov r3, r0
  49743. 80150f2: 2b00 cmp r3, #0
  49744. 80150f4: d00e beq.n 8015114 <xQueueGenericSendFromISR+0x11c>
  49745. {
  49746. /* The task waiting has a higher priority so record that a
  49747. context switch is required. */
  49748. if( pxHigherPriorityTaskWoken != NULL )
  49749. 80150f6: 687b ldr r3, [r7, #4]
  49750. 80150f8: 2b00 cmp r3, #0
  49751. 80150fa: d00b beq.n 8015114 <xQueueGenericSendFromISR+0x11c>
  49752. {
  49753. *pxHigherPriorityTaskWoken = pdTRUE;
  49754. 80150fc: 687b ldr r3, [r7, #4]
  49755. 80150fe: 2201 movs r2, #1
  49756. 8015100: 601a str r2, [r3, #0]
  49757. 8015102: e007 b.n 8015114 <xQueueGenericSendFromISR+0x11c>
  49758. }
  49759. else
  49760. {
  49761. /* Increment the lock count so the task that unlocks the queue
  49762. knows that data was posted while it was locked. */
  49763. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  49764. 8015104: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  49765. 8015108: 3301 adds r3, #1
  49766. 801510a: b2db uxtb r3, r3
  49767. 801510c: b25a sxtb r2, r3
  49768. 801510e: 6bbb ldr r3, [r7, #56] @ 0x38
  49769. 8015110: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49770. }
  49771. xReturn = pdPASS;
  49772. 8015114: 2301 movs r3, #1
  49773. 8015116: 63fb str r3, [r7, #60] @ 0x3c
  49774. {
  49775. 8015118: e001 b.n 801511e <xQueueGenericSendFromISR+0x126>
  49776. }
  49777. else
  49778. {
  49779. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  49780. xReturn = errQUEUE_FULL;
  49781. 801511a: 2300 movs r3, #0
  49782. 801511c: 63fb str r3, [r7, #60] @ 0x3c
  49783. 801511e: 6b7b ldr r3, [r7, #52] @ 0x34
  49784. 8015120: 617b str r3, [r7, #20]
  49785. }
  49786. /*-----------------------------------------------------------*/
  49787. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  49788. {
  49789. __asm volatile
  49790. 8015122: 697b ldr r3, [r7, #20]
  49791. 8015124: f383 8811 msr BASEPRI, r3
  49792. (
  49793. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  49794. );
  49795. }
  49796. 8015128: bf00 nop
  49797. }
  49798. }
  49799. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49800. return xReturn;
  49801. 801512a: 6bfb ldr r3, [r7, #60] @ 0x3c
  49802. }
  49803. 801512c: 4618 mov r0, r3
  49804. 801512e: 3740 adds r7, #64 @ 0x40
  49805. 8015130: 46bd mov sp, r7
  49806. 8015132: bd80 pop {r7, pc}
  49807. 08015134 <xQueueReceive>:
  49808. return xReturn;
  49809. }
  49810. /*-----------------------------------------------------------*/
  49811. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  49812. {
  49813. 8015134: b580 push {r7, lr}
  49814. 8015136: b08c sub sp, #48 @ 0x30
  49815. 8015138: af00 add r7, sp, #0
  49816. 801513a: 60f8 str r0, [r7, #12]
  49817. 801513c: 60b9 str r1, [r7, #8]
  49818. 801513e: 607a str r2, [r7, #4]
  49819. BaseType_t xEntryTimeSet = pdFALSE;
  49820. 8015140: 2300 movs r3, #0
  49821. 8015142: 62fb str r3, [r7, #44] @ 0x2c
  49822. TimeOut_t xTimeOut;
  49823. Queue_t * const pxQueue = xQueue;
  49824. 8015144: 68fb ldr r3, [r7, #12]
  49825. 8015146: 62bb str r3, [r7, #40] @ 0x28
  49826. /* Check the pointer is not NULL. */
  49827. configASSERT( ( pxQueue ) );
  49828. 8015148: 6abb ldr r3, [r7, #40] @ 0x28
  49829. 801514a: 2b00 cmp r3, #0
  49830. 801514c: d10b bne.n 8015166 <xQueueReceive+0x32>
  49831. __asm volatile
  49832. 801514e: f04f 0350 mov.w r3, #80 @ 0x50
  49833. 8015152: f383 8811 msr BASEPRI, r3
  49834. 8015156: f3bf 8f6f isb sy
  49835. 801515a: f3bf 8f4f dsb sy
  49836. 801515e: 623b str r3, [r7, #32]
  49837. }
  49838. 8015160: bf00 nop
  49839. 8015162: bf00 nop
  49840. 8015164: e7fd b.n 8015162 <xQueueReceive+0x2e>
  49841. /* The buffer into which data is received can only be NULL if the data size
  49842. is zero (so no data is copied into the buffer. */
  49843. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49844. 8015166: 68bb ldr r3, [r7, #8]
  49845. 8015168: 2b00 cmp r3, #0
  49846. 801516a: d103 bne.n 8015174 <xQueueReceive+0x40>
  49847. 801516c: 6abb ldr r3, [r7, #40] @ 0x28
  49848. 801516e: 6c1b ldr r3, [r3, #64] @ 0x40
  49849. 8015170: 2b00 cmp r3, #0
  49850. 8015172: d101 bne.n 8015178 <xQueueReceive+0x44>
  49851. 8015174: 2301 movs r3, #1
  49852. 8015176: e000 b.n 801517a <xQueueReceive+0x46>
  49853. 8015178: 2300 movs r3, #0
  49854. 801517a: 2b00 cmp r3, #0
  49855. 801517c: d10b bne.n 8015196 <xQueueReceive+0x62>
  49856. __asm volatile
  49857. 801517e: f04f 0350 mov.w r3, #80 @ 0x50
  49858. 8015182: f383 8811 msr BASEPRI, r3
  49859. 8015186: f3bf 8f6f isb sy
  49860. 801518a: f3bf 8f4f dsb sy
  49861. 801518e: 61fb str r3, [r7, #28]
  49862. }
  49863. 8015190: bf00 nop
  49864. 8015192: bf00 nop
  49865. 8015194: e7fd b.n 8015192 <xQueueReceive+0x5e>
  49866. /* Cannot block if the scheduler is suspended. */
  49867. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49868. {
  49869. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49870. 8015196: f001 fc23 bl 80169e0 <xTaskGetSchedulerState>
  49871. 801519a: 4603 mov r3, r0
  49872. 801519c: 2b00 cmp r3, #0
  49873. 801519e: d102 bne.n 80151a6 <xQueueReceive+0x72>
  49874. 80151a0: 687b ldr r3, [r7, #4]
  49875. 80151a2: 2b00 cmp r3, #0
  49876. 80151a4: d101 bne.n 80151aa <xQueueReceive+0x76>
  49877. 80151a6: 2301 movs r3, #1
  49878. 80151a8: e000 b.n 80151ac <xQueueReceive+0x78>
  49879. 80151aa: 2300 movs r3, #0
  49880. 80151ac: 2b00 cmp r3, #0
  49881. 80151ae: d10b bne.n 80151c8 <xQueueReceive+0x94>
  49882. __asm volatile
  49883. 80151b0: f04f 0350 mov.w r3, #80 @ 0x50
  49884. 80151b4: f383 8811 msr BASEPRI, r3
  49885. 80151b8: f3bf 8f6f isb sy
  49886. 80151bc: f3bf 8f4f dsb sy
  49887. 80151c0: 61bb str r3, [r7, #24]
  49888. }
  49889. 80151c2: bf00 nop
  49890. 80151c4: bf00 nop
  49891. 80151c6: e7fd b.n 80151c4 <xQueueReceive+0x90>
  49892. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49893. allow return statements within the function itself. This is done in the
  49894. interest of execution time efficiency. */
  49895. for( ;; )
  49896. {
  49897. taskENTER_CRITICAL();
  49898. 80151c8: f002 fd8e bl 8017ce8 <vPortEnterCritical>
  49899. {
  49900. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49901. 80151cc: 6abb ldr r3, [r7, #40] @ 0x28
  49902. 80151ce: 6b9b ldr r3, [r3, #56] @ 0x38
  49903. 80151d0: 627b str r3, [r7, #36] @ 0x24
  49904. /* Is there data in the queue now? To be running the calling task
  49905. must be the highest priority task wanting to access the queue. */
  49906. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49907. 80151d2: 6a7b ldr r3, [r7, #36] @ 0x24
  49908. 80151d4: 2b00 cmp r3, #0
  49909. 80151d6: d01f beq.n 8015218 <xQueueReceive+0xe4>
  49910. {
  49911. /* Data available, remove one item. */
  49912. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49913. 80151d8: 68b9 ldr r1, [r7, #8]
  49914. 80151da: 6ab8 ldr r0, [r7, #40] @ 0x28
  49915. 80151dc: f000 faa0 bl 8015720 <prvCopyDataFromQueue>
  49916. traceQUEUE_RECEIVE( pxQueue );
  49917. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49918. 80151e0: 6a7b ldr r3, [r7, #36] @ 0x24
  49919. 80151e2: 1e5a subs r2, r3, #1
  49920. 80151e4: 6abb ldr r3, [r7, #40] @ 0x28
  49921. 80151e6: 639a str r2, [r3, #56] @ 0x38
  49922. /* There is now space in the queue, were any tasks waiting to
  49923. post to the queue? If so, unblock the highest priority waiting
  49924. task. */
  49925. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49926. 80151e8: 6abb ldr r3, [r7, #40] @ 0x28
  49927. 80151ea: 691b ldr r3, [r3, #16]
  49928. 80151ec: 2b00 cmp r3, #0
  49929. 80151ee: d00f beq.n 8015210 <xQueueReceive+0xdc>
  49930. {
  49931. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49932. 80151f0: 6abb ldr r3, [r7, #40] @ 0x28
  49933. 80151f2: 3310 adds r3, #16
  49934. 80151f4: 4618 mov r0, r3
  49935. 80151f6: f001 f9f5 bl 80165e4 <xTaskRemoveFromEventList>
  49936. 80151fa: 4603 mov r3, r0
  49937. 80151fc: 2b00 cmp r3, #0
  49938. 80151fe: d007 beq.n 8015210 <xQueueReceive+0xdc>
  49939. {
  49940. queueYIELD_IF_USING_PREEMPTION();
  49941. 8015200: 4b3c ldr r3, [pc, #240] @ (80152f4 <xQueueReceive+0x1c0>)
  49942. 8015202: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49943. 8015206: 601a str r2, [r3, #0]
  49944. 8015208: f3bf 8f4f dsb sy
  49945. 801520c: f3bf 8f6f isb sy
  49946. else
  49947. {
  49948. mtCOVERAGE_TEST_MARKER();
  49949. }
  49950. taskEXIT_CRITICAL();
  49951. 8015210: f002 fd9c bl 8017d4c <vPortExitCritical>
  49952. return pdPASS;
  49953. 8015214: 2301 movs r3, #1
  49954. 8015216: e069 b.n 80152ec <xQueueReceive+0x1b8>
  49955. }
  49956. else
  49957. {
  49958. if( xTicksToWait == ( TickType_t ) 0 )
  49959. 8015218: 687b ldr r3, [r7, #4]
  49960. 801521a: 2b00 cmp r3, #0
  49961. 801521c: d103 bne.n 8015226 <xQueueReceive+0xf2>
  49962. {
  49963. /* The queue was empty and no block time is specified (or
  49964. the block time has expired) so leave now. */
  49965. taskEXIT_CRITICAL();
  49966. 801521e: f002 fd95 bl 8017d4c <vPortExitCritical>
  49967. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49968. return errQUEUE_EMPTY;
  49969. 8015222: 2300 movs r3, #0
  49970. 8015224: e062 b.n 80152ec <xQueueReceive+0x1b8>
  49971. }
  49972. else if( xEntryTimeSet == pdFALSE )
  49973. 8015226: 6afb ldr r3, [r7, #44] @ 0x2c
  49974. 8015228: 2b00 cmp r3, #0
  49975. 801522a: d106 bne.n 801523a <xQueueReceive+0x106>
  49976. {
  49977. /* The queue was empty and a block time was specified so
  49978. configure the timeout structure. */
  49979. vTaskInternalSetTimeOutState( &xTimeOut );
  49980. 801522c: f107 0310 add.w r3, r7, #16
  49981. 8015230: 4618 mov r0, r3
  49982. 8015232: f001 fa63 bl 80166fc <vTaskInternalSetTimeOutState>
  49983. xEntryTimeSet = pdTRUE;
  49984. 8015236: 2301 movs r3, #1
  49985. 8015238: 62fb str r3, [r7, #44] @ 0x2c
  49986. /* Entry time was already set. */
  49987. mtCOVERAGE_TEST_MARKER();
  49988. }
  49989. }
  49990. }
  49991. taskEXIT_CRITICAL();
  49992. 801523a: f002 fd87 bl 8017d4c <vPortExitCritical>
  49993. /* Interrupts and other tasks can send to and receive from the queue
  49994. now the critical section has been exited. */
  49995. vTaskSuspendAll();
  49996. 801523e: f000 ff95 bl 801616c <vTaskSuspendAll>
  49997. prvLockQueue( pxQueue );
  49998. 8015242: f002 fd51 bl 8017ce8 <vPortEnterCritical>
  49999. 8015246: 6abb ldr r3, [r7, #40] @ 0x28
  50000. 8015248: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50001. 801524c: b25b sxtb r3, r3
  50002. 801524e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50003. 8015252: d103 bne.n 801525c <xQueueReceive+0x128>
  50004. 8015254: 6abb ldr r3, [r7, #40] @ 0x28
  50005. 8015256: 2200 movs r2, #0
  50006. 8015258: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50007. 801525c: 6abb ldr r3, [r7, #40] @ 0x28
  50008. 801525e: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50009. 8015262: b25b sxtb r3, r3
  50010. 8015264: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50011. 8015268: d103 bne.n 8015272 <xQueueReceive+0x13e>
  50012. 801526a: 6abb ldr r3, [r7, #40] @ 0x28
  50013. 801526c: 2200 movs r2, #0
  50014. 801526e: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50015. 8015272: f002 fd6b bl 8017d4c <vPortExitCritical>
  50016. /* Update the timeout state to see if it has expired yet. */
  50017. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50018. 8015276: 1d3a adds r2, r7, #4
  50019. 8015278: f107 0310 add.w r3, r7, #16
  50020. 801527c: 4611 mov r1, r2
  50021. 801527e: 4618 mov r0, r3
  50022. 8015280: f001 fa52 bl 8016728 <xTaskCheckForTimeOut>
  50023. 8015284: 4603 mov r3, r0
  50024. 8015286: 2b00 cmp r3, #0
  50025. 8015288: d123 bne.n 80152d2 <xQueueReceive+0x19e>
  50026. {
  50027. /* The timeout has not expired. If the queue is still empty place
  50028. the task on the list of tasks waiting to receive from the queue. */
  50029. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50030. 801528a: 6ab8 ldr r0, [r7, #40] @ 0x28
  50031. 801528c: f000 fac0 bl 8015810 <prvIsQueueEmpty>
  50032. 8015290: 4603 mov r3, r0
  50033. 8015292: 2b00 cmp r3, #0
  50034. 8015294: d017 beq.n 80152c6 <xQueueReceive+0x192>
  50035. {
  50036. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50037. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50038. 8015296: 6abb ldr r3, [r7, #40] @ 0x28
  50039. 8015298: 3324 adds r3, #36 @ 0x24
  50040. 801529a: 687a ldr r2, [r7, #4]
  50041. 801529c: 4611 mov r1, r2
  50042. 801529e: 4618 mov r0, r3
  50043. 80152a0: f001 f94e bl 8016540 <vTaskPlaceOnEventList>
  50044. prvUnlockQueue( pxQueue );
  50045. 80152a4: 6ab8 ldr r0, [r7, #40] @ 0x28
  50046. 80152a6: f000 fa61 bl 801576c <prvUnlockQueue>
  50047. if( xTaskResumeAll() == pdFALSE )
  50048. 80152aa: f000 ff6d bl 8016188 <xTaskResumeAll>
  50049. 80152ae: 4603 mov r3, r0
  50050. 80152b0: 2b00 cmp r3, #0
  50051. 80152b2: d189 bne.n 80151c8 <xQueueReceive+0x94>
  50052. {
  50053. portYIELD_WITHIN_API();
  50054. 80152b4: 4b0f ldr r3, [pc, #60] @ (80152f4 <xQueueReceive+0x1c0>)
  50055. 80152b6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50056. 80152ba: 601a str r2, [r3, #0]
  50057. 80152bc: f3bf 8f4f dsb sy
  50058. 80152c0: f3bf 8f6f isb sy
  50059. 80152c4: e780 b.n 80151c8 <xQueueReceive+0x94>
  50060. }
  50061. else
  50062. {
  50063. /* The queue contains data again. Loop back to try and read the
  50064. data. */
  50065. prvUnlockQueue( pxQueue );
  50066. 80152c6: 6ab8 ldr r0, [r7, #40] @ 0x28
  50067. 80152c8: f000 fa50 bl 801576c <prvUnlockQueue>
  50068. ( void ) xTaskResumeAll();
  50069. 80152cc: f000 ff5c bl 8016188 <xTaskResumeAll>
  50070. 80152d0: e77a b.n 80151c8 <xQueueReceive+0x94>
  50071. }
  50072. else
  50073. {
  50074. /* Timed out. If there is no data in the queue exit, otherwise loop
  50075. back and attempt to read the data. */
  50076. prvUnlockQueue( pxQueue );
  50077. 80152d2: 6ab8 ldr r0, [r7, #40] @ 0x28
  50078. 80152d4: f000 fa4a bl 801576c <prvUnlockQueue>
  50079. ( void ) xTaskResumeAll();
  50080. 80152d8: f000 ff56 bl 8016188 <xTaskResumeAll>
  50081. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50082. 80152dc: 6ab8 ldr r0, [r7, #40] @ 0x28
  50083. 80152de: f000 fa97 bl 8015810 <prvIsQueueEmpty>
  50084. 80152e2: 4603 mov r3, r0
  50085. 80152e4: 2b00 cmp r3, #0
  50086. 80152e6: f43f af6f beq.w 80151c8 <xQueueReceive+0x94>
  50087. {
  50088. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50089. return errQUEUE_EMPTY;
  50090. 80152ea: 2300 movs r3, #0
  50091. {
  50092. mtCOVERAGE_TEST_MARKER();
  50093. }
  50094. }
  50095. } /*lint -restore */
  50096. }
  50097. 80152ec: 4618 mov r0, r3
  50098. 80152ee: 3730 adds r7, #48 @ 0x30
  50099. 80152f0: 46bd mov sp, r7
  50100. 80152f2: bd80 pop {r7, pc}
  50101. 80152f4: e000ed04 .word 0xe000ed04
  50102. 080152f8 <xQueueSemaphoreTake>:
  50103. /*-----------------------------------------------------------*/
  50104. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  50105. {
  50106. 80152f8: b580 push {r7, lr}
  50107. 80152fa: b08e sub sp, #56 @ 0x38
  50108. 80152fc: af00 add r7, sp, #0
  50109. 80152fe: 6078 str r0, [r7, #4]
  50110. 8015300: 6039 str r1, [r7, #0]
  50111. BaseType_t xEntryTimeSet = pdFALSE;
  50112. 8015302: 2300 movs r3, #0
  50113. 8015304: 637b str r3, [r7, #52] @ 0x34
  50114. TimeOut_t xTimeOut;
  50115. Queue_t * const pxQueue = xQueue;
  50116. 8015306: 687b ldr r3, [r7, #4]
  50117. 8015308: 62fb str r3, [r7, #44] @ 0x2c
  50118. #if( configUSE_MUTEXES == 1 )
  50119. BaseType_t xInheritanceOccurred = pdFALSE;
  50120. 801530a: 2300 movs r3, #0
  50121. 801530c: 633b str r3, [r7, #48] @ 0x30
  50122. #endif
  50123. /* Check the queue pointer is not NULL. */
  50124. configASSERT( ( pxQueue ) );
  50125. 801530e: 6afb ldr r3, [r7, #44] @ 0x2c
  50126. 8015310: 2b00 cmp r3, #0
  50127. 8015312: d10b bne.n 801532c <xQueueSemaphoreTake+0x34>
  50128. __asm volatile
  50129. 8015314: f04f 0350 mov.w r3, #80 @ 0x50
  50130. 8015318: f383 8811 msr BASEPRI, r3
  50131. 801531c: f3bf 8f6f isb sy
  50132. 8015320: f3bf 8f4f dsb sy
  50133. 8015324: 623b str r3, [r7, #32]
  50134. }
  50135. 8015326: bf00 nop
  50136. 8015328: bf00 nop
  50137. 801532a: e7fd b.n 8015328 <xQueueSemaphoreTake+0x30>
  50138. /* Check this really is a semaphore, in which case the item size will be
  50139. 0. */
  50140. configASSERT( pxQueue->uxItemSize == 0 );
  50141. 801532c: 6afb ldr r3, [r7, #44] @ 0x2c
  50142. 801532e: 6c1b ldr r3, [r3, #64] @ 0x40
  50143. 8015330: 2b00 cmp r3, #0
  50144. 8015332: d00b beq.n 801534c <xQueueSemaphoreTake+0x54>
  50145. __asm volatile
  50146. 8015334: f04f 0350 mov.w r3, #80 @ 0x50
  50147. 8015338: f383 8811 msr BASEPRI, r3
  50148. 801533c: f3bf 8f6f isb sy
  50149. 8015340: f3bf 8f4f dsb sy
  50150. 8015344: 61fb str r3, [r7, #28]
  50151. }
  50152. 8015346: bf00 nop
  50153. 8015348: bf00 nop
  50154. 801534a: e7fd b.n 8015348 <xQueueSemaphoreTake+0x50>
  50155. /* Cannot block if the scheduler is suspended. */
  50156. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  50157. {
  50158. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  50159. 801534c: f001 fb48 bl 80169e0 <xTaskGetSchedulerState>
  50160. 8015350: 4603 mov r3, r0
  50161. 8015352: 2b00 cmp r3, #0
  50162. 8015354: d102 bne.n 801535c <xQueueSemaphoreTake+0x64>
  50163. 8015356: 683b ldr r3, [r7, #0]
  50164. 8015358: 2b00 cmp r3, #0
  50165. 801535a: d101 bne.n 8015360 <xQueueSemaphoreTake+0x68>
  50166. 801535c: 2301 movs r3, #1
  50167. 801535e: e000 b.n 8015362 <xQueueSemaphoreTake+0x6a>
  50168. 8015360: 2300 movs r3, #0
  50169. 8015362: 2b00 cmp r3, #0
  50170. 8015364: d10b bne.n 801537e <xQueueSemaphoreTake+0x86>
  50171. __asm volatile
  50172. 8015366: f04f 0350 mov.w r3, #80 @ 0x50
  50173. 801536a: f383 8811 msr BASEPRI, r3
  50174. 801536e: f3bf 8f6f isb sy
  50175. 8015372: f3bf 8f4f dsb sy
  50176. 8015376: 61bb str r3, [r7, #24]
  50177. }
  50178. 8015378: bf00 nop
  50179. 801537a: bf00 nop
  50180. 801537c: e7fd b.n 801537a <xQueueSemaphoreTake+0x82>
  50181. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  50182. statements within the function itself. This is done in the interest
  50183. of execution time efficiency. */
  50184. for( ;; )
  50185. {
  50186. taskENTER_CRITICAL();
  50187. 801537e: f002 fcb3 bl 8017ce8 <vPortEnterCritical>
  50188. {
  50189. /* Semaphores are queues with an item size of 0, and where the
  50190. number of messages in the queue is the semaphore's count value. */
  50191. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  50192. 8015382: 6afb ldr r3, [r7, #44] @ 0x2c
  50193. 8015384: 6b9b ldr r3, [r3, #56] @ 0x38
  50194. 8015386: 62bb str r3, [r7, #40] @ 0x28
  50195. /* Is there data in the queue now? To be running the calling task
  50196. must be the highest priority task wanting to access the queue. */
  50197. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  50198. 8015388: 6abb ldr r3, [r7, #40] @ 0x28
  50199. 801538a: 2b00 cmp r3, #0
  50200. 801538c: d024 beq.n 80153d8 <xQueueSemaphoreTake+0xe0>
  50201. {
  50202. traceQUEUE_RECEIVE( pxQueue );
  50203. /* Semaphores are queues with a data size of zero and where the
  50204. messages waiting is the semaphore's count. Reduce the count. */
  50205. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  50206. 801538e: 6abb ldr r3, [r7, #40] @ 0x28
  50207. 8015390: 1e5a subs r2, r3, #1
  50208. 8015392: 6afb ldr r3, [r7, #44] @ 0x2c
  50209. 8015394: 639a str r2, [r3, #56] @ 0x38
  50210. #if ( configUSE_MUTEXES == 1 )
  50211. {
  50212. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50213. 8015396: 6afb ldr r3, [r7, #44] @ 0x2c
  50214. 8015398: 681b ldr r3, [r3, #0]
  50215. 801539a: 2b00 cmp r3, #0
  50216. 801539c: d104 bne.n 80153a8 <xQueueSemaphoreTake+0xb0>
  50217. {
  50218. /* Record the information required to implement
  50219. priority inheritance should it become necessary. */
  50220. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  50221. 801539e: f001 fc99 bl 8016cd4 <pvTaskIncrementMutexHeldCount>
  50222. 80153a2: 4602 mov r2, r0
  50223. 80153a4: 6afb ldr r3, [r7, #44] @ 0x2c
  50224. 80153a6: 609a str r2, [r3, #8]
  50225. }
  50226. #endif /* configUSE_MUTEXES */
  50227. /* Check to see if other tasks are blocked waiting to give the
  50228. semaphore, and if so, unblock the highest priority such task. */
  50229. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50230. 80153a8: 6afb ldr r3, [r7, #44] @ 0x2c
  50231. 80153aa: 691b ldr r3, [r3, #16]
  50232. 80153ac: 2b00 cmp r3, #0
  50233. 80153ae: d00f beq.n 80153d0 <xQueueSemaphoreTake+0xd8>
  50234. {
  50235. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50236. 80153b0: 6afb ldr r3, [r7, #44] @ 0x2c
  50237. 80153b2: 3310 adds r3, #16
  50238. 80153b4: 4618 mov r0, r3
  50239. 80153b6: f001 f915 bl 80165e4 <xTaskRemoveFromEventList>
  50240. 80153ba: 4603 mov r3, r0
  50241. 80153bc: 2b00 cmp r3, #0
  50242. 80153be: d007 beq.n 80153d0 <xQueueSemaphoreTake+0xd8>
  50243. {
  50244. queueYIELD_IF_USING_PREEMPTION();
  50245. 80153c0: 4b54 ldr r3, [pc, #336] @ (8015514 <xQueueSemaphoreTake+0x21c>)
  50246. 80153c2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50247. 80153c6: 601a str r2, [r3, #0]
  50248. 80153c8: f3bf 8f4f dsb sy
  50249. 80153cc: f3bf 8f6f isb sy
  50250. else
  50251. {
  50252. mtCOVERAGE_TEST_MARKER();
  50253. }
  50254. taskEXIT_CRITICAL();
  50255. 80153d0: f002 fcbc bl 8017d4c <vPortExitCritical>
  50256. return pdPASS;
  50257. 80153d4: 2301 movs r3, #1
  50258. 80153d6: e098 b.n 801550a <xQueueSemaphoreTake+0x212>
  50259. }
  50260. else
  50261. {
  50262. if( xTicksToWait == ( TickType_t ) 0 )
  50263. 80153d8: 683b ldr r3, [r7, #0]
  50264. 80153da: 2b00 cmp r3, #0
  50265. 80153dc: d112 bne.n 8015404 <xQueueSemaphoreTake+0x10c>
  50266. /* For inheritance to have occurred there must have been an
  50267. initial timeout, and an adjusted timeout cannot become 0, as
  50268. if it were 0 the function would have exited. */
  50269. #if( configUSE_MUTEXES == 1 )
  50270. {
  50271. configASSERT( xInheritanceOccurred == pdFALSE );
  50272. 80153de: 6b3b ldr r3, [r7, #48] @ 0x30
  50273. 80153e0: 2b00 cmp r3, #0
  50274. 80153e2: d00b beq.n 80153fc <xQueueSemaphoreTake+0x104>
  50275. __asm volatile
  50276. 80153e4: f04f 0350 mov.w r3, #80 @ 0x50
  50277. 80153e8: f383 8811 msr BASEPRI, r3
  50278. 80153ec: f3bf 8f6f isb sy
  50279. 80153f0: f3bf 8f4f dsb sy
  50280. 80153f4: 617b str r3, [r7, #20]
  50281. }
  50282. 80153f6: bf00 nop
  50283. 80153f8: bf00 nop
  50284. 80153fa: e7fd b.n 80153f8 <xQueueSemaphoreTake+0x100>
  50285. }
  50286. #endif /* configUSE_MUTEXES */
  50287. /* The semaphore count was 0 and no block time is specified
  50288. (or the block time has expired) so exit now. */
  50289. taskEXIT_CRITICAL();
  50290. 80153fc: f002 fca6 bl 8017d4c <vPortExitCritical>
  50291. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50292. return errQUEUE_EMPTY;
  50293. 8015400: 2300 movs r3, #0
  50294. 8015402: e082 b.n 801550a <xQueueSemaphoreTake+0x212>
  50295. }
  50296. else if( xEntryTimeSet == pdFALSE )
  50297. 8015404: 6b7b ldr r3, [r7, #52] @ 0x34
  50298. 8015406: 2b00 cmp r3, #0
  50299. 8015408: d106 bne.n 8015418 <xQueueSemaphoreTake+0x120>
  50300. {
  50301. /* The semaphore count was 0 and a block time was specified
  50302. so configure the timeout structure ready to block. */
  50303. vTaskInternalSetTimeOutState( &xTimeOut );
  50304. 801540a: f107 030c add.w r3, r7, #12
  50305. 801540e: 4618 mov r0, r3
  50306. 8015410: f001 f974 bl 80166fc <vTaskInternalSetTimeOutState>
  50307. xEntryTimeSet = pdTRUE;
  50308. 8015414: 2301 movs r3, #1
  50309. 8015416: 637b str r3, [r7, #52] @ 0x34
  50310. /* Entry time was already set. */
  50311. mtCOVERAGE_TEST_MARKER();
  50312. }
  50313. }
  50314. }
  50315. taskEXIT_CRITICAL();
  50316. 8015418: f002 fc98 bl 8017d4c <vPortExitCritical>
  50317. /* Interrupts and other tasks can give to and take from the semaphore
  50318. now the critical section has been exited. */
  50319. vTaskSuspendAll();
  50320. 801541c: f000 fea6 bl 801616c <vTaskSuspendAll>
  50321. prvLockQueue( pxQueue );
  50322. 8015420: f002 fc62 bl 8017ce8 <vPortEnterCritical>
  50323. 8015424: 6afb ldr r3, [r7, #44] @ 0x2c
  50324. 8015426: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50325. 801542a: b25b sxtb r3, r3
  50326. 801542c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50327. 8015430: d103 bne.n 801543a <xQueueSemaphoreTake+0x142>
  50328. 8015432: 6afb ldr r3, [r7, #44] @ 0x2c
  50329. 8015434: 2200 movs r2, #0
  50330. 8015436: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50331. 801543a: 6afb ldr r3, [r7, #44] @ 0x2c
  50332. 801543c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50333. 8015440: b25b sxtb r3, r3
  50334. 8015442: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50335. 8015446: d103 bne.n 8015450 <xQueueSemaphoreTake+0x158>
  50336. 8015448: 6afb ldr r3, [r7, #44] @ 0x2c
  50337. 801544a: 2200 movs r2, #0
  50338. 801544c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50339. 8015450: f002 fc7c bl 8017d4c <vPortExitCritical>
  50340. /* Update the timeout state to see if it has expired yet. */
  50341. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50342. 8015454: 463a mov r2, r7
  50343. 8015456: f107 030c add.w r3, r7, #12
  50344. 801545a: 4611 mov r1, r2
  50345. 801545c: 4618 mov r0, r3
  50346. 801545e: f001 f963 bl 8016728 <xTaskCheckForTimeOut>
  50347. 8015462: 4603 mov r3, r0
  50348. 8015464: 2b00 cmp r3, #0
  50349. 8015466: d132 bne.n 80154ce <xQueueSemaphoreTake+0x1d6>
  50350. {
  50351. /* A block time is specified and not expired. If the semaphore
  50352. count is 0 then enter the Blocked state to wait for a semaphore to
  50353. become available. As semaphores are implemented with queues the
  50354. queue being empty is equivalent to the semaphore count being 0. */
  50355. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50356. 8015468: 6af8 ldr r0, [r7, #44] @ 0x2c
  50357. 801546a: f000 f9d1 bl 8015810 <prvIsQueueEmpty>
  50358. 801546e: 4603 mov r3, r0
  50359. 8015470: 2b00 cmp r3, #0
  50360. 8015472: d026 beq.n 80154c2 <xQueueSemaphoreTake+0x1ca>
  50361. {
  50362. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50363. #if ( configUSE_MUTEXES == 1 )
  50364. {
  50365. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50366. 8015474: 6afb ldr r3, [r7, #44] @ 0x2c
  50367. 8015476: 681b ldr r3, [r3, #0]
  50368. 8015478: 2b00 cmp r3, #0
  50369. 801547a: d109 bne.n 8015490 <xQueueSemaphoreTake+0x198>
  50370. {
  50371. taskENTER_CRITICAL();
  50372. 801547c: f002 fc34 bl 8017ce8 <vPortEnterCritical>
  50373. {
  50374. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  50375. 8015480: 6afb ldr r3, [r7, #44] @ 0x2c
  50376. 8015482: 689b ldr r3, [r3, #8]
  50377. 8015484: 4618 mov r0, r3
  50378. 8015486: f001 fac9 bl 8016a1c <xTaskPriorityInherit>
  50379. 801548a: 6338 str r0, [r7, #48] @ 0x30
  50380. }
  50381. taskEXIT_CRITICAL();
  50382. 801548c: f002 fc5e bl 8017d4c <vPortExitCritical>
  50383. mtCOVERAGE_TEST_MARKER();
  50384. }
  50385. }
  50386. #endif
  50387. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50388. 8015490: 6afb ldr r3, [r7, #44] @ 0x2c
  50389. 8015492: 3324 adds r3, #36 @ 0x24
  50390. 8015494: 683a ldr r2, [r7, #0]
  50391. 8015496: 4611 mov r1, r2
  50392. 8015498: 4618 mov r0, r3
  50393. 801549a: f001 f851 bl 8016540 <vTaskPlaceOnEventList>
  50394. prvUnlockQueue( pxQueue );
  50395. 801549e: 6af8 ldr r0, [r7, #44] @ 0x2c
  50396. 80154a0: f000 f964 bl 801576c <prvUnlockQueue>
  50397. if( xTaskResumeAll() == pdFALSE )
  50398. 80154a4: f000 fe70 bl 8016188 <xTaskResumeAll>
  50399. 80154a8: 4603 mov r3, r0
  50400. 80154aa: 2b00 cmp r3, #0
  50401. 80154ac: f47f af67 bne.w 801537e <xQueueSemaphoreTake+0x86>
  50402. {
  50403. portYIELD_WITHIN_API();
  50404. 80154b0: 4b18 ldr r3, [pc, #96] @ (8015514 <xQueueSemaphoreTake+0x21c>)
  50405. 80154b2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50406. 80154b6: 601a str r2, [r3, #0]
  50407. 80154b8: f3bf 8f4f dsb sy
  50408. 80154bc: f3bf 8f6f isb sy
  50409. 80154c0: e75d b.n 801537e <xQueueSemaphoreTake+0x86>
  50410. }
  50411. else
  50412. {
  50413. /* There was no timeout and the semaphore count was not 0, so
  50414. attempt to take the semaphore again. */
  50415. prvUnlockQueue( pxQueue );
  50416. 80154c2: 6af8 ldr r0, [r7, #44] @ 0x2c
  50417. 80154c4: f000 f952 bl 801576c <prvUnlockQueue>
  50418. ( void ) xTaskResumeAll();
  50419. 80154c8: f000 fe5e bl 8016188 <xTaskResumeAll>
  50420. 80154cc: e757 b.n 801537e <xQueueSemaphoreTake+0x86>
  50421. }
  50422. }
  50423. else
  50424. {
  50425. /* Timed out. */
  50426. prvUnlockQueue( pxQueue );
  50427. 80154ce: 6af8 ldr r0, [r7, #44] @ 0x2c
  50428. 80154d0: f000 f94c bl 801576c <prvUnlockQueue>
  50429. ( void ) xTaskResumeAll();
  50430. 80154d4: f000 fe58 bl 8016188 <xTaskResumeAll>
  50431. /* If the semaphore count is 0 exit now as the timeout has
  50432. expired. Otherwise return to attempt to take the semaphore that is
  50433. known to be available. As semaphores are implemented by queues the
  50434. queue being empty is equivalent to the semaphore count being 0. */
  50435. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50436. 80154d8: 6af8 ldr r0, [r7, #44] @ 0x2c
  50437. 80154da: f000 f999 bl 8015810 <prvIsQueueEmpty>
  50438. 80154de: 4603 mov r3, r0
  50439. 80154e0: 2b00 cmp r3, #0
  50440. 80154e2: f43f af4c beq.w 801537e <xQueueSemaphoreTake+0x86>
  50441. #if ( configUSE_MUTEXES == 1 )
  50442. {
  50443. /* xInheritanceOccurred could only have be set if
  50444. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  50445. test the mutex type again to check it is actually a mutex. */
  50446. if( xInheritanceOccurred != pdFALSE )
  50447. 80154e6: 6b3b ldr r3, [r7, #48] @ 0x30
  50448. 80154e8: 2b00 cmp r3, #0
  50449. 80154ea: d00d beq.n 8015508 <xQueueSemaphoreTake+0x210>
  50450. {
  50451. taskENTER_CRITICAL();
  50452. 80154ec: f002 fbfc bl 8017ce8 <vPortEnterCritical>
  50453. /* This task blocking on the mutex caused another
  50454. task to inherit this task's priority. Now this task
  50455. has timed out the priority should be disinherited
  50456. again, but only as low as the next highest priority
  50457. task that is waiting for the same mutex. */
  50458. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  50459. 80154f0: 6af8 ldr r0, [r7, #44] @ 0x2c
  50460. 80154f2: f000 f893 bl 801561c <prvGetDisinheritPriorityAfterTimeout>
  50461. 80154f6: 6278 str r0, [r7, #36] @ 0x24
  50462. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  50463. 80154f8: 6afb ldr r3, [r7, #44] @ 0x2c
  50464. 80154fa: 689b ldr r3, [r3, #8]
  50465. 80154fc: 6a79 ldr r1, [r7, #36] @ 0x24
  50466. 80154fe: 4618 mov r0, r3
  50467. 8015500: f001 fb64 bl 8016bcc <vTaskPriorityDisinheritAfterTimeout>
  50468. }
  50469. taskEXIT_CRITICAL();
  50470. 8015504: f002 fc22 bl 8017d4c <vPortExitCritical>
  50471. }
  50472. }
  50473. #endif /* configUSE_MUTEXES */
  50474. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50475. return errQUEUE_EMPTY;
  50476. 8015508: 2300 movs r3, #0
  50477. {
  50478. mtCOVERAGE_TEST_MARKER();
  50479. }
  50480. }
  50481. } /*lint -restore */
  50482. }
  50483. 801550a: 4618 mov r0, r3
  50484. 801550c: 3738 adds r7, #56 @ 0x38
  50485. 801550e: 46bd mov sp, r7
  50486. 8015510: bd80 pop {r7, pc}
  50487. 8015512: bf00 nop
  50488. 8015514: e000ed04 .word 0xe000ed04
  50489. 08015518 <xQueueReceiveFromISR>:
  50490. } /*lint -restore */
  50491. }
  50492. /*-----------------------------------------------------------*/
  50493. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  50494. {
  50495. 8015518: b580 push {r7, lr}
  50496. 801551a: b08e sub sp, #56 @ 0x38
  50497. 801551c: af00 add r7, sp, #0
  50498. 801551e: 60f8 str r0, [r7, #12]
  50499. 8015520: 60b9 str r1, [r7, #8]
  50500. 8015522: 607a str r2, [r7, #4]
  50501. BaseType_t xReturn;
  50502. UBaseType_t uxSavedInterruptStatus;
  50503. Queue_t * const pxQueue = xQueue;
  50504. 8015524: 68fb ldr r3, [r7, #12]
  50505. 8015526: 633b str r3, [r7, #48] @ 0x30
  50506. configASSERT( pxQueue );
  50507. 8015528: 6b3b ldr r3, [r7, #48] @ 0x30
  50508. 801552a: 2b00 cmp r3, #0
  50509. 801552c: d10b bne.n 8015546 <xQueueReceiveFromISR+0x2e>
  50510. __asm volatile
  50511. 801552e: f04f 0350 mov.w r3, #80 @ 0x50
  50512. 8015532: f383 8811 msr BASEPRI, r3
  50513. 8015536: f3bf 8f6f isb sy
  50514. 801553a: f3bf 8f4f dsb sy
  50515. 801553e: 623b str r3, [r7, #32]
  50516. }
  50517. 8015540: bf00 nop
  50518. 8015542: bf00 nop
  50519. 8015544: e7fd b.n 8015542 <xQueueReceiveFromISR+0x2a>
  50520. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  50521. 8015546: 68bb ldr r3, [r7, #8]
  50522. 8015548: 2b00 cmp r3, #0
  50523. 801554a: d103 bne.n 8015554 <xQueueReceiveFromISR+0x3c>
  50524. 801554c: 6b3b ldr r3, [r7, #48] @ 0x30
  50525. 801554e: 6c1b ldr r3, [r3, #64] @ 0x40
  50526. 8015550: 2b00 cmp r3, #0
  50527. 8015552: d101 bne.n 8015558 <xQueueReceiveFromISR+0x40>
  50528. 8015554: 2301 movs r3, #1
  50529. 8015556: e000 b.n 801555a <xQueueReceiveFromISR+0x42>
  50530. 8015558: 2300 movs r3, #0
  50531. 801555a: 2b00 cmp r3, #0
  50532. 801555c: d10b bne.n 8015576 <xQueueReceiveFromISR+0x5e>
  50533. __asm volatile
  50534. 801555e: f04f 0350 mov.w r3, #80 @ 0x50
  50535. 8015562: f383 8811 msr BASEPRI, r3
  50536. 8015566: f3bf 8f6f isb sy
  50537. 801556a: f3bf 8f4f dsb sy
  50538. 801556e: 61fb str r3, [r7, #28]
  50539. }
  50540. 8015570: bf00 nop
  50541. 8015572: bf00 nop
  50542. 8015574: e7fd b.n 8015572 <xQueueReceiveFromISR+0x5a>
  50543. that have been assigned a priority at or (logically) below the maximum
  50544. system call interrupt priority. FreeRTOS maintains a separate interrupt
  50545. safe API to ensure interrupt entry is as fast and as simple as possible.
  50546. More information (albeit Cortex-M specific) is provided on the following
  50547. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  50548. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  50549. 8015576: f002 fc97 bl 8017ea8 <vPortValidateInterruptPriority>
  50550. __asm volatile
  50551. 801557a: f3ef 8211 mrs r2, BASEPRI
  50552. 801557e: f04f 0350 mov.w r3, #80 @ 0x50
  50553. 8015582: f383 8811 msr BASEPRI, r3
  50554. 8015586: f3bf 8f6f isb sy
  50555. 801558a: f3bf 8f4f dsb sy
  50556. 801558e: 61ba str r2, [r7, #24]
  50557. 8015590: 617b str r3, [r7, #20]
  50558. return ulOriginalBASEPRI;
  50559. 8015592: 69bb ldr r3, [r7, #24]
  50560. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  50561. 8015594: 62fb str r3, [r7, #44] @ 0x2c
  50562. {
  50563. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50564. 8015596: 6b3b ldr r3, [r7, #48] @ 0x30
  50565. 8015598: 6b9b ldr r3, [r3, #56] @ 0x38
  50566. 801559a: 62bb str r3, [r7, #40] @ 0x28
  50567. /* Cannot block in an ISR, so check there is data available. */
  50568. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50569. 801559c: 6abb ldr r3, [r7, #40] @ 0x28
  50570. 801559e: 2b00 cmp r3, #0
  50571. 80155a0: d02f beq.n 8015602 <xQueueReceiveFromISR+0xea>
  50572. {
  50573. const int8_t cRxLock = pxQueue->cRxLock;
  50574. 80155a2: 6b3b ldr r3, [r7, #48] @ 0x30
  50575. 80155a4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50576. 80155a8: f887 3027 strb.w r3, [r7, #39] @ 0x27
  50577. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  50578. prvCopyDataFromQueue( pxQueue, pvBuffer );
  50579. 80155ac: 68b9 ldr r1, [r7, #8]
  50580. 80155ae: 6b38 ldr r0, [r7, #48] @ 0x30
  50581. 80155b0: f000 f8b6 bl 8015720 <prvCopyDataFromQueue>
  50582. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  50583. 80155b4: 6abb ldr r3, [r7, #40] @ 0x28
  50584. 80155b6: 1e5a subs r2, r3, #1
  50585. 80155b8: 6b3b ldr r3, [r7, #48] @ 0x30
  50586. 80155ba: 639a str r2, [r3, #56] @ 0x38
  50587. /* If the queue is locked the event list will not be modified.
  50588. Instead update the lock count so the task that unlocks the queue
  50589. will know that an ISR has removed data while the queue was
  50590. locked. */
  50591. if( cRxLock == queueUNLOCKED )
  50592. 80155bc: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  50593. 80155c0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50594. 80155c4: d112 bne.n 80155ec <xQueueReceiveFromISR+0xd4>
  50595. {
  50596. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50597. 80155c6: 6b3b ldr r3, [r7, #48] @ 0x30
  50598. 80155c8: 691b ldr r3, [r3, #16]
  50599. 80155ca: 2b00 cmp r3, #0
  50600. 80155cc: d016 beq.n 80155fc <xQueueReceiveFromISR+0xe4>
  50601. {
  50602. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50603. 80155ce: 6b3b ldr r3, [r7, #48] @ 0x30
  50604. 80155d0: 3310 adds r3, #16
  50605. 80155d2: 4618 mov r0, r3
  50606. 80155d4: f001 f806 bl 80165e4 <xTaskRemoveFromEventList>
  50607. 80155d8: 4603 mov r3, r0
  50608. 80155da: 2b00 cmp r3, #0
  50609. 80155dc: d00e beq.n 80155fc <xQueueReceiveFromISR+0xe4>
  50610. {
  50611. /* The task waiting has a higher priority than us so
  50612. force a context switch. */
  50613. if( pxHigherPriorityTaskWoken != NULL )
  50614. 80155de: 687b ldr r3, [r7, #4]
  50615. 80155e0: 2b00 cmp r3, #0
  50616. 80155e2: d00b beq.n 80155fc <xQueueReceiveFromISR+0xe4>
  50617. {
  50618. *pxHigherPriorityTaskWoken = pdTRUE;
  50619. 80155e4: 687b ldr r3, [r7, #4]
  50620. 80155e6: 2201 movs r2, #1
  50621. 80155e8: 601a str r2, [r3, #0]
  50622. 80155ea: e007 b.n 80155fc <xQueueReceiveFromISR+0xe4>
  50623. }
  50624. else
  50625. {
  50626. /* Increment the lock count so the task that unlocks the queue
  50627. knows that data was removed while it was locked. */
  50628. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  50629. 80155ec: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  50630. 80155f0: 3301 adds r3, #1
  50631. 80155f2: b2db uxtb r3, r3
  50632. 80155f4: b25a sxtb r2, r3
  50633. 80155f6: 6b3b ldr r3, [r7, #48] @ 0x30
  50634. 80155f8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50635. }
  50636. xReturn = pdPASS;
  50637. 80155fc: 2301 movs r3, #1
  50638. 80155fe: 637b str r3, [r7, #52] @ 0x34
  50639. 8015600: e001 b.n 8015606 <xQueueReceiveFromISR+0xee>
  50640. }
  50641. else
  50642. {
  50643. xReturn = pdFAIL;
  50644. 8015602: 2300 movs r3, #0
  50645. 8015604: 637b str r3, [r7, #52] @ 0x34
  50646. 8015606: 6afb ldr r3, [r7, #44] @ 0x2c
  50647. 8015608: 613b str r3, [r7, #16]
  50648. __asm volatile
  50649. 801560a: 693b ldr r3, [r7, #16]
  50650. 801560c: f383 8811 msr BASEPRI, r3
  50651. }
  50652. 8015610: bf00 nop
  50653. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  50654. }
  50655. }
  50656. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  50657. return xReturn;
  50658. 8015612: 6b7b ldr r3, [r7, #52] @ 0x34
  50659. }
  50660. 8015614: 4618 mov r0, r3
  50661. 8015616: 3738 adds r7, #56 @ 0x38
  50662. 8015618: 46bd mov sp, r7
  50663. 801561a: bd80 pop {r7, pc}
  50664. 0801561c <prvGetDisinheritPriorityAfterTimeout>:
  50665. /*-----------------------------------------------------------*/
  50666. #if( configUSE_MUTEXES == 1 )
  50667. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  50668. {
  50669. 801561c: b480 push {r7}
  50670. 801561e: b085 sub sp, #20
  50671. 8015620: af00 add r7, sp, #0
  50672. 8015622: 6078 str r0, [r7, #4]
  50673. priority, but the waiting task times out, then the holder should
  50674. disinherit the priority - but only down to the highest priority of any
  50675. other tasks that are waiting for the same mutex. For this purpose,
  50676. return the priority of the highest priority task that is waiting for the
  50677. mutex. */
  50678. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  50679. 8015624: 687b ldr r3, [r7, #4]
  50680. 8015626: 6a5b ldr r3, [r3, #36] @ 0x24
  50681. 8015628: 2b00 cmp r3, #0
  50682. 801562a: d006 beq.n 801563a <prvGetDisinheritPriorityAfterTimeout+0x1e>
  50683. {
  50684. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  50685. 801562c: 687b ldr r3, [r7, #4]
  50686. 801562e: 6b1b ldr r3, [r3, #48] @ 0x30
  50687. 8015630: 681b ldr r3, [r3, #0]
  50688. 8015632: f1c3 0338 rsb r3, r3, #56 @ 0x38
  50689. 8015636: 60fb str r3, [r7, #12]
  50690. 8015638: e001 b.n 801563e <prvGetDisinheritPriorityAfterTimeout+0x22>
  50691. }
  50692. else
  50693. {
  50694. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  50695. 801563a: 2300 movs r3, #0
  50696. 801563c: 60fb str r3, [r7, #12]
  50697. }
  50698. return uxHighestPriorityOfWaitingTasks;
  50699. 801563e: 68fb ldr r3, [r7, #12]
  50700. }
  50701. 8015640: 4618 mov r0, r3
  50702. 8015642: 3714 adds r7, #20
  50703. 8015644: 46bd mov sp, r7
  50704. 8015646: f85d 7b04 ldr.w r7, [sp], #4
  50705. 801564a: 4770 bx lr
  50706. 0801564c <prvCopyDataToQueue>:
  50707. #endif /* configUSE_MUTEXES */
  50708. /*-----------------------------------------------------------*/
  50709. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  50710. {
  50711. 801564c: b580 push {r7, lr}
  50712. 801564e: b086 sub sp, #24
  50713. 8015650: af00 add r7, sp, #0
  50714. 8015652: 60f8 str r0, [r7, #12]
  50715. 8015654: 60b9 str r1, [r7, #8]
  50716. 8015656: 607a str r2, [r7, #4]
  50717. BaseType_t xReturn = pdFALSE;
  50718. 8015658: 2300 movs r3, #0
  50719. 801565a: 617b str r3, [r7, #20]
  50720. UBaseType_t uxMessagesWaiting;
  50721. /* This function is called from a critical section. */
  50722. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50723. 801565c: 68fb ldr r3, [r7, #12]
  50724. 801565e: 6b9b ldr r3, [r3, #56] @ 0x38
  50725. 8015660: 613b str r3, [r7, #16]
  50726. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  50727. 8015662: 68fb ldr r3, [r7, #12]
  50728. 8015664: 6c1b ldr r3, [r3, #64] @ 0x40
  50729. 8015666: 2b00 cmp r3, #0
  50730. 8015668: d10d bne.n 8015686 <prvCopyDataToQueue+0x3a>
  50731. {
  50732. #if ( configUSE_MUTEXES == 1 )
  50733. {
  50734. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50735. 801566a: 68fb ldr r3, [r7, #12]
  50736. 801566c: 681b ldr r3, [r3, #0]
  50737. 801566e: 2b00 cmp r3, #0
  50738. 8015670: d14d bne.n 801570e <prvCopyDataToQueue+0xc2>
  50739. {
  50740. /* The mutex is no longer being held. */
  50741. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  50742. 8015672: 68fb ldr r3, [r7, #12]
  50743. 8015674: 689b ldr r3, [r3, #8]
  50744. 8015676: 4618 mov r0, r3
  50745. 8015678: f001 fa38 bl 8016aec <xTaskPriorityDisinherit>
  50746. 801567c: 6178 str r0, [r7, #20]
  50747. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  50748. 801567e: 68fb ldr r3, [r7, #12]
  50749. 8015680: 2200 movs r2, #0
  50750. 8015682: 609a str r2, [r3, #8]
  50751. 8015684: e043 b.n 801570e <prvCopyDataToQueue+0xc2>
  50752. mtCOVERAGE_TEST_MARKER();
  50753. }
  50754. }
  50755. #endif /* configUSE_MUTEXES */
  50756. }
  50757. else if( xPosition == queueSEND_TO_BACK )
  50758. 8015686: 687b ldr r3, [r7, #4]
  50759. 8015688: 2b00 cmp r3, #0
  50760. 801568a: d119 bne.n 80156c0 <prvCopyDataToQueue+0x74>
  50761. {
  50762. ( 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. */
  50763. 801568c: 68fb ldr r3, [r7, #12]
  50764. 801568e: 6858 ldr r0, [r3, #4]
  50765. 8015690: 68fb ldr r3, [r7, #12]
  50766. 8015692: 6c1b ldr r3, [r3, #64] @ 0x40
  50767. 8015694: 461a mov r2, r3
  50768. 8015696: 68b9 ldr r1, [r7, #8]
  50769. 8015698: f002 fec0 bl 801841c <memcpy>
  50770. 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. */
  50771. 801569c: 68fb ldr r3, [r7, #12]
  50772. 801569e: 685a ldr r2, [r3, #4]
  50773. 80156a0: 68fb ldr r3, [r7, #12]
  50774. 80156a2: 6c1b ldr r3, [r3, #64] @ 0x40
  50775. 80156a4: 441a add r2, r3
  50776. 80156a6: 68fb ldr r3, [r7, #12]
  50777. 80156a8: 605a str r2, [r3, #4]
  50778. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50779. 80156aa: 68fb ldr r3, [r7, #12]
  50780. 80156ac: 685a ldr r2, [r3, #4]
  50781. 80156ae: 68fb ldr r3, [r7, #12]
  50782. 80156b0: 689b ldr r3, [r3, #8]
  50783. 80156b2: 429a cmp r2, r3
  50784. 80156b4: d32b bcc.n 801570e <prvCopyDataToQueue+0xc2>
  50785. {
  50786. pxQueue->pcWriteTo = pxQueue->pcHead;
  50787. 80156b6: 68fb ldr r3, [r7, #12]
  50788. 80156b8: 681a ldr r2, [r3, #0]
  50789. 80156ba: 68fb ldr r3, [r7, #12]
  50790. 80156bc: 605a str r2, [r3, #4]
  50791. 80156be: e026 b.n 801570e <prvCopyDataToQueue+0xc2>
  50792. mtCOVERAGE_TEST_MARKER();
  50793. }
  50794. }
  50795. else
  50796. {
  50797. ( 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. */
  50798. 80156c0: 68fb ldr r3, [r7, #12]
  50799. 80156c2: 68d8 ldr r0, [r3, #12]
  50800. 80156c4: 68fb ldr r3, [r7, #12]
  50801. 80156c6: 6c1b ldr r3, [r3, #64] @ 0x40
  50802. 80156c8: 461a mov r2, r3
  50803. 80156ca: 68b9 ldr r1, [r7, #8]
  50804. 80156cc: f002 fea6 bl 801841c <memcpy>
  50805. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  50806. 80156d0: 68fb ldr r3, [r7, #12]
  50807. 80156d2: 68da ldr r2, [r3, #12]
  50808. 80156d4: 68fb ldr r3, [r7, #12]
  50809. 80156d6: 6c1b ldr r3, [r3, #64] @ 0x40
  50810. 80156d8: 425b negs r3, r3
  50811. 80156da: 441a add r2, r3
  50812. 80156dc: 68fb ldr r3, [r7, #12]
  50813. 80156de: 60da str r2, [r3, #12]
  50814. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50815. 80156e0: 68fb ldr r3, [r7, #12]
  50816. 80156e2: 68da ldr r2, [r3, #12]
  50817. 80156e4: 68fb ldr r3, [r7, #12]
  50818. 80156e6: 681b ldr r3, [r3, #0]
  50819. 80156e8: 429a cmp r2, r3
  50820. 80156ea: d207 bcs.n 80156fc <prvCopyDataToQueue+0xb0>
  50821. {
  50822. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  50823. 80156ec: 68fb ldr r3, [r7, #12]
  50824. 80156ee: 689a ldr r2, [r3, #8]
  50825. 80156f0: 68fb ldr r3, [r7, #12]
  50826. 80156f2: 6c1b ldr r3, [r3, #64] @ 0x40
  50827. 80156f4: 425b negs r3, r3
  50828. 80156f6: 441a add r2, r3
  50829. 80156f8: 68fb ldr r3, [r7, #12]
  50830. 80156fa: 60da str r2, [r3, #12]
  50831. else
  50832. {
  50833. mtCOVERAGE_TEST_MARKER();
  50834. }
  50835. if( xPosition == queueOVERWRITE )
  50836. 80156fc: 687b ldr r3, [r7, #4]
  50837. 80156fe: 2b02 cmp r3, #2
  50838. 8015700: d105 bne.n 801570e <prvCopyDataToQueue+0xc2>
  50839. {
  50840. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50841. 8015702: 693b ldr r3, [r7, #16]
  50842. 8015704: 2b00 cmp r3, #0
  50843. 8015706: d002 beq.n 801570e <prvCopyDataToQueue+0xc2>
  50844. {
  50845. /* An item is not being added but overwritten, so subtract
  50846. one from the recorded number of items in the queue so when
  50847. one is added again below the number of recorded items remains
  50848. correct. */
  50849. --uxMessagesWaiting;
  50850. 8015708: 693b ldr r3, [r7, #16]
  50851. 801570a: 3b01 subs r3, #1
  50852. 801570c: 613b str r3, [r7, #16]
  50853. {
  50854. mtCOVERAGE_TEST_MARKER();
  50855. }
  50856. }
  50857. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  50858. 801570e: 693b ldr r3, [r7, #16]
  50859. 8015710: 1c5a adds r2, r3, #1
  50860. 8015712: 68fb ldr r3, [r7, #12]
  50861. 8015714: 639a str r2, [r3, #56] @ 0x38
  50862. return xReturn;
  50863. 8015716: 697b ldr r3, [r7, #20]
  50864. }
  50865. 8015718: 4618 mov r0, r3
  50866. 801571a: 3718 adds r7, #24
  50867. 801571c: 46bd mov sp, r7
  50868. 801571e: bd80 pop {r7, pc}
  50869. 08015720 <prvCopyDataFromQueue>:
  50870. /*-----------------------------------------------------------*/
  50871. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  50872. {
  50873. 8015720: b580 push {r7, lr}
  50874. 8015722: b082 sub sp, #8
  50875. 8015724: af00 add r7, sp, #0
  50876. 8015726: 6078 str r0, [r7, #4]
  50877. 8015728: 6039 str r1, [r7, #0]
  50878. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  50879. 801572a: 687b ldr r3, [r7, #4]
  50880. 801572c: 6c1b ldr r3, [r3, #64] @ 0x40
  50881. 801572e: 2b00 cmp r3, #0
  50882. 8015730: d018 beq.n 8015764 <prvCopyDataFromQueue+0x44>
  50883. {
  50884. 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. */
  50885. 8015732: 687b ldr r3, [r7, #4]
  50886. 8015734: 68da ldr r2, [r3, #12]
  50887. 8015736: 687b ldr r3, [r7, #4]
  50888. 8015738: 6c1b ldr r3, [r3, #64] @ 0x40
  50889. 801573a: 441a add r2, r3
  50890. 801573c: 687b ldr r3, [r7, #4]
  50891. 801573e: 60da str r2, [r3, #12]
  50892. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  50893. 8015740: 687b ldr r3, [r7, #4]
  50894. 8015742: 68da ldr r2, [r3, #12]
  50895. 8015744: 687b ldr r3, [r7, #4]
  50896. 8015746: 689b ldr r3, [r3, #8]
  50897. 8015748: 429a cmp r2, r3
  50898. 801574a: d303 bcc.n 8015754 <prvCopyDataFromQueue+0x34>
  50899. {
  50900. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  50901. 801574c: 687b ldr r3, [r7, #4]
  50902. 801574e: 681a ldr r2, [r3, #0]
  50903. 8015750: 687b ldr r3, [r7, #4]
  50904. 8015752: 60da str r2, [r3, #12]
  50905. }
  50906. else
  50907. {
  50908. mtCOVERAGE_TEST_MARKER();
  50909. }
  50910. ( 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. */
  50911. 8015754: 687b ldr r3, [r7, #4]
  50912. 8015756: 68d9 ldr r1, [r3, #12]
  50913. 8015758: 687b ldr r3, [r7, #4]
  50914. 801575a: 6c1b ldr r3, [r3, #64] @ 0x40
  50915. 801575c: 461a mov r2, r3
  50916. 801575e: 6838 ldr r0, [r7, #0]
  50917. 8015760: f002 fe5c bl 801841c <memcpy>
  50918. }
  50919. }
  50920. 8015764: bf00 nop
  50921. 8015766: 3708 adds r7, #8
  50922. 8015768: 46bd mov sp, r7
  50923. 801576a: bd80 pop {r7, pc}
  50924. 0801576c <prvUnlockQueue>:
  50925. /*-----------------------------------------------------------*/
  50926. static void prvUnlockQueue( Queue_t * const pxQueue )
  50927. {
  50928. 801576c: b580 push {r7, lr}
  50929. 801576e: b084 sub sp, #16
  50930. 8015770: af00 add r7, sp, #0
  50931. 8015772: 6078 str r0, [r7, #4]
  50932. /* The lock counts contains the number of extra data items placed or
  50933. removed from the queue while the queue was locked. When a queue is
  50934. locked items can be added or removed, but the event lists cannot be
  50935. updated. */
  50936. taskENTER_CRITICAL();
  50937. 8015774: f002 fab8 bl 8017ce8 <vPortEnterCritical>
  50938. {
  50939. int8_t cTxLock = pxQueue->cTxLock;
  50940. 8015778: 687b ldr r3, [r7, #4]
  50941. 801577a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50942. 801577e: 73fb strb r3, [r7, #15]
  50943. /* See if data was added to the queue while it was locked. */
  50944. while( cTxLock > queueLOCKED_UNMODIFIED )
  50945. 8015780: e011 b.n 80157a6 <prvUnlockQueue+0x3a>
  50946. }
  50947. #else /* configUSE_QUEUE_SETS */
  50948. {
  50949. /* Tasks that are removed from the event list will get added to
  50950. the pending ready list as the scheduler is still suspended. */
  50951. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  50952. 8015782: 687b ldr r3, [r7, #4]
  50953. 8015784: 6a5b ldr r3, [r3, #36] @ 0x24
  50954. 8015786: 2b00 cmp r3, #0
  50955. 8015788: d012 beq.n 80157b0 <prvUnlockQueue+0x44>
  50956. {
  50957. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  50958. 801578a: 687b ldr r3, [r7, #4]
  50959. 801578c: 3324 adds r3, #36 @ 0x24
  50960. 801578e: 4618 mov r0, r3
  50961. 8015790: f000 ff28 bl 80165e4 <xTaskRemoveFromEventList>
  50962. 8015794: 4603 mov r3, r0
  50963. 8015796: 2b00 cmp r3, #0
  50964. 8015798: d001 beq.n 801579e <prvUnlockQueue+0x32>
  50965. {
  50966. /* The task waiting has a higher priority so record that
  50967. a context switch is required. */
  50968. vTaskMissedYield();
  50969. 801579a: f001 f829 bl 80167f0 <vTaskMissedYield>
  50970. break;
  50971. }
  50972. }
  50973. #endif /* configUSE_QUEUE_SETS */
  50974. --cTxLock;
  50975. 801579e: 7bfb ldrb r3, [r7, #15]
  50976. 80157a0: 3b01 subs r3, #1
  50977. 80157a2: b2db uxtb r3, r3
  50978. 80157a4: 73fb strb r3, [r7, #15]
  50979. while( cTxLock > queueLOCKED_UNMODIFIED )
  50980. 80157a6: f997 300f ldrsb.w r3, [r7, #15]
  50981. 80157aa: 2b00 cmp r3, #0
  50982. 80157ac: dce9 bgt.n 8015782 <prvUnlockQueue+0x16>
  50983. 80157ae: e000 b.n 80157b2 <prvUnlockQueue+0x46>
  50984. break;
  50985. 80157b0: bf00 nop
  50986. }
  50987. pxQueue->cTxLock = queueUNLOCKED;
  50988. 80157b2: 687b ldr r3, [r7, #4]
  50989. 80157b4: 22ff movs r2, #255 @ 0xff
  50990. 80157b6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50991. }
  50992. taskEXIT_CRITICAL();
  50993. 80157ba: f002 fac7 bl 8017d4c <vPortExitCritical>
  50994. /* Do the same for the Rx lock. */
  50995. taskENTER_CRITICAL();
  50996. 80157be: f002 fa93 bl 8017ce8 <vPortEnterCritical>
  50997. {
  50998. int8_t cRxLock = pxQueue->cRxLock;
  50999. 80157c2: 687b ldr r3, [r7, #4]
  51000. 80157c4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  51001. 80157c8: 73bb strb r3, [r7, #14]
  51002. while( cRxLock > queueLOCKED_UNMODIFIED )
  51003. 80157ca: e011 b.n 80157f0 <prvUnlockQueue+0x84>
  51004. {
  51005. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  51006. 80157cc: 687b ldr r3, [r7, #4]
  51007. 80157ce: 691b ldr r3, [r3, #16]
  51008. 80157d0: 2b00 cmp r3, #0
  51009. 80157d2: d012 beq.n 80157fa <prvUnlockQueue+0x8e>
  51010. {
  51011. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  51012. 80157d4: 687b ldr r3, [r7, #4]
  51013. 80157d6: 3310 adds r3, #16
  51014. 80157d8: 4618 mov r0, r3
  51015. 80157da: f000 ff03 bl 80165e4 <xTaskRemoveFromEventList>
  51016. 80157de: 4603 mov r3, r0
  51017. 80157e0: 2b00 cmp r3, #0
  51018. 80157e2: d001 beq.n 80157e8 <prvUnlockQueue+0x7c>
  51019. {
  51020. vTaskMissedYield();
  51021. 80157e4: f001 f804 bl 80167f0 <vTaskMissedYield>
  51022. else
  51023. {
  51024. mtCOVERAGE_TEST_MARKER();
  51025. }
  51026. --cRxLock;
  51027. 80157e8: 7bbb ldrb r3, [r7, #14]
  51028. 80157ea: 3b01 subs r3, #1
  51029. 80157ec: b2db uxtb r3, r3
  51030. 80157ee: 73bb strb r3, [r7, #14]
  51031. while( cRxLock > queueLOCKED_UNMODIFIED )
  51032. 80157f0: f997 300e ldrsb.w r3, [r7, #14]
  51033. 80157f4: 2b00 cmp r3, #0
  51034. 80157f6: dce9 bgt.n 80157cc <prvUnlockQueue+0x60>
  51035. 80157f8: e000 b.n 80157fc <prvUnlockQueue+0x90>
  51036. }
  51037. else
  51038. {
  51039. break;
  51040. 80157fa: bf00 nop
  51041. }
  51042. }
  51043. pxQueue->cRxLock = queueUNLOCKED;
  51044. 80157fc: 687b ldr r3, [r7, #4]
  51045. 80157fe: 22ff movs r2, #255 @ 0xff
  51046. 8015800: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51047. }
  51048. taskEXIT_CRITICAL();
  51049. 8015804: f002 faa2 bl 8017d4c <vPortExitCritical>
  51050. }
  51051. 8015808: bf00 nop
  51052. 801580a: 3710 adds r7, #16
  51053. 801580c: 46bd mov sp, r7
  51054. 801580e: bd80 pop {r7, pc}
  51055. 08015810 <prvIsQueueEmpty>:
  51056. /*-----------------------------------------------------------*/
  51057. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  51058. {
  51059. 8015810: b580 push {r7, lr}
  51060. 8015812: b084 sub sp, #16
  51061. 8015814: af00 add r7, sp, #0
  51062. 8015816: 6078 str r0, [r7, #4]
  51063. BaseType_t xReturn;
  51064. taskENTER_CRITICAL();
  51065. 8015818: f002 fa66 bl 8017ce8 <vPortEnterCritical>
  51066. {
  51067. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  51068. 801581c: 687b ldr r3, [r7, #4]
  51069. 801581e: 6b9b ldr r3, [r3, #56] @ 0x38
  51070. 8015820: 2b00 cmp r3, #0
  51071. 8015822: d102 bne.n 801582a <prvIsQueueEmpty+0x1a>
  51072. {
  51073. xReturn = pdTRUE;
  51074. 8015824: 2301 movs r3, #1
  51075. 8015826: 60fb str r3, [r7, #12]
  51076. 8015828: e001 b.n 801582e <prvIsQueueEmpty+0x1e>
  51077. }
  51078. else
  51079. {
  51080. xReturn = pdFALSE;
  51081. 801582a: 2300 movs r3, #0
  51082. 801582c: 60fb str r3, [r7, #12]
  51083. }
  51084. }
  51085. taskEXIT_CRITICAL();
  51086. 801582e: f002 fa8d bl 8017d4c <vPortExitCritical>
  51087. return xReturn;
  51088. 8015832: 68fb ldr r3, [r7, #12]
  51089. }
  51090. 8015834: 4618 mov r0, r3
  51091. 8015836: 3710 adds r7, #16
  51092. 8015838: 46bd mov sp, r7
  51093. 801583a: bd80 pop {r7, pc}
  51094. 0801583c <prvIsQueueFull>:
  51095. return xReturn;
  51096. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  51097. /*-----------------------------------------------------------*/
  51098. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  51099. {
  51100. 801583c: b580 push {r7, lr}
  51101. 801583e: b084 sub sp, #16
  51102. 8015840: af00 add r7, sp, #0
  51103. 8015842: 6078 str r0, [r7, #4]
  51104. BaseType_t xReturn;
  51105. taskENTER_CRITICAL();
  51106. 8015844: f002 fa50 bl 8017ce8 <vPortEnterCritical>
  51107. {
  51108. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  51109. 8015848: 687b ldr r3, [r7, #4]
  51110. 801584a: 6b9a ldr r2, [r3, #56] @ 0x38
  51111. 801584c: 687b ldr r3, [r7, #4]
  51112. 801584e: 6bdb ldr r3, [r3, #60] @ 0x3c
  51113. 8015850: 429a cmp r2, r3
  51114. 8015852: d102 bne.n 801585a <prvIsQueueFull+0x1e>
  51115. {
  51116. xReturn = pdTRUE;
  51117. 8015854: 2301 movs r3, #1
  51118. 8015856: 60fb str r3, [r7, #12]
  51119. 8015858: e001 b.n 801585e <prvIsQueueFull+0x22>
  51120. }
  51121. else
  51122. {
  51123. xReturn = pdFALSE;
  51124. 801585a: 2300 movs r3, #0
  51125. 801585c: 60fb str r3, [r7, #12]
  51126. }
  51127. }
  51128. taskEXIT_CRITICAL();
  51129. 801585e: f002 fa75 bl 8017d4c <vPortExitCritical>
  51130. return xReturn;
  51131. 8015862: 68fb ldr r3, [r7, #12]
  51132. }
  51133. 8015864: 4618 mov r0, r3
  51134. 8015866: 3710 adds r7, #16
  51135. 8015868: 46bd mov sp, r7
  51136. 801586a: bd80 pop {r7, pc}
  51137. 0801586c <vQueueAddToRegistry>:
  51138. /*-----------------------------------------------------------*/
  51139. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  51140. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  51141. {
  51142. 801586c: b480 push {r7}
  51143. 801586e: b085 sub sp, #20
  51144. 8015870: af00 add r7, sp, #0
  51145. 8015872: 6078 str r0, [r7, #4]
  51146. 8015874: 6039 str r1, [r7, #0]
  51147. UBaseType_t ux;
  51148. /* See if there is an empty space in the registry. A NULL name denotes
  51149. a free slot. */
  51150. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51151. 8015876: 2300 movs r3, #0
  51152. 8015878: 60fb str r3, [r7, #12]
  51153. 801587a: e014 b.n 80158a6 <vQueueAddToRegistry+0x3a>
  51154. {
  51155. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  51156. 801587c: 4a0f ldr r2, [pc, #60] @ (80158bc <vQueueAddToRegistry+0x50>)
  51157. 801587e: 68fb ldr r3, [r7, #12]
  51158. 8015880: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  51159. 8015884: 2b00 cmp r3, #0
  51160. 8015886: d10b bne.n 80158a0 <vQueueAddToRegistry+0x34>
  51161. {
  51162. /* Store the information on this queue. */
  51163. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  51164. 8015888: 490c ldr r1, [pc, #48] @ (80158bc <vQueueAddToRegistry+0x50>)
  51165. 801588a: 68fb ldr r3, [r7, #12]
  51166. 801588c: 683a ldr r2, [r7, #0]
  51167. 801588e: f841 2033 str.w r2, [r1, r3, lsl #3]
  51168. xQueueRegistry[ ux ].xHandle = xQueue;
  51169. 8015892: 4a0a ldr r2, [pc, #40] @ (80158bc <vQueueAddToRegistry+0x50>)
  51170. 8015894: 68fb ldr r3, [r7, #12]
  51171. 8015896: 00db lsls r3, r3, #3
  51172. 8015898: 4413 add r3, r2
  51173. 801589a: 687a ldr r2, [r7, #4]
  51174. 801589c: 605a str r2, [r3, #4]
  51175. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  51176. break;
  51177. 801589e: e006 b.n 80158ae <vQueueAddToRegistry+0x42>
  51178. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51179. 80158a0: 68fb ldr r3, [r7, #12]
  51180. 80158a2: 3301 adds r3, #1
  51181. 80158a4: 60fb str r3, [r7, #12]
  51182. 80158a6: 68fb ldr r3, [r7, #12]
  51183. 80158a8: 2b07 cmp r3, #7
  51184. 80158aa: d9e7 bls.n 801587c <vQueueAddToRegistry+0x10>
  51185. else
  51186. {
  51187. mtCOVERAGE_TEST_MARKER();
  51188. }
  51189. }
  51190. }
  51191. 80158ac: bf00 nop
  51192. 80158ae: bf00 nop
  51193. 80158b0: 3714 adds r7, #20
  51194. 80158b2: 46bd mov sp, r7
  51195. 80158b4: f85d 7b04 ldr.w r7, [sp], #4
  51196. 80158b8: 4770 bx lr
  51197. 80158ba: bf00 nop
  51198. 80158bc: 240029b8 .word 0x240029b8
  51199. 080158c0 <vQueueWaitForMessageRestricted>:
  51200. /*-----------------------------------------------------------*/
  51201. #if ( configUSE_TIMERS == 1 )
  51202. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  51203. {
  51204. 80158c0: b580 push {r7, lr}
  51205. 80158c2: b086 sub sp, #24
  51206. 80158c4: af00 add r7, sp, #0
  51207. 80158c6: 60f8 str r0, [r7, #12]
  51208. 80158c8: 60b9 str r1, [r7, #8]
  51209. 80158ca: 607a str r2, [r7, #4]
  51210. Queue_t * const pxQueue = xQueue;
  51211. 80158cc: 68fb ldr r3, [r7, #12]
  51212. 80158ce: 617b str r3, [r7, #20]
  51213. will not actually cause the task to block, just place it on a blocked
  51214. list. It will not block until the scheduler is unlocked - at which
  51215. time a yield will be performed. If an item is added to the queue while
  51216. the queue is locked, and the calling task blocks on the queue, then the
  51217. calling task will be immediately unblocked when the queue is unlocked. */
  51218. prvLockQueue( pxQueue );
  51219. 80158d0: f002 fa0a bl 8017ce8 <vPortEnterCritical>
  51220. 80158d4: 697b ldr r3, [r7, #20]
  51221. 80158d6: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  51222. 80158da: b25b sxtb r3, r3
  51223. 80158dc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51224. 80158e0: d103 bne.n 80158ea <vQueueWaitForMessageRestricted+0x2a>
  51225. 80158e2: 697b ldr r3, [r7, #20]
  51226. 80158e4: 2200 movs r2, #0
  51227. 80158e6: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51228. 80158ea: 697b ldr r3, [r7, #20]
  51229. 80158ec: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  51230. 80158f0: b25b sxtb r3, r3
  51231. 80158f2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51232. 80158f6: d103 bne.n 8015900 <vQueueWaitForMessageRestricted+0x40>
  51233. 80158f8: 697b ldr r3, [r7, #20]
  51234. 80158fa: 2200 movs r2, #0
  51235. 80158fc: f883 2045 strb.w r2, [r3, #69] @ 0x45
  51236. 8015900: f002 fa24 bl 8017d4c <vPortExitCritical>
  51237. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  51238. 8015904: 697b ldr r3, [r7, #20]
  51239. 8015906: 6b9b ldr r3, [r3, #56] @ 0x38
  51240. 8015908: 2b00 cmp r3, #0
  51241. 801590a: d106 bne.n 801591a <vQueueWaitForMessageRestricted+0x5a>
  51242. {
  51243. /* There is nothing in the queue, block for the specified period. */
  51244. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  51245. 801590c: 697b ldr r3, [r7, #20]
  51246. 801590e: 3324 adds r3, #36 @ 0x24
  51247. 8015910: 687a ldr r2, [r7, #4]
  51248. 8015912: 68b9 ldr r1, [r7, #8]
  51249. 8015914: 4618 mov r0, r3
  51250. 8015916: f000 fe39 bl 801658c <vTaskPlaceOnEventListRestricted>
  51251. }
  51252. else
  51253. {
  51254. mtCOVERAGE_TEST_MARKER();
  51255. }
  51256. prvUnlockQueue( pxQueue );
  51257. 801591a: 6978 ldr r0, [r7, #20]
  51258. 801591c: f7ff ff26 bl 801576c <prvUnlockQueue>
  51259. }
  51260. 8015920: bf00 nop
  51261. 8015922: 3718 adds r7, #24
  51262. 8015924: 46bd mov sp, r7
  51263. 8015926: bd80 pop {r7, pc}
  51264. 08015928 <xStreamBufferSpacesAvailable>:
  51265. return xReturn;
  51266. }
  51267. /*-----------------------------------------------------------*/
  51268. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  51269. {
  51270. 8015928: b480 push {r7}
  51271. 801592a: b087 sub sp, #28
  51272. 801592c: af00 add r7, sp, #0
  51273. 801592e: 6078 str r0, [r7, #4]
  51274. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51275. 8015930: 687b ldr r3, [r7, #4]
  51276. 8015932: 613b str r3, [r7, #16]
  51277. size_t xSpace;
  51278. configASSERT( pxStreamBuffer );
  51279. 8015934: 693b ldr r3, [r7, #16]
  51280. 8015936: 2b00 cmp r3, #0
  51281. 8015938: d10b bne.n 8015952 <xStreamBufferSpacesAvailable+0x2a>
  51282. __asm volatile
  51283. 801593a: f04f 0350 mov.w r3, #80 @ 0x50
  51284. 801593e: f383 8811 msr BASEPRI, r3
  51285. 8015942: f3bf 8f6f isb sy
  51286. 8015946: f3bf 8f4f dsb sy
  51287. 801594a: 60fb str r3, [r7, #12]
  51288. }
  51289. 801594c: bf00 nop
  51290. 801594e: bf00 nop
  51291. 8015950: e7fd b.n 801594e <xStreamBufferSpacesAvailable+0x26>
  51292. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  51293. 8015952: 693b ldr r3, [r7, #16]
  51294. 8015954: 689a ldr r2, [r3, #8]
  51295. 8015956: 693b ldr r3, [r7, #16]
  51296. 8015958: 681b ldr r3, [r3, #0]
  51297. 801595a: 4413 add r3, r2
  51298. 801595c: 617b str r3, [r7, #20]
  51299. xSpace -= pxStreamBuffer->xHead;
  51300. 801595e: 693b ldr r3, [r7, #16]
  51301. 8015960: 685b ldr r3, [r3, #4]
  51302. 8015962: 697a ldr r2, [r7, #20]
  51303. 8015964: 1ad3 subs r3, r2, r3
  51304. 8015966: 617b str r3, [r7, #20]
  51305. xSpace -= ( size_t ) 1;
  51306. 8015968: 697b ldr r3, [r7, #20]
  51307. 801596a: 3b01 subs r3, #1
  51308. 801596c: 617b str r3, [r7, #20]
  51309. if( xSpace >= pxStreamBuffer->xLength )
  51310. 801596e: 693b ldr r3, [r7, #16]
  51311. 8015970: 689b ldr r3, [r3, #8]
  51312. 8015972: 697a ldr r2, [r7, #20]
  51313. 8015974: 429a cmp r2, r3
  51314. 8015976: d304 bcc.n 8015982 <xStreamBufferSpacesAvailable+0x5a>
  51315. {
  51316. xSpace -= pxStreamBuffer->xLength;
  51317. 8015978: 693b ldr r3, [r7, #16]
  51318. 801597a: 689b ldr r3, [r3, #8]
  51319. 801597c: 697a ldr r2, [r7, #20]
  51320. 801597e: 1ad3 subs r3, r2, r3
  51321. 8015980: 617b str r3, [r7, #20]
  51322. else
  51323. {
  51324. mtCOVERAGE_TEST_MARKER();
  51325. }
  51326. return xSpace;
  51327. 8015982: 697b ldr r3, [r7, #20]
  51328. }
  51329. 8015984: 4618 mov r0, r3
  51330. 8015986: 371c adds r7, #28
  51331. 8015988: 46bd mov sp, r7
  51332. 801598a: f85d 7b04 ldr.w r7, [sp], #4
  51333. 801598e: 4770 bx lr
  51334. 08015990 <xStreamBufferSend>:
  51335. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  51336. const void *pvTxData,
  51337. size_t xDataLengthBytes,
  51338. TickType_t xTicksToWait )
  51339. {
  51340. 8015990: b580 push {r7, lr}
  51341. 8015992: b090 sub sp, #64 @ 0x40
  51342. 8015994: af02 add r7, sp, #8
  51343. 8015996: 60f8 str r0, [r7, #12]
  51344. 8015998: 60b9 str r1, [r7, #8]
  51345. 801599a: 607a str r2, [r7, #4]
  51346. 801599c: 603b str r3, [r7, #0]
  51347. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51348. 801599e: 68fb ldr r3, [r7, #12]
  51349. 80159a0: 62fb str r3, [r7, #44] @ 0x2c
  51350. size_t xReturn, xSpace = 0;
  51351. 80159a2: 2300 movs r3, #0
  51352. 80159a4: 637b str r3, [r7, #52] @ 0x34
  51353. size_t xRequiredSpace = xDataLengthBytes;
  51354. 80159a6: 687b ldr r3, [r7, #4]
  51355. 80159a8: 633b str r3, [r7, #48] @ 0x30
  51356. TimeOut_t xTimeOut;
  51357. configASSERT( pvTxData );
  51358. 80159aa: 68bb ldr r3, [r7, #8]
  51359. 80159ac: 2b00 cmp r3, #0
  51360. 80159ae: d10b bne.n 80159c8 <xStreamBufferSend+0x38>
  51361. __asm volatile
  51362. 80159b0: f04f 0350 mov.w r3, #80 @ 0x50
  51363. 80159b4: f383 8811 msr BASEPRI, r3
  51364. 80159b8: f3bf 8f6f isb sy
  51365. 80159bc: f3bf 8f4f dsb sy
  51366. 80159c0: 627b str r3, [r7, #36] @ 0x24
  51367. }
  51368. 80159c2: bf00 nop
  51369. 80159c4: bf00 nop
  51370. 80159c6: e7fd b.n 80159c4 <xStreamBufferSend+0x34>
  51371. configASSERT( pxStreamBuffer );
  51372. 80159c8: 6afb ldr r3, [r7, #44] @ 0x2c
  51373. 80159ca: 2b00 cmp r3, #0
  51374. 80159cc: d10b bne.n 80159e6 <xStreamBufferSend+0x56>
  51375. __asm volatile
  51376. 80159ce: f04f 0350 mov.w r3, #80 @ 0x50
  51377. 80159d2: f383 8811 msr BASEPRI, r3
  51378. 80159d6: f3bf 8f6f isb sy
  51379. 80159da: f3bf 8f4f dsb sy
  51380. 80159de: 623b str r3, [r7, #32]
  51381. }
  51382. 80159e0: bf00 nop
  51383. 80159e2: bf00 nop
  51384. 80159e4: e7fd b.n 80159e2 <xStreamBufferSend+0x52>
  51385. /* This send function is used to write to both message buffers and stream
  51386. buffers. If this is a message buffer then the space needed must be
  51387. increased by the amount of bytes needed to store the length of the
  51388. message. */
  51389. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  51390. 80159e6: 6afb ldr r3, [r7, #44] @ 0x2c
  51391. 80159e8: 7f1b ldrb r3, [r3, #28]
  51392. 80159ea: f003 0301 and.w r3, r3, #1
  51393. 80159ee: 2b00 cmp r3, #0
  51394. 80159f0: d012 beq.n 8015a18 <xStreamBufferSend+0x88>
  51395. {
  51396. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  51397. 80159f2: 6b3b ldr r3, [r7, #48] @ 0x30
  51398. 80159f4: 3304 adds r3, #4
  51399. 80159f6: 633b str r3, [r7, #48] @ 0x30
  51400. /* Overflow? */
  51401. configASSERT( xRequiredSpace > xDataLengthBytes );
  51402. 80159f8: 6b3a ldr r2, [r7, #48] @ 0x30
  51403. 80159fa: 687b ldr r3, [r7, #4]
  51404. 80159fc: 429a cmp r2, r3
  51405. 80159fe: d80b bhi.n 8015a18 <xStreamBufferSend+0x88>
  51406. __asm volatile
  51407. 8015a00: f04f 0350 mov.w r3, #80 @ 0x50
  51408. 8015a04: f383 8811 msr BASEPRI, r3
  51409. 8015a08: f3bf 8f6f isb sy
  51410. 8015a0c: f3bf 8f4f dsb sy
  51411. 8015a10: 61fb str r3, [r7, #28]
  51412. }
  51413. 8015a12: bf00 nop
  51414. 8015a14: bf00 nop
  51415. 8015a16: e7fd b.n 8015a14 <xStreamBufferSend+0x84>
  51416. else
  51417. {
  51418. mtCOVERAGE_TEST_MARKER();
  51419. }
  51420. if( xTicksToWait != ( TickType_t ) 0 )
  51421. 8015a18: 683b ldr r3, [r7, #0]
  51422. 8015a1a: 2b00 cmp r3, #0
  51423. 8015a1c: d03f beq.n 8015a9e <xStreamBufferSend+0x10e>
  51424. {
  51425. vTaskSetTimeOutState( &xTimeOut );
  51426. 8015a1e: f107 0310 add.w r3, r7, #16
  51427. 8015a22: 4618 mov r0, r3
  51428. 8015a24: f000 fe42 bl 80166ac <vTaskSetTimeOutState>
  51429. do
  51430. {
  51431. /* Wait until the required number of bytes are free in the message
  51432. buffer. */
  51433. taskENTER_CRITICAL();
  51434. 8015a28: f002 f95e bl 8017ce8 <vPortEnterCritical>
  51435. {
  51436. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51437. 8015a2c: 6af8 ldr r0, [r7, #44] @ 0x2c
  51438. 8015a2e: f7ff ff7b bl 8015928 <xStreamBufferSpacesAvailable>
  51439. 8015a32: 6378 str r0, [r7, #52] @ 0x34
  51440. if( xSpace < xRequiredSpace )
  51441. 8015a34: 6b7a ldr r2, [r7, #52] @ 0x34
  51442. 8015a36: 6b3b ldr r3, [r7, #48] @ 0x30
  51443. 8015a38: 429a cmp r2, r3
  51444. 8015a3a: d218 bcs.n 8015a6e <xStreamBufferSend+0xde>
  51445. {
  51446. /* Clear notification state as going to wait for space. */
  51447. ( void ) xTaskNotifyStateClear( NULL );
  51448. 8015a3c: 2000 movs r0, #0
  51449. 8015a3e: f001 fb65 bl 801710c <xTaskNotifyStateClear>
  51450. /* Should only be one writer. */
  51451. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  51452. 8015a42: 6afb ldr r3, [r7, #44] @ 0x2c
  51453. 8015a44: 695b ldr r3, [r3, #20]
  51454. 8015a46: 2b00 cmp r3, #0
  51455. 8015a48: d00b beq.n 8015a62 <xStreamBufferSend+0xd2>
  51456. __asm volatile
  51457. 8015a4a: f04f 0350 mov.w r3, #80 @ 0x50
  51458. 8015a4e: f383 8811 msr BASEPRI, r3
  51459. 8015a52: f3bf 8f6f isb sy
  51460. 8015a56: f3bf 8f4f dsb sy
  51461. 8015a5a: 61bb str r3, [r7, #24]
  51462. }
  51463. 8015a5c: bf00 nop
  51464. 8015a5e: bf00 nop
  51465. 8015a60: e7fd b.n 8015a5e <xStreamBufferSend+0xce>
  51466. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  51467. 8015a62: f000 ffad bl 80169c0 <xTaskGetCurrentTaskHandle>
  51468. 8015a66: 4602 mov r2, r0
  51469. 8015a68: 6afb ldr r3, [r7, #44] @ 0x2c
  51470. 8015a6a: 615a str r2, [r3, #20]
  51471. 8015a6c: e002 b.n 8015a74 <xStreamBufferSend+0xe4>
  51472. }
  51473. else
  51474. {
  51475. taskEXIT_CRITICAL();
  51476. 8015a6e: f002 f96d bl 8017d4c <vPortExitCritical>
  51477. break;
  51478. 8015a72: e014 b.n 8015a9e <xStreamBufferSend+0x10e>
  51479. }
  51480. }
  51481. taskEXIT_CRITICAL();
  51482. 8015a74: f002 f96a bl 8017d4c <vPortExitCritical>
  51483. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  51484. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  51485. 8015a78: 683b ldr r3, [r7, #0]
  51486. 8015a7a: 2200 movs r2, #0
  51487. 8015a7c: 2100 movs r1, #0
  51488. 8015a7e: 2000 movs r0, #0
  51489. 8015a80: f001 f93c bl 8016cfc <xTaskNotifyWait>
  51490. pxStreamBuffer->xTaskWaitingToSend = NULL;
  51491. 8015a84: 6afb ldr r3, [r7, #44] @ 0x2c
  51492. 8015a86: 2200 movs r2, #0
  51493. 8015a88: 615a str r2, [r3, #20]
  51494. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  51495. 8015a8a: 463a mov r2, r7
  51496. 8015a8c: f107 0310 add.w r3, r7, #16
  51497. 8015a90: 4611 mov r1, r2
  51498. 8015a92: 4618 mov r0, r3
  51499. 8015a94: f000 fe48 bl 8016728 <xTaskCheckForTimeOut>
  51500. 8015a98: 4603 mov r3, r0
  51501. 8015a9a: 2b00 cmp r3, #0
  51502. 8015a9c: d0c4 beq.n 8015a28 <xStreamBufferSend+0x98>
  51503. else
  51504. {
  51505. mtCOVERAGE_TEST_MARKER();
  51506. }
  51507. if( xSpace == ( size_t ) 0 )
  51508. 8015a9e: 6b7b ldr r3, [r7, #52] @ 0x34
  51509. 8015aa0: 2b00 cmp r3, #0
  51510. 8015aa2: d103 bne.n 8015aac <xStreamBufferSend+0x11c>
  51511. {
  51512. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51513. 8015aa4: 6af8 ldr r0, [r7, #44] @ 0x2c
  51514. 8015aa6: f7ff ff3f bl 8015928 <xStreamBufferSpacesAvailable>
  51515. 8015aaa: 6378 str r0, [r7, #52] @ 0x34
  51516. else
  51517. {
  51518. mtCOVERAGE_TEST_MARKER();
  51519. }
  51520. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  51521. 8015aac: 6b3b ldr r3, [r7, #48] @ 0x30
  51522. 8015aae: 9300 str r3, [sp, #0]
  51523. 8015ab0: 6b7b ldr r3, [r7, #52] @ 0x34
  51524. 8015ab2: 687a ldr r2, [r7, #4]
  51525. 8015ab4: 68b9 ldr r1, [r7, #8]
  51526. 8015ab6: 6af8 ldr r0, [r7, #44] @ 0x2c
  51527. 8015ab8: f000 f823 bl 8015b02 <prvWriteMessageToBuffer>
  51528. 8015abc: 62b8 str r0, [r7, #40] @ 0x28
  51529. if( xReturn > ( size_t ) 0 )
  51530. 8015abe: 6abb ldr r3, [r7, #40] @ 0x28
  51531. 8015ac0: 2b00 cmp r3, #0
  51532. 8015ac2: d019 beq.n 8015af8 <xStreamBufferSend+0x168>
  51533. {
  51534. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  51535. /* Was a task waiting for the data? */
  51536. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  51537. 8015ac4: 6af8 ldr r0, [r7, #44] @ 0x2c
  51538. 8015ac6: f000 f8ce bl 8015c66 <prvBytesInBuffer>
  51539. 8015aca: 4602 mov r2, r0
  51540. 8015acc: 6afb ldr r3, [r7, #44] @ 0x2c
  51541. 8015ace: 68db ldr r3, [r3, #12]
  51542. 8015ad0: 429a cmp r2, r3
  51543. 8015ad2: d311 bcc.n 8015af8 <xStreamBufferSend+0x168>
  51544. {
  51545. sbSEND_COMPLETED( pxStreamBuffer );
  51546. 8015ad4: f000 fb4a bl 801616c <vTaskSuspendAll>
  51547. 8015ad8: 6afb ldr r3, [r7, #44] @ 0x2c
  51548. 8015ada: 691b ldr r3, [r3, #16]
  51549. 8015adc: 2b00 cmp r3, #0
  51550. 8015ade: d009 beq.n 8015af4 <xStreamBufferSend+0x164>
  51551. 8015ae0: 6afb ldr r3, [r7, #44] @ 0x2c
  51552. 8015ae2: 6918 ldr r0, [r3, #16]
  51553. 8015ae4: 2300 movs r3, #0
  51554. 8015ae6: 2200 movs r2, #0
  51555. 8015ae8: 2100 movs r1, #0
  51556. 8015aea: f001 f967 bl 8016dbc <xTaskGenericNotify>
  51557. 8015aee: 6afb ldr r3, [r7, #44] @ 0x2c
  51558. 8015af0: 2200 movs r2, #0
  51559. 8015af2: 611a str r2, [r3, #16]
  51560. 8015af4: f000 fb48 bl 8016188 <xTaskResumeAll>
  51561. {
  51562. mtCOVERAGE_TEST_MARKER();
  51563. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  51564. }
  51565. return xReturn;
  51566. 8015af8: 6abb ldr r3, [r7, #40] @ 0x28
  51567. }
  51568. 8015afa: 4618 mov r0, r3
  51569. 8015afc: 3738 adds r7, #56 @ 0x38
  51570. 8015afe: 46bd mov sp, r7
  51571. 8015b00: bd80 pop {r7, pc}
  51572. 08015b02 <prvWriteMessageToBuffer>:
  51573. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  51574. const void * pvTxData,
  51575. size_t xDataLengthBytes,
  51576. size_t xSpace,
  51577. size_t xRequiredSpace )
  51578. {
  51579. 8015b02: b580 push {r7, lr}
  51580. 8015b04: b086 sub sp, #24
  51581. 8015b06: af00 add r7, sp, #0
  51582. 8015b08: 60f8 str r0, [r7, #12]
  51583. 8015b0a: 60b9 str r1, [r7, #8]
  51584. 8015b0c: 607a str r2, [r7, #4]
  51585. 8015b0e: 603b str r3, [r7, #0]
  51586. BaseType_t xShouldWrite;
  51587. size_t xReturn;
  51588. if( xSpace == ( size_t ) 0 )
  51589. 8015b10: 683b ldr r3, [r7, #0]
  51590. 8015b12: 2b00 cmp r3, #0
  51591. 8015b14: d102 bne.n 8015b1c <prvWriteMessageToBuffer+0x1a>
  51592. {
  51593. /* Doesn't matter if this is a stream buffer or a message buffer, there
  51594. is no space to write. */
  51595. xShouldWrite = pdFALSE;
  51596. 8015b16: 2300 movs r3, #0
  51597. 8015b18: 617b str r3, [r7, #20]
  51598. 8015b1a: e01d b.n 8015b58 <prvWriteMessageToBuffer+0x56>
  51599. }
  51600. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  51601. 8015b1c: 68fb ldr r3, [r7, #12]
  51602. 8015b1e: 7f1b ldrb r3, [r3, #28]
  51603. 8015b20: f003 0301 and.w r3, r3, #1
  51604. 8015b24: 2b00 cmp r3, #0
  51605. 8015b26: d108 bne.n 8015b3a <prvWriteMessageToBuffer+0x38>
  51606. {
  51607. /* This is a stream buffer, as opposed to a message buffer, so writing a
  51608. stream of bytes rather than discrete messages. Write as many bytes as
  51609. possible. */
  51610. xShouldWrite = pdTRUE;
  51611. 8015b28: 2301 movs r3, #1
  51612. 8015b2a: 617b str r3, [r7, #20]
  51613. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  51614. 8015b2c: 687a ldr r2, [r7, #4]
  51615. 8015b2e: 683b ldr r3, [r7, #0]
  51616. 8015b30: 4293 cmp r3, r2
  51617. 8015b32: bf28 it cs
  51618. 8015b34: 4613 movcs r3, r2
  51619. 8015b36: 607b str r3, [r7, #4]
  51620. 8015b38: e00e b.n 8015b58 <prvWriteMessageToBuffer+0x56>
  51621. }
  51622. else if( xSpace >= xRequiredSpace )
  51623. 8015b3a: 683a ldr r2, [r7, #0]
  51624. 8015b3c: 6a3b ldr r3, [r7, #32]
  51625. 8015b3e: 429a cmp r2, r3
  51626. 8015b40: d308 bcc.n 8015b54 <prvWriteMessageToBuffer+0x52>
  51627. {
  51628. /* This is a message buffer, as opposed to a stream buffer, and there
  51629. is enough space to write both the message length and the message itself
  51630. into the buffer. Start by writing the length of the data, the data
  51631. itself will be written later in this function. */
  51632. xShouldWrite = pdTRUE;
  51633. 8015b42: 2301 movs r3, #1
  51634. 8015b44: 617b str r3, [r7, #20]
  51635. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  51636. 8015b46: 1d3b adds r3, r7, #4
  51637. 8015b48: 2204 movs r2, #4
  51638. 8015b4a: 4619 mov r1, r3
  51639. 8015b4c: 68f8 ldr r0, [r7, #12]
  51640. 8015b4e: f000 f815 bl 8015b7c <prvWriteBytesToBuffer>
  51641. 8015b52: e001 b.n 8015b58 <prvWriteMessageToBuffer+0x56>
  51642. }
  51643. else
  51644. {
  51645. /* There is space available, but not enough space. */
  51646. xShouldWrite = pdFALSE;
  51647. 8015b54: 2300 movs r3, #0
  51648. 8015b56: 617b str r3, [r7, #20]
  51649. }
  51650. if( xShouldWrite != pdFALSE )
  51651. 8015b58: 697b ldr r3, [r7, #20]
  51652. 8015b5a: 2b00 cmp r3, #0
  51653. 8015b5c: d007 beq.n 8015b6e <prvWriteMessageToBuffer+0x6c>
  51654. {
  51655. /* Writes the data itself. */
  51656. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  51657. 8015b5e: 687b ldr r3, [r7, #4]
  51658. 8015b60: 461a mov r2, r3
  51659. 8015b62: 68b9 ldr r1, [r7, #8]
  51660. 8015b64: 68f8 ldr r0, [r7, #12]
  51661. 8015b66: f000 f809 bl 8015b7c <prvWriteBytesToBuffer>
  51662. 8015b6a: 6138 str r0, [r7, #16]
  51663. 8015b6c: e001 b.n 8015b72 <prvWriteMessageToBuffer+0x70>
  51664. }
  51665. else
  51666. {
  51667. xReturn = 0;
  51668. 8015b6e: 2300 movs r3, #0
  51669. 8015b70: 613b str r3, [r7, #16]
  51670. }
  51671. return xReturn;
  51672. 8015b72: 693b ldr r3, [r7, #16]
  51673. }
  51674. 8015b74: 4618 mov r0, r3
  51675. 8015b76: 3718 adds r7, #24
  51676. 8015b78: 46bd mov sp, r7
  51677. 8015b7a: bd80 pop {r7, pc}
  51678. 08015b7c <prvWriteBytesToBuffer>:
  51679. return xReturn;
  51680. }
  51681. /*-----------------------------------------------------------*/
  51682. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  51683. {
  51684. 8015b7c: b580 push {r7, lr}
  51685. 8015b7e: b08a sub sp, #40 @ 0x28
  51686. 8015b80: af00 add r7, sp, #0
  51687. 8015b82: 60f8 str r0, [r7, #12]
  51688. 8015b84: 60b9 str r1, [r7, #8]
  51689. 8015b86: 607a str r2, [r7, #4]
  51690. size_t xNextHead, xFirstLength;
  51691. configASSERT( xCount > ( size_t ) 0 );
  51692. 8015b88: 687b ldr r3, [r7, #4]
  51693. 8015b8a: 2b00 cmp r3, #0
  51694. 8015b8c: d10b bne.n 8015ba6 <prvWriteBytesToBuffer+0x2a>
  51695. __asm volatile
  51696. 8015b8e: f04f 0350 mov.w r3, #80 @ 0x50
  51697. 8015b92: f383 8811 msr BASEPRI, r3
  51698. 8015b96: f3bf 8f6f isb sy
  51699. 8015b9a: f3bf 8f4f dsb sy
  51700. 8015b9e: 61fb str r3, [r7, #28]
  51701. }
  51702. 8015ba0: bf00 nop
  51703. 8015ba2: bf00 nop
  51704. 8015ba4: e7fd b.n 8015ba2 <prvWriteBytesToBuffer+0x26>
  51705. xNextHead = pxStreamBuffer->xHead;
  51706. 8015ba6: 68fb ldr r3, [r7, #12]
  51707. 8015ba8: 685b ldr r3, [r3, #4]
  51708. 8015baa: 627b str r3, [r7, #36] @ 0x24
  51709. /* Calculate the number of bytes that can be added in the first write -
  51710. which may be less than the total number of bytes that need to be added if
  51711. the buffer will wrap back to the beginning. */
  51712. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  51713. 8015bac: 68fb ldr r3, [r7, #12]
  51714. 8015bae: 689a ldr r2, [r3, #8]
  51715. 8015bb0: 6a7b ldr r3, [r7, #36] @ 0x24
  51716. 8015bb2: 1ad3 subs r3, r2, r3
  51717. 8015bb4: 687a ldr r2, [r7, #4]
  51718. 8015bb6: 4293 cmp r3, r2
  51719. 8015bb8: bf28 it cs
  51720. 8015bba: 4613 movcs r3, r2
  51721. 8015bbc: 623b str r3, [r7, #32]
  51722. /* Write as many bytes as can be written in the first write. */
  51723. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  51724. 8015bbe: 6a7a ldr r2, [r7, #36] @ 0x24
  51725. 8015bc0: 6a3b ldr r3, [r7, #32]
  51726. 8015bc2: 441a add r2, r3
  51727. 8015bc4: 68fb ldr r3, [r7, #12]
  51728. 8015bc6: 689b ldr r3, [r3, #8]
  51729. 8015bc8: 429a cmp r2, r3
  51730. 8015bca: d90b bls.n 8015be4 <prvWriteBytesToBuffer+0x68>
  51731. __asm volatile
  51732. 8015bcc: f04f 0350 mov.w r3, #80 @ 0x50
  51733. 8015bd0: f383 8811 msr BASEPRI, r3
  51734. 8015bd4: f3bf 8f6f isb sy
  51735. 8015bd8: f3bf 8f4f dsb sy
  51736. 8015bdc: 61bb str r3, [r7, #24]
  51737. }
  51738. 8015bde: bf00 nop
  51739. 8015be0: bf00 nop
  51740. 8015be2: e7fd b.n 8015be0 <prvWriteBytesToBuffer+0x64>
  51741. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51742. 8015be4: 68fb ldr r3, [r7, #12]
  51743. 8015be6: 699a ldr r2, [r3, #24]
  51744. 8015be8: 6a7b ldr r3, [r7, #36] @ 0x24
  51745. 8015bea: 4413 add r3, r2
  51746. 8015bec: 6a3a ldr r2, [r7, #32]
  51747. 8015bee: 68b9 ldr r1, [r7, #8]
  51748. 8015bf0: 4618 mov r0, r3
  51749. 8015bf2: f002 fc13 bl 801841c <memcpy>
  51750. /* If the number of bytes written was less than the number that could be
  51751. written in the first write... */
  51752. if( xCount > xFirstLength )
  51753. 8015bf6: 687a ldr r2, [r7, #4]
  51754. 8015bf8: 6a3b ldr r3, [r7, #32]
  51755. 8015bfa: 429a cmp r2, r3
  51756. 8015bfc: d91d bls.n 8015c3a <prvWriteBytesToBuffer+0xbe>
  51757. {
  51758. /* ...then write the remaining bytes to the start of the buffer. */
  51759. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  51760. 8015bfe: 687a ldr r2, [r7, #4]
  51761. 8015c00: 6a3b ldr r3, [r7, #32]
  51762. 8015c02: 1ad2 subs r2, r2, r3
  51763. 8015c04: 68fb ldr r3, [r7, #12]
  51764. 8015c06: 689b ldr r3, [r3, #8]
  51765. 8015c08: 429a cmp r2, r3
  51766. 8015c0a: d90b bls.n 8015c24 <prvWriteBytesToBuffer+0xa8>
  51767. __asm volatile
  51768. 8015c0c: f04f 0350 mov.w r3, #80 @ 0x50
  51769. 8015c10: f383 8811 msr BASEPRI, r3
  51770. 8015c14: f3bf 8f6f isb sy
  51771. 8015c18: f3bf 8f4f dsb sy
  51772. 8015c1c: 617b str r3, [r7, #20]
  51773. }
  51774. 8015c1e: bf00 nop
  51775. 8015c20: bf00 nop
  51776. 8015c22: e7fd b.n 8015c20 <prvWriteBytesToBuffer+0xa4>
  51777. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51778. 8015c24: 68fb ldr r3, [r7, #12]
  51779. 8015c26: 6998 ldr r0, [r3, #24]
  51780. 8015c28: 68ba ldr r2, [r7, #8]
  51781. 8015c2a: 6a3b ldr r3, [r7, #32]
  51782. 8015c2c: 18d1 adds r1, r2, r3
  51783. 8015c2e: 687a ldr r2, [r7, #4]
  51784. 8015c30: 6a3b ldr r3, [r7, #32]
  51785. 8015c32: 1ad3 subs r3, r2, r3
  51786. 8015c34: 461a mov r2, r3
  51787. 8015c36: f002 fbf1 bl 801841c <memcpy>
  51788. else
  51789. {
  51790. mtCOVERAGE_TEST_MARKER();
  51791. }
  51792. xNextHead += xCount;
  51793. 8015c3a: 6a7a ldr r2, [r7, #36] @ 0x24
  51794. 8015c3c: 687b ldr r3, [r7, #4]
  51795. 8015c3e: 4413 add r3, r2
  51796. 8015c40: 627b str r3, [r7, #36] @ 0x24
  51797. if( xNextHead >= pxStreamBuffer->xLength )
  51798. 8015c42: 68fb ldr r3, [r7, #12]
  51799. 8015c44: 689b ldr r3, [r3, #8]
  51800. 8015c46: 6a7a ldr r2, [r7, #36] @ 0x24
  51801. 8015c48: 429a cmp r2, r3
  51802. 8015c4a: d304 bcc.n 8015c56 <prvWriteBytesToBuffer+0xda>
  51803. {
  51804. xNextHead -= pxStreamBuffer->xLength;
  51805. 8015c4c: 68fb ldr r3, [r7, #12]
  51806. 8015c4e: 689b ldr r3, [r3, #8]
  51807. 8015c50: 6a7a ldr r2, [r7, #36] @ 0x24
  51808. 8015c52: 1ad3 subs r3, r2, r3
  51809. 8015c54: 627b str r3, [r7, #36] @ 0x24
  51810. else
  51811. {
  51812. mtCOVERAGE_TEST_MARKER();
  51813. }
  51814. pxStreamBuffer->xHead = xNextHead;
  51815. 8015c56: 68fb ldr r3, [r7, #12]
  51816. 8015c58: 6a7a ldr r2, [r7, #36] @ 0x24
  51817. 8015c5a: 605a str r2, [r3, #4]
  51818. return xCount;
  51819. 8015c5c: 687b ldr r3, [r7, #4]
  51820. }
  51821. 8015c5e: 4618 mov r0, r3
  51822. 8015c60: 3728 adds r7, #40 @ 0x28
  51823. 8015c62: 46bd mov sp, r7
  51824. 8015c64: bd80 pop {r7, pc}
  51825. 08015c66 <prvBytesInBuffer>:
  51826. return xCount;
  51827. }
  51828. /*-----------------------------------------------------------*/
  51829. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  51830. {
  51831. 8015c66: b480 push {r7}
  51832. 8015c68: b085 sub sp, #20
  51833. 8015c6a: af00 add r7, sp, #0
  51834. 8015c6c: 6078 str r0, [r7, #4]
  51835. /* Returns the distance between xTail and xHead. */
  51836. size_t xCount;
  51837. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  51838. 8015c6e: 687b ldr r3, [r7, #4]
  51839. 8015c70: 689a ldr r2, [r3, #8]
  51840. 8015c72: 687b ldr r3, [r7, #4]
  51841. 8015c74: 685b ldr r3, [r3, #4]
  51842. 8015c76: 4413 add r3, r2
  51843. 8015c78: 60fb str r3, [r7, #12]
  51844. xCount -= pxStreamBuffer->xTail;
  51845. 8015c7a: 687b ldr r3, [r7, #4]
  51846. 8015c7c: 681b ldr r3, [r3, #0]
  51847. 8015c7e: 68fa ldr r2, [r7, #12]
  51848. 8015c80: 1ad3 subs r3, r2, r3
  51849. 8015c82: 60fb str r3, [r7, #12]
  51850. if ( xCount >= pxStreamBuffer->xLength )
  51851. 8015c84: 687b ldr r3, [r7, #4]
  51852. 8015c86: 689b ldr r3, [r3, #8]
  51853. 8015c88: 68fa ldr r2, [r7, #12]
  51854. 8015c8a: 429a cmp r2, r3
  51855. 8015c8c: d304 bcc.n 8015c98 <prvBytesInBuffer+0x32>
  51856. {
  51857. xCount -= pxStreamBuffer->xLength;
  51858. 8015c8e: 687b ldr r3, [r7, #4]
  51859. 8015c90: 689b ldr r3, [r3, #8]
  51860. 8015c92: 68fa ldr r2, [r7, #12]
  51861. 8015c94: 1ad3 subs r3, r2, r3
  51862. 8015c96: 60fb str r3, [r7, #12]
  51863. else
  51864. {
  51865. mtCOVERAGE_TEST_MARKER();
  51866. }
  51867. return xCount;
  51868. 8015c98: 68fb ldr r3, [r7, #12]
  51869. }
  51870. 8015c9a: 4618 mov r0, r3
  51871. 8015c9c: 3714 adds r7, #20
  51872. 8015c9e: 46bd mov sp, r7
  51873. 8015ca0: f85d 7b04 ldr.w r7, [sp], #4
  51874. 8015ca4: 4770 bx lr
  51875. 08015ca6 <xTaskCreateStatic>:
  51876. const uint32_t ulStackDepth,
  51877. void * const pvParameters,
  51878. UBaseType_t uxPriority,
  51879. StackType_t * const puxStackBuffer,
  51880. StaticTask_t * const pxTaskBuffer )
  51881. {
  51882. 8015ca6: b580 push {r7, lr}
  51883. 8015ca8: b08e sub sp, #56 @ 0x38
  51884. 8015caa: af04 add r7, sp, #16
  51885. 8015cac: 60f8 str r0, [r7, #12]
  51886. 8015cae: 60b9 str r1, [r7, #8]
  51887. 8015cb0: 607a str r2, [r7, #4]
  51888. 8015cb2: 603b str r3, [r7, #0]
  51889. TCB_t *pxNewTCB;
  51890. TaskHandle_t xReturn;
  51891. configASSERT( puxStackBuffer != NULL );
  51892. 8015cb4: 6b7b ldr r3, [r7, #52] @ 0x34
  51893. 8015cb6: 2b00 cmp r3, #0
  51894. 8015cb8: d10b bne.n 8015cd2 <xTaskCreateStatic+0x2c>
  51895. __asm volatile
  51896. 8015cba: f04f 0350 mov.w r3, #80 @ 0x50
  51897. 8015cbe: f383 8811 msr BASEPRI, r3
  51898. 8015cc2: f3bf 8f6f isb sy
  51899. 8015cc6: f3bf 8f4f dsb sy
  51900. 8015cca: 623b str r3, [r7, #32]
  51901. }
  51902. 8015ccc: bf00 nop
  51903. 8015cce: bf00 nop
  51904. 8015cd0: e7fd b.n 8015cce <xTaskCreateStatic+0x28>
  51905. configASSERT( pxTaskBuffer != NULL );
  51906. 8015cd2: 6bbb ldr r3, [r7, #56] @ 0x38
  51907. 8015cd4: 2b00 cmp r3, #0
  51908. 8015cd6: d10b bne.n 8015cf0 <xTaskCreateStatic+0x4a>
  51909. __asm volatile
  51910. 8015cd8: f04f 0350 mov.w r3, #80 @ 0x50
  51911. 8015cdc: f383 8811 msr BASEPRI, r3
  51912. 8015ce0: f3bf 8f6f isb sy
  51913. 8015ce4: f3bf 8f4f dsb sy
  51914. 8015ce8: 61fb str r3, [r7, #28]
  51915. }
  51916. 8015cea: bf00 nop
  51917. 8015cec: bf00 nop
  51918. 8015cee: e7fd b.n 8015cec <xTaskCreateStatic+0x46>
  51919. #if( configASSERT_DEFINED == 1 )
  51920. {
  51921. /* Sanity check that the size of the structure used to declare a
  51922. variable of type StaticTask_t equals the size of the real task
  51923. structure. */
  51924. volatile size_t xSize = sizeof( StaticTask_t );
  51925. 8015cf0: 23a8 movs r3, #168 @ 0xa8
  51926. 8015cf2: 613b str r3, [r7, #16]
  51927. configASSERT( xSize == sizeof( TCB_t ) );
  51928. 8015cf4: 693b ldr r3, [r7, #16]
  51929. 8015cf6: 2ba8 cmp r3, #168 @ 0xa8
  51930. 8015cf8: d00b beq.n 8015d12 <xTaskCreateStatic+0x6c>
  51931. __asm volatile
  51932. 8015cfa: f04f 0350 mov.w r3, #80 @ 0x50
  51933. 8015cfe: f383 8811 msr BASEPRI, r3
  51934. 8015d02: f3bf 8f6f isb sy
  51935. 8015d06: f3bf 8f4f dsb sy
  51936. 8015d0a: 61bb str r3, [r7, #24]
  51937. }
  51938. 8015d0c: bf00 nop
  51939. 8015d0e: bf00 nop
  51940. 8015d10: e7fd b.n 8015d0e <xTaskCreateStatic+0x68>
  51941. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  51942. 8015d12: 693b ldr r3, [r7, #16]
  51943. }
  51944. #endif /* configASSERT_DEFINED */
  51945. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  51946. 8015d14: 6bbb ldr r3, [r7, #56] @ 0x38
  51947. 8015d16: 2b00 cmp r3, #0
  51948. 8015d18: d01e beq.n 8015d58 <xTaskCreateStatic+0xb2>
  51949. 8015d1a: 6b7b ldr r3, [r7, #52] @ 0x34
  51950. 8015d1c: 2b00 cmp r3, #0
  51951. 8015d1e: d01b beq.n 8015d58 <xTaskCreateStatic+0xb2>
  51952. {
  51953. /* The memory used for the task's TCB and stack are passed into this
  51954. function - use them. */
  51955. 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. */
  51956. 8015d20: 6bbb ldr r3, [r7, #56] @ 0x38
  51957. 8015d22: 627b str r3, [r7, #36] @ 0x24
  51958. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  51959. 8015d24: 6a7b ldr r3, [r7, #36] @ 0x24
  51960. 8015d26: 6b7a ldr r2, [r7, #52] @ 0x34
  51961. 8015d28: 631a str r2, [r3, #48] @ 0x30
  51962. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  51963. {
  51964. /* Tasks can be created statically or dynamically, so note this
  51965. task was created statically in case the task is later deleted. */
  51966. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  51967. 8015d2a: 6a7b ldr r3, [r7, #36] @ 0x24
  51968. 8015d2c: 2202 movs r2, #2
  51969. 8015d2e: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  51970. }
  51971. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  51972. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  51973. 8015d32: 2300 movs r3, #0
  51974. 8015d34: 9303 str r3, [sp, #12]
  51975. 8015d36: 6a7b ldr r3, [r7, #36] @ 0x24
  51976. 8015d38: 9302 str r3, [sp, #8]
  51977. 8015d3a: f107 0314 add.w r3, r7, #20
  51978. 8015d3e: 9301 str r3, [sp, #4]
  51979. 8015d40: 6b3b ldr r3, [r7, #48] @ 0x30
  51980. 8015d42: 9300 str r3, [sp, #0]
  51981. 8015d44: 683b ldr r3, [r7, #0]
  51982. 8015d46: 687a ldr r2, [r7, #4]
  51983. 8015d48: 68b9 ldr r1, [r7, #8]
  51984. 8015d4a: 68f8 ldr r0, [r7, #12]
  51985. 8015d4c: f000 f850 bl 8015df0 <prvInitialiseNewTask>
  51986. prvAddNewTaskToReadyList( pxNewTCB );
  51987. 8015d50: 6a78 ldr r0, [r7, #36] @ 0x24
  51988. 8015d52: f000 f8f5 bl 8015f40 <prvAddNewTaskToReadyList>
  51989. 8015d56: e001 b.n 8015d5c <xTaskCreateStatic+0xb6>
  51990. }
  51991. else
  51992. {
  51993. xReturn = NULL;
  51994. 8015d58: 2300 movs r3, #0
  51995. 8015d5a: 617b str r3, [r7, #20]
  51996. }
  51997. return xReturn;
  51998. 8015d5c: 697b ldr r3, [r7, #20]
  51999. }
  52000. 8015d5e: 4618 mov r0, r3
  52001. 8015d60: 3728 adds r7, #40 @ 0x28
  52002. 8015d62: 46bd mov sp, r7
  52003. 8015d64: bd80 pop {r7, pc}
  52004. 08015d66 <xTaskCreate>:
  52005. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  52006. const configSTACK_DEPTH_TYPE usStackDepth,
  52007. void * const pvParameters,
  52008. UBaseType_t uxPriority,
  52009. TaskHandle_t * const pxCreatedTask )
  52010. {
  52011. 8015d66: b580 push {r7, lr}
  52012. 8015d68: b08c sub sp, #48 @ 0x30
  52013. 8015d6a: af04 add r7, sp, #16
  52014. 8015d6c: 60f8 str r0, [r7, #12]
  52015. 8015d6e: 60b9 str r1, [r7, #8]
  52016. 8015d70: 603b str r3, [r7, #0]
  52017. 8015d72: 4613 mov r3, r2
  52018. 8015d74: 80fb strh r3, [r7, #6]
  52019. #else /* portSTACK_GROWTH */
  52020. {
  52021. StackType_t *pxStack;
  52022. /* Allocate space for the stack used by the task being created. */
  52023. 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. */
  52024. 8015d76: 88fb ldrh r3, [r7, #6]
  52025. 8015d78: 009b lsls r3, r3, #2
  52026. 8015d7a: 4618 mov r0, r3
  52027. 8015d7c: f002 f8d6 bl 8017f2c <pvPortMalloc>
  52028. 8015d80: 6178 str r0, [r7, #20]
  52029. if( pxStack != NULL )
  52030. 8015d82: 697b ldr r3, [r7, #20]
  52031. 8015d84: 2b00 cmp r3, #0
  52032. 8015d86: d00e beq.n 8015da6 <xTaskCreate+0x40>
  52033. {
  52034. /* Allocate space for the TCB. */
  52035. 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. */
  52036. 8015d88: 20a8 movs r0, #168 @ 0xa8
  52037. 8015d8a: f002 f8cf bl 8017f2c <pvPortMalloc>
  52038. 8015d8e: 61f8 str r0, [r7, #28]
  52039. if( pxNewTCB != NULL )
  52040. 8015d90: 69fb ldr r3, [r7, #28]
  52041. 8015d92: 2b00 cmp r3, #0
  52042. 8015d94: d003 beq.n 8015d9e <xTaskCreate+0x38>
  52043. {
  52044. /* Store the stack location in the TCB. */
  52045. pxNewTCB->pxStack = pxStack;
  52046. 8015d96: 69fb ldr r3, [r7, #28]
  52047. 8015d98: 697a ldr r2, [r7, #20]
  52048. 8015d9a: 631a str r2, [r3, #48] @ 0x30
  52049. 8015d9c: e005 b.n 8015daa <xTaskCreate+0x44>
  52050. }
  52051. else
  52052. {
  52053. /* The stack cannot be used as the TCB was not created. Free
  52054. it again. */
  52055. vPortFree( pxStack );
  52056. 8015d9e: 6978 ldr r0, [r7, #20]
  52057. 8015da0: f002 f992 bl 80180c8 <vPortFree>
  52058. 8015da4: e001 b.n 8015daa <xTaskCreate+0x44>
  52059. }
  52060. }
  52061. else
  52062. {
  52063. pxNewTCB = NULL;
  52064. 8015da6: 2300 movs r3, #0
  52065. 8015da8: 61fb str r3, [r7, #28]
  52066. }
  52067. }
  52068. #endif /* portSTACK_GROWTH */
  52069. if( pxNewTCB != NULL )
  52070. 8015daa: 69fb ldr r3, [r7, #28]
  52071. 8015dac: 2b00 cmp r3, #0
  52072. 8015dae: d017 beq.n 8015de0 <xTaskCreate+0x7a>
  52073. {
  52074. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  52075. {
  52076. /* Tasks can be created statically or dynamically, so note this
  52077. task was created dynamically in case it is later deleted. */
  52078. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  52079. 8015db0: 69fb ldr r3, [r7, #28]
  52080. 8015db2: 2200 movs r2, #0
  52081. 8015db4: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  52082. }
  52083. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  52084. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  52085. 8015db8: 88fa ldrh r2, [r7, #6]
  52086. 8015dba: 2300 movs r3, #0
  52087. 8015dbc: 9303 str r3, [sp, #12]
  52088. 8015dbe: 69fb ldr r3, [r7, #28]
  52089. 8015dc0: 9302 str r3, [sp, #8]
  52090. 8015dc2: 6afb ldr r3, [r7, #44] @ 0x2c
  52091. 8015dc4: 9301 str r3, [sp, #4]
  52092. 8015dc6: 6abb ldr r3, [r7, #40] @ 0x28
  52093. 8015dc8: 9300 str r3, [sp, #0]
  52094. 8015dca: 683b ldr r3, [r7, #0]
  52095. 8015dcc: 68b9 ldr r1, [r7, #8]
  52096. 8015dce: 68f8 ldr r0, [r7, #12]
  52097. 8015dd0: f000 f80e bl 8015df0 <prvInitialiseNewTask>
  52098. prvAddNewTaskToReadyList( pxNewTCB );
  52099. 8015dd4: 69f8 ldr r0, [r7, #28]
  52100. 8015dd6: f000 f8b3 bl 8015f40 <prvAddNewTaskToReadyList>
  52101. xReturn = pdPASS;
  52102. 8015dda: 2301 movs r3, #1
  52103. 8015ddc: 61bb str r3, [r7, #24]
  52104. 8015dde: e002 b.n 8015de6 <xTaskCreate+0x80>
  52105. }
  52106. else
  52107. {
  52108. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  52109. 8015de0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52110. 8015de4: 61bb str r3, [r7, #24]
  52111. }
  52112. return xReturn;
  52113. 8015de6: 69bb ldr r3, [r7, #24]
  52114. }
  52115. 8015de8: 4618 mov r0, r3
  52116. 8015dea: 3720 adds r7, #32
  52117. 8015dec: 46bd mov sp, r7
  52118. 8015dee: bd80 pop {r7, pc}
  52119. 08015df0 <prvInitialiseNewTask>:
  52120. void * const pvParameters,
  52121. UBaseType_t uxPriority,
  52122. TaskHandle_t * const pxCreatedTask,
  52123. TCB_t *pxNewTCB,
  52124. const MemoryRegion_t * const xRegions )
  52125. {
  52126. 8015df0: b580 push {r7, lr}
  52127. 8015df2: b088 sub sp, #32
  52128. 8015df4: af00 add r7, sp, #0
  52129. 8015df6: 60f8 str r0, [r7, #12]
  52130. 8015df8: 60b9 str r1, [r7, #8]
  52131. 8015dfa: 607a str r2, [r7, #4]
  52132. 8015dfc: 603b str r3, [r7, #0]
  52133. /* Avoid dependency on memset() if it is not required. */
  52134. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  52135. {
  52136. /* Fill the stack with a known value to assist debugging. */
  52137. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  52138. 8015dfe: 6b3b ldr r3, [r7, #48] @ 0x30
  52139. 8015e00: 6b18 ldr r0, [r3, #48] @ 0x30
  52140. 8015e02: 687b ldr r3, [r7, #4]
  52141. 8015e04: 009b lsls r3, r3, #2
  52142. 8015e06: 461a mov r2, r3
  52143. 8015e08: 21a5 movs r1, #165 @ 0xa5
  52144. 8015e0a: f002 fa7d bl 8018308 <memset>
  52145. grows from high memory to low (as per the 80x86) or vice versa.
  52146. portSTACK_GROWTH is used to make the result positive or negative as required
  52147. by the port. */
  52148. #if( portSTACK_GROWTH < 0 )
  52149. {
  52150. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  52151. 8015e0e: 6b3b ldr r3, [r7, #48] @ 0x30
  52152. 8015e10: 6b1a ldr r2, [r3, #48] @ 0x30
  52153. 8015e12: 6879 ldr r1, [r7, #4]
  52154. 8015e14: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  52155. 8015e18: 440b add r3, r1
  52156. 8015e1a: 009b lsls r3, r3, #2
  52157. 8015e1c: 4413 add r3, r2
  52158. 8015e1e: 61bb str r3, [r7, #24]
  52159. 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(). */
  52160. 8015e20: 69bb ldr r3, [r7, #24]
  52161. 8015e22: f023 0307 bic.w r3, r3, #7
  52162. 8015e26: 61bb str r3, [r7, #24]
  52163. /* Check the alignment of the calculated top of stack is correct. */
  52164. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  52165. 8015e28: 69bb ldr r3, [r7, #24]
  52166. 8015e2a: f003 0307 and.w r3, r3, #7
  52167. 8015e2e: 2b00 cmp r3, #0
  52168. 8015e30: d00b beq.n 8015e4a <prvInitialiseNewTask+0x5a>
  52169. __asm volatile
  52170. 8015e32: f04f 0350 mov.w r3, #80 @ 0x50
  52171. 8015e36: f383 8811 msr BASEPRI, r3
  52172. 8015e3a: f3bf 8f6f isb sy
  52173. 8015e3e: f3bf 8f4f dsb sy
  52174. 8015e42: 617b str r3, [r7, #20]
  52175. }
  52176. 8015e44: bf00 nop
  52177. 8015e46: bf00 nop
  52178. 8015e48: e7fd b.n 8015e46 <prvInitialiseNewTask+0x56>
  52179. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  52180. }
  52181. #endif /* portSTACK_GROWTH */
  52182. /* Store the task name in the TCB. */
  52183. if( pcName != NULL )
  52184. 8015e4a: 68bb ldr r3, [r7, #8]
  52185. 8015e4c: 2b00 cmp r3, #0
  52186. 8015e4e: d01f beq.n 8015e90 <prvInitialiseNewTask+0xa0>
  52187. {
  52188. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52189. 8015e50: 2300 movs r3, #0
  52190. 8015e52: 61fb str r3, [r7, #28]
  52191. 8015e54: e012 b.n 8015e7c <prvInitialiseNewTask+0x8c>
  52192. {
  52193. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  52194. 8015e56: 68ba ldr r2, [r7, #8]
  52195. 8015e58: 69fb ldr r3, [r7, #28]
  52196. 8015e5a: 4413 add r3, r2
  52197. 8015e5c: 7819 ldrb r1, [r3, #0]
  52198. 8015e5e: 6b3a ldr r2, [r7, #48] @ 0x30
  52199. 8015e60: 69fb ldr r3, [r7, #28]
  52200. 8015e62: 4413 add r3, r2
  52201. 8015e64: 3334 adds r3, #52 @ 0x34
  52202. 8015e66: 460a mov r2, r1
  52203. 8015e68: 701a strb r2, [r3, #0]
  52204. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  52205. configMAX_TASK_NAME_LEN characters just in case the memory after the
  52206. string is not accessible (extremely unlikely). */
  52207. if( pcName[ x ] == ( char ) 0x00 )
  52208. 8015e6a: 68ba ldr r2, [r7, #8]
  52209. 8015e6c: 69fb ldr r3, [r7, #28]
  52210. 8015e6e: 4413 add r3, r2
  52211. 8015e70: 781b ldrb r3, [r3, #0]
  52212. 8015e72: 2b00 cmp r3, #0
  52213. 8015e74: d006 beq.n 8015e84 <prvInitialiseNewTask+0x94>
  52214. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52215. 8015e76: 69fb ldr r3, [r7, #28]
  52216. 8015e78: 3301 adds r3, #1
  52217. 8015e7a: 61fb str r3, [r7, #28]
  52218. 8015e7c: 69fb ldr r3, [r7, #28]
  52219. 8015e7e: 2b0f cmp r3, #15
  52220. 8015e80: d9e9 bls.n 8015e56 <prvInitialiseNewTask+0x66>
  52221. 8015e82: e000 b.n 8015e86 <prvInitialiseNewTask+0x96>
  52222. {
  52223. break;
  52224. 8015e84: bf00 nop
  52225. }
  52226. }
  52227. /* Ensure the name string is terminated in the case that the string length
  52228. was greater or equal to configMAX_TASK_NAME_LEN. */
  52229. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  52230. 8015e86: 6b3b ldr r3, [r7, #48] @ 0x30
  52231. 8015e88: 2200 movs r2, #0
  52232. 8015e8a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  52233. 8015e8e: e003 b.n 8015e98 <prvInitialiseNewTask+0xa8>
  52234. }
  52235. else
  52236. {
  52237. /* The task has not been given a name, so just ensure there is a NULL
  52238. terminator when it is read out. */
  52239. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  52240. 8015e90: 6b3b ldr r3, [r7, #48] @ 0x30
  52241. 8015e92: 2200 movs r2, #0
  52242. 8015e94: f883 2034 strb.w r2, [r3, #52] @ 0x34
  52243. }
  52244. /* This is used as an array index so must ensure it's not too large. First
  52245. remove the privilege bit if one is present. */
  52246. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  52247. 8015e98: 6abb ldr r3, [r7, #40] @ 0x28
  52248. 8015e9a: 2b37 cmp r3, #55 @ 0x37
  52249. 8015e9c: d901 bls.n 8015ea2 <prvInitialiseNewTask+0xb2>
  52250. {
  52251. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  52252. 8015e9e: 2337 movs r3, #55 @ 0x37
  52253. 8015ea0: 62bb str r3, [r7, #40] @ 0x28
  52254. else
  52255. {
  52256. mtCOVERAGE_TEST_MARKER();
  52257. }
  52258. pxNewTCB->uxPriority = uxPriority;
  52259. 8015ea2: 6b3b ldr r3, [r7, #48] @ 0x30
  52260. 8015ea4: 6aba ldr r2, [r7, #40] @ 0x28
  52261. 8015ea6: 62da str r2, [r3, #44] @ 0x2c
  52262. #if ( configUSE_MUTEXES == 1 )
  52263. {
  52264. pxNewTCB->uxBasePriority = uxPriority;
  52265. 8015ea8: 6b3b ldr r3, [r7, #48] @ 0x30
  52266. 8015eaa: 6aba ldr r2, [r7, #40] @ 0x28
  52267. 8015eac: 64da str r2, [r3, #76] @ 0x4c
  52268. pxNewTCB->uxMutexesHeld = 0;
  52269. 8015eae: 6b3b ldr r3, [r7, #48] @ 0x30
  52270. 8015eb0: 2200 movs r2, #0
  52271. 8015eb2: 651a str r2, [r3, #80] @ 0x50
  52272. }
  52273. #endif /* configUSE_MUTEXES */
  52274. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  52275. 8015eb4: 6b3b ldr r3, [r7, #48] @ 0x30
  52276. 8015eb6: 3304 adds r3, #4
  52277. 8015eb8: 4618 mov r0, r3
  52278. 8015eba: f7fe fd09 bl 80148d0 <vListInitialiseItem>
  52279. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  52280. 8015ebe: 6b3b ldr r3, [r7, #48] @ 0x30
  52281. 8015ec0: 3318 adds r3, #24
  52282. 8015ec2: 4618 mov r0, r3
  52283. 8015ec4: f7fe fd04 bl 80148d0 <vListInitialiseItem>
  52284. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  52285. back to the containing TCB from a generic item in a list. */
  52286. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  52287. 8015ec8: 6b3b ldr r3, [r7, #48] @ 0x30
  52288. 8015eca: 6b3a ldr r2, [r7, #48] @ 0x30
  52289. 8015ecc: 611a str r2, [r3, #16]
  52290. /* Event lists are always in priority order. */
  52291. 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. */
  52292. 8015ece: 6abb ldr r3, [r7, #40] @ 0x28
  52293. 8015ed0: f1c3 0238 rsb r2, r3, #56 @ 0x38
  52294. 8015ed4: 6b3b ldr r3, [r7, #48] @ 0x30
  52295. 8015ed6: 619a str r2, [r3, #24]
  52296. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  52297. 8015ed8: 6b3b ldr r3, [r7, #48] @ 0x30
  52298. 8015eda: 6b3a ldr r2, [r7, #48] @ 0x30
  52299. 8015edc: 625a str r2, [r3, #36] @ 0x24
  52300. }
  52301. #endif
  52302. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  52303. {
  52304. pxNewTCB->ulNotifiedValue = 0;
  52305. 8015ede: 6b3b ldr r3, [r7, #48] @ 0x30
  52306. 8015ee0: 2200 movs r2, #0
  52307. 8015ee2: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  52308. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  52309. 8015ee6: 6b3b ldr r3, [r7, #48] @ 0x30
  52310. 8015ee8: 2200 movs r2, #0
  52311. 8015eea: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  52312. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  52313. {
  52314. /* Initialise this task's Newlib reent structure.
  52315. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52316. for additional information. */
  52317. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  52318. 8015eee: 6b3b ldr r3, [r7, #48] @ 0x30
  52319. 8015ef0: 3354 adds r3, #84 @ 0x54
  52320. 8015ef2: 224c movs r2, #76 @ 0x4c
  52321. 8015ef4: 2100 movs r1, #0
  52322. 8015ef6: 4618 mov r0, r3
  52323. 8015ef8: f002 fa06 bl 8018308 <memset>
  52324. 8015efc: 6b3b ldr r3, [r7, #48] @ 0x30
  52325. 8015efe: 4a0d ldr r2, [pc, #52] @ (8015f34 <prvInitialiseNewTask+0x144>)
  52326. 8015f00: 659a str r2, [r3, #88] @ 0x58
  52327. 8015f02: 6b3b ldr r3, [r7, #48] @ 0x30
  52328. 8015f04: 4a0c ldr r2, [pc, #48] @ (8015f38 <prvInitialiseNewTask+0x148>)
  52329. 8015f06: 65da str r2, [r3, #92] @ 0x5c
  52330. 8015f08: 6b3b ldr r3, [r7, #48] @ 0x30
  52331. 8015f0a: 4a0c ldr r2, [pc, #48] @ (8015f3c <prvInitialiseNewTask+0x14c>)
  52332. 8015f0c: 661a str r2, [r3, #96] @ 0x60
  52333. }
  52334. #endif /* portSTACK_GROWTH */
  52335. }
  52336. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  52337. {
  52338. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  52339. 8015f0e: 683a ldr r2, [r7, #0]
  52340. 8015f10: 68f9 ldr r1, [r7, #12]
  52341. 8015f12: 69b8 ldr r0, [r7, #24]
  52342. 8015f14: f001 fdb8 bl 8017a88 <pxPortInitialiseStack>
  52343. 8015f18: 4602 mov r2, r0
  52344. 8015f1a: 6b3b ldr r3, [r7, #48] @ 0x30
  52345. 8015f1c: 601a str r2, [r3, #0]
  52346. }
  52347. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  52348. }
  52349. #endif /* portUSING_MPU_WRAPPERS */
  52350. if( pxCreatedTask != NULL )
  52351. 8015f1e: 6afb ldr r3, [r7, #44] @ 0x2c
  52352. 8015f20: 2b00 cmp r3, #0
  52353. 8015f22: d002 beq.n 8015f2a <prvInitialiseNewTask+0x13a>
  52354. {
  52355. /* Pass the handle out in an anonymous way. The handle can be used to
  52356. change the created task's priority, delete the created task, etc.*/
  52357. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  52358. 8015f24: 6afb ldr r3, [r7, #44] @ 0x2c
  52359. 8015f26: 6b3a ldr r2, [r7, #48] @ 0x30
  52360. 8015f28: 601a str r2, [r3, #0]
  52361. }
  52362. else
  52363. {
  52364. mtCOVERAGE_TEST_MARKER();
  52365. }
  52366. }
  52367. 8015f2a: bf00 nop
  52368. 8015f2c: 3720 adds r7, #32
  52369. 8015f2e: 46bd mov sp, r7
  52370. 8015f30: bd80 pop {r7, pc}
  52371. 8015f32: bf00 nop
  52372. 8015f34: 2401304c .word 0x2401304c
  52373. 8015f38: 240130b4 .word 0x240130b4
  52374. 8015f3c: 2401311c .word 0x2401311c
  52375. 08015f40 <prvAddNewTaskToReadyList>:
  52376. /*-----------------------------------------------------------*/
  52377. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  52378. {
  52379. 8015f40: b580 push {r7, lr}
  52380. 8015f42: b082 sub sp, #8
  52381. 8015f44: af00 add r7, sp, #0
  52382. 8015f46: 6078 str r0, [r7, #4]
  52383. /* Ensure interrupts don't access the task lists while the lists are being
  52384. updated. */
  52385. taskENTER_CRITICAL();
  52386. 8015f48: f001 fece bl 8017ce8 <vPortEnterCritical>
  52387. {
  52388. uxCurrentNumberOfTasks++;
  52389. 8015f4c: 4b2d ldr r3, [pc, #180] @ (8016004 <prvAddNewTaskToReadyList+0xc4>)
  52390. 8015f4e: 681b ldr r3, [r3, #0]
  52391. 8015f50: 3301 adds r3, #1
  52392. 8015f52: 4a2c ldr r2, [pc, #176] @ (8016004 <prvAddNewTaskToReadyList+0xc4>)
  52393. 8015f54: 6013 str r3, [r2, #0]
  52394. if( pxCurrentTCB == NULL )
  52395. 8015f56: 4b2c ldr r3, [pc, #176] @ (8016008 <prvAddNewTaskToReadyList+0xc8>)
  52396. 8015f58: 681b ldr r3, [r3, #0]
  52397. 8015f5a: 2b00 cmp r3, #0
  52398. 8015f5c: d109 bne.n 8015f72 <prvAddNewTaskToReadyList+0x32>
  52399. {
  52400. /* There are no other tasks, or all the other tasks are in
  52401. the suspended state - make this the current task. */
  52402. pxCurrentTCB = pxNewTCB;
  52403. 8015f5e: 4a2a ldr r2, [pc, #168] @ (8016008 <prvAddNewTaskToReadyList+0xc8>)
  52404. 8015f60: 687b ldr r3, [r7, #4]
  52405. 8015f62: 6013 str r3, [r2, #0]
  52406. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  52407. 8015f64: 4b27 ldr r3, [pc, #156] @ (8016004 <prvAddNewTaskToReadyList+0xc4>)
  52408. 8015f66: 681b ldr r3, [r3, #0]
  52409. 8015f68: 2b01 cmp r3, #1
  52410. 8015f6a: d110 bne.n 8015f8e <prvAddNewTaskToReadyList+0x4e>
  52411. {
  52412. /* This is the first task to be created so do the preliminary
  52413. initialisation required. We will not recover if this call
  52414. fails, but we will report the failure. */
  52415. prvInitialiseTaskLists();
  52416. 8015f6c: f000 fc64 bl 8016838 <prvInitialiseTaskLists>
  52417. 8015f70: e00d b.n 8015f8e <prvAddNewTaskToReadyList+0x4e>
  52418. else
  52419. {
  52420. /* If the scheduler is not already running, make this task the
  52421. current task if it is the highest priority task to be created
  52422. so far. */
  52423. if( xSchedulerRunning == pdFALSE )
  52424. 8015f72: 4b26 ldr r3, [pc, #152] @ (801600c <prvAddNewTaskToReadyList+0xcc>)
  52425. 8015f74: 681b ldr r3, [r3, #0]
  52426. 8015f76: 2b00 cmp r3, #0
  52427. 8015f78: d109 bne.n 8015f8e <prvAddNewTaskToReadyList+0x4e>
  52428. {
  52429. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  52430. 8015f7a: 4b23 ldr r3, [pc, #140] @ (8016008 <prvAddNewTaskToReadyList+0xc8>)
  52431. 8015f7c: 681b ldr r3, [r3, #0]
  52432. 8015f7e: 6ada ldr r2, [r3, #44] @ 0x2c
  52433. 8015f80: 687b ldr r3, [r7, #4]
  52434. 8015f82: 6adb ldr r3, [r3, #44] @ 0x2c
  52435. 8015f84: 429a cmp r2, r3
  52436. 8015f86: d802 bhi.n 8015f8e <prvAddNewTaskToReadyList+0x4e>
  52437. {
  52438. pxCurrentTCB = pxNewTCB;
  52439. 8015f88: 4a1f ldr r2, [pc, #124] @ (8016008 <prvAddNewTaskToReadyList+0xc8>)
  52440. 8015f8a: 687b ldr r3, [r7, #4]
  52441. 8015f8c: 6013 str r3, [r2, #0]
  52442. {
  52443. mtCOVERAGE_TEST_MARKER();
  52444. }
  52445. }
  52446. uxTaskNumber++;
  52447. 8015f8e: 4b20 ldr r3, [pc, #128] @ (8016010 <prvAddNewTaskToReadyList+0xd0>)
  52448. 8015f90: 681b ldr r3, [r3, #0]
  52449. 8015f92: 3301 adds r3, #1
  52450. 8015f94: 4a1e ldr r2, [pc, #120] @ (8016010 <prvAddNewTaskToReadyList+0xd0>)
  52451. 8015f96: 6013 str r3, [r2, #0]
  52452. #if ( configUSE_TRACE_FACILITY == 1 )
  52453. {
  52454. /* Add a counter into the TCB for tracing only. */
  52455. pxNewTCB->uxTCBNumber = uxTaskNumber;
  52456. 8015f98: 4b1d ldr r3, [pc, #116] @ (8016010 <prvAddNewTaskToReadyList+0xd0>)
  52457. 8015f9a: 681a ldr r2, [r3, #0]
  52458. 8015f9c: 687b ldr r3, [r7, #4]
  52459. 8015f9e: 645a str r2, [r3, #68] @ 0x44
  52460. }
  52461. #endif /* configUSE_TRACE_FACILITY */
  52462. traceTASK_CREATE( pxNewTCB );
  52463. prvAddTaskToReadyList( pxNewTCB );
  52464. 8015fa0: 687b ldr r3, [r7, #4]
  52465. 8015fa2: 6ada ldr r2, [r3, #44] @ 0x2c
  52466. 8015fa4: 4b1b ldr r3, [pc, #108] @ (8016014 <prvAddNewTaskToReadyList+0xd4>)
  52467. 8015fa6: 681b ldr r3, [r3, #0]
  52468. 8015fa8: 429a cmp r2, r3
  52469. 8015faa: d903 bls.n 8015fb4 <prvAddNewTaskToReadyList+0x74>
  52470. 8015fac: 687b ldr r3, [r7, #4]
  52471. 8015fae: 6adb ldr r3, [r3, #44] @ 0x2c
  52472. 8015fb0: 4a18 ldr r2, [pc, #96] @ (8016014 <prvAddNewTaskToReadyList+0xd4>)
  52473. 8015fb2: 6013 str r3, [r2, #0]
  52474. 8015fb4: 687b ldr r3, [r7, #4]
  52475. 8015fb6: 6ada ldr r2, [r3, #44] @ 0x2c
  52476. 8015fb8: 4613 mov r3, r2
  52477. 8015fba: 009b lsls r3, r3, #2
  52478. 8015fbc: 4413 add r3, r2
  52479. 8015fbe: 009b lsls r3, r3, #2
  52480. 8015fc0: 4a15 ldr r2, [pc, #84] @ (8016018 <prvAddNewTaskToReadyList+0xd8>)
  52481. 8015fc2: 441a add r2, r3
  52482. 8015fc4: 687b ldr r3, [r7, #4]
  52483. 8015fc6: 3304 adds r3, #4
  52484. 8015fc8: 4619 mov r1, r3
  52485. 8015fca: 4610 mov r0, r2
  52486. 8015fcc: f7fe fc8d bl 80148ea <vListInsertEnd>
  52487. portSETUP_TCB( pxNewTCB );
  52488. }
  52489. taskEXIT_CRITICAL();
  52490. 8015fd0: f001 febc bl 8017d4c <vPortExitCritical>
  52491. if( xSchedulerRunning != pdFALSE )
  52492. 8015fd4: 4b0d ldr r3, [pc, #52] @ (801600c <prvAddNewTaskToReadyList+0xcc>)
  52493. 8015fd6: 681b ldr r3, [r3, #0]
  52494. 8015fd8: 2b00 cmp r3, #0
  52495. 8015fda: d00e beq.n 8015ffa <prvAddNewTaskToReadyList+0xba>
  52496. {
  52497. /* If the created task is of a higher priority than the current task
  52498. then it should run now. */
  52499. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  52500. 8015fdc: 4b0a ldr r3, [pc, #40] @ (8016008 <prvAddNewTaskToReadyList+0xc8>)
  52501. 8015fde: 681b ldr r3, [r3, #0]
  52502. 8015fe0: 6ada ldr r2, [r3, #44] @ 0x2c
  52503. 8015fe2: 687b ldr r3, [r7, #4]
  52504. 8015fe4: 6adb ldr r3, [r3, #44] @ 0x2c
  52505. 8015fe6: 429a cmp r2, r3
  52506. 8015fe8: d207 bcs.n 8015ffa <prvAddNewTaskToReadyList+0xba>
  52507. {
  52508. taskYIELD_IF_USING_PREEMPTION();
  52509. 8015fea: 4b0c ldr r3, [pc, #48] @ (801601c <prvAddNewTaskToReadyList+0xdc>)
  52510. 8015fec: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52511. 8015ff0: 601a str r2, [r3, #0]
  52512. 8015ff2: f3bf 8f4f dsb sy
  52513. 8015ff6: f3bf 8f6f isb sy
  52514. }
  52515. else
  52516. {
  52517. mtCOVERAGE_TEST_MARKER();
  52518. }
  52519. }
  52520. 8015ffa: bf00 nop
  52521. 8015ffc: 3708 adds r7, #8
  52522. 8015ffe: 46bd mov sp, r7
  52523. 8016000: bd80 pop {r7, pc}
  52524. 8016002: bf00 nop
  52525. 8016004: 24002ecc .word 0x24002ecc
  52526. 8016008: 240029f8 .word 0x240029f8
  52527. 801600c: 24002ed8 .word 0x24002ed8
  52528. 8016010: 24002ee8 .word 0x24002ee8
  52529. 8016014: 24002ed4 .word 0x24002ed4
  52530. 8016018: 240029fc .word 0x240029fc
  52531. 801601c: e000ed04 .word 0xe000ed04
  52532. 08016020 <vTaskDelay>:
  52533. /*-----------------------------------------------------------*/
  52534. #if ( INCLUDE_vTaskDelay == 1 )
  52535. void vTaskDelay( const TickType_t xTicksToDelay )
  52536. {
  52537. 8016020: b580 push {r7, lr}
  52538. 8016022: b084 sub sp, #16
  52539. 8016024: af00 add r7, sp, #0
  52540. 8016026: 6078 str r0, [r7, #4]
  52541. BaseType_t xAlreadyYielded = pdFALSE;
  52542. 8016028: 2300 movs r3, #0
  52543. 801602a: 60fb str r3, [r7, #12]
  52544. /* A delay time of zero just forces a reschedule. */
  52545. if( xTicksToDelay > ( TickType_t ) 0U )
  52546. 801602c: 687b ldr r3, [r7, #4]
  52547. 801602e: 2b00 cmp r3, #0
  52548. 8016030: d018 beq.n 8016064 <vTaskDelay+0x44>
  52549. {
  52550. configASSERT( uxSchedulerSuspended == 0 );
  52551. 8016032: 4b14 ldr r3, [pc, #80] @ (8016084 <vTaskDelay+0x64>)
  52552. 8016034: 681b ldr r3, [r3, #0]
  52553. 8016036: 2b00 cmp r3, #0
  52554. 8016038: d00b beq.n 8016052 <vTaskDelay+0x32>
  52555. __asm volatile
  52556. 801603a: f04f 0350 mov.w r3, #80 @ 0x50
  52557. 801603e: f383 8811 msr BASEPRI, r3
  52558. 8016042: f3bf 8f6f isb sy
  52559. 8016046: f3bf 8f4f dsb sy
  52560. 801604a: 60bb str r3, [r7, #8]
  52561. }
  52562. 801604c: bf00 nop
  52563. 801604e: bf00 nop
  52564. 8016050: e7fd b.n 801604e <vTaskDelay+0x2e>
  52565. vTaskSuspendAll();
  52566. 8016052: f000 f88b bl 801616c <vTaskSuspendAll>
  52567. list or removed from the blocked list until the scheduler
  52568. is resumed.
  52569. This task cannot be in an event list as it is the currently
  52570. executing task. */
  52571. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  52572. 8016056: 2100 movs r1, #0
  52573. 8016058: 6878 ldr r0, [r7, #4]
  52574. 801605a: f001 f87d bl 8017158 <prvAddCurrentTaskToDelayedList>
  52575. }
  52576. xAlreadyYielded = xTaskResumeAll();
  52577. 801605e: f000 f893 bl 8016188 <xTaskResumeAll>
  52578. 8016062: 60f8 str r0, [r7, #12]
  52579. mtCOVERAGE_TEST_MARKER();
  52580. }
  52581. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  52582. have put ourselves to sleep. */
  52583. if( xAlreadyYielded == pdFALSE )
  52584. 8016064: 68fb ldr r3, [r7, #12]
  52585. 8016066: 2b00 cmp r3, #0
  52586. 8016068: d107 bne.n 801607a <vTaskDelay+0x5a>
  52587. {
  52588. portYIELD_WITHIN_API();
  52589. 801606a: 4b07 ldr r3, [pc, #28] @ (8016088 <vTaskDelay+0x68>)
  52590. 801606c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52591. 8016070: 601a str r2, [r3, #0]
  52592. 8016072: f3bf 8f4f dsb sy
  52593. 8016076: f3bf 8f6f isb sy
  52594. }
  52595. else
  52596. {
  52597. mtCOVERAGE_TEST_MARKER();
  52598. }
  52599. }
  52600. 801607a: bf00 nop
  52601. 801607c: 3710 adds r7, #16
  52602. 801607e: 46bd mov sp, r7
  52603. 8016080: bd80 pop {r7, pc}
  52604. 8016082: bf00 nop
  52605. 8016084: 24002ef4 .word 0x24002ef4
  52606. 8016088: e000ed04 .word 0xe000ed04
  52607. 0801608c <vTaskStartScheduler>:
  52608. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  52609. /*-----------------------------------------------------------*/
  52610. void vTaskStartScheduler( void )
  52611. {
  52612. 801608c: b580 push {r7, lr}
  52613. 801608e: b08a sub sp, #40 @ 0x28
  52614. 8016090: af04 add r7, sp, #16
  52615. BaseType_t xReturn;
  52616. /* Add the idle task at the lowest priority. */
  52617. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  52618. {
  52619. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  52620. 8016092: 2300 movs r3, #0
  52621. 8016094: 60bb str r3, [r7, #8]
  52622. StackType_t *pxIdleTaskStackBuffer = NULL;
  52623. 8016096: 2300 movs r3, #0
  52624. 8016098: 607b str r3, [r7, #4]
  52625. uint32_t ulIdleTaskStackSize;
  52626. /* The Idle task is created using user provided RAM - obtain the
  52627. address of the RAM then create the idle task. */
  52628. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  52629. 801609a: 463a mov r2, r7
  52630. 801609c: 1d39 adds r1, r7, #4
  52631. 801609e: f107 0308 add.w r3, r7, #8
  52632. 80160a2: 4618 mov r0, r3
  52633. 80160a4: f7fe fbc0 bl 8014828 <vApplicationGetIdleTaskMemory>
  52634. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  52635. 80160a8: 6839 ldr r1, [r7, #0]
  52636. 80160aa: 687b ldr r3, [r7, #4]
  52637. 80160ac: 68ba ldr r2, [r7, #8]
  52638. 80160ae: 9202 str r2, [sp, #8]
  52639. 80160b0: 9301 str r3, [sp, #4]
  52640. 80160b2: 2300 movs r3, #0
  52641. 80160b4: 9300 str r3, [sp, #0]
  52642. 80160b6: 2300 movs r3, #0
  52643. 80160b8: 460a mov r2, r1
  52644. 80160ba: 4924 ldr r1, [pc, #144] @ (801614c <vTaskStartScheduler+0xc0>)
  52645. 80160bc: 4824 ldr r0, [pc, #144] @ (8016150 <vTaskStartScheduler+0xc4>)
  52646. 80160be: f7ff fdf2 bl 8015ca6 <xTaskCreateStatic>
  52647. 80160c2: 4603 mov r3, r0
  52648. 80160c4: 4a23 ldr r2, [pc, #140] @ (8016154 <vTaskStartScheduler+0xc8>)
  52649. 80160c6: 6013 str r3, [r2, #0]
  52650. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  52651. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  52652. pxIdleTaskStackBuffer,
  52653. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  52654. if( xIdleTaskHandle != NULL )
  52655. 80160c8: 4b22 ldr r3, [pc, #136] @ (8016154 <vTaskStartScheduler+0xc8>)
  52656. 80160ca: 681b ldr r3, [r3, #0]
  52657. 80160cc: 2b00 cmp r3, #0
  52658. 80160ce: d002 beq.n 80160d6 <vTaskStartScheduler+0x4a>
  52659. {
  52660. xReturn = pdPASS;
  52661. 80160d0: 2301 movs r3, #1
  52662. 80160d2: 617b str r3, [r7, #20]
  52663. 80160d4: e001 b.n 80160da <vTaskStartScheduler+0x4e>
  52664. }
  52665. else
  52666. {
  52667. xReturn = pdFAIL;
  52668. 80160d6: 2300 movs r3, #0
  52669. 80160d8: 617b str r3, [r7, #20]
  52670. }
  52671. #endif /* configSUPPORT_STATIC_ALLOCATION */
  52672. #if ( configUSE_TIMERS == 1 )
  52673. {
  52674. if( xReturn == pdPASS )
  52675. 80160da: 697b ldr r3, [r7, #20]
  52676. 80160dc: 2b01 cmp r3, #1
  52677. 80160de: d102 bne.n 80160e6 <vTaskStartScheduler+0x5a>
  52678. {
  52679. xReturn = xTimerCreateTimerTask();
  52680. 80160e0: f001 f88e bl 8017200 <xTimerCreateTimerTask>
  52681. 80160e4: 6178 str r0, [r7, #20]
  52682. mtCOVERAGE_TEST_MARKER();
  52683. }
  52684. }
  52685. #endif /* configUSE_TIMERS */
  52686. if( xReturn == pdPASS )
  52687. 80160e6: 697b ldr r3, [r7, #20]
  52688. 80160e8: 2b01 cmp r3, #1
  52689. 80160ea: d11b bne.n 8016124 <vTaskStartScheduler+0x98>
  52690. __asm volatile
  52691. 80160ec: f04f 0350 mov.w r3, #80 @ 0x50
  52692. 80160f0: f383 8811 msr BASEPRI, r3
  52693. 80160f4: f3bf 8f6f isb sy
  52694. 80160f8: f3bf 8f4f dsb sy
  52695. 80160fc: 613b str r3, [r7, #16]
  52696. }
  52697. 80160fe: bf00 nop
  52698. {
  52699. /* Switch Newlib's _impure_ptr variable to point to the _reent
  52700. structure specific to the task that will run first.
  52701. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52702. for additional information. */
  52703. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52704. 8016100: 4b15 ldr r3, [pc, #84] @ (8016158 <vTaskStartScheduler+0xcc>)
  52705. 8016102: 681b ldr r3, [r3, #0]
  52706. 8016104: 3354 adds r3, #84 @ 0x54
  52707. 8016106: 4a15 ldr r2, [pc, #84] @ (801615c <vTaskStartScheduler+0xd0>)
  52708. 8016108: 6013 str r3, [r2, #0]
  52709. }
  52710. #endif /* configUSE_NEWLIB_REENTRANT */
  52711. xNextTaskUnblockTime = portMAX_DELAY;
  52712. 801610a: 4b15 ldr r3, [pc, #84] @ (8016160 <vTaskStartScheduler+0xd4>)
  52713. 801610c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52714. 8016110: 601a str r2, [r3, #0]
  52715. xSchedulerRunning = pdTRUE;
  52716. 8016112: 4b14 ldr r3, [pc, #80] @ (8016164 <vTaskStartScheduler+0xd8>)
  52717. 8016114: 2201 movs r2, #1
  52718. 8016116: 601a str r2, [r3, #0]
  52719. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  52720. 8016118: 4b13 ldr r3, [pc, #76] @ (8016168 <vTaskStartScheduler+0xdc>)
  52721. 801611a: 2200 movs r2, #0
  52722. 801611c: 601a str r2, [r3, #0]
  52723. traceTASK_SWITCHED_IN();
  52724. /* Setting up the timer tick is hardware specific and thus in the
  52725. portable interface. */
  52726. if( xPortStartScheduler() != pdFALSE )
  52727. 801611e: f001 fd3f bl 8017ba0 <xPortStartScheduler>
  52728. }
  52729. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  52730. meaning xIdleTaskHandle is not used anywhere else. */
  52731. ( void ) xIdleTaskHandle;
  52732. }
  52733. 8016122: e00f b.n 8016144 <vTaskStartScheduler+0xb8>
  52734. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  52735. 8016124: 697b ldr r3, [r7, #20]
  52736. 8016126: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52737. 801612a: d10b bne.n 8016144 <vTaskStartScheduler+0xb8>
  52738. __asm volatile
  52739. 801612c: f04f 0350 mov.w r3, #80 @ 0x50
  52740. 8016130: f383 8811 msr BASEPRI, r3
  52741. 8016134: f3bf 8f6f isb sy
  52742. 8016138: f3bf 8f4f dsb sy
  52743. 801613c: 60fb str r3, [r7, #12]
  52744. }
  52745. 801613e: bf00 nop
  52746. 8016140: bf00 nop
  52747. 8016142: e7fd b.n 8016140 <vTaskStartScheduler+0xb4>
  52748. }
  52749. 8016144: bf00 nop
  52750. 8016146: 3718 adds r7, #24
  52751. 8016148: 46bd mov sp, r7
  52752. 801614a: bd80 pop {r7, pc}
  52753. 801614c: 08018680 .word 0x08018680
  52754. 8016150: 08016809 .word 0x08016809
  52755. 8016154: 24002ef0 .word 0x24002ef0
  52756. 8016158: 240029f8 .word 0x240029f8
  52757. 801615c: 24000048 .word 0x24000048
  52758. 8016160: 24002eec .word 0x24002eec
  52759. 8016164: 24002ed8 .word 0x24002ed8
  52760. 8016168: 24002ed0 .word 0x24002ed0
  52761. 0801616c <vTaskSuspendAll>:
  52762. vPortEndScheduler();
  52763. }
  52764. /*----------------------------------------------------------*/
  52765. void vTaskSuspendAll( void )
  52766. {
  52767. 801616c: b480 push {r7}
  52768. 801616e: af00 add r7, sp, #0
  52769. do not otherwise exhibit real time behaviour. */
  52770. portSOFTWARE_BARRIER();
  52771. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  52772. is used to allow calls to vTaskSuspendAll() to nest. */
  52773. ++uxSchedulerSuspended;
  52774. 8016170: 4b04 ldr r3, [pc, #16] @ (8016184 <vTaskSuspendAll+0x18>)
  52775. 8016172: 681b ldr r3, [r3, #0]
  52776. 8016174: 3301 adds r3, #1
  52777. 8016176: 4a03 ldr r2, [pc, #12] @ (8016184 <vTaskSuspendAll+0x18>)
  52778. 8016178: 6013 str r3, [r2, #0]
  52779. /* Enforces ordering for ports and optimised compilers that may otherwise place
  52780. the above increment elsewhere. */
  52781. portMEMORY_BARRIER();
  52782. }
  52783. 801617a: bf00 nop
  52784. 801617c: 46bd mov sp, r7
  52785. 801617e: f85d 7b04 ldr.w r7, [sp], #4
  52786. 8016182: 4770 bx lr
  52787. 8016184: 24002ef4 .word 0x24002ef4
  52788. 08016188 <xTaskResumeAll>:
  52789. #endif /* configUSE_TICKLESS_IDLE */
  52790. /*----------------------------------------------------------*/
  52791. BaseType_t xTaskResumeAll( void )
  52792. {
  52793. 8016188: b580 push {r7, lr}
  52794. 801618a: b084 sub sp, #16
  52795. 801618c: af00 add r7, sp, #0
  52796. TCB_t *pxTCB = NULL;
  52797. 801618e: 2300 movs r3, #0
  52798. 8016190: 60fb str r3, [r7, #12]
  52799. BaseType_t xAlreadyYielded = pdFALSE;
  52800. 8016192: 2300 movs r3, #0
  52801. 8016194: 60bb str r3, [r7, #8]
  52802. /* If uxSchedulerSuspended is zero then this function does not match a
  52803. previous call to vTaskSuspendAll(). */
  52804. configASSERT( uxSchedulerSuspended );
  52805. 8016196: 4b42 ldr r3, [pc, #264] @ (80162a0 <xTaskResumeAll+0x118>)
  52806. 8016198: 681b ldr r3, [r3, #0]
  52807. 801619a: 2b00 cmp r3, #0
  52808. 801619c: d10b bne.n 80161b6 <xTaskResumeAll+0x2e>
  52809. __asm volatile
  52810. 801619e: f04f 0350 mov.w r3, #80 @ 0x50
  52811. 80161a2: f383 8811 msr BASEPRI, r3
  52812. 80161a6: f3bf 8f6f isb sy
  52813. 80161aa: f3bf 8f4f dsb sy
  52814. 80161ae: 603b str r3, [r7, #0]
  52815. }
  52816. 80161b0: bf00 nop
  52817. 80161b2: bf00 nop
  52818. 80161b4: e7fd b.n 80161b2 <xTaskResumeAll+0x2a>
  52819. /* It is possible that an ISR caused a task to be removed from an event
  52820. list while the scheduler was suspended. If this was the case then the
  52821. removed task will have been added to the xPendingReadyList. Once the
  52822. scheduler has been resumed it is safe to move all the pending ready
  52823. tasks from this list into their appropriate ready list. */
  52824. taskENTER_CRITICAL();
  52825. 80161b6: f001 fd97 bl 8017ce8 <vPortEnterCritical>
  52826. {
  52827. --uxSchedulerSuspended;
  52828. 80161ba: 4b39 ldr r3, [pc, #228] @ (80162a0 <xTaskResumeAll+0x118>)
  52829. 80161bc: 681b ldr r3, [r3, #0]
  52830. 80161be: 3b01 subs r3, #1
  52831. 80161c0: 4a37 ldr r2, [pc, #220] @ (80162a0 <xTaskResumeAll+0x118>)
  52832. 80161c2: 6013 str r3, [r2, #0]
  52833. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52834. 80161c4: 4b36 ldr r3, [pc, #216] @ (80162a0 <xTaskResumeAll+0x118>)
  52835. 80161c6: 681b ldr r3, [r3, #0]
  52836. 80161c8: 2b00 cmp r3, #0
  52837. 80161ca: d162 bne.n 8016292 <xTaskResumeAll+0x10a>
  52838. {
  52839. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  52840. 80161cc: 4b35 ldr r3, [pc, #212] @ (80162a4 <xTaskResumeAll+0x11c>)
  52841. 80161ce: 681b ldr r3, [r3, #0]
  52842. 80161d0: 2b00 cmp r3, #0
  52843. 80161d2: d05e beq.n 8016292 <xTaskResumeAll+0x10a>
  52844. {
  52845. /* Move any readied tasks from the pending list into the
  52846. appropriate ready list. */
  52847. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52848. 80161d4: e02f b.n 8016236 <xTaskResumeAll+0xae>
  52849. {
  52850. 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. */
  52851. 80161d6: 4b34 ldr r3, [pc, #208] @ (80162a8 <xTaskResumeAll+0x120>)
  52852. 80161d8: 68db ldr r3, [r3, #12]
  52853. 80161da: 68db ldr r3, [r3, #12]
  52854. 80161dc: 60fb str r3, [r7, #12]
  52855. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  52856. 80161de: 68fb ldr r3, [r7, #12]
  52857. 80161e0: 3318 adds r3, #24
  52858. 80161e2: 4618 mov r0, r3
  52859. 80161e4: f7fe fbde bl 80149a4 <uxListRemove>
  52860. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52861. 80161e8: 68fb ldr r3, [r7, #12]
  52862. 80161ea: 3304 adds r3, #4
  52863. 80161ec: 4618 mov r0, r3
  52864. 80161ee: f7fe fbd9 bl 80149a4 <uxListRemove>
  52865. prvAddTaskToReadyList( pxTCB );
  52866. 80161f2: 68fb ldr r3, [r7, #12]
  52867. 80161f4: 6ada ldr r2, [r3, #44] @ 0x2c
  52868. 80161f6: 4b2d ldr r3, [pc, #180] @ (80162ac <xTaskResumeAll+0x124>)
  52869. 80161f8: 681b ldr r3, [r3, #0]
  52870. 80161fa: 429a cmp r2, r3
  52871. 80161fc: d903 bls.n 8016206 <xTaskResumeAll+0x7e>
  52872. 80161fe: 68fb ldr r3, [r7, #12]
  52873. 8016200: 6adb ldr r3, [r3, #44] @ 0x2c
  52874. 8016202: 4a2a ldr r2, [pc, #168] @ (80162ac <xTaskResumeAll+0x124>)
  52875. 8016204: 6013 str r3, [r2, #0]
  52876. 8016206: 68fb ldr r3, [r7, #12]
  52877. 8016208: 6ada ldr r2, [r3, #44] @ 0x2c
  52878. 801620a: 4613 mov r3, r2
  52879. 801620c: 009b lsls r3, r3, #2
  52880. 801620e: 4413 add r3, r2
  52881. 8016210: 009b lsls r3, r3, #2
  52882. 8016212: 4a27 ldr r2, [pc, #156] @ (80162b0 <xTaskResumeAll+0x128>)
  52883. 8016214: 441a add r2, r3
  52884. 8016216: 68fb ldr r3, [r7, #12]
  52885. 8016218: 3304 adds r3, #4
  52886. 801621a: 4619 mov r1, r3
  52887. 801621c: 4610 mov r0, r2
  52888. 801621e: f7fe fb64 bl 80148ea <vListInsertEnd>
  52889. /* If the moved task has a priority higher than the current
  52890. task then a yield must be performed. */
  52891. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52892. 8016222: 68fb ldr r3, [r7, #12]
  52893. 8016224: 6ada ldr r2, [r3, #44] @ 0x2c
  52894. 8016226: 4b23 ldr r3, [pc, #140] @ (80162b4 <xTaskResumeAll+0x12c>)
  52895. 8016228: 681b ldr r3, [r3, #0]
  52896. 801622a: 6adb ldr r3, [r3, #44] @ 0x2c
  52897. 801622c: 429a cmp r2, r3
  52898. 801622e: d302 bcc.n 8016236 <xTaskResumeAll+0xae>
  52899. {
  52900. xYieldPending = pdTRUE;
  52901. 8016230: 4b21 ldr r3, [pc, #132] @ (80162b8 <xTaskResumeAll+0x130>)
  52902. 8016232: 2201 movs r2, #1
  52903. 8016234: 601a str r2, [r3, #0]
  52904. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52905. 8016236: 4b1c ldr r3, [pc, #112] @ (80162a8 <xTaskResumeAll+0x120>)
  52906. 8016238: 681b ldr r3, [r3, #0]
  52907. 801623a: 2b00 cmp r3, #0
  52908. 801623c: d1cb bne.n 80161d6 <xTaskResumeAll+0x4e>
  52909. {
  52910. mtCOVERAGE_TEST_MARKER();
  52911. }
  52912. }
  52913. if( pxTCB != NULL )
  52914. 801623e: 68fb ldr r3, [r7, #12]
  52915. 8016240: 2b00 cmp r3, #0
  52916. 8016242: d001 beq.n 8016248 <xTaskResumeAll+0xc0>
  52917. which may have prevented the next unblock time from being
  52918. re-calculated, in which case re-calculate it now. Mainly
  52919. important for low power tickless implementations, where
  52920. this can prevent an unnecessary exit from low power
  52921. state. */
  52922. prvResetNextTaskUnblockTime();
  52923. 8016244: f000 fb9c bl 8016980 <prvResetNextTaskUnblockTime>
  52924. /* If any ticks occurred while the scheduler was suspended then
  52925. they should be processed now. This ensures the tick count does
  52926. not slip, and that any delayed tasks are resumed at the correct
  52927. time. */
  52928. {
  52929. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  52930. 8016248: 4b1c ldr r3, [pc, #112] @ (80162bc <xTaskResumeAll+0x134>)
  52931. 801624a: 681b ldr r3, [r3, #0]
  52932. 801624c: 607b str r3, [r7, #4]
  52933. if( xPendedCounts > ( TickType_t ) 0U )
  52934. 801624e: 687b ldr r3, [r7, #4]
  52935. 8016250: 2b00 cmp r3, #0
  52936. 8016252: d010 beq.n 8016276 <xTaskResumeAll+0xee>
  52937. {
  52938. do
  52939. {
  52940. if( xTaskIncrementTick() != pdFALSE )
  52941. 8016254: f000 f846 bl 80162e4 <xTaskIncrementTick>
  52942. 8016258: 4603 mov r3, r0
  52943. 801625a: 2b00 cmp r3, #0
  52944. 801625c: d002 beq.n 8016264 <xTaskResumeAll+0xdc>
  52945. {
  52946. xYieldPending = pdTRUE;
  52947. 801625e: 4b16 ldr r3, [pc, #88] @ (80162b8 <xTaskResumeAll+0x130>)
  52948. 8016260: 2201 movs r2, #1
  52949. 8016262: 601a str r2, [r3, #0]
  52950. }
  52951. else
  52952. {
  52953. mtCOVERAGE_TEST_MARKER();
  52954. }
  52955. --xPendedCounts;
  52956. 8016264: 687b ldr r3, [r7, #4]
  52957. 8016266: 3b01 subs r3, #1
  52958. 8016268: 607b str r3, [r7, #4]
  52959. } while( xPendedCounts > ( TickType_t ) 0U );
  52960. 801626a: 687b ldr r3, [r7, #4]
  52961. 801626c: 2b00 cmp r3, #0
  52962. 801626e: d1f1 bne.n 8016254 <xTaskResumeAll+0xcc>
  52963. xPendedTicks = 0;
  52964. 8016270: 4b12 ldr r3, [pc, #72] @ (80162bc <xTaskResumeAll+0x134>)
  52965. 8016272: 2200 movs r2, #0
  52966. 8016274: 601a str r2, [r3, #0]
  52967. {
  52968. mtCOVERAGE_TEST_MARKER();
  52969. }
  52970. }
  52971. if( xYieldPending != pdFALSE )
  52972. 8016276: 4b10 ldr r3, [pc, #64] @ (80162b8 <xTaskResumeAll+0x130>)
  52973. 8016278: 681b ldr r3, [r3, #0]
  52974. 801627a: 2b00 cmp r3, #0
  52975. 801627c: d009 beq.n 8016292 <xTaskResumeAll+0x10a>
  52976. {
  52977. #if( configUSE_PREEMPTION != 0 )
  52978. {
  52979. xAlreadyYielded = pdTRUE;
  52980. 801627e: 2301 movs r3, #1
  52981. 8016280: 60bb str r3, [r7, #8]
  52982. }
  52983. #endif
  52984. taskYIELD_IF_USING_PREEMPTION();
  52985. 8016282: 4b0f ldr r3, [pc, #60] @ (80162c0 <xTaskResumeAll+0x138>)
  52986. 8016284: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52987. 8016288: 601a str r2, [r3, #0]
  52988. 801628a: f3bf 8f4f dsb sy
  52989. 801628e: f3bf 8f6f isb sy
  52990. else
  52991. {
  52992. mtCOVERAGE_TEST_MARKER();
  52993. }
  52994. }
  52995. taskEXIT_CRITICAL();
  52996. 8016292: f001 fd5b bl 8017d4c <vPortExitCritical>
  52997. return xAlreadyYielded;
  52998. 8016296: 68bb ldr r3, [r7, #8]
  52999. }
  53000. 8016298: 4618 mov r0, r3
  53001. 801629a: 3710 adds r7, #16
  53002. 801629c: 46bd mov sp, r7
  53003. 801629e: bd80 pop {r7, pc}
  53004. 80162a0: 24002ef4 .word 0x24002ef4
  53005. 80162a4: 24002ecc .word 0x24002ecc
  53006. 80162a8: 24002e8c .word 0x24002e8c
  53007. 80162ac: 24002ed4 .word 0x24002ed4
  53008. 80162b0: 240029fc .word 0x240029fc
  53009. 80162b4: 240029f8 .word 0x240029f8
  53010. 80162b8: 24002ee0 .word 0x24002ee0
  53011. 80162bc: 24002edc .word 0x24002edc
  53012. 80162c0: e000ed04 .word 0xe000ed04
  53013. 080162c4 <xTaskGetTickCount>:
  53014. /*-----------------------------------------------------------*/
  53015. TickType_t xTaskGetTickCount( void )
  53016. {
  53017. 80162c4: b480 push {r7}
  53018. 80162c6: b083 sub sp, #12
  53019. 80162c8: af00 add r7, sp, #0
  53020. TickType_t xTicks;
  53021. /* Critical section required if running on a 16 bit processor. */
  53022. portTICK_TYPE_ENTER_CRITICAL();
  53023. {
  53024. xTicks = xTickCount;
  53025. 80162ca: 4b05 ldr r3, [pc, #20] @ (80162e0 <xTaskGetTickCount+0x1c>)
  53026. 80162cc: 681b ldr r3, [r3, #0]
  53027. 80162ce: 607b str r3, [r7, #4]
  53028. }
  53029. portTICK_TYPE_EXIT_CRITICAL();
  53030. return xTicks;
  53031. 80162d0: 687b ldr r3, [r7, #4]
  53032. }
  53033. 80162d2: 4618 mov r0, r3
  53034. 80162d4: 370c adds r7, #12
  53035. 80162d6: 46bd mov sp, r7
  53036. 80162d8: f85d 7b04 ldr.w r7, [sp], #4
  53037. 80162dc: 4770 bx lr
  53038. 80162de: bf00 nop
  53039. 80162e0: 24002ed0 .word 0x24002ed0
  53040. 080162e4 <xTaskIncrementTick>:
  53041. #endif /* INCLUDE_xTaskAbortDelay */
  53042. /*----------------------------------------------------------*/
  53043. BaseType_t xTaskIncrementTick( void )
  53044. {
  53045. 80162e4: b580 push {r7, lr}
  53046. 80162e6: b086 sub sp, #24
  53047. 80162e8: af00 add r7, sp, #0
  53048. TCB_t * pxTCB;
  53049. TickType_t xItemValue;
  53050. BaseType_t xSwitchRequired = pdFALSE;
  53051. 80162ea: 2300 movs r3, #0
  53052. 80162ec: 617b str r3, [r7, #20]
  53053. /* Called by the portable layer each time a tick interrupt occurs.
  53054. Increments the tick then checks to see if the new tick value will cause any
  53055. tasks to be unblocked. */
  53056. traceTASK_INCREMENT_TICK( xTickCount );
  53057. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53058. 80162ee: 4b4f ldr r3, [pc, #316] @ (801642c <xTaskIncrementTick+0x148>)
  53059. 80162f0: 681b ldr r3, [r3, #0]
  53060. 80162f2: 2b00 cmp r3, #0
  53061. 80162f4: f040 8090 bne.w 8016418 <xTaskIncrementTick+0x134>
  53062. {
  53063. /* Minor optimisation. The tick count cannot change in this
  53064. block. */
  53065. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  53066. 80162f8: 4b4d ldr r3, [pc, #308] @ (8016430 <xTaskIncrementTick+0x14c>)
  53067. 80162fa: 681b ldr r3, [r3, #0]
  53068. 80162fc: 3301 adds r3, #1
  53069. 80162fe: 613b str r3, [r7, #16]
  53070. /* Increment the RTOS tick, switching the delayed and overflowed
  53071. delayed lists if it wraps to 0. */
  53072. xTickCount = xConstTickCount;
  53073. 8016300: 4a4b ldr r2, [pc, #300] @ (8016430 <xTaskIncrementTick+0x14c>)
  53074. 8016302: 693b ldr r3, [r7, #16]
  53075. 8016304: 6013 str r3, [r2, #0]
  53076. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  53077. 8016306: 693b ldr r3, [r7, #16]
  53078. 8016308: 2b00 cmp r3, #0
  53079. 801630a: d121 bne.n 8016350 <xTaskIncrementTick+0x6c>
  53080. {
  53081. taskSWITCH_DELAYED_LISTS();
  53082. 801630c: 4b49 ldr r3, [pc, #292] @ (8016434 <xTaskIncrementTick+0x150>)
  53083. 801630e: 681b ldr r3, [r3, #0]
  53084. 8016310: 681b ldr r3, [r3, #0]
  53085. 8016312: 2b00 cmp r3, #0
  53086. 8016314: d00b beq.n 801632e <xTaskIncrementTick+0x4a>
  53087. __asm volatile
  53088. 8016316: f04f 0350 mov.w r3, #80 @ 0x50
  53089. 801631a: f383 8811 msr BASEPRI, r3
  53090. 801631e: f3bf 8f6f isb sy
  53091. 8016322: f3bf 8f4f dsb sy
  53092. 8016326: 603b str r3, [r7, #0]
  53093. }
  53094. 8016328: bf00 nop
  53095. 801632a: bf00 nop
  53096. 801632c: e7fd b.n 801632a <xTaskIncrementTick+0x46>
  53097. 801632e: 4b41 ldr r3, [pc, #260] @ (8016434 <xTaskIncrementTick+0x150>)
  53098. 8016330: 681b ldr r3, [r3, #0]
  53099. 8016332: 60fb str r3, [r7, #12]
  53100. 8016334: 4b40 ldr r3, [pc, #256] @ (8016438 <xTaskIncrementTick+0x154>)
  53101. 8016336: 681b ldr r3, [r3, #0]
  53102. 8016338: 4a3e ldr r2, [pc, #248] @ (8016434 <xTaskIncrementTick+0x150>)
  53103. 801633a: 6013 str r3, [r2, #0]
  53104. 801633c: 4a3e ldr r2, [pc, #248] @ (8016438 <xTaskIncrementTick+0x154>)
  53105. 801633e: 68fb ldr r3, [r7, #12]
  53106. 8016340: 6013 str r3, [r2, #0]
  53107. 8016342: 4b3e ldr r3, [pc, #248] @ (801643c <xTaskIncrementTick+0x158>)
  53108. 8016344: 681b ldr r3, [r3, #0]
  53109. 8016346: 3301 adds r3, #1
  53110. 8016348: 4a3c ldr r2, [pc, #240] @ (801643c <xTaskIncrementTick+0x158>)
  53111. 801634a: 6013 str r3, [r2, #0]
  53112. 801634c: f000 fb18 bl 8016980 <prvResetNextTaskUnblockTime>
  53113. /* See if this tick has made a timeout expire. Tasks are stored in
  53114. the queue in the order of their wake time - meaning once one task
  53115. has been found whose block time has not expired there is no need to
  53116. look any further down the list. */
  53117. if( xConstTickCount >= xNextTaskUnblockTime )
  53118. 8016350: 4b3b ldr r3, [pc, #236] @ (8016440 <xTaskIncrementTick+0x15c>)
  53119. 8016352: 681b ldr r3, [r3, #0]
  53120. 8016354: 693a ldr r2, [r7, #16]
  53121. 8016356: 429a cmp r2, r3
  53122. 8016358: d349 bcc.n 80163ee <xTaskIncrementTick+0x10a>
  53123. {
  53124. for( ;; )
  53125. {
  53126. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53127. 801635a: 4b36 ldr r3, [pc, #216] @ (8016434 <xTaskIncrementTick+0x150>)
  53128. 801635c: 681b ldr r3, [r3, #0]
  53129. 801635e: 681b ldr r3, [r3, #0]
  53130. 8016360: 2b00 cmp r3, #0
  53131. 8016362: d104 bne.n 801636e <xTaskIncrementTick+0x8a>
  53132. /* The delayed list is empty. Set xNextTaskUnblockTime
  53133. to the maximum possible value so it is extremely
  53134. unlikely that the
  53135. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  53136. next time through. */
  53137. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53138. 8016364: 4b36 ldr r3, [pc, #216] @ (8016440 <xTaskIncrementTick+0x15c>)
  53139. 8016366: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  53140. 801636a: 601a str r2, [r3, #0]
  53141. break;
  53142. 801636c: e03f b.n 80163ee <xTaskIncrementTick+0x10a>
  53143. {
  53144. /* The delayed list is not empty, get the value of the
  53145. item at the head of the delayed list. This is the time
  53146. at which the task at the head of the delayed list must
  53147. be removed from the Blocked state. */
  53148. 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. */
  53149. 801636e: 4b31 ldr r3, [pc, #196] @ (8016434 <xTaskIncrementTick+0x150>)
  53150. 8016370: 681b ldr r3, [r3, #0]
  53151. 8016372: 68db ldr r3, [r3, #12]
  53152. 8016374: 68db ldr r3, [r3, #12]
  53153. 8016376: 60bb str r3, [r7, #8]
  53154. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  53155. 8016378: 68bb ldr r3, [r7, #8]
  53156. 801637a: 685b ldr r3, [r3, #4]
  53157. 801637c: 607b str r3, [r7, #4]
  53158. if( xConstTickCount < xItemValue )
  53159. 801637e: 693a ldr r2, [r7, #16]
  53160. 8016380: 687b ldr r3, [r7, #4]
  53161. 8016382: 429a cmp r2, r3
  53162. 8016384: d203 bcs.n 801638e <xTaskIncrementTick+0xaa>
  53163. /* It is not time to unblock this item yet, but the
  53164. item value is the time at which the task at the head
  53165. of the blocked list must be removed from the Blocked
  53166. state - so record the item value in
  53167. xNextTaskUnblockTime. */
  53168. xNextTaskUnblockTime = xItemValue;
  53169. 8016386: 4a2e ldr r2, [pc, #184] @ (8016440 <xTaskIncrementTick+0x15c>)
  53170. 8016388: 687b ldr r3, [r7, #4]
  53171. 801638a: 6013 str r3, [r2, #0]
  53172. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  53173. 801638c: e02f b.n 80163ee <xTaskIncrementTick+0x10a>
  53174. {
  53175. mtCOVERAGE_TEST_MARKER();
  53176. }
  53177. /* It is time to remove the item from the Blocked state. */
  53178. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53179. 801638e: 68bb ldr r3, [r7, #8]
  53180. 8016390: 3304 adds r3, #4
  53181. 8016392: 4618 mov r0, r3
  53182. 8016394: f7fe fb06 bl 80149a4 <uxListRemove>
  53183. /* Is the task waiting on an event also? If so remove
  53184. it from the event list. */
  53185. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  53186. 8016398: 68bb ldr r3, [r7, #8]
  53187. 801639a: 6a9b ldr r3, [r3, #40] @ 0x28
  53188. 801639c: 2b00 cmp r3, #0
  53189. 801639e: d004 beq.n 80163aa <xTaskIncrementTick+0xc6>
  53190. {
  53191. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  53192. 80163a0: 68bb ldr r3, [r7, #8]
  53193. 80163a2: 3318 adds r3, #24
  53194. 80163a4: 4618 mov r0, r3
  53195. 80163a6: f7fe fafd bl 80149a4 <uxListRemove>
  53196. mtCOVERAGE_TEST_MARKER();
  53197. }
  53198. /* Place the unblocked task into the appropriate ready
  53199. list. */
  53200. prvAddTaskToReadyList( pxTCB );
  53201. 80163aa: 68bb ldr r3, [r7, #8]
  53202. 80163ac: 6ada ldr r2, [r3, #44] @ 0x2c
  53203. 80163ae: 4b25 ldr r3, [pc, #148] @ (8016444 <xTaskIncrementTick+0x160>)
  53204. 80163b0: 681b ldr r3, [r3, #0]
  53205. 80163b2: 429a cmp r2, r3
  53206. 80163b4: d903 bls.n 80163be <xTaskIncrementTick+0xda>
  53207. 80163b6: 68bb ldr r3, [r7, #8]
  53208. 80163b8: 6adb ldr r3, [r3, #44] @ 0x2c
  53209. 80163ba: 4a22 ldr r2, [pc, #136] @ (8016444 <xTaskIncrementTick+0x160>)
  53210. 80163bc: 6013 str r3, [r2, #0]
  53211. 80163be: 68bb ldr r3, [r7, #8]
  53212. 80163c0: 6ada ldr r2, [r3, #44] @ 0x2c
  53213. 80163c2: 4613 mov r3, r2
  53214. 80163c4: 009b lsls r3, r3, #2
  53215. 80163c6: 4413 add r3, r2
  53216. 80163c8: 009b lsls r3, r3, #2
  53217. 80163ca: 4a1f ldr r2, [pc, #124] @ (8016448 <xTaskIncrementTick+0x164>)
  53218. 80163cc: 441a add r2, r3
  53219. 80163ce: 68bb ldr r3, [r7, #8]
  53220. 80163d0: 3304 adds r3, #4
  53221. 80163d2: 4619 mov r1, r3
  53222. 80163d4: 4610 mov r0, r2
  53223. 80163d6: f7fe fa88 bl 80148ea <vListInsertEnd>
  53224. {
  53225. /* Preemption is on, but a context switch should
  53226. only be performed if the unblocked task has a
  53227. priority that is equal to or higher than the
  53228. currently executing task. */
  53229. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  53230. 80163da: 68bb ldr r3, [r7, #8]
  53231. 80163dc: 6ada ldr r2, [r3, #44] @ 0x2c
  53232. 80163de: 4b1b ldr r3, [pc, #108] @ (801644c <xTaskIncrementTick+0x168>)
  53233. 80163e0: 681b ldr r3, [r3, #0]
  53234. 80163e2: 6adb ldr r3, [r3, #44] @ 0x2c
  53235. 80163e4: 429a cmp r2, r3
  53236. 80163e6: d3b8 bcc.n 801635a <xTaskIncrementTick+0x76>
  53237. {
  53238. xSwitchRequired = pdTRUE;
  53239. 80163e8: 2301 movs r3, #1
  53240. 80163ea: 617b str r3, [r7, #20]
  53241. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53242. 80163ec: e7b5 b.n 801635a <xTaskIncrementTick+0x76>
  53243. /* Tasks of equal priority to the currently running task will share
  53244. processing time (time slice) if preemption is on, and the application
  53245. writer has not explicitly turned time slicing off. */
  53246. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  53247. {
  53248. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  53249. 80163ee: 4b17 ldr r3, [pc, #92] @ (801644c <xTaskIncrementTick+0x168>)
  53250. 80163f0: 681b ldr r3, [r3, #0]
  53251. 80163f2: 6ada ldr r2, [r3, #44] @ 0x2c
  53252. 80163f4: 4914 ldr r1, [pc, #80] @ (8016448 <xTaskIncrementTick+0x164>)
  53253. 80163f6: 4613 mov r3, r2
  53254. 80163f8: 009b lsls r3, r3, #2
  53255. 80163fa: 4413 add r3, r2
  53256. 80163fc: 009b lsls r3, r3, #2
  53257. 80163fe: 440b add r3, r1
  53258. 8016400: 681b ldr r3, [r3, #0]
  53259. 8016402: 2b01 cmp r3, #1
  53260. 8016404: d901 bls.n 801640a <xTaskIncrementTick+0x126>
  53261. {
  53262. xSwitchRequired = pdTRUE;
  53263. 8016406: 2301 movs r3, #1
  53264. 8016408: 617b str r3, [r7, #20]
  53265. }
  53266. #endif /* configUSE_TICK_HOOK */
  53267. #if ( configUSE_PREEMPTION == 1 )
  53268. {
  53269. if( xYieldPending != pdFALSE )
  53270. 801640a: 4b11 ldr r3, [pc, #68] @ (8016450 <xTaskIncrementTick+0x16c>)
  53271. 801640c: 681b ldr r3, [r3, #0]
  53272. 801640e: 2b00 cmp r3, #0
  53273. 8016410: d007 beq.n 8016422 <xTaskIncrementTick+0x13e>
  53274. {
  53275. xSwitchRequired = pdTRUE;
  53276. 8016412: 2301 movs r3, #1
  53277. 8016414: 617b str r3, [r7, #20]
  53278. 8016416: e004 b.n 8016422 <xTaskIncrementTick+0x13e>
  53279. }
  53280. #endif /* configUSE_PREEMPTION */
  53281. }
  53282. else
  53283. {
  53284. ++xPendedTicks;
  53285. 8016418: 4b0e ldr r3, [pc, #56] @ (8016454 <xTaskIncrementTick+0x170>)
  53286. 801641a: 681b ldr r3, [r3, #0]
  53287. 801641c: 3301 adds r3, #1
  53288. 801641e: 4a0d ldr r2, [pc, #52] @ (8016454 <xTaskIncrementTick+0x170>)
  53289. 8016420: 6013 str r3, [r2, #0]
  53290. vApplicationTickHook();
  53291. }
  53292. #endif
  53293. }
  53294. return xSwitchRequired;
  53295. 8016422: 697b ldr r3, [r7, #20]
  53296. }
  53297. 8016424: 4618 mov r0, r3
  53298. 8016426: 3718 adds r7, #24
  53299. 8016428: 46bd mov sp, r7
  53300. 801642a: bd80 pop {r7, pc}
  53301. 801642c: 24002ef4 .word 0x24002ef4
  53302. 8016430: 24002ed0 .word 0x24002ed0
  53303. 8016434: 24002e84 .word 0x24002e84
  53304. 8016438: 24002e88 .word 0x24002e88
  53305. 801643c: 24002ee4 .word 0x24002ee4
  53306. 8016440: 24002eec .word 0x24002eec
  53307. 8016444: 24002ed4 .word 0x24002ed4
  53308. 8016448: 240029fc .word 0x240029fc
  53309. 801644c: 240029f8 .word 0x240029f8
  53310. 8016450: 24002ee0 .word 0x24002ee0
  53311. 8016454: 24002edc .word 0x24002edc
  53312. 08016458 <vTaskSwitchContext>:
  53313. #endif /* configUSE_APPLICATION_TASK_TAG */
  53314. /*-----------------------------------------------------------*/
  53315. void vTaskSwitchContext( void )
  53316. {
  53317. 8016458: b580 push {r7, lr}
  53318. 801645a: b084 sub sp, #16
  53319. 801645c: af00 add r7, sp, #0
  53320. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  53321. 801645e: 4b32 ldr r3, [pc, #200] @ (8016528 <vTaskSwitchContext+0xd0>)
  53322. 8016460: 681b ldr r3, [r3, #0]
  53323. 8016462: 2b00 cmp r3, #0
  53324. 8016464: d003 beq.n 801646e <vTaskSwitchContext+0x16>
  53325. {
  53326. /* The scheduler is currently suspended - do not allow a context
  53327. switch. */
  53328. xYieldPending = pdTRUE;
  53329. 8016466: 4b31 ldr r3, [pc, #196] @ (801652c <vTaskSwitchContext+0xd4>)
  53330. 8016468: 2201 movs r2, #1
  53331. 801646a: 601a str r2, [r3, #0]
  53332. for additional information. */
  53333. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53334. }
  53335. #endif /* configUSE_NEWLIB_REENTRANT */
  53336. }
  53337. }
  53338. 801646c: e058 b.n 8016520 <vTaskSwitchContext+0xc8>
  53339. xYieldPending = pdFALSE;
  53340. 801646e: 4b2f ldr r3, [pc, #188] @ (801652c <vTaskSwitchContext+0xd4>)
  53341. 8016470: 2200 movs r2, #0
  53342. 8016472: 601a str r2, [r3, #0]
  53343. taskCHECK_FOR_STACK_OVERFLOW();
  53344. 8016474: 4b2e ldr r3, [pc, #184] @ (8016530 <vTaskSwitchContext+0xd8>)
  53345. 8016476: 681b ldr r3, [r3, #0]
  53346. 8016478: 681a ldr r2, [r3, #0]
  53347. 801647a: 4b2d ldr r3, [pc, #180] @ (8016530 <vTaskSwitchContext+0xd8>)
  53348. 801647c: 681b ldr r3, [r3, #0]
  53349. 801647e: 6b1b ldr r3, [r3, #48] @ 0x30
  53350. 8016480: 429a cmp r2, r3
  53351. 8016482: d808 bhi.n 8016496 <vTaskSwitchContext+0x3e>
  53352. 8016484: 4b2a ldr r3, [pc, #168] @ (8016530 <vTaskSwitchContext+0xd8>)
  53353. 8016486: 681a ldr r2, [r3, #0]
  53354. 8016488: 4b29 ldr r3, [pc, #164] @ (8016530 <vTaskSwitchContext+0xd8>)
  53355. 801648a: 681b ldr r3, [r3, #0]
  53356. 801648c: 3334 adds r3, #52 @ 0x34
  53357. 801648e: 4619 mov r1, r3
  53358. 8016490: 4610 mov r0, r2
  53359. 8016492: f7ea f89d bl 80005d0 <vApplicationStackOverflowHook>
  53360. 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. */
  53361. 8016496: 4b27 ldr r3, [pc, #156] @ (8016534 <vTaskSwitchContext+0xdc>)
  53362. 8016498: 681b ldr r3, [r3, #0]
  53363. 801649a: 60fb str r3, [r7, #12]
  53364. 801649c: e011 b.n 80164c2 <vTaskSwitchContext+0x6a>
  53365. 801649e: 68fb ldr r3, [r7, #12]
  53366. 80164a0: 2b00 cmp r3, #0
  53367. 80164a2: d10b bne.n 80164bc <vTaskSwitchContext+0x64>
  53368. __asm volatile
  53369. 80164a4: f04f 0350 mov.w r3, #80 @ 0x50
  53370. 80164a8: f383 8811 msr BASEPRI, r3
  53371. 80164ac: f3bf 8f6f isb sy
  53372. 80164b0: f3bf 8f4f dsb sy
  53373. 80164b4: 607b str r3, [r7, #4]
  53374. }
  53375. 80164b6: bf00 nop
  53376. 80164b8: bf00 nop
  53377. 80164ba: e7fd b.n 80164b8 <vTaskSwitchContext+0x60>
  53378. 80164bc: 68fb ldr r3, [r7, #12]
  53379. 80164be: 3b01 subs r3, #1
  53380. 80164c0: 60fb str r3, [r7, #12]
  53381. 80164c2: 491d ldr r1, [pc, #116] @ (8016538 <vTaskSwitchContext+0xe0>)
  53382. 80164c4: 68fa ldr r2, [r7, #12]
  53383. 80164c6: 4613 mov r3, r2
  53384. 80164c8: 009b lsls r3, r3, #2
  53385. 80164ca: 4413 add r3, r2
  53386. 80164cc: 009b lsls r3, r3, #2
  53387. 80164ce: 440b add r3, r1
  53388. 80164d0: 681b ldr r3, [r3, #0]
  53389. 80164d2: 2b00 cmp r3, #0
  53390. 80164d4: d0e3 beq.n 801649e <vTaskSwitchContext+0x46>
  53391. 80164d6: 68fa ldr r2, [r7, #12]
  53392. 80164d8: 4613 mov r3, r2
  53393. 80164da: 009b lsls r3, r3, #2
  53394. 80164dc: 4413 add r3, r2
  53395. 80164de: 009b lsls r3, r3, #2
  53396. 80164e0: 4a15 ldr r2, [pc, #84] @ (8016538 <vTaskSwitchContext+0xe0>)
  53397. 80164e2: 4413 add r3, r2
  53398. 80164e4: 60bb str r3, [r7, #8]
  53399. 80164e6: 68bb ldr r3, [r7, #8]
  53400. 80164e8: 685b ldr r3, [r3, #4]
  53401. 80164ea: 685a ldr r2, [r3, #4]
  53402. 80164ec: 68bb ldr r3, [r7, #8]
  53403. 80164ee: 605a str r2, [r3, #4]
  53404. 80164f0: 68bb ldr r3, [r7, #8]
  53405. 80164f2: 685a ldr r2, [r3, #4]
  53406. 80164f4: 68bb ldr r3, [r7, #8]
  53407. 80164f6: 3308 adds r3, #8
  53408. 80164f8: 429a cmp r2, r3
  53409. 80164fa: d104 bne.n 8016506 <vTaskSwitchContext+0xae>
  53410. 80164fc: 68bb ldr r3, [r7, #8]
  53411. 80164fe: 685b ldr r3, [r3, #4]
  53412. 8016500: 685a ldr r2, [r3, #4]
  53413. 8016502: 68bb ldr r3, [r7, #8]
  53414. 8016504: 605a str r2, [r3, #4]
  53415. 8016506: 68bb ldr r3, [r7, #8]
  53416. 8016508: 685b ldr r3, [r3, #4]
  53417. 801650a: 68db ldr r3, [r3, #12]
  53418. 801650c: 4a08 ldr r2, [pc, #32] @ (8016530 <vTaskSwitchContext+0xd8>)
  53419. 801650e: 6013 str r3, [r2, #0]
  53420. 8016510: 4a08 ldr r2, [pc, #32] @ (8016534 <vTaskSwitchContext+0xdc>)
  53421. 8016512: 68fb ldr r3, [r7, #12]
  53422. 8016514: 6013 str r3, [r2, #0]
  53423. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53424. 8016516: 4b06 ldr r3, [pc, #24] @ (8016530 <vTaskSwitchContext+0xd8>)
  53425. 8016518: 681b ldr r3, [r3, #0]
  53426. 801651a: 3354 adds r3, #84 @ 0x54
  53427. 801651c: 4a07 ldr r2, [pc, #28] @ (801653c <vTaskSwitchContext+0xe4>)
  53428. 801651e: 6013 str r3, [r2, #0]
  53429. }
  53430. 8016520: bf00 nop
  53431. 8016522: 3710 adds r7, #16
  53432. 8016524: 46bd mov sp, r7
  53433. 8016526: bd80 pop {r7, pc}
  53434. 8016528: 24002ef4 .word 0x24002ef4
  53435. 801652c: 24002ee0 .word 0x24002ee0
  53436. 8016530: 240029f8 .word 0x240029f8
  53437. 8016534: 24002ed4 .word 0x24002ed4
  53438. 8016538: 240029fc .word 0x240029fc
  53439. 801653c: 24000048 .word 0x24000048
  53440. 08016540 <vTaskPlaceOnEventList>:
  53441. /*-----------------------------------------------------------*/
  53442. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  53443. {
  53444. 8016540: b580 push {r7, lr}
  53445. 8016542: b084 sub sp, #16
  53446. 8016544: af00 add r7, sp, #0
  53447. 8016546: 6078 str r0, [r7, #4]
  53448. 8016548: 6039 str r1, [r7, #0]
  53449. configASSERT( pxEventList );
  53450. 801654a: 687b ldr r3, [r7, #4]
  53451. 801654c: 2b00 cmp r3, #0
  53452. 801654e: d10b bne.n 8016568 <vTaskPlaceOnEventList+0x28>
  53453. __asm volatile
  53454. 8016550: f04f 0350 mov.w r3, #80 @ 0x50
  53455. 8016554: f383 8811 msr BASEPRI, r3
  53456. 8016558: f3bf 8f6f isb sy
  53457. 801655c: f3bf 8f4f dsb sy
  53458. 8016560: 60fb str r3, [r7, #12]
  53459. }
  53460. 8016562: bf00 nop
  53461. 8016564: bf00 nop
  53462. 8016566: e7fd b.n 8016564 <vTaskPlaceOnEventList+0x24>
  53463. /* Place the event list item of the TCB in the appropriate event list.
  53464. This is placed in the list in priority order so the highest priority task
  53465. is the first to be woken by the event. The queue that contains the event
  53466. list is locked, preventing simultaneous access from interrupts. */
  53467. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53468. 8016568: 4b07 ldr r3, [pc, #28] @ (8016588 <vTaskPlaceOnEventList+0x48>)
  53469. 801656a: 681b ldr r3, [r3, #0]
  53470. 801656c: 3318 adds r3, #24
  53471. 801656e: 4619 mov r1, r3
  53472. 8016570: 6878 ldr r0, [r7, #4]
  53473. 8016572: f7fe f9de bl 8014932 <vListInsert>
  53474. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53475. 8016576: 2101 movs r1, #1
  53476. 8016578: 6838 ldr r0, [r7, #0]
  53477. 801657a: f000 fded bl 8017158 <prvAddCurrentTaskToDelayedList>
  53478. }
  53479. 801657e: bf00 nop
  53480. 8016580: 3710 adds r7, #16
  53481. 8016582: 46bd mov sp, r7
  53482. 8016584: bd80 pop {r7, pc}
  53483. 8016586: bf00 nop
  53484. 8016588: 240029f8 .word 0x240029f8
  53485. 0801658c <vTaskPlaceOnEventListRestricted>:
  53486. /*-----------------------------------------------------------*/
  53487. #if( configUSE_TIMERS == 1 )
  53488. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  53489. {
  53490. 801658c: b580 push {r7, lr}
  53491. 801658e: b086 sub sp, #24
  53492. 8016590: af00 add r7, sp, #0
  53493. 8016592: 60f8 str r0, [r7, #12]
  53494. 8016594: 60b9 str r1, [r7, #8]
  53495. 8016596: 607a str r2, [r7, #4]
  53496. configASSERT( pxEventList );
  53497. 8016598: 68fb ldr r3, [r7, #12]
  53498. 801659a: 2b00 cmp r3, #0
  53499. 801659c: d10b bne.n 80165b6 <vTaskPlaceOnEventListRestricted+0x2a>
  53500. __asm volatile
  53501. 801659e: f04f 0350 mov.w r3, #80 @ 0x50
  53502. 80165a2: f383 8811 msr BASEPRI, r3
  53503. 80165a6: f3bf 8f6f isb sy
  53504. 80165aa: f3bf 8f4f dsb sy
  53505. 80165ae: 617b str r3, [r7, #20]
  53506. }
  53507. 80165b0: bf00 nop
  53508. 80165b2: bf00 nop
  53509. 80165b4: e7fd b.n 80165b2 <vTaskPlaceOnEventListRestricted+0x26>
  53510. /* Place the event list item of the TCB in the appropriate event list.
  53511. In this case it is assume that this is the only task that is going to
  53512. be waiting on this event list, so the faster vListInsertEnd() function
  53513. can be used in place of vListInsert. */
  53514. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53515. 80165b6: 4b0a ldr r3, [pc, #40] @ (80165e0 <vTaskPlaceOnEventListRestricted+0x54>)
  53516. 80165b8: 681b ldr r3, [r3, #0]
  53517. 80165ba: 3318 adds r3, #24
  53518. 80165bc: 4619 mov r1, r3
  53519. 80165be: 68f8 ldr r0, [r7, #12]
  53520. 80165c0: f7fe f993 bl 80148ea <vListInsertEnd>
  53521. /* If the task should block indefinitely then set the block time to a
  53522. value that will be recognised as an indefinite delay inside the
  53523. prvAddCurrentTaskToDelayedList() function. */
  53524. if( xWaitIndefinitely != pdFALSE )
  53525. 80165c4: 687b ldr r3, [r7, #4]
  53526. 80165c6: 2b00 cmp r3, #0
  53527. 80165c8: d002 beq.n 80165d0 <vTaskPlaceOnEventListRestricted+0x44>
  53528. {
  53529. xTicksToWait = portMAX_DELAY;
  53530. 80165ca: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  53531. 80165ce: 60bb str r3, [r7, #8]
  53532. }
  53533. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  53534. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  53535. 80165d0: 6879 ldr r1, [r7, #4]
  53536. 80165d2: 68b8 ldr r0, [r7, #8]
  53537. 80165d4: f000 fdc0 bl 8017158 <prvAddCurrentTaskToDelayedList>
  53538. }
  53539. 80165d8: bf00 nop
  53540. 80165da: 3718 adds r7, #24
  53541. 80165dc: 46bd mov sp, r7
  53542. 80165de: bd80 pop {r7, pc}
  53543. 80165e0: 240029f8 .word 0x240029f8
  53544. 080165e4 <xTaskRemoveFromEventList>:
  53545. #endif /* configUSE_TIMERS */
  53546. /*-----------------------------------------------------------*/
  53547. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  53548. {
  53549. 80165e4: b580 push {r7, lr}
  53550. 80165e6: b086 sub sp, #24
  53551. 80165e8: af00 add r7, sp, #0
  53552. 80165ea: 6078 str r0, [r7, #4]
  53553. get called - the lock count on the queue will get modified instead. This
  53554. means exclusive access to the event list is guaranteed here.
  53555. This function assumes that a check has already been made to ensure that
  53556. pxEventList is not empty. */
  53557. 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. */
  53558. 80165ec: 687b ldr r3, [r7, #4]
  53559. 80165ee: 68db ldr r3, [r3, #12]
  53560. 80165f0: 68db ldr r3, [r3, #12]
  53561. 80165f2: 613b str r3, [r7, #16]
  53562. configASSERT( pxUnblockedTCB );
  53563. 80165f4: 693b ldr r3, [r7, #16]
  53564. 80165f6: 2b00 cmp r3, #0
  53565. 80165f8: d10b bne.n 8016612 <xTaskRemoveFromEventList+0x2e>
  53566. __asm volatile
  53567. 80165fa: f04f 0350 mov.w r3, #80 @ 0x50
  53568. 80165fe: f383 8811 msr BASEPRI, r3
  53569. 8016602: f3bf 8f6f isb sy
  53570. 8016606: f3bf 8f4f dsb sy
  53571. 801660a: 60fb str r3, [r7, #12]
  53572. }
  53573. 801660c: bf00 nop
  53574. 801660e: bf00 nop
  53575. 8016610: e7fd b.n 801660e <xTaskRemoveFromEventList+0x2a>
  53576. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  53577. 8016612: 693b ldr r3, [r7, #16]
  53578. 8016614: 3318 adds r3, #24
  53579. 8016616: 4618 mov r0, r3
  53580. 8016618: f7fe f9c4 bl 80149a4 <uxListRemove>
  53581. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53582. 801661c: 4b1d ldr r3, [pc, #116] @ (8016694 <xTaskRemoveFromEventList+0xb0>)
  53583. 801661e: 681b ldr r3, [r3, #0]
  53584. 8016620: 2b00 cmp r3, #0
  53585. 8016622: d11d bne.n 8016660 <xTaskRemoveFromEventList+0x7c>
  53586. {
  53587. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  53588. 8016624: 693b ldr r3, [r7, #16]
  53589. 8016626: 3304 adds r3, #4
  53590. 8016628: 4618 mov r0, r3
  53591. 801662a: f7fe f9bb bl 80149a4 <uxListRemove>
  53592. prvAddTaskToReadyList( pxUnblockedTCB );
  53593. 801662e: 693b ldr r3, [r7, #16]
  53594. 8016630: 6ada ldr r2, [r3, #44] @ 0x2c
  53595. 8016632: 4b19 ldr r3, [pc, #100] @ (8016698 <xTaskRemoveFromEventList+0xb4>)
  53596. 8016634: 681b ldr r3, [r3, #0]
  53597. 8016636: 429a cmp r2, r3
  53598. 8016638: d903 bls.n 8016642 <xTaskRemoveFromEventList+0x5e>
  53599. 801663a: 693b ldr r3, [r7, #16]
  53600. 801663c: 6adb ldr r3, [r3, #44] @ 0x2c
  53601. 801663e: 4a16 ldr r2, [pc, #88] @ (8016698 <xTaskRemoveFromEventList+0xb4>)
  53602. 8016640: 6013 str r3, [r2, #0]
  53603. 8016642: 693b ldr r3, [r7, #16]
  53604. 8016644: 6ada ldr r2, [r3, #44] @ 0x2c
  53605. 8016646: 4613 mov r3, r2
  53606. 8016648: 009b lsls r3, r3, #2
  53607. 801664a: 4413 add r3, r2
  53608. 801664c: 009b lsls r3, r3, #2
  53609. 801664e: 4a13 ldr r2, [pc, #76] @ (801669c <xTaskRemoveFromEventList+0xb8>)
  53610. 8016650: 441a add r2, r3
  53611. 8016652: 693b ldr r3, [r7, #16]
  53612. 8016654: 3304 adds r3, #4
  53613. 8016656: 4619 mov r1, r3
  53614. 8016658: 4610 mov r0, r2
  53615. 801665a: f7fe f946 bl 80148ea <vListInsertEnd>
  53616. 801665e: e005 b.n 801666c <xTaskRemoveFromEventList+0x88>
  53617. }
  53618. else
  53619. {
  53620. /* The delayed and ready lists cannot be accessed, so hold this task
  53621. pending until the scheduler is resumed. */
  53622. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  53623. 8016660: 693b ldr r3, [r7, #16]
  53624. 8016662: 3318 adds r3, #24
  53625. 8016664: 4619 mov r1, r3
  53626. 8016666: 480e ldr r0, [pc, #56] @ (80166a0 <xTaskRemoveFromEventList+0xbc>)
  53627. 8016668: f7fe f93f bl 80148ea <vListInsertEnd>
  53628. }
  53629. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  53630. 801666c: 693b ldr r3, [r7, #16]
  53631. 801666e: 6ada ldr r2, [r3, #44] @ 0x2c
  53632. 8016670: 4b0c ldr r3, [pc, #48] @ (80166a4 <xTaskRemoveFromEventList+0xc0>)
  53633. 8016672: 681b ldr r3, [r3, #0]
  53634. 8016674: 6adb ldr r3, [r3, #44] @ 0x2c
  53635. 8016676: 429a cmp r2, r3
  53636. 8016678: d905 bls.n 8016686 <xTaskRemoveFromEventList+0xa2>
  53637. {
  53638. /* Return true if the task removed from the event list has a higher
  53639. priority than the calling task. This allows the calling task to know if
  53640. it should force a context switch now. */
  53641. xReturn = pdTRUE;
  53642. 801667a: 2301 movs r3, #1
  53643. 801667c: 617b str r3, [r7, #20]
  53644. /* Mark that a yield is pending in case the user is not using the
  53645. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  53646. xYieldPending = pdTRUE;
  53647. 801667e: 4b0a ldr r3, [pc, #40] @ (80166a8 <xTaskRemoveFromEventList+0xc4>)
  53648. 8016680: 2201 movs r2, #1
  53649. 8016682: 601a str r2, [r3, #0]
  53650. 8016684: e001 b.n 801668a <xTaskRemoveFromEventList+0xa6>
  53651. }
  53652. else
  53653. {
  53654. xReturn = pdFALSE;
  53655. 8016686: 2300 movs r3, #0
  53656. 8016688: 617b str r3, [r7, #20]
  53657. }
  53658. return xReturn;
  53659. 801668a: 697b ldr r3, [r7, #20]
  53660. }
  53661. 801668c: 4618 mov r0, r3
  53662. 801668e: 3718 adds r7, #24
  53663. 8016690: 46bd mov sp, r7
  53664. 8016692: bd80 pop {r7, pc}
  53665. 8016694: 24002ef4 .word 0x24002ef4
  53666. 8016698: 24002ed4 .word 0x24002ed4
  53667. 801669c: 240029fc .word 0x240029fc
  53668. 80166a0: 24002e8c .word 0x24002e8c
  53669. 80166a4: 240029f8 .word 0x240029f8
  53670. 80166a8: 24002ee0 .word 0x24002ee0
  53671. 080166ac <vTaskSetTimeOutState>:
  53672. }
  53673. }
  53674. /*-----------------------------------------------------------*/
  53675. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  53676. {
  53677. 80166ac: b580 push {r7, lr}
  53678. 80166ae: b084 sub sp, #16
  53679. 80166b0: af00 add r7, sp, #0
  53680. 80166b2: 6078 str r0, [r7, #4]
  53681. configASSERT( pxTimeOut );
  53682. 80166b4: 687b ldr r3, [r7, #4]
  53683. 80166b6: 2b00 cmp r3, #0
  53684. 80166b8: d10b bne.n 80166d2 <vTaskSetTimeOutState+0x26>
  53685. __asm volatile
  53686. 80166ba: f04f 0350 mov.w r3, #80 @ 0x50
  53687. 80166be: f383 8811 msr BASEPRI, r3
  53688. 80166c2: f3bf 8f6f isb sy
  53689. 80166c6: f3bf 8f4f dsb sy
  53690. 80166ca: 60fb str r3, [r7, #12]
  53691. }
  53692. 80166cc: bf00 nop
  53693. 80166ce: bf00 nop
  53694. 80166d0: e7fd b.n 80166ce <vTaskSetTimeOutState+0x22>
  53695. taskENTER_CRITICAL();
  53696. 80166d2: f001 fb09 bl 8017ce8 <vPortEnterCritical>
  53697. {
  53698. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53699. 80166d6: 4b07 ldr r3, [pc, #28] @ (80166f4 <vTaskSetTimeOutState+0x48>)
  53700. 80166d8: 681a ldr r2, [r3, #0]
  53701. 80166da: 687b ldr r3, [r7, #4]
  53702. 80166dc: 601a str r2, [r3, #0]
  53703. pxTimeOut->xTimeOnEntering = xTickCount;
  53704. 80166de: 4b06 ldr r3, [pc, #24] @ (80166f8 <vTaskSetTimeOutState+0x4c>)
  53705. 80166e0: 681a ldr r2, [r3, #0]
  53706. 80166e2: 687b ldr r3, [r7, #4]
  53707. 80166e4: 605a str r2, [r3, #4]
  53708. }
  53709. taskEXIT_CRITICAL();
  53710. 80166e6: f001 fb31 bl 8017d4c <vPortExitCritical>
  53711. }
  53712. 80166ea: bf00 nop
  53713. 80166ec: 3710 adds r7, #16
  53714. 80166ee: 46bd mov sp, r7
  53715. 80166f0: bd80 pop {r7, pc}
  53716. 80166f2: bf00 nop
  53717. 80166f4: 24002ee4 .word 0x24002ee4
  53718. 80166f8: 24002ed0 .word 0x24002ed0
  53719. 080166fc <vTaskInternalSetTimeOutState>:
  53720. /*-----------------------------------------------------------*/
  53721. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  53722. {
  53723. 80166fc: b480 push {r7}
  53724. 80166fe: b083 sub sp, #12
  53725. 8016700: af00 add r7, sp, #0
  53726. 8016702: 6078 str r0, [r7, #4]
  53727. /* For internal use only as it does not use a critical section. */
  53728. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53729. 8016704: 4b06 ldr r3, [pc, #24] @ (8016720 <vTaskInternalSetTimeOutState+0x24>)
  53730. 8016706: 681a ldr r2, [r3, #0]
  53731. 8016708: 687b ldr r3, [r7, #4]
  53732. 801670a: 601a str r2, [r3, #0]
  53733. pxTimeOut->xTimeOnEntering = xTickCount;
  53734. 801670c: 4b05 ldr r3, [pc, #20] @ (8016724 <vTaskInternalSetTimeOutState+0x28>)
  53735. 801670e: 681a ldr r2, [r3, #0]
  53736. 8016710: 687b ldr r3, [r7, #4]
  53737. 8016712: 605a str r2, [r3, #4]
  53738. }
  53739. 8016714: bf00 nop
  53740. 8016716: 370c adds r7, #12
  53741. 8016718: 46bd mov sp, r7
  53742. 801671a: f85d 7b04 ldr.w r7, [sp], #4
  53743. 801671e: 4770 bx lr
  53744. 8016720: 24002ee4 .word 0x24002ee4
  53745. 8016724: 24002ed0 .word 0x24002ed0
  53746. 08016728 <xTaskCheckForTimeOut>:
  53747. /*-----------------------------------------------------------*/
  53748. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  53749. {
  53750. 8016728: b580 push {r7, lr}
  53751. 801672a: b088 sub sp, #32
  53752. 801672c: af00 add r7, sp, #0
  53753. 801672e: 6078 str r0, [r7, #4]
  53754. 8016730: 6039 str r1, [r7, #0]
  53755. BaseType_t xReturn;
  53756. configASSERT( pxTimeOut );
  53757. 8016732: 687b ldr r3, [r7, #4]
  53758. 8016734: 2b00 cmp r3, #0
  53759. 8016736: d10b bne.n 8016750 <xTaskCheckForTimeOut+0x28>
  53760. __asm volatile
  53761. 8016738: f04f 0350 mov.w r3, #80 @ 0x50
  53762. 801673c: f383 8811 msr BASEPRI, r3
  53763. 8016740: f3bf 8f6f isb sy
  53764. 8016744: f3bf 8f4f dsb sy
  53765. 8016748: 613b str r3, [r7, #16]
  53766. }
  53767. 801674a: bf00 nop
  53768. 801674c: bf00 nop
  53769. 801674e: e7fd b.n 801674c <xTaskCheckForTimeOut+0x24>
  53770. configASSERT( pxTicksToWait );
  53771. 8016750: 683b ldr r3, [r7, #0]
  53772. 8016752: 2b00 cmp r3, #0
  53773. 8016754: d10b bne.n 801676e <xTaskCheckForTimeOut+0x46>
  53774. __asm volatile
  53775. 8016756: f04f 0350 mov.w r3, #80 @ 0x50
  53776. 801675a: f383 8811 msr BASEPRI, r3
  53777. 801675e: f3bf 8f6f isb sy
  53778. 8016762: f3bf 8f4f dsb sy
  53779. 8016766: 60fb str r3, [r7, #12]
  53780. }
  53781. 8016768: bf00 nop
  53782. 801676a: bf00 nop
  53783. 801676c: e7fd b.n 801676a <xTaskCheckForTimeOut+0x42>
  53784. taskENTER_CRITICAL();
  53785. 801676e: f001 fabb bl 8017ce8 <vPortEnterCritical>
  53786. {
  53787. /* Minor optimisation. The tick count cannot change in this block. */
  53788. const TickType_t xConstTickCount = xTickCount;
  53789. 8016772: 4b1d ldr r3, [pc, #116] @ (80167e8 <xTaskCheckForTimeOut+0xc0>)
  53790. 8016774: 681b ldr r3, [r3, #0]
  53791. 8016776: 61bb str r3, [r7, #24]
  53792. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  53793. 8016778: 687b ldr r3, [r7, #4]
  53794. 801677a: 685b ldr r3, [r3, #4]
  53795. 801677c: 69ba ldr r2, [r7, #24]
  53796. 801677e: 1ad3 subs r3, r2, r3
  53797. 8016780: 617b str r3, [r7, #20]
  53798. }
  53799. else
  53800. #endif
  53801. #if ( INCLUDE_vTaskSuspend == 1 )
  53802. if( *pxTicksToWait == portMAX_DELAY )
  53803. 8016782: 683b ldr r3, [r7, #0]
  53804. 8016784: 681b ldr r3, [r3, #0]
  53805. 8016786: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53806. 801678a: d102 bne.n 8016792 <xTaskCheckForTimeOut+0x6a>
  53807. {
  53808. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  53809. specified is the maximum block time then the task should block
  53810. indefinitely, and therefore never time out. */
  53811. xReturn = pdFALSE;
  53812. 801678c: 2300 movs r3, #0
  53813. 801678e: 61fb str r3, [r7, #28]
  53814. 8016790: e023 b.n 80167da <xTaskCheckForTimeOut+0xb2>
  53815. }
  53816. else
  53817. #endif
  53818. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  53819. 8016792: 687b ldr r3, [r7, #4]
  53820. 8016794: 681a ldr r2, [r3, #0]
  53821. 8016796: 4b15 ldr r3, [pc, #84] @ (80167ec <xTaskCheckForTimeOut+0xc4>)
  53822. 8016798: 681b ldr r3, [r3, #0]
  53823. 801679a: 429a cmp r2, r3
  53824. 801679c: d007 beq.n 80167ae <xTaskCheckForTimeOut+0x86>
  53825. 801679e: 687b ldr r3, [r7, #4]
  53826. 80167a0: 685b ldr r3, [r3, #4]
  53827. 80167a2: 69ba ldr r2, [r7, #24]
  53828. 80167a4: 429a cmp r2, r3
  53829. 80167a6: d302 bcc.n 80167ae <xTaskCheckForTimeOut+0x86>
  53830. /* The tick count is greater than the time at which
  53831. vTaskSetTimeout() was called, but has also overflowed since
  53832. vTaskSetTimeOut() was called. It must have wrapped all the way
  53833. around and gone past again. This passed since vTaskSetTimeout()
  53834. was called. */
  53835. xReturn = pdTRUE;
  53836. 80167a8: 2301 movs r3, #1
  53837. 80167aa: 61fb str r3, [r7, #28]
  53838. 80167ac: e015 b.n 80167da <xTaskCheckForTimeOut+0xb2>
  53839. }
  53840. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  53841. 80167ae: 683b ldr r3, [r7, #0]
  53842. 80167b0: 681b ldr r3, [r3, #0]
  53843. 80167b2: 697a ldr r2, [r7, #20]
  53844. 80167b4: 429a cmp r2, r3
  53845. 80167b6: d20b bcs.n 80167d0 <xTaskCheckForTimeOut+0xa8>
  53846. {
  53847. /* Not a genuine timeout. Adjust parameters for time remaining. */
  53848. *pxTicksToWait -= xElapsedTime;
  53849. 80167b8: 683b ldr r3, [r7, #0]
  53850. 80167ba: 681a ldr r2, [r3, #0]
  53851. 80167bc: 697b ldr r3, [r7, #20]
  53852. 80167be: 1ad2 subs r2, r2, r3
  53853. 80167c0: 683b ldr r3, [r7, #0]
  53854. 80167c2: 601a str r2, [r3, #0]
  53855. vTaskInternalSetTimeOutState( pxTimeOut );
  53856. 80167c4: 6878 ldr r0, [r7, #4]
  53857. 80167c6: f7ff ff99 bl 80166fc <vTaskInternalSetTimeOutState>
  53858. xReturn = pdFALSE;
  53859. 80167ca: 2300 movs r3, #0
  53860. 80167cc: 61fb str r3, [r7, #28]
  53861. 80167ce: e004 b.n 80167da <xTaskCheckForTimeOut+0xb2>
  53862. }
  53863. else
  53864. {
  53865. *pxTicksToWait = 0;
  53866. 80167d0: 683b ldr r3, [r7, #0]
  53867. 80167d2: 2200 movs r2, #0
  53868. 80167d4: 601a str r2, [r3, #0]
  53869. xReturn = pdTRUE;
  53870. 80167d6: 2301 movs r3, #1
  53871. 80167d8: 61fb str r3, [r7, #28]
  53872. }
  53873. }
  53874. taskEXIT_CRITICAL();
  53875. 80167da: f001 fab7 bl 8017d4c <vPortExitCritical>
  53876. return xReturn;
  53877. 80167de: 69fb ldr r3, [r7, #28]
  53878. }
  53879. 80167e0: 4618 mov r0, r3
  53880. 80167e2: 3720 adds r7, #32
  53881. 80167e4: 46bd mov sp, r7
  53882. 80167e6: bd80 pop {r7, pc}
  53883. 80167e8: 24002ed0 .word 0x24002ed0
  53884. 80167ec: 24002ee4 .word 0x24002ee4
  53885. 080167f0 <vTaskMissedYield>:
  53886. /*-----------------------------------------------------------*/
  53887. void vTaskMissedYield( void )
  53888. {
  53889. 80167f0: b480 push {r7}
  53890. 80167f2: af00 add r7, sp, #0
  53891. xYieldPending = pdTRUE;
  53892. 80167f4: 4b03 ldr r3, [pc, #12] @ (8016804 <vTaskMissedYield+0x14>)
  53893. 80167f6: 2201 movs r2, #1
  53894. 80167f8: 601a str r2, [r3, #0]
  53895. }
  53896. 80167fa: bf00 nop
  53897. 80167fc: 46bd mov sp, r7
  53898. 80167fe: f85d 7b04 ldr.w r7, [sp], #4
  53899. 8016802: 4770 bx lr
  53900. 8016804: 24002ee0 .word 0x24002ee0
  53901. 08016808 <prvIdleTask>:
  53902. *
  53903. * void prvIdleTask( void *pvParameters );
  53904. *
  53905. */
  53906. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  53907. {
  53908. 8016808: b580 push {r7, lr}
  53909. 801680a: b082 sub sp, #8
  53910. 801680c: af00 add r7, sp, #0
  53911. 801680e: 6078 str r0, [r7, #4]
  53912. for( ;; )
  53913. {
  53914. /* See if any tasks have deleted themselves - if so then the idle task
  53915. is responsible for freeing the deleted task's TCB and stack. */
  53916. prvCheckTasksWaitingTermination();
  53917. 8016810: f000 f852 bl 80168b8 <prvCheckTasksWaitingTermination>
  53918. A critical region is not required here as we are just reading from
  53919. the list, and an occasional incorrect value will not matter. If
  53920. the ready list at the idle priority contains more than one task
  53921. then a task other than the idle task is ready to execute. */
  53922. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  53923. 8016814: 4b06 ldr r3, [pc, #24] @ (8016830 <prvIdleTask+0x28>)
  53924. 8016816: 681b ldr r3, [r3, #0]
  53925. 8016818: 2b01 cmp r3, #1
  53926. 801681a: d9f9 bls.n 8016810 <prvIdleTask+0x8>
  53927. {
  53928. taskYIELD();
  53929. 801681c: 4b05 ldr r3, [pc, #20] @ (8016834 <prvIdleTask+0x2c>)
  53930. 801681e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53931. 8016822: 601a str r2, [r3, #0]
  53932. 8016824: f3bf 8f4f dsb sy
  53933. 8016828: f3bf 8f6f isb sy
  53934. prvCheckTasksWaitingTermination();
  53935. 801682c: e7f0 b.n 8016810 <prvIdleTask+0x8>
  53936. 801682e: bf00 nop
  53937. 8016830: 240029fc .word 0x240029fc
  53938. 8016834: e000ed04 .word 0xe000ed04
  53939. 08016838 <prvInitialiseTaskLists>:
  53940. #endif /* portUSING_MPU_WRAPPERS */
  53941. /*-----------------------------------------------------------*/
  53942. static void prvInitialiseTaskLists( void )
  53943. {
  53944. 8016838: b580 push {r7, lr}
  53945. 801683a: b082 sub sp, #8
  53946. 801683c: af00 add r7, sp, #0
  53947. UBaseType_t uxPriority;
  53948. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53949. 801683e: 2300 movs r3, #0
  53950. 8016840: 607b str r3, [r7, #4]
  53951. 8016842: e00c b.n 801685e <prvInitialiseTaskLists+0x26>
  53952. {
  53953. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  53954. 8016844: 687a ldr r2, [r7, #4]
  53955. 8016846: 4613 mov r3, r2
  53956. 8016848: 009b lsls r3, r3, #2
  53957. 801684a: 4413 add r3, r2
  53958. 801684c: 009b lsls r3, r3, #2
  53959. 801684e: 4a12 ldr r2, [pc, #72] @ (8016898 <prvInitialiseTaskLists+0x60>)
  53960. 8016850: 4413 add r3, r2
  53961. 8016852: 4618 mov r0, r3
  53962. 8016854: f7fe f81c bl 8014890 <vListInitialise>
  53963. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53964. 8016858: 687b ldr r3, [r7, #4]
  53965. 801685a: 3301 adds r3, #1
  53966. 801685c: 607b str r3, [r7, #4]
  53967. 801685e: 687b ldr r3, [r7, #4]
  53968. 8016860: 2b37 cmp r3, #55 @ 0x37
  53969. 8016862: d9ef bls.n 8016844 <prvInitialiseTaskLists+0xc>
  53970. }
  53971. vListInitialise( &xDelayedTaskList1 );
  53972. 8016864: 480d ldr r0, [pc, #52] @ (801689c <prvInitialiseTaskLists+0x64>)
  53973. 8016866: f7fe f813 bl 8014890 <vListInitialise>
  53974. vListInitialise( &xDelayedTaskList2 );
  53975. 801686a: 480d ldr r0, [pc, #52] @ (80168a0 <prvInitialiseTaskLists+0x68>)
  53976. 801686c: f7fe f810 bl 8014890 <vListInitialise>
  53977. vListInitialise( &xPendingReadyList );
  53978. 8016870: 480c ldr r0, [pc, #48] @ (80168a4 <prvInitialiseTaskLists+0x6c>)
  53979. 8016872: f7fe f80d bl 8014890 <vListInitialise>
  53980. #if ( INCLUDE_vTaskDelete == 1 )
  53981. {
  53982. vListInitialise( &xTasksWaitingTermination );
  53983. 8016876: 480c ldr r0, [pc, #48] @ (80168a8 <prvInitialiseTaskLists+0x70>)
  53984. 8016878: f7fe f80a bl 8014890 <vListInitialise>
  53985. }
  53986. #endif /* INCLUDE_vTaskDelete */
  53987. #if ( INCLUDE_vTaskSuspend == 1 )
  53988. {
  53989. vListInitialise( &xSuspendedTaskList );
  53990. 801687c: 480b ldr r0, [pc, #44] @ (80168ac <prvInitialiseTaskLists+0x74>)
  53991. 801687e: f7fe f807 bl 8014890 <vListInitialise>
  53992. }
  53993. #endif /* INCLUDE_vTaskSuspend */
  53994. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  53995. using list2. */
  53996. pxDelayedTaskList = &xDelayedTaskList1;
  53997. 8016882: 4b0b ldr r3, [pc, #44] @ (80168b0 <prvInitialiseTaskLists+0x78>)
  53998. 8016884: 4a05 ldr r2, [pc, #20] @ (801689c <prvInitialiseTaskLists+0x64>)
  53999. 8016886: 601a str r2, [r3, #0]
  54000. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  54001. 8016888: 4b0a ldr r3, [pc, #40] @ (80168b4 <prvInitialiseTaskLists+0x7c>)
  54002. 801688a: 4a05 ldr r2, [pc, #20] @ (80168a0 <prvInitialiseTaskLists+0x68>)
  54003. 801688c: 601a str r2, [r3, #0]
  54004. }
  54005. 801688e: bf00 nop
  54006. 8016890: 3708 adds r7, #8
  54007. 8016892: 46bd mov sp, r7
  54008. 8016894: bd80 pop {r7, pc}
  54009. 8016896: bf00 nop
  54010. 8016898: 240029fc .word 0x240029fc
  54011. 801689c: 24002e5c .word 0x24002e5c
  54012. 80168a0: 24002e70 .word 0x24002e70
  54013. 80168a4: 24002e8c .word 0x24002e8c
  54014. 80168a8: 24002ea0 .word 0x24002ea0
  54015. 80168ac: 24002eb8 .word 0x24002eb8
  54016. 80168b0: 24002e84 .word 0x24002e84
  54017. 80168b4: 24002e88 .word 0x24002e88
  54018. 080168b8 <prvCheckTasksWaitingTermination>:
  54019. /*-----------------------------------------------------------*/
  54020. static void prvCheckTasksWaitingTermination( void )
  54021. {
  54022. 80168b8: b580 push {r7, lr}
  54023. 80168ba: b082 sub sp, #8
  54024. 80168bc: af00 add r7, sp, #0
  54025. {
  54026. TCB_t *pxTCB;
  54027. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  54028. being called too often in the idle task. */
  54029. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54030. 80168be: e019 b.n 80168f4 <prvCheckTasksWaitingTermination+0x3c>
  54031. {
  54032. taskENTER_CRITICAL();
  54033. 80168c0: f001 fa12 bl 8017ce8 <vPortEnterCritical>
  54034. {
  54035. 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. */
  54036. 80168c4: 4b10 ldr r3, [pc, #64] @ (8016908 <prvCheckTasksWaitingTermination+0x50>)
  54037. 80168c6: 68db ldr r3, [r3, #12]
  54038. 80168c8: 68db ldr r3, [r3, #12]
  54039. 80168ca: 607b str r3, [r7, #4]
  54040. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54041. 80168cc: 687b ldr r3, [r7, #4]
  54042. 80168ce: 3304 adds r3, #4
  54043. 80168d0: 4618 mov r0, r3
  54044. 80168d2: f7fe f867 bl 80149a4 <uxListRemove>
  54045. --uxCurrentNumberOfTasks;
  54046. 80168d6: 4b0d ldr r3, [pc, #52] @ (801690c <prvCheckTasksWaitingTermination+0x54>)
  54047. 80168d8: 681b ldr r3, [r3, #0]
  54048. 80168da: 3b01 subs r3, #1
  54049. 80168dc: 4a0b ldr r2, [pc, #44] @ (801690c <prvCheckTasksWaitingTermination+0x54>)
  54050. 80168de: 6013 str r3, [r2, #0]
  54051. --uxDeletedTasksWaitingCleanUp;
  54052. 80168e0: 4b0b ldr r3, [pc, #44] @ (8016910 <prvCheckTasksWaitingTermination+0x58>)
  54053. 80168e2: 681b ldr r3, [r3, #0]
  54054. 80168e4: 3b01 subs r3, #1
  54055. 80168e6: 4a0a ldr r2, [pc, #40] @ (8016910 <prvCheckTasksWaitingTermination+0x58>)
  54056. 80168e8: 6013 str r3, [r2, #0]
  54057. }
  54058. taskEXIT_CRITICAL();
  54059. 80168ea: f001 fa2f bl 8017d4c <vPortExitCritical>
  54060. prvDeleteTCB( pxTCB );
  54061. 80168ee: 6878 ldr r0, [r7, #4]
  54062. 80168f0: f000 f810 bl 8016914 <prvDeleteTCB>
  54063. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54064. 80168f4: 4b06 ldr r3, [pc, #24] @ (8016910 <prvCheckTasksWaitingTermination+0x58>)
  54065. 80168f6: 681b ldr r3, [r3, #0]
  54066. 80168f8: 2b00 cmp r3, #0
  54067. 80168fa: d1e1 bne.n 80168c0 <prvCheckTasksWaitingTermination+0x8>
  54068. }
  54069. }
  54070. #endif /* INCLUDE_vTaskDelete */
  54071. }
  54072. 80168fc: bf00 nop
  54073. 80168fe: bf00 nop
  54074. 8016900: 3708 adds r7, #8
  54075. 8016902: 46bd mov sp, r7
  54076. 8016904: bd80 pop {r7, pc}
  54077. 8016906: bf00 nop
  54078. 8016908: 24002ea0 .word 0x24002ea0
  54079. 801690c: 24002ecc .word 0x24002ecc
  54080. 8016910: 24002eb4 .word 0x24002eb4
  54081. 08016914 <prvDeleteTCB>:
  54082. /*-----------------------------------------------------------*/
  54083. #if ( INCLUDE_vTaskDelete == 1 )
  54084. static void prvDeleteTCB( TCB_t *pxTCB )
  54085. {
  54086. 8016914: b580 push {r7, lr}
  54087. 8016916: b084 sub sp, #16
  54088. 8016918: af00 add r7, sp, #0
  54089. 801691a: 6078 str r0, [r7, #4]
  54090. to the task to free any memory allocated at the application level.
  54091. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  54092. for additional information. */
  54093. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  54094. {
  54095. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  54096. 801691c: 687b ldr r3, [r7, #4]
  54097. 801691e: 3354 adds r3, #84 @ 0x54
  54098. 8016920: 4618 mov r0, r3
  54099. 8016922: f001 fcf9 bl 8018318 <_reclaim_reent>
  54100. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  54101. {
  54102. /* The task could have been allocated statically or dynamically, so
  54103. check what was statically allocated before trying to free the
  54104. memory. */
  54105. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  54106. 8016926: 687b ldr r3, [r7, #4]
  54107. 8016928: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54108. 801692c: 2b00 cmp r3, #0
  54109. 801692e: d108 bne.n 8016942 <prvDeleteTCB+0x2e>
  54110. {
  54111. /* Both the stack and TCB were allocated dynamically, so both
  54112. must be freed. */
  54113. vPortFree( pxTCB->pxStack );
  54114. 8016930: 687b ldr r3, [r7, #4]
  54115. 8016932: 6b1b ldr r3, [r3, #48] @ 0x30
  54116. 8016934: 4618 mov r0, r3
  54117. 8016936: f001 fbc7 bl 80180c8 <vPortFree>
  54118. vPortFree( pxTCB );
  54119. 801693a: 6878 ldr r0, [r7, #4]
  54120. 801693c: f001 fbc4 bl 80180c8 <vPortFree>
  54121. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54122. mtCOVERAGE_TEST_MARKER();
  54123. }
  54124. }
  54125. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  54126. }
  54127. 8016940: e019 b.n 8016976 <prvDeleteTCB+0x62>
  54128. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  54129. 8016942: 687b ldr r3, [r7, #4]
  54130. 8016944: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54131. 8016948: 2b01 cmp r3, #1
  54132. 801694a: d103 bne.n 8016954 <prvDeleteTCB+0x40>
  54133. vPortFree( pxTCB );
  54134. 801694c: 6878 ldr r0, [r7, #4]
  54135. 801694e: f001 fbbb bl 80180c8 <vPortFree>
  54136. }
  54137. 8016952: e010 b.n 8016976 <prvDeleteTCB+0x62>
  54138. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54139. 8016954: 687b ldr r3, [r7, #4]
  54140. 8016956: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54141. 801695a: 2b02 cmp r3, #2
  54142. 801695c: d00b beq.n 8016976 <prvDeleteTCB+0x62>
  54143. __asm volatile
  54144. 801695e: f04f 0350 mov.w r3, #80 @ 0x50
  54145. 8016962: f383 8811 msr BASEPRI, r3
  54146. 8016966: f3bf 8f6f isb sy
  54147. 801696a: f3bf 8f4f dsb sy
  54148. 801696e: 60fb str r3, [r7, #12]
  54149. }
  54150. 8016970: bf00 nop
  54151. 8016972: bf00 nop
  54152. 8016974: e7fd b.n 8016972 <prvDeleteTCB+0x5e>
  54153. }
  54154. 8016976: bf00 nop
  54155. 8016978: 3710 adds r7, #16
  54156. 801697a: 46bd mov sp, r7
  54157. 801697c: bd80 pop {r7, pc}
  54158. ...
  54159. 08016980 <prvResetNextTaskUnblockTime>:
  54160. #endif /* INCLUDE_vTaskDelete */
  54161. /*-----------------------------------------------------------*/
  54162. static void prvResetNextTaskUnblockTime( void )
  54163. {
  54164. 8016980: b480 push {r7}
  54165. 8016982: b083 sub sp, #12
  54166. 8016984: af00 add r7, sp, #0
  54167. TCB_t *pxTCB;
  54168. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  54169. 8016986: 4b0c ldr r3, [pc, #48] @ (80169b8 <prvResetNextTaskUnblockTime+0x38>)
  54170. 8016988: 681b ldr r3, [r3, #0]
  54171. 801698a: 681b ldr r3, [r3, #0]
  54172. 801698c: 2b00 cmp r3, #0
  54173. 801698e: d104 bne.n 801699a <prvResetNextTaskUnblockTime+0x1a>
  54174. {
  54175. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  54176. the maximum possible value so it is extremely unlikely that the
  54177. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  54178. there is an item in the delayed list. */
  54179. xNextTaskUnblockTime = portMAX_DELAY;
  54180. 8016990: 4b0a ldr r3, [pc, #40] @ (80169bc <prvResetNextTaskUnblockTime+0x3c>)
  54181. 8016992: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  54182. 8016996: 601a str r2, [r3, #0]
  54183. which the task at the head of the delayed list should be removed
  54184. from the Blocked state. */
  54185. ( 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. */
  54186. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54187. }
  54188. }
  54189. 8016998: e008 b.n 80169ac <prvResetNextTaskUnblockTime+0x2c>
  54190. ( 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. */
  54191. 801699a: 4b07 ldr r3, [pc, #28] @ (80169b8 <prvResetNextTaskUnblockTime+0x38>)
  54192. 801699c: 681b ldr r3, [r3, #0]
  54193. 801699e: 68db ldr r3, [r3, #12]
  54194. 80169a0: 68db ldr r3, [r3, #12]
  54195. 80169a2: 607b str r3, [r7, #4]
  54196. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54197. 80169a4: 687b ldr r3, [r7, #4]
  54198. 80169a6: 685b ldr r3, [r3, #4]
  54199. 80169a8: 4a04 ldr r2, [pc, #16] @ (80169bc <prvResetNextTaskUnblockTime+0x3c>)
  54200. 80169aa: 6013 str r3, [r2, #0]
  54201. }
  54202. 80169ac: bf00 nop
  54203. 80169ae: 370c adds r7, #12
  54204. 80169b0: 46bd mov sp, r7
  54205. 80169b2: f85d 7b04 ldr.w r7, [sp], #4
  54206. 80169b6: 4770 bx lr
  54207. 80169b8: 24002e84 .word 0x24002e84
  54208. 80169bc: 24002eec .word 0x24002eec
  54209. 080169c0 <xTaskGetCurrentTaskHandle>:
  54210. /*-----------------------------------------------------------*/
  54211. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  54212. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  54213. {
  54214. 80169c0: b480 push {r7}
  54215. 80169c2: b083 sub sp, #12
  54216. 80169c4: af00 add r7, sp, #0
  54217. TaskHandle_t xReturn;
  54218. /* A critical section is not required as this is not called from
  54219. an interrupt and the current TCB will always be the same for any
  54220. individual execution thread. */
  54221. xReturn = pxCurrentTCB;
  54222. 80169c6: 4b05 ldr r3, [pc, #20] @ (80169dc <xTaskGetCurrentTaskHandle+0x1c>)
  54223. 80169c8: 681b ldr r3, [r3, #0]
  54224. 80169ca: 607b str r3, [r7, #4]
  54225. return xReturn;
  54226. 80169cc: 687b ldr r3, [r7, #4]
  54227. }
  54228. 80169ce: 4618 mov r0, r3
  54229. 80169d0: 370c adds r7, #12
  54230. 80169d2: 46bd mov sp, r7
  54231. 80169d4: f85d 7b04 ldr.w r7, [sp], #4
  54232. 80169d8: 4770 bx lr
  54233. 80169da: bf00 nop
  54234. 80169dc: 240029f8 .word 0x240029f8
  54235. 080169e0 <xTaskGetSchedulerState>:
  54236. /*-----------------------------------------------------------*/
  54237. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  54238. BaseType_t xTaskGetSchedulerState( void )
  54239. {
  54240. 80169e0: b480 push {r7}
  54241. 80169e2: b083 sub sp, #12
  54242. 80169e4: af00 add r7, sp, #0
  54243. BaseType_t xReturn;
  54244. if( xSchedulerRunning == pdFALSE )
  54245. 80169e6: 4b0b ldr r3, [pc, #44] @ (8016a14 <xTaskGetSchedulerState+0x34>)
  54246. 80169e8: 681b ldr r3, [r3, #0]
  54247. 80169ea: 2b00 cmp r3, #0
  54248. 80169ec: d102 bne.n 80169f4 <xTaskGetSchedulerState+0x14>
  54249. {
  54250. xReturn = taskSCHEDULER_NOT_STARTED;
  54251. 80169ee: 2301 movs r3, #1
  54252. 80169f0: 607b str r3, [r7, #4]
  54253. 80169f2: e008 b.n 8016a06 <xTaskGetSchedulerState+0x26>
  54254. }
  54255. else
  54256. {
  54257. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  54258. 80169f4: 4b08 ldr r3, [pc, #32] @ (8016a18 <xTaskGetSchedulerState+0x38>)
  54259. 80169f6: 681b ldr r3, [r3, #0]
  54260. 80169f8: 2b00 cmp r3, #0
  54261. 80169fa: d102 bne.n 8016a02 <xTaskGetSchedulerState+0x22>
  54262. {
  54263. xReturn = taskSCHEDULER_RUNNING;
  54264. 80169fc: 2302 movs r3, #2
  54265. 80169fe: 607b str r3, [r7, #4]
  54266. 8016a00: e001 b.n 8016a06 <xTaskGetSchedulerState+0x26>
  54267. }
  54268. else
  54269. {
  54270. xReturn = taskSCHEDULER_SUSPENDED;
  54271. 8016a02: 2300 movs r3, #0
  54272. 8016a04: 607b str r3, [r7, #4]
  54273. }
  54274. }
  54275. return xReturn;
  54276. 8016a06: 687b ldr r3, [r7, #4]
  54277. }
  54278. 8016a08: 4618 mov r0, r3
  54279. 8016a0a: 370c adds r7, #12
  54280. 8016a0c: 46bd mov sp, r7
  54281. 8016a0e: f85d 7b04 ldr.w r7, [sp], #4
  54282. 8016a12: 4770 bx lr
  54283. 8016a14: 24002ed8 .word 0x24002ed8
  54284. 8016a18: 24002ef4 .word 0x24002ef4
  54285. 08016a1c <xTaskPriorityInherit>:
  54286. /*-----------------------------------------------------------*/
  54287. #if ( configUSE_MUTEXES == 1 )
  54288. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  54289. {
  54290. 8016a1c: b580 push {r7, lr}
  54291. 8016a1e: b084 sub sp, #16
  54292. 8016a20: af00 add r7, sp, #0
  54293. 8016a22: 6078 str r0, [r7, #4]
  54294. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  54295. 8016a24: 687b ldr r3, [r7, #4]
  54296. 8016a26: 60bb str r3, [r7, #8]
  54297. BaseType_t xReturn = pdFALSE;
  54298. 8016a28: 2300 movs r3, #0
  54299. 8016a2a: 60fb str r3, [r7, #12]
  54300. /* If the mutex was given back by an interrupt while the queue was
  54301. locked then the mutex holder might now be NULL. _RB_ Is this still
  54302. needed as interrupts can no longer use mutexes? */
  54303. if( pxMutexHolder != NULL )
  54304. 8016a2c: 687b ldr r3, [r7, #4]
  54305. 8016a2e: 2b00 cmp r3, #0
  54306. 8016a30: d051 beq.n 8016ad6 <xTaskPriorityInherit+0xba>
  54307. {
  54308. /* If the holder of the mutex has a priority below the priority of
  54309. the task attempting to obtain the mutex then it will temporarily
  54310. inherit the priority of the task attempting to obtain the mutex. */
  54311. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  54312. 8016a32: 68bb ldr r3, [r7, #8]
  54313. 8016a34: 6ada ldr r2, [r3, #44] @ 0x2c
  54314. 8016a36: 4b2a ldr r3, [pc, #168] @ (8016ae0 <xTaskPriorityInherit+0xc4>)
  54315. 8016a38: 681b ldr r3, [r3, #0]
  54316. 8016a3a: 6adb ldr r3, [r3, #44] @ 0x2c
  54317. 8016a3c: 429a cmp r2, r3
  54318. 8016a3e: d241 bcs.n 8016ac4 <xTaskPriorityInherit+0xa8>
  54319. {
  54320. /* Adjust the mutex holder state to account for its new
  54321. priority. Only reset the event list item value if the value is
  54322. not being used for anything else. */
  54323. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54324. 8016a40: 68bb ldr r3, [r7, #8]
  54325. 8016a42: 699b ldr r3, [r3, #24]
  54326. 8016a44: 2b00 cmp r3, #0
  54327. 8016a46: db06 blt.n 8016a56 <xTaskPriorityInherit+0x3a>
  54328. {
  54329. 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. */
  54330. 8016a48: 4b25 ldr r3, [pc, #148] @ (8016ae0 <xTaskPriorityInherit+0xc4>)
  54331. 8016a4a: 681b ldr r3, [r3, #0]
  54332. 8016a4c: 6adb ldr r3, [r3, #44] @ 0x2c
  54333. 8016a4e: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54334. 8016a52: 68bb ldr r3, [r7, #8]
  54335. 8016a54: 619a str r2, [r3, #24]
  54336. mtCOVERAGE_TEST_MARKER();
  54337. }
  54338. /* If the task being modified is in the ready state it will need
  54339. to be moved into a new list. */
  54340. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  54341. 8016a56: 68bb ldr r3, [r7, #8]
  54342. 8016a58: 6959 ldr r1, [r3, #20]
  54343. 8016a5a: 68bb ldr r3, [r7, #8]
  54344. 8016a5c: 6ada ldr r2, [r3, #44] @ 0x2c
  54345. 8016a5e: 4613 mov r3, r2
  54346. 8016a60: 009b lsls r3, r3, #2
  54347. 8016a62: 4413 add r3, r2
  54348. 8016a64: 009b lsls r3, r3, #2
  54349. 8016a66: 4a1f ldr r2, [pc, #124] @ (8016ae4 <xTaskPriorityInherit+0xc8>)
  54350. 8016a68: 4413 add r3, r2
  54351. 8016a6a: 4299 cmp r1, r3
  54352. 8016a6c: d122 bne.n 8016ab4 <xTaskPriorityInherit+0x98>
  54353. {
  54354. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54355. 8016a6e: 68bb ldr r3, [r7, #8]
  54356. 8016a70: 3304 adds r3, #4
  54357. 8016a72: 4618 mov r0, r3
  54358. 8016a74: f7fd ff96 bl 80149a4 <uxListRemove>
  54359. {
  54360. mtCOVERAGE_TEST_MARKER();
  54361. }
  54362. /* Inherit the priority before being moved into the new list. */
  54363. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54364. 8016a78: 4b19 ldr r3, [pc, #100] @ (8016ae0 <xTaskPriorityInherit+0xc4>)
  54365. 8016a7a: 681b ldr r3, [r3, #0]
  54366. 8016a7c: 6ada ldr r2, [r3, #44] @ 0x2c
  54367. 8016a7e: 68bb ldr r3, [r7, #8]
  54368. 8016a80: 62da str r2, [r3, #44] @ 0x2c
  54369. prvAddTaskToReadyList( pxMutexHolderTCB );
  54370. 8016a82: 68bb ldr r3, [r7, #8]
  54371. 8016a84: 6ada ldr r2, [r3, #44] @ 0x2c
  54372. 8016a86: 4b18 ldr r3, [pc, #96] @ (8016ae8 <xTaskPriorityInherit+0xcc>)
  54373. 8016a88: 681b ldr r3, [r3, #0]
  54374. 8016a8a: 429a cmp r2, r3
  54375. 8016a8c: d903 bls.n 8016a96 <xTaskPriorityInherit+0x7a>
  54376. 8016a8e: 68bb ldr r3, [r7, #8]
  54377. 8016a90: 6adb ldr r3, [r3, #44] @ 0x2c
  54378. 8016a92: 4a15 ldr r2, [pc, #84] @ (8016ae8 <xTaskPriorityInherit+0xcc>)
  54379. 8016a94: 6013 str r3, [r2, #0]
  54380. 8016a96: 68bb ldr r3, [r7, #8]
  54381. 8016a98: 6ada ldr r2, [r3, #44] @ 0x2c
  54382. 8016a9a: 4613 mov r3, r2
  54383. 8016a9c: 009b lsls r3, r3, #2
  54384. 8016a9e: 4413 add r3, r2
  54385. 8016aa0: 009b lsls r3, r3, #2
  54386. 8016aa2: 4a10 ldr r2, [pc, #64] @ (8016ae4 <xTaskPriorityInherit+0xc8>)
  54387. 8016aa4: 441a add r2, r3
  54388. 8016aa6: 68bb ldr r3, [r7, #8]
  54389. 8016aa8: 3304 adds r3, #4
  54390. 8016aaa: 4619 mov r1, r3
  54391. 8016aac: 4610 mov r0, r2
  54392. 8016aae: f7fd ff1c bl 80148ea <vListInsertEnd>
  54393. 8016ab2: e004 b.n 8016abe <xTaskPriorityInherit+0xa2>
  54394. }
  54395. else
  54396. {
  54397. /* Just inherit the priority. */
  54398. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54399. 8016ab4: 4b0a ldr r3, [pc, #40] @ (8016ae0 <xTaskPriorityInherit+0xc4>)
  54400. 8016ab6: 681b ldr r3, [r3, #0]
  54401. 8016ab8: 6ada ldr r2, [r3, #44] @ 0x2c
  54402. 8016aba: 68bb ldr r3, [r7, #8]
  54403. 8016abc: 62da str r2, [r3, #44] @ 0x2c
  54404. }
  54405. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  54406. /* Inheritance occurred. */
  54407. xReturn = pdTRUE;
  54408. 8016abe: 2301 movs r3, #1
  54409. 8016ac0: 60fb str r3, [r7, #12]
  54410. 8016ac2: e008 b.n 8016ad6 <xTaskPriorityInherit+0xba>
  54411. }
  54412. else
  54413. {
  54414. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  54415. 8016ac4: 68bb ldr r3, [r7, #8]
  54416. 8016ac6: 6cda ldr r2, [r3, #76] @ 0x4c
  54417. 8016ac8: 4b05 ldr r3, [pc, #20] @ (8016ae0 <xTaskPriorityInherit+0xc4>)
  54418. 8016aca: 681b ldr r3, [r3, #0]
  54419. 8016acc: 6adb ldr r3, [r3, #44] @ 0x2c
  54420. 8016ace: 429a cmp r2, r3
  54421. 8016ad0: d201 bcs.n 8016ad6 <xTaskPriorityInherit+0xba>
  54422. current priority of the mutex holder is not lower than the
  54423. priority of the task attempting to take the mutex.
  54424. Therefore the mutex holder must have already inherited a
  54425. priority, but inheritance would have occurred if that had
  54426. not been the case. */
  54427. xReturn = pdTRUE;
  54428. 8016ad2: 2301 movs r3, #1
  54429. 8016ad4: 60fb str r3, [r7, #12]
  54430. else
  54431. {
  54432. mtCOVERAGE_TEST_MARKER();
  54433. }
  54434. return xReturn;
  54435. 8016ad6: 68fb ldr r3, [r7, #12]
  54436. }
  54437. 8016ad8: 4618 mov r0, r3
  54438. 8016ada: 3710 adds r7, #16
  54439. 8016adc: 46bd mov sp, r7
  54440. 8016ade: bd80 pop {r7, pc}
  54441. 8016ae0: 240029f8 .word 0x240029f8
  54442. 8016ae4: 240029fc .word 0x240029fc
  54443. 8016ae8: 24002ed4 .word 0x24002ed4
  54444. 08016aec <xTaskPriorityDisinherit>:
  54445. /*-----------------------------------------------------------*/
  54446. #if ( configUSE_MUTEXES == 1 )
  54447. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  54448. {
  54449. 8016aec: b580 push {r7, lr}
  54450. 8016aee: b086 sub sp, #24
  54451. 8016af0: af00 add r7, sp, #0
  54452. 8016af2: 6078 str r0, [r7, #4]
  54453. TCB_t * const pxTCB = pxMutexHolder;
  54454. 8016af4: 687b ldr r3, [r7, #4]
  54455. 8016af6: 613b str r3, [r7, #16]
  54456. BaseType_t xReturn = pdFALSE;
  54457. 8016af8: 2300 movs r3, #0
  54458. 8016afa: 617b str r3, [r7, #20]
  54459. if( pxMutexHolder != NULL )
  54460. 8016afc: 687b ldr r3, [r7, #4]
  54461. 8016afe: 2b00 cmp r3, #0
  54462. 8016b00: d058 beq.n 8016bb4 <xTaskPriorityDisinherit+0xc8>
  54463. {
  54464. /* A task can only have an inherited priority if it holds the mutex.
  54465. If the mutex is held by a task then it cannot be given from an
  54466. interrupt, and if a mutex is given by the holding task then it must
  54467. be the running state task. */
  54468. configASSERT( pxTCB == pxCurrentTCB );
  54469. 8016b02: 4b2f ldr r3, [pc, #188] @ (8016bc0 <xTaskPriorityDisinherit+0xd4>)
  54470. 8016b04: 681b ldr r3, [r3, #0]
  54471. 8016b06: 693a ldr r2, [r7, #16]
  54472. 8016b08: 429a cmp r2, r3
  54473. 8016b0a: d00b beq.n 8016b24 <xTaskPriorityDisinherit+0x38>
  54474. __asm volatile
  54475. 8016b0c: f04f 0350 mov.w r3, #80 @ 0x50
  54476. 8016b10: f383 8811 msr BASEPRI, r3
  54477. 8016b14: f3bf 8f6f isb sy
  54478. 8016b18: f3bf 8f4f dsb sy
  54479. 8016b1c: 60fb str r3, [r7, #12]
  54480. }
  54481. 8016b1e: bf00 nop
  54482. 8016b20: bf00 nop
  54483. 8016b22: e7fd b.n 8016b20 <xTaskPriorityDisinherit+0x34>
  54484. configASSERT( pxTCB->uxMutexesHeld );
  54485. 8016b24: 693b ldr r3, [r7, #16]
  54486. 8016b26: 6d1b ldr r3, [r3, #80] @ 0x50
  54487. 8016b28: 2b00 cmp r3, #0
  54488. 8016b2a: d10b bne.n 8016b44 <xTaskPriorityDisinherit+0x58>
  54489. __asm volatile
  54490. 8016b2c: f04f 0350 mov.w r3, #80 @ 0x50
  54491. 8016b30: f383 8811 msr BASEPRI, r3
  54492. 8016b34: f3bf 8f6f isb sy
  54493. 8016b38: f3bf 8f4f dsb sy
  54494. 8016b3c: 60bb str r3, [r7, #8]
  54495. }
  54496. 8016b3e: bf00 nop
  54497. 8016b40: bf00 nop
  54498. 8016b42: e7fd b.n 8016b40 <xTaskPriorityDisinherit+0x54>
  54499. ( pxTCB->uxMutexesHeld )--;
  54500. 8016b44: 693b ldr r3, [r7, #16]
  54501. 8016b46: 6d1b ldr r3, [r3, #80] @ 0x50
  54502. 8016b48: 1e5a subs r2, r3, #1
  54503. 8016b4a: 693b ldr r3, [r7, #16]
  54504. 8016b4c: 651a str r2, [r3, #80] @ 0x50
  54505. /* Has the holder of the mutex inherited the priority of another
  54506. task? */
  54507. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  54508. 8016b4e: 693b ldr r3, [r7, #16]
  54509. 8016b50: 6ada ldr r2, [r3, #44] @ 0x2c
  54510. 8016b52: 693b ldr r3, [r7, #16]
  54511. 8016b54: 6cdb ldr r3, [r3, #76] @ 0x4c
  54512. 8016b56: 429a cmp r2, r3
  54513. 8016b58: d02c beq.n 8016bb4 <xTaskPriorityDisinherit+0xc8>
  54514. {
  54515. /* Only disinherit if no other mutexes are held. */
  54516. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  54517. 8016b5a: 693b ldr r3, [r7, #16]
  54518. 8016b5c: 6d1b ldr r3, [r3, #80] @ 0x50
  54519. 8016b5e: 2b00 cmp r3, #0
  54520. 8016b60: d128 bne.n 8016bb4 <xTaskPriorityDisinherit+0xc8>
  54521. /* A task can only have an inherited priority if it holds
  54522. the mutex. If the mutex is held by a task then it cannot be
  54523. given from an interrupt, and if a mutex is given by the
  54524. holding task then it must be the running state task. Remove
  54525. the holding task from the ready/delayed list. */
  54526. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54527. 8016b62: 693b ldr r3, [r7, #16]
  54528. 8016b64: 3304 adds r3, #4
  54529. 8016b66: 4618 mov r0, r3
  54530. 8016b68: f7fd ff1c bl 80149a4 <uxListRemove>
  54531. }
  54532. /* Disinherit the priority before adding the task into the
  54533. new ready list. */
  54534. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54535. pxTCB->uxPriority = pxTCB->uxBasePriority;
  54536. 8016b6c: 693b ldr r3, [r7, #16]
  54537. 8016b6e: 6cda ldr r2, [r3, #76] @ 0x4c
  54538. 8016b70: 693b ldr r3, [r7, #16]
  54539. 8016b72: 62da str r2, [r3, #44] @ 0x2c
  54540. /* Reset the event list item value. It cannot be in use for
  54541. any other purpose if this task is running, and it must be
  54542. running to give back the mutex. */
  54543. 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. */
  54544. 8016b74: 693b ldr r3, [r7, #16]
  54545. 8016b76: 6adb ldr r3, [r3, #44] @ 0x2c
  54546. 8016b78: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54547. 8016b7c: 693b ldr r3, [r7, #16]
  54548. 8016b7e: 619a str r2, [r3, #24]
  54549. prvAddTaskToReadyList( pxTCB );
  54550. 8016b80: 693b ldr r3, [r7, #16]
  54551. 8016b82: 6ada ldr r2, [r3, #44] @ 0x2c
  54552. 8016b84: 4b0f ldr r3, [pc, #60] @ (8016bc4 <xTaskPriorityDisinherit+0xd8>)
  54553. 8016b86: 681b ldr r3, [r3, #0]
  54554. 8016b88: 429a cmp r2, r3
  54555. 8016b8a: d903 bls.n 8016b94 <xTaskPriorityDisinherit+0xa8>
  54556. 8016b8c: 693b ldr r3, [r7, #16]
  54557. 8016b8e: 6adb ldr r3, [r3, #44] @ 0x2c
  54558. 8016b90: 4a0c ldr r2, [pc, #48] @ (8016bc4 <xTaskPriorityDisinherit+0xd8>)
  54559. 8016b92: 6013 str r3, [r2, #0]
  54560. 8016b94: 693b ldr r3, [r7, #16]
  54561. 8016b96: 6ada ldr r2, [r3, #44] @ 0x2c
  54562. 8016b98: 4613 mov r3, r2
  54563. 8016b9a: 009b lsls r3, r3, #2
  54564. 8016b9c: 4413 add r3, r2
  54565. 8016b9e: 009b lsls r3, r3, #2
  54566. 8016ba0: 4a09 ldr r2, [pc, #36] @ (8016bc8 <xTaskPriorityDisinherit+0xdc>)
  54567. 8016ba2: 441a add r2, r3
  54568. 8016ba4: 693b ldr r3, [r7, #16]
  54569. 8016ba6: 3304 adds r3, #4
  54570. 8016ba8: 4619 mov r1, r3
  54571. 8016baa: 4610 mov r0, r2
  54572. 8016bac: f7fd fe9d bl 80148ea <vListInsertEnd>
  54573. in an order different to that in which they were taken.
  54574. If a context switch did not occur when the first mutex was
  54575. returned, even if a task was waiting on it, then a context
  54576. switch should occur when the last mutex is returned whether
  54577. a task is waiting on it or not. */
  54578. xReturn = pdTRUE;
  54579. 8016bb0: 2301 movs r3, #1
  54580. 8016bb2: 617b str r3, [r7, #20]
  54581. else
  54582. {
  54583. mtCOVERAGE_TEST_MARKER();
  54584. }
  54585. return xReturn;
  54586. 8016bb4: 697b ldr r3, [r7, #20]
  54587. }
  54588. 8016bb6: 4618 mov r0, r3
  54589. 8016bb8: 3718 adds r7, #24
  54590. 8016bba: 46bd mov sp, r7
  54591. 8016bbc: bd80 pop {r7, pc}
  54592. 8016bbe: bf00 nop
  54593. 8016bc0: 240029f8 .word 0x240029f8
  54594. 8016bc4: 24002ed4 .word 0x24002ed4
  54595. 8016bc8: 240029fc .word 0x240029fc
  54596. 08016bcc <vTaskPriorityDisinheritAfterTimeout>:
  54597. /*-----------------------------------------------------------*/
  54598. #if ( configUSE_MUTEXES == 1 )
  54599. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  54600. {
  54601. 8016bcc: b580 push {r7, lr}
  54602. 8016bce: b088 sub sp, #32
  54603. 8016bd0: af00 add r7, sp, #0
  54604. 8016bd2: 6078 str r0, [r7, #4]
  54605. 8016bd4: 6039 str r1, [r7, #0]
  54606. TCB_t * const pxTCB = pxMutexHolder;
  54607. 8016bd6: 687b ldr r3, [r7, #4]
  54608. 8016bd8: 61bb str r3, [r7, #24]
  54609. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  54610. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  54611. 8016bda: 2301 movs r3, #1
  54612. 8016bdc: 617b str r3, [r7, #20]
  54613. if( pxMutexHolder != NULL )
  54614. 8016bde: 687b ldr r3, [r7, #4]
  54615. 8016be0: 2b00 cmp r3, #0
  54616. 8016be2: d06c beq.n 8016cbe <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54617. {
  54618. /* If pxMutexHolder is not NULL then the holder must hold at least
  54619. one mutex. */
  54620. configASSERT( pxTCB->uxMutexesHeld );
  54621. 8016be4: 69bb ldr r3, [r7, #24]
  54622. 8016be6: 6d1b ldr r3, [r3, #80] @ 0x50
  54623. 8016be8: 2b00 cmp r3, #0
  54624. 8016bea: d10b bne.n 8016c04 <vTaskPriorityDisinheritAfterTimeout+0x38>
  54625. __asm volatile
  54626. 8016bec: f04f 0350 mov.w r3, #80 @ 0x50
  54627. 8016bf0: f383 8811 msr BASEPRI, r3
  54628. 8016bf4: f3bf 8f6f isb sy
  54629. 8016bf8: f3bf 8f4f dsb sy
  54630. 8016bfc: 60fb str r3, [r7, #12]
  54631. }
  54632. 8016bfe: bf00 nop
  54633. 8016c00: bf00 nop
  54634. 8016c02: e7fd b.n 8016c00 <vTaskPriorityDisinheritAfterTimeout+0x34>
  54635. /* Determine the priority to which the priority of the task that
  54636. holds the mutex should be set. This will be the greater of the
  54637. holding task's base priority and the priority of the highest
  54638. priority task that is waiting to obtain the mutex. */
  54639. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  54640. 8016c04: 69bb ldr r3, [r7, #24]
  54641. 8016c06: 6cdb ldr r3, [r3, #76] @ 0x4c
  54642. 8016c08: 683a ldr r2, [r7, #0]
  54643. 8016c0a: 429a cmp r2, r3
  54644. 8016c0c: d902 bls.n 8016c14 <vTaskPriorityDisinheritAfterTimeout+0x48>
  54645. {
  54646. uxPriorityToUse = uxHighestPriorityWaitingTask;
  54647. 8016c0e: 683b ldr r3, [r7, #0]
  54648. 8016c10: 61fb str r3, [r7, #28]
  54649. 8016c12: e002 b.n 8016c1a <vTaskPriorityDisinheritAfterTimeout+0x4e>
  54650. }
  54651. else
  54652. {
  54653. uxPriorityToUse = pxTCB->uxBasePriority;
  54654. 8016c14: 69bb ldr r3, [r7, #24]
  54655. 8016c16: 6cdb ldr r3, [r3, #76] @ 0x4c
  54656. 8016c18: 61fb str r3, [r7, #28]
  54657. }
  54658. /* Does the priority need to change? */
  54659. if( pxTCB->uxPriority != uxPriorityToUse )
  54660. 8016c1a: 69bb ldr r3, [r7, #24]
  54661. 8016c1c: 6adb ldr r3, [r3, #44] @ 0x2c
  54662. 8016c1e: 69fa ldr r2, [r7, #28]
  54663. 8016c20: 429a cmp r2, r3
  54664. 8016c22: d04c beq.n 8016cbe <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54665. {
  54666. /* Only disinherit if no other mutexes are held. This is a
  54667. simplification in the priority inheritance implementation. If
  54668. the task that holds the mutex is also holding other mutexes then
  54669. the other mutexes may have caused the priority inheritance. */
  54670. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  54671. 8016c24: 69bb ldr r3, [r7, #24]
  54672. 8016c26: 6d1b ldr r3, [r3, #80] @ 0x50
  54673. 8016c28: 697a ldr r2, [r7, #20]
  54674. 8016c2a: 429a cmp r2, r3
  54675. 8016c2c: d147 bne.n 8016cbe <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54676. {
  54677. /* If a task has timed out because it already holds the
  54678. mutex it was trying to obtain then it cannot of inherited
  54679. its own priority. */
  54680. configASSERT( pxTCB != pxCurrentTCB );
  54681. 8016c2e: 4b26 ldr r3, [pc, #152] @ (8016cc8 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  54682. 8016c30: 681b ldr r3, [r3, #0]
  54683. 8016c32: 69ba ldr r2, [r7, #24]
  54684. 8016c34: 429a cmp r2, r3
  54685. 8016c36: d10b bne.n 8016c50 <vTaskPriorityDisinheritAfterTimeout+0x84>
  54686. __asm volatile
  54687. 8016c38: f04f 0350 mov.w r3, #80 @ 0x50
  54688. 8016c3c: f383 8811 msr BASEPRI, r3
  54689. 8016c40: f3bf 8f6f isb sy
  54690. 8016c44: f3bf 8f4f dsb sy
  54691. 8016c48: 60bb str r3, [r7, #8]
  54692. }
  54693. 8016c4a: bf00 nop
  54694. 8016c4c: bf00 nop
  54695. 8016c4e: e7fd b.n 8016c4c <vTaskPriorityDisinheritAfterTimeout+0x80>
  54696. /* Disinherit the priority, remembering the previous
  54697. priority to facilitate determining the subject task's
  54698. state. */
  54699. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54700. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  54701. 8016c50: 69bb ldr r3, [r7, #24]
  54702. 8016c52: 6adb ldr r3, [r3, #44] @ 0x2c
  54703. 8016c54: 613b str r3, [r7, #16]
  54704. pxTCB->uxPriority = uxPriorityToUse;
  54705. 8016c56: 69bb ldr r3, [r7, #24]
  54706. 8016c58: 69fa ldr r2, [r7, #28]
  54707. 8016c5a: 62da str r2, [r3, #44] @ 0x2c
  54708. /* Only reset the event list item value if the value is not
  54709. being used for anything else. */
  54710. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54711. 8016c5c: 69bb ldr r3, [r7, #24]
  54712. 8016c5e: 699b ldr r3, [r3, #24]
  54713. 8016c60: 2b00 cmp r3, #0
  54714. 8016c62: db04 blt.n 8016c6e <vTaskPriorityDisinheritAfterTimeout+0xa2>
  54715. {
  54716. 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. */
  54717. 8016c64: 69fb ldr r3, [r7, #28]
  54718. 8016c66: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54719. 8016c6a: 69bb ldr r3, [r7, #24]
  54720. 8016c6c: 619a str r2, [r3, #24]
  54721. then the task that holds the mutex could be in either the
  54722. Ready, Blocked or Suspended states. Only remove the task
  54723. from its current state list if it is in the Ready state as
  54724. the task's priority is going to change and there is one
  54725. Ready list per priority. */
  54726. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  54727. 8016c6e: 69bb ldr r3, [r7, #24]
  54728. 8016c70: 6959 ldr r1, [r3, #20]
  54729. 8016c72: 693a ldr r2, [r7, #16]
  54730. 8016c74: 4613 mov r3, r2
  54731. 8016c76: 009b lsls r3, r3, #2
  54732. 8016c78: 4413 add r3, r2
  54733. 8016c7a: 009b lsls r3, r3, #2
  54734. 8016c7c: 4a13 ldr r2, [pc, #76] @ (8016ccc <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54735. 8016c7e: 4413 add r3, r2
  54736. 8016c80: 4299 cmp r1, r3
  54737. 8016c82: d11c bne.n 8016cbe <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54738. {
  54739. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54740. 8016c84: 69bb ldr r3, [r7, #24]
  54741. 8016c86: 3304 adds r3, #4
  54742. 8016c88: 4618 mov r0, r3
  54743. 8016c8a: f7fd fe8b bl 80149a4 <uxListRemove>
  54744. else
  54745. {
  54746. mtCOVERAGE_TEST_MARKER();
  54747. }
  54748. prvAddTaskToReadyList( pxTCB );
  54749. 8016c8e: 69bb ldr r3, [r7, #24]
  54750. 8016c90: 6ada ldr r2, [r3, #44] @ 0x2c
  54751. 8016c92: 4b0f ldr r3, [pc, #60] @ (8016cd0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54752. 8016c94: 681b ldr r3, [r3, #0]
  54753. 8016c96: 429a cmp r2, r3
  54754. 8016c98: d903 bls.n 8016ca2 <vTaskPriorityDisinheritAfterTimeout+0xd6>
  54755. 8016c9a: 69bb ldr r3, [r7, #24]
  54756. 8016c9c: 6adb ldr r3, [r3, #44] @ 0x2c
  54757. 8016c9e: 4a0c ldr r2, [pc, #48] @ (8016cd0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54758. 8016ca0: 6013 str r3, [r2, #0]
  54759. 8016ca2: 69bb ldr r3, [r7, #24]
  54760. 8016ca4: 6ada ldr r2, [r3, #44] @ 0x2c
  54761. 8016ca6: 4613 mov r3, r2
  54762. 8016ca8: 009b lsls r3, r3, #2
  54763. 8016caa: 4413 add r3, r2
  54764. 8016cac: 009b lsls r3, r3, #2
  54765. 8016cae: 4a07 ldr r2, [pc, #28] @ (8016ccc <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54766. 8016cb0: 441a add r2, r3
  54767. 8016cb2: 69bb ldr r3, [r7, #24]
  54768. 8016cb4: 3304 adds r3, #4
  54769. 8016cb6: 4619 mov r1, r3
  54770. 8016cb8: 4610 mov r0, r2
  54771. 8016cba: f7fd fe16 bl 80148ea <vListInsertEnd>
  54772. }
  54773. else
  54774. {
  54775. mtCOVERAGE_TEST_MARKER();
  54776. }
  54777. }
  54778. 8016cbe: bf00 nop
  54779. 8016cc0: 3720 adds r7, #32
  54780. 8016cc2: 46bd mov sp, r7
  54781. 8016cc4: bd80 pop {r7, pc}
  54782. 8016cc6: bf00 nop
  54783. 8016cc8: 240029f8 .word 0x240029f8
  54784. 8016ccc: 240029fc .word 0x240029fc
  54785. 8016cd0: 24002ed4 .word 0x24002ed4
  54786. 08016cd4 <pvTaskIncrementMutexHeldCount>:
  54787. /*-----------------------------------------------------------*/
  54788. #if ( configUSE_MUTEXES == 1 )
  54789. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  54790. {
  54791. 8016cd4: b480 push {r7}
  54792. 8016cd6: af00 add r7, sp, #0
  54793. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  54794. then pxCurrentTCB will be NULL. */
  54795. if( pxCurrentTCB != NULL )
  54796. 8016cd8: 4b07 ldr r3, [pc, #28] @ (8016cf8 <pvTaskIncrementMutexHeldCount+0x24>)
  54797. 8016cda: 681b ldr r3, [r3, #0]
  54798. 8016cdc: 2b00 cmp r3, #0
  54799. 8016cde: d004 beq.n 8016cea <pvTaskIncrementMutexHeldCount+0x16>
  54800. {
  54801. ( pxCurrentTCB->uxMutexesHeld )++;
  54802. 8016ce0: 4b05 ldr r3, [pc, #20] @ (8016cf8 <pvTaskIncrementMutexHeldCount+0x24>)
  54803. 8016ce2: 681b ldr r3, [r3, #0]
  54804. 8016ce4: 6d1a ldr r2, [r3, #80] @ 0x50
  54805. 8016ce6: 3201 adds r2, #1
  54806. 8016ce8: 651a str r2, [r3, #80] @ 0x50
  54807. }
  54808. return pxCurrentTCB;
  54809. 8016cea: 4b03 ldr r3, [pc, #12] @ (8016cf8 <pvTaskIncrementMutexHeldCount+0x24>)
  54810. 8016cec: 681b ldr r3, [r3, #0]
  54811. }
  54812. 8016cee: 4618 mov r0, r3
  54813. 8016cf0: 46bd mov sp, r7
  54814. 8016cf2: f85d 7b04 ldr.w r7, [sp], #4
  54815. 8016cf6: 4770 bx lr
  54816. 8016cf8: 240029f8 .word 0x240029f8
  54817. 08016cfc <xTaskNotifyWait>:
  54818. /*-----------------------------------------------------------*/
  54819. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54820. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  54821. {
  54822. 8016cfc: b580 push {r7, lr}
  54823. 8016cfe: b086 sub sp, #24
  54824. 8016d00: af00 add r7, sp, #0
  54825. 8016d02: 60f8 str r0, [r7, #12]
  54826. 8016d04: 60b9 str r1, [r7, #8]
  54827. 8016d06: 607a str r2, [r7, #4]
  54828. 8016d08: 603b str r3, [r7, #0]
  54829. BaseType_t xReturn;
  54830. taskENTER_CRITICAL();
  54831. 8016d0a: f000 ffed bl 8017ce8 <vPortEnterCritical>
  54832. {
  54833. /* Only block if a notification is not already pending. */
  54834. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54835. 8016d0e: 4b29 ldr r3, [pc, #164] @ (8016db4 <xTaskNotifyWait+0xb8>)
  54836. 8016d10: 681b ldr r3, [r3, #0]
  54837. 8016d12: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54838. 8016d16: b2db uxtb r3, r3
  54839. 8016d18: 2b02 cmp r3, #2
  54840. 8016d1a: d01c beq.n 8016d56 <xTaskNotifyWait+0x5a>
  54841. {
  54842. /* Clear bits in the task's notification value as bits may get
  54843. set by the notifying task or interrupt. This can be used to
  54844. clear the value to zero. */
  54845. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  54846. 8016d1c: 4b25 ldr r3, [pc, #148] @ (8016db4 <xTaskNotifyWait+0xb8>)
  54847. 8016d1e: 681b ldr r3, [r3, #0]
  54848. 8016d20: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54849. 8016d24: 68fa ldr r2, [r7, #12]
  54850. 8016d26: 43d2 mvns r2, r2
  54851. 8016d28: 400a ands r2, r1
  54852. 8016d2a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54853. /* Mark this task as waiting for a notification. */
  54854. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  54855. 8016d2e: 4b21 ldr r3, [pc, #132] @ (8016db4 <xTaskNotifyWait+0xb8>)
  54856. 8016d30: 681b ldr r3, [r3, #0]
  54857. 8016d32: 2201 movs r2, #1
  54858. 8016d34: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54859. if( xTicksToWait > ( TickType_t ) 0 )
  54860. 8016d38: 683b ldr r3, [r7, #0]
  54861. 8016d3a: 2b00 cmp r3, #0
  54862. 8016d3c: d00b beq.n 8016d56 <xTaskNotifyWait+0x5a>
  54863. {
  54864. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  54865. 8016d3e: 2101 movs r1, #1
  54866. 8016d40: 6838 ldr r0, [r7, #0]
  54867. 8016d42: f000 fa09 bl 8017158 <prvAddCurrentTaskToDelayedList>
  54868. /* All ports are written to allow a yield in a critical
  54869. section (some will yield immediately, others wait until the
  54870. critical section exits) - but it is not something that
  54871. application code should ever do. */
  54872. portYIELD_WITHIN_API();
  54873. 8016d46: 4b1c ldr r3, [pc, #112] @ (8016db8 <xTaskNotifyWait+0xbc>)
  54874. 8016d48: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54875. 8016d4c: 601a str r2, [r3, #0]
  54876. 8016d4e: f3bf 8f4f dsb sy
  54877. 8016d52: f3bf 8f6f isb sy
  54878. else
  54879. {
  54880. mtCOVERAGE_TEST_MARKER();
  54881. }
  54882. }
  54883. taskEXIT_CRITICAL();
  54884. 8016d56: f000 fff9 bl 8017d4c <vPortExitCritical>
  54885. taskENTER_CRITICAL();
  54886. 8016d5a: f000 ffc5 bl 8017ce8 <vPortEnterCritical>
  54887. {
  54888. traceTASK_NOTIFY_WAIT();
  54889. if( pulNotificationValue != NULL )
  54890. 8016d5e: 687b ldr r3, [r7, #4]
  54891. 8016d60: 2b00 cmp r3, #0
  54892. 8016d62: d005 beq.n 8016d70 <xTaskNotifyWait+0x74>
  54893. {
  54894. /* Output the current notification value, which may or may not
  54895. have changed. */
  54896. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  54897. 8016d64: 4b13 ldr r3, [pc, #76] @ (8016db4 <xTaskNotifyWait+0xb8>)
  54898. 8016d66: 681b ldr r3, [r3, #0]
  54899. 8016d68: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54900. 8016d6c: 687b ldr r3, [r7, #4]
  54901. 8016d6e: 601a str r2, [r3, #0]
  54902. /* If ucNotifyValue is set then either the task never entered the
  54903. blocked state (because a notification was already pending) or the
  54904. task unblocked because of a notification. Otherwise the task
  54905. unblocked because of a timeout. */
  54906. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54907. 8016d70: 4b10 ldr r3, [pc, #64] @ (8016db4 <xTaskNotifyWait+0xb8>)
  54908. 8016d72: 681b ldr r3, [r3, #0]
  54909. 8016d74: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54910. 8016d78: b2db uxtb r3, r3
  54911. 8016d7a: 2b02 cmp r3, #2
  54912. 8016d7c: d002 beq.n 8016d84 <xTaskNotifyWait+0x88>
  54913. {
  54914. /* A notification was not received. */
  54915. xReturn = pdFALSE;
  54916. 8016d7e: 2300 movs r3, #0
  54917. 8016d80: 617b str r3, [r7, #20]
  54918. 8016d82: e00a b.n 8016d9a <xTaskNotifyWait+0x9e>
  54919. }
  54920. else
  54921. {
  54922. /* A notification was already pending or a notification was
  54923. received while the task was waiting. */
  54924. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  54925. 8016d84: 4b0b ldr r3, [pc, #44] @ (8016db4 <xTaskNotifyWait+0xb8>)
  54926. 8016d86: 681b ldr r3, [r3, #0]
  54927. 8016d88: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54928. 8016d8c: 68ba ldr r2, [r7, #8]
  54929. 8016d8e: 43d2 mvns r2, r2
  54930. 8016d90: 400a ands r2, r1
  54931. 8016d92: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54932. xReturn = pdTRUE;
  54933. 8016d96: 2301 movs r3, #1
  54934. 8016d98: 617b str r3, [r7, #20]
  54935. }
  54936. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54937. 8016d9a: 4b06 ldr r3, [pc, #24] @ (8016db4 <xTaskNotifyWait+0xb8>)
  54938. 8016d9c: 681b ldr r3, [r3, #0]
  54939. 8016d9e: 2200 movs r2, #0
  54940. 8016da0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54941. }
  54942. taskEXIT_CRITICAL();
  54943. 8016da4: f000 ffd2 bl 8017d4c <vPortExitCritical>
  54944. return xReturn;
  54945. 8016da8: 697b ldr r3, [r7, #20]
  54946. }
  54947. 8016daa: 4618 mov r0, r3
  54948. 8016dac: 3718 adds r7, #24
  54949. 8016dae: 46bd mov sp, r7
  54950. 8016db0: bd80 pop {r7, pc}
  54951. 8016db2: bf00 nop
  54952. 8016db4: 240029f8 .word 0x240029f8
  54953. 8016db8: e000ed04 .word 0xe000ed04
  54954. 08016dbc <xTaskGenericNotify>:
  54955. /*-----------------------------------------------------------*/
  54956. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54957. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  54958. {
  54959. 8016dbc: b580 push {r7, lr}
  54960. 8016dbe: b08a sub sp, #40 @ 0x28
  54961. 8016dc0: af00 add r7, sp, #0
  54962. 8016dc2: 60f8 str r0, [r7, #12]
  54963. 8016dc4: 60b9 str r1, [r7, #8]
  54964. 8016dc6: 603b str r3, [r7, #0]
  54965. 8016dc8: 4613 mov r3, r2
  54966. 8016dca: 71fb strb r3, [r7, #7]
  54967. TCB_t * pxTCB;
  54968. BaseType_t xReturn = pdPASS;
  54969. 8016dcc: 2301 movs r3, #1
  54970. 8016dce: 627b str r3, [r7, #36] @ 0x24
  54971. uint8_t ucOriginalNotifyState;
  54972. configASSERT( xTaskToNotify );
  54973. 8016dd0: 68fb ldr r3, [r7, #12]
  54974. 8016dd2: 2b00 cmp r3, #0
  54975. 8016dd4: d10b bne.n 8016dee <xTaskGenericNotify+0x32>
  54976. __asm volatile
  54977. 8016dd6: f04f 0350 mov.w r3, #80 @ 0x50
  54978. 8016dda: f383 8811 msr BASEPRI, r3
  54979. 8016dde: f3bf 8f6f isb sy
  54980. 8016de2: f3bf 8f4f dsb sy
  54981. 8016de6: 61bb str r3, [r7, #24]
  54982. }
  54983. 8016de8: bf00 nop
  54984. 8016dea: bf00 nop
  54985. 8016dec: e7fd b.n 8016dea <xTaskGenericNotify+0x2e>
  54986. pxTCB = xTaskToNotify;
  54987. 8016dee: 68fb ldr r3, [r7, #12]
  54988. 8016df0: 623b str r3, [r7, #32]
  54989. taskENTER_CRITICAL();
  54990. 8016df2: f000 ff79 bl 8017ce8 <vPortEnterCritical>
  54991. {
  54992. if( pulPreviousNotificationValue != NULL )
  54993. 8016df6: 683b ldr r3, [r7, #0]
  54994. 8016df8: 2b00 cmp r3, #0
  54995. 8016dfa: d004 beq.n 8016e06 <xTaskGenericNotify+0x4a>
  54996. {
  54997. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  54998. 8016dfc: 6a3b ldr r3, [r7, #32]
  54999. 8016dfe: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55000. 8016e02: 683b ldr r3, [r7, #0]
  55001. 8016e04: 601a str r2, [r3, #0]
  55002. }
  55003. ucOriginalNotifyState = pxTCB->ucNotifyState;
  55004. 8016e06: 6a3b ldr r3, [r7, #32]
  55005. 8016e08: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55006. 8016e0c: 77fb strb r3, [r7, #31]
  55007. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  55008. 8016e0e: 6a3b ldr r3, [r7, #32]
  55009. 8016e10: 2202 movs r2, #2
  55010. 8016e12: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55011. switch( eAction )
  55012. 8016e16: 79fb ldrb r3, [r7, #7]
  55013. 8016e18: 2b04 cmp r3, #4
  55014. 8016e1a: d82e bhi.n 8016e7a <xTaskGenericNotify+0xbe>
  55015. 8016e1c: a201 add r2, pc, #4 @ (adr r2, 8016e24 <xTaskGenericNotify+0x68>)
  55016. 8016e1e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55017. 8016e22: bf00 nop
  55018. 8016e24: 08016e9f .word 0x08016e9f
  55019. 8016e28: 08016e39 .word 0x08016e39
  55020. 8016e2c: 08016e4b .word 0x08016e4b
  55021. 8016e30: 08016e5b .word 0x08016e5b
  55022. 8016e34: 08016e65 .word 0x08016e65
  55023. {
  55024. case eSetBits :
  55025. pxTCB->ulNotifiedValue |= ulValue;
  55026. 8016e38: 6a3b ldr r3, [r7, #32]
  55027. 8016e3a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55028. 8016e3e: 68bb ldr r3, [r7, #8]
  55029. 8016e40: 431a orrs r2, r3
  55030. 8016e42: 6a3b ldr r3, [r7, #32]
  55031. 8016e44: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55032. break;
  55033. 8016e48: e02c b.n 8016ea4 <xTaskGenericNotify+0xe8>
  55034. case eIncrement :
  55035. ( pxTCB->ulNotifiedValue )++;
  55036. 8016e4a: 6a3b ldr r3, [r7, #32]
  55037. 8016e4c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55038. 8016e50: 1c5a adds r2, r3, #1
  55039. 8016e52: 6a3b ldr r3, [r7, #32]
  55040. 8016e54: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55041. break;
  55042. 8016e58: e024 b.n 8016ea4 <xTaskGenericNotify+0xe8>
  55043. case eSetValueWithOverwrite :
  55044. pxTCB->ulNotifiedValue = ulValue;
  55045. 8016e5a: 6a3b ldr r3, [r7, #32]
  55046. 8016e5c: 68ba ldr r2, [r7, #8]
  55047. 8016e5e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55048. break;
  55049. 8016e62: e01f b.n 8016ea4 <xTaskGenericNotify+0xe8>
  55050. case eSetValueWithoutOverwrite :
  55051. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55052. 8016e64: 7ffb ldrb r3, [r7, #31]
  55053. 8016e66: 2b02 cmp r3, #2
  55054. 8016e68: d004 beq.n 8016e74 <xTaskGenericNotify+0xb8>
  55055. {
  55056. pxTCB->ulNotifiedValue = ulValue;
  55057. 8016e6a: 6a3b ldr r3, [r7, #32]
  55058. 8016e6c: 68ba ldr r2, [r7, #8]
  55059. 8016e6e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55060. else
  55061. {
  55062. /* The value could not be written to the task. */
  55063. xReturn = pdFAIL;
  55064. }
  55065. break;
  55066. 8016e72: e017 b.n 8016ea4 <xTaskGenericNotify+0xe8>
  55067. xReturn = pdFAIL;
  55068. 8016e74: 2300 movs r3, #0
  55069. 8016e76: 627b str r3, [r7, #36] @ 0x24
  55070. break;
  55071. 8016e78: e014 b.n 8016ea4 <xTaskGenericNotify+0xe8>
  55072. default:
  55073. /* Should not get here if all enums are handled.
  55074. Artificially force an assert by testing a value the
  55075. compiler can't assume is const. */
  55076. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55077. 8016e7a: 6a3b ldr r3, [r7, #32]
  55078. 8016e7c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55079. 8016e80: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55080. 8016e84: d00d beq.n 8016ea2 <xTaskGenericNotify+0xe6>
  55081. __asm volatile
  55082. 8016e86: f04f 0350 mov.w r3, #80 @ 0x50
  55083. 8016e8a: f383 8811 msr BASEPRI, r3
  55084. 8016e8e: f3bf 8f6f isb sy
  55085. 8016e92: f3bf 8f4f dsb sy
  55086. 8016e96: 617b str r3, [r7, #20]
  55087. }
  55088. 8016e98: bf00 nop
  55089. 8016e9a: bf00 nop
  55090. 8016e9c: e7fd b.n 8016e9a <xTaskGenericNotify+0xde>
  55091. break;
  55092. 8016e9e: bf00 nop
  55093. 8016ea0: e000 b.n 8016ea4 <xTaskGenericNotify+0xe8>
  55094. break;
  55095. 8016ea2: bf00 nop
  55096. traceTASK_NOTIFY();
  55097. /* If the task is in the blocked state specifically to wait for a
  55098. notification then unblock it now. */
  55099. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55100. 8016ea4: 7ffb ldrb r3, [r7, #31]
  55101. 8016ea6: 2b01 cmp r3, #1
  55102. 8016ea8: d13b bne.n 8016f22 <xTaskGenericNotify+0x166>
  55103. {
  55104. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55105. 8016eaa: 6a3b ldr r3, [r7, #32]
  55106. 8016eac: 3304 adds r3, #4
  55107. 8016eae: 4618 mov r0, r3
  55108. 8016eb0: f7fd fd78 bl 80149a4 <uxListRemove>
  55109. prvAddTaskToReadyList( pxTCB );
  55110. 8016eb4: 6a3b ldr r3, [r7, #32]
  55111. 8016eb6: 6ada ldr r2, [r3, #44] @ 0x2c
  55112. 8016eb8: 4b1d ldr r3, [pc, #116] @ (8016f30 <xTaskGenericNotify+0x174>)
  55113. 8016eba: 681b ldr r3, [r3, #0]
  55114. 8016ebc: 429a cmp r2, r3
  55115. 8016ebe: d903 bls.n 8016ec8 <xTaskGenericNotify+0x10c>
  55116. 8016ec0: 6a3b ldr r3, [r7, #32]
  55117. 8016ec2: 6adb ldr r3, [r3, #44] @ 0x2c
  55118. 8016ec4: 4a1a ldr r2, [pc, #104] @ (8016f30 <xTaskGenericNotify+0x174>)
  55119. 8016ec6: 6013 str r3, [r2, #0]
  55120. 8016ec8: 6a3b ldr r3, [r7, #32]
  55121. 8016eca: 6ada ldr r2, [r3, #44] @ 0x2c
  55122. 8016ecc: 4613 mov r3, r2
  55123. 8016ece: 009b lsls r3, r3, #2
  55124. 8016ed0: 4413 add r3, r2
  55125. 8016ed2: 009b lsls r3, r3, #2
  55126. 8016ed4: 4a17 ldr r2, [pc, #92] @ (8016f34 <xTaskGenericNotify+0x178>)
  55127. 8016ed6: 441a add r2, r3
  55128. 8016ed8: 6a3b ldr r3, [r7, #32]
  55129. 8016eda: 3304 adds r3, #4
  55130. 8016edc: 4619 mov r1, r3
  55131. 8016ede: 4610 mov r0, r2
  55132. 8016ee0: f7fd fd03 bl 80148ea <vListInsertEnd>
  55133. /* The task should not have been on an event list. */
  55134. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55135. 8016ee4: 6a3b ldr r3, [r7, #32]
  55136. 8016ee6: 6a9b ldr r3, [r3, #40] @ 0x28
  55137. 8016ee8: 2b00 cmp r3, #0
  55138. 8016eea: d00b beq.n 8016f04 <xTaskGenericNotify+0x148>
  55139. __asm volatile
  55140. 8016eec: f04f 0350 mov.w r3, #80 @ 0x50
  55141. 8016ef0: f383 8811 msr BASEPRI, r3
  55142. 8016ef4: f3bf 8f6f isb sy
  55143. 8016ef8: f3bf 8f4f dsb sy
  55144. 8016efc: 613b str r3, [r7, #16]
  55145. }
  55146. 8016efe: bf00 nop
  55147. 8016f00: bf00 nop
  55148. 8016f02: e7fd b.n 8016f00 <xTaskGenericNotify+0x144>
  55149. earliest possible time. */
  55150. prvResetNextTaskUnblockTime();
  55151. }
  55152. #endif
  55153. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55154. 8016f04: 6a3b ldr r3, [r7, #32]
  55155. 8016f06: 6ada ldr r2, [r3, #44] @ 0x2c
  55156. 8016f08: 4b0b ldr r3, [pc, #44] @ (8016f38 <xTaskGenericNotify+0x17c>)
  55157. 8016f0a: 681b ldr r3, [r3, #0]
  55158. 8016f0c: 6adb ldr r3, [r3, #44] @ 0x2c
  55159. 8016f0e: 429a cmp r2, r3
  55160. 8016f10: d907 bls.n 8016f22 <xTaskGenericNotify+0x166>
  55161. {
  55162. /* The notified task has a priority above the currently
  55163. executing task so a yield is required. */
  55164. taskYIELD_IF_USING_PREEMPTION();
  55165. 8016f12: 4b0a ldr r3, [pc, #40] @ (8016f3c <xTaskGenericNotify+0x180>)
  55166. 8016f14: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  55167. 8016f18: 601a str r2, [r3, #0]
  55168. 8016f1a: f3bf 8f4f dsb sy
  55169. 8016f1e: f3bf 8f6f isb sy
  55170. else
  55171. {
  55172. mtCOVERAGE_TEST_MARKER();
  55173. }
  55174. }
  55175. taskEXIT_CRITICAL();
  55176. 8016f22: f000 ff13 bl 8017d4c <vPortExitCritical>
  55177. return xReturn;
  55178. 8016f26: 6a7b ldr r3, [r7, #36] @ 0x24
  55179. }
  55180. 8016f28: 4618 mov r0, r3
  55181. 8016f2a: 3728 adds r7, #40 @ 0x28
  55182. 8016f2c: 46bd mov sp, r7
  55183. 8016f2e: bd80 pop {r7, pc}
  55184. 8016f30: 24002ed4 .word 0x24002ed4
  55185. 8016f34: 240029fc .word 0x240029fc
  55186. 8016f38: 240029f8 .word 0x240029f8
  55187. 8016f3c: e000ed04 .word 0xe000ed04
  55188. 08016f40 <xTaskGenericNotifyFromISR>:
  55189. /*-----------------------------------------------------------*/
  55190. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55191. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  55192. {
  55193. 8016f40: b580 push {r7, lr}
  55194. 8016f42: b08e sub sp, #56 @ 0x38
  55195. 8016f44: af00 add r7, sp, #0
  55196. 8016f46: 60f8 str r0, [r7, #12]
  55197. 8016f48: 60b9 str r1, [r7, #8]
  55198. 8016f4a: 603b str r3, [r7, #0]
  55199. 8016f4c: 4613 mov r3, r2
  55200. 8016f4e: 71fb strb r3, [r7, #7]
  55201. TCB_t * pxTCB;
  55202. uint8_t ucOriginalNotifyState;
  55203. BaseType_t xReturn = pdPASS;
  55204. 8016f50: 2301 movs r3, #1
  55205. 8016f52: 637b str r3, [r7, #52] @ 0x34
  55206. UBaseType_t uxSavedInterruptStatus;
  55207. configASSERT( xTaskToNotify );
  55208. 8016f54: 68fb ldr r3, [r7, #12]
  55209. 8016f56: 2b00 cmp r3, #0
  55210. 8016f58: d10b bne.n 8016f72 <xTaskGenericNotifyFromISR+0x32>
  55211. __asm volatile
  55212. 8016f5a: f04f 0350 mov.w r3, #80 @ 0x50
  55213. 8016f5e: f383 8811 msr BASEPRI, r3
  55214. 8016f62: f3bf 8f6f isb sy
  55215. 8016f66: f3bf 8f4f dsb sy
  55216. 8016f6a: 627b str r3, [r7, #36] @ 0x24
  55217. }
  55218. 8016f6c: bf00 nop
  55219. 8016f6e: bf00 nop
  55220. 8016f70: e7fd b.n 8016f6e <xTaskGenericNotifyFromISR+0x2e>
  55221. below the maximum system call interrupt priority. FreeRTOS maintains a
  55222. separate interrupt safe API to ensure interrupt entry is as fast and as
  55223. simple as possible. More information (albeit Cortex-M specific) is
  55224. provided on the following link:
  55225. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  55226. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  55227. 8016f72: f000 ff99 bl 8017ea8 <vPortValidateInterruptPriority>
  55228. pxTCB = xTaskToNotify;
  55229. 8016f76: 68fb ldr r3, [r7, #12]
  55230. 8016f78: 633b str r3, [r7, #48] @ 0x30
  55231. __asm volatile
  55232. 8016f7a: f3ef 8211 mrs r2, BASEPRI
  55233. 8016f7e: f04f 0350 mov.w r3, #80 @ 0x50
  55234. 8016f82: f383 8811 msr BASEPRI, r3
  55235. 8016f86: f3bf 8f6f isb sy
  55236. 8016f8a: f3bf 8f4f dsb sy
  55237. 8016f8e: 623a str r2, [r7, #32]
  55238. 8016f90: 61fb str r3, [r7, #28]
  55239. return ulOriginalBASEPRI;
  55240. 8016f92: 6a3b ldr r3, [r7, #32]
  55241. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  55242. 8016f94: 62fb str r3, [r7, #44] @ 0x2c
  55243. {
  55244. if( pulPreviousNotificationValue != NULL )
  55245. 8016f96: 683b ldr r3, [r7, #0]
  55246. 8016f98: 2b00 cmp r3, #0
  55247. 8016f9a: d004 beq.n 8016fa6 <xTaskGenericNotifyFromISR+0x66>
  55248. {
  55249. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  55250. 8016f9c: 6b3b ldr r3, [r7, #48] @ 0x30
  55251. 8016f9e: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55252. 8016fa2: 683b ldr r3, [r7, #0]
  55253. 8016fa4: 601a str r2, [r3, #0]
  55254. }
  55255. ucOriginalNotifyState = pxTCB->ucNotifyState;
  55256. 8016fa6: 6b3b ldr r3, [r7, #48] @ 0x30
  55257. 8016fa8: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55258. 8016fac: f887 302b strb.w r3, [r7, #43] @ 0x2b
  55259. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  55260. 8016fb0: 6b3b ldr r3, [r7, #48] @ 0x30
  55261. 8016fb2: 2202 movs r2, #2
  55262. 8016fb4: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55263. switch( eAction )
  55264. 8016fb8: 79fb ldrb r3, [r7, #7]
  55265. 8016fba: 2b04 cmp r3, #4
  55266. 8016fbc: d82e bhi.n 801701c <xTaskGenericNotifyFromISR+0xdc>
  55267. 8016fbe: a201 add r2, pc, #4 @ (adr r2, 8016fc4 <xTaskGenericNotifyFromISR+0x84>)
  55268. 8016fc0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55269. 8016fc4: 08017041 .word 0x08017041
  55270. 8016fc8: 08016fd9 .word 0x08016fd9
  55271. 8016fcc: 08016feb .word 0x08016feb
  55272. 8016fd0: 08016ffb .word 0x08016ffb
  55273. 8016fd4: 08017005 .word 0x08017005
  55274. {
  55275. case eSetBits :
  55276. pxTCB->ulNotifiedValue |= ulValue;
  55277. 8016fd8: 6b3b ldr r3, [r7, #48] @ 0x30
  55278. 8016fda: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55279. 8016fde: 68bb ldr r3, [r7, #8]
  55280. 8016fe0: 431a orrs r2, r3
  55281. 8016fe2: 6b3b ldr r3, [r7, #48] @ 0x30
  55282. 8016fe4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55283. break;
  55284. 8016fe8: e02d b.n 8017046 <xTaskGenericNotifyFromISR+0x106>
  55285. case eIncrement :
  55286. ( pxTCB->ulNotifiedValue )++;
  55287. 8016fea: 6b3b ldr r3, [r7, #48] @ 0x30
  55288. 8016fec: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55289. 8016ff0: 1c5a adds r2, r3, #1
  55290. 8016ff2: 6b3b ldr r3, [r7, #48] @ 0x30
  55291. 8016ff4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55292. break;
  55293. 8016ff8: e025 b.n 8017046 <xTaskGenericNotifyFromISR+0x106>
  55294. case eSetValueWithOverwrite :
  55295. pxTCB->ulNotifiedValue = ulValue;
  55296. 8016ffa: 6b3b ldr r3, [r7, #48] @ 0x30
  55297. 8016ffc: 68ba ldr r2, [r7, #8]
  55298. 8016ffe: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55299. break;
  55300. 8017002: e020 b.n 8017046 <xTaskGenericNotifyFromISR+0x106>
  55301. case eSetValueWithoutOverwrite :
  55302. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55303. 8017004: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55304. 8017008: 2b02 cmp r3, #2
  55305. 801700a: d004 beq.n 8017016 <xTaskGenericNotifyFromISR+0xd6>
  55306. {
  55307. pxTCB->ulNotifiedValue = ulValue;
  55308. 801700c: 6b3b ldr r3, [r7, #48] @ 0x30
  55309. 801700e: 68ba ldr r2, [r7, #8]
  55310. 8017010: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55311. else
  55312. {
  55313. /* The value could not be written to the task. */
  55314. xReturn = pdFAIL;
  55315. }
  55316. break;
  55317. 8017014: e017 b.n 8017046 <xTaskGenericNotifyFromISR+0x106>
  55318. xReturn = pdFAIL;
  55319. 8017016: 2300 movs r3, #0
  55320. 8017018: 637b str r3, [r7, #52] @ 0x34
  55321. break;
  55322. 801701a: e014 b.n 8017046 <xTaskGenericNotifyFromISR+0x106>
  55323. default:
  55324. /* Should not get here if all enums are handled.
  55325. Artificially force an assert by testing a value the
  55326. compiler can't assume is const. */
  55327. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55328. 801701c: 6b3b ldr r3, [r7, #48] @ 0x30
  55329. 801701e: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55330. 8017022: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55331. 8017026: d00d beq.n 8017044 <xTaskGenericNotifyFromISR+0x104>
  55332. __asm volatile
  55333. 8017028: f04f 0350 mov.w r3, #80 @ 0x50
  55334. 801702c: f383 8811 msr BASEPRI, r3
  55335. 8017030: f3bf 8f6f isb sy
  55336. 8017034: f3bf 8f4f dsb sy
  55337. 8017038: 61bb str r3, [r7, #24]
  55338. }
  55339. 801703a: bf00 nop
  55340. 801703c: bf00 nop
  55341. 801703e: e7fd b.n 801703c <xTaskGenericNotifyFromISR+0xfc>
  55342. break;
  55343. 8017040: bf00 nop
  55344. 8017042: e000 b.n 8017046 <xTaskGenericNotifyFromISR+0x106>
  55345. break;
  55346. 8017044: bf00 nop
  55347. traceTASK_NOTIFY_FROM_ISR();
  55348. /* If the task is in the blocked state specifically to wait for a
  55349. notification then unblock it now. */
  55350. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55351. 8017046: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55352. 801704a: 2b01 cmp r3, #1
  55353. 801704c: d147 bne.n 80170de <xTaskGenericNotifyFromISR+0x19e>
  55354. {
  55355. /* The task should not have been on an event list. */
  55356. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55357. 801704e: 6b3b ldr r3, [r7, #48] @ 0x30
  55358. 8017050: 6a9b ldr r3, [r3, #40] @ 0x28
  55359. 8017052: 2b00 cmp r3, #0
  55360. 8017054: d00b beq.n 801706e <xTaskGenericNotifyFromISR+0x12e>
  55361. __asm volatile
  55362. 8017056: f04f 0350 mov.w r3, #80 @ 0x50
  55363. 801705a: f383 8811 msr BASEPRI, r3
  55364. 801705e: f3bf 8f6f isb sy
  55365. 8017062: f3bf 8f4f dsb sy
  55366. 8017066: 617b str r3, [r7, #20]
  55367. }
  55368. 8017068: bf00 nop
  55369. 801706a: bf00 nop
  55370. 801706c: e7fd b.n 801706a <xTaskGenericNotifyFromISR+0x12a>
  55371. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  55372. 801706e: 4b21 ldr r3, [pc, #132] @ (80170f4 <xTaskGenericNotifyFromISR+0x1b4>)
  55373. 8017070: 681b ldr r3, [r3, #0]
  55374. 8017072: 2b00 cmp r3, #0
  55375. 8017074: d11d bne.n 80170b2 <xTaskGenericNotifyFromISR+0x172>
  55376. {
  55377. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55378. 8017076: 6b3b ldr r3, [r7, #48] @ 0x30
  55379. 8017078: 3304 adds r3, #4
  55380. 801707a: 4618 mov r0, r3
  55381. 801707c: f7fd fc92 bl 80149a4 <uxListRemove>
  55382. prvAddTaskToReadyList( pxTCB );
  55383. 8017080: 6b3b ldr r3, [r7, #48] @ 0x30
  55384. 8017082: 6ada ldr r2, [r3, #44] @ 0x2c
  55385. 8017084: 4b1c ldr r3, [pc, #112] @ (80170f8 <xTaskGenericNotifyFromISR+0x1b8>)
  55386. 8017086: 681b ldr r3, [r3, #0]
  55387. 8017088: 429a cmp r2, r3
  55388. 801708a: d903 bls.n 8017094 <xTaskGenericNotifyFromISR+0x154>
  55389. 801708c: 6b3b ldr r3, [r7, #48] @ 0x30
  55390. 801708e: 6adb ldr r3, [r3, #44] @ 0x2c
  55391. 8017090: 4a19 ldr r2, [pc, #100] @ (80170f8 <xTaskGenericNotifyFromISR+0x1b8>)
  55392. 8017092: 6013 str r3, [r2, #0]
  55393. 8017094: 6b3b ldr r3, [r7, #48] @ 0x30
  55394. 8017096: 6ada ldr r2, [r3, #44] @ 0x2c
  55395. 8017098: 4613 mov r3, r2
  55396. 801709a: 009b lsls r3, r3, #2
  55397. 801709c: 4413 add r3, r2
  55398. 801709e: 009b lsls r3, r3, #2
  55399. 80170a0: 4a16 ldr r2, [pc, #88] @ (80170fc <xTaskGenericNotifyFromISR+0x1bc>)
  55400. 80170a2: 441a add r2, r3
  55401. 80170a4: 6b3b ldr r3, [r7, #48] @ 0x30
  55402. 80170a6: 3304 adds r3, #4
  55403. 80170a8: 4619 mov r1, r3
  55404. 80170aa: 4610 mov r0, r2
  55405. 80170ac: f7fd fc1d bl 80148ea <vListInsertEnd>
  55406. 80170b0: e005 b.n 80170be <xTaskGenericNotifyFromISR+0x17e>
  55407. }
  55408. else
  55409. {
  55410. /* The delayed and ready lists cannot be accessed, so hold
  55411. this task pending until the scheduler is resumed. */
  55412. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  55413. 80170b2: 6b3b ldr r3, [r7, #48] @ 0x30
  55414. 80170b4: 3318 adds r3, #24
  55415. 80170b6: 4619 mov r1, r3
  55416. 80170b8: 4811 ldr r0, [pc, #68] @ (8017100 <xTaskGenericNotifyFromISR+0x1c0>)
  55417. 80170ba: f7fd fc16 bl 80148ea <vListInsertEnd>
  55418. }
  55419. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55420. 80170be: 6b3b ldr r3, [r7, #48] @ 0x30
  55421. 80170c0: 6ada ldr r2, [r3, #44] @ 0x2c
  55422. 80170c2: 4b10 ldr r3, [pc, #64] @ (8017104 <xTaskGenericNotifyFromISR+0x1c4>)
  55423. 80170c4: 681b ldr r3, [r3, #0]
  55424. 80170c6: 6adb ldr r3, [r3, #44] @ 0x2c
  55425. 80170c8: 429a cmp r2, r3
  55426. 80170ca: d908 bls.n 80170de <xTaskGenericNotifyFromISR+0x19e>
  55427. {
  55428. /* The notified task has a priority above the currently
  55429. executing task so a yield is required. */
  55430. if( pxHigherPriorityTaskWoken != NULL )
  55431. 80170cc: 6c3b ldr r3, [r7, #64] @ 0x40
  55432. 80170ce: 2b00 cmp r3, #0
  55433. 80170d0: d002 beq.n 80170d8 <xTaskGenericNotifyFromISR+0x198>
  55434. {
  55435. *pxHigherPriorityTaskWoken = pdTRUE;
  55436. 80170d2: 6c3b ldr r3, [r7, #64] @ 0x40
  55437. 80170d4: 2201 movs r2, #1
  55438. 80170d6: 601a str r2, [r3, #0]
  55439. }
  55440. /* Mark that a yield is pending in case the user is not
  55441. using the "xHigherPriorityTaskWoken" parameter to an ISR
  55442. safe FreeRTOS function. */
  55443. xYieldPending = pdTRUE;
  55444. 80170d8: 4b0b ldr r3, [pc, #44] @ (8017108 <xTaskGenericNotifyFromISR+0x1c8>)
  55445. 80170da: 2201 movs r2, #1
  55446. 80170dc: 601a str r2, [r3, #0]
  55447. 80170de: 6afb ldr r3, [r7, #44] @ 0x2c
  55448. 80170e0: 613b str r3, [r7, #16]
  55449. __asm volatile
  55450. 80170e2: 693b ldr r3, [r7, #16]
  55451. 80170e4: f383 8811 msr BASEPRI, r3
  55452. }
  55453. 80170e8: bf00 nop
  55454. }
  55455. }
  55456. }
  55457. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  55458. return xReturn;
  55459. 80170ea: 6b7b ldr r3, [r7, #52] @ 0x34
  55460. }
  55461. 80170ec: 4618 mov r0, r3
  55462. 80170ee: 3738 adds r7, #56 @ 0x38
  55463. 80170f0: 46bd mov sp, r7
  55464. 80170f2: bd80 pop {r7, pc}
  55465. 80170f4: 24002ef4 .word 0x24002ef4
  55466. 80170f8: 24002ed4 .word 0x24002ed4
  55467. 80170fc: 240029fc .word 0x240029fc
  55468. 8017100: 24002e8c .word 0x24002e8c
  55469. 8017104: 240029f8 .word 0x240029f8
  55470. 8017108: 24002ee0 .word 0x24002ee0
  55471. 0801710c <xTaskNotifyStateClear>:
  55472. /*-----------------------------------------------------------*/
  55473. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55474. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  55475. {
  55476. 801710c: b580 push {r7, lr}
  55477. 801710e: b084 sub sp, #16
  55478. 8017110: af00 add r7, sp, #0
  55479. 8017112: 6078 str r0, [r7, #4]
  55480. TCB_t *pxTCB;
  55481. BaseType_t xReturn;
  55482. /* If null is passed in here then it is the calling task that is having
  55483. its notification state cleared. */
  55484. pxTCB = prvGetTCBFromHandle( xTask );
  55485. 8017114: 687b ldr r3, [r7, #4]
  55486. 8017116: 2b00 cmp r3, #0
  55487. 8017118: d102 bne.n 8017120 <xTaskNotifyStateClear+0x14>
  55488. 801711a: 4b0e ldr r3, [pc, #56] @ (8017154 <xTaskNotifyStateClear+0x48>)
  55489. 801711c: 681b ldr r3, [r3, #0]
  55490. 801711e: e000 b.n 8017122 <xTaskNotifyStateClear+0x16>
  55491. 8017120: 687b ldr r3, [r7, #4]
  55492. 8017122: 60bb str r3, [r7, #8]
  55493. taskENTER_CRITICAL();
  55494. 8017124: f000 fde0 bl 8017ce8 <vPortEnterCritical>
  55495. {
  55496. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  55497. 8017128: 68bb ldr r3, [r7, #8]
  55498. 801712a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55499. 801712e: b2db uxtb r3, r3
  55500. 8017130: 2b02 cmp r3, #2
  55501. 8017132: d106 bne.n 8017142 <xTaskNotifyStateClear+0x36>
  55502. {
  55503. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  55504. 8017134: 68bb ldr r3, [r7, #8]
  55505. 8017136: 2200 movs r2, #0
  55506. 8017138: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55507. xReturn = pdPASS;
  55508. 801713c: 2301 movs r3, #1
  55509. 801713e: 60fb str r3, [r7, #12]
  55510. 8017140: e001 b.n 8017146 <xTaskNotifyStateClear+0x3a>
  55511. }
  55512. else
  55513. {
  55514. xReturn = pdFAIL;
  55515. 8017142: 2300 movs r3, #0
  55516. 8017144: 60fb str r3, [r7, #12]
  55517. }
  55518. }
  55519. taskEXIT_CRITICAL();
  55520. 8017146: f000 fe01 bl 8017d4c <vPortExitCritical>
  55521. return xReturn;
  55522. 801714a: 68fb ldr r3, [r7, #12]
  55523. }
  55524. 801714c: 4618 mov r0, r3
  55525. 801714e: 3710 adds r7, #16
  55526. 8017150: 46bd mov sp, r7
  55527. 8017152: bd80 pop {r7, pc}
  55528. 8017154: 240029f8 .word 0x240029f8
  55529. 08017158 <prvAddCurrentTaskToDelayedList>:
  55530. #endif
  55531. /*-----------------------------------------------------------*/
  55532. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  55533. {
  55534. 8017158: b580 push {r7, lr}
  55535. 801715a: b084 sub sp, #16
  55536. 801715c: af00 add r7, sp, #0
  55537. 801715e: 6078 str r0, [r7, #4]
  55538. 8017160: 6039 str r1, [r7, #0]
  55539. TickType_t xTimeToWake;
  55540. const TickType_t xConstTickCount = xTickCount;
  55541. 8017162: 4b21 ldr r3, [pc, #132] @ (80171e8 <prvAddCurrentTaskToDelayedList+0x90>)
  55542. 8017164: 681b ldr r3, [r3, #0]
  55543. 8017166: 60fb str r3, [r7, #12]
  55544. }
  55545. #endif
  55546. /* Remove the task from the ready list before adding it to the blocked list
  55547. as the same list item is used for both lists. */
  55548. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  55549. 8017168: 4b20 ldr r3, [pc, #128] @ (80171ec <prvAddCurrentTaskToDelayedList+0x94>)
  55550. 801716a: 681b ldr r3, [r3, #0]
  55551. 801716c: 3304 adds r3, #4
  55552. 801716e: 4618 mov r0, r3
  55553. 8017170: f7fd fc18 bl 80149a4 <uxListRemove>
  55554. mtCOVERAGE_TEST_MARKER();
  55555. }
  55556. #if ( INCLUDE_vTaskSuspend == 1 )
  55557. {
  55558. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  55559. 8017174: 687b ldr r3, [r7, #4]
  55560. 8017176: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55561. 801717a: d10a bne.n 8017192 <prvAddCurrentTaskToDelayedList+0x3a>
  55562. 801717c: 683b ldr r3, [r7, #0]
  55563. 801717e: 2b00 cmp r3, #0
  55564. 8017180: d007 beq.n 8017192 <prvAddCurrentTaskToDelayedList+0x3a>
  55565. {
  55566. /* Add the task to the suspended task list instead of a delayed task
  55567. list to ensure it is not woken by a timing event. It will block
  55568. indefinitely. */
  55569. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55570. 8017182: 4b1a ldr r3, [pc, #104] @ (80171ec <prvAddCurrentTaskToDelayedList+0x94>)
  55571. 8017184: 681b ldr r3, [r3, #0]
  55572. 8017186: 3304 adds r3, #4
  55573. 8017188: 4619 mov r1, r3
  55574. 801718a: 4819 ldr r0, [pc, #100] @ (80171f0 <prvAddCurrentTaskToDelayedList+0x98>)
  55575. 801718c: f7fd fbad bl 80148ea <vListInsertEnd>
  55576. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  55577. ( void ) xCanBlockIndefinitely;
  55578. }
  55579. #endif /* INCLUDE_vTaskSuspend */
  55580. }
  55581. 8017190: e026 b.n 80171e0 <prvAddCurrentTaskToDelayedList+0x88>
  55582. xTimeToWake = xConstTickCount + xTicksToWait;
  55583. 8017192: 68fa ldr r2, [r7, #12]
  55584. 8017194: 687b ldr r3, [r7, #4]
  55585. 8017196: 4413 add r3, r2
  55586. 8017198: 60bb str r3, [r7, #8]
  55587. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  55588. 801719a: 4b14 ldr r3, [pc, #80] @ (80171ec <prvAddCurrentTaskToDelayedList+0x94>)
  55589. 801719c: 681b ldr r3, [r3, #0]
  55590. 801719e: 68ba ldr r2, [r7, #8]
  55591. 80171a0: 605a str r2, [r3, #4]
  55592. if( xTimeToWake < xConstTickCount )
  55593. 80171a2: 68ba ldr r2, [r7, #8]
  55594. 80171a4: 68fb ldr r3, [r7, #12]
  55595. 80171a6: 429a cmp r2, r3
  55596. 80171a8: d209 bcs.n 80171be <prvAddCurrentTaskToDelayedList+0x66>
  55597. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55598. 80171aa: 4b12 ldr r3, [pc, #72] @ (80171f4 <prvAddCurrentTaskToDelayedList+0x9c>)
  55599. 80171ac: 681a ldr r2, [r3, #0]
  55600. 80171ae: 4b0f ldr r3, [pc, #60] @ (80171ec <prvAddCurrentTaskToDelayedList+0x94>)
  55601. 80171b0: 681b ldr r3, [r3, #0]
  55602. 80171b2: 3304 adds r3, #4
  55603. 80171b4: 4619 mov r1, r3
  55604. 80171b6: 4610 mov r0, r2
  55605. 80171b8: f7fd fbbb bl 8014932 <vListInsert>
  55606. }
  55607. 80171bc: e010 b.n 80171e0 <prvAddCurrentTaskToDelayedList+0x88>
  55608. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55609. 80171be: 4b0e ldr r3, [pc, #56] @ (80171f8 <prvAddCurrentTaskToDelayedList+0xa0>)
  55610. 80171c0: 681a ldr r2, [r3, #0]
  55611. 80171c2: 4b0a ldr r3, [pc, #40] @ (80171ec <prvAddCurrentTaskToDelayedList+0x94>)
  55612. 80171c4: 681b ldr r3, [r3, #0]
  55613. 80171c6: 3304 adds r3, #4
  55614. 80171c8: 4619 mov r1, r3
  55615. 80171ca: 4610 mov r0, r2
  55616. 80171cc: f7fd fbb1 bl 8014932 <vListInsert>
  55617. if( xTimeToWake < xNextTaskUnblockTime )
  55618. 80171d0: 4b0a ldr r3, [pc, #40] @ (80171fc <prvAddCurrentTaskToDelayedList+0xa4>)
  55619. 80171d2: 681b ldr r3, [r3, #0]
  55620. 80171d4: 68ba ldr r2, [r7, #8]
  55621. 80171d6: 429a cmp r2, r3
  55622. 80171d8: d202 bcs.n 80171e0 <prvAddCurrentTaskToDelayedList+0x88>
  55623. xNextTaskUnblockTime = xTimeToWake;
  55624. 80171da: 4a08 ldr r2, [pc, #32] @ (80171fc <prvAddCurrentTaskToDelayedList+0xa4>)
  55625. 80171dc: 68bb ldr r3, [r7, #8]
  55626. 80171de: 6013 str r3, [r2, #0]
  55627. }
  55628. 80171e0: bf00 nop
  55629. 80171e2: 3710 adds r7, #16
  55630. 80171e4: 46bd mov sp, r7
  55631. 80171e6: bd80 pop {r7, pc}
  55632. 80171e8: 24002ed0 .word 0x24002ed0
  55633. 80171ec: 240029f8 .word 0x240029f8
  55634. 80171f0: 24002eb8 .word 0x24002eb8
  55635. 80171f4: 24002e88 .word 0x24002e88
  55636. 80171f8: 24002e84 .word 0x24002e84
  55637. 80171fc: 24002eec .word 0x24002eec
  55638. 08017200 <xTimerCreateTimerTask>:
  55639. TimerCallbackFunction_t pxCallbackFunction,
  55640. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  55641. /*-----------------------------------------------------------*/
  55642. BaseType_t xTimerCreateTimerTask( void )
  55643. {
  55644. 8017200: b580 push {r7, lr}
  55645. 8017202: b08a sub sp, #40 @ 0x28
  55646. 8017204: af04 add r7, sp, #16
  55647. BaseType_t xReturn = pdFAIL;
  55648. 8017206: 2300 movs r3, #0
  55649. 8017208: 617b str r3, [r7, #20]
  55650. /* This function is called when the scheduler is started if
  55651. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  55652. timer service task has been created/initialised. If timers have already
  55653. been created then the initialisation will already have been performed. */
  55654. prvCheckForValidListAndQueue();
  55655. 801720a: f000 fbb1 bl 8017970 <prvCheckForValidListAndQueue>
  55656. if( xTimerQueue != NULL )
  55657. 801720e: 4b1d ldr r3, [pc, #116] @ (8017284 <xTimerCreateTimerTask+0x84>)
  55658. 8017210: 681b ldr r3, [r3, #0]
  55659. 8017212: 2b00 cmp r3, #0
  55660. 8017214: d021 beq.n 801725a <xTimerCreateTimerTask+0x5a>
  55661. {
  55662. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  55663. {
  55664. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  55665. 8017216: 2300 movs r3, #0
  55666. 8017218: 60fb str r3, [r7, #12]
  55667. StackType_t *pxTimerTaskStackBuffer = NULL;
  55668. 801721a: 2300 movs r3, #0
  55669. 801721c: 60bb str r3, [r7, #8]
  55670. uint32_t ulTimerTaskStackSize;
  55671. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  55672. 801721e: 1d3a adds r2, r7, #4
  55673. 8017220: f107 0108 add.w r1, r7, #8
  55674. 8017224: f107 030c add.w r3, r7, #12
  55675. 8017228: 4618 mov r0, r3
  55676. 801722a: f7fd fb17 bl 801485c <vApplicationGetTimerTaskMemory>
  55677. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  55678. 801722e: 6879 ldr r1, [r7, #4]
  55679. 8017230: 68bb ldr r3, [r7, #8]
  55680. 8017232: 68fa ldr r2, [r7, #12]
  55681. 8017234: 9202 str r2, [sp, #8]
  55682. 8017236: 9301 str r3, [sp, #4]
  55683. 8017238: 2302 movs r3, #2
  55684. 801723a: 9300 str r3, [sp, #0]
  55685. 801723c: 2300 movs r3, #0
  55686. 801723e: 460a mov r2, r1
  55687. 8017240: 4911 ldr r1, [pc, #68] @ (8017288 <xTimerCreateTimerTask+0x88>)
  55688. 8017242: 4812 ldr r0, [pc, #72] @ (801728c <xTimerCreateTimerTask+0x8c>)
  55689. 8017244: f7fe fd2f bl 8015ca6 <xTaskCreateStatic>
  55690. 8017248: 4603 mov r3, r0
  55691. 801724a: 4a11 ldr r2, [pc, #68] @ (8017290 <xTimerCreateTimerTask+0x90>)
  55692. 801724c: 6013 str r3, [r2, #0]
  55693. NULL,
  55694. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  55695. pxTimerTaskStackBuffer,
  55696. pxTimerTaskTCBBuffer );
  55697. if( xTimerTaskHandle != NULL )
  55698. 801724e: 4b10 ldr r3, [pc, #64] @ (8017290 <xTimerCreateTimerTask+0x90>)
  55699. 8017250: 681b ldr r3, [r3, #0]
  55700. 8017252: 2b00 cmp r3, #0
  55701. 8017254: d001 beq.n 801725a <xTimerCreateTimerTask+0x5a>
  55702. {
  55703. xReturn = pdPASS;
  55704. 8017256: 2301 movs r3, #1
  55705. 8017258: 617b str r3, [r7, #20]
  55706. else
  55707. {
  55708. mtCOVERAGE_TEST_MARKER();
  55709. }
  55710. configASSERT( xReturn );
  55711. 801725a: 697b ldr r3, [r7, #20]
  55712. 801725c: 2b00 cmp r3, #0
  55713. 801725e: d10b bne.n 8017278 <xTimerCreateTimerTask+0x78>
  55714. __asm volatile
  55715. 8017260: f04f 0350 mov.w r3, #80 @ 0x50
  55716. 8017264: f383 8811 msr BASEPRI, r3
  55717. 8017268: f3bf 8f6f isb sy
  55718. 801726c: f3bf 8f4f dsb sy
  55719. 8017270: 613b str r3, [r7, #16]
  55720. }
  55721. 8017272: bf00 nop
  55722. 8017274: bf00 nop
  55723. 8017276: e7fd b.n 8017274 <xTimerCreateTimerTask+0x74>
  55724. return xReturn;
  55725. 8017278: 697b ldr r3, [r7, #20]
  55726. }
  55727. 801727a: 4618 mov r0, r3
  55728. 801727c: 3718 adds r7, #24
  55729. 801727e: 46bd mov sp, r7
  55730. 8017280: bd80 pop {r7, pc}
  55731. 8017282: bf00 nop
  55732. 8017284: 24002f28 .word 0x24002f28
  55733. 8017288: 08018688 .word 0x08018688
  55734. 801728c: 08017509 .word 0x08017509
  55735. 8017290: 24002f2c .word 0x24002f2c
  55736. 08017294 <xTimerCreate>:
  55737. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  55738. const TickType_t xTimerPeriodInTicks,
  55739. const UBaseType_t uxAutoReload,
  55740. void * const pvTimerID,
  55741. TimerCallbackFunction_t pxCallbackFunction )
  55742. {
  55743. 8017294: b580 push {r7, lr}
  55744. 8017296: b088 sub sp, #32
  55745. 8017298: af02 add r7, sp, #8
  55746. 801729a: 60f8 str r0, [r7, #12]
  55747. 801729c: 60b9 str r1, [r7, #8]
  55748. 801729e: 607a str r2, [r7, #4]
  55749. 80172a0: 603b str r3, [r7, #0]
  55750. Timer_t *pxNewTimer;
  55751. 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. */
  55752. 80172a2: 202c movs r0, #44 @ 0x2c
  55753. 80172a4: f000 fe42 bl 8017f2c <pvPortMalloc>
  55754. 80172a8: 6178 str r0, [r7, #20]
  55755. if( pxNewTimer != NULL )
  55756. 80172aa: 697b ldr r3, [r7, #20]
  55757. 80172ac: 2b00 cmp r3, #0
  55758. 80172ae: d00d beq.n 80172cc <xTimerCreate+0x38>
  55759. {
  55760. /* Status is thus far zero as the timer is not created statically
  55761. and has not been started. The auto-reload bit may get set in
  55762. prvInitialiseNewTimer. */
  55763. pxNewTimer->ucStatus = 0x00;
  55764. 80172b0: 697b ldr r3, [r7, #20]
  55765. 80172b2: 2200 movs r2, #0
  55766. 80172b4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55767. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55768. 80172b8: 697b ldr r3, [r7, #20]
  55769. 80172ba: 9301 str r3, [sp, #4]
  55770. 80172bc: 6a3b ldr r3, [r7, #32]
  55771. 80172be: 9300 str r3, [sp, #0]
  55772. 80172c0: 683b ldr r3, [r7, #0]
  55773. 80172c2: 687a ldr r2, [r7, #4]
  55774. 80172c4: 68b9 ldr r1, [r7, #8]
  55775. 80172c6: 68f8 ldr r0, [r7, #12]
  55776. 80172c8: f000 f845 bl 8017356 <prvInitialiseNewTimer>
  55777. }
  55778. return pxNewTimer;
  55779. 80172cc: 697b ldr r3, [r7, #20]
  55780. }
  55781. 80172ce: 4618 mov r0, r3
  55782. 80172d0: 3718 adds r7, #24
  55783. 80172d2: 46bd mov sp, r7
  55784. 80172d4: bd80 pop {r7, pc}
  55785. 080172d6 <xTimerCreateStatic>:
  55786. const TickType_t xTimerPeriodInTicks,
  55787. const UBaseType_t uxAutoReload,
  55788. void * const pvTimerID,
  55789. TimerCallbackFunction_t pxCallbackFunction,
  55790. StaticTimer_t *pxTimerBuffer )
  55791. {
  55792. 80172d6: b580 push {r7, lr}
  55793. 80172d8: b08a sub sp, #40 @ 0x28
  55794. 80172da: af02 add r7, sp, #8
  55795. 80172dc: 60f8 str r0, [r7, #12]
  55796. 80172de: 60b9 str r1, [r7, #8]
  55797. 80172e0: 607a str r2, [r7, #4]
  55798. 80172e2: 603b str r3, [r7, #0]
  55799. #if( configASSERT_DEFINED == 1 )
  55800. {
  55801. /* Sanity check that the size of the structure used to declare a
  55802. variable of type StaticTimer_t equals the size of the real timer
  55803. structure. */
  55804. volatile size_t xSize = sizeof( StaticTimer_t );
  55805. 80172e4: 232c movs r3, #44 @ 0x2c
  55806. 80172e6: 613b str r3, [r7, #16]
  55807. configASSERT( xSize == sizeof( Timer_t ) );
  55808. 80172e8: 693b ldr r3, [r7, #16]
  55809. 80172ea: 2b2c cmp r3, #44 @ 0x2c
  55810. 80172ec: d00b beq.n 8017306 <xTimerCreateStatic+0x30>
  55811. __asm volatile
  55812. 80172ee: f04f 0350 mov.w r3, #80 @ 0x50
  55813. 80172f2: f383 8811 msr BASEPRI, r3
  55814. 80172f6: f3bf 8f6f isb sy
  55815. 80172fa: f3bf 8f4f dsb sy
  55816. 80172fe: 61bb str r3, [r7, #24]
  55817. }
  55818. 8017300: bf00 nop
  55819. 8017302: bf00 nop
  55820. 8017304: e7fd b.n 8017302 <xTimerCreateStatic+0x2c>
  55821. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  55822. 8017306: 693b ldr r3, [r7, #16]
  55823. }
  55824. #endif /* configASSERT_DEFINED */
  55825. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  55826. configASSERT( pxTimerBuffer );
  55827. 8017308: 6afb ldr r3, [r7, #44] @ 0x2c
  55828. 801730a: 2b00 cmp r3, #0
  55829. 801730c: d10b bne.n 8017326 <xTimerCreateStatic+0x50>
  55830. __asm volatile
  55831. 801730e: f04f 0350 mov.w r3, #80 @ 0x50
  55832. 8017312: f383 8811 msr BASEPRI, r3
  55833. 8017316: f3bf 8f6f isb sy
  55834. 801731a: f3bf 8f4f dsb sy
  55835. 801731e: 617b str r3, [r7, #20]
  55836. }
  55837. 8017320: bf00 nop
  55838. 8017322: bf00 nop
  55839. 8017324: e7fd b.n 8017322 <xTimerCreateStatic+0x4c>
  55840. 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. */
  55841. 8017326: 6afb ldr r3, [r7, #44] @ 0x2c
  55842. 8017328: 61fb str r3, [r7, #28]
  55843. if( pxNewTimer != NULL )
  55844. 801732a: 69fb ldr r3, [r7, #28]
  55845. 801732c: 2b00 cmp r3, #0
  55846. 801732e: d00d beq.n 801734c <xTimerCreateStatic+0x76>
  55847. {
  55848. /* Timers can be created statically or dynamically so note this
  55849. timer was created statically in case it is later deleted. The
  55850. auto-reload bit may get set in prvInitialiseNewTimer(). */
  55851. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  55852. 8017330: 69fb ldr r3, [r7, #28]
  55853. 8017332: 2202 movs r2, #2
  55854. 8017334: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55855. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55856. 8017338: 69fb ldr r3, [r7, #28]
  55857. 801733a: 9301 str r3, [sp, #4]
  55858. 801733c: 6abb ldr r3, [r7, #40] @ 0x28
  55859. 801733e: 9300 str r3, [sp, #0]
  55860. 8017340: 683b ldr r3, [r7, #0]
  55861. 8017342: 687a ldr r2, [r7, #4]
  55862. 8017344: 68b9 ldr r1, [r7, #8]
  55863. 8017346: 68f8 ldr r0, [r7, #12]
  55864. 8017348: f000 f805 bl 8017356 <prvInitialiseNewTimer>
  55865. }
  55866. return pxNewTimer;
  55867. 801734c: 69fb ldr r3, [r7, #28]
  55868. }
  55869. 801734e: 4618 mov r0, r3
  55870. 8017350: 3720 adds r7, #32
  55871. 8017352: 46bd mov sp, r7
  55872. 8017354: bd80 pop {r7, pc}
  55873. 08017356 <prvInitialiseNewTimer>:
  55874. const TickType_t xTimerPeriodInTicks,
  55875. const UBaseType_t uxAutoReload,
  55876. void * const pvTimerID,
  55877. TimerCallbackFunction_t pxCallbackFunction,
  55878. Timer_t *pxNewTimer )
  55879. {
  55880. 8017356: b580 push {r7, lr}
  55881. 8017358: b086 sub sp, #24
  55882. 801735a: af00 add r7, sp, #0
  55883. 801735c: 60f8 str r0, [r7, #12]
  55884. 801735e: 60b9 str r1, [r7, #8]
  55885. 8017360: 607a str r2, [r7, #4]
  55886. 8017362: 603b str r3, [r7, #0]
  55887. /* 0 is not a valid value for xTimerPeriodInTicks. */
  55888. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  55889. 8017364: 68bb ldr r3, [r7, #8]
  55890. 8017366: 2b00 cmp r3, #0
  55891. 8017368: d10b bne.n 8017382 <prvInitialiseNewTimer+0x2c>
  55892. __asm volatile
  55893. 801736a: f04f 0350 mov.w r3, #80 @ 0x50
  55894. 801736e: f383 8811 msr BASEPRI, r3
  55895. 8017372: f3bf 8f6f isb sy
  55896. 8017376: f3bf 8f4f dsb sy
  55897. 801737a: 617b str r3, [r7, #20]
  55898. }
  55899. 801737c: bf00 nop
  55900. 801737e: bf00 nop
  55901. 8017380: e7fd b.n 801737e <prvInitialiseNewTimer+0x28>
  55902. if( pxNewTimer != NULL )
  55903. 8017382: 6a7b ldr r3, [r7, #36] @ 0x24
  55904. 8017384: 2b00 cmp r3, #0
  55905. 8017386: d01e beq.n 80173c6 <prvInitialiseNewTimer+0x70>
  55906. {
  55907. /* Ensure the infrastructure used by the timer service task has been
  55908. created/initialised. */
  55909. prvCheckForValidListAndQueue();
  55910. 8017388: f000 faf2 bl 8017970 <prvCheckForValidListAndQueue>
  55911. /* Initialise the timer structure members using the function
  55912. parameters. */
  55913. pxNewTimer->pcTimerName = pcTimerName;
  55914. 801738c: 6a7b ldr r3, [r7, #36] @ 0x24
  55915. 801738e: 68fa ldr r2, [r7, #12]
  55916. 8017390: 601a str r2, [r3, #0]
  55917. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  55918. 8017392: 6a7b ldr r3, [r7, #36] @ 0x24
  55919. 8017394: 68ba ldr r2, [r7, #8]
  55920. 8017396: 619a str r2, [r3, #24]
  55921. pxNewTimer->pvTimerID = pvTimerID;
  55922. 8017398: 6a7b ldr r3, [r7, #36] @ 0x24
  55923. 801739a: 683a ldr r2, [r7, #0]
  55924. 801739c: 61da str r2, [r3, #28]
  55925. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  55926. 801739e: 6a7b ldr r3, [r7, #36] @ 0x24
  55927. 80173a0: 6a3a ldr r2, [r7, #32]
  55928. 80173a2: 621a str r2, [r3, #32]
  55929. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  55930. 80173a4: 6a7b ldr r3, [r7, #36] @ 0x24
  55931. 80173a6: 3304 adds r3, #4
  55932. 80173a8: 4618 mov r0, r3
  55933. 80173aa: f7fd fa91 bl 80148d0 <vListInitialiseItem>
  55934. if( uxAutoReload != pdFALSE )
  55935. 80173ae: 687b ldr r3, [r7, #4]
  55936. 80173b0: 2b00 cmp r3, #0
  55937. 80173b2: d008 beq.n 80173c6 <prvInitialiseNewTimer+0x70>
  55938. {
  55939. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  55940. 80173b4: 6a7b ldr r3, [r7, #36] @ 0x24
  55941. 80173b6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55942. 80173ba: f043 0304 orr.w r3, r3, #4
  55943. 80173be: b2da uxtb r2, r3
  55944. 80173c0: 6a7b ldr r3, [r7, #36] @ 0x24
  55945. 80173c2: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55946. }
  55947. traceTIMER_CREATE( pxNewTimer );
  55948. }
  55949. }
  55950. 80173c6: bf00 nop
  55951. 80173c8: 3718 adds r7, #24
  55952. 80173ca: 46bd mov sp, r7
  55953. 80173cc: bd80 pop {r7, pc}
  55954. ...
  55955. 080173d0 <xTimerGenericCommand>:
  55956. /*-----------------------------------------------------------*/
  55957. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  55958. {
  55959. 80173d0: b580 push {r7, lr}
  55960. 80173d2: b08a sub sp, #40 @ 0x28
  55961. 80173d4: af00 add r7, sp, #0
  55962. 80173d6: 60f8 str r0, [r7, #12]
  55963. 80173d8: 60b9 str r1, [r7, #8]
  55964. 80173da: 607a str r2, [r7, #4]
  55965. 80173dc: 603b str r3, [r7, #0]
  55966. BaseType_t xReturn = pdFAIL;
  55967. 80173de: 2300 movs r3, #0
  55968. 80173e0: 627b str r3, [r7, #36] @ 0x24
  55969. DaemonTaskMessage_t xMessage;
  55970. configASSERT( xTimer );
  55971. 80173e2: 68fb ldr r3, [r7, #12]
  55972. 80173e4: 2b00 cmp r3, #0
  55973. 80173e6: d10b bne.n 8017400 <xTimerGenericCommand+0x30>
  55974. __asm volatile
  55975. 80173e8: f04f 0350 mov.w r3, #80 @ 0x50
  55976. 80173ec: f383 8811 msr BASEPRI, r3
  55977. 80173f0: f3bf 8f6f isb sy
  55978. 80173f4: f3bf 8f4f dsb sy
  55979. 80173f8: 623b str r3, [r7, #32]
  55980. }
  55981. 80173fa: bf00 nop
  55982. 80173fc: bf00 nop
  55983. 80173fe: e7fd b.n 80173fc <xTimerGenericCommand+0x2c>
  55984. /* Send a message to the timer service task to perform a particular action
  55985. on a particular timer definition. */
  55986. if( xTimerQueue != NULL )
  55987. 8017400: 4b19 ldr r3, [pc, #100] @ (8017468 <xTimerGenericCommand+0x98>)
  55988. 8017402: 681b ldr r3, [r3, #0]
  55989. 8017404: 2b00 cmp r3, #0
  55990. 8017406: d02a beq.n 801745e <xTimerGenericCommand+0x8e>
  55991. {
  55992. /* Send a command to the timer service task to start the xTimer timer. */
  55993. xMessage.xMessageID = xCommandID;
  55994. 8017408: 68bb ldr r3, [r7, #8]
  55995. 801740a: 613b str r3, [r7, #16]
  55996. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  55997. 801740c: 687b ldr r3, [r7, #4]
  55998. 801740e: 617b str r3, [r7, #20]
  55999. xMessage.u.xTimerParameters.pxTimer = xTimer;
  56000. 8017410: 68fb ldr r3, [r7, #12]
  56001. 8017412: 61bb str r3, [r7, #24]
  56002. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  56003. 8017414: 68bb ldr r3, [r7, #8]
  56004. 8017416: 2b05 cmp r3, #5
  56005. 8017418: dc18 bgt.n 801744c <xTimerGenericCommand+0x7c>
  56006. {
  56007. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  56008. 801741a: f7ff fae1 bl 80169e0 <xTaskGetSchedulerState>
  56009. 801741e: 4603 mov r3, r0
  56010. 8017420: 2b02 cmp r3, #2
  56011. 8017422: d109 bne.n 8017438 <xTimerGenericCommand+0x68>
  56012. {
  56013. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  56014. 8017424: 4b10 ldr r3, [pc, #64] @ (8017468 <xTimerGenericCommand+0x98>)
  56015. 8017426: 6818 ldr r0, [r3, #0]
  56016. 8017428: f107 0110 add.w r1, r7, #16
  56017. 801742c: 2300 movs r3, #0
  56018. 801742e: 6b3a ldr r2, [r7, #48] @ 0x30
  56019. 8017430: f7fd fce0 bl 8014df4 <xQueueGenericSend>
  56020. 8017434: 6278 str r0, [r7, #36] @ 0x24
  56021. 8017436: e012 b.n 801745e <xTimerGenericCommand+0x8e>
  56022. }
  56023. else
  56024. {
  56025. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  56026. 8017438: 4b0b ldr r3, [pc, #44] @ (8017468 <xTimerGenericCommand+0x98>)
  56027. 801743a: 6818 ldr r0, [r3, #0]
  56028. 801743c: f107 0110 add.w r1, r7, #16
  56029. 8017440: 2300 movs r3, #0
  56030. 8017442: 2200 movs r2, #0
  56031. 8017444: f7fd fcd6 bl 8014df4 <xQueueGenericSend>
  56032. 8017448: 6278 str r0, [r7, #36] @ 0x24
  56033. 801744a: e008 b.n 801745e <xTimerGenericCommand+0x8e>
  56034. }
  56035. }
  56036. else
  56037. {
  56038. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  56039. 801744c: 4b06 ldr r3, [pc, #24] @ (8017468 <xTimerGenericCommand+0x98>)
  56040. 801744e: 6818 ldr r0, [r3, #0]
  56041. 8017450: f107 0110 add.w r1, r7, #16
  56042. 8017454: 2300 movs r3, #0
  56043. 8017456: 683a ldr r2, [r7, #0]
  56044. 8017458: f7fd fdce bl 8014ff8 <xQueueGenericSendFromISR>
  56045. 801745c: 6278 str r0, [r7, #36] @ 0x24
  56046. else
  56047. {
  56048. mtCOVERAGE_TEST_MARKER();
  56049. }
  56050. return xReturn;
  56051. 801745e: 6a7b ldr r3, [r7, #36] @ 0x24
  56052. }
  56053. 8017460: 4618 mov r0, r3
  56054. 8017462: 3728 adds r7, #40 @ 0x28
  56055. 8017464: 46bd mov sp, r7
  56056. 8017466: bd80 pop {r7, pc}
  56057. 8017468: 24002f28 .word 0x24002f28
  56058. 0801746c <prvProcessExpiredTimer>:
  56059. return pxTimer->pcTimerName;
  56060. }
  56061. /*-----------------------------------------------------------*/
  56062. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  56063. {
  56064. 801746c: b580 push {r7, lr}
  56065. 801746e: b088 sub sp, #32
  56066. 8017470: af02 add r7, sp, #8
  56067. 8017472: 6078 str r0, [r7, #4]
  56068. 8017474: 6039 str r1, [r7, #0]
  56069. BaseType_t xResult;
  56070. 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. */
  56071. 8017476: 4b23 ldr r3, [pc, #140] @ (8017504 <prvProcessExpiredTimer+0x98>)
  56072. 8017478: 681b ldr r3, [r3, #0]
  56073. 801747a: 68db ldr r3, [r3, #12]
  56074. 801747c: 68db ldr r3, [r3, #12]
  56075. 801747e: 617b str r3, [r7, #20]
  56076. /* Remove the timer from the list of active timers. A check has already
  56077. been performed to ensure the list is not empty. */
  56078. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56079. 8017480: 697b ldr r3, [r7, #20]
  56080. 8017482: 3304 adds r3, #4
  56081. 8017484: 4618 mov r0, r3
  56082. 8017486: f7fd fa8d bl 80149a4 <uxListRemove>
  56083. traceTIMER_EXPIRED( pxTimer );
  56084. /* If the timer is an auto-reload timer then calculate the next
  56085. expiry time and re-insert the timer in the list of active timers. */
  56086. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56087. 801748a: 697b ldr r3, [r7, #20]
  56088. 801748c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56089. 8017490: f003 0304 and.w r3, r3, #4
  56090. 8017494: 2b00 cmp r3, #0
  56091. 8017496: d023 beq.n 80174e0 <prvProcessExpiredTimer+0x74>
  56092. {
  56093. /* The timer is inserted into a list using a time relative to anything
  56094. other than the current time. It will therefore be inserted into the
  56095. correct list relative to the time this task thinks it is now. */
  56096. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  56097. 8017498: 697b ldr r3, [r7, #20]
  56098. 801749a: 699a ldr r2, [r3, #24]
  56099. 801749c: 687b ldr r3, [r7, #4]
  56100. 801749e: 18d1 adds r1, r2, r3
  56101. 80174a0: 687b ldr r3, [r7, #4]
  56102. 80174a2: 683a ldr r2, [r7, #0]
  56103. 80174a4: 6978 ldr r0, [r7, #20]
  56104. 80174a6: f000 f8d5 bl 8017654 <prvInsertTimerInActiveList>
  56105. 80174aa: 4603 mov r3, r0
  56106. 80174ac: 2b00 cmp r3, #0
  56107. 80174ae: d020 beq.n 80174f2 <prvProcessExpiredTimer+0x86>
  56108. {
  56109. /* The timer expired before it was added to the active timer
  56110. list. Reload it now. */
  56111. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56112. 80174b0: 2300 movs r3, #0
  56113. 80174b2: 9300 str r3, [sp, #0]
  56114. 80174b4: 2300 movs r3, #0
  56115. 80174b6: 687a ldr r2, [r7, #4]
  56116. 80174b8: 2100 movs r1, #0
  56117. 80174ba: 6978 ldr r0, [r7, #20]
  56118. 80174bc: f7ff ff88 bl 80173d0 <xTimerGenericCommand>
  56119. 80174c0: 6138 str r0, [r7, #16]
  56120. configASSERT( xResult );
  56121. 80174c2: 693b ldr r3, [r7, #16]
  56122. 80174c4: 2b00 cmp r3, #0
  56123. 80174c6: d114 bne.n 80174f2 <prvProcessExpiredTimer+0x86>
  56124. __asm volatile
  56125. 80174c8: f04f 0350 mov.w r3, #80 @ 0x50
  56126. 80174cc: f383 8811 msr BASEPRI, r3
  56127. 80174d0: f3bf 8f6f isb sy
  56128. 80174d4: f3bf 8f4f dsb sy
  56129. 80174d8: 60fb str r3, [r7, #12]
  56130. }
  56131. 80174da: bf00 nop
  56132. 80174dc: bf00 nop
  56133. 80174de: e7fd b.n 80174dc <prvProcessExpiredTimer+0x70>
  56134. mtCOVERAGE_TEST_MARKER();
  56135. }
  56136. }
  56137. else
  56138. {
  56139. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56140. 80174e0: 697b ldr r3, [r7, #20]
  56141. 80174e2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56142. 80174e6: f023 0301 bic.w r3, r3, #1
  56143. 80174ea: b2da uxtb r2, r3
  56144. 80174ec: 697b ldr r3, [r7, #20]
  56145. 80174ee: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56146. mtCOVERAGE_TEST_MARKER();
  56147. }
  56148. /* Call the timer callback. */
  56149. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56150. 80174f2: 697b ldr r3, [r7, #20]
  56151. 80174f4: 6a1b ldr r3, [r3, #32]
  56152. 80174f6: 6978 ldr r0, [r7, #20]
  56153. 80174f8: 4798 blx r3
  56154. }
  56155. 80174fa: bf00 nop
  56156. 80174fc: 3718 adds r7, #24
  56157. 80174fe: 46bd mov sp, r7
  56158. 8017500: bd80 pop {r7, pc}
  56159. 8017502: bf00 nop
  56160. 8017504: 24002f20 .word 0x24002f20
  56161. 08017508 <prvTimerTask>:
  56162. /*-----------------------------------------------------------*/
  56163. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  56164. {
  56165. 8017508: b580 push {r7, lr}
  56166. 801750a: b084 sub sp, #16
  56167. 801750c: af00 add r7, sp, #0
  56168. 801750e: 6078 str r0, [r7, #4]
  56169. for( ;; )
  56170. {
  56171. /* Query the timers list to see if it contains any timers, and if so,
  56172. obtain the time at which the next timer will expire. */
  56173. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56174. 8017510: f107 0308 add.w r3, r7, #8
  56175. 8017514: 4618 mov r0, r3
  56176. 8017516: f000 f859 bl 80175cc <prvGetNextExpireTime>
  56177. 801751a: 60f8 str r0, [r7, #12]
  56178. /* If a timer has expired, process it. Otherwise, block this task
  56179. until either a timer does expire, or a command is received. */
  56180. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  56181. 801751c: 68bb ldr r3, [r7, #8]
  56182. 801751e: 4619 mov r1, r3
  56183. 8017520: 68f8 ldr r0, [r7, #12]
  56184. 8017522: f000 f805 bl 8017530 <prvProcessTimerOrBlockTask>
  56185. /* Empty the command queue. */
  56186. prvProcessReceivedCommands();
  56187. 8017526: f000 f8d7 bl 80176d8 <prvProcessReceivedCommands>
  56188. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56189. 801752a: bf00 nop
  56190. 801752c: e7f0 b.n 8017510 <prvTimerTask+0x8>
  56191. ...
  56192. 08017530 <prvProcessTimerOrBlockTask>:
  56193. }
  56194. }
  56195. /*-----------------------------------------------------------*/
  56196. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  56197. {
  56198. 8017530: b580 push {r7, lr}
  56199. 8017532: b084 sub sp, #16
  56200. 8017534: af00 add r7, sp, #0
  56201. 8017536: 6078 str r0, [r7, #4]
  56202. 8017538: 6039 str r1, [r7, #0]
  56203. TickType_t xTimeNow;
  56204. BaseType_t xTimerListsWereSwitched;
  56205. vTaskSuspendAll();
  56206. 801753a: f7fe fe17 bl 801616c <vTaskSuspendAll>
  56207. /* Obtain the time now to make an assessment as to whether the timer
  56208. has expired or not. If obtaining the time causes the lists to switch
  56209. then don't process this timer as any timers that remained in the list
  56210. when the lists were switched will have been processed within the
  56211. prvSampleTimeNow() function. */
  56212. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56213. 801753e: f107 0308 add.w r3, r7, #8
  56214. 8017542: 4618 mov r0, r3
  56215. 8017544: f000 f866 bl 8017614 <prvSampleTimeNow>
  56216. 8017548: 60f8 str r0, [r7, #12]
  56217. if( xTimerListsWereSwitched == pdFALSE )
  56218. 801754a: 68bb ldr r3, [r7, #8]
  56219. 801754c: 2b00 cmp r3, #0
  56220. 801754e: d130 bne.n 80175b2 <prvProcessTimerOrBlockTask+0x82>
  56221. {
  56222. /* The tick count has not overflowed, has the timer expired? */
  56223. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  56224. 8017550: 683b ldr r3, [r7, #0]
  56225. 8017552: 2b00 cmp r3, #0
  56226. 8017554: d10a bne.n 801756c <prvProcessTimerOrBlockTask+0x3c>
  56227. 8017556: 687a ldr r2, [r7, #4]
  56228. 8017558: 68fb ldr r3, [r7, #12]
  56229. 801755a: 429a cmp r2, r3
  56230. 801755c: d806 bhi.n 801756c <prvProcessTimerOrBlockTask+0x3c>
  56231. {
  56232. ( void ) xTaskResumeAll();
  56233. 801755e: f7fe fe13 bl 8016188 <xTaskResumeAll>
  56234. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  56235. 8017562: 68f9 ldr r1, [r7, #12]
  56236. 8017564: 6878 ldr r0, [r7, #4]
  56237. 8017566: f7ff ff81 bl 801746c <prvProcessExpiredTimer>
  56238. else
  56239. {
  56240. ( void ) xTaskResumeAll();
  56241. }
  56242. }
  56243. }
  56244. 801756a: e024 b.n 80175b6 <prvProcessTimerOrBlockTask+0x86>
  56245. if( xListWasEmpty != pdFALSE )
  56246. 801756c: 683b ldr r3, [r7, #0]
  56247. 801756e: 2b00 cmp r3, #0
  56248. 8017570: d008 beq.n 8017584 <prvProcessTimerOrBlockTask+0x54>
  56249. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  56250. 8017572: 4b13 ldr r3, [pc, #76] @ (80175c0 <prvProcessTimerOrBlockTask+0x90>)
  56251. 8017574: 681b ldr r3, [r3, #0]
  56252. 8017576: 681b ldr r3, [r3, #0]
  56253. 8017578: 2b00 cmp r3, #0
  56254. 801757a: d101 bne.n 8017580 <prvProcessTimerOrBlockTask+0x50>
  56255. 801757c: 2301 movs r3, #1
  56256. 801757e: e000 b.n 8017582 <prvProcessTimerOrBlockTask+0x52>
  56257. 8017580: 2300 movs r3, #0
  56258. 8017582: 603b str r3, [r7, #0]
  56259. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  56260. 8017584: 4b0f ldr r3, [pc, #60] @ (80175c4 <prvProcessTimerOrBlockTask+0x94>)
  56261. 8017586: 6818 ldr r0, [r3, #0]
  56262. 8017588: 687a ldr r2, [r7, #4]
  56263. 801758a: 68fb ldr r3, [r7, #12]
  56264. 801758c: 1ad3 subs r3, r2, r3
  56265. 801758e: 683a ldr r2, [r7, #0]
  56266. 8017590: 4619 mov r1, r3
  56267. 8017592: f7fe f995 bl 80158c0 <vQueueWaitForMessageRestricted>
  56268. if( xTaskResumeAll() == pdFALSE )
  56269. 8017596: f7fe fdf7 bl 8016188 <xTaskResumeAll>
  56270. 801759a: 4603 mov r3, r0
  56271. 801759c: 2b00 cmp r3, #0
  56272. 801759e: d10a bne.n 80175b6 <prvProcessTimerOrBlockTask+0x86>
  56273. portYIELD_WITHIN_API();
  56274. 80175a0: 4b09 ldr r3, [pc, #36] @ (80175c8 <prvProcessTimerOrBlockTask+0x98>)
  56275. 80175a2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56276. 80175a6: 601a str r2, [r3, #0]
  56277. 80175a8: f3bf 8f4f dsb sy
  56278. 80175ac: f3bf 8f6f isb sy
  56279. }
  56280. 80175b0: e001 b.n 80175b6 <prvProcessTimerOrBlockTask+0x86>
  56281. ( void ) xTaskResumeAll();
  56282. 80175b2: f7fe fde9 bl 8016188 <xTaskResumeAll>
  56283. }
  56284. 80175b6: bf00 nop
  56285. 80175b8: 3710 adds r7, #16
  56286. 80175ba: 46bd mov sp, r7
  56287. 80175bc: bd80 pop {r7, pc}
  56288. 80175be: bf00 nop
  56289. 80175c0: 24002f24 .word 0x24002f24
  56290. 80175c4: 24002f28 .word 0x24002f28
  56291. 80175c8: e000ed04 .word 0xe000ed04
  56292. 080175cc <prvGetNextExpireTime>:
  56293. /*-----------------------------------------------------------*/
  56294. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  56295. {
  56296. 80175cc: b480 push {r7}
  56297. 80175ce: b085 sub sp, #20
  56298. 80175d0: af00 add r7, sp, #0
  56299. 80175d2: 6078 str r0, [r7, #4]
  56300. the timer with the nearest expiry time will expire. If there are no
  56301. active timers then just set the next expire time to 0. That will cause
  56302. this task to unblock when the tick count overflows, at which point the
  56303. timer lists will be switched and the next expiry time can be
  56304. re-assessed. */
  56305. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  56306. 80175d4: 4b0e ldr r3, [pc, #56] @ (8017610 <prvGetNextExpireTime+0x44>)
  56307. 80175d6: 681b ldr r3, [r3, #0]
  56308. 80175d8: 681b ldr r3, [r3, #0]
  56309. 80175da: 2b00 cmp r3, #0
  56310. 80175dc: d101 bne.n 80175e2 <prvGetNextExpireTime+0x16>
  56311. 80175de: 2201 movs r2, #1
  56312. 80175e0: e000 b.n 80175e4 <prvGetNextExpireTime+0x18>
  56313. 80175e2: 2200 movs r2, #0
  56314. 80175e4: 687b ldr r3, [r7, #4]
  56315. 80175e6: 601a str r2, [r3, #0]
  56316. if( *pxListWasEmpty == pdFALSE )
  56317. 80175e8: 687b ldr r3, [r7, #4]
  56318. 80175ea: 681b ldr r3, [r3, #0]
  56319. 80175ec: 2b00 cmp r3, #0
  56320. 80175ee: d105 bne.n 80175fc <prvGetNextExpireTime+0x30>
  56321. {
  56322. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56323. 80175f0: 4b07 ldr r3, [pc, #28] @ (8017610 <prvGetNextExpireTime+0x44>)
  56324. 80175f2: 681b ldr r3, [r3, #0]
  56325. 80175f4: 68db ldr r3, [r3, #12]
  56326. 80175f6: 681b ldr r3, [r3, #0]
  56327. 80175f8: 60fb str r3, [r7, #12]
  56328. 80175fa: e001 b.n 8017600 <prvGetNextExpireTime+0x34>
  56329. }
  56330. else
  56331. {
  56332. /* Ensure the task unblocks when the tick count rolls over. */
  56333. xNextExpireTime = ( TickType_t ) 0U;
  56334. 80175fc: 2300 movs r3, #0
  56335. 80175fe: 60fb str r3, [r7, #12]
  56336. }
  56337. return xNextExpireTime;
  56338. 8017600: 68fb ldr r3, [r7, #12]
  56339. }
  56340. 8017602: 4618 mov r0, r3
  56341. 8017604: 3714 adds r7, #20
  56342. 8017606: 46bd mov sp, r7
  56343. 8017608: f85d 7b04 ldr.w r7, [sp], #4
  56344. 801760c: 4770 bx lr
  56345. 801760e: bf00 nop
  56346. 8017610: 24002f20 .word 0x24002f20
  56347. 08017614 <prvSampleTimeNow>:
  56348. /*-----------------------------------------------------------*/
  56349. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  56350. {
  56351. 8017614: b580 push {r7, lr}
  56352. 8017616: b084 sub sp, #16
  56353. 8017618: af00 add r7, sp, #0
  56354. 801761a: 6078 str r0, [r7, #4]
  56355. TickType_t xTimeNow;
  56356. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  56357. xTimeNow = xTaskGetTickCount();
  56358. 801761c: f7fe fe52 bl 80162c4 <xTaskGetTickCount>
  56359. 8017620: 60f8 str r0, [r7, #12]
  56360. if( xTimeNow < xLastTime )
  56361. 8017622: 4b0b ldr r3, [pc, #44] @ (8017650 <prvSampleTimeNow+0x3c>)
  56362. 8017624: 681b ldr r3, [r3, #0]
  56363. 8017626: 68fa ldr r2, [r7, #12]
  56364. 8017628: 429a cmp r2, r3
  56365. 801762a: d205 bcs.n 8017638 <prvSampleTimeNow+0x24>
  56366. {
  56367. prvSwitchTimerLists();
  56368. 801762c: f000 f93a bl 80178a4 <prvSwitchTimerLists>
  56369. *pxTimerListsWereSwitched = pdTRUE;
  56370. 8017630: 687b ldr r3, [r7, #4]
  56371. 8017632: 2201 movs r2, #1
  56372. 8017634: 601a str r2, [r3, #0]
  56373. 8017636: e002 b.n 801763e <prvSampleTimeNow+0x2a>
  56374. }
  56375. else
  56376. {
  56377. *pxTimerListsWereSwitched = pdFALSE;
  56378. 8017638: 687b ldr r3, [r7, #4]
  56379. 801763a: 2200 movs r2, #0
  56380. 801763c: 601a str r2, [r3, #0]
  56381. }
  56382. xLastTime = xTimeNow;
  56383. 801763e: 4a04 ldr r2, [pc, #16] @ (8017650 <prvSampleTimeNow+0x3c>)
  56384. 8017640: 68fb ldr r3, [r7, #12]
  56385. 8017642: 6013 str r3, [r2, #0]
  56386. return xTimeNow;
  56387. 8017644: 68fb ldr r3, [r7, #12]
  56388. }
  56389. 8017646: 4618 mov r0, r3
  56390. 8017648: 3710 adds r7, #16
  56391. 801764a: 46bd mov sp, r7
  56392. 801764c: bd80 pop {r7, pc}
  56393. 801764e: bf00 nop
  56394. 8017650: 24002f30 .word 0x24002f30
  56395. 08017654 <prvInsertTimerInActiveList>:
  56396. /*-----------------------------------------------------------*/
  56397. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  56398. {
  56399. 8017654: b580 push {r7, lr}
  56400. 8017656: b086 sub sp, #24
  56401. 8017658: af00 add r7, sp, #0
  56402. 801765a: 60f8 str r0, [r7, #12]
  56403. 801765c: 60b9 str r1, [r7, #8]
  56404. 801765e: 607a str r2, [r7, #4]
  56405. 8017660: 603b str r3, [r7, #0]
  56406. BaseType_t xProcessTimerNow = pdFALSE;
  56407. 8017662: 2300 movs r3, #0
  56408. 8017664: 617b str r3, [r7, #20]
  56409. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  56410. 8017666: 68fb ldr r3, [r7, #12]
  56411. 8017668: 68ba ldr r2, [r7, #8]
  56412. 801766a: 605a str r2, [r3, #4]
  56413. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56414. 801766c: 68fb ldr r3, [r7, #12]
  56415. 801766e: 68fa ldr r2, [r7, #12]
  56416. 8017670: 611a str r2, [r3, #16]
  56417. if( xNextExpiryTime <= xTimeNow )
  56418. 8017672: 68ba ldr r2, [r7, #8]
  56419. 8017674: 687b ldr r3, [r7, #4]
  56420. 8017676: 429a cmp r2, r3
  56421. 8017678: d812 bhi.n 80176a0 <prvInsertTimerInActiveList+0x4c>
  56422. {
  56423. /* Has the expiry time elapsed between the command to start/reset a
  56424. timer was issued, and the time the command was processed? */
  56425. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  56426. 801767a: 687a ldr r2, [r7, #4]
  56427. 801767c: 683b ldr r3, [r7, #0]
  56428. 801767e: 1ad2 subs r2, r2, r3
  56429. 8017680: 68fb ldr r3, [r7, #12]
  56430. 8017682: 699b ldr r3, [r3, #24]
  56431. 8017684: 429a cmp r2, r3
  56432. 8017686: d302 bcc.n 801768e <prvInsertTimerInActiveList+0x3a>
  56433. {
  56434. /* The time between a command being issued and the command being
  56435. processed actually exceeds the timers period. */
  56436. xProcessTimerNow = pdTRUE;
  56437. 8017688: 2301 movs r3, #1
  56438. 801768a: 617b str r3, [r7, #20]
  56439. 801768c: e01b b.n 80176c6 <prvInsertTimerInActiveList+0x72>
  56440. }
  56441. else
  56442. {
  56443. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  56444. 801768e: 4b10 ldr r3, [pc, #64] @ (80176d0 <prvInsertTimerInActiveList+0x7c>)
  56445. 8017690: 681a ldr r2, [r3, #0]
  56446. 8017692: 68fb ldr r3, [r7, #12]
  56447. 8017694: 3304 adds r3, #4
  56448. 8017696: 4619 mov r1, r3
  56449. 8017698: 4610 mov r0, r2
  56450. 801769a: f7fd f94a bl 8014932 <vListInsert>
  56451. 801769e: e012 b.n 80176c6 <prvInsertTimerInActiveList+0x72>
  56452. }
  56453. }
  56454. else
  56455. {
  56456. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  56457. 80176a0: 687a ldr r2, [r7, #4]
  56458. 80176a2: 683b ldr r3, [r7, #0]
  56459. 80176a4: 429a cmp r2, r3
  56460. 80176a6: d206 bcs.n 80176b6 <prvInsertTimerInActiveList+0x62>
  56461. 80176a8: 68ba ldr r2, [r7, #8]
  56462. 80176aa: 683b ldr r3, [r7, #0]
  56463. 80176ac: 429a cmp r2, r3
  56464. 80176ae: d302 bcc.n 80176b6 <prvInsertTimerInActiveList+0x62>
  56465. {
  56466. /* If, since the command was issued, the tick count has overflowed
  56467. but the expiry time has not, then the timer must have already passed
  56468. its expiry time and should be processed immediately. */
  56469. xProcessTimerNow = pdTRUE;
  56470. 80176b0: 2301 movs r3, #1
  56471. 80176b2: 617b str r3, [r7, #20]
  56472. 80176b4: e007 b.n 80176c6 <prvInsertTimerInActiveList+0x72>
  56473. }
  56474. else
  56475. {
  56476. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56477. 80176b6: 4b07 ldr r3, [pc, #28] @ (80176d4 <prvInsertTimerInActiveList+0x80>)
  56478. 80176b8: 681a ldr r2, [r3, #0]
  56479. 80176ba: 68fb ldr r3, [r7, #12]
  56480. 80176bc: 3304 adds r3, #4
  56481. 80176be: 4619 mov r1, r3
  56482. 80176c0: 4610 mov r0, r2
  56483. 80176c2: f7fd f936 bl 8014932 <vListInsert>
  56484. }
  56485. }
  56486. return xProcessTimerNow;
  56487. 80176c6: 697b ldr r3, [r7, #20]
  56488. }
  56489. 80176c8: 4618 mov r0, r3
  56490. 80176ca: 3718 adds r7, #24
  56491. 80176cc: 46bd mov sp, r7
  56492. 80176ce: bd80 pop {r7, pc}
  56493. 80176d0: 24002f24 .word 0x24002f24
  56494. 80176d4: 24002f20 .word 0x24002f20
  56495. 080176d8 <prvProcessReceivedCommands>:
  56496. /*-----------------------------------------------------------*/
  56497. static void prvProcessReceivedCommands( void )
  56498. {
  56499. 80176d8: b580 push {r7, lr}
  56500. 80176da: b08e sub sp, #56 @ 0x38
  56501. 80176dc: af02 add r7, sp, #8
  56502. DaemonTaskMessage_t xMessage;
  56503. Timer_t *pxTimer;
  56504. BaseType_t xTimerListsWereSwitched, xResult;
  56505. TickType_t xTimeNow;
  56506. 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. */
  56507. 80176de: e0ce b.n 801787e <prvProcessReceivedCommands+0x1a6>
  56508. {
  56509. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  56510. {
  56511. /* Negative commands are pended function calls rather than timer
  56512. commands. */
  56513. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  56514. 80176e0: 687b ldr r3, [r7, #4]
  56515. 80176e2: 2b00 cmp r3, #0
  56516. 80176e4: da19 bge.n 801771a <prvProcessReceivedCommands+0x42>
  56517. {
  56518. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  56519. 80176e6: 1d3b adds r3, r7, #4
  56520. 80176e8: 3304 adds r3, #4
  56521. 80176ea: 62fb str r3, [r7, #44] @ 0x2c
  56522. /* The timer uses the xCallbackParameters member to request a
  56523. callback be executed. Check the callback is not NULL. */
  56524. configASSERT( pxCallback );
  56525. 80176ec: 6afb ldr r3, [r7, #44] @ 0x2c
  56526. 80176ee: 2b00 cmp r3, #0
  56527. 80176f0: d10b bne.n 801770a <prvProcessReceivedCommands+0x32>
  56528. __asm volatile
  56529. 80176f2: f04f 0350 mov.w r3, #80 @ 0x50
  56530. 80176f6: f383 8811 msr BASEPRI, r3
  56531. 80176fa: f3bf 8f6f isb sy
  56532. 80176fe: f3bf 8f4f dsb sy
  56533. 8017702: 61fb str r3, [r7, #28]
  56534. }
  56535. 8017704: bf00 nop
  56536. 8017706: bf00 nop
  56537. 8017708: e7fd b.n 8017706 <prvProcessReceivedCommands+0x2e>
  56538. /* Call the function. */
  56539. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  56540. 801770a: 6afb ldr r3, [r7, #44] @ 0x2c
  56541. 801770c: 681b ldr r3, [r3, #0]
  56542. 801770e: 6afa ldr r2, [r7, #44] @ 0x2c
  56543. 8017710: 6850 ldr r0, [r2, #4]
  56544. 8017712: 6afa ldr r2, [r7, #44] @ 0x2c
  56545. 8017714: 6892 ldr r2, [r2, #8]
  56546. 8017716: 4611 mov r1, r2
  56547. 8017718: 4798 blx r3
  56548. }
  56549. #endif /* INCLUDE_xTimerPendFunctionCall */
  56550. /* Commands that are positive are timer commands rather than pended
  56551. function calls. */
  56552. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  56553. 801771a: 687b ldr r3, [r7, #4]
  56554. 801771c: 2b00 cmp r3, #0
  56555. 801771e: f2c0 80ae blt.w 801787e <prvProcessReceivedCommands+0x1a6>
  56556. {
  56557. /* The messages uses the xTimerParameters member to work on a
  56558. software timer. */
  56559. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  56560. 8017722: 68fb ldr r3, [r7, #12]
  56561. 8017724: 62bb str r3, [r7, #40] @ 0x28
  56562. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  56563. 8017726: 6abb ldr r3, [r7, #40] @ 0x28
  56564. 8017728: 695b ldr r3, [r3, #20]
  56565. 801772a: 2b00 cmp r3, #0
  56566. 801772c: d004 beq.n 8017738 <prvProcessReceivedCommands+0x60>
  56567. {
  56568. /* The timer is in a list, remove it. */
  56569. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56570. 801772e: 6abb ldr r3, [r7, #40] @ 0x28
  56571. 8017730: 3304 adds r3, #4
  56572. 8017732: 4618 mov r0, r3
  56573. 8017734: f7fd f936 bl 80149a4 <uxListRemove>
  56574. it must be present in the function call. prvSampleTimeNow() must be
  56575. called after the message is received from xTimerQueue so there is no
  56576. possibility of a higher priority task adding a message to the message
  56577. queue with a time that is ahead of the timer daemon task (because it
  56578. pre-empted the timer daemon task after the xTimeNow value was set). */
  56579. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56580. 8017738: 463b mov r3, r7
  56581. 801773a: 4618 mov r0, r3
  56582. 801773c: f7ff ff6a bl 8017614 <prvSampleTimeNow>
  56583. 8017740: 6278 str r0, [r7, #36] @ 0x24
  56584. switch( xMessage.xMessageID )
  56585. 8017742: 687b ldr r3, [r7, #4]
  56586. 8017744: 2b09 cmp r3, #9
  56587. 8017746: f200 8097 bhi.w 8017878 <prvProcessReceivedCommands+0x1a0>
  56588. 801774a: a201 add r2, pc, #4 @ (adr r2, 8017750 <prvProcessReceivedCommands+0x78>)
  56589. 801774c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  56590. 8017750: 08017779 .word 0x08017779
  56591. 8017754: 08017779 .word 0x08017779
  56592. 8017758: 08017779 .word 0x08017779
  56593. 801775c: 080177ef .word 0x080177ef
  56594. 8017760: 08017803 .word 0x08017803
  56595. 8017764: 0801784f .word 0x0801784f
  56596. 8017768: 08017779 .word 0x08017779
  56597. 801776c: 08017779 .word 0x08017779
  56598. 8017770: 080177ef .word 0x080177ef
  56599. 8017774: 08017803 .word 0x08017803
  56600. case tmrCOMMAND_START_FROM_ISR :
  56601. case tmrCOMMAND_RESET :
  56602. case tmrCOMMAND_RESET_FROM_ISR :
  56603. case tmrCOMMAND_START_DONT_TRACE :
  56604. /* Start or restart a timer. */
  56605. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56606. 8017778: 6abb ldr r3, [r7, #40] @ 0x28
  56607. 801777a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56608. 801777e: f043 0301 orr.w r3, r3, #1
  56609. 8017782: b2da uxtb r2, r3
  56610. 8017784: 6abb ldr r3, [r7, #40] @ 0x28
  56611. 8017786: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56612. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  56613. 801778a: 68ba ldr r2, [r7, #8]
  56614. 801778c: 6abb ldr r3, [r7, #40] @ 0x28
  56615. 801778e: 699b ldr r3, [r3, #24]
  56616. 8017790: 18d1 adds r1, r2, r3
  56617. 8017792: 68bb ldr r3, [r7, #8]
  56618. 8017794: 6a7a ldr r2, [r7, #36] @ 0x24
  56619. 8017796: 6ab8 ldr r0, [r7, #40] @ 0x28
  56620. 8017798: f7ff ff5c bl 8017654 <prvInsertTimerInActiveList>
  56621. 801779c: 4603 mov r3, r0
  56622. 801779e: 2b00 cmp r3, #0
  56623. 80177a0: d06c beq.n 801787c <prvProcessReceivedCommands+0x1a4>
  56624. {
  56625. /* The timer expired before it was added to the active
  56626. timer list. Process it now. */
  56627. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56628. 80177a2: 6abb ldr r3, [r7, #40] @ 0x28
  56629. 80177a4: 6a1b ldr r3, [r3, #32]
  56630. 80177a6: 6ab8 ldr r0, [r7, #40] @ 0x28
  56631. 80177a8: 4798 blx r3
  56632. traceTIMER_EXPIRED( pxTimer );
  56633. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56634. 80177aa: 6abb ldr r3, [r7, #40] @ 0x28
  56635. 80177ac: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56636. 80177b0: f003 0304 and.w r3, r3, #4
  56637. 80177b4: 2b00 cmp r3, #0
  56638. 80177b6: d061 beq.n 801787c <prvProcessReceivedCommands+0x1a4>
  56639. {
  56640. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  56641. 80177b8: 68ba ldr r2, [r7, #8]
  56642. 80177ba: 6abb ldr r3, [r7, #40] @ 0x28
  56643. 80177bc: 699b ldr r3, [r3, #24]
  56644. 80177be: 441a add r2, r3
  56645. 80177c0: 2300 movs r3, #0
  56646. 80177c2: 9300 str r3, [sp, #0]
  56647. 80177c4: 2300 movs r3, #0
  56648. 80177c6: 2100 movs r1, #0
  56649. 80177c8: 6ab8 ldr r0, [r7, #40] @ 0x28
  56650. 80177ca: f7ff fe01 bl 80173d0 <xTimerGenericCommand>
  56651. 80177ce: 6238 str r0, [r7, #32]
  56652. configASSERT( xResult );
  56653. 80177d0: 6a3b ldr r3, [r7, #32]
  56654. 80177d2: 2b00 cmp r3, #0
  56655. 80177d4: d152 bne.n 801787c <prvProcessReceivedCommands+0x1a4>
  56656. __asm volatile
  56657. 80177d6: f04f 0350 mov.w r3, #80 @ 0x50
  56658. 80177da: f383 8811 msr BASEPRI, r3
  56659. 80177de: f3bf 8f6f isb sy
  56660. 80177e2: f3bf 8f4f dsb sy
  56661. 80177e6: 61bb str r3, [r7, #24]
  56662. }
  56663. 80177e8: bf00 nop
  56664. 80177ea: bf00 nop
  56665. 80177ec: e7fd b.n 80177ea <prvProcessReceivedCommands+0x112>
  56666. break;
  56667. case tmrCOMMAND_STOP :
  56668. case tmrCOMMAND_STOP_FROM_ISR :
  56669. /* The timer has already been removed from the active list. */
  56670. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56671. 80177ee: 6abb ldr r3, [r7, #40] @ 0x28
  56672. 80177f0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56673. 80177f4: f023 0301 bic.w r3, r3, #1
  56674. 80177f8: b2da uxtb r2, r3
  56675. 80177fa: 6abb ldr r3, [r7, #40] @ 0x28
  56676. 80177fc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56677. break;
  56678. 8017800: e03d b.n 801787e <prvProcessReceivedCommands+0x1a6>
  56679. case tmrCOMMAND_CHANGE_PERIOD :
  56680. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  56681. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56682. 8017802: 6abb ldr r3, [r7, #40] @ 0x28
  56683. 8017804: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56684. 8017808: f043 0301 orr.w r3, r3, #1
  56685. 801780c: b2da uxtb r2, r3
  56686. 801780e: 6abb ldr r3, [r7, #40] @ 0x28
  56687. 8017810: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56688. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  56689. 8017814: 68ba ldr r2, [r7, #8]
  56690. 8017816: 6abb ldr r3, [r7, #40] @ 0x28
  56691. 8017818: 619a str r2, [r3, #24]
  56692. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  56693. 801781a: 6abb ldr r3, [r7, #40] @ 0x28
  56694. 801781c: 699b ldr r3, [r3, #24]
  56695. 801781e: 2b00 cmp r3, #0
  56696. 8017820: d10b bne.n 801783a <prvProcessReceivedCommands+0x162>
  56697. __asm volatile
  56698. 8017822: f04f 0350 mov.w r3, #80 @ 0x50
  56699. 8017826: f383 8811 msr BASEPRI, r3
  56700. 801782a: f3bf 8f6f isb sy
  56701. 801782e: f3bf 8f4f dsb sy
  56702. 8017832: 617b str r3, [r7, #20]
  56703. }
  56704. 8017834: bf00 nop
  56705. 8017836: bf00 nop
  56706. 8017838: e7fd b.n 8017836 <prvProcessReceivedCommands+0x15e>
  56707. be longer or shorter than the old one. The command time is
  56708. therefore set to the current time, and as the period cannot
  56709. be zero the next expiry time can only be in the future,
  56710. meaning (unlike for the xTimerStart() case above) there is
  56711. no fail case that needs to be handled here. */
  56712. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  56713. 801783a: 6abb ldr r3, [r7, #40] @ 0x28
  56714. 801783c: 699a ldr r2, [r3, #24]
  56715. 801783e: 6a7b ldr r3, [r7, #36] @ 0x24
  56716. 8017840: 18d1 adds r1, r2, r3
  56717. 8017842: 6a7b ldr r3, [r7, #36] @ 0x24
  56718. 8017844: 6a7a ldr r2, [r7, #36] @ 0x24
  56719. 8017846: 6ab8 ldr r0, [r7, #40] @ 0x28
  56720. 8017848: f7ff ff04 bl 8017654 <prvInsertTimerInActiveList>
  56721. break;
  56722. 801784c: e017 b.n 801787e <prvProcessReceivedCommands+0x1a6>
  56723. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  56724. {
  56725. /* The timer has already been removed from the active list,
  56726. just free up the memory if the memory was dynamically
  56727. allocated. */
  56728. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  56729. 801784e: 6abb ldr r3, [r7, #40] @ 0x28
  56730. 8017850: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56731. 8017854: f003 0302 and.w r3, r3, #2
  56732. 8017858: 2b00 cmp r3, #0
  56733. 801785a: d103 bne.n 8017864 <prvProcessReceivedCommands+0x18c>
  56734. {
  56735. vPortFree( pxTimer );
  56736. 801785c: 6ab8 ldr r0, [r7, #40] @ 0x28
  56737. 801785e: f000 fc33 bl 80180c8 <vPortFree>
  56738. no need to free the memory - just mark the timer as
  56739. "not active". */
  56740. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56741. }
  56742. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  56743. break;
  56744. 8017862: e00c b.n 801787e <prvProcessReceivedCommands+0x1a6>
  56745. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56746. 8017864: 6abb ldr r3, [r7, #40] @ 0x28
  56747. 8017866: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56748. 801786a: f023 0301 bic.w r3, r3, #1
  56749. 801786e: b2da uxtb r2, r3
  56750. 8017870: 6abb ldr r3, [r7, #40] @ 0x28
  56751. 8017872: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56752. break;
  56753. 8017876: e002 b.n 801787e <prvProcessReceivedCommands+0x1a6>
  56754. default :
  56755. /* Don't expect to get here. */
  56756. break;
  56757. 8017878: bf00 nop
  56758. 801787a: e000 b.n 801787e <prvProcessReceivedCommands+0x1a6>
  56759. break;
  56760. 801787c: bf00 nop
  56761. 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. */
  56762. 801787e: 4b08 ldr r3, [pc, #32] @ (80178a0 <prvProcessReceivedCommands+0x1c8>)
  56763. 8017880: 681b ldr r3, [r3, #0]
  56764. 8017882: 1d39 adds r1, r7, #4
  56765. 8017884: 2200 movs r2, #0
  56766. 8017886: 4618 mov r0, r3
  56767. 8017888: f7fd fc54 bl 8015134 <xQueueReceive>
  56768. 801788c: 4603 mov r3, r0
  56769. 801788e: 2b00 cmp r3, #0
  56770. 8017890: f47f af26 bne.w 80176e0 <prvProcessReceivedCommands+0x8>
  56771. }
  56772. }
  56773. }
  56774. }
  56775. 8017894: bf00 nop
  56776. 8017896: bf00 nop
  56777. 8017898: 3730 adds r7, #48 @ 0x30
  56778. 801789a: 46bd mov sp, r7
  56779. 801789c: bd80 pop {r7, pc}
  56780. 801789e: bf00 nop
  56781. 80178a0: 24002f28 .word 0x24002f28
  56782. 080178a4 <prvSwitchTimerLists>:
  56783. /*-----------------------------------------------------------*/
  56784. static void prvSwitchTimerLists( void )
  56785. {
  56786. 80178a4: b580 push {r7, lr}
  56787. 80178a6: b088 sub sp, #32
  56788. 80178a8: af02 add r7, sp, #8
  56789. /* The tick count has overflowed. The timer lists must be switched.
  56790. If there are any timers still referenced from the current timer list
  56791. then they must have expired and should be processed before the lists
  56792. are switched. */
  56793. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56794. 80178aa: e049 b.n 8017940 <prvSwitchTimerLists+0x9c>
  56795. {
  56796. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56797. 80178ac: 4b2e ldr r3, [pc, #184] @ (8017968 <prvSwitchTimerLists+0xc4>)
  56798. 80178ae: 681b ldr r3, [r3, #0]
  56799. 80178b0: 68db ldr r3, [r3, #12]
  56800. 80178b2: 681b ldr r3, [r3, #0]
  56801. 80178b4: 613b str r3, [r7, #16]
  56802. /* Remove the timer from the list. */
  56803. 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. */
  56804. 80178b6: 4b2c ldr r3, [pc, #176] @ (8017968 <prvSwitchTimerLists+0xc4>)
  56805. 80178b8: 681b ldr r3, [r3, #0]
  56806. 80178ba: 68db ldr r3, [r3, #12]
  56807. 80178bc: 68db ldr r3, [r3, #12]
  56808. 80178be: 60fb str r3, [r7, #12]
  56809. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56810. 80178c0: 68fb ldr r3, [r7, #12]
  56811. 80178c2: 3304 adds r3, #4
  56812. 80178c4: 4618 mov r0, r3
  56813. 80178c6: f7fd f86d bl 80149a4 <uxListRemove>
  56814. traceTIMER_EXPIRED( pxTimer );
  56815. /* Execute its callback, then send a command to restart the timer if
  56816. it is an auto-reload timer. It cannot be restarted here as the lists
  56817. have not yet been switched. */
  56818. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56819. 80178ca: 68fb ldr r3, [r7, #12]
  56820. 80178cc: 6a1b ldr r3, [r3, #32]
  56821. 80178ce: 68f8 ldr r0, [r7, #12]
  56822. 80178d0: 4798 blx r3
  56823. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56824. 80178d2: 68fb ldr r3, [r7, #12]
  56825. 80178d4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56826. 80178d8: f003 0304 and.w r3, r3, #4
  56827. 80178dc: 2b00 cmp r3, #0
  56828. 80178de: d02f beq.n 8017940 <prvSwitchTimerLists+0x9c>
  56829. the timer going into the same timer list then it has already expired
  56830. and the timer should be re-inserted into the current list so it is
  56831. processed again within this loop. Otherwise a command should be sent
  56832. to restart the timer to ensure it is only inserted into a list after
  56833. the lists have been swapped. */
  56834. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  56835. 80178e0: 68fb ldr r3, [r7, #12]
  56836. 80178e2: 699b ldr r3, [r3, #24]
  56837. 80178e4: 693a ldr r2, [r7, #16]
  56838. 80178e6: 4413 add r3, r2
  56839. 80178e8: 60bb str r3, [r7, #8]
  56840. if( xReloadTime > xNextExpireTime )
  56841. 80178ea: 68ba ldr r2, [r7, #8]
  56842. 80178ec: 693b ldr r3, [r7, #16]
  56843. 80178ee: 429a cmp r2, r3
  56844. 80178f0: d90e bls.n 8017910 <prvSwitchTimerLists+0x6c>
  56845. {
  56846. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  56847. 80178f2: 68fb ldr r3, [r7, #12]
  56848. 80178f4: 68ba ldr r2, [r7, #8]
  56849. 80178f6: 605a str r2, [r3, #4]
  56850. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56851. 80178f8: 68fb ldr r3, [r7, #12]
  56852. 80178fa: 68fa ldr r2, [r7, #12]
  56853. 80178fc: 611a str r2, [r3, #16]
  56854. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56855. 80178fe: 4b1a ldr r3, [pc, #104] @ (8017968 <prvSwitchTimerLists+0xc4>)
  56856. 8017900: 681a ldr r2, [r3, #0]
  56857. 8017902: 68fb ldr r3, [r7, #12]
  56858. 8017904: 3304 adds r3, #4
  56859. 8017906: 4619 mov r1, r3
  56860. 8017908: 4610 mov r0, r2
  56861. 801790a: f7fd f812 bl 8014932 <vListInsert>
  56862. 801790e: e017 b.n 8017940 <prvSwitchTimerLists+0x9c>
  56863. }
  56864. else
  56865. {
  56866. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56867. 8017910: 2300 movs r3, #0
  56868. 8017912: 9300 str r3, [sp, #0]
  56869. 8017914: 2300 movs r3, #0
  56870. 8017916: 693a ldr r2, [r7, #16]
  56871. 8017918: 2100 movs r1, #0
  56872. 801791a: 68f8 ldr r0, [r7, #12]
  56873. 801791c: f7ff fd58 bl 80173d0 <xTimerGenericCommand>
  56874. 8017920: 6078 str r0, [r7, #4]
  56875. configASSERT( xResult );
  56876. 8017922: 687b ldr r3, [r7, #4]
  56877. 8017924: 2b00 cmp r3, #0
  56878. 8017926: d10b bne.n 8017940 <prvSwitchTimerLists+0x9c>
  56879. __asm volatile
  56880. 8017928: f04f 0350 mov.w r3, #80 @ 0x50
  56881. 801792c: f383 8811 msr BASEPRI, r3
  56882. 8017930: f3bf 8f6f isb sy
  56883. 8017934: f3bf 8f4f dsb sy
  56884. 8017938: 603b str r3, [r7, #0]
  56885. }
  56886. 801793a: bf00 nop
  56887. 801793c: bf00 nop
  56888. 801793e: e7fd b.n 801793c <prvSwitchTimerLists+0x98>
  56889. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56890. 8017940: 4b09 ldr r3, [pc, #36] @ (8017968 <prvSwitchTimerLists+0xc4>)
  56891. 8017942: 681b ldr r3, [r3, #0]
  56892. 8017944: 681b ldr r3, [r3, #0]
  56893. 8017946: 2b00 cmp r3, #0
  56894. 8017948: d1b0 bne.n 80178ac <prvSwitchTimerLists+0x8>
  56895. {
  56896. mtCOVERAGE_TEST_MARKER();
  56897. }
  56898. }
  56899. pxTemp = pxCurrentTimerList;
  56900. 801794a: 4b07 ldr r3, [pc, #28] @ (8017968 <prvSwitchTimerLists+0xc4>)
  56901. 801794c: 681b ldr r3, [r3, #0]
  56902. 801794e: 617b str r3, [r7, #20]
  56903. pxCurrentTimerList = pxOverflowTimerList;
  56904. 8017950: 4b06 ldr r3, [pc, #24] @ (801796c <prvSwitchTimerLists+0xc8>)
  56905. 8017952: 681b ldr r3, [r3, #0]
  56906. 8017954: 4a04 ldr r2, [pc, #16] @ (8017968 <prvSwitchTimerLists+0xc4>)
  56907. 8017956: 6013 str r3, [r2, #0]
  56908. pxOverflowTimerList = pxTemp;
  56909. 8017958: 4a04 ldr r2, [pc, #16] @ (801796c <prvSwitchTimerLists+0xc8>)
  56910. 801795a: 697b ldr r3, [r7, #20]
  56911. 801795c: 6013 str r3, [r2, #0]
  56912. }
  56913. 801795e: bf00 nop
  56914. 8017960: 3718 adds r7, #24
  56915. 8017962: 46bd mov sp, r7
  56916. 8017964: bd80 pop {r7, pc}
  56917. 8017966: bf00 nop
  56918. 8017968: 24002f20 .word 0x24002f20
  56919. 801796c: 24002f24 .word 0x24002f24
  56920. 08017970 <prvCheckForValidListAndQueue>:
  56921. /*-----------------------------------------------------------*/
  56922. static void prvCheckForValidListAndQueue( void )
  56923. {
  56924. 8017970: b580 push {r7, lr}
  56925. 8017972: b082 sub sp, #8
  56926. 8017974: af02 add r7, sp, #8
  56927. /* Check that the list from which active timers are referenced, and the
  56928. queue used to communicate with the timer service, have been
  56929. initialised. */
  56930. taskENTER_CRITICAL();
  56931. 8017976: f000 f9b7 bl 8017ce8 <vPortEnterCritical>
  56932. {
  56933. if( xTimerQueue == NULL )
  56934. 801797a: 4b15 ldr r3, [pc, #84] @ (80179d0 <prvCheckForValidListAndQueue+0x60>)
  56935. 801797c: 681b ldr r3, [r3, #0]
  56936. 801797e: 2b00 cmp r3, #0
  56937. 8017980: d120 bne.n 80179c4 <prvCheckForValidListAndQueue+0x54>
  56938. {
  56939. vListInitialise( &xActiveTimerList1 );
  56940. 8017982: 4814 ldr r0, [pc, #80] @ (80179d4 <prvCheckForValidListAndQueue+0x64>)
  56941. 8017984: f7fc ff84 bl 8014890 <vListInitialise>
  56942. vListInitialise( &xActiveTimerList2 );
  56943. 8017988: 4813 ldr r0, [pc, #76] @ (80179d8 <prvCheckForValidListAndQueue+0x68>)
  56944. 801798a: f7fc ff81 bl 8014890 <vListInitialise>
  56945. pxCurrentTimerList = &xActiveTimerList1;
  56946. 801798e: 4b13 ldr r3, [pc, #76] @ (80179dc <prvCheckForValidListAndQueue+0x6c>)
  56947. 8017990: 4a10 ldr r2, [pc, #64] @ (80179d4 <prvCheckForValidListAndQueue+0x64>)
  56948. 8017992: 601a str r2, [r3, #0]
  56949. pxOverflowTimerList = &xActiveTimerList2;
  56950. 8017994: 4b12 ldr r3, [pc, #72] @ (80179e0 <prvCheckForValidListAndQueue+0x70>)
  56951. 8017996: 4a10 ldr r2, [pc, #64] @ (80179d8 <prvCheckForValidListAndQueue+0x68>)
  56952. 8017998: 601a str r2, [r3, #0]
  56953. /* The timer queue is allocated statically in case
  56954. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  56955. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  56956. 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. */
  56957. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  56958. 801799a: 2300 movs r3, #0
  56959. 801799c: 9300 str r3, [sp, #0]
  56960. 801799e: 4b11 ldr r3, [pc, #68] @ (80179e4 <prvCheckForValidListAndQueue+0x74>)
  56961. 80179a0: 4a11 ldr r2, [pc, #68] @ (80179e8 <prvCheckForValidListAndQueue+0x78>)
  56962. 80179a2: 2110 movs r1, #16
  56963. 80179a4: 200a movs r0, #10
  56964. 80179a6: f7fd f891 bl 8014acc <xQueueGenericCreateStatic>
  56965. 80179aa: 4603 mov r3, r0
  56966. 80179ac: 4a08 ldr r2, [pc, #32] @ (80179d0 <prvCheckForValidListAndQueue+0x60>)
  56967. 80179ae: 6013 str r3, [r2, #0]
  56968. }
  56969. #endif
  56970. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  56971. {
  56972. if( xTimerQueue != NULL )
  56973. 80179b0: 4b07 ldr r3, [pc, #28] @ (80179d0 <prvCheckForValidListAndQueue+0x60>)
  56974. 80179b2: 681b ldr r3, [r3, #0]
  56975. 80179b4: 2b00 cmp r3, #0
  56976. 80179b6: d005 beq.n 80179c4 <prvCheckForValidListAndQueue+0x54>
  56977. {
  56978. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  56979. 80179b8: 4b05 ldr r3, [pc, #20] @ (80179d0 <prvCheckForValidListAndQueue+0x60>)
  56980. 80179ba: 681b ldr r3, [r3, #0]
  56981. 80179bc: 490b ldr r1, [pc, #44] @ (80179ec <prvCheckForValidListAndQueue+0x7c>)
  56982. 80179be: 4618 mov r0, r3
  56983. 80179c0: f7fd ff54 bl 801586c <vQueueAddToRegistry>
  56984. else
  56985. {
  56986. mtCOVERAGE_TEST_MARKER();
  56987. }
  56988. }
  56989. taskEXIT_CRITICAL();
  56990. 80179c4: f000 f9c2 bl 8017d4c <vPortExitCritical>
  56991. }
  56992. 80179c8: bf00 nop
  56993. 80179ca: 46bd mov sp, r7
  56994. 80179cc: bd80 pop {r7, pc}
  56995. 80179ce: bf00 nop
  56996. 80179d0: 24002f28 .word 0x24002f28
  56997. 80179d4: 24002ef8 .word 0x24002ef8
  56998. 80179d8: 24002f0c .word 0x24002f0c
  56999. 80179dc: 24002f20 .word 0x24002f20
  57000. 80179e0: 24002f24 .word 0x24002f24
  57001. 80179e4: 24002fd4 .word 0x24002fd4
  57002. 80179e8: 24002f34 .word 0x24002f34
  57003. 80179ec: 08018690 .word 0x08018690
  57004. 080179f0 <xTimerIsTimerActive>:
  57005. /*-----------------------------------------------------------*/
  57006. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  57007. {
  57008. 80179f0: b580 push {r7, lr}
  57009. 80179f2: b086 sub sp, #24
  57010. 80179f4: af00 add r7, sp, #0
  57011. 80179f6: 6078 str r0, [r7, #4]
  57012. BaseType_t xReturn;
  57013. Timer_t *pxTimer = xTimer;
  57014. 80179f8: 687b ldr r3, [r7, #4]
  57015. 80179fa: 613b str r3, [r7, #16]
  57016. configASSERT( xTimer );
  57017. 80179fc: 687b ldr r3, [r7, #4]
  57018. 80179fe: 2b00 cmp r3, #0
  57019. 8017a00: d10b bne.n 8017a1a <xTimerIsTimerActive+0x2a>
  57020. __asm volatile
  57021. 8017a02: f04f 0350 mov.w r3, #80 @ 0x50
  57022. 8017a06: f383 8811 msr BASEPRI, r3
  57023. 8017a0a: f3bf 8f6f isb sy
  57024. 8017a0e: f3bf 8f4f dsb sy
  57025. 8017a12: 60fb str r3, [r7, #12]
  57026. }
  57027. 8017a14: bf00 nop
  57028. 8017a16: bf00 nop
  57029. 8017a18: e7fd b.n 8017a16 <xTimerIsTimerActive+0x26>
  57030. /* Is the timer in the list of active timers? */
  57031. taskENTER_CRITICAL();
  57032. 8017a1a: f000 f965 bl 8017ce8 <vPortEnterCritical>
  57033. {
  57034. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  57035. 8017a1e: 693b ldr r3, [r7, #16]
  57036. 8017a20: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57037. 8017a24: f003 0301 and.w r3, r3, #1
  57038. 8017a28: 2b00 cmp r3, #0
  57039. 8017a2a: d102 bne.n 8017a32 <xTimerIsTimerActive+0x42>
  57040. {
  57041. xReturn = pdFALSE;
  57042. 8017a2c: 2300 movs r3, #0
  57043. 8017a2e: 617b str r3, [r7, #20]
  57044. 8017a30: e001 b.n 8017a36 <xTimerIsTimerActive+0x46>
  57045. }
  57046. else
  57047. {
  57048. xReturn = pdTRUE;
  57049. 8017a32: 2301 movs r3, #1
  57050. 8017a34: 617b str r3, [r7, #20]
  57051. }
  57052. }
  57053. taskEXIT_CRITICAL();
  57054. 8017a36: f000 f989 bl 8017d4c <vPortExitCritical>
  57055. return xReturn;
  57056. 8017a3a: 697b ldr r3, [r7, #20]
  57057. } /*lint !e818 Can't be pointer to const due to the typedef. */
  57058. 8017a3c: 4618 mov r0, r3
  57059. 8017a3e: 3718 adds r7, #24
  57060. 8017a40: 46bd mov sp, r7
  57061. 8017a42: bd80 pop {r7, pc}
  57062. 08017a44 <pvTimerGetTimerID>:
  57063. /*-----------------------------------------------------------*/
  57064. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  57065. {
  57066. 8017a44: b580 push {r7, lr}
  57067. 8017a46: b086 sub sp, #24
  57068. 8017a48: af00 add r7, sp, #0
  57069. 8017a4a: 6078 str r0, [r7, #4]
  57070. Timer_t * const pxTimer = xTimer;
  57071. 8017a4c: 687b ldr r3, [r7, #4]
  57072. 8017a4e: 617b str r3, [r7, #20]
  57073. void *pvReturn;
  57074. configASSERT( xTimer );
  57075. 8017a50: 687b ldr r3, [r7, #4]
  57076. 8017a52: 2b00 cmp r3, #0
  57077. 8017a54: d10b bne.n 8017a6e <pvTimerGetTimerID+0x2a>
  57078. __asm volatile
  57079. 8017a56: f04f 0350 mov.w r3, #80 @ 0x50
  57080. 8017a5a: f383 8811 msr BASEPRI, r3
  57081. 8017a5e: f3bf 8f6f isb sy
  57082. 8017a62: f3bf 8f4f dsb sy
  57083. 8017a66: 60fb str r3, [r7, #12]
  57084. }
  57085. 8017a68: bf00 nop
  57086. 8017a6a: bf00 nop
  57087. 8017a6c: e7fd b.n 8017a6a <pvTimerGetTimerID+0x26>
  57088. taskENTER_CRITICAL();
  57089. 8017a6e: f000 f93b bl 8017ce8 <vPortEnterCritical>
  57090. {
  57091. pvReturn = pxTimer->pvTimerID;
  57092. 8017a72: 697b ldr r3, [r7, #20]
  57093. 8017a74: 69db ldr r3, [r3, #28]
  57094. 8017a76: 613b str r3, [r7, #16]
  57095. }
  57096. taskEXIT_CRITICAL();
  57097. 8017a78: f000 f968 bl 8017d4c <vPortExitCritical>
  57098. return pvReturn;
  57099. 8017a7c: 693b ldr r3, [r7, #16]
  57100. }
  57101. 8017a7e: 4618 mov r0, r3
  57102. 8017a80: 3718 adds r7, #24
  57103. 8017a82: 46bd mov sp, r7
  57104. 8017a84: bd80 pop {r7, pc}
  57105. ...
  57106. 08017a88 <pxPortInitialiseStack>:
  57107. /*
  57108. * See header file for description.
  57109. */
  57110. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  57111. {
  57112. 8017a88: b480 push {r7}
  57113. 8017a8a: b085 sub sp, #20
  57114. 8017a8c: af00 add r7, sp, #0
  57115. 8017a8e: 60f8 str r0, [r7, #12]
  57116. 8017a90: 60b9 str r1, [r7, #8]
  57117. 8017a92: 607a str r2, [r7, #4]
  57118. /* Simulate the stack frame as it would be created by a context switch
  57119. interrupt. */
  57120. /* Offset added to account for the way the MCU uses the stack on entry/exit
  57121. of interrupts, and to ensure alignment. */
  57122. pxTopOfStack--;
  57123. 8017a94: 68fb ldr r3, [r7, #12]
  57124. 8017a96: 3b04 subs r3, #4
  57125. 8017a98: 60fb str r3, [r7, #12]
  57126. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  57127. 8017a9a: 68fb ldr r3, [r7, #12]
  57128. 8017a9c: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  57129. 8017aa0: 601a str r2, [r3, #0]
  57130. pxTopOfStack--;
  57131. 8017aa2: 68fb ldr r3, [r7, #12]
  57132. 8017aa4: 3b04 subs r3, #4
  57133. 8017aa6: 60fb str r3, [r7, #12]
  57134. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  57135. 8017aa8: 68bb ldr r3, [r7, #8]
  57136. 8017aaa: f023 0201 bic.w r2, r3, #1
  57137. 8017aae: 68fb ldr r3, [r7, #12]
  57138. 8017ab0: 601a str r2, [r3, #0]
  57139. pxTopOfStack--;
  57140. 8017ab2: 68fb ldr r3, [r7, #12]
  57141. 8017ab4: 3b04 subs r3, #4
  57142. 8017ab6: 60fb str r3, [r7, #12]
  57143. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  57144. 8017ab8: 4a0c ldr r2, [pc, #48] @ (8017aec <pxPortInitialiseStack+0x64>)
  57145. 8017aba: 68fb ldr r3, [r7, #12]
  57146. 8017abc: 601a str r2, [r3, #0]
  57147. /* Save code space by skipping register initialisation. */
  57148. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  57149. 8017abe: 68fb ldr r3, [r7, #12]
  57150. 8017ac0: 3b14 subs r3, #20
  57151. 8017ac2: 60fb str r3, [r7, #12]
  57152. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  57153. 8017ac4: 687a ldr r2, [r7, #4]
  57154. 8017ac6: 68fb ldr r3, [r7, #12]
  57155. 8017ac8: 601a str r2, [r3, #0]
  57156. /* A save method is being used that requires each task to maintain its
  57157. own exec return value. */
  57158. pxTopOfStack--;
  57159. 8017aca: 68fb ldr r3, [r7, #12]
  57160. 8017acc: 3b04 subs r3, #4
  57161. 8017ace: 60fb str r3, [r7, #12]
  57162. *pxTopOfStack = portINITIAL_EXC_RETURN;
  57163. 8017ad0: 68fb ldr r3, [r7, #12]
  57164. 8017ad2: f06f 0202 mvn.w r2, #2
  57165. 8017ad6: 601a str r2, [r3, #0]
  57166. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  57167. 8017ad8: 68fb ldr r3, [r7, #12]
  57168. 8017ada: 3b20 subs r3, #32
  57169. 8017adc: 60fb str r3, [r7, #12]
  57170. return pxTopOfStack;
  57171. 8017ade: 68fb ldr r3, [r7, #12]
  57172. }
  57173. 8017ae0: 4618 mov r0, r3
  57174. 8017ae2: 3714 adds r7, #20
  57175. 8017ae4: 46bd mov sp, r7
  57176. 8017ae6: f85d 7b04 ldr.w r7, [sp], #4
  57177. 8017aea: 4770 bx lr
  57178. 8017aec: 08017af1 .word 0x08017af1
  57179. 08017af0 <prvTaskExitError>:
  57180. /*-----------------------------------------------------------*/
  57181. static void prvTaskExitError( void )
  57182. {
  57183. 8017af0: b480 push {r7}
  57184. 8017af2: b085 sub sp, #20
  57185. 8017af4: af00 add r7, sp, #0
  57186. volatile uint32_t ulDummy = 0;
  57187. 8017af6: 2300 movs r3, #0
  57188. 8017af8: 607b str r3, [r7, #4]
  57189. its caller as there is nothing to return to. If a task wants to exit it
  57190. should instead call vTaskDelete( NULL ).
  57191. Artificially force an assert() to be triggered if configASSERT() is
  57192. defined, then stop here so application writers can catch the error. */
  57193. configASSERT( uxCriticalNesting == ~0UL );
  57194. 8017afa: 4b13 ldr r3, [pc, #76] @ (8017b48 <prvTaskExitError+0x58>)
  57195. 8017afc: 681b ldr r3, [r3, #0]
  57196. 8017afe: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  57197. 8017b02: d00b beq.n 8017b1c <prvTaskExitError+0x2c>
  57198. __asm volatile
  57199. 8017b04: f04f 0350 mov.w r3, #80 @ 0x50
  57200. 8017b08: f383 8811 msr BASEPRI, r3
  57201. 8017b0c: f3bf 8f6f isb sy
  57202. 8017b10: f3bf 8f4f dsb sy
  57203. 8017b14: 60fb str r3, [r7, #12]
  57204. }
  57205. 8017b16: bf00 nop
  57206. 8017b18: bf00 nop
  57207. 8017b1a: e7fd b.n 8017b18 <prvTaskExitError+0x28>
  57208. __asm volatile
  57209. 8017b1c: f04f 0350 mov.w r3, #80 @ 0x50
  57210. 8017b20: f383 8811 msr BASEPRI, r3
  57211. 8017b24: f3bf 8f6f isb sy
  57212. 8017b28: f3bf 8f4f dsb sy
  57213. 8017b2c: 60bb str r3, [r7, #8]
  57214. }
  57215. 8017b2e: bf00 nop
  57216. portDISABLE_INTERRUPTS();
  57217. while( ulDummy == 0 )
  57218. 8017b30: bf00 nop
  57219. 8017b32: 687b ldr r3, [r7, #4]
  57220. 8017b34: 2b00 cmp r3, #0
  57221. 8017b36: d0fc beq.n 8017b32 <prvTaskExitError+0x42>
  57222. about code appearing after this function is called - making ulDummy
  57223. volatile makes the compiler think the function could return and
  57224. therefore not output an 'unreachable code' warning for code that appears
  57225. after it. */
  57226. }
  57227. }
  57228. 8017b38: bf00 nop
  57229. 8017b3a: bf00 nop
  57230. 8017b3c: 3714 adds r7, #20
  57231. 8017b3e: 46bd mov sp, r7
  57232. 8017b40: f85d 7b04 ldr.w r7, [sp], #4
  57233. 8017b44: 4770 bx lr
  57234. 8017b46: bf00 nop
  57235. 8017b48: 24000044 .word 0x24000044
  57236. 8017b4c: 00000000 .word 0x00000000
  57237. 08017b50 <SVC_Handler>:
  57238. /*-----------------------------------------------------------*/
  57239. void vPortSVCHandler( void )
  57240. {
  57241. __asm volatile (
  57242. 8017b50: 4b07 ldr r3, [pc, #28] @ (8017b70 <pxCurrentTCBConst2>)
  57243. 8017b52: 6819 ldr r1, [r3, #0]
  57244. 8017b54: 6808 ldr r0, [r1, #0]
  57245. 8017b56: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57246. 8017b5a: f380 8809 msr PSP, r0
  57247. 8017b5e: f3bf 8f6f isb sy
  57248. 8017b62: f04f 0000 mov.w r0, #0
  57249. 8017b66: f380 8811 msr BASEPRI, r0
  57250. 8017b6a: 4770 bx lr
  57251. 8017b6c: f3af 8000 nop.w
  57252. 08017b70 <pxCurrentTCBConst2>:
  57253. 8017b70: 240029f8 .word 0x240029f8
  57254. " bx r14 \n"
  57255. " \n"
  57256. " .align 4 \n"
  57257. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  57258. );
  57259. }
  57260. 8017b74: bf00 nop
  57261. 8017b76: bf00 nop
  57262. 08017b78 <prvPortStartFirstTask>:
  57263. {
  57264. /* Start the first task. This also clears the bit that indicates the FPU is
  57265. in use in case the FPU was used before the scheduler was started - which
  57266. would otherwise result in the unnecessary leaving of space in the SVC stack
  57267. for lazy saving of FPU registers. */
  57268. __asm volatile(
  57269. 8017b78: 4808 ldr r0, [pc, #32] @ (8017b9c <prvPortStartFirstTask+0x24>)
  57270. 8017b7a: 6800 ldr r0, [r0, #0]
  57271. 8017b7c: 6800 ldr r0, [r0, #0]
  57272. 8017b7e: f380 8808 msr MSP, r0
  57273. 8017b82: f04f 0000 mov.w r0, #0
  57274. 8017b86: f380 8814 msr CONTROL, r0
  57275. 8017b8a: b662 cpsie i
  57276. 8017b8c: b661 cpsie f
  57277. 8017b8e: f3bf 8f4f dsb sy
  57278. 8017b92: f3bf 8f6f isb sy
  57279. 8017b96: df00 svc 0
  57280. 8017b98: bf00 nop
  57281. " dsb \n"
  57282. " isb \n"
  57283. " svc 0 \n" /* System call to start first task. */
  57284. " nop \n"
  57285. );
  57286. }
  57287. 8017b9a: bf00 nop
  57288. 8017b9c: e000ed08 .word 0xe000ed08
  57289. 08017ba0 <xPortStartScheduler>:
  57290. /*
  57291. * See header file for description.
  57292. */
  57293. BaseType_t xPortStartScheduler( void )
  57294. {
  57295. 8017ba0: b580 push {r7, lr}
  57296. 8017ba2: b086 sub sp, #24
  57297. 8017ba4: af00 add r7, sp, #0
  57298. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  57299. /* This port can be used on all revisions of the Cortex-M7 core other than
  57300. the r0p1 parts. r0p1 parts should use the port from the
  57301. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  57302. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  57303. 8017ba6: 4b47 ldr r3, [pc, #284] @ (8017cc4 <xPortStartScheduler+0x124>)
  57304. 8017ba8: 681b ldr r3, [r3, #0]
  57305. 8017baa: 4a47 ldr r2, [pc, #284] @ (8017cc8 <xPortStartScheduler+0x128>)
  57306. 8017bac: 4293 cmp r3, r2
  57307. 8017bae: d10b bne.n 8017bc8 <xPortStartScheduler+0x28>
  57308. __asm volatile
  57309. 8017bb0: f04f 0350 mov.w r3, #80 @ 0x50
  57310. 8017bb4: f383 8811 msr BASEPRI, r3
  57311. 8017bb8: f3bf 8f6f isb sy
  57312. 8017bbc: f3bf 8f4f dsb sy
  57313. 8017bc0: 613b str r3, [r7, #16]
  57314. }
  57315. 8017bc2: bf00 nop
  57316. 8017bc4: bf00 nop
  57317. 8017bc6: e7fd b.n 8017bc4 <xPortStartScheduler+0x24>
  57318. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  57319. 8017bc8: 4b3e ldr r3, [pc, #248] @ (8017cc4 <xPortStartScheduler+0x124>)
  57320. 8017bca: 681b ldr r3, [r3, #0]
  57321. 8017bcc: 4a3f ldr r2, [pc, #252] @ (8017ccc <xPortStartScheduler+0x12c>)
  57322. 8017bce: 4293 cmp r3, r2
  57323. 8017bd0: d10b bne.n 8017bea <xPortStartScheduler+0x4a>
  57324. __asm volatile
  57325. 8017bd2: f04f 0350 mov.w r3, #80 @ 0x50
  57326. 8017bd6: f383 8811 msr BASEPRI, r3
  57327. 8017bda: f3bf 8f6f isb sy
  57328. 8017bde: f3bf 8f4f dsb sy
  57329. 8017be2: 60fb str r3, [r7, #12]
  57330. }
  57331. 8017be4: bf00 nop
  57332. 8017be6: bf00 nop
  57333. 8017be8: e7fd b.n 8017be6 <xPortStartScheduler+0x46>
  57334. #if( configASSERT_DEFINED == 1 )
  57335. {
  57336. volatile uint32_t ulOriginalPriority;
  57337. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  57338. 8017bea: 4b39 ldr r3, [pc, #228] @ (8017cd0 <xPortStartScheduler+0x130>)
  57339. 8017bec: 617b str r3, [r7, #20]
  57340. functions can be called. ISR safe functions are those that end in
  57341. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  57342. ensure interrupt entry is as fast and simple as possible.
  57343. Save the interrupt priority value that is about to be clobbered. */
  57344. ulOriginalPriority = *pucFirstUserPriorityRegister;
  57345. 8017bee: 697b ldr r3, [r7, #20]
  57346. 8017bf0: 781b ldrb r3, [r3, #0]
  57347. 8017bf2: b2db uxtb r3, r3
  57348. 8017bf4: 607b str r3, [r7, #4]
  57349. /* Determine the number of priority bits available. First write to all
  57350. possible bits. */
  57351. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  57352. 8017bf6: 697b ldr r3, [r7, #20]
  57353. 8017bf8: 22ff movs r2, #255 @ 0xff
  57354. 8017bfa: 701a strb r2, [r3, #0]
  57355. /* Read the value back to see how many bits stuck. */
  57356. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  57357. 8017bfc: 697b ldr r3, [r7, #20]
  57358. 8017bfe: 781b ldrb r3, [r3, #0]
  57359. 8017c00: b2db uxtb r3, r3
  57360. 8017c02: 70fb strb r3, [r7, #3]
  57361. /* Use the same mask on the maximum system call priority. */
  57362. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  57363. 8017c04: 78fb ldrb r3, [r7, #3]
  57364. 8017c06: b2db uxtb r3, r3
  57365. 8017c08: f003 0350 and.w r3, r3, #80 @ 0x50
  57366. 8017c0c: b2da uxtb r2, r3
  57367. 8017c0e: 4b31 ldr r3, [pc, #196] @ (8017cd4 <xPortStartScheduler+0x134>)
  57368. 8017c10: 701a strb r2, [r3, #0]
  57369. /* Calculate the maximum acceptable priority group value for the number
  57370. of bits read back. */
  57371. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  57372. 8017c12: 4b31 ldr r3, [pc, #196] @ (8017cd8 <xPortStartScheduler+0x138>)
  57373. 8017c14: 2207 movs r2, #7
  57374. 8017c16: 601a str r2, [r3, #0]
  57375. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57376. 8017c18: e009 b.n 8017c2e <xPortStartScheduler+0x8e>
  57377. {
  57378. ulMaxPRIGROUPValue--;
  57379. 8017c1a: 4b2f ldr r3, [pc, #188] @ (8017cd8 <xPortStartScheduler+0x138>)
  57380. 8017c1c: 681b ldr r3, [r3, #0]
  57381. 8017c1e: 3b01 subs r3, #1
  57382. 8017c20: 4a2d ldr r2, [pc, #180] @ (8017cd8 <xPortStartScheduler+0x138>)
  57383. 8017c22: 6013 str r3, [r2, #0]
  57384. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  57385. 8017c24: 78fb ldrb r3, [r7, #3]
  57386. 8017c26: b2db uxtb r3, r3
  57387. 8017c28: 005b lsls r3, r3, #1
  57388. 8017c2a: b2db uxtb r3, r3
  57389. 8017c2c: 70fb strb r3, [r7, #3]
  57390. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57391. 8017c2e: 78fb ldrb r3, [r7, #3]
  57392. 8017c30: b2db uxtb r3, r3
  57393. 8017c32: f003 0380 and.w r3, r3, #128 @ 0x80
  57394. 8017c36: 2b80 cmp r3, #128 @ 0x80
  57395. 8017c38: d0ef beq.n 8017c1a <xPortStartScheduler+0x7a>
  57396. #ifdef configPRIO_BITS
  57397. {
  57398. /* Check the FreeRTOS configuration that defines the number of
  57399. priority bits matches the number of priority bits actually queried
  57400. from the hardware. */
  57401. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  57402. 8017c3a: 4b27 ldr r3, [pc, #156] @ (8017cd8 <xPortStartScheduler+0x138>)
  57403. 8017c3c: 681b ldr r3, [r3, #0]
  57404. 8017c3e: f1c3 0307 rsb r3, r3, #7
  57405. 8017c42: 2b04 cmp r3, #4
  57406. 8017c44: d00b beq.n 8017c5e <xPortStartScheduler+0xbe>
  57407. __asm volatile
  57408. 8017c46: f04f 0350 mov.w r3, #80 @ 0x50
  57409. 8017c4a: f383 8811 msr BASEPRI, r3
  57410. 8017c4e: f3bf 8f6f isb sy
  57411. 8017c52: f3bf 8f4f dsb sy
  57412. 8017c56: 60bb str r3, [r7, #8]
  57413. }
  57414. 8017c58: bf00 nop
  57415. 8017c5a: bf00 nop
  57416. 8017c5c: e7fd b.n 8017c5a <xPortStartScheduler+0xba>
  57417. }
  57418. #endif
  57419. /* Shift the priority group value back to its position within the AIRCR
  57420. register. */
  57421. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  57422. 8017c5e: 4b1e ldr r3, [pc, #120] @ (8017cd8 <xPortStartScheduler+0x138>)
  57423. 8017c60: 681b ldr r3, [r3, #0]
  57424. 8017c62: 021b lsls r3, r3, #8
  57425. 8017c64: 4a1c ldr r2, [pc, #112] @ (8017cd8 <xPortStartScheduler+0x138>)
  57426. 8017c66: 6013 str r3, [r2, #0]
  57427. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  57428. 8017c68: 4b1b ldr r3, [pc, #108] @ (8017cd8 <xPortStartScheduler+0x138>)
  57429. 8017c6a: 681b ldr r3, [r3, #0]
  57430. 8017c6c: f403 63e0 and.w r3, r3, #1792 @ 0x700
  57431. 8017c70: 4a19 ldr r2, [pc, #100] @ (8017cd8 <xPortStartScheduler+0x138>)
  57432. 8017c72: 6013 str r3, [r2, #0]
  57433. /* Restore the clobbered interrupt priority register to its original
  57434. value. */
  57435. *pucFirstUserPriorityRegister = ulOriginalPriority;
  57436. 8017c74: 687b ldr r3, [r7, #4]
  57437. 8017c76: b2da uxtb r2, r3
  57438. 8017c78: 697b ldr r3, [r7, #20]
  57439. 8017c7a: 701a strb r2, [r3, #0]
  57440. }
  57441. #endif /* conifgASSERT_DEFINED */
  57442. /* Make PendSV and SysTick the lowest priority interrupts. */
  57443. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  57444. 8017c7c: 4b17 ldr r3, [pc, #92] @ (8017cdc <xPortStartScheduler+0x13c>)
  57445. 8017c7e: 681b ldr r3, [r3, #0]
  57446. 8017c80: 4a16 ldr r2, [pc, #88] @ (8017cdc <xPortStartScheduler+0x13c>)
  57447. 8017c82: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  57448. 8017c86: 6013 str r3, [r2, #0]
  57449. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  57450. 8017c88: 4b14 ldr r3, [pc, #80] @ (8017cdc <xPortStartScheduler+0x13c>)
  57451. 8017c8a: 681b ldr r3, [r3, #0]
  57452. 8017c8c: 4a13 ldr r2, [pc, #76] @ (8017cdc <xPortStartScheduler+0x13c>)
  57453. 8017c8e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  57454. 8017c92: 6013 str r3, [r2, #0]
  57455. /* Start the timer that generates the tick ISR. Interrupts are disabled
  57456. here already. */
  57457. vPortSetupTimerInterrupt();
  57458. 8017c94: f000 f8da bl 8017e4c <vPortSetupTimerInterrupt>
  57459. /* Initialise the critical nesting count ready for the first task. */
  57460. uxCriticalNesting = 0;
  57461. 8017c98: 4b11 ldr r3, [pc, #68] @ (8017ce0 <xPortStartScheduler+0x140>)
  57462. 8017c9a: 2200 movs r2, #0
  57463. 8017c9c: 601a str r2, [r3, #0]
  57464. /* Ensure the VFP is enabled - it should be anyway. */
  57465. vPortEnableVFP();
  57466. 8017c9e: f000 f8f9 bl 8017e94 <vPortEnableVFP>
  57467. /* Lazy save always. */
  57468. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  57469. 8017ca2: 4b10 ldr r3, [pc, #64] @ (8017ce4 <xPortStartScheduler+0x144>)
  57470. 8017ca4: 681b ldr r3, [r3, #0]
  57471. 8017ca6: 4a0f ldr r2, [pc, #60] @ (8017ce4 <xPortStartScheduler+0x144>)
  57472. 8017ca8: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  57473. 8017cac: 6013 str r3, [r2, #0]
  57474. /* Start the first task. */
  57475. prvPortStartFirstTask();
  57476. 8017cae: f7ff ff63 bl 8017b78 <prvPortStartFirstTask>
  57477. exit error function to prevent compiler warnings about a static function
  57478. not being called in the case that the application writer overrides this
  57479. functionality by defining configTASK_RETURN_ADDRESS. Call
  57480. vTaskSwitchContext() so link time optimisation does not remove the
  57481. symbol. */
  57482. vTaskSwitchContext();
  57483. 8017cb2: f7fe fbd1 bl 8016458 <vTaskSwitchContext>
  57484. prvTaskExitError();
  57485. 8017cb6: f7ff ff1b bl 8017af0 <prvTaskExitError>
  57486. /* Should not get here! */
  57487. return 0;
  57488. 8017cba: 2300 movs r3, #0
  57489. }
  57490. 8017cbc: 4618 mov r0, r3
  57491. 8017cbe: 3718 adds r7, #24
  57492. 8017cc0: 46bd mov sp, r7
  57493. 8017cc2: bd80 pop {r7, pc}
  57494. 8017cc4: e000ed00 .word 0xe000ed00
  57495. 8017cc8: 410fc271 .word 0x410fc271
  57496. 8017ccc: 410fc270 .word 0x410fc270
  57497. 8017cd0: e000e400 .word 0xe000e400
  57498. 8017cd4: 24003024 .word 0x24003024
  57499. 8017cd8: 24003028 .word 0x24003028
  57500. 8017cdc: e000ed20 .word 0xe000ed20
  57501. 8017ce0: 24000044 .word 0x24000044
  57502. 8017ce4: e000ef34 .word 0xe000ef34
  57503. 08017ce8 <vPortEnterCritical>:
  57504. configASSERT( uxCriticalNesting == 1000UL );
  57505. }
  57506. /*-----------------------------------------------------------*/
  57507. void vPortEnterCritical( void )
  57508. {
  57509. 8017ce8: b480 push {r7}
  57510. 8017cea: b083 sub sp, #12
  57511. 8017cec: af00 add r7, sp, #0
  57512. __asm volatile
  57513. 8017cee: f04f 0350 mov.w r3, #80 @ 0x50
  57514. 8017cf2: f383 8811 msr BASEPRI, r3
  57515. 8017cf6: f3bf 8f6f isb sy
  57516. 8017cfa: f3bf 8f4f dsb sy
  57517. 8017cfe: 607b str r3, [r7, #4]
  57518. }
  57519. 8017d00: bf00 nop
  57520. portDISABLE_INTERRUPTS();
  57521. uxCriticalNesting++;
  57522. 8017d02: 4b10 ldr r3, [pc, #64] @ (8017d44 <vPortEnterCritical+0x5c>)
  57523. 8017d04: 681b ldr r3, [r3, #0]
  57524. 8017d06: 3301 adds r3, #1
  57525. 8017d08: 4a0e ldr r2, [pc, #56] @ (8017d44 <vPortEnterCritical+0x5c>)
  57526. 8017d0a: 6013 str r3, [r2, #0]
  57527. /* This is not the interrupt safe version of the enter critical function so
  57528. assert() if it is being called from an interrupt context. Only API
  57529. functions that end in "FromISR" can be used in an interrupt. Only assert if
  57530. the critical nesting count is 1 to protect against recursive calls if the
  57531. assert function also uses a critical section. */
  57532. if( uxCriticalNesting == 1 )
  57533. 8017d0c: 4b0d ldr r3, [pc, #52] @ (8017d44 <vPortEnterCritical+0x5c>)
  57534. 8017d0e: 681b ldr r3, [r3, #0]
  57535. 8017d10: 2b01 cmp r3, #1
  57536. 8017d12: d110 bne.n 8017d36 <vPortEnterCritical+0x4e>
  57537. {
  57538. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  57539. 8017d14: 4b0c ldr r3, [pc, #48] @ (8017d48 <vPortEnterCritical+0x60>)
  57540. 8017d16: 681b ldr r3, [r3, #0]
  57541. 8017d18: b2db uxtb r3, r3
  57542. 8017d1a: 2b00 cmp r3, #0
  57543. 8017d1c: d00b beq.n 8017d36 <vPortEnterCritical+0x4e>
  57544. __asm volatile
  57545. 8017d1e: f04f 0350 mov.w r3, #80 @ 0x50
  57546. 8017d22: f383 8811 msr BASEPRI, r3
  57547. 8017d26: f3bf 8f6f isb sy
  57548. 8017d2a: f3bf 8f4f dsb sy
  57549. 8017d2e: 603b str r3, [r7, #0]
  57550. }
  57551. 8017d30: bf00 nop
  57552. 8017d32: bf00 nop
  57553. 8017d34: e7fd b.n 8017d32 <vPortEnterCritical+0x4a>
  57554. }
  57555. }
  57556. 8017d36: bf00 nop
  57557. 8017d38: 370c adds r7, #12
  57558. 8017d3a: 46bd mov sp, r7
  57559. 8017d3c: f85d 7b04 ldr.w r7, [sp], #4
  57560. 8017d40: 4770 bx lr
  57561. 8017d42: bf00 nop
  57562. 8017d44: 24000044 .word 0x24000044
  57563. 8017d48: e000ed04 .word 0xe000ed04
  57564. 08017d4c <vPortExitCritical>:
  57565. /*-----------------------------------------------------------*/
  57566. void vPortExitCritical( void )
  57567. {
  57568. 8017d4c: b480 push {r7}
  57569. 8017d4e: b083 sub sp, #12
  57570. 8017d50: af00 add r7, sp, #0
  57571. configASSERT( uxCriticalNesting );
  57572. 8017d52: 4b12 ldr r3, [pc, #72] @ (8017d9c <vPortExitCritical+0x50>)
  57573. 8017d54: 681b ldr r3, [r3, #0]
  57574. 8017d56: 2b00 cmp r3, #0
  57575. 8017d58: d10b bne.n 8017d72 <vPortExitCritical+0x26>
  57576. __asm volatile
  57577. 8017d5a: f04f 0350 mov.w r3, #80 @ 0x50
  57578. 8017d5e: f383 8811 msr BASEPRI, r3
  57579. 8017d62: f3bf 8f6f isb sy
  57580. 8017d66: f3bf 8f4f dsb sy
  57581. 8017d6a: 607b str r3, [r7, #4]
  57582. }
  57583. 8017d6c: bf00 nop
  57584. 8017d6e: bf00 nop
  57585. 8017d70: e7fd b.n 8017d6e <vPortExitCritical+0x22>
  57586. uxCriticalNesting--;
  57587. 8017d72: 4b0a ldr r3, [pc, #40] @ (8017d9c <vPortExitCritical+0x50>)
  57588. 8017d74: 681b ldr r3, [r3, #0]
  57589. 8017d76: 3b01 subs r3, #1
  57590. 8017d78: 4a08 ldr r2, [pc, #32] @ (8017d9c <vPortExitCritical+0x50>)
  57591. 8017d7a: 6013 str r3, [r2, #0]
  57592. if( uxCriticalNesting == 0 )
  57593. 8017d7c: 4b07 ldr r3, [pc, #28] @ (8017d9c <vPortExitCritical+0x50>)
  57594. 8017d7e: 681b ldr r3, [r3, #0]
  57595. 8017d80: 2b00 cmp r3, #0
  57596. 8017d82: d105 bne.n 8017d90 <vPortExitCritical+0x44>
  57597. 8017d84: 2300 movs r3, #0
  57598. 8017d86: 603b str r3, [r7, #0]
  57599. __asm volatile
  57600. 8017d88: 683b ldr r3, [r7, #0]
  57601. 8017d8a: f383 8811 msr BASEPRI, r3
  57602. }
  57603. 8017d8e: bf00 nop
  57604. {
  57605. portENABLE_INTERRUPTS();
  57606. }
  57607. }
  57608. 8017d90: bf00 nop
  57609. 8017d92: 370c adds r7, #12
  57610. 8017d94: 46bd mov sp, r7
  57611. 8017d96: f85d 7b04 ldr.w r7, [sp], #4
  57612. 8017d9a: 4770 bx lr
  57613. 8017d9c: 24000044 .word 0x24000044
  57614. 08017da0 <PendSV_Handler>:
  57615. void xPortPendSVHandler( void )
  57616. {
  57617. /* This is a naked function. */
  57618. __asm volatile
  57619. 8017da0: f3ef 8009 mrs r0, PSP
  57620. 8017da4: f3bf 8f6f isb sy
  57621. 8017da8: 4b15 ldr r3, [pc, #84] @ (8017e00 <pxCurrentTCBConst>)
  57622. 8017daa: 681a ldr r2, [r3, #0]
  57623. 8017dac: f01e 0f10 tst.w lr, #16
  57624. 8017db0: bf08 it eq
  57625. 8017db2: ed20 8a10 vstmdbeq r0!, {s16-s31}
  57626. 8017db6: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57627. 8017dba: 6010 str r0, [r2, #0]
  57628. 8017dbc: e92d 0009 stmdb sp!, {r0, r3}
  57629. 8017dc0: f04f 0050 mov.w r0, #80 @ 0x50
  57630. 8017dc4: f380 8811 msr BASEPRI, r0
  57631. 8017dc8: f3bf 8f4f dsb sy
  57632. 8017dcc: f3bf 8f6f isb sy
  57633. 8017dd0: f7fe fb42 bl 8016458 <vTaskSwitchContext>
  57634. 8017dd4: f04f 0000 mov.w r0, #0
  57635. 8017dd8: f380 8811 msr BASEPRI, r0
  57636. 8017ddc: bc09 pop {r0, r3}
  57637. 8017dde: 6819 ldr r1, [r3, #0]
  57638. 8017de0: 6808 ldr r0, [r1, #0]
  57639. 8017de2: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57640. 8017de6: f01e 0f10 tst.w lr, #16
  57641. 8017dea: bf08 it eq
  57642. 8017dec: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  57643. 8017df0: f380 8809 msr PSP, r0
  57644. 8017df4: f3bf 8f6f isb sy
  57645. 8017df8: 4770 bx lr
  57646. 8017dfa: bf00 nop
  57647. 8017dfc: f3af 8000 nop.w
  57648. 08017e00 <pxCurrentTCBConst>:
  57649. 8017e00: 240029f8 .word 0x240029f8
  57650. " \n"
  57651. " .align 4 \n"
  57652. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  57653. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  57654. );
  57655. }
  57656. 8017e04: bf00 nop
  57657. 8017e06: bf00 nop
  57658. 08017e08 <xPortSysTickHandler>:
  57659. /*-----------------------------------------------------------*/
  57660. void xPortSysTickHandler( void )
  57661. {
  57662. 8017e08: b580 push {r7, lr}
  57663. 8017e0a: b082 sub sp, #8
  57664. 8017e0c: af00 add r7, sp, #0
  57665. __asm volatile
  57666. 8017e0e: f04f 0350 mov.w r3, #80 @ 0x50
  57667. 8017e12: f383 8811 msr BASEPRI, r3
  57668. 8017e16: f3bf 8f6f isb sy
  57669. 8017e1a: f3bf 8f4f dsb sy
  57670. 8017e1e: 607b str r3, [r7, #4]
  57671. }
  57672. 8017e20: bf00 nop
  57673. save and then restore the interrupt mask value as its value is already
  57674. known. */
  57675. portDISABLE_INTERRUPTS();
  57676. {
  57677. /* Increment the RTOS tick. */
  57678. if( xTaskIncrementTick() != pdFALSE )
  57679. 8017e22: f7fe fa5f bl 80162e4 <xTaskIncrementTick>
  57680. 8017e26: 4603 mov r3, r0
  57681. 8017e28: 2b00 cmp r3, #0
  57682. 8017e2a: d003 beq.n 8017e34 <xPortSysTickHandler+0x2c>
  57683. {
  57684. /* A context switch is required. Context switching is performed in
  57685. the PendSV interrupt. Pend the PendSV interrupt. */
  57686. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  57687. 8017e2c: 4b06 ldr r3, [pc, #24] @ (8017e48 <xPortSysTickHandler+0x40>)
  57688. 8017e2e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  57689. 8017e32: 601a str r2, [r3, #0]
  57690. 8017e34: 2300 movs r3, #0
  57691. 8017e36: 603b str r3, [r7, #0]
  57692. __asm volatile
  57693. 8017e38: 683b ldr r3, [r7, #0]
  57694. 8017e3a: f383 8811 msr BASEPRI, r3
  57695. }
  57696. 8017e3e: bf00 nop
  57697. }
  57698. }
  57699. portENABLE_INTERRUPTS();
  57700. }
  57701. 8017e40: bf00 nop
  57702. 8017e42: 3708 adds r7, #8
  57703. 8017e44: 46bd mov sp, r7
  57704. 8017e46: bd80 pop {r7, pc}
  57705. 8017e48: e000ed04 .word 0xe000ed04
  57706. 08017e4c <vPortSetupTimerInterrupt>:
  57707. /*
  57708. * Setup the systick timer to generate the tick interrupts at the required
  57709. * frequency.
  57710. */
  57711. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  57712. {
  57713. 8017e4c: b480 push {r7}
  57714. 8017e4e: af00 add r7, sp, #0
  57715. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  57716. }
  57717. #endif /* configUSE_TICKLESS_IDLE */
  57718. /* Stop and clear the SysTick. */
  57719. portNVIC_SYSTICK_CTRL_REG = 0UL;
  57720. 8017e50: 4b0b ldr r3, [pc, #44] @ (8017e80 <vPortSetupTimerInterrupt+0x34>)
  57721. 8017e52: 2200 movs r2, #0
  57722. 8017e54: 601a str r2, [r3, #0]
  57723. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  57724. 8017e56: 4b0b ldr r3, [pc, #44] @ (8017e84 <vPortSetupTimerInterrupt+0x38>)
  57725. 8017e58: 2200 movs r2, #0
  57726. 8017e5a: 601a str r2, [r3, #0]
  57727. /* Configure SysTick to interrupt at the requested rate. */
  57728. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  57729. 8017e5c: 4b0a ldr r3, [pc, #40] @ (8017e88 <vPortSetupTimerInterrupt+0x3c>)
  57730. 8017e5e: 681b ldr r3, [r3, #0]
  57731. 8017e60: 4a0a ldr r2, [pc, #40] @ (8017e8c <vPortSetupTimerInterrupt+0x40>)
  57732. 8017e62: fba2 2303 umull r2, r3, r2, r3
  57733. 8017e66: 099b lsrs r3, r3, #6
  57734. 8017e68: 4a09 ldr r2, [pc, #36] @ (8017e90 <vPortSetupTimerInterrupt+0x44>)
  57735. 8017e6a: 3b01 subs r3, #1
  57736. 8017e6c: 6013 str r3, [r2, #0]
  57737. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  57738. 8017e6e: 4b04 ldr r3, [pc, #16] @ (8017e80 <vPortSetupTimerInterrupt+0x34>)
  57739. 8017e70: 2207 movs r2, #7
  57740. 8017e72: 601a str r2, [r3, #0]
  57741. }
  57742. 8017e74: bf00 nop
  57743. 8017e76: 46bd mov sp, r7
  57744. 8017e78: f85d 7b04 ldr.w r7, [sp], #4
  57745. 8017e7c: 4770 bx lr
  57746. 8017e7e: bf00 nop
  57747. 8017e80: e000e010 .word 0xe000e010
  57748. 8017e84: e000e018 .word 0xe000e018
  57749. 8017e88: 24000034 .word 0x24000034
  57750. 8017e8c: 10624dd3 .word 0x10624dd3
  57751. 8017e90: e000e014 .word 0xe000e014
  57752. 08017e94 <vPortEnableVFP>:
  57753. /*-----------------------------------------------------------*/
  57754. /* This is a naked function. */
  57755. static void vPortEnableVFP( void )
  57756. {
  57757. __asm volatile
  57758. 8017e94: f8df 000c ldr.w r0, [pc, #12] @ 8017ea4 <vPortEnableVFP+0x10>
  57759. 8017e98: 6801 ldr r1, [r0, #0]
  57760. 8017e9a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  57761. 8017e9e: 6001 str r1, [r0, #0]
  57762. 8017ea0: 4770 bx lr
  57763. " \n"
  57764. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  57765. " str r1, [r0] \n"
  57766. " bx r14 "
  57767. );
  57768. }
  57769. 8017ea2: bf00 nop
  57770. 8017ea4: e000ed88 .word 0xe000ed88
  57771. 08017ea8 <vPortValidateInterruptPriority>:
  57772. /*-----------------------------------------------------------*/
  57773. #if( configASSERT_DEFINED == 1 )
  57774. void vPortValidateInterruptPriority( void )
  57775. {
  57776. 8017ea8: b480 push {r7}
  57777. 8017eaa: b085 sub sp, #20
  57778. 8017eac: af00 add r7, sp, #0
  57779. uint32_t ulCurrentInterrupt;
  57780. uint8_t ucCurrentPriority;
  57781. /* Obtain the number of the currently executing interrupt. */
  57782. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  57783. 8017eae: f3ef 8305 mrs r3, IPSR
  57784. 8017eb2: 60fb str r3, [r7, #12]
  57785. /* Is the interrupt number a user defined interrupt? */
  57786. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  57787. 8017eb4: 68fb ldr r3, [r7, #12]
  57788. 8017eb6: 2b0f cmp r3, #15
  57789. 8017eb8: d915 bls.n 8017ee6 <vPortValidateInterruptPriority+0x3e>
  57790. {
  57791. /* Look up the interrupt's priority. */
  57792. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  57793. 8017eba: 4a18 ldr r2, [pc, #96] @ (8017f1c <vPortValidateInterruptPriority+0x74>)
  57794. 8017ebc: 68fb ldr r3, [r7, #12]
  57795. 8017ebe: 4413 add r3, r2
  57796. 8017ec0: 781b ldrb r3, [r3, #0]
  57797. 8017ec2: 72fb strb r3, [r7, #11]
  57798. interrupt entry is as fast and simple as possible.
  57799. The following links provide detailed information:
  57800. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  57801. http://www.freertos.org/FAQHelp.html */
  57802. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  57803. 8017ec4: 4b16 ldr r3, [pc, #88] @ (8017f20 <vPortValidateInterruptPriority+0x78>)
  57804. 8017ec6: 781b ldrb r3, [r3, #0]
  57805. 8017ec8: 7afa ldrb r2, [r7, #11]
  57806. 8017eca: 429a cmp r2, r3
  57807. 8017ecc: d20b bcs.n 8017ee6 <vPortValidateInterruptPriority+0x3e>
  57808. __asm volatile
  57809. 8017ece: f04f 0350 mov.w r3, #80 @ 0x50
  57810. 8017ed2: f383 8811 msr BASEPRI, r3
  57811. 8017ed6: f3bf 8f6f isb sy
  57812. 8017eda: f3bf 8f4f dsb sy
  57813. 8017ede: 607b str r3, [r7, #4]
  57814. }
  57815. 8017ee0: bf00 nop
  57816. 8017ee2: bf00 nop
  57817. 8017ee4: e7fd b.n 8017ee2 <vPortValidateInterruptPriority+0x3a>
  57818. configuration then the correct setting can be achieved on all Cortex-M
  57819. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  57820. scheduler. Note however that some vendor specific peripheral libraries
  57821. assume a non-zero priority group setting, in which cases using a value
  57822. of zero will result in unpredictable behaviour. */
  57823. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  57824. 8017ee6: 4b0f ldr r3, [pc, #60] @ (8017f24 <vPortValidateInterruptPriority+0x7c>)
  57825. 8017ee8: 681b ldr r3, [r3, #0]
  57826. 8017eea: f403 62e0 and.w r2, r3, #1792 @ 0x700
  57827. 8017eee: 4b0e ldr r3, [pc, #56] @ (8017f28 <vPortValidateInterruptPriority+0x80>)
  57828. 8017ef0: 681b ldr r3, [r3, #0]
  57829. 8017ef2: 429a cmp r2, r3
  57830. 8017ef4: d90b bls.n 8017f0e <vPortValidateInterruptPriority+0x66>
  57831. __asm volatile
  57832. 8017ef6: f04f 0350 mov.w r3, #80 @ 0x50
  57833. 8017efa: f383 8811 msr BASEPRI, r3
  57834. 8017efe: f3bf 8f6f isb sy
  57835. 8017f02: f3bf 8f4f dsb sy
  57836. 8017f06: 603b str r3, [r7, #0]
  57837. }
  57838. 8017f08: bf00 nop
  57839. 8017f0a: bf00 nop
  57840. 8017f0c: e7fd b.n 8017f0a <vPortValidateInterruptPriority+0x62>
  57841. }
  57842. 8017f0e: bf00 nop
  57843. 8017f10: 3714 adds r7, #20
  57844. 8017f12: 46bd mov sp, r7
  57845. 8017f14: f85d 7b04 ldr.w r7, [sp], #4
  57846. 8017f18: 4770 bx lr
  57847. 8017f1a: bf00 nop
  57848. 8017f1c: e000e3f0 .word 0xe000e3f0
  57849. 8017f20: 24003024 .word 0x24003024
  57850. 8017f24: e000ed0c .word 0xe000ed0c
  57851. 8017f28: 24003028 .word 0x24003028
  57852. 08017f2c <pvPortMalloc>:
  57853. static size_t xBlockAllocatedBit = 0;
  57854. /*-----------------------------------------------------------*/
  57855. void *pvPortMalloc( size_t xWantedSize )
  57856. {
  57857. 8017f2c: b580 push {r7, lr}
  57858. 8017f2e: b08a sub sp, #40 @ 0x28
  57859. 8017f30: af00 add r7, sp, #0
  57860. 8017f32: 6078 str r0, [r7, #4]
  57861. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  57862. void *pvReturn = NULL;
  57863. 8017f34: 2300 movs r3, #0
  57864. 8017f36: 61fb str r3, [r7, #28]
  57865. vTaskSuspendAll();
  57866. 8017f38: f7fe f918 bl 801616c <vTaskSuspendAll>
  57867. {
  57868. /* If this is the first call to malloc then the heap will require
  57869. initialisation to setup the list of free blocks. */
  57870. if( pxEnd == NULL )
  57871. 8017f3c: 4b5c ldr r3, [pc, #368] @ (80180b0 <pvPortMalloc+0x184>)
  57872. 8017f3e: 681b ldr r3, [r3, #0]
  57873. 8017f40: 2b00 cmp r3, #0
  57874. 8017f42: d101 bne.n 8017f48 <pvPortMalloc+0x1c>
  57875. {
  57876. prvHeapInit();
  57877. 8017f44: f000 f924 bl 8018190 <prvHeapInit>
  57878. /* Check the requested block size is not so large that the top bit is
  57879. set. The top bit of the block size member of the BlockLink_t structure
  57880. is used to determine who owns the block - the application or the
  57881. kernel, so it must be free. */
  57882. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  57883. 8017f48: 4b5a ldr r3, [pc, #360] @ (80180b4 <pvPortMalloc+0x188>)
  57884. 8017f4a: 681a ldr r2, [r3, #0]
  57885. 8017f4c: 687b ldr r3, [r7, #4]
  57886. 8017f4e: 4013 ands r3, r2
  57887. 8017f50: 2b00 cmp r3, #0
  57888. 8017f52: f040 8095 bne.w 8018080 <pvPortMalloc+0x154>
  57889. {
  57890. /* The wanted size is increased so it can contain a BlockLink_t
  57891. structure in addition to the requested amount of bytes. */
  57892. if( xWantedSize > 0 )
  57893. 8017f56: 687b ldr r3, [r7, #4]
  57894. 8017f58: 2b00 cmp r3, #0
  57895. 8017f5a: d01e beq.n 8017f9a <pvPortMalloc+0x6e>
  57896. {
  57897. xWantedSize += xHeapStructSize;
  57898. 8017f5c: 2208 movs r2, #8
  57899. 8017f5e: 687b ldr r3, [r7, #4]
  57900. 8017f60: 4413 add r3, r2
  57901. 8017f62: 607b str r3, [r7, #4]
  57902. /* Ensure that blocks are always aligned to the required number
  57903. of bytes. */
  57904. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  57905. 8017f64: 687b ldr r3, [r7, #4]
  57906. 8017f66: f003 0307 and.w r3, r3, #7
  57907. 8017f6a: 2b00 cmp r3, #0
  57908. 8017f6c: d015 beq.n 8017f9a <pvPortMalloc+0x6e>
  57909. {
  57910. /* Byte alignment required. */
  57911. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  57912. 8017f6e: 687b ldr r3, [r7, #4]
  57913. 8017f70: f023 0307 bic.w r3, r3, #7
  57914. 8017f74: 3308 adds r3, #8
  57915. 8017f76: 607b str r3, [r7, #4]
  57916. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  57917. 8017f78: 687b ldr r3, [r7, #4]
  57918. 8017f7a: f003 0307 and.w r3, r3, #7
  57919. 8017f7e: 2b00 cmp r3, #0
  57920. 8017f80: d00b beq.n 8017f9a <pvPortMalloc+0x6e>
  57921. __asm volatile
  57922. 8017f82: f04f 0350 mov.w r3, #80 @ 0x50
  57923. 8017f86: f383 8811 msr BASEPRI, r3
  57924. 8017f8a: f3bf 8f6f isb sy
  57925. 8017f8e: f3bf 8f4f dsb sy
  57926. 8017f92: 617b str r3, [r7, #20]
  57927. }
  57928. 8017f94: bf00 nop
  57929. 8017f96: bf00 nop
  57930. 8017f98: e7fd b.n 8017f96 <pvPortMalloc+0x6a>
  57931. else
  57932. {
  57933. mtCOVERAGE_TEST_MARKER();
  57934. }
  57935. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  57936. 8017f9a: 687b ldr r3, [r7, #4]
  57937. 8017f9c: 2b00 cmp r3, #0
  57938. 8017f9e: d06f beq.n 8018080 <pvPortMalloc+0x154>
  57939. 8017fa0: 4b45 ldr r3, [pc, #276] @ (80180b8 <pvPortMalloc+0x18c>)
  57940. 8017fa2: 681b ldr r3, [r3, #0]
  57941. 8017fa4: 687a ldr r2, [r7, #4]
  57942. 8017fa6: 429a cmp r2, r3
  57943. 8017fa8: d86a bhi.n 8018080 <pvPortMalloc+0x154>
  57944. {
  57945. /* Traverse the list from the start (lowest address) block until
  57946. one of adequate size is found. */
  57947. pxPreviousBlock = &xStart;
  57948. 8017faa: 4b44 ldr r3, [pc, #272] @ (80180bc <pvPortMalloc+0x190>)
  57949. 8017fac: 623b str r3, [r7, #32]
  57950. pxBlock = xStart.pxNextFreeBlock;
  57951. 8017fae: 4b43 ldr r3, [pc, #268] @ (80180bc <pvPortMalloc+0x190>)
  57952. 8017fb0: 681b ldr r3, [r3, #0]
  57953. 8017fb2: 627b str r3, [r7, #36] @ 0x24
  57954. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57955. 8017fb4: e004 b.n 8017fc0 <pvPortMalloc+0x94>
  57956. {
  57957. pxPreviousBlock = pxBlock;
  57958. 8017fb6: 6a7b ldr r3, [r7, #36] @ 0x24
  57959. 8017fb8: 623b str r3, [r7, #32]
  57960. pxBlock = pxBlock->pxNextFreeBlock;
  57961. 8017fba: 6a7b ldr r3, [r7, #36] @ 0x24
  57962. 8017fbc: 681b ldr r3, [r3, #0]
  57963. 8017fbe: 627b str r3, [r7, #36] @ 0x24
  57964. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57965. 8017fc0: 6a7b ldr r3, [r7, #36] @ 0x24
  57966. 8017fc2: 685b ldr r3, [r3, #4]
  57967. 8017fc4: 687a ldr r2, [r7, #4]
  57968. 8017fc6: 429a cmp r2, r3
  57969. 8017fc8: d903 bls.n 8017fd2 <pvPortMalloc+0xa6>
  57970. 8017fca: 6a7b ldr r3, [r7, #36] @ 0x24
  57971. 8017fcc: 681b ldr r3, [r3, #0]
  57972. 8017fce: 2b00 cmp r3, #0
  57973. 8017fd0: d1f1 bne.n 8017fb6 <pvPortMalloc+0x8a>
  57974. }
  57975. /* If the end marker was reached then a block of adequate size
  57976. was not found. */
  57977. if( pxBlock != pxEnd )
  57978. 8017fd2: 4b37 ldr r3, [pc, #220] @ (80180b0 <pvPortMalloc+0x184>)
  57979. 8017fd4: 681b ldr r3, [r3, #0]
  57980. 8017fd6: 6a7a ldr r2, [r7, #36] @ 0x24
  57981. 8017fd8: 429a cmp r2, r3
  57982. 8017fda: d051 beq.n 8018080 <pvPortMalloc+0x154>
  57983. {
  57984. /* Return the memory space pointed to - jumping over the
  57985. BlockLink_t structure at its start. */
  57986. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  57987. 8017fdc: 6a3b ldr r3, [r7, #32]
  57988. 8017fde: 681b ldr r3, [r3, #0]
  57989. 8017fe0: 2208 movs r2, #8
  57990. 8017fe2: 4413 add r3, r2
  57991. 8017fe4: 61fb str r3, [r7, #28]
  57992. /* This block is being returned for use so must be taken out
  57993. of the list of free blocks. */
  57994. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  57995. 8017fe6: 6a7b ldr r3, [r7, #36] @ 0x24
  57996. 8017fe8: 681a ldr r2, [r3, #0]
  57997. 8017fea: 6a3b ldr r3, [r7, #32]
  57998. 8017fec: 601a str r2, [r3, #0]
  57999. /* If the block is larger than required it can be split into
  58000. two. */
  58001. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  58002. 8017fee: 6a7b ldr r3, [r7, #36] @ 0x24
  58003. 8017ff0: 685a ldr r2, [r3, #4]
  58004. 8017ff2: 687b ldr r3, [r7, #4]
  58005. 8017ff4: 1ad2 subs r2, r2, r3
  58006. 8017ff6: 2308 movs r3, #8
  58007. 8017ff8: 005b lsls r3, r3, #1
  58008. 8017ffa: 429a cmp r2, r3
  58009. 8017ffc: d920 bls.n 8018040 <pvPortMalloc+0x114>
  58010. {
  58011. /* This block is to be split into two. Create a new
  58012. block following the number of bytes requested. The void
  58013. cast is used to prevent byte alignment warnings from the
  58014. compiler. */
  58015. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  58016. 8017ffe: 6a7a ldr r2, [r7, #36] @ 0x24
  58017. 8018000: 687b ldr r3, [r7, #4]
  58018. 8018002: 4413 add r3, r2
  58019. 8018004: 61bb str r3, [r7, #24]
  58020. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  58021. 8018006: 69bb ldr r3, [r7, #24]
  58022. 8018008: f003 0307 and.w r3, r3, #7
  58023. 801800c: 2b00 cmp r3, #0
  58024. 801800e: d00b beq.n 8018028 <pvPortMalloc+0xfc>
  58025. __asm volatile
  58026. 8018010: f04f 0350 mov.w r3, #80 @ 0x50
  58027. 8018014: f383 8811 msr BASEPRI, r3
  58028. 8018018: f3bf 8f6f isb sy
  58029. 801801c: f3bf 8f4f dsb sy
  58030. 8018020: 613b str r3, [r7, #16]
  58031. }
  58032. 8018022: bf00 nop
  58033. 8018024: bf00 nop
  58034. 8018026: e7fd b.n 8018024 <pvPortMalloc+0xf8>
  58035. /* Calculate the sizes of two blocks split from the
  58036. single block. */
  58037. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  58038. 8018028: 6a7b ldr r3, [r7, #36] @ 0x24
  58039. 801802a: 685a ldr r2, [r3, #4]
  58040. 801802c: 687b ldr r3, [r7, #4]
  58041. 801802e: 1ad2 subs r2, r2, r3
  58042. 8018030: 69bb ldr r3, [r7, #24]
  58043. 8018032: 605a str r2, [r3, #4]
  58044. pxBlock->xBlockSize = xWantedSize;
  58045. 8018034: 6a7b ldr r3, [r7, #36] @ 0x24
  58046. 8018036: 687a ldr r2, [r7, #4]
  58047. 8018038: 605a str r2, [r3, #4]
  58048. /* Insert the new block into the list of free blocks. */
  58049. prvInsertBlockIntoFreeList( pxNewBlockLink );
  58050. 801803a: 69b8 ldr r0, [r7, #24]
  58051. 801803c: f000 f90a bl 8018254 <prvInsertBlockIntoFreeList>
  58052. else
  58053. {
  58054. mtCOVERAGE_TEST_MARKER();
  58055. }
  58056. xFreeBytesRemaining -= pxBlock->xBlockSize;
  58057. 8018040: 4b1d ldr r3, [pc, #116] @ (80180b8 <pvPortMalloc+0x18c>)
  58058. 8018042: 681a ldr r2, [r3, #0]
  58059. 8018044: 6a7b ldr r3, [r7, #36] @ 0x24
  58060. 8018046: 685b ldr r3, [r3, #4]
  58061. 8018048: 1ad3 subs r3, r2, r3
  58062. 801804a: 4a1b ldr r2, [pc, #108] @ (80180b8 <pvPortMalloc+0x18c>)
  58063. 801804c: 6013 str r3, [r2, #0]
  58064. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  58065. 801804e: 4b1a ldr r3, [pc, #104] @ (80180b8 <pvPortMalloc+0x18c>)
  58066. 8018050: 681a ldr r2, [r3, #0]
  58067. 8018052: 4b1b ldr r3, [pc, #108] @ (80180c0 <pvPortMalloc+0x194>)
  58068. 8018054: 681b ldr r3, [r3, #0]
  58069. 8018056: 429a cmp r2, r3
  58070. 8018058: d203 bcs.n 8018062 <pvPortMalloc+0x136>
  58071. {
  58072. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  58073. 801805a: 4b17 ldr r3, [pc, #92] @ (80180b8 <pvPortMalloc+0x18c>)
  58074. 801805c: 681b ldr r3, [r3, #0]
  58075. 801805e: 4a18 ldr r2, [pc, #96] @ (80180c0 <pvPortMalloc+0x194>)
  58076. 8018060: 6013 str r3, [r2, #0]
  58077. mtCOVERAGE_TEST_MARKER();
  58078. }
  58079. /* The block is being returned - it is allocated and owned
  58080. by the application and has no "next" block. */
  58081. pxBlock->xBlockSize |= xBlockAllocatedBit;
  58082. 8018062: 6a7b ldr r3, [r7, #36] @ 0x24
  58083. 8018064: 685a ldr r2, [r3, #4]
  58084. 8018066: 4b13 ldr r3, [pc, #76] @ (80180b4 <pvPortMalloc+0x188>)
  58085. 8018068: 681b ldr r3, [r3, #0]
  58086. 801806a: 431a orrs r2, r3
  58087. 801806c: 6a7b ldr r3, [r7, #36] @ 0x24
  58088. 801806e: 605a str r2, [r3, #4]
  58089. pxBlock->pxNextFreeBlock = NULL;
  58090. 8018070: 6a7b ldr r3, [r7, #36] @ 0x24
  58091. 8018072: 2200 movs r2, #0
  58092. 8018074: 601a str r2, [r3, #0]
  58093. xNumberOfSuccessfulAllocations++;
  58094. 8018076: 4b13 ldr r3, [pc, #76] @ (80180c4 <pvPortMalloc+0x198>)
  58095. 8018078: 681b ldr r3, [r3, #0]
  58096. 801807a: 3301 adds r3, #1
  58097. 801807c: 4a11 ldr r2, [pc, #68] @ (80180c4 <pvPortMalloc+0x198>)
  58098. 801807e: 6013 str r3, [r2, #0]
  58099. mtCOVERAGE_TEST_MARKER();
  58100. }
  58101. traceMALLOC( pvReturn, xWantedSize );
  58102. }
  58103. ( void ) xTaskResumeAll();
  58104. 8018080: f7fe f882 bl 8016188 <xTaskResumeAll>
  58105. mtCOVERAGE_TEST_MARKER();
  58106. }
  58107. }
  58108. #endif
  58109. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  58110. 8018084: 69fb ldr r3, [r7, #28]
  58111. 8018086: f003 0307 and.w r3, r3, #7
  58112. 801808a: 2b00 cmp r3, #0
  58113. 801808c: d00b beq.n 80180a6 <pvPortMalloc+0x17a>
  58114. __asm volatile
  58115. 801808e: f04f 0350 mov.w r3, #80 @ 0x50
  58116. 8018092: f383 8811 msr BASEPRI, r3
  58117. 8018096: f3bf 8f6f isb sy
  58118. 801809a: f3bf 8f4f dsb sy
  58119. 801809e: 60fb str r3, [r7, #12]
  58120. }
  58121. 80180a0: bf00 nop
  58122. 80180a2: bf00 nop
  58123. 80180a4: e7fd b.n 80180a2 <pvPortMalloc+0x176>
  58124. return pvReturn;
  58125. 80180a6: 69fb ldr r3, [r7, #28]
  58126. }
  58127. 80180a8: 4618 mov r0, r3
  58128. 80180aa: 3728 adds r7, #40 @ 0x28
  58129. 80180ac: 46bd mov sp, r7
  58130. 80180ae: bd80 pop {r7, pc}
  58131. 80180b0: 24013034 .word 0x24013034
  58132. 80180b4: 24013048 .word 0x24013048
  58133. 80180b8: 24013038 .word 0x24013038
  58134. 80180bc: 2401302c .word 0x2401302c
  58135. 80180c0: 2401303c .word 0x2401303c
  58136. 80180c4: 24013040 .word 0x24013040
  58137. 080180c8 <vPortFree>:
  58138. /*-----------------------------------------------------------*/
  58139. void vPortFree( void *pv )
  58140. {
  58141. 80180c8: b580 push {r7, lr}
  58142. 80180ca: b086 sub sp, #24
  58143. 80180cc: af00 add r7, sp, #0
  58144. 80180ce: 6078 str r0, [r7, #4]
  58145. uint8_t *puc = ( uint8_t * ) pv;
  58146. 80180d0: 687b ldr r3, [r7, #4]
  58147. 80180d2: 617b str r3, [r7, #20]
  58148. BlockLink_t *pxLink;
  58149. if( pv != NULL )
  58150. 80180d4: 687b ldr r3, [r7, #4]
  58151. 80180d6: 2b00 cmp r3, #0
  58152. 80180d8: d04f beq.n 801817a <vPortFree+0xb2>
  58153. {
  58154. /* The memory being freed will have an BlockLink_t structure immediately
  58155. before it. */
  58156. puc -= xHeapStructSize;
  58157. 80180da: 2308 movs r3, #8
  58158. 80180dc: 425b negs r3, r3
  58159. 80180de: 697a ldr r2, [r7, #20]
  58160. 80180e0: 4413 add r3, r2
  58161. 80180e2: 617b str r3, [r7, #20]
  58162. /* This casting is to keep the compiler from issuing warnings. */
  58163. pxLink = ( void * ) puc;
  58164. 80180e4: 697b ldr r3, [r7, #20]
  58165. 80180e6: 613b str r3, [r7, #16]
  58166. /* Check the block is actually allocated. */
  58167. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  58168. 80180e8: 693b ldr r3, [r7, #16]
  58169. 80180ea: 685a ldr r2, [r3, #4]
  58170. 80180ec: 4b25 ldr r3, [pc, #148] @ (8018184 <vPortFree+0xbc>)
  58171. 80180ee: 681b ldr r3, [r3, #0]
  58172. 80180f0: 4013 ands r3, r2
  58173. 80180f2: 2b00 cmp r3, #0
  58174. 80180f4: d10b bne.n 801810e <vPortFree+0x46>
  58175. __asm volatile
  58176. 80180f6: f04f 0350 mov.w r3, #80 @ 0x50
  58177. 80180fa: f383 8811 msr BASEPRI, r3
  58178. 80180fe: f3bf 8f6f isb sy
  58179. 8018102: f3bf 8f4f dsb sy
  58180. 8018106: 60fb str r3, [r7, #12]
  58181. }
  58182. 8018108: bf00 nop
  58183. 801810a: bf00 nop
  58184. 801810c: e7fd b.n 801810a <vPortFree+0x42>
  58185. configASSERT( pxLink->pxNextFreeBlock == NULL );
  58186. 801810e: 693b ldr r3, [r7, #16]
  58187. 8018110: 681b ldr r3, [r3, #0]
  58188. 8018112: 2b00 cmp r3, #0
  58189. 8018114: d00b beq.n 801812e <vPortFree+0x66>
  58190. __asm volatile
  58191. 8018116: f04f 0350 mov.w r3, #80 @ 0x50
  58192. 801811a: f383 8811 msr BASEPRI, r3
  58193. 801811e: f3bf 8f6f isb sy
  58194. 8018122: f3bf 8f4f dsb sy
  58195. 8018126: 60bb str r3, [r7, #8]
  58196. }
  58197. 8018128: bf00 nop
  58198. 801812a: bf00 nop
  58199. 801812c: e7fd b.n 801812a <vPortFree+0x62>
  58200. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  58201. 801812e: 693b ldr r3, [r7, #16]
  58202. 8018130: 685a ldr r2, [r3, #4]
  58203. 8018132: 4b14 ldr r3, [pc, #80] @ (8018184 <vPortFree+0xbc>)
  58204. 8018134: 681b ldr r3, [r3, #0]
  58205. 8018136: 4013 ands r3, r2
  58206. 8018138: 2b00 cmp r3, #0
  58207. 801813a: d01e beq.n 801817a <vPortFree+0xb2>
  58208. {
  58209. if( pxLink->pxNextFreeBlock == NULL )
  58210. 801813c: 693b ldr r3, [r7, #16]
  58211. 801813e: 681b ldr r3, [r3, #0]
  58212. 8018140: 2b00 cmp r3, #0
  58213. 8018142: d11a bne.n 801817a <vPortFree+0xb2>
  58214. {
  58215. /* The block is being returned to the heap - it is no longer
  58216. allocated. */
  58217. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  58218. 8018144: 693b ldr r3, [r7, #16]
  58219. 8018146: 685a ldr r2, [r3, #4]
  58220. 8018148: 4b0e ldr r3, [pc, #56] @ (8018184 <vPortFree+0xbc>)
  58221. 801814a: 681b ldr r3, [r3, #0]
  58222. 801814c: 43db mvns r3, r3
  58223. 801814e: 401a ands r2, r3
  58224. 8018150: 693b ldr r3, [r7, #16]
  58225. 8018152: 605a str r2, [r3, #4]
  58226. vTaskSuspendAll();
  58227. 8018154: f7fe f80a bl 801616c <vTaskSuspendAll>
  58228. {
  58229. /* Add this block to the list of free blocks. */
  58230. xFreeBytesRemaining += pxLink->xBlockSize;
  58231. 8018158: 693b ldr r3, [r7, #16]
  58232. 801815a: 685a ldr r2, [r3, #4]
  58233. 801815c: 4b0a ldr r3, [pc, #40] @ (8018188 <vPortFree+0xc0>)
  58234. 801815e: 681b ldr r3, [r3, #0]
  58235. 8018160: 4413 add r3, r2
  58236. 8018162: 4a09 ldr r2, [pc, #36] @ (8018188 <vPortFree+0xc0>)
  58237. 8018164: 6013 str r3, [r2, #0]
  58238. traceFREE( pv, pxLink->xBlockSize );
  58239. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  58240. 8018166: 6938 ldr r0, [r7, #16]
  58241. 8018168: f000 f874 bl 8018254 <prvInsertBlockIntoFreeList>
  58242. xNumberOfSuccessfulFrees++;
  58243. 801816c: 4b07 ldr r3, [pc, #28] @ (801818c <vPortFree+0xc4>)
  58244. 801816e: 681b ldr r3, [r3, #0]
  58245. 8018170: 3301 adds r3, #1
  58246. 8018172: 4a06 ldr r2, [pc, #24] @ (801818c <vPortFree+0xc4>)
  58247. 8018174: 6013 str r3, [r2, #0]
  58248. }
  58249. ( void ) xTaskResumeAll();
  58250. 8018176: f7fe f807 bl 8016188 <xTaskResumeAll>
  58251. else
  58252. {
  58253. mtCOVERAGE_TEST_MARKER();
  58254. }
  58255. }
  58256. }
  58257. 801817a: bf00 nop
  58258. 801817c: 3718 adds r7, #24
  58259. 801817e: 46bd mov sp, r7
  58260. 8018180: bd80 pop {r7, pc}
  58261. 8018182: bf00 nop
  58262. 8018184: 24013048 .word 0x24013048
  58263. 8018188: 24013038 .word 0x24013038
  58264. 801818c: 24013044 .word 0x24013044
  58265. 08018190 <prvHeapInit>:
  58266. /* This just exists to keep the linker quiet. */
  58267. }
  58268. /*-----------------------------------------------------------*/
  58269. static void prvHeapInit( void )
  58270. {
  58271. 8018190: b480 push {r7}
  58272. 8018192: b085 sub sp, #20
  58273. 8018194: af00 add r7, sp, #0
  58274. BlockLink_t *pxFirstFreeBlock;
  58275. uint8_t *pucAlignedHeap;
  58276. size_t uxAddress;
  58277. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  58278. 8018196: f44f 3380 mov.w r3, #65536 @ 0x10000
  58279. 801819a: 60bb str r3, [r7, #8]
  58280. /* Ensure the heap starts on a correctly aligned boundary. */
  58281. uxAddress = ( size_t ) ucHeap;
  58282. 801819c: 4b27 ldr r3, [pc, #156] @ (801823c <prvHeapInit+0xac>)
  58283. 801819e: 60fb str r3, [r7, #12]
  58284. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  58285. 80181a0: 68fb ldr r3, [r7, #12]
  58286. 80181a2: f003 0307 and.w r3, r3, #7
  58287. 80181a6: 2b00 cmp r3, #0
  58288. 80181a8: d00c beq.n 80181c4 <prvHeapInit+0x34>
  58289. {
  58290. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  58291. 80181aa: 68fb ldr r3, [r7, #12]
  58292. 80181ac: 3307 adds r3, #7
  58293. 80181ae: 60fb str r3, [r7, #12]
  58294. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58295. 80181b0: 68fb ldr r3, [r7, #12]
  58296. 80181b2: f023 0307 bic.w r3, r3, #7
  58297. 80181b6: 60fb str r3, [r7, #12]
  58298. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  58299. 80181b8: 68ba ldr r2, [r7, #8]
  58300. 80181ba: 68fb ldr r3, [r7, #12]
  58301. 80181bc: 1ad3 subs r3, r2, r3
  58302. 80181be: 4a1f ldr r2, [pc, #124] @ (801823c <prvHeapInit+0xac>)
  58303. 80181c0: 4413 add r3, r2
  58304. 80181c2: 60bb str r3, [r7, #8]
  58305. }
  58306. pucAlignedHeap = ( uint8_t * ) uxAddress;
  58307. 80181c4: 68fb ldr r3, [r7, #12]
  58308. 80181c6: 607b str r3, [r7, #4]
  58309. /* xStart is used to hold a pointer to the first item in the list of free
  58310. blocks. The void cast is used to prevent compiler warnings. */
  58311. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  58312. 80181c8: 4a1d ldr r2, [pc, #116] @ (8018240 <prvHeapInit+0xb0>)
  58313. 80181ca: 687b ldr r3, [r7, #4]
  58314. 80181cc: 6013 str r3, [r2, #0]
  58315. xStart.xBlockSize = ( size_t ) 0;
  58316. 80181ce: 4b1c ldr r3, [pc, #112] @ (8018240 <prvHeapInit+0xb0>)
  58317. 80181d0: 2200 movs r2, #0
  58318. 80181d2: 605a str r2, [r3, #4]
  58319. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  58320. at the end of the heap space. */
  58321. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  58322. 80181d4: 687b ldr r3, [r7, #4]
  58323. 80181d6: 68ba ldr r2, [r7, #8]
  58324. 80181d8: 4413 add r3, r2
  58325. 80181da: 60fb str r3, [r7, #12]
  58326. uxAddress -= xHeapStructSize;
  58327. 80181dc: 2208 movs r2, #8
  58328. 80181de: 68fb ldr r3, [r7, #12]
  58329. 80181e0: 1a9b subs r3, r3, r2
  58330. 80181e2: 60fb str r3, [r7, #12]
  58331. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58332. 80181e4: 68fb ldr r3, [r7, #12]
  58333. 80181e6: f023 0307 bic.w r3, r3, #7
  58334. 80181ea: 60fb str r3, [r7, #12]
  58335. pxEnd = ( void * ) uxAddress;
  58336. 80181ec: 68fb ldr r3, [r7, #12]
  58337. 80181ee: 4a15 ldr r2, [pc, #84] @ (8018244 <prvHeapInit+0xb4>)
  58338. 80181f0: 6013 str r3, [r2, #0]
  58339. pxEnd->xBlockSize = 0;
  58340. 80181f2: 4b14 ldr r3, [pc, #80] @ (8018244 <prvHeapInit+0xb4>)
  58341. 80181f4: 681b ldr r3, [r3, #0]
  58342. 80181f6: 2200 movs r2, #0
  58343. 80181f8: 605a str r2, [r3, #4]
  58344. pxEnd->pxNextFreeBlock = NULL;
  58345. 80181fa: 4b12 ldr r3, [pc, #72] @ (8018244 <prvHeapInit+0xb4>)
  58346. 80181fc: 681b ldr r3, [r3, #0]
  58347. 80181fe: 2200 movs r2, #0
  58348. 8018200: 601a str r2, [r3, #0]
  58349. /* To start with there is a single free block that is sized to take up the
  58350. entire heap space, minus the space taken by pxEnd. */
  58351. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  58352. 8018202: 687b ldr r3, [r7, #4]
  58353. 8018204: 603b str r3, [r7, #0]
  58354. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  58355. 8018206: 683b ldr r3, [r7, #0]
  58356. 8018208: 68fa ldr r2, [r7, #12]
  58357. 801820a: 1ad2 subs r2, r2, r3
  58358. 801820c: 683b ldr r3, [r7, #0]
  58359. 801820e: 605a str r2, [r3, #4]
  58360. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  58361. 8018210: 4b0c ldr r3, [pc, #48] @ (8018244 <prvHeapInit+0xb4>)
  58362. 8018212: 681a ldr r2, [r3, #0]
  58363. 8018214: 683b ldr r3, [r7, #0]
  58364. 8018216: 601a str r2, [r3, #0]
  58365. /* Only one block exists - and it covers the entire usable heap space. */
  58366. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58367. 8018218: 683b ldr r3, [r7, #0]
  58368. 801821a: 685b ldr r3, [r3, #4]
  58369. 801821c: 4a0a ldr r2, [pc, #40] @ (8018248 <prvHeapInit+0xb8>)
  58370. 801821e: 6013 str r3, [r2, #0]
  58371. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58372. 8018220: 683b ldr r3, [r7, #0]
  58373. 8018222: 685b ldr r3, [r3, #4]
  58374. 8018224: 4a09 ldr r2, [pc, #36] @ (801824c <prvHeapInit+0xbc>)
  58375. 8018226: 6013 str r3, [r2, #0]
  58376. /* Work out the position of the top bit in a size_t variable. */
  58377. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  58378. 8018228: 4b09 ldr r3, [pc, #36] @ (8018250 <prvHeapInit+0xc0>)
  58379. 801822a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  58380. 801822e: 601a str r2, [r3, #0]
  58381. }
  58382. 8018230: bf00 nop
  58383. 8018232: 3714 adds r7, #20
  58384. 8018234: 46bd mov sp, r7
  58385. 8018236: f85d 7b04 ldr.w r7, [sp], #4
  58386. 801823a: 4770 bx lr
  58387. 801823c: 2400302c .word 0x2400302c
  58388. 8018240: 2401302c .word 0x2401302c
  58389. 8018244: 24013034 .word 0x24013034
  58390. 8018248: 2401303c .word 0x2401303c
  58391. 801824c: 24013038 .word 0x24013038
  58392. 8018250: 24013048 .word 0x24013048
  58393. 08018254 <prvInsertBlockIntoFreeList>:
  58394. /*-----------------------------------------------------------*/
  58395. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  58396. {
  58397. 8018254: b480 push {r7}
  58398. 8018256: b085 sub sp, #20
  58399. 8018258: af00 add r7, sp, #0
  58400. 801825a: 6078 str r0, [r7, #4]
  58401. BlockLink_t *pxIterator;
  58402. uint8_t *puc;
  58403. /* Iterate through the list until a block is found that has a higher address
  58404. than the block being inserted. */
  58405. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  58406. 801825c: 4b28 ldr r3, [pc, #160] @ (8018300 <prvInsertBlockIntoFreeList+0xac>)
  58407. 801825e: 60fb str r3, [r7, #12]
  58408. 8018260: e002 b.n 8018268 <prvInsertBlockIntoFreeList+0x14>
  58409. 8018262: 68fb ldr r3, [r7, #12]
  58410. 8018264: 681b ldr r3, [r3, #0]
  58411. 8018266: 60fb str r3, [r7, #12]
  58412. 8018268: 68fb ldr r3, [r7, #12]
  58413. 801826a: 681b ldr r3, [r3, #0]
  58414. 801826c: 687a ldr r2, [r7, #4]
  58415. 801826e: 429a cmp r2, r3
  58416. 8018270: d8f7 bhi.n 8018262 <prvInsertBlockIntoFreeList+0xe>
  58417. /* Nothing to do here, just iterate to the right position. */
  58418. }
  58419. /* Do the block being inserted, and the block it is being inserted after
  58420. make a contiguous block of memory? */
  58421. puc = ( uint8_t * ) pxIterator;
  58422. 8018272: 68fb ldr r3, [r7, #12]
  58423. 8018274: 60bb str r3, [r7, #8]
  58424. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  58425. 8018276: 68fb ldr r3, [r7, #12]
  58426. 8018278: 685b ldr r3, [r3, #4]
  58427. 801827a: 68ba ldr r2, [r7, #8]
  58428. 801827c: 4413 add r3, r2
  58429. 801827e: 687a ldr r2, [r7, #4]
  58430. 8018280: 429a cmp r2, r3
  58431. 8018282: d108 bne.n 8018296 <prvInsertBlockIntoFreeList+0x42>
  58432. {
  58433. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  58434. 8018284: 68fb ldr r3, [r7, #12]
  58435. 8018286: 685a ldr r2, [r3, #4]
  58436. 8018288: 687b ldr r3, [r7, #4]
  58437. 801828a: 685b ldr r3, [r3, #4]
  58438. 801828c: 441a add r2, r3
  58439. 801828e: 68fb ldr r3, [r7, #12]
  58440. 8018290: 605a str r2, [r3, #4]
  58441. pxBlockToInsert = pxIterator;
  58442. 8018292: 68fb ldr r3, [r7, #12]
  58443. 8018294: 607b str r3, [r7, #4]
  58444. mtCOVERAGE_TEST_MARKER();
  58445. }
  58446. /* Do the block being inserted, and the block it is being inserted before
  58447. make a contiguous block of memory? */
  58448. puc = ( uint8_t * ) pxBlockToInsert;
  58449. 8018296: 687b ldr r3, [r7, #4]
  58450. 8018298: 60bb str r3, [r7, #8]
  58451. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  58452. 801829a: 687b ldr r3, [r7, #4]
  58453. 801829c: 685b ldr r3, [r3, #4]
  58454. 801829e: 68ba ldr r2, [r7, #8]
  58455. 80182a0: 441a add r2, r3
  58456. 80182a2: 68fb ldr r3, [r7, #12]
  58457. 80182a4: 681b ldr r3, [r3, #0]
  58458. 80182a6: 429a cmp r2, r3
  58459. 80182a8: d118 bne.n 80182dc <prvInsertBlockIntoFreeList+0x88>
  58460. {
  58461. if( pxIterator->pxNextFreeBlock != pxEnd )
  58462. 80182aa: 68fb ldr r3, [r7, #12]
  58463. 80182ac: 681a ldr r2, [r3, #0]
  58464. 80182ae: 4b15 ldr r3, [pc, #84] @ (8018304 <prvInsertBlockIntoFreeList+0xb0>)
  58465. 80182b0: 681b ldr r3, [r3, #0]
  58466. 80182b2: 429a cmp r2, r3
  58467. 80182b4: d00d beq.n 80182d2 <prvInsertBlockIntoFreeList+0x7e>
  58468. {
  58469. /* Form one big block from the two blocks. */
  58470. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  58471. 80182b6: 687b ldr r3, [r7, #4]
  58472. 80182b8: 685a ldr r2, [r3, #4]
  58473. 80182ba: 68fb ldr r3, [r7, #12]
  58474. 80182bc: 681b ldr r3, [r3, #0]
  58475. 80182be: 685b ldr r3, [r3, #4]
  58476. 80182c0: 441a add r2, r3
  58477. 80182c2: 687b ldr r3, [r7, #4]
  58478. 80182c4: 605a str r2, [r3, #4]
  58479. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  58480. 80182c6: 68fb ldr r3, [r7, #12]
  58481. 80182c8: 681b ldr r3, [r3, #0]
  58482. 80182ca: 681a ldr r2, [r3, #0]
  58483. 80182cc: 687b ldr r3, [r7, #4]
  58484. 80182ce: 601a str r2, [r3, #0]
  58485. 80182d0: e008 b.n 80182e4 <prvInsertBlockIntoFreeList+0x90>
  58486. }
  58487. else
  58488. {
  58489. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  58490. 80182d2: 4b0c ldr r3, [pc, #48] @ (8018304 <prvInsertBlockIntoFreeList+0xb0>)
  58491. 80182d4: 681a ldr r2, [r3, #0]
  58492. 80182d6: 687b ldr r3, [r7, #4]
  58493. 80182d8: 601a str r2, [r3, #0]
  58494. 80182da: e003 b.n 80182e4 <prvInsertBlockIntoFreeList+0x90>
  58495. }
  58496. }
  58497. else
  58498. {
  58499. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  58500. 80182dc: 68fb ldr r3, [r7, #12]
  58501. 80182de: 681a ldr r2, [r3, #0]
  58502. 80182e0: 687b ldr r3, [r7, #4]
  58503. 80182e2: 601a str r2, [r3, #0]
  58504. /* If the block being inserted plugged a gab, so was merged with the block
  58505. before and the block after, then it's pxNextFreeBlock pointer will have
  58506. already been set, and should not be set here as that would make it point
  58507. to itself. */
  58508. if( pxIterator != pxBlockToInsert )
  58509. 80182e4: 68fa ldr r2, [r7, #12]
  58510. 80182e6: 687b ldr r3, [r7, #4]
  58511. 80182e8: 429a cmp r2, r3
  58512. 80182ea: d002 beq.n 80182f2 <prvInsertBlockIntoFreeList+0x9e>
  58513. {
  58514. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  58515. 80182ec: 68fb ldr r3, [r7, #12]
  58516. 80182ee: 687a ldr r2, [r7, #4]
  58517. 80182f0: 601a str r2, [r3, #0]
  58518. }
  58519. else
  58520. {
  58521. mtCOVERAGE_TEST_MARKER();
  58522. }
  58523. }
  58524. 80182f2: bf00 nop
  58525. 80182f4: 3714 adds r7, #20
  58526. 80182f6: 46bd mov sp, r7
  58527. 80182f8: f85d 7b04 ldr.w r7, [sp], #4
  58528. 80182fc: 4770 bx lr
  58529. 80182fe: bf00 nop
  58530. 8018300: 2401302c .word 0x2401302c
  58531. 8018304: 24013034 .word 0x24013034
  58532. 08018308 <memset>:
  58533. 8018308: 4402 add r2, r0
  58534. 801830a: 4603 mov r3, r0
  58535. 801830c: 4293 cmp r3, r2
  58536. 801830e: d100 bne.n 8018312 <memset+0xa>
  58537. 8018310: 4770 bx lr
  58538. 8018312: f803 1b01 strb.w r1, [r3], #1
  58539. 8018316: e7f9 b.n 801830c <memset+0x4>
  58540. 08018318 <_reclaim_reent>:
  58541. 8018318: 4b29 ldr r3, [pc, #164] @ (80183c0 <_reclaim_reent+0xa8>)
  58542. 801831a: 681b ldr r3, [r3, #0]
  58543. 801831c: 4283 cmp r3, r0
  58544. 801831e: b570 push {r4, r5, r6, lr}
  58545. 8018320: 4604 mov r4, r0
  58546. 8018322: d04b beq.n 80183bc <_reclaim_reent+0xa4>
  58547. 8018324: 69c3 ldr r3, [r0, #28]
  58548. 8018326: b1ab cbz r3, 8018354 <_reclaim_reent+0x3c>
  58549. 8018328: 68db ldr r3, [r3, #12]
  58550. 801832a: b16b cbz r3, 8018348 <_reclaim_reent+0x30>
  58551. 801832c: 2500 movs r5, #0
  58552. 801832e: 69e3 ldr r3, [r4, #28]
  58553. 8018330: 68db ldr r3, [r3, #12]
  58554. 8018332: 5959 ldr r1, [r3, r5]
  58555. 8018334: 2900 cmp r1, #0
  58556. 8018336: d13b bne.n 80183b0 <_reclaim_reent+0x98>
  58557. 8018338: 3504 adds r5, #4
  58558. 801833a: 2d80 cmp r5, #128 @ 0x80
  58559. 801833c: d1f7 bne.n 801832e <_reclaim_reent+0x16>
  58560. 801833e: 69e3 ldr r3, [r4, #28]
  58561. 8018340: 4620 mov r0, r4
  58562. 8018342: 68d9 ldr r1, [r3, #12]
  58563. 8018344: f000 f878 bl 8018438 <_free_r>
  58564. 8018348: 69e3 ldr r3, [r4, #28]
  58565. 801834a: 6819 ldr r1, [r3, #0]
  58566. 801834c: b111 cbz r1, 8018354 <_reclaim_reent+0x3c>
  58567. 801834e: 4620 mov r0, r4
  58568. 8018350: f000 f872 bl 8018438 <_free_r>
  58569. 8018354: 6961 ldr r1, [r4, #20]
  58570. 8018356: b111 cbz r1, 801835e <_reclaim_reent+0x46>
  58571. 8018358: 4620 mov r0, r4
  58572. 801835a: f000 f86d bl 8018438 <_free_r>
  58573. 801835e: 69e1 ldr r1, [r4, #28]
  58574. 8018360: b111 cbz r1, 8018368 <_reclaim_reent+0x50>
  58575. 8018362: 4620 mov r0, r4
  58576. 8018364: f000 f868 bl 8018438 <_free_r>
  58577. 8018368: 6b21 ldr r1, [r4, #48] @ 0x30
  58578. 801836a: b111 cbz r1, 8018372 <_reclaim_reent+0x5a>
  58579. 801836c: 4620 mov r0, r4
  58580. 801836e: f000 f863 bl 8018438 <_free_r>
  58581. 8018372: 6b61 ldr r1, [r4, #52] @ 0x34
  58582. 8018374: b111 cbz r1, 801837c <_reclaim_reent+0x64>
  58583. 8018376: 4620 mov r0, r4
  58584. 8018378: f000 f85e bl 8018438 <_free_r>
  58585. 801837c: 6ba1 ldr r1, [r4, #56] @ 0x38
  58586. 801837e: b111 cbz r1, 8018386 <_reclaim_reent+0x6e>
  58587. 8018380: 4620 mov r0, r4
  58588. 8018382: f000 f859 bl 8018438 <_free_r>
  58589. 8018386: 6ca1 ldr r1, [r4, #72] @ 0x48
  58590. 8018388: b111 cbz r1, 8018390 <_reclaim_reent+0x78>
  58591. 801838a: 4620 mov r0, r4
  58592. 801838c: f000 f854 bl 8018438 <_free_r>
  58593. 8018390: 6c61 ldr r1, [r4, #68] @ 0x44
  58594. 8018392: b111 cbz r1, 801839a <_reclaim_reent+0x82>
  58595. 8018394: 4620 mov r0, r4
  58596. 8018396: f000 f84f bl 8018438 <_free_r>
  58597. 801839a: 6ae1 ldr r1, [r4, #44] @ 0x2c
  58598. 801839c: b111 cbz r1, 80183a4 <_reclaim_reent+0x8c>
  58599. 801839e: 4620 mov r0, r4
  58600. 80183a0: f000 f84a bl 8018438 <_free_r>
  58601. 80183a4: 6a23 ldr r3, [r4, #32]
  58602. 80183a6: b14b cbz r3, 80183bc <_reclaim_reent+0xa4>
  58603. 80183a8: 4620 mov r0, r4
  58604. 80183aa: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  58605. 80183ae: 4718 bx r3
  58606. 80183b0: 680e ldr r6, [r1, #0]
  58607. 80183b2: 4620 mov r0, r4
  58608. 80183b4: f000 f840 bl 8018438 <_free_r>
  58609. 80183b8: 4631 mov r1, r6
  58610. 80183ba: e7bb b.n 8018334 <_reclaim_reent+0x1c>
  58611. 80183bc: bd70 pop {r4, r5, r6, pc}
  58612. 80183be: bf00 nop
  58613. 80183c0: 24000048 .word 0x24000048
  58614. 080183c4 <__errno>:
  58615. 80183c4: 4b01 ldr r3, [pc, #4] @ (80183cc <__errno+0x8>)
  58616. 80183c6: 6818 ldr r0, [r3, #0]
  58617. 80183c8: 4770 bx lr
  58618. 80183ca: bf00 nop
  58619. 80183cc: 24000048 .word 0x24000048
  58620. 080183d0 <__libc_init_array>:
  58621. 80183d0: b570 push {r4, r5, r6, lr}
  58622. 80183d2: 4d0d ldr r5, [pc, #52] @ (8018408 <__libc_init_array+0x38>)
  58623. 80183d4: 4c0d ldr r4, [pc, #52] @ (801840c <__libc_init_array+0x3c>)
  58624. 80183d6: 1b64 subs r4, r4, r5
  58625. 80183d8: 10a4 asrs r4, r4, #2
  58626. 80183da: 2600 movs r6, #0
  58627. 80183dc: 42a6 cmp r6, r4
  58628. 80183de: d109 bne.n 80183f4 <__libc_init_array+0x24>
  58629. 80183e0: 4d0b ldr r5, [pc, #44] @ (8018410 <__libc_init_array+0x40>)
  58630. 80183e2: 4c0c ldr r4, [pc, #48] @ (8018414 <__libc_init_array+0x44>)
  58631. 80183e4: f000 f920 bl 8018628 <_init>
  58632. 80183e8: 1b64 subs r4, r4, r5
  58633. 80183ea: 10a4 asrs r4, r4, #2
  58634. 80183ec: 2600 movs r6, #0
  58635. 80183ee: 42a6 cmp r6, r4
  58636. 80183f0: d105 bne.n 80183fe <__libc_init_array+0x2e>
  58637. 80183f2: bd70 pop {r4, r5, r6, pc}
  58638. 80183f4: f855 3b04 ldr.w r3, [r5], #4
  58639. 80183f8: 4798 blx r3
  58640. 80183fa: 3601 adds r6, #1
  58641. 80183fc: e7ee b.n 80183dc <__libc_init_array+0xc>
  58642. 80183fe: f855 3b04 ldr.w r3, [r5], #4
  58643. 8018402: 4798 blx r3
  58644. 8018404: 3601 adds r6, #1
  58645. 8018406: e7f2 b.n 80183ee <__libc_init_array+0x1e>
  58646. 8018408: 0801874c .word 0x0801874c
  58647. 801840c: 0801874c .word 0x0801874c
  58648. 8018410: 0801874c .word 0x0801874c
  58649. 8018414: 08018750 .word 0x08018750
  58650. 08018418 <__retarget_lock_acquire_recursive>:
  58651. 8018418: 4770 bx lr
  58652. 0801841a <__retarget_lock_release_recursive>:
  58653. 801841a: 4770 bx lr
  58654. 0801841c <memcpy>:
  58655. 801841c: 440a add r2, r1
  58656. 801841e: 4291 cmp r1, r2
  58657. 8018420: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  58658. 8018424: d100 bne.n 8018428 <memcpy+0xc>
  58659. 8018426: 4770 bx lr
  58660. 8018428: b510 push {r4, lr}
  58661. 801842a: f811 4b01 ldrb.w r4, [r1], #1
  58662. 801842e: f803 4f01 strb.w r4, [r3, #1]!
  58663. 8018432: 4291 cmp r1, r2
  58664. 8018434: d1f9 bne.n 801842a <memcpy+0xe>
  58665. 8018436: bd10 pop {r4, pc}
  58666. 08018438 <_free_r>:
  58667. 8018438: b538 push {r3, r4, r5, lr}
  58668. 801843a: 4605 mov r5, r0
  58669. 801843c: 2900 cmp r1, #0
  58670. 801843e: d041 beq.n 80184c4 <_free_r+0x8c>
  58671. 8018440: f851 3c04 ldr.w r3, [r1, #-4]
  58672. 8018444: 1f0c subs r4, r1, #4
  58673. 8018446: 2b00 cmp r3, #0
  58674. 8018448: bfb8 it lt
  58675. 801844a: 18e4 addlt r4, r4, r3
  58676. 801844c: f000 f83e bl 80184cc <__malloc_lock>
  58677. 8018450: 4a1d ldr r2, [pc, #116] @ (80184c8 <_free_r+0x90>)
  58678. 8018452: 6813 ldr r3, [r2, #0]
  58679. 8018454: b933 cbnz r3, 8018464 <_free_r+0x2c>
  58680. 8018456: 6063 str r3, [r4, #4]
  58681. 8018458: 6014 str r4, [r2, #0]
  58682. 801845a: 4628 mov r0, r5
  58683. 801845c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  58684. 8018460: f000 b83a b.w 80184d8 <__malloc_unlock>
  58685. 8018464: 42a3 cmp r3, r4
  58686. 8018466: d908 bls.n 801847a <_free_r+0x42>
  58687. 8018468: 6820 ldr r0, [r4, #0]
  58688. 801846a: 1821 adds r1, r4, r0
  58689. 801846c: 428b cmp r3, r1
  58690. 801846e: bf01 itttt eq
  58691. 8018470: 6819 ldreq r1, [r3, #0]
  58692. 8018472: 685b ldreq r3, [r3, #4]
  58693. 8018474: 1809 addeq r1, r1, r0
  58694. 8018476: 6021 streq r1, [r4, #0]
  58695. 8018478: e7ed b.n 8018456 <_free_r+0x1e>
  58696. 801847a: 461a mov r2, r3
  58697. 801847c: 685b ldr r3, [r3, #4]
  58698. 801847e: b10b cbz r3, 8018484 <_free_r+0x4c>
  58699. 8018480: 42a3 cmp r3, r4
  58700. 8018482: d9fa bls.n 801847a <_free_r+0x42>
  58701. 8018484: 6811 ldr r1, [r2, #0]
  58702. 8018486: 1850 adds r0, r2, r1
  58703. 8018488: 42a0 cmp r0, r4
  58704. 801848a: d10b bne.n 80184a4 <_free_r+0x6c>
  58705. 801848c: 6820 ldr r0, [r4, #0]
  58706. 801848e: 4401 add r1, r0
  58707. 8018490: 1850 adds r0, r2, r1
  58708. 8018492: 4283 cmp r3, r0
  58709. 8018494: 6011 str r1, [r2, #0]
  58710. 8018496: d1e0 bne.n 801845a <_free_r+0x22>
  58711. 8018498: 6818 ldr r0, [r3, #0]
  58712. 801849a: 685b ldr r3, [r3, #4]
  58713. 801849c: 6053 str r3, [r2, #4]
  58714. 801849e: 4408 add r0, r1
  58715. 80184a0: 6010 str r0, [r2, #0]
  58716. 80184a2: e7da b.n 801845a <_free_r+0x22>
  58717. 80184a4: d902 bls.n 80184ac <_free_r+0x74>
  58718. 80184a6: 230c movs r3, #12
  58719. 80184a8: 602b str r3, [r5, #0]
  58720. 80184aa: e7d6 b.n 801845a <_free_r+0x22>
  58721. 80184ac: 6820 ldr r0, [r4, #0]
  58722. 80184ae: 1821 adds r1, r4, r0
  58723. 80184b0: 428b cmp r3, r1
  58724. 80184b2: bf04 itt eq
  58725. 80184b4: 6819 ldreq r1, [r3, #0]
  58726. 80184b6: 685b ldreq r3, [r3, #4]
  58727. 80184b8: 6063 str r3, [r4, #4]
  58728. 80184ba: bf04 itt eq
  58729. 80184bc: 1809 addeq r1, r1, r0
  58730. 80184be: 6021 streq r1, [r4, #0]
  58731. 80184c0: 6054 str r4, [r2, #4]
  58732. 80184c2: e7ca b.n 801845a <_free_r+0x22>
  58733. 80184c4: bd38 pop {r3, r4, r5, pc}
  58734. 80184c6: bf00 nop
  58735. 80184c8: 24013188 .word 0x24013188
  58736. 080184cc <__malloc_lock>:
  58737. 80184cc: 4801 ldr r0, [pc, #4] @ (80184d4 <__malloc_lock+0x8>)
  58738. 80184ce: f7ff bfa3 b.w 8018418 <__retarget_lock_acquire_recursive>
  58739. 80184d2: bf00 nop
  58740. 80184d4: 24013184 .word 0x24013184
  58741. 080184d8 <__malloc_unlock>:
  58742. 80184d8: 4801 ldr r0, [pc, #4] @ (80184e0 <__malloc_unlock+0x8>)
  58743. 80184da: f7ff bf9e b.w 801841a <__retarget_lock_release_recursive>
  58744. 80184de: bf00 nop
  58745. 80184e0: 24013184 .word 0x24013184
  58746. 080184e4 <fmodf>:
  58747. 80184e4: b508 push {r3, lr}
  58748. 80184e6: ed2d 8b02 vpush {d8}
  58749. 80184ea: eef0 8a40 vmov.f32 s17, s0
  58750. 80184ee: eeb0 8a60 vmov.f32 s16, s1
  58751. 80184f2: f000 f817 bl 8018524 <__ieee754_fmodf>
  58752. 80184f6: eef4 8a48 vcmp.f32 s17, s16
  58753. 80184fa: eef1 fa10 vmrs APSR_nzcv, fpscr
  58754. 80184fe: d60c bvs.n 801851a <fmodf+0x36>
  58755. 8018500: eddf 8a07 vldr s17, [pc, #28] @ 8018520 <fmodf+0x3c>
  58756. 8018504: eeb4 8a68 vcmp.f32 s16, s17
  58757. 8018508: eef1 fa10 vmrs APSR_nzcv, fpscr
  58758. 801850c: d105 bne.n 801851a <fmodf+0x36>
  58759. 801850e: f7ff ff59 bl 80183c4 <__errno>
  58760. 8018512: ee88 0aa8 vdiv.f32 s0, s17, s17
  58761. 8018516: 2321 movs r3, #33 @ 0x21
  58762. 8018518: 6003 str r3, [r0, #0]
  58763. 801851a: ecbd 8b02 vpop {d8}
  58764. 801851e: bd08 pop {r3, pc}
  58765. 8018520: 00000000 .word 0x00000000
  58766. 08018524 <__ieee754_fmodf>:
  58767. 8018524: b5f0 push {r4, r5, r6, r7, lr}
  58768. 8018526: ee10 5a90 vmov r5, s1
  58769. 801852a: f025 4000 bic.w r0, r5, #2147483648 @ 0x80000000
  58770. 801852e: 1e43 subs r3, r0, #1
  58771. 8018530: f1b3 4fff cmp.w r3, #2139095040 @ 0x7f800000
  58772. 8018534: d206 bcs.n 8018544 <__ieee754_fmodf+0x20>
  58773. 8018536: ee10 3a10 vmov r3, s0
  58774. 801853a: f023 4600 bic.w r6, r3, #2147483648 @ 0x80000000
  58775. 801853e: f1b6 4fff cmp.w r6, #2139095040 @ 0x7f800000
  58776. 8018542: d304 bcc.n 801854e <__ieee754_fmodf+0x2a>
  58777. 8018544: ee60 0a20 vmul.f32 s1, s0, s1
  58778. 8018548: ee80 0aa0 vdiv.f32 s0, s1, s1
  58779. 801854c: bdf0 pop {r4, r5, r6, r7, pc}
  58780. 801854e: 4286 cmp r6, r0
  58781. 8018550: dbfc blt.n 801854c <__ieee754_fmodf+0x28>
  58782. 8018552: f003 4400 and.w r4, r3, #2147483648 @ 0x80000000
  58783. 8018556: d105 bne.n 8018564 <__ieee754_fmodf+0x40>
  58784. 8018558: 4b32 ldr r3, [pc, #200] @ (8018624 <__ieee754_fmodf+0x100>)
  58785. 801855a: eb03 7354 add.w r3, r3, r4, lsr #29
  58786. 801855e: ed93 0a00 vldr s0, [r3]
  58787. 8018562: e7f3 b.n 801854c <__ieee754_fmodf+0x28>
  58788. 8018564: f013 4fff tst.w r3, #2139095040 @ 0x7f800000
  58789. 8018568: d140 bne.n 80185ec <__ieee754_fmodf+0xc8>
  58790. 801856a: 0232 lsls r2, r6, #8
  58791. 801856c: f06f 017d mvn.w r1, #125 @ 0x7d
  58792. 8018570: 2a00 cmp r2, #0
  58793. 8018572: dc38 bgt.n 80185e6 <__ieee754_fmodf+0xc2>
  58794. 8018574: f015 4fff tst.w r5, #2139095040 @ 0x7f800000
  58795. 8018578: d13e bne.n 80185f8 <__ieee754_fmodf+0xd4>
  58796. 801857a: 0207 lsls r7, r0, #8
  58797. 801857c: f06f 027d mvn.w r2, #125 @ 0x7d
  58798. 8018580: 2f00 cmp r7, #0
  58799. 8018582: da36 bge.n 80185f2 <__ieee754_fmodf+0xce>
  58800. 8018584: f111 0f7e cmn.w r1, #126 @ 0x7e
  58801. 8018588: bfb9 ittee lt
  58802. 801858a: f06f 037d mvnlt.w r3, #125 @ 0x7d
  58803. 801858e: 1a5b sublt r3, r3, r1
  58804. 8018590: f3c3 0316 ubfxge r3, r3, #0, #23
  58805. 8018594: f443 0300 orrge.w r3, r3, #8388608 @ 0x800000
  58806. 8018598: bfb8 it lt
  58807. 801859a: fa06 f303 lsllt.w r3, r6, r3
  58808. 801859e: f112 0f7e cmn.w r2, #126 @ 0x7e
  58809. 80185a2: bfb5 itete lt
  58810. 80185a4: f06f 057d mvnlt.w r5, #125 @ 0x7d
  58811. 80185a8: f3c5 0516 ubfxge r5, r5, #0, #23
  58812. 80185ac: 1aad sublt r5, r5, r2
  58813. 80185ae: f445 0000 orrge.w r0, r5, #8388608 @ 0x800000
  58814. 80185b2: bfb8 it lt
  58815. 80185b4: 40a8 lsllt r0, r5
  58816. 80185b6: 1a89 subs r1, r1, r2
  58817. 80185b8: 1a1d subs r5, r3, r0
  58818. 80185ba: bb01 cbnz r1, 80185fe <__ieee754_fmodf+0xda>
  58819. 80185bc: ea13 0325 ands.w r3, r3, r5, asr #32
  58820. 80185c0: bf38 it cc
  58821. 80185c2: 462b movcc r3, r5
  58822. 80185c4: 2b00 cmp r3, #0
  58823. 80185c6: d0c7 beq.n 8018558 <__ieee754_fmodf+0x34>
  58824. 80185c8: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  58825. 80185cc: db1f blt.n 801860e <__ieee754_fmodf+0xea>
  58826. 80185ce: f112 0f7e cmn.w r2, #126 @ 0x7e
  58827. 80185d2: db1f blt.n 8018614 <__ieee754_fmodf+0xf0>
  58828. 80185d4: f5a3 0300 sub.w r3, r3, #8388608 @ 0x800000
  58829. 80185d8: 327f adds r2, #127 @ 0x7f
  58830. 80185da: 4323 orrs r3, r4
  58831. 80185dc: ea43 53c2 orr.w r3, r3, r2, lsl #23
  58832. 80185e0: ee00 3a10 vmov s0, r3
  58833. 80185e4: e7b2 b.n 801854c <__ieee754_fmodf+0x28>
  58834. 80185e6: 3901 subs r1, #1
  58835. 80185e8: 0052 lsls r2, r2, #1
  58836. 80185ea: e7c1 b.n 8018570 <__ieee754_fmodf+0x4c>
  58837. 80185ec: 15f1 asrs r1, r6, #23
  58838. 80185ee: 397f subs r1, #127 @ 0x7f
  58839. 80185f0: e7c0 b.n 8018574 <__ieee754_fmodf+0x50>
  58840. 80185f2: 3a01 subs r2, #1
  58841. 80185f4: 007f lsls r7, r7, #1
  58842. 80185f6: e7c3 b.n 8018580 <__ieee754_fmodf+0x5c>
  58843. 80185f8: 15c2 asrs r2, r0, #23
  58844. 80185fa: 3a7f subs r2, #127 @ 0x7f
  58845. 80185fc: e7c2 b.n 8018584 <__ieee754_fmodf+0x60>
  58846. 80185fe: 2d00 cmp r5, #0
  58847. 8018600: da02 bge.n 8018608 <__ieee754_fmodf+0xe4>
  58848. 8018602: 005b lsls r3, r3, #1
  58849. 8018604: 3901 subs r1, #1
  58850. 8018606: e7d7 b.n 80185b8 <__ieee754_fmodf+0x94>
  58851. 8018608: d0a6 beq.n 8018558 <__ieee754_fmodf+0x34>
  58852. 801860a: 006b lsls r3, r5, #1
  58853. 801860c: e7fa b.n 8018604 <__ieee754_fmodf+0xe0>
  58854. 801860e: 005b lsls r3, r3, #1
  58855. 8018610: 3a01 subs r2, #1
  58856. 8018612: e7d9 b.n 80185c8 <__ieee754_fmodf+0xa4>
  58857. 8018614: f1c2 22ff rsb r2, r2, #4278255360 @ 0xff00ff00
  58858. 8018618: f502 027f add.w r2, r2, #16711680 @ 0xff0000
  58859. 801861c: 3282 adds r2, #130 @ 0x82
  58860. 801861e: 4113 asrs r3, r2
  58861. 8018620: 4323 orrs r3, r4
  58862. 8018622: e7dd b.n 80185e0 <__ieee754_fmodf+0xbc>
  58863. 8018624: 0801873c .word 0x0801873c
  58864. 08018628 <_init>:
  58865. 8018628: b5f8 push {r3, r4, r5, r6, r7, lr}
  58866. 801862a: bf00 nop
  58867. 801862c: bcf8 pop {r3, r4, r5, r6, r7}
  58868. 801862e: bc08 pop {r3}
  58869. 8018630: 469e mov lr, r3
  58870. 8018632: 4770 bx lr
  58871. 08018634 <_fini>:
  58872. 8018634: b5f8 push {r3, r4, r5, r6, r7, lr}
  58873. 8018636: bf00 nop
  58874. 8018638: bcf8 pop {r3, r4, r5, r6, r7}
  58875. 801863a: bc08 pop {r3}
  58876. 801863c: 469e mov lr, r3
  58877. 801863e: 4770 bx lr